aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:14:41 +0200
committerM.Gergo2018-07-06 11:14:41 +0200
commit43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch)
tree54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www
parent50310b0e4513ee3fcce67351ae61e8fff851130e (diff)
downloadmayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz
mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www')
-rw-r--r--mayor-orig/www/LICENSE.txt674
-rw-r--r--mayor-orig/www/include/alert/base.php38
-rw-r--r--mayor-orig/www/include/alert/hu_HU/base.php52
-rw-r--r--mayor-orig/www/include/alert/hu_HU/file.php9
-rw-r--r--mayor-orig/www/include/alert/hu_HU/ldap.php11
-rw-r--r--mayor-orig/www/include/alert/hu_HU/module-auth.php11
-rw-r--r--mayor-orig/www/include/alert/hu_HU/module-naplo.php70
-rw-r--r--mayor-orig/www/include/alert/hu_HU/module-password.php18
-rw-r--r--mayor-orig/www/include/alert/hu_HU/module-session.php10
-rw-r--r--mayor-orig/www/include/backend/ads/auth/login.php358
-rw-r--r--mayor-orig/www/include/backend/ads/base/attrs.php160
-rw-r--r--mayor-orig/www/include/backend/ads/password/changePassword.php165
-rw-r--r--mayor-orig/www/include/backend/ads/session/accountInfo.php416
-rw-r--r--mayor-orig/www/include/backend/ads/session/base.php188
-rw-r--r--mayor-orig/www/include/backend/ads/session/createAccount.php157
-rw-r--r--mayor-orig/www/include/backend/ads/session/createGroup.php82
-rw-r--r--mayor-orig/www/include/backend/ads/session/search/searchAccount.php277
-rw-r--r--mayor-orig/www/include/backend/file/auth/login.php121
-rw-r--r--mayor-orig/www/include/backend/file/session/base.php6
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/auth/login.php163
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/base/attrs.php146
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/password/changePassword.php161
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/session/accountInfo.php401
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/session/base.php184
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/session/createAccount.php157
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/session/createGroup.php82
-rw-r--r--mayor-orig/www/include/backend/ldap-ng/session/search/searchAccount.php271
-rw-r--r--mayor-orig/www/include/backend/ldap/auth/login.php144
-rw-r--r--mayor-orig/www/include/backend/ldap/base/attrs.php120
-rw-r--r--mayor-orig/www/include/backend/ldap/base/attrs.php.orig175
-rw-r--r--mayor-orig/www/include/backend/ldap/base/str.php53
-rw-r--r--mayor-orig/www/include/backend/ldap/password/changePassword.php102
-rw-r--r--mayor-orig/www/include/backend/ldap/session/accountInfo.php401
-rw-r--r--mayor-orig/www/include/backend/ldap/session/base.php255
-rw-r--r--mayor-orig/www/include/backend/ldap/session/createAccount.php204
-rw-r--r--mayor-orig/www/include/backend/ldap/session/createGroup.php103
-rw-r--r--mayor-orig/www/include/backend/ldap/session/search/searchAccount.php311
-rw-r--r--mayor-orig/www/include/backend/ldapng/auth/login.php163
-rw-r--r--mayor-orig/www/include/backend/ldapng/base/attrs.php137
-rw-r--r--mayor-orig/www/include/backend/ldapng/password/changePassword.php160
-rw-r--r--mayor-orig/www/include/backend/ldapng/session/accountInfo.php399
-rw-r--r--mayor-orig/www/include/backend/ldapng/session/base.php190
-rw-r--r--mayor-orig/www/include/backend/ldapng/session/createAccount.php157
-rw-r--r--mayor-orig/www/include/backend/ldapng/session/createGroup.php82
-rw-r--r--mayor-orig/www/include/backend/ldapng/session/search/searchAccount.php271
-rw-r--r--mayor-orig/www/include/backend/mysql/auth/login.php144
-rw-r--r--mayor-orig/www/include/backend/mysql/base/attrs.php48
-rw-r--r--mayor-orig/www/include/backend/mysql/password/changePassword.php75
-rw-r--r--mayor-orig/www/include/backend/mysql/session/accountInfo.php258
-rw-r--r--mayor-orig/www/include/backend/mysql/session/base.php52
-rw-r--r--mayor-orig/www/include/backend/mysql/session/createAccount.php106
-rw-r--r--mayor-orig/www/include/backend/mysql/session/createGroup.php37
-rw-r--r--mayor-orig/www/include/backend/mysql/session/search/searchAccount.php169
-rw-r--r--mayor-orig/www/include/base/base.php227
-rw-r--r--mayor-orig/www/include/base/cache.php33
-rw-r--r--mayor-orig/www/include/base/config.php62
-rw-r--r--mayor-orig/www/include/base/error.php44
-rw-r--r--mayor-orig/www/include/base/log.php33
-rw-r--r--mayor-orig/www/include/base/login.php120
-rw-r--r--mayor-orig/www/include/base/mysql.php396
-rw-r--r--mayor-orig/www/include/base/rights.php376
-rw-r--r--mayor-orig/www/include/base/str.php230
-rw-r--r--mayor-orig/www/include/base/var.php134
-rw-r--r--mayor-orig/www/include/menu/base.php107
-rw-r--r--mayor-orig/www/include/menu/parent/hu_HU/base.php44
-rw-r--r--mayor-orig/www/include/menu/parent/hu_HU/module-naplo.php76
-rw-r--r--mayor-orig/www/include/menu/private/hu_HU/base.php67
-rw-r--r--mayor-orig/www/include/menu/private/hu_HU/module-naplo.php613
-rw-r--r--mayor-orig/www/include/menu/public/hu_HU/base.php34
-rw-r--r--mayor-orig/www/include/menu/public/hu_HU/module-naplo.php13
-rw-r--r--mayor-orig/www/include/modules/auth/base/forgotten.php53
-rw-r--r--mayor-orig/www/include/modules/auth/base/login.php37
-rw-r--r--mayor-orig/www/include/modules/naplo/admin/azonositok.php14
-rw-r--r--mayor-orig/www/include/modules/naplo/admin/checksql.php98
-rw-r--r--mayor-orig/www/include/modules/naplo/admin/intezmenyek.php117
-rw-r--r--mayor-orig/www/include/modules/naplo/admin/szemeszterek.php48
-rw-r--r--mayor-orig/www/include/modules/naplo/admin/szuloiAzonositok.php14
-rw-r--r--mayor-orig/www/include/modules/naplo/admin/tanevek.php390
-rw-r--r--mayor-orig/www/include/modules/naplo/admin/tankorok.php133
-rw-r--r--mayor-orig/www/include/modules/naplo/base/base.php298
-rw-r--r--mayor-orig/www/include/modules/naplo/base/log.php40
-rw-r--r--mayor-orig/www/include/modules/naplo/base/rights.php469
-rw-r--r--mayor-orig/www/include/modules/naplo/base/tool.php589
-rw-r--r--mayor-orig/www/include/modules/naplo/base/update.php86
-rw-r--r--mayor-orig/www/include/modules/naplo/base/zcheck.php100
-rw-r--r--mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesTipus.php87
-rw-r--r--mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesek.php74
-rw-r--r--mayor-orig/www/include/modules/naplo/diakValaszto.php10
-rw-r--r--mayor-orig/www/include/modules/naplo/ertekeles/kerdoivBetoltes.php81
-rw-r--r--mayor-orig/www/include/modules/naplo/ertekeles/osszesites.php57
-rw-r--r--mayor-orig/www/include/modules/naplo/export/bizonyitvany.php88
-rw-r--r--mayor-orig/www/include/modules/naplo/export/diakExport.php144
-rw-r--r--mayor-orig/www/include/modules/naplo/export/kirBizonyitvanyExport.php24
-rw-r--r--mayor-orig/www/include/modules/naplo/export/kreta.php23
-rw-r--r--mayor-orig/www/include/modules/naplo/export/sulix.php129
-rw-r--r--mayor-orig/www/include/modules/naplo/export/tanarOsztalyOraszam.php13
-rw-r--r--mayor-orig/www/include/modules/naplo/export/tantargyFelosztas.php68
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/elmaradas.php27
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/elszamolas.php44
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/haladasi.php274
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/helyettesites.php945
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/oralatogatas.php30
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/osszevonas.php38
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/pluszora.php55
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/specialis.php167
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/stat.php103
-rw-r--r--mayor-orig/www/include/modules/naplo/haladasi/teremModositas.php30
-rw-r--r--mayor-orig/www/include/modules/naplo/hianyzas/diak.php119
-rw-r--r--mayor-orig/www/include/modules/naplo/hianyzas/oktstat.php155
-rw-r--r--mayor-orig/www/include/modules/naplo/hianyzas/ora.php8
-rw-r--r--mayor-orig/www/include/modules/naplo/hianyzas/osztaly.php232
-rw-r--r--mayor-orig/www/include/modules/naplo/hibabejelento/admin.php28
-rw-r--r--mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php27
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/diakExport.php137
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/diakFelmentes.php6
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/diakStatusz.php12
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/diakSzulo.php98
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/diakTankorJelentkezes.php97
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/kepzes.php64
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/kepzesOraterv.php92
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/munkakozosseg.php288
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/osztaly.php474
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/tanar.php54
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/tankor.php201
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/tankorSzemeszter.php200
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/tankorTanar.php292
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/tankorTanarHozzarendeles.php224
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/terem.php25
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/tovabbkepzes.php159
-rw-r--r--mayor-orig/www/include/modules/naplo/intezmeny/valtas.php9
-rw-r--r--mayor-orig/www/include/modules/naplo/koszi/esemenyAdmin.php86
-rw-r--r--mayor-orig/www/include/modules/naplo/koszi/koszi.php40
-rw-r--r--mayor-orig/www/include/modules/naplo/koszi/kosziAdmin.php82
-rw-r--r--mayor-orig/www/include/modules/naplo/naplo.php12
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/beiskolazasiTerv.php64
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/bizonyitvanyNyomtatas.php164
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/diakAdatlap.php22
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/diakTankorJelentkezes.php336
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/ertesito.php101
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/haladasinaplo.php139
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/helyettesitesinaplo.php148
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/nyomtatas.php89
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/osztalyozonaplo.php24
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/sniEvVegiJegyzokonyv.php48
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/sniHaviJegyzokonyv.php41
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/szovegesErtekeles.php131
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/tankorNaplohozRendeles.php48
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/tex.php1285
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/torzslap.php199
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/tovabbkepzesHatarozat.php60
-rw-r--r--mayor-orig/www/include/modules/naplo/nyomtatas/zaradekok.php63
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/ascExport.php437
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-Microsoft Excel XML.php147
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-RoPaSoft.php80
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables Ctrl-Shift-E.php112
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML (tankör nélkül).php188
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML update.php241
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML.php217
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-csv.php79
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/convert-default.php33
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/orarendBetolto.php82
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/orarendEllenorzes.php70
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/orarendModosito.php304
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/orarendTankor.php33
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/orarendTeremModositas.php28
-rw-r--r--mayor-orig/www/include/modules/naplo/orarend/tanarOrarend.php222
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/bizonyitvany.php134
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/diak.php106
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/dolgozat.php123
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/stat.php249
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/szempontRendszer.php56
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/szovegesErtekeles.php67
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/tankor.php205
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/targySorrend.php55
-rw-r--r--mayor-orig/www/include/modules/naplo/osztalyozo/vizsga.php136
-rw-r--r--mayor-orig/www/include/modules/naplo/share/bejegyzes.php65
-rw-r--r--mayor-orig/www/include/modules/naplo/share/bejegyzesModifier.php40
-rw-r--r--mayor-orig/www/include/modules/naplo/share/bontas.php72
-rw-r--r--mayor-orig/www/include/modules/naplo/share/diak.php602
-rw-r--r--mayor-orig/www/include/modules/naplo/share/diakModifier.php344
-rw-r--r--mayor-orig/www/include/modules/naplo/share/dolgozat.php133
-rw-r--r--mayor-orig/www/include/modules/naplo/share/ertekeles.php60
-rw-r--r--mayor-orig/www/include/modules/naplo/share/esemeny.php216
-rw-r--r--mayor-orig/www/include/modules/naplo/share/file.php662
-rw-r--r--mayor-orig/www/include/modules/naplo/share/helyettesites.php42
-rw-r--r--mayor-orig/www/include/modules/naplo/share/helyettesitesModifier.php117
-rw-r--r--mayor-orig/www/include/modules/naplo/share/hetes.php48
-rw-r--r--mayor-orig/www/include/modules/naplo/share/hianyzas.php478
-rw-r--r--mayor-orig/www/include/modules/naplo/share/hianyzasModifier.php363
-rw-r--r--mayor-orig/www/include/modules/naplo/share/hirnok.php353
-rw-r--r--mayor-orig/www/include/modules/naplo/share/intezmenyek.php134
-rw-r--r--mayor-orig/www/include/modules/naplo/share/jegy.php73
-rw-r--r--mayor-orig/www/include/modules/naplo/share/jegyModifier.php68
-rw-r--r--mayor-orig/www/include/modules/naplo/share/jegyzet.php216
-rw-r--r--mayor-orig/www/include/modules/naplo/share/kepesites.php103
-rw-r--r--mayor-orig/www/include/modules/naplo/share/kepzes.php183
-rw-r--r--mayor-orig/www/include/modules/naplo/share/kerdoiv.php127
-rw-r--r--mayor-orig/www/include/modules/naplo/share/kerelem.php136
-rw-r--r--mayor-orig/www/include/modules/naplo/share/kereso.php56
-rw-r--r--mayor-orig/www/include/modules/naplo/share/koszi.php141
-rw-r--r--mayor-orig/www/include/modules/naplo/share/munkakozosseg.php84
-rw-r--r--mayor-orig/www/include/modules/naplo/share/mysql.php184
-rw-r--r--mayor-orig/www/include/modules/naplo/share/nap.php332
-rw-r--r--mayor-orig/www/include/modules/naplo/share/ora.php608
-rw-r--r--mayor-orig/www/include/modules/naplo/share/oraModifier.php148
-rw-r--r--mayor-orig/www/include/modules/naplo/share/orarend.php422
-rw-r--r--mayor-orig/www/include/modules/naplo/share/osztaly.php735
-rw-r--r--mayor-orig/www/include/modules/naplo/share/osztalyModifier.php313
-rw-r--r--mayor-orig/www/include/modules/naplo/share/osztalyzatok.php342
-rw-r--r--mayor-orig/www/include/modules/naplo/share/rpc.php29
-rw-r--r--mayor-orig/www/include/modules/naplo/share/sni.php54
-rw-r--r--mayor-orig/www/include/modules/naplo/share/szemeszter.php176
-rw-r--r--mayor-orig/www/include/modules/naplo/share/szovegesErtekeles.php206
-rw-r--r--mayor-orig/www/include/modules/naplo/share/szulo.php76
-rw-r--r--mayor-orig/www/include/modules/naplo/share/tanar.php170
-rw-r--r--mayor-orig/www/include/modules/naplo/share/tanarModifier.php14
-rw-r--r--mayor-orig/www/include/modules/naplo/share/tankor.php1180
-rw-r--r--mayor-orig/www/include/modules/naplo/share/tankorBlokk.php83
-rw-r--r--mayor-orig/www/include/modules/naplo/share/tankorDiakModifier.php518
-rw-r--r--mayor-orig/www/include/modules/naplo/share/tankorModifier.php498
-rw-r--r--mayor-orig/www/include/modules/naplo/share/tanmenet.php208
-rw-r--r--mayor-orig/www/include/modules/naplo/share/targy.php426
-rw-r--r--mayor-orig/www/include/modules/naplo/share/terem.php112
-rw-r--r--mayor-orig/www/include/modules/naplo/share/verseny.php20
-rw-r--r--mayor-orig/www/include/modules/naplo/share/vizsga.php41
-rw-r--r--mayor-orig/www/include/modules/naplo/share/zaradek.php543
-rw-r--r--mayor-orig/www/include/modules/naplo/share/zaroJegyModifier.php156
-rw-r--r--mayor-orig/www/include/modules/naplo/sni/diakAllapot.php91
-rw-r--r--mayor-orig/www/include/modules/naplo/sni/fejlesztesiTerv.php45
-rw-r--r--mayor-orig/www/include/modules/naplo/sni/tantargyiFeljegyzesek.php26
-rw-r--r--mayor-orig/www/include/modules/naplo/stat/lemorzsolodas.php223
-rw-r--r--mayor-orig/www/include/modules/naplo/stat/tantargyFelosztas.php236
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/checkStatus.php33
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/fogadoOra.php142
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/munkaterv.php145
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/tankorBlokk.php277
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/tankorCsoport.php164
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/targyBontas.php240
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/targyOraszam.php28
-rw-r--r--mayor-orig/www/include/modules/naplo/tanev/vegzosOrarendLezaras.php33
-rw-r--r--mayor-orig/www/include/modules/naplo/uzeno/uzeno.php224
-rw-r--r--mayor-orig/www/include/modules/password/base/changePassword.php13
-rw-r--r--mayor-orig/www/include/modules/session/accountInfo.php48
-rw-r--r--mayor-orig/www/include/modules/session/base/base.php19
-rw-r--r--mayor-orig/www/include/modules/session/createAccount.php19
-rw-r--r--mayor-orig/www/include/modules/session/createGroup.php16
-rw-r--r--mayor-orig/www/include/modules/session/download.php108
-rw-r--r--mayor-orig/www/include/modules/session/groupInfo.php38
-rw-r--r--mayor-orig/www/include/modules/session/search/searchAccount.php37
-rw-r--r--mayor-orig/www/include/modules/session/search/searchGroup.php34
-rw-r--r--mayor-orig/www/include/modules/session/sessionAdmin.php24
-rw-r--r--mayor-orig/www/include/share/auth/base.php120
-rw-r--r--mayor-orig/www/include/share/date/names.php32
-rw-r--r--mayor-orig/www/include/share/facebook/Authentication/AccessToken.php160
-rw-r--r--mayor-orig/www/include/share/facebook/Authentication/AccessTokenMetadata.php390
-rw-r--r--mayor-orig/www/include/share/facebook/Authentication/OAuth2Client.php292
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthenticationException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthorizationException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookClientException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookOtherException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookResponseException.php214
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookResumableUploadException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookSDKException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookServerException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Exceptions/FacebookThrottleException.php33
-rw-r--r--mayor-orig/www/include/share/facebook/Facebook.php635
-rw-r--r--mayor-orig/www/include/share/facebook/FacebookApp.php110
-rw-r--r--mayor-orig/www/include/share/facebook/FacebookBatchRequest.php322
-rw-r--r--mayor-orig/www/include/share/facebook/FacebookBatchResponse.php174
-rw-r--r--mayor-orig/www/include/share/facebook/FacebookClient.php250
-rw-r--r--mayor-orig/www/include/share/facebook/FacebookRequest.php534
-rw-r--r--mayor-orig/www/include/share/facebook/FacebookResponse.php410
-rw-r--r--mayor-orig/www/include/share/facebook/FileUpload/FacebookFile.php169
-rw-r--r--mayor-orig/www/include/share/facebook/FileUpload/FacebookResumableUploader.php167
-rw-r--r--mayor-orig/www/include/share/facebook/FileUpload/FacebookTransferChunk.php133
-rw-r--r--mayor-orig/www/include/share/facebook/FileUpload/FacebookVideo.php33
-rw-r--r--mayor-orig/www/include/share/facebook/FileUpload/Mimetypes.php988
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/Birthday.php85
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/Collection.php242
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphAchievement.php112
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphAlbum.php183
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphApplication.php43
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphCoverPhoto.php72
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphEdge.php252
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphEvent.php242
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphGroup.php170
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphList.php36
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphLocation.php102
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php197
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphNodeFactory.php392
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphObject.php36
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphObjectFactory.php88
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php147
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphPicture.php72
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphSessionInfo.php102
-rw-r--r--mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php172
-rw-r--r--mayor-orig/www/include/share/facebook/Helpers/FacebookCanvasHelper.php52
-rw-r--r--mayor-orig/www/include/share/facebook/Helpers/FacebookJavaScriptHelper.php42
-rw-r--r--mayor-orig/www/include/share/facebook/Helpers/FacebookPageTabHelper.php95
-rw-r--r--mayor-orig/www/include/share/facebook/Helpers/FacebookRedirectLoginHelper.php333
-rw-r--r--mayor-orig/www/include/share/facebook/Helpers/FacebookSignedRequestFromInputHelper.php166
-rw-r--r--mayor-orig/www/include/share/facebook/Http/GraphRawResponse.php137
-rw-r--r--mayor-orig/www/include/share/facebook/Http/RequestBodyInterface.php39
-rw-r--r--mayor-orig/www/include/share/facebook/Http/RequestBodyMultipart.php170
-rw-r--r--mayor-orig/www/include/share/facebook/Http/RequestBodyUrlEncoded.php55
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/FacebookCurl.php129
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/FacebookCurlHttpClient.php163
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/FacebookGuzzleHttpClient.php97
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/FacebookHttpClientInterface.php47
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/FacebookStream.php80
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/FacebookStreamHttpClient.php94
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/HttpClientsFactory.php99
-rw-r--r--mayor-orig/www/include/share/facebook/HttpClients/certs/DigiCertHighAssuranceEVRootCA.pem23
-rw-r--r--mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php53
-rw-r--r--mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php76
-rw-r--r--mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php65
-rw-r--r--mayor-orig/www/include/share/facebook/PersistentData/PersistentDataInterface.php49
-rw-r--r--mayor-orig/www/include/share/facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php68
-rw-r--r--mayor-orig/www/include/share/facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php67
-rw-r--r--mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorFactory.php101
-rw-r--r--mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorInterface.php45
-rw-r--r--mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorTrait.php58
-rw-r--r--mayor-orig/www/include/share/facebook/PseudoRandomString/RandomBytesPseudoRandomStringGenerator.php59
-rw-r--r--mayor-orig/www/include/share/facebook/PseudoRandomString/UrandomPseudoRandomStringGenerator.php89
-rw-r--r--mayor-orig/www/include/share/facebook/SignedRequest.php326
-rw-r--r--mayor-orig/www/include/share/facebook/Url/FacebookUrlDetectionHandler.php182
-rw-r--r--mayor-orig/www/include/share/facebook/Url/FacebookUrlManipulator.php167
-rw-r--r--mayor-orig/www/include/share/facebook/Url/UrlDetectionInterface.php39
-rw-r--r--mayor-orig/www/include/share/facebook/autoload.php81
-rw-r--r--mayor-orig/www/include/share/facebook/polyfills.php49
-rw-r--r--mayor-orig/www/include/share/gd/imagefilter.php252
-rw-r--r--mayor-orig/www/include/share/googleapi/autoload.php7
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/ClassLoader.php445
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/LICENSE21
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/autoload_classmap.php35
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/autoload_files.php13
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/autoload_namespaces.php11
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/autoload_psr4.php19
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/autoload_real.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/autoload_static.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/composer/installed.json707
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/LICENSE30
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/README.md119
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.json27
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.lock19
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/package.xml77
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/BeforeValidException.php7
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/ExpiredException.php7
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/JWT.php370
-rw-r--r--mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/SignatureInvalidException.php7
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/.gitignore4
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/.travis.yml15
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/CONTRIBUTING.md22
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/LICENSE203
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/README.md30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/composer.json19
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/phpunit.xml11
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrl.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrlError.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsResponse.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/Resource/AmpUrls.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer.php679
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Account.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountBidderLocation.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountsList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfo.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfoList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Budget.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Buyer.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/ContactInformation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Creative.php281
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrections.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrectionsContexts.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIds.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIdsDealStatuses.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasons.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasonsReasons.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAd.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdAppIcon.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdImage.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdLogo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictions.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsContexts.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsDisapprovalReasons.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativesList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadata.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadataDealPauseStatus.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTerms.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTerms.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTermsBillingInfo.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedAuctionTerms.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedFixedPriceTerms.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsRubiconNonGuaranteedTerms.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControl.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControlFrequencyCap.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Dimension.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DimensionDimensionValue.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsRequest.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOffersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderDealsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderNotesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrdersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetPublisherProfilesByAccountIdResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDeal.php244
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDealParty.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceLabel.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceNote.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReport.php220
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReportList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfig.php260
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigDimensions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigExcludedPlacements.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigPlacements.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigVideoPlayerSizes.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Price.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PricePerBuyer.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PrivateData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Product.php245
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Proposal.php236
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProfileApiProto.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProvidedForecast.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Accounts.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/BillingInfo.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Budget.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Creatives.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacedeals.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacenotes.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplaceprivateauction.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PerformanceReport.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PretargetingConfig.php118
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Products.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Proposals.php122
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Pubprofiles.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Seller.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/SharedTargeting.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValue.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueCreativeSize.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargeting.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargetingDayPart.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueSize.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/UpdatePrivateAuctionProposalRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII.php441
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AddDealAssociationRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Adexchangebuyer2Empty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AppContext.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AuctionContext.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Client.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUser.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUserInvitation.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Correction.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Creative.php253
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeDealAssociation.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Date.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Disapproval.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteringStats.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/HtmlContent.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Image.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUserInvitationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUsersResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListDealAssociationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/LocationContext.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NativeContent.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/PlatformContext.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Reason.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/RemoveDealAssociationRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/Accounts.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClients.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsInvitations.php90
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsUsers.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreatives.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreativesDealAssociations.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/SecurityContext.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingContext.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingRestriction.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/StopWatchingCreativeRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/VideoContent.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/WatchCreativeRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller.php428
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Account.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Accounts.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClient.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClients.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alert.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alerts.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannel.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannelTargetingInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannels.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Metadata.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeal.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeals.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Report.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportHeaders.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportingMetadataEntry.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/Accounts.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAdclients.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAlerts.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsCustomchannels.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadata.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataDimensions.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataMetrics.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsPreferreddeals.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReports.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReportsSaved.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsUrlchannels.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReport.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReports.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannel.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannels.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense.php1060
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Account.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Accounts.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClient.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClients.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdCode.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyle.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleColors.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleFont.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnit.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettings.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettingsBackupOption.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitFeedAdsSettings.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitMobileContentAdsSettings.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnits.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponse.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponseHeaders.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alert.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alerts.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannel.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannelTargetingInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannels.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Metadata.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payment.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payments.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/ReportingMetadataEntry.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Accounts.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunits.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunitsCustomchannels.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAlerts.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannels.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannelsAdunits.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsPayments.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReports.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReportsSaved.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsSavedadstyles.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsUrlchannels.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adclients.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adunits.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AdunitsCustomchannels.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Alerts.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Customchannels.php63
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/CustomchannelsAdunits.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Metadata.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataDimensions.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataMetrics.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Payments.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Reports.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/ReportsSaved.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Savedadstyles.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Urlchannels.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyle.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyles.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReport.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReports.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannel.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannels.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost.php630
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Account.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Accounts.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClient.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClients.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdCode.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyle.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleColors.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleFont.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnit.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettings.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettingsBackupOption.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitMobileContentAdsSettings.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnits.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AssociationSession.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannel.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannels.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Report.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/ReportHeaders.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Accounts.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdclients.php63
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdunits.php150
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsReports.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Adclients.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Associationsessions.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Customchannels.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Reports.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Urlchannels.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannel.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannels.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics.php2103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Account.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountChildLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountPermissions.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountRef.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummaries.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummary.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountTicket.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Accounts.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AdWordsAccount.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AnalyticsDataimportDeleteUploadDataRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Column.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Columns.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSource.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceChildLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSources.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimension.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensionParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensions.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetric.php161
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetricParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetrics.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLink.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinkEntity.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinks.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLink.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkEntity.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkPermissions.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinks.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiment.php276
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentVariations.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiments.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filter.php163
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterAdvancedDetails.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterExpression.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterLowercaseDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterRef.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterSearchAndReplaceDetails.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterUppercaseDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filters.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaData.php179
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataColumnHeaders.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTable.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableCols.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRows.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRowsC.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataProfileInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataQuery.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goal.php188
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetails.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetailsEventConditions.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetails.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetailsSteps.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitNumPagesDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitTimeOnSiteDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goals.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/IncludeConditions.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/LinkedForeignAccount.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfData.php161
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataColumnHeaders.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataProfileInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataQuery.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRows.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRowsConversionPathValue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profile.php258
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileChildLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLink.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLinks.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfilePermissions.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileRef.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileSummary.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profiles.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeData.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataColumnHeaders.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataProfileInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataQuery.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudience.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceAudienceDefinition.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinition.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudiences.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Data.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataGa.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataMcf.php63
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataRealtime.php53
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Management.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountSummaries.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountUserLinks.php91
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccounts.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDataSources.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDimensions.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomMetrics.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementExperiments.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementFilters.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementGoals.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileFilterLinks.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileUserLinks.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfiles.php135
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementRemarketingAudience.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementSegments.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUnsampledReports.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUploads.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebPropertyAdWordsLinks.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebproperties.php110
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebpropertyUserLinks.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Metadata.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/MetadataColumns.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Provisioning.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segment.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segments.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReport.php198
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportCloudStorageDownloadDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportDriveDownloadDetails.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReports.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Upload.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Uploads.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UserRef.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertyRef.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertySummary.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperties.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperty.php177
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyChildLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyParentLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyPermissions.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Cohort.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/CohortGroup.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ColumnHeader.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRange.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRangeValues.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Dimension.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilter.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilterClause.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DynamicSegment.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Metric.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilter.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilterClause.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeader.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeaderEntry.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrFiltersForSegment.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrderBy.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Pivot.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeader.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeaderEntry.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotValueRegion.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Report.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportData.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRequest.php184
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRow.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Resource/Reports.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Segment.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDefinition.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDimensionFilter.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilter.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilterClause.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentMetricFilter.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentSequenceStep.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SequenceSegment.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SimpleSegment.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise.php1454
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Administrator.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebToken.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebTokenSpec.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchema.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaChangeEvent.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestriction.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestrictionRestrictionValue.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppUpdateEvent.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppVersion.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ApprovalUrlInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AuthenticationToken.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Collection.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionViewersListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Device.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DeviceState.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DevicesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Enterprise.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterpriseAccount.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesSendTestPushNotificationResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Entitlement.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EntitlementsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicense.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicenseUsersListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicensesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Install.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallFailureEvent.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/LocalizedText.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfiguration.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForDeviceListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForUserListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedProperty.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedPropertyBundle.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewDeviceEvent.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewPermissionsEvent.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Notification.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NotificationSet.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/PageInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Permission.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Product.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductApprovalEvent.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductAvailabilityChangeEvent.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermission.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermissions.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductSet.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsApproveRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsGenerateApprovalUrlResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsListResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collections.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collectionviewers.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Devices.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Enterprises.php317
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Entitlements.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenses.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenseusers.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Installs.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsfordevice.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsforuser.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Permissions.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Products.php175
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Serviceaccountkeys.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutclusters.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutpages.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Users.php215
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccount.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKey.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKeysListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/SignupInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreCluster.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayout.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutClustersListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutPagesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StorePage.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/TokenPagination.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/User.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UserToken.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UsersListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher.php1347
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Apk.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkBinary.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListing.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListingsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppDetails.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppEdit.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Comment.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFile.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFilesUploadResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeveloperComment.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeviceMetadata.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Entitlement.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/EntitlementsListResponse.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFile.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFilesUploadResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApk.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApkUsesPermission.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Image.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesDeleteAllResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesUploadResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProductListing.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequestEntry.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponseEntry.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsListResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Listing.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ListingsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/MonthDay.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/PageInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Price.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ProductPurchase.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Prorate.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Edits.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApklistings.php148
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApks.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDeobfuscationfiles.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDetails.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsExpansionfiles.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsImages.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsListings.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTesters.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Entitlements.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Inappproducts.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Purchases.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesProducts.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesSubscriptions.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesVoidedpurchases.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Reviews.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Review.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewReplyResult.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsListResponse.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Season.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionDeferralInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Testers.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Timestamp.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TokenPagination.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TracksListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/UserComment.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchase.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchasesListResponse.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/GetResponse.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/ListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/Resource/States.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/UpdateRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/WriteResult.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine.php520
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiConfigHandler.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiEndpointHandler.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Application.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/AutomaticScaling.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/BasicScaling.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ContainerInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/CpuUtilization.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DebugInstanceRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Deployment.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DiskUtilization.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ErrorHandler.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/FileInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/HealthCheck.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Instance.php165
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Library.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListInstancesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListLocationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListServicesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListVersionsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Location.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/LocationMetadata.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ManualScaling.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Network.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/NetworkUtilization.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadata.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataExperimental.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1Beta5.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RepairApplicationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RequestUtilization.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Apps.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsLocations.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersionsInstances.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Experimental.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalApps.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalAppsOperations.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resources.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ScriptHandler.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Service.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/SourceReference.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/StaticFilesHandler.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/TrafficSplit.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlDispatchRule.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlMap.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Version.php295
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Volume.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ZipInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Activity.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/AppsactivityParent.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Event.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/ListActivitiesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Move.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Permission.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/PermissionChange.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Photo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Rename.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Resource/Activities.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Target.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/User.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler.php299
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Autoscaler.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalerListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCpuUtilization.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCustomMetricUtilization.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyLoadBalancingUtilization.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/DeprecationStatus.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Operation.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Autoscalers.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/ZoneOperations.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Zones.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Zone.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/ZoneList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery.php520
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumn.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumnFamily.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableOptions.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/CsvOptions.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetListDatasets.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetReference.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ErrorProto.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStage.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStep.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GetQueryResultsResponse.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GoogleSheetsOptions.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Job.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobCancelResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationExtract.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php204
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php189
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationTableCopy.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobListJobs.php110
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobReference.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics3.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatus.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectListProjects.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameter.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterType.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterTypeStructTypes.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterValue.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryRequest.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryResponse.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Datasets.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Projects.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tabledata.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tables.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Streamingbuffer.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Table.php216
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableCell.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequest.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequestRows.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponseInsertErrors.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTables.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTablesView.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableReference.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableRow.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableSchema.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TimePartitioning.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/UserDefinedFunctionResource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ViewDefinition.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger.php930
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Blog.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogList.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogLocale.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPages.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPerUserInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPosts.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogUserInfo.php53
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Comment.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthor.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentBlog.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentInReplyTo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentPost.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Page.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthor.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageBlog.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Pageviews.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageviewsCounts.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Post.php198
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthor.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostBlog.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostImages.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostLocation.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostPerUserInfo.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostReplies.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfo.php53
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfosList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/BlogUserInfos.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Blogs.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Comments.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PageViews.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Pages.php163
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PostUserInfos.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Posts.php241
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Users.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/User.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserBlogs.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserLocale.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books.php1508
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotation.php178
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationClientVersionRanges.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationCurrentVersionRanges.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationLayerSummary.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationdata.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotations.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummary.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummaryLayers.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationsdata.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksAnnotationsRange.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksCloudloadingResource.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksVolumesRecommendedRateResponse.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelf.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelves.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Category.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/CategoryItems.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ConcurrentAccessRestriction.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Dictlayerdata.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataCommon.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDict.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWords.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivatives.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivativesSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamples.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamplesSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSenses.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesConjugations.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitions.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamples.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamplesSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonyms.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonymsSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Discoveryclusters.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClusters.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClustersBannerWithContentContainer.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccessRestriction.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccesses.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Geolayerdata.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataCommon.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeo.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoBoundary.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewport.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportHi.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportLo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummaries.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummary.php139
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Metadata.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/MetadataItems.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Notification.php156
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Offers.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItems.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItemsItems.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReadingPosition.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/RequestAccess.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Bookshelves.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/BookshelvesVolumes.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Cloudloading.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Dictionary.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Layers.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersAnnotationData.php90
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersVolumeAnnotations.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Myconfig.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Mylibrary.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryAnnotations.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelves.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelvesVolumes.php53
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryReadingpositions.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Notification.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Onboarding.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Personalizedstream.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Promooffer.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Series.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/SeriesMembership.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Volumes.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesAssociated.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesMybooks.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesRecommended.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesUseruploaded.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Review.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewAuthor.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewSource.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Series.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/SeriesSeries.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Seriesmembership.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Usersettings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotesExport.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotification.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromAuthors.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromSeries.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume2.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfo.php150
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoEpub.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoPdf.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfo.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfoLayers.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeRecommendedInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfo.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoListPrice.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffers.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersListPrice.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRentalDuration.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRetailPrice.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoRetailPrice.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSearchInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfo.php198
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoCopy.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoFamilySharing.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoRentalPeriod.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoUserUploadedVolumeInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php270
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoDimensions.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoImageLinks.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoIndustryIdentifiers.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoPanelizationSummary.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotation.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeannotationContentRanges.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotations.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumes.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeseriesinfo.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeries.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeriesIssue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar.php888
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Acl.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRule.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRuleScope.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Calendar.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntry.php186
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntryNotificationSettings.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarNotification.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Channel.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/ColorDefinition.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Colors.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Error.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Event.php366
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttachment.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttendee.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventCreator.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventDateTime.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventExtendedProperties.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventGadget.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventOrganizer.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminder.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminders.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Events.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyCalendar.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyGroup.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequest.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequestItem.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Acl.php177
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php191
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Calendars.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Channels.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Colors.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php440
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Freebusy.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Settings.php92
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Setting.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Settings.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/TimePeriod.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo.php166
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrationRegion.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrativeBody.php154
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Candidate.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Channel.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php241
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ContextParams.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionRepresentativeInfoRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResult.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Election.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionOfficial.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectoralDistrict.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/GeographicDivision.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Office.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Official.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php301
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoData.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoResponse.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Divisions.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Representatives.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/SimpleAddressType.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Source.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoSegmentResult.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom.php869
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Assignment.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/AssignmentSubmission.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Attachment.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ClassroomEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Course.php177
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseAlias.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterial.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterialSet.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseWork.php180
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Date.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFile.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFolder.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Form.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GlobalPermission.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Guardian.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GuardianInvitation.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Invitation.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Link.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseAliasesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseWorkResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCoursesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardianInvitationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardiansResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListInvitationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentSubmissionsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListTeachersResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Material.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ModifyAttachmentsRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceQuestion.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceSubmission.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Name.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReclaimStudentSubmissionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Courses.php163
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php91
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWork.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php240
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesStudents.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesTeachers.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfiles.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php166
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReturnStudentSubmissionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/SharedDriveFile.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ShortAnswerSubmission.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Student.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/StudentSubmission.php168
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Teacher.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TimeOfDay.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TurnInStudentSubmissionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/UserProfile.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/YouTubeVideo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild.php254
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Build.php189
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOperationMetadata.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuiltImage.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelBuildRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CloudbuildEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/FileHashes.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Hash.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildTriggersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/RepoSource.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsBuilds.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsTriggers.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Results.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Source.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/SourceProvenance.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/StorageSource.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger.php240
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/AliasContext.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Breakpoint.php171
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudRepoSourceContext.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceId.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceSourceContext.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ClouddebuggerEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Debuggee.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ExtendedSourceContext.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/FormatMessage.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GerritSourceContext.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GetBreakpointResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GitSourceContext.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListActiveBreakpointsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListBreakpointsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListDebuggeesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ProjectRepoId.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RepoId.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Controller.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggees.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Debugger.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SetBreakpointResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceContext.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StackFrame.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StatusMessage.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointResponse.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Variable.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions.php207
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/EventTrigger.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/HTTPSTrigger.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListFunctionsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListLocationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Location.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/OperationMetadataV1Beta2.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocations.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/SourceRepository.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS.php389
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditConfig.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditLogConfig.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CloudAuditOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Condition.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CounterOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DataAccessOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DestroyCryptoKeyVersionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/KeyRing.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeyVersionsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeysResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListKeyRingsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListLocationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Location.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/LogConfig.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Policy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php135
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php204
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php143
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/RestoreCryptoKeyVersionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Rule.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/SetIamPolicyRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/UpdateCryptoKeyPrimaryVersionRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning.php337
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleApiHttpBody.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1CancelJobRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1GetConfigResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutput.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterSpec.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Job.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListJobsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListModelsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListVersionsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Model.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1OperationMetadata.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ParameterSpec.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionInput.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionOutput.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1SetDefaultVersionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingInput.php122
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingOutput.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Version.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningOperation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleProtobufEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleRpcStatus.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/Projects.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsJobs.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModels.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModelsVersions.php152
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsOperations.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php338
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleApiHttpBody.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1CancelJobRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1GetConfigResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutput.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListJobsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListModelsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListVersionsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ManualScaling.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ParameterSpec.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionOutput.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1SetDefaultVersionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingOutput.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1ManualScaling.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1OperationMetadata.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1Version.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningOperation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleProtobufEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleRpcStatus.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/Projects.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php152
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring.php243
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/DeleteMetricDescriptorResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptor.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorLabelDescriptor.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorTypeDescriptor.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Point.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistribution.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionBucket.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionOverflowBucket.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionUnderflowBucket.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/MetricDescriptors.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/Timeseries.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/TimeseriesDescriptors.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Timeseries.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptorLabel.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesPoint.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextResponse.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/DependencyEdge.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Document.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Entity.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/EntityMention.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Features.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/PartOfSpeech.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Resource/Documents.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentence.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentiment.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/TextSpan.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Token.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextResponse.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/DependencyEdge.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Document.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Entity.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/EntityMention.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Features.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/PartOfSpeech.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Resource/Documents.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentence.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentiment.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/TextSpan.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Token.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager.php286
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Ancestor.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditConfig.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditLogConfig.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/CloudresourcemanagerEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperation.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperationError.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetIamPolicyRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Lien.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListLiensResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListProjectsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Organization.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/OrganizationOwner.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Policy.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Project.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ProjectCreationStatus.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Liens.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Operations.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Organizations.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Projects.php286
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ResourceId.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsRequest.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SetIamPolicyRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/UndeleteProjectRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/CancelOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Cardinality.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/EndCondition.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListConfigsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListVariablesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListWaitersResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigs.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsOperations.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsVariables.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsWaiters.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeconfigEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Variable.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Waiter.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/WatchVariableRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditConfig.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditLogConfig.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CloudAuditOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Condition.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CounterOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/DataAccessOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/ListReposResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/LogConfig.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/MirrorConfig.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Policy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php139
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Rule.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SetIamPolicyRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SourcerepoEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/AsyncRecognizeRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/CancelOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionAudio.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionConfig.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Operations.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Speech.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechContext.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionAlternative.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionResult.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace.php146
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/CloudtraceEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/ListTracesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/Projects.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/ProjectsTraces.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Trace.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/TraceSpan.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Traces.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts.php514
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuditConfig.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuthorizedKeysView.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Condition.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Group.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsAddMemberRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsRemoveMemberRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxAccountViews.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetAuthorizedKeysViewResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetLinuxAccountViewsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGroupView.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxUserView.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfig.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfigCounterOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Operation.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Policy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/PublicKey.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/GlobalAccountsOperations.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Groups.php206
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Linux.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Users.php209
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Rule.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/User.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/UserList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling.php147
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/BillingAccount.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListBillingAccountsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListProjectBillingInfoResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ProjectBillingInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccountsProjects.php53
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/Projects.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/DeleteEventsResponse.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorContext.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorEvent.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroup.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroupStats.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/HttpRequestContext.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListEventsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListGroupStatsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportErrorEventResponse.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportedErrorEvent.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/Projects.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroups.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ServiceContext.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/SourceLocation.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TimedCount.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TrackingIssue.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStats.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStatsReply.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/DoubleValue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/IntValue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/Stats.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatsReply.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatscollectionResource.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StringValue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute.php5692
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Address.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDisk.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Autoscaler.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCpuUtilization.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCustomMetricUtilization.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyLoadBalancingUtilization.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Backend.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucketList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendService.php195
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceGroupHealth.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CacheInvalidationRule.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ConnectionDraining.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKeyProtectedDisk.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DeprecationStatus.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Disk.php223
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskMoveRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskType.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksResizeRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Firewall.php122
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallAllowed.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/GuestOsFeature.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HTTP2HealthCheck.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheck.php160
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthStatus.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HostRule.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheck.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheckList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheck.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheckList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Image.php198
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageRawDisk.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Instance.php190
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroup.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php168
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersAbandonInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersDeleteInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersListManagedInstancesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersRecreateInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetInstanceTemplateRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetTargetPoolsRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsAddInstancesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstances.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstancesRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsRemoveInstancesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsSetNamedPortsRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceMoveRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceProperties.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplateList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceWithNamedPorts.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetMachineTypeRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetServiceAccountRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesStartWithEncryptionKeyRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/License.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineType.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeScratchDisks.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttempt.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrors.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrorsErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Metadata.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MetadataItems.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NamedPort.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Network.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkInterface.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Operation.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathMatcher.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathRule.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Project.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Quota.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Region.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionAutoscalerList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagerList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersAbandonInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersDeleteInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersListInstancesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersRecreateRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTargetPoolsRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTemplateRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstances.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstancesRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsSetNamedPortsRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Addresses.php188
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php224
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php161
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php241
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Firewalls.php160
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ForwardingRules.php207
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php128
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php146
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php162
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php166
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php166
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php166
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php369
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php309
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php136
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php455
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/MachineTypes.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php144
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionAutoscalers.php167
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionBackendServices.php194
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php294
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroups.php182
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionOperations.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php256
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php206
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php147
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php164
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php190
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php293
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php180
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php190
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php194
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php189
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ZoneOperations.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ResourceGroupReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Route.php167
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Router.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgp.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusBgpPeerStatus.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersPreviewResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SSLHealthCheck.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Scheduling.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SerialPortOutput.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ServiceAccount.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Snapshot.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SnapshotList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificate.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificateList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksExpandIpCidrRangeRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TCPHealthCheck.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Tags.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxy.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxyList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxiesSetSslCertificatesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxyList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstance.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPool.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolInstanceHealth.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddHealthCheckRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddInstanceRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveHealthCheckRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveInstanceRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetBackendServiceRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetProxyHeaderRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetSslCertificatesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxy.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxyList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGateway.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TestFailure.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMap.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapTest.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapValidationResult.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UsageExportLocation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnel.php175
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelAggregatedList.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedList.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarning.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarningData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Zone.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ZoneList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys.php210
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/FieldMask.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanel.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanelsListResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/PageInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Mobileapppanels.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Results.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Surveys.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsGetRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsMask.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Survey.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyAudience.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyCost.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestion.php185
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestionImage.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyRejection.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyResults.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysDeleteResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysListResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStopResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/TokenPagination.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container.php397
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AddonsConfig.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AutoUpgradeOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CancelOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Cluster.php278
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ClusterUpdate.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ContainerEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateClusterRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateNodePoolRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HorizontalPodAutoscaling.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HttpLoadBalancing.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListClustersResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListNodePoolsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/MasterAuth.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeConfig.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeManagement.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePool.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePoolAutoscaling.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Operation.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php139
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesOperations.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/RollbackNodePoolUpgradeRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ServerConfig.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/SetNodePoolManagementRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/UpdateClusterRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate.php467
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomField.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDef.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDefListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFields.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/EnumItemDef.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Job.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobChange.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobState.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Location.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationListResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationRecord.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/CustomFieldDef.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Jobs.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Location.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Schedule.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Team.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Worker.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Schedule.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Team.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TeamListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TokenPagination.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Worker.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/WorkerListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch.php195
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Context.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ContextFacets.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Promotion.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionBodyLines.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionImage.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Query.php354
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Result.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultImage.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultLabels.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Search.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSearchInformation.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSpelling.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchUrl.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer.php147
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Application.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationDataTransfer.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationTransferParam.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationsListResponse.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfer.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfersListResponse.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Applications.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Transfers.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow.php628
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateProgress.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateReportedProgress.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/AutoscalingSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CPUTime.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentSource.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentTransform.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComputationTopology.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ConcatPosition.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterMetadata.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredName.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredNameAndMetadata.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterUpdate.php156
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CreateJobFromTemplateRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CustomSourceLocation.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DataDiskAssignment.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DerivedSource.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Disk.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DisplayData.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DistributionUpdate.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DynamicSourceSplit.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Environment.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ExecutionStageSummary.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FailedLocation.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FlattenInstruction.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointList.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointMean.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetTemplateResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionInput.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionOutput.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerList.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerMean.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Job.php197
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionStageInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMessage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMetrics.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeDataDiskAssignment.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeLocation.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateParameters.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobMessagesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobsResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricShortId.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricStructuredName.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricUpdate.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MountedDataDisk.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MultiOutputInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/NameAndKind.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Package.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParDoInstruction.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParallelInstruction.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParameterMetadata.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PartialGroupByKeyInstruction.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PipelineDescription.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Position.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PubsubLocation.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReadInstruction.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportedParallelism.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/Projects.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsDebug.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsWorkItems.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReport.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReportResponse.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureRequest.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureResponse.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTask.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTaskOutputInfo.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ShellTask.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SideInputInfo.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Sink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Source.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceFork.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceMetadata.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitShard.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SplitInt64.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StageSource.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StateFamilyConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Step.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamLocation.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationRanges.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationTask.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSideInputLocation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingStageLocation.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StringList.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TaskRunnerSettings.php194
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TemplateMetadata.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TopologyConfig.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TransformSummary.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItem.php165
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemServiceState.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemStatus.php148
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReport.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReportResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessage.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageCode.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerPool.php215
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerSettings.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WriteInstruction.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc.php397
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/AcceleratorConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/CancelJobRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Cluster.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php91
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterMetrics.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationMetadata.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationStatus.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterStatus.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DataprocEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterOutputLocation.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterResults.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/GceClusterConfig.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HadoopJob.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HiveJob.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/InstanceGroupConfig.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Job.php169
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobPlacement.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobReference.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobScheduling.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobStatus.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListClustersResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListJobsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/LoggingConfig.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ManagedGroupConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/NodeInitializationAction.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationMetadata.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationStatus.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PigJob.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PySparkJob.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/QueryList.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegions.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php162
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php156
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SoftwareConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkJob.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkSqlJob.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SubmitJobRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/YarnApplication.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ArrayValue.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CompositeFilter.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Entity.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/EntityResult.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Filter.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQuery.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQueryParameter.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Key.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/KindExpression.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LatLng.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupRequest.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupResponse.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Mutation.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/MutationResult.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PartitionId.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PathElement.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Projection.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyFilter.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyOrder.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Query.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/QueryResultBatch.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ReadOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Resource/Projects.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackResponse.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryRequest.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Value.php142
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager.php488
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditConfig.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditLogConfig.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Condition.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ConfigFile.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentLabelEntry.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdate.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdateLabelEntry.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResource.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsCancelPreviewRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsStopRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ImportFile.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfig.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfigCounterOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Manifest.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ManifestsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Operation.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Policy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php279
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Manifests.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Operations.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Resources.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Types.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceAccessControl.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdate.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourcesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Rule.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TargetConfiguration.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Type.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TypesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting.php4816
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Account.php194
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountActiveAdSummary.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermission.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroup.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroupsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfile.php169
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfilesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Activities.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Ad.php393
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdSlot.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Advertiser.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroup.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroupsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertisersListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegment.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegmentGroup.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Browser.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/BrowsersListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php276
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociationsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLog.php147
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLogsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CitiesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/City.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickTag.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrl.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrlSuffixProperties.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionClickThroughOverride.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionSetting.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompatibleFields.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionType.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionTypesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategoriesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategory.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionError.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionStatus.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertRequest.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CountriesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Country.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php599
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php426
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetId.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetMetadata.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetSelection.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssignment.php144
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeCustomEvent.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeField.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldAssignment.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValue.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValuesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroup.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupAssignment.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeOptimizationConfiguration.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeRotation.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CrossDimensionReachReportCompatibleFields.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomFloodlightVariable.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomRichMediaEvents.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DateRange.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DayPartTargeting.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DefaultClickThroughEventTagProperties.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DeliverySchedule.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFile.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFileUrls.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfpSettings.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Dimension.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionFilter.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValue.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueRequest.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContact.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactAssignment.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySitesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKey.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKeysListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EncryptionInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTag.php186
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagOverride.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FileList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Flight.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesGenerateTagResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivity.php279
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityDynamicTag.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroup.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroupsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityPublisherDynamicTag.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php191
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfigurationsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightReportCompatibleFields.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FrequencyCap.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FsCommand.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/GeoTargeting.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItem.php205
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItemsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/KeyValueTargetingExpression.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPagesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Language.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguageTargeting.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguagesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LastModifiedInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationClause.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationRule.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationTerm.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListTargetingExpression.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LookbackConfiguration.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metric.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metro.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MetrosListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarrier.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarriersListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ObjectFilter.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OffsetPosition.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OmnitureSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystem.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersion.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersionsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OptimizationActivity.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Order.php204
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderContact.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocument.php176
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocumentsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrdersListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PathToConversionReportCompatibleFields.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php387
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementAssignment.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroup.php265
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroupsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategiesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategy.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementTag.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsGenerateTagsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformType.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformTypesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PopupWindowProperties.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCode.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCodesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Pricing.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedule.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedulePricingPeriod.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Project.php220
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ProjectsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReachReportCompatibleFields.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Recipient.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Region.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RegionsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingList.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListShare.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Report.php190
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCompatibleFields.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCriteria.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCrossDimensionReachCriteria.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportDelivery.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteria.php91
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteriaReportProperties.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteria.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteriaReportProperties.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportReachCriteria.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportSchedule.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportsConfiguration.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountActiveAdSummaries.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissionGroups.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissions.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountUserProfiles.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Accounts.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Ads.php143
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserGroups.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Advertisers.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Browsers.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CampaignCreativeAssociations.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Campaigns.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ChangeLogs.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Cities.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ConnectionTypes.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ContentCategories.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Conversions.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Countries.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeAssets.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFieldValues.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFields.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeGroups.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Creatives.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DimensionValues.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySiteContacts.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DynamicTargetingKeys.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/EventTags.php146
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Files.php63
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivities.php162
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivityGroups.php128
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightConfigurations.php90
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/InventoryItems.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/LandingPages.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Languages.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Metros.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/MobileCarriers.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystemVersions.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystems.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OrderDocuments.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Orders.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementGroups.php148
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementStrategies.php128
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Placements.php172
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlatformTypes.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PostalCodes.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Projects.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Regions.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingListShares.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingLists.php118
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Reports.php137
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsCompatibleFields.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsFiles.php63
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sites.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Subaccounts.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetableRemarketingLists.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetingTemplates.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserProfiles.php53
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissionGroups.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissions.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRoles.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/VideoFormats.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RichMediaExitOverride.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Rule.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Site.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteContact.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SitesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Size.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SizesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SkippableSetting.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SortedDimension.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Subaccount.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SubaccountsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagData.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSetting.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetWindow.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingList.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingListsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplate.php145
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplatesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TechnologyTargeting.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyAuthenticationToken.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyTrackingUrl.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TranscodeSetting.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserDefinedVariableConfiguration.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfile.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfileList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRole.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermission.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroup.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroupsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormat.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormatsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoOffset.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoSettings.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory.php1788
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Alias.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Aliases.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asp.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asps.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResource.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResources.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Channel.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php249
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceAction.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceActiveTimeRanges.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceRecentUsers.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevices.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Customer.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CustomerPostalAddress.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAlias.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAliases.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains2.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Group.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Groups.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Member.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Members.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevice.php383
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceAction.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceApplications.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevices.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notification.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notifications.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnit.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnits.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privilege.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privileges.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Asps.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Channels.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Customers.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/DomainAliases.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Domains.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/GroupsAliases.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php122
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Notifications.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Orgunits.php118
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Privileges.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Resources.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesCalendars.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/RoleAssignments.php91
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Roles.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Schemas.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Tokens.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Users.php207
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersAliases.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersPhotos.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/VerificationCodes.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Role.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignment.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignments.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleRolePrivileges.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Roles.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schema.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpecNumericIndexingSpec.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schemas.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Token.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Tokens.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/User.php356
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAbout.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAddress.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserEmail.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserExternalId.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserIm.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserMakeAdmin.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserName.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserOrganization.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhone.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhoto.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserRelation.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserUndelete.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserWebsite.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Users.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCode.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCodes.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns.php274
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Change.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ChangesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZone.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZonesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Project.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Quota.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSet.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSetsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/FilterPair.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListQueriesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListReportsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Note.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/NotifyProposalChangeRequest.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Parameters.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Query.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QueryMetadata.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QuerySchedule.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Report.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportFailure.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportKey.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportMetadata.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportStatus.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Lineitems.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Queries.php92
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Reports.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Rubicon.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Sdf.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RowStatus.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RunQueryRequest.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsRequest.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadStatus.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch.php242
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Availability.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Conversion.php321
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ConversionList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomDimension.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomMetric.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Report.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportApiColumnSpec.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportFiles.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequest.php153
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestFilters.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestOrderBy.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestReportScope.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestTimeRange.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Conversion.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Reports.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/SavedColumns.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumn.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumnList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive.php914
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/About.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/AboutStorageQuota.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Change.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ChangeList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Channel.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Comment.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentQuotedFileContent.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFile.php490
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php165
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHints.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHintsThumbnail.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadata.php211
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadataLocation.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileVideoMediaMetadata.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/FileList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/GeneratedIds.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Permission.php122
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionTeamDrivePermissionDetails.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Reply.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ReplyList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/About.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Changes.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Channels.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Comments.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Files.php251
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Replies.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Revisions.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Revision.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/RevisionList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/StartPageToken.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/User.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AnalyticsInfo.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AndroidInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkInfo.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkWarning.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GooglePlayAnalytics.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/ITunesConnectAnalytics.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/NavigationInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/ShortLinks.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/SocialMetaTagInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Suffix.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AnalyticsInfo.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AndroidInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkInfo.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkWarning.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/GooglePlayAnalytics.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/ITunesConnectAnalytics.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/IosInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Resource/ShortDynamicLinks.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/SocialMetaTagInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Suffix.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI.php212
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesFile.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Issue.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListReleasesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListRulesetsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Release.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/Projects.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsReleases.php186
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsRulesets.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Ruleset.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Source.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/SourcePosition.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness.php386
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBucket.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBy.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateRequest.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Application.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByActivity.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketBySession.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTime.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTimePeriod.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataPoint.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataSource.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataType.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataTypeField.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Dataset.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Device.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListDataSourcesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListSessionsResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/MapValue.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/Users.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php143
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSourcesDatasets.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataset.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Session.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Value.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ValueMapValEntry.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase.php258
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidate.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidateNotable.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGet.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetCosts.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetWarning.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables.php630
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Bucket.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Column.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnBaseColumn.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Geometry.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Import.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Line.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/LineStyle.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Point.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PointStyle.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Polygon.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PolygonStyle.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Column.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Query.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Style.php118
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Table.php212
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Task.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Template.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Sqlresponse.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunction.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradient.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradientColors.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSetting.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSettingList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Table.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TableList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Task.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TaskList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Template.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TemplateList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games.php1278
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinition.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinitionsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementIncrementResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementRevealResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementSetStepsAtLeastResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUnlockResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateRequest.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateResponse.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AggregateStats.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AnonymousPlayer.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Application.php146
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationCategory.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationVerifyResponse.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Category.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/CategoryListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventBatchRecordFailure.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventChild.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinition.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinitionListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodRange.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodUpdate.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordFailure.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordRequest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateRequest.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementIncrement.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementSetStepsAtLeast.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ImageAsset.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Instance.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceAndroidDetails.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceIosDetails.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceWebDetails.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Leaderboard.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardEntry.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScoreRank.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScores.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/MetagameConfig.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/NetworkDiagnostics.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ParticipantResult.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerChannelDiagnostics.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerSessionDiagnostics.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Played.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Player.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievement.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievementListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEvent.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEventListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerExperienceInfo.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScore.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScoreListResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLevel.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerName.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScore.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreResponse.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreSubmissionList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ProfileSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushToken.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenId.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenIdIos.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Quest.php167
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestContribution.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestCriterion.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestMilestone.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/AchievementDefinitions.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Events.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Leaderboards.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Metagame.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Players.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Pushtokens.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/QuestMilestones.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Quests.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Revisions.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Rooms.php174
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Scores.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Snapshots.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/TurnBasedMatches.php289
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RevisionCheckResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Room.php144
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchStatus.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchingCriteria.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomClientAddress.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomCreateRequest.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomJoinRequest.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveDiagnostics.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomModification.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatus.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatuses.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomParticipant.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomStatus.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ScoreSubmission.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Snapshot.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotImage.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedAutoMatchingCriteria.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatch.php209
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchCreateRequest.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchData.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchDataRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchModification.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchParticipant.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchRematch.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchResults.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchSync.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchTurn.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration.php236
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfiguration.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationDetail.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberAffixConfiguration.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberFormatConfiguration.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/ImageConfiguration.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfiguration.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationDetail.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedString.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedStringBundle.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/AchievementConfigurations.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/ImageConfigurations.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/LeaderboardConfigurations.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement.php335
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetAllResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetMultipleForAllRequest.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetResponse.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/EventsResetMultipleForAllRequest.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayedResource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerExperienceInfoResource.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerLevelResource.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayer.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayerList.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Player.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerName.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetAllResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetResponse.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ProfileSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/QuestsResetMultipleForAllRequest.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Achievements.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Applications.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Events.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Players.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Quests.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Rooms.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Scores.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/TurnBasedMatches.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ScoresResetMultipleForAllRequest.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics.php720
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Annotation.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/AnnotationSet.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CallSet.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CancelOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CigarUnit.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ClinicalCondition.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CodingSequence.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ComputeEngine.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CoverageBucket.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Dataset.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Entry.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Exon.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Experiment.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportReadGroupSetRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportVariantSetRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExternalId.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GenomicsEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GetIamPolicyRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/LinearAlignment.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListBasesResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListCoverageBucketsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListDatasetsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/MergeVariantsRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationEvent.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationMetadata.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Policy.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Position.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Program.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Range.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Read.php177
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroup.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroupSet.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Reference.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceBound.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceSet.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotations.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotationsets.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Callsets.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php214
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Readgroupsets.php166
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReadgroupsetsCoveragebuckets.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Reads.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/References.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Referencesets.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variants.php213
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variantsets.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/RuntimeMetadata.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsRequest.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsRequest.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsRequest.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsRequest.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SetIamPolicyRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsRequest.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsRequest.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Transcript.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/UndeleteDatasetRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Variant.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantAnnotation.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantCall.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSet.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSetMetadata.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail.php1136
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Draft.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Filter.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/History.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Label.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Message.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Profile.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php229
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php162
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php135
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SendAs.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Thread.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Groups.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Resource/Archive.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php300
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Resource/Groups.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam.php248
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/AuditData.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CloudAuditOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Condition.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CounterOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountKeyRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/DataAccessOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/IamEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountKeysResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/LogConfig.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Policy.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/PolicyDelta.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php215
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccountsKeys.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Role.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Rule.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccountKey.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SetIamPolicyRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit.php143
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/CreateAuthUriResponse.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DeleteAccountResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DownloadAccountResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/EmailTemplate.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetAccountInfoResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetOobConfirmationCodeResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetRecaptchaParamResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php147
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequestCustomParameter.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDeleteAccountRequest.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDownloadAccountRequest.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetAccountInfoRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetProjectConfigResponse.php135
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyResetPasswordRequest.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetAccountInfoRequest.php211
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigRequest.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyUploadAccountRequest.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdpConfig.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Relyingparty.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/ResetPasswordResponse.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Resource/Relyingparty.php252
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponse.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponseProviderUserInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SignupNewUserResponse.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponseError.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfo.php176
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfoProviderUserInfo.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyAssertionResponse.php373
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyCustomTokenResponse.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyPasswordResponse.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/SearchResponse.php53
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing.php209
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignment.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentInsert.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/Resource/LicenseAssignments.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging.php640
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/HttpRequest.php147
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LabelDescriptor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesRequest.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogMetricsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogsResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListMonitoredResourceDescriptorsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListSinksResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntry.php142
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntryOperation.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntrySourceLocation.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogLine.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogMetric.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogSink.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LoggingEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResourceDescriptor.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/RequestLog.php312
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccounts.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsLogs.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Folders.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersLogs.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Organizations.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsLogs.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsMetrics.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceLocation.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceReference.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesRequest.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesResponse.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager.php229
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AccessConfig.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Action.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AllowedRule.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModule.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModuleStatus.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeployState.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Deployment.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsResource.php92
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DiskAttachment.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/EnvVariable.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ExistingDisk.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModule.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModuleStatus.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModule.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModuleStatus.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModule.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModuleStatus.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Metadata.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/MetadataItem.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Module.php90
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ModuleStatus.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkInterface.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModule.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModuleStatus.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDisk.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDiskInitializeParams.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ParamOverride.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModule.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModuleStatus.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParams.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParamsV1Beta1.php154
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ServiceAccount.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Tag.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Template.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesResource.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Attributes.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Issue.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/ListProductsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/Accounts.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror.php379
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Account.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Attachment.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AttachmentsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AuthToken.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Command.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Contact.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/ContactsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Location.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/LocationsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuItem.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuValue.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Notification.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/NotificationConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Accounts.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Contacts.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Locations.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Settings.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Subscriptions.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Timeline.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/TimelineAttachments.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Setting.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Subscription.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/SubscriptionsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineItem.php262
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserAction.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring.php396
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/BucketOptions.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdPayload.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdValue.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateCollectdTimeSeriesRequest.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateTimeSeriesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Explicit.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Exponential.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Field.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Group.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/LabelDescriptor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Linear.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupMembersResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMetricDescriptorsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMonitoredResourceDescriptorsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Metric.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResourceDescriptor.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoringEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Option.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Point.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Range.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsCollectdTimeSeries.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php72
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/SourceContext.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeInterval.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeSeries.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Type.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TypedValue.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2.php150
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Jwk.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/JwkKeys.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/Userinfo.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2Me.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Tokeninfo.php110
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Userinfoplus.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2Args.php72
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsRects.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsSecondaryRects.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2PageRect.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Result.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResults.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElement.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocks.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocksUrls.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultPageStats.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultRuleGroupsElement.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultVersion.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners.php877
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AdWordsManagerAccountInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Analytics.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsDataPoint.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsSummary.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AvailableOffer.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Certification.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationExamStatus.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationStatus.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Company.php220
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CompanyRelation.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CountryOfferInfo.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadRequest.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Date.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/DebugInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/EventData.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamStatus.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamToken.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetCompanyResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetPartnersStatusResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/HistoricalOffer.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LatLng.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Lead.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListAnalyticsResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListCompaniesResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListLeadsResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersHistoryResponse.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListUserStatesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LocalizedCompanyInfo.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Location.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventRequest.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Money.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OfferCustomer.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OptIns.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PartnersEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PublicProfile.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Rank.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RecaptchaChallenge.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RequestMetadata.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Analytics.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/ClientMessages.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php150
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/CompaniesLeads.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Exams.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Offers.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserEvents.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php157
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ResponseMetadata.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/SpecializationStatus.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/TrafficSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/User.php118
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserOverrides.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserProfile.php150
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People.php160
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Address.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/AgeRangeType.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Biography.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Birthday.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/BraggingRights.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ContactGroupMembership.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/CoverPhoto.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Date.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/DomainMembership.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/EmailAddress.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Event.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/FieldMetadata.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Gender.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/GetPeopleResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ImClient.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Interest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ListConnectionsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Locale.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Membership.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Name.php148
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Nickname.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Occupation.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Organization.php150
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Person.php319
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonMetadata.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonResponse.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PhoneNumber.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Photo.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ProfileMetadata.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Relation.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipInterest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipStatus.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Residence.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/People.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/PeopleConnections.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Skill.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Source.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Tagline.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Url.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies.php299
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Avail.php319
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Component.php220
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ExperienceLocale.php229
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListAvailsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListComponentsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListExperienceLocalesResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListOrdersResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListStoreInfosResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Order.php229
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/Accounts.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsAvails.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponents.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponentsType.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsExperienceLocales.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsOrders.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfos.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfosCountry.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/StoreInfo.php247
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner.php339
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsAvailsResource.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsExperienceLocalesResource.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsOrdersResource.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsResource.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosCountryResource.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosResource.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Avail.php310
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ExperienceLocale.php229
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListAvailsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListExperienceLocalesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListOrdersResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListStoreInfosResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Order.php229
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/StoreInfo.php247
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus.php267
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Acl.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Activity.php206
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActor.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorName.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorVerification.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityFeed.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObject.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActor.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorVerification.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachments.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsEmbed.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsFullImage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsImage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnails.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnailsImage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectPlusoners.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectReplies.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectResharers.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityProvider.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Comment.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActor.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfoYoutubeActorInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorVerification.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentFeed.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentInReplyTo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentObject.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentPlusoners.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PeopleFeed.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Person.php300
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonAgeRange.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCover.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverPhoto.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonEmails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonImage.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonName.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonOrganizations.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonPlacesLived.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonUrls.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Place.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlaceAddress.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlacePosition.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlusAclentryResource.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Activities.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Comments.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/People.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains.php453
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Acl.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Activity.php206
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActor.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorName.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorVerification.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityFeed.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObject.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActor.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorVerification.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachments.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsEmbed.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsFullImage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsImage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsPreviewThumbnails.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnails.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnailsImage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectPlusoners.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectReplies.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectResharers.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectStatusForViewer.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityProvider.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Audience.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/AudiencesFeed.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Circle.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CircleFeed.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CirclePeople.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Comment.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActor.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfoYoutubeActorInfo.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorVerification.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentFeed.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentInReplyTo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentObject.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentPlusoners.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Media.php187
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthor.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthorImage.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaExif.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PeopleFeed.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Person.php281
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCover.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverPhoto.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonEmails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonImage.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonName.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonOrganizations.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonPlacesLived.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonUrls.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Place.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlaceAddress.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlacePosition.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlusDomainsAclentryResource.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Activities.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Audiences.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Circles.php154
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Comments.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Media.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/People.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Videostream.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction.php205
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Analyze.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescription.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeatures.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategorical.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategoricalValues.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesNumeric.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesText.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeature.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureNumeric.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureText.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeModelDescription.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Input.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InputInput.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2ModelInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InsertTrainingInstances.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Output.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/OutputOutputMulti.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/PredictionList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Hostedmodels.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Trainedmodels.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Update.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon.php353
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AdvertisedId.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AttachmentInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Beacon.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconAttachment.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconInfo.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Date.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/DeleteAttachmentsResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Diagnostics.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistration.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistrationParams.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/IndoorLevel.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/LatLng.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconAttachmentsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconsResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListDiagnosticsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListNamespacesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Observation.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconNamespace.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beaconinfo.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php316
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsDiagnostics.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Namespaces.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/V1beta1.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub.php353
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/AcknowledgeRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListSubscriptionsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicSubscriptionsResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyAckDeadlineRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyPushConfigRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Policy.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubMessage.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PushConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ReceivedMessage.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php243
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/SetIamPolicyRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Topic.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AircraftData.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AirportData.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/BagDescriptor.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CarrierData.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CityData.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Data.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FareInfo.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FlightInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FreeBaggageAllowance.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/LegInfo.php174
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PassengerCounts.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PricingInfo.php143
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Resource/Trips.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentInfo.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentPricing.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInfo.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInput.php122
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxData.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxInfo.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TimeOfDayRange.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOption.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsRequest.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool.php343
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManager.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagerList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersAbandonInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersDeleteInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersRecreateInstancesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetInstanceTemplateRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetTargetPoolsRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Operation.php222
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/ReplicaPoolAutoHealingPolicy.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/InstanceGroupManagers.php223
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/ZoneOperations.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater.php306
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdate.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Operation.php222
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/RollingUpdates.php177
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/ZoneOperations.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdate.php167
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdatePolicy.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports.php255
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activities.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activity.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityActor.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEvents.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEventsParameters.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityId.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Channel.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Channels.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/CustomerUsageReports.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReport.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportEntity.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportParameters.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReports.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller.php313
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Address.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ChangePlanRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Customer.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/RenewalSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyGetwatchdetailsResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyResource.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Customers.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Resellernotify.php72
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php265
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Seats.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscription.php189
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlan.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlanCommitmentInterval.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTransferInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTrialSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscriptions.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews.php339
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Label.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ListResourceResponseItem.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Operation.php222
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationList.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneOperations.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneViews.php190
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ResourceView.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ServiceEndpoint.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsAddResourcesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsGetServiceResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsList.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsListResourcesResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsRemoveResourcesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsSetServiceRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin.php811
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/AclEntry.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupConfiguration.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRun.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRunsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BinLogCoordinates.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/CloneContext.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Database.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseFlags.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstance.php244
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstanceFailoverReplica.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabasesListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContext.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextCsvExportOptions.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FailoverContext.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FlagsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContext.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContextCsvImportOptions.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesCloneRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesExportRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesFailoverRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesImportRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesRestoreBackupRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesTruncateLogRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpMapping.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Labels.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/LocationPreference.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MaintenanceWindow.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MySqlReplicaConfiguration.php120
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OnPremisesConfiguration.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Operation.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationError.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationErrors.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ReplicaConfiguration.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php100
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php311
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Operations.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/RestoreBackupContext.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Settings.php208
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCert.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertDetail.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsCreateEphemeralRequest.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Tier.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TiersListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TruncateLogContext.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/User.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/UsersListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing.php171
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Checksum.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ClientInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Constraints.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesRequest.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesRequest.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListThreatListsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateResponse.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/MetadataEntry.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawHashes.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawIndices.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedUpdates.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/FullHashes.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatListUpdates.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatLists.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatMatches.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RiceDeltaEncoding.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntry.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntryMetadata.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntrySet.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatInfo.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatListDescriptor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatMatch.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionError.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ScriptStackTraceElement.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/BlockedResource.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Image.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/MobileFriendlyIssue.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingTools.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingToolsMobileFriendlyTest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/ResourceIssue.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestResponse.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/TestStatus.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckResponse.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Distribution.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExplicitBuckets.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExponentialBuckets.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LinearBuckets.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValue.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValueSet.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Money.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Operation.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaError.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaInfo.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaOperation.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaProperties.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportError.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportInfo.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php191
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement.php366
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Advice.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Analytics.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AnalyticsDestination.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Api.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditConfig.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditLogConfig.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthProvider.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthRequirement.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Authentication.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthorizationConfig.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Backend.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ChangeReport.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CloudAuditOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Condition.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigChange.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigFile.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigRef.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigSource.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Context.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ContextRule.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Control.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CounterOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomError.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomErrorRule.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomHttpPattern.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DataAccessOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DeleteServiceStrategy.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Diagnostic.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DisableServiceRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Documentation.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DocumentationRule.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnableServiceRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Endpoint.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Enum.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnumValue.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Experimental.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Field.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportResponse.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GetIamPolicyRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Http.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LabelDescriptor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceConfigsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceRolloutsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServicesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogConfig.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogDescriptor.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Logging.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LoggingDestination.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ManagedService.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaDownload.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaUpload.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Method.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Mixin.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoredResourceDescriptor.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Monitoring.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoringDestination.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OAuthRequirements.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OperationMetadata.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Option.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Page.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Policy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Operations.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php265
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rollout.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rule.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Service.php287
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SetIamPolicyRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceContext.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Step.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameter.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameterRule.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameters.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TrafficPercentStrategy.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Type.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UndeleteServiceResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Usage.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UsageRule.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Visibility.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/VisibilityRule.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry.php221
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Endpoint.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointEndpointVisibility.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Operation.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationError.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationErrorErrors.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarnings.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarningsData.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationsListResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Endpoints.php157
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Operations.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Api.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthProvider.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthRequirement.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Authentication.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthorizationConfig.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Backend.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/BackendRule.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Context.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ContextRule.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Control.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomError.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomErrorRule.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomHttpPattern.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DisableServiceRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Documentation.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DocumentationRule.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnableServiceRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Endpoint.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Enum.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnumValue.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Experimental.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Field.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Http.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LabelDescriptor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ListEnabledServicesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LogDescriptor.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Logging.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LoggingDestination.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaDownload.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaUpload.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Method.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Mixin.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoredResourceDescriptor.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Monitoring.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoringDestination.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OAuthRequirements.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OperationMetadata.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Option.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Page.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/PublishedService.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SearchServicesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Service.php287
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceContext.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Step.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameter.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameterRule.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameters.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Type.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Usage.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/UsageRule.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Visibility.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/VisibilityRule.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets.php297
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddConditionalFormatRuleRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendCellsRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendDimensionRequest.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendValuesResponse.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoFillRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoResizeDimensionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandedRange.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandingProperties.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartAxis.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartDomain.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSeries.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSpec.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicFilter.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchGetValuesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetRequest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetResponse.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesRequest.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesResponse.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanCondition.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanRule.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Border.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Borders.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellData.php119
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellFormat.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartData.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSourceRange.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSpec.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearBasicFilterRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Color.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionValue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionalFormatRule.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopyPasteRequest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopySheetToAnotherSpreadsheetRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CutPasteRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DataValidationRule.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteBandingRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteEmbeddedObjectRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteFilterViewRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteNamedRangeRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteProtectedRangeRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteRangeRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteSheetRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionProperties.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionRange.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetRequest.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Editors.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedChart.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedObjectPosition.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ErrorValue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ExtendedValue.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterCriteria.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterView.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceRequest.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceResponse.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GradientRule.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridCoordinate.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridData.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridRange.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertDimensionRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertRangeRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InterpolationPoint.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/IterativeCalculationSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MergeCellsRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MoveDimensionRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NamedRange.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NumberFormat.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/OverlayPosition.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Padding.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PasteDataRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PieChartSpec.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotFilterCriteria.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroup.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupSortValueBucket.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupValueMetadata.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotTable.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotValue.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ProtectedRange.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RepeatCellRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Request.php511
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/Spreadsheets.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsSheets.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php203
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Response.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RowData.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetBasicFilterRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetDataValidationRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Sheet.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SheetProperties.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortRangeRequest.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortSpec.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SourceAndDestination.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Spreadsheet.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SpreadsheetProperties.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormat.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormatRun.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextRotation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextToColumnsRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UnmergeCellsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBandingRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBordersRequest.php91
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateCellsRequest.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateChartSpecRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleResponse.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateDimensionPropertiesRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateFilterViewRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateNamedRangeRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateProtectedRangeRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSheetPropertiesRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSpreadsheetPropertiesRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateValuesResponse.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ValueRange.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent.php1114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdwordsLink.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountIdentifier.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShipping.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCarrierRate.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCondition.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingLocationGroup.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingPostalCodeRange.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTable.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTableCell.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingService.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCalculationMethod.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCostRule.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusDataQualityIssue.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusExampleItem.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTax.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTaxTaxRule.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsAuthInfoResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponseEntry.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequestEntry.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponseEntry.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequestEntry.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponseEntry.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequestEntry.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponseEntry.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarrierRate.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarriersCarrier.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFetchSchedule.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFormat.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatus.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusError.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusExample.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequestEntry.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponseEntry.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequestEntry.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponseEntry.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Error.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Errors.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Headers.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Installment.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Inventory.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequestEntry.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponseEntry.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryPickup.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetRequest.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LocationIdSet.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LoyaltyPoints.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php212
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderAddress.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCancellation.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderDeliveryDetails.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItem.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php159
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProductVariantAttribute.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemReturnInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetails.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetailsMethod.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPaymentMethod.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionBenefit.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderRefund.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReturn.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipment.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipmentLineItemShipment.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAdvanceTestOrderResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelRequest.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntry.php135
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancel.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancelLineItem.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRefund.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnLineItem.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryShipLineItems.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateShipment.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponseEntry.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetByMerchantOrderIdResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetTestOrderTemplateResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemRequest.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeGroup.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeRange.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Price.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php687
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAspect.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomAttribute.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomGroup.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductDestination.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShipping.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingDimension.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingWeight.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDataQualityIssue.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductTax.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingBaseMeasure.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingMeasure.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequestEntry.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponseEntry.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequestEntry.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponseEntry.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php164
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountshipping.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php146
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeedstatuses.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Inventory.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php287
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Row.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Service.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingSettings.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequestEntry.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponseEntry.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsGetSupportedCarriersResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Table.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItemProduct.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderPaymentMethod.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Value.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Weight.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/Resource/WebResource.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequestSite.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenResponse.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResource.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResourceSite.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides.php128
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AffineTransform.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AutoText.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationRequest.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Bullet.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorScheme.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorStop.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateParagraphBulletsRequest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartRequest.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideRequest.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CropProperties.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteObjectRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteParagraphBulletsRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableColumnRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableRowRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTextRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Dimension.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectRequest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Group.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Image.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ImageProperties.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableColumnsRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableRowsRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTextRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutPlaceholderIdMapping.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutProperties.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutReference.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Line.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineFill.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineProperties.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Link.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NestingLevel.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NotesProperties.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OpaqueColor.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OptionalColor.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Outline.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OutlineFill.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Page.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageBackgroundFill.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElement.php148
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElementProperties.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageProperties.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphMarker.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphStyle.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Placeholder.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Presentation.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Range.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Recolor.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RefreshSheetsChartRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartRequest.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Request.php331
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/PresentationsPages.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Response.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RgbColor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shadow.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shape.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeBackgroundFill.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeProperties.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChart.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChartProperties.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Size.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlideProperties.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlidesList.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SolidFill.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/StretchedPictureFill.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SubstringMatchCriteria.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Table.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCell.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellBackgroundFill.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellLocation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellProperties.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableColumnProperties.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRange.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRow.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextContent.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextElement.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextRun.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextStyle.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ThemeColorPair.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateImagePropertiesRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateLinePropertiesRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePageElementTransformRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePagePropertiesRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateParagraphStyleRequest.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateShapePropertiesRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateSlidesPositionRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTableCellPropertiesRequest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTextStyleRequest.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateVideoPropertiesRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Video.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/VideoProperties.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WeightedFontFamily.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WordArt.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WriteControl.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner.php541
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditConfig.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditLogConfig.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/BeginTransactionRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Binding.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ChildLink.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CloudAuditOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitRequest.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Condition.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CounterOptions.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseMetadata.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceMetadata.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/DataAccessOptions.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Database.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Delete.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Field.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetDatabaseDdlResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetIamPolicyRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Instance.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/InstanceConfig.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeyRange.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeySet.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListDatabasesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstanceConfigsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstancesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/LogConfig.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Mutation.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PartialResultSet.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PlanNode.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Policy.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/QueryPlan.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadOnly.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadRequest.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadWrite.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstanceConfigs.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstances.php253
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabases.php188
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php231
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesOperations.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSet.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetMetadata.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/RollbackRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Rule.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Session.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SetIamPolicyRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ShortRepresentation.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SpannerEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/StructType.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsResponse.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Transaction.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionSelector.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Type.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlMetadata.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceMetadata.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceRequest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Write.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/AntennaCharacteristics.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DatabaseSpec.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DbUpdateSpec.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceCapabilities.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceDescriptor.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceOwner.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceValidity.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/EventTime.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/FrequencyRange.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocation.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationEllipse.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPoint.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPolygon.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoSpectrumSchedule.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchRequest.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchResponse.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumRequest.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumResponse.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitRequest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseRequest.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseResponse.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterRequest.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterResponse.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceRequest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceResponse.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Resource/Paws.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/RulesetInfo.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumMessage.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumSchedule.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Vcard.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardAddress.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTelephone.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTypedText.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech.php133
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/AsyncRecognizeRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/CancelOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionAudio.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Speech.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechContext.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionAlternative.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeRequest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage.php1126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Bucket.php201
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControl.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControlProjectTeam.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControls.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketCors.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketEncryption.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycle.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRule.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleAction.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLogging.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketOwner.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketVersioning.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketWebsite.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Buckets.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Channel.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequest.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjects.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjectsObjectPreconditions.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControl.php139
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControlProjectTeam.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControls.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Objects.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Policy.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/BucketAccessControls.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php208
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Channels.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/DefaultObjectAccessControls.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/ObjectAccessControls.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php444
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/RewriteResponse.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObject.php268
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectCustomerEncryption.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectOwner.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/TestIamPermissionsResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer.php233
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsAccessKey.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsS3Data.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Date.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorLogEntry.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorSummary.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GcsData.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GoogleServiceAccount.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/HttpData.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListOperationsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListTransferJobsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ObjectConditions.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Operation.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/PauseTransferOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/GoogleServiceAccounts.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/V1.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ResumeTransferOperationRequest.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Schedule.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/StoragetransferEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TimeOfDay.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferCounters.php165
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferJob.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOperation.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOptions.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferSpec.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/UpdateTransferJobRequest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys.php210
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/FieldMask.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanel.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanelsListResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/PageInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Mobileapppanels.php74
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Results.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Surveys.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsGetRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsMask.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Survey.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyCost.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestion.php185
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestionImage.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyRejection.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyResults.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysDeleteResponse.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysListResponse.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartRequest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStopResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/TokenPagination.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager.php1099
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Account.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/AccountAccess.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Condition.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Container.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerAccess.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionRequestVersionOptions.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Environment.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Folder.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/FolderEntities.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountUsersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainerVersionsResponse.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListEnvironmentsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListFoldersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTagsResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTriggersResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListVariablesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Macro.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Parameter.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/PublishContainerVersionResponse.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/Accounts.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainers.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFolders.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFoldersEntities.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersMoveFolders.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersReauthorizeEnvironments.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTags.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTriggers.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVariables.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVersions.php162
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsPermissions.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Rule.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/SetupTag.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Tag.php206
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/TeardownTag.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Trigger.php205
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/UserAccess.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Variable.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue.php249
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Taskqueues.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Tasks.php144
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Task.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueue.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueAcl.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueStats.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks2.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks.php295
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php179
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Task.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLinks.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskList.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLists.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Tasks.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults.php664
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Any.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BasicPerfSampleSeries.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/CPUInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Duration.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Execution.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FailureDetail.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FileReference.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/History.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Image.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/InconclusiveDetail.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListExecutionsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListHistoriesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSampleSeriesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSamplesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepThumbnailsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/MemoryInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Outcome.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfEnvironment.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfMetricsSummary.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSample.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSampleSeries.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ProjectSettings.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PublishXunitXmlFilesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/Projects.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistories.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsSteps.php228
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfMetricsSummary.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeries.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsThumbnails.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SkippedDetail.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Status.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Step.php157
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepDimensionValueEntry.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepLabelsEntry.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SuccessDetail.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestCaseReference.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestExecutionStep.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestSuiteOverview.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestTiming.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Thumbnail.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Timestamp.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecution.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecutionStep.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExitCode.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolOutputReference.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing.php137
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Annotation.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/AttributeValue.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/BatchUpdateSpansRequest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Link.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListSpansResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListTracesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Module.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/NetworkEvent.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/Projects.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/ProjectsTraces.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Span.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/SpanUpdates.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackFrame.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackTrace.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TimeEvent.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Trace.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TracingEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsResourceItems.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesResource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Detections.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Languages.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Translations.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsResource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSnapshot.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSummary.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Resource/Url.php72
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/StringCount.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Url.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/UrlHistory.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageRequest.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesRequest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Block.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Color.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ColorInfo.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHint.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsAnnotation.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsParams.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedBreak.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedLanguage.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DominantColorsAnnotation.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/EntityAnnotation.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/FaceAnnotation.php160
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Feature.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Image.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageContext.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageProperties.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageSource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Landmark.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLng.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLongRect.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LocationInfo.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Page.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Paragraph.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Position.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Property.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Resource/Images.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/SafeSearchAnnotation.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Status.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Symbol.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextAnnotation.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextProperty.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Vertex.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebDetection.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebEntity.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebImage.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebPage.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Word.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts.php72
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Resource/Webfonts.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Webfont.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/WebfontList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters.php305
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDataRow.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilter.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilterGroup.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Searchanalytics.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sitemaps.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sites.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorscounts.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorssamples.php92
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryRequest.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitemapsListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitesListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCount.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCountsPerType.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsCountsQueryResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSample.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSamplesListResponse.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlSampleDetails.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSite.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemap.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemapContent.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube.php1944
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/AccessPolicy.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Activity.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetails.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsBulletin.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsChannelItem.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsComment.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsFavorite.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsLike.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPlaylistItem.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPromotedItem.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsRecommendation.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSocial.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSubscription.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsUpload.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivitySnippet.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Caption.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionListResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionSnippet.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CdnSettings.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Channel.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBannerResource.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBrandingSettings.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetails.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetailsRelatedPlaylists.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentOwnerDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPing.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPings.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelLocalization.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelProfileDetails.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSection.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionContentDetails.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionListResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionLocalization.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionSnippet.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionTargeting.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSettings.php148
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSnippet.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatistics.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatus.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelTopicDetails.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Comment.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentListResponse.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentSnippet.php156
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThread.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadListResponse.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadReplies.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadSnippet.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ContentRating.php634
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEvent.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventListResponse.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventSnippet.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GeoPoint.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategory.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategoryListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategorySnippet.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguage.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageListResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageSnippet.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegion.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionListResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionSnippet.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ImageSettings.php224
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/IngestionInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoBranding.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPosition.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPromotion.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoTiming.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LanguageTag.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcast.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastContentDetails.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastSnippet.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatistics.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatus.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopic.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicDetails.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicSnippet.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBan.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBanSnippet.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatFanFundingEventDetails.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessage.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageAuthorDetails.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageDeletedDetails.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageListResponse.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageRetractedDetails.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php175
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModerator.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorSnippet.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollClosedDetails.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollEditedDetails.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollItem.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollOpenedDetails.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollVotedDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatSuperChatDetails.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatTextMessageDetails.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatUserBannedMessageDetails.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStream.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamConfigurationIssue.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamContentDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamHealthStatus.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamSnippet.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamStatus.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedProperty.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedString.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/MonitorStreamInfo.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PageInfo.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Playlist.php98
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistContentDetails.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItem.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemContentDetails.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemSnippet.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemStatus.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistLocalization.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistPlayer.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistSnippet.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistStatus.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItem.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItemId.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PropertyValue.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Activities.php109
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Captions.php215
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelBanners.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelSections.php190
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Channels.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/CommentThreads.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Comments.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/FanFundingEvents.php60
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/GuideCategories.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nLanguages.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nRegions.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveBroadcasts.php438
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatBans.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatMessages.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatModerators.php81
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveStreams.php244
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/PlaylistItems.php178
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Playlists.php211
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Search.php185
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Sponsors.php51
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Subscriptions.php136
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/SuperChatEvents.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Thumbnails.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoAbuseReportReasons.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoCategories.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Videos.php315
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Watermarks.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ResourceId.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchListResponse.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResult.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResultSnippet.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorListResponse.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorSnippet.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Subscription.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionContentDetails.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSnippet.php86
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSubscriberSnippet.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEvent.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventListResponse.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Thumbnail.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailDetails.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailSetResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/TokenPagination.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Video.php198
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReport.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReason.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonListResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonSnippet.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportSecondaryReason.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAgeGating.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategory.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategoryListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategorySnippet.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetails.php114
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetailsRegionRestriction.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetails.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsAudioStream.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsVideoStream.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoGetRatingResponse.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoListResponse.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLiveStreamingDetails.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLocalization.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoMonetizationDetails.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoPlayer.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetails.php94
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetailsProcessingProgress.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProjectDetails.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRating.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRecordingDetails.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSnippet.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatistics.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatus.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestions.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestionsTagSuggestion.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoTopicDetails.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/WatchSettings.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php240
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReport.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinition.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinitionList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportList.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportOutputs.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportTimeSpan.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Group.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupContentDetails.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItem.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemListResponse.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemResource.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupListResponse.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupSnippet.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReportDefinitions.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReports.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/GroupItems.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php142
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Reports.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTable.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTableColumnHeaders.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting.php242
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Job.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListJobsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportTypesResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportsResponse.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Media.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Report.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ReportType.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php77
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Media.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/YoutubereportingEmpty.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/ServiceTest.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/bootstrap.php3
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/.gitattributes9
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/LICENSE203
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/README.md366
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/composer.json41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Revoke.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Verify.php269
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Client.php1118
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Collection.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Exception.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/Batch.php249
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/MediaFileUpload.php348
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/REST.php182
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Model.php307
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Exception.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/README.md5
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Resource.php296
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Exception.php20
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Retryable.php24
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Runner.php281
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Utils/UriTemplate.php333
-rw-r--r--mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/autoload.php21
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/.editorconfig18
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/.gitignore3
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/.php_cs54
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/.travis.yml31
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/CHANGELOG.md8
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/CONTRIBUTING.md73
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/COPYING202
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/LICENSE203
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/README.md150
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/autoload.php34
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/composer.json28
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/phpunit.xml.dist16
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/ApplicationDefaultCredentials.php173
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Cache/InvalidArgumentException.php24
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Cache/Item.php185
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Cache/MemoryCacheItemPool.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/CacheTrait.php72
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/AppIdentityCredentials.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/GCECredentials.php219
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/IAMCredentials.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountCredentials.php177
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php131
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/UserRefreshCredentials.php110
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/CredentialsLoader.php163
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenCache.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenInterface.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle5HttpHandler.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle6HttpHandler.php36
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/HttpHandlerFactory.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/AuthTokenMiddleware.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php175
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/SimpleMiddleware.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/OAuth2.php1306
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/AuthTokenSubscriber.php118
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php177
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/SimpleSubscriber.php90
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/ApplicationDefaultCredentialsTest.php299
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/BaseTest.php32
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/ItemTest.php125
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/MemoryCacheItemPoolTest.php189
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/CacheTraitTest.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/AppIndentityCredentialsTest.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/GCECredentialsTest.php124
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/IAMCredentialsTest.php83
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/ServiceAccountCredentialsTest.php508
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/UserRefreshCredentialsTest.php228
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenCacheTest.php146
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenTest.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle5HttpHandlerTest.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle6HttpHandlerTest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/HttpHandlerFactoryTest.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/AuthTokenMiddlewareTest.php336
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/ScopedAccessTokenMiddlewareTest.php245
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/SimpleMiddlewareTest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/OAuth2Test.php858
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/AuthTokenSubscriberTest.php325
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/ScopedAccessTokenSubscriberTest.php238
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/SimpleSubscriberTest.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/bootstrap.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/.config/gcloud/application_default_credentials.json7
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.json7
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.pem15
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/public.pem6
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/.config/gcloud/application_default_credentials.json6
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/private.json6
-rw-r--r--mayor-orig/www/include/share/googleapi/google/auth/tests/mocks/AppIdentityService.php19
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/CHANGELOG.md1264
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/LICENSE19
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/README.md89
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/UPGRADING.md1203
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/composer.json44
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Client.php414
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/ClientInterface.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJar.php314
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php90
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php71
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SetCookie.php404
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/BadResponseException.php27
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ClientException.php7
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ConnectException.php37
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/GuzzleException.php4
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/RequestException.php217
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/SeekException.php27
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ServerException.php7
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php4
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TransferException.php4
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactory.php559
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php27
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlHandler.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php197
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/EasyHandle.php92
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/MockHandler.php189
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/Proxy.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/StreamHandler.php533
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/HandlerStack.php273
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/MessageFormatter.php182
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Middleware.php254
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Pool.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php106
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RedirectMiddleware.php237
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RequestOptions.php255
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RetryMiddleware.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/TransferStats.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/UriTemplate.php241
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions.php331
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions_include.php6
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/CHANGELOG.md65
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/LICENSE19
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/Makefile13
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/README.md504
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/composer.json34
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/AggregateException.php16
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/CancellationException.php9
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Coroutine.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/EachPromise.php229
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/FulfilledPromise.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Promise.php280
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromiseInterface.php93
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromisorInterface.php15
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectedPromise.php87
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectionException.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueue.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueueInterface.php25
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions.php457
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions_include.php6
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/CHANGELOG.md110
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/LICENSE19
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/README.md739
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/composer.json39
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/AppendStream.php233
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/BufferStream.php137
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/CachingStream.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/DroppingStream.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/FnStream.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/InflateStream.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LazyOpenStream.php39
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LimitStream.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MessageTrait.php183
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MultipartStream.php153
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/NoSeekStream.php22
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/PumpStream.php165
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Request.php142
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Response.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/ServerRequest.php358
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Stream.php257
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamDecoratorTrait.php149
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamWrapper.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UploadedFile.php316
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Uri.php702
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriNormalizer.php216
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriResolver.php219
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions.php828
-rw-r--r--mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions_include.php6
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/.php_cs59
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/CHANGELOG.md342
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/LICENSE19
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/README.md95
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/composer.json66
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/doc/01-usage.md231
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/doc/02-handlers-formatters-processors.md157
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/doc/03-utilities.md13
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/doc/04-extending.md76
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/doc/sockets.md39
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/phpunit.xml.dist19
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/ErrorHandler.php230
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php78
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php89
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php116
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php36
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php208
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LineFormatter.php179
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php166
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php297
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractHandler.php186
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php101
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AmqpHandler.php148
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php230
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BufferHandler.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php211
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php72
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CubeHandler.php151
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Curl/Util.php57
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php169
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php128
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FilterHandler.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php34
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php163
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php195
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GelfHandler.php73
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GroupHandler.php104
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerInterface.php90
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php108
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HipChatHandler.php350
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogglyHandler.php102
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MailHandler.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MandrillHandler.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php21
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php59
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php185
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php202
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NullHandler.php45
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php242
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PsrHandler.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PushoverHandler.php185
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RavenHandler.php232
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RedisHandler.php97
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RollbarHandler.php132
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php178
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SamplingHandler.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php294
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackHandler.php215
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SocketHandler.php346
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/StreamHandler.php176
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php99
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogHandler.php67
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php56
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php103
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/TestHandler.php154
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php61
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Logger.php700
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/GitProcessor.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php35
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php63
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php35
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php63
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php48
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/TagProcessor.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/UidProcessor.php46
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/WebProcessor.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Registry.php134
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/ErrorHandlerTest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php79
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php55
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php62
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php258
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php183
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php222
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php40
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php333
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php262
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php423
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php110
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php142
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php115
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php80
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php136
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php156
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php31
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php165
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php52
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php82
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php239
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php66
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php170
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php279
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php96
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep0
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php85
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php88
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php95
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php117
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php25
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php112
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php130
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php279
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php75
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php27
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php65
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php111
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php200
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php273
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php50
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php141
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php255
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php127
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RollbarHandlerTest.php84
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php211
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php387
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php155
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php107
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php309
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php184
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php44
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php76
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php70
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php64
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php121
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php69
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/LoggerTest.php548
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php29
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php42
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php41
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php30
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php43
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php49
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php33
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php113
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/PsrLogCompatTest.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/RegistryTest.php153
-rw-r--r--mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/TestCase.php58
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/AUTHORS6
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/LICENSE21
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/README.md74
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.json76
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.lock1819
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/AES.php126
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Base.php2553
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php577
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/DES.php1443
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Hash.php824
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC2.php688
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC4.php342
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RSA.php3053
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Random.php270
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php936
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php460
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php808
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ANSI.php574
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1.php1323
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php47
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/X509.php4823
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Math/BigInteger.php3755
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SCP.php337
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP.php3063
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php795
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH1.php1642
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH2.php4397
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php308
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/bootstrap.php16
-rw-r--r--mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/openssl.cnf6
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/CHANGELOG.md16
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/LICENSE.txt19
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/README.md9
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/composer.json25
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/src/CacheException.php10
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemInterface.php105
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemPoolInterface.php138
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/cache/src/InvalidArgumentException.php13
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/CHANGELOG.md36
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/LICENSE19
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/README.md13
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/composer.json26
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/src/MessageInterface.php187
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/src/RequestInterface.php129
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/src/ResponseInterface.php68
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/src/ServerRequestInterface.php261
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/src/StreamInterface.php158
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/src/UploadedFileInterface.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/http-message/src/UriInterface.php323
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/.gitignore1
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/LICENSE19
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/AbstractLogger.php128
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/InvalidArgumentException.php7
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LogLevel.php18
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareInterface.php18
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareTrait.php26
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerInterface.php123
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerTrait.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/NullLogger.php28
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/Test/LoggerInterfaceTest.php140
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/README.md45
-rw-r--r--mayor-orig/www/include/share/googleapi/psr/log/composer.json26
-rw-r--r--mayor-orig/www/include/share/net/class.smtp.php1152
-rw-r--r--mayor-orig/www/include/share/net/facebook.php70
-rw-r--r--mayor-orig/www/include/share/net/googleapi.php65
-rw-r--r--mayor-orig/www/include/share/net/phpmailer.php3552
-rw-r--r--mayor-orig/www/include/share/net/rest.php188
-rw-r--r--mayor-orig/www/include/share/net/upload.php58
-rw-r--r--mayor-orig/www/include/share/print/pdf.php270
-rw-r--r--mayor-orig/www/include/share/session/accountInfo.php39
-rw-r--r--mayor-orig/www/include/share/session/attrs.php63
-rw-r--r--mayor-orig/www/include/share/session/base.php171
-rw-r--r--mayor-orig/www/include/share/session/close.php96
-rw-r--r--mayor-orig/www/include/share/ssl/ssl.php461
-rw-r--r--mayor-orig/www/include/share/str/hyphen.php104
-rw-r--r--mayor-orig/www/include/share/str/tex.php51
-rw-r--r--mayor-orig/www/index.php33
-rw-r--r--mayor-orig/www/lang/de_DE/backend/ldap/attrs.php58
-rw-r--r--mayor-orig/www/lang/de_DE/module-auth/login.php5
-rw-r--r--mayor-orig/www/lang/de_DE/module-password/changeMyPassword.php7
-rw-r--r--mayor-orig/www/lang/de_DE/module-password/changePassword.php7
-rw-r--r--mayor-orig/www/lang/de_DE/module-session/accountInfo.php3
-rw-r--r--mayor-orig/www/lang/de_DE/module-session/createAccount.php7
-rw-r--r--mayor-orig/www/lang/de_DE/module-session/createGroup.php6
-rw-r--r--mayor-orig/www/lang/de_DE/module-session/download.php7
-rw-r--r--mayor-orig/www/lang/de_DE/module-session/groupInfo.php4
-rw-r--r--mayor-orig/www/lang/de_DE/module-session/search/searchAccount.php19
-rw-r--r--mayor-orig/www/lang/de_DE/module-session/search/searchGroup.php19
-rw-r--r--mayor-orig/www/lang/de_DE/share/session/attrs.php17
-rw-r--r--mayor-orig/www/lang/en_US/backend/ldap/attrs.php58
-rw-r--r--mayor-orig/www/lang/en_US/base/base.php18
-rw-r--r--mayor-orig/www/lang/en_US/date/names.php21
-rwxr-xr-xmayor-orig/www/lang/en_US/module-auth/login.php5
-rw-r--r--mayor-orig/www/lang/en_US/module-password/changeMyPassword.php7
-rw-r--r--mayor-orig/www/lang/en_US/module-password/changePassword.php7
-rw-r--r--mayor-orig/www/lang/en_US/module-session/accountInfo.php3
-rw-r--r--mayor-orig/www/lang/en_US/module-session/createAccount.php7
-rw-r--r--mayor-orig/www/lang/en_US/module-session/createGroup.php6
-rw-r--r--mayor-orig/www/lang/en_US/module-session/download.php7
-rw-r--r--mayor-orig/www/lang/en_US/module-session/groupInfo.php4
-rw-r--r--mayor-orig/www/lang/en_US/module-session/search/searchAccount.php19
-rw-r--r--mayor-orig/www/lang/en_US/module-session/search/searchGroup.php19
-rw-r--r--mayor-orig/www/lang/en_US/share/session/attrs.php17
-rw-r--r--mayor-orig/www/lang/hu_HU/backend/ads/attrs.php82
-rw-r--r--mayor-orig/www/lang/hu_HU/backend/ldap/attrs.php66
-rw-r--r--mayor-orig/www/lang/hu_HU/backend/ldapng/attrs.php63
-rw-r--r--mayor-orig/www/lang/hu_HU/backend/mysql/attrs.php22
-rw-r--r--mayor-orig/www/lang/hu_HU/base/base.php51
-rw-r--r--mayor-orig/www/lang/hu_HU/date/names.php29
-rw-r--r--mayor-orig/www/lang/hu_HU/module-auth/forgotten.php24
-rw-r--r--mayor-orig/www/lang/hu_HU/module-auth/login.php19
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/azonositok.php11
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/csoportok.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/fillhaladasi.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/intezmenyek.php28
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/rpcPrivilege.php12
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/szemeszterek.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/szuloiAzonositok.php19
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/tanevek.php26
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/admin/tankorok.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/base.php60
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesTipus.php11
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesek.php15
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/info.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/ujBejegyzes.php18
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/diakValaszto.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/ertekeles.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/kerdoivBetoltes.php28
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/osszesites.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/esemeny/esemenyDiak.php21
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/esemeny/jelentkezes.php17
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/esemeny/ujEsemeny.php25
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/export/bizonyitvany.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/export/diakExport.php76
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/export/kirBizonyitvanyExport.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/export/kreta.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/export/sulix.php7
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/export/tanarOsztalyOraszam.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/export/tantargyFelosztas.php12
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elmaradas.php7
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elszamolas.php19
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/haladasi.php38
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/helyettesites.php22
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/hetes.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/minuszora.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/ora.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/oralatogatas.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/osszevonas.php19
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/pluszora.php23
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/specialis.php39
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/stat.php23
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/haladasi/teremModositas.php14
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diak.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakIgazolatlan.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakLista.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/info.php9
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/nap.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/oktstat.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/ora.php27
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztaly.php46
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztalyNap.php14
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/admin.php12
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/hibabejelento.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnok.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnokFeliratkozas.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diak.php134
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakExport.php14
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakFelmentes.php60
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakStatusz.php20
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakSzulo.php53
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankor.php11
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankorJelentkezes.php29
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/felmentes.php15
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepesitesek.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzes.php22
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesOraterv.php20
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesTankor.php38
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/munkakozosseg.php36
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/osztaly.php40
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tanar.php53
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankor.php56
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorDiak.php22
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorLetszam.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorSzemeszter.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanar.php12
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanarHozzarendeles.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/terem.php14
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tovabbkepzes.php34
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/valtas.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/zaradek.php9
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/koszi/esemenyAdmin.php23
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/koszi/koszi.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/koszi/kosziAdmin.php17
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/naplo.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/diakTankorJelentkezes.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/ertesito.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/helyettesitesinaplo.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/osztalyozonaplo.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniEvVegiJegyzokonyv.php4
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniHaviJegyzokonyv.php4
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/tankorNaplohozRendeles.php20
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/zaradekok.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/ascExport.php22
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/helyettesites.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarend.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendBetolto.php9
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendEllenorzes.php11
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendModosito.php19
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTankor.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTeremModositas.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/szabadTerem.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/tanarOrarend.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/orarend/termez.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizelomenetel.php16
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizonyitvany.php42
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/diak.php18
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/dolgozat.php34
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/jegy.php22
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/stat.php65
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szempontRendszer.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szovegesErtekeles.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/tankor.php34
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/targySorrend.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsga.php19
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsgaJelentkezes.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/share/diak.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/share/ertekeles.php33
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/share/file.php67
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/share/hianyzas.php14
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/share/osztalyzatok.php61
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/share/tanar.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/sni/diakAllapot.php84
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/sni/fejlesztesiTerv.php21
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/sni/tantargyiFeljegyzesek.php9
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/stat/letszam.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/szulinap.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/checkStatus.php11
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/diakTanarai.php7
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/fogadoOra.php19
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/helyettesites.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/munkaterv.php59
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorBlokk.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorCsoport.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/targyBontas.php8
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosOrarendLezaras.php5
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosTankorLezaras.php4
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetInfo.php15
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetJovahagyas.php6
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetLeadas.php12
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetModositas.php17
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetTankor.php18
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/ujTanmenet.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/uzeno/postas.php45
-rw-r--r--mayor-orig/www/lang/hu_HU/module-naplo/uzeno/uzeno.php42
-rw-r--r--mayor-orig/www/lang/hu_HU/module-password/changeMyPassword.php16
-rw-r--r--mayor-orig/www/lang/hu_HU/module-password/changePassword.php16
-rw-r--r--mayor-orig/www/lang/hu_HU/module-password/resetPassword.php17
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/accountInfo.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/admin/knownNodes.php16
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/admin/registration.php38
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/createAccount.php15
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/createGroup.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/download.php9
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/groupInfo.php10
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/search/searchAccount.php28
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/search/searchGroup.php28
-rw-r--r--mayor-orig/www/lang/hu_HU/module-session/sessionAdmin.php13
-rw-r--r--mayor-orig/www/lang/hu_HU/share/session/attrs.php24
-rw-r--r--mayor-orig/www/lang/jp_JP/date/names.php21
-rw-r--r--mayor-orig/www/lang/jp_JP/module-auth/login.php5
-rw-r--r--mayor-orig/www/lang/jp_JP/module-password/changeMyPassword.php7
-rw-r--r--mayor-orig/www/lang/jp_JP/module-password/changePassword.php7
-rw-r--r--mayor-orig/www/lang/jp_JP/module-session/accountInfo.php3
-rw-r--r--mayor-orig/www/lang/jp_JP/share/session/attrs.php17
-rw-r--r--mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php34
-rw-r--r--mayor-orig/www/policy/parent/naplo/diakValaszto.php8
l---------mayor-orig/www/policy/parent/naplo/hirnok1
-rw-r--r--mayor-orig/www/policy/parent/naplo/naplo-pre.php5
-rw-r--r--mayor-orig/www/policy/parent/naplo/naplo.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/admin-pre.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/admin.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php133
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/azonositok.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/checksql-pre.php22
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/checksql.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/csoportok-pre.php68
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/csoportok.php14
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/fillhaladasi-pre.php30
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/fillhaladasi.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/import-pre.php49
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/import.php19
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/install-pre.php47
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/install.php31
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php79
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/intezmenyek.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php45
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php80
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/szemeszterek.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok-pre.php171
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/tanevek-pre.php151
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/tanevek.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/tankorok-pre.php39
-rw-r--r--mayor-orig/www/policy/private/naplo/admin/tankorok.php16
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus-pre.php59
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek-pre.php73
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/info-pre.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/info.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes-pre.php60
-rw-r--r--mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/error-pre.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/error.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/ertekeles-pre.php205
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/ertekeles.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/export-pre.php33
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/export.php27
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes-pre.php149
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/osszesites-pre.php97
-rw-r--r--mayor-orig/www/policy/private/naplo/ertekeles/osszesites.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/esemeny-pre.php7
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/esemeny.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak-pre.php83
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/jelentkezes-pre.php45
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/jelentkezes.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny-pre.php91
-rw-r--r--mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/export/bizonyitvany-pre.php114
-rw-r--r--mayor-orig/www/policy/private/naplo/export/bizonyitvany.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/export/diakExport-pre.php68
-rw-r--r--mayor-orig/www/policy/private/naplo/export/diakExport.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport-pre.php132
-rw-r--r--mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/export/kreta-pre.php176
-rw-r--r--mayor-orig/www/policy/private/naplo/export/kreta.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/export/sulix-pre.php26
-rw-r--r--mayor-orig/www/policy/private/naplo/export/sulix.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam-pre.php106
-rw-r--r--mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/export/tantargyFelosztas-pre.php61
-rw-r--r--mayor-orig/www/policy/private/naplo/export/tantargyFelosztas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/elmaradas-pre.php17
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/elmaradas.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/elszamolas-pre.php59
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/elszamolas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/haladasi-pre.php387
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/haladasi.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php194
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/helyettesites.php46
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/hetes-pre.php260
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/hetes.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/minuszora-pre.php75
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/minuszora.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/ora-pre.php33
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/ora.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/oralatogatas-pre.php102
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/oralatogatas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/osszevonas-pre.php109
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/osszevonas.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/pluszora-pre.php177
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/pluszora.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/specialis-pre.php95
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/specialis.php17
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/stat-pre.php54
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/stat.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/tankor-pre.php29
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/tankor.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/teremModositas-pre.php102
-rw-r--r--mayor-orig/www/policy/private/naplo/haladasi/teremModositas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/diak-pre.php212
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/diak.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan-pre.php26
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/diakLista-pre.php101
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/diakLista.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/hianyzas-pre.php7
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/hianyzas.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/info-pre.php32
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/info.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/nap-pre.php161
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/nap.php14
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/oktstat-pre.php33
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/oktstat.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/ora-pre.php165
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/ora.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/osztaly-pre.php124
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/osztaly.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap-pre.php53
-rw-r--r--mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php80
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/admin.php16
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php24
-rw-r--r--mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/hirnok/cronFutar-pre.php32
-rw-r--r--mayor-orig/www/policy/private/naplo/hirnok/cronFutar.php45
-rw-r--r--mayor-orig/www/policy/private/naplo/hirnok/hirnok-pre.php53
-rw-r--r--mayor-orig/www/policy/private/naplo/hirnok/hirnok.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas-pre.php47
-rw-r--r--mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas.php7
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diak-pre.php247
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diak.php30
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakExport-pre.php56
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakExport.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes-pre.php325
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz-pre.php117
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo-pre.php98
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakTankor-pre.php116
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakTankor.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes-pre.php113
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/felmentes-pre.php67
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/felmentes.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/intezmeny-pre.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/intezmeny.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek-pre.php92
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/kepzes-pre.php60
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/kepzes.php14
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv-pre.php114
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg-pre.php110
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg.php27
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/osztaly-pre.php323
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/osztaly.php40
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/szulo-pre.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/szulo.php24
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tanar-pre.php108
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tanar.php27
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankor-pre.php219
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankor.php20
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak-pre.php162
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak.php17
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam-pre.php101
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter-pre.php122
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar-pre.php114
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php64
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tantargyFelosztas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/terem-pre.php42
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/terem.php13
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php112
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/valtas-pre.php58
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/valtas.php7
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/verseny-pre.php54
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/verseny.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/zaradek-pre.php76
-rw-r--r--mayor-orig/www/policy/private/naplo/intezmeny/zaradek.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin-pre.php83
-rw-r--r--mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin.php21
-rw-r--r--mayor-orig/www/policy/private/naplo/koszi/koszi-pre.php49
-rw-r--r--mayor-orig/www/policy/private/naplo/koszi/koszi.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/koszi/kosziAdmin-pre.php93
-rw-r--r--mayor-orig/www/policy/private/naplo/koszi/kosziAdmin.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/naplo-pre.php22
-rw-r--r--mayor-orig/www/policy/private/naplo/naplo.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv-pre.php37
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas-pre.php88
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap-pre.php135
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes-pre.php71
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/ertesito-pre.php101
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/ertesito.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo-pre.php212
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php39
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php157
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php105
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php1
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php93
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php1
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php78
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php58
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php165
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php40
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php49
-rw-r--r--mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php110
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/ascExport.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php80
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/helyettesites.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php281
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarend.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendBetolto-pre.php80
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendBetolto.php14
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes-pre.php56
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendModosito-pre.php277
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendModosito.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendTankor-pre.php56
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendTankor.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas-pre.php86
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes-pre.php77
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes.php47
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/szabadTerem-pre.php31
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/szabadTerem.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/tanarOrarend-pre.php49
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/tanarOrarend.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/termez-pre.php173
-rw-r--r--mayor-orig/www/policy/private/naplo/orarend/termez.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel-pre.php111
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany-pre.php166
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany.php16
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/diak-pre.php100
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/diak.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat-pre.php168
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat.php16
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/jegy-pre.php120
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/jegy.php12
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo-pre.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/stat-pre.php307
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/stat.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer-pre.php51
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer.php16
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles-pre.php258
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/tankor-pre.php332
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/tankor.php17
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend-pre.php47
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/vizsga-pre.php91
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/vizsga.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes-pre.php37
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck-pre.php82
-rw-r--r--mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck.php4
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/diakAllapot-pre.php127
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/diakAllapot.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv-pre.php110
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/sni-pre.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/sni.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek-pre.php113
-rw-r--r--mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/stat/lemorzsolodas-pre.php38
-rw-r--r--mayor-orig/www/policy/private/naplo/stat/lemorzsolodas.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/stat/letszam-pre.php88
-rw-r--r--mayor-orig/www/policy/private/naplo/stat/letszam.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php127
-rw-r--r--mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/szulinap-pre.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/szulinap.php44
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php7
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/checkStatus.php6
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php54
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php142
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php26
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php102
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/munkaterv.php26
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/tanev.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php114
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php14
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php132
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php175
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/targyBontas.php19
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php7
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php72
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php77
-rw-r--r--mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenet.php0
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php35
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php15
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php88
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php51
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php83
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php9
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php95
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php11
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php72
-rw-r--r--mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/ajax.php7
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/ajaxExample.php29
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php19
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php61
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php36
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php79
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php39
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php27
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php56
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php38
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php41
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php10
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php8
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php165
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/kereso-pre.php25
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php23
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/oid.php1
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php2
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/tankor-pre.php39
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php66
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php40
-rw-r--r--mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php114
-rw-r--r--mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php89
-rw-r--r--mayor-orig/www/policy/private/naplo/uzeno/postas.php5
-rw-r--r--mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php187
-rw-r--r--mayor-orig/www/policy/private/naplo/uzeno/uzeno.php12
-rw-r--r--mayor-orig/www/policy/private/password/changePassword-pre.php60
-rw-r--r--mayor-orig/www/policy/private/password/changePassword.php9
-rw-r--r--mayor-orig/www/policy/private/portal/start.php0
-rw-r--r--mayor-orig/www/policy/private/session/accountInfo-pre.php51
-rw-r--r--mayor-orig/www/policy/private/session/accountInfo.php15
-rw-r--r--mayor-orig/www/policy/private/session/admin/knownNodes-pre.php39
-rw-r--r--mayor-orig/www/policy/private/session/admin/knownNodes.php10
-rw-r--r--mayor-orig/www/policy/private/session/admin/registration-pre.php123
-rw-r--r--mayor-orig/www/policy/private/session/admin/registration.php16
-rw-r--r--mayor-orig/www/policy/private/session/createAccount-pre.php110
-rw-r--r--mayor-orig/www/policy/private/session/createAccount.php12
-rw-r--r--mayor-orig/www/policy/private/session/createGroup-pre.php49
-rw-r--r--mayor-orig/www/policy/private/session/createGroup.php12
-rw-r--r--mayor-orig/www/policy/private/session/download-pre.php66
-rw-r--r--mayor-orig/www/policy/private/session/download.php9
-rw-r--r--mayor-orig/www/policy/private/session/facebookConnect-pre.php91
-rw-r--r--mayor-orig/www/policy/private/session/facebookConnect.php7
-rw-r--r--mayor-orig/www/policy/private/session/googleapi-pre.php100
-rw-r--r--mayor-orig/www/policy/private/session/googleapi.php28
-rw-r--r--mayor-orig/www/policy/private/session/groupInfo-pre.php43
-rw-r--r--mayor-orig/www/policy/private/session/groupInfo.php12
-rw-r--r--mayor-orig/www/policy/private/session/search/searchAccount-pre.php28
-rw-r--r--mayor-orig/www/policy/private/session/search/searchAccount.php16
-rw-r--r--mayor-orig/www/policy/private/session/search/searchGroup-pre.php25
-rw-r--r--mayor-orig/www/policy/private/session/search/searchGroup.php16
-rw-r--r--mayor-orig/www/policy/private/session/session-pre.php5
-rw-r--r--mayor-orig/www/policy/private/session/session.php0
-rw-r--r--mayor-orig/www/policy/private/session/sessionAdmin-pre.php24
-rw-r--r--mayor-orig/www/policy/private/session/sessionAdmin.php9
-rw-r--r--mayor-orig/www/policy/public/auth/forgotten-pre.php92
-rw-r--r--mayor-orig/www/policy/public/auth/forgotten.php16
-rw-r--r--mayor-orig/www/policy/public/auth/login-pre.php86
-rw-r--r--mayor-orig/www/policy/public/auth/login.php17
-rw-r--r--mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php48
-rw-r--r--mayor-orig/www/policy/public/naplo/rpc/rpc.php7
-rw-r--r--mayor-orig/www/policy/public/password/changeMyPassword-pre.php69
-rw-r--r--mayor-orig/www/policy/public/password/changeMyPassword.php9
-rw-r--r--mayor-orig/www/policy/public/password/resetPassword-pre.php68
-rw-r--r--mayor-orig/www/policy/public/password/resetPassword.php9
-rw-r--r--mayor-orig/www/policy/public/portal/rpc/rpc-pre.php104
-rw-r--r--mayor-orig/www/policy/public/portal/start.php0
-rw-r--r--mayor-orig/www/policy/public/rpc/naplo/rpc-pre.php70
-rw-r--r--mayor-orig/www/policy/public/rpc/rpc-pre.php43
-rw-r--r--mayor-orig/www/policy/public/session/logout-pre.php28
-rw-r--r--mayor-orig/www/policy/public/session/set-pre.php10
-rw-r--r--mayor-orig/www/skin/ajax/base/html/alert.phtml25
-rw-r--r--mayor-orig/www/skin/ajax/base/html/base.phtml101
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/css/naplo.css4
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/css/orarend/orarend.css68
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml9
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/base.phtml6
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml11
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml162
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml18
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml120
-rw-r--r--mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml148
-rw-r--r--mayor-orig/www/skin/blue/base/color_schemes.php93
-rw-r--r--mayor-orig/www/skin/blue/base/css/base.css209
-rw-r--r--mayor-orig/www/skin/blue/base/css/base.php212
-rw-r--r--mayor-orig/www/skin/blue/base/html/base.phtml401
-rw-r--r--mayor-orig/www/skin/blue/base/img/favicon.icobin0 -> 1406 bytes
-rw-r--r--mayor-orig/www/skin/blue/base/img/mayor_small_ssl.pngbin0 -> 6178 bytes
-rw-r--r--mayor-orig/www/skin/blue/base/img/mayor_small_ssl.png.origbin0 -> 8648 bytes
-rw-r--r--mayor-orig/www/skin/blue/module-auth/css/login.css46
-rw-r--r--mayor-orig/www/skin/classic/base/css/base.css752
-rw-r--r--mayor-orig/www/skin/classic/base/html/alert.phtml85
-rw-r--r--mayor-orig/www/skin/classic/base/html/base.phtml618
-rw-r--r--mayor-orig/www/skin/classic/base/img/ajaxLoad.gifbin0 -> 847 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/alert.pngbin0 -> 3425 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/favicon.icobin0 -> 318 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/flags/de_DE.gifbin0 -> 124 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/flags/en_US.gifbin0 -> 170 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/flags/hu_HU.gifbin0 -> 106 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/flags/jp_JP.gifbin0 -> 573 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/gradient.jpgbin0 -> 1419 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/gradient.pngbin0 -> 515 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/mayor_small_ssl-flip.pngbin0 -> 4536 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/mayor_small_ssl-marc15.pngbin0 -> 5324 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/mayor_small_ssl-santa.pngbin0 -> 4765 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/mayor_small_ssl.gifbin0 -> 1703 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/mayor_small_ssl.jpgbin0 -> 1084 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/mayor_small_ssl.pngbin0 -> 6178 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/parent.gifbin0 -> 977 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/parent100.gifbin0 -> 4235 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/parent100.pngbin0 -> 4182 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/private.gifbin0 -> 923 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/private100.gifbin0 -> 1807 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/private100.pngbin0 -> 13017 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/public.gifbin0 -> 269 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/public100.gifbin0 -> 6321 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/img/policy/public100.pngbin0 -> 6305 bytes
-rw-r--r--mayor-orig/www/skin/classic/base/javascript/base.jquery.min.js977
-rw-r--r--mayor-orig/www/skin/classic/base/javascript/jquery-1.8.3.min.js2
-rw-r--r--mayor-orig/www/skin/classic/base/javascript/jquery.min.js5
-rw-r--r--mayor-orig/www/skin/classic/base/javascript/noiframe.js1
-rw-r--r--mayor-orig/www/skin/classic/module-auth/css/forgotten.css66
-rw-r--r--mayor-orig/www/skin/classic/module-auth/css/login.css108
-rw-r--r--mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml103
-rw-r--r--mayor-orig/www/skin/classic/module-auth/html/login.phtml77
-rw-r--r--mayor-orig/www/skin/classic/module-auth/img/login.gifbin0 -> 1807 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js19
-rw-r--r--mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js24
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/azonositok.css10
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/csoportok.css9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/import.css8
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/intezmenyek.css26
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/szemeszterek.css6
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/tanevek.css17
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/admin/tankorok.css8
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css19
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css34
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css10
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/diakValaszto.css4
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css41
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css11
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css34
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css27
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css43
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/export/bizonyitvany.css19
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/export/diakExport.css19
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/export/kreta.css23
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/export/sulix.css9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css20
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/elmaradas.css12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/elszamolas.css32
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/haladasi.css297
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/helyettesites.css162
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/hetes.css8
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/minuszora.css28
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/osszevonas.css27
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/pluszora.css30
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/specialis.css36
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/stat.css12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/haladasi/teremModositas.css17
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diak.css128
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakLista.css50
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/info.css19
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/nap.css125
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/oktstat.css22
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/ora.css125
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztaly.css170
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css43
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/admin.css89
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css26
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hirnok/cronFutar.css9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/hirnok/hirnok.css108
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diak.css148
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakExport.css46
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css33
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css14
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css49
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css70
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css126
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/felmentes.css36
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css14
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzes.css25
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css100
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css13
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css47
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/osztaly.css57
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tanar.css60
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankor.css83
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css128
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css7
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css24
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css39
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css94
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/terem.css15
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css89
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/valtas.css2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/intezmeny/zaradek.css16
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css39
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/koszi/koszi.css39
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css47
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/naplo.css317
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css4
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css7
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/ascExport.css18
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/helyettesites.css44
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css282
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css6
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css3
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendModosito.css156
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTankor.css29
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css8
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/szabadTerem.css103
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/orarend/termez.css13
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css71
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css115
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/diak.css58
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css172
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/jegy.css39
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/stat.css339
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css10
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css10
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/tankor.css152
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css10
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css30
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css2
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css0
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/sni/diakAllapot.css27
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css21
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css15
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css3
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/stat/letszam.css11
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css36
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/diakTanarai.css9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/fogadoOra.css46
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/munkaterv.css149
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css11
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css16
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/targyBontas.css121
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/targyOraszam.css7
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css5
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css5
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css11
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css23
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css11
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css54
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css76
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css19
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/css/uzeno/uzeno.css139
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/azonositok.phtml95
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/csoportok.phtml87
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/import.phtml5
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml142
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml72
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml61
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml113
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/tanevek.phtml165
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/admin/tankorok.phtml5
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/base.phtml1230
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml52
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml97
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml47
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/diakValaszto.phtml22
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml77
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml90
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml102
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml87
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml171
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml47
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/export/diakExport.phtml153
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/export/kreta.phtml138
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/export/sulix.phtml43
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml46
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml41
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml63
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml284
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml697
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml696
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/hetes.phtml37
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml55
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/ora.phtml51
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml56
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml51
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml95
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/specialis.phtml181
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/stat.phtml76
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/tankor.phtml54
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml49
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diak.phtml226
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml42
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml50
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/info.phtml96
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/nap.phtml252
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml133
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/ora.phtml279
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml613
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml112
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml150
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml32
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml265
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml319
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml68
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diak.phtml942
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml93
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml225
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml97
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml300
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml84
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml167
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml261
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml121
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml143
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml271
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml316
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml424
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml411
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml370
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml310
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml83
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml101
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml103
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml147
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/terem.phtml93
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml479
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml85
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml41
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml78
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml246
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/koszi/koszi.phtml277
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml331
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/naplo.phtml33
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml31
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml17
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml127
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/ascExport.phtml142
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml90
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml411
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml60
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml88
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml26
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml309
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml88
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml107
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml63
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml38
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/orarend/termez.phtml86
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml139
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml426
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml235
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml304
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml164
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml659
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml75
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml70
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml550
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml45
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml144
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml16
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml50
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/share/email.phtml42
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/share/face.phtml71
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/share/file.phtml92
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/share/hianyzas.phtml71
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/share/jegy.phtml92
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/share/orarend.phtml48
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml165
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml94
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml110
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml59
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/stat/letszam.phtml54
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml414
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml34
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml62
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml317
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml370
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml200
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml122
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml296
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml25
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml32
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml36
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml67
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml61
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml38
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml136
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml65
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml31
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/uzeno/postas.phtml81
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml434
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/anim/garfield.gifbin0 -> 11847 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/anim/kutya.gifbin0 -> 9506 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/anim/majom.gifbin0 -> 16468 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/anim/nyuszi.gifbin0 -> 11799 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/anim/pingvin.gifbin0 -> 38954 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/anim/smiley.gifbin0 -> 4261 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/anim/tux-hard.gifbin0 -> 33427 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/cr.pngbin0 -> 272 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/fel.gifbin0 -> 294 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/flipper/adatok.gifbin0 -> 850 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/flipper/nevsor.gifbin0 -> 977 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/helyettesites/csere.gifbin0 -> 143 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/helyettesites/kez.gifbin0 -> 126 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/helyettesites/mozgat.gifbin0 -> 144 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/helyettesites/ora.gifbin0 -> 573 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/change.pngbin0 -> 444 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/felkjel.gifbin0 -> 59 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/green.gifbin0 -> 308 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/h.gifbin0 -> 323 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/i.gifbin0 -> 206 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/pin.gifbin0 -> 883 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red-pin.gifbin0 -> 202 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red.gifbin0 -> 203 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/sum.gifbin0 -> 149 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gifbin0 -> 912 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gifbin0 -> 998 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow.gifbin0 -> 296 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.gifbin0 -> 718 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg51
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/io/kreta.svg21
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/le.gifbin0 -> 296 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/print.pngbin0 -> 423 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/tankorok/gold_box.gifbin0 -> 68 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gifbin0 -> 35 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/tanmenet/close.pngbin0 -> 2189 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/tanmenet/updown.pngbin0 -> 1551 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/toggle.pngbin0 -> 601 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/img/toolSubmit.gifbin0 -> 127 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js7
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.js7
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js43
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js56
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js101
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js7
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js89
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js177
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.js141
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js42
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js78
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js27
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js42
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js11
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js19
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.js13
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js27
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.js13
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js192
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js9
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js31
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js18
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js56
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js64
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js48
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js57
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js41
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js8
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js23
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js594
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js210
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js13
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js1234
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js81
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js12
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js80
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js5
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js93
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js49
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js132
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js16
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js50
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js15
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js823
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js18
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js126
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js93
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js63
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.js54
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js23
-rw-r--r--mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js33
-rw-r--r--mayor-orig/www/skin/classic/module-password/css/password.css19
-rw-r--r--mayor-orig/www/skin/classic/module-password/html/changeMyPassword.phtml76
-rw-r--r--mayor-orig/www/skin/classic/module-password/html/changePassword.phtml89
-rw-r--r--mayor-orig/www/skin/classic/module-password/html/resetPassword.phtml79
-rw-r--r--mayor-orig/www/skin/classic/module-password/javascript/changeMyPassword.jquery.min.js27
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/accountInfo.css100
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/admin/knownNodes.css14
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/admin/registration.css54
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/createAccount.css24
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/createGroup.css13
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/download.css9
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/facebookConnect.css25
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/googleapi.css24
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/groupInfo.css96
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/search/searchAccount.css31
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/search/searchGroup.css44
-rw-r--r--mayor-orig/www/skin/classic/module-session/css/sessionAdmin.css8
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml253
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/admin/knownNodes.phtml70
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/admin/registration.phtml270
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/createAccount.phtml107
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/createGroup.phtml90
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/download.phtml32
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/facebookConnect.phtml53
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/googleapi.phtml45
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/groupInfo.phtml5
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/search/searchAccount.phtml126
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/search/searchGroup.phtml103
-rw-r--r--mayor-orig/www/skin/classic/module-session/html/sessionAdmin.phtml57
-rw-r--r--mayor-orig/www/skin/classic/module-session/img/download.gifbin0 -> 1516 bytes
-rw-r--r--mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js13
-rw-r--r--mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js31
-rw-r--r--mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js30
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/aac.pngbin0 -> 1318 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/ai.pngbin0 -> 1063 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/aiff.pngbin0 -> 1221 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/avi.pngbin0 -> 1184 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/bmp.pngbin0 -> 1162 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/c.pngbin0 -> 592 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/css.pngbin0 -> 1198 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/dat.pngbin0 -> 782 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/dmg.pngbin0 -> 1152 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/doc.pngbin0 -> 1285 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/dotx.pngbin0 -> 1195 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/dwg.pngbin0 -> 1466 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/dxf.pngbin0 -> 1419 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/eps.pngbin0 -> 1167 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/exe.pngbin0 -> 1227 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/flv.pngbin0 -> 1208 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/gif.pngbin0 -> 1147 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/h.pngbin0 -> 550 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/hpp.pngbin0 -> 671 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/html.pngbin0 -> 1001 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/ics.pngbin0 -> 1360 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/iso.pngbin0 -> 1271 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/java.pngbin0 -> 1173 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/jpg.pngbin0 -> 1151 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/key.pngbin0 -> 1048 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/mid.pngbin0 -> 1214 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/mp3.pngbin0 -> 1291 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/mp4.pngbin0 -> 1249 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/mpg.pngbin0 -> 1254 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/odf.pngbin0 -> 924 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/odt.pngbin0 -> 1011 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/otp.pngbin0 -> 925 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/ots.pngbin0 -> 1034 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/ott.pngbin0 -> 1009 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/pdf.pngbin0 -> 1208 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/php.pngbin0 -> 1056 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/png.pngbin0 -> 1263 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/ppt.pngbin0 -> 942 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/psd.pngbin0 -> 1236 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/py.pngbin0 -> 995 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/qt.pngbin0 -> 1164 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/rar.pngbin0 -> 1161 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/rb.pngbin0 -> 1052 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/rtf.pngbin0 -> 755 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/sql.pngbin0 -> 1235 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/tga.pngbin0 -> 1192 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/tgz.pngbin0 -> 1128 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/tiff.pngbin0 -> 1107 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/txt.pngbin0 -> 747 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/wav.pngbin0 -> 1326 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/xls.pngbin0 -> 1185 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/xlsx.pngbin0 -> 1217 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/xml.pngbin0 -> 1165 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/yml.pngbin0 -> 758 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/img/filetypes/zip.pngbin0 -> 1077 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/MIT-LICENSE20
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/README10
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/blank_iframe.html2
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/images/calendar_date_select/calendar.gifbin0 -> 581 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/calendar_date_select.js430
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_american.js34
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_db.js27
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_euro_24hr.js7
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_finnish.js24
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_hyphen_ampm.js36
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_iso_date.js46
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_italian.js24
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_mayor.js42
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/fi.js10
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/hu.js10
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/jp.js10
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/pl.js10
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/blue.css130
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/default.css135
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/plain.css128
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/red.css135
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/silver.css133
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/ColReorder.min.js33
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/ColReorder.css21
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/jquery.dataTables.css221
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_disabled.pngbin0 -> 1361 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled.pngbin0 -> 1379 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled_hover.pngbin0 -> 1375 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_disabled.pngbin0 -> 1363 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled.pngbin0 -> 1380 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled_hover.pngbin0 -> 1379 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/insert.pngbin0 -> 1885 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc.pngbin0 -> 1118 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc_disabled.pngbin0 -> 1050 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_both.pngbin0 -> 1136 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc.pngbin0 -> 1127 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc_disabled.pngbin0 -> 1045 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/unchecked.gifbin0 -> 223 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.columnFilter.js365
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.min.js155
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/animated-overlay.gifbin0 -> 1738 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_0_aaaaaa_40x100.pngbin0 -> 180 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_75_ffffff_40x100.pngbin0 -> 178 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_55_fbf9ee_1x400.pngbin0 -> 120 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_65_ffffff_1x400.pngbin0 -> 105 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_dadada_1x400.pngbin0 -> 111 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_e6e6e6_1x400.pngbin0 -> 110 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_95_fef1ec_1x400.pngbin0 -> 119 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.pngbin0 -> 101 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_222222_256x240.pngbin0 -> 4369 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_2e83ff_256x240.pngbin0 -> 4369 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_454545_256x240.pngbin0 -> 4369 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_888888_256x240.pngbin0 -> 4369 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_cd0a0a_256x240.pngbin0 -> 4369 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui-timepicker-addon.css10
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui.min.css4
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-i18n.min.js6
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-timepicker-hu.js21
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js4
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui-timepicker-addon.js2128
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui.min.js12
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/changelog.txt81
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/custom1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_arrow.php101
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_back.pngbin0 -> 827 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_cellid.php62
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_checkpw.php169
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_deleteimage.php43
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_download.php32
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_explorer.php301
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_flip.php52
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_fullimg.php231
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getcustomsettings.php25
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getsetsettings.php161
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getuploadinfo.php76
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_basic.php635
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_changeorder.php593
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_delete.php425
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_explorer.php349
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_framework.php1070
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_managefolders.php266
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_settings.php530
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_upload.php611
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_view.php1789
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_koschtit.php404
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_loading.gifbin0 -> 477 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_makepic.php317
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_managefolders.php122
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_mouse_help.pngbin0 -> 1463 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_close.pngbin0 -> 478 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_download.pngbin0 -> 499 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_full.pngbin0 -> 450 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_globe.pngbin0 -> 593 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_info.pngbin0 -> 398 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_link.pngbin0 -> 524 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_next.pngbin0 -> 328 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_play.pngbin0 -> 338 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_prev.pngbin0 -> 328 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_stop.pngbin0 -> 239 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_vcomm.pngbin0 -> 377 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_next.pngbin0 -> 861 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_noimage.gifbin0 -> 43 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojs.php447
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojsdisplayimage.php427
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_online_docu.jpgbin0 -> 21653 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_preview.php240
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savecomment.php65
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_saveneworder.php129
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savesquarethumb.php101
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_shade.php41
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_upload.php243
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_vcomm.php221
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_dir2
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_lastmodified4
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_dir2
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_lastmodified4
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/ki_setup.php96
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/kos-epulet_ki_setup.php96
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/ki_include.php306
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/koschtit/readme.txt61
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/MIT-LICENSE20
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/builder.js136
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/controls.js965
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/dragdrop.js974
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/effects.js1123
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/scriptaculous.js68
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/slider.js275
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/sound.js59
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/scriptaculous/unittest.js568
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/de.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/en.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/hu.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/ja.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/license.txt504
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/css/advhr.css5
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin_src.js57
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/js/rule.js43
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/rule.htm58
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/css/advimage.css13
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin_src.js50
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/image.htm235
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/img/sample.gifbin0 -> 1624 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/js/image.js464
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/css/advlink.css8
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin_src.js61
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/js/advlink.js543
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/link.htm338
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin_src.js176
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin_src.js184
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin_src.js119
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin_src.js433
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/langs/en.js4
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin_src.js120
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin_src.js163
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin_src.js85
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin_src.js43
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/emotions.htm42
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cool.gifbin0 -> 354 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cry.gifbin0 -> 329 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-embarassed.gifbin0 -> 331 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gifbin0 -> 342 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-frown.gifbin0 -> 340 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-innocent.gifbin0 -> 336 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-kiss.gifbin0 -> 338 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-laughing.gifbin0 -> 343 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-money-mouth.gifbin0 -> 321 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-sealed.gifbin0 -> 323 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-smile.gifbin0 -> 344 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-surprised.gifbin0 -> 338 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-tongue-out.gifbin0 -> 328 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-undecided.gifbin0 -> 337 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-wink.gifbin0 -> 350 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-yell.gifbin0 -> 336 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/js/emotions.js43
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/ja_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/dialog.htm22
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin_src.js84
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/img/example.gifbin0 -> 87 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/js/dialog.js19
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en.js3
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en_dlg.js3
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin_src.js50
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/css/fullpage.css143
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin_src.js405
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/fullpage.htm259
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/js/fullpage.js232
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin_src.js159
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/fullscreen.htm110
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin_src.js54
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin_src.js699
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gifbin0 -> 810 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gifbin0 -> 272 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gifbin0 -> 1195 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gifbin0 -> 907 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gifbin0 -> 909 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gifbin0 -> 769 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gifbin0 -> 84 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css90
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/template.htm387
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin_src.js83
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin_src.js262
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin_src.js139
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin_src.js955
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/css/media.css17
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin_src.js898
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/embed.js73
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/media.js503
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/media.htm922
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/moxieplayer.swfbin0 -> 19980 bytes
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin_src.js54
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin_src.js537
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin_src.js74
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin_src.js885
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pastetext.js36
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pasteword.js51
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pastetext.htm27
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pasteword.htm21
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin_src.js53
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/example.html28
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/jscripts/embed.js73
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/preview.html17
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin_src.js34
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin_src.js101
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/css/searchreplace.css6
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin_src.js61
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/js/searchreplace.js142
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/searchreplace.htm100
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/css/content.css1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin_src.js436
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/img/wline.gifbin0 -> 46 bytes
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/css/props.css14
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin_src.js71
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/js/props.js709
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/props.htm845
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/readme.txt19
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin_src.js122
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/cell.htm180
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/cell.css17
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/row.css25
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/table.css13
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin_src.js1452
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/cell.js319
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/merge_cells.js27
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/row.js237
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/table.js501
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/merge_cells.htm32
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/row.htm158
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/table.htm188
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/blank.htm12
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/css/template.css23
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin_src.js159
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/js/template.js106
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/template.htm31
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/css/visualblocks.css21
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin_src.js63
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin_src.js83
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin_src.js122
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/abbr.htm142
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/acronym.htm142
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/attributes.htm149
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/cite.htm142
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/attributes.css11
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/popup.css9
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/del.htm162
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js132
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/ins.htm162
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/abbr.js28
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/acronym.js28
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/attributes.js111
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/cite.js28
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/del.js53
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/element_common.js229
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/ins.js53
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/hu_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/about.htm52
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/anchor.htm26
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/charmap.htm55
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/color_picker.htm70
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template_src.js1490
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/image.htm80
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/colorpicker.jpgbin0 -> 2584 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/flash.gifbin0 -> 239 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/icons.gifbin0 -> 11982 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/iframe.gifbin0 -> 600 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/pagebreak.gifbin0 -> 325 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/quicktime.gifbin0 -> 301 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/realmedia.gifbin0 -> 439 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/shockwave.gifbin0 -> 384 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/trans.gifbin0 -> 43 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/video.gifbin0 -> 597 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/windowsmedia.gifbin0 -> 415 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/about.js73
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/anchor.js56
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/charmap.js363
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/color_picker.js345
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/image.js253
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/link.js159
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/source_editor.js78
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en_dlg.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja_dlg.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/link.htm57
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/shortcuts.htm47
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/content.css50
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/dialog.css118
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/buttons.pngbin0 -> 3133 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/items.gifbin0 -> 64 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gifbin0 -> 68 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_check.gifbin0 -> 70 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/progress.gifbin0 -> 1787 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/tabs.gifbin0 -> 1322 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/ui.css219
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/content.css24
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/dialog.css106
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/ui.css106
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/content.css48
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/dialog.css118
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.pngbin0 -> 2766 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.pngbin0 -> 651 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.pngbin0 -> 2084 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui.css222
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_black.css8
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css5
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/source_editor.htm25
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template_src.js84
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/img/icons.gifbin0 -> 806 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/de.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/en.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/hu.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/ja.js1
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/content.css25
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/ui.css32
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/content.css17
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/img/button_bg.pngbin0 -> 5102 bytes
-rw-r--r--mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/ui.css35
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce.js1
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_popup.js5
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_src.js18988
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/editable_selects.js70
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/form_utils.js210
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/mctabs.js162
-rwxr-xr-xmayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/validate.js252
-rw-r--r--mayor-orig/www/skin/cron/base/html/alert.phtml6
-rw-r--r--mayor-orig/www/skin/cron/base/html/base.phtml56
-rw-r--r--mayor-orig/www/skin/default/base/css/Elusive-Icons.eotbin0 -> 41988 bytes
-rw-r--r--mayor-orig/www/skin/default/base/css/Elusive-Icons.svg298
-rw-r--r--mayor-orig/www/skin/default/base/css/Elusive-Icons.ttfbin0 -> 41804 bytes
-rw-r--r--mayor-orig/www/skin/default/base/css/Elusive-Icons.woffbin0 -> 76072 bytes
-rw-r--r--mayor-orig/www/skin/default/base/css/elusive-webfont.css891
-rw-r--r--mayor-orig/www/skin/default/base/html/base.phtml463
-rw-r--r--mayor-orig/www/skin/gray/base/css/base.css678
-rw-r--r--mayor-orig/www/skin/oldschool/base/css/base.css86
-rw-r--r--mayor-orig/www/skin/oldschool/base/css/head.css149
-rw-r--r--mayor-orig/www/skin/oldschool/base/html/base.phtml337
-rw-r--r--mayor-orig/www/skin/oldschool/base/img/mayor_small_ssl.pngbin0 -> 3779 bytes
-rw-r--r--mayor-orig/www/skin/oldschool/module-auth/css/login.css45
-rw-r--r--mayor-orig/www/skin/pda/base/css/base.css182
-rw-r--r--mayor-orig/www/skin/pda/base/html/alert.phtml85
-rw-r--r--mayor-orig/www/skin/pda/base/html/base.phtml240
-rw-r--r--mayor-orig/www/skin/pda/module-auth/css/login.css4
-rw-r--r--mayor-orig/www/skin/pda/module-auth/html/login.phtml60
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/css/haladasi/haladasi.css167
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/css/hianyzas/osztaly.css135
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/css/naplo.css59
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/css/orarend/helyettesites.css29
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/css/orarend/orarend.css97
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/css/osztalyozo/jegy.css56
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/base.phtml900
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/haladasi/haladasi.phtml392
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/hianyzas/ora.phtml215
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/hianyzas/osztaly.phtml465
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/diak.phtml79
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/dolgozat.phtml273
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/jegy.phtml135
-rw-r--r--mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/tankor.phtml307
-rw-r--r--mayor-orig/www/skin/rpc/base/html/alert.phtml56
-rw-r--r--mayor-orig/www/skin/rpc/base/html/base.phtml23
-rw-r--r--mayor-orig/www/skin/rpc/module-naplo/html/base.phtml6
-rw-r--r--mayor-orig/www/skin/sulix/base/css/base.css268
-rw-r--r--mayor-orig/www/skin/sulix/base/html/base.phtml332
-rw-r--r--mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_140x26.pngbin0 -> 3447 bytes
-rw-r--r--mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_66x28.pngbin0 -> 3712 bytes
-rw-r--r--mayor-orig/www/skin/sulix/base/img/favicon.icobin0 -> 1150 bytes
-rw-r--r--mayor-orig/www/skin/sulix/base/img/fur.pngbin0 -> 167469 bytes
-rw-r--r--mayor-orig/www/skin/sulix/base/img/mayor_small_ssl.pngbin0 -> 38044 bytes
-rw-r--r--mayor-orig/www/skin/sulix/base/img/powered_by_mayor.pngbin0 -> 3874 bytes
-rw-r--r--mayor-orig/www/skin/sulix/base/img/powered_by_mayor_small.pngbin0 -> 4361 bytes
-rw-r--r--mayor-orig/www/skin/sulix/module-auth/css/login.css89
-rw-r--r--mayor-orig/www/skin/sulix/module-auth/html/login.phtml79
-rw-r--r--mayor-orig/www/skin/sulix/module-naplo/css/admin/tanevek.css17
-rw-r--r--mayor-orig/www/skin/sulix/module-naplo/css/naplo.css84
-rw-r--r--mayor-orig/www/skin/sulix/module-naplo/css/orarend/orarendTeremModositas.css8
-rw-r--r--mayor-orig/www/skin/sulix/module-password/css/password.css43
-rw-r--r--mayor-orig/www/skin/sulix/share/css/calendar_date_select.css139
-rw-r--r--mayor-orig/www/skin/sza2010/base/css/base.css85
-rw-r--r--mayor-orig/www/skin/sza2010/base/css/head.css153
-rw-r--r--mayor-orig/www/skin/sza2010/base/html/alert.phtml68
-rw-r--r--mayor-orig/www/skin/sza2010/base/html/base.phtml310
-rw-r--r--mayor-orig/www/skin/sza2010/base/img/bg.pngbin0 -> 83991 bytes
-rw-r--r--mayor-orig/www/skin/sza2010/base/img/foot.orig.pngbin0 -> 104928 bytes
-rw-r--r--mayor-orig/www/skin/sza2010/base/img/foot.pngbin0 -> 59467 bytes
-rw-r--r--mayor-orig/www/skin/sza2010/base/img/mayor_small_ssl.pngbin0 -> 4815 bytes
-rw-r--r--mayor-orig/www/skin/sza2010/base/img/meghivo.pngbin0 -> 212148 bytes
-rw-r--r--mayor-orig/www/skin/teszt/base/css/base.css288
-rw-r--r--mayor-orig/www/skin/teszt/base/html/base.phtml407
-rw-r--r--mayor-orig/www/skin/teszt/base/img/MaYoR-star_medium.pngbin0 -> 1548 bytes
-rw-r--r--mayor-orig/www/skin/teszt/base/img/MaYoR-star_small.pngbin0 -> 832 bytes
-rw-r--r--mayor-orig/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.pngbin0 -> 6623 bytes
-rw-r--r--mayor-orig/www/skin/teszt/base/img/MaYoR_rypple.pngbin0 -> 1184 bytes
-rw-r--r--mayor-orig/www/skin/teszt/base/img/MaYoR_star.pngbin0 -> 907 bytes
-rw-r--r--mayor-orig/www/skin/teszt/base/img/mayor_small_ssl.pngbin0 -> 6178 bytes
-rw-r--r--mayor-orig/www/skin/teszt/base/img/school_logo.php91
-rw-r--r--mayor-orig/www/skin/teszt/base/img/settings.pngbin0 -> 4335 bytes
-rw-r--r--mayor-orig/www/skin/teszt/module-auth/css/login.css46
-rw-r--r--mayor-orig/www/skin/vakbarat/base/css/base.css175
-rw-r--r--mayor-orig/www/skin/vakbarat/base/html/base.phtml231
-rw-r--r--mayor-orig/www/skin/vakbarat/module-auth/css/login.css9
-rw-r--r--mayor-orig/www/skin/vakbarat/module-auth/html/login.phtml55
-rw-r--r--mayor-orig/www/skin/vakbarat/module-naplo/css/haladasi/haladasi.css187
-rw-r--r--mayor-orig/www/skin/vakbarat/module-naplo/css/hianyzas/ora.css106
-rw-r--r--mayor-orig/www/skin/vakbarat/module-naplo/css/naplo.css71
-rw-r--r--mayor-orig/www/skin/vakbarat/module-naplo/css/osztalyozo/diak.css24
-rw-r--r--mayor-orig/www/skin/vakbarat/module-naplo/css/uzeno/uzeno.css79
-rw-r--r--mayor-orig/www/skin/vakbarat/module-naplo/html/haladasi/haladasi.phtml457
-rw-r--r--mayor-orig/www/skin/vakbarat/module-naplo/html/orarend/orarend.phtml198
-rw-r--r--mayor-orig/www/skin/winter/base/css/base.css85
-rw-r--r--mayor-orig/www/skin/winter/base/css/head.css154
-rw-r--r--mayor-orig/www/skin/winter/base/html/base.phtml314
-rw-r--r--mayor-orig/www/skin/winter/base/img/bg.gifbin0 -> 3195 bytes
-rw-r--r--mayor-orig/www/skin/winter/base/img/bg2.gifbin0 -> 3871 bytes
-rw-r--r--mayor-orig/www/skin/winter/base/img/bg2.jpgbin0 -> 8596 bytes
-rw-r--r--mayor-orig/www/skin/winter/base/img/mayor_small_ssl.gifbin0 -> 1703 bytes
-rw-r--r--mayor-orig/www/skin/winter/base/img/mayor_small_winter.gifbin0 -> 2761 bytes
-rw-r--r--mayor-orig/www/skin/winter/module-auth/css/login.css39
-rw-r--r--mayor-orig/www/skin/winter/module-naplo/css/naplo.css76
-rw-r--r--mayor-orig/www/static/hu_HU/legal/pp.html22
-rw-r--r--mayor-orig/www/static/hu_HU/session/admin/registration/readme.html47
-rw-r--r--mayor-orig/www/update.php25
7513 files changed, 682321 insertions, 0 deletions
diff --git a/mayor-orig/www/LICENSE.txt b/mayor-orig/www/LICENSE.txt
new file mode 100644
index 00000000..94a9ed02
--- /dev/null
+++ b/mayor-orig/www/LICENSE.txt
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/mayor-orig/www/include/alert/base.php b/mayor-orig/www/include/alert/base.php
new file mode 100644
index 00000000..3c886dcf
--- /dev/null
+++ b/mayor-orig/www/include/alert/base.php
@@ -0,0 +1,38 @@
+<?php
+#
+# MaYoR keretrendszer - figyelmeztető üzenetek
+#
+
+// Base
+if (file_exists('include/alert/'.$lang.'/base.php')) {
+ require_once('include/alert/'.$lang.'/base.php');
+} elseif (file_exists('include/alert/'._DEFAULT_LANG.'/base.php')) {
+ require_once('include/alert/'._DEFAULT_LANG.'/base.php');
+}
+
+// Policy - Backend
+if (file_exists('include/alert/'.$lang.'/'.$AUTH[$policy]['backend'].'.php')) {
+ require_once('include/alert/'.$lang.'/'.$AUTH[$policy]['backend'].'.php');
+} elseif (file_exists('include/alert/'._DEFAULT_LANG.'/'.$AUTH[$policy]['backend'].'.php')) {
+ require_once('include/alert/'._DEFAULT_LANG.'/'.$AUTH[$policy]['backend'].'.php');
+}
+
+// Module(s) - 2016
+try {
+ $_dirlist = scandir('include/alert/'.$lang.'/');
+ for ($i=0; $i<count($_dirlist); $i++) {
+ list($_filename,$_ext) = explode('.',$_dirlist[$i]);
+ list($_prefix,$_module) = explode('-',$_filename);
+ if (substr($_filename,0,7)==='module-' && $_ext == 'php' && in_array($_module,$VALID_MODULES)) {
+ if (file_exists('include/alert/'.$lang.'/module-'.$_module.'.php')) {
+ require_once('include/alert/'.$lang.'/module-'.$_module.'.php');
+ } elseif (file_exists('include/alert/'._DEFAULT_LANG.'/module-'.$_module.'.php')) {
+ require_once('include/alert/'._DEFAULT_LANG.'/module-'.$_module.'.php');
+ }
+ }
+ }
+} catch (Exception $e) {
+ $_SESSION['alert'][] = 'info:'.$e->getMessage();
+}
+
+?>
diff --git a/mayor-orig/www/include/alert/hu_HU/base.php b/mayor-orig/www/include/alert/hu_HU/base.php
new file mode 100644
index 00000000..744f40d5
--- /dev/null
+++ b/mayor-orig/www/include/alert/hu_HU/base.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ Module: base
+*/
+
+//
+// Az $_SESSION['alert'] két részből áll: típus:hiba
+// típus: alert
+// message
+// page
+// info
+//
+
+$ALERT_MSG = array(
+
+ 'default' => '',
+ 'change_success' => 'Az adatmódosítás sikeresen megtörtént!',
+ 'page_missing' => 'A keresett oldal nem található a szerveren.',
+ 'sql_failure' => 'SQL adatbázis hiba!',
+ 'sql_warning' => 'SQL figyelmeztetés!',
+ 'sql_connect_failure'=> 'SQL adatbázis csatlakozási hiba!',
+ 'sql_query_failure' => 'SQL lekérdezési hiba!',
+ 'sql_select_db_failure' => 'A %0% modul %1% SQL adatbázisának kiválasztása nem sikerült!',
+ 'auth_failure' => 'Azonosítatlan felhasználó! Az adott hozzáférési szinten nem hitelesítetted magad!',
+ 'bad_pw' => 'Hibás jelszó!',
+ 'account_expired' => 'A jelszó érvényessége %0% napja lejárt!',
+ 'account_warning' => 'A jelszó %0% nap múlva lejár!',
+ 'warn_account_disable' => 'A felhasználói fiók %0% nap múlva letiltásra kerül!',
+ 'empty_field' => 'Üres adatbeviteli mező! Egy kötelező paraméter nincs megadva!', // login
+ 'session_alter_needed' => 'Nem egyező hash-hossz az adatbázisban! (%0% &rarr; %1%)',
+ 'insufficient_access' => 'Jogosulatlan hozzáférés!',
+ 'wrong_data' => 'Hibás/rossz adat!',
+ 'wrong_page' => 'Hibás oldalhivatkozás!',
+ 'deadline_expired' => 'A módosítási határidő lejárt!',
+ 'pw_change_success' => 'A jelszóváltoztatás sikeresen megtörtént',
+ 'file_not_found' => 'A file nem található!',
+ 'success' => 'A művelet sikeresen befejeződött!',
+ 'not_changed' => 'Nem történt adatváltozás.',
+ 'unknown_type' => 'Ismeretlen tipus',
+ 'config_error' => 'Konfigurációs hiba',
+ 'not_valid_form' => 'Érvénytelen űrlapadatok! A feldolgozás megszakadt.',
+ 'raw' => 'Részletek:',
+);
+
+// + auth
+
+$ALERT_MSG['no_account'] = 'Rossz azonosítót adtál meg!';
+$ALERT_MSG['account_disabled'] = 'A felhasználói fiók letilrásra került, ezzel az azonosítóval nem lehet belépni! További információkért fordulj a rendszergazdához!';
+$ALERT_MSG['force_pw_update'] = 'A jelszó megváltoztatása kötelező!';
+$ALERT_MSG['cookie'] = 'Lejárt a munkamenet vagy nem engedélyezett a sütik használata.';
+
+?>
diff --git a/mayor-orig/www/include/alert/hu_HU/file.php b/mayor-orig/www/include/alert/hu_HU/file.php
new file mode 100644
index 00000000..2696c9f3
--- /dev/null
+++ b/mayor-orig/www/include/alert/hu_HU/file.php
@@ -0,0 +1,9 @@
+<?php
+/*
+ Module: base/file
+*/
+
+// File-auth
+$ALERT_MSG['file_open_failure'] = 'Sikertelen file megnyitás!';
+
+?>
diff --git a/mayor-orig/www/include/alert/hu_HU/ldap.php b/mayor-orig/www/include/alert/hu_HU/ldap.php
new file mode 100644
index 00000000..1a089128
--- /dev/null
+++ b/mayor-orig/www/include/alert/hu_HU/ldap.php
@@ -0,0 +1,11 @@
+<?php
+/*
+ Module: base/ldap
+*/
+
+// LDAP-auth
+$ALERT_MSG['ldap_failure'] = 'LDAP adatbázis hiba!';
+$ALERT_MSG['ldap_bind_failure'] = 'LDAP adatbázis csatlakozási hiba!';
+$ALERT_MSG['ldap_search_failure'] = 'Az LDAP adatkeresés nem sikerült! Ellenőrizd a jogosultságaidat!';
+
+?>
diff --git a/mayor-orig/www/include/alert/hu_HU/module-auth.php b/mayor-orig/www/include/alert/hu_HU/module-auth.php
new file mode 100644
index 00000000..b7ad2333
--- /dev/null
+++ b/mayor-orig/www/include/alert/hu_HU/module-auth.php
@@ -0,0 +1,11 @@
+<?php
+/*
+ Module: base/password
+*/
+
+$ALERT_MSG['no_account'] = 'Rossz azonosítót adtál meg!';
+$ALERT_MSG['account_disabled'] = 'A felhasználói fiók letilrásra került, ezzel az azonosítóval nem lehet belépni!<br/>További információkért fordulj a rendszergazdához!';
+$ALERT_MSG['force_pw_update'] = 'A jelszó megváltoztatása kötelező!';
+$ALERT_MSG['cookie'] = 'Lejárt a munkamenet vagy nem engedélyezett a sütik használata.';
+$ALERT_MSG['pw_reset_disabled'] = 'Jelszóemlékeztető kérés ezen a hitelesítési szinten nem engedélyezett.';
+?>
diff --git a/mayor-orig/www/include/alert/hu_HU/module-naplo.php b/mayor-orig/www/include/alert/hu_HU/module-naplo.php
new file mode 100644
index 00000000..64bd3f22
--- /dev/null
+++ b/mayor-orig/www/include/alert/hu_HU/module-naplo.php
@@ -0,0 +1,70 @@
+<?php
+
+$ALERT_MSG['checkNaploFailed'] = 'Még nincs betöltve órarend, vagy nem megfelelő/hiányos a tankör-órarend összerendelés.';
+
+$ALERT_MSG['done'] = 'Sikeresen végrehajtva.';
+$ALERT_MSG['not_implemented'] = 'Ez a funkció még nincs implementálva vagy tesztelés alatt!';
+
+$ALERT_MSG['rollback'] = 'Visszagörgetés történt, azaz az elkezdett módosításokat visszaállítottuk a kiindulási állapotra.';
+$ALERT_MSG['nem_targyvalasztasi_idoszak'] = 'Jelenleg nincs (elő)tárgyválasztási időszak.';
+$ALERT_MSG['tipus_elfogyott'] = 'Ez a típus elfogyott!';
+$ALERT_MSG['nincs_oraja'] = 'Nincs (rögzített) órája ezen a napon!';
+$ALERT_MSG['tankor_min_reached'] = 'A megengedett minimum alá nem kerülhet a tankör létszáma!';
+$ALERT_MSG['tankor_max_reached'] = 'A megengedett maximum fölé nem kerülhet a tankör létszáma!';
+
+$ALERT_MSG['msg_success'] = 'Az üzenetet rögzítettük!';
+$ALERT_MSG['tiltott_nem_fiú'] = 'Fiú nem lehet anya!';
+$ALERT_MSG['tiltott_nem_lány'] = 'Lány nem lehet apa!';
+
+$ALERT_MSG['check_spelling'] = 'Helyesírási hiba!';
+
+$ALERT_MSG['idoszak_bizir_nincs'] = 'Jelenleg nincs bizonyítvány írási időszak.';
+$ALERT_MSG['nincs_tanmenetleadas_idoszak'] = 'Jelenleg nincs tanmenet leadási időszak.';
+$ALERT_MSG['tanmenetleadas_idoszak_vege'] = 'A tanmenetek leadására %0%-ig van lehetőség!';
+
+$ALERT_MSG['nem_aktív_tanev'] = 'Nem aktív tanév';
+$ALERT_MSG['lezart_tanev'] = 'Lezárt tanév';
+$ALERT_MSG['nem_lezart_tanev'] = 'Nem lezárt tanév!';
+$ALERT_MSG['nincs_tanev'] = 'Nincs megnyitva egyetlen tanév sem. Tanévet megnyitni az "Admin / Tanévek" menüpont alatt lehet.';
+
+$ALERT_MSG['tankorOsztalyNemTorolheto'] = 'A tankör tagok között szerepelnek a jelölt osztályba járók. Nem töröljük. osztalyId=';
+
+$ALERT_MSG['diak_tankorokben_lezarva'] = 'A %0% id-jű diákot a %1% azonosítójú tankörökből %2% dátummal kiléptettük!';
+$ALERT_MSG['missing_constant'] = 'A(z) %0% konstans hiányzik! (config)';
+$ALERT_MSG['obsolete_constant'] = 'A(z) %0% konstans elavult! (config)';
+
+$ALERT_MSG['foglalt_diak'] = '%0% (%1%) diáknak ebben az időpontban van órája!';
+$ALERT_MSG['visszamenoleges_modositas'] = 'A visszamenőleges módosítás erősen ellenjavallt!';
+$ALERT_MSG['nincs_szempontrendszer'] = 'Nincs megadva szempontrendszer az értékeléshez!';
+$ALERT_MSG['nincs_nap_bejegyzes'] = 'Ez a nap (%0%) nem szerepel az éves munkatervben!';
+
+$ALERT_MSG['nothing_to_do'] = 'Nincs kiválasztva teendő!';
+
+$ALERT_MSG['nincs_intervallum'] = 'Válassz ki egy intervallumot!';
+$ALERT_MSG['utkozes'] = '%0% db ütközést találtam a %1%. heti %2%. napi %3%. órára való felvételkor!';
+$ALERT_MSG['haladasi_utkozes'] = 'Óra ütközés!';
+
+$ALERT_MSG['nincs_targy'] = 'Nincs ilyen (jellegű) tárgy!';
+
+$ALERT_MSG['fogadoora_foglalt'] = 'A(z) %0% időpont már foglalt!';
+$ALERT_MSG['fogadoora_nincs'] = 'Nincs fogadóórája!';
+
+$ALERT_MSG['hibas_hianyzasok'] = 'A megadott intervallumban %0% db hiányzás volt rögzítve!';
+$ALERT_MSG['hibas_jegyek'] = 'A megadott intervallumban %0% db jegy volt rögzítve!';
+
+$ALERT_MSG['multi_evfolyam'] = '%0% több évfolyamnak is tagja! Előfordulhat, hogy így félévi vagy évvégi zárójegye nem rögzíthető.';
+
+$ALERT_MSG['nem_szabadTerem'] = 'A kiválasztott terem ebben az időpontban már foglalt!';
+$ALERT_MSG['not_member'] = 'Nem tagja/tanára a tankörnek/osztálynak';
+
+$ALERT_MSG['nem_torvenyes_kepviselo'] = 'Nem törvényes képviselője a kiválasztott diáknak! (Amennyiben ezzel nem ért egyet, kérjük keresse az adminisztrációt!';
+
+$ALERT_MSG['diakJogviszony'] = 'A diák %0% jogviszonya %1%';
+$ALERT_MSG['adatkezeles'] = 'Az adatkezelési szabályzat miatt ez a kérés jelenleg nem teljesíthető!';
+$ALERT_MSG['koszi_dup'] = 'Már jelentkeztél!';
+$ALERT_MSG['nem_modosithato'] = 'Nem módosítható.';
+
+$ALERT_MSG['id_not_found'] = 'Az adott oktatási azonosítóhoz nem található belső kulcs (id)!';
+$ALERT_MSG['db_hianyzas_tipus_modositas'] = 'A tankörhöz %0% db már rögzített hiányzás tankörtípusát megváltoztattuk!';
+
+?>
diff --git a/mayor-orig/www/include/alert/hu_HU/module-password.php b/mayor-orig/www/include/alert/hu_HU/module-password.php
new file mode 100644
index 00000000..f56a8c85
--- /dev/null
+++ b/mayor-orig/www/include/alert/hu_HU/module-password.php
@@ -0,0 +1,18 @@
+<?php
+/*
+ Module: base/password
+*/
+
+$ALERT_MSG['force_pw_update'] = 'A jelszó megváltoztatása kötelező!';
+$ALERT_MSG['pw_change_failed'] = 'A jelszóváltoztatás nem sikerült!';
+$ALERT_MSG['pw_change_disabled'] = 'A jelszóváltoztatás tiltott!';
+$ALERT_MSG['pw_change_success'] = 'A jelszóváltoztatás sikerült!';
+$ALERT_MSG['pw_not_match'] = 'A jelszó és a megerősítés nem egyezik!';
+$ALERT_MSG['pw_not_changed'] = 'A jelszó nem változott. Az új jelszónak különböznie kell a régi jelszótól!';
+
+// Jelszóváltoztatás előtt mindenképp authentikáció van - kellenek a hibaüzenetek
+if (file_exists('include/alert/hu_HU/module-auth.php')) {
+ require('include/alert/hu_HU/module-auth.php');
+}
+
+?>
diff --git a/mayor-orig/www/include/alert/hu_HU/module-session.php b/mayor-orig/www/include/alert/hu_HU/module-session.php
new file mode 100644
index 00000000..75f0b0bc
--- /dev/null
+++ b/mayor-orig/www/include/alert/hu_HU/module-session.php
@@ -0,0 +1,10 @@
+<?php
+/*
+ Module: base/password
+*/
+
+$ALERT_MSG['pw_not_match'] = 'A jelszó és a megerősítés nem egyezik!';
+$ALERT_MSG['multi_uid'] = 'Névütközés!';
+$ALERT_MSG['delete_uid_success'] = 'Az azonosító törlése sikeresen megtörtént.';
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/auth/login.php b/mayor-orig/www/include/backend/ads/auth/login.php
new file mode 100644
index 00000000..59cbf3e5
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/auth/login.php
@@ -0,0 +1,358 @@
+<?php
+/*
+ Auth-ADS
+
+ A név-jelszó pár ellenőrzése Active Directory adatbázis alapján
+*/
+
+/* --------------------------------------------------------------
+
+ Felhasználók azonosítása az AD-ban tárolt person (konfigurálható)
+ osztályok alapján történik.
+
+ A függvény az előre definiált _AUTH_SUCCESS, _AUTH_EXPIRED, _AUTH_FAILURE
+ konstansok valamelyikével tér vissza. (include/modules/auth/base/config.php)
+
+ Sikeres hitelesítés esetén
+ az egyéb account információkat (minimálisan a 'cn', azaz 'common name'
+ attribútumot) a cím szerint átadott $accountInformation tömbbe helyezi el.
+
+ Sikertelen azonosítás esetén a globális $_SESSION['alert'] változóban jelzi az
+ elutasítás okát.
+
+-------------------------------------------------------------- */
+
+######################################################################
+# Az LDAP protocol version 3 kötelező,
+# referals=0 nélkül használhatatlanul lassú
+######################################################################
+
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+ ldap_set_option(NULL, LDAP_OPT_REFERRALS, 0);
+
+ /**
+ * A userAccountControl pár fontos flag-e:
+ *
+ * Forrás: http://msdn.microsoft.com/en-us/library/windows/desktop/ms680832%28v=vs.85%29.aspx
+ *
+ * 512 Enabled Account
+ * 514 Disabled Account
+ * 544 Enabled, Password Not Required
+ * 546 Disabled, Password Not Required
+ * 66048 Enabled, Password Doesn't Expire
+ * 66050 Disabled, Password Doesn't Expire
+ * 66080 Enabled, Password Doesn't Expire & Not Required
+ * 66082 Disabled, Password Doesn't Expire & Not Required
+ * 590336 Enabled, User Cannot Change Password, Password Never Expires
+ *
+ * Ha pwdLastSet=0 és UF_DONT_EXPIRE_PASSWD=0, akkor következő bejelentkezéskor jelszót _kell_ változtatni.
+ **/
+ define('ADS_UF_ACCOUNTDISABLE',0x00000002); // The user account is disabled.
+ define('ADS_UF_PASSWD_NOTREQD',0x00000020); // No password is required.
+ define('ADS_UF_PASSWD_CANT_CHANGE',0x00000040); // The user cannot change the password.
+ define('ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED',0x00000080); // The user can send an encrypted password.
+ define('ADS_UF_NORMAL_ACCOUNT',0x00000200); // This is a default account type that represents a typical user.
+ define('ADS_UF_DONT_EXPIRE_PASSWD',0x00010000); // The password for this account will never expire.
+ define('ADS_UF_PASSWORD_EXPIRED',0x00800000); // The user password has expired.
+
+ /**
+ * Ha az accountExpires = 0 or 0x7FFFFFFFFFFFFFFF (9223372036854775807), akkor az account sose jár le. (nem a jelszó! az account.)
+ **/
+ define('ADS_ACCOUNTEXPIRES_NEVER','9223372036854775807');
+
+ /**
+ * Forrás: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724284%28v=VS.85%29.aspx
+ * - unixDays - Az eltelt napok száma 1970-01-01-től
+ * - unixTimestamp - Az eltelt másodpercek száma 1970-01-01 00:00:00-től
+ * - msFileTime - A 1601-01-01 00:00:00-tól elteltt 100 nanosecundum-os intervallumok száma (1/10000000 sec)
+ **/
+ function msFileTime2unixDays($pwdLastSet) {
+ return floor((($pwdLastSet / 10000000) - 11644406783) / 86400);
+ }
+ function msFileTime2unixTimestamp($pwdLastSet) {
+ return bcsub(bcdiv($pwdLastSet, '10000000'), '11644473600');
+ }
+
+ function getAccountStatus($userAccount, $toPolicy, $userinfo, $ds) {
+
+ /**
+ * Meghatározza a felhasználói jelszó lejárati dátumát és az account egyéb fontos jellemzőit
+ *
+ * @params: $userAccount - a lekérdezendő account
+ * @params: $userinfo - A user adatait tartalmazó korábbi LDAP lekérdezés eredménye (useraccountcontrol, pwdlastchange)
+ * @params: $ds - LDAP csatlakozás azonosító
+ * @requires: bcmath http://www.php.net/manual/en/book.bc.php
+ * MSDN: http://msdn.microsoft.com/en-us/library/ms974598.aspx - a pwdLastSet 64 bites integer
+ * @return: array
+ * @param book $isGUID Is the username passed a GUID or a samAccountName
+ **/
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = _POLICY;
+ if (!function_exists('bcmod')) {
+ $_SESSION['alert'][] = 'message:system_error:Nem támogatott függvényhívás [bcmod]! http://www.php.net/manual/en/book.bc.php';
+ return false;
+ };
+
+ if (!$ds) {
+ $closeLDAP = true;
+ // Csatlakozzunk az LDAP kiszolgálóhoz!
+ // Kapcsolódás a szerverhez
+ $ds = ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['adsUser'],$AUTH[$toPolicy]['adsPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+ }
+
+ if (!is_array($userinfo)) {
+ // Kérdezzük le az account adatait!
+ $filter="(&(sAMAccountName=$userAccount)(objectClass=".$AUTH[$toPolicy]['adsUserObjectClass']."))";
+ $justthese = array("sn","cn",$AUTH[$toPolicy]['adsStudyIdAttr'],"shadowexpire","shadowwarning","shadowinactive","shadowlastchange","shadowmax","pwdlastset","accountexpires","useraccountcontrol");
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ if ($closeLDAP) ldap_close($ds);
+ return false;
+ }
+ $userinfo = ldap_get_entries($ds,$sr);
+ if ( $userinfo['count'] === 0 || is_null($userinfo)) { // http://bugs.php.net/50185 ha nincs megfelelő elem, akkor - hibásan - null-al tér vissza! (~ PHP 5.2.10)
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ if ($closeLDAP) ldap_close($ds);
+ return false;
+ }
+ if ( $userinfo['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid";
+ if ($closeLDAP) ldap_close($ds);
+ return false;
+ }
+ }
+ $pwdlastset = $userinfo[0]['pwdlastset'][0];
+ $userAccountControl = $userinfo[0]['useraccountcontrol'][0];
+
+ $status = array();
+
+ $status['pwdLastSet'] = $pwdlastset;
+ $status['pwdLastSetDt'] = date('Y-m-d H:i:s',msFileTime2unixTimestamp($pwdlastset));
+ $status['accountExpires'] = $userinfo[0]['accountexpires'][0];
+ $status['accountNeverExpires'] = (ADS_ACCOUNTEXPIRES_NEVER==$userinfo[0]['accountexpires'][0]) || ($userinfo[0]['accountexpires'][0] == 0);
+ if (!$status['accountNeverExpires']) {
+ $status['accountExpiresDt'] = date('Y-m-d H:i:s',msFileTime2unixTimestamp($userinfo[0]['accountexpires'][0]));
+ $status['accountExpiresTimestamp'] = msFileTime2unixTimestamp($userinfo[0]['accountexpires'][0]);
+ }
+ $status['accountDisabled'] = (bool)($userAccountControl & ADS_UF_ACCOUNTDISABLE);
+ $status['noPasswordRequired'] = (bool)($userAccountControl & ADS_UF_PASSWD_NOTREQD);
+ $status['cannotChangePassword'] = (bool)($userAccountControl & ADS_UF_PASSWD_CANT_CHANGE);
+ $status['normalAccount'] = (bool)($userAccountControl & ADS_UF_NORMAL_ACCOUNT);
+ $status['passwordNeverExpire'] = (bool)($userAccountControl & ADS_UF_DONT_EXPIRE_PASSWD);
+ $status['passwordExpired'] = (bool)($userAccountControl & ADS_UF_PASSWORD_EXPIRED); // Ez mintha nem működne...
+ $status['mustChangePassword'] = ($pwdlastset === '0' && $status['passwordNeverExpire']);
+
+ // A jelszó lejárati dátum az AD-ben két értékből számítható ki:
+ // - A felhasználó saját pwdLastSet atribútuma: ez tárolja a jelszó utolsó módosításának időpontját
+ // - A tartomány maxPwdAge atribútuma: milyen hosszú ideig lehet érvényes a jelszó a tartományban
+ //
+ // A Microsoft persze saját kiindulási időpontot és lépési egységet használ az idő tárolására.
+ // Ez a függvény konvertálja ezt az értéket Unix időbélyeggé
+
+ // Kérdezzük le a tartomány maxPwdAge attribútumát!
+ $sr = ldap_read($ds, $AUTH[$toPolicy]['adsBaseDn'], 'objectclass=domain', array('maxPwdAge'));
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:getAccountStatus (ads backend)";
+ if ($closeLDAP) ldap_close($ds);
+ return false;
+ }
+ $info = ldap_get_entries($ds, $sr);
+ $maxpwdage = $info[0]['maxpwdage'][0];
+
+ // Lásd MSDN: http://msdn.microsoft.com/en-us/library/ms974598.aspx
+ //
+ // pwdLastSet tartalmazza az 1601 (UTC) január 1 óta eltelt 100 nanoszekundumos időintervallumok számát
+ // 64 bit-es integer típusú értékként
+ //
+ // Ettől az időponttól a Unix időszámítás kezdetéig eltelt másodpercek száma 11644473600.
+ //
+ // maxPwdAge szintén large integer, ami a jelszóváltoztatás és a jelszó lejárat közötti 100 nanoszekundumos időintervallumok számát tárolja
+
+ $status['maxPwdAgeInDays'] = bcdiv(bcsub(0,$maxpwdage),'36000000000')/24;
+
+ // Ezt az étéket át kell váltanunk másodpercekre, de ez egy negatív mennyiség!
+ //
+ // Ha a maxPwdAge alsó 32 bites része 0, akkor a jelszavak nem járnak le
+ //
+ // Sajnos ezek a számok túl nagyok a PHP integer típusához, ezért kell a BCMath függvényeit használnunk
+
+ $status['passwordsDoNotExpireInDomain'] = (bcmod($maxpwdage, 4294967296) === '0');
+
+ // Adjuk össze a pwdlastset és maxpwdage értékeket (pontosabban az utóbbi negatív értéket
+ // vonjuk ki az előbbiből), így megkapjuk a jelszó lejáratának időpontját a Microsoft féle
+ // egységekben.
+ $pwdexpire = bcsub($pwdlastset, $maxpwdage);
+
+ // Konvertáljuk az MS féle időt unix időre
+ $status['expiryTimestamp'] = bcsub(bcdiv($pwdexpire, '10000000'), '11644473600');
+ $status['expiryDate'] = date('Y-m-d H:i:s', bcsub(bcdiv($pwdexpire, '10000000'), '11644473600'));
+
+ if ($closeLDAP) ldap_close($ds);
+
+ $status['userAccount'] = $userAccount;
+ $status['usetAccountControl'] = $userAccountControl;
+ $status['shadowLastChange'] = $userinfo[0]['shadowlastchange'][0];
+ $status['shadowWarning'] = $userinfo[0]['shadowwarning'][0];
+ $status['shadowInactive'] = $userinfo[0]['shadowinactive'][0];
+ return array_merge($status);
+
+
+ }
+
+ function adsUserAuthentication($userAccount, $userPassword, &$accountInformation, $toPolicy) {
+
+ global $AUTH;
+
+ if ($toPolicy == '') {
+ if ($accountInformation['policy'] != '') $toPolicy = $accountInformation['policy'];
+// elseif ($_REQUEST['toPolicy'] != '') $toPolicy = $_REQUEST['toPolicy'];
+ else $toPolicy = _POLICY;
+ }
+
+ // Kapcsolódás a szerverhez
+ $ds = ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return _AUTH_FAILURE;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['adsUser'],$AUTH[$toPolicy]['adsPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return _AUTH_FAILURE;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(sAMAccountName=$userAccount)(objectClass=".$AUTH[$toPolicy]['adsUserObjectClass']."))";
+ $justthese = array("sn","cn",$AUTH[$toPolicy]['adsStudyIdAttr'],"shadowexpire","shadowwarning","shadowinactive","shadowlastchange","shadowmax","pwdlastset","accountexpires","useraccountcontrol");
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return _AUTH_FAILURE;
+ }
+ $info = ldap_get_entries($ds,$sr);
+ if ( $info['count'] === 0 || is_null($info)) { // http://bugs.php.net/50185 ha nincs megfelelő elem, akkor - hibásan - null-al tér vissza! (~ PHP 5.2.10)
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ ldap_close($ds);
+ return _AUTH_FAILURE_1;
+ }
+
+ if ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid";
+ ldap_close($ds);
+ return _AUTH_FAILURE_2;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+
+ $status = getAccountStatus($userAccount, $toPolicy, $info, $ds);
+ // Lejárt-e
+ // A lejárat ideje a shadowExpire és shadowLastChange+shadowMax kötül a kisebbik
+ // Esetünkben
+ if ($info[0]['pwdlastset'][0] != '') { // A pwdLastSet és shadowLastChange közül a kisebbiket használjuk
+ $info[0]['shadowlastchange'][0] = msFileTime2unixDays($info[0]['pwdlastset'][0]);
+ }
+
+ // A globális beállítással kikényszeríthető a nagyobb warning időszak
+ $shadowWarning = ($status['shadowWarning']<$AUTH[$toPolicy]['shadowWarning']) ? $AUTH[$toPolicy]['shadowWarning'] : $status['shadowWarning'];
+
+
+ $disabled = ( // Ha az jelszavak lejárhatnak a domain-ben és a user jellszava is lejárhat és le is járt...
+ !$status['passwordNeverExpire']
+ && !$status['passwordsDoNotExpireInDomain']
+ && $status['expiryTimestamp'] < time()
+ ) || ( // vagy az account lejárhat és le is járt
+ !$status['accountNeverExpires']
+ && $status['accountExpiresTimestamp']<time()
+ ); // Akkor már nem lehet belépni/jelszót változtatni...
+ $expired = ( // Ha a jelszavak lejárhatnak és a user jelszava is lejárhat, és shadowwarning-on belül le fog járni a jelszó
+ !$status['passwordNeverExpire']
+ && !$status['passwordsDoNotExpireInDomain']
+ && $status['expiryTimestamp'] - ($shadowWarning*24*60*60) < time()
+ ) || ( // Ha az account lejárhat és shadow warning-on belül le is fog járni az account
+ !$status['accountNeverExpires']
+ && $status['accountExpiresTimestamp'] - ($shadowWarning*24*60*60) < time()
+ ); // ...
+
+ /**
+ * Más backend-ben csak $AUTH[$toPolicy]['onDisabled'] == 'refuse' esetén utasítanánk el, de itt nincs más lehetőség...
+ **/
+ if ($disabled) {
+ $_SESSION['alert'][] = 'message:account_disabled';
+ ldap_close($ds);
+ return _AUTH_FAILURE_4;
+ }
+
+ $accountInformation['cn'] = $info[0]['cn'][0];
+ $accountInformation['studyId'] = $info[0][ $AUTH[$toPolicy]['adsStudyIdAttr'] ][0];
+ $accountInformation['dn'] = $info[0]['dn'];
+ $accountInformation['account'] = $userAccount;
+ // Jelszó ellenőrzés - lehet-e csatlakozni
+ if (!@ldap_bind($ds, $accountInformation['dn'], $userPassword)) {
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return _AUTH_FAILURE_3;
+ }
+
+ ldap_close($ds);
+ if (!$expired || $AUTH[$toPolicy]['onExpired'] == 'none') {
+ return _AUTH_SUCCESS;
+ } else {
+ $pwLejar = floor(($status['expiryTimestamp'] - time()) / 86400);
+ $_SESSION['alert'][] = 'info:account_warning:'.$pwLejar;
+ $_SESSION['alert'][] = 'info:warn_account_disable:'.$pwLejar; // más backend esetén csak onDisable=refuse esetén szoktuk...
+ if ($AUTH[$toPolicy]['onExpired'] == 'warning') {
+ return _AUTH_SUCCESS;
+ } elseif ($AUTH[$toPolicy]['onExpired'] == 'force update') {
+ return _AUTH_EXPIRED;
+ } else {
+ return _AUTH_FAILURE;
+ }
+ }
+
+/*
+ // Lejárt-e az azonosító
+ if ($AUTH[$toPolicy]['onExpired'] != 'none' && isset($expireTimestamp)) { // onExpired: none | warning | force update
+ // Lejárt-e
+ $pwLejar = $expireTimestamp - floor(time()/(60*60*24));
+ if (0 < $pwLejar && $pwLejar < $info[0]['shadowwarning'][0]) {
+ $_SESSION['alert'][] = 'info:account_warning:'.$pwLejar;
+ return _AUTH_SUCCESS;
+ } elseif ($pwLejar <= 0) {
+ $_SESSION['alert'][] = 'info:account_expired:'.abs($pwLejar);
+ if ($AUTH[$toPolicy]['onDisabled'] == 'refuse') $_SESSION['alert'][] = 'info:warn_account_disable:'.($info[0]['shadowinactive'][0]+$pwLejar);
+ if ($AUTH[$toPolicy]['onExpired'] == 'warning') {
+ return _AUTH_SUCCESS;
+ } elseif ($AUTH[$toPolicy]['onExpired'] == 'force update') {
+ return _AUTH_EXPIRED;
+ } else {
+ return _AUTH_FAILURE;
+ }
+ }
+ } // onExpired
+ // Ha idáig eljut, akkor minden rendben.
+ return _AUTH_SUCCESS;
+*/
+ } // count == 1
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/base/attrs.php b/mayor-orig/www/include/backend/ads/base/attrs.php
new file mode 100644
index 00000000..e01aa00c
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/base/attrs.php
@@ -0,0 +1,160 @@
+<?php
+/*
+ Module: useradmin
+*/
+
+ if (file_exists('lang/'._LANG.'/backend/ads/attrs.php')) {
+ require('lang/'._LANG.'/backend/ads/attrs.php');
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/backend/ads/attrs.php')) {
+ require('lang/'._DEFAULT_LANG.'/backend/ads/attrs.php');
+ }
+
+######################################################
+# Alapértelmezett jogosultságok
+#
+# w - Írható/olvasható
+# r - olvasható
+# - - egyik sem
+#
+# Három karakter: admin, self, other jogai
+######################################################
+
+ define('_DEFAULT_ADS_RIGHTS','wr-');
+
+######################################################
+# Az LDAP account attribútumok
+######################################################
+
+ global $adsAccountAttrs;
+ $adsAccountAttrs = array(
+ 'cn',
+ 'sn',
+ 'serialnumber',
+ 'givenname',
+ 'displayname',
+ 'name',
+ 'padpwdcount',
+ 'badpasswordtime',
+ 'lastlogon',
+ 'pwdlastset', // ~ shadowLastChane
+ 'accountexpires', // != shadowExpired - henme mi? 1601.01.01-től (60*60*24*1000*1000*10)*napok száma
+ 'samaccountname',
+ 'userprincipalname',
+ 'useraccountcontrol',
+ 'objectcategory',
+ 'uid',
+ 'mssfu30name',
+ 'uidnumber',
+ 'gidnumber',
+ 'unixhomedirectory',
+ 'loginshell',
+
+ 'shadowlastchange',
+ 'shadowexpire',
+ 'shadowwarning',
+ 'shadowmin',
+ 'shadowmax',
+ 'shadowinactive',
+
+/*
+ 'gecos',
+ 'mail',
+ 'telephonenumber',
+ 'mobile',
+ 'l',
+ 'street',
+ 'postaladdress',
+ 'postalcode',
+ 'homedirectory',
+*/
+ );
+
+ global $adsGroupAttrs;
+ $adsGroupAttrs = array(
+ 'cn',
+ 'description',
+ 'member',
+ 'name',
+ 'samaccountname',
+ 'objectcategory',
+ 'gidnumber', // ennek kellene lennie - mitől lesz?
+/* 'memberuid' */
+ );
+
+ global $accountAttrToADS; // Kis és nagybetű számít!!!
+ $accountAttrToADS = array(
+ 'userAccount' => 'sAMAccountName',
+ 'userCn' => 'displayName',
+ 'mail' => 'mail',
+ 'studyId' => 'serialNumber', // Ez konfig-ban külön van állítva, az itteni érték irreleváns
+ 'shadowLastChange' => 'shadowLastChange',
+ 'shadowWarning' => 'shadowWarning',
+ 'shadowMin' => 'shadowMin',
+ 'shadowMax' => 'shadowMax',
+ 'shadowExpire' => 'shadowExpire',
+ 'shadowInactive' => 'shadowInactive',
+ );
+
+ global $groupAttrToADS;
+ $groupAttrToADS = array(
+ 'groupCn' => 'cn',
+ 'groupDesc' => 'description',
+ 'member' => 'member',
+ );
+
+ global $adsAccountAttrDef;
+ $adsAccountAttrDef = array(
+ 'dn' => array('desc' => _ADSDN, 'type' => 'text', 'rights' => 'rrr'),
+ 'cn' => array('desc' => _ADSCN, 'type' => 'text', 'rights' => 'rrr'),
+ 'sn' => array('desc' => _ADSSN, 'type' => 'text', 'rights' => 'wrr'),
+ 'givenname' => array('desc' => _ADSGIVENNAME, 'type' => 'text'),
+ 'serialnumber' => array('desc' => _ADSSERIALNUMBER, 'type' => 'int', 'rights' => 'wrr'),
+ 'displayname' => array('desc' => _ADSCN, 'type' => 'text', 'rights' => 'wrr'),
+ 'name' => array('desc' => _ADSNAME, 'type' => 'text', 'rights' => 'r--'),
+ 'padpwdcount' => array('desc' => _ADSBADPWDCOUNT, 'type' => 'int', 'rights' => 'wrr'),
+ 'badpasswordtime' => array('desc' => _ADSBADPASSWORDTIME, 'type' => 'int', 'rights' => 'r--'),
+ 'lastlogon' => array('desc' => _ADSLASTLOGON, 'type' => 'int', 'rights' => 'r--'),
+ 'pwdlastset' => array('desc' => _ADSPWDLASTSET, 'type' => 'int', 'rights' => 'r--'),
+ 'accountexpires' => array('desc' => _ADSACCOUNTEXPIRES, 'type' => 'int', 'rights' => 'wrr'),
+ 'samaccountname' => array('desc' => _ADSSAMACCOUNTNAME, 'type' => 'text', 'rights' => 'wrr'),
+ 'useraccountcontrol' => array('desc' => _USERACCOUNTCONTROL, 'type' => 'text', 'rights' => 'wrr'),
+ 'userprincipalname' => array('desc' => _ADSUSERPRINCIPALNAME, 'type' => 'text', 'rights' => 'wrr'),
+ 'objectcategory' => array('desc' => _ADSOBJECTCATEGORY, 'type' => 'text', 'rights' => 'r--'),
+ 'uid' => array('desc' => _ADSUID, 'type' => 'text', 'rights' => 'rrr'),
+ 'uidnumber' => array('desc' => _ADSUIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'gidnumber' => array('desc' => _ADSGIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'mssfu30name' => array('desc' => _ADSUID, 'type' => 'text', 'rights' => 'r--'),
+ 'unixhomedirectory' => array('desc' => _ADSUNIXHOMEDIRECTORY, 'type' => 'text', 'rights' => 'wrr'),
+ 'loginshell' => array('desc' => _ADSLOGINSHELL, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowlastchange' => array('desc' => _ADSSHADOWLASTCHANGE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowexpire' => array('desc' => _ADSSHADOWEXPIRE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowwarning' => array('desc' => _ADSSHADOWWARNING, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowmin' => array('desc' => _ADSSHADOWMIN, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowmax' => array('desc' => _ADSSHADOWMAX, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowinactive' => array('desc' => _ADSSHADOWINACTICE, 'type' => 'text', 'rights' => 'wrr'),
+/*
+ 'gecos' => array('desc' => _ADSGECOS, 'type' => 'text', 'rights' => 'w--'),
+ 'mail' => array('desc' => _ADSMAIL, 'type' => 'text', 'rights' => 'wwr'),
+ 'telephonenumber' => array('desc' => _ADSTELEPHONENUMBER, 'type' => 'text', 'rights' => 'ww-'),
+ 'mobile' => array('desc' => _ADSMOBILE, 'type' => 'text', 'rights' => 'ww-'),
+ 'l' => array('desc' => _ADSL, 'type' => 'text'),
+ 'street' => array('desc' => _ADSSTREET, 'type' => 'text'),
+ 'postaladdress' => array('desc' => _ADSPOSTALADDRESS, 'type' => 'text'),
+ 'postalcode' => array('desc' => _ADSPOSTALCODE, 'type' => 'text'),
+*/
+ );
+
+ global $adsGroupAttrDef;
+ $adsGroupAttrDef = array(
+ 'cn' => array('desc' => _ADSCN, 'type' => 'text','rights' => 'rrr'),
+ 'name' => array('desc' => _ADSNAME, 'type' => 'text','rights' => 'rrr'),
+ 'samaccountname' => array('desc' => _ADSSAMACCOUNTNAME, 'type' => 'text','rights' => 'wrr'),
+ 'description' => array('desc' => _ADSDESCRIPTION, 'type' => 'text'),
+ 'gidnumber' => array('desc' => _ADSGIDNUMBER, 'type' => 'int','rights' => 'w--'),
+ 'member' => array('desc' => _ADSMEMBER, 'type' => 'select'),
+ 'objectcategory' => array('desc' => _ADSOBJECTCATEGORY, 'type' => 'text','rights' => 'rrr'),
+
+ 'memberuid' => array('desc' => _ADSMEMBERUID, 'type' => 'select'),
+ );
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/password/changePassword.php b/mayor-orig/www/include/backend/ads/password/changePassword.php
new file mode 100644
index 00000000..6d686b34
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/password/changePassword.php
@@ -0,0 +1,165 @@
+<?php
+/*
+
+ Module: base/password
+
+ Active Directory-ban csak ldaps-sel lehet megváltoztatni a jelszót!
+ Az AD a shadow attribútumokat nem kezeli, helyettük más attribútumokat állít automatikusan.
+ De azért beállítjuk őket, abból baj nem lehet...
+
+ function changeMyPassword($userAccount, $userPassword, $newPassword, $verification)
+ A függvény nem vizsgálja, hogy jogosultak vagyunk-e a jelszó megváltoztatására.
+ Ennek eldöntése a függvényt hívó program feladata
+*/
+
+############################################################################
+# Jelszó kódolása az Active Directory számára
+############################################################################
+
+function ADSEncodePassword($password) {
+
+ return mb_convert_encoding("\"".$password."\"", "UTF-16LE", "UTF-8");
+
+}
+
+############################################################################
+# Saját jelszó megváltoztatása
+############################################################################
+
+/* *************************************************************************
+ A leírások szerint a felhasználó maga is megváltoztathatja jelszavát.
+ Ennek módja az unicodePw attribútum törlése (a régi jelszó értéke szerint),
+ és felvétele új értékkel - mindenz elvileg egy lépésben.
+
+ A PHP ldap_mod* függvények ezt az egy lépésben kétféle módosítást nem
+ támogatják. De a helyzet az, hogy a módosítás perl-ből és parancssorból
+ sem működik...
+************************************************************************* */
+
+function changeMyPassword($userAccount, $userPassword, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = $_REQUEST['toPolicy'];
+ $userDn = ADSuserAccountToDn($userAccount, $toPolicy);
+
+ // Csatlakozzás az AD kiszolgálóhoz (SSL szükséges!)
+ $ds = ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ // nem sikerült csatlakozni
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+
+ // Az eredeti jelszó ellenőrzése - csatlakozással
+ $b_ok = ldap_bind($ds,$userDn,$userPassword);
+ if (!$b_ok) {
+ // Talán a régi jelszót elgépelte, vagy le van tiltva...
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'.$userDn.':changeMyPassword - hibás a régi jelszó?';
+ ldap_close($ds);
+ return false;
+ }
+
+ // A régi és új jelszavak átkódolása
+ $newUnicodePwd = base64_encode(ADSEncodePassword($newPassword));
+ $oldUnicodePwd = base64_encode(ADSEncodePassword($userPassword));
+ // A php ldap_mod* függvényei nem tudnak egy lépésben többféle módosítást elküldeni
+ // ezért a parancssoros ldapmodify-t kell meghívnunk...
+ $ldif=<<<EOT
+dn: $userDn
+changetype: modify
+delete: unicodePwd
+unicodePwd:: $oldUnicodePwd
+-
+add: unicodePwd
+unicodePwd:: $newUnicodePwd
+-
+EOT;
+ $cmd = sprintf("/usr/bin/ldapmodify -H %s -D '%s' -x -w %s", $AUTH[$toPolicy]['adsHostname'], $userDn, $userPassword);
+ // KHM!
+ if (($fh = popen($cmd, 'w')) === false ) {
+ // Nem sikerült megnyitni a csatornát - mikor is lehet ilyen? Ha nincs ldapmodify?
+ $_SESSION['alert'][] = 'message:popen_failure';
+ return false;
+ }
+ fwrite($fh, "$ldif\n");
+ pclose($fh);
+
+ // Sikeres volt-e a jelszóváltoztatás? Próbáljunk újra csatlakozni az új jelszóval!
+ if (!@ldap_bind($ds, $userDn, $newPassword)) {
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return false;
+ }
+
+ // Shadow attribútumok beállítása
+ // Ezekre nincs jogosultsága a felhasználónak, így csak AccountOperator-ként módosítható
+ // Ráadásul Windoes alatt változtatva a jelszót ezek nem változnak, így nem lehet számítani rájuk...
+ if (isset($AUTH[$toPolicy]['adsAccountOperatorUser'])) {
+ $shadowLastChange = floor(time()/(60*60*24));
+ $info['shadowLastChange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowExpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowExpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+
+ $b_ok = ldap_bind($ds,$AUTH[$toPolicy]['adsAccountOperatorUser'],$AUTH[$toPolicy]['adsAccountOperatorPw']);
+ if (!$b_ok) { $_SESSION['alert'][] = 'message:ldap_bind_failure'; return false; }
+ $r = @ldap_mod_replace($ds, $userDn, $info);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure:changeMyPassword';
+ return false;
+ }
+ }
+ ldap_close($ds);
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+
+}
+
+############################################################################
+# Adminisztrátori jelszó változtatás
+############################################################################
+
+function changePassword($userAccount, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = _POLICY;
+ $userDn = ADSuserAccountToDn($userAccount, $toPolicy);
+ $shadowLastChange = floor(time()/(60*60*24));
+
+ $ds = ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if ($ds) {
+ $b_ok = ldap_bind($ds,BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if ($b_ok) {
+ $info['unicodePwd'][0] = ADSEncodePassword($newPassword);
+ // Ezekre nincs jogosultsága a felhasználónak, nem változnak:
+ // _SHADOWMIN, _SHADOWMAX, _SHADOWWARNING, _SHADOWINACTIVE
+ $info['shadowLastChange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowExpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowExpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $r = @ldap_mod_replace($ds,$userDn,$info);
+ ldap_close($ds);
+ if ($r) {
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure:changePassword';
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'._USERDN.':changePassword';
+ ldap_close($ds);
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+}
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/session/accountInfo.php b/mayor-orig/www/include/backend/ads/session/accountInfo.php
new file mode 100644
index 00000000..eef90fd4
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/session/accountInfo.php
@@ -0,0 +1,416 @@
+<?php
+/*
+ Module: base/auth-ads
+ Backend: ads
+
+ function getADSInfo($userDn, $attrList=array('cn'), $toPolicy = '')
+ function adsGetAccountInfo($userAccount, $toPolicy = _POLICY)
+ function adsGetUserInfo($userAccount, $toPolicy = _POLICY)
+ function adsChangeAccountInfo($userAccount, $toPolicy = _POLICY)
+ function adsGetGroupInfo($groupCn, $toPolicy = _POLICY)
+
+*/
+
+######################################################
+# getADSInfo - általános ADS lekérdezés
+######################################################
+
+
+ function getADSInfo($userDn, $attrList=array('cn'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $filter = '(objectclass=*)';
+ $sr = @ldap_search($ds, $userDn, $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+###########################################################
+# adsGetAccountInfo - felhasználói információk (backend)
+###########################################################
+
+ function adsGetAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $backendAttrs, $backendAttrDef;
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Account', $toPolicy);
+
+ $userDn = ADSuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getADSInfo($userDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // ADS schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+ }
+ return $return[0];
+
+ }
+
+ }
+
+#############################################################
+# adsGetUserInfo - felhasználói információk (keretrendszer)
+#############################################################
+
+ function adsGetUserInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $accountAttrToADS, $adsAttrDef;
+ $userDn = ADSuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getADSInfo($userDn, array_values($accountAttrToADS), $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ $result[0]['dn'] = array('count' => 1, 0 => $result[0]['dn']);
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt + ADS --> MaYoR schema
+ foreach ($accountAttrToADS as $attr => $adsAttr) {
+ $adsAttr = kisbetus($adsAttr);
+ if (isset($result[0][$adsAttr])) $return[$attr] = $result[0][$adsAttr];
+ else $return[$attr] = array('count' => 0);
+ }
+ return $return;
+
+ }
+
+ }
+
+###############################################################
+# adsChangeAccountInfo - felhasználói információk módosítása
+###############################################################
+
+ function adsChangeAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+ $userDn = ADSuserAccountToDn($userAccount, $toPolicy);
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+ $_alert = array();
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_ADS_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '' ) $values[0] = $_POST[$attr];
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if ($_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if ($_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+ }
+
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$userDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@$r = ldap_mod_replace($ds,$userDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$userDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i = 0;$i < count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+###########################################################
+# adsGetGroupInfo - csoport információk (backend)
+###########################################################
+
+ function adsGetGroupInfo($groupCn, $toPolicy = _POLICY, $SET = array()) {
+
+ global $backendAttrs, $backendAttrDef;
+
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Group', $toPolicy);
+
+ $groupDn = ADSgroupCnToDn($groupCn, $toPolicy);
+
+ $result = getADSInfo($groupDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // Accountok lekérdezése
+ $info = getADSaccounts($toPolicy);
+ for ($i = 0; $i < $info['count']; $i++) {
+ $accountUid[] = array(
+ 'value' => $info[$i]['uid'][0],
+ 'txt' => $info[$i]['displayname'][0]
+ );
+ $accountDn[] = array(
+ 'value' => $info[$i]['dn'],
+ 'txt' => $info[$i]['displayname'][0]
+ );
+ $DN2CN[$info[$i]['dn']] = $info[$i]['displayname'][0];
+ }
+
+ // ADS schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif($attr == 'member') {
+ $_TMP = array();
+ for ($j=0; $j<$result[$i][$attr]['count']; $j++) {
+ $_dn = $result[$i][$attr][$j];
+ $_TMP[] = array(
+ 'type'=>'member',
+ 'value'=>$_dn,
+ 'txt'=>($DN2CN[$_dn]==''?str_replace(',',' ',$_dn):$DN2CN[$_dn])
+ );
+ }
+ $return[$i][$attr] = $_TMP;
+ }
+
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+
+ if ($SET['withNewAccounts']===true) {
+ $return[$i]['member']['new'] = $accountDn;
+ $return[$i]['memberuid']['new'] = $accountUid;
+ }
+ }
+
+ return $return[0];
+
+ }
+
+ }
+
+###############################################################
+# adsChangeGroupInfo - csoport információk módosítása
+###############################################################
+
+ function adsChangeGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+// !!!! A memberuid / member szinkronjára nem figyel!!
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+ $groupDn = ADSgroupCnToDn($groupCn, $toPolicy);
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+ $_alert = array();
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_ADS_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '')
+ if (isset($_POST[$attr])) $values[0] = $_POST[$attr];
+ else $values[0] = '';
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if (isset($_POST['new-'.$attr][0]) && $_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if (isset($_POST['del-'.$attr][0]) && $_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+
+ }
+
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$groupDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@ldap_mod_replace($ds,$groupDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$groupDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i=0;$i<count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+ function getADSaccounts($toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $attrList = array('cn','uid','displayName','samaccountname');
+ $filter = '(&(objectclass=person)(!(objectclass=computer)))';
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ }
+
+ ldap_sort($ds, $sr, 'displayname');
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/session/base.php b/mayor-orig/www/include/backend/ads/session/base.php
new file mode 100644
index 00000000..3a727c3b
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/session/base.php
@@ -0,0 +1,188 @@
+<?php
+/*
+ Module: base/session
+ Backend: ads (for Active Directory)
+
+ function ADSuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY)
+ function adsMemberOf($userAccount, $group, $toPolicy = _POLICY)
+
+*/
+
+ require('include/backend/ads/base/attrs.php');
+
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+ ldap_set_option(NULL, LDAP_OPT_REFERRALS, 0);
+
+ if ($AUTH[_POLICY]['backend'] == 'ads') {
+ /* why not put into session cache */
+ if ($AUTH[_POLICY]['cacheable']=='yes') {
+ $userDn = _queryCache('RDN',_POLICY,'value');
+ }
+ if (!isset($userDn)) $userDn = ADSuserAccountToDn();
+ define('_USERDN', $userDn); // --TODO DEPRECATED
+ define('BACKEND_CONNECT_DN', $AUTH[_POLICY]['adsUser']);
+ define('BACKEND_CONNECT_PASSWORD', $AUTH[_POLICY]['adsPw']);
+ if ($AUTH[_POLICY]['cacheable']=='yes') _registerToCache('RDN',$userDn,_POLICY);
+ unset($userDn);
+ }
+
+######################################################
+# A _USERACCOUNT(uid)-hoz tartozó dn lekérdezése
+######################################################
+
+ function ADSuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['adsUser'],$AUTH[$toPolicy]['adsPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(sAMAccountName=$userAccount)(objectClass=".$AUTH[$toPolicy]['adsUserObjectClass']."))";
+ $justthese=array('cn','sn','givenName');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid:$userAccount";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+ return $info[0]['dn'];
+ }
+
+ }
+
+
+######################################################
+# A groupCn(cn)-hez tartozó dn lekérdezése
+######################################################
+
+ function ADSgroupCnToDn($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['adsUser'],$AUTH[$toPolicy]['adsPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e ilyen csoport?
+ $filter="(&(cn=$groupCn)(objectClass=".$AUTH[$toPolicy]['adsGroupObjectClass']."))";
+ $justthese=array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen groupCn (cn) - hibaüzenet csak akkor, ha nem kategóriáról van szó...
+ if (!in_array($groupCn, array_map('ekezettelen', $AUTH[$toPolicy]['categories']))) $_SESSION['alert'][] = "message:no_group:$groupCn";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen cn is van
+ $_SESSION['alert'][] = "message:multi_gid:$groupCn";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen csoport
+ return $info[0]['dn'];
+ }
+
+ }
+
+######################################################
+# memberOf - csoport tag-e
+######################################################
+
+ function adsMemberOf($userAccount, $group, $toPolicy = _POLICY) {
+
+ global $AUTH;
+ //global $ADS2Mayor;
+
+ $userDn = ADSuserAccountToDn($userAccount, $toPolicy);
+ if (in_array($group, $AUTH[$toPolicy]['categories'])) {
+ if (strpos($userDn, ',ou='.ekezettelen($group).',') !== false) return true;
+# Ha nincs megfelelő ou-ban, akkor nézzük a csoport tagságot - így berakható időszakosan akárki pl a titkárság kategóriába...
+# else return false;
+ }
+
+ if (substr($group,0,3) != 'cn=') {
+ $groupDn = ADSgroupCnToDn(ekezettelen($group));
+ if (!$groupDn) return false; // Ha nincs ilyen csoport az ADS fában
+ } else {
+ $groupDn = $group;
+ }
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['adsUser'],$AUTH[$toPolicy]['adsPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $justthese = array('cn'); // valamit le kell kérdezni...
+ $filter = "(&(objectClass=".$AUTH[$toPolicy]['adsGroupObjectClass'].")(member=$userDn))";
+ $sr = @ldap_search($ds, $groupDn, $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = ldap_get_entries($ds, $sr);
+ ldap_close($ds);
+
+ if ($info['count'] > 0) {
+ return true;
+ } else {
+ return false;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/session/createAccount.php b/mayor-orig/www/include/backend/ads/session/createAccount.php
new file mode 100644
index 00000000..02809f07
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/session/createAccount.php
@@ -0,0 +1,157 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+ require_once('include/backend/ads/password/changePassword.php');
+
+ /*
+ $SET = array(
+ container => a konténer elem - ha nincs, akkor CN=Users alá rakja
+ category => tanár, diák... egy kiemelt fontosságú csoport tagság
+ groups => egyéb csoportok
+ policyAttrs => policy függő attribútumok
+ )
+ */
+ function adsCreateAccount(
+ $userCn, $userAccount, $userPassword, $toPolicy, $SET
+ ) {
+
+ global $AUTH;
+
+ $shadowLastChange = floor(time() / (60*60*24));
+
+ // $toPolicy --> ads backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ads') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $ginfo = Array();
+
+ // uid ütközés ellenőrzése
+ $filter = "(sAMAccountName=$userAccount)";
+ $justthese = array('sAMAccountName');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ $uinfo = ldap_get_entries($ds, $sr);
+ $uidCount = $uinfo['count'];
+ ldap_free_result($sr);
+ if ($uidCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$userAccount;
+ return false;
+ }
+
+ // Az következő uidNumber megállapítása
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['adsUserObjectClass'].")(uidNumber=*))";
+ $justthese = array('uidNumber', 'msSFU30UidNumber');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ ldap_sort($ds, $sr, 'uidNumber');
+ $uinfo = ldap_get_entries($ds, $sr);
+ ldap_free_result($sr);
+ if (isset($uinfo['count']) && $uinfo['count'] > 0) $info['uidNumber'] = array($uinfo[ $uinfo['count']-1 ]['uidnumber'][0]+1);
+ else $info['uidNumber'] = array(1001);
+
+ // shadow attributumok...
+ // A shadowLastChange a mai nap // if (isset($AUTH[$toPolicy]['shadowlastchange']) && $AUTH[$toPolicy]['shadowlastchange'] != '')
+ $info['shadowLastChange'] = array($shadowLastChange);
+ if (isset($AUTH[$toPolicy]['shadowMin']) && $AUTH[$toPolicy]['shadowMin'] != '') $info['shadowMin'] = array($AUTH[$toPolicy]['shadowMin']);
+ if (isset($AUTH[$toPolicy]['shadowMax']) && $AUTH[$toPolicy]['shadowMax'] != '') $info['shadowMax'] = array($AUTH[$toPolicy]['shadowMax']);
+ if (isset($AUTH[$toPolicy]['shadowWarning']) && $AUTH[$toPolicy]['shadowWarning'] != '') $info['shadowWarning'] = array($AUTH[$toPolicy]['shadowWarning']);
+ if (isset($AUTH[$toPolicy]['shadowInactive']) && $AUTH[$toPolicy]['shadowInactive'] != '') $info['shadowInactive'] = array($AUTH[$toPolicy]['shadowInactive']);
+ if (isset($AUTH[$toPolicy]['shadowExpire']) && $AUTH[$toPolicy]['shadowWxpire'] != '') $info['shadowExpire'] = array($AUTH[$toPolicy]['shadowExpire']);
+
+ // A szokásos attribútumok
+ $Name = explode(' ',$userCn);
+ $Dn = ldap_explode_dn($AUTH[$toPolicy]['adsBaseDn'], 1); unset($Dn['count']);
+ $info['userPrincipalName'] = array( $userAccount.'@'.implode('.', $Dn));
+ $info['msSFU30Name'] = $info['sAMAccountName'] = $info['cn'] = array($userAccount);
+ $info['displayName'] = array($userCn);
+ $info['sn'] = array($Name[0]);
+ $info['givenName'] = array($Name[ count($Name)-1 ]);
+ $info['unixUserPassword'] = array('ABCD!efgh12345$67890');
+ $info['unixHomeDirectory'] = array(ekezettelen("/home/$userAccount"));
+ $info['loginShell'] = array('/bin/bash');
+ $info['objectClass'] = array($AUTH[$toPolicy]['adsUserObjectClass'], 'user');
+
+ $policyAccountAttrs = $SET['policyAttrs'];
+ if (isset($policyAccountAttrs['studyId'])) $info[ $AUTH[$toPolicy]['adsStudyIdAttr'] ] = array($policyAccountAttrs['studyId']);
+ foreach ($policyAccountAttrs as $attr => $value)
+ if ($attr != 'studyId' && isset($accountAttrToADS[$attr]))
+ $info[ $accountAttrToADS[$attr] ] = array($value);
+
+ if (isset($SET['container'])) $dn = "CN=$userAccount,".$SET['container'];
+ else $dn = "CN=$userAccount,CN=Users,".$AUTH[$toPolicy]['adsBaseDn'];
+
+ // user felvétel
+ $_r1 = @ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ $_SESSION['alert'][] = 'message:ldap_error:Add user:'.ldap_error($ds);
+ //echo $dn.'<pre>'; var_dump($info); echo '</pre>';
+ return false;
+ }
+
+ // Jelszó beállítás
+ if (!changePassword($userAccount, $userPassword, $toPolicy)) $_SESSION['alert'][] = 'message:ldap_error:changePassword failed:'.$userAccount;
+
+ // Engedélyezés
+ $einfo = array('userAccountControl' => array(512)); /* Normal account = 512 */
+ $_r1 = @ldap_mod_replace($ds,$dn,$einfo);
+ if (!$_r1) {
+ $_SESSION['alert'][] = 'message:ldap_error:Enable user:'.ldap_error($ds);
+ //echo $dn.'<pre>'; var_dump($info); echo '</pre>';
+ return false;
+ }
+
+ // Kategória csoportba és egyéb csoportokba rakás
+ if (isset($SET['category'])) {
+ if (is_array($SET['groups'])) array_unshift($SET['groups'], $SET['category']);
+ else $SET['groups'] = array($SET['category']);
+
+ $ginfo['member'] = $dn;
+
+ for ($i = 0; $i < count($SET['groups']); $i++) {
+ $groupDn = ADSgroupCnToDn($SET['groups'][$i], $toPolicy);
+ if ($groupDn !== false) {
+ $_r3 = @ldap_mod_add($ds, $groupDn, $ginfo);
+ if (!$_r3) {
+ $_SESSION['alert'][] = 'message:ldap_error:Add to group '.$SET['groups'][$i].':'.ldap_error($ds);
+ //echo $SET['groups'][$i].'<pre>'; var_dump($ginfo); echo '</pre>';
+ }
+ }
+ }
+ }
+
+ ldap_close($ds);
+
+ if (defined('_DATADIR')
+ && isset($AUTH[$toPolicy]['createAccountScript'])
+ && file_exists(_DATADIR)
+ ) {
+ $sfp = fopen(_DATADIR.'/'.$AUTH[$toPolicy]['createAccountScript'],'a+');
+ if ($sfp) {
+ fwrite($sfp,"\n# $userAccount létrehozása: userAccount uidNumber homeDirectory\n");
+ fwrite($sfp,"createAccount.sh '$userAccount' '".$info['uidNumber'][0]."' '".$info['unixHomeDirectory'][0]."'\n");
+ fclose($sfp);
+ }
+ }
+ $_SESSION['alert'][] = 'info:create_uid_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/session/createGroup.php b/mayor-orig/www/include/backend/ads/session/createGroup.php
new file mode 100644
index 00000000..0a0a8c1d
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/session/createGroup.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+
+ function adsCreateGroup($groupCn, $groupDesc, $toPolicy = _POLICY, $SET = array()) {
+
+ global $AUTH;
+ $category = ekezettelen($SET['category']);
+
+ // $toPolicy --> ads backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ads') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $ginfo = Array();
+
+ // cn ütközés ellenőrzése
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['adsGroupObjectClass'].")(cn=$groupCn))";
+ $justthese = array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ $ginfo = ldap_get_entries($ds, $sr);
+ $gCount = $ginfo['count'];
+ ldap_free_result($sr);
+ if ($gCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$groupCn;
+ return false;
+ }
+
+ // Az következő gidNumber megállapítása
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['adsGroupObjectClass'].")(gidNumber=*))";
+ $justthese = array('gidNumber', 'msSFU30GidNumber');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['adsBaseDn'], $filter, $justthese);
+ ldap_sort($ds, $sr, 'gidNumber');
+ $ginfo = ldap_get_entries($ds, $sr);
+ ldap_free_result($sr);
+ if (isset($ginfo['count']) && $ginfo['count'] > 0) $info['gidNumber'] = array($ginfo[ $ginfo['count']-1 ]['gidnumber'][0]+1);
+ else $info['gidNumber'] = array(1001);
+
+ // A szokásos attribútumok
+ $info['sAMAccountName'] = $info['cn'] = array($groupCn);
+ $info['description'] = array($groupDesc);
+
+ // A kategória függő attribútumok
+ if (isset($SET['container'])) $dn = "CN=$groupCn,".$SET['container'];
+ else $dn = "CN=$groupCn,OU=$category,".$AUTH[$toPolicy]['adsBaseDn'];
+
+ // objectum osztályok
+ $info['objectClass'] = array($AUTH[$toPolicy]['adsGroupObjectClass']);
+
+ // csoport felvétel
+ $_r1 = ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ printf("ADS-Error: %s<br>\n", ldap_error($ds));
+ var_dump($info);
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:create_group_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ads/session/search/searchAccount.php b/mayor-orig/www/include/backend/ads/session/search/searchAccount.php
new file mode 100644
index 00000000..01298382
--- /dev/null
+++ b/mayor-orig/www/include/backend/ads/session/search/searchAccount.php
@@ -0,0 +1,277 @@
+<?php
+/*
+ Module: base/session
+ Backend: ads
+
+ ! -- Csak publikus mezőkre lehet keresni! -- !
+ function ADSSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)')
+ function adsSearchAccount($attr, $pattern, $searchAttrs = array('userCn'))
+ function adsSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = '') {
+
+*/
+
+######################################################
+# Általános ADS kereső függvény
+######################################################
+
+ function ADSSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)', $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($pattern == '') {
+ $_SESSION['alert'][] = 'message:empty_field';
+ return false;
+ }
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:ADSSearch';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ if (
+ strpos(kisbetus($attr),'number') !== false
+ && $attr != 'serialNumber'
+ ) $filter = "(&$filter($attr=$pattern))";
+ else $filter = "(&$filter($attr=*$pattern*))";
+
+ $filter = "(&$filter($attr=*$pattern*))";
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['adsBaseDn'], $filter, $searchAttrs);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+######################################################
+# adsSearchAccount - felhasználó kereső függvény
+######################################################
+
+ function adsSearchAccount($attr, $pattern, $searchAttrs = array('userCn'), $toPolicy = _POLICY) {
+
+ global $accountAttrToADS;
+
+ // A keresendő attribútum konvertálása ADS attribútummá
+ if ($accountAttrToADS[ $attr ] != '') $attrADS = $accountAttrToADS[ $attr ];
+ else $attrADS = $attr;
+ if ($attrADS == 'dn') $attrADS = 'uid'; // dn-re nem megy a keresés!!
+
+ // A lekérendő attribútumok konvertálása ADS attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($accountAttrToADS[ $searchAttrs[$i] ] != '') $searchAttrsADS[$i] = $accountAttrToADS[ $searchAttrs[$i] ];
+ else $searchAttrsADS[$i] = $searchAttrs[$i];
+ }
+ $result = ADSSearch($attrADS, $pattern, $searchAttrsADS, '(&(objectclass=person)(!(objectclass=computer)))', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // ADS schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['userAccount'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (isset($result[$i][ kisbetus($accountAttrToADS[$a]) ])) {
+ if ($accountAttrToADS[$a] != '') $return[$i][$a] = $result[$i][ kisbetus($accountAttrToADS[$a]) ];
+ else $return[$i][$a] = $result[$i][$a];
+ } else {
+ $return[$i][$a] = array('count' => 0) ;
+ }
+ }
+ $return[$i]['category'] = getAccountCategories($return[$i]['userAccount'][0], $toPolicy);
+ $return[$i]['category']['count'] = count($return[$i]['category']);
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# adsSearchGroup - csoport kereső függvény
+######################################################
+
+ function adsSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = _POLICY) {
+
+ global $groupAttrToADS;
+
+ // A keresendő attribútum konvertálása ADS attribútummá
+ if ($groupAttrToADS[ $attr ] != '') $attrADS = $groupAttrToADS[ $attr ];
+ else $attrADS = $attr;
+ if ($attrADS == 'dn') $attrADS = 'cn'; // dn-re nem megy a keresés!!
+
+ // A lekérendő adtibútumok konvertálása ADS attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($groupAttrToADS[ $searchAttrs[$i] ] != '') $searchAttrsADS[$i] = $groupAttrToADS[ $searchAttrs[$i] ];
+ else $searchAttrsADS[$i] = $searchAttrs[$i];
+ }
+
+ $result = ADSSearch($attrADS, $pattern, $searchAttrsADS, '(objectclass=group)', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // ADS schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['groupCn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (!isset($groupAttrToADS[$a]) || $groupAttrToADS[$a] != '') {
+ if (isset($result[$i][ $groupAttrToADS[$a] ])) $return[$i][$a] = $result[$i][ $groupAttrToADS[$a] ];
+ else $return[$i][$a] = '';
+ } else {
+ $return[$i][$a] = $result[$i][$a];
+ }
+ }
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# adsDeleteAccount - account törlése
+######################################################
+
+ function adsDeleteAccount($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> ads backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ads') {
+ $_SESSION['alert'][] = 'page:wrong_backend:ads!='.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ $userDn = ADSuserAccountToDn($userAccount, $toPolicy);
+ if ($userDn === false) return false;
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Az uidNumber, a unixHomeDirectory lekerdezése
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['adsUserObjectClass'].")(!(objectclass=computer)))";
+ $justthese = array('uidNumber','unixHomedirectory');
+ $sr = @ldap_search($ds,$userDn,$filter,$justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ } ;
+
+ $info = @ldap_get_entries($ds,$sr);
+ $uidNumber = $info[0]['uidnumber'][0];
+ $homeDirectory = $info[0]['unixhomedirectory'][0];
+ $uid=$userAccount;
+
+ // user törlése
+ if (!@ldap_delete($ds,$userDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:user:'.$userAccount;
+ }
+
+ ldap_close($ds);
+
+ /*
+ Ha van megadva deleteAccountScript paraméter, akkor abba bejegyzi a törölt felhasználó adatait.
+ A meghívott deleteAccount.sh nincs definiálva, testreszabható, megkötés egyedül a paraméter
+ lista: userAccount, uidNumber, homeDirectory
+ */
+ if (defined('_DATADIR')
+ && isset($AUTH[$toPolicy]['deleteAccountScript'])
+ && file_exists(_DATADIR)
+ ) {
+ $sfp = fopen(_DATADIR.'/'.$AUTH[$toPolicy]['deleteAccountScript'],'a+');
+ if ($sfp) {
+ fwrite($sfp,"\n# $userAccount törlése: userAccount uidNumber homeDirectory\n");
+ fwrite($sfp,"deleteAccount.sh '$userAccount' '$uidNumber' '$homeDirectory'\n");
+ fclose($sfp);
+ }
+ }
+
+ $_SESSION['alert'][] = 'info:delete_uid_success:'.$userDn;
+ return true;
+
+ }
+
+######################################################
+# adsDeleteGroup - account törlése
+######################################################
+
+ function adsDeleteGroup($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> ads backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ads') {
+ $_SESSION['alert'][] = 'page:wrong_backend:ads!='.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ $groupDn = ADSgroupCnToDn($groupCn, $toPolicy);
+ if ($groupDn === false) return false;
+
+ // Kapcsolódás az ADS szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['adsHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, BACKEND_CONNECT_DN,BACKEND_CONNECT_PASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ if (!@ldap_delete($ds, $groupDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:group:'.$groupCn;
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:delete_group_success:'.$groupCn;
+ return true;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/backend/file/auth/login.php b/mayor-orig/www/include/backend/file/auth/login.php
new file mode 100644
index 00000000..bc77f9f7
--- /dev/null
+++ b/mayor-orig/www/include/backend/file/auth/login.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ Auth-File
+
+ A név-jelszó pár ellenőrzése file-ból történik
+*/
+
+/* --------------------------------------------------------------
+
+ Felhasználók azonosítása egyszerű szöveges file-ból
+
+ A file szerkezete:
+ Soronként egy account adatai, egymástól kettősponttal elválasztott mezők:
+ azonosító:név:jelszó:oktAzon:shadowLastChange:shadowMin:shadowMax:shadowWarning:shadowInactive:shadowExpire
+
+ A függvény az előre definiált _AUTH_SUCCESS, _AUTH_EXPIRED, _AUTH_FAILURE
+ konstansok valamelyikével tér vissza.
+
+ Sikeres hitelesítés esetén
+ az egyéb account információkat (minimálisan a 'cn', azaz 'teljes név'
+ attribútumot) a cím szerint átadott $accountInformation tömbbe helyezi el.
+
+ Sikertelen azonosítás esetén a globális $_SESSION['alert'] változóban jelzi az
+ elutasítás okát.
+
+-------------------------------------------------------------- */
+ function fileUserAuthentication($userAccount, $userPassword, &$accountInformation) {
+
+ global $AUTH;
+
+ $toPolicy = $accountInformation['policy'];
+ $fp = @fopen($AUTH[$toPolicy]['file account file'],'r');
+ if (!$fp) {
+ // nem lehet megnyitni a file-t
+ $_SESSION['alert'][] = 'message:file_open_failure:'.$AUTH[$toPolicy]['file account file'];
+ return _AUTH_FAILURE;
+ }
+
+ $valid = false;
+ while (!$valid and $sor = chop(fgets($fp, 1024))) {
+
+ list(
+ $_userAccount,
+ $_userCn,
+ $_userPassword,
+ $_studyId,
+ $shadowLastChange,
+ $shadowMin,
+ $shadowMax,
+ $shadowWarning,
+ $shadowInactive,
+ $shadowExpire
+ ) = explode(':',$sor);
+ $valid = ($_userAccount == $userAccount and $_userPassword == $userPassword); // itt lehetne a kódolt jelszót eltárolni és azzal hasonlítani
+
+ }
+
+ fclose($fp);
+
+ if ($valid) {
+
+ $accountInformation['cn'] = $_userCn;
+ $accountInformation['studyId'] = $_studyId;
+
+ if ( // onDisabled: none | refuse
+ $AUTH[$toPolicy]['onDisabled'] == 'refuse' &&
+ (
+ (
+ $shadowExpire != '' &&
+ $shadowExpire <= floor(time()/(60*60*24))
+ ) ||
+ (
+ $shadowLastChange != '' &&
+ $shadowMax != '' &&
+ $shadowInactive != '' &&
+ ( $shadowLastChange
+ + $shadowMax
+ + $shadowInactive ) <= floor(time()/(60*60*24))
+ )
+ )
+ ) {
+ // Le van tiltva
+ $_SESSION['alert'][] = 'message:account_disabled';
+ return _AUTH_FAILURE_4;
+ } // onDisabled
+
+ // Lejárt-e az azonosító
+ if (
+ $AUTH[$toPolicy]['onExpired'] != 'none' && // onExpired: none | warning | force update
+ $shadowLastChange != '' &&
+ $shadowMax != ''
+ ) {
+ // Lejárt-e
+ $pwLejar = ($shadowLastChange + $shadowMax) - floor(time()/(60*60*24));
+ if (0 < $pwLejar && $shadowWarning != '' && $pwLejar < $shadowWarning) {
+ $_SESSION['alert'][] = 'info:account_warning:'.$pwLejar;
+ return _AUTH_SUCCESS;
+ } elseif ($pwLejar <= 0) {
+ $_SESSION['alert'][] = 'info:account_expired:'.abs($pwLejar);
+ if ($AUTH[$toPolicy]['onDisabled'] == 'refuse')
+ $_SESSION['alert'][] = 'info:warn_account_disable:'.($shadowInactive+$pwLejar);
+ if ($AUTH[$toPolicy]['onExpired'] == 'warning') {
+ return _AUTH_SUCCESS;
+ } elseif ($AUTH[$toPolicy]['onExpired'] == 'force update') {
+ return _AUTH_EXPIRED;
+ }
+ }
+ } // onExpired
+
+ return _AUTH_SUCCESS;
+
+ } else {
+
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return _AUTH_FAILURE_3;
+
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/file/session/base.php b/mayor-orig/www/include/backend/file/session/base.php
new file mode 100644
index 00000000..4902e9c8
--- /dev/null
+++ b/mayor-orig/www/include/backend/file/session/base.php
@@ -0,0 +1,6 @@
+<?php
+
+ function fileMemberOf() {
+ return false;
+ }
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/auth/login.php b/mayor-orig/www/include/backend/ldap-ng/auth/login.php
new file mode 100644
index 00000000..3eb9854e
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/auth/login.php
@@ -0,0 +1,163 @@
+<?php
+/*
+ Auth-LDAP-NG
+
+ A név-jelszó pár ellenőrzése LDAP adatbázis alapján
+*/
+
+/* --------------------------------------------------------------
+
+ Felhasználók azonosítása az LDAP-ban tárolt konfigurálható
+ osztályok alapján történik.
+
+ A függvény az előre definiált _AUTH_SUCCESS, _AUTH_EXPIRED, _AUTH_FAILURE
+ konstansok valamelyikével tér vissza. (include/modules/auth/base/config.php)
+
+ Sikeres hitelesítés esetén
+ az egyéb account információkat (minimálisan a 'cn', azaz 'common name'
+ attribútumot) a cím szerint átadott $accountInformation tömbbe helyezi el.
+
+ Sikertelen azonosítás esetén a globális $_SESSION['alert'] változóban jelzi az
+ elutasítás okát (ldap_connect_failure, ldap_bind_failure, ldap_search_failure, no_account, multi_uid,
+ account_disabled, bad_pw, account_warning, account_expired, warn_account_disable.
+
+-------------------------------------------------------------- */
+
+######################################################################
+# Az LDAP protocol version 3 kötelező,
+# referals=0 nélkül használhatatlanul lassú
+######################################################################
+
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+ ldap_set_option(NULL, LDAP_OPT_REFERRALS, 0);
+
+
+ function ldap_ngUserAuthentication($userAccount, $userPassword, &$accountInformation, $toPolicy) {
+
+ global $AUTH;
+
+ if ($toPolicy == '') {
+ if ($accountInformation['policy'] != '') $toPolicy = $accountInformation['policy'];
+// elseif ($_REQUEST['toPolicy'] != '') $toPolicy = $_REQUEST['toPolicy'];
+ else $toPolicy = _POLICY;
+ }
+
+ // Kapcsolódás a szerverhez
+ $ds = ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return _AUTH_FAILURE;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return _AUTH_FAILURE;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(".$AUTH[$toPolicy]['ldapUserAccountAttr']."=$userAccount)(objectClass=".$AUTH[$toPolicy]['ldapUserObjectClass']."))";
+ $justthese = array("sn",$AUTH[$toPolicy]['ldapCnAttr'],$AUTH[$toPolicy]['ldapStudyIdAttr'],"shadowexpire","shadowwarning","shadowinactive","shadowlastchange","shadowmax");
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return _AUTH_FAILURE;
+ }
+ $info = ldap_get_entries($ds,$sr);
+
+ if ( $info['count'] === 0 || is_null($info)) { // http://bugs.php.net/50185 ha nincs megfelelő elem, akkor - hibásan - null-al tér vissza! (~ PHP 5.2.10)
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ ldap_close($ds);
+ return _AUTH_FAILURE_1;
+ }
+
+ if ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid";
+ ldap_close($ds);
+ return _AUTH_FAILURE_2;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+
+
+ $accountInformation['cn'] = $info[0][ $AUTH[$toPolicy]['ldapCnAttr'] ][0];
+ $accountInformation['studyId'] = $info[0][ $AUTH[$toPolicy]['ldapStudyIdAttr'] ][0];
+
+ $accountInformation['dn'] = $info[0]['dn'];
+ $accountInformation['account'] = $userAccount;
+ // Lejárt-e
+ // A lejárat ideje a shadowExpire és shadowLastChange+shadowMax kötül a kisebbik
+ if ($info[0]['pwdlastset'][0] != '') { // A pwdLastSet és shadowLastChange közül a kisebbiket használjuk
+// if ($info[0]['shadowlastchange'][0] != '')
+// $info[0]['shadowlastchange'][0] = min(pwdLastSet2shadowLastChange($info[0]['pwdlastset'][0]), $info[0]['shadowlastchange'][0]);
+// else
+ $info[0]['shadowlastchange'][0] = pwdLastSet2shadowLastChange($info[0]['pwdlastset'][0]);
+ }
+ if ($info[0]['accountexpires'][0] != '') { // Az accountExpires és a shadowExpire közül a kisebbiket használjuk
+// if ($info[0]['shadowexpire'][0] != '')
+// $info[0]['shadowexpire'][0] = min(pwdLastSet2shadowLastChange($info[0]['accountexpires'][0]), $info[0]['shadowexpire'][0]);
+// else
+ $info[0]['shadowexpire'][0] = pwdLastSet2shadowLastChange($info[0]['accountexpires'][0]);
+ }
+ if ($info[0]['shadowexpire'][0] != '') $expireTimestamp = $info[0]['shadowexpire'][0];
+ if (
+ $info[0]['shadowmax'][0] != '' &&
+ (
+ !isset($expireTimestamp) ||
+ $expireTimestamp > $info[0]['shadowlastchange'][0] + $info[0]['shadowmax'][0]
+ )
+ ) $expireTimestamp = $info[0]['shadowlastchange'][0] + $info[0]['shadowmax'][0];
+ // lejárt, ha lejárat ideje már elmúlt
+ $accountExpired = (isset($expireTimestamp) && ($expireTimestamp <= floor(time()/(60*60*24))));
+
+ // Le van-e tiltva
+ // Ha több mint shadowInactive napja lejárt
+ if ( // onDisabled: none | refuse
+ $AUTH[$toPolicy]['onDisabled'] == 'refuse' &&
+ isset($expireTimestamp) &&
+ $expireTimestamp + $info[0]['shadowinactive'][0] <= floor(time()/(60*60*24))
+ ) {
+ // Le van tiltva
+ $_SESSION['alert'][] = 'message:account_disabled';
+ ldap_close($ds);
+ return _AUTH_FAILURE_4;
+ } // onDisabled
+
+ // Jelszó ellenőrzés - lehet-e csatlakozni
+ if (!@ldap_bind($ds, $accountInformation['dn'], $userPassword)) {
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return _AUTH_FAILURE_3;
+ }
+
+ ldap_close($ds);
+ // Lejárt-e az azonosító
+ if ($AUTH[$toPolicy]['onExpired'] != 'none' && isset($expireTimestamp)) { // onExpired: none | warning | force update
+ // Lejárt-e
+ $pwLejar = $expireTimestamp - floor(time()/(60*60*24));
+ if (0 < $pwLejar && $pwLejar < $info[0]['shadowwarning'][0]) {
+ $_SESSION['alert'][] = 'info:account_warning:'.$pwLejar;
+ return _AUTH_SUCCESS;
+ } elseif ($pwLejar <= 0) {
+ $_SESSION['alert'][] = 'info:account_expired:'.abs($pwLejar);
+ if ($AUTH[$toPolicy]['onDisabled'] == 'refuse') $_SESSION['alert'][] = 'info:warn_account_disable:'.($info[0]['shadowinactive'][0]+$pwLejar);
+ if ($AUTH[$toPolicy]['onExpired'] == 'warning') {
+ return _AUTH_SUCCESS;
+ } elseif ($AUTH[$toPolicy]['onExpired'] == 'force update') {
+ return _AUTH_EXPIRED;
+ } else {
+ return _AUTH_FAILURE;
+ }
+ }
+ } // onExpired
+ // Ha idáig eljut, akkor minden rendben.
+ return _AUTH_SUCCESS;
+
+ } // count == 1
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/base/attrs.php b/mayor-orig/www/include/backend/ldap-ng/base/attrs.php
new file mode 100644
index 00000000..2a2f327a
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/base/attrs.php
@@ -0,0 +1,146 @@
+<?php
+/*
+ Module: useradmin
+*/
+
+ if (file_exists('lang/'._LANG.'/backend/ldap-ng/attrs.php')) {
+ require('lang/'._LANG.'/backend/ldap-ng/attrs.php');
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/backend/ldap-ng/attrs.php')) {
+ require('lang/'._DEFAULT_LANG.'/backend/ldap-ng/attrs.php');
+ }
+
+######################################################
+# Alapértelmezett jogosultságok
+#
+# w - Írható/olvasható
+# r - olvasható
+# - - egyik sem
+#
+# Három karakter: admin, self, other jogai
+######################################################
+
+ define('_DEFAULT_LDAP_RIGHTS','wr-');
+
+######################################################
+# Az LDAP account attribútumok
+######################################################
+
+ global $ldapAccountAttrs;
+ $ldapAccountAttrs = array(
+ 'cn',
+ 'serialnumber',
+ 'uid',
+ 'uidnumber',
+ 'gidnumber',
+ 'unixhomedirectory',
+ 'loginshell',
+
+ 'shadowlastchange',
+ 'shadowexpire',
+ 'shadowwarning',
+ 'shadowmin',
+ 'shadowmax',
+ 'shadowinactive',
+
+/*
+ 'gecos',
+ 'mail',
+ 'telephonenumber',
+ 'mobile',
+ 'l',
+ 'street',
+ 'postaladdress',
+ 'postalcode',
+ 'homedirectory',
+*/
+ );
+
+ global $ldapGroupAttrs;
+ $ldapGroupAttrs = array(
+ 'cn',
+ 'description',
+ 'member',
+ 'name',
+ 'samaccountname',
+ 'objectcategory',
+ 'gidnumber', // ennek kellene lennie - mitől lesz?
+/* 'memberuid' */
+ );
+
+ global $accountAttrToLDAP; // Kis és nagybetű számít!!!
+ $accountAttrToLDAP = array(
+ 'userAccount' => 'sAMAccountName',
+ 'userCn' => 'displayName',
+ 'mail' => 'mail',
+ 'studyId' => 'serialNumber', // Ez konfig-ban külön van állítva, az itteni érték irreleváns
+ 'shadowLastChange' => 'shadowLastChange',
+ 'shadowWarning' => 'shadowWarning',
+ 'shadowMin' => 'shadowMin',
+ 'shadowMax' => 'shadowMax',
+ 'shadowExpire' => 'shadowExpire',
+ 'shadowInactive' => 'shadowInactive',
+ );
+
+ global $groupAttrToLDAP;
+ $groupAttrToLDAP = array(
+ 'groupCn' => 'cn',
+ 'groupDesc' => 'description',
+ 'member' => 'member',
+ );
+
+ global $ldapAccountAttrDef;
+ $ldapAccountAttrDef = array(
+ 'dn' => array('desc' => _LDAPDN, 'type' => 'text', 'rights' => 'rrr'),
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text', 'rights' => 'rrr'),
+ 'sn' => array('desc' => _LDAPSN, 'type' => 'text', 'rights' => 'wrr'),
+ 'givenname' => array('desc' => _LDAPGIVENNAME, 'type' => 'text'),
+ 'serialnumber' => array('desc' => _LDAPSERIALNUMBER, 'type' => 'int', 'rights' => 'wrr'),
+ 'displayname' => array('desc' => _LDAPCN, 'type' => 'text', 'rights' => 'wrr'),
+ 'name' => array('desc' => _LDAPNAME, 'type' => 'text', 'rights' => 'r--'),
+ 'padpwdcount' => array('desc' => _LDAPBADPWDCOUNT, 'type' => 'int', 'rights' => 'wrr'),
+ 'badpasswordtime' => array('desc' => _LDAPBADPASSWORDTIME, 'type' => 'int', 'rights' => 'r--'),
+ 'lastlogon' => array('desc' => _LDAPLASTLOGON, 'type' => 'int', 'rights' => 'r--'),
+ 'pwdlastset' => array('desc' => _LDAPPWDLASTSET, 'type' => 'int', 'rights' => 'r--'),
+ 'accountexpires' => array('desc' => _LDAPACCOUNTEXPIRES, 'type' => 'int', 'rights' => 'wrr'),
+ 'samaccountname' => array('desc' => _LDAPSAMACCOUNTNAME, 'type' => 'text', 'rights' => 'wrr'),
+ 'useraccountcontrol' => array('desc' => _USERACCOUNTCONTROL, 'type' => 'text', 'rights' => 'wrr'),
+ 'userprincipalname' => array('desc' => _LDAPUSERPRINCIPALNAME, 'type' => 'text', 'rights' => 'wrr'),
+ 'objectcategory' => array('desc' => _LDAPOBJECTCATEGORY, 'type' => 'text', 'rights' => 'r--'),
+ 'uid' => array('desc' => _LDAPUID, 'type' => 'text', 'rights' => 'rrr'),
+ 'uidnumber' => array('desc' => _LDAPUIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'mssfu30name' => array('desc' => _LDAPUID, 'type' => 'text', 'rights' => 'r--'),
+ 'unixhomedirectory' => array('desc' => _LDAPUNIXHOMEDIRECTORY, 'type' => 'text', 'rights' => 'wrr'),
+ 'loginshell' => array('desc' => _LDAPLOGINSHELL, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowlastchange' => array('desc' => _LDAPSHADOWLASTCHANGE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowexpire' => array('desc' => _LDAPSHADOWEXPIRE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowwarning' => array('desc' => _LDAPSHADOWWARNING, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowmin' => array('desc' => _LDAPSHADOWMIN, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowmax' => array('desc' => _LDAPSHADOWMAX, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowinactive' => array('desc' => _LDAPSHADOWINACTICE, 'type' => 'text', 'rights' => 'wrr'),
+/*
+ 'gecos' => array('desc' => _LDAPGECOS, 'type' => 'text', 'rights' => 'w--'),
+ 'mail' => array('desc' => _LDAPMAIL, 'type' => 'text', 'rights' => 'wwr'),
+ 'telephonenumber' => array('desc' => _LDAPTELEPHONENUMBER, 'type' => 'text', 'rights' => 'ww-'),
+ 'mobile' => array('desc' => _LDAPMOBILE, 'type' => 'text', 'rights' => 'ww-'),
+ 'l' => array('desc' => _LDAPL, 'type' => 'text'),
+ 'street' => array('desc' => _LDAPSTREET, 'type' => 'text'),
+ 'postaladdress' => array('desc' => _LDAPPOSTALADDRESS, 'type' => 'text'),
+ 'postalcode' => array('desc' => _LDAPPOSTALCODE, 'type' => 'text'),
+*/
+ );
+
+ global $ldapGroupAttrDef;
+ $ldapGroupAttrDef = array(
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text','rights' => 'rrr'),
+ 'name' => array('desc' => _LDAPNAME, 'type' => 'text','rights' => 'rrr'),
+ 'samaccountname' => array('desc' => _LDAPSAMACCOUNTNAME, 'type' => 'text','rights' => 'wrr'),
+ 'description' => array('desc' => _LDAPDESCRIPTION, 'type' => 'text'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int','rights' => 'w--'),
+ 'member' => array('desc' => _LDAPMEMBER, 'type' => 'select'),
+ 'objectcategory' => array('desc' => _LDAPOBJECTCATEGORY, 'type' => 'text','rights' => 'rrr'),
+
+ 'memberuid' => array('desc' => _LDAPMEMBERUID, 'type' => 'select'),
+ );
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/password/changePassword.php b/mayor-orig/www/include/backend/ldap-ng/password/changePassword.php
new file mode 100644
index 00000000..aa4cd91d
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/password/changePassword.php
@@ -0,0 +1,161 @@
+<?php
+/*
+
+ Module: base/password
+
+ function changeMyPassword($userAccount, $userPassword, $newPassword, $verification)
+ A függvény nem vizsgálja, hogy jogosultak vagyunk-e a jelszó megváltoztatására.
+ Ennek eldöntése a függvényt hívó program feladata
+*/
+
+############################################################################
+# Jelszó kódolása (az Active Directory ezt használja....)
+############################################################################
+
+function LDAPEncodePassword($password) {
+
+ return mb_convert_encoding("\"".$password."\"", "UTF-16LE", "UTF-8");
+
+}
+
+############################################################################
+# Saját jelszó megváltoztatása
+############################################################################
+
+/* *************************************************************************
+ A leírások szerint a felhasználó maga is megváltoztathatja jelszavát.
+ Ennek módja az unicodePw attribútum törlése (a régi jelszó értéke szerint),
+ és felvétele új értékkel - mindenz elvileg egy lépésben.
+
+ A PHP ldap_mod* függvények ezt az egy lépésben kétféle módosítást nem
+ támogatják. De a helyzet az, hogy a módosítás perl-ből és parancssorból
+ sem működik...
+************************************************************************* */
+
+function changeMyPassword($userAccount, $userPassword, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = $_REQUEST['toPolicy'];
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ // Csatlakozzás az AD kiszolgálóhoz (SSL szükséges!)
+ $ds = ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ // nem sikerült csatlakozni
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+
+ // Az eredeti jelszó ellenőrzése - csatlakozással
+ $b_ok = ldap_bind($ds,$userDn,$userPassword);
+ if (!$b_ok) {
+ // Talán a régi jelszót elgépelte, vagy le van tiltva...
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'.$userDn.':changeMyPassword - hibás a régi jelszó?';
+ ldap_close($ds);
+ return false;
+ }
+
+ // A régi és új jelszavak átkódolása
+ $newUnicodePwd = base64_encode(LDAPEncodePassword($newPassword));
+ $oldUnicodePwd = base64_encode(LDAPEncodePassword($userPassword));
+ // A php ldap_mod* függvényei nem tudnak egy lépésben többféle módosítást elküldeni
+ // ezért a parancssoros ldapmodify-t kell meghívnunk...
+ $ldif=<<<EOT
+dn: $userDn
+changetype: modify
+delete: unicodePwd
+unicodePwd:: $oldUnicodePwd
+-
+add: unicodePwd
+unicodePwd:: $newUnicodePwd
+-
+EOT;
+ $cmd = sprintf("/usr/bin/ldapmodify -H %s -D '%s' -x -w %s", $AUTH[$toPolicy]['ldapHostname'], $userDn, $userPassword);
+
+ if (($fh = popen($cmd, 'w')) === false ) {
+ // Nem sikerült megnyitni a csatornát - mikor is lehet ilyen? Ha nincs ldapmodify?
+ $_SESSION['alert'][] = 'message:popen_failure';
+ return false;
+ }
+ fwrite($fh, "$ldif\n");
+ pclose($fh);
+
+ // Sikeres volt-e a jelszóváltoztatás? Próbáljunk újra csatlakozni az új jelszóval!
+ if (!@ldap_bind($ds, $userDn, $newPassword)) {
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return false;
+ }
+
+ // Shadow attribútumok beállítása
+ // Ezekre nincs jogosultsága a felhasználónak, így csak AccountOperator-ként módosítható
+ // Ráadásul Windoes alatt változtatva a jelszót ezek nem változnak, így nem lehet számítani rájuk...
+ if (isset($AUTH[$toPolicy]['ldapAccountOperatorUser'])) {
+ $shadowLastChange = floor(time()/(60*60*24));
+ $info['shadowLastChange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowExpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowExpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+
+ $b_ok = ldap_bind($ds,$AUTH[$toPolicy]['ldapAccountOperatorUser'],$AUTH[$toPolicy]['ldapAccountOperatorPw']);
+ if (!$b_ok) { $_SESSION['alert'][] = 'message:ldap_bind_failure'; return false; }
+ $r = @ldap_mod_replace($ds, $userDn, $info);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure:changeMyPassword';
+ return false;
+ }
+ }
+ ldap_close($ds);
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+
+}
+
+############################################################################
+# Adminisztrátori jelszó változtatás
+############################################################################
+
+function changePassword($userAccount, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = _POLICY;
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ $shadowLastChange = floor(time()/(60*60*24));
+
+ $ds = ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if ($ds) {
+ $b_ok = ldap_bind($ds,_USERDN,_USERPASSWORD);
+ if ($b_ok) {
+ $info['unicodePwd'][0] = LDAPEncodePassword($newPassword);
+ // Ezekre nincs jogosultsága a felhasználónak, nem változnak:
+ // _SHADOWMIN, _SHADOWMAX, _SHADOWWARNING, _SHADOWINACTIVE
+ $info['shadowLastChange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowExpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowExpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $r = @ldap_mod_replace($ds,$userDn,$info);
+ ldap_close($ds);
+ if ($r) {
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure:changePassword';
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'._USERDN.':changePassword';
+ ldap_close($ds);
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+}
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/session/accountInfo.php b/mayor-orig/www/include/backend/ldap-ng/session/accountInfo.php
new file mode 100644
index 00000000..d3733ba2
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/session/accountInfo.php
@@ -0,0 +1,401 @@
+<?php
+/*
+ Module: base/auth-ldap-ng
+ Backend: ldap-ng
+
+ function getLDAPInfo($userDn, $attrList=array('cn'), $toPolicy = '')
+ function ldapGetAccountInfo($userAccount, $toPolicy = _POLICY)
+ function ldapGetUserInfo($userAccount, $toPolicy = _POLICY)
+ function ldapChangeAccountInfo($userAccount, $toPolicy = _POLICY)
+ function ldapGetGroupInfo($groupCn, $toPolicy = _POLICY)
+
+*/
+
+######################################################
+# getLDAPInfo - általános LDAP lekérdezés
+######################################################
+
+
+ function getLDAPInfo($Dn, $attrList=array('cn'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $filter = '(objectclass=*)';
+ $sr = @ldap_search($ds, $Dn, $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$Dn;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+###########################################################
+# ldapGetAccountInfo - felhasználói információk (backend)
+###########################################################
+
+ function ldapGetAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $backendAttrs, $backendAttrDef;
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Account', $toPolicy);
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getLDAPInfo($userDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+ }
+ return $return[0];
+
+ }
+
+ }
+
+#############################################################
+# ldapGetUserInfo - felhasználói információk (keretrendszer)
+#############################################################
+
+ function ldapGetUserInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $accountAttrToLDAP, $ldapAttrDef;
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getLDAPInfo($userDn, array_values($accountAttrToLDAP), $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ $result[0]['dn'] = array('count' => 1, 0 => $result[0]['dn']);
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt + LDAP --> MaYoR schema
+ foreach ($accountAttrToLDAP as $attr => $ldapAttr) {
+ $ldapAttr = kisbetus($ldapAttr);
+ if (isset($result[0][$ldapAttr])) $return[$attr] = $result[0][$ldapAttr];
+ else $return[$attr] = array('count' => 0);
+ }
+ return $return;
+
+ }
+
+ }
+
+###############################################################
+# ldapChangeAccountInfo - felhasználói információk módosítása
+###############################################################
+
+ function ldapChangeAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+ $_alert = array();
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_LDAP_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '' ) $values[0] = $_POST[$attr];
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if ($_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if ($_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+ }
+
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$userDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@$r = ldap_mod_replace($ds,$userDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$userDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i = 0;$i < count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+###########################################################
+# ldapGetGroupInfo - csoport információk (backend)
+###########################################################
+
+ function ldapGetGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+ global $backendAttrs, $backendAttrDef;
+
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Group', $toPolicy);
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+
+ $result = getLDAPInfo($groupDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // Accountok lekérdezése
+ $info = getLDAPaccounts($toPolicy);
+ for ($i = 0; $i < $info['count']; $i++) {
+ $accountUid[] = array(
+ 'value' => $info[$i]['uid'][0],
+ 'txt' => $info[$i]['displayname'][0]
+ );
+ $accountDn[] = array(
+ 'value' => $info[$i]['dn'],
+ 'txt' => $info[$i]['displayname'][0]
+ );
+ }
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+ $return[$i]['member']['new'] = $accountDn;
+ $return[$i]['memberuid']['new'] = $accountUid;
+ }
+
+ return $return[0];
+
+ }
+
+ }
+
+###############################################################
+# ldapChangeGroupInfo - csoport információk módosítása
+###############################################################
+
+ function ldapChangeGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+// !!!! A memberuid / member szinkronjára nem figyel!!
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+ $_alert = array();
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_LDAP_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '')
+ if (isset($_POST[$attr])) $values[0] = $_POST[$attr];
+ else $values[0] = '';
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if (isset($_POST['new-'.$attr][0]) && $_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if (isset($_POST['del-'.$attr][0]) && $_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+
+ }
+
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$groupDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@ldap_mod_replace($ds,$groupDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$groupDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i=0;$i<count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+ function getLDAPaccounts($toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $attrList = array('cn','uid','displayName','samaccountname');
+ $filter = '(&(objectclass=person)(!(objectclass=computer)))';
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ }
+
+ ldap_sort($ds, $sr, 'displayname');
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/session/base.php b/mayor-orig/www/include/backend/ldap-ng/session/base.php
new file mode 100644
index 00000000..196e431c
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/session/base.php
@@ -0,0 +1,184 @@
+<?php
+/*
+ Module: base/session
+ Backend: ldap-ng
+
+ function LDAPuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY)
+ function ldapMemberOf($userAccount, $group, $toPolicy = _POLICY)
+
+*/
+
+ require('include/backend/ldap-ng/base/attrs.php');
+
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+ ldap_set_option(NULL, LDAP_OPT_REFERRALS, 0);
+
+ if ($AUTH[_POLICY]['backend'] == 'ldap-ng') {
+ /* why not put into session cache */
+ if ($AUTH[_POLICY]['cacheable']=='yes') {
+ $userDn = _queryCache('RDN',_POLICY,'value');
+ }
+ if (!isset($userDn)) $userDn = LDAPuserAccountToDn();
+ define('_USERDN', $userDn);
+ if ($AUTH[_POLICY]['cacheable']=='yes') _registerToCache('RDN',$userDn,_POLICY);
+ unset($userDn);
+ }
+
+######################################################
+# A _USERACCOUNT(uid)-hoz tartozó dn lekérdezése
+######################################################
+
+ function LDAPuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(".$AUTH[$toPolicy]['ldapUserAccountAttr']."=$userAccount)(objectClass=".$AUTH[$toPolicy]['ldapUserObjectClass']."))";
+ $justthese=array($AUTH[$toPolicy]['ldapCnAttr']);
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid:$userAccount";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+ return $info[0]['dn'];
+ }
+
+ }
+
+
+######################################################
+# A groupCn(cn)-hez tartozó dn lekérdezése
+######################################################
+
+ function LDAPgroupCnToDn($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e ilyen csoport?
+ $filter="(&(".$AUTH[$toPolicy]['ldapGroupCnAttr']."=$groupCn)(objectClass=".$AUTH[$toPolicy]['ldapGroupObjectClass']."))";
+ $justthese=array($AUTH[$toPolicy]['ldapGroupCnAttr']);
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen groupCn (cn) - hibaüzenet csak akkor, ha nem kategóriáról van szó...
+ if (!in_array($groupCn, array_map('ekezettelen', $AUTH[$toPolicy]['categories']))) $_SESSION['alert'][] = "message:no_group:$groupCn";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen cn is van
+ $_SESSION['alert'][] = "message:multi_gid:$groupCn";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen csoport
+ return $info[0]['dn'];
+ }
+
+ }
+
+######################################################
+# memberOf - csoport tag-e
+######################################################
+
+ function ldapMemberOf($userAccount, $group, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ /* Kis hack: csoport-tagság helyett vizsgáljuk előbb a megfelelő szervezeti egységet... de ezt nem biztos, hogy érdemes... */
+ if (in_array($group, $AUTH[$toPolicy]['categories'])) {
+ if (strpos($userDn, ',ou='.ekezettelen($group).',') !== false) return true;
+ }
+
+ if (substr($group,0,3) != 'cn=') {
+ $groupDn = LDAPgroupCnToDn(ekezettelen($group));
+ if (!$groupDn) return false; // Ha nincs ilyen csoport az LDAP fában
+ } else {
+ $groupDn = $group;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $justthese = array('cn'); // valamit le kell kérdezni...
+ $filter = "(&(objectClass=".$AUTH[$toPolicy]['ldapGroupObjectClass'].")(member=$userDn))";
+ $sr = @ldap_search($ds, $groupDn, $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = ldap_get_entries($ds, $sr);
+ ldap_close($ds);
+
+ if ($info['count'] > 0) {
+ return true;
+ } else {
+ return false;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/session/createAccount.php b/mayor-orig/www/include/backend/ldap-ng/session/createAccount.php
new file mode 100644
index 00000000..db62a348
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/session/createAccount.php
@@ -0,0 +1,157 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+ require_once('include/backend/ldap-ng/password/changePassword.php');
+
+ /*
+ $SET = array(
+ container => a konténer elem - ha nincs, akkor CN=Users alá rakja
+ category => tanár, diák... egy kiemelt fontosságú csoport tagság
+ groups => egyéb csoportok
+ policyAttrs => policy függő attribútumok
+ )
+ */
+ function ldapCreateAccount(
+ $userCn, $userAccount, $userPassword, $toPolicy, $SET
+ ) {
+
+ global $AUTH;
+
+ $shadowLastChange = floor(time() / (60*60*24));
+
+ // $toPolicy --> ldap backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ldap-ng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $ginfo = Array();
+
+ // uid ütközés ellenőrzése
+ $filter = "(sAMAccountName=$userAccount)";
+ $justthese = array('sAMAccountName');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ $uinfo = ldap_get_entries($ds, $sr);
+ $uidCount = $uinfo['count'];
+ ldap_free_result($sr);
+ if ($uidCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$userAccount;
+ return false;
+ }
+
+ // Az következő uidNumber megállapítása
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapUserObjectClass'].")(uidNumber=*))";
+ $justthese = array('uidNumber', 'msSFU30UidNumber');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ ldap_sort($ds, $sr, 'uidNumber');
+ $uinfo = ldap_get_entries($ds, $sr);
+ ldap_free_result($sr);
+ if (isset($uinfo['count']) && $uinfo['count'] > 0) $info['uidNumber'] = array($uinfo[ $uinfo['count']-1 ]['uidnumber'][0]+1);
+ else $info['uidNumber'] = array(1001);
+
+ // shadow attributumok...
+ // A shadowLastChange a mai nap // if (isset($AUTH[$toPolicy]['shadowlastchange']) && $AUTH[$toPolicy]['shadowlastchange'] != '')
+ $info['shadowLastChange'] = array($shadowLastChange);
+ if (isset($AUTH[$toPolicy]['shadowMin']) && $AUTH[$toPolicy]['shadowMin'] != '') $info['shadowMin'] = array($AUTH[$toPolicy]['shadowMin']);
+ if (isset($AUTH[$toPolicy]['shadowMax']) && $AUTH[$toPolicy]['shadowMax'] != '') $info['shadowMax'] = array($AUTH[$toPolicy]['shadowMax']);
+ if (isset($AUTH[$toPolicy]['shadowWarning']) && $AUTH[$toPolicy]['shadowWarning'] != '') $info['shadowWarning'] = array($AUTH[$toPolicy]['shadowWarning']);
+ if (isset($AUTH[$toPolicy]['shadowInactive']) && $AUTH[$toPolicy]['shadowInactive'] != '') $info['shadowInactive'] = array($AUTH[$toPolicy]['shadowInactive']);
+ if (isset($AUTH[$toPolicy]['shadowExpire']) && $AUTH[$toPolicy]['shadowWxpire'] != '') $info['shadowExpire'] = array($AUTH[$toPolicy]['shadowExpire']);
+
+ // A szokásos attribútumok
+ $Name = explode(' ',$userCn);
+ $Dn = ldap_explode_dn($AUTH[$toPolicy]['ldapBaseDn'], 1); unset($Dn['count']);
+ $info['userPrincipalName'] = array( $userAccount.'@'.implode('.', $Dn));
+ $info['msSFU30Name'] = $info['sAMAccountName'] = $info['cn'] = array($userAccount);
+ $info['displayName'] = array($userCn);
+ $info['sn'] = array($Name[0]);
+ $info['givenName'] = array($Name[ count($Name)-1 ]);
+ $info['unixUserPassword'] = array('ABCD!efgh12345$67890');
+ $info['unixHomeDirectory'] = array(ekezettelen("/home/$userAccount"));
+ $info['loginShell'] = array('/bin/bash');
+ $info['objectClass'] = array($AUTH[$toPolicy]['ldapUserObjectClass'], 'user');
+
+ $policyAccountAttrs = $SET['policyAttrs'];
+ if (isset($policyAccountAttrs['studyId'])) $info[ $AUTH[$toPolicy]['ldapStudyIdAttr'] ] = array($policyAccountAttrs['studyId']);
+ foreach ($policyAccountAttrs as $attr => $value)
+ if ($attr != 'studyId' && isset($accountAttrToLDAP[$attr]))
+ $info[ $accountAttrToLDAP[$attr] ] = array($value);
+
+ if (isset($SET['container'])) $dn = "CN=$userAccount,".$SET['container'];
+ else $dn = "CN=$userAccount,CN=Users,".$AUTH[$toPolicy]['ldapBaseDn'];
+
+ // user felvétel
+ $_r1 = @ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ $_SESSION['alert'][] = 'message:ldap_error:Add user:'.ldap_error($ds);
+ //echo $dn.'<pre>'; var_dump($info); echo '</pre>';
+ return false;
+ }
+
+ // Jelszó beállítás
+ if (!changePassword($userAccount, $userPassword, $toPolicy)) $_SESSION['alert'][] = 'message:ldap_error:changePassword failed:'.$userAccount;
+
+ // Engedélyezés
+ $einfo = array('userAccountControl' => array(512)); /* Normal account = 512 */
+ $_r1 = @ldap_mod_replace($ds,$dn,$einfo);
+ if (!$_r1) {
+ $_SESSION['alert'][] = 'message:ldap_error:Enable user:'.ldap_error($ds);
+ //echo $dn.'<pre>'; var_dump($info); echo '</pre>';
+ return false;
+ }
+
+ // Kategória csoportba és egyéb csoportokba rakás
+ if (isset($SET['category'])) {
+ if (is_array($SET['groups'])) array_unshift($SET['groups'], $SET['category']);
+ else $SET['groups'] = array($SET['category']);
+
+ $ginfo['member'] = $dn;
+
+ for ($i = 0; $i < count($SET['groups']); $i++) {
+ $groupDn = LDAPgroupCnToDn($SET['groups'][$i], $toPolicy);
+ if ($groupDn !== false) {
+ $_r3 = @ldap_mod_add($ds, $groupDn, $ginfo);
+ if (!$_r3) {
+ $_SESSION['alert'][] = 'message:ldap_error:Add to group '.$SET['groups'][$i].':'.ldap_error($ds);
+ //echo $SET['groups'][$i].'<pre>'; var_dump($ginfo); echo '</pre>';
+ }
+ }
+ }
+ }
+
+ ldap_close($ds);
+
+ if (defined('_DATADIR')
+ && isset($AUTH[$toPolicy]['createAccountScript'])
+ && file_exists(_DATADIR)
+ ) {
+ $sfp = fopen(_DATADIR.'/'.$AUTH[$toPolicy]['createAccountScript'],'a+');
+ if ($sfp) {
+ fwrite($sfp,"\n# $userAccount létrehozása: userAccount uidNumber homeDirectory\n");
+ fwrite($sfp,"createAccount.sh '$userAccount' '".$info['uidNumber'][0]."' '".$info['unixHomeDirectory'][0]."'\n");
+ fclose($sfp);
+ }
+ }
+ $_SESSION['alert'][] = 'info:create_uid_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/session/createGroup.php b/mayor-orig/www/include/backend/ldap-ng/session/createGroup.php
new file mode 100644
index 00000000..59c77c92
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/session/createGroup.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+
+ function ldapCreateGroup($groupCn, $groupDesc, $toPolicy = _POLICY, $SET = array()) {
+
+ global $AUTH;
+ $category = ekezettelen($SET['category']);
+
+ // $toPolicy --> ldap backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ldap-ng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $ginfo = Array();
+
+ // cn ütközés ellenőrzése
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapGroupObjectClass'].")(cn=$groupCn))";
+ $justthese = array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ $ginfo = ldap_get_entries($ds, $sr);
+ $gCount = $ginfo['count'];
+ ldap_free_result($sr);
+ if ($gCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$groupCn;
+ return false;
+ }
+
+ // Az következő gidNumber megállapítása
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapGroupObjectClass'].")(gidNumber=*))";
+ $justthese = array('gidNumber', 'msSFU30GidNumber');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ ldap_sort($ds, $sr, 'gidNumber');
+ $ginfo = ldap_get_entries($ds, $sr);
+ ldap_free_result($sr);
+ if (isset($ginfo['count']) && $ginfo['count'] > 0) $info['gidNumber'] = array($ginfo[ $ginfo['count']-1 ]['gidnumber'][0]+1);
+ else $info['gidNumber'] = array(1001);
+
+ // A szokásos attribútumok
+ $info['sAMAccountName'] = $info['cn'] = array($groupCn);
+ $info['description'] = array($groupDesc);
+
+ // A kategória függő attribútumok
+ if (isset($SET['container'])) $dn = "CN=$groupCn,".$SET['container'];
+ else $dn = "CN=$groupCn,OU=$category,".$AUTH[$toPolicy]['ldapBaseDn'];
+
+ // objectum osztályok
+ $info['objectClass'] = array($AUTH[$toPolicy]['ldapGroupObjectClass']);
+
+ // csoport felvétel
+ $_r1 = ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ printf("LDAP-Error: %s<br>\n", ldap_error($ds));
+ var_dump($info);
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:create_group_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap-ng/session/search/searchAccount.php b/mayor-orig/www/include/backend/ldap-ng/session/search/searchAccount.php
new file mode 100644
index 00000000..70be6ed5
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap-ng/session/search/searchAccount.php
@@ -0,0 +1,271 @@
+<?php
+/*
+ Module: base/session
+ Backend: ldap-ng
+
+ ! -- Csak publikus mezőkre lehet keresni! -- !
+ function LDAPSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)')
+ function ldapSearchAccount($attr, $pattern, $searchAttrs = array('userCn'))
+ function ldapSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = '') {
+
+*/
+
+######################################################
+# Általános LDAP kereső függvény
+######################################################
+
+ function LDAPSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)', $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($pattern == '') {
+ $_SESSION['alert'][] = 'message:empty_field';
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $filter = "(&$filter($attr=*$pattern*))";
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $searchAttrs);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+######################################################
+# ldapSearchAccount - felhasználó kereső függvény
+######################################################
+
+ function ldapSearchAccount($attr, $pattern, $searchAttrs = array('userCn'), $toPolicy = _POLICY) {
+
+ global $accountAttrToLDAP;
+
+ // A keresendő attribútum konvertálása LDAP attribútummá
+ if ($accountAttrToLDAP[ $attr ] != '') $attrLDAP = $accountAttrToLDAP[ $attr ];
+ else $attrLDAP = $attr;
+ if ($attrLDAP == 'dn') $attrLDAP = 'uid'; // dn-re nem megy a keresés!!
+
+ // A lekérendő attribútumok konvertálása LDAP attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($accountAttrToLDAP[ $searchAttrs[$i] ] != '') $searchAttrsLDAP[$i] = $accountAttrToLDAP[ $searchAttrs[$i] ];
+ else $searchAttrsLDAP[$i] = $searchAttrs[$i];
+ }
+ $result = LDAPSearch($attrLDAP, $pattern, $searchAttrsLDAP, '(&(objectclass=person)(!(objectclass=computer)))', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['userAccount'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (isset($result[$i][ kisbetus($accountAttrToLDAP[$a]) ])) {
+ if ($accountAttrToLDAP[$a] != '') $return[$i][$a] = $result[$i][ kisbetus($accountAttrToLDAP[$a]) ];
+ else $return[$i][$a] = $result[$i][$a];
+ } else {
+ $return[$i][$a] = array('count' => 0) ;
+ }
+ }
+ $return[$i]['category'] = getAccountCategories($return[$i]['userAccount'][0], $toPolicy);
+ $return[$i]['category']['count'] = count($return[$i]['category']);
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# ldapSearchGroup - csoport kereső függvény
+######################################################
+
+ function ldapSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = _POLICY) {
+
+ global $groupAttrToLDAP;
+
+ // A keresendő attribútum konvertálása LDAP attribútummá
+ if ($groupAttrToLDAP[ $attr ] != '') $attrLDAP = $groupAttrToLDAP[ $attr ];
+ else $attrLDAP = $attr;
+ if ($attrLDAP == 'dn') $attrLDAP = 'cn'; // dn-re nem megy a keresés!!
+
+ // A lekérendő adtibútumok konvertálása LDAP attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($groupAttrToLDAP[ $searchAttrs[$i] ] != '') $searchAttrsLDAP[$i] = $groupAttrToLDAP[ $searchAttrs[$i] ];
+ else $searchAttrsLDAP[$i] = $searchAttrs[$i];
+ }
+
+ $result = LDAPSearch($attrLDAP, $pattern, $searchAttrsLDAP, '(objectclass=group)', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['groupCn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (!isset($groupAttrToLDAP[$a]) || $groupAttrToLDAP[$a] != '') {
+ if (isset($result[$i][ $groupAttrToLDAP[$a] ])) $return[$i][$a] = $result[$i][ $groupAttrToLDAP[$a] ];
+ else $return[$i][$a] = '';
+ } else {
+ $return[$i][$a] = $result[$i][$a];
+ }
+ }
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# ldapDeleteAccount - account törlése
+######################################################
+
+ function ldapDeleteAccount($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> ldap-ng backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ldap-ng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:ldap-ng!='.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ if ($userDn === false) return false;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Az uidNumber, a unixHomeDirectory lekerdezése
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapUserObjectClass'].")(!(objectclass=computer)))";
+ $justthese = array('uidNumber','unixHomedirectory');
+ $sr = @ldap_search($ds,$userDn,$filter,$justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ } ;
+
+ $info = @ldap_get_entries($ds,$sr);
+ $uidNumber = $info[0]['uidnumber'][0];
+ $homeDirectory = $info[0]['unixhomedirectory'][0];
+ $uid=$userAccount;
+
+ // user törlése
+ if (!@ldap_delete($ds,$userDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:user:'.$userAccount;
+ }
+
+ ldap_close($ds);
+
+ /*
+ Ha van megadva deleteAccountScript paraméter, akkor abba bejegyzi a törölt felhasználó adatait.
+ A meghívott deleteAccount.sh nincs definiálva, testreszabható, megkötés egyedül a paraméter
+ lista: userAccount, uidNumber, homeDirectory
+ */
+ if (defined('_DATADIR')
+ && isset($AUTH[$toPolicy]['deleteAccountScript'])
+ && file_exists(_DATADIR)
+ ) {
+ $sfp = fopen(_DATADIR.'/'.$AUTH[$toPolicy]['deleteAccountScript'],'a+');
+ if ($sfp) {
+ fwrite($sfp,"\n# $userAccount törlése: userAccount uidNumber homeDirectory\n");
+ fwrite($sfp,"deleteAccount.sh '$userAccount' '$uidNumber' '$homeDirectory'\n");
+ fclose($sfp);
+ }
+ }
+
+ $_SESSION['alert'][] = 'info:delete_uid_success:'.$userDn;
+ return true;
+
+ }
+
+######################################################
+# ldapDeleteGroup - account törlése
+######################################################
+
+ function ldapDeleteGroup($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> ldap-ng backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ldap-ng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:ldap-ng!='.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+ if ($groupDn === false) return false;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ if (!@ldap_delete($ds, $groupDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:group:'.$groupCn;
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:delete_group_success:'.$groupCn;
+ return true;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/auth/login.php b/mayor-orig/www/include/backend/ldap/auth/login.php
new file mode 100644
index 00000000..2165371d
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/auth/login.php
@@ -0,0 +1,144 @@
+<?php
+/*
+ Auth-LDAP
+
+ A név-jelszó pár ellenőrzése LDAP adatbázis alapján
+*/
+
+/* --------------------------------------------------------------
+
+ Felhasználók azonosítása LDAP-ban tárolt posixAccount
+ osztályok alapján történik.
+
+ A függvény az előre definiált _AUTH_SUCCESS, _AUTH_EXPIRED, _AUTH_FAILURE
+ konstansok valamelyikével tér vissza. (include/modules/auth/base/config.php)
+
+ Sikeres hitelesítés esetén
+ az egyéb account információkat (minimálisan a 'cn', azaz 'teljes név'
+ attribútumot) a cím szerint átadott $accountInformation tömbbe helyezi el.
+
+ Sikertelen azonosítás esetén a globális $_SESSION['alert'] változóban jelzi az
+ elutasítás okát.
+
+-------------------------------------------------------------- */
+
+######################################################################
+# Az LDAP protocol version szerinti csatlakozás
+######################################################################
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+
+ function ldapUserAuthentication($userAccount, $userPassword, &$accountInformation, $toPolicy) {
+
+ global $AUTH;
+
+ if ($toPolicy == '') {
+ if ($accountInformation['policy'] != '') $toPolicy = $accountInformation['policy'];
+// elseif ($_REQUEST['toPolicy'] != '') $toPolicy = $_REQUEST['toPolicy'];
+ else $toPolicy = _POLICY;
+ }
+
+ // Kapcsolódás a szerverhez
+ $ds = ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return _AUTH_FAILURE;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = ldap_bind($ds);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return _AUTH_FAILURE;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(uid=$userAccount)(objectClass=posixAccount))";
+ $justthese = array("sn","cn","studyId","shadowexpire","shadowwarning","shadowinactive","shadowlastchange","shadowmax");
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return _AUTH_FAILURE;
+ }
+ $info=ldap_get_entries($ds,$sr);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ ldap_close($ds);
+ return _AUTH_FAILURE_1;
+ }
+
+ if ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid";
+ ldap_close($ds);
+ return _AUTH_FAILURE_2;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+
+ $accountInformation['cn'] = $info[0]['cn'][0];
+ $accountInformation['studyId'] = $info[0]['studyid'][0];
+ $accountInformation['dn'] = $info[0]['dn'];
+ $accountInformation['account'] = $userAccount;
+ // Lejárt-e
+ // A lejárat ideje a shadowExpire és shadowLastChange+shadowMax kötül a kisebbik
+ if ($info[0]['shadowexpire'][0] != '') $expireTimestamp = $info[0]['shadowexpire'][0];
+ if (
+ $info[0]['shadowmax'][0] != '' &&
+ (
+ !isset($expireTimestamp) ||
+ $expireTimestamp > $info[0]['shadowlastchange'][0] + $info[0]['shadowmax'][0]
+ )
+ ) $expireTimestamp = $info[0]['shadowlastchange'][0] + $info[0]['shadowmax'][0];
+ // lejárt, ha lejárat ideje már elmúlt
+ $accountExpired = (isset($expireTimestamp) && ($expireTimestamp <= floor(time()/(60*60*24))));
+
+ // Le van-e tiltva
+ // Ha több mint shadowInactive napja lejárt
+ if ( // onDisabled: none | refuse
+ $AUTH[$toPolicy]['onDisabled'] == 'refuse' &&
+ isset($expireTimestamp) &&
+ $expireTimestamp + $info[0]['shadowinactive'][0] <= floor(time()/(60*60*24))
+ ) {
+ // Le van tiltva
+ $_SESSION['alert'][] = 'message:account_disabled';
+ ldap_close($ds);
+ return _AUTH_FAILURE_4;
+ } // onDisabled
+
+ // Jelszó ellenőrzés - lehet-e csatlakozni
+ if (!@ldap_bind($ds, $accountInformation['dn'], $userPassword)) {
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return _AUTH_FAILURE_3;
+ }
+
+ ldap_close($ds);
+ // Lejárt-e az azonosító
+ if ($AUTH[$toPolicy]['onExpired'] != 'none' && isset($expireTimestamp)) { // onExpired: none | warning | force update
+ // Lejárt-e
+ $pwLejar = $expireTimestamp - floor(time()/(60*60*24));
+ if (0 < $pwLejar && $pwLejar < $info[0]['shadowwarning'][0]) {
+ $_SESSION['alert'][] = 'info:account_warning:'.$pwLejar;
+ return _AUTH_SUCCESS;
+ } elseif ($pwLejar <= 0) {
+ $_SESSION['alert'][] = 'info:account_expired:'.abs($pwLejar);
+ if ($AUTH[$toPolicy]['onDisabled'] == 'refuse')
+ $_SESSION['alert'][] = 'info:warn_account_disable:'.($info[0]['shadowinactive'][0]+$pwLejar);
+ if ($AUTH[$toPolicy]['onExpired'] == 'warning') {
+ return _AUTH_SUCCESS;
+ } elseif ($AUTH[$toPolicy]['onExpired'] == 'force update') {
+ return _AUTH_EXPIRED;
+ }
+ }
+ } // onExpired
+
+ // Ha idáig eljut, akkor minden rendben.
+ return _AUTH_SUCCESS;
+
+ } // count == 1
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/base/attrs.php b/mayor-orig/www/include/backend/ldap/base/attrs.php
new file mode 100644
index 00000000..bf86d0d2
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/base/attrs.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ Module: useradmin
+*/
+
+ if (file_exists('lang/'._LANG.'/backend/ldap/attrs.php')) {
+ require('lang/'._LANG.'/backend/ldap/attrs.php');
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/backend/ldap/attrs.php')) {
+ require('lang/'._DEFAULT_LANG.'/backend/ldap/attrs.php');
+ }
+
+######################################################
+# Alapértelmezett jogosultságok
+#
+# w - Írható/olvasható
+# r - olvasható
+# - - egyik sem
+#
+# Három karakter: admin, self, other jogai
+######################################################
+
+ define('_DEFAULT_LDAP_RIGHTS','wr-');
+
+######################################################
+# Az LDAP account attribútumok
+######################################################
+
+ global $ldapAccountAttrs;
+ $ldapAccountAttrs = array(
+ 'uid',
+ 'uidnumber',
+ 'gidnumber',
+ 'gecos',
+ 'cn',
+ 'studyid',
+ 'sn',
+ 'givenname',
+ 'mail',
+ 'telephonenumber',
+ 'mobile',
+ 'l',
+ 'street',
+ 'postaladdress',
+ 'postalcode',
+ 'homedirectory',
+ 'shadowlastchange',
+ 'shadowexpire',
+ 'shadowwarning',
+ 'shadowmin',
+ 'shadowmax',
+ 'shadowinactive',
+ );
+
+ global $ldapGroupAttrs;
+ $ldapGroupAttrs = array(
+ 'gidnumber',
+ 'cn',
+ 'description',
+ 'member',
+ 'memberuid'
+ );
+
+ global $accountAttrToLDAP;
+ $accountAttrToLDAP = array(
+ 'userAccount' => 'uid',
+ 'userCn' => 'cn',
+ 'mail' => 'mail',
+ 'studyId' => 'studyId',
+ 'shadowLastChange' => 'shadowLastChange',
+ 'shadowWarning' => 'shadowWarning',
+ 'shadowMin' => 'shadowMin',
+ 'shadowMax' => 'shadowMax',
+ 'shadowExpire' => 'shadowExpire',
+ 'shadowInactive' => 'shadowInactive',
+ );
+
+ global $groupAttrToLDAP;
+ $groupAttrToLDAP = array(
+ 'groupCn' => 'cn',
+ 'groupDesc' => 'description',
+ 'member' => 'member'
+ );
+
+ global $ldapAccountAttrDef;
+ $ldapAccountAttrDef = array(
+ 'dn' => array('desc' => _LDAPDN, 'type' => 'text', 'rights' => 'rrr'),
+ 'uid' => array('desc' => _LDAPUID, 'type' => 'text', 'rights' => 'rrr'),
+ 'uidnumber' => array('desc' => _LDAPUIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'gecos' => array('desc' => _LDAPGECOS, 'type' => 'text', 'rights' => 'w--'),
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text', 'rights' => 'wrr'),
+ 'studyid' => array('desc' => _LDAPSTUDYID, 'type' => 'int', 'rights' => 'wrr'),
+ 'sn' => array('desc' => _LDAPSN, 'type' => 'text'),
+ 'givenname' => array('desc' => _LDAPGIVENNAME, 'type' => 'text'),
+ 'mail' => array('desc' => _LDAPMAIL, 'type' => 'text', 'rights' => 'wwr'),
+ 'telephonenumber' => array('desc' => _LDAPTELEPHONENUMBER, 'type' => 'text', 'rights' => 'ww-'),
+ 'mobile' => array('desc' => _LDAPMOBILE, 'type' => 'text', 'rights' => 'ww-'),
+ 'l' => array('desc' => _LDAPL, 'type' => 'text'),
+ 'street' => array('desc' => _LDAPSTREET, 'type' => 'text'),
+ 'postaladdress' => array('desc' => _LDAPPOSTALADDRESS, 'type' => 'text'),
+ 'postalcode' => array('desc' => _LDAPPOSTALCODE, 'type' => 'text'),
+ 'homedirectory' => array('desc' => _LDAPHOMEDIRECTORY, 'type' => 'text'),
+ 'shadowlastchange' => array('desc' => _LDAPSHADOWLASTCHANGE, 'type' => 'text'),
+ 'shadowexpire' => array('desc' => _LDAPSHADOWEXPIRE, 'type' => 'text'),
+ 'shadowwarning' => array('desc' => _LDAPSHADOWWARNING, 'type' => 'text'),
+ 'shadowmin' => array('desc' => _LDAPSHADOWMIN, 'type' => 'text'),
+ 'shadowmax' => array('desc' => _LDAPSHADOWMAX, 'type' => 'text'),
+ 'shadowinactive' => array('desc' => _LDAPSHADOWINACTICE, 'type' => 'text'),
+ );
+
+ global $ldapGroupAttrDef;
+ $ldapGroupAttrDef = array(
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text','rights' => 'wrr'),
+ 'description' => array('desc' => _LDAPDESCRIPTION, 'type' => 'text'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int','rights' => 'w--'),
+ 'memberuid' => array('desc' => _LDAPMEMBERUID, 'type' => 'select'),
+ 'member' => array('desc' => _LDAPMEMBER, 'type' => 'select'),
+ );
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/base/attrs.php.orig b/mayor-orig/www/include/backend/ldap/base/attrs.php.orig
new file mode 100644
index 00000000..658dfa1c
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/base/attrs.php.orig
@@ -0,0 +1,175 @@
+<?php
+/*
+ Module: useradmin
+*/
+
+ if (file_exists('lang/'._LANG.'/backend/ldap/attrs.php')) {
+ require('lang/'._LANG.'/backend/ldap/attrs.php');
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/backend/ldap/attrs.php')) {
+ require('lang/'._DEFAULT_LANG.'/backend/ldap/attrs.php');
+ }
+
+######################################################
+# Alapértelmezett jogosultságok
+#
+# w - Írható/olvasható
+# r - olvasható
+# - - egyik sem
+#
+# Három karakter: admin, self, other jogai
+######################################################
+
+ define('_DEFAULT_LDAP_RIGHTS','wr-');
+
+######################################################
+# Az LDAP account attribútumok
+######################################################
+
+ global $ldapAccountAttrs;
+ $ldapAccountAttrs = array(
+ 'uid',
+ 'uidnumber',
+ 'gidnumber',
+ 'gecos',
+ 'cn',
+ 'sn',
+ 'givenname',
+ 'mail',
+ 'homepage',
+ 'url',
+ 'telephonenumber',
+ 'mobile',
+ 'year',
+ 'class',
+ 'l',
+ 'street',
+ 'postaladdress',
+ 'postalcode',
+ 'homedirectory',
+ 'owner',
+ 'leader',
+ 'description',
+ 'roomnumber',
+ 'registertimestamp',
+ 'primaryschoolomcode',
+ 'classtimestamp',
+ 'studentcardnumber',
+ 'studentcardtimestamp',
+ 'taxid',
+ 'birthtimestamp',
+ 'birthlocality',
+ 'registernumber',
+ 'diarynumber',
+ 'sex',
+ 'guardiancn',
+ 'mothercn',
+ 'localitytimestamp',
+ 'tajnumber',
+ 'member',
+ 'studentmember',
+ 'exemptmember',
+ 'examermember',
+ 'memberuid',
+ 'shadowlastchange',
+ 'shadowexpire',
+ 'shadowwarning',
+ 'shadowmin',
+ 'shadowmax',
+ 'shadowinactive',
+ 'parentpassword'
+ );
+
+ global $ldapGroupAttrs;
+ $ldapGroupAttrs = array(
+ 'gidnumber',
+ 'cn',
+ 'description',
+ 'owner',
+ 'member',
+ 'memberuid'
+ );
+
+ global $accountAttrToLDAP;
+ $accountAttrToLDAP = array(
+ 'userAccount' => 'uid',
+ 'userCn' => 'cn',
+ 'mail' => 'mail',
+ 'studyId' => 'studyId',
+ 'shadowLastChange' => 'shadowLastChange',
+ 'shadowWarning' => 'shadowWarning',
+ 'shadowMin' => 'shadowMin',
+ 'shadowMax' => 'shadowMax',
+ 'shadowExpire' => 'shadowExpire',
+ 'shadowInactive' => 'shadowInactive',
+ );
+
+ global $groupAttrToLDAP;
+ $groupAttrToLDAP = array(
+ 'groupId' => 'cn',
+ 'groupName' => 'description',
+// 'leader' => 'leader',
+ 'owner' => 'owner',
+ 'member' => 'member'
+ );
+
+ global $ldapAccountAttrDef;
+ $ldapAccountAttrDef = array(
+ 'dn' => array('desc' => _LDAPDN, 'type' => 'text','rights' => 'rrr'),
+ 'uid' => array('desc' => _LDAPUID, 'type' => 'text','rights' => 'rrr'),
+ 'uidnumber' => array('desc' => _LDAPUIDNUMBER, 'type' => 'int','rights' => 'w--'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int','rights' => 'w--'),
+ 'gecos' => array('desc' => _LDAPGECOS, 'type' => 'text','rights' => 'w--'),
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text','rights' => 'wrr'),
+ 'sn' => array('desc' => _LDAPSN, 'type' => 'text'),
+ 'givenname' => array('desc' => _LDAPGIVENNAME, 'type' => 'text'),
+ 'mail' => array('desc' => _LDAPMAIL, 'type' => 'text','rights' => 'wwr'),
+ 'homepage' => array('desc' => _LDAPHOMEPAGE, 'type' => 'text','rights' => 'wwr'),
+ 'url' => array('desc' => _LDAPURL, 'type' => 'text'),
+ 'telephonenumber' => array('desc' => _LDAPTELEPHONENUMBER, 'type' => 'text','rights' => 'ww-'),
+ 'mobile' => array('desc' => _LDAPMOBILE, 'type' => 'text','rights' => 'ww-'),
+ 'year' => array('desc' => _LDAPYEAR, 'type' => 'int'),
+ 'class' => array('desc' => _LDAPCLASS, 'type' => 'text'),
+ 'l' => array('desc' => _LDAPL, 'type' => 'text'),
+ 'street' => array('desc' => _LDAPSTREET, 'type' => 'text'),
+ 'postaladdress' => array('desc' => _LDAPPOSTALADDRESS, 'type' => 'text'),
+ 'postalcode' => array('desc' => _LDAPPOSTALCODE, 'type' => 'text'),
+ 'homedirectory' => array('desc' => _LDAPHOMEDIRECTORY, 'type' => 'text'),
+ 'roomnumber' => array('desc' => _LDAPROOMNUMBER, 'type' => 'int'),
+ 'registertimestamp' => array('desc' => _LDAPREGISTERTIMESTAMP, 'type' => 'timestamp'),
+ 'primaryschoolomcode' => array('desc' => _LDAPPRIMARYSCHOOLOMCODE, 'type' => 'text'),
+ 'classtimestamp' => array('desc' => _LDAPCLASSTIMESTAMP, 'type' => 'timestamp'),
+ 'studentcardnumber' => array('desc' => _LDAPSTUDENTCARDNUMBER, 'type' => 'text'),
+ 'studentcardtimestamp' => array('desc' => _LDAPSTUDENTCARDTIMESTAMP, 'type' => 'timestamp'),
+ 'taxid' => array('desc' => _LDAPTAXID, 'type' => 'text'),
+ 'birthtimestamp' => array('desc' => _LDAPBIRTHTIMESTAMP, 'type' => 'timestamp'),
+ 'birthlocality' => array('desc' => _LDAPBIRTHLOCALITY, 'type' => 'text'),
+ 'registernumber' => array('desc' => _LDAPREGISTERNUMBER, 'type' => 'text'),
+ 'diarynumber' => array('desc' => _LDAPDIARYNUMBER, 'type' => 'text'),
+ 'sex' => array('desc' => _LDAPSEX, 'type' => 'radio', 'options' => array(_FIU, _LANY)),
+ 'guardiancn' => array('desc' => _LDAPGUARDIANCN, 'type' => 'text'),
+ 'mothercn' => array('desc' => _LDAPMOTHERCN, 'type' => 'text'),
+ 'localitytimestamp' => array('desc' => _LDAPLOCALITYTIMESTAMP, 'type' => 'timestamp'),
+ 'tajnumber' => array('desc' => _LDAPTAJNUMBER, 'type' => 'text'),
+ 'shadowlastchange' => array('desc' => _LDAPSHADOWLASTCHANGE, 'type' => 'text'),
+ 'shadowexpire' => array('desc' => _LDAPSHADOWEXPIRE, 'type' => 'text'),
+ 'shadowwarning' => array('desc' => _LDAPSHADOWWARNING, 'type' => 'text'),
+ 'shadowmin' => array('desc' => _LDAPSHADOWMIN, 'type' => 'text'),
+ 'shadowmax' => array('desc' => _LDAPSHADOWMAX, 'type' => 'text'),
+ 'shadowinactive' => array('desc' => _LDAPSHADOWINACTICE, 'type' => 'text'),
+ );
+
+ global $ldapGroupAttrDef;
+ $ldapGroupAttrDef = array(
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text','rights' => 'wrr'),
+ 'description' => array('desc' => _LDAPDESCRIPTION, 'type' => 'text'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int','rights' => 'w--'),
+ 'memberuid' => array('desc' => _LDAPMEMBERUID, 'type' => 'select'),
+ 'member' => array('desc' => _LDAPMEMBER, 'type' => 'select'),
+ 'owner' => array('desc' => _LDAPOWNER, 'type' => 'select'),
+// 'studentmember' => array('desc' => _LDAPSTUDENTMEMBER, 'type' => 'text'),
+// 'exemptmember' => array('desc' => _LDAPEXEMPTMEMBER, 'type' => 'text'),
+// 'examermember' => array('desc' => _LDAPEXAMERMEMBER, 'type' => 'text'),
+// 'leader' => array('desc' => _LDAPLEADER, 'type' => 'text'),
+ );
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/backend/ldap/base/str.php b/mayor-orig/www/include/backend/ldap/base/str.php
new file mode 100644
index 00000000..2ef3ad1c
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/base/str.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ Module: useradmin
+
+ function date2timestamp($date)
+ function timestamp2date($stamp)
+ !! -- function ldap_cn_cmp($a,$b) -- !! Kell ez?
+ !! -- function tanar_cn_cmp($a,$b) -- !! Használjuk ezt?
+
+ // - fuggoseg - // require_once('include/share/ldap/attrs.php');
+
+*/
+
+// -------------------------------------
+// Date2Timestamp
+// -------------------------------------
+
+ function date2timestamp($date) {
+ $date = str_replace('-','',$date);
+ $date = str_replace('.','',$date).'010101Z';
+ if (strlen($date) == 15) return $date;
+ else return '';
+ }
+
+// -------------------------------------
+// Timestamp2Date
+// -------------------------------------
+
+ function timestamp2date($stamp) {
+ $date = substr($stamp,0,4).'-'.substr($stamp,4,2).'-'.substr($stamp,6,2);
+ if (strlen($date) == 10) return $date;
+ else return '';
+ }
+
+/*
+// ---------------------------------------------------------------------------
+// LDAP eredmény elemeinek összehasonlítása cn-alapján (Már latin2-es kódolású!!!)
+// ---------------------------------------------------------------------------
+
+ function ldap_cn_cmp($a,$b) {
+ return str_cmp($a['cn'][0],$b['cn'][0]);
+ }
+
+// ---------------------------------------------------------------------------
+// $TANAROK tömb rendezéséhez (include/naplo/helyettesít.php) (Már latin2-es kódolású!!!)
+// ---------------------------------------------------------------------------
+
+ function tanar_cn_cmp($a,$b) {
+ return str_cmp($a['cn'],$b['cn']);
+ }
+*/
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/password/changePassword.php b/mayor-orig/www/include/backend/ldap/password/changePassword.php
new file mode 100644
index 00000000..22ace5ca
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/password/changePassword.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ Module: base/password
+
+ function changeMyPassword($userAccount, $userPassword, $newPassword, $verification)
+ A függvény nem vizsgálja, hogy jogosultak vagyunk-e a jelszó megváltoztatására.
+ Ennek eldöntése a függvényt hívó program feladata
+ */
+
+############################################################################
+# Saját jelszó megváltoztatása
+############################################################################
+
+function changeMyPassword($userAccount, $userPassword, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = $_REQUEST['toPolicy'];
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ $shadowLastChange = floor(time()/(60*60*24));
+
+ $ds = ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if ($ds) {
+ $b_ok = ldap_bind($ds,$userDn,$userPassword);
+ if ($b_ok) {
+ $info['userPassword'][0] = '{crypt}' . crypt($newPassword);
+ // Ezekre nincs jogosultsága a felhasználónak, nem változnak:
+ // _SHADOWMIN, _SHADOWMAX, _SHADOWWARNING, _SHADOWINACTIVE
+ $info['shadowlastchange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowexpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowexpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $r = ldap_mod_replace($ds,$userDn,$info);
+ ldap_close($ds);
+ if ($r) {
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure';
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'.$userDn;
+ ldap_close($ds);
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+
+}
+
+############################################################################
+# Adminisztrátori jelszó változtatás
+############################################################################
+
+function changePassword($userAccount, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = _POLICY;
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ $shadowLastChange = floor(time()/(60*60*24));
+
+ $ds = ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if ($ds) {
+ $b_ok = ldap_bind($ds,_USERDN,_USERPASSWORD);
+ if ($b_ok) {
+ $info['userPassword'][0] = '{crypt}' . crypt($newPassword);
+ // Ezekre nincs jogosultsága a felhasználónak, nem változnak:
+ // _SHADOWMIN, _SHADOWMAX, _SHADOWWARNING, _SHADOWINACTIVE
+ $info['shadowlastchange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowexpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowexpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $r = @ldap_mod_replace($ds,$userDn,$info);
+ ldap_close($ds);
+ if ($r) {
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure';
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'._USERDN;
+ ldap_close($ds);
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+
+}
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/session/accountInfo.php b/mayor-orig/www/include/backend/ldap/session/accountInfo.php
new file mode 100644
index 00000000..24f5234b
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/session/accountInfo.php
@@ -0,0 +1,401 @@
+<?php
+/*
+ Module: base/auth-ldap
+ Backend: ldap
+
+ function getLDAPInfo($userDn, $attrList=array('cn'), $toPolicy = '')
+ function ldapGetAccountInfo($userAccount, $toPolicy = _POLICY)
+ function ldapGetUserInfo($userAccount, $toPolicy = _POLICY)
+ function ldapChangeAccountInfo($userAccount, $toPolicy = _POLICY)
+ function ldapGetGroupInfo($groupCn, $toPolicy = _POLICY)
+
+*/
+
+######################################################
+# getLDAPInfo - általános LDAP lekérdezés
+######################################################
+
+ function getLDAPInfo($userDn, $attrList=array('cn'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $filter = '(objectclass=*)';
+ $sr = @ldap_search($ds, $userDn, $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+###########################################################
+# ldapGetAccountInfo - felhasználói információk (backend)
+###########################################################
+
+ function ldapGetAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Account', $toPolicy);
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getLDAPInfo($userDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+ }
+
+ return $return[0];
+
+ }
+
+ }
+
+#############################################################
+# ldapGetUserInfo - felhasználói információk (keretrendszer)
+#############################################################
+
+ function ldapGetUserInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $accountAttrToLDAP, $ldapAttrDef;
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getLDAPInfo($userDn, array_values($accountAttrToLDAP), $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ $result[0]['dn'] = array('count' => 1, 0 => $result[0]['dn']);
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($accountAttrToLDAP as $attr => $ldapAttr) {
+ if (isset($result[0][$ldapAttr])) $return[$attr] = $result[0][$ldapAttr];
+ else $return[$attr] = array('count' => 0);
+ }
+
+ return $return;
+
+ }
+
+ }
+
+###############################################################
+# ldapChangeAccountInfo - felhasználói információk módosítása
+###############################################################
+
+ function ldapChangeAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_LDAP_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '' ) $values[0] = $_POST[$attr];
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if ($_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if ($_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+ }
+
+ $_alert = array();
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$userDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@ldap_mod_replace($ds,$userDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$userDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i = 0;$i < count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+###########################################################
+# ldapGetGroupInfo - csoport információk (backend)
+###########################################################
+
+ function ldapGetGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Group', $toPolicy);
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+
+ $result = getLDAPInfo($groupDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // Accountok lekérdezése
+ $info = getLDAPaccounts($toPolicy);
+ for ($i = 0; $i < $info['count']; $i++) {
+ $accountUid[] = array(
+ 'value' => $info[$i]['uid'][0],
+ 'txt' => $info[$i]['cn'][0]
+ );
+ $accountDn[] = array(
+ 'value' => $info[$i]['dn'],
+ 'txt' => $info[$i]['cn'][0]
+ );
+ }
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+ $return[$i]['member']['new'] = $accountDn;
+ $return[$i]['memberuid']['new'] = $accountUid;
+ }
+
+ return $return[0];
+
+ }
+
+ }
+
+###############################################################
+# ldapChangeGroupInfo - csoport információk módosítása
+###############################################################
+
+ function ldapChangeGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+// !!!! A memberuid / member szinkronjára nem figyel!!
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_LDAP_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '')
+ if (isset($_POST[$attr])) $values[0] = $_POST[$attr];
+ else $values[0] = '';
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if (isset($_POST['new-'.$attr][0]) && $_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if (isset($_POST['del-'.$attr][0]) && $_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+ }
+
+ $_alert = array();
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$groupDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@ldap_mod_replace($ds,$groupDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$groupDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i=0;$i<count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+ function getLDAPaccounts($toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $attrList = array('cn','uid');
+// $filter = '(objectclass=mayorPerson)';
+ $filter = '(objectclass=posixAccount)';
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ }
+
+ ldap_sort($ds, $sr, 'cn');
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/session/base.php b/mayor-orig/www/include/backend/ldap/session/base.php
new file mode 100644
index 00000000..b8529cc2
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/session/base.php
@@ -0,0 +1,255 @@
+<?php
+/*
+ Module: base/session
+ Backend: ldap
+
+ function LDAPuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY)
+ function ldapMemberOf($userAccount, $group, $toPolicy = _POLICY)
+
+*/
+
+ require('include/backend/ldap/base/attrs.php');
+ require('include/backend/ldap/base/str.php');
+
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+
+ if ($AUTH[_POLICY]['backend'] == 'ldap') {
+ /* why not put into session cache */
+ if ($AUTH[_POLICY]['cacheable']=='yes') {
+ $userDn = _queryCache('RDN',_POLICY,'value');
+ }
+ if (!isset($userDn)) $userDn = LDAPuserAccountToDn();
+ define('_USERDN', $userDn);
+ if ($AUTH[_POLICY]['cacheable']=='yes') _registerToCache('RDN',$userDn,_POLICY);
+ unset($userDn);
+ }
+
+######################################################
+# A _USERACCOUNT(uid)-hoz tartozó dn lekérdezése
+######################################################
+
+ function LDAPuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(uid=$userAccount)(objectClass=posixAccount))";
+ $justthese=array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid:$userAccount";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+ return $info[0]['dn'];
+ }
+
+ }
+
+
+######################################################
+# A groupCn(cn)-hez tartozó dn lekérdezése
+######################################################
+
+ function LDAPgroupCnToDn($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(cn=$groupCn)(objectClass=posixGroup))";
+ $justthese=array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen groupCn (cn) - hibaüzenet csak akkor, ha nem kategóriáról van szó...
+ if (!in_array($groupCn, array_map('ekezettelen', $AUTH[$toPolicy]['categories']))) $_SESSION['alert'][] = "message:no_group:$groupCn";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen cn is van
+ $_SESSION['alert'][] = "message:multi_gid:$groupCn";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen csoport
+ return $info[0]['dn'];
+ }
+
+ }
+
+
+
+######################################################
+# memberOf - csoport tag-e
+######################################################
+
+ function ldapMemberOf($userAccount, $group, $toPolicy = _POLICY) {
+
+ global $AUTH, $LDAP2Mayor;
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ if (in_array($group, $AUTH[$toPolicy]['categories'])) {
+ if (strpos($userDn, ',ou='.ekezettelen($group).',') !== false) return true;
+# Ha nincs megfelelő ou-ban, akkor nézzük a csoport tagságot - így berakható időszakosan akárki pl a titkárság kategóriába...
+# else return false;
+ }
+
+ if (substr($group,0,3) != 'cn=') {
+ $groupDn = LDAPgroupCnToDn(ekezettelen($group));
+ if (!$groupDn) return false; // Ha nincs ilyen csoport az LDAP fában
+ } else {
+ $groupDn = $group;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $justthese = array('cn'); // valamit le kell kérdezni...
+/* $filter = "(& (objectClass=mayorGroup)
+ (member=$userDn)
+ )";
+*/
+ $filter = "(& (objectClass=posixGroup)
+ (memberUid=$userAccount)
+ )";
+ $sr = @ldap_search($ds, $groupDn, $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = ldap_get_entries($ds, $sr);
+ ldap_close($ds);
+
+ if ($info['count'] > 0) {
+ return true;
+ } else {
+ return false;
+ }
+
+ }
+
+######################################################
+# LDAPcreateContainer - tároló létrehozása
+######################################################
+
+ function LDAPcreateContainer($containerDn, $toPolicy) {
+
+ global $AUTH;
+
+ $pos = strpos($containerDn, ',ou=');
+ $container = substr($containerDn, 3, $pos-3);
+ $rdn = substr($containerDn, $pos+1);
+ $cat = substr($containerDn, 3, strlen($containerDn)-4-strlen($AUTH[$toPolicy]['ldap base dn']));
+
+ error_reporting(1);
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // OU létrehozása
+ $info['ou'][0] = $container;
+ $info['objectclass'][0] = 'organizationalUnit';
+ $info['description'][0] = $container;
+
+ $_r1 = ldap_add($ds, $containerDn, $info);
+ if (!$_r1) {
+// $_SESSION['alert'][] = 'message:ldap_add_failure:'.$containerDn;
+ return false;
+// printf("LDAP-Error: %s<br>\n", ldap_error($ds));
+// echo '<pre>'; var_dump($info); echo '</pre>';
+ }
+
+ // az OU-hoz tartozó csoportok OU-ja
+ $info['ou'][0] = 'Groups';
+ $info['objectclass'][0] = 'organizationalUnit';
+ $info['description'][0] = "$container csoportjai";
+
+ $containerDn = "ou=Groups,$containerDn";
+ $_r1 = ldap_add($ds, $containerDn, $info);
+ if (!$_r1) {
+ printf("LDAP-Error: %s<br>\n", ldap_error($ds));
+ echo '<pre>'; var_dump($info); echo '</pre>';
+ }
+
+ // Az osztály csoport létrehozása
+ require_once('include/modules/session/createGroup.php');
+ createGroup($container, "$container csoport", "$cat", $toPolicy);
+
+ ldap_close($ds);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/session/createAccount.php b/mayor-orig/www/include/backend/ldap/session/createAccount.php
new file mode 100644
index 00000000..79f40530
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/session/createAccount.php
@@ -0,0 +1,204 @@
+<?php
+/*
+ Modules: base/session
+
+ UNTESTED!!!!
+*/
+
+ function ldapCreateAccount(
+ $userCn, $userAccount, $userPassword, $toPolicy, $SET
+ ) {
+
+ global $AUTH;
+
+ $category = ekezettelen($SET['category']);
+ $shadowLastChange = floor(time() / (60*60*24));
+
+ // $toPolicy --> ldap backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ldap') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $groupinfo = $oinfo = Array();
+
+ // uid ütközés ellenőrzése
+ $filter = "(uid=$userAccount)";
+ $justthese = array('uid');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ $uinfo = ldap_get_entries($ds, $sr);
+ $uidCount = $uinfo['count'];
+ ldap_free_result($sr);
+ if ($uidCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$userAccount;
+ return false;
+ }
+
+ // Az következő uidNumber megállapítása
+ $filter = '(objectClass=mayorOrganization)';
+ $justthese = array('nextuid', 'freeuid');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ $uidinfo = ldap_get_entries($ds,$sr);
+ ldap_free_result($sr);
+ if (isset($uidinfo[0]['freeuid']['count'])) $freeUidCount = $uidinfo[0]['freeuid']['count'];
+ else $freeUidCount = 0;
+ if ($freeUidCount == 0) {
+ $info['uidnumber'] = array($uidinfo[0]['nextuid'][0]);
+ $info['gidnumber'] = $info['uidnumber'];
+ $oinfo['nextuid'] = $info['uidnumber'][0]+1;
+ } else {
+ $info['uidnumber'] = array($uidinfo[0]['freeuid'][$freeUidCount-1]);
+ $info['gidnumber'] = $info['uidnumber'];
+ $oinfo['freeuid'] = $uidinfo[0]['freeuid'][$freeUidCount-1];
+ }
+
+ // shadow attributumok...
+ // A shadowLastChange a mai nap // if (isset($AUTH[$toPolicy]['shadowlastchange']) && $AUTH[$toPolicy]['shadowlastchange'] != '')
+ $info['shadowlastchange'] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowmin']) && $AUTH[$toPolicy]['shadowmin'] != '') $info['shadowmin'] = $AUTH[$toPolicy]['shadowmin'];
+ if (isset($AUTH[$toPolicy]['shadowmax']) && $AUTH[$toPolicy]['shadowmax'] != '') $info['shadowmax'] = $AUTH[$toPolicy]['shadowmax'];
+ if (isset($AUTH[$toPolicy]['shadowwarning']) && $AUTH[$toPolicy]['shadowwarning'] != '') $info['shadowwarning'] = $AUTH[$toPolicy]['shadowwarning'];
+ if (isset($AUTH[$toPolicy]['shadowinactive']) && $AUTH[$toPolicy]['shadowinactive'] != '') $info['shadowinactive'] = $AUTH[$toPolicy]['shadowinactive'];
+ if (isset($AUTH[$toPolicy]['shadowexpire']) && $AUTH[$toPolicy]['shadowexpire'] != '') $info['shadowexpire'] = $AUTH[$toPolicy]['shadowexpire'];
+
+ // A szokásos attribútumok
+ $info['uid'] = array($userAccount);
+ $info['cn'] = array($userCn);
+ $info['sn'] = array('-');
+ $info['userpassword'] = array('{crypt}' . crypt($userPassword));
+ if (is_array($SET['policyAttrs'])) foreach ($SET['policyAttrs'] as $attr => $value) $info[kisbetus($attr)] = $value;
+ if (($pos = strpos($category,',')) !== false)
+ $info['homedirectory'] = "/home/diak/".substr($category,0,$pos)."/$userAccount";
+ else
+ $info['homedirectory'] = "/home/$category/$userAccount";
+
+ // A kategória függő attribútumok
+ if (isset($SET['container']) && $SET['container'] != '') {
+ $dn = "uid=$userAccount,".$SET['container'];
+ $group = "cn=$userAccount,ou=Groups,".$SET['container'];
+ $ouDn = $SET['container'];
+ } else {
+ $dn = "uid=$userAccount,ou=".$category.','.$AUTH[$toPolicy]['ldap base dn'];
+ $group = "cn=$userAccount,ou=Groups,ou=".$category.','.$AUTH[$toPolicy]['ldap base dn'];
+ $ouDn = "ou=".$category.",".$AUTH[$toPolicy]['ldap base dn'];
+ }
+
+ if ($SET['createContainer']) { // Létrehozza a tároló elemet, benne az OU=Groups tárolót, benne a megfelelő csoportot
+ LDAPcreateContainer($ouDn, $toPolicy);
+ }
+ // objectum osztályok
+ // a mayorPerson a posixAccount és shadowAccount leszármazottja,
+ // de kell egy structural object is - ez a person - aminek kötelező paramétere az sn!
+ $info['objectclass'] = array('person', 'mayorPerson');
+
+ // user felvétel
+ $info['homedirectory'] = ekezettelen($info['homedirectory']); // Nem lehet ékezetes :o(
+
+ $_r1 = ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ printf("LDAP-Error: %s<br>\n", ldap_error($ds));
+ echo $dn.'<pre>'; var_dump($info); echo '</pre>';
+ return false;
+ }
+
+ // user csoportja
+ $groupinfo['cn'] = $userAccount;
+ $groupinfo['gidnumber'] = $info['uidnumber'];
+ $groupinfo['memberuid'] = ekezettelen($userAccount); // Nem lehet ékezetes :o(
+ $groupinfo['description'] = 'A felhasználó saját csoportja';
+ $groupinfo['objectclass'] = 'posixGroup';
+ $_r2 = ldap_add($ds, $group, $groupinfo);
+ if (!$_r2) {
+ printf("LDAP-Error (userGroup): %s<br>\n", ldap_error($ds));
+ echo $group.'<pre>'; var_dump($groupinfo); echo '</pre>';
+ return false;
+ }
+
+ // Kategória csoportba rakás vagy tanár csoportba rakás ugye...
+ // És nincs diák csoport!
+ $ginfo['memberuid'] = ekezettelen($userAccount); // Nem lehet ékezetes :o(
+ $ginfo['member'] = $dn;
+
+ // Kategória csoportba és egyéb csoportokba rakás
+ if (isset($SET['category'])) {
+ if (is_array($SET['groups'])) array_unshift($SET['groups'], $category);
+ else $SET['groups'] = array($category);
+
+ for ($i = 0; $i < count($SET['groups']); $i++) {
+
+ $filter = "(&(objectClass=mayorGroup)(cn=".$SET['groups'][$i]."))";
+ $justthese = array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ if (ldap_count_entries($ds, $sr)) {
+ $grpInfo = ldap_get_entries($ds, $sr);
+ $groupDn = $grpInfo[0]['dn'];
+ $_r3 = ldap_mod_add($ds, $groupDn, $ginfo);
+ if (!$_r3) {
+ printf("LDAP-Error (category): %s<br>\n", ldap_error($ds));
+ echo $groupDn.'<pre>'; var_dump($ginfo); echo '</pre>';
+ }
+ }
+
+ }
+
+ }
+
+
+ // nextuid növelés
+ if ($freeUidCount == 0) {
+ $_r4 = ldap_mod_replace($ds,$AUTH[$toPolicy]['ldap base dn'],$oinfo);
+ } else {
+ $_r4 = ldap_mod_del($ds,$AUTH[$toPolicy]['ldap base dn'],$oinfo);
+ }
+ if (!$_r4) {
+ printf("LDAP-Error (freeUid): %s<br>\n", ldap_error($ds));
+ return false;
+ }
+
+ ldap_close($ds);
+
+ if (defined('_DATADIR')
+ && isset($AUTH[$toPolicy]['createAccountScript'])
+ && file_exists(_DATADIR)
+ ) {
+ $sfp = fopen(_DATADIR.'/'.$AUTH[$toPolicy]['createAccountScript'],'a+');
+ if ($sfp) {
+ fwrite($sfp,"\n# $userAccount l.trehoz.sa\n");
+ fwrite($sfp,'/bin/mkdir -p '.$info['homedirectory']."\n");
+ fwrite($sfp,'/bin/chmod 2755 '.$info['homedirectory']."\n");
+ fwrite($sfp,"/bin/chown $userAccount.$userAccount ".$info['homedirectory']."\n");
+
+ fwrite($sfp,'/bin/mkdir '.$info['homedirectory']."/private\n");
+ fwrite($sfp,"/bin/chown $userAccount.$userAccount ".$info['homedirectory']."/private\n");
+ fwrite($sfp,'/bin/chmod 0770 '.$info['homedirectory']."/private\n");
+
+ fwrite($sfp,'/bin/mkdir '.$info['homedirectory']."/public_html\n");
+ fwrite($sfp,"/bin/chown $userAccount.$userAccount ".$info['homedirectory']."/public_html\n");
+ fwrite($sfp,'/bin/chmod 0755 '.$info['homedirectory']."/public_html\n");
+
+ fwrite($sfp,'/bin/ln -s '.$info['homedirectory']." /home\n");
+// chmod($scriptFile,0770);
+ fclose($sfp);
+ }
+ }
+ $_SESSION['alert'][] = 'info:create_uid_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/session/createGroup.php b/mayor-orig/www/include/backend/ldap/session/createGroup.php
new file mode 100644
index 00000000..df2de812
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/session/createGroup.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+ function ldapCreateGroup($groupCn, $groupDesc, $toPolicy = _POLICY, $SET) {
+
+ global $AUTH;
+ $category = ekezettelen($SET['category']);
+
+ // $toPolicy --> ldap backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ldap') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $groupinfo = $oinfo = Array();
+
+ // cn ütközés ellenőrzése
+ $filter = "(&(objectclass=posixgroup)(cn=$groupCn))";
+ $justthese = array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ $ginfo = ldap_get_entries($ds, $sr);
+ $gCount = $ginfo['count'];
+ ldap_free_result($sr);
+ if ($gCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$groupCn;
+ return false;
+ }
+
+ // Az következő gidNumber megállapítása
+ $filter = '(objectClass=mayorOrganization)';
+ $justthese = array('nextgid', 'freegid');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['ldap base dn'], $filter, $justthese);
+ $ginfo = ldap_get_entries($ds,$sr);
+ ldap_free_result($sr);
+ if (isset($ginfo[0]['freegid']['count'])) $freeGidCount = $ginfo[0]['freegid']['count'];
+ else $freeGidCount = 0;
+ if ($freeGidCount == 0) {
+ $info['gidnumber'] = array($ginfo[0]['nextgid'][0]);
+ $oinfo['nextgid'] = $info['gidnumber'][0]+1;
+ } else {
+ $info['gidnumber'] = array($ginfo[0]['freegid'][$freeGidCount-1]);
+ $oinfo['freegid'] = $ginfo[0]['freegid'][$freeGidCount-1];
+ }
+
+ // A szokásos attribútumok
+ $info['cn'] = array($groupCn);
+ $info['description'] = array($groupDesc);
+
+ // A kategória függő attribútumok
+ if (isset($SET['container'])) $dn = "cn=$groupCn,".$SET['container'];
+ else $dn = "cn=$groupCn,ou=Groups,ou=$category,".$AUTH[$toPolicy]['ldap base dn'];
+
+ // objectum osztályok
+ $info['objectclass'] = array('posixGroup', 'mayorGroup');
+
+ // Policy függő attribútumok - LDAP esetén pl a member kötelező
+ if (is_array($SET['policyAttrs'])) foreach ($SET['policyAttrs'] as $attr => $value) $info[kisbetus($attr)] = $value;
+
+ // csoport felvétel
+ $_r1 = ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ printf("LDAP-Error: %s<br>\n", ldap_error($ds));
+ echo $dn.'<hr>';
+ var_dump($info);
+ echo '<hr>';
+ var_dump($SET);
+ }
+
+ // nextuid növelés
+ if ($freeGidCount == 0) {
+ $_r4 = ldap_mod_replace($ds,$AUTH[$toPolicy]['ldap base dn'],$oinfo);
+ } else {
+ $_r4 = ldap_mod_del($ds,$AUTH[$toPolicy]['ldap base dn'],$oinfo);
+ }
+// if (!$_r4) {
+// printf("LDAP-Error: %s<br>\n", ldap_error($_r4));
+// }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:create_group_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldap/session/search/searchAccount.php b/mayor-orig/www/include/backend/ldap/session/search/searchAccount.php
new file mode 100644
index 00000000..62e19c5f
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldap/session/search/searchAccount.php
@@ -0,0 +1,311 @@
+<?php
+/*
+ Module: base/session
+ Backend: ldap
+
+ ! -- Csak publikus mezőkre lehet keresni! -- !
+ function LDAPSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)')
+ function ldapSearchAccount($attr, $pattern, $searchAttrs = array('userCn'))
+ function ldapSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = '') {
+
+*/
+
+######################################################
+# Általános LDAP kereső függvény
+######################################################
+
+ function LDAPSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)', $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($pattern == '') {
+ $_SESSION['alert'][] = 'message:empty_field';
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $filter = "(&$filter($attr=*$pattern*))";
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['ldap base dn'], $filter, $searchAttrs);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+######################################################
+# ldapSearchAccount - felhasználó kereső függvény
+######################################################
+
+ function ldapSearchAccount($attr, $pattern, $searchAttrs = array('userCn'), $toPolicy = _POLICY) {
+
+ global $accountAttrToLDAP;
+
+ // A keresendő attribútum konvertálása LDAP attribútummá
+ if ($accountAttrToLDAP[ $attr ] != '') $attrLDAP = $accountAttrToLDAP[ $attr ];
+ else $attrLDAP = $attr;
+ if ($attrLDAP == 'dn') $attrLDAP = 'uid'; // dn-re nem megy a keresés!!
+
+ // A lekérendő attribútumok konvertálása LDAP attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($accountAttrToLDAP[ $searchAttrs[$i] ] != '') $searchAttrsLDAP[$i] = $accountAttrToLDAP[ $searchAttrs[$i] ];
+ else $searchAttrsLDAP[$i] = $searchAttrs[$i];
+ }
+
+ $result = LDAPSearch($attrLDAP, $pattern, $searchAttrsLDAP, '(objectclass=posixaccount)', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['userAccount'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (isset($result[$i][ $accountAttrToLDAP[$a] ])) {
+ if ($accountAttrToLDAP[$a] != '') $return[$i][$a] = $result[$i][ $accountAttrToLDAP[$a] ];
+ else $return[$i][$a] = $result[$i][$a];
+ } else {
+ $return[$i][$a] = array('count' => 0) ;
+ }
+ }
+ $return[$i]['category'] = getAccountCategories($result[$i]['uid'][0], $toPolicy);
+ $return[$i]['category']['count'] = count($return[$i]['category']);
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# ldapSearchGroup - csoport kereső függvény
+######################################################
+
+ function ldapSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = _POLICY) {
+
+ global $groupAttrToLDAP;
+
+ // A keresendő attribútum konvertálása LDAP attribútummá
+ if ($groupAttrToLDAP[ $attr ] != '') $attrLDAP = $groupAttrToLDAP[ $attr ];
+ else $attrLDAP = $attr;
+ if ($attrLDAP == 'dn') $attrLDAP = 'cn'; // dn-re nem megy a keresés!!
+
+ // A lekérendő adtibútumok konvertálása LDAP attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($groupAttrToLDAP[ $searchAttrs[$i] ] != '') $searchAttrsLDAP[$i] = $groupAttrToLDAP[ $searchAttrs[$i] ];
+ else $searchAttrsLDAP[$i] = $searchAttrs[$i];
+ }
+
+ $result = LDAPSearch($attrLDAP, $pattern, $searchAttrsLDAP, '(objectclass=posixgroup)', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['groupCn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (!isset($groupAttrToLDAP[$a]) || $groupAttrToLDAP[$a] != '') {
+ if (isset($result[$i][ $groupAttrToLDAP[$a] ])) $return[$i][$a] = $result[$i][ $groupAttrToLDAP[$a] ];
+ else $return[$i][$a] = '';
+ } else {
+ $return[$i][$a] = $result[$i][$a];
+ }
+ }
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# ldapDeleteAccount - account törlése
+######################################################
+
+ function ldapDeleteAccount($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ // $toPolicy --> ldap backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ldap') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Az uidNumber, a homeDirectory lekerdezése
+ $filter = "(objectclass=posixAccount)";
+ $justthese = array('uidNumber','homedirectory');
+ $sr = @ldap_search($ds,$userDn,$filter,$justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ } ;
+
+ $uidinfo = @ldap_get_entries($ds,$sr);
+ $uidNumber = $uidinfo[0]['uidnumber'][0];
+ if (isset($uidinfo[0]['homedirectory'][0])) $homeDirectory = $uidinfo[0]['homedirectory'][0];
+ else $homeDirectory = '';
+ $uid=$userAccount;
+
+ // GroupDn, freeuid
+ $groupDn = "cn=$uid,ou=Groups".strstr($userDn,',');
+ $oinfo['freeuid'] = $uidNumber;
+
+ // user törlése
+ if (!@ldap_delete($ds,$userDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:user:'.$userAccount;
+ }
+
+ // freeuid felvétele
+ if (!@ldap_mod_add($ds,$AUTH[$toPolicy]['ldap base dn'],$oinfo)) {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure:freeuid:'.$oinfo['freeuid'];
+ }
+
+ // csoport törlése
+ if (!@ldap_delete($ds,$groupDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:group:'.$groupDn;
+ }
+
+ // törlés a csoportból
+ $filter = "(memberuid=$uid)";
+ $justthese = array('cn','objectclass','member');
+ $sr = @ldap_search($ds,$AUTH[$toPolicy]['ldap base dn'],$filter,$justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:groups:".$userAccount;
+ ldap_close($ds);
+ return false;
+ } ;
+
+ $groupinfo = ldap_get_entries($ds,$sr);
+
+ for ($i = 0; $i < $groupinfo['count']; $i++) {
+ $grpinfo = array('memberuid' => $uid);
+ if (@in_array($userDn,$groupinfo[$i]['member'])) {
+ $grpinfo['member']=$userDn;
+ }
+ if (!@ldap_mod_del($ds,$groupinfo[$i]['dn'],$grpinfo)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:member:'.$groupinfo[$i]['dn'];
+ }
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:delete_uid_success:'.$userDn;
+ return true;
+
+ }
+
+######################################################
+# ldapDeleteGroup - account törlése
+######################################################
+
+ function ldapDeleteGroup($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+
+ // $toPolicy --> ldap backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ldap') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldap hostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Az uidNumber, a homeDirectory lekerdezése
+ $filter = '(objectclass=posixGroup)';
+ $justthese = array('gidNumber');
+ $sr = @ldap_search($ds, $groupDn, $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = 'message:ldap_search_failure:'.$userDn;
+ ldap_close($ds);
+ return false;
+ } ;
+
+ $gidinfo = ldap_get_entries($ds, $sr);
+ $gidNumber = $gidinfo[0]['gidnumber'][0];
+
+ // freeGid
+ $oinfo['freegid'] = $gidNumber;
+
+ if (!@ldap_delete($ds, $groupDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:group:'.$groupCn;
+ }
+
+ // freeuid felvétele
+ if (!@ldap_mod_add($ds, $AUTH[$toPolicy]['ldap base dn'], $oinfo)) {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure:freeGid:'.$oinfo['freegid'];
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:delete_group_success:'.$groupCn;
+ return true;
+
+ }
+
+
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/auth/login.php b/mayor-orig/www/include/backend/ldapng/auth/login.php
new file mode 100644
index 00000000..b24b4b96
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/auth/login.php
@@ -0,0 +1,163 @@
+<?php
+/*
+ Auth-ldapng
+
+ A név-jelszó pár ellenőrzése LDAP adatbázis alapján
+*/
+
+/* --------------------------------------------------------------
+
+ Felhasználók azonosítása az LDAP-ban tárolt konfigurálható
+ osztályok alapján történik.
+
+ A függvény az előre definiált _AUTH_SUCCESS, _AUTH_EXPIRED, _AUTH_FAILURE
+ konstansok valamelyikével tér vissza. (include/modules/auth/base/config.php)
+
+ Sikeres hitelesítés esetén
+ az egyéb account információkat (minimálisan a 'cn', azaz 'common name'
+ attribútumot) a cím szerint átadott $accountInformation tömbbe helyezi el.
+
+ Sikertelen azonosítás esetén a globális $_SESSION['alert'] változóban jelzi az
+ elutasítás okát (ldap_connect_failure, ldap_bind_failure, ldap_search_failure, no_account, multi_uid,
+ account_disabled, bad_pw, account_warning, account_expired, warn_account_disable.
+
+-------------------------------------------------------------- */
+
+######################################################################
+# Az LDAP protocol version 3 kötelező,
+# referals=0 nélkül használhatatlanul lassú
+######################################################################
+
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+ ldap_set_option(NULL, LDAP_OPT_REFERRALS, 0);
+
+
+ function ldapngUserAuthentication($userAccount, $userPassword, &$accountInformation, $toPolicy) {
+
+ global $AUTH;
+
+ if ($toPolicy == '') {
+ if ($accountInformation['policy'] != '') $toPolicy = $accountInformation['policy'];
+// elseif ($_REQUEST['toPolicy'] != '') $toPolicy = $_REQUEST['toPolicy'];
+ else $toPolicy = _POLICY;
+ }
+
+ // Kapcsolódás a szerverhez
+ $ds = ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return _AUTH_FAILURE;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:userAuthentication:'.$AUTH[$toPolicy]['ldapUser'];
+ return _AUTH_FAILURE;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(".$AUTH[$toPolicy]['ldapUserAccountAttr']."=$userAccount)(objectClass=".$AUTH[$toPolicy]['ldapUserObjectClass']."))";
+ $justthese = array("sn",$AUTH[$toPolicy]['ldapCnAttr'],$AUTH[$toPolicy]['ldapStudyIdAttr'],"shadowexpire","shadowwarning","shadowinactive","shadowlastchange","shadowmax");
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return _AUTH_FAILURE;
+ }
+ $info = ldap_get_entries($ds,$sr);
+
+ if ( $info['count'] === 0 || is_null($info)) { // http://bugs.php.net/50185 ha nincs megfelelő elem, akkor - hibásan - null-al tér vissza! (~ PHP 5.2.10)
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ ldap_close($ds);
+ return _AUTH_FAILURE_1;
+ }
+
+ if ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid";
+ ldap_close($ds);
+ return _AUTH_FAILURE_2;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+
+
+ $accountInformation['cn'] = $info[0][ $AUTH[$toPolicy]['ldapCnAttr'] ][0];
+ $accountInformation['studyId'] = $info[0][ $AUTH[$toPolicy]['ldapStudyIdAttr'] ][0];
+
+ $accountInformation['dn'] = $info[0]['dn'];
+ $accountInformation['account'] = $userAccount;
+ // Lejárt-e
+ // A lejárat ideje a shadowExpire és shadowLastChange+shadowMax kötül a kisebbik
+ if ($info[0]['pwdlastset'][0] != '') { // A pwdLastSet és shadowLastChange közül a kisebbiket használjuk
+// if ($info[0]['shadowlastchange'][0] != '')
+// $info[0]['shadowlastchange'][0] = min(pwdLastSet2shadowLastChange($info[0]['pwdlastset'][0]), $info[0]['shadowlastchange'][0]);
+// else
+ $info[0]['shadowlastchange'][0] = pwdLastSet2shadowLastChange($info[0]['pwdlastset'][0]);
+ }
+ if ($info[0]['accountexpires'][0] != '') { // Az accountExpires és a shadowExpire közül a kisebbiket használjuk
+// if ($info[0]['shadowexpire'][0] != '')
+// $info[0]['shadowexpire'][0] = min(pwdLastSet2shadowLastChange($info[0]['accountexpires'][0]), $info[0]['shadowexpire'][0]);
+// else
+ $info[0]['shadowexpire'][0] = pwdLastSet2shadowLastChange($info[0]['accountexpires'][0]);
+ }
+ if ($info[0]['shadowexpire'][0] != '') $expireTimestamp = $info[0]['shadowexpire'][0];
+ if (
+ $info[0]['shadowmax'][0] != '' &&
+ (
+ !isset($expireTimestamp) ||
+ $expireTimestamp > $info[0]['shadowlastchange'][0] + $info[0]['shadowmax'][0]
+ )
+ ) $expireTimestamp = $info[0]['shadowlastchange'][0] + $info[0]['shadowmax'][0];
+ // lejárt, ha lejárat ideje már elmúlt
+ $accountExpired = (isset($expireTimestamp) && ($expireTimestamp <= floor(time()/(60*60*24))));
+
+ // Le van-e tiltva
+ // Ha több mint shadowInactive napja lejárt
+ if ( // onDisabled: none | refuse
+ $AUTH[$toPolicy]['onDisabled'] == 'refuse' &&
+ isset($expireTimestamp) &&
+ $expireTimestamp + $info[0]['shadowinactive'][0] <= floor(time()/(60*60*24))
+ ) {
+ // Le van tiltva
+ $_SESSION['alert'][] = 'message:account_disabled';
+ ldap_close($ds);
+ return _AUTH_FAILURE_4;
+ } // onDisabled
+
+ // Jelszó ellenőrzés - lehet-e csatlakozni
+ if (!@ldap_bind($ds, $accountInformation['dn'], $userPassword)) {
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return _AUTH_FAILURE_3;
+ }
+
+ ldap_close($ds);
+ // Lejárt-e az azonosító
+ if ($AUTH[$toPolicy]['onExpired'] != 'none' && isset($expireTimestamp)) { // onExpired: none | warning | force update
+ // Lejárt-e
+ $pwLejar = $expireTimestamp - floor(time()/(60*60*24));
+ if (0 < $pwLejar && $pwLejar < $info[0]['shadowwarning'][0]) {
+ $_SESSION['alert'][] = 'info:account_warning:'.$pwLejar;
+ return _AUTH_SUCCESS;
+ } elseif ($pwLejar <= 0) {
+ $_SESSION['alert'][] = 'info:account_expired:'.abs($pwLejar);
+ if ($AUTH[$toPolicy]['onDisabled'] == 'refuse') $_SESSION['alert'][] = 'info:warn_account_disable:'.($info[0]['shadowinactive'][0]+$pwLejar);
+ if ($AUTH[$toPolicy]['onExpired'] == 'warning') {
+ return _AUTH_SUCCESS;
+ } elseif ($AUTH[$toPolicy]['onExpired'] == 'force update') {
+ return _AUTH_EXPIRED;
+ } else {
+ return _AUTH_FAILURE;
+ }
+ }
+ } // onExpired
+ // Ha idáig eljut, akkor minden rendben.
+ return _AUTH_SUCCESS;
+
+ } // count == 1
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/base/attrs.php b/mayor-orig/www/include/backend/ldapng/base/attrs.php
new file mode 100644
index 00000000..2ea07778
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/base/attrs.php
@@ -0,0 +1,137 @@
+<?php
+/*
+ Module: useradmin
+*/
+
+ if (file_exists('lang/'._LANG.'/backend/ldapng/attrs.php')) {
+ require('lang/'._LANG.'/backend/ldapng/attrs.php');
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/backend/ldapng/attrs.php')) {
+ require('lang/'._DEFAULT_LANG.'/backend/ldapng/attrs.php');
+ }
+
+######################################################
+# Alapértelmezett jogosultságok
+#
+# w - Írható/olvasható
+# r - olvasható
+# - - egyik sem
+#
+# Három karakter: admin, self, other jogai
+######################################################
+
+ define('_DEFAULT_LDAP_RIGHTS','wr-');
+
+######################################################
+# Az LDAP account attribútumok
+######################################################
+
+ global $ldapngAccountAttrs;
+ $ldapngAccountAttrs = array(
+ 'cn',
+ 'serialnumber',
+ 'uid',
+ 'uidnumber',
+ 'gidnumber',
+ 'unixhomedirectory',
+ 'loginshell',
+
+ 'shadowlastchange',
+ 'shadowexpire',
+ 'shadowwarning',
+ 'shadowmin',
+ 'shadowmax',
+ 'shadowinactive',
+
+/*
+ 'gecos',
+ 'mail',
+ 'telephonenumber',
+ 'mobile',
+ 'l',
+ 'street',
+ 'postaladdress',
+ 'postalcode',
+ 'homedirectory',
+*/
+ );
+
+ global $ldapngGroupAttrs;
+ $ldapngGroupAttrs = array(
+ 'cn',
+ 'description',
+ 'member',
+ 'name',
+ 'samaccountname',
+ 'objectcategory',
+ 'gidnumber', // ennek kellene lennie - mitől lesz?
+/* 'memberuid' */
+ );
+
+ global $accountAttrToLDAP; // Kis és nagybetű számít!!!
+ $accountAttrToLDAP = array(
+ 'userAccount' => 'uid',
+ 'userCn' => 'displayName',
+ 'mail' => 'mail',
+ 'studyId' => 'employeeNumber', // Ez konfig-ban külön van állítva, az itteni érték irreleváns
+ 'shadowLastChange' => 'shadowLastChange',
+ 'shadowWarning' => 'shadowWarning',
+ 'shadowMin' => 'shadowMin',
+ 'shadowMax' => 'shadowMax',
+ 'shadowExpire' => 'shadowExpire',
+ 'shadowInactive' => 'shadowInactive',
+ );
+
+ global $groupAttrToLDAP;
+ $groupAttrToLDAP = array(
+ 'groupCn' => 'cn',
+ 'groupDesc' => 'description',
+ 'member' => 'member',
+ );
+
+ global $ldapngAccountAttrDef;
+ $ldapngAccountAttrDef = array(
+ 'dn' => array('desc' => _LDAPDN, 'type' => 'text', 'rights' => 'rrr'),
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text', 'rights' => 'rrr'),
+ 'sn' => array('desc' => _LDAPSN, 'type' => 'text', 'rights' => 'wrr'),
+ 'givenname' => array('desc' => _LDAPGIVENNAME, 'type' => 'text'),
+ 'employeenumber' => array('desc' => _LDAPEMPLOYEENUMBER, 'type' => 'int', 'rights' => 'wrr'),
+ 'displayname' => array('desc' => _LDAPCN, 'type' => 'text', 'rights' => 'wrr'),
+ 'name' => array('desc' => _LDAPNAME, 'type' => 'text', 'rights' => 'r--'),
+ 'uid' => array('desc' => _LDAPUID, 'type' => 'text', 'rights' => 'rrr'),
+ 'uidnumber' => array('desc' => _LDAPUIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int', 'rights' => 'w--'),
+ 'mssfu30name' => array('desc' => _LDAPUID, 'type' => 'text', 'rights' => 'r--'),
+ 'unixhomedirectory' => array('desc' => _LDAPUNIXHOMEDIRECTORY, 'type' => 'text', 'rights' => 'wrr'),
+ 'loginshell' => array('desc' => _LDAPLOGINSHELL, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowlastchange' => array('desc' => _LDAPSHADOWLASTCHANGE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowexpire' => array('desc' => _LDAPSHADOWEXPIRE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowwarning' => array('desc' => _LDAPSHADOWWARNING, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowmin' => array('desc' => _LDAPSHADOWMIN, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowmax' => array('desc' => _LDAPSHADOWMAX, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowinactive' => array('desc' => _LDAPSHADOWINACTICE, 'type' => 'text', 'rights' => 'wrr'),
+/*
+ 'gecos' => array('desc' => _LDAPGECOS, 'type' => 'text', 'rights' => 'w--'),
+ 'mail' => array('desc' => _LDAPMAIL, 'type' => 'text', 'rights' => 'wwr'),
+ 'telephonenumber' => array('desc' => _LDAPTELEPHONENUMBER, 'type' => 'text', 'rights' => 'ww-'),
+ 'mobile' => array('desc' => _LDAPMOBILE, 'type' => 'text', 'rights' => 'ww-'),
+ 'l' => array('desc' => _LDAPL, 'type' => 'text'),
+ 'street' => array('desc' => _LDAPSTREET, 'type' => 'text'),
+ 'postaladdress' => array('desc' => _LDAPPOSTALADDRESS, 'type' => 'text'),
+ 'postalcode' => array('desc' => _LDAPPOSTALCODE, 'type' => 'text'),
+*/
+ );
+
+ global $ldapngGroupAttrDef;
+ $ldapngGroupAttrDef = array(
+ 'cn' => array('desc' => _LDAPCN, 'type' => 'text','rights' => 'rrr'),
+ 'name' => array('desc' => _LDAPNAME, 'type' => 'text','rights' => 'rrr'),
+ 'samaccountname' => array('desc' => _LDAPSAMACCOUNTNAME, 'type' => 'text','rights' => 'wrr'),
+ 'description' => array('desc' => _LDAPDESCRIPTION, 'type' => 'text'),
+ 'gidnumber' => array('desc' => _LDAPGIDNUMBER, 'type' => 'int','rights' => 'w--'),
+ 'member' => array('desc' => _LDAPMEMBER, 'type' => 'select'),
+ 'objectcategory' => array('desc' => _LDAPOBJECTCATEGORY, 'type' => 'text','rights' => 'rrr'),
+
+ 'memberuid' => array('desc' => _LDAPMEMBERUID, 'type' => 'select'),
+ );
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/password/changePassword.php b/mayor-orig/www/include/backend/ldapng/password/changePassword.php
new file mode 100644
index 00000000..039dda5d
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/password/changePassword.php
@@ -0,0 +1,160 @@
+<?php
+/*
+
+ Module: base/password
+
+ function changeMyPassword($userAccount, $userPassword, $newPassword, $verification)
+ A függvény nem vizsgálja, hogy jogosultak vagyunk-e a jelszó megváltoztatására.
+ Ennek eldöntése a függvényt hívó program feladata
+*/
+
+############################################################################
+# Jelszó kódolása (az Active Directory ezt használja....)
+############################################################################
+
+function LDAPEncodePassword($password) {
+
+ return mb_convert_encoding("\"".$password."\"", "UTF-16LE", "UTF-8");
+
+}
+
+############################################################################
+# Saját jelszó megváltoztatása
+############################################################################
+
+/* *************************************************************************
+ A leírások szerint a felhasználó maga is megváltoztathatja jelszavát.
+ Ennek módja az unicodePw attribútum törlése (a régi jelszó értéke szerint),
+ és felvétele új értékkel - mindenz elvileg egy lépésben.
+
+ A PHP ldap_mod* függvények ezt az egy lépésben kétféle módosítást nem
+ támogatják. De a helyzet az, hogy a módosítás perl-ből és parancssorból
+ sem működik...
+************************************************************************* */
+
+function changeMyPassword($userAccount, $userPassword, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = $_REQUEST['toPolicy'];
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ $shadowLastChange = floor(time()/(60*60*24));
+
+ // Csatlakozzás az AD kiszolgálóhoz (SSL szükséges!)
+ $ds = ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ // nem sikerült csatlakozni
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+
+ // Az eredeti jelszó ellenőrzése - csatlakozással
+ $b_ok = ldap_bind($ds,$userDn,$userPassword);
+ if (!$b_ok) {
+ // Talán a régi jelszót elgépelte, vagy le van tiltva...
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'.$userDn.':changeMyPassword - hibás a régi jelszó?';
+ ldap_close($ds);
+ return false;
+ }
+ $salt = generateSalt(8);
+ $info['userPassword'][0] = "{smd5}".base64_encode(md5($newPassword.$salt, true).$salt); // Az LDAP ezt majd még egyszer base64 encod-olja...
+ // Ezekre nincs jogosultsága a felhasználónak, nem változnak:
+ // _SHADOWMIN, _SHADOWMAX, _SHADOWWARNING, _SHADOWINACTIVE
+ $info['shadowlastchange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowexpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowexpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+
+ $r = ldap_mod_replace($ds,$userDn,$info);
+ ldap_close($ds);
+ if ($r) {
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure';
+ return false;
+ }
+}
+
+############################################################################
+# Adminisztrátori jelszó változtatás
+############################################################################
+
+function generateSalt($len=8) {
+// https://github.com/splitbrain/dokuwiki/blob/master/inc/PassHash.class.php
+// Ez adja vissza a salt-ot (ha nincs benne sortörés...):
+// echo e3NtZDV9U3lNbnNGQ05OUHV6L2J4dHovekpzVVpFUVZGQw== | base64 -d | sed s/{smd5}// | base64 -d | cut -f 15-
+ $salt = '';
+ //$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
+ //for($i=0;$i<$len;$i++) $salt .= $chars[mt_rand(0,61)];
+ $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
+ for($i=0;$i<$len;$i++) $salt .= $chars[mt_rand(0,25)];
+ return $salt;
+}
+
+function changePassword($userAccount, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = _POLICY;
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ $shadowLastChange = floor(time()/(60*60*24));
+
+ $ds = ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if ($ds) {
+ $b_ok = ldap_bind($ds,_USERDN,_USERPASSWORD);
+ if ($b_ok) {
+ $salt = generateSalt(8);
+ $info['userPassword'][0] = "{smd5}".base64_encode(md5($newPassword.$salt, true).$salt); // Az LDAP ezt majd még egyszer base64 encod-olja...
+ // Ezekre nincs jogosultsága a felhasználónak, nem változnak:
+ // _SHADOWMIN, _SHADOWMAX, _SHADOWWARNING, _SHADOWINACTIVE
+ $info['shadowlastchange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowexpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowexpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $r = @ldap_mod_replace($ds,$userDn,$info);
+ ldap_close($ds);
+ if ($r) {
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure';
+ return false;
+ }
+
+ /* *************** */
+/* $info['unicodePwd'][0] = LDAPEncodePassword($newPassword);
+ // Ezekre nincs jogosultsága a felhasználónak, nem változnak:
+ // _SHADOWMIN, _SHADOWMAX, _SHADOWWARNING, _SHADOWINACTIVE
+ $info['shadowLastChange'][0] = $shadowLastChange;
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $info['shadowExpire'][0] = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $info['shadowExpire'][0] = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $r = @ldap_mod_replace($ds,$userDn,$info);
+ ldap_close($ds);
+ if ($r) {
+ $_SESSION['alert'][] = 'info:pw_change_success';
+ return true;
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_modify_failure:changePassword';
+ return false;
+ }
+*/
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:'._USERDN.':changePassword';
+ ldap_close($ds);
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:ldap_failure';
+ return false;
+ }
+}
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/session/accountInfo.php b/mayor-orig/www/include/backend/ldapng/session/accountInfo.php
new file mode 100644
index 00000000..03761dca
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/session/accountInfo.php
@@ -0,0 +1,399 @@
+<?php
+/*
+ Module: base/auth-ldapng
+ Backend: ldapng
+
+ function getLDAPInfo($userDn, $attrList=array('cn'), $toPolicy = '')
+ function ldapGetAccountInfo($userAccount, $toPolicy = _POLICY)
+ function ldapGetUserInfo($userAccount, $toPolicy = _POLICY)
+ function ldapChangeAccountInfo($userAccount, $toPolicy = _POLICY)
+ function ldapGetGroupInfo($groupCn, $toPolicy = _POLICY)
+
+*/
+
+######################################################
+# getLDAPInfo - általános LDAP lekérdezés
+######################################################
+
+
+ function getLDAPInfo($Dn, $attrList=array('cn'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $filter = '(objectclass=*)';
+ $sr = @ldap_search($ds, $Dn, $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$Dn;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+###########################################################
+# ldapGetAccountInfo - felhasználói információk (backend)
+###########################################################
+
+ function ldapngGetAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $backendAttrs, $backendAttrDef;
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Account', $toPolicy);
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getLDAPInfo($userDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+ }
+ return $return[0];
+
+ }
+
+ }
+
+#############################################################
+# ldapGetUserInfo - felhasználói információk (keretrendszer)
+#############################################################
+
+ function ldapngGetUserInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $accountAttrToLDAP, $ldapAttrDef;
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ $result = getLDAPInfo($userDn, array_values($accountAttrToLDAP), $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ $result[0]['dn'] = array('count' => 1, 0 => $result[0]['dn']);
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt + LDAP --> MaYoR schema
+ foreach ($accountAttrToLDAP as $attr => $ldapAttr) {
+ $ldapAttr = kisbetus($ldapAttr);
+ if (isset($result[0][$ldapAttr])) $return[$attr] = $result[0][$ldapAttr];
+ else $return[$attr] = array('count' => 0);
+ }
+ return $return;
+
+ }
+
+ }
+
+###############################################################
+# ldapChangeAccountInfo - felhasználói információk módosítása
+###############################################################
+
+ function ldapngChangeAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+ $_alert = array();
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_LDAP_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '' ) $values[0] = $_POST[$attr];
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if ($_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if ($_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+ }
+
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$userDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@$r = ldap_mod_replace($ds,$userDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$userDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i = 0;$i < count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+###########################################################
+# ldapGetGroupInfo - csoport információk (backend)
+###########################################################
+
+ function ldapngGetGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+ global $backendAttrs, $backendAttrDef;
+
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Group', $toPolicy);
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+
+ $result = getLDAPInfo($groupDn, $backendAttrs, $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // Accountok lekérdezése
+ $info = getLDAPaccounts($toPolicy);
+ for ($i = 0; $i < $info['count']; $i++) {
+ $accountUid[] = array(
+ 'value' => $info[$i]['uid'][0],
+ 'txt' => $info[$i]['displayname'][0]
+ );
+ $accountDn[] = array(
+ 'value' => $info[$i]['dn'],
+ 'txt' => $info[$i]['displayname'][0]
+ );
+ }
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ foreach ($backendAttrDef as $attr => $def) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ if ($attr == 'dn') $return[$i]['dn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ elseif (isset($result[$i][$attr])) $return[$i][$attr] = $result[$i][$attr];
+ else $return[$i][$attr] = array('count' => 0);
+ }
+ $return[$i]['member']['new'] = $accountDn;
+ $return[$i]['memberuid']['new'] = $accountUid;
+ }
+
+ return $return[0];
+
+ }
+
+ }
+
+###############################################################
+# ldapChangeGroupInfo - csoport információk módosítása
+###############################################################
+
+ function ldapngChangeGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+// !!!! A memberuid / member szinkronjára nem figyel!!
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+ $_alert = array();
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_LDAP_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+
+ $mod_info = $add_info = $del_info = Array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] == 'image') {
+ $file = $_FILES[$attr]['tmp_name'];
+ if (file_exists($file)) {
+ $fd = fopen($file,'r');
+ $values[0]=fread($fd,filesize($file));
+ fclose($fd);
+ } else {
+ // Sose töröljük!
+ $emptyAttrs[] = $attr;
+ }
+ } elseif ($backendAttrDef[$attr]['type'] == 'timestamp') {
+ if ($_POST[$attr][0] != '' and $_POST[$attr][1] != '' and $_POST[$attr][2] != '') {
+ $values[0] = $_POST[$attr][0].$_POST[$attr][1].$_POST[$attr][2].'010101Z';
+ }
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '')
+ if (isset($_POST[$attr])) $values[0] = $_POST[$attr];
+ else $values[0] = '';
+ }
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if (isset($_POST['new-'.$attr][0]) && $_POST['new-'.$attr][0] != '') $add_info[$attr] = $_POST['new-'.$attr];
+ if (isset($_POST['del-'.$attr][0]) && $_POST['del-'.$attr][0] != '') $del_info[$attr] = $_POST['del-'.$attr];
+ } elseif (in_array($attr,$emptyAttrs)) {
+ if ($values[0] != '') $add_info[$attr] = $values;
+ } else {
+ if ($values[0] != '') {
+ $mod_info[$attr] = $values;
+ } else {
+ $del_info[$attr] = Array();
+ }
+
+ }
+
+ if (count($add_info)!=0) {
+ if (!@ldap_mod_add($ds,$groupDn,$add_info)) {
+ $_alert[] = 'message:insufficient_access:add:'.$attr;
+ }
+ }
+ if (count($mod_info)!=0) {
+ if (!@ldap_mod_replace($ds,$groupDn,$mod_info)) {
+ $_alert[] = 'message:insufficient_access:mod:'.$attr;
+ }
+ }
+ if (count($del_info)!=0) {
+ if (!@ldap_mod_del($ds,$groupDn,$del_info)) {
+ $_alert[] = 'message:insufficient_access:del:'.$attr;
+ }
+ }
+
+ } else {
+// $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ ldap_close($ds);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i=0;$i<count($_alert);$i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+ function getLDAPaccounts($toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $attrList = array('cn','uid','displayName','samaccountname');
+ $filter = '(&(objectclass=person)(!(objectclass=computer)))';
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $attrList);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ }
+
+ ldap_sort($ds, $sr, 'displayname');
+ $info = @ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/session/base.php b/mayor-orig/www/include/backend/ldapng/session/base.php
new file mode 100644
index 00000000..a4eff43d
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/session/base.php
@@ -0,0 +1,190 @@
+<?php
+/*
+ Module: base/session
+ Backend: ldapng
+
+ function LDAPuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY)
+ function ldapMemberOf($userAccount, $group, $toPolicy = _POLICY)
+
+*/
+
+ require('include/backend/ldapng/base/attrs.php');
+
+ ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, 3);
+ ldap_set_option(NULL, LDAP_OPT_REFERRALS, 0);
+
+ if ($AUTH[_POLICY]['backend'] == 'ldapng') {
+ /* why not put into session cache */
+ if ($AUTH[_POLICY]['cacheable']=='yes') {
+ $userDn = _queryCache('RDN',_POLICY,'value');
+ }
+ if (!isset($userDn)) $userDn = LDAPuserAccountToDn();
+ define('_USERDN', $userDn);
+ if ($AUTH[_POLICY]['cacheable']=='yes') _registerToCache('RDN',$userDn,_POLICY);
+ unset($userDn);
+ }
+
+######################################################
+# A _USERACCOUNT(uid)-hoz tartozó dn lekérdezése
+######################################################
+
+ function LDAPuserAccountToDn($userAccount = _USERACCOUNT, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e adott azonosítójú felhasználó?
+ $filter="(&(".$AUTH[$toPolicy]['ldapUserAccountAttr']."=$userAccount)(objectClass=".$AUTH[$toPolicy]['ldapUserObjectClass']."))";
+ $justthese=array($AUTH[$toPolicy]['ldapCnAttr']);
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen userAccount (uid)
+ $_SESSION['alert'][] = "message:no_account:$userAccount";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen uid is van
+ $_SESSION['alert'][] = "message:multi_uid:$userAccount";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen felhasználó
+ return $info[0]['dn'];
+ }
+
+ }
+
+
+######################################################
+# A groupCn(cn)-hez tartozó dn lekérdezése
+######################################################
+
+ function LDAPgroupCnToDn($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // Nézzük, hogy van-e át"map"-elt csoport!
+ if (isset($AUTH[$toPolicy]['categoryMap'][ekezettelen($groupCn)])) {
+ return $AUTH[$toPolicy]['categoryMap'][ekezettelen($groupCn)];
+ }
+
+ // Kapcsolódás a szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ return false;
+ }
+
+ // Van-e ilyen csoport?
+ $filter="(&(".$AUTH[$toPolicy]['ldapGroupCnAttr']."=$groupCn)(objectClass=".$AUTH[$toPolicy]['ldapGroupObjectClass']."))";
+ $justthese=array($AUTH[$toPolicy]['ldapGroupCnAttr']);
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure";
+ ldap_close($ds);
+ return false;
+ }
+ $info=ldap_get_entries($ds,$sr);
+ ldap_close($ds);
+
+ if ( $info['count'] === 0 ) {
+ // Nincs ilyen groupCn (cn) - hibaüzenet csak akkor, ha nem kategóriáról van szó...
+ if (!in_array($groupCn, array_map('ekezettelen', $AUTH[$toPolicy]['categories']))) $_SESSION['alert'][] = "message:no_group:$groupCn";
+ return false;
+ } elseif ( $info['count'] > 1 ) {
+ // Több ilyen cn is van
+ $_SESSION['alert'][] = "message:multi_gid:$groupCn";
+ return false;
+ }
+
+ if ($info['count']==1) { // Van - egy - ilyen csoport
+ return $info[0]['dn'];
+ }
+
+ }
+
+######################################################
+# memberOf - csoport tag-e
+######################################################
+
+ function ldapngMemberOf($userAccount, $group, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ /* Kis hack: csoport-tagság helyett vizsgáljuk előbb a megfelelő szervezeti egységet... de ezt nem biztos, hogy érdemes... */
+ if (in_array($group, $AUTH[$toPolicy]['categories'])) {
+ if (strpos($userDn, ',ou='.ekezettelen($group).',') !== false) return true;
+ }
+
+ if (substr($group,0,3) != 'cn=') {
+ $groupDn = LDAPgroupCnToDn(ekezettelen($group));
+ if (!$groupDn) return false; // Ha nincs ilyen csoport az LDAP fában
+ } else {
+ $groupDn = $group;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds,$AUTH[$toPolicy]['ldapUser'],$AUTH[$toPolicy]['ldapPw']);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $justthese = array('cn'); // valamit le kell kérdezni...
+ // OpenLDAP a tagok azonosítóját tárolja el (memberUid), más rendszerek a dn-t (member)
+ $filter = "(&(objectClass=".$AUTH[$toPolicy]['ldapGroupObjectClass'].")(|(member=$userDn)(memberUid=$userAccount)))";
+ $sr = @ldap_search($ds, $groupDn, $filter, $justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:group=$group; filter=".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = ldap_get_entries($ds, $sr);
+ ldap_close($ds);
+
+ if ($info['count'] > 0) {
+ return true;
+ } else {
+ return false;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/session/createAccount.php b/mayor-orig/www/include/backend/ldapng/session/createAccount.php
new file mode 100644
index 00000000..96a5b557
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/session/createAccount.php
@@ -0,0 +1,157 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+ require_once('include/backend/ldapng/password/changePassword.php');
+
+ /*
+ $SET = array(
+ container => a konténer elem - ha nincs, akkor CN=Users alá rakja
+ category => tanár, diák... egy kiemelt fontosságú csoport tagság
+ groups => egyéb csoportok
+ policyAttrs => policy függő attribútumok
+ )
+ */
+ function ldapngCreateAccount(
+ $userCn, $userAccount, $userPassword, $toPolicy, $SET
+ ) {
+
+ global $AUTH;
+
+ $shadowLastChange = floor(time() / (60*60*24));
+
+ // $toPolicy --> ldap backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ldapng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $ginfo = Array();
+
+ // uid ütközés ellenőrzése
+ $filter = "(sAMAccountName=$userAccount)";
+ $justthese = array('sAMAccountName');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ $uinfo = ldap_get_entries($ds, $sr);
+ $uidCount = $uinfo['count'];
+ ldap_free_result($sr);
+ if ($uidCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$userAccount;
+ return false;
+ }
+
+ // Az következő uidNumber megállapítása
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapUserObjectClass'].")(uidNumber=*))";
+ $justthese = array('uidNumber', 'msSFU30UidNumber');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ ldap_sort($ds, $sr, 'uidNumber');
+ $uinfo = ldap_get_entries($ds, $sr);
+ ldap_free_result($sr);
+ if (isset($uinfo['count']) && $uinfo['count'] > 0) $info['uidNumber'] = array($uinfo[ $uinfo['count']-1 ]['uidnumber'][0]+1);
+ else $info['uidNumber'] = array(1001);
+
+ // shadow attributumok...
+ // A shadowLastChange a mai nap // if (isset($AUTH[$toPolicy]['shadowlastchange']) && $AUTH[$toPolicy]['shadowlastchange'] != '')
+ $info['shadowLastChange'] = array($shadowLastChange);
+ if (isset($AUTH[$toPolicy]['shadowMin']) && $AUTH[$toPolicy]['shadowMin'] != '') $info['shadowMin'] = array($AUTH[$toPolicy]['shadowMin']);
+ if (isset($AUTH[$toPolicy]['shadowMax']) && $AUTH[$toPolicy]['shadowMax'] != '') $info['shadowMax'] = array($AUTH[$toPolicy]['shadowMax']);
+ if (isset($AUTH[$toPolicy]['shadowWarning']) && $AUTH[$toPolicy]['shadowWarning'] != '') $info['shadowWarning'] = array($AUTH[$toPolicy]['shadowWarning']);
+ if (isset($AUTH[$toPolicy]['shadowInactive']) && $AUTH[$toPolicy]['shadowInactive'] != '') $info['shadowInactive'] = array($AUTH[$toPolicy]['shadowInactive']);
+ if (isset($AUTH[$toPolicy]['shadowExpire']) && $AUTH[$toPolicy]['shadowWxpire'] != '') $info['shadowExpire'] = array($AUTH[$toPolicy]['shadowExpire']);
+
+ // A szokásos attribútumok
+ $Name = explode(' ',$userCn);
+ $Dn = ldap_explode_dn($AUTH[$toPolicy]['ldapBaseDn'], 1); unset($Dn['count']);
+ $info['userPrincipalName'] = array( $userAccount.'@'.implode('.', $Dn));
+ $info['msSFU30Name'] = $info['sAMAccountName'] = $info['cn'] = array($userAccount);
+ $info['displayName'] = array($userCn);
+ $info['sn'] = array($Name[0]);
+ $info['givenName'] = array($Name[ count($Name)-1 ]);
+ $info['unixUserPassword'] = array('ABCD!efgh12345$67890');
+ $info['unixHomeDirectory'] = array(ekezettelen("/home/$userAccount"));
+ $info['loginShell'] = array('/bin/bash');
+ $info['objectClass'] = array($AUTH[$toPolicy]['ldapUserObjectClass'], 'user');
+
+ $policyAccountAttrs = $SET['policyAttrs'];
+ if (isset($policyAccountAttrs['studyId'])) $info[ $AUTH[$toPolicy]['ldapStudyIdAttr'] ] = array($policyAccountAttrs['studyId']);
+ foreach ($policyAccountAttrs as $attr => $value)
+ if ($attr != 'studyId' && isset($accountAttrToLDAP[$attr]))
+ $info[ $accountAttrToLDAP[$attr] ] = array($value);
+
+ if (isset($SET['container'])) $dn = "CN=$userAccount,".$SET['container'];
+ else $dn = "CN=$userAccount,CN=Users,".$AUTH[$toPolicy]['ldapBaseDn'];
+
+ // user felvétel
+ $_r1 = @ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ $_SESSION['alert'][] = 'message:ldap_error:Add user:'.ldap_error($ds);
+ //echo $dn.'<pre>'; var_dump($info); echo '</pre>';
+ return false;
+ }
+
+ // Jelszó beállítás
+ if (!changePassword($userAccount, $userPassword, $toPolicy)) $_SESSION['alert'][] = 'message:ldap_error:changePassword failed:'.$userAccount;
+
+ // Engedélyezés
+ $einfo = array('userAccountControl' => array(512)); /* Normal account = 512 */
+ $_r1 = @ldap_mod_replace($ds,$dn,$einfo);
+ if (!$_r1) {
+ $_SESSION['alert'][] = 'message:ldap_error:Enable user:'.ldap_error($ds);
+ //echo $dn.'<pre>'; var_dump($info); echo '</pre>';
+ return false;
+ }
+
+ // Kategória csoportba és egyéb csoportokba rakás
+ if (isset($SET['category'])) {
+ if (is_array($SET['groups'])) array_unshift($SET['groups'], $SET['category']);
+ else $SET['groups'] = array($SET['category']);
+
+ $ginfo['member'] = $dn;
+
+ for ($i = 0; $i < count($SET['groups']); $i++) {
+ $groupDn = LDAPgroupCnToDn($SET['groups'][$i], $toPolicy);
+ if ($groupDn !== false) {
+ $_r3 = @ldap_mod_add($ds, $groupDn, $ginfo);
+ if (!$_r3) {
+ $_SESSION['alert'][] = 'message:ldap_error:Add to group '.$SET['groups'][$i].':'.ldap_error($ds);
+ //echo $SET['groups'][$i].'<pre>'; var_dump($ginfo); echo '</pre>';
+ }
+ }
+ }
+ }
+
+ ldap_close($ds);
+
+ if (defined('_DATADIR')
+ && isset($AUTH[$toPolicy]['createAccountScript'])
+ && file_exists(_DATADIR)
+ ) {
+ $sfp = fopen(_DATADIR.'/'.$AUTH[$toPolicy]['createAccountScript'],'a+');
+ if ($sfp) {
+ fwrite($sfp,"\n# $userAccount létrehozása: userAccount uidNumber homeDirectory\n");
+ fwrite($sfp,"createAccount.sh '$userAccount' '".$info['uidNumber'][0]."' '".$info['unixHomeDirectory'][0]."'\n");
+ fclose($sfp);
+ }
+ }
+ $_SESSION['alert'][] = 'info:create_uid_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/session/createGroup.php b/mayor-orig/www/include/backend/ldapng/session/createGroup.php
new file mode 100644
index 00000000..78def54d
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/session/createGroup.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+
+ function ldapngCreateGroup($groupCn, $groupDesc, $toPolicy = _POLICY, $SET = array()) {
+
+ global $AUTH;
+ $category = ekezettelen($SET['category']);
+
+ // $toPolicy --> ldap backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'ldapng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = $ginfo = Array();
+
+ // cn ütközés ellenőrzése
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapGroupObjectClass'].")(cn=$groupCn))";
+ $justthese = array('cn');
+ $sr = ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ $ginfo = ldap_get_entries($ds, $sr);
+ $gCount = $ginfo['count'];
+ ldap_free_result($sr);
+ if ($gCount > 0) {
+ $_SESSION['alert'][] = 'message:multi_uid:'.$groupCn;
+ return false;
+ }
+
+ // Az következő gidNumber megállapítása
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapGroupObjectClass'].")(gidNumber=*))";
+ $justthese = array('gidNumber', 'msSFU30GidNumber');
+ $sr = ldap_search($ds,$AUTH[$toPolicy]['ldapBaseDn'], $filter, $justthese);
+ ldap_sort($ds, $sr, 'gidNumber');
+ $ginfo = ldap_get_entries($ds, $sr);
+ ldap_free_result($sr);
+ if (isset($ginfo['count']) && $ginfo['count'] > 0) $info['gidNumber'] = array($ginfo[ $ginfo['count']-1 ]['gidnumber'][0]+1);
+ else $info['gidNumber'] = array(1001);
+
+ // A szokásos attribútumok
+ $info['sAMAccountName'] = $info['cn'] = array($groupCn);
+ $info['description'] = array($groupDesc);
+
+ // A kategória függő attribútumok
+ if (isset($SET['container'])) $dn = "CN=$groupCn,".$SET['container'];
+ else $dn = "CN=$groupCn,OU=$category,".$AUTH[$toPolicy]['ldapBaseDn'];
+
+ // objectum osztályok
+ $info['objectClass'] = array($AUTH[$toPolicy]['ldapGroupObjectClass']);
+
+ // csoport felvétel
+ $_r1 = ldap_add($ds,$dn,$info);
+ if (!$_r1) {
+ printf("LDAP-Error: %s<br>\n", ldap_error($ds));
+ var_dump($info);
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:create_group_success:'.$dn;
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/ldapng/session/search/searchAccount.php b/mayor-orig/www/include/backend/ldapng/session/search/searchAccount.php
new file mode 100644
index 00000000..74d285e6
--- /dev/null
+++ b/mayor-orig/www/include/backend/ldapng/session/search/searchAccount.php
@@ -0,0 +1,271 @@
+<?php
+/*
+ Module: base/session
+ Backend: ldapng
+
+ ! -- Csak publikus mezőkre lehet keresni! -- !
+ function LDAPSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)')
+ function ldapSearchAccount($attr, $pattern, $searchAttrs = array('userCn'))
+ function ldapSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = '') {
+
+*/
+
+######################################################
+# Általános LDAP kereső függvény
+######################################################
+
+ function LDAPSearch($attr, $pattern, $searchAttrs=array('cn'), $filter='(objectclass=*)', $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($pattern == '') {
+ $_SESSION['alert'][] = 'message:empty_field';
+ return false;
+ }
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure:LDAPSearch';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Keresés
+ $filter = "(&$filter($attr=*$pattern*))";
+ $sr = @ldap_search($ds, $AUTH[$toPolicy]['ldapBaseDn'], $filter, $searchAttrs);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$filter;
+ ldap_close($ds);
+ return false;
+ }
+
+ $info = @ldap_get_entries($ds,$sr);
+
+ ldap_close($ds);
+
+ return $info;
+
+ }
+
+######################################################
+# ldapSearchAccount - felhasználó kereső függvény
+######################################################
+
+ function ldapngSearchAccount($attr, $pattern, $searchAttrs = array('userCn'), $toPolicy = _POLICY) {
+
+ global $accountAttrToLDAP, $AUTH;
+
+ // A keresendő attribútum konvertálása LDAP attribútummá
+ if ($accountAttrToLDAP[ $attr ] != '') $attrLDAP = $accountAttrToLDAP[ $attr ];
+ else $attrLDAP = $attr;
+ if ($attrLDAP == 'dn') $attrLDAP = 'uid'; // dn-re nem megy a keresés!!
+
+ // A lekérendő attribútumok konvertálása LDAP attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($accountAttrToLDAP[ $searchAttrs[$i] ] != '') $searchAttrsLDAP[$i] = $accountAttrToLDAP[ $searchAttrs[$i] ];
+ else $searchAttrsLDAP[$i] = $searchAttrs[$i];
+ }
+ $result = LDAPSearch($attrLDAP, $pattern, $searchAttrsLDAP, '(objectclass='.$AUTH[$toPolicy]['ldapUserObjectClass'].')', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['userAccount'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (isset($result[$i][ kisbetus($accountAttrToLDAP[$a]) ])) {
+ if ($accountAttrToLDAP[$a] != '') $return[$i][$a] = $result[$i][ kisbetus($accountAttrToLDAP[$a]) ];
+ else $return[$i][$a] = $result[$i][$a];
+ } else {
+ $return[$i][$a] = array('count' => 0) ;
+ }
+ }
+ $return[$i]['category'] = getAccountCategories($return[$i]['userAccount'][0], $toPolicy);
+ $return[$i]['category']['count'] = count($return[$i]['category']);
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# ldapSearchGroup - csoport kereső függvény
+######################################################
+
+ function ldapngSearchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = _POLICY) {
+
+ global $groupAttrToLDAP, $AUTH;
+
+ // A keresendő attribútum konvertálása LDAP attribútummá
+ if ($groupAttrToLDAP[ $attr ] != '') $attrLDAP = $groupAttrToLDAP[ $attr ];
+ else $attrLDAP = $attr;
+ if ($attrLDAP == 'dn') $attrLDAP = 'cn'; // dn-re nem megy a keresés!!
+
+ // A lekérendő adtibútumok konvertálása LDAP attribútummá
+ for ($i = 0; $i < count($searchAttrs); $i++) {
+ if ($groupAttrToLDAP[ $searchAttrs[$i] ] != '') $searchAttrsLDAP[$i] = $groupAttrToLDAP[ $searchAttrs[$i] ];
+ else $searchAttrsLDAP[$i] = $searchAttrs[$i];
+ }
+
+ $result = LDAPSearch($attrLDAP, $pattern, $searchAttrsLDAP, '(objectclass='.$AUTH[$toPolicy]['ldapGroupObjectClass'].')', $toPolicy);
+ if ($result === false) {
+ return false;
+ } else {
+
+ // LDAP schema --> mayor schema konverzió
+ for ($i = 0; $i < $result['count']; $i++) {
+ // Egységes szerkezetre alakítjuk, azaz a dn is indexelt
+ $result[$i]['dn'] = $return[$i]['groupCn'] = array('count' => 1, 0 => $result[$i]['dn']);
+ for ($j = 0; $j < count($searchAttrs); $j++) {
+ $a = $searchAttrs[$j];
+ if (!isset($groupAttrToLDAP[$a]) || $groupAttrToLDAP[$a] != '') {
+ if (isset($result[$i][ $groupAttrToLDAP[$a] ])) $return[$i][$a] = $result[$i][ $groupAttrToLDAP[$a] ];
+ else $return[$i][$a] = '';
+ } else {
+ $return[$i][$a] = $result[$i][$a];
+ }
+ }
+ }
+ $return['count'] = $result['count'];
+
+ return $return;
+
+ }
+
+ }
+
+######################################################
+# ldapDeleteAccount - account törlése
+######################################################
+
+ function ldapngDeleteAccount($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> ldapng backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ldapng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:ldapng!='.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ $userDn = LDAPuserAccountToDn($userAccount, $toPolicy);
+ if ($userDn === false) return false;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ // Az uidNumber, a unixHomeDirectory lekerdezése
+ $filter = "(&(objectclass=".$AUTH[$toPolicy]['ldapUserObjectClass'].")(!(objectclass=computer)))";
+ $justthese = array('uidNumber','unixHomedirectory');
+ $sr = @ldap_search($ds,$userDn,$filter,$justthese);
+ if (!$sr) {
+ $_SESSION['alert'][] = "message:ldap_search_failure:".$userDn;
+ ldap_close($ds);
+ return false;
+ } ;
+
+ $info = @ldap_get_entries($ds,$sr);
+ $uidNumber = $info[0]['uidnumber'][0];
+ $homeDirectory = $info[0]['unixhomedirectory'][0];
+ $uid=$userAccount;
+
+ // user törlése
+ if (!@ldap_delete($ds,$userDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:user:'.$userAccount;
+ }
+
+ ldap_close($ds);
+
+ /*
+ Ha van megadva deleteAccountScript paraméter, akkor abba bejegyzi a törölt felhasználó adatait.
+ A meghívott deleteAccount.sh nincs definiálva, testreszabható, megkötés egyedül a paraméter
+ lista: userAccount, uidNumber, homeDirectory
+ */
+ if (defined('_DATADIR')
+ && isset($AUTH[$toPolicy]['deleteAccountScript'])
+ && file_exists(_DATADIR)
+ ) {
+ $sfp = fopen(_DATADIR.'/'.$AUTH[$toPolicy]['deleteAccountScript'],'a+');
+ if ($sfp) {
+ fwrite($sfp,"\n# $userAccount törlése: userAccount uidNumber homeDirectory\n");
+ fwrite($sfp,"deleteAccount.sh '$userAccount' '$uidNumber' '$homeDirectory'\n");
+ fclose($sfp);
+ }
+ }
+
+ $_SESSION['alert'][] = 'info:delete_uid_success:'.$userDn;
+ return true;
+
+ }
+
+######################################################
+# ldapDeleteGroup - account törlése
+######################################################
+
+ function ldapngDeleteGroup($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> ldapng backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'ldapng') {
+ $_SESSION['alert'][] = 'page:wrong_backend:ldapng!='.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ $groupDn = LDAPgroupCnToDn($groupCn, $toPolicy);
+ if ($groupDn === false) return false;
+
+ // Kapcsolódás az LDAP szerverhez
+ $ds = @ldap_connect($AUTH[$toPolicy]['ldapHostname']);
+ if (!$ds) {
+ $_SESSION['alert'][] = 'alert:ldap_connect_failure';
+ return false;
+ }
+
+ // Csatlakozás a szerverhez
+ $r = @ldap_bind($ds, _USERDN, _USERPASSWORD);
+ if (!$r) {
+ $_SESSION['alert'][] = 'message:ldap_bind_failure';
+ ldap_close($ds);
+ return false;
+ }
+
+ if (!@ldap_delete($ds, $groupDn)) {
+ $_SESSION['alert'][] = 'message:ldap_delete_failure:group:'.$groupCn;
+ }
+
+ ldap_close($ds);
+
+ $_SESSION['alert'][] = 'info:delete_group_success:'.$groupCn;
+ return true;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/auth/login.php b/mayor-orig/www/include/backend/mysql/auth/login.php
new file mode 100644
index 00000000..caa7929d
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/auth/login.php
@@ -0,0 +1,144 @@
+<?php
+/*
+ Auth-MySQL
+
+ A név-jelszó pár ellenőrzése MySQL adattábla alapján
+ */
+
+/* --------------------------------------------------------------
+
+Az adattábla szerkezete:
+
+create table userAccounts (
+userId int unsigned primary key auto_increment not null,
+userAccount varchar(32),
+policy varchar(10),
+userPassword varchar(32),
+userCn varchar(64)
+);
+
+A függvény az előre definiált _AUTH_SUCCESS, _AUTH_EXPIRED, _AUTH_FAILURE
+konstansok valamelyikével tér vissza.
+
+Sikeres hitelesítés esetén
+az egyéb account információkat (minimálisan a 'cn', azaz 'teljes név
+attribútumot) a cím szerint átadott $accountInformation tömbbe helyezi el.
+
+Sikertelen azonosítás esetén a globális $_SESSION['alert'] változóban jelzi az
+elutasítás okát.
+
+Shadow attribútumok:
+
+Login name
+Encrypted password
+shadowLastChanged
+1970. január 1-étől az utolsó jelszó módosításig eltelt napok száma
+Days since Jan 1, 1970 that password was last changed
+shadowMin
+Jelszóváltoztatás után ennyi napig nem lehet ismét jelszót változtatni
+Days before password may be changed
+shadowMax
+Jelszóváltoztatás után ennyi nappal már kötelező a jelszóváltoztatás
+Days after which password must be changed
+shadowWarning
+A jelszó érvényességének lejártát ennyi nappal előbb jelezi a rendsze
+Days before password is to expire that user is warned
+shadowInactive
+A jelszó érvényességének lejárta után ennyi nappal az felhasználói fiók letiltásra kerül
+Days after password expires that account is disabled
+shadowExpire
+Az előzőektől függetlenül a felhasználói fiók letiltásra kerül 1970. január 1-étől számított ennyiedik napo
+Days since Jan 1, 1970 that account is disabled
+
+-------------------------------------------------------------- */
+
+function mysqlUserAuthentication($userAccount, $userPassword, &$accountInformation, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'userAuthentication/sql'));
+ if (!$lr) return _AUTH_FAILURE;
+
+ // Van-e ilyen azonosító
+ $q = "SELECT COUNT(*) FROM accounts WHERE userAccount='%s' AND policy='%s'";
+ $num = db_query($q, array('fv' => 'userAuthentication', 'modul' => $modul, 'result' => 'value', 'values' => array($userAccount, $toPolicy)), $lr);
+ if ($num == 0) {
+ // Nincs ilyen azonosító
+ $_SESSION['alert'][] = 'message:no_account:'."$userAccount:$toPolicy";
+ db_close($lr);
+ return _AUTH_FAILURE_1;
+ } elseif ($num > 1) {
+ // Több ilyen azonosító is va
+ $_SESSION['alert'][] = 'message:multy_uid';
+ db_close($lr);
+ return _AUTH_FAILURE_2;
+ }
+
+ // Ha csak egy van, akkor jó-e a jelszava
+ $q = "SELECT userCn, studyId, shadowLastChange, shadowMin, shadowMax, shadowWarning, shadowInactive, shadowExpire
+ FROM accounts WHERE userAccount='%s' AND userPassword=sha('%s') AND policy='%s'";
+ $ret = db_query($q, array('fv' => 'userAuthentication', 'modul' => 'login', 'result' => 'record', 'values' => array($userAccount, $userPassword, $toPolicy)), $lr);
+ db_close($lr);
+ if (!is_array($ret) || count($ret) == 0) {
+ // Nincs ilyen rekord => rossz a jelszó
+ $_SESSION['alert'][] = 'message:bad_pw';
+ return _AUTH_FAILURE_3;
+ } else {
+ // Ha van, akkor csak egy ilyen sor lehet
+ $accountInformation['cn'] = $ret['userCn'];
+ $accountInformation['studyId'] = $ret['studyId'];
+ $shadowLastChange = $ret['shadowLastChange'];
+ $shadowMin = $ret['shadowMin'];
+ $shadowMax = $ret['shadowMax'];
+ $shadowWarning = $ret['shadowWarning'];
+ $shadowInactive = $ret['shadowInactive'];
+ $shadowExpire = $ret['shadowExpire'];
+
+ // A lejárat ideje a shadowExpire és shadowLastChange+shadowMax kötül a kisebbik
+ if (intval($shadowExpire) != 0) $expireTimestamp = $shadowExpire;
+ if (
+ intval($shadowMax) != 0 &&
+ (
+ !isset($expireTimestamp) ||
+ $expireTimestamp > $shadowLastChange + $shadowMax
+ )
+ ) $expireTimestamp = $shadowLastChange + $shadowMax;
+ // lejárt, ha lejárat ideje már elmúlt
+ $accountExpired = (isset($expireTimestamp) && ($expireTimestamp <= floor(time()/(60*60*24))));
+
+ // Le van-e tiltva
+ if ( // onDisabled: none | refuse
+ $AUTH[$toPolicy]['onDisabled'] == 'refuse' &&
+ isset($expireTimestamp) &&
+ $expireTimestamp + $shadowInactive <= floor(time()/(60*60*24))
+ ) {
+ // Le van tiltva
+ $_SESSION['alert'][] = 'message:account_disabled:'.strval(floor(time()/(60*60*24)));
+ return _AUTH_FAILURE_4;
+ } // onDisabled
+
+ // Lejárt-e az azonosító
+ if ($AUTH[$toPolicy]['onExpired'] != 'none' && isset($expireTimestamp)) { // onExpired: none | warning | force update
+ // Lejárt-e
+ $pwLejar = $expireTimestamp - floor(time()/(60*60*24));
+ if (0 < $pwLejar && $pwLejar < $shadowWarning) {
+ $_SESSION['alert'][] = 'info:account_warning:'.$pwLejar;
+ return _AUTH_SUCCESS;
+ } elseif ($pwLejar <= 0) {
+ $_SESSION['alert'][] = 'info:account_expired:'.abs($pwLejar);
+ if ($AUTH[$toPolicy]['onDisabled'] == 'refuse')
+ $_SESSION['alert'][] = 'info:warn_account_disable:'.($shadowInactive+$pwLejar);
+ if ($AUTH[$toPolicy]['onExpired'] == 'warning') {
+ return _AUTH_SUCCESS;
+ } elseif ($AUTH[$toPolicy]['onExpired'] == 'force update') {
+ return _AUTH_EXPIRED;
+ }
+ }
+ } // onExpired
+ return _AUTH_SUCCESS;
+
+ }
+}
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/base/attrs.php b/mayor-orig/www/include/backend/mysql/base/attrs.php
new file mode 100644
index 00000000..b945d764
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/base/attrs.php
@@ -0,0 +1,48 @@
+<?php
+
+ if (file_exists('lang/'._LANG.'/backend/mysql/attrs.php')) {
+ require('lang/'._LANG.'/backend/mysql/attrs.php');
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/backend/mysql/attrs.php')) {
+ require('lang/'._DEFAULT_LANG.'/backend/mysql/attrs.php');
+ }
+
+######################################################
+# Alapértelmezett jogosultságok
+#
+# w - Írható/olvasható
+# r - olvasható
+# - - egyik sem
+#
+# Három karakter: admin, self, other jogai
+######################################################
+
+ define('_DEFAULT_MYSQL_RIGHTS','wr-');
+
+ global $mysqlAccountAttrDef;
+ $mysqlAccountAttrDef = array(
+ 'uid' => array('desc' => _MYSQLUID, 'type' => 'text', 'rights' => 'rrr'),
+ 'policy' => array('desc' => _MYSQLPOLICY, 'type' => 'text', 'rights' => 'r--'),
+ 'useraccount' => array('desc' => _MYSQLUIDNUMBER, 'type' => 'text','rights' => 'r--'),
+ 'userCn' => array('desc' => _MYSQLCN, 'type' => 'text', 'rights' => 'wrr'),
+ 'studyId' => array('desc' => _MYSQLSTUDYID, 'type' => 'int', 'rights' => 'wrr'),
+ 'mail' => array('desc' => _MYSQLMAIL, 'type' => 'text', 'rights' => 'wwr'),
+ 'telephoneNumber' => array('desc' => _MYSQLTELEPHONENUMBER, 'type' => 'text', 'rights' => 'ww-'),
+// 'userPassword' => array('desc' => _MYSQLUSERPASSWORD, 'type' => 'text', 'rights' => 'r--'),
+ 'shadowLastChange' => array('desc' => _MYSQLSHADOWLASTCHANGE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowExpire' => array('desc' => _MYSQLSHADOWEXPIRE, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowWarning' => array('desc' => _MYSQLSHADOWWARNING, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowMin' => array('desc' => _MYSQLSHADOWMIN, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowMax' => array('desc' => _MYSQLSHADOWMAX, 'type' => 'text', 'rights' => 'wrr'),
+ 'shadowInactive' => array('desc' => _MYSQLSHADOWINACTICE, 'type' => 'text', 'rights' => 'wrr'),
+ );
+
+ global $mysqlGroupAttrDef;
+ $mysqlGroupAttrDef = array(
+ 'gid' => array('desc' => _MYSQLGID, 'type' => 'text', 'rights' => 'rrr'),
+ 'groupDesc' => array('desc' => _MYSQLGROUPDESC, 'type' => 'text', 'rights' => 'wrr'),
+ 'policy' => array('desc' => _MYSQLPOLICY, 'type' => 'int', 'rights' => 'r--'),
+ 'member' => array('desc' => _MYSQLMEMBER, 'type' => 'select', 'rights' => 'w--'),
+ );
+
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/password/changePassword.php b/mayor-orig/www/include/backend/mysql/password/changePassword.php
new file mode 100644
index 00000000..2875bace
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/password/changePassword.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ Module: base/password
+
+ function changeMyPassword($userAccount, $userPassword, $newPassword, $verification)
+ A függvény nem vizsgálja, hogy jogosultak vagyunk-e a jelszó megváltoztatására.
+ Ennek eldöntése a függvényt hívó program feladata
+ */
+
+############################################################################
+# Saját jelszó megváltoztatása
+############################################################################
+
+function changeMyPassword($userAccount, $userPassword, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = $_REQUEST['toPolicy'];
+ $shadowLastChange = floor(time()/(60*60*24));
+
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'changeMyPassword'));
+
+ if (!$lr) return false;
+
+ // Stimmel-e az azonosító/jelszó/policy hármas
+ $q = "SELECT COUNT(*) FROM accounts WHERE userAccount='%s' AND userPassword=sha('%s') AND policy='%s'";
+ $num = db_query($q, array('fv' => 'changeMyPassword', 'modul' => $modul, 'result' => 'value', 'values' => array($userAccount, $userPassword, $toPolicy)), $lr);
+ if ($num != 1) {
+ $_SESSION['alert'][] = 'message:bad_pw:changeMyPassword';
+ db_close($lr);
+ return false;
+ }
+
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $shadowExpire = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $shadowExpire = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $q = "UPDATE accounts SET userPassword=sha('%s'), shadowLastChange=%u, shadowExpire=%u
+ WHERE userAccount='%s' and policy='%s'";
+ $v = array($newPassword, $shadowLastChange, $shadowExpire, $userAccount, $toPolicy);
+ $r = db_query($q, array('fv' => 'changeMyPassword', 'modul' => $modul, 'values' => $v), $lr);
+ db_close($lr);
+ if ($r) $_SESSION['alert'][] = 'info:pw_change_success';
+ return $r;
+
+}
+
+############################################################################
+# Adminisztrátori jelszó változtatás
+############################################################################
+
+function changePassword($userAccount, $newPassword, $toPolicy = '') {
+
+ global $AUTH;
+
+ if ($toPolicy == '') $toPolicy = _POLICY;
+ $shadowLastChange = floor(time()/(60*60*24));
+ if (isset($AUTH[$toPolicy]['shadowExpire']) and $AUTH[$toPolicy]['shadowExpire'] != '') {
+ $shadowExpire = $AUTH[$toPolicy]['shadowExpire'];
+ } elseif (isset($AUTH[$toPolicy]['shadowMax']) and $AUTH[$toPolicy]['shadowMax'] != '') {
+ $shadowExpire = $shadowLastChange + intval($AUTH[$toPolicy]['shadowMax']);
+ }
+ $shadowExpire = intval($shadowExpire);
+ $q = "UPDATE accounts SET userPassword=sha('%s'), shadowLastChange=%u, shadowExpire=%u
+ WHERE userAccount='%s' and policy='%s'";
+ $v = array($newPassword, $shadowLastChange, $shadowExpire, $userAccount, $toPolicy);
+ $r = db_query($q, array('fv' => 'changePassword', 'modul' => "$toPolicy auth", 'values' => $v));
+ if ($r) $_SESSION['alert'][] = 'info:pw_change_success';
+ return $r;
+
+}
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/session/accountInfo.php b/mayor-orig/www/include/backend/mysql/session/accountInfo.php
new file mode 100644
index 00000000..113e380b
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/session/accountInfo.php
@@ -0,0 +1,258 @@
+<?php
+/*
+ Module: base/auth-mysql
+ Backend: mysql
+
+ function mysqlGetAccountInfo($userAccount, $toPolicy = _POLICY)
+ function mysqlGetUserInfo($userAccount, $toPolicy = _POLICY)
+ function mysqlChangeAccountInfo($userAccount, $toPolicy = _POLICY)
+ function mysqlGetGroupInfo($groupCn, $toPolicy = _POLICY)
+
+*/
+
+###########################################################
+# mysqlGetAccountInfo - felhasználói információk (backend)
+###########################################################
+
+ function mysqlGetAccountInfo($userAccount, $toPolicy = _POLICY, $SET = array()) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ // Keresés
+ if (is_array($SET['justThese']) && count($SET['justThese']) > 0) {
+ $_THESE = '`'.implode('`,`', array_fill(0, count($SET['justThese']), '%s')).'`';
+ $v = $SET['justThese'];
+ } else {
+ $_THESE = '*';
+ $v = array();
+ }
+ $q = "SELECT $_THESE FROM accounts WHERE userAccount='%s' AND policy='%s'";
+ array_push($v, $userAccount, $toPolicy);
+ $A = db_query($q, array('fv' => 'mysqlGetAccountInfo', 'modul' => "$toPolicy auth", 'result' => 'record', 'values' => $v), $lr);
+ if (!is_array($A) || count($A) == 0) return false;
+
+ $data = array();
+ foreach ($A as $attr => $value) $data[$attr][] = $value;
+ foreach ($data as $attr => $array) $data[$attr]['count'] = count($array);
+
+ return $data;
+
+ }
+
+#############################################################
+# mysqlGetUserInfo - felhasználói információk (keretrendszer)
+#############################################################
+
+ function mysqlGetUserInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Account', $toPolicy);
+
+ // Keresés
+ $q = "SELECT userAccount,userCn FROM accounts WHERE userAccount='%s' AND policy='%s'";
+ $A = db_query($q, array('fv' => 'mysqlGetUserInfo', 'modul' => "$toPolicy auth", 'result' => 'record', 'values' => array($userAccount, $toPolicy)));
+ if (!is_array($A) || count($A) == 0) return false;
+ $ret = array();
+ foreach ($A as $attr => $value) $ret[$attr][] = $value;
+ return $ret;
+
+ }
+
+###############################################################
+# mysqlChangeAccountInfo - felhasználói információk módosítása
+###############################################################
+
+ function mysqlChangeAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ // Kapcsolódás az MySQL szerverhez
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'mysqlChangeAccountInfo'));
+ if (!$lr) return false;
+
+ $emptyAttrs = explode(':',$_POST['emptyAttrs']);
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_MYSQL_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+
+ $value = '';
+
+ if ($backendAttrDef[$attr]['type'] == 'int') {
+ if ($backendAttrDef[$attr]['type'] != '' ) $value = readVariable($_POST[$attr], 'number');
+ } else {
+ if ($backendAttrDef[$attr]['type'] != '' ) $value = readVariable($_POST[$attr], 'string'); // html túl erős: pl email címben a @ fent akad...
+ }
+
+ if (in_array($attr,$emptyAttrs)) {
+ if ($value != '') {
+ $q = "UPDATE accounts SET `%s`='%s' WHERE userAccount='%s' AND policy='%s'";
+ $v = array($attr, $value, $userAccount, $toPolicy);
+ }
+ } else {
+ if ($value != '') {
+ $q = "UPDATE accounts SET `%s`='%s' WHERE userAccount='%s' AND policy='%s'";
+ $v = array($attr, $value, $userAccount, $toPolicy);
+ } else {
+ $q = "UPDATE accounts SET `%s`=NULL WHERE userAccount='%s' AND policy='%s'";
+ $v = array($attr, $userAccount, $toPolicy);
+ }
+ }
+ db_query($q, array('fv' => 'mysqlChangeAccountInfo', 'modul' => $modul, 'values' => $v), $lr);
+
+ } else {
+ // $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ db_close($lr);
+ if (count($_alert) == 0) $_SESSION['alert'][] = 'info:change_success';
+ else for ($i = 0; $i < count($_alert); $i++) $_SESSION['alert'][] = $_alert[$i];
+
+ }
+
+###########################################################
+# mysqlGetGroupInfo - csoport információk (backend)
+###########################################################
+
+ function mysqlGetGroupInfo($groupCn, $toPolicy = _POLICY, $SET = array()) {
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ if (!isset($backendAttrs)) list($backendAttrs, $backendAttrDef) = getBackendAttrs('Group', $toPolicy);
+
+ // Kapcsolódás az MySQL szerverhez
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'mysqlGetGroupInfo'));
+ if (!$lr) return false;
+
+ // Keresés
+ if (is_array($SET['justThese']) && count($SET['justThese']) > 0) {
+ $_THESE = '`'.implode('`,`', array_fill(0, count($SET['justThese']), '%s')).'`';
+ $v = $SET['justThese'];
+ } else {
+ $_THESE = '*';
+ $v = array();
+ }
+ $q = "SELECT $_THESE FROM groups WHERE groupCn='%s' AND policy='%s'";
+
+ array_push($v, $groupCn, $toPolicy);
+ $A = db_query($q, array('fv' => 'mysqlGetGroupInfo', 'modul' => $modul, 'result' => 'record', 'values' => $v), $lr);
+ if (!is_array($A) || count($A) == 0) { db_close($lr); return false; }
+ // Megfelelő formátum kialakítása
+ foreach ($A as $attr => $value) $data[$attr][] = $value;
+ foreach ($data as $attr => $array) $data[$attr]['count'] = count($array);
+
+ // tagok lekérdezése
+ $q = "SELECT 'member' AS type, uid AS value, userCn AS txt FROM members LEFT JOIN accounts USING (uid) WHERE gid = '%s'";
+ $v = array($A['gid']);
+ $data2 = db_query($q, array('fv' => 'mysqlGetGroupInfo', 'modul' => $modul, 'result' => 'multiassoc', 'keyfield' => 'type', 'values' => $v), $lr);
+ if ($data2 === false) { db_close($lr); return false; }
+ $data = array_merge($data, $data2);
+
+ // Lehetséges tagok
+ if ($SET['withNewAccounts']===true) {
+ $q = "SELECT userCn AS txt, uid AS value FROM accounts WHERE policy='%s' ORDER BY userCn";
+ $data['member']['new'] = db_query($q, array(
+ 'fv' => 'mysqlGetGroupInfo', 'modul' => $modul, 'result' => 'indexed', 'values' => array($toPolicy)
+ ), $lr);
+ }
+
+ db_close($lr);
+ return $data;
+
+ }
+
+
+###############################################################
+# mysqlChangeGroupInfo - csoport információk módosítása
+###############################################################
+
+ function mysqlChangeGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+// !!!! A memberuid / member szinkronjára nem figyel!!
+
+ global $AUTH, $backendAttrs, $backendAttrDef;
+
+ // Kapcsolódás az MySQL szerverhez
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'mysqlChangeGroupInfo'));
+ if (!$lr) return false;
+
+ $q = "SELECT gid FROM groups WHERE groupCn='%s' AND policy='%s'";
+ $v = array($groupCn, $toPolicy);
+ $gid = db_query($q, array('fv' => 'mysqlChangeGroupInfo', 'modul' => $modul, 'result' => 'value', 'values' => $v), $lr);
+ if ($gid === false) { db_close($lr); return false; }
+
+ $emptyAttrs = explode(':', $_POST['emptyAttrs']);
+
+ // Attribútumonként módosítunk
+ foreach ($backendAttrs as $attr) {
+
+ if ($backendAttrDef[$attr]['rights'] == '') $rigths = _DEFAULT_LDAP_RIGHTS;
+ else $rights = $backendAttrDef[$attr]['rights'];
+
+ if ($rights[_ACCESS_AS] == 'w') {
+
+ $Mod = $Add = $Del = $V = $v = array();
+ $values = array();
+
+ if ($backendAttrDef[$attr]['type'] != '')
+ if (isset($_POST[$attr])) $values[0] = readVariable($_POST[$attr],'html');
+ else $values[0] = '';
+
+ if ($backendAttrDef[$attr]['type'] == 'select') {
+ if ($attr == 'member') {
+ if (isset($_POST['new-'.$attr][0]) && $_POST['new-'.$attr][0] != '') {
+ for ($i = 0; $i < count($_POST['new-'.$attr]); $i++) {
+ $V[] = "(%u, %u)";
+ array_push($v, $_POST['new-'.$attr][$i], $gid);
+ }
+ $q = "INSERT INTO members (uid, gid) VALUES ".implode(',', $V);
+ db_query($q, array('fv' => 'mysqlChangeGroupInfo', 'modul' => $modul, 'values' => $v), $lr);
+ }
+ if (isset($_POST['del-'.$attr][0]) && $_POST['del-'.$attr][0] != '') {
+ $q = "DELETE FROM members WHERE gid=%u
+ AND uid IN (".implode(',', array_fill(0, count($_POST['del-'.$attr]), '%u')).")";
+ $v = array_merge(array($gid), $_POST['del-'.$attr]);
+ $r = db_query($q, array('fv' => 'mysqlChangeGroupInfo', 'modul' => $modul, 'values' => $v), $lr);
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:invalid_type:select:'.$attr;
+ }
+ } else {
+ if (in_array($attr, $emptyAttrs)) {
+ if ($values[0] != '') {
+ $W = "`%s`='%s'";
+ $v = array($attr, $values[0]);
+ }
+ } else {
+ if ($values[0] != '') {
+ $W = "`%s`='%s'";
+ $v = array($attr, $values[0]);
+ } else {
+ $W = "`%s`=NULL";
+ $v = array($attr);
+ }
+ }
+ $q = "UPDATE groups SET $W WHERE groupCn='%s' AND policy='%s'";
+ array_push($v, $groupCn, $toPolicy);
+ db_query($q, array('fv' => 'mysqlChangeGroupInfo', 'modul' => $modul, 'values' => $v), $lr);
+ }
+ } else {
+ $_alert[] = 'message:insufficient_access:'.$attr;
+ }
+ } // foreach
+
+ db_close($lr);
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/session/base.php b/mayor-orig/www/include/backend/mysql/session/base.php
new file mode 100644
index 00000000..35272ff8
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/session/base.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ Module: base/session
+ Backend: mysql
+
+ function mysqlMemberOf($userAccount, $groupCn, $toPolicy = _POLICY)
+*/
+
+ require_once('include/backend/mysql/base/attrs.php');
+
+
+ function mysqlMemberOf($userAccount, $groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'mysqlMemberOf'));
+ if (!$lr) return _AUTH_FAILURE;
+
+ // Az uid lekérdezése
+ if (!defined(('__'.$toPolicy.'_UID')) || _USERACCOUNT != $userAccount) { // egy policy-hez csak egy uid tartozik
+ $q = "SELECT uid FROM accounts WHERE userAccount = '%s' AND policy = '%s'";
+ $v = array($userAccount, $toPolicy);
+ $uid = db_query($q, array('fv' => 'mysqlMemberOf', 'modul' => $modul, 'result' => 'value', 'values' => $v), $lr);
+ if ($uid === false) {
+ $_SESSION['alert'][] = 'message:no_account:'."$userAccount:$toPolicy";
+ db_close($lr); return false;
+ }
+ if (!defined('__'.$toPolicy.'_UID')) define('__'.$toPolicy.'_UID',$uid);
+ } else {
+ $uid=constant('__'.$toPolicy.'_UID');
+ }
+
+ // Az gid lekérdezése
+ $q = "SELECT gid FROM groups WHERE groupCn = '%s' AND policy = '%s'";
+ $v = array($groupCn, $toPolicy);
+ $gid = db_query($q, array('fv' => 'mysqlMemberOf', 'modul' => $modul, 'result' => 'value', 'values' => $v), $lr);
+ if ($gid === false) {
+ $_SESSION['alert'][] = 'message:no_group:'."$groupCn:$toPolicy";
+ db_close($lr); return false;
+ }
+
+ // Benne van-e a csoportban
+ $q = "SELECT COUNT(*) FROM members WHERE uid = %u AND gid = %u";
+ $v = array($uid, $gid);
+ $num = db_query($q, array('fv' => 'mysqlMemberOf', 'modul' => $modul, 'result' => 'value', 'values' => $v), $lr);
+ db_close($lr);
+ return ($num > 0);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/session/createAccount.php b/mayor-orig/www/include/backend/mysql/session/createAccount.php
new file mode 100644
index 00000000..25ff9132
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/session/createAccount.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ Module: base/session
+ Backend: mysql
+
+ function mysqlCreateAccount($userCn, $userAccount, $studyId, $userPassword, $category, $toPolicy = _POLICY) {
+
+*/
+
+ /*
+ $SET = array(
+ container => a konténer elem - MySQL backend esetén nincs értelme
+ category => tanár, diák... egy kiemelt fontosságú csoport tagság
+ groups => egyéb csoportok
+ policyAttrs => policy függő attribútumok
+ createGroup => létrehozza az adott nevű csoportokat, ha nincsenek
+ )
+
+ */
+ function mysqlCreateAccount(
+ $userCn, $userAccount, $userPassword, $toPolicy, $SET
+ ) {
+
+ global $AUTH;
+
+ $shadowlastchange = floor(time() / (60*60*24));
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'mysqlCreateAccount'));
+ if (!$lr) return _AUTH_FAILURE;
+
+ // ütközés ellenőrzése
+ $q = "SELECT COUNT(userCn) FROM accounts WHERE userAccount = '%s' AND policy = '%s'";
+ $v = array($userAccount, $toPolicy);
+ $num = db_query($q, array('fv' => 'mysqlCreateAccount', 'modul' => $modul, 'result' => 'value', 'values' => $v), $lr);
+ if ($num > 0) {
+ db_close($lr);
+ $_SESSION['alert'][] = 'message:multi_uid'.":$userAccount:$toPolicy";
+ return false;
+ }
+
+ // A shadowLastChange a mai nap // if (isset($AUTH[$toPolicy]['shadowlastchange']) && $AUTH[$toPolicy]['shadowlastchange'] != '') $shadowlastchange = $AUTH[$toPolicy]['shadowlastchange'];
+ $shadowmin = readVariable($AUTH[$toPolicy]['shadowmin'], 'numeric unsigned', 'null'); // null szöveg
+ $shadowmax = readVariable($AUTH[$toPolicy]['shadowmax'], 'numeric unsigned', 'null'); // null szöveg
+ $shadowwarning = readVariable($AUTH[$toPolicy]['shadowwarning'], 'numeric unsigned', 'null'); // null szöveg
+ $shadowinactive = readVariable($AUTH[$toPolicy]['shadowinactive'], 'numeric unsigned', 'null'); // null szöveg
+ $shadowexpire = readVariable($AUTH[$toPolicy]['shadowexpire'], 'numeric unsigned', 'null'); // null szöveg
+
+ // A $SET['policyAttrs'] feldolgozása
+ $attrList = array_keys($SET['policyAttrs']);
+ $valueList = array_values($SET['policyAttrs']);
+
+ // user felvétele
+ if (count($attrList) > 0) {
+ $q = "INSERT INTO accounts (
+ policy, userAccount, userCn, userPassword, shadowLastChange, shadowMin, shadowMax, shadowWarning, shadowInactive, shadowExpire,
+ `".implode('`, `', array_fill(0, count($attrList), '%s'))."`
+ ) VALUES (
+ '%s', '%s', '%s', sha('%s'), %u, %u, %u, %u, %u, %u, '".implode("', '", array_fill(0, count($valueList), '%s'))."'
+ )";
+ } else{
+ $q = "INSERT INTO accounts (
+ policy, userAccount, userCn, userPassword, shadowLastChange, shadowMin, shadowMax, shadowWarning, shadowInactive, shadowExpire
+ ) VALUES ('%s', '%s', '%s', sha('%s'), %u, %u, %u, %u, %u, %u)";
+ }
+ $v = array_merge(
+ $attrList,
+ array($toPolicy, $userAccount, $userCn, $userPassword, $shadowlastchange, $shadowmin, $shadowmax, $shadowwarning, $shadowinactive, $shadowexpire),
+ $valueList
+ );
+ $uid = db_query($q, array('fv' => 'mysqlCreateAccount', 'modul' => $modul, 'result' => 'insert', 'values' => $v), $lr);
+ if ($uid === false) { db_close($lr); return false; }
+ // user berakása a kategóriájának megfelelő csoportokba
+
+ if (isset($SET['category'])) {
+ if (is_array($SET['groups'])) array_unshift($SET['groups'], $SET['category']);
+ else $SET['groups'] = array($SET['category']);
+
+ for ($i = 0; $i < count($SET['groups']); $i++) {
+ $category = $SET['groups'][$i];
+ $groupCn = kisbetus(ekezettelen($category));
+ if ($category == '') continue;
+ $q = "SELECT gid FROM groups WHERE groupCn='%s'";
+ $gid = db_query($q, array('fv' => 'mysqlCreateAccount', 'modul' => $modul, 'result' => 'value', 'values' => array($groupCn)), $lr);
+ if ($gid === false || is_null($gid)) { // --FIXME -- ez jó így BENCE radyx
+ if ($SET['createGroup']) {
+ require_once('include/modules/session/createGroup.php');
+ //createGroup($groupCn, "$category csoport", $category, $toPolicy = _POLICY);
+ createGroup($groupCn, "$category csoport", $toPolicy = _POLICY, array('category'=>$category));
+ $gid = db_query($q, array('fv' => 'mysqlCreateAccount', 'modul' => $modul, 'result' => 'value', 'values' => array($groupCn)), $lr);
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:mysqlCreateAccount - nincsmegadva/hibás kategória:'.$category.':'.$groupCn;
+ db_close($lr); return false;
+ }
+ }
+ $q = "INSERT INTO members (uid,gid) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'mysqlCreateAccount', 'modul' => $modul, 'values' => array($uid, $gid)), $lr);
+ if (!$r) { db_close($lr); return false; }
+ }
+ }
+ $_SESSION['alert'][] = 'info:create_account_success:'.$userAccount;
+ db_close($lr);
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/session/createGroup.php b/mayor-orig/www/include/backend/mysql/session/createGroup.php
new file mode 100644
index 00000000..d1bc4f7b
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/session/createGroup.php
@@ -0,0 +1,37 @@
+<?php
+
+ function mysqlCreateGroup($groupCn, $groupDesc, $toPolicy = _POLICY, $SET = null) {
+
+ global $AUTH;
+
+ // $toPolicy --> backend - ellenőrzés!
+ if ($AUTH[$toPolicy]['backend'] != 'mysql') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az MySQL szerverhez
+ $modul = "$toPolicy auth";
+ $lr = @db_connect($modul, array('fv' => 'mysqlCreateGroup'));
+ if (!$lr) return false;
+
+ // cn ütközés ellenőrzése
+ $q = "SELECT COUNT(*) FROM groups WHERE policy='%s' AND groupCn='%s'";
+ $v = array($toPolicy, $groupCn);
+ $num = db_query($q, array('fv' => 'mysqlCreateGroup', 'modul' => $modul, 'result' => 'value', 'values' => $v), $lr);
+ if ($num === false) { db_close($lr); return false; }
+ if ($num > 0) { $_SESSION['alert'][] = 'message:multi_uid:'.$groupCn; db_close($lr); return false; }
+
+ // csoport felvétel
+ $q = "INSERT INTO groups (groupCn, groupDesc, policy) VALUES ('%s', '%s','%s')";
+ $v = array($groupCn, $groupDesc, $toPolicy);
+ $gid = db_query($q, array('fv' => 'mysqlCreateGroup', 'modul' => $modul, 'result' => 'insert', 'values' => $v), $lr);
+ if ($gid === false) { db_close($lr); return false; }
+
+ $_SESSION['alert'][] = 'info:create_group_success:'.$dn;
+ db_close($lr);
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/backend/mysql/session/search/searchAccount.php b/mayor-orig/www/include/backend/mysql/session/search/searchAccount.php
new file mode 100644
index 00000000..fa4584b0
--- /dev/null
+++ b/mayor-orig/www/include/backend/mysql/session/search/searchAccount.php
@@ -0,0 +1,169 @@
+<?php
+/*
+ Module: base/session
+ Backend: mysql
+
+*/
+
+######################################################
+# MySQL account kereső függvény
+######################################################
+
+ function mysqlSearchAccount($attr, $pattern, $searchAttrs = array('userCn'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($pattern == '') {
+ $_SESSION['alert'][] = 'message:empty_field:mysqlSerachAccount, pattern';
+ return false;
+ }
+
+ // Kapcsolódás az MySQL szerverhez
+ $modul = "$toPolicy auth";
+ $lr = @db_connect($modul, array('fv' => 'mysqlSearchAccount'));
+ if (!$lr) return false;
+
+ // Keresés
+ $q = "SELECT `".implode('`,`', array_fill(0, count($searchAttrs), '%s'))."` FROM accounts WHERE `%s` LIKE '%%%s%%' AND policy='%s'";
+ $v = array_merge($searchAttrs, array($attr, $pattern, $toPolicy));
+ $r = db_query($q, array('fv' => 'mysqlSearchAccount', 'modul' => $modul, 'result' => 'indexed', 'values' => $v), $lr);
+ db_close($lr);
+ if ($r === false) return false;
+ $ret = array('count' => count($r));
+ foreach ($r as $key => $A) {
+ $data = array();
+ foreach ($A as $attr => $value) {
+ $data[$attr] = array($value);
+ $data[$attr]['count']++;
+ }
+ $data['category'] = getAccountCategories($data['userAccount'][0], $toPolicy);
+ $data['category']['count'] = count($data['category']);
+ $ret[] = $data;
+ }
+
+ return $ret;
+
+ }
+
+######################################################
+# MySQL group kereső függvény
+######################################################
+
+ function mysqlSearchGroup($attr, $pattern, $searchAttrs = array('userCn'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($pattern == '') {
+ $_SESSION['alert'][] = 'message:empty_field:mysqlSearchGroup, pattern';
+ return false;
+ }
+
+ // Kapcsolódás az MySQL szerverhez
+ $modul = "$toPolicy auth";
+ $lr = db_connect($modul, array('fv' => 'mysqlSearchGroup'));
+ if (!$lr) return false;
+ // Keresés
+ if ($attr == 'member') {
+ $q = "SELECT `".implode('`,`', array_fill(0, count($searchAttrs), '%s'))."` FROM groups LEFT JOIN members
+ ON members.gid=groups.gid
+ LEFT JOIN accounts USING (uid)
+ WHERE gid IN
+ (SELECT DISTINCT gid FROM accounts LEFT JOIN members USING(uid) WHERE userAccount LIKE '%%%s%%' AND policy='%s')
+ AND groups.policy='%s'";
+ $v = array_merge($searchAttrs, array($pattern, $toPolicy, $toPolicy));
+ } else {
+ $q = "SELECT DISTINCT `".implode('`,`', array_fill(0, count($searchAttrs), '%s'))."` FROM groups LEFT JOIN members
+ ON members.gid=groups.gid
+ LEFT JOIN accounts USING (uid)
+ WHERE `%s` LIKE '%%%s%%' AND groups.policy='%s'";
+ $v = array_merge($searchAttrs, array($attr, $pattern, $toPolicy));
+ }
+ $r = db_query($q, array('fv' => 'mysqlSearchGroup', 'modul' => $modul, 'result' => 'indexed', 'values' => $v), $lr);
+ db_close($lr);
+ if ($r === false) return false;
+ $ret = array('count' => count($r));
+ foreach ($r as $key => $A) {
+ $data = array();
+ foreach ($A as $attr => $value) {
+ $data[$attr] = array($value);
+ }
+ $ret[] = $data;
+ }
+
+ return $ret;
+
+ }
+
+######################################################
+# mysqlDeleteAccount - account törlése
+######################################################
+
+ function mysqlDeleteAccount($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> mysql backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'mysql') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // Kapcsolódás az MySQL szerverhez
+ $modul = "$toPolicy auth";
+ $lr = @db_connect($modul, array('fv' => 'mysqlDeleteAccount'));
+ if (!$lr) return false;
+
+ // Az uidNumber, a homeDirectory lekerdezése - és mire használjuk, ha szabad kérdeznem???
+ if ($AUTH[$toPolicy]['createHomeDir']) {
+ $q = "SELECT homeDirectory, uid FROM accounts WHERE policy='%s' AND userAccount='%s'";
+ $v = array($toPolicy, $userAccount);
+ $ret = db_query($q, array('fv' => 'mysqlDeleteAccount', 'modul' => $modul, 'result' => 'record', 'values' => $v), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+
+ $homeDirectory = $ret['homeDirectory']; // de nem használjuk semmire...
+ // A user csoport törlése
+ $q = "DELETE FROM groups WHERE gid=%u";
+ $v = array($ret['uid']);
+ $r = db_query($q, array('fv' => 'mysqlDeleteAccount', 'modul' => $modul, 'values' => $v), $lr);
+ if (!$r) { db_close($lr); return false; }
+ }
+
+ // user törlése
+ $q = "DELETE FROM accounts WHERE policy='%s' AND userAccount='%s'";
+ $v = array($toPolicy, $userAccount);
+ $r = db_query($q, array('fv' => 'mysqlDeleteAccount', 'modul' => $modul, 'values' => $v), $lr);
+ db_close($lr);
+ // törlés a csoportból - Ha innoDb - akkor nincs ezzel tennivaló!!
+ if ($r) $_SESSION['alert'][] = 'info:delete_uid_success:'.$userDn;
+
+ return $r;
+
+ }
+
+######################################################
+# mysqlDeleteGroup - group törlése
+######################################################
+
+ function mysqlDeleteGroup($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ // $toPolicy --> mysql backend - ellenőrzés
+ if ($AUTH[$toPolicy]['backend'] != 'mysql') {
+ $_SESSION['alert'][] = 'page:wrong_backend:'.$AUTH[$toPolicy]['backend'];
+ return false;
+ }
+
+ // csoport törlése
+ $q = "DELETE FROM groups WHERE policy='%s' AND groupCn='%s'";
+ $v = array($toPolicy, $groupCn);
+ $r = db_query($q, array('fv' => 'mysqlDeleteGroup', 'modul' => "$toPolicy auth", 'values' => $v));
+
+ if ($r) $_SESSION['alert'][] = 'info:delete_uid_success:'.$userDn;
+
+ // tagok törlése a csoportból - Ha innoDb - akkor nincs ezzel tennivaló!!
+ return $r;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/base/base.php b/mayor-orig/www/include/base/base.php
new file mode 100644
index 00000000..dd620a41
--- /dev/null
+++ b/mayor-orig/www/include/base/base.php
@@ -0,0 +1,227 @@
+<?php
+/*
+ Module: base
+*/
+
+function isMobile() {
+ if(preg_match('/(up.browser|up.link|windows ce|iemobile|mmp|symbian|smartphone|midp|wap|phone| vodafone|o2|pocket|mobile|pda|psp)/i',strtolower($_SERVER['HTTP_USER_AGENT'])))
+ return true;
+ //if(((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'text/vnd.wap.wml')>0) or (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0)) or ((((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE']) or isset($_SERVER['X-OperaMini-Features']) or isset($_SERVER['UA-pixels']))))))
+ $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
+ $mobile_agents = array('acs-','alav','alca','amoi','audi','aste','avan','benq' ,'bird','blac','blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno','ipaq','java' ,'jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-','maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-','newt','noki','opwv','palm','pana','pant','pdxg' ,'phil','play','pluc','port','prox','qtek','qwap', 'sage','sams','sany','sch-','sec-','send','seri','sgh-','shar','sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-','tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp','wapr','webc','winw','winw' ,'xda','xda-');
+ if(in_array($mobile_ua,$mobile_agents)) {
+ return true;
+ }
+}
+
+// ------------------------------------------
+// PHP session
+// ------------------------------------------
+
+ session_start();
+
+// ------------------------------------------
+// Böngésző azonosítás
+// ------------------------------------------
+
+ if (defined('_ALLOWPDAIDENTIFICATION') && isMobile()) define('_USER_AGENT','ppc'); // inkább ketté kéne bontani [wap,ppc] tartalomra
+ else
+ if (strpos($_SERVER['HTTP_USER_AGENT'],'Opera') !== false) define('_USER_AGENT','opera');
+ elseif (strpos($_SERVER['HTTP_USER_AGENT'],'Gecko') !== false) define('_USER_AGENT','gecko');
+ elseif (strpos($_SERVER['HTTP_USER_AGENT'],'MSIE') !== false) define('_USER_AGENT','msie');
+ else define('_USER_AGENT','');
+
+ if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone')!=false) define('_USER_AGENT_PLUS','iPhone');
+ else define('_USER_AGENT_PLUS','');
+
+ if (($_SESSION['isMobile']=isMobile())===true) $_SESSION['pageLayout']=1; // patch
+
+// MaYoR revision konstans definiálása
+
+ if (@file_exists(_LOGDIR.'/revision')) {
+ $_rf = @fopen(_LOGDIR.'/revision', "r");
+ if ($_rf) $rev = @fgets($_rf, 64);
+ @fclose($_rf);
+ } else {
+ //rev missing...
+ }
+ define('_MAYORREV',chop($rev));
+ unset($rev);
+
+// ------------------------------------------
+// Default értékek
+// ------------------------------------------
+ /*
+ $policy - hozzáférési mód - kötelező
+ $page - megjelenítendő oldal - kötelező
+ $sub - aloldal - opcionális
+ $f - file - kötelező
+ $lang - az oldal nyelve - kötelező
+ skin - az oldal témája, "bőre" - kötelező
+ $action - elvégzendő feladat megjelölésére - opcionális
+ $_SESSION['alert'] - figyelmeztető üzenet (tömb) - opcionális
+ */
+
+ if (($__key = array_search('blue', $SKINS)) !== false) unset($SKINS[$__key]);
+ if (($__key = array_search('pda', $SKINS)) !== false) unset($SKINS[$__key]);
+ if ($AUTH['public']['skin'] == 'blue') $AUTH['public']['skin'] = 'classic';
+ if ($AUTH['private']['skin'] == 'blue') $AUTH['private']['skin'] = 'classic';
+ if ($AUTH['parent']['skin'] == 'blue') $AUTH['parent']['skin'] = 'classic';
+ // itt beolvassuk, később még egy szigorítás is van
+
+ if (_RUNLEVEL=='cron') {
+ $policy = 'private';
+ @$page = readVariable($_SERVER['argv'][1],'strictstring');
+ @$sub = readVariable($_SERVER['argv'][2],'strictstring');
+ @$f = readVariable($_SERVER['argv'][3],'strictstring');
+ @$sessionID = "cron";
+ } else {
+ @$policy = readVariable($_REQUEST['policy'],'strictstring',null,$POLICIES);
+ @$page = readVariable($_REQUEST['page'],'strictstring');
+ @$sub = readVariable($_REQUEST['sub'],'strictstring');
+ @$f = readVariable($_REQUEST['f'],'strictstring');
+ @$sessionID = readVariable($_GET['sessionID'],'hexa');
+ }
+ if ($f == '') {
+ if ($sub != '') $f = $sub;
+ elseif ($page != '') $f = $page;
+ }
+ @$lang = readVariable($_GET['lang'],'strictstring',null,$LANGUAGES);
+ if (_RUNLEVEL === 'cron') $skin = 'cron';
+ else @$skin = readVariable($_POST['skin'],'strictstring',readVariable($_GET['skin'],'strictstring',null,$SKINS),$SKINS);
+ @$action = readVariable($_REQUEST['action'],'strictstring',null);
+ // ++ ha még mindig üres a skin, és pocketpc-ről/pda jövünk (de megengedjük a felülírást)
+ // if (_USER_AGENT==='ppc' && $skin=='') $skin='pda';
+ // ++
+ //--
+ if (is_array($POLICIES) && !in_array($policy, $POLICIES)) $policy = _DEFAULT_POLICY;
+
+ define('_POLICY', $policy);
+
+ // Miert ne csatolnánk be az összes policy beállítsait? --> config.php
+
+ if ($f=='' && is_array($DEFAULT_PSF[$policy])) extract($DEFAULT_PSF[$policy], EXTR_OVERWRITE);
+ if (!in_array($lang, $LANGUAGES)) $lang=_DEFAULT_LANG;
+ // ha a skin még mindig üres, akkor az ellenőrzésnél a default-ot állítjuk be...
+ if (!@in_array($skin, $SKINS)) $skin = (isset($AUTH[$policy]['skin'])) ? $AUTH[$policy]['skin'] : _DEFAULT_SKIN;
+
+ if (file_exists("lang/$lang/base/base.php")) {
+ require("lang/$lang/base/base.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/base/base.php')) {
+ require('lang/'._DEFAULT_LANG.'/base/base.php');
+ }
+
+ // A skin-hez tartozó beállátosok.. ha vannak... - ide való? De még a *-pre elé!
+ if (file_exists(_CONFIGDIR."/skin-$skin/config.php")) {
+ require(_CONFIGDIR."/skin-$skin/config.php");
+ } elseif (file_exists(_CONFIGDIR.'/skin-'._DEFAULT_SKIN.'/config.php')) {
+ require(_CONFIGDIR.'/skin-'._DEFAULT_SKIN.'/config.php');
+ }
+
+// -----------------------------------------------------------------
+// page()
+// -----------------------------------------------------------------
+
+function page($page, $sub, $f, $lang, $skin, $policy = _DEFAULT_POLICY) {
+
+ global $_JSON;
+ if (html_alert($_SESSION['alert'])) { // A figyelmeztető üzenet letilthatja az oldal további megjelenítését.
+
+ if ($sub != '') {
+ $load = "$sub/$f";
+ } else {
+ $load = $f;
+ }
+
+ if (file_exists("policy/$policy/$page/$load.php")) {
+ if (file_exists("lang/$lang/module-$page/base.php")) {
+ require_once("lang/$lang/module-$page/base.php");
+ } elseif (file_exists("lang/"._DEFAULT_LANG."/module-$page/base.php")) {
+ require_once("lang/"._DEFAULT_LANG."/module-$page/base.php");
+ }
+ if (file_exists("lang/$lang/module-$page/$load.php")) {
+ require_once("lang/$lang/module-$page/$load.php");
+ } elseif (file_exists("lang/"._DEFAULT_LANG."/module-$page/$load.php")) {
+ require_once("lang/"._DEFAULT_LANG."/module-$page/$load.php");
+ }
+ if (file_exists("skin/$skin/module-$page/html/base.phtml")) {
+ require_once("skin/$skin/module-$page/html/base.phtml");
+ } elseif (file_exists("skin/"._DEFAULT_SKIN."/module-$page/html/base.phtml")) {
+ require_once("skin/"._DEFAULT_SKIN."/module-$page/html/base.phtml");
+ }
+ if (file_exists("skin/$skin/module-$page/html/$load.phtml")) {
+ require_once("skin/$skin/module-$page/html/$load.phtml");
+ } elseif (file_exists("skin/"._DEFAULT_SKIN."/module-$page/html/$load.phtml")) {
+ require_once("skin/"._DEFAULT_SKIN."/module-$page/html/$load.phtml");
+ }
+
+ include("policy/$policy/$page/$load.php");
+ //szamlal($policy,$page);
+ } elseif (file_exists("static/$lang/$page/$load.html")) {
+ include("static/$lang/$page/$load.html");
+ //szamlal($policy,$page);
+ } else {
+ //??? ha már kiírtuk a hibaüzeneteket, újabbat nem írhatunk ki sajnos :( html_alert(array('page:page_missing:'."[$page]:[$sub]:[$f]")); --> rights.php
+ }
+ }
+}
+
+function href($href,$get = array('sessionID','lang','skin','policy')) {
+
+ global $sessionID,$lang,$skin,$policy,$page,$sub,$f,$action;
+ global $SKINS;
+ if ($href!='') {
+ if (strpos($href,'?') === false) {
+ $href .= '?';
+ } else {
+ $href.='&';
+ }
+ for ($i=0;$i<count($get);$i++) {
+ $par = $get[$i];
+ if ($par == 'skin' && $skin == 'ajax') $value = readVariable($_GET['toSkin'],'enum',null,$SKINS);
+ else $value = $$par;
+ if (is_array($value)) { // pl. $_SESSION['alert']
+ for ($j=0;$j<count($value);$j++) {
+ $href .= $par.'[]='.$value[$j].'&';
+ }
+ } else {
+ $href .= "$par=".$value.'&';
+ }
+ }
+ $href = substr($href,0,-1);
+ if ($skin == 'pda') $href .= '&rand='.rand(); // PDA hack - mer' a szemétje nem olvassa újra, hiába a fejlécen a sok okos varázslat... :(
+ $href = str_replace('&','&#38;',str_replace('&#38;','&',$href));
+ }
+ return $href;
+
+}
+
+function location($href,$get = array('sessionID','lang','skin','policy')) {
+
+ global $sessionID,$lang,$skin,$policy,$page,$sub,$f,$action;
+
+ if ($href!='') {
+ if (strpos($href,'?')===false) {
+ $href.='?';
+ } else {
+ $href.='&';
+ }
+ for ($i=0;$i<count($get);$i++) {
+ $par = $get[$i];
+ if (is_array($$par)) { // pl. $_SESSION['alert']
+ for ($j=0;$j<count($$par);$j++) {
+ $href .= $par.'[]='.${$par}[$j].'&';
+ }
+ } else {
+ $href .= "$par=".$$par.'&';
+ }
+ }
+ $href = substr($href,0,-1);
+ $href = str_replace('&#38;','&',$href);
+ }
+
+ return $href;
+
+}
+
+?>
diff --git a/mayor-orig/www/include/base/cache.php b/mayor-orig/www/include/base/cache.php
new file mode 100644
index 00000000..3c630581
--- /dev/null
+++ b/mayor-orig/www/include/base/cache.php
@@ -0,0 +1,33 @@
+<?php
+// MaYoR - GPL - author: support@mayor.hu
+class mayorCache {
+ private $DATA = array();
+ private $REGISTRY = array();
+ public function exists($key) {
+ return (!is_null($this->DATA[$key]));
+ }
+ public function get($key) {
+ return $this->DATA[$key];
+ }
+ public function set($key,$data, $dataType=null) {
+ $this->DATA[$key] = $data;
+ if ($dataType!='') $this->REGISTRY[$dataType][] = $key;
+ }
+ public function del($key) {
+ unset($this->DATA[$key]);
+ unset($this->REGISTRY[array_search($key,$this->REGISTRY)]);
+ }
+ public function flushdb() {
+ $this->DATA = array();
+ $this->REGISTRY = array();
+ }
+ public function delType($dataType) {
+ $c = count($this->REGISTRY[$dataType]);
+ for ($i=0; $i<$c; $i++ ) {
+ $this->del($this->REGISTRY[$dataType][$i]);
+ }
+ unset($this->REGISTRY[$dataType]);
+ }
+}
+$mayorCache = new mayorCache();
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/base/config.php b/mayor-orig/www/include/base/config.php
new file mode 100644
index 00000000..4a234fcf
--- /dev/null
+++ b/mayor-orig/www/include/base/config.php
@@ -0,0 +1,62 @@
+<?php
+
+if (PHP_SAPI!=='cli') define('_RUNLEVEL','www'); else define('_RUNLEVEL','cron');
+
+define('_JSLIB','jquery.min');
+
+if (!defined('_LOGLEVEL')) define('_LOGLEVEL',10);
+
+date_default_timezone_set('Europe/Budapest');
+
+if (_RUNLEVEL === 'cron') {
+ (include("../config/main-config.php")); // csak webrootból futtatható
+} else {
+ if (@file_exists('../config/main-config.php') && @is_readable('../config/main-config.php')==true) {
+ include("../config/main-config.php");
+ } elseif(@file_exists('../config/main-config.php')===false) {
+ die('FATAL ERROR! Missing '.$_SERVER['DOCUMENT_ROOT'].'/../config/main-config.php');
+ } elseif (@is_readable('../config/main-config.php')==false) {
+ die('FATAL ERROR! Forbidden to read "main-config.php"');
+ } else {
+ die('FATAL ERROR! Unknown error! '.$_SERVER['DOCUMENT_ROOT'].'/../config/main-config.php');
+ }
+ if (defined('_LOCKFILE') && @file_exists(_LOCKFILE)) {
+ include(_BASEDIR.'/update.php');
+ die();
+ }
+}
+
+if (!defined('_SECURECOOKIE')) define('_SECURECOOKIE', true);
+
+define('_BASE_URL',( ($_SERVER['HTTPS']=='on')?"https://".$_SERVER['SERVER_NAME']:"http://".$_SERVER['SERVER_NAME'] ));
+
+/* classic, blue, ajax + rpc, + cron kiegészítés */
+$SKINS = @array_unique(array_merge($SKINS,array('classic','blue','ajax','rpc','gray','cron')));
+$SKINSSHOW = @array_unique(array_merge($SKINSSHOW,array('classic','vakbarat','gray')));
+
+if (is_array($POLICIES) && defined('_CONFIGDIR')) {
+ foreach ($POLICIES as $key => $_policy) {
+ if (file_exists(_CONFIGDIR."/$_policy-conf.php")) {
+ @require(_CONFIGDIR."/$_policy-conf.php");
+ if (file_exists(_BASEDIR.'/policy/'.$_policy.'/'.$DEFAULT_PSF[$_policy]['page'].'/'.$DEFAULT_PSF[$_policy]['sub'].'/'.$DEFAULT_PSF[$_policy]['f'].'.php')
+ === false) {
+ //nincs meg ez a file
+ $_SESSION['alert'][] = 'info:file_not_found:default page:'.$_policy.':'.implode(' ',$DEFAULT_PSF[$_policy]);
+ }
+ } else {
+ $DEFAULT_PSF[$_policy] = array();
+ $_SESSION['alert'][] = 'page:file_not_found:'._CONFIGDIR."/$_policy-conf.php";
+ }
+ }
+} else {
+ $_SESSION['alert'][] = 'page:config_error:nincs POLICIES tömb vagy _CONFIGDIR konstans!';
+}
+
+if (!defined('__FBCONNECT_ENABLED')) define('__FBCONNECT_ENABLED',false);
+if (!defined('__SHOW_FACES_TYPE')) define('__SHOW_FACES_TYPE','circle'); // circle, square, classic
+
+$VALID_MODULES =array('portal','naplo','auth','jatek','password','session','fenntarto');
+if(is_array($EXTRA_MODULES)) $VALID_MODULES = array_unique(array_merge($VALID_MODULES,$EXTRA_MODULES));
+
+
+?>
diff --git a/mayor-orig/www/include/base/error.php b/mayor-orig/www/include/base/error.php
new file mode 100644
index 00000000..e790d65a
--- /dev/null
+++ b/mayor-orig/www/include/base/error.php
@@ -0,0 +1,44 @@
+<?php
+
+ /* Ezen hibákat továbbra is reportoljuk */
+ error_reporting(E_ERROR | E_PARSE);
+
+ /* Saját Error Handler */
+ function mayorErrorHandler($errno, $errmsg, $filename, $linenum, $vars) {
+
+ $dt = date("Y-m-d H:i:s (T)");
+ $errortype = array (
+ E_ERROR => 'Error', //1
+ E_WARNING => 'Warning', //2
+ E_PARSE => 'Parsing Error', //4
+ E_NOTICE => 'Notice', //8
+ E_CORE_ERROR => 'Core Error', //16
+ E_CORE_WARNING => 'Core Warning', //32
+ E_COMPILE_ERROR => 'Compile Error', //64
+ E_COMPILE_WARNING => 'Compile Warning', //128
+ E_USER_ERROR => 'User Error',
+ E_USER_WARNING => 'User Warning',
+ E_USER_NOTICE => 'User Notice', // 1024
+ E_STRICT => 'Runtime Notice', // 2048
+ E_RECOVERABLE_ERROR => 'Catchable Fatal Error', // 4096
+ E_ALL => 'ALL', //binary 1111111111111
+ );
+ $userError = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE);
+ $trackOnly = array(E_USER_ERROR, E_ERROR, E_USER_WARNING, E_USER_NOTICE, E_WARNING);
+ if (defined('__TESTERRORREPORTERWARN')) $trackOnly[] = E_NOTICE;
+ if (in_array($errno,$userError)) {
+ $err = "$dt $errno ".$errtype[$errno]." $errmsg";
+ } elseif (in_array($errno,$trackOnly)) {
+ $err = "$dt $errno ".$errtype[$errno]." $errmsg $filename $linenum";
+ /* if (in_array($errno, $user_errors)) { $err .= " vartrace(" . wddx_serialize_value($vars, "Variables") . ") ";} */
+ // if (defined('_LOGDIR')) error_log($err, 0, _LOGDIR.'/phperror.log');
+ }
+ if ($err!='') $_SESSION['alert'][] = 'alert:raw:'._MAYORREV.':'._USERACCOUNT.':'.':'.$err;
+ return false;
+ }
+
+ /* Írjuk felül a gyárit */
+ $old_error_handler = set_error_handler("mayorErrorHandler");
+ //restore_error_handler();
+
+?>
diff --git a/mayor-orig/www/include/base/log.php b/mayor-orig/www/include/base/log.php
new file mode 100644
index 00000000..45c669e4
--- /dev/null
+++ b/mayor-orig/www/include/base/log.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ Module: base
+
+ function naploz($aCode)
+ function szamlal($policy,$page)
+*/
+
+ function _clientIp() {
+ return ($_SERVER['HTTP_X_FORWARDED_FOR']!='')?$_SERVER['HTTP_X_FORWARDED_FOR']:$_SERVER['REMOTE_ADDR'];
+ }
+
+ function logLogin($policy, $userAccount, $flag) {
+ $q = "INSERT INTO loginLog (dt,ip,userAccount,policy,flag) VALUES (NOW(),'%s','%s','%s', %u)";
+ db_query($q, array('fv' => 'logLogin', 'modul' => 'login', 'values' => array(_clientIp(), $userAccount, $policy, $flag)));
+ }
+
+ function szamlal($policy, $page) {
+ $q = "INSERT INTO stat (dt, policy, page) VALUES (NOW(),'%s','%s')";
+ db_query($q, array('fv' => 'szamlal', 'modul' => 'login', 'values' => array($policy, $page)));
+ }
+
+ function mayorLogger($loglevel, $modul, $message, $userAccount='') {
+ if ($loglevel>_LOGLEVEL) {
+ $fp = fopen(_LOGDIR.'/'.$modul.'.log','a+');
+ if ($fp!=false) {
+ $msg = date('Y-m-d H:i:s').' '.$userAccount.': '.$message."\n";
+ fputs($fp,$msg);
+ fclose($fp);
+ }
+ }
+ }
+?>
diff --git a/mayor-orig/www/include/base/login.php b/mayor-orig/www/include/base/login.php
new file mode 100644
index 00000000..f244b90a
--- /dev/null
+++ b/mayor-orig/www/include/base/login.php
@@ -0,0 +1,120 @@
+<?php
+
+ if ($action == 'mayorGlobalLogin' || $action == 'facebooklogin' || $action== 'googleapilogin') {
+
+ $toPolicy = readVariable($_REQUEST['toPolicy'], 'enum', 'private', $POLICIES);
+ $policyOrderIndex = readVariable($_POST['policyOrderIndex'], 'id', 0);
+
+ $__POLICYORDER[0] = array('private','parent','public');
+ $__POLICYORDER[1] = array('private');
+ $__POLICYORDER[2] = array('parent');
+ $__POLICYORDER[3] = array('public');
+
+ $toSkin = readVariable($_POST['toSkin'], 'enum', readVariable($_GET['toSkin'], 'enum', null, $SKINSSHOW), $SKINSSHOW);
+ @list($toPage,$toSub,$toF) = readVariable(explode(':',$_REQUEST['toPSF']), 'strictstring');
+ $toPSF = "$toPage:$toSub:$toF";
+ // Autentikáció - alapok
+ $fbAuth = false;
+ if (file_exists('include/share/auth/base.php')) {
+ require_once('include/share/auth/base.php');
+ }
+ require_once('include/modules/auth/base/login.php');
+
+ // lejart session-ok torlese
+ require_once('include/share/session/close.php');
+ closeOldAndIdleSessions();
+
+ if (__FBCONNECT_ENABLED===true && $action=='facebooklogin') {
+ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+ $_SESSION['alert'][] = 'info::facebook:szerver konfigurációs hiba, legalább 5.4-es php verzió szükséges';
+ return false;
+ }
+ require_once('include/share/net/facebook.php');
+ $FBDATA = mayorFacebookAuth(); // preAuth
+ if (is_array($FBDATA) && $FBDATA['accessToken']!="") {
+ $userAccount = $FBDATA['userAccount'];
+ $fbAuth = true;
+ }
+ } elseif (__GOOGLEAPI_ENABLED===true && $action=='googleapilogin') {
+ if (version_compare(PHP_VERSION, '5.5.0', '<')) {
+ $_SESSION['alert'][] = 'info::googleapi:szerver konfigurációs hiba, legalább 5.5-ös php verzió szükséges';
+ return false;
+ }
+ require_once('include/share/net/googleapi.php');
+ $GOOGLEAPIDATA = mayorGoogleApiAuth(); // preAuth
+ if (($GOOGLEAPIDATA) && $GOOGLEAPIDATA['userAccount']!="") {
+ $userAccount = $GOOGLEAPIDATA['userAccount'];
+ $googleapiAuth = true;
+ }
+ } else {
+ $userPassword = readVariable($_POST['userPassword'], 'string');
+ // $userAccount = readVariable($_POST['userAccount'], 'regexp', null, array("^([a-z]|[A-Z]|[0-9]| |\.|,|_|[űáéúőóüöíŰÁÉÚŐÓÜÖÍäÄ]|-|@)*$"));
+ $userAccount = readVariable($_POST['userAccount'], 'userAccount', null);
+ }
+
+ if (defined('_BOLONDOS') && _BOLONDOS===true) $userAccount = visszafele($userAccount);
+ if (is_array($AUTH[$toPolicy]['allowOnly']) && !in_array($userAccount,$AUTH[$toPolicy]['allowOnly'])) $userAccount='';
+
+ if ($sessionID != '') $accountInformation['sessionID'] = $sessionID;
+ if ($userAccount != '' and ($userPassword != '' or $fbAuth===true or $googleapiAuth===true)) {
+
+ for ($i=0; $i<count($__POLICYORDER[$policyOrderIndex]); $i++) {
+ $toPolicy=$__POLICYORDER[$policyOrderIndex][$i];
+ if (!in_array($AUTH[$toPolicy]['authentication'],array('required','try'))) {
+ continue;;
+ }
+ $accountInformation = array('account' => $userAccount, 'password' => $userPassword, 'policy' => $toPolicy, 'skin'=>$toSkin);
+ if ($fbAuth===true) {
+ if ($FBDATA['toPolicy']==$toPolicy) {
+ $result = _AUTH_SUCCESS; // az authentikációt a mayorFacebookAuth() csinálta
+ $accountInformation['cn'] = $FBDATA['fbUserCn'];
+ $accountInformation['mail'] = $FBDATA['fbUserEmail'];
+ $accountInformation['studyId'] = $FBDATA['studyId'];
+ } else {
+ $_SESSION['alert'][] = 'info:A facebook azonosító nincs még összekötve! Először lépj be a MaYoR-ba, és kezdeményezd a facebook connectet!';
+ continue;;
+ }
+ } elseif ($googleapiAuth===true) {
+ if ($GOOGLEAPIDATA['toPolicy']==$toPolicy) {
+ $result = _AUTH_SUCCESS; // az authentikációt a mayorGoogleapiAuth() csinálta
+ $accountInformation['cn'] = $GOOGLEAPIDATA['googleUserCn'];
+ $accountInformation['mail'] = $GOOGLEAPIDATA['googleUserEmail'];
+ $accountInformation['studyId'] = $GOOGLEAPIDATA['studyId'];
+ } else {
+ $_SESSION['alert'][] = 'info:A google azonosító nincs még összekötve! Először lépj be a MaYoR-ba, és kezdeményezd!';
+ continue;;
+ }
+ } else {
+ $result = userAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy); // ??? toPolicy benne van az AccountInformation-ben!!! Ldap backend only?
+ logLogin($toPolicy, $userAccount, $result);
+ }
+
+ define('_MAYORAUTHRESULT',$result);
+ if ($result === _AUTH_SUCCESS) {
+ $_SESSION['alert'] = array();
+ $sessionID = newSession($accountInformation, $toPolicy);
+ if ($toSkin == '') $toSkin = $skin;
+ header('Location: '.location("index.php?page=$toPage&sub=$toSub&f=$toF&sessionID=$sessionID&policy=$toPolicy&lang=$lang&skin=$toSkin", array('alertOLD')));
+ break;
+ } elseif ($result === _AUTH_EXPIRED) {
+ $_SESSION['alert'][] = 'message:force_pw_update';
+ header('Location: '.location("index.php?policy=public&page=password&f=changeMyPassword&userAccount=".$userAccount."&toPolicy=$toPolicy&skin=$toSkin", array('alertOLD')));
+ break;
+ } elseif ($result === _AUTH_FAILURE_1) {
+ // nincs ilyen user, megpróbáljuk beauthentikálni parent-tel is.
+ } elseif ($result >= _AUTH_FAILURE) {
+ // sikertelen azonosítás - a hibaüzenetet a függvény generálja
+ // megpróbáljuk beauthentikálni parent-tel is.
+ break;
+ } else {
+ // Ilyen csak hibás függvényműködés esetén lehet:
+ $_SESSION['alert'][] = "message:default:hibás visszatérési érték:userAuthentication:(".serialize($result).")";
+ break;
+ }
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field';
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/include/base/mysql.php b/mayor-orig/www/include/base/mysql.php
new file mode 100644
index 00000000..b2e22f82
--- /dev/null
+++ b/mayor-orig/www/include/base/mysql.php
@@ -0,0 +1,396 @@
+<?php
+
+ error_reporting(E_ALL && ~E_NOTICE);
+// error_reporting(E_ALL);
+
+ //if (!defined("MYSQLI_ENABLED")) define("MYSQLI_ENABLED",function_exists('mysqli_connect'));
+ if (!defined("MYSQLI_ENABLED")) define("MYSQLI_ENABLED",false); // egyelőre kikapcsoljuk, mert az Illyés-ben pl egfeküdt a szerver ettől
+ if (is_array($AUTH)) foreach ($AUTH as $_policy => $config) {
+ if ($config['backend'] == 'mysql') {
+ $MYSQL_DATA[$_policy . ' auth'] = array(
+ 'user' => $config['mysql user'],
+ 'host' => $config['mysql host'],
+ 'pw' => $config['mysql pw'],
+ 'db' => $config['mysql db'],
+ );
+ if ($MYSQL_DATA[$_policy . ' auth']['host']=='')
+ if ($MYSQL_DATA['host']=='')
+ $MYSQL_DATA[$_policy . ' auth']['host'] = 'localhost';
+ else
+ $MYSQL_DATA[$_policy . ' auth']['host'] = $MYSQL_DATA['host'];
+ }
+ }
+//-----------------------------------------------------------------------//
+
+ function db_selectDb($db,$lr) {
+ if (MYSQLI_ENABLED===true)
+ return mysqli_select_db($lr,$db);
+ else
+ return mysql_select_db($db,$lr);
+ }
+
+ function db_connect($modul, $SET = array('priv' => null, 'force' => true, 'host'=> null, 'username' => null, 'password' => null, 'db' => null, 'fv' => null)) {
+
+ global $MYSQL_DATA;
+
+ $lr = false;
+ extract($SET);
+ if (!isset($force)) $force = true;
+ if (!isset($priv)) $priv = '';
+
+ //if ($MYSQL_DATA['persistent']===true) $mysql_connect = 'mysql_pconnect'; else $mysql_connect = 'mysql_connect';
+ $mysql_connect = 'mysql_connect';
+ /* setting host */
+ if (!isset($host)) {
+ if ($MYSQL_DATA[$modul]['host'.$priv]=='') {
+ if ($MYSQL_DATA[$modul]['host']=='') {
+ if ($MYSQL_DATA['host']=='') {
+ $host = 'localhost';
+ } else {
+ $host = $MYSQL_DATA['host'];
+ }
+ } else {
+ $host = $MYSQL_DATA[$modul]['host'];
+ }
+ } else {
+ $host = $MYSQL_DATA[$modul]['host'.$priv];
+ }
+ }
+ /* --- */
+ if ($priv == 'root') {
+ if (MYSQLI_ENABLED===true)
+ $lr = @mysqli_connect($host, $username, $password); // force new ???
+ else
+ $lr = @$mysql_connect($host, $username, $password, $force);
+ } else {
+ /* --- */
+ if (is_array($MYSQL_DATA[$modul])) {
+ if (isset($priv) && $priv != '' && isset($MYSQL_DATA[$modul]['user'.$priv])) { // Először megpróbálunk $priv szerinti privilégiummal csatlakozni
+ if (MYSQLI_ENABLED===true)
+ $lr = @mysqli_connect($host, $MYSQL_DATA[$modul]['user'.$priv], $MYSQL_DATA[$modul]['pw'.$priv], $MYSQL_DATA[$modul]['db']);
+ else
+ $lr = @$mysql_connect($host, $MYSQL_DATA[$modul]['user'.$priv], $MYSQL_DATA[$modul]['pw'.$priv], $force);
+ }
+ if ($lr === false) {// Ha nem sikerült, vagy nem volt megadva privilégium, akkor próbáljunk anélkül csatlakozni
+ if (MYSQLI_ENABLED===true)
+ $lr = @mysqli_connect($host, $MYSQL_DATA[$modul]['user'], $MYSQL_DATA[$modul]['pw'], $MYSQL_DATA[$modul]['db']);
+ else
+ $lr = @$mysql_connect($host, $MYSQL_DATA[$modul]['user'], $MYSQL_DATA[$modul]['pw'], $force);
+ }
+ } else {
+ $_SESSION['alert'][] = "message:sql_failure/${SET['fv']}:db_connect:modul $modul has no config";
+ }
+ }
+ if ($lr) {
+ // mysql_set_charset('utf8', $lr);
+ if ($priv != 'root') $db = $MYSQL_DATA[$modul]['db'];
+ if ($db != '') {
+ $result = db_selectDb($db , $lr);
+ if ($result === true) {
+ if (MYSQLI_ENABLED===true) {
+ mysqli_set_charset($lr, "utf8");
+ mysqli_query($lr, "SET NAMES utf8");
+ mysqli_query($lr, "SET collation_connection='utf8_hungarian_ci'");
+ } else {
+ mysql_query("SET NAMES utf8", $lr);
+ mysql_query("SET collation_connection='utf8_hungarian_ci'", $lr);
+ }
+ } else {
+ $_SESSION['alert'][] = "message:sql_select_db_failure:db_connect/${SET['fv']}:$modul:".$MYSQL_DATA[$modul]['db'];
+ mysql_close($lr);
+ return false;
+ }
+ } elseif (!isset($MYSQL_DATA[$modul]['db'])) {
+ $_SESSION['alert'][] = "message:sql_warning:db_connect/${SET['fv']}:modul $modul has empty database config value";
+ }
+ } else {
+ if (__DEBUG || (defined('__DETAILED') && __DETAILED)) $_SESSION['alert'][] = "message:sql_connect_failure:db_connect/${SET['fv']}:modul - $modul, priv - $priv, username - $username, db - $db";
+ else $_SESSION['alert'][] = "message:sql_connect_failure:db_connect/${SET['fv']}:$modul modul";
+ }
+ return $lr;
+
+ }
+
+ function db_close($lr) {
+ if ($MYSQL_DATA['persistent']!==true) {
+ if (MYSQLI_ENABLED===true)
+ return mysqli_close($lr);
+ else
+ return mysql_close($lr);
+ } else
+ return true; // not closing;
+ }
+
+//-----------------------------------------------------------------------//
+
+ function db_query($q, $SET, $olr = null) {
+ /*
+ $SET = array(
+ 'modul' => '...'
+ 'fv' => '...'
+ 'result' => 'indexed'|'assoc'|'multiassoc'|'idonly'|'value'|'record'|'keyvaluepair'|'insert'|'affected rows'
+ 'keyfield' => '...' (if result in (assoc,multiassoc))
+ 'detailed' => true | false (default) (echo the query in error messages)
+ 'debug' => true | false (default) (echo the query before quering it)
+ 'rollback' => true | false (default)
+ 'values' => array(...) (if $q is an sprintf format string)
+ );
+ */
+ global $_JSON;
+
+ if (!isset($q) || $q == '') {
+ $_SESSION['alert'][] = 'message:sql_query_failure:db_query/'.$SET['fv'].':query is empty';
+ return false;
+ }
+
+ if (!isset($SET['result'])) $SET['result'] = '';
+
+ // Adatbázis csatlakozás (ha szükséges)
+ if (isset($olr) && $olr != '') {
+ if (MYSQLI_ENABLED===true)
+ $mysql_get_server_info = mysqli_get_server_info($olr);
+ else
+ $mysql_get_server_info = @mysql_get_server_info($olr);
+ }
+ if (isset($olr) && $olr != '' && $mysql_get_server_info !== false) {
+ $lr = $olr;
+ } else {
+ unset($olr);
+ if (in_array(substr(strtolower($q),0,4), array('sele','show','expl','set ','use '))) $lr = @db_connect($SET['modul'], array('priv' => 'Read', 'fv' => $SET['fv']));
+ else $lr = @db_connect($SET['modul'], array('priv' => 'Write', 'fv' => $SET['fv']));
+ }
+ if ($lr === false) {
+ if ($SET['detailed'] === true || __DETAILED) $_SESSION['alert'][] = 'message:sql_connect_failure:db_query/'.$SET['fv'].':'.$SET['modul'].':'.$q;
+ else $_SESSION['alert'][] = 'message:sql_connect_failure:db_query/'.$SET['fv'];
+ return false;
+ }
+
+ // Ha behelyettesítendő paraméterek vannak
+ if (isset($SET['values']) && is_array($SET['values']) && count($SET['values']) > 0) {
+ $SET['values'] = array_map('db_escape_string', $SET['values'], array_fill(0 , count($SET['values']), $lr));
+ array_unshift($SET['values'], $q);
+ $q_pattern = $q;
+ $q = @call_user_func_array('sprintf', $SET['values']);
+ if ($q === false) {
+ $_SESSION['alert'][] = 'message:wrong_data:db_query:behelyettesítés:'.$SET['fv'];
+ return false;
+ }
+ }
+ if ((isset($SET['debug']) && $SET['debug']===true) || (defined('__DEBUG') && __DEBUG === true)) {
+ $_q = str_replace(" ",'',$q);
+ echo '<pre>info:debug:'.htmlspecialchars($SET['modul'].':'.$SET['fv'].':'.date('Y-m-d H:i:s').': '." \n".$_q)."<hr /></pre>";
+ if ($_GET['skin'] == 'ajax') $_JSON['sql log'][] = $SET['modul'].':'.$SET['fv'].':'.date('Y-m-d H:i:s').': '." \n".$_q;
+ if ($_GET['skin'] == 'rpc') {
+ openlog("MaYoR", LOG_PID | LOG_PERROR, LOG_LOCAL0);
+ syslog(LOG_WARNING, '[RPC]MySQL: '.(json_encode($SET)).", query: $_q {$_SERVER['REMOTE_ADDR']} ({$_SERVER['HTTP_USER_AGENT']})");
+ closelog();
+ }
+ }
+ if (
+ ($SET['detailed'] === true || __DETAILED)
+ && strpos($q_pattern, '%s') !== false
+ && (strpos($q_pattern, '`%s`') === false && strpos($q_pattern, "'%s'") === false)
+ ) $_SESSION['alert'][] = 'message:lehet hiba?:db_query/'.$SET['fv'].':'.$SET['modul'].':'.$q_pattern;
+
+ if ($SET['log']===true) mayorLogger(10,'mysql',$q,_USERACCOUNT);
+ if (MYSQLI_ENABLED===true)
+ $r = mysqli_query($lr,$q);
+ else
+ $r = @mysql_query($q, $lr);
+ define(MYSQL_LOGGER,false);
+ if (MYSQL_LOGGER === true) {
+ $filename = '/tmp/mysql.log';
+ $fp = fopen($filename, "a+");
+ fputs ($fp, $q."\n");
+ fclose ($fp);
+ }
+ /* WARNING HANDLER */
+// if ((isset($SET['debug']) && $SET['debug']===true) || (defined('__DEBUG') &&__DEBUG === true) || (defined('__DETAILED') && __DETAILED===true)) {
+ if ((isset($SET['debug']) && $SET['debug']===true) || (defined('__DEBUG') &&__DEBUG === true)) {
+ if (MYSQLI_ENABLED===true)
+ $warningCountResult = mysqli_query($lr,"SELECT @@warning_count");
+ else
+ $warningCountResult = mysql_query("SELECT @@warning_count",$lr);
+ if ($warningCountResult) {
+ if (MYSQLI_ENABLED===true)
+ $warningCount = mysqli_fetch_row($lr,$warningCountResult);
+ else
+ $warningCount = mysql_fetch_row($warningCountResult);
+ if ($warningCount[0] > 0) {
+ //Have warnings
+ if (MYSQLI_ENABLED===true)
+ $warningDetailResult = mysqli_query($lr, "SHOW WARNINGS");
+ else
+ $warningDetailResult = mysql_query("SHOW WARNINGS",$lr);
+ if ($warningDetailResult ) {
+ if (MYSQLI_ENABLED===true)
+ while ($warning = mysqli_fetch_assoc($lr, $warningDetailResult)) {dump($warning); mayorLogger(2,'mysql',$q.' '.$warning,_USERACCOUNT);}
+ else
+ while ($warning = mysql_fetch_assoc($warningDetailResult)) {dump($warning); mayorLogger(2,'mysql',$q.' '.$warning,_USERACCOUNT);}
+ }
+ }//Else no warnings
+ }
+ }
+ /* WARNING HANDLER */
+ if (!$r) {
+ // if ($SET['detailed'] === true || __DETAILED) $_SESSION['alert'][] = 'message:sql_query_failure:'.$SET['fv'].':'.':'.$q;
+ if ($SET['detailed'] === true || __DETAILED) {
+ if (MYSQLI_ENABLED===true) {
+ $_SESSION['alert'][] = 'message:sql_query_failure:mysqli:'.$SET['fv'].':'.mysqli_error($lr).':'.$q;
+ } else {
+ $_SESSION['alert'][] = 'message:sql_query_failure:mysql:'.$SET['fv'].':'.mysql_error($lr).':'.$q;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:sql_query_failure:'.$SET['fv'];
+ }
+ if ($SET['rollback'] === true) db_rollback($lr, $SET['fv']);
+ if (!isset($olr)) db_close($lr);
+ return false;
+ }
+
+ if (MYSQLI_ENABLED === true) {
+
+ if (in_array(substr(strtolower($q),0,4), array('sele','show','expl','(sel'))) {
+ $RESULT = array();
+ switch($SET['result']) {
+ case 'indexed':
+ while ($A = mysqli_fetch_assoc($r)) $RESULT[] = $A;
+ break;
+ case 'assoc':
+ while ($A = mysqli_fetch_assoc($r)) $RESULT[$A[$SET['keyfield']]] = $A;
+ break;
+ case 'multiassoc':
+ while ($A = mysqli_fetch_assoc($r)) $RESULT[$A[$SET['keyfield']]][] = $A;
+ break;
+ case 'idonly':
+ while ($A = mysqli_fetch_row($r)) $RESULT[] = $A[0];
+ break;
+ case 'value':
+ if (mysqli_num_rows($r) > 0) {
+ $A = mysqli_fetch_row($r); $RESULT = $A[0];
+ } else { $RESULT = null; }
+ break;
+ case 'record':
+ if (mysqli_num_rows($r) > 0) {
+ $A = mysqli_fetch_assoc($r); $RESULT = $A;
+ } else { $RESULT = null; }
+ break;
+ case 'keyvaluepair':
+ while ($A = mysqli_fetch_row($r)) $RESULT[$A[0]] = $A[1];
+ break;
+ case 'keyvalues':
+ while ($A = mysqli_fetch_row($r)) $RESULT[$A[0]][] = $A[1];
+ break;
+ }
+ } elseif ($SET['result'] == 'insert' && (substr(strtolower($q),0,6) == 'insert' || substr(strtolower($q),0,7) == 'replace')) {
+ $RESULT = mysqli_insert_id($lr);
+ mayorLogger(1,'mysql',$q,_USERACCOUNT);
+ } elseif ($SET['result'] == 'affected rows') {
+ $RESULT = mysqli_affected_rows($lr);
+ mayorLogger(1,'mysql',$q,_USERACCOUNT);
+ } else { // create, insert, de nem olyan resulttal...
+ $RESULT = $r;
+ mayorLogger(1,'mysql',$q,_USERACCOUNT);
+ }
+ } else { // OLD DRIVER
+
+ if (in_array(substr(strtolower($q),0,4), array('sele','show','expl','(sel'))) {
+ $RESULT = array();
+ switch($SET['result']) {
+ case 'indexed':
+ while ($A = mysql_fetch_assoc($r)) $RESULT[] = $A;
+ break;
+ case 'assoc':
+ while ($A = mysql_fetch_assoc($r)) $RESULT[$A[$SET['keyfield']]] = $A;
+ break;
+ case 'multiassoc':
+ while ($A = mysql_fetch_assoc($r)) $RESULT[$A[$SET['keyfield']]][] = $A;
+ break;
+ case 'idonly':
+ while ($A = mysql_fetch_row($r)) $RESULT[] = $A[0];
+ break;
+ case 'value':
+ if (mysql_num_rows($r) > 0) {
+ $A = mysql_fetch_row($r); $RESULT = $A[0];
+ } else { $RESULT = null; }
+ break;
+ case 'record':
+ if (mysql_num_rows($r) > 0) {
+ $A = mysql_fetch_assoc($r); $RESULT = $A;
+ } else { $RESULT = null; }
+ break;
+ case 'keyvaluepair':
+ while ($A = mysql_fetch_row($r)) $RESULT[$A[0]] = $A[1];
+ break;
+ case 'keyvalues':
+ while ($A = mysql_fetch_row($r)) $RESULT[$A[0]][] = $A[1];
+ break;
+ }
+ } elseif ($SET['result'] == 'insert' && (substr(strtolower($q),0,6) == 'insert' || substr(strtolower($q),0,7) == 'replace')) {
+ $RESULT = mysql_insert_id($lr);
+ mayorLogger(1,'mysql',$q,_USERACCOUNT);
+ } elseif ($SET['result'] == 'affected rows') {
+ $RESULT = mysql_affected_rows($lr);
+ mayorLogger(1,'mysql',$q,_USERACCOUNT);
+ } else { // create, insert, de nem olyan resulttal...
+ $RESULT = $r;
+ mayorLogger(1,'mysql',$q,_USERACCOUNT);
+ }
+ } // DRIVER
+
+ if (!isset($olr)) db_close($lr);
+ return $RESULT;
+
+ }
+
+//-----------------------------------------------------------------------//
+
+ function db_start_trans($lr) {
+ if ($lr != '')
+ if (MYSQLI_ENABLED === true)
+ mysqli_query($lr, "START TRANSACTION");
+ else
+ mysql_query("START TRANSACTION", $lr);
+ }
+
+ function db_commit($lr) {
+ if ($lr != '')
+ if (MYSQLI_ENABLED === true)
+ mysqli_query($lr, "COMMIT");
+ else
+ mysql_query("COMMIT", $lr);
+ }
+
+ function db_rollback($lr, $msg = '') {
+ if ($lr != '') {
+ $_SESSION['alert'][] = 'message:rollback:'.$msg;
+ if (MYSQLI_ENABLED === true)
+ mysqli_query($lr, "ROLLBACK");
+ else
+ mysql_query("ROLLBACK", $lr);
+ }
+ }
+
+//---------------------------------------------------------------------//
+
+ function db_escape_string($str, $olr = null) {
+
+ if (isset($olr)) $lr = $olr;
+ else $lr = db_connect('login');
+
+ if (!$lr) return false;
+
+ if(get_magic_quotes_gpc()) {
+ $return = mysql_real_escape_string(stripslashes($str), $lr);
+ } else {
+ if (MYSQLI_ENABLED===true)
+ $return = mysqli_real_escape_string($lr, $str);
+ else
+ $return = mysql_real_escape_string($str, $lr);
+ }
+ if (!isset($olr)) db_close($lr);
+
+ return $return;
+ }
+
+?>
diff --git a/mayor-orig/www/include/base/rights.php b/mayor-orig/www/include/base/rights.php
new file mode 100644
index 00000000..1f3eed0f
--- /dev/null
+++ b/mayor-orig/www/include/base/rights.php
@@ -0,0 +1,376 @@
+<?php
+/*
+ Module: base
+
+ validUser($sessionID,$policy,$skin='',$lang='')
+
+ - ellenőrizzük a $page, $sub, $f formai helyességét
+ - validUser - ellenőrzi, hogy be vagyunk-e jelentkezve, beállítja a konstansokst, ha kell elküld az auth oldalra
+ - validUser esetén a session kezelő fv-ek csatolása (backend függő)
+ - a module, psf include fájlainak és a pre fájlnak a csatolása
+
+ A validUser fv két funkciót lát el egyszerre (ellenőriz, és konstans beállít).
+ A konstansokat (pl. _SESSIONID) csak az aktuális policy-re állítjuk, a toPolicyra nem.
+ A validUser figyelembe veszi a _SESSION_MAX_IDLE_TIME konstans értékét: ha az activity+_SESSION_MAX_IDLE_TIME már elmúlt - akkor elutasít,
+ különben az aktivity értékét frissíti.
+
+ a '_POLICY'-t a base.php-ben definiáljuk.
+
+*/
+function sessionHash($algo='ripemd160', $hashThis='')
+{
+ if ($hashThis=='') $hashThis = uniqid(rand(), true);
+ if (!in_array($algo,hash_algos())) $algo = 'sha1';
+ $sessionID = substr( hash($algo, $hashThis), 0, 40 ); // 40: sha1, ripem160
+ return $sessionID;
+}
+
+if(!function_exists('hash_equals')) { // lásd még str
+ function hash_equals($str1, $str2) {
+ if(strlen($str1) != strlen($str2)) {
+ return false;
+ } else {
+ $res = $str1 ^ $str2;
+ $ret = 0;
+ for($i = strlen($res) - 1; $i >= 0; $i--) $ret |= ord($res[$i]);
+ return !$ret;
+ }
+ }
+}
+
+
+function sessionCookieEncode($sessionID,$now,$extra='')
+{
+ if ($extra=='') $extra = uniqid(rand(), true);
+ $extraHash=sessionHash('ripemd160',$extra);
+// pwHash added
+// $value = base64_encode(strtotime($now).'g'.$extraHash);
+ $pwHash = sessionHash('ripemd160',uniqid(rand(), true));
+ $value = base64_encode(strtotime($now).'g'.$extraHash.'g'.$pwHash);
+ return array('name'=>md5($sessionID), 'value'=>$value, 'store'=> $extraHash, 'pwHash'=>$pwHash);
+}
+
+function sessionCookieDecode($sessionID)
+{
+ return explode('g',base64_decode($_COOKIE[md5($sessionID)]));
+}
+
+function pseudoTokenGenerator() {
+
+ if (function_exists('openssl_random_pseudo_bytes'))
+ $token = bin2hex(openssl_random_pseudo_bytes(32));
+ else
+ $token = bin2hex(sessionHash());
+ return $token;
+}
+
+######################################################################
+# Azonosított user ellenőrzése a session tábla alapján
+######################################################################
+
+
+
+function validUser($sessionID,$policy,$skin='',$lang='') {
+
+ if (_RUNLEVEL === 'cron') {
+ define('_USERPASSWORD','MaYoR-cron');
+ define('_USERACCOUNT','MaYoR-cron');
+ define('_USERCN','MaYoR-cron User');
+ define('_STUDYID','');
+ define('_LANG',$lang);
+ define('_SESSIONID','cron');
+ return true;
+ }
+
+ if ($sessionID == '') {
+
+ if ($policy == _POLICY) {
+ define('_USERPASSWORD','');
+ define('_USERACCOUNT','');
+ define('_USERCN','');
+ define('_STUDYID','');
+// define('_SKIN',$skin);
+ define('_LANG',$lang);
+ define('_SESSIONID','');
+ }
+ return false;
+
+ } else {
+
+ $lr = db_connect('login', array('fv' => 'validUser'));
+
+ if ($lr === false) die('A keretrendeszer adatbázisa nem érhető el! (validUser)');
+ // ha nem tudta beállítani a sütit, akkor az $_sc üres lesz így a dt feltétel 1970-01-01, ami nem gond.
+// pwHash
+// list($_sessionDt,$_sessionCookie) = sessionCookieDecode($sessionID);
+ list($_sessionDt,$_sessionCookie,$_sessionPwHash) = sessionCookieDecode($sessionID);
+// pwHash
+// $query = "SELECT userAccount, userCn, studyId, decode(userPassword, '"._MYSQL_ENCODE_STR."'), skin, lang, activity, dt
+// FROM session WHERE sessionID='%s' AND policy='%s'";
+ $query = "SELECT userAccount, userCn, studyId, aes_decrypt(userPassword, '%s'), skin, lang, activity, dt
+ FROM session WHERE sessionID='%s' AND policy='%s'"; // [SECURITY-002] quickfix from marton.drotos@sztaki.hu
+
+ if (defined('_SESSION_MAX_IDLE_TIME') and _SESSION_MAX_IDLE_TIME != 0) $query .= " AND activity + INTERVAL "._SESSION_MAX_IDLE_TIME." HOUR > NOW()";
+
+ $query .= " AND dt='".date('Y-m-d H:i:s', (($_sessionDt=="")?null:$_sessionDt) )."'";
+ $query .= " AND sessionCookie='%s'";
+
+ $ret = db_query($query, array('fv' => 'validUser', 'modul' => 'login', 'result' => 'indexed', 'values' => array($_sessionPwHash, $sessionID, $policy, $_sessionCookie)), $lr);
+
+ $num = count($ret);
+ if ($num == 1) {
+
+ list($userAccount, $userCn, $studyId, $userPassword, $savedSkin, $lang, $activity, $dt) = array_values($ret[0]);
+ /* PDA */
+ global $SKINS;
+ if (_USER_AGENT!=='ppc' && @in_array($savedSkin,$SKINS) ) $skin=$savedSkin;
+ if ($policy == _POLICY) {
+ define('_USERACCOUNT',$userAccount);
+ define('_USERCN',$userCn);
+ define('_STUDYID',$studyId);
+ define('_USERPASSWORD',$userPassword);
+// define('_SKIN',$skin);
+ define('_LANG',$lang);
+ define('_SESSIONID',$sessionID);
+ }
+ // Aktivitás figyelése!
+ $query = "UPDATE session SET activity = NOW() WHERE sessionID = '%s'";
+ db_query($query, array('fv' => 'validUser', 'modul' => 'login', 'values' => array($sessionID)), $lr);
+ db_close($lr);
+ return true;
+
+ } else {
+
+ if ($policy == _POLICY) {
+ define('_USERPASSWORD','');
+ define('_USERACCOUNT','');
+ define('_USERCN','');
+ define('_STUDYID','');
+// define('_SKIN',$skin);
+ define('_LANG',$lang);
+ define('_SESSIONID','');
+ }
+ db_close($lr);
+ if ($num > 1) $_SESSION['alert'][] = 'message:multi_session';
+ if ($_sessionDt==="") define('_NOCOOKIE',true); // beállítjuk, hogy üzenni tudjunk
+
+ return false;
+
+ }
+
+ }
+
+}
+
+//===================================================================================================================================
+// ------------------------------------------
+// debug üzenetek tárolása - a $_DEBUG változóba kerül midnen
+// ------------------------------------------
+ if (_RUNLEVEL!=='cron') ob_start();
+
+// ------------------------------------------
+// a $page, $sub és $f csak a-z betűvel kezdődhet, utána pedig csak (a-z, /_-). $page és $f nem lehet üres
+// ------------------------------------------
+
+ if (
+ (preg_match('#^([a-z]|[A-Z])([0-9]|[a-z]|[A-Z]|/|_|-)*$#', $page) == false) OR
+ ($sub != '' AND preg_match('#^([a-z]|[A-Z])([0-9]|[a-z]|[A-Z]|/|_|-)*$#', $sub) == false) OR
+ (preg_match('#^([0-9]|[a-z]|[A-Z]|_|-)*$#', $f) == false)
+ ) {
+ $_SESSION['alert'][] = 'page:wrong_page:';
+ $RIGHTS_OK = false;
+ } else {
+ $RIGHTS_OK = true;
+ }
+
+// ------------------------------------------
+// Security Check: $policy szerinti ellenőrzés
+// ------------------------------------------
+
+ // A validUser (session.php) beállítja az alapvető session konstansokat is
+ if ( !validUser($sessionID,$policy,$skin,$lang) ) {
+ if ($AUTH[$policy]['authentication'] == 'required') {
+ if (defined('_NOCOOKIE')) $_SESSION['alert'][] = 'message:cookie';//$extendAlert='alert[]=message:cookie&';
+ $_SESSION['alert'][]='message:auth_failure:'._CONTROL_FLAG_REQUIRED;
+ header('Location: index.php?policy=public&page=auth&f=login&toPolicy='.$policy."&toPSF=$page:$sub:$f&sessionID=$sessionID");
+ die();
+ } else {
+ // Hibás, vagy nem létező sessionID esetének kezelése - ha nem kötelező a sessionID --> nem csinálunk semmit (lehet egy másik policy-ben valid
+ }
+
+ }
+ if (file_exists('include/share/session/base.php')) {
+ // A session kezeléshez szükséges backend függő függvények pl. memberOf
+ require('include/share/session/base.php');
+
+ }
+ // Remote Protocol Call (MaYoR)
+ if ($skin=='rpc') {
+ define('_RPC',true);
+ require_once('include/share/ssl/ssl.php');
+ try
+ {
+ $_RPC['senderNodeId'] = $senderNodeId = readVariable($_POST['senderNodeId'],'strictstring',0);
+ $RPC = new Interconnect();
+ $RPC->setRequestTarget('controller'); // A remoteHost lekérdezéshez kellhet
+ $RPC->setRemoteHostByNodeId($_RPC['senderNodeId']);
+ $RPC->processRequest(); // vélhetően van request
+ $_RPC['request'] = $RPC->getIncomingRequest();
+ }
+ catch (Exception $e)
+ {
+ //$func='';
+ //$DATA = array('error'=>$e->getMessage());
+ }
+ } else { define('_RPC',false); }
+ // Interconnect end
+
+ define('_RIGHTS_OK',$RIGHTS_OK);
+
+ /* XSRF2 */
+ define('__SALTNAME','MS_'.sha1($page.'_'.$sub.'_'.$f));
+ define('__SALTVALUE',sessionHash());
+ // mtoken
+ if (empty($_SESSION['mayorToken'])) {
+ $_SESSION['mayorToken'] = pseudoTokenGenerator();
+ }
+ if (count($_POST)>0) {
+ if (!empty($_POST['mayorToken'])) {
+ if (hash_equals($_SESSION['mayorToken'], $_POST['mayorToken'])) {
+ // OK, token regenerálás + visszakuldjuk az ETAG-ben
+ $_SESSION['mayorToken'] = pseudoTokenGenerator();
+ } else {
+ if ($_POST['action']!='') { /* Ha nincs action formváltozó, nincs szükség hibaüzenetre, a form nem módosít, de most... */
+ $_SESSION['alert'][] = 'message:not_valid_form:pnu2';
+ $_JSON['result'] = false;
+ }
+ unset($_POST['action']);
+ unset($action);
+ }
+ } else { // klasszikus ellenőrzés, fallback // TODO BEGIN DEPRECATED BLOCK
+ // $_JSON['result'] = false; // ITT gátolhatjuk a működést
+ if ($_COOKIE[__SALTNAME]=='') { // a session átállásig - ez semmitől nem véd, adott nevű sütit generálni bárki tud
+ $_SESSION['alert'][] = 'message:not_valid_form:no cookie'.$_SESSION[__SALTNAME];
+ $_JSON['result'] = false;
+ unset($_POST['action']);
+ unset($action);
+ } elseif (!is_null($_COOKIE[__SALTNAME]) && ($_COOKIE[__SALTNAME] == $_POST[__SALTNAME])) {
+ // rendben
+ } else {
+ if ($_POST['action']!='') { // Ha nincs action formváltozó, nincs szükség hibaüzenetre, a form nem módosít
+ $_SESSION['alert'][] = 'message:not_valid_form';
+ $_JSON['result'] = false;
+ }
+ unset($_POST['action']);
+ unset($action);
+ }
+ } // END DEPRECATED BLOCK
+ }
+ // eredeti post kezelés + ETAG prevent cache
+ if (($_SERVER['HTTPS']!=='on') || (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']!='' && substr($_SERVER['HTTP_REFERER'],4,1)!=='s')) $_ssl = false; else $_ssl=true;
+ if (@setcookie(__SALTNAME,__SALTVALUE,time()+60*60*_SESSION_MAX_IDLE_TIME,'/','',$_ssl, true) == false) {
+ $_SESSION['alert'][] = 'message:no_cookie:unabletoset';
+ }
+ /* /XSRF2 previous revision: r4138 */
+
+ // betöltjük az össes config-ot... (lásd még widgets)
+ try {
+ $_dirlist = scandir(_CONFIGDIR);
+ for ($i=0; $i<count($_dirlist); $i++) {
+ $_dir = $_dirlist[$i];
+ if (is_dir(_CONFIGDIR.'/'.$_dir) && substr($_dir,0,7)=='module-') {
+ $_configFile = _CONFIGDIR . "/".$_dir.'/config.php';
+ list($_rest,$_module) = explode('-',$_dir);
+ if (in_array($_module,$VALID_MODULES)) {
+ $_loadModule[] = $_module;
+ if (file_exists($_configFile)) {
+ require_once($_configFile);
+ }
+ }
+ }
+ }
+ } catch (Exception $e) {
+ $_SESSION['alert'][] = 'info:config hiba:'.$e->getMessage();
+ }
+ // ha betöltenénk az ÖSSZES modul include-jait, akkor be kéne mindent tölteni kb. ugyhogy ezt hagyjuk
+ if ($dh_all = @opendir("include/widgets/")) {
+ $includes = array();
+ while (($_file = readdir($dh_all)) !== false) {
+ if (substr($_file,-4) == '.php') $includes[] = $_file;
+ }
+ closedir($dh_all);
+ sort($includes);
+ for ($i = 0; $i < count($includes); $i++) {
+ require_once("include/widgets/".$includes[$i]);
+ }
+ }
+ unset($file);
+ /* ---- */
+ if (!in_array($page,$_loadModule)) $_loadModule[] = $page;
+ for ($i=0; $i<count($_loadModule); $i++) {
+ $_module = $_loadModule[$i];
+ if (in_array($_module,$VALID_MODULES)) {
+ if ($dh = @opendir("include/modules/$_module/base")) {
+ $includes = array();
+ while (($file = readdir($dh)) !== false) {
+ if (substr($file,-4) == '.php') $includes[] = $file;
+ }
+ closedir($dh);
+ sort($includes);
+ for ($j = 0; $j < count($includes); $j++) {
+ require_once("include/modules/$_module/base/".$includes[$j]);
+ }
+ }
+ }
+ }
+ unset($file);
+ /* ---- */
+
+
+ $skinFile = _CONFIGDIR."/skin-$skin/$page-config.php";
+ if ($sub == '') {
+ $includeFile = "include/modules/$page/$f.php";
+ $preFile = "policy/$policy/$page/$f-pre.php";
+ $pageFile = "policy/$policy/$page/$f.php";
+ $staticFile = "static/$lang/$page/$f.html";
+ } else {
+ $includeFile = "include/modules/$page/$sub/$f.php";
+ $preFile = "policy/$policy/$page/$sub/$f-pre.php";
+ $pageFile = "policy/$policy/$page/$sub/$f.php";
+ $staticFile = "static/$lang/$page/$sub/$f.html";
+ }
+ if (!file_exists($preFile) && !file_exists($pageFile) && !file_exists($staticFile))
+ $_SESSION['alert'][] = 'page:page_missing:'.$page.'-'.$sub.'-'.$f;
+ /* DEFAULTS zcheck() */
+ if (defined('_ENABLE_IFRAME_EMBEDING'))
+ define('_ENABLE_IFRAME_EMBEDDING',_ENABLE_IFRAME_EMBEDING);
+ elseif (!defined('_ENABLE_IFRAME_EMBEDDING'))
+ define('_ENABLE_IFRAME_EMBEDDING',false);
+
+ if (!defined('__MAX_MENU')) define('__MAX_MENU',7);
+
+ if (!defined('__SUPPORT_EMAIL_ADDRESS')) {
+ if (!defined('__EMAIL_ENABLED')) define('__EMAIL_ENABLED',false);
+ } elseif (!defined('__SUPPORT_EMAIL_NAME')) {
+ define('__SUPPORT_EMAIL_NAME',_SITE.' support');
+ if (!defined('__EMAIL_ENABLED')) define('__EMAIL_ENABLED',true);
+ } else {
+ if (!defined('__EMAIL_ENABLED')) define('__EMAIL_ENABLED',true);
+ }
+ // ---------
+ //Breadcrumb
+ if (count($_SESSION['breadcrumb'])>10) array_shift($_SESSION['breadcrumb']);
+ $_SESSION['breadcrumb'][] = array('page'=>"$page",'sub'=>"$sub",'f'=>"$f");
+ // ---------
+ if (file_exists($includeFile)) require($includeFile);
+ if (file_exists($skinFile)) require($skinFile);
+ if (file_exists($preFile)) include($preFile);
+
+// ---------------------------------------
+// debug üzenetek tárolásának vége
+// ---------------------------------------
+ $_DEBUG = ob_get_contents();
+ ob_end_clean();
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/base/str.php b/mayor-orig/www/include/base/str.php
new file mode 100644
index 00000000..5c5a7c07
--- /dev/null
+++ b/mayor-orig/www/include/base/str.php
@@ -0,0 +1,230 @@
+<?php
+/*
+ Module: base
+
+ function kisbetus($str)
+ function nagybetus($str)
+ function ekezettelen($str)
+ function utf8_to_iso88592($str)
+ function iso88592_to_utf8($str)
+ function str_cmp($a,$b)
+*/
+
+mb_internal_encoding("UTF-8");
+
+// -------------------------------------------------------------------
+// Kisbetűssé konvertálás (a magyar ékezetes karaktereket is)
+// -------------------------------------------------------------------
+
+function kisbetus($str) {
+ $str = strtolower(mb_convert_encoding($str, 'ISO-8859-2', 'UTF-8'));
+ $str = strtr($str, "", "");
+ $str = mb_convert_encoding($str, 'UTF-8', 'ISO-8859-2');
+ return $str;
+}
+
+// -------------------------------------------------------------------
+// Nagybetűssé konvertálás (a magyar ékezetes karaktereket is)
+// -------------------------------------------------------------------
+
+function nagybetus($str) {
+ $str = strtoupper(mb_convert_encoding($str, 'ISO-8859-2', 'UTF-8'));
+ $str = strtr($str, "", "");
+ $str = mb_convert_encoding($str, 'UTF-8', 'ISO-8859-2');
+ return $str;
+}
+
+// -------------------------------------------------------------------
+// Ékezettelenné konvertálás (UTF-8 --> Lat2 --> ékezettelen)
+// -------------------------------------------------------------------
+
+function ekezettelen($str) {
+ return strtr(mb_convert_encoding($str, 'ISO-8859-2', 'UTF-8'), '', 'aaeiooouuuAAEIOOOUUU');
+}
+
+/*
+// ---------------------------------------------------------------------------
+//
+// UTF8 <--> ISO88592 váltás
+//
+// ---------------------------------------------------------------------------
+
+function UTF8_to_ISO88592($str) {
+
+ return mb_convert_encoding($str,'ISO-8859-2','UTF-8');
+
+}
+
+function ISO88592_to_UTF8($str) {
+
+ return mb_convert_encoding($str,'UTF-8','ISO-8859-2');
+
+}
+*/
+
+// ---------------------------------------------------------------------------
+//
+// Két string összehasonlítása a magyar ABC szerint ($a < $b => -1)
+//
+// ---------------------------------------------------------------------------
+
+function str_cmp($a,$b) {
+
+ $ABC = Array('a'=>1,
+ ''=>1,
+ ''=>1,
+ 'b'=>3,
+ 'c'=>4,
+ 'd'=>5,
+ 'e'=>6,
+ ''=>7,
+ 'f'=>8,
+ 'g'=>9,
+ 'h'=>10,
+ 'i'=>11,
+ ''=>12,
+ 'j'=>13,
+ 'k'=>14,
+ 'l'=>15,
+ 'm'=>16,
+ 'n'=>17,
+ 'o'=>18,
+ ''=>18,
+ ''=>20,
+ ''=>20,
+ 'p'=>22,
+ 'q'=>23,
+ 'q'=>24,
+ 'r'=>25,
+ 's'=>26,
+ 't'=>27,
+ 'u'=>28,
+ ''=>28,
+ ''=>30,
+ ''=>30,
+ 'v'=>32,
+ 'x'=>33,
+ 'w'=>34,
+ 'y'=>35,
+ 'z'=>36
+ );
+
+ $a = kisbetus(mb_convert_encoding($a,'ISO-8859-2','UTF-8'));
+ $b = kisbetus(mb_convert_encoding($b,'ISO-8859-2','UTF-8'));
+
+ if ($a==$b) return 0;
+
+ $i=0;
+ while( $i<strlen($a) && $i<strlen($b) && $a[$i]==$b[$i]) {
+ $i++;
+ }
+
+ if ($i==strlen($a) && $i<strlen($b)) {
+ return 1;
+ } elseif ($i==strlen($b) && $i<strlen($a)) {
+ return -1;
+ } elseif ($ABC[$a[$i]] < $ABC[$b[$i]]) {
+ return -1;
+ } else {
+ return 1;
+ }
+}
+
+ function decimal_to_roman($number) {
+ $roman = '';
+ while ($number >= 1000) { $roman .= "M"; $number = $number -1000; }
+ while ($number >= 900) { $roman .= "CM"; $number = $number -900; }
+ while ($number >= 500) { $roman .= "D"; $number = $number -500; }
+ while ($number >= 400) { $roman .= "CD"; $number = $number -400; }
+ while ($number >= 100) { $roman .= "C"; $number = $number -100; }
+ while ($number >= 90) { $roman .= "XC"; $number = $number -90; }
+ while ($number >= 50) { $roman .= "L"; $number = $number -50; }
+ while ($number >= 40) { $roman .= "XL"; $number = $number -40; }
+ while ($number >= 10) { $roman .= "X"; $number = $number -10; }
+ while ($number >= 9) { $roman .= "IX"; $number = $number -9; }
+ while ($number >= 5) { $roman .= "V"; $number = $number -5; }
+ while ($number >= 4) { $roman .= "IV"; $number = $number -4; }
+ while ($number >= 1) { $roman .= "I"; $number = $number -1; }
+ return $roman;
+ }
+
+ function visszafele($e) {$b='';for($i=0; $i<mb_strlen($e,'utf-8'); $i++) $b = mb_substr($e,$i,1).$b; return $b;}
+
+ function mayor_array_join ($a='') {
+ $ARGS = func_get_args();
+ $x = array();
+ for ($i=0;$i<count($ARGS);$i++) {
+ $a = $ARGS[$i];
+ if (is_array($a)) foreach($a as $v) $x[] = $v; elseif ($a!='') $x[] = $a;
+ }
+ return $x;
+ }
+
+ if(!function_exists('hash_equals')) {
+ function hash_equals($str1, $str2) {
+ if(strlen($str1) != strlen($str2)) {
+ return false;
+ } else {
+ $res = $str1 ^ $str2;
+ $ret = 0;
+ for($i = strlen($res) - 1; $i >= 0; $i--) $ret |= ord($res[$i]);
+ return !$ret;
+ }
+ }
+ }
+
+ if ( !function_exists( 'hex2bin' ) ) {
+ function hex2bin( $str ) {
+ $sbin = "";
+ $len = strlen( $str );
+ for ( $i = 0; $i < $len; $i += 2 ) {
+ $sbin .= pack( "H*", substr( $str, $i, 2 ) );
+ }
+ return $sbin;
+ }
+ }
+
+ function makeLinksClickable($text){
+ $pattern[] = '/(\S+@\S+\.\S+)/';
+ $replace[] = '<a href="mailto:$1">$1</a>';
+ $pattern[] = '!(((f|ht)tp(s)?://)[-a-zA-Zа-яА-Я()0-9@:%_+.~#?&;//=]+)!i';
+// $replace[] = '<a href="$1" target="_blank">$1</a> <a href="$1" target="_blank"><span class="icon-circle-arrow-right"></span></a>';
+ $replace[] = '<a href="$1" target="_blank">[LINK]</a>';
+ return preg_replace($pattern, $replace, $text);
+ }
+ function supertext($txt) {
+ $r = $txt;
+ $r = htmlspecialchars($r);
+ $pattern[]='/@diakId:(\d+)/';
+ $pattern[]='/@tanarId:(\d+)/';
+ $pattern[]='/@tankorId:(\d+)/';
+ //$pattern[]='/@osztalyId:(\d+)/';
+ $replacement[]='<b><span class="diakNev icon-child" data-diakid="${1}"></span></b>';
+ $replacement[]='<b><span class="tanarNev icon-adult" data-tanarid="${1}"></span></b>';
+ $replacement[]='<b><span class="tankorAdat" data-tankorid="${1}">[tankör adatok]</span></b>';
+ //$replacement[]='<b><span class="osztalyAdat" data-osztalyid="${1}">[osztály adatok]</span></b>';
+ $r = preg_replace($pattern,$replacement,$r);
+ return $r;
+ }
+
+
+ require_once('include/share/date/names.php');
+ function superdate($datetime) {
+ global $aHetNapjai;
+ $stamp = strtotime($datetime);
+ $date = date('Y-m-d',$stamp);
+ $dow = date('N',$stamp);
+ $Hi = date('H:i',$stamp);
+ if ($Hi == '00:00') $Hi = '';
+ if ($stamp<=strtotime('-6 day')) {
+ return date('Y.m.d.', $stamp).' '.$Hi;
+ } elseif ($date==date('Y-m-d')) {
+ return 'Ma '.$Hi;
+ } elseif ($dow>date('N')) {
+ return 'Múlt hét '.kisbetus($aHetNapjai[$dow-1]).' '.$Hi;
+ } else {
+ return $aHetNapjai[$dow-1].' '.$Hi;
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/include/base/var.php b/mayor-orig/www/include/base/var.php
new file mode 100644
index 00000000..3068fbc6
--- /dev/null
+++ b/mayor-orig/www/include/base/var.php
@@ -0,0 +1,134 @@
+<?php
+ /*
+ Példa:
+ $szuletesiEv = readVariable($_POST['sze'], 'numeric unsigned', null, array(), '1900<$return && $return<2100');
+ */
+ function readVariable( $IN, $type = '', $default = null, $allowOnly = array(), $condition = null ) {
+
+ if (is_array($IN)) {
+ $return = array();
+ for ($i = 0; $i < count($IN); $i++) {
+ $_var = readVariable($IN[$i], $type, $default, $allowOnly, $condition);
+ if (isset($_var)) $return[] = $_var;
+ }
+ } else {
+ switch ($type) {
+ case 'numeric':
+ $return = (isset($IN) && is_numeric($IN)) ? intval($IN) : $default;
+ break;
+ case 'id':
+ case 'numeric unsigned':
+ $return = (isset($IN) && is_numeric($IN) && $IN >= 0) ? intval($IN) : $default;
+ break;
+ case 'float':
+ $return = (isset($IN) && is_numeric($IN)) ? floatval($IN) : $default;
+ break;
+ case 'float unsigned':
+ $return = (isset($IN) && is_numeric($IN) && $IN >= 0) ? floatval($IN) : $default;
+ break;
+ case 'datetime':
+ $return = (isset($IN) && $IN != '' && strtotime($IN) !== false && strtotime($IN) > 0) ? $IN : $default;
+ break;
+ case 'date':
+ $return = (isset($IN) && $IN != '' && strtotime($IN) !== false && strtotime($IN) > 0) ? date('Y-m-d',strtotime($IN)) : $default;
+ break;
+ case 'enum':
+ case 'emptystringnull':
+ case 'string':
+ if(get_magic_quotes_gpc()) $IN = stripslashes($IN); // -- DEPRECATED (mindig false)
+ $return = (isset($IN) && $IN != '') ? $IN : $default;
+ break;
+ case 'notempty':
+ $return = (isset($IN) && $IN != '') ? true : false;
+ break;
+ case 'bool':
+ // Ha nincs beállítva, akkor mindenképp true lenne így:
+ // $return = (isset($IN) && ($IN === 'false' || !$IN)) ? false : true;
+ $return = (isset($IN)) ? (($IN === 'false' || !$IN)? false : true) : $default;
+ break;
+ case 'strictstring':
+ $return = (isset($IN)) ? preg_replace("/[^a-zA-Z0-9_\-]/i",'',$IN) : $default;
+ break;
+ case 'html':
+ $return = (isset($IN)) ? preg_replace("/[^a-zA-Z0-9\ \.\,?_|:;űáéúőóüöíŰÁÉÚŐÓÜÖÍ\-]/i",'',$IN) : $default;
+ break;
+ case 'hexa':
+ $return = preg_replace("/[^0-9a-fA-F]/i",'',$IN);
+ break;
+ case 'number':
+ $return = preg_replace("/[^0-9]/",'',$IN);
+ break;
+ case 'sql':
+ $return = db_escape_string($IN);
+ if ($return === false) $return = $default;
+ break;
+ case 'path':
+ $return = ( preg_match('#^([a-z]|[A-Z]|[0-9])([0-9]|[a-z]|[A-Z]|/|_|-)*$#', $IN ) != false ) ? $IN : $default;
+ break;
+ case 'regexp':
+ $return = ( preg_match( "#$allowOnly[0]#", $IN ) == 1 ) ? $IN : $default;
+ break;
+ case 'regreplace':
+ $return = preg_replace( '#'.$allowOnly[0].'#i', '', $IN );
+ break;
+ case 'mail':
+ case 'email':
+ $return = filter_var($IN, FILTER_VALIDATE_EMAIL);
+ break;
+ case 'userAccount':
+ $return = (preg_match("#([a-z]|[A-Z]|[0-9]| |\.|,|_|[űáéúőóüöíŰÁÉÚŐÓÜÖÍäÄ]|-|@)*$#", $IN) != false) ? $IN : $default;
+ break;
+ default:
+ $return = $IN;
+ $_SESSION['alert'][] = 'message:unknown_type:'.$type.':readVariable';
+ break;
+ }
+ if ($return !== $default && !in_array($type,array('regexp','regreplace')) && count($allowOnly) > 0) $return = (in_array($return, $allowOnly)) ? $return : $default;
+ if (isset($condition) && $return != $default) $return = (eval("return $condition;")) ? $return : $default;
+ }
+
+ return $return;
+ }
+
+ function in_date_interval($dt,$tolDt,$igDt) {
+ $accept = false;
+ if ($dt == date('Y-m-d', strtotime($tolDt))) // ha a kezdőnapra esik
+ $accept = true;
+ if ($dt == date('Y-m-d', strtotime($igDt))) // ha a végnapra esik
+ $accept = true;
+ return (
+ $accept
+ || (
+ (is_null($tolDt) || strtotime($tolDt)<=strtotime($dt))
+ && (is_null($igDt) || strtotime($dt)<=strtotime($igDt))
+ )
+ );
+ }
+
+ // FIGYELEM! Csak megbízható belső kódban használjuk
+ function reindex($THIS, $HOW) {
+ // ha nincs megadva, hogy hogy, adjuk vissza az eredeti tömböt
+ if (!is_array($HOW) || count($HOW)==0) return $THIS;
+
+ $RET = array();
+ for ($i=0; $i<count($THIS); $i++) {
+ $val = '$RET';
+ foreach ( $HOW as $key ) {
+ $val .= '[$THIS[$i]["'.$key.'"]]';
+ }
+ $val .='[]=$THIS[$i];';
+ $fail = @eval($val); // not used
+ }
+ return $RET;
+ }
+
+ function dump() {
+
+ $ARGS=func_get_args();
+ echo '<pre>';
+ call_user_func_array('var_dump', $ARGS);
+ echo '<hr /></pre>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/menu/base.php b/mayor-orig/www/include/menu/base.php
new file mode 100644
index 00000000..c5a7d773
--- /dev/null
+++ b/mayor-orig/www/include/menu/base.php
@@ -0,0 +1,107 @@
+<?php
+#
+# MaYoR keretrendszer - konfigurációs file
+# (A telepítő által generálva)
+#
+
+// Base
+if (file_exists('include/menu/'._POLICY.'/'.$lang.'/base.php')) {
+ require('include/menu/'._POLICY.'/'.$lang.'/base.php');
+} else {
+ require('include/menu/'._POLICY.'/'._DEFAULT_LANG.'/base.php');
+}
+// Modules
+ $files = scandir('include/menu/'._POLICY.'/'.$lang);
+ $ff = array();
+ if (is_array($files)) foreach ($files as $file) {
+ list($name,$ext) = explode('.',$file);
+ if ($ext=='php' && substr($file,0,7)=='module-') $ff[] = $name;
+ }
+ sort($ff);
+ foreach ($ff as $name) {
+ require_once('include/menu/'._POLICY.'/'.$lang.'/'.$name.'.php');
+ }
+
+// Custom
+if (file_exists('../config/menu/'._POLICY.'/menu-'.$lang.'.php')) {
+ require('../config/menu/'._POLICY.'/menu-'.$lang.'.php');
+}
+
+/*
+ Egy menüpont (item, tétel) felépítése:
+ txt - a megjelenő szöveg
+ [url] - ha nincs: a $MENU alapján kiolvasható PSF-re mutat
+ - ha &-tel kezdődik: az lőzőhöz fúzzük
+ - ha http-vel kezdődik: a megadott URL-t vesszük egy az egyben (sessionID, lang, skin stb nélkül)
+ - egyéb esetben: az adott linket használjuk átadva a fontos paramétereket (sessionId, policy, lang, skin)
+ [get] - az utolsó esetben az átadandó paraméterek listája ()
+
+ A $MENU tömb felépítése:
+
+ $MENU = array(
+ $page1 => array( // Az első szinten a modulok menüpontjai
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ),
+ [$page2 => array( ... ), ...]
+ $item1 => array( // Az elsp szinten nem modulhoz tartozó tételek
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ),
+ [$item2 => array( ... ), ...]
+ 'modules' => array( // 'modules'-en belul csak page-ek vannak
+ $page1 => array(
+ 'sub' => array( // 'sub'-on belül csak sub-ok vannak
+ $sub1 => array(
+ $f1 => array(
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ),
+ [$f2 => array(
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ), ...]
+ ),
+ [$sub2 => arrray( ... ), ...]
+ ),
+ [$f1 => array(
+ array('txt1'[,'url1']),
+ [array('txt2'[,'url2']), ...]
+ ), ...]
+ ),
+ [$page2 => array( ... ), ...]
+ )
+ )
+
+Kirajzolva:
+
+$M[$page1][0] | $M[$page1][1] ... | $M[$page2][0] | ... | $M[$item1][0] | $M[$item1][1] ...
+$M['modules'][$page][$f1][0] | $M['modules'][$page][$f1][1] ... | $M['modules'][$page][$f2][0] | $M['modules'][$page][$f1][0] ...
+$M['modules'][$page]['sub'][$sub][$f1][0] ... $M['modules'][$page]['sub'][$sub][$f2][0]
+
+Például:
+
+ $MENU['modules']['login'] = array(
+ 'sub' => array(
+
+ 'sub1' => array(
+ 'f11' => array(
+ array('txt' => 'Kakukk'),
+ array('txt' => 'Tojás', 'url'=>'http://')
+ )
+ ),
+ 'sub2' => array(
+ 'f21' => array(
+ array('txt' => 'Cica'),
+ )
+ )
+
+ ),
+ 'login' => array(
+ array('txt' => 'Szülői bejelentkezés','url' => '&toPolicy=parent'),
+ array('txt' => 'Bejelentkezés','url' => '&toPolicy=private'),
+ )
+ );
+*/
+
+?>
diff --git a/mayor-orig/www/include/menu/parent/hu_HU/base.php b/mayor-orig/www/include/menu/parent/hu_HU/base.php
new file mode 100644
index 00000000..9bb5a5db
--- /dev/null
+++ b/mayor-orig/www/include/menu/parent/hu_HU/base.php
@@ -0,0 +1,44 @@
+<?php
+
+ if (defined('_SESSIONID') and _SESSIONID != '') {
+ $MENU['logout'] = array(
+ array(
+ 'txt' => 'Kilépés',
+ 'url' => 'index.php?policy=public&page=session&f=logout',
+ 'get' => array('sessionID','skin','lang')
+ )
+ );
+ $MENU['session'] = array(
+ array(
+ 'txt' => 'Jelszóváltoztatás',
+ 'url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=parent',
+ 'get' => array('skin','lang','sessionID'),
+ )
+ );
+ }
+ $MENU['modules']['session'] = array(
+ // 'searchAccount' => array(array('txt' => 'Felhasználó keresése','url' => 'index.php?page=session&sub=search&f=searchAccount')),
+// 'searchGroup' => array(array('txt' => 'Csoport keresése','url' => 'index.php?page=session&sub=search&f=searchGroup')),
+ 'changeMyPassword' => array(array('txt' => 'Jelszóváltoztatás','url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=parent','get' => array('skin','lang','sessionID'))),
+// 'sub' => array(
+// 'search' => array(
+// 'searchAccount' => array(array('txt' => 'Felhasználó keresése')),
+// 'searchGroup' => array(array('txt' => 'Csoport keresése')),
+// )
+// )
+ );
+// $MENU['home'] = array(
+// array('txt' => 'Kezdőlap', 'url' => 'index.php')
+// );
+
+ global $NAV;
+ if ($page=='session') {
+ if (is_array($MENU['modules']['session'])) foreach ($MENU['modules']['session'] as $_sub => $M) {
+ $NAV[2][] = array('page' => 'session', 'f' => $_sub);
+ }
+ }
+ $NAV[1][] = array('page'=>'session','f'=>'changeMyPassword');
+ $NAV[1][] = array('page'=>'logout');
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/menu/parent/hu_HU/module-naplo.php b/mayor-orig/www/include/menu/parent/hu_HU/module-naplo.php
new file mode 100644
index 00000000..7ccfde13
--- /dev/null
+++ b/mayor-orig/www/include/menu/parent/hu_HU/module-naplo.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ module: naplo
+*/
+
+ $NAVI[] = array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok', 'icon' => 'icon-bullhorn');
+ $NAVI[] = array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend&f=orarend', 'icon' => 'icon-th');
+ $NAVI[] = array('txt' => 'Jegyek', 'url' => 'index.php?page=naplo&sub=osztalyozo&f=diak', 'icon' => 'icon-pencil');
+
+
+ $MENU['naplo'] = array(
+ array('txt' => 'Napló'),
+// array('txt' => 'Jelentkezés fogadóórára', 'url' => 'index.php?page=naplo&sub=tanev&f=fogadoOra'),
+ array('txt' => 'Kezdőlap (diák választás)', 'url' => 'index.php?page=naplo&sub=&f=diakValaszto')
+ );
+
+ // A menüpontok sorrendjének beállítása - ettől még nem jelenik meg semmi :)
+ $MENU['modules']['naplo'] = array(
+ 'haladasi' => array(),
+ 'osztalyozo' => array(),
+ 'hianyzas' => array(),
+ 'bejegyzesek' => array(),
+ 'tanev' => array(),
+ 'intezmeny' => array(),
+ 'admin' => array(),
+ );
+
+if ($page=='naplo') {
+
+ if (__DIAK) {
+ $MENU['modules']['naplo']['haladasi'] = array(array('txt' => 'Haladási napló', 'url' => 'index.php?page=naplo&sub=haladasi&f=haladasi'));
+ $MENU['modules']['naplo']['osztalyozo'] = array(array('txt' => 'Osztályozó napló', 'url' => 'index.php?page=naplo&sub=osztalyozo&f=diak'));
+ $MENU['modules']['naplo']['hianyzas'] = array(array('txt' => 'Hiányzások', 'url' => 'index.php?page=naplo&sub=hianyzas&f=diak'));
+ $MENU['modules']['naplo']['bejegyzesek'] = array(array('txt' => 'Bejegyzések', 'url' => 'index.php?page=naplo&sub=bejegyzesek&f=bejegyzesek'));
+ $MENU['modules']['naplo']['ertekeles'] = array(array('txt' => 'Értékelés', 'url' => 'index.php?page=naplo&sub=ertekeles&f=ertekeles'));
+ $MENU['modules']['naplo']['sub']['osztalyozo'] = array(
+ 'dolgozat' => array(array('txt' => 'Dolgozatok')),
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány')),
+ 'stat' => array(array('txt' => 'Zárási statisztika')),
+ );
+ $MENU['modules']['naplo']['sub']['tanev'] = array(
+ 'munkaterv' => array(array('txt' => 'Éves munkaterv', 'url' => 'index.php?page=naplo&sub=tanev&f=munkaterv')),
+ 'fogadoOra' => array(array('txt' => 'Fogadóóra', 'url' => 'index.php?page=naplo&sub=tanev&f=fogadoOra'))
+ );
+ $MENU['modules']['naplo']['fogad'] = array(array('txt' => 'Fogadóóra', 'url' => 'index.php?page=naplo&sub=tanev&f=fogadoOra'));
+ $MENU['modules']['naplo']['munkaterv'] = array(array('txt' => 'Éves munkaterv', 'url' => 'index.php?page=naplo&sub=tanev&f=munkaterv'));
+ $MENU['modules']['naplo']['orarend'] = array(array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend&f=orarend'));
+ $MENU['modules']['naplo']['intezmeny'] = array(
+ array('txt' => 'Diák adatlapja', 'url' => 'index.php?page=naplo&sub=intezmeny&f=diak'),
+ array('txt' => 'Tanévváltás', 'url' => 'index.php?page=naplo&sub=intezmeny&f=valtas')
+ );
+ $MENU['modules']['naplo']['sub']['haladasi'] = array(
+ 'stat' => array(array('txt' => 'Haladási statisztika')),
+ );
+ if (__UZENO_INSTALLED===true)
+ $MENU['modules']['naplo']['uzeno'] = array(array('txt' => 'Üzenő', 'url' => 'index.php?page=naplo&sub=uzeno&f=uzeno'));
+ $MENU['modules']['naplo']['hirnok'] = array(array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok'));
+ $MENU['modules']['naplo']['valasztas'] = array(array('txt' => 'Kezdőlap (diák választás)', 'url' => 'index.php?page=naplo&sub=&f=diakValaszto'));
+
+ }
+
+ // Navigáció - alapértelmezés
+ array_unshift($NAV[1], array('page' => 'naplo', 'sub' => 'orarend'));
+ array_unshift($NAV[1], array('page' => 'naplo', 'sub' => 'hianyzas'));
+ array_unshift($NAV[1], array('page' => 'naplo', 'sub' => 'osztalyozo'));
+ array_unshift($NAV[1], array('page' => 'naplo', 'sub' => 'haladasi'));
+
+ if (is_array($MENU['modules']['naplo']['sub'][$sub])) foreach ($MENU['modules']['naplo']['sub'][$sub] as $_f => $M) {
+ $NAV[2][] = array('page' => 'naplo', 'sub' => $sub, 'f' => $_f);
+ } elseif (is_array($MENU['modules']['naplo'])) foreach ($MENU['modules']['naplo'] as $_f => $M) {
+ if ($_f != 'sub') $NAV[2][] = array('page' => 'naplo', 'sub' => $_f);
+ }
+}
+
+
+?>
diff --git a/mayor-orig/www/include/menu/private/hu_HU/base.php b/mayor-orig/www/include/menu/private/hu_HU/base.php
new file mode 100644
index 00000000..c872a4ca
--- /dev/null
+++ b/mayor-orig/www/include/menu/private/hu_HU/base.php
@@ -0,0 +1,67 @@
+<?php
+
+ if (defined('_SESSIONID') and _SESSIONID != '') {
+ $MENU['logout'] = array(
+ array(
+ 'txt' => 'Kilépés',
+ 'url' => 'index.php?policy=public&page=session&f=logout',
+ 'get' => array('sessionID','skin','lang')
+ )
+ );
+ $MENU['session'] = array(
+ array(
+ 'txt' => 'Felhasználók',
+ 'url' => 'index.php?page=session'
+// 'url' => 'index.php?page=session&sub=search&f=searchAccount'
+ )
+ );
+ }
+
+ if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+/* $MENU['admin'] = array(
+ array(
+ 'txt' => 'Admin',
+ 'url' => 'index.php?page=session&sub=admin&f=registration',
+ )
+ );
+*/
+ $MENU['modules']['session'] = array(
+ 'createAccount' => array(array('txt' => 'Új felhasználó')),
+ 'createGroup' => array(array('txt' => 'Új csoport')),
+ 'searchAccount' => array(array('txt' => 'Felhasználó keresése','url' => 'index.php?page=session&sub=search&f=searchAccount')),
+ 'searchGroup' => array(array('txt' => 'Csoport keresése','url' => 'index.php?page=session&sub=search&f=searchGroup')),
+ 'changeMyPassword' => array(array('txt' => 'Jelszóváltoztatás','url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=private','get' => array('skin','lang','sessionID'))),
+ 'sessionAdmin' => array(array('txt' => 'Munkamenetek')),
+ 'facebookConnect' => array(array('txt' => 'Facebook azonosítás')),
+ 'googleapi' => array(array('txt' => 'Google azonosítás')),
+ 'admin' => array(array('txt' => 'Szerver regisztráció','url'=>'index.php?page=session&sub=admin&f=registration')),
+ );
+ $MENU['modules']['session']['sub']['admin'] = array(
+ 'registration' => array(array('txt' => 'Végpont regisztráció a felhőbe','url'=>'index.php?page=session&sub=admin&f=registration')),
+ 'knownNodes' => array(array('txt' => 'Ismert végpontok','url'=>'index.php?page=session&sub=admin&f=knownNodes')),
+ );
+
+ } else {
+ $MENU['modules']['session'] = array(
+ 'searchAccount' => array(array('txt' => 'Felhasználó keresése','url' => 'index.php?page=session&sub=search&f=searchAccount')),
+ 'searchGroup' => array(array('txt' => 'Csoport keresése','url' => 'index.php?page=session&sub=search&f=searchGroup')),
+ 'changeMyPassword' => array(array('txt' => 'Jelszóváltoztatás','url' => 'index.php?page=password&sub=&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public&toPolicy=private','get' => array('skin','lang','sessionID'))),
+ 'facebookConnect' => array(array('txt' => 'Facebook belépés')),
+ 'googleapi' => array(array('txt' => 'Google belépés')),
+ );
+ }
+
+ global $NAV;
+ if ($page=='session') {
+ if (is_array($MENU['modules']['session'])) foreach ($MENU['modules']['session'] as $_sub => $M) {
+ $NAV['2'][] = array('page' => 'session', 'f' => $_sub);
+ }
+ } else {
+/* if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+ $NAV[1][] = array('page'=>'session');
+ } else {
+ $NAV[1][] = array('page'=>'session','f'=>'changeMyPassword');
+ }
+*/
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/menu/private/hu_HU/module-naplo.php b/mayor-orig/www/include/menu/private/hu_HU/module-naplo.php
new file mode 100644
index 00000000..422e5058
--- /dev/null
+++ b/mayor-orig/www/include/menu/private/hu_HU/module-naplo.php
@@ -0,0 +1,613 @@
+<?php
+/*
+ module: naplo
+*/
+ $MENU['naplo'] = array(array('txt' => 'Napló', 'url' => 'index.php?page=naplo'));
+
+ if (__DIAK === true) {
+ $NAVI[] = array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok', 'icon' => 'icon-bullhorn');
+ $NAVI[] = array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend&f=orarend', 'icon' => 'icon-th');
+ $NAVI[] = array('txt' => 'Jegyek', 'url' => 'index.php?page=naplo&sub=osztalyozo&f=diak', 'icon' => 'icon-pencil');
+ } elseif (__TANAR === true) {
+ $NAVI[] = array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok', 'icon' => 'icon-bullhorn');
+ $NAVI[] = array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend&f=orarend', 'icon' => 'icon-th');
+ $NAVI[] = array('txt' => 'Osztályozó', 'url' => 'index.php?page=naplo&sub=osztalyozo&f=tankor', 'icon' => 'icon-pencil');
+ } else {
+ $NAVI[] = array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok', 'icon' => 'icon-bullhorn');
+ $NAVI[] = array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend&f=orarend', 'icon' => 'icon-th');
+ }
+
+
+ // A menüpontok sorrendjének beállítása - ettől még nem jelenik meg semmi :)
+ $MENU['modules']['naplo'] = array(
+ 'haladasi' => array(),
+ 'osztalyozo' => array(),
+ 'hianyzas' => array(),
+ 'bejegyzesek' => array(),
+ 'orarend' => array(),
+ 'tanev' => array(),
+ 'intezmeny' => array(),
+ 'stat' => array(),
+ 'ertekeles' => array(),
+ 'admin' => array(),
+ );
+
+ /* Kiegészítő beállítások egy oldalhoz */
+ /* Contrib */
+ // $MENU['set']['private']['naplo']['tanev']['helyettesites']['refresh'] = 60;
+ /* -- */
+
+ if (__DIAK) {
+ $MENU['modules']['naplo']['haladasi'] = array(array('txt' => 'Haladási napló', 'url' => 'index.php?page=naplo&sub=haladasi'));
+ $MENU['modules']['naplo']['osztalyozo'] = array(array('txt' => 'Osztályozó napló', 'url' => 'index.php?page=naplo&sub=osztalyozo'));
+ $MENU['modules']['naplo']['hianyzas'] = array(array('txt' => 'Hiányzások', 'url' => 'index.php?page=naplo&sub=hianyzas'));
+ $MENU['modules']['naplo']['bejegyzesek'] = array(array('txt' => 'Bejegyzések', 'url' => 'index.php?page=naplo&sub=bejegyzesek'));
+ $MENU['modules']['naplo']['diakTankorJelentkezes'] = array(array('txt'=> 'Tankörjelentkezés', 'url'=> 'index.php?page=naplo&sub=intezmeny&f=diakTankorJelentkezes'));
+ $MENU['modules']['naplo']['esemeny'] = array(array('txt' => 'Esemény jelentkezés', 'url' => 'index.php?page=naplo&sub=esemeny'));
+ $MENU['modules']['naplo']['diakFelmentes'] = array(array('txt' => 'Felmentés', 'url' => 'index.php?page=naplo&sub=intezmeny&f=diakFelmentes'));
+ $MENU['modules']['naplo']['ertekeles'] = array(array('txt' => 'Értékelés', 'url' => 'index.php?page=naplo&sub=ertekeles'));
+ $MENU['modules']['naplo']['hibabejelento'] = array(array('txt' => 'Kérelmek', 'url' => 'index.php?page=naplo&sub=hibabejelento&f=admin'));
+ $MENU['modules']['naplo']['koszi'] = array(array('txt' => 'Köszi', 'url' => 'index.php?page=naplo&sub=koszi'));
+ $MENU['modules']['naplo']['hirnok'] = array(array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok'));
+
+ $MENU['modules']['naplo']['sub']['hirnok'] = array(
+ 'hirnok' =>array(array('txt' => 'Hírnök', 'icon'=>'icon-bullhorn')),
+ 'hirnokFeliratkozas' => array(array('txt' => 'Hírnök beállítás', 'icon'=>'icon-cog'))
+ );
+ $MENU['modules']['naplo']['sub']['osztalyozo'] = array(
+ 'dolgozat' => array(array('txt' => 'Dolgozatok')),
+ 'szovegesErtekeles' => array(array('txt' => 'Szöveges értékelés')),
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány')),
+ 'stat' => array(array('txt' => 'Zárási statisztika')),
+ );
+ $MENU['modules']['naplo']['orarend'] = array(
+ array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend'),
+ array('txt' => 'Szabad termek', 'url' => 'index.php?page=naplo&sub=orarend&f=szabadTerem'),
+ );
+ $MENU['modules']['naplo']['tanev'] = array(
+ array('txt' => 'Munkaterv', 'url' => 'index.php?page=naplo&sub=tanev&f=munkaterv')
+ );
+ $MENU['modules']['naplo']['sub']['hibabejelento'] = array(
+ 'hibabejelento' => array(array('txt' => 'Új kérelem')),
+ );
+ $MENU['modules']['naplo']['intezmeny'] = array(array('txt' => 'Tanévváltás', 'url' => 'index.php?page=naplo&sub=intezmeny'));
+
+ $MENU['modules']['naplo']['sub']['haladasi'] = array(
+ 'hetes' => array(array('txt' => 'Hetesek')),
+ 'stat' => array(array('txt' => 'Haladási statisztika')),
+ );
+ if(__UZENO_INSTALLED===true)
+ $MENU['modules']['naplo']['uzeno'] = array(array('txt' => 'Üzenő', 'url' => 'index.php?page=naplo&sub=uzeno&f=uzeno'));
+ $MENU['modules']['naplo']['sub']['koszi'] = array(
+ 'koszi'=> array(array('txt' => 'Jelentkezés', 'url' => 'index.php?page=naplo&sub=koszi&f=koszi')),
+ 'kosziAdmin'=>array(array('txt' => 'Pont jóváhagyás', 'url' => 'index.php?page=naplo&sub=koszi&f=kosziAdmin')),
+ 'esemenyAdmin'=>array(array('txt' => 'Esemény adminisztráció', 'url' => 'index.php?page=naplo&sub=koszi&f=esemenyAdmin')),
+ );
+
+ } elseif (__TANAR) {
+ $MENU['modules']['naplo']['haladasi'] = array(array('txt' => 'Haladási napló', 'url' => 'index.php?page=naplo&sub=haladasi'));
+ $MENU['modules']['naplo']['osztalyozo'] = array(array('txt' => 'Osztályozó napló', 'url' => 'index.php?page=naplo&sub=osztalyozo'));
+ $MENU['modules']['naplo']['hianyzas'] = array(array('txt' => 'Hiányzások', 'url' => 'index.php?page=naplo&sub=hianyzas'));
+ $MENU['modules']['naplo']['bejegyzesek'] = array(array('txt' => 'Bejegyzések', 'url' => 'index.php?page=naplo&sub=bejegyzesek'));
+ $MENU['modules']['naplo']['tanmenet'] = array(array('txt' => 'Tanmenetek', 'url' => 'index.php?page=naplo&sub=tanmenet'));
+ $MENU['modules']['naplo']['intezmeny'][] = array('txt' => 'Intézményi adatok', 'url' => 'index.php?page=naplo&sub=intezmeny');
+ $MENU['modules']['naplo']['hibabejelento'] = array(array('txt' => 'Kérelmek', 'url' => 'index.php?page=naplo&sub=hibabejelento&f=admin'));
+ $MENU['modules']['naplo']['ertekeles'] = array(array('txt' => 'Értékelés', 'url' => 'index.php?page=naplo&sub=ertekeles'));
+ $MENU['modules']['naplo']['orarend'] = array(array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend'));
+ $MENU['modules']['naplo']['esemeny'] = array(array('txt' => 'Események', 'url' => 'index.php?page=naplo&sub=esemeny'));
+ $MENU['modules']['naplo']['nyomtatas'][] = array('txt' => 'Nyomtatás', 'url' => 'index.php?page=naplo&sub=nyomtatas');
+ $MENU['modules']['naplo']['tanev'] = array(
+ array('txt' => 'Munkaterv', 'url' => 'index.php?page=naplo&sub=tanev&f=munkaterv'),
+ array('txt' => 'Fogadóóra', 'url' => 'index.php?page=naplo&sub=tanev&f=fogadoOra'),
+ );
+ $MENU['modules']['naplo']['sub']['ertekeles'] = array(
+ 'osszesites' => array(array('txt' => 'Összesítés')),
+ );
+ $MENU['modules']['naplo']['sub']['intezmeny'] = array(
+ 'tankorDiak' => array(array('txt' => 'Tankörnévsor', 'url' => 'index.php?page=naplo&sub=intezmeny&f=tankorDiak')),
+ 'diakTankor' => array(array('txt' => 'Diák tankörei', 'url'=> 'index.php?page=naplo&sub=intezmeny&f=diakTankor')),
+ 'diakTankorJelentkezes' => array(array('txt' => 'Diák választott tankörei', 'url'=> 'index.php?page=naplo&sub=intezmeny&f=diakTankorJelentkezes')),
+ 'diak' => array(array('txt' => 'Diákok', 'url' => 'index.php?page=naplo&sub=intezmeny&f=diak')),
+ 'diakFelmentes' => array(array('txt' => 'Felmentés', 'url' => 'index.php?page=naplo&sub=intezmeny&f=diakFelmentes')),
+ 'valtas'=> array(array('txt' => 'Tanévváltás', 'url' => 'index.php?page=naplo&sub=intezmeny&f=valtas')),
+ 'tovabbkepzes' => array(array('txt' => 'Továbbképzés')),
+ );
+ $MENU['modules']['naplo']['sub']['orarend'] = array(
+ 'helyettesites' => array(array('txt'=> 'Helyettesítések')),
+ 'szabadTerem' => array(array('txt' => 'Szabad termek' /*, 'url' => 'index.php?page=naplo&sub=tanev&f=szabadTerem' */)),
+ 'tanarOrarend' => array(array('txt' => 'Speciális összesített tanári órarend (xls)')),
+ );
+ $MENU['modules']['naplo']['sub']['tanev'] = array(
+ 'diakTanarai' => array(array('txt' => 'Diák tanára')),
+ );
+ $MENU['modules']['naplo']['sub']['hibabejelento'] = array(
+ 'hibabejelento' => array(array('txt' => 'Új kérelem')),
+ );
+ $MENU['modules']['naplo']['sub']['osztalyozo'] = array(
+ 'tankor' => array(array('txt' => 'Tankör osztályzatai')),
+ 'diak' => array(array('txt' => 'Diák osztályzatai')),
+ 'dolgozat' => array(array('txt' => 'Dolgozatok')),
+ 'szovegesErtekeles' => array(array('txt' => 'Szöveges értékelés')),
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány')),
+ 'stat' => array(array('txt' => 'Zárási statisztika')),
+ );
+ if (__OSZTALYFONOK === true) $MENU['modules']['naplo']['sub']['osztalyozo']['targySorrend'] = array(array('txt' => 'Tárgysorrend'));
+ $MENU['modules']['naplo']['sub']['bejegyzesek'] = array(
+ 'bejegyzesek' => array(array('txt' => 'Bejegyzések listája')),
+ 'ujBejegyzes' => array(array('txt' => 'Új bejegyzések')),
+ );
+ $MENU['modules']['naplo']['sub']['esemeny'] = array(
+ 'ujEsemeny' => array(array('txt' => 'Esemény felvétel/módosítás')),
+ 'esemenyDiak' => array(array('txt' => 'Jelentkezők kezelése')),
+ );
+ $MENU['modules']['naplo']['sub']['tanmenet'] = array(
+ 'tanmenetTankor' => array(array('txt' => 'Tanmenetek tankörhöz rendelése')),
+ 'tanmenetJovahagyas' => array(array('txt' => 'Tanmenet jóváhagyás')),
+ 'tanmenetInfo' => array(array('txt' => 'Tanmenet részletei')),
+ 'tanmenetModositas' => array(array('txt' => 'Tanmenet módosítása')),
+ 'ujTanmenet' => array(array('txt' => 'Új tanmenet létrehozása')),
+ );
+ $MENU['modules']['naplo']['sub']['haladasi'] = array(
+ 'hetes' => array(array('txt' => 'Hetesek')),
+ 'stat' => array(array('txt' => 'Haladási statisztika')),
+ 'elszamolas' => array(array('txt' => 'Munkaidő')),
+ );
+ $MENU['modules']['naplo']['sub']['hianyzas'] = array(
+ 'osztaly' => array(array('txt' => 'Osztály hiányzásösszesítő')),
+ 'osztalyNap' => array(array('txt' => 'Osztály napi hiányzásösszesítő')),
+ 'diak' => array(array('txt' => 'Diák hiányzásai (naptár nézet)')),
+ 'diakLista' => array(array('txt' => 'Diák hiányzásai (lista)')),
+ 'diakIgazolatlan' => array(array('txt' => 'Diák igazolatlanjai (lista)')),
+ 'info' => array(array('txt' => 'Statisztika')),
+ );
+ $MENU['modules']['naplo']['sub']['nyomtatas'] = array(
+ 'osztalyozonaplo' => array(array('txt' => 'Osztályozónapló nyomtatása')),
+ 'torzslap' => array(array('txt'=>'Törzslap')),
+ 'helyettesitesinaplo' => array(array('txt' => 'Helyettesítési-napló nyomtatása')),
+ 'ertesito' => array(array('txt' => 'Értesítő'))
+ );
+ if(__UZENO_INSTALLED===true)
+ $MENU['modules']['naplo']['uzeno'] = array(array('txt' => 'Üzenő', 'url' => 'index.php?page=naplo&sub=uzeno&f=uzeno'));
+
+ $MENU['modules']['naplo']['hirnok'] = array(array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok'));
+
+ $MENU['modules']['naplo']['koszi'] = array(array('txt' => 'Köszi', 'url' => 'index.php?page=naplo&sub=koszi&f=kosziAdmin'));
+ $MENU['modules']['naplo']['sub']['hirnok'] = array(
+ 'hirnok' =>array(array('txt' => 'Hírnök', 'icon'=>'icon-bullhorn')),
+ 'hirnokFeliratkozas' => array(array('txt' => 'Hírnök beállítás', 'icon'=>'icon-cog'))
+ );
+
+
+ } elseif (__TITKARSAG === true) {
+
+/* Titkárság */
+
+ $MENU['modules']['naplo']['haladasi'] = array(array('txt' => 'Haladási napló', 'url' => 'index.php?page=naplo&sub=haladasi'));
+ $MENU['modules']['naplo']['osztalyozo'] = array(array('txt' => 'Osztályozó napló', 'url' => 'index.php?page=naplo&sub=osztalyozo'));
+ $MENU['modules']['naplo']['hianyzas'] = array(array('txt' => 'Hiányzások', 'url' => 'index.php?page=naplo&sub=hianyzas'));
+ $MENU['modules']['naplo']['orarend'] = array(array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend'));
+ $MENU['modules']['naplo']['hibabejelento'] = array(array('txt' => 'Kérelmek', 'url' => 'index.php?page=naplo&sub=hibabejelento&f=admin'));
+ $MENU['modules']['naplo']['nyomtatas'][] = array('txt' => 'Nyomtatás', 'url' => 'index.php?page=naplo&sub=nyomtatas');
+ $MENU['modules']['naplo']['export'][] = array('txt' => 'Export', 'url' => 'index.php?page=naplo&sub=export&f=diakExport');
+ $MENU['modules']['naplo']['stat'][] = array('txt' => 'Statisztika', 'url' => 'index.php?page=naplo&sub=export&f=letszam');
+ $MENU['modules']['naplo']['tanev'] = array(
+ array('txt' => 'Munkaterv', 'url' => 'index.php?page=naplo&sub=tanev&f=munkaterv'),
+ array('txt' => 'Fogadóóra', 'url' => 'index.php?page=naplo&sub=tanev&f=fogadoOra'),
+ );
+ $MENU['modules']['naplo']['intezmeny'] = array(array('txt' => 'Intézményi adatok', 'url' => 'index.php?page=naplo&sub=intezmeny'));
+ $MENU['modules']['naplo']['sub']['orarend'] = array(
+ 'helyettesites' => array(array('txt' => 'Helyettesítés')),
+ 'szabadTerem' => array(array('txt' => 'Szabad termek' )),
+ );
+ $MENU['modules']['naplo']['sub']['tanev'] = array(
+ 'diakTanarai' => array(array('txt' => 'Diák tanára')),
+ );
+ $MENU['modules']['naplo']['sub']['hibabejelento'] = array(
+ 'hibabejelento' => array(array('txt' => 'Új kérelem')),
+ );
+ $MENU['modules']['naplo']['sub']['osztalyozo'] = array(
+ 'tankor' => array(array('txt' => 'Tankör osztályzatai')),
+ 'diak' => array(array('txt' => 'Diák osztályzatai')),
+ 'dolgozat' => array(array('txt' => 'Dolgozatok')),
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány')),
+ 'stat' => array(array('txt' => 'Zárási statisztika')),
+ 'targySorrend' => array(array('txt' => 'Tárgysorrend')),
+ );
+ $MENU['modules']['naplo']['sub']['haladasi'] = array(
+ 'stat' => array(array('txt' => 'Haladási statisztika')),
+// 'elszamolas' => array(array('txt' => 'Elszámolás')),
+ );
+ $MENU['modules']['naplo']['sub']['intezmeny'] = array(
+ 'valtas' => array(array('txt' => 'Intézményváltás')),
+ 'diak' => array(array('txt' => 'Diákok')),
+ 'zaradek' => array(array('txt' => 'Záradék')),
+ );
+ $MENU['modules']['naplo']['sub']['export'] = array(
+ 'diakExport' => array(array('txt' => 'Diak adatok')),
+ 'tantargyFelosztas' => array(array('txt' => 'Tantárgyfelosztás export')),
+ );
+ $MENU['modules']['naplo']['sub']['hianyzas'] = array(
+ 'info' => array(array('txt' => 'Statisztika')),
+ 'oktstat' => array(array('txt' => 'Októberi statisztika')),
+ 'osztaly' => array(array('txt' => 'Osztály hiányzásösszesítő')),
+ );
+ $MENU['modules']['naplo']['sub']['nyomtatas'] = array(
+ 'tankorNaplohozRendeles' => array(array('txt' => 'Tankör naplóhozrendelése')),
+ 'osztalyozonaplo' => array(array('txt' => 'Osztályozónapló nyomtatása')),
+ 'haladasinaplo' => array(array('txt' => 'Haladásinapló nyomtatása')),
+ 'torzslap' => array(array('txt'=>'Törzslap')),
+ 'zaradekok' => array(array('txt' => 'Záradékok, bejegyzések nyomtatása')),
+ 'diakTankorJelentkezes' => array(array('txt' => 'Tankörjelentkezés')),
+ 'ertesito' => array(array('txt' => 'Értesítő', 'rejtett' => true)),
+ 'szovegesErtekeles' => array(array('txt' => 'Szöveges értékelés', 'rejtett' => true)),
+ );
+
+ $MENU['modules']['naplo']['sub']['stat'] = array(
+ 'letszam' => array(array('txt'=>'Létszám statisztika')),
+ 'lemorzsolodas' => array(array('txt'=>'Lemorzsolódás')),
+ );
+
+
+ }
+ if (__VEZETOSEG===true) {
+
+/* Vezetőség */
+
+ $MENU['modules']['naplo']['haladasi'] = array(array('txt' => 'Haladási napló', 'url' => 'index.php?page=naplo&sub=haladasi'));
+ $MENU['modules']['naplo']['osztalyozo'] = array(array('txt' => 'Osztályozó napló', 'url' => 'index.php?page=naplo&sub=osztalyozo'));
+ $MENU['modules']['naplo']['hianyzas'] = array(array('txt' => 'Hiányzások', 'url' => 'index.php?page=naplo&sub=hianyzas'));
+ $MENU['modules']['naplo']['bejegyzesek'] = array(array('txt' => 'Bejegyzések', 'url' => 'index.php?page=naplo&sub=bejegyzesek'));
+ $MENU['modules']['naplo']['tanmenet'] = array(array('txt' => 'Tanmenetek', 'url' => 'index.php?page=naplo&sub=tanmenet'));
+ $MENU['modules']['naplo']['nyomtatas'][] = array('txt' => 'Nyomtatás', 'url' => 'index.php?page=naplo&sub=nyomtatas');
+ $MENU['modules']['naplo']['esemeny'] = array(array('txt' => 'Események', 'url' => 'index.php?page=naplo&sub=esemeny'));
+ $MENU['modules']['naplo']['tanev'][] = array('txt' => 'Tanév adatok', 'url' => 'index.php?page=naplo&sub=tanev');
+ $MENU['modules']['naplo']['export'][] = array('txt' => 'Export', 'url' => 'index.php?page=naplo&sub=export&f=diakExport');
+ $MENU['modules']['naplo']['ertekeles'] = array(array('txt' => 'Értékelés', 'url' => 'index.php?page=naplo&sub=ertekeles'));
+ $MENU['modules']['naplo']['hibabejelento'] = array(array('txt' => 'Kérelmek', 'url' => 'index.php?page=naplo&sub=hibabejelento&f=admin'));
+
+ $MENU['modules']['naplo']['intezmeny'] = array(array('txt' => 'Intézményi adatok', 'url' => 'index.php?page=naplo&sub=intezmeny'));
+
+ $MENU['modules']['naplo']['stat'] = array(array('txt' => 'Statisztika', 'url' => 'index.php?page=naplo&sub=stat&f=letszam'));
+
+ $MENU['modules']['naplo']['sub']['intezmeny'] = array (
+ 'tankorDiak' => array(array('txt' => 'Tankörnévsor', 'url' => 'index.php?page=naplo&sub=intezmeny&f=tankorDiak')),
+ 'tankorTanar' => array(array('txt' => 'Tankör tanárok', 'url' => 'index.php?page=naplo&sub=intezmeny&f=tankorTanar')),
+ 'tankorTanarHozzarendeles' => array(array('txt' => 'Tantárgyfelosztás, tankör-tanár')),
+ 'diak' => array(array('txt' => 'Diákok')),
+ 'diakTankor' => array(array('txt' => 'Diák tankörei', 'url'=> 'index.php?page=naplo&sub=intezmeny&f=diakTankor')),
+ 'diakTankorJelentkezes' => array(array('txt'=> 'Tankörjelentkezés', 'url'=> 'index.php?page=naplo&sub=intezmeny&f=diakTankorJelentkezes')),
+ 'valtas' => array(array('txt' => 'Tanévváltás', 'url' => 'index.php?page=naplo&sub=intezmeny&f=valtas')),
+ 'tankorCsoport' => array(array('txt' => 'Tankörcsoportok*', 'url' => 'index.php?page=naplo&sub=tanev&f=tankorCsoport')),
+ 'tankorBlokk' => array(array('txt' => 'Tankörblokkok*', 'url' => 'index.php?page=naplo&sub=tanev&f=tankorBlokk')),
+ 'diakFelmentes' => array(array('txt' => 'Diák felmentése', 'rejtett' => true)),
+ 'zaradek' => array(array('txt' => 'Záradék')),
+ 'tankorLetszam' => array(array('txt' => 'Tankörlétszámok', 'rejtett' => true)),
+ 'kepesitesek' => array(array('txt' => 'Képesítések')),
+ 'tovabbkepzes' => array(array('txt' => 'Továbbképzés')),
+ );
+
+
+ $MENU['modules']['naplo']['sub']['hibabejelento'] = array(
+ 'hibabejelento' => array(array('txt' => 'Új kérelem')),
+ );
+ $MENU['modules']['naplo']['sub']['haladasi'] = array(
+ 'helyettesites' => array(array('txt' => 'Helyettesítés')),
+ 'pluszora' => array(array('txt' => 'Plusz óra')),
+ 'minuszora' => array(array('txt' => 'Óra elmaradás')),
+ 'osszevonas' => array(array('txt' => 'Összevonás')),
+ 'teremModositas' => array(array('txt' => 'Haladási teremmódosító')),
+ 'specialis' => array(array('txt' => 'Speciális nap')),
+ 'elmaradas' => array(array('txt' => 'Haladási elmaradások')),
+ 'stat' => array(array('txt' => 'Haladási statisztika')),
+ 'elszamolas' => array(array('txt' => 'Elszámolás')),
+ 'oralatogatas' => array(array('txt' => 'Óralátogatás')),
+ 'hetes' => array(array('txt' => 'Hetesek')),
+ );
+ $MENU['modules']['naplo']['sub']['osztalyozo'] = array(
+ 'tankor' => array(array('txt' => 'Tankör osztályzatai')),
+ 'diak' => array(array('txt' => 'Diák osztályzatai')),
+ 'szovegesErtekeles' => array(array('txt' => 'Szöveges értékelés')),
+ 'dolgozat' => array(array('txt' => 'Dolgozatok')),
+ 'vizsga' => array(array('txt' => 'Vizsga')),
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány')),
+ 'stat' => array(array('txt' => 'Zárási statisztika')),
+ 'targySorrend' => array(array('txt' => 'Tárgysorrend')),
+ );
+ $MENU['modules']['naplo']['sub']['bejegyzesek'] = array(
+ 'bejegyzesek' => array(array('txt' => 'Bejegyzések listája')),
+ 'ujBejegyzes' => array(array('txt' => 'Új bejegyzések')),
+ );
+ $MENU['modules']['naplo']['sub']['esemeny'] = array(
+ 'ujEsemeny' => array(array('txt' => 'Esemény felvétel/módosítás')),
+ 'esemenyDiak' => array(array('txt' => 'Jelentkezők kezelése')),
+ );
+ $MENU['modules']['naplo']['sub']['tanmenet'] = array(
+ 'tanmenetLeadas' => array(array('txt' => 'Tanmenet leadás')),
+ 'tanmenetJovahagyas' => array(array('txt' => 'Tanmenet jóváhagyás')),
+ 'tanmenetTankor' => array(array('txt' => 'Tanmenetek tankörhöz rendelése')),
+ 'tanmenetInfo' => array(array('txt' => 'Tanmenet részletei')),
+ 'tanmenetModositas' => array(array('txt' => 'Tanmenet módosítása')),
+ 'ujTanmenet' => array(array('txt' => 'Új tanmenet létrehozása')),
+ );
+ $MENU['modules']['naplo']['sub']['nyomtatas'] = array(
+ 'tankorNaplohozRendeles' => array(array('txt' => 'Tankör naplóhozrendelése')),
+ 'osztalyozonaplo' => array(array('txt' => 'Osztályozónapló nyomtatása')),
+ 'haladasinaplo' => array(array('txt' => 'Haladásinapló nyomtatása')),
+ 'torzslap' => array(array('txt'=>'Törzslap')),
+ 'zaradekok' => array(array('txt' => 'Záradékok, bejegyzések nyomtatása')),
+ 'helyettesitesinaplo' => array(array('txt' => 'Helyettesítési-napló nyomtatása')),
+ 'diakTankorJelentkezes' => array(array('txt' => 'Tankörjelentkezés nyomtatvány')),
+ 'ertesito' => array(array('txt' => 'Értesítő'))
+ );
+ $MENU['modules']['naplo']['sub']['export'] = array(
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány export')),
+ 'kirBizonyitvanyExport' => array(array('txt' => 'Bizonyítvány export (KIR)')),
+ 'diakExport' => array(array('txt' => 'Diak adatok')),
+ 'tantargyFelosztas' => array(array('txt' => 'Tantárgyfelosztás export')),
+ 'kreta' => array(array('txt' => 'KRÉTA export')),
+ );
+
+
+ $MENU['modules']['naplo']['sub']['orarend'] = array(
+ 'orarend' => array(array('txt' => 'Órarend')),
+ 'helyettesites' => array(array('txt'=> 'Helyettesítések')),
+ 'orarendEllenorzes' => array(array('txt' => 'Órarend ellenőrzés')),
+ 'orarendTeremModositas' => array(array('txt' => 'Teremmódosítás')),
+ 'termez' => array(array('txt' => 'Órarend termező')),
+ 'szabadTerem' => array(array('txt' => 'Szabad termek')),
+ 'tanarOrarend' => array(array('txt' => 'Összesített tanári órarend')),
+ 'ascExport' => array(array('txt' => 'ascExport')),
+ );
+ $MENU['modules']['naplo']['sub']['tanev'] = array(
+ 'munkaterv' => array(array('txt' => 'Éves munkaterv, tanév rendje')),
+ 'tankorCsoport' => array(array('txt' => 'Tankörcsoportok')),
+ 'tankorBlokk' => array(array('txt' => 'Tankörblokkok')),
+ 'fogadoOra' => array(array('txt' => 'Fogadóóra')),
+ 'targyOraszam' => array(array('txt' => 'Tárgy óraszámok')),
+ 'diakTanarai' => array(array('txt' => 'Diák tanára')),
+ 'targyBontas' => array(array('txt' => 'Tantárgyfelosztás, bontás-tankör')),
+ );
+ $MENU['modules']['naplo']['sub']['ertekeles'] = array(
+ 'kerdoivBetoltes' => array(array('txt' => 'Kérdőív betöltése')),
+ 'osszesites' => array(array('txt' => 'Összesítés')),
+ );
+ $MENU['modules']['naplo']['sub']['hianyzas'] = array(
+ 'osztaly' => array(array('txt' => 'Osztály hiányzásösszesítő')),
+ 'osztalyNap' => array(array('txt' => 'Osztály napi hiányzásösszesítő')),
+ 'diak' => array(array('txt' => 'Diák hiányzásai (naptár nézet)')),
+ 'diakLista' => array(array('txt' => 'Diák hiányzásai (lista)')),
+ 'oktstat' => array(array('txt' => 'Októberi statisztika')),
+ 'info' => array(array('txt' => 'Statisztika')),
+
+ );
+
+ $MENU['modules']['naplo']['sub']['stat'] = array(
+ 'tantargyFelosztas' => array(array('txt' => 'Tantárgyfelosztás statisztika')),
+ 'letszam' => array(array('txt'=>'Létszám statisztika')),
+ 'lemorzsolodas' => array(array('txt'=>'Lemorzsolódás')),
+ );
+
+ }
+ if (__NAPLOADMIN === true) {
+ $MENU['modules']['naplo']['haladasi'] = array(array('txt' => 'Haladási napló', 'url' => 'index.php?page=naplo&sub=haladasi'));
+ $MENU['modules']['naplo']['osztalyozo'] = array(array('txt' => 'Osztályozó napló', 'url' => 'index.php?page=naplo&sub=osztalyozo'));
+ $MENU['modules']['naplo']['hianyzas'] = array(array('txt' => 'Hiányzások', 'url' => 'index.php?page=naplo&sub=hianyzas'));
+ $MENU['modules']['naplo']['bejegyzesek'] = array(array('txt' => 'Bejegyzések', 'url' => 'index.php?page=naplo&sub=bejegyzesek'));
+ $MENU['modules']['naplo']['orarend'] = array(array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend'));
+ $MENU['modules']['naplo']['tanmenet'] = array(array('txt' => 'Tanmenetek', 'url' => 'index.php?page=naplo&sub=tanmenet'));
+ $MENU['modules']['naplo']['esemeny'] = array(array('txt' => 'Események', 'url' => 'index.php?page=naplo&sub=esemeny'));
+ $MENU['modules']['naplo']['tanev'] = array(
+ array('txt' => 'Tanév adatok', 'url' => 'index.php?page=naplo&sub=tanev'),
+ array('txt' => 'Fogadóóra', 'url' => 'index.php?page=naplo&sub=tanev&f=fogadoOra'),
+ );
+ $MENU['modules']['naplo']['nyomtatas'][] = array('txt' => 'Nyomtatás', 'url' => 'index.php?page=naplo&sub=nyomtatas', 'rejtett' => true);
+ $MENU['modules']['naplo']['export'][] = array('txt' => 'Export', 'url' => 'index.php?page=naplo&sub=export&f=diakExport');
+ $MENU['modules']['naplo']['intezmeny'] = array(array('txt' => 'Intézményi adatok', 'url' => 'index.php?page=naplo&sub=intezmeny'));
+
+ $MENU['modules']['naplo']['stat'] = array(array('txt' => 'Statisztika', 'url' => 'index.php?page=naplo&sub=stat&f=letszam'));
+ $MENU['modules']['naplo']['ertekeles'] = array(array('txt' => 'Értékelés', 'url' => 'index.php?page=naplo&sub=ertekeles', 'rejtett' => true));
+ $MENU['modules']['naplo']['admin'] = array(array('txt' => 'Admin', 'url' => 'index.php?page=naplo&sub=admin'));
+ $MENU['modules']['naplo']['koszi'] = array(array('txt' => 'Köszi', 'url' => 'index.php?page=naplo&sub=koszi&f=kosziAdmin'));
+ $MENU['modules']['naplo']['hibabejelento'] = array(array('txt' => 'Kérelmek', 'url' => 'index.php?page=naplo&sub=hibabejelento&f=admin', 'rejtett' => true));
+ $MENU['modules']['naplo']['hirnok'] = array(array('txt' => 'Hírnök', 'url' => 'index.php?page=naplo&sub=hirnok&f=hirnok'));
+ if(__UZENO_INSTALLED===true)
+ $MENU['modules']['naplo']['uzeno'] = array(array('txt' => 'Üzenő', 'url' => 'index.php?page=naplo&sub=uzeno&f=uzeno'));
+
+ $MENU['modules']['naplo']['sub']['stat'] = array(
+ 'tantargyFelosztas' => array(array('txt' => 'Tantárgyfelosztás statisztika')),
+ 'letszam' => array(array('txt'=>'Létszám statisztika')),
+ 'lemorzsolodas' => array(array('txt'=>'Lemorzsolódás')),
+ );
+
+ $MENU['modules']['naplo']['sub']['haladasi'] = array(
+ 'helyettesites' => array(array('txt' => 'Helyettesítés')),
+ 'pluszora' => array(array('txt' => 'Plusz óra')),
+ 'minuszora' => array(array('txt' => 'Óra elmaradás')),
+ 'osszevonas' => array(array('txt' => 'Összevonás', 'rejtett' => true)),
+ 'teremModositas' => array(array('txt' => 'Haladási teremmódosító')),
+ 'specialis' => array(array('txt' => 'Speciális nap', 'rejtett' => true)),
+ 'elmaradas' => array(array('txt' => 'Haladási elmaradások', 'rejtett' => true)),
+ 'stat' => array(array('txt' => 'Haladási statisztika', 'rejtett' => true)),
+ 'elszamolas' => array(array('txt' => 'Elszámolás', 'rejtett' => true)),
+ 'oralatogatas' => array(array('txt' => 'Óralátogatás', 'rejtett' => true)),
+ 'hetes' => array(array('txt' => 'Hetesek')),
+ );
+ $MENU['modules']['naplo']['sub']['hibabejelento'] = array(
+ 'hibabejelento' => array(array('txt' => 'Új kérelem')),
+ );
+ $MENU['modules']['naplo']['sub']['koszi'] = array(
+ // ez csak diákoknak van, nem? // 'koszi' => array(array('txt' => 'Köszi')),
+ 'esemenyAdmin' => array(array('txt' => 'Esemény adminisztráció')),
+ 'kosziAdmin' => array(array('txt' => 'Pont adminisztráció')),
+ );
+ $MENU['modules']['naplo']['sub']['hianyzas'] = array(
+ 'osztaly' => array(array('txt' => 'Osztály hiányzásösszesítő')),
+ 'osztalyNap' => array(array('txt' => 'Osztály napi hiányzásösszesítő')),
+ 'diak' => array(array('txt' => 'Diák hiányzásai (naptár nézet)')),
+ 'diakLista' => array(array('txt' => 'Diák hiányzásai (lista)')),
+ 'diakIgazolatlan' => array(array('txt' => 'Diák igazolatlanjai (lista)')),
+ 'oktstat' => array(array('txt' => 'Októberi statisztika')),
+ 'info' => array(array('txt' => 'Statisztika')),
+
+ );
+ $MENU['modules']['naplo']['sub']['osztalyozo'] = array(
+ 'tankor' => array(array('txt' => 'Tankör osztályzatai')),
+ 'diak' => array(array('txt' => 'Diák osztályzatai', 'rejtett' => true)),
+ 'dolgozat' => array(array('txt' => 'Dolgozatok', 'rejtett' => true)),
+ 'vizsga' => array(array('txt' => 'Vizsga')),
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány', 'rejtett' => true)),
+// 'bizelomenetel' => array(array('txt' => 'Előmenetel', 'rejtett' => true)),
+ 'zaroJegyCheck' => array(array('txt' => 'Zárójegy évfolyam ellenőrző')),
+ 'stat' => array(array('txt' => 'Zárási statisztika')),
+ 'targySorrend' => array(array('txt' => 'Tárgysorrend', 'rejtett' => true)),
+ 'szovegesErtekeles' => array(array('txt' => 'Szöveges értékelés', 'rejtett' => true)),
+ 'szempontRendszer' => array(array('txt' => 'Szempont rendszer', 'rejtett' => true)),
+ );
+ $MENU['modules']['naplo']['sub']['bejegyzesek'] = array(
+ 'bejegyzesek' => array(array('txt' => 'Bejegyzések listája')),
+ 'ujBejegyzes' => array(array('txt' => 'Új bejegyzések')),
+ 'bejegyzesTipus' => array(array('txt' => 'Bejegyzés-típusok')),
+ );
+ $MENU['modules']['naplo']['sub']['tanmenet'] = array(
+ 'tanmenetLeadas' => array(array('txt' => 'Tanmenet leadás')),
+ 'tanmenetJovahagyas' => array(array('txt' => 'Tanmenet jóváhagyás')),
+ 'tanmenetTankor' => array(array('txt' => 'Tanmenetek tankörhöz rendelése')),
+ 'tanmenetInfo' => array(array('txt' => 'Tanmenet részletei')),
+ 'tanmenetModositas' => array(array('txt' => 'Tanmenet módosítása')),
+ 'ujTanmenet' => array(array('txt' => 'Új tanmenet létrehozása')),
+ );
+ $MENU['modules']['naplo']['sub']['esemeny'] = array(
+ 'ujEsemeny' => array(array('txt' => 'Esemény felvétel/módosítás')),
+ 'esemenyDiak' => array(array('txt' => 'Névsor kezelése')),
+ );
+ $MENU['modules']['naplo']['sub']['orarend'] = array(
+ 'orarend' => array(array('txt' => 'Órarend')),
+ 'szabadTerem' => array(array('txt' => 'Szabad termek', 'rejtett' => true)),
+ 'helyettesites' => array(array('txt' => 'Helyettesítés', 'rejtett' => true)),
+ 'orarendTankor' => array(array('txt' => 'Órarend-tankör összerendező', 'rejtett' => true)),
+ 'orarendUtkozes' => array(array('txt' => 'Órarend ütközés', 'rejtett' => true)),
+ 'orarendBetolto' => array(array('txt' => 'Órarend betöltő', 'rejtett' => true)),
+ 'orarendEllenorzes' => array(array('txt' => 'Órarend ellenőrzés', 'rejtett' => true)),
+ 'orarendTeremModositas' => array(array('txt' => 'Teremmódosítás', 'rejtett' => true)),
+ 'orarendModosito' => array(array('txt' => 'Órarend módosítás', 'rejtett' => true)),
+ 'termez' => array(array('txt' => 'Órarend termező', 'rejtett' => true)),
+ 'tanarOrarend' => array(array('txt' => 'Összesített tanári órarend', 'rejtett' => true)),
+ 'ascExport' => array(array('txt' => 'ascExport', 'rejtett' => true)),
+ );
+ $MENU['modules']['naplo']['sub']['tanev'] = array(
+ 'munkaterv' => array(array('txt' => 'Éves munkaterv, tanév rendje', 'rejtett' => true)),
+ 'checkStatus' => array(array('txt' => 'Ellenőr', 'rejtett' => true)),
+ 'tankorCsoport' => array(array('txt' => 'Tankörcsoportok')),
+ 'tankorBlokk' => array(array('txt' => 'Tankörblokkok')),
+ // 'vegzosTankorLezaras' => array(array('txt' => 'Végzős tankör kiléptetés', 'rejtett' => true)),
+ 'vegzosOrarendLezaras' => array(array('txt' => 'Végzős órarend lezárása', 'rejtett' => true)),
+ 'fogadoOra' => array(array('txt' => 'Fogadóóra', 'rejtett' => true)),
+ // 'intezmeny' => array(array('txt' => 'Intézményváltó', 'url' => 'index.php?page=naplo&sub=intezmeny&f=valtas')),
+ 'targyOraszam' => array(array('txt' => 'Tárgy óraszámok', 'rejtett' => true)),
+ 'diakTanarai' => array(array('txt' => 'Diák tanára', 'rejtett' => true)),
+ 'targyBontas' => array(array('txt' => 'Tantárgyfelosztás, bontás-tankör')),
+ );
+ $MENU['modules']['naplo']['sub']['nyomtatas'] = array(
+ 'tankorNaplohozRendeles' => array(array('txt' => 'Tankör naplóhozrendelése')),
+ 'osztalyozonaplo' => array(array('txt' => 'Osztályozónapló nyomtatása')),
+ 'haladasinaplo' => array(array('txt' => 'Haladásinapló nyomtatása')),
+ 'torzslap' => array(array('txt'=>'Törzslap')),
+ 'zaradekok' => array(array('txt' => 'Záradékok, bejegyzések nyomtatása')),
+ 'helyettesitesinaplo' => array(array('txt' => 'Helyettesítési-napló nyomtatása')),
+ 'diakTankorJelentkezes' => array(array('txt' => 'Tankörjelentkezés')),
+ 'ertesito' => array(array('txt' => 'Értesítő', 'rejtett' => true)),
+ 'szovegesErtekeles' => array(array('txt' => 'Szöveges értékelés', 'rejtett' => true)),
+ );
+
+ $MENU['modules']['naplo']['sub']['export'] = array(
+ 'bizonyitvany' => array(array('txt' => 'Bizonyítvány export')),
+ 'kirBizonyitvanyExport' => array(array('txt' => 'Bizonyítvány export (KIR)')),
+ 'diakExport' => array(array('txt' => 'Diak adatok')),
+ 'tantargyFelosztas' => array(array('txt' => 'Tantárgyfelosztás export')),
+ 'sulix' => array(array('txt' => 'Együttműködés SuliXerverrel')),
+ 'kreta' => array(array('txt' => 'KRÉTA export')),
+ 'tanarOsztalyOraszam' => array(array('txt' => 'Tanár-Osztály óraszámok')),
+ );
+ $MENU['modules']['naplo']['sub']['intezmeny'] = array(
+ 'valtas' => array(array('txt' => 'Intézményváltás', 'rejtett' => true)),
+ 'osztaly' => array(array('txt' => 'Osztályok')),
+ 'diak' => array(array('txt' => 'Diákok')),
+ 'diakSzulo' => array(array('txt' => 'Szülő/Nevelő', 'rejtett' => true)),
+ 'tanar' => array(array('txt' => 'Tanárok')),
+ 'kepesitesek' => array(array('txt' => 'Képesítések')),
+ 'tovabbkepzes' => array(array('txt' => 'Továbbképzés')),
+ 'munkakozosseg' => array(array('txt' => 'Munkaközösségek, tárgyak', 'rejtett' => true)),
+ 'tankor' => array(array('txt' => 'Tankörök')),
+ 'tankorTanar' => array(array('txt' => 'Tankör tanárok')),
+ 'tankorTanarHozzarendeles' => array(array('txt' => 'Tantárgyfelosztás, tankör-tanár')),
+ 'tankorDiak' => array(array('txt' => 'Tankör diákok')),
+ 'diakTankor' => array(array('txt' => 'Diák tankörei')),
+ 'diakFelmentes' => array(array('txt' => 'Diák felmentése', 'rejtett' => true)),
+ 'diakTankorJelentkezes' => array(array('txt' => 'Tankörjelentkezés', 'rejtett' => true)),
+ 'tankorSzemeszter' => array(array('txt' => 'Tankör óraterve', 'rejtett' => true)),
+ 'tankorLetszam' => array(array('txt' => 'Tankörlétszámok', 'rejtett' => true)),
+ 'kepzes' => array(array('txt' => 'Képzések', 'rejtett' => true)),
+ 'kepzesOraterv' => array(array('txt' => 'Képzés óraterv', 'rejtett' => true)),
+ 'zaradek' => array(array('txt' => 'Záradék')),
+ 'terem' => array(array('txt' => 'Terem')),
+ 'verseny' => array(array('txt' => 'Verseny')),
+ );
+ $MENU['modules']['naplo']['sub']['ertekeles'] = array(
+ 'kerdoivBetoltes' => array(array('txt' => 'Kérdőív betöltése')),
+ 'osszesites' => array(array('txt' => 'Összesítés')),
+ );
+ $MENU['modules']['naplo']['sub']['admin'] = array(
+ 'intezmenyek' => array(array('txt' => 'Intézmények')),
+ 'tanevek' => array(array('txt' => 'Tanévek')),
+ 'szemeszterek' => array(array('txt' => 'Szemeszterek')),
+ 'fillhaladasi' => array(array('txt' => 'Haladási napló feltöltése')),
+ 'import' => array(array('txt' => 'Import')),
+ 'azonositok' => array(array('txt' => 'Azonosító generálás')),
+ 'szuloiAzonositok' => array(array('txt' => 'Szülői azonosítók generálása')),
+ 'rpcPrivilege' => array(array('txt' => 'RPC jogosultságok')),
+ );
+ $MENU['modules']['naplo']['sub']['hirnok'] = array(
+ 'hirnok' =>array(array('txt' => 'Hírnök', 'icon'=>'icon-bullhorn')),
+ 'hirnokFeliratkozas' => array(array('txt' => 'Hírnök beállítás', 'icon'=>'icon-cog'))
+ );
+
+ }
+ if (__UZENO_INSTALLED===true && __UZENOADMIN===true)
+ $MENU['modules']['naplo']['uzeno'] = array(array('txt' => 'Üzenő', 'url' => 'index.php?page=naplo&sub=uzeno&f=uzeno'));
+
+ // SNI
+ if (__NAPLOADMIN || __VEZETOSEG || __TANAR) {
+ $MENU['modules']['naplo']['sni'] = array(array('txt' => 'Egyéni fejlesztés', 'url' => 'index.php?page=naplo&sub=sni'));
+ $MENU['modules']['naplo']['sub']['sni'] = array(
+ 'diakAllapot' => array(array('txt' => 'Belépő/kilépő állapot')),
+ 'fejlesztesiTerv' => array(array('txt' => 'Havi összegzés')),
+ 'tantargyiFeljegyzesek' => array(array('txt' => 'Tantárgyi feljegyzések')),
+ );
+ $MENU['modules']['naplo']['sub']['nyomtatas']['sniHaviJegyzokonyv'] = array(array('txt' => 'Havi jegyzőkönyv'));
+ $MENU['modules']['naplo']['sub']['nyomtatas']['sniEvVegiJegyzokonyv'] = array(array('txt' => 'Év végi jegyzőkönyv'));
+ }
+ // SNI VEGE
+
+if ($page==='naplo') {
+
+ // Navigáció - alapértelmezés
+ $NAV[1] = array(
+ array('page' => 'naplo', 'sub' => 'haladasi'),
+ array('page' => 'naplo', 'sub' => 'osztalyozo'),
+ array('page' => 'naplo', 'sub' => 'hianyzas'),
+ array('page' => 'naplo', 'sub' => 'orarend'),
+ );
+ if (__NAPLOADMIN) {
+ $NAV[1][] = array('page' => 'naplo', 'sub' => 'intezmeny');
+ $NAV[1][] = array('page' => 'naplo', 'sub' => 'admin');
+ $NAV[1][] = array('page' => 'naplo', 'sub' => 'hibabejelento');
+ }
+
+ if (is_array($MENU['modules']['naplo']['sub'][$sub])) foreach ($MENU['modules']['naplo']['sub'][$sub] as $_f => $M) {
+ $NAV[2][] = array('page' => 'naplo', 'sub' => $sub, 'f' => $_f);
+ } elseif (is_array($MENU['modules']['naplo'])) foreach ($MENU['modules']['naplo'] as $_f => $M) {
+ if ($_f != 'sub') $NAV[2][] = array('page' => 'naplo', 'sub' => $_f);
+ }
+
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/menu/public/hu_HU/base.php b/mayor-orig/www/include/menu/public/hu_HU/base.php
new file mode 100644
index 00000000..66a36701
--- /dev/null
+++ b/mayor-orig/www/include/menu/public/hu_HU/base.php
@@ -0,0 +1,34 @@
+<?php
+
+ $MENU = array(
+ 'home'=>array(),
+ 'session'=>array(),
+ 'naplo'=>array(),
+ 'portal'=>array(),
+ 'felveteli'=>array(),
+// 'forum'=>array(),
+// 'auth'=>array(),
+ );
+
+ if (defined('_SESSIONID') and _SESSIONID != '') {
+ $MENU['session'] = array(
+ array('txt' => 'Kilépés', 'url' => 'index.php?page=session&f=logout')
+ );
+ }
+ $MENU['home'] = array(
+ array('txt' => 'Kezdőlap', 'url' => 'index.php')
+ );
+
+ // $NAVI[] = array('txt' => 'Kezdőlap', 'url' => 'index.php', 'icon' => 'icon-home-alt');
+
+// $MENU['modules']['session']['createAccount'] = array(
+// array('txt' => 'Szülői regisztráció', 'url' => 'index.php?page=session&f=createAccount&toPolicy=parent'),
+// array('txt' => 'Fórum regisztráció', 'url' => 'index.php?page=session&f=createAccount&toPolicy=public'),
+// );
+ if ($f == 'changeMyPassword') {
+ $MENU['back'] = array(array('txt'=>'Vissza','url'=>'index.php?policy='.$toPolicy,'get'=>array('sessionID','skin','lang')));
+ $MENU['password'] = array(array('txt'=>'Jelszóváltoztatás','url'=>'index.php?page=password&sub=&f=changeMyPassword'));
+// $NAV[1][] = array('page'=>'back');
+ }
+
+?>
diff --git a/mayor-orig/www/include/menu/public/hu_HU/module-naplo.php b/mayor-orig/www/include/menu/public/hu_HU/module-naplo.php
new file mode 100644
index 00000000..090c7db2
--- /dev/null
+++ b/mayor-orig/www/include/menu/public/hu_HU/module-naplo.php
@@ -0,0 +1,13 @@
+<?php
+/*
+ module: naplo
+*/
+
+ $MENU['naplo'] = array(array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend&f=orarend'));
+ $MENU['modules']['naplo']['orarend'] = array(
+ array('txt' => 'Órarend', 'url' => 'index.php?page=naplo&sub=orarend&f=orarend'),
+ array('txt' => 'Helyettesítés', 'url'=>'index.php?page=naplo&sub=orarend&f=helyettesites', 'refresh'=>60),
+ array('txt' => 'Szabad termek', 'url' => 'index.php?page=naplo&sub=orarend&f=szabadTerem'),
+ );
+
+?>
diff --git a/mayor-orig/www/include/modules/auth/base/forgotten.php b/mayor-orig/www/include/modules/auth/base/forgotten.php
new file mode 100644
index 00000000..16571855
--- /dev/null
+++ b/mayor-orig/www/include/modules/auth/base/forgotten.php
@@ -0,0 +1,53 @@
+<?php
+
+ function generatePasswordRecoveryRequest($accountData) {
+
+ $URL = 'https://'.$_SERVER['SERVER_NAME'].'/index.php?page=password&f=resetPassword&';
+
+ if (version_compare(PHP_VERSION,'5.3.0')>=0) {
+ $selector = bin2hex(openssl_random_pseudo_bytes(8));
+ $token = openssl_random_pseudo_bytes(32);
+ } elseif (version_compare(PHP_VERSION,'7.0.0')>=0) {
+ $selector = bin2hex(random_bytes(8));
+ $token = random_bytes(32);
+ } else {
+ return false; // nem támogatjuk
+ }
+ $urlToEmail = href($URL.http_build_query(array(
+ 'selector' => $selector,
+ 'validator' => bin2hex($token)
+ ),'','&'));
+
+ $expires = new DateTime('NOW');
+ $expires->add(new DateInterval('PT01H')); // 1 hour
+
+ // rate limiting és karbantartás
+ $lr = db_connect('login');
+ db_start_trans($lr);
+
+ $q = "DELETE FROM accountRecovery WHERE expires <= NOW() - INTERVAL 10 DAY";
+ db_query($q, array('debug'=>false,'fv' => 'generatePasswordRecoveryRequest', 'modul'=>'login', 'result'=>'delete'),$lr);
+
+ $q = "SELECT count(*) as db FROM accountRecovery WHERE policy='%s' AND userAccount='%s'";
+ $v = array($accountData['policy'], $accountData['userAccount']);
+ $recoveryRequestDb = db_query($q, array('debug'=>false,'fv' => 'generatePasswordRecoveryRequest', 'modul'=>'login', 'result'=>'value', 'values'=>$v),$lr);
+
+ if ($recoveryRequestDb<5) {
+ $q = "INSERT INTO accountRecovery (policy, userAccount, selector, token, expires) VALUES ('%s', '%s', '%s', '%s', '%s');";
+ $v = array($accountData['policy'], $accountData['userAccount'],
+ $selector,
+ hash('sha256', $token),
+ $expires->format('Y-m-d\TH:i:s'));
+ $recoveryId = db_query($q, array('debug'=>false,'fv' => 'generatePasswordRecoveryRequest', 'modul'=>'login', 'result'=>'insert', 'values'=>$v),$lr);
+ } else {
+ return false;
+ }
+ db_commit($lr);
+ db_close($lr);
+
+ if ($recoveryId !== false) return $urlToEmail;
+ else return false;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/auth/base/login.php b/mayor-orig/www/include/modules/auth/base/login.php
new file mode 100644
index 00000000..f9cb3a2d
--- /dev/null
+++ b/mayor-orig/www/include/modules/auth/base/login.php
@@ -0,0 +1,37 @@
+<?php
+
+ function userAuthentication($userAccount, $userPassword, &$accountInformation, $toPolicy) {
+ global $AUTH;
+ require_once('include/share/auth/base.php');
+
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/auth/login.php')) {
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/auth/login.php');
+ } else {
+ throw new Exception('Fatal Error');
+ }
+
+ //$x = call_user_func( str_replace('-','_',$AUTH[$toPolicy]['backend'])."UserAuthentication",$userAccount, $userPassword, $accountInformation, $toPolicy);
+ switch ($AUTH[$toPolicy]['backend']) {
+ case 'mysql':
+ $r = mysqlUserAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy);
+ break;
+ case 'ldap':
+ $r = ldapUserAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy);
+ break;
+ case 'ldap-ng':
+ $r = ldap_ngUserAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy);
+ break;
+ case 'ldapng':
+ $r = ldapngUserAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy);
+ break;
+ case 'ads':
+ $r = adsUserAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy);
+ break;
+ case 'file':
+ $r = fileUserAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy);
+ break;
+ }
+ return $r;
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/admin/azonositok.php b/mayor-orig/www/include/modules/naplo/admin/azonositok.php
new file mode 100644
index 00000000..9d85b3e5
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/admin/azonositok.php
@@ -0,0 +1,14 @@
+<?php
+
+ function getOsztalyNevsorEsOid($osztalyId) {
+
+ $q = "SELECT diakId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev, viseltCsaladinev, viseltUtonev, oId
+ FROM diak LEFT JOIN osztalyDiak USING (diakId)
+ WHERE osztalyId=%u
+ AND beDt<=CURDATE() AND (kiDt >= CURDATE() OR kiDt IS NULL)
+ AND (statusz != 'jogviszonya lezárva' OR jogviszonyVege < CURDATE()) ORDER BY diakNev, oId";
+ return db_query($q, array('fv' => 'getOsztalyAzonositok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($osztalyId)), $lr);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/admin/checksql.php b/mayor-orig/www/include/modules/naplo/admin/checksql.php
new file mode 100644
index 00000000..cb751521
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/admin/checksql.php
@@ -0,0 +1,98 @@
+<?php
+
+
+
+ function checkSqlConsistency($queryFile,$db,&$Q_ERR)
+ {
+
+ $convert = array("%DB%" => intezmenyDbNev(__INTEZMENY));
+
+ $fp = fopen($queryFile, 'r');
+ $query = fread($fp, filesize($queryFile));
+ fclose($fp);
+
+ // A tárolt eljárásoknak, függvényeknek "DELIMITER //" és "DELIMITER ; //" között kell lenniük - egy blokkban a file végén!
+ list($query, $delimiter) = explode('DELIMITER //', $query);
+
+ // Tábladefiníciók - normál query-k
+ $QUERIES = explode(';', str_replace("\n", '', $query));
+ for ($i = 0; $i < count($QUERIES); $i++) {
+ $q = $QUERIES[$i];
+ if (trim($q) != '' and substr($q, 0, 2) != '--' and substr($q, 0, 3) != '/*!') {
+ if (is_array($convert)) foreach ( $convert as $mit=>$mire ) $q = str_replace($mit,$mire,$q);
+ }
+ if (substr($q,0,6) == 'CREATE') {
+ $_q = str_replace(' ','',$q);
+ $first = $second = 0;
+ for ($c = 0; $c<strlen($_q); $c++) {
+ if ($_q[$c]==='`') {
+ if ($first==0) $first = $c;
+ else {
+ $second = $c; break;
+ }
+ }
+ }
+ $table = substr($_q,$first+1,$second-$first-1);
+ $r = db_query("SHOW CREATE TABLE $table",array('modul'=>$db,'result'=>'record'));
+ $q1 = str_replace("\n",'',str_replace(' ','',$r['Create Table']));
+ $q2 = str_replace(' ','',$_q);
+ $q1_tmp = substr($q1,0,strrpos($q1,")"));
+ $q2_tmp = substr($q2,0,strrpos($q2,")"));
+ if ($q1_tmp!=$q2_tmp) {
+ $Q_ERR[]=array('inDb'=>$r['Create Table'],'inFile'=>$q);
+ }
+ }
+ }
+ }
+
+
+
+/*
+Paul's Simple Diff Algorithm v 0.1
+(C) Paul Butler 2007 <http://www.paulbutler.org/>
+May be used and distributed under the zlib/libpng license.
+This code is intended for learning purposes; it was written with short
+code taking priority over performance. It could be used in a practical
+application, but there are a few ways it could be optimized.
+Given two arrays, the function diff will return an array of the changes.
+I won't describe the format of the array, but it will be obvious
+if you use print_r() on the result of a diff on some test data.
+htmlDiff is a wrapper for the diff command, it takes two strings and
+returns the differences in HTML. The tags used are <ins> and <del>,
+which can easily be styled with CSS.
+*/
+
+function diff($old, $new){
+foreach($old as $oindex => $ovalue){
+$nkeys = array_keys($new, $ovalue);
+foreach($nkeys as $nindex){
+$matrix[$oindex][$nindex] = isset($matrix[$oindex - 1][$nindex - 1]) ?
+$matrix[$oindex - 1][$nindex - 1] + 1 : 1;
+if($matrix[$oindex][$nindex] > $maxlen){
+$maxlen = $matrix[$oindex][$nindex];
+$omax = $oindex + 1 - $maxlen;
+$nmax = $nindex + 1 - $maxlen;
+}
+}
+}
+if($maxlen == 0) return array(array('d'=>$old, 'i'=>$new));
+return array_merge(
+diff(array_slice($old, 0, $omax), array_slice($new, 0, $nmax)),
+array_slice($new, $nmax, $maxlen),
+diff(array_slice($old, $omax + $maxlen), array_slice($new, $nmax + $maxlen)));
+}
+
+function htmlDiff($old, $new){
+$diff = diff(explode(' ', $old), explode(' ', $new));
+foreach($diff as $k){
+if(is_array($k))
+$ret .= (!empty($k['d'])?"<del>".implode(' ',$k['d'])."</del> ":'').
+(!empty($k['i'])?"<ins>".implode(' ',$k['i'])."</ins> ":'');
+else $ret .= $k . ' ';
+}
+return $ret;
+}
+
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/admin/intezmenyek.php b/mayor-orig/www/include/modules/naplo/admin/intezmenyek.php
new file mode 100644
index 00000000..654a4c56
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/admin/intezmenyek.php
@@ -0,0 +1,117 @@
+<?php
+
+ function updateNaploSession($sessionID,$rovidnev) {
+ if (defined('__TANEV')) {
+ $q = "UPDATE session SET intezmeny='%s',tanev=%u WHERE sessionID='%s'";
+ $v = array($rovidnev,__TANEV,$sessionID);
+ } else {
+ $q = "UPDATE session SET intezmeny='%s' WHERE sessionID='%s'";
+ $v = array($rovidnev,$sessionID);
+ }
+ $r = db_query($q, array('fv' => 'updateNaploSession', 'modul' => 'naplo_base', 'values' => $v));
+ }
+
+ function intezmenyBejegyzese($OMKod, $nev, $rovidnev) {
+
+ $lr = db_connect('naplo_base', array('fv' => 'intezmenyBejegyzese'));
+
+ $q = "SELECT COUNT(*) FROM intezmeny WHERE alapertelmezett=1";
+ $num = db_query($q, array('fv' => 'intezmenyBejegyzese', 'modul' => 'naplo_base', 'result' => 'value'), $lr);
+
+ if ($num > 0) $alapertelmezett = 0;
+ else $alapertelmezett = 1;
+
+ $q = "INSERT INTO intezmeny (OMKod, nev, rovidnev, alapertelmezett)
+ VALUES ('%s', '%s', '%s', %u)";
+ $v = array($OMKod, $nev, $rovidnev, $alapertelmezett);
+ $r = db_query($q, array('fv' => 'intezmenyBejegyzese', 'modul' => 'naplo_base', 'values' => $v), $lr);
+
+ db_close($lr);
+ }
+
+ function intezmenyModositas($ADAT) {
+
+ $q = "UPDATE intezmeny SET nev='%s', OMKod='%s', alapertelmezett=%u, fenntarto='%s' WHERE rovidNev='".__INTEZMENY."' ";
+ $v = array($ADAT['nev'], $ADAT['OMKod'], $ADAT['alapertelmezett'], $ADAT['fenntarto']);
+ return db_query($q, array('fv' => 'intezmenyModositas', 'modul' => 'naplo_base', 'values' => $v));
+
+ }
+
+ function intezmenyTorles($intezmeny) {
+
+ $q = "DELETE FROM intezmeny WHERE rovidNev='%s'";
+ return db_query($q, array('fv' => 'intezmenyTorles', 'modul' => 'naplo_base', 'values' => array($intezmeny)));
+
+ }
+
+ function getIntezmeny($intezmeny) {
+
+ $q = "SELECT * FROM `intezmeny` WHERE `rovidNev`='%s'";
+ $ret = db_query($q, array('fv' => 'getIntezmeny', 'modul' => 'naplo_base', 'result' => 'record', 'values' => array($intezmeny)));
+
+ $q = "SELECT * FROM `%s`.`telephely`";
+ $ret['telephely'] = db_query($q, array('fv' => 'getIntezmeny', 'modul' => 'naplo_base', 'result' => 'indexed', 'values' => array(intezmenyDbNev($intezmeny))));
+
+ return $ret;
+
+ }
+
+ function telephelyModositas($ADAT) {
+
+ $v = array(
+ __INTEZMENYDBNEV,
+ // Telephely adatai
+ readVariable($ADAT['telephelyNev'], 'sql', null),
+ readVariable($ADAT['telephelyRovidNev'], 'sql', null),
+ readVariable($ADAT['alapertelmezett'], 'numeric unsigned', 0, array(0,1)),
+ readVariable($ADAT['cimHelyseg'], 'sql', null),
+ readVariable($ADAT['cimIrsz'], 'numeric', 'NULL'),
+ readVariable($ADAT['cimKozteruletNev'], 'sql', null),
+ readVariable($ADAT['cimKozteruletJelleg'], 'sql', null),
+ readVariable($ADAT['cimHazszam'], 'sql', null),
+ readVariable($_POST['telefon'], 'string'),
+ readVariable($_POST['fax'], 'string'),
+ readVariable($_POST['email'], 'string'),
+ readVariable($_POST['honlap'], 'string'),
+ readVariable($_POST['telephelyId'], 'id')
+ );
+
+ $q = "UPDATE `%s`.`telephely`
+ SET `telephelyNev`='%s', `telephelyRovidNev`='%s', `alapertelmezett`=%u,
+ `cimHelyseg`='%s', `cimIrsz`=%u, `cimKozteruletNev`='%s',`cimKozteruletJelleg`='%s', `cimHazszam`='%s',
+ `telefon`='%s',`fax`='%s',`email`='%s',`honlap`='%s'
+ WHERE `telephelyId`='%s' ";
+
+ return db_query($q, array('fv' => 'telephelyModositas', 'modul' => 'naplo_base', 'values' => $v));
+
+ }
+
+ function ujTelephely($ADAT) {
+
+ $v = array(
+ __INTEZMENYDBNEV,
+ // Telephely adatai
+ readVariable($ADAT['telephelyNev'], 'sql', null),
+ readVariable($ADAT['telephelyRovidNev'], 'sql', null),
+ readVariable($ADAT['alapertelmezett'], 'numeric unsigned', 0, array(0,1)),
+ readVariable($ADAT['cimHelyseg'], 'sql', null),
+ readVariable($ADAT['cimIrsz'], 'numeric', 'NULL'),
+ readVariable($ADAT['cimKozteruletNev'], 'sql', null),
+ readVariable($ADAT['cimKozteruletJelleg'], 'sql', null),
+ readVariable($ADAT['cimHazszam'], 'sql', null),
+ readVariable($_POST['telefon'], 'string'),
+ readVariable($_POST['fax'], 'string'),
+ readVariable($_POST['email'], 'string'),
+ readVariable($_POST['honlap'], 'string'),
+ );
+
+ $q = "INSERT INTO `%s`.`telephely`
+ (`telephelyNev`,`telephelyRovidNev`,`alapertelmezett`,`cimHelyseg`,`cimIrsz`,`cimKozteruletNev`,`cimKozteruletJelleg`,`cimHazszam`,
+ `telefon`,`fax`,`email`,`honlap`)
+ VALUES ('%s', '%s', %u,'%s', %u, '%s','%s', '%s','%s','%s','%s','%s')";
+
+ return db_query($q, array('fv' => 'ujTelephely', 'modul' => 'naplo_base', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/admin/szemeszterek.php b/mayor-orig/www/include/modules/naplo/admin/szemeszterek.php
new file mode 100644
index 00000000..6e4c2149
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/admin/szemeszterek.php
@@ -0,0 +1,48 @@
+<?php
+
+ function idoszakTorles($idoszakId) {
+ $q = "DELETE FROM idoszak WHERE idoszakId=%u";
+ return db_query($q, array('fv' => 'idoszakTorles', 'modul' => 'naplo_intezmeny', 'values' => array($idoszakId)));
+ }
+
+ function idoszakModositas($idoszakId, $tolDt, $igDt) {
+ $q = "UPDATE idoszak SET tolDt='%s', igDt='%s' WHERE idoszakId=%u";
+ $v = array($tolDt, $igDt, $idoszakId);
+ return db_query($q, array('fv' => 'idoszakModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+
+ function ujIdoszak($tolDt, $igDt, $tipus, $tanev = '', $szemeszter = '', $idoszakTipusok = '') {
+ // dátum ellenőrzés
+ if (strtotime($tolDt) > strtotime($igDt)) {
+ $_SESSION['alert'][] = 'message:wrong_data:dt:'.str_replace(':', '.', $tolDt.' - '.$igDt);
+ return false;
+ }
+ // típus ellenőrzés
+ if (!is_array($idoszakTipusok)) $idoszakTipusok = getIdoszakTipusok();
+ if (!in_array($tipus, $idoszakTipusok)) {
+ $_SESSION['alert'][] = 'message:wrong_data:idoszak.tipus:'.$tipus;
+ return false;
+ }
+ // tanev/szemeszter beállítás
+ if ($tanev == '' || $szemeszter == '') {
+ $q = "SELECT tanev, szemeszter FROM szemeszter WHERE kezdesDt <= '%s' AND '%s' <= zarasDt";
+ $v = array($igDt, $tolDt);
+ $ret = db_query($q, array('fv' => 'ujIdoszak', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if (is_array($ret) && count($ret) == 1) {
+ $tanev = $ret[0]['tanev'];
+ $szemeszter = $ret[0]['szemeszter'];
+ } else {
+ return false;
+ }
+ }
+ // idoszak felvétele
+ $q = "INSERT INTO idoszak (tolDt, igDt, tipus, tanev, szemeszter) VALUES ('%s', '%s', '%s', %u, %u)";
+ $v = array($tolDt, $igDt, $tipus, $tanev, $szemeszter);
+ return db_query($q, array('fv' => 'ujIdoszak', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+
+ function getIdoszakTipusok() {
+ return getEnumField('naplo_intezmeny', 'idoszak', 'tipus');
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/admin/szuloiAzonositok.php b/mayor-orig/www/include/modules/naplo/admin/szuloiAzonositok.php
new file mode 100644
index 00000000..585292bf
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/admin/szuloiAzonositok.php
@@ -0,0 +1,14 @@
+<?php
+ require_once('include/modules/naplo/share/szulo.php');
+ function getOsztalyNevsorEsSzulo($osztalyId) {
+
+ $q = "SELECT diakId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev, viseltCsaladinev, viseltUtonev, oId, anyaId, apaId
+ FROM diak LEFT JOIN osztalyDiak USING (diakId)
+ WHERE osztalyId=%u
+ AND beDt<=CURDATE() AND (kiDt >= CURDATE() OR kiDt IS NULL)
+ AND (statusz != 'jogviszonya lezárva' OR jogviszonyVege < CURDATE()) ORDER BY diakNev, oId";
+ return db_query($q, array('fv' => 'getOsztalyAzonositok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($osztalyId)));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/admin/tanevek.php b/mayor-orig/www/include/modules/naplo/admin/tanevek.php
new file mode 100644
index 00000000..cf2b32db
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/admin/tanevek.php
@@ -0,0 +1,390 @@
+<?php
+
+ function updateNaploSession($sessionID,$rovidnev='',$tanev=__TANEV) {
+ if ($tanev) {
+ $q = "UPDATE session SET intezmeny='%s',tanev=%u WHERE sessionID='%s'";
+ $v = array($rovidnev,$tanev,$sessionID);
+ } else {
+ $q = "UPDATE session SET intezmeny='%s' WHERE sessionID='%s'";
+ $v = array($rovidnev,$sessionID);
+ }
+ $r = db_query($q, array('fv' => 'updateNaploSession', 'modul' => 'naplo_base', 'values' => $v));
+ }
+
+ function szemeszterBejegyzes($szemeszterObj) {
+
+ global $mayorCache;
+ $mayorCache->delType('szemeszter');
+
+ $tanev = $szemeszterObj['tanev'];
+ $szemeszter = $szemeszterObj['szemeszter'];
+ $statusz = $szemeszterObj['statusz'];
+ $kDt = $szemeszterObj['kezdesDt'];
+ $zDt = $szemeszterObj['zarasDt'];
+
+ if ($tanev != '' && $szemeszter != '') {
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'szemeszterBejegyzes'));
+
+ $q = "SELECT COUNT(*) FROM szemeszter WHERE szemeszter=%u AND tanev=%u";
+ $v = array($szemeszter, $tanev);
+ $num = db_query($q, array('fv' => 'szemeszterBejegyzes', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v), $lr);
+ if ($num == 0) {
+
+ $q = "INSERT INTO szemeszter (tanev,szemeszter, statusz, kezdesDt, zarasDt)
+ VALUES (%u, %u, '%s', '%s', '%s')";
+ $v = array($tanev, $szemeszter, $statusz, $kDt, $zDt);
+ $r = db_query($q, array('fv' => 'szemeszterBejegyzes', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+
+ } else {
+ $_SESSION['alert'][] = 'message:letezo_szemeszter:'."$tanev:$szemeszter";
+ }
+ db_close($lr);
+ }
+ }
+
+ function szemeszterTorles($szemeszterId) {
+
+ global $mayorCache;
+ $mayorCache->delType('szemeszter');
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'szemeszterTorles'));
+ if (!$lr) return false;
+
+ $q = 'DELETE FROM szemeszter WHERE szemeszterId IN ('.implode(',', array_fill(0, count($szemeszterId), '%u')).')';
+ $r = db_query($q, array('fv' => 'szemeszterTorles', 'modul' => 'naplo_intezmeny', 'values' => $szemeszterId), $lr);
+
+ db_close($lr);
+ return $r;
+
+ }
+
+
+ function activateTanev($tanev) {
+ setTanevStatus($tanev,'aktív');
+ }
+
+ function closeTanev($ADAT) {
+
+ global $ZaradekIndex;
+ global $mayorCache;
+ $mayorCache->delType('szemeszter');
+
+ $tanev = $ADAT['tanev'];
+
+ if (strtotime($ADAT['tanevAdat']['zarasDt']) >= time()) {
+ $_SESSION['alert'][] = "message:wrong_data:A tanév még nem ért véget!:$tanev tanév vége ".$ADAT['tanevAdat']['zarasDt'];
+ return false;
+ }
+ if (strtotime($ADAT['tanevAdat']['zarasDt']) >= strtotime($ADAT['dt'])) {
+ $_SESSION['alert'][] = "message:wrong_data:A tanév csak az utolsó tanítási nap utáni hatállyal zárható le!:$tanev tanév vége ".$ADAT['tanevAdat']['zarasDt'].': zárás dátuma '.$ADAT['dt'];
+ return false;
+ }
+ $Szemeszter = $ADAT['tanevAdat']['szemeszter'];
+ $vDiakok = getVegzoDiakok(array('tanev' => $tanev));
+ // A függvénynek nincs statusz paramétere // $vDiakok = getVegzoDiakok(array('tanev' => $tanev, 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve')));
+ //vegzoOsztalyok, vjlOsztalyok, vatOsztalyok
+
+ if (in_array('vegzosJogviszonyLezaras', $ADAT['step'])) {
+
+ // Azoknak a jogviszonyát kell csak lezárni, akik csak végzős osztálynak tagjai - és az osztályaik meg vannak jelölve (diak tábla)
+ $oDiakok = getDiakokByOsztalyId($ADAT['vjlOsztaly'], array('tanev' => $tanev, 'result' => '', 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve')));
+ $vjlDiakIds = array();
+ for ($i = 0; $i < count($oDiakok); $i++) {
+ $diakId = $oDiakok[$i]['diakId'];
+ if (!in_array($diakId, $vjlDiakIds)) { // Ha még nem választottuk ki (jöhet többször, mert lehet egy diák több osztályban)
+ if (in_array($diakId, $vDiakok)) {
+ $vjlDiakIds[] = $diakId;
+ // A jogviszony lezárás egyúttal:
+ // - tankörökből való kiléptetés
+ // - osztályokból való kiléptetés
+ $D = array(
+ 'diakId' => $diakId, 'jogviszonyValtasDt' => $ADAT['dt'], 'ujStatusz' => 'jogviszonya lezárva', 'tanev' => $tanev,
+ 'lezarasZaradekIndex' => $ZaradekIndex['jogviszony']['lezárás']['tanulmányait befejezte']
+ );
+ diakJogviszonyValtas($D);
+ } else {
+ $_SESSION['alert'][] = "info:wrong_data:Nem végzős:$diakId (jogviszonyát nem zárjuk le)";
+ }
+ }
+ }
+// if (count($vjlDiakIds) > 0) diakJogviszonyLezaras($vjlDiakIds, $ADAT['dt'], $olr = '');
+
+ }
+
+ if (in_array('vegzosOsztalyokLezarasa', $ADAT['step'])) {
+ // A megjelölt végzős osztályokból kiléptetjük a diákokat (osztaly-Diak tábla)
+ $osztalyIds = array();
+ for ($i = 0; $i < count($ADAT['vegzoOsztalyok']); $i++) $osztalyIds[] = $ADAT['vegzoOsztalyok'][$i]['osztalyId'];
+ osztalyLezaras($osztalyIds, $ADAT['dt']);
+ }
+ if (in_array('vegzosAzonositokTorlese', $ADAT['step'])) {
+
+ require_once('include/modules/session/search/searchAccount.php');
+ // Végzősök azonosítóinak törlése (mayor_private.accounts - lezárt jogviszonyúak)
+
+ $q = "SELECT oId FROM diak WHERE statusz='jogviszonya lezárva' AND oId IS NOT NULL";
+ $oIds = db_query($q, array('fv' => 'closeTanev/azonosítók lekérdezése', 'modul' => 'naplo_intezmeny', 'result' => 'idonly'));
+ foreach ($oIds as $index => $oId) {
+ $ret = searchAccount('studyId', $oId, array('userAccount'), 'private');
+ if ($ret['count'] == 1) deleteAccount($ret[0]['userAccount'][0], 'private');
+ else $_SESSION['alert'][] = "info:wrong_data:nincs diák account:oId=$oId";
+ }
+ }
+
+ if (in_array('vegzosSzuloAzonositokTorlese', $ADAT['step'])) {
+
+ require_once('include/modules/session/search/searchAccount.php');
+ // Végzősök szülői azonosítóinak törlése (mayor_parent.accounts - pontosabban: lezárt jogviszonyúak userAccount=NULL)
+ $q = "SELECT szulo.userAccount
+ FROM diak LEFT JOIN szulo ON szuloId IN (apaId,anyaId,gondviseloId)
+ WHERE szulo.userAccount IS NOT NULL GROUP BY szulo.userAccount
+ HAVING SUM(IF(diak.statusz IN ('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve'), 1, 0)) = 0
+ AND SUM(IF(diak.statusz IN ('jogviszonya lezárva','felvételt nyert'),1,0)) > 0";
+
+ $userAccounts = db_query($q, array('fv' => 'closeTanev/azonosítók lekérdezése', 'modul' => 'naplo_intezmeny', 'result' => 'idonly'));
+ foreach ($userAccounts as $index => $userAccount) {
+ $ret = searchAccount('userAccount', $userAccount, array('userAccount'), 'parent');
+ if ($ret['count'] == 1)
+ deleteAccount($ret[0]['userAccount'][0], 'parent');
+ else
+ $_SESSION['alert'][] = "message:wrong_data:nincs szülő account:userAccount=$userAccount";
+
+ $q = "UPDATE szulo SET userAccount=NULL WHERE userAccount IN ('".implode("','", array_fill(0, count($userAccounts), '%s'))."')";
+
+ db_query($q, array('fv' => 'closeTanev', 'modul' => 'naplo_intezmeny', 'values' => $userAccounts));
+ }
+
+ }
+
+ if (in_array('tanevLezaras', $ADAT['step'])) {
+
+ // A tanév lezárása
+ setTanevStatus($tanev,'lezárt');
+
+ $Wnemszamit = defWnemszamit();
+ // A tanévhez tartozó hiányzási adatok lekérdezése és rögzítése
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ foreach ($Szemeszter as $i => $szAdat) {
+ if ($szAdat['statusz'] == 'aktív') { // tervezett és lezárt szemeszter nem zárható le...
+ // replace - ha megnyitunk és újra lezárunk egy tanévet...
+ $q = "REPLACE INTO ".__INTEZMENYDBNEV.".hianyzasOsszesites
+ SELECT diakId, %u AS tanev, %u AS szemeszter,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt',1,NULL)) AS igazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL)) AS igazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) AS kesesPercOsszeg,
+
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt' AND tankorTipus.jelleg='gyakorlat',1,NULL)) AS gyakorlatIgazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan' AND tankorTipus.jelleg='gyakorlat',1,NULL)) AS gyakorlatIgazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan' AND tankorTipus.jelleg='gyakorlat',perc,NULL)) AS gyakorlatKesesPercOsszeg,
+
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt' AND tankorTipus.jelleg='elmélet',1,NULL)) AS elmeletIgazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan' AND tankorTipus.jelleg='elmélet',1,NULL)) AS elmeletIgazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan' AND tankorTipus.jelleg='elmélet',perc,NULL)) AS elmeletKesesPercOsszeg
+
+ FROM `%s`.hianyzas ".$Wnemszamit['join']."
+ WHERE (
+ tipus = 'hiányzás'
+ OR (tipus='késés' AND statusz='igazolatlan' AND perc IS NOT NULL)
+ ) AND dt<='%s'
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY diakId";
+ $v = array($tanev, $szAdat['szemeszter'], $tanevDb, $szAdat['zarasDt']);
+ $r = db_query($q, array('fv' => 'closeTanev/hianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ // A hozott hiányzások hozzáadása
+ $q = "UPDATE ".__INTEZMENYDBNEV.".hianyzasOsszesites SET
+ igazolt = igazolt + (
+ SELECT IFNULL(SUM(dbHianyzas),0) FROM `%s`.hianyzasHozott AS `hh`
+ WHERE hh.diakId = hianyzasOsszesites.diakId AND hh.statusz='igazolt' AND hh.dt<='%s'
+ ),
+ igazolatlan = igazolatlan + (
+ SELECT IFNULL(SUM(dbHianyzas),0) FROM `%s`.hianyzasHozott AS `hh`
+ WHERE hh.diakId = hianyzasOsszesites.diakId AND hh.statusz='igazolatlan' AND hh.dt<='%s'
+ )
+ WHERE tanev=%u AND szemeszter=%u";
+ $v = array($tanevDb, $szAdat['zarasDt'], $tanevDb, $szAdat['zarasDt'], $tanev, $szAdat['szemeszter']);
+ $r = db_query($q, array('fv' => 'closeTanev/hianyzasOsszesites/hozott', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+ }
+ }
+
+ return true;
+
+ }
+
+ function setTanevStatus($tanev,$statusz) {
+ global $mayorCache;
+ $mayorCache->delType('szemeszter');
+
+ $q = "UPDATE szemeszter SET statusz='%s' WHERE tanev=%u";
+ $v = array($statusz, $tanev);
+ return db_query($q, array('fv' => 'setTanevStatus', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+
+
+ function refreshOsztalyNaplo($dbNev, $tanev) {
+
+ global $mayorCache;
+ $mayorCache->flushdb();
+
+ $lr = db_connect('naplo_intezmeny', array('priv' => 'Write', 'fv' => 'refreshOsztalyNaplo'));
+ if (!$lr) return false;
+
+ $q = "SELECT `osztalyId`,"._osztalyJel($tanev)." AS `osztalyJel`,"._evfolyam($tanev)." AS evfolyam,"._evfolyamJel($tanev)." AS evfolyamJel
+ FROM `osztaly` LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId)
+ WHERE kezdoTanev<=%u AND vegzoTanev>=%u
+ ORDER BY evfolyam, evfolyamJel, kezdoTanev, jel";
+
+ $v = array($tanev, $tanev);
+ $ret = db_query($q, array('fv' => 'refreshOsztalyNaplo', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $lr);
+ if (!is_array($ret)) return false;
+ foreach ($ret as $key => $sor) {
+ $q = "REPLACE INTO `%s`.osztalyNaplo (osztalyId,osztalyJel,evfolyam,evfolyamJel) VALUES (%u,'%s',%u,'%s')";
+ $v = array($dbNev, $sor['osztalyId'], $sor['osztalyJel'], $sor['evfolyam'], $sor['evfolyamJel']);
+ db_query($q, array('fv' => 'refreshOsztalyNaplo', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ }
+
+ db_close($lr);
+ return true;
+
+
+ }
+
+ function szemeszterModositasOrig($ADAT) {
+
+
+ for ($i = 0; $i < count($ADAT); $i++) {
+
+ $kezdesDt = $ADAT[$i]['kezdesDt']; $zarasDt = $ADAT[$i]['zarasDt'];
+ $tanev = $ADAT[$i]['tanev']; $szemeszter = $ADAT[$i]['szemeszter'];
+
+ $q = "SELECT zarasDt FROM szemeszter WHERE tanev=%u AND szemeszter=%u";
+ $v = array($tanev, $szemeszter);
+ $zDt = db_query($q, array('fv' => 'szemeszterModositas', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result'=>'value'));
+
+ $q = "SELECT count(*) FROM zaroJegy WHERE hivatalosDt='%s'";
+ $v = array($zDt);
+ $db = db_query($q, array('fv' => 'szemeszterModositas', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result'=>'value'));
+
+ if ($db==0) {
+
+ $q = "UPDATE szemeszter SET kezdesDt='%s',zarasDt='%s' WHERE tanev=%u AND szemeszter=%u";
+ $v = array($kezdesDt, $zarasDt, $tanev, $szemeszter);
+ db_query($q, array('fv' => 'szemeszterModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ } else {
+ $_SESSION['alert'][] = 'error:wrong_data:van már a '.$zDt.'-hez rögzített zárójegy!';
+ return false;
+ }
+ }
+
+ }
+
+ /*
+ * A szemeszter dátumhatárainak módosítása több dolgot is érint.
+ * 1. A zárójegyek hivatalos dátuma a szemszter záró dátuma - kivéve a vizsgajegyket.
+ * - megoldás: módosítsuk a zárójegy dátumát
+ * 2. A tanév nap táblája a tanév kezdetétől a végéig tartalmaz napokat.
+ * - vegyük fel, illetve töröljük a hiányzó napokat (??)
+ * 3. Elképzelhető, hogy a már beírt órákat, és ezen keresztül hiányzásokat és jegyeket is érinti a módosítás (ora tábla)
+ * - Ha órák törlésével járna, akkor egyszerűbb nem megengedni a módosítást. Ha kell, akkor előre törölje az órákat külön!
+ */
+ function szemeszterModositas($ADAT) {
+
+ global $mayorCache;
+ $mayorCache->flushdb();
+
+ $success = true;
+ for ($i = 0; $i < count($ADAT); $i++) {
+
+ unset($tolDt); unset($igDt);
+ $kezdesDt = $ADAT[$i]['kezdesDt']; $zarasDt = $ADAT[$i]['zarasDt'];
+ $tanev = $ADAT[$i]['tanev']; $szemeszter = $ADAT[$i]['szemeszter'];
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'szemeszterModositas'));
+ db_start_trans($lr);
+
+ // a korábbi szemeszter zárás dátumának és státuszának lekérdezése
+ $q = "SELECT statusz, kezdesDt, zarasDt FROM szemeszter WHERE tanev=%u AND szemeszter=%u";
+ $v = array($tanev, $szemeszter);
+ $ret = db_query($q, array('fv' => 'szemeszterModositas/select', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result'=>'record'));
+ $kDt = $ret['kezdesDt']; $zDt = $ret['zarasDt'];
+ if ($ret['statusz'] == 'lezárt') {
+ // lezárt szemeszter adatait ne változtassuk
+ $_SESSION['alert'][] = 'message:wrong_data:lezárt szemeszter! (szemeszter='.$tanev.'/'.$szemeszter.')';
+ db_rollback($lr); db_close($lr); $success = false; continue;
+ }
+ if (($szemeszter == 1 && $kezdesDt != $kDt) || ($szemeszter == 2 && $zarasDt != $zDt)) {
+ // tanév kezdő vagy záró dátumának módosítása
+ if ($ret['statusz'] == 'aktív') {
+ // A tanév adatbázisát is érintik a változások
+ if ($szemeszter == 1 && $kezdesDt > $kDt) {
+ // Ha az év elejéből el kellene venni napokat, akkor ellenőrizzük, hogy vannak-e órák ezekre a napokra már beírva
+ $q = "SELECT COUNT(*) FROM `$tanevDb`.`ora` WHERE `dt` < '%s'";
+ $v = array($kezdesDt);
+ $db = db_query($q, array('fv' => 'szemeszterModositas/ora - kezdés', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'), $lr);
+ if ($db === "0") {
+ // Ha nincs betöltött óra, akkor módosíthatók a nap tábla megfelelő rekordjai; munkanapok --> szorgalmi időszakon kívüli munkanap
+ $q = "UPDATE `$tanevDb`.`nap` SET tipus='szorgalmi időszakon kívüli munkanap', orarendiHet=0
+ WHERE `dt` < '%s' AND tipus IN ('tanítási nap','speciális tanítási nap','tanítás nélküli munkanap')";
+ $v = array($kezdesDt);
+ $db = db_query($q, array('fv' => 'szemeszterModositas/delete nap', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'), $lr);
+ } else {
+ // Ha van, akkor hibát üzenünk és nem hajtjuk végre a módosítást
+ $_SESSION['alert'][] = 'message:insufficient_access:szemeszterMododitas/tanév később kezdés:A dátumváltoztatás már betöltött órákat érintene!';
+ db_rollback($lr, 'szemeszterModositas/van betöltött óra!'); db_close($lr); $success = false; continue;
+ }
+ } elseif ($szemeszter == 2 && $zarasDt < $zDt) {
+ // Ha az év végéből kell elvenni napokat, akkor ellenőrizzük, hogy vannak-e _lekötött_ órák ezekre a napokra már beírva
+ $q = "SELECT COUNT(*) FROM `$tanevDb`.`ora` WHERE `dt` > '%s' AND munkaido='lekötött'";
+ $v = array($zarasDt);
+ $db = db_query($q, array('fv' => 'szemeszterModositas/ora - zárás', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'), $lr);
+ if ($db === "0") {
+ // Ha nincs betöltött óra, akkor módosíthatók a nap tábla megfelelő rekordjai; munkanapok --> szorgalmi időszakon kívüli munkanap
+ $q = "UPDATE `$tanevDb`.`nap` SET tipus='szorgalmi időszakon kívüli munkanap', orarendiHet=0
+ WHERE `dt` > '%s' AND tipus IN ('tanítási nap','speciális tanítási nap','tanítás nélküli munkanap')";
+ $v = array($zarasDt);
+ $db = db_query($q, array('fv' => 'szemeszterModositas/delete nap', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'), $lr);
+ } else {
+ // Ha van, akkor hibát üzenünk és nem hajtjuk végre a módosítást
+ $_SESSION['alert'][] = 'message:insufficient_access:szemeszterMododitas/tanév rövidítés:A dátumváltoztatás már betöltött órákat érintene!';
+ db_rollback($lr, 'szemeszterModositas/van betöltött óra!'); db_close($lr); $success = false; continue;
+ }
+ } elseif ($szemeszter == 1 && $kezdesDt < $kDt) {
+ // éves munkaterv (nap tábla) bővítése
+ $tolDt = $kezdesDt; $igDt = date('Y-m-d', strtotime('-1 day', strtotime($kDt)));
+ } elseif ($szemeszter == 2 && $zarasDt > $zDt) {
+ // éves munkaterv (nap tábla) bővítése
+ $tolDt = date('Y-m-d', strtotime('+1 day', strtotime($zDt))); $igDt = $zarasDt;
+ }
+ if (isset($tolDt) && isset($igDt)) {
+ $Hetek = array(1);
+ $r = napokHozzaadasa($tanev, $tolDt, $igDt, $ADAT[$i], $lr);
+ unset($tolDt); unset($igDt);
+ if (!$r) { db_rollback($lr, 'szemeszterModositas/nap felvétel'); db_close($lr); $success = false; continue; }
+ /*orarendiHetekHozzarendelese($tolDt, $igDt, $Hetek, $lr);*/
+ }
+ } // aktív tanév
+ } // tanév hossza változik
+ // Az érintett, vizsgához nem kapcsolódó zárójegyek hivatalos dátumának módosítása
+ $q = "UPDATE zaroJegy LEFT JOIN vizsga USING (zaroJegyId) SET hivatalosDt='%s' WHERE hivatalosDt='%s' AND vizsgaId IS NULL";
+ $v = array($zarasDt, $zDt);
+ $r = db_query($q, array('fv' => 'szemeszterModositas', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result'=>'value'));
+ if ($r === false) { db_rollback($lr, 'szemeszterModositas/zarójegyek'); db_close($lr); $success = false; continue; }
+ // A szemeszter kezdés és zárás dátumának módosítása
+ $q = "UPDATE szemeszter SET kezdesDt='%s',zarasDt='%s' WHERE tanev=%u AND szemeszter=%u";
+ $v = array($kezdesDt, $zarasDt, $tanev, $szemeszter);
+ $r = db_query($q, array('fv' => 'szemeszterModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ if ($r === false) { db_rollback($lr, 'szemeszterModositas/dátum módosítás'); db_close($lr); $success = false; continue; }
+
+ db_commit($lr);
+ db_close($lr);
+
+ $_SESSION['alert'][] = 'info:success:tanev='.$tanev.', szemeszter='.$szemeszter;
+
+ }
+ return $success;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/admin/tankorok.php b/mayor-orig/www/include/modules/naplo/admin/tankorok.php
new file mode 100644
index 00000000..23887dbd
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/admin/tankorok.php
@@ -0,0 +1,133 @@
+<?php
+
+ function updateTankor($file, $MEZO_LISTA, $KULCS_MEZOK, $mezo_elvalaszto = ' ', $rovatfej = false) {
+
+
+ if (!file_exists($file)) {
+ $_SESSION['alert'][] = 'message:file_not_found:'.$file;
+ return false;
+ }
+
+ if (!is_array($MEZO_LISTA)) {
+ $_SESSION['alert'][] = 'message:wrong_parameter:MEZO_LISTA';
+ return false;
+ }
+
+ if (!is_array($KULCS_MEZOK)) {
+ $_SESSION['alert'][] = 'message:wrong_parameter:KULCS_MEZOK';
+ return false;
+ }
+
+ // A frissítendő attribútumok listája
+ $attrList = array_values(array_filter($MEZO_LISTA));
+
+ $fp = fopen($file,'r');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open_error:'.$file;
+ return false;
+ }
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'updateTankor'));
+ if (!$lr) {
+ fclose($fp);
+ return false;
+ }
+
+ // Az első sor kihagyása
+ if ($rovatfej) $sor = fgets($fp,1024);
+
+ // TárgyId-k átváltása
+ $keyNev = array_search('targyNev',$MEZO_LISTA);
+ if (!$keyNev && $keyNev !== 0) $keyNev = false;
+ if ($keyNev) {
+ $keyId = array_search('targyId',$MEZO_LISTA);
+ if (!$keyId && $keyId !== 0) { // Ha nincs targyId, akkor felvezzük a mező listába
+ $keyId = count($MEZO_LISTA);
+ $MEZO_LISTA[] = 'targyId';
+ }
+ $MEZO_LISTA[$keyNev] = ''; // A targyNev nem játszik szerepet többet, csak a targyId
+ $targyak = array(); // $targyNev --> $targyId átalakítás tárolása
+ $attrList = array_values(array_filter($MEZO_LISTA)); // az attrList újragenerálása (targyNev helyett targyId)
+ if (in_array($keyNev,$KULCS_MEZOK)) { // Ha a targyNev kulcs lenne, akkor legyen helyette a tagyId a kulcs (ha már eleve benne volt a targyId, akkor most kétszer lesz benne - nem baj!)
+ $k = array_search($keyNev,$KULCS_MEZOK);
+ $KULCS_MEZOK[$k] = $keyId;
+ }
+ }
+
+ while ($sor = fgets($fp,1024)) {
+
+ $adatSor = explode($mezo_elvalaszto,chop($sor));
+ $update = $hianyzoTargyId = false;
+
+ // targyId megállapítása a targyNev alapján
+ if (
+ $keyNev !== false // Ha van targyNev mező
+ && $adatSor[$keyNev] != '' // és nem üres
+ && $adatSor[$keyId] == '' // de nincs megadva targyId
+
+ ) {
+ if (!isset($targyak[$adatSor[$keyNev]])) { // Ha még nem kérdeztük le a targyId-t
+ $q = "SELECT targyId FROM targy WHERE targyNev='%s'";
+ $v = array($adatSor[$keyNev]);
+ $targyak[$adatSor[$keyNev]] = db_query($q, array(
+ 'fv' => 'updateTankor', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v
+ ), $lr);
+ if (!$targyak[$adatSor[$keyNev]]) {
+ $_SESSION['alert'][] = 'message:wrong_data:tárgyNév:'.$adatSor[$keyNev].':'.$num.':'.$sor;
+ $hianyzoTargyId = true;
+ }
+ }
+ $adatSor[$keyId] = $targyak[$adatSor[$keyNev]];
+ }
+ // Innentől ha lehetett, akkor a targyNev le lett cserélve targyId-re - minden megy a sima frissítés szerint
+
+ // keresési feltétel összerakása
+ $where = '';
+ for ($i=0; $i<count($KULCS_MEZOK); $i++) {
+ if ($adatSor[$KULCS_MEZOK[$i]] != '') {
+ $where .= ' AND '.$MEZO_LISTA[$KULCS_MEZOK[$i]]."='".$adatSor[$KULCS_MEZOK[$i]]."' ";
+ }
+ }
+ if ($where != '') {
+ $where = substr($where,5);
+ $q = 'SELECT COUNT(*) FROM tankor WHERE '.$where;
+ $num = db_query($q, array('fv' => 'updateTankor', 'modul' => 'naplo_intezmeny', 'result' => 'value'), $lr);
+ $update = ($num > 0);
+ }
+ if ($update) {
+ $UPDATE = array();
+ for ($i = 0; $i < count($MEZO_LISTA); $i++) {
+ if (
+ $MEZO_LISTA[$i] != ''
+ and $adatSor[$i] != ''
+ and !in_array($i,$KULCS_MEZOK)
+ ) {
+ $UPDATE[] = $MEZO_LISTA[$i]."='".$adatSor[$i]."'";
+ }
+ }
+ if (count($UPDATE) > 0) {
+ $q = 'UPDATE tankor SET '.implode(',',$UPDATE).' WHERE '.$where;
+ $r = db_query($q, array('fv' => 'updateTankor', 'modul' => 'naplo_intezmeny'), $lr);
+ }
+ } elseif (!$hianyzoTargyId) {
+ $value = array();
+ for ($i=0; $i<count($MEZO_LISTA); $i++) {
+ if ($MEZO_LISTA[$i] != '') $value[] .= $adatSor[$i];
+ }
+ $VALUES[] = "('".implode("','",$value)."')";
+ }
+
+ } // while
+ if (count($VALUES) > 0) {
+ $q = 'INSERT INTO tankor ('.implode(",",$attrList).') VALUES '.implode(",\n",$VALUES);
+ $r = db_query($q, array('fv' => 'updateTankor', 'modul' => 'naplo_intezmeny'), $lr);
+ }
+
+ db_close($lr);
+
+ fclose($fp);
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/base/base.php b/mayor-orig/www/include/modules/naplo/base/base.php
new file mode 100644
index 00000000..d3c32ad6
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/base/base.php
@@ -0,0 +1,298 @@
+<?php
+
+ function initTolIgDt($tanev, &$tolDt, &$igDt, $override = false) {
+
+ global $_TANEV;
+
+ if (!is_numeric($tanev)&&$tanev!='') $_SESSION['alert'][] = 'info:TANEV:paramalert'.serialize($tanev);
+
+ if ($tanev != '') {
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev);
+ else $TA = $_TANEV;
+ if ($tanev == __TANEV && __FOLYO_TANEV) {
+ $dt = date('Y-m-d');
+ if ($tolDt == '') $tolDt = $dt;
+ elseif (!$override && strtotime($tolDt) < strtotime($TA['kezdesDt'])) $tolDt = $TA['kezdesDt'];
+ if ($igDt == '') if (strtotime($dt) > strtotime($tolDt)) $igDt = $dt; else $igDt = $tolDt;
+ elseif (!$override && strtotime($igDt) > strtotime($TA['zarasDt'])) $igDt = $TA['zarasDt'];
+ } else {
+ if ($tolDt == '' or (!$override && strtotime($tolDt) < strtotime($TA['kezdesDt']))) $tolDt = $TA['kezdesDt'];
+ elseif ($tolDt != '' && strtotime($TA['zarasDt']) < strtotime($tolDt)) $tolDt = $TA['zarasDt'];
+ if ($igDt == '' or (!$override && strtotime($igDt) > strtotime($TA['zarasDt']))) $igDt = $TA['zarasDt'];
+ elseif ($igDt != '' && strtotime($igDt) < strtotime($TA['kezdesDt'])) $igDt = $TA['kezdesDt'];
+ }
+ }
+ }
+
+ // -------------------------------------------------- //
+
+ function getTanitasiNapVissza($napszam, $from = 'curdate()', $olr = '') {
+ return getTanitasiNap(array('direction'=>'vissza','napszam'=>$napszam,'fromDt'=>$from), $olr);
+ }
+
+ function getTanitasiNap($ADAT = array('direction'=>'', 'napszam'=>0, 'fromDt'=>'curdate()'), $olr = null) {
+
+ global $_TANEV;
+
+ if ($ADAT['fromDt']!='') $fromDt = $ADAT['fromDt']; else $fromDt = 'curdate()';
+ if ($ADAT['direction']!='') $direction = $ADAT['direction'];
+ if ($ADAT['napszam']!='') $napszam = $ADAT['napszam'];
+ if ($napszam < 0 || !defined('__TANEV') || is_null(__TANEV) ||!is_array($_TANEV) || $_TANEV['kezdesDt']=='' || $_TANEV['statusz']=='tervezett') {
+ return false;
+ }
+ if ($direction == 'vissza') { $relacio='<'; $DESC = 'DESC'; }
+ else { $relacio = '>'; $DESC = 'ASC'; }
+
+ if ($napszam==0) { // extra eset
+ $v = array($fromDt,1);
+ $from="CAST('%s' AS DATE)";
+ if ($direction == 'vissza') $relacio = '<=';
+ else $relacio = '>=';
+ $limit = "1";
+ } elseif ($fromDt != 'curdate()') {
+ $v = array($fromDt, ($napszam-1));
+ $from="CAST('%s' AS DATE)";
+ $limit = "%u,1";
+ } else {
+ $v = array(($napszam-1));
+ $from='curdate()';
+ $limit = "%u,1";
+ }
+
+ $q = "SELECT DISTINCT(dt) FROM nap
+ WHERE dt $relacio $from
+ AND tipus LIKE '%%tanítási nap'
+ ORDER BY dt $DESC
+ LIMIT ".$limit;
+ $nap = db_query($q, array('fv' => 'getTanitasiNap', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $olr);
+ // Ha nincs elég tanítási nap, akkor iránytól függően adjuk vissza a szélső értékeket
+ if ($nap == '') {
+ if ($direction == 'vissza') $nap = date('Y-m-d',strtotime($_TANEV['kezdesDt'])); // ez ugye lehet nem tanítási nap is!
+ else $nap = date('Y-m-d',strtotime($_TANEV['zarasDt'])); // ez ugye lehet nem tanítási nap is!
+ }
+
+ return $nap;
+
+ }
+
+ function getTanitasiHetHetfo($ADAT = array('direction'=>'', 'napszam'=>0, 'fromDt'=> ''), $olr = null) {
+
+ global $_TANEV;
+
+ if ($ADAT['fromDt']!='') $fromDt = $ADAT['fromDt']; else $fromDt = date('Y-m-d');
+ if ($ADAT['direction']!='') $direction = $ADAT['direction'];
+ if ($ADAT['napszam']!='') $napszam = $ADAT['napszam'];
+ if ($napszam < 0 || !defined('__TANEV') || is_null(__TANEV) ||!is_array($_TANEV) || $_TANEV['kezdesDt']=='') {
+ return false;
+ }
+ if ($napszam == 0) {
+ // Az előző/következő napot követő/megelőző nap utáni 1 tanítási nap
+ if ($direction == 'vissza') { $muv = '+'; }
+ else { $muv = '-'; }
+ $v = array($napszam);
+ $from = "'$fromDt' $muv INTERVAL 1 DAY";
+ } elseif ($fromDt != 'curdate()') {
+ $v = array($fromDt, ($napszam-1));
+ $from="CAST('%s' AS DATE)";
+ } else {
+ $v = array(($napszam-1));
+ $from = $fromDt;
+ }
+ if ($direction == 'vissza') { $relacio='<'; $DESC = 'DESC'; }
+ else { $relacio = '>'; $DESC = 'ASC'; }
+
+ $q = "SELECT DISTINCT( DATE(dt-INTERVAL (DAYOFWEEK(dt)-2) DAY) ) AS dt FROM nap
+ WHERE dt $relacio $from
+ AND tipus LIKE '%%tanítási nap'
+ ORDER BY dt $DESC
+ LIMIT %u,1";
+ $nap = db_query($q, array('fv' => 'getTanitasiNap', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $olr);
+
+ if ($nap == '') $nap = date('Y-m-d',strtotime($_TANEV['kezdesDt'])); // ez ugye lehet nem tanítási nap is!
+
+ return $nap;
+
+ }
+
+
+ // -------------------------------------------------- //
+
+ function checkNaplo($dt = '') {
+
+ global $_TANEV;
+
+ $time = strtotime($dt);
+
+ if ($time < strtotime($_TANEV['kezdesDt']) || $time > strtotime($_TANEV['zarasDt'])) return false;
+ if ($time === false // $dt == '0000-00-00' || $dt == '' || !isset($dt)
+ || __TANKOROK_OK !== true
+ || (
+ !__NAPLOADMIN
+ && ($time < strtotime($_TANEV['kezdesDt']) || $time > strtotime($_TANEV['zarasDt']))
+ )
+ ) {
+ $_SESSION['alert'][] = 'message:wrong_data:checkNaplo:'.$dt.'('.(__TANKOROK_OK?1:2).')';
+ return false;
+ } else {
+
+ $napszam = date('w', strtotime($dt));
+ if ($napszam == 0) $napszam = 7;
+
+ // Muszáj újrakapcsolódnunk a lock miatt - nem adható át $olr...
+ $lr = db_connect('naplo', array('force' => true, 'fv' => 'checkNaplo'));
+
+ // E helyett: Van-e olyan munkaterv, amiben van tanítási nap - sőt, lekérdezzük rögtön a hozzá tartozó órarendi hét-osztalyId párokat is!
+ $query = "SELECT distinct orarendiHet, osztalyId FROM nap LEFT JOIN munkatervOsztaly USING (munkatervId) WHERE dt=CAST('%s' AS DATE)
+ AND tipus='tanítási nap' AND osztalyId IS NOT NULL"; // ha egy munkatervhez nincs osztály rendelve, akkor se zavarjon be...
+ $v = array($dt);
+ // keyvalues = első mező a kulcs, azon belül a második mező indexelve jelenik meg
+ $RESULT = db_query($query, array('fv' => 'checkNaplo', 'modul' => 'naplo', 'result' => 'keyvalues', 'values' => $v), $lr);
+ if ($RESULT===false) {
+ db_close($lr);
+ return false;
+ }
+ if (is_array($RESULT) && count($RESULT) > 0) {
+
+ $query = "SELECT oraId FROM ora WHERE dt=CAST('%s' AS DATE) LIMIT 1";
+ $_oraId = db_query($query, array('fv' => 'checkNaplo/testIfCheck', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $lr);
+ if ($_oraId === false) {
+ db_close($lr);
+ return false;
+ }
+
+ if ($_oraId === null) {
+
+ // lock
+ $lock_q = 'LOCK TABLE ora write, orarendiOra read, orarendiOraTankor read, osztalyNaplo READ, '.__INTEZMENYDBNEV.'.osztaly READ,'.__INTEZMENYDBNEV.'.tankorOsztaly READ,'.__INTEZMENYDBNEV.'.tankorSzemeszter READ';
+ db_query($lock_q, array('fv' => 'checkNaplo/lock ora', 'modul' => 'naplo'), $lr);
+ // recheck
+ $query = "SELECT oraId FROM ora WHERE dt=CAST('%s' AS DATE) LIMIT 1";
+ $_oraId = db_query($query, array('fv' => 'checkNaplo/testIfCheck', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $lr);
+ if ($_oraId === false || $_oraId !== null) {
+ db_query('unlock tables', array('fv' => 'checkNaplo/lock ora', 'modul' => 'naplo'), $lr);
+ db_close($lr);
+ return false;
+ }
+ // --
+
+ // órarendi hetenként töltjük be... bár jelenleg egy nap csak egy órarendi hét lehet!
+ foreach ($RESULT as $orarendiHet => $osztalyIds) {
+ if (!is_array($osztalyIds) || count($osztalyIds)==0) continue;
+ // INSERT-be pedig csak azon tankorId-k, amik szerepelnek a tankorOsztaly táblában
+ $q = "SELECT DISTINCT tankorId FROM ".__INTEZMENYDBNEV.".tankorOsztaly WHERE osztalyId IN (".implode(',',$osztalyIds).")";
+ $tankorIds = db_query($q, array('fv'=>'checkNaplo/tankorIds', 'modul'=>'naplo', 'result'=>'idonly'));
+ // Elvileg nem lehet tankor NULL - _TANKOROK_OK
+ // De sajnos minden lehet:
+ if (!is_array($tankorIds) || count($tankorIds)==0) continue;
+ $query = "INSERT INTO ora (dt,ora,ki,tankorId,teremId,tipus,eredet)
+ SELECT '%s',ora,orarendiOra.tanarId AS tanarId, orarendiOraTankor.tankorId AS tankorId,
+ teremId, 'normál','órarend'
+ FROM orarendiOra LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE orarendiOraTankor.tankorId IS NOT NULL
+ AND tankorId IN (".implode(',', $tankorIds).")
+ AND het=%u
+ AND nap=%u
+ AND tolDt<='%s' AND igDt>='%s' "; // !!!!
+ $v = array($dt, $orarendiHet, $napszam, $dt, $dt);
+ $er = db_query($query, array('fv' => 'checkNaplo/finally', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+
+ db_query('unlock tables', array('fv' => 'checkNaplo/unlock', 'modul' => 'naplo'), $lr);
+ if ($er === false) {
+ db_close($lr);
+ return false;
+ }
+ }
+ //}
+ }
+ db_close($lr);
+ return true;
+ }
+ }
+
+ // -------------------------------------------------- //
+
+ function checkNaploStatus($olr = '') {
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ // A munkaterv meglétének ellenőrzése
+ $q = "SELECT COUNT(*) FROM nap";
+ $count = db_query($q, array('fv' => 'checkNaploStatus/darab', 'modul' => 'naplo', 'result' => 'value'), $lr);
+ define('__MUNKATERV_OK', ($count != 0));
+
+ $q = "SELECT COUNT(*) FROM orarendiOra WHERE tolDt <= curdate() AND igDt >= curdate()";
+ $count = db_query($q, array('fv' => 'checkNaploStatus/darab', 'modul' => 'naplo', 'result' => 'value'), $lr);
+ define('__ORAREND_OK', ($count != 0));
+
+ $q = "SELECT COUNT(DISTINCT orarendiOra.tanarId, orarendiOra.targyJel, orarendiOra.osztalyJel)
+ FROM orarendiOra LEFT JOIN orarendiOraTankor USING(tanarId, targyJel, osztalyJel)
+ WHERE tankorId IS NULL";
+ $count = db_query($q, array('fv' => 'checkNaploStatus/darab', 'modul' => 'naplo', 'result' => 'value'),$lr);
+ if ($count != 0) {
+ define('__TANKOROK_OK', false);
+ define('__HIANYZO_TANKOROK_SZAMA', $count);
+ } else {
+ define('__TANKOROK_OK', true);
+ define('__HIANYZO_TANKOROK_SZAMA', 0);
+ }
+
+ if ($olr == '') db_close($lr);
+
+ }
+
+ function checkDiakStatusz() {
+
+ /* Konzisztencia ellenőrzés */
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'checkDiakStatusz'));
+ db_start_trans($lr);
+
+ // Ha státusz!='felvételt nyert' akkor kell lennie jogviszonyKezdete dátumnak
+ $q = "SELECT COUNT(*) AS db FROM diak WHERE statusz!='felvételt nyert' AND (jogviszonyKezdete IS NULL OR jogviszonyKezdete = '0000-00-00')";
+ $db = db_query($q, array('fv' => 'checkDiakStatusz/pre#1', 'modul' => 'naplo_intezmeny', 'result' => 'value'), $lr);
+ if (__NAPLOADMIN && $db > 0) $_SESSION['alert'][] = 'message:wrong_data:jogviszonyKezdete hiányzik '.$db.' darab rekordban';
+
+ // Ha van olyan jogviszonyKezdete bejegyzés, melyhez nem tartozik diakJogviszony rekord, akkor azt pótoljuk
+ $q = "SELECT COUNT(*) AS db FROM diak LEFT JOIN diakJogviszony
+ ON diak.diakId = diakJogviszony.diakId AND diakJogviszony.statusz IN ('jogviszonyban van','vendégtanuló') AND diak.jogviszonyKezdete=diakJogviszony.dt
+ WHERE diakJogviszony.dt IS NULL AND jogviszonyKezdete IS NOT NULL AND jogviszonyKezdete != '0000-00-00'";
+ $db = db_query($q, array('fv' => 'checkDiakStatusz/pre#1', 'modul' => 'naplo_intezmeny', 'result' => 'value'), $lr);
+
+ $insDb = 0;
+ if ($db!==false && $db>0) {
+ $q = "INSERT INTO ".__INTEZMENYDBNEV.".diakJogviszony
+ SELECT diak.diakId as diakId, IF(diak.statusz='vendégtanuló','vendégtanuló','jogviszonyban van') AS statusz, jogviszonyKezdete AS dt FROM diak LEFT JOIN diakJogviszony
+ ON diak.diakId = diakJogviszony.diakId AND diakJogviszony.statusz IN ('jogviszonyban van','vendégtanuló') AND diak.jogviszonyKezdete=diakJogviszony.dt
+ WHERE diakJogviszony.dt IS NULL AND jogviszonyKezdete IS NOT NULL AND jogviszonyKezdete != '0000-00-00'";
+ $insDb = db_query($q, array('fv' => 'checkDiakStatusz/#1', 'modul' => 'naplo_intezmeny', 'result' => 'affected rows'), $lr);
+ }
+ // A diakJogviszony tábla alapján állítjuk az aktuális státuszt
+ /* $q = "UPDATE ".__INTEZMENYDBNEV.".diak LEFT JOIN ".__INTEZMENYDBNEV.".diakJogviszony AS dj ON diak.diakId=dj.diakId
+ AND dj.dt=(SELECT MAX(dt) FROM ".__INTEZMENYDBNEV.".diakJogviszony WHERE dt<=CURDATE() AND diakId=dj.diakId)
+ SET diak.statusz = dj.statusz
+ WHERE diak.statusz<>'felvételt nyert' AND dj.statusz IS NOT NULL AND diak.statusz<>dj.statusz";
+ */
+ $q = "SELECT ".__INTEZMENYDBNEV.".diak.diakId,dj.statusz,dt
+ FROM ".__INTEZMENYDBNEV.".diak LEFT JOIN ".__INTEZMENYDBNEV.".diakJogviszony AS dj
+ ON (
+ diak.diakId=dj.diakId
+ AND dj.dt=(SELECT MAX(dt) FROM ".__INTEZMENYDBNEV.".diakJogviszony WHERE dt<=CURDATE() AND diakId=dj.diakId)
+ ) WHERE diak.statusz<>'felvételt nyert' AND dj.statusz IS NOT NULL AND diak.statusz<>dj.statusz ORDER BY diakId,dt";
+ $r = db_query($q, array('fv' => 'checkDiakStatusz/#2', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'), $lr);
+ $updDb = 0;
+ for ($i=0; $i<count($r); $i++) {
+ $q = "UPDATE ".__INTEZMENYDBNEV.".diak SET statusz='%s' WHERE diakId=%u";
+ $v = array($r[$i]['statusz'],$r[$i]['diakId']);
+ $updDb += db_query($q, array('fv' => 'checkDiakStatusz/#2', 'modul' => 'naplo_intezmeny', 'values'=>$v, 'result' => 'affected rows'), $lr);
+ }
+
+ db_commit($lr);
+ db_close($lr);
+
+ return intval($insDb)+intval($updDb);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/base/log.php b/mayor-orig/www/include/modules/naplo/base/log.php
new file mode 100644
index 00000000..e244c9a3
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/base/log.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ module: naplo
+ version: 3.0
+
+ function logAction($SET = array('actionId' => null, 'szoveg' => '', 'tabla' => '', 'values' => array()), $olr = null)
+ Logbejegyzést készít, belerakja a datetime-ot, az action-t és a _USERACCOUNT-ot, ...
+ checkReloadAction($actionId, $action = '', $tabla = '', $olr = '')
+*/
+
+ function logAction($SET = array('actionId' => null, 'szoveg' => '', 'tabla' => '', 'values' => array()), $olr = null) {
+
+ global $action;
+
+ $ip = $_SERVER['REMOTE_ADDR'];
+ $v = mayor_array_join(array($ip, $SET['tabla'], $action), $SET['values'], array($SET['actionId']));
+ $q = "INSERT INTO ".__TANEVDBNEV.".logBejegyzes (userAccount, dt, ip, tabla, action, szoveg, actionId) VALUES
+ ('"._USERACCOUNT."', now(), '%s', '%s', '%s', '".$SET['szoveg']."','%s')";
+ return db_query($q, array('fv' => 'logAction', 'modul' => 'naplo', 'values' => $v), $olr);
+
+ }
+
+ function checkReloadAction($actionId, $action = '', $tabla = '', $olr = null) {
+
+
+ $q = "SELECT logId FROM ".__TANEVDBNEV.".logBejegyzes WHERE actionId = '%s'";
+ $v = array($actionId);
+ if ($action != '') { $q .= " AND action='%s'"; $v[] = $action; }
+ if ($tabla != '') { $q .= " AND tabla='%s'"; $v[] = $tabla; }
+
+ $r = db_query($q, array('fv' => 'checkReloadAction', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $olr);
+
+ if ($r===false) {
+ $_SESSION['alert'][] = 'message:sql_query_failure:checkReloadAction:'.$q.':'.$error;
+ return false;
+ }
+ return ($r === null);
+
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/base/rights.php b/mayor-orig/www/include/modules/naplo/base/rights.php
new file mode 100644
index 00000000..61a3f2a6
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/base/rights.php
@@ -0,0 +1,469 @@
+<?php
+
+ function intezmenyDbNev($intezmeny) { return 'intezmeny_'.$intezmeny; }
+ function tanevDbNev($intezmeny, $tanev) { return 'naplo_'.$intezmeny.'_'.$tanev; }
+
+ function getTanevAdat($tanev = __TANEV, $olr = null) {
+
+ $q = "SELECT * FROM szemeszter WHERE tanev = %u ORDER BY szemeszter";
+ $ret['szemeszter'] = db_query($q, array(
+ 'fv' => 'getTanevAdat', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'szemeszter', 'values' => array($tanev)
+ ), $olr);
+
+ if (!is_array($ret['szemeszter'])) return false;
+
+ // A legkorábbi kezdés és legkésőbbi zárás keresése...
+ $kezdesDt = '2030-01-01'; $zarasDt = '1980-01-01';
+ $kezdes = strtotime($kezdesDt); $zaras = strtotime($zarasDt);
+ foreach ($ret['szemeszter'] as $szemeszter => $A) {
+
+ if ($kezdes > strtotime($A['kezdesDt'])) {
+ $kezdesDt = $A['kezdesDt'];
+ $kezdes = strtotime($kezdesDt);
+ }
+ if ($zaras < strtotime($A['zarasDt'])) {
+ $zarasDt = $A['zarasDt'];
+ $zaras = strtotime($zarasDt);
+ }
+ $ret['statusz'] = $A['statusz'];
+ }
+ $ret['kezdesDt'] = $kezdesDt; $ret['zarasDt'] = $zarasDt; $ret['tanev'] = $tanev;
+ $q = "SELECT MAX(zarasDt) FROM szemeszter WHERE zarasDt<'%s'";
+ $ret['elozoZarasDt'] = db_query($q, array('fv'=>'getTanevAdat/elozo','modul'=>'naplo_intezmeny','result'=>'value','values'=>array($ret['kezdesDt'])));
+ $q = "SELECT MIN(kezdesDt) FROM szemeszter WHERE kezdesDt>'%s'";
+ $ret['kovetkezoKezdesDt'] = db_query($q, array('fv'=>'getTanevAdat/kovetkezo','modul'=>'naplo_intezmeny','result'=>'value','values'=>array($ret['zarasDt'])));
+
+ return $ret;
+
+ }
+
+ function initIntezmeny($DATA) {
+
+ global $MYSQL_DATA;
+
+ $intezmeny = $DATA['intezmeny'];
+ $MYSQL_DATA['naplo_intezmeny'] = $MYSQL_DATA['naplo_base'];
+ $MYSQL_DATA['naplo_intezmeny']['db']= intezmenyDbNev($intezmeny);
+
+ define('__INTEZMENY', $intezmeny);
+ define('__INTEZMENYDBNEV', intezmenyDbNev(__INTEZMENY));
+
+ if (isset($DATA['telephelyId'])) {
+ define('__TELEPHELYID',$DATA['telephelyId']);
+ }
+
+ $num = checkDiakStatusz();
+ if ($num != 0) $_SESSION['alert'][] = 'info:success:checkDiakStatusz:helyreállított rekordok száma='.$num;
+
+ $q = "SELECT OMKod FROM intezmeny WHERE rovidNev='%s'";
+ define('__OMKOD',db_query($q, array('fv' => 'initIntezmeny', 'modul' => 'naplo_base', 'result' => 'value','values'=>array($intezmeny))));
+
+ }
+
+ function initTanev($intezmeny, $tanev) {
+
+ global $MYSQL_DATA, $_TANEV;
+
+ $MYSQL_DATA['naplo'] = $MYSQL_DATA['naplo_base'];
+ $MYSQL_DATA['naplo']['db']= tanevDbNev($intezmeny, $tanev);
+
+ define('__TANEV', $tanev);
+ define('__TANEVDBNEV', tanevDbNev(__INTEZMENY, __TANEV));
+ $_TANEV = getTanevAdat();
+ // A kezdes- és zarasDt a szemeszter táblában DATE típusú, így az összehasonlítás korrekt
+ $date = date('Y-m-d');
+ define('__FOLYO_TANEV',(
+ $_TANEV['kezdesDt'] <= $date
+ && $date <= $_TANEV['zarasDt']
+ ));
+
+ if (file_exists($file = _CONFIGDIR."/module-naplo/config-$intezmeny.php")) require_once($file);
+ initDefaults();
+
+ if ($_TANEV['statusz'] == 'aktív') {
+ checkNaploStatus();
+ if (__FOLYO_TANEV)
+ if (__MUNKATERV_OK && __ORAREND_OK && __TANKOROK_OK) checkNaplo(date('Y-m-d'));
+ else $_SESSION['alert'][]= 'info:checkNaploFailed:orarend-'.((__ORAREND_OK)?'ok':'!').':tankorok-'.((__TANKOROK_OK)?'ok':'!');
+ }
+ }
+
+ function initDefaults() {
+
+ if (!defined('_ZARAS_HATARIDO')) define('_ZARAS_HATARIDO',date('Y-m-01 00:00:00',strtotime('10 days ago')));
+ // Helyttesített óra beírása (szaktanár): következő nap 8:00
+ if (!defined('_HELYETTESITES_HATARIDO')) define('_HELYETTESITES_HATARIDO',date('Y-m-d',strtotime('8 hours ago'))); // Csak dárum lehet, mert az órák időpontját nem tudjuk
+ // Jegyek beírása, módosítása, törlése (szaktanár): zárásig (zárt időintervallum!)
+ if (!defined('_OSZTALYOZO_HATARIDO')) define('_OSZTALYOZO_HATARIDO',_ZARAS_HATARIDO);
+
+ // Saját óra beírása (szaktanár)
+ // A mai nap+8 óra előtti tanatási nap utáni napot megelőző hétfő
+ // Azaz egy óra a következő hétfői tanítási nap 16:00-ig írható be.
+ if (!defined('_HALADASI_HATARIDO'))
+ define('_HALADASI_HATARIDO',
+ date('Y-m-d H:i:s',
+ strtotime('last Monday',
+ strtotime('next day',
+ strtotime(
+ getTanitasiNapVissza(1,date('Y-m-d H:i:s',strtotime('+8hours')))
+ )
+ )
+ )
+ )
+ );
+
+ // A nevek rendezése a helyettesítés kiíráskor: súly szerint (súly) vagy névsorban (ABC)
+ if (!defined('__HELYETTESITES_RENDEZES')) define('__HELYETTESITES_RENDEZES','súly');
+ // Fogadóórán egy vizit tervezett hossza
+ if (!defined('_VIZITHOSSZ')) define('_VIZITHOSSZ',10);
+ // Jegyek default súlyozása
+ if (!defined('__DEFAULT_SULYOZAS')) define('__DEFAULT_SULYOZAS','1:1:1:1:1');
+ // Jegymódosításkor a jegy típus modosítható-e (pl: féljegy --> százalékos)
+ if (!defined('__JEGYTIPUS_VALTHATO')) define('__JEGYTIPUS_VALTHATO',false);
+
+ // TANEV
+ // Szülői igazolások száma: félévenként legfeljebb 5 nap
+ define('__SZULOI_IGAZOLAS_FELEVRE',5);
+ define('__SZULOI_IGAZOLAS_EVRE',0);
+ // Szülő által igazolható órák maximális száma: félévenként legfeljebb 14 óra
+ define('__SZULOI_ORA_IGAZOLAS_FELEVRE',14);
+ define('__SZULOI_ORA_IGAZOLAS_EVRE',0);
+ // Osztályfőnöki igazolások száma: évi 3 nap
+ // Csak ha < 5 igazolatlanja van
+ define('__OSZTALYFONOKI_IGAZOLAS_FELEVRE',0);
+ define('__OSZTALYFONOKI_IGAZOLAS_EVRE',5);
+ define('__OSZTALYFONOKI_ORA_IGAZOLAS_FELEVRE',0);
+ define('__OSZTALYFONOKI_ORA_IGAZOLAS_EVRE',21);
+
+ // Összeadjuk-e a késések perceit, hogy átváltsuk
+ if (!defined('_KESESI_IDOK_OSSZEADODNAK')) define('_KESESI_IDOK_OSSZEADODNAK', false);
+ // Hány késés felel meg egy igazolatlan órának - ha 0 vagy _KESESI_IDOK_OSSZEADODNAK, akkor nem váltjuk át
+ if (!defined('_HANY_KESES_IGAZOLATLAN')) define('_HANY_KESES_IGAZOLATLAN', 3);
+ // Hány felszerelés hiány felel meg egy igazolatlan órának - ha 0 vagy _KESESI_IDOK_OSSZEADODNAK, akkor nem váltjuk
+ if (!defined('_HANY_FSZ_IGAZOLATLAN')) define('_HANY_FSZ_IGAZOLATLAN', 3);
+ // Hány egyenruha hiány felel meg egy igazolatlan órának - ha 0, akkor nem váltjuk
+ if (!defined('_HANY_EH_IGAZOLATLAN')) define('_HANY_EH_IGAZOLATLAN', 0);
+
+ // Hiányzás, késés, felszerelés hiány, egyenruha hiány beírása (szaktanár): következő nap 16:00
+ if (!defined('_HIANYZAS_HATARIDO')) define('_HIANYZAS_HATARIDO',date('Y-m-d 00:00:00',strtotime('16 hours ago')));
+ // Hiányzás, késés beírása osztályfőnöknek: 5 tanítási nap
+ if (!defined('_OFO_HIANYZAS_BEIRAS')) define('_OFO_HIANYZAS_BEIRAS',5);
+ if (!defined('_OFO_HIANYZAS_HATARIDO')) define('_OFO_HIANYZAS_HATARIDO',getTanitasiNapVissza(_OFO_HIANYZAS_BEIRAS,'curdate()'));
+ // Igazolás beírásának határideje: 5 tanítási nap
+ if (!defined('_IGAZOLAS_BEIRAS')) define('_IGAZOLAS_BEIRAS',6);
+ if (!defined('_IGAZOLAS_BEIRAS_HATARIDO')) define('_IGAZOLAS_BEIRAS_HATARIDO',getTanitasiNapVissza(_IGAZOLAS_BEIRAS,'curdate()'));
+ // Igazolás leadás határideje - ha nincs közben osztályfőnöki óra: 8 tanítási nap
+ if (!defined('_IGAZOLAS_LEADAS')) define('_IGAZOLAS_LEADAS',8);
+ if (!defined('_LEGKORABBI_IGAZOLHATO_HIANYZAS')) define('_LEGKORABBI_IGAZOLHATO_HIANYZAS',getTanitasiNapVissza(_IGAZOLAS_BEIRAS+_IGAZOLAS_LEADAS,'curdate()'));
+
+ }
+
+ //---
+
+ function getIdByOid($oId, $td = 'diak') {
+
+
+ if (intval($oId) == 0) {
+ $_SESSION['alert'][] = 'page:insufficient_access:Hiányzó oktatási azonosító!:'.$td;
+ return false;
+ }
+ $td = readVariable($td, 'enum', 'diak', array('tanar', 'diak'));
+
+ $q = "SELECT ${td}Id FROM $td WHERE oId = '%s'";
+ $id = db_query($q, array('fv' => 'getIdByOid', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($oId)));
+
+ if (!$id) {
+ $_SESSION['alert'][] = 'message:id_not_found:(oid:'.$oId.')';
+ return false;
+ }
+
+ return $id;
+
+ }
+
+ function getSzuloIdByUserAccount($szuloCheck=true) {
+ $q = "SELECT szuloId FROM ".__INTEZMENYDBNEV.".szulo WHERE userAccount='"._USERACCOUNT."'";
+ $szuloId = db_query($q, array('fv' => 'getSzuloIdByUserAccount', 'modul' => 'naplo_intezmeny', 'result' => 'value'));
+ if ($szuloCheck===true && __CHECK_SZULO_TORVENYES === true) {
+ $q = "SELECT count(*) FROM `".__INTEZMENYDBNEV."`.`diak` WHERE diakId='".__PARENTDIAKID."' AND
+ (
+ (anyaId=%u AND FIND_IN_SET('anya',torvenyesKepviselo)=1) OR
+ (apaId=%u AND FIND_IN_SET('apa',torvenyesKepviselo)=2) OR
+ (gondviseloId=%u)OR
+ (neveloId=%u) )
+ ";
+ $torvenyesE = db_query($q, array('fv' => 'getSzuloIdByUserAccount', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values'=>array($szuloId,$szuloId,$szuloId,$szuloId)));
+ if ($torvenyesE==0) {
+ $_SESSION['alert'][] = 'page:nem_torvenyes_kepviselo';
+ }
+ }
+ return $szuloId;
+ }
+
+
+ function isTanar($tanarId) {
+ $q = "SELECT COUNT(*) AS db FROM ".__INTEZMENYDBNEV.".tanar
+ WHERE tanarId=%u AND beDt<=CURDATE() AND (kiDt IS NULL OR kiDt>=CURDATE())";
+ $v = db_query($q, array('fv' => 'isTanar', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($tanarId)));
+ return ($v==1);
+ }
+
+ // Én hajlanék arra is, hogy az egész $Param tömböt kivegyük...
+ function getOsztalyIdsByTanarId($tanarId, $Param = array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'csakId'=>true)) {
+
+ global $_TANEV;
+
+ if (is_null($Param['tanev']) || $Param['tanev']=='') $Param['tanev']=__TANEV;
+ if ($Param['tanev'] != __TANEV && $Param['tanev']!='') $TA = getTanevAdat($Param['tanev']);
+ else $TA = $_TANEV;
+
+ if (isset($Param['tolDt']) && $Param['tolDt']!='') $tolDt = $Param['tolDt']; else unset($tolDt);
+ if (isset($Param['igDt']) && $Param['igDt']!='') $igDt = $Param['igDt']; else unset($igDt);
+ initTolIgDt($Param['tanev'], $tolDt, $igDt);
+
+ $q = "SELECT DISTINCT osztalyId FROM ".__INTEZMENYDBNEV.".osztalyTanar WHERE tanarId=%u AND beDt <= '%s'
+ AND (kiDt IS NULL OR kiDt >= '%s')";
+ $v = array($tanarId, $igDt, $tolDt);
+ return db_query($q, array('fv' => 'getOsztalyIdsByTanarId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+
+ }
+
+
+ function naploBeallitasok() {
+
+ global $_RPC;
+
+ $lr = db_connect('naplo_base', array('fv' => 'naploBeallitasok'));
+ if ($lr == false) return false;
+
+ // session lekérdezése
+ $q = "SELECT intezmeny, telephelyId, tanev, parentDiakId FROM session WHERE sessionID='"._SESSIONID."' AND policy='"._POLICY."'";
+ $RESULT = db_query($q, array('fv' => 'naploBeallitasok', 'modul' => 'naplo_base', 'result' => 'record'), $lr);
+
+ if ($vanSession = (is_array($RESULT) && (count($RESULT) > 0))) { // Létező session - egyszerű eset
+
+ if ($RESULT['intezmeny'] != '')
+ initIntezmeny($RESULT);
+ if (defined('__INTEZMENY') && $RESULT['tanev'] != '')
+ initTanev($RESULT['intezmeny'], $RESULT['tanev']);
+ if (_POLICY == 'parent' && $RESULT['parentDiakId'] != '')
+ define('__PARENTDIAKID', $RESULT['parentDiakId']);
+//var_dump($RESULT);
+//die();
+
+ }
+ // Az (alapértelmezett) intézmény lekérdezése - ha még nincs meg
+ if (!defined('__INTEZMENY')) {
+
+ if (_RPC) {
+ /* Ha az RPC hívás tartalmazza az OMKod-ot */
+ $OMKod = readVariable($_RPC['request']['OMKod'],'numeric unsigned');
+ $q = "SELECT rovidNev AS intezmeny FROM intezmeny WHERE OMKod=%u";
+ $RESULT = db_query($q, array('fv' => 'naploBeallitasok/settings', 'modul' => 'naplo_base', 'values'=> array($OMKod),'result' => 'record'));
+ if ($RESULT['intezmeny'] == '' && $page=='naplo') { // ismeretlen OMKod esetén elutasítjuk a további feldolgozást
+ $DATA = array('alert'=>'page:wrong_data:OMKod','OMKod'=>$OMKod,'result'=>'failure');
+ global $RPC;
+ $RPC->setResponse($DATA); $RPC->sendResponse(); die();
+ }
+ } else {
+ /* egyedi intezmeny és telephely lekérdezése a settings-ből */
+ $q = "SELECT intezmeny, telephelyId FROM settings WHERE userAccount='%s' AND policy='%s'";
+ $RESULT = db_query($q, array('fv' => 'naploBeallitasok/settings', 'modul' => 'naplo_base', 'values'=> array(_USERACCOUNT,_POLICY),'result' => 'record'));
+
+ /* ellenőrizzük, hogy érvényes-e */
+ if ($RESULT['intezmeny'] != '') {
+ $q = "SELECT rovidnev FROM intezmeny WHERE rovidnev='%s'";
+ $RESULT['intezmeny'] = db_query($q, array('fv' => 'naploBeallitasok/settings intézmény', 'modul' => 'naplo_base', 'result' => 'value', 'values'=>array($RESULT['intezmeny'])), $lr);
+
+ /* telephely ellenőrzése */
+ if ($RESULT['intezmeny'] != '' && $RESULT['telephelyId'] != '') {
+ $q = "SELECT telephelyId FROM `%s`.`telephely` WHERE `telephelyId`='%s'";
+ $RESULT['telephelyId'] = db_query($q, array(
+ 'fv' => 'naploBeallitasok/settings telephely', 'modul' => 'naplo_base', 'result' => 'value',
+ 'values' => array(intezmenyDbNev($RESULT['intezmeny']), $RESULT['telephelyId'])
+ ), $lr);
+ } else { unset($RESULT['telephelyId']); /* Ha az intézmény hibás, akkor a telephely sem lehet jó... */ }
+ }
+ }
+
+ /* ha nem érvényes vagy nincs elmentve */
+ if ($RESULT['intezmeny']=='') {
+ $q = "SELECT rovidnev FROM intezmeny ORDER BY alapertelmezett DESC LIMIT 1";
+ $RESULT['intezmeny'] = db_query($q, array('fv' => 'naploBeallitasok/default intézmény', 'modul' => 'naplo_base', 'result' => 'value'), $lr);
+ }
+
+ /* Ha a settings-ben nem kapott a telephelyId értéket, akkor lássuk, van-e alapértelmezett! */
+ if ($RESULT['telephelyId'] == '') {
+ // Csak ha van alapértelmezett telephely, akkor kérdezzük le!
+ $q = "SELECT telephelyId FROM `%s`.`telephely` WHERE alapertelmezett=1 LIMIT 1";
+ $RESULT['telephelyId'] = db_query($q, array(
+ 'fv' => 'naploBeallitasok/default telephely', 'modul' => 'naplo_base', 'result' => 'value',
+ 'values' => array(intezmenyDbNev($RESULT['intezmeny']))
+ ), $lr);
+ }
+
+ /* */
+
+ if ($RESULT['intezmeny']) initIntezmeny($RESULT);
+ }
+
+ if (defined('__INTEZMENY') && !defined('__TANEV')) {
+
+ $lr2 = db_connect('naplo_intezmeny', array('fv' => 'naploBeallitasok'));
+ if ($lr2 === false) return false;
+
+ if (_RPC) {
+ // Ha az RPC hívás tartalmazza a tanévet
+ $tanev = readVariable($_RPC['request']['tanev'], 'numeric unsigned');
+ // ellenőrzés
+ $q = "SELECT tanev FROM szemeszter WHERE tanev=%u ORDER BY szemeszter LIMIT 1";
+ $v = array($tanev);
+ $ret = db_query($q, array('fv' => 'naploBeallitasok/default tanév', 'modul' => 'naplo_intezmeny', 'result' => 'record','values'=>$v));
+ }
+ if (!is_array($ret) || count($ret) == 0) {
+ // A mai dátumhoz leközelebb eső kezdesDt, vagy zarasDt határozza meg, hogy melyik az aktív szemeszter
+ $q = "SELECT tanev, szemeszter,
+ IF(ABS(DATEDIFF(zarasDt,CURDATE()))<ABS(DATEDIFF(kezdesDt,CURDATE())),
+ ABS(DATEDIFF(zarasDt,CURDATE())),
+ ABS(DATEDIFF(kezdesDt,CURDATE()))) AS sub
+ FROM szemeszter WHERE statusz IN ('aktív','lezárt') ORDER BY statusz,sub LIMIT 1";
+ $ret = db_query($q, array('fv' => 'naploBeallitasok/default tanév', 'modul' => 'naplo_intezmeny', 'result' => 'record'));
+ }
+ if (is_array($ret) && count($ret) > 0) {
+ $RESULT['tanev'] = $ret['tanev']; $RESULT['szemeszter'] = $ret['szemeszter'];
+ initTanev(__INTEZMENY, $RESULT['tanev']);
+ }
+
+ }
+
+ // session létrehozása - ha kell
+ $intezmeny = ''; $tanev = $telephelyId = 'NULL';
+ if (defined('__INTEZMENY')) {
+ $intezmeny = __INTEZMENY;
+ if (defined('__TELEPHELYID')) $telephelyId = __TELEPHELYID;
+ if (!defined('__TANEV')) $_SESSION['alert'][] = 'message:nincs_tanev';
+ } else {
+ $_SESSION['alert'][] = 'message:nincs_intezmeny';
+ }
+ if (defined('__TANEV') && __TANEV!='') $tanev = __TANEV;
+
+ if (defined('_SESSIONID') && _SESSIONID!='' && !$vanSession) {
+ $q = "REPLACE INTO session (sessionID, policy, intezmeny, telephelyId, tanev) VALUES
+ ('"._SESSIONID."','"._POLICY."' , '".$intezmeny."',".$telephelyId.", ".$tanev.")";
+ db_query($q, array('fv' => 'naploBeallitasok/session', 'modul' => 'naplo_base'), $lr);
+ }
+
+ db_close($lr);
+ return defined('__TANEV') && defined('__INTEZMENY');
+
+ } // function
+
+ function nagykoruE($diakId) {
+ if (is_numeric($diakId)) {
+ $q = "select IF(diak.szuletesiIdo + interval 18 year < CURDATE(),1,0) FROM `diak` WHERE diakId=%u";
+ return db_query($q, array('fv' => 'nagykoruE', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($diakId)));
+ } else {
+ return false;
+ }
+ }
+
+
+
+/* ====================================================================================================================================== */
+
+
+
+// Kategóriák
+ if (_POLICY=='private' && memberOf(_USERACCOUNT, 'naploadmin') || _RUNLEVEL==='cron') {
+ $AUTH['my']['categories'][] = 'naploadmin';
+ define('__NAPLOADMIN',true);
+ } else {
+ define('__NAPLOADMIN',false);
+ }
+ if (_POLICY=='private' && memberOf(_USERACCOUNT, 'vezetoseg')) {
+ $AUTH['my']['categories'][] = 'vezetoseg';
+ define('__VEZETOSEG',true);
+ } else {
+ define('__VEZETOSEG',false);
+ }
+
+ if (_POLICY=='parent')
+ define('__DIAK',true);
+ else
+ define('__DIAK',in_array('diák',$AUTH['my']['categories']));
+
+ define('__TITKARSAG',in_array('titkárság',$AUTH['my']['categories']));
+
+ // a TANAR tagság lejjebb dől el!!!
+ $TANARE = in_array('tanár',$AUTH['my']['categories']);
+
+
+
+if (__NAPLO_INSTALLED === true) {
+
+ if (__UZENO_INSTALLED === true && _POLICY=='private') {
+ if (memberOf(_USERACCOUNT,'uzenoadmin')===true) define('__UZENOADMIN',true);
+ else define('__UZENOADMIN',false);
+ } else define('__UZENOADMIN',false);
+
+ if (!naploBeallitasok()) { // Ha nincs intézmény, vagy tanév
+ if (__NAPLOADMIN === true) {
+ // naploadmin vegyen fel intézményt, tanévet
+ if (!defined('__INTEZMENY') and "$page:$sub:$f" != 'naplo:admin:intezmenyek') {
+ $href = 'index.php?page=naplo&sub=admin&f=intezmenyek';
+ header('Location: '.location($href));
+ } elseif (
+ defined('__INTEZMENY') and !defined('__TANEV')
+ and "$page:$sub" != 'naplo:admin'
+ and "$page:$sub" != 'naplo:intezmeny'
+ ) {
+ $href = 'index.php?page=naplo&sub=admin&f=tanevek';
+ header('Location: '.location($href));
+ }
+ } elseif (!defined('__INTEZMENY') or (!defined('__TANEV') and "$page:$sub" != 'naplo:intezmeny')) {
+ // ures oldal, ez túl szigorú!
+ //$sub = '';
+ //$f = 'error';
+ }
+ }
+
+ if (defined('__INTEZMENY')) {
+ if (__DIAK) {
+ if (_POLICY=='private') {
+ define('__USERDIAKID',getIdByOid(_STUDYID,'diak'));
+ } elseif (defined('__PARENTDIAKID')) {
+ define('__USERDIAKID',__PARENTDIAKID);
+ define('__USERSZULOID', getSzuloIdByUserAccount(("$page/$sub/$f" != 'naplo//diakValaszto')));
+ } elseif ("$page/$sub/$f" != 'naplo//diakValaszto') {
+ header('Location: '.location('index.php?page=naplo&f=diakValaszto'));
+ } else {
+ define('__USERDIAKID',false);
+ }
+ }
+ // A diák milyen jogokkal és kötelezettségekkel rendelkezik
+ define('__NAGYKORU',(__DIAK===true && nagykoruE(__USERDIAKID)));
+ if ($TANARE && ($TANARE=isTanar(getIdByOid(_STUDYID,'tanar')))) { // itt már ellenőrizhetjük, hogy a keretrendszer szerint tanár, a napló szerint is tanár-e még a megfelelő intézmény időszakában
+ define('__USERTANARID',getIdByOid(_STUDYID,'tanar'));
+ if (__USERTANARID !== false) {
+ $_OSZTALYA = getOsztalyIdsByTanarId(__USERTANARID, array('tanev'=>__TANEV,'csakId'=>true));
+ define('__OSZTALYFONOK',(is_array($_OSZTALYA) && count($_OSZTALYA) > 0));
+ }
+ }
+ }
+
+} elseif (__NAPLOADMIN===true || memberOf(_USERACCOUNT,'useradmin')===true) {
+ $sub = 'admin';
+ $f = 'install';
+} elseif ($page == 'naplo') {
+ global $sub,$f;
+ $sub = '';
+ $f = 'error';
+ $_SESSION['alert'][] = 'page:page_missing';
+} else {
+ // másik modult nézünk, csak becsatoljuk a base alatt lévő dolgokat.....
+ // jó ez vajon??? dump($page,$sub,$f);
+}
+
+ define('__TANAR',$TANARE);
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/base/tool.php b/mayor-orig/www/include/modules/naplo/base/tool.php
new file mode 100644
index 00000000..39923b9f
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/base/tool.php
@@ -0,0 +1,589 @@
+<?php
+
+if ( !isset($TOOL) || !is_array($TOOL))
+$TOOL = array();
+
+function getToolParameters() {
+
+ global $TOOL;
+
+ $TOOLVARS = array(
+ 'diakId'=> array('type'=>'id'),
+ 'tanarId'=> array('type'=>'id'),
+ 'szuloId'=> array('type'=>'id'),
+ 'teremId'=> array('type'=>'id'),
+ 'osztalyId'=> array('type'=>'id'),
+ 'targyId'=> array('type'=>'id'),
+ 'mkId'=> array('type'=>'id'),
+ 'tankorId'=> array('type'=>'id'),
+ 'telephelyId' => array('type'=>'id'),
+
+ 'tolDt' => array('type'=>'datetime'),
+ 'igDt' => array('type'=>'datetime'),
+ 'refDt' => array('type'=>'datetime'),
+ 'dt' => array('type'=>'datetime'),
+
+ 'tanev' => array('type'=>'numeric unsigned'),
+ 'het' => array('type'=>'numeric unsigned'),
+
+ 'fileName' => array('type'=>'strictstring'),
+ 'conv' => array('type'=>'strictstring'),
+ 'sorrendNev' => array('type'=>'enum','allowOnly' => array('napló','anyakönyv','ellenőrző','bizonyítvány','egyedi')),
+ 'targySorrend' => array('type'=>'strictstring'),
+ 'vizsgaTipus' => array('type'=>'enum','allowOnly' => array('osztályozó vizsga','javítóvizsga','különbözetivizsga','beszámoltatóvizsga')),
+
+
+ // ellenőrizendő még:
+ 'ho' => array('type'=>'strictstring'),
+ 'ora' => array('type'=>'strictstring'),
+ 'tipus' => array('type'=>'strictstring'),
+// 'telephely' => array('type'=>'strictstring'),
+ // ...
+ );
+
+
+ foreach ( $TOOL as $tool => $params ) if (is_array($params)) {
+
+ for ($i = 0; $i < count($params['post']); $i++) {
+ $_var = $params['post'][$i];
+ //if ($TOOLVARS[$_var]=='') $_SESSION['alert'][] = '::toolvars:'.$_var; // nem üzenünk hibát
+ if ( $_POST[$_var]!='' && ($TOOLVARS[$_var]['type']!='') ) { // ellenőrizzük a fenti tömb szerinti változókat.
+ // itt típuskonverzió is történik
+ $_POST[$_var] = readVariable($_POST[$_var],$TOOLVARS[$_var]['type'],null,$TOOLVARS[$_var]['allowOnly']);
+ }
+ }
+
+ if ( function_exists( $func = "get$tool" ) ) {
+ $func();
+ }
+
+ }
+
+}
+
+
+/* AUDIT */
+
+/*
+getAuditInfo();
+function getAuditInfo() {
+
+global $page,$sub,$f;
+
+$_SESSION['alert'][] = '::'.$page.$sub.$f;
+
+$WORK = $_POST;
+
+for ($i
+reset($WORK);
+ksort($WORK);
+$X = unserialize(serialize($WORK));
+
+var_dump($X);
+
+}
+ */
+
+
+/* ------------------------- */
+
+
+function getSzamSelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['szamSelect']['szamok'])) {
+ $minValue = (isset($TOOL['szamSelect']['minValue']))?$TOOL['szamSelect']['minValue']:1;
+ $maxValue = (isset($TOOL['szamSelect']['maxValue']))?$TOOL['szamSelect']['maxValue']:100;
+ $TOOL['szamSelect']['szamok'] = range($minValue, $maxValue);
+ }
+
+ if ( !isset($TOOL['szamSelect']['paramName']) || $TOOL['szamSelect']['paramName']=='' )
+ $TOOL['szamSelect']['paramName'] = 'szam';
+
+}
+
+function getIntezmenySelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['intezmenySelect']['intezmenyek'])) {
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ $TOOL['intezmenySelect']['intezmenyek'] = getIntezmenyek();
+ }
+ if ( !isset($TOOL['intezmenySelect']['paramName']) || $TOOL['intezmenySelect']['paramName'] == '' )
+ $TOOL['intezmenySelect']['paramName'] = 'intezmeny';
+
+}
+
+function getTelephelySelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['telephelySelect']['telephelyek'])) {
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ $TOOL['telephelySelect']['telephelyek'] = getTelephelyek();
+ }
+ if ( !isset($TOOL['telephelySelect']['paramName']) || $TOOL['telephelySelect']['paramName'] == '' )
+ $TOOL['telephelySelect']['paramName'] = 'telephelyId';
+ if (count($TOOL['telephelySelect']['telephelyek']) < 2) unset($TOOL['telephelySelect']);
+
+}
+
+function getTanevSelect() {
+
+ global $TOOL;
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ if (!is_array($TOOL['tanevSelect']['tanevek'])) $TOOL['tanevSelect']['tanevek'] = getTanevek($TOOL['tanevSelect']['tervezett']);
+
+ if ( !isset($TOOL['tanevSelect']['paramName']) || $TOOL['tanevSelect']['paramName']=='' )
+ $TOOL['tanevSelect']['paramName'] = 'tanev';
+
+}
+
+function getSzemeszterSelect() {
+
+ global $TOOL;
+
+ require_once('include/modules/naplo/share/szemeszter.php');
+ $TOOL['szemeszterSelect']['szemeszterek'] = getSzemeszterek($TOOL['szemeszterSelect']);
+
+ if ( !isset($TOOL['szemeszterSelect']['paramName']) || $TOOL['szemeszterSelect']['paramName'] == '' )
+ $TOOL['szemeszterSelect']['paramName'] = 'szemeszterId';
+
+}
+
+function getTargySorrendSelect() {
+
+ global $TOOL;
+
+ require_once('include/modules/naplo/share/targy.php');
+ if (!isset($TOOL['targySorrendSelect']['tanev'])) $TOOL['targySorrendSelect']['tanev'] = __TANEV;
+ $TOOL['targySorrendSelect']['sorrendNevek'] = getTargySorrendNevek($TOOL['targySorrendSelect']['tanev']);
+
+ if ( !isset($TOOL['targySorrendSelect']['paramName']) || $TOOL['targySorrendSelect']['paramName'] == '' )
+ $TOOL['targySorrendSelect']['paramName'] = 'sorrendNev';
+
+}
+
+function getMunkakozossegSelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['munkakozossegSelect']['munkakozossegek']))
+ $TOOL['munkakozossegSelect']['munkakozossegek'] = getMunkakozossegek();
+ if ( !isset($TOOL['munkakozossegSelect']['paramName']) || $TOOL['munkakozossegSelect']['paramName']=='' )
+ $TOOL['munkakozossegSelect']['paramName'] = 'mkId';
+
+}
+
+function getTargySelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['targySelect']['targyak']))
+ $TOOL['targySelect']['targyak'] = getTargyak(array('mkId' => $TOOL['targySelect']['mkId']));
+ if ( !isset($TOOL['targySelect']['paramName']) || $TOOL['targySelect']['paramName']=='' )
+ $TOOL['targySelect']['paramName'] = 'targyId';
+
+}
+
+function getMunkatervSelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['munkatervSelect']['munkatervek']))
+ $TOOL['munkatervSelect']['munkatervek'] = getMunkatervek();
+ if ( !isset($TOOL['munkatervSelect']['paramName']) || $TOOL['munkatervSelect']['paramName']=='' )
+ $TOOL['munkatervSelect']['paramName'] = 'munkatervId';
+
+}
+
+function getTanarSelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['tanarSelect']['tanarok'])) {
+ if (!isset($TOOL['tanarSelect']['tanev']) && defined('__TANEV')) $TOOL['tanarSelect']['tanev'] = __TANEV;
+ if (is_array($TOOL['tanarSelect']['Param'])) $Param = $TOOL['tanarSelect']['Param'];
+ else $Param = array(
+ 'mkId' => $TOOL['tanarSelect']['mkId'],
+ 'tanev' => $TOOL['tanarSelect']['tanev'],
+ 'beDt' => $TOOL['tanarSelect']['beDt'],
+ 'kiDt' => $TOOL['tanarSelect']['kiDt'],
+ 'összes' => $TOOL['tanarSelect']['összes'],
+ 'override' => $TOOL['tanarSelect']['override'],
+ );
+ $TOOL['tanarSelect']['tanarok'] = getTanarok($Param);
+ }
+ if (!isset($TOOL['tanarSelect']['paramName']) || $TOOL['tanarSelect']['paramName']=='' )
+ $TOOL['tanarSelect']['paramName'] = 'tanarId';
+
+}
+
+function getDiakSelect() {
+
+ global $TOOL, $osztalyId;
+
+ if (!isset($TOOL['diakSelect']['osztalyId']) && isset($osztalyId))
+ $TOOL['diakSelect']['osztalyId'] = $osztalyId;
+ if (!is_array($TOOL['diakSelect']['diakok']))
+ $TOOL['diakSelect']['diakok'] = getDiakok(array(
+ 'osztalyId' => $TOOL['diakSelect']['osztalyId'],
+ 'tanev' => $TOOL['diakSelect']['tanev'],
+ 'statusz' => $TOOL['diakSelect']['statusz'],
+ 'tolDt' => $TOOL['diakSelect']['tolDt'],
+ 'igDt' => $TOOL['diakSelect']['igDt'],
+ ));
+ if (!is_array($TOOL['diakSelect']['statusz']))
+ $TOOL['diakSelect']['statusz'] = array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva','felvételt nyert');
+ if ( !isset($TOOL['diakSelect']['paramName']) || $TOOL['diakSelect']['paramName']=='' )
+ $TOOL['diakSelect']['paramName'] = 'diakId';
+}
+
+function getDiakLapozo() {
+
+ global $TOOL, $osztalyId;
+
+ if (!isset($TOOL['diakLapozo']['osztalyId']) && isset($osztalyId))
+ $TOOL['diakLapozo']['osztalyId'] = $osztalyId;
+ if (!is_array($TOOL['diakLapozo']['diakok']))
+ $TOOL['diakLapozo']['diakok'] = getDiakok(array(
+ 'osztalyId' => $TOOL['diakLapozo']['osztalyId'],
+ 'tanev' => $TOOL['diakLapozo']['tanev'],
+ 'statusz' => $TOOL['diakLapozo']['statusz'],
+ 'tolDt' => $TOOL['diakLapozo']['tolDt'],
+ 'igDt' => $TOOL['diakLapozo']['igDt'],
+ ));
+ if (!is_array($TOOL['diakLapozo']['statusz']))
+ $TOOL['diakLapozo']['statusz'] = array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva','felvételt nyert');
+ if ( !isset($TOOL['diakLapozo']['paramName']) || $TOOL['diakLapozo']['paramName']=='' )
+ $TOOL['diakLapozo']['paramName'] = 'diakId';
+
+}
+
+
+function getTableSelect () {
+
+ global $TOOL;
+
+ $TOOL['tableSelect']['naplo'] =$TOOL['tableSelect']['naplo_intezmeny'] = array();
+ if (defined('__INTEZMENY')) {
+ $TOOL['tableSelect']['naplo_intezmeny'] = db_query('SHOW TABLES', array('fv' => 'getTableSelect', 'modul' => 'naplo_intezmeny', 'result' => 'idonly'));
+ }
+ if (defined('__TANEV')) {
+ $TOOL['tableSelect']['naplo'] =
+ db_query('SHOW TABLES', array('fv' => 'getTableSelect', 'modul' => 'naplo', 'result' => 'idonly'));
+ }
+ if ( !isset($TOOL['tableSelect']['paramName']) || $TOOL['tableSelect']['paramName']=='' )
+ $TOOL['tableSelect']['paramName'] = 'dbtable';
+
+}
+
+function getOsztalySelect() {
+
+ global $TOOL, $tanev;
+
+ if (!isset($TOOL['osztalySelect']['tanev'])) {
+ if (isset($tanev)) $TOOL['osztalySelect']['tanev'] = $tanev;
+ elseif (defined('__TANEV')) $TOOL['osztalySelect']['tanev'] = __TANEV;
+ }
+ global $telephelyId;
+ if (!isset($TOOL['osztalySelect']['osztalyok']))
+ if (isset($TOOL['osztalySelect']['tanev']))
+ $TOOL['osztalySelect']['osztalyok'] = getOsztalyok($TOOL['osztalySelect']['tanev'],array('mindenOsztalyfonok'=>true, 'result'=>'indexed','telephelyId' => $telephelyId));
+ else
+ $TOOL['osztalySelect']['osztalyok'] = array();
+
+ if ( !isset($TOOL['osztalySelect']['paramName']) || $TOOL['osztalySelect']['paramName']=='' )
+ $TOOL['osztalySelect']['paramName'] = 'osztalyId';
+
+}
+
+function getTanmenetSelect() {
+
+ global $TOOL, $tanev, $tanarId, $targyId;
+
+ if (!isset($TOOL['tanmenetSelect']['tanev'])) {
+ if (isset($tanev)) $TOOL['tanmenetSelect']['tanev'] = $tanev;
+ elseif (defined('__TANEV')) $TOOL['tanmenetSelect']['tanev'] = __TANEV;
+ }
+
+ if (!isset($TOOL['tanmenetSelect']['tanmenetek']))
+ if (isset($TOOL['tanmenetSelect']['tanev'])) {
+ if (isset($tanarId)) $TOOL['tanmenetSelect']['tanmenetek'] = getTanmenetByTanarId($tanarId, array('tanev' => $TOOL['tanmenetSelect']['tanev']));
+ elseif (isset($targyId)) $TOOL['tanmenetSelect']['tanmenetek'] = getTanmenetByTargyId($targyId, array('tanev' => $TOOL['tanmenetSelect']['tanev']));
+// } else {
+// $TOOL['tanmenetSelect']['tanmenetek'] = array();
+ }
+
+ if ( !isset($TOOL['tanmenetSelect']['paramName']) || $TOOL['tanmenetSelect']['paramName']=='' )
+ $TOOL['tanmenetSelect']['paramName'] = 'tanmenetId';
+
+}
+
+function getTankorSelect() {
+
+ global $TOOL, $tanev, $mkId, $targyId, $osztalyId, $tanarId, $diakId;
+
+ // Tanév beállítás: paraméter, globális változó, konstans
+ if (!isset($TOOL['tankorSelect']['tanev'])) {
+ if (isset($tanev)) $TOOL['tankorSelect']['tanev'] = $tanev;
+ elseif (defined('__TANEV')) $TOOL['tankorSelect']['tanev'] = __TANEV;
+ }
+ $tolDt=$TOOL['tankorSelect']['tolDt'];
+ $igDt=$TOOL['tankorSelect']['igDt'];
+
+ // Paraméter neve
+ if ( !isset($TOOL['tankorSelect']['paramName']) || $TOOL['tankorSelect']['paramName']=='' )
+ $TOOL['tankorSelect']['paramName'] = 'tankorId';
+
+ // tankörök lekérdezése - ha még nem történt meg
+ if (!is_array($TOOL['tankorSelect']['tankorok'])) {
+ if (isset($diakId) && $diakId!='') { // diák tankörei
+ $TOOL['tankorSelect']['tankorok'] = getTankorByDiakId($diakId, $TOOL['tankorSelect']['tanev'], array('tolDt'=>$tolDt, 'igDt'=>$igDt));
+ } elseif (isset($osztalyId) && $osztalyId!='') { // osztály tankörei
+ $TOOL['tankorSelect']['tankorok'] = getTankorByOsztalyId($osztalyId, $TOOL['tankorSelect']['tanev'], array('tolDt'=>$tolDt, 'igDt'=>$igDt));
+ } elseif (isset($tanarId) && $tanarId!='') { // tanár tankörei
+ $TOOL['tankorSelect']['tankorok'] = getTankorByTanarId($tanarId, $TOOL['tankorSelect']['tanev'], array('tolDt'=>$tolDt, 'igDt'=>$igDt));
+ } else { // általános tankörlekérdző
+ $WHERE = array();
+ if (isset($targyId) && $targyId != '') { // leszűkítés adott tárgyra
+ $WHERE[] = 'targyId='.$targyId;
+ } elseif (isset($mkId) && $mkId != '') { // leszűkítés adott munkaközösségre
+ $TARGYAK = getTargyakByMkId($mkId);
+ for ($i = 0; $i < count($TARGYAK); $i++) $T[] = $TARGYAK[$i]['targyId'];
+ if (count($T) > 0) $WHERE[] = 'targyId IN ('.implode(',', $T).')';
+ }
+
+ if (isset($TOOL['tankorSelect']['tanev'])) // szűkítés adott tanévre
+ $WHERE[] = 'tankorSzemeszter.tanev='.$TOOL['tankorSelect']['tanev'];
+
+ $TOOL['tankorSelect']['tankorok'] = getTankorok($WHERE);
+ }
+ } else {
+ // A megadott tankörök csoportosításához
+ if (!is_array($TOOL['tankorSelect']['tankorIds'])) {
+ if (isset($diakId) && $diakId != '') { // diák tankörei
+ $TOOL['tankorSelect']['tankorIds'] = getTankorByDiakId($diakId, $TOOL['tankorSelect']['tanev'],array('csakId' => true, 'tolDt'=>$tolDt, 'igDt'=>$igDt ));
+ } elseif (isset($osztalyId) && $osztalyId != '') { // osztály tankörei
+ $TOOL['tankorSelect']['tankorIds'] = getTankorByOsztalyId($osztalyId, $TOOL['tankorSelect']['tanev'], array('csakId' => true, 'tolDt'=>$tolDt, 'igDt'=>$igDt));
+ } elseif (isset($tanarId) && $tanarId != '') { // tanár tankörei
+ $TOOL['tankorSelect']['tankorIds'] = getTankorByTanarId($tanarId, $TOOL['tankorSelect']['tanev'], array('csakId' => true,'tolDt'=>$tolDt, 'igDt'=>$igDt));
+ }
+ }
+ }
+ if ($tolDt!='' || $igDt!='')
+ $TOOL['tankorSelect']['tankorIdsDt'] = $tolDt.'-'.$igDt;
+
+}
+
+function getDatumSelect() {
+
+ global $TOOL, $tanev;
+
+ if (isset($tanev)) $TOOL['datumSelect']['tanev'] = $tanev;
+ elseif (defined('__TANEV')) $TOOL['datumSelect']['tanev'] = __TANEV;
+
+ if (
+ (is_array($TOOL['datumSelect']['napTipusok']) || isset($TOOL['datumSelect']['napokSzama']))
+ && !is_array($TOOL['datumSelect']['napok'])
+ ) {
+ $TOOL['datumSelect']['napok'] = getNapok(
+ array(
+ 'tanev' => $TOOL['datumSelect']['tanev'],
+ 'tolDt' => $TOOL['datumSelect']['tolDt'],
+ 'igDt' => $TOOL['datumSelect']['igDt'],
+ 'tipus' => $TOOL['datumSelect']['napTipusok'],
+ 'napokSzama' => $TOOL['datumSelect']['napokSzama'],
+ )
+ );
+ } else {
+
+ $tolDt = $TOOL['datumSelect']['tolDt']; $igDt = $TOOL['datumSelect']['igDt'];
+ initTolIgDt($TOOL['datumSelect']['tanev'], $tolDt, $igDt, $TOOL['datumSelect']['override']);
+ $TOOL['datumSelect']['tolDt'] = $tolDt; $TOOL['datumSelect']['igDt'] = $igDt;
+
+ if (!isset($TOOL['datumSelect']['hanyNaponta']) || $TOOL['datumSelect']['hanyNaponta']=='' )
+ $TOOL['datumSelect']['hanyNaponta'] = 1;
+
+ };
+
+ if (!isset($TOOL['datumSelect']['paramName']) || $TOOL['datumSelect']['paramName']=='' )
+ $TOOL['datumSelect']['paramName'] = 'dt';
+}
+
+function getDatumTolIgSelect() {
+
+ global $TOOL, $tanev;
+
+ if (isset($tanev)) $TOOL['datumTolIgSelect']['tanev'] = $tanev;
+ elseif (defined('__TANEV')) $TOOL['datumTolIgSelect']['tanev'] = __TANEV;
+
+ if (
+ (is_array($TOOL['datumTolIgSelect']['napTipusok']) || isset($TOOL['datumTolIgSelect']['napokSzama']))
+ && !is_array($TOOL['datumTolIgSelect']['napok'])
+ ) {
+ $TOOL['datumTolIgSelect']['napok'] = getNapok(
+ array(
+ 'tanev' => $TOOL['datumTolIgSelect']['tanev'],
+ 'tolDt' => $TOOL['datumTolIgSelect']['tolDt'],
+ 'igDt' => $TOOL['datumTolIgSelect']['igDt'],
+ 'tipus' => $TOOL['datumTolIgSelect']['napTipusok'],
+ 'napokSzama' => $TOOL['datumTolIgSelect']['napokSzama'],
+ )
+ );
+ } else {
+ $tolDt = $TOOL['datumTolIgSelect']['tolDt']; $igDt = $TOOL['datumTolIgSelect']['igDt'];
+ initTolIgDt($TOOL['datumTolIgSelect']['tanev'], $tolDt, $igDt, $TOOL['datumTolIgSelect']['override']);
+ $TOOL['datumTolIgSelect']['tolDt'] = $tolDt; $TOOL['datumTolIgSelect']['igDt'] = $igDt;
+
+ if (!isset($TOOL['datumTolIgSelect']['hanyNaponta']) || $TOOL['datumTolIgSelect']['hanyNaponta']=='' )
+ $TOOL['datumTolIgSelect']['hanyNaponta'] = 1;
+
+ };
+
+ if (!isset($TOOL['datumTolIgSelect']['tolParamName']) || $TOOL['datumTolIgSelect']['tolParamName']=='' )
+ $TOOL['datumTolIgSelect']['tolParamName'] = 'tolDt';
+ if (!isset($TOOL['datumTolIgSelect']['igParamName']) || $TOOL['datumTolIgSelect']['igParamName']=='' )
+ $TOOL['datumTolIgSelect']['igParamName'] = 'igDt';
+
+}
+
+function getOraSelect() {
+
+ global $TOOL, $tanev;
+
+ if (!isset($TOOL['oraSelect']['tol']) || $TOOL['oraSelect']['tol'] == '' )
+ $TOOL['oraSelect']['tol'] = getMinOra();
+ if (!isset($TOOL['oraSelect']['ig']) || $TOOL['oraSelect']['ig'] == '' )
+ $TOOL['oraSelect']['ig'] = getMaxOra();
+
+ if (!isset($TOOL['oraSelect']['paramName']) || $TOOL['oraSelect']['paramName']=='' )
+ $TOOL['oraSelect']['paramName'] = 'ora';
+
+}
+
+function getTeremSelect() {
+
+ global $TOOL;
+
+ $telephelyId = $TOOL['teremSelect']['telephelyId'];
+ if (!is_array($TOOL['teremSelect']['termek'])) $TOOL['teremSelect']['termek'] = getTermek(array('telephelyId' => $telephelyId));
+ if (!isset($TOOL['teremSelect']['paramName']) || $TOOL['teremSelect']['paramName']=='' )
+ $TOOL['teremSelect']['paramName'] = 'teremId';
+
+}
+
+function getKepzesSelect() {
+
+ global $TOOL;
+
+ $TOOL['kepzesSelect']['kepzes'] = getKepzesek();
+ if (!is_array($TOOL['kepzesSelect']['kepzes']) || count($TOOL['kepzesSelect']['kepzes']) == 0) {
+ unset($TOOL['kepzesSelect']);
+ } else {
+ if ( !isset($TOOL['kepzesSelect']['paramName']) || $TOOL['kepzesSelect']['paramName'] == '' )
+ $TOOL['kepzesSelect']['paramName'] = 'kepzesId';
+ }
+}
+
+function getKerdoivSelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['kerdoivSelect']['kerdoiv'])) $TOOL['kerdoivSelect']['kerdoiv'] = getKerdoiv();
+ if ( !isset($TOOL['kerdoivSelect']['paramName']) || $TOOL['kerdoivSelect']['paramName'] == '' )
+ $TOOL['kerdoivSelect']['paramName'] = 'kerdoivId';
+
+}
+
+function getSzuloSelect() {
+
+ global $TOOL;
+
+ $TOOL['szuloSelect']['szulo'] = getSzulok(array('result' => 'indexed'));
+ if (!is_array($TOOL['szuloSelect']['szulo']) || count($TOOL['szuloSelect']['szulo']) == 0) {
+ unset($TOOL['szuloSelect']);
+ } else {
+ if ( !isset($TOOL['szuloSelect']['paramName']) || $TOOL['szuloSelect']['paramName'] == '' )
+ $TOOL['szuloSelect']['paramName'] = 'szuloId';
+ }
+}
+
+
+/* TANEV FÜGGŐK */
+
+function getOrarendiHetSelect() {
+
+ global $TOOL;
+ $TOOL['orarendiHetSelect']['hetek'] = getOrarendiHetek($TOOL['orarendiHetSelect']); // tolDt, igDt, tanev
+ if ( !isset($TOOL['orarendiHetSelect']['paramName']) || $TOOL['orarendiHetSelect']['paramName']=='' )
+ $TOOL['orarendiHetSelect']['paramName'] = 'het';
+
+}
+
+function getTanarOraLapozo() {
+
+ global $TOOL;
+ global $tanarId,$tolDt,$igDt,$oraId;
+ $_X = $TOOL['tanarOraLapozo']['orak'] = getTanarOrak(
+ $tanarId,array('tolDt' => $tolDt, 'igDt' => $igDt, 'tipus' => array('normál','normál máskor','helyettesítés','felügyelet','összevonás'))
+ );
+ for ($i = 0; $i < count($_X); $i++) {
+ if ($_X[$i]['oraId'] == $oraId) {
+ $TOOL['tanarOraLapozo']['oraAdat'] = $_X[$i];
+ if (is_array($_X[($i-1)])) $TOOL['tanarOraLapozo']['elozo'] = $_X[$i-1];
+ if (is_array($_X[($i+1)])) $TOOL['tanarOraLapozo']['kovetkezo'] = $_X[$i+1];
+ break;
+ }
+ }
+ if ( !isset($TOOL['tanarOraLapozo']['paramName']) || $TOOL['tanarOraLapozo']['paramName']=='' )
+ $TOOL['tanarOraLapozo']['paramName'] = 'oraId';
+
+}
+
+function getIgazolasOsszegzo() {
+
+ global $TOOL;
+ global $diakId;
+ global $_TANEV;
+ if ($diakId!='') {
+ $TOOL['igazolasOsszegzo']['igazolasok'] = getIgazolasSzam($diakId);
+ $_T = getDiakHianyzasOsszesites(array($diakId),$_TANEV);
+ $TOOL['igazolasOsszegzo']['hianyzasok'] = $_T[$diakId];
+ }
+
+}
+
+function getZaradekSelect() {
+
+ global $TOOL;
+
+ if (!is_array($TOOL['zaradekSelect']['zaradekok'])) $TOOL['zaradekSelect']['zaradekok'] = getZaradekok();
+
+ if (!isset($TOOL['zaradekSelect']['paramName']) || $TOOL['zaradekSelect']['paramName']=='' )
+ $TOOL['zaradekSelect']['paramName'] = 'zaradekIndex';
+
+}
+
+function getKerelemStat() {
+ global $TOOL;
+ //$TOOL['kerelemStat']['stat'] = getKerelemOsszesito();
+}
+
+//function getTelephelySelect() {
+// global $TOOL;
+// if (!is_array($TOOL['telephelySelect']['telephelyek'])) {
+// $TOOL['telephelySelect']['telephelyek'] = getTelephely();
+// }
+//
+//}
+
+function getVissza() {
+ global $TOOL;
+ if ($TOOL['vissza']['icon']=='') { $TOOL['vissza']['icon'] = 'arrow-left'; } // default, egyelőre csak a 'vissza' típusnál használjuk
+}
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/base/update.php b/mayor-orig/www/include/modules/naplo/base/update.php
new file mode 100644
index 00000000..02bcf0e8
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/base/update.php
@@ -0,0 +1,86 @@
+<?php
+
+/*
+ function update002483() {
+
+
+ // A bejegyzések kezelését konfigurciós állományból áttettük adatbázisba.
+ // Ennek a konverziónak a végső lépését PHP-ből célszerű elvégezni - ezt csinálja ez a script
+
+ global $FEGYELMI_FOKOZATOK, $DICSERET_FOKOZATOK, $HIANYZASI_FOKOZATOK;
+
+ // Hogy ne fusson le feleslegesen minden oldalbetöltésekor egy lock file-t készítünk a sikeres lefutás után...
+ // Idővel aztán kikommentezzük a függvényhívást, még később akár töröljük is a függvényt...
+ $dir = file_exists(_CACHEDIR)?_CACHEDIR:_DOWNLOADDIR;
+ $lock = $dir.'/002483.lock';
+ if (!file_exists($lock)) {
+ require_once('include/modules/naplo/share/ertekeles.php');
+
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ // A fegyelmi fokozatok neveinek beállítása
+ foreach ($FEGYELMI_FOKOZATOK as $fokozat => $bejegyzesTipusNev) {
+ if ($fokozat > 0) {
+ // Ki jogosult beírni
+ $jogosult = array('admin');
+ if (in_array(mb_substr($bejegyzesTipusNev, 0, 9, 'UTF-8'), array('igazgatói', 'nevelőtes'))) $jogosult[] = 'vezetőség';
+ if (mb_substr($bejegyzesTipusNev, 0, 13, 'UTF-8') == 'osztályfőnöki') $jogosult[] = 'osztályfőnök';
+ if (mb_substr($bejegyzesTipusNev, 0, 10, 'UTF-8') == 'szaktanári') $jogosult[] = 'szaktanár';
+ // frissítés
+ $q = "UPDATE `bejegyzesTipus` SET `bejegyzesTipusNev`='%s', `jogosult`='".implode(',', $jogosult)."' WHERE `tipus`='fegyelmi' AND `fokozat`='%s'";
+ $v = array($bejegyzesTipusNev, $fokozat);
+ $r = db_query($q, array('fv' => 'update002483/fegyelmi','modul' => 'naplo_intezmeny','values' => $v, 'rollback' => true), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+ }
+ }
+ // A dicséret fokozatok neveinek beállítása
+ foreach ($DICSERET_FOKOZATOK as $fokozat => $bejegyzesTipusNev) {
+ if ($fokozat > 0) {
+ // Ki jogosult beírni
+ $jogosult = array('admin');
+ if (in_array(mb_substr($bejegyzesTipusNev, 0, 9, 'UTF-8'), array('igazgatói', 'nevelőtes'))) $jogosult[] = 'vezetőség';
+ if (mb_substr($bejegyzesTipusNev, 0, 13, 'UTF-8') == 'osztályfőnöki') $jogosult[] = 'osztályfőnök';
+ if (mb_substr($bejegyzesTipusNev, 0, 10, 'UTF-8') == 'szaktanári') $jogosult[] = 'szaktanár';
+ // frissítés
+ $q = "UPDATE `bejegyzesTipus` SET `bejegyzesTipusNev`='%s', `jogosult`='".implode(',', $jogosult)."' WHERE `tipus`='dicseret' AND `fokozat`='%s'";
+ $v = array($bejegyzesTipusNev, $fokozat);
+ $r = db_query($q, array('fv' => 'update002483/dicseret','modul' => 'naplo_intezmeny','values' => $v, 'rollback' => true), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+ }
+ }
+ // Az adott számú igazolatlan hiűnyzáshoz rendelt fegyelmi fokozatok eltárolása
+ foreach ($HIANYZASI_FOKOZATOK as $hianyzasDb => $fokozat) {
+ if ($fokozat > 0) {
+ $q = "UPDATE `bejegyzesTipus` SET `hianyzasDb`=%u WHERE `tipus`='fegyelmi' AND `fokozat`='%s'";
+ $v = array($hianyzasDb, $fokozat);
+ $r = db_query($q, array('fv' => 'update002483/hianyzas','modul' => 'naplo_intezmeny','values' => $v, 'rollback' => true), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+ }
+ }
+ // A felesleges fegyelmi és dicséret fokozatok törlése (20-20 fokozat volt felvéve)
+ $q = "DELETE FROM `bejegyzesTipus` WHERE `bejegyzesTipusNev` IS NULL";
+ $r = db_query($q, array('fv' => 'update002483/delete','modul' => 'naplo_intezmeny', 'rollback' => true), $lr);
+
+ if ($r) db_commit($lr);
+ db_close($lr);
+
+ $fp = fopen($lock,'w');
+ fwrite($fp, 'PHP update 002483 done.');
+ fclose($fp);
+ }
+ }
+*/
+
+
+// update002483();
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/base/zcheck.php b/mayor-orig/www/include/modules/naplo/base/zcheck.php
new file mode 100644
index 00000000..38c03a11
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/base/zcheck.php
@@ -0,0 +1,100 @@
+<?php
+
+ function checkConstants() {
+
+
+ $_check = array(
+ '__OSZTALYFONOKI_IGAZOLAS_EVRE',
+// '__TANITASI_HETEK_SZAMA',
+// '__VEGZOS_TANITASI_HETEK_SZAMA',
+ '__SZULOI_IGAZOLAS_FELEVRE',
+ '__SZULOI_IGAZOLAS_EVRE',
+ '__SZULOI_ORA_IGAZOLAS_FELEVRE',
+ '__SZULOI_ORA_IGAZOLAS_EVRE',
+ '__OSZTALYFONOKI_IGAZOLAS_FELEVRE',
+ '__OSZTALYFONOKI_IGAZOLAS_EVRE',
+ '__OSZTALYFONOKI_ORA_IGAZOLAS_FELEVRE',
+ '__OSZTALYFONOKI_ORA_IGAZOLAS_EVRE',
+ '_KESESI_IDOK_OSSZEADODNAK',
+ '_HANY_KESES_IGAZOLATLAN',
+ '_HANY_FSZ_IGAZOLATLAN',
+ '_HIANYZAS_HATARIDO',
+ '_OFO_HIANYZAS_BEIRAS',
+ '_OFO_HIANYZAS_HATARIDO',
+ '_IGAZOLAS_BEIRAS',
+ '_IGAZOLAS_BEIRAS_HATARIDO',
+ '_IGAZOLAS_LEADAS',
+ '_LEGKORABBI_IGAZOLHATO_HIANYZAS',
+ '_VIZITHOSSZ',
+ '__DEFAULT_SULYOZAS',
+
+ );
+
+ for($i=0; $i<count($_check); $i++) {
+ if (!defined($_check[$i])) $_SESSION['alert'][] = 'alert:missing_constant:'.$_check[$i];
+ }
+
+ if (defined('_TANKOR_MODOSITAS_HATARIDO'))
+ $_SESSION['alert'][] = 'alert:obsolete_constant:_TANKOR_MODOSITAS_HATARIDO';
+ }
+
+ global $page,$sub,$f;
+
+ if (__NAPLOADMIN===true && !($page=='naplo' && $sub=='admin' && $f=='tanevek') && defined('__INTEZMENY')) checkConstants();
+
+ if (!defined('__UZENO_DEFAULTLIMIT')) define('__UZENO_DEFAULTLIMIT',20);
+ if (!defined('__UZENO_AJAXLIMIT')) define('__UZENO_AJAXLIMIT',5);
+ if (!defined('__SHOW_FACES')) define('__SHOW_FACES','always');
+
+
+ if ($skin!='vakbarat') { // nem szép megoldás, de nem tudok jobbat, ez a beállítás skin függő
+ if (__SHOW_FACES=='always') {
+ define('__SHOW_FACES_TF',true);
+ } elseif (__SHOW_FACES=='menu-driven') {
+ define('__SHOW_FACES_TF',true);
+ } elseif (__SHOW_FACES=='optional') {
+ define('__SHOW_FACES_TF',true);
+ } else {
+ define('__SHOW_FACES_TF',false);
+ }
+ } else {
+ define('__SHOW_FACES_TF',false);
+ }
+
+ // CHECK ME!
+ if (!defined('__DETAILED')) {
+ if (__NAPLOADMIN===true) {
+ define('__DETAILED',true);
+ } else {
+ define('__DETAILED',false);
+ }
+ }
+
+ if (!defined('__HIANYZASTOROLHETO')) define('__HIANYZASTOROLHETO',false); else define('__HIANYZASTOROLHETO',true);
+
+ if (!defined('__MAXORA_MINIMUMA')) define('__MAXORA_MINIMUMA',8);
+ if (!defined('__HETIMAXNAP_MINIMUMA')) define('__HETIMAXNAP_MINIMUMA',5);
+
+ if (!defined('__HIANYZASBA_NEM_SZAMITO_TIPUSOK')) {
+ define('__HIANYZASBA_NEM_SZAMITO_TIPUSOK','délutáni,egyéni foglalkozás,tanórán kívüli');
+ }
+ if (!defined('__TANITASINAP_HETENTE')) define('__TANITASINAP_HETENTE',5);
+
+ /* üzenő szerepkor beallitasa */
+ if (__UZENOADMIN===true) {
+ $__asWho = readVariable($_POST['asWho'],'strictstring','asIs',array('asAdmin','asIs'));
+ define('__ASWHO',$__asWho);
+ } else {
+ define('__ASWHO','asIs');
+ }
+
+ if (defined('__UZENOADMIN') && __UZENOADMIN===true && defined('__ASWHO') && __ASWHO==='asAdmin') define('__UZENOSZEREP','admin');
+ elseif (__TANAR===true) define('__UZENOSZEREP', 'tanar');
+ elseif (__DIAK===true && defined('__PARENTDIAKID') && intval(__PARENTDIAKID)>0) define('__UZENOSZEREP','szulo');
+ elseif (__DIAK===true && defined('__USERDIAKID') && intval(__USERDIAKID)>0) define('__UZENOSZEREP','diak');
+ elseif (__UZENOADMIN===true) define('__UZENOSZEREP','admin');
+ else define('__UZENOSZEREP','');
+
+ if (count($KERELEM_TAG) ==0) $KERELEM_TAG = array('névsor','jogviszony','órarend, haladási','hiányzás, igazolás','jegy, zárójegy');
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesTipus.php b/mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesTipus.php
new file mode 100644
index 00000000..cf2fd2fd
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesTipus.php
@@ -0,0 +1,87 @@
+<?php
+
+ function getBejegyzesTipusok($dt = null) {
+
+ if (is_null($dt)) $dt = date('Y-m-d');
+
+ $q = "SELECT * FROM bejegyzesTipus WHERE tolDt<='%s' AND (igDt IS NULL OR '%s'<=igDt) ORDER BY tipus, fokozat, bejegyzesTipusNev";
+ $v = array($dt, $dt);
+ return db_query($q, array('fv'=>'getBejegyzesek','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'multiassoc','keyfield'=>'tipus'));
+
+ }
+
+ function jogosultValtoztatas($btId, $jogosult) {
+
+ $q = "UPDATE bejegyzesTipus SET jogosult='%s' WHERE bejegyzesTipusId=%u";
+ $v = array(implode(',',$jogosult), $btId);
+ return db_query($q, array('fv' => 'jogosultValtoztatas', 'modul'=>'naplo_intezmeny', 'values'=>$v));
+
+ }
+
+
+ function bejegyzesTipusModositas($btId, $btAdat, $dt) {
+ $B = getBejegyzesTipusById($btId);
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ if ($B['tolDt'] != $dt) {
+ // A korábbi bejegyzesTipus lemásolása
+ foreach ($btAdat as $key => $value) { $B[$key] = $value; }
+ $q = "INSERT INTO bejegyzesTipus (tipus, fokozat, bejegyzesTipusNev, hianyzasDb, jogosult, tolDt, igDt) VALUES ";
+ if ($igDt == NULL) {
+ $q .= "('%s',%u,'%s',%u,'%s','%s',NULL)";
+ $v = array($B['tipus'], $B['fokozat'], $B['bejegyzesTipusNev'], $B['hianyzasDb'], implode(',',$B['jogosult']), $dt);
+ } else {
+ $q .= "('%s',%u,'%s',%u,'%s','%s','%s')";
+ $v = array($B['tipus'], $B['fokozat'], $B['bejegyzesTipusNev'], $B['hianyzasDb'], implode(',',$B['jogosult']), $dt, $B['igDt']);
+ }
+ $bejegyzesTipusId = db_query($q, array('fv'=>'bejegyzesTipusModositas/insert','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'insert'),$lr);
+ if (!$bejegyzesTipusId) { db_rollback($lr); db_close($lr); return false; }
+ // A korábbi bejegyzesTipus lezárása a megelőző nap dátumával
+ $q = "UPDATE bejegyzesTipus SET igDt = '%s' - INTERVAL 1 DAY WHERE bejegyzesTipusId=%u";
+ $v = array($dt, $btId);
+ $r = db_query($q, array('fv'=>'bejegyzesTipusModositas/lezar','modul'=>'naplo_intezmeny','values'=>$v),$lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ } else {
+ // A meglévő bejegyzesTipus módosítása
+ $q = "UPDATE bejegyzesTipus SET bejegyzesTipusNev='%s', hianyzasDb=%u, jogosult='%s' WHERE bejegyzesTipusId=%u";
+ $v = array($btAdat['bejegyzesTipusNev'], $btAdat['hianyzasDb'], implode(',', $btAdat['jogosult']), $btId);
+ $r = db_query($q, array('fv'=>'bejegyzesTipusModositas/lezar','modul'=>'naplo_intezmeny','values'=>$v),$lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ }
+ db_commit($lr);
+ db_close($lr);
+ return true;
+ }
+
+ function fokozatTorles($tipus, $dt) {
+ $q ="SELECT bejegyzesTipusId FROM bejegyzesTipus WHERE tipus='%s' AND tolDt<='%s' AND (igDt IS NULL OR '%s'<=igDt) ORDER BY fokozat DESC LIMIT 1";
+ $v = array($tipus, $dt, $dt);
+ $id = db_query($q, array('fv'=>'fokozatTorles/id','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'value'));
+
+ $q = "UPDATE bejegyzesTipus SET igDt = '%s' - INTERVAL 1 DAY WHERE bejegyzesTipusId=%u";
+ $v = array($dt, $id);
+ return db_query($q, array('fv'=>'fokozatTorles/update','modul'=>'naplo_intezmeny','values'=>$v));
+ }
+
+ function ujFokozat($tipus, $dt) {
+ $q ="SELECT max(fokozat) FROM bejegyzesTipus WHERE tipus='%s' AND tolDt<='%s' AND (igDt IS NULL OR '%s'<=igDt)";
+ $v = array($tipus, $dt, $dt);
+ $fokozat = db_query($q, array('fv'=>'ujFokozat/fokozat','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'value'));
+ $fokozat++;
+
+ // van-e ilyen fokozat későbbi dátummal?
+ $q = "SELECT tolDt FROM bejegyzesTipus WHERE tipus='%s' AND fokozat=%u AND tolDt>'%s' ORDER BY tolDt LIMIT 1";
+ $v = array($tipus, $fokozat, $dt);
+ $tolDt = db_query($q, array('fv'=>'ujFokozat/tolDt','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'value'));
+
+ if ($tolDt == NULL) {
+ $q = "INSERT INTO bejegyzesTipus (tipus, fokozat, bejegyzesTipusNev, hianyzasDb, jogosult, tolDt, igDt) VALUES ('%s', %u,'%s',NULL, 'admin','%s',NULL)";
+ $v = array($tipus, $fokozat, $tipus.' fokozat', $dt);
+ } else {
+ $q = "INSERT INTO bejegyzesTipus (tipus, fokozat, bejegyzesTipusNev, hianyzasDb, jogosult, tolDt, igDt) VALUES ('%s', %u,'%s',NULL, 'admin','%s', '%s' - INTERVAL 1 DAY)";
+ $v = array($tipus, $fokozat, $tipus.' fokozat', $dt, $tolDt);
+ }
+ return db_query($q, array('fv'=>'ujFokozat/insert','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'insert'));
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesek.php b/mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesek.php
new file mode 100644
index 00000000..97ab45de
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/bejegyzesek/bejegyzesek.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ module: naplo
+*/
+
+ // ok
+ function getBejegyzesekByTanarId($tanarId) {
+
+ $q = "SELECT * FROM bejegyzes LEFT JOIN `".__INTEZMENYDBNEV."`.`bejegyzesTipus` USING (bejegyzesTipusId) WHERE tanarId=%u ORDER BY tipus,beirasDt";
+
+ $BEJEGYZESEK = db_query($q, array('fv' => 'getBejegyzesLista', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($tanarId)));
+ for ($i = 0; $i < count($BEJEGYZESEK); $i++)
+ if ($BEJEGYZESEK[$i]['tanarId'] != '') $BEJEGYZESEK[$i]['tanarNev'] = getTanarNevById($BEJEGYZESEK[$i]['tanarId']);
+
+ return $BEJEGYZESEK;
+
+ }
+ // ok
+ function getBejegyzesLista($diakId) {
+
+ $q = "SELECT * FROM bejegyzes LEFT JOIN `".__INTEZMENYDBNEV."`.`bejegyzesTipus` USING (bejegyzesTipusId) WHERE diakId=%u ORDER BY tipus,beirasDt";
+
+ $BEJEGYZESEK = db_query($q, array('fv' => 'getBejegyzesLista', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($diakId)));
+ for ($i = 0; $i < count($BEJEGYZESEK); $i++)
+ if ($BEJEGYZESEK[$i]['tanarId'] != '') $BEJEGYZESEK[$i]['tanarNev'] = getTanarNevById($BEJEGYZESEK[$i]['tanarId']);
+
+ return $BEJEGYZESEK;
+
+ }
+ // ok
+ function getBejegyzesekByDiakIds($diakIds, $orderBy = 'diakId,tipus,beirasDt') {
+
+ $q = "SELECT * FROM bejegyzes LEFT JOIN `".__INTEZMENYDBNEV."`.`bejegyzesTipus` USING (bejegyzesTipusId)
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") ORDER BY $orderBy";
+
+ $BEJEGYZESEK = db_query($q, array(
+ 'fv' => 'getBejegyzesekByDiakIds', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'diakId', 'values' => $diakIds
+ ));
+ foreach ($BEJEGYZESEK as $diakId => $BADAT)
+ for ($i = 0; $i < count($BADAT); $i++)
+ if ($BADAT[$i]['tanarId'] != '')
+ $BEJEGYZESEK[$diakId][$i]['tanarNev'] = getTanarNevById($BADAT[$diakId][$i]['tanarId']);
+
+ return $BEJEGYZESEK;
+
+ }
+ // ok
+ function delBejegyzes($bejegyzesId) {
+
+
+ $torolheto = false;
+ if (__NAPLOADMIN) {
+ $torolheto = true;
+ } elseif (__TANAR) {
+ $q = "SELECT tanarId FROM bejegyzes WHERE bejegyzesId=%u";
+ $tanarId = db_query($q, array('fv' => 'delBejegyzes/check tanar', 'modul' => 'naplo', 'result' => 'value', 'values' => array($bejegyzesId)));
+ if (__USERTANARID == $tanarId) $torolheto = true;
+ }
+ if ($torolheto) {
+ $q = "DELETE FROM bejegyzes WHERE bejegyzesId=%u";
+ db_query($q, array('fv' => 'delBejegyzes', 'modul' => 'naplo', 'values' => array($bejegyzesId)));
+ } else {
+ $_SESSION['alert'][] = 'message:insufficient_access:delBejegyzes';
+ }
+ }
+
+ function getBejegyzesAdatById($bejegyzesId) {
+
+ $q = "SELECT * FROM bejegyzes LEFT JOIN `".__INTEZMENYDBNEV."`.`bejegyzesTipus` USING (bejegyzesTipusId) WHERE bejegyzesId=%u";
+ return db_query($q, array('fv' => 'getBejegyzesAdatById', 'modul' => 'naplo', 'result' => 'record', 'values' => array($bejegyzesId)));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/diakValaszto.php b/mayor-orig/www/include/modules/naplo/diakValaszto.php
new file mode 100644
index 00000000..e3a2f6b4
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/diakValaszto.php
@@ -0,0 +1,10 @@
+<?php
+
+ function updateSessionParentDiakId($parentDiakId) {
+
+ $q = "UPDATE session SET parentDiakId=%u WHERE policy='parent' and sessionID='"._SESSIONID."'";
+ db_query($q, array('fv' => 'updateSessionOid', 'modul' => 'naplo_base', 'values' => array($parentDiakId)));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/ertekeles/kerdoivBetoltes.php b/mayor-orig/www/include/modules/naplo/ertekeles/kerdoivBetoltes.php
new file mode 100644
index 00000000..811f27fe
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/ertekeles/kerdoivBetoltes.php
@@ -0,0 +1,81 @@
+<?php
+
+ function ujKerdoiv($ADAT) {
+
+ $q = "INSERT INTO kerdoiv (cim,tolDt,igDt,megjegyzes) VALUE ('%s', '%s', '%s', '%s')";
+ $v = array($ADAT['cim'], $ADAT['tolDt'], $ADAT['igDt'], $ADAT['megjegyzes']);
+ return db_query($q, array('fv' => 'ujKerdoiv', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v), $lr);
+
+ }
+
+ function kerdesValaszFelvetel($ADAT) {
+ $kerdoivId = $ADAT['kerdoivId'];
+ $kerdes = '';
+ for ($i = 0; $i < count($ADAT['txt']); $i++) {
+ if (trim($ADAT['txt'][$i]) != '') {
+ if ($kerdes == '') {
+ $kerdes = chop(readVariable($ADAT['txt'][$i], 'string'));
+ $q = "INSERT INTO kerdoivKerdes (kerdoivId, kerdes) VALUES (%u, '%s')";
+ $v = array($kerdoivId, $kerdes);
+ $kerdesId = db_query($q, array('fv' => 'kerdesValaszFelvetel/kerdes', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v), $lr);
+ } else {
+ $mezok = explode('|', chop(readVariable($ADAT['txt'][$i],'string')));
+ if (count($mezok) == 1) {
+ $valasz = $mezok[0];
+ $pont = 0;
+ } else {
+ $valasz = $mezok[1];
+ $pont = $mezok[0];
+ }
+ $q = "INSERT INTO kerdoivValasz (kerdesId, valasz, pont) VALUES (%u, '%s', %d)";
+ $v = array($kerdesId, $valasz, $pont);
+ db_query($q, array('fv' => 'kerdesValaszFeltoltes/valasz', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+ } else {
+ $kerdes = '';
+ }
+ }
+ }
+
+ function kerdoivCimzettFelvetel($kerdoivId, $cimzettId, $cimzettTipus) {
+ // kerdoivCimzett
+ $q = "INSERT INTO kerdoivCimzett (kerdoivId,cimzettId,cimzettTipus) VALUES (%u, %u, '%s')";
+ $v = array($kerdoivId, $cimzettId, $cimzettTipus);
+ db_query($q, array('fv' => 'kerdoivCimzett - cimzett', 'modul' => 'naplo', 'values' => $v));
+ // kerdoivValaszSzam
+ $q = "INSERT INTO kerdoivValaszSzam (valaszId,cimzettId,cimzettTipus,szavazat)
+ SELECT valaszId, %u, '%s', 0 FROM kerdoivValasz LEFT JOIN kerdoivKerdes USING (kerdesId) WHERE kerdoivId=%u";
+ $v = array($cimzettId, $cimzettTipus, $kerdoivId);
+ return db_query($q, array('fv' => 'kerdoivCimzett - valaszSzam', 'modul' => 'naplo', 'values' => $v));
+
+ }
+
+ function kerdoivCimzettTorles($kerdoivId, $cimzettId, $cimzettTipus) {
+ $return = true;
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+ // kerdoivCimzett
+ $q = "DELETE FROM kerdoivCimzett WHERE kerdoivId=%u AND cimzettId=%u AND cimzettTipus='%s'";
+ $v = array($kerdoivId, $cimzettId, $cimzettTipus);
+ $return = $return && db_query($q, array('fv' => 'kerdoivCimzettTorles - cimzett', 'modul' => 'naplo', 'values' => $v), $lr);
+ // kerdoivMegvalaszoltKerdes
+ $q = "DELETE FROM kerdoivMegvalaszoltKerdes WHERE cimzettId=%u AND cimzettTipus='%s' AND kerdesId IN
+ (SELECT kerdesId FROM kerdoivKerdes WHERE kerdoivId=%u)";
+ $v = array($cimzettId, $cimzettTipus, $kerdoivId);
+ $return = $return && db_query($q, array('fv' => 'kerdoivCimzettTorles - cimzett', 'modul' => 'naplo', 'values' => $v), $lr);
+ // kerdoivValaszSzam
+ $q = "DELETE FROM kerdoivValaszSzam WHERE cimzettId=%u AND cimzettTipus='%s' AND valaszId IN
+ (SELECT valaszId FROM kerdoivValasz LEFT JOIN kerdoivKerdes USING (kerdesId) WHERE kerdoivId=%u)";
+ $v = array($cimzettId, $cimzettTipus, $kerdoivId);
+ $return = $return && db_query($q, array('fv' => 'kerdoivCimzettTorles - valaszSzam', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ if ($return) db_commit($lr);
+ else db_rollback($lr);
+
+ db_close($lr);
+ return $return;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/ertekeles/osszesites.php b/mayor-orig/www/include/modules/naplo/ertekeles/osszesites.php
new file mode 100644
index 00000000..a57dc671
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/ertekeles/osszesites.php
@@ -0,0 +1,57 @@
+<?php
+/* // átkerült a share/kerdoiv.php-be!!!
+
+ function getKerdoivStat($kerdoivId) {
+
+ global $_TANEV;
+
+ // Kérdőív címe, határidői
+ $q = "SELECT * FROM kerdoiv WHERE kerdoivId=$kerdoivId";
+ list($ret) = _m_y_query($q, array('fv' => 'getKerdoivStat', 'db' => 'naplo'));
+
+ // A kérdőív kérdései
+ $q = "SELECT * FROM kerdoivKerdes WHERE kerdoivId=$kerdoivId ORDER BY kerdesId";
+ $ret['kerdes'] = _m_y_query($q, array('fv' => 'getKerdoivStat/kerdes', 'db' => 'naplo'));
+
+ // A kérdőív válaszai
+ $ret['valaszIds'] = array();
+ for ($i = 0; $i < count($ret['kerdes']); $i++) {
+ $q = "SELECT * FROM kerdoivValasz WHERE kerdesId=".$ret['kerdes'][$i]['kerdesId']." ORDER BY valaszId";
+ $ret['kerdes'][$i]['valasz'] = _m_y_query($q, array('fv' => 'getKerdoivStat/valasz', 'db' => 'naplo'));
+ for ($j = 0; $j < count($ret['kerdes'][$i]['valasz']); $j++) $ret['valaszIds'][] = $ret['kerdes'][$i]['valasz'][$j]['valaszId'];
+ }
+
+ // A kérdőív címzettjei
+ $q = "SELECT * FROM kerdoivCimzett WHERE kerdoivId=$kerdoivId";
+ $ret['cimzett'] = _m_y_multiassoc_query($q, 'cimzettTipus', array('fv' => 'getKerdoivStat/cimzett', 'db' => 'naplo'));
+ // A tankör típusú címzettek tanára(i)
+ $ret['tanarNev'] = array();
+ if (is_array($ret['cimzett']['tankor']) && count($ret['cimzett']['tankor']) > 0) {
+ for ($i = 0; $i < count($ret['cimzett']['tankor']); $i++) {
+ $tankorId = $ret['cimzett']['tankor'][$i]['cimzettId'];
+ $tanarIds = getTankorTanaraiByInterval(
+ $tankorId, array('tanev' => __TANEV, 'tolDt' => $ret['kerdes']['tolDt'], 'igDt' => $ret['kerdes']['igDt'], 'result' => 'csakId')
+ );
+ for ($j = 0; $j < count($tanarIds); $j++) {
+ $ret['tanarTankorei'][$tanarIds[$j]][] = $tankorId;
+ if (!isset($ret['tanarNev'][ $tanarIds[$j] ])) $ret['tanarNev'][ $tanarIds[$j] ] = getTanarNevById($tanarIds[$j]);
+ }
+ }
+ }
+
+ $q = "SELECT * FROM kerdoivValaszSzam WHERE valaszId IN (".implode(',', $ret['valaszIds']).") ORDER BY cimzettTipus,cimzettId,valaszId";
+ $tmp = _m_y_query($q, array('fv' => 'getKerdoivStat/szavazat', 'db' => 'naplo'));
+ for ($i = 0; $i < count($tmp); $i++)
+ $ret['szavazat'][ $tmp[$i]['cimzettTipus'] ][ $tmp[$i]['cimzettId'] ][ $tmp[$i]['valaszId'] ] = $tmp[$i]['szavazat'];
+
+ $tmp = getTankorok(array("tanev=".__TANEV));
+ for ($i = 0; $i < count($tmp); $i++) {
+ $ret['tankorAdat'][ $tmp[$i]['tankorId'] ] = $tmp[$i];
+ $ret['tankorAdat'][ $tmp[$i]['tankorId'] ]['letszam'] = getTankorLetszam($tmp[$i]['tankorId'], array('refDt' => $_TANEV['zarasDt']));
+ }
+ return $ret;
+
+ }
+*/
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/export/bizonyitvany.php b/mayor-orig/www/include/modules/naplo/export/bizonyitvany.php
new file mode 100644
index 00000000..2f7c27a1
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/export/bizonyitvany.php
@@ -0,0 +1,88 @@
+<?php
+
+ function exportBizonyitvany($file, $ADAT) {
+
+ global $KOVETELMENY;
+
+ $EXPORT = array();
+
+ // fejléc
+ // -- diák adatok
+ foreach ($ADAT['diakAttrs'] as $attr) $EXPORT[0][] = $attr;
+ // -- hiányzások
+ if (true) {
+ $EXPORT[0][] = "igazolt";
+ $EXPORT[0][] = "igazolatlan";
+ $EXPORT[0][] = "kesesPercOsszeg";
+ $EXPORT[0][] = "gyakorlatIgazolt";
+ $EXPORT[0][] = "gyakorlatIgazolatlan";
+ $EXPORT[0][] = "gyakorlatKesesPercOsszeg";
+ $EXPORT[0][] = "elmeletIgazolt";
+ $EXPORT[0][] = "elmeletIgazolatlan";
+ $EXPORT[0][] = "elmeletKesesPercOsszeg";
+ }
+ // -- jegyek
+ foreach ($ADAT['targyak'] as $i => $targyAdat) {
+ $EXPORT[0][] = 'targy'.($i+1).'_nev';
+ $EXPORT[0][] = 'targy'.($i+1).'_oraszam';
+ $EXPORT[0][] = 'targy'.($i+1).'_jegy';
+ }
+
+ // adatok
+ foreach ($ADAT['diakIds'] as $diakId) {
+ $ADAT['evesOraszam'][$diakId] = getTargyOraszamByDiakId($diakId, $ADAT);
+ $SOR = array();
+ // -- diák adatok
+ foreach ($ADAT['diakAttrs'] as $attr) $SOR[] = $ADAT['diakAdat'][$diakId][$attr];
+ if (true) {
+ $SOR[] = $ADAT['hianyzas'][$diakId]["igazolt"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["igazolatlan"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["kesesPercOsszeg"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["gyakorlatIgazolt"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["gyakorlatIgazolatlan"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["gyakorlatKesesPercOsszeg"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["elmeletIgazolt"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["elmeletIgazolatlan"];
+ $SOR[] = $ADAT['hianyzas'][$diakId]["elmeletKesesPercOsszeg"];
+ }
+ // -- jegyek
+ foreach ($ADAT['targyak'] as $i => $targyAdat) {
+ $jegy = $ADAT['jegyek'][$diakId][ $targyAdat['targyId'] ][0];
+ $SOR[] = $targyAdat['targyNev'];
+ $SOR[] = $ADAT['evesOraszam'][$diakId][ $targyAdat['targyId'] ];
+ $SOR[] = $KOVETELMENY[ $jegy['jegyTipus'] ][ $jegy['jegy'] ]['hivatalos'];
+ }
+
+ $EXPORT[] = $SOR;
+ }
+
+ if ($ADAT['formatum'] == 'xml') return generateXLS("$file.${ADAT['formatum']}", $EXPORT, 'bizonyítvány');
+ elseif ($ADAT['formatum'] == 'csv') return generateCSV("$file.${ADAT['formatum']}", $EXPORT, 'bizonyítvány');
+ elseif ($ADAT['formatum'] == 'ods') return generateODS("$file.${ADAT['formatum']}", $EXPORT, 'bizonyítvány');
+ else return false;
+
+ }
+
+ function getTargyOraszamByDiakId($diakId, $ADAT) {
+
+ $q = "SELECT targyId,oraszam FROM tankorDiak LEFT JOIN tankorSzemeszter USING (tankorId) LEFT JOIN tankor USING (tankorId)
+ WHERE diakId=%u AND tanev=%u AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt)";
+ $v = array($diakId, $ADAT['szemeszterAdat']['tanev'], $ADAT['szemeszterAdat']['zarasDt'], $ADAT['szemeszterAdat']['zarasDt']);
+ $jres = db_query($q, array(
+ 'fv' => 'getTargyOraszamByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'targyId', 'values' => $v
+ ));
+ $szDb = $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']; // Feltételezzük, hogy a szemeszterek számozása 1-től indul és folyamatos
+
+ foreach ($jres as $targyId => $tAdat) {
+ $oraszam = 0;
+ for ($i = 0; $i < count($tAdat); $i++) {
+ $oraszam += $tAdat[$i]['oraszam'];
+ }
+ //$ret['targyOraszam'][$targyId]['hetiOraszam'] = $oraszam / $szDb;
+ // itt mindenképp van osztalyId - ha nem adunk meg 'vegzos' paramétert, úgy az osztály alapján veszi...
+ $ret[$targyId] = $oraszam / $szDb * getTanitasiHetekSzama(array('osztalyId'=>$ADAT['osztalyId']/* ,'vegzos'=>diakVegzosE($diakId) */));
+ }
+ return $ret;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/export/diakExport.php b/mayor-orig/www/include/modules/naplo/export/diakExport.php
new file mode 100644
index 00000000..3114d7a9
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/export/diakExport.php
@@ -0,0 +1,144 @@
+<?php
+
+ define('__DIAK_EXPORT_FILE',_DOWNLOADDIR.'/private/export/diakExport');
+
+ global $exportFormatum;
+ $exportFormatum = array(
+ 'alapértelmezett' => array(
+ 'oId','viseltCsaladinev','viseltUtonev','szuletesiIdo','szuletesiHely','nem',
+ 'lakhelyIrsz','lakhelyHelyseg','lakhelyKozteruletNev','lakhelyKozteruletJelleg','lakhelyHazszam','lakhelyEmelet','lakhelyAjto','telefon'),
+ 'egyszerű' => array('viseltCsaladinev','viseltUtonev','diakigazolvanySzam','diakNaploSorszam'),
+ 'osztályfőnöki' => array('diakigazolvanySzam','viseltCsaladinev','viseltUtonev','oId','diakNaploSorszam','telefon','mobil','email'),
+ 'taninformTanuló' => array('oId','diakigazolvanySzam','viseltNevElotag','viseltCsaladinev','viseltUtonev','szuleteskoriNevElotag',
+ 'szuleteskoriCsaladinev','szuleteskoriUtonev','szuletesiHely','szuletesiIdo','anyaSzuleteskoriNevElotag','anyaSzuleteskoriCsaladinev',
+ 'anyaSzuleteskoriUtonev','allampolgarsag','lakhelyOrszag','lakhelyHelyseg',
+ 'lakhelyIrsz','lakhelyKozteruletNev','lakhelyKozteruletJelleg','lakhelyHazszam','lakhelyEmelet','lakhelyAjto','tartOrszag','tartHelyseg',
+ 'tartIrsz','tartKozteruletNev','tartKozteruletJelleg','tartHazszam','tartEmelet','tartAjto','jogviszonyKezdete','diakNaploSorszam'
+ ),
+ );
+
+ function diakExport($ADAT) {
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $ADAT['tanev']);
+ $W = array();
+ $q = "SELECT diak.*, osztalyId, osztalyJel, diakNaploSorszam(osztalyDiak.diakId,".$ADAT['tanev'].",osztalyDiak.osztalyId) AS diakNaploSorszam FROM diak LEFT JOIN osztalyDiak USING (diakId)
+ LEFT JOIN `%s`.osztalyNaplo USING (osztalyId)";
+ $v = array($tanevDbNev);
+ if (isset($ADAT['osztalyId'])) { $W[] = "osztalyId=%u"; $v[] = $ADAT['osztalyId']; }
+ if (isset($ADAT['dt'])) { $W[] = "beDt<='%s' AND ('%s'<=kiDt OR kiDt IS NULL)"; array_push($v, $ADAT['dt'], $ADAT['dt']); }
+
+ $q .= " WHERE ".implode(' AND ', $W);
+
+ $ret = db_query($q, array('fv' => 'diakExport', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ if (!$ret) return false;
+
+ $osztalyAdat = getOsztalyok($ADAT['tanev'], array('result' => 'assoc'));
+
+ $Szulok = getSzulok();
+ for ($i = 0; $i < count($ret); $i++) {
+ $ret[$i]['telephelyId'] = $osztalyAdat[ $ret[$i]['osztalyId'] ]['telephelyId'];
+ foreach (array('anya','apa','gondviselo','nevelo') as $tipus) {
+ $szuloId = $ret[$i][ $tipus.'Id' ];
+ if (is_array($Szulok[$szuloId])) foreach ($Szulok[$szuloId] as $attr => $value) {
+ $ret[$i][ $tipus . ucfirst($attr) ] = $value;
+ } elseif ($i == 0 && is_array($Szulok[1])) foreach ($Szulok[1] as $attr => $value) {
+ $ret[$i][ $tipus . ucfirst($attr) ] = '';
+ }
+ }
+ }
+
+ return $ret;
+
+ }
+
+ function createFile($ADAT) {
+ if ($ADAT['formatum'] == 'xls' || $ADAT['formatum'] == 'xml') return generateXLSExport($ADAT['export'], $ADAT['mezok']);
+ elseif ($ADAT['formatum'] == 'pdf') return generatePDFExport($ADAT['export'], $ADAT['mezok']);
+ else return generateCSVExport($ADAT['export'], $ADAT['mezok']);
+ }
+
+ function generateCSVExport($ret, $Mezok = array()) {
+
+
+ $fp = fopen(__DIAK_EXPORT_FILE . '.csv', 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open:'.__DIAK_EXPORT_FILE . '.csv';
+ return false;
+ }
+
+ fputs($fp, implode(' ',$Mezok)."\n");
+ for ($i = 0; $i < count($ret); $i++) {
+ $A = array();
+ foreach ($Mezok as $attr => $attrNev) $A[] = $ret[$i][$attr];
+ $sor = implode(' ', $A)."\n";
+ fputs($fp, $sor);
+ }
+
+ fclose($fp);
+ return true;
+
+ }
+
+ function generateXLSExport($ret, $Mezok = array()) {
+
+ $fp = fopen(__DIAK_EXPORT_FILE . '.xml', 'w');
+ if (!$fp) return false;
+
+ fputs($fp, '<?xml version="1.0"?>'."\r\n");
+ fputs($fp, '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"'."\r\n"
+ .' xmlns:o="urn:schemas-microsoft-com:office:office"'."\r\n"
+ .' xmlns:x="urn:schemas-microsoft-com:office:excel"'."\r\n"
+ .' xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'."\r\n"
+ .' xmlns:html="http://www.w3.org/TR/REC-html40">'."\r\n");
+
+ fputs($fp, ' <Styles>'."\r\n"
+ .' <Style ss:ID="s21">'."\r\n".' <NumberFormat ss:Format="Short Date" />'."\r\n".' </Style>'."\r\n"
+ .' <Style ss:ID="s22">'."\r\n".' <NumberFormat ss:Format="yyyy\.m\.d\.\ h:mm" />'."\r\n".' </Style>'."\r\n"
+ ."\r\n".' </Styles>'."\r\n");
+
+ fputs($fp, '<Worksheet ss:Name="Diák adatok">'."\r\n");
+ fputs($fp, '<Table>'."\r\n");
+
+ // fejléc
+ fputs($fp, '<Row>'."\r\n");
+ foreach ($Mezok as $index => $attr) {
+ fputs($fp, " <Cell><Data ss:Type=\"String\">".$attr."</Data></Cell>\r\n");
+ }
+ fputs($fp, '</Row>'."\r\n");
+
+
+ for ($i = 0; $i < count($ret); $i++) {
+ fputs($fp, '<Row>'."\r\n");
+ foreach ($Mezok as $attr => $attrNev) {
+ $value = $ret[$i][$attr];
+ $time = strtotime($value);
+ if (is_numeric($value))
+ fputs($fp, " <Cell><Data ss:Type=\"Number\">".$value."</Data></Cell>\r\n");
+ elseif (is_numeric($time) && $value == date('Y-m-d H:i:s', $time))
+ fputs($fp, " <Cell ss:StyleID=\"s22\"><Data ss:Type=\"DateTime\">".str_replace(' ','T',$value).'.000'."</Data></Cell>\r\n");
+ elseif (is_numeric($time) && $value == date('Y-m-d', $time))
+ fputs($fp, " <Cell ss:StyleID=\"s21\"><Data ss:Type=\"DateTime\">".$value.'T08:40:00.000'."</Data></Cell>\r\n");
+ else
+ fputs($fp, " <Cell><Data ss:Type=\"String\">".$value."</Data></Cell>\r\n");
+ }
+ fputs($fp, '</Row>'."\r\n");
+ }
+
+ fputs($fp, '</Table>'."\r\n");
+ fputs($fp, '</Worksheet>'."\r\n");
+ fputs($fp, '</Workbook>'."\r\n");
+
+ fclose($fp);
+ return true;
+
+ }
+
+ function generatePDFExport($ret, $mezok = array()) {
+
+
+ $_SESSION['alert'][] = 'message:not implemented';
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/export/kirBizonyitvanyExport.php b/mayor-orig/www/include/modules/naplo/export/kirBizonyitvanyExport.php
new file mode 100644
index 00000000..d5182042
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/export/kirBizonyitvanyExport.php
@@ -0,0 +1,24 @@
+<?php
+
+ /* ez általános fv. Nem lenne jó mindenhol használni? */
+
+ function nyomtatvanyKeszites($ADAT,$template) {
+
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$template.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$template.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$template.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$template.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$template.'.tmpl';
+ return false;
+ }
+
+ return template2file($templateFile, $ADAT);
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/export/kreta.php b/mayor-orig/www/include/modules/naplo/export/kreta.php
new file mode 100644
index 00000000..77c89539
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/export/kreta.php
@@ -0,0 +1,23 @@
+<?php
+
+ function exportKretaTanarAdat($file, $ADAT) {
+ $T = $ADAT['EXPORT'];
+ if ($ADAT['formatum'] == 'xml') return generateXLS("$file.${ADAT['formatum']}", $T, 'kreta_mayor_tanarAdat');
+ elseif ($ADAT['formatum'] == 'csv') return generateCSV("$file.${ADAT['formatum']}", $T, '');
+ elseif ($ADAT['formatum'] == 'ods') return generateODS("$file.${ADAT['formatum']}", $T, 'kreta_mayor_tanarAdat');
+ else return false;
+
+ }
+
+ function exportTankorTanar($file, $ADAT) {
+
+ $T = $ADAT['EXPORT'];
+
+ if ($ADAT['formatum'] == 'xml') return generateXLS("$file.${ADAT['formatum']}", $T, 'kreta_ETTF_simple');
+ elseif ($ADAT['formatum'] == 'csv') return generateCSV("$file.${ADAT['formatum']}", $T, '');
+ elseif ($ADAT['formatum'] == 'ods') return generateODS("$file.${ADAT['formatum']}", $T, 'kreta_ETTF_simple');
+ else return false;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/export/sulix.php b/mayor-orig/www/include/modules/naplo/export/sulix.php
new file mode 100644
index 00000000..1658bb58
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/export/sulix.php
@@ -0,0 +1,129 @@
+<?php
+
+ function createTGZ($ADAT) {
+
+ global $policy, $page, $sub, $f;
+
+ define('TMP','/tmp/mayor2sulix');
+ define('TGZ',_DOWNLOADDIR."/$policy/$page/$sub/$f/mayor2sulix.tgz");
+
+ $D = getIntezmenyByRovidnev(__INTEZMENY);
+
+ mkdir(TMP);
+ file_put_contents(TMP.'/diak.csv', createCSV('diak', $ADAT));
+ file_put_contents(TMP.'/tanar.csv', createCSV('tanar', $ADAT));
+ file_put_contents(TMP.'/schoolserver', "SCHOOLOM=\"${D['OMKod']}\"\nSCHOOLNAME=\"${D['nev']}\"\nSCHOOLSHORTNAME=\"${D['rovidNev']}\"\n");
+
+ system("cd ".TMP."; tar cfz ".TGZ." * >/dev/null");
+
+ unlink(TMP.'/diak.csv');
+ unlink(TMP.'/tanar.csv');
+ unlink(TMP.'/schoolserver');
+ rmdir(TMP);
+
+ return true;
+ }
+
+ function getDiakAccounts() {
+
+ $D = getDiakok(array('extraAttrs'=>'oId, viseltCsaladinev, viseltUtonev, szuletesiIdo'));
+ for ($i = 0; $i < count($D); $i++) {
+ $oId = $D[$i]['oId'];
+ if (isset($oId)) {
+ $U = searchAccount('studyId', $oId, array('userAccount','studyId'), 'private');
+ for ($j = 0; $j < $U['count']; $j++) {
+ // Ha az oId nem valódi, akkor lehet egy valódi oId része. Az egyenlőséget vizsgálni kell!
+ if ($oId == $U[$j]['studyId'][0]) {
+ $O = getDiakOsztalya($D[$i]['diakId']);
+ $D[$i]['userAccount'] = ekezettelen($U[$j]['userAccount'][0]);
+ $D[$i]['osztalyJel'] = str_replace('.','',$O[0]['osztalyJel']);
+ $ret[] = $D[$i];
+ }
+ }
+ }
+ }
+
+ return $ret;
+
+ }
+
+ function getTanarAccounts() {
+
+ $D = getTanarok(array('tanev'=>__TANEV,'result'=>'indexed','extraAttrs'=>'oId, viseltCsaladinev, viseltUtonev, szuletesiIdo'));
+
+ for ($i = 0; $i < count($D); $i++) {
+ $oId = $D[$i]['oId'];
+ if (isset($oId)) {
+ $U = searchAccount('studyId', $oId, array('userAccount','studyId'), 'private');
+ for ($j = 0; $j < $U['count']; $j++) {
+ // Ha az oId nem valódi, akkor lehet egy valódi oId része. Az egyenlőséget vizsgálni kell!
+ if ($oId == $U[$j]['studyId'][0]) {
+ $D[$i]['userAccount'] = ekezettelen($U[$j]['userAccount'][0]);
+ $Osztalya = getOsztalyByTanarId($D[$i]['tanarId'], array('csakId'=>false));
+ $D[$i]['osztalyJel'] = str_replace('.','',$Osztalya[0]['osztalyJel']);
+ if ($D[$i]['szuletesiIdo'] == '') $D[$i]['szuletesiIdo'] = '0000-00-00';
+ $ret[] = $D[$i];
+ }
+ }
+ }
+ }
+
+ return $ret;
+
+ }
+
+ function getEgyebAccounts() {
+
+ }
+
+ function getAlapadatok($fileName) {
+
+ $D = getIntezmenyByRovidnev(__INTEZMENY);
+//var_dump($D);
+ $fp = fopen(_DOWNLOADDIR.'/private/naplo/export/sulix/'.$fileName,'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open_failure:'.$fileName;
+ return false;
+ }
+
+ fputs($fp, "SCHOOLOM=\"${D['OMKod']}\"\n");
+ fputs($fp, "SCHOOLNAME=\"${D['nev']}\"\n");
+ fputs($fp, "SCHOOLSHORTNAME=\"${D['rovidNev']}\"\n");
+
+ fclose($fp);
+ return true;
+ }
+
+ function myImplode($v) { return implode(':', $v); } // az alábbi array_map-hez
+
+ function createCSV($csoport, $ADAT) {
+
+ if (!is_array($ADAT[$csoport]) || count($ADAT[$csoport])==0) return false;
+
+ $fileName = $csoport.'.csv';
+ $title = ':';
+ $mayor2sulix = array(
+ 'userAccount' => 'AZONOSITO', 'viseltCsaladinev' => 'CSALADI_NEV', 'viseltUtonev' => 'KERESZTNEV',
+ 'szuletesiIdo' => 'SZULETESNAP', 'osztalyJel' => 'OSZTALY', 'oId' => 'OKTATASI_AZONOSITO' // ':UTF-8
+ );
+ $Attrs = array();
+ foreach ($ADAT[$csoport][0] as $attr => $value) {
+ if (isset($mayor2sulix[$attr])) {
+ $title .= $mayor2sulix[$attr].':';
+ $Attrs[] = $attr;
+ }
+ }
+ $title .= 'UTF-8';
+ $Table = array();
+ for ($i = 0; $i < count($ADAT[$csoport]); $i++) {
+ $Table[$i] = array(0=>'');
+ for ($j = 0; $j < count($Attrs); $j++) {
+ $Table[$i][$j+1] = $ADAT[$csoport][$i][ $Attrs[$j] ];
+ }
+ $Table[$i][] = ''; // $Table[$i][] = '';
+ }
+ return $title."\n".implode("\n",array_map('myImplode', $Table));
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/export/tanarOsztalyOraszam.php b/mayor-orig/www/include/modules/naplo/export/tanarOsztalyOraszam.php
new file mode 100644
index 00000000..c858e674
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/export/tanarOsztalyOraszam.php
@@ -0,0 +1,13 @@
+<?php
+
+ function exportTanarOsztalyOraszam($file, $ADAT) {
+ $T = $ADAT['EXPORT'];
+ if ($ADAT['formatum'] == 'xml') return generateXLS("$file.${ADAT['formatum']}", $T, 'mayor_tanarOsztalyOraszam');
+ elseif ($ADAT['formatum'] == 'csv') return generateCSV("$file.${ADAT['formatum']}", $T, '');
+ elseif ($ADAT['formatum'] == 'ods') return generateODS("$file.${ADAT['formatum']}", $T, 'mayor_tanarOsztalyOraszam');
+ else return false;
+
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/export/tantargyFelosztas.php b/mayor-orig/www/include/modules/naplo/export/tantargyFelosztas.php
new file mode 100644
index 00000000..823fb92b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/export/tantargyFelosztas.php
@@ -0,0 +1,68 @@
+<?php
+
+ function getTankorOraszamok() {
+
+ $q = "SELECT tankorId, tankorNev, targyId, tankorTipusId, tanev, szemeszter, oraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE tanev=".__TANEV;
+ $return = db_query($q, array('fv'=>'getTankorOraszamok','modul'=>'naplo_intezmeny','result'=>'indexed'));
+ for ($i=0; $i<count($return); $i++) {
+ $return[$i]['tanarIds'] = getTankorTanaraiByInterval($return[$i]['tankorId'], array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result' => 'idonly', 'datumKenyszeritessel' => false));
+ $return[$i]['osztalyIds'] = getTankorOsztalyai($return[$i]['tankorId']);
+ }
+ return $return;
+
+ }
+
+ function exportTantargyFelosztas($file, $ADAT) {
+
+ $T = array();
+
+ $T[0] = array('név','képesítés/tantárgy','tényleges óraszám','kötelező óraszám','besorolás');
+/*
+ $T[0] = array('név','képesítés/tantárgy','óraszám');
+ foreach ($ADAT['osztalyok'] as $oAdat) {
+ $T[0][] = $oAdat['osztalyJel'];
+ }
+*/
+ foreach ($ADAT['tanarAdat'] as $tanarId => $tAdat) {
+ // tanár neve, képesítései, összes óraszáma, kötelező óraszáma, besorolas
+ $elsoSor = count($T);
+ $sor = array($tAdat['tanarNev'], null, null, $tAdat['hetiKotelezoOraszam'], $tAdat['besorolas']);
+ if (is_array($ADAT['tanarKepesitesIds'])) {
+ $_kepesites = array();
+ foreach ($ADAT['tanarKepesitesIds'][$tanarId] as $kepesitesId) $_kepesites[] = $ADAT['kepesitesAdat'][$kepesitesId]['kepesitesNev'];
+ $sor[1] = implode(', ', $_kepesites);
+ }
+ $T[] = $sor;
+ // tanár tárgyai és óraszámai
+ $sum = 0;
+ $utolsoTargyId = end((array_keys($ADAT['export'][$tanarId])));
+ foreach ($ADAT['export'][$tanarId] as $targyId => $targyAdat) {
+
+ $sor = array('', $ADAT['targyAdat'][$targyId]['targyNev'],0);
+ $resz = 0;
+ foreach ($ADAT['osztalyok'] as $oAdat) {
+/*
+ if (($targyAdat[$oAdat['osztalyId']][1]+$targyAdat[$oAdat['osztalyId']][2])/2 != 0)
+ $sor[] = ($targyAdat[$oAdat['osztalyId']][1]+$targyAdat[$oAdat['osztalyId']][2])/2;
+ else $sor[] = null;
+*/
+ $resz += ($targyAdat[$oAdat['osztalyId']][1]+$targyAdat[$oAdat['osztalyId']][2])/2;
+ }
+ $sor[2] = $resz;
+ $sum += $resz;
+ $T[] = $sor;
+
+ }
+ $T[$elsoSor][2] = $sum;
+ }
+//dump($T);
+ if ($ADAT['formatum'] == 'xml') return generateXLS("$file.${ADAT['formatum']}", $T, 'tantárgyFelosztás');
+ elseif ($ADAT['formatum'] == 'csv') return generateCSV("$file.${ADAT['formatum']}", $T, 'tantárgyFelosztás');
+ elseif ($ADAT['formatum'] == 'ods') return generateODS("$file.${ADAT['formatum']}", $T, 'tantárgyFelosztás');
+ else return false;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/elmaradas.php b/mayor-orig/www/include/modules/naplo/haladasi/elmaradas.php
new file mode 100644
index 00000000..e6db4268
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/elmaradas.php
@@ -0,0 +1,27 @@
+<?php
+
+ function getHaladasiElmaradas() {
+
+ $ret = array();
+ $elozoTanitasiNapDt = getTanitasiNapVissza(1);
+
+ // Még beírható, de már elmúlt órák száma
+ $q = "SELECT ki, COUNT(*) AS db FROM ".__TANEVDBNEV.".ora WHERE tipus NOT LIKE 'elmarad%%'
+ AND (leiras = '' OR leiras IS NULL)
+ AND dt >= CAST('"._HALADASI_HATARIDO."' AS DATE)
+ AND dt <= CAST('%s' AS DATE) GROUP BY ki";
+ $ret['beirando'] = db_query($q, array(
+ 'fv' => 'getHaladasiElmaradas/#1', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'ki', 'values' => array($elozoTanitasiNapDt)
+ ));
+ // Lezárt hiányzások száma
+ $q = "SELECT ki, COUNT(*) AS db FROM ".__TANEVDBNEV.".ora WHERE tipus NOT LIKE 'elmarad%'
+ AND (leiras = '' OR leiras IS NULL)
+ AND dt < CAST('"._HALADASI_HATARIDO."' AS DATE)
+ GROUP BY ki
+ ORDER BY db DESC";
+ $ret['lezart'] = db_query($q, array('fv' => 'getHaladasiElmaradas/#2', 'modul' => 'naplo', 'result' => 'indexed'));
+
+ return $ret;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/elszamolas.php b/mayor-orig/www/include/modules/naplo/haladasi/elszamolas.php
new file mode 100644
index 00000000..5490624a
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/elszamolas.php
@@ -0,0 +1,44 @@
+<?php
+
+ function getElszamolas($tolDt, $igDt, $tanarId = '') {
+
+ if (isset($tanarId) && intval($tanarId)!='') {
+ $w = " AND ki=%u";
+ $v2 = $tanarId;
+ } else $w='';
+
+ $A = array();
+ // Megtartott órák száma tanáronként, típusonként
+ $q = "SELECT ki,tipus,eredet,munkaido,COUNT(*) AS db FROM
+ ( SELECT DISTINCT ki,munkaido,tipus,dt,ora,eredet FROM
+ ora WHERE leiras != '' AND tipus NOT LIKE 'elmarad%%' AND '%s'<=dt AND dt<='%s' $w ) AS x
+ GROUP BY ki, munkaido, tipus,eredet";
+ $v = mayor_array_join(array($tolDt, $igDt),$v2);
+ $ret = db_query($q, array('fv' => 'getElszamolas', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($ret); $i++) {
+ $A[ $ret[$i]['ki'] ][ $ret[$i]['tipus'] ] += intval($ret[$i]['db']);
+ $A['detailed'][ $ret[$i]['ki'] ][ $ret[$i]['tipus'] ][ $ret[$i]['munkaido'] ] = intval($ret[$i]['db']);
+ $A['detailed_ki_tipus_munkaido_eredet'][ $ret[$i]['ki'] ][ $ret[$i]['tipus'] ][ $ret[$i]['munkaido'] ][ $ret[$i]['eredet'] ] = intval($ret[$i]['db']);
+ }
+ // Tanárok heti óraszáma
+ $q = "SELECT tanarId,
+ COUNT(*)/(
+ SELECT COUNT(DISTINCT het) AS db FROM orarendiOra WHERE tolDt<=CURDATE() AND CURDATE()<=igDt
+ ) AS db
+ FROM orarendiOra WHERE tolDt <= CURDATE() AND CURDATE() <= igDt
+ GROUP BY tanarId";
+ $ret = db_query($q, array('fv' => 'getElszamolas', 'modul' => 'naplo', 'result'=> 'indexed'));
+ for ($i = 0; $i < count($ret); $i++) $A[ $ret[$i]['tanarId'] ]['oraszam'] = $ret[$i]['db'];
+
+ // Napok száma az adott időszak alatt - típusonként
+ $q = "SELECT munkatervId,tipus,COUNT(*) AS db FROM nap WHERE '%s'<=dt AND dt<='%s' GROUP BY munkatervId,tipus";
+ $ret = db_query($q, array(
+ 'fv' => 'getElszamolas', 'modul' => 'naplo', 'result' => 'indexed', 'keyfield' => 'tipus', 'values' => mayor_array_join(array($tolDt, $igDt),$v)
+ ));
+ foreach ($ret as $tmp) { $A['napok'][ $tmp['munkatervId'] ][ $tmp['tipus'] ] = $tmp['db']; }
+ $A['munkaterv'] = getMunkatervek(array('result'=>'assoc', 'keyfield'=>'munkatervId'));
+
+ return $A;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/haladasi.php b/mayor-orig/www/include/modules/naplo/haladasi/haladasi.php
new file mode 100644
index 00000000..d3b9378c
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/haladasi.php
@@ -0,0 +1,274 @@
+<?php
+
+ require_once ( 'include/modules/naplo/share/oraModifier.php' );
+
+/*
+ function updateHaladasiNaploOra($oraId, $leiras, $csoportAdat = '', $ki = '', $olr = '') {
+
+ $RESULT = true;
+
+ $lr = $olr=='' ? db_connect('naplo', array('fv' => 'updateHaladasiNaploOra')):$olr;
+ // A módosítás előtti állapot lekérdezése
+ $oraAdat = getOraAdatById($oraId, __TANEV, $lr);
+ $dt = $oraAdat['dt'];
+ // Melyik tankör lesz a módosítás után
+ if ($csoportAdat != '') list($csoportId, $tankorId) = explode(':', $csoportAdat);
+ else $tankorId = $oraAdat['tankorId'];
+
+ // force to be numeric (CHECK)
+ $csoportId = intval($csoportId);
+ $tankorId = intval($tankorId);
+
+// $oraAdat['tanar'] = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => _SHOW_DAYS_FROM, 'igDt' => _SHOW_DAYS_TO, 'result' => 'nevsor'), $lr);
+ $oraAdat['tanar'] = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => $dt, 'igDt' => $dt, 'result' => 'nevsor'), $lr);
+ // Melyik ki id lesz módosítás után
+ if ($ki != '') $tanarId = $ki; else $tanarId = $oraAdat['ki'];
+ if (modosithatoOra($oraAdat)) {
+
+ // Tananyag beírása
+ $q = "UPDATE ora SET leiras='%s'";
+ $v = array($leiras);
+ if ($ki != '') { // Ha több tanára van a tankörnek, akkor az átváltható
+ $i = 0;
+ while ($i < ($db = count($oraAdat['tanar'])) && $ki != $oraAdat['tanar'][$i]['tanarId']) $i++;
+ if ($i < $db) {
+ $q .= ",ki=%u";
+ $v[] = $ki;
+ }
+ }
+ //!!! A csoportok tankörei válthatóak - ha ugyanaz a tanár tartja
+ if ($csoportAdat != '' && $oraAdat['tankorId'] != $tankorId) {
+ $q2 = "SELECT COUNT(tankorId) FROM tankorCsoport LEFT JOIN ".__INTEZMENYDBNEV.".tankorTanar USING (tankorId)
+ WHERE csoportId = %u AND tanarId = %u
+ AND tankorId IN (%u,%u)
+ AND (kiDt IS NULL OR kiDt>='%s') AND beDt<='%s'";
+ $v2 = array($csoportId, $tanarId, $tankorId, $oraAdat['tankorId'], $dt, $dt);
+ $num = db_query($q2, array('fv' => 'updateHaladasiNaploOra', 'modul' => 'naplo', 'result' => 'value', 'values' => $v2), $lr);
+ if (!$num) {
+ $_SESSION['alert'][] = 'message:wrong_data:updateHaladasiNaploOra:'.$num.':'.$csoportId;
+ $RESULT = false;
+ } elseif ($num == 2) {
+ $q .= ",tankorId=%u";
+ $v[] = $tankorId;
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:updateHaladasiNaploOra:'.$num.':'.$csoportId;
+ $RESULT = false;
+ }
+ }
+ if ($RESULT!==false) {
+ $q .= " WHERE oraId=%u";
+ $v[] = $oraId;
+ $RESULT = db_query($q, array('fv' => 'updateHaladasiNaploOra', 'modul' => 'naplo', 'values' => $v), $lr);
+ //$_SESSION['alert'][] = $q;
+ }
+ } else {
+// $RESULT = false; // igaziból nincs hiba, hisz nem csináltunk semmit
+ $_SESSION['alert'][] = 'message:wrong_data:nem modosithato ora!!!';
+ }
+ if ($olr == '') db_close($lr);
+
+ return $RESULT;
+
+ }
+*/
+/* elköltözött a share/oraModifier.php - be
+ function modosithatoOra($haladasiOraAdat) {
+
+ global $_TANEV;
+ if (!defined('_HALADASI_HATARIDO')) $_SESSION['alert'][] = 'info::modosithatoOra.not defined._HALADASI_HATARIDO';
+ // feladat típusokra vonatkozó beállítások
+ $Feladat = is_numeric($haladasiOraAdat['feladatTipusId']) && $haladasiOraAdat['tipus']=='egyéb'; // 22-26 óra feletti kötött munkaidőbe tartó feladat
+ $tanarFeladat = $Feladat && defined('__USERTANARID') && __USERTANARID==$haladasiOraAdat['ki']; // ... amit az épp bejelentkezett tanár tart
+ $sajatTanarFeladat = $tanarFeladat && $haladasiOraAdat['eredet']=='plusz'; // ... és ő is vett fel
+ $eloirtTanarFeladat = $tanarFeladat && $haladasiOraAdat['eredet']=='órarend'; // ... illetve, amit számára a vezetőség előírt (nem törölhető)
+ $time = strtotime($haladasiOraAdat['dt']);
+ $ki = $haladasiOraAdat['ki'];
+ $normalOra = (in_array($haladasiOraAdat['tipus'],array('normál','normál máskor')));
+ for ($i = 0;
+ (
+ ($i < ($count = count($haladasiOraAdat['tanar'])))
+ && ($haladasiOraAdat['tanar'][$i]['tanarId'] != __USERTANARID)
+ );
+ $i++
+ );
+ $tanara = ($i < $count);
+
+ return ($_TANEV['szemeszter'][1]['statusz'] == 'aktív') // Csak aktív szemeszterbe írhatunk
+ && (
+ ((__VEZETOSEG || __NAPLOADMIN) && $Feladat && $haladasiOraAdat['eredet']=='órarend')
+ || $time <= time()
+ ) // A jövőbeli órák nem írhatók be, kivéve, ha az előírt tanári feladat (pl versenyfelügyelet)!
+ && (
+ // Az admin bármikor módosíthat - de csak vezetői utasításra teszi!
+ __NAPLOADMIN
+ // Az igazgató naplózárásig pótolhat, javíthat - utána elvileg nyomtatható a napló!
+ || (__VEZETOSEG and strtotime(_ZARAS_HATARIDO) <= $time)
+ || (
+ __TANAR
+ && (
+ // a számára felvett óra nem módosítható
+ !$eloirtTanarFeladat
+ && (
+ // tanár a saját tanköreinek óráit a _HALADASI_HATARIDO-ig módosíthatja
+ ($normalOra && $tanara && (strtotime(_HALADASI_HATARIDO) <= $time))
+ // tanár az általa helyettesített/felügyelt/összevont órát _visszamenőleg_ a _HELYETTESITES_HATARIDO-ig módosíthatja
+ || (!$normalOra && (__USERTANARID == $ki) && (strtotime(_HELYETTESITES_HATARIDO) <= $time) && $Feladat===false)
+ // a kötött munkaidőben végzett feladatok _HALADASI_HATARIDŐIG módosíthatók
+ || ($tanarFeladat && (strtotime(_HALADASI_HATARIDO) <= $time))
+ )
+ )
+ )
+ );
+ }
+*/
+
+ function getOraszamByOraId($oraId, $olr='') {
+
+
+ $lr = ($olr=='') ? db_connect('naplo', array('fv' => 'getOraszamByOraId')) : $olr;
+
+ $q = "SELECT tankorId, dt, ora FROM ora WHERE oraId=%u";
+ $r = db_query($q, array('fv' => 'getOraszamByOraId', 'modul' => 'naplo', 'result' => 'record', 'values' => array($oraId)), $lr);
+
+ $tankorId = $r['tankorId'];
+ $dt = $r['dt'];
+ $ora = $r['ora'];
+
+ if (defined('__ORASZAMOT_NOVELO_TIPUSOK')) {
+ $oraszamNoveloTipus = explode(',', __ORASZAMOT_NOVELO_TIPUSOK);
+ } else {
+ if (!in_array('info:missing_constant:__ORASZAMOT_NOVELO_TIPUSOK',$_SESSION['alert'])) $_SESSION['alert'][] = 'info:missing_constant:__ORASZAMOT_NOVELO_TIPUSOK';
+ $oraszamNoveloTipus = array('normál', 'normál máskor', 'helyettesítés', 'összevonás');
+ }
+ $q = "SELECT count(oraId) FROM ora
+ WHERE tankorId=%u
+ AND tipus IN ('".implode("','", array_fill(0, count($oraszamNoveloTipus), '%s'))."')
+ AND (dt<'%s' OR (dt='%s' AND ora<=%u))";
+ $v = mayor_array_join(array($tankorId), $oraszamNoveloTipus, array($dt, $dt, $ora));
+ $oraszam = db_query($q, array('fv' => 'getOraszamByOraId', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $lr);
+
+ if ($olr == '') db_close($lr);
+ return $oraszam;
+ }
+
+ function getHaladasi($Tankorok, $munkatervIds, $orderBy, $tanarId = '', $csakUres=false, $teremId=false) {
+
+ $ret = array();
+
+ // Munkatervidk
+ if (!is_array($munkatervIds) || count($munkatervIds)==0) $munkatervIds = array(1); // a default
+
+ // Az érintett tankörök id-inek listája
+ $tankorIds = $tankorAdat = array();
+ if (is_array($Tankorok) && ($count = count($Tankorok)) > 0) {
+ $tankorFeltetel = 'tankorId IN (' . $Tankorok[0]['tankorId'];
+ $tankorIds[] = $Tankorok[0]['tankorId'];
+ $Tankorok[0]['tanar'] = getTankorTanaraiByInterval($Tankorok[0]['tankorId'], array('tanev' => __TANEV, 'tolDt' => _SHOW_DAYS_FROM, 'igDt' => _SHOW_DAYS_TO, 'result' => 'nevsor'));
+ $tankorAdat[$Tankorok[0]['tankorId']] = $Tankorok[0];
+ for ($i = 1; $i < $count; $i++) {
+ $tankorFeltetel .= ', '.$Tankorok[$i]['tankorId'];
+ $tankorIds[] = $Tankorok[$i]['tankorId'];
+ $Tankorok[$i]['tanar'] = getTankorTanaraiByInterval($Tankorok[$i]['tankorId'], array('tanev' => __TANEV, 'tolDt' => _SHOW_DAYS_FROM, 'igDt' => _SHOW_DAYS_TO, 'result' => 'nevsor'));
+ $tankorAdat[$Tankorok[$i]['tankorId']] = $Tankorok[$i];
+ }
+ $tankorFeltetel .= ')';
+ }
+ elseif ($tanarId=='') return false;
+ // else return false; // Ha egy kollégának nincs rendszeres órája, tanköre, de helyettesít, akkor meg kell jelenjenek ezek az órái... (Bug #53)
+
+ if ($teremId!==false && is_numeric($teremId)) {
+ $teremFeltetel = ' and teremId = '.$teremId;
+ } else
+ $teremFeltetel = '';
+
+ // Ha tanarId is van, akkor az általa helyettesített órák is kellenek
+ if ($tanarId != '') {
+ if (isset($tankorFeltetel)) $kiFeltetel = 'OR ki = '.$tanarId;
+ else $kiFeltetel = 'ki = '.$tanarId;
+ }
+ if (isset($tankorFeltetel) || isset($kiFeltetel)) $feltetel = "AND ($tankorFeltetel $kiFeltetel)";
+ if (isset($csakUres) && $csakUres==true) $feltetel .= " AND (leiras='' OR leiras IS NULL) ";
+
+ // Csatlakozás az adatbázishoz
+ $lr = db_connect('naplo', array('fv' => 'getHaladasi'));
+ $q = "SELECT oraId, dt, ora, ki, kit, tankorId, teremId, ora.leiras, tipus, eredet, csoportId, feladatTipusId
+ FROM ora
+ LEFT JOIN tankorCsoport USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".feladatTipus USING (feladatTipusId)
+ WHERE dt>='%s' AND dt<='%s' AND tipus NOT LIKE 'elmarad%%'
+ $feltetel $teremFeltetel
+ ORDER BY ".implode(',',$orderBy);
+ $v = array(_SHOW_DAYS_FROM, _SHOW_DAYS_TO);
+ $r = db_query($q, array('fv' => 'getHaladasi', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if ($r===false) {
+ db_close($lr);
+ return false;
+ }
+ foreach ($r as $i => $sor) {
+ // ha nincs a tankorok kozott a tankorId, akkor le kell kérdezni az adatait
+ if (!in_array($sor['tankorId'],$tankorIds)) {
+ $T = getTankorById($sor['tankorId'], __TANEV);
+ $tankorIds[] = $sor['tankorId'];
+ $tankorAdat[$sor['tankorId']] = $T[0];
+ $Tankorok[$i]['tanar'] = getTankorTanaraiByInterval($sor['tankorId'], array('tanev' => __TANEV, 'tolDt' => _SHOW_DAYS_FROM, 'igDt' => _SHOW_DAYS_TO, 'result' => 'nevsor'));
+ }
+ $sor['kiCn'] = getTanarNevById($sor['ki'], $lr);
+ $sor['tankorNev'] = $tankorAdat[$sor['tankorId']]['tankorNev'];
+ $sor['tankorTipusId'] = $tankorAdat[$sor['tankorId']]['tankorTipusId'];
+ $sor['oraszam'] = getOraszamByOraId($sor['oraId'], $lr);
+ $sor['tanar'] = $tankorAdat[$sor['tankorId']]['tanar'];
+ // Az óracsoportokat is!!!
+ if (isset($sor['csoportId']) && $tanarId != '') { // Csak tanár nézet esetén lehet váltani!!!
+ if (!is_array($tankorAdat[$sor['tankorId']]['csoport'])) {
+ // Csoport adatok lekérdezése
+ // Ha minden oldalon le akarjuk kérdezi a csoportokat, akkor valahogy így...
+ // if ($sor['kit'] == '') $tanarId = $sor['ki'];
+ // else $tanarId = $sor['kit'];
+ $q = "SELECT DISTINCT tankorCsoport.tankorId AS tankorId, tankorNev
+ FROM tankorCsoport
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTanar USING (tankorId)
+ WHERE tanarId=%u AND csoportId=%u
+ AND beDt<='"._SHOW_DAYS_TO."' AND (kiDt IS NULL OR '"._SHOW_DAYS_FROM."'<=kiDt)
+ AND tanev=" . __TANEV;
+ $v = array($tanarId, $sor['csoportId']);
+ $r_cs = db_query($q, array('fv' => 'getHaladasi/csoport', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if ($r_cs===false) { //!!!! nem jó simán a tagadás!
+ db_close($lr);
+ return false;
+ }
+ foreach ($r_cs as $key => $val) {
+ $tankorAdat[$sor['tankorId']]['csoport'][] = $val;
+ }
+ }
+ $sor['csoport'] = $tankorAdat[$sor['tankorId']]['csoport'];
+ }
+ $ret[$sor['dt']][] = $sor;
+ }
+ // Nap információk lekérdezése
+ $q = "SELECT dt,tipus,megjegyzes,orarendiHet FROM nap
+ WHERE dt>='%s' AND dt<='%s' AND munkatervId IN (".implode(',', $munkatervIds).")";
+ $v = array(_SHOW_DAYS_FROM, _SHOW_DAYS_TO);
+ $ret['napok'] = db_query($q, array('fv' => 'getHaladasi', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'dt', 'values' => $v), $lr);
+ if (!$ret['napok']) {
+ db_close($lr);
+ return false;
+ }
+
+ // dolgozatok lekérdezése;
+ $ret['dolgozatok'] = getTankorDolgozatok($tankorIds,true,_SHOW_DAYS_FROM,_SHOW_DAYS_TO, $lr);
+ db_close($lr);
+ return $ret;
+ }
+
+ function haladasiTeremModositas($oraId,$teremId,$lr) {
+ if (!is_numeric($oraId) || !is_numeric($teremId)) return false;
+ $lr = $olr=='' ? db_connect('naplo', array('fv' => 'haladasiTeremModositas')):$olr;
+ $q = "UPDATE ora SET teremId=%u WHERE oraId=%u";
+ $v = array($teremId,$oraId);
+ $RESULT = db_query($q, array( 'fv' => 'haladasiTeremModositas','modul' => 'naplo', 'values' => $v), $lr);
+ if ($olr == '') db_close($lr);
+ return $RESULT;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/helyettesites.php b/mayor-orig/www/include/modules/naplo/haladasi/helyettesites.php
new file mode 100644
index 00000000..2fbbc4ac
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/helyettesites.php
@@ -0,0 +1,945 @@
+<?php
+
+ // Valójában nem feltétlen hiányzók, hanem azok akiknek módosult az órarendje...
+ function getHianyzok($dt = '', $olr = null) {
+
+ $dt = readVariable($dt, 'datetime', date('Y-m-d'));
+ $hianyzok = array();
+
+ $q = "SELECT kit, ki, eredet FROM ora
+ WHERE dt='%s' AND ((kit IS NOT NULL AND kit != '') OR (eredet='plusz' AND feladatTipusId IS NULL))
+ ORDER BY kit, ora";
+ $result = db_query($q, array('fv' => 'getHianyzok', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($dt)), $olr);
+
+ foreach ($result as $key => $sor) {
+ // Ha a kit nem üres, akkor az az eredeti tanár, különben a ki (plusz óránál lehet)
+ if ($sor['kit'] != '') {
+ if (!in_array($sor['kit'], $hianyzok)) $hianyzok[] = $sor['kit'];
+ } elseif ($sor['ki'] != '' && !in_array($sor['ki'], $hianyzok)) {
+ $hianyzok[] = $sor['ki'];
+ }
+ }
+
+ return $hianyzok;
+
+ }
+
+
+ function getHianyzoOrak($dt = '', $olr = '') {
+
+
+ if($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ // Kik érintettek az aktuális helyettesítésekben
+ $ORAK['helyettesites']['tanarIds'] = getHianyzok($dt, $lr);
+
+ // Az érintettek óráinak adatai, kivéve a kötött munkaidő plusz óráit, hiszen azok nem számítanak. Nem számítanak?
+ if (count($ORAK['helyettesites']['tanarIds']) > 0) {
+ $q = "SELECT DISTINCT
+ oraId, dt, ora, ki, kit, tankorId, teremId, leiras, tipus, eredet, tankorNev, targyId,feladatTipusId,munkaido
+ FROM ora
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".feladatTipus USING (feladatTipusId)
+ WHERE (
+ ki IN (".implode(',', array_fill(0, count($ORAK['helyettesites']['tanarIds']),'%u')).") OR
+ kit IN (".implode(',', array_fill(0, count($ORAK['helyettesites']['tanarIds']), '%u')).")
+ )
+ AND dt='%s'
+ AND (tanev=".__TANEV." OR feladatTipusId IS NOT NULL)
+ ORDER BY ora";
+ $v = mayor_array_join($ORAK['helyettesites']['tanarIds'], $ORAK['helyettesites']['tanarIds'], array($dt));
+ $result = db_query($q, array('fv' => 'getHianyzoOrak', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if (!$result) {
+ if($olr == '') $lr = db_close($lr);
+ return false;
+ }
+ foreach ($result as $key => $sor) {
+ if ($sor['kit'] != '') {
+ $ORAK['helyettesites'][$sor['kit']]['orak'][] = $sor;
+ }
+ if (in_array($sor['ki'], $ORAK['helyettesites']['tanarIds'])) {
+ $ORAK['helyettesites'][$sor['ki']]['orak'][] = $sor;
+ }
+ }
+ }
+
+ // Tanárnevek lekérése
+ $TANAR_NEVSOR = getTanarok(array('tanev' => __TANEV,'beDt'=>$dt,'kiDt'=>$dt), $lr);
+ for ($i = 0; $i < count($TANAR_NEVSOR); $i++) {
+ $ORAK['tanarok']['tanarIds'][] = $TANAR_NEVSOR[$i]['tanarId'];
+ $ORAK['tanarok'][$TANAR_NEVSOR[$i]['tanarId']] = array('tanarNev' => $TANAR_NEVSOR[$i]['tanarNev']);
+ }
+ // Az adott napon ki melyik órákban tanít, első, utolsó, db
+ $q = "SELECT ki, ora FROM ora
+ WHERE dt = '%s' AND ki != ''
+ ORDER BY ki, ora";
+ $r = db_query($q, array('fv' => 'getHianyzoOrak', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($dt)), $lr);
+ foreach ($r as $key => $val) {
+ $ki = $val['ki']; $ora = $val['ora'];
+ if (!is_array($ORAK['tanarok']['foglaltak'][$ora]) // gyűjtjük, hogy kik tanítanak az adott órában
+ || !in_array($ki, $ORAK['tanarok']['foglaltak'][$ora])
+ ) $ORAK['tanarok']['foglaltak'][$ora][] = $ki;
+ $ORAK['tanarok'][$ki]['orak'][$ora] = true;
+ $ORAK['tanarok'][$ki]['db']++;
+ if (
+ !isset($ORAK['tanarok'][$ki]['elso ora']) or
+ $ORAK['tanarok'][$ki]['elso ora'] > $ora
+ ) $ORAK['tanarok'][$ki]['elso ora'] = $ora;
+ if ($ORAK['tanarok'][$ki]['utolso ora'] < $ora) $ORAK['tanarok'][$ki]['utolso ora'] = $ora;
+ }
+
+ // Milyen tárgyat és mely osztályokban tanít az adott tanévben! (TANAR_NEVSOR tömbből válogassuk hozzá a tanáridket)
+ $q = "SELECT tanarId,targyId FROM ".__INTEZMENYDBNEV.".mkTanar
+ LEFT JOIN ".__INTEZMENYDBNEV.".targy USING (mkId)
+ WHERE mkTanar.tanarId IN (".implode(',', array_fill(0, count($ORAK['tanarok']['tanarIds']), '%u')).")";
+ $r = db_query($q, array('fv' => 'getHianyzoOrak', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $ORAK['tanarok']['tanarIds']), $lr);
+ if (count($r)>0) foreach ($r as $key => $val) {
+ $tanarId = $val['tanarId']; $targyId = $val['targyId'];
+ $ORAK['tanarok'][$tanarId]['targyak'][$targyId] = true;
+ }
+ // Egészítsük ki a képesítése szerint is! (2011, 2015)
+ $q = "SELECT tanarId,targyId FROM ".__INTEZMENYDBNEV.".tanarKepesites LEFT JOIN ".__INTEZMENYDBNEV.".kepesitesTargy USING (kepesitesId) ".
+ "WHERE tanarId IN (".implode(',', array_fill(0, count($ORAK['tanarok']['tanarIds']), '%u')).")";
+ $r = db_query($q, array('fv' => 'getHianyzoOrak', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $ORAK['tanarok']['tanarIds']), $lr);
+ if (count($r)>0) foreach ($r as $key => $val) {
+ $tanarId = $val['tanarId'];
+ $targyId = $val['targyId'];
+ $ORAK['tanarok'][$tanarId]['targyak'][$targyId] = true;
+ }
+
+ // Az összevonó/foglalt tanárok
+ for ($i = 0; $i < count($ORAK['helyettesites']['tanarIds']);$i++) {
+
+ $tanarId = $ORAK['helyettesites']['tanarIds'][$i];
+ $tanarOrak = $ORAK['helyettesites'][$tanarId]['orak'];
+
+ for ($j = 0; $j < count($tanarOrak); $j++) {
+
+ $ora = $tanarOrak[$j]['ora'];
+ $Foglaltak = $ORAK['tanarok']['foglaltak'][$ora];
+ // Ha a tanár szakos, akkor összevonhat.
+ // Itt most egyelőre annyit kérdezünk le, hogy ugyanabban az időben ki tanít
+ for ($f = 0; $f < count($Foglaltak); $f++) {
+ if ($Foglaltak[$f] != $tanarId) {
+ if ($ORAK['tanarok'][$Foglaltak[$f]]['targyak'][$tanarOrak[$j]['targyId']])
+ $ORAK['helyettesites'][$tanarId]['orak'][$j]['osszevono'][] = $Foglaltak[$f];
+ else
+ $ORAK['helyettesites'][$tanarId]['orak'][$j]['foglalt'][] = $Foglaltak[$f];
+ }
+ } // Adott óra öszzevonói/foglaltjai
+ } // Adott tanár órái
+ } // A helyettesítésben érintett tanárok
+ $q = "SELECT ki, ora FROM ora
+ WHERE dt = '%s' AND ki != '' AND feladatTipusId IS NOT NULL
+ ORDER BY ki, ora";
+ $r = db_query($q, array('fv' => 'getHianyzoOrak', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($dt)), $lr);
+ for ($i=0; $i<count($r); $i++) {
+ $ORAK['egyeb'][$r[$i]['ora']][]=$r[$i]['ki'];
+ }
+ $ORAK['termek'] = getTermek(array('result'=>'assoc'));
+
+ if($olr=='') $lr = db_close($lr);
+ return $ORAK;
+ }
+
+ function ujHianyzokFelvetele($ujHianyzok, $dt, $olr = '') {
+
+
+ if (count($ujHianyzok) > 0) {
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ $where = "ki IN (".implode(',', array_fill(0, count($ujHianyzok), '%u')).")";
+ $v = $ujHianyzok;
+
+ // Ha visszamenőleg állítunk elmaradtra egy órát, akkor kezelni kell a hozzá tartozó bejegyzéseket
+ if (strtotime($dt) < time()) {
+ // Az elmaradó órák id-inek lekérdezése
+ $q = "SELECT oraId FROM ora
+ WHERE dt='%s'
+ AND ki IN (".implode(',', array_fill(0, count($ujHianyzok), '%u')).")
+ AND (
+ tipus='normál' OR
+ tipus='helyettesítés' OR
+ tipus='felügyelet' OR
+ tipus='összevonás'
+ )";
+ $v = mayor_array_join(array($dt), $ujHianyzok);
+ $oraIds = db_query($q, array('fv' => 'ujHianyzokFelvetele', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v), $lr);
+
+ if (is_array($oraIds) && count($oraIds) > 0) { // Ha van elmaradt óra
+ $where_id = "oraId IN (".implode(',', array_fill(0, count($oraIds), '%u')).")";
+
+ // Az elmaradt órákhoz tartozó hiányztások, késések, felszerelés hiányok, egyenruha hiányok törlése!
+ $q = "SELECT hianyzasId FROM hianyzas WHERE oraId IN (".implode(',', array_fill(0, count($oraIds), '%u')).")";
+ $hIds = db_query($q, array('fv' => 'ujHianyzokFelvetele', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $oraIds), $lr);
+ if (count($hIds) > 0) {
+ logAction(
+ array(
+ 'tabla' => 'hianyzas',
+ 'szoveg'=> "hiányzó tanár - óraelmaradás: $where_id, hianyzasId IN (".implode(',', array_fill(0, count($hIds), '%u')).")",
+ 'values' => mayor_array_join($oraIds, $hIds)
+ ),
+ $lr
+ );
+ $q = "DELETE FROM hianyzas WHERE oraId IN (".implode(',', array_fill(0, count($oraIds), '%u')).")";
+ $r = db_query($q, array('fv' => 'ujHianyzokFelvetele', 'modul' => 'naplo', 'values' => $oraIds), $lr);
+ }
+ // Az elmaradt órákhoz rendelt jegyek hozzárendelésének törlése
+ $q = "UPDATE jegy SET oraId=NULL WHERE oraId IN (".implode(',', array_fill(0, count($oraIds), '%u')).")";
+ $r = db_query($q, array('fv' => 'ujHianyzokFelvetele', 'modul' => 'naplo', 'values' => $oraIds), $lr);
+ }
+ }
+
+ $v = mayor_array_join(array($dt), $ujHianyzok);
+ // Normál órái elmaradnak
+ $q = "UPDATE ora
+ SET kit=ki, ki=NULL, tipus='elmarad', modositasDt=NOW()
+ WHERE dt='%s'
+ AND tipus='normál'
+ AND ki IN (".implode(',', array_fill(0, count($ujHianyzok), '%u')).")";
+ $r = db_query($q, array('fv' => 'ujHianyzokFelvetele', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ // Helyettesített, felügyelt, összevont órái elmaradnak
+ $q = "UPDATE ora SET ki=NULL,tipus='elmarad', modositasDt=NOW()
+ WHERE dt='%s'
+ AND (
+ tipus='helyettesítés' OR
+ tipus='felügyelet' OR
+ tipus='összevonás'
+ )
+ AND ki IN (".implode(',', array_fill(0, count($ujHianyzok), '%u')).")";
+ $r = db_query($q, array('fv' => 'ujHianyzokFelvetele', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ // Elmaradnak-e a rögzített feladatai? ??????????????
+
+ if ($olr == '') db_close($lr);
+ }
+ }
+
+ function toroltHianyzokVisszaallitasa($toroltHianyzok, $dt, $olr='') {
+
+
+ if (count($toroltHianyzok) > 0) {
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ // Cserék visszaállítása
+ $q_cs = "SELECT oraId FROM ora WHERE tipus like '%%máskor'
+ AND (
+ ki IN (".implode(',', array_fill(0, count($toroltHianyzok), '%u')).")
+ OR kit IN (".implode(',', array_fill(0, count($toroltHianyzok), '%u')).")
+ ) AND dt = '%s'";
+ $v_cs = mayor_array_join($toroltHianyzok, $toroltHianyzok, array($dt));
+ $r_cs = db_query($q_cs, array('fv' => 'ujHianyzokFelvetele', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v_cs), $lr);
+ foreach ($r_cs as $key => $vissza_id) {
+ csereVisszaallitas($vissza_id, $lr);
+ }
+
+ // A nem hiáynzók helyettesített, összevont, elmaradt, felügyelt óráinak visszaállítása
+ // 2013. Itt vissza kell állítanunk munkaido-t 'lekötött'-re. Mi történik ugyanakkor, ha
+ // a visszaállított óra már nem fér bele... Ugye... Sajnos
+ $q_v = "UPDATE ora SET ki=kit, kit=NULL, tipus='normál', munkaido='lekötött', modositasDt=NOW()
+ WHERE tipus IN ('helyettesítés','felügyelet','összevonás','elmarad')
+ AND dt='%s' AND kit IN (".implode(',', array_fill(0, count($toroltHianyzok), '%u')).")";
+ $v_v = mayor_array_join(array($dt), $toroltHianyzok);
+ $r_v = db_query($q_v, array('fv' => 'toroltHianyzokVisszaallitasa', 'modul' => 'naplo', 'values' => $v_v), $lr);
+
+ if ($olr == '') db_close($lr);
+ }
+ }
+
+ function csereVisszaallitas($oraId, $olr = '') {
+
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ // A csere csereId-jének lekérdezése
+ $q = "SELECT DISTINCT csereId
+ FROM csereAlapOra LEFT JOIN cserePluszOra USING (csereId)
+ WHERE csereAlapOra.oraId=%u OR cserePluszOra.oraId=%u";
+ $v = array($oraId, $oraId);
+ $r = db_query($q, array('fv' => 'csereVisszaallitas', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v), $lr);
+ if (!$r) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+ if (($num = count($r)) != 1) {
+ $_SESSION['alert'][] = 'message:wrong_data:csereVisszaallitas:Nincs csere?:'.$num;
+ if ($olr == '') db_close($lr);
+ return false; // Lehet ilyen?
+ }
+ $csereId = $r[0];
+
+ // A cserében résztvevő órák id-jének lekérdezése
+ $q = "SELECT csereAlapOra.oraId AS alap, cserePluszOra.oraId AS plusz
+ FROM cserePluszOra LEFT JOIN csereAlapOra USING (csereId)
+ WHERE csereId=%u";
+ $r = db_query($q, array('fv' => 'csereVisszaallitas', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($csereId)), $lr);
+ if (!$r) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+ $Alap = $Plusz = array();
+ for ($i = 0; $i < count($r); $i++) {
+ $alap = $r[$i]['alap']; $plusz = $r[$i]['plusz'];
+ if (!in_array($alap, $Alap)) $Alap[] = $alap;
+ if (!in_array($plusz, $Plusz)) $Plusz[] = $plusz;
+ }
+
+ // az eredeti órák 'elmarad máskor'-ról 'elmarad'-ra állítása
+ $q = "UPDATE ora SET tipus='elmarad',modositasDt=NOW() WHERE oraId IN (".implode(',', array_fill(0, count($Alap), '%u')).")";
+ $r = db_query($q, array('fv' => 'csereVisszaallitas', 'modul' => 'naplo', 'values' => $Alap), $lr);
+ if (!$r) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // a csere-bejegyzés törlése
+ $q = "DELETE FROM csere WHERE csereId=%u";
+ $r = db_query($q, array('fv' => 'csereVisszaallitas', 'modul' => 'naplo', 'values' => array($csereId)), $lr);
+ if (!$r) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // Az órákhoz rendelt hiányzások és jegyhozzárendelések törlése (csak plusz lehet érintett!)
+ hianyzasEsJegyHozzarendelesTorles($Plusz, $lr);
+
+ // a plusz órák törlése
+ $q = "DELETE FROM ora WHERE oraId IN (".implode(',', array_fill(0, count($Plusz), '%u')).")";
+ $r = db_query($q, array('fv' => 'csereVisszaallitas', 'modul' => 'naplo', 'values' => $Plusz), $lr);
+ if (!$r) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ if ($olr == '') db_close($lr);
+ return true;
+
+ }
+
+
+ function cmp($a,$b) {
+ if ($a['súly'] == $b['súly']) return 0;
+ return ($a['súly'] > $b['súly']) ? -1 : 1;
+ }
+
+
+ function ujOra($ORA, $olr = null) {
+ // alapértelmezésben munkaido='lekötött'
+ if ($ORA['ki'] == '') $ORA['ki'] = 'NULL';
+ if ($ORA['kit'] == '') $ORA['kit'] = 'NULL';
+ if ($ORA['teremId'] == '') $ORA['teremId'] = 'NULL';
+ $q = "INSERT INTO ora (ki,kit,dt,ora,tankorId,teremId,leiras,tipus,eredet,modositasDt) VALUES (%s, %s, '%s', %u, %u, %s, '%s', '%s', '%s',NOW())";
+ $v = array($ORA['ki'], $ORA['kit'], $ORA['dt'], $ORA['ora'], $ORA['tankorId'], $ORA['teremId'], $ORA['leiras'], $ORA['tipus'], $ORA['eredet']);
+ return db_query($q, array('fv' => 'ujOra', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v), $olr);
+ }
+
+ function oraMozgatas($oraId, $dt, $ora, $olr = '') {
+
+
+ if ($olr == '') $lr = db_connect('naplo', array('fv' => 'oraMozgatas'));
+ else $lr = $olr;
+
+ $oraAdat = getOraAdatById($oraId, __TANEV, $lr);
+
+ if ($oraAdat['tipus'] == 'elmarad máskor') {
+ $_SESSION['alert'][] = 'message:wrong_data:oraMozgatas:már mozgatott óra:'.$oraId;
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ if (isset($oraAdat['kit']) && $oraAdat['kit'] != '') $tanarId = $oraAdat['kit'];
+ else $tanarId = $oraAdat['ki'];
+ $tankorId = $oraAdat['tankorId'];
+ $teremId = $oraAdat['teremId'];
+
+ checkNaplo($dt);
+
+ // A tanár nem foglalt-e az adott időpontban
+ if (!tanarLukasOrajaE($tanarId, $dt, $ora, $lr)) {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:'."mozgat/tanár ütközés/$dt:$ora";
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // diák ütközés
+ if (!tankorTagokLukasOrajaE($tankorId, $dt, $ora)) {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:'."mozgat/diák ütközés/$dt:$ora";
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // terem ellenőrzés
+ $Termek = getSzabadTermek(array('dt' => $dt, 'ora' => $ora), $lr);
+ for ($i = 0;($i < count($Termek) && $Termek[$i]['teremId'] != $teremId); $i++);
+ if ($i >= count($Termek)) {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:Foglalt terem:'.$teremId;
+ $teremUtkozes = true;
+ }
+
+ // érintett hiányzások, késések, felszerelés hiányok, egyenruha hiányok, jegyHozzárendelések törlése!
+ if (strtotime($dt) < time()) hianyzasEsJegyHozzarendelesTorles($oraId, $lr);
+
+ if ($oraAdat['eredet'] == 'órarend') {
+
+ // ha órarendi óra, akkor elmarad máskor - plusz óra felvétel
+ if (isset($oraAdat['kit']) && $oraAdat['kit'] != '') {
+ // kit nem üres, ki törölhető
+ $q = "UPDATE ora SET tipus='elmarad máskor',ki=NULL,modositasDt=NOW() WHERE oraId=%u";
+ $oraAdat['ki'] = $tanarId;
+ $oraAdat['kit'] = '';
+ } else {
+ // normál óra, akkor a ki --> kit...
+ $q = "UPDATE ora SET tipus='elmarad máskor',kit=ki,ki=NULL,modositasDt=NOW() WHERE oraId=%u";
+ }
+ $r = db_query($q, array('fv' => 'oraMozgatas', 'modul' => 'naplo', 'values' => array($oraAdat['oraId'])), $lr);
+ if (!$r) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // A felveendő plusz óra
+ $oraAdat['tipus']='normál máskor';
+ $oraAdat['eredet']='plusz';
+ $oraAdat['dt'] = $dt;
+ $oraAdat['ora'] = $ora;
+ if ($teremUtkozes) $oraAdat['teremId'] = 'NULL';
+
+ if ($pluszId = ujOra($oraAdat, $lr)) {
+
+ // órarendi óra mozgatásánál a csere táblába is fel kell venni...
+ $error = '';
+ db_start_trans($lr);
+
+ $q = "INSERT INTO csere VALUES ('')";
+ $csereId = db_query($q, array('fv' => 'oraMozgatas', 'modul' => 'naplo', 'result' => 'insert', 'rollback' => true), $lr);
+ if (!$csereId) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "INSERT INTO csereAlapOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraMozgatas', 'modul' => 'naplo', 'values' => array($csereId, $oraId), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "INSERT INTO cserePluszOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraMozgatas', 'modul' => 'naplo', 'values' => array($csereId, $pluszId), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ db_commit($lr);
+
+ }
+ } else {
+
+ // plusz óra egyszerűen módosítandó...
+ if ($teremUtkozes) $q = "UPDATE ora SET tipus='normál máskor',ki=%u, kit=NULL, dt='%s', ora='%u', teremId=NULL, modositasDt=NOW() WHERE oraId=%u";
+ else $q = "UPDATE ora SET tipus='normál máskor',ki=%u, kit=NULL, dt='%s', ora='%u', modositasDt=NOW() WHERE oraId=%u";
+ $v = array($tanarId, $dt, $ora, $oraId);
+ $r = db_query($q, array('fv' => 'oraMozgatas', 'modul' => 'naplo', 'values' => $v), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ } // órarendi vagy plusz óra
+
+ if ($olr == '') db_close($lr);
+ return true;
+
+ }
+
+ function getCsereOraiByOraId($oraId) {
+
+
+ $lr = db_connect('naplo', array('fv' => 'getCsereOraiByOraId'));
+
+ $q = "SELECT DISTINCT csereId FROM csereAlapOra LEFT JOIN cserePluszOra USING (csereId)
+ WHERE csereAlapOra.oraId=%u OR cserePluszOra.oraId=%u";
+ $v = array($oraId, $oraId);
+ $arrayCsereId = db_query($q , array('fv' => 'getCsereOraiByOraId', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v), $lr);
+ if (!is_array($arrayCsereId) || ($num = count($arrayCsereId)) != 1) {
+ $_SESSION['alert'][] = 'message:wrong_data:getCsereOraiByOraId:Nincs csere?:'.$num.'/'.$oraId;
+ db_close($lr); return false;
+ }
+ $csereId = $arrayCsereId[0];
+
+ $q = "SELECT DISTINCT oraId, dt, ora, ki, kit, tankorId, tipus, eredet, tankorNev
+ FROM csereAlapOra LEFT JOIN ora USING (oraId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE csereId=%u AND tanev=".__TANEV." ORDER BY dt, ora";
+ $ret['alap'] = db_query($q, array(
+ 'fv' => 'getCsereOraiByOraId', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => array($csereId)
+ ), $lr);
+
+ $q = "SELECT DISTINCT oraId, dt, ora, ki, kit, tankorId, tipus, eredet, tankorNev
+ FROM cserePluszOra LEFT JOIN ora USING (oraId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE csereId=%u AND tanev=".__TANEV." ORDER BY dt, ora";
+ $ret['plusz'] = db_query($q, array(
+ 'fv' => 'getCsereOraiByOraId', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => array($csereId)
+ ), $lr);
+
+ db_close($lr);
+ return $ret;
+
+ }
+
+ function oraCsere($oraId1, $oraId2, $olr = '') {
+
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ $csereOraAdat1 = $oraAdat1 = getOraAdatById($oraId1, __TANEV, $lr);
+ $csereOraAdat2 = $oraAdat2 = getOraAdatById($oraId2, __TANEV, $lr);
+
+ if ($oraAdat1['tipus'] == 'elmarad máskor' || $oraAdat2['tipus'] == 'elmarad máskor') {
+ $_SESSION['alert'][] = 'message:wrong_data:oraCsere:már mozgatott óra:'.$oraId1.'/'.$oraId2;
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ if (isset($oraAdat1['kit']) && $oraAdat1['kit'] != '') $tanarId1 = $oraAdat1['kit'];
+ else $tanarId1 = $oraAdat1['ki'];
+
+ if (isset($oraAdat2['kit']) && $oraAdat2['kit'] != '') $tanarId2 = $oraAdat2['kit'];
+ else $tanarId2 = $oraAdat2['ki'];
+
+ if ($tanarId1 != $tanarId2) {
+ // Ha nem saját magával cserél, akkor a tanár nem foglalt-e az adott időpontban
+ if (!tanarLukasOrajaE($tanarId1, $oraAdat2['dt'], $oraAdat2['ora'], $lr)) {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:'."oraCsere/tanár ütközés #1 (".$oraId1.'):'.$oraAdat2['dt'].':'.$oraAdat2['ora'];
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+ if (!tanarLukasOrajaE($tanarId2, $oraAdat1['dt'], $oraAdat1['ora'], $lr)) {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:'."oraCsere/tanár ütközés #2 (".$oraId2.'):'.$oraAdat1['dt'].':'.$oraAdat1['ora'];
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+ }
+
+ // diák ütközés
+ if (!tankorTagokLukasOrajaE($oraAdat1['tankorId'], $oraAdat2['dt'], $oraAdat2['ora'], $oraAdat2['tankorId'])) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+ if (!tankorTagokLukasOrajaE($oraAdat2['tankorId'], $oraAdat1['dt'], $oraAdat1['ora'], $oraAdat1['tankorId'])) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // terem ellenőrzés nincs: Termeket nem cserélünk!!
+
+ // érintett hiányzások, késések, felszerelés hiányok, egyenruha hiányok, jegyHozzárendelések törlése!
+ if (strtotime($oraAdat1['dt']) < time()) hianyzasEsJegyHozzarendelesTorles($oraId1, $lr);
+ if (strtotime($oraAdat2['dt']) < time()) hianyzasEsJegyHozzarendelesTorles($oraId2, $lr);
+
+ // 1. óra mozgatása
+ if ($oraAdat1['eredet'] == 'órarend') {
+
+ $q = "UPDATE ora SET tipus='elmarad máskor', kit=%u, ki=NULL, modositasDt=NOW() WHERE oraId=%u";
+ if (!db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($tanarId1, $oraAdat1['oraId'])), $lr)) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // A felveendő plusz óra
+ $csereOraAdat1['ki'] = $tanarId1;
+ $csereOraAdat1['kit'] = 'NULL';
+ $csereOraAdat1['tipus']='normál máskor';
+ $csereOraAdat1['eredet']='plusz';
+ $csereOraAdat1['dt'] = $oraAdat2['dt'];
+ $csereOraAdat1['ora'] = $oraAdat2['ora'];
+ $csereOraAdat1['teremId'] = $oraAdat2['teremId'];
+
+ $pluszId1 = ujOra($csereOraAdat1, $lr);
+
+ // A csere táblába bejegyezzük a mozgatást
+ if ($pluszId1) {
+
+ db_start_trans($lr);
+
+ $q = "INSERT INTO csere VALUES ('')";
+ $csereId1 = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'result' => 'insert', 'rollback' => true), $lr);
+ if (!$csereId1) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "INSERT INTO csereAlapOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId1, $oraId1), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "INSERT INTO cserePluszOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId1, $pluszId1), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ db_commit($lr);
+ }
+
+ } else {
+
+ // plusz óra egyszerűen módosítandó...
+ $q = "UPDATE ora SET tipus='normál máskor', ki=%u, kit=NULL, dt='%s', ora=%u, teremId=%u, modositasDt=NOW() WHERE oraId=%u";
+ $r = db_query($q, array(
+ 'fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($tanarId1, $oraAdat2['dt'], $oraAdat2['ora'], $oraAdat2['teremId'], $oraId1)
+ ), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ // A plusz óra beletartozik-e valamelyik cserébe (elvileg csak egybe tartozhat)
+ $q = "SELECT csereId FROM cserePluszOra WHERE oraId=%u";
+ $csereId1 = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'result' => 'value', 'values' => array($oraId1)), $lr);
+
+ } // 1. óra: órarendi vagy plusz óra
+
+ // 2. óra mozgatsa
+ if ($oraAdat2['eredet'] == 'órarend') {
+
+ // ha órarendi óra, akkor elmarad máskor - plusz óra felvétel
+ $q = "UPDATE ora SET tipus='elmarad máskor', kit=%u, ki=NULL, modositasDt=NOW() WHERE oraId=%u";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($tanarId2, $oraAdat2['oraId'])), $lr);
+ if (!r) { if ($olr == '') db_close($lr); return false; }
+
+ // A felveendő plusz óra
+ $csereOraAdat2['ki'] = $tanarId2;
+ $csereOraAdat2['kit'] = 'NULL';
+ $csereOraAdat2['tipus']='normál máskor';
+ $csereOraAdat2['eredet']='plusz';
+ $csereOraAdat2['dt'] = $oraAdat1['dt'];
+ $csereOraAdat2['ora'] = $oraAdat1['ora'];
+ $csereOraAdat2['teremId'] = $oraAdat1['teremId'];
+
+ $pluszId2 = ujOra($csereOraAdat2, $lr);
+ // A csere táblába bejegyezzük a mozgatást
+ if ($pluszId2) {
+
+ db_start_trans($lr);
+
+ $q = "INSERT INTO csere VALUES ('')";
+ $csereId2 = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'result' => 'insert', 'rollback' => true), $lr);
+ if (!$csereId2) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "INSERT INTO csereAlapOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId2, $oraId2), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "INSERT INTO cserePluszOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId2, $pluszId2), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ db_commit($lr);
+ }
+
+ } else {
+
+ // plusz óra egyszerűen módosítandó...
+ $q = "UPDATE ora SET tipus='normál máskor', ki=%u , kit=NULL, dt='%s', ora=%u, teremId=%u, modositasDt=NOW() WHERE oraId=%u";
+ $r = db_query($q, array(
+ 'fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($tanarId2, $oraAdat1['dt'], $oraAdat1['ora'], $oraAdat1['teremId'], $oraId2)
+ ), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ // A plusz óra beletartozik-e valamelyik cserébe
+ $q = "SELECT csereId FROM cserePluszOra WHERE oraId=%u";
+ $csereId2 = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'result' => 'value', 'values' => array($oraId2)), $lr);
+
+ } // 2. óra: órarendi vagy plusz óra
+
+ // Egy cserévé tesszük...
+
+ if (isset($csereId1) && isset($csereId2) && $csereId1 != $csereId2) {
+
+ db_start_trans($lr);
+
+ // A cserélt órák két különböző cserébe tartoznak --> egyesítjük a két cserét
+ $q = "UPDATE csereAlapOra SET csereId=%u WHERE csereId=%u";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId1, $csereId2), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "UPDATE cserePluszOra SET csereId=%u WHERE csereId=%u";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId1, $csereId2), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ $q = "DELETE FROM csere WHERE csereId=%u";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId2), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ db_commit($lr);
+
+ } elseif (isset($csereId1) && !isset($csereId2)) {
+
+ // Csak az első óra van cserében --> a másodikat is (ami plusz óra) bele kell rakni
+ $q = "INSERT INTO cserePluszOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId1, $oraId2), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ } elseif (!isset($csereId1) && isset($csereId2)) {
+ // Csak a második óra van cserében --> az elsőt is (ami plusz óra) bele kell rakni
+ $q = "INSERT INTO cserePluszOra (csereId, oraId) VALUES (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($csereId2, $oraId1), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ } elseif (!isset($csereId1) && !isset($csereId2)) {
+ // Egyik sincs cserében --> Azaz két plusz óra --> nem vesszük fel őket cserének
+ // Ezért ez nem is csere --> a típusok nem normál máskor, hanem normál
+ $q = "UPDATE ora SET tipus='normál', modositasDt=NOW() WHERE oraId IN (%u, %u)";
+ $r = db_query($q, array('fv' => 'oraCsere', 'modul' => 'naplo', 'values' => array($oraId1, $oraId2), 'rollback' => true), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ }
+
+ if ($olr == '') db_close($lr);
+ return true;
+
+ }
+
+ function tanarTankortTanithatE($tanarId, $tankorId, $olr = '') {
+
+
+ if ($olr != '') $lr = $olr;
+ else $lr = db_connect('naplo');
+
+ // Beletartozik-e a megadott tanár a tankör munkaközösségébe?
+ $q = "SELECT COUNT(tanarId)
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".targy USING (targyId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".mkTanar USING (mkId)
+ WHERE tankorId=%u AND tanarId=%u";
+ $num = db_query($q, array(
+ 'fv' => 'tanarTankortTanithatE', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($tankorId, $tanarId)
+ ));
+ if ($num != 1) $_SESSION['alert'][] = 'message:wrong_data:keziBeallitas/tanarTankortTanithatE:Nem szakos:(tanarId/tankorId) - '.$tanarId.'/'.$tankorId;
+
+ if ($olr == '') db_close($lr);
+ return ($num == 1);
+
+ }
+
+
+ function keziBeallitas($oraId, $ki, $tipus, $teremId) {
+
+ global $dt;
+
+ $lr = db_connect('naplo', array('fv' => 'keziBeallitas'));
+
+ $oraAdat = getOraAdatById($oraId, __TANEV, $lr);
+ $dt = $oraAdat['dt'];
+ if ($ki != $oraAdat['ki'] || $tipus != $oraAdat['tipus'] || $teremId != $oraAdat['teremId']) {
+ $ok = true;
+ // új tanár, vagy típus - ütközés ellenőrzése
+ if ($ki != $oraAdat['ki'] || $tipus != $oraAdat['tipus']) {
+ $q = "SELECT COUNT(*) FROM ora
+ WHERE dt='%s' AND ora=%u AND oraId!=%u AND ki=%u AND tipus NOT LIKE 'elmarad%%'";
+ $_db = db_query($q, array(
+ 'fv' => 'keziBeallitas', 'modul' => 'naplo', 'result' => 'value', 'values' => array($oraAdat['dt'], $oraAdat['ora'], $oraId, $ki)
+ ), $lr);
+ if ($_db == 0) {
+ if ($tipus == 'összevonás') {
+ $_SESSION['alert'][] = 'message:wrong_data:keziBeallitas:Egy órát nem lehet összevonni';
+ $ok = false;
+ } elseif ($tipus == 'helyettesítés') {
+ // Beletartozik-e a megadott tanár a tankör munkaközösségébe?
+ $ok = tanarTankortTanithatE($ki, $oraAdat['tankorId'], $lr);
+ }
+ } else {
+ if ($tipus != 'összevonás') {
+ $_SESSION['alert'][] = "message:haladasi_utkozes:keziBeallitas:Már van órája!:$ki";
+ $ok = false;
+ } else {
+ // Beletartozik-e a megadott tanár a tankör munkaközösségébe?
+ $ok = tanarTankortTanithatE($ki, $oraAdat['tankorId'], $lr);
+ }
+ }
+ }
+ // Terem változtatás - szabad-e a terem? vagy nincs megadva
+ if ($teremId != $oraAdat['teremId'] && $teremId!='NULL') {
+ // Szabad-e a terem? - a saját maga által használt terem nem foglalt! (összevonáshoz így kell)
+ $Termek = getSzabadTermek(array('dt' => $OraAdat['dt'], 'ora' => $oraAdat['ora'], 'ki' => $ki), $lr);
+ for ($i = 0;($i < count($Termek) && $Termek[$i]['teremId'] != $teremId); $i++);
+ if ($i >= count($Termek)) {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:keziBeallitas:Foglalt terem:'.$teremId;
+ $ok = false;
+ }
+ }
+ // Módosítás
+ if ($ok && $tipus != 'elmarad') {
+ if (substr($oraAdat['tipus'], 0, 7) == 'normál') {
+ if ($tipus == $oraAdat['tipus'] || $ki == $oraAdat['ki']) {
+ // Vagy mindkettő változik, vagy egyik se
+ $q = "UPDATE ora SET teremId=%u, modositasDt=NOW() WHERE oraId=%u";
+ $v = array($teremId, $oraId);
+ } else { // ki --> kit (csak helyettesítés, felügyelet, vagy összevonás lehet az új típus!!
+ $q = "UPDATE ora SET kit=ki, ki=%u, tipus='%s', teremId=%u, modositasDt=NOW() WHERE oraId=%u";
+ $v = array($ki, $tipus, $teremId, $oraId);
+ }
+ } else { // kit nem változik
+ $q = "UPDATE ora SET ki=%u, tipus='%s', teremId=%u, modositasDt=NOW() WHERE oraId=%u";
+ $v = array($ki, $tipus, $teremId, $oraId);
+ }
+ $r = db_query($q, array('fv' => 'keziBeallitas', 'modul' => 'naplo', 'values' => $v), $lr);
+ if ($r) $_SESSION['alert'][] = 'info:change_success:keziBeallitas';
+ } else {
+ $_SESSION['alert'][] = 'info:do_nothing:keziBeallitas:Nem történt módosítás';
+ }
+ }
+
+ db_close($lr);
+
+ }
+
+ function ujHelyettes2($oraAdat, $ki, $tipus, $olr = null) {
+ $oraId = $oraAdat['oraId'];
+ $dt = $oraAdat['dt'];
+ if (is_null($ki) || $ki!=0) {
+
+ // a helyettesített óra milyen munkaidőbe számolódik vajon?
+ // 1. összevonás = ??? (ezt nem vesszük figyelembe, ezért tökmindegy)
+ // 2. felügyelet = ez bizony egyértelműen a fennmaradó
+ // 3. helyettesítés = lekötött HA (26-on belül van az elmúlt 5 napos lekötött VAGY még a 28-on belül van, de érvényesek a feltételek 2-6-30)
+ // fennmaradó EGYÉBKÉNT.
+
+ // ez már le van kérdezve, de a tranzakció miatt sajnos újra kell:
+ $TERHELES = getOraTerhelesStatByTanarId(array('tanarId'=>array($ki),'dt'=>$dt), $olr);
+
+ if ($tipus=='összevonás') $_munkaido = 'lekötött';
+ elseif ($tipus=='felügyelet') $_munkaido = 'fennmaradó';
+ elseif ($tipus=='helyettesítés') {
+ if ($TERHELES[$ki]['munkaido']['lekotott']>$TERHELES[$ki]['lekotott']['heti']) {
+ $_lekotheto = true;
+ } elseif ($TERHELES[$ki]['over']['napi']<2 && $TERHELES[$ki]['over']['heti']<6) {
+ $_lekotheto =false;
+ } else {
+ $_lekotheto=false;
+ $_SESSION['alert'][] = 'info:OVERTIME'; // időközben túllépte valahogy
+ }
+ if ($_lekotheto===true) $_munkaido = 'lekötött'; else $_munkaido='fennmaradó';
+ } else {
+ $_munkaido='lekötött'; //tipus???
+ }
+
+ if ($_munkaido=='')
+ $q = "UPDATE ora SET ki=%u,tipus='%s', modositasDt=NOW() WHERE oraId=%u";
+ else
+ $q = "UPDATE ora SET ki=%u,tipus='%s',munkaido='".$_munkaido."', modositasDt=NOW() WHERE oraId=%u";
+
+ return db_query($q, array('fv' => 'ujHelyettes', 'modul' => 'naplo', 'values' => array($ki, $tipus, $oraId)), $olr);
+ } else {
+ $_SESSION['alert'][] = '::Nem sikerült beállítani az új helyettest!:oraId-'.$oraId.':ki-'.$ki.':tipus-'.$tipus;
+ return false;
+ }
+
+ }
+
+ function eredetiOraVissza($oraId, $eredet, $olr = null) {
+
+
+ if ($olr == '') $lr = db_connect('naplo', array('fv' => 'eredetiOraVissza'));
+ else $lr = $olr;
+
+ if ($eredet == 'plusz') {
+ $q_csere = "SELECT COUNT(csereId) FROM cserePluszOra WHERE oraId=%u";
+ $num = db_query($q_csere, array('fv' => 'eredetiOraVissza', 'modul' => 'naplo', 'result' => 'value', 'values' => array($oraId)), $lr);
+ }
+ if (($eredet == 'órarend') || ($num == 0))
+ $q = "UPDATE ora SET ki=kit,kit=NULL,tipus='normál',munkaido='lekötött',modositasDt=NOW() WHERE oraId=%u";
+ else
+ $q = "UPDATE ora SET ki=kit,kit=NULL,tipus='normál máskor',munkaido='lekötött',modositasDt=NOW() WHERE oraId=%u";
+ $r = db_query($q, array('fv' => 'eredetiOraVissza', 'modul' => 'naplo', 'values' => array($oraId)), $lr);
+
+ if ($olr == '') db_close($lr);
+ }
+
+ function helyettesitesRogzites($T) {
+
+
+ $lr = db_connect('naplo');
+
+ for ($i = 0; $i < count($T); $i++) {
+
+ if ($T[$i] == '') continue; // ha eredeti maradt, ne módosítson!
+ $teremUtkozes = false;
+ list($ki, $oraId, $tipus) = explode('/',$T[$i]);
+ $oraAdat = getOraAdatById($oraId);
+ if ($tipus == 'normál') {
+ if ($oraAdat['kit'] != '') $ki = $oraAdat['kit'];
+ else $ki = $oraAdat['ki'];
+ }
+ $regi_tipus = $oraAdat['tipus'];
+
+ // A csere miatt elmaradt óra változásakor, illetve
+ // a csere miatt felvett óra visszaállításakor a cserét meg kell szüntetni
+ if (($regi_tipus == 'normál máskor' && $tipus == '') || ($regi_tipus == 'elmarad máskor')) {
+ csereVisszaallitas($oraId, $lr);
+ if (
+ $tipus == '' // csere/mozgatás visszaállítás
+ || ($regi_tipus == 'elmarad máskor' && $tipus == 'elmarad') // mozgatott óra elmarad
+ ) continue;
+ }
+
+ // Elmaradó óra esetén a hiányzások, késések, felszerelés hiányok, egyenruha hiányok, jegy hozzárendelések törlendők!
+ // Ezek bekerült az oraElmarad függvénybe
+ if ($tipus=='töröl' && $oraAdat['tipus']=='egyéb') { // az egyéb típusú óra gond nélkül törölhető, nincs hozzá semmi
+ oraElmarad($oraId, $lr); // használjuk ugyanazt a függvényt
+ } elseif (substr($tipus,0,7) == 'elmarad') {
+ oraElmarad($oraId, $lr);
+ } else {
+ // Ha egy órát "mégis" megtartunk, akkor ellenőrizni kell, hogy nem ütközik-e valamivel!! (esetleg felvett plusz órával, mozgatott órával)
+ // Tanár ellenőrzése
+ if (tanarLukasOrajaE($ki, $oraAdat['dt'], $oraAdat['ora'], $lr)) {
+ if ($tipus == 'összevonás') {
+ $_SESSION['alert'][] = 'message:wrong_data:helyettesitesRogzites:nincs mivel összevonni:'.$oraId;
+ continue;
+ }
+ } else {
+ if ($tipus != 'összevonás') {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:helyettesitesRogzites:'.$oraId;
+ continue;
+ }
+ }
+ if (substr($regi_tipus,0,7) == 'elmarad') {
+ // Tankör tagok ellenőrzése
+ if (getTankorJelenletKotelezoE($oraAdat['tankorId']) && !tankorTagokLukasOrajaE($oraAdat['tankorId'], $oraAdat['dt'], $oraAdat['ora'])) {
+ $_SESSION['alert'][] = 'message:wrong_data:A mégis megtartott óra ütközne!:oraId='.$oraId.', dt='.$oraAdat['dt'].', ora='.$oraAdat['ora'];
+ continue;
+ }
+ }
+
+ // A helyettesítés rögzítése
+ if (mb_substr($tipus,0,6,'UTF-8') == 'normál') {
+ if (mb_substr($regi_tipus,0,6,'UTF-8') != 'normál') eredetiOraVissza($oraId, $oraAdat['eredet'], $lr);
+ } else {
+ if (mb_substr($regi_tipus,0,6,'UTF-8') == 'normál') {
+ // óraelmaradás itt már nem lehet!
+ masTartja($oraId, $ki, $tipus, $lr);
+ } else {
+ // Ebbe NEM értjük bele a helyettesítés --> elmarad váltást
+ // de beleértjük az elmarad --> helyettesítés váltást
+ //ujHelyettes($oraId, $ki, $tipus, $lr);
+ ujHelyettes2($oraAdat, $ki, $tipus, $lr);
+ }
+ }
+
+ } // elmarad / nem marad el
+
+
+ // Ha összevonásról nem összevonásra állítunk, akkor kialakulhatott terem ütközés!
+ if (
+ $oraAdat['teremId'] != ''
+ && substr($tipus,0,7) != 'elmarad'
+ && ($regi_tipus == 'összevonás' || substr($regi_tipus,0,7) == 'elmarad')
+ ) {
+ $Termek = getSzabadTermek(array('dt' => $oraAdat['dt'], 'ora' => $oraAdat['ora'], 'ki' => $ki), $lr);
+ for ($j = 0; ($j < count($Termek) && $Termek[$j]['teremId'] != $oraAdat['teremId']); $j++);
+ if ($j >= count($Termek)) {
+ $_SESSION['alert'][] = 'message:haladasi_utkozes:hianyzasRogzites:a terem foglalt:'.$oraAdat['teremId'];
+ $q = "UPDATE ".__TANEVDBNEV.".ora SET teremId=NULL WHERE oraId=%u";
+ db_query($q, array('fv' => 'hianyzasRogzites', 'modul' => 'naplo', 'values' => array($oraId)), $lr);
+ }
+ }
+ } // for
+
+ db_close($lr);
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/oralatogatas.php b/mayor-orig/www/include/modules/naplo/haladasi/oralatogatas.php
new file mode 100644
index 00000000..4364fc36
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/oralatogatas.php
@@ -0,0 +1,30 @@
+<?php
+
+ function oralatogatasBeiras($ADAT) {
+
+ // óralátogatás felvétele/cseréje
+ $q = "REPLACE INTO oraLatogatas (oraId, megjegyzes) VALUES (%u, '%s')";
+ $v = array($ADAT['oraId'], $ADAT['megjegyzes']);
+ $oralatogatasId = db_query($q, array('fv' => 'oralatogatasBeiras', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v));
+
+ if ($oralatogatasId === false) return false;
+
+ // régi tanárhozzárendelések törlése
+ $q = "DELETE FROM oraLatogatasTanar WHERE oraLatogatasId=%u";
+ db_query($q, array('fv' => 'oralatogatasBeiras', 'modul' => 'naplo', 'values' => array($oralatogatasId)));
+
+ // új tanárhozzárendelések felvétele - ha van tanárhozzárendelés
+ if (is_array($ADAT['tanarIds']) && count($ADAT['tanarIds']) > 0) {
+ $q = "INSERT INTO oraLatogatasTanar (oraLatogatasId,tanarId) VALUES ".implode(',', array_fill(0, count($ADAT['tanarIds']), "($oralatogatasId, %u)"));
+ return db_query($q, array('fv' => 'oralatogatasBeiras', 'modul' => 'naplo', 'values' => $ADAT['tanarIds']));
+ }
+ return true;
+ }
+
+ function oralatogatasTorles($oraId) {
+ $q = "DELETE FROM oraLatogatas WHERE oraId=%u";
+ $v = array($oraId);
+ return db_query($q, array('fv' => 'oralatogatasTorles', 'modul' => 'naplo', 'result' => '', 'values' => $v));
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/osszevonas.php b/mayor-orig/www/include/modules/naplo/haladasi/osszevonas.php
new file mode 100644
index 00000000..af80ce98
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/osszevonas.php
@@ -0,0 +1,38 @@
+<?php
+
+ function getOrakByDiakIdk($DIAKIDK, $SET = array('dt' => null, 'ora' => null)) {
+
+ if (!is_array($DIAKIDK) || count($DIAKIDK) == 0) return false;
+
+ $dt = readVariable($SET['dt'], 'datetime', date('Y-m-d'));
+ $ora = readVariable($SET['ora'], 'numeric unsigned', 1);
+
+ $q = "SELECT DISTINCT a.tankorId, a.oraId FROM ora AS a LEFT JOIN ".__INTEZMENYDBNEV.".tankorDiak AS b
+ ON (a.tankorId = b.tankorId AND b.beDt<='%s' AND ('%s'<=b.kiDt OR b.kiDt IS NULL))
+ WHERE b.diakId IN (".implode(',', array_fill(0, count($DIAKIDK), '%u')).") AND a.dt='%s' AND a.ora=%u
+ GROUP BY b.diakId HAVING COUNT(a.oraId)>0";
+ $v = mayor_array_join(array($dt, $dt), $DIAKIDK, array($dt, $ora));
+ return db_query($q, array('fv' => 'getOrakByDiakIdk', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+ function oraFelvetele($dt, $ora, $tanarId, $tankorId, $teremId = 'NULL', $tipus = 'normál', $eredet = 'plusz') {
+
+ // ------------------------------------
+ // ITT NEM ellenőrizzük a tanár terhelését!
+ // ------------------------------------
+
+ if (!isset($teremId) || $teremId == '' || intval($teremId) == 0) {
+ $q = "INSERT INTO ora (dt,ora,ki,tankorId,teremId,tipus,eredet)
+ VALUES ('%s', %u, %u, %u, NULL, '%s', '%s')";
+ $v = array($dt, $ora, $tanarId, $tankorId, $tipus, $eredet);
+ } else {
+ $q = "INSERT INTO ora (dt,ora,ki,tankorId,teremId,tipus,eredet)
+ VALUES ('%s', %u, %u, %u, %u, '%s', '%s')";
+ $v = array($dt, $ora, $tanarId, $tankorId, $teremId, $tipus, $eredet);
+ }
+ return db_query($q, array('fv' => 'oraFelvetele', 'modul' => 'naplo', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/pluszora.php b/mayor-orig/www/include/modules/naplo/haladasi/pluszora.php
new file mode 100644
index 00000000..0112181a
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/pluszora.php
@@ -0,0 +1,55 @@
+<?php
+
+ function oraFelvetele($dt, $ora, $tanarId, $tankorId, $teremId = 'NULL', $tipus = 'normál', $eredet = 'plusz', $kit = 'NULL') {
+
+ if (!isset($teremId) || $teremId == '') { $teremId = 'NULL'; $tStr = '%s'; }
+ else { $tStr = '%u'; }
+ if (!isset($kit) || $kit == '') { $kit = 'NULL'; $kStr = '%s'; }
+ else { $kStr = '%u'; }
+
+ // ------------------------------------
+ // ITT NEM ellenőrizzük a tanár terhelését!
+ // ------------------------------------
+ $q = "INSERT INTO ora (dt,ora,ki,kit,tankorId,teremId,tipus,eredet,modositasDt)
+ VALUES ('%s', %u, %u, $kStr, %u, $tStr, '%s', '%s', NOW())";
+ $v = array($dt, $ora, $tanarId, $kit, $tankorId, $teremId, $tipus, $eredet);
+ return db_query($q, array('fv' => 'oraFelvetele', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ }
+
+ function getSzabadTankorok($dt, $ora) {
+
+ // Összes tankör
+ $ret = $osszesTankorIds = getTankorByTanev($tanev = __TANEV, array('result' => 'idonly'));
+ // Az adott időpontban foglalt tankörök
+ $q = "SELECT tankorId FROM ora WHERE dt='%s' AND ora=%u AND tipus IN ('normál','normál máskor','helyettesítés','felügyelet','összevonás')";
+ $v = array($dt, $ora);
+ $tankorIds = db_query($q, array('fv' => 'getSzabadTankorok', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v));
+ if (is_array($tankorIds) && count($tankorIds) > 0) {
+ // A tankörök tagjai
+ $q = "SELECT DISTINCT diakId FROM ".__INTEZMENYDBNEV.".tankorDiak
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND (kiDt>='%s' OR kiDt is null) AND beDt<='%s' ORDER BY diakId";
+ $v = mayor_array_join($tankorIds, array($dt, $dt));
+ $diakIds = db_query($q, array('fv' => 'getSzabadTankorok', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v));
+ // A foglalt diákok tankörei
+ $foglaltTankorIds = getTankorIdsByDiakIds($diakIds, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt, 'felmentettekkel'=>false));
+ if (!is_array($foglaltTankorIds)) $foglaltTankorIds = $tankorIds;
+ $ret = array_diff($osszesTankorIds, $foglaltTankorIds);
+ }
+
+ /* és vegyük hozzá a szabadon felvehető tanköröket, hm? */
+ $pluszNemKotelezoTankorok = getTankorByTanev($tanev, array('result'=>'idonly','jelenlet'=>'nem kötelező' ));
+ $ret = mayor_array_join($ret,$pluszNemKotelezoTankorok);
+ if (is_array($ret) && count($ret)>0) {
+ $q = "SELECT DISTINCT tankor.tankorId,tankorNev
+ FROM ".__INTEZMENYDBNEV.".tankor LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE tanev=".__TANEV." AND tankorId IN (".implode(',', array_fill(0, count($ret), '%u')).") ORDER BY tankorNev";
+ return db_query($q, array('fv' => 'getSzabadTankorok', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $ret));
+ } else {
+ return $ret;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/specialis.php b/mayor-orig/www/include/modules/naplo/haladasi/specialis.php
new file mode 100644
index 00000000..8c78d49d
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/specialis.php
@@ -0,0 +1,167 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function napiOrakTorlese($dt, $tipus) {
+
+
+ $lr = db_connect('naplo', array('fv' => 'napiOrakTorlese'));
+
+ $q = "DELETE FROM ora WHERE dt='%s'";
+ $r = db_query($q, array('fv' => 'napiOrakTorlese', 'modul' => 'naplo', 'values' => array($dt)), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+
+ if ($tipus !== '') {
+ $q = "UPDATE nap SET tipus='%s' WHERE dt='%s'";
+ $r = db_query($q, array('fv' => 'napiOrakTorlese', 'modul' => 'naplo', 'values' => array($tipus, $dt)), $lr);
+ // ?? Mi van, ha szünetről tanítási nap-ra állítjuk? Marad a 0. órarendi hét? ??
+ }
+ db_close($lr);
+ return $r;
+
+ }
+
+ function orakBetoltese($dt, $orarendiHet) {
+
+
+ $lr = db_connect('naplo', array('fv' => 'orakBetoltese'));
+
+ // Ellenőrizzük, hogy van-e már betöltve óra az adott napra
+ $q = "SELECT COUNT(oraId) FROM ora WHERE dt='%s'";
+ $num = db_query($q, array('fv' => 'orakBetoltese', 'modul' => 'naplo', 'values' => array($dt), 'result'=>'value'), $lr);
+ if ($num === false) {
+ db_close($lr);
+ return false;
+ }
+ if ($num > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:orakBetoltese:van már betöltve óra az adott napon:'.$dt;
+ db_close($lr);
+ return false;
+ }
+
+ // Ha az órarendi órákat töltjük be, akkor a nap csak tanítási nap típusú lehet
+ $q = "UPDATE nap SET tipus='tanítási nap',orarendiHet=%u WHERE dt='%s'";
+ $r = db_query($q, array('fv' => 'orakBetoltese', 'modul' => 'naplo', 'values' => array($orarendiHet, $dt)), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+
+ // Órák betöltése
+ checkNaplo($dt, $lr);
+ db_close($lr);
+ return true;
+
+ }
+
+ function specialisNap($dt, $celOra, $het, $nap, $ora, $olr = null) {
+
+ if ($olr == '') $lr = db_connect('naplo', array('fv' => 'specialisNap'));
+ else $lr = $olr;
+ db_start_trans($lr);
+
+ // A (speciális) tanítási napokhoz rendelt osztályok
+ $q = "SELECT osztalyId FROM nap LEFT JOIN munkatervOsztaly USING (munkatervId) WHERE dt='%s'
+ AND tipus IN ('tanítási nap','speciális tanítási nap') AND osztalyId IS NOT NULL"; // null akkor lehet, ha nincs hozzárendelve egyetlen osztály sem egy munkatervhez...
+ $v = array($dt);
+ $osztalyIds = db_query($q, array('fv' => 'specialisNap/osztalyIds', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v), $lr);
+ if (!is_array($osztalyIds) || count($osztalyIds) == 0) {
+ db_rollback($lr, 'specialisNap/#1');
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // Érintett tankörök
+ $q = "SELECT DISTINCT tankorId FROM ".__INTEZMENYDBNEV.".tankorOsztaly WHERE osztalyId IN (".implode(',',$osztalyIds).")";
+ $tankorIds = db_query($q, array('fv'=>'specialisNap/tankorIds', 'modul'=>'naplo', 'result'=>'idonly'), $lr);
+ if (!is_array($tankorIds) || count($tankorIds) == 0) {
+ db_rollback($lr, 'specialisNap/#2');
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // Órák betöltése sávonként
+ $ok = true;
+ for ($i = 0; $i < count($celOra); $i++) {
+ if ($het[$i] != '' and $nap[$i] != '' and $ora[$i] != '') {
+
+ $napszam = date('w',strtotime($nap[$i]));
+ if ($napszam == 0) $napszam = 7;
+
+ $q = "INSERT INTO ora (dt,ora,ki,tankorId,teremId,tipus,eredet)
+ SELECT '%s', %u, orarendiOra.tanarId,orarendiOraTankor.tankorId,teremId,'normál','órarend'
+ FROM orarendiOra LEFT JOIN orarendiOraTankor USING (tanarId, osztalyJel, targyJel)
+ WHERE orarendiOraTankor.tankorId IS NOT NULL
+ AND tankorId IN (".implode(',', $tankorIds).")
+ AND het=%u
+ AND nap=%u
+ AND ora=%u
+ AND tolDt<='%s'
+ AND (igDt IS NULL OR igDt>='%s')";
+ $v = array($dt, $celOra[$i], $het[$i], $nap[$i], $ora[$i], $dt, $dt);
+ $r = db_query($q, array('fv' => 'specialisNap', 'modul' => 'naplo', 'values' => $v), $lr);
+ if (!$r) $ok = false;
+
+ } // minden adat megvan
+ } // end for
+ if (!$ok) {
+ db_rollback($lr, 'specialisNap/#3');
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ // speciális tanítási nap-ra állítjuk a tanítási napokat
+ $q = "UPDATE nap SET tipus='speciális tanítási nap',orarendiHet=0 WHERE dt='%s' AND tipus='tanítási nap'";
+ $r = db_query($q, array('fv' => 'specialisNap', 'modul' => 'naplo', 'values' => array($dt)), $lr);
+ if (!$r) {
+ db_rollback($lr, 'specialisNap/#4');
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ db_commit($lr);
+ if ($olr == '') db_close($lr);
+ return true;
+ }
+
+ function getSzabadOrak($dt) {
+
+ $q = "SELECT DISTINCT ora FROM ora
+ WHERE dt='%s' AND tipus NOT LIKE 'elmarad%%'";
+ $foglaltOrak = db_query($q, array('fv' => 'getSzabadOrak', 'modul' => 'naplo', 'result' => 'idonly', 'values' => array($dt)));
+ if (is_array($foglaltOrak)) {
+ $szabadOrak = array();
+ for ($i = getMinOra(); $i <= getMaxOra(); $i++) {
+ if (!in_array($i, $foglaltOrak)) $szabadOrak[] = $i;
+ }
+ }
+
+ return $szabadOrak;
+
+ }
+
+ function orakTorlese($dt, $Orak) {
+
+
+ $lr = db_connect('naplo', array('fv' => 'orakTorlese'));
+
+ $q = "DELETE FROM ora WHERE dt='%s' AND ora IN (".implode(',', array_fill(0, count($Orak), '%u')).")";
+ array_unshift($Orak, $dt);
+ $r = db_query($q, array('fv' => 'orakTorlese', 'modul' => 'naplo', 'values' => $Orak), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+
+ $q = "UPDATE nap SET tipus='speciális tanítási nap', orarendiHet=0 WHERE dt='%s'";
+ $r = db_query($q, array('fv' => 'orakTorlese', 'modul' => 'naplo', 'values' => array($dt)), $lr);
+ db_close($lr);
+ return $r;
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/stat.php b/mayor-orig/www/include/modules/naplo/haladasi/stat.php
new file mode 100644
index 00000000..45d1d9de
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/stat.php
@@ -0,0 +1,103 @@
+<?php
+
+/*
+ function munkatervTankor($tankorIds) {
+
+ $q = "SELECT DISTINCT munkatervId, tankorId FROM munkatervOsztaly LEFT JOIN ".__INTEZMENYDBNEV.".tankorOsztaly USING (osztalyId)
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ return db_query($q, array('fv' => 'munkatervTankor', 'modul'=>'naplo', 'result'=>'keyvalues','values'=>$tankorIds));
+ }
+
+ function tankorMunkaterv($tankorIds) {
+
+ $q = "SELECT DISTINCT tankorId, munkatervId FROM munkatervOsztaly LEFT JOIN ".__INTEZMENYDBNEV.".tankorOsztaly USING (osztalyId)
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") ORDER BY tankorId, munkatervId";
+ return db_query($q, array('fv' => 'tankorMunkaterv', 'modul'=>'naplo', 'result'=>'keyvalues','values'=>$tankorIds));
+ }
+*/
+ function getTankorStat($tankorIds, $dt = '') {
+
+ global $_TANEV;
+
+ if ($dt == '') $dt = date('Y-m-d');
+ $szDb = count($_TANEV['szemeszter']);
+ $ret = array();
+
+ // Van-e nem végzős tanuló az adott tankörökben --> a tankör végzős-e
+ $ret['vegzos'] = tankorokVegzosekE($tankorIds, __TANEV, array('tagokAlapjan' => true, 'tolDt' => null, 'igDt' => null));
+
+ // tervezett óraszámok lekérdezése
+ $q = "SELECT szemeszter, tankorId, tankorNev, oraszam FROM ".__INTEZMENYDBNEV.".tankorSzemeszter
+ WHERE tanev=".__TANEV." AND tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ ORDER BY tankorId, szemeszter";
+ $ret['tervezett'] = db_query($q, array(
+ 'fv' => 'getTankorStat', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $tankorIds
+ ));
+ foreach ($ret['tervezett'] as $tankorId => $tankorAdat) {
+ $ret['tanitasiHetekSzama'][$tankorId] = getTanitasiHetekSzama(array('tankorId'=>$tankorId,'vegzos'=>$ret['vegzos'][$tankorId]));
+ $oraszam = 0;
+ for ($i = 0; $i < count($tankorAdat); $i++) {
+ $oraszam += $tankorAdat[$i]['oraszam'];
+ }
+ $ret['tervezett'][$tankorId]['hetiOraszam'] = $oraszam / $szDb;
+ $ret['tervezett'][$tankorId]['evesOraszam'] = $oraszam / $szDb * $ret['tanitasiHetekSzama'][$tankorId];
+ }
+
+ // megtartott órák száma
+ if (defined('__ORASZAMOT_NOVELO_TIPUSOK')) {
+ $oraszamNoveloTipus = explode(',', __ORASZAMOT_NOVELO_TIPUSOK);
+ } else {
+ $_SESSION['alert'][] = 'info:missing_constant:__ORASZAMOT_NOVELO_TIPUSOK';
+ $oraszamNoveloTipus = array('normál', 'normál máskor', 'helyettesítés', 'összevonás');
+ }
+ $q = "SELECT tankorId, COUNT(oraId) AS oraSzam FROM ora
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND tipus IN ('".implode("','", array_fill(0, count($oraszamNoveloTipus), '%s'))."')
+ AND dt <= '%s' GROUP BY tankorId";
+ $v = mayor_array_join($tankorIds, $oraszamNoveloTipus, array($dt));
+ $ret['megtartott'] = db_query($q, array(
+ 'fv' => 'getTankorStat', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $v
+ ));
+
+ if (is_array($tankorIds) && count($tankorIds)>0) {
+
+ $q = "SELECT tankorId,COUNT(DISTINCT dt, ora) AS oraSzam
+ FROM (nap LEFT JOIN munkatervOsztaly USING (munkatervId))
+ LEFT JOIN (
+ orarendiOra
+ LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorOsztaly USING (tankorId)
+ )
+ ON (((DAYOFWEEK(dt)+5) MOD 7)+1 = orarendiOra.nap)
+ AND orarendiOra.het=nap.orarendiHet
+ AND orarendiOra.tolDt<=dt AND orarendiOra.igDt>=dt
+ AND munkatervOsztaly.osztalyId = tankorOsztaly.osztalyId
+ WHERE tanarId IS NOT NULL
+ AND tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND dt > '%s'
+ GROUP BY tankorId";
+ $v = mayor_array_join($tankorIds, array($dt));
+ $ret['becsult'] = db_query($q, array(
+ 'fv' => 'getTankorStat/becsült', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $v
+ ));
+
+ // beírt érdemjegyek száma
+ $q = "SELECT tankorId, COUNT(jegy) AS jegyDb FROM jegy WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND dt <= '%s' GROUP BY tankorId";
+ $v = $tankorIds; array_push($v, $dt);
+ $ret['jegyekSzama'] = db_query($q, array(
+ 'fv' => 'getTankorStat/jegyekSzama', 'modul' => 'naplo', 'result' => 'keyvaluepair', 'values' => $v
+ ));
+ // tankörlétszámok...
+ array_push($v, $dt);
+ $q = "SELECT tankorId, COUNT(*) AS db FROM tankorDiak WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR '%s' <= kiDt) GROUP BY tankorId";
+ $ret['letszam'] = db_query($q, array(
+ 'fv' => 'getTankorStat/letszam', 'modul' => 'naplo_intezmeny', 'result' => 'keyvaluepair', 'values' => $v
+ ));
+ }
+
+ return $ret;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/haladasi/teremModositas.php b/mayor-orig/www/include/modules/naplo/haladasi/teremModositas.php
new file mode 100644
index 00000000..1f104649
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/haladasi/teremModositas.php
@@ -0,0 +1,30 @@
+<?php
+
+ /* 2010 GPL */
+ function getOraIdByPattern($P) {
+
+ $v = array($P['dt'], $P['ora'], $P['ki'], $P['kit'], $P['tankorId'], $P['teremId']);
+ $q = "SELECT oraId FROM ora WHERE dt='%s' AND ora=%u and (ki=%u or kit=%u or tankorId=%u or teremId=%u) AND tipus!='elmarad' AND tipus!='elmarad máskor'";
+ $r = db_query($q, array( 'fv' => 'getOraIdByPattern', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v, 'debug'=>false ));
+ if (count($r)!==1)
+ return false;
+ else
+ return $r[0]['oraId'];
+ return false;
+ }
+
+ function checkHaladasiSzabadTerem($dt,$ora,$teremId,$lr) {
+ $v = array($dt,$ora,$teremId);
+ $q = "SELECT count(*) as db FROM `ora` WHERE `dt`='%s' AND `ora`=%u AND `teremId`=%u AND tipus!='elmarad' AND tipus!='elmarad máskor'";
+ return (db_query($q, array( 'fv' => 'checkHaladasiSzabadTerem', 'modul' => 'naplo', 'result'=>'value','values' => $v), $lr) === "0");
+ }
+
+ function haladasiTeremModositas($oraId,$teremId,$lr) {
+ if (!is_numeric($oraId) || !is_numeric($teremId)) return false;
+ $v = array($teremId,$oraId);
+ $q = "UPDATE ora SET teremId=%u WHERE oraId=%u";
+ return db_query($q, array( 'fv' => 'haladasiTeremModositas',
+ 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/hianyzas/diak.php b/mayor-orig/www/include/modules/naplo/hianyzas/diak.php
new file mode 100644
index 00000000..a98a0ef0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/hianyzas/diak.php
@@ -0,0 +1,119 @@
+<?php
+
+ function napiHianyzasBeiras($dt,$diakId,$SET=array('tipus'=>'hiányzás','statusz'=>'igazolatlan', 'igazolas'=>'')) {
+ global $napiMinOra, $napiMaxOra;
+
+ $q = "SELECT * FROM hianyzas WHERE diakId=%u AND dt='%s'";
+ $RES = db_query($q, array('fv' => 'napiHianyzasBeiras', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($diakId, $dt)));
+
+ $T = $diakTANKOROK = getTankorByDiakId($diakId, __TANEV, array('csakId' => true, 'tolDt' => $dt, 'igDt' => $dt, 'result'=>'csakid'));
+
+ $tmpOrak = getOrak($T,array('tolDt'=>$dt,'igDt'=>$dt,'csakId'=>false));
+ $diakORAK = $tmpOrak['orak'];
+
+ if (!is_array($diakORAK)) {
+ $_SESSION['alert'][] = ':nincs_oraja:';
+ return false;
+ }
+ foreach ($diakORAK[$dt] as $_ora=>$ORA) {
+ $_diakFmTankorIdk = getTankorDiakFelmentes($diakId, __TANEV, array('csakId' => true, 'tolDt' => $dt, 'igDt' => $dt, 'nap'=>date('w',strtotime($dt)), 'ora'=>$_ora, 'result'=>'csakid'));
+ foreach($ORA as $_tankorId => $_OA) {
+ if ( in_array($_tankorId,$_diakFmTankorIdk) === true ) {
+ continue;
+ }
+ $diakORAIDK[] = $_OA['oraId'];
+ $ORAK[$_OA['oraId']] = $_OA;
+ }
+ }
+
+ $MODOSITANDO = $eddigORAIDK = array();
+ $error = false;
+ for ($i=0; $i<count($RES); $i++) {
+ $_tipus = $RES[$i]['tipus'];
+ $_statusz = $RES[$i]['statusz'];
+ $_hid = $RES[$i]['hianyzasId'];
+ $_oraId = $RES[$i]['oraId'];
+ if ($SET['tipus']=='hiányzás' && in_array($_tipus,array('felszerelés hiány','felmentés','egyenruha hiány'))) {
+ $_SESSION['alert'][] = '::regisztrált F/f/e-betűs bejegyzése van erre a napra! Egyeztetés szükséges!';
+ $error = true;
+ }
+ // modositani kell, ha eddig nem az volt, ezeket a hianyzasIdket:
+ // ha szeretnéd, hogy módosítsa az igazolás tíipusokat is, akkor hasonlítsd össze ezeket:
+ // var_dump($RES[$i]['igazolas']);
+ // var_dump($SET['igazolas']);
+ if ($_statusz!=$SET['statusz']) {
+ $MODOSITANDO[] = array('oraId'=>$_oraId,'id'=>$_hid,'statusz'=>$SET['statusz'],'igazolas'=>$SET['igazolas'],'tipus'=>$SET['tipus']);
+ }
+ $eddigORAIDK[] = $_oraId;
+ }
+
+ if (!$error) {
+ $BEIRANDO = array_diff($diakORAIDK,$eddigORAIDK);
+// for ($i=0; $i<count($BEIRANDO); $i++) {
+ foreach ($BEIRANDO as $_index => $_oraId) {
+ if (!in_array($ORAK[$_oraId]['tipus'],array('elmarad','elmarad máskor')))
+ hianyzasRegisztralas(
+ array('oraId'=>$_oraId,'dt'=>$ORAK[$_oraId]['dt'],'ora'=>$ORAK[$_oraId]['ora']),
+ array(array('diakId'=>$diakId, 'id'=>'','statusz'=>$SET['statusz'],'igazolas'=>$SET['igazolas'],'tipus'=>$SET['tipus']))
+ );
+ }
+
+ if (is_array($MODOSITANDO) && count($MODOSITANDO)>0)
+ hianyzasIgazolas($MODOSITANDO,$diakId);
+
+ }
+ }
+
+
+ function oraHianyzasBeiras($dt, $ora, $diakId, $SET=array()) {
+
+ if ($dt=='' || $ora=='') {
+ $_SESSION['alert'][] = 'message:empty_fields:kötelező paraméter üres (oraHianyzasBeiras:dt,ora)';
+ return false;
+ }
+ $q = "SELECT * FROM hianyzas WHERE diakId=%u AND dt='%s' AND ora=%u";
+ $RES = db_query($q, array('fv' => 'oraHianyzasBeiras', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($diakId, $dt, $ora)));
+ if ($RES!==false && count($RES)>0) {
+
+ $_SESSION['alert'][] = 'message:wrong_data:már van bejegyzése. Eldöntési kérdés.';
+
+ } else {
+
+ // Aznapi tankörei és felmentései
+ $diakTANKOROK = getTankorByDiakId($diakId, __TANEV, array('csakId' => true, 'tolDt' => $dt, 'igDt' => $dt, 'result'=>'csakid'));
+ $diakFMTANKOROK = getTankorDiakFelmentes($diakId, __TANEV, array('csakId' => true, 'tolDt' => $dt, 'igDt' => $dt, 'nap'=>date('w',strtotime($dt)),'ora'=>$ora,'result'=>'csakid'));
+
+ $T = array_diff($diakTANKOROK,$diakFMTANKOROK);
+ reset($T);
+ sort($T);
+
+ $q = "SELECT * FROM ora WHERE ora=%u AND dt='%s' and tankorId IN (".implode(',', array_fill(0, count($T), '%u')).")";
+ $v = mayor_array_join(array($ora, $dt), $T);
+ $oraAdat = db_query($q, array('fv' => 'oraHianyzasBeiras', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ // EDDIG: csak akkor regisztráltuk, ha egy találatot adott az ora tábla.
+ // if ( ($db=count($oraAdat)) ==1 && !in_array($oraAdat[0]['tipus'],array('elmarad','elmarad máskor')) ) {
+ // MOST : azonban lehetséges olyan eset, hogy az adott órára többször is regisztrálandó. Mit tegyünk?
+ // a napi beírás beírja! Ez a függvény hibaüzen.
+
+ if ( ($db=count($oraAdat)) >=1 ) {
+ for ($i=0; $i<count($oraAdat); $i++) {
+ if (!in_array($oraAdat[$i]['tipus'],array('elmarad','elmarad máskor'))) {
+ hianyzasRegisztralas(
+ array('oraId'=>$oraAdat[$i]['oraId'],'dt'=>$oraAdat[$i]['dt'],'ora'=>$oraAdat[$i]['ora']),
+ array(array('diakId'=>$diakId, 'id'=>'','statusz'=>$SET['statusz'],'igazolas'=>$SET['igazolas'],'tipus'=>$SET['tipus']))
+ );
+ }
+ }
+ } elseif ($db==0) {
+ $_SESSION['alert'][] = '::nincs órája.';
+ } elseif (in_array($oraAdat[0]['tipus'],array('elmarad','elmarad máskor'))) {
+ // ekkor nem kell csinálni semmit. Hibaüzenetet sem.
+ } else {
+ // ide nem juthatunk MÁR!
+ $_SESSION['alert'][] = ':%0%:%1% órája is van ebben az időpontban:'.$db;
+ }
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/hianyzas/oktstat.php b/mayor-orig/www/include/modules/naplo/hianyzas/oktstat.php
new file mode 100644
index 00000000..c3cc7a24
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/hianyzas/oktstat.php
@@ -0,0 +1,155 @@
+<?php
+
+/* - Tankötelesség -
+2011. évi CXC. törvény a nemzeti köznevelésről
+
+27. A gyermekek, a tanulók kötelességei és jogai, a tankötelezettség(3)195 A tankötelezettség annak a tanévnek a végéig tart, amelyben a tanuló a tizenhatodik életévét betölti. A sajátos nevelési igényű tanuló tankötelezettsége meghosszabbítható annak a tanítási évnek a végéig, amelyben a huszonharmadik életévét betölti. A tankötelezettség meghosszabbításáról a szakértői bizottság szakértői véleménye alapján az iskola igazgatója dönt.
+
+13. A gyógypedagógiai, konduktív pedagógiai nevelési-oktatási intézmény60
+(4)64 A fejlesztő nevelés-oktatásban a tanuló annak a tanítási évnek az utolsó napjáig köteles részt venni, amelyben betölti a tizenhatodik életévét és annak a tanítási évnek az utolsó napjáig vehet részt, amelyben betölti a huszonharmadik életévét. A fejlesztő nevelés-oktatásban a tanulókat a sajátos nevelési igényük, fejlettségük és életkoruk alapján osztják be fejlesztő csoportokba.
+
+54. Átmeneti és vegyes rendelkezések
+97. § (1)485 Azok a tanulók, akik tanulmányaikat az iskolai nevelés-oktatás kilencedik évfolyamán a 2011/2012. tanévben vagy azt megelőzően kezdték meg, tankötelezettségük azon tanítási év végéig tart, amelyben a tizennyolcadik életévüket betöltik vagy sikeres érettségi vizsgát vagy szakmai vizsgát tettek. Azon sajátos nevelési igényű tanulók tankötelezettsége, akik esetében a szakértői és rehabilitációs bizottság e törvény hatálybalépése előtt a tankötelezettség huszadik életévükig történő meghosszabbításáról döntött, annak a tanévnek a végéig tart, amelyben a huszadik életévüket betöltik.
+*/
+
+ require_once('include/modules/naplo/share/hianyzas.php');
+
+ function getOktoberiStatisztika($tanev=__TANEV, $overrideLezart = false) {
+
+ $TA = getTanevAdat($tanev);
+
+ if ($TA['statusz'] != 'lezárt') {
+ $overrideLezart = true;
+ $_SESSION['alert'][] = 'info:nem_lezart_tanev';
+ }
+ $lr = db_connect('naplo_intezmeny');
+
+ // van értelmes adat az aggregált táblában? mert ha nincs, vagy nincs lezárva, akkor számoljuk ki az online adatokból
+ $q = "select count(*) AS db from hianyzasOsszesites where tanev=%u and igazolt!=0 or igazolatlan!=0";
+ $v = array($tanev);
+ $dbAdat = db_query($q,array('fv' => 'hianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result'=>'value'), $lr);
+
+ if ( $overrideLezart === true || $dbAdat==0 ) {
+
+ $Wnemszamit = defWnemszamit();
+ // A tanévhez tartozó hiányzási adatok lekérdezése és rögzítése
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $j = 0;
+ foreach ($TA['szemeszter'] as $i => $szAdat) {
+ if ($j==0) $q = "CREATE TEMPORARY TABLE ".__INTEZMENYDBNEV.".__hianyzasOsszesites ";
+ else $q = "INSERT INTO ".__INTEZMENYDBNEV.".__hianyzasOsszesites ";
+ $q .= " SELECT diakId, %u AS tanev, %u AS szemeszter,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt',1,NULL)) AS igazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL)) AS igazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) AS kesesPercOsszeg
+ FROM `%s`.hianyzas ".$Wnemszamit['join']."
+ WHERE (
+ tipus = 'hiányzás'
+ OR (tipus='késés' AND statusz='igazolatlan' AND perc IS NOT NULL)
+ ) AND dt<='%s'
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY diakId";
+ $v = array($tanev, $szAdat['szemeszter'], $tanevDb, $szAdat['zarasDt']);
+ db_query($q, array('fv' => 'hianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ // A hozott hiányzások hozzáadása
+ $q = "UPDATE ".__INTEZMENYDBNEV.".__hianyzasOsszesites SET
+ igazolt = igazolt + (
+ SELECT IFNULL(SUM(dbHianyzas),0) FROM `%s`.hianyzasHozott AS `hh`
+ WHERE hh.diakId = __hianyzasOsszesites.diakId AND hh.statusz='igazolt' AND hh.dt<='%s'
+ ),
+ igazolatlan = igazolatlan + (
+ SELECT IFNULL(SUM(dbHianyzas),0) FROM `%s`.hianyzasHozott AS `hh`
+ WHERE hh.diakId = __hianyzasOsszesites.diakId AND hh.statusz='igazolatlan' AND hh.dt<='%s'
+ )
+ WHERE tanev=%u AND szemeszter=%u";
+ $v = array($tanevDb, $szAdat['zarasDt'], $tanevDb, $szAdat['zarasDt'], $tanev, $szAdat['szemeszter']);
+ db_query($q, array('fv' => 'hianyzasOsszesites/hozott', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ $j++;
+ }
+ }
+
+// -----------------------------
+
+ $SQL_hianyzasOsszesites = ( ($overrideLezart === true) ? '__hianyzasOsszesites' : 'hianyzasOsszesites');
+
+ $q = "select IFNULL(telephelyId,0) AS telephelyId, osztalyJel as 'osztály',
+count(if(igazolatlan>0,1,null)) as `van igazolatlanja`,
+count(if(igazolatlan=1,1,null)) as `1 igazolatlan`,
+count(if(1<igazolatlan and igazolatlan<10,1,null)) as `2-9 igazolatlan`,
+count(if(9<igazolatlan and igazolatlan<30,1,null)) as `10-29 igazolatlan`,
+count(if(29<igazolatlan and igazolatlan<51,1,null)) as `30-50 igazolatlan`,
+count(if(50<igazolatlan,1,null)) as `több mint 50 igazolatlan`,
+count(if(igazolt>0,1,null)) as igazolt,
+count(if(249<igazolatlan+igazolt,1,null)) as `250 vagy több hiányzás`,
+CONCAT(IFNULL(telephelyId,0),osztalyJel) AS csop
+from
+ naplo_".__INTEZMENY."_%u.osztalyNaplo
+ left join osztalyDiak using (osztalyId)
+ left join osztaly using (osztalyId)
+ left join ".$SQL_hianyzasOsszesites." using (diakId)
+where
+tanev=%u and szemeszter=%u
+and beDt<='%s' and (kiDt is null or '%s'<=kiDt)
+group by csop order by telephelyId,lpad(osztalyJel,4,' ')";
+
+ $v = array($tanev,$tanev,count($TA['szemeszter']),$TA['zarasDt'],$TA['zarasDt']);
+
+ $r['osszes'] = db_query($q, array('fv'=>'oktstat','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'indexed'), $lr);
+
+ $q = "select IFNULL(telephelyId,0) AS telephelyId, osztalyJel as `osztály`,
+count(if(igazolatlan>0,1,null)) as `van igazolatlanja`,
+count(if(igazolatlan=1,1,null)) as `1 igazolatlan`,
+count(if(1<igazolatlan and igazolatlan<10,1,null)) as `2-9 igazolatlan`,
+count(if(9<igazolatlan and igazolatlan<30,1,null)) as `10-29 igazolatlan`,
+count(if(29<igazolatlan and igazolatlan<51,1,null)) as `30-50 igazolatlan`,
+count(if(50<igazolatlan,1,null)) as `több mint 50 igazolatlan`,
+count(if(igazolt>0,1,null)) as igazolt,
+count(if(249<igazolatlan+igazolt,1,null)) as `250 vagy több hiányzás`,
+CONCAT(IFNULL(telephelyId,0),osztalyJel) AS csop
+from
+ naplo_".__INTEZMENY."_%u.osztalyNaplo
+ left join osztalyDiak using (osztalyId)
+ left join osztaly using (osztalyId)
+ left join diak using (diakId)
+ left join ".$SQL_hianyzasOsszesites." using (diakId)
+where
+diak.szuletesiIdo>='%s'
+and tanev=%u and szemeszter=%u
+and beDt<='%s' and (kiDt is null or '%s'<=kiDt)
+group by csop order by telephelyId,lpad(osztalyJel,4,' ')
+";
+
+ $v = array($tanev,date('Y-m-d',strtotime('-16 years', strtotime($TA['kezdesDt']))),$tanev,count($TA['szemeszter']),$TA['zarasDt'],$TA['zarasDt']);
+ $r['tankoteles'] = db_query($q, array('fv'=>'oktstat','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'indexed'), $lr);
+
+ db_query('DROP TABLE IF EXISTS __hianyzasOsszesites', array('fv' => 'hianyzasOsszesites/hozott', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ db_close($lr);
+
+ $r['a04t17'] = getStat_a04t17($tanev);
+
+ return $r;
+ }
+
+ function getStat_a04t17($tanev) {
+
+ $stat = 'a04t17';
+
+ $LJ = "LEFT JOIN osztalyDiak USING (diakId) LEFT JOIN osztaly USING (osztalyId)";
+
+ // az iskolába lépőnek tekintjük az 1 évfolyamosokat, vagyis azokat, akik annak az osztálynak a tagjai szept 1-jén
+ // amelyik kezdoEvfolyamSorszam=1, kezdoTanev=$tanev és osztalyJellegId IN (1,21,22,65) az adott tanévben
+ $W = " AND osztaly.kezdoTanev=$tanev AND kezdoEvfolyamSorszam=1 AND osztalyJellegId IN (1,21,22,65)"; // kezdoEvfolyam=1 volt eredetileg
+
+ $q = "SELECT nem,count(DISTINCT diakId) AS db FROM diak $LJ WHERE szuletesiIdo+INTERVAL 6 YEAR>'$tanev-09-01' $W GROUP BY nem"; // nincs egyenlő!!!
+ $R[$stat.'_4'] = db_query($q, array('fv'=>'oktstat','modul'=>'naplo_intezmeny','result'=>'assoc','keyfield'=>'nem'));
+ $q = "SELECT nem,count(DISTINCT diakId) AS db FROM diak $LJ WHERE szuletesiIdo+INTERVAL 6 YEAR<='$tanev-08-31' and szuletesiIdo+INTERVAL 6 YEAR>='$tanev-06-01' $W GROUP BY nem";
+ $R[$stat.'_3'] = db_query($q, array('fv'=>'oktstat','modul'=>'naplo_intezmeny','result'=>'assoc','keyfield'=>'nem'));
+ $q = "SELECT nem,count(DISTINCT diakId) AS db FROM diak $LJ WHERE szuletesiIdo+INTERVAL 6 YEAR<='$tanev-05-31' $W GROUP BY nem"; // nincs egyenlő!!!
+ $R[$stat.'_2'] = db_query($q, array('fv'=>'oktstat','modul'=>'naplo_intezmeny','result'=>'assoc','keyfield'=>'nem'));
+
+ return $R;
+ }
+
+// var_dump(getStat_a04t17(2014));
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/hianyzas/ora.php b/mayor-orig/www/include/modules/naplo/hianyzas/ora.php
new file mode 100644
index 00000000..56648a8c
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/hianyzas/ora.php
@@ -0,0 +1,8 @@
+<?php
+
+/*
+MOVED -->share hianyzasModifier
+ function hianyzasPercUpdate($ORAADAT,$PERCEK)
+*/
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/hianyzas/osztaly.php b/mayor-orig/www/include/modules/naplo/hianyzas/osztaly.php
new file mode 100644
index 00000000..07efde7d
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/hianyzas/osztaly.php
@@ -0,0 +1,232 @@
+<?php
+/*
+ Module: naplo
+
+ function getHianyzok($osztaly)
+*/
+
+ function getHianyzok($ADAT,$SET = array()) {
+
+ $lr = db_connect('naplo', array('fv' => 'getHianyzok'));
+ $H = array();
+ if ($SET['dt']!='') {
+ $Diakok = getDiakokByOsztaly($ADAT['osztalyId'],array('tolDt'=>$SET['dt'],'igDt'=>$SET['dt']));
+ } else {
+ $Diakok = getDiakokByOsztaly($ADAT['osztalyId']);
+ }
+ $munkatervIds = getMunkatervByOsztalyId($ADAT['osztalyId'], array('result'=>'idonly'));
+ $H['névsor'] = array();
+ foreach (array('jogviszonyban van','magántanuló','vendégtanuló') as $statusz) {
+ foreach ($Diakok[$statusz] as $diakId) {
+ if (!is_array($H['névsdor'][$diakId])) {
+ $H['névsor'][$diakId] = $Diakok[$diakId];
+ // Az aktuális státusz megállapítása
+ $i = 0;
+ // A státuszbejegyzések sora időben visszafele rendezett!!
+ while ($i < count($Diakok[$diakId]['statusz']) && strtotime($Diakok[$diakId]['statusz'][$i]['dt']) > time()) $i++;
+ $H['névsor'][$diakId]['aktualisStatusz'] = $Diakok[$diakId]['statusz'][$i]['statusz'];
+ }
+ }
+ }
+
+
+ foreach ($H['névsor'] as $diakId => $dAdat) {
+ $H['diakIds'][] = $diakId;
+ $H[$diakId] = array();
+ }
+
+ if (count($H['névsor']) == 0) return $H;
+
+ // A legmagasabb fegyelmi fokozat lekérdezése tanulónként
+ $q = "SELECT `diakId`, MAX(`referenciaDt`) AS `referenciaDt`, MAX(`fokozat`) AS `fokozat`, MAX(`bejegyzes`.`hianyzasDb`) AS `hianyzasDb`
+ FROM `".__TANEVDBNEV."`.`bejegyzes` LEFT JOIN `".__INTEZMENYDBNEV."`.`bejegyzesTipus` USING (`bejegyzesTipusId`)
+ WHERE `diakId` IN (".implode(',', array_fill(0, count($H['diakIds']), '%u')).")
+ AND `tipus` = 'fegyelmi' AND `bejegyzes`.`hianyzasDb` > 0
+ GROUP BY `diakId`";
+ $ret = db_query($q, array('fv' => 'getHianyzok/fegyelmi', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $H['diakIds']), $lr);
+ if (!is_array($ret)) { if ($olr == '') db_close($lr); return false; }
+ foreach ($ret as $key => $val) {
+ $H[ $val['diakId'] ]['fegyelmi'] = array(
+ 'fokozat' => $val['fokozat'],
+ 'referenciaDt' => $val['referenciaDt'],
+ 'hianyzasDb' => $val['hianyzasDb']
+ );
+ }
+ $q = "SELECT `diakId`, MAX(`referenciaDt`) AS `referenciaDt`, MAX(`fokozat`) AS `fokozat`, MAX(`bejegyzes`.`hianyzasDb`) AS `hianyzasDb`
+ FROM `".__TANEVDBNEV."`.`bejegyzes` LEFT JOIN `".__INTEZMENYDBNEV."`.`bejegyzesTipus` USING (`bejegyzesTipusId`)
+ WHERE `diakId` IN (".implode(',', array_fill(0, count($H['diakIds']), '%u')).")
+ AND `tipus` = 'fegyelmi'
+ GROUP BY `diakId`";
+ $ret = db_query($q, array('fv' => 'getHianyzok/fegyelmi', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $H['diakIds']), $lr);
+ if (!is_array($ret)) { if ($olr == '') db_close($lr); return false; }
+ foreach ($ret as $key => $val) {
+ $H[ $val['diakId'] ]['fegyelmi']['maxFokozat'] = $val['fokozat'];
+ }
+
+ $f_where = $where = $v_fw = $v_w = array();
+ $v_w = array($ADAT['tolDt'], $ADAT['igDt']);
+ // A _LEGKORABBI_IGAZOLHATO_HIANYZAS és a legutóbbi osztályfőnöki óra függvénye
+ $dt = legkorabbiIgazolhatoHianyzasVeg($ADAT['osztalyId'], $lr);
+ foreach ($H['névsor'] as $diakId => $dAdat) {
+ // Az utolsó lezártnak tekinthető dátum - a beírt hiányzások függvénye!
+ $H[$diakId]['igDt'] = $tDt = getNemIgazolhatoDt($diakId, $munkatervIds, $dt, $lr);
+ // Ha megadott a felhasználó új viszonyítási pontott, akkor úgy vesszük, hogy addig a dátumig már le vannak zárva a hiányzások - legalábbis a fegyelmi szempontjából
+ if ($ADAT['referenciaDt'] != '' && strtotime($ADAT['referenciaDt']) > strtotime($tDt)) $tDt = $ADAT['referenciaDt'];
+ $where[] = "(diakId=%u AND dt<='%s')"; array_push($v_w, $diakId, $tDt);
+ if ($H[$diakId]['fegyelmi']['referenciaDt'] != '') {
+ $f_where[] = "(diakId=%u AND '%s'<dt AND dt<='%s')";
+ array_push($v_fw, $diakId, $H[$diakId]['fegyelmi']['referenciaDt'], $tDt);
+ } else {
+ $f_where[] = "(diakId=%u AND dt<='%s')";
+ array_push($v_fw, $diakId, $tDt);
+ }
+ }
+
+ $Wnemszamit = defWnemszamit();
+
+ if (count($where) > 0) $where = "AND '%s' <= dt AND dt <= '%s' AND (".implode(' OR ', $where).")";
+ if ($f_where != '') $f_where = 'AND ('.implode(' OR ',$f_where).')';
+ // Összes hiányzás lekérdezése
+ $q = "SELECT diakId,tipus,statusz,count(*) AS db,SUM(perc) AS ido
+ FROM ".__TANEVDBNEV.".hianyzas".$Wnemszamit['join']."
+ WHERE statusz != 'törölt'
+ AND diakId IN (".implode(',', array_fill(0, count($H['diakIds']), '%u')).")
+ AND '%s' <= dt AND dt <= '%s'
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY diakId, tipus, statusz";
+ $v = $H['diakIds']; $v[] = $ADAT['tolDt']; $v[] = $ADAT['igDt'];
+ $ret = db_query($q, array('fv' => 'getHianyzok/összes', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if (!is_array($ret)) { if ($olr == '') db_close($lr); }
+ foreach ($ret as $key => $val) {
+ if ($val['tipus'] == 'késés')
+ $H[ $val['diakId'] ]['összes'][ $val['tipus'] ][ $val['statusz'] ] = array('db' => $val['db'], 'ido' => $val['ido']);
+ else
+ $H[ $val['diakId'] ]['összes'][ $val['tipus'] ][ $val['statusz'] ] = $val['db'];
+ }
+
+ // Lezárt hiányzások lekérdezése
+ $q = "SELECT diakId,tipus,statusz,COUNT(*) AS db,SUM(perc) AS ido
+ FROM hianyzas
+ ".$Wnemszamit['join']."
+ WHERE statusz != 'törölt'
+ $where
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY diakId, tipus, statusz";
+ $ret = db_query($q, array('fv' => 'getHianyzok/lezárt', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v_w), $lr);
+ if (!is_array($ret)) { if ($olr == '') db_close($lr); }
+ foreach ($ret as $key => $val) {
+ if ($val['tipus'] == 'késés')
+ $H[ $val['diakId'] ]['lezárt'][ $val['tipus'] ][ $val['statusz'] ] = array('db' => $val['db'], 'ido' => $val['ido']);
+ else
+ $H[ $val['diakId'] ]['lezárt'][ $val['tipus'] ][ $val['statusz'] ] = $val['db'];
+ }
+
+ // Lezárt, még nem szankcionált hiányzások lekérdezése
+ $q = "SELECT diakId, tipus, statusz, COUNT(*) AS db, SUM(perc) AS ido
+ FROM hianyzas
+ ".$Wnemszamit['join']."
+ WHERE statusz != 'törölt'
+ $f_where
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY diakId, tipus, statusz";
+
+ $ret = db_query($q, array('fv' => 'getHianyzok/lezárt, nem szankcionált', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v_fw), $lr);
+ if (!is_array($ret)) { if ($olr == '') db_close($lr); }
+ foreach ($ret as $key => $val) {
+ if ($val['tipus'] == 'késés')
+ $H[ $val['diakId'] ]['fegyelmi'][ $val['tipus'] ][ $val['statusz'] ] = array('db' => $val['db'], 'ido' => $val['ido']);
+ else
+ $H[ $val['diakId'] ]['fegyelmi'][ $val['tipus'] ][ $val['statusz'] ] = $val['db'];
+ }
+
+ // Tanulónként
+ foreach ($H['névsor'] as $diakId => $dAdat) {
+
+ $_HOZOTT = getDiakHozottHianyzas($diakId); //hozott hiányzások lekérdezése az alapértelmezett tanévre
+ //$H[$diakId]['összes']['hozott'] = $_HOZOTT['igazolatlan']['db'] + $_HOZOTT['igazolt']['db'];
+
+ $H[$diakId]['hozott'] = $_HOZOTT; //???
+
+// $H[$diakId]['összes']['hiányzás']['igazolt'] += $_HOZOTT['igazolt']['db'];
+// $H[$diakId]['összes']['hiányzás']['igazolatlan'] += $_HOZOTT['igazolatlan']['db'];
+
+ /* Egy diák */
+ $H[$diakId]['összes igazolatlan'] = $H[$diakId]['összes']['hiányzás']['igazolatlan'];
+
+ // 20/2012 EMMI 51. § (10) - igazolt késések is átváltandók
+ $H[$diakId]['összes igazolt'] +=
+ floor($H[$diakId]['összes']['késés']['igazolt']['ido'] / 45);
+ // Az igazolatlanok esetén azt a számítási módot használjuk, amelyik szigorúbb
+ // Előbb a hivatalos, 45 percenkénti átváltás szerint
+ $igazolatlanKesesbol = floor($H[$diakId]['összes']['késés']['igazolatlan']['ido'] / 45);
+ // majd a késések, felszereléshiányok darabszáma szerinti
+ if (intval(_HANY_KESES_IGAZOLATLAN) != 0)
+ $igazolatlanFegyelmi = floor($H[$diakId]['összes']['késés']['igazolatlan']['db'] / intval(_HANY_KESES_IGAZOLATLAN));
+ else
+ $igazolatlanFegyelmi = 0;
+ if (intval(_HANY_FSZ_IGAZOLATLAN) != 0)
+ $igazolatlanFegyelmi += floor($H[$diakId]['összes']['felszerelés hiány']['igazolatlan'] / intval(_HANY_FSZ_IGAZOLATLAN));
+ if (intval(_HANY_EH_IGAZOLATLAN) != 0) // egyenruha hiány
+ $igazolatlanFegyelmi += floor($H[$diakId]['összes']['egyenruha hiány']['igazolatlan'] / intval(_HANY_EH_IGAZOLATLAN));
+ // végül a kettő közül a nagyobbikkal növeljük az összes igazolatlanok számát ??? ezt miért?
+ if ($igazolatlanKesesbol > $igazolatlanFegyelmi)
+ $H[$diakId]['összes igazolatlan'] += $igazolatlanKesesbol;
+ else
+ $H[$diakId]['összes igazolatlan'] += $igazolatlanFegyelmi;
+/*
+ //if (_KESESI_IDOK_OSSZEADODNAK === true) { // 20/2012 EMMI - mindenképp összeadódnak a késési idők
+ $H[$diakId]['összes igazolatlan'] +=
+ floor($H[$diakId]['összes']['késés']['igazolatlan']['ido'] / 45);
+ //} else {
+ if (intval(_HANY_KESES_IGAZOLATLAN) != 0)
+ $H[$diakId]['összes igazolatlan'] +=
+ floor($H[$diakId]['összes']['késés']['igazolatlan']['db'] / intval(_HANY_KESES_IGAZOLATLAN));
+ if (intval(_HANY_FSZ_IGAZOLATLAN) != 0)
+ $H[$diakId]['összes igazolatlan'] +=
+ floor($H[$diakId]['összes']['felszerelés hiány']['igazolatlan'] / intval(_HANY_FSZ_IGAZOLATLAN));
+ //}
+*/
+# Itt ne adjuk ezt hozzá, mert alább a $H[$diakId]['összes igazolatlan']-okat összegezzük - abban meg már benne lesz a hozott! (Issu 59)
+# $H['összes']['összes igazolatlan'] += floor($_HOZOTT['igazolatlan']['db']);
+# $H['összes']['összes igazolt'] += floor($_HOZOTT['igazolt']['db']);
+ $H[$diakId]['összes igazolatlan'] += floor($_HOZOTT['igazolatlan']['db']);
+ $H[$diakId]['összes igazolt'] += floor($_HOZOTT['igazolt']['db']);
+
+
+ if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ $H[$diakId]['összes fegyelmi igazolatlan'] +=
+ floor(((($H[$diakId]['összes']['késés']['igazolatlan']['ido']
+ - $H[$diakId]['fegyelmi']['késés']['igazolatlan']['ido']) % 45 )
+ + $H[$diakId]['fegyelmi']['késés']['igazolatlan']['ido']) / 45);
+ }
+
+
+ /* Összes Diákra, összesítés */
+ $H['összes']['hiányzás']['igazolt'] += $H[$diakId]['összes']['hiányzás']['igazolt'];
+ $H['összes']['hiányzás']['igazolatlan'] += $H[$diakId]['összes']['hiányzás']['igazolatlan'];
+
+ $H['összes']['hiányzás']['igazolatlan'] += floor($_HOZOTT['igazolatlan']['db']);
+ $H['összes']['hiányzás']['igazolt'] += floor($_HOZOTT['igazolt']['db']);
+
+ $H['összes']['késés']['igazolt'] += $H[$diakId]['összes']['késés']['igazolt']['db'];
+ $H['összes']['késés']['igazolatlan'] += $H[$diakId]['összes']['késés']['igazolatlan']['db'];
+ $H['összes']['felszerelés hiány']['igazolatlan'] += $H[$diakId]['összes']['felszerelés hiány']['igazolatlan'];
+ $H['összes']['felmentés']['igazolatlan'] += $H[$diakId]['összes']['felmentés']['igazolatlan'];
+ $H['összes']['egyenruha hiány']['igazolatlan'] += $H[$diakId]['összes']['egyenruha hiány']['igazolatlan'];
+
+ $H['összes']['összes igazolatlan'] += $H[$diakId]['összes igazolatlan'];
+
+ $H['összes']['fegyelmi']['hiányzás']['igazolatlan'] += $H[$diakId]['fegyelmi']['hiányzás']['igazolatlan'];
+ $H['összes']['fegyelmi']['késés']['igazolatlan'] += $H[$diakId]['fegyelmi']['késés']['igazolatlan']['db'];
+ $H['összes']['fegyelmi']['felszerelés hiány']['igazolatlan'] += $H[$diakId]['fegyelmi']['felszerelés hiány']['igazolatlan'];
+ $H['összes']['fegyelmi']['egyenruha hiány']['igazolatlan'] += $H[$diakId]['fegyelmi']['egyenruha hiány']['igazolatlan'];
+
+ }
+
+ db_close($lr);
+
+ return $H;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/hibabejelento/admin.php b/mayor-orig/www/include/modules/naplo/hibabejelento/admin.php
new file mode 100644
index 00000000..a32c1283
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/hibabejelento/admin.php
@@ -0,0 +1,28 @@
+<?php
+
+ require_once('include/modules/naplo/share/kerelem.php');
+
+ function hibabejelentes($ADAT) {
+
+ if ($ADAT['txt'] != '') {
+ if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId'];
+ $q = "INSERT INTO kerelem (userAccount,szoveg,rogzitesDt,kategoria,telephelyId) VALUES ('"._USERACCOUNT."','%s',NOW(),'%s','%s')";
+ return db_query($q, array('fv' => 'hibabejeletes', 'result'=>'insert','modul' => 'naplo_base', 'values' => array($ADAT['txt'],$ADAT['kategoria'],$telephelyId)));
+ } else {
+ return false;
+ }
+
+ }
+
+ function kerelemValasz($ADAT) {
+ if ($ADAT['txt'] != '' && $ADAT['kerelemId']>0) {
+ //if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId'];
+ $q = "INSERT INTO kerelemValasz (kerelemId,userAccount,valasz) VALUES ('%u','"._USERACCOUNT."','%s')";
+ return db_query($q, array('fv' => 'hibabejeletes', 'modul' => 'naplo_base', 'values' => array($ADAT['kerelemId'],$ADAT['txt'])));
+ } else {
+ return false;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php b/mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php
new file mode 100644
index 00000000..bedda878
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/hibabejelento/hibabejelento.php
@@ -0,0 +1,27 @@
+<?php
+
+
+ function hibabejelentes($ADAT) {
+
+ if ($ADAT['txt'] != '') {
+ if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId'];
+ $q = "INSERT INTO kerelem (userAccount,szoveg,rogzitesDt,kategoria,telephelyId) VALUES ('"._USERACCOUNT."','%s',NOW(),'%s','%s')";
+ return db_query($q, array('fv' => 'hibabejeletes', 'result'=>'insert','modul' => 'naplo_base', 'values' => array($ADAT['txt'],$ADAT['kategoria'],$telephelyId)));
+ } else {
+ return false;
+ }
+
+ }
+
+ function kerelemValasz($ADAT) {
+ if ($ADAT['txt'] != '' && $ADAT['kerelemId']>0) {
+ //if ($ADAT['telephelyId']=='') $telephelyId = 'NULL'; else $telephelyId = $ADAT['telephelyId'];
+ $q = "INSERT INTO kerelemValasz (kerelemId,userAccount,valasz) VALUES ('%u','"._USERACCOUNT."','%s')";
+ return db_query($q, array('fv' => 'hibabejeletes', 'modul' => 'naplo_base', 'values' => array($ADAT['kerelemId'],$ADAT['txt'])));
+ } else {
+ return false;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/diakExport.php b/mayor-orig/www/include/modules/naplo/intezmeny/diakExport.php
new file mode 100644
index 00000000..7752c577
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/diakExport.php
@@ -0,0 +1,137 @@
+<?php
+
+ define('__DIAK_EXPORT_FILE',_DOWNLOADDIR.'/private/export/diakExport');
+
+ $exportFormatum = array(
+ 'alapértelmezett' => array('oId','viseltNevElotag','viseltCsaladinev','viseltUtonev','diakNaploSorszam'),
+ 'egyszerű' => array('diakigazolvanySzam','viseltNevElotag','viseltCsaladinev','viseltUtonev','diakNaploSorszam'),
+ 'osztályfőnöki' => array('diakigazolvanySzam','viseltNevElotag','viseltCsaladinev','viseltUtonev','oId','diakNaploSorszam'),
+ 'taninformTanuló' => array('oId','diakigazolvanySzam','viseltNevElotag','viseltCsaladinev','viseltUtonev','szuleteskoriNevElotag',
+ 'szuleteskoriCsaladinev','szuleteskoriUtonev','szuletesiHely','szuletesiIdo','anyaSzuleteskoriNevElotag','anyaSzuleteskoriCsaladinev',
+ 'anyaSzuleteskoriUtonev','allampolgarsag','lakhelyOrszag','lakhelyHelyseg',
+ 'lakhelyIrsz','lakhelyKozteruletNev','lakhelyKozteruletJelleg','lakhelyHazszam','lakhelyEmelet','lakhelyAjto','tartOrszag','tartHelyseg',
+ 'tartIrsz','tartKozteruletNev','tartKozteruletJelleg','tartHazszam','tartEmelet','tartAjto','jogviszonyKezdete','diakNaploSorszam'
+ ),
+ );
+
+ function diakExport($ADAT) {
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $ADAT['tanev']);
+ $W = array();
+ $q = "SELECT diak.*, osztalyId, osztalyJel, diakNaploSorszam(osztalyDiak.diakId,".$ADAT['tanev'].",osztalyDiak.osztalyId) AS diakNaploSorszam FROM diak LEFT JOIN osztalyDiak USING (diakId)
+ LEFT JOIN `%s`.osztalyNaplo USING (osztalyId)";
+ $v = array($tanevDbNev);
+ if (isset($ADAT['osztalyId'])) { $W[] = "osztalyId=%u"; $v[] = $ADAT['osztalyId']; }
+ if (isset($ADAT['dt'])) { $W[] = "beDt<='%s' AND ('%s'<=kiDt OR kiDt IS NULL)"; array_push($v, $ADAT['dt'], $ADAT['dt']); }
+
+ $q .= " WHERE ".implode(' AND ', $W);
+
+ $ret = db_query($q, array('fv' => 'diakExport', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ if (!$ret) return false;
+
+ $osztalyAdat = getOsztalyok($ADAT['tanev'], array('result' => 'assoc'));
+
+ $Szulok = getSzulok();
+ for ($i = 0; $i < count($ret); $i++) {
+ $ret[$i]['telephelyId'] = $osztalyAdat[ $ret[$i]['osztalyId'] ]['telephelyId'];
+ foreach (array('anya','apa','gondviselo') as $tipus) {
+ $szuloId = $ret[$i][ $tipus.'Id' ];
+ if (is_array($Szulok[$szuloId])) foreach ($Szulok[$szuloId] as $attr => $value) {
+ $ret[$i][ $tipus . ucfirst($attr) ] = $value;
+ } elseif ($i == 0 && is_array($Szulok[1])) foreach ($Szulok[1] as $attr => $value) {
+ $ret[$i][ $tipus . ucfirst($attr) ] = '';
+ }
+ }
+ }
+
+ return $ret;
+
+ }
+
+ function createFile($ADAT) {
+ if ($ADAT['formatum'] == 'xls' || $ADAT['formatum'] == 'xml') return generateXLSExport($ADAT['export'], $ADAT['mezok']);
+ elseif ($ADAT['formatum'] == 'pdf') return generatePDFExport($ADAT['export'], $ADAT['mezok']);
+ else return generateCSVExport($ADAT['export'], $ADAT['mezok']);
+ }
+
+ function generateCSVExport($ret, $Mezok = array()) {
+
+ $fp = fopen(__DIAK_EXPORT_FILE . '.csv', 'w');
+ if (!$fp) return false;
+
+ fputs($fp, implode(' ',$Mezok)."\n");
+ for ($i = 0; $i < count($ret); $i++) {
+ $A = array();
+ foreach ($Mezok as $attr => $attrNev) $A[] = $ret[$i][$attr];
+ $sor = implode(' ', $A)."\n";
+ fputs($fp, $sor);
+ }
+
+ fclose($fp);
+ return true;
+
+ }
+
+ function generateXLSExport($ret, $Mezok = array()) {
+
+ $fp = fopen(__DIAK_EXPORT_FILE . '.xml', 'w');
+ if (!$fp) return false;
+
+ fputs($fp, '<?xml version="1.0"?>'."\r\n");
+ fputs($fp, '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"'."\r\n"
+ .' xmlns:o="urn:schemas-microsoft-com:office:office"'."\r\n"
+ .' xmlns:x="urn:schemas-microsoft-com:office:excel"'."\r\n"
+ .' xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'."\r\n"
+ .' xmlns:html="http://www.w3.org/TR/REC-html40">'."\r\n");
+
+ fputs($fp, ' <Styles>'."\r\n"
+ .' <Style ss:ID="s21">'."\r\n".' <NumberFormat ss:Format="Short Date" />'."\r\n".' </Style>'."\r\n"
+ .' <Style ss:ID="s22">'."\r\n".' <NumberFormat ss:Format="yyyy\.m\.d\.\ h:mm" />'."\r\n".' </Style>'."\r\n"
+ ."\r\n".' </Styles>'."\r\n");
+
+ fputs($fp, '<Worksheet ss:Name="Diák adatok">'."\r\n");
+ fputs($fp, '<Table>'."\r\n");
+
+ // fejléc
+ fputs($fp, '<Row>'."\r\n");
+ foreach ($Mezok as $index => $attr) {
+ fputs($fp, " <Cell><Data ss:Type=\"String\">".$attr."</Data></Cell>\r\n");
+ }
+ fputs($fp, '</Row>'."\r\n");
+
+
+ for ($i = 0; $i < count($ret); $i++) {
+ fputs($fp, '<Row>'."\r\n");
+ foreach ($Mezok as $attr => $attrNev) {
+ $value = $ret[$i][$attr];
+ $time = strtotime($value);
+ if (is_numeric($value))
+ fputs($fp, " <Cell><Data ss:Type=\"Number\">".$value."</Data></Cell>\r\n");
+ elseif (is_numeric($time) && $value == date('Y-m-d H:i:s', $time))
+ fputs($fp, " <Cell ss:StyleID=\"s22\"><Data ss:Type=\"DateTime\">".str_replace(' ','T',$value).'.000'."</Data></Cell>\r\n");
+ elseif (is_numeric($time) && $value == date('Y-m-d', $time))
+ fputs($fp, " <Cell ss:StyleID=\"s21\"><Data ss:Type=\"DateTime\">".$value.'T08:40:00.000'."</Data></Cell>\r\n");
+ else
+ fputs($fp, " <Cell><Data ss:Type=\"String\">".$value."</Data></Cell>\r\n");
+ }
+ fputs($fp, '</Row>'."\r\n");
+ }
+
+ fputs($fp, '</Table>'."\r\n");
+ fputs($fp, '</Worksheet>'."\r\n");
+ fputs($fp, '</Workbook>'."\r\n");
+
+ fclose($fp);
+ return true;
+
+ }
+
+ function generatePDFExport($ret, $mezok = array()) {
+
+
+ $_SESSION['alert'][] = 'message:not implemented';
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/diakFelmentes.php b/mayor-orig/www/include/modules/naplo/intezmeny/diakFelmentes.php
new file mode 100644
index 00000000..383281de
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/diakFelmentes.php
@@ -0,0 +1,6 @@
+<?php
+
+
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/diakStatusz.php b/mayor-orig/www/include/modules/naplo/intezmeny/diakStatusz.php
new file mode 100644
index 00000000..94944ba1
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/diakStatusz.php
@@ -0,0 +1,12 @@
+<?php
+
+ function getHibasJogviszony() {
+
+ $q = "select distinct diakId from diakJogviszony as d1 where d1.statusz=(select statusz from diakJogviszony as d2
+ where diakId=d1.diakId and d2.dt<d1.dt order by dt desc limit 1) order by diakId, dt";
+ $ret['tobbszoros'] = db_query($q, array('fv' => 'getHibasJogviszony', 'modul' => 'naplo_intezmeny', 'result' => 'idonly'));
+
+ return $ret;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/diakSzulo.php b/mayor-orig/www/include/modules/naplo/intezmeny/diakSzulo.php
new file mode 100644
index 00000000..a6f1bd2b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/diakSzulo.php
@@ -0,0 +1,98 @@
+<?php
+
+ function szuloAdatModositas($ADAT, $FIELDS) {
+
+ $v = array();
+ foreach($ADAT as $attr => $value) {
+ if (array_key_exists(($attr), $FIELDS) && !in_array($attr, array('szuloId'))) {
+ if ($value == '') {
+ $T[] = "`%s`=NULL";
+ array_push($v, $attr);
+ } else {
+ array_push($v, $attr, $value);
+ $T[] = "`%s`='%s'";
+ }
+ }
+ }
+ $q = "UPDATE szulo SET ".implode(',',$T)." WHERE szuloId=%u";
+ array_push($v, $ADAT['szuloId']);
+
+ return db_query($q, array('fv' => 'szuloAdatModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ }
+
+ function szuloHozzarendeles($diakId, $tipus, $ujSzuloId) {
+
+
+ if ($tipus == 'anya' || $tipus == 'apa') {
+ // Nem ellenőrzés
+ if ($tipus == 'anya') $tiltott = 'fiú';
+ else $tiltott = 'lány';
+ $q = "SELECT nem FROM szulo WHERE szuloId=%u";
+ $nem = db_query($q, array('fv' => 'szuloHozzarendeles', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($ujSzuloId)));
+ if ($nem == $tiltott) {
+ $_SESSION['alert'][] = 'message:tiltott_nem_'.$tiltott;
+ return false;
+ }
+ }
+
+ $q = "UPDATE diak SET `%sId` = %u WHERE diakId = %u";
+ $v = array($tipus, $ujSzuloId, $diakId);
+ $ret = db_query($q, array('fv' => 'szuloHozzarendeles', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ if ($ret) return $ujSzuloId;
+ else return false;
+
+ }
+
+ function szuloHozzarendelesTorlese($diakId, $tipus) {
+
+ $q = "UPDATE diak SET `%sId` = NULL WHERE diakId = %u";
+ $v = array($tipus, $diakId);
+ return db_query($q, array('fv' => 'szuloHozzarendelesTorles', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ }
+
+ function ujSzulo($ADAT, $FIELDS) {
+
+
+ $diakId = $ADAT['diakId'];
+ $tipus = $ADAT['tipus'];
+
+ // Kötelező paraméterek ellenőrzése
+ if ($ADAT['csaladinev'] == ''
+ || $ADAT['utonev'] == ''
+ || !in_array($tipus, array('anya','apa','gondviselo','nevelo'))
+ ) {
+ $_SESSION['alert'][] = 'message:wrong_data:ujSzulo:csaladinev - '.$_POST['csaladinev'].', utonev - '.$_POST['utonev'].', tipus - '.$tipus;
+ return false;
+ }
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'ujSzulo'));
+
+ foreach($ADAT as $attr => $value) {
+ if (array_key_exists(($attr), $FIELDS)) {
+ if ($value != '') {
+ $V[] = $value;
+ $A[] = $attr;
+ }
+ }
+ }
+
+ $q = "INSERT INTO szulo (`".implode('`,`', array_fill(0, count($A), '%s'))."`) VALUES ('".implode("', '", array_fill(0, count($V), '%s'))."')";
+ $v = mayor_array_join($A, $V);
+ $szuloId = db_query($q, array('fv' => 'ujSzulo', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+ if ($szuloId) {
+ $q = "UPDATE diak SET `%sId` = %u WHERE diakId = %u";
+ $v = array($tipus, $szuloId, $diakId);
+ $r = db_query($q, array('fv' => 'ujSzulo', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ db_close($lr);
+ if ($r) return $szuloId;
+ else return false;
+ } else {
+ db_close($lr);
+ return false;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/diakTankorJelentkezes.php b/mayor-orig/www/include/modules/naplo/intezmeny/diakTankorJelentkezes.php
new file mode 100644
index 00000000..e7ab1aad
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/diakTankorJelentkezes.php
@@ -0,0 +1,97 @@
+<?php
+
+
+ function getValaszthatoTankorok($tanev, $szemeszter, $OSZTALYIDK) {
+
+ if ($tanev=='') {
+ $tanevAdat = $_TANEV;
+ } else {
+ $tanevAdat = getTanevAdat($tanev);
+ }
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ $DT['tolDt'] = $tanevAdat['kezdesDt'];
+ $DT['igDt'] = $tanevAdat['zarasDt'] ;
+
+ $tankorBlokkok = getTankorBlokkok($tanev);
+ if (is_array($tankorBlokkok) && is_array($tankorBlokkok['idk']))
+ foreach ($tankorBlokkok['idk'] as $blokkId => $TB) {
+ for ($j=0; $j<count($TB); $j++) {
+ $TID2B[$TB[$j]][] = $blokkId;
+ }
+ }
+
+ if (is_array($OSZTALYIDK) && count($OSZTALYIDK)>0) {
+ $W = " AND osztalyId IN (".implode(',', array_fill(0, count($OSZTALYIDK), '%u')).")";
+ $v = mayor_array_join(array($tanev, $szemeszter), $OSZTALYIDK, $OSZTALYIDK, array($tanev,$tanev,$szemeszter));
+ } else {
+ $v = array($tanev, $szemeszter, $tanev, $tanev, $szemeszter);
+ }
+ $q = "SELECT DISTINCT tankorId, targyId, kovetelmeny, min, max, tanev, szemeszter, oraszam, tankorNev
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId) JOIN tankorOsztaly USING (tankorId)
+ WHERE tanev=%u and szemeszter=%u and tankor.felveheto =1".$W."
+ AND tankorId NOT IN (
+ SELECT distinct tankorId FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId) JOIN tankorOsztaly USING (tankorId)
+ WHERE tankor.felveheto =1".$W." AND (tanev<%u OR (tanev=%u AND szemeszter<%u))
+ )
+ ORDER BY tankorNev,tankor.tankorId";
+ $felvehetoTankorok = db_query($q, array('fv' => 'getValaszthatoTankorok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ for ($i=0; $i<count($felvehetoTankorok); $i++) {
+ $felvehetoTankorok[$i]['blokkIdk'] = $TID2B[$felvehetoTankorok[$i]['tankorId']];
+ $felvehetoTankorok[$i]['letszam'] = getTankorLetszam($felvehetoTankorok[$i]['tankorId'],$DT);
+ $felvehetoTankorok[$i]['tanarok'] = getTankorTanaraiByInterval($felvehetoTankorok[$i]['tankorId'], array('tolDt' => $DT['tolDt'], 'igDt' => $DT['igDt'], 'result' => 'nevsor'));
+ }
+ return $felvehetoTankorok;
+ }
+
+
+
+ function getValaszthatoTankorokOrig($tanev, $szemeszter, $OSZTALYIDK) {
+
+ if ($tanev=='') {
+ $tanevAdat = $_TANEV;
+ } else {
+ $tanevAdat = getTanevAdat($tanev);
+ }
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ $DT['tolDt'] = $tanevAdat['kezdesDt'];
+ $DT['igDt'] = $tanevAdat['zarasDt'] ;
+
+ $tankorBlokkok = getTankorBlokkok($tanev);
+ if (is_array($tankorBlokkok) && is_array($tankorBlokkok['idk']))
+ foreach ($tankorBlokkok['idk'] as $blokkId => $TB) {
+ for ($j=0; $j<count($TB); $j++) {
+ $TID2B[$TB[$j]][] = $blokkId;
+ }
+ }
+
+ if (is_array($OSZTALYIDK) && count($OSZTALYIDK)>0) {
+ $W = " AND osztalyId IN (".implode(',', array_fill(0, count($OSZTALYIDK), '%u')).")";
+ $v = mayor_array_join(array($tanev, $szemeszter), $OSZTALYIDK, $OSZTALYIDK, array($tanev));
+ } else {
+ $v = array($tanev, $szemeszter, $tanev);
+ }
+ $q = "SELECT DISTINCT tankorId, targyId, kovetelmeny, min, max, tanev, szemeszter, oraszam, tankorNev
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId) JOIN tankorOsztaly USING (tankorId)
+ WHERE tanev=%u and szemeszter=%u and tankor.felveheto =1".$W."
+ AND tankorId NOT IN (
+ SELECT distinct tankorId FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId) JOIN tankorOsztaly USING (tankorId)
+ WHERE tankor.felveheto =1".$W." AND tanev<%u
+ )
+ ORDER BY tankorNev,tankor.tankorId";
+ $felvehetoTankorok = db_query($q, array('fv' => 'getValaszthatoTankorok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ for ($i=0; $i<count($felvehetoTankorok); $i++) {
+ $felvehetoTankorok[$i]['blokkIdk'] = $TID2B[$felvehetoTankorok[$i]['tankorId']];
+ $felvehetoTankorok[$i]['letszam'] = getTankorLetszam($felvehetoTankorok[$i]['tankorId'],$DT);
+ $felvehetoTankorok[$i]['tanarok'] = getTankorTanaraiByInterval($felvehetoTankorok[$i]['tankorId'], array('tolDt' => $DT['tolDt'], 'igDt' => $DT['igDt'], 'result' => 'nevsor'));
+ }
+ return $felvehetoTankorok;
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/kepzes.php b/mayor-orig/www/include/modules/naplo/intezmeny/kepzes.php
new file mode 100644
index 00000000..e08e6856
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/kepzes.php
@@ -0,0 +1,64 @@
+<?php
+
+ function ujKepzes($kepzesNev, $tanev, $osztalyJellegId) {
+
+ $q = "INSERT INTO kepzes (kepzesNev,tanev, osztalyJellegId) VALUES ('%s', %u, %u)";
+ $v = array($kepzesNev, $tanev, $osztalyJellegId);
+ return db_query($q, array('fv' => 'ujKepzes', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v));
+
+ }
+
+ function kepzesEles($kepzesId, $kepzesEles) {
+
+ $q = "UPDATE kepzes SET kepzesEles=%u WHERE kepzesId =%u";
+ $v = array($kepzesEles,$kepzesId);
+ return db_query($q, array('fv' => 'kepzesEles', 'modul' => 'naplo_intezmeny', 'result' => 'update', 'values' => $v));
+
+ }
+
+ function kepzesModositas($ADAT) {
+
+ //$ADAT eredeti paraméterezése: $kepzesId, $kepzesNev, $tanev, $osztalyJellegId, $osztalyIds, $delOsztalyIds
+ extract($ADAT);
+
+ // Van-e ilyen képzés
+ $q = "SELECT COUNT(*) AS db FROM kepzes WHERE kepzesId = %u";
+ $v = array($kepzesId);
+ $db = db_query($q, array('modul'=> 'naplo_intezmeny','fv'=>'kepzesModositas','values'=>$v, 'result'=>'value'));
+
+ if ($db != 1) {
+ $_SESSION['alert'][] = 'message:wrong_data:hibás képzés azonosító:'.$kepzesId;
+ return false;
+ }
+
+ if (isset($osztalyJellegId) && $osztalyJellegId>0) {
+ $q = "UPDATE kepzes SET kepzesNev='%s',tanev=%u,osztalyJellegId=%u WHERE kepzesId=%u";
+ $v = array($kepzesNev,$tolTanev,$osztalyJellegId,$kepzesId);
+ }
+ db_query($q, array('modul'=> 'naplo_intezmeny','fv'=>'kepzesModositas','values'=>$v));
+
+ // TOROLNI NEM LEHET csak, ha egyetlen osztály-tag sincs hozzárendelve az adott képzéshez AZ ADOTT TANÉVBEN...
+ if (count($delOsztalyIds) > 0) {
+ foreach ($delOsztalyIds as $osztalyId) {
+ $q = "SELECT COUNT(*) FROM kepzesDiak LEFT JOIN osztalyDiak USING (diakId) WHERE kepzesId=%u AND osztalyId=%u
+ AND tolDt<='".$_TANEV['zarasDt']."' AND (igDt IS NULL OR igDt>='".$_TANEV['kezdesDt']."')
+ AND beDt<='".$_TANEV['zarasDt']."' AND (kiDt IS NULL OR kiDt>='".$_TANEV['kezdesDt']."')";
+ $db = db_query($q, array('fv'=>'kepzesModositas/del-osztaly#1','modul'=>'naplo_intezmeny','result'=>'value','values'=>array($kepzesId, $osztalyId)));
+ if ($db == 0) {
+ $q = "DELETE FROM kepzesOsztaly WHERE kepzesId=%u AND osztalyId=%u";
+ db_query($q, array('fv' => 'kepzesModositas/osztályhozzárendelés törlése', 'modul' => 'naplo_intezmeny', 'values' => array($kepzesId,$osztalyId)));
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:Az osztály hozzárendelés nem törölhető! '.$db.' db tanuló az osztályból hozzá van rendelve ehhez a képzéshez.';
+ }
+ }
+ }
+ if (count($osztalyIds)>0) {
+ $q = "REPLACE INTO kepzesOsztaly (kepzesId,osztalyId) VALUES (".implode("),(", array_fill(0, count($osztalyIds), '%u, %u')).")";
+ $v = array();
+ for ($i = 0; $i < count($osztalyIds); $i++) array_push($v, $kepzesId, $osztalyIds[$i]);
+ db_query($q, array('fv' => 'kepzesModositas/osztályhozzárendelés', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/kepzesOraterv.php b/mayor-orig/www/include/modules/naplo/intezmeny/kepzesOraterv.php
new file mode 100644
index 00000000..d689aa40
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/kepzesOraterv.php
@@ -0,0 +1,92 @@
+<?php
+
+ require_once('include/modules/naplo/share/kepzes.php');
+
+ function modifyKepzesOraterv($ADAT,$kepzesId) {
+
+ $lr = db_connect('naplo_intezmeny');
+
+ if (is_array($ADAT['oraszamok'])) foreach($ADAT['oraszamok'] as $evfolyamJel => $D) {
+ $q = "REPLACE INTO kepzesOraszam (kepzesId,evfolyamJel,kotelezoOraszam,maximalisOraszam) VALUES (%u,'%s',%f,%f)";
+ $v = array($kepzesId,$evfolyamJel,$D['kotelezo'],$D['max']);
+ db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'modifyKepzesOraterv', 'values'=>$v), $lr);
+ }
+
+ //blabla if
+ if (is_array($ADAT['adatok'])) {
+ foreach ($ADAT['adatok'] as $targyTipus => $X) {
+ foreach ($X as $targyId => $EGYTARGY) {
+ // [$evfolyamJel][$szemeszter]['oraszam'|'kovetelmeny']
+ if (is_array($EGYTARGY))
+ foreach ($EGYTARGY as $evfolyamJel => $DS) {
+ if (is_array($DS)) foreach($DS as $szemeszter => $D) {
+ if ($D['kovetelmeny']!='' && isset($D['oraszam'])) {
+ if ($targyTipus!='mintatantervi') {
+ $q = "SELECT kepzesOratervId FROM kepzesOraterv WHERE kepzesId=%u AND evfolyamJel='%s' AND szemeszter=%u AND tipus='%s'";
+ $v = array($kepzesId,$evfolyamJel,$szemeszter,$targyTipus);
+ $_oratervId = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'value','fv'=>'modifyKepzesOraterv', 'debug'=>false, 'values'=>$v), $lr);
+ if ($_oratervId>0) {
+ $q = "UPDATE kepzesOraterv SET hetiOraszam=%f,kovetelmeny='%s' WHERE kepzesOratervId=%u";
+ $v = array($D['oraszam'],$D['kovetelmeny'],$_oratervId);
+ } else {
+ $q = "INSERT INTO kepzesOraterv (kepzesId,targyId,evfolyamJel,szemeszter,hetiOraszam,kovetelmeny,tipus)
+ VALUES (%u,null,'%s',%u,%f,'%s','%s')";
+ $v = array($kepzesId,$evfolyamJel,$szemeszter,$D['oraszam'],$D['kovetelmeny'],$targyTipus);
+ }
+ } else {
+ $q = "SELECT kepzesOratervId FROM kepzesOraterv WHERE kepzesId=%u AND evfolyamJel='%s' AND szemeszter=%u AND tipus='%s' AND targyId=%u";
+ $v = array($kepzesId,$evfolyamJel,$szemeszter,$targyTipus,$targyId);
+ $_oratervId = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'value','fv'=>'modifyKepzesOraterv', 'debug'=>false, 'values'=>$v), $lr);
+ if ($_oratervId>0) {
+ $q = "UPDATE kepzesOraterv SET hetiOraszam=%f,kovetelmeny='%s' WHERE kepzesOratervId=%u";
+ $v = array($D['oraszam'],$D['kovetelmeny'],$_oratervId);
+ } else {
+ $q = "INSERT INTO kepzesOraterv (kepzesId,targyId,evfolyamJel,szemeszter,hetiOraszam,kovetelmeny,tipus) VALUES (%u,%u,'%s',%u,%f,'%s','%s')";
+ $v = array($kepzesId,$targyId,$evfolyamJel,$szemeszter,$D['oraszam'],$D['kovetelmeny'],$targyTipus);
+ }
+ }
+ } else { // ha nincs megadva követelmény, akkor töröljük
+ if ($targyTipus!='mintatantervi') {
+ $q = "DELETE FROM kepzesOraterv WHERE kepzesId=%u AND evfolyamJel='%s' AND szemeszter=%u AND tipus='%s'";
+ $v = array($kepzesId,$evfolyamJel,$szemeszter,$targyTipus);
+ } else {
+ $q = "DELETE FROM kepzesOraterv WHERE kepzesId=%u AND targyId=%u AND evfolyamJel='%s' AND szemeszter=%u";
+ $v = array($kepzesId,$targyId,$evfolyamJel,$szemeszter);
+ }
+ }
+ db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'modifyKepzesOraterv', 'debug'=>false, 'values'=>$v), $lr);
+ } /* if */
+ } /* if-foreach */
+ } /* foreach */
+ } /* foreach */
+ } /* if */
+ db_close($lr);
+ }
+
+ function dropKepzesOratervRekord($kepzesId,$tipus,$targyId) {
+ if ($tipus=='mintatantervi') {
+ $q = "DELETE FROM kepzesOraterv WHERE kepzesId=%u AND targyId=%u";
+ $v = array($kepzesId,$targyId);
+ } else {
+ $q = "DELETE FROM kepzesOraterv WHERE kepzesId=%u AND tipus='%s'";
+ $v = array($kepzesId,$tipus);
+ }
+ db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'dropKepzesOratervRekord', 'debug'=>false, 'values'=>$v));
+ }
+
+ function getKepzesOraszam($kepzesId) {
+ $q = "SELECT * FROM kepzesOraszam WHERE kepzesId=$kepzesId ORDER BY evfolyamJel ASC"; // order error!
+ return db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'getKepzesOraszam', 'result'=>'assoc', 'keyfield'=>'evfolyamJel'));
+ }
+
+ function kepzesOratervMasolas($masolandoKepzesId, $kepzesId) {
+
+ $q ="INSERT INTO kepzesOraterv (kepzesId, targyId, evfolyamJel, szemeszter, hetiOraszam, kovetelmeny, tipus)
+ SELECT %u AS kepzesId, targyId, evfolyamJel, szemeszter, hetiOraszam, kovetelmeny, tipus
+ FROM kepzesOraterv WHERE kepzesId=%u";
+ return db_query($q, array('debug'=>false,'fv'=>'kepzesOratervMasolas','modul'=>'naplo_intezmeny','values'=>array($kepzesId, $masolandoKepzesId)));
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/munkakozosseg.php b/mayor-orig/www/include/modules/naplo/intezmeny/munkakozosseg.php
new file mode 100644
index 00000000..d9c01d61
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/munkakozosseg.php
@@ -0,0 +1,288 @@
+<?php
+
+ // Az általános getter függvények a share-ben vannak (munkakozosseg, targy)
+
+ function ujMunkakozosseg($leiras, $mkVezId='') {
+
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'ujMunkakozosseg'));
+ if (!$lr) return false;
+
+ $result = false; // sikerült-e?
+
+ // Van-e már ilyen munkaközösség?
+ $q = "SELECT COUNT(mkId) FROM munkakozosseg WHERE leiras='%s'";
+ $num = db_query($q, array('fv' => 'ujMunkakozosseg', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($leiras)), $lr);
+
+ if ($num == 0) {
+ $v = array($leiras);
+ if ($mkVezId == '') {
+ $MKVEZID = 'NULL';
+ } else {
+ $MKVEZID = '%u';
+ $v[] = $mkVezId;
+ }
+ $q = "INSERT INTO munkakozosseg (leiras,mkVezId) VALUES ('%s',$MKVEZID)";
+ $result = db_query($q, array('fv' => 'ujMunkakozosseg', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+
+ } else {
+ // már van ilyen munkaközösség...
+ $_SESSION['alert'][] = 'massege:wrong_data:duplikált munkaközösség leírás (név)';
+ }
+ db_close($lr);
+
+ return $result;
+
+ }
+
+ function modMunkakozosseg($mkId,$leiras,$mkVezId,$MKUJTAGOK,$MKTORLENDOTAGOK) {
+
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'modMunkakozosseg'));
+
+ if (!$lr) return false;
+ if ($mkId=='') { $_SESSION['alert'][] = 'message::no mkId'; return false; }
+
+ $result = false; // sikerült-e?
+
+ // Van-e már ilyen munkaközösség?
+ $q = "SELECT COUNT(mkId) FROM munkakozosseg WHERE mkId=%u";
+ $num = db_query($q, array('fv' => 'modMunkakozosseg', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => array($mkId)), $lr);
+
+ if ($num != 0) {
+ if ($mkVezId == '') {
+ $q = "UPDATE munkakozosseg SET leiras='%s',mkVezId=NULL WHERE mkId=%u";
+ $v = array($leiras, $mkId);
+ } else {
+ $q = "UPDATE munkakozosseg SET leiras='%s',mkVezId=%u WHERE mkId=%u";
+ $v = array($leiras, $mkVezId, $mkId);
+ }
+ $result = db_query($q, array('fv' => 'modMunkakozosseg', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ } else {
+ // már van ilyen munkaközösség...
+ $_SESSION['alert'][] = 'massege:wrong_data:mkId='.$mkId;
+ }
+
+ if ($result) {
+ if (is_array($MKUJTAGOK) && count($MKUJTAGOK)>0) {
+ //mkTanar[mkId,tanarId]
+ for($i=0; $i<count($MKUJTAGOK); $i++) {
+ $_tanarId = $MKUJTAGOK[$i];
+ $q = "REPLACE INTO mkTanar (mkId,tanarId) VALUES (%u, %u)";
+ db_query($q, array('fv' => 'modMunkakozosseg', 'modul' => 'naplo_intezmeny', 'values' => array($mkId,$_tanarId)), $lr);
+ }
+ }
+ if (is_array($MKTORLENDOTAGOK) && count($MKTORLENDOTAGOK)>0) {
+ $q = "DELETE FROM mkTanar WHERE mkId=%u AND tanarId IN (".implode(',', array_fill(0, count($MKTORLENDOTAGOK), '%u')).")";
+ db_query($q, array('fv' => 'modMunkakozosseg', 'modul' => 'naplo_intezmeny', 'values' => mayor_array_join(array($mkId),$MKTORLENDOTAGOK)), $lr);
+ }
+ }
+
+
+ db_close($lr);
+
+ return $result;
+
+ }
+
+
+
+
+ function ujTargy($ADAT) {
+
+
+ $leiras=$ADAT['leiras'];
+ $mkId=$ADAT['mkId'];
+ $targyJelleg=$ADAT['targyJelleg'];
+ $kirTargyId=$ADAT['kirTargyId'];
+
+ if ($leiras=='') {
+ $_SESSION['alert'][] = 'message:UI:empty field';
+ return false;
+ }
+
+ if (is_numeric($kirTargyId)) {
+ $q = "INSERT INTO targy (targyNev,mkId,targyJelleg,kirTargyId) VALUES ('%s',%u,'%s',%u)";
+ $v = array($leiras,$mkId,$targyJelleg,$kirTargyId);
+ } else {
+ $q = "INSERT INTO targy (targyNev,mkId,targyJelleg) VALUES ('%s',%u,'%s')";
+ $v = array($leiras,$mkId,$targyJelleg);
+ }
+ $result = db_query($q,array('modul'=>'naplo_intezmeny', 'fv'=>'ujTargy','result'=>'insert', 'detailed'=>false, 'debug'=>false, 'values'=>$v));
+
+ return $result;
+
+ }
+
+ function targyModosit($ADAT) {
+ if (is_numeric($ADAT['kirTargyId'])) {
+ $q = "UPDATE targy SET targyJelleg='%s',zaroKovetelmeny='%s',evkoziKovetelmeny='%s',targyRovidNev='%s',kirTargyId=%u WHERE targyId=%u";
+ $v = array($ADAT['targyJelleg'],$ADAT['zaroKovetelmeny'],$ADAT['evkoziKovetelmeny'],$ADAT['targyRovidNev'], $ADAT['kirTargyId'], $ADAT['targyId']);
+ } else {
+ $q = "UPDATE targy SET targyJelleg='%s',zaroKovetelmeny='%s',evkoziKovetelmeny='%s',targyRovidNev='%s' WHERE targyId=%u";
+ $v = array($ADAT['targyJelleg'],$ADAT['zaroKovetelmeny'],$ADAT['evkoziKovetelmeny'],$ADAT['targyRovidNev'],$ADAT['targyId']);
+ }
+ return db_query($q,array('modul'=>'naplo_intezmeny', 'fv'=>'targyModosit', 'detailed'=>false, 'debug'=>false, 'values'=>$v));
+ }
+
+ function targyTorol($targyId,$mkId) {
+
+ $q = "DELETE FROM targy WHERE targyId=%u AND mkId=%u";
+ return db_query($q, array('fv' => 'targyTorol', 'modul' => 'naplo_intezmeny', 'values' => array($targyId, $mkId)), $lr);
+
+ }
+
+
+ function munkakozossegTorol($mkId) {
+
+ $q = "DELETE FROM munkakozosseg WHERE mkId=%u";
+ return db_query($q, array('fv' => 'munkakozossegTorol', 'modul' => 'naplo_intezmeny', 'values' => array($mkId)), $lr);
+
+ }
+
+ function targyBeolvasztas($ADAT) {
+ /**
+ * Elvárt paraméterek: $ADAt['targyId'], $ADAT['befogadoTargyId'], $ADAT['tankorJeloles'] (lehet üres)
+ **/
+
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+
+ // A befogadó tárgy adatai
+ $befogadoTargy = getTargyById($ADAT['befogadoTargyId']);
+ $targyAdat = getTargyById($ADAT['targyId']);
+ // A tárgyhoz tartozó tankörök lekérdezése
+ $q = "SELECT tankorId FROM tankor WHERE targyId=%u";
+ $tankorIds = db_query($q, array('fv'=>'targyBeolvasztas/tankorok','result'=>'idonly','values'=>array($ADAT['targyId'])), $lr);
+ if (is_array($tankorIds) && count($tankorIds)>0) /*foreach ($tankorIds as $tankorId)*/ {
+ /* tárgyhoz tartozó tankörök átnevezése */
+ if (isset($ADAT['tankorJeloles'])) {
+ $q = "UPDATE tankorSzemeszter SET tankorNev=CONCAT(LEFT(tankorNev,LOCATE('%s',tankorNev)-1),'%s',' ','%s')
+ WHERE tankorId IN (".implode(',', array_fill(0,count($tankorIds),'%u')).")";
+ $v = mayor_array_join(array($targyAdat['targyNev'], $befogadoTargy['targyNev'], $ADAT['tankorJeloles']), $tankorIds);
+ } else {
+ $q = "UPDATE tankorSzemeszter SET tankorNev=REPLACE(tankorNev,'%s','%s')
+ WHERE tankorId IN (".implode(',', array_fill(0,count($tankorIds),'%u')).")";
+ $v = mayor_array_join(array($targyAdat['targyNev'], $befogadoTargy['targyNev']), $tankorIds);
+ }
+ $r = db_query($q, array('fv'=>'targyBeolvasztas/tankör-átnevezés','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ /* tárgyhoz tartozó tannkörök áthelyezése */
+ $q = "UPDATE tankor SET targyId=%u WHERE targyId=%u";
+ $r = db_query($q, array('fv'=>'targyBeolvasztas/tankör-tárgy','values'=>array($ADAT['befogadoTargyId'], $ADAT['targyId'])), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ }
+
+ /* tanév adatbázisok lekérdezése */
+ $q = "SHOW DATABASES LIKE 'naplo_".__INTEZMENY."%'";
+ $dbs = db_query($q, array('fv'=>'targyBeolvasztas/dbs','result'=>'idonly'), $lr);
+ if (!$dbs) { db_rollback($lr); db_close($lr); return false; }
+ if (is_array($dbs) && count($dbs) > 0) foreach ($dbs as $db) {
+ /* tanév adatbázis tábláinak lekérdezése */
+ $q = "SHOW TABLES FROM $db";
+ $tables = db_query($q, array('fv'=>'targyBeolvasztas/tables','result'=>'idonly'), $lr);
+ if (is_array($tables) && count($tables)>0) foreach ($tables as $table) {
+ if ($table == 'targySorszam') {
+ /* törlendő: targySorszam, */
+ $q = "DELETE FROM `$db`.`targySorszam` WHERE targyId=%u";
+ $r = db_query($q, array('fv'=>'targyBeolvasztas/targySorszam','values'=>array($ADAT['targyId'])), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ } else {
+ /* Tábla tartalmaz-e targyId mezőt... */
+ $q = "SHOW FIELDS FROM `$db`.`$table` LIKE 'targyId'";
+ $ret = db_query($q, array('fv'=>'targyBeolvasztas/table-targyId','result'=>'idonly'), $lr);
+ if (is_array($ret) && count($ret)>0) {
+ /* ... ha igen: targyId módosítás */
+ $q = "UPDATE `$db`.`$table` SET targyId=%u WHERE targyId=%u";
+ $v = array($ADAT['befogadoTargyId'], $ADAT['targyId']);
+ $r = db_query($q, array('fv'=>'targyBeolvasztas/table','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ }
+ }
+ }
+ }
+ /* intézményi adattáblák lekérdezése */
+ $q = "SHOW TABLES";
+ $tables = db_query($q, array('fv'=>'targyBeolvasztas/i-tables','result'=>'idonly'), $lr);
+ if (is_array($tables) && count($tables)>0) foreach ($tables as $table) {
+ if ($table != 'targy') {
+ /* Tábla tartalmaz-e targyId mezőt... */
+ $q = "SHOW FIELDS FROM `$table` LIKE 'targyId'";
+ $ret = db_query($q, array('fv'=>'targyBeolvasztas/i-table-targyId','result'=>'idonly'), $lr);
+ if (is_array($ret) && count($ret)>0) {
+ /* ... ha igen: targyId módosítás */
+ $q = "UPDATE IGNORE `$table` SET targyId=%u WHERE targyId=%u";
+ $v = array($ADAT['befogadoTargyId'], $ADAT['targyId']);
+ $r = db_query($q, array('fv'=>'targyBeolvasztas/i-table','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ }
+ } // != tárgy
+ }
+
+ /* targy törlése */
+ $q = "DELETE FROM targy WHERE targyId=%u";
+ $r = db_query($q, array('fv'=>'targyBeolvasztas/delete','values'=>array($ADAT['targyId'])), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+ function targyMkValtas($ADAT) {
+ /**
+ * Elvárt paraméterek: $ADAt['targyId'], $ADAT['befogadoMkId']
+ **/
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ // Az adott tárgy tanköreinek jelenlegi tanárai között van-e az új munkaközösségben nem szereplő
+ $q = "SELECT DISTINCT tanarId FROM tankor LEFT JOIN tankorTanar USING (tankorId)
+ WHERE targyId=%u AND beDt<=CURDATE() AND (kiDt IS NULL OR kiDt>=CURDATE())
+ AND tanarId NOT IN (SELECT tanarId FROM mkTanar WHERE mkId=%u)";
+ $tanarIds = db_query($q, array('fv'=>'targyMkValtas/tanarIds','result'=>'idonly','values'=>array($ADAT['targyId'], $ADAT['befogadoMkId'])), $lr);
+ if (is_array($tanarIds) && count($tanarIds)>0) {
+ db_rollback($lr);
+ db_close($lr);
+ $_SESSION['alert'][] = 'message:wrong_data:targyMkValtas:Van az új munkaközösségbe nem tartozó érintett tanár!:'.implode(',',$tanarIds);
+ return false;
+ }
+ // munkaközösség váltás
+ $q = "UPDATE targy SET mkId=%u WHERE targyId=%u";
+ $r = db_query($q, array('fv'=>'targyMkValtas/mkId','values'=>array($ADAT['befogadoMkId'], $ADAT['targyId'])), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+ function targyAtnevezes($ADAT) {
+ /**
+ * Elvárt paraméterek: $ADAt['targyId'], $ADAT['ujTargyNev']
+ **/
+
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+
+ $targyAdat = getTargyById($ADAT['targyId']);
+ // tankörnév módosítás
+ $q = "UPDATE tankorSzemeszter SET tankorNev=REPLACE(tankorNev,'%s','%s')
+ WHERE tankorId IN (SELECT tankorId FROM tankor WHERE targyId=%u)";
+ $v = array($targyAdat['targyNev'], $ADAT['ujTargyNev'], $ADAT['targyId']);
+ $r = db_query($q, array('fv'=>'targyAtnevezes/tankor','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ // tárgy átnevezés
+ $q = "UPDATE targy SET targyNev='%s' WHERE targyId=%u";
+ $v = array($ADAT['ujTargyNev'], $ADAT['targyId']);
+ $r = db_query($q, array('fv'=>'targyAtnevezes/targy','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/osztaly.php b/mayor-orig/www/include/modules/naplo/intezmeny/osztaly.php
new file mode 100644
index 00000000..a23daa2e
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/osztaly.php
@@ -0,0 +1,474 @@
+<?php
+
+
+function ujOsztaly($ADAT) {
+/*
+ TODO: átnézendő az új évfolyam rendszer esetén:
+ kTanev, vTanev - az osztály tényleges indulási és befejező tanéve (ami != a végzés tanéve) -- ok
+ osztalyJel generálás (évfolyam lekérdezés) -- ok
+*/
+
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ $leiras = $ADAT['leiras']; $kTanev = $ADAT['kezdoTanev']; $vTanev = $ADAT['vegzoTanev'];
+ $kEvfolyamSorszam = $ADAT['kezdoEvfolyamSorszam']; $jel = $ADAT['jel'];
+ $telephelyId = $ADAT['telephelyId'];
+ // Felhasználva, hogy le vannak kérdzve a definiált tanévek
+ // Ellenőrizzük, hogy a megadott tanév helyes-e...
+ if (!in_array($kTanev,$ADAT['tanevek']) || !in_array($vTanev,$ADAT['tanevek'])) {
+ $_SESSION['alert'][] = 'message:wrong_data:ujOsztaly:'."$kTanev/$vTanev";
+ return false;
+ }
+
+ // Csatlakozás az adatbázishoz
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'ujOsztaly'));
+ if (!$lr) return false;
+
+ // Osztály felvétele
+ if (isset($telephelyId)) {
+ $q = "INSERT INTO osztaly (leiras, kezdoTanev, vegzoTanev, kezdoEvfolyamSorszam, jel, telephelyId, osztalyJellegId)
+ VALUES ('%s', %u, %u, %u, '%s', %u, %u)";
+ $v = array($leiras, $kTanev, $vTanev, $kEvfolyamSorszam, $jel, $telephelyId, $ADAT['osztalyJellegId']);
+ } else {
+ $q = "INSERT INTO osztaly (leiras, kezdoTanev, vegzoTanev, kezdoEvfolyamSorszam, jel, osztalyJellegId)
+ VALUES ('%s', %u, %u, %u, '%s', %u)";
+ $v = array($leiras, $kTanev, $vTanev, $kEvfolyamSorszam, $jel, $ADAT['osztalyJellegId']);
+ }
+ $osztalyId = db_query($q, array('fv' => 'ujOsztaly', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+ if (!$osztalyId) { db_close($lr); return false; }
+
+ // Az aktív tanévek osztalyNaplo táblájába vegyük fel az osztályt! És ha inicializálva van a munkaterv, akkor a default-hoz rendeljük is hozzá!
+ // Aktív tanévek lekérdezése
+ $ok = updateOsztalyNev($osztalyId, $lr);
+
+ db_close($lr);
+ return $osztalyId;
+}
+
+function updateOsztalyNev($osztalyId, $lr = null) {
+ /*
+ Az aktív tanévek osztalyNaplo táblájába vegyük fel/módosítsuk az osztályt! És ha inicializálva van a munkaterv, és nincs még hozzárendelve,
+ akkor a default-hoz rendeljük is hozzá!
+ Hopp! És a tankör-nevek?
+ */
+
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ // Aktív tanévek lekérdezése
+ $q ="SELECT DISTINCT tanev FROM szemeszter WHERE statusz = 'aktív'";
+ $ret = db_query($q, array('fv' => 'updateOsztalyNev', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array()), $lr);
+ if (!is_array($ret)) { return false; }
+ $ok = true;
+ foreach ($ret as $key => $te) {
+ $tanevDb = tanevDbNev(__INTEZMENY,$te);
+ $osztalyAdat = getOsztalyAdat($osztalyId, $te, $lr);
+ if ($te < $osztalyAdat['kezdoTanev'] || $te > $osztalyAdat['vegzoTanev']) { // ebben a tanévben nem érintett az osztály
+ // törlés az osztalyNaplo táblából
+ $q = "DELETE FROM `%s`.osztalyNaplo WHERE osztalyId=%u";
+ $v = array($tanevDb, $osztalyId);
+ $ok = $ok && db_query($q, array('fv' => 'updateOsztalyNev/osztalyNaplo - delete', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ // törlés a munkatervOsztaly táblából
+ $q = "DELETE FROM `%s`.munkatervOsztaly WHERE osztalyId=%u";
+ $v = array($tanevDb, $osztalyId);
+ $ok = $ok && db_query($q, array('fv' => 'updateOsztalyNev/munkatervOsztaly - delete', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ } else { // ebben a tanévben érintett az osztály
+ $osztalyJel = getOsztalyJel($osztalyId, $te, $osztalyAdat, $lr);
+ $evfolyamJel = getEvfolyamJel($osztalyId, $te, $osztalyAdat, $osztalyJellel=false, $lr);
+ $evfolyam = getEvfolyam($osztalyId, $te, $osztalyAdat, $lr);
+ // Osztálynapló felvétele
+ $q = "REPLACE INTO `%s`.osztalyNaplo (osztalyId, osztalyJel, evfolyam, evfolyamJel) VALUES (%u, '%s', %u, '%s')";
+ $v = array($tanevDb, $osztalyId, $osztalyJel, $evfolyam, $evfolyamJel);
+ $ok = $ok && db_query($q, array('fv' => 'updateOsztalyNev/osztalyNaplo - replace', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ if (!$ok) continue;
+ // Van-e inicializált munkaterv?
+ $q = "SELECT COUNT(*) FROM `%s`.munkaterv WHERE munkatervId=1";
+ $v = array($tanevDb);
+ $db = db_query($q, array('fv' => 'updateOsztalyNev/munkaterv', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'), $lr);
+ if ($db == 1) { // Ha van, akkor van-e már osztaly-munkaterv hozzárendelés
+ $q = "SELECT COUNT(*) FROM `%s`.munkatervOsztaly WHERE osztalyId=%u";
+ $v = array($tanevDb, $osztalyId);
+ $db = db_query($q, array('fv' => 'updateOsztalyNev/munkatervOsztaly - select', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result'=>'value'), $lr);
+ if ($db == 0) { // Ha nincs, akkor rendeljük az 1-es munkatervhez az osztályt
+ $q = "INSERT INTO `%s`.munkatervOsztaly (munkatervId, osztalyId) VALUES (1, %u)";
+ $v = array($tanevDb, $osztalyId);
+ $ok = $ok && db_query($q, array('fv' => 'updateOsztaly/munkatervOsztaly - insert', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ }
+ }
+ }
+ } // foreach...
+ // tankör-nevek módosítása
+ $q = "SELECT tankorId FROM tankorOsztaly WHERE osztalyId = %u";
+ $v = array($osztalyId);
+ $tankorIds = db_query($q, array('fv' => 'updateOsztalyNev', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $lr);
+ if (is_array($tankorIds) && count($tankorIds)>0) {
+ for ($i=0; $i<count($tankorIds); $i++) {
+ $_tankorId = $tankorIds[$i];
+ $ujTankorNevek[] = (setTankorNev($_tankorId, $tankorNevExtra=null, $lr)); // ha ez nem sikerül, a session üzeni majd a megfelelő hibát, nem a tranzakció része
+ }
+ }
+ return $ok;
+}
+
+function updateOsztaly($osztalyId, $file, $MEZO_LISTA, $KULCS_MEZOK, $mezo_elvalaszto = ' ', $rovatfej = false) {
+
+
+ if (!file_exists($file)) {
+ $_SESSION['alert'][] = 'message:file_not_found:'.$file;
+ return false;
+ }
+
+ if (!is_array($MEZO_LISTA)) {
+ $_SESSION['alert'][] = 'message:wrong_parameter:MEZO_LISTA';
+ return false;
+ }
+
+ if (!is_array($KULCS_MEZOK)) {
+ $_SESSION['alert'][] = 'message:wrong_parameter:KULCS_MEZOK';
+ return false;
+ }
+
+ // A beDt és kiDt kiszűrése a MEZO_LISTABOL
+ $keyBeDt = array_search('beDt',$MEZO_LISTA);
+ if (!$keyBeDt && $keyBeDt !== 0) $keyBeDt = false;
+ else $MEZO_LISTA[$keyBeDt] = '';
+ $keyKiDt = array_search('kiDt',$MEZO_LISTA);
+ if (!$keyKiDt && $keyKiDt !== 0) $keyKiDt = false;
+ else $MEZO_LISTA[$keyKiDt] = '';
+
+ // és a KULCS_MEZOK közül
+ $KULCS_MEZOK = array_diff($KULCS_MEZOK,array('beDt','kiDt'));
+
+ // A frissítendő attribútumok listája
+ $attrList = array_values(array_filter($MEZO_LISTA));
+
+ $fp = fopen($file,'r');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open_error:'.$file;
+ return false;
+ }
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'updateOsztaly'));
+ if (!$lr) {
+ $_SESSION['alert'][] = 'message:db_connect_failure:updateOsztaly';
+ fclose($fp);
+ return false;
+ }
+ db_start_trans($lr);
+
+ // Az első sor kihagyása
+ if ($rovatfej) $sor = fgets($fp,1024);
+ $TAG = $TAGV = array();
+ while ($sor = fgets($fp, 1024)) {
+
+ $adatSor = explode($mezo_elvalaszto, chop($sor));
+ $beDt = $kiDt = '';
+ if ($keyBeDt !== false) $beDt = $adatSor[$keyBeDt];
+ if ($keyKiDt !== false) $kiDt = $adatSor[$keyKiDt];
+ // keresési feltétel összerakása
+ $where = $wherev = array();
+ for ($i = 0; $i < count($KULCS_MEZOK); $i++) {
+ if ($adatSor[$KULCS_MEZOK[$i]] != '') {
+ if ($adatSor[$KULCS_MEZOK[$i]] == '\N') {
+ $where[] = "`%s`=NULL";
+ array_push($wherev, $MEZO_LISTA[$KULCS_MEZOK[$i]]);
+ } else {
+ $where[] = "`%s`='%s'";
+ array_push($wherev, $MEZO_LISTA[$KULCS_MEZOK[$i]], $adatSor[$KULCS_MEZOK[$i]]);
+ }
+ }
+ }
+ if (count($where) > 0) {
+ $q = "SELECT diakId FROM diak WHERE ".implode(' AND ', $where);
+ $diakIds = db_query($q, array('fv' => 'updateOsztaly', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $wherev), $lr);
+ $num = count($diakIds);
+ } else { $num = 0; }
+ if ($num == 1 && _SKIP_ON_DUP === true) { $_SESSION['alert'][] = 'info:_SKIP_ON_DUP:'.serialize($sor); continue; }
+ if ($num == 1) { // update
+ // tag felvételhez adatsor
+ $diakId = $diakIds[0];
+ if (!isset($kiDt) || $kiDt=='') {
+ $TAG[] = "(%u, %u, '%s', NULL)";
+ array_push($TAGV, $diakId, $osztalyId, $beDt);
+ } else {
+ $TAG[] = "(%u, %u, '%s', '%s')";
+ array_push($TAGV, $diakId, $osztalyId, $beDt, $kiDt);
+ }
+ // diak adatok frissítése
+ $UPDATE = $UPDATEV = array();
+ for ($i = 0; $i < count($MEZO_LISTA); $i++) {
+ if (
+ $MEZO_LISTA[$i] != ''
+ and $adatSor[$i] != ''
+ and !in_array($i, $KULCS_MEZOK)
+ ) {
+ $UPDATE[] = "`%s`='%s'";
+ array_push($UPDATEV, $MEZO_LISTA[$i], $adatSor[$i]);
+ }
+ }
+ if (count($UPDATE) > 0) {
+ $q = "UPDATE diak SET ".implode(',', $UPDATE)." WHERE ".implode(' AND ', $where);
+ $v = mayor_array_join($UPDATEV, $wherev);
+ $r = db_query($q, array('fv' => 'updateOsztaly/update', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if (!$r) {
+ db_close($lr);
+ fclose($fp);
+ return false;
+ }
+ }
+ } elseif ($num == 0) { // insert
+ $insertValues = $insertPatterns = array();
+ for ($i = 0; $i < count($MEZO_LISTA); $i++) {
+ if ($MEZO_LISTA[$i] != '') {
+ if ($adatSor[$i] == '\N') {
+ $insertValues[] = 'NULL';
+ $insertPatterns[] = '%s';
+ } else {
+ $insertValues[] = $adatSor[$i];
+ $insertPatterns[] = "'%s'";
+ }
+ }
+ }
+ $q = 'INSERT INTO `diak` ('.implode(',', array_fill(0, count($attrList), '%s')).')
+ VALUES ('.implode(',', $insertPatterns).')';
+ $v = mayor_array_join($attrList, $insertValues);
+ /*
+
+
+
+ $value = array();
+ for ($i = 0; $i < count($MEZO_LISTA); $i++) {
+ if ($MEZO_LISTA[$i] != '') $value[] = $adatSor[$i];
+ }
+ // beszúrás egyesével, hogy meglegyen a diakId (insert_id)
+ $q = "INSERT INTO diak (`".implode("`,`", array_fill(0, count($attrList), '%s'))."`)
+ VALUES ('".implode("','", array_fill(0, count($value), '%s'))."')";
+ $v = array_merge($attrList, $value);
+
+ */
+ $diakId = db_query($q, array('fv' => 'updateOsztaly/insert', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v, 'rollback' => true), $lr);
+ if (!$diakId) {
+ db_close($lr);
+ fclose($fp);
+ return false;
+ }
+
+ if ($diakId) {
+ // tagok adatai
+ if (!isset($kiDt) || $kiDt=='') {
+ $TAG[] = "(%u, %u,'%s', NULL)";
+ array_push($TAGV, $diakId, $osztalyId, $beDt);
+ } else {
+ $TAG[] = "(%u, %u, '%s', '%s')";
+ array_push($TAGV, $diakId, $osztalyId, $beDt, $kiDt);
+ }
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:'.$where;
+ }
+ } // while
+ if (count($TAG) > 0) { // tagok felvétele az osztályba
+ $q = "REPLACE INTO osztalyDiak (diakId,osztalyId,beDt,kiDt) VALUES ".implode(",\n",$TAG);
+ $r = db_query($q, array('fv' => 'updateOsztaly/osztályba', 'modul' => 'naplo_intezmeny', 'values' => $TAGV, 'rollback'=>true), $lr);
+ if (!$r) {
+ db_close($lr);
+ fclose($fp);
+ return false;
+ }
+ }
+ db_commit($lr);
+ db_close($lr);
+
+ fclose($fp);
+ return true;
+}
+
+/* áthelyezve: share/osztalyModifier.php
+// osztalyId, tanarId, beDt --> kiDt
+function osztalyfonokKileptetes($osztalyId, $tanarId, $beDt, $kiDt, $olr = '') {
+...
+}
+*/
+
+function osztalyfonokKinevezes($osztalyId, $tanarId, $beDt, $lr = null) {
+
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ // Ellenőrizzük, hogy az adott időszakban nincs-e már kinevezve ofőnek
+ $q = "SELECT COUNT(*) AS db FROM osztalyTanar WHERE osztalyId=%u AND tanarId=%u
+ AND (beDt<'%s' AND '%s'<kiDt)";
+ $v = array($osztalyId, $tanarId, $beDt, $beDt);
+ $db = db_query($q, array('fv' => 'osztalyfonokKinevezes', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v), $lr);
+
+ if ($db > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:már ki van nevezve:'."$beDt - $kiDt:$num";
+ return false;
+ }
+
+ $q = "INSERT INTO osztalyTanar (osztalyId, tanarId, beDt, kiDt) VALUES (%u, %u, '%s', NULL)";
+ $v = array($osztalyId, $tanarId, $beDt);
+ return db_query($q, array('fv' => 'osztalyfonokKinevezes', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+
+}
+
+/*
+ TODO: az osztalyJellegId módosítása nem megengedett, vagy végig kell gondolni,
+ hogy mi mindent érint (osztalyJel, evfolyam, evfolyamJel - minden érintett tanév osztalyNaplo táblájában+tankör nevek+vegzoTanev...)
+*/
+function osztalyLeirasTelephelyModositas($osztalyId, $leiras, $telephelyId, $osztalyJellegId, $kezdoEvfolyamSorszam, $osztalyAdat, $lr = null) {
+
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ if (isset($telephelyId) && $telephelyId != '') {
+ $q = "UPDATE osztaly SET leiras='%s',telephelyId=%u, kezdoEvfolyamSorszam=%u WHERE osztalyId=%u";
+ $v = array($leiras, $telephelyId, $kezdoEvfolyamSorszam, $osztalyId);
+ } else {
+ $q = "UPDATE osztaly SET leiras='%s',telephelyId=NULL, kezdoEvfolyamSorszam=%u WHERE osztalyId=%u";
+ $v = array($leiras, $kezdoEvfolyamSorszam, $osztalyId);
+ }
+ $ret = db_query($q, array('fv' => 'osztalyLeirasTelephelyModositas', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ return osztalyJellegModositas($osztalyId, $osztalyJellegId, $osztalyAdat, $lr);
+
+}
+
+function osztalyJellegModositas($osztalyId, $osztalyJellegId, $osztalyAdat, $lr = null) {
+
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ // Az osztalyJelleg lekérdezése
+ $ojAdat = getOsztalyJellegAdat($osztalyJellegId);
+ $ojEvfolyamJelek = explode(',', $ojAdat['evfolyamJelek']);
+ // csak akkor módosítunk, ha az oszály évfolyamainak száma <= az osztály-jelleg évfolyamainak száma
+ if (count($ojEvfolyamJelek) < ($osztalyAdat['vegzoTanev']-$osztalyAdat['kezdoTanev']+$osztalyAdat['kezdoEvfolyamSorszam'])) {
+ $_SESSION[] = 'message:wrong_data:Az osztály évfolyamainak száma nem engedi meg az adott osztály-jellegre váltást';
+ return false;
+ }
+ // osztalyJelleg módosítása
+ $q = "UPDATE osztaly SET osztalyJellegId=%u WHERE osztalyId=%u";
+ $v = array($osztalyJellegId, $osztalyId);
+ $ret = db_query($q, array('fv' => 'osztalyJellegModositas', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ // tanév adatbázisok frissítése (osztalyNaplo, munkatervOsztaly)
+ return updateOsztalyNev($osztalyId, $lr);
+}
+
+function osztalyTorles($osztalyId) {
+
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ $q = "DELETE FROM osztaly WHERE osztalyId=%u";
+ return db_query($q, array('fv' => 'osztalyTorles', 'modul' => 'naplo_intezmeny', 'values' => array($osztalyId)));
+
+}
+
+function ujTag($osztalyId, $diakId, $beDt, $kiDt) {
+/*
+ * Az osztályba sorolás MOSTANTÓL többszakaszos, mint pl. a tankörbesorolás, azaz a diakId:osztalyId:beDt a
+ * kulcs a kapcsolótáblában.
+ */
+
+ // Csatlakozás az adatbázishoz
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'ujTag'));
+ if (!$lr) return false;
+ db_start_trans($lr);
+
+ // Van-e már beDt-t tartalmazó osztálytagsága
+ $q = "SELECT beDt FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND beDt<'%s' AND (kiDt IS NULL OR kiDt >= '%s')";
+ $ret = db_query($q, array('fv' => 'ujTag', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($osztalyId, $diakId, $beDt, $beDt)));
+ if (!is_null($ret)) $beDt = $ret;
+
+ if ($kiDt != '') {
+ // Ha kiDt nem üres, akkor: van-e kiDt-t tartalmazó osztálytagsága
+ $q = "SELECT kiDt FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND beDt<'%s' AND (kiDt IS NULL OR kiDt >= '%s')";
+ $ret = db_query($q, array('fv' => 'ujTag', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($osztalyId, $diakId, $kiDt, $kiDt)));
+ if (!is_null($ret)) $kiDt = $ret['kiDt'];
+ }
+
+ if ($kiDt == '') {
+ // Ha $kiDt üres, akkor töröljük az eddigi bejegyzéseket a lefedett tartományból és felvesszük az újat
+ $q = "DELETE FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND beDt>='%s'";
+ db_query($q, array('fv' => 'ujTag/töröl', 'modul' => 'naplo_intezmeny', 'values' => array($osztalyId, $diakId, $beDt)));
+ $q = "INSERT INTO osztalyDiak (osztalyId, diakId, beDt, kiDt) VALUES (%u, %u, '%s', NULL)";
+ db_query($q, array('fv' => 'ujTag/felvesz', 'modul' => 'naplo_intezmeny', 'values' => array($osztalyId, $diakId, $beDt)));
+ } else {
+ // Ha $kiDt nem üres, akkor töröljük az eddigi bejegyzéseket a lefedett tartományból és felvesszük az újat
+ $q = "DELETE FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND '%s'<=beDt AND kiDt<='%s'";
+ db_query($q, array('fv' => 'ujTag/töröl', 'modul' => 'naplo_intezmeny', 'values' => array($osztalyId, $diakId, $beDt, $kiDt)));
+ $q = "INSERT INTO osztalyDiak (osztalyId, diakId, beDt, kiDt) VALUES (%u, %u, '%s', '%s')";
+ db_query($q, array('fv' => 'ujTag/felvesz', 'modul' => 'naplo_intezmeny', 'values' => array($osztalyId, $diakId, $beDt, $kiDt)));
+ }
+
+ db_commit($lr);
+ db_close($lr);
+ return $r;
+}
+
+function diakKepzesModositas($diakIds, $kepzesMod, $dt) {
+
+ $modKepzesIds = array_keys($kepzesMod);
+
+ if (!is_array($diakIds) || !is_array($modKepzesIds) || count($diakIds) == 0) return false;
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+
+ // A megadott diákok adott dátum szerinti képzései
+ $q = "SELECT kepzesId, diakId FROM kepzesDiak WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") AND tolDt<='%s' AND (igDt IS NULL OR '%s'<=igDt)";
+ $v = mayor_array_join($diakIds, array($dt,$dt));
+ $kepzesOld = db_query($q, array('fv' => 'diakKepzesModositas/dKepzes','modul'=>'naplo_intezmeny','values'=>$v,'result'=>'keyvalues'), $lr);
+ if (!is_array($kepzesOld)) { db_rollback($lr); db_close($lr); return false; }
+
+ $oldKepzesIds = array_keys($kepzesOld);
+ $kepzesIds = array_unique(array_merge($modKepzesIds, $oldKepzesIds));
+ foreach ($kepzesIds as $kepzesId) {
+
+ if (!is_array($kepzesMod[$kepzesId])) $kepzesMod[$kepzesId] = array();
+ if (!is_array($kepzesOld[$kepzesId])) $kepzesOld[$kepzesId] = array();
+
+ $add = array_unique(array_diff($kepzesMod[$kepzesId], $kepzesOld[$kepzesId]));
+ $del = array_unique(array_diff($kepzesOld[$kepzesId], $kepzesMod[$kepzesId]));
+ $diff = array_unique(array_merge($add, $del));
+ // Aki $dt után került be a képzésbe és most kiveendő vagy felveendő, azt töröljük
+ if (count($diff) > 0) {
+ $q = "DELETE FROM kepzesDiak WHERE kepzesId=%u AND tolDt>'%s'
+ AND diakId IN (".implode(',',array_fill(0,count($diff),'%u')).")";
+ $v = mayor_array_join(array($kepzesId, $dt), $diff);
+ $r = db_query($q, array('fv'=>'diakKepzesModositas/delete','modul'=>'naplo_intezmeny','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ }
+ if (count($del) > 0) {
+ // a tolDt=$dt esetén csak a lezárandókat kell törölni
+ $q = "DELETE FROM kepzesDiak WHERE kepzesId=%u AND tolDt='%s'
+ AND diakId IN (".implode(',',array_fill(0,count($del),'%u')).")";
+ $v = mayor_array_join(array($kepzesId, $dt), $del);
+ $r = db_query($q, array('fv'=>'diakKepzesModositas/delete','modul'=>'naplo_intezmeny','values'=>$v), $lr);
+ // Aki korábban benne volt a képzésben, de most nincs, azt le kell zárni
+ $q = "UPDATE kepzesDiak SET igDt='%s' - INTERVAL 1 DAY WHERE kepzesId=%u AND tolDt<'%s' AND (igDt IS NULL OR '%s'<=igDt)
+ AND diakId IN (".implode(',',array_fill(0,count($del),'%u')).")";
+ $v = mayor_array_join(array($dt, $kepzesId, $dt, $dt), $del);
+ $r = db_query($q, array('fv'=>'diakKepzesModositas/update','modul'=>'naplo_intezmeny','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ }
+ if (count($add) > 0) {
+ // Aki eddig nem volt, azt fel kell venni
+ $v = $INS = array();
+ foreach ($add as $diakId) {
+ $INS[] = "(%u, %u, '%s', NULL)";
+ array_push($v, $kepzesId, $diakId, $dt);
+ }
+ if (count($INS)>0) {
+ $q = "INSERT INTO kepzesDiak (kepzesId, diakId, tolDt, igDt) VALUES ".implode(',',$INS);
+ db_query($q, array('fv'=>'diakKepzesModositas/inster','modul'=>'naplo_intezmeny','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return false; }
+ }
+ }
+ }
+ db_commit($lr);
+ db_close($lr);
+
+}
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/tanar.php b/mayor-orig/www/include/modules/naplo/intezmeny/tanar.php
new file mode 100644
index 00000000..68a203a8
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/tanar.php
@@ -0,0 +1,54 @@
+<?php
+
+ function tanarAdatModositas($ADAT) {
+
+ $FIELDS = getTableFields('tanar');
+ $v = array();
+ foreach($ADAT as $attr => $value) {
+ if (array_key_exists($attr, $FIELDS) && !in_array($attr, array('action','tanarId'))) {
+ if ($value == '') {
+ $T[] = "$attr=NULL";
+ } else {
+ $v[] = $value;
+ $T[] = "$attr='%s'";
+ }
+ }
+ }
+ $q = "UPDATE tanar SET ".implode(',',$T)." WHERE tanarId=%u";
+ $v[] = $ADAT['tanarId'];
+ return db_query($q, array('fv' => 'tanarAdatModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ }
+
+ function ujTanar($ADAT) {
+
+
+ $FIELDS = getTableFields('tanar');
+ $A = $V = $v = array();
+ // Ellenőrizzük, hogy az oktatási azonosító szerepel-e már....
+ if ($ADAT['oId'] != '') {
+ $q = "SELECT COUNT(*) FROM tanar WHERE oId=%u";
+ $db = db_query($q, array('fv' => 'ujTanar/ütközés ellenőrzés','modul' => 'naplo_intezmeny', 'values' => array($ADAT['oId']), 'result' => 'value'));
+ if ($db > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:ujTanar/ütközés ellenőrzés:ütköző oktatási azonosító ('.$ADAT['oId'].')';
+ return false;
+ }
+ }
+ foreach($ADAT as $attr => $value) {
+ if (array_key_exists($attr,$FIELDS) && !in_array($attr, array('action','tanarId'))) {
+ if ($value == '' && !in_array($attr, array('viseltNevElotag'))) {
+ $V[] = "NULL";
+ } else {
+ $V[] = "'%s'";
+ $v[] = $value;
+ }
+ $A[] = "$attr";
+ }
+ }
+ $q = "INSERT INTO tanar (".implode(',', $A).") VALUES (".implode(',',$V).')';
+
+ return db_query($q, array('fv' => 'ujTanar', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/tankor.php b/mayor-orig/www/include/modules/naplo/intezmeny/tankor.php
new file mode 100644
index 00000000..8db17e7a
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/tankor.php
@@ -0,0 +1,201 @@
+<?php
+
+ function ujTankor($ADAT) {
+
+
+ $return = false;
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'ujTankor'));
+ if (!$lr) return false;
+
+ /* pre-check variables */
+ //...
+ /* pre-check */
+ if (isset($ADAT['tankorId']) && $ADAT['tankorId']!='') {
+ $return = $tankorId = $ADAT['tankorId'];
+ $q = "UPDATE tankor SET felveheto=%u, min=%u, max=%u, kovetelmeny='%s' WHERE tankorId=%u";
+ $v = array($ADAT['felveheto'], $ADAT['min'], $ADAT['max'], $ADAT['kovetelmeny'],$tankorId);
+ db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ $tanarFelvesz = false;
+ } else {
+ $q = "INSERT INTO tankor (targyId,felveheto,min,max,kovetelmeny) VALUES (%u, '%s', %u, %u,'%s')";
+ $v = array($ADAT['targyId'], $ADAT['felveheto'], $ADAT['min'], $ADAT['max'], $ADAT['kovetelmeny']);
+ $return = $tankorId = db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+ $tanarFelvesz = true;
+ }
+ /* tankorTipus rev 1261++ -- 1294 */
+ if (isset($ADAT['tankorTipus']) && !is_null($ADAT['tankorTipus'])) {
+ $q = "UPDATE tankor SET tankorTipus='%s' WHERE tankorId=%u";
+ $v = array($ADAT['tankorTipus'], $tankorId);
+ db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+ /* tankorTipus rev 1294++ */
+ if (isset($ADAT['tankorTipusId']) && !is_null($ADAT['tankorTipusId'])) {
+ $q = "UPDATE tankor SET tankorTipusId='%s' WHERE tankorId=%u";
+ $v = array($ADAT['tankorTipusId'], $tankorId);
+ db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ $q = "SELECT jelleg FROM tankorTipus WHERE tankorTipusId=%u";
+ $v = array($ADAT['tankorTipusId']);
+ $tankorTipusJelleg = db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'result'=>'value','values' => $v));
+ }
+
+ /* TankörCsoport min/max - a tankörcsoport minden tankörében átállítjuk ezeket */
+ $q = "UPDATE ".__INTEZMENYDBNEV.".tankor SET min=%u, max=%u WHERE tankorId IN (
+ SELECT DISTINCT tankorId FROM tankorCsoport WHERE csoportId IN (
+ SELECT csoportId FROM tankorCsoport WHERE tankorId=%u
+ )
+ )";
+ $v = array($ADAT['min'], $ADAT['max'], $tankorId);
+ db_query($q, array('fv' => 'ujTankor/minMax', 'modul' => 'naplo', 'values' => $v));
+
+ //--
+ $IOSZTALY = getTankorOsztalyai($tankorId, array('result' => 'id'), $lr); //TAGOK ALAPJÁN???
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) {
+ $q = "REPLACE INTO tankorOsztaly (tankorId, osztalyId) VALUES (%u, %u)";
+ $v = array($tankorId, $ADAT['osztalyok'][$i]);
+ db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ }
+
+ /* */
+ $TOSZTALY = getTankorOsztalyaiByTanev($tankorId, $ADAT['tanev'], array('result' => 'id', 'tagokAlapjan' => true), $lr);
+
+ /* FIGYELEM! EZ veszélyes művelet! */
+ if (is_array($IOSZTALY) && is_array($ADAT['osztalyok'])) $DEL_OSZTALY = array_diff($IOSZTALY,$ADAT['osztalyok']);
+ if (($_ERR = array_intersect($DEL_OSZTALY,$TOSZTALY))) {
+ $_SESSION['alert'][] = 'info:tankorOsztalyNemTorolheto:'.implode('-',$_ERR);
+ for ($k=0; $k<count($_ERR); $k++) {
+ $ADAT['osztalyok'][] = $_ERR[$k];
+ }
+ }
+ $DEL_OSZTALY = array_diff($DEL_OSZTALY,$TOSZTALY);
+
+ if (is_array($DEL_OSZTALY) && count($DEL_OSZTALY)>0) {
+ $q = "DELETE FROM tankorOsztaly WHERE osztalyId IN (".implode(',', array_fill(0, count($DEL_OSZTALY), '%u')).") AND tankorId=%u";
+ $v = mayor_array_join($DEL_OSZTALY, array($tankorId));
+ db_query($q, array('fv' => 'ujTankor/del-oszt', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ }
+
+ /* create name */
+ // osztalyId alapján évfolyam, osztály jelek lekérdezése
+ // abból összeállítás
+ // getOsztalyAdat helyett
+
+ $TARGYADAT = getTargyById($ADAT['targyId'],$lr);
+ $kdt = '3000-01-01';
+ $vdt = '1970-01-01';
+ if (is_array($ADAT['szemeszterek']))
+ for ($j = 0; $j < count($ADAT['szemeszterek']); $j++) {
+ $nev = '';
+ $szid = $ADAT['szemeszterek'][$j];
+ $_SZ = getSzemeszterek(array('filter' => array("szemeszterId=$szid")));
+ if ($_SZ[0]['kezdesDt'] < $kdt) $kdt = $_SZ[0]['kezdesDt'];
+ if ($_SZ[0]['zarasDt'] > $vdt) $vdt = $_SZ[0]['zarasDt'];
+ $_tanev = $_SZ[0]['tanev'];
+ $_szemeszter = $_SZ[0]['szemeszter'];
+ $_oraszam = $ADAT['SZ'.$szid];
+ if ($tankorTipusJelleg=='osztályfüggetlen') {
+ $nev = "Isk.";
+ } else {
+ $OSZTALYOK = getOsztalyok($_tanev);
+ if ($OSZTALYOK !== false && is_array($OSZTALYOK) && is_array($ADAT['osztalyok'])) {
+ $nev = '';
+ $TMP = array();
+ for($i = 0; $i < count($OSZTALYOK); $i++) {
+ // Ha évenként változik az osztály jele, akkor jobb, ha nem generáljuk, hanem a lekérdezett adatokat használjuk!
+ // $_oj = genOsztalyJel($_tanev, $OSZTALYOK[$i]);
+ $_oj = $OSZTALYOK[$i]['osztalyJel'];
+ if ($_oj!==false && !is_null($_oj)) {
+ list($e,$o) = explode('.',$_oj);
+ if (in_array($OSZTALYOK[$i]['osztalyId'], $ADAT['osztalyok'])) $TMP[$e][]= $o;
+ }
+ }
+ if (count(array_keys($TMP)) == 1) { // évfolyamon belüli osztályok:
+ $nev = implode('||',array_keys($TMP));
+ $nev .= '.'.implode('',$TMP[$nev]);
+ } elseif (count((array_keys($TMP)))>1) { // multi évfolyam:
+ $K = (array_keys($TMP));
+ sort($K);
+ $nev = $K[0].'-'.$K[count($K)-1].'.';
+ } else { // ekkorra már elballagott minden osztaly...
+ $nev = false;
+ $_SESSION['alert'][] = '::Minden osztály elballagott';
+ }
+ } else {
+ $nev = false; // adott szemeszterbe nem jár osztály
+ $_SESSION['alert'][] = '::Az adott szemeszterbe nem jár osztály';
+ }
+ }
+ if ($nev !== false) {
+ $nev .= ' '.$TARGYADAT['targyNev'];
+ $nev .= ' ';
+
+ $q = "SELECT tankorJel FROM tankor LEFT JOIN tankorTipus USING (tankorTipusId) WHERE tankorId=%u";
+ $tankorJel = db_query($q, array('fv' => 'genTankorNev', 'modul' => 'naplo_intezmeny', 'result'=>'value', 'values' => array($tankorId), 'debug'=>false), $lr);
+ if ($tankorJel!='') $nev .= $tankorJel.' '.$ADAT['tipus'];
+ else $nev .= $ADAT['tipus'];
+ $q = "REPLACE INTO tankorSzemeszter (tankorId,tanev,szemeszter,oraszam,tankorNev) VALUES (%u, %u, %u, %f, '%s')";
+ if ($ADAT['tanev'] < __TANEV || $ADAT['tankorNevMegorzes']===true) { // a neve már ne változzon, és az óraszáma?
+ $q1 = "SELECT tankorNev FROM tankorSzemeszter WHERE tankorId=%u AND tanev=%u AND szemeszter=%u";
+ // OVERWRITE!!!!
+ $orignev = db_query($q1, array('fv' => 'ujTankor', 'result'=>'value', 'modul' => 'naplo_intezmeny', 'values' => array($tankorId,$_tanev,$_szemeszter), 'debug'=>false), $lr);
+ if ($orignev!='' && $orignev!='Array') $nev = $orignev; // csúnya bugfix
+ }
+ $v = array($tankorId, $_tanev, $_szemeszter, $_oraszam, $nev);
+ if ($nev!='') db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'values' => $v, 'debug'=>false), $lr);
+ // delete!!!!????
+ }
+
+ }
+ if ($tanarFelvesz && $ADAT['tanarId']!='') {
+
+ $q = "INSERT INTO tankorTanar (tankorId,tanarId,beDt,kiDt) VALUES (%u, %u, '%s', '%s')";
+ $v = array($tankorId, $ADAT['tanarId'], $kdt, $vdt);
+ $r = db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+
+ }
+
+ // =======================================================
+
+ db_close($lr);
+
+ return $return;
+ }
+
+ function tankorTorol($tankorId) {
+
+ $q = "DELETE FROM tankor WHERE tankorId=%u";
+ return db_query($q, array('fv' => 'tankorTorol', 'modul' => 'naplo_intezmeny', 'values' => array($tankorId)));
+
+ }
+
+ function tankorTargyModositas($ADAT) {
+ /**
+ * Elvárt paraméterek: $ADAT['tankorId'], $ADAT['ujTargyId'], $ADAT['targyId'] // az eredeti
+ **/
+ $lr = db_connect('naplo_intezmeny');
+ if (!$lr) return false;
+ db_start_trans($lr);
+
+ // A régi és új tárgynév lekérdezése
+ $q = "SELECT targyId, targyNev FROM targy WHERE targyId IN (%u, %u)";
+ $v = array($ADAT['ujTargyId'], $ADAT['targyId']);
+ $ret = db_query($q, array('fv'=>'tankorTargyModositas/targyNev','values'=>$v, 'result'=>'keyvaluepair'), $lr);
+ // a tárgynév cserje a tankorSzemeszter táblában
+ $q = "UPDATE tankorSzemeszter SET tankorNev=REPLACE(tankorNev,'%s','%s') WHERE tankorId=%u";
+ $v = array($ret[$ADAT['targyId']], $ret[$ADAT['ujTargyId']], $ADAT['tankorId']);
+ $r = db_query($q, array('fv'=>'tankorTargyModositas/updateTargyNev','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr, 'tankorTargyModositas'); db_close($lr); return false; }
+ // A targyId módosítása
+ $q = "UPDATE tankor SET targyId=%u WHERE tankorId=%u";
+ $v = array($ADAT['ujTargyId'], $ADAT['tankorId']);
+ $r = db_query($q, array('fv'=>'tankorTargyModositas/updateTargyId','values'=>$v), $lr);
+ if (!$r) { db_rollback($lr, 'tankorTargyModositas'); db_close($lr); return false; }
+ $nev = setTankorNev($ADAT['tankorId'], $tankorNevExtra=null, $lr);
+ if (!$nev) { db_rollback($lr, 'tankorTargyModositas'); db_close($lr); return false; }
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/tankorSzemeszter.php b/mayor-orig/www/include/modules/naplo/intezmeny/tankorSzemeszter.php
new file mode 100644
index 00000000..fcd411c4
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/tankorSzemeszter.php
@@ -0,0 +1,200 @@
+<?php
+/*
+ function getTankorSzemeszterek($tankorIds)
+ | A függvény visszaadja az összes `tankorSzemeszter` bejegyzést: szűrő tankorIds tömb
+ --> [multiassoc][tankorId]
+ function getSzemeszterek_spec($tolTanev = '', $igTanev = '')
+ | `szemeszter` tábla bejegyzései
+ --> [indexed]
+ function tankorSzemeszterModositas($Modositas, $tankorSzemeszter, $tankorNevek, $Szemeszterek, $tanevZarasDt) {
+ | A módosító
+ * function _createName($ADAT,$SZ,$extra)
+*/
+
+ function getTankorSzemeszterek($tankorIds) {
+
+ if (count($tankorIds) > 0) {
+ $q = "SELECT * FROM tankorSzemeszter WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ return db_query($q, array(
+ 'fv' => 'getTankorSzemeszterek', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $tankorIds
+ ));
+ } else {
+ return array();
+ }
+
+ }
+
+ function getSzemeszterek_spec($tolTanev = '', $igTanev = '') {
+
+ $v = array();
+ if ($tolTanev != '') {
+ $where = "WHERE tanev >= %u";
+ $v[] = $tolTanev;
+ }
+ if ($igTanev != '') {
+ if ($tolTanev != '') $where .= " AND tanev <= %u";
+ else $where = "WHERE tanev <= %u";
+ $v[] = $igTanev;
+ }
+
+ $q = "SELECT * FROM szemeszter $where ORDER BY tanev,szemeszter";
+ return db_query($q, array('fv' => 'getSzemeszterek', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+ function tankorSzemeszterModositas($Modositas, $tankorSzemeszter, $tankorNevek, $Szemeszterek, $tanevZarasDt) {
+
+ // $tankorTanarAdatok inicializásása - $Szemeszterek alapján
+ $tankorIds = $tankorTanarAdatok = array();
+ for ($i = 0; $i < count($Szemeszterek); $i++) {
+ $tankorTanarAdatok[$Szemeszterek[$i]['tanev']][$Szemeszterek[$i]['szemeszter']] = array(
+ 'tankorIds' => array(),
+ 'tanev' => $Szemeszterek[$i]['tanev'],
+ 'statusz' => $Szemeszterek[$i]['statusz'],
+ 'kezdesDt' => $Szemeszterek[$i]['kezdesDt'],
+ 'zarasDt' => $Szemeszterek[$i]['zarasDt']
+ );
+ }
+
+ $lr = db_connect('naplo_intezmeny');
+
+ $Values = array();
+ $Values = $v = array();
+ for ($i = 0; $i < count($Modositas); $i++) {
+
+ $M = $Modositas[$i];
+ if ($tankorTanarAdatok[$M['tanev']][$M['szemeszter']]['statusz'] != 'lezárt') {
+
+ if (is_array($tankorSzemeszter[$M['tankorId']][$M['tanev']][$M['szemeszter']])) {
+ // update - vagy semmi
+ $regiOraszam = $tankorSzemeszter[$M['tankorId']][$M['tanev']][$M['szemeszter']]['oraszam'];
+ if (floatval($M['oraszam']) >= 0 && $regiOraszam != $M['oraszam']) { // állíthatjuk nullára
+ // update - most már tényleg - itt csak az óraszám változik:
+ $q = "UPDATE tankorSzemeszter SET oraszam=%f WHERE tankorId=%u AND tanev=%u AND szemeszter=%u";
+ db_query($q, array(
+ 'fv' => 'tankorSzemeszterModositas', 'modul' => 'naplo_intezmeny',
+ 'values' => array($M['oraszam'], $M['tankorId'], $M['tanev'], $M['szemeszter'])
+ ,'debug'=>false
+ ));
+ } elseif (
+ floatval($M['oraszam']) == 0
+ && $tankorTanarAdatok[$M['tanev']][$M['szemeszter']]['statusz'] == 'tervezett'
+ && $regiOraszam != $M['oraszam']
+ ) { // Ekkor törölhetjük... nemde?
+ $q = "DELETE FROM tankorSzemeszter
+ WHERE tankorId=%u AND tanev=%u
+ AND szemeszter=%u";
+ db_query($q, array(
+ 'fv' => 'tankorSzemeszterModositas', 'modul' => 'naplo_intezmeny',
+ 'values' => array($M['tankorId'], $M['tanev'], $M['szemeszter'])
+ ,'debug'=>false
+ ));
+ }
+ } else {
+ // insert
+ $tankorNev = _createName($M, array($M['tanev'].'/'.$M['szemeszter']), $tankorNevek[$M['tankorId']]);
+ if ($tankorNev != '') {
+ array_push($v, $M['tankorId'], $M['tanev'], $M['szemeszter'], $M['oraszam'], $tankorNev);
+ $Values[] = "(%u, %u, %u, %f, '%s')";
+ // A tanár felvételéhez kell a tol-ig dt (Szemeszterek)
+ // tankorIds
+ $tankorTanarAdatok[$M['tanev']][$M['szemeszter']]['tankorIds'][] = $M['tankorId'];
+ if (!in_array($M['tankorId'], $tankorIds)) $tankorIds[] = $M['tankorId'];
+ // tankorTanarIds - a tanevZarasDt pillanatában lévő tanárait kérdezzük le
+
+ }
+ } // insert vagy update
+ } // nem lezárt szemeszter
+ } // for
+ if (count($Values) > 0) {
+ $q = "INSERT INTO tankorSzemeszter (tankorId, tanev, szemeszter, oraszam, tankorNev)
+ VALUES ".implode(',', $Values);
+ db_query($q, array('fv' => 'tankorSzemeszterModositas', 'modul' => 'naplo_intezmeny', 'values' => $v,'debug'=>false));
+ // Az $tanev évi tanárt is rendeljük hozzá!
+ // kik voltak tanárok a zárás napján
+ $q = "SELECT DISTINCT tankorId, tanarId FROM tankorTanar
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND '%s' >= beDt AND '%s' <= kiDt";
+ $v = mayor_array_join($tankorIds, array($tanevZarasDt, $tanevZarasDt));
+ $ret = db_query($q, array('fv' => 'tankorSzemeszterModositas', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v, 'debug'=>false), $lr);
+ for ($i = 0; $i < count($ret); $i++) $tankorTanarIds[$ret[$i]['tankorId']][] = $ret[$i]['tanarId'];
+ foreach ($tankorTanarAdatok as $szTanev => $tanevAdat)
+ foreach ($tanevAdat as $szSzemeszter => $szemeszterAdat)
+ if (count($szemeszterAdat['tankorIds']) > 0) {
+ tankorTanarFelvesz(
+ $szemeszterAdat['tankorIds'], $tankorTanarIds, $szemeszterAdat,
+ $szemeszterAdat['kezdesDt'], $szemeszterAdat['zarasDt']
+ );
+ }
+ }
+
+ db_close($lr);
+ return true;
+
+ }
+
+ function _createName($ADAT,$SZ,$extra) {
+
+ global $TANKOR_TIPUS;
+
+ $tankorId = $ADAT['tankorId'];
+ if ($tankorId=='') return false;
+ $tanev = $ADAT['tanev'];
+ $szemeszter = $ADAT['szemeszter'];
+
+ $targyId = getTankorTargyId($tankorId);
+ $TANKOROSZTALYOK = getTankorOsztalyai($tankorId, array('result' => 'id'));
+
+ if ($targyId=='') return false;
+ $TARGYADAT = getTargyById($targyId);
+ $kdt='3000-01-01';
+ $vdt='1970-01-01';
+ if (is_array($SZ))
+ for ($j=0; $j<count($SZ); $j++) {
+ $nev = '';
+ list($_tanev,$_szemeszter)= explode('/',$SZ[$j]);
+ //checkOsztalyInTanev($_tanev);
+ $OSZTALYOK = getOsztalyok($_tanev);
+ if ($OSZTALYOK!== false && is_array($OSZTALYOK) && is_array($TANKOROSZTALYOK)) {
+ $nev = '';
+ $TMP = array();
+ for($i=0; $i<count($OSZTALYOK); $i++) {
+ // Ha évenként változik az osztály jele, akkor jobb, ha nem generáljuk, hanem a lekérdezett adatokat használjuk!
+ // $_oj = genOsztalyJel($_tanev, $OSZTALYOK[$i]);
+ $_oj = $OSZTALYOK[$i]['osztalyJel'];
+ if ($_oj!==false) {
+ list($e,$o) = explode('.',$_oj);
+ if (in_array($OSZTALYOK[$i]['osztalyId'], $TANKOROSZTALYOK)) $TMP[$e][]= $o;
+ }
+ }
+ if (count(array_keys($TMP)) == 1) { // évfolyamon belüli osztályok:
+ $nev = implode('||',array_keys($TMP));
+ $nev .= '.'.implode('',$TMP[$nev]);
+ } elseif (count((array_keys($TMP)))>1) { // multi évfolyam:
+ $K = (array_keys($TMP));
+ sort($K);
+ $nev = $K[0].'-'.$K[count($K)-1].'.';
+ } else { // ekkorra már elballagott minden osztaly...
+ $nev = false;
+
+ }
+
+ } else {
+ $nev = false; // adott szemeszterbe nem jár osztály
+ }
+
+ if ($nev!== false) {
+ $nev .= ' '.$TARGYADAT['targyNev'];
+ foreach($TANKOR_TIPUS as $_tt=>$_tipus) {
+ if (strstr($extra,$_tipus)) {
+ $_extra = $_tipus;
+ }
+ }
+ $nev .= ' '.$_extra;
+ }
+ }
+ return $nev;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/tankorTanar.php b/mayor-orig/www/include/modules/naplo/intezmeny/tankorTanar.php
new file mode 100644
index 00000000..af6840e9
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/tankorTanar.php
@@ -0,0 +1,292 @@
+<?php
+
+ function tankorTanarTorol($tankorId,$tanarId,$beDt,$kiDt) { // CORE function
+
+ $q = "SELECT COUNT(*) AS db FROM szemeszter WHERE statusz='lezárt' AND
+ (('%s' BETWEEN szemeszter.kezdesDt AND szemeszter.zarasDt)
+ OR
+ ('%s' BETWEEN szemeszter.kezdesDt AND szemeszter.zarasDt))
+ LIMIT 1";
+ $v = array($beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarTorol', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+
+ if ($r == 0) {
+ $q = "DELETE FROM ".__INTEZMENYDBNEV.".tankorTanar WHERE tankorId=%u AND bedt='%s' AND tanarId=%u";
+ $v = array($tankorId, $beDt, $tanarId);
+ db_query($q, array('fv' => 'tankorTanarTorol', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true));
+ } else {
+ $_SESSION['alert'][] = 'info:lezart_tanev';
+ }
+ }
+
+ function tankorTanarJavit($tankorId,$tanarId,$beDt,$kiDt) {
+
+ $q = "SELECT COUNT(*) AS db FROM szemeszter WHERE statusz='lezárt' AND
+ (('%s' BETWEEN szemeszter.kezdesDt AND szemeszter.zarasDt)
+ OR
+ ('%s' BETWEEN szemeszter.kezdesDt AND szemeszter.zarasDt))
+ LIMIT 1";
+ $v = array($beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarTorol', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+
+ if ($r == 0) {
+ $q = "UPDATE ".__INTEZMENYDBNEV.".tankorTanar SET kiDt='%s' WHERE tankorId=%u AND bedt='%s' AND tanarId=%u";
+ $v = array($kiDt,$tankorId, $beDt, $tanarId);
+ db_query($q, array('fv' => 'tankorTanarTorol', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true));
+ } else {
+ $_SESSION['alert'][] = 'info:lezart_tanev';
+ }
+ }
+
+ //---
+
+
+ function tankorTanarFelvesz($tankorIds, $tankorTanarIds, $tanevAdat, $tolDt, $igDt) {
+
+
+ if (!is_array($tankorIds) || count($tankorIds) == 0) return false;
+ $D = array();
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'tankorTanarFelvesz'));
+ db_start_trans($lr);
+
+ // Az intervallumban érintett tankör-tanár tagságok lekérdezése...
+ $v = mayor_array_join($tankorIds, array($igDt, $tolDt));
+ $q = "SELECT tanarId, tankorId, min(bedt) AS mbe ,max(kidt) AS mki
+ FROM ".__INTEZMENYDBNEV.".tankorTanar WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND bedt<='%s' AND kidt>='%s' GROUP BY tankorid,tanarid";
+ $ret = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+ for ($i = 0; $i < count($ret); $i++) {
+ if ($tolDt < $ret[$i]['mbe']) $ret[$i]['mbe'] = $tolDt;
+ if ($igDt > $ret[$i]['mki']) $ret[$i]['mki'] = $igDt;
+ $D[ $ret[$i]['tankorId'] ][ $ret[$i]['tanarId'] ] = array('mbe' => $ret[$i]['mbe'], 'mki' => $ret[$i]['mki'], 'torlendo' => true);
+ }
+
+ // Az érintett intervallumba eső tankör-tanár tagságok törlése
+ $q = "DELETE FROM ".__INTEZMENYDBNEV.".tankorTanar WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND bedt<='%s' AND kidt>='%s'";
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+
+ // beszúrandó
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $tankorId = $tankorIds[$i];
+ $tanarIds = $tankorTanarIds[$tankorId];
+ for ($j = 0; $j < count($tanarIds); $j++) {
+ $tanarId = $tanarIds[$j];
+ if ($tanarId != '') {
+ $D[$tankorId][$tanarId]['torlendo'] = false;
+ if (($beDt = $D[$tankorId][$tanarId]['mbe']) == '') $beDt = $tolDt;
+ if (($kiDt = $D[$tankorId][$tanarId]['mki']) == '') $kiDt = $igDt;
+ $q = "INSERT INTO ".__INTEZMENYDBNEV.".tankorTanar (tankorId,tanarId,beDt,kiDt) VALUES (%u, %u, '%s', '%s')";
+ $v = array($tankorId, $tanarId, $beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+ }
+ }
+
+ // törlendők felvétele
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $tankorId = $tankorIds[$i];
+ if (is_array($D[$tankorId]))
+ foreach($D[$tankorId] as $tanarId => $T) {
+ if ($T['torlendo']) {
+ if ($T['mbe'] < $tolDt) {
+ $beDt = $T['mbe'];
+ $kiDt = date('Y-m-d', strtotime('-1 days',strtotime($tolDt)));
+ $q = "INSERT INTO ".__INTEZMENYDBNEV.".tankorTanar (tankorId,tanarId,beDt,kiDt) VALUES (%u, %u, '%s', '%s')";
+ $v = array($tankorId, $tanarId, $beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+ if ($T['mki'] > $igDt) {
+ $kiDt = $T['mki'];
+ $beDt = date('Y-m-d', strtotime('+1 days',strtotime($igDt)));
+ $q = "INSERT INTO ".__INTEZMENYDBNEV.".tankorTanar (tankorId,tanarId,beDt,kiDt) VALUES (%u, %u, '%s','%s')";
+ $v = array($tankorId, $tanarId, $beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+ }
+ }
+ }
+
+ // tankörblokkok ellenőrzése - csak nem tervezett tanévben
+ // Érintett blokkok lekérdezése
+ if ($tanevAdat['statusz'] != 'tervezett') {
+ $blokkIds = getTankorBlokkByTankorId($tankorIds, $tanevAdat['tanev']);
+ if (is_array($blokkIds)) foreach ($blokkIds as $index => $blokkId) {
+ // A blokk tankörei
+ $bTankorIds = getTankorokByBlokkId($blokkId, $tanevAdat['tanev']);
+
+ // Ellenőrizzük a tankör tanárokat - azonosak-e tankörönként
+ $q = "SELECT tanarId,COUNT(DISTINCT tankorId) AS c FROM ".__INTEZMENYDBNEV.".tankorTanar
+ WHERE tankorId IN (".implode(',', array_fill(0, count($bTankorIds), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR '%s' <= kiDt)
+ GROUP BY tanarId HAVING c>1
+ ORDER BY tankorId,tanarId";
+ $v = mayor_array_join($bTankorIds, array($igDt, $tolDt));
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz/BlokkEllenőrzés', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $lr);
+ if (is_array($r) && count($r) > 0) {
+ db_rollback($lr, 'Ütköző tanárt találtam egy blokkban ('.$blokkId.')! Visszaállítjuk az eredeti állapotot!');
+ db_close($lr);
+ return false;
+ }
+ }
+ }
+ /* ========================================================
+ Órarend módosítása
+ ======================================================== */
+
+
+ if ($tanevAdat['statusz'] == 'aktív') {
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanevAdat['tanev']);
+
+ // ÓrarendiOraTankor bejegyzés ellenőrzés/készítés
+ $V = $v2 = array();
+ foreach ($tankorIds as $i => $tankorId) {
+ if ($tankorTanarIds[$tankorId][0] != '') { // Ha akarunk egyáltalán tanárt hozzárendelni
+ // van-e már az igényeinknek megfelelő bejegyzés
+ $q = "SELECT * FROM `%s`.orarendiOraTankor WHERE tankorId=%u
+ AND tanarId IN (".implode(',', array_fill(0, count($tankorTanarIds[$tankorId]), '%u')).") LIMIT 1";
+ $v = mayor_array_join(array($tanevDbNev, $tankorId), $tankorTanarIds[$tankorId]);
+ $ret = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+
+ if (count($ret) != 0) { // ha van, akkor az elsőt használjuk
+ $OOT[$tankorId] = $ret[0];
+ } else { // ha nincs, akkor generálunk egy jót
+ $OOT[$tankorId] = array(
+ 'tanarId' => $tankorTanarIds[$tankorId][0],
+ 'osztalyJel' => 'NaN',
+ 'targyJel' => $tankorId.'-'.$tankorTanarIds[$tankorId][0],
+ 'tankorId' => $tankorId
+ );
+ $V[] = "(%u, 'NaN', '%s', %u)";
+ array_push($v2, $tankorTanarIds[$tankorId][0], $tankorId.'-'.$tankorTanarIds[$tankorId][0], $tankorId);
+ }
+ }
+ }
+ if (count($V) > 0) { // Az új bejegyzéseket felvesszük
+ $q = "INSERT INTO `%s`.orarendiOraTankor (tanarId,osztalyJel,targyJel,tankorId) VALUES ".implode(',', $V);
+ array_unshift($v2, $tanevDbNev);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v2, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+
+ }
+
+ // Az érintett órarendi bejegyzések lekérdezése beDt szerint rendezve
+ $q = "SELECT tolDt,igDt,het,nap,ora,tankorId,tanarId,osztalyJel,targyJel,teremId
+ FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE tolDt <= '%s' AND (igDt >= '%s' OR igDt IS NULL)
+ AND tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ ORDER BY tankorId,tolDt";
+ $v = mayor_array_join(array($tanevDbNev, $tanevDbNev, $igDt, $tolDt), $tankorIds);
+ $ret = db_query($q, array(
+ 'fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $v, 'rollback' => true
+ ), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+
+ foreach ($ret as $tankorId => $tankorOrarendiBejegyzesek) {
+
+ // Ha van orarendiOra bejegyzés és nem akarunk tanárt hozzárendelni - az hiba!!
+ if (!is_array($OOT[$tankorId])) {
+ db_rollback($lr, 'Létező órarendi óra esetén a tanár nem törölhető:'.$tankorId); db_close($lr); return false;
+ };
+
+ $tanarId = $OOT[$tankorId]['tanarId'];
+ $osztalyJel = $OOT[$tankorId]['osztalyJel'];
+ $targyJel = $OOT[$tankorId]['targyJel'];
+
+ foreach ($tankorOrarendiBejegyzesek as $i => $TOB) {
+ if ($TOB['teremId'] == '') {
+ $TOB['teremId'] = 'NULL';
+ $valueStr = "(%u, %u, %u, %u, '%s', '%s', %s, '%s', '%s')";
+ } else {
+ $valueStr = "(%u, %u, %u, %u, '%s', '%s', %u, '%s', '%s')";
+ }
+ if ($TOB['tolDt'] < $tolDt) { // balról túlnyúlik - kettévágjuk
+ $q = "UPDATE `%s`.orarendiOra SET igDt='%s' - INTERVAL 1 DAY
+ WHERE tolDt='%s' AND tanarId=%u
+ AND het=%u AND nap=%u AND ora=%u";
+ $v = array($tanevDbNev, $tolDt, $TOB['tolDt'], $TOB['tanarId'], $TOB['het'], $TOB['nap'], $TOB['ora']);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ $q = "INSERT INTO `%s`.orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt) VALUES $valueStr";
+ $v = array(
+ $tanevDbNev, $TOB['het'], $TOB['nap'], $TOB['ora'], $TOB['tanarId'], $TOB['osztalyJel'],
+ $TOB['targyJel'], $TOB['teremId'], $tolDt, $TOB['igDt']
+ );
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ $TOB['tolDt'] = $tolDt; // Az intervallumot lefedő bejegyzések miatt - három fele fogjuk vágni
+ }
+ if ($igDt < $TOB['igDt']) { // jobbról túlnyúlik - kettévágjuk !! igDt nem lehet NULL !!
+ $q = "UPDATE `%s`.orarendiOra SET tolDt='%s' + INTERVAL 1 DAY
+ WHERE igDt='%s' AND tanarId=%u AND het=%u AND nap=%u AND ora=%u";
+ $v = array($tanevDbNev, $igDt, $TOB['igDt'], $TOB['tanarId'], $TOB['het'], $TOB['nap'], $TOB['ora']);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ $q = "INSERT INTO `%s`.orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt) VALUES $valueStr";
+ $v = array(
+ $tanevDbNev, $TOB['het'], $TOB['nap'], $TOB['ora'], $TOB['tanarId'], $TOB['osztalyJel'],
+ $TOB['targyJel'], $TOB['teremId'], $TOB['tolDt'], $igDt
+ );
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+
+ }
+ // A közbensőkben tanárt váltunk
+ if ($tanarId != $TOB['tanarId']) {
+ $q = "UPDATE `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ SET tanarId=%u, osztalyJel='%s', targyJel='%s'
+ WHERE '%s'<=tolDt AND igDt<='%s' AND tanarId=%u AND het=%u AND nap=%u AND ora=%u AND tankorId=%u";
+ $v = array($tanevDbNev, $tanevDbNev, $tanarId, $osztalyJel, $targyJel, $tolDt, $igDt, $TOB['tanarId'], $TOB['het'], $TOB['nap'], $TOB['ora'], $tankorId);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+
+ }
+
+ } // foreach
+
+ // A módosított órarend ütközésellenőrzése - [k] munkatervenként külön. Itt most megengedjük, hogy ha több munkaterv is van, de egyszerre van órája a tanárnak... :/
+// $q = "SELECT tanarId, dt, ora, COUNT(*) AS db
+// FROM `%s`.nap LEFT JOIN `%s`.orarendiOra
+// ON (((DAYOFWEEK(dt)+5) MOD 7)+1 = orarendiOra.nap)
+// AND orarendiOra.het=nap.orarendiHet
+// AND orarendiOra.tolDt<=dt AND orarendiOra.igDt>=dt
+// WHERE '%s' <= dt AND dt <= '%s'
+// GROUP BY munkatervId,tanarId, dt, ora
+// HAVING db > 1";
+ // [bb] szerintem ez a jó: a hét-nap-óra-tanár-tolDt kulcs az orarendiOra táblában, így ha két sorban ezek megegyeznek, akkor nem kell külön számolni...
+ $q = "SELECT tanarId, dt, ora, COUNT(DISTINCT het, nap, ora, tanarId, tolDt) AS db
+ FROM `%s`.nap LEFT JOIN `%s`.orarendiOra
+ ON (((DAYOFWEEK(dt)+5) MOD 7)+1 = orarendiOra.nap)
+ AND orarendiOra.het=nap.orarendiHet
+ AND orarendiOra.tolDt<=dt AND orarendiOra.igDt>=dt
+ WHERE '%s' <= dt AND dt <= '%s'
+ GROUP BY tanarId, dt, ora
+ HAVING db > 1";
+ $v = array($tanevDbNev, $tanevDbNev, $tolDt, $igDt);
+ $ret = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+
+ if (count($ret)) { // Van ütközés!
+ db_rollback($lr, 'Az összes ütközést ellenőriztem, és a megadott '.$tolDt.'-'.$igDt.' intervallumban egy (esetleg másik) tanárnak több órája van egy időben (tanarId='.$ret[0]['tanarId'].', dt='.$ret[0]['dt'].', ora='.$ret[0]['ora'].') - így visszaállítjuk az eredeti állapotot...');
+ db_close($lr);
+ return false;
+ }
+
+ } // aktív tanév
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/tankorTanarHozzarendeles.php b/mayor-orig/www/include/modules/naplo/intezmeny/tankorTanarHozzarendeles.php
new file mode 100644
index 00000000..600ee897
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/tankorTanarHozzarendeles.php
@@ -0,0 +1,224 @@
+<?php
+
+ function getTanarLekotottOraszam($tanarId) {
+
+ $q = "SELECT sum(oraszam)/2 FROM tankorSzemeszter LEFT JOIN tankorTanar USING (tankorId) WHERE tanev=".__TANEV." AND tanarId=%u";
+
+ global $_TANEV;
+
+ $q = "select sum(oraszam/db) from (
+ select tankorId, sum(oraszam)/2 as oraszam, (
+ select count(tanarId) from tankorTanar where tankorId=tankorSzemeszter.tankorId and beDt<='".$_TANEV['kezdesDt']."'
+ and (kiDt is NULL OR kiDt>='".$_TANEV['zarasDt']."')
+ ) as db
+ from tankorSzemeszter left join tankorTanar using (tankorId)
+ where tanev=".__TANEV." and tanarId=%u and beDt<='".$_TANEV['kezdesDt']."'
+ and (kiDt is NULL or kiDt>='".$_TANEV['zarasDt']."') group by tankorId
+ ) as tankorOraszamPerTanar";
+
+ return db_query($q, array('fv'=>'getTanarLekotottOraszam','modul'=>'naplo_intezmeny','result'=>'value','values'=>array($tanarId)));
+
+ }
+
+ function getTankorokBySzuro($Szuro) {
+ /*
+ osztaly U tanar U tanarNelkul || targy U mk U tanar U tanarNelkul || (osztaly M targy) U (osztaly M mk) U tanar U tanarNelkul
+ */
+ global $_TANEV;
+
+ $vanOsztaly = (is_array($Szuro['osztalyIds']) && count($Szuro['osztalyIds'])>0);
+ $vanMk = (is_array($Szuro['mkIds']) && count($Szuro['mkIds'])>0);
+ $vanTargy = (is_array($Szuro['targyIds']) && count($Szuro['targyIds'])>0);
+ $vanTanar = (is_array($Szuro['tanarIds']) && count($Szuro['tanarIds'])>0);
+ $vanTanarNelkuliek = (bool)$Szuro['tanarNelkuliTankorok'];
+
+ $v = $q = array();
+ if ($vanOsztaly && !$vanMk && !$vanTargy) {
+ $q[] = "SELECT tankorId, tankorNev, targyId, tankorTipusId, avg(oraszam) AS hetiOraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ LEFT JOIN tankorOsztaly USING (tankorId)
+ WHERE osztalyId IN (".implode(',', array_fill(0, count($Szuro['osztalyIds']), '%u')).")
+ AND tanev=".__TANEV."
+ GROUP BY tankorId, tankorNev, targyId, tankorTipusId
+ ORDER BY tankorNev, tankorId";
+ $v = array_merge($v, $Szuro['osztalyIds']);
+ }
+ if ($vanMk) {
+ if ($vanOsztaly) {
+ $q[] = "SELECT tankorId, tankorNev, targyId, tankorTipusId, avg(oraszam) AS hetiOraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ LEFT JOIN targy USING (targyId)
+ WHERE mkId IN (".implode(',', array_fill(0, count($Szuro['mkIds']), '%u')).")
+ AND tanev=".__TANEV."
+ AND tankorId IN (
+ SELECT tankorId FROM tankorOsztaly WHERE osztalyId IN (".implode(',', array_fill(0, count($Szuro['osztalyIds']), '%u')).")
+ )
+ GROUP BY tankorId, tankorNev, targyId, tankorTipusId
+ ORDER BY tankorNev, tankorId";
+ $v = array_merge($v, $Szuro['mkIds'], $Szuro['osztalyIds']);
+ } else {
+ $q[] = "SELECT tankorId, tankorNev, targyId, tankorTipusId, avg(oraszam) AS hetiOraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ LEFT JOIN targy USING (targyId)
+ WHERE mkId IN (".implode(',', array_fill(0, count($Szuro['mkIds']), '%u')).")
+ AND tanev=".__TANEV."
+ GROUP BY tankorId, tankorNev, targyId, tankorTipusId
+ ORDER BY tankorNev, tankorId";
+ $v = array_merge($v, $Szuro['mkIds']);
+ }
+ }
+ if ($vanTargy) {
+ if ($vanOsztaly) {
+ $q[] = "SELECT tankorId, tankorNev, targyId, tankorTipusId, avg(oraszam) AS hetiOraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE targyId IN (".implode(',', array_fill(0, count($Szuro['targyIds']), '%u')).")
+ AND tanev=".__TANEV."
+ AND tankorId IN (
+ SELECT tankorId FROM tankorOsztaly WHERE osztalyId IN (".implode(',', array_fill(0, count($Szuro['osztalyIds']), '%u')).")
+ )
+ GROUP BY tankorId, tankorNev, targyId, tankorTipusId
+ ORDER BY tankorNev, tankorId";
+ $v = array_merge($v, $Szuro['targyIds'], $Szuro['osztalyIds']);
+ } else {
+ $q[] = "SELECT tankorId, tankorNev, targyId, tankorTipusId, avg(oraszam) AS hetiOraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE targyId IN (".implode(',', array_fill(0, count($Szuro['targyIds']), '%u')).")
+ AND tanev=".__TANEV."
+ GROUP BY tankorId, tankorNev, targyId, tankorTipusId
+ ORDER BY tankorNev, tankorId";
+ $v = array_merge($v, $Szuro['targyIds']);
+ }
+ }
+ if ($vanTanar) {
+
+ $q[] = "SELECT tankorId, tankorNev, targyId, tankorTipusId, avg(oraszam) AS hetiOraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ LEFT JOIN tankorTanar USING (tankorId)
+ WHERE tanarId IN (".implode(',', array_fill(0, count($Szuro['tanarIds']), '%u')).")
+ AND tanev=".__TANEV."
+ GROUP BY tankorId, tankorNev, targyId, tankorTipusId
+ ORDER BY tankorNev, tankorId";
+ $v = array_merge($v, $Szuro['tanarIds']);
+
+ }
+ if ($vanTanarNelkuliek) {
+ $q[] = "SELECT tankor.tankorId AS tankorId, tankorNev, targyId, tankorTipusId, avg(oraszam) AS hetiOraszam
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ LEFT JOIN tankorTanar ON tankor.tankorId=tankorTanar.tankorId AND beDt<='".$_TANEV['kezdesDt']."' AND (kiDt IS NULL OR kiDt>='".$_TANEV['zarasDt']."')
+ WHERE tanarId IS NULL
+ AND tanev=".__TANEV."
+ GROUP BY tankorId, tankorNev, targyId, tankorTipusId
+ ORDER BY tankorNev, tankorId";
+
+ }
+
+ if (count($q) > 0) {
+ $query = '('.implode(') UNION DISTINCT (', $q).')';
+ $return = db_query($query, array('debug'=>false,'fv'=>'getTankorokBySzuro','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+
+ for ($i=0; $i<count($return); $i++) {
+ $return[$i]['tanarIds'] = getTankorTanaraiByInterval($return[$i]['tankorId'], array('tanev' => __TANEV, 'result' => 'idonly'));
+ // A tankör lekötött óraszáma
+ $tmp = getTankorTervezettOraszamok((array)$return[$i]['tankorId']);
+ foreach (array(1, 2) as $szemeszter) {
+ $osz = 0;
+ foreach ($tmp[ $return[$i]['tankorId'] ]['bontasOraszam'][$szemeszter-1] as $oAdat) $osz += floatval($oAdat['hetiOraszam']);
+ $return[$i]['tervezettOraszamok'][$szemeszter] = array('btOraszam'=> $osz, 'tszOraszam' => floatval($tmp[ $return[$i]['tankorId'] ]['oraszam'][$szemeszter-1]));
+ };
+ $return[$i]['bontasOk'] = (
+ $return[$i]['tervezettOraszamok'][1]['btOraszam']==$return[$i]['tervezettOraszamok'][1]['tszOraszam']
+ && $return[$i]['tervezettOraszamok'][2]['btOraszam']==$return[$i]['tervezettOraszamok'][2]['tszOraszam']
+ );
+ }
+
+ return $return;
+ } else { return array(); }
+ }
+
+ function getTanarokBySzuro($Szuro) {
+
+ global $_TANEV;
+
+ // Ha nincs kiválasztott tankör, akkor nincs értelme tanárokat lekérdezni
+ if (!is_array($Szuro['tankorTargyIds']) || count($Szuro['tankorTargyIds']) == 0) return array();
+
+ // Az osztály nem játszik szerepet a lehetséges tanárok szűrésében
+ $vanMk = (is_array($Szuro['mkIds']) && count($Szuro['mkIds'])>0);
+ $vanTanar = (is_array($Szuro['tanarIds']) && count($Szuro['tanarIds'])>0);
+ // Tárgy mindig lesz - ha más nem a tankörökből
+ if (is_array($Szuro['targyIds'])) $targyIds = array_merge($Szuro['targyIds'], $Szuro['tankorTargyIds']);
+ else $targyIds = $Szuro['tankorTargyIds'];
+
+ $v = $q = array();
+
+ {
+ // Itt lehet tárgy és munkaközösség, valamint a megadott tanarId-k alapján szűrni
+ if ($vanTanar) {
+ $q[] = "SELECT tanarId, concat_ws(' ',viseltNevElotag,viseltCsaladinev,viseltUtonev) as tanarNev,
+ hetiMunkaora,hetiKotelezoOraszam,
+ hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam
+ FROM tanar WHERE statusz IN ('határozatlan idejű','határozott idejű','külső óraadó')
+ AND beDt<'".$_TANEV['kezdesDt']."' AND (kiDt IS NULL OR kiDt<'".$_TANEV['zarasDt']."')
+ AND tanarId IN (".implode(',', array_fill(0, count($Szuro['tanarIds']), '%u')).")";
+ $v = array_merge($v, $Szuro['tanarIds']);
+ }
+ if ($vanMk) {
+ $q[] = "SELECT tanarId, concat_ws(' ',viseltNevElotag,viseltCsaladinev,viseltUtonev) as tanarNev,
+ hetiMunkaora,hetiKotelezoOraszam,
+ hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam
+ FROM tanar LEFT JOIN mkTanar USING (tanarId)
+ WHERE statusz IN ('határozatlan idejű','határozott idejű','külső óraadó')
+ AND beDt<'".$_TANEV['kezdesDt']."' AND (kiDt IS NULL OR kiDt<'".$_TANEV['zarasDt']."')
+ AND mkId IN (".implode(',', array_fill(0, count($Szuro['mkIds']), '%u')).")";
+ $v = array_merge($v, $Szuro['mkIds']);
+ }
+ // targyIds mindig van
+ $q[] = "SELECT tanarId, concat_ws(' ',viseltNevElotag,viseltCsaladinev,viseltUtonev) as tanarNev,
+ hetiMunkaora,hetiKotelezoOraszam,
+ hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam
+ FROM tanar LEFT JOIN tanarKepesites USING (tanarId)
+ LEFT JOIN kepesitesTargy USING (kepesitesId)
+ WHERE statusz IN ('határozatlan idejű','határozott idejű','külső óraadó')
+ AND beDt<'".$_TANEV['kezdesDt']."' AND (kiDt IS NULL OR kiDt<'".$_TANEV['zarasDt']."')
+ AND targyId IN (".implode(',', array_fill(0, count($targyIds), '%u')).")";
+ $v = array_merge($v, $targyIds);
+ $q[] = "SELECT tanarId, concat_ws(' ',viseltNevElotag,viseltCsaladinev,viseltUtonev) as tanarNev,
+ hetiMunkaora,hetiKotelezoOraszam,
+ hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam
+ FROM tanar LEFT JOIN mkTanar USING (tanarId)
+ LEFT JOIN targy USING (mkId)
+ WHERE statusz IN ('határozatlan idejű','határozott idejű','külső óraadó')
+ AND beDt<'".$_TANEV['kezdesDt']."' AND (kiDt IS NULL OR kiDt<'".$_TANEV['zarasDt']."')
+ AND targyId IN (".implode(',', array_fill(0, count($targyIds), '%u')).")";
+ $v = array_merge($v, $targyIds);
+
+ $query = '('.implode(') UNION DISTINCT (', $q).') ORDER BY tanarNev, tanarId';
+ $return = db_query($query, array('fv'=>'getTanarokBySzuro #1','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+
+ }
+ // Le kell kérdezni a tárgyait és az eddigi lekötött óraszámát a tanárnak
+ for ($i = 0; $i < count($return); $i++) {
+ $return[$i]['targyIds'] = getTargyIdsByTanarId($return[$i]['tanarId']);
+ $return[$i]['lekotottOraszam'] = getTanarLekotottOraszam($return[$i]['tanarId']);
+ }
+
+ return $return;
+
+ }
+
+ function getTankorStat() {
+
+ global $_TANEV;
+
+ $q = "select count(distinct tankorId) from tankorSzemeszter left join tankorTanar using (tankorId)
+ where tanev=".__TANEV." and tankorTanar.tanarId is not null
+ and beDt<='".$_TANEV['kezdesDt']."' AND (kiDt IS NULL OR kiDt >= '".$_TANEV['zarasDt']."')";
+ $ret['kesz'] = db_query($q, array('fv'=>'getTankorStat/1','modul'=>'naplo_intezmeny','result'=>'value'));
+
+ $q = "select count(distinct tankorId) from tankorSzemeszter where tanev=".__TANEV;
+ $ret['osszes'] = db_query($q, array('fv'=>'getTankorStat/1','modul'=>'naplo_intezmeny','result'=>'value'));
+
+ return $ret;
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/terem.php b/mayor-orig/www/include/modules/naplo/intezmeny/terem.php
new file mode 100644
index 00000000..ee640a54
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/terem.php
@@ -0,0 +1,25 @@
+<?php
+
+ function teremAdatModositas($ADAT,$uj=false) {
+
+ if ($uj===true) {
+ $q = "INSERT INTO `terem` (`teremId`,`leiras`,`tipus`,`ferohely`,`telephelyId`) VALUES ((SELECT max(teremId)+1 FROM terem AS s),'%s','%s',%u,NULL)";
+ $v = array($ADAT['leiras'], $ADAT['tipus'], intval($ADAT['ferohely']));
+ } else {
+ $q = "UPDATE `terem` SET `leiras`='%s',`tipus`='%s'";
+ $v = array($ADAT['leiras'], $ADAT['tipus']);
+ if (isset($ADAT['ferohely'])) { $q .= ",`ferohely`=%u"; $v[] = $ADAT['ferohely']; }
+ else { $q .= ",`ferohely`=NULL"; }
+ if (isset($ADAT['telephelyId'])) { $q .= ",`telephelyId`=%u"; $v[] = $ADAT['telephelyId']; }
+ else { $q .= ",`telephelyId`=NULL"; }
+
+ $q .= " WHERE teremId=%u";
+ $v[] = $ADAT['teremId'];
+ }
+
+ return db_query($q, array('fv' => 'teremAdatModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/tovabbkepzes.php b/mayor-orig/www/include/modules/naplo/intezmeny/tovabbkepzes.php
new file mode 100644
index 00000000..a7f56083
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/tovabbkepzes.php
@@ -0,0 +1,159 @@
+<?php
+
+ function getTanarTovabbkepzesCiklus() {
+ // $q = "select tanarId,tovabbkepzesStatusz,sum(reszosszeg) as sumReszosszeg,sum(oraszam) as sumOraszam,tanar.tovabbkepzesForduloDt,tanev from tovabbkepzesTanulmanyiEgyseg
+ // left join tovabbkepzes USING (tovabbkepzesId) LEFT JOIN tanar USING (tanarId)
+ // WHERE tanev BETWEEN YEAR(tovabbkepzesForduloDt)-7 AND YEAR(tovabbkepzesForduloDt) GROUP BY tanarId,tovabbkepzesStatusz";
+ $q = "select tanarId,tovabbkepzesStatusz,sum(sumReszosszeg) AS sumReszosszeg,sum(IF(akkreditalt=1,sumOraszam,IF(sumOraszam<=30,sumoraszam,30))) AS sumOraszam,
+ tovabbkepzesForduloDt,tanev
+ FROM (select akkreditalt,tanarId,tovabbkepzesStatusz,sum(reszosszeg) as sumReszosszeg,sum(oraszam) as sumOraszam,tanar.tovabbkepzesForduloDt,tanev from tovabbkepzesTanulmanyiEgyseg left join tovabbkepzes USING (tovabbkepzesId) LEFT JOIN tanar USING (tanarId)
+ WHERE tanev BETWEEN YEAR(tovabbkepzesForduloDt)-8 AND YEAR(tovabbkepzesForduloDt)-1 GROUP BY tanarId,tovabbkepzesStatusz,akkreditalt) AS a GROUP BY tanarId,tovabbkepzesStatusz";
+ $r = db_query($q, array('debug'=>false,'fv'=>'getTovabbkepzesek','modul'=>'naplo_intezmeny','result'=>'indexed'));
+ return reindex($r,array('tanarId','tovabbkepzesStatusz'));
+ }
+
+ function getTanarTovabbkepzesFolyamat($dt="NOW()") {
+ $q = "select tanarId,tolDt,igDt,tanusitvanyDt,tanusitvanySzam from tovabbkepzesTanar WHERE NOW() BETWEEN tolDt AND igDt";
+ $r = db_query($q, array('debug'=>false,'fv'=>'getTovabbkepzesek','modul'=>'naplo_intezmeny','result'=>'assoc','keyfield'=>'tanarId'));
+ return $r;
+ }
+
+ function getTovabbkepzesTerv($tanev) {
+ $q = "SELECT * FROM tovabbkepzesTanulmanyiEgyseg WHERE tanev=%u";
+ $values = array($tanev);
+ $r = db_query($q, array('debug'=>false,'fv'=>'getTovabbkepzesek','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$values));
+ return $r;
+ }
+
+ function getTanarTovabbkepzesByEv($tanev,$tanarId=null) {
+ if ($tanarId>0) {
+ $values = array($tanev,$tanev,$tanarId);
+ $W = ' tanarId=%u AND ';
+ } else {
+ $values = array($tanev,$tanev);
+ $W = '';
+ }
+ $q = "SELECT * FROM tovabbkepzesTanar
+ WHERE $W tolDt<=DATE(CONCAT(%u+1,'-08-31')) AND (igDt>=DATE(CONCAT(%u,'-09-01')) OR igDt IS NULL) AND (tanusitvanySzam='' or tanusitvanySzam IS NULL)";
+ $r = db_query($q, array('debug'=>false,'fv'=>'getTanarTovabbkepzesByEv','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$values));
+ return $r;
+ }
+
+ // TODO ?
+ function getTanarTeljesitettTanulmanyiEgyseg() {
+ $q = "SELECT * FROM tovabbkepzesTanulmanyiEgyseg LEFT JOIN tovabbkepzesTanar USING (tovabbkepzesId,tanarId) WHERE tovabbkepzesStatusz='teljesített'";
+ $values = array($tanarId);
+ $r = db_query($q, array('debug'=>false,'fv'=>'getTanarTovabbkepzesByEv','modul'=>'naplo_intezmeny','result'=>'multiassoc','keyfield'=>'tanarId','values'=>$values));
+ return $r;
+ }
+
+ function getTanarTovabbkepzesek($SET = array()) {
+ $W = '';
+ $values=array();
+ if (is_array($SET) && count($SET)>0) {
+ foreach ($SET as $k => $v) {
+ $M[] = "$k='%s'";
+ $values[] = $v;
+ }
+ $W = 'WHERE '.implode(' AND ',$M);
+ }
+ $q = "SELECT * FROM tovabbkepzesTanar ".$W;
+ $r = db_query($q, array('debug'=>false,'fv'=>'getTovabbkepzesek','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$values));
+ return $r;
+ }
+ function getTovabbkepzesek() {
+ $q = "SELECT * FROM tovabbkepzes LEFT JOIN tovabbkepzoIntezmeny USING (tovabbkepzointezmenyId) ORDER BY tovabbkepzesNev";
+ $r = db_query($q, array('fv'=>'getTovabbkepzesek','modul'=>'naplo_intezmeny','result'=>'indexed'));
+ return $r;
+ }
+ function getTovabbkepzoIntezmenyek() {
+ $q = "SELECT * FROM tovabbkepzoIntezmeny ORDER BY intezmenyRovidnev,intezmenyNev";
+ $r = db_query($q, array('fv'=>'getTovabbkepzoIntezmenyek','modul'=>'naplo_intezmeny','result'=>'indexed'));
+ return $r;
+ }
+ function getKeretosszeg($tanev) {
+ $q = "SELECT keretOsszeg FROM tovabbkepzesKeret WHERE tanev=%u";
+ $v = array($tanev);
+ $r = db_query($q, array('fv'=>'getKeretosszeg','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+ return $r;
+ }
+
+ function ujTovabbkepzoIntezmeny($ADAT) {
+ $q = "INSERT INTO tovabbkepzoIntezmeny (intezmenyRovidnev,intezmenyNev) VALUES ('%s','%s')";
+ $v = array($ADAT['intezmenyRovidNev'],$ADAT['intezmenyNev']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzoIntezmeny','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v));
+ return $r;
+ }
+
+
+ function modKeretosszeg($tanev,$keretOsszeg) {
+ $q = "REPLACE INTO tovabbkepzesKeret (tanev,keretOsszeg) VALUES (%u,%u)";
+ $v = array($tanev,$keretOsszeg);
+ db_query($q, array('debug'=>false,'fv'=>'modKeretOsszeg','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v));
+ }
+
+ function ujTovabbkepzes($ADAT) {
+ if ($ADAT['tovabbkepzesNev']=='') return false;
+ $q = "INSERT INTO tovabbkepzes (tovabbkepzesNev,tovabbkepzoIntezmenyId, oraszam, kategoria, akkreditalt) VALUES ('%s',%u,%u,'%s',%u)";
+ $v = array($ADAT['tovabbkepzesNev'],$ADAT['tovabbkepzoIntezmenyId'],$ADAT['oraszam'],$ADAT['kategoria'],$ADAT['akkreditalt']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzes','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v));
+ return $r;
+ }
+ function modTovabbkepzes($ADAT) {
+ if ($ADAT['tovabbkepzesId']=='') return false;
+ $q = "UPDATE tovabbkepzes SET tovabbkepzesNev='%s',oraszam=%u,kategoria='%s' WHERE tovabbkepzesId=%u";
+ $v = array($ADAT['tovabbkepzesNev'],$ADAT['oraszam'],$ADAT['kategoria'],$ADAT['tovabbkepzesId']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'modTovabbkepzes','modul'=>'naplo_intezmeny','result'=>'update','values'=>$v));
+ return $r;
+ }
+ function ujTovabbkepzesTanar($ADAT) {
+ if ($ADAT['tovabbkepzesId']=='') return false;
+ $q = "INSERT INTO tovabbkepzesTanar (tovabbkepzesId,tanarId, tolDt, igDt) VALUES (%u,%u,'%s','%s')";
+ $v = array($ADAT['tovabbkepzesId'],$ADAT['tanarId'],$ADAT['tolDt'],$ADAT['igDt']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzesTanar','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v));
+ return $r;
+ }
+ function modTovabbkepzesTanar($ADAT) {
+ //if ($ADAT['tovabbkepzesId']=='') return false;
+ $q = "UPDATE tovabbkepzesTanar SET tolDt='%s', igDt='%s', tanusitvanyDt='%s', tanusitvanySzam='%s' WHERE tovabbkepzesId=%u AND tanarId=%u";
+ $v = array($ADAT['tolDt'],$ADAT['igDt'],$ADAT['tanusitvanyDt'],$ADAT['tanusitvanySzam'],$ADAT['tovabbkepzesId'],$ADAT['tanarId']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzesTanar','modul'=>'naplo_intezmeny','result'=>'update','values'=>$v));
+ return $r;
+ }
+ function delTovabbkepzesTanar($ADAT) {
+ //if ($ADAT['tovabbkepzesId']=='') return false;
+ $q = "DELETE FROM tovabbkepzesTanar WHERE tovabbkepzesId=%u AND tanarId=%u";
+ $v = array($ADAT['tovabbkepzesId'],$ADAT['tanarId']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'delTovabbkepzesTanar','modul'=>'naplo_intezmeny','result'=>'delete','values'=>$v));
+ return $r;
+ }
+ function ujTovabbkepzesTE($ADAT,$lr) {
+ $q = "INSERT INTO tovabbkepzesTanulmanyiEgyseg (tovabbkepzesId, tanarId, tanev, reszosszeg, tamogatas, tovabbkepzesStatusz, tavollet,helyettesitesRendje,prioritas) VALUES (%u,%u,%u,%u,%u,'%s','%s','%s','%s')";
+ $v = array($ADAT['tovabbkepzesId'],$ADAT['tanarId'],$ADAT['tanev'],intval($ADAT['reszosszeg']),intval($ADAT['tamogatas']),$ADAT['tovabbkepzesStatusz'],$ADAT['tavollet'],$ADAT['helyettesitesRendje'],$ADAT['prioritas']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzesTanar','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v),$lr);
+ }
+ function modTovabbkepzesTE($ADAT) {
+ $lr = db_connect('naplo_intezmeny');
+ $q = "SELECT count(*) AS db FROM tovabbkepzesTanulmanyiEgyseg WHERE tovabbkepzesId=%u AND tanarId=%u AND tanev=%u";
+ $v = array($ADAT['tovabbkepzesId'],$ADAT['tanarId'],$ADAT['tanev']);
+ $db = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzesTanar','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v),$lr);
+ if ($db==0) {
+ ujTovabbkepzesTE($ADAT,$lr);
+ $q = "UPDATE tovabbkepzesTanulmanyiEgyseg SET reszosszeg=%u,tamogatas=%u,tovabbkepzesStatusz='%s',tavollet='%s',helyettesitesRendje='%s',prioritas='%s' WHERE tovabbkepzesId=%u AND tanarId=%u AND tanev=%u";
+ $v = array(intval($ADAT['reszosszeg']),intval($ADAT['tamogatas']),$ADAT['tovabbkepzesStatusz'],$ADAT['tavollet'],$ADAT['helyettesitesRendje'],$ADAT['prioritas'],$ADAT['tovabbkepzesId'],$ADAT['tanarId'],$ADAT['tanev']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzesTanar','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v),$lr);
+
+ } else {
+ $q = "UPDATE tovabbkepzesTanulmanyiEgyseg SET reszosszeg=%u,tamogatas=%u,tovabbkepzesStatusz='%s',tavollet='%s',helyettesitesRendje='%s',prioritas='%s' WHERE tovabbkepzesId=%u AND tanarId=%u AND tanev=%u";
+ $v = array(intval($ADAT['reszosszeg']),intval($ADAT['tamogatas']),$ADAT['tovabbkepzesStatusz'],$ADAT['tavollet'],$ADAT['helyettesitesRendje'],$ADAT['prioritas'],$ADAT['tovabbkepzesId'],$ADAT['tanarId'],$ADAT['tanev']);
+ $r = db_query($q, array('debug'=>false,'fv'=>'ujTovabbkepzesTanar','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v),$lr);
+ }
+ db_commit($lr);
+ db_close($lr);
+ }
+ function delTovabbkepzesTE($ADAT) {
+ // echo 'EZT TÖRÖLNÉM';
+ // dump($ADAT);
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/intezmeny/valtas.php b/mayor-orig/www/include/modules/naplo/intezmeny/valtas.php
new file mode 100644
index 00000000..702766bb
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/intezmeny/valtas.php
@@ -0,0 +1,9 @@
+<?php
+
+ function updateNaploSettings($intezmeny) {
+ $q = "DELETE FROM settings WHERE userAccount='%s' AND policy='%s'";
+ db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array(_USERACCOUNT,_POLICY)));
+ $q = "INSERT INTO settings (userAccount,policy,intezmeny) VALUES ('%s','%s','%s')";
+ return db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array(_USERACCOUNT,_POLICY,$intezmeny)));
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/koszi/esemenyAdmin.php b/mayor-orig/www/include/modules/naplo/koszi/esemenyAdmin.php
new file mode 100644
index 00000000..4243cf79
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/koszi/esemenyAdmin.php
@@ -0,0 +1,86 @@
+<?php
+
+ function ujEsemeny($ADAT) {
+
+/*
+| kosziEsemenyId | int(10) unsigned | NO | PRI | NULL | |
+| kosziEsemenyNev | varchar(50) | NO | | NULL | |
+| kosziEsemenyLeiras | varchar(255) | NO | | NULL | |
+| kosziEsemenyTipus | enum('iskolai rendezvény','DÖK rendezvény','tanulmányi verseny','sportverseny','foglalkozás','tevékenység','hiányzás') | NO | | NULL | |
+| kosziEsemenyIntervallum | tinyint(1) unsigned | YES | | 0 | |
+*/
+ $q = "INSERT INTO kosziEsemeny (kosziEsemenyNev,kosziEsemenyLeiras,kosziEsemenyTipus,kosziEsemenyIntervallum) VALUES ('%s','%s','%s',%u)";
+ $v = array($ADAT['kosziEsemenyNev'],$ADAT['kosziEsemenyLeiras'],$ADAT['kosziEsemenyTipus'],0);
+
+ return db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'koszi_ujEsemeny','values'=>$v, 'result'=>'insert'));
+
+ }
+
+ function ujKosziPont($ADAT) {
+
+ // kosziHelyezes NULL / 0 ??
+
+ if ($ADAT['kosziPontTipus']=='') return false;
+
+ $q = "INSERT INTO kosziPont (kosziEsemenyId,kosziPontTipus,kosziPont,kosziHelyezes) VALUES (%u,'%s',%u,%u)";
+ $v = array($ADAT['kosziEsemenyId'],$ADAT['kosziPontTipus'],$ADAT['kosziPont'],intval($ADAT['kosziHelyezes']));
+
+ return db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'koszi_ujPont','values'=>$v, 'result'=>'insert'));
+
+ }
+
+ function ujKoszi($ADAT) {
+/*
++----------------+-----------------------------------------+------+-----+---------+----------------+
+| kosziId | int(10) unsigned | NO | PRI | NULL | auto_increment |
+| kosziEsemenyId | int(10) unsigned | NO | MUL | NULL | |
+| dt | date | YES | | NULL | |
+| tanev | smallint(5) unsigned | YES | | NULL | |
+| felev | tinyint(3) unsigned | YES | | NULL | |
+| igazolo | set('diák','tanár','osztályfőnök') | YES | | NULL | |
++----------------+-----------------------------------------+------+-----+---------+----------------+
+*/
+
+ $keys = array('kosziEsemenyId','dt','igazolo');
+ $pattern = array("%u","'%s'","'%s'");
+ $v = array($ADAT['kosziEsemenyId'],$ADAT['dt'],$ADAT['igazolo']);
+
+ if (!is_null($ADAT['targyId'])) { $keys[] = 'targyId'; $pattern[] = "%u"; $v[]=$ADAT['targyId'];}
+ if (!is_null($ADAT['felev'])) { $keys[] = 'felev'; $pattern[] = "%u"; $v[]=$ADAT['felev'];}
+ if (!is_null($ADAT['tolDt'])) { $keys[] = 'tolDt'; $pattern[] = "'%s'"; $v[]=$ADAT['tolDt'];}
+ if (!is_null($ADAT['igDt'])) { $keys[] = 'igDt'; $pattern[] = "'%s'"; $v[]=$ADAT['igDt'];}
+
+ $q = "INSERT INTO koszi (".implode(',',$keys).") VALUES (".implode(',',$pattern).")";
+ return db_query($q, array('modul'=>'naplo','fv'=>'koszi_ujKoszi','values'=>$v, 'result'=>'insert'));
+
+ }
+
+ function delKoszi($kosziIds) {
+ for ($i=0; $i<count($kosziIds); $i++) {
+ $kosziId = $kosziIds[$i];
+ $q = "DELETE FROM koszi WHERE kosziId=%u";
+ $v = array($kosziId);
+ db_query($q, array('modul'=>'naplo','fv'=>'koszi_del','values'=>$v, 'result'=>'delete'));
+ }
+ }
+
+ function kosziIgazolo($kosziId, $IDK,$tipus) {
+
+/*
+| kosziId | int(10) unsigned | NO | PRI | NULL | |
+| diakId | int(10) unsigned | NO | PRI | NULL | |
+*/
+
+ if ($tipus=='Diak') $t = 'diak'; else $t='tanar';
+
+ for ($i=0; $i<count($IDK); $i++) {
+ $q = "INSERT INTO kosziIgazolo".$tipus." (kosziId,".$t."Id) VALUES (%u,%u)";
+ $v = array($kosziId,$IDK[$i]);
+ db_query($q, array('modul'=>'naplo','fv'=>'koszi_ujKapcsolat','values'=>$v, 'result'=>'insert'));
+ }
+
+ return;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/koszi/koszi.php b/mayor-orig/www/include/modules/naplo/koszi/koszi.php
new file mode 100644
index 00000000..0e6e9572
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/koszi/koszi.php
@@ -0,0 +1,40 @@
+<?php
+ function ujKosziDiak($ADAT) {
+/*
+| Field | Type | Null | Key | Default | Extra |
++--------------+------------------+------+-----+---------------------+-------+
+| kosziId | int(10) unsigned | NO | PRI | NULL | |
+| diakId | int(10) unsigned | NO | PRI | NULL | |
+| rogzitesDt | timestamp | NO | | CURRENT_TIMESTAMP | |
+| jovahagyasDt | timestamp | NO | | 0000-00-00 00:00:00 | |
+| kosziPontId | int(10) unsigned | NO | MUL | NULL | |
+| pont | int(10) unsigned | NO | | NULL | |
++--------------+------------------+------+-----+---------------------+-------+
+*/
+
+ // check a hibajelzés kedvéért, ilyet amúgy sem tudnánk beírni az adatbázisba
+ $q = "SELECT count(*) as db FROM kosziDiak WHERE kosziId=%u AND diakId=%u ";
+ $v = array($ADAT['kosziId'],$ADAT['diakId']);
+ $db = db_query($q, array('modul'=>'naplo','fv'=>'koszi_ujKosziDiak','values'=>$v, 'result'=>'value'));
+
+ if ($db>0) {
+ $_SESSION['alert'][] = 'info:koszi_dup';
+ return false;
+ }
+
+
+ $q = "SELECT kosziPont FROM kosziPont WHERE kosziPontId=%u";
+ $v = array($ADAT['kosziPontId']);
+ $pont = db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'koszi_ujKosziDiak','values'=>$v, 'result'=>'value'));
+
+
+ if (is_numeric($pont) && is_numeric($ADAT['kosziId']) && is_numeric($ADAT['diakId'])) {
+ $q = "INSERT INTO kosziDiak (kosziId,diakId,kosziPontId,pont) VALUES (%u,%u,%u,%u)";
+ $v = array($ADAT['kosziId'],$ADAT['diakId'],$ADAT['kosziPontId'],$pont);
+ return db_query($q, array('modul'=>'naplo','fv'=>'koszi_ujKosziDiak','values'=>$v, 'result'=>'insert'));
+ } else {
+ return false;
+ }
+
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/koszi/kosziAdmin.php b/mayor-orig/www/include/modules/naplo/koszi/kosziAdmin.php
new file mode 100644
index 00000000..50ba9981
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/koszi/kosziAdmin.php
@@ -0,0 +1,82 @@
+<?php
+
+ function kosziJovahagyhatoByAdmin($kosziId,$diakId) {
+ return true;
+ }
+
+
+ function kosziJovahagyhatoByDiakId($kosziId,$diakId) {
+
+ $q = "SELECT count(*) AS c FROM kosziIgazoloDiak WHERE kosziId=%u AND diakId=%u";
+ $v = array($kosziId,$diakId);
+ $r = db_query($q, array('modul'=>'naplo','fv'=>'koszi_jovahagyhato','values'=>$v, 'result'=>'value'));
+ return ($r==1);
+
+ }
+
+ function kosziJovahagyhatoByTanarId($kosziId,$tanarId) {
+
+
+ $q = "SELECT count(*) AS c FROM kosziIgazoloTanar WHERE kosziId=%u AND tanarId=%u";
+ $v = array($kosziId,$tanarId);
+ $r1 = db_query($q, array('modul'=>'naplo','fv'=>'koszi_jovahagyhato','values'=>$v, 'result'=>'value'));
+
+ $q = "SELECT count(*) AS c FROM kosziIgazoloOf WHERE kosziId=%u AND tanarId=%u";
+ $v = array($kosziId,$tanarId);
+ $r2 = db_query($q, array('modul'=>'naplo','fv'=>'koszi_jovahagyhato','values'=>$v, 'result'=>'value'));
+
+ /* Ez sajnos jóval bonyolultabb lett v2.0: ilyen: szinkronizáld a share/koszi.php - ben levő függvénnyel, ami HASONLÓ */
+
+ $q = "SELECT count(*) AS c FROM kosziDiak
+ LEFT JOIN kosziIgazoloTanar USING (kosziId)
+ LEFT JOIN kosziIgazoloOf USING (kosziId)
+ LEFT JOIN koszi USING (kosziId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".kosziEsemeny USING (kosziEsemenyId)
+ WHERE kosziDiak.kosziId=%u AND jovahagyasDt='0000-00-00 00:00:00' AND
+ (
+ (
+ (kosziIgazoloTanar.tanarId=%u AND kosziIgazoloOf.tanarId IS NULL) Or
+ (kosziIgazoloTanar.tanarId IS NULL AND kosziIgazoloOf.tanarId=%u)
+ ) OR (
+ koszi.igazolo LIKE '%%osztályfőnök%%' AND
+ diakId IN (
+ SELECT diakId FROM ".__INTEZMENYDBNEV.".osztalyTanar
+ LEFT JOIN ".__INTEZMENYDBNEV.".osztalyDiak USING (osztalyId)
+ WHERE tanarId=%u AND osztalyTanar.beDt<=NOW() AND (osztalyTanar.kiDt IS NULL OR osztalyTanar.kiDt>=NOW())
+ )
+ ) OR (
+ koszi.igazolo LIKE '%%tanár%%' AND
+ diakId IN (
+ SELECT diakId FROM ".__INTEZMENYDBNEV.".tankorTanar
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorDiak USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ WHERE tanarId=%u AND ".__INTEZMENYDBNEV.".tankor.targyId = koszi.targyId
+ )
+ )
+ )
+ ";
+ $v = array($kosziId, $tanarId, $tanarId,$tanarId,$tanarId,$tanarId);
+ $r3 = db_query($q, array('debug'=>false,'modul'=>'naplo','result'=>'value', 'values'=>$v));
+ return ($r1==1 || $r2==1 || $r3==1);
+
+ }
+
+
+ function kosziElutasit($kosziId,$diakId) {
+
+ // delete helyett update elutasítva flag állítása?
+
+ $q = "DELETE FROM kosziDiak WHERE kosziId=%u AND diakId=%u";
+ $v = array($kosziId,$diakId);
+ db_query($q, array('modul'=>'naplo','fv'=>'koszi_torol','values'=>$v, 'result'=>'delete'));
+
+ }
+
+ function kosziJovahagy($kosziId,$diakId) {
+ $q = "UPDATE kosziDiak SET jovahagyasDt=NOW() WHERE kosziId=%u AND diakId=%u";
+ $v = array($kosziId,$diakId);
+ db_query($q, array('modul'=>'naplo','fv'=>'koszi_jovahagy','values'=>$v, 'result'=>'update'));
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/naplo.php b/mayor-orig/www/include/modules/naplo/naplo.php
new file mode 100644
index 00000000..e7923a72
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/naplo.php
@@ -0,0 +1,12 @@
+<?php
+
+// require_once('include/share/net/ertesites.php');
+
+ function getBeirasiAdatok() {
+ if (defined('__USERTANARID') && is_numeric(__USERTANARID)) {
+ $q = "SELECT COUNT(*) FROM ora WHERE ki=".__USERTANARID." AND dt <= CURDATE() AND (leiras IS NULL OR leiras='')";
+ return db_query($q, array('fv' => 'getBeirasiAdatok', 'modul' => 'naplo', 'result' => 'value'));
+ } else return 0;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/beiskolazasiTerv.php b/mayor-orig/www/include/modules/naplo/nyomtatas/beiskolazasiTerv.php
new file mode 100644
index 00000000..1fd6402e
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/beiskolazasiTerv.php
@@ -0,0 +1,64 @@
+<?php
+
+ function getBeiskolazasiTerv($tanev) {
+
+ $q = "select * from tovabbkepzesTanulmanyiEgyseg left join tovabbkepzes using (tovabbkepzesId) left join tovabbkepzoIntezmeny using (tovabbkepzoIntezmenyId)
+ left join tovabbkepzesTanar using (tanarId, tovabbkepzesId)
+ where tovabbkepzesStatusz in ('terv','jóváhagyott','teljesített') and tanev=%u";
+ return db_query($q, array('fv'=>'getBeiskolazasiTerv','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array($tanev)));
+
+ }
+
+ function beiskolazasNyomtatvanyKeszites($ADAT) {
+
+ global $Honapok;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ $tmplFile = 'beiskolazasiTerv';
+
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ $Intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+ list($ev, $ho, $nap) = explode('-', $ADAT['tanulmanyiEgyseg']['igDt']);
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'), 'nyomtatasDatumStr' => date('Y. m. d.'),
+ 'datumEv' => $ev, 'datumHonap' => $ho, 'datumNap' => $nap, 'hoNev' => kisbetus($Honapok[$ho-1]),
+ 'intezmenyNev' => $Intezmeny['nev'], 'intezmenyOMKod' => $Intezmeny['OMKod'], 'intezmenyCimIrsz' => $Intezmeny['cimIrsz'],
+ 'intezmenyCimHelyseg' => $Intezmeny['cimHelyseg'], 'intezmenyCimKozteruletNev' => $Intezmeny['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $Intezmeny['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $Intezmeny['cimHazszam'],
+ 'intezmenyTelefon' => $Intezmeny['telefon'], 'intezmenyHonlap' => $Intezmeny['honlap'],
+ 'intezmenyFax' => $Intezmeny['fax'], 'intezmenyEmail' => $Intezmeny['email'],
+
+ 'tanevJele'=>$ADAT['tanev'].'/'.($ADAT['tanev']+1), 'tanev'=>$ADAT['tanev'],
+
+ 'tanulmanyiEgyseg' => range(0, count($ADAT['tanulmanyiEgyseg'])-1),
+
+ ),
+ 'tanulmanyiEgyseg' => $ADAT['tanulmanyiEgyseg']
+
+ );
+ for ($i = 0; $i < count($ADAT['tanulmanyiEgyseg']); $i++) {
+ $TE = $ADAT['tanulmanyiEgyseg'][$i];
+ $DATA['tanulmanyiEgyseg'][$i]['tanarNev'] = $ADAT['tanarok'][ $TE['tanarId'] ]['tanarNev'];
+ $DATA['tanulmanyiEgyseg'][$i]['tolDt'] = str_replace('-','. ',$TE['tolDt']).'.';
+ $DATA['tanulmanyiEgyseg'][$i]['igDt'] = str_replace('-','. ',$TE['igDt']).'.';
+ //$DATA['tanulmanyiEgyseg'][$i]['tanarBesorolas'] = $ADAT['tanarok'][ $TE['tanarId'] ]['besorolas'];
+ }
+
+//dump($ADAT);
+//dump($DATA);
+//return false;
+//die();
+ return template2file($templateFile, $DATA);
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/bizonyitvanyNyomtatas.php b/mayor-orig/www/include/modules/naplo/nyomtatas/bizonyitvanyNyomtatas.php
new file mode 100644
index 00000000..b4d254d2
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/bizonyitvanyNyomtatas.php
@@ -0,0 +1,164 @@
+<?php
+
+ define('__PRINT_DIR',_DOWNLOADDIR.'/private/osztalyozo');
+
+ function pdfBizonyitvany($file, $ADAT) {
+
+ global $KOVETELMENY, $Honapok, $bizonyitvanyMegjegyzesek;
+
+// $ftex = fopen(__PRINT_DIR.'/'.$file.'-A6.tex', 'w');
+// if (!$ftex) return false;
+
+ $ev = substr($ADAT['szemeszterAdat']['zarasDt'], 0, 4);
+ $ho = substr($ADAT['szemeszterAdat']['zarasDt'], 5, 2);
+ $nap = substr($ADAT['szemeszterAdat']['zarasDt'], 8, 2);
+ $dtStr = $ev.'. '.kisbetus($Honapok[--$ho]).' '.$nap.'.';
+
+
+ // fejléc
+ $TeX = '\documentclass[8pt]{article}'."\n\n";
+ $TeX .= '\usepackage[a6paper]{geometry} % A6-os méret'."\n";
+// $TeX .= '\usepackage[utf8]{inputenc} % UTF-8 kódolású forrás'."\n";
+ $TeX .= '\usepackage[utf8x]{inputenc} % UTF-8 kódolású forrás (ucs)'."\n";
+ $TeX .= '\usepackage{ucs} % Jobb UTF-8 támogatás'."\n";
+ $TeX .= '\usepackage{t1enc}'."\n";
+ $TeX .= '\usepackage[magyar]{babel} % magyar elválasztási szabályok'."\n";
+ $TeX .= '\frenchspacing % a magyar tipográfiai szabályoknak megfelelő szóközök írásjelek után'."\n";
+ $TeX .= '\usepackage{booktabs} % táblázatok magasabb szintű formázása'."\n";
+// $TeX .= '\usepackage{soul} % Ritkítás'."\n";
+ $TeX .= '\usepackage{fancyhdr} % Ritkítás'."\n";
+// $TeX .= '\pagestyle{empty}'."\n";
+ $TeX .= '\pagestyle{fancy}'."\n";
+
+ $TeX .= '\def\mayor{%'."\n";
+// $TeX .= '\font\mayorfnt=cmsl6%'."\n";
+// $TeX .= '\font\Mayorfnt=cmsl9'."\n";
+ $TeX .= '\font\mayorfnt=cmsl4%'."\n";
+ $TeX .= '\font\Mayorfnt=cmsl6'."\n";
+ $TeX .= '{\mayorfnt\lower0.5ex\hbox{\lower-0.5ex\hbox{Ma}\kern-0.3em\lower0.25ex\hbox{\Mayorfnt Y}\kern-0.2em\hbox{o}\lower0ex\hbox{R}}}}'."\n";
+
+ $TeX .= '\renewcommand{\footnotesize}{\fontsize{6pt}{8pt}\selectfont}'."\n";
+ $TeX .= '\addtolength{\skip\footins}{2mm}'."\n";
+ $TeX .= '\addtolength{\textheight}{10mm}'."\n";
+ $TeX .= '\setlength{\footskip}{16pt}'."\n";
+ $TeX .= '\setlength{\headsep}{14pt}'."\n";
+
+ $TeX .= '\cfoot{\tiny \copyright\mayor\ elektronikus napló - Nyomtatva: '.date('Y.m.d').'}';
+ $TeX .= '\lhead{\tiny '.$ADAT['intezmeny']['nev'].'}'."\n";
+ $TeX .= '\rhead{\tiny Értesítő '.$ADAT['szemeszterAdat']['tanev'].'-'.(1+$ADAT['szemeszterAdat']['tanev']).'/'.$ADAT['szemeszterAdat']['szemeszter'].'}';
+
+ $TeX .= '\begin{document}'."\n\n";
+
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+
+ $diakId = $ADAT['diakok'][$i]['diakId'];
+ $jegyek = $ADAT['jegyek'][$diakId];
+ $hianyzas = $ADAT['hianyzas'][$diakId];
+//2013NKT if (_KESESI_IDOK_OSSZEADODNAK===true)
+ $igazolatlan = intval($hianyzas['kesesPercOsszeg']/45)+intval($hianyzas['igazolatlan']);
+//2013NKT else
+//2013NKT $igazolatlan = intval($hianyzas['igazolatlan']);
+ $igazolt = intval($hianyzas['igazolt']);
+ //$atlag = $ADAT['atlag'][$diakId];
+
+ $TeX .= '\begin{center}'."\n";
+
+// $TeX .= '{\large\bfseries\scshape\so{\\\'Ertes{\\\'\\i}t\\H o}}'."\n";
+// $TeX .= '\vspace{8pt}'."\n\n";
+ $TeX .= '{\large '.$ADAT['diakok'][$i]['diakNev'].'}\\\\ '."\n";
+// $TeX .= '\vspace{2pt}'."\n\n";
+// $TeX .= '{\scriptsize '.$ADAT['osztaly']['osztalyJel'].' osztály\\\\'.$ADAT['intezmeny']['nev']."}\n\n";
+ $TeX .= '{\scriptsize '.$ADAT['osztaly']['osztalyJel'].' osztály'."}\n\n";
+ $TeX .= '\vspace{2pt}'."\n\n";
+// $TeX .= '{\small '.$ADAT['szemeszterAdat']['tanev'].'-'.(1+$ADAT['szemeszterAdat']['tanev']).'/'.$ADAT['szemeszterAdat']['szemeszter'].'}'."\n";
+// $TeX .= '\vspace{4pt}'."\n\n";
+
+
+ // --!!--!!-- Magatartás és szorgalom jegyek, ID alapján kellenének, nem pedig targyNev alapján!
+ $__magatartas = '';
+ for ($m=0; $m<count($ADAT['magatartasIdk']); $m++) {
+ $__mId = $ADAT['magatartasIdk'][$m];
+ for ($m2=0; $m2<count($jegyek[$__mId]); $m2++) {
+ if ($__magatartas!='') $__magatartas .= ' ';
+ $__magatartas .= $KOVETELMENY['magatartás'][$jegyek[$__mId][$m2]['jegy']]['hivatalos'];
+ }
+ }
+ $__szorgalom = '';
+ for ($m=0; $m<count($ADAT['szorgalomIdk']); $m++) {
+ $__szId = $ADAT['szorgalomIdk'][$m];
+ for ($m2=0; $m2<count($jegyek[$__szId]); $m2++) {
+ if ($__szorgalom!='') $__szorgalom .= ' ';
+ $__szorgalom .= $KOVETELMENY['szorgalom'][$jegyek[$__szId][$m2]['jegy']]['hivatalos'];
+ }
+ }
+
+ $TeX .= '\small'."\n";
+ $TeX .= '\begin{tabular}{@{\ \ }l|r@{\ \ }}'."\n";
+ $TeX .= '\toprule\hline magatartás & ';
+ $TeX .= '\emph{'.$__magatartas.'}\\\\ '."\n";
+ $TeX .= '\hline szorgalom & ';
+ $TeX .= '\emph{'.$__szorgalom.'}\\\\ '."\n";
+// $TeX .= '\midrule\multicolumn{2}{c}{tantárgyak} \\\\'."\n";
+// $TeX .= '\midrule\hline'."\n";
+ $TeX .= '\hline\hline'."\n";
+// $TeX .= '\hline\multicolumn{2}{c}{tantárgyak} \\\\'."\n";
+// $TeX .= '\hline'."\n";
+
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (!in_array($ADAT['targyak'][$j]['targyId'], array_merge($ADAT['magatartasIdk'],$ADAT['szorgalomIdk']))) {
+ $__jegyek='';
+ for ($k=0; $k<count($jegyek[$ADAT['targyak'][$j]['targyId']]); $k++) {
+ $jegyAdat = $jegyek[$ADAT['targyak'][$j]['targyId']][$k];
+ if ($jegyAdat['jegy'] != '' && $jegyAdat['jegy'] != 0) {
+ if ($__jegyek!='') $__jegyek .= ' ';
+ $__jegyek .= $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['hivatalos'].' '.$bizonyitvanyMegjegyzesek[$jegyAdat['megjegyzes']];
+ }
+ }
+ if ($__jegyek!='') {
+ $TeX .= $ADAT['targyak'][$j]['targyNev'].' & \emph{'.$__jegyek.'} \\\\ '."\n";
+ $TeX .= '\hline'."\n";
+ }
+
+ }
+ $TeX .= '\bottomrule'."\n";
+ $TeX .= '\end{tabular}'."\n\n";
+
+ $TeX .= '\vspace{4pt}'."\n";
+ $TeX .= '\begin{tabular}{@{\ \ }l|r|l|r@{\ \ }}'."\n";
+ $TeX .= '\multicolumn{4}{c}{mulasztott órák száma} \\\\ '."\n";
+ $TeX .= '\midrule'."\n";
+ $TeX .= 'igazolt&{\sl '.$igazolt.'}&';
+ if (!__ZARO_SZEMESZTER) $TeX .= 'igazolatlan\footnotemark[1]&';
+ else $TeX .= 'igazolatlan&';
+ $TeX .= '{\sl '.$igazolatlan.'}\\\\ '."\n";
+
+ $TeX .= '\bottomrule'."\n";
+ $TeX .= '\end{tabular}'."\n";
+ if (!__ZARO_SZEMESZTER) $TeX .= '\footnotetext[1]{Tartalmazhat még igazolható hiányzásokat is!}'."\n";
+
+ $TeX .= '\vspace{4pt}\begin{flushleft}'."\n";
+ $TeX .= '{\scriptsize '.$ADAT['intezmeny']['cimHelyseg'].', '.$dtStr."}\n";
+ $TeX .= '\end{flushleft}'."\n";
+
+ $TeX .= '\vspace{6pt}\slshape\scriptsize'."\n";
+ $TeX .= '\begin{tabular}{ccc}'."\n";
+ $TeX .= '\rule{3cm}{0.1pt}&&\rule{3cm}{0.1pt}\\\\ '."\n";
+ $TeX .= 'osztályfőnök&&szülő\\\\ '."\n";
+ $TeX .= '\end{tabular}'."\n";
+
+ $TeX .= '\end{center}'."\n";
+
+ $TeX .= '\newpage %%%%%%%%%%%%%%%%% új oldal %%%%%%%%%%%%%%%%%%%%'."\n\n";
+
+ }
+
+ // dokumentum lezárása
+ $TeX .= '\end{document}'."\n";
+
+ pdfLaTeXA6($TeX, $file);
+
+ return true;
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/diakAdatlap.php b/mayor-orig/www/include/modules/naplo/nyomtatas/diakAdatlap.php
new file mode 100644
index 00000000..46adec96
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/diakAdatlap.php
@@ -0,0 +1,22 @@
+<?php
+
+ function nyomtatvanyKeszites($ADAT) {
+
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/diakAdatlap.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/diakAdatlap.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/diakAdatlap.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/diakAdatlap.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/szovegesErtekeles.tmpl';
+ return false;
+ }
+
+ return template2file($templateFile, $ADAT);
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/diakTankorJelentkezes.php b/mayor-orig/www/include/modules/naplo/nyomtatas/diakTankorJelentkezes.php
new file mode 100644
index 00000000..7eb0807e
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/diakTankorJelentkezes.php
@@ -0,0 +1,336 @@
+<?php
+
+ function getValasztottTankorok($tanev, $szemeszter, $OSZTALYIDK) {
+
+ if ($tanev=='') {
+ $tanevAdat = $_TANEV;
+ } else {
+ $tanevAdat = getTanevAdat($tanev);
+ }
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ $DT['tolDt'] = $tanevAdat['kezdesDt'];
+ $DT['igDt'] = $tanevAdat['zarasDt'] ;
+
+ $tankorBlokkok = getTankorBlokkok($tanev);
+ $TID2B = $TID2BN = array();
+ if (is_array($tankorBlokkok) && is_array($tankorBlokkok['idk']))
+ foreach ($tankorBlokkok['idk'] as $blokkId => $TB) {
+ for ($j = 0; $j < count($TB); $j++) {
+ $TID2B[$TB[$j]][] = $blokkId;
+ $TID2BN[$TB[$j]][] = $tankorBlokkok['blokkNevek'][$blokkId];
+ }
+ }
+ $v = array();
+ if (is_array($OSZTALYIDK) && count($OSZTALYIDK) > 0) {
+ $W = " AND osztalyId IN (".implode(',', array_fill(0, count($OSZTALYIDK), '%u')).")";
+ $v = $OSZTALYIDK;
+ }
+ $q = "SELECT DISTINCT tankorId, targyId, kovetelmeny, min, max, tanev, szemeszter, oraszam, tankorNev
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId) JOIN tankorOsztaly USING (tankorId)
+ WHERE tanev=%u and szemeszter=%u and tankor.felveheto =1".$W." ORDER BY tankorNev,tankor.tankorId";
+ array_unshift($v, $tanev, $szemeszter);
+ $felvehetoTankorok = db_query($q,array('debug'=>false,'fv' => 'getValasztottTankorok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($felvehetoTankorok); $i++) {
+ $_tankorId = $felvehetoTankorok[$i]['tankorId'];
+ if ($_tankorId != null) {
+ $fTankorok[$_tankorId] = $felvehetoTankorok[$i];
+ $fTankorok[$_tankorId]['blokkIdk'] = $TID2B[$_tankorId];
+ $fTankorok[$_tankorId]['blokkNevek'] = $TID2BN[$_tankorId];
+ //$felvehetoTankorok[$_tankorid]['letszam'] = getTankorLetszam($felvehetoTankorok[$i]['tankorId'],$DT);
+ $fTankorok[$_tankorId]['tanarok'] = getTankorTanaraiByInterval($_tankorId, array('tolDt' => $DT['tolDt'], 'igDt' => $DT['igDt'], 'result' => 'nevsor'));
+ $FT[] = $_tankorId;
+ }
+ }
+
+ if (is_array($FT) && count($FT) > 0) {
+ if (is_array($OSZTALYIDK) && count($OSZTALYIDK)>0) {
+ $W .= " AND osztalyDiak.beDt<='".$DT['tolDt']."' AND (osztalyDiak.kiDt IS NULL OR '".$DT['tolDt']."'<=osztalyDiak.kiDt)";
+ $v = mayor_array_join($FT, $OSZTALYIDK);
+ } else { $v = $FT; }
+ $q = "SELECT tankorId,diakId FROM tankorDiak LEFT JOIN diak USING (diakId) LEFT JOIN osztalyDiak USING (diakId)
+ WHERE tankorId IN (".implode(',', array_fill(0, count($FT), '%u')).") $W
+ ORDER BY CONCAT_WS(' ',viseltCsaladinev,viseltUtonev)";
+ $r = db_query($q,array('debug'=>false,'fv' => 'getValasztottTankorok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($r); $i++) {
+ $felvett[$r[$i]['diakId']][] = $r[$i]['tankorId'];
+ }
+ }
+
+ $ADAT['felveheto'] = $fTankorok;
+ $ADAT['felvett'] = $felvett;
+ return $ADAT;
+ }
+
+ function texLevelGeneralasMasodikNyelvValasztas($ADAT) {
+
+ $return = '';
+ $return .= '
+\documentclass[8pt]{article}
+
+\usepackage[a5paper]{geometry} % A5-os méret
+\usepackage[utf8]{inputenc} % UTF-8 kódolású forrás
+\usepackage{t1enc}
+\usepackage[magyar]{babel} % magyar elválasztási szabályok
+\frenchspacing % a magyar tipográfiai szabályoknak megfelelő szóközök írásjelek után
+\usepackage{booktabs} % táblázatok magasabb szintű formázása
+\usepackage{fancyhdr} % Ritkítás
+\pagestyle{fancy}
+\def\mayor{%
+\font\mayorfnt=cmsl4%
+\font\Mayorfnt=cmsl6
+{\mayorfnt\lower0.5ex\hbox{\lower-0.5ex\hbox{Ma}\kern-0.3em\lower0.25ex\hbox{\Mayorfnt Y}\kern-0.2em\hbox{o}\lower0ex\hbox{R}}}}
+\renewcommand{\footnotesize}{\fontsize{6pt}{8pt}\selectfont}
+%\addtolength{\skip\footins}{2mm}
+\addtolength{\textheight}{16mm}
+\setlength{\footskip}{26pt}
+\setlength{\headsep}{24pt}
+\lhead{\tiny '.$ADAT['intezmeny']['nev'].'}
+\rhead{\tiny 2. nyelv jelentkezés '.$ADAT['tanev'].'}
+\cfoot{\tiny \copyright\mayor\ elektronikus napló - Nyomtatva: '.date('Y.m.d.').'}
+\begin{document}
+';
+ $Tankorok = $tankorNev = $ADAT['valasztott']['felveheto'];
+ if (is_array($ADAT['valasztott']['felvett'])) foreach ($ADAT['valasztott']['felvett'] as $diakId => $tankorIds) {
+ $diakNev = $ADAT['diakAdat'][$diakId]['diakNev'];
+ $diakOsztaly = $ADAT['osztalyok'][ $ADAT['diakOsztaly'][$diakId][0] ]['osztalyJel'];
+
+ $return .= '
+\begin{center}
+{\large\bfseries J E L E N T K E Z É S}\\\\
+\small
+
+\vspace{12pt}
+
+A '.$ADAT['tanev'].'. szeptemberében induló\\\\
+második idegen nyelv képzésre
+
+\vspace{12pt}
+
+{\bfseries\normalsize '.$diakNev.'}\\\\
+'.$diakOsztaly.' osztály\\\\
+\end{center}
+
+\vspace{10pt}
+
+\footnotesize
+A Városmajori Gimnázium Pedagógiai Programja szerint az iskola tanulói a 9-12. évfolyamon
+(kötelező módon) két különböző idegen nyelvet tanulnak. Az első idegen nyelv az adott osztálynak,
+ill. a nyelvi előkészítő osztály adott csoportjának már előzetesen meghatározott, azonban a második
+nyelvet mindenki – az iskola lehetőségeinek figyelembevétele mellett – szabadon választhatja meg.
+Amennyiben a választott idegen nyelvet elegendő számú diák jelölte meg, úgy lehetőség van a
+nyelvi csoport indítására. (A csoportok évfolyamszintű bontásban kerülnek kialakításra.) A nyelvi
+csoportok várható létszáma 12-18 fő közötti lesz. A 9. évfolyamtól a 12. évfolyam végéig ez a
+tantárgy is ugyanolyan kötelező lesz, mint a többi tárgy.
+nem lehet hiányozni róla és jegyet kell szerezni belőle.)
+
+A fentiek tudomásul vételével, az internetes jelentkezési felületen a '.$ADAT['tanev'].'/'.($ADAT['tanev']+1).' tanév
+9. évfolyamos diákjai számára meghirdetett képzések közül általam választott 2. idegen nyelv:
+
+\vspace{16pt}
+
+\begin{tabular}{l|l|c|l}
+Tankör neve & Blokk & Óraszám & Tanár \\\\
+\toprule
+%%\hline
+';
+
+
+
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $tankorId = $tankorIds[$i];
+ $tankorNev = $Tankorok[$tankorId]['tankorNev'];
+ $oraszam = intval($Tankorok[$tankorId]['oraszam']);
+ if (is_array($Tankorok[$tankorId]['tanarok']) && count($Tankorok[$tankorId]['tanarok']) > 0)
+ $tanarNev = $Tankorok[$tankorId]['tanarok'][0]['tanarNev'];
+ else $tanarNev = '{\slshape n.a.}';
+ if (is_array($Tankorok[$tankorId]['blokkNevek'])) $blokkNev = implode(', ', $Tankorok[$tankorId]['blokkNevek']);
+ else $blokkNev = '';
+ $return .= '\vbox to 1.2em {}'.$tankorNev.' & '.$blokkNev.' & '.$oraszam.' & '.$tanarNev.' \\\\
+\hline';
+
+//echo $tankorId.' '.$tankorNev.' '.$oraszam.':'.$blokkNev.'<br>';
+//echo $diakId.' '.$diakNev.' '.$diakOsztaly.'<hr>';
+//echo '<pre>';
+//var_dump($ADAT); die();
+ }
+
+ $return .= '
+%%\bottomrule
+\end{tabular}
+
+\vspace{16pt}
+
+
+Amennyiben a választott nyelv az angol vagy a német, úgy a megfelelő szó aláhúzásával kérjük
+megadni, hogy az adott nyelvet kezdő vagy haladó szintről szeretné elkezdeni tanulni:
+
+\begin{center}
+\vspace{10pt}
+
+{
+\bfseries
+\begin{tabular}{ccc}
+kezdő szintet választom&\hspace{1cm}\ &haladó szintről szeretném kezdeni\\\\
+\end{tabular}
+}
+
+\vspace{10pt}
+
+(A haladó szintet választóknak egy szintfelmérő vizsgán kell részt venniük, ami alapján a nyelvi
+csoportbesorolást elvégezzük.)
+
+\vspace{12pt}
+
+{\slshape Az aláírt jelentkezési lap osztályfőnöknél történő leadásának határideje:} {\bfseries '.$ADAT['leadasiHatarido'].'}
+
+\vspace{20pt}
+\begin{flushleft}
+{\scriptsize Budapest, '.$ADAT['tanev'].'. április}
+\end{flushleft}
+\vspace{20pt}\slshape\scriptsize
+\begin{tabular}{ccc}
+\rule{3.5cm}{0.1pt}&\hspace{3cm}\ &\rule{3.5cm}{0.1pt}\\\\
+tanuló&&szülő/gondviselő\\\\
+\end{tabular}
+
+\end{center}
+\newpage %%%%% új oldal %%%%%';
+
+
+ }
+
+ $return .= '
+\end{document}';
+
+
+ return $return;
+ }
+
+/* ---- eredeti ---- */
+
+ function texLevelGeneralas($ADAT) {
+
+ $return = '';
+ $return .= '
+\documentclass[8pt]{article}
+
+\usepackage[a5paper]{geometry} % A5-os méret
+\usepackage[utf8]{inputenc} % UTF-8 kódolású forrás
+\usepackage{t1enc}
+\usepackage[magyar]{babel} % magyar elválasztási szabályok
+\frenchspacing % a magyar tipográfiai szabályoknak megfelelő szóközök írásjelek után
+\usepackage{booktabs} % táblázatok magasabb szintű formázása
+\usepackage{fancyhdr} % Ritkítás
+\pagestyle{fancy}
+\def\mayor{%
+\font\mayorfnt=cmsl4%
+\font\Mayorfnt=cmsl6
+{\mayorfnt\lower0.5ex\hbox{\lower-0.5ex\hbox{Ma}\kern-0.3em\lower0.25ex\hbox{\Mayorfnt Y}\kern-0.2em\hbox{o}\lower0ex\hbox{R}}}}
+\renewcommand{\footnotesize}{\fontsize{6pt}{8pt}\selectfont}
+%\addtolength{\skip\footins}{2mm}
+\addtolength{\textheight}{16mm}
+\setlength{\footskip}{26pt}
+\setlength{\headsep}{24pt}
+\lhead{\tiny '.$ADAT['intezmeny']['nev'].'}
+\rhead{\tiny Fakultációs jelentkezés '.$ADAT['tanev'].'}
+\cfoot{\tiny \copyright\mayor\ elektronikus napló - Nyomtatva: '.date('Y.m.d.').'}
+\begin{document}
+';
+ $Tankorok = $tankorNev = $ADAT['valasztott']['felveheto'];
+ if (is_array($ADAT['valasztott']['felvett'])) foreach ($ADAT['valasztott']['felvett'] as $diakId => $tankorIds) {
+ $diakNev = $ADAT['diakAdat'][$diakId]['diakNev'];
+ $diakOsztaly = $ADAT['osztalyok'][ $ADAT['diakOsztaly'][$diakId][0] ]['osztalyJel'];
+
+ $return .= '
+\begin{center}
+{\large\bfseries J E L E N T K E Z É S}\\\\
+\small
+
+\vspace{12pt}
+
+A '.$ADAT['tanev'].'. szeptemberében induló\\\\
+közép- és emeltszintű érettségire előkészítő képzésekre
+
+\vspace{12pt}
+
+{\bfseries\normalsize '.$diakNev.'}\\\\
+'.$diakOsztaly.' osztály\\\\
+
+\vspace{12pt}
+
+A '.$ADAT['tanev'].'/'.($ADAT['tanev']+1).' tanév 11. évfolyamos diákjai számára meghirdetett képzések közül
+–~az internetes jelentkezés adatai alapján~–
+%–~az elektronikus adminisztrációs rendszer adatai alapján~–
+az alábbi képzéseket választottam:
+
+\vspace{16pt}
+
+\begin{tabular}{l|l|c|l}
+Tankör neve & Blokk & Óraszám & Tanár \\\\
+\toprule
+\hline
+';
+
+
+
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $tankorId = $tankorIds[$i];
+ $tankorNev = $Tankorok[$tankorId]['tankorNev'];
+ $oraszam = intval($Tankorok[$tankorId]['oraszam']);
+ if (is_array($Tankorok[$tankorId]['tanarok']) && count($Tankorok[$tankorId]['tanarok']) > 0)
+ $tanarNev = $Tankorok[$tankorId]['tanarok'][0]['tanarNev'];
+ else $tanarNev = '{\slshape n.a.}';
+ if (is_array($Tankorok[$tankorId]['blokkNevek'])) $blokkNev = implode(', ', $Tankorok[$tankorId]['blokkNevek']);
+ else $blokkNev = '';
+ $return .= '\vbox to 1.2em {}'.$tankorNev.' & '.$blokkNev.' & '.$oraszam.' & '.$tanarNev.' \\\\
+\hline';
+
+//echo $tankorId.' '.$tankorNev.' '.$oraszam.':'.$blokkNev.'<br>';
+//echo $diakId.' '.$diakNev.' '.$diakOsztaly.'<hr>';
+//echo '<pre>';
+//var_dump($ADAT); die();
+ }
+
+ $return .= '
+\bottomrule
+\end{tabular}
+
+\vspace{16pt}
+
+Tudomásul veszem, hogy az általam választott, két tanévre meghirdetett tantárgyak a következő tanévben számomra kötelezőek lesznek, leadásukra csak a
+11. osztályos követelmények teljesítése után lesz lehetőségem.\footnotemark[1]
+\footnotetext[1]{Az iskola belső szabályai szerint a 12. évfolyamban is meg kell maradjon legalább heti 4 óra választott képzés, továbbá más tankör
+utólagos felvétele létszámkeretekhez, illetve a sikeres különbözeti vizsga letételéhez köthető.}
+
+\vspace{12pt}
+
+{\slshape Az aláírt jelentkezési lap osztályfőnöknél történő leadásának határideje:} {\bfseries '.$ADAT['leadasiHatarido'].'}
+
+\vspace{20pt}
+\begin{flushleft}
+{\scriptsize Budapest, '.$ADAT['tanev'].'. június}
+\end{flushleft}
+\vspace{20pt}\slshape\scriptsize
+\begin{tabular}{ccc}
+\rule{3.5cm}{0.1pt}&\hspace{3cm}\ &\rule{3.5cm}{0.1pt}\\\\
+tanuló&&szülő/gondviselő\\\\
+\end{tabular}
+
+\end{center}
+\newpage %%%%% új oldal %%%%%';
+
+
+ }
+
+ $return .= '
+\end{document}';
+
+
+ return $return;
+ }
+
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/ertesito.php b/mayor-orig/www/include/modules/naplo/nyomtatas/ertesito.php
new file mode 100644
index 00000000..5c1a5c97
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/ertesito.php
@@ -0,0 +1,101 @@
+<?php
+
+ function pdfErtesito($ADAT) {
+
+ global $KOVETELMENY, $Honapok, $bizonyitvanyMegjegyzesek;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ $tmplFile = 'ertesito';
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ list($ev,$ho,$nap) = explode('-', $ADAT['szemeszterAdat']['zarasDt']);
+
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'), 'ev' => $ev, 'honap' => $ho, 'nap' => $nap, 'hoNev' => kisbetus($Honapok[$ho-1]),
+ 'tanevKezdesEv' => $ADAT['szemeszterAdat']['tanev'], 'tanevZarasEv' => ($ADAT['szemeszterAdat']['tanev']+1),
+ 'szemeszter' => $ADAT['szemeszterAdat']['szemeszter'],
+ 'intezmenyNev' => $ADAT['intezmeny']['nev'], 'intezmenyCimIrsz' => $ADAT['intezmeny']['cimIrsz'],
+ 'intezmenyCimHelyseg' => $ADAT['intezmeny']['cimHelyseg'], 'intezmenyCimKozteruletNev' => $ADAT['intezmeny']['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $ADAT['intezmeny']['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $ADAT['intezmeny']['cimHazszam'],
+ 'intezmenyTelefon' => $ADAT['intezmeny']['telefon'], 'intezmenyHonlap' => $ADAT['intezmeny']['honlap'],
+ 'intezmenyFax' => $ADAT['intezmeny']['fax'], 'intezmenyEmail' => $ADAT['intezmeny']['email'],
+ 'diak' => array(), 'osztaly' => $ADAT['osztaly']['osztalyJel'],
+ 'magatartas' => '', 'szorgalom' => '',
+ 'igazolt' => 0, 'igazolatlan' => 0, 'kesesIgazolatlan' => 0, 'kesesPercOsszeg' => 0,
+ 'gyakIgazolt' => 0, 'gyakIgazolatlan' => 0, 'gyakKesesIgazolatlan' => 0, 'gyakKesesPercOsszeg' => 0,
+ 'elmIgazolt' => 0, 'elmIgazolatlan' => 0, 'elmKesesIgazolatlan' => 0, 'elmKesesPercOsszeg' => 0,
+ 'mJel' => '', 'megjegyzes' => '',
+ ),
+ 'diak' => $ADAT['diakok'],
+ );
+ for ($i = 0; $i < count($ADAT['diakIds']); $i++) if (isset($ADAT['jegyek'][ $ADAT['diakIds'][$i] ])) $DATA['base']['diak'][] = $ADAT['diakIds'][$i];
+ for ($i = 0; $i < count ($ADAT['targyak']); $i++) {
+ $DATA['targy'][ $ADAT['targyak'][$i]['targyId'] ] = $ADAT['targyak'][$i];
+ }
+ if (is_array($ADAT['jegyek']) && count($ADAT['jegyek']) > 0) foreach ($ADAT['jegyek'] as $diakId => $dJegyek) {
+ if (is_array($dJegyek) && count($dJegyek) > 0) { // Ha vanak egyáltalán jegyei...
+ foreach ($DATA['targy'] as $targyId => $tAdat) { // A helyes sorrend miatt kell ezen végigmenni
+ if (is_array($dJegyek[$targyId])) { // van az adott tárgyból jegye
+ $tJegyek = $dJegyek[$targyId];
+ // Az utolsó jegyet írjuk csak ki
+ $jegy = $tJegyek[ count($tJegyek)-1 ];
+ if (in_array($targyId, $ADAT['szorgalomIds'])) {
+ $DATA['diak'][$diakId]['szorgalom'] = $KOVETELMENY['szorgalom'][ $jegy['jegy'] ]['hivatalos'];
+ $DATA['diak'][$diakId]['szorgMegjJel'] = nagybetus($jegy['megjegyzes'][0]);
+ } elseif (in_array($targyId, $ADAT['magatartasIds'])) {
+ $DATA['diak'][$diakId]['magatartas'] = $KOVETELMENY['magatartás'][ $jegy['jegy'] ]['hivatalos'];
+ $DATA['diak'][$diakId]['magMegjJel'] = nagybetus($jegy['megjegyzes'][0]);
+ } else {
+ $DATA['diak'][$diakId]['targy'][$targyId] = $jegy;
+ $DATA['diak'][$diakId]['targy'][$targyId]['jTipus'] = $jegy['jegyTipus'];
+ $DATA['diak'][$diakId]['targy'][$targyId]['mJel'] = nagybetus($jegy['megjegyzes'][0]);
+ $DATA['diak'][$diakId]['targy'][$targyId]['hivatalos'] = $KOVETELMENY[ $jegy['jegyTipus'] ][ $jegy['jegy'] ]['hivatalos'];
+ $DATA['diak'][$diakId]['targy'][$targyId]['rovid'] = $KOVETELMENY[ $jegy['jegyTipus'] ][ $jegy['jegy'] ]['rovid'];
+ }
+ }
+ }
+ }
+ }
+// foreach ($ADAT['hianyzas'] as $diakId => $dHianyzas) { - A kimaradó diákok bajt okoznak => az összes diákon végig kell menni!
+ foreach ($ADAT['diakIds'] as $key => $diakId) {
+ $dHianyzas = $ADAT['hianyzas'][$diakId];
+
+ $DATA['diak'][$diakId]['igazolt'] = $dHianyzas['igazolt'];
+ $DATA['diak'][$diakId]['kesesPercOsszeg'] = intval($dHianyzas['kesesPercOsszeg']);
+ $DATA['diak'][$diakId]['kesesIgazolatlan'] = floor($dHianyzas['kesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['osszesIgazolatlan'] = $dHianyzas['igazolatlan']; // Tartalmazza az összes hivatalos hiányzást! A késések percösszegéből adódóakat is!!
+ $DATA['diak'][$diakId]['igazolatlan'] = $dHianyzas['igazolatlan']-$DATA['diak'][$diakId]['kesesIgazolatlan'];
+
+ $DATA['diak'][$diakId]['gyakIgazolt'] = intval($dHianyzas['gyakorlatIgazolt']);
+ $DATA['diak'][$diakId]['gyakIgazolatlan'] = intval($dHianyzas['gyakorlatIgazolatlan']);
+ $DATA['diak'][$diakId]['gyakKesesPercOsszeg'] = intval($dHianyzas['gyakorlatKesesPercOsszeg']);
+ $DATA['diak'][$diakId]['gyakKesesIgazolatlan'] = floor($dHianyzas['gyakorlatKesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['gyakOsszesIgazolatlan'] = $DATA['diak'][$diakId]['gyakIgazolatlan']+$DATA['diak'][$diakId]['gyakKesesIgazolatlan'];
+
+ $DATA['diak'][$diakId]['elmIgazolt'] = intval($dHianyzas['elmeletIgazolt']);
+ $DATA['diak'][$diakId]['elmIgazolatlan'] = intval($dHianyzas['elmeletIgazolatlan']);
+ $DATA['diak'][$diakId]['elmKesesPercOsszeg'] = intval($dHianyzas['elmeletKesesPercOsszeg']);
+ $DATA['diak'][$diakId]['elmKesesIgazolatlan'] = floor($dHianyzas['elmeletKesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['elmOsszesIgazolatlan'] = $DATA['diak'][$diakId]['elmIgazolatlan']+$DATA['diak'][$diakId]['elmKesesIgazolatlan'];
+
+ }
+//echo '<pre>';
+//var_dump($DATA['base']['diak'], $ADAT['jegyek']);
+//echo '</pre>';
+//die();
+
+ return template2file($templateFile, $DATA);
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/haladasinaplo.php b/mayor-orig/www/include/modules/naplo/nyomtatas/haladasinaplo.php
new file mode 100644
index 00000000..1577a367
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/haladasinaplo.php
@@ -0,0 +1,139 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function getTankorokNaploja() {
+
+ $q = "SELECT tankorId,osztalyId FROM tankorNaplo";
+ return db_query($q, array('fv' => 'tankorokNaploja', 'modul' => 'naplo', 'result' => 'keyvaluepair'));
+
+ }
+
+ function getNaploTankorei($osztalyId) {
+
+ $q = "SELECT tankorId FROM tankorNaplo WHERE osztalyId=%u";
+ return db_query($q, array('fv' => 'getNaploTankorei', 'modul' => 'naplo', 'result' => 'idonly', 'values' => array($osztalyId)));
+
+ }
+
+ function getNaploOrak(&$ADAT) {
+
+
+ $q = "SELECT * FROM ora WHERE tankorId IN (".implode(',', array_fill(0, count($ADAT['naploTankor']), '%u')).")
+ AND '%s'<=dt AND dt<='%s' ORDER BY dt,ora,tankorId";
+ $v = mayor_array_join($ADAT['naploTankor'], array($ADAT['tanevAdat']['kezdesDt'], $ADAT['tanevAdat']['zarasDt']));
+ $A = db_query($q, array('fv' => 'getNaploOrak', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ $Oraszam = $oraIds = array();
+ for ($i = 0; $i < count($A); $i++) {
+
+ $ADAT['orak'][ $A[$i]['dt'] ][ $A[$i]['ora'] ][] = $A[$i];
+ $oraIds[] = $A[$i]['oraId']; $oraId2dt[ $A[$i]['oraId'] ] = array('dt' => $A[$i]['dt'], 'ora' => $A[$i]['ora']);
+ if (
+ !in_array($A[$i]['tipus'], array('elmarad','elmarad máskor')) // Lehet olyan elmaradó óra, amihez van beírva tananyag...
+ && (
+ !is_array($ADAT['tananyag'][ $A[$i]['dt'] ][ $A[$i]['tankorId'] ])
+ || !in_array($A[$i]['leiras'], $ADAT['tananyag'][ $A[$i]['dt'] ][ $A[$i]['tankorId'] ])
+ )
+ ) $ADAT['tananyag'][ $A[$i]['dt'] ][ $A[$i]['tankorId'] ][] = $A[$i]['leiras'];
+
+ if (defined('__ORASZAMOT_NOVELO_TIPUSOK')) {
+ $oraszamNoveloTipus = explode(',', __ORASZAMOT_NOVELO_TIPUSOK);
+ } else {
+ $_SESSION['alert'][] = 'info:missing_constant:__ORASZAMOT_NOVELO_TIPUSOK';
+ $oraszamNoveloTipus = array('normál', 'normál máskor', 'helyettesítés', 'összevonás');
+ }
+ if (in_array($A[$i]['tipus'], $oraszamNoveloTipus)) {
+ $ADAT['oraszam'][ $A[$i]['dt'] ][ $A[$i]['tankorId'] ][] = (++$Oraszam[ $A[$i]['tankorId'] ]);
+ } else {
+ $ADAT['oraszam'][ $A[$i]['dt'] ][ $A[$i]['tankorId'] ][] = '---';
+ }
+ if (in_array($A[$i]['tipus'], array('helyettesítés', 'összevonás', 'felügyelet'))) {
+ $ADAT['helyettesites'][ $A[$i]['dt'] ][] = $A[$i];
+ }
+
+ }
+ $tmp = getOralatogatasByOraIds($oraIds, $SET = array('result' => 'assoc'));;
+ if (is_array($tmp)) foreach ($tmp as $oraId => $olAdat) {
+ $olAdat['ora'] = $oraId2dt[$oraId]['ora'];
+ $ADAT['oralatogatas'][ $oraId2dt[$oraId]['dt'] ][] = $olAdat;
+ }
+ }
+
+ function getNaploHianyzasok(&$ADAT) {
+
+ global $HianyzasJeloles;
+
+ $q = "SELECT * FROM hianyzas WHERE '%s'<dt AND dt<'%s'
+ AND diakId IN (".implode(',', array_fill(0, count($ADAT['diakIds']), '%u')).") AND tipus IN ('hiányzás','késés')
+ ORDER BY dt,ora,diakId";
+ $v = mayor_array_join(array($ADAT['tanevAdat']['kezdesDt'], $ADAT['tanevAdat']['zarasDt']), $ADAT['diakIds']);
+ $A = db_query($q, array('fv' => 'getNaploHianyzas', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($A); $i++) {
+ $diakId = $A[$i]['diakId'];
+ $dt = $A[$i]['dt'];
+ $ora = $A[$i]['ora'];
+ if (!is_array($ADAT['hianyzas'][$dt][$diakId])) {
+ $nev = $ADAT['diakAdat'][$diakId]['diakNev'];
+ if (mb_strlen($nev, 'UTF-8') > 20) {
+ if (mb_substr($nev,20,1) == ' ') {
+ $nev = mb_substr($nev, 0, 20, 'UTF-8');
+ } else {
+ $nev = mb_substr($nev, 0, 20, 'UTF-8');
+ $pos = mb_strrpos($nev, ' ', 0, 'UTF-8');
+ if ($pos !== false) $nev = mb_substr($nev, 0, $pos, 'UTF-8');
+ else $nev .= '.';
+ }
+ }
+ $ADAT['hianyzas'][$dt][$diakId] = array('ora' => array(), 'diakNev' => $nev);
+ }
+ $ADAT['hianyzas'][$dt][$diakId]['ora'][$ora] = $HianyzasJeloles[$A[$i]['tipus']];
+ if ($A[$i]['tipus'] == 'hiányzás') {
+ $ADAT['hianyzas'][$dt][$diakId]['összesen']++;
+ $ADAT['hianyzas'][$dt][$diakId][ $A[$i]['statusz'] ]++;
+ }
+ }
+
+ }
+
+ function tordel($szavak) {
+
+ $sorok = array(); // A tárgyNev sorokra bontása
+ $maxHossz = 8; // egy sorba írható karakterek maximális száma
+
+ for ($j = 0; $j < count($szavak); $j++) {
+ $szo = str_replace('--', '~-', $szavak[$j]);
+ $tagok = explode('-', $szo);
+ $sor = str_replace('~', '-', $tagok[0]);
+ for ($k = 1; $k < count($tagok); $k++) {
+ $tag = str_replace('~', '-', $tagok[$k]);
+ $tl = mb_strlen($tag, 'UTF-8');
+ $sl = mb_strlen($sor,'UTF-8');
+ $ct = count($tagok);
+ if (
+ (
+ $sl+$tl < $maxHossz // általában max $maxHossz karaktert engedünk meg
+ && !(
+ $k == ($ct - 2) // az utolsó előtti tag
+ && ($sl > 3) // a sor már elég hosszú
+ && ($tl + mb_strlen($targok[$k+1], 'UTF-8')) <= $maxHossz // és befér az utolsó sorba --> akkor hagyjuk a következő sorba
+ )
+ )
+ || (
+ $sl+$tl == $maxHossz
+ && ($k == ($ct-1) || substr($tag,-1) == '-')) // szóvégén, vagy kötőjeles szó kötőjelénél nincs újabb kötőjel
+ ) {
+ $sor .= $tag;
+ } else {
+ if ($k < $ct && substr($sor, -1) != '-') $sorok[] = $sor.'-'; // ha nem az utolsó és nincs még kötőjel (kötőjeles szavak)
+ else $sorok[] = $sor;
+ $sor = $tag;
+ }
+ }
+ $sorok[] = $sor;
+ }
+ return $sorok;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/helyettesitesinaplo.php b/mayor-orig/www/include/modules/naplo/nyomtatas/helyettesitesinaplo.php
new file mode 100644
index 00000000..88949802
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/helyettesitesinaplo.php
@@ -0,0 +1,148 @@
+<?php
+
+ function naploGeneralas($filename, $tolDt, $igDt) {
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/helyettesitesinaplo.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/helyettesitesinaplo.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/helyettesitesinaplo.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/helyettesitesinaplo.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/helyettesitesinaplo.tmpl';
+ return false;
+ }
+
+ $Helyettesitesek = getHelyettesitettOra($tolDt, $igDt);
+ $Intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+
+ $DATA = array(
+ 'file' => $filename,
+ 'base' => array(
+ 'intezmenyNev' => $Intezmeny['nev'], 'tanev' => __TANEV, 'nyDt' => date('Y.m.d'),
+ 'tolDt' => dateToString($tolDt), 'igDt' => dateToString($igDt), 'intezmenyHelyseg' => $Intezmeny['cimHelyseg'],
+ 'nyDatumStr' => dateToString(date('Y-m-d'))
+ )
+ );
+ for ($i = 0; $i < count($Helyettesitesek); $i++) {
+ $oraAdat = $Helyettesitesek[$i];
+ if ($oraAdat['eredet'] == 'plusz') $oraAdat['tipus'] = $oraAdat['tipus'].' '.$oraAdat['eredet'];
+ unset($oraAdat['ki']);
+ unset($oraAdat['kit']);
+ $oraAdat['tankorNev'] = LaTeXSpecialChars($oraAdat['tankorNev']);
+ $DATA['hDt'][ $oraAdat['dt'] ]['helyettesites'][ $oraAdat['oraId'] ] = $oraAdat;
+ }
+ if (is_array($DATA['hDt']) && count($DATA['hDt'])>0) {
+ $DATA['base']['hDt'] = array_keys($DATA['hDt']);
+ return template2file($templateFile, $DATA);
+ } else {
+ $_SESSION['alert'][] = 'info:no_data';
+ return false;
+ }
+
+
+ }
+
+/*
+ function naploGeneralasOld($filename, $tolDt, $igDt) {
+
+ // Helyettesítések lekérdezése
+ $Helyettesitesek = getHelyettesitettOra($tolDt, $igDt);
+ $Intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+
+ $TeX = '\documentclass[8pt]{article}
+\usepackage[a4paper]{geometry} % A4-es méret
+\usepackage[utf8]{inputenc} % UTF-8 kódolású forrás
+\usepackage{t1enc}
+\usepackage[magyar]{babel} % magyar elválasztási szabályok
+\frenchspacing % a magyar tipográfiai szabályoknak megfelelő szóközök írásjelek után
+\usepackage{booktabs} % táblázatok magasabb szintű formázása
+\usepackage{longtable} % többoldalas táblázatok
+\setlength\LTleft{-65pt}
+\setlength\LTright{-65pt}
+\usepackage{fancyhdr} % Fejléc és lábléc kezelés
+\pagestyle{fancy}
+\def\mayor{%
+\font\mayorfnt=cmsl4%
+\font\Mayorfnt=cmsl6
+{\mayorfnt\lower0.5ex\hbox{\lower-0.5ex\hbox{Ma}\kern-0.3em\lower0.25ex\hbox{\Mayorfnt Y}\kern-0.2em\hbox{o}\lower0ex\hbox{R}}}}
+\renewcommand{\footnotesize}{\fontsize{6pt}{8pt}\selectfont}
+%\addtolength{\skip\footins}{2mm}
+%\addtolength{\textheight}{16mm}
+%\addtolength{\textwidth}{30mm}
+\setlength{\footskip}{26pt}
+\setlength{\headsep}{24pt}
+\lhead{\small '.$Intezmeny['nev'].'}
+\rhead{\small Helyettesítési-napló '.__TANEV.'}
+\lfoot{\scriptsize\copyright\mayor\ elektronikus napló - Nyomtatva: '.date('Y.m.d.').'}
+\rfoot{\scriptsize\thepage . oldal}
+\cfoot{}
+\begin{document}
+';
+
+ $TeX .= '
+\begin{center}
+{\large\bfseries H E L Y E T T E S Í T É S E K}\\\\
+
+\vspace{12pt}
+
+{\bfseries\normalsize '.dateToString($tolDt).' – '.dateToString($igDt).'}\\\\
+
+\vspace{12pt}
+
+\scriptsize
+\begin{longtable}{@{\extracolsep{\fill}}c|c|l|l|l|c}
+Dátum & Óra & Ki & Kit & Tankör & Típus \\\\
+\toprule
+\endfirsthead
+Dátum & Óra & Ki & Kit & Tankör & Típus \\\\
+\toprule
+\endhead
+\bottomrule
+\endfoot
+\bottomrule
+\endlastfoot
+\hline
+';
+
+ for ($i = 0; $i < count($Helyettesitesek); $i++) {
+ $oraAdat = $Helyettesitesek[$i];
+ if ($oraAdat['eredet'] == 'plusz') $oraAdat['tipus'] = $oraAdat['tipus'].' '.$oraAdat['eredet'];
+ $TeX .= '\vbox to 1.2em {}'.$oraAdat['dt'].'&'.$oraAdat['ora'].'&'.$oraAdat['kiCn'].'&'.$oraAdat['kitCn']
+ .'&'.$oraAdat['tankorNev'].'&'.$oraAdat['tipus'].'\\\\ ';
+ if ($Helyettesitesek[$i+1]['dt'] != $oraAdat['dt']) $TeX .= '\midrule'."\n";
+ //else $TeX .= '\hline';
+
+ }
+
+ $TeX .= '
+\end{longtable}
+
+\vspace{16pt}
+
+\begin{flushleft}
+{\scriptsize '.$Intezmeny['cimHelyseg'].', '.dateToString(date('Y-m-d')).'}
+\end{flushleft}
+\vspace{20pt}\slshape\scriptsize
+\begin{tabular}{ccc}
+%\rule{3.5cm}{0.1pt}
+\hspace{3.5cm}%
+&\hspace{3cm}\ &\rule{3.5cm}{0.1pt}\\\\
+%tanuló
+&&igazgató\\\\
+\end{tabular}
+
+\end{center}
+';
+
+
+ $TeX .= '
+\end{document}';
+
+ pdfLaTeX($TeX, $filename); // A longtable miatt többször kell fordítani
+ return pdfLaTeX($TeX, $filename);
+
+ }
+*/
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/nyomtatas.php b/mayor-orig/www/include/modules/naplo/nyomtatas/nyomtatas.php
new file mode 100644
index 00000000..b91c18e8
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/nyomtatas.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ global $HIANYZASJELOLES, $targyTXT, $targyTXT2, $targyCsoportTXT;
+
+// function generatePDF($texFile) {
+//
+//echo 'tex -output-directory /tmp -fmt '._BASEDIR.'../install/module-naplo/tex/mayor '.$texFile;
+// exec('tex -output-directory /tmp -fmt '._BASEDIR.'../install/module-naplo/tex/mayor '.$texFile);
+//
+// }
+
+ $HIANYZASJELOLES = array(
+ 'hiányzás'=>'H',
+ 'késés'=>'k',
+ 'felszerelés hiány'=>'f',
+ 'egyenruha hiány'=>'e'
+ );
+
+ $targyCsoportTXT = array(
+ 'tanóra' => '',
+ 'fakultáció' => 'fakt.',
+ 'előfakultáció' => 'előfakt.',
+ 'szakkör' => 'szakk.'
+ );
+
+ $targyTXT = array(
+ 'angol nyelv' => 'Angol% nyelv',
+ 'biológia' => 'Bio-%lógia',
+ 'dráma' => 'Dráma',
+ 'ének-zene' => 'Ének%-zene',
+ 'fizika' => 'Fizika',
+ 'filozófia' => 'Filo-%zófia',
+ 'földrajz' => 'Föld-%rajz',
+ 'francia nyelv' => 'Francia% nyelv',
+ 'idegenvezetés' => 'Idegen-%vezetés',
+ 'japán nyelv' => 'Japán% nyelv',
+ 'kémia' => 'Kémia',
+ 'latin nyelv' => 'Latin% nyelv',
+ 'magyar' => 'Magyar',
+ 'magyar irodalom' => 'Magyar% irodalom',
+ 'magyar nyelv' => 'Magyar% nyelv',
+ 'matematika' => 'Mate-%matika',
+ 'művészettörténet' => 'Művészet-%történet',
+ 'német nyelv' => 'Német% nyelv',
+ 'olasz nyelv' => 'Olasz% nyelv',
+ 'rajz' => 'Rajz',
+ 'spanyol nyelv' => 'Spanyol% nyelv',
+ 'számítástechnika' => 'Számítás-%technika',
+ 'szociálpszichológia' => 'Szociál-%pszich.',
+ 'testnevelés' => 'Testne-%velés',
+ 'történelem' => 'Törté-%nelem',
+ 'zenetörténet' => 'Zene-%történet'
+ );
+
+ // Ezt az órarendnél, és az első lapon fogjuk használni :)
+ $targyTXT2 = array(
+ 'angol nyelv' => 'Angol',
+ 'biológia' => 'Biológia',
+ 'dráma' => 'Dráma',
+ 'ének-zene' => 'Ének',
+ 'fizika' => 'Fizika',
+ 'filozófia' => 'Filozófia',
+ 'földrajz' => 'Földrajz',
+ 'francia nyelv' => 'Francia',
+ 'idegenvezetés' => 'Idegenvezetés',
+ 'japán nyelv' => 'Japán',
+ 'kémia' => 'Kémia',
+ 'latin nyelv' => 'Latin',
+ 'magyar' => 'Magyar',
+ 'magyar irodalom' => 'Magyar irodalom',
+ 'magyar nyelv' => 'Magyar nyelv',
+ 'matematika' => 'Matematika',
+ 'művészettörténet' => 'Művészettörténet',
+ 'német nyelv' => 'Német',
+ 'olasz nyelv' => 'Olasz',
+ 'osztályfőnöki' => 'Osztályfőnöki',
+ 'rajz' => 'Rajz',
+ 'spanyol nyelv' => 'Spanyol',
+ 'számítástechnika' => 'Szám. tech.',
+ 'szociálpszichológia' => 'Szoc.pszich.',
+ 'testnevelés' => 'Testnevelés',
+ 'történelem' => 'Történelem',
+ 'zenetörténet' => 'Zenetörténet'
+ );
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/osztalyozonaplo.php b/mayor-orig/www/include/modules/naplo/nyomtatas/osztalyozonaplo.php
new file mode 100644
index 00000000..bdc16662
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/osztalyozonaplo.php
@@ -0,0 +1,24 @@
+<?php
+
+ function getDiakJegyek($ADAT) {
+ global $_TANEV;
+ $q = "SELECT diakId,targyId, dt, SUBSTRING(dt,6,2) AS ho, jegy, jegyTipus
+ FROM jegy LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ WHERE diakId IN (".implode(',', array_fill(0, count($ADAT['diakIds']), '%u')).") ORDER BY jegy.dt";
+ $r = db_query($q, array('fv' => 'getDiakJegyek', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $ADAT['diakIds']));
+ $RET = array();
+ for ($i = 0; $i < count($r); $i++) {
+ /* Melyik félév is lehetett? */
+ $_felev = (in_date_interval($r[$i]['dt'],$_TANEV['szemeszter'][1]['kezdesDt'],$_TANEV['szemeszter'][1]['zarasDt'])) ? 1:2;
+
+ if (
+ $ADAT['diakAdat'][ $r[$i]['diakId'] ]['osztalyDiak'][0]['kiDt'] == ''
+ || strtotime($r[$i]['dt']) <= strtotime($ADAT['diakAdat'][ $r[$i]['diakId'] ]['osztalyDiak'][0]['kiDt'])
+ )
+ $RET[ $r[$i]['diakId'] ][ $r[$i]['targyId'] ][ $r[$i]['ho'] ][] = $r[$i];
+ $RET[ $r[$i]['diakId'] ][ 'felevenkent' ][ $r[$i]['targyId'] ][ $_felev ][] = $r[$i];
+ }
+ return $RET;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/sniEvVegiJegyzokonyv.php b/mayor-orig/www/include/modules/naplo/nyomtatas/sniEvVegiJegyzokonyv.php
new file mode 100644
index 00000000..3ed53ae3
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/sniEvVegiJegyzokonyv.php
@@ -0,0 +1,48 @@
+<?php
+
+ function generateJegyzokonyv($ADAT) {
+
+ global $Honapok, $_TANEV;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ $tmplFile = 'sniEvVegiJegyzokonyv';
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ list($kEv,$kHo,$kNap) = explode('-', $_TANEV['kezdesDt']);
+ list($zEv,$zHo,$zNap) = explode('-', $_TANEV['zarasDt']);
+ if (!is_array($ADAT['osztalyTanar'])) $ADAT['osztalyTanar'] = array();
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'),
+ 'tanev' => "$kEv-$zEv",
+// 'ev' => $ev, 'honap' => $ho, 'nap' => $nap, 'hoNev' => kisbetus($Honapok[$ho-1]),
+ 'intezmenyNev' => $ADAT['intezmeny']['nev'], 'intezmenyCimIrsz' => $ADAT['intezmeny']['cimIrsz'],
+ 'intezmenyCimHelyseg' => $ADAT['intezmeny']['cimHelyseg'], 'intezmenyCimKozteruletNev' => $ADAT['intezmeny']['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $ADAT['intezmeny']['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $ADAT['intezmeny']['cimHazszam'],
+ 'intezmenyTelefon' => $ADAT['intezmeny']['telefon'], 'intezmenyHonlap' => $ADAT['intezmeny']['honlap'],
+ 'intezmenyFax' => $ADAT['intezmeny']['fax'], 'intezmenyEmail' => $ADAT['intezmeny']['email'],
+ 'diak' => $ADAT['sniDiakIds'], 'osztaly' => $ADAT['osztaly']['osztalyJel'],
+ 'tanarNev' => '', 'osztalyTanar' => array_keys($ADAT['osztalyTanar']),
+ ),
+ 'diak' => $ADAT['diakAdat'],
+ 'felelos' => $ADAT['tanarok'],
+ 'osztalyTanar' => $ADAT['osztalyTanar'],
+ );
+
+//echo '<pre>';
+//var_dump($ADAT['diakAdat']);
+//echo '</pre>';
+
+ return template2file($templateFile, $DATA);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/sniHaviJegyzokonyv.php b/mayor-orig/www/include/modules/naplo/nyomtatas/sniHaviJegyzokonyv.php
new file mode 100644
index 00000000..f9f182d0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/sniHaviJegyzokonyv.php
@@ -0,0 +1,41 @@
+<?php
+
+ function generateJegyzokonyv($ADAT) {
+
+ global $Honapok;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ $tmplFile = 'sniHaviJegyzokonyv';
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ list($ev,$ho,$nap) = explode('-', $ADAT['dt']);
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'),
+ 'ev' => $ev, 'honap' => $ho, 'nap' => $nap, 'hoNev' => kisbetus($Honapok[$ho-1]),
+ 'intezmenyNev' => $ADAT['intezmeny']['nev'], 'intezmenyCimIrsz' => $ADAT['intezmeny']['cimIrsz'],
+ 'intezmenyCimHelyseg' => $ADAT['intezmeny']['cimHelyseg'], 'intezmenyCimKozteruletNev' => $ADAT['intezmeny']['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $ADAT['intezmeny']['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $ADAT['intezmeny']['cimHazszam'],
+ 'intezmenyTelefon' => $ADAT['intezmeny']['telefon'], 'intezmenyHonlap' => $ADAT['intezmeny']['honlap'],
+ 'intezmenyFax' => $ADAT['intezmeny']['fax'], 'intezmenyEmail' => $ADAT['intezmeny']['email'],
+ 'diak' => $ADAT['sniDiakIds'], 'osztaly' => $ADAT['osztaly']['osztalyJel'],
+ 'tanarNev' => '', 'osztalyTanar' => array_keys($ADAT['osztalyTanar']),
+ ),
+ 'diak' => $ADAT['diakAdat'],
+ 'felelos' => $ADAT['tanarok'],
+ 'osztalyTanar' => $ADAT['osztalyTanar'],
+ );
+
+ return template2file($templateFile, $DATA);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/szovegesErtekeles.php b/mayor-orig/www/include/modules/naplo/nyomtatas/szovegesErtekeles.php
new file mode 100644
index 00000000..1b095a4e
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/szovegesErtekeles.php
@@ -0,0 +1,131 @@
+<?php
+
+ function nyomtatvanyKeszites($ADAT) {
+
+ global $Honapok;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ if (isset($ADAT['szemeszterId'])) $tmplFile = 'szovegesZaroErtekeles';
+ else $tmplFile = 'szovegesErtekeles';
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ $Intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+ $Ertekeles = getOsztalySzovegesErtekeles($ADAT);
+ $_Targyak = getTargyak(array('targySorrendNev' => $ADAT['targySorrendNev'],'osztalyId' => $ADAT['osztalyId'])); $Targyak = array();
+ for ($i = 0; $i < count($_Targyak); $i++) {
+ $Targyak[ $_Targyak[$i]['targyId'] ] = $_Targyak[$i];
+ $Targyak[ $_Targyak[$i]['targyId'] ]['targyNev'] = nagybetus(mb_substr($_Targyak[$i]['targyNev'],0,1)).mb_substr($_Targyak[$i]['targyNev'],1);
+ }
+ unset($_Targyak);
+
+ list($ev,$ho,$nap) = explode('-', $ADAT['dt']);
+ list($evf,$oszt) = explode('.', $ADAT['osztalyAdat']['osztalyJel']);
+
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'), 'ev' => $ev, 'honap' => $ho, 'nap' => $nap, 'hoNev' => kisbetus($Honapok[$ho-1]),
+ 'intezmenyNev' => $Intezmeny['nev'], 'intezmenyOMKod' => $Intezmeny['OMKod'], 'intezmenyCimIrsz' => $Intezmeny['cimIrsz'],
+ 'intezmenyCimHelyseg' => $Intezmeny['cimHelyseg'], 'intezmenyCimKozteruletNev' => $Intezmeny['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $Intezmeny['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $Intezmeny['cimHazszam'],
+ 'intezmenyTelefon' => $Intezmeny['telefon'], 'intezmenyHonlap' => $Intezmeny['honlap'],
+ 'intezmenyFax' => $Intezmeny['fax'], 'intezmenyEmail' => $Intezmeny['email'],
+ 'tanevJele' => substr($ADAT['tanevAdat']['kezdesDt'],0,4).'/'.substr($ADAT['tanevAdat']['zarasDt'],0,4),
+ 'felevi' => ($ADAT['szemeszter']['szemeszter'] == 1),
+ 'diak' => $ADAT['diakIds'], 'osztaly' => "$evf. ".nagybetus($oszt),
+ ),
+ 'diak' => $ADAT['diakAdat'],
+ 'targy' => $Targyak,
+ 'szempont' => array(),
+ 'minosites' => array(),
+ );
+ unset($Intezmeny);
+
+ foreach ($ADAT['hianyzas'] as $diakId => $dHianyzas) {
+ $DATA['diak'][$diakId]['igazolt'] = $dHianyzas['igazolt'];
+ $DATA['diak'][$diakId]['igazolatlan'] = $dHianyzas['igazolatlan'];
+ $DATA['diak'][$diakId]['kesesPercOsszeg'] = intval($dHianyzas['kesesPercOsszeg']);
+ $DATA['diak'][$diakId]['kesesIgazolatlan'] = floor($dHianyzas['kesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['osszesIgazolatlan'] = $DATA['diak'][$diakId]['igazolatlan']+$DATA['diak'][$diakId]['kesesIgazolatlan'];
+
+ $DATA['diak'][$diakId]['gyakIgazolt'] = intval($dHianyzas['gyakorlatIgazolt']);
+ $DATA['diak'][$diakId]['gyakIgazolatlan'] = intval($dHianyzas['gyakorlatIgazolatlan']);
+ $DATA['diak'][$diakId]['gyakKesesPercOsszeg'] = intval($dHianyzas['gyakorlatKesesPercOsszeg']);
+ $DATA['diak'][$diakId]['gyakKesesIgazolatlan'] = floor($dHianyzas['gyakorlatKesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['gyakOsszesIgazolatlan'] = $DATA['diak'][$diakId]['gyakIgazolatlan']+$DATA['diak'][$diakId]['gyakKesesIgazolatlan'];
+
+ $DATA['diak'][$diakId]['elmIgazolt'] = intval($dHianyzas['elmeletIgazolt']);
+ $DATA['diak'][$diakId]['elmIgazolatlan'] = intval($dHianyzas['elmeletIgazolatlan']);
+ $DATA['diak'][$diakId]['elmKesesPercOsszeg'] = intval($dHianyzas['elmeletKesesPercOsszeg']);
+ $DATA['diak'][$diakId]['elmKesesIgazolatlan'] = floor($dHianyzas['elmeletKesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['elmOsszesIgazolatlan'] = $DATA['diak'][$diakId]['elmIgazolatlan']+$DATA['diak'][$diakId]['elmKesesIgazolatlan'];
+ }
+
+
+
+ if (strtotime($ADAT['dt']) < strtotime($ADAT['tanevAdat']['szemeszter'][1]['zarasDt'])) $DATA['base']['negyedev'] = 'az első';
+ else $DATA['base']['negyedev'] = 'a harmadik';
+ foreach ($Ertekeles as $diakId => $E) {
+ $DATA['diak'][$diakId]['targy'] = array();
+
+ // !!! Tesztelendő !!! //
+# foreach ($E as $targyId => $eAdat) {
+ foreach ($Targyak as $targyId => $tAdat) {
+ if (is_array($E[$targyId])) {
+ $eAdat = $E[$targyId];
+ } else {
+ continue;
+ }
+ // !!! Tesztelendő !!! //
+ if (
+ (
+ (is_array($eAdat['szovegesErtekeles']['minosites']) && count($eAdat['szovegesErtekeles']['minosites']) > 0)
+ || (is_array($eAdat['szovegesErtekeles']['egyediMinosites']) && count($eAdat['szovegesErtekeles']['egyediMinosites']) > 0)
+ )
+ && $ADAT['tolDt'] <= $eAdat['szovegesErtekeles']['dt']
+ ) {
+
+ $DATA['diak'][$diakId]['targy'][$targyId] = $eAdat; // Ezt lehetne finomítani
+//if ($targyId == 2) {
+//echo '<pre>';var_dump($ADAT['tolDt']);
+//var_dump($eAdat['szovegesErtekeles']['dt']);
+//}
+
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'] = $eAdat['szempontRendszer']['szempont'];
+ $targyMinositesId = $eAdat['szovegesErtekeles']['minosites'][0]; // Ha egy tárgy egy minősítés kell (az első)
+ foreach ($eAdat['szempontRendszer']['szempont'] as $szempontId => $szAdat) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['egyediMinosites'] =
+ $eAdat['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'];
+ $M = $eAdat['szempontRendszer']['minosites'][$szempontId];
+ $elsoValasztottKovetkezik = true;
+ for ($i = 0; $i < count($M); $i++) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][ $M[$i]['minositesId'] ]
+ = array('minosites' => $M[$i]['minosites']);
+ if (in_array($M[$i]['minositesId'], $eAdat['szovegesErtekeles']['minosites'])) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][$M[$i]['minositesId']]['valasztott'] = true;
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][$M[$i]['minositesId']]['elsoValasztott'] = $elsoValasztottKovetkezik;
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][$M[$i]['minositesId']]['tobbedikValasztott'] = (!$elsoValasztottKovetkezik);
+ $elsoValasztottKovetkezik = false;
+ if ($M[$i]['minositesId'] == $targyMinositesId) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['targyMinosites'] = $M[$i]['minosites']; // Ha tárgyanként egy minősítés kell (az első)
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return template2file($templateFile, $DATA);
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/tankorNaplohozRendeles.php b/mayor-orig/www/include/modules/naplo/nyomtatas/tankorNaplohozRendeles.php
new file mode 100644
index 00000000..596cbcf9
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/tankorNaplohozRendeles.php
@@ -0,0 +1,48 @@
+<?php
+
+ function tankorNaploInit($torlessel = false) {
+
+ // Az eddigi ejegyzések törlése - induljunk tiszta lappal!
+ if ($torlessel === true) {
+ $q = "DELETE FROM tankorNaplo";
+ db_query($q, array('fv' => 'tankorNaploInit/delete', 'modul' => 'naplo'));
+ }
+ // Kérdezzük le, hogy melyik osztályhoz nincs még bejegyzés
+ $q = "SELECT osztalyId FROM osztalyNaplo LEFT JOIN tankorNaplo USING (osztalyId) GROUP BY osztalyId HAVING COUNT(tankorId) = 0";
+ $osztalyIds = db_query($q, array('fv' => 'tankorNaploInit', 'modul' => 'naplo', 'result' => 'idonly'));
+ // Ezen osztályok hozzárendelése a csak hozzájuk tartozó tankörökhöz
+ if (is_array($osztalyIds) && count($osztalyIds) > 0) {
+ $q = "REPLACE INTO tankorNaplo (tankorId,osztalyId)
+ SELECT tankorId,osztalyId FROM ".__INTEZMENYDBNEV.".tankorOsztaly
+ WHERE osztalyId IN (".implode(',', $osztalyIds).")
+ AND tankorId IN (
+ SELECT DISTINCT tankorId FROM ".__INTEZMENYDBNEV.".tankorSzemeszter WHERE tanev=".__TANEV."
+ ) GROUP BY tankorId HAVING COUNT(*)=1";
+ return db_query($q, array('fv' => 'tankorNaploInit', 'modul' => 'naplo'));
+ } else { return true; }
+
+ }
+
+ function tankorNaplohozRendeles($osztalyId, $T) {
+ $v = $V = array();
+ for ($i = 0; $i < count($T); $i++) {
+ list($tankorId, $naplo) = explode('/',$T[$i]);
+ array_push($v, $tankorId, $naplo);
+ $V[] = "(%u, %u)";
+ }
+ if (count($V) > 0) {
+ $q = "DELETE FROM tankorNaplo WHERE osztalyId=%u";
+ db_query($q, array('fv' => 'tankorNaplohozRendeles', 'modul' => 'naplo', 'values' => array($osztalyId)));
+ $q = "REPLACE INTO tankorNaplo (tankorId,osztalyId) VALUES ".implode(',', $V);
+ db_query($q, array('fv' => 'tankorNaplohozRendeles', 'modul' => 'naplo', 'values' => $v));
+ }
+ }
+
+ function getTankorokNaploja() {
+
+ $q = "SELECT tankorId,osztalyId FROM tankorNaplo";
+ return db_query($q, array('fv' => 'tankorokNaploja', 'modul' => 'naplo', 'result' => 'keyvaluepair'));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/tex.php b/mayor-orig/www/include/modules/naplo/nyomtatas/tex.php
new file mode 100644
index 00000000..ab2ca3c0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/tex.php
@@ -0,0 +1,1285 @@
+<?php
+
+function putTeXLapdobas() {
+ return '\vfil\eject%'."\n";
+}
+
+function putTeXUresLap() {
+ return '\eject\null\vfill\eject%'."\n";
+}
+
+
+function putTeXDefineFootline($osztalyJel = '', $ofo = '') {
+
+ global $_TANEV;
+
+ $tanev = $_TANEV['tanev'].'/'.substr($_TANEV['zarasDt'],0,4);
+
+ if ($osztalyJel != '') {
+ list($evf,$oJel) = explode('.', $osztalyJel);
+ $osztalySTR = TeXSpecialChars($evf.'/'.($evf>8?nagybetus($oJel):kisbetus($oJel)));
+ $return = '\footline{\ifodd\pageno\rightfootline\else\leftfootline\fi}
+\def\rightfootline{\hbox to \hsize{\copyright\ \mayor\ elektronikus napló -- Nyomtatva: '.date('Y.m.d').'.\hfil\folio}}
+\def\leftfootline{\hbox to \hsize{\folio\hfil '.$tanev.' -- '.$osztalySTR.', of.: '.$ofo.'}}';
+
+ } else {
+
+ $return = '\footline{\ifodd\pageno\rightfootline\else\leftfootline\fi}
+\def\rightfootline{\hbox to \hsize{\copyright\ \mayor\ elektronikus napló '.$tanev.'\hfil\folio}}
+\def\leftfootline{\hbox to \hsize{\folio\hfil Nyomtatva: '.date('Y.m.d.').'}}';
+
+ }
+ return $return;
+
+}
+
+function endTeXDocument() {
+
+ return '\bye';
+
+}
+
+// ======= Haladási ====== //
+
+ $HianyzasJeloles = array(
+ 'hiányzás'=>'H',
+ 'késés'=>'k',
+ 'felszerelés hiány'=>'f',
+ 'egyenruha hiány' => 'e'
+ );
+
+ function datumString($tanitasiNapOk) {
+ global $Honapok;
+ $tolStamp = strtotime($tanitasiNapOk[0]);
+ $igStamp = strtotime($tanitasiNapOk[2]);
+ $tolString = date('Y',$tolStamp) . '. '.$Honapok[intval(date('m',$tolStamp))-1].' '.date('j',$tolStamp).'.';
+ $igString = date('Y',$igStamp) . '. '.$Honapok[intval(date('m',$igStamp))-1].' '.date('j',$igStamp).'.';
+ $datumString = $tolString.' -- '.$igString;
+
+ return kisbetus($datumString);
+ }
+
+
+ $hoRomai = array('01'=>'I',
+ '02' => 'II',
+ '03' => 'III',
+ '04' => 'IV',
+ '05' => 'V',
+ '06' => 'VI',
+ '07' => 'VII',
+ '08' => 'VIII',
+ '09' => 'IX',
+ '10' => 'X',
+ '11' => 'XI',
+ '12' => 'XII');
+
+ function datumRomai($dt) {
+ global $hoRomai;
+ list($ev,$honap,$nap) = explode('-',date('Y-m-j',strtotime($dt)));
+ return strtr($honap,$hoRomai).'.'.$nap.'.';
+ }
+
+
+ function putTeXOrarendParameterek($dt, $ADAT) {
+
+ $return = '';
+ for($ora = 1; $ora <= 8; $ora++) {
+ $oraAdat = $ADAT['orak'][$dt][$ora];
+ $return .= '{';
+ $targyNev = array();
+ if (is_array($oraAdat)) for ($i = 0; $i < count($oraAdat); $i++) {
+ $targyId = $ADAT['tankorTargy'][ $oraAdat[$i]['tankorId'] ];
+ if ($ADAT['targyAdat'][$targyId]['targyRovidNev'] != '') {
+ $tNev = $ADAT['targyAdat'][$targyId]['targyRovidNev'];
+ } else {
+ $tNev = $ADAT['targyAdat'][$targyId]['targyNev'];
+ }
+ if (!in_array($tNev, $targyNev)) $targyNev[] = $tNev;
+ }
+ $return .= TeXSpecialChars(implode(', ', $targyNev));
+ $return .= '}';
+ }
+
+ return $return;
+
+ }
+
+ function putTeXHaladasiOldalbeallitas() {
+
+ /* ELválasztás: szám < pretolerance(100) --> sikeres
+ elválasztás
+ sikertelenség !< tolerance(200)
+ */
+ return '%% Oldalbeállítás %%
+\\pretolerance=100
+\\tolerance=10000
+\\magnification=960
+\\vsize=26cm
+\\hsize=18.5cm
+\\hoffset=-1cm%% később generáljuk
+\\voffset=-1cm
+\\normal
+';
+ }
+
+ function putTeXFirstFootline($ADAT) {
+ return '\\footline{Nyomtatta: '.TeXSpecialChars($ADAT['intezmenyAdat']['nev']).' (OM: '.$ADAT['intezmenyAdat']['OMKod'].')'.' -- Látta: VMG 2003. X. 10. Sz. T.\\hfill}%'."\n";
+ }
+
+ function putTeXElolap($ADAT) {
+
+ global $targyTXT;
+
+ $return = '';
+ $dbSor = 0;
+ for ($i=0; $i < count($ADAT['tankorokNaploElejere']); $i++)
+ $dbSor += count($ADAT['tankorokNaploElejere'][$i]['tanarok']);
+ $maxSorPerLap = 36;
+
+
+ $return .= putTeXFirstFootline($ADAT);
+
+ $sor = 0; $i = 0; // hanyadik tankörnél tartunk
+ while ($sor < $dbSor) {
+
+ $lapSorai = 0;
+ $return .= '\\vbox to \\vsize{%%%%%%%%%%%%%%%%%%%%%%%';
+
+ if ($sor == 0) $return .='
+\\vskip60pt%
+\\centerline{\\hbox to 120pt{\\hrulefill}}%
+\\centerline{az intézmény hosszú bélyegzője}%
+';
+ $return .='\\hbox{\\vbox to 30pt{\\vfil\\hbox{\\centerline{'.TeXSpecialChars(nagybetus($ADAT['osztalyAdat']['osztalyJel']))
+.' osztályának HALADÁSI NAPLÓJA a '.$ADAT['tanev'].'/'.substr($ADAT['tanevAdat']['zarasDt'],0,4).' tanévre}}\\vfil}}%
+\\hbox{\\centerline{Osztályfőnök: '.$ADAT['osztalyAdat']['osztalyfonokNev'].'}}%
+%% egész lapos vbox vége... %%%%%%%%%%%%%%%%%%%%%%%
+%%ez a regi volt:\\vbox to 60pt{}%
+\\vfill%
+\\centerline{%
+\\vbox{\\hsize=300pt\\baselineskip=15pt';
+
+ while (
+ $i < count($ADAT['tankorokNaploElejere'])
+ && ($lapSorai + count($ADAT['tankorokNaploElejere'][$i]['tanarok'])) <= $maxSorPerLap
+ ) {
+ $targyId = $ADAT['tankorokNaploElejere'][$i]['targyId'];
+ $targyNev = $ADAT['targyAdat'][$targyId]['targyNev'];
+
+ $_tankorId = $ADAT['tankorokNaploElejere'][$i]['tankorId'];
+ $_osztalyId = $ADAT['tankorNaploja'][$_tankorId];
+ if ($_osztalyId!==null) {
+ $naplojaban = TeXSpecialChars($ADAT['osztalyJele'][$_osztalyId]);
+ $return .= '\\hbox to 300pt{'.TeXSpecialChars($targyNev);
+ if ($ADAT['targyAdat'][$targyId]['db'] > 1) {
+ $return .= ' '.(++$ADAT['targyAdat'][$targyId]['kiirtDb']).'. csoport';
+ }
+ if ($ADAT['osztalyId'] != $_osztalyId) $return .=' ('.$naplojaban.' naplójában)';
+ $return .= '\\quad\\dotfill\\quad ';
+ // Egy tanár - az első - félrevezető, pontatlan
+ // $return .= $ADAT['tankorokNaploElejere'][$i]['tanarok'][0]['tanarNev']; //.' tanár';
+ // -----------
+ // több tanár egy sorban, vesszővel elválasztva - esetleg nem fér ki a sorban
+ //$return .= implode(', ', $ADAT['tankorokNaploElejere'][$i]['tanarok']); //.' tanár';
+ // -----------
+ // több tanár külön-külön sorban - esetleg nem fér ki az oldalra ($maxLap?)
+ $return .= implode("}%\n\\hbox to 300pt{\\hfill\\quad ", $ADAT['tankorokNaploElejere'][$i]['tanarok']); //.' tanár';
+ $return .= '}%'."\n";
+ }
+ $sor += count($ADAT['tankorokNaploElejere'][$i]['tanarok']);
+ $lapSorai += count($ADAT['tankorokNaploElejere'][$i]['tanarok']);
+ $i++;
+ }
+ $return .= '}%
+}% eocenterline%
+\\vfill%
+}';
+
+ if ($sor < $dbSor) $return .= putTexUresLap();
+ } // while
+
+ return $return;
+
+ }
+
+
+
+
+
+
+ function putTeXTanuloTankorMatriX($ADAT) {
+
+ define('__MAXTANKOR',30);
+
+ $return .= '\\vbox to 20pt{\\vfil\\centerline{\\nagy A tanulók tankörbeosztása\\normal}\\vfil}%'."\n";
+
+$k = 0; // Hányadik tankörtől indulunk a táblázat elején
+$pageDb = 0;
+while ($k < count($ADAT['tankorok'])) {
+
+ $return .= '\\centerline{\\vbox{%'."\n";
+
+ $return .= '\\halign{\\vrule width2pt\\strut\\kicsi\\space\\noindent#\\hfill\\vrule width2pt';
+ for($i = $k; ($i < count($ADAT['tankorok'])) && ($i-$k<__MAXTANKOR); $i++) $return.= '&\\hbox to 10pt{\\hfil\kicsi#\\hfil}\\vrule';
+ $return .= ' width2pt\\cr%'."\n";
+ $return .='\\noalign{\\hrule height2pt}%'."\n";
+
+ $return .= '\\vbox to 180pt{\\hsize=100pt\\parindent=0pt\\vfill\\centerline{Tankör mátrix}\\vfill}';
+ for($i = $k; ($i < count($ADAT['tankorok'])) && ($i-$k<__MAXTANKOR); $i++) {
+ $return .= '&';
+ $return .= '\\setbox\\rotbox=\\hbox to 180pt{'. TeXSpecialChars( $ADAT['tankorok'][$i]['tankorNev'] ) .'\\hfill}';
+ $return .= '\\rotl\\rotbox';
+ }
+ $return .= '\\cr%'."\n";
+ $return .='\\noalign{\\hrule height2pt}%'."\n";
+
+ for ($j = 0; $j < count($ADAT['nevsor']); $j++){
+ $diakNev = $ADAT['nevsor'][$j]['diakNev'];
+ $diakId = $ADAT['nevsor'][$j]['diakId'];
+ $return .= $diakNev;
+ for($i = $k; ($i < count($ADAT['tankorok'])) && ($i-$k<__MAXTANKOR); $i++) {
+ $return.= '&';
+ if (in_array($ADAT['tankorok'][$i]['tankorId'], $ADAT['diakTankor'][$diakId])) $return.= 'x';
+ }
+ $return .='\\cr%'."\n";
+ $return .='\\noalign{\\hrule}%'."\n";
+ }
+ $return .='\\noalign{\\hrule height1.6pt}%'."\n";
+ $return .= '}}}\\hoffset=-0.8cm';
+
+ $k = $i;
+$pageDb++;
+}
+if (($pageDb % 2) == 0) $return .= putTeXUresLap(); // hogy ne csússzon el a páros/páratlan...
+ return $return;
+ }
+
+ function putTeXTanuloTankorMatriXOrig($ADAT) {
+
+ $return .= '\\vbox to 20pt{\\vfil\\centerline{\\nagy A tanulók tankörbeosztása\\normal}\\vfil}%
+\\centerline{\\vbox{%'."\n";
+
+ $return .= '\\halign{\\vrule width2pt\\strut\\kicsi\\space\\noindent#\\hfill\\vrule width2pt';
+ for($i = 0; $i < count($ADAT['tankorok']); $i++) $return.= '&\\hbox to 10pt{\\hfil\kicsi#\\hfil}\\vrule';
+ $return .= ' width2pt\\cr%'."\n";
+ $return .='\\noalign{\\hrule height2pt}%'."\n";
+
+ $return .= '\\vbox to 180pt{\\hsize=100pt\\parindent=0pt\\vfill\\centerline{Tankör mátrix}\\vfill}';
+ for($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $return .= '&';
+ $return .= '\\setbox\\rotbox=\\hbox to 180pt{'. TeXSpecialChars( $ADAT['tankorok'][$i]['tankorNev'] ) .'\\hfill}';
+ $return .= '\\rotl\\rotbox';
+ }
+ $return .= '\\cr%'."\n";
+ $return .='\\noalign{\\hrule height2pt}%'."\n";
+
+ for ($j = 0; $j < count($ADAT['nevsor']); $j++){
+ $diakNev = $ADAT['nevsor'][$j]['diakNev'];
+ $diakId = $ADAT['nevsor'][$j]['diakId'];
+ $return .= $diakNev;
+ for($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $return.= '&';
+ if (in_array($ADAT['tankorok'][$i]['tankorId'], $ADAT['diakTankor'][$diakId])) $return.= 'x';
+ }
+ $return .='\\cr%'."\n";
+ $return .='\\noalign{\\hrule}%'."\n";
+ }
+ $return .='\\noalign{\\hrule height1.6pt}%'."\n";
+ $return .= '}}}\\hoffset=-0.8cm';
+
+
+ return $return;
+ }
+
+
+
+
+ function putTeXAllandoFejlec() {
+
+$return='% ======================================================================= %
+% "Órán" táblázat (8.9pt?) 25.6pt
+\\def\\oran{\\vbox{\\halign{%
+\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule%
+&\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule%
+&\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule%
+&\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule%
+&\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule%
+&\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule%
+&\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule%
+&\\vbox to 30pt{\\hsize=8.9pt\\vfill\\noindent\\hfil ##\\hfil\\vfill}\\vrule width0.8pt%
+\\cr%
+% ----------------------------------------------------------------------- %
+1&2&3&4&5&6&7&8\\cr%
+\\noalign{\\hrule}%
+\\multispan8{\\vbox to 32pt{\\hsize=74pt\\vfill\\noindent\\hfil órán\\hfil\\vfill}\\vrule width 0.8pt}\\cr%
+}}}%
+% ======================================================================= %
+% "Mulasztott" órák táblázat
+\\def\\mulasztott{%
+\\setbox\\rotbox=\\hbox to 40pt{\\vbox to 14pt{\\vfil\\noindent\\space összesen\\vfil}}%
+\\vbox {%
+\\halign{##&\\hfil##\\hfil\\cr%
+\\oran&\\hbox{\\rotl\\rotbox}\\cr%
+\\noalign{\\hrule}%
+\\multispan2{\\strut\\hfil mulasztott\\hfil}\\cr%
+}}}
+% ======================================================================= %
+\\def\\igazolas{%
+\\setbox\\rotboxA=\\hbox to 60pt{\\vbox to 14pt{\\vfil\\noindent\\space igazolt\\vfil}}%
+\\setbox\\rotboxB=\\hbox to 60pt{\\vbox to 14pt{\\vfil\\noindent\\space igazolatlan\\vfil}}%
+\\lower3pt\\vbox{%
+\\halign{##&##\\cr%
+\\multispan2{\\strut\\space\\hfil Ebből\\hfil\\space}\\cr%
+\\noalign{\\hrule}%
+\\rotl\\rotboxA\\vrule&\\rotl\\rotboxB\\cr}}}
+% ======================================================================= %
+\\def\\hianyzasFejlec{%
+\\vbox{%
+\\halign{\\kozepen{2.4cm}{2.3cm}{##}\\vrule&##\\vrule width0.8pt&##\\cr%
+\\vbox{\\centerline{A hiányzó} \\centerline{tanuló neve}}%
+&\\mulasztott&\\igazolas\\cr}}}
+'; return $return;
+
+ }
+ /* ------------------------------------------------------------------------------------- */
+
+ /* ----- Haladási napló baloldalán a napi órarend. ------------------------------------- */
+ function putTeXOrarendMacro() {
+
+$return='% ====ORERDND MAKRÓ========================================================= %
+\\def\\orarend#1#2#3#4#5#6#7#8{%
+\\lower-3pt\\vbox to 160pt{%
+\\baselineskip=10pt%
+\\hsize=82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#1\\vfil}}%
+\\hrule width82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#2\\vfil}}%
+\\hrule width82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#3\\vfil}}%
+\\hrule width82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#4\\vfil}}%
+\\hrule width82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#5\\vfil}}%
+\\hrule width82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#6\\vfil}}%
+\\hrule width82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#7\\vfil}}%
+\\hrule width82.5pt%
+\\hbox{\\vbox to 20.4pt{\\vfil\\leftskip=3pt\\noindent\\raggedright#8\\vfil}}%
+}}%
+'; return $return;
+
+ } // end of putTeXOrarendMacro()
+ /* ------------------------------------------------------------------------------------- */
+
+ /* ------------------------------------------------------------------------------------- */
+ function putTeXHianyzasAlTablazat($napiHianyzas) {
+
+$return='% ======================================================================= %
+\\lower3pt\\vbox to 166pt{\\noindent{\\halign{%
+\\lower-2pt\\hbox to 2.4cm{\\hfil\\kicsi#\\hfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule%
+&\\vbox to 10pt{\\hsize=8.9pt\\vfill\\noindent\\hfil #\\hfil\\vfill}\\vrule width0.8pt%
+&\\lower-2pt\\hbox to 14pt{\\hfil#\\hfil}\\vrule width0.8pt%
+&\\lower-2pt\\hbox to 14pt{\\hfil#\\hfil}\\vrule%
+&\\lower-2pt\\hbox to 14pt{\\hfil#\\hfil}\\cr%
+% -----------------------------------------
+';
+ $i = 0; // Kiírt hiányzók száma (max 16)
+ if (is_array($napiHianyzas)) {
+ foreach ($napiHianyzas as $diakId => $H) {
+ if ($i > 15) break;
+ if ($i != 0) $return .= '\\noalign{\\hrule}';
+ $return .= $H['diakNev'];
+ for ($j = 1; $j <= 8; $j++) $return .= '&'.$H['ora'][$j];
+ $return .= '&'.$H['összesen'].'&'.$H['igazolt'].'&'.$H['igazolatlan'].'\\cr';
+ $i++;
+ }
+ }
+ // Üres sorok
+ for ($i;$i<=15; $i++) {
+ if ($i != 0) $return .= '\\noalign{\\hrule}';
+ $return .= '&&&&&&&&&&&\\cr';
+ }
+$return .= '}}}%
+'; return $return;
+
+
+ } // end of putTeXHianyzasAlTablazat($DATA)
+ /* ------------------------------------------------------------------------------------- */
+
+ function putTargyFejlec($lap, $ADAT) {
+
+ $return = '';
+
+ if ($lap > 0) {
+
+ $return='%% PAGE '.($lap+1).' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'."\n";
+ if ($lap == 2)
+ $return .= '\\vbox to 20pt{\\vfil\\centerline{\\nagy'.datumString($ADAT['tanitasiNapOk']).'\\normal}\\vfil}'."\n";
+ else
+ $return .= '\\vbox to 20pt{\\vfil\\centerline{\\nagy '.date('W',strtotime($ADAT['tanitasiNapOk'][1])).'. hét\\normal}\\vfil}'."\n";
+ $return .= '\\halign{%
+\\vrule width2pt%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width0.8pt&%
+\\hbox to 34pt{#}\\vrule width2pt\\cr%
+% -------------------------------------------------------------- %
+\\noalign{\\hrule height2pt}%
+%%+++ EZ ITT NEM JÓ ÁM MINDIG Hö... \\vbox to 75pt{}%
+';
+
+ }
+$foglalt = 0;
+for ($i = 0; $i < count($ADAT['targyFejlec'][$lap]); $i++) {
+ $targyId = $ADAT['targyFejlec'][$lap][$i]['targyId'];
+ $db = $ADAT['targyFejlec'][$lap][$i]['db'];
+ $sorsz = $ADAT['targyFejlec'][$lap][$i]['sorsz'];
+ $tAdat = $ADAT['targyAdat'][$targyId];
+
+ $tordeltTargyNev = $ADAT['targyAdat'][$targyId]['tordeltTargyNev'];
+ $targyNev = $ADAT['targyAdat'][$targyId]['targyNev'];
+
+ $foglalt += $db;
+
+ if ($db == 1) {
+ if (count($tordeltTargyNev) < 5) $return .= '\\vbox to 72pt{}\\tetejen{34pt}{41.2pt}{\\vbox{';
+ else $return .= '\\vbox to 72pt{}\\kozepen{34pt}{72pt}{\\vbox{';
+ for ($j = 0; $j < count($tordeltTargyNev); $j++) $return .= '\\centerline{'.TeXSpecialChars($tordeltTargyNev[$j]).'}';
+ $return .= '}}&';
+ } else {
+ $return .= '\\multispan{'.$db.'}{';
+ if ($lap != 0 && $foglalt == $db) $return .= '\\vrule width2pt\\vbox to 72pt{}';
+ //$return .= '\\ennes{'.TeXSpecialChars($targyNev).'}{'.$db.'}';
+ $return .= '\\emmes{'.TeXSpecialChars($targyNev).'}{'.$db.'}{'.$sorsz.'}';
+ if ($foglalt == $ADAT['helyek'][$lap]) $return .= '\\vrule width2pt}&';
+ else $return .= '\\vrule width0.8pt}&';
+ }
+}
+for ($i = $foglalt; $i < $ADAT['helyek'][$lap]; $i++) {
+ $return .= '\\tetejen{34pt}{41.2pt}{\\vbox{';
+ $return .= '\\centerline{}';
+ $return .= '}}&';
+}
+return substr($return,0,-1)."\\cr%\n";
+
+ }
+
+/* -------------------------------------- */
+
+ function putOraleiras($lap, $ADAT) {
+ $tol = 0;
+ for ($tLap = 0; $tLap < $lap; $tLap++) $tol += $ADAT['helyek'][$tLap];
+ $ig = $tol + $ADAT['helyek'][$lap];
+
+$return = '';
+$return .= '% ------------------------------------------------------------- %
+\\noalign{\\hrule height2pt}%
+';
+
+ for ($i = 0; $i < 3; $i++) {
+
+ $dt = $ADAT['tanitasiNapOk'][$i];
+ if (count($ADAT['orak'][$dt]) > 0) {
+ for ($j = $tol; $j < $ig; $j++) {
+ $tankorId = $ADAT['oszlopTankore'][$j];
+ if (is_array($ADAT['oraszam'][$dt][$tankorId])) {
+ if (is_numeric($ADAT['oraszam'][$dt][$tankorId][0]))
+ $oraszam1 = $ADAT['oraszam'][$dt][$tankorId][0].'.';
+ else $oraszam1='---';
+ if (is_numeric($ADAT['oraszam'][$dt][$tankorId][ (count($ADAT['oraszam'][$dt][$tankorId])-1) ]))
+ $oraszam2 = $ADAT['oraszam'][$dt][$tankorId][ (count($ADAT['oraszam'][$dt][$tankorId])-1) ].'.';
+ else $oraszam2='---';
+ } else { $oraszam1 = $oraszam2 = ''; }
+ if (is_array($ADAT['tananyag'][$dt][$tankorId])) $leiras = TeXSpecialChars(implode(' ', $ADAT['tananyag'][$dt][$tankorId]));
+ else $leiras = '';
+ // $dupla_orszam_formátum = \\vbox{\\hsize=20pt\\centerline{134.} \\centerline{135.}}
+ if ($oraszam1 == $oraszam2) {
+ $return .= '\\tananyag{'.$leiras.'}{'.$oraszam1.'}';
+ } else {
+ $return .= '\\tananyag{'.$leiras.'}{\\vbox{\\hsize=20pt\\centerline{'.$oraszam1.'} \\centerline{'.$oraszam2.'}}}';
+ }
+ if ($j < $ig - 1) $return .= '&';
+ }
+ $return .= '\\cr\\noalign{\\hrule height2pt}';
+ } else {
+ $return .= '\\multispan{15}{\\vrule width2pt\\vbox to 166pt{}\\hfil\\vrule width2pt}\\cr\\noalign{\\hrule height2pt}';
+ }
+ }
+
+
+ $return .= '% ------------------------------------------------------------- %
+\\multispan{15}{%
+\\vrule width2pt\\megjegyzes{Látogatások és egyéb}{észrevételek}%
+';
+ return $return;
+ }
+
+ /* ------------------------------------------------------------------------------------- */
+ function putTeXPage1($ADAT) {
+ global $aHetNapjai;
+$return='
+%%%%%%%%%%%%%%%%%%% PAGE 1 %%%%%%%%%%%%%%%%%%%%%%%
+\\vbox to 20pt{\\vfil\\centerline{\\nagy'.datumString($ADAT['tanitasiNapOk']).'\\normal}\\vfil}
+\\halign{%
+\\hbox to 22pt{\\hfil#}%
+&\\vrule width0.8pt\\hbox to 82.5pt{#}\\vrule width0.8pt%
+&#\\vrule width0.8pt&\\hbox to 34pt{#}\\vrule width0.8pt%
+&\\hbox to 34pt{#}\\vrule width0.8pt%
+&\\hbox to 34pt{#}\\vrule width0.8pt%
+&\\hbox to 34pt{#}\\vrule width0.8pt%
+&\\hbox to 34pt{#}\\vrule width0.8pt%
+&\\hbox to 34pt{#}\\vrule width2pt\\cr%
+% -------------------------------------------------------------- %
+\\noalign{\\hrule height2pt}%
+%xetex%\\vrule width2pt\\tanitasi&\\kozepen{82.5pt}{70pt}{Tant\\\'argy}&\\hianyzasFejlec&%
+\\vrule width2pt\\tanitasi&\\kozepen{82.5pt}{70pt}{Tantárgy}&\\hianyzasFejlec&%
+% -------------------------------------------------------------- %
+';
+
+
+$lap = 0;
+$return .= putTargyFejlec($lap, $ADAT);
+
+$return .= '% ------------------------------------------------------------- %
+\\noalign{\\hrule height2pt}%
+';
+
+ for ($i = 0; $i <= 2; $i++) {
+ // ---------------------------------- Mintanap...
+ $dt = $ADAT['tanitasiNapOk'][$i];
+ if (count($ADAT['orak'][$dt]) > 0) {
+ $return .= '\\datum{'.
+ getTanitasiNapSzama($dt, $ADAT['munkatervId']).'}{'.
+ datumRomai($dt).'}{'.
+ $aHetNapjai[(date('w',strtotime($dt))-1)].'}&\\orarend'.
+ putTeXOrarendParameterek($dt, $ADAT).'&'.
+ putTeXHianyzasAlTablazat($ADAT['hianyzas'][$dt]);
+ for ($j = 0; $j < 6; $j++) {
+ $tankorId = $ADAT['oszlopTankore'][$j];
+ if (is_array($ADAT['oraszam'][$dt][$tankorId])) {
+ if (is_numeric($ADAT['oraszam'][$dt][$tankorId][0]))
+ $oraszam1 = $ADAT['oraszam'][$dt][$tankorId][0].'.';
+ else $oraszam1 = '---';
+ if (is_numeric($ADAT['oraszam'][$dt][$tankorId][ (count($ADAT['oraszam'][$dt][$tankorId])-1) ]))
+ $oraszam2 = $ADAT['oraszam'][$dt][$tankorId][ (count($ADAT['oraszam'][$dt][$tankorId])-1) ].'.';
+ else $oraszam2='---';
+ } else { $oraszam1 = $oraszam2 = ''; }
+ if (is_array($ADAT['tananyag'][$dt][$tankorId])) $leiras = TeXSpecialChars(implode(' ', $ADAT['tananyag'][$dt][$tankorId]));
+ else $leiras = '';
+ // $dupla_orszam_formátum = \\vbox{\\hsize=20pt\\centerline{134.} \\centerline{135.}}
+ if ($oraszam1 == $oraszam2) {
+ $return .= '&\\tananyag{'.$leiras.'}{'.$oraszam1.'}';
+ } else {
+ $return .= '&\\tananyag{'.$leiras.'}{\\vbox{\\hsize=20pt\\centerline{'.$oraszam1.'} \\centerline{'.$oraszam2.'}}}';
+ }
+ }
+ $return .= '\\cr\\noalign{\\hrule height2pt}';
+ } elseif ($ADAT['napok'][$dt][0]['tipus'] == 'speciális tanítási nap') {
+ $return .= '\\datum{'.
+ getTanitasiNapSzama($dt, $ADAT['munkatervId']).'}{'.
+ datumRomai($dt).'}{'.
+ $aHetNapjai[(date('w',strtotime($dt))-1)]
+ .'}&\\multispan{8}{\\vrule width0.8pt\\vbox to 160pt{'
+ .'\\line{}\\centerline{'.$ADAT['napok'][$dt][0]['tipus'].'}\\line{}\\centerline{'.$ADAT['napok'][$dt][0]['megjegyzes'].'}'
+ .'}\\hfil\\vrule width2pt}\\cr\\noalign{\\hrule height2pt}';
+ } else {
+ $return .= '\\datum{}{'.datumRomai($ADAT['tanitasiNapOk'][$i] ).'}{'.$aHetNapjai[(date('w',strtotime($ADAT['tanitasiNapOk'][$i]))-1)]
+ .'}&\\multispan{8}{\\vrule width0.8pt\\vbox to 160pt{}\\hfil\\vrule width2pt}\\cr\\noalign{\\hrule height2pt}';
+ }
+ }
+
+ // ---------------------------------- Mintanap VÉGE
+$return .= '% ------------------------------------------------------------- %
+\\vrule width2pt\\megjegyzes{Mulasztott órák és}{későn jövés igazolása}%
+&\\multispan8{';
+
+ for ($i = 0; $i <= 2; $i++) {
+
+ // Kell ez?
+ //$return .= '\\vrule width0.8pt\\quad\\vbox to 85pt{\\hsize=140pt\\hbox{'. $aHetNapjai[(date('w',strtotime($ADAT['tanitasiNapOk'][$i]))-1)] .':}';
+ //$return .= '\\vfill}\\hfil';
+
+ $dt = $ADAT['tanitasiNapOk'][$i];
+ $pluszHIANYZASOK = array();
+
+ $return .= '\\vrule width0.8pt';
+ $return .= '\\vbox to 85pt{\\baselineskip=10pt\\leftskip=3pt\\hsize=159pt';
+ $return .= '\\par{\\noindent '.$aHetNapjai[(date('w',strtotime($ADAT['tanitasiNapOk'][$i]))-1)].':}';
+
+ if (count($ADAT['hianyzas'][$dt]) > 16) {
+ $napiHianyzas = $ADAT['hianyzas'][$dt];
+ $h = 0;
+ foreach ($napiHianyzas as $diakId => $H) {
+ if ($h > 15) {
+ $return .= '\\par{'.$H['diakNev'];
+ if (intval($H['összesen']) != 0) {
+ $return .= ' '.intval($H['összesen'])
+ .'('.intval($H['igazolt']).')';
+ // Hiányzó hiányzásai, késései felsorolás
+ for ($k = 1; $k <= 8; $k++) { // itt k=8 a maximális óraszám!
+ if (isset($H['ora'][$k])) {
+ $pluszHIANYZASOK[ $H['ora'][$k] ] .= $k.'.';
+ }
+ }
+ while (list($key,$val) = each($pluszHIANYZASOK)) {
+ $return .= ' '.$key.':'.$val;
+ }
+ } else { // nem hiányzott, csak késett
+ $return .= ' késett:';
+ for ($k = 1; $k <= 8; $k++) { // itt k=8 a maximális óraszám!
+ if (isset($H['ora'][$k])) {
+ $return .= ' '.$k.'.';
+ }
+ }
+ }
+ $return .= '}'; // ez a vége a \par{} - nak.
+ }
+ $h++;
+ }
+ }
+ $return .= '\\vfill}';
+ }
+
+
+$return .='\\vrule width2pt%
+}\\cr% multispan
+\\noalign{\\hrule height2pt}%
+}\\hoffset=-1cm
+';
+ return $return;
+
+
+ } // end of putTeXElsoOldal()
+ /* ------------------------------------------------------------------------------------- */
+
+ /* ------------------------------------------------------------------------------------- */
+ function putTeXPage2($ADAT) {
+
+ global $aHetNapjai;
+
+ $lap = 1;
+ $return .= putTargyFejlec($lap, $ADAT);
+ $return .= putOraleiras($lap, $ADAT);
+
+ for ($i = 0; $i < 3; $i++) {
+ $dt = $ADAT['tanitasiNapOk'][$i];
+ $return .= '\\vrule width0.8pt';
+ $return .= '\\vbox to 85pt{\\leftskip=3pt\\hsize=120pt';
+ $return .= '\\par{\\noindent '.$aHetNapjai[(date('w',strtotime($dt))-1)].':}\\parindent=15pt';
+ for ($k = 0; $k < count($ADAT['helyettesites'][$dt]); $k++)
+ $return .= '\\item{'.$ADAT['helyettesites'][$dt][$k]['ora'].'.}{'
+ .$ADAT['helyettesites'][$dt][$k]['tipus'].' \\dolt '
+ .$ADAT['tanarok'][ $ADAT['helyettesites'][$dt][$k]['ki'] ]['tanarNev'].'}';
+ for ($k = 0; $k < count($ADAT['oralatogatas'][$dt]); $k++) {
+ $return .= '\\item{'.$ADAT['oralatogatas'][$dt][$k]['ora'].'.}{'
+ .'óralátogatás \\dolt ';
+ $tNev = array();
+ foreach ($ADAT['oralatogatas'][$dt][$k]['tanarIds'] as $tanarId)
+ $tNev[] = $ADAT['tanarok'][$tanarId]['tanarNev'];
+ $return .= implode(', ', $tNev).'}';
+ }
+ $return .= '\\vfill}';
+ }
+
+ $return .= '\\vrule width0.8pt';
+ $return .= '\\vbox to 85pt{\\parindent=0pt\\leftskip=3pt\\hsize=120pt';
+ $return .= '\\par{Osztályfőnöki óra:}';
+ $oraszam1 = $oraszam2 = '';
+ for ($i = 0; $i < 3; $i++) {
+ $dt = $ADAT['tanitasiNapOk'][$i];
+ if ($ADAT['tananyag'][$dt][ $ADAT['ofoTankorId'] ] != '') $return .= '\\par{'.
+ TeXSpecialChars(implode('; ', array_unique($ADAT['tananyag'][$dt][ $ADAT['ofoTankorId'] ]))).'}';
+
+ // óraszám
+ if (is_array($ADAT['oraszam'][$dt][ $ADAT['ofoTankorId'] ])) {
+ if (is_numeric($ADAT['oraszam'][$dt][ $ADAT['ofoTankorId'] ][0]))
+ $oraszam1 = $ADAT['oraszam'][$dt][ $ADAT['ofoTankorId'] ][0].'.';
+ else $oraszam1 = '---';
+ if (is_numeric($ADAT['oraszam'][$dt][ $ADAT['ofoTankorId'] ][ (count($ADAT['oraszam'][$dt][ $ADAT['ofoTankorId'] ])-1) ]))
+ $oraszam2 = $ADAT['oraszam'][$dt][ $ADAT['ofoTankorId'] ][ (count($ADAT['oraszam'][$dt][ $ADAT['ofoTankorId'] ])-1) ].'.';
+ else $oraszam2 = '---';
+ }
+
+ }
+ $return .= '\\vfill';
+ $return .= '\\hbox to 138pt{\\hfill\\lower3pt\\oraszam{';
+
+ if ($oraszam1 == $oraszam2) $return .= $oraszam1;
+ else $return .= '\\vbox{\\hsize=20pt\\centerline{'.$oraszam1.'} \\centerline{'.$oraszam2.'}}';
+
+ $return .= '}}';
+ $return .= '}%end of vbox'."\n";
+ $return .= '\\vrule width2pt';
+
+ $return .= '}\\cr% multispan
+\\noalign{\\hrule height2pt}%
+}\\hoffset=-0.4cm';
+
+ return $return;
+ }
+ /* ------------------------------------------------------------------------------------- */
+
+
+ /* ------------------------------------------------------------------------------------- */
+ function putTeXPage34($ADAT) {
+
+ global $aHetNapjai;
+
+ $lap = 2;
+ $return .= putTargyFejlec($lap, $ADAT);
+ $return .= putOraleiras($lap, $ADAT);
+ for ($i = 0; $i < 3; $i++) {
+ $dt = $ADAT['tanitasiNapOk'][$i];
+ $return .= '\\vrule width0.8pt';
+ $return .= '\\vbox to 85pt{\\leftskip=3pt\\hsize=120pt';
+ $return .= '\\par{\\noindent '.$aHetNapjai[(date('w',strtotime($dt))-1)].':}\\parindent=15pt';
+ $return .= '\\vfill}';
+ }
+
+ $return .= '\\vrule width0.8pt';
+ $return .= '\\vbox to 85pt{\\parindent=0pt\\leftskip=3pt\\hsize=120pt';
+ $return .= '\\vfill';
+ $return .= '\\hbox to 138pt{\\hfill';
+ $return .= '}';
+ $return .= '}%end of vbox'."\n";
+ $return .= '\\vrule width2pt';
+
+ $return .= '}\\cr% multispan
+\\noalign{\\hrule height2pt}%
+}\\hoffset=-1cm';
+
+ $return .= putTeXLapdobas();
+
+ $lap = 3;
+ $return .= putTargyFejlec($lap, $ADAT);
+ $return .= putOraleiras($lap, $ADAT);
+ for ($i = 0; $i < 3; $i++) {
+ $dt = $ADAT['tanitasiNapOk'][$i];
+ $return .= '\\vrule width0.8pt';
+ $return .= '\\vbox to 85pt{\\leftskip=3pt\\hsize=120pt';
+ $return .= '\\par{\\noindent '.$aHetNapjai[(date('w',strtotime($dt))-1)].':}\\parindent=15pt';
+ $return .= '\\vfill}';
+ }
+
+ $return .= '\\vrule width0.8pt';
+ $return .= '\\vbox to 85pt{\\parindent=0pt\\leftskip=3pt\\hsize=120pt';
+ $return .= '\\vfill';
+ $return .= '\\hbox to 138pt{\\hfill';
+ $return .= '}';
+ $return .= '}%end of vbox'."\n";
+ $return .= '\\vrule width2pt';
+
+ $return .= '}\\cr% multispan
+\\noalign{\\hrule height2pt}%
+}\\hoffset=-0.4cm';
+
+
+ return $return;
+ }
+ /* ------------------------------------------------------------------------------------- */
+
+
+
+
+
+
+// ======= Osztályozó ======= //
+
+function putTeXOsztalyozoOldalbeallitas() {
+
+ return '%% Oldalbeállítás %%
+\pretolerance=10000
+\tolerance=100
+\magnification=960
+\vsize=27.7cm
+\hsize=19cm
+\voffset=-1.54cm
+\hoffset=-1.27cm';
+
+}
+
+function putTeXOsztalyozoFejlec($sorszam, $diakNev, $szuletesiHely, $szuletesiIdo) {
+
+ global $Honapok;
+
+ $ev = substr($szuletesiIdo, 0, 4);
+ $ho = kisbetus($Honapok[ intval(substr($szuletesiIdo, 5, 2))-1 ]);
+ $nap = intval(substr($szuletesiIdo, -2));
+ if ($szuletesiHely == '') $szuletesiHely = 'n.a.';
+
+ $return .= '%--Osztályozó napló egy diák fejléce--'.$sorszam.'
+\ifodd\pageno\hoffset=-0,64cm\else\hoffset=-1,64cm\fi
+\hbox to\hsize{\nagy '.$sorszam.'. '.$diakNev.'\hfil '.$szuletesiHely.", $ev. $ho $nap.".'}%
+\medskip';
+
+ return $return;
+
+}
+
+function putTeXOsztalyozoAllandoFejlec($Ho) {
+ global $hoRomai;
+ foreach ($Ho as $k=>$v) {
+ $rHo[$k] = $hoRomai[$v].'.';
+ }
+
+
+ $return .= '
+\halign{';
+
+ if (__OSZTALYOZONAPLO_JEGYEK_FELEVENTE === true) {
+ $return .= '\hbox to 194.8pt{\strut\hfil #\hfil}\vrule width1.2pt&';
+ $return .= '\hbox to 194.8pt{\strut\hfil #\hfil}\vrule width1.2pt\cr%'."\n";
+ $return .= 'I.&II.\cr%'."\n";
+ $txt = 'félévben nyert érdemjegy';
+ $return .= '\noalign{\hrule height0.8pt}%
+\multispan{2}{\vbox to 25pt{\hsize=390.8pt\vfil\hbox to 390.8pt{\hfil '.$txt.'\hfil}\vfil}\vrule width1.2pt}\cr%
+}%
+';
+ } else {
+ for($i=1; $i<=10; $i++) $return .= '\hbox to 38pt{\strut\hfil #\hfil}\vrule width1.2pt&';
+ $return = substr($return,0,-1);
+ $return .= '\cr% 10 darab'."\n";
+ // Ha a hónapokat írnánk ki?
+ $return .= implode('&', $rHo).'\cr%'."\n";
+ $txt = 'hónapban nyert érdemjegy';
+// Vagy tíz "témakört"..
+ //1.&2.&3.&4.&5.&6.&7.&8.&9.&10.\cr%
+// $return .= '1.';
+// for ($i = 1; $i < count($Ho); $i++) $return .= '&'.($i+1).'.';
+// $return .= '\cr%'."\n";
+// $txt = 'szakaszból (témakörből) nyert érdemjegy';
+ $return .= '\noalign{\hrule height0.8pt}%
+\multispan{10}{\vbox to 25pt{\hsize=390.8pt\vfil\hbox to 390.8pt{\hfil '.$txt.'\hfil}\vfil}\vrule width1.2pt}\cr%
+}%
+';
+
+ }
+
+ return $return;
+
+}
+
+function putTeXOsztalyozoJegyek($diakId, $ADAT, $start = 0) {
+/*
+ $sorszam - hány tárgy sora lett kiírva
+ $i - Hányadik tárgynál tartunk az osztály tárgyai között
+ $start - honnan indul a $i
+*/
+ global $KOVETELMENY, $_TANEV;
+
+// csúnya megoldás, de nincs jobb ötletem:
+ global $iGlobal;
+
+ $return .= '%%%% Osztalyozó jegyek %%%%'."\n";
+// $return .= '\halign{\vrule width2pt\hbox to 85pt{\vbox to 30pt{\hsize=85pt\vfil{\ #}\vfil}\hfill}\vrule width1.2pt&'; // Tárgy oszlopa - balra igazított
+ $return .= '\halign{\vrule width2pt\hbox to 85pt{\hglue 5pt plus 0pt minus 0pt \vbox to 30pt{\hsize=80pt\vfil{#}\vfil}\hfill}\vrule width1.2pt&'; // Tárgy oszlopa - balra igazított
+
+ if (__OSZTALYOZONAPLO_JEGYEK_FELEVENTE === true) {
+ for ($i = 0; $i < 2; $i++) { // A hónapok
+ $return .= '\hbox to 194.8pt{\hfil\vbox to 30pt{\hsize=186.8pt{\baselineskip=9pt\vfil#\vfil}}\hfil}\vrule width1.2pt&'; // középre igazított
+ }
+ } else {
+ for ($i = 0; $i < count($ADAT['honapok']); $i++) { // A hónapok
+ $return .= '\hbox to 38pt{\hfil\vbox to 30pt{\hsize=30pt{\baselineskip=9pt\vfil#\vfil}}\hfil}\vrule width1.2pt&'; // középre igazított
+ }
+ }
+ $return .= '\hbox to 28pt{\vbox to 30pt{\hsize=28pt\vfil\hfil{\nagyss #}\hfil\vfil}}\vrule&%
+\hbox to 28pt{\vbox to 30pt{\hsize=28pt\vfil\hfil{\nagyss #}\hfil\vfil}}\vrule width2pt\cr%
+%%%% Formátum sor vége %%%%
+\noalign{\hrule height2pt}%
+%%%% Tárgy fejlécsora %%%%
+\omit{\vrule width2pt\hbox to 85pt{\vbox to 25pt{\hsize=85pt\vfil{\hfil Tantárgy\vfil}\vfil}\hfill}\vrule width1.2pt}&%
+%%%% Hónapok fejlécsora %%%%'."\n";
+if (__OSZTALYOZONAPLO_JEGYEK_FELEVENTE === true) $return .= '\multispan{2}{\lower3pt\vbox{'.putTeXOsztalyozoAllandoFejlec($ADAT['honapok']).'}}&%'."\n";
+else $return .= '\multispan{10}{\lower3pt\vbox{'.putTeXOsztalyozoAllandoFejlec($ADAT['honapok']).'}}&%'."\n";
+$return .= '%%%% Zárójegy fejlécsora %%%%
+\multispan2{\vbox{%
+\halign{\hbox to 28pt{\space\lower3pt\vbox to 25pt{\hsize=22pt\vfil\baselineskip=0pt #\vfil}\space}\vrule&%
+\hbox to 28pt{\space\lower3pt\vbox to 25pt{\hsize=22pt\vfil\baselineskip=0pt #\vfil}\space}%
+\cr%
+\multispan2{\strut\hfil Osztályzata\hfil}\cr%
+\noalign{\hrule height 0.8pt}%
+félév- kor&év végén\cr%
+}%
+}\vrule width2pt}\cr%
+%%%%%%%% Fejléc vége %%%%%%%%
+\noalign{\hrule height1.2pt}%
+';
+
+## =====================================================
+# Tárgynév formálása, és a 10 hónapban külön a rublikák
+ $sorszam = 0;
+ for ($i = $start; ($i < count($ADAT['targyak']) && $sorszam < 20); $i++) {
+
+ $targyId = $ADAT['targyak'][$i]['targyId'];
+ $targyNev = $ADAT['targyak'][$i]['targyNev'];
+ // A hosszabb nevek esetén az első szóköz nem nyújtható - de ezt most az elválaszott alak kiiktatja
+ // if ($pos = strpos($targyNev, ' ')) $targyNev = substr($targyNev, 0, $pos).'\hglue 1ex plus 0pt minus 0pt '.substr($targyNev, $pos+1);
+ if (
+ (
+ //---------IDE ÍRJ
+ //is_array($ADAT['jegyek'][$diakId][$targyId])
+ in_array($targyId,$ADAT['diakTargy'][$diakId])
+ || is_array($ADAT['zaroJegy'][1][$diakId][$targyId])
+ || is_array($ADAT['zaroJegy'][2][$diakId][$targyId])
+ )
+ && ($targyId != $ADAT['targyak']['magatartasId'])
+ && ($targyId != $ADAT['targyak']['szorgalomId'])
+ && ($targyNev != 'osztályfőnöki')
+ && ($targyNev != 'magatartás')
+ && ($targyNev != 'szorgalom')
+ ) {
+ $sorszam++;
+ // $return .= $targyNev;
+ $return .= $ADAT['targyak'][$i]['elvalasztott'];
+ $return .= '&';
+
+ if (__OSZTALYOZONAPLO_JEGYEK_FELEVENTE !== true) {
+ for ($k = 0; $k < count($ADAT['honapok']); $k++) {
+ $ho = $ADAT['honapok'][$k];
+ for($j = 0; $j < count($ADAT['jegyek'][$diakId][$targyId][$ho]); $j++) {
+ $_jegy = $ADAT['jegyek'][$diakId][$targyId][$ho][$j]['jegy'];
+ $_jegyTipus = $ADAT['jegyek'][$diakId][$targyId][$ho][$j]['jegyTipus'];
+ $return .= TeXSpecialChars($KOVETELMENY[$_jegyTipus][$_jegy]['rovid']).' ';
+ }
+ $return .= '&';
+ }
+ } else { /* Ha félévenként! */
+ for ($felev=1; $felev<=2; $felev++) {
+ for ($j=0; $j<count($ADAT['jegyek'][$diakId]['felevenkent'][$targyId][$felev]); $j++) {
+ $_jegy = $ADAT['jegyek'][$diakId]['felevenkent'][$targyId][$felev][$j]['jegy'];
+ $_jegyTipus = $ADAT['jegyek'][$diakId]['felevenkent'][$targyId][$felev][$j]['jegyTipus'];
+ $return .= TeXSpecialChars($KOVETELMENY[$_jegyTipus][$_jegy]['rovid']).' ';
+ }
+ $return .= '&';
+ }
+ }
+
+ if (
+ strtotime($ADAT['diakAdat'][$diakId]['osztalyDiak'][0]['kiDt']) == ''
+ || strtotime($_TANEV['szemeszter'][1]['zarasDt']) <=strtotime($ADAT['diakAdat'][$diakId]['osztalyDiak'][0]['kiDt'])
+ ) {
+ $zaroJegyek=$ADAT['zaroJegy'][1][$diakId][$targyId];
+ for ($zji=0; $zji<count($zaroJegyek); $zji++) {
+ if ($zji>0) $return .= ' ';
+ if ($zaroJegyek[$zji]['jegy'] != 0) $return .= TeXSpecialChars(
+ $KOVETELMENY[ $zaroJegyek[$zji]['jegyTipus'] ][ $zaroJegyek[$zji]['jegy'] ]['rovid']
+ );
+ $return .= TeXSpecialChars(nagybetus(substr(
+ $zaroJegyek[$zji]['megjegyzes'],0,1
+ )));
+
+ }
+ } // ha még tagja félévkor az osztálynak
+
+ $return .= '&';
+
+ if (
+ strtotime($ADAT['diakAdat'][$diakId]['osztalyDiak'][0]['kiDt']) == ''
+ || strtotime($_TANEV['szemeszter'][2]['zarasDt']) <= strtotime($ADAT['diakAdat'][$diakId]['osztalyDiak'][0]['kiDt'])
+ ) {
+ $zaroJegyek=$ADAT['zaroJegy'][2][$diakId][$targyId];
+ for ($zji=0; $zji<count($zaroJegyek); $zji++) {
+ if ($zji>0) $return .= ' ';
+ if ($zaroJegyek[$zji]['jegy'] != 0) $return .= TeXSpecialChars(
+ $KOVETELMENY[ $zaroJegyek[$zji]['jegyTipus'] ][ $zaroJegyek[$zji]['jegy'] ]['rovid']
+ );
+ $return .= TeXSpecialChars(nagybetus(substr(
+ $zaroJegyek[$zji]['megjegyzes'],0,1
+ )));
+ }
+ } // ha még tagja év végén az osztálynak
+ $return .= '\cr%
+\noalign{\hrule height0.8pt}%
+';
+ }
+ }
+
+
+ for($j = $sorszam; $j < 20; $j++) {
+ if (__OSZTALYOZONAPLO_JEGYEK_FELEVENTE === true) $return .= '&&&&\cr';
+ else $return .= str_repeat('&', 2+count($ADAT['honapok'])).'\cr';
+// $return .= '0&1&2&3&4&5&6&7&8&9&10&11&12\cr';
+ $return .= '\noalign{\hrule height0.8pt}';
+ }
+
+ $return .= '}';
+
+ $iGlobal = $i;
+
+ return $return;
+}
+
+function putTeXOsztalyozoAdatok($diakId, $ADAT) {
+
+ global $KOVETELMENY;
+
+ $return .= '\halign{\vrule width2.0pt\hbox to 398.6pt{\vbox to 80pt{\hsize=398.6pt#}}\vrule width1.2pt&%
+\hbox to 135.2pt{#}\vrule width2pt\cr%
+\noalign{\hrule height1.2pt}%
+\quad\vbox{\vbox to 8pt{}%
+\settabs\+ Oktatási azonosító\quad&\quad Itt egy nagyon hosszzú név \quad&\quad Törvényes képviselő:\ &\quad adatsor3 \cr
+\+ Oktatási azonosító:&'.
+$ADAT['diakAdat'][$diakId]['oId']
+.'&Törzslapszám:&'.
+TeXSpecialChars($ADAT['diakAdat'][$diakId]['torzslapszam'])
+#.'&Törvényes képviselő:&'.
+#str_replace(',',', ',$ADAT['diakAdat'][$diakId]['torvenyesKepviselo'])
+.'\cr%
+\+ Anyja neve:&'.
+# Ha van leánykori neve, akkor azt írjuk ki, különben a viselt nevet
+(($ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['anyaId'] ]['szuleteskoriCsaladinev']!='')?trim(
+ $ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['anyaId'] ]['szuleteskoriCsaladinev'].' '.
+ $ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['anyaId'] ]['szuleteskoriUtonev']
+):$ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['anyaId'] ]['szuloNev'])
+.'&TAJ:&'.
+implode('-', str_split($ADAT['diakAdat'][$diakId]['tajSzam'],3))
+.'\cr%';
+ $return .= '
+\+ '
+.'Apa neve:&'.
+$ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['apaId'] ]['szuloNev']
+.'&Telefonszám:&'.
+implode(
+ ', ',
+ array_unique(
+ array_diff(
+ array($ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['anyaId'] ]['telefon'],$ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['apaId'] ]['telefon']),
+ array(null,'')
+ )
+ )
+)
+.'\cr%';
+ $return .= '
+\+ Gondviselő neve:&'.
+$ADAT['szulok'][ $ADAT['diakAdat'][$diakId]['gondviseloId'] ]['szuloNev']
+.'&Törvényes képviselő:&'.
+str_replace(',',', ',$ADAT['diakAdat'][$diakId]['torvenyesKepviselo'])
+.'\cr%';
+$return .= '
+\+ Tanuló lakcíme:&'.TeXSpecialChars($ADAT['diakAdat'][$diakId]['lakhelyIrsz'].' '
+ .$ADAT['diakAdat'][$diakId]['lakhelyHelyseg'].', '
+ .$ADAT['diakAdat'][$diakId]['lakhelyKozteruletNev'].' '
+ .$ADAT['diakAdat'][$diakId]['lakhelyKozteruletJelleg'].' '
+ .$ADAT['diakAdat'][$diakId]['lakhelyHazszam'].' '
+ .$ADAT['diakAdat'][$diakId]['lakhelyEmelet'].' '
+ .$ADAT['diakAdat'][$diakId]['lakhelyAjto'].' ')
+ .'\cr%';
+if ($ADAT['diakAdat'][$diakId]['gondozasiSzam'] != '' || $ADAT['diakAdat'][$diakId]['fogyatekossag'] != '') {
+ $return .= '
+\+ Felmentés:&'.
+str_replace(',',', ',$ADAT['diakAdat'][$diakId]['fogyatekossag']).' ('.TeXSpecialChars($ADAT['diakAdat'][$diakId]['gondozasiSzam']).')'
+.'\cr%';
+}
+
+ $return .= '
+}&%---------------------------------
+\lower3pt\vbox{%
+\halign{\hbox to 77.6pt{\vbox to 19.3pt{\hsize=77.6pt\vfil\space#\vfil}}&%
+\vrule\hbox to 28pt{\vbox to 19.3pt{\hsize=28pt\vfil{\nagyss\hfil#\hfil}\vfil}}\vrule&%
+\hbox to 28pt{\vbox to 19.3pt{\hsize=28pt\vfil{\nagyss\hfil#\hfil}\vfil}}\cr%
+\quad Magatartás&';
+$return .= $KOVETELMENY[ $ADAT['zaroJegy'][1][$diakId][ $ADAT['targyak']['magatartasId'] ][0]['jegyTipus']
+ ][ $ADAT['zaroJegy'][1][$diakId][ $ADAT['targyak']['magatartasId'] ][0]['jegy'] ]['rovid'];
+$return .= '&';
+$return .= $KOVETELMENY[ $ADAT['zaroJegy'][2][$diakId][ $ADAT['targyak']['magatartasId'] ][0]['jegyTipus']
+ ][ $ADAT['zaroJegy'][2][$diakId][ $ADAT['targyak']['magatartasId'] ][0]['jegy'] ]['rovid'];
+$return .= '\cr%
+\noalign{\hrule}%
+\quad Szorgalom&';
+$return .= $KOVETELMENY[ $ADAT['zaroJegy'][1][$diakId][ $ADAT['targyak']['szorgalomId'] ][0]['jegyTipus']
+ ][ $ADAT['zaroJegy'][1][$diakId][ $ADAT['targyak']['szorgalomId'] ][0]['jegy'] ]['rovid'];
+$return .= '&';
+$return .= $KOVETELMENY[ $ADAT['zaroJegy'][2][$diakId][ $ADAT['targyak']['szorgalomId'] ][0]['jegyTipus']
+ ][ $ADAT['zaroJegy'][2][$diakId][ $ADAT['targyak']['szorgalomId'] ][0]['jegy'] ]['rovid'];
+$return .= '\cr%
+\noalign{\hrule height1.2pt}%
+\omit\vbox to 42.4pt{\hsize=77.6pt{%======================
+\halign{\hbox to 30.4pt{\space\vbox to 20.8pt{\hsize=28.4pt\vfil#\vfil}}\vrule&%
+\hbox to 46.4pt{\hbox to 2pt{}\vbox to 20.8pt{\hsize=40.4pt#}}\cr%
+igazolt&\vfil mulasztott\cr%
+\noalign{\hrule width 30.4pt}%
+\baselineskip9pt igazo\-latlan&órák száma\cr%
+}%
+%===========================
+}}&%~~~~~~~~~~~~~~~~
+\omit\vrule\vbox{\halign{\vbox to 20.8pt{\hsize=28pt\vfil\hfil{\nagyss #}\hfil\vfil}\cr%
+'.intval($ADAT['hianyzas'][1][$diakId]['igazolt']).'\cr%
+\noalign{\hrule}%
+'.intval($ADAT['hianyzas'][1][$diakId]['igazolatlan']+floor($ADAT['hianyzas'][1][$diakId]['kesesPercOsszeg']/45)).'\cr%
+}}\vrule%
+%~~~~~~~~~~~~~~~~~~~
+&%~~~~~~~~~~~~~~~~~~
+\omit\vbox{\halign{\vbox to 20.8pt{\hsize=28pt\vfil\hfil{\nagyss #}\hfil\vfil}\cr%
+'.intval($ADAT['hianyzas'][2][$diakId]['igazolt']).'\cr%
+\noalign{\hrule}%
+'.intval($ADAT['hianyzas'][2][$diakId]['igazolatlan']+floor($ADAT['hianyzas'][2][$diakId]['kesesPercOsszeg']/45)).'\cr%
+}}%
+%~~~~~~~~~~~~~~~~~~~
+\cr%
+}%
+}%
+%-----------------------------------
+\cr%
+\noalign{\hrule height2pt}%
+}';
+ return $return;
+
+}
+
+function putTeXTanarLista($ADAT, $lapDobasok) {
+
+ $TANAROK = $ADAT['tanarok'];
+
+ $return = '';
+ $dbTanar = count($TANAROK);
+ $maxTanarperlap = 24;
+ $maxLap = ceil($dbTanar / $maxTanarperlap);
+
+ if ($lapDobasok%2==1) $return .= putTexUresLap();
+
+ for ($lap=0; $lap<$maxLap; $lap++) {
+ if ($maxLap>1) $extStr = ' '.$maxLap.'/'.($lap+1);
+
+ $return .= '\vbox to 32pt{}\centerline{\nagy Aláíróív'.$extStr.'}%'."\n"; //\bigskip
+ $return .= '\vfill'."\n";
+ $return .= '\centerline{Ezt a haladási naplót '.$ADAT['tanitasiNapokSzama'].' tanítási nappal lezártam.}'."\n";
+ $return .= '\centerline{Ezt az osztályozó naplót '.count($ADAT['diakIds']);
+ $return .= ' beírt tanulóval lezártam.}'."\n";
+
+ $return .= '\vfill'."\n";
+ for ($i = 0 + $lap*($maxTanarperlap); $i < $dbTanar && ($maxLap==1 || ($maxLap>=2 && $i<($lap+1)*$maxTanarperlap)); $i=$i+2) {
+ $return .= '\line{\hfill'.
+ '\vbox to 45pt{\hsize=150pt\vfil'.
+ '\hbox to 150pt{\dotfill}'.
+ '\hbox to 150pt{\hfil '.$TANAROK[$i].'\hfil}'.
+ '}';
+ if ($TANAROK[$i+1] != '' && $i+1<($lap+1)*$maxTanarperlap) {
+ $return .= '\hbox to 80pt{}'.
+ '\vbox to 45pt{\hsize=150pt\vfil'.
+ '\hbox to 150pt{\dotfill}'.
+ '\hbox to 150pt{\hfil '.$TANAROK[$i+1].'\hfil}'.
+ '}';
+ }
+ $return .= '\hfill}';
+ }
+ $return .= '\vfill'."\n";
+
+ $return .= putTeXUresLap();
+
+ }
+
+ return $return;
+}
+
+/* Páratlan mayTanarperlap-pal nem jó!!
+
+function putTeXTanarLista($ADAT, $lapDobasok) {
+
+// Gutbrod András
+
+ $TANAROK = $ADAT['tanarok'];
+
+// teszteléshez...
+$TANAROK = array(
+ 'Tanár 01', 'Tanár 02', 'Tanár 03', 'Tanár 04', 'Tanár 05', 'Tanár 06', 'Tanár 07', 'Tanár 08', 'Tanár 09', 'Tanár 10',
+ 'Tanár 11', 'Tanár 12', 'Tanár 13', 'Tanár 14', 'Tanár 15', 'Tanár 16', 'Tanár 17', 'Tanár 18', 'Tanár 19', 'Tanár 20',
+ 'Tanár 21', 'Tanár 22', 'Tanár 23', 'Tanár 24', 'Tanár 25', 'Tanár 26', 'Tanár 27', 'Tanár 28', 'Tanár 29', 'Tanár 30',
+ 'Tanár 31', 'Tanár 32', 'Tanár 33', 'Tanár 34', 'Tanár 35', 'Tanár 36', 'Tanár 37', 'Tanár 38', 'Tanár 39', 'Tanár 40',
+ 'Tanár 41', 'Tanár 42', 'Tanár 43', 'Tanár 44', 'Tanár 45', 'Tanár 46', 'Tanár 47', 'Tanár 48', 'Tanár 49', 'Tanár 50', 'Tanár 51'
+);
+
+
+ $return = '';
+ $dbTanar = count($TANAROK);
+ $maxTanarperlap = 23;
+ $maxLap = ceil($dbTanar / $maxTanarperlap);
+ $lap = 1;
+
+ if ($lapDobasok%2==1) $return .= putTexUresLap();
+
+ for ($i=0; $i<$dbTanar; $i++) {
+
+ // lap teteje?
+ if ($i % $maxTanarperlap == 0) {
+
+ if ($maxLap>1) $extStr = ' '.$maxLap.'/'.($lap);
+
+ $return .= '\vbox to 32pt{}\centerline{\nagy Aláíróív'.$extStr.'}%'."\n";
+ $return .= '\vfill'."\n";
+ $return .= '\centerline{Ezt a haladási naplót '.$ADAT['tanitasiNapokSzama'].' tanítási nappal lezártam.}'."\n";
+ $return .= '\centerline{Ezt az osztályozó naplót '.count($ADAT['diakIds']);
+ $return .= ' beírt tanulóval lezártam.}'."\n";
+ $return .= '\vfill'."\n";
+
+ }
+
+ if ($i % 2 == 0) {
+
+ $return .= '\line{\hfill'.
+ '\vbox to 45pt{\hsize=150pt\vfil'.
+ '\hbox to 150pt{\dotfill}'.
+ '\hbox to 150pt{\hfil '.$TANAROK[$i].'\hfil}'.
+ '}';
+
+ // utolsó?
+ if (($i+1) == $dbTanar) {
+ $return .= '\hfill}';
+ }
+
+ } else {
+
+ $return .= '\hbox to 80pt{}'.
+ '\vbox to 45pt{\hsize=150pt\vfil'.
+ '\hbox to 150pt{\dotfill}'.
+ '\hbox to 150pt{\hfil '.$TANAROK[$i].'\hfil}'.
+ '}';
+ $return .= '\hfill}';
+
+ }
+
+ // lap alja?
+ if ((($i+1) % $maxTanarperlap) == 0) {
+
+ $return .= '\vfill'."\n";
+ $return .= putTeXUresLap();
+ $lap = $lap+1;
+
+ } else {
+
+ // Nem lap alja és utolsó.
+ if (($i+1) == $dbTanar) {
+
+ $return .= '\vfill'."\n";
+ $return .= putTeXUresLap();
+
+ }
+ }
+ }
+
+ return $return;
+
+}
+
+*/
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/torzslap.php b/mayor-orig/www/include/modules/naplo/nyomtatas/torzslap.php
new file mode 100644
index 00000000..4ae32d4b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/torzslap.php
@@ -0,0 +1,199 @@
+<?php
+
+ function torzslapNyomtatvanyKeszites($ADAT) {
+
+ global $Honapok, $KOVETELMENY, $ZaradekIndex, $bizonyitvanyJegyzetek;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ $tmplFile = 'torzslap';
+
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ $Intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+ $Ertekeles = getOsztalySzovegesErtekeles($ADAT);
+ $_Targyak = getTargyak(array('targySorrendNev' => $ADAT['targySorrendNev'],'osztalyId' => $ADAT['osztalyId'])); $Targyak = array();
+ for ($i = 0; $i < count($_Targyak); $i++) {
+ $Targyak[ $_Targyak[$i]['targyId'] ] = $_Targyak[$i];
+ $Targyak[ $_Targyak[$i]['targyId'] ]['targyNev'] = nagybetus(mb_substr($_Targyak[$i]['targyNev'],0,1)).mb_substr($_Targyak[$i]['targyNev'],1);
+ }
+ unset($_Targyak);
+
+ list($ev,$ho,$nap) = explode('-', $ADAT['dt']);
+ list($evf,$oszt) = explode('.', $ADAT['osztalyAdat']['osztalyJel']);
+
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'), 'datumEv' => $ev, 'datumHonap' => $ho, 'datumNap' => $nap, 'hoNev' => kisbetus($Honapok[$ho-1]),
+ 'intezmenyNev' => $Intezmeny['nev'], 'intezmenyOMKod' => $Intezmeny['OMKod'], 'intezmenyCimIrsz' => $Intezmeny['cimIrsz'],
+ 'intezmenyCimHelyseg' => $Intezmeny['cimHelyseg'], 'intezmenyCimKozteruletNev' => $Intezmeny['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $Intezmeny['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $Intezmeny['cimHazszam'],
+ 'intezmenyTelefon' => $Intezmeny['telefon'], 'intezmenyHonlap' => $Intezmeny['honlap'],
+ 'intezmenyFax' => $Intezmeny['fax'], 'intezmenyEmail' => $Intezmeny['email'],
+ 'tanevJele' => substr($ADAT['szemeszter']['tanevAdat']['kezdesDt'],0,4).'/'.substr($ADAT['szemeszter']['tanevAdat']['zarasDt'],2,2),
+ 'felevi' => ($ADAT['szemeszter']['szemeszter'] == 1),
+ 'diak' => $ADAT['diakIds'], 'osztaly' => "$evf. ".nagybetus($oszt),
+ 'szovegesErtekeles' => false,
+ ),
+ 'diak' => $ADAT['diakAdat'],
+ 'targy' => $Targyak,
+ 'szempont' => array(),
+ 'minosites' => array(),
+ );
+
+ unset($Intezmeny);
+ // Az osztályzatokhoz tartozó tárgyak (lesznek szöveges értékeléshez tartozók is....)
+ for ($i = 0; $i < count ($ADAT['targyak']); $i++) {
+ $DATA['osztalyzatTargy'][ $ADAT['targyak'][$i]['targyId'] ] = $ADAT['targyak'][$i];
+ }
+ if (is_array($ADAT['jegyek']) && count($ADAT['jegyek']) > 0) foreach ($ADAT['jegyek'] as $diakId => $dJegyek) {
+ if (is_array($dJegyek) && count($dJegyek) > 0) { // Ha vanak egyáltalán jegyei...
+ foreach ($DATA['osztalyzatTargy'] as $targyId => $tAdat) { // A helyes sorrend miatt kell ezen végigmenni
+ if (is_array($dJegyek[$targyId])) { // van az adott tárgyból jegye
+ $targyNev = kisbetus($Targyak[$targyId]['targyNev']);
+ $tJegyek = $dJegyek[$targyId];
+ // Az utolsó jegyet írjuk csak ki
+ $jegy = $tJegyek[ count($tJegyek)-1 ];
+ if (in_array($targyId, $ADAT['szorgalomIds'])) {
+ $DATA['diak'][$diakId]['szorgalom'] = $KOVETELMENY['szorgalom'][ $jegy['jegy'] ]['hivatalos'];
+ $DATA['diak'][$diakId]['szorgMegjJel'] = nagybetus($jegy['megjegyzes'][0]);
+ } elseif (in_array($targyId, $ADAT['magatartasIds'])) {
+ $DATA['diak'][$diakId]['magatartas'] = $KOVETELMENY['magatartás'][ $jegy['jegy'] ]['hivatalos'];
+ $DATA['diak'][$diakId]['magMegjJel'] = nagybetus($jegy['megjegyzes'][0]);
+ } else {
+ $DATA['diak'][$diakId]['osztalyzatTargy'][$targyId] = $jegy;
+ $DATA['diak'][$diakId]['osztalyzatTargy'][$targyId]['jTipus'] = $jegy['jegyTipus'];
+ $DATA['diak'][$diakId]['osztalyzatTargy'][$targyId]['mJel'] = nagybetus($jegy['megjegyzes'][0]);
+ $DATA['diak'][$diakId]['osztalyzatTargy'][$targyId]['hivatalos'] = $KOVETELMENY[ $jegy['jegyTipus'] ][ $jegy['jegy'] ]['hivatalos'];
+ if ($jegy['megjegyzes'] == 'dicséret') { // csak dicséreteket rakunk be - év végén nincs más
+ $DATA['diak'][$diakId]['bejegyzesek'] .= str_replace('%1%', $targyNev, $bizonyitvanyJegyzetek['dicséret'])."\n\n";
+ }
+ $DATA['diak'][$diakId]['osztalyzatTargy'][$targyId]['evesOraszam'] = $ADAT['targyOraszam'][$diakId][$targyId]['evesOraszam'];
+ }
+ }
+ }
+ }
+ }
+
+ $DATA['diak'][$diakId]['feljegyzesek'] = $DATA['diak'][$diakId]['zaroZaradek'] = $DATA['diak'][$diakId]['zaradekok'] = '';
+ if (is_array($ADAT['diakZaradekok'])) {
+ foreach ($ADAT['diakZaradekok'] as $diakId => $dZaradekok) {
+ if (count($dZaradekok) > 0) {
+ foreach ($dZaradekok as $idx => $zAdat) {
+ if (in_array($zAdat['zaradekIndex'], array_values($ZaradekIndex['törzslap feljegyzés']))) {
+ $DATA['diak'][$diakId]['feljegyzesek'] .= '['.$zAdat['sorszam'].'] '.$zAdat['szoveg'].' ('.dateToString($zAdat['dt']).')';
+ } elseif (
+ in_array($zAdat['zaradekIndex'], array_values($ZaradekIndex['konferencia']))
+ || in_array($zAdat['zaradekIndex'], array_values($ZaradekIndex['konferencia bukás']))
+ ) {
+ $DATA['diak'][$diakId]['zaroZaradek'] .= '['.$zAdat['sorszam'].'] '.$zAdat['szoveg'].' ('.dateToString($zAdat['dt']).')'."\n\n";
+ } else {
+ $DATA['diak'][$diakId]['zaradekok'] .= '['.$zAdat['sorszam'].'] '.$zAdat['szoveg'].' ('.dateToString($zAdat['dt']).')'."\n\n";
+ }
+ }
+ }
+ }
+ }
+ if (is_array($ADAT['diakBejegyzesek'])) {
+ foreach ($ADAT['diakBejegyzesek'] as $diakId => $dBejegyzesek) {
+ if (is_null($DATA['diak'][$diakId]['bejegyzesek'])) $DATA['diak'][$diakId]['bejegyzesek'] = '';
+ if (count($dBejegyzesek)>0) {
+ foreach ($dBejegyzesek as $idx => $bAdat) {
+ $DATA['diak'][$diakId]['bejegyzesek'] .= $bAdat['szoveg']."\n\n";
+ }
+ }
+ }
+ }
+ if (is_array($ADAT['diakAdat'])) {
+ foreach ($ADAT['diakAdat'] as $diakId => $dAdat) { // alapértelmezések
+ if ($DATA['diak'][$diakId]['feljegyzesek'] == '') $DATA['diak'][$diakId]['feljegyzesek'] = '\ ';
+ foreach (array('igazolt','igazolatlan','kesesPercOsszeg','kesesIgazolatlan','osszesIgazolatlan',
+ 'gyakIgazolt','gyakIgazolatlan','gyakKesesPercOsszeg','gyakKesesIgazolatlan','gyakOsszesIgazolatlan',
+ 'elmIgazolt','elmIgazolatlan','elmKesesPercOsszeg','elmKesesIgazolatlan','elmOsszesIgazolatlan') as $_k) {
+ $DATA['diak'][$diakId][$_k] = 0;
+ }
+ }
+ }
+ if (is_array($ADAT['hianyzas'])) {
+ foreach ($ADAT['hianyzas'] as $diakId => $dHianyzas) {
+ $DATA['diak'][$diakId]['igazolt'] = intval($dHianyzas['igazolt']);
+ $DATA['diak'][$diakId]['igazolatlan'] = intval($dHianyzas['igazolatlan']);
+ $DATA['diak'][$diakId]['kesesPercOsszeg'] = intval($dHianyzas['kesesPercOsszeg']);
+ $DATA['diak'][$diakId]['kesesIgazolatlan'] = floor($dHianyzas['kesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['osszesIgazolatlan'] = intval($DATA['diak'][$diakId]['igazolatlan']+$DATA['diak'][$diakId]['kesesIgazolatlan']);
+
+ $DATA['diak'][$diakId]['gyakIgazolt'] = intval($dHianyzas['gyakorlatIgazolt']);
+ $DATA['diak'][$diakId]['gyakIgazolatlan'] = intval($dHianyzas['gyakorlatIgazolatlan']);
+ $DATA['diak'][$diakId]['gyakKesesPercOsszeg'] = intval($dHianyzas['gyakorlatKesesPercOsszeg']);
+ $DATA['diak'][$diakId]['gyakKesesIgazolatlan'] = floor($dHianyzas['gyakorlatKesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['gyakOsszesIgazolatlan'] = intval($DATA['diak'][$diakId]['gyakIgazolatlan']+$DATA['diak'][$diakId]['gyakKesesIgazolatlan']);
+
+ $DATA['diak'][$diakId]['elmIgazolt'] = intval($dHianyzas['elmeletIgazolt']);
+ $DATA['diak'][$diakId]['elmIgazolatlan'] = intval($dHianyzas['elmeletIgazolatlan']);
+ $DATA['diak'][$diakId]['elmKesesPercOsszeg'] = intval($dHianyzas['elmeletKesesPercOsszeg']);
+ $DATA['diak'][$diakId]['elmKesesIgazolatlan'] = floor($dHianyzas['elmeletKesesPercOsszeg']/45);
+ $DATA['diak'][$diakId]['elmOsszesIgazolatlan'] = intval($DATA['diak'][$diakId]['elmIgazolatlan']+$DATA['diak'][$diakId]['elmKesesIgazolatlan']);
+ }
+ }
+ // van egyáltalán tanév adat?
+ if (strtotime($ADAT['dt']) < strtotime($ADAT['tanevAdat']['szemeszter'][1]['zarasDt'])) $DATA['base']['negyedev'] = 'az első';
+ else $DATA['base']['negyedev'] = 'a harmadik';
+ foreach ($Ertekeles as $diakId => $E) {
+ $DATA['diak'][$diakId]['targy'] = array();
+
+ // !!! Tesztelendő !!! //
+# foreach ($E as $targyId => $eAdat) {
+ foreach ($Targyak as $targyId => $tAdat) {
+ if (is_array($E[$targyId])) {
+ $eAdat = $E[$targyId];
+ $DATA['base']['szovegesErtekeles'] = true;
+ } else {
+ continue;
+ }
+ // !!! Tesztelendő !!! //
+ if (
+ is_array($eAdat['szovegesErtekeles']['minosites'])
+ && count($eAdat['szovegesErtekeles']['minosites']) > 0
+ && $ADAT['tolDt'] <= $eAdat['szovegesErtekeles']['dt']
+ ) {
+
+ $DATA['diak'][$diakId]['targy'][$targyId] = $eAdat; // Ezt lehetne finomítani
+
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'] = $eAdat['szempontRendszer']['szempont'];
+ $targyMinositesId = $eAdat['szovegesErtekeles']['minosites'][0]; // Ha egy tárgy egy minősítés kell (az első)
+ foreach ($eAdat['szempontRendszer']['szempont'] as $szempontId => $szAdat) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['egyediMinosites'] =
+ $eAdat['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'];
+ $M = $eAdat['szempontRendszer']['minosites'][$szempontId];
+ $elsoValasztottKovetkezik = true;
+ for ($i = 0; $i < count($M); $i++) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][ $M[$i]['minositesId'] ]
+ = array('minosites' => $M[$i]['minosites']);
+ if (in_array($M[$i]['minositesId'], $eAdat['szovegesErtekeles']['minosites'])) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][$M[$i]['minositesId']]['valasztott'] = true;
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][$M[$i]['minositesId']]['elsoValasztott'] = $elsoValasztottKovetkezik;
+ $DATA['diak'][$diakId]['targy'][$targyId]['szempont'][$szempontId]['minosites'][$M[$i]['minositesId']]['tobbedikValasztott'] = (!$elsoValasztottKovetkezik);
+ $elsoValasztottKovetkezik = false;
+ if ($M[$i]['minositesId'] == $targyMinositesId) {
+ $DATA['diak'][$diakId]['targy'][$targyId]['targyMinosites'] = $M[$i]['minosites']; // Ha tárgyanként egy minősítés kell (az első)
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return template2file($templateFile, $DATA);
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/tovabbkepzesHatarozat.php b/mayor-orig/www/include/modules/naplo/nyomtatas/tovabbkepzesHatarozat.php
new file mode 100644
index 00000000..024fbe94
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/tovabbkepzesHatarozat.php
@@ -0,0 +1,60 @@
+<?php
+
+ function getTanulmanyiEgyseg($tovabbkepzesId, $tanarId, $tanev) {
+
+ $q = "select * from tovabbkepzesTanulmanyiEgyseg left join tovabbkepzes using (tovabbkepzesId) left join tovabbkepzoIntezmeny using (tovabbkepzoIntezmenyId)
+ left join tovabbkepzesTanar using (tanarId, tovabbkepzesId)
+ where tovabbkepzesId=%u and tanarId=%u and tanev=%u";
+ return db_query($q, array('debug'=>false,'fv'=>'getTanulmanyiEgyseg','modul'=>'naplo_intezmeny','result'=>'record','values'=>array($tovabbkepzesId, $tanarId, $tanev)));
+
+ }
+
+ function tovabbkepzesNyomtatvanyKeszites($ADAT) {
+
+ global $Honapok;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ $tmplFile = 'tovabbkepzesHatarozat';
+
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ $Intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+ list($ev, $ho, $nap) = explode('-', $ADAT['tanulmanyiEgyseg']['igDt']);
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'), 'nyomtatasDatumStr' => date('Y. m. d.'),
+ 'datumEv' => $ev, 'datumHonap' => $ho, 'datumNap' => $nap, 'hoNev' => kisbetus($Honapok[$ho-1]),
+ 'intezmenyNev' => $Intezmeny['nev'], 'intezmenyOMKod' => $Intezmeny['OMKod'], 'intezmenyCimIrsz' => $Intezmeny['cimIrsz'],
+ 'intezmenyCimHelyseg' => $Intezmeny['cimHelyseg'], 'intezmenyCimKozteruletNev' => $Intezmeny['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $Intezmeny['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $Intezmeny['cimHazszam'],
+ 'intezmenyTelefon' => $Intezmeny['telefon'], 'intezmenyHonlap' => $Intezmeny['honlap'],
+ 'intezmenyFax' => $Intezmeny['fax'], 'intezmenyEmail' => $Intezmeny['email'],
+
+ 'tanev'=>$ADAT['tanulmanyiEgyseg']['tanev'], 'reszosszeg'=>$ADAT['tanulmanyiEgyseg']['reszosszeg'], 'tamogatas'=>$ADAT['tanulmanyiEgyseg']['tamogatas'],
+ 'tovabbkepzesStatusz'=>$ADAT['tanulmanyiEgyseg']['tovabbkepzesStatusz'], 'megjegyzes'=>$ADAT['tanulmanyiEgyseg']['megjegyzes'], 'tovabbkepzesNev'=>$ADAT['tanulmanyiEgyseg']['tovabbkepzesNev'],
+ 'oraszam'=>$ADAT['tanulmanyiEgyseg']['oraszam'], 'akkreditalt'=>$ADAT['tanulmanyiEgyseg']['akkreditalt'], 'tovIntRovidNev'=>$ADAT['tanulmanyiEgyseg']['intezmenyRovidNev'],
+ 'tovIntNev'=>$ADAT['tanulmanyiEgyseg']['intezmenyNev'], 'tovIntCim'=>$ADAT['tanulmanyiEgyseg']['intezmenyCim'],
+ 'tolDt'=>str_replace('-','. ',$ADAT['tanulmanyiEgyseg']['tolDt']).'.', 'igDt'=>str_replace('-','. ',$ADAT['tanulmanyiEgyseg']['igDt']).'.',
+
+ 'tanarNev' => $ADAT['tanarAdat']['tanarNev'], 'szuletesiHely' => $ADAT['tanarAdat']['szuletesiHely'], 'szuletesiIdo' => $ADAT['tanarAdat']['szuletesiIdo'],
+ 'hetiMunkaora' => $ADAT['tanarAdat']['hetiMunkaora'], 'statusz' => $ADAT['tanarAdat']['statusz'], 'hetiKotelezoOraszam' => $ADAT['tanarAdat']['hetiKotelezoOraszam'],
+ 'besorolas' => $ADAT['tanarAdat']['besorolas'],
+ ),
+
+ );
+
+//dump($ADAT);
+//dump($DATA);
+//die();
+ return template2file($templateFile, $DATA);
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/nyomtatas/zaradekok.php b/mayor-orig/www/include/modules/naplo/nyomtatas/zaradekok.php
new file mode 100644
index 00000000..50501765
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/nyomtatas/zaradekok.php
@@ -0,0 +1,63 @@
+<?php
+
+ function pdfZaradekok($ADAT) {
+
+ global $Honapok;
+
+ // A sablonfile meghatározása
+ define('__TEMPLATE_DIR', _MAYOR_DIR.'/print/module-naplo/templates');
+ $tmplFile = 'zaradekok';
+ if (file_exists(__TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/'.__INTEZMENY.'/'.$tmplFile.'.tmpl';
+ } elseif (file_exists(__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl')) {
+ $templateFile = __TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.__TEMPLATE_DIR.'/default/'.$tmplFile.'.tmpl';
+ return false;
+ }
+
+ list($evf, $oszt) = explode('.', $ADAT['osztaly']['osztalyJel']);
+ list($zEv, $zHo, $zNap) = explode('-', $ADAT['tanevAdat']['zarasDt']);
+
+ $DATA = array(
+ 'file' => $ADAT['file'],
+ 'base' => array('nyomtatasDt' => date('Y.m.d'),
+ 'intezmenyNev' => $ADAT['intezmeny']['nev'], 'intezmenyCimIrsz' => $ADAT['intezmeny']['cimIrsz'],
+ 'intezmenyCimHelyseg' => $ADAT['intezmeny']['cimHelyseg'], 'intezmenyCimKozteruletNev' => $ADAT['intezmeny']['cimKozteruletNev'],
+ 'intezmenyCimKozteruletJelleg' => $ADAT['intezmeny']['cimKozteruletJelleg'], 'intezmenyCimHazszam' => $ADAT['intezmeny']['cimHazszam'],
+ 'intezmenyTelefon' => $ADAT['intezmeny']['telefon'], 'intezmenyHonlap' => $ADAT['intezmeny']['honlap'],
+ 'intezmenyFax' => $ADAT['intezmeny']['fax'], 'intezmenyEmail' => $ADAT['intezmeny']['email'],
+ 'osztalyJele' => $evf.'/'.nagybetus($oszt), 'tanevJele' => $ADAT['tanev'].'/'.$zEv,
+ ),
+ );
+
+ for ($i = 0; $i < count($ADAT['diakIds']); $i++)
+ $DATA['diak'][ $ADAT['diakIds'][$i] ] = array('diakNev' => $ADAT['diak'][ $ADAT['diakIds'][$i] ]['diakNev']);
+ foreach ($ADAT['zaradek'] as $diakId => $dZaradek) {
+ for ($i = 0; $i < count($dZaradek); $i++) {
+ $DATA['diak'][$diakId]['zaradek'][ $dZaradek[$i]['zaradekId'] ] = $dZaradek[$i]['zaradekId'];
+ $DATA['zaradek'][ $dZaradek[$i]['zaradekId'] ] = $dZaradek[$i];
+ }
+ }
+ foreach ($ADAT['bejegyzes'] as $diakId => $dBejegyzes) {
+ for ($i = 0; $i < count($dBejegyzes); $i++) {
+ $DATA['diak'][$diakId]['bejegyzes'][ $dBejegyzes[$i]['bejegyzesId'] ] = $dBejegyzes[$i]['bejegyzesId'];
+ $DATA['bejegyzes'][ $dBejegyzes[$i]['bejegyzesId'] ] = $dBejegyzes[$i];
+ // A "bejegyzes" név már foglalt ezért át kell nevezni a bejegyzesTipusNev-et...
+ $DATA['bejegyzes'][ $dBejegyzes[$i]['bejegyzesId'] ]['szovFokozat'] = $dBejegyzes[$i]['bejegyzesTipusNev'];
+ }
+ }
+ $DATA['base']['diak'] = array();
+ for ($i = 0; $i < count($ADAT['diakIds']); $i++) {
+ if (
+ is_array($DATA['diak'][ $ADAT['diakIds'][$i] ]['bejegyzes'])
+ || is_array($DATA['diak'][ $ADAT['diakIds'][$i] ]['zaradek'])
+ ) $DATA['base']['diak'][] = $ADAT['diakIds'][$i];
+ }
+
+ return template2file($templateFile, $DATA);
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/ascExport.php b/mayor-orig/www/include/modules/naplo/orarend/ascExport.php
new file mode 100644
index 00000000..a1affa40
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/ascExport.php
@@ -0,0 +1,437 @@
+<?php
+
+//
+// A termek kezelése még GÁÁÁÁZ - szinte nulla...
+//
+ // groupsubject ~ tankörCsoport (de náluk osztályonként) - division ~ tankorBlokk
+
+ function ascExport($ADAT) {
+
+
+ $return = true;
+ $tanev = $ADAT['tanev'];
+ initTolIgDt($tanev, $ADAT['dt'], $ADAT['dt']);
+
+ $file = _DOWNLOADDIR.'/private/orarend/ascExport.xml';
+ $fp = fopen($file, 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open_failure:'.$file;
+ return false;
+ }
+
+ $Tanarok = getTanarok(array('tanev' => $tanev));
+ $Osztalyok = getOsztalyok($tanev);
+ // Nem tudható, hogy mely termekben lesz óra - ez intézménytől függő - exportáljuk mind...
+ $Termek = getTermek(array('tipus'=>
+ array()
+// array('tanterem','szaktanterem','osztályterem','labor','gépterem','tornaterem','tornaszoba','fejlesztőszoba','tanműhely','előadó','könyvtár','díszterem','egyéb')
+ )); $teremIds = array();
+ for ($i = 0; $i < count($Termek); $i++) $teremIds[] = $Termek[$i]['teremId'];
+ $Targyak = getTargyak();
+ $Diakok = getDiakok(array('tanev' => $tanev)); $diakIds = array();
+ for ($i = 0; $i < count($Diakok); $i++) $diakIds[] = $Diakok[$i]['diakId'];
+ $diakokOsztalyai = getDiakokOsztalyai($diakIds, array('tanev' => $tanev, 'tolDt' => $ADAT['dt'], 'igDt' => $ADAT['dt']));
+ foreach ($ADAT['bontas'] as $bontasId => $bontas) {
+ $bontasTomb = explode('+',$bontas);
+ for ($i = 0; $i < count($bontasTomb); $i++) {
+ $Bontas[$bontasId][ $bontasTomb[$i] ]++;
+ }
+ }
+ if (isset($ADAT['exportalandoHet'])) $Orarend = getOrarendByDt($ADAT['dt'], array($ADAT['exportalandoHet']), $ADAT['tanev']);
+ else $Orarend = array();
+ // Tárgyak bontása
+ if ($ADAT['targyBontas']) {
+ if (defined('__ASC_BONTANDO_TARGYAK')) $bontandoTargyak = explode(',', __ASC_BONTANDO_TARGYAK);
+ }
+
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorok'][$i]['osztaly'] = getTankorOsztalyaiByTanev($tankorId, $tanev, array('tagokAlapjan' => true, 'result' => 'id'));
+ $ADAT['tankorok'][$i]['tanar'] = getTankorTanaraiByInterval($tankorId, array('tanev' => $tanev, 'result' => 'csakId'));
+ $tmpDiakok = getTankorDiakjaiByInterval($tankorId, $tanev);
+ $ADAT['tankorok'][$i]['diakIds'] = $tmpDiakok['idk'];
+ // Tárgyak bontása
+ if ($ADAT['targyBontas']) {
+ $targyId = $ADAT['tankorok'][$i]['tankorAdat'][$tankorId][0]['targyId'];
+ if (!is_array($bontandoTargyak) || in_array($targyId, $bontandoTargyak)) {
+ $tankorNev = $ADAT['tankorok'][$i]['tankorAdat'][$tankorId][0]['tankorNev'];
+ $csoportJel = substr($tankorNev, strrpos($tankorNev, ' ')+1);
+ if (!is_array($ADAT['alTargyak'][$targyId])) $ADAT['alTargyak'][$targyId] = array($csoportJel);
+ elseif (!in_array($csoportJel, $ADAT['alTargyak'][$targyId])) $ADAT['alTargyak'][$targyId][] = $csoportJel;
+ $ADAT['tankorok'][$i]['tankorAdat'][$tankorId][0]['targyId'] = $targyId.':'.$csoportJel;
+ }
+ }
+
+ }
+
+
+ // Blokkok tanárai / diákjai / osztályai - és a blokk jelenlegi óráinak meghatározása
+ $ADAT['blokkOra'] = array();
+ $ADAT['tankorBlokkOra'] = array();
+ if (is_array($ADAT['tankorBlokk']['exportOraszam']))
+ foreach ($ADAT['tankorBlokk']['exportOraszam'] as $bId => $oraszam) if ($oraszam > 0) { // blokkonként
+
+ $ADAT['blokkTanarok'][$bId] = $ADAT['blokkDiakok'][$bId] = $ADAT['blokkOsztalyok'][$bId] = array();
+ for ($i = 0; $i < count($ADAT['tankorBlokk']['idk'][$bId]); $i++) { // az érintett tankörökön végigmenve
+ $tankorId = $ADAT['tankorBlokk']['idk'][$bId][$i];
+ $TA = $ADAT['tankorok'][ $ADAT['tankorIndex'][$tankorId] ];
+ // tanárok
+ for ($j = 0; $j < count($TA['tanar']); $j++) // elvileg nem lehet ütközés, hiszen blokk!!
+ if (!in_array($TA['tanar'][$j], $ADAT['blokkTanarok'][$bId])) {
+ $ADAT['blokkTanarok'][$bId][] = $TA['tanar'][$j];
+ } else {
+ $_SESSION['alert'][] = 'message:utkozes:blokk='.$bId.';tanarId='.$TA['tanar'][$j];
+ $return = false;
+ }
+ for ($j = 0; $j < count($TA['diakIds']); $j++) // elvileg nem lehet ütközés, hiszen blokk!!
+ if (!in_array($TA['diakIds'][$j], $ADAT['blokkDiakok'][$bId])) {
+ $ADAT['blokkDiakok'][$bId][] = $TA['diakIds'][$j];
+ } else {
+ $_SESSION['alert'][] = 'message:utkozes:blokk='.$bId.';diakId='.$TA['diakIds'][$j];
+ $return = false;
+ }
+ for ($j = 0; $j < count($TA['osztaly']); $j++) // Itt lehet ütközés
+ if (!in_array($TA['osztaly'][$j], $ADAT['blokkOsztalyok'][$bId])) $ADAT['blokkOsztalyok'][$bId][] = $TA['osztaly'][$j];
+ }
+
+ // A blokk jelenlegi óráinak lekérdezése
+ if (isset($ADAT['exportalandoHet'])) {
+ $q = "SELECT het, nap, ora
+ FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId, osztalyJel, targyJel)
+ WHERE tolDt<='%s' AND '%s'<=igDt
+ AND het=%u
+ AND tankorId IN (".implode(',', array_fill(0, count($ADAT['tankorBlokk']['idk'][$bId]), '%u')).")
+ GROUP BY het, nap, ora HAVING COUNT(*)=".count($ADAT['tankorBlokk']['idk'][$bId]);
+ $v = mayor_array_join(array($ADAT['tanevDb'], $ADAT['tanevDb'], $ADAT['dt'], $ADAT['dt'], $ADAT['exportalandoHet']), $ADAT['tankorBlokk']['idk'][$bId]);
+ $ret = db_query($q, array('fv' => 'blokkOrai', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ if ($oraszam > count($ret)) {
+ $_SESSION['alert'][] = 'message:wrong_data:A beállított blokk óraszámnál kevesebb van az órarendben:'.$bId.':'.$oraszam.'/'.count($ret);
+// $return = false;
+ } else {
+ $db = $i = 0;
+ while ($i < count($ret) && $db < $oraszam) {
+ // Ellenőrizzük, hogy az összes tankörnek szabad-e még az adott órája
+ $szabad = true;
+ for ($j = 0; $j < count($ADAT['tankorBlokk']['idk'][$bId]); $j++) {
+ $tankorId = $ADAT['tankorBlokk']['idk'][$bId][$j];
+ if ($ADAT['tankorBlokkOra'][$tankorId][ $ret[$i]['het'] ][ $ret[$i]['nap'] ][ $ret[$i]['ora'] ]) {
+ $szabad = false;
+ break;
+ }
+ }
+ if ($szabad) {
+ // Lekérdezzük az érintett termeket
+ $q = "SELECT DISTINCT teremId FROM `%s`.orarendiOra
+ LEFT JOIN `%s`.orarendiOraTankor USING (tanarId, osztalyJel, targyJel)
+ WHERE tolDt<='%s' AND '%s'<=igDt AND het=%u
+ AND tankorId IN (".implode(',', array_fill(0, count($ADAT['tankorBlokk']['idk'][$bId]), '%u')).")
+ AND het=%u AND nap=%u AND ora=%u";
+ $v = mayor_array_join(
+ array($ADAT['tanevDb'], $ADAT['tanevDb'], $ADAT['dt'], $ADAT['dt'], $ADAT['exportalandoHet']),
+ $ADAT['tankorBlokk']['idk'][$bId],
+ array($ret[$i]['het'], $ret[$i]['nap'], $ret[$i]['ora'])
+ );
+ $ret[$i]['teremIds'] = db_query($q, array('fv' => 'blokkTermei', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v));
+ // Ha szabad, akkor a blokk számára lefoglaljuk
+ $ADAT['blokkOra'][$bId][] = $ret[$i];
+
+ // Ha szabad, akkor minden tankör számára lefoglaljuk
+ for ($j = 0; $j < count($ADAT['tankorBlokk']['idk'][$bId]); $j++) {
+ $tankorId = $ADAT['tankorBlokk']['idk'][$bId][$j];
+ $ADAT['tankorBlokkOra'][$tankorId][ $ret[$i]['het'] ][ $ret[$i]['nap'] ][ $ret[$i]['ora'] ] = true;
+ }
+ $db++;
+ }
+ $i++;
+ }
+ if ($db < $oraszam) {
+ $_SESSION['alert'][] = 'message:wrong_data:Az órarendben csak'.$db.' órát sikerült lefoglalni ('.$oraszam.' helyett) - blokkId='.$bId;
+// $return = false;
+ }
+ }
+ }
+ }
+
+ $xml = '<timetable importtype="database" options="idprefix:MaYoR,daynumbering1">'."\r\n";
+
+
+ // Tanárok
+ $xml .= ' <teachers options="import:primarydb,silent" columns="id,name,short">'."\r\n";
+ for ($i = 0; $i < count($Tanarok); $i++) {
+ $xml .= ' <teacher id="'.$Tanarok[$i]['tanarId'].'" name="'.$Tanarok[$i]['tanarNev'].'" short="'.$short.'"/>'."\r\n";
+ }
+ $xml .= ' </teachers>'."\r\n";
+ // Osztályok
+ $xml .= ' <classes options="import:primarydb,silent" columns="id,name">'."\r\n";
+ for ($i = 0; $i < count($Osztalyok); $i++) {
+ $xml .= ' <class id="'.$Osztalyok[$i]['osztalyId'].'" name="'.$Osztalyok[$i]['osztalyJel'].'" />'."\r\n";
+ }
+ $xml .= ' </classes>'."\r\n";
+ if ($ADAT['szeminariumkent']) {
+ // Diákok
+ $xml .= ' <students options="import:primarydb,silent" columns="id,name,classid">'."\r\n";
+ for ($i = 0; $i < count($Diakok); $i++) {
+ $xml .= ' <student id="'.$Diakok[$i]['diakId'].'" name="'
+ .$Diakok[$i]['diakNev'].'" classid="'.$diakokOsztalyai[ $Diakok[$i]['diakId'] ][0].'"/>'."\r\n";
+ }
+ $xml .= ' </students>'."\r\n";
+ $studentidsStr = ',studentids';
+ }
+ // Tárgyak
+ $xml .= ' <subjects options="import:primarydb,silent" columns="id,name,short">'."\r\n";
+ if (is_array($ADAT['tankorBlokk']['exportOraszam']))
+ foreach ($ADAT['tankorBlokk']['exportOraszam'] as $bId => $oraszam) { // blokkok - mint tárgyak
+ if ($oraszam > 0) $xml .= ' <subject id="b'.$bId.'" name="'.$ADAT['tankorBlokk']['blokkNevek'][$bId].'" short="" />'."\r\n";
+ }
+ for ($i = 0; $i < count($Targyak); $i++) { // igazi tárgyak
+ $xml .= ' <subject id="'.$Targyak[$i]['targyId'].'" name="'.$Targyak[$i]['targyNev'].'" short="" />'."\r\n";
+ // Tárgyak bontása
+ if (is_array($ADAT['alTargyak'][ $Targyak[$i]['targyId'] ])) {
+ foreach ($ADAT['alTargyak'][ $Targyak[$i]['targyId'] ] as $index => $alTargyId) {
+ $xml .= ' <subject id="'.$Targyak[$i]['targyId'].':'.$alTargyId.'" name="'.$Targyak[$i]['targyNev'].' '.$alTargyId.'" short="" />'."\r\n";
+ }
+ }
+ }
+ $xml .= ' </subjects>'."\r\n";
+ // Termek
+ $xml .= ' <classrooms options="import:primarydb,silent" columns="id,name,short">'."\r\n";
+ for ($i = 0; $i < count($Termek); $i++) {
+ $xml .= ' <classroom id="'.$Termek[$i]['teremId'].'" name="'.$Termek[$i]['leiras'].'" short="'.$Termek[$i]['teremId'].'"/>'."\r\n";
+ }
+ $xml .= ' </classrooms>'."\r\n";
+ // Órák
+ $xml .= ' <lessons options="import:primarydb,silent" columns="id,name,subjectid,classids,teacherids,periodsperweek,periodspercard,classroomids,weeks,'.$studentidsStr.'">'."\r\n";
+ // blokk --> lesson
+ if (is_array($ADAT['tankorBlokk']['exportOraszam'])) foreach ($ADAT['tankorBlokk']['exportOraszam'] as $bId => $oraszam) if ($oraszam > 0) {
+ $tankorIds = $ADAT['tankorBlokk']['idk'][$bId];
+ $bNev = $ADAT['tankorBlokk']['blokkNevek'][$bId];
+ $subjectid = 'b'.$bId;
+ if (
+ !isset($ADAT['exportalandoHet']) // Csak akkor exportálunk bontott órákat, ha meglevő órarendet nem
+ && is_array($Bontas['b-'.$bId]) && count($Bontas['b-'.$bId]) > 0
+ ) {
+ foreach ($Bontas['b-'.$bId] as $periodsPerCard => $db) {
+ $xml .= ' <lesson id="b'.$periodsPerCard.'-'.implode('_', $tankorIds).'" name="'.$bNev.' ['.$periodsPerCard.']" subjectid="'.
+ 'b'.$bId.'" classids="'.implode(',', $ADAT['blokkOsztalyok'][$bId]).
+ '" teacherids="'.implode(',', $ADAT['blokkTanarok'][$bId]).
+ '" periodsperweek="'.($periodsPerCard*$db).
+ '" periodspercard="'.$periodsPerCard.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',', $ADAT['blokkDiakok'][$bId]);
+ $xml .= '" />'."\r\n";
+ }
+ } elseif ($oraszam > ($egeszoraszam = floor($oraszam))) {
+ if ($egeszoraszam > 0) {
+ // Ha tört szám az export óraszám, akkor két lessont gyártunk: egyet az egész óraszámhoz, egyet a törthöz...
+ $xml .= ' <lesson id="b1-'.implode('_', $tankorIds).'" name="'.$bNev.'-e" subjectid="'.
+ 'b'.$bId.'" classids="'.implode(',', $ADAT['blokkOsztalyok'][$bId]).
+ '" teacherids="'.implode(',', $ADAT['blokkTanarok'][$bId]).
+ '" periodsperweek="'.$egeszoraszam.
+ '" periodspercard="1'.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',', $ADAT['blokkDiakok'][$bId]);
+ $xml .= '" />'."\r\n";
+ }
+ // tört
+ $xml .= ' <lesson id="b0-'.implode('_', $tankorIds).'" name="'.$bNev.'-t" subjectid="'.
+ 'b'.$bId.'" classids="'.implode(',', $ADAT['blokkOsztalyok'][$bId]).
+ '" teacherids="'.implode(',', $ADAT['blokkTanarok'][$bId]).
+ '" periodsperweek="1'.
+ '" periodspercard="1'.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="10';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',', $ADAT['blokkDiakok'][$bId]);
+ $xml .= '" />'."\r\n";
+
+ } else {
+ $xml .= ' <lesson id="b-'.implode('_', $tankorIds).'" name="'.$bNev.'" subjectid="'.
+ 'b'.$bId.'" classids="'.implode(',', $ADAT['blokkOsztalyok'][$bId]).
+ '" teacherids="'.implode(',', $ADAT['blokkTanarok'][$bId]).
+ '" periodsperweek="'.ceil($oraszam).
+ '" periodspercard="1'.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',', $ADAT['blokkDiakok'][$bId]);
+ $xml .= '" />'."\r\n";
+ }
+ }
+ // tankor --> lesson
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $TA = $ADAT['tankorok'][$i];
+ $tankorId = $TA['tankorId'];
+ if (count($TA['diakIds']) >= 0) {
+ if (
+ !isset($ADAT['exportalandoHet']) // Csak akkor exportálunk bontott órákat, ha meglevő órarendet nem
+ && is_array($Bontas['t-'.$tankorId]) && count($Bontas['t-'.$tankorId]) > 0
+ ) {
+ foreach ($Bontas['t-'.$tankorId] as $periodsPerCard => $db) {
+ $xml .= ' <lesson id="t'.$periodsPerCard.'-'.$tankorId.'" name="'.$TA['tankorNev'].' ['.$periodsPerCard.']" subjectid="'.
+ $TA['tankorAdat'][$tankorId][0]['targyId'].'" classids="'.implode(',', $TA['osztaly']).
+ '" teacherids="'.$TA['tanar'][0].
+ '" periodsperweek="'.($db*$periodsPerCard).
+ '" periodspercard="'.$periodsPerCard.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',',$TA['diakIds']);
+ $xml .= '" />'."\r\n";
+ }
+ } elseif ($TA['hetiOraszam'] > ($egeszoraszam = floor($TA['hetiOraszam']))) {
+ if ($egeszoraszam > 0) {
+ // Ha tört szám az export óraszám, akkor két lessont gyártunk: egyet az egész óraszámhoz, egyet a törthöz...
+ $xml .= ' <lesson id="t1-'.$tankorId.'" name="'.$TA['tankorNev'].'" subjectid="'.
+ $TA['tankorAdat'][$tankorId][0]['targyId'].'" classids="'.implode(',', $TA['osztaly']).
+ '" teacherids="'.$TA['tanar'][0].
+ '" periodsperweek="'.$egeszoraszam.
+ '" periodspercard="1'.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',',$TA['diakIds']);
+ $xml .= '" />'."\r\n";
+ }
+ $xml .= ' <lesson id="t0-'.$tankorId.'" name="'.$TA['tankorNev'].'" subjectid="'.
+ $TA['tankorAdat'][$tankorId][0]['targyId'].'" classids="'.implode(',', $TA['osztaly']).
+ '" teacherids="'.$TA['tanar'][0].
+ '" periodsperweek="1'.
+ '" periodspercard="1'.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="10';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',',$TA['diakIds']);
+ $xml .= '" />'."\r\n";
+
+ } else {
+ $xml .= ' <lesson id="t-'.$tankorId.'" name="'.$TA['tankorNev'].'" subjectid="'.
+ $TA['tankorAdat'][$tankorId][0]['targyId'].'" classids="'.implode(',', $TA['osztaly']).
+ '" teacherids="'.$TA['tanar'][0].
+ '" periodsperweek="'.ceil($TA['hetiOraszam']).
+ '" periodspercard="1'.
+ '" classroomids="'.implode(',',$teremIds).
+ '" weeks="';
+ if ($ADAT['szeminariumkent']) $xml .= '" studentids="'.implode(',',$TA['diakIds']);
+ $xml .= '" />'."\r\n";
+ }
+ }
+ }
+ $xml .= ' </lessons>'."\r\n";
+
+ if (isset($ADAT['exportalandoHet'])) {
+ // jelenleg betöltött órák
+ $xml .= ' <cards options="import:primarydb,silent,canadd,canupdate,canremove" columns="day,period,classroomids,teacherids,subjectids,classids,lessonid,durationperiods">'."\r\n";
+ for ($i = 0; $i < count($Orarend); $i++) {
+ $tankorId = $Orarend[$i]['tankorId'];
+ if ($ADAT['tankorBlokkOra'][$tankorId][ $Orarend[$i]['het'] ][ $Orarend[$i]['nap'] ][ $Orarend[$i]['ora'] ]!==true) {
+ $lessonId = 't-'.$tankorId;
+ $TA = $ADAT['tankorok'][ $ADAT['tankorIndex'][$tankorId] ];
+ if (is_array($TA)) // A szakkörök például nincsenek benne alap esetben...
+ $xml .= ' <card day="'.$Orarend[$i]['nap']
+ .'" period="'.$Orarend[$i]['ora']
+ .'" classroomids="'.$Orarend[$i]['teremId']
+ .'" teacherids="'.$TA['tanar'][0]
+ .'" subjectids="'.$TA['tankorAdat'][$tankorId][0]['targyId']
+ .'" classids="'.implode(',', $TA['osztaly'])
+ .'" lessonid="'.$lessonId
+ .'" durationperiods="1"/>'."\r\n";
+ }
+ }
+ // A blokk órák kiírása
+ if (is_array($ADAT['blokkOra'])) foreach ($ADAT['blokkOra'] as $bId => $Orak) {
+ $tankorIds = $ADAT['tankorBlokk']['idk'][$bId];
+ $lessonId = 'b-'.implode('_', $tankorIds);
+ for ($i = 0; $i < count($Orak); $i++) {
+ $xml .= ' <card day="'.$Orak[$i]['nap']
+ .'" period="'.$Orak[$i]['ora']
+ .'" classroomids="'.implode(',',$Orak[$i]['teremIds'])
+ .'" teacherids="'.implode(',', $ADAT['blokkTanarok'][$bId])
+ .'" subjectids="b'.$bId
+ .'" classids="'.implode(',', $ADAT['blokkOsztalyok'][$bId])
+ .'" lessonid="'.$lessonId
+ .'" durationperiods="1"/>'."\r\n";
+ }
+ }
+ $xml .= ' </cards>'."\r\n";
+ }
+
+ $xml .= '</timetable>'."\r\n";
+
+ fputs($fp, mb_convert_encoding($xml, 'ISO-8859-2', 'UTF-8'));
+ fclose($fp);
+
+ return $return;
+
+ }
+
+ function blokkOraszamRogzites($blokkAdat, $tanevDb) {
+
+ if (is_array($blokkAdat)) foreach ($blokkAdat as $bId => $bOraszam) {
+ $q = "UPDATE `%s`.blokk SET exportOraszam = %f WHERE blokkId = %u";
+ $v = array($tanevDb, $bOraszam, $bId);
+ $r = db_query($q, array('fv' => 'blokkOraszamRogzites', 'modul' => 'naplo', 'values' => $v));
+ }
+
+ }
+
+ function ascBontasLekerdezes($tanevDb) {
+
+ $v = array($tanevDb);
+ // A szükséges tábla létrehozása - ha netán nem létezne
+ $q = "CREATE TABLE IF NOT EXISTS `%s`._ascOraBontas (
+ tipus ENUM('blokk','tankör') NOT NULL DEFAULT 'tankör',
+ id INT UNSIGNED NOT NULL,
+ bontas VARCHAR(32),
+ PRIMARY KEY (tipus, id)
+ ) ENGINE InnoDb";
+ db_query($q, array('fv' => 'ascBontasLekerdezes/createTable', 'modul' => 'naplo', 'values' => $v));
+
+ $return = array();
+ $q = "SELECT CONCAT(LEFT(tipus,1),'-',id) AS bontasId,bontas FROM `%s`._ascOraBontas";
+ $ret = db_query($q, array('fv' => 'bontás lekérdezés', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'bontasId', 'values' => $v));
+ if ($ret !== false) foreach ($ret as $bontasId => $bAdat) $return[$bontasId] = $bAdat['bontas'];
+ return $return;
+ }
+
+ function ascBontasModositas($ADAT) {
+
+
+ $tipusStr = array('t' => 'tankör', 'b' => 'blokk');
+
+ // Törlések elvégzése ($ADAT['bontas'] tömb)
+ if (is_array($_POST['torlendoBontas']) && count($_POST['torlendoBontas']) > 0) {
+ for ($i = 0; $i < count($_POST['torlendoBontas']); $i++) {
+ $bontasId = readVariable($_POST['torlendoBontas'][$i], 'emptystringnull', null, array_keys($ADAT['bontas']));
+ if (isset($bontasId)) unset($ADAT['bontas'][$bontasId]);
+ }
+ }
+ // Új bontás felvétele
+ $bontasId = readVariable($_POST['bontasId'], 'emptystringnull', null);
+ if (isset($bontasId)) {
+ list($tipus, $id) = explode('-', $bontasId);
+ if ($tipus == 't') $oraszam = $ADAT['tankorok'][ $ADAT['tankorIndex'][$id] ]['hetiOraszam'];
+ elseif ($tipus == 'b') $oraszam = $ADAT['tankorBlokk']['exportOraszam'][$id];
+ $oraBontas = readVariable($_POST['oraBontas'], 'emptystringnull', '1');
+ eval('$bontottOraszam='.$oraBontas.';');
+ if ($bontottOraszam > $oraszam) {
+ $_SESSION['alert'][] = 'message:wrong_data:'."$tipus-$id - óraszám=$oraszam < $oraBontas=bontott óraszám";
+ } else {
+ if ($bontottOraszam < $oraszam) $oraBontas .= str_repeat('+1', $oraszam-$bontottOraszam);
+ $ADAT['bontas']["$tipus-$id"] = $oraBontas;
+ }
+ }
+
+ // A bontások kiírása
+ $q = "DELETE FROM `%s`._ascOraBontas";
+ db_query($q, array('fv' => 'ascExport/bontásokTörlése', 'modul' => 'naplo', 'values' => array($ADAT['tanevDb'])));
+ $v = array($ADAT['tanevDb']); $V = array();
+ foreach ($ADAT['bontas'] as $bontasId => $bontas) {
+ list($tipus, $id) = explode('-', $bontasId);
+ $V[] = "('%s', %u, '%s')";
+ array_push($v, $tipusStr[$tipus], $id, $bontas);
+ }
+ if (count($V) > 0) {
+ $q = "INSERT INTO `%s`._ascOraBontas (tipus, id, bontas) VALUES ".implode(',', $V);
+ db_query($q, array('fv' => 'ascExport/bontásokRögzítése', 'modul' => 'naplo', 'values' => $v));
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-Microsoft Excel XML.php b/mayor-orig/www/include/modules/naplo/orarend/convert-Microsoft Excel XML.php
new file mode 100644
index 00000000..bcadf3fb
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-Microsoft Excel XML.php
@@ -0,0 +1,147 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $fileName nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ ----------------------------------------
+
+ Az aSc Timetables Excel exportjának feldolgozása - XML mentés után!
+
+ */
+
+ function loadFileMsXML($ADAT) {
+
+ global $OrarendiOra;
+
+ $OrarendiOra = $TEREM = $TANAR = array();
+ $return = true;
+
+ // A tanarNev --> tanarId konverzióhoz lekérdezzük a tanárok adatait.
+ require_once('include/modules/naplo/share/tanar.php');
+ $Tanarok = getTanarok(array('tanev' => __TANEV, 'result' => 'assoc'));
+ foreach ($Tanarok as $tanarId => $tanarAdat) $Tanar[ $tanarAdat['tanarNev'] ] = $tanarId;
+ // A terem --> teremId konverzióhoz lekérdezzük a terem adatokat
+ require_once('include/modules/naplo/share/terem.php');
+ $Termek = getTermek();
+ for ($i = 0; $i < count($Termek); $i++) {
+ $TeremByLeiras[ $Termek[$i]['leiras'] ] = $Termek[$i]['teremId'];
+ $TeremById[ $Termek[$i]['teremId'] ] = $Termek[$i]['teremId'];
+ }
+
+ $dom = DOMDocument::load( $ADAT['fileName'] );
+ if (!$dom) {
+ $_SESSION['alert'][] = 'message:file:'.$ADAT['fileName'];
+ return false;
+ }
+
+ $worksheets = $dom->getElementsByTagName( 'Worksheet' );
+ foreach ($worksheets as $worksheet) {
+ $TMP = array();
+ $name = $worksheet->getAttribute( 'ss:Name' );
+ $rows = $worksheet->getElementsByTagName( 'Row' );
+ $r = 0;
+ foreach ($rows as $row) {
+ $s = 0;
+ $cells = $row->getElementsByTagName( 'Cell' );
+ foreach( $cells as $cell ) {
+ // Összevont cellák esetén a cellatartalmat ismételjük
+ $span = $cell->getAttribute( 'ss:MergeAcross' );
+ for ($i = 0; $i <= $span; $i++) {
+ $TMP[$r][$s] = $cell->nodeValue;
+ $s++;
+ }
+ }
+ $r++;
+ }
+ if (strstr($name, 'sszesített terem')) $TEREM = $TMP;
+ elseif (strstr($name, 'anárok összesített')) $TANAR = $TMP;
+ }
+// var_dump($TEREM);
+
+
+ // Az első sor a napok neveit tartalmazza
+ $Napok = $TANAR[0];
+ for ($i = 0; $i < count($Napok); $i++)
+ if ($Napok[$i] == 'Hétfő') $Napok[$i] = 1;
+ elseif ($Napok[$i] == 'Kedd') $Napok[$i] = 2;
+ elseif ($Napok[$i] == 'Szerda') $Napok[$i] = 3;
+ elseif ($Napok[$i] == 'Csütörtök') $Napok[$i] = 4;
+ elseif ($Napok[$i] == 'Péntek') $Napok[$i] = 5;
+ elseif ($Napok[$i] == 'Szombat') $Napok[$i] = 6;
+ elseif ($Napok[$i] == 'Vasárnap') $Napok[$i] = 7;
+ // A második sor az adott napon belüli óraszámot adja
+ $oraszamok = $TANAR[1];
+
+ // A termeket tartalmazó munkalap feldolgozása
+ $s = 2;
+ while ($s < count($TEREM)) {
+
+ // Két sor egy terem órarendjét tartalmazza
+ $S1 = $TEREM[$s];
+ $S2 = $TEREM[$s+1];
+ $s += 2;
+ // Az első sor első mezője a terem neve
+ $terem = $S1[0];
+ // A második cellátol jönnek az órák - első sor a tárgy, második az osztály
+ for ($i = 1; $i < count($S1); $i++) {
+ if ($Napok[$i] != 0) $nap = $Napok[$i];
+ if ($S1[$i] != '') {
+
+ $ora = $oraszamok[$i];
+ $targy = $S1[$i];
+ $osztaly = $S2[$i];
+ if ($TeremByLeiras[ $terem ] != '') {
+ $TeremRend[$nap][$ora][$osztaly][$targy] = $TeremByLeiras[ $terem ];
+ } elseif ($TeremById[ $terem ] != '') {
+ $TeremRend[$nap][$ora][$osztaly][$targy] = $TeremById[ $terem ];
+ } else {
+ $TeremRend[$nap][$ora][$osztaly][$targy] = $terem;
+ $_SESSION['alert'][] = 'message:wrong_data:terem='.$terem;
+ $return = false;
+ }
+
+ }
+
+ }
+ }
+
+ // A tanár-órarendet tartalmazó munkalap feldolgozása
+ $s = 2;
+ while ($s < count($TANAR)) {
+
+ // Két sor egy tanár órarendjét tartalmazza
+ $S1 = $TANAR[$s];
+ $S2 = $TANAR[$s+1];
+ $s += 2;
+ // Az első sor első mezője a tanár neve
+ if ($S1[0] != '') {
+ if ($Tanar[ $S1[0] ] != '') {
+ $tanar = $Tanar[ $S1[0] ];
+ } else {
+ $tanar = $S1[0];
+ $_SESSION['alert'][] = 'message:wrong_data:tanarNev='.$tanar;
+ $return = false;
+ }
+ // A második cellátol jönnek az órák - első sor a tárgy, második az osztály
+ for ($i = 1; $i < count($S1); $i++) {
+ if ($Napok[$i] != 0) $nap = $Napok[$i];
+ if ($S1[$i] != '') {
+
+ $ora = $oraszamok[$i];
+ $targy = $S1[$i];
+ $osztaly = $S2[$i];
+
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$nap,$ora,$tanar,$osztaly,$targy,$TeremRend[$nap][$ora][$osztaly][$targy],$ADAT['tolDt'],$ADAT['igDt']
+ );
+ }
+ }
+ }
+ }
+
+ return $return;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-RoPaSoft.php b/mayor-orig/www/include/modules/naplo/orarend/convert-RoPaSoft.php
new file mode 100644
index 00000000..39e8d457
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-RoPaSoft.php
@@ -0,0 +1,80 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $fileName nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ ------------------------------------------
+
+ Az alábbi példa egy speciális, tabulátorokkal tagolt file formátumot dolgoz fel.
+ Ebben egy-egy sor (pontosabban két-két sor) egy-egy tanár óráit írja le.
+ A tanárokat a nevük alapján azonosítjuk.
+
+ */
+
+ function loadFile($ADAT) {
+
+ // !! Sajnos az összevont cellákkal baj van !! //
+
+ global $OrarendiOra;
+ $OrarendiOra = array();
+
+ require_once('include/modules/naplo/share/tanar.php');
+ $Tanarok = getTanarok(array('tanev' => __TANEV, 'result' => 'assoc'));
+ foreach ($Tanarok as $tanarId => $tanarAdat) $Tanar[ $tanarAdat['tanarNev'] ] = $tanarId;
+
+ $fp = fopen($ADAT['fileName'], 'r');
+ if (!$fp) return false;
+
+ // Az első sor a napok neveit tartalmazza
+ $Napok = explode(' ', chop(fgets($fp, 1024)));
+ for ($i = 0; $i < count($Napok); $i++)
+ if ($Napok[$i] == 'Hétfő') $Napok[$i] = 1;
+ elseif ($Napok[$i] == 'Kedd') $Napok[$i] = 2;
+ elseif ($Napok[$i] == 'Szerda') $Napok[$i] = 3;
+ elseif ($Napok[$i] == 'Csütörtök') $Napok[$i] = 4;
+ elseif ($Napok[$i] == 'Péntek') $Napok[$i] = 5;
+ elseif ($Napok[$i] == 'Szombat') $Napok[$i] = 6;
+ elseif ($Napok[$i] == 'Vasárnap') $Napok[$i] = 7;
+ // A második sor az adott napon belöli óraszámot adja
+ $oraszamok = explode(' ', chop(fgets($fp, 1024)));
+ $return = true;
+ while ($sor = fgets($fp, 1024)) {
+
+ // Két sor egy tanár órarendjét tartalmazza
+ $S1 = explode(' ', chop($sor));
+ $S2 = explode(' ', chop(fgets($fp, 1024)));
+ // Az első sor első mezője a tanár neve
+ if ($Tanar[ $S1[0] ] != '') {
+ $tanar = $Tanar[ $S1[0] ];
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:tanarNev='.$S1[0]; // hiányzó vagy hibás tanárnév esetén nem tudjuk betölteni az órarendet
+ $return = false;
+ $tanar = $S1[0] . ' / ' . $Tanar[ $S1[0] ];
+ }
+ // A második cellátol jönnek az órák - első sor a tárgy, második az osztály
+ for ($i = 1; $i < count($S1); $i++) {
+ if ($Napok[$i] != 0) $nap = $Napok[$i];
+ if ($S1[$i] != '') {
+
+ $ora = $oraszamok[$i];
+ $targy = $S1[$i];
+ $osztaly = $S2[$i];
+
+ // és hol a teremId????
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$nap,$ora,$tanar,$osztaly,$targy,$ADAT['tolDt'],$ADAT['igDt']
+ );
+
+ }
+
+ }
+
+ }
+
+ fclose($fp);
+ return $return;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables Ctrl-Shift-E.php b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables Ctrl-Shift-E.php
new file mode 100644
index 00000000..01e14858
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables Ctrl-Shift-E.php
@@ -0,0 +1,112 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $fileName nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ ------------------------------------------
+
+ Az alábbi példa az aSc-ből Ctrl-Shift-E kombinációval exportálható szöveges állomány adatit dolgozza fel.
+ Ebben egy sor egy óra adatait tartalmazza - akár az orarendiOra adatbázis egy rekordja.
+ Feltételezzük, hogy a tanárnevek _pontosan_ megegyeznek a naplóbeli nevekkel, továbbá a termek rövid neve
+ az azonosító számuk.
+ A szkript kezeli a blokkokat, ezeket szétbontja különrekordokra
+
+ 0. Day Name - a nap neve - eldobjuk
+ 1. Day Number in Cycle - a nap száma - "nap"
+ 2. Period in Day - az óra száma - "ora"
+ 3. Period in Cycle - ??? - eldobjuk
+ 4. Form - osztály - "osztalyJel"
+ 5. Form 'short' - osztály rövid neve - eldobjuk
+ 6. Subject - tárgy neve - "targyJel" - 1. rész
+ 7. Subject 'short' - tárgy rövid neve - eldobjuk
+ 8. Classroom - terem neve - eldobjuk
+ 9. Classroom 'short' - terem rövid neve - "teremId"
+ 0. Teacher Name - tanár neve - átalakítva "tanarId"-re
+ 1. Teacher Short - tanár rövid neve - eldobjuk
+ 2. Group - Csoport neve - "targyJel" - 2. rész
+ 3. Cycle - ???
+ */
+
+ require_once('include/modules/naplo/share/tanar.php');
+
+ function loadFile($ADAT) {
+
+ global $OrarendiOra;
+
+ $OrarendiOra = array();
+
+ $Tanarok = getTanarok(array('tanev' => __TANEV, 'result' => 'assoc'));
+dump($Tanarok);
+ foreach ($Tanarok as $tanarId => $tanarAdat) $Tanar[ $tanarAdat['tanarNev'] ] = $tanarId;
+
+
+ $fp = fopen($ADAT['fileName'], 'r');
+ if (!$fp) return false;
+
+ // Az első sor üres - eldobjuk
+ $sor = fgets($fp, 1024);
+ // A második sor mezőneveket tartalmaz - eldobjuk
+ $sor = fgets($fp, 1024);
+ $ok = true; $OrarendiOra = array();
+ // Az adatsorok feldolgozása
+ $kulcs2index = $kulcsDb = array();
+ while ($sor = fgets($fp, 1024)) {
+
+ $rec = explode(' ', chop($sor));
+
+ $het = $ADAT['orarendiHet'];
+ $nap = $rec[1];
+ $ora = $rec[2];
+ $tanarNev = explode(',', mb_convert_encoding($rec[10],'UTF-8','ISO-8859-2')); // konvetál és szétvág!
+ $tanarIds = array();
+ foreach ($tanarNev as $tNev) {
+ if ($tNev == 'Ernst') $tNev = 'Ernst, Mader';
+ if ($tNev == ' Mader') continue;
+ if (!isset($Tanar[$tNev])) {
+ $_SESSION['alert'][] = 'message:wrong_data:Hiányzó azonosító (tanár név='.$tNev.')';
+ $ok = false;
+ }
+ $tanarIds[] = $Tanar[$tNev];
+ }
+ $oJelek = explode(',', $rec[4]);
+ if (count($oJelek) > 1) $osztalyJel = $oJelek[0].'...'; // Nem fér ki több, csak jelezzük, hogy volt még...
+ else $osztalyJel = $oJelek[0]; // nem érdemes szétvágni, mert nem feleltethető meg...
+ $targyJel = mb_convert_encoding($rec[6],'UTF-8','ISO-8859-2'); //.$rec[12];
+ $teremIds = explode(',',$rec[9]); // szétvág
+ $tolDt = $ADAT['tolDt'];
+ $igDt = $ADAT['igDt'];
+
+ // Többhetes órarend esetén egy tanárnak lehet több bejegyzése is ugyanarra az időpontra. Ekkor valahogy ki kell választani a megfelelőt.
+ // Egy adott kulcs első előfordulásakor a rekordot elmentjük és indexét is rögzítjük. Többedig előfordulás esetén csak azt rögzítjük,
+ // hogy hanyadik előfordulás volt egész addig, amíg a megadott órarendiHét számadik előfordulásig nem jutunk. Ekkor felülírjuk a korábbi rekordot.
+ // blokkok szétbontása több rekordra
+ // TODO: Ha egy blokk egyik tagja ütközik csak, akkor valójában az összesnek adott heti bejegyzéssé kellene változnia.
+ for ($i = 0; $i < count($tanarIds); $i++) {
+
+ $tanarId = $tanarIds[$i];
+ $teremId = ($teremIds[$i]==0)?'NULL':$teremIds[$i]; // a 0 érték nem lehet teremId
+ $kulcsDb["$het-$nap-$ora-$tanarId"]++;
+ if (!isset($kulcs2index["$het-$nap-$ora-$tanarId"])) {
+ $OrarendiOra[] = array(
+ $het,$nap,$ora,$tanarId,$osztalyJel,$targyJel,$teremId,$tolDt,$igDt
+ );
+ $kulcs2index["$het-$nap-$ora-$tanarId"] = count($OrarendiOra)-1;
+ } else {
+ if ($het == $kulcsDb["$het-$nap-$ora-$tanarId"]) {
+ $OrarendiOra[ $kulcs2index["$het-$nap-$ora-$tanarId"] ] = array(
+ $het,$nap,$ora,$tanarId,$osztalyJel,$targyJel,$teremId,$tolDt,$igDt
+ );
+ }
+
+ }
+ }
+ }
+
+ fclose($fp);
+ return $ok;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML (tankör nélkül).php b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML (tankör nélkül).php
new file mode 100644
index 00000000..87d7982c
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML (tankör nélkül).php
@@ -0,0 +1,188 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $ADAT['fileName'] nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra és $OrarendiOraTankor globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ */
+
+ function loadFile($ADAT) {
+
+ global $OrarendiOra, $OrarendiOraTankor;
+
+ $OrarendiOra = $OrarendiOraTankor = array();
+ $return = true;
+ $tanev = $ADAT['tanev'];
+
+ // A file beolvasása
+ $fp = fopen($ADAT['fileName'], 'r');
+ $size = filesize($ADAT['fileName']);
+ if ($size > 0) $xmlStr = mb_convert_encoding(fread($fp, $size), 'UTF-8', 'ISO-8859-2');
+ fclose($fp);
+ // A <?xml sor(ok) kiiktatása
+ $xmlArray = explode("\n", $xmlStr);
+ while (substr($xmlArray[0], 0, 5) == '<?xml') array_shift($xmlArray);
+ $xmlStr = implode("\n", $xmlArray); unset($xmlArray);
+
+ $dom = new DOMDocument();
+ $dom->loadXML( $xmlStr );
+ if (!$dom) {
+ $_SESSION['alert'][] = 'message:wrong_data:Hibás XML file='.$ADAT['fileName'];
+ return false;
+ }
+
+ // A targyJel mező hosszának lekérdezése (32)
+ $q = "SHOW FIELDS FROM `%s`.orarendiOraTankor LIKE 'targyJel'";
+ $ret = db_query($q, array('fv' => 'loadFile/targyJel típusa', 'modul' => 'naplo', 'result' => 'record', 'values' => array($ADAT['tanevDb'])));
+ $targyJelHossz = intval(substr($ret['Type'], 8, -1));
+
+ // Tanárok - MaYoR
+ $cTanar = array(); $Tanarok = getTanarok();
+ for ($i = 0; $i < count($Tanarok); $i++) $cTanar[ $Tanarok[$i]['tanarId'] ] = $Tanarok[$i];
+
+
+ // ====================== Alapadatok lekérdezése az XML-ből =========================== //
+
+ $teachers = $dom->getElementsByTagName( 'teacher' );
+ foreach ($teachers as $teacher) {
+ $id = $teacher->getAttribute( 'id' );
+ $ascTanar[$id]['name'] = $teacher->getAttribute( 'name' );
+ $ascTanar[$id]['short'] = $teacher->getAttribute( 'short' );
+ if (!is_array($cTanar[$id])) {
+ $_SESSION['alert'][] = 'message:Hibás tanár ID!:'.$id.':'.$ascTanar[$id]['name'].':'.$ascTanar[$id]['short'];
+ }
+ }
+ $classes = $dom->getElementsByTagName( 'class' );
+ foreach ($classes as $class) {
+ $id = $class->getAttribute( 'id' );
+ $name = $class->getAttribute( 'name' );
+ $ascOsztaly[$id] = $name;
+ }
+ $subjects = $dom->getElementsByTagName( 'subject' );
+ foreach ($subjects as $subject) {
+ $id = $subject->getAttribute( 'id' );
+ $name = $subject->getAttribute( 'name' );
+ $short = $subject->getAttribute( 'short' );
+ $ascTargy[$id] = array('name' => $name, 'short' => $short);
+ }
+ $classrooms = $dom->getElementsByTagName( 'classroom' );
+ foreach ($classrooms as $classroom) {
+ $id = $classroom->getAttribute( 'id' );
+ $name = $classroom->getAttribute( 'name' );
+ $short = $classroom->getAttribute( 'name' );
+ $ascTerem[$id] = array('name' => $name, 'short' => $short);
+ }
+
+ // =============== Lesson tábla feldolgozása ======================== //
+ // két hetes órarend --> egy hét
+ $kihagyandoWeek = ($ADAT['orarendiHet'] == 1) ? '01':'10';
+ $lessons = $dom->getElementsByTagName( 'lesson' );
+ foreach ($lessons as $lesson) {
+ $id = $lesson->getAttribute( 'id' );
+ $weeks = $lesson->getAttribute( 'weeks' );
+ if ($weeks === $kihagyandoWeek) $kihagyandoLesson[$id] = true;
+ }
+/*
+ // =============== Lesson tábla feldolgozása ======================== //
+
+ $OrarendiOraTankor = array();
+ $lessons = $dom->getElementsByTagName( 'lesson' );
+ foreach ($lessons as $lesson) {
+ $id = $lesson->getAttribute( 'id' );
+ $name = $lesson->getAttribute( 'name' );
+ $periodspercard = $lesson->getAttribute( 'periodspercard' );
+ $periodsperweek = $lesson->getAttribute( 'periodsperweek' );
+ $subjectid = $lesson->getAttribute( 'subjectid' );
+ $classids = $lesson->getAttribute( 'classids' );
+ $teacherids = $lesson->getAttribute( 'teacherids' );
+
+ $ascLesson[$id] = array(
+ 'lessonid' => $id,
+ 'name' => $name,
+ 'periodspercard' => $periodspercard,
+ 'periodsperweek' => $periodsperweek,
+ 'subjectid' => $subjectid,
+ 'classids' => $classids,
+ 'teacherids' => $teacherids,
+ );
+
+ list($jel, $ids) = explode('-', $id);
+ $tankorIds = explode('_', $ids);
+ $tanarIds = explode(',', $teacherids);
+ $osztalyIds = explode(',', $classids);
+// $targyJel = $subjectid;
+ $targyJel = substr($id, 0, $targyJelHossz);
+ for ($i = 0; $i < count($tankorIds); $i++) { // feltételezzük, hogy a tanárok és tankörök sorrendje megfelel egymásnak!
+ $tankorId = $tankorIds[$i];
+ if (!is_array($tankorOrarendiOra[$tankorId])) $tankorOrarendiOra[$tankorId] = array();
+ $tanarId = $mayorTankor[$tankorId]['tanar'][0];
+ if (!isset($tanarId)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hiányzó tanár hozzárendelés:tankorId=$tankorId - tanarId NINCS! - teacherids=$teacherids - lessonid=$id";
+ $return = $ADAT['force'];
+ continue;
+ } elseif(!in_array($tanarId, $tanarIds)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás tanár hozzárendelés:tankorId=$tankorId - tanarId=$tanarId - teacherids=$teacherids - lessonid=$id";
+ $return = $ADAT['force'];
+ continue;
+ }
+ $osztalyId = $mayorTankor[$tankorId]['osztaly'][0];
+ if (!in_array($osztalyId, $osztalyIds)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás osztály hozzárendelés:tankorId=$tankorId - osztalyId=$osztalyId - classids=$classids";
+ $return = $ADAT['force'];
+ if (!$return) continue;
+ }
+ if (!in_array("$tanarId:$osztalyId:$targyJel", $tankorOrarendiOra[$tankorId])) {
+ $tankorOrarendiOra[$tankorId][] = "$tanarId:$osztalyId:$targyJel";
+ $OrarendiOraTankor[] = array(
+ $tanarId, $osztalyId, $targyJel, $tankorId
+ );
+ }
+ }
+
+ } // foreach - lesson
+*/
+ // Kártyák feldolgozása
+ $cards = $dom->getElementsByTagName( 'card' );
+ if (count($cards)==0) $_SESSION['alert'][] = '::nincsenek kártyák az adott xml file-ban';
+ foreach ($cards as $card) {
+
+ $lessonid = $card->getAttribute( 'lessonid' );
+ if ($kihagyandoLesson[$lessonid]) continue;
+ $classids = explode(',', ($card->getAttribute( 'classids' )));
+ $subjectids = explode(',', ($card->getAttribute( 'subjectids' )));
+ $teacherids = explode(',', ($card->getAttribute( 'teacherids' )));
+ $classroomids = explode(',', ($card->getAttribute( 'classroomids' )));
+ $day = ($card->getAttribute( 'day' ));
+ $period = $card->getAttribute( 'period' );
+ $periodspercard = $card->getAttribute( 'durationperiods' );
+
+ $weeks = $card->getAttribute( 'weeks' );
+ if ($weeks === $kihagyandoWeek) continue;
+
+ if ($periodspercard == 0) $periodspercard = 1;
+
+ for ($j = 0; $j < $periodspercard; $j++) {
+ foreach ($teacherids as $i => $tanarId) {
+ if (count($subjectids) == count($teacherids)) $targyJel = $ascTargy[ $subjectids[$i] ]['short'];
+ else $targyJel = $ascTargy[ $subjectids[0] ]['short']; // Csak az első subjectid-t vesszük figyelembe
+
+ if (count($classroomids) == count($teacherids)) $teremId = readVariable($classroomids[$i],'numeric unsigned','NULL');
+ else $teremId = readVariable($classroomids[0],'numeric unsigned','NULL'); // feltételezzük, hogy a tanárok és termek sorrendje megfelel
+
+ if (count($classids) == count($teacherids)) $osztalyJel = $ascOsztaly[ $classids[$i] ];
+ else $osztalyJel = $ascOsztaly[ $classids[0] ];
+
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$day,intval($period+$j),$tanarId,$osztalyJel,$targyJel,$teremId,$ADAT['tolDt'],$ADAT['igDt']
+ );
+ }
+ }
+
+ }
+
+ return $return;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML update.php b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML update.php
new file mode 100644
index 00000000..07d06798
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML update.php
@@ -0,0 +1,241 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $ADAT['fileName'] nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra és $OrarendiOraTankor globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ ----------
+
+ MIT IS CSINÁL EZ A VÁLTOZAT?
+
+ Az aSc-vel voltak teremhozzárendelési problémáink. Ezért a termhozzárendeléseket a felületen módosítottuk (Tanév adatok/Teremmodosítás).
+ Ezeket a módosításokat az új órarend betöltéskor nem szeretnénk elveszteni (kisebb módosításról van szó, ami azért érint blokkokat).
+ Lementjük az orarendiOra tábla tartalmát az _orarendiOra táblába:
+
+ USE naplo_vmg_2008;
+ DROP TABLE IF EXISTS _orarendiOra;
+ CREATE TABLE _orarendiOra SELECT * FROM orarendiOra;
+
+ Majd betöltjük az újat ezzel a convert modullal. Ekkor a betöltés előtt lekérdezi a régi órarendből, hogy volt-e ugyanabban a pozícióban
+ a betöltendő órával egyező tanarId,osztalyJel,targyJel hármas, és ha van, akkor átveszi ennek teremId-jét.
+
+ */
+
+ function loadFile($ADAT) {
+
+ global $OrarendiOra, $OrarendiOraTankor;
+
+ $OrarendiOra = $OrarendiOraTankor = array();
+ $return = true;
+ $tanev = $ADAT['tanev'];
+
+ // A file beolvasása
+ $fp = fopen($ADAT['fileName'], 'r');
+ $size = filesize($ADAT['fileName']);
+ if ($size > 0) $xmlStr = mb_convert_encoding(fread($fp, $size), 'UTF-8', 'ISO-8859-2');
+ fclose($fp);
+ // A <?xml ... sorok kiiktatása
+ $xmlArray = explode("\n", $xmlStr);
+ while (substr($xmlArray[0], 0, 5) == '<?xml') array_shift($xmlArray);
+ $xmlStr = implode("\n", $xmlArray); unset($xmlArray);
+
+ $dom = new DOMDocument();
+ $dom->loadXML( $xmlStr );
+ if (!$dom) {
+ $_SESSION['alert'][] = 'message:wrong_data:Hibás XML file='.$ADAT['fileName'];
+ return false;
+ }
+
+ // Tankörök adatainak lekérdezése
+ $Tankorok = getTankorok(array("tanev=$tanev"));
+ $mayorTankor = array();
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ $tankorId = $Tankorok[$i]['tankorId'];
+ $Tankorok[$i]['osztaly'] = getTankorOsztalyaiByTanev($tankorId, $tanev, array('tagokAlapjan' => true, 'result' => 'id'));
+// $Tankorok[$i]['tanar'] = getTankorTanaraiByInterval($tankorId, array('tanev' => $tanev, 'result' => 'csakId'));
+ $Tankorok[$i]['tanar'] = getTankorTanaraiByInterval(
+ $tankorId, array('tanev' => $tanev, 'tolDt' => $ADAT['tolDt'], 'igDt' => $ADAT['igDt'], 'result' => 'csakId')
+ );
+if ($tankorId == 104) {
+var_dump($Tankorok[$i]['tanar']);
+}
+ $mayorTankor[$tankorId] = $Tankorok[$i];
+ }
+var_dump($ADAT['tolDt']);
+var_dump($ADAT['igDt']);
+ unset($Tankorok);
+
+ // A targyJel mező hosszának lekérdezése (32)
+ $q = "SHOW FIELDS FROM `%s`.orarendiOraTankor LIKE 'targyJel'";
+ $ret = db_query($q, array('fv' => 'loadFile/targyJel típusa', 'modul' => 'naplo', 'result' => 'record', 'values' => array($ADAT['tanevDb'])));
+ $targyJelHossz = intval(substr($ret['Type'], 8, -1));
+
+ // A már felvett orarendiOraTankor bejegyzések lekérdezése
+ $ret = getOrarendiOraTankor($tanev);
+ $tankorOrarendiOra = array();
+ for ($i = 0; $i < count($ret); $i++) {
+ $kulcs = $ret[$i]['tanarId'].':'.$ret[$i]['osztalyJel'].':'.$ret[$i]['targyJel'];
+ $tankorOrarendiOra[ $ret[$i]['tankorId'] ][] = $kulcs;
+ }
+
+
+ // ====================== Alapadatok lekérdezése az XML-ből =========================== //
+
+ $teachers = $dom->getElementsByTagName( 'teacher' );
+ foreach ($teachers as $teacher) {
+ $id = $teacher->getAttribute( 'id' );
+ $name = $teacher->getAttribute( 'name' );
+ $ascTanar[$id] = $name;
+ }
+ $classes = $dom->getElementsByTagName( 'class' );
+ foreach ($classes as $class) {
+ $id = $class->getAttribute( 'id' );
+ $name = $class->getAttribute( 'name' );
+ $ascOsztaly[$id] = $name;
+ }
+ $subjects = $dom->getElementsByTagName( 'subject' );
+ foreach ($subjects as $subject) {
+ $id = $subject->getAttribute( 'id' );
+ $name = $subject->getAttribute( 'name' );
+ $short = $subject->getAttribute( 'short' );
+ if (substr($id,0,1) == 'b') $ascBlokkTargy[substr($id, 1)] = $name;
+ else $ascTargy[$id] = array('name' => $name, 'short' => $short);
+ }
+ $classrooms = $dom->getElementsByTagName( 'classroom' );
+ foreach ($classrooms as $classroom) {
+ $id = $classroom->getAttribute( 'id' );
+ $name = $classroom->getAttribute( 'name' );
+ $ascTerem[$id] = $name;
+ }
+
+ // =============== Lesson tábla feldolgozása ======================== //
+
+ $OrarendiOraTankor = array();
+ $lessons = $dom->getElementsByTagName( 'lesson' );
+ foreach ($lessons as $lesson) {
+ $id = $lesson->getAttribute( 'id' );
+ $name = $lesson->getAttribute( 'name' );
+ $periodspercard = $lesson->getAttribute( 'periodspercard' );
+ $periodsperweek = $lesson->getAttribute( 'periodsperweek' );
+ $subjectid = $lesson->getAttribute( 'subjectid' );
+ $classids = $lesson->getAttribute( 'classids' );
+ $teacherids = $lesson->getAttribute( 'teacherids' );
+
+ $ascLesson[$id] = array(
+ 'lessonid' => $id,
+ 'name' => $name,
+ 'periodspercard' => $periodspercard,
+ 'periodsperweek' => $periodsperweek,
+ 'subjectid' => $subjectid,
+ 'classids' => $classids,
+ 'teacherids' => $teacherids,
+ );
+
+ list($jel, $ids) = explode('-', $id);
+ $tankorIds = explode('_', $ids);
+ $tanarIds = explode(',', $teacherids);
+ $osztalyIds = explode(',', $classids);
+// $targyJel = $subjectid;
+ $targyJel = substr($id, 0, $targyJelHossz);
+ for ($i = 0; $i < count($tankorIds); $i++) { // feltételezzük, hogy a tanárok és tankörök sorrendje megfelel egymásnak!
+ $tankorId = $tankorIds[$i];
+ if (!is_array($tankorOrarendiOra[$tankorId])) $tankorOrarendiOra[$tankorId] = array();
+ $tanarId = $mayorTankor[$tankorId]['tanar'][0];
+ if (!isset($tanarId)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hiányzó tanár hozzárendelés:tankorId=$tankorId - tanarId NINCS! - teacherids=$teacherids - lessonid=$id";
+ $return = $ADAT['force'];
+ continue;
+ } elseif(!in_array($tanarId, $tanarIds)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás tanár hozzárendelés:tankorId=$tankorId - tanarId=$tanarId - teacherids=$teacherids - lessonid=$id";
+ $return = $ADAT['force'];
+ continue;
+ }
+ $osztalyId = $mayorTankor[$tankorId]['osztaly'][0];
+ if (!in_array($osztalyId, $osztalyIds)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás osztály hozzárendelés:tankorId=$tankorId - osztalyId=$osztalyId - classids=$classids";
+ $return = $ADAT['force'];
+ continue;
+ }
+ if (!in_array("$tanarId:$osztalyId:$targyJel", $tankorOrarendiOra[$tankorId])) {
+ $tankorOrarendiOra[$tankorId][] = "$tanarId:$osztalyId:$targyJel";
+ $OrarendiOraTankor[] = array(
+ $tanarId, $osztalyId, $targyJel, $tankorId
+ );
+ }
+ }
+
+ } // foreach - lesson
+
+ // Kártyák feldolgozása
+ $cards = $dom->getElementsByTagName( 'card' );
+ foreach ($cards as $card) {
+ $lessonid = $card->getAttribute( 'lessonid' );
+// $periodspercard = $lAdat['periodspercard'];
+ $periodspercard = $card->getAttribute( 'durationperiods' );
+ $day = ($card->getAttribute( 'day' ));
+ $period = $card->getAttribute( 'period' );
+ $classroomids = explode(',', ($card->getAttribute( 'classroomids' )));
+ $tanarIds = explode(',', $ascLesson[$lessonid]['teacherids']);
+
+ list($jel, $ids) = explode('-', $lessonid);
+ if (substr($jel,0,1) == 't') $tipus = 'tankor';
+ elseif (substr($jel,0,1) == 'b') $tipus = 'blokk';
+ else {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás lesson:lessonid=$lessonid";
+ $return = $ADAT['force'];
+ if ($ADAT['force']) { // felvesszük az órarendi óra bejegyzést - még tankörhöz kell majd rendelni
+ $osztalyIds = explode(',', $ascLesson[$lessonid]['classids']);
+ foreach ($tanarIds as $i => $tanarId) {
+// $targyJel = substr($lessonid, 0, $targyJelHossz);
+ $targyJel = $ascTargy[ $ascLesson[$lessonid]['subjectid'] ]['short'].'-'.$lessonid;
+ $teremId = readVariable($classroomids[$i],'numeric unsigned','NULL'); // feltételezzük, hogy a tanárok és termek sorrendje megfelel
+ if (count($osztalyIds) == count($tanarIds)) $osztalyJel = $ascOsztaly[ $osztalyIds[$i] ];
+ else $osztalyJel = $ascOsztaly[ $osztalyIds[0] ];
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$day,intval($period),$tanarId,$osztalyJel,$targyJel,$teremId,$ADAT['tolDt'],$ADAT['igDt']
+ );
+ }
+ }
+ continue;
+ }
+// $oraszam = intval(substr($jel, 1, 1));
+ $oraszam = $periodspercard;
+ if ($oraszam == 0) $oraszam = 1;
+// if ($oraszam != $periodspercard) $_SESSION['alert'][] = "message:wrong_data:Óraszám=$oraszam - periodspercard=$periodspercard";
+ $tankorIds = explode('_', $ids);
+// $targyJel = $ascLesson[$lessonid]['subjectid'];
+ $targyJel = substr($lessonid, 0, $targyJelHossz);
+ for ($i = 0; $i < count($tankorIds); $i++) {
+
+ $tankorId = $tankorIds[$i];
+ $tanarId = readVariable($mayorTankor[$tankorId]['tanar'][0], 'numeric unsigned', null);
+ list($index) = array_keys($tanarIds, $tanarId);
+ $osztalyId = readVariable($mayorTankor[$tankorId]['osztaly'][0], 'numeric unsigned', null);
+ $teremId = readVariable($classroomids[$index],'numeric unsigned','NULL'); // feltételezzük, hogy a tankor-ök és termek sorrendje megfelel
+ for ($j = 0; $j < $oraszam; $j++) {
+ if (isset($tanarId) && isset($osztalyId)) {
+
+$q = "SELECT teremId FROM `%s`._orarendiOra WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u AND osztalyJel='%s' AND targyJel='%s' AND tolDt<='%s' AND '%s' <= igDt";
+$v = array($ADAT['tanevDb'], $ADAT['orarendiHet'], $day, intval($period+$j), $tanarId, $osztalyId, $targyJel, $ADAT['tolDt'], $ADAT['tolDt']);
+$ret = db_query($q, array('fv' => 'terem update', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+if ($ret != '') {
+ $teremId = $ret;
+}
+else {
+ $teremId = 'NULL';
+}
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$day,intval($period+$j),$tanarId,$osztalyId,$targyJel,$teremId,$ADAT['tolDt'],$ADAT['igDt']
+ );
+ }
+ }
+ }
+
+ }
+
+ return $return;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML.php b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML.php
new file mode 100644
index 00000000..e4f2fde6
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-aSc Timetables XML.php
@@ -0,0 +1,217 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $ADAT['fileName'] nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra és $OrarendiOraTankor globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ */
+
+ function loadFile($ADAT) {
+
+ global $OrarendiOra, $OrarendiOraTankor;
+
+ $OrarendiOra = $OrarendiOraTankor = array();
+ $return = true;
+ $tanev = $ADAT['tanev'];
+
+ // A file beolvasása
+ $fp = fopen($ADAT['fileName'], 'r');
+ $size = filesize($ADAT['fileName']);
+ if ($size > 0) $xmlStr = mb_convert_encoding(fread($fp, $size), 'UTF-8', 'ISO-8859-2');
+ fclose($fp);
+ // A <?xml sorok kiiktatása
+ $xmlArray = explode("\n", $xmlStr);
+ while (substr($xmlArray[0], 0, 5) == '<?xml') array_shift($xmlArray);
+ $xmlStr = implode("\n", $xmlArray); unset($xmlArray);
+
+ $dom = new DOMDocument();
+ $dom->loadXML( $xmlStr );
+ if (!$dom) {
+ $_SESSION['alert'][] = 'message:wrong_data:Hibás XML file='.$ADAT['fileName'];
+ return false;
+ }
+
+ // Tankörök adatainak lekérdezése
+ $Tankorok = getTankorok(array("tanev=$tanev"));
+ $mayorTankor = array();
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ $tankorId = $Tankorok[$i]['tankorId'];
+ $Tankorok[$i]['osztaly'] = getTankorOsztalyaiByTanev($tankorId, $tanev, array('tagokAlapjan' => true, 'result' => 'id'));
+// $Tankorok[$i]['tanar'] = getTankorTanaraiByInterval($tankorId, array('tanev' => $tanev, 'result' => 'csakId'));
+ $Tankorok[$i]['tanar'] = getTankorTanaraiByInterval(
+ $tankorId, array('tanev' => $tanev, 'tolDt' => $ADAT['tolDt'], 'igDt' => $ADAT['igDt'], 'result' => 'csakId')
+ );
+
+ $mayorTankor[$tankorId] = $Tankorok[$i];
+ }
+ unset($Tankorok);
+
+ // A targyJel mező hosszának lekérdezése (32)
+ $q = "SHOW FIELDS FROM `%s`.orarendiOraTankor LIKE 'targyJel'";
+ $ret = db_query($q, array('fv' => 'loadFile/targyJel típusa', 'modul' => 'naplo', 'result' => 'record', 'values' => array($ADAT['tanevDb'])));
+ $targyJelHossz = intval(substr($ret['Type'], 8, -1));
+ // A már felvett orarendiOraTankor bejegyzések lekérdezése
+ $ret = getOrarendiOraTankor($tanev);
+ $tankorOrarendiOra = array();
+ for ($i = 0; $i < count($ret); $i++) {
+ $kulcs = $ret[$i]['tanarId'].':'.$ret[$i]['osztalyJel'].':'.$ret[$i]['targyJel'];
+ $tankorOrarendiOra[ $ret[$i]['tankorId'] ][] = $kulcs;
+ }
+
+
+ // ====================== Alapadatok lekérdezése az XML-ből =========================== //
+
+ $teachers = $dom->getElementsByTagName( 'teacher' );
+ foreach ($teachers as $teacher) {
+ $id = $teacher->getAttribute( 'id' );
+ $name = $teacher->getAttribute( 'name' );
+ $ascTanar[$id] = $name;
+ }
+ $classes = $dom->getElementsByTagName( 'class' );
+ foreach ($classes as $class) {
+ $id = $class->getAttribute( 'id' );
+ $name = $class->getAttribute( 'name' );
+ $ascOsztaly[$id] = $name;
+ }
+ $subjects = $dom->getElementsByTagName( 'subject' );
+ foreach ($subjects as $subject) {
+ $id = $subject->getAttribute( 'id' );
+ $name = $subject->getAttribute( 'name' );
+ $short = $subject->getAttribute( 'short' );
+ if (substr($id,0,1) == 'b') $ascBlokkTargy[substr($id, 1)] = $name;
+ else $ascTargy[$id] = array('name' => $name, 'short' => $short);
+ }
+ $classrooms = $dom->getElementsByTagName( 'classroom' );
+ foreach ($classrooms as $classroom) {
+ $id = $classroom->getAttribute( 'id' );
+ $name = $classroom->getAttribute( 'name' );
+ $ascTerem[$id] = $name;
+ }
+
+ // =============== Lesson tábla feldolgozása ======================== //
+
+ $OrarendiOraTankor = array();
+ $lessons = $dom->getElementsByTagName( 'lesson' );
+ foreach ($lessons as $lesson) {
+ $id = $lesson->getAttribute( 'id' );
+ $name = $lesson->getAttribute( 'name' );
+ $periodspercard = $lesson->getAttribute( 'periodspercard' );
+ $periodsperweek = $lesson->getAttribute( 'periodsperweek' );
+ $subjectid = $lesson->getAttribute( 'subjectid' );
+ $classids = $lesson->getAttribute( 'classids' );
+ $teacherids = $lesson->getAttribute( 'teacherids' );
+
+ $ascLesson[$id] = array(
+ 'lessonid' => $id,
+ 'name' => $name,
+ 'periodspercard' => $periodspercard,
+ 'periodsperweek' => $periodsperweek,
+ 'subjectid' => $subjectid,
+ 'classids' => $classids,
+ 'teacherids' => $teacherids,
+ );
+
+ list($jel, $ids) = explode('-', $id);
+ $tankorIds = explode('_', $ids);
+ $tanarIds = explode(',', $teacherids);
+ $osztalyIds = explode(',', $classids);
+// $targyJel = $subjectid;
+ $targyJel = substr($id, 0, $targyJelHossz);
+ for ($i = 0; $i < count($tankorIds); $i++) { // feltételezzük, hogy a tanárok és tankörök sorrendje megfelel egymásnak!
+ $tankorId = $tankorIds[$i];
+ if (!is_array($tankorOrarendiOra[$tankorId])) $tankorOrarendiOra[$tankorId] = array();
+ $tanarId = $mayorTankor[$tankorId]['tanar'][0];
+ if (!isset($tanarId)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hiányzó tanár hozzárendelés:tankorId=$tankorId - tanarId NINCS! - teacherids=$teacherids - lessonid=$id";
+ $return = $ADAT['force'];
+ continue;
+ } elseif(!in_array($tanarId, $tanarIds)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás tanár hozzárendelés:tankorId=$tankorId - tanarId=$tanarId - teacherids=$teacherids - lessonid=$id";
+ $return = $ADAT['force'];
+ continue;
+ }
+ $osztalyId = $mayorTankor[$tankorId]['osztaly'][0];
+ if (!in_array($osztalyId, $osztalyIds)) {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás osztály hozzárendelés:tankorId=$tankorId - osztalyId=$osztalyId - classids=$classids";
+ $return = $ADAT['force'];
+ if (!$return) continue;
+ }
+ if (!in_array("$tanarId:$osztalyId:$targyJel", $tankorOrarendiOra[$tankorId])) {
+ $tankorOrarendiOra[$tankorId][] = "$tanarId:$osztalyId:$targyJel";
+ $OrarendiOraTankor[] = array(
+ $tanarId, $osztalyId, $targyJel, $tankorId
+ );
+ }
+ }
+
+ } // foreach - lesson
+
+ // Kártyák feldolgozása
+ $cards = $dom->getElementsByTagName( 'card' );
+ if (count($cards)==0) $_SESSION['alert'][] = '::nincsenek kártyák az adott xml file-ban';
+ foreach ($cards as $card) {
+ $lessonid = $card->getAttribute( 'lessonid' );
+// $periodspercard = $lAdat['periodspercard'];
+ $periodspercard = $card->getAttribute( 'durationperiods' );
+ $day = ($card->getAttribute( 'day' ));
+ // Ha nem az adott hétre vonatkozó bejegyzés, akkor ugorjunk...
+ $weeks = ($card->getAttribute( 'weeks' ));
+ if ($weeks != "" && $weeks !== "1" && substr($weeks,($ADAT['orarendiHet']-1),1) != "1") continue;
+ $period = $card->getAttribute( 'period' );
+ $classroomids = explode(',', ($card->getAttribute( 'classroomids' )));
+ $tanarIds = explode(',', $ascLesson[$lessonid]['teacherids']);
+
+ list($jel, $ids) = explode('-', $lessonid);
+ if (substr($jel,0,1) == 't') $tipus = 'tankor';
+ elseif (substr($jel,0,1) == 'b') $tipus = 'blokk';
+ else {
+ $_SESSION['alert'][] = "message:wrong_data:Hibás lesson:lessonid=$lessonid";
+ $return = $ADAT['force'];
+ if ($ADAT['force']) { // felvesszük az órarendi óra bejegyzést - még tankörhöz kell majd rendelni
+ $osztalyIds = explode(',', $ascLesson[$lessonid]['classids']);
+ foreach ($tanarIds as $i => $tanarId) {
+// $targyJel = substr($lessonid, 0, $targyJelHossz);
+ $targyJel = $ascTargy[ $ascLesson[$lessonid]['subjectid'] ]['short'].'-'.$lessonid;
+ $teremId = readVariable($classroomids[$i],'numeric unsigned','NULL'); // feltételezzük, hogy a tanárok és termek sorrendje megfelel
+ if (count($osztalyIds) == count($tanarIds)) $osztalyJel = $ascOsztaly[ $osztalyIds[$i] ];
+ else $osztalyJel = $ascOsztaly[ $osztalyIds[0] ];
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$day,intval($period),$tanarId,$osztalyJel,$targyJel,$teremId,$ADAT['tolDt'],$ADAT['igDt']
+ );
+ }
+ }
+ continue;
+ }
+// $oraszam = intval(substr($jel, 1, 1));
+ $oraszam = $periodspercard;
+ if ($oraszam == 0) $oraszam = 1;
+// if ($oraszam != $periodspercard) $_SESSION['alert'][] = "message:wrong_data:Óraszám=$oraszam - periodspercard=$periodspercard";
+ $tankorIds = explode('_', $ids);
+// $targyJel = $ascLesson[$lessonid]['subjectid'];
+ $targyJel = substr($lessonid, 0, $targyJelHossz);
+ for ($i = 0; $i < count($tankorIds); $i++) {
+
+ $tankorId = $tankorIds[$i];
+ $tanarId = readVariable($mayorTankor[$tankorId]['tanar'][0], 'numeric unsigned', null);
+ list($index) = array_keys($tanarIds, $tanarId);
+ $osztalyId = readVariable($mayorTankor[$tankorId]['osztaly'][0], 'numeric unsigned', null);
+ $teremId = readVariable($classroomids[$index],'numeric unsigned','NULL'); // feltételezzük, hogy a tankor-ök és termek sorrendje megfelel
+ for ($j = 0; $j < $oraszam; $j++) {
+ if (isset($tanarId) && isset($osztalyId)) {
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$day,intval($period+$j),$tanarId,$osztalyId,$targyJel,$teremId,$ADAT['tolDt'],$ADAT['igDt']
+ );
+ } else {
+ $_SESSION['alert'][] = "message:wrong_data:Hiányzótanár vagy osztály:lessonid=$lessonid; day=$day; period=$period; tanarId=$tanarId; osztalyId=$osztalyId";
+ }
+ }
+ }
+
+ }
+
+ return $return;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-csv.php b/mayor-orig/www/include/modules/naplo/orarend/convert-csv.php
new file mode 100644
index 00000000..511e3ee4
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-csv.php
@@ -0,0 +1,79 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $fileName nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ ------------------------------------------
+
+ Az alábbi példa egy speciális, tabulátorokkal tagolt file formátumot dolgoz fel.
+ Ebben egy-egy sor (pontosabban két-két sor) egy-egy tanár óráit írja le.
+ A tanárokat a nevük alapján azonosítjuk.
+
+ */
+
+ function loadFile($ADAT) {
+
+ // !! Sajnos az összevont cellákkal baj van !! //
+
+ global $OrarendiOra;
+ $OrarendiOra = array();
+
+ require_once('include/modules/naplo/share/tanar.php');
+ $Tanarok = getTanarok(array('tanev' => __TANEV, 'result' => 'assoc'));
+ foreach ($Tanarok as $tanarId => $tanarAdat) $Tanar[ $tanarAdat['tanarNev'] ] = $tanarId;
+
+ $fp = fopen($ADAT['fileName'], 'r');
+ if (!$fp) return false;
+
+ // Az első sor a napok neveit tartalmazza
+ $Napok = explode(' ', chop(fgets($fp, 1024)));
+ for ($i = 0; $i < count($Napok); $i++)
+ if ($Napok[$i] == 'Hétfő') $Napok[$i] = 1;
+ elseif ($Napok[$i] == 'Kedd') $Napok[$i] = 2;
+ elseif ($Napok[$i] == 'Szerda') $Napok[$i] = 3;
+ elseif ($Napok[$i] == 'Csütörtök') $Napok[$i] = 4;
+ elseif ($Napok[$i] == 'Péntek') $Napok[$i] = 5;
+ elseif ($Napok[$i] == 'Szombat') $Napok[$i] = 6;
+ elseif ($Napok[$i] == 'Vasárnap') $Napok[$i] = 7;
+ // A második sor az adott napon belöli óraszámot adja
+ $oraszamok = explode(' ', chop(fgets($fp, 1024)));
+ $return = true;
+ while ($sor = fgets($fp, 1024)) {
+
+ // Két sor egy tanár órarendjét tartalmazza
+ $S1 = explode(' ', chop($sor));
+ $S2 = explode(' ', chop(fgets($fp, 1024)));
+ // Az első sor első mezője a tanár neve
+ if ($Tanar[ $S1[0] ] != '') {
+ $tanar = $Tanar[ $S1[0] ];
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:tanarNev='.$S1[0]; // hiányzó vagy hibás tanárnév esetén nem tudjuk betölteni az órarendet
+ $return = false;
+ $tanar = $S1[0] . ' / ' . $Tanar[ $S1[0] ];
+ }
+ // A második cellátol jönnek az órák - első sor a tárgy, második az osztály
+ for ($i = 1; $i < count($S1); $i++) {
+ if ($Napok[$i] != 0) $nap = $Napok[$i];
+ if ($S1[$i] != '') {
+
+ $ora = $oraszamok[$i];
+ $targy = $S1[$i];
+ $osztaly = $S2[$i];
+
+ $OrarendiOra[] = array(
+ $ADAT['orarendiHet'],$nap,$ora,$tanar,$osztaly,$targy,$ADAT['tolDt'],$ADAT['igDt']
+ );
+
+ }
+
+ }
+
+ }
+
+ fclose($fp);
+ return $return;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/convert-default.php b/mayor-orig/www/include/modules/naplo/orarend/convert-default.php
new file mode 100644
index 00000000..a78939df
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/convert-default.php
@@ -0,0 +1,33 @@
+<?php
+
+ /*
+ A loadFile() függvény a paraméterül kapott $ADAT['fileName'] nevű file-t megnyitja, majd a benne lévő adatokat feldolgozza,
+ és berakja a $OrarendiOra globális változóba. Ebben már a betöltéshez szükséges összes adatnak bent kell lennie
+
+ ---------------------------------------------
+
+ Az alábbi példa olyan tabulátorokkal tagolt állományt dolgoz fel, melyben egy sorban a következő adatok szerepelnek:
+ nap,ora,tanarId,osztalyJel,targyJel,teremId
+
+ */
+
+ function loadFile($ADAT) {
+
+ global $OrarendiOra;
+ $OrarendiOra = array();
+
+ $fp = fopen($ADAT['fileName'], 'r');
+ if (!$fp) return false;
+
+ while ($sor = fgets($fp, 1024)) {
+
+ $OrarendiOra[] = explode(' ',$ADAT['orarendiHet'].' '.chop($sor).' '.$ADAT['tolDt'].' '.$ADAT['igDt']);
+
+ }
+
+ fclose($fp);
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/orarendBetolto.php b/mayor-orig/www/include/modules/naplo/orarend/orarendBetolto.php
new file mode 100644
index 00000000..4a870b78
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/orarendBetolto.php
@@ -0,0 +1,82 @@
+<?php
+
+ function orarendBetoltes($ADAT, $OrarendiOra, $OrarendiOraTankor) {
+
+
+ $ok = true;
+ $lr = db_connect('naplo', array('fv' => 'orarendBetoltes'));
+ db_start_trans($lr);
+ if ($ADAT['lezaras']) {
+ // tol-ig között töröljük az adott hét órarendi bejegyzéseit
+ $q = "DELETE FROM `%s`.orarendiOra WHERE het=%u AND '%s'<=tolDt AND igDt<='%s'";
+ $v = array($ADAT['tanevDb'], $ADAT['orarendiHet'], $ADAT['tolDt'], $ADAT['igDt']);
+ $ok = $ok && db_query($q, array('fv' => 'orarendBetoltes/közti törlés', 'modul' => 'naplo', 'values' => $v), $lr);
+ // A keresztülnyúlókat ketté kell vágni
+ $q = "INSERT INTO `%s`.orarendiOra
+ SELECT het,nap,ora,tanarId,osztalyJel,targyJel,teremId,'%s' + INTERVAL 1 DAY AS tolDt,igDt
+ FROM `%s`.orarendiOra WHERE het=%u AND tolDt<'%s' AND igDt>'%s'";
+ $v = array($ADAT['tanevDb'], $ADAT['igDt'], $ADAT['tanevDb'], $ADAT['orarendiHet'], $ADAT['tolDt'], $ADAT['igDt']);
+ $ok = $ok && db_query($q, array('fv' => 'orarendBetoltes/keresztülnyúló kettévágása', 'modul' => 'naplo', 'values' => $v), $lr);
+ // a "balról" benyúlóakat tolDt-ig levágjuk
+ $q = "UPDATE `%s`.orarendiOra SET igDt='%s' - INTERVAL 1 DAY WHERE tolDt<'%s' AND '%s'<=igDt";
+ $v = array($ADAT['tanevDb'], $ADAT['tolDt'], $ADAT['tolDt'], $ADAT['tolDt']);
+ $ok = $ok && db_query($q, array('fv' => 'orarendBetoltes/balról levág', 'modul' => 'naplo', 'values' => $v), $lr);
+ // a "jobbról" benyúlóakat igDt-től levágjuk
+ $q = "UPDATE `%s`.orarendiOra SET tolDt='%s' + INTERVAL 1 DAY WHERE '%s'<tolDt AND '%s'<igDt";
+ $v = array($ADAT['tanevDb'], $ADAT['igDt'], $ADAT['tolDt'], $ADAT['igDt']);
+ $ok = $ok && db_query($q, array('fv' => 'orarendBetoltes/jobbról levág', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+
+ // felvesszük az új bejegyzéseket
+ $v = $V = array();
+ for ($i = 0; $i < count($OrarendiOra); $i++) {
+ if ($OrarendiOra[$i][3] != 'NULL') {
+ // Nem hibás, de jobb lenne a %s-t csak sztring-ekre hasznáni, a NULL-ra nem...
+ if ($OrarendiOra[$i][6] == '') $OrarendiOra[$i][6] = 'NULL';
+ if ($OrarendiOra[$i][6] == 'NULL')
+ $q = "INSERT INTO `%s`.orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt)
+ VALUES (%u, %u, %u, %u, '%s', '%s', %s, '%s', '%s')";
+ else
+ $q = "INSERT INTO `%s`.orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt)
+ VALUES (%u, %u, %u, %u, '%s', '%s', %u, '%s', '%s')";
+ $v = mayor_array_join(array($ADAT['tanevDb']), $OrarendiOra[$i]);
+ $ok = $ok && db_query($q, array('fv' => 'orarendBetoltes/orarendiOra beszúrás #'.$i, 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+ }
+/*
+ $v = $V = array();
+ for ($i = 0; $i < count($OrarendiOra); $i++)
+ if ($OrarendiOra[$i][3] != 'NULL') {
+ // Nem hibás, de jobb lenne a %s-t csak sztring-ekre hasznáni, a NULL-ra nem...
+ if ($OrarendiOra[$i][6] == 'NULL') $V[] = "(%u, %u, %u, %u, '%s', '%s', %s, '%s', '%s')";
+ else $V[] = "(%u, %u, %u, %u, '%s', '%s', %u, '%s', '%s')";
+ $v = array_merge($v, $OrarendiOra[$i]);
+ }
+ $q = "INSERT INTO `%s`.orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt)
+ VALUES ".implode(',', $V);
+ array_unshift($v, $ADAT['tanevDb']);
+ $ok = $ok && db_query($q, array('fv' => 'orarendBetoltes/orarendiOra beszúrás', 'modul' => 'naplo', 'values' => $v), $lr);
+*/
+ // orarendiOraTankor tábla feltöltése
+ if (is_array($OrarendiOraTankor) && count($OrarendiOraTankor) > 0) {
+ $v = $V = array();
+ for ($i = 0; $i < count($OrarendiOraTankor); $i++) {
+ $V[] = "(%u, '%s', '%s', %u)";
+ $v = mayor_array_join($v, $OrarendiOraTankor[$i]);
+ }
+ array_unshift($v, $ADAT['tanevDb']);
+ $q = "INSERT INTO `%s`.orarendiOraTankor (tanarId, osztalyJel, targyJel, tankorId) VALUES ".implode(',', $V);
+ $ok = $ok && db_query($q, array('fv' => 'orarendBetoltes/orarendiOraTankor beszúrás', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+
+ if ($ok) {
+ db_commit($lr);
+ $_SESSION['alert'][] = 'info:success';
+ } else {
+ db_rollback($lr);
+ }
+ db_close($lr);
+ return $ok;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/orarendEllenorzes.php b/mayor-orig/www/include/modules/naplo/orarend/orarendEllenorzes.php
new file mode 100644
index 00000000..43639165
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/orarendEllenorzes.php
@@ -0,0 +1,70 @@
+<?php
+
+ function checkOrarendiOraTankor($ADAT) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $ADAT['tanev']);
+ $q = "SELECT * FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ LEFT JOIN `%s`.osztalyNaplo ON orarendiOra.osztalyJel=osztalyId
+ WHERE tankorId IS NULL";
+ $v = array($tanevDb, $tanevDb, $tanevDb);
+ return db_query($q, array('fv' => 'checkOrarendiOraTankor', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+ function checkTankorOraszam($ADAT) {
+
+
+ $return = array();
+
+ if (!is_array($ADAT['orarendiHetek']) || count($ADAT['orarendiHetek']) == 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:checkTankorOraszam:orarendiHetek';
+ return $return;
+ }
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $ADAT['tanev']);
+ $hetDb = count($ADAT['orarendiHetek']);
+ $q = "SELECT tankorId,COUNT(*)/$hetDb AS hetiOraszam FROM `%s`.orarendiOraTankor
+ LEFT JOIN `%s`.orarendiOra USING (tanarId,osztalyJel,targyJel)
+ WHERE tolDt <= '%s' AND '%s' <= igDt GROUP BY tankorId";
+ $v = array($tanevDb, $tanevDb, $ADAT['dt'], $ADAT['dt']);
+ $ret = db_query($q, array('fv' => 'checkTankorOraszam', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $v));
+
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+
+ $A = $ADAT['tankorok'][$i]; $tankorId = $A['tankorId'];
+ if ($A['hetiOraszam'] != $ret[$tankorId]['hetiOraszam']) $return[] = array(
+ 'tankorId' => $tankorId,
+ 'tankorNev' => $A['tankorNev'],
+ 'tankorHetiOraszam' => number_format(floatval($A['hetiOraszam']), 2, ',', ''),
+ 'orarendHetiOraszam' => number_format(floatval($ret[$tankorId]['hetiOraszam']), 2, ',', '')
+ );
+ }
+
+ return $return;
+
+ }
+
+ function checkHianyzoTermek($ADAT) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $ADAT['tanev']);
+ $q = "SELECT het,nap,ora,TRIM(CONCAT_WS(' ',viseltNevElotag,viseltCsaladinev,viseltUtonev)) AS tanarNev,osztalyNaplo.osztalyJel,targyJel
+ FROM `%s`.orarendiOra LEFT JOIN ".__INTEZMENYDBNEV.".tanar USING (tanarId)
+ LEFT JOIN `%s`.osztalyNaplo ON osztalyId=orarendiOra.osztalyJel
+ WHERE teremId IS NULL AND tolDt <= '%s' AND '%s' <= igDt
+ ORDER BY tanarNev, osztalyNaplo.osztalyJel";
+ $v = array($tanevDb, $tanevDb, $ADAT['dt'], $ADAT['dt']);
+ return db_query($q, array('fv' => 'checkHianyzoTermek', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+ function checkTeremUtkozes($ADAT) {
+
+ $q = "SELECT het,nap,ora,teremId,COUNT(*) AS db FROM `%s`.orarendiOra
+ WHERE teremId IS NOT NULL AND tolDt <= '%s' AND '%s' <= igDt
+ GROUP BY het,nap,ora,teremId HAVING db>1";
+ $v = array(tanevDbNev(__INTEZMENY, $ADAT['tanev']), $ADAT['dt'], $ADAT['dt']);
+ return db_query($q, array('fv' => 'checkTeremUtkozes', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/orarendModosito.php b/mayor-orig/www/include/modules/naplo/orarend/orarendModosito.php
new file mode 100644
index 00000000..8a8999dc
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/orarendModosito.php
@@ -0,0 +1,304 @@
+<?php
+
+ function getHibasOrak() {
+
+ $q = "SELECT * FROM orarendiOra LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel) LEFT JOIN nap
+ ON (((DAYOFWEEK(dt)+5) MOD 7)+1 = orarendiOra.nap)
+ AND orarendiOra.het=nap.orarendiHet
+ AND orarendiOra.tolDt<=dt AND orarendiOra.igDt>=dt
+ HAVING nap.dt IS NULL";
+
+ return db_query($q, array('fv' => 'getHibasOrak', 'modul' => 'naplo', 'result' => 'indexed'), $lr);
+ }
+
+ function checkHaladasi($SET = array('tolDt'=>null,'igDt'=>null)) {
+ $q = "SELECT dt,count(*) as db FROM ora WHERE dt BETWEEN '%s' AND '%s' GROUP BY dt";
+ $v = array($SET['tolDt'],$SET['igDt']);
+ return db_query($q, array('fv' => 'checkHaladasi', 'modul' => 'naplo', 'result' => 'assoc','keyfield'=>'dt','values'=>$v));
+ }
+
+ function orarendiOraTankorFelvesz($ADAT) { // ez egy másolata az orarendiOraTankorAssoc() függvénynek...
+
+ $lr = db_connect('naplo');
+/*
+ foreach( array_unique($_POST['ORARENDKULCSOK']) as $_k => $_v) {
+ list($_tanarId,$_osztalyJel,$_targyJel) = explode('%',$_v);
+ $q = "DELETE FROM orarendiOraTankor WHERE tanarId=%u AND osztalyJel='%s' AND targyJel='%s'";
+ $v = array($_tanarId, $_osztalyJel, $_targyJel);
+ db_query($q, array('fv' => 'orarendiOraTankorAssoc', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+*/
+
+// for ($i = 0; $i < count($ADAT); $i++) {
+ $_tanarId = $ADAT['tanarId'];
+ $_osztalyJel = $ADAT['osztalyJel'];
+ $_targyJel = $ADAT['targyJel'];
+ $_tankorId = $ADAT['tankorId'];
+ if (!is_null($_tanarId)) {
+ // bugfix 152->153. Muszáj kitörölni, mert előtte már lehet hogy egy másik tankörhöz rögzítettük ugyanazt a kulcsot... ????
+ // ez így persze egy sor felesleges query.
+ $q = "DELETE FROM orarendiOraTankor WHERE tanarId=%u AND osztalyJel='%s' AND targyJel='%s'";
+ $v = array($_tanarId, $_osztalyJel, $_targyJel);
+ $db = db_query($q, array('fv' => 'orarendTankor', 'modul' => 'naplo', 'result' => 'affected rows', 'values' => $v), $lr);
+ $q = "REPLACE INTO orarendiOraTankor (tanarId,osztalyJel,targyJel,tankorId) VALUES (%u, '%s', '%s', %u)";
+ $v = array($_tanarId, $_osztalyJel, $_targyJel, $_tankorId);
+ db_query($q, array('fv' => 'orarendTankor', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+// }
+ db_close($lr);
+
+ }
+
+ function orarendiOraTorol($ADAT) {
+
+ //$q = "DELETE FROM orarendiOra WHERE tanarId=%u AND osztalyJel='%s' AND targyJel='%s' AND tolDt='%s'";
+ //$v = array($ADAT['tanarId'], $ADAT['osztalyJel'], $ADAT['targyJel'], $ADAT['tolDt']);
+ $q = "DELETE FROM orarendiOra WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u AND tolDt='%s'";
+ $v = array($ADAT['het'],$ADAT['nap'], $ADAT['ora'], $ADAT['tanarId'], $ADAT['tolDt']);
+ db_query($q, array('fv' => 'orarendiOraTorol', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ }
+
+ function getFelvehetoBlokk($ADAT) {
+
+ $RET = array();
+ if (count($ADAT['tankorIds']) > 0) {
+ $q = "SELECT DISTINCT blokkId, blokkNev FROM tankorBlokk LEFT JOIN blokk USING (blokkId) WHERE tankorId IN (".implode(',',$ADAT['tankorIds']).")";
+ $RET = db_query($q, array('fv'=>'getFelvehetoBlokkok', 'modul' => 'naplo', 'result' => 'indexed'));
+ }
+ return $RET;
+
+ }
+
+ function teremModosit($ADAT) {
+ if ($ADAT['tolDt']=='' || $ADAT['igDt']=='') return false;
+ $ok = true;
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+
+ if (is_null($ADAT['teremId'])) {
+ $v = array($ADAT['het'], $ADAT['nap'], $ADAT['ora'], $ADAT['tanarId'], $ADAT['tolDt'], $ADAT['igDt']);
+ $q = "UPDATE orarendiOra SET teremId = NULL WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u AND tolDt<='%s' AND '%s'<=igDt";
+ $r = db_query($q, array('fv'=>'teremModosit', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ } else {
+
+ // Ellenőrizzük hogy foglalt-e...
+ $v = array($ADAT['het'], $ADAT['nap'], $ADAT['ora'], $ADAT['teremId'], $ADAT['tolDt'], $ADAT['igDt']);
+ $q = "SELECT * FROM orarendiOra WHERE het=%u AND nap=%u AND ora=%u AND teremId=%u AND tolDt<='%s' AND '%s'<=igDt";
+ $r = db_query($q, array('fv'=>'teremModosit', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if (count($r)>0) {
+ // ez a terem foglalt ... mi legyen?
+ $_SESSION['alert'][] = 'info:nem_szabadTerem:'.$ADAT['teremId'];
+ db_rollback($lr); db_close($lr);
+ return false;
+ }
+ // Van ilyen bejegyzés???
+ $v = array($ADAT['het'], $ADAT['nap'], $ADAT['ora'], $ADAT['tanarId'], $ADAT['igDt'], $ADAT['tolDt']);
+// $q = "SELECT * FROM orarendiOra WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u AND tolDt<='%s' AND '%s'<=igDt";
+ $q = "SELECT * FROM orarendiOra WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u";
+ $ret = db_query($q, array('fv'=>'teremModosit', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret===false) { $_SESSION['alert'][] = 'info:nincs_bejegyzes:'; db_rollback($lr); db_close($lr); return false; }
+ // - -- --- ---- -----
+ for ($i=0; $i<count($ret); $i++) {
+ if ($ADAT['teremId'] != '') {
+ $q = "UPDATE orarendiOra SET teremId='%s' WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u AND tolDt='%s' AND igDt='%s'";
+ $v = array($ADAT['teremId'],$ADAT['het'],$ADAT['nap'],$ADAT['ora'],$ADAT['tanarId'],$ret[$i]['tolDt'],$ret[$i]['igDt']);
+ $r = db_query($q, array('fv'=>'teremModosit','modul'=>'naplo','values'=>$v, 'rollback'=>true), $lr);
+ if ($r===false) $ok=false;
+ }
+ }
+ }
+
+ if ($ok) db_commit($lr); else db_rollback($lr);
+ db_close($lr);
+
+
+ }
+
+ function pluszBlokkFelvesz($ADAT) {
+
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+
+ $TANKORIDK = getTankorokByBlokkId(array($ADAT['blokkId']));
+ for ($i=0; $i<count($TANKORIDK); $i++) {
+ $A = $ADAT; // az alapértelmezett adatokat vegyük át, majd írjuk felül:
+ $A['tankorId'] = $TANKORIDK[$i];
+ $A['tanarIdk'] = getTankorTanaraiByInterval($A['tankorId'],array('tolDt' => $ADAT['tolDt'], 'igDt' => $ADAT['igDt']));
+ $A['tanarId'] = $A['tanarIdk'][0]['tanarId']; // az elsőt vegyük alapul ha több van :(
+ $ok = pluszOraFelvesz($A, $lr);
+ if ($ok === false) break;
+ }
+
+ if ($ok) db_commit($lr); else db_rollback($lr);
+ db_close($lr);
+
+ }
+
+
+
+ function pluszOraFelvesz($ADAT, $olr='') {
+
+ if ($ADAT['tolDt']=='' || $ADAT['igDt']=='') return false;
+
+ // kell egyáltalán ellenőrizni az ütközéseket?
+ // Ha a felveendő órán nem kötelező a jelenlét, nem érdekel minket az egész!
+ $TA = getTankorAdat($ADAT['tankorId']);
+
+ $ok = true;
+ if ($olr=='') {
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+ } else {
+ $lr = $olr;
+ }
+
+ // Csak akkor ellenőrizzük, ha tényleg kell - persze értelmetlen állapot is előidézhető így...
+ if ($TA[$ADAT['tankorId']][0]['jelenlet'] != 'nem kötelező') {
+ // ütközések ellenőrzése
+ // az adott tanárnak lett-e közben azon a helyen órája?
+
+ // -- tanarLukasOrajae();
+
+ // a diákok ütköznek-e? (jelenlét és felmentés vizsgálata
+ $DIAKOK = getTankorDiakjaiByInterval($ADAT['tankorId'], __TANEV, $ADAT['tolDt'], $ADAT['igDt'], $lr);
+ for ($i=0; $i<count($DIAKOK['idk']); $i++) {
+ $_diakId = $DIAKOK['idk'][$i];
+ // Gyűjtsük ki azokat a dátumokat, amikben vizsgálódunk
+ // ... minden munkatervben azonos az órarendi hát (tanítási nap esetén) ...
+ $q = "select distinct dt from nap where dt>='%s' and dt<='%s' and dayofweek(dt)=%u and orarendiHet!=0";
+ $v = array($ADAT['tolDt'],$ADAT['igDt'],$ADAT['nap']+1);
+ $NAPOK = db_query($q, array('fv'=>'pluszOraFelvesz-check','modul'=>'naplo', 'result'=>'indexed', 'values'=> $v), $lr);
+ for ($n=0; $n<count($NAPOK); $n++) {
+ $dt = $NAPOK[$n]['dt'];
+ // ezen a napok van -e olyan tankörnek órája, amire nincs felmentése - szuperlekérdezés! :) - vigyázz az intervallumokkal és a NOT NULL-okkal!
+ // ha van, az bizony ütközést jelent, azon az órán ott kellene lennie a diáknak!
+ $q = "SELECT distinct orarendiOraTankor.tankorId FROM orarendiOra
+ LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorDiak ON (orarendiOraTankor.tankorId = tankorDiak.tankorId AND tankorDiak.diakId=%u AND tankorDiak.beDt<='%s' AND (tankorDiak.kiDt>='%s' or tankorDiak.kiDt IS NULL))
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorDiakFelmentes ON (tankorDiakFelmentes.felmentesTipus='óralátogatás alól' AND orarendiOraTankor.tankorId = tankorDiak.tankorId AND tankorDiakFelmentes.diakId=%u AND tankorDiakFelmentes.beDt<='%s' AND (tankorDiakFelmentes.kiDt>='%s' or tankorDiakFelmentes.kiDt IS NULL))
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ WHERE tankorTipus.jelenlet='kötelező' AND tolDt<='%s' AND igDt>='%s' AND orarendiOra.het=%u AND orarendiOra.nap=%u AND orarendiOra.ora=%u
+ AND tankorDiak.tankorId IS NOT NULL AND tankorDiakFelmentes.tankorId IS NULL";
+ $v = array($_diakId,$dt,$dt, $_diakId, $dt, $dt,$dt,$dt,$ADAT['het'],$ADAT['nap'],$ADAT['ora']);
+ $UTKOZIK = db_query($q, array('fv'=>'pluszOraFelvesz-pre','modul'=>'naplo','result'=>'indexed', 'values'=> $v), $lr);
+ // és jelezzük a hibát!
+ // megj: ennél azért szofisztikáltabb is lehetne a hibajelentő függvény...
+ if (count($UTKOZIK)>0) {
+ // sajnos ütközés van, nem vehetjük fel:
+ $ok = false;
+ if (is_null($_DA[$_diakId])) {
+ $_DA[$_diakId] = getDiakAdatById($_diakId,null,$lr); // csak akkor, ha le kell kérdezni
+ $db_utkozes++;
+ }
+ $_U = array();
+ for ($u=0; $u<count($UTKOZIK); $u++) {
+ if ($UTKOZIK[$u]['tankorId'] == $ADAT['tankorId']) $_SESSION['alert'][] = 'info:utkozes::::::saját magával ütközik ezen a napon!:'.$dt;
+ $_U[] = $UTKOZIK[$u]['tankorId'];
+ }
+ $_RESZLET[] = $_DA[$_diakId]['diakNev'].' '.$_DA[$_diakId]['diakId'].':tankorId '.implode(', ',$_U).':dt '.$dt;
+ }
+ }
+
+ }
+
+ // ütközés ellenőr vége
+ } // ha regisztralando, kulonben nem kell ellenőrizni az ütközéseket
+
+ if ($ok===true) {
+ $q = "SELECT targyJel,osztalyJel FROM orarendiOraTankor WHERE tanarId=%u AND tankorId=%u";
+ $record = db_query($q, array('fv'=>'pluszOraFelvesz','modul'=>'naplo','result'=>'record', 'values'=> array($ADAT['tanarId'],$ADAT['tankorId'])), $lr);
+ if ($record===false || $record['targyJel']=='' || $record['osztalyJel']=='') {
+ $record=array(); // reset
+ $record['targyJel'] = 'm-'.$ADAT['tankorId'];
+ $record['osztalyJel'] = 'm-'.$ADAT['tanarId'];
+ $q = "REPLACE INTO orarendiOraTankor (tanarId,osztalyJel,targyJel,tankorId) VALUES (%u,'%s','%s',%u)";
+ $r = db_query($q, array('fv'=>'pluszOraFelvesz/b','modul'=>'naplo','values'=> array($ADAT['tanarId'],$record['osztalyJel'],$record['targyJel'],$ADAT['tankorId'])), $lr);
+ if ($r===false) $ok = false;
+ } // különben van megfelelő bejegyzésünk
+ if ($ADAT['teremId']=='') $ADAT['teremId'] = "null";
+ else $ADAT['teremId'] = intval($ADAT['teremId']);
+ if ($ok===true) {
+ // Nem hibás, de jobb lenne a %s-t csak sztring-ekre használni, NULL-t valahogy másképp kezelni.
+ $q = "INSERT INTO orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt) VALUES (%u,%u,%u,%u,'%s','%s',%s,'%s','%s')";
+ $v = array($ADAT['het'],$ADAT['nap'],$ADAT['ora'],$ADAT['tanarId'],$record['osztalyJel'],$record['targyJel'],$ADAT['teremId'],$ADAT['tolDt'],$ADAT['igDt']);
+ $r = db_query($q, array('fv'=>'pluszOraFelvesz/c','modul'=>'naplo','values'=>$v), $lr);
+ if ($r===false) $ok = false;
+ }
+ if ($ok===true && $ADAT['haladasiModositando']!=0) {
+ // ciklus $ADAT['tolDt'],$ADAT['igDt'] között, órarend
+ $q = "SELECT DISTINCT dt,count(ora.oraId) AS db FROM nap LEFT JOIN ora USING (dt) WHERE nap.tipus='tanítási nap' AND orarendiHet=%u AND dt>='%s' AND dt<='%s' AND (WEEKDAY(dt)+1)=%u GROUP BY dt HAVING db>0 ORDER BY dt";
+ $v = array($ADAT['het'],$ADAT['tolDt'],$ADAT['igDt'],$ADAT['nap']);
+ $NAP = db_query($q, array('fv'=>'pluszOraFelvesz/ora','modul'=>'naplo','values'=>$v,'result'=>'indexed'), $lr);
+ for ($i=0; $i<count($NAP); $i++) {
+ $_dt = $NAP[$i]['dt'];
+ ujOraFelvesz(
+ array('dt'=>$_dt,
+ 'ora'=>$ADAT['ora'],
+ 'ki'=> $ADAT['tanarId'],
+ 'tipus'=>'normál',
+ 'tankorId'=>$ADAT['tankorId'],
+ 'eredet'=>'órarend',
+ 'leiras'=>'',
+ 'feladatTipusId'=>null,
+ 'munkaido'=>'lekötött'),
+ $lr); // az ütközést nem kezeljük külön. Ha van, akkor is tovább mehetünk
+ }
+ }
+ } else {
+ if (is_array($_RESZLET) && count($_RESZLET)>0)
+ $_SESSION['alert'][] = 'info:utkozes:'.$db_utkozes.':'.$ADAT['het'].':'.$ADAT['nap'].':'.$ADAT['ora'].':'.implode(' *** ',$_RESZLET);
+ }
+ if ($olr=='') {
+ if ($ok) db_commit($lr); else db_rollback($lr);
+ db_close($lr);
+ } else {
+ return $ok;
+ }
+ }
+
+ function orarendiOraLezar($ADAT) {
+
+ $lr = db_connect('naplo', array('fv' => 'orarendiOraLezar'));
+ db_start_trans($lr);
+
+ // Az érintett órarendi bejegyzés lekérdezése
+ $v = array($ADAT['het'], $ADAT['nap'], $ADAT['ora'], $ADAT['tanarId'], $ADAT['dt'], $ADAT['dt'], $ADAT['kulcsTolDt']);
+ $q = "SELECT * FROM orarendiOra WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u AND tolDt<='%s' AND '%s'<=igDt AND tolDt='%s'";
+ $ret = db_query($q, array('fv'=>'orarendiOraLezar', 'modul' => 'naplo', 'result' => 'record', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret===false) { db_close($lr); return false; }
+ if (count($ret)>0 && $ret['teremId'] == '') $ret['teremId'] = 'NULL';
+
+ // Az érintett bejegyzés törlése
+ $q = "DELETE FROM orarendiOra WHERE het=%u AND nap=%u AND ora=%u AND tanarId=%u AND tolDt<='%s' AND '%s'<=igDt AND tolDt='%s'";
+ $r = db_query($q, array('fv'=>'orarendiOraLezar', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r===false) { db_close($lr); return false; }
+
+ // A bejegyzés tolDt előtti részének visszarakása - ha van egyáltalán
+ if (strtotime($ret['tolDt']) < strtotime($ADAT['tolDt'])) {
+ $igDt = date('Y-m-d', strtotime('-1 day', strtotime($ADAT['tolDt'])));
+ $q = "INSERT INTO orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt) VALUES
+ (".$ret['het'].",".$ret['nap'].",".$ret['ora'].",".$ret['tanarId'].",
+ '".$ret['osztalyJel']."','".$ret['targyJel']."',".$ret['teremId'].",'".$ret['tolDt']."','".$igDt."')";
+ $r = db_query($q, array('fv'=>'orarendiOraLezar', 'modul' => 'naplo', 'rollback' => true), $lr);
+ if (!$r) { db_close($lr); return false; }
+ }
+
+ // A bejegyzés igDt utáni részének visszarakása - itt esetleg lehet ütközés!
+ if (strtotime($ret['igDt']) > strtotime($ADAT['igDt'])) {
+ $tolDt = date('Y-m-d', strtotime('+1 day', strtotime($ADAT['igDt'])));
+ $q = "INSERT INTO orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt) VALUES
+ (".$ret['het'].",".$ret['nap'].",".$ret['ora'].",".$ret['tanarId'].",
+ '".$ret['osztalyJel']."','".$ret['targyJel']."',".$ret['teremId'].",'".$tolDt."','".$ret['igDt']."')";
+ $r = db_query($q, array('fv'=>'orarendiOraLezar', 'modul' => 'naplo', 'rollback' => true), $lr);
+ if (!$r) { db_close($lr); return false; }
+ }
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/orarendTankor.php b/mayor-orig/www/include/modules/naplo/orarend/orarendTankor.php
new file mode 100644
index 00000000..212dbb07
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/orarendTankor.php
@@ -0,0 +1,33 @@
+<?php
+
+ function orarendiOraTankorAssoc() {
+
+ $lr = db_connect('naplo');
+
+ foreach( array_unique($_POST['ORARENDKULCSOK']) as $_k => $_v) {
+ list($_tanarId,$_osztalyJel,$_targyJel) = explode('%',$_v);
+ $q = "DELETE FROM orarendiOraTankor WHERE tanarId=%u AND osztalyJel='%s' AND targyJel='%s'";
+ $v = array($_tanarId, $_osztalyJel, $_targyJel);
+ db_query($q, array('fv' => 'orarendiOraTankorAssoc', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+
+ for ($i = 0; $i < count($_POST['ORARENDKEY']); $i++) {
+ if ($_POST['ORARENDKEY'][$i]!='') {
+ list($_tanarId,$_osztalyJel,$_targyJel,$_tankorId) = explode('%',$_POST['ORARENDKEY'][$i]);
+ if (!is_null($_tanarId)) {
+ // bugfix 152->153. Muszáj kitörölni, mert előtte már lehet hogy egy másik tankörhöz rögzítettük ugyanazt a kulcsot... ????
+ // ez így persze egy sor felesleges query.
+ $q = "DELETE FROM orarendiOraTankor WHERE tanarId=%u AND osztalyJel='%s' AND targyJel='%s'";
+ $v = array($_tanarId, $_osztalyJel, $_targyJel);
+ $db = db_query($q, array('fv' => 'orarendTankor', 'modul' => 'naplo', 'result' => 'affected rows', 'values' => $v), $lr);
+ $q = "REPLACE INTO orarendiOraTankor (tanarId,osztalyJel,targyJel,tankorId) VALUES (%u, '%s', '%s', %u)";
+ $v = array($_tanarId, $_osztalyJel, $_targyJel, $_tankorId);
+ db_query($q, array('fv' => 'orarendTankor', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+ }
+ }
+ db_close($lr);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/orarendTeremModositas.php b/mayor-orig/www/include/modules/naplo/orarend/orarendTeremModositas.php
new file mode 100644
index 00000000..cc1b5ea6
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/orarendTeremModositas.php
@@ -0,0 +1,28 @@
+<?php
+
+ function teremModositas($ADAT) {
+
+ $dt = readVariable($ADAT['dt'], 'datetime', null);
+ initTolIgDt($ADAT['tanev'], $dt, $dt);
+ $tanevDb = tanevDbNev(__INTEZMENY, $ADAT['tanev']);
+
+ $return = false;
+
+ if (is_array($ADAT['foglaltTermek'][ $ADAT['teremId'] ])) {
+
+ $return = $ADAT['foglaltTermek'][ $ADAT['teremId'] ]['tanarId'];
+ // A foglalt terem felszabadítása
+ $q = "UPDATE `%s`.orarendiOra SET teremId=NULL WHERE tolDt<='%s' AND '%s'<=igDt AND het=%u AND nap=%u AND ora=%u AND teremId=%u";
+ $v = array($tanevDb, $dt, $dt, $ADAT['het'], $ADAT['nap'], $ADAT['ora'], $ADAT['teremId']);
+ db_query($q, array('fv' => 'teremModositas/foglalt terem felszabadítása', 'modul' => 'naplo', 'values' => $v));
+ }
+ // teremhozzárendelés módosítása
+ $q = "UPDATE `%s`.orarendiOra SET teremId=%u WHERE tolDt <= '%s' AND '%s' <= igDt AND het=%u AND nap=%u AND ora=%u AND tanarId=%u";
+ $v = array($tanevDb, $ADAT['teremId'], $dt, $dt, $ADAT['het'], $ADAT['nap'], $ADAT['ora'], $ADAT['tanarId']);
+ db_query($q, array('fv' => 'teremModositas/foglalt terem felszabadítása', 'modul' => 'naplo', 'values' => $v));
+
+ return $return;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/orarend/tanarOrarend.php b/mayor-orig/www/include/modules/naplo/orarend/tanarOrarend.php
new file mode 100644
index 00000000..b008e880
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/orarend/tanarOrarend.php
@@ -0,0 +1,222 @@
+<?php
+
+ define('_TANARORARENDFILE',_DOWNLOADDIR.'/private/export/tanarOrarend');
+
+ function getTanarOrarend($orarendiHet = 1, $felev=1, $dt = 'CURDATE()') {
+
+ if ($dt=='') $dt = date('Y-m-d');
+
+ $q = "SELECT * FROM orarendiOra LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel) LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE tanev=".__TANEV." AND szemeszter=%u
+ AND tolDt<='%s' AND igDt>='%s' AND het=%u ORDER BY nap,ora";
+ $v = array($felev, $dt, $dt, $orarendiHet);
+ $A = db_query($q, array('fv' => 'getTanarOrarend', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'tanarId', 'values' => $v ));
+
+ if (is_array($A)) foreach ($A as $tanarId => $tOrak) {
+ for ($i = 0; $i < count($tOrak); $i++) {
+ $nap = $tOrak[$i]['nap'];
+ $ora = $tOrak[$i]['ora'];
+ $ret[$tanarId][$nap][$ora] = $tOrak[$i];
+ }
+ }
+ return $ret;
+
+ }
+
+ // Ezzel a fügvénnyel jó Excelben, de nem jó OpenOffice-ban
+ function OrarendFileGeneralasXLS($Tanarok, $Orak) {
+
+ $fp = fopen(_TANARORARENDFILE.'.xls', 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:wrong_data:OrarendFileGeneralas:file:'._TANARORARENDFILE;
+ return false;
+ }
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+
+ fputs($fp, '<?xml version="1.0" encoding="utf-8" ?>'."\r\n");
+ fputs($fp, '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">'."\r\n");
+ fputs($fp, '<Worksheet ss:Name="Tanári órarend">'."\r\n");
+ fputs($fp, '<Table>'."\r\n");
+
+ for ($i = 0; $i < count($Tanarok); $i++) {
+
+ $tanarId = $Tanarok[$i]['tanarId'];
+ $tanarNev = $Tanarok[$i]['tanarNev'];
+
+ $sor = " <Row>\r\n <Cell><Data ss:Type=\"String\">$tanarNev</Data></Cell>\r\n";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $Ora = $Orak[$tanarId][$nap][$ora];
+ $sor .= ' <Cell><Data ss:Type="String">'.$Ora['osztalyJel']." ".$Ora['targyJel'].'</Data></Cell>'."\r\n";
+ }
+ }
+ $sor .= " <Cell><Data ss:Type=\"String\">$tanarNev</Data></Cell>\r\n </Row>\r\n";
+
+ fputs($fp, $sor);
+ }
+
+ fputs($fp, '</Table>'."\r\n");
+ fputs($fp, '</Worksheet>'."\r\n");
+ fputs($fp, '</Workbook>'."\r\n");
+
+ fclose($fp);
+ return true;
+
+ }
+
+
+ // Ha ezt rakom be, akkor OpenOffice-szal jó, Excellel csak akkor, ha előbb lementem
+ function OrarendFileGeneralasCSV($Tanarok, $Orak) {
+
+ $fp = fopen(_TANARORARENDFILE.'.csv', 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:wrong_data:OrarendFileGeneralas:file:'._TANARORARENDFILE;
+ return false;
+ }
+ $napiMaxOra = getMaxOra();
+ $napiMinOra = getMinOra();
+
+ $sor = "Tanár";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $sor .= ";$nap./$ora.";
+ }
+ }
+ $sor .= ";Tanár\n";
+ fputs($fp, $sor);
+
+ for ($i = 0; $i < count($Tanarok); $i++) {
+
+ $tanarId = $Tanarok[$i]['tanarId'];
+ $tanarNev = $Tanarok[$i]['tanarNev'];
+
+ $sor = "$tanarNev;";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $Ora = $Orak[$tanarId][$nap][$ora];
+ $sor .= $Ora['tankorNev']." ".$Ora['tankorId'].';';
+// $sor .= $Ora['osztalyJel']." ".$Ora['targyJel'].';';
+ }
+ }
+ $sor .= "$tanarNev\n";
+
+ fputs($fp, $sor);
+ }
+
+ fclose($fp);
+ return true;
+
+ }
+
+ // Ha ezt rakom be, akkor OpenOffice-szal jó, Excellel csak akkor, ha előbb lementem
+ function OrarendFileGeneralasTXT($Tanarok, $Orak) {
+
+ $fp = fopen(_TANARORARENDFILE.'.txt', 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:wrong_data:OrarendFileGeneralas:file:'._TANARORARENDFILE;
+ return false;
+ }
+ $napiMaxOra = getMaxOra();
+ $napiMinOra = getMinOra();
+
+ $sor = "Tanár";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $sor .= " $nap./$ora.";
+ }
+ }
+ $sor .= " Tanár\n";
+ fputs($fp, $sor);
+
+ for ($i = 0; $i < count($Tanarok); $i++) {
+
+ $tanarId = $Tanarok[$i]['tanarId'];
+ $tanarNev = $Tanarok[$i]['tanarNev'];
+
+ $sor = "$tanarNev ";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $Ora = $Orak[$tanarId][$nap][$ora];
+ $sor .= $Ora['tankorNev']." ".$Ora['tankorId'].' ';
+// $sor .= $Ora['osztalyJel']." ".$Ora['targyJel'].' ';
+ }
+ }
+ $sor .= "$tanarNev\n";
+
+ fputs($fp, $sor);
+ }
+
+ fclose($fp);
+ return true;
+
+ }
+
+
+ function OrarendFileGeneralasHTML($Tanarok, $Orak) {
+
+ $fp = fopen(_TANARORARENDFILE.'.html', 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:wrong_data:OrarendFileGeneralas:file:'._TANARORARENDFILE;
+ return false;
+ }
+ $napiMaxOra = getMaxOra();
+ $napiMinOra = getMinOra();
+
+ fputs($fp, '
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Tanár órarend</title>
+ <style type="text/css">
+ table { border-spacing: 0px; border: 1px solid black; }
+ th, td { border: 1px solid black; }
+ </style>
+</head>
+<body>
+');
+
+ fputs($fp,'<table>'."\n");
+
+ $sor = "<tr><th>Tanár</th>";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $sor .= "<th>$nap./$ora.</th>";
+ }
+ }
+ $sor .= "<th>Tanár</th></tr>\n";
+ fputs($fp, $sor);
+
+ for ($i = 0; $i < count($Tanarok); $i++) {
+
+ fputs($fp, '<tr>'."\n");
+
+ $tanarId = $Tanarok[$i]['tanarId'];
+ $tanarNev = $Tanarok[$i]['tanarNev'];
+ fputs($fp, '<th>'.$tanarNev.'</th>'."\n");
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $Ora = $Orak[$tanarId][$nap][$ora];
+ $sor = '<td>'.$Ora['tankorNev']." ".$Ora['tankorId'].' - '.$Ora['teremId'].'</td>'."\n";
+ fputs($fp, $sor);
+ }
+ }
+ fputs($fp, '<th>'.$tanarNev.'</th>'."\n");
+ fputs($fp, '</tr>'."\n");
+ }
+ fputs($fp, '</table></body></html>'."\n");
+
+ fclose($fp);
+ return true;
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/bizonyitvany.php b/mayor-orig/www/include/modules/naplo/osztalyozo/bizonyitvany.php
new file mode 100644
index 00000000..1df529a4
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/bizonyitvany.php
@@ -0,0 +1,134 @@
+<?php
+
+ function getDiakBizonyitvany($diakId, $ADAT) {
+
+ $tanev = $ADAT['szemeszterAdat']['tanev'];
+ $szemeszter = $ADAT['szemeszterAdat']['szemeszter'];
+ $sorrendNev = $ADAT['sorrendNev'];
+ $osztalyId = $ADAT['osztalyId'];
+ if ($tanev == '') {
+ // Összes zárójegy lekérdezése
+ $q = "SELECT * FROM zaroJegy
+ LEFT JOIN targy USING (targyId)
+ LEFT JOIN szemeszter ON kezdesDt=(SELECT MAX(kezdesDt) FROM szemeszter WHERE kezdesDt<=hivatalosDt)
+ WHERE diakId=%u ORDER BY tanev,szemeszter,targyNev";
+ $r = db_query($q, array('fv' => 'getDiakBizonyitvany', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($diakId)));
+ $ret = array('tanevek' => array(), 'szemeszterek' => array(), 'tanevSzemeszterei' => array(), 'jegyek' => array());
+ if (is_array($ret)) foreach ($r as $i => $jegy) {
+ $ret['jegyek'][$jegy['targyId']][$jegy['tanev']][$jegy['szemeszter']][] = $jegy;
+ $ret['jegyekEvfolyamonkent'][$jegy['evfolyam']][$jegy['szemeszter']][] = $jegy;
+ if (!in_array($jegy['tanev'], $ret['tanevek'])) {
+ $ret['tanevek'][] = $jegy['tanev'];
+ $ret['tanevSzemeszterei'][$jegy['tanev']] = array();
+ }
+ if (!in_array($jegy['szemeszter'], $ret['tanevSzemeszterei'][$jegy['tanev']])) {
+ $ret['szemeszterek'][] = array('tanev' => $jegy['tanev'], 'szemeszter' => $jegy['szemeszter']);
+ $ret['tanevSzemeszterei'][$jegy['tanev']][] = $jegy['szemeszter'];
+ }
+ }
+ } else {
+ // Adott szemeszter tárgyainak
+ $ret['targyak'] = getTargyakByDiakIds(array($diakId), $ADAT['szemeszterAdat'], $osztalyId, $sorrendNev, array('result' => 'assoc', 'keyfield' => 'targyId'));
+ // Adott szemeszter zárójegyeinek lekérdezése
+ if (isset($sorrendNev) && $sorrendNev != '') {
+ $q = "SELECT *,zaroJegy.targyId FROM zaroJegy
+ LEFT JOIN targy USING (targyId)
+ LEFT JOIN ".__TANEVDBNEV.".targySorszam
+ ON zaroJegy.targyId = targySorszam.targyId AND osztalyId=%u AND sorrendNev='%s'
+ LEFT JOIN szemeszter ON kezdesDt=(SELECT MAX(kezdesDt) FROM szemeszter WHERE kezdesDt<=hivatalosDt)
+ WHERE diakId=%u AND tanev=%u AND szemeszter=%u ORDER BY sorszam,targyNev";
+ $v = array($osztalyId, $sorrendNev, $diakId, $tanev, $szemeszter);
+ } else {
+ $q = "SELECT *,zaroJegy.targyId FROM zaroJegy LEFT JOIN targy USING (targyId)
+ WHERE diakId=%u AND tanev=%u AND szemeszter=%u ORDER BY targyNev";
+ $v = array($diakId, $tanev, $szemeszter);
+ }
+ $r = db_query($q, array(
+ 'fv' => 'getDiakBizonyitvany', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v
+ ));
+
+ if (is_array($r)) foreach ($r as $i => $jegy) {
+ $ret['jegyek'][$jegy['targyId']][] = $jegy;
+// $ret['jegyekEvfolyamonkent'][$jegy['evfolyam']][$jegy['szemeszter']][] = $jegy;
+ }
+
+ $utolsoTanitasiNap = getOsztalyUtolsoTanitasiNap($osztalyId);
+ // éves óraszámok lekérdezése - tárgyanként
+ $q = "SELECT targyId,oraszam FROM tankorDiak LEFT JOIN tankorSzemeszter USING (tankorId) LEFT JOIN tankor USING (tankorId)
+ WHERE diakId=%u AND tanev=%u AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt)";
+ //$v = array($diakId, $tanev, $ADAT['szemeszterAdat']['zarasDt'], $ADAT['szemeszterAdat']['zarasDt']);
+ $v = array($diakId, $tanev, $utolsoTanitasiNap, $utolsoTanitasiNap);
+ $jres = db_query($q, array(
+ 'fv' => 'getDiakBizonyitvany/óraszám', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'targyId', 'values' => $v
+ ));
+
+ $szDb = $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']; // Feltételezzük, hogy a szemeszterek számozása 1-től indul és folyamatos
+ foreach ($jres as $targyId => $tAdat) {
+ $oraszam = 0;
+ for ($i = 0; $i < count($tAdat); $i++) {
+ $oraszam += $tAdat[$i]['oraszam'];
+ }
+ $ret['targyOraszam'][$targyId]['hetiOraszam'] = $oraszam / $szDb;
+ /*
+ A TANITASI_HETEK_SZAMA a diák (egyik) osztályához rendelt munkaterv alapján van meghatározva - így
+ csak az aktuális tanévben (__TANEV) van értelme. Ha több osztálya is van a tanulónak, akkor problémás...
+ */
+ if (defined('TANITASI_HETEK_SZAMA')) $ret['targyOraszam'][$targyId]['evesOraszam'] = $oraszam / $szDb * TANITASI_HETEK_SZAMA;
+ }
+ }
+ return $ret;
+ }
+
+ function getHianyzasOsszesitesByDiakId($diakId, $szemeszterAdat = '') { // DEPRECATED. a függvény helyett a share/hianyzas.php getDiakHianyzasOsszesites() - t használd!
+
+ $ret = array();
+ if (is_array($szemeszterAdat)) {
+ // Egy szemeszter hiányzási adatainak lekérdezése
+ if ($szemeszterAdat['statusz'] == 'aktív') {
+ // Folyó tanév - a tanév adatbázisból kérdezünk le
+ $Wnemszamit = defWnemszamit();
+ $q = "SELECT tankorTipus.jelleg,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt',1,NULL)) AS igazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL)) AS igazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) AS kesesPercOsszeg
+ FROM `%s`.hianyzas " .
+ $Wnemszamit['join'] .
+ "WHERE (
+ tipus = 'hiányzás' OR (tipus='késés' AND statusz='igazolatlan' AND perc IS NOT NULL)
+ ) AND dt<='%s' AND diakId=%u".
+ $Wnemszamit['nemszamit']
+ ." GROUP BY tankorTipus.jelleg"
+ ;
+ $v = array(tanevDbNev(__INTEZMENY, $szemeszterAdat['tanev']), $szemeszterAdat['zarasDt'], $diakId);
+ $ret = db_query($q, array('fv' => 'getDiakHianyzasOsszesitesByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield'=>'jelleg', 'values' => $v));
+ if (is_array($ret))
+ foreach ($ret as $_key=>$_val) {
+ $ret['igazolt'] += intval($ret[$_key]['igazolt']);
+ $ret['igazolatlan'] += intval($ret[$_key]['igazolatlan']);
+ }
+
+ $hozottHianyzas = getDiakHozottHianyzas($diakId, array('tanev'=> $szemeszterAdat['tanev'], 'igDt'=>$szemeszterAdat['zarasDt'] ));
+ $ret['igazolt'] += intval($hozottHianyzas['igazolt']['db']);
+ $ret['igazolatlan'] += intval($hozottHianyzas['igazolatlan']['db']);
+
+ } else {
+ // lezárt tanév - az intézmény adatbázisból kérdezünk le
+// Tudtommal az összesítésbe már csak a "beszámítandó" hiányzások kerülnek, így nem kell plusz feltétel... [bb - 2010-11-24]
+// $q = "SELECT * FROM hianyzasOsszesites WHERE diakId=%u AND tanev=%u AND szemeszter=%u $Wnemszamit";
+ $q = "SELECT * FROM hianyzasOsszesites WHERE diakId=%u AND tanev=%u AND szemeszter=%u";
+ $v = array($diakId, $szemeszterAdat['tanev'], $szemeszterAdat['szemeszter']);
+ $ret = db_query($q, array('fv' => 'getDiakHianyzasOsszesitesByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v));
+ }
+
+ } else {
+ // A diák összes hiányzási adata ??????????????
+ // ??????????????????????????? // ???????????????????????????
+ $q = "SELECT * FROM hianyzasOsszesites WHERE diakId=%u ORDER BY tanev,szemeszter";
+ $r = db_query($q, array('fv' => 'getDiakHianyzasOsszesitesByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($diakId)));
+ for ($i = 0; $i < count($r); $i++) $ret[$r[$i]['tanev']][$r[$i]['szemeszter']] = $r[$i];
+ }
+ return $ret;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/diak.php b/mayor-orig/www/include/modules/naplo/osztalyozo/diak.php
new file mode 100644
index 00000000..be285f8b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/diak.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ Module: naplo
+
+ getDiakJegyek($diakId, $SET, $olr)
+
+ +getTankorByDiakId
+ +getTankorDolgozatok
+*/
+
+ function getDiakJegyek($diakId, $SET = array('sulyozas'=>'1:1:1:1:1:1'), $olr = '') {
+
+ global $_TANEV, $KOVETELMENY;
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ if (isset($SET['sulyozas']) && $SET['sulyozas']!='') {
+ $suly = explode(':',':'.$SET['sulyozas']);
+ } else {
+ if (defined('__DEFAULT_SULYOZAS')) $suly = explode(':',':'.__DEFAULT_SULYOZAS);
+ else $suly = array(1,1,1,1,1,1);
+ }
+ $q = "SELECT DISTINCT jegyId, tankorId, tankorNev, dt, jegy, jegyTipus, tipus, oraId, dolgozatId, megjegyzes, IF (modositasDt='0000-00-00 00:00:00',dt,modositasDt) AS modositasDt
+ FROM jegy LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE tipus <> 0 AND tanev=".__TANEV." AND diakId=%u
+ ORDER BY dt, jegyId";
+ $v = array($diakId);
+ $jegyAdatok = db_query($q, array('fv' => 'getDiakJegyek', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'jegyId', 'values' => $v), $lr);
+
+ $tankorIds = getTankorByDiakId($diakId, __TANEV, array('csakId' => true, 'tolDt' => '', 'igDt' => ''), $lr);
+
+ if (is_array($jegyAdatok))
+ foreach ($jegyAdatok as $jegyId => $jegyAdat) {
+ if (!in_array($jegyAdat['tankorId'], $tankorIds)) $tankorIds[] = $jegyAdat['tankorId'];
+ }
+ if (is_array($tankorIds) && count($tankorIds) > 0) {
+ $q = "SELECT tankorId, targyId, targyNev FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".targy USING (targyId)
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ ORDER BY targyNev";
+ $tankorTargyak = db_query($q, array(
+ 'fv' => 'getDiakJegyek', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $tankorIds
+ ), $lr);
+ if (!is_array($tankorTargyak)) $tankorTargyak = array();
+ } else { $tankorTargyak = array(); }
+ $targyJegyei = array();
+ foreach ($tankorTargyak as $tankorId => $tAdat) {
+ $targyId = $tAdat['targyId']; $targyNev = $tAdat['targyNev'];
+ if (!is_array($targyJegyei[$targyId])) $targyJegyei[$targyId] = array('targyNev' => $targyNev);
+ }
+ foreach ($jegyAdatok as $jegyId => $jegyAdat) {
+ $tankorId = $jegyAdat['tankorId'];
+ $targyId = $tankorTargyak[$tankorId]['targyId'];
+ //$targyNev = $tankorTargyak[$tankorId]['targyNev'];
+ list($ev,$ho,$nap) = explode('-',$jegyAdat['dt']);
+ $targyJegyei[$targyId][$ev][$ho][] = $jegyId;
+ if (
+ in_array($jegyAdat['jegyTipus'],array('jegy','féljegy'))
+ || $KOVETELMENY[ $jegyAdat['jegyTipus'] ]['átlagolható'] === true
+ ) {
+ $targyJegyei[$targyId]['osszeg'] += $jegyAdat['jegy']*$suly[$jegyAdat['tipus']];
+ $targyJegyei[$targyId]['db'] += $suly[$jegyAdat['tipus']];
+ }
+ }
+ foreach ($targyJegyei as $targyId => $targyAdat)
+ if ($targyJegyei[$targyId]['db'] != 0)
+ $targyJegyei[$targyId]['atlag'] = number_format($targyJegyei[$targyId]['osszeg'] / $targyJegyei[$targyId]['db'],2,',','');
+
+ // Bizonyítvány
+ // kikerült innen...
+
+ // Dolgozatok lekérdezése
+ $dolgozatAdat = getTankorDolgozatok($tankorIds, ($csakTervezett = false));
+ // Nem megírt dolgozatok lekérdezése
+ if (is_array($dolgozatAdat['dolgozatIds']) && count($dolgozatAdat['dolgozatIds']) > 0) {
+ $q = "SELECT dolgozat.dolgozatId, bejelentesDt, dolgozatNev FROM dolgozat LEFT JOIN jegy ON dolgozat.dolgozatId=jegy.dolgozatId AND diakId=%u
+ WHERE dolgozat.dolgozatId IN (".implode(',', array_fill(0, count($dolgozatAdat['dolgozatIds']), '%u')).")
+ AND diakId IS NULL ORDER BY bejelentesDt";
+ $v = mayor_array_join(array($diakId), $dolgozatAdat['dolgozatIds']);
+ $nemMegirtDolgozat = db_query($q, array('fv' => 'getDiakJegyek/nem megírt dolgozat', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ } else {
+ $nemMegirtDolgozat = array();
+ }
+ $targyHianyzoDolgozatai = array();
+ for ($i = 0; $i < count($nemMegirtDolgozat); $i++) {
+ $dolgozatId = $nemMegirtDolgozat[$i]['dolgozatId'];
+ $tankorId = $dolgozatAdat[$dolgozatId]['tankor'][0]['tankorId'];
+ $targyId = $tankorTargyak[$tankorId]['targyId'];
+ //$targyNev = $tankorTargyak[$tankorId]['targyNev'];
+ list($ev,$ho,$nap) = explode('-',$nemMegirtDolgozat[$i]['bejelentesDt']);
+ $targyHianyzoDolgozatai[$targyId][$ev][$ho][] = $dolgozatId;
+ }
+ /* -------------- */
+
+ if ($olr == '') db_close($lr);
+ $ret = array(
+ 'jegyek' => $jegyAdatok, 'targyak' => $targyJegyei,
+ 'dolgozat' => $dolgozatAdat, 'hianyzoDolgozatok' => $targyHianyzoDolgozatai
+ );
+
+ return $ret;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/dolgozat.php b/mayor-orig/www/include/modules/naplo/osztalyozo/dolgozat.php
new file mode 100644
index 00000000..f38bb1b1
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/dolgozat.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function getDolgozat($dolgozatId, $olr='') {
+
+ global $_TANEV;
+
+ if ($olr == '') $lr = db_connect('naplo', array('fv' => 'getDolgozat'));
+ else $lr = $olr;
+
+ $v = array($dolgozatId);
+ // A dolgozat alapadatai
+ $q = "SELECT * FROM dolgozat WHERE dolgozatId=%u";
+ $Dolgozat = db_query($q, array('fv' => 'getDolgozat', 'modul' => 'naplo', 'values' => $v, 'result' => 'record'), $lr);
+ $Dolgozat['diakIds'] = array();
+
+ // A dolgozat jegyei
+ $q = "SELECT * FROM jegy WHERE dolgozatId=%u AND tipus != 0";
+ $ret = db_query($q, array('fv' => 'getDolgozat', 'modul' => 'naplo', 'keyfield' => 'tankorId', 'result' => 'multiassoc', 'values' => $v), $lr);
+ $Dolgozat['ertekelt'] = (is_array($ret) && count($ret) > 0);
+ if (is_array($ret)) foreach ($ret as $tankorId => $tankorJegyek) {
+ for ($j = 0; $j < count($tankorJegyek); $j++) {
+ $diakId = $tankorJegyek[$j]['diakId'];
+ $tankorDiakJegyek[$tankorId][$diakId][] = $tankorJegyek[$j];
+ }
+ }
+
+ // A dolgozat tankörei
+ $q = "SELECT DISTINCT tankorId, targyId, tankorNev
+ FROM tankorDolgozat LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ WHERE tanev=".__TANEV." AND dolgozatId=%u";
+ $Dolgozat['tankor'] = db_query($q, array('fv' => 'getDolgozat', 'modul' => 'naplo', 'values' => $v, 'result' => 'indexed'), $lr);
+ $Dolgozat['tankorIds'] = array();
+ for ($d = 0; $d < count($Dolgozat['tankor']); $d++) $Dolgozat['tankorIds'][] = $Dolgozat['tankor'][$d]['tankorId'];
+ $Dolgozat['tanarIds'] = getTankorTanaraiByInterval($Dolgozat['tankorIds'], array('tanev' => __TANEV, 'result' => 'csakId'));
+ $Dolgozat['targyId'] = $Dolgozat['tankor'][0]['targyId'];
+ for ($i = 0; $i < count($Dolgozat['tankor']); $i++) {
+ $tankorId = $Dolgozat['tankor'][$i]['tankorId'];
+ $Dolgozat['tankor'][$i]['diakok'] = getTankorDiakjaiByInterval($tankorId, __TANEV);
+ foreach ($Dolgozat['tankor'][$i]['diakok']['idk'] as $index => $diakId)
+ if (!in_array($diakId, $Dolgozat['diakIds'])) $Dolgozat['diakIds'][] = $diakId;
+ $Dolgozat['tankor'][$i]['jegyek'] = $tankorDiakJegyek[$tankorId];
+ }
+ //$diakTankorIds = getTankorIdsByDiakIds($Dolgozat['diakIds'],array('kovetelmeny'=>array('jegy'))); // miért csak jegy???
+ $diakTankorIds = getTankorIdsByDiakIds($Dolgozat['diakIds']);
+ $Dolgozat['utkozoDolgozatok'] = getTankorDolgozatok($diakTankorIds, true, date('Y-m-d'), $_TANEV['zarasDt']);
+ if ($olr == '') db_close($lr);
+
+ return $Dolgozat;
+
+ }
+
+ function dolgozatTankorHozzarendeles($dolgozatId, $torlendoTankorIds, $ujTankorIds) {
+
+
+ $lr = db_connect('naplo');
+ if (count($torlendoTankorIds) > 0) {
+ // ellenőrizzük, hogy van-e jegy hozzá!
+ $q = "SELECT COUNT(jegyId) FROM jegy WHERE dolgozatId=%u
+ AND tankorId IN (".implode(',', array_fill(0, count($torlendoTankorIds), '%u')).")";
+ $v = $torlendoTankorIds; array_unshift($v, $dolgozatId);
+ $num = db_query($q, array('fv' => 'dolgozatTankorHozzarendeles', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $lr);
+ if ($num > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:dolgozatTankorHozzarendeles:Tankör hozzárendelés megszüntetése előtt a jegyeket törölni kell!:jegyek száma '.$num;
+ db_close($lr);
+ return false;
+ }
+ $q = "DELETE FROM tankorDolgozat WHERE dolgozatId=%u
+ AND tankorId IN (".implode(',', array_fill(0, count($torlendoTankorIds), '%u')).")";
+ db_query($q, array('fv' => 'dolgozatTankorHozzarendeles', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+ if (($count = count($ujTankorIds)) > 0) {
+ foreach ($ujTankorIds as $key => $tankorId) $Val[] = "(%".($key+1)."\$u, %".($count+1)."\$u)";
+ array_push($ujTankorIds, $dolgozatId);
+ $q = "INSERT INTO tankorDolgozat (tankorId, dolgozatId) VALUES ".implode(',',$Val);
+ db_query($q, array('fv' => 'dolgozatTankorHozzarendeles', 'values' => $ujTankorIds, 'modul' => 'naplo'), $lr);
+ }
+ db_close($lr);
+ return true;
+
+ }
+
+ function dolgozatJegyekTorlese($dolgozatId, $tankorId) {
+
+ // Törlendő jegyek lekérdezése - logolás céljából
+ $q = "SELECT diakId, jegy, dt FROM jegy WHERE dolgozatId=%u AND tankorId=%u";
+ $ret = db_query($q, array('fv' => 'dolgozatJegyekTorlese', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($dolgozatId, $tankorId)));
+ if (!$ret) return false;
+
+ for ($i = 0; $i < count($ret); $i++) {
+ if (__NAPLOADMIN || (strtotime(_OSZTALYOZO_HATARIDO) <= strtotime($ret[$i]['dt']))) {
+ logAction(
+ array(
+ 'szoveg'=>'Dolgozat jegy törlése: diakId: '.$ret[$i]['diakId'].', tankorId: '.$ret[$i]['tankorId'].', jegy: '.$ret[$i]['jegy'],
+ 'table'=>'jegy'
+ )
+ );
+ } else {
+ $_SESSION['alert'][] = 'message:deadline_expired:'.$ret[$i]['dt'];
+ }
+ }
+ $q = "DELETE FROM jegy WHERE dolgozatId=%u AND tankorId=%u";
+ return db_query($q, array('fv' => 'dolgozatJegyekTorlese', 'modul' => 'naplo', 'values' => array($dolgozatId, $tankorId)));
+ }
+
+ function dolgozatTorles($dolgozatId) {
+
+ $q = "DELETE FROM dolgozat WHERE dolgozatId=%u";
+ return db_query($q, array('fv' => 'dolgozatTorles', 'modul' => 'naplo', 'values' => array($dolgozatId)));
+
+ }
+
+ function dolgozatModositas($dolgozatId, $dolgozatNev, $tervezettDt) {
+
+ $q = "UPDATE dolgozat SET dolgozatNev='%s', tervezettDt='%s', modositasDt=now() WHERE dolgozatId=%u";
+ return db_query($q, array('fv' => 'dolgozatModositas', 'modul' => 'naplo', 'values' => array($dolgozatNev, $tervezettDt, $dolgozatId)));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/stat.php b/mayor-orig/www/include/modules/naplo/osztalyozo/stat.php
new file mode 100644
index 00000000..c6be21fb
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/stat.php
@@ -0,0 +1,249 @@
+<?php
+/*
+ module: naplo
+
+ * getTargyakByDiakIds($diakIds, $szemeszterAdat, $osztalyId, $sorrendNev) --> SHARED! (bizonyítvány nyomtatás/értesítő)
+ * getDiakZarojegyAtlagok($diakIds, $tanev, $szemeszter)
+ * getTargyZarojegyAtlagok($diakIds, $tanev, $szemeszter)
+ * getTanarokByDiakIds($diakIds, $szemeszterAdat) --> SHARED!
+ * getTargyakBySzemeszter($szemeszterAdat) --> SHARED!
+ * getTargyAtlagokBySzemeszter($szemeszterAdat)
+ * getOsztalyHianyzasOsszesites($szemeszterAdat)
+ * getZarojegyStatBySzemeszter($SZA)
+
+*/
+
+ function getDiakZarojegyAtlagok($diakIds, $tanev, $szemeszter) {
+
+ if (count($diakIds)<1) return false;
+ $mIdk = getMagatartas();
+ $szIdk = getSzorgalom();
+ $q = "SELECT diakId,FLOOR(100*AVG(jegy))/100 AS atlag FROM zaroJegy LEFT JOIN targy USING (targyId)
+ LEFT JOIN szemeszter ON kezdesDt<=hivatalosDt AND hivatalosDt<=zarasDt
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") AND tanev=%u AND szemeszter=%u
+ AND jegy != 0 AND zaroJegy.jegyTipus ='jegy' AND targy.targyId NOT IN (".implode(',',array_merge($mIdk,$szIdk)).")
+ AND felev = %u
+ GROUP BY diakId WITH ROLLUP";
+ array_push($diakIds, $tanev, $szemeszter, $szemeszter);
+ $r = db_query($q, array('fv' => 'getDiakZarojegyAtlagok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $diakIds));
+ $ret = array();
+ $sum = $db = 0;
+ for ($i = 0; $i < count($r); $i++) {
+ if ($r[$i]['diakId'] == '') {
+ $r[$i]['diakId'] = 'osztaly';
+ $ret['osztaly'] = floor(100*$r[$i]['atlag'])/100;
+ } else {
+ //$ret[ $r[$i]['diakId'] ] = floor(100*$r[$i]['atlag'])/100; - elvileg nem lenne baj, de php hiba: pl. 4.64, 4.14, 4.35 hibásan "kerekedik"...
+ $ret[ $r[$i]['diakId'] ] = $r[$i]['atlag']; // a lekérdezésben már csonkoltunk...
+ $sum += $ret[ $r[$i]['diakId'] ];
+ $db++;
+ }
+ }
+ $ret['osztaly'] = ($db==0) ? 0 : floor(100*$sum/$db)/100; // felülírjuk, mert a jegyek átlaga a tárgy átlagoknál már megvan
+ return $ret;
+ }
+
+ function getTargyZarojegyAtlagok($diakIds, $tanev, $szemeszter) {
+ /*
+ * Az adott szemeszterben szerzett zárójegyek átlaga, de csak szemeszter=felev megfeleltetéssel
+ */
+ if (count($diakIds)<1) return false;
+
+ $q = "SELECT targyId, floor(100*avg(jegy))/100 AS atlag FROM zaroJegy
+ LEFT JOIN szemeszter ON kezdesDt<=hivatalosDt AND hivatalosDt<=zarasDt AND felev=szemeszter
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") AND tanev=%u AND szemeszter=%u
+ AND jegy != 0 AND jegyTipus='jegy' GROUP BY targyId WITH ROLLUP";
+ array_push($diakIds, $tanev, $szemeszter);
+ $r = db_query($q, array('fv' => 'getTargyZarojegyAtlagok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $diakIds));
+ $ret = array();
+ for ($i = 0; $i < count($r); $i++) {
+ if ($r[$i]['targyId'] == '') $r[$i]['targyId'] = 'osztaly';
+ //$ret[ $r[$i]['targyId'] ] = floor(100*$r[$i]['atlag'])/100; // sql-ben megbízhatóbb a csonkolás működése - sajnos...
+ $ret[ $r[$i]['targyId'] ] = $r[$i]['atlag'];
+ }
+ return $ret;
+ }
+
+ function getTanarokByDiakIds($diakIds, $szemeszterAdat) {
+ //??? 2009. shared lib ?
+
+ if (count($diakIds)<1) return false;
+
+ // A tárgyak lekérdezése a szemeszterben felvett tankörök alapján (miből lehet zárójegyet kapni)
+ $q = "SELECT DISTINCT targyId, TRIM(CONCAT_WS(' ',viseltNevElotag,viseltCsaladinev,viseltUtonev)) AS tanarNev
+ FROM tankor LEFT JOIN tankorDiak USING (tankorId) LEFT JOIN tankorTanar USING (tankorId) LEFT JOIN tanar USING (tanarId)
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")
+ AND (tankorDiak.kiDt IS NULL OR tankorDiak.kiDt>='%s') AND tankorDiak.beDt<='%s'
+ AND (tankorTanar.kiDt IS NULL OR tankorTanar.kiDt>='%s') AND tankorTanar.beDt<='%s'";
+ array_push($diakIds, $szemeszterAdat['kezdesDt'], $szemeszterAdat['zarasDt'], $szemeszterAdat['kezdesDt'], $szemeszterAdat['zarasDt']);
+ return db_query($q, array('debug'=>false,'fv' => 'getTanarokByDiakIds', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'targyId', 'values' => $diakIds));
+
+ }
+
+ function getTargyakBySzemeszter($szemeszterAdat) {
+ //??? 2009. shared lib ?
+
+ // A tárgyak lekérdezése a beírt jegyek alapján (lehet hozott jegy)
+ $q = "SELECT DISTINCT targyId,targyNev
+ FROM targy LEFT JOIN zaroJegy USING (targyId)
+ LEFT JOIN szemeszter ON kezdesDt<=hivatalosDt AND hivatalosDt<=zarasDt
+ WHERE tanev=%u AND szemeszter=%u ORDER BY targyNev";
+ $v = array($szemeszterAdat['tanev'], $szemeszterAdat['szemeszter']);
+ return db_query($q, array('fv' => 'getTargyakBySzemeszter', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ }
+
+
+ function getTargyAtlagokBySzemeszter($szemeszterAdat) {
+ $q = "SELECT targyId,osztalyId,FLOOR(100*AVG(jegy))/100 AS atlag FROM zaroJegy LEFT JOIN osztalyDiak
+ ON (zaroJegy.diakId=osztalyDiak.diakId AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt))
+ LEFT JOIN szemeszter ON kezdesDt<=hivatalosDt AND hivatalosDt<=zarasDt
+ AND felev=szemeszter
+ WHERE tanev=%u AND szemeszter=%u AND jegy != 0
+ AND jegyTipus in ('jegy','magatartas','szorgalom')
+ GROUP BY targyId,osztalyId WITH ROLLUP";
+ $v = array($szemeszterAdat['zarasDt'], $szemeszterAdat['zarasDt'], $szemeszterAdat['tanev'], $szemeszterAdat['szemeszter']);
+ $r = db_query($q, array('fv' => 'getTargyAtlagokBySzemeszter', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ $ret = array();
+ for ($i = 0; $i < count($r); $i++)
+ if ($r[$i]['targyId'] != '') {
+ if ($r[$i]['osztalyId'] == '') $r[$i]['osztalyId'] = 'iskola'; // tárgyanként az összes jegy átlagát írjuk ki
+ $ret[ $r[$i]['targyId'] ][ $r[$i]['osztalyId'] ] = $r[$i]['atlag'];
+ } else {
+ $ret['iskola'] = $r[$i]['atlag']; // nem használjuk - ez az összes jegyek átlaga
+ }
+ return $ret;
+
+ }
+
+ function getOsztalyHianyzasOsszesites($szemeszterAdat, $SET = array('telephelyId'=>null)) {
+ $ret = array();
+ if (is_array($szemeszterAdat)) {
+ // Egy szemeszter hiányzási adatainak lekérdezése
+ if ($szemeszterAdat['statusz'] == 'aktív') {
+ // Mindenféle típus kell?
+ $Wnemszamit = defWnemszamit();
+ // Folyó tanév - a tanév adatbázisból kérdezünk le
+/* $q = "SELECT osztalyId,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt',1,NULL)) AS igazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL)) AS igazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) AS kesesPercOsszeg
+ FROM `%s`.hianyzas
+ ".$Wnemszamit['join']."
+ LEFT JOIN osztalyDiak ON (hianyzas.diakId=osztalyDiak.diakId AND beDt<='%s'
+ AND (kiDt IS NULL OR '%s'<=kiDt))
+ WHERE (tipus = 'hiányzás' OR (tipus='késés' AND statusz='igazolatlan' AND perc IS NOT NULL))
+ AND dt<='%s'
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY osztalyId WITH ROLLUP";
+*/
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $szemeszterAdat['tanev']);
+
+ $q = "SELECT osztalyId, SUM(igazolt) AS igazolt, SUM(igazolatlan) AS igazolatlan, SUM(kesesPercOsszeg) AS kesesPercOsszeg,
+ SUM(igazolatlanKesesbol) AS igazolatlanKesesbol, SUM(osszesIgazolatlan) AS osszesIgazolatlan FROM
+ (SELECT osztalyId,hianyzas.diakId,
+ (COUNT(IF(tipus='hianyzas' AND statusz='igazolt',1,NULL)) + IFNULL((SELECT SUM(dbHianyzas) FROM `".$tanevDbNev."`.hianyzasHozott WHERE hianyzasHozott.diakId=hianyzas.diakId AND statusz='igazolt'),0)) AS igazolt,
+ (COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL)) + IFNULL((SELECT SUM(dbHianyzas) FROM `".$tanevDbNev."`.hianyzasHozott WHERE hianyzasHozott.diakId=hianyzas.diakId AND statusz='igazolatlan'),0)) AS igazolatlan,
+ IFNULL(SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)),0) AS kesesPercOsszeg,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) DIV 45 as igazolatlanKesesbol,
+ (
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL))+IFNULL((SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) DIV 45),0)
+ + IFNULL((SELECT SUM(dbHianyzas) FROM `".$tanevDbNev."`.hianyzasHozott WHERE hianyzasHozott.diakId=hianyzas.diakId AND statusz='igazolatlan'),0)
+ )
+ AS osszesIgazolatlan
+ FROM `".$tanevDbNev."`.hianyzas
+ LEFT JOIN tankorTipus USING (tankorTipusId)
+ LEFT JOIN osztalyDiak ON (hianyzas.diakId=osztalyDiak.diakId AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt))
+ WHERE (tipus = 'hiányzás' OR (tipus='késés' AND statusz='igazolatlan' AND perc IS NOT NULL)) AND dt<='%s' AND hianyzasBeleszamit='igen'
+ GROUP BY osztalyId,hianyzas.diakId
+ ) AS diakHianyzas GROUP BY osztalyId WITH ROLLUP";
+// $v = array(tanevDbNev(__INTEZMENY, $szemeszterAdat['tanev']), $szemeszterAdat['zarasDt'], $szemeszterAdat['kezdesDt'], $szemeszterAdat['zarasDt']);
+// Csak az záráskori tagokat vegyük figyelembe
+ $v = array($szemeszterAdat['zarasDt'], $szemeszterAdat['zarasDt'], $szemeszterAdat['zarasDt']);
+ } else {
+ // lezárt tanév - az intézmény adatbázisból kérdezünk le - nincs $Wnemszamit !!!
+ $q = "SELECT osztalyId, SUM(igazolt) AS igazolt, SUM(igazolatlan) AS igazolatlan, SUM(kesesPercOsszeg) AS kesesPercOsszeg,
+ SUM(kesesPercOsszeg DIV 45) AS igazolatlanKesebol, SUM(igazolatlan + (kesesPercOsszeg DIV 45)) AS osszesIgazolatlan
+ FROM hianyzasOsszesites
+ LEFT JOIN osztalyDiak ON (hianyzasOsszesites.diakId=osztalyDiak.diakId AND beDt<='%s'
+ AND (kiDt IS NULL OR '%s'<=kiDt))
+ WHERE tanev=%u AND szemeszter=%u
+ GROUP BY osztalyId WITH ROLLUP";
+// $v = array($szemeszterAdat['zarasDt'], $szemeszterAdat['kezdesDt'], $szemeszterAdat['tanev'], $szemeszterAdat['szemeszter']);
+// Csak az záráskori tagokat vegyük figyelembe
+ $v = array($szemeszterAdat['zarasDt'], $szemeszterAdat['zarasDt'], $szemeszterAdat['tanev'], $szemeszterAdat['szemeszter']);
+ }
+ $ret = db_query($q, array('fv' => 'getOsztalyHianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'osztalyId', 'values' => $v));
+ }
+ return $ret;
+ }
+
+ function getZarojegyStatBySzemeszter($SZA, $SET = array('telephelyId'=>null)) {
+
+ // Le kell kérdezni minden zárójegyet osztályonként
+ $tanev = $SZA['tanev'];
+ $telephelyId = readVariable($SET['telephelyId'],'id');
+
+ $OSZTALYOK = getOsztalyok($tanev,array('result'=>'indexed','telephelyId'=>$telephelyId));
+ for ($i=0; $i<count($OSZTALYOK); $i++) {
+ $osztalyIdk[] = $OSZTALYOK[$i]['osztalyId'];
+ }
+ $DIAKIDS = getDiakokByOsztalyId($osztalyIdk, array(
+ 'result' => 'multiassoc', 'tanev' => $tanev, 'tolDt' => $SZA['zarasDt'], 'igDt' => $SZA['zarasDt'],
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva'))
+ );
+ $ret['intezmeny'] = array('kituno' => 0, 'jeles' => 0, 'bukott' => 0, 'bukas' => 0, 'atlag' => 0, 'osztalyDb' => 0);
+ foreach($DIAKIDS as $osztalyId => $DIAKOK) {
+ $diakIds = array();
+ $dbDiaknakVanJegye = 0;
+ for ($i=0; $i<count($DIAKOK); $i++) $diakIds[] = $DIAKOK[$i]['diakId'];
+ $D = getDiakZarojegyek($diakIds, $SZA['tanev'], $SZA['szemeszter'], array('arraymap'=>array('diakId')));
+ $O = array('letszam' => count($diakIds), 'kituno' => 0, 'jeles' => 0, 'bukott' => 0, 'bukas' => 0, 'atlag' => 0);
+ foreach ($D as $diakId => $dJegyek) {
+ $lehetJeles = true; $bukas = 0; $sum = 0; $db = 0;
+ for ($i = 0; $i < count($dJegyek); $i++) {
+ if (in_array($dJegyek[$i]['jegyTipus'], array('jegy','magatartás','szorgalom'))) { // A statisztika csak a jegy típusra értelmes!
+ if ($dJegyek[$i]['jegyTipus'] == 'jegy') {
+ $sum += $dJegyek[$i]['jegy'];
+ $db++;
+ if ($dJegyek[$i]['jegy'] < _JELES_LEGGYENGEBB_JEGY) $lehetJeles = false;
+ }
+ if ($dJegyek[$i]['jegy'] == 1) {
+ $bukas++;
+ $ret['intezmeny']['targy'][ $dJegyek[$i]['targyId'] ]++;
+ }
+ }
+ }
+ if ($db != 0) { // volt legalább 1 jegy típusú jegye
+ $dbDiaknakVanJegye++;
+ $atlag = @floor(100 * $sum / $db) / 100;
+ $O['atlag'] += $atlag;
+ if ($atlag >= _KITUNO_ATLAG) $O['kituno']++;
+ elseif ($atlag >= _JELES_ATLAG && $lehetJeles) $O['jeles']++;
+ if ($bukas > 0) {
+ $O['bukas'] += $bukas;
+ $O['bukott']++;
+ }
+ }
+ }
+ //if (count($diakIds) > 0) $O['atlag'] = $O['atlag'] / count($diakIds);
+ if($dbDiaknakVanJegye>0) $O['atlag'] = floor(100 * $O['atlag'] / $dbDiaknakVanJegye) / 100;
+ $ret[$osztalyId] = $O;
+ $ret['intezmeny']['kituno'] += $O['kituno'];
+ $ret['intezmeny']['jeles'] += $O['jeles'];
+ $ret['intezmeny']['bukott'] += $O['bukott'];
+ $ret['intezmeny']['bukas'] += $O['bukas'];
+ $ret['intezmeny']['atlag'] += $O['atlag'];
+ if ($O['atlag'] > 0) $ret['intezmeny']['osztalyDb']++;
+ }
+ if ($ret['intezmeny']['osztalyDb'] > 0) $ret['intezmeny']['atlag'] = $ret['intezmeny']['atlag'] / $ret['intezmeny']['osztalyDb'];
+ return $ret;
+
+ }
+
+ function getDiakKonferenciaZaradekok($diakIds, $utolsoTanitasiNap) {
+
+ return getZaradekokByDiakIds($diakIds, array('tipus' => 'konferencia, konferencia bukás', 'tolDt' => $utolsoTanitasiNap, 'igDt' => $utolsoTanitasiNap));
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/szempontRendszer.php b/mayor-orig/www/include/modules/naplo/osztalyozo/szempontRendszer.php
new file mode 100644
index 00000000..e2b750f9
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/szempontRendszer.php
@@ -0,0 +1,56 @@
+<?php
+
+ function ujSzempontRendszer($ADAT) {
+
+ $kepzesId = readVariable($ADAT['kepzesId'], 'numeric unsigned', 'NULL');
+ $targyId = readVariable($ADAT['targyId'], 'numeric unsigned', 'NULL');
+ // Az új szempontRendszer felvétele
+ $q = "INSERT INTO szempontRendszer (tanev,szemeszter,evfolyamJel,kepzesId,targyId,targyTipus) VALUES (%u, %u, '%s', ";
+ $v = array($ADAT['szemeszter']['tanev'], $ADAT['szemeszter']['szemeszter'], $ADAT['evfolyamJel']);
+ if ($kepzesId == 'NULL') $q .= "NULL, ";
+ else { $q .= "%u, "; $v[] = $kepzesId; }
+ if ($targyId == 'NULL') $q .= "NULL, ";
+ else { $q .= "%u, "; $v[] = $targyId; }
+ if ($ADAT['targyTipus'] == '') $q .= "NULL)";
+ else { $q .= "'%s')"; $v[] = $ADAT['targyTipus']; }
+
+ $szrId = db_query($q, array('fv' => 'ujSzempontRendszer', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v));
+ if (!$szrId) return false;
+
+ // A szempontok és minősítések rögzítése
+ $Szempont = $aktSz = array();
+ for ($i = 0; $i < count($ADAT['txt']); $i++) {
+ $txt = trim($ADAT['txt'][$i]);
+ if ($txt != '') {
+ if (!isset($aktSz['szempont'])) {
+ $aktSz['szempont'] = $txt;
+ $q = "INSERT INTO szrSzempont (szrId, szempont) VALUES (%u, '%s')";
+ $v = array($szrId, $txt);
+ $szempontId = db_query($q, array('fv' => 'ujSzempontRendszer/szempont', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v));
+ } else {
+ $aktSz['minosites'][] = $txt;
+ $q = "INSERT INTO szrMinosites (szempontId, minosites) VALUES (%u,'%s')";
+ $v = array($szempontId, $txt);
+ db_query($q, array('fv' => 'ujSzempontRendszer/minősítés', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+ } else {
+ if (isset($aktSz['szempont'])) {
+ $Szempont[] = $aktSz;
+ $aktSz = array();
+ }
+ }
+ }
+
+ return true;
+
+ }
+
+ function szempontRendszerTorles($ADAT) {
+
+ // cascade-olás miatt törli a hozzá tartozó értékeléseket is!
+ $q = "DELETE FROM szempontRendszer WHERE szrId=%u";
+ return db_query($q, array('fv' => 'szempontRendszerTorles', 'modul' => 'naplo_intezmeny', 'values' => array($ADAT['szrId'])));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/szovegesErtekeles.php b/mayor-orig/www/include/modules/naplo/osztalyozo/szovegesErtekeles.php
new file mode 100644
index 00000000..803056a7
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/szovegesErtekeles.php
@@ -0,0 +1,67 @@
+<?php
+
+ function ujErtekeles($diakId, $szrId, $targyId, $dt, $minosites, $egyediMinosites) {
+
+ // A korábbi értékelés törlése
+ $q = "DELETE FROM szovegesErtekeles WHERE diakId=%u AND szrId=%u AND targyId=%u AND dt='%s'";
+ $v = array($diakId, $szrId, $targyId, $dt);
+ db_query($q, array('fv' => 'ujErtekeles', 'modul' => 'naplo', 'values' => $v));
+
+ // Szoveges értékelés felvétele
+ $q = "INSERT INTO szovegesErtekeles (diakId, szrId, targyId, dt) VALUES (%u, %u, %u, '%s')";
+ $v = array($diakId, $szrId, $targyId, $dt);
+ $szeId = db_query($q, array('fv' => 'ujErtekeles', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v));
+ if (!$szeId) return false;
+
+ // Minősítések felvétele
+ if (count($minosites) > 0) {
+ $q = "INSERT INTO szeMinosites (szeId,minositesId) VALUES ($szeId,".implode("),($szeId,", array_fill(0, count($minosites), '%u')).")";
+ db_query($q, array('fv' => 'ujErtekeles', 'modul' => 'naplo', 'values' => $minosites));
+ }
+ // Egyedi minősítések felvétele
+ if (count($egyediMinosites) > 0) {
+ $v = $V = array();
+ foreach ($egyediMinosites as $szempontId => $egyediMinosites) {
+ $V[] = "(%u, %u, '%s')";
+ array_push($v, $szeId, $szempontId, $egyediMinosites);
+ }
+ $q = "INSERT INTO szeEgyediMinosites (szeId,szempontId,egyediMinosites) VALUES ".implode(',', $V);
+ db_query($q, array('fv' => 'ujErtekeles', 'modul' => 'naplo', 'values' => $v));
+ }
+
+ return true;
+ }
+
+ function ujZaroErtekeles($diakId, $szrId, $targyId, $tanev, $szemeszter, $minosites, $egyediMinosites) {
+
+ // A korábbi értékelés törlése
+ $q = "DELETE FROM szovegesErtekeles WHERE diakId=%u AND szrId=%u AND targyId=%u AND tanev=%u AND szemeszter=%u";
+ $v = array($diakId, $szrId, $targyId, $tanev, $szemeszter);
+ db_query($q, array('fv' => 'ujZaroErtekeles', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ // Szoveges értékelés felvétele
+ $q = "INSERT INTO szovegesErtekeles (diakId, szrId, targyId, dt, tanev, szemeszter) VALUES (%u, %u, %u, CURDATE(), %u, %u)";
+ $v = array($diakId, $szrId, $targyId, $tanev, $szemeszter);
+ $szeId = db_query($q, array('fv' => 'ujZaroErtekeles', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v));
+ if (!$szeId) return false;
+
+ // Minősítések felvétele
+ if (count($minosites) > 0) {
+ $q = "INSERT INTO szeMinosites (szeId,minositesId) VALUES ($szeId,".implode("),($szeId,", array_fill(0, count($minosites), '%u')).")";
+ db_query($q, array('fv' => 'ujZaroErtekeles', 'modul' => 'naplo_intezmeny', 'values' => $minosites));
+ }
+ // Egyedi minősítések felvétele
+ if (count($egyediMinosites) > 0) {
+ $v = $V = array();
+ foreach ($egyediMinosites as $szempontId => $egyediMinosites) {
+ $V[] = "(%u, %u, '%s')";
+ array_push($v, $szeId, $szempontId, $egyediMinosites);
+ }
+ $q = "INSERT INTO szeEgyediMinosites (szeId,szempontId,egyediMinosites) VALUES ".implode(',', $V);
+ db_query($q, array('fv' => 'ujZaroErtekeles', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+
+ return true;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/tankor.php b/mayor-orig/www/include/modules/naplo/osztalyozo/tankor.php
new file mode 100644
index 00000000..8cc06915
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/tankor.php
@@ -0,0 +1,205 @@
+<?php
+/*
+ module: naplo
+ version: 3.0
+
+ function getJegyek($tankorId, $sulyozas='', $NEVSOR)
+
+ function jegyBeiras($tankorId, $tipus, $oraId, $dolgozatId, $tanarId, $Beirando, $actionId) {
+ + checkTankorDolgozata()
+ + ujDolgozat()
+
+ csinálmány: jó lenne, ha nem $Jegyek-nek hívnánk mindent ebben, esetleg elemjeire bonthatnánk a tömböt.
+*/
+
+ function getJegyek($tankorId, $tolDt, $igDt, $sulyozas = '', $Diakok = array()) {
+
+ global $_TANEV, $KOVETELMENY;
+
+ // Diákok lekérdezése
+ if (!is_array($Diakok['idk']) || count($Diakok['idk']) == 0) $Diakok = getTankorDiakjaiByInterval($tankorId, __TANEV, $tolDt, $igDt);
+ // kezdőértékek
+ $Jegyek = array('dolgozatok' => array('lista' => array()), 'tankörök' => array(), 'tanárok' => array('tanarIds' => array()));
+ // A tankör adatainak lekérdezése
+ list($tankorAdat) = getTankorById($tankorId, __TANEV);
+ // Ha nincsenek diákok
+ if (!is_array($Diakok['idk']) || count($Diakok['idk']) == 0) {
+ $Tanarok = $Jegyek['tankörök'][$tankorId]['tanárok'] = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result' => 'nevsor'));
+ for ($t = 0; $t < count($Tanarok); $t++) {
+ if (!in_array($Tanarok[$t]['tanarId'], $Jegyek['tanárok']['tanarIds'])) {
+ $Jegyek['tanárok'][$Tanarok[$t]['tankorId']] = $Tanarok[$t];
+ $Jegyek['tanárok']['tanarIds'][] = $Tanarok[$t]['tanarId'];
+ $Jegyek['tanárok']['tanarNevek'][] = $Tanarok[$t]['tanarNev'];
+ }
+ }
+ $Jegyek['tankörök'][$tankorId] = $tankorAdat;
+ return $Jegyek;
+ }
+
+
+ if ($sulyozas == '') $suly = array(0,1,1,1,1,1,1);
+ else $suly = explode(':', '0:'.$sulyozas);
+
+
+ // A diákok tárgyhoz tartozó tankörei
+ $q = "SELECT DISTINCT tankorDiak.tankorId, tankorNev, tankor.targyId, felveheto
+ FROM ".__INTEZMENYDBNEV.".tankorDiak LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE tankor.targyId=%u AND tanev=".__TANEV."
+ AND diakId IN ('".implode("','", array_fill(0, count($Diakok['idk']), '%u'))."')
+ AND beDt<='%s' AND (kiDt IS NULL OR kiDt>='%s')";
+ $v = mayor_array_join(array($tankorAdat['targyId']), $Diakok['idk'], array($igDt, $tolDt));
+ $Jegyek['tankörök'] = db_query($q, array('fv' => 'getJegyek (Tankör)', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $v));
+ $Jegyek['tanárok']['tanarIds'] = $Jegyek['tanárok']['tanarNevek'] = array();
+ if (is_array($Jegyek['tankörök']))
+ foreach ($Jegyek['tankörök'] as $_tankorId => $a) {
+ $Jegyek['tankörök']['tankorId'][] = $_tankorId;
+ $Tanarok = $Jegyek['tankörök'][$_tankorId]['tanárok'] = getTankorTanaraiByInterval($_tankorId, array('tanev' => __TANEV, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result' => 'nevsor'));
+ for ($t = 0; $t < count($Tanarok); $t++) {
+ if (!in_array($Tanarok[$t]['tanarId'], $Jegyek['tanárok']['tanarIds'])) {
+ $Jegyek['tanárok'][$Tanarok[$t]['tankorId']] = $Tanarok[$t];
+ $Jegyek['tanárok']['tanarIds'][] = $Tanarok[$t]['tanarId'];
+ $Jegyek['tanárok']['tanarNevek'][] = $Tanarok[$t]['tanarNev'];
+ }
+ }
+ }
+
+ // ---
+ if (count($Diakok['idk']) > 0 && count($Jegyek['tankörök']['tankorId']) > 0) { // Vannak diákok és a diákoknak adott tárgyhoz tankörei - olyankor lehet gond, ha a tankör csak egy korábbi időszakban volt, most már nem aktív
+ $q = "SELECT * FROM jegy
+ WHERE tankorId IN ('".implode("','", array_fill(0, count($Jegyek['tankörök']['tankorId']), '%u'))."')
+ AND tipus <> 0
+ AND diakId IN ('".implode("','", array_fill(0, count($Diakok['idk']), '%u'))."')
+ ORDER BY jegy.dt, jegy.jegyId";
+ $v = mayor_array_join($Jegyek['tankörök']['tankorId'], $Diakok['idk']);
+ $ret = db_query($q, array('fv' => 'getJegyek (Tankör)', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ reset($_TANEV['szemeszter']);
+ $szAdat = current($_TANEV['szemeszter']); $szemeszter = $szAdat['szemeszter'];
+ foreach ($ret as $i => $a) {
+ if (strtotime($a['dt']) > strtotime($szAdat['zarasDt'])) { $szAdat = next($_TANEV['szemeszter']); $szemeszter = $szAdat['szemeszter']; }
+ $tipus = $a['tipus'];
+ if ($tipus > 2) {
+ if (!in_array($a['dolgozatId'], $Jegyek['dolgozatok']['lista'])) {
+ list($ev,$ho,$napEsIdo) = explode('-', $a['dt']);
+ $Jegyek['dolgozatok']['lista'][] = $a['dolgozatId'];
+ $Jegyek['dolgozatok']['dátum szerint'][$ev][$ho][] = $a['dolgozatId'];
+ $Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho][] = $a['dolgozatId'];
+ $Jegyek['dolgozatok'][$a['dolgozatId']] = array('év' => $ev, 'hó' => $ho, 'szemeszter' => $szemeszter);
+ $Jegyek['dolgozatok'][$a['dolgozatId']]['tankorIds'] = array($a['tankorId']);
+ $dSzemeszter = $szemeszter; // A dolozat első jegyének szemesztere
+ } else {
+ $ev = $Jegyek['dolgozatok'][$a['dolgozatId']]['év'];
+ $ho = $Jegyek['dolgozatok'][$a['dolgozatId']]['hó'];
+ $dSzemeszter = $Jegyek['dolgozatok'][$a['dolgozatId']]['szemeszter'];
+ if (!in_array($a['tankorId'], $Jegyek['dolgozatok'][$a['dolgozatId']]['tankorIds'])) $Jegyek['dolgozatok'][$a['dolgozatId']]['tankorIds'][] = $a['tankorId'];
+ }
+// $Jegyek[$a['diakId']][$ev][$ho]['dolgozat'][$a['dolgozatId']][] = $a;
+ $Jegyek[$a['diakId']][$dSzemeszter][$ev][$ho]['dolgozat'][$a['dolgozatId']][] = $a;
+
+ $Jegyek['dolgozatok'][$a['dolgozatId']]['jegyTipus'] = $a['jegyTipus'];
+ $Jegyek['dolgozatok'][$a['dolgozatId']]['átlag'] = $Jegyek['dolgozatok'][$a['dolgozatId']]['átlag'] * $Jegyek['dolgozatok'][$a['dolgozatId']]['sulyösszeg'] + $a['jegy']*$suly[$tipus];
+ $Jegyek['dolgozatok'][$a['dolgozatId']]['db']++;
+ $Jegyek['dolgozatok'][$a['dolgozatId']]['sulyösszeg'] += $suly[$tipus];
+ if ($Jegyek['dolgozatok'][$a['dolgozatId']]['sulyösszeg'] != 0)
+ $Jegyek['dolgozatok'][$a['dolgozatId']]['átlag'] = $Jegyek['dolgozatok'][$a['dolgozatId']]['átlag'] / $Jegyek['dolgozatok'][$a['dolgozatId']]['sulyösszeg'];
+ else
+ $Jegyek['dolgozatok'][$a['dolgozatId']]['átlag'] = 0;
+ } else {
+ list($ev,$ho,$nap) = explode('-',$a['dt']);
+ $Jegyek[$a['diakId']][$ev][$ho]['jegyek'][] = $a;
+ $Jegyek[$a['diakId']][$szemeszter][$ev][$ho]['jegyek'][] = $a;
+ }
+ if (
+ in_array($a['jegyTipus'],array('jegy','féljegy'))
+ || $KOVETELMENY[ $a['jegyTipus'] ]['átlagolható'] === true
+ ) {
+ $Jegyek[$a['diakId']]['átlag'] = $Jegyek[$a['diakId']]['átlag'] * $Jegyek[$a['diakId']]['sulyösszeg'] + $a['jegy']*$suly[$tipus];
+ $Jegyek[$a['diakId']]['db']++;
+ $Jegyek[$a['diakId']]['sulyösszeg'] += $suly[$tipus];
+
+ if ($Jegyek[$a['diakId']]['sulyösszeg'] != 0)
+ $Jegyek[$a['diakId']]['átlag'] = $Jegyek[$a['diakId']]['átlag'] / $Jegyek[$a['diakId']]['sulyösszeg'];
+ else
+ $Jegyek[$a['diakId']]['átlag'] = 0;
+ }
+ }
+ // Osztályátlag
+ $sum = $db = 0;
+ foreach ($Jegyek as $diakId => $dAdat)
+ if (isset($dAdat['átlag'])) { $sum += $dAdat['átlag']; $db++; }
+ if ($db > 0) $Jegyek['átlag'] = $sum / $db;
+ } // vannak diákok
+
+ // ------------------------------------
+ // A tárgycsoporthoz tartozó zárójegyek
+ // EZ NEM IDE TARTOZIK! --> share lib
+ return $Jegyek;
+
+ }
+
+ /*
+ Ez kerüljön át a share/jegyModifier-be
+ */
+ function jegyBeiras($tankorId, $tipus, $oraId, $dolgozatId, $tanarId, $megjegyzes, $Beirando, $actionId, $lr) {
+
+
+ // ha kell, van megadva dolgozat, ami tényleg a tankörhöz tartozik, vagy 'uj'...
+ if ($tipus < 3 || checkTankorDolgozata($tankorId, $dolgozatId)) {
+ // Új dolgozat felvétele - ha kell
+ if (($tipus > 2) and ($dolgozatId == 'uj')) $dolgozatId = ujDolgozat($tanarId, $tankorId);
+ // Jegyek beírása
+ $v = $Values = array();
+ for ($i = 0; $i < count($Beirando); $i++) {
+ /* oraId, dolgozatId 'NULL' stringet is kaphat a hívó függvénytől */
+ if ($oraId == 'NULL') {
+ if ($dolgozatId == 'NULL') $Values[] = "(%u, '%s', %f, %u, %u, NOW(), %s, %s, '%s',NOW())";
+ else $Values[] = "(%u, '%s', %f, %u, %u, NOW(), %s, %u, '%s',NOW())";
+ } else {
+ if ($dolgozatId == 'NULL') $Values[] = "(%u, '%s', %f, %u, %u, NOW(), %u, %s, '%s',NOW())";
+ else $Values[] = "(%u, '%s', %f, %u, %u, NOW(), %u, %u, '%s',NOW())";
+ }
+ array_push($v, $Beirando[$i]['diakId'], $Beirando[$i]['jegyTipus'], $Beirando[$i]['jegy'], $tipus, $tankorId, $oraId, $dolgozatId, $megjegyzes);
+ }
+ $q = "INSERT INTO jegy (diakId, jegyTipus, jegy, tipus, tankorId, dt, oraId, dolgozatId, megjegyzes, modositasDt)
+ VALUES ".implode(',',$Values);
+ $r = db_query($q, array('fv' => 'jegyBeiras', 'modul' => 'naplo', 'values' => $v), $lr);
+ if (!$r) return false;
+ logAction(
+ array(
+ 'actionId'=>$actionId,
+ 'szoveg'=>"Jegybeírás: $tankorId, $tipus, $oraId, $dolgozatId",
+ 'table'=>'jegy'
+ )
+ );
+ } else {
+ // dolgozat jegy lenne, de nincs dolgozat megadva, legalábbis nem a tankörhöz tartozó...
+ $_SESSION['alert'][] = 'message:wrong_data:jegyBeiras:tipus '.$tipus.':dolgozatId '.$did;
+ return false;
+ }
+
+ return true;
+
+ }
+
+
+
+
+ // -- 2009
+ /* $jegyek[index] = assoc array, melyben a módosuló jegy adatai szerepelnek
+ tankorId, targyId, actionId csak a loghoz kell!!! --> (???)
+ */
+ function jegyLezaras($jegyek, $tankorId, $targyId, $actionId) {
+
+ zaroJegyBeiras($jegyek);
+ logAction(
+ array(
+ 'actionId'=>$actionId,
+ 'szoveg'=>"Bizonyítvány: $tankorId, $targyId",
+ 'table'=>'bizonyitvany'
+ )
+ );
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/targySorrend.php b/mayor-orig/www/include/modules/naplo/osztalyozo/targySorrend.php
new file mode 100644
index 00000000..c634641a
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/targySorrend.php
@@ -0,0 +1,55 @@
+<?php
+ function targySorrendValtas($osztalyId, $sorrendNev, $targyId, $irany = 'fel') {
+
+ // A tárgy aktuális sorszámát lekérdezzük...
+ $q = "SELECT sorszam FROM targySorszam WHERE osztalyId=%u AND targyId=%u AND sorrendNev='%s'";
+ $v = array($osztalyId, $targyId, $sorrendNev);
+ $s = db_query($q, array('fv' => 'targySorrendValtas', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+
+ $q = "UPDATE targySorszam SET sorszam=%u-sorszam WHERE osztalyId=%u AND sorrendNev='%s' AND sorszam IN (%u, %u)";
+ if ($irany == 'fel' && $s > 0) $v = array((2*$s-1), $osztalyId, $sorrendNev, $s, ($s-1));
+ elseif ($irany == 'le') $v = array((2*$s+1), $osztalyId, $sorrendNev, $s, ($s+1));
+ else return false;
+
+ return db_query($q, array('fv' => 'targySorrendValtas', 'modul' => 'naplo', 'values' => $v));
+
+ }
+
+ function checkTargySor($osztalyId, $sorrendNev, $Targyak) {
+
+ $q = "SELECT COUNT(sorszam) AS db FROM targySorszam WHERE osztalyId=%u AND sorrendNev='%s'";
+ $v = array($osztalyId, $sorrendNev);
+ $db = db_query($q, array('fv' => 'checkTargySor', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ if ($db == 0 && count($Targyak) > 0) {
+ // feltöltjük
+ $v = $V = array();
+ for ($i = 0; $i < count($Targyak); $i++) {
+ $V[] = "(%u, %u, '%s', %u)";
+ array_push($v, $osztalyId, $Targyak[$i]['targyId'], $sorrendNev, $i);
+ }
+ $q = "INSERT INTO targySorszam (osztalyId, targyId, sorrendNev, sorszam) VALUES ".implode(',', $V);
+ db_query($q, array('fv' => 'checkTargySor', 'modul' => 'naplo', 'values' => $v));
+ }
+
+ }
+
+ function ujTargySorrend($osztalyId, $sorrendNev, $targyIds) {
+
+ $q = "DELETE FROM targySorszam WHERE osztalyId=%u AND sorrendNev='%s'";
+ db_query($q, array('fv' => 'usTargySorrend', 'modul' => 'naplo', 'values' => array($osztalyId, $sorrendNev)));
+
+ if (count($targyIds) > 0) {
+ $v = $V = array();
+ for ($i = 0; $i < count($targyIds); $i++) {
+ $V[] = "(%u, %u, '%s', %u)";
+ array_push($v, $osztalyId, $targyIds[$i], $sorrendNev, $i);
+ }
+ $q = "INSERT INTO targySorszam (osztalyId, targyId, sorrendNev, sorszam) VALUES ".implode(',', $V);
+ db_query($q, array('fv' => 'usTargySorrend', 'modul' => 'naplo', 'values' => $v));
+ }
+
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/osztalyozo/vizsga.php b/mayor-orig/www/include/modules/naplo/osztalyozo/vizsga.php
new file mode 100644
index 00000000..96dfa210
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/osztalyozo/vizsga.php
@@ -0,0 +1,136 @@
+<?php
+
+ function vizsgajelentkezes($ADAT) {
+
+ $q = "INSERT INTO vizsga (diakId, targyId, evfolyam, evfolyamJel, felev, tipus, jelentkezesDt) VALUES (%u, %u, %u, '%s', %u, '%s', '%s')";
+ $v = array($ADAT['diakId'], $ADAT['targyId'], $ADAT['evfolyam'], $ADAT['evfolyamJel'], $ADAT['felev'], $ADAT['tipus'], $ADAT['jelentkezesDt']);
+ return db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgajelentkezes', 'result' => 'insert', 'values' => $v));
+
+ }
+
+ function vizsgaIdopontRogzites($VD) {
+
+
+ foreach ($VD as $vizsgaId => $vizsgaDt) {
+ $vizsgaAdat = getVizsgaAdatById($vizsgaId);
+ if ($vizsgaAdat['vizsgaDt'] == '') {
+ $q = "UPDATE vizsga SET vizsgaDt='%s' WHERE vizsgaId=%u";
+ $v = array($vizsgaDt, $vizsgaId);
+ db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaIdopontRogzites', 'values' => $v));
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:már van vizsgaDt:vizsgaId='.$vizsgaId;
+ }
+ }
+
+ }
+
+ function vizsgaHalasztas($HD) {
+
+ global $ZaradekIndex;
+
+ foreach ($HD as $vizsgaId => $halasztasDt) {
+ $vizsgaAdat = getVizsgaAdatById($vizsgaId);
+ if ($vizsgaAdat['vizsgaDt'] != '' && strtotime($vizsgaAdat['vizsgaDt']) < strtotime($halasztasDt) && !isset($vizsgaAdat['zaradekId'])) {
+ // vizsgahalasztás záradékai
+ $zaradekIndex = $ZaradekIndex['vizsga halasztás'][ $vizsgaAdat['tipus'] ];
+ $Z = array(
+ 'zaradekIndex' => $zaradekIndex,
+ 'diakId' => $vizsgaAdat['diakId'],
+ 'dt' => date('Y-m-d'),
+ 'csere' => array('%igDt%' => $halasztasDt)
+ );
+ $zaradekId = zaradekRogzites($Z);
+ // eredeti vizsga záradékolása
+ $q = "UPDATE vizsga SET zaradekId=%u WHERE vizsgaId=%u";
+ $v = array($zaradekId, $vizsgaId);
+ db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaHalasztas/záradékolás', 'values' => $v));
+ // új vizsga felvétele
+// $q = "INSERT INTO vizsga (diakId, targyId, evfolyam, felev, tipus, jelentkezesDt, vizsgaDt) VALUES (%u, %u, %u, %u, '%s', '%s', '%s')";
+// $v = array($vizsgaAdat['diakId'], $vizsgaAdat['targyId'], $vizsgaAdat['evfolyam'], $vizsgaAdat['felev'], $vizsgaAdat['tipus'], $vizsgaAdat['jelentkezesDt'], $halasztasDt);
+// A halasztáskor megadott dátum nem a vizsga dátuma, hanem egy határidő, amíg le kell tenni a vizsgát.
+ $q = "INSERT INTO vizsga (diakId, targyId, evfolyam, evfolyamJel, felev, tipus, jelentkezesDt) VALUES (%u, %u, %u, '%s', %u, '%s', '%s')";
+ $v = array($vizsgaAdat['diakId'], $vizsgaAdat['targyId'], $vizsgaAdat['evfolyam'], $ADAT['evfolyamJel'], $vizsgaAdat['felev'], $vizsgaAdat['tipus'], $vizsgaAdat['jelentkezesDt']);
+ db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgajelentkezes', 'result' => 'insert', 'values' => $v));
+
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:még nincs vizsgaDt, vagy korábbi, mint a halasztás dátuma:vizsgaId='.$vizsgaId;
+ }
+ }
+
+ }
+
+ function vizsgaErtekeles($jegyek) {
+
+ global $KOVETELMENY, $ZaradekIndex;
+
+ if (is_array($jegyek)) foreach ($jegyek as $vizsgaId => $jegyAdat) {
+ $vizsgaAdat = getVizsgaAdatById($vizsgaId);
+// dump($vizsgaAdat);
+ // A beírandó jegy adatai szinkronban kell legyenek a vizsga adataival
+ $jegyAdat['felev'] = $vizsgaAdat['felev'];
+ $jegyAdat['diakId'] = $vizsgaAdat['diakId'];
+ $jegyAdat['targyId'] = $vizsgaAdat['targyId'];
+ $jegyAdat['evfolyamJel'] = $vizsgaAdat['evfolyamJel'];
+ $jegyAdat['evfolyam'] = $vizsgaAdat['evfolyam'];
+
+ $targyAdat = getTargyById($vizsgaAdat['targyId']);
+ $bukas = (in_array($jegyAdat['jegy'], $KOVETELMENY[ $jegyAdat['jegyTipus'] ]['sikertelen']));
+ if ($vizsgaAdat['vizsgaDt'] != '' && !isset($vizsgaAdat['zaroJegyId']) && !isset($vizsgaAdat['zaradekId'])) {
+ // vizsga értékelés záradékai
+ if ($bukas) {
+ if (
+ $jegyAdat['jegyTipus'] != 'jegy'
+ && $jegyAdat['jegyTipus'] != 'féljegy'
+ && $vizsgaAdat['tipus'] == 'javítóvizsga'
+ ) $zaradekIndex = $ZaradekIndex['vizsga'][$vizsgaAdat['tipus'].' nem teljesített'];
+ else $zaradekIndex = $ZaradekIndex['vizsga'][$vizsgaAdat['tipus'].' bukás'];
+ } else { $zaradekIndex = $ZaradekIndex['vizsga'][ $vizsgaAdat['tipus'] ]; }
+ $Z = array(
+ 'zaradekIndex' => $zaradekIndex,
+ 'diakId' => $vizsgaAdat['diakId'],
+ 'dt' => $vizsgaAdat['vizsgaDt'], // date('Y-m-d'),
+ 'csere' => array(
+ '%tantárgy%' => $targyAdat['targyNev'],
+ '%dátum%' => str_replace('-','.',$vizsgaAdat['vizsgaDt']),
+ '%osztályzat%' => $KOVETELMENY[ $jegyAdat['jegyTipus'] ][ $jegyAdat['jegy'] ]['rovid'].' ('.$KOVETELMENY[ $jegyAdat['jegyTipus'] ][ $jegyAdat['jegy'] ]['hivatalos'].')',
+ '%évfolyam%' => $vizsgaAdat['evfolyamJel'] . (($jegyAdat['felev'] == 2) ? '.':'. ('.$jegyAdat['felev'].'. félév)') // +1 - vajon miért volt?
+ )
+ );
+ // Ez hibás így!
+ // - lehet, hogy több tárgyból is bukott! Akkor egy sikeres javítóvizsga nem jelenti azt, hogy tovább léphet
+ if ($vizsgaAdat['tipus'] == 'javítóvizsga' && !$bukas) $Z['csere']['%évfolyam%'] = getKovetkezoEvfolyamJel($vizsgaAdat['evfolyamJel']).'.'; // következő évfolyamba léphet
+ $zaradekId = zaradekRogzites($Z);
+ // vizsga zárójegyének beírása
+ $jegyAdat['dt'] = $vizsgaAdat['vizsgaDt']; // -- ez elavult
+ $jegyAdat['hivatalosDt'] = $vizsgaAdat['vizsgaDt'];
+ if ($jegyAdat['evfolyamJel'] != '') $jegyAdat['evfolyam'] = evfolyamJel2evfolyam($jegyAdat['evfolyamJel']);
+ $zaroJegyId = zaroJegyBeiras(array($jegyAdat));
+ // eredeti vizsga záradékolása és zárójegyhez kötése
+ $q = "UPDATE vizsga SET zaradekId=%u, zaroJegyId=%u WHERE vizsgaId=%u";
+ $v = array($zaradekId, $zaroJegyId, $vizsgaId);
+ db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaHalasztas/záradékolás', 'values' => $v));
+ }
+ }
+
+ }
+
+ function vizsgaTorlese($vizsgaId) {
+
+ $v = array($vizsgaId);
+
+ // Elároljuk a vizsgához tartozó zárójegyId-t
+ $q = "SELECT zaroJegyId FROM vizsga WHERE vizsgaId=%u";
+ $zaroJegyId = db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaTorlese/zárójegy törlése', 'result' => 'value', 'values' => $v));
+ // Töröljük a vizsgához tartozó zárasékot - és ezzel a vizsgát is
+ $q = "DELETE FROM zaradek WHERE zaradekId=(SELECT zaradekId FROM vizsga WHERE vizsgaId=%u)";
+ db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaTorlese/zárójegy törlése', 'values' => $v));
+ // Töröljük az eltárolt vizsgajegyet
+ $q = "DELETE FROM zaroJegy WHERE zaroJegyId=%u";
+ db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaTorlese/zárójegy törlése', 'values' => array($zaroJegyId)));
+ // Ha netán még nem törlődött volna a függőségek miatt, akkor most töröljük a vizsgát
+ $q = "DELETE FROM vizsga WHERE vizsgaId=%u";
+ return db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'vizsgaTorlese', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/bejegyzes.php b/mayor-orig/www/include/modules/naplo/share/bejegyzes.php
new file mode 100644
index 00000000..08ddfee0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/bejegyzes.php
@@ -0,0 +1,65 @@
+<?php
+
+ function getBejegyzesTipusById($btId) {
+ $q = "SELECT * FROM bejegyzesTipus WHERE bejegyzesTipusId=%u";
+ return db_query($q, array('fv' => 'getBejegyzesTipusById','modul'=>'naplo_intezmeny','values'=>array($btId),'result'=>'record'));
+ }
+
+ function getDarabBejegyzes($ADAT) {
+
+ $q = "SELECT COUNT(*) FROM bejegyzes WHERE beirasDt>='%s' AND diakId=%u";
+ return db_query($q, array('fv' => 'getDarabBejegyzes', 'modul' => 'naplo', 'result' => 'value', 'values' => array($ADAT['tolDt'], $ADAT['diakId'])));
+
+ }
+
+ function getDiakBejegyzesekByTanev($diakId, $tanev) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ $q = "SELECT * FROM `%s`.bejegyzes LEFT JOIN `%s`.`bejegyzesTipus` USING (`bejegyzesTipusId`) WHERE diakId=%u ORDER BY beirasDt";
+ $v = array($tanevDb, __INTEZMENYDBNEV, $diakId);
+ $ret = db_query($q, array(
+ 'fv' => 'getDiakBejegyzesekByTanev', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v
+ ));
+ for ($i = 0; $i < count($ret); $i++)
+ if ($ret[$i]['tanarId'] != '') $ret[$i]['tanarNev'] = getTanarNevById($ret[$i]['tanarId']);
+
+ return $ret;
+
+ }
+
+ function getBejegyzesTipusokByJogosult($jogosult, $SET = array('tipus' => array('fegyelmi','dicséret','üzenet'), 'hianyzas' => false, 'dt' => null)) {
+
+ if (!is_array($jogosult) || count($jogosult) == 0) return false;
+ $dt = isset($SET['dt'])?$SET['dt']:date('Y-m-d');
+
+ $W = array();
+ foreach ($jogosult as $j) $W[] = "jogosult LIKE '%%$j%%'";
+
+ if ($SET['hianyzas'] === true) $WH = "AND hianyzasDb > 0 ";
+
+ $q = "SELECT * FROM bejegyzesTipus WHERE (".implode(' OR ', $W).") ".$WH."AND tipus IN ('".implode("','", $SET['tipus'])."')
+ AND tolDt<='%s' AND (igDt IS NULL OR '%s'<=igDt)
+ ORDER BY tipus,fokozat";
+ $v = array($dt, $dt);
+ return db_query($q, array('fv' => 'getBejegyzesTipusokByJogosult', 'modul' => 'naplo_intezmeny', 'result' => 'indexed','values' => $v));
+
+ }
+
+ function getTorzslapBejegyzesByDiakIds($diakIds, $SET = array('tanev'=>__TANEV)) {
+
+ if (!is_array($diakIds)) $diakIds = array($diakIds);
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev == __TANEV) { global $_TANEV; $TA = $_TANEV; }
+ else { $TA = getTanevAdat($tanev); }
+
+ $q = "SELECT * FROM `%s`.`bejegyzes` WHERE `referenciaDt`='%s' AND `diakId` IN ('".implode("','", array_fill(0, count($diakIds), '%u'))."') ORDER BY `beirasDt`";
+ $v = $diakIds; array_unshift($v, tanevDbNev(__INTEZMENY, $tanev), $TA['zarasDt']);
+ $ret = db_query($q, array(
+ 'fv' => 'getTorzslapBejegyzesByDiakIds', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield'=>'diakId', 'values' => $v
+ ));
+
+ return $ret;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/bejegyzesModifier.php b/mayor-orig/www/include/modules/naplo/share/bejegyzesModifier.php
new file mode 100644
index 00000000..dd5bb05c
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/bejegyzesModifier.php
@@ -0,0 +1,40 @@
+<?php
+
+ function ujBejegyzes($bejegyzesTipusId, $szoveg, $referenciaDt ,$diakId, $hianyzasDb = null) {
+
+
+ $dj = getDiakJogviszonyByDt($diakId, date('Y-m-d'));
+ if (!in_array($dj['aktualis'], array('jogviszonyban van', 'magántanuló', 'vendégtanuló'))) {
+ $_SESSION['alert'][] = 'message:wrong_data:ujBejegyzes:Nincs jogviszonyban!';
+ return false;
+ }
+
+ if (is_null($hianyzasDb)) { $hianyzasDb = 'NULL'; $hDbPatt = '%s'; }
+ else { $hDbPatt = '%u'; }
+
+ if ($referenciaDt != '') {
+ if (defined('__USERTANARID')) {
+ $q = "INSERT INTO bejegyzes (bejegyzesTipusId, szoveg, beirasDt, referenciaDt, tanarId, diakId, hianyzasDb)
+ VALUES (%u, '%s', CURDATE(), '%s', %u, %u, $hDbPatt)";
+ $v = array($bejegyzesTipusId, $szoveg, $referenciaDt, __USERTANARID, $diakId, $hianyzasDb);
+ } else {
+ $q = "INSERT INTO bejegyzes (bejegyzesTipusId, szoveg, beirasDt,referenciaDt, tanarId, diakId, hianyzasDb)
+ VALUES (%u, '%s', CURDATE(), '%s', NULL, %u, $hDbPatt)";
+ $v = array($bejegyzesTipusId, $szoveg, $referenciaDt, $diakId, $hianyzasDb);
+ }
+ } else {
+ if (defined('__USERTANARID')) {
+ $q = "INSERT INTO bejegyzes (bejegyzesTipusId, szoveg, beirasDt, referenciaDt, tanarId, diakId, hianyzasDb)
+ VALUES (%u, '%s', CURDATE(), NULL, %u, %u, $hDbPatt)";
+ $v = array($bejegyzesTipusId, $szoveg, __USERTANARID, $diakId, $hianyzasDb);
+ } else {
+ $q = "INSERT INTO bejegyzes (bejegyzesTipusId, szoveg, beirasDt,referenciaDt, tanarId, diakId, hianyzasDb)
+ VALUES (%u, '%s', CURDATE(), NULL, NULL, %u, $hDbPatt)";
+ $v = array($bejegyzesTipusId, $szoveg, $diakId, $hianyzasDb);
+ }
+ }
+ return db_query($q, array('fv' => 'ujBejegyzes', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/bontas.php b/mayor-orig/www/include/modules/naplo/share/bontas.php
new file mode 100644
index 00000000..1053eb84
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/bontas.php
@@ -0,0 +1,72 @@
+<?php
+
+ function bontasTankorHozzarendeles($bontasIds, $tankorId, $hetiOraszam, $olr=null) {
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) { $lr = db_connect('naplo'); db_start_trans($lr);
+ } else { $lr = $olr; }
+
+ // bontasTankor rögzítése
+ $ok = true;
+ foreach ($bontasIds as $bontasId) {
+ $q = "insert into ".__TANEVDBNEV.".bontasTankor (bontasId, tankorId, hetiOraszam) values (%u, %u, %f)";
+ $v = array($bontasId, $tankorId, $hetiOraszam);
+ $r = db_query($q, array('fv'=>'bontasTankor/bt','modul'=>'naplo','values'=>$v), $lr);
+ $ok = $ok && ($r !== false);
+ }
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) {
+ if (!$ok) db_rollback($lr, 'tankörnév hozzárendelés');
+ db_close($lr);
+ }
+
+ return $ok;
+ }
+
+ function getBontasAdat($bontasId) {
+
+ $q = "select * from kepzesTargyBontas where bontasId=%u";
+ $ret = db_query($q, array('fv'=>'getBontasAdat/1','modul'=>'naplo','result'=>'record','values'=>array($bontasId)));
+
+ $q = "select * from bontasTankor where bontasId=%u order by tankorId";
+ $ret['tankor-oraszam'] = db_query($q, array('fv'=>'getBontasAdat/2','modul'=>'naplo','result'=>'indexed','values'=>array($bontasId)));
+
+ $ret['hetiOraszam'] = 0;
+ if (is_array($ret['tankor-oraszam'])) foreach ($ret['tankor-oraszam'] as $index => $toAdat) $ret['hetiOraszam'] += $toAdat['hetiOraszam'];
+
+ return $ret;
+ }
+
+ function osztalyBontasKeszE($osztalyId) {
+
+ // Az osztályhoz rendelt képzések óraterveinek óraszámai
+ $q1 = "select kepzesOratervId, hetiOraszam from osztalyNaplo left join ".__INTEZMENYDBNEV.".kepzesOsztaly using (osztalyId)
+ left join ".__INTEZMENYDBNEV.".kepzesOraterv using (kepzesId)
+ where osztalyId=%u and osztalyNaplo.evfolyamJel=kepzesOraterv.evfolyamJel";
+ // Az osztályhoz rendelt bontások óraszámai
+ $q2 = "select kepzesOratervId, sum(hetiOraszam) as hetiOraszam from kepzesTargyBontas left join bontasTankor using (bontasId)
+ where osztalyId=%u group by bontasId";
+ $v = array($osztalyId, $osztalyId);
+ // Az óratervet lefedik-e a bontások
+ $q12 = "select count(oraterv.kepzesOratervId) from
+ (".$q1.") as oraterv
+ left join (".$q2.") as bontas
+ using (kepzesOratervId, hetiOraszam)
+ where bontas.kepzesOratervId is null";
+ // A bontások óraszámai teljesek-e
+ $q21 = "select count(bontas.kepzesOratervId) from
+ (".$q2.") as bontas
+ left join (".$q1.") as oraterv
+ using (kepzesOratervId, hetiOraszam)
+ where oraterv.kepzesOratervId is null";
+
+ return (
+ db_query($q12, array('fv'=>'osztalyBontasKeszE/12','modul'=>'naplo','result'=>'value','values'=>$v))
+ + db_query($q21, array('fv'=>'osztalyBontasKeszE/21','modul'=>'naplo','result'=>'value','values'=>$v))
+ == 0
+ );
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/diak.php b/mayor-orig/www/include/modules/naplo/share/diak.php
new file mode 100644
index 00000000..2482a97d
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/diak.php
@@ -0,0 +1,602 @@
+<?php
+
+ if (file_exists("lang/$lang/module-naplo/share/diak.php")) {
+ require_once("lang/$lang/module-naplo/share/diak.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/module-naplo/share/diak.php')) {
+ require_once('lang/'._DEFAULT_LANG.'/module-naplo/share/diak.php');
+ }
+
+ function getVegzoDiakok($SET = array('tanev' => __TANEV)) {
+
+ global $_TANEV;
+
+ // tanév adatai
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev != __TANEV) $tanevAdat = getTanevAdat($tanev, $lr);
+ else $tanevAdat = $_TANEV;
+
+ // ez volt eredetileg:
+ /*$q = "SELECT diakId FROM osztalyDiak LEFT JOIN osztaly USING (osztalyId)
+ WHERE beDt <= '%s' AND (kiDt IS NULL OR '%s' <= kiDt)
+ GROUP BY diakId HAVING MAX(vegzoTanev) = %u";*/
+ // le kell kéredezni a megadott tanévben végzős OSZTÁLYOK diákjait, kivéve azokat, akik később végzős osztályok tagjai
+ $q = "SELECT diakId FROM osztalyDiak LEFT JOIN osztaly USING (osztalyId)
+ WHERE beDt <= '%s' AND (kiDt IS NULL OR '%s' <= kiDt)
+ AND diakId NOT IN (
+ SELECT diakId FROM osztalyDiak LEFT JOIN osztaly USING (osztalyId) WHERE vegzoTanev>%u
+ )
+ GROUP BY diakId HAVING MAX(vegzoTanev) = %u";
+ return db_query($q, array('fv' => 'getVegzosDiakok', 'modul' => 'naplo_intezmeny', 'values' => array($tanevAdat['zarasDt'], $tanevAdat['zarasDt'],$tanev, $tanev), 'result' => 'idonly'));
+ }
+
+ function getDiakokOld($SET = array('osztalyId' => null, 'tanev' => __TANEV, 'tolDt' => null, 'igDt' => null, 'override' => false, 'statusz' => null, 'result'=>''), $olr = null) {
+
+ global $_TANEV;
+
+ if ($SET['csakId']===true || $SET['result'] == 'csakId') $SET['result'] = 'idonly';
+ $osztalyId = readVariable($SET['osztalyId'], 'numeric unsigned', null);
+ $tolDt = readVariable($SET['tolDt'], 'datetime', null);
+ $igDt = readVariable($SET['igDt'], 'datetime', null);
+ // Az adott tanév elejének és végének lekérdezése
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ initTolIgDt($tanev, $tolDt, $igDt, $SET['override']);
+
+ if ($tanev != __TANEV) $tanevAdat = getTanevAdat($tanev, $lr);
+ else $tanevAdat = $_TANEV;
+
+ $KIBEDT = "beDt <= '%2\$s' AND (kiDt IS NULL OR '%3\$s' <= kiDt) AND ";
+
+ // A lekérdezendő diákok státusza
+ if (!is_array($SET['statusz']) || count($SET['statusz']) == 0) {
+ if ($tanevAdat['statusz'] == 'aktív') {
+ $Statusz = array('jogviszonyban van','magántanuló','vendégtanuló');
+ } else {
+ $Statusz = array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva');
+ // ebben az esetben kit érdekel a diák kilépésének ideje???
+ $KIBEDT = ''; $v = array();
+ }
+ } else {
+ $Statusz = readVariable($SET['statusz'], 'enum', null,
+ array('felvételt nyert','jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ }
+
+ // Intézményi adatbázis neve
+ $intezmenyDb = intezmenyDbNev(__INTEZMENY);
+/*
+ Szerintem ez nem jó így.
+ 1. a tol-igDt alapján a diakJogviszony táblát kellene néznünk - közben volt-e jogviszonyban, vagy magántanulóként.
+ 2. A having végén a jogviszony miért is?
+
+*/
+ if (!isset($osztalyId)) {
+ if ($SET['result'] == 'idonly') $mezok = 'diakId';
+ else $mezok = "diakId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev,
+ statusz, MAX(osztaly.vegzoTanev) AS maxVegzoTanev";
+ $q = "SELECT $mezok
+ FROM %2\$s.diak
+ LEFT JOIN %2\$s.osztalyDiak USING (diakId)
+ LEFT JOIN %2\$s.osztaly USING (osztalyId)
+ WHERE diak.kezdoTanev <= %u
+ AND statusz IN ('".implode("','", $Statusz)."')
+ GROUP BY diakId
+ HAVING %1\$u <= maxVegzoTanev OR maxVegzoTanev IS NULL OR statusz IN ('jogviszonyban van','magántanuló')
+ ORDER BY viseltCsaladiNev,viseltUtonev";
+ $v = array($tanev, $intezmenyDb);
+ } else {
+ if ($SET['result'] == 'idonly') $mezok = 'diakId';
+ else $mezok = "osztalyDiak.diakId, TRIM(CONCAT_WS(' ', viseltNevElotag, viseltCsaladinev, viseltUtonev)) AS diakNev,
+ statusz, DATE_FORMAT(beDt,'%%Y-%%m-%%d') AS beDt, DATE_FORMAT(kiDt,'%%Y-%%m-%%d') AS kiDt";
+ $q = "SELECT $mezok
+ FROM %1\$s.osztalyDiak LEFT JOIN %1\$s.diak USING (diakId)
+ WHERE $KIBEDT
+ osztalyDiak.osztalyId=%4\$u
+ AND statusz IN ('".implode("','", $Statusz)."')
+ ORDER BY ViseltCsaladiNev,ViseltUtonev";
+ $v = array($intezmenyDb, $igDt, $tolDt, $osztalyId);
+
+ }
+
+ if ($SET['result'] == 'idonly')
+ return db_query($q, array('fv' => 'getDiakok', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'idonly'), $olr);
+ elseif ($SET['result'] == 'assoc')
+ return db_query($q, array('fv' => 'getDiakok', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'diakId', 'values' => $v), $olr);
+ else
+ return db_query($q, array('fv' => 'getDiakok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $olr);
+
+ }
+
+ function getDiakok($SET = array('osztalyId' => null, 'tanev' => __TANEV, 'tolDt' => null, 'igDt' => null, 'override' => false, 'statusz' => null, 'result'=>'', 'extraAttrs'=>''), $olr = null) {
+
+ global $_TANEV;
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed','assoc','idonly','keyvaluepair'));
+ $osztalyId = readVariable($SET['osztalyId'], 'id', null);
+ if (!is_null($osztalyId) && !is_array($osztalyId)) $osztalyId = array($osztalyId); // ha csak egy érték, legyen tömb
+ $tolDt = readVariable($SET['tolDt'], 'datetime', null);
+ $igDt = readVariable($SET['igDt'], 'datetime', null);
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ initTolIgDt($tanev, $tolDt, $igDt, $SET['override']);
+ if ($tanev != __TANEV) $tanevAdat = getTanevAdat($tanev, $lr);
+ else $tanevAdat = $_TANEV;
+
+ $extraAttrs = ($SET['extraAttrs']!='') ? ','.$SET['extraAttrs'] : '';
+
+ // A lekérdezendő diákok státusza
+ if (!is_array($SET['statusz']) || count($SET['statusz']) == 0) {
+ if ($tanevAdat['statusz'] == 'aktív') {
+ $Statusz = array('jogviszonyban van','magántanuló','vendégtanuló');
+ } else {
+ $Statusz = array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva');
+ }
+ } else {
+ $Statusz = readVariable($SET['statusz'], 'enum', null,
+ array('felvételt nyert','jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ }
+
+ // jogviszony szerinti lekérdezés - szóbajövő diakId-k
+ // Ez MySQL 5.1.41 alatt (Ubuntu) működött, de 5.0.32-vel (Debian Etch?) nem
+/* $q = "SELECT diakId FROM diakJogviszony AS dj1 WHERE statusz IN ('".implode("','", $Statusz)."') AND dt <= '%s'
+ GROUP BY diakId
+ HAVING (SELECT COUNT(*) FROM diakJogviszony AS dj2 WHERE diakId = dj1.diakId AND MAX(dj1.dt) < dt AND dt <= '%s') = 0";
+*/
+ // Ez működik 5.0.32-vel is
+ $q = "SELECT diakId FROM diakJogviszony WHERE dt <= '%s' GROUP BY diakId HAVING
+ MAX(IF(statusz IN ('".implode("','", $Statusz)."'),dt,'0000-00-00')) >
+ MAX(IF(statusz NOT IN ('".implode("','", $Statusz)."') AND dt <= '%s',dt,'0000-00-00'))";
+ $v = array($igDt, $tolDt);
+ $diakIds = db_query($q, array('fv' => 'getDiakok', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'idonly'));
+ if (!is_array($diakIds)) return false; // hiba
+ if (count($diakIds) == 0) return array(); // nincs ilyen diák
+ // A felvételt nyert státuszú diák ebben a listában nem szerepel
+ if (in_array('felvételt nyert', $Statusz)) {
+ $FNY_WHERE = " OR statusz = 'felvételt nyert' ";
+ }
+ // Névsor
+ if (!isset($osztalyId)) {
+ $q = "SELECT diakId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev, statusz AS aktualisStatusz
+ $extraAttrs
+ FROM diak
+ WHERE diak.kezdoTanev <= %u AND (diakId IN (".implode(",", $diakIds).") $FNY_WHERE )
+ ORDER BY viseltCsaladiNev,viseltUtonev";
+ $v = array($tanev, $intezmenyDb);
+ } else {
+
+ if ($tanev!='')
+ $qNs = ", diakNaploSorszam(osztalyDiak.diakId,$tanev,osztalyDiak.osztalyId) AS diakNaploSorszam";
+ else
+ $qNs = '';
+
+ $q = "SELECT DISTINCT osztalyDiak.diakId, TRIM(CONCAT_WS(' ', viseltNevElotag, viseltCsaladinev, viseltUtonev)) AS diakNev, statusz AS aktualisStatusz
+ $qNs $extraAttrs
+ FROM osztalyDiak LEFT JOIN diak USING (diakId)
+ WHERE beDt <= '%s' AND (kiDt IS NULL OR '%s' <= kiDt) AND
+ osztalyDiak.osztalyId IN (". implode(',', $osztalyId) .")
+ AND (diakId IN (".implode(",", $diakIds).") $FNY_WHERE )
+ ORDER BY ViseltCsaladiNev,ViseltUtonev";
+ $v = array($igDt, $tolDt);
+ }
+
+ return db_query($q, array('fv' => 'getDiakok', 'modul' => 'naplo_intezmeny', 'result' => $result, 'keyfield' => 'diakId', 'values' => $v), $olr);
+
+ }
+
+
+
+ function getDiakokByOsztalyId($IDs, $SET = array('tanev' => __TANEV, 'tolDt' => null, 'igDt' => null, 'result' => '', 'statusz' => array('jogviszonyban van','magántanuló'))) {
+ ////////////////////////////////////////////////////////////////
+ // !!! Ez a függvény csak a diák aktuális státuszát nézi! !!! //
+ ////////////////////////////////////////////////////////////////
+ if (!is_array($IDs) || count($IDs) == 0) return false;
+
+ if ($SET['result']=='assoc' || $SET['result']=='multiassoc') $SET['result'] = 'multiassoc';
+ else $SET['result'] = 'indexed';
+
+ if ($SET['tanev']!='') $tanev = $SET['tanev']; else $tanev=__TANEV;
+ // Az adott tanév elejének és végének lekérdezése
+ if ($tanev != __TANEV) $tanevAdat = getTanevAdat($tanev, $lr);
+ else { global $_TANEV; $tanevAdat = $_TANEV; }
+
+// $tanevKezdes = $tanevAdat['kezdesDt']; $tanevZaras = $tanevAdat['zarasDt']; $time = time();
+ $tolDt = readVariable($SET['tolDt'], 'date', $tanevAdat['kezdesDt']);
+ $igDt = readVariable($SET['igDt'], 'date', $tanevAdat['zarasDt']);
+
+ if (!is_array($SET['statusz']) || count($SET['statusz']) == 0)
+ if ($tanevAdat['statusz'] == 'aktív') $SET['statusz'] = array('jogviszonyban van','magántanuló');
+ else $SET['statusz'] = array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva');
+ // Intézményi adatbázis neve
+ $intezmenyDb = intezmenyDbNev(__INTEZMENY);
+ $RESULT = false;
+
+ $q = "SELECT osztalyDiak.diakId AS diakId, TRIM(CONCAT_WS(' ', viseltNevElotag, viseltCsaladinev, viseltUtonev)) AS diakNev,
+ osztalyId, DATE_FORMAT(beDt,'%%Y-%%m-%%d') AS beDt, DATE_FORMAT(kiDt,'%%Y-%%m-%%d') AS kiDt
+ FROM `%s`.osztalyDiak LEFT JOIN `%s`.diak USING (diakId)
+ WHERE beDt <= '%s'
+ AND (kiDt IS NULL OR kiDt >= '%s')
+ AND osztalyDiak.osztalyId IN (".implode(',', array_fill(0, count($IDs), '%u')).")
+ AND statusz IN ('".implode("','", $SET['statusz'])."')
+ ORDER BY ViseltCsaladiNev,ViseltUtonev";
+// array_unshift($IDs, $intezmenyDb, $intezmenyDb, $tanevZaras, $tanevKezdes);
+ array_unshift($IDs, $intezmenyDb, $intezmenyDb, $igDt, $tolDt);
+ return db_query($q, array('result' => $SET['result'], 'fv' => 'getDiakokByOsztalyId', 'modul' => 'naplo_intezmeny', 'values' => $IDs, 'keyfield' => 'osztalyId'));
+
+
+ }
+
+ /*
+ Az előző függvény hiányosságait kiküszöbölő függvény, ami a diakJogviszony táblát is figyelembeveszi
+
+ $SET['tanev'|'tolDt'|'igDt'|'statusz'|'statuszonkent']
+
+ return[ diakId ][ 'diakId'|'diakNev' ]
+ return[ diakId ][ 'osztalyDiak' ][][ 'beDt'|'kiDt' ] -- DESC !!
+ return[ diakId ][ 'statusz' ][][ 'statusz'|'dt' ] -- DESC !!
+ return['jogviszonyban van'|...|'jogviszonya lezárva'][]
+
+ */
+
+ /* EZ ETTŐL MÉG GLOBAL SCOPE!!!! Kéretik normális nevet adni neki!!!*/
+ function _tmp11($value) { return array('beDt' => $value['beDt'], 'kiDt' => $value['kiDt']); }
+ function _tmp22($value) { return array('statusz' => $value['statusz'], 'dt' => $value['dt']); }
+
+ function getDiakokByOsztaly($osztalyId, $SET = array()) {
+
+ global $_TANEV;
+
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev != __TANEV) $_TA = getTanevAdat($tanev, $lr);
+ else $_TA = $_TANEV;
+
+ $orderBy = ($SET['orderBy']=='naploSorszam') ? " ORDER BY diakNaploSorszam(osztalyDiak.diakId,$tanev,osztalyDiak.osztalyId) " : "ORDER BY ViseltCsaladiNev, ViseltUtonev, beDt DESC";
+ $tolDt = readVariable($SET['tolDt'], 'datetime', $_TA['kezdesDt']);
+ $igDt = readVariable($SET['igDt'], 'datetime', $_TA['zarasDt']);
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $statusz = readVariable($SET['statusz'], 'enum', null, array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva'));
+ if (!is_array($statusz) || count($statusz) == 0) $statusz = array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva');
+ $statuszonkent = readVariable($SET['statuszonkent'],'bool',true);
+ $intezmenyDb = intezmenyDbNev(__INTEZMENY);
+
+ // Az összes diák lekérdezése (esetleg lehet majd bent többször is az osztályban!)
+ $q = "SELECT osztalyDiak.diakId AS diakId, TRIM(CONCAT_WS(' ', viseltNevElotag, viseltCsaladinev, viseltUtonev)) AS diakNev,
+ osztalyId, DATE_FORMAT(beDt,'%%Y-%%m-%%d') AS beDt, DATE_FORMAT(kiDt,'%%Y-%%m-%%d') AS kiDt, statusz AS aktualisStatusz
+ FROM `%s`.osztalyDiak LEFT JOIN `%s`.diak USING (diakId)
+ WHERE beDt <= '%s' AND (kiDt IS NULL OR kiDt >= '%s')
+ AND osztalyDiak.osztalyId=%u ".$orderBy;
+ $v = array($intezmenyDb, $intezmenyDb, $igDt, $tolDt, $osztalyId);
+ $ret1 = db_query($q, array('result' => 'multiassoc', 'keyfield' => 'diakId', 'fv' => 'getDiakokByOsztaly', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ if (is_array($ret1) && count($ret1)>0) $diakIds = array_keys($ret1);
+ else $diakIds = array();
+
+ if ($statuszonkent) $return = array('jogviszonyban van' => array(), 'magántanuló' => array(), 'vendégtanuló' => array(), 'jogviszonya felfüggesztve' => array(), 'jogviszonya lezárva' => array(), 'felvételt nyert'=>array());
+ else $return = array();
+
+ // Ha nincs tagja az osztálynak még/már
+ if (!is_array($diakIds) || count($diakIds) == 0) return $return;
+
+ // Jogviszonyadatok lekérdezése
+ $q = "SELECT * FROM diakJogviszony WHERE diakId IN (".implode(', ', array_fill(0, count($diakIds), '%u')).") AND dt <='$igDt' ORDER BY diakId, dt DESC";
+ array_push($diakIds, $igDt);
+ $ret2 = db_query($q, array('result' => 'multiassoc', 'keyfield' => 'diakId', 'fv' => 'getDiakokByOsztaly', 'modul' => 'naplo_intezmeny', 'values' => $diakIds ));
+ /* --TODO, ellenőrizni ret1 és ret2-t!
+ Warning: array_map() [function.array-map]: Argument #2 should be an array in /var/mayor/www/include/modules/naplo/share/diak.php on line 187
+ Warning: Cannot modify header information - headers already sent by (output started at /var/mayor/www/include/modules/naplo/share/diak.php:187) in /var/mayor/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php on line 124
+ */
+ if (is_array($ret1)) {
+ foreach ($ret1 as $diakId => $stat) {
+ $_felveteltNyert = ($stat[0]['aktualisStatusz']=='felvételt nyert')?true:false;
+ // Szűrés a státuszra
+ // Ha az utolsó státusz jó, akkor ok (order by dt desc)
+ $i = 0;
+ $ok = in_array($ret2[$diakId][$i]['statusz'], $statusz) || $_felveteltNyert;
+ // addig megyünk visszafele, amíg
+ // - nem $ok (még nem találtunk megfelelő státuszt)
+ // - van még statusz bejegyzés
+ // - az aktuális bejegyzés dátuma > tolDt (az előtte lévők nem érvényesek a megadott időszakra)
+ while (!$ok && strtotime($ret2[$diakId][$i]['dt'])>strtotime($tolDt) && $i < count($ret2[$diakId])-1) {
+ $i++;
+ $ok = in_array($ret2[$diakId][$i]['statusz'], $statusz);
+ }
+ if ($ok) { // Ha az adott időszakban volt a megadott státuszok valamelyikében
+ $return[$diakId] = array('diakId' => $ret1[$diakId][0]['diakId'], 'diakNev' => $ret1[$diakId][0]['diakNev']);
+ $return[$diakId]['osztalyDiak'] = @array_map('_tmp11', $ret1[$diakId]);
+ if ($_felveteltNyert)
+ $return[$diakId]['statusz'][] = array('statusz'=>'felvételt nyert');
+ else
+ $return[$diakId]['statusz'] = @array_map('_tmp22', $ret2[$diakId]);
+ if ($statuszonkent) {
+ for ($i = 0; $i < count($return[$diakId]['statusz']); $i++) {
+ if (!in_array($diakId, $return[ $return[$diakId]['statusz'][$i]['statusz'] ])) $return[ $return[$diakId]['statusz'][$i]['statusz'] ][] = $diakId;
+ if (strtotime($tolDt) >= strtotime($return[$diakId]['statusz'][$i]['dt'])) break;
+ }
+ }
+ }
+ }
+ }
+
+ return $return;
+
+ }
+
+ function getDiakokById($IDs, $olr = '') {
+ // Visszaadjuk a statusz-t is, de dátum nélkül ez nem túl értelemes... de a diakSelect-ben kell...
+ if (!is_array($IDs) || count($IDs) == 0) return false;
+ $q = "SELECT diakId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev, statusz, statusz as aktualisStatusz
+ FROM ".__INTEZMENYDBNEV.".diak WHERE diakId IN (".implode(',',$IDs).") ORDER BY viseltcsaladinev,viseltutonev";
+ return db_query($q, array('keyfield' => 'diakId', 'result' => 'assoc', 'fv' => 'getDiakokById', 'modul' => 'naplo_intezmeny'));
+ }
+
+ function getDiakNevById($diakId) {
+ $q = "SELECT TRIM(CONCAT_WS(' ', viseltNevElotag, viseltCsaladiNev, viseltUtonev)) AS diakNev
+ FROM `".__INTEZMENYDBNEV."`.`diak` WHERE diakId=%u";
+ return db_query($q, array('fv' => 'getDiakNevById', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($diakId)));
+ }
+
+ function getDiakMindenOsztaly($diakId) {
+
+ $q = "SELECT * FROM osztalyDiak WHERE diakId=%u";
+ $osztalyIds = db_query($q, array('fv'=>'getDiakMindenOsztaly', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($diakId)));
+
+ return $osztalyIds;
+ }
+ function getDiakOsztalya($diakId, $SET= array('tanev'=>__TANEV,'tolDt'=>'','igDt'=>'', 'result'=>''), $olr='') {
+
+ global $_TANEV;
+ //$tolDt = $SET['tolDt']; $igDt=$SET['igDt'];
+ $osztalyId = array();
+
+ // Az adott tanév elejének és végének lekérdezése
+ if ($SET['tanev']=='') $SET['tanev'] = __TANEV;
+ $tanev = $SET['tanev'];
+ if ($tanev != __TANEV) $tanevAdat = getTanevAdat($tanev, $olr);
+ else $tanevAdat = $_TANEV;
+
+ $tolDt = $SET['tolDt']; $igDt=$SET['igDt']; $tanev = $SET['tanev'];
+ if ($tolDt==$igDt && $tolDt=='') {
+ $tolDt = $tanevAdat['kezdesDt']; $igDt = $tanevAdat['zarasDt'];
+ } else {
+ initTolIgDt($tanev, $tolDt, $igDt);
+ }
+
+ if ($diakId != '') {
+
+ if ($SET['result']=='csakid' || $SET['result']=='idonly') {
+ $q = "SELECT DISTINCT osztalyId FROM osztalyDiak WHERE beDt <= '%s' AND (kiDt IS NULL OR kiDt >= '%s') AND diakId=%u ORDER BY beDt DESC";
+ $osztalyId = db_query($q, array('fv' => 'getDiakOsztalya1', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($igDt, $tolDt, $diakId)), $olr);
+ } elseif ($tanevAdat['statusz'] != 'tervezett') {
+ $q = "SELECT osztalyId, osztalyJel, beDt, kiDt, diakNaploSorszam(diakId,%u,osztalyId) AS naploSorszam
+ FROM osztalyDiak LEFT JOIN ".tanevDbNev(__INTEZMENY, $tanev).".osztalyNaplo USING (osztalyId)
+ WHERE diakId=%u
+ AND beDt <= '%s'
+ AND (kiDt IS NULL OR kiDt >= '%s')
+ ORDER BY beDt DESC";
+ $osztalyId = db_query($q, array('fv' => 'getDiakOsztalya2', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanev,$diakId,$igDt, $tolDt)),$olr);
+ } else {
+ $q = "SELECT DISTINCT osztalyId FROM osztalyDiak WHERE beDt <= '%s'
+ AND (kiDt IS NULL OR kiDt >= '%s') AND diakId=%u ORDER BY beDt DESC";
+ $osztalyId = db_query($q, array('fv'=>'getDiakOsztalya3', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($igDt, $tolDt, $diakId)),$olr); // biztos ilyen formátumot vársz???
+ }
+ }
+
+ return $osztalyId;
+ }
+
+ function getDiakokOsztalyai($diakIds, $SET = array('tanev' => __TANEV, 'tolDt' => null, 'igDt' => null, 'result'=>null), $olr='') {
+
+ global $_TANEV;
+
+ $tolDt = $SET['tolDt'];
+ $igDt=$SET['igDt'];
+ if ($SET['tanev']=='') $tanev=__TANEV; else $tanev = $SET['tanev'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+
+ $RESULT = array();
+ if (is_array($diakIds) && count($diakIds)>0) {
+ if ($SET['result']==='csakId') {
+ $FIELDS = 'DISTINCT `osztalyId`';
+ $result = 'idonly';
+ } else {
+ $FIELDS = '`diakId`, `osztalyId`';
+ $result = 'indexed';
+ }
+ $q = "SELECT $FIELDS
+ FROM osztalyDiak LEFT JOIN diak USING (diakId) WHERE beDt <= '%s'
+ AND (kiDt IS NULL OR kiDt >= '%s')
+ AND diakId IN (". implode(',', array_fill(0, count($diakIds), '%u')) .") ";
+ array_unshift($diakIds, $igDt, $tolDt);
+ $R = db_query($q, array('fv' => 'getDiakokOsztalyai', 'result' => $result, 'modul' => 'naplo_intezmeny', 'values' => $diakIds));
+ if ($SET['result']!=='csakId') {
+ for ($i = 0; $i < count($R); $i++) {
+ $RESULT[$R[$i]['diakId']][] = $R[$i]['osztalyId'];
+ }
+ } else {
+ $RESULT = $R;
+ }
+ }
+ return $RESULT;
+ }
+ function getDiakAdatById($diakIds, $SET = array('result'=>'indexed', 'keyfield'=>''), $olr='') {
+
+ if ($olr=='') $lr = db_connect('naplo');
+ else $lr=$olr;
+
+ if (!is_array($diakIds)) { $diakIds = array($diakIds); $result = 'record'; }
+ else {
+ if ($SET['result']!='') $result = $SET['result'];
+ else $result = 'indexed';
+ }
+
+ //$q = "SELECT * FROM ".__INTEZMENYDBNEV.".diak WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")";
+ $q = "SELECT diak.*, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev, TIMESTAMPDIFF(YEAR, diak.szuletesiIdo, CURDATE()) AS diakEletkor, dj.dt AS jogviszonyDt, dj.statusz AS jogviszonyStatusz
+ FROM ".__INTEZMENYDBNEV.".diak LEFT JOIN ".__INTEZMENYDBNEV.".diakJogviszony AS dj
+ ON diak.diakId=dj.diakId AND dj.dt=(SELECT MAX(dt) FROM ".__INTEZMENYDBNEV.".diakJogviszony WHERE dt<=CURDATE() AND diakId=dj.diakId)
+ WHERE diak.diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")";
+
+ $r = db_query($q, array('fv' => 'getDiakAdatById', 'modul' => 'naplo_intezmeny', 'result' => $result, 'keyfield'=>$SET['keyfield'],'values' => $diakIds), $lr);
+
+ if ($olr=='') db_close($lr);
+ return $r;
+ }
+
+ function getDiakBySzulDt($md)
+ {
+ if ($md == '') $md = date('m-d');
+ $q = "SELECT diakId FROM diak WHERE szuletesiIdo like '%%-%s' AND jogviszonyVege is NULL"; // credits: Neumayer Béla <szepi1971@gmail.com>
+ $diakIds = db_query($q, array('fv' => 'getDiakBySzulDt', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($md)));
+ if (count($diakIds)>0) {
+ $RET['diak'] = getDiakAdatById($diakIds);
+ $RET['diakOsztaly'] = getDiakokOsztalyai($diakIds);
+ } else {
+ $RET = false;
+ }
+ return $RET;
+ }
+
+ function diakVegzosE($diakId, $SET = array('tanev' => __TANEV, 'dt' => null)) {
+
+ global $_TANEV;
+
+ // tanév adatai
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ $dt = readVariable($SET['dt'], 'datetime', date('Y-m-d'));
+
+ $q = "SELECT MAX(vegzoTanev) FROM osztalyDiak LEFT JOIN osztaly USING (osztalyId)
+ WHERE diakId=%u AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt)";
+ $maxVegzoTanev = db_query($q, array('fv' => 'diakVegzosE', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($diakId, $dt, $dt)));
+
+ return ($tanev == $maxVegzoTanev);
+ }
+
+
+ function getDiakJogviszony($diakId) {
+
+ $v = array($diakId);
+ $q = "SELECT statusz,dt FROM diakJogviszony WHERE diakId=%u ORDER BY dt";
+ $ret = db_query($q, array('fv' => 'getDiakJogviszony', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ return $ret;
+
+ }
+
+ function getDiakJogviszonyByDt($diakId, $dt) { // dt előtt és után vagy egyenlőt adja vissza, ezért dt - nek lennie kellene...
+
+ $v = array($diakId, $dt);
+
+ $q = "SELECT statusz FROM diak WHERE diakId=%u";
+ $ret['aktualis'] = db_query($q, array('fv' => 'getDiakJogviszonyByDt', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($diakId)));
+ if ($ret['aktualis']=='felvételt nyert') { /* Ha felvételt nyert, nincs bejegyzése a diakJogviszony táblába */
+ $ret['elotte'] = $ret['aktualis']; // ==felvételt nyert
+ } else {
+ $q = "SELECT statusz FROM diakJogviszony WHERE diakId=%u AND dt<'%s' ORDER BY dt DESC LIMIT 1";
+ $ret['elotte'] = db_query($q, array('fv' => 'getDiakJogviszonyByDt', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+ }
+ /* Az utána statuszt lekérdezem, hisz lehet hogy a jövőbe már be van állítva */
+ $q = "SELECT statusz FROM diakJogviszony WHERE diakId=%u AND dt>='%s' ORDER BY dt LIMIT 1";
+ $ret['utana'] = db_query($q, array('fv' => 'getDiakJogviszonyByDt', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+
+ return $ret;
+
+ }
+
+ function getDiakJogviszonyByDts($diakIds, $dts, $olr='') {
+ // lekérdezzük az adott diák/diákok megadott dátum(ok) szerinti jogviszonyait - pl Osztályozónapló
+ $ret = array();
+ if (is_array($diakIds) && is_array($dts)) {
+ foreach ($diakIds as $diakId) {
+ foreach ($dts as $dt) {
+ $q = "SELECT diakId, dt, statusz FROM diakJogviszony WHERE diakId=%u AND dt <= '%s' ORDER BY dt DESC LIMIT 1";
+ $ret[$diakId][$dt] = db_query($q, array('fv' => 'getDiakJogviszonyByDts', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($diakId, $dt)), $olr);
+ }
+ }
+ }
+ return $ret;
+ }
+
+ function getDiakAdatkezeles($diakId, $filter = null) {
+
+ if (is_numeric($diakId)) {
+
+ $v = array($diakId);
+ if (is_array($filter)) {
+ foreach ($filter as $kulcs => $ertek) {
+ $W[] = " AND kulcs = '%s'";
+ $W[] = " AND ertek = '%s'";
+ $v[] = $kulcs;
+ $v[] = $ertek;
+ }
+ } else $W = '';
+
+ $q = "SELECT * FROM diakAdatkezeles WHERE diakId = %u".implode(' ',$W);
+ $r = db_query($q, array('fv' => 'getDiakAdatkezeles', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield'=>'kulcs', 'values' => $v));
+
+ return $r;
+
+ } else {
+ return false;
+ }
+
+ }
+
+
+ function getDiakTorzslapszam($diakId, $osztalyId, $SET = array('osztalyJellel' => true, 'tanev'=>__TANEV)) {
+ /*
+ * Ha van a diak táblában törzslapszám, akkor azt adjuk vissza, ha nincs akkor a diakTorzslapszam tábla megfelelő értékét, vagy ennek hiányában false null értéket.
+ * Nem használt függvény (még)
+ */
+
+ $q = "SELECT torzslapszam FROM diak WHERE diakId=%u";
+ $v = array($diakId);
+ $r = db_query($q, array('fv'=>'getDiakTorzslapszam/diak', 'modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+
+ if ($r && !is_null($r)) return $r;
+
+ $q = "SELECT torzslapszam FROM diakTorzslapszam WHERE diakId=%u AND osztalyId=%u";
+ $v = array($diakId, $osztalyId);
+ $r = db_query($q, array('fv'=>'getDiakTorzslapszam/osztaly', 'modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+
+ if ($SET['osztalyJellel']) {
+ $q = "select concat('/',kezdoTanev, '-', vegzoTanev+1,'/',jel) from osztaly where osztalyId = %u";
+ $v = array($osztalyId);
+ $r .= db_query($q, array('fv'=>'getDiakTorzslapszam/osztalyJel', 'modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+ }
+
+ return $r;
+ }
+
+
+ function getDiakokTorzslapszamaByOsztalyId($osztalyId, $SET = array('osztalyJellel' => true, 'tanev'=>__TANEV)) {
+ /*
+ * Ha van a diak táblában törzslapszám, akkor azt adjuk vissza, ha nincs akkor a diakTorzslapszam tábla megfelelő értékét, vagy ennek hiányában false null értéket.
+ * Nem használt függvény (még)
+ */
+
+ // kérdezzük le az osztály valaha volt összes tagját:
+ $q = "SELECT count(diakId) FROM osztalyDiak WHERE osztalyId=%u";
+ $v = array($osztalyId);
+ $db = db_query($q, array('fv'=>'getDiakokTorzslapszama/osztalyTagok', 'modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+
+ // Ha nincsenek tagok
+ if ($db == 0) return false;
+
+ // OsztalyJel lekérdezése
+ if ($SET['osztalyJellel']) {
+ $q = "select concat('/',kezdoTanev, '-', vegzoTanev+1,'/',jel) from osztaly where osztalyId = %u";
+ $v = array($osztalyId);
+ $osztalyStr = db_query($q, array('fv'=>'getDiakokTorzslapszama/osztalyJel', 'modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+ } else {
+ $osztalyStr = '';
+ }
+ // Törzslapszámok lekérdezése
+ $q = "select diakId, ifnull(diak.torzslapszam, concat(diakTorzslapszam.torzslapszam,'%s')) as torzslapszam
+ from diak left join diakTorzslapszam using(diakId)
+ where osztalyId=%u
+ and diakId in (select diakId from osztalyDiak where osztalyId=%u)
+ order by torzslapszam";
+ $v = array($osztalyStr, $osztalyId, $osztalyId);
+ $r = db_query($q, array('fv'=>'getDiakokTorzslapszama/osztaly', 'modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$v));
+
+ return $r;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/diakModifier.php b/mayor-orig/www/include/modules/naplo/share/diakModifier.php
new file mode 100644
index 00000000..34a4a2c5
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/diakModifier.php
@@ -0,0 +1,344 @@
+<?php
+
+ require_once('include/modules/naplo/share/zaradek.php');
+
+ function diakJogviszonyValtas($ADAT) {
+
+
+ global $ZaradekIndex;
+
+ /*
+ $ADAT
+ diakId
+ jogviszonyValtasDt
+ ujStatusz
+ tanev
+ zaradek - felvétel | felvétel osztályba | magántanuló | felfüggesztés
+ lezarasZaradekIndex - 40..45
+ --
+ hatarozat
+ felfuggesztesOk
+ felfuggesztesIgDt
+ lezarasZaradekIndex
+ lezarasIgazolatlanOrakSzama, lezarasIskola
+ */
+ $ADAT['jogviszonyValtasDt'] = (readVariable($ADAT['jogviszonyValtasDt'],'regexp',null,array('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')));
+
+ if (!isset($ADAT['jogviszonyValtasDt'])) { // nincs meg a változtatás dátuma
+ $_SESSION['alert'][] = 'message:empty_field:diakJogviszonyValtas:jogviszonyValtasDt';
+ return false;
+ }
+// Mégis egengedett --> lásd: base/rights: checkDiakStatusz()
+// if (strtotime($ADAT['jogviszonyValtasDt']) > time()) { // jövőbeni statusz nem állítható be!
+// $_SESSION['alert'][] = 'message:wrong_data:diakJogviszonyValtas:jogviszonyValtasDt='.$ADAT['jogviszonyValtasDt'].':Jövőbeli állapotváltást nem rögzítünk!';
+// return false;
+// }
+
+ // A megelőző és következő jogviszony státusz lekérdezése
+ $DJ = getDiakJogviszonyByDt($ADAT['diakId'], $ADAT['jogviszonyValtasDt']);
+ if (!isset($DJ['elotte'])) { // Kell legyen megelőző - amúgy ujDiak kellene
+ $_SESSION['alert'][] = 'message:wrong_data:diakJogviszonyValtas:Nincs kezdeti státusz - hiba történt a diák adatainak rögzítésekor?';
+ return false;
+ }
+
+ if ($DJ['elotte'] == 'felvételt nyert' && $ADAT['ujStatusz'] != 'jogviszonyban van') { // felvett először iratkozzon be
+ $_SESSION['alert'][] = 'message:wrong_data:'.$ADAT['ujStatusz'].':diakJogviszonyValtas:beiratkozáskor csak "jogviszonyban van" státuszba kerülhet a diák!';
+ return false;
+ }
+
+ if ($ADAT['ujStatusz'] == $DJ['elotte']) return true; // nincs mit tenni
+
+ if (isset($DJ['utana'])) { // a következő jogviszonyváltás már rögzítve van... nem piszkálhatunk az intervallum közbe!
+ $_SESSION['alert'][] = 'message:wrong_data:diakJogviszonyValtas:már van rögzítve státuszváltás a megadott dátum után!:'.$DJ['utana'];
+ return false;
+ }
+
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+
+ // A diák osztályai a változás napján
+ $osztalyIds = getDiakOsztalya($ADAT['diakId'], array('tanev' => $ADAT['tanev'], 'tolDt' => $ADAT['jogviszonyValtasDt'], 'igDt' => $ADAT['jogviszonyValtasDt'], 'result' => 'idonly'));
+ // A változás idején (vagy utána közvetlenül) érvényes szemeszter adatok
+ $szAdat = getSzemeszterByDt($ADAT['jogviszonyValtasDt'], 1);
+ switch ($ADAT['ujStatusz']) {
+ case 'jogviszonyban van':
+ if ($DJ['elotte'] == 'felvételt nyert') { // beiratkozás
+
+ // diak tábla módosítása - jogviszonyKezdete
+ $q = "UPDATE diak SET statusz='jogviszonyban van',jogviszonyKezdete='%s',kezdoTanev=IFNULL(kezdoTanev,%u),kezdoSzemeszter=IFNULL(kezdoSzemeszter,%u) WHERE diakId=%u";
+ $v = array($ADAT['jogviszonyValtasDt'], $szAdat['tanev'], $szAdat['szemeszter'], $ADAT['diakId']);
+ $r = db_query($q, array('fv' => 'diakJogviszonyValtas', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ if ($r===false) { db_rollback($lr, 'diak.jogviszonyKezdete - fail');db_close($lr);return false; }
+
+ // Záradékolás - felvétel/beiratkozás
+ $In = getIntezmenyByRovidnev(__INTEZMENY);
+ $osztalyStr = array();
+ if ($zaradekOsztallyal = (is_array($osztalyIds) && count($osztalyIds) > 0)) {
+ foreach ($osztalyIds as $key => $osztalyId) {
+ $osztalyAdat[$osztalyId] = getOsztalyAdat($osztalyId, $ADAT['tanev']);
+ $osztalyStr[] = $osztalyAdat[$osztalyId]['kezdoTanev'].'-'.($osztalyAdat[$osztalyId]['vegzoTanev']+1).'/'.$osztalyAdat[$osztalyId]['jel'];
+ }
+ }
+ $Z = array(
+ 'csere' => array(
+ '%iskola címe%' => $In['nev'].' ('.$In['cimIrsz'].' '.$In['cimHelyseg'].', '.$In['cimKozteruletNev'].' '.$In['cimKozteruletJelleg'].' '.$In['cimHazszam'].'.)',
+ '%osztály%' => implode(', ', $osztalyStr),
+ '%határozat száma%' => $ADAT['hatarozat'],
+ ),
+ 'zaradekIndex' => ($zaradekOsztallyal?$ZaradekIndex['jogviszony megnyitás']['felvétel osztályba'] : $ZaradekIndex['jogviszony megnyitás']['felvétel'])
+ );
+ }
+ break;
+ case 'vendégtanuló':
+ break;
+ case 'magántanuló':
+ $Z = array('zaradekIndex' => $ZaradekIndex['jogviszony változás']['magántanuló']);
+ break;
+ case 'jogviszonya felfüggesztve':
+ $Z = array(
+//20110610 'zaradekIndex' => $ADAT['zaradek']['felfüggesztés'],
+ 'zaradekIndex' => $ZaradekIndex['jogviszony változás']['felfüggesztés'],
+ 'csere' => array('%ok%' => $ADAT['felfuggesztesOk'], '%igDt%' => $ADAT['felfuggesztesIgDt'])
+ );
+ break;
+ case 'jogviszonya lezárva':
+/* Ezt előrébb vizsgáljuk
+ if (isset($DJ['utana'])) { // lezárás után nem lehet jogviszonybejegzés
+ $_SESSION['alert'][] = 'message:wrong_data:diakJogviszonyValtas:bejegyzett jogviszony változás előtt a jogviszony nem zárható le:'.$DJ['utana'];
+ db_rollback($lr);
+ db_close($lr);
+ return false;
+ }
+*/
+
+ // diak tábla módosítása - jogviszonyVege
+ $q = "UPDATE diak SET jogviszonyVege='%s' WHERE diakId=%u";
+ $v = array($ADAT['jogviszonyValtasDt'], $ADAT['diakId']);
+ $r = db_query($q, array('fv' => 'diakJogviszonyValtas', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+
+ if ($r===false) { db_rollback($lr, 'diak.jogviszonyVege - fail');db_close($lr);return false; }
+
+ // Osztályokból kivétel (Ez a tankörökből is kiveszi, ellenőrzi a jegyeket, hiányzásokat is a tanévekben)
+ foreach ($osztalyIds as $key => $osztalyId) {
+ $r = osztalyDiakTorol(array('osztalyId' => $osztalyId, 'diakId' => $ADAT['diakId'], 'tolDt' => $ADAT['jogviszonyValtasDt']), $lr);
+ if ($r===false) { db_rollback($lr, 'osztalyDiakTorol - fail');db_close($lr);return false; }
+ }
+ // Ha netán van olyan tankörtagsága, ami nem osztályhoz kötődik, akkor azt itt törölni kellene!!!! Például: vendégtanuló...
+ // akkor lejjebb töröljük
+
+ // záradékolás
+ $Z = array(
+ 'zaradekIndex' => $ADAT['lezarasZaradekIndex'],
+ 'csere' => array('%igazolatlan órák száma%' => $ADAT['lezarasIgazolatlanOrakSzama'], '%iskola%' => $ADAT['lezarasIskola'])
+ );
+ break;
+
+ default:
+ $_SESSION['alert'][] = 'message:wrong_data:új statusz='.$ADAT['ujStatusz'].':diakJogviszonyValtas';
+ db_rollback($lr, 'új statusz - wrong');
+ db_close($lr);
+ return false;
+ break;
+ }
+
+ // diakJogviszony tábla - bejegyzés
+ $q = "INSERT INTO diakJogviszony (diakId, statusz, dt) VALUES (%u, '%s', '%s')";
+ $v = array($ADAT['diakId'], $ADAT['ujStatusz'], $ADAT['jogviszonyValtasDt']);
+ $r = db_query($q, array('fv' => 'diakJogviszonyValtas', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+ if ($r===false) { db_rollback($lr, 'diakJogviszony - fail');db_close($lr);return false; }
+
+ // Tankörökből való kiléptetés (lezárás esetén már megtörtént)
+ if ($ADAT['ujStatusz'] == 'jogviszonya felfüggesztve' || $ADAT['ujStatusz'] == 'jogviszonya lezárva') {
+ $tankorIds = getTankorByDiakId($ADAT['diakId'], $ADAT['tanev'], array('tolDt' => $ADAT['jogviszonyValtasDt'], 'override' => 'true', 'result' => 'idonly'), $lr);
+ if (is_array($tankorIds) && count($tankorIds) > 0)
+ $r = tankorDiakTorol(array(
+ 'diakId' => $ADAT['diakId'], 'utkozes' => 'torles', 'tankorIds' => $tankorIds, 'MIN_CONTROL' => false, 'tolDt' => $ADAT['jogviszonyValtasDt']
+ ), $lr);
+ if ($r===false) { db_rollback($lr, 'tankorDiakTorol - fail');db_close($lr);return false; }
+ } elseif ($ADAT['ujStatusz'] == 'magántanuló') {
+ $tolDt = $ADAT['jogviszonyValtasDt'];
+ //törlés
+ $TH = $TJ = array();
+ $HSUM = $JSUM = array();
+ // A tol-ig dátumok által érintett aktív tanévek lekérdezése
+ $aktivTanevek = getTanevekByDtInterval($ADAT['jogviszonyValtasDt'], date('Y-m-d'), array('aktív'));
+ // Az érintett tanéveken végigmenve
+ foreach ($aktivTanevek as $key => $tanev) {
+ $TANKORIDS = getTankorByDiakId($ADAT['diakId'], $ADAT['tanev'], array('tolDt' => $tolDt, 'result' => 'idonly'), $lr);
+ if (is_array($TANKORIDS) && count($TANKORIDS) > 0) {
+ for ($i = 0; $i < count($TANKORIDS); $i++) {
+ $H = tankorDiakHianyzasIdk($ADAT['diakId'], $TANKORIDS[$i], $tanev, $tolDt, null); // tol-ig-et a függvény initTolIgDt hívással kapja
+ $J = tankorDiakJegyIdk(array('diakId'=>$ADAT['diakId'], 'tankorIds'=>$TANKORIDS[$i], 'tanev'=>$tanev, 'tolDt'=>$tolDt, 'igDt'=>null));
+ if (is_array($H)) $HSUM = array_merge($HSUM,$H);
+ if (is_array($J)) $JSUM = array_merge($JSUM,$J);
+ }
+ // hiányzások és jegyek törlése...
+ $r = hianyzasTorles($HSUM, $tanev, $lr);
+ if ($r!==false) $r = jegyTorles($JSUM, null, $tanev, $lr); // különben úgyis rollback van
+ }
+ }
+ if ($r===false) { db_rollback($lr, 'hianyzasTorles/jegyTorles - fail');db_close($lr);return false; }
+ }
+ // Záradék rögzítés - ha van
+ if (isset($Z['zaradekIndex'])) {
+ $Z['diakId'] = $ADAT['diakId'];
+ $Z['iktatoszam'] = $ADAT['iktatoszam'];
+ $Z['dt'] = $ADAT['jogviszonyValtasDt'];
+ $r = zaradekRogzites($Z,$lr);
+ if ($r===false) { db_rollback($lr, 'zaradekRogzites - fail');db_close($lr);return false; }
+ }
+ // Ha ez az utolsó jogviszony állapot, akkor a diak tábla is módosítandó!
+
+ db_commit($lr);
+ db_close($lr);
+
+ checkDiakStatusz();
+
+ return true;
+
+ }
+
+
+ function ujDiak($ADAT) {
+
+ global $ZaradekIndex;
+
+ $NOTNULL = array('viseltNevElotag','viseltCsaladinev','viseltUtonev','szuleteskoriNevElotag','szuleteskoriCsaladinev','szuleteskoriUtonev');
+
+/*
+ $ADAT mezői:
+ jogviszonyKezdete - záradékolás és diakJogviszony miatt
+ osztalyId - Osztálybalépéshez (csak ha jogviszonyKezdete a dátum
+ felvetelTipus - beiratkozásra vár(statusz:felvételt nyert)|vendégtanuló(statusz:vendégtanuló)|más(statusz:jogviszonyban van)
+ zaradek - típusonként
+ osztaly - kezdoTanev/zaroTanev/jel
+
+ hatarozat - iskolaváltás esetén
+ tabelFields - A diak tábla mezői - ez alapján engedélyezett a módosítás
+ intezmeny - Az intézmény adatai
+*/
+ if (is_array($ADAT['tableFields']))$FIELDS = $ADAT['tableFields'];
+ else $FIELDS = getTableFields('diak');
+ if ($ADAT['felvetelTipus'] == 'beiratkozásra vár') {
+ $statusz = 'felvételt nyert';
+ unset($ADAT['jogviszonyKezdete']);
+ } elseif ($ADAT['felvetelTipus'] == 'vendégtanuló') {
+ $statusz='vendégtanuló';
+ unset($ADAT['osztalyId']);
+ } else
+ $statusz = 'jogviszonyban van';
+
+ foreach($ADAT as $attr => $value) {
+ if (array_key_exists($attr,$FIELDS) && !in_array($attr, array('action','diakId'))) {
+ $A[] = "$attr";
+ if ($value=='' && !in_array($attr, $NOTNULL)) {
+ $P[]='null';
+ } else {
+ $V[] = $value;
+ $P[] = "'%s'";
+ }
+ }
+ }
+ $q = "INSERT INTO diak (statusz,".implode(',', $A).") VALUES ('".$statusz."',".implode(',',$P).')';
+ $diakId = db_query($q, array('fv' => 'ujDiak', 'modul'=>'naplo_intezmeny', 'result' => 'insert', 'values' => $V));
+ if ($diakId) {
+ if ($statusz == 'jogviszonyban van' || $statusz == 'vendégtanuló') {
+ // diakJogviszony tábla
+ $q = "INSERT INTO diakJogviszony (diakId, statusz, dt) VALUES (%u, '%s', '%s')";
+ db_query($q, array('fv' => 'ujDiak/diakJogviszony', 'modul' => 'naplo_intezmeny', 'values' => array($diakId, $statusz, $ADAT['jogviszonyKezdete'])));
+ } // Ha csak felvételt nyert, akkor nincs jogviszony információ
+ // osztályba rakás
+ if (isset($ADAT['osztalyId'])) {
+ $q = "INSERT INTO osztalyDiak (osztalyId, diakId, beDt) VALUES (%u, %u, '%s')";
+ db_query($q, array('fv' => 'ujDiak/osztalyDiak', 'modul' => 'naplo_intezmeny', 'values' => array($ADAT['osztalyId'], $diakId, $ADAT['jogviszonyKezdete'])));
+ }
+ // záradékolás
+ if (isset($ADAT['zaradek'][ $ADAT['felvetelTipus'] ])) { // A felvételt nyert típus nem záradékolandó
+ if (is_array($ADAT['intezmeny'])) $In = $ADAT['intezmeny'];
+ else $In = getIntezmenyByRovidnev(__INTEZMENY);
+ $Z = array(
+ 'diakId' => $diakId,
+ 'dt' => $ADAT['jogviszonyKezdete'],
+ 'csere' => array(
+ '%iskola címe%' => $In['nev'].' ('.$In['cimIrsz'].' '.$In['cimHelyseg'].', '.$In['cimKozteruletNev'].' '.$In['cimKozteruletJelleg'].' '.$In['cimHazszam'].'.)',
+ '%osztály%' => $ADAT['osztaly']['kezdoTanev'].'-'.($ADAT['osztaly']['vegzoTanev']+1).'/'.$ADAT['osztaly']['jel'],
+ '%határozat száma%' => $ADAT['hatarozat'],
+ ),
+ 'zaradekIndex' => $ADAT['zaradek'][ $ADAT['felvetelTipus'] ]
+ );
+ zaradekRogzites($Z);
+ }
+ }
+ return $diakId;
+
+ }
+
+ function diakHozottHianyzas($ADAT) {
+
+ if ($ADAT['diakId']!='') {
+ if ($ADAT['hozottHianyzasIgazolt']!=0) {
+ $q = "INSERT INTO `hianyzasHozott` (`diakId`,`statusz`,`dbHianyzas`,`dt`) VALUES (%u,'%s',%u,NOW())";
+ $v = array($ADAT['diakId'],'igazolt',$ADAT['hozottHianyzasIgazolt']);
+ $result = db_query($q, array('fv' => 'diakAdatModositas', 'modul' => 'naplo', 'values' => $v));
+ }
+ if ($ADAT['hozottHianyzasIgazolatlan']!=0) {
+ $q = "INSERT INTO `hianyzasHozott` (`diakId`,`statusz`,`dbHianyzas`,`dt`) VALUES (%u,'%s',%u,NOW())";
+ $v = array($ADAT['diakId'],'igazolatlan',$ADAT['hozottHianyzasIgazolatlan']);
+ $result = db_query($q, array('fv' => 'diakAdatModositas', 'modul' => 'naplo', 'values' => $v));
+ }
+ }
+ return $result;
+ }
+
+ function diakAdatModositas($ADAT) {
+
+ $FIELDS = getTableFields('diak');
+ $NOTNULL = array('viseltNevElotag','viseltCsaladinev','viseltUtonev','szuleteskoriNevElotag','szuleteskoriCsaladinev','szuleteskoriUtonev');
+
+ $v = array();
+ foreach($ADAT as $attr => $value) {
+ if (array_key_exists($attr,$FIELDS) && !in_array($attr, array('action','diakId'))) {
+ if ($value=='' && !in_array($attr, $NOTNULL)) {
+ $value='null';
+ } else {
+ array_push($v, $value);
+ $value = "'%s'";
+ }
+ $T[] = "$attr=$value";
+ }
+ }
+ array_push($v, $ADAT['diakId']);
+ $q = "UPDATE diak SET ".implode(',', $T)." WHERE diakId=%u";
+ return db_query($q, array('fv' => 'diakAdatModositas', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+ function diakJogviszonyBejegyzesTorles($ADAT) {
+
+ $q = "DELETE FROM `diakJogviszony` WHERE `diakId`=%u AND `statusz`='%s' AND `dt`='%s'";
+ $v = array($ADAT['diakId'], $ADAT['statusz'], $ADAT['dt']);
+ db_query($q, array('fv' => 'diakJogviszonyBejegyzesTorles/diakJogviszony', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ $q = "DELETE FROM `zaradek` WHERE `diakId` = %u AND `zaradekId` = %u";
+ $v = array($ADAT['diakId'], $ADAT['zaradekId']);
+ db_query($q, array('fv' => 'diakJogviszonyBejegyzesTorles/zaradek', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ }
+
+ function diakAdatkezelesModositas($ADAT) {
+
+ $q = "INSERT IGNORE INTO diakAdatkezeles (diakId,kulcs,ertek) VALUES (%u,'%s','%s')";
+ $v = array($ADAT['diakId'], $ADAT['kulcs'], $ADAT['ertek']);
+ return db_query($q, array('fv' => 'diakAdatkezelesModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ }
+
+ function diakTorol($ADAT) {
+
+ $q = "DELETE FROM diak WHERE statusz='felvételt nyert' AND diakId=%u";
+ $v = array($ADAT['diakId']);
+ return db_query($q, array('fv' => 'diakTorol', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/dolgozat.php b/mayor-orig/www/include/modules/naplo/share/dolgozat.php
new file mode 100644
index 00000000..a632d06d
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/dolgozat.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ module: naplo
+
+ function checkTankorDolgozata($tankorId, $dolgozatId, $olr = '')
+ return bool (ha $dolgozatId == 'uj' akkor is true)
+
+ function getTankorDolgozatok($tankorId, $tolDt = '', $igDt = '', $olr = '')
+ return array(
+ 'dolgozatIds' => array(...),
+ 'tervezett' => array(...),
+ $tankorId => array(
+ 'bejelentés'=> ...,
+ 'tervezett' => array($dt => array(...)),
+ 'megjegyzés' => ...,
+ 'tankör' => array(array('id','leírás'), ...)
+ )
+ )
+
+ function ujDolgozat($tanarId, $tankorId, $olr = '')
+
+*/
+
+ // --------------------------------------------------------- //
+
+ function checkTankorDolgozata($tankorId, $dolgozatId, $olr = '') {
+
+
+ if ($dolgozatId == 'uj') {
+ // Az új dolgozat csak ez után lesz létrehozva (jegybeírás)
+ return true;
+ } else {
+ // ellenőrizzük, hogy a megadott dolgozatId valóban egy ehhez a tankörhöz tartozó did-e.
+ $q = "SELECT COUNT(dolgozatId) FROM dolgozat LEFT JOIN tankorDolgozat USING (dolgozatId)
+ WHERE dolgozat.dolgozatId = %u AND tankorId = %u";
+ $v = array($dolgozatId, $tankorId);
+ return (1 == db_query($q, array('fv' => 'checkTankorDolgozata', 'modul' => 'naplo', 'values' => $v, 'result' => 'value'), $olr));
+ }
+
+ }
+
+ // --------------------------------------------------------- //
+
+ function getTankorDolgozatok($tankorId, $csakTervezett = false, $tolDt = null, $igDt = null, $olr = null) {
+
+ $return = array();
+
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ $tankorIds = array();
+ if (!is_array($tankorId) && $tankorId != '') $tankorIds = array($tankorId);
+ elseif (is_array($tankorId[0])) for ($i = 0; $i < count($tankorId); $i++) $tankorIds[] = $tankorId[$i]['tankorId'];
+ elseif (is_array($tankorId)) $tankorIds = $tankorId;
+ else return false;
+
+ if (count($tankorIds) > 0) {
+ $v = $tankorIds;
+ if ($csakTervezett) {
+ $q = "SELECT * FROM dolgozat LEFT JOIN tankorDolgozat USING (dolgozatId)
+ WHERE tankorDolgozat.tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND '%s' <= tervezettDt AND tervezettDt <= '%s'
+ ORDER BY tervezettDt, bejelentesDt";
+ array_push($v, $tolDt, $igDt);
+ } else {
+ $q = "SELECT * FROM dolgozat LEFT JOIN tankorDolgozat USING (dolgozatId)
+ WHERE tankorDolgozat.tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ ORDER BY tervezettDt, bejelentesDt";
+ }
+ $return = db_query($q, array('fv' => 'getTankorDolgozatok', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'dolgozatId', 'values' => $v), $olr);
+ $dolgozatIds = $tervezett = array();
+ foreach ($return as $dolgozatId => $dolgozatAdat) {
+ $dolgozatIds[] = $dolgozatId;
+ if ($dolgozatAdat['tervezettDt'] != '') $tervezett[$dolgozatAdat['tervezettDt']][] = $dolgozatId;
+ }
+ $return['dolgozatIds'] = $dolgozatIds;
+ $return['tervezett'] = $tervezett;
+ if (count($dolgozatIds) > 0) {
+ $q = "SELECT DISTINCT dolgozatId, tankorId, tankorNev
+ FROM tankorDolgozat LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE tanev=".__TANEV."
+ AND dolgozatId IN (".implode(',', array_fill(0, count($dolgozatIds), '%u')).")";
+ $Tankorok = db_query($q, array('fv' => 'getTankorDolgozatok', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'dolgozatId', 'values' => $dolgozatIds), $olr);
+ foreach ($Tankorok as $dolgozatId => $dolgozatTankorei) {
+ $return[$dolgozatId]['tankor'] = $dolgozatTankorei;
+ }
+ }
+ }
+ return $return;
+
+ }
+
+ // --------------------------------------------------------- //
+
+ function ujDolgozat($tanarId, $tankorId, $olr = null) {
+
+ $q = "INSERT INTO dolgozat (bejelentesDt, dolgozatNev, modositasDt) VALUES (now(),'%s',now())";
+ $v = array( 'Dolgozat '.date('Y-m-d H:i:s') );
+ $dolgozatId = db_query($q, array('fv' => 'ujDolgozat/1', 'modul' => 'naplo', 'result' => 'insert', 'values'=>$v), $olr);
+
+ $q = "INSERT INTO tankorDolgozat (dolgozatId, tankorId) VALUES (%u, %u)";
+ $v = array($dolgozatId, $tankorId);
+ db_query($q, array('fv' => 'ujDolgozat/2', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v), $olr);
+
+ return $dolgozatId;
+
+ }
+
+ function getDolgozatAdat($dolgozatId, $olr = null) {
+
+ if ($dolgozatId=='') return false;
+ $lr = (!is_resource($olr)) ? db_connect('naplo') : $olr;
+ $q = "SELECT * FROM dolgozat WHERE dolgozatId = %u";
+ $v = array($dolgozatId);
+ $RET = db_query($q, array('fv' => 'getDolgozatAdat', 'modul' => 'naplo', 'result' => 'record', 'values' => $v), $lr);
+
+ $q = "SELECT tankorId FROM tankorDolgozat WHERE dolgozatId = %u";
+ $v = array($dolgozatId);
+ $r = db_query($q, array('fv' => 'getDolgozatAdat', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v), $lr);
+ for ($i=0; $i<count($r); $i++) {
+ $_tankorId = $r[$i];
+ $_TA = getTankorAdat($_tankorId);
+ $RET['tankorok'][] = $_TA[$_tankorId];
+ }
+
+ $q = "SELECT avg(jegy) AS atlag, count(jegyId) AS db FROM jegy WHERE dolgozatId = %u";
+ $v = array($dolgozatId);
+ $RET['jegyStatisztika'] = db_query($q, array('fv' => 'getDolgozatAdat', 'modul' => 'naplo', 'result' => 'record', 'values' => $v), $lr);
+
+ if (!is_resource($olr)) db_close($lr);
+
+ return $RET;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/ertekeles.php b/mayor-orig/www/include/modules/naplo/share/ertekeles.php
new file mode 100644
index 00000000..6d9b3cf2
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/ertekeles.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ // Nyelvi konstansok
+ if (file_exists("lang/$lang/module-naplo/share/ertekeles.php")) {
+ require_once("lang/$lang/module-naplo/share/ertekeles.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/module-naplo/share/ertekeles.php')) {
+ require_once('lang/'._DEFAULT_LANG.'/module-naplo/share/ertekeles.php');
+ }
+
+ if (!is_array($DICSERET_FOKOZATOK)) $DICSERET_FOKOZATOK = array(
+ 'SEMMI',
+ 'SZAKTANARI_DICSERET',
+ 'OSZTALYFONOKI_DICSERET',
+ 'IGAZGATOI_DICSERET',
+ 'NEVELOTESTULETI_DICSERET'
+ );
+
+ if (!is_array($FEGYELMI_FOKOZATOK)) $FEGYELMI_FOKOZATOK = array(
+ 'SEMMI',
+ 'SZAKTANARI_FIGYELMEZTETES',
+ 'SZOBELI_OSZTALYFONOKI_FIGYELMEZTETES',
+ 'OSZTALYFONOKI_FIGYELMEZTETES',
+ 'OSZTALYFONOKI_INTO',
+ 'OSZTALYFONOKI_ROVO',
+ 'IGAZGATOI_FIGYELMEZTETO',
+ 'IGAZGATOI_INTO',
+ 'IGAZGATOI_ROVO',
+ 'NEVELOTESTULETI_FIGYELMEZTETES',
+ 'NEVELOTESTULETI_INTES',
+ 'NEVELOTESTULETI_MEGROVAS'
+ );
+
+ // A fegyelmi fokozatok adott nyelvű megnevezései
+ for ($i = 0; $i < count($FEGYELMI_FOKOZATOK); $i++)
+ if (defined('_'.$FEGYELMI_FOKOZATOK[$i]))
+ $FEGYELMI_FOKOZATOK[$i] = constant('_'.$FEGYELMI_FOKOZATOK[$i]);
+ // A dicséret fokozatok adott nyelvű megnevezései
+ for ($i = 0; $i < count($DICSERET_FOKOZATOK); $i++)
+ if (defined('_'.$DICSERET_FOKOZATOK[$i]))
+ $DICSERET_FOKOZATOK[$i] = constant('_'.$DICSERET_FOKOZATOK[$i]);
+
+ if (!is_array($HIANYZASI_FOKOZATOK)) $HIANYZASI_FOKOZATOK = array(
+ 0 => 0, // semmi
+ 1 => 2, // szóbeli osztályfőnöki figyelmeztetés
+ 2 => 3, // osztályfőnöki figyelmeztetés
+ 3 => 4, // osztályfőnöki intő
+ 4 => 5, // osztályfőnöki rovó
+ 5 => 6, // igazgatói figyelmeztető (szülő értesítése)
+ 6 => 0, // semmi
+ 7 => 7, // igazgatói intő
+ 8 => 0, // semmi
+ 9 => 8, // igazgatói rovó
+ 10 => 0, // igazgatói rovó
+ 11 => 9 // fegyelmi eljárás
+ );
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/esemeny.php b/mayor-orig/www/include/modules/naplo/share/esemeny.php
new file mode 100644
index 00000000..ab68f99b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/esemeny.php
@@ -0,0 +1,216 @@
+<?php
+
+ function ujEsemeny($ADAT) {
+ $q = "INSERT INTO esemeny (esemenyKategoria, esemenyRovidnev, esemenyNev, esemenyLeiras, jelentkezesTolDt, jelentkezesIgDt, min, max)
+ VALUES ('%s','%s','%s','%s','%s','%s',%u,%u)";
+ $v = array(
+ $ADAT['esemenyKategoria'], $ADAT['esemenyRovidnev'], $ADAT['esemenyNev'], $ADAT['esemenyLeiras'],
+ $ADAT['jelentkezesTolDt'], $ADAT['jelentkezesIgDt'], $ADAT['min'], $ADAT['max']
+ );
+ $esemenyId = db_query($q, array('fv'=>'ujEsemeny','modul'=>'naplo','values'=>$v,'result'=>'insert'));
+ // Ha tanár veszi fel, akkor őt rögtön rendeljük hozzá!
+ if (is_numeric($esemenyId) && __TANAR) {
+ $q = "INSERT INTO esemenyTanar (esemenyId, tanarId) VALUES (%u,%u)";
+ $v = array($esemenyId, __USERTANARID);
+ db_query($q, array('fv'=>'ujEsemenyModositas/insTanar','modul'=>'naplo','values'=>$v));
+ }
+ return $esemenyId;
+ }
+
+ function getEsemenyAdat($esemenyId) {
+ $v = array($esemenyId);
+ $q = "SELECT * FROM esemeny WHERE esemenyId=%u";
+ $ret = db_query($q, array('fv'=>'getEsemenyAdat','modul'=>'naplo','values'=>$v,'result'=>'record'));
+ $q = "SELECT osztalyId FROM esemenyOsztaly WHERE esemenyId=%u";
+ $ret['osztalyIds'] = db_query($q, array('fv'=>'getEsemenyAdat/osztaly','modul'=>'naplo','values'=>$v,'result'=>'idonly'));
+ $q = "SELECT tanarId FROM esemenyTanar WHERE esemenyId=%u";
+ $ret['tanarIds'] = db_query($q, array('fv'=>'getEsemenyAdat/tanar','modul'=>'naplo','values'=>$v,'result'=>'idonly'));
+ $q = "SELECT esemenyDiak.*, TRIM(CONCAT_WS(' ', viseltNevElotag, viseltCsaladinev, viseltUtonev)) AS diakNev
+ FROM esemenyDiak LEFT JOIN ".__INTEZMENYDBNEV.".diak USING (diakId) WHERE esemenyId=%u ORDER BY diakNev";
+ $ret['diakok'] = db_query($q, array('fv'=>'getEsemenyAdat/diak','modul'=>'naplo','values'=>$v,'result'=>'indexed'));
+ $ret['diakIds'] = array();
+ if (is_array($ret['diakok'])) foreach ($ret['diakok'] as $dAdat) $ret['diakIds'][] = $dAdat['diakId'];
+
+ return $ret;
+ }
+
+ function esemenyModositas($ADAT) {
+
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+
+ // osztály-hozzárendelések törlése
+ $q = "DELETE FROM esemenyOsztaly WHERE esemenyId=%u";
+ $v = array($ADAT['esemenyId']);
+ $ok = db_query($q, array('fv'=>'esemenyModositas/delOsztaly','modul'=>'naplo','values'=>$v), $lr);
+ // TODO: diák-hozzárendelés alapján kiegészítendő az osztalyid-k listája!
+ if (is_array($ADAT['esemenyOsztaly']) && count($ADAT['esemenyOsztaly'])>0) {
+ // osztály-hozzárendelések felvétele
+ $q = "INSERT INTO esemenyOsztaly (esemenyId, osztalyId) VALUES (".implode('),(', array_fill(0, count($ADAT['esemenyOsztaly']), '%u,%u')).")";
+ $v = array();
+ foreach ($ADAT['esemenyOsztaly'] as $osztalyId) { $v[] = $ADAT['esemenyId']; $v[] = $osztalyId; }
+ $ok = $ok && db_query($q, array('fv'=>'esemenyModositas/insOsztaly','modul'=>'naplo','values'=>$v), $lr);
+ }
+
+ // tanár-hozzárendelések törlése
+ $q = "DELETE FROM esemenyTanar WHERE esemenyId=%u";
+ $v = array($ADAT['esemenyId']);
+ $ok = $ok && db_query($q, array('fv'=>'esemenyModositas/delTanar','modul'=>'naplo','values'=>$v), $lr);
+ if (is_array($ADAT['esemenyTanar']) && count($ADAT['esemenyTanar'])>0) {
+ // tanár-hozzárendelések felvétele
+ $q = "INSERT INTO esemenyTanar (esemenyId, tanarId) VALUES (".implode('),(', array_fill(0, count($ADAT['esemenyTanar']), '%u,%u')).")";
+ $v = array();
+ foreach ($ADAT['esemenyTanar'] as $tanarId) { $v[] = $ADAT['esemenyId']; $v[] = $tanarId; }
+ $ok = $ok && db_query($q, array('fv'=>'esemenyModositas/insTanar','modul'=>'naplo','values'=>$v), $lr);
+ }
+
+ // esemeny alapadatainak módosítása
+ $q = "UPDATE esemeny SET esemenyRovidnev='%s', esemenyNev='%s', esemenyKategoria='%s', esemenyLeiras='%s',
+ jelentkezesTolDt='%s', jelentkezesIgDt='%s', max=%u, min=%u
+ WHERE esemenyId=%u";
+ $v = array(
+ $ADAT['esemenyRovidnev'], $ADAT['esemenyNev'], $ADAT['esemenyKategoria'], $ADAT['esemenyLeiras'],
+ $ADAT['jelentkezesTolDt'], $ADAT['jelentkezesIgDt'], $ADAT['max'], $ADAT['min'],
+ $ADAT['esemenyId'],
+ );
+ $ok = $ok && db_query($q, array('fv'=>'esemenyModositas/mod','modul'=>'naplo','values'=>$v), $lr);
+
+ if ($ok) db_commit($lr);
+ else db_rollback($lr);
+
+ db_close($lr);
+
+ return $ok;
+
+
+ }
+
+ function getEsemenyLista() {
+
+ $q = "SELECT * FROM esemeny ORDER BY esemenyRovidnev";
+ return db_query($q, array('fv'=>'getEsemenyLista','modul'=>'naplo','values'=>array(),'result'=>'indexed'));
+
+ }
+
+ function esemenyTorles($esemenyId) {
+
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+
+ // tanár-hozzárendelések törlése
+ $q = "DELETE FROM esemenyTanar WHERE esemenyId=%u";
+ $v = array($esemenyId);
+ $ok = db_query($q, array('fv'=>'esemenyTorles/delTanar','modul'=>'naplo','values'=>$v), $lr);
+
+ // diák-hozzárendelések törlése
+ $q = "DELETE FROM esemenyDiak WHERE esemenyId=%u";
+ $v = array($esemenyId);
+ $ok = $ok && db_query($q, array('fv'=>'esemenyTorles/delDiak','modul'=>'naplo','values'=>$v), $lr);
+
+ // osztály-hozzárendelések törlése
+ $q = "DELETE FROM esemenyOsztaly WHERE esemenyId=%u";
+ $v = array($esemenyId);
+ $ok = $ok && db_query($q, array('fv'=>'esemenyTorles/delOsztaly','modul'=>'naplo','values'=>$v), $lr);
+
+ // az esemeny törlése
+ $q = "DELETE FROM esemeny WHERE esemenyId=%u";
+ $v = array($esemenyId);
+ $ok = $ok && db_query($q, array('fv'=>'esemenyTorles/delEsemeny','modul'=>'naplo','values'=>$v), $lr);
+
+ if ($ok) db_commit($lr);
+ else db_rollback($lr);
+
+ db_close($lr);
+
+ return $ok;
+
+ }
+
+ function getAktualisEsemenyByOsztaly($osztalyIds) {
+
+ $q = "SELECT * FROM esemeny LEFT JOIN esemenyOsztaly USING (esemenyId) WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).")";
+ $ret = db_query($q, array('fv'=>'getAktualisEsemenyByOsztaly','modul'=>'naplo','values'=>$osztalyIds, 'result'=>'indexed'));
+
+ for ($i=0; $i<count($ret); $i++) {
+ $q = "SELECT COUNT(*) FROM esemenyDiak WHERE esemenyId=%u";
+ $ret[$i]['letszam'] = db_query($q, array('fv'=>'getAktualisEsemenyByOsztaly/letszam','modul'=>'naplo','values'=>array($ret[$i]['esemenyId']), 'result'=>'value'));
+ }
+
+ return $ret;
+ }
+
+ function getValasztottEsemenyek($diakId, $SET = array('esemenyIds' => null)) {
+
+ $q = "SELECT esemenyId FROM esemeny LEFT JOIN esemenyDiak USING (esemenyId) WHERE diakId=%u";
+ $v = array($diakId);
+ if (is_array($SET['esemenyIds'])) {
+ $q .= " AND esemenyId IN (".implode(',', array_fill(0, count($SET['esemenyIds']), '%u')).")";
+ foreach ($SET['esemenyIds'] as $eId) $v[] = $eId;
+ }
+ return db_query($q, array('fv'=>'getValasztottEsemenyek','modul'=>'naplo','values'=>$v, 'result'=>'idonly'));
+ }
+
+ function getJovahagyottEsemenyek($diakId, $SET = array('esemenyIds' => null)) {
+
+ $q = "SELECT esemenyId FROM esemeny LEFT JOIN esemenyDiak USING (esemenyId) WHERE diakId=%u AND jovahagyasDt!='0000-00-00 00:00:00'";
+ $v = array($diakId);
+ if (is_array($SET['esemenyIds'])) {
+ $q .= " AND esemenyId IN (".implode(',', array_fill(0, count($SET['esemenyIds']), '%u')).")";
+ foreach ($SET['esemenyIds'] as $eId) $v[] = $eId;
+ }
+ return db_query($q, array('fv'=>'getJovahagyottEsemenyek','modul'=>'naplo','values'=>$v, 'result'=>'idonly'));
+ }
+
+ function esemenyJelentkezes($diakId, $esemenyId) {
+
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+
+ // A max lekérdezése
+ $q = "SELECT max, COUNT(diakId) AS count FROM esemeny LEFT JOIN esemenyDiak USING (esemenyId) WHERE esemenyId=%u GROUP BY max";
+ $v = array($esemenyId);
+ $ret = db_query($q, array('fv'=>'esemenyJelentkezes/max,count','modul'=>'naplo','values'=>$v,'result'=>'record'), $lr);
+
+ if ($ret['count'] < $ret['max']) {
+ $q = "INSERT INTO esemenyDiak (diakId, esemenyId, jelentkezesDt, jovahagyasDt) VALUES (%u, %u, NOW(), '0000-00-00 00:00:00')";
+ $v = array($diakId, $esemenyId);
+ $ok = db_query($q, array('fv'=>'esemenyJelentkezes','modul'=>'naplo','values'=>$v), $lr);
+ } else {
+ $ok = false;
+ $_SESSION['alert'][] = 'message:wrong_data:Maximális létszám = '.$ret['max'];
+ }
+
+ if ($ok) db_commit($lr);
+ else db_rollback($lr);
+
+ db_close($lr);
+
+ return $ok;
+ }
+
+ function esemenyLeadas($diakId, $esemenyId) {
+
+ $q = "DELETE FROM esemenyDiak WHERE diakId=%u AND esemenyId=%u";
+ $v = array($diakId, $esemenyId);
+ return db_query($q, array('fv'=>'esemenyLeadas','modul'=>'naplo','values'=>$v));
+
+
+ }
+
+ function jelentkezesJovahagyas($diakId, $esemenyId) {
+
+ $q = "UPDATE esemenyDiak SET jovahagyasDt=NOW() WHERE diakId=%u AND esemenyId=%u";
+ $v = array($diakId, $esemenyId);
+ return db_query($q, array('fv'=>'jelentkezesJovahagyas','modul'=>'naplo','values'=>$v));
+
+ }
+
+ function jelentkezesElutasitas($diakId, $esemenyId) {
+
+ $q = "UPDATE esemenyDiak SET jovahagyasDt='0000-00-00 00:00:00' WHERE diakId=%u AND esemenyId=%u";
+ $v = array($diakId, $esemenyId);
+ return db_query($q, array('fv'=>'jelentkezesElutasitas','modul'=>'naplo','values'=>$v));
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/file.php b/mayor-orig/www/include/modules/naplo/share/file.php
new file mode 100644
index 00000000..197ed498
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/file.php
@@ -0,0 +1,662 @@
+<?php
+
+ require_once('include/share/print/pdf.php');
+
+ if (file_exists("lang/$lang/module-naplo/share/file.php")) {
+ require_once("lang/$lang/module-naplo/share/file.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/module-naplo/share/file.php')) {
+ require_once('lang/'._DEFAULT_LANG.'/module-naplo/share/file.php');
+ } else {
+ echo $lang;
+ }
+
+ $Attrs = array(
+
+ 'diakid' => _ATTR_DIAKID,
+ 'oid' => _ATTR_OID,
+ 'diakigazolvanyszam' => _ATTR_IGAZOLVANYSZAM,
+ 'viseltnevelotag' => _ATTR_VNE,
+ 'viseltcsaladinev' => _ATTR_VCSN,
+ 'viseltutonev' => _ATTR_VUN,
+ 'szuleteskorinevelotag' => _ATTR_SZNE,
+ 'szuleteskoricsaladinev' => _ATTR_SZCSN,
+ 'szuleteskoriutonev' => _ATTR_SZUN,
+ 'szuletesihely' => _ATTR_SZH,
+ 'szuletesiido' => _ATTR_SZI,
+ 'anyanevelotag' => _ATTR_ANE,
+ 'anyacsaladinev' => _ATTR_ACSN,
+ 'anyautoneve' => _ATTR_AUN,
+ 'kezdotanev' => _ATTR_KEZDO_TANEV,
+ 'kezdoszemeszter' => _ATTR_KEZDO_SZEMESZTER,
+ 'vegzotanev' => _ATTR_VEGZO_TANEV,
+ 'vegzoszemeszter' => _ATTR_VEGZO_SZEMESZTER,
+ 'adoazonosito' => _ATTR_ADOAZONOSITO,
+ 'allampolgarsag' => _ATTR_ALLAMPOLGARSAG,
+ 'anyaid' => _ATTR_ANYAID,
+ 'apaid' => _ATTR_APAID,
+ 'gondviseloid' => _ATTR_GONDVISELOID,
+ 'neveloid' => _ATTR_NEVELOID,
+ 'diaknaplosorszam' => _ATTR_DIAKNAPLOSORSZAM,
+ 'elozoiskolaomkod' => _ATTR_ELOZOISKOLAOMKOD,
+ 'email' => _ATTR_EMAIL,
+ 'fogyatekossag' => _ATTR_FOGYATEKOSSAG,
+ 'gondozasiszam' => _ATTR_GONDOZASISZAM,
+ 'jogviszonykezdete' => _ATTR_JOGVISZONYKEZDETE,
+ 'jogviszonyvege' => _ATTR_JOGVISZONYVEGE,
+
+ 'lakhelyorszag' => _ATTR_LAKHELY_ORSZAG,
+ 'lakhelyirsz' => _ATTR_LAKHELY_IRSZ,
+ 'lakhelyhelyseg' => _ATTR_LAKHELY_HELYSEG,
+ 'lakhelykozteruletnev' => _ATTR_LAKHELY_KOZTERULETNEV,
+ 'lakhelykozteruletjelleg' => _ATTR_LAKHELY_KOZTERULETJELLEG,
+ 'lakhelyhazszam' => _ATTR_LAKHELY_HAZSZAM,
+ 'lakhelyemelet' => _ATTR_LAKHELY_EMELET,
+ 'lakhelyajto' => _ATTR_LAKHELY_AJTO,
+
+ 'tartorszag' => _ATTR_TART_ORSZAG,
+ 'tartirsz' => _ATTR_TART_IRSZ,
+ 'tarthelyseg' => _ATTR_TART_HELYSEG,
+ 'tartkozteruletnev' => _ATTR_TART_KOZTERULETNEV,
+ 'tartkozteruletjelleg' => _ATTR_TART_KOZTERULETJELLEG,
+ 'tarthazszam' => _ATTR_TART_HAZSZAM,
+ 'tartemelet' => _ATTR_TART_EMELET,
+ 'tartajto' => _ATTR_TART_AJTO,
+
+ 'tajszam' => _ATTR_TAJSZAM,
+ 'osztalyjel' => _ATTR_OSZTALYJEL,
+ 'penzugyistatusz' => _ATTR_PENZUGYISTATUSZ,
+ 'szemelyiigazolvanyszam' => _ATTR_SZEMELYIIGAZOLVANYSZAM,
+ 'szocialishelyzet' => _ATTR_SZOCIALISHELYZET,
+ 'statusz' => _ATTR_STATUSZ,
+ 'tartozkodasiokiratszam' => _ATTR_TARTOZKODASIOKIRATSZAM,
+ 'torvenyeskepviselo' => _ATTR_TORVENYESKEPVISELO,
+ 'telefon' => _ATTR_TELEFON,
+ 'mobil' => _ATTR_MOBIL,
+ 'nem' => _ATTR_NEM,
+ 'lakohelyijellemzo' => _ATTR_LAKOHELYIJELLEMZO,
+ 'megjegyzes' => _ATTR_MEGJEGYZES,
+ );
+
+ function readUpdateFile($fileName, $mezo_elvalaszto = ' ') {
+
+
+ $ADATOK = array();
+ if ($fp = @fopen($fileName,'r')) {
+ // Az első 50 sor beolvasása - minta a mező-hozzárendeléshez
+ $i=0;
+ while (($sor = fgets($fp,1024)) and ($i<50)) {
+ $ADATOK[$i] = explode($mezo_elvalaszto,chop($sor));
+ $i++;
+ }
+ fclose($fp);
+ } else {
+ $_SESSION['alert'][] = 'message:file_open_error:'.$fileName;
+ }
+
+ return $ADATOK;
+ }
+/*
+ * Lekérdezi egy adatbázis (naplo_intezmeny, naplo (tanév)) egy adott táblájának mezőit.
+ * Ha szükséges ezek listáját kiegészíti az extraAttrs tömbben felsorolt mezőkkel.
+ * A mezőnevekhez nyelvi konstansokat rendelhetünk ($Attrs tömb és lang/.../share/file.php)
+ */
+ function getTableFields($table, $db = 'naplo_intezmeny', $extraAttrs = array(), $SET = array('withType' => false)) {
+
+ global $Attrs;
+
+ $return = $type = $name = array();
+ $q = "SHOW FIELDS FROM `%s`";
+ $r = db_query($q, array('fv' => 'getTableFields','modul' => $db, 'result' => 'indexed', 'values' => array($table)));
+ for ($i = 0; $i < count($r); $i++) {
+ if ($SET['withType']) {
+ if (substr($r[$i]['Type'],0,7) == 'varchar') $type[ $r[$i]['Field'] ] = 'string';
+ elseif (substr($r[$i]['Type'],0,4) == 'enum') $type[ $r[$i]['Field'] ] = 'enum';
+ elseif (substr($r[$i]['Type'],0,4) == 'date') $type[ $r[$i]['Field'] ] = 'date';
+ elseif (strpos($r[$i]['Type'],'int(') !== false) $type[ $r[$i]['Field'] ] = 'int';
+ else $type[ $r[$i]['Field'] ] = 'string';
+ }
+ if ($Attrs[kisbetus($r[$i]['Field'])] != '') $name[$r[$i]['Field']] = $Attrs[kisbetus($r[$i]['Field'])];
+ else $name[$r[$i]['Field']] = $r[$i]['Field'];
+ }
+ for ($i = 0; $i < count($extraAttrs); $i++) {
+ if (!isset($name[$extraAttrs[$i]])) {
+ if ($Attrs[kisbetus($extraAttrs[$i])] != '') $name[$extraAttrs[$i]] = $Attrs[kisbetus($extraAttrs[$i])];
+ else $name[$extraAttrs[$i]] = $extraAttrs[$i];
+ }
+ }
+ ksort($name);
+
+ if ($SET['withType']) return array('names' => $name, 'types' => $type);
+ return $name;
+
+ }
+
+
+ function getEnumField($modul, $table, $field) {
+
+ $table = '`'.str_replace('.','`.`',$table).'`';
+ $q = "SHOW FIELDS FROM %s LIKE '%s'";
+ $v = array($table, $field);
+ $field = db_query($q, array('fv' => 'getEnumField', 'modul' => $modul, 'result' => 'record', 'values' => $v));
+ $enum = substr($field['Type'], 6, -2);
+ $values = explode("','", $enum);
+
+ return $values;
+ }
+
+ function getSetField($modul, $table, $field) {
+
+ $table = '`'.str_replace('.','`.`',$table).'`';
+ $q = "SHOW FIELDS FROM %s LIKE '%s'";
+ $v = array($table, $field);
+ $field = db_query($q, array('fv' => 'getSetField', 'modul' => $modul, 'result' => 'record', 'values' => $v));
+ $set = substr($field['Type'], 5, -2);
+ $values = explode("','", $set);
+
+ return $values;
+ }
+
+
+ function updateTable($table, $file, $MEZO_LISTA, $KULCS_MEZOK, $mezo_elvalaszto = ' ', $rovatfej = false, $db = 'naplo_intezmeny') {
+
+
+ if (!file_exists($file)) {
+ $_SESSION['alert'][] = 'message:file_not_found:updateTable:'.$file;
+ return false;
+ }
+
+ if (!is_array($MEZO_LISTA)) {
+ $_SESSION['alert'][] = 'message:wrong_data:updateTable:MEZO_LISTA';
+ return false;
+ }
+
+ if (!is_array($KULCS_MEZOK)) {
+ $_SESSION['alert'][] = 'message:wrong_data:updateTable:KULCS_MEZOK';
+ return false;
+ }
+
+ // A frissítendő attribútumok listája
+ $attrList = array_values(array_filter($MEZO_LISTA));
+
+ $fp = fopen($file,'r');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open_error:updateTable:'.$file;
+ return false;
+ }
+
+ $lr = db_connect($db, array('fv' => 'updateTable'));
+ if (!$lr) {
+ $_SESSION['alert'][] = 'message:db_connect_failure:updateTable';
+ fclose($fp);
+ return false;
+ }
+ db_start_trans($lr);
+
+ // Az első sor kihagyása
+ if ($rovatfej) $sor = fgets($fp,1024);
+ while ($sor = fgets($fp,1024)) {
+
+ $insertValues = $insertPatterns = array();
+ $adatSor = explode($mezo_elvalaszto,chop($sor));
+ $update = false;
+
+ // keresési feltétel összerakása
+ $where = $v = $vw = array();
+ for ($i = 0; $i < count($KULCS_MEZOK); $i++) {
+ if ($adatSor[$KULCS_MEZOK[$i]] != '') {
+ $where[] = "`%s`='%s'";
+ array_push($vw, $MEZO_LISTA[$KULCS_MEZOK[$i]], $adatSor[$KULCS_MEZOK[$i]]);
+ }
+ }
+ $num = 0;
+ if (count($where) != 0) {
+ $q = 'SELECT COUNT(*) FROM `%s` WHERE '.implode(' AND ', $where);
+ array_unshift($vw, $table);
+ $num = db_query($q, array('fv' => 'updateTable', 'values' => $vw, 'result' => 'value', 'modul' => $db), $lr);
+ }
+ if ($num == 1 && _SKIP_ON_DUP === true) { $_SESSION['alert'][] = 'info:_SKIP_ON_DUP:'.serialize($sor); continue; }
+ if ($num == 1) { // update
+ $v = $vw;
+ array_shift($v); //$table kivétele
+ $UPDATE = array();
+ for ($i = 0; $i < count($MEZO_LISTA); $i++) {
+ if (
+ $MEZO_LISTA[$i] != ''
+ and $adatSor[$i] != ''
+ and !in_array($i,$KULCS_MEZOK)
+ ) {
+ if ($adatSor[$i] == '\N') {
+ array_unshift($UPDATE, "`%s`=NULL");
+ array_unshift($v, $MEZO_LISTA[$i]);
+ } else {
+ array_unshift($UPDATE, "`%s`='%s'");
+ array_unshift($v, $MEZO_LISTA[$i], $adatSor[$i]);
+ }
+ }
+ }
+ if (count($UPDATE) > 0) {
+ array_unshift($v, $table);
+ $q = 'UPDATE `%s` SET '.implode(',',$UPDATE).' WHERE '.implode(' AND ', $where);
+ $r = db_query($q, array('fv' => 'updateTable/update', 'values' => $v, 'modul' => $db, 'rollback' => true), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+ }
+ } elseif ($num == 0) { // insert
+ for ($i = 0; $i < count($MEZO_LISTA); $i++) {
+ if ($MEZO_LISTA[$i] != '') {
+ if ($adatSor[$i] == '\N') {
+ $insertValues[] = 'NULL';
+ $insertPatterns[] = '%s';
+ } else {
+ $insertValues[] = $adatSor[$i];
+ $insertPatterns[] = "'%s'";
+ }
+ }
+ }
+ $q = 'INSERT INTO `%s` ('.implode(',', array_fill(0, count($attrList), '%s')).')
+ VALUES ('.implode(',', $insertPatterns).')';
+ $v = mayor_array_join(array($table), $attrList, $insertValues);
+ $r = db_query($q, array('fv' => 'updateTable/insert', 'modul' => $db, 'values' => $v, 'rollback' => true), $lr);
+ if (!$r) {
+ db_close($lr);
+ return false;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:updateTable:több illeszkedő rekord is van, túl laza a kulcs feltétel ('
+ .call_user_func_array('sprintf', array_merge(array('%s tábla, '.implode(' AND ',$where)), $vw)).')';
+ db_rollback($lr);
+ db_close($lr);
+ return false;
+ }
+ } // while
+ db_commit($lr);
+ db_close($lr);
+
+ fclose($fp);
+
+ }
+
+ function generatePDF($outputFile, $outputDir, $str, $booklet=false) {
+
+
+ // A szöveg file-ba írása
+ if (!$fp = fopen($outputDir.'/'.$outputFile.'-u8.tex', 'w')) {
+ $_SESSION['alert'][] = 'message:file_open_failure:generatePDF:'.$outputDir.'/'.$outputFile.'-u8.tex';
+ return false;
+ }
+ if (!fwrite($fp, $str)) {
+ $_SESSION['alert'][] = 'message:file_write_failure:generatePDF:'.$outputDir.'/'.$outputFile.'-u8.tex';
+ return false;
+ }
+ fclose($fp);
+ if (__NYOMTATAS_XETEX===true) {
+ $ret = exec('cd '.$outputDir.'; cat <<EOF > '.$outputFile.'.tex
+%\font\kicsi=ecrm0500
+%\font\nagy=ecbx1200
+%\font\vastag=ecsx0800
+%\font\nagyss=ecsx1200
+%\font\normal=ecss0800
+%\font\dolt=ecsi0800
+
+\font\kicsi="Linux Libertine O" at 5pt
+\font\nagy="Linux Libertine O/B" at 12pt
+\font\nagyss="Arial/B" at 12pt
+\font\normal="Linux Biolinum O" at 8pt
+\font\dolt="Linux Biolinum O/I" at 8pt
+\normal
+
+EOF
+');
+ $ret = exec('cd '.$outputDir.'; cat '.$outputFile.'-u8.tex >> '.$outputFile.'.tex');
+ $ret = exec('cd '.$outputDir.'; xetex -fmt '._MAYOR_DIR.'/print/module-naplo/xetex/mayor-xetex '.$outputFile.'.tex');
+#ex -fmt '._MAYOR_DIR.'/print/module-naplo/tex/mayor '.$outputFile.'.tex');
+ } else {
+ // utf8 --> cork (t1)
+ $ret = exec('cd '.$outputDir.'; cat '.$outputFile.'-u8.tex | recode u8..T1 > '.$outputFile.'.tex');
+ // DVI, PS, PFD generálás (a rotate miatt nem megy a pdftex közvetlenül :o(
+ $ret = exec('cd '.$outputDir.'; tex -fmt '._MAYOR_DIR.'/print/module-naplo/tex/mayor '.$outputFile.'.tex');
+ if ($ret === false) { $_SESSION['alert'][] = 'message:futási_hiba:generatePDF:tex'; return false; }
+# LOG $ret = exec('cd '.$outputDir.'; dvips '.$outputFile.'.dvi 2>&1 | tee -a /tmp/x.log ');
+ $ret = exec('HOME=/tmp && export HOME && cd '.$outputDir.'; dvips '.$outputFile.'.dvi ');
+ if ($ret === false) { $_SESSION['alert'][] = 'message:futási_hiba:generatePDF:ps'; return false; }
+ $ret = exec('cd '.$outputDir.'; ps2pdf -sPAPERSIZE=a4 -dAutoRotatePages=/None '.$outputFile.'.ps');
+ if (strpos($ret, 'error') !== false) { $_SESSION['alert'][] = 'message:futási_hiba:generatePDF:pdf'; return false; }
+
+ }
+ if ($booklet) {
+ $ret = exec('cd '.$outputDir.'; mv '.$outputFile.'.pdf '.$outputFile.'-A4.pdf; pdfbook --short-edge --outfile '.$outputFile.'.pdf '.$outputFile.'-A4.pdf');
+ }
+ return true;
+ }
+
+ function generateXLS($fileName, $Table, $title) {
+
+ global $policy, $page, $sub, $f;
+
+ if (dirname($fileName) == '.') $fileName = _DOWNLOADDIR."/$policy/$page/$sub/$f/$fileName";
+ $fp = fopen($fileName, 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open_failure:'.$fileName;
+ return false;
+ }
+
+ fputs($fp, '<?xml version="1.0"?>'."\r\n");
+ fputs($fp, '<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">'."\r\n");
+ fputs($fp, ' <Styles>'."\r\n"
+ .' <Style ss:ID="s21">'."\r\n".' <NumberFormat ss:Format="Short Date" />'."\r\n".' </Style>'."\r\n"
+ .' <Style ss:ID="s22">'."\r\n".' <NumberFormat ss:Format="yyyy\.m\.d\.\ h:mm" />'."\r\n".' </Style>'."\r\n"
+ ."\r\n".' </Styles>'."\r\n");
+
+ fputs($fp, '<Worksheet ss:Name="'.$title.'">'."\r\n");
+ fputs($fp, '<Table>'."\r\n");
+
+ for ($i = 0; $i < count($Table); $i++) {
+ fputs($fp, ' <Row>'."\r\n");
+ foreach ($Table[$i] as $index => $value) {
+ if (is_numeric($value))
+ fputs($fp, " <Cell><Data ss:Type=\"Number\">".$value."</Data></Cell>\r\n");
+ elseif (strtotime($value))
+ if (strlen($value) > 10) {
+ fputs($fp, " <Cell ss:StyleID=\"s22\"><Data ss:Type=\"DateTime\">".str_replace(' ','T',$value).'.000'."</Data></Cell>\r\n");
+ } else {
+ fputs($fp, " <Cell ss:StyleID=\"s21\"><Data ss:Type=\"DateTime\">".$value.'T08:40:00.000'."</Data></Cell>\r\n");
+ }
+ else
+ fputs($fp, " <Cell><Data ss:Type=\"String\">".$value."</Data></Cell>\r\n");
+ }
+ fputs($fp, ' </Row>'."\r\n");
+ }
+
+ fputs($fp, '</Table>'."\r\n");
+ fputs($fp, '</Worksheet>'."\r\n");
+ fputs($fp, '</Workbook>'."\r\n");
+
+ fclose($fp);
+ return true;
+
+ }
+
+ function generateCSV($fileName, $Table, $title, $mezoElvalaszto=' ') {
+
+ global $policy, $page, $sub, $f;
+
+ if (dirname($fileName) == '.') $fileName = _DOWNLOADDIR."/$policy/$page/$sub/$f/$fileName";
+ $fp = fopen($fileName, 'w');
+ if (!$fp) {
+ $_SESSION['alert'][] = 'message:file_open_failure:'.$fileName;
+ return false;
+ }
+
+ if ($title !='') fputs($fp, $title."\n");
+ for ($i = 0; $i < count($Table); $i++) fputs($fp, implode($mezoElvalaszto, $Table[$i])."\n");
+
+ fclose($fp);
+ return true;
+
+ }
+
+ function generateODS($fileName, $Table, $title) {
+
+ global $policy, $page, $sub, $f;
+
+ if (dirname($fileName) == '.') $fileName = _DOWNLOADDIR."/$policy/$page/$sub/$f/$fileName";
+ define('TMPZIP','/tmp/'.substr(basename($fileName), 0, strpos(basename($fileName), '.')));
+ define('ODS_MIMETIPE','application/vnd.oasis.opendocument.spreadsheet');
+ define('ODS_MANIFEST','<?xml version="1.0" encoding="UTF-8"?>
+<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
+ <manifest:file-entry manifest:media-type="application/vnd.oasis.opendocument.spreadsheet" manifest:version="1.2" manifest:full-path="/"/>
+ <manifest:file-entry manifest:media-type="text/xml" manifest:full-path="content.xml"/>
+</manifest:manifest>');
+ define('ODS_START_XMLDOCUMENT','<?xml version="1.0" encoding="UTF-8"?>
+<office:document-content
+ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
+ xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
+ xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
+ xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
+ xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
+ xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
+ xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
+ xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
+ xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
+ xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
+ xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
+ xmlns:math="http://www.w3.org/1998/Math/MathML"
+ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
+ xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
+ xmlns:ooo="http://openoffice.org/2004/office"
+ xmlns:ooow="http://openoffice.org/2004/writer"
+ xmlns:oooc="http://openoffice.org/2004/calc"
+ xmlns:dom="http://www.w3.org/2001/xml-events"
+ xmlns:xforms="http://www.w3.org/2002/xforms"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:rpt="http://openoffice.org/2005/report"
+ xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:grddl="http://www.w3.org/2003/g/data-view#"
+ xmlns:tableooo="http://openoffice.org/2009/table"
+ xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0"
+ xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0"
+ office:version="1.2" grddl:transformation="http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl">');
+ define('ODS_ASTYLES','<office:automatic-styles>
+ <number:date-style style:name="N84">
+ <number:year number:style="long"/>
+ <number:text>-</number:text>
+ <number:month number:style="long"/>
+ <number:text>-</number:text>
+ <number:day number:style="long"/>
+ </number:date-style>
+ <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N84"/>
+ </office:automatic-styles>');
+ define('ODS_START_SPREADSHEET','<office:body><office:spreadsheet>');
+ define('ODS_START_TABLE','<table:table table:name="Export">');
+ define('ODS_START_ROW','<table:table-row>');
+ define('ODS_END_ROW','</table:table-row>');
+ define('ODS_END_TABLE','</table:table>');
+ define('ODS_END_SPREADSHEET','</office:spreadsheet></office:body>');
+ define('ODS_END_XMLDOCUMENT','</office:document-content>');
+
+ $content = ODS_START_XMLDOCUMENT . ODS_ASTYLES . ODS_START_SPREADSHEET . ODS_START_TABLE;
+ for ($i = 0; $i < count($Table); $i++) {
+ $content .= ODS_START_ROW;
+ foreach ($Table[$i] as $index => $value) {
+ if (is_numeric($value))
+ $content .= '<table:table-cell office:value-type="float" office:value="'.$value.'"/>'."\n";
+ elseif (strtotime($value))
+ if (strlen($value) > 10) {
+ $content .= '<table:table-cell table:style-name="ce1" office:value-type="date" office:date-value="'.$value.'"/>'."\n";
+ } else {
+ $content .= '<table:table-cell table:style-name="ce1" office:value-type="date" office:date-value="'.$value.'"/>'."\n";
+ }
+ elseif ($value[0] == '=') $content .= '<table:table-cell table:formula="'.$value.'" office:value-type="float"/>'."\n";
+ // formula példa: $value = 'of:=SUM([.A1:.B1])*2+[.A1]'
+ else $content .= '<table:table-cell office:value-type="string"><text:p>'.$value.'</text:p></table:table-cell>'."\n";
+ }
+ $content .= ODS_END_ROW;
+ }
+ $content .= ODS_END_TABLE . ODS_END_SPREADSHEET . ODS_END_XMLDOCUMENT;
+
+ mkdir(TMPZIP);
+ mkdir(TMPZIP."/META-INF");
+ file_put_contents(TMPZIP."/META-INF/manifest.xml", ODS_MANIFEST);
+ file_put_contents(TMPZIP."/content.xml", $content);
+ file_put_contents(TMPZIP."/mimetype", ODS_MIMETIPE);
+ system("cd ".TMPZIP."; zip -mr ".$fileName." mimetype META-INF/* content.xml >/dev/null");
+ rmdir(TMPZIP."/META-INF");
+ rmdir(TMPZIP);
+
+ return true;
+ }
+
+/* --------------------------------------- */
+
+ function _template2array($fp, $type, &$aTeX) {
+ $vege = false;
+ $aTeX[$type] = array();
+ while (!$vege && ($sor = fgets($fp, 1024))) {
+ $sor = chop($sor);
+ if ($sor == "%}$type") {
+ $vege = true;
+ } elseif (substr($sor, 0, 2) != '%!') { // A feldolgozást végző függvény megadása
+ if (substr($sor, 0, 2) == '%}') {
+ echo "HIBA #1 Megnyitás előtti blokk lezárás a {$type} blokkban: $sor<hr>";
+ } else {
+ if (substr($sor, 0, 2) == '%{') {
+ $_type = substr($sor, 2);
+ _template2array($fp, $_type, $aTeX);
+ $aTeX[$type][] = '%{'.$_type.'}';
+ } else {
+ // feltételes szövegrészek
+ $condArray = explode('%?', $sor);
+ for ($i = 1; $i < count($condArray); $i = $i + 2) {
+ $str = $condArray[$i];
+ $tmpArray = explode('|', $str);
+ $j = 0; while (is_array($aTeX['conditional']["$j".$tmpArray[0]])) $j++;
+ $newCondition = "$j".$tmpArray[0];
+ $aTeX['conditional'][$newCondition] = array(true => $tmpArray[1], false => $tmpArray[2], 'orig' => $tmpArray[0]);
+ $sor = str_replace($str.'%?', $newCondition, $sor);
+ }
+// $aTeX[$type][] = $sor;
+ // lezáró eset
+ $finalArray = explode('%>', $sor);
+ for ($i = 1; $i < count($finalArray); $i = $i + 2) {
+ $str = $finalArray[$i];
+ $tmpArray = explode('<!>', $str);
+ $j = 0; while (is_array($aTeX['finalCase']["$j".$type])) $j++;
+ $newCondition = "$j".$type;
+ $aTeX['finalCase'][$newCondition] = array(true => $tmpArray[0], false => $tmpArray[1]);
+ $sor = str_replace($str.'%>', $newCondition, $sor);
+ }
+ $aTeX[$type][] = $sor;
+ }
+ }
+ }
+ }
+ }
+
+ function _array2text($type, $id, $mit, $mire, $aTeX, $ADAT, $flag = null) {
+ $ret = '';
+ if (is_null($id)) $A = $ADAT[$type];
+ else $A = $ADAT[$type][$id];
+
+ // A cserélendő attribútumok
+ if (is_array($A)) foreach ($A as $attr => $value) {
+ if (!is_array($value)) {
+ if (true || !is_bool($value)) { // feltételes szövegrészek külön kezelendők ??? Miért is? Az általánosabb feltételes kiíráshoz kell!
+ if (in_array('%$'.$attr, $mit)) { // A már szereplő mintát felülírjuk!
+ $key = array_search('%$'.$attr, $mit);
+ $mit[$key] = '%$'.$attr;
+ $mire[$key] = $value;
+ } else {
+ $mit[] = '%$'.$attr;
+ $mire[] = $value;
+ }
+ }
+ }
+ }
+
+ // aTeX feldolgozása
+ $TeX = $aTeX[$type];
+ for ($i = 0; $i < count($TeX); $i++) {
+ $sor = $TeX[$i];
+ if (substr($sor, 0, 2) == '%{') {
+ // Almodul feldolgozása
+ $_type = substr($sor, 2, -1);
+ if (is_array($A[$_type])) {
+ if (is_null($id)) {
+ foreach ($A[$_type] as $key => $_id) $ret .= _array2text($_type, $_id, $mit, $mire, $aTeX, $ADAT);
+ } else {
+ $count = count($A[$_type]); $db = 0;
+ foreach ($A[$_type] as $_id => $_data) {
+ $db++; if ($count == $db) $_flag = 'final'; else $_flag = null;
+ if (!is_array($ADAT[$_type][$_id]) && !is_array($_data)) {
+ echo '<br>HIBA#2!!! '.$_type.':'.$_id.':'.$_data.'<hr />';
+// return false;
+ } else {
+ if (!is_array($ADAT[$_type][$_id])) $ADAT[$_type][$_id] = array();
+ elseif (!is_array($_data)) $_data = array();
+ $ADAT[$_type][$_id] = $ADAT[$_type][$_id] + $_data;
+ $ret .= _array2text($_type, $_id, $mit, $mire, $aTeX, $ADAT, $_flag);
+ }
+ }
+ }
+ } elseif (__DEBUG === true) { echo '<br>HIBA#3: '.$sor.'<br />'.$_type.':'; var_dump($A[$_type]); echo '<hr />';}
+ } else {
+ // Csere - lezáró eset
+ if (strpos($sor, '%>') !== false) foreach ($aTeX['finalCase'] as $attr => $values) {
+ $sor = str_replace('%>'.$attr, $values[ $flag === 'final' ], $sor);
+ }
+ // Csete - feltételes kiírás
+ if (strpos($sor, '%?') !== false) foreach ($aTeX['conditional'] as $attr => $values) {
+ // Nem csak az adott szintről veszi az értéket, hanem feljebbről is (a feljebbi a meghatározó - ez nem biztos, hogy jó...)
+ if ($key = array_search('%$'.$values['orig'], $mit)) $_val = $mire[$key];
+ else $_val = $A[$values['orig']];
+ $sor = str_replace('%?'.$attr, $values[ $_val==true ], $sor);
+ //$sor = str_replace('%?'.$attr, $values[ $A[$values['orig']]==true ], $sor);
+ }
+ // Kiírás
+ $ret .= str_replace($mit, $mire, $sor)."\n";
+ }
+ }
+
+ return $ret;
+ }
+
+ function template2text($templateFile, $ADAT) {
+
+ $mit = $mire = array();
+ $aTeX = array('conditional' => array());
+
+ $fp = fopen($templateFile, 'r');
+ _template2array($fp, 'base', $aTeX);
+ fclose($fp);
+ return _array2text('base', null, $mit, $mire, $aTeX, $ADAT);
+
+ }
+
+ function template2file($templateFile, $ADAT) {
+
+ global $policy, $page, $sub, $f;
+
+ $mit = $mire = array();
+ $aTeX = array('conditional' => array());
+
+ $fp = fopen($templateFile, 'r');
+ // A feldolgozást végző függvény neve
+ $sor = fgets($fp, 1024);
+ rewind($fp);
+ if (substr($sor, 0, 2) == '%!') {
+ list($func,$ext,$opt) = explode(' ', substr(chop($sor), 2));
+ if (!function_exists($func)) unset($func);
+ }
+ if ($ext=='') $ext = 'txt';
+ _template2array($fp, 'base', $aTeX);
+ fclose($fp);
+ $text = _array2text('base', null, $mit, $mire, $aTeX, $ADAT);
+//die();
+ if ($text === false) return false;
+ $success = true;
+ if (isset($func)) {
+ $success = $func($text, $ADAT['file'], $opt);
+ } else {
+ $fp = fopen(_DOWNLOADDIR."/$policy/$page/$sub/$f/".$ADAT['file'].'.'.$ext, 'w');
+ fputs($fp, $text);
+ fclose($fp);
+ }
+ if ($success) return $ADAT['file'].".$ext";
+ else return false;
+
+ }
+
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/helyettesites.php b/mayor-orig/www/include/modules/naplo/share/helyettesites.php
new file mode 100644
index 00000000..140f6744
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/helyettesites.php
@@ -0,0 +1,42 @@
+<?php
+
+ function getHelyettesitendoOrak($SET = array('tolDt'=>'','igDt'=>'','tankorIdk'=>'','telephelyId'=>'')) {
+
+ //találjuk ki valahogy a telephelyet... (osztály, terem, tanár alapján???)
+ if ($SET['telephelyId']!='') {
+ $telephelyId=$SET['telephelyId'];
+ $WT = " AND (`terem`.`telephelyId` = $telephelyId OR terem.teremId IS NULL) ";
+ }
+
+ $igDt = $SET['igDt']; $tolDt=$SET['tolDt']; $osztalyId = $SET['osztalyId'];
+ $W = '';
+ if (is_array($SET['tankorIdk']) && count($SET['tankorIdk']) > 0) {
+ $W = ' AND tankorId IN ('.implode(',', array_fill(0, count($SET['tankorIdk']), '%u')).')';
+ $v = mayor_array_join(array($tolDt, $igDt), $SET['tankorIdk']);
+ } else { $v = array($tolDt, $igDt); }
+ $q = "SELECT ora.oraId,ora.dt,ora.ora,ora.ki,ora.kit,ora.tankorId,ora.teremId,ora.leiras,ora.tipus,ora.eredet, ora.feladatTipusId
+ FROM ora
+ LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId)
+ WHERE dt>='%s' AND dt<='%s'
+ AND (eredet!='órarend' OR kit!='')
+ $W
+ $WT
+ ORDER BY dt,ora";
+// AND (tipus NOT LIKE '%máskor')
+ $RESULT['indexed'] = db_query($q, array('fv' => 'getHelyettesitendoOrak', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($RESULT['indexed']); $i++) {
+ $TANAROK[] = $RESULT['indexed'][$i]['ki'];
+ $TANAROK[] = $RESULT['indexed'][$i]['kit'];
+ $TANKOROK[] = $RESULT['indexed'][$i]['tankorId'];
+ /* ezt egyelőre nem használjuk semmire! Sima plusz óra */
+ //if ($RESULT['indexed'][$i]['eredet'] == 'plusz')
+ // $RESULT['plusz'][] = $RESULT['indexed'][$i]['oraId'];
+ }
+ if (is_array($TANKOROK))
+ $RESULT['tanarok'] = array_unique($TANAROK);
+ $RESULT['tankorok'] = $TANKOROK;
+ return $RESULT;
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/helyettesitesModifier.php b/mayor-orig/www/include/modules/naplo/share/helyettesitesModifier.php
new file mode 100644
index 00000000..17f0cf53
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/helyettesitesModifier.php
@@ -0,0 +1,117 @@
+<?php
+
+ require_once('include/modules/naplo/share/ora.php');
+
+ function hianyzasEsJegyHozzarendelesTorles($oraId, $olr = '', $tanev='') {
+
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ if ($tanev!='') {
+ $_tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ db_selectDb($_tanevDb,$lr);
+ }
+
+ if (!is_array($oraId)) $oraId = array($oraId);
+//$oraIdList = implode(',', $oraId);
+//else $oraIdList = $oraId;
+ // Az érintett hiányzások id-inek lekérdezése - naplózás céljából...
+ $q = "SELECT hianyzasId, diakId, dt, ora, oraId, tipus, statusz, igazolas FROM hianyzas
+ WHERE oraId IN (".implode(',', array_fill(0, count($oraId), '%u')).")";
+ $H = db_query($q, array('fv' => 'hianyzasEsJegyHozzarendelesTorles', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $oraId), $lr);
+// $r = m_ysql_query($q, $lr) or die(m_ysql_error());
+// if (!$r) {
+// $_SESSION['alert'][] = 'message:m_ysql_query_failure:hianyzasEsJegyHozzarendelesTorles:'.$q.':'.m_ysql_error($lr);
+// if($olr == '') $lr = db_close($lr);
+// return false;
+// }
+ $hIds = array();
+ if (is_array($H) && count($H) > 0) {
+ foreach ($H as $key => $hAdat) {
+ extract($hAdat, EXTR_PREFIX_ALL, 'tmp');
+ $hIds[] = $tmp_hianyzasId;
+ logAction(
+ array(
+ 'szoveg'=>"Helyettesítés/óraelmaradás => törölt hiányzás: hianyzasId=$tmp_hianyzasId, diakId=$tmp_diakId, dt=$tmp_dt, ora=$tmp_ora, oraId=$tmp_oraId, tipus=$tmp_tipus, statusz=$tmp_statusz, igazolas=$tmp_igazolas",
+ 'table'=>'hianyzas'
+ ),
+ $lr
+ );
+ }
+ // --TODO: hianyzasTorles() - fv-t hívjuk meg!
+ $q = "DELETE FROM hianyzas WHERE hianyzasId IN (".implode(',', array_fill(0, count($hIds), '%u')).")";
+ db_query($q, array('fv' => 'hianyzasEsJegyHozzarendelesTorles', 'modul' => 'naplo', 'values' => $hIds, 'result' => 'affected rows'), $lr);
+ }
+ // Az elmaradt órákhoz rendelt jegyek hozzárendelésének törlése
+ $q = "UPDATE jegy SET oraId=NULL WHERE oraId IN (".implode(',', array_fill(0, count($oraId), '%u')).")";
+ $H = db_query($q, array('fv' => 'hianyzasEsJegyHozzarendelesTorles', 'modul' => 'naplo', 'result' => 'affected rows', 'values' => $oraId), $lr);
+
+ if ($olr == '') $lr = db_close($lr);
+ return true;
+ }
+
+
+ function masTartja($oraId, $ki, $tipus, $olr = null) {
+
+ if (is_null($ki) || $ki==0) {
+ $_SESSION['alert'][] = '::masTartja():ki értéke nulla vagy NULL!';
+// $q = "UPDATE ora SET kit=ki,ki=NULL,tipus='%s' WHERE oraId=%u";
+// $v = array($tipus, $oraId);
+// return db_query($q, array('fv' => 'masTartja', 'modul' => 'naplo', 'values' => $v), $olr);
+ } else {
+ $q = "UPDATE ora SET kit=ki,ki=%u,tipus='%s',modositasDt=now() WHERE oraId=%u";
+ $v = array($ki, $tipus, $oraId);
+ return db_query($q, array('fv' => 'masTartja', 'modul' => 'naplo', 'values' => $v), $olr);
+ }
+ }
+
+ function oraElmarad($oraId, $olr = null, $tanev = null) {
+
+ $O = getOraAdatById($oraId);
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ if ($tanev!='') {
+ $_tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ db_selectDb($_tanevDb,$lr);
+ }
+ if ($O['eredet'] == 'plusz') {
+ // benne van-e egy cserében - mert akkor nem törölhető
+ $q = "SELECT count(*) FROM cserePluszOra WHERE oraId=%u";
+ $O['csere'] = db_query($q, array('fv' => 'oraElmarad', 'modul' => 'naplo', 'result' => 'value', 'values' => array($oraId)),$lr);
+ }
+
+ $torol = true;
+ if (
+ ($O['eredet'] == 'órarend' && $O['tipus'] == 'normál') // normál órarendi óra
+ || ($O['eredet'] == 'plusz' && $O['csere'] > 0 && $O['tipus'] == 'normál') // cserélt, normállá alakult, plusz óra
+ || ($O['eredet'] == 'plusz' && $O['tipus'] == 'normál máskor') // cserében lévő normál, plusz óra
+ ) {
+ $q = "UPDATE ora SET kit=ki,ki=NULL,tipus='elmarad',modositasDt=now() WHERE oraId=%u";
+ } elseif (
+ ($O['eredet'] == 'órarend' && in_array($O['tipus'], array('helyettesítés','felügyelet','összevonás')))
+ || ($O['eredet'] == 'plusz' && $O['csere'] > 0 && in_array($O['tipus'], array('helyettesítés','felügyelet','összevonás')))
+ ) {
+ $q = "UPDATE ora SET ki=NULL,tipus='elmarad',modositasDt=NOW() WHERE oraId=%u";
+ } elseif (
+ $O['eredet'] == 'plusz' && in_array($O['tipus'], array('helyettesítés','felügyelet','összevonás','normál'))
+ || $O['tipus'] == 'egyéb'
+ ) {
+ $q = "DELETE FROM ora WHERE oraId=%u";
+ } else { $torol = false; }
+
+ if ($torol) {
+ HianyzasEsJegyHozzarendelesTorles($oraId, $lr, $tanev);
+ $ret = db_query($q, array('fv' => 'oraElmarad', 'modul' => 'naplo', 'values' => array($oraId)),$lr);
+ } else {
+ $ret = false;
+ }
+
+ if ($olr == '') $lr = db_close($lr);
+ return $ret;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/hetes.php b/mayor-orig/www/include/modules/naplo/share/hetes.php
new file mode 100644
index 00000000..7bd7079e
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/hetes.php
@@ -0,0 +1,48 @@
+<?php
+
+ function getHetes($osztalyId=null, $dt = null) {
+ if (!isset($dt)) {
+ $q = "SELECT * FROM hetes WHERE osztalyId=%u AND dt=(SELECT MAX(dt) FROM hetes WHERE osztalyId=%u GROUP BY sorszam ORDER BY dt)";
+ $v = array($osztalyId, $osztalyId);
+ } else {
+ $q = "SELECT * FROM hetes WHERE osztalyId=%u AND dt=(SELECT MAX(dt) FROM hetes WHERE osztalyId=%u AND dt<='%s' GROUP BY sorszam ORDER BY dt LIMIT 1)";
+ $v = array($osztalyId, $osztalyId, $dt);
+ }
+ return db_query($q, array('fv' => 'getHetesek', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'sorszam', 'values' => $v));
+ }
+
+ function getHetesek($osztalyId=null, $dt = null) {
+
+ if ($osztalyId=='') {
+ if (!isset($dt)) {
+ $q = "SELECT * FROM hetes ORDER BY dt,sorszam";
+ $v = array();
+ } else {
+ $q = "SELECT * FROM hetes WHERE dt<='%s' ORDER BY dt,sorszam";
+ $v = array($dt);
+ }
+ } else {
+ if (!isset($dt)) {
+ $q = "SELECT * FROM hetes WHERE osztalyId=%u ";
+ $v = array($osztalyId);
+ } else {
+ $q = "SELECT * FROM hetes WHERE osztalyId=%u AND dt<'%s'";
+ $v = array($osztalyId, $dt);
+ }
+ }
+ return db_query($q, array('fv' => 'getHetesek', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield'=>'osztalyId', 'values' => $v));
+
+ }
+
+ function hetesFelvetel($ADAT) {
+ for ($i = 1; $i < 3; $i++) {
+ if (isset($ADAT['hetes'][$i]))
+ $q = "REPLACE INTO hetes (osztalyId,dt,sorszam,diakId) VALUES (%u, '%s', $i, %u)";
+ else
+ $q = "DELETE FROM hetes WHERE osztalyId=%u AND dt='%s' AND sorszam=$i";
+
+ $v = array($ADAT['osztalyId'], $ADAT['dt'], $ADAT['hetes'][$i]);
+ db_query($q, array('fv' => 'hetesFelvetel', 'modul' => 'naplo', 'values' => $v));
+ }
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/hianyzas.php b/mayor-orig/www/include/modules/naplo/share/hianyzas.php
new file mode 100644
index 00000000..0ee41fa0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/hianyzas.php
@@ -0,0 +1,478 @@
+<?php
+
+ ////////////////////////////////////////
+ //
+ // Négy féle "üzemmód"
+ // 1. Ha aktív a tanév és átadom a $igDts[diakId] => dt tömböt, akkor
+ // diákonként lekérdezi a megadott dátumig, de legkésőbb a szemszter
+ // zárásig lévő hiányzásokat - a tanév adatbázisból!
+ // 2. Ha aktív a tanév, de nincs $igDts, akkor egyszerre kérdezi le az
+ // összes diákét a szemeszter zárásig
+ // 3. Ha nem aktív a tanév, akkor az intézményi adatbázisból kérdezi le
+ // az összesített adatokat (amik záráskor jönnek létre)
+ // 4. Ha nincs megadva szemeszter, akkor az összes szemszter összesítését lekérdezi - az intézményi adatbázisból
+ //
+ ////////////////////////////////////////
+
+ function defWnemszamit() {
+ $W['nemszamit'] = ' AND hianyzasBeleszamit="igen" ';
+ $W['join'] = ' LEFT JOIN '.__INTEZMENYDBNEV.'.tankorTipus USING (tankorTipusId) ';
+ return $W;
+ }
+
+ function getDiakHianyzasOsszesites($diakIds, $szemeszterAdat, $igDts = null) {
+ $ret = array();
+ if (count($diakIds)<1) return $ret;
+
+ $Wnemszamit = defWnemszamit();
+ if (is_array($szemeszterAdat)) {
+ // Egy szemeszter hiányzási adatainak lekérdezése
+ if (
+ ($szemeszterAdat['statusz'] == 'aktív' || $szemeszterAdat['statusz'] == 'lezárt')
+ && is_array($igDts)
+ ) {
+ // Folyó vagy lezárt tanév - a tanév adatbázisból kérdezünk le
+ // diákonként más-más vég határidővel (pl Osztályból kilépett)
+ foreach ($diakIds as $diakId) {
+ $igDt = readVariable(
+ $igDts[$diakId], 'datetime', $szemeszterAdat['zarasDt'], array(), 'strtotime($return) <= '.strtotime($szemeszterAdat['zarasDt'])
+ );
+ $q = "SELECT diakId,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt',1,NULL)) AS igazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL)) AS igazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) AS kesesPercOsszeg,
+
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt' AND tankorTipus.jelleg='gyakorlat',1,NULL)) AS gyakorlatIgazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan' AND tankorTipus.jelleg='gyakorlat',1,NULL)) AS gyakorlatIgazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan' AND tankorTipus.jelleg='gyakorlat',perc,NULL)) AS gyakorlatKesesPercOsszeg,
+
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt' AND tankorTipus.jelleg='elmélet',1,NULL)) AS elmeletIgazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan' AND tankorTipus.jelleg='elmélet',1,NULL)) AS elmeletIgazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan' AND tankorTipus.jelleg='elmélet',perc,NULL)) AS elmeletKesesPercOsszeg
+
+ FROM `%s`.hianyzas ".$Wnemszamit['join']."
+ WHERE (
+ tipus = 'hiányzás' OR (tipus='késés' AND statusz='igazolatlan' AND perc IS NOT NULL)
+ ) AND dt<='%s' AND diakId=%u
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY diakId";
+
+ $v = array(tanevDbNev(__INTEZMENY, $szemeszterAdat['tanev']), $igDt, $diakId);
+ $ret[$diakId] = db_query($q, array(
+ 'fv' => 'getDiakHianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v
+ ));
+ //++ Hozott hiányzások a tanévben
+ $_hozott = getDiakHozottHianyzas($diakId, array('tanev'=> $szemeszterAdat['tanev'] , 'igDt'=>$igDt));
+ $ret[$diakId]['igazolatlan'] += intval($_hozott['igazolatlan']['db']);
+ $ret[$diakId]['igazolt'] += intval($_hozott['igazolt']['db']);
+ }
+ } elseif ($szemeszterAdat['statusz'] == 'aktív') {
+ // Aktív tanévből kérdezünk le összesítést - ami még nem készült el -> tanév adatbázist használjuk
+ foreach ($diakIds as $diakId) {
+ $_hozott[$diakId] = getDiakHozottHianyzas($diakId, array('tanev'=> $szemeszterAdat['tanev']));
+ }
+ $q = "SELECT diakId,
+
+ COUNT(IF(tipus='felszerelés hiány',1,NULL)) AS felszerelesHianyDb,
+ COUNT(IF(tipus='egyenruha hiány',1,NULL)) AS egyenruhaHianyDb,
+ COUNT(IF(tipus='késés',1,NULL)) AS kesesDb,
+
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt',1,NULL)) AS igazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan',1,NULL)) AS igazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan',perc,NULL)) AS kesesPercOsszeg,
+
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt' AND tankorTipus.jelleg='gyakorlat',1,NULL)) AS gyakorlatIgazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan' AND tankorTipus.jelleg='gyakorlat',1,NULL)) AS gyakorlatIgazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan' AND tankorTipus.jelleg='gyakorlat',perc,NULL)) AS gyakorlatKesesPercOsszeg,
+
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolt' AND tankorTipus.jelleg='elmélet',1,NULL)) AS elmeletIgazolt,
+ COUNT(IF(tipus='hianyzas' AND statusz='igazolatlan' AND tankorTipus.jelleg='elmélet',1,NULL)) AS elmeletIgazolatlan,
+ SUM(IF(tipus='késés' AND statusz='igazolatlan' AND tankorTipus.jelleg='elmélet',perc,NULL)) AS elmeletKesesPercOsszeg
+
+ FROM `%s`.hianyzas ".$Wnemszamit['join']."
+ WHERE (
+ tipus = 'hiányzás' OR (tipus='késés' AND statusz='igazolatlan' AND perc IS NOT NULL)
+ ) AND dt<='%s' AND diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")
+ ".$Wnemszamit['nemszamit']."
+ GROUP BY diakId";
+ array_unshift($diakIds, tanevDbNev(__INTEZMENY, $szemeszterAdat['tanev']), $szemeszterAdat['zarasDt']);
+ $ret = db_query($q, array(
+ 'fv' => 'getDiakHianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'diakId', 'values' => $diakIds
+ ));
+
+ //++ Hozott hiányzások a tanévben
+ foreach ($ret as $diakId => $dAdat) {
+ $ret[$diakId]['igazolatlan'] += intval($_hozott[$diakId]['igazolatlan']['db']);
+ $ret[$diakId]['igazolt'] += intval($_hozott[$diakId]['igazolt']['db']);
+ }
+ } elseif ($szemeszterAdat['statusz'] != 'tervezett') {
+ // lezárt vagy archív tanév - az intézmény adatbázisból kérdezünk le - nincs $Wnemszamit!! se tankortipusid... :(
+ $q = "SELECT * FROM hianyzasOsszesites
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") AND tanev=%u AND szemeszter=%u
+ ";
+
+ array_push($diakIds, $szemeszterAdat['tanev'], $szemeszterAdat['szemeszter']);
+ $ret = db_query($q, array(
+ 'fv' => 'getDiakHianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'diakId', 'values' => $diakIds
+
+ ));
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_dara:tervezett tanév hiányzás összesítése:getDiakHianyzasOsszesites';
+ }
+ } else {
+ // A diák összes hiányzási adata ?????????????????????????????????????????? BIZTOS KELL MÉG EZZZZ?????????????????
+ // !!!!!!!!!!!!!!!!!
+ $q = "SELECT * FROM hianyzasOsszesites WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") ORDER BY tanev,szemeszter";
+ $r = db_query($q, array('fv' => 'getDiakHianyzasOsszesites', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $diakIds));
+ for ($i = 0; $i < count($r); $i++) $ret[ $r[$i]['tanev'] ][ $r[$i]['szemeszter'] ][ $r[$i]['diakId'] ] = $r[$i];
+ }
+ return $ret;
+
+ }
+
+ function getIgazolasTipusLista() {
+
+ global $lang;
+
+ if (file_exists("lang/$lang/module-naplo/share/hianyzas.php")) {
+ require_once("lang/$lang/module-naplo/share/hianyzas.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/module-naplo/share/hianyzas.php')) {
+ require_once('lang/'._DEFAULT_LANG.'/module-naplo/share/hianyzas.php');
+ }
+
+ $igazolasTipusok['lista'] = getEnumField('naplo', 'hianyzas', 'igazolas');
+ foreach ($igazolasTipusok['lista'] as $index => $tipus) {
+ $const = '_'.str_replace(' ', '_', nagybetus(ekezettelen($tipus)));
+ if (defined($const)) $igazolasTipusok[$tipus] = constant($const);
+ elseif ($tipus != '') {
+ $igazolasTipusok[$tipus] = $tipus;
+ $_SESSION['alert'][]= 'message:wrong_data:hiányzó nyelvi konstans:'.$tipus.':getIgazolasTipusLista';
+ }
+ }
+ return $igazolasTipusok;
+ }
+
+ function getHianyzasByOraId($oraId, $SET = array('csakId' => false)) {
+
+ if ($SET['csakId'] === true) {
+ $q = "SELECT hianyzasId FROM hianyzas WHERE oraId=%u";
+ $RES = db_query($q, array('fv' => 'getHianyzasByOraId', 'modul' => 'naplo', 'result' => 'idonly', 'values' => array($oraId)));
+ } else {
+ $q = "SELECT * FROM hianyzas WHERE oraId=%u";
+ $RES = db_query($q,array('fv'=>'getHianyzasByOraId', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($oraId)));
+ }
+ return $RES;
+ }
+
+ function getHianyzasByDiakIds($diakIds, $SET = array('tolDt' => null, 'igDt' => null, 'result' => 'indexed', 'keyfield' => null)) {
+
+ if (!is_array($diakIds) || count($diakIds) == 0) return false;
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed','multiassoc'));
+ if ($result == 'multiassoc') $keyfield = readVariable($SET['keyfield'], 'enum', 'tankorId', array('tankorId', 'diakId', 'ora', 'oraId'));
+ $tolDt = readVariable($SET['tolDt'], 'date');
+ $igDt = readVariable($SET['igDt'], 'date');
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+
+ $q = "SELECT *,hianyzas.tipus as hTipus FROM hianyzas LEFT JOIN ora USING (oraId,dt,ora)
+ WHERE '%s' <= dt AND dt <= '%s' AND diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")
+ ORDER BY ora,tankorId";
+ array_unshift($diakIds, $tolDt, $igDt);
+ $ret = db_query($q, array('fv' => 'getHianyzasByDiakIds', 'modul' => 'naplo', 'result' => $result, 'keyfield' => $keyfield, 'values' => $diakIds));
+
+ return $ret;
+
+ }
+
+ function getOraIdByHianyzasId($hianyzasId, $olr = null) {
+
+ $q = "SELECT oraId FROM hianyzas WHERE hianyzasId=%u";
+ return db_query($q, array('fv' => 'getOraIdByHianyzasId', 'modul' => 'naplo', 'result' => 'value', 'values' => array($hianyzasId)),$olr);
+ }
+
+ function getHianyzasByDt($DIAKIDK, $DTK, $SET = array('result' => '')) {
+ if(!is_array($DIAKIDK) || count($DIAKIDK) == 0) return false;
+ if (!is_array($DTK))
+ if ($DTK=='') return false;
+ else $DTK = array($DTK);
+ $v = mayor_array_join($DTK, $DIAKIDK);
+ if ($SET['csakId']!==true) {
+ $q = "SELECT * FROM hianyzas WHERE dt IN ('".implode("','", array_fill(0, count($DTK), '%s'))."')
+ AND diakId IN (".implode(',',array_fill(0, count($DIAKIDK), '%u')).") ORDER BY dt,ora";
+ $R = db_query($q,array('fv' => 'getHianyzasByDt', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for ($j=0; $j<count($R); $j++) {
+ $RES[$R[$j]['diakId']][$R[$j]['dt']][$R[$j]['ora']][] = $R[$j];
+ }
+ } else {
+ $q = "SELECT hianyzasId FROM hianyzas WHERE dt IN ('".implode("','", array_fill(0, count($DTK), '%s'))."')
+ AND diakId IN (".implode(',',array_fill(0, count($DIAKIDK), '%u')).")";
+ $RES = db_query($q,array('fv' => 'getHianyzasByDt', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v));
+ }
+ return $RES;
+ }
+
+ function getHianyzasById($hianyzasId) {
+ if ($hianyzasId == '') return false;
+ $q = "SELECT * FROM hianyzas WHERE hianyzasId=%u";
+ return db_query($q, array('fv'=>'getHianyzasById', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($hianyzasId)));
+ }
+
+ function getDiakIgazolatlan($diakId) {
+
+ global $_TANEV;
+
+ $Wnemszamit = defWnemszamit();
+ $WHERE = "diakId=%u AND tipus IN ('hiányzás','késés') AND statusz='igazolatlan' AND '%s' <= dt AND dt<='%s'";
+ $q = "SELECT * FROM hianyzas ".$Wnemszamit['join']." WHERE $WHERE ".$Wnemszamit['nemszamit']." ORDER BY dt, ora";
+ $v = array($diakId, $_TANEV['kezdesDt'], $_TANEV['zarasDt']);
+ return db_query($q, array('fv' => 'getDiakIgazolatlan', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+ function getIgazolasSzam($diakId, $dt = '') {
+
+ global $_TANEV;
+ // ha dt adott, azt a napot ne számoljuk bele a napi! limit-be (hisz még beírhatok több hiányzást is!)
+ $RETURN = array();
+
+ $Wnemszamit = defWnemszamit();
+ // szemeszterenként
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+
+ $WHERE = "diakId=%u AND tipus='hiányzás' AND statusz='igazolt' AND '%s' <= dt AND dt<='%s'";
+ $v = array($diakId, $szAdat['kezdesDt'], $szAdat['zarasDt']);
+ if ($dt!='') {
+ $WHERE2 = " AND dt!='%s' ";
+ $v[] = $dt;
+ } else $WHERE2 = ''; // vajon az óráknál ez nem kell?
+
+ // napok
+ $q = "SELECT COUNT(DISTINCT dt) AS darab, igazolas FROM hianyzas ".$Wnemszamit['join']."WHERE $WHERE $WHERE2".$Wnemszamit['nemszamit']." GROUP BY igazolas";
+ $ret = db_query($q, array('fv' => 'getIgazolasSzam', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($ret); $i++) {
+ $RETURN['napok'][$szemeszter][ $ret[$i]['igazolas'] ] = $ret[$i]['darab'];
+ $RETURN['napok']['osszesen'][ $ret[$i]['igazolas'] ] += $ret[$i]['darab'];
+ }
+ // órák
+ $q = "SELECT COUNT(*) AS darab, igazolas FROM hianyzas ".$Wnemszamit['join']." WHERE $WHERE ".$Wnemszamit['nemszamit']." GROUP BY igazolas";
+ $ret = db_query($q, array('fv' => 'getIgazolasSzam', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($ret); $i++) {
+ $RETURN['orak'][$szemeszter][ $ret[$i]['igazolas'] ] = $ret[$i]['darab'];
+ $RETURN['orak']['osszesen'][ $ret[$i]['igazolas'] ] += $ret[$i]['darab'];
+ }
+ $RETURN['szemeszterek'][] = $szemeszter;
+ }
+ return $RETURN;
+ }
+
+ function legkorabbiIgazolhatoHianyzasVeg($osztalyId, $olr = '') {
+
+
+ if (!isset($osztalyId) || $osztalyId == '' || count($osztalyId)==0) {
+ $_SESSION['alert'][] = 'message:wrong_data:Nincs megadva osztály (legkorabbiIgazolhatoHianyzasVeg)';
+ // return false;
+ return _LEGKORABBI_IGAZOLHATO_HIANYZAS;
+ }
+
+ // _IGAZOLAS_BEIRAS_HATARIDO előtti első osztályfőnöki óra - vagy _LEGKORABBI_IGAZOLHATO_HIANYZAS
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ if (!is_array($osztalyId)) $osztalyId = array($osztalyId);
+
+ // Az osztályfőnöki tankör lekérdezése (!!! ez hibás, targyNev='osztályfőnöki' helyett a tárgy típus alapján kell! -- TODO
+ $q = "SELECT tankorId FROM ".__INTEZMENYDBNEV.".tankorOsztaly
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".targy USING (targyId)
+ WHERE targyNev='osztályfőnöki' AND osztalyId IN (".implode(',', array_fill(0, count($osztalyId), '%u')).")";
+ $ofoTankorId = db_query($q, array(
+ 'fv' => 'legkorabbiIgazolhatoHianyzasVeg', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $osztalyId
+ ), $lr);
+
+ // Legutóbbi osztályfőnöki óra dátuma - Jó ez? Több osztály esetén az egyikét adja meg... nem? Ennek így nincs is értelme...
+ if (is_array($ofoTankorId) && count($ofoTankorId)>0) {
+ $q = "SELECT dt FROM ".__TANEVDBNEV.".ora WHERE tankorId IN (".implode(',', array_fill(0, count($ofoTankorId), '%u')).")
+ AND dt<'"._IGAZOLAS_BEIRAS_HATARIDO."'
+ AND tipus NOT LIKE 'elmarad%%'
+ ORDER BY dt DESC LIMIT 1";
+ $ofoOraDt = db_query($q, array('fv' => 'legkorabbiIgazolhatoHianyzasVeg', 'modul' => 'naplo', 'result' => 'value', 'values' => $ofoTankorId));
+ } else {
+ $ofoOraDt = '';
+ }
+ if ($olr == '') db_close($lr);
+
+ if ($ofoOraDt != '' && strtotime($ofoOraDt) > strtotime(_LEGKORABBI_IGAZOLHATO_HIANYZAS)) {
+ return $ofoOraDt;
+ } else {
+ //$_SESSION['alert'][] = 'info:wrong_data:Nem volt még osztályfőnöki óra!';
+ return _LEGKORABBI_IGAZOLHATO_HIANYZAS;
+ }
+
+ }
+
+ function getNemIgazolhatoDt($diakId, $munkatervIds, $ofoOraDt = '', $olr = '') {
+
+ global $_TANEV;
+
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ if (!is_array($munkatervIds) || count($munkatervIds)==0) $munkatervIds = array(1); // a default
+
+ if ($ofoOraDt == '') {
+ // A diák osztályai
+ $q = "SELECT DISTINCT osztalyId FROM ".__INTEZMENYDBNEV.".osztalyDiak
+ WHERE diakId=%u AND beDt<='%s'
+ AND (kiDt IS NULL OR kiDt >= '%s')";
+ $v = array($diakId, $_TANEV['zarasDt'], $_TANEV['kezdesDt']);
+ $diakOsztalyId = db_query($q, array('fv' => 'getNemIgazolhatoDt-1', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $lr);
+ if (is_array($diakOsztalyId)) $ofoOraDt = legkorabbiIgazolhatoHianyzasVeg($diakOsztalyId, $lr); // ugye tudjuk, hogy ez nem feltétlenül az osztályfőnöki órát jelenti!
+ }
+
+ if ($ofoOraDt != '') {
+ // Hianyzott-e az ofő óra napján
+ $q = "SELECT COUNT(dt) FROM ".__TANEVDBNEV.".hianyzas
+ WHERE diakId = %u
+ AND tipus = 'hiányzás'
+ AND dt = '%s'";
+ $v = array($diakId, $ofoOraDt);
+ $num = db_query($q, array('fv' => 'getNemIgazolhatoDt-2', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $lr);
+ if ($num > 0) {
+ // Ha hiányzott, mikor volt előtte utoljára iskolában
+
+ // A tanuló hiányzásainak listája
+ // LEZÁRT TANÉVNÉL EZ PROBLÉMÁS!
+ $q = "CREATE TEMPORARY TABLE ".__INTEZMENYDBNEV.".tanulo_hianyzasai
+ SELECT DISTINCT dt FROM hianyzas
+ WHERE diakId = %u
+ AND tipus = 'hiányzás'";
+ $v = array($diakId);
+ $r = db_query($q, array('fv' => 'getNemIgazolhatoDt-3', 'modul' => 'naplo', 'values' => $v), $lr);
+ // első nem hiányzásos tanítási nap...
+ $q = "SELECT nap.dt
+ FROM nap LEFT JOIN ".__INTEZMENYDBNEV.".tanulo_hianyzasai USING (dt)
+ WHERE tanulo_hianyzasai.dt IS NULL
+ AND nap.dt < '%s'
+ AND nap.tipus IN ('tanítási nap','speciális tanítási nap')
+ AND munkatervId IN (".implode(',', array_fill(0, count($munkatervIds), '%u')).")
+ ORDER BY nap.dt DESC
+ LIMIT 1";
+ $v = mayor_array_join(array($ofoOraDt),$munkatervIds);
+ $r = db_query($q, array('fv' => 'getNemIgazolhatoDt-4', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if (count($r) > 0) {
+ // ha nem az első tanítási napig hiányzik...
+ $dt = $r[0]['dt'];
+ } else {
+ // ha az első tanítási napig hiányzik...
+ $dt = date('Y-m-d',strtotime('last day',strtotime($_TANEV['kezdesDt'])));
+ }
+
+ // Az ideiglenes táblák a kapcsolat zárásakor törlődnek!
+ // Meglevő kapcsolat használatakor azonban törölni kell.
+ if ($olr != '') db_query("DROP TABLE ".__INTEZMENYDBNEV.".tanulo_hianyzasai", array('fv' => 'getNemIgazolhatoDt-4', 'modul' => 'naplo'), $lr);
+
+ } else {
+ // Ha nem hiányzott, akkor az ofő óra napja előtti nap a keresett dt
+ $dt = date('Y-m-d',strtotime('last days',strtotime($ofoOraDt)));
+ }
+
+ } else { // ide be sem megyünk!
+ // Ha nem volt osztályfőnöki óra - vagy inkább legkorábbi igazolható hiányzás vég - azaz nincs osztály?
+ $dt = date('Y-m-d', strtotime('last days', strtotime($_TANEV['kezdesDt'])));
+ }
+
+ if ($olr == '' ) db_close($lr);
+
+ return $dt;
+
+ }
+
+ function getDiakHianyzasStat($diakId, $SET = array('tankorIds'=>null, 'tanev'=>__TANEV)) {
+ if (is_array($SET['tankorIds'])) $tankorIds = $SET['tankorIds'];
+ else
+ return false;
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY,$SET['tanev']);
+
+ $q = "SELECT tankorId,COUNT(*) AS db FROM `%s`.hianyzas LEFT JOIN `%s`.ora USING (oraId)
+ WHERE diakId=%u AND hianyzas.tipus='hiányzás' AND hianyzas.dt<=CURDATE() GROUP BY tankorId";
+ $v = array($tanevDbNev, $tanevDbNev, $diakId);
+ return db_query($q, array(
+ 'fv' => 'getDiakHianyzasStat', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $v
+ ));
+
+ }
+
+ function _relevance($x,$base) {
+ return ($x<20) ? ($base-sqrt($x)/(sqrt(20)/(0+$base))) : 0; // a képlet normalizálható, de továbbfejleszés miatt ilyen formájú
+ }
+ function getDarabDiakHianyzas($dt='') {
+
+ if ($dt=='') $dt = date('Y-m-d');
+ //$q = "select count(*) AS db from (select diakId,count(*) AS db FROM hianyzas WHERE dt='%s' AND tipus LIKE 'hi_nyz_s' GROUP BY diakId HAVING db>2) AS stat";
+
+ /* Mai hiányzók száma (súlyozottan) */
+ $stamp1=strtotime($dt);
+ $stamp2=mktime(0,0,1,date('m'),date('d'),date('y'));
+ $relevance = floor( ($stamp2-$stamp1) / (3600*24) )+0;
+ $q = "select count(*) AS dbDiak, dbOra from (select diakId,count(*) AS dbOra FROM hianyzas WHERE dt='%s' AND tipus = 'hiányzás' GROUP BY diakId) AS stat GROUP BY dbOra";
+ $v = array($dt);
+ $R = db_query($q, array('fv' => 'getDarabDiakHianyzas', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield'=>'dbDiak', 'values' => $v));
+ $hianyzo=0;
+ foreach ($R as $dbDiak => $D) {
+ if ($D['dbOra']==1) $hianyzo += _relevance($relevance,0.8)*$dbDiak;
+ elseif ($D['dbOra']<=2) $hianyzo += _relevance($relevance,0.95)*$dbDiak;
+ elseif ($D['dbOra']<=3) $hianyzo += _relevance($relevance,1)*$dbDiak;
+ else $hianyzo += $dbDiak;
+ }
+ $RESULT['hianyzokSulyozva'] = floor($hianyzo);
+ /* --- */
+ /* Mai hiányzók száma (súlyozottan) */
+ $q = "select count(*) AS dbDiak FROM (select diakId,count(*) AS dbOra FROM hianyzas WHERE dt='%s' AND tipus LIKE 'hiányzás' AND igazolas LIKE 'tanulmányi verseny' GROUP BY diakId) AS stat";
+ $v = array($dt);
+ $R = db_query($q, array('fv' => 'getDarabDiakHianyzas', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ $RESULT['hianyzokTanulmanyin'] = $R;
+ /* --- */
+ /* Az órák hány százalékán volt hiányzó */
+ if ($RESULT['hianyzokSulyozva']!=0) {
+ $q = "select FORMAT((select count( DISTINCT oraId ) FROM hianyzas WHERE tipus LIKE 'hi_nyz_s' AND dt='%s')*100/count(*),2) AS dbHianyzas FROM ora WHERE ora.tipus NOT IN ('elmarad','elmarad máskor') AND dt='%s'";
+ $v = array($dt,$dt);
+ $RESULT['oranHianyzasSzazalek'] = db_query($q, array('fv' => 'getDarabDiakHianyzas', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ } else {
+ $RESULT['oranHianyzasSzazalek'] = 0;
+ }
+ // ---
+
+ return $RESULT;
+ }
+
+ function getDiakHozottHianyzas($diakId=null,$SET = array('tanev'=>__TANEV, 'igDt'=>null)) { // tanév-et nem vesszük figyelembe
+ $RESULT = false;
+ if (isset($diakId) && is_numeric($diakId))
+ {
+ $tanev = (isset($SET['tanev']) && $SET['tanev']!=__TANEV) ? $SET['tanev'] : __TANEV;
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ $v = array($diakId);
+ if (isset($SET['igDt'])) {
+ $W = " AND dt<='%s'";
+ $v[] = $SET['igDt'];
+ }
+
+ $q = "SELECT * FROM `$tanevDbNev`.`hianyzasHozott` WHERE diakId=%u".$W." GROUP BY statusz";
+ $R = db_query($q, array('fv'=>'getDiakHozottHianyzas','modul'=>'naplo','result'=>'indexed','values'=>$v));
+ /* ReIndex */
+ for ($i=0; $i<count($R); $i++) {
+ if ($R[$i]['dbHianyzas']>0) { // igen, SQL - ben is lehetne összeadni, a továbbfejlesztés miatt van így.
+// $_felev = getFelevByDt($R[$i]['dt']);
+// $RESULT[$_felev][$R[$i]['statusz']] += $R[$i]['dbHianyzas'];
+// if ($_felev==1) $RESULT[($_felev+1)][$R[$i]['statusz']] += $R[$i]['dbHianyzas']; //+1 ? inkább a szemeszter vég dátuma előttieket kéne összeadni azt csókolom...
+ $RESULT[$R[$i]['statusz']]['db'] += $R[$i]['dbHianyzas'];
+ }
+ }
+
+ }
+ return $RESULT;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/hianyzasModifier.php b/mayor-orig/www/include/modules/naplo/share/hianyzasModifier.php
new file mode 100644
index 00000000..d45e8bc2
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/hianyzasModifier.php
@@ -0,0 +1,363 @@
+<?php
+
+ function hianyzasPercUpdate($PERCEK) {
+ if (count($PERCEK)>0) {
+ $lr = db_connect('naplo', array('fv' => 'hianyzasPercUpdate'));
+ foreach($PERCEK as $_hid=>$_perc) {
+ if (__TANAR===true || __NAPLOADMIN===true) { // ennél szűkebb feltételek is szabhatók!
+ $v = array($_perc, $_hid);
+ /* csak az módosítsa, akinek ... */
+ $W = '';
+ if (__HIANYZASTOROLHETO!==true) {
+ if (__NAPLOADMIN===false && is_numeric(__USERTANARID)) {
+ $W = " AND rogzitoTanarId = %u ";
+ $v = mayor_array_join($v,array(__USERTANARID));
+ }
+ }
+ $q = "UPDATE hianyzas SET perc=%u, modositasDt=NOW() WHERE hianyzasId=%u ".$W;
+ db_query($q, array('fv' => 'hianyzasIgazolas', 'modul' => 'naplo', 'values' => $v), $lr);
+ } else {
+ $_SESSION['alert'][] = 'info:not_allowed';
+ }
+ }
+ db_close($lr);
+ }
+ }
+
+ function hianyzasTorles($TORLENDOIDK, $tanev = __TANEV, $olr='') {
+
+ if (!isset($tanev))
+ if (defined('__TANEV')) $tanev = __TANEV;
+ else return false;
+
+ $lr = ($olr!='') ? $olr : db_connect('naplo_intezmeny');
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ if (!is_array($TORLENDOIDK) && $TORLENDOIDK!='')
+ $TORLENDOIDK[] = $TORLENDOIDK;
+
+ if (is_array($TORLENDOIDK) && count($TORLENDOIDK)>0) {
+
+ $v = mayor_array_join(array($tanevDb), $TORLENDOIDK);
+
+ /* Itt ellenőrizhetjük hogy csak azt töröljük amit tényleg kell */
+ $W = '';
+ if (__HIANYZASTOROLHETO!==true) {
+ // __VEZETOSEG_TOROLHET_HIANYZAST, ha például tankörnévsort módosít...
+ if (__NAPLOADMIN===false && __VEZETOSEG_TOROLHET_HIANYZAST!==true && is_numeric(__USERTANARID)) {
+ $W = " AND rogzitoTanarId = %u ";
+ $v = mayor_array_join($v,array(__USERTANARID));
+ }
+ }
+
+ $q = "SELECT * FROM `%s`.hianyzas WHERE hianyzasId IN (".implode(',', array_fill(0, count($TORLENDOIDK), '%u')).")". $W;
+ $r = db_query($q, array('fv' => 'hianyzasTorles', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ for ($i = 0; $i < count($r); $i++)
+ logAction(
+ array(
+ 'szoveg'=>'del:'.implode(',',$r[$i]),
+ 'table'=>'hianyzas'
+ )
+ );
+
+ $q = "DELETE FROM `%s`.hianyzas WHERE hianyzasId IN (".implode(',', array_fill(0, count($TORLENDOIDK),'%u')).")". $W;
+ $r = db_query($q, array('fv' => 'hianyzasTorles', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ } else { $r = true; /* Nincs mit törölni */ }
+
+ if ($olr=='') db_close($lr);
+ return $r;
+ }
+
+ function hianyzasRegisztralas($ORAADAT,$BEIR) {
+
+ $REPL = $INS = array();
+ $oraId = $ORAADAT['oraId'];
+ $dt = $ORAADAT['dt'];
+ $ora = $ORAADAT['ora'];
+// $rogzitoTanarStr = (__NAPLOADMIN===false && is_numeric(__USERTANARID)) ? __USERTANARID : 'null'; // null string az sql-nek!
+// Miért ne rögzítsük a naplóadmin esetén a tanárId-t, ha van neki? Ahogy a Vezetőség esetén is rögzítjük...
+ $rogzitoTanarStr = (is_numeric(__USERTANARID)) ? __USERTANARID : 'null'; // null string az sql-nek!
+
+ for($i=0; $i<count($BEIR); $i++) {
+ if ($BEIR[$i]['id']!='') $REPL[] = $BEIR[$i];
+ else $INS[] = $BEIR[$i];
+ }
+
+ $lr = db_connect('naplo');
+ for ($i=0; $i<count($INS); $i++) {
+ if ($INS[$i]['perc']=='') $INS[$i]['perc'] = 'NULL';
+ if ($INS[$i]['statusz']=='') $INS[$i]['statusz'] = 'igazolatlan';
+ if ($INS[$i]['ora']!='') $ora=$INS[$i]['ora'];
+ if ($INS[$i]['oraId']!='') $oraId=$INS[$i]['oraId'];
+ if ($INS[$i]['dt']!='') $dt=$INS[$i]['dt'];
+ //if ($INS[$i]['tankorTipus']=='') $INS[$i]['tankorTipus'] = 'NULL';
+ $diakId = $INS[$i]['diakId'];
+ /* ELLENŐRIZZÜK ITT */
+ if ($diakId!='' && $oraId!='') {
+ /* Jogviszony ellenőrzés */
+ $diakJogviszony = getDiakJogviszonyByDts(array($diakId),array($dt));
+ if (!in_array($diakJogviszony[$diakId][$dt]['statusz'], array('vendégtanuló','jogviszonyban van','magántanuló'))
+ ) {
+ $_SESSION['alert'][] = 'info:diakJogviszony:'.$diakId.':'.$diakJogviszony[$diakId][$dt]['statusz'].':'.$dt;
+ continue;
+ }
+ if ( in_array($INS[$i]['tipus'], array('felszerelés hiány','felmentés','egyenruha hiány'))) $_jogTipus = 'fbeirhato';
+ else $_jogTipus = 'beirhato';
+ if (getHianyzasJogosultsagSimple($oraId, $diakId, $INS[$i]['igazolas'], $INS[$i]['statusz'], $_jogTipus, $lr)) {
+ // lekérdezzük az óra tenkörének típusát
+ $q = "SELECT * FROM `ora` WHERE `oraId` = %u";
+ $_ORAADAT = db_query($q, array('fv'=>'hianyzasRegisztralas', 'modul'=>'naplo', 'result'=>'record', 'values' => array($oraId)), $lr);
+ $tankorId = $_ORAADAT['tankorId'];
+ $rogzitesIdoben = ((strtotime($_ORAADAT['dt']) >= strtotime(_HIANYZAS_HATARIDO)) ? 1:0); //--FIXME
+ // ezzel nem veszünk részt a tranzakcióban - intézményi db
+ //$q = "SELECT `tankorTipusId` FROM `tankor` WHERE `tankorId` = %u";
+ //$tankorTipusId = db_query($q, array('fv'=>'hianyzasRegisztralas', 'modul'=>'naplo_intezmeny', 'result'=>'value', 'values' => array($tankorId)));
+ $q = "SELECT `tankorTipusId`,`tankorTipus`.`jelleg` FROM `tankor` LEFT JOIN `tankorTipus` USING (`tankorTipusId`) WHERE `tankorId` = %u";
+ $TANKORADAT = db_query($q, array('fv'=>'hianyzasRegisztralas', 'modul'=>'naplo_intezmeny', 'result'=>'record', 'values' => array($tankorId)));
+ $tankorTipusId=$TANKORADAT['tankorTipusId'];
+ $tankorJelleg=$TANKORADAT['jelleg'];
+ if ($tankorJelleg!='gyakorlat' && $diakJogviszony[$diakId][$dt]['statusz'] == 'magántanuló') {
+ $_SESSION['alert'][] = 'info:diakJogviszony:'.$diakId.':'.$diakJogviszony[$diakId][$dt]['statusz'].':'.$dt;
+ continue;
+ }
+ //
+ if ($INS[$i]['statusz']=='igazolatlan') $INS[$i]['igazolas']='';
+
+ // Plusz ellenőrzés: ha hiányzást vagy késést írnánk be, a párjuk meglétekor ezt elutasítjuk
+ // Ilyen eset akkor állhat elő, ha pl nem az írta be a hiányzást, aki módosítani próbálja késésre (ekkor ugyanis nem törlődnek előtte a megfelelő bejegyzések)
+ if (in_array($INS[$i]['tipus'],array('hiányzás','késés'))) {
+ $q = "SELECT count(hianyzasId) AS db FROM hianyzas WHERE diakId=%u AND oraId=%u AND tipus IN ('hiányzás','késés')";
+ $v = array($INS[$i]['diakId'], $oraId, $INS[$i]['tipus']);
+ $db = db_query($q, array('fv' => 'hianyzasRegisztralas/check', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $lr);
+ }
+ if ($db==0) {
+ $q = "INSERT INTO hianyzas (diakId,oraid,dt,ora,perc,tipus,statusz,igazolas,tankorTipusId,rogzitoTanarId,rogzitesIdoben,modositasDt)
+ VALUES (%u, %u, '%s', %u, %u, '%s', '%s', '%s', %u, %s, %u, NOW())";
+ $v = array($INS[$i]['diakId'], $oraId, $dt , $ora, $INS[$i]['perc'], $INS[$i]['tipus'], $INS[$i]['statusz'], $INS[$i]['igazolas'], $tankorTipusId, $rogzitoTanarStr, $rogzitesIdoben);
+ $ins = db_query($q, array('fv' => 'hianyzasRegisztralas', 'modul' => 'naplo', 'result' => 'insert', 'values' => $v), $lr);
+ logAction(
+ array(
+ 'szoveg'=>'ins:'.$ins.':'.$INS[$i]['diakId'].",$oraId,$dt,$ora,".$INS[$i]['perc'].",".$INS[$i]['tipus'].",".$INS[$i]['statusz'].",".$INS[$i]['igazolas'],
+ 'table'=>'hianyzas'
+ ),
+ $lr
+ );
+ } else {
+ $_SESSION['alert'][] = 'info:wrong_data:Ez a mulasztás nem módosítható';
+ }
+ } else {
+ // a hibaüzenetet a keletkezésének helyén generáljuk (simple függvényben)
+ }
+ } else {
+ if ($diakId=='') $_SESSION['alert'][] = '::(hianyzasRegisztralas), nincs diak azonosito!';
+ if ($oraId=='') $_SESSION['alert'][] = '::(hianyzasRegisztralas), nincs ora azonosito!';
+ }
+ }
+ db_close($lr);
+
+ }
+
+
+ function hianyzasIgazolas($IGAZOLANDOK,$diakId='') {
+
+/*
+ if ($diakId=='') {
+ $_SESSION['alert'][] = '::Ismeretlen diák azonosító!('.$diakId.')';
+ return false;
+ }
+*/
+
+ if (count($IGAZOLANDOK)>0) {
+ $lr = db_connect('naplo');
+ for ($i=0; $i<count($IGAZOLANDOK); $i++) {
+ $_I = $IGAZOLANDOK[$i];
+ // figyelem, itt le kell kérdezni a hiányzás adatait: diakId, oraId!!!
+ if ($_I['oraId']=='')
+ $oraId = getOraIdByHianyzasId($_I['id'], $lr);
+ else
+ $oraId = $_I['oraId'];
+ if ($_I['diakId']!='') $diakId=$_I['diakId'];
+
+ if ($diakId!='' && $oraId!='') {
+ if (getHianyzasJogosultsagSimple($oraId,$diakId,$_I['igazolas'],$_I['statusz'],'igazolhato',$lr)) {
+ if ($_I['statusz']=='igazolatlan') $_I['igazolas']='';
+ $q = "UPDATE hianyzas SET statusz='%s', igazolas='%s' WHERE hianyzasId=%u";
+ $v = array($_I['statusz'], $_I['igazolas'], $_I['id']);
+ db_query($q,array('fv' => 'hianyzasIgazolas', 'modul' => 'naplo', 'values' => $v),$lr);
+ logAction(
+ array(
+ 'szoveg'=>'update:'.$_I['id'].':'.$_I['statusz'].','.$_I['igazolas'],
+ 'table'=>'hianyzas'
+ ),
+ $lr
+ );
+ } else {
+ //$_SESSION['alert'][] = '::Ez a típus elfogyott ('.$_I['igazolas'].')'.$oraId.'.'.$diakId.$_I['statusz'];
+ }
+ } else {
+ if ($diakId=='') $_SESSION['alert'][] = '::(hianyzasIgazolas), nincs diak azonosito!';
+ if ($oraId=='') $_SESSION['alert'][] = '::(hianyzasIgazolas), nincs ora azonosito!';
+ }
+ }
+ db_close($lr);
+ }
+
+ }
+
+
+ function getHianyzasJogosultsagSimple($oraId,$diakId,$igazolasTipus,$igazolasStatusz,$jogTipus, $olr='') { //$igTipus == SQL"igazolas"
+
+ global $_TANEV;
+
+ $lr = ($olr=='') ? db_connect('naplo') : $olr;
+
+ $ORA = getOraAdatById($oraId, __TANEV, $lr); // a fv kapott tanev paramétert. default: __TANEV
+ $JOG = getHianyzasJogosultsag(array($ORA), array('idk'=>array($diakId)));
+ $oraElmaradt = in_array($ORA['tipus'],array('elmarad','elmarad máskor'));
+
+ if ($lr=='') db_close($lr);
+ //$_SESSION['alert'][] = '::DEBUG:'.in_array($igazolasTipus, $JOG[$diakId]['igazolas']['tipusok']);
+ //if ($JOG[$diakId]['orak'][$ORA['ora']]['beirhato'|'fbeirhato'|'igazolhato']
+ if ($JOG[$diakId]['orak'][$ORA['ora']][$jogTipus]===false)
+ $_SESSION['alert'][] = '::Nem '.$jogTipus;
+ elseif ($igazolasStatusz != 'igazolatlan' && !@in_array($igazolasTipus, $JOG[$diakId]['igazolas']['tipusok']))
+ $_SESSION['alert'][] = 'info:tipus_elfogyott:'.$igazolasTipus;
+ elseif ($_TANEV['statusz']!='aktív')
+ $_SESSION['alert'][] = 'info:nem_aktív_tanev';
+ elseif ( !isset($JOG[$diakId]['orak'][$ORA['ora']][$jogTipus]) )
+ $_SESSION['alert'][] = 'info::debug##4';
+
+ return ($_TANEV['statusz']=='aktív' && $JOG[$diakId]['orak'][$ORA['ora']][$jogTipus] && $oraElmaradt===false &&
+ ($igazolasStatusz == 'igazolatlan' ||
+ @in_array($igazolasTipus, $JOG[$diakId]['igazolas']['tipusok'])));
+ }
+
+ function getHianyzasJogosultsag($ORAK, $NEVSOR) {
+ global $_OSZTALYA,$_TANEV;
+ $DIAKIDK = $NEVSOR['idk'];
+ $DIAKOSZTALYAI = getDiakokOsztalyai($DIAKIDK);
+
+ for ($i=0;$i<count($DIAKIDK);$i++) {
+ $diakId = $DIAKIDK[$i];
+ $munkatervId = getMunkatervByOsztalyId($DIAKOSZTALYAI[$diakId]);
+ $nemTimeStamp = strtotime( getNemigazolhatoDt($diakId, $munkatervId) );
+ for($j=0; $j<count($ORAK); $j++) {
+ $ORAADAT = $ORAK[$j];
+ $ora = $ORAADAT['ora'];
+ $jog = array('fbeirhato'=>false, 'beirhato' => false, 'igazolhato' => false);
+
+ if ($_TANEV['statusz']=='aktív') {
+
+ if ($ORAADAT['ki'] == __USERTANARID) {
+ if ( !in_array($ORAADAT['tipus'], array('elmarad' , 'elmarad máskor')) ) {
+ if ( strtotime($ORAADAT['dt']) >= strtotime(_HIANYZAS_HATARIDO) )
+ $jog['beirhato'] = true;
+ if ( strtotime($ORAADAT['dt']) >= strtotime(_LEGKORABBAN_IGAZOLHATO_HIANYZAS) )
+ $jog['fbeirhato'] = true;
+ }
+ }
+
+ if (
+ is_array($DIAKOSZTALYAI[$diakId]) &&
+ is_array($_OSZTALYA) &&
+ ($diakOfoje = (is_array($_OSZTALYA) && count(array_intersect($DIAKOSZTALYAI[$diakId],$_OSZTALYA)) > 0))
+ ) {
+ if ( !in_array($ORAADAT['tipus'], array('elmarad' , 'elmarad máskor')) ) {
+ if ( strtotime($ORAADAT['dt']) >= strtotime(_OFO_HIANYZAS_HATARIDO) )
+ $jog['beirhato'] = true;
+ if ( strtotime($ORAADAT['dt']) > $nemTimeStamp )
+ $jog['igazolhato'] = true;
+ }
+ }
+
+ if (__NAPLOADMIN || __VEZETOSEG) {
+ if ( strtotime($ORAADAT['dt']) >= strtotime(_ZARAS_HATARIDO) )
+ $jog = array('fbeirhato'=>true, 'beirhato' => true, 'igazolhato' => true);
+ }
+
+ }
+
+ $JOGOSULTSAG[$diakId]['orak'][$ora] = $jog;
+ } // end of diakidk
+ } // end of orak
+
+ /* */
+ $felev = getFelevByDt($ORAK[0]['dt']);
+ if ($felev=='') return false;
+
+ for ($i=0;$i<count($DIAKIDK);$i++) {
+
+ $diakId = $DIAKIDK[$i];
+
+ // Van-e olyan ora amihez kellenek az adatok?
+ $global_acc = false;
+ for($j=0; $j<count($ORAK); $j++) {
+ if ($JOGOSULTSAG[$diakId]['orak'][$ORAK[$j]['ora']]['igazolhato']) {
+ $global_acc=true; break;
+ }
+ }
+
+ // Ha van, kerdezzuk le...
+ if ($global_acc) {
+ $_IGAZOLAS = getIgazolasSzam($diakId,$ORAK[0]['dt']);
+
+ $IG = array();
+ {
+ $IG[] = 'orvosi';
+ if (
+ (__SZULOI_IGAZOLAS_EVRE == 0 or __SZULOI_IGAZOLAS_EVRE > intval($_IGAZOLAS['napok']['osszesen']['szülői'])) and
+ (__SZULOI_IGAZOLAS_FELEVRE == 0 or __SZULOI_IGAZOLAS_FELEVRE > intval($_IGAZOLAS['napok'][$felev]['szülői'])) and
+ (__SZULOI_ORA_IGAZOLAS_EVRE ==0 or __SZULOI_ORA_IGAZOLAS_EVRE > intval($_IGAZOLAS['orak']['osszesen']['szülői'])) and
+ (__SZULOI_ORA_IGAZOLAS_FELEVRE ==0 or __SZULOI_ORA_IGAZOLAS_FELEVRE > intval($_IGAZOLAS['orak'][$felev]['szülői']))
+ ) {
+ $IG[] = 'szülői';
+ }
+ $IG[] = 'tanulmányi verseny';
+ $IG[] = 'nyelvvizsga';
+ if (
+ (__NAPLOADMIN || $diakOfoje) && // !__VEZETOSEG && - ez nem jó, ha vezetőségi tag ofő is egyben
+ (__OSZTALYFONOKI_IGAZOLAS_EVRE == 0 or __OSZTALYFONOKI_IGAZOLAS_EVRE > intval($_IGAZOLAS['napok']['osszesen']['osztályfőnöki'])) and
+ (__OSZTALYFONOKI_IGAZOLAS_FELEVRE == 0 or __OSZTALYFONOKI_IGAZOLAS_FELEVRE > intval($_IGAZOLAS ['napok'][$felev]['osztályfőnöki'])) and
+ (__OSZTALYFONOKI_ORA_IGAZOLAS_EVRE ==0 or __OSZTALYFONOKI_ORA_IGAZOLAS_EVRE > intval($_IGAZOLAS ['orak']['osszesen']['osztályfőnöki'])) and
+ (__OSZTALYFONOKI_ORA_IGAZOLAS_FELEVRE ==0 or __OSZTALYFONOKI_ORA_IGAZOLAS_FELEVRE > intval($_IGAZOLAS ['orak'][$felev]['osztályfőnöki']))
+ ) {
+ $IG[] = 'osztályfőnöki';
+ }
+ }
+ if (__VEZETOSEG || __NAPLOADMIN) {
+ $IG[] = 'igazgatói';
+ }
+ $IG[] = 'hatósági';
+ $IG[] = 'pályaválasztás';
+ $JOGOSULTSAG[$diakId]['igazolas']['tipusok'] = $IG;
+ $JOGOSULTSAG[$diakId]['igazolas']['szamok'] = $_IGAZOLAS;
+ }
+ }
+
+ return $JOGOSULTSAG;
+ }
+
+ function hianyzasTankorTipusValtas($tankorId,$tankorTipusId,$SET = array('tanev'=>null)) {
+
+ if (!isset($SET['tanev'])) return false;
+ $TANEV = getTanevAdat($SET['tanev']);
+ if ($TANEV['statusz']!='aktív') return false;
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $SET['tanev']);
+
+ $q = "SELECT count(*) AS db FROM `%s`.hianyzas LEFT JOIN `%s`.ora USING(oraId) WHERE tankorTipusId!=%u AND tankorId=%u";
+ $v = array($tanevDbNev,$tanevDbNev,$tankorTipusId,$tankorId);
+ $affected = db_query($q, array('debug'=>false,'modul'=>'naplo','values'=>$v,'result'=>'value'));
+
+ $q = "UPDATE `%s`.hianyzas LEFT JOIN `%s`.ora USING(oraId) SET tankorTipusId=%u WHERE tankorId=%u";
+ $v = array($tanevDbNev,$tanevDbNev,$tankorTipusId,$tankorId);
+ db_query($q, array('debug'=>false,'modul'=>'naplo','values'=>$v));
+
+ return $affected; // sajnos af affected rows DEPRECATED lett
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/hirnok.php b/mayor-orig/www/include/modules/naplo/share/hirnok.php
new file mode 100644
index 00000000..3e845c79
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/hirnok.php
@@ -0,0 +1,353 @@
+<?php
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+
+ require_once('include/modules/naplo/uzeno/uzeno.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+
+ function hirnokWrapper($SET) {
+ global $_TANEV;
+ $RESULT = array();
+ if (isset($SET['diakId']) && !is_array($SET['diakId'])) $SET['diakId'] = array(0=>$SET['diakId']);
+ if (isset($SET['tanarId']) && !is_array($SET['tanarId'])) $SET['tanarId'] = array(0=>$SET['tanarId']);
+ // if (strtotime($SET['tolDt'])>strtotime(date('Y-m-d'))) $SET['tolDt'] = date('Y-m-d H:i:s');
+ if (isset($SET['diakId']) && is_array($SET['diakId'])) {
+ for ($i=0;$i<count($SET['diakId']); $i++) {
+ $_diakId= $SET['diakId'][$i];
+ if ($SET['tolDtByUser']['diak'][$_diakId]!='') {
+ $_tolDt = $SET['tolDtByUser']['diak'][$_diakId];
+ } elseif ($SET['tolDt']!='') {
+ $_tolDt = $SET['tolDt'];
+ } else {
+ $_tolDt = $_TANEV['kezdesDt'].' 08:00:00';
+ }
+ $SUBSET = array('tolDt'=>$_tolDt,'diakId'=>$_diakId);
+ $RESULT[] = array(
+ 'hirnokFolyamAdatok' => array(
+ 'id'=>$_diakId,
+ 'tipus'=>'diak',
+ 'cn'=>getDiakNevById($_diakId),
+ 'adat'=>getDiakAdatById($_diakId)
+ ),
+ 'hirnokFolyamUzenetek' => getHirnokFolyam($SUBSET)
+ );
+ }
+ }
+ if (isset($SET['tanarId']) && is_array($SET['tanarId'])) {
+ for ($i=0;$i<count($SET['tanarId']); $i++) {
+ $_tanarId= $SET['tanarId'][$i];
+ if ($SET['tolDtByUser']['tanar'][$_tanarId]!='') {
+ $_tolDt = $SET['tolDtByUser']['tanar'][$_tanarId];
+ } elseif ($SET['tolDt']!='') {
+ $_tolDt = $SET['tolDt'];
+ } else {
+ $_tolDt = $_TANEV['kezdesDt'].' 08:00:00';
+ }
+ $SUBSET = array('tolDt'=>$_tolDt,'tanarId'=>$_tanarId);
+ $RESULT[] = array(
+ 'hirnokFolyamAdatok' => array(
+ 'id'=>$_tanarId,
+ 'tipus'=>'tanar',
+ 'cn'=>getTanarNevById($_tanarId),
+ 'adat'=>getTanarAdatById($_tanarId)
+ ),
+ 'hirnokFolyamUzenetek' => getHirnokFolyam($SUBSET)
+ );
+ }
+ }
+ return $RESULT;
+ }
+
+ function getHirnokFolyam($SET = array()) {
+
+ global $_TANEV;
+ $R = array();
+
+ $TARGYADAT = array();
+ $DIAKADAT = array();
+ $TANARADAT = array();
+ $TANKORADAT = array();
+ $ORAADAT = array();
+
+ if (__NAPLOADMIN===true) {
+ if ($SET['diakId']>0) $diakId=$SET['diakId'];
+ elseif ($SET['tanarId']>0) $tanarId=$SET['tanarId'];
+ elseif (__TANAR ===true) $tanarId = __USERTANARID;
+ } else {
+ if (__DIAK===true) { // diák nézet
+ $diakId = __USERDIAKID;
+ } elseif (__TANAR ===true) { // tanár nézet
+ $tanarId = __USERTANARID;
+ }
+ }
+
+ // tankörök lekérdezése
+ if (isset($diakId)) $TANKOROK = getTankorByDiakId($diakId, __TANEV);
+ // elseif (isset($osztalyId)) $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV);
+ elseif (isset($tanarId)) $TANKOROK = getTankorByTanarId($tanarId, __TANEV);
+
+ $tankorIds = array();
+ for ($i = 0; $i < count($TANKOROK); $i++) $tankorIds[] = $TANKOROK[$i]['tankorId'];
+ // DOLGOZATOK (leginkább a jövőben???)
+ if (is_array($tankorIds)) {
+ $_dolgozatok = getTankorDolgozatok($tankorIds, TRUE, $SET['tolDt'], $_TANEV['zarasDt']); // ennek a tömbnek a szerkezete elég fura...
+ for ($i=0; $i<count($_dolgozatok['dolgozatIds']); $i++) {
+ $r = $_dolgozatok[$_dolgozatok['dolgozatIds'][$i]];
+ if (strtotime($r['modositasDt'])>strtotime($SET['tolDt'])) {
+ $R[ strtotime($r['modositasDt']) ][] = array('hirnokTipus' => 'dolgozat',
+ 'dolgozatAdat' => $r
+ );
+ } else {
+ // dump( 'nem aktuális a változtatás, már láttuk' );
+ }
+ }
+ }
+
+ if (__DIAK===true || (__NAPLOADMIN===true && $diakId>0)) {
+ if (_OSZTALYZATOK_ELREJTESE !== true || time() > strtotime($_TANEV['szemeszter'][1]['zarasDt'])) { // --TODO
+ // új zárójegyek, osztályzatok (diák esetén)
+ $q = "SELECT * from zaroJegy WHERE diakId=%u AND modositasDt>='%s'";
+ $v = array($diakId,$SET['tolDt']);
+ $r = db_query($q, array('fv'=>'getHirnokFolyam/zaroJegy','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ // infók: diakId, targyId
+ if (!is_array($DIAKADAT[$r[$i]['diakId']])) $DIAKADAT[$r[$i]['diakId']] = getDiakAdatById($r[$i]['diakId']);
+ if (!is_array($TARGYADAT[$r[$i]['targyId']])) $TARGYADAT[$r[$i]['targyId']] = getTargyById($r[$i]['targyId']);
+ $R[strtotime($r[$i]['modositasDt'])][] = array('hirnokTipus'=>'zaroJegy',
+ 'zaroJegyAdat'=>$r[$i],
+ 'diakAdat' => $DIAKADAT[$r[$i]['diakId']],
+ 'targyAdat' => $TARGYADAT[$r[$i]['targyId']]
+ );
+ }
+ } // -- elrejtésmarhaság
+ // új jegyek (diák esetén)
+ $q = "SELECT * from jegy WHERE diakId=%u AND modositasDt>='%s'";
+ $v = array($diakId,$SET['tolDt']);
+ $r = db_query($q, array('fv'=>'getHirnokFolyam/jegy','modul'=>'naplo','result'=>'indexed','values'=>$v));
+ if (is_array($r))
+ for ($i=0; $i<count($r); $i++) {
+ // infók: diakId,tankorId,oraId,dolgozatId
+ if (!is_array($DIAKADAT[$r[$i]['diakId']])) $DIAKADAT[$r[$i]['diakId']] = getDiakAdatById($r[$i]['diakId']);
+ if (!is_array($TANKORADAT[$r[$i]['tankorId']])) $TANKORADAT[$r[$i]['tankorId']] = getTankorAdat($r[$i]['tankorId']);
+ $_targyId = $TANKORADAT[$r[$i]['tankorId']][$r[$i]['tankorId']][0]['targyId'];
+ if (!is_array($TARGYADAT[$r[$i]['targyId']])) $TARGYADAT[ $_targyId ] = getTargyById($_targyId);
+ if (!is_array($ORAADAT[$r[$i]['oraId']])) $ORAADAT[$r[$i]['oraId']] = getOraAdatById($r[$i]['oraId']);
+ if (!is_array($DOLGOZATADAT[$r[$i]['dolgozatId']])) $DOLGOZATADAT[$r[$i]['dolgozatId']] = getDolgozatAdat($r[$i]['dolgozatId']);
+ $R[strtotime($r[$i]['modositasDt'])][] = array('hirnokTipus'=>'jegy',
+ 'jegyAdat'=>$r[$i],
+ 'diakAdat' => $DIAKADAT[$r[$i]['diakId']],
+ 'tankorAdat' => $TANKORADAT[$r[$i]['tankorId']][$r[$i]['tankorId']], // 0-1 ELSŐ-MÁSODIK FÉLÉV ADATAI
+ 'targyAdat' => $TARGYADAT[$_targyId],
+ 'oraAdat' => $ORAADAT[$r[$i]['oraId']],
+ 'dolgozatAdat' => $DOLGOZATADAT[$r[$i]['dolgozatId']],
+ );
+ }
+
+ // bejegyzés
+ $q = "SELECT * from bejegyzes LEFT JOIN ".__INTEZMENYDBNEV.".bejegyzesTipus USING (bejegyzesTipusId)
+ WHERE diakId=%u AND beirasDt>='%s'";
+ $v = array($diakId,$SET['tolDt']);
+ $r = db_query($q, array('fv'=>'getHirnokFolyam/bejegyzes','modul'=>'naplo','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ // infók: diakId, targyId
+ if (!is_array($DIAKADAT[$r[$i]['diakId']])) $DIAKADAT[$r[$i]['diakId']] = getDiakAdatById($r[$i]['diakId']);
+ if (!is_array($TANARADAT[$r[$i]['tanarId']])) $TANARADAT[$r[$i]['tanarId']] = getTanarAdatById($r[$i]['tanarId']);
+ $R[strtotime($r[$i]['beirasDt'])][] = array('hirnokTipus'=>'bejegyzes',
+ 'bejegyzesAdat'=>$r[$i],
+ 'diakAdat' => $DIAKADAT[$r[$i]['diakId']],
+ 'tanarAdat' => $TANARADAT[$r[$i]['tanarId']][0],
+ );
+ }
+
+ // hiányzás
+ $q = "SELECT * from hianyzas WHERE diakId=%u AND modositasDt>='%s'";
+ $v = array($diakId,$SET['tolDt']);
+ $r = db_query($q, array('fv'=>'getHirnokFolyam/hianyzas','modul'=>'naplo','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ // infók: diakId, targyId
+ if (!is_array($DIAKADAT[$r[$i]['diakId']])) $DIAKADAT[$r[$i]['diakId']] = getDiakAdatById($r[$i]['diakId']);
+ if (!is_array($ORAADAT[$r[$i]['oraId']])) $ORAADAT[$r[$i]['oraId']] = getOraAdatById($r[$i]['oraId']);
+ $R[strtotime($r[$i]['modositasDt'])][] = array('hirnokTipus'=>'hianyzas',
+ 'hianyzasAdat'=>$r[$i],
+ 'diakAdat' => $DIAKADAT[$r[$i]['diakId']],
+ 'oraAdat' => $ORAADAT[$r[$i]['oraId']],
+ );
+ }
+
+ } // ha diák
+ if (__TANAR === true || (__NAPLOADMIN===true && $tanarId>0)) {
+ if (defined('__USERTANARID') && is_numeric(__USERTANARID)) {
+ $q = "SELECT COUNT(*) FROM ora WHERE ki=".__USERTANARID." AND dt <= CURDATE() AND (leiras IS NULL OR leiras='')";
+ $r = db_query($q, array('fv' => 'getBeirasiAdatok', 'modul' => 'naplo', 'result' => 'value'));
+ $R[mktime()][] = array(
+ 'hirnokTipus'=>'haladasiBeiratlan',
+ 'db'=>$r
+ );
+ $q = "select * from idoszak where NOW() BETWEEN tolDt AND igDt ORDER BY tolDt";
+ $r = db_query($q, array('fv' => 'getIdoszakAktiv', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'));
+ for ($i=0; $i<count($r); $i++) {
+ $R[mktime()][] = array(
+ 'hirnokTipus'=>'idoszak',
+ 'idoszakAdat'=>$r[$i]
+ );
+ }
+ }
+ if (count($tankorIds)>0) {
+ // haladási óra - helyettesítőknek!
+ $q = "SELECT *,getNev(ki,'tanar') AS kiCn,getNev(kit,'tanar') AS kitCn, getNev(tankorId,'tankor') AS tankorCn from ora WHERE tankorId NOT IN (".implode(',',$tankorIds).") AND ki=%u AND modositasDt>='%s'";
+ $v = array($tanarId,$SET['tolDt']);
+ $r = db_query($q, array('fv'=>'getHirnokFolyam/haladasi','modul'=>'naplo','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $R[strtotime($r[$i]['modositasDt'])][] = array('hirnokTipus'=>'haladasiOra',
+ 'oraAdat'=>$r[$i],
+ );
+ }
+ }
+ }
+ // timestamp szerint asszociatív
+ // $R[strtotime($SET['tolDt'])][] = array('cim' => 'ELSŐ', 'txt'=>$SET['tolDt']);
+
+ // haladási óra
+ if (count($tankorIds)>0) {
+ $q = "SELECT *,getNev(ki,'tanar') AS kiCn,getNev(kit,'tanar') AS kitCn, getNev(tankorId,'tankor') AS tankorCn from ora WHERE tankorId IN (".implode(',',$tankorIds).") AND modositasDt>='%s'";
+ $v = array($SET['tolDt']);
+ $r = db_query($q, array('fv'=>'getHirnokFolyam/haladasi2','modul'=>'naplo','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $R[strtotime($r[$i]['modositasDt'])][] = array('hirnokTipus'=>'haladasiOra',
+ 'oraAdat'=>$r[$i],
+ );
+ }
+ }
+ // Üzenő
+// /* 20170418
+ initSzerep();
+ $_SET['tanev'] = __TANEV;
+// $_SET['limits'] = array('limit'=>10, 'mutato'=>1, 'pointer'=>1);
+// --TODO NOTE-- EZ KELL!!!!!!
+ $_SET['filter'][] = 'dt>="'.$SET['tolDt'].'"';
+ $_SET['ignoreAdmin'] = true;
+ $r = getUzenoUzenetek($_SET);
+ for ($i=0; $i<count($r); $i++) {
+ // üzenő címzett/feladó kitalálós
+ $feladoNev=$cimzettNev = '';
+ if ($r[$i]['feladoTipus'] == 'diak') {
+ if (!is_array($DIAKADAT[$r[$i]['feladoIdId']])) $DIAKADAT[$r[$i]['feladoId']] = getDiakAdatById($r[$i]['feladoId']);
+ $feladoNev = $DIAKADAT[$r[$i]['feladoId']]['diakNev'];
+ }
+ if ($r[$i]['cimzettTipus'] == 'diak') {
+ if (!is_array($DIAKADAT[$r[$i]['cimzettId']])) $DIAKADAT[$r[$i]['cimzettId']] = getDiakAdatById($r[$i]['cimzettId']);
+ $cimzettNev = $DIAKADAT[$r[$i]['cimzettId']]['diakNev'];
+ }
+ if ($r[$i]['feladoTipus'] == 'tanar') {
+ if (!is_array($TANARADAT[$r[$i]['feladoId']])) $TANARADAT[$r[$i]['feladoId']] = array_pop(getTanarAdatById($r[$i]['feladoId']));
+ $feladoNev = $TANARADAT[$r[$i]['feladoId']]['tanarNev'];
+ }
+ if ($r[$i]['cimzettTipus'] == 'tanar') {
+ if (!is_array($TANARADAT[$r[$i]['cimzettId']])) $TANARADAT[$r[$i]['cimzettId']] = array_pop(getTanarAdatById($r[$i]['cimzettId']));
+ $cimzettNev = $TANARADAT[$r[$i]['cimzettId']]['tanarNev'];
+ }
+ if ($r[$i]['feladoTipus'] == 'szulo') {
+ if (!is_array($SZULOADAT[$r[$i]['feladoId']])) $SZULOADAT[$r[$i]['feladoId']] = (getSzuloNevById($r[$i]['feladoId']));
+ $feladoNev = $SZULOADAT[$r[$i]['feladoId']];
+ }
+ if ($r[$i]['cimzettTipus'] == 'szulo') {
+ if (!is_array($SZULOADAT[$r[$i]['cimzettId']])) $SZULOADAT[$r[$i]['cimzettId']] = (getSzuloNevById($r[$i]['cimzettId']));
+ $cimzettNev = $SZULOADAT[$r[$i]['cimzettId']];
+ }
+ if ($r[$i]['cimzettTipus'] == 'munkakozosseg') {
+ if (!is_array($MUNKAKOZOSSEGADAT[$r[$i]['munkakozossegId']])) $MUNKAKOZOSSEGADAT[$r[$i]['cimzettId']] = (getMunkakozossegNevById($r[$i]['cimzettId']));
+ $cimzettNev = $MUNKAKOZOSSEGADAT[$r[$i]['cimzettId']];
+ }
+ if (in_array($r[$i]['cimzettTipus'],array('tankor','tankorSzulo'))) {
+ if (!is_array($TANKORADAT[$r[$i]['cimzettId']])) $TANKORADAT[$r[$i]['cimzettId']] = getTankorNevById($r[$i]['cimzettId']);
+ $cimzettNev = $TANKORADAT[$r[$i]['cimzettId']];
+ }
+ if (in_array($r[$i]['cimzettTipus'],array('osztaly','osztalySzulo','osztalyTanar'))) {
+ if (!is_array($OSZTALYADAT[$r[$i]['cimzettId']])) $OSZTALYADAT[$r[$i]['cimzettId']] = getOsztalyNevById($r[$i]['cimzettId']);
+ $cimzettNev = $OSZTALYADAT[$r[$i]['cimzettId']];
+ }
+
+ // cimzett felado vége
+ $R[strtotime($r[$i]['dt'])][] = array('hirnokTipus'=>'uzeno',
+ 'uzenoAdat' => $r[$i],
+ 'feladoNev' => $feladoNev,
+ 'cimzettNev' => $cimzettNev,
+ );
+ }
+// 20170418 */
+
+ reset($R);
+ krsort($R);
+
+ return $R;
+ }
+
+
+ function getHirnokFeliratkozasok($mind=false) {
+
+ if ($mind===true) { // hirek feliratkozáshoz!
+ if (__NAPLOADMIN === true) {
+ $q = "SELECT * FROM hirnokFeliratkozas ORDER BY email";
+ $values = array();
+ } else {
+ $q = "SELECT * FROM hirnokFeliratkozas WHERE userAccount='%s' AND policy='%s'";
+ $values = array(_USERACCOUNT,_POLICY);
+ }
+ } else {
+ $q = "SELECT naploTipus,naploId FROM hirnokFeliratkozas WHERE userAccount='%s' AND policy='%s'";
+ $values = array(_USERACCOUNT,_POLICY);
+ }
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$values));
+
+ if ($mind===true) { // hirnokFeliratkozashoz
+ return $r;
+ } else { // egyébként
+ for ($i=0; $i<count($r); $i++) {
+ $result[$r[$i]['naploTipus']][] = $r[$i]['naploId'];
+ }
+ }
+ return $result;
+ }
+
+ function addHirnokFeliratkozas($ADAT) {
+
+ if (intval($ADAT['naploId'])==0) return false;
+ $q = "SELECT max(utolsoEmailDt) FROM hirnokFeliratkozas WHERE naploId=%u AND naploTipus='%s'";
+ $v = array(intval($ADAT['naploId']), $ADAT['naploTipus']);
+ $utolsoEmailDt = db_query($q, array('fv'=>'addHirnokFeliratkozas/get', 'modul'=>'naplo_intezmeny', 'values'=>$v, 'result'=>'value'));
+
+ if ($utolsoEmailDt=='0000-00-00 00:00:00') {
+ $q = "INSERT INTO hirnokFeliratkozas (naploId, naploTipus, userAccount, policy, email, feliratkozasDt, utolsoEmailDt, megtekintesDt)
+ VALUES (%u,'%s','%s','%s','%s',NOW(),null,null)";
+ $v = array(intval($ADAT['naploId']), $ADAT['naploTipus'], _USERACCOUNT, _POLICY, $ADAT['email']);
+ } else {
+ $q = "INSERT INTO hirnokFeliratkozas (naploId, naploTipus, userAccount, policy, email, feliratkozasDt, utolsoEmailDt, megtekintesDt)
+ VALUES (%u,'%s','%s','%s','%s',NOW(),'%s',null)";
+ $v = array(intval($ADAT['naploId']), $ADAT['naploTipus'], _USERACCOUNT, _POLICY, $ADAT['email'], $utolsoEmailDt);
+ }
+ return db_query($q, array('debug'=>true,'fv'=>'addHirnokFeliratkozas/set', 'modul'=>'naplo_intezmeny', 'values'=>$v, 'result'=>'insert'));
+
+ }
+
+
+ function delHirnokFeliratkozas($ADAT) {
+
+ // if (!is_array($ADAT['hirnokFeliratkozas'])) $X = array($ADAT['hirnokFeliratkozas']);
+ $q = "DELETE FROM hirnokFeliratkozas WHERE hirnokFeliratkozasId = %u";
+ $v = array(intval($ADAT['hirnokFeliratkozasId']));
+ return db_query($q, array('debug'=>true,'fv'=>'delHirnokFeliratkozas', 'modul'=>'naplo_intezmeny', 'values'=>$v, 'result'=>'delete'));
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/intezmenyek.php b/mayor-orig/www/include/modules/naplo/share/intezmenyek.php
new file mode 100644
index 00000000..9a99a696
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/intezmenyek.php
@@ -0,0 +1,134 @@
+<?php
+
+ function getIntezmenyek() {
+
+ $q = "SELECT * FROM intezmeny";
+ return db_query($q, array('fv' => 'getIntezmenyek', 'modul' => 'naplo_base', 'result' => 'indexed'));
+
+ }
+
+ function getTelephelyek($SET = array('result' => 'indexed')) {
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed','assoc'));
+ $keyfield = 'telephelyId';
+ $q = "SELECT * FROM telephely";
+ return db_query($q, array('fv' => 'getTelephelyek', 'modul' => 'naplo_intezmeny', 'result' => $result, 'keyfield' => $keyfield));
+
+ }
+
+ function getIntezmenyByRovidnev($rovidnev) {
+
+ $q = "SELECT * FROM intezmeny LEFT JOIN `intezmeny_%s`.`telephely` ON telephely.alapertelmezett=1 WHERE intezmeny.rovidnev='%s'";
+ return db_query($q, array('fv' => 'getIntezmenyByRovidnev', 'modul' => 'naplo_base', 'result' => 'record', 'values' => array($rovidnev, $rovidnev)));
+
+ }
+
+ function getTanevek($tervezett = false) {
+
+ $q = "SELECT DISTINCT tanev FROM szemeszter";
+ if (!$tervezett) $q .= " WHERE statusz != 'tervezett'";
+ return db_query($q, array('fv' => 'getTanevek', 'modul' => 'naplo_intezmeny', 'result' => 'idonly'));
+
+ }
+
+
+ function updateSessionIntezmeny($intezmeny) {
+
+
+ $lr = db_connect('naplo_base', array('fv' => 'updateSessionIntezmeny'));
+ if (!$lr) return false;
+
+ if ($intezmeny != '') {
+
+ $intDb = intezmenyDbNev($intezmeny);
+
+ // telephelyId lekérdezése
+ $q = "SELECT `telephelyId` FROM `%s`.telephely WHERE alapertelmezett=1 LIMIT 1";
+ $telephelyId = db_query($q, array('fv' => 'updateSessionIntezmeny/telephely', 'modul' => 'naplo_base', 'values' => array($intDb), 'result' => 'value'), $lr);
+ if ($telephelyId != '') $telephelyIdPattern = '%u';
+ else $telephelyIdPattern = 'NULL';
+ $q = "SELECT tanev,
+ IF(ABS(DATEDIFF(zarasDt,CURDATE()))<ABS(DATEDIFF(kezdesDt,CURDATE())),
+ ABS(DATEDIFF(zarasDt,CURDATE())),
+ ABS(DATEDIFF(kezdesDt,CURDATE()))) AS sub
+ FROM `%s`.szemeszter WHERE statusz!='tervezett' ORDER BY sub";
+ $r = db_query($q, array('fv' => 'updateSessionIntezmeny/tanev', 'modul' => 'naplo_base', 'values' => array($intDb), 'result' => 'indexed'), $lr);
+
+ if ($r===false) { // Ha például nem létező intézményre váltanánk...
+ $_SESSION['alert'][] = 'message:wrong_data:no_database?:'.$intDb;
+ db_close($lr);
+ return false;
+ } elseif (count($r) > 0) {
+ $tanev = $r[0]['tanev'];
+ $q = "UPDATE session SET intezmeny='%s', tanev=%u, telephelyId=$telephelyIdPattern
+ WHERE sessionID='"._SESSIONID."' ";
+ $v = array($intezmeny, $tanev, $telephelyId);
+ } else {
+ $q = "UPDATE session SET intezmeny='%s', tanev=NULL, telephelyId=$telephelyIdPattern
+ WHERE sessionID='"._SESSIONID."' ";
+ $v = array($intezmeny, $telephelyId);
+ }
+
+ } else {
+ // Intézmény törlése
+ $q = "UPDATE session SET intezmeny=NULL, tanev=NULL, telephelyId=NULL WHERE sessionID='%s' ";
+ $v = array(_SESSIONID);
+ }
+ $r = db_query($q, array('fv' => 'updateSessionIntezmeny/update', 'modul' => 'naplo_base', 'values' => $v), $lr);
+
+ db_close($lr);
+
+ return true;
+
+ }
+
+ function updateSessionTanev($tanev) {
+
+
+ if (is_numeric($tanev)) {
+
+ $intDb = intezmenyDbNev(__INTEZMENY);
+
+ $q = "SELECT COUNT(tanev) FROM $intDb.szemeszter WHERE statusz!='tervezett' AND tanev=$tanev";
+ $num = db_query($q, array('fv' => 'updateSessionTanev', 'modul' => 'naplo_base', 'values' => array($intDb, $tanev), 'result' => 'value'));
+ if ($num > 0) {
+ $q = "UPDATE session SET tanev=%u WHERE sessionID='"._SESSIONID."' ";
+ } else {
+ $_SESSION['alert'][] = 'message:nincs_ilyen_tanev:'.$tanev;
+ return false;
+ }
+
+ } else {
+ // Tanév törlése
+ $q = "UPDATE session SET tanev=NULL WHERE sessionID='"._SESSIONID."' ";
+ }
+
+ return db_query($q, array('fv' => 'updateSessionTanev', 'modul' => 'naplo_base', 'values' => array($tanev)));
+
+ }
+
+ function updateSessionTelephelyId($telephelyId) {
+
+
+ if (is_numeric($telephelyId)) {
+
+ $q = "SELECT COUNT(`telephelyId`) FROM `telephely` WHERE `telephelyId`=%u";
+ $v = array($telephelyId);
+ $num = db_query($q, array('fv' => 'updateSessionTelephely', 'modul' => 'naplo_intezmeny', 'values' => array($telephelyId), 'result' => 'value'));
+ if ($num == 1) {
+ $q = "UPDATE `session` SET `telephelyId`=%u WHERE `sessionID`='"._SESSIONID."' ";
+ } else {
+ $_SESSION['alert'][] = 'message:nincs_ilyen_telephelyId:'.$telephelyId;
+ return false;
+ }
+
+ } else {
+ // telephelyId törlése
+ $q = "UPDATE `session` SET `telephelyId`=NULL WHERE `sessionID`='"._SESSIONID."' ";
+ }
+
+ return db_query($q, array('fv' => 'updateSessionTelephely', 'modul' => 'naplo_base', 'values' => array($telephelyId)));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/jegy.php b/mayor-orig/www/include/modules/naplo/share/jegy.php
new file mode 100644
index 00000000..3898bc2a
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/jegy.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ require_once('include/modules/naplo/share/ora.php');
+
+ function getJegyInfo($jegyId, $tanev = __TANEV, $olr = '') {
+
+
+ if (!isset($tanev))
+ if (defined('__TANEV')) $tanev = __TANEV;
+ else return false;
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ if ($olr == '') $lr = db_connect('naplo', array('fv' => 'getJegyInfo'));
+ else $lr = $olr;
+
+ $q = "SELECT jegyId, jegy.diakId AS diakId, tankorId, dt, jegy, jegyTipus, tipus, jegy.megjegyzes, oraId, dolgozatId,
+ TRIM(CONCAT_WS(' ',viseltNevElotag,viseltCsaladiNev,viseltUtonev)) AS diakNev, modositasDt
+ FROM `%s`.jegy LEFT JOIN ".__INTEZMENYDBNEV.".diak USING(diakId)
+ WHERE jegyId=%u";
+ $jegy = db_query($q, array('fv' => 'getJegyInfo', 'modul' => 'naplo', 'result' => 'record', 'values' => array($tanevDb, $jegyId)), $lr);
+ if (!is_array($jegy)) {
+ $_SESSION['alert'][] = 'message:wrong_data:getJegyek:jegyId='.$jegyId;
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ $jegy['tanár'] = getTankorTanaraiByInterval($jegy['tankorId'], array('tanev' => $tanev, 'result' => 'nevsor'), $lr);
+ $tanarSzam = count($jegy['tanár']); $jegy['tanár']['idk'] = array();
+ for ($i = 0; $i < $tanarSzam; $i++) {
+ if (!in_array($jegy['tanár'][$i]['tanarId'], $jegy['tanár']['idk']))
+ $jegy['tanár']['idk'][] = $jegy['tanár'][$i]['tanarId'];
+ }
+ $jegy['tankör'] = getTankorById($jegy['tankorId'], $tanev, $lr);
+
+ if ($jegy['oraId'] != '') $jegy['oraAdat'] = getOraAdatById($jegy['oraId'], $tanev, $lr);
+
+ if ($jegy['tipus'] > 2 && $jegy['dolgozatId'] != '') {
+
+ // A dolgozat adatainak lekérdezése
+ $q = "SELECT bejelentesDt, tervezettDt, dolgozatNev FROM `%s`.dolgozat WHERE dolgozatId=%u";
+ $jegy['dolgozat'] = db_query($q, array('fv' => 'getJegyInfo', 'modul' => 'naplo', 'result' => 'record', 'values' => array($tanevDb, $jegy['dolgozatId'])), $lr);
+ if (!is_array($jegy['dolgozat']) || count($jegy['dolgozat']) == 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:jegyId='.$jegyId.':dolgozatId='.$jegy['dolgozatId'];
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ }
+
+ if ($olr == '') db_close($lr);
+ return $jegy;
+ }
+
+
+ /*
+ A függvényt arra használjuk, hogy van-e eltérés a tárgy átlag és az osztalyzat között
+ */
+ function getDiakJegyAtlagok($DIAKIDS,$ADAT=array('evfolyam'=>''),$lr='') {
+ // tanev adatbázis
+ //$q = "SELECT targyId,AVG(jegy) as jegyAtlag FROM jegy LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId) WHERE diakId=%u GROUP BY targyId";
+ //$r = db_query($q, array('modul'=>'naplo','values'=>array($diakId), 'result'=>'assoc','keyfield'=>'targyId'));
+ $q = "SELECT diakId,targyId,AVG(jegy) as jegyAtlag FROM jegy LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId) WHERE diakId IN
+ (".implode(',', array_fill(0, count($DIAKIDS), '%u')).") GROUP BY diakId,targyId";
+ $r = db_query($q, array('modul'=>'naplo', 'result'=>'indexed', 'values'=>$DIAKIDS));
+ $arraymap = array('diakId','targyId');
+ return reindex($r, $arraymap);
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/jegyModifier.php b/mayor-orig/www/include/modules/naplo/share/jegyModifier.php
new file mode 100644
index 00000000..e86a76b0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/jegyModifier.php
@@ -0,0 +1,68 @@
+<?php
+
+ require_once('include/modules/naplo/share/jegy.php');
+
+ function jegyTorles($jegyId, $jegyAdat = '', $tanev = __TANEV, $olr = '') { // jegyid lehet indexelt tömb is.
+
+ if (!isset($tanev))
+ if (defined('__TANEV')) $tanev = __TANEV;
+ else return false;
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ // Törlendő jegyek adatai (naplózáshoz)
+ $jegyInfo = array();
+ if (!is_array($jegyId)) {
+ if ($jegyId == '') {
+ return false; // nincs értelmes jegyId
+ } else {
+ $jegyId = array($jegyId);
+ if (!is_array($jegyAdat)) $jegyInfo[] = getJegyInfo($jegyId[0], $tanev);
+ else $jegyInfo = array($jegyAdat);
+ }
+ } else {
+ for ($i = 0; $i < count($jegyId); $i++) $jegyInfo[] = getJegyInfo($jegyId[$i], $tanev);
+ }
+
+ $lr = ($olr!='') ? $olr : db_connect('naplo_intezmeny');
+
+ if (count($jegyId)>0) {
+ // Naplózás
+ for ($i = 0; $i < count($jegyInfo); $i++) {
+ $jegyAdat = $jegyInfo[$i];
+ $param = $jegyAdat['jegyId'].', '.$jegyAdat['diakId'].', '.$jegyAdat['tankorId'].', '.$jegyAdat['dt'].', '.$jegyAdat['jegy'].', '.$jegyAdat['tipus'].', '.$jegyAdat['oraId'].', '.$jegyAdat['dolgozatId'];
+ logAction(
+ array(
+ 'szoveg'=>'Jegy törlés: '.$param,
+ 'table'=>'jegy'
+ ),
+ $lr
+ );
+ }
+ // Jegyek törlése
+ $q = "DELETE FROM `%s`.jegy WHERE jegyId IN (".implode(',', array_fill(0, count($jegyId), '%u')).")";
+ array_unshift($jegyId, $tanevDb);
+ $r = db_query($q, array('fv' => 'jegyTorles', 'modul' => 'naplo', 'values' => $jegyId), $lr);
+ } else {
+ // Miért false? Nincs törlendő jegy - akkor sikeres a törlés // return false;
+ $r = true;
+ }
+
+ if ($olr=='') db_close($lr);
+ return $r;
+
+ }
+
+ function jegyModositas($jegyId, $jegy, $jegyTipus, $tipus, $oraId, $dolgozatId, $megjegyzes) {
+
+ $v = array($jegy, $jegyTipus, $tipus);
+ if (!is_null($oraId)) $v[] = $oraId;
+ if (!is_null($dolgozatId)) $v[] = $dolgozatId;
+ array_push($v, $megjegyzes, $jegyId);
+ $q = "UPDATE `jegy` SET modositasDt=NOW(), jegy=%f, jegyTipus='%s', tipus=%u, oraId=".((is_null($oraId))?'NULL':'%u').", dolgozatId=".((is_null($dolgozatId))?'NULL':'%u').", megjegyzes='%s' WHERE jegyId=%u";
+
+ return db_query($q, array('fv' => 'jegyModositas', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/jegyzet.php b/mayor-orig/www/include/modules/naplo/share/jegyzet.php
new file mode 100644
index 00000000..b5a0da64
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/jegyzet.php
@@ -0,0 +1,216 @@
+<?php
+
+ // SZEREP beállítása
+ if (__DIAK===true && __USERDIAKID>0) {
+ $userId = __USERDIAKID;
+ $userTipus='diak';
+ } elseif (__DIAK===true && _SZULODIAKID>0) {
+ $userId = __SZULODIAKID;
+ $userTipus='szulo';
+ } elseif (__TANAR === true) {
+ $userId = __USERTANARID;
+ $userTipus='tanar';
+ } else {
+ $userId = 0;
+ $userTipus='';
+ }
+ define('__JEGYZETSZEREPTIPUS',$userTipus);
+ define('__JEGYZETSZEREPID',$userId);
+
+ //
+ function getJegyzet($SET = array('tolDt'=>'','igDt'=>'','dt'=>'')) {
+
+ // csak a saját jegyzeteim lehet lekérdezni
+ if (__DIAK===true && __USERDIAKID>0) {
+ $userId = __USERDIAKID;
+ $userTipus='diak';
+ } elseif (__DIAK===true && _SZULODIAKID>0) {
+ $userId = __SZULODIAKID;
+ $userTipus='szulo';
+ } elseif (__TANAR === true) {
+ $userId = __USERTANARID;
+ $userTipus='tanar';
+ } elseif (__NAPLOADMIN === true) { // ha nem tanár de naplóadmin (speciális eset :) )
+ $userId = 0;
+ $userTipus='admin';
+ } else {
+ return false;
+ }
+
+ $tolDt = readVariable($SET['tolDt'], 'date');
+ $igDt = readVariable($SET['igDt'], 'date');
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ // jogosultság szerint 0: privát, 1: speciális, 2: publikus (csak tanár állíthat be?)
+ if (__NAPLOADMIN===true && $userId===0 && $userTipus==='admin') { // speciális esetben minden zárt és publikust láthatjuk (kivéve a privátot)
+ $q = "SELECT *,getNev(userId,userTipus) AS nev FROM jegyzet WHERE publikus IN (0,1,2) AND dt >= '%s' AND dt<= '%s' ORDER BY dt";
+ $v = array($tolDt,$igDt);
+ } else {
+ $q = "(SELECT *,getNev(userId,userTipus) AS nev FROM jegyzet WHERE (userId=%u AND userTipus='%s') AND dt >= '%s' AND dt<= '%s' ORDER BY dt)";
+ if (count($SET['osztalyIdk'])>0) $q .= " UNION (SELECT jegyzet.*,getNev(userId,userTipus) AS nev FROM jegyzet LEFT JOIN jegyzetOsztaly USING (jegyzetId) WHERE osztalyId IN (". implode(',',$SET['osztalyIdk']) .") AND publikus=1 ORDER BY dt)";
+ if (count($SET['tankorIdk'])>0) $q .= " UNION (SELECT jegyzet.*,getNev(userId,userTipus) AS nev FROM jegyzet LEFT JOIN jegyzetTankor USING (jegyzetId) WHERE tankorId IN (". implode(',',$SET['tankorIdk']) .") AND publikus=1 ORDER BY dt)";
+ $q .= " UNION (SELECT *,getNev(userId,userTipus) AS nev FROM jegyzet WHERE publikus=2 AND dt >= '%s' AND dt<= '%s' ORDER BY dt)";
+ $v = array($userId,$userTipus,$tolDt,$igDt,$tolDt,$igDt);
+ }
+ $R = db_query($q, array('fv' => 'getJegyzet0', 'modul' => 'naplo', 'values' => $v, 'result'=>'indexed'), $lr);
+
+ return $R;
+ }
+
+ //
+ function getJegyzetAdat($jegyzetId) {
+
+ global $_OSZTALYA;
+
+ if (__DIAK===true && __USERDIAKID>0) {
+ $userId = __USERDIAKID;
+ $userTipus='diak';
+ } elseif (__DIAK===true && _SZULODIAKID>0) {
+ $userId = __SZULODIAKID;
+ $userTipus='szulo';
+ } elseif (__TANAR === true) {
+ $userId = __USERTANARID;
+ $userTipus='tanar';
+ } elseif (__NAPLOADMIN === true) { // ha nem tanár de naplóadmin (speciális eset :) )
+ $userId = 0;
+ $userTipus='admin';
+ } else {
+ return false;
+ }
+
+
+ // jogosultság ellenőr
+ if (_POLICY!='public') {
+ if (__JEGYZETSZEREPTIPUS == 'diak') {
+ $JA['tankorok'] = getTankorByDiakId(__JEGYZETSZEREPID);
+ $JA['osztalyok'] = getDiakOsztalya(__JEGYZETSZEREPID,array('tanev'=>$tanev,'tolDt'=>$dt,'igDt'=>$dt));
+ } elseif (__JEGYZETSZEREPTIPUS == 'tanar') {
+ $JA['tankorok'] = getTankorByTanarId(__JEGYZETSZEREPID);
+ //if (is_array($_OSZTALYA) && count($_OSZTALYA)>0) $JA['osztalyok'] = getOsztalyok(null,array('osztalyIds'=>$_OSZTALYA));
+ $JA['munkakozossegek'] = getMunkakozossegByTanarId(__JEGYZETSZEREPID, array('idonly'=>false));
+ }
+ for ($i=0; $i<count($JA['tankorok']); $i++) {$JA['tankorIdk'][] = $JA['tankorok'][$i]['tankorId'];}
+ //for ($i=0; $i<count($JA['osztalyok']); $i++) {$JA['osztalyIdk'][] = $JA['osztalyok'][$i]['osztalyId'];}
+ $JA['osztalyIdk'] = $_OSZTALYA;
+ for ($i=0; $i<count($JA['munkakozossegek']); $i++) {$JA['mkIdk'][] = $JA['munkakozossegek'][$i]['mkId'];}
+ }
+ //
+
+ if (__NAPLOADMIN===true && $userId === 0 && $userTipus==='admin') {
+ $q = "SELECT *,getNev(userId,userTipus) AS nev FROM jegyzet WHERE jegyzetId=%u";
+ $v = array($jegyzetId);
+ } else {
+ //$q = "SELECT * FROM jegyzet WHERE userId=%u AND userTipus='%s' AND jegyzetId=%u";
+ $q = "(SELECT *,getNev(userId,userTipus) AS nev FROM jegyzet WHERE (userId=%u AND userTipus='%s') AND jegyzetId=%u ORDER BY dt)";
+ if (count($JA['osztalyIdk'])>0) $q .= " UNION (SELECT jegyzet.*,getNev(userId,userTipus) AS nev FROM jegyzet LEFT JOIN jegyzetOsztaly USING (jegyzetId) WHERE osztalyId IN (". implode(',',$JA['osztalyIdk']) .") AND publikus=1 AND jegyzetId=%u ORDER BY dt)";
+ if (count($JA['tankorIdk'])>0) $q .= " UNION (SELECT jegyzet.*,getNev(userId,userTipus) AS nev FROM jegyzet LEFT JOIN jegyzetTankor USING (jegyzetId) WHERE tankorId IN (". implode(',',$JA['tankorIdk']) .") AND publikus=1 AND jegyzetId=%u ORDER BY dt)";
+ $q .= " UNION (SELECT *,getNev(userId,userTipus) AS nev FROM jegyzet WHERE publikus=2 AND jegyzetId=%u ORDER BY dt)";
+ $v = array($userId,$userTipus,$jegyzetId,$jegyzetId,$jegyzetId,$jegyzetId);
+ }
+ $R = db_query($q, array('fv' => 'getJegyzet', 'modul' => 'naplo', 'values' => $v, 'result'=>'record'), $lr); // jegyzetId, tehát egy record
+
+ for($i=0;$i<count($R);$i++) {
+ $q = "SELECT tankorId FROM jegyzetTankor WHERE jegyzetId=%u";
+ $v = array($R['jegyzetId']);
+ $R['tankorok'] = db_query($q, array('fv' => 'getJegyzet1', 'modul' => 'naplo', 'values' => $v, 'result'=>'idonly'), $lr);
+ }
+ for($i=0;$i<count($R);$i++) {
+ $q = "SELECT osztalyId FROM jegyzetOsztaly WHERE jegyzetId=%u";
+ $v = array($R['jegyzetId']);
+ $R['osztalyok'] = db_query($q, array('fv' => 'getJegyzet2', 'modul' => 'naplo', 'values' => $v, 'result'=>'idonly'), $lr);
+ }
+ for($i=0;$i<count($R);$i++) {
+ $q = "SELECT mkId FROM jegyzetMunkakozosseg WHERE jegyzetId=%u";
+ $v = array($R['jegyzetId']);
+ $R['munkakozossegek'] = db_query($q, array('fv' => 'getJegyzet3', 'modul' => 'naplo', 'values' => $v, 'result'=>'idonly'), $lr);
+ }
+ return $R;
+ }
+
+ function setJegyzetAdat($ADAT) {
+
+ if (__DIAK===true && __USERDIAKID>0) {
+ $userId = __USERDIAKID;
+ $userTipus='diak';
+ $allowedPublikus = array(0,1);
+ } elseif (__DIAK===true && _SZULODIAKID>0) {
+ $userId = __SZULODIAKID;
+ $userTipus='szulo';
+ $allowedPublikus = array(0,1);
+ } elseif (__TANAR === true) {
+ $userId = __USERTANARID;
+ $userTipus='tanar';
+ $allowedPublikus = array(0,1,2);
+ } else {
+ return false;
+ }
+
+ if ($ADAT['jegyzetId']<=0) { // insert
+ $q = "INSERT INTO jegyzet (jegyzetId) VALUES ('')";
+ $jegyzetId = db_query($q, array('fv' => 'setJegyzetAdat', 'modul' => 'naplo', 'values' => $v, 'result'=>'insert'));
+ $q = "UPDATE jegyzet SET userId=%u,userTipus='%s' WHERE jegyzetId=%u";
+ $v = array($userId,$userTipus,$jegyzetId);
+ db_query($q, array('fv' => 'setJegyzetAdat', 'modul' => 'naplo', 'values' => $v, 'result'=>'insert'));
+ } else {
+ $jegyzetId = $ADAT['jegyzetId'];
+ }
+
+ $dt = readVariable($ADAT['dt'],'date');
+ $dt = getTanitasiNapVissza(0,$dt);
+ $publikus = readVariable($ADAT['publikus'],'id',0,$allowedPublikus);
+
+ $q = "UPDATE jegyzet SET jegyzetLeiras='%s',publikus=%u,dt='%s' WHERE userId=%u AND userTipus='%s' AND jegyzetId=%u";
+ $v = array(readVariable($ADAT['jegyzetLeiras'],'string'),$publikus,$dt,$userId,$userTipus,$jegyzetId);
+ db_query($q, array('fv' => 'getJegyzet', 'modul' => 'naplo', 'values' => $v, 'result'=>'record'));
+
+ $q = "DELETE FROM jegyzetTankor WHERE jegyzetId=%u";
+ $v = array($jegyzetId);
+ db_query($q, array('fv' => 'getJegyzet', 'modul' => 'naplo', 'values' => $v, 'result'=>'indexed'), $lr);
+
+ for ($i=0; $i<count($ADAT['tankorId']); $i++) {
+ $q = "INSERT IGNORE INTO jegyzetTankor (jegyzetId,tankorId) VALUES (%u,%u)";
+ $v = array($jegyzetId,intval($ADAT['tankorId'][$i]));
+ db_query($q, array('fv' => 'setJegyzetAdat', 'modul' => 'naplo', 'values' => $v, 'result'=>'insert'));
+ }
+
+ $q = "DELETE FROM jegyzetOsztaly WHERE jegyzetId=%u";
+ $v = array($jegyzetId);
+ db_query($q, array('fv' => 'getJegyzet', 'modul' => 'naplo', 'values' => $v, 'result'=>'indexed'), $lr);
+
+ for ($i=0; $i<count($ADAT['osztalyId']); $i++) {
+ $q = "INSERT IGNORE INTO jegyzetOsztaly (jegyzetId,osztalyId) VALUES (%u,%u)";
+ $v = array($jegyzetId,intval($ADAT['osztalyId'][$i]));
+ db_query($q, array('fv' => 'setJegyzetAdat', 'modul' => 'naplo', 'values' => $v, 'result'=>'insert'));
+ }
+ $q = "DELETE FROM jegyzetMunkakozosseg WHERE jegyzetId=%u";
+ $v = array($jegyzetId);
+ db_query($q, array('fv' => 'getJegyzet4', 'modul' => 'naplo', 'values' => $v, 'result'=>'indexed'), $lr);
+ for ($i=0; $i<count($ADAT['mkId']); $i++) {
+ $q = "INSERT IGNORE INTO jegyzetMunkakozosseg (jegyzetId,mkId) VALUES (%u,%u)";
+ $v = array($jegyzetId,intval($ADAT['mkId'][$i]));
+ db_query($q, array('fv' => 'setJegyzetAdat', 'modul' => 'naplo', 'values' => $v, 'result'=>'insert'));
+ }
+ return $jegyzetId;
+
+ }
+
+ function delJegyzet($jegyzetId) {
+ if (__DIAK===true && __USERDIAKID>0) {
+ $userId = __USERDIAKID;
+ $userTipus='diak';
+ } elseif (__DIAK===true && _SZULODIAKID>0) {
+ $userId = __SZULODIAKID;
+ $userTipus='szulo';
+ } elseif (__TANAR === true) {
+ $userId = __USERTANARID;
+ $userTipus='tanar';
+ } else {
+ return false;
+ }
+
+ $q = "DELETE FROM jegyzet WHERE userId=%u AND userTipus='%s' AND jegyzetId=%u";
+ $v = array($userId,$userTipus,$jegyzetId);
+ db_query($q, array('fv' => 'jegyzetel', 'modul' => 'naplo', 'values' => $v, 'result'=>''));
+ return;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/kepesites.php b/mayor-orig/www/include/modules/naplo/share/kepesites.php
new file mode 100644
index 00000000..4315e64b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/kepesites.php
@@ -0,0 +1,103 @@
+<?php
+
+ /* --- képzések lekérdezése --- */
+
+ function getKepesitesek($SET = null) {
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed','assoc'));
+ $q = "SELECT * FROM kepesites ORDER BY kepesitesNev";
+ return db_query($q, array('fv'=>'getKepesitesek','modul'=>'naplo_intezmeny','result'=>$result,'keyfield'=>'kepesitesId'));
+
+ }
+
+ function getTanarKepesites($tanarId) {
+
+ $q = "SELECT * FROM tanarKepesites LEFT JOIN kepesites USING (kepesitesId) WHERE tanarId=%u";
+ return db_query($q, array('fv'=>'getTanarKepesites','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array($tanarId)));
+
+ }
+
+ function getTanarKepesitesIds($tanarIds) {
+
+ $q = "SELECT tanarId, kepesitesId FROM tanarKepesites";
+ if (is_array($tanarIds)) {
+ $q .= " WHERE tanarId IN (".implode(',', array_fill(0, count($tanarIds), '%u')).")";
+ $v = $tanarIds;
+ }
+ $r = db_query($q, array('fv'=>'getTanarKepesitesIds','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+
+ if (is_array($r)) {
+ for ($i=0; $i<count($r); $i++) $result[ $r[$i]['tanarId'] ][] = $r[$i]['kepesitesId'];
+ return $result;
+ }
+ return $r;
+
+ }
+
+ /* --- kepesítés adatai --- */
+
+ function getKepesitesTargy($kepesitesId) {
+
+ $q = "SELECT * FROM kepesitesTargy LEFT JOIN targy USING (targyId) WHERE kepesitesId=%u ORDER BY targyNev, targyId";
+ return db_query($q, array('fv'=>'getKepesitesTargy','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array($kepesitesId)));
+
+ }
+
+ function getKepesitesTanar($kepesitesId) {
+
+ $q = "SELECT *, CONCAT_WS(' ',viseltNevElotag, viseltCsaladinev, viseltUtonev) AS tanarNev FROM tanarKepesites LEFT JOIN tanar USING (tanarId)
+ WHERE kepesitesId=%u ORDER BY tanarNev, tanarId";
+ return db_query($q, array('fv'=>'getKepesitesTanar','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array($kepesitesId)));
+
+ }
+
+ /* --- set --- */
+
+ function tanarKepesitesHozzarendeles($tanarId, $kepesitesId) {
+
+ $q = "INSERT INTO tanarKepesites (tanarId, kepesitesId) VALUES (%u,%u)";
+ $v = array($tanarId, $kepesitesId);
+ return db_query($q, array('fv'=>'tanarKepesitesHozzarendeles','modul'=>'naplo_intezmeny','values'=>$v));
+
+ }
+
+ function kepesitesTargyHozzarendeles($kepesitesId, $targyId) {
+
+ $q = "INSERT INTO kepesitesTargy (kepesitesId, targyId) VALUES (%u,%u)";
+ $v = array($kepesitesId, $targyId);
+ return db_query($q, array('fv'=>'kepesitesTargyHozzarendeles','modul'=>'naplo_intezmeny','values'=>$v));
+
+ }
+
+ function kepesitesTargyTorles($kepesitesId, $targyId) {
+
+ $q = "DELETE FROM kepesitesTargy WHERE kepesitesId=%u AND targyId=%u";
+ $v = array($kepesitesId, $targyId);
+ return db_query($q, array('fv'=>'kepesitesTargyTorles','modul'=>'naplo_intezmeny','values'=>$v));
+
+ }
+
+ function tanarKepesitesTorles($tanarId, $kepesitesId) {
+
+ $q = "DELETE FROM tanarKepesites WHERE tanarId=%u AND kepesitesId=%u";
+ $v = array($tanarId, $kepesitesId);
+ return db_query($q, array('fv'=>'tanarKepesitesTorles','modul'=>'naplo_intezmeny','values'=>$v));
+
+ }
+
+ function ujKepesites($vegzettseg, $fokozat, $specializacio, $kepesitesNev) {
+ $q = "INSERT INTO kepesites (vegzettseg, fokozat, specializacio, kepesitesNev) VALUES ('%s','%s','%s','%s')";
+ $v = array($vegzettseg, $fokozat, $specializacio, $kepesitesNev);
+ return db_query($q, array('fv'=>'ujKepesites','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v));
+
+ }
+
+ function kepesitesModositas($kepesitesId, $vegzettseg, $fokozat, $specializacio, $kepesitesNev) {
+
+ $q = "UPDATE kepesites SET vegzettseg='%s',fokozat='%s',specializacio='%s',kepesitesNev='%s' WHERE kepesitesId=%u";
+ $v = array($vegzettseg, $fokozat, $specializacio, $kepesitesNev, $kepesitesId);
+ return db_query($q, array('debug'=>false,'fv'=>'kepesitesModositas','modul'=>'naplo_intezmeny','values'=>$v));
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/kepzes.php b/mayor-orig/www/include/modules/naplo/share/kepzes.php
new file mode 100644
index 00000000..39af3847
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/kepzes.php
@@ -0,0 +1,183 @@
+<?php
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/osztaly.php'); // _SQL_EVFOLYAMJEL_SORREND
+
+ function getKepzesek() {
+
+ $q = "SELECT * FROM kepzes";
+ return db_query($q, array('fv' => 'getKepzesek', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'));
+
+ }
+
+ function getKepzesAdatById($kepzesId) {
+
+ $q = "SELECT * FROM kepzes WHERE kepzesId=%u";
+ $ret = db_query($q, array('fv' => 'getKepzesAdatById', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($kepzesId)));
+ if (!$ret || !is_array($ret) || count($ret) == 0) return false;
+
+ if ($ret['osztalyJellegId']!='') {
+ $EVFOLYAMJELEK=getEvfolyamJelek(array('result'=>'idonly'));
+ $ret['osztalyJelleg']=getOsztalyJellegAdat($ret['osztalyJellegId']);
+ $ret['osztalyEvfolyamJelek'] = explode(',',$ret['osztalyJelleg']['evfolyamJelek']);
+ }
+
+ $q = "SELECT osztalyId FROM kepzesOsztaly WHERE kepzesId=%u";
+ $ret['osztalyIds'] = db_query($q, array('fv' => 'getKepzesAdatById/Osztályok', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($kepzesId)));
+ return $ret;
+
+ }
+
+ function getKepzesByOsztalyJelleg($osztalyJellegId) {
+
+ $q = "select * from kepzes where osztalyJellegId=%u order by kepzesNev";
+ return db_query($q, array('fv'=>'getKepzesByOsztalyJelleg','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array($osztalyJellegId)));
+
+ }
+
+ function getKepzesByOsztalyId($osztalyId, $SET = array('result' => 'indexed', 'arraymap' => null)) {
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed','multiassoc'));
+ if (!is_array($osztalyId)) $osztalyId = array($osztalyId);
+
+ $q = "SELECT * FROM kepzesOsztaly LEFT JOIN kepzes USING (kepzesId) WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyId), '%u')).")";
+ $ret = db_query($q, array(
+ 'fv' => 'getKepzesByOsztalyId', 'modul' => 'naplo_intezmeny', 'values' => $osztalyId, 'result' => $result, 'keyfield' => 'osztalyId'
+ ));
+
+ if (is_array($SET['arraymap'])) return reindex($ret, $SET['arraymap']);
+ else return $ret;
+
+ }
+
+ /* NEW */
+ function getOsztalyLehetsegesKepzesei($osztalyId, $SET=array()) {
+ return getKepzesByOsztaly($osztalyId,$SET);
+ }
+
+ /* NEW */
+ function getOsztalyKepzesei($osztalyId,$SET=array()) {
+ $DIAKIDK = getDiakokByOsztalyIds($osztalyId);
+ }
+
+ function getKepzesByDiakId($diakId, $SET = array('result' => 'assoc', 'dt' => null, 'arraymap' => null)) {
+ /**
+ * Ha nincs dátum megadva, akkor az összes, amúgy az adott dátumkor érvényes képzéseket adja vissza a függvény!
+ **/
+
+ if (!is_array($diakId))
+ if ($diakId != '') $diakId = array($diakId);
+ else $diakId = array();
+ if (count($diakId) == 0) return false;
+ if ($SET['result'] == 'csakid') $SET['result'] = 'idonly'; // az egységesítés nevében
+
+ if (isset($SET['dt']) and $SET['dt'] != '') {
+ $WHERE_DT = " AND tolDt<='%s' AND (igDt IS NULL OR '%s'<=igDt)";
+ $v = mayor_array_join($diakId, array($SET['dt'], $SET['dt']));
+ } else {
+ $WHERE_DT = "";
+ $v = $diakId;
+ }
+ if ($SET['result'] == 'idonly') {
+ $q = "SELECT DISTINCT kepzesId FROM kepzesDiak LEFT JOIN kepzes USING (kepzesId)
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakId), '%u')).")".$WHERE_DT;
+ $ret = db_query($q, array('fv' => 'getKepzesByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+ } else {
+ $q = "SELECT * FROM kepzesDiak LEFT JOIN kepzes USING (kepzesId)
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakId), '%u')).")".$WHERE_DT;
+ if ($SET['arraymap'] && count($SET['arraymap'])>0) { // ha arraymap van, nem figyelünk a resultra
+ $r = db_query($q, array('fv' => 'getKepzesByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ $ret = reindex($r,$SET['arraymap']);
+ } elseif ($SET['result'] == 'assoc' || $SET['result'] == 'multiassoc') {
+ $ret = db_query($q, array(
+ 'fv' => 'getKepzesByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'diakId', 'values' => $v
+ ));
+ } else {
+ $ret = db_query($q, array('fv' => 'getKepzesByDiakId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ }
+ }
+ if (!$ret || !is_array($ret)) return false; //ez miért jó?
+ return $ret;
+
+ }
+
+// function getKepzesTargyByDiakId() --> targyId,targyNev
+
+
+ function getTargyAdatFromKepzesOraterv($kepzesId, $SET = array('tipus'=>null, 'targyId'=>null, 'evfolyamJel'=>null, 'szemeszter'=>null, 'arraymap'=>null)) {
+ /*
+ Ha van megadva típus és az nem 'mintatantervi', akkor azt (is) figyelembe veszi, DE az adatszerkezetbe nem kerül bele a tipus!
+ */
+ if ($kepzesId=='') return false;
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('targyId','evfolyamJel','szemeszter');
+ $W = ''; $v = array($kepzesId);
+ if (isset($SET['tipus']) && $SET['tipus'] != 'mintatantervi') { $W .= " AND tipus='%s'"; $v[] = $tipus = $SET['tipus']; }
+ else if (isset($SET['targyId'])) { $W .= " AND targyId=%u"; $v[] = $targyId = $SET['targyId']; }
+ if (isset($SET['evfolyamJel'])) { $W .= " AND evfolyamJel='%s'"; $v[] = $evfolyamJel = $SET['evfolyamJel']; }
+ if (isset($SET['szemeszter'])) { $W .= " AND szemeszter=%u"; $v[] = $szemeszter = $SET['szemeszter']; }
+
+ $q = "SELECT * FROM kepzesOraterv WHERE kepzesId=%u".$W." ORDER BY tipus, targyId, "._SQL_EVFOLYAMJEL_SORREND.", szemeszter";
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'getTargyAdatFromKepzesOraterv', 'result'=>'indexed', 'values'=> $v));
+ $RE = reindex($r,$SET['arraymap']);
+ return $RE;
+ }
+
+
+ function getKepzesOraterv($kepzesId, $SET = array('arraymap'=>null, 'evfolyamJel' => null)) {
+ if ($kepzesId=='') return false;
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('tipus','targyId','evfolyamJel','szemeszter');
+
+ if (isset($SET['evfolyamJel'])) {
+ $q = "SELECT * FROM kepzesOraterv WHERE kepzesId=%u AND evfolyamJel='%s'";
+ $v = array($kepzesId, $SET['evfolyamJel']);
+ } else {
+ $q = "SELECT * FROM kepzesOraterv WHERE kepzesId=%u";
+ $v = array($kepzesId);
+ }
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'getKepzesOraterv', 'result'=>'indexed','values'=>$v));
+
+ $RE = reindex($r, $SET['arraymap']);
+
+ /* Figyelem! Nem az arraymap-et használjuk még. Ezt a függvényt NE írd át! */
+/* for ($i=0; $i<count($r); $i++) {
+ $targy = (($r[$i]['targyId']=='')) ? $r[$i]['tipus'] : $r[$i]['targyId'];
+ $RE[$targy][$r[$i]['evfolyam']][$r[$i]['szemeszter']] = array(
+ 'hetiOraszam'=>$r[$i]['hetiOraszam'],
+ 'kovetelmeny'=>$r[$i]['kovetelmeny']
+ );
+ }
+*/
+ return $RE;
+ }
+
+// function getKepzesTargyByDiakId() --> targyId,targyNev
+
+ function getOraszamByKepzes($kepzesId, $SET = array('arraymap'=>null, 'evfolyamJel'=>'', 'szemeszter'=>0)) { // --TODO check evfolyam -> evfolyamJel
+ if ($kepzesId=='') return false;
+ //if (!is_array($SET['arraymap']) || count($SET['arraymap'])==1) $SET['arraymap'] = array();
+
+ $q = "SELECT tipus,sum(hetiOraszam) AS sum FROM kepzesOraterv WHERE kepzesId=%u AND evfolyamJel='%s' AND szemeszter=%u GROUP BY tipus";
+ $v = array($kepzesId,$SET['evfolyamJel'],$SET['szemeszter']);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'getOraszamByKepzes', 'result'=>'assoc','keyfield'=>'tipus', 'values'=>$v));
+ return $r;
+ }
+
+ function setOsztalyKepzesei($osztalyId, $kepzesIds) {
+ if (is_array($kepzesIds) && count($kepzesIds)>0) {
+ $q = "INSERT INTO kepzesOsztaly VALUES ".implode(',', array_fill(0, count($kepzesIds), '(%u,%u)'));
+ foreach ($kepzesIds as $kepzesId) {
+ $v[] = $kepzesId;
+ $v[] = $osztalyId;
+ }
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','fv'=>'setOsztalyKepzesei', 'result'=>'insert', 'values'=>$v));
+ return $r;
+ }
+ }
+
+ function getKepzesOratervAdatByBontasId($bontasId) {
+
+ $q = "select * from kepzesOraterv left join ".__TANEVDBNEV.".kepzesTargyBontas using (kepzesOratervId) where bontasId=%u";
+ return db_query($q, array('fv'=>'getKepzesOratervAdatByBontasId','modul'=>'naplo_intezmeny','result'=>'record','values'=>array($bontasId)));
+
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/kerdoiv.php b/mayor-orig/www/include/modules/naplo/share/kerdoiv.php
new file mode 100644
index 00000000..b4d26b70
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/kerdoiv.php
@@ -0,0 +1,127 @@
+<?php
+
+ function getKerdoiv($cimzett = array()) {
+
+ $cimzettFeltetel = array();
+ $v = array();
+ if (is_array($cimzett)) foreach ($cimzett as $cimzettTipus => $cimzettIds) {
+ if (is_array($cimzettIds) && count($cimzettIds) > 0) {
+ $cimzettFeltetel[] = "(cimzettTipus='%s' AND cimzettId IN (0,".implode(',', array_fill(0, count($cimzettIds), '%u'))."))";
+ $v = mayor_array_join($v, array($cimzettTipus), $cimzettIds);
+ }
+ }
+
+ $q = "SELECT DISTINCT kerdoivId,cim,tolDt,igDt FROM kerdoiv LEFT JOIN kerdoivCimzett USING (kerdoivId)
+ WHERE tolDt<=NOW() AND NOW()<=igDt";
+ if (count($cimzettFeltetel) > 0) $q .= " AND (".implode(" OR ", $cimzettFeltetel).")";
+ return db_query($q, array('fv' => 'getKerdoiv','modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ }
+
+ function getOsszesKerdoiv($tanev = __TANEV) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $q = "SELECT DISTINCT kerdoivId,cim,tolDt,igDt FROM %s.kerdoiv LEFT JOIN `%s`.kerdoivCimzett USING (kerdoivId)";
+ return db_query($q, array('fv' => 'getKerdoiv','modul' => 'naplo', 'result' => 'indexed', 'values' => array($tanevDb,$tanevDb)));
+
+ }
+
+ function getKerdoivAdat($kerdoivId) {
+
+ $v = array($kerdoivId);
+ $q = "SELECT * FROM kerdoiv WHERE kerdoivId=%u";
+ $ret = db_query($q, array('fv' => 'getKerdoivAdat', 'modul' => 'naplo', 'result' => 'record', 'values' => $v));
+
+ $q = "SELECT * FROM kerdoivKerdes WHERE kerdoivId=%u ORDER BY kerdesId";
+ $ret['kerdes'] = db_query($q, array('fv' => 'getKerdoivAdat/kerdes', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+
+ for ($i = 0; $i < count($ret['kerdes']); $i++) {
+ $q = "SELECT * FROM kerdoivValasz WHERE kerdesId=%u ORDER BY pont, valaszId";
+ $ret['kerdes'][$i]['valasz'] = db_query($q, array('fv' => 'getKerdoivAdat/valasz', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($ret['kerdes'][$i]['kerdesId'])));
+ }
+
+ $q = "SELECT * FROM kerdoivCimzett WHERE kerdoivId=%u";
+ $tmp = db_query($q, array('fv' => 'getKerdoivAdat/cimzett', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'cimzettTipus', 'values' => $v));
+ if (is_array($tmp))
+ foreach ($tmp as $cimzettTipus => $ctAdat) {
+ $ret['cimzettTipusok'][] = $cimzettTipus;
+ for ($i = 0; $i < count($ctAdat); $i++)
+ $ret['cimzett'][$cimzettTipus][] = $ctAdat[$i]['cimzettId'];
+ }
+ /* endif */
+
+ return $ret;
+
+ }
+
+ function getMegvalaszoltKerdes($kerdoivId, $feladoId, $feladoTipus, $cimzettId, $cimzettTipus) {
+
+ $q = "SELECT kerdesId FROM kerdoivMegvalaszoltKerdes
+ WHERE feladoId=%u AND feladoTipus='%s' AND cimzettId=%u AND cimzettTipus='%s'
+ ORDER BY kerdesId";
+ $v = array($feladoId, $feladoTipus, $cimzettId, $cimzettTipus);
+ return db_query($q, array('fv' => 'getMegvalaszoltKerdes', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v));
+
+ }
+
+ function getKerdoivStat($kerdoivId, $tanev = __TANEV) {
+
+ global $_TANEV;
+
+ if ($tanev == __TANEV) $TA = $_TANEV;
+ else $TA = getTanevAdat($tanev);
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ // Kérdőív címe, határidői
+ $q = "SELECT * FROM `%s`.kerdoiv WHERE kerdoivId=%u";
+ $ret = db_query($q, array('fv' => 'getKerdoivStat', 'modul' => 'naplo', 'result' => 'record', 'values' => array($tanevDb, $kerdoivId)));
+ // A kérdőív kérdései
+ $q = "SELECT kerdesId,trim(trailing '\c' from kerdes) AS kerdes FROM `%s`.kerdoivKerdes WHERE kerdoivId=%u ORDER BY kerdesId";
+ $ret['kerdes'] = db_query($q, array('fv' => 'getKerdoivStat/kerdes', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'kerdesId', 'values' => array($tanevDb, $kerdoivId)));
+
+ // A kérdőív válaszai
+ $ret['valaszIds'] = array();
+ foreach ($ret['kerdes'] as $kerdesId => $kAdat) {
+ $q = "SELECT valaszId,valasz FROM `%s`.kerdoivValasz WHERE kerdesId=%u ORDER BY valaszId";
+ $ret['kerdes'][$kerdesId]['valasz'] = db_query($q, array('fv' => 'getKerdoivStat/valasz', 'modul' => 'naplo', 'result' => 'keyvaluepair', 'values' => array($tanevDb, $kerdesId)));
+ foreach ($ret['kerdes'][$kerdesId]['valasz'] as $valaszId => $valasz) $ret['valaszIds'][] = $valaszId;
+ }
+
+ // A kérdőív címzettjei
+ $q = "SELECT cimzettTipus,cimzettId FROM `%s`.kerdoivCimzett WHERE kerdoivId=%u";
+ $ret['cimzett'] = db_query($q, array('fv' => 'getKerdoivStat/cimzett', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'cimzettTipus', 'values' => array($tanevDb, $kerdoivId)));
+ // A tankör típusú címzettek tanára(i)
+ $ret['tanarNev'] = array();
+ foreach (array('tankor','tankorSzulo') as $key => $cimzettTipus) {
+ if (is_array($ret['cimzett'][$cimzettTipus]) && count($ret['cimzett'][$cimzettTipus]) > 0) {
+ for ($i = 0; $i < count($ret['cimzett'][$cimzettTipus]); $i++) {
+ $tankorId = $ret['cimzett'][$cimzettTipus][$i]['cimzettId'];
+ $tanarIds = getTankorTanaraiByInterval(
+ $tankorId, array('tanev' => $tanev, 'tolDt' => $ret['kerdes']['tolDt'], 'igDt' => $ret['kerdes']['igDt'], 'result' => 'csakId')
+ );
+ for ($j = 0; $j < count($tanarIds); $j++) {
+ if (!is_array($ret['tanarTankorei'][ $tanarIds[$j] ]) || !in_array($tankorId, $ret['tanarTankorei'][ $tanarIds[$j] ]))
+ $ret['tanarTankorei'][ $tanarIds[$j] ][] = $tankorId;
+ if (!isset($ret['tanarNev'][ $tanarIds[$j] ])) $ret['tanarNev'][ $tanarIds[$j] ] = getTanarNevById($tanarIds[$j]);
+ }
+ }
+ }
+ }
+
+ $q = "SELECT * FROM `%s`.kerdoivValaszSzam WHERE valaszId IN (".implode(',', $ret['valaszIds']).") ORDER BY cimzettTipus,cimzettId,valaszId";
+ $tmp = db_query($q, array('fv' => 'getKerdoivStat/szavazat', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($tanevDb)));
+ for ($i = 0; $i < count($tmp); $i++)
+ $ret['szavazat'][ $tmp[$i]['cimzettTipus'] ][ $tmp[$i]['cimzettId'] ][ $tmp[$i]['valaszId'] ] = $tmp[$i]['szavazat'];
+
+ $tmp = getTankorok(array("tanev=".$tanev));
+ for ($i = 0; $i < count($tmp); $i++) {
+ $ret['tankorAdat'][ $tmp[$i]['tankorId'] ] = $tmp[$i];
+ $ret['tankorAdat'][ $tmp[$i]['tankorId'] ]['letszam'] = getTankorLetszam($tmp[$i]['tankorId'], array('refDt' => $TA['zarasDt']));
+ }
+ return $ret;
+
+ }
+
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/kerelem.php b/mayor-orig/www/include/modules/naplo/share/kerelem.php
new file mode 100644
index 00000000..5a985ad5
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/kerelem.php
@@ -0,0 +1,136 @@
+<?php
+ function getKerelemOsszesito() {
+ $q = "SELECT lezarasDt,jovahagyasDt FROM kerelem";
+ $R = db_query($q, array('modul'=>'naplo_base','result'=>'indexed'));
+ for($i=0; $i<count($R); $i++) {
+ if ($R[$i]['lezarasDt']!='' && $R[$i]['jovahagyasDt']!='')
+ {
+ $SECS[] = strtotime($R[$i]['lezarasDt']) - strtotime($R[$i]['jovahagyasDt']);
+ }
+ }
+ $RET['n'] = $i+1;
+ $RET['nofdone'] = count($SECS);
+ if (count($SECS)>0)
+ $RET['avgTime'] = number_format(array_sum($SECS) / (24*3600*count($SECS)),2);
+ else
+ $RET['avgTime'] = '-';
+ return $RET;
+ }
+
+ function getKerelem($kerelemId) {
+ $q = "SELECT * FROM kerelem WHERE kerelemId=%u";
+ $RESULT = db_query($q, array('fv' => 'getKerelmek', 'modul' => 'naplo_base', 'result' => 'indexed', 'values'=>array($kerelemId)));
+ return $RESULT;
+ }
+ function getKerelemValaszok($kerelemId) {
+ $q = "SELECT * FROM kerelemValasz WHERE kerelemId=%u ORDER BY valaszDt";
+ $RESULT = db_query($q, array('fv' => 'getKerelmek', 'modul' => 'naplo_base', 'result' => 'indexed', 'values'=>array($kerelemId)));
+ return $RESULT;
+ }
+
+ function getValasz($valaszId) {
+ $q = "SELECT * FROM kerelemValasz WHERE valaszId=%u";
+ $RESULT = db_query($q, array('fv' => 'getKerelemValasz', 'modul' => 'naplo_base', 'result' => 'indexed', 'values'=>array($valaszId)));
+ return $RESULT;
+ }
+
+ function getKerelmek($telephelyId='', $kerelemId='', $lezarasMaxDt='') {
+ if (isset($lezarasMaxDt) && $lezarasMaxDt!='') {
+ $W_lezaras = '(lezarasDt IS NULL OR lezarasDt>"'.$lezarasMaxDt.' 23:59:59")';
+ } else {
+ $W_lezaras = 'lezarasDt IS NULL';
+ }
+ if (isset($telephelyId) && $telephelyId!='') {
+ $W = ' AND (telephelyId=%u OR telephelyId IS NULL)';
+ $v[] = $telephelyId;
+ } elseif (isset($kerelemId) && $kerelemId!='') {
+ $W = ' AND kerelemId=%u';
+ $v[] = $kerelemId;
+ } else {
+ $W='';
+ }
+ $q = "SELECT kerelem.*, IF (valaszDt IS NOT NULL,max(valaszDt),rogzitesDt) AS mx FROM kerelem LEFT JOIN kerelemValasz USING (kerelemId) WHERE $W_lezaras $W GROUP BY kerelemId ORDER BY mx DESC";
+
+ $RESULT['kerelmek'] = db_query($q, array('debug'=>false,'fv' => 'getKerelmek', 'modul' => 'naplo_base', 'result' => 'indexed', 'values'=>$v));
+ $_kerelemIdk = array();
+ for ($i=0; $i<count($RESULT['kerelmek']); $i++) {
+ if ($RESULT['kerelmek'][$i]['kerelemId']>0) $_kerelemIdk[] = $RESULT['kerelmek'][$i]['kerelemId'];
+ }
+ if (is_array($_kerelemIdk) && count($_kerelemIdk)>0) {
+ $q = 'SELECT * FROM kerelemValasz WHERE kerelemId IN ('.implode(',',$_kerelemIdk).') ORDER BY valaszDt';
+ $RESULT['valaszok'] = db_query($q, array('fv' => 'getKerelmek', 'modul' => 'naplo_base', 'keyfield'=>'kerelemId','result' => 'multiassoc'));
+ }
+ return $RESULT;
+ }
+
+ function getSajatKerelmek($telephelyId='') {
+ $W = (isset($telephelyId) && $telephelyId!='') ? ' AND (telephelyId=%u OR telephelyId IS NULL)' : '';
+ $q = "SELECT * FROM kerelem WHERE userAccount='"._USERACCOUNT."' AND (lezarasDt IS NULL OR (lezarasDt > (curdate() - interval 1 day))) $W ORDER BY rogzitesDt DESC";
+ $RESULT['kerelmek'] = db_query($q, array('fv' => 'getSajatKerelmek', 'modul' => 'naplo_base', 'result' => 'indexed', 'values'=>array($telephelyId)));
+ for ($i=0; $i<count($RESULT['kerelmek']); $i++) {
+ $_kerelemIdk[] = $RESULT['kerelmek'][$i]['kerelemId'];
+ }
+ if (count($_kerelemIdk)>0) {
+ $q = 'SELECT * FROM kerelemValasz WHERE kerelemId IN ('.implode(',',$_kerelemIdk).') ORDER BY valaszDt';
+ $RESULT['valaszok'] = db_query($q, array('fv' => 'getKerelmek', 'modul' => 'naplo_base', 'keyfield'=>'kerelemId','result' => 'multiassoc'));
+ }
+
+ return $RESULT;
+ }
+
+ function hibaAdminRogzites($Adat) {
+ $kerelemId = $Adat['kerelemId'];
+ $valasz = $Adat['valasz'];
+ $kategoria = $Adat['kategoria'];
+ $userAccount = $Adat['jovahagyasAccount'];
+ $telephelyId = ($Adat['kerelemTelephelyId']!='') ? $Adat['kerelemTelephelyId'] : 'NULL';
+ $modosithat = false; // egyelőre nem használjuk :)
+ // jogosultság ellenőrzés
+ if (__VEZETOSEG===true || __NAPLOADMIN===true) {
+ $modosithat = true;
+ } else {
+ $q = "SELECT kerelemId FROM kerelem WHERE userAccount ='%s' AND kerelemId=%u";
+ $v = array(_USERACCOUNT,$kerelemId);
+ $checkKerelemId = db_query($q, array('fv' => 'hangya', 'result'=>'value', 'modul' => 'naplo_base', 'values' => $v));
+ if ($checkKerelemId!=$kerelemId) return false;
+ else $modosithat = true;
+ }
+ if ($valasz!='') {
+ $q = "INSERT INTO kerelemValasz (valasz,kerelemId,userAccount) VALUES ('%s',%u,'"._USERACCOUNT."')";
+ $v = array($valasz,$kerelemId);
+ db_query($q, array('fv' => 'hangya', 'modul' => 'naplo_base', 'values' => $v));
+ }
+ $q = "UPDATE kerelem SET kategoria='%s',telephelyId='%s' WHERE kerelemId=%u";
+ $v = array($kategoria,$telephelyId,$kerelemId);
+ db_query($q, array('fv' => 'hibaAdminRogzites', 'modul' => 'naplo_base', 'values' => $v));
+
+ if (__VEZETOSEG===true || __NAPLOADMIN===true) {
+ if (isset($Adat['jovahagy'])) {
+ $q = "UPDATE kerelem SET jovahagyasAccount='%s',jovahagyasDt=NOW() WHERE kerelemId=%u";
+ $v = array($userAccount, $kerelemId);
+ $extraTxt = '[státusz módosítás: Jóváhagyva]';
+ } elseif ($Adat['nemHagyJova']) {
+ //$q = "SELECT jovahagyasDt FROM kerelem WHERE kerelemId=%u";
+ //$jdt = db_query($q, array('fv' => 'hibaAdminRogzites', 'modul' => 'naplo_base', 'result' => 'value', 'values' => array($kerelemId)));
+ $q = "UPDATE kerelem SET jovahagyasDt=NULL WHERE kerelemId=%u";
+ $v = array($kerelemId);
+ $extraTxt = '[státusz módosítás: Nincs jóváhagyva]';
+ } elseif (isset($Adat['lezar'])) {
+ $q = "UPDATE kerelem SET lezarasDt=NOW() WHERE kerelemId=%u";
+ $v = array($kerelemId);
+ $extraTxt = '[státusz módosítás: Lezárva]';
+ } else {
+ //$q = "UPDATE kerelem SET valasz='%s' WHERE kerelemId=%u";
+ //$v = array($valasz, $kerelemId);
+ }
+ $R = db_query($q, array('fv' => 'hibaAdminRogzites', 'modul' => 'naplo_base', 'values' => $v));
+ if ($extraTxt!='') {
+ $q = "INSERT INTO kerelemValasz (valasz,kerelemId,userAccount) VALUES ('%s',%u,'"._USERACCOUNT."')";
+ $v = array($extraTxt,$kerelemId);
+ db_query($q, array('fv' => 'hangya', 'modul' => 'naplo_base', 'values' => $v));
+ }
+ }
+ return $R;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/kereso.php b/mayor-orig/www/include/modules/naplo/share/kereso.php
new file mode 100644
index 00000000..b2bf2cf6
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/kereso.php
@@ -0,0 +1,56 @@
+<?php
+
+ function getDiakokByPattern($pattern) {
+ if ($pattern=='') return false;
+ $q = "SELECT DISTINCT diak.diakId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS diakNev, oId, osztalyJel FROM `diak`
+ LEFT JOIN osztalyDiak ON (osztalyDiak.diakId=diak.diakId AND osztalyDiak.beDt<=NOW() AND (osztalyDiak.kiDt>=NOW() OR osztalyDiak.kiDt IS NULL))
+ LEFT JOIN " . __TANEVDBNEV . ".osztalyNaplo USING (osztalyId)
+ HAVING (diakNev LIKE '%s' OR oId LIKE '%s') ORDER BY diakNev LIMIT 100";
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%','%'.$pattern.'%')));
+ return $r;
+ }
+ function getTanarokByPattern($pattern) {
+ if ($pattern=='') return false;
+ $q = "SELECT tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev FROM `tanar` WHERE (kiDt IS NULL OR kiDt >=NOW()) HAVING tanarNev LIKE '%s' ORDER BY tanarNev LIMIT 100";
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%')));
+ return $r;
+ }
+ function getTankorokByPattern($pattern) {
+ if ($pattern=='') return false;
+ $q = "SELECT tankorId, tankorNev AS tankorNev FROM `tankor`HAVING tankorNev LIKE '%s' ORDER BY tankorNev LIMIT 100";
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%')));
+ return $r;
+ }
+ function getSzulokByPattern($pattern, $SET=array('diakokkal'=>false)) {
+ if ($pattern=='') return false;
+ if ($SET['diakokkal']!==true) {
+ $p= "TRIM(CONCAT_WS(' ',nevElotag, csaladinev, utonev)) ";
+ $q = "SELECT szuloId, $p AS szuloNev FROM `szulo` HAVING szuloNev LIKE '%s' ORDER BY szuloNev LIMIT 100";
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%')));
+
+ } else {
+
+ if (defined('__UZENO_SZULO_CSAK_ACCOUNTTAL') && __UZENO_SZULO_CSAK_ACCOUNTTAL === true)
+ $W = " AND userAccount!='' ";
+ else
+ $W = '';
+
+ $sr = getDiakokByPattern($pattern);
+ for ($i=0; $i<count($sr); $i++) {
+ $DIAKIDS[] = $sr[$i]['diakId'];
+ }
+ $subquery = 'LEFT JOIN diak ON (szuloId IN (anyaId,apaId,neveloId,gondviseloId))';
+ $p = "CONCAT(TRIM(CONCAT_WS(' ',nevElotag, csaladinev, utonev)), ' (',TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)),')' ) ";
+
+ $q2 = "SELECT szuloId, $p AS szuloNev FROM `szulo` $subquery WHERE TRIM(CONCAT_WS(' ',nevElotag, csaladinev, utonev)) LIKE '%s' $W LIMIT 100";
+ if (count($DIAKIDS)>0) {
+ $q1 = "SELECT szuloId, $p AS szuloNev FROM `szulo`$subquery WHERE diakId IN (".implode(',',$DIAKIDS).") $W LIMIT 100";
+ $q = "$q1 UNION ($q2)";
+ } else $q = "($q2)";
+ $r = db_query("$q ORDER BY szuloNev", array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array('%'.$pattern.'%')));
+
+ }
+ return $r;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/koszi.php b/mayor-orig/www/include/modules/naplo/share/koszi.php
new file mode 100644
index 00000000..3ce3ba83
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/koszi.php
@@ -0,0 +1,141 @@
+<?php
+
+ /* INTEZMENY */
+
+ function getKosziEsemenyek() {
+
+ $q = "SELECT * FROM kosziEsemeny ORDER BY kosziEsemenyNev";
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed'));
+
+ return $r;
+
+ }
+
+
+ function getKosziPont($kosziEsemenyId) {
+
+ if (!is_numeric($kosziEsemenyId)) return false;
+
+ $q = "SELECT * FROM kosziPont WHERE kosziEsemenyId = %u";
+ $v = array($kosziEsemenyId);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed', 'values'=>$v));
+
+ return $r;
+
+ }
+
+
+ /* TANEV */
+
+ function getKoszi($kosziEsemenyId) {
+
+ if (!is_numeric($kosziEsemenyId)) return false;
+
+ $q = "SELECT * FROM koszi WHERE kosziEsemenyId = %u ORDER BY dt,tanev,felev";
+ $v = array($kosziEsemenyId);
+ $r = db_query($q, array('modul'=>'naplo','result'=>'indexed', 'values'=>$v));
+
+ return $r;
+
+ }
+
+ function getKosziLista() {
+
+ $q = "SELECT * FROM koszi LEFT JOIN ".__INTEZMENYDBNEV.".kosziEsemeny USING (kosziEsemenyId)
+ WHERE tolDt IS NULL OR (tolDt<=NOW() AND (igDt is NULL OR igDt>=NOW()))
+ ORDER BY dt,tanev,felev";
+ $r = db_query($q, array('modul'=>'naplo','result'=>'indexed'));
+
+ return $r;
+
+ }
+
+
+ function getKosziEsemenyIdByKosziId($kosziId) {
+
+ $q = "SELECT kosziEsemenyId FROM koszi WHERE kosziId = %u";
+ $v = array($kosziId);
+ $r = db_query($q, array('modul'=>'naplo','result'=>'value', 'values'=>$v));
+
+ return $r;
+ }
+
+
+ function getKosziDiakIgazolandoLista($tipus='',$SET = array('tanarId'=>null, 'diakId'=>null)) {
+
+ if (__KOSZIADMIN ===true) {
+ $q = "SELECT *, IF (jovahagyasDt!='0000-00-00',1,0) AS jovahagyva FROM kosziDiak
+ LEFT JOIN kosziIgazoloTanar USING (kosziId)
+ LEFT JOIN kosziIgazoloOf USING (kosziId)
+ LEFT JOIN koszi USING (kosziId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".kosziEsemeny USING (kosziEsemenyId)
+ ";
+// $v = array($SET['diakId']);
+ $ret = db_query($q, array('modul'=>'naplo','result'=>'indexed'));
+ } elseif (is_numeric($SET['diakId'])) { // ide jön még a dök csoport!
+ $q = "SELECT *, IF (jovahagyasDt!='0000-00-00',1,0) AS jovahagyva FROM kosziDiak
+ LEFT JOIN kosziIgazoloDiak USING (kosziId)
+ LEFT JOIN koszi USING (kosziId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".kosziEsemeny USING (kosziEsemenyId)
+ WHERE jovahagyasDt='0000-00-00 00:00:00' AND kosziIgazoloDiak.diakId=%u
+ ORDER BY rogzitesDt";
+ $v = array($SET['diakId']);
+ $ret = db_query($q, array('modul'=>'naplo','result'=>'indexed', 'values'=>$v));
+ } elseif (is_numeric($SET['tanarId'])) {
+ $q = "SELECT *, IF (jovahagyasDt!='0000-00-00',1,0) AS jovahagyva FROM kosziDiak
+ LEFT JOIN kosziIgazoloTanar USING (kosziId)
+ LEFT JOIN kosziIgazoloOf USING (kosziId)
+ LEFT JOIN koszi USING (kosziId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".kosziEsemeny USING (kosziEsemenyId)
+ WHERE jovahagyasDt='0000-00-00 00:00:00' AND
+ (
+ (
+ (kosziIgazoloTanar.tanarId=%u AND kosziIgazoloOf.tanarId IS NULL) Or
+ (kosziIgazoloTanar.tanarId IS NULL AND kosziIgazoloOf.tanarId=%u)
+ ) OR (
+ koszi.igazolo LIKE '%%osztályfőnök%%' AND
+ diakId IN (
+ SELECT diakId FROM ".__INTEZMENYDBNEV.".osztalyTanar
+ LEFT JOIN ".__INTEZMENYDBNEV.".osztalyDiak USING (osztalyId)
+ WHERE tanarId=%u AND osztalyTanar.beDt<=NOW() AND (osztalyTanar.kiDt IS NULL OR osztalyTanar.kiDt>=NOW())
+ )
+ ) OR (
+ koszi.igazolo LIKE '%%tanár%%' AND
+ diakId IN (
+ SELECT diakId FROM ".__INTEZMENYDBNEV.".tankorTanar
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorDiak USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ WHERE tanarId=%u AND ".__INTEZMENYDBNEV.".tankor.targyId = koszi.targyId
+ )
+ )
+ )
+ ORDER BY rogzitesDt";
+
+ $v = array($SET['tanarId'],$SET['tanarId'],$SET['tanarId'],$SET['tanarId']);
+ $ret = db_query($q, array('modul'=>'naplo','result'=>'indexed', 'values'=>$v));
+
+ } else {
+ $ret = false;
+ }
+ return $ret;
+ }
+
+
+ /* DIAK */
+
+ function getKosziDiakLista($diakId) {
+
+ if ($diakId=='') return false;
+
+ $q = "SELECT *, IF (jovahagyasDt!='0000-00-00',1,0) AS jovahagyva FROM kosziDiak LEFT JOIN koszi USING (kosziId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".kosziEsemeny USING (kosziEsemenyId)
+ WHERE diakId = %u ORDER BY rogzitesDt,jovahagyasDt";
+ $v = array($diakId);
+ $r = db_query($q, array('modul'=>'naplo','result'=>'indexed', 'values'=>$v));
+
+ return $r;
+ }
+
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/munkakozosseg.php b/mayor-orig/www/include/modules/naplo/share/munkakozosseg.php
new file mode 100644
index 00000000..9a46f074
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/munkakozosseg.php
@@ -0,0 +1,84 @@
+<?php
+
+ function getMunkakozossegByTargyId($targyId) {
+ $q = "SELECT mkId FROM targy WHERE targyId=%u";
+ $mkId = db_query($q, array('fv' => 'getMunkakozossegByTargyId', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values'=>array($targyId)));
+ return getMunkakozossegById($mkId);
+ }
+
+ function getMunkakozossegById($id) {
+ return getMunkakozossegek(array("mkId=$id"),array('result' => 'record'));
+ }
+
+ function getMunkakozossegek($FILTER=array(),$SET=array('result' => 'indexed')) {
+
+
+ if ($SET['result'] == '') $SET['result'] = 'indexed';
+ $RESULT = array();
+
+ /* Általános filterező */
+ $QW = '';
+ if (is_array($FILTER) && count($FILTER)>0) {
+ $QW = " WHERE ".implode(' AND ',$FILTER);
+ }
+ if ($SET['idonly']===true || $SET['csakId']===true) $fields = "mkId";
+ else $fields="mkId,mkId AS munkakozossegId,leiras,leiras as mkNev,leiras as munkakozossegNev, mkVezId,TRIM((CONCAT_WS(' ',viseltNevElotag,viseltCsaladiNev,viseltUtonev))) AS mkVezNev";
+ $q = "SELECT $fields FROM munkakozosseg LEFT JOIN tanar ON mkVezId=tanarId".$QW.' ORDER BY leiras';
+ $RESULT = db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'getMunkakozossegek', 'result' => $SET['result']));
+
+ return $RESULT;
+
+ }
+
+ function getMunkakozossegByTanarId($tanarId, $SET = array('result' => 'idonly')) {
+
+ if ($SET['csakId']===true) $SET['result'] = 'idonly'; // Az egységesíítés nevében :o)
+ if ($SET['result'] == 'idonly') {
+ $q = "SELECT mkId AS munkakozossegId FROM mkTanar WHERE tanarId=%u";
+ return db_query($q, array('fv' => 'getMunkakozossegByTanarId','modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tanarId)));
+ } else {
+ $q = "SELECT mkId,mkId AS munkakozossegId,leiras, leiras AS mkNev, leiras AS munkakozossegNev,mkVezId
+ FROM munkakozosseg LEFT JOIN mkTanar USING (mkId) WHERE tanarId=%u ORDER BY leiras";
+ return db_query($q, array('fv' => 'getMunkakozossegByTanarId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanarId)));
+ }
+
+ }
+
+ function getVezetettMunkakozossegByTanarId($tanarId, $SET = array('result' => 'idonly'), $olr='') {
+
+ $lr = ($olr!='') ? $olr : db_connect('naplo_intezmeny');
+ if ($SET['csakId']===true) $SET['result'] = 'idonly'; // Az egységesíítés nevében :o)
+ if ($SET['result'] == 'idonly') {
+ //$q = "SELECT mkId AS munkakozossegId FROM munkakozosseg WHERE mkVezId=%u";
+ $q = "SELECT DISTINCT mkId AS munkakozossegId FROM munkakozosseg LEFT JOIN mkVezeto USING (mkId) WHERE mkVezId=%u OR tanarId=%u";
+ $R = db_query($q, array('fv' => 'getVezetettMunkakozossegByTanarId','modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tanarId, $tanarId)), $lr);
+ } else {
+ //$q = "SELECT mkId,mkId AS munkakozossegId,leiras, leiras AS mkNev, leiras AS munkakozossegNev,mkVezId
+ // FROM munkakozosseg WHERE mkVezId=%u ORDER BY leiras";
+ $q = "SELECT DISTINCT mkId,mkId AS munkakozossegId,leiras, leiras AS mkNev, leiras AS munkakozossegNev,mkVezId
+ FROM munkakozosseg LEFT JOIN mkVezeto USING (mkId) WHERE mkVezId=%u OR tanarId=%u ORDER BY leiras";
+ $R = db_query($q, array('fv' => 'getVezetettMunkakozossegByTanarId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanarId,$tanarId)),$lr);
+ }
+ if ($olr=='') db_close($lr);
+ return $R;
+ }
+
+ function getMunkakozossegNevById($munkakozossegId) {
+
+ $q = "SELECT leiras AS munkakozossegNev FROM `munkakozosseg` WHERE mkId=%u";
+ return db_query($q, array('fv' => 'getmunkakozossegNevById', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($munkakozossegId)));
+
+ }
+
+ function getMunkakozossegTanaraMatrix() {
+ $q = "SELECT * FROM mkTanar";
+ $r = db_query($q,array('fv' => '', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'));
+ for ($i=0; $i<count($r); $i++) {
+ $R['mkTanar'][$r[$i]['mkId']][] = $r[$i]['tanarId'];
+ $R['tanarMk'][$r[$i]['tanarId']][] = $r[$i]['mkId'];
+ }
+ return $R;
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/mysql.php b/mayor-orig/www/include/modules/naplo/share/mysql.php
new file mode 100644
index 00000000..30ccbab0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/mysql.php
@@ -0,0 +1,184 @@
+<?php
+
+ define('_WEBSERVER_ADDR',$_SERVER['SERVER_ADDR']);
+
+ function createDatabase($dbName, $queryFile, $rootUser = 'root', $rootPassword = '', $convert = array()) {
+
+ global $MYSQL_DATA;
+
+ $ok = true;
+
+ // Kötelező paraméterek ellenőrzése
+ if ($dbName == '' or $rootUser == '' /* or $rootPassword == '' // SuliX root jelszó nélküli alapértelmezésben // */) {
+ $_SESSION['alert'][] = 'message:empty_field:createDatabase';
+ return false;
+ }
+
+ /* Ki kell találni, hány SQL szerverünk van! */
+ $HOSTS = _setHosts();
+
+ for ($h=0; $h<count($HOSTS); $h++) {
+ $host = $HOSTS[$h];
+ // Csatlakozás root-ként
+ $lr = db_connect(null, array('priv' => 'root', 'host'=> $host, 'force' => true, 'username' => $rootUser, 'password' => $rootPassword, 'db' => 'mayor_naplo', 'fv' => 'createDatabase'));
+ if (!$lr) return false;
+
+ // Kliens karakterkódolása
+ db_query("SET CHARACTER SET utf8", array('fv'=>'createDatabase#1'), $lr);
+
+ // Az adatbázis létrehozása
+ $q = "CREATE DATABASE `%s` CHARACTER SET utf8 COLLATE utf8_hungarian_ci";
+ $r = db_query($q, array('fv'=>'createDatabase#2', 'values' => array($dbName)), $lr);
+ if ($r !== true) { // pl. ha már létezik...
+ db_close($lr);
+ return false;
+ }
+
+ /* Minden hoston létrehozzuk a usereket! Write/Read - et egyaránt! Még akkor is, ha csak a masterről olvasunk, slave-re írunk */
+ $password = $MYSQL_DATA['naplo_base']['pwWrite'];
+ $user = $MYSQL_DATA['naplo_base']['userWrite'];
+ $userHost = ($host=='localhost' || $host=='127.0.0.1') ? 'localhost' : _WEBSERVER_ADDR;
+ $q = "GRANT ALL ON `%s`.* TO '%s'@'%s' IDENTIFIED BY '%s'";
+ $r = db_query($q, array('fv' => 'createDatabase#3', 'values' => array($dbName, $user, $userHost, $password)), $lr);
+ if ($r !== true) $ok = false;
+
+ $password = $MYSQL_DATA['naplo_base']['pwRead'];
+ $user = $MYSQL_DATA['naplo_base']['userRead'];
+ $userHost = ($host=='localhost' || $host=='127.0.0.1') ? 'localhost' : _WEBSERVER_ADDR;
+ $q = "GRANT SELECT,EXECUTE ON `%s`.* TO '%s'@'%s' IDENTIFIED BY '%s'";
+ $r = db_query($q, array('fv' => 'createDatabase#4', 'values' => array($dbName, $user, $userHost, $password)), $lr);
+ if ($r !== true) $ok = false;
+
+ if (db_query("USE `%s`", array('fv' => 'createDatabase#use', 'values' => array($dbName)), $lr) && $ok) {
+
+ $fp = fopen($queryFile, 'r');
+ $query = fread($fp, filesize($queryFile));
+ fclose($fp);
+
+ // A tárolt eljárásoknak, függvényeknek "DELIMITER //" és "DELIMITER ; //" között kell lenniük - egy blokkban a file végén!
+ list($query, $delimiter) = explode('DELIMITER //', $query);
+
+ // Tábladefiníciók - normál query-k
+ $QUERIES = explode(';', str_replace("\n", '', $query));
+ for ($i = 0; $i < count($QUERIES); $i++) {
+ $q = $QUERIES[$i];
+ if (trim($q) != '' and substr($q, 0, 2) != '--' and substr($q, 0, 3) != '/*!') {
+ if (is_array($convert))
+ foreach ( $convert as $mit=>$mire ) $q = str_replace($mit,$mire,$q);
+ $r = db_query($q, array('fv'=>'createDatabase#6-'.$i), $lr);
+ if ($r !== true) { $ok = false; break; }
+ } elseif ($q != '') {
+ $_SESSION['alert'][] = ':query_error:'.$q;
+ }
+ }
+
+ if ($ok !== false) {
+ list($delimiter, $end) = explode('DELIMITER ; //',$delimiter);
+ $procQueries = explode('//', $delimiter);
+ for ($i = 0; $i < count($procQueries); $i++) {
+ $q = trim($procQueries[$i]); // ebben vannak most ;-ők és sortörések...
+ if ($q[strlen($q)-1] == ';') $q = substr($q, 0, -1); // A végén nem lehet ; !!
+ if ($q != '') {
+ if (is_array($convert))
+ foreach ( $convert as $mit=>$mire ) $q = str_replace($mit,$mire,$q);
+ $r = db_query($q, array('fv'=>'createDatabase#7-'.$i), $lr);
+ if ($r !== true) { $ok = false; break; }
+ }
+ }
+ } // if ok
+ } else {
+ $ok = false;
+ }
+
+ if ($ok === false) {
+ $_SESSION['alert'][] = 'message:sql_db_dropped:'.$dbName;
+ db_query("DROP DATABASE `%s`", array('fv' => 'createDatabase#7', 'values' => array($dbName)), $lr);
+ }
+ } // HOSTS ciklusa
+
+ db_close($lr);
+ return $ok;
+
+ }
+
+ function revokeWriteAccessFromDb($dbName, $rootUser = 'root', $rootPassword = '') {
+
+ global $MYSQL_DATA;
+
+ // Kötelező paraméterek ellenőrzése
+ if ($dbName == '' or $rootUser == '' or $rootPassword == '') {
+ $_SESSION['alert'][] = 'message:empty_field:revokeWriteAccessFromDb';
+ return false;
+ }
+
+ /* Minden MySQL hostról elvesszük a jogot */
+ /* Ki kell találni, hány SQL szerverünk van! */
+ $HOSTS = _setHosts();
+
+ for ($h=0; $h<count($HOSTS); $h++) {
+ $host = $HOSTS[$h];
+
+ // Csatlakozás root-ként
+ $lr = db_connect(null, array('priv' => 'root', 'force' => true, 'host'=>$host, 'username' => $rootUser, 'password' => $rootPassword, 'db' => 'mayor_naplo', 'fv' => 'revokeWriteAccessFromDb'));
+ if (!$lr) return false;
+
+ // jogok elvétele a write usertől
+ $user = $MYSQL_DATA['naplo_base']['userWrite'];
+ $userHost = ($host=='localhost' || $host=='127.0.0.1') ? 'localhost' : _WEBSERVER_ADDR;
+ $q = "REVOKE ALTER,CREATE,DROP,INSERT,UPDATE,DELETE ON `%s`.* FROM '%s'@'%s'";
+ $r = db_query($q, array('fv' => 'revokeWriteAccessFromDb', 'values' => array($dbName, $user, $userHost)), $lr);
+ db_close($lr);
+ }
+ return $r;
+
+ }
+
+ function grantWriteAccessToDb($dbName, $rootUser = 'root', $rootPassword = '') {
+
+ global $MYSQL_DATA;
+
+ // Kötelező paraméterek ellenőrzése
+ if ($dbName == '' or $rootUser == '' or $rootPassword == '') {
+ $_SESSION['alert'][] = 'message:empty_field:grantWriteAccessToDb';
+ return false;
+ }
+
+ /* Ki kell találni, hány SQL szerverünk van! */
+ $HOSTS = _setHosts();
+
+ for ($h=0; $h<count($HOSTS); $h++) {
+ $host = $HOSTS[$h];
+
+ // Csatlakozás root-ként
+ $lr = db_connect(null, array('priv' => 'root', 'force' => true, 'host'=>$host, 'username' => $rootUser, 'password' => $rootPassword, 'db' => 'mayor_naplo', 'fv' => 'grantWriteAccessToDb'));
+ if (!$lr) return false;
+
+ // Írási jog...
+ $user = $MYSQL_DATA['naplo_base']['userWrite'];
+ $userHost = ($host=='localhost' || $host=='127.0.0.1') ? 'localhost' : _WEBSERVER_ADDR;
+ $q = "GRANT ALL ON `%s`.* TO '%s'@'%s'";
+ $r = db_query($q, array('fv' => 'grantWriteAccessToDb', 'values' => array($dbName, $user, $userHost)), $lr);
+
+ db_close($lr);
+ }
+ return $r;
+
+ }
+
+ function _setHosts() {
+ global $MYSQL_DATA;
+ $HOSTS = array();
+ foreach ( array('hostWrite','hostRead','host') as $_host ) {
+ if ($MYSQL_DATA['naplo_base'][$_host]!='' && !in_array($MYSQL_DATA['naplo_base'][$_host],$HOSTS)) {
+ $HOSTS[] = $MYSQL_DATA['naplo_base'][$_host];
+ }
+ }
+ if (count($HOSTS)==0)
+ if ($MYSQL_DATA['host']=='')
+ $HOSTS[] = 'localhost';
+ else
+ $HOSTS[] = $MYSQL_DATA['host'];
+ return $HOSTS;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/nap.php b/mayor-orig/www/include/modules/naplo/share/nap.php
new file mode 100644
index 00000000..e66457f9
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/nap.php
@@ -0,0 +1,332 @@
+<?php
+/*
+ getNapTipusok
+ getNapokSzama
+ _genNapok
+ getTanitasiNapAdat
+ getTanitasiNapSzama
+ orarendiHetekHozzarendelese
+ napokHozzaadasa
+ getMunkatervek
+ getMunkatervByOsztalyId
+ getMunkatervByTanarId
+ getTanitasiHetekSzama
+*/
+ global $UNNEPNAPOK;
+ $UNNEPNAPOK = array(
+ '08-20' => 'Szent István király ünnepe',
+ '10-23' => '56-os forradalom ünnepe',
+ '11-01' => 'Mindenszentek',
+ '12-25' => 'Karácsony első napja',
+ '12-26' => 'Karácsony második napja',
+ '01-01' => 'Újév',
+ '03-15' => '48-as forradalom és szabadságharc ünnepe',
+ '05-01' => 'Munka Ünnepe'
+ );
+
+ function getNapTipusok() {
+
+ return getEnumField('naplo', 'nap', 'tipus');
+
+ }
+
+ function getNapokSzama($SET = array('osztalyId' => null, 'munkatervId' => 1)) {
+
+ if (isset($SET['osztalyId'])) {
+ $vegzosOsztalyJellegIds = getVegzosOsztalyJellegIds();
+ $oAdat = getOsztalyAdat($SET['osztalyId']);
+ if (
+ in_array($oAdat['osztalyJellegId'], $vegzosOsztalyJellegIds) // érettségiző osztály
+ && $oAdat['vegzoTanev'] == __TANEV // most végez
+ ) {
+ $q = "SELECT tipus, COUNT(*) AS db FROM nap
+ LEFT JOIN munkatervOsztaly USING (munkatervId)
+ LEFT JOIN munkaterv USING (munkatervId)
+ WHERE osztalyId=%u AND dt <= vegzosZarasDt
+ GROUP BY tipus";
+ } else {
+ $q = "SELECT tipus, COUNT(*) AS db FROM nap LEFT JOIN munkatervOsztaly USING (munkatervId) WHERE osztalyId=%u GROUP BY tipus";
+ }
+ $v = array($SET['osztalyId']);
+ } else {
+ if (!isset($SET['munkatervId'])) $SET['munkatervId'] = 1;
+ $q = "SELECT tipus, COUNT(*) AS db FROM nap WHERE munkatervId=%u GROUP BY tipus";
+ $v = array($SET['munkatervId']);
+ }
+ return db_query($q, array('fv' => 'getNapokSzama', 'modul' => 'naplo', 'result' => 'keyvaluepair', 'values' => $v));
+ }
+
+ function _genNapok($tolDt,$igDt) {
+ $q = "SELECT TO_DAYS('%s') - TO_DAYS('%s') AS diff";
+ $nod = db_query($q, array('fv' => '_genNapok', 'modul' => 'naplo_base', 'result' => 'value', 'values' => array($igDt, $tolDt)));
+ $_stamp = strtotime($tolDt);
+ for ($i = 0; $i <= $nod; $i++) {
+ $__stamp = mktime(0, 0, 0, date('m', $_stamp), date('d', $_stamp)+$i , date('y', $_stamp));
+ $NAPOK[$i] = date('Y-m-d', $__stamp);
+ }
+ return $NAPOK;
+ }
+
+ // Az ora.php függvényeinek része ide tartozik!
+ /*
+ A függvény minden olyan nap esetén emeli a tanítási napok számát 1-gyel, melyen a megadott munkatervek legalább
+ egyikén tanítási nap van. Értelmes ez így? (amúgy mit jelentene a tanár haladási naplójában a tanítási nap szám?)
+ */
+ function getTanitasiNapAdat($DT, $SET = array('munkatervIds' => array())) { // refer to nyomtatas/haladasinaplo.php
+ if (is_array($DT) && count($DT)>0) {
+ if (!is_array($SET['munkatervIds']) || count($SET['munkatervIds']) == 0) $SET['munkatervIds'] = array(1);
+ $lr = db_connect('naplo');
+ $q = "SET @napszam=(SELECT COUNT(DISTINCT dt) FROM nap
+ WHERE tipus IN ('tanítási nap','speciális tanítási nap') AND dt<'".$DT[0]."'
+ AND munkatervId IN (".implode(',', array_fill(0, count($SET['munkatervIds']), '%u'))."))";
+ db_query($q, array('fv' => 'getTanitasiNapAdat', 'modul' => 'naplo', 'values' => $SET['munkatervIds']), $lr);
+ $q = "SELECT dt,@napszam:=@napszam+1 AS napszam FROM nap WHERE tipus IN ('tanítási nap','speciális tanítási nap')
+ AND dt IN ('".implode("','",$DT)."')
+ AND munkatervId IN (".implode(',', array_fill(0, count($SET['munkatervIds']), '%u')).") GROUP BY dt";
+ $v = array($dt);
+ $v = $SET['munkatervIds'];
+ $ret=db_query($q, array('fv' => 'share/nap/getTanitasiNapAdat', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield'=>'dt', 'values' => $v),$lr);
+ db_close($lr);
+ return $ret;
+ } else {
+ return false;
+ }
+ }
+
+ function getTanitasiNapSzama($dt, $munkatervId) {
+ $q = "SELECT COUNT(*) FROM nap WHERE tipus IN ('tanítási nap','speciális tanítási nap') AND dt<='%s' AND munkatervId=%u";
+ return db_query($q, array('fv' => 'getTanitasiNapSzama', 'modul' => 'naplo', 'result' => 'value', 'values' => array($dt, $munkatervId)));
+ }
+
+ /*
+ Az órarendi hetek hozzárendelése mindig az összes munkatervet érintő változtatás!
+ */
+ function orarendiHetekHozzarendelese($tolDt = '', $igDt = '', $Hetek = array(1), $olr = '') {
+
+ global $_TANEV;
+
+ if ($tolDt == '') $tolDt = $_TANEV['kezdesDt'];
+ if ($igDt == '') $igDt = $_TANEV['zarasDt'];
+
+ if ($olr == '') $lr = db_connect('naplo', array('fv' => 'orarendiHetekHozzarendelese'));
+ else $lr = $olr;
+
+ // Az összes munkatervre elvégzi a hozzárendelést...
+ $q = "SELECT dt,tipus,munkatervId FROM nap WHERE dt>='%s' AND dt<='%s' AND tipus='tanítási nap' ORDER BY dt";
+ $v = array($tolDt, $igDt, $munkatervId);
+ $r = db_query($q, array('fv' => 'orarendiHetekHozzarendelese', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if (!$r) { if ($olr == '') db_close($lr); return false; }
+
+ $i = array(); $het = $Hetek[0]; $dow = array();
+ foreach ($r as $key => $val) {
+ $dt = $val['dt'];
+ $tipus = $val['tipus'];
+ $munkatervId = $val['munkatervId'];
+ $elozo_dow[$munkatervId] = $dow[$munkatervId];
+ // DOW lehetne munkatervenként is!
+ $dow[$munkatervId] = date('w',strtotime($dt)); if ($dow[$munkatervId] == 0) $dow[$munkatervId] = 7; // Vasárnap a hét utolsó napja - nálunk
+ // csak a $dow-okat nézzük, ha tehát egy keddi nap után a következő heti csütörtök jön, akkor nem vált hetet!
+ if ($elozo_dow[$munkatervId] >= $dow[$munkatervId]) {
+ $i[$munkatervId] = ($i[$munkatervId]+1) % count($Hetek);
+ $het = $Hetek[$i[$munkatervId]];
+ }
+ if ($het=='') $het=1; //szkúzi...
+ if ($tipus = 'tanítási nap' && is_numeric($het)) {
+ $q = "UPDATE nap SET orarendiHet=%u WHERE dt='%s' AND tipus='tanítási nap' AND munkatervId=%u";
+ $v = array($het, $dt, $munkatervId);
+ } else {
+ $q = "UPDATE nap SET orarendiHet=0 WHERE dt='%s' AND tipus='tanítási nap' AND munkatervId=%u";
+ $v = array($dt, $munkatervId);
+ }
+ $r2 = db_query($q, array('fv' => 'orarendiHetekHozzarendelese', 'modul' => 'naplo', 'values' => $v), $lr);
+ if (!$r2) { if ($olr == '') db_close($lr); return false; }
+ }
+
+ if ($olr == '') db_close($lr);
+
+ }
+
+ /**
+ * Törli, majd felveszi a megadott dátumok közötti napokat - minden munkatervhez!
+ **/
+ function napokHozzaadasa($tanev, $tolDt, $igDt, $tanevAdat, $lr = null) {
+
+ global $UNNEPNAPOK;
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $r = array();
+ $q = "DELETE FROM `$tanevDb`.`nap` WHERE '%s'<=dt AND dt<='%s'";
+ $v = array($tolDt, $igDt);
+ $r[] = db_query($q, array('fv' => 'napokHozzáadása/delete', 'modul' => 'naplo', 'values' => $v), $lr);
+ for ($stamp = strtotime($tolDt.' 08:00:00'); $stamp <= strtotime($igDt.' 08:00:00');$stamp = $stamp + 24*60*60 ) {
+ $dt = date('Y-m-d', $stamp);
+ $ho_nap = date('m-d', $stamp);
+ $ho = date('m', $stamp);
+ $dow = date('w', $stamp);
+ if ($UNNEPNAPOK[$ho_nap] != '') { // Fix dátumú, állami ünnepnapok
+ $tipus = 'tanítási szünet';
+ $megjegyzes = $UNNEPNAPOK[$ho_nap];
+ $orarendiHet = 0;
+ } elseif ($dow == '0' or $dow == '6') { // Hétvégék
+ $tipus = 'tanítási szünet';
+ $megjegyzes = '';
+ $orarendiHet = 0;
+ } elseif ($ho == 7) { // Július hónap - nyári szünet
+ $tipus = 'tanítási szünet';
+ $megjegyzes = 'Nyári szünet';
+ $orarendiHet = 0;
+ } elseif (strtotime($tanevAdat['zarasDt'])<strtotime($dt) || strtotime($dt) < strtotime($tanevAdat['kezdesDt'])) {
+ $tipus = 'szorgalmi időszakon kívüli munkanap';
+ $megjegyzes = '';
+ $orarendiHet = 0;
+ } else {
+ $tipus = 'tanítási nap';
+ $megjegyzes = '';
+ $orarendiHet = 1;
+ }
+
+ $q = "INSERT INTO `$tanevDb`.`nap` (dt,tipus,megjegyzes,orarendiHet,munkatervId)
+ SELECT '%s' AS dt, '%s' AS tipus, '%s' AS megjegyzes, %u AS orarendiHet, munkatervId
+ FROM `$tanevDb`.`munkaterv`";
+ $v = array($dt, $tipus, $megjegyzes, $orarendiHet);
+ $r[] = db_query($q, array('fv' => 'napokHozzáadása/insert', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ }
+ return !in_array(false, $r);
+
+ }
+
+ function getMunkatervek($SET = array('result' => 'indexed')) {
+ if ($SET['result']==='idonly') {
+ $q = "SELECT munkatervId FROM munkaterv";
+ } else {
+ $q = "SELECT * FROM munkaterv";
+ }
+ $R = db_query($q, array('fv' => 'getMunkatervek', 'modul' => 'naplo', 'result' => $SET['result'], 'keyfield' => 'munkatervId'));
+ return $R;
+ }
+
+ function getMunkatervByOsztalyId($osztalyId, $SET = array('result' => 'value')) {
+
+ if (!is_array($osztalyId)) $osztalyId = array($osztalyId);
+ if (count($osztalyId) == 0) return false;
+ $q = "SELECT DISTINCT munkatervId FROM munkaterv LEFT JOIN munkatervOsztaly USING (munkatervId) WHERE osztalyId IN (".implode(',',array_fill(0, count($osztalyId), '%u')).")";
+ $v = $osztalyId;
+ return db_query($q, array('fv' => 'getMunkatervByOsztalyId', 'modul' => 'naplo', 'values'=>$v, 'result' => $SET['result']));
+
+ }
+ function getMunkatervByDiakId($diakId, $SET = array('tolDt'=>null, 'igDt'=>null)) {
+
+ if (!is_array($diakId)) $diakId = array($diakId);
+ if (count($diakId) == 0) return false;
+ $q = "SELECT DISTINCT munkatervId FROM munkaterv LEFT JOIN munkatervOsztaly USING (munkatervId) LEFT JOIN `".__INTEZMENYDBNEV."`.osztalyDiak USING (osztalyId) WHERE diakId IN (".implode(',',array_fill(0, count($diakId), '%u')).")";
+ $v = $diakId;
+ return db_query($q, array('fv' => 'getMunkatervByOsztalyId', 'modul' => 'naplo', 'values'=>$v, 'result' => 'value'));
+
+ }
+
+ /**
+ * A függvény az orarendiOra tábla alapján keresi meg a tanár tanköreit, nem a tankorTanar alapján!!!!
+ *
+ **/
+ function getMunkatervByTanarId($tanarId, $SET = array('result' => 'indexed', 'tanev'=>__TANEV, 'tolDt'=>null, 'igDt'=>null)) {
+
+ $tanev = isset($SET['tanev'])?$SET['tanev']:__TANEV;
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+ if (!is_array($tanarId)) $tanarId = array($tanarId);
+ // lekérdezzük a tankorTanar tábla alapján a tanárhoz tartozó tanköröket, majd ezek osztályaihoz tartozó munkaterveket
+ $q = "SELECT DISTINCT osztalyId FROM tankorTanar LEFT JOIN tankorOsztaly USING (tankorId)
+ WHERE tanarId IN (".implode(',', array_fill(0, count($tanarId), '%u')).") AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt)";
+ $v = mayor_array_join($tanarId, array($igDt, $tolDt));
+ $osztalyId = db_query($q, array('fv'=>'getMunkatervByTanarId', 'modul'=>'naplo_intezmeny', 'result'=>'idonly', 'values'=>$v));
+
+ return getMunkatervByOsztalyId($osztalyId, $SET);
+ }
+
+ /*
+ A függvény munkatervId, osztalyId vagy tankorId (az egyik megadása kötelező!) alapján adja meg az összes, vagy a végzős tanítási hetek számát.
+ Ha nincs megadva, hogy az osztály vagy tankör végzős-e, akkor lekérdezzük, hogy érettségiző osztály-e az osztályjelleg alapján.
+ */
+ function getTanitasiHetekSzama($SET = array('munkatervId'=>null, 'osztalyId'=>null, 'vegzos'=>false)) {
+
+ if ($SET['munkatervId'] != '') {
+ if ($SET['vegzos']) {
+ $q = "SELECT CEIL(COUNT(*)/%u) AS tanitasiHet FROM nap
+ WHERE tipus IN ('tanítási nap','speciális tanítási nap') AND munkatervId=%u
+ AND dt<=(SELECT vegzosZarasDt FROM munkaterv WHERE munkatervId=nap.munkatervId)";
+ } else {
+ $q = "SELECT CEIL(COUNT(*)/%u) AS tanitasiHet FROM nap
+ WHERE tipus IN ('tanítási nap','speciális tanítási nap') AND munkatervId=%u";
+ }
+ $v = array(__TANITASINAP_HETENTE, $SET['munkatervId']);
+ } elseif ($SET['osztalyId'] != '') {
+ if (!isset($SET['vegzos'])) {
+ $VO = getVegzosOsztalyok(array('tanev'=>__TANEV,'result'=>'idonly','vizsgazo'=>true));
+ $SET['vegzos'] = (is_array($VO)&&in_array($SET['osztalyId'],$VO));
+ }
+ if ($SET['vegzos']) {
+ $q = "SELECT CEIL(COUNT(*)/%u) AS tanitasiHet FROM nap LEFT JOIN munkatervOsztaly USING (munkatervId)
+ WHERE tipus IN ('tanítási nap','speciális tanítási nap')
+ AND osztalyId=%u
+ AND dt<=(SELECT vegzosZarasDt FROM munkaterv WHERE munkatervId=nap.munkatervId)";
+ } else {
+ $q = "SELECT CEIL(COUNT(*)/%u) AS tanitasiHet FROM nap LEFT JOIN munkatervOsztaly USING (munkatervId)
+ WHERE tipus IN ('tanítási nap','speciális tanítási nap')
+ AND osztalyId=%u";
+ }
+ $v = array(__TANITASINAP_HETENTE, $SET['osztalyId']);
+ } elseif ($SET['tankorId'] != '') {
+ if (!isset($SET['vegzos'])) {
+ $SET['vegzos'] = tankorVegzosE($tankorId, __TANEV, array('tagokAlapjan' => true, 'tolDt' => null, 'igDt' => null));
+ }
+ if ($SET['vegzos']) {
+ $q = "SELECT CEIL(COUNT(DISTINCT dt)/%u) AS tanitasiHet FROM nap LEFT JOIN munkatervOsztaly USING (munkatervId)
+ WHERE tipus IN ('tanítási nap','speciális tanítási nap')
+ AND osztalyId IN (SELECT osztalyId FROM ".__INTEZMENYDBNEV.".tankorOsztaly WHERE tankorId=%u)
+ AND dt<=(SELECT vegzosZarasDt FROM munkaterv WHERE munkatervId=nap.munkatervId)";
+ } else {
+ $q = "SELECT CEIL(COUNT(DISTINCT dt)/%u) AS tanitasiHet FROM nap LEFT JOIN munkatervOsztaly USING (munkatervId)
+ WHERE tipus IN ('tanítási nap','speciális tanítási nap')
+ AND osztalyId IN (SELECT osztalyId FROM ".__INTEZMENYDBNEV.".tankorOsztaly WHERE tankorId=%u)";
+ }
+ $v = array(__TANITASINAP_HETENTE, $SET['tankorId']);
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:getTanitasiHetekSzama';
+ return false;
+ }
+
+ if (__TANITASI_HETEK_OVERRIDE === true) {
+ if ($SET['vegzos']) {
+ if (defined('___VEGZOS_TANITASI_HETEK_SZAMA')) return ___VEGZOS_TANITASI_HETEK_SZAMA;
+ } else {
+ if (defined('___TANITASI_HETEK_SZAMA')) return ___TANITASI_HETEK_SZAMA;
+ }
+ }
+ return db_query($q, array('debug'=>false,'fv'=>'getTanitasiHetekSzama','modul'=>'naplo','result'=>'value','values'=>$v));
+ }
+
+ function getOsztalyUtolsoTanitasiNap($osztalyId, $tanev=__TANEV) {
+
+ global $_TANEV;
+
+ if ($tanev == __TANEV) $TA = $_TANEV;
+ else $TA = getTanevAdat($tanev);
+ $tanevDb = tanevDbNev(__INTEZMENY,$tanev);
+
+ // idén érettségiző vagy szakmai vizsgát tevő osztály-e
+ $q = "SELECT COUNT(*) FROM osztaly LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId)
+ WHERE vegzesKovetelmenye IN ('érettségi vizsga','szakmai vizsga') AND vegzoTanev=%u AND osztalyId=%u";
+ $v = array($tanev, $osztalyId);
+ $vizsgazoE = (db_query($q, array('fv'=>'getOsztalyUtolsoTanitasiNap','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v)) == 1);
+
+ if ($vizsgazoE) {
+ $q = "SELECT vegzosZarasDt FROM `".$tanevDb."`.munkaterv LEFT JOIN `".$tanevDb."`.munkatervOsztaly USING (munkatervId) WHERE osztalyId=%u";
+ return db_query($q, array('debug'=>false,'fv'=>'getOsztalyUtolsoTanitasiNap/dt','modul'=>'naplo','result'=>'value','values'=>array($osztalyId)));
+ } else {
+ return $TA['zarasDt'];
+ }
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/ora.php b/mayor-orig/www/include/modules/naplo/share/ora.php
new file mode 100644
index 00000000..a2c874a3
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/ora.php
@@ -0,0 +1,608 @@
+<?php
+
+ function getOraAdatById($oraId, $tanev = __TANEV, $olr = null) {
+
+ $tanev = readVariable($tanev, 'numeric unsigned', __TANEV);
+
+ if (!isset($tanev)) return false;
+
+ if ($oraId != '') {
+
+ $q = "SELECT DISTINCT oraId,
+ dt,
+ ora,
+ ki,
+ kit,
+ ora.tankorId AS tankorId,
+ teremId,
+ ora.leiras AS leiras,
+ ora.tipus AS tipus,
+ eredet,
+ TRIM(CONCAT_WS(' ', t1.viseltNevElotag, t1.viseltCsaladiNev, t1.viseltUtonev)) AS kiCn,
+ TRIM(CONCAT_WS(' ', t2.viseltNevElotag, t2.viseltCsaladiNev, t2.viseltUtonev)) AS kitCn,
+ tankorNev,
+ feladatTipusId,
+ munkaido
+ FROM `%s`.ora
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tanar AS t1 ON ki=t1.tanarId
+ LEFT JOIN ".__INTEZMENYDBNEV.".tanar AS t2 ON kit=t2.tanarId
+ LEFT JOIN ".__INTEZMENYDBNEV.".feladatTipus USING (feladatTipusId)
+ WHERE oraId=%u AND (tanev=%u OR feladatTipusId IS NOT NULL)";
+ $v = array(tanevDbNev(__INTEZMENY, $tanev), $oraId, $tanev);
+ return db_query($q, array('fv' => 'getOraAdatById', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v), $olr);
+
+ } else {
+ // nincs id
+ return false;
+ }
+ }
+
+ function getOraAdatByTankor($tankorId, $olr = '') {
+
+ if ($tankorId != '') {
+
+ $q = "SELECT DISTINCT oraId,
+ dt,
+ ora,
+ ki,
+ kit,
+ ora.tankorId AS tankorId,
+ teremId,
+ ora.leiras AS leiras,
+ ora.tipus AS tipus,
+ eredet,
+ TRIM(CONCAT_WS(' ', t1.viseltNevElotag, t1.viseltCsaladiNev, t1.viseltUtonev)) AS kiCn,
+ TRIM(CONCAT_WS(' ', t2.viseltNevElotag, t2.viseltCsaladiNev, t2.viseltUtonev)) AS kitCn,
+ tankorNev,
+ feladatTipusId,
+ munkaido
+ FROM ".__TANEVDBNEV.".ora
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tanar AS t1 ON ki=t1.tanarId
+ LEFT JOIN ".__INTEZMENYDBNEV.".tanar AS t2 ON kit=t2.tanarId
+ LEFT JOIN ".__INTEZMENYDBNEV.".feladatTipus USING (feladatTipusId)
+ WHERE tankorId=%u AND tipus NOT LIKE 'elmarad%%' AND (tanev=".__TANEV." OR feladatTipusId IS NOT NULL)
+ ORDER BY dt DESC,ora DESC,tankorId";
+ return db_query($q, array('fv' => 'getOraAdatByTankor', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($tankorId)), $olr);
+
+ } else {
+ // nincs id
+ return false;
+ }
+ }
+
+ function getHelyettesitettOra($tolDt, $igDt) {
+
+ $q = "SELECT DISTINCT oraId,
+ dt,
+ ora,
+ ki,
+ kit,
+ ora.tankorId AS tankorId,
+ teremId,
+ ora.leiras AS leiras,
+ ora.tipus AS tipus,
+ eredet,
+ TRIM(CONCAT_WS(' ', t1.viseltNevElotag, t1.viseltCsaladiNev, t1.viseltUtonev)) AS kiCn,
+ TRIM(CONCAT_WS(' ', t2.viseltNevElotag, t2.viseltCsaladiNev, t2.viseltUtonev)) AS kitCn,
+ tankorNev,
+ munkaido
+ FROM ".__TANEVDBNEV.".ora
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tanar AS t1 ON ki=t1.tanarId
+ LEFT JOIN ".__INTEZMENYDBNEV.".tanar AS t2 ON kit=t2.tanarId
+ WHERE (
+ tipus IN ('helyettesítés','felügyelet','összevonás','elmarad','elmarad máskor','normál máskor')
+ or eredet='plusz'
+ )
+ AND tanev=".__TANEV." AND '%s' <= dt AND dt <= '%s'
+ ORDER BY dt, ora, ki";
+ return db_query($q, array('fv' => 'getHelyettesítettOrar', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($tolDt, $igDt)), $olr);
+
+ }
+
+
+/*
+ * Adott nap adott órájában mely termek szabadok - esetleg megadva, hogy kinek a számára: ilyenkor
+ * az ő általa használt termek is benne maradnak a listában...
+ */
+ function getSzabadTermek($PARAM = array(), $olr = '') {
+
+ if (isset($PARAM['dt']) && $PARAM['dt'] != '') $dt = $PARAM['dt'];
+ else $dt = date('Y-m-d');
+ if (isset($PARAM['ora']) && $PARAM['ora'] !== '') $ora = $PARAM['ora'];
+ else $ora = 1;
+ if (isset($PARAM['ki']) && $PARAM['ki'] != '')
+ $q = "SELECT ".__INTEZMENYDBNEV.".terem.teremId AS teremId,
+ ".__INTEZMENYDBNEV.".terem.leiras AS leiras,
+ ".__INTEZMENYDBNEV.".terem.ferohely AS ferohely,
+ ".__INTEZMENYDBNEV.".terem.tipus AS tipus
+ FROM ".__INTEZMENYDBNEV.".terem LEFT JOIN ora
+ ON ora.teremId=".__INTEZMENYDBNEV.".terem.teremId
+ AND dt='%s'
+ AND ora=%u
+ AND ora.tipus NOT LIKE 'elmarad%%'
+ AND ki != %u
+ WHERE ora.eredet IS NULL ORDER BY teremId";
+ else
+ $q = "SELECT ".__INTEZMENYDBNEV.".terem.teremId AS teremId,
+ ".__INTEZMENYDBNEV.".terem.leiras AS leiras,
+ ".__INTEZMENYDBNEV.".terem.ferohely AS ferohely,
+ ".__INTEZMENYDBNEV.".terem.tipus AS tipus
+ FROM ".__INTEZMENYDBNEV.".terem LEFT JOIN ora
+ ON ora.teremId=".__INTEZMENYDBNEV.".terem.teremId
+ AND dt='%s'
+ AND ora=%u
+ AND ora.tipus NOT LIKE 'elmarad%%'
+ WHERE ora.eredet IS NULL ORDER BY teremId";
+ $v = array($dt, $ora, $PARAM['ki']);
+ return db_query($q, array('fv' => 'getSzabadTermek', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $olr);
+ }
+
+
+ function getTanarNapiOrak($tanarId, $dt='', $olr = null) {
+ if ($dt=='') $dt = date('Y-m-d');
+ // --TODO kitalálhatnánk, hogy az adott dátum melyik szemeszterben van!
+ $q = "SELECT DISTINCT oraId, ora, ki, kit, ora.tankorId, ora.tipus AS tipus, eredet, feladatTipusId, munkaido, tankorNev, teremId, terem.leiras AS teremLeiras, oralatogatasId, megjegyzes, ora.leiras
+ FROM ora LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter ON (ora.tankorId=tankorSzemeszter.tankorId AND tanev=%u)
+ LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId)
+ LEFT JOIN oraLatogatas USING (oraId)
+ WHERE ki=%u AND dt='%s' ORDER BY ora";
+ $v = array(__TANEV,$tanarId, $dt);
+ return db_query($q, array('debug'=>false,'fv' => 'getTanarNapiOrak', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'ora', 'values' => $v), $olr);
+ }
+
+ function getOsztalyNapiOrak($osztalyId, $dt, $olr = null) {
+
+ $q = "SELECT DISTINCT oraId, ora, ki, kit, ora.tankorId, ora.tipus AS tipus, eredet, feladatTipusId, munkaido, tankorNev, teremId, terem.leiras AS teremLeiras, oralatogatasId, megjegyzes, ora.leiras
+ FROM ora
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorOsztaly USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId)
+ LEFT JOIN oraLatogatas USING (oraId)
+ WHERE tanev=".__TANEV." AND osztalyId=%u AND dt='%s'
+ AND ora.tipus IN ('normál','normál máskor','helyettesítés','felügyelet','összevonás') ORDER BY ora";
+ $v = array($osztalyId, $dt);
+ return db_query($q, array('fv' => 'getOsztalyNapiOrak', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'ora', 'values' => $v), $olr);
+ }
+
+
+ function tanarLukasOrajaE($tanarId, $dt, $ora, $olr = null) {
+
+ $q = "SELECT COUNT(oraId) FROM ora WHERE dt='%s' AND ora=%u AND ki=%u AND tipus NOT LIKE 'elmarad%%'";
+ $v = array($dt, $ora, $tanarId);
+ $num = db_query($q, array('fv' => 'tanarLukasOrajaE', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $olr);
+ return ($num == 0);
+
+ }
+
+ function tankorTagokLukasOrajaE($tankorId, $dt, $ora, $csereTankorId = '') {
+
+ $nap = date('w', strtotime($dt)); if ($nap == 0) $nap=7;
+ $Diakok = getTankorDiakjaiByInterval($tankorId, __TANEV, $dt, $dt);
+ if (count($Diakok['idk']) == 0) {
+ // Nincsenek tagjai a tankörnek - év elején bizony előfordul...
+ return true;
+ }
+ $lukasOra = true;
+ for ($i=0; $i<count($Diakok['idk']); $i++) {
+ $_diakId = $Diakok['idk'][$i];
+ // tankörök, amik alól az adott időpontban fel van mentve - megadjuk az órát és napot - a függvény beleveszi az "ora IS NULL, nap IS NULL" eseteket is
+ $_FMTANKOROK = getTankorDiakFelmentes($_diakId, __TANEV, array('csakId'=>true,'tolDt' => $dt, 'igDt' => $dt, 'nap'=> $nap, 'ora'=>$ora));
+ // a diák összes tanköre
+ $_TANKOROK = getTankorIdsByDiakIds(array($_diakId), array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt));
+ // A diák adott időpontban kötelező tankörei
+ if (is_array($_FMTANKOROK)) $tankorIds = array_diff($_TANKOROK, $_FMTANKOROK);
+ else $tankorIds = $_TANKOROK;
+
+ if (is_array($tankorIds) && count($tankorIds)>0) {
+ $q = "SELECT COUNT(oraId) AS db FROM ora
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ WHERE tankorTipus.jelenlet='kötelező'
+ AND ora.dt='%s' AND ora.ora=%u AND ora.tipus NOT LIKE 'elmarad%%' AND ora.tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+
+ $v = mayor_array_join(array($dt, $ora), $tankorIds);
+ if ($csereTankorId != '') {
+ $q .= " AND tankorId != %u";
+ array_push($v, $csereTankorId);
+ }
+ $db = db_query($q, array('fv' => 'tankorTagokLukasOrajaE/diakId='.$_diakId, 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ if ($db > 0) { // ha van ütközés, akkor próbáljunk informatívak lenni
+ $q = "SELECT DISTINCT tankorId FROM ora WHERE dt='%s' AND ora=%u AND tipus NOT LIKE 'elmarad%%'
+ AND tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ if ($csereTankorId != '') $q .= " AND tankorId != %u";
+ $r = db_query($q, array('fv' => 'tankorTagokLukasOrajaE', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v) );
+ if (is_array($r) && count($r)>0) {
+ $_diakAdat = getDiakAdatById($_diakId);
+ $_SESSION['alert'][] = 'message:foglalt_diak:'.$_diakAdat['diakNev'].' ('.$_diakId.'):tankörök '.implode(',',$r).':időpont '.$dt.' '.$ora.'. óra';
+ }
+ }
+ } else {
+ $db = 0;
+ }
+
+ $lukasOra = $lukasOra && ($db == 0);
+
+ }
+
+ return $lukasOra;
+
+ }
+
+
+ function getNapok($Param = array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'napokSzama' => '', 'tipus' => '', 'munkatervId' => null), $olr = null) {
+
+ if (isset($Param['tanev']) && $Param['tanev'] != '') $tanev = $Param['tanev'];
+ if (isset($Param['tolDt']) && $Param['tolDt'] != '') $tolDt = $Param['tolDt'];
+ if (isset($Param['igDt']) && $Param['igDt'] != '') $igDt = $Param['igDt'];
+ if (isset($Param['napokSzama']) && $Param['napokSzama'] != '') $napokSzama = $Param['napokSzama'];
+
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $v = array($tolDt, $igDt);
+
+ if (is_array($Param['tipus']) && count($Param['tipus']) > 0) {
+ $tipusFeltetel = " AND tipus IN ('" . implode("','", array_fill(0, count($Param['tipus']), '%s')) . "') ";
+ $v = mayor_array_join($v, $Param['tipus']);
+ } else $tipusFeltetel = '';
+ if (isset($Param['munkatervId'])) {
+ $mtFeltetel = " AND munkatervId=%u ";
+ array_push($v, $Param['munkatervId']);
+ } else $mtFeltetel = '';
+ $orderBy = 'ORDER BY dt';
+ if (isset($napokSzama)) {
+ if (isset($igDt)) $orderBy = 'ORDER BY dt DESC';
+ $limit = "LIMIT %u";
+ array_push($v, $napokSzama);
+ }
+
+ $q = "SELECT DISTINCT dt FROM nap
+ WHERE '%s' <= dt AND dt <= '%s' $tipusFeltetel $mtFeltetel $orderBy $limit";
+ return db_query($q, array('fv' => 'getNapok', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v), $olr);
+
+ }
+
+ function getNapAdat($dt, $olr = '') {
+
+ $q = "SELECT * FROM nap WHERE dt='%s' ORDER BY munkatervId";
+ $ret = db_query($q, array('fv' => 'getNapAdat', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($dt)), $olr);
+ return $ret;
+
+ }
+
+/* Nem használt függvény - most már munkaterv függő
+ function getNapTipus($dt, $munkatervId = 1) {
+
+ $q = "SELECT tipus FROM nap WHERE dt='%s' AND munkatervId=%u";
+ return db_query($q, array('fv' => 'getNapTipus', 'modul' => 'naplo', 'result' => 'value', 'values' => array($dt, $munkatervId)));
+
+ }
+*/
+ function getTanevNapjai($munkatervId = 1, $olr = null) {
+
+ $q = "SELECT * FROM nap WHERE munkatervId=%u ORDER BY dt";
+ return db_query($q, array('fv' => 'getTanevNapjai', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($munkatervId)), $olr);
+
+ }
+
+ function getHonapNapjai($ho, $munkatervId = 1, $olr = null) {
+ /*
+ $munkatervId lehet tömb is! (pl. egy tanuló több osztályba is tartozik)
+
+ Ekkor a függvény lekérdezi az adott munkatervId-khez tartozó napokat, rendezi őket, hogy minden nap elöl legyenek
+ a tanítási, speciális tanítási, majd a tanítás nélküli munkanapok, végül a tanítási szünetek, majd ezekből az elsőt
+ - tehát a "legszigorúbbat" - adja csak vissza az adott napra.
+ */
+
+ if (is_array($munkatervId) && count($munkatervId)==0) $munkatervId=1;
+ if (is_array($munkatervId)) {
+ $q = "SELECT * FROM nap WHERE month(dt)=%u AND munkatervId in (".implode(",", array_fill(0, count($munkatervId), '%u')).")
+ ORDER BY dt,
+ CASE tipus WHEN 'tanítási nap' THEN 1 WHEN 'speciális tanítási nap' THEN 2 WHEN 'tanítás nélküli munkanap' THEN 3 ELSE 4 END";
+
+ $r = db_query($q, array('fv' => 'getHonapNapjai', 'modul' => 'naplo', 'result' => 'indexed', 'values' => mayor_array_join(array($ho), $munkatervId)), $olr);
+ $elozoDt = ''; $ret = array();
+ // Az adott napi munkatervek közül csak egyet adjunk vissza - a legszigorúbbat
+ for ($i = 0; $i < count($r); $i++) {
+ if ($elozoDt <> $r[$i]['dt']) $ret[] = $r[$i];
+ $elozoDt = $r[$i]['dt'];
+ }
+ } else {
+ $q = "SELECT * FROM nap WHERE month(dt)=%u AND munkatervId=%u ORDER BY dt";
+ $ret = db_query($q, array('fv' => 'getHonapNapjai', 'modul' => 'naplo', 'result' => 'indexed', 'values' => array($ho, $munkatervId)), $olr);
+ }
+ return $ret;
+
+ }
+
+// -- korábbi haladasi.php-ből...
+
+ function getTanarOrak($tanarId, $SET = array('tolDt'=>'', 'igDt'=>'', 'ora'=> '', 'result' => 'indexed', 'tipus' => null)) {
+
+ if ($SET['csakId'] === true || $SET['result'] == 'csakId') $SET['result'] = 'idonly';
+
+ $tolDt = readVariable($SET['tolDt'], 'datetime', date('Y-m-d'));
+ $igDt = readVariable($SET['igDt'], 'datetime', $tolDt);
+
+ if ($SET['ora']!='') { // akkor egyetlen óraid adatai a kérdés!
+ $WHERE = ' AND ora=%u';
+ $v = array($SET['ora']);
+ } else {
+ $WHERE = '';
+ $v = array();
+ }
+
+ if (is_array($SET['tipus']) && count($SET['tipus']) > 0) {
+ $WHERE .= " AND tipus IN ('".implode("','", array_fill(0, count($SET['tipus']), '%s'))."')";
+ $v = mayor_array_join($v, $SET['tipus']);
+ }
+
+ if ($SET['result'] === 'idonly') {
+ $q = "SELECT oraId FROM ora WHERE dt>='%s' and dt<='%s' AND ki=%u $WHERE ORDER BY dt,ora";
+ array_unshift($v, $tolDt, $igDt, $tanarId);
+ $RESULT = db_query($q, array('modul' => 'naplo', 'fv' => 'getTanarOrak', 'result' => 'idonly', 'values' => $v));
+ } else {
+ $q = "SELECT * FROM ora WHERE dt>='%s' and dt<='%s' AND (ki=%u OR kit=%u) $WHERE ORDER BY dt,ora";
+ array_unshift($v, $tolDt, $igDt, $tanarId, $tanarId);
+ if ($SET['result']=='assoc')
+ $RESULT = db_query($q, array('modul' => 'naplo', 'fv' => 'getTanarOrak', 'keyfield' => 'ora', 'result' => 'assoc', 'values' => $v));
+ else
+ $RESULT = db_query($q, array('modul' => 'naplo', 'fv' => 'getTanarOrak', 'result' => 'indexed', 'values' => $v));
+ if ($SET['result']=='likeOrarend') {
+
+ for ($i = 0; $i < count($RESULT); $i++) {
+
+ $_put = $RESULT[$i];
+ $_put['oo'] = false;
+ $RE['orak'][$RESULT[$i]['dt']][$RESULT[$i]['ora']][$RESULT[$i]['tankorId']] = $_put;
+ if (!@in_array($RESULT[$i]['tankorId'], $RE['tankorok'])) $RE['tankorok'][] = $RESULT[$i]['tankorId'];
+
+ }
+ $RESULT = $RE;
+ }
+ }
+ return $RESULT;
+ }
+
+ function getOrak($TANKORIDK, $SET=array('tolDt'=>'','igDt'=>'', 'result'=>'likeOrarend', 'elmaradokNelkul'=>false)) {
+
+ /* FIGYELEM! A függvény feltételezi, hogy az átadott tankoridkben az adott intervallumon helyes adatok szerepelnek!
+ -- problémát okozhat, ha hosszú intervallumot adunk meg!!! -- lásd FS#100 */
+ if (!is_array($TANKORIDK) || count($TANKORIDK)==0) return false;
+ $tolDt = readVariable($SET['tolDt'], 'datetime', date('Y-m-d'));
+ $igDt = readVariable($SET['igDt'], 'datetime', $tolDt);
+
+ $RE = false; $v = $TANKORIDK;
+ array_unshift($v, $tolDt, $igDt);
+ if ($SET['result']=='csakId' || $SET['csakId']===true) {
+ $q = "SELECT oraId FROM ora WHERE dt>='%s' and dt<='%s' AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDK), '%u')).")";
+ $RE = db_query($q, array('modul' => 'naplo', 'fv' => 'getOrak', 'result' => 'idonly', 'values' => $v));
+ } elseif ($SET['result']=='forXml') {
+ $q = "SELECT * FROM ora WHERE dt>='%s' and dt<='%s' AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDK), '%u')).")";
+ $RE = db_query($q, array('modul' => 'naplo', 'fv' => 'getOrak', 'result' => 'indexed', 'values' => $v));
+ } else {
+ if ($SET['elmaradokNelkul'])
+ $q = "SELECT * FROM ora WHERE dt>='%s' and dt<='%s' AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDK), '%u')).")
+ AND tipus NOT IN ('elmarad','elmarad máskor')";
+ else
+ $q = "SELECT * FROM ora WHERE dt>='%s' and dt<='%s' AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDK), '%u')).")";
+ $R = db_query($q, array('modul' => 'naplo', 'fv' => 'getOrak', 'result' => 'indexed', 'values' => $v));
+ $RE['tankorok']=array();
+ for ($i = 0; $i < count($R); $i++) {
+ $_put = $R[$i];
+ $_put['oo'] = false;
+ $RE['orak'][$R[$i]['dt']][$R[$i]['ora']][$R[$i]['tankorId']] = $_put;
+ if (!in_array($R[$i]['tankorId'],$RE['tankorok'])) $RE['tankorok'][] = intval($R[$i]['tankorId']);
+ }
+ }
+ return $RE;
+ }
+
+ /* EZT A FÜGGVÉNYT ÁT KELL NÉZNI, csak másolva, javaslat: összevonás az előzővel */
+ function getOrakByTeremId($teremId, $SET=array('tolDt'=>'','igDt'=>'', 'result'=>'likeOrarend', 'elmaradokNelkul'=>false)) {
+
+ /* FIGYELEM! A függvény feltételezi, hogy az átadott tankoridkben az adott intervallumon helyes adatok szerepelnek!
+ -- problémát okozhat, ha hosszú intervallumot adunk meg!!! -- lásd FS#100 */
+ if ($teremId=='') return false;
+ $tolDt = readVariable($SET['tolDt'], 'datetime', date('Y-m-d'));
+ $igDt = readVariable($SET['igDt'], 'datetime', $tolDt);
+ $v = array($tolDt,$igDt,$teremId);
+
+ if ($SET['result']=='csakId' || $SET['csakId']===true) {
+ $q = "SELECT oraId FROM ora WHERE dt>='%s' and dt<='%s' AND teremId=%u";
+ $RE = db_query($q, array('modul' => 'naplo', 'fv' => 'getOrak', 'result' => 'idonly', 'values' => $v));
+ } elseif ($SET['result']=='forXml') {
+ $q = "SELECT * FROM ora WHERE dt>='%s' and dt<='%s' AND teremId=%u";
+ $RE = db_query($q, array('modul' => 'naplo', 'fv' => 'getOrak', 'result' => 'indexed', 'values' => $v));
+ } else {
+ if ($SET['elmaradokNelkul'])
+ $q = "SELECT * FROM ora WHERE dt>='%s' and dt<='%s' AND teremId=%u
+ AND tipus NOT IN ('elmarad','elmarad máskor')";
+ else
+ $q = "SELECT * FROM ora WHERE dt>='%s' and dt<='%s' AND teremId=%u";
+ $R = db_query($q, array('modul' => 'naplo', 'fv' => 'getOrak', 'result' => 'indexed', 'values' => $v));
+ for ($i = 0; $i < count($R); $i++) {
+ $_put = $R[$i];
+ $_put['oo'] = false;
+ $RE['orak'][$R[$i]['dt']][$R[$i]['ora']][$R[$i]['tankorId']] = $_put;
+ if (!@in_array($R[$i]['tankorId'],$RE['tankorok'])) $RE['tankorok'][] = $R[$i]['tankorId'];
+ }
+ }
+ return $RE;
+ }
+ /* --- --- --- */
+
+ function getOralatogatasByOraIds($oraIds, $SET = array('result' => 'assoc')) {
+
+ if (!is_array($oraIds) || count($oraIds) == 0) return array();
+
+ $q = "SELECT * FROM oraLatogatas WHERE oraId IN (".implode(',', array_fill(0, count($oraIds), '%u')).") ORDER BY oraId";
+ $v = $oraIds;
+ $ret = db_query($q, array('modul' => 'naplo', 'fv' => 'getOraLatogatasByOraIds', 'result' => $SET['result'], 'keyfield' => 'oraId', 'values' => $v));
+ if ($SET['result'] == 'assoc') {
+ if (is_array($ret)) foreach ($ret as $oraId => $olAdat) {
+ $ret[$oraId]['tanarIds'] = getOraLatogatoByLatogatasId($olAdat['oraLatogatasId']);
+ }
+ } elseif ($SET['result'] == 'indexed') {
+ if (is_array($ret)) foreach ($ret as $i => $olAdat) {
+ $ret[$i]['tanarIds'] = getOraLatogatoByLatogatasId($olAdat['oraLatogatasId']);
+ }
+ }
+ return $ret;
+
+ }
+
+ function getOraLatogatoByLatogatasId($latogatasId) {
+ $q = "SELECT tanarId FROM oraLatogatasTanar WHERE oraLatogatasId=%u";
+ return db_query($q, array('modul' => 'naplo', 'fv' => 'getOraLatogatoByLatogatasId', 'result' => 'idonly', 'values' => array($latogatasId)));
+ }
+
+ function getFeladatTipus() {
+ $q = "SELECT * FROM feladatTipus";
+ return db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'getFeladatTipus', 'result' => 'assoc', 'keyfield'=>'feladatTipusId'));
+ }
+
+ function getOraTerhelesByTanarId($SET = array()) { // -- DEPRECATED
+ $q = "SELECT feladatTipusId,count(*) AS db FROM ora WHERE ki=%u AND dt>='%s' AND dt<='%s' AND feladatTipusId IS NOT NULL GROUP BY feladatTipusId";
+ $v = array($SET['tanarId'],$SET['tolDt'],$SET['igDt']);
+ return db_query($q, array('modul' => 'naplo', 'fv' => 'getOraTerheles', 'result' => 'assoc', 'keyfield'=>'feladatTipusId','values'=>$v));
+ }
+
+ function getOraTerhelesStatByTanarId($SET = array(), $olr='') {
+ /* ha a tanítási hetet úgy értelmezzük, hogy az a hét, amin az adott DT van, de nem így teszünk!
+ ehelyett az elmúlt 5 tanítási napot vizsgáljuk (egyéb értelmes szempontként)
+ */
+
+ if (isset($SET['tanarId']) && !is_array($SET['tanarId']) && is_numeric($SET['tanarId'])) $SET['tanarId'] = array($SET['tanarId']);
+
+ $dt=($SET['dt']=='')?date('Y-m-d'):$SET['dt'];
+ /* azt is biztosítani kell, hogy a megadott dt tanítási nap legyen */
+ $dt = (getTanitasiNapVissza(0,$dt));
+
+ if ($SET['tolDt']!='' && $SET['igDt']!='') { // akkor nem prediktálható az eredmény... mit is kéne számolnunk? ezt nem engedjük
+ $_SESSION['alert'][] = '::';
+ } else {
+ $tolDt = getTanitasiNapVissza(4,$dt);
+ $igDt = $dt;
+ }
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ $v_default = array($tolDt, $igDt);
+ if (is_array($SET['tanarId']) && count($SET['tanarId']) > 0) {
+ $w = " AND ki IN (" . implode(",", array_fill(0, count($SET['tanarId']), '%u')) . ") GROUP BY ki";
+ $w1 = " WHERE tanarId IN (" . implode(",", array_fill(0, count($SET['tanarId']), '%u')) . ")";
+ $v = $SET['tanarId'];
+ } else {
+ $w = " GROUP BY ki";
+ $w1 = '';
+ }
+ $lr = ($olr=='') ? db_connect('naplo'):$olr;
+
+ /* tanár kötelező óraszámának beállítása -- lehetne máshol is*/
+ $q = "SELECT tanarId, hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam,hetiMunkaora FROM ".__INTEZMENYDBNEV.".tanar".$w1;
+ $R = db_query($q,array('modul'=>'naplo','result'=>'indexed','values'=>$v),$lr);
+ for ($i=0;$i<count($R); $i++) {
+ $RES[$R[$i]['tanarId']]['munkaido']['heti'] = ($R[$i]['hetiMunkaora']>0) ? intval($R[$i]['hetiMunkaora']):40;
+ $RES[$R[$i]['tanarId']]['munkaido']['kotott'] = ($R[$i]['hetiKotottMaxOraszam']>0) ? intval($R[$i]['hetiKotottMaxOraszam']) :
+ (($R[$i]['hetiMunkaora']>0) ? intval($R[$i]['hetiMunkaora']*0.8):32);
+ $RES[$R[$i]['tanarId']]['munkaido']['lekotott'] = ($R[$i]['hetiLekotottMaxOraszam']>0) ? intval($R[$i]['hetiLekotottMaxOraszam']) :
+ (($R[$i]['hetiMunkaora']>0) ? intval($R[$i]['hetiMunkaora']*0.65):26);
+ }
+ /* ---- */
+
+ // összes típus
+ $TYPE = array(
+ 'ossz'=> " (tipus NOT IN ('elmarad','elmarad máskor'))",
+ 'kotottEloirt'=> " (tipus IN ('helyettesítés','normál','normál máskor') OR (tipus='egyéb' AND eredet='órarend'))",
+ 'kotott'=> " (tipus IN ('helyettesítés','normál','normál máskor') OR (tipus='egyéb'))",
+ 'lekotott'=>" (tipus IN ('helyettesítés','normál','normál máskor'))",
+ 'over'=> " tipus = 'helyettesítés' AND munkaido='fennmaradó'"
+ );
+ foreach($TYPE as $munkaidoTipus => $TIPUSOK)
+ {
+ $q = "SELECT ki AS tanarId,count(*) AS db FROM ora WHERE $TIPUSOK AND dt>='%s' AND dt<='%s'".$w;
+ $v = mayor_array_join($v_default,$SET['tanarId']);
+ $R= db_query($q, array('fv'=>'getOraTerhelesStatByTanarid','values'=>$v,'result'=>'indexed'),$lr);
+ for ($i=0;$i<count($R); $i++) $RES[$R[$i]['tanarId']][$munkaidoTipus]['heti'] = $R[$i]['db'];
+
+ $q = "SELECT ki AS tanarId,count(*) AS db FROM ora WHERE $TIPUSOK AND dt>='%s' AND dt<='%s'".$w;
+ $v = mayor_array_join(array($dt,$dt),$SET['tanarId']);
+ $R= db_query($q, array('fv'=>'getOraTerhelesStatByTanarid','values'=>$v,'result'=>'indexed'),$lr);
+ for ($i=0;$i<count($R); $i++) $RES[$R[$i]['tanarId']][$munkaidoTipus]['napi'] = $R[$i]['db'];
+
+// $q = "SELECT ki AS tanarId,count(*) AS db FROM ora WHERE $TIPUSOK ".$w;
+// $v = $SET['tanarId'];
+// $R= db_query($q, array('fv'=>'getOraTerhelesStatByTanarid','values'=>$v,'result'=>'indexed'),$lr);
+// for ($i=0;$i<count($R); $i++) $RES[$R[$i]['tanarId']]['osszOra'] = $R[$i]['db'];
+ }
+
+/*
+ // EZ ITT NEM JÓ MÉG!
+ $q = "SELECT ki AS tanarId,count(DISTINCT dt) AS db FROM ora WHERE $TIPUSOK ".$w;
+ $v = $SET['tanarId'];
+ $R= db_query($q, array('fv'=>'getOraTerhelesStatByTanarid','values'=>$v,'debug'=>false,'result'=>'indexed'),$lr);
+ for ($i=0;$i<count($R); $i++) $RES[$R[$i]['tanarId']]['HPosszNapDb'] = $R[$i]['db'];
+*/
+
+ if ($olr=='') db_close($lr);
+ return $RES;
+ }
+/*
+ function _arrayJoin ($a='') {
+ $ARGS = func_get_args();
+ $x = array();
+ for ($i=0;$i<count($ARGS);$i++) {
+ $a = $ARGS[$i];
+ if (is_array($a)) foreach($a as $v) $x[] = $v; elseif ($a!='') $x[] = $a;
+ }
+ return $x;
+ }
+*/
+ function getOraStatByTankorId($tankorId,$dt='') {
+
+ if ($tankorId=='') return false;
+// if ($tankorId=='') $tankorId=3000;
+ if ($dt=='') $dt = date('Y-m-d');
+ $q = "SELECT tipus,eredet,count(*) AS db FROM ora WHERE tankorId =%u GROUP BY tipus,eredet";
+ $v = array($tankorId);
+ $r = db_query($q, array('modul'=>'naplo','fv'=>'getOraStatByTankorId','values'=>$v,'result'=>'indexed'),$lr);
+ $R['éves'] = reindex($r,array('eredet','tipus'));
+
+ $q = "SELECT tipus,eredet,count(*) AS db FROM ora WHERE
+ dt >= '%s' - INTERVAL DAYOFWEEK('%s')+6 DAY
+ AND dt < '%s' - INTERVAL DAYOFWEEK('%s')-1 DAY
+ AND tankorId =%u GROUP BY tipus,eredet";
+ $v = array($dt,$dt,$dt,$dt,$tankorId);
+ $r= db_query($q, array('debug'=>false,'modul'=>'naplo','fv'=>'getOraStatByTankorId','values'=>$v,'result'=>'indexed'),$lr);
+ $R['heti'] = reindex($r,array('eredet','tipus'));
+
+ return $R;
+
+ }
+
+ function oraMostVane($oraId) {
+ $most = false;
+ if ($oraId!='') {
+ $q = "select DISTINCT
+ IF(tolTime<curtime() AND curtime()<igTime AND nap.dt=CURDATE(),true,false) AS mostVan,
+ IF(tolTime<curtime() AND curtime()<igTime,true,false) AS idosavbanMostLenne,
+ csengetesiRend.tolTime,csengetesiRend.igTime,IF(terem.telephelyId!=osztaly.telephelyId,FALSE,true) AS telephelyCheck
+ FROM ora LEFT JOIN ".__INTEZMENYDBNEV.".tankorOsztaly USING (tankorId) LEFT JOIN ".__INTEZMENYDBNEV.".osztaly USING (osztalyId) LEFT JOIN munkatervOsztaly USING (osztalyId) LEFT JOIN nap ON (munkatervOsztaly.munkatervId=nap.munkatervId AND ora.dt=nap.dt) LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId) LEFT JOIN ".__INTEZMENYDBNEV.".csengetesiRend ON (csengetesiRend.csengetesiRendTipus=nap.csengetesiRendTipus AND csengetesiRend.telephelyId=terem.telephelyId AND ora.ora=csengetesiRend.ora AND (csengetesiRend.nap = DAYOFWEEK(nap.dt)-1 OR csengetesiRend.nap IS NULL)) WHERE oraId=%u";
+ $v = array($oraId);
+ $R = db_query($q,array('debug'=>false,'fv'=>'oraMostVane','modul'=>'naplo','values'=>$v,'result'=>'indexed'));
+ if (count($R)>1) { // többféle eredményt kaptunk
+ $most = false;
+ }
+ $most = ($R[0]['mostVan']) ? true : false;
+ }
+ return $most;
+ }
+
+ function getOrakMost() {
+ $q = "select oraId,IF(tolTime<curtime() AND curtime()<igTime,true,false) AS mostVan,csengetesiRend.tolTime,csengetesiRend.igTime,IF(terem.telephelyId!=osztaly.telephelyId,FALSE,true) AS telephelyCheck from ora LEFT JOIN ".__INTEZMENYDBNEV.".tankorOsztaly USING (tankorId) LEFT JOIN ".__INTEZMENYDBNEV.".osztaly USING (osztalyId) LEFT JOIN munkatervOsztaly USING (osztalyId) LEFT JOIN nap ON (munkatervOsztaly.munkatervId=nap.munkatervId AND ora.dt=nap.dt) LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId) LEFT JOIN ".__INTEZMENYDBNEV.".csengetesiRend ON (csengetesiRend.csengetesiRendTipus=nap.csengetesiRendTipus AND csengetesiRend.telephelyId=terem.telephelyId AND ora.ora=csengetesiRend.ora AND (csengetesiRend.nap = DAYOFWEEK(nap.dt)-1 OR csengetesiRend.nap IS NULL)) WHERE ora.dt=curdate() AND tolTime<curtime() AND curtime()<igTime";
+ $v = array();
+ $R = db_query($q,array('debug'=>false,'fv'=>'oraMostVane','modul'=>'naplo','values'=>$v,'result'=>'idonly'));
+ return $R;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/oraModifier.php b/mayor-orig/www/include/modules/naplo/share/oraModifier.php
new file mode 100644
index 00000000..9165ac7c
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/oraModifier.php
@@ -0,0 +1,148 @@
+<?php
+
+ function oraBeirhato($oraId, $olr='') { // kötelező: oraId // modosithatoOra sql wrap
+ global $_TANEV;
+ $result = false;
+ $lr = $olr=='' ? db_connect('naplo', array('fv' => 'oraBeirhato')):$olr;
+ $q = "SELECT * FROM ora WHERE oraId = %u";
+ $values = array('oraId'=>$oraId);
+ $oraAdat = db_query($q, array('fv'=>'oraBeirhato','modul'=>'naplo','result'=>'record','values'=>$values),$lr);
+ if ($olr == '') db_close($lr);
+ return modosithatoOra($oraAdat);
+ }
+
+ function modosithatoOra($haladasiOraAdat) { // lásd még: oraBeirhato($oraId)
+
+ global $_TANEV;
+ if (!defined('_HALADASI_HATARIDO')) $_SESSION['alert'][] = 'info::modosithatoOra.not defined._HALADASI_HATARIDO';
+ // if (!defined('__USERTANARID')) return false;
+ /* feladat típusokra vonatkozó beállítások */
+ $Feladat = is_numeric($haladasiOraAdat['feladatTipusId']) && $haladasiOraAdat['tipus']=='egyéb'; // 22-26 óra feletti kötött munkaidőbe tartó feladat
+ $tanarFeladat = $Feladat && defined('__USERTANARID') && __USERTANARID==$haladasiOraAdat['ki']; // ... amit az épp bejelentkezett tanár tart
+ $sajatTanarFeladat = $tanarFeladat && $haladasiOraAdat['eredet']=='plusz'; // ... és ő is vett fel
+ $eloirtTanarFeladat = $tanarFeladat && $haladasiOraAdat['eredet']=='órarend'; // ... illetve, amit számára a vezetőség előírt (nem törölhető)
+ $time = strtotime($haladasiOraAdat['dt']);
+ $ki = $haladasiOraAdat['ki'];
+ $normalOra = (in_array($haladasiOraAdat['tipus'],array('normál','normál máskor')));
+ for ($i = 0;
+ (
+ ($i < ($count = count($haladasiOraAdat['tanar'])))
+ && ($haladasiOraAdat['tanar'][$i]['tanarId'] != __USERTANARID)
+ );
+ $i++
+ );
+ $tanara = ($i < $count) || $haladasiOraAdat['ki']==__USERTANARID; // nem mindig van 'tanar' adat! Az nem része az ora rekordnak
+
+ return ($_TANEV['szemeszter'][1]['statusz'] == 'aktív') // Csak aktív szemeszterbe írhatunk
+ && (
+ ((__VEZETOSEG || __NAPLOADMIN) && $Feladat && $haladasiOraAdat['eredet']=='órarend')
+ || $time <= time()
+ ) // A jövőbeli órák nem írhatók be, kivéve, ha az előírt tanári feladat (pl versenyfelügyelet)!
+ && (
+ // Az admin bármikor módosíthat - de csak vezetői utasításra teszi!
+ __NAPLOADMIN
+ // Az igazgató naplózárásig pótolhat, javíthat - utána elvileg nyomtatható a napló!
+ || (__VEZETOSEG and strtotime(_ZARAS_HATARIDO) <= $time)
+ || (
+ __TANAR
+ && (
+ // a számára felvett óra nem módosítható
+ !$eloirtTanarFeladat
+ && (
+ // tanár a saját tanköreinek óráit a _HALADASI_HATARIDO-ig módosíthatja
+ ($normalOra && $tanara && (strtotime(_HALADASI_HATARIDO) <= $time))
+ // tanár az általa helyettesített/felügyelt/összevont órát _visszamenőleg_ a _HELYETTESITES_HATARIDO-ig módosíthatja
+ || (!$normalOra && (__USERTANARID == $ki) && (strtotime(_HELYETTESITES_HATARIDO) <= $time) && $Feladat===false)
+ // a kötött munkaidőben végzett feladatok _HALADASI_HATARIDŐIG módosíthatók
+ || ($tanarFeladat && (strtotime(_HALADASI_HATARIDO) <= $time))
+ )
+ )
+ )
+ );
+
+ }
+
+ function ujOraFelvesz($ADAT,$olr='') { // --TODO: a függvény figyelhetné a tagok óraütközését!
+ $lr = $olr=='' ? db_connect('naplo', array('fv' => 'ujOraFelvesz')):$olr;
+ $q = "SELECT count(*) FROM ora WHERE dt='%s' AND ora=%u AND ki=%u";
+ $values = array($ADAT['dt'],$ADAT['ora'],$ADAT['ki']);
+ $c = db_query($q, array('fv'=>'ujOraFelvesz/1','modul'=>'naplo','result'=>'value','values'=>$values),$lr);
+ if ($c==0) { // csak ha még nincs adott nap adott órájára rögzítve "feladata"
+ if ($ADAT['feladatTipusId']==0) $ADAT['feladatTipusId']='NULL';
+ if ($ADAT['tankorId']==0) $ADAT['tankorId']='NULL';
+ $q = "INSERT INTO `ora` (`dt`,`ora`,`ki`,`tipus`,`eredet`,`feladatTipusId`,`munkaido`,`leiras`,`tankorId`) VALUES ('%s',%u,%u,'%s','%s',%s,'%s','%s',%s)";
+ $values = array($ADAT['dt'],$ADAT['ora'],$ADAT['ki'],$ADAT['tipus'],$ADAT['eredet'],$ADAT['feladatTipusId'],$ADAT['munkaido'],$ADAT['leiras'],$ADAT['tankorId']);
+ $RESULT = db_query($q, array('fv'=>'ujOraFelvesz','modul'=>'naplo','result'=>'insert','values'=>$values),$lr);
+ }
+ if ($olr == '') db_close($lr);
+ return $RESULT;
+ }
+
+ function updateHaladasiNaploOra($oraId, $leiras, $csoportAdat = '', $ki = '', $olr = '') {
+
+ $RESULT = true;
+
+ $lr = $olr=='' ? db_connect('naplo', array('fv' => 'updateHaladasiNaploOra')):$olr;
+ // A módosítás előtti állapot lekérdezése
+ $oraAdat = getOraAdatById($oraId, __TANEV, $lr);
+ $dt = $oraAdat['dt'];
+ // Melyik tankör lesz a módosítás után
+ if ($csoportAdat != '') list($csoportId, $tankorId) = explode(':', $csoportAdat);
+ else $tankorId = $oraAdat['tankorId'];
+
+ // force to be numeric (CHECK)
+ $csoportId = intval($csoportId);
+ $tankorId = intval($tankorId);
+
+ $oraAdat['tanar'] = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => $dt, 'igDt' => $dt, 'result' => 'nevsor'), $lr);
+ // Melyik ki id lesz módosítás után
+ if ($ki != '') $tanarId = $ki; else $tanarId = $oraAdat['ki'];
+ if (modosithatoOra($oraAdat)) {
+
+ // Tananyag beírása
+ $q = "UPDATE ora SET leiras='%s'";
+ $v = array($leiras);
+ if ($ki != '') { // Ha több tanára van a tankörnek, akkor az átváltható
+ $i = 0;
+ while ($i < ($db = count($oraAdat['tanar'])) && $ki != $oraAdat['tanar'][$i]['tanarId']) $i++;
+ if ($i < $db) {
+ $q .= ",ki=%u";
+ $v[] = $ki;
+ }
+ }
+ //!!! A csoportok tankörei válthatóak - ha ugyanaz a tanár tartja
+ if ($csoportAdat != '' && $oraAdat['tankorId'] != $tankorId) {
+ $q2 = "SELECT COUNT(tankorId) FROM tankorCsoport LEFT JOIN ".__INTEZMENYDBNEV.".tankorTanar USING (tankorId)
+ WHERE csoportId = %u AND tanarId = %u
+ AND tankorId IN (%u,%u)
+ AND (kiDt IS NULL OR kiDt>='%s') AND beDt<='%s'";
+ $v2 = array($csoportId, $tanarId, $tankorId, $oraAdat['tankorId'], $dt, $dt);
+ $num = db_query($q2, array('fv' => 'updateHaladasiNaploOra', 'modul' => 'naplo', 'result' => 'value', 'values' => $v2), $lr);
+ if (!$num) {
+ $_SESSION['alert'][] = 'message:wrong_data:updateHaladasiNaploOra:'.$num.':'.$csoportId;
+ $RESULT = false;
+ } elseif ($num == 2) {
+ $q .= ",tankorId=%u";
+ $v[] = $tankorId;
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:updateHaladasiNaploOra:'.$num.':'.$csoportId;
+ $RESULT = false;
+ }
+ }
+ if ($RESULT!==false) {
+ $q .= " WHERE oraId=%u";
+ $v[] = $oraId;
+ $RESULT = db_query($q, array('fv' => 'updateHaladasiNaploOra', 'modul' => 'naplo', 'values' => $v), $lr);
+ //$_SESSION['alert'][] = $q;
+ }
+ } else {
+// $RESULT = false; // igaziból nincs hiba, hisz nem csináltunk semmit
+ $_SESSION['alert'][] = 'message:wrong_data:nem modosithato ora!!!';
+ }
+ if ($olr == '') db_close($lr);
+
+ return $RESULT;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/orarend.php b/mayor-orig/www/include/modules/naplo/share/orarend.php
new file mode 100644
index 00000000..5ae3a43a
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/orarend.php
@@ -0,0 +1,422 @@
+<?php
+
+ // Csatoljuk be az általános share könyvtárat - ezt innen tesszük, közvetlenül nem hívható függvény
+ require_once('include/modules/naplo/share/nap.php');
+/*
+ function _genNapok($tolDt,$igDt) { }
+*/
+
+// ELEM FELETTI FÜGGVÉNYEK
+
+ function getOrarendByTargyId($targyId, $SET=array('tolDt'=>'','igDt'=>'')) {
+ // tankörök lekérdezése
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ $NAPOK = _genNapok($tolDt,$igDt);
+ // dátumfüggő FS#100
+ for ($i=0; $i<count($NAPOK); $i++) {
+ $_dt = $NAPOK[$i];
+ $TANKORIDK[$_dt] = getTankorByTargyId($targyId, __TANEV, array('csakId'=>true,'tolDt'=>$_dt, 'igDt'=>$_dt));
+ }
+ return getOrarend($TANKORIDK, array('tolDt'=>$tolDt, 'igDt'=>$igDt));
+ }
+
+ // ++
+ function getOrarendByTanarId($tanarId, $SET=array('tolDt'=>'','igDt'=>'', 'telephely'=>null, 'orarendiOraTankor'=>false)) {
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ $NAPOK = _genNapok($tolDt,$igDt);
+ // dátumfüggő FS#100
+ for ($i=0; $i<count($NAPOK); $i++) {
+ $_dt = $NAPOK[$i];
+ $TANKORIDK[$_dt] = getTankorByTanarId($tanarId,__TANEV, array('csakId'=>true,'tolDt'=>$_dt, 'igDt'=>$_dt));
+ }
+ /* Figyelem! Az első talált munkatervet vesszük itt figyelembe!!! */
+ $munkatervIds = getMunkatervByTanarId($tanarId, array('result' => 'idonly', 'tanev'=>__TANEV, 'tolDt'=>$tolDt, 'igDt'=>$igDt));
+ $RESULT = getOrarend($TANKORIDK, array('tolDt'=>$tolDt, 'igDt'=>$igDt, 'telephely'=>$SET['telephely'], 'munkatervId'=>$munkatervIds));
+ /* --------------------------------------------*/
+ if ($SET['orarendiOraTankor']===true
+ && is_null($SET['telephely'])
+ ) {
+ /* és kérdezzük le nem tankörId-kkel is... */
+ // Ez a rész csak az orarendiOra Tankörös részhez kell... Ene ... tényleg kell? :) //
+ // Kelljen. Ha a getOrarend nem tud dűlőre jutni, még mindig látszik valami... [k]
+ /* A tanítási hét kitalálása */
+ // erre valójában nincs szükség */
+/*
+ $het = getOrarendiHetByDt($tolDt, array('alert'=>false)); // Ez NULL-t ad vissza, ha nincs bejegyzés!!!
+ if (is_null($het)) {// nincs a nap táblában ilyen bejegyzés, de megkereshetjük a következő tanítási napot.
+ // (ez persze ahhoz vezet, hogy ha 7 napnál nagyobb a különbség, akár hetek is ugorhatnak
+ //$kovTanNap = getTanitasiNap('elore',1,"$tolDt 08:00:00");
+ $het = getOrarendiHetByDt($kovTanNap);
+ }
+*/ /* -- */
+
+ /* !! Így egy nap többször is szerepelhet !! Ugye ez nem baj?? */
+ $munkatervId = $munkatervIds; //hack myself
+ if (!is_array($munkatervId) || count($munkatervId) == 0) {
+ return false;
+ }
+ $q = "SELECT dt,orarendiHet,DAYOFWEEK(dt)-1 AS nap,csengetesiRendTipus FROM nap WHERE dt>='%s' AND dt<='%s'
+ AND munkatervId IN (".implode(',', array_fill(0, count($munkatervId), '%u')).")";
+ $v = mayor_array_join(array($tolDt, $igDt), $munkatervId);
+ $RES = db_query($q, array('fv' => 'getOrarendByTanarId', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for($i=0; $i<count($RES); $i++) {
+ $W[] = ' (nap='.$RES[$i]['nap'].' AND het='.$RES[$i]['orarendiHet'].') ';
+ }
+
+ $q = "SELECT * FROM orarendiOra LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE igDt>='%s' AND tolDt<='%s' AND tanarId=%u ";
+ if (is_array($W)) $q .= "AND (".implode(' OR ',$W).")";
+ $v = array($tolDt, $igDt, $tanarId);
+ $RES = db_query($q, array('fv' => 'getOrarendByTanarId', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ for($i=0; $i<count($RES); $i++) {
+ $RESULT['orarendiOra'][$RES[$i]['het']][$RES[$i]['nap']][$RES[$i]['ora']][] =
+ array('tankorId'=>$RES[$i]['tankorId'],
+ 'tolDt'=>$RES[$i]['tolDt'],
+ 'tanarId'=>$RES[$i]['tanarId'],
+ 'targyJel'=>$RES[$i]['targyJel'],
+ 'osztalyJel'=>$RES[$i]['osztalyJel'],
+ 'teremId'=>$RES[$i]['teremId']);
+ }
+
+ }
+ /* --------------------------------------- */
+ return $RESULT;
+ }
+
+ // ++
+ function getOrarendByDiakId($diakId, $SET = array('tolDt'=>'','igDt'=>'','osztalyId'=>'')) {
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $NAPOK = _genNapok($tolDt,$igDt);
+ // dátumfüggő FS#100
+ for ($i=0; $i<count($NAPOK); $i++) {
+ $_dt = $NAPOK[$i];
+ $TANKORIDK[$_dt] = getTankorByDiakId($diakId,__TANEV, array('csakId'=>true,'tolDt'=>$_dt,'igDt'=>$_dt));
+ }
+ if ($SET['osztalyId']!='') {
+ $munkatervId = getMunkatervByOsztalyId($SET['osztalyId']);
+ } else {
+ $munkatervId = getMunkatervByDiakId($diakId, array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ }
+ $RESULT = getOrarend($TANKORIDK, array('tolDt'=>$tolDt,'igDt'=>$igDt,'NAPOK'=>$NAPOK, 'munkatervId'=>$munkatervId));
+ return $RESULT;
+ }
+
+ // ++
+ function getOrarendByOsztalyId($osztalyId, $SET=array('tolDt'=>'','igDt'=>'')) {
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ $NAPOK = _genNapok($tolDt,$igDt);
+ // dátumfüggő FS#100
+ for ($i=0; $i<count($NAPOK); $i++) {
+ $_dt = $NAPOK[$i];
+ $TANKORIDK[$_dt] = getTankorByOsztalyId($osztalyId,__TANEV,array('csakId'=>true,'tolDt'=>$_dt,'igDt'=>$_dt));
+ }
+ //
+ $munkatervId = getMunkatervByOsztalyId($osztalyId);
+ $RESULT = getOrarend($TANKORIDK, array('tolDt'=>$tolDt,'igDt'=>$igDt,'NAPOK'=>$NAPOK, 'munkatervId'=>$munkatervId));
+ return $RESULT;
+ }
+
+ // ++
+ function getOrarendByTankorId($tankorId, $SET=array('tolDt'=>'','igDt'=>'')) {
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ $NAPOK = _genNapok($tolDt,$igDt);
+ // dátumfüggő FS#100
+ for ($i=0; $i<count($NAPOK); $i++) {
+ $_dt = $NAPOK[$i];
+ $TANKORIDK[$_dt][0] = $tankorId;
+ }
+ $RESULT = getOrarend($TANKORIDK, array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ return $RESULT;
+ }
+
+ // ++
+ function getOrarendByMkId($mkId, $SET=array('tolDt'=>'','igDt'=>'','telephely'=>null)) {
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ $NAPOK = _genNapok($tolDt,$igDt);
+ // dátumfüggő FS#100
+ for ($i=0; $i<count($NAPOK); $i++) {
+ $_dt = $NAPOK[$i];
+ $TANKORIDK[$_dt] = getTankorByMkId($mkId,__TANEV,array('csakId'=>true,'tolDt'=>$_dt,'igDt'=>$_dt));
+ }
+ $munkatervIds = getMunkatervek(array('result'=>'idonly'));
+ $RESULT = getOrarend($TANKORIDK, array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephely'=>$SET['telephely'],'munkatervId'=>$munkatervIds));
+ return $RESULT;
+ }
+
+ function getOrarend($TANKOROK, $SET=array('tolDt'=>'','igDt'=>'', 'telephely'=>null, 'NAPOK' => null, 'munkatervId'=>null)) {
+
+ //a tankörök tömb szerkezete megváltozik rev1300
+ if (!is_array($TANKOROK) || count($TANKOROK)==0) return false;
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt); // valljuk meg, ez kicsit tág intervallum lehet...
+ if (isset($SET['NAPOK']) && is_array($SET['NAPOK'])) {
+ $NAPOK = $SET['NAPOK'];
+ } else {
+ $NAPOK = _genNapok($tolDt,$igDt);
+ }
+
+ $tanevDb = tanevDbNev(__INTEZMENY, __TANEV);
+
+ if ($SET['telephely']!='' && is_string($SET['telephely'])) {
+ $W_TELEPHELY1 = " LEFT JOIN terem USING (teremId)";
+ $W_TELEPHELY2 = " WHERE telephely='".$SET['telephely']."' ";
+ }
+ $RESULT['assocFormat']['$nap$']['$ora$']['orak']['$index$']=true;
+ $RESULT['tankorokFormat']['$index$'] = true;
+ $_TMPTANKORIDK = array();
+ $RESULT['telephelyIdk'] = array();
+ for ($nI=0; $nI<count($NAPOK); $nI++) { // nI as napIndex
+ $_stamp = strtotime($NAPOK[$nI]);
+ $_dow = (date('w', $_stamp));
+ //$nap = $nI+1; // ez a rossz!
+ // Vasárnap
+ $nap = ($_dow==0)?7:$_dow;
+ $RESULT['napok'][$nap] = getOrarendiHetByDt($NAPOK[$nI],array('result'=>'assoc','munkatervId'=>$SET['munkatervId']));
+ $het = $RESULT['napok'][$nap]['het'];
+ if (in_array($RESULT['napok'][$nap]['tipus'],array('tanítási nap','speciális tanítási nap')) && $het!=0) { // ha van egyáltalán beállított tanítás...
+ $_dt = $NAPOK[$nI];
+ $TIME = "igDt>='%s' AND tolDt<='%s' AND nap=%u"; // ez miírt van külön? [bb]
+ $_TK = $TANKOROK[$_dt];
+ if (is_array($_TK) && count($_TK)>0) {
+ $q = "SELECT orarendiOra.*,orarendiOraTankor.*,tankorTipus.jelleg,terem.telephelyId FROM $tanevDb.orarendiOra
+ ".$W_TELEPHELY1."
+ LEFT JOIN $tanevDb.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ ".$W_TELEPHELY2."
+ LEFT JOIN tankor USING (tankorId) LEFT JOIN tankorTipus USING (tankorTipusId)
+ LEFT JOIN terem USING (teremId)
+ HAVING $TIME AND het=%u AND tankorId IN (".implode(',', array_fill(0, count($_TK), '%u')).")
+ AND tankorId IN (
+ SELECT tankorId FROM $tanevDb.nap
+ LEFT JOIN $tanevDb.munkatervOsztaly USING (munkatervId)
+ LEFT JOIN tankorOsztaly USING (osztalyId)
+ WHERE tipus IN ('tanítási nap') AND dt='".$_dt."'
+ )
+
+ "; // nagy lekérdezés
+ array_unshift($_TK, $_dt, $_dt, $nap, $het);
+ $RES = db_query($q, array('fv' => 'getOrarend', 'modul' => 'naplo_intezmeny', 'values' => $_TK, 'result' => 'indexed'), $olr);
+ /* asszoc tömböt szeretnénk, és kigyűjtük az érintett tanköröket */
+ for($i = 0; $i < count($RES); $i++) {
+ if (!in_array($RES[$i]['telephelyId'],$RESULT['telephelyIdk']) && $RES[$i]['telephelyId']>0) $RESULT['telephelyIdk'][] = $RES[$i]['telephelyId'];
+ $RESULT['assoc'][$RES[$i]['nap']][$RES[$i]['ora']]['orak'][] = array('igDt'=>$RES[$i]['igDt'],'tolDt'=>$RES[$i]['tolDt'], 'het'=>$RES[$i]['het'],'tankorId'=>$RES[$i]['tankorId'], 'tanarId'=>$RES[$i]['tanarId'],'targyJel'=>$RES[$i]['targyJel'],'osztalyJel'=>$RES[$i]['osztalyJel'],'teremId'=>$RES[$i]['teremId'],'jelleg'=>$RES[$i]['jelleg'],'oo'=>true);
+ $_TMPTANKORIDK[$RES[$i]['tankorId']] = true;
+ }
+ $RESULT['db'] += count($RES);
+ }
+ }
+ }
+ if (is_array($_TMPTANKORIDK)) foreach ($_TMPTANKORIDK as $_tankorId => $_tmp) {
+ $RESULT['tankorok'][] = $_tankorId;
+ }
+ // adjuk tovább az esetlegesen lekérdezett tankörlistát... (ez csak Id-k gyűjteménye)
+ $RESULT['mindenTankorByDt'] = $TANKOROK;
+ return $RESULT;
+
+ }
+
+ function getOrarendByTeremId($teremId, $het = '', $SET=array('tolDt'=>'','igDt'=>'', 'telephely'=>null)) {
+
+ $diff = 5;
+
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt); // valljuk meg, ez kicsit tág intervallum lehet...
+ if (isset($SET['NAPOK']) && is_array($SET['NAPOK'])) {
+ $NAPOK = $SET['NAPOK'];
+ } else {
+ $NAPOK = _genNapok($tolDt,$igDt);
+ }
+
+ if ($telephely!='') {
+ $W_TELEP = " AND telephely='%s'";
+ $v = array($telephely);
+ } else {
+ $W_TELEP = '';
+ $v = array();
+ }
+
+// for ($nap=1; $nap<=count($NAPOK); $nap++) {
+ for ($nI=0; $nI<count($NAPOK); $nI++) { // nI as napIndex
+ $_stamp = strtotime($NAPOK[$nI]);
+ $_dow = (date('w', $_stamp));
+ // Vasárnap
+ $nap = ($_dow==0)?7:$_dow;
+ $RESULT['napok'][$nap] = getOrarendiHetByDt($NAPOK[$nI],array('result'=>'assoc'));
+ $het = $RESULT['napok'][$nap]['het'];
+ if ($het!=0) { // ha van egyáltalán beállított tanítás...
+ $_dt = $NAPOK[$nI];
+ $TIME = "igDt>='%s' AND tolDt<='%s' AND nap=%u"; // miért van ez külön? [bb]
+ $q = "SELECT * FROM orarendiOra LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId) LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel) HAVING $TIME
+ AND het=%u AND teremId=%u".$W_TELEP;
+ array_unshift($v, $_dt, $_dt, $nap, $het, $teremId);
+ $RES = db_query($q, array('fv' => 'getOrarend', 'modul' => 'naplo', 'values' => $v, 'result' => 'indexed'), $olr);
+ /* és egészítsük ki bonyolultabb asszoc tömbbé */
+ for($i = 0; $i < count($RES); $i++) {
+ if (!in_array($RES[$i]['telephelyId'],$RESULT['telephelyIdk']) && $RES[$i]['telephelyId']>0) $RESULT['telephelyIdk'][] = $RES[$i]['telephelyId'];
+ $RESULT['assoc'][$RES[$i]['nap']][$RES[$i]['ora']]['orak'][] = array('het'=>$RES[$i]['het'],'tankorId'=>$RES[$i]['tankorId'], 'tanarId'=>$RES[$i]['tanarId'],'targyJel'=>$RES[$i]['targyJel'],'osztalyJel'=>$RES[$i]['osztalyJel'],'teremId'=>$RES[$i]['teremId']);
+ if (!is_null($RES[$i]['tankorId'])) $RESULT['tankorok'][] = $RES[$i]['tankorId'];
+ }
+ }
+ }
+ return $RESULT;
+
+ }
+
+
+
+ // Az adott dátum napján érvényes órarend lekérdezése
+ function getOrarendByDt($dt, $orarendiHet = array(1), $tanev = __TANEV) {
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $q = "SELECT * FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE het IN (".implode(',', array_fill(0, count($orarendiHet), '%u')).") AND tolDt<='%s' AND '%s' <= igDt
+ ORDER BY het,nap,ora,tanarId";
+ array_unshift($orarendiHet, $tanevDb, $tanevDb);
+ array_push($orarendiHet, $dt, $dt);
+ return db_query($q, array('fv' => 'getOrarendByDt', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $orarendiHet));
+ }
+
+ function getOrarendiHetek($SET = array('tolDt' => '', 'igDt' => '', 'tanev' => __TANEV, 'csakOrarendbol' => false, 'felsoHatar' => 20)) {
+
+ $tolDt = readVariable($SET['tolDt'], 'datetime', null);
+ $igDt = readVariable($SET['igDt'], 'datetime', null);
+ $csakOrarendbol = readVariable($SET['csakOrarendbol'], 'bool', false);
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ $felsoHatar = readVariable($SET['felsoHatar'], 'numeric unsigned', 20);
+
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ $q = "SELECT DISTINCT het FROM `%s`.orarendiOra WHERE igDt>='%s' AND tolDt<='%s' AND het<%u ORDER BY het";
+ $ret = db_query($q, array('fv' => 'getOrarendiHetek', 'modul' => 'naplo', 'result' => 'idonly', 'values' => array($tanevDb, $tolDt, $igDt, $felsoHatar)));
+ if (!$csakOrarendbol) {
+ // nincs még egyetlen órarendi bejegyzés sem - vagyük a munkatervből (kell a tolDt-igDt megszorítás?)
+ $q = "SELECT DISTINCT orarendiHet FROM `%s`.nap WHERE orarendiHet != 0 AND orarendiHet<%u AND '%s'<=dt AND dt<='%s' ORDER BY orarendiHet";
+ $ret = @array_values(@array_unique(@array_merge($ret,db_query($q, array('fv' => 'getOrarendiHetek', 'modul' => 'naplo', 'result' => 'idonly', 'values' => array($tanevDb,$felsoHatar,$tolDt,$igDt))))));
+ }
+
+ return $ret;
+ }
+
+ function getLastOrarend($SET = array('tanev' => __TANEV)) {
+ $v = array(tanevDbNev(__INTEZMENY, $SET['tanev']));
+ return db_query("SELECT max(het) FROM `%s`.orarendiOra", array('fv' => 'getLastOrarend', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'));
+ }
+
+ function getMinOra($SET = array('tanev' => __TANEV)) {
+ $v = array(tanevDbNev(__INTEZMENY, $SET['tanev']));
+ return db_query("SELECT MIN(ora) FROM `%s`.orarendiOra", array('fv' => 'getMinOra', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'));
+ }
+ function getMaxOra($SET = array('tanev' => __TANEV)) {
+ $v = array(tanevDbNev(__INTEZMENY, $SET['tanev']));
+ $ret = db_query("SELECT MAX(ora) FROM `%s`.orarendiOra", array('fv' => 'getMaxOra', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'));
+ if (defined('__MAXORA_MINIMUMA') && __MAXORA_MINIMUMA>$ret) $ret = __MAXORA_MINIMUMA;
+ return $ret;
+ }
+ function getMaxNap($SET = array('tanev' => __TANEV, 'tolDt'=>null, 'igDt'=>null, 'haladasi'=>false)) {
+ if ($SET['tanev']=='') $SET['tanev'] = __TANEV;
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $SET['tanev']);
+ $v = array($tanevDbNev);
+ $maxNap = db_query("SELECT max(nap) FROM `%s`.orarendiOra", array('fv' => 'getMaxNap', 'modul' => 'naplo_intezmeny', 'values' => $v, 'result' => 'value'));
+ $halMaxNap=0;
+ if ($SET['haladasi']===true) {
+ $v = array($tanevDbNev,$SET['tolDt'],$SET['igDt']);
+ $q = "select max(dayofweek(dt)-1) AS halMaxNap from `%s`.ora where dt>='%s' and dt<='%s'" ;
+ $halMaxNap =
+ db_query($q,
+ array('fv' => 'getMaxNap2', 'modul' => 'naplo', 'result' => 'value','values'=>$v));
+ }
+ return (($halMaxNap>$maxNap)?$halMaxNap:$maxNap);
+ }
+
+ function getOrarendiHetByDt($dt, $SET = array('result' => '', 'alert'=>false, 'munkatervId'=>null)) {
+
+ /* ezt javíthatnánk!!! */
+ if ( (!is_array($SET['munkatervId']) && $SET['munkatervId'] != '') || (is_array($SET['munkatervId']) && count($SET['munkatervId'])>0) ) {
+ if (is_array($SET['munkatervId']))
+ $W = ' AND orarendiHet!=0 AND munkatervId IN ('.implode(',',$SET['munkatervId']).')';
+ else
+ $W = ' AND orarendiHet!=0 AND munkatervId = '.intval($SET['munkatervId']);
+ } else $W = '';
+
+ if ($dt == '') {
+ $return = getLastOrarend();
+ } else {
+ if ($SET['result']=='assoc')
+ $return = db_query(
+ "SELECT orarendiHet AS het,dt,tipus,megjegyzes,csengetesiRendTipus FROM nap WHERE dt='%s' ". $W,
+ array('fv' => 'getOrarendiHetByDt', 'modul' => 'naplo', 'values' => array($dt), 'result' => 'record')
+ );
+ else
+ $return = db_query(
+ "SELECT orarendiHet FROM nap WHERE dt='%s' ".$W,
+ array('fv' => 'getOrarendiHetByDt', 'modul' => 'naplo', 'values' => array($dt), 'result' => 'value')
+ );
+ }
+ if ($SET['alert']===true && is_null($return)) {
+ $_SESSION['alert'][] = 'info:nincs_nap_bejegyzes:'.$dt;
+ }
+ return $return;
+ }
+
+ function getOrarendiOraTankor($tanev = __TANEV) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $q = "SELECT * FROM `%s`.orarendiOraTankor";
+ return db_query($q, array('fv' => 'getOrarendiOraTankor', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanevDb)));
+
+ }
+
+ function getOrarendiOraAdat($SET = array('tanev' => __TANEV, 'dt' => null, 'tanarId' => null, 'het' => null, 'nap' => null, 'ora' => null)) {
+
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', (defined('__TANEV')?__TANEV:null));
+ $dt = readVariable($SET['dt'], 'datetime', null);
+ initTolIgDt($tanev, $dt, $dt);
+
+ // Ha van dátum, de nincs hét, nap óra, akkor azt a dátum alapján kellene beállítani)
+
+ if (isset($SET['tanarId']) && isset($SET['het']) && isset($SET['nap']) && isset($SET['ora']) && isset($dt) && isset($SET['tanev'])) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $SET['tanev']);
+ $q = "SELECT * FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE tolDt <= '%s' AND '%s' <= igDt AND tanarId=%u AND het=%u
+ AND nap=%u AND ora=%u";
+ $v = array($tanevDb, $tanevDb, $dt, $dt, $SET['tanarId'], $SET['het'], $SET['nap'], $SET['ora']);
+ return db_query($q, array('fv' => 'getOrarendiOraAdat', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v));
+
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:tanarId,het,nap,ora,tanev,dt';
+ return false;
+ }
+
+ }
+
+ function getTankorHetiOraszam($tankorId, $SET = array('tanev' => __TANEV, 'dt' => null, 'het' => 1)) {
+
+ global $_TANEV;
+
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev == __TANEV) $TA = $_TANEV;
+ else $TA = getTanevAdat($tanev);
+ $dt = readVariable($SET['dt'], 'datetime', $TA['zarasDt']);
+ $het = readVariable($SET['het'], 'numeric unsigned', 1);
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+
+ $q = "SELECT COUNT(*) FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE tolDt<='%s' AND '%s'<=igDt AND tankorId=%u AND het=%u";
+ $v = array($tanevDb, $tanevDb, $dt, $dt, $tankorId, $het);
+ return db_query($q, array('fv' => 'getTankorHetiOraszam', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+
+ }
+ function getCsengetesiRend() { // 'csengetesiRendTipus','telephelyId','nap','ora'
+ $SET['arraymap'] = array('csengetesiRendTipus','telephelyId','nap','ora');
+ $q = "SELECT * FROM csengetesiRend";
+ $result = db_query($q, array('fv'=>'getCsengetesiRend','modul'=>'naplo_intezmeny','result'=>'indexed'));
+ return reindex($result,$SET['arraymap']);
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/osztaly.php b/mayor-orig/www/include/modules/naplo/share/osztaly.php
new file mode 100644
index 00000000..86301c28
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/osztaly.php
@@ -0,0 +1,735 @@
+<?php
+
+require_once('include/modules/naplo/share/kepzes.php');
+
+function _evfolyam($tanev = __TANEV) {
+ // hasonlóan az evfolyamJel, hez, de csak a rendezéshez használjuk
+ $tanev = intval($tanev);
+ $evfSorsz = $tanev.'-kezdoTanev+kezdoEvfolyamSorszam';
+ return "if (
+ (osztaly.vegzoTanev>=$tanev AND osztaly.kezdoTanev<=$tanev),
+ CONVERT(REPLACE(SUBSTRING(SUBSTRING_INDEX(evfolyamJelek, ',', ".$evfSorsz."),LENGTH(SUBSTRING_INDEX(evfolyamJelek, ',', ".$evfSorsz."-1))+1),',',''),UNSIGNED),
+ NULL
+ )";
+}
+
+function _evfolyamJel($tanev = __TANEV) {
+ $tanev = intval($tanev);
+ $evfSorsz = $tanev.'-kezdoTanev+kezdoEvfolyamSorszam';
+ return "if (
+ (osztaly.vegzoTanev>=$tanev AND osztaly.kezdoTanev<=$tanev),
+ REPLACE(SUBSTRING(SUBSTRING_INDEX(evfolyamJelek, ',', ".$evfSorsz."),LENGTH(SUBSTRING_INDEX(evfolyamJelek, ',', ".$evfSorsz."-1))+1),',',''),
+ NULL
+ )";
+}
+
+function _osztalyJel($tanev = __TANEV) {
+ $tanev = intval($tanev);
+ $evfSorsz = $tanev.'-kezdoTanev+kezdoEvfolyamSorszam';
+ return "if (
+ (osztaly.osztalyJellegId IS NOT NULL AND osztaly.vegzoTanev>=$tanev AND osztaly.kezdoTanev<=$tanev),
+ CONCAT(REPLACE(SUBSTRING(SUBSTRING_INDEX(evfolyamJelek, ',', ".$evfSorsz."),LENGTH(SUBSTRING_INDEX(evfolyamJelek, ',', ".$evfSorsz."-1))+1),',',''),'.',osztaly.jel),
+ CONCAT(osztaly.kezdoTanev,'/',osztaly.vegzoTanev,'.',osztaly.jel)
+ )";
+}
+
+function getEvfolyam($osztalyId, $tanev, $osztalyAdat = null, $olr = null) {
+ return null;
+}
+
+function getEvfolyamJel($osztalyId, $tanev=__TANEV, $osztalyAdat = null, $_osztalyJellel = false, $olr=null) {
+
+ if (is_array($osztalyAdat)) {
+ $ret = $osztalyAdat;
+ } else {
+ // is_resource mysqli esetén nem jó (object)
+ if ($olr) $lr = $olr;
+ else $lr = db_connect('naplo_intezmeny');
+ $ret = getOsztalyAdat($osztalyId, $tanev, $lr);
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) db_close($lr);
+ }
+ if ($ret['kezdoTanev']<=$tanev && $tanev<=$ret['vegzoTanev']) {
+ $evfSorsz = $tanev-$ret['kezdoTanev']+$ret['kezdoEvfolyamSorszam']; // ez 1 bázisú sorszám!!
+ $evfolyamJel = $ret['evfolyamJelek'][$evfSorsz-1];
+ } else {
+ if ($_osztalyJellel === true) $evfolyamJel = $ret['kezdoTanev'].'/'.$ret['vegzoTanev'];
+ else $evfolyamJel = false;
+ }
+
+ if ($_osztalyJellel === true) return $evfolyamJel.'.'.$ret['jel'];
+ else return $evfolyamJel;
+}
+/*
+ * A kompatibilitás miatt az evfolyamJel-ből evfolyam-ot generálunk
+ */
+function evfolyamJel2Evfolyam($evfolyamJel) {
+ switch ($evfolyamJel) {
+ case '1':
+ return 1; break;
+ case '2':
+ return 2; break;
+ case '3':
+ return 3; break;
+ case '4':
+ return 4; break;
+ case '5':
+ return 5; break;
+ case '6':
+ return 6; break;
+ case '7':
+ return 7; break;
+ case '8':
+ case 'H2':
+ case 'H/II/1':
+ case 'H/II/2':
+ case '1/8':
+ return 8; break;
+ case '9':
+ case '9N':
+ case '9/N':
+ case '9Ny':
+ case '9/Ny':
+ case '9Kny':
+ case '9/Kny':
+ case '9AJTP':
+ case '9/AJTP':
+ case '9AJKP':
+ case '9/AJKP':
+ case 'H1':
+ case 'H/I':
+ case '2/9':
+ case '1/9':
+ return 9; break;
+ case '10':
+ case '3/10':
+ case '2/10':
+ return 10; break;
+ case '11':
+ case '11/Ny':
+ case '3/11':
+ case '1/11':
+ return 11; break;
+ case '12':
+ case '2/12':
+ return 12; break;
+ case '13':
+ case '1/13':
+ case '5/13':
+ case 'Szé/12/1':
+ return 13; break;
+ case '14':
+ case '2/14':
+ case 'Szé/12/2':
+ return 14; break;
+ case '15':
+ return 15; break;
+ default:
+ return null;
+ }
+}
+
+function getOsztalyJel($osztalyId, $tanev, $osztalyAdat = null, $olr=null) {
+ return getEvfolyamJel($osztalyId, $tanev, $osztalyAdat, $_osztalyJellel=true, $olr);
+}
+
+global $_EVFOLYAMJEL_BETUVEL;
+$_EVFOLYAMJEL_BETUVEL = array(
+ '1' => 'első',
+ '2' => 'második',
+ '3' => 'harmadik',
+ '4' => 'negyedik',
+ '5' => 'ötödik',
+ '6' => 'hatodik',
+ '7' => 'hetedik',
+ '8' => 'nyolcadik',
+ 'H1' => 'Híd I. program',
+ 'H/I' => 'Híd I. program',
+ 'H2/1' => 'Híd II. program 1. évfolyam',
+ 'H/II/1' => 'Híd II. program 1. évfolyam',
+ 'H2/2' => 'Híd II. program 2. évfolyam',
+ 'H/II/2' => 'Híd II. program 2. évfolyam',
+ '9N' => 'nemzetiségi előkészítő',
+ '9/N' => 'nemzetiségi előkészítő',
+ '9Ny' => 'nyelvi előkészítő',
+ '9/Ny' => 'nyelvi előkészítő',
+ '9Kny' => 'két tanítási nyelvű előkészítő',
+ '9/Kny' => 'két tanítási nyelvű előkészítő',
+ '9AJTP' => 'Arany János Tehetséggondozó Program',
+ '9/AJTP' => 'Arany János Tehetséggondozó Program',
+ '9AJKP' => 'Arany János Kollégiumi Program',
+ '9/AJKP' => 'Arany János Kollégiumi Program',
+ '9' => 'kilencedik',
+ '10' => 'tizedik',
+ '11/Ny' => 'nyelvi előkészítő',
+ '11' => 'tizenegyedik',
+ '12' => 'tizenkettedik',
+ '13' => 'tizenharmadik',
+ '14' => 'tizennegyedik',
+ '15' => 'tizenötödik',
+ '1/8' => '1/8 szakképző évfolyam',
+ '2/9' => '2/9 szakképző évfolyam',
+ '3/10' => '3/10 szakképző évfolyam',
+ '1/9' => '1/9 szakképző évfolyam',
+ '2/10' => '2/10 szakképző évfolyam',
+ '3/11' => '3/11 szakképző évfolyam',
+ '1/11' => '1/11 szakképző évfolyam',
+ '2/12' => '1/12 szakképző évfolyam',
+ '1/13' => '1/13 szakképző évfolyam',
+ '2/14' => '2/14 szakképző évfolyam',
+ '5/13' => '5/13 szakképző évfolyam',
+ 'Szé/12/1' => 'érettségire felkészítő 1. évfolyam',
+ 'Szé/12/2' => 'érettségire felkészítő 2. évfolyam',
+);
+/*
+ KNT. 6. melléklete: engedélyezett, egyházi, 6-8 évf. gimnázium,
+ NKT. 27. § (5) - tehetséggondozás+felzárkóztatás - 2 óra/hét/osztály
+ NKT. 27. § (6) - 1-4 évf. felzárkóztatás: 2 óra/hét/fő
+ NKT. 27. § (7) - SNI magántanul 10 óra/hét/fő
+ */
+global $_EVFOLYAM_ADAT;
+$_EVFOLYAM_ADAT = array(
+ // tanulóÓraszám => array(testnevelés nélkül, testnevelés)
+ // osztályIdőkeret => array(engedélyezett, hittan, 6-8 gimn, nemzetiségi // tehetséggondozás+felzárkóztatás + 2 óra/hét/osztály
+ // létszám => array(min, max, átlag)
+ '1' => array('tanulóÓraszám' => array(20,5), 'osztályIdőkeret' => array(52,1,0,2), 'létszám' => array(14,27,23)),
+ '2' => array('tanulóÓraszám' => array(20,5), 'osztályIdőkeret' => array(52,1,0,2), 'létszám' => array(14,27,23)),
+ '3' => array('tanulóÓraszám' => array(20,5), 'osztályIdőkeret' => array(52,1,0,2), 'létszám' => array(14,27,23)),
+ '4' => array('tanulóÓraszám' => array(22,5), 'osztályIdőkeret' => array(55,1,0,2), 'létszám' => array(14,27,23)),
+ '5' => array('tanulóÓraszám' => array(23,5), 'osztályIdőkeret' => array(51,1,2,2), 'létszám' => array(14,27,23)),
+ '6' => array('tanulóÓraszám' => array(23,5), 'osztályIdőkeret' => array(51,1,2,2), 'létszám' => array(14,27,23)),
+ '7' => array('tanulóÓraszám' => array(26,5), 'osztályIdőkeret' => array(56,1,2,2), 'létszám' => array(14,27,23)),
+ '8' => array('tanulóÓraszám' => array(26,5), 'osztályIdőkeret' => array(56,1,2,2), 'létszám' => array(14,27,23)),
+ 'H1' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(8,10,9)),
+ 'H/I' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(8,10,9)),
+ 'H2/1' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(8,10,9)),
+ 'H/II/1' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(8,10,9)),
+ 'H2/2' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(8,10,9)),
+ 'H/II/2' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(8,10,9)),
+ '9N' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)), // Nincs a mellékletben
+ '9/N' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)),//??
+ '9Ny' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)),
+ '9/Ny' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)),
+ '9Kny' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)), //??
+ '9/Kny' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)), //??
+ '9AJTP' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)), //??
+ '9/AJTP' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)), //??
+ '9AJKP' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)), //??
+ '9/AJKP' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)),//??
+ '9' => array('tanulóÓraszám' => array(30,5), 'osztályIdőkeret' => array(57,2,2,3), 'létszám' => array(26,34,28)),
+ '10' => array('tanulóÓraszám' => array(31,5), 'osztályIdőkeret' => array(57,2,2,3), 'létszám' => array(26,34,28)),
+ '11/Ny' => array('tanulóÓraszám' => array(25,5), 'osztályIdőkeret' => array(56,2,0,3), 'létszám' => array(26,34,28)),
+ '11' => array('tanulóÓraszám' => array(30,5), 'osztályIdőkeret' => array(58,2,2,3), 'létszám' => array(26,34,28)),
+ '12' => array('tanulóÓraszám' => array(30,5), 'osztályIdőkeret' => array(58,2,2,3), 'létszám' => array(26,34,28)),
+ '13' => array('tanulóÓraszám' => array(30,5), 'osztályIdőkeret' => array(58,2,2,3), 'létszám' => array(26,34,28)), //??
+ '14' => array('tanulóÓraszám' => array(30,5), 'osztályIdőkeret' => array(58,2,2,3), 'létszám' => array(26,34,28)), //??
+ '15' => array('tanulóÓraszám' => array(30,5), 'osztályIdőkeret' => array(58,2,2,3), 'létszám' => array(26,34,28)), //??
+ '1/8' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '2/9' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '3/10' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '1/9' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '2/10' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '3/11' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '1/11' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '2/12' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '1/13' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '2/14' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ '5/13' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(16,28,24)), //??
+ 'Szé/12/1' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(26,34,28)),
+ 'Szé/12/2' => array('tanulóÓraszám' => array(), 'osztályIdőkeret' => array(), 'létszám' => array(26,34,28)),
+);
+
+// használja a kepzes.php!!
+define('_SQL_EVFOLYAMJEL_SORREND', "FIELD(evfolyamJel,'1','2','3','4','5','6','7','8',".
+"'9N','9/N','9Ny','9/Ny','9Kny','9/Kny','9AJTP','9/AJTP','9AJKP','9/AJKP','9','10','11/Ny','11','12','13','14','15',"
+."'H1','H/I','H2','H/II/1','H/II/2',"
+."'1/8','2/9','3/10','1/9','2/10','3/11',"
+."'1/11','2/12','1/13','2/14','3/15','4/16','5/13','Szé/12/1','Szé/12/2')");
+
+function getEvfolyamJelek($SET = array('result'=>'indexed')) {
+ $J = array(
+'1','2','3','4','5','6','7','8',
+'9N','9/N','9Ny','9/Ny','9Kny','9/Kny','9AJTP','9/AJTP','9AJKP','9/AJKP','9','10','11/Ny','11','12','13','14','15',
+'H1','H/I','H2','H/II/1','H/II/2',
+'1/8','2/9','3/10','1/9','2/10','3/11',
+'1/11','2/12','1/13','2/14','3/15','4/16','5/13','Szé/12/1','Szé/12/2'
+);
+ if ($SET['result'] == 'idonly') return $J;
+ $ret = array();
+ foreach ($J as $evfolyamJel) $ret[] = array('evfolyamJel'=>$evfolyamJel);
+ return $ret;
+}
+
+function getKovetkezoEvfolyamJel($evfolyamJel) {
+
+ $q = "select distinct substring_index(substring_index(evfolyamJelek,'%s,',-1),',',1)
+ from osztalyJelleg where evfolyamJelek like '%s' ',%%' or evfolyamJelek like '%%,' '%s' ',%%'"; // stringek egymásutánja MySQL szerint egymásután fűzést jelöl...
+ $ret = db_query($q, array('fv'=>'getKovetkezoEvfolyamJel','modul'=>'naplo_base','result'=>'value','values'=>array($evfolyamJel, $evfolyamJel, $evfolyamJel)));
+ if ($ret == '') {
+ $_SESSION['alert'][] = 'info:getKovetkezoEvfolyamJel hiba:'.$evfolyamJel;
+ return false;
+ } else {
+ return $ret;
+ }
+/*
+ if (in_array($evfolyamJel, array('1','2','3','4','5','6','7','8','9','10','11','12','13','14'))) return $evfolyamJel+1;
+ else if (in_array($evfolyamJel, array('11/Ny'))) return 11;
+ else if (in_array($evfolyamJel, array('9N','9Ny','9Kny','9AJTP','9AJKP','H2'))) return 9;
+ else if (in_array($evfolyamJel, array('9/N','9/Ny','9/Kny','9/AJTP','9/AJKP'))) return 9;
+ else if (in_array($evfolyamJel, array('7N','7Ny'))) return 7;
+ else if (in_array($evfolyamJel, array('7/N','7/Ny'))) return 7;
+ else if (in_array($evfolyamJel, array('4N','4Ny'))) return 4;
+ else if (in_array($evfolyamJel, array('4/N','4/Ny'))) return 4;
+ else if ($evfolyamJel == 'H1' || $evfolyamJel == 'H/I') return 10;
+ else if ($evfolyamJel == 'H/II/1') return 'H/II/2';
+ else if ($evfolyamJel == 'Szé/12/1') return 'Szé/12/2';
+ else if (in_array($evfolyamJel, array('1/8','2/9','1/9','2/10','1/11','2/12','1/13'))) {
+ list($e, $m) = explode('/',$evfolyamJel);
+ $e++; $m++; return $e.'/'.$m;
+ }
+ else {
+ $_SESSION['alert'][] = 'info:getKovetkezoEvfolyamJel hiba:'.$evfolyamJel;
+ return false;
+ }
+*/
+}
+
+/*
+ * getEvfolyamAdatByDiakId
+ *
+ * return [ array('evfolyam', 'evfolyamJel') | false | array('evfolyam'=>array(), 'evfolyamJel'=>array())
+ */
+function getEvfolyamAdatByDiakId($diakId, $dt, $tanev, $csakHaEgyertelmu = true) {
+
+ $OSZTALYOK = getDiakOsztalya($diakId,array('tanev'=>$tanev,'tolDt'=>$dt,'igDt'=>$dt));
+ $ret = array('evfolyam'=>array(), 'evfolyamJel'=>array());
+ foreach ($OSZTALYOK as $oAdat) {
+ $osztalyId = $oAdat['osztalyId'];
+ $OA = getOsztalyAdat($osztalyId, $tanev);
+ $evfolyam = getEvfolyam($osztalyId, $tanev, $OA);
+ $evfolyamJel = getEvfolyamJel($osztalyId, $tanev, $OA);
+ if (!in_array($evfolyam, $ret['evfolyam'])) $ret['evfolyam'][] = $evfolyam;
+ if ($evfolyamJel != '' && !in_array($evfolyamJel, $ret['evfolyamJel'])) $ret['evfolyamJel'][] = $evfolyamJel;
+ }
+ if ($csakHaEgyertelmu===true) {
+ if (count($ret['evfolyamJel'])===1 && count($ret['evfolyam']===1)) {
+ return array('evfolyam'=>$ret['evfolyam'][0], 'evfolyamJel'=>$ret['evfolyamJel'][0]);
+ } else {
+ $_SESSION['alert'][] = '::nem tudom kitalálni az évfolyamot (db osztály: '.count($OSZTALYOK).", diakId: $diakId, tanev: $tanev)";
+ return false;
+ }
+ } else {
+ return $ret;
+ }
+
+}
+
+//!!ITT!!
+function getOsztalyIdByEvfolyamJel($evfolyamJel, $tanev = __TANEV) {
+
+ if (is_array($evfolyamJel) && count($evfolyamJel) > 0) {
+ $q = "SELECT osztalyId FROM osztaly LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId)
+ WHERE "._evfolyamJel($tanev)." IN (".implode(',', array_fill(0, count($evfolyamJel), "'%s'")).")
+ ORDER BY osztalyId";
+ return db_query($q, array('fv' => 'getOsztalyIdByEvfolyamJe', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $evfolyamJel));
+ } else {
+ return array();
+ }
+}
+
+function getOsztalyIdByTankorIds($tankorIds, $SET = array('result' => 'indexed')) {
+ $q = "SELECT tankorId,osztalyId FROM tankorOsztaly WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ return db_query($q, array('fv' => 'tankorokOsztalyi', 'modul' => 'naplo_intezmeny', 'result' => $SET['result'], 'values' => $tankorIds));
+}
+
+// Elavult, már nem használt függvény
+// function checkOsztalyInTanev($tanev, $osztalyId='') {
+//
+// $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+// $lr = db_connect('naplo_intezmeny', array('fv' => 'checkOsztalyInTanev'));
+// if (!$lr) return false;
+// //$tlr = db_connect('naplo');
+//
+// // Ellenőrizzük, hogy van-e az adott tanévben jele...
+// $OSZTALYOK = getOsztalyok($tanev);
+// for ($i = 0; $i < count($OSZTALYOK); $i++) {
+// if ($OSZTALYOK[$i]['osztalyJel'] == '' && ($tanev-$OSZTALYOK[$i]['kezdoTanev']) >= 0) {
+// // $v = array($tanevDb, $OSZTALYOK[$i]['osztalyId'], genOsztalyJel($tanev,$OSZTALYOK[$i]));
+// $v = array($tanevDb, $OSZTALYOK[$i]['osztalyId'], $OSZTALYOK[$i]['osztalyJel'], $OSZTALYOK[$i]['evfolyam'], $OSZTALYOK[$i]['evfolyamJel']);
+// $q = "REPLACE INTO `%s`.osztalyNaplo (osztalyId,osztalyJel,evfolyam,evfolyamJel) VALUES (%u,'%s',%u,'%s')";
+// db_query($q, array('fv' => 'checkOsztalyInTanev', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+// }
+// }
+// db_close($lr);
+//
+// }
+
+function getOsztalyok($tanev = '', $SET = array('result' => 'indexed', 'minden'=>false, 'telephelyId' => null, 'osztalyIds'=>null), $olr=null) {
+ global $_TANEV,$mayorCache;
+
+ if (!is_array($SET)) $SET = array('result' => 'indexed', 'minden'=>false, 'telephelyId' => null);
+
+ if (!isset($SET['result'])) $SET['result'] = 'indexed';
+ if (!isset($SET['minden'])) $SET['minden'] = false;
+ if (!isset($SET['telephelyId'])) $SET['telephelyId'] = null;
+
+
+ $key = __FUNCTION__.':'.md5($tanev.serialize($SET));
+ if ($mayorCache->exists($key)) return $mayorCache->get($key);
+
+ $W = array();
+ if (is_array($SET['osztalyIds']) && count($SET['osztalyIds'])>0) {
+ $W[] = ' osztalyId IN ('.implode(',',$SET['osztalyIds']).') ';
+ }
+
+ if ($tanev == '' && defined('__TANEV')) $tanev = __TANEV;
+ $telephelyId = readVariable($SET['telephelyId'], 'id');
+
+ // is_resource mysqli esetén nem jó (object)
+ if ($olr) $lr = $olr;
+ else $lr = db_connect('naplo_intezmeny');
+
+ // A tanév státuszának lekérdezése
+ // REQUEST -- ezt a szemeszter fv könyvtár csinálja inkább
+ if ($tanev == __TANEV) {
+ $statusz = $_TANEV['statusz'];
+ } else {
+ $q ="SELECT statusz FROM szemeszter WHERE tanev='$tanev' LIMIT 1";
+ $statusz = db_query($q, array('fv' => 'getOsztalyok', 'modul' => 'naplo_intezmeny', 'result' => 'value'), $lr);
+ }
+ // Az osztályok adatainak lekérdezése
+ if ($SET['minden']!==true) {
+ if (isset($telephelyId)) {
+ $W[] = "kezdoTanev <= %u AND vegzoTanev >= %u AND (telephelyId = %u OR telephelyId IS NULL)";
+ $v = array($tanev, $tanev, $telephelyId);
+ } else {
+ $W[] = "kezdoTanev <= %u AND vegzoTanev >= %u";
+ $v = array($tanev, $tanev);
+ }
+ } else { $v = array(); }
+ if (count($W)>0) $WHERE = "WHERE ".implode(' AND ',$W);
+ if ($statusz == 'tervezett') {
+ // Nincs még tanév adatbázis --> csak az osztly tábla használható;
+ $q = "SELECT `osztalyId`, `leiras`, `kezdoTanev`, `vegzoTanev`, `jel`, `kezdoEvfolyamSorszam`,"._osztalyJel($tanev)." AS `osztalyJel`,
+ "._evfolyam($tanev)." AS evfolyam, "._evfolyamJel($tanev)." AS evfolyamJel, `telephelyId`,`osztalyJellegId`
+ FROM `osztaly` LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId) $WHERE";
+ } elseif ($SET['minden']===true) {
+ $q = "SELECT `osztalyId`, `leiras`, `kezdoTanev`, `vegzoTanev`, `jel`, `kezdoEvfolyamSorszam`,
+ IF (ISNULL(osztalyJel),"._osztalyJel($tanev).",osztalyJel) AS `osztalyJel`,
+ "._evfolyam($tanev)." AS evfolyam, "._evfolyamJel($tanev)." AS evfolyamJel, `telephelyId`,`osztalyJellegId`
+ FROM `osztaly` LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId)
+ LEFT JOIN `".tanevDbNev(__INTEZMENY, $tanev)."`.`osztalyNaplo` USING (`osztalyId`)
+ $WHERE";
+ } else {
+ // Van tanév adatbázis --> lekérdezhető az osztály jelölése is.
+ $q = "SELECT `osztaly`.`osztalyId` AS `osztalyId`, `leiras`, `kezdoTanev`, `vegzoTanev`, `jel`, `kezdoEvfolyamSorszam`, `osztalyJel`,
+ `evfolyam`, `evfolyamJel`, `telephelyId`,`osztalyJellegId`
+ FROM `osztaly` LEFT JOIN `".tanevDbNev(__INTEZMENY, $tanev)."`.`osztalyNaplo` USING (`osztalyId`) $WHERE";
+ }
+ $q .= ' ORDER BY '._SQL_EVFOLYAMJEL_SORREND.', osztalyJel, kezdoTanev';
+// $q .= "ORDER BY evfolyamJel, kezdoTanev, jel";
+// $q .= "ORDER BY LPAD(SUBSTRING_INDEX(`osztalyJel`,'.',1),4,'0'),LPAD(SUBSTRING_INDEX(`osztalyJel`,'.',-1),4,'0'),`kezdoTanev`,`jel`";
+
+ $return = array();
+ if ($SET['result']==='assoc') { // ha assoc, a keyfield automatikusan az osztalyId legyen!!!
+ $r1 = db_query($q, array('fv' => 'getOsztalyok', 'modul'=>'naplo_intezmeny', 'result'=>'indexed', 'values' => $v), $lr );
+ for ($i=0; $i<count($r1); $i++) {
+ //$return[$i] = $r1[$i];
+ //$return[$i]['osztalyfonok']=getOsztalyfonok($r1[$i]['osztalyId']);
+ $return[$r1[$i]['osztalyId']] = $r1[$i];
+ $return[$r1[$i]['osztalyId']]['osztalyfonok']=getOsztalyfonok($r1[$i]['osztalyId']); // TODO: lr
+ $return[$r1[$i]['osztalyId']]['osztalyfonokNev']=$return[$r1[$i]['osztalyId']]['osztalyfonok']['tanarNev'];
+ }
+ } elseif ($SET['result']==='indexed') {
+ $r1 = db_query($q, array('fv' => 'getOsztalyok', 'modul'=>'naplo_intezmeny', 'result'=>'indexed', 'values' => $v), $lr );
+ for ($i=0; $i<count($r1); $i++) {
+ $return[$i] = $r1[$i];
+ if ($SET['mindenOsztalyfonok']===true) {
+ $return[$i]['osztalyfonok']=getOsztalyfonokok($r1[$i]['osztalyId'],$tanev); // TODO: lr
+ $return[$i]['osztalyfonokNev']=_genOfNev($return[$i]['osztalyfonok']);
+ } else {
+ $return[$i]['osztalyfonok']=getOsztalyfonok($r1[$i]['osztalyId']); //TODO: lr
+ $return[$i]['osztalyfonokNev']=$return[$i]['osztalyfonok']['tanarNev'];
+ }
+ }
+ } else {
+ $_SESSION['alert'][] = '::shared lib failure, unknown result type(getOsztalyok)';
+ }
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) db_close($lr);
+
+ $mayorCache->set($key,$return,'osztaly');
+ return $return;
+
+}
+
+/*
+ erettsegizo - csak azok az osztályok jelennek meg, melyek a megadott tanévben végeznek és osztályJellegük szerint érettségizők
+ vizsgazo - csak azok az osztályok jelennek meg, melyek a megadott tanévben végeznek és osztályJellegük szerint érettségizők vagy szakmai vizsgát tevők
+*/
+function getVegzosOsztalyok($SET = array('tanev' => __TANEV, 'result' => 'assoc', 'erettsegizo' => false, 'vizsgazo' => false)) {
+
+ global $_TANEV;
+
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev == __TANEV) $TA = $_TANEV;
+ else $TA = getTanevAdat($tanev);
+
+ if ($SET['erettsegizo'] === true) {
+ $WHERE_ERETTSEGIZO = " AND vegzesKovetelmenye='érettségi vizsga' ";
+ $JOIN_ERETTSEGIZO = " LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId) ";
+ } else if ($SET['vizsgazo'] === true) {
+ $WHERE_ERETTSEGIZO = " AND vegzesKovetelmenye IN ('érettségi vizsga','szakmai vizsga') ";
+ $JOIN_ERETTSEGIZO = " LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId) ";
+ } else {
+ $WHERE_ERETTSEGIZO = "";
+ }
+
+ if ($SET['result'] == 'id' || $SET['result'] == 'idonly') {
+ // Csak az osztalyId kell
+ $q = "SELECT osztalyId FROM osztaly".$JOIN_ERETTSEGIZO." WHERE osztaly.vegzoTanev = %u".$WHERE_ERETTSEGIZO."";
+ $return = db_query($q, array('fv' => 'getVegzosOsztalyok', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tanev)));
+ } else {
+ if ($TA['statusz'] == 'tervezett') {
+ // Nincs még tanév adatbázis --> csak az osztly tábla használható;
+ $q = "SELECT osztalyId,leiras,kezdoTanev,vegzoTanev,jel,kezdoEvfolyamSorszam,"._osztalyJel($tanev)." AS osztalyJel
+ FROM osztaly".$JOIN_ERETTSEGIZO."
+ WHERE vegzoTanev = %u".$WHERE_ERETTSEGIZO."
+ ORDER BY LPAD(SUBSTRING_INDEX(osztalyJel,'.',1),4,'0'),LPAD(SUBSTRING_INDEX(osztalyJel,'.',-1),4,'0'),kezdoTanev,jel";
+ $v = array($tanev);
+ } else {
+ // Van tanév adatbázis --> lekérdezhető az osztály jelölése is.
+ $q = "SELECT osztaly.osztalyId AS osztalyId,leiras,kezdoTanev,vegzoTanev,jel,kezdoEvfolyamSorszam,osztalyJel
+ FROM osztaly LEFT JOIN `%s`.osztalyNaplo USING (osztalyId)".$JOIN_ERETTSEGIZO."
+ WHERE vegzoTanev = %u".$WHERE_ERETTSEGIZO."
+ ORDER BY LPAD(SUBSTRING_INDEX(osztalyJel,'.',1),4,'0'),LPAD(SUBSTRING_INDEX(osztalyJel,'.',-1),4,'0'),kezdoTanev,jel";
+ $v = array(tanevDbNev(__INTEZMENY, $tanev), $tanev);
+ }
+ $return = db_query($q, array('fv' => 'getVegzosOsztalyok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if (is_array($return)) for ($i = 0; $i < count($return); $i++) {
+ $return[$i]['osztalyfonok'] = getOsztalyfonok($return[$i]['osztalyId'], $tanev);
+ }
+ }
+
+ return $return;
+}
+
+function getOsztalyfonok($osztalyId, $tanev=__TANEV, $olr = null) {
+
+ global $_TANEV;
+
+ // Az adott tanév elejének és végének lekérdezése
+ if ($tanev != __TANEV) $tanevAdat = getTanevAdat($tanev, $olr);
+ else $tanevAdat = $_TANEV;
+
+ initTolIgDt($tanev, $kDt, $zDt);
+
+ $q = "SELECT osztalyTanar.tanarId,
+ TRIM(CONCAT(viseltNevElotag,' ',viseltCsaladiNev,' ',viseltUtonev)) As tanarNev, osztalyTanar.beDt, osztalyTanar.kiDt
+ FROM osztalyTanar LEFT JOIN tanar USING (tanarId)
+ WHERE osztalyId = %u
+ AND osztalyTanar.beDt <= '%s'
+ AND (osztalyTanar.kiDt IS NULL OR osztalyTanar.kiDt > '%s')
+ ORDER BY osztalyTanar.beDt DESC LIMIT 1";
+ $v = array($osztalyId, $zDt, $kDt);
+ return db_query($q, array('fv' => 'getOsztalyfonok', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v), $olr);
+
+}
+
+function getOsztalyfonokok($osztalyId, $tanev = null, $olr = null) {
+
+ global $_TANEV;
+
+ $ret = false;
+ if (is_null($tanev)) {
+
+ $q = "SELECT osztalyTanar.tanarId AS tanarId,
+ TRIM(CONCAT(viseltNevElotag,' ',viseltCsaladiNev,' ',viseltUtonev)) AS tanarNev,
+ osztalyTanar.beDt AS beDt,
+ osztalyTanar.kiDt AS kiDt
+ FROM osztalyTanar LEFT JOIN tanar USING (tanarId)
+ WHERE osztalyId = %u
+ ORDER BY osztalyTanar.beDt";
+ $ret = db_query($q, array('fv' => 'getOsztalyfonokok','modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($osztalyId)), $olr);
+
+ } else {
+
+ // Az adott tanév elejének és végének lekérdezése
+ if ($tanev != __TANEV) $tanevAdat = getTanevAdat($tanev, $olr);
+ else $tanevAdat = $_TANEV;
+
+ $kDt = $tanevAdat['kezdesDt']; $zDt = $tanevAdat['zarasDt'];
+
+ $q = "SELECT osztalyTanar.tanarId AS tanarId,
+ TRIM(CONCAT(viseltNevElotag,' ',viseltCsaladiNev,' ',viseltUtonev)) AS tanarNev,
+ osztalyTanar.beDt AS beDt,
+ osztalyTanar.kiDt AS kiDt
+ FROM osztalyTanar LEFT JOIN tanar USING (tanarId)
+ WHERE osztalyId = %u
+ AND osztalyTanar.beDt < '%s'
+ AND (osztalyTanar.kiDt IS NULL OR osztalyTanar.kiDt > '%s')
+ ORDER BY osztalyTanar.beDt";
+
+ $ret = db_query($q, array('fv' => 'getOsztalyfonokok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($osztalyId, $zDt, $kDt)));
+ if (is_array($ret)) for ($i = 0; $i < count($ret); $i++) {
+ if ($ret[$i]['kiDt'] == '' || strtotime($ret[$i]['kiDt']) > time()) {
+ $ret[$i]['aktiv'] = true;
+ }
+ }
+
+ }
+
+ return $ret;
+
+}
+
+function getOsztalyAdat($osztalyId, $tanev = __TANEV, $olr = '') {
+
+ if ($osztalyId=='') return false;
+
+ global $_TANEV;
+
+ // Csatlakozás az adatbázishoz
+ if ($olr == '') $lr = db_connect('naplo_intezmeny', array('fv' => 'getOsztalyAdat'));
+ else $lr = $olr;
+ if (!$lr) return false;
+
+ // Osztály adatainak lekérdezése
+ if ($tanev == __TANEV) {
+ $tanevDb = __TANEVDBNEV; $TA = $_TANEV;
+ } else {
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $TA = getTanevAdat($tanev, $lr);
+ }
+ if ($TA['statusz'] == 'aktív')
+ $q = "SELECT osztaly.osztalyId AS osztalyId,leiras,kezdoTanev,vegzoTanev,jel,kezdoEvfolyamSorszam,osztalyJel,evfolyamJel,telephelyId,osztalyJellegId,kirOsztalyJellegId,elokeszitoEvfolyam,evfolyamJelek
+ FROM osztaly LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId)
+ LEFT JOIN %1\$s.osztalyNaplo USING (osztalyId) WHERE osztalyId=%2\$u";
+ else
+ $q = "SELECT osztaly.osztalyId AS osztalyId,leiras,kezdoTanev,vegzoTanev,jel,kezdoEvfolyamSorszam,"._osztalyJel($tanev)." AS osztalyJel,"._evfolyamJel($tanev)." AS evfolyamJel,telephelyId,osztalyJellegId,kirOsztalyJellegId,elokeszitoEvfolyam,evfolyamJelek
+ FROM osztaly LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId) WHERE osztalyId=%2\$u";
+ $v = array($tanevDb, $osztalyId);
+ $osztalyAdat = db_query($q, array('fv' => 'getOsztalyAdat', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v), $lr);
+ $osztalyAdat['evfolyamJelek'] = explode(',',$osztalyAdat['evfolyamJelek']);
+ $osztalyAdat['osztalyfonok'] = getOsztalyfonok($osztalyId, $tanev, $lr);
+ $osztalyAdat['osztalyfonokok'] = getOsztalyfonokok($osztalyId, $tanev, $lr);
+ $osztalyAdat['osztalyfonokNev'] = _genOfNev($osztalyAdat['osztalyfonokok']);
+ $osztalyAdat['kepzes'] = getKepzesByOsztalyId($osztalyId); // ? lr
+ if ($olr == '') db_close($lr);
+
+ return $osztalyAdat;
+
+}
+
+function _genOfNev($_OF) {
+ $_of= array();
+ for ($j=0; $j<count($_OF); $j++) {
+ $_of[] = $_OF[$j]['tanarNev'];
+ }
+ return implode(', ',array_unique($_of));
+}
+
+function getOsztalyNevById($osztalyId,$SET=array('tanev'=>__TANEV)) {
+ $OA = getOsztalyAdat($osztalyId, $SET['tanev']);
+ return $OA['osztalyJel'].' '.$OA['leiras'];
+}
+
+function getOsztalyTankorei($osztalyId, $tanev=__TANEV) {
+
+ $lr = db_connect('naplo_intezmeny');
+
+ $q = "SELECT tankorId FROM tankorOsztaly WHERE osztalyId=%u";
+ $T = db_query($q, array('fv' => 'getOsztalyTankorei', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($osztalyId)), $lr);
+
+ $q = "SELECT DISTINCT tankorId, tankorNev
+ FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE tanev=%u AND tankorId IN (".implode(',', array_fill(0, count($T), '%u')).") ORDER BY tankorNev";
+ array_unshift($T, $tanev);
+ $return = db_query($q, array('fv' => 'getOsztalyTankorei', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $T), $lr);
+
+ db_close($lr);
+
+ return $return;
+
+}
+
+function getOsztalyJellegAdat($osztalyJellegId) {
+ $q = "SELECT * FROM osztalyJelleg WHERE osztalyJellegId=%u";
+ return db_query($q, array('fv'=>'getKirOsztalyJellegek','values'=>array($osztalyJellegId),'modul'=>'naplo_base','result'=>'record'));
+}
+
+function getKirOsztalyJellegek() {
+ $q = "SELECT * FROM kirOsztalyJelleg";
+ return db_query($q, array('fv'=>'getKirOsztalyJellegek','modul'=>'naplo_base','result'=>'indexed'));
+}
+
+function getOsztalyJellegek($SET = array('result' => 'indexed')) {
+ $q = "SELECT * FROM osztalyJelleg";
+ return db_query($q, array('fv'=>'getOsztalyJellegek','modul'=>'naplo_base','result'=>$SET['result'], 'keyfield' => 'osztalyJellegId'));
+}
+
+function getVegzosOsztalyJellegIds() {
+ $q = "SELECT osztalyJellegId FROM osztalyJelleg WHERE vegzesKovetelmenye IN ('érettségi vizsga','szakmai vizsga')";
+ return db_query($q, array('fv'=>'getVegzosOsztalyJellegIds','modul'=>'naplo_base','result'=>'idonly'));
+}
+
+function getOsztalyEvfolyamSzamElteres($osztalyId) {
+ $q = "SELECT CONVERT(vegzoTanev-kezdoTanev,SIGNED) - CONVERT((LENGTH(`evfolyamJelek`)-LENGTH(REPLACE(`evfolyamJelek`, ',', ''))),SIGNED) AS evfolyamSzamElteres FROM osztaly LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId) WHERE osztalyId=%u";
+ $v = array($osztalyId);
+ $r = db_query($q, array('fv'=>'checkOsztalyEvfolyamSzam','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+ return $r;
+}
+
+function getOsztalyHetiIdokeret($osztalyId, $osztalyAdat = null, $SET = array('egyhaziE' => null)) {
+
+ global $_EVFOLYAM_ADAT;
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+
+ if (!is_array($osztalyAdat)) $osztalyAdat = getOsztalyAdat($osztalyId);
+ if (is_null($SET['egyhaziE'])) {
+ $intezmenyAdat = getIntezmenyByRovidnev(__INTEZMENY);
+ $SET['egyhaziE'] = ($intezmenyAdat['fenntarto']=='egyházi');
+ }
+
+ $iAdat = $_EVFOLYAM_ADAT[$osztalyAdat['evfolyamJel']]['osztályIdőkeret'];
+
+ $idokeret['engedélyezett'] = $idokeret['összes'] = $iAdat[0]; // engedélyezett
+ $idokeret['összes'] += $idokeret['tehetséggondozás-felzárkóztatás'] = 2; // tehettség gondozás, felzárkóztatás
+ if ($SET['egyhaziE']) $idokeret['összes'] += $idokeret['egyházi'] = $iAdat[1];
+ if (in_array($osztalyAdat['osztalyJellegId'], array(51,52,53,61,62,63))) $idokeret['összes'] += $idokeret['gimnázium'] = $iAdat[2];
+ if ($nemzetisegi) $idokeret['összes'] += $idokeret['nemzetiségi'] = $iAdat[3];
+
+ return $idokeret;
+
+}
+
+function getOsztalyByTanarId($tanarId, $Param = array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'csakId'=>true)) {
+
+ global $_TANEV;
+ if (is_null($Param['tanev']) || $Param['tanev']=='') $Param['tanev']=__TANEV;
+ if ($Param['tanev'] != __TANEV && $Param['tanev']!='') $TA = getTanevAdat($Param['tanev']);
+ else $TA = $_TANEV;
+
+ if (isset($Param['tolDt']) && $Param['tolDt']!='') $tolDt = $Param['tolDt']; else unset($tolDt);
+ if (isset($Param['igDt']) && $Param['igDt']!='') $igDt = $Param['igDt']; else unset($igDt);
+ initTolIgDt($Param['tanev'], $tolDt, $igDt);
+
+ if ($Param['csakId']===true) {
+ $q = "SELECT DISTINCT osztalyId FROM ".__INTEZMENYDBNEV.".osztalyTanar WHERE tanarId=%u AND beDt <= '%s'
+ AND (kiDt IS NULL OR kiDt >= '%s')";
+ $v = array($tanarId, $igDt, $tolDt);
+ return db_query($q, array('fv' => 'getOsztalyByTanarId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+ } else {
+ $q = "SELECT DISTINCT osztalyId, "._osztalyJel($TA['tanev'])." AS osztalyJel
+ FROM ".__INTEZMENYDBNEV.".osztalyTanar LEFT JOIN osztaly USING (osztalyId)
+ LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId)
+ WHERE tanarId=%u AND beDt <= '%s'
+ AND (kiDt IS NULL OR kiDt >= '%s')";
+ $v = array($tanarId, $igDt, $tolDt);
+ return db_query($q, array('fv' => 'getOsztalyByTanarId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ }
+}
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/osztalyModifier.php b/mayor-orig/www/include/modules/naplo/share/osztalyModifier.php
new file mode 100644
index 00000000..fe04fdcc
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/osztalyModifier.php
@@ -0,0 +1,313 @@
+<?php
+
+// osztalyId, tanarId, beDt --> kiDt
+function osztalyfonokKileptetes($osztalyId, $tanarId, $beDt, $kiDt, $olr = null) {
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ if (strtotime($beDt) > strtotime($kiDt)) {
+ $_SESSION['alert'][] = 'message:wrong_data:'.$beDt.' - '.$kiDt;
+ return false;
+ }
+
+ $q = "UPDATE ".__INTEZMENYDBNEV.".osztalyTanar SET kiDt='%s' WHERE osztalyId=%u AND tanarId=%u AND beDt='%s'";
+ $v = array($kiDt, $osztalyId, $tanarId, $beDt);
+ return db_query($q, array('fv' => 'osztalyfonokKileptetes', 'modul' => 'naplo_intezmeny', 'values' => $v), $olr);
+
+}
+
+
+
+// MÁR NINCS HASZNÁLATBAN!!!!!!!!!!!!
+function osztalyNevsorModositas($osztalyId, $diakIds, $beDt, $kiDt, $olr='') {
+
+// 1. A kiDt utáni tankörtagságokat törli, ha a tankör nincs a diák másik kiDt-kori, vagy utána lévő osztályához is rendelve (tankoOsztaly)
+// 2. A beDt előtti tankörtagságokat érintetlenül hagyjuk (a tankorOsztaly változhat...)
+// 3. Az osztalyDiak-ban (osztalyId,diakId) kulcs - csak egy bejegyzés van, ezt bővítjük, szűkítjük...
+// 4. Sikertelen tankör kiléptetés esetén visszagörgetünk (pl. ha van jegye, hiányzása egy tankörben)
+
+
+ $_SESSION['alert'][] = 'info:!!!:osztalyNevsorModositas()';
+
+ if (is_array($diakIds) && count($diakIds) > 0) {
+
+ if ($olr!='') {
+ $lr=$olr;
+ } else {
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ }
+
+ $diakTankorKileptetesOK = array(); // a diakTorol függvény talált-e ütközést vagy hibát, akkor bebillenti ezt a flag-et, false-ra!
+
+ if ($kiDt != '') {
+ /* Konzisztencia megőrzése: tankorből kiléptetés, ahol: tankorOsztaly --> tankorId-k be benne van */
+ for($i = 0; $i < count($diakIds); $i++) {
+
+ $diakId = $diakIds[$i];
+
+ // A diáknak mely tankörei érintettek (amikben a kiDt-kor, vagy utána benne van, de más (kiDt-kori, vagy későbbi) osztályához nem tartozik:
+ $q = "SELECT tankorId FROM tankorDiak WHERE diakId=%u AND (kiDt IS NULL or '%s'<=kiDt) AND tankorId NOT IN
+ (SELECT DISTINCT tankorId FROM osztalyDiak LEFT JOIN tankorOsztaly USING(osztalyId)
+ WHERE diakId=%u AND (kiDt is NULL or '%s'<=kiDt) AND osztalyId <> %u)";
+ $v = array($diakId, $kiDt, $diakId, $kiDt, $osztalyId);
+ $tankorIds = db_query($q, array('fv' => 'osztalyNevsorModositas', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $lr);
+
+ // Tankörökből kivétel - $kiDt utáni naptól
+ $diakTankorKileptetesOK[$diakId] = true;
+ for ($j = 0; $j < count($tankorIds); $j++) {
+ $_D = array('tankorId' => $tankorIds[$j], 'diakId' => $diakId, 'utkozes'=>'torles', 'tolDt' => date('Y-m-d', strtotime('+1 days', strtotime($kiDt))));
+ $ret = tankorDiakTorol($_D, $lr);
+ if ($ret === false) {
+ $_SESSION['alert'][] = 'message:wrong_data:osztalyNevsorModositas - tankorDiakTorol FAILED - diakId='.$diakId.' - tankorId='.$tankorIds[$j];
+ $diakTankorKileptetesOK[$diakId] = false;
+ }
+ }
+ // Visszajelzés
+ if (count($tankorIds) > 0 && $diakTankorKileptetesOK[$diakId] === true)
+ $_SESSION['alert'][] = 'info:diak_tankorokben_lezarva:'.$diakId.':'.implode(',',$tankorIds).':'.$kiDt;
+ // Megjegyzés: a beDt előtti tankörtagságokat nem állítjuk be... mert a tankorOsztaly összerendelés változhat...
+ }
+
+ }
+
+ if (!in_array(false, array_values($diakTankorKileptetesOK))) {
+
+ // (osztalyId, diakId) kulcs, csak egy bejegyzés van...
+ if ($beDt == '') {
+ $q = "UPDATE osztalyDiak SET kiDt='%s' WHERE osztalyId=%u AND diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")";
+ array_unshift($diakIds, $kiDt, $osztalyId);
+ } elseif ($kiDt != '') {
+ $q = "UPDATE osztalyDiak SET beDt='%s', kiDt='%s' WHERE osztalyId=%u AND diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")";
+ array_unshift($diakIds, $beDt, $kiDt, $osztalyId);
+ } else {
+ $q = "UPDATE osztalyDiak SET beDt='%s', kiDt=NULL WHERE osztalyId=%u AND diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")";
+ array_unshift($diakIds, $beDt, $osztalyId);
+ }
+ $ret = db_query($q, array('fv' => 'osztalyNevsorModositas', 'modul' => 'naplo_intezmeny', 'values' => $diakIds, 'rollback' => true), $lr);
+ db_commit($lr);
+
+ } else {
+ db_rollback($lr);
+ $ret = false;
+ }
+ if ($olr!='') {
+
+ } else {
+ db_close($lr);
+ }
+
+ return $ret;
+
+ } else { return false; } // nincs diakId
+
+}
+
+
+function osztalyLezaras($osztalyIds, $dt) {
+
+ global $mayorCache;
+ $mayorCache->delType('osztaly');
+
+ $dt = readVariable($dt, 'datetime', null);
+ if (!isset($dt)) return false;
+
+ if (!is_array($osztalyIds) && $osztalyIds != '') $osztalyIds = array($osztalyIds);
+ if (count($osztalyIds) == 0) return false;
+
+ // lekérdezzük az érintett osztályok végző tanévének legnagyobb zárás dátumát.
+ $q = "SELECT MAX(zarasDt) FROM osztaly LEFT JOIN szemeszter ON vegzoTanev = tanev
+ WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).")";
+ $zarasDt = db_query($q, array('fv' => 'osztalyLezaras/ellenőrzés', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $osztalyIds));
+
+ // Csak zarasDt utáni dátummal zárunk le osztályt!
+ if (strtotime($dt) < strtotime($zarasDt)) return false;
+
+ // Tagok kiléptetése
+ $q = "UPDATE osztalyDiak SET kiDt='%s' WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ AND (kiDt IS NULL OR '%s' < kiDt)";
+ $v = mayor_array_join(array($dt), $osztalyIds, array($dt));
+ db_query($q, array('fv' => 'osztalyLezaras/tagok kiléptetése', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ // Osztályfőnöki megbizatás lezárása
+ // - Az érintett tanárok lekérdezése
+ $q = "SELECT DISTINCT tanarId FROM osztalyTanar WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ AND (kiDt IS NULL OR '%s' < kiDt)";
+ $v = mayor_array_join($osztalyIds, array($dt));
+ $tanarIds = db_query($q, array('fv' => 'osztalyLezaras/tanárok kiléptetése', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+ if (is_array($tanarIds) && count($tanarIds) > 0) {
+ // - Az osztályfőnöki megbizatás lezárása
+ $q = "UPDATE osztalyTanar SET kiDt='%s' WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ AND (kiDt IS NULL OR '%s' < kiDt)";
+ $v = mayor_array_join(array($dt), $osztalyIds, array($dt));
+ db_query($q, array('fv' => 'osztalyLezaras/tanárok kiléptetése', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ // Az osztályfőnöki munkaközösség frissítése
+ $q = "SELECT mkId FROM munkakozosseg WHERE leiras='osztályfőnöki'";
+ $mkId = db_query($q, array('fv' => 'osztalyLezaras/tanárok kiléptetése', 'modul' => 'naplo_intezmeny', 'result' => 'value'));
+ if ($mkId) { // Van egyáltalán osztályfőnöki munkaközösség
+ $q = "SELECT mkTanar.tanarId
+ FROM mkTanar LEFT JOIN osztalyTanar ON mkTanar.tanarId=osztalyTanar.tanarId
+ AND osztalyId NOT IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ WHERE mkId=%u AND mkTanar.tanarId IN (".implode(',', array_fill(0, count($tanarIds), '%u')).")
+ GROUP BY mkTanar.tanarId HAVING COUNT(osztalyId)=0";
+ $v = mayor_array_join($osztalyIds, array($mkId), $tanarIds);
+ $ofoTanarIds = db_query($q, array(
+ 'fv' => 'osztalyLezaras/tanárok kiléptetése', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v
+ ));
+ if (is_array($ofoTanarIds) && count($ofoTanarIds) > 0) {
+ $q = "DELETE FROM mkTanar WHERE mkId=%u AND tanarId IN (".implode(',', array_fill(0, count($ofoTanarIds), '%u')).")";
+ $v = mayor_array_join(array($mkId), $ofoTanarIds);
+ db_query($q, array(
+ 'fv' => 'osztalyLezaras/tanárok kiléptetése az osztályfőnöki munkaközösségből', 'modul' => 'naplo_intezmeny', 'values' => $v
+ ));
+ }
+ }
+ }
+ return true;
+
+}
+
+function osztalyDiakTorol($SET = array('osztalyId' => null, 'diakId' => null, 'tolDt' => null, 'igDt' => null, 'zaradekkal' => true), $olr='') {
+/*
+ 1. Ha az intervallum belelóg valamelyik lezárt tanévbe, akkor afüggvény nem végzi el az osztályból va kiléptetést.
+ 2. A $tolDt-$igDt közötti tankörtagságokat törli, ha a tankör nincs a diák másik tolDt-kori, vagy utána lévő osztályához is rendelve (tankoOsztaly)
+ 3. Ha a tankörökből nem sikerül törölni, akkor visszagörgetés történik
+ 4. A $tolDt-$igDt intervallumban törli a diák osztálytagságát ($igDt hiányában végig)
+ 5. Záradékolás még nincs.
+*/
+
+ $diakId = readVariable($SET['diakId'], 'id');
+ $osztalyId = readVariable($SET['osztalyId'], 'id');
+ $tolDt = readVariable($SET['tolDt'], 'date');
+ $igDt = readVariable($SET['igDt'], 'date');
+ $zaradekkal = readVariable($SET['zaradekkal'], 'bool', false);
+
+ // Csatlakozás az adatbázishoz
+ if ($olr=='') {
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'ujTag'));
+ if (!$lr) return false;
+ db_start_trans($lr);
+ } else {
+ $lr = $olr;
+ }
+
+ // Ellenőrizzük, hogy $tolDt-$igDt nem érint-e lezárt szorgalmi időszakot
+ if (isset($igDt)) {
+ $q = "SELECT DISTINCT tanev FROM szemeszter WHERE statusz IN ('lezárt','archivált') AND '%s'<=zarasDt AND kezdesDt<='%s'";
+ $v = array($tolDt, $igDt);
+ } else {
+ $q = "SELECT DISTINCT tanev FROM szemeszter WHERE statusz IN ('lezárt','archivált') AND '%s'<=zarasDt";
+ $v = array($tolDt);
+ }
+ $ret = db_query($q, array('fv' => 'osztalyDiakTorol', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $lr);
+ if (is_array($ret) && count($ret) > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:Lezárt tanév - '.implode(', ', $ret);
+ if ($olr=='') {
+ db_rollback($lr);
+ db_close($lr);
+ }
+ return false;
+ }
+
+ // ----- Tankörök ------
+ // A diáknak mely tankörei érintettek (amikben a kiDt-kor, vagy utána benne van, de más (kiDt-kori, vagy későbbi) osztályához nem tartozik:
+ $q = "SELECT tankorId FROM tankorDiak WHERE diakId=%u AND (kiDt IS NULL or '%s'<=kiDt) AND tankorId NOT IN
+ (SELECT DISTINCT tankorId FROM osztalyDiak LEFT JOIN tankorOsztaly USING(osztalyId)
+ WHERE diakId=%u AND (kiDt is NULL or '%s'<=kiDt) AND osztalyId <> %u)";
+ $v = array($diakId, $tolDt, $diakId, $tolDt, $osztalyId);
+ $tankorIds = db_query($q, array('fv' => 'osztalyDiakTorol', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $lr);
+
+ // Tankörökből kivétel - $tolDt-től
+ $diakTankorKileptetesOK = true;
+ for ($j = 0; $j < count($tankorIds); $j++) {
+ $_D = array('tankorId' => $tankorIds[$j], 'diakId' => $diakId, 'utkozes'=>'torles', 'tolDt' => $tolDt, 'igDt' => $igDt);
+ $ret = tankorDiakTorol($_D, $lr);
+ if ($ret === false) {
+ $_SESSION['alert'][] = 'message:wrong_data:osztalyDiakTorol - tankorDiakTorol FAILED - diakId='.$diakId.' - tankorId='.$tankorIds[$j];
+ $diakTankorKileptetesOK = false;
+ $R[] = false;
+ }
+ }
+ // Visszajelzés
+ if (count($tankorIds) > 0 && $diakTankorKileptetesOK[$diakId] === true) {
+ $_SESSION['alert'][] = 'info:diak_tankorokben_lezarva:'.$diakId.':'.implode(',',$tankorIds).':'.$tolDt.' - '.$igDt;
+ // Megjegyzés: a beDt előtti tankörtagságokat nem állítjuk be... mert a tankorOsztaly összerendelés változhat...
+ }
+
+ // ------- Tankörök vége------------
+
+ // Van-e már $tolDt-t tartalmazó osztálytagsága
+ $q = "SELECT beDt,kiDt FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND beDt<'%s' AND (kiDt IS NULL OR kiDt >= '%s')";
+ $ret = db_query($q, array('fv' => 'osztalyDiakTorol/bal', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($osztalyId, $diakId, $tolDt, $tolDt)), $lr);
+ if (!is_null($ret)) {
+ // Ha van, akkor azt levégjuk $tolDt előtt 1 nappal
+ $q = "UPDATE osztalyDiak SET kiDt='%s' - INTERVAL 1 DAY WHERE osztalyId=%u AND diakId=%u AND beDt='%s'";
+ $R[] = db_query($q, array('fv' => 'osztalyDiakTorol/bal levágás', 'modul' => 'naplo_intezmeny', 'values' => array($tolDt, $osztalyId, $diakId, $ret['beDt'])), $lr);
+ // Ha átnyuló tagság, akkor felvesszük a jobboldali szakaszt igDt után 1 nappal
+ if (!is_null($igDt)) {
+ if (is_null($ret['kiDt'])) { // kiDt NULL
+ $q = "INSERT INTO osztalyDiak (osztalyId, diakId, beDt, kiDt) VALUES (%u, %u, '%s' + INTERVAL 1 DAY, NULL)";
+ $R[] = db_query($q, array('fv' => 'osztalyDiakTorol/jobb beszúrás', 'modul' => 'naplo_intezmeny', 'values' => array($osztalyId, $diakId, $igDt)), $lr);
+ } elseif (strtotime($igDt) < strtotime($ret['kiDt'])) { // kiDt rögzített és túllóg igDt-n
+ $q = "INSERT INTO osztalyDiak (osztalyId, diakId, beDt, kiDt) VALUES (%u, %u, '%s' + INTERVAL 1 DAY, '%s')";
+ $R[] = db_query($q, array('fv' => 'osztalyDiakTorol/jobb beszúrás', 'modul' => 'naplo_intezmeny', 'values' => array($osztalyId, $diakId, $igDt, $ret['kiDt'])), $lr);
+ }
+ }
+ }
+ // Van-e $igDt-t tartalmazó osztály tagsága
+ if ($igDt != '') {
+ $q = "SELECT beDt FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND beDt<'%s' AND (kiDt IS NULL OR kiDt >= '%s')";
+ $ret = db_query($q, array('fv' => 'osztalyDiakTorol/jobb', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($osztalyId, $diakId, $igDt, $igDt)), $lr);
+ if (!is_null($ret)) {
+ // Ha van, akkor azt levégjuk $igDt után 1 nappal
+ $q = "UPDATE osztalyDiak SET beDt='%s' + INTERVAL 1 DAY WHERE osztalyId=%u AND diakId=%u AND beDt='%s'";
+ $R[] = db_query($q, array('fv' => 'osztalyDiakTorol/jobb levágás', 'modul' => 'naplo_intezmeny', 'values' => array($igDt, $osztalyId, $diakId, $ret['beDt'])), $lr);
+ }
+ // A köztes tagságokat töröljük
+ $q = "DELETE FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND '%s'<=beDt AND kiDt <= '%s'";
+ $R[] = db_query($q, array('fv' => 'osztalyDiakTorol', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($osztalyId, $diakId, $tolDt, $igDt)), $lr);
+ } else {
+ // A $tolDt utáni tagságokat töröljük
+ $q = "DELETE FROM osztalyDiak WHERE osztalyId=%u AND diakId=%u AND '%s'<=beDt";
+ $R[] = db_query($q, array('fv' => 'osztalyDiakTorol', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($osztalyId, $diakId, $tolDt)), $lr);
+ }
+
+ if ($olr=='') {
+ if (in_array(false,$R)) {
+ db_rollback($lr);
+ } else {
+ db_commit($lr);
+ }
+ db_close($lr);
+ }
+ if (in_array(false,$R)) return false; else return true;
+}
+
+function osztalyTorzslapszamGeneralas($osztalyId) {
+
+ $q = "SELECT kezdoTanev, vegzoTanev FROM osztaly WHERE osztalyId=%u";
+ $oAdat = db_query($q, array('fv'=>'osztalyTorzslapszamGeneralas','modul'=>'naplo_intezmeny','result'=>'record','values'=>array($osztalyId)));
+ $range = range(intval($oAdat['kezdoTanev']), intval($oAdat['vegzoTanev']));
+
+ // A replace nem törli ki a hibás/felesleges bejegyzéseket...
+ $q = "DELETE FROM diakTorzslapszam WHERE osztalyId=%u";
+ db_query($q, array('fv'=>'osztalyTorzslapszamGeneralas/del','modul'=>'naplo_intezmeny','values'=>array($osztalyId)));
+
+ // Egyszerű insert-tel valamiért nem megy... ??
+ $q = "REPLACE INTO diakTorzslapszam
+ SELECT %1\$u as osztalyId, diakId, @rank := @rank+1 AS torzslapszam FROM (
+ SELECT DISTINCT diakId";
+ foreach ($range as $ev) {
+ $q .= ",ifnull(diakNaploSorszam(diakId, $ev, %1\$u),99) as ns".$ev;
+ }
+ $q .= " FROM osztalyDiak WHERE osztalyId=%1\$u ORDER BY ns".implode(', ns', $range)."
+ ) t1, (SELECT @rank := 0) t2
+ WHERE ns".implode('<>99 OR ns', $range)."<>99";
+
+ $return = db_query($q, array('debug'=>false,'fv'=>'osztalyTorzslapszamGeneralas/replace','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>array($osztalyId)));
+
+ return $return;
+}
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/osztalyzatok.php b/mayor-orig/www/include/modules/naplo/share/osztalyzatok.php
new file mode 100644
index 00000000..321aaf4a
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/osztalyzatok.php
@@ -0,0 +1,342 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (file_exists("lang/$lang/module-naplo/share/osztalyzatok.php")) {
+ require_once("lang/$lang/module-naplo/share/osztalyzatok.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/module-naplo/share/osztalyzatok.php')) {
+ require_once('lang/'._DEFAULT_LANG.'/module-naplo/share/osztalyzatok.php');
+ }
+
+ /* Követelmény */
+global $KOVETELMENY;
+
+// 2011. évi CXC. törvény 54. § (2) a)
+if (!isset($KOVETELMENY['jegy']) || !is_array($KOVETELMENY['jegy'])) {
+ $KOVETELMENY['jegy']= array(
+ 'értékek' => array('1.0','2.0','3.0','4.0','5.0'),
+ 'sikertelen' => array('1.0'),
+ 'átlagolható' => true,
+ '1.0' => array('rovid' => '1', 'hivatalos' => 'ELEGTELEN'),
+ '2.0' => array('rovid' => '2', 'hivatalos' => 'ELEGSEGES', 'megjegyzes' => 'figyelmeztető'),
+ '3.0' => array('rovid' => '3', 'hivatalos' => 'KOZEPES'),
+ '4.0' => array('rovid' => '4', 'hivatalos' => 'JO',),
+ '5.0' => array('rovid' => '5', 'hivatalos' => 'JELES', 'megjegyzes' => 'dicséret'),
+ );
+}
+// 2011. évi CXC. törvény 54. § (2) b)
+if (!isset($KOVETELMENY['magatartás']) || !is_array($KOVETELMENY['magatartás'])) {
+ $KOVETELMENY['magatartás']=array(
+ 'értékek' => array('2.0','3.0','4.0','5.0'),
+ 'sikertelen' => array(),
+ 'átlagolható' => true,
+ '2.0' => array('rovid' => '2', 'hivatalos' => 'ROSSZ'),
+ '3.0' => array('rovid' => '3', 'hivatalos' => 'VALTOZO'),
+ '4.0' => array('rovid' => '4', 'hivatalos' => 'JO'),
+ '5.0' => array('rovid' => '5', 'hivatalos' => 'PELDAS'),
+ );
+}
+// 2011. évi CXC. törvény 54. § (2) c)
+if (!isset($KOVETELMENY['szorgalom']) || !is_array($KOVETELMENY['szorgalom'])) {
+ $KOVETELMENY['szorgalom']=array(
+ 'értékek' => array('2.0','3.0','4.0','5.0'),
+ 'sikertelen' => array(),
+ 'átlagolható' => true,
+ '2.0' => array('rovid' => '2', 'hivatalos' => 'HANYAG'),
+ '3.0' => array('rovid' => '3', 'hivatalos' => 'VALTOZO'),
+ '4.0' => array('rovid' => '4', 'hivatalos' => 'JO'),
+ '5.0' => array('rovid' => '5', 'hivatalos' => 'PELDAS'),
+ );
+}
+// 2011. évi CXC. törvény 54. § (3)
+if (!isset($KOVETELMENY['négyszintű (szöveges minősítés)']) || !is_array($KOVETELMENY['négyszintű (szöveges minősítés)'])) {
+ $KOVETELMENY['négyszintű (szöveges minősítés)']= array(
+ 'értékek' => array('1.0','2.0','3.0','4.0'),
+ 'sikertelen' => array('1.0'),
+ 'átlagolható' => false,
+ '1.0' => array('rovid' => 'FSZ', 'hivatalos' => 'FELZARKOZTATASRA_SZORUL'),
+ '2.0' => array('rovid' => 'MFT', 'hivatalos' => 'MEGFELELOEN_TELJESITETT'),
+ '3.0' => array('rovid' => 'JT', 'hivatalos' => 'JOL_TELJESITETT'),
+ '4.0' => array('rovid' => 'KT', 'hivatalos' => 'KIVALOAN_TELJESITETT'),
+ );
+}
+// 2011. évi CXC. törvény
+// 6. § (4) Az érettségi bizonyítvány kiadásának feltétele ötven óra közösségi szolgálat elvégzésének igazolása. A felnőttoktatás keretében szervezett érettségi vizsga esetében közösségi szolgálat végzésének igazolása nélkül is meg lehet kezdeni az érettségi vizsgát. A sajátos nevelési igényű tanulók esetében a szakértői bizottság ez irányú javaslata alapján a közösségi szolgálat mellőzhető.
+// 15. közösségi szolgálat: szociális, környezetvédelmi, a tanuló helyi közösségének javát szolgáló, szervezett keretek között folytatott, anyagi érdektől független, egyéni vagy csoportos tevékenység és annak pedagógiai feldolgozása,
+if (!isset($KOVETELMENY['teljesített óra']) || !is_array($KOVETELMENY['teljesített óra'])) {
+
+ $KOVETELMENY['teljesített óra']['sikertelen']= array(); // nem kötelező!
+ $KOVETELMENY['teljesített óra']['átlagolható']= false;
+ $KOVETELMENY['teljesített óra']['összeadható']= true;
+ for ($i=1; $i<=100; $i++) {
+ $_ertek = ($i%2 == 0) ? floor($i/2).'.0':floor($i/2).'.5';
+ $_mutat = ($i%2 == 0) ? floor($i/2):floor($i/2).',5';
+ $KOVETELMENY['teljesített óra']['értékek'][] = $_ertek;
+ $KOVETELMENY['teljesített óra'][$_ertek] = array('rovid'=>$_mutat.'ó', 'hivatalos'=>$_mutat.' óra');
+ }
+
+}
+// 2011. évi CXC. törvény 54. § (4)
+/*
+ A második évfolyam végén és a magasabb évfolyamokon félévkor és év végén a tanuló értékelésére - jóváhagyott
+ kerettanterv vagy az oktatásért felelős miniszter engedélyével - az iskola pedagógiai programja a (2) bekezdésben
+ meghatározottaktól eltérő jelölés, szöveges értékelés alkalmazását is előírhatja.
+*/
+if (!isset($KOVETELMENY['féljegy']) || !is_array($KOVETELMENY['féljegy'])) {
+ $KOVETELMENY['féljegy']= array(
+ 'értékek' => array('1.0','1.5','2.0','2.5','3.0','3.5','4.0','4.5','5.0'),
+ 'sikertelen' => array('1.0'),
+ 'átlagolható' => true,
+ '1.0' => array('rovid' => '1', 'hivatalos' => 'ELEGTELEN'),
+ '1.5' => array('rovid' => '1/2', 'hivatalos' => '1/2'),
+ '2.0' => array('rovid' => '2', 'hivatalos' => 'ELEGSEGES', 'megjegyzes' => 'figyelmeztető'),
+ '2.5' => array('rovid' => '2/3', 'hivatalos' => '2/3'),
+ '3.0' => array('rovid' => '3', 'hivatalos' => 'KOZEPES'),
+ '3.5' => array('rovid' => '3/4', 'hivatalos' => '3/4'),
+ '4.0' => array('rovid' => '4', 'hivatalos' => 'JO',),
+ '4.5' => array('rovid' => '4/5', 'hivatalos' => '4/5'),
+ '5.0' => array('rovid' => '5', 'hivatalos' => 'JELES', 'megjegyzes' => 'dicséret'),
+ );
+}
+if (!isset($KOVETELMENY['százalékos']) || !is_array($KOVETELMENY['százalékos'])) {
+ for ($i=0; $i<=100; $i++) {
+ $_ertek = $i.'.0';
+ if ($i<20) $KOVETELMENY['százalékos']['sikertelen'][] = $_ertek;
+ $KOVETELMENY['százalékos']['értékek'][] = $_ertek;
+ $KOVETELMENY['százalékos'][$_ertek] = array('rovid'=>$i.'%', 'hivatalos'=>$i.'%');
+ }
+}
+if (!isset($KOVETELMENY['aláírás']) || !is_array($KOVETELMENY['aláírás'])) {
+ $KOVETELMENY['aláírás']=array(
+ 'értékek' => array('1.0','2.0'),
+ 'sikertelen' => array('1.0'),
+ 'átlagolható' => false,
+ '1.0' => array('rovid' => '-', 'hivatalos' => 'MEGTAGADVA'),
+ '2.0' => array('rovid' => 'AI', 'hivatalos' => 'ALAIRVA'),
+ );
+}
+if (!isset($KOVETELMENY['háromszintű']) || !is_array($KOVETELMENY['háromszintű'])) {
+ $KOVETELMENY['háromszintű']=array(
+ 'értékek' => array('1.0','2.0','3.0'),
+ 'sikertelen' => array('1.0'),
+ 'átlagolható' => false,
+ '1.0' => array('rovid' => 'NFM', 'hivatalos' => 'NEMFELELTMEG'),
+ '2.0' => array('rovid' => 'MF', 'hivatalos' => 'MEGFELELT'),
+ '3.0' => array('rovid' => 'KMF', 'hivatalos' => 'KIVALOANMEGFELELT'),
+ );
+}
+if (!isset($KOVETELMENY['nem értékelhető']) || !is_array($KOVETELMENY['nem értékelhető'])) {
+ $KOVETELMENY['nem értékelhető']=array(
+ 'értékek' => array('1.0','2.0','3.0'),
+ 'sikertelen' => array('2.0','3.0'),
+ 'átlagolható' => false,
+ '1.0' => array('rovid' => 'Fm.', 'hivatalos' => 'FELMENTETT'),
+ '2.0' => array('rovid' => 'N.O.', 'hivatalos' => 'NEM_OSZTALYOZHATO'),
+ '3.0' => array('rovid' => 'N.J.M.', 'hivatalos' => 'NEM_JELENT_MEG')
+ );
+}
+
+
+ if (is_array($KOVETELMENY)) {
+ foreach ($KOVETELMENY as $k1 => $T) {
+ foreach ($T as $key => $val) {
+ if (defined('_'.$val['hivatalos'])) $KOVETELMENY[$k1][$key]['hivatalos'] = constant('_'.$val['hivatalos']);
+ if (defined('_'.$val['rovid'])) $KOVETELMENY[$k1][$key]['rovid'] = constant('_'.$val['rovid']);
+ }
+ if (!isset($KOVETELMENY[$k1]['átlagolható'])) $KOVETELMENY[$k1]['átlagolható'] = true;
+ if (!isset($KOVETELMENY[$k1]['összeadható'])) $KOVETELMENY[$k1]['összeadható'] = false;
+ }
+ }
+ $jegyTipusok = array(
+ _TOROLT, _KIS_JEGY, _NORMAL_JEGY, _DOLGOZAT, _TEMAZARO, _VIZSGAJEGY
+ );
+
+ $bizonyitvanyJegyzetek = array(
+ 'dicséret' => _JEGYZET_DICSERET,
+ 'figyelmeztető' => _JEGYZET_FIGYELMEZTETO,
+ 'nyelvvizsga' => _JEGYZET_NYELVVIZSGA
+ );
+
+ $bizonyitvanyMegjegyzesek = array(
+ 'figyelmeztető' => _FIGYELMEZTETO,
+ 'nyelvvizsga' => _NYELVVIZSGA,
+ 'dicséret' => _DICSERET,
+ '2.0' => array('figyelmeztető'),
+ '5.0' => array('dicséret','nyelvvizsga')
+ );
+
+ // A kitűnő megállapításához csak az átlagot vesszük figyelembe
+ if (!defined('_KITUNO_ATLAG')) define('_KITUNO_ATLAG', 5.0);
+ // jelesrendű, aki a megadott átlag fölött van és nincs a megadott jegynél gyengébb eredménye egyik tárgyból sem
+ if (!defined('_JELES_ATLAG')) define('_JELES_ATLAG', 4.75);
+ if (!defined('_JELES_LEGGYENGEBB_JEGY')) define('_JELES_LEGGYENGEBB_JEGY', 3);
+
+
+ /////////////////////////////////////////////////////////////////////
+
+ // Visszatérési értékek
+ // ----------------------------
+
+ // TOMB[ diakId ] [ targyId ] [ index 0..(n-1) ] VAGY $SET['arraymap'] szerinti
+
+ // !! Ez szigorúan a $szAdat['kezdesDt'] és $szAdat['zarasDt'] között szerzett osztályzatokat adja vissza!
+
+ /////////////////////////////////////////////////////////////////////
+/*
+// Törlendő!!
+ function getDiakZarojegyekByEvfolyam($diakIds, $evfolyam='', $szAdat='', $SET = array('arraymap'=>null)) { // csak evfolyam, evfolyamJelet nem kezel!
+ if (count($diakIds)<1) return false;
+ elseif (!is_array($diakIds)) $diakIds = array($diakIds);
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('diakId','targyId');
+ $values = $diakIds;
+ if (is_array($szAdat) && $szAdat['szemeszter']!='') {
+ $qSZ = " AND evfolyam=%u AND '%s' <= hivatalosDt AND hivatalosDt <= '%s' AND felev=%u"; // eredetileg felev>=%u (???)
+ $values[] = $evfolyam;
+ $values[] = $szAdat['kezdesDt'];
+ $values[] = $szAdat['zarasDt'];
+ $values[] = $szAdat['szemeszter'];
+ } elseif ($evfolyam!='') {
+ $qSZ = " AND evfolyam=%u ";
+ $values[] = $evfolyam;
+ }
+ $q = "SELECT * FROM zaroJegy WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") $qSZ ORDER BY felev, hivatalosDt";
+ $r = db_query($q, array('fv' => 'getDiakZarojegyekbyEvfolyam', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $values));
+ $ret = reindex($r,$SET['arraymap']);
+ return $ret;
+ }
+*/
+ // Az előző függvény évfolyamJel-es változata + a félévkor záruló tárgyak jegyei
+ function getDiakZarojegyekByEvfolyamJel($diakIds, $evfolyamJel='', $szAdat='', $SET = array('arraymap'=>null)) {
+ if (count($diakIds)<1) return false;
+ elseif (!is_array($diakIds)) $diakIds = array($diakIds);
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('diakId','targyId');
+ $values = $diakIds;
+ $evfolyam = evfolyamJel2Evfolyam($evfolyamJel);
+ if (is_array($szAdat) && $szAdat['szemeszter']!='') {
+ $qSZ = " AND (evfolyamJel='%s' OR (evfolyamJel IS NULL AND evfolyam=%u)) AND '%s' <= hivatalosDt AND hivatalosDt <= '%s' AND felev=%u";
+ $values[] = $evfolyamJel;
+ $values[] = $evfolyam;
+ $values[] = $szAdat['kezdesDt'];
+ $values[] = $szAdat['zarasDt'];
+ $values[] = $szAdat['szemeszter'];
+ } elseif ($evfolyamJel!='') {
+ $qSZ = " AND (evfolyamJel='%s' OR (evfolyamJel IS NULL AND evfolyam=%u)) ";
+ $values[] = $evfolyamJel;
+ $values[] = $evfolyam;
+ }
+ $q = "SELECT * FROM zaroJegy WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")
+ $qSZ ORDER BY felev, hivatalosDt";
+ $r = db_query($q, array('fv' => 'getDiakZarojegyekbyEvfolyamJel', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $values));
+ $arraymap = $SET['arraymap'];
+
+ // A félévkor lezáruló tárgyak félévi zárójegyei:
+ if ($SET['felevivel'] == true && (!is_array($szAdat) || $szAdat['szemeszter'] == 2)) {
+ $SET['arraymap'] = 'indexed';
+ $r2 = getDiakFeleviZarojegyekByEvfolyamJel($diakIds, $evfolyamJel, $szAdat, $SET);
+ for ($i=0; $i<count($r2); $i++) $r[] = $r2[$i];
+ }
+
+ $ret = reindex($r,$arraymap);
+ return $ret;
+ }
+
+ function getDiakFeleviZarojegyekByEvfolyamJel($diakIds, $evfolyamJel='', $szAdat='', $SET = array('arraymap'=>null)) {
+ if (count($diakIds)<1) return false;
+ elseif (!is_array($diakIds)) $diakIds = array($diakIds);
+ $values = $diakIds;
+ // A képzésenként a félévkor lezáruló tárgyak lekérdezése az adott évfolyamon
+ $q = "SELECT zaroJegy.* FROM zaroJegy LEFT JOIN kepzesDiak USING (diakId)
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).")
+ AND felev=1";
+ if ($evfolyamJel != '') { $q .= " AND evfolyamJel='%s'"; $values[] = $evfolyamJel; }
+ $q .= " AND CONCAT_WS('-',kepzesId,targyId,evfolyamJel) IN (
+ SELECT CONCAT_WS('-',kepzesId, targyId, evfolyamJel) FROM kepzesOraterv GROUP BY kepzesId, targyId, evfolyamJel HAVING MAX(szemeszter)=1
+ )
+ ORDER BY felev, hivatalosDt";
+ $r = db_query($q, array('fv' => 'getDiakFeleviZarojegyekbyEvfolyamJel', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $values));
+ if ($SET['arraymap'] == 'indexed') $ret = $r;
+ else {
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('diakId','targyId');
+ $ret = reindex($r,$SET['arraymap']);
+ }
+ return $ret;
+ }
+
+
+ function getDiakZarojegyek($diakIds, $tanev='', $szemeszter='', $SET = array('arraymap'=>null)) {
+ if (count($diakIds)<1) return false;
+ elseif (!is_array($diakIds)) $diakIds = array($diakIds);
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('diakId','targyId');
+ $values = $diakIds;
+ if ($szemeszter!='') {
+ $qSZ = " AND tanev=%u AND szemeszter=%u";
+ $values[] = $tanev;
+ $values[] = $szemeszter;
+ } elseif ($tanev!='') {
+ $qSZ = " AND tanev=%u ";
+ $values[] = $tanev;
+ }
+ $q = "SELECT * FROM zaroJegy
+ LEFT JOIN szemeszter ON kezdesDt<=hivatalosDt AND hivatalosDt<=zarasDt
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") ".$qSZ;
+ $r = db_query($q, array('fv' => 'getDiakZarojegyek', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $values));
+ $ret = reindex($r,$SET['arraymap']);
+ return $ret;
+ }
+
+ function getDiakokZarojegyeiByTargyId($DIAKIDS, $targyId, $SET = array('tanev'=>__TANEV, 'arraymap'=>null)) {
+
+ global $_TANEV;
+ // default
+ $BIZ = array();
+ if ($SET['tanev']=='') $tanev = __TANEV; else $tanev = $SET['tanev'];
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('diakId','evfolyamJel','szemeszter');
+
+ // walk
+ if (count($DIAKIDS) > 0) {
+ $q = "SELECT *, IF(evfolyamJel IS NULL,evfolyam,evfolyamJel) AS evfolyamStr FROM ".__INTEZMENYDBNEV.".zaroJegy
+ LEFT JOIN szemeszter ON kezdesDt <= hivatalosDt AND hivatalosDt <= zarasDt
+ WHERE targyId=%u
+ AND tanev=%u
+ AND diakId IN (".implode(",", $DIAKIDS).")";
+ array_unshift($DIAKIDS, $targyId, $tanev);
+ $ret = db_query($q, array('fv' => 'getDiakokZarojegyeiByTargyId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $DIAKIDS));
+ $BIZ = reindex($ret,$SET['arraymap']);
+ }
+ return $BIZ;
+ }
+
+ function getDiakokVizsgajegyeiByTargyId($DIAKIDS, $targyId, $SET = array('arraymap'=>null)) {
+ // default
+ $BIZ = array();
+ if (!is_array($SET['arraymap'])) $SET['arraymap'] = array('zaroJegyId');
+
+ // walk
+ if (count($DIAKIDS) > 0) {
+ $q = "SELECT *, IF(evfolyamJel IS NULL,evfolyam,evfolyamJel) AS evfolyamStr FROM vizsga
+ WHERE vizsga.targyId=%u
+ AND vizsga.diakId IN (".implode(",", $DIAKIDS).")";
+ array_unshift($DIAKIDS, $targyId);
+ $ret = db_query($q, array('fv' => 'getDiakokVizsgajegyeiByTargyId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $DIAKIDS));
+ $BIZ = reindex($ret,$SET['arraymap']);
+ }
+ return $BIZ;
+ }
+
+ function getZaroJegyAdat($zaroJegyId) {
+ $q = "SELECT * FROM zaroJegy WHERE zaroJegyId=%u";
+ $v = array($zaroJegyId);
+ return $r = db_query($q, array('fv' => 'getZaroJegyId', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v));
+ }
+ function getJegyAdat($jegyId) {
+ $q = "SELECT * FROM jegy
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ LEFT JOIN dolgozat USING (dolgozatId)
+ WHERE jegyId=%u";
+ $v = array($jegyId);
+ return $r = db_query($q, array('fv' => 'getJegyId', 'modul' => 'naplo', 'result' => 'record', 'values' => $v));
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/rpc.php b/mayor-orig/www/include/modules/naplo/share/rpc.php
new file mode 100644
index 00000000..23e543fc
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/rpc.php
@@ -0,0 +1,29 @@
+<?php
+
+ function getRPCPrivileges() {
+
+ $q = "SELECT * FROM rpcJogosultsag";
+ return db_query($q, array('fv'=>'getRPCPrivileges','modul'=>'naplo_base','result'=>'indexed'));
+
+ }
+ function getRPCPrivilegeByNUO($nodeId, $userAccount, $OMKod) {
+
+ $q = "SELECT priv FROM rpcJogosultsag WHERE nodeId=%u AND userAccount='%s' AND OMKod=%u";
+ $v = array($nodeId, $userAccount, $OMKod);
+ return db_query($q, array('fv'=>'getRPCPrivileges','modul'=>'naplo_base','result'=>'value','values'=>$v));
+
+ }
+ function addNodeToRPCPrivs($DATA) {
+
+ $q = "INSERT INTO rpcJogosultsag (nodeId, userAccount, OMKod) VALUES (%u, '%s', %u)";
+ $v = array($DATA['nodeId'], $DATA['userAccount'], $DATA['OMKod']);
+ return db_query($q, array('debug'=>false,'fv'=>'addNodeToRPCPrivs','modul'=>'naplo_base','values'=>$v));
+
+ }
+ function setPrivileges($DATA) {
+ $q = "UPDATE rpcJogosultsag SET priv='%s' WHERE nodeId=%u AND userAccount='%s' AND OMKod=%u";
+ $v = array(implode(',',$DATA['priv']),$DATA['nodeId'],$DATA['userAccount'],$DATA['OMKod']);
+ return db_query($q, array('debug'=>false,'fv'=>'setPrivileges','modul'=>'naplo_base','values'=>$v));
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/sni.php b/mayor-orig/www/include/modules/naplo/share/sni.php
new file mode 100644
index 00000000..61f20bb2
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/sni.php
@@ -0,0 +1,54 @@
+<?php
+
+ function getSniDiakAdat($diakId) {
+
+ $q = "SELECT * FROM sniDiakAdat WHERE diakId=%u";
+ $v = array($diakId);
+ return db_query($q, array('fv' => 'getDiakAdat','modul' => 'naplo','values' => $v, 'result' => 'record'));
+
+ }
+
+ function getHaviOsszegzes($diakId, $dt) {
+
+ $q = "SELECT * FROM sniHaviOsszegzes WHERE diakId=%u AND MONTH(dt)=MONTH('%s')";
+ $v = array($diakId, $dt);
+ $ret = db_query($q, array('fv' => 'getHaviOsszegzes', 'modul' => 'naplo', 'values' => $v, 'result' => 'record'));
+
+ $q = "SELECT tanarId FROM sniHaviOsszegzesFelelos WHERE haviOsszegzesId = %u";
+ $ret['felelos'] = db_query($q, array('fv' => 'getHaviOsszegzes', 'modul' => 'naplo', 'values' => array($ret['haviOsszegzesId']), 'result' => 'idonly'));
+
+ return $ret;
+
+ }
+
+ function sniHaviOsszegzesRogzites($Param) {
+
+ $Felelos = $Param['felelos']; unset($Param['felelos']);
+ // Korábbi bejegyzés törlése
+ $q = "SELECT haviOsszegzesId FROM sniHaviOsszegzes WHERE diakId = %u AND dt = '%s'";
+ $v = array($Param['diakId'], $Param['dt']);
+ $Param['haviOsszegzesId'] = db_query($q, array('fv' => 'sniHaviOsszesitesRogzites', 'modul' => 'naplo', 'values' => $v, 'result' => 'value'));
+ // Paraméterek feldolgozása
+ $pattern = $v = array();
+ foreach ($Param as $attr => $value) {
+ if (in_array($attr, array('diakId','haviOsszegzesId','valtozas')))
+ if ($value == '') { $pattern[] = '%s'; $value = 'NULL'; }
+ else $pattern[] = "%u";
+ else
+ $pattern[] = "'%s'";
+ $v[] = $value;
+ }
+ // új bejegyzés beszúrása
+ $q = "REPLACE INTO `sniHaviOsszegzes` (`".implode('`,`',array_keys($Param))."`) VALUES (".implode(',', $pattern).")";
+ $id = db_query($q, array('fv' => 'sniHaviOsszegzesRogzites', 'modul' => 'naplo', 'values' => $v, 'result' => 'insert'));
+ // felelosok törlése
+ $q = "DELETE FROM `sniHaviOsszegzesFelelos` WHERE haviOsszegzesId = %u";
+ $ret = db_query($q, array('fv' => 'sniHaviOsszegzesRogzites', 'modul' => 'naplo', 'values' => array($id)));
+ // új felelősök felvétele
+ if (is_array($Felelos) && count($Felelos) > 0) {
+ $q = "INSERT INTO `sniHaviOsszegzesFelelos` (`haviOsszegzesId`,`tanarId`) VALUES ".implode(',', array_fill(0, count($Felelos), "($id, %u)"));
+ $ret = db_query($q, array('fv' => 'sniHaviOsszegzesRogzites', 'modul' => 'naplo', 'values' => $Felelos));
+ }
+ return $ret;
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/szemeszter.php b/mayor-orig/www/include/modules/naplo/share/szemeszter.php
new file mode 100644
index 00000000..dae760ee
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/szemeszter.php
@@ -0,0 +1,176 @@
+<?php
+
+ function getSzemeszterek($SET = array('statusz' => array('aktív', 'lezárt', 'tervezett'), 'filter' => array())) {
+ global $mayorCache;
+ if (!isset($SET)) $SET = array('statusz' => array('aktív','lezárt','tervezett'));
+
+ $key = __FUNCTION__.':'.md5(serialize($SET));
+ if ($mayorCache->exists($key)) return $mayorCache->get($key);
+
+ $q = "SELECT * FROM szemeszter ";
+ if (is_array($SET['statusz']) && count($SET['statusz']) != 0) {
+ $q .="WHERE statusz IN ('".implode("','", array_fill(0, count($SET['statusz']), '%s'))."')";
+ $v = $SET['statusz'];
+ $kapocs = "AND ";
+ } else {
+ $kapocs = "WHERE "; $v = array();
+ }
+ if (is_array($SET['filter']) && count($SET['filter']) != 0) {
+ $q .= $kapocs . implode(' AND ',$SET['filter']);
+ }
+ $q .= ' ORDER BY tanev,szemeszter';
+ $r = db_query($q, array('fv' => 'getSzemeszterek', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ $mayorCache->set($key,$r,'szemeszter');
+ return $r;
+ }
+
+ function getSzemeszterByDt($dt, $tipus = 0) {
+ /*
+ 0 - a szemeszter tartalmazza a dátumot
+ 1 - a dátum napján, vagy utána végződő első szemeszter
+ -1 - a dátum napján vagy előtte kezdődő első szemeszter
+ */
+ if ($tipus < 0) $q = "SELECT * FROM szemeszter WHERE szemeszter.kezdesDt <= '%s' ORDER BY kezdesDt DESC LIMIT 1";
+ elseif ($tipus > 0) $q = "SELECT * FROM szemeszter WHERE szemeszter.zarasDt >= '%s' ORDER BY zarasDt LIMIT 1";
+ else $q = "SELECT * FROM szemeszter WHERE szemeszter.kezdesDt <= '%s' AND szemeszter.zarasDt >= '%s'";
+ $v = array($dt, $dt);
+ return db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'getSzemeszterByDt', 'result' => 'record', 'values' => $v, 'debug' => false));
+ }
+
+ function getSzemeszterIdByDt($dt) {
+ $q = "SELECT szemeszterId FROM szemeszter WHERE szemeszter.kezdesDt<='%s' AND szemeszter.zarasDt>='%s'";
+ return db_query($q, array('fv' => 'getSzemeszterIdByDt', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($dt, $dt)));
+ }
+
+ function getKovetkezoSzemeszterId($tanev,$szemeszter,$aktiv=null) {
+ if ($aktiv!='') $W = ' AND statusz="aktív" ';
+ $q = "SELECT szemeszterId FROM szemeszter WHERE CONCAT(szemeszter.tanev,szemeszter)>'%s' $W ORDER BY tanev,szemeszter LIMIT 1";
+ return db_query($q, array(
+ 'fv' => 'getKovetkezoSzemeszterId', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($tanev.$szemeszter)
+ ));
+ }
+
+ function getFelevByDt($dt) {
+ $q = "SELECT szemeszter AS felev FROM szemeszter WHERE szemeszter.kezdesDt<='%s' AND szemeszter.zarasDt>='%s'";
+ $v = array($dt,$dt);
+ return db_query($q, array('fv' => 'getFelevByDt', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+ }
+
+ function getTanevekByDt($dt) {
+ $q = "SELECT DISTINCT tanev FROM szemeszter WHERE szemeszter.kezdesDt<='%s' and szemeszter.zarasDt>='%s'";
+ $v = array($dt, $dt);
+ return db_query($q, array('fv' => 'getTanevByDt', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ }
+
+ function getTanevekByDtInterval($dt1, $dt2 = '', $statusz = array('aktív','lezárt','tervezett')) {
+ /*
+ A dátumot lefedő tanévek közül azok, amik státusza megfelelő
+ */
+ $dt2 = readVariable($dt2, 'datetime', $dt1);
+ $q = "SELECT DISTINCT tanev FROM szemeszter WHERE statusz in ('".implode("','", array_fill(0, count($statusz), '%s'))."') GROUP BY tanev
+ HAVING '$dt1'<=MAX(szemeszter.zarasDt) AND MIN(szemeszter.kezdesDt)<='$dt2'";
+ array_push($statusz, $dt1, $dt2);
+ return db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'getTanevByDtInterval', 'result' => 'idonly', 'values' => $statusz));
+ }
+
+ function getTanevekByStatusz($statusz = array('aktív','lezárt','tervezett')) {
+ $q = "SELECT DISTINCT tanev FROM szemeszter WHERE statusz in ('".implode("','", array_fill(0, count($statusz), '%s'))."') GROUP BY tanev";
+ return db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'getTanevByDtInterval', 'result' => 'idonly', 'values'=>$statusz));
+ }
+
+ function getTanevSzemeszterek($tanev) {
+ $q = "SELECT * FROM szemeszter WHERE tanev=%u";
+ return db_query($q, array('fv' => 'getTanevSzemeszterek', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanev)));
+ }
+
+ function getSzemeszterAdatById($szemeszterId) {
+ $q = "SELECT * FROM szemeszter WHERE szemeszterId = %u";
+ $ret = db_query($q, array('fv' => 'getSzemeszterAdatById', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($szemeszterId)));
+ if (!is_array($ret)) return false;
+
+ $ret['idoszak'] = getIdoszakByTanev(array('tanev' => $ret['tanev'], 'szemeszter' => $ret['szemeszter']));
+ $q = "SELECT tanev,MAX(szemeszter) AS maxSzemeszter, MIN(kezdesDt) AS kezdesDt, MAX(zarasDt) AS zarasDt FROM szemeszter
+ WHERE tanev=%u GROUP BY tanev";
+ $ret['tanevAdat'] = db_query($q, array(
+ 'fv' => 'getSzemeszterAdatById', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => array($ret['tanev'])
+ ));
+ return $ret;
+ }
+
+ function getSzemeszterIdBySzemeszter($tanev, $szemeszter) {
+
+ $q = "SELECT szemeszterId FROM szemeszter WHERE tanev=%u AND szemeszter=%u";
+ $v = array($tanev, $szemeszter);
+ return db_query($q, array('fv' => 'getSzemeszterIdBySzemeszter', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+
+ }
+/* (Még) nem használt függvény
+
+ function getSzemeszterAdatBySzemeszter($tanev, $szemeszter) {
+
+ $szemeszterId = getSzemeszterIdBySzemeszter($tanev, $szemeszter);
+ if ($szemeszterId === false) return false;
+ return getSzemeszterAdatById($szemeszterId);
+
+ }
+
+*/
+ function getIdoszakByTanev($SET = array('tanev' => __TANEV, 'szemeszter' => '', 'tipus' => array(), 'tolDt' => '', 'igDt' => '', 'return' => '', 'arraymap'=>null)) {
+
+ if ($SET['tanev']=='') $SET['tanev'] = __TANEV;
+
+ if ($SET['szemeszter'] != '') {
+ $q = "SELECT * FROM idoszak WHERE tanev=%u AND szemeszter=%u";
+ $v = array($SET['tanev'], $SET['szemeszter']);
+ } else {
+ $q = "SELECT * FROM idoszak WHERE tanev=%u";
+ $v = array($SET['tanev']);
+ }
+ if (is_array($SET['tipus']) && count($SET['tipus']) > 0) {
+ $q .= " AND tipus IN ('".implode("','", array_fill(0, count($SET['tipus']), '%s'))."')";
+ $v = mayor_array_join($v, $SET['tipus']);
+ }
+ if ($SET['tolDt'] != '') {
+ $q .= " AND igDt >= '%s'";
+ $v[] = $SET['tolDt'];
+ }
+ if ($SET['igDt'] != '') {
+ $q .= " AND tolDt <= '%s'";
+ $v[] = $SET['igDt'];
+ }
+
+ $q .= " ORDER BY szemeszter,tolDt,igDt";
+ $ret = db_query($q, array('fv' => 'getIdoszakByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ if ($SET['return'] == 'assoc') {
+ $tmp = array();
+ for ($i = 0; $i < count($ret); $i++) {
+ $tmp[ $ret[$i]['szemeszter'] ][ $ret[$i]['tipus'] ][] = $ret[$i];
+ }
+ $ret = $tmp;
+ }
+
+ if (is_array($SET['arraymap'])) {
+ $ret = reindex($ret,$SET['arraymap']);
+ }
+
+ return $ret;
+
+ }
+
+
+ function getTanevAdatBySzemeszterId( $szemeszterId ) {
+ if ($szemeszterId=='') return false;
+ $q = "SELECT * FROM szemeszter WHERE szemeszterId=%u";
+ $v = array($szemeszterId);
+ $R['szemeszter'] = db_query($q, array(
+ 'fv' => 'getTanevAdatBySzemeszterId', 'modul'=>'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'szemeszter', 'values' => $v
+ ));
+ // legyen az első az alapértelmezett
+ $R['statusz'] = $R['szemeszter'][1]['statusz'];
+ $R['tanev'] = $R['szemeszter'][1]['tanev'];
+ // a két dárum innen hiányzik!
+ return $R;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/szovegesErtekeles.php b/mayor-orig/www/include/modules/naplo/share/szovegesErtekeles.php
new file mode 100644
index 00000000..1026979b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/szovegesErtekeles.php
@@ -0,0 +1,206 @@
+<?php
+
+ function getSzempontRendszer($ADAT) {
+
+ $targyTipusok = getEnumField('naplo_intezmeny', 'szempontRendszer', 'targyTipus');
+ $ADAT['targyTipus'] = readVariable($ADAT['targyTipus'], 'enum', null, $targyTipusok);
+ if ($ADAT['feltetel'] == 'id') {
+ $q = "SELECT * FROM szempontRendszer WHERE szrId=%u";
+ $v = array($ADAT['szrId']);
+ } elseif ($ADAT['feltetel'] == 'eros') {
+ $q = "SELECT * FROM szempontRendszer WHERE tanev=%u AND szemeszter=%u AND evfolyamJel='%s'";
+ $v = array($ADAT['szemeszter']['tanev'], $ADAT['szemeszter']['szemeszter'], $ADAT['evfolyamJel']);
+ $q .= (isset($ADAT['targyId'])) ? " AND targyId=".intval($ADAT['targyId']) : " AND targyId IS NULL";
+ $q .= (isset($ADAT['targyTipus'])) ? " AND targyTipus='".$ADAT['targyTipus']."'" : " AND targyTipus IS NULL";
+ $q .= (isset($ADAT['kepzesId'])) ? " AND kepzesId=".intval($ADAT['kepzesId']) : " AND kepzesId IS NULL";
+ } else {
+ /*
+ Évfolyam kötelező, többi lehet üres/null
+ A fő szempont a targyId, majd a targyTipus, végül a kepzesId
+ Csőkkenő a rendezés, hogy a NULL értékek a végére kerüljenek.
+ Az adott szemeszter elötti utolsó (vagy vele egyenlő)
+ */
+ $q = "SELECT * FROM szempontRendszer
+ WHERE tanev <= %u AND szemeszter <= %u AND evfolyamJel = '%s'
+ AND (targyId=%u OR targyId IS NULL)
+ AND (targyTipus='%s' OR targyTipus IS NULL)
+ AND (kepzesId=%u OR kepzesId IS NULL)
+ ORDER BY targyId DESC, targyTipus DESC, kepzesId DESC, tanev DESC, szemeszter DESC
+ LIMIT 1";
+ $v = array($ADAT['szemeszter']['tanev'], $ADAT['szemeszter']['szemeszter'], $ADAT['evfolyamJel'], $ADAT['targyId'], $ADAT['targyTipus'], $ADAT['kepzesId']);
+ }
+ $ret = db_query($q, array('fv' => 'getSzempontRendszer', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v));
+ if (!is_array($ret) || count($ret) == 0) return false;
+
+ $szrId = $ret['szrId'];
+ // szempontok lekérdezése
+ $q = "SELECT * FROM szrSzempont WHERE szrId=%u ORDER BY szempontId";
+ $ret['szempont'] = db_query($q, array(
+ 'fv' => 'getSzempontRendszer/szempont', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'szempontId', 'values' => array($szrId)
+ ));
+ // minősítések lekérdezése
+ $ret['minosites'] = array();
+ if (is_array($ret['szempont']) && count($ret['szempont']) > 0) {
+ $ret['szempontIds'] = array_keys($ret['szempont']);
+ $v = array_keys($ret['szempont']);
+ $q = "SELECT * FROM szrMinosites WHERE szempontId IN (".implode(',', array_fill(0, count($v), '%u')).") ORDER BY szempontId,minositesId";
+ $ret['minosites'] = db_query($q, array(
+ 'fv' => 'getSzempontRendszer/minősítés', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'szempontId', 'values' => $v
+ ));
+ if (is_array($ret['minosites'])) {
+ $ret['minositesIds'] = array();
+ foreach ($ret['minosites'] as $szId => $szM)
+ for ($i = 0; $i < count($szM); $i++) $ret['minositesIds'][] = $szM[$i]['minositesId'];
+ }
+ }
+ return $ret;
+ }
+
+ function getDiakSzovegesTargyZaroErtekeles($diakId, $szrId, $targyId, $tanev, $szemeszter) {
+/*
+ $q = "SELECT MAX(dt) FROM szovegesErtekeles WHERE szrId=%u AND diakId=%u AND targyId=%u AND dt<='%s'";
+ $v = array($szrId, $diakId, $targyId, $igDt);
+ $dt = db_query($q, array('fv' => 'getDiakUtolsoSzovegesTargyErtekeles/maxDt', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ if (!isset($dt)) return false;
+ $ret['dt'] = $dt;
+*/
+ // szeId lekérdezése
+ $q = "SELECT * FROM szovegesErtekeles WHERE szrId=%u AND diakId=%u AND targyId=%u AND tanev=%u AND szemeszter=%u";
+ $v = array($szrId, $diakId, $targyId, $tanev, $szemeszter);
+ $ret = db_query($q, array(
+ 'fv' => 'getDiakSzovegesTargyZaroErtekeles/szeId', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v
+ ));
+ $szeId = $ret['szeId'];
+ // minősítések lekérdezése
+ $q = "SELECT minositesId FROM szeMinosites WHERE szeId=%u";
+ $v = array($szeId);
+ $ret['minosites'] = db_query($q, array(
+ 'fv' => 'getDiakSzovegesTargyZaroErtekeles/minosites', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v
+ ));
+ // Egyedi minősítések lekérdezése
+ $q = "SELECT szempontId, egyediMinosites FROM szeEgyediMinosites WHERE szeId=%u";
+ $ret['egyediMinosites'] = db_query($q, array(
+ 'fv' => 'getDiakSzovegesTargyZaroErtekeles', 'modul' => 'naplo_intezmeny',
+ 'result' => 'assoc', 'keyfield' => 'szempontId', 'values' => $v
+ ));
+
+ return $ret;
+
+ }
+
+ function getDiakUtolsoSzovegesTargyErtekeles($diakId, $szrId, $targyId, $igDt) {
+
+ $q = "SELECT MAX(dt) FROM szovegesErtekeles WHERE szrId=%u AND diakId=%u AND targyId=%u AND dt<='%s'";
+ $v = array($szrId, $diakId, $targyId, $igDt);
+ $dt = db_query($q, array('fv' => 'getDiakUtolsoSzovegesTargyErtekeles/maxDt', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ if (!isset($dt)) return false;
+ $ret['dt'] = $dt;
+
+ // szeId lekérdezése
+ $q = "SELECT * FROM szovegesErtekeles WHERE szrId=%u AND diakId=%u AND targyId=%u AND dt='%s'";
+ $v = array($szrId, $diakId, $targyId, $dt);
+ $ret = db_query($q, array(
+ 'fv' => 'getDiakUtolsoSzovegesTargyErtekeles/szeId', 'modul' => 'naplo', 'result' => 'record', 'values' => $v
+ ));
+ $szeId = $ret['szeId'];
+ // minősítések lekérdezése
+ $q = "SELECT minositesId FROM szeMinosites WHERE szeId=%u";
+ $v = array($szeId);
+ $ret['minosites'] = db_query($q, array(
+ 'fv' => 'getDiakUtolsoSzovegesTargyErtekeles/minosites', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v
+ ));
+ // Egyedi minősítések lekérdezése
+ $q = "SELECT szempontId, egyediMinosites FROM szeEgyediMinosites WHERE szeId=%u";
+ $ret['egyediMinosites'] = db_query($q, array(
+ 'fv' => 'getDiakUtolsoSzovegesTargyErtekeles/egyediMinosites', 'modul' => 'naplo',
+ 'result' => 'assoc', 'keyfield' => 'szempontId', 'values' => $v
+ ));
+
+ return $ret;
+ }
+
+ function getDiakOsszesSzovegesErtekeles($ADAT) {
+
+ $q = "SELECT * FROM szovegesErtekeles WHERE diakId=%u AND dt<='%s' ORDER BY dt";
+ $v = array($ADAT['diakId'], $ADAT['dt']);
+ $ret = db_query($q, array('fv' => 'getDiakOsszesSzovegesErtekeles', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'targyId', 'values' => $v));
+
+ foreach ($ret as $targyId => $tAdat) {
+ $tAdat['feltetel'] = 'id';
+ $ret[$targyId]['szempontRendszer'] = getSzempontRendszer($tAdat);
+ $ret[$targyId]['szovegesErtekeles'] = getDiakUtolsoSzovegesTargyErtekeles($ADAT['diakId'], $tAdat['szrId'], $targyId, $ADAT['dt']);
+ $ret[$targyId]['diakTargyak'] = $ADAT['diakTargyak'];
+ }
+
+ return $ret;
+ }
+
+ function getDiakOsszesSzovegesZaroErtekeles($ADAT) {
+
+ $q = "SELECT * FROM szovegesErtekeles WHERE diakId=%u AND tanev=%u AND szemeszter=%u ORDER BY dt";
+ $v = array($ADAT['diakId'], $ADAT['tanev'], $ADAT['szemeszter']);
+ $ret = db_query($q, array('fv' => 'getDiakOsszesSzovegesZaroErtekeles', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'targyId', 'values' => $v));
+
+ foreach ($ret as $targyId => $tAdat) {
+ $tAdat['feltetel'] = 'id';
+ $ret[$targyId]['szempontRendszer'] = getSzempontRendszer($tAdat);
+ $ret[$targyId]['szovegesErtekeles'] = getDiakSzovegesTargyZaroErtekeles($ADAT['diakId'], $tAdat['szrId'], $targyId, $ADAT['tanev'], $ADAT['szemeszter']);
+ $ret[$targyId]['diakTargyak'] = $ADAT['diakTargyak'];
+ }
+
+ return $ret;
+ }
+
+ function getOsztalySzovegesErtekeles($ADAT) {
+ // Ha van $ADAT['szemeszterId'] akkor záró értékelést ad vissza, különben évközit
+ $A = array(
+ 'dt' => $ADAT['dt'], 'diakTargyak' => $ADAT['diakTargyak'],
+ 'tanev' => $ADAT['szemeszter']['tanev'], 'szemeszter' => $ADAT['szemeszter']['szemeszter']
+ );
+ $ret = array();
+ if (isset($ADAT['szemeszterId'])) foreach ($ADAT['diakIds'] as $index => $diakId) {
+ $A['diakId'] = $diakId;
+ $ret[$diakId] = getDiakOsszesSzovegesZaroErtekeles($A);
+ } else foreach ($ADAT['diakIds'] as $index => $diakId) {
+ $A['diakId'] = $diakId;
+ $ret[$diakId] = getDiakOsszesSzovegesErtekeles($A);
+
+ }
+
+ return $ret;
+
+ }
+
+ function getEvfolyamJelSzempontRendszerek($ADAT) {
+ // Legalább tanev, szemeszter, evfolyamJel kell megadva legyen, lehet még targy, targyTipus, kepzesId
+ // Visszaadja az összes épp aktuális, a feltételeknek megfelelő szempontrendszert
+ $q = "SELECT szr1.*, targyNev, kepzesNev, kepzes.tanev as kepzesTanev
+ FROM szempontRendszer AS szr1 LEFT JOIN targy USING (targyId) LEFT JOIN kepzes USING (kepzesId)
+ WHERE evfolyamJel='%s' AND CONCAT(szr1.tanev,'/',szr1.szemeszter) = (
+ SELECT CONCAT(szr2.tanev,'/',szr2.szemeszter) FROM szempontRendszer AS szr2
+ WHERE szr2.evfolyamJel='%s'
+ AND (szr2.targyId=szr1.targyId OR (szr1.targyId IS NULL AND szr2.targyId IS NULL))
+ AND (szr2.targyTipus=szr1.targyTipus OR (szr1.targyTipus IS NULL AND szr2.targyTipus IS NULL))
+ AND (szr2.kepzesId=szr1.kepzesId OR (szr1.kepzesId IS NULL AND szr2.kepzesId IS NULL))
+ AND ((szr2.tanev=%u AND szr2.szemeszter<=%u) OR szr2.tanev<%u)
+ ORDER BY szr2.tanev DESC, szr2.szemeszter DESC LIMIT 1
+ )";
+ $v = array($ADAT['evfolyamJel'], $ADAT['evfolyamJel'], $ADAT['szemeszter']['tanev'], $ADAT['szemeszter']['szemeszter'], $ADAT['szemeszter']['tanev'] );
+ if (isset($ADAT['targyId'])) {
+ $q .= " AND targyId=".intval($ADAT['targyId']);
+ $v[] = $ADAT['targyId'];
+ }
+ if (isset($ADAT['targyTipus'])) {
+ $q .= " AND targyTipus='".$ADAT['targyTipus']."'";
+ $v[] = $ADAT['targyTipus'];
+ }
+ if (isset($ADAT['kepzesId'])) {
+ $q .= " AND kepzesId=".intval($ADAT['kepzesId']);
+ $v[] = $ADAT['kepzesId'];
+ }
+
+ $ret = db_query($q, array('fv' => 'getEvfolyamJelSzempontRendszerek', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ return $ret;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/szulo.php b/mayor-orig/www/include/modules/naplo/share/szulo.php
new file mode 100644
index 00000000..aa15797b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/szulo.php
@@ -0,0 +1,76 @@
+<?php
+
+ function getSzuloAdat($szuloId) {
+
+ $q = "SELECT *, TRIM(CONCAT_WS(' ',nevElotag, csaladiNev, utoNev)) AS szuloNev FROM szulo WHERE szuloId=%u";
+ return db_query($q, array('fv'=>'getSzuloAdat','modul'=>'naplo_intezmeny','result'=>'record','values'=>array($szuloId)));
+
+ }
+
+ function getSzulok($SET = array('csakId'=>false,'result'=>'','szuloIds'=>array())) {
+
+ if (is_array($SET['szuloIds']) && count($SET['szuloIds']) > 0 && count($SET['szuloIds']) < 50 ) $W_SZULO = ' WHERE szuloId IN ('.implode(',',$SET['szuloIds']).')';
+ if ($SET['csakId'] === true || $SET['result'] == 'csakId') $SET['result'] = 'idonly';
+ if ($SET['result'] == 'idonly') {
+ $q = "SELECT szuloId
+ FROM ".__INTEZMENYDBNEV.".szulo $W_SZULO
+ ORDER BY CONCAT_WS(' ',csaladinev,utonev)";
+ $ret = db_query($q, array('fv' => 'getSzulok', 'modul' => 'naplo_intezmeny', 'result' => 'idonly'));
+ } elseif ($SET['result']=='standard') {
+ $q = "SELECT *,TRIM(CONCAT_WS(' ',nevElotag,csaladinev,utonev)) AS szuloNev
+ FROM ".__INTEZMENYDBNEV.".szulo $W_SZULO
+ ORDER BY CONCAT_WS(' ',csaladinev,utonev)";
+ $ret = db_query($q, array('fv' => 'getSzulok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'));
+ } elseif ($SET['result']=='indexed') {
+ $q = "SELECT szuloId,TRIM(CONCAT_WS(' ',nevElotag,csaladinev,utonev)) AS szuloNev, statusz
+ FROM ".__INTEZMENYDBNEV.".szulo $W_SZULO
+ ORDER BY CONCAT_WS(' ',csaladinev,utonev)";
+ $ret = db_query($q, array('fv' => 'getSzulok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'));
+ } else {
+ $q = "SELECT *,TRIM(CONCAT_WS(' ',nevElotag,csaladinev,utonev)) AS szuloNev
+ FROM ".__INTEZMENYDBNEV.".szulo $W_SZULO
+ ORDER BY CONCAT_WS(' ',csaladinev,utonev)";
+ $ret = db_query($q, array('fv' => 'getSzulok', 'modul' => 'naplo_intezmeny', 'keyfield' => 'szuloId', 'result' => 'assoc'));
+ foreach ($ret as $szuloId => $adat) $ret['szuloIds'][] = $szuloId;
+ }
+ return $ret;
+
+ }
+
+ function getSzuloDiakjai() {
+ $q = "SELECT diak.diakId AS diakId,".
+ "TRIM(CONCAT_WS(' ',viseltNevElotag,viseltCsaladiNev,viseltUtonev)) AS diakNev ".
+ "FROM szulo LEFT JOIN diak ON (szuloId IN (anyaId,apaId,gondviseloId,neveloId)) ".
+ "WHERE szulo.userAccount='"._USERACCOUNT."'";
+ return db_query($q, array('fv' => 'getSzuloDiakjai', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'));
+ }
+
+ function getSzulokDiakjai($szuloIds) {
+ $q = "SELECT szuloId, diak.diakId AS diakId,".
+ "TRIM(CONCAT_WS(' ',viseltNevElotag,viseltCsaladiNev,viseltUtonev)) AS diakNev ".
+ "FROM szulo LEFT JOIN diak ON (szuloId IN (anyaId,apaId,gondviseloId,neveloId)) ".
+ "WHERE szuloId IN (".implode(',', array_fill(0, count($szuloIds), '%u')).")";
+ return db_query(
+ $q, array('fv' => 'getSzulokDiakjai','modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'szuloId', 'values' => $szuloIds)
+ );
+ }
+
+ function getDiakSzulei($diakId) {
+ $q = "SELECT anyaId,apaId,gondviseloId,neveloId ".
+ "FROM diak ".
+ "WHERE diakId=%u";
+ return db_query($q,array('fv' => 'getDiakSzulei', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($diakId)));
+ }
+
+
+ function getSzuloNevById($szuloId, $szuleteskori=false) {
+ if ($szuleteskori) {
+ $q = "SELECT IF(szuleteskoriCsaladinev='',TRIM(CONCAT_WS(' ', nevElotag, csaladiNev, utonev)),TRIM(CONCAT_WS(' ', szuleteskoriNevElotag, szuleteskoriCsaladinev, szuleteskoriUtonev))) AS szuloNev FROM szulo WHERE szuloId=%u";
+ } else {
+ $q = "SELECT TRIM(CONCAT_WS(' ', nevElotag, csaladiNev, utonev)) AS szuloNev FROM szulo WHERE szuloId=%u";
+ }
+ return db_query($q, array('fv' => 'getszuloNevById', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($szuloId)));
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/tanar.php b/mayor-orig/www/include/modules/naplo/share/tanar.php
new file mode 100644
index 00000000..0f0b90b6
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/tanar.php
@@ -0,0 +1,170 @@
+<?php
+
+ if (file_exists("lang/$lang/module-naplo/share/tanar.php")) {
+ require_once("lang/$lang/module-naplo/share/tanar.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/module-naplo/share/tanar.php')) {
+ require_once('lang/'._DEFAULT_LANG.'/module-naplo/share/tanar.php');
+ }
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ $tanarAttrs = array(
+ 'oId' => _TANAR_OID,
+ 'viseltNevElotag' => _TANAR_VNE,
+ 'viseltCsaladiNev' => _TANAR_VCSN,
+ 'viseltUtonev' => _TANAR_VUN,
+ 'szuletesiHely' => _TANAR_SZH,
+ 'szuletesiIdo' => _TANAR_SZI,
+ );
+
+ function getTanarok($SET = array('targyId'=> null,'mkId' => null, 'tanev' => __TANEV, 'beDt' => null, 'kiDt' => null, 'összes'=> false, 'override' => false, 'telephelyId'=>null, 'result' => 'indexed', 'extraAttrs' => null), $olr = '') {
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed', 'assoc'));
+ $beDt = $SET['beDt']; $kiDt = $SET['kiDt'];
+ initTolIgDt($SET['tanev'], $beDt, $kiDt, $SET['override']);
+
+ $where = $v = array();
+ if ($SET['összes']!==true && in_date_interval(date(),$beDt,$kiDt)==true) { // ha nincs benne a mai nap a vizsgált intervallumban, akkor értelmetlen (lehet) ez a feltétel
+ $where[] = "statusz IN ('határozatlan idejű','határozott idejű','külső óraadó')";
+ }
+ if ($beDt != '') {
+ $where[] = "((kiDt IS NULL) OR '%s' <= kiDt)";
+ array_push($v, $beDt);
+ }
+ if ($kiDt != '') {
+ $where[] = "'%s' >= beDt";
+ array_push($v, $kiDt);
+ }
+ if ($SET['extraAttrs'] != '') $extraAttrs = ', '.$SET['extraAttrs'];
+/* --not implemented
+ if ($SET['telephelyId'] != '') {
+ $where[] = " (telephelyId = %u OR telephelyId IS NULL) ";
+ array_push($v, $SET['telephelyId']);
+ }
+
+ // 2015-08-06 - aktualisStatusz kiiktatása - statusz mező megjelenése miatt...
+ IF( beDt <= CURDATE() AND (kiDt IS NULL OR CURDATE()<=kiDt),'jogviszonyban van','nincs jogviszonyban') as aktualisStatusz,
+*/
+ if ($SET['targyId'] != '') {
+ if (count($where) > 0) $W = 'AND ' . implode(' AND ',$where);
+
+ $q1 = "SELECT tanar.tanarId AS tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev, statusz,
+ hetiKotelezoOraszam,hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam,hetiMunkaora
+ $extraAttrs
+ FROM ".__INTEZMENYDBNEV.".targy LEFT JOIN ".__INTEZMENYDBNEV.".mkTanar USING (mkId) LEFT JOIN ".__INTEZMENYDBNEV.".tanar USING (tanarId)
+ WHERE targyId=%u AND tanarId IS NOT NULL ".$W;
+ $q2 = "SELECT tanar.tanarId AS tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev, statusz,
+ hetiKotelezoOraszam,hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam,hetiMunkaora
+ $extraAttrs
+ FROM ".__INTEZMENYDBNEV.".kepesitesTargy LEFT JOIN ".__INTEZMENYDBNEV.".tanarKepesites USING (kepesitesId) LEFT JOIN ".__INTEZMENYDBNEV.".tanar USING (tanarId)
+ WHERE targyId=%u AND tanarId IS NOT NULL ".$W;
+ array_unshift($v, $SET['targyId']);
+ $tmp=$v; foreach ($tmp as $tmpV) $v[]=$tmpV;
+ $q = "(".$q1.") UNION DISTINCT (".$q2.") ORDER BY tanarNev,tanarId";
+ } elseif ($SET['mkId'] == '') {
+ if (count($where) > 0) $W = 'WHERE ' . implode(' AND ',$where);
+ $q = "SELECT tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev, statusz,
+ hetiKotelezoOraszam,hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam,hetiMunkaora
+ $extraAttrs
+ FROM ".__INTEZMENYDBNEV.".tanar $W ORDER BY CONCAT_WS(' ', ViseltCsaladiNev, viseltUtoNev)";
+ } else {
+ if (count($where) > 0) $W = 'AND ' . implode(' AND ',$where);
+ $q = "SELECT tanar.tanarId AS tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev, statusz,
+ hetiKotelezoOraszam,hetiLekotottMinOraszam,hetiLekotottMaxOraszam,hetiKotottMaxOraszam,hetiMunkaora
+ $extraAttrs
+ FROM ".__INTEZMENYDBNEV.".tanar LEFT JOIN ".__INTEZMENYDBNEV.".mkTanar USING (tanarId)
+ WHERE mkId=%u $W ORDER BY CONCAT_WS(' ', ViseltCsaladiNev, viseltUtoNev)";
+ array_unshift($v, $SET['mkId']);
+ }
+ return db_query($q, array('fv' => 'getTanarok', 'modul' => 'naplo_intezmeny', 'result' => $result, 'keyfield' => 'tanarId', 'values' => $v));
+
+ }
+
+ function getTanarNevById($tanarId, $olr = null) {
+
+ $q = "SELECT TRIM(CONCAT_WS(' ', viseltNevElotag, viseltCsaladiNev, viseltUtonev)) AS tanarNev
+ FROM ".__INTEZMENYDBNEV.".tanar WHERE tanarId=%u";
+ return db_query($q, array('fv' => 'getTanarNevById', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($tanarId)), $olr);
+
+ }
+
+ function getTanarMunkakozosseg($tanarId) {
+ $q = "SELECT mkId FROM mkTanar WHERE tanarId=%u";
+ return db_query($q, array('fv' => 'getTanarMunkakozosseg', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tanarId)));
+ }
+
+ function getSzabadTanarok($dt, $ora, $olr = '') {
+
+ $q = "SELECT tanar.tanarId AS tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev
+ FROM ".__INTEZMENYDBNEV.".tanar LEFT JOIN ora ON tanarId=ki AND dt='%1\$s' and ora=%2\$u
+ WHERE ki IS NULL AND beDt<='%1\$s' and (kiDt IS NULL OR kiDt>='%1\$s')
+ ORDER BY CONCAT_WS(' ', ViseltCsaladiNev, viseltUtoNev)";
+ $v = array($dt, $ora);
+ return db_query($q, array('fv' => 'getSzabadTanarok', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $olr);
+ }
+
+ function getFoglaltTanarok($dt, $ora, $olr = '') {
+
+ $q = "SELECT DISTINCT tanar.tanarId AS tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev
+ FROM ".__INTEZMENYDBNEV.".tanar LEFT JOIN ora ON tanarId=ki AND dt='%1\$s' and ora=%2\$u
+ WHERE ki IS NOT NULL AND beDt<='%1\$s' and (kiDt IS NULL OR kiDt>='%1\$s')
+ ORDER BY CONCAT_WS(' ', ViseltCsaladiNev, viseltUtoNev)";
+ $v = array($dt, $ora);
+ return db_query($q, array('fv' => 'getFoglaltTanarok', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $olr);
+ }
+
+ function getTanarAdatById($tanarIds, $olr = '') {
+
+ if (!is_array($tanarIds)) $tanarIds = array($tanarIds);
+ $q = "SELECT *,TRIM(CONCAT_WS(' ',viseltNevElotag, ViseltCsaladiNev, viseltUtoNev)) AS tanarNev FROM ".__INTEZMENYDBNEV.".tanar WHERE tanarId IN (".implode(',', array_fill(0, count($tanarIds), '%u')).")";
+ $R = db_query($q, array('fv' => 'getTanarAdatById', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $tanarIds));
+// for ($i=0; $i<count($R); $i++) {
+// $q2 = "SELECT osztalyId
+// $R[$i]['osztalya'] =
+// }
+ return $R;
+ }
+
+ function getTanarOsztaly($tanarId, $SET = array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result'=>null), $olr='') {
+
+ global $_TANEV;
+ $tanev = ($SET['tanev'] =='') ? __TANEV: $SET['tanev'];
+ $tolDt = $SET['tolDt'];
+ $igDt=$SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $lr = ($olr!='') ? $olr : db_connect('naplo_intezmeny');
+
+ $RESULT = array();
+
+ // tankorTanar (be ki) --> tankorDiak (be ki) --> osztaly-Diak (be ki)
+ $TANKORIDK = getTankorByTanarId($tanarId, $tanev, array('csakId' => true),$lr);
+ $DIAK = getTankorDiakjaiByInterval($TANKORIDK, $tanev, $tolDt, $igDt, $lr);
+ $SET2=$SET;
+ $SET2['result'] = 'csakId';
+ $OSZTALYIDK = getDiakokOsztalyai($DIAK['idk'], $SET2, $lr);
+
+ if ($SET['result']==='csakId' || $SET['result']==='idonly') {
+ $RESULT = $OSZTALYIDK;
+ } else {
+ require_once('include/modules/naplo/share/kepzes.php');
+ for ($i=0; $i<count($OSZTALYIDK); $i++) {
+ $RESULT[$i] = getOsztalyAdat($OSZTALYIDK[$i], null, $lr); // null=tanev
+ }
+ }
+ if ($olr=='') db_close($lr);
+ return $RESULT;
+ }
+
+ function getTanarOraszam($tanarId,$tanev='') {
+ if ($tanev=='') $tanev=__TANEV;
+ $q = "SELECT sum(d) FROM (SELECT tankorId, avg(oraszam) AS d FROM tankorSzemeszter
+ LEFT JOIN tankorTanar USING (tankorId)
+ WHERE tanarId=%u AND tanev=%u GROUP BY tankorId) AS a";
+ $v = array($tanarId, $tanev);
+ return db_query($q, array('fv' => 'getTanarOraszam', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v), $olr);
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/tanarModifier.php b/mayor-orig/www/include/modules/naplo/share/tanarModifier.php
new file mode 100644
index 00000000..05174959
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/tanarModifier.php
@@ -0,0 +1,14 @@
+<?php
+
+ function updateTanarAdat($tanarId,$SET) {
+ if (is_array($SET)) {
+ foreach($SET as $k => $v) {
+ $kv[] = "$k='%s'";
+ }
+ $q = "UPDATE tanar SET ".implode($kv,',')." WHERE tanarId=%u";
+ }
+ $v = array_merge(array_values($SET),array($tanarId));
+ return db_query($q, array('fv' => 'updateTanarAdat', 'modul' => 'naplo_intezmeny', 'result' => 'update', 'values' => $v), $olr);
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/tankor.php b/mayor-orig/www/include/modules/naplo/share/tankor.php
new file mode 100644
index 00000000..705ab82f
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/tankor.php
@@ -0,0 +1,1180 @@
+<?php
+
+ require_once('include/modules/naplo/share/diak.php');
+
+// $__tankorOrder = "LPAD( REPLACE(substring_index(substring_index(tankorNev,'-',1),'.',1),'Ny','') ,2,'0'), tankorNev";
+ $__tankorOrder = __createTankorOrder();
+
+ function __createTankorOrder() {
+ $tmp = "substring_index(substring_index(tankorNev,'-',1),'.',1)";
+ foreach(array('AJTP','AJKP','Kny','Ny','N') as $elotag) {
+ $tmp = "REPLACE($tmp,'$elotag','')";
+ }
+ return "LPAD($tmp,2,'0'), tankorNev";
+ }
+
+ function _isempty($val) {
+ return ($val!=='');
+ }
+
+ function checkTankorInTanev($tankorId, $tanev, $olr = '') {
+ $q = "SELECT tanev,szemeszter FROM tankorSzemeszter WHERE tanev=%u and tankorId=%u";
+ $r = db_query(
+ $q, array('fv' => 'checkTankorInTanev', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanev, $tankorId)), $olr
+ );
+ return (count($r) != 0);
+ }
+
+ function getTankorAdat($tankorId, $tanev = __TANEV, $olr = null) {
+ $q = "SELECT * FROM tankor
+ LEFT JOIN tankorSzemeszter USING (tankorId)
+ LEFT JOIN tankorTipus USING (tankorTipusId)
+ WHERE tankor.tankorId=%u AND tanev=%u";
+ return db_query($q,
+ array('fv' => 'getTankorAdat', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => array($tankorId, $tanev)), $olr
+ );
+ }
+
+ function getTankorAdatByIds($tankorIds, $SET = array('tanev' => __TANEV, 'dt' => '')) {
+
+ if (!is_array($tankorIds)) return false;
+ if (in_array('',$tankorIds)==true) {
+ // ez előállhat akkor is, ha valamiért az órarendben NULL tankorId van (speckó óra!)
+ // $_SESSION['alert'][] = 'message:invalid_array_value_exception:(getTankorAdatByIds:tankorIds:contains empty string)';
+ // clean array
+ $tankorIds = array_filter(array_unique($tankorIds),'_isempty');
+ }
+ $tanev = $SET['tanev'];
+ // Ha valid a tanev... ??? Aktív???
+ if ($SET['dt']!='') {
+ $dt = $SET['dt'];
+ $SZ = getSzemeszterByDt($dt);
+ if (is_array($SZ) && $SZ['tanev'] != '') {
+ $tanev = $SZ['tanev'];
+ $felev = $SZ['szemeszter'];
+ } else { // a referencia dátum kívül esik a tanéven, legyen a default
+ $tanev = __TANEV;
+ $felev = 1;
+ }
+ $q = "SELECT * FROM tankor
+ LEFT JOIN tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ WHERE tankor.tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") AND tanev=%u AND szemeszter=%u";
+
+ array_push($tankorIds, $tanev, $felev);
+ return db_query($q, array(
+ 'fv' => 'getTankorAdatByIds', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $tankorIds
+ ));
+ } elseif ($tanev!='') {
+ $q = "SELECT * FROM tankor
+ LEFT JOIN tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ WHERE tankor.tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") AND tanev=%u";
+ array_push($tankorIds, $tanev);
+ return db_query($q, array(
+ 'fv' => 'getTankorAdatByIds', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $tankorIds
+ ));
+ }
+ return false;
+ }
+
+ function getTankorTargyId($tankorId) {
+ $q = "SELECT targyId FROM tankor WHERE tankor.tankorId=%u";
+ return db_query($q, array('fv' => 'getTankorTargyId', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($tankorId)));
+ }
+
+ function getTankorMkId($tankorId) {
+ $q = "SELECT mkId FROM tankor LEFT JOIN targy USING (targyId) WHERE tankor.tankorId=%u";
+ return db_query($q, array('fv' => 'getTankorMkId', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($tankorId)));
+ }
+
+ function getTankorByMkId($mkId, $tanev, $SET = array('csakId' => false,'filter' => array()) ) {
+
+ global $_TANEV, $__tankorOrder;
+
+ if ($tanev == __TANEV) $TA = $_TANEV; else $TA = getTanevAdat($tanev);
+ $szsz = count($TA['szemeszter']);
+
+ if (count($SET['filter']) > 0) $W = ' AND '.implode(' AND ',$SET['filter']); else $W = '';
+
+ if ($SET['csakId'] !== true) {
+ $q = "SELECT tankor.tankorId AS tankorId, tankorNev, tankorTipusId, targy.targyId AS targyId, kovetelmeny, jelenlet, felveheto,
+ tanev, szemeszter, SUM(oraszam)/%u AS oraszam
+ FROM tankor LEFT JOIN targy USING (targyId)
+ LEFT JOIN tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ LEFT JOIN tankorTipus USING (tankorTipusId)
+ WHERE tanev=%u AND mkId=%u $W
+ GROUP BY tankorId
+ ORDER BY $__tankorOrder";
+ $v = array($szsz, $tanev, $mkId);
+ if ($SET['result'] == 'multiassoc') {
+ $RESULT = db_query($q, array(
+ 'fv' => 'getTankorByMkId', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $v
+ ));
+ } else {
+ $RESULT = db_query($q, array(
+ 'fv' => 'getTankorByMkId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v
+ ));
+ $tolDt = isset($SET['tolDt']) ? $SET['tolDt'] : $TA['kezdesDt'];
+ $igDt = isset($SET['igDt']) ? $SET['igDt'] : $TA['zarasDt'];
+ for($i = 0; $i < count($RESULT); $i++) {
+ $RESULT[$i]['tanarok'] = getTankorTanaraiByInterval(
+ $RESULT[$i]['tankorId'],
+ array('tanev' => $tanev, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result' => 'nevsor',
+ 'datumKenyszeritessel' => $SET['datumKenyszeritessel']
+ )
+ );
+ }
+ }
+ } else {
+ $q = "SELECT tankor.tankorId AS tankorId
+ FROM tankor LEFT JOIN targy USING (targyId)
+ LEFT JOIN tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ WHERE tanev=%u AND mkId=%u $W
+ GROUP BY tankorId
+ ORDER BY $__tankorOrder";
+ $v = array($tanev, $mkId);
+ $RESULT = db_query($q, array('fv' => 'getTankorByMkId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+ }
+ return $RESULT;
+ }
+
+ /*
+ A megadott osztályokhoz - és csak azokhoz - rendelt tankörök listája
+ */
+ function getTankorByOsztalyIds($osztalyIds, $tanev = __TANEV) { // csak Id-kkel tér vissza
+
+ $q = "SELECT DISTINCT tankorId FROM tankorOsztaly LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).") AND tanev=%u
+ AND tankorId NOT IN (
+ SELECT DISTINCT tankorId FROM tankorOsztaly LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE osztalyId NOT IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).") AND tanev=%u
+ )";
+ $v = mayor_array_join($osztalyIds, array($tanev), $osztalyIds, array($tanev));
+ return db_query($q, array('fv' => 'getTankorByOsztalyIds', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+ }
+
+ function getTankorByTeremId($teremId, $tanev = __TANEV) { // KIVÉTEL speciális függvény, teremben levő órák tankörei - tesztelés alatt
+
+ $q = "SELECT tankor.* FROM ora LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId) WHERE teremId = %u GROUP BY tankorId";
+ $v = array($teremId);
+ return db_query($q, array('fv' => 'getTankorByTeremId', 'debug'=>false,'modul' => 'naplo', 'result' => 'indexed', 'values' => $v));
+ }
+
+
+ function getTankorByOsztalyId($osztalyId, $tanev = __TANEV, $SET = array('csakId' => false, 'tanarral' => false, 'result' => '')) {
+
+ global $__tankorOrder;
+
+ $v = array($osztalyId, $tanev);
+ if ($SET['csakId'] == true || $SET['result'] == 'idonly') {
+
+// Felesleges a tankor tábla a lekérdezésben - nem?
+// $q = "SELECT DISTINCT tankor.tankorId
+// FROM tankor LEFT JOIN tankorSzemeszter USING (tankorId)
+// LEFT JOIN tankorOsztaly USING (tankorId)
+// WHERE osztalyId=%u AND tanev=%u
+// ORDER BY LPAD(substring_index(substring_index(tankorNev,'-',1),'.',1),2,'0'),tankorNev,tanev,szemeszter";
+ $q = "SELECT DISTINCT tankorId
+ FROM tankorOsztaly LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE osztalyId=%u AND tanev=%u
+ ORDER BY ".$__tankorOrder.",tanev,szemeszter";
+ $RESULT = db_query($q, array('fv' => 'getTankorByOsztalyId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+
+ } else {
+
+ $q = "SELECT DISTINCT tankor.tankorId,tankorNev,tankorTipusId,targyId,kovetelmeny,jelenlet,felveheto
+ FROM tankor
+ LEFT JOIN tankorTipus USING (tankorTipusId)
+ LEFT JOIN tankorSzemeszter USING (tankorId)
+ LEFT JOIN tankorOsztaly USING (tankorId)
+ WHERE osztalyId=%u AND tanev=%u
+ ORDER BY ".$__tankorOrder.",tanev,szemeszter";
+ if (!isset($SET['result']) || $SET['result']=='') {
+ $RESULT = db_query($q, array('fv' => 'getTankorByOsztalyId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if ($SET['tanarral'] === true) {
+ global $_TANEV;
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev); else $TA = $_TANEV;
+ for($i = 0; $i < count($RESULT); $i++)
+ $RESULT[$i]['tanarok'] = getTankorTanaraiByInterval($RESULT[$i]['tankorId'], array('tanev' => $tanev, 'tolDt' => $TA['kezdesDt'], 'igDt' => $TA['zarasDt'], 'result' => 'nevsor'));
+ }
+ } else {
+ $RESULT = db_query($q, array(
+ 'fv' => 'getTankorByOsztalyId', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $v
+ ));
+ }
+ }
+ return $RESULT;
+ }
+
+ function getTankorByTargyId($targyId, $tanev, $SET = array('idonly' => true, 'lista' => false), $olr = '') {
+
+ global $_TANEV,$__tankorOrder;
+
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev);
+ else $TA = $_TANEV;
+ $szsz = count($TA['szemeszter']);
+ if ($SET['idonly']) {
+ $q = "SELECT tankor.tankorId AS tankorId
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ WHERE tanev=%u AND targyId=%u
+ GROUP BY tankorId";
+ $RESULT = db_query($q,array('fv' => 'getTankorByTargyId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tanev, $targyId)));
+ } elseif ($SET['lista']) {
+ $q = "SELECT DISTINCT tankor.tankorId AS tankorId,tankorNev,tankorTipusId,kovetelmeny,jelenlet,felveheto
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ WHERE tanev=%u AND targyId=%u
+ ORDER BY ".$__tankorOrder;
+ $RESULT = db_query($q, array('fv' => 'getTankorByTargyId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanev, $targyId)));
+ } else {
+ $q = "SELECT tankor.tankorId AS tankorId,tankorNev,tankorTipusId,kovetelmeny,jelenlet,felveheto,tanev,szemeszter,sum(oraszam)/%u AS oraszam
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ WHERE tanev=%u AND targyId=%u
+ GROUP BY tankorId
+ ORDER BY ".$__tankorOrder;
+ $RESULT = db_query($q, array('fv' => 'getTankorByTargyId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($szsz, $tanev, $targyId)));
+ }
+ return $RESULT;
+ }
+
+ function getTankorByTanarId($tanarId, $tanev = __TANEV, $SET = array('csakId' => false, 'tolDt' => '', 'igDt' => '', 'result' => '', 'tanarral' => false), $olr = '') {
+
+ global $__tankorOrder;
+
+ if ($tanev=='') $tanev=__TANEV;
+
+ if ($tanarId=='') {
+ $_SESSION['alert'][] = '::getTankorByTanarId fv hívás a kötelező $tanarId paraméter nélkül!';
+ return false;
+ }
+
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+/* DÁTUMOKKK!!!!! */
+ $v = array($tanev, $tanarId, $tolDt, $igDt);
+ if ($SET['csakId']===true) {
+ $q = "SELECT tankor.tankorId AS tankorId
+ FROM tankor LEFT JOIN tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ LEFT JOIN tankorTanar ON (tankor.tankorId=tankorTanar.tankorId)
+ WHERE tanev=%u AND tanarId=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt
+ GROUP BY tankorId";
+ $RESULT = db_query($q, array('fv' => 'getTankorByTanarId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $olr);
+ } else {
+ $q = "SELECT tankor.tankorId AS tankorId,tankorNev,tankorTipusId,kovetelmeny,jelenlet,felveheto,tanev,szemeszter
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTanar ON (tankor.tankorId=tankorTanar.tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ WHERE tanev=%u AND tanarId=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt
+ GROUP BY tankorId
+ ORDER BY ".$__tankorOrder.",tanev,szemeszter";
+ // a kompatibilitás jegyében...
+ if ($SET['result']=='multiassoc') {
+ $RESULT = db_query($q, array(
+ 'result' => 'multiassoc', 'values' => $v, 'keyfield' => 'tankorId', 'modul' => 'naplo_intezmeny', 'fv' => 'getTankorByTanarId'
+ ));
+ } else {
+ $RESULT = db_query($q, array(
+ 'result' => 'indexed', 'values' => $v, 'modul' => 'naplo_intezmeny', 'fv' => 'getTankorByTanarId'
+ ), $olr);
+ if ($SET['tanarral'] === true) {
+ global $_TANEV;
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev); else $TA = $_TANEV;
+ for($i = 0; $i < count($RESULT); $i++)
+ $RESULT[$i]['tanarok'] = getTankorTanaraiByInterval($RESULT[$i]['tankorId'], array('tanev' => $tanev, 'tolDt' => $TA['kezdesDt'], 'igDt' => $TA['zarasDt'], 'result' => 'nevsor'));
+ }
+
+ }
+ }
+ return $RESULT;
+ }
+
+ function getTankorDiakFelmentes($diakId, $tanev = __TANEV, $SET = array('csakId' => false, 'tolDt' => '', 'igDt' => '', 'override' => false, 'result'=>'indexed', 'felmentesTipus'=>array('óralátogatás alól'), 'nap'=>null, 'ora'=>null) , $olr = '') {
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+
+ if ($SET['csakId'] === true || $SET['result'] == 'csakId') $SET['result'] = 'idonly';
+ elseif ($SET['result'] == '') $SET['result'] = 'indexed';
+ if (isset($SET['felmentesTipus'])) {
+ if (!is_array($SET['felmentesTipus'])) {
+ $W = ' AND felmentesTipus = "'.$SET['felmentesTipus'].'" ';
+ } else {
+ $W = ' AND felmentesTipus IN ("'.implode('","',$SET['felmentesTipus']).'") ';
+ }
+ } else { // alapértelmezés
+ $W = ' AND felmentesTipus = "óralátogatás alól" ';
+ }
+
+ if (is_numeric($SET['nap'])) $W .= " AND (nap=".$SET['nap']." OR nap is null) ";
+ if (is_numeric($SET['ora'])) $W .= " AND (ora=".$SET['ora']." OR ora is null) ";
+
+ if ($SET['result'] == 'idonly') {
+ $q = "SELECT DISTINCT tankorId
+ FROM ".__INTEZMENYDBNEV.".tankorDiakFelmentes LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE diakId=%u AND tanev=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt".$W
+ ;
+ $v = array($diakId, $tanev, $tolDt, $igDt,$tolDt, $igDt);
+
+ } else {
+ $q = "SELECT *
+ FROM ".__INTEZMENYDBNEV.".tankorDiakFelmentes
+ WHERE diakId=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt".$W.""
+ ;
+ $v = array($diakId, $tolDt, $igDt,$tolDt, $igDt);
+
+ }
+ $RESULT = db_query($q, array('keyfield' => 'tankorId', 'modul' => 'naplo_intezmeny', 'fv' => 'getTankorDiakFelmentes', 'values' => $v, 'result' => $SET['result']));
+ return $RESULT;
+ }
+
+ function getFelmentes($SET = array('tanev'=>__TANEV, 'osztalyId'=>false,'csakId' => false, 'tolDt' => '', 'igDt' => '', 'override' => false, 'result'=>'indexed', 'felmentesTipus'=>array('óralátogatás alól'), 'nap'=>null, 'ora'=>null) , $olr = '') {
+ $tanev = ($SET['tanev']!='')?$SET['tanev']:__TANEV;
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+
+ if ($SET['csakId'] === true || $SET['result'] == 'csakId') $SET['result'] = 'idonly';
+ elseif ($SET['result'] == '') $SET['result'] = 'indexed';
+ if (isset($SET['felmentesTipus'])) {
+ if (!is_array($SET['felmentesTipus'])) {
+ $W = ' AND felmentesTipus = "'.$SET['felmentesTipus'].'" ';
+ } else {
+ $W = ' AND felmentesTipus IN ("'.implode('","',$SET['felmentesTipus']).'") ';
+ }
+ } else { // alapértelmezés
+ $W = ' AND felmentesTipus = "óralátogatás alól" ';
+ }
+
+ if (is_numeric($SET['nap'])) $W .= " AND (nap=".$SET['nap']." OR nap is null) ";
+ if (is_numeric($SET['ora'])) $W .= " AND (ora=".$SET['ora']." OR ora is null) ";
+ if (is_numeric($SET['osztalyId'])) $W .= " AND osztalyId=".$SET['osztalyId']." ";
+
+ if ($SET['result'] == 'idonly') {
+ $q = "SELECT DISTINCT tankorId
+ FROM ".__INTEZMENYDBNEV.".tankorDiakFelmentes LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE tanev=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt".$W
+ ;
+ $v = array($tanev, $tolDt, $igDt,$tolDt, $igDt);
+
+ } else {
+ $q = "SELECT a.*
+ FROM ".__INTEZMENYDBNEV.".tankorDiakFelmentes AS a
+ LEFT JOIN ".__INTEZMENYDBNEV.".osztalyDiak ON (osztalyDiak.diakId=a.diakId)
+ WHERE ('%s' <= a.kiDt OR a.kiDt IS NULL)
+ AND '%s' >= a.beDt".$W." ORDER BY a.diakId,a.beDt"
+ ;
+ $v = array($tolDt, $igDt, $tolDt, $igDt);
+
+ }
+ $RESULT = db_query($q, array('debug'=>false,'keyfield' => 'tankorId', 'modul' => 'naplo_intezmeny', 'fv' => 'getTankorDiakFelmentes', 'values' => $v, 'result' => $SET['result']));
+ return $RESULT;
+ }
+
+ function getTankorByDiakId($diakId, $tanev = __TANEV, $SET = array('csakId' => false, 'tolDt' => '', 'igDt' => '', 'override' => false, 'result'=>'indexed') , $olr = '') {
+
+ global $__tankorOrder;
+
+ if (isset($SET['jelenlet']) && $SET['jelenlet']!='') {
+ //$W = " AND tankorDiak.jelenlet='%s'";
+ $_SESSION['alert'][] = 'info:ERR400:getTankorByDiakId() nem hívható "jelenlet" paraméterrel!:'.$SET['jelenlet'];
+ } else {
+ //$W = '';
+ }
+
+ $tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+
+ if ($SET['csakId'] === true || $SET['result'] == 'csakId') $SET['result'] = 'idonly';
+ elseif ($SET['result'] == '') $SET['result'] = 'indexed';
+
+ if ($SET['result'] == 'idonly') {
+// $q = "SELECT DISTINCT tankor.tankorId,tankorNev,targyId,tankor.kovetelmeny,tankor.jelenlet,felveheto
+// FROM ".__INTEZMENYDBNEV.".tankor LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+// LEFT JOIN ".__INTEZMENYDBNEV.".tankorDiak USING (tankorId)
+// WHERE diakId=$diakId AND tanev=$tanev
+// AND ('$tolDt' <= kiDt OR kiDt IS NULL)
+// AND '$igDt' >= beDt
+// ORDER BY LPAD(substring_index(substring_index(tankorNev,'-',1),'.',1),2,'0'),tankorNev,tanev,szemeszter";
+ $q = "SELECT DISTINCT tankorId
+ FROM ".__INTEZMENYDBNEV.".tankorDiak LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE diakId=%u AND tanev=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt";
+// $RESULT = _m_y_id_query($q, array('db' => 'naplo_intezmeny', 'fv' => 'getTankorByDiakId', 'result' => 'idonly'), $olr);
+ } else {
+ $q = "SELECT DISTINCT tankor.tankorId,tankorNev,tankorTipusId,targyId,tankor.kovetelmeny,tankorTipus.jelenlet AS jelenlet, felveheto
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorDiak USING (tankorId)
+ WHERE diakId=%u AND tanev=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt $W
+ ORDER BY ".$__tankorOrder.",tanev,szemeszter";
+// if ($SET['result']=='multiassoc')
+// $RESULT = _m_y_multiassoc_query($q,'tankorId', array('keyfield'=>'tankorId','db'=>'naplo_intezmeny','fv'=>'getTankorByDiakId'));
+// else
+// $RESULT = _m_y_query($q, array('db'=>'naplo_intezmeny', 'fv'=>'getTankorByDiakId'), $olr);
+ }
+ $v = array($diakId, $tanev, $tolDt, $igDt, $SET['jelenlet']);
+ $RESULT = db_query($q, array('keyfield' => 'tankorId', 'modul' => 'naplo_intezmeny', 'fv' => 'getTankorByDiakId', 'values' => $v, 'result' => $SET['result']));
+ return $RESULT;
+ }
+
+ function getTankorIdsByDiakIds($diakIds, $SET = array(
+ 'tanev' => __TANEV,
+ 'tolDt'=>'',
+ 'igDt'=>'',
+ 'felmentettekkel'=>true
+// 'jelenlet'=>array('kötelező','nem kötelező')
+// 'kovetelmeny'=>array('aláírás','vizsga','jegy')
+ )
+ ) {
+
+ global $__tankorOrder;
+
+ if (isset($SET['jelenlet'])) {
+ $_SESSION['alert'][] = 'info:!!!:getTankorIdsByDiakIds(), jelenlét parameter is obsolete';
+ }
+
+ if (!is_array($diakIds)) return false;
+ elseif (count($diakIds) == 0) return array();
+ $tanev = readVariable($SET['tanev'],'numeric unsigned',__TANEV);
+ $tolDt = $SET['tolDt'];
+ $igDt = $SET['igDt'];
+ initTolIgDt($tanev, $tolDt, $igDt);
+
+// if (!is_array($SET['jelenlet'])) $SET['jelenlet'] = array('kötelező','nem kötelező');
+// if (!is_array($SET['kovetelmeny'])) $SET['kovetelmeny'] = array('aláírás','vizsga','jegy');
+
+ // ----------------------
+ $q = "SELECT DISTINCT tankorDiak.tankorId
+ FROM ".__INTEZMENYDBNEV.".tankorDiak
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") AND tanev=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt
+ ORDER BY ".$__tankorOrder.",tanev,szemeszter";
+// AND kovetelmeny IN ('".implode("','", array_fill(0, count($SET['kovetelmeny']), '%s'))."')
+// AND jelenlet IN ('".implode("','", array_fill(0, count($SET['jelenlet']), '%s'))."')
+
+// $v = array_merge($diakIds, array($tanev, $tolDt, $igDt), $SET['jelenlet'], $SET['kovetelmeny']);
+ $v = mayor_array_join($diakIds, array($tanev, $tolDt, $igDt));
+ $TANKOROK = db_query($q, array('fv' => 'getTankorIdsByDiakIds', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $olr);
+
+ if (!is_array($SET['felmentettekkel'])) $SET['felmentettekkel'] = true;
+ /* Ha felmentett, akkor kivegyük-e az adott tanköridket?! */
+ if ($SET['felmentettekkel'] === false) {
+ $q = "SELECT DISTINCT tankorDiak.tankorId
+ FROM ".__INTEZMENYDBNEV.".tankorDiakFelmentes
+ WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") AND tanev=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt";
+ $v = mayor_array_join($diakIds, array($tanev, $tolDt, $igDt));
+ $FM = db_query($q, array('fv' => 'getTankorIdsByDiakIdsFM', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $olr);
+ }
+ if (is_array($TANKOROK)) {
+ if (is_array($FM) && count($FM)>0) {
+ $RESULT = array_diff($TANKOROK,$FM);
+ reset($RESULT);
+ sort($RESULT);
+ } else {
+ $RESULT = $TANKOROK;
+ }
+ }
+ return $RESULT;
+ }
+
+ function getTankorById($tankorId, $tanev = __TANEV, $olr = '') {
+ if ($tankorId=='') return false;
+ if ($tanev == '') return getTankorok(array("tankor.tankorId=$tankorId"), '', $olr);
+ else return getTankorok(array("tankor.tankorId=$tankorId", "tanev=$tanev"), '', $olr);
+ }
+
+ function getTankorByTanev($tanev = __TANEV, $SET = array('result' => 'indexed', 'jelenlet'=>''), $olr = '') {
+ global $__tankorOrder;
+
+ if ($SET['jelenlet']!='') {
+ $W['join'] = ' LEFT JOIN '.__INTEZMENYDBNEV.'.tankorTipus USING (tankorTipusId) ';
+ $W['where']= ' AND tankorTipus.jelenlet IN ("'.$SET['jelenlet'].'")';
+ }
+ if ($SET['result'] == 'idonly') {
+ $q = "SELECT DISTINCT tankorId
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ ".$W['join']."
+ WHERE tanev=%u ".$W['where']." ORDER BY $__tankorOrder";
+ $ret = db_query($q, array('fv' => 'getTankorByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tanev)), $olr);
+ } else {
+ $q = "SELECT DISTINCT tankorId,tankorNev,targyId
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ ".$W['join']."
+ WHERE tanev=%u ".$W['where']." ORDER BY $__tankorOrder";
+ $ret = db_query($q, array('fv' => 'getTankorByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tanev)), $olr);
+ }
+ return $ret;
+ }
+
+ function getTankorByBontasIds($bontasIds) {
+ /*
+ * Az aktuális tanévben kérdezi le a bontások által megadott osztályhoz és tárgyhoz rendelhető tankörök tankorId-it...
+ */
+ if (!is_array($bontasIds) || count($bontasIds)==0) return array();
+ $q = "select distinct tankorId from ".__TANEVDBNEV.".kepzesTargyBontas
+ left join (tankor left join tankorOsztaly using (tankorId)) using (targyId,osztalyId)
+ left join tankorSzemeszter using(tankorId)
+ where tanev=".__TANEV." and bontasId in (".implode(',', array_fill(0, count($bontasIds), '%u')).")";
+ return db_query($q, array('fv'=>'getTankorByBontasIds','modul'=>'naplo_intezmeny','result'=>'idonly','values'=>$bontasIds));
+ }
+
+ // FIGYELEM! NEM MINDIG OPTIMÁLIS EREDMÉNY
+ function getTankorok(
+ $FILTER = array(),
+ $ORDER = '',
+ $olr = ''
+ ) {
+ global $__tankorOrder;
+ /* Általános filterező */
+ $QW = '';
+ if (is_array($FILTER) && count($FILTER)>0) {
+ $QW = " WHERE ".implode(' AND ',$FILTER);
+ }
+ if ($ORDER == '') $ORDER = $__tankorOrder.",tanev,szemeszter";
+
+ // --TODO: továbbgondolásra szorul
+ // jelenlet = tankorJelenlet
+ $q = "SELECT DISTINCT tankor.tankorId,tankorTipusId,tankorNev,targyId,kovetelmeny,jelenlet,felveheto,tanev,zaroKovetelmeny
+ FROM ".__INTEZMENYDBNEV.".tankor
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorTipus USING (tankorTipusId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".tankorSzemeszter USING (tankorId)
+ LEFT JOIN ".__INTEZMENYDBNEV.".targy USING (targyId)
+ $QW
+ ORDER BY $ORDER";
+ return db_query($q, array('fv' => 'getTankorok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'), $olr);
+
+ }
+
+ function getTankorSzemeszterei($tankorId,$SET=array(),$olr='') {
+ if ($tankorId=='') return false;
+
+ $q = "SELECT * FROM tankorSzemeszter LEFT JOIN szemeszter using (tanev,szemeszter) WHERE tankorId=%u order by tanev,szemeszter";
+ $ret = db_query($q, array('fv' => 'getTankorSzemeszterei', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tankorId)), $olr);
+
+ if (is_array($SET['arraymap'])) return reindex($ret, $SET['arraymap']);
+ else return $ret;
+ }
+
+ function getTankorOsztalyai($tankorId, $SET = array('result' => 'id'), $olr='') { // lásd még getTankorOsztalyaiByTanev
+ if ($tankorId=='') return false;
+
+ $q = "SELECT DISTINCT osztalyId FROM tankorOsztaly WHERE tankorId=%u";
+ if ($SET['result'] == 'id') {
+ return db_query($q, array('fv' => 'getTankorOsztalyai', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tankorId)), $olr);
+ } else {
+ return db_query($q, array('fv' => 'getTankorOsztalyai', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tankorId)), $olr);
+ }
+ }
+
+ function getTankorOsztalyaiByTanev($tankorId, $tanev = __TANEV, $SET = array('result' => 'id', 'tagokAlapjan' => false, 'tolDt' => '', 'igDt' => ''), $olr = null) {
+
+ if ($tankorId=='' || $tanev=='') return false;
+
+ if ($SET['tagokAlapjan']) { // Ha a tényleges tagok alapján keressük a tankör osztályait...
+ $tolDt = readVariable($SET['tolDt'], 'datetime', null);
+ $igDt = readVariable($SET['igDt'], 'datetime', null);
+ initTolIgDt($tanev, $tolDt, $igDt);
+ /*
+ - a diák tagja a tankörnek az adott idő intervellumban
+ - a diák tagja az osztálynak az adott idő intervellumban
+ - az osztály hozzá van rendelve a tankörhöz (lehet egy diák több osztálynak is tagja - ez bezavarhat)
+ */
+ $q = "SELECT osztalyId FROM tankorDiak LEFT JOIN osztalyDiak USING (diakId)
+ WHERE tankorId=%u
+ AND tankorDiak.beDt <= '%s' AND (tankorDiak.kiDt IS NULL OR tankorDiak.kiDt >= '%s')
+ AND osztalyDiak.beDt <= '%s' AND (osztalyDiak.kiDt IS NULL OR osztalyDiak.kiDt >= '%s')
+ AND osztalyId IN (SELECT DISTINCT osztalyId FROM tankorOsztaly WHERE tankorId=%u)
+ GROUP BY osztalyId ORDER BY COUNT(osztalyId) DESC"; // A legtöbb tagú osztály kerüljön előre
+ $v = array($tankorId, $igDt, $tolDt, $igDt, $tolDt, $tankorId);
+ if ($SET['result'] == 'id')
+ $return = db_query($q, array('fv' => 'getTankorOsztalyaiByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v),$olr);
+ else
+ $return = db_query($q, array('fv' => 'getTankorOsztalyaiByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $olr);
+ if (is_array($return) && count($return) > 0) return $return;
+ else $_SESSION['alert'][] = 'info:fallback:ennek a tankörnek egy tagja sincs, tagok alapján nem tudom lekérdezni az érintett osztályokat:'.$tankorId;
+ }
+ // Ha nincs a tankörnek egy tagja sem, vagy nem tagok alapján keresünk...
+ $q = "SELECT tankorOsztaly.osztalyId AS osztalyId FROM tankorOsztaly
+ LEFT JOIN osztaly USING (osztalyId)
+ WHERE tankorId=%u AND kezdoTanev<=%u AND vegzoTanev>=%u";
+ $v = array($tankorId, $tanev, $tanev);
+ if ($SET['result'] == 'id')
+ return db_query($q, array('fv' => 'getTankorOsztalyaiByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $olr);
+ else
+ return db_query($q, array('fv' => 'getTankorOsztalyaiByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $olr);
+ }
+
+ function getTankorOsztalyaiByBontas($tankorId) {
+
+ $q = "select distinct osztalyId from bontasTankor left join kepzesTargyBontas using (bontasId) where tankorId=%u";
+ return db_query($q, array('fv'=>'getTankorOsztalyaiByBontas','modul'=>'naplo','result'=>'idonly','values'=>array($tankorId)));
+
+ }
+
+ function getTankorTanarai($tankorId, $olr = '') {
+ if ($tankorId == '') return false;
+ $q = "SELECT tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, viseltCsaladiNev, viseltUtonev)) as tanarNev, min(tankorTanar.beDt) AS minBeDt, max(tankorTanar.kiDt) AS maxKiDt
+ FROM ".__INTEZMENYDBNEV.".tankorTanar LEFT JOIN ".__INTEZMENYDBNEV.".tanar USING (tanarId)
+ WHERE tankorId=%u GROUP BY tanarId ORDER BY tankorTanar.beDt,tankorTanar.kiDt";
+ return db_query($q, array('fv' => 'getTankorTanarai', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tankorId)), $olr);
+ }
+
+ function getTankorTanarBejegyzesek($tankorId, $olr = '') {
+ if ($tankorId == '') return false;
+ $q = "SELECT tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, viseltCsaladiNev, viseltUtonev)) as tanarNev, tankorTanar.beDt, tankorTanar.kiDt
+ FROM ".__INTEZMENYDBNEV.".tankorTanar LEFT JOIN ".__INTEZMENYDBNEV.".tanar USING (tanarId)
+ WHERE tankorId=%u ORDER BY tankorTanar.beDt,tankorTanar.kiDt";
+ return db_query($q, array('fv' => 'getTankorTanarBejegyzesek', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($tankorId)), $olr);
+ }
+
+ function getTankorTanaraiByInterval($tankorId, $Param = array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result' => 'nevsor', 'datumKenyszeritessel' => false), $olr = '') {
+
+ $tolDt = $Param['tolDt'];
+ $igDt = $Param['igDt'];
+ if (!$Param['datumKenyszeritessel']) initTolIgDt($Param['tanev'], $tolDt, $igDt);
+
+ if (!is_array($tankorId)) $tankorId = array($tankorId);
+ if (implode(',', $tankorId) == '') {
+ return false;
+ }
+
+ if ($Param['result'] == 'csakId' or $Param['result'] == 'idonly') {
+ $q = "SELECT DISTINCT tanarId FROM ".__INTEZMENYDBNEV.".tankorTanar
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorId), '%u')).")
+ AND (tankorTanar.kiDt IS NULL OR tankorTanar.kiDt>='%s')
+ AND tankorTanar.beDt<='%s'";
+ array_push($tankorId, $tolDt, $igDt);
+ return db_query($q, array(
+ 'fv' => 'getTankorTanaraiByInterval', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $tankorId
+ ), $olr);
+ } else {
+ $q = "SELECT DISTINCT tankorId, tanarId, TRIM(CONCAT_WS(' ',viseltNevElotag, viseltCsaladiNev, viseltUtonev)) as tanarNev
+ FROM ".__INTEZMENYDBNEV.".tankorTanar LEFT JOIN ".__INTEZMENYDBNEV.".tanar USING (tanarId)
+ WHERE tankorId IN (".implode(',',$tankorId).")
+ AND (tankorTanar.kiDt IS NULL OR tankorTanar.kiDt>='$tolDt')
+ AND tankorTanar.beDt<='$igDt' ORDER BY tankorTanar.beDt, tankorTanar.kiDt, tanarNev";
+ array_push($tankorId, $tolDt, $igDt);
+ if ($Param['result'] == 'assoc')
+ return db_query($q, array(
+ 'fv' => 'getTankorTanaraiByInterval', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $tankorIds
+ ), $olr);
+ else return db_query($q, array(
+ 'fv' => 'getTankorTanaraiByInterval', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $tankorIds
+ ), $olr);
+ }
+ }
+
+ function getTankorDiakjai($tankorId, $olr = '') {
+ if ($tankorId=='' || (is_array($tankorId) && count($tankorId) == 0)) return false;
+ if (is_array($tankorId)) {
+ $tankorIds = array_filter(array_unique($tankorId),'_isempty');
+ $W = "tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ $v = $tankorIds;
+ } else {
+ $W = "tankorId=%u";
+ $v = array($tankorId);
+ }
+ $q = "SELECT DISTINCT diakId FROM ".__INTEZMENYDBNEV.".tankorDiak WHERE ".$W;
+ $RETURN['idk'] = db_query($q, array(
+ 'fv' => 'getTankorDiakjai/1', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v
+ ), $olr);
+ // jelenlet = diakJelenlet
+ $q = "SELECT diakId,DATE_FORMAT(kiDt,'%%Y-%%m-%%d') AS kiDt, DATE_FORMAT(beDt,'%%Y-%%m-%%d') AS beDt,jelenlet,jelenlet as diakJelenlet,kovetelmeny,jovahagyva
+ FROM ".__INTEZMENYDBNEV.".tankorDiak WHERE tankorId=%u ORDER BY bedt";
+ $RETURN['adatok'] = db_query($q, array(
+ 'fv' => 'getTankorDiakjai/2', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'diakId', 'values' => array($tankorId)
+ ), $olr);
+ $RETURN['nevek'] = getDiakokById($RETURN['idk'],$olr);
+ return $RETURN;
+ }
+
+ function getTankorDiakjaiByInterval($tankorId, $tanev = __TANEV, $tolDt = '', $igDt = '', $olr = '') {
+
+ initTolIgDt($tanev, $tolDt, $igDt);
+ if ($tankorId == '' || (is_array($tankorId) && count($tankorId) == 0)) return false;
+ if (is_array($tankorId)) {
+ $tankorIds = array_filter(array_unique($tankorId),'_isempty');
+ $W = "tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ $v = $tankorIds;
+ array_push($v, $tolDt,$igDt);
+ } else {
+ $W = "tankorId=%u";
+ $v = array($tankorId,$tolDt,$igDt);
+ }
+ $q = "SELECT DISTINCT diakId FROM ".__INTEZMENYDBNEV.".tankorDiak
+ WHERE $W AND (kiDt>='%s' OR kiDt is null) AND beDt<='%s' ORDER BY diakId";
+ $RETURN['idk'] = db_query($q, array('fv' => 'getTankorDiakjaiByInterval', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v), $olr);
+ /* jelenlet, követelmeny, jóváhagyva mezők MÁR nincsenek */
+ $q = "SELECT diakId,DATE_FORMAT(kiDt,'%%Y-%%m-%%d') AS kiDt, DATE_FORMAT(beDt,'%%Y-%%m-%%d') AS beDt
+ FROM ".__INTEZMENYDBNEV.".tankorDiak WHERE $W AND (kiDt>='%s' OR kiDt is null) AND beDt<='%s' ORDER BY bedt";
+ $RETURN['adatok'] = db_query($q, array(
+ 'fv' => 'getTankorDiakjaiByInterval', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'diakId', 'values' => $v
+ ), $olr);
+ $RETURN['nevek'] = getDiakokById($RETURN['idk'], $olr);
+ return $RETURN;
+
+ }
+
+
+ function tankorTagjaE($diakId, $tankorId, $tanev = __TANEV, $tolDt = '', $igDt = '') {
+
+
+ initTolIgDt($tanev, $tolDt, $igDt);
+
+ $q = "SELECT COUNT(tankorId) FROM tankorDiak
+ WHERE tankorId=%u AND diakId=%u
+ AND ('%s' <= kiDt OR kiDt IS NULL)
+ AND '%s' >= beDt";
+ $v = array($tankorId, $diakId, $tolDt, $igDt);
+ $num = db_query($q, array('fv' => 'tankorTagjaE', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+ return ($num > 0);
+
+ }
+
+ function tankorVegzosE($tankorId, $tanev = __TANEV, $SET = array('tagokAlapjan' => true, 'tolDt' => null, 'igDt' => null)) {
+ /*
+ Egy tankört akkor tekintünk végzősnek, ha csak végzős diákok a tagjai. De lehet, hogy egy diák több osztálynak is tagja.
+ Ha az egyik esetleg nem végzős, akkor a diákok osztályai közt lesz nem végzős.
+
+ Tehát a tankörhöz rendelt osztályokon belül nézzük a tagok osztályait, mert elvileg ez a halmaz csak bővebb lehet a tankör
+ tagok osztályainak halmazánál.
+ */
+
+ if ($tankorId == '' || $tanev == '') return false;
+
+ // Először lekérdezzük a tankörhöz rendelt nem végzős osztályok számát
+ $q = "SELECT COUNT(osztalyId) FROM tankorOsztaly LEFT JOIN osztaly USING (osztalyId)
+ WHERE tankorId=%u AND vegzoTanev != %u";
+ $return = (db_query($q, array('fv' => 'tankorVegzosE', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($tankorId, $tanev))) == 0);
+ // Ha a tankörhöz csak végzős osztályok vannak rendelve, vagy a tényleges tagok vizsgálatára nincs szükség, akkor visszatérünk
+ if ($return || !$SET['tagokAlapjan']) return $return;
+
+ // Lekérdezzük a tankör tagok osztályait (ez figyel a tankörhöz rendelt osztályokra való szűkítésre)
+ $vegzosOsztalyok = getVegzosOsztalyok(array('tanev' => $tanev, 'result' => 'id'));
+ $tankorOsztalyai = getTankorOsztalyaiByTanev(
+ $tankorId, $tanev = $tanev,
+ array('result' => 'id', 'tagokAlapjan' => true, 'tolDt' => $SET['tolDt'], 'igDt' => $SET['igDt'])
+ );
+ // vizsgáljuk, hogy van-e benne nem végzős
+ for ($i = 0; $i < count($tankorOsztalyai); $i++) {
+ if (!in_array($tankorOsztalyai[$i], $vegzosOsztalyok)) return false;
+ }
+ return true;
+
+ }
+
+ function tankorokVegzosekE($tankorIds, $tanev = __TANEV, $SET = array('tagokAlapjan' => true, 'tolDt' => null, 'igDt' => null)) {
+
+ if (!is_array($tankorIds) || count($tankorIds) == 0 || $tanev == '') return false;
+
+ // Először lekérdezzük a tankörökhöz rendelt nem végzős osztályok számát
+ $q = "SELECT tankorId, COUNT(osztaly.osztalyId) AS db FROM tankorOsztaly
+ LEFT JOIN osztaly ON tankorOsztaly.osztalyId = osztaly.osztalyId AND vegzoTanev != %u
+ WHERE tankorId IN (".implode(',', $tankorIds).")
+ GROUP BY tankorId";
+ array_unshift($tankorIds, $tanev);
+ $ret = db_query($q, array(
+ 'fv' => 'tankorokVegzosekE', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $tankorIds
+ ));
+ // Ha a tényleges tagok vizsgálatára is szükség van
+ if ($SET['tagokAlapjan']) {
+ // Lekérdezzük a tankör tagok osztályait (ez figyel a tankörhöz rendelt osztályokra való szűkítésre)
+ $vegzosOsztalyok = getVegzosOsztalyok(array('tanev' => $tanev, 'result' => 'id'));
+ foreach ($ret as $tankorId => $tAdat) {
+ $db = $tAdat['db'];
+ $return[$tankorId] = true;
+ if ($db != 0) { // Ha csak végzős osztálya van, akkor nem kell tovább nézni, különben...
+ $tankorOsztalyai = getTankorOsztalyaiByTanev(
+ $tankorId, $tanev = $tanev,
+ array('result' => 'id', 'tagokAlapjan' => true, 'tolDt' => $SET['tolDt'], 'igDt' => $SET['igDt'])
+ );
+ // vizsgáljuk, hogy van-e benne nem végzős
+ for ($i = 0; $i < count($tankorOsztalyai); $i++) {
+ if (!in_array($tankorOsztalyai[$i], $vegzosOsztalyok)) $return[$tankorId] = false;
+ break;
+ }
+ }
+ }
+ } else {
+ foreach ($ret as $tankorId => $tAdat) {
+ $return[$tankorId] = ($tAdat['db'] == 0);
+ }
+ }
+ return $return;
+
+ }
+
+
+ function tankorDiakKonzisztensE($diakId,$tankorId,$tanev,$tolDt,$igDt)
+ {
+ /*
+ Jelenlét analízis:
+ tankorDiak.jelenlet = diakJelenlet
+ */
+
+ if ($diakId=='' || $tankorId=='') return false;
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $tanevDb = tanevDbNev(__INTEZMENY,$tanev);
+
+ // 1. adott intervallumban tagsága
+ $DTW1 = $DTW2 = array();
+ $q = "SELECT beDt, kiDt, kovetelmeny, jelenlet as diakJelenlet FROM tankorDiak WHERE diakId=%u AND tankorId=%u
+ AND (jelenlet='nem kötelező' OR kovetelmeny!='jegy')AND (kiDt>'%s' OR kiDt IS NULL) AND beDt<'%s' ";
+ $v = array($diakId, $tankorId, $tolDt, $igDt);
+ $r = db_query($q, array('fv' => 'tankorDiakKozisztensE', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ for ($i=0; $i<count($r); $i++) {
+ if ($r[$i]['diakJelenlet']=='nem kötelező')
+ if (is_null($r[$i]['kiDt'])) $DTW1[] = "(%1\$s.hianyzas.dt>='".$r[$i]['beDt']."')";
+ else $DTW1[] = "(%1\$s.hianyzas.dt BETWEEN '".$r[$i]['beDt']."' AND '".$r[$i]['kiDt']."')";
+ if ($r[$i]['kovetelmeny']!='jegy')
+ if (is_null($r[$i]['kiDt'])) $DTW2[] = "(%1\$s.jegy.dt>='".$r[$i]['beDt']."')";
+ else $DTW2[] = "(%1\$s.jegy.dt BETWEEN '".$r[$i]['beDt']."' AND '".$r[$i]['kiDt']."')";
+ }
+
+ if (count($DTW1)>0) {
+ // 2. hiányzásai
+ $q = "SELECT count(hianyzasId) FROM %1\$s.hianyzas LEFT JOIN ora USING (oraId) WHERE diakId=%2\$u
+ AND ora.tankorId=%3\$u AND (".implode(' OR ',$DTW1).")";
+ $v = array($tanevDb, $diakId, $tankorId);
+ $dbHianyzas = db_query($q,array('fv' => 'tankorDiakKonzisztensE', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ if ($dbHianyzas>0) $_SESSION['alert'][] = 'info:hibas_hianyzasok:'.$dbHianyzas;
+
+ }
+ if (count($DTW2)>0) {
+ // 3. jegyei
+ $q = "SELECT count(jegyId) FROM %1\$s.jegy WHERE diakId=%2\$u AND tankorId=%3\$u AND (".implode(' OR ',$DTW2).")";
+ $v = array($tanevDb, $diakId, $tankorId);
+ $dbJegy = db_query($q,array('fv' => 'tankorDiakKonzisztensE', 'modul' => 'naplo', 'result' => 'value', 'values' => $v));
+ if ($dbJegy>0) $_SESSION['alert'][] = 'info:hibas_jegyek:'.$dbJegy;
+ }
+
+ return ($dbHianyzas==0 && $dbJegy==0);
+
+ }
+
+
+ // itt a nap/ora-t is figyelni kellene, ha az pl a felmentésénél adott
+ function tankorDiakHianyzasIdk($diakId, $tankorIds, $tanev, $tolDt, $igDt, $nap=null, $ora=null)
+ {
+ $SET = array('diakId'=>$diakId, 'tankorIds'=>$tankorIds, 'tanev'=>$tanev, 'tolDt'=>$tolDt, 'igDt'=>$igDt, 'nap'=>$nap, 'ora'=>$ora);
+ return tankorDiakHianyzasIdk2($SET);
+ }
+
+ function tankorDiakHianyzasIdk2($SET = array('diakId', 'tankorIds', 'tanev', 'tolDt', 'igDt', 'nap'=>null, 'ora'=>null), $olr='')
+ {
+
+ $diakId = $SET['diakId'];
+ $tanev = $SET['tanev'];
+ $tolDt = $SET['tolDt'];
+ $igDt = $SET['igDt'];
+ $nap = $SET['nap'];
+ $ora = $SET['ora'];
+ $tankorIds = $SET['tankorIds'];
+
+ if (!is_array($tankorIds)) if ($tankorIds == '') return false;
+ else $tankorIds = array($tankorIds);
+ if ($diakId=='' || count($tankorIds) == 0) return false;
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) $lr = db_connect('naplo_intezmeny'); else $lr = $olr;
+
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $tanevDb = tanevDbNev(__INTEZMENY,$tanev);
+
+ $v = mayor_array_join(array($tanevDb, $tanevDb, $diakId), $tankorIds, array($tanevDb, $tolDt, $igDt));
+
+ if (isset($nap) && is_numeric($nap)) {
+ $W1 = ' AND (DAYOFWEEK(`%s`.hianyzas.dt) -1) = %u ';
+ $v = mayor_array_join($v,array($tanevDb,$nap));
+ }
+ if (isset($ora) && is_numeric($ora)) {
+ $W2 = ' AND `%s`.hianyzas.ora = %u ';
+ $v = mayor_array_join($v,array($tanevDb,$ora));
+ }
+
+ // 2. hiányzásai
+ $q = "SELECT hianyzasId FROM `%s`.hianyzas LEFT JOIN `%s`.ora USING (oraId)
+ WHERE diakId=%u AND ora.tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND `%s`.hianyzas.dt BETWEEN '%s' AND '%s'".$W1.$W2;
+ $H = db_query($q, array('debug'=>false,'fv' => 'tankorDiakHianyzasIdk', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v), $lr);
+ // if (count($H) > 0) $_SESSION['alert'][] = 'info:hibas_hianyzasok:db='.count($H);
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) db_close($lr);
+ return $H;
+ }
+
+ //function tankorDiakJegyIdk($diakId, $tankorIds, $tanev, $tolDt, $igDt)
+ function tankorDiakJegyIdk($SET = array('diakId', 'tankorIds', 'tanev', 'tolDt', 'igDt'), $olr = '')
+ {
+
+ $diakId = $SET['diakId'];
+ $tanev = $SET['tanev'];
+ $tolDt = $SET['tolDt'];
+ $igDt = $SET['igDt'];
+ $nap = $SET['nap'];
+ $ora = $SET['ora'];
+ $tankorIds = $SET['tankorIds'];
+
+ if (!is_array($tankorIds)) if ($tankorIds == '') return false;
+ else $tankorIds = array($tankorIds);
+
+ if ($diakId=='' || count($tankorIds) == 0) return false;
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) $lr = db_connect('naplo_intezmeny'); else $lr = $olr;
+ initTolIgDt($tanev, $tolDt, $igDt);
+ $tanevDb = tanevDbNev(__INTEZMENY,$tanev);
+
+ // 3. jegyei
+ $q = "SELECT jegyId FROM `%s`.jegy
+ WHERE diakId=%u AND tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") AND jegy.dt BETWEEN '%s' AND '%s'";
+ $v = mayor_array_join(array($tanevDb, $diakId), $tankorIds, array($tolDt, $igDt));
+ $J = db_query($q, array('fv' => 'tankorDiakJegyIdk', 'modul' => 'naplo', 'result' => 'idonly', 'values' => $v));
+ //if (count($J) > 0) $_SESSION['alert'][] = 'info:hibas_jegyek:db='.count($J);
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) db_close($lr);
+ return $J;
+
+ }
+
+ function getTankorCsoport($tanev, $olr='') {
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) $lr = db_connect('naplo_intezmeny'); else $lr = $olr;
+
+ // A tankör csoportjának lekérdezése
+ $q = "SELECT * FROM ".__TANEVDBNEV.".csoport ORDER BY csoportNev,csoportId ";
+ $ret = db_query($q, array(
+ 'fv' => 'getTankorCsoport', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'
+ ), $lr);
+ if (is_array($ret) && count($ret) == 0) $ret = array($tankorId);
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) db_close($lr);
+
+ return $ret;
+
+ }
+
+ function getTankorCsoportTankoreiByTankorId($tankorId, $olr='') {
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) $lr = db_connect('naplo_intezmeny'); else $lr = $olr;
+
+ // A tankör csoportjának lekérdezése
+ $q = "SELECT tankorId FROM ".__TANEVDBNEV.".tankorCsoport
+ WHERE csoportId=(SELECT csoportId FROM ".__TANEVDBNEV.".tankorCsoport
+ WHERE tankorId=%u)";
+ $ret = db_query($q, array(
+ 'fv' => 'getTankorCsoportTankoreiByTankorId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => array($tankorId)
+ ), $lr);
+ if (is_array($ret) && count($ret) == 0) $ret = array($tankorId);
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) db_close($lr);
+
+ return $ret;
+
+ }
+
+ function getTankorLetszam($tankorId,$ADAT=array('refDt'=>'', 'tolDt'=>'', 'igDt'=>''),$olr='') {
+
+ if ($olr!='') $lr = $olr; else $lr = db_connect('naplo_intezmeny');
+
+ if ($ADAT['refDt']!='') $tolDt=$igDt = $ADAT['refDt'];
+ else {
+ $tolDt = $ADAT['tolDt'];
+ $igDt = $ADAT['igDt'];
+ }
+ $q = "SELECT count(*) AS v FROM tankorDiak WHERE tankorId=%u AND beDt<='%s' AND (kiDt is null OR kiDt>='%s')";
+ $v = array($tankorId, $igDt, $tolDt);
+ $r = db_query($q, array('fv' => 'getTankorLetszam(share)', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v),$lr);
+
+ if ($olr=='') db_close($lr);
+ return $r;
+
+ }
+
+ function getTankorLetszamOsztalyonkent($tankorId,$ADAT=array('tanev'=>'','refDt'=>'', 'tolDt'=>'', 'igDt'=>''),$olr='') {
+
+ if ($olr!='') $lr = $olr; else $lr = db_connect('naplo_intezmeny');
+
+ if ($ADAT['refDt']!='') $tolDt=$igDt = $ADAT['refDt'];
+ else {
+ $tolDt = $ADAT['tolDt'];
+ $igDt = $ADAT['igDt'];
+ }
+ $tanev = ($ADAT['tanev']=='') ? __TANEV : $ADAT['tanev'];
+ $q = "SELECT diakId FROM tankorDiak WHERE tankorId=%u AND tankorDiak.beDt<='%s' AND (tankorDiak.kiDt is null OR tankorDiak.kiDt>='%s') ORDER BY diakId";
+ $v = array($tankorId, $igDt, $tolDt);
+ $r = db_query($q, array('fv' => 'getTankorLetszamOsztalyonkent(share)', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v),$lr);
+
+ for ($i=0; $i<count($r); $i++) {
+ $diakId = $r[$i]['diakId'];
+ // ez a lassú
+ $o = getDiakOsztalya($diakId,array('tanev'=>$tanev,'tolDt'=>$tolDt,'igDt'=>$igDt),$lr);
+ $RE[$o[0]['osztalyJel']] ++;
+ }
+ if (is_array($RE)) ksort($RE);
+ if ($olr=='') db_close($lr);
+ return $RE ;
+
+ }
+
+ function getTankorOraszamByTanev($tanev, $tankorIds = array()) {
+
+ global $_TANEV;
+
+ if ($tanev == __TANEV) $TA = $_TANEV;
+ else $TA = getTanevAdat($tanev);
+
+ $szemeszterSzam = count($TA['szemeszter']);
+ if ($szemeszterSzam == 0) {
+ return false;
+ }
+
+ if (is_array($tankorIds) && count($tankorIds) > 0) {
+ $TANKOR_WHERE = ' tankorId IN ('.implode(',', array_fill(0, count($tankorIds), '%u')).') AND ';
+ $v = $tankorIds;
+ } else {
+ $TANKOR_WHERE = '';
+ $v = array();
+ }
+ $return = array();
+ $q = "SELECT tankorId, SUM(oraszam)/%u AS oraszam FROM tankorSzemeszter WHERE $TANKOR_WHERE tanev=%u GROUP BY tankorId";
+ array_unshift($v, $szemeszterSzam); $v[] = $tanev;
+ $ret = db_query($q, array(
+ 'fv' => 'getTankorOraszamByTanev', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'tankorId', 'values' => $v
+ ));
+ if (is_array($ret)) foreach ($ret as $tankorId => $tAdat) $return[$tankorId] = $tAdat['oraszam'];
+
+ return $return;
+
+ }
+
+ function tankorTanarRendbenE($tanev, $dt) {
+
+
+ $q = "SELECT DISTINCT tankorSzemeszter.tankorId AS tankorId, tankorNev
+ FROM tankorSzemeszter LEFT JOIN tankorTanar
+ ON tankorSzemeszter.tankorId=tankorTanar.tankorId AND kiDt>='%s' AND beDt<='%s'
+ WHERE tanev=%u AND beDt IS NULL";
+ $v = array($dt, $dt, $tanev);
+ $ret = db_query($q, array('fv' => 'tankorTanarRendbenE', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if (count($ret) > 0) {
+ $T = array();
+ for ($i = 0; $i < count($ret); $i++) {
+ $T[] = $ret[$i]['tankorNev'].' ('.$ret[$i]['tankorId'].')';
+ }
+ $_SESSION['alert'][] = 'message:wrong_data:Hiányzó tanár hozzárendelés:'.implode(', ', $T);
+ return false;
+ } else { return true; }
+
+ }
+
+ function getTankorTipusok($SET = array('óratervi'=>null, 'tanórán kívüli'=>null)) {
+
+ $q = "SELECT * FROM tankorTipus";
+ if ($SET['óratervi'] == true) $q .= " WHERE oratervi='óratervi'";
+ elseif ($SET['tanórán kívüli'] == true) $q .= " WHERE oratervi='tanórán kívüli'";
+ $r = db_query($q, array('fv' => 'getTankorTipusok', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield'=>'tankorTipusId'));
+ return $r;
+ //return getEnumField('naplo_intezmeny', 'tankor', 'tankorTipus');
+
+ }
+
+ function getTankorNevById($tankorId, $SET = array('tanev'=>__TANEV)) {
+
+ $q = "SELECT DISTINCT tankorNev FROM tankor
+ LEFT JOIN tankorSzemeszter ON (tankor.tankorId=tankorSzemeszter.tankorId AND tankorSzemeszter.tanev=%u)
+ WHERE tankor.tankorId=%u";
+
+ return db_query($q, array('fv' => 'gettankorNevById', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => array($SET['tanev'],$tankorId)));
+ }
+
+ function getTankorTervezettOraszamok($tankorIds) {
+ // A tankör adott tanévre tervezett óraszámai
+ $q = "select tankorId, szemeszter, oraszam from tankorSzemeszter
+ where tanev=".__TANEV." and tankorId in (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ order by tankorId, szemeszter";
+ $ret = db_query($q, array('fv'=>'getTankorTervezettOraszamok/tsz','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$tankorIds));
+ $return = array();
+ foreach ($ret as $adat) {
+ $return[ $adat['tankorId'] ]['bontasOraszam'][0] = $return[ $adat['tankorId'] ]['bontasOraszam'][1] = array();
+ if ($adat['szemeszter'] == 2 && !isset($return[ $adat['tankorId'] ]['oraszam'][0])) $return[ $adat['tankorId'] ]['oraszam'][0] = 0;
+ $return[ $adat['tankorId'] ]['oraszam'][ $adat['szemeszter']-1 ] = $adat['oraszam'];
+ }
+ // a bontásokkal tárgytípusonként lekötött óraszám - elvileg típusonként azonos hetiOraszam szerepelhet csak, ezét a max() ezek egyikét adja vissza
+ $q = "select tankorId, tipus, szemeszter, max(bontasTankor.hetiOraszam) as hetiOraszam
+ from bontasTankor left join kepzesTargyBontas using (bontasId)
+ left join ".__INTEZMENYDBNEV.".kepzesOraterv using (kepzesOratervId)
+ where tankorId in (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ group by tankorId, tipus, szemeszter;";
+ $ret = db_query($q, array('fv'=>'getTankorTervezettOraszamok/bt','modul'=>'naplo','result'=>'indexed','values'=>$tankorIds));
+ foreach ($ret as $adat) {
+ $return[ $adat['tankorId'] ]['bontasOraszam'][ $adat['szemeszter']-1 ][] = array('tipus'=>$adat['tipus'],'hetiOraszam'=>$adat['hetiOraszam']);
+ }
+ return $return;
+ }
+
+ function getOratervenKivuliTankorIds() {
+
+ global $_TANEV;
+
+ $tankorTipusok = getTankorTipusok(array('óratervi'=>true));
+ $oraterviTipusIds = array_keys($tankorTipusok);
+ // óratervi tankörök lekérdezése
+ $qOratervi = "SELECT tankorId FROM ".__INTEZMENYDBNEV.".tankor WHERE tankorTipusId IN (".implode(',', array_fill(0, count($oraterviTipusIds), '%u')).")";
+ $v = $oraterviTipusIds;
+ // a bontásokkal tárgytípusonként lekötött óraszám - elvileg típusonként azonos hetiOraszam szerepelhet csak, ezét a max() ezek egyikét adja vissza
+ $subQ = "select tankorId, tipus, szemeszter, max(bontasTankor.hetiOraszam) as hetiOraszam
+ from bontasTankor left join kepzesTargyBontas using (bontasId)
+ left join ".__INTEZMENYDBNEV.".kepzesOraterv using (kepzesOratervId)
+ group by tankorId, tipus, szemeszter";
+ // bontés óraszámok összesítése
+ $tblQ = "select tankorId, szemeszter, sum(hetiOraszam) as bontasOraszam from (".$subQ.") as subQuery group by tankorId, szemeszter";
+ // bontás óraszámok és tankör óraszámok összevetése
+ $q = "select tankorId, tankorNev, sum(oraszam-bontasOraszam) as diff from ".__INTEZMENYDBNEV.".tankorSzemeszter
+ left join (".$tblQ.") as tankorBontasOraszam using (tankorId, szemeszter)
+ where tanev=".__TANEV." and (tankorBontasOraszam.tankorId is null or bontasOraszam<>oraszam)
+ and tankorId in (".$qOratervi.")
+ group by tankorId";
+ // , tankorNev -- sql_mode=only_full_group_by miatt került be a tankorNev...
+ $return = db_query($q, array('debug'=>false,'fv'=>'getOratervenKivuliTankorIds','modul'=>'naplo','result'=>'indexed','values'=>$v));
+
+ return $return;
+
+ }
+
+ function getTankorJelenletKotelezoE($tankorId) {
+ $q = "SELECT jelenlet FROM tankor LEFT JOIN tankorTipus USING (tankorTipusId) WHERE tankorId=%u";
+ $v = array($tankorId);
+ $r = db_query($q, array('fv' => 'getTankorJelenletKotelezoE', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+ return ($r == 'kötelező');
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/tankorBlokk.php b/mayor-orig/www/include/modules/naplo/share/tankorBlokk.php
new file mode 100644
index 00000000..04742e76
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/tankorBlokk.php
@@ -0,0 +1,83 @@
+<?php
+
+ // SUB tankor.php
+
+ function getTankorokByBlokkId($blokkIds, $tanev = __TANEV) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ if (!is_array($blokkIds)) $blokkIds = array($blokkIds);
+
+ $q = "SELECT DISTINCT tankorId FROM `%s`.tankorBlokk WHERE blokkId IN (".implode(',', array_fill(0, count($blokkIds), '%u')).")";
+ array_unshift($blokkIds, $tanevDb);
+ return db_query($q, array('fv' => 'getTankorBlokkByTankorId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $blokkIds));
+
+ }
+
+ function getTankorBlokkByTankorId($tankorIds, $tanev = __TANEV, $SET= array('blokkNevekkel'=>FALSE)) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ if (!is_array($tankorIds)) $tankorIds = array($tankorIds);
+
+ if ($SET['blokkNevekkel']===true) {
+ $q = "SELECT blokkId,blokkNev FROM `%s`.tankorBlokk LEFT JOIN `%s`.blokk USING (blokkId) WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") GROUP BY blokkId";
+ array_unshift($tankorIds, $tanevDb, $tanevDb);
+ return db_query($q, array('fv' => 'getTankorBlokkByTankorId', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $tankorIds));
+ } else {
+ $q = "SELECT DISTINCT blokkId FROM `%s`.tankorBlokk WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ array_unshift($tankorIds, $tanevDb);
+ return db_query($q, array('fv' => 'getTankorBlokkByTankorId', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $tankorIds));
+ }
+ }
+
+
+ function getTankorBlokkok($tanev = __TANEV) {
+
+ $RET = array();
+
+ $v = array(tanevDbNev(__INTEZMENY, $tanev)); /* Lehet hogy még nincs megnyitva a tanév, nincs is ilyen adatbázis... */
+ /* Létezik az adatbázis? */
+ $q = "SELECT count(*) AS db FROM Information_schema.tables WHERE table_schema = '".$v[0]."'";
+ $r = db_query($q, array('modul'=>'naplo', 'result'=>'value'), $lr);
+ if ($r==0) return false;
+ /* --- */
+
+ $TA = getTanevAdat($tanev);
+ // if ($TA['statusz']!='aktív') return false; // Ez miért kellene? Lekérdezni lehessen lezárt tanév blokkjait is...
+
+ $lr = db_connect('naplo_intezmeny');
+
+ $q = "SELECT * FROM `%s`.blokk ORDER BY blokkNev";
+ $r = db_query($q, array('fv' => 'getTankorBlokkok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $lr);
+
+ $BID2ORASZAM = $BID2NEV = array();
+ for ($i = 0; $i < count($r); $i++) {
+ $_bId = $r[$i]['blokkId'];
+ $BID2NEV[$_bId] = $r[$i]['blokkNev'];
+ $BID2ORASZAM[$_bId] = $r[$i]['exportOraszam'];
+ }
+ $q = "SELECT * FROM `%s`.tankorBlokk";
+ $r = db_query($q, array('fv' => 'getTankorBlokkok', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v ), $lr);
+ if ($r !== false) {
+ for ($i = 0; $i < count($r); $i++) {
+ $RET['idk'][$r[$i]['blokkId']][] = $r[$i]['tankorId'];
+ }
+ $RET['blokkNevek'] = $BID2NEV;
+ $RET['exportOraszam'] = $BID2ORASZAM;
+ }
+ if (is_array($RET['blokkNevek']))
+ foreach ($RET['blokkNevek'] as $bId => $bNev) {
+ if (is_array($RET['idk'][$bId])) { // Ha netán olyan blokk, aminek nincs tanköre...
+ $q = "SELECT MIN(oraszam) FROM tankorSzemeszter WHERE tanev = %u AND tankorId IN (".implode(',', array_fill(0, count($RET['idk'][$bId]), '%u')).")";
+ $v = mayor_array_join(array($tanev), $RET['idk'][$bId]);
+ $RET['maxOraszam'][$bId] = db_query($q, array(
+ 'fv' => 'getTankorBlokkok', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v
+ ), $lr);
+ }
+ }
+
+ db_close($lr);
+ return $RET;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/tankorDiakModifier.php b/mayor-orig/www/include/modules/naplo/share/tankorDiakModifier.php
new file mode 100644
index 00000000..7f699aea
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/tankorDiakModifier.php
@@ -0,0 +1,518 @@
+<?php
+
+ // share függőség:
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+
+ /* Általános függvények a tankörbe be és kivételhez */
+
+ function tankorDiakFelvesz($ADAT) {
+
+
+ $tankorId = $ADAT['tankorId'];
+ $diakId = $ADAT['diakId'];
+ $tolDt = $ADAT['tolDt'];
+ $igDt = $ADAT['igDt'];
+ $jovahagyva = ($ADAT['jovahagyva']=='') ? 0:1;
+
+ $TankorIds = getTankorCsoportTankoreiByTankorId($ADAT['tankorId']);
+ $TankorAdat = getTankorAdatByIds($TankorIds, array('dt' => $tolDt));
+
+ // Blokkba való tartozás
+ $Tanevek = getTanevekByDtInterval($tolDt,$igDt);
+ for ($i=0; $i<count($Tanevek); $i++) {
+ $BlokkTankorIds = getTankorBlokkok($Tanevek[$i]);
+ if ( is_array($BlokkTankorIds['idk']) ) {
+ foreach ($BlokkTankorIds['idk'] as $bId=>$BTID) {
+ // Ellenőrzés megadott időintervallumban vizsgálva:
+ // Tagja-e a diák az adott intervallumban a blokk tanköreinek?
+ if ( in_array($tankorId,$BTID) ) {
+ $q = "SELECT tankorId FROM ".__INTEZMENYDBNEV.".tankorDiak
+ WHERE tankorId IN (".implode(',', array_fill(0, count($BTID), '%u')).")
+ AND diakId=%u
+ AND beDt <= '%s' AND (kiDt IS NULL OR kiDt >= '%s')";
+ $v = mayor_array_join($BTID, array($diakId, $tolDt, $tolDt));
+ $UTKOZO_TANKORIDS = db_query($q, array('fv' => 'tankorDiakFelvesz', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+ if (count($UTKOZO_TANKORIDS)>0) {
+ $q = "SELECT tankorId FROM tankorDiakFelmentes WHERE tankorId IN (".implode(',',$UTKOZO_TANKORIDS).") AND diakId=%u AND felmentesTipus='óralátogatás alól' AND nap is null AND ora is null AND
+ beDt<='%s' AND (kiDt IS NULL or kiDt >='%s')";
+ $values = array($diakId, $tolDt, $tolDt);
+ $FELMENTETTTANKORIDS = db_query($q, array('fv' => 'tankorDiakFelvesz', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $values));
+ for ($j=0; $j<count($FELMENTETTTANKORIDS); $j++) {
+ $_tankorId = $FELMENTETTTANKORIDS[$j];
+ }
+ if (count(array_diff(array_values($UTKOZO_TANKORIDS),array_values($FELMENTETTTANKORIDS))) === 0) {
+ // OK
+ } else {
+ $_SESSION['alert'][] = '::Sikertelen. Tankörblokk ütközés!:blokkid('.$bId.')';
+ return false;
+ }
+ }
+ }
+ }
+ }
+ }
+ //---
+
+ // Ellenőrizzük a tankörlétszámot és maximumot (csak ref dátumra...)
+ if (_checkTankorMinMax($tankorId,array('diff'=>1,'refDt'=>$ADAT['tolDt'])) == 'tankor_max_reached')
+ {
+ $_SESSION['alert'][] = 'info:tankor_max_reached';
+ return false;
+ }
+ //--
+
+ // Main()
+ {
+ tankorDiakTorol( array('tankorIds'=>$TankorIds, 'diakId'=> $diakId, 'tolDt'=> $tolDt,'igDt'=> $igDt, 'utkozes'=>'nemEllenoriz', 'MIN_CONTROL'=>false) );
+
+ $v = array();
+ for ($i = 0; $i < count($TankorIds); $i++) {
+ $_tankorId = $TankorIds[$i];
+ //$_kovetelmeny = $TankorAdat[$_tankorId]['kovetelmeny']; // vagy nem ez. diák statusatol is függ...
+ //$_jelenlet = $TankorAdat[$_tankorId]['jelenlet']; // MIÉRT EZ???????????????????????????????????????????????????
+ //$_jelenlet = "kötelező";
+ //array_push($v, $_tankorId, $diakId, $tolDt, $igDt, $_jelenlet, $_kovetelmeny, $jovahagyva);
+ //$V[] = "(%u, %u, '%s', NULLIF('%s',''), '%s', '%s', %u)";
+ array_push($v, $_tankorId, $diakId, $tolDt, $igDt);
+ $V[] = "(%u, %u, '%s', NULLIF('%s',''))";
+ }
+ $q = "INSERT INTO tankorDiak (tankorId,diakId,beDt,kiDt) VALUES ". implode(',',$V);
+ db_query($q, array('fv' => 'tankorDiakFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v) );
+ }
+
+ }
+
+ function diakTankorMagantanulo($diakId, $tolDt, $igDt = NULL, $utkozes = 'ellenorzes', $tanev = __TANEV) {
+
+ die('FATAL ERROR in tankorDiakModifier.php -- diakTankorMagantanulo() -- OOOpps!');
+
+ }
+
+ function tankorDiakModify($ADAT) {
+ /*
+ $ADAT = array(
+ tankorId - a módosítandó tankor
+ tolDt, igDt - A módosítás hatálya
+ diaktorol - torlendő diákok id-i
+ diakok - Az érintett diákok id-i
+ {OBSOLETE}DJ* - egy adott diák 'jelenlét' attribútuma (* a diakId)
+ {OBSOLETE}DK* - egy adott diák 'követelmény' attribútuma (* a diakId)
+ {OBSOLETE}DOK[diakId] - egy adott diák 'jovahagyva' attribútuma - ha nincs megadva akkor $ADAT['jovahagyva'] érvényes
+ {OBSOLETE}jovahagyva - a diákok 'jovahagyva' attribútumának alapértelmezése
+ utkozes - ha igaz akkor 'torles', ha hamis akkor 'ellenorzes'
+ )
+ */
+
+ $tankorId = $ADAT['tankorId'];
+ $alapIgDt = $ADAT['igDt'];
+ $tolDt = $ADAT['tolDt'];
+ $jovahagyva = ($ADAT['jovahagyva']=='') ? 0:1;
+
+ if ($alapIgDt!='' && strtotime($tolDt)>strtotime($alapIgDt)) {
+ $_SESSION['alert'][] = 'info::hibasdatum';
+ return false;
+ }
+ // Kik lettek törlésre jelölve - ez az "erősebb"
+ for($i = 0; $i < count($ADAT['diaktorol']); $i++) $TORLENDOK[$ADAT['diaktorol'][$i]] = true;
+ // diákonként végezzük a módosításokat
+ for($i = 0; $i < count($ADAT['diakok']); $i++) {
+
+ $diakId = $ADAT['diakok'][$i];
+ //{OBSOLETE}$jelenlet = $ADAT['DJ'.$diakId];
+ //{OBSOLETE}$kovetelmeny = $ADAT['DK'.$diakId]; // ezt már nem használjuk
+ //{OBSOLETE$jovahagyva = ($ADAT['DOK'.$diakId]!='') ? $ADAT['DOK'.$diakId]:$jovahagyva;
+ $igDt = $alapIgDt;
+
+ $utkozes = ((bool)$ADAT['utkozes']) ? 'torles':'ellenorzes';
+
+ if ($TORLENDOK[$diakId]) {
+ //tankorDiakTorol( array('tankorId' => $tankorId, 'diakId' => $diakId, 'tolDt' => $tolDt, 'igDt' => $igDt, 'jovahagyva'=>$jovahagyva, 'utkozes' => $utkozes ));
+ tankorDiakTorol( array('tankorId' => $tankorId, 'diakId' => $diakId, 'tolDt' => $tolDt, 'igDt' => $igDt, 'utkozes' => $utkozes ));
+ } else {
+ // A tankörcsoportok miatt módosítani csak az aktuális intervallumon belül - tehát az első szakadásig - lehet!
+ $q = "SELECT beDt, kiDt, kiDt + INTERVAL 1 DAY AS kovDt FROM tankorDiak WHERE diakId=%u AND tankorId=%u
+ AND ('%s'<=kiDt OR kiDt IS NULL)";
+ $v = array($diakId, $tankorId, $tolDt);
+ if ($igDt != '') {
+ $q .= " AND beDt<='%s' ORDER BY beDt,kiDt";
+ array_push($v, $igDt);
+ }
+ $ret = db_query($q, array('fv' => 'tankorDiakModify', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ for ($j = 0; (($j < count($ret)-1) && ($ret[$j]['kovDt'] == $ret[$j+1]['beDt'])); $j++);
+ if (
+ $ret[$j]['kiDt'] != ''
+ && ($igDt == '' || strtotime($ret[$j]['kiDt']) < strtotime($igDt))
+ ) $igDt = $ret[$j]['kiDt'];
+
+ // lekérdezzük, hogy módosul-e a <del>jelenlét/követelmény</del><ins>oralatogatasAlol, erdemjegyet</ins> paraméter
+ /* ERRE NINCS SZÜKSÉG!
+ $q = "SELECT COUNT(*) FROM tankorDiak WHERE diakId=%u AND tankorId=%u AND (kiDt>='%s' OR kiDt IS NULL) AND (oralatogatasAlol!='%s' OR erdemjegyet!='%s')";
+ $v = array($diakId, $tankorId, $tolDt, $oralatogatasAlol, $erdemjegyet);
+ if ($igDt != '') {
+ $q .= " AND beDt<='$igDt'";
+ array_push($v, $igDt);
+ }
+ $db = db_query($q, array('fv' => 'tankorDiakModify', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v));
+
+ if ($db > 0) {
+ if (// nem töröljük a tankörcsoport összes tanköréből, csak az adott tankörből!!
+ tankorDiakTorol(
+ array(
+ 'tankorId' => $tankorId, 'diakId' => $diakId, 'tolDt' => $tolDt, 'igDt' => $igDt,
+ 'tankorIds' => array($tankorId), 'utkozes' => $utkozes
+ )
+ )
+ ) {
+ $q = "INSERT INTO tankorDiak (diakId,tankorId,beDt,kiDt,erdemjegyet,oralatogatasAlol)
+ VALUES (%u, %u, '%s', NULLIF('%s', ''), '%s', '%s')";
+ $v = array($diakId, $tankorId, $tolDt, $igDt, $erdemjegyet, $oralatogatasAlol);
+
+ db_query($q, array('fv' => 'tankorDiakModify', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+ } // $db>0
+ */
+ }
+ }
+ }
+
+
+ function tankorDiakTorol($ADAT, $olr = '') {
+
+ /*
+ [TOL-IG] töröl zárt szigorú
+ Paraméterek:
+ diakId
+ utkozes - torles, ellenorzes, nemEllenoriz
+ tankorId
+ tankorIds
+ MIN_CONTROL - true/false
+ tolDt, igDt
+ */
+
+
+ // esetleges külső tranzakciókhoz!
+ $lr = ($olr != '') ? $olr : db_connect('naplo_intezmeny');
+ // A törlendő időszakra beírt hiányzás, vagy jegy okozhat ütközést. Ekkor vagy automatikusan töröljük a hibás bejegyzéseket,
+ // vagy hibajelzést adunk, vagy nem foglalkozunk az esetleges ütközésekkel
+ // (ez státuszmódosításkor lehet, mikor a törlés után rögtön vissza is írjuk a tagságot)
+ if (!in_array($ADAT['utkozes'], array('torles','ellenorzes','nemEllenoriz'))) $ADAT['utkozes'] = 'ellenorzes';
+
+ // Valódi törlésnél a tankörcsoport összes tagjából törölni kell, de pl. a tagság típusának módosításakor csak az érintett tankörből töröljük
+ // illetve, ha már valamiért lekérdeztük az érintett tanköröket, akkor át lehessen adni.
+ if (is_array($ADAT['tankorIds']) && count($ADAT['tankorIds']) > 0) $TANKORIDS = $ADAT['tankorIds'];
+ elseif (isset($ADAT['tankorId']) && $ADAT['tankorId'] != '') $TANKORIDS = getTankorCsoportTankoreiByTankorId($ADAT['tankorId'], $lr);
+ else {
+ $_SESSION['alert'][] = 'message:wrong_data:tankorDiakTorol:nincs tankör megadva:'.$ADAT['diakId'];
+ return false;
+ }
+
+ // Ellenőrizzük a minimum és maximum létszámokat, ha kell
+ // Figyelem! pl. Előtárgyjelentkezési időszakban pl tilos vizsgálni...
+ if ($ADAT['MIN_CONTROL']===true) {
+ //for ($i=0; $i<count($TANKORIDS); $i++) { // elég egyet vizsgálni, mert elvileg egyeznek
+ $_tankorId = $TANKORIDS[0];
+ if (_checkTankorMinMax($_tankorId,array('diff'=>(-1),'refDt'=>$ADAT['tolDt'])) == 'tankor_min_reached') {
+ $_SESSION['alert'][] = 'info:tankor_min_reached';
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+ //}
+ }
+ // --
+ $TH = $TJ = array();
+ $HSUM = $JSUM = array();
+ // A tol-ig dátumok által érintett aktív tanévek lekérdezése
+ $aktivTanevek = getTanevekByDtInterval($ADAT['tolDt'], $ADAT['igDt'], array('aktív')); // hiányzó link resource
+ if ($ADAT['utkozes'] != 'nemEllenoriz') {
+ // Az érintett tanéveken végigmenve
+ foreach ($aktivTanevek as $key => $tanev) {
+ for ($i = 0; $i < count($TANKORIDS); $i++) {
+ $_SET = array('diakId'=>$ADAT['diakId'], 'tankorIds'=>$TANKORIDS[$i], 'tanev'=>$tanev, 'tolDt'=>$ADAT['tolDt'], 'igDt'=>$ADAT['igDt']);
+ $H = tankorDiakHianyzasIdk2($_SET, $lr);
+ $J = tankorDiakJegyIdk($_SET, $lr);
+ if (count($H)>0) $TH[] = $TANKORIDS[$i];
+ if (count($J)>0) $TJ[] = $TANKORIDS[$i];
+ if (is_array($H)) $HSUM = array_merge($HSUM,$H); // $H lehet false is
+ if (is_array($J)) $JSUM = array_merge($JSUM,$J); // $J lehet false is
+ }
+ if (count($TH) > 0) $_SESSION['alert'][] = 'info:hibas_hianyzasok:'.count($HSUM).':tanev='.$tanev.':tankorIdk='.implode(',',$TH);
+ if (count($TJ) > 0) $_SESSION['alert'][] = 'info:hibas_jegyek:'.count($JSUM).':tanev='.$tanev.':tankorIdk='.implode(',',$TJ);
+
+ // Modosítás:
+ if ($ADAT['utkozes']=='torles') {
+ // hiányzások és jegyek törlése...
+ hianyzasTorles($HSUM, $tanev, $lr);
+ jegyTorles($JSUM, null, $tanev, $lr);
+ $TH = $TJ = array();
+ $HSUM = $JSUM = array();
+ }
+ }
+ }
+
+ if ( ((count($TH) == 0 && count($TJ) == 0)) || $ADAT['utkozes'] == 'torles' || $ADAT['utkozes'] == 'nemEllenoriz') {
+
+ logAction(
+ array(
+ 'szoveg'=>'diakKilep: '.$ADAT['diakId'].', '.$ADAT['tolDt'].', '.$ADAT['igDt'].', '.implode(',',$TANKORIDS),
+ 'table'=>'tankorDiak'
+ )
+ );
+
+ // A tol-ig közé esőket töröljük
+ $q = "DELETE FROM tankorDiak WHERE diakId=%u AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDS), '%u')).") AND '%s'<=beDt";
+ $v = mayor_array_join(array($ADAT['diakId']), $TANKORIDS, array($ADAT['tolDt']));
+ if ($ADAT['igDt']!='') {
+ $q.= " AND kiDt<='%s'";
+ array_push($v, $ADAT['igDt']);
+ }
+ $delResult = db_query($q, array('fv' => 'tankorDiakTorol', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr );
+
+ if ($ADAT['igDt'] != '') {
+ // a tol-ig intervallumot tartalmazókat ketté kell vágni, ezért a jobb oldali darabot felvesszük
+ $q = "INSERT INTO tankorDiak (tankorId,diakId,beDt,kiDt)
+ SELECT tankorId,diakId,'%s' + INTERVAL 1 DAY AS beDt,kiDt FROM tankorDiak
+ WHERE diakId=%u AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDS), '%u')).")
+ AND beDt<'%s' AND (kiDt IS NULL OR '%s'< kiDt)";
+ $v = mayor_array_join(array($ADAT['igDt'], $ADAT['diakId']), $TANKORIDS, array($ADAT['tolDt'], $ADAT['igDt']));
+ $insResult = db_query($q, array('fv' => 'tankorDiakTorol', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr );
+ }
+
+ // A balról benyúló intervallumokat levágjuk (az "átnyúlókat" is! Így kapjuk a baloldali darabot)
+ $q = "UPDATE tankorDiak SET kiDt = '%s' - INTERVAL 1 DAY WHERE diakId=%u
+ AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDS), '%u')).")
+ AND beDt<'%s' AND (kiDt IS NULL OR '%s'<=kiDt)";
+ $v = mayor_array_join(array($ADAT['tolDt'], $ADAT['diakId']), $TANKORIDS, array($ADAT['tolDt'], $ADAT['tolDt']));
+ $upResult1 = db_query($q, array('fv' => 'tankorDiakTorol', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+
+ if ($ADAT['igDt']!='') {
+ // A jobbról benyúló intervallumokat levágjuk ("átnyúló" darab már nincs!)
+ $q = "UPDATE tankorDiak SET beDt = '%s' + INTERVAL 1 DAY WHERE diakId=%u
+ AND tankorId IN (".implode(',', array_fill(0, count($TANKORIDS), '%u')).")
+ AND beDt<='%s' AND (kiDt IS NULL OR '%s'< kiDt) ";
+ $v = mayor_array_join(array($ADAT['igDt'], $ADAT['diakId']), $TANKORIDS, array($ADAT['igDt'], $ADAT['igDt']));
+ $upResult2 = db_query($q, array('fv' => 'tankorDiakTorol', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr );
+ }
+
+ if ($delResult===false || $upResult1 === false || $upResult2 === false || $insResult===false) {
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ if ($olr == '') db_close($lr);
+ return true;
+
+ } else {
+
+ if ($olr == '') db_close($lr);
+ return false;
+ }
+
+ }
+
+
+
+
+ function _checkTankorMinMax($tankorId,$ADAT=array('diff'=>1,'refDt'=>'')) {
+
+ $letszam = getTankorLetszam($tankorId, array('refDt'=>$ADAT['refDt']));
+ $TankorAdat = getTankorAdatByIds(array($tankorId), array('dt' => $ADAT['refDt']));
+ if ($ADAT['diff']>0) {
+ if (
+ $TankorAdat[$tankorId]['max']!=0 && /* Ez a feltétel problémás. A tankörjelentkezés UI-n ugyanis nem engedjük meg a
+ 0-0-s tankörökbe bejelentkezést. Ezzel elérhető hogy az időközben 0-0ra állított
+ limitű tankörbe bejelentkezhessenek. Holott ez unlimited-et jelent?
+ */
+ ($letszam+$ADAT['diff'])>$TankorAdat[$tankorId]['max']) {
+ $r = 'tankor_max_reached';
+ }
+ } elseif ($ADAT['diff']<0) {
+ if ($TankorAdat[$tankorId]['min']!=0 && ($letszam+$ADAT['diff'])<$TankorAdat[$tankorId]['min']) {
+ $r = 'tankor_min_reached';
+ }
+ } else {
+ $r = 'notChecked';
+ }
+ return ($r=='') ? false : $r;
+ }
+
+
+ /* Adott zárt intervallumra felvesz egy bizonyos típusú felmentést */
+ function tankorDiakFelmentesFelvesz($ADAT, $olr = '') {
+
+ /* [TOL-IG] töröl zárt szigorú */
+ $lr = ($olr != '') ? $olr : db_connect('naplo_intezmeny');
+ if ($olr=='') db_start_strans($lr);
+
+ $tankorId = $ADAT['tankorId'];
+ $diakId = $ADAT['diakId'];
+ $tolDt = $ADAT['tolDt'];
+ $igDt = $ADAT['igDt'];
+ $nap = $ADAT['nap'];
+ $ora = $ADAT['ora'];
+ $iktatoszam = $ADAT['iktatoszam'];
+ $felmentesTipus= $ADAT['felmentesTipus'];
+
+ if (!in_array($ADAT['utkozes'], array('torles','ellenorzes','nemEllenoriz'))) $ADAT['utkozes'] = 'ellenorzes';
+ // --
+ $TH = $TJ = array();
+ $HSUM = $JSUM = array();
+ // A tol-ig dátumok által érintett aktív tanévek lekérdezése
+ $aktivTanevek = getTanevekByDtInterval($ADAT['tolDt'], $ADAT['igDt'], array('aktív'));
+ if ($ADAT['utkozes'] != 'nemEllenoriz') {
+ // Az érintett tanéveken végigmenve
+ foreach ($aktivTanevek as $key => $tanev) {
+
+ if ($felmentesTipus=='óralátogatás alól') {
+ $H = tankorDiakHianyzasIdk($ADAT['diakId'], $tankorId, $tanev, $ADAT['tolDt'], $ADAT['igDt'], $nap, $ora);
+ } elseif ($felmentesTipus=='értékelés alól') {
+ $J = tankorDiakJegyIdk(array('diakId'=>$ADAT['diakId'], 'tankorIds'=>$tankorId, 'tanev'=>$tanev, 'tolDt'=>$ADAT['tolDt'], 'igDt'=>$ADAT['igDt']));
+ }
+
+ if (count($H)>0) $TH[] = $tankorId;
+ if (count($J)>0) $TJ[] = $tankorId;
+ if (is_array($H)) $HSUM = array_merge($HSUM,$H); // $H lehet false is
+ if (is_array($J)) $JSUM = array_merge($JSUM,$J); // $J lehet false is
+
+ if (count($TH) > 0) $_SESSION['alert'][] = 'info:hibas_hianyzasok:'.count($HSUM).':tanev='.$tanev.':tankorIdk='.implode(',',$TH);
+ if (count($TJ) > 0) $_SESSION['alert'][] = 'info:hibas_jegyek:'.count($JSUM).':tanev='.$tanev.':tankorIdk='.implode(',',$TJ);
+
+ // Modosítás:
+ if ($ADAT['utkozes']=='torles') {
+ // hiányzások és jegyek törlése...
+ hianyzasTorles($HSUM, $tanev, $lr);
+ jegyTorles($JSUM, null, $tanev, $lr);
+ $TH = $TJ = array();
+ $HSUM = $JSUM = array();
+ }
+ }
+ }
+
+ if ( ((count($TH) == 0 && count($TJ) == 0)) || $ADAT['utkozes'] == 'torles' || $ADAT['utkozes'] == 'nemEllenoriz') {
+
+ logAction(
+ array(
+ 'szoveg'=>'diakFelmentes: '.$ADAT['diakId'].', '.$ADAT['felmentesTipus'].', '.$ADAT['tolDt'].', '.$ADAT['igDt'].', '.$tankorId,
+ 'tabla'=>'tankorDiakFelmentes'
+ )
+ );
+ // A tol-ig közé esőket töröljük
+ $q = "DELETE FROM tankorDiakFelmentes WHERE diakId=%u AND tankorId=%u AND '%s'<=beDt AND felmentesTipus='%s'";
+ $v = array($diakId, $tankorId,$tolDt,$felmentesTipus);
+ if ($ADAT['igDt']!='') {
+ $q.= " AND kiDt<='%s'";
+ array_push($v, $ADAT['igDt']);
+ }
+ if ($ADAT['ora']!=='') {
+ $q .= " AND ora=%u ";
+ array_push($v, $ADAT['ora']);
+ }
+ if ($ADAT['nap']!='') {
+ $q .= " AND nap=%u ";
+ array_push($v, $ADAT['nap']);
+ }
+ $delResult = db_query($q, array('fv' => 'tankorDiakFelmentesFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr );
+
+ if ($ADAT['igDt'] != '') {
+ // a tol-ig intervallumot tartalmazókat ketté kell vágni, ezért a jobb oldali darabot felvesszük
+ $q = "INSERT INTO tankorDiakFelmentes (tankorId,diakId,beDt,kiDt,felmentesTipus,nap,ora,iktatoszam)
+ SELECT tankorId,diakId,'%s' + INTERVAL 1 DAY AS beDt,kiDt,felmentesTipus,nap,ora,iktatoszam FROM tankorDiakFelmentes
+ WHERE diakId=%u AND tankorId=%u
+ AND beDt<'%s' AND (kiDt IS NULL OR '%s'< kiDt) AND felmentesTipus='%s'";
+// $v = array_merge(array($ADAT['igDt'], $ADAT['diakId']), $TANKORIDS, array($ADAT['tolDt'], $ADAT['igDt']));
+ $v = array($igDt, $diakId, $tankorId, $tolDt, $igDt, $felmentesTipus);
+ $insResult = db_query($q, array('fv' => 'tankorDiakFelmentesFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr );
+ }
+
+ // A balról benyúló intervallumokat levágjuk (az "átnyúlókat" is! Így kapjuk a baloldali darabot)
+ $q = "UPDATE tankorDiakFelmentes SET kiDt = '%s' - INTERVAL 1 DAY WHERE diakId=%u
+ AND tankorId=%u
+ AND beDt<'%s' AND (kiDt IS NULL OR '%s'<=kiDt) AND felmentesTipus='%s'";
+ $v = array($tolDt,$diakId,$tankorId,$tolDt,$tolDt, $felmentesTipus);
+ if ($ADAT['ora']!=='') {$q .= " AND ora=%u ";array_push($v, $ADAT['ora']);}
+ $upResult1 = db_query($q, array('fv' => 'tankorDiakFelmentesFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+
+ if ($ADAT['igDt']!='') {
+ // A jobbról benyúló intervallumokat levágjuk ("átnyúló" darab már nincs!)
+ $q = "UPDATE tankorDiakFelmentes SET beDt = '%s' + INTERVAL 1 DAY WHERE diakId=%u
+ AND tankorId=%u
+ AND beDt<='%s' AND (kiDt IS NULL OR '%s'< kiDt) AND felmentesTipus='%s'";
+ $v = array($igDt,$diakId,$tankorId,$igDt,$igDt, $felmentesTipus);
+ if ($ADAT['ora']!=='') {$q .= " AND ora=%u ";array_push($v, $ADAT['ora']);}
+ $upResult2 = db_query($q, array('fv' => 'tankorDiakFelmentesFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr );
+ }
+
+ if ($nap=='' && ($ora==='' || is_null($ora))) {
+ $q = "INSERT INTO tankorDiakFelmentes (tankorId,diakId,beDt,kiDt,felmentesTipus,iktatoszam) VALUES (%u,%u,'%s','%s','%s','%s')";
+ $v = array($tankorId,$diakId,$tolDt,$igDt,$felmentesTipus,$iktatoszam);
+ } elseif ($nap=='' && $ora!=='') {
+ $q = "INSERT INTO tankorDiakFelmentes (tankorId,diakId,beDt,kiDt,felmentesTipus,ora,iktatoszam) VALUES (%u,%u,'%s','%s','%s',%u,'%s')";
+ $v = array($tankorId,$diakId,$tolDt,$igDt,$felmentesTipus,$ora,$iktatoszam);
+ } elseif ($nap!='' && ($ora==='' || is_null($ora))) {
+ $q = "INSERT INTO tankorDiakFelmentes (tankorId,diakId,beDt,kiDt,felmentesTipus,nap,iktatoszam) VALUES (%u,%u,'%s','%s','%s',%u,'%s')";
+ $v = array($tankorId,$diakId,$tolDt,$igDt,$felmentesTipus,$nap,$iktatoszam);
+ } else {
+ $q = "INSERT INTO tankorDiakFelmentes (tankorId,diakId,beDt,kiDt,felmentesTipus,nap,ora,iktatoszam) VALUES (%u,%u,'%s','%s','%s',%u,%u,'%s')";
+ $v = array($tankorId,$diakId,$tolDt,$igDt,$felmentesTipus,$nap,$ora,$iktatoszam);
+ }
+ $result = db_query($q, array('fv' => 'tankorDiakFelmentesFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v),$lr );
+
+ if ($delResult===false || $upResult1 === false || $upResult2 === false || $insResult===false || $result === false) {
+ if ($olr == '') {
+ db_rollback($lr);
+ db_close($lr);
+ }
+ return false;
+ }
+
+ if ($olr == '') {
+ db_commit($lr);
+ db_close($lr);
+ }
+ return true;
+
+ } else {
+
+ if ($olr == '') {
+ db_rollback($lr);
+ db_close($lr);
+ }
+ return false;
+ }
+
+ }
+
+
+ function tankorDiakFelmentesLezar($ADAT, $olr = '') {
+
+
+ if (!is_numeric($ADAT['tankorDiakFelmentesId'])) return false;
+
+ $lr = ($olr != '') ? $olr : db_connect('naplo_intezmeny');
+ if ($olr=='') db_start_strans($lr);
+
+ $q = "UPDATE tankorDiakFelmentes SET kiDt=('%s' - INTERVAL 1 DAY) WHERE tankorDiakFelmentesId=%u AND (kiDt>='%s' OR kiDt IS NULL)";
+ $v = array($ADAT['kiDt'],$ADAT['tankorDiakFelmentesId'],$ADAT['kiDt']); // ha nem nagyobb, akkor nem bővítjük!
+ $result = db_query($q, array('fv' => 'tankorDiakFelmentesLezar', 'modul' => 'naplo_intezmeny', 'values' => $v), $lr);
+
+
+ if ($result === false) {
+ if ($olr == '') {
+ db_rollback($lr);
+ db_close($lr);
+ }
+ return false;
+
+ } else {
+ if ($olr == '') {
+ db_commit($lr);
+ db_close($lr);
+ }
+ return true;
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/tankorModifier.php b/mayor-orig/www/include/modules/naplo/share/tankorModifier.php
new file mode 100644
index 00000000..a344ab7b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/tankorModifier.php
@@ -0,0 +1,498 @@
+<?php
+
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+
+ function setTankorNevByDiakok($tankorId, $tankorNevExtra = null, $olr = null) { // módosítja a tankorOsztaly hozzárendelést
+ if (!$olr) $lr = db_connect('naplo_intezmeny', array('fv' => 'ujTankor'));
+ else $lr = $olr;
+ $O = getTankorOsztalyaiByTanev($tankorId, __TANEV, array('tagokAlapjan'=>true,'result'=>'id'),$lr);
+ if (count($O)>0) {
+ $q = "DELETE FROM tankorOsztaly WHERE tankorId=%u AND osztalyId NOT IN (".implode(',',$O).")";
+ db_query($q, array('fv' => 'setTankorNevByDiakok', 'modul' => 'naplo_intezmeny', 'result'=>'delete','values' => array($tankorId)),$lr);
+ }
+ setTankorNev($tankorId,$tankorNevExtra,$olr);
+ if (!$olr) db_close($lr);
+
+ }
+ // 2012.09. Az adott tanévtől! átnevezi a tankört!
+ function setTankorNev($tankorId, $tankorNevExtra = null, $olr = null) { // a függvényt a tankor.php / ujTankor() függvényéből örököltük. "Majdnem" ugyanaz
+
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+
+ if (!$olr) $lr = db_connect('naplo_intezmeny', array('fv' => 'ujTankor'));
+ else $lr = $olr;
+
+ if (!$lr) return false;
+
+ // adatgyűjtés tankorId alapján
+ $q = "SELECT targyId FROM tankor WHERE tankorId=%u";
+ $targyId = db_query($q, array('fv' => 'genTankorNev', 'modul' => 'naplo_intezmeny', 'result'=>'value', 'values' => array($tankorId), 'debug'=>false), $lr);
+ $TARGYADAT = getTargyById($targyId,$lr);
+
+ $q = "SELECT osztalyId FROM tankorOsztaly WHERE tankorId=%u";
+ $ADAT['osztalyok'] = db_query($q, array('fv' => 'genTankorNev', 'modul' => 'naplo_intezmeny', 'result'=>'idonly', 'values' => array($tankorId), 'debug'=>false), $lr);
+
+ if (is_null($tankorNevExtra)) {
+ $q = "SELECT IF(tankorJel IS NOT NULL AND INSTR(tankorNev,tankorJel)!=0, trim(substring(trim(substring_index(tankorNev,targyNev,-1)),length(tankorJel)+1)), trim(substring_index(tankorNev,targyNev,-1))) AS tankorNevExtra FROM tankorSzemeszter LEFT JOIN tankor USING (tankorId) LEFT JOIN targy USING (targyId) LEFT JOIN tankorTipus USING (tankorTipusId) WHERE tankorId=%u AND tanev=%u ORDER BY tanev,szemeszter DESC LIMIT 1";
+ $tankorNevExtra = db_query($q, array('fv' => 'genTankorNev', 'modul' => 'naplo_intezmeny', 'result'=>'value', 'values' => array($tankorId,__TANEV), 'debug'=>false), $lr);
+ }
+
+ $q = "SELECT tankorJel FROM tankor LEFT JOIN tankorTipus USING (tankorTipusId) WHERE tankorId=%u";
+ $tankorJel = db_query($q, array('fv' => 'genTankorNev', 'modul' => 'naplo_intezmeny', 'result'=>'value', 'values' => array($tankorId), 'debug'=>false), $lr);
+
+ $q = "SELECT DISTINCT szemeszterId FROM tankorSzemeszter LEFT JOIN szemeszter USING (tanev,szemeszter) WHERE tankorId=%u";
+ $ADAT['szemeszterek'] = db_query($q, array('fv' => 'genTankorNev', 'modul' => 'naplo_intezmeny', 'result'=>'idonly', 'values' => array($tankorId), 'debug'=>false), $lr);
+
+ $q = "SELECT jelleg FROM tankor LEFT JOIN tankorTipus USING (tankorTipusId) WHERE tankorId=%u";
+ $tankorTipusJelleg = db_query($q, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'result'=>'value','values' => array($tankorId)),$lr);
+
+ // --
+ $kdt = '3000-01-01';
+ $vdt = '1970-01-01';
+
+ if (is_array($ADAT['szemeszterek']))
+ for ($j = 0; $j < count($ADAT['szemeszterek']); $j++) {
+ $nev = '';
+ $szemeszterId = $ADAT['szemeszterek'][$j];
+ $_SZ = getSzemeszterek(array('filter' => array("szemeszterId=$szemeszterId")));
+ if ($_SZ[0]['kezdesDt'] < $kdt) $kdt = $_SZ[0]['kezdesDt'];
+ if ($_SZ[0]['zarasDt'] > $vdt) $vdt = $_SZ[0]['zarasDt'];
+ $_tanev = $_SZ[0]['tanev'];
+ $_szemeszter = $_SZ[0]['szemeszter'];
+// $_oraszam = $ADAT['SZ'.$szemeszterId];
+ if ($tankorTipusJelleg=='osztályfüggetlen') {
+ $nev = "Isk.";
+ } else {
+ $OSZTALYOK = getOsztalyok($_tanev,null,$lr);
+ if ($OSZTALYOK !== false && is_array($OSZTALYOK) && is_array($ADAT['osztalyok'])) {
+ $nev = '';
+ $TMP = array();
+ for($i = 0; $i < count($OSZTALYOK); $i++) {
+ // Ha évenként változik az osztály jele, akkor jobb, ha nem generáljuk, hanem a lekérdezett adatokat használjuk!
+ // $_oj = genOsztalyJel($_tanev, $OSZTALYOK[$i]);
+ $_oj = $OSZTALYOK[$i]['osztalyJel'];
+ if ($_oj!==false && !is_null($_oj)) {
+ list($e,$o) = explode('.',$_oj);
+ if (in_array($OSZTALYOK[$i]['osztalyId'], $ADAT['osztalyok']))
+ $TMP[$e][]= $o;
+ }
+ }
+ if (count(array_keys($TMP)) == 1) { // évfolyamon belüli osztályok:
+ $nev = implode('||',array_keys($TMP));
+ $nev .= '.'.implode('',$TMP[$nev]);
+ } elseif (count((array_keys($TMP)))>1) { // multi évfolyam:
+ $K = (array_keys($TMP));
+ sort($K);
+ $nev = $K[0].'-'.$K[count($K)-1].'.';
+ } else { // ekkorra már elballagott minden osztaly...
+ $nev = false;
+ $_SESSION['alert'][] = 'info:nem módosítható ebben a tanévben ez a tankör:'.$tankorId.' '.$_tanev;
+ }
+ } else {
+ $nev = false; // adott szemeszterbe nem jár osztály
+ $_SESSION['alert'][] = 'info::Az adott szemeszterbe nem jár osztály:tankorId('.$tankorId.')';
+ }
+ }
+ if ($nev !== false) {
+ $nev .= ' '.$TARGYADAT['targyNev'].' ';
+ if ($tankorJel!='') $nev .= $tankorJel.' '.$tankorNevExtra;
+ else $nev .= $tankorNevExtra;
+ if ($_tanev >= __TANEV) {
+ $q = "UPDATE tankorSzemeszter SET tankorNev = '%s' WHERE tankorId=%u AND tanev=%u AND szemeszter=%u";
+ $v = array($nev,$tankorId,$_tanev,$_szemeszter);
+ if ($nev!='') db_query($q, array('fv' => 'setTankorNev', 'modul' => 'naplo_intezmeny', 'values' => $v, 'debug'=>false), $lr);
+ } else {
+ // a neve már ne változzon, és az óraszáma?
+/* $q1 = "SELECT tankorNev FROM tankorSzemeszter WHERE tankorId=%u AND tanev=%u AND szemeszter=%u";
+ $orignev = db_query($q1, array('fv' => 'ujTankor', 'modul' => 'naplo_intezmeny', 'values' => array($tankorId,$_tanev,$_szemeszter), 'debug'=>false), $lr);
+ if ($orignev!='') $nev = $orignev;
+*/
+ }
+ }
+
+ }
+ if (!$olr) db_close($lr);
+ return $nev;
+
+ }
+
+ function tankorTanarModosit($tankorId, $tanarId, $SET = array('tanev'=>'','tanevAdat'=>'', 'tolDt'=>'', 'igDt'=>'')) {
+ global $_TANEV;
+ $tanev = ($SET['tanev']!='') ? $SET['tanev'] : _TANEV;
+ $tanevAdat = (is_array($SET['tanevAdat'])) ? $SET['tanevAdat'] : (($SET['tanev']=='') ? $_TANEV : getTanevAdat($tanev));
+ $tolDt = ($SET['tolDt']!='') ? $SET['tolDt'] : $tanevAdat['kezdesDt'];
+ $igDt = ($SET['igDt']!='') ? $SET['igDt'] : $tanevAdat['zarasDt'];
+ if (strtotime($tolDt)>strtotime($igDt)) $_SESSION['alert'][] = 'error:wrong_data:hibás intervallum ('.$tanev.', '.$tolDt.'-'.$igDt.')';
+
+ if (!is_numeric($tankorId)) return false;
+ $tankorIds = array($tankorId); // kompatibilitási okokból
+ $tankorTanarIds[$tankorId] = array($tanarId); // kompatibilitási okokból
+ $D = array();
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'tankorTanarModosit'));
+ db_start_trans($lr);
+
+ // Az intervallumban érintett tankör-tanár tagságok lekérdezése...
+ $v = array($tankorId, $igDt, $tolDt, $tanarId); // +tanarId, a többi tanár nem érdekes
+ $q = "SELECT tanarId, tankorId, min(bedt) AS mbe ,max(kidt) AS mki
+ FROM ".__INTEZMENYDBNEV.".tankorTanar WHERE tankorId = %u
+ AND bedt<='%s' AND kidt>='%s' AND tanarId=%u GROUP BY tankorId,tanarId";
+ $ret = db_query($q, array('fv' => 'tankorTanarModosit', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+ for ($i = 0; $i < count($ret); $i++) {
+ if ($tolDt < $ret[$i]['mbe']) $ret[$i]['mbe'] = $tolDt;
+ if ($igDt > $ret[$i]['mki']) $ret[$i]['mki'] = $igDt;
+ $D[ $ret[$i]['tankorId'] ][ $ret[$i]['tanarId'] ] = array('mbe' => $ret[$i]['mbe'], 'mki' => $ret[$i]['mki'], 'torlendo' => true);
+ }
+
+ // Az érintett intervallumba eső tankör-tanár tagságok törlése
+ //$q = "DELETE FROM ".__INTEZMENYDBNEV.".tankorTanar WHERE tankorId = %u AND bedt<='%s' AND kidt>='%s'";
+ $q = "DELETE FROM ".__INTEZMENYDBNEV.".tankorTanar WHERE tankorId = %u AND bedt<='%s' AND kidt>='%s' AND tanarId=%u";
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+
+ // beszúrandó
+// for ($i = 0; $i < count($tankorIds); $i++) {
+// $tankorId = $tankorIds[$i];
+// $tanarIds = $tankorTanarIds[$tankorId];
+// for ($j = 0; $j < count($tanarIds); $j++) {
+// $tanarId = $tanarIds[$j];
+ if ($tanarId != '') {
+ $D[$tankorId][$tanarId]['torlendo'] = false;
+ if (($beDt = $D[$tankorId][$tanarId]['mbe']) == '') $beDt = $tolDt;
+ if (($kiDt = $D[$tankorId][$tanarId]['mki']) == '') $kiDt = $igDt;
+ $q = "INSERT INTO ".__INTEZMENYDBNEV.".tankorTanar (tankorId,tanarId,beDt,kiDt) VALUES (%u, %u, '%s', '%s')";
+ $v = array($tankorId, $tanarId, $beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+// }
+// }
+
+ // törlendők felvétele
+// for ($i = 0; $i < count($tankorIds); $i++) {
+// $tankorId = $tankorIds[$i];
+ if (is_array($D[$tankorId]))
+ foreach($D[$tankorId] as $tanarId => $T) {
+ if ($T['torlendo']) {
+ if ($T['mbe'] < $tolDt) {
+ $beDt = $T['mbe'];
+ $kiDt = date('Y-m-d', strtotime('-1 days',strtotime($tolDt)));
+ $q = "INSERT INTO ".__INTEZMENYDBNEV.".tankorTanar (tankorId,tanarId,beDt,kiDt) VALUES (%u, %u, '%s', '%s')";
+ $v = array($tankorId, $tanarId, $beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+ if ($T['mki'] > $igDt) {
+ $kiDt = $T['mki'];
+ $beDt = date('Y-m-d', strtotime('+1 days',strtotime($igDt)));
+ $q = "INSERT INTO ".__INTEZMENYDBNEV.".tankorTanar (tankorId,tanarId,beDt,kiDt) VALUES (%u, %u, '%s','%s')";
+ $v = array($tankorId, $tanarId, $beDt, $kiDt);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+ }
+ }
+// }
+
+ // tankörblokkok ellenőrzése - csak nem tervezett tanévben
+ // Érintett blokkok lekérdezése
+ if ($tanevAdat['statusz'] != 'tervezett') {
+ $blokkIds = getTankorBlokkByTankorId($tankorIds, $tanevAdat['tanev']);
+ if (is_array($blokkIds)) foreach ($blokkIds as $index => $blokkId) {
+ // A blokk tankörei
+ $bTankorIds = getTankorokByBlokkId($blokkId, $tanevAdat['tanev']);
+
+ // Ellenőrizzük a tankör tanárokat - azonosak-e tankörönként
+ $q = "SELECT tanarId,COUNT(DISTINCT tankorId) AS c FROM ".__INTEZMENYDBNEV.".tankorTanar
+ WHERE tankorId IN (".implode(',', array_fill(0, count($bTankorIds), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR '%s' <= kiDt)
+ GROUP BY tanarId HAVING c>1
+ ORDER BY tankorId,tanarId";
+ $v = mayor_array_join($bTankorIds, array($igDt, $tolDt));
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz/BlokkEllenőrzés', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $lr);
+ if (is_array($r) && count($r) > 0) {
+ db_rollback($lr, 'Ütköző tanárt találtam egy blokkban ('.$blokkId.')! Visszaállítjuk az eredeti állapotot!');
+ db_close($lr);
+ return false;
+ }
+ }
+ }
+ /* ========================================================
+ Órarend módosítása
+ ======================================================== */
+
+
+ if ($tanevAdat['statusz'] == 'aktív') {
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanevAdat['tanev']);
+
+ // ÓrarendiOraTankor bejegyzés ellenőrzés/készítés
+ $V = $v2 = array();
+ foreach ($tankorIds as $i => $tankorId) {
+ if ($tankorTanarIds[$tankorId][0] != '') { // Ha akarunk egyáltalán tanárt hozzárendelni
+ // van-e már az igényeinknek megfelelő bejegyzés
+ $q = "SELECT * FROM `%s`.orarendiOraTankor WHERE tankorId=%u
+ AND tanarId IN (".implode(',', array_fill(0, count($tankorTanarIds[$tankorId]), '%u')).") LIMIT 1";
+ $v = mayor_array_join(array($tanevDbNev, $tankorId), $tankorTanarIds[$tankorId]);
+ $ret = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+
+ if (count($ret) != 0) { // ha van, akkor az elsőt használjuk
+ $OOT[$tankorId] = $ret[0];
+ } else { // ha nincs, akkor generálunk egy jót
+ $OOT[$tankorId] = array(
+ 'tanarId' => $tankorTanarIds[$tankorId][0],
+ 'osztalyJel' => 'NaN',
+ 'targyJel' => $tankorId.'-'.$tankorTanarIds[$tankorId][0],
+ 'tankorId' => $tankorId
+ );
+ $V[] = "(%u, 'NaN', '%s', %u)";
+ array_push($v2, $tankorTanarIds[$tankorId][0], $tankorId.'-'.$tankorTanarIds[$tankorId][0], $tankorId);
+ }
+ }
+ }
+ if (count($V) > 0) { // Az új bejegyzéseket felvesszük
+ $q = "INSERT INTO `%s`.orarendiOraTankor (tanarId,osztalyJel,targyJel,tankorId) VALUES ".implode(',', $V);
+ array_unshift($v2, $tanevDbNev);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v2, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+
+ }
+
+ // Az érintett órarendi bejegyzések lekérdezése beDt szerint rendezve
+ $q = "SELECT tolDt,igDt,het,nap,ora,tankorId,tanarId,osztalyJel,targyJel,teremId
+ FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE tolDt <= '%s' AND (igDt >= '%s' OR igDt IS NULL)
+ AND tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ ORDER BY tankorId,tolDt";
+ $v = mayor_array_join(array($tanevDbNev, $tanevDbNev, $igDt, $tolDt), $tankorIds);
+ $ret = db_query($q, array(
+ 'fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'tankorId', 'values' => $v, 'rollback' => true
+ ), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+
+ foreach ($ret as $tankorId => $tankorOrarendiBejegyzesek) {
+
+ // Ha van orarendiOra bejegyzés és nem akarunk tanárt hozzárendelni - az hiba!!
+ if (!is_array($OOT[$tankorId])) {
+ db_rollback($lr, 'Létező órarendi óra esetén a tanár nem törölhető:'.$tankorId); db_close($lr); return false;
+ };
+
+ $tanarId = $OOT[$tankorId]['tanarId'];
+ $osztalyJel = $OOT[$tankorId]['osztalyJel'];
+ $targyJel = $OOT[$tankorId]['targyJel'];
+
+ foreach ($tankorOrarendiBejegyzesek as $i => $TOB) {
+ if ($TOB['teremId'] == '') {
+ $TOB['teremId'] = 'NULL';
+ $valueStr = "(%u, %u, %u, %u, '%s', '%s', %s, '%s', '%s')";
+ } else {
+ $valueStr = "(%u, %u, %u, %u, '%s', '%s', %u, '%s', '%s')";
+ }
+ if ($TOB['tolDt'] < $tolDt) { // balról túlnyúlik - kettévágjuk
+ $q = "UPDATE `%s`.orarendiOra SET igDt='%s' - INTERVAL 1 DAY
+ WHERE tolDt='%s' AND tanarId=%u
+ AND het=%u AND nap=%u AND ora=%u";
+ $v = array($tanevDbNev, $tolDt, $TOB['tolDt'], $TOB['tanarId'], $TOB['het'], $TOB['nap'], $TOB['ora']);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ $q = "INSERT INTO `%s`.orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt) VALUES $valueStr";
+ $v = array(
+ $tanevDbNev, $TOB['het'], $TOB['nap'], $TOB['ora'], $TOB['tanarId'], $TOB['osztalyJel'],
+ $TOB['targyJel'], $TOB['teremId'], $tolDt, $TOB['igDt']
+ );
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ $TOB['tolDt'] = $tolDt; // Az intervallumot lefedő bejegyzések miatt - három fele fogjuk vágni
+ }
+ if ($igDt < $TOB['igDt']) { // jobbról túlnyúlik - kettévágjuk !! igDt nem lehet NULL !!
+ $q = "UPDATE `%s`.orarendiOra SET tolDt='%s' + INTERVAL 1 DAY
+ WHERE igDt='%s' AND tanarId=%u AND het=%u AND nap=%u AND ora=%u";
+ $v = array($tanevDbNev, $igDt, $TOB['igDt'], $TOB['tanarId'], $TOB['het'], $TOB['nap'], $TOB['ora']);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ $q = "INSERT INTO `%s`.orarendiOra (het,nap,ora,tanarId,osztalyJel,targyJel,teremId,tolDt,igDt) VALUES $valueStr";
+ $v = array(
+ $tanevDbNev, $TOB['het'], $TOB['nap'], $TOB['ora'], $TOB['tanarId'], $TOB['osztalyJel'],
+ $TOB['targyJel'], $TOB['teremId'], $TOB['tolDt'], $igDt
+ );
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+
+ }
+ // A közbensőkben tanárt váltunk
+ if ($tanarId != $TOB['tanarId']) {
+ $q = "UPDATE `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ SET tanarId=%u, osztalyJel='%s', targyJel='%s'
+ WHERE '%s'<=tolDt AND igDt<='%s' AND tanarId=%u AND het=%u AND nap=%u AND ora=%u AND tankorId=%u";
+ $v = array($tanevDbNev, $tanevDbNev, $tanarId, $osztalyJel, $targyJel, $tolDt, $igDt, $TOB['tanarId'], $TOB['het'], $TOB['nap'], $TOB['ora'], $tankorId);
+ $r = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ }
+
+ }
+
+ } // foreach
+
+ // A módosított órarend ütközésellenőrzése - [k] munkatervenként külön. Itt most megengedjük, hogy ha több munkaterv is van, de egyszerre van órája a tanárnak... :/
+// $q = "SELECT tanarId, dt, ora, COUNT(*) AS db
+// FROM `%s`.nap LEFT JOIN `%s`.orarendiOra
+// ON (((DAYOFWEEK(dt)+5) MOD 7)+1 = orarendiOra.nap)
+// AND orarendiOra.het=nap.orarendiHet
+// AND orarendiOra.tolDt<=dt AND orarendiOra.igDt>=dt
+// WHERE '%s' <= dt AND dt <= '%s'
+// GROUP BY munkatervId,tanarId, dt, ora
+// HAVING db > 1";
+ // [bb] szerintem ez a jó: a hét-nap-óra-tanár-tolDt kulcs az orarendiOra táblában, így ha két sorban ezek megegyeznek, akkor nem kell külön számolni...
+ $q = "SELECT tanarId, dt, ora, COUNT(DISTINCT het, nap, ora, tanarId, tolDt) AS db
+ FROM `%s`.nap LEFT JOIN `%s`.orarendiOra
+ ON (((DAYOFWEEK(dt)+5) MOD 7)+1 = orarendiOra.nap)
+ AND orarendiOra.het=nap.orarendiHet
+ AND orarendiOra.tolDt<=dt AND orarendiOra.igDt>=dt
+ WHERE '%s' <= dt AND dt <= '%s'
+ GROUP BY tanarId, dt, ora
+ HAVING db > 1";
+ $v = array($tanevDbNev, $tanevDbNev, $tolDt, $igDt);
+ $ret = db_query($q, array('fv' => 'tankorTanarFelvesz', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v, 'rollback' => true), $lr);
+ if ($ret === false) { db_close($lr); return false; }
+
+ if (count($ret)) { // Van ütközés!
+ db_rollback($lr, 'Az összes ütközést ellenőriztem, és a megadott '.$tolDt.'-'.$igDt.' intervallumban egy (esetleg másik) tanárnak több órája van egy időben - így visszaállítjuk az eredeti állapotot...');
+ db_close($lr);
+ return false;
+ }
+
+ } // aktív tanév
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+ function tankorTanarTorol($tankorId, $tanarId, $SET = array('tanev'=>'','tanevAdat'=>'', 'tolDt'=>'', 'igDt'=>'')) { // csak ebből a tankörből csak ezt a tanárt, csak ebben az intervallumban
+ global $_TANEV;
+ $tanev = ($SET['tanev']!='') ? $SET['tanev'] : _TANEV;
+ $tanevAdat = (is_array($SET['tanevAdat'])) ? $SET['tanevAdat'] : (($SET['tanev']=='') ? $_TANEV : getTanevAdat($tanev));
+ $A = $tolDt = ($SET['tolDt']!='') ? $SET['tolDt'] : $tanevAdat['kezdesDt'];
+ $B = $igDt = ($SET['igDt']!='') ? $SET['igDt'] : $tanevAdat['zarasDt'];
+ if (strtotime($tolDt)>strtotime($igDt)) $_SESSION['alert'][] = 'error:wrong_data:hibás intervallum ('.$tanev.', '.$tolDt.'-'.$igDt.')';
+ if (!is_numeric($tankorId)) return false;
+
+ // [$A-$B] zárt intervallumban megszűnik a tankör tanárának lenni, de mást nem módosítunk
+ $q = "DELETE FROM tankorTanar WHERE tankorId=%u AND tanarId=%u AND beDt>='%s' AND beDt<='%s' AND kiDt<='%s'";
+ $v = array($tankorId,$tanarId,$A,$B,$B);
+ db_query($q, array('debug'=>false,'fv'=>'tankorTanarTorol/delete','modul'=>'naplo_intezmeny','values'=>$v));
+
+ $q = "UPDATE tankorTanar SET kiDt='%s' - INTERVAL 1 DAY WHERE tankorId=%u AND tanarId=%u AND beDt<='%s' AND kiDt>='%s'";
+ $v = array($A,$tankorId,$tanarId,$A,$A);
+ db_query($q, array('debug'=>false,'fv'=>'tankorTanarTorol/delete','modul'=>'naplo_intezmeny','values'=>$v));
+
+ $q = "UPDATE tankorTanar SET beDt='%s' + INTERVAL 1 DAY WHERE tankorId=%u AND tanarId=%u AND beDt<='%s' AND kiDt>='%s'";
+ $v = array($B,$tankorId,$tanarId,$B,$B);
+ db_query($q, array('debug'=>false,'fv'=>'tankorTanarTorol/delete','modul'=>'naplo_intezmeny','values'=>$v));
+
+ return true;
+ }
+
+ function tankorOsztalyHozzarendeles($tankorId, $osztalyIds) {
+ // Tankör-osztály hozzárendelés módosítása - az aktuális tanév figyelembevételével (diákok, bontások)
+ // !! A tankör nevét nem módosítja !!
+ $jelenlegiOsztalyIds = getTankorOsztalyai($tankorId);
+ $db = count($_SESSION['alert']);
+ $diakOsztalyIds = getTankorOsztalyaiByTanev($tankorId, __TANEV, $SET = array('result' => 'id', 'tagokAlapjan' => true, 'tolDt' => '', 'igDt' => ''));
+ if ($db < count($_SESSION['alert'])) $diakOsztalyIds = array(); // Ha nincs tagja az osztálynak, akkor - hibaüzenet mellett - visszaadja a függvény az összes hozzárendelt osztályt...
+ $bontasOsztalyIds = getTankorOsztalyaiByBontas($tankorId);
+ // diak vs. új
+ $tmp = array_diff($diakOsztalyIds, $osztalyIds);
+ if (count($tmp) > 0) $_SESSION['alert'] = 'info:wrong_data:diák:A következő osztályokhoz a tankör hozzá van rendelve diákokon keresztül, ezért bővül az osztályok köre:'.implode(',',$tmp);
+ // bontas vs. új
+ $tmp = array_diff($bontasOsztalyIds, $osztalyIds);
+ if (count($tmp) > 0) $_SESSION['alert'] = 'info:wrong_data:bontás:A következő osztályokhoz a tankör hozzá van rendelve bontásokon keresztül, ezért bővül az osztályok köre:'.implode(',',$tmp);
+ // A helyes osztály lista
+ $ujOsztalyIds = array_unique(array_merge($osztalyIds, $bontasOsztalyIds, $diakOsztalyIds));
+ // Baj lehet még, ha üres az ujOsztalyIds tömb
+ if (count($ujOsztalyIds)==0) return false;
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ $ok = true;
+ // törlendők
+ $tmp = array_diff($jelenlegiOsztalyIds, $ujOsztalyIds);
+ if (is_array($tmp) && count($tmp)>0) {
+ $q = "DELETE FROM tankorOsztaly WHERE osztalyId IN (".implode(',', array_fill(0, count($tmp), '%u')).") AND tankorId=%u";
+ $tmp[] = $tankorId;
+ $ok = $ok && db_query($q, array('fv'=>'tankorOsztalyHozzarendeles/delete','modul'=>'naplo_intezmeny','values'=>$tmp));
+ }
+ // felveendők
+ $tmp = array_diff($ujOsztalyIds, $jelenlegiOsztalyIds);
+ if (is_array($tmp) && count($tmp)>0) foreach($tmp as $index=>$osztalyId) {
+ $q = "INSERT INTO tankorOsztaly (tankorId,osztalyId) VALUES (%u,%u)";
+ $ok = $ok && db_query($q, array('fv'=>'tankorOsztalyHozzarendeles/insert','modul'=>'naplo_intezmeny','values'=>array($tankorId,$osztalyId)));
+ }
+ if ($ok) db_commit($lr); else db_rollback($lr);
+ db_close($lr);
+ return $ok;
+ }
+
+ function tankorSzemeszterHozzarendeles($tankorId, $tankorSzemeszter) {
+ // !! A tankör nevét nem módosítja !! (új hozzárendelés esete...)
+
+ // A tankör-szemeszter hozzárendelés módosítása.
+ $jelenlegiTsz = $delDisTsz = $ujTsz = array();
+ foreach ($tankorSzemeszter as $index => $tszAdat) $ujTsz[$tszAdat['tanev'].'/'.$tszAdat['szemeszter']] = $tszAdat;
+ // Jelenlegi hozzárendelések
+ $tmp = getTankorSzemeszterei($tankorId);
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr); $ok = true;
+ foreach ($tmp as $index => $tszAdat) {
+
+ $tsz = $tszAdat['tanev'].'/'.$tszAdat['szemeszter'];
+ $jelenlegiTsz[$tsz] = $tszAdat;
+
+ if (!is_array($ujTsz[$tsz])) {
+ // Törölni csak tervezett szemeszterből engedünk...
+ if ($tszAdat['statusz'] == 'tervezett') {
+ $q = "DELETE FROM tankorSzemeszter WHERE tankorId=%u AND tanev=%u AND szemeszter=%u";
+ $v = array($tankorId, $tszAdat['tanev'], $tszAdat['szemeszter']);
+ $ok = $ok && db_query($q, array('fv'=>'tankorSzemeszterHozzarendeles/del','modul'=>'naplo_intezmeny','values'=>$v), $lr);
+ } else {
+ $delDisTsz[] = $tsz;
+ }
+ } else if ($ujTsz[$tsz]['oraszam'] != $tszAdat['oraszam']) {
+ // módosítunk, ha eltér az új óraszám a régitől
+ if ($tszAdat['tanev'] == __TANEV) { // A jelenlegi tanévben a bontás óraszámot ellenőrizzük.
+ $TO = getTankorTervezettOraszamok(array($tankorId));
+ $sumBontasOraszam = 0;
+ foreach ($TO[$tankorId]['bontasOraszam'][$tszAdat['szemeszter']] as $idx => $oAdat) $sumBontasOraszam += $oAdat['hetiOraszam'];
+ if ($sumBontasOraszam <= $ujTsz[$tsz]['oraszam']) { $ok = true; }
+ else { $ok = false; $_SESSION['alert'][] = 'message:wrong_data:A bontásokban lekötött összóraszámnál kisebb óraszám nem állítható be.'; }
+ } else { $ok = true; } // egyéb évkben hagyjuk módosítani
+ if ($ok) {
+ $q = "UPDATE tankorSzemeszter SET oraszam = %f WHERE tankorId=%u AND tanev=%u AND szemeszter=%u";
+ $v = array($ujTsz[$tsz]['oraszam'], $tankorId, $tszAdat['tanev'], $tszAdat['szemeszter']);
+ $ok = $ok && db_query($q, array('fv'=>'tankorSzemeszterHozzarendeles/update','modul'=>'naplo_intezmeny','values'=>$v), $lr);
+ }
+ }
+ }
+ // új hozzárendeléseket korlátozás nélkül fel lehet venni... a tankör neve generált név...
+ foreach ($ujTsz as $tsz => $tszAdat) {
+ if (!is_array($jelenlegiTsz[$tsz])) {
+ $q = "INSERT INTO tankorSzemeszter (tankorId, tanev, szemeszter, oraszam, tankorNev) VALUES (%u, %u, %u, %f, '%s')";
+ $v = array($tankorId, $tszAdat['tanev'], $tszAdat['szemeszter'], $tszAdat['oraszam'], 'tankor-'.$tankorId);
+ $ok = $ok && db_query($q, array('fv'=>'tankorSzemeszterHozzarendeles/ins','modul'=>'naplo_intezmeny','values'=>$v), $lr);
+ }
+ }
+ if (count($delDisTsz) > 0) {
+ $_SESSION['alert'][] = 'info:wrong_data:Nem tervezett tanév esetén nem szüntethető meg a tankör hozzárendelés! ('.implode(', ', $delDisTsz).')';
+ }
+ if ($ok) db_commit($lr);
+ else db_rollback($lr);
+
+ db_close($lr);
+ return $ok;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/tanmenet.php b/mayor-orig/www/include/modules/naplo/share/tanmenet.php
new file mode 100644
index 00000000..fe26de8f
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/tanmenet.php
@@ -0,0 +1,208 @@
+<?php
+
+ require_once('include/modules/naplo/share/tanar.php');
+
+ function tanmenetTorol($tanmenetId, $SET = array('force' => false)) {
+ if (!is_numeric($tanmenetId)) return false;
+ $v = array($tanmenetId);
+ if ($force !== true) {
+ // Ellenőrizzük, hogy nincs-e tankörhöz rendelve az adott tanmenet
+ $q = "SELECT tankorId FROM tanmenetTankor WHERE tanmenetId=%u";
+ $tankorIds = db_query($q, array('fv' => 'tanmenetTorol/ellenőrzés', 'modul' => 'naplo_intezmeny', 'result'=>'idonly', 'values' => $v));
+ if (is_array($tankorIds) && count($tankorIds) > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:tankörhöz rendelt tanmenet nem törölhető:tankorIds='.implode(', ', $tankorIds);
+ return false;
+ }
+ }
+ $q = "DELETE FROM tanmenet WHERE tanmenetId=%u";
+ return db_query($q, array('fv' => 'tanmenetTorol/törlés', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+
+ function ujTanmenet($ADAT) {
+
+ $q = "INSERT INTO tanmenet (targyId, evfolyamJel, tanmenetNev, oraszam, tanarId, dt) VALUES (%u, '%s', '%s', %u, %u, CURDATE())";
+ $v = array($ADAT['targyId'], $ADAT['evfolyamJel'], $ADAT['tanmenetNev'], $ADAT['oraszam'], $ADAT['tanarId']);
+ return db_query($q, array('fv' => 'ujTanmenet', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v));
+
+ }
+
+ function tanmenetTemakorModositas($ADAT) {
+
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'tanmenetTemakorModositas/connect'));
+ db_start_trans($lr);
+
+ // Eddigi témakörök törlése
+ $q = "DELETE FROM tanmenetTemakor WHERE tanmenetId=%u";
+ $v = array($ADAT['tanmenetId']);
+ $r = db_query($q, array('fv' => 'tanmenetTemakorModositas/delete', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r) {
+
+ // Új témakörök felvétele
+ $v = $VALUE = array();
+ for ($i = 0; $i < count($ADAT['temakor']['oraszam']); $i++) {
+ if ($ADAT['temakor']['temakorMegnevezes'][$i] != '' && $ADAT['temakor']['oraszam'][$i] != 0) {
+ $v[] = $ADAT['tanmenetId']; $v[] = $i; $v[] = $ADAT['temakor']['temakorMegnevezes'][$i];
+ $v[] = $ADAT['temakor']['oraszam'][$i];
+ $VALUE[] = "(%u, %u, '%s', %u)";
+ }
+ }
+ if (count($VALUE) > 0) { // Ha van egyáltalán beírandó adat
+ $q = "INSERT INTO tanmenetTemakor (tanmenetId, sorszam, temakorMegnevezes, oraszam) VALUES ".implode(',', $VALUE);
+ $r = db_query($q, array('fv' => 'tanmenetTemakorModositas/insert', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ }
+ if ($r) db_commit($lr);
+ }
+
+ db_close($lr);
+ return $r;
+
+ }
+
+ function tankorTanmenetHozzarendeles($ADAT) {
+ $lr = db_connect('naplo_intezmeny', array('fv' => 'tankorTanemenetHozzárendeles/connect'));
+ db_start_trans($lr);
+
+ $q = "DELETE FROM tanmenetTankor WHERE tankorId=%u AND tanev=%u";
+ $v = array($ADAT['tankorId'], $ADAT['tanev']);
+ $r = db_query($q, array('fv' => 'tankorTanmenetHozzarendeles/delete', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r) {
+ if ($ADAT['tanmenetId']!=0) {
+ $q = "INSERT INTO tanmenetTankor (tankorId, tanev, tanmenetId) VALUES (%u, %u, %u)";
+ $v = array($ADAT['tankorId'], $ADAT['tanev'], $ADAT['tanmenetId']);
+ $r = db_query($q, array('fv' => 'tankorTanmenetHozzarendeles/insert', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r) db_commit($lr);
+ } else {
+ if ($r) db_commit($lr);
+ }
+ }
+ db_close($lr);
+ return $r;
+
+ }
+
+ function tanmenetDuplikalas($eTanmenetId, $tanarId) {
+
+ $q = "INSERT INTO tanmenet (targyId, evfolyamJel, tanmenetNev, oraszam, tanarId, dt, statusz)
+ SELECT targyId, evfolyamJel, tanmenetNev, oraszam, %u AS tanarId, CURDATE() AS dt, 'új' AS statusz FROM tanmenet WHERE tanmenetId=%u";
+ $v = array($tanarId, $eTanmenetId);
+ $tanmenetId = db_query($q, array('fv' => 'tanmenetDuplikalas/tanmenet', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v));
+ $q = "INSERT INTO tanmenetTemakor (tanmenetId, sorszam, oraszam, temakorMegnevezes)
+ SELECT %u AS tanmenetId, sorszam, oraszam, temakorMegnevezes FROM tanmenetTemakor WHERE tanmenetId=%u";
+ $v = array($tanmenetId, $eTanmenetId);
+ db_query($q, array('fv' => 'tanmenetDuplikalas/tanmenetTemakor', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ return $tanmenetId;
+
+ }
+
+ function tanmenetAdatModositas($ADAT) {
+
+
+ // Ha státusz != 'új' || 'elavult', akkor az óraszámnak legalább stimmelnie kellene!
+ if ($ADAT['ujStatusz'] != 'új' && $ADAT['ujStatusz'] != 'elavult') {
+ $q = "select tanmenet.oraszam as tervezett, sum(tanmenetTemakor.oraszam) as osszes
+ from tanmenet left join tanmenetTemakor using(tanmenetId) where tanmenetId=%u GROUP BY tanmenetId";
+ $ret = db_query($q, array('fv' => 'tanmenetAdatModositas', 'modul'=> 'naplo_intezmeny', 'values' => array($ADAT['tanmenetId']), 'result' => 'record'));
+ if ($ADAT['oraszam'] != $ret['osszes']) {
+ // A tanmenet státuszát 'új'-ra állítjuk
+ $q = "UPDATE tanmenet SET statusz='új' WHERE tanmenetId=%u";
+ db_query($q, array('fv' => 'tanmenetAdatModositas', 'modul' => 'naplo_intezmeny', 'values' => array($ADAT['tanmenetId'])));
+
+ $_SESSION['alert'][] = 'message:wrong_data:A tervezett óraszám ('.$ADAT['oraszam'].') nem egyenlő az összóraszámmal ('.$ret['osszes'].')';
+ return false;
+ }
+ }
+ $q = "UPDATE tanmenet SET tanmenetNev='%s', oraszam=%u, evfolyamJel='%s', statusz='%s' WHERE tanmenetId=%u";
+ $v = array($ADAT['tanmenetNev'], $ADAT['oraszam'], $ADAT['evfolyamJel'], $ADAT['ujStatusz'], $ADAT['tanmenetId']);
+ return db_query($q, array('fv' => 'tanmenetAdatModositas', 'modul' => 'naplo_intezmeny', 'values' => $v));
+
+ }
+
+ function getTanmenetek($SET = array('result' => 'assoc')) {
+
+ $result = readVariable($SET['result'], 'enum', 'assoc', array('indexed','assoc'));
+
+ $q = "SELECT * FROM tanmenet ORDER BY targyId, dt DESC";
+ return db_query($q, array('fv' => 'getTanmenetek', 'modul' => 'naplo_intezmeny', 'result' => $result, 'keyfield' => 'tanmenetId'));
+
+ }
+
+ function getTanmenetAdat($tanmenetId, $SET = array('tanev' => __TANEV)) {
+
+ if ($SET['tanev']=='') $SET['tanev'] = __TANEV;
+ $v = array($tanmenetId,$SET['tanev']);
+
+
+ $q = "SELECT * FROM tanmenet WHERE tanmenetId=%u";
+ $ret = db_query($q, array('fv' => 'getTanmenetAdat', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v));
+
+ $q = "SELECT * FROM tanmenetTemakor WHERE tanmenetId=%u ORDER BY sorszam";
+ $ret['temakor'] = db_query($q, array('fv' => 'getTanmenetAdat/témakör', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ $q = "SELECT * FROM tanmenetTankor WHERE tanmenetId=%u AND tanev=%u";
+ $ret['tankor'] = db_query($q, array('fv' => 'getTanmenetAdat/tankör', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if (is_array($ret['tankor'])) for ($i = 0; $i < count($ret['tankor']); $i++) {
+ $ret['tankor'][$i]['tankorNev'] = getTankorNevById($ret['tankor'][$i]['tankorId'], array('tanev' => $SET['tanev']));
+ }
+
+ $q = "SELECT * FROM tanmenetTankor WHERE tanmenetId=%u AND tanev!=%u";
+ $ret['tankorNemAktualis'] = db_query($q, array('fv' => 'getTanmenetAdat/tankör/2', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if (is_array($ret['tankorNemAktualis'])) for ($i = 0; $i < count($ret['tankorNemAktualis']); $i++) {
+ $ret['tankorNemAktualis'][$i]['tankorNev'] = $ret['tankorNemAktualis'][$i]['tanev'].'-'.getTankorNevById($ret['tankorNemAktualis'][$i]['tankorId'], array('tanev' => $ret['tankorNemAktualis'][$i]['tanev']));
+ }
+
+ $targyAdat = getTargyById($ret['targyId']);
+ $ret['targyNev'] = $targyAdat['targyNev'];
+ $ret['tanarNev'] = getTanarNevById($ret['tanarId']);
+
+ return $ret;
+ }
+
+ function getTanmenetByTankorIds($tankorIds, $SET = array('tanev' => __TANEV, 'jovahagyva' => false)) {
+
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+
+ $W = array();
+ if ($SET['jovahagyva']===true) $W[] = " AND statusz='publikus'";
+
+ $q = "SELECT tankorId, tanmenetId FROM tanmenetTankor LEFT JOIN tanmenet USING (tanmenetId) WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") AND tanev=%u".implode($W,' ');
+ $tankorIds[] = $tanev;
+ return db_query($q, array('fv' => 'getTanmenetByTankorIds', 'modul' => 'naplo_intezmeny', 'result' => 'keyvaluepair', 'values' => $tankorIds));
+
+ }
+
+ function getTanmenetByTargyId($targyId, $SET = array('result' => 'indexed')) {
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed', 'assoc'));
+ $targyAdat = getTargyById($targyId);
+
+ $q = "SELECT * FROM tanmenet WHERE targyId=%u ORDER BY evfolyamJel,dt DESC";
+ $v = array($targyId);
+ $ret = db_query($q, array('fv' => 'getTanmenetByTargyId', 'modul' => 'naplo_intezmeny', 'result' => $result, 'keyfield' => 'tanmenetId', 'values' => $v));
+
+ if (is_array($ret)) foreach ($ret as $key => $tAdat) {
+ $ret[$key]['tanarNev'] = getTanarNevById($tAdat['tanarId']);
+ $ret[$key]['targyNev'] = $targyAdat['targyNev'];
+ }
+
+ return $ret;
+ }
+
+ function getTanmenetByTanarId($tanarId, $SET = array('result' => 'indexed')) {
+
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed', 'assoc'));
+
+ $q = "SELECT * FROM tanmenet WHERE tanarId=%u ORDER BY targyId,evfolyamJel,dt DESC";
+ $v = array($tanarId);
+ $ret = db_query($q, array('fv' => 'getTanmenetByTanarId', 'modul' => 'naplo_intezmeny', 'result' => $result, 'keyfield' => 'tanmenetId', 'values' => $v));
+
+ if (is_array($ret)) foreach ($ret as $key => $tAdat) {
+ $targyAdat = getTargyById($tAdat['targyId']);
+ $ret[$key]['targyNev'] = $targyAdat['targyNev'];
+ $ret[$key]['tanarNev'] = getTanarNevById($tAdat['tanarId']);
+ }
+
+ return $ret;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/targy.php b/mayor-orig/www/include/modules/naplo/share/targy.php
new file mode 100644
index 00000000..81efa789
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/targy.php
@@ -0,0 +1,426 @@
+<?php
+
+ function getTargyakByMkId($mkId, $SET = array('result' => 'indexed')) {
+
+ $q = "SELECT * FROM targy WHERE mkId=%u";
+ $v = array($mkId);
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed', 'idonly', 'assoc'));
+ return db_query($q, array('fv' => 'getTargyakByMkId', 'modul' => 'naplo_intezmeny', 'result' => $result, 'values' => $v));
+
+ }
+
+ // Miért van három szinte azonos függvény?
+ function getTargyById($targyId) {
+
+ $q = "SELECT * FROM targy WHERE targyId=%u";
+ $v = array($targyId);
+ return db_query($q, array('fv' => 'getTargyById', 'modul' => 'naplo_intezmeny', 'result'=> 'record', 'values'=>$v));
+
+ }
+
+ function getTargyAdatByIds($targyIds=null) { //2009 // esetleg ByIds nélkül kifejezőbb lenne a név...
+ if (is_array($targyIds) && count($targyIds) > 0) {
+ $q = "SELECT * FROM targy WHERE targyId IN (".implode(',', array_fill(0, count($targyIds), '%u')).") ORDER BY targyNev";
+ $v = $targyIds;
+ } else {
+ $q = "SELECT * FROM targy ORDER BY targyNev";
+ $v = array();
+ }
+ $R = db_query($q, array('fv' => 'getTargyAdatByIds', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'targyId','values'=>$v));
+ return $R;
+ }
+
+ function getTargyak($SET = array('mkId' => null, 'targySorrendNev' => null, 'tanev' => __TANEV, 'osztalyId' => null, 'arraymap' => null) ) {
+
+ if (isset($SET['tanev']) && $SET['tanev'] != __TANEV) $tanevDb = tanevDbNev(__INTEZMENY, $SET['tanev']);
+ else $tanevDb = __TANEVDBNEV;
+ $targySorrendNev = readVariable($SET['targySorrendNev'], 'enum', null, getTargySorrendNevek());
+
+ if (isset($SET['mkId'])) {
+ $W = 'WHERE mkId = %u '; $v = array($SET['mkId']);
+ } else {
+ $W = ''; $v = array();
+ }
+ if ($targySorrendNev != '' && $SET['osztalyId'] != '') {
+ $q = "SELECT targy.* FROM targy LEFT JOIN $tanevDb.targySorszam
+ ON targy.targyId = targySorszam.targyId AND osztalyId=%u AND sorrendNev='%s'
+ $W ORDER BY IF(sorszam IS NULL,100,sorszam), targyNev";
+ array_unshift($v, $SET['osztalyId'], $targySorrendNev);
+ } else {
+ $q = "SELECT * FROM targy $W ORDER BY targyNev";
+ }
+ $r = db_query($q, array('modul' => 'naplo_intezmeny', 'result' => 'indexed', 'fv' => 'getTargyak', 'values' => $v));
+
+ if (is_array($SET['arraymap'])) {
+ $RE = reindex($r,$SET['arraymap']);
+ } else {
+ $RE = $r;
+ }
+
+ return $RE;
+ }
+
+ function getTargySorrendNevek($tanev = __TANEV) {
+ require_once('include/modules/naplo/share/file.php');
+ return getEnumField('naplo_base', tanevDbNev(__INTEZMENY, $tanev).'.targySorszam', 'sorrendNev');
+ }
+
+ function getTanevTargySorByOsztalyId($osztalyId, $tanev = __TANEV, $sorrendNev = 'bizonyítvány') {
+
+ global $_TANEV;
+
+ if ($tanev != __TANEV) $Tanev = getTanevAdat($tanev);
+ else $Tanev = $_TANEV;
+
+ // Az összes diákra szükség van aktív tanévben is - év végén a végzősök már nincsenek jogviszonyban...
+ $Statusz = array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva');
+ $diakIds = array();
+ $Diak = getDiakok(array('osztalyId' => $osztalyId, 'tanev' => $tanev, 'statusz' => $Statusz));
+ for ($i = 0; $i < count($Diak); $i++) $diakIds[] = $Diak[$i]['diakId'];
+
+
+ if (count($diakIds) > 0) {
+
+ // a második paraméter $Tanev, de kompatibilis a $szemeszteradattal)
+ $targyak = getTargyakByDiakIds($diakIds,$Tanev,$osztalyId,$sorrendNev, array('csakOratervi'=>false,'filter'=>''));
+ return $targyak;
+ }
+ else
+ {
+ return false;
+ }
+
+ }
+/*
+ Egy osztályhoz rendelt tankörök tárgyai - lehet, hogy valójában nincs is olyan diák, aki tanulja ezt a tárgyat.
+ Magatartás/szorgalom nincs benne... Miért is ne lenne benne? Én nem látom, hogy ki lenne szűrve...
+ nyomtatas/haladasinaplo-ban használt függvény!
+*/
+ function getTargyakByOsztalyId($osztalyId, $tanev = __TANEV, $SET = array('targySorrendNev' => 'napló', 'result' => 'indexed')) {
+ if ($tanev != __TANEV) $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+ else $tanevDbNev = __TANEVDBNEV;
+ $q = "SELECT DISTINCT targy.targyId AS targyId, targyNev, targyRovidNev FROM targy
+ LEFT JOIN tankor USING (targyId)
+ LEFT JOIN tankorOsztaly USING (tankorId)
+ LEFT JOIN ".$tanevDbNev.".targySorszam
+ ON tankorOsztaly.osztalyId=targySorszam.osztalyId AND targy.targyId=targySorszam.targyId AND sorrendNev = '%s'
+ LEFT JOIN tankorSzemeszter USING (tankorId)
+ WHERE tanev=%u AND tankorOsztaly.osztalyId=%u ORDER BY IFNULL(sorszam,1000),targyNev";
+ return db_query($q, array('fv' => 'getTargyByOsztalyId', 'modul' => 'naplo_intezmeny', 'result' => $SET['result'], 'values' => array($SET['targySorrendNev'],$tanev,$osztalyId)));
+ }
+
+ function getTargyakByDiakId($diakId,
+ $SET = array('tanev' => __TANEV, 'dt' => null, 'tolDt' => null, 'igDt' => null, 'result' => 'indexed','csakOratervi'=>false, 'osztalyId' => null, 'filter' => null, 'targySorrendNev' => null)) {
+ /*
+ A függvény először lekérdezi a diák osztályait az adott időintervallumban. Ha van megadva osztalyId paraméter, akkor csak
+ azt veszi a továbbiakban figyelembe! Majd a diák és az egyes osztályok képzéseit is lekérdezzük (az intervallum végi dátummal!).
+
+ Ha van megadva osztalyId, akkor csak az oda sorolható tárgyakat kérdezzük le, illetve a más osztályhoz nem sorolható, de évfolyamban megfelelőket
+ (ld. szűrés)
+
+ Ezek után a tárgyakat három forrásból veszi:
+ 1. A diák adott időintervallumbeli tankör tagságaiból vett tárgyakat osztályokhoz rendeli, vagy az egyéb kategóriába teszi
+ 2. Az adott időintervallumba eső zárójegyek tárgyait a korábbi tankörök alapján rendeli osztályokhoz, a maradék, de évfolyamban
+ a diák valamely osztályának megfelelő tárgyat az egyéb kategóriába sorolja. Azok a zárójegy tárgyak tehát sose kerülnek be,
+ amik évfolyamban nem felelnek meg...
+ 3. A diák esetleges képzései egyben osztályhoz is rendelik az onnan származó tárgyakat.
+
+ A keletkező adatszerkezet:
+ array(
+ osztaly => array($osztalyId1 => array( .... tárgyId-k ....), $osztalyId2 => array( ... ), ...),
+ egyeb => array( ... tárgyId-k ...),
+ targyAdat => array(
+ $targyId1 => array(targyNev => ..., evkoziKovetelmeny => ..., zaroKovetelmeny => ..., jegyTipus => ..., evfolyam => ..., evfolyamJel =>) // nem mindegyik van mindig!!
+ )
+ )
+
+ Ha nincs megadva 'result' paraméter akkor a teljes tömböt adja vissza a fv.
+
+ Ha van megadva 'result', akkor figyelembe vesszi a 'filter' paramétert is - eddig egy értéket vesz figyelembe: kovetelmeny
+ Ezután a függvény $result-nak megfelelően átalakítva adja vissza a szelektált tárgyak listáját (idonly, assoc, indexed)
+
+ */
+ // ERŐS TANÉVFÜGGŐSÉG!
+ $tanev = readVariable($SET['tanev'], 'numeric unsigned', __TANEV);
+
+ // A tárgysorrend tanév függő
+ if ($tanev != __TANEV) $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ else $tanevDb = __TANEVDBNEV;
+
+ $dt = readVariable($SET['dt'], 'datetime', null);
+ $tolDt = readVAriable($SET['tolDt'], 'date', $dt);
+ $igDt = readVAriable($SET['igDt'], 'date', $dt);
+ initTolIgDt($tanev, $tolDt, $igDt);
+ if (is_null($dt)) $dt = $igDt;
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed','assoc','keyvaluepair','idonly'));
+//!!!!
+ $targySorrendNev = readVariable($SET['targySorrendNev'], 'sql', null, array('napló','anyakönyv','ellenőrző','bizonyítvány','egyedi'));
+ $return = array('egyeb' => array(), 'osztaly' => array(), 'targyAdat' => array());
+
+ if ($SET['csakOratervi']===true) {
+ $LEFTJOIN = " LEFT JOIN tankorTipus USING (tankorTipusId) ";
+ $W = " AND tankorTipus.oratervi='óratervi' ";
+ }
+
+ // A diák osztályai, képzései - a tárgyak csoportosításához!
+ $diakOsztalyIds = getDiakOsztalya($diakId, array('tanev' => $tanev, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result' => 'idonly'));
+ if (isset($SET['osztalyId'])) {
+ if (!in_array($SET['osztalyId'], $diakOsztalyIds)) {
+ // Nem biztos, hogy hiba. Pl. zárási stat-ban, ha első félévben osztályt vált, akkor második félévben ebbe az ágba kerül a lekérdezés...
+ if (__NAPLOADMIN) $_SESSION['alert'][] = 'info:wrong_data:getTargyakByDiakId:A diák ('.$diakId.') nem tagja az osztalynak ('.$SET['osztalyId'].')';
+ return false;
+ } else {
+ $diakOsztalyIds = array($SET['osztalyId']);
+ }
+ }
+ $diakEvfolyamJel = array();
+ if (count($diakOsztalyIds)==0) {
+ // --TODO, ilyenkor mi van?
+ // Pl. ha év közben elmegy a tanuló az iskolából...
+ // Mindenesetre ne jelenjen meg mindig mindenkinek ez az üzenet, mert idegesítő... elég az adminnak
+ if (__NAPLOADMIN) $_SESSION['alert'][] = 'info:not_implemented:nincs_osztaly,getTargyakByDiakId:diakId='.$diakId;
+ } else {
+ $osztalyKepzes = getKepzesByOsztalyId($diakOsztalyIds, array('result' => 'indexed', 'arraymap' => array('osztalyId','kepzesId')));
+ foreach ($diakOsztalyIds as $osztalyId) {
+ $return['osztaly'][$osztalyId] = array();
+ $osztalyAdat[$osztalyId] = array(
+ 'targy' => getTargyakByOsztalyId($osztalyId, $tanev, array('result' => 'idonly')),
+ 'evfolyam'=>getEvfolyam($osztalyId,$tanev),
+ 'evfolyamJel'=>getEvfolyamJel($osztalyId,$tanev)
+ );
+ if (is_array($osztalyKepzes[$osztalyId])) foreach ($osztalyKepzes[$osztalyId] as $kepzesId => $kAdat) {
+ if (isset($kepzesOsztaly[$kepzesId])) {
+ // Ha azonos évfolyamon vannak a képzéshez rendelt osztályok, akkor nem okoz gondot a több osztály a képzésből jövő tárgyak lekérdezésénél - ezért nem üzenünk hibát
+ if ($osztalyAdat[$osztalyId]['evfolyamJel'] != $osztalyAdat[ $kepzesOsztaly[$kepzesId] ]['evfolyamJel']) {
+ $_SESSION['alert'][] = 'message:wrong_data:getTargyakByDiakId:egy képzés több különböző évfolyamú osztályhoz tartozik';
+ }
+ // TODO , evfolyamJel re való áttérés a képzéseknél - ellenőrzés, tesztelés...
+ if ($osztalyAdat[$osztalyId]['evfolyamJel'] != $osztalyAdat[ $kepzesOsztaly[$kepzesId] ]['evfolyamJel']) {
+ $_SESSION['alert'][] = 'message:wrong_data:getTargyakByDiakId:egy képzés több különböző évfolyamú osztályhoz tartozik';
+ }
+ } else {
+ $kepzesOsztaly[$kepzesId] = $osztalyId;
+ }
+ }
+ if (!in_array($osztalyAdat[$osztalyId]['evfolyamJel'], $diakEvfolyamJel)) $diakEvfolyamJel[] = $osztalyAdat[$osztalyId]['evfolyamJel'];
+ }
+ }
+
+ if (count($diakEvfolyamJel)==0) {
+ // --TODO, ilyenkor mi van?
+ // Pl. ha év közben elmegy a tanuló az iskolából...
+ // Legalább ne mindenkinek, csak az adminnak jelenjen meg a hibaüzenet...
+ if (__NAPLOADMIN) $_SESSION['alert'][] = 'info:not_implemented:nincs_evfolyam,getTargyakByDiakId';
+ }
+
+ // Tárgyak lekérdezése a diák aktuális tankör-tagságai alapján
+ $q = "SELECT DISTINCT targyId,targyNev, zaroKovetelmeny, tankor.kovetelmeny AS evkoziKovetelmeny
+ FROM targy
+ LEFT JOIN tankor USING (targyId)
+ LEFT JOIN tankorSzemeszter USING (tankorId)
+ $LEFTJOIN
+ LEFT JOIN tankorDiak USING (tankorId)
+ WHERE diakId=%u AND tanev=%u AND beDt <= '%s' AND ('%s' <= kiDt OR kiDt IS NULL)
+ $W
+ ORDER BY targyNev, tankor.kovetelmeny DESC"; // Ha több tankör van egy tárgyhoz különböző követelményekkel, akkor ne a "nincs" legyen az utolsó!
+ $v = array($diakId, $tanev, $igDt, $tolDt);
+
+ $return['targyAdat'] = db_query($q, array('fv' => 'getTargyByDiakId', 'modul' => 'naplo_intezmeny', 'keyfield' => 'targyId', 'result' => 'assoc', 'values' => $v));
+
+ foreach ($return['targyAdat'] as $targyId => $tAdat) {
+ $osztalybaSorolva = false;
+ foreach ($diakOsztalyIds as $osztalyId) {
+ if (in_array($targyId, $osztalyAdat[$osztalyId]['targy'])) {
+ $return['osztaly'][$osztalyId][] = $targyId;
+ $osztalybaSorolva = true;
+ }
+ }
+ if (!$osztalybaSorolva) $return['egyeb'][] = $targyId;
+ }
+
+ // Tárgyak lekérdezése a beírt zárójegyek, osztályzatok alapján
+ if (count($diakEvfolyamJel)>0) {
+ // Ez lenne az új javaslat: az adott tolDt-igDt közötti VAGY adott évfolyamokra illeszkedő zárójegyek legyenek lekérdezve - ez így bővebb... (evfolyam-->evfolyamJel tesztelendő)
+ $q = "SELECT targyId, targyNev, evfolyam, evfolyamJel, jegyTipus FROM zaroJegy LEFT JOIN targy USING (targyId)
+ WHERE diakId=%u AND (('%s' <= hivatalosDt AND hivatalosDt <= '%s') OR evfolyamJel IN (".implode(',', array_fill(0, count($diakEvfolyamJel), '%u'))."))";
+ // Ez az eredeti tolDt-igDt közötti ÉS adott évfolyamokra illeszkedő jegyek... (evfolyam-->evfolyamJel tesztelendő)
+ $q = "SELECT targyId, targyNev, evfolyam, evfolyamJel, jegyTipus FROM zaroJegy LEFT JOIN targy USING (targyId)
+ WHERE diakId=%u AND '%s' <= hivatalosDt AND hivatalosDt <= '%s' AND evfolyamJel IN (".implode(',', array_fill(0, count($diakEvfolyamJel), '%u')).")";
+ $v = $diakEvfolyamJel;
+ array_unshift($v, $diakId, $tolDt, $igDt);
+ $retZJ = db_query($q, array('fv' => 'getTargyByDiakId/zárójegyek', 'modul' => 'naplo_intezmeny', 'keyfield' => 'targyId', 'result' => 'assoc', 'values' => $v));
+ foreach ($retZJ as $targyId => $tAdat) {
+ $osztalybaSorolva = false;
+ if (isset($return['targyAdat'][$targyId])) $return['targyAdat'][$targyId]['jegyTipus'] = $tAdat['jegyTipus'];
+ else $return['targyAdat'][$targyId] = $tAdat;
+ foreach ($diakOsztalyIds as $osztalyId) {
+ if (in_array($targyId, $osztalyAdat[$osztalyId]['targy'])) {
+ if (!in_array($targyId, $return['osztaly'][$osztalyId])) $return['osztaly'][$osztalyId][] = $targyId;
+ $osztalybaSorolva = true;
+ }
+ }
+ if (!$osztalybaSorolva && !in_array($targyId, $return['egyeb'])) $return['egyeb'][] = $targyId;
+ }
+ }
+
+ // Tárgyak lekérdezése képzés alapján
+ // - van-e a diáknak képzése?
+ $kepzesIds = getKepzesByDiakId($diakId, array('dt'=>$dt, 'result' => 'idonly'));
+ if (is_array($kepzesIds) && count($kepzesIds) > 0) {
+ foreach ($kepzesIds as $kepzesId) {
+ $osztalyId = $kepzesOsztaly[$kepzesId];
+ $evfolyamJel = $osztalyAdat[$osztalyId]['evfolyamJel'];
+ $retK = getKepzesOraterv($kepzesId, array('arraymap' => array('evfolyamJel', 'targyId')));
+ if (is_array($retK[$evfolyamJel])) foreach ($retK[$evfolyamJel] as $targyId => $tAdat) {
+ if ($targyId != '') {
+ if (!in_array($targyId, $return['osztaly'][$osztalyId])) $return['osztaly'][$osztalyId][] = $targyId; //Ne üzenjünk hibát? Ezek szerint egy képzésben előírt tárgy nem szerepelt a tankörök között...
+ if (is_array($return['targyAdat'][$targyId])) $return['targyAdat'][$targyId]['zaroKovetelmeny'] = $tAdat[ (count($tAdat)-1) ]['kovetelmeny']; // A képzés követelménye felülírja a tárgyét...
+ else $return['targyAdat'][$targyId] = array_merge(getTargyById($targyId), array('evfolyamJel' => $evfolyamJel, 'zaroKovetelmeny' => $tAdat[ (count($tAdat)-1) ]['kovetelmeny'])); // Ha még nem szerepelt a tárgy, akkor vegyük fel az adatait...
+ }
+ }
+ }
+ }
+ // Kellene még szűrni - követelmény, vagy jelenlét szerint, és le kellene kezelni a $result paramétert... (rev. 2251))
+ if ($SET['result'] == '') return $return; // Ha nincs visszatérési forma megadva, akkor adjuk vissza az egész tömböt!
+
+ if ($targySorrendNev != '' && is_array($return['targyAdat']) && count($return['targyAdat'])>0) {
+ // Rendezés... a $diakOsztalyIds[0] alapján!
+ $q = "SELECT targy.targyId FROM targy LEFT JOIN ".$tanevDb.".targySorszam
+ ON targy.targyId = targySorszam.targyId AND osztalyId=%u AND sorrendNev='%s'
+ WHERE targy.targyId IN (".implode(',', array_fill(0, count(array_keys($return['targyAdat'])), '%u')).") ORDER BY sorszam, targyNev";
+ $v = array_keys($return['targyAdat']);
+ array_unshift($v, $diakOsztalyIds[0], $targySorrendNev);
+ $sorrend = db_query($q, array('fv' => 'getTargyakByDiakId/targySorrend', 'modul' => 'naplo_intezmeny', 'result' => 'idonly', 'values' => $v));
+ } else {
+ $sorrend = array_keys($return['targyAdat']);
+ }
+
+ // Szűrés
+ $ret = array();
+ if (isset($SET['osztalyId'])) $osztalyId = $SET['osztalyId']; // Ha van szűrés az osztályra...
+ foreach ($sorrend as $targyId) {
+ $tAdat = $return['targyAdat'][$targyId];
+
+ if ( // szűrés az osztályra
+ !isset($SET['osztalyId']) // nincs osztályra szűrés...
+ || (is_array($return['osztaly'][$osztalyId]) && in_array($targyId, $return['osztaly'][$osztalyId])) // vagy a szűrendő osztályhoz kapcsolódó tárgy
+ || (in_array($targyId, $return['egyeb']) && isset($tAdat['evfolyamJel']) && in_array($tAdat['evfolyamJel'], $diakEvfolyamJel)) // vagy nem kapcsolható más osztályhoz, évfolyama viszont megfelel a szűrendő évfolyamnak
+ ) {
+ if (
+ $SET['filter'] != 'kovetelmeny' || // ha nincs követelmény szerinti szűrés...
+ ( // Szűrés a követelményre
+ (isset($tAdat['evkoziKovetelmeny']) && $tAdat['evkoziKovetelmeny'] != 'nincs') // vagy van/lehet évközi értékelése ...
+ || (isset($tAdat['zaroKovetelmeny']) && $tAdat['zaroKovetelmeny'] != 'nincs' && $tAdat['zaroKovetelmeny'] != '') // vagy év végi osztályzata...
+ || (isset($tAdat['jegyTipus'])) // vagy van már beírva osztályzata
+ )
+ ) { // Megfelelő adatforma kialakítása
+ if ($SET['result'] == 'idonly') $ret[] = $targyId;
+ elseif ($SET['result'] == 'indexed') $ret[] = $tAdat;
+ elseif ($SET['result'] == 'assoc') $ret[$targyId] = $tAdat;
+ }
+ }
+ }
+
+ return $ret;
+
+ }
+
+ function getTargyakByDiakIds($diakIds, $szemeszterAdat, $osztalyId, $sorrendNev, $SET = array('result' => 'indexed', 'keyfield' => null,'csakOratervi'=>true,'filter'=>'kovetelmeny')) {
+ /*
+ A függvény lekérdezi az összes diák tárgyait a share/targy/getTargyakByDiakId függvénnyel,
+ majd ezen id-k alapján kérdezi le a rendezett tárgy listát - névvel és egyéb adatokkal indexelt tömbként.
+ */
+
+ if ( !isset($SET['csakOratervi']) ) $SET['csakOratervi'] = true;
+ if ( !isset($SET['filter']) ) $SET['filter'] = 'kovetelmeny';
+ if ( !isset($SET['result']) ) $SET['result'] = 'indexed';
+
+ if ($szemeszterAdat['tanev'] == __TANEV) $tanevDb = __TANEVDBNEV;
+ else $tanevDb = tanevDbNev(__INTEZMENY, $szemeszterAdat['tanev']);
+
+ $targyIds = $tmp = array();
+ foreach ($diakIds as $key => $diakId) {
+ $ret = getTargyakByDiakId($diakId, array('osztalyId' => $osztalyId, 'result' => 'idonly', 'csakOratervi' => $SET['csakOratervi'], 'filter' => $SET['filter'],
+ 'tanev' => $szemeszterAdat['tanev'], 'tolDt' => $szemeszterAdat['kezdesDt'], 'igDt' => $szemeszterAdat['zarasDt']));
+ if (is_array($ret)) {
+ $targyIds = array_unique(array_merge($tmp, $ret));
+ $tmp = $targyIds;
+ }
+ }
+ if (is_array($targyIds) && count($targyIds)>0) {
+ $q = "SELECT kirTargyId,targy.targyId AS targyId, IF(targyRovidNev='' OR targyRovidNev IS NULL,targyNev,targyRovidNev) as targyRovidNev, targyNev, sorszam, targy.zaroKovetelmeny
+ FROM targy LEFT JOIN ".$tanevDb.".targySorszam
+ ON targy.targyId = targySorszam.targyId AND osztalyId=%u AND sorrendNev='%s'
+ WHERE targy.targyId IN (".implode(',', array_fill(0, count($targyIds), '%u')).")
+ ORDER BY sorszam,targyNev";
+ $v = mayor_array_join(array($osztalyId, $sorrendNev,), $targyIds);
+ return db_query($q, array('fv' => 'getTargyakByDiakIds', 'modul' => 'naplo_intezmeny', 'result' => $SET['result'], 'keyfield' => $SET['keyfield'], 'values' => $v));
+ } else {
+ return false;
+ }
+ }
+
+ function getTargyIdsByTanarId($tanarId) {
+
+ $q1 = "SELECT targyId FROM kepesitesTargy LEFT JOIN tanarKepesites USING (kepesitesId) WHERE tanarId=%u";
+ $q2 = "SELECT targyId FROM targy LEFT JOIN mkTanar USING (mkId) WHERE tanarId=%u";
+ $q = "($q1) UNION DISTINCT ($q2)";
+
+ return db_query($q, array('fv'=>'getTargyIdsByTanarId','modul'=>'naplo_intezmeny','result'=>'idonly','values'=>array($tanarId, $tanarId)));
+
+ }
+
+ function getMagatartas($SET = array('csakId' => true, 'result' => 'idonly')) { // Nekem szimpatikusabb a result paraméter... [bb] :)
+ if ($SET['csakId']===true || $SET['result'] == 'idonly') { $w='targyId'; $r='idonly'; }
+ elseif ($SET['result'] == 'value') { $w ='targyId'; $r='value'; }
+ else {$w='*';$r='indexed'; }
+ $q = "SELECT $w FROM targy WHERE targyJelleg='magatartás'";
+ $ret=db_query($q, array('fv' => 'getMagatartas', 'modul' => 'naplo_intezmeny', 'result' => $r));
+ if (count($ret)==0) $_SESSION['alert'][]='message:nincs_targy:magatartás';
+ return $ret;
+ }
+ function getSzorgalom($SET = array('csakId' => true, 'result' => 'idonly')) {
+ if ($SET['csakId']===true || $SET['result'] == 'idonly') { $w='targyId'; $r='idonly'; }
+ elseif ($SET['result'] == 'value') { $w ='targyId'; $r='value'; }
+ else {$w='*';$r='indexed'; }
+ $q = "SELECT $w FROM targy WHERE targyJelleg='szorgalom'";
+ $ret=db_query($q, array('fv' => 'getSzorgalom', 'modul' => 'naplo_intezmeny', 'result' => $r));
+ if (count($ret)==0) $_SESSION['alert'][]='message:nincs_targy:szorgalom';
+ return $ret;
+ }
+ function getOsztalyfonoki($SET = array('csakId' => true, 'result' => 'idonly')) {
+ if ($SET['csakId']===true || 'result' == 'idonly') { $w='targyId'; $r='idonly'; }
+ elseif ($SET['result'] == 'value') { $w ='targyId'; $r='value'; }
+ else {$w='*';$r='indexed'; }
+ // még nincs "osztályfőnöki" tárgy jelleg - de kéne, nem?
+ $q = "SELECT $w FROM targy WHERE targyJelleg='osztályfőnöki' or targyNev = 'osztályfőnöki'";
+ $ret=db_query($q, array('fv' => 'getSzorgalom', 'modul' => 'naplo_intezmeny', 'result' => $r));
+ if (count($ret)==0) $_SESSION['alert'][]='message:nincs_targy:szorgalom';
+ return $ret;
+ }
+
+
+ function getKirTargyak() {
+ $q = "SELECT * FROM kirTargy";
+ return db_query($q, array('fv'=>'getKirTargyak','modul'=>'naplo_base','result'=>'indexed'));
+ }
+
+ function getTargyTargy($SET=array()) {
+
+ $q = "SELECT * FROM targyTargy";
+ $r = db_query($q, array('fv'=>'getTargyTargy','modul'=>'naplo_intezmeny','result'=>'indexed'));
+ //$R = reindex($r,array('foTargyId'));
+ for ($i=0; $i<count($r); $i++) {
+ $R['FOal'][$r[$i]['foTargyId']][] = $r[$i]['alTargyId'];
+ $R['alFO'][$r[$i]['alTargyId']][] = $r[$i]['foTargyId'];
+ }
+ return $R;
+ }
+
+ function getTargyNevByTargyId($targyId) {
+ $q = "SELECT targyNev FROM targy WHERE targyId=%u";
+ $v = array(intval($targyId));
+ return $r = db_query($q, array('fv'=>'getTargyNev','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v));
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/terem.php b/mayor-orig/www/include/modules/naplo/share/terem.php
new file mode 100644
index 00000000..f4a722a2
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/terem.php
@@ -0,0 +1,112 @@
+<?php
+
+ function getTeremAdatById($teremId) {
+
+ $q = "SELECT * FROM terem WHERE teremId=%u";
+ return db_query($q, array('fv' => 'getTeremAdatById', 'modul' => 'naplo_intezmeny', 'values' => array($teremId), 'result' => 'record'));
+
+ }
+
+ function getTermek($SET = array('result' => 'indexed', 'tipus' => array(), 'telephelyId' => null), $olr = null) {
+ $result = readVariable($SET['result'], 'enum', 'indexed', array('indexed', 'idonly', 'assoc'));
+ $v = array();
+
+ if (is_array($SET['tipus']) && count($SET['tipus'])>0) {
+ $W[] = " tipus IN ('".implode("','", array_fill(0, count($SET['tipus']), '%s'))."')";
+ $v = $SET['tipus'];
+ } else {
+ $W[] = " tipus != 'megszűnt' ";
+ }
+ if ($SET['telephelyId']!='') {
+ $W[] = " (telephelyId=%u OR telephelyId IS NULL) "; // vagy set vagy null
+ $v[] = $SET['telephelyId'];
+ }
+
+ if (count($W) > 0) $WHERE = ' WHERE '.implode(' AND ', $W);
+
+ if ($result == 'idonly') {
+ $q = "SELECT teremId FROM ".__INTEZMENYDBNEV.".terem".$WHERE." ORDER BY teremId";
+ } else {
+ $q = "SELECT * FROM ".__INTEZMENYDBNEV.".terem".$WHERE." ORDER BY teremId";
+ }
+ $R = db_query($q, array('fv' => 'getTerem', 'modul' => 'naplo_intezmeny', 'result' => $result, 'values' => $v, 'keyfield' => 'teremId'), $olr);
+ return $R;
+ }
+
+ function getSzabadTermekByDt($dt, $teremIds = array(), $forras = 'orarendiOra', $olr = '') {
+
+ if (!is_array($teremIds) || count($teremIds) == 0) $teremIds = getTermek(array('result' => 'idonly', 'tipus'=>array('tanterem','labor')), $olr);
+ $szabadTermek = $foglaltTermek = array();
+ if ($forras == 'ora')
+ $q = "SELECT DISTINCT ora,teremId FROM ".__TANEVDBNEV.".ora
+ WHERE dt='%s' ORDER BY ora,teremId";
+ else
+ $q = "SELECT DISTINCT ora,teremId FROM ".__TANEVDBNEV.".nap LEFT JOIN ".__TANEVDBNEV.".orarendiOra
+ ON (((DAYOFWEEK(dt)+5) MOD 7)+1 = orarendiOra.nap)
+ AND orarendiOra.het=nap.orarendiHet
+ AND orarendiOra.tolDt<=dt AND orarendiOra.igDt>=dt
+ WHERE dt='%s' ORDER BY ora,teremId";
+ $ret = db_query($q, array('fv' => 'getSzabadTermekByDt', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => array($dt)), $olr);
+ for ($i = 0; $i < count($ret); $i++) $foglaltTermek[$ret[$i]['ora']][] = $ret[$i]['teremId'];
+ foreach ($foglaltTermek as $ora => $fTermek) {
+ $szT = array_diff($teremIds, $fTermek);
+ // reindex
+ foreach($szT as $_key => $_value)
+ $szabadTermek[$ora][] = intval($_value);
+ }
+ return $szabadTermek;
+
+ }
+
+ function getSzabadTermekByDtInterval($tolDt, $igDt, $teremIds, $forras = 'orarendiOra') {
+
+ if (!is_array($teremIds)) $teremIds = getTermek(array('result' => 'idonly', 'tipus'=>array('tanterem','szaktanterem','osztályterem','labor','gépterem','tornaterem','előadó')));
+
+ for ($dt = $tolDt; strtotime($dt) <= strtotime($igDt); $dt = date('Y-m-d', strtotime('+1 days', strtotime($dt)))) {
+ $szabadTermek[$dt] = getSzabadTermekByDt($dt, $teremIds, $forras);
+ }
+
+ return $szabadTermek;
+ }
+
+ function getFoglaltTeremekByOrarendiOra($SET = array('tanev' => __TANEV, 'dt' => null, 'het' => null, 'nap' => null, 'ora' => null)) {
+
+
+ $dt = readVariable($SET['dt'], 'datetime', null);
+ initTolIgDt($SET['tanev'], $dt, $dt);
+
+ // Ha van dátum, de nincs hét, nap óra, akkor azt a dátum alapján kellene beállítani)
+ if (isset($SET['het']) && isset($SET['nap']) && isset($SET['ora']) && isset($dt) && isset($SET['tanev'])) {
+
+ $tanevDb = tanevDbNev(__INTEZMENY, $SET['tanev']);
+ $q = "SELECT * FROM `%s`.orarendiOra LEFT JOIN `%s`.orarendiOraTankor USING (tanarId,osztalyJel,targyJel)
+ WHERE tolDt <= '%s' AND '%s' <= igDt
+ AND het=%u AND nap=%u AND ora=%u
+ AND teremId IS NOT NULL
+ ORDER BY teremId";
+ $v = array($tanevDb, $tanevDb, $dt, $dt, $SET['het'], $SET['nap'], $SET['ora']);
+ return db_query($q, array('fv' => 'getFoglaltTermekByOrarendiOra', 'modul' => 'naplo_intezmeny', 'keyfield' => 'teremId', 'result' => 'assoc', 'values' => $v));
+
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:het,nap,ora,tanev,dt';
+ return false;
+ }
+
+
+ }
+
+ function getTeremPreferencia($SET = array('telephelyId' => null,'teremPreferenciaId'=>null)) {
+
+ if ($SET['teremPreferenciaId']!='') {
+ $W = 'WHERE teremPreferenciaId=%u';
+ $v = array($SET['teremPreferenciaId']);
+ } else {
+ $W='';
+ $v = array();
+ }
+ $q = "SELECT * FROM teremPreferencia $W ORDER BY teremPreferenciaId";
+ return db_query($q, array('fv' => 'getFoglaltTermekByOrarendiOra', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/verseny.php b/mayor-orig/www/include/modules/naplo/share/verseny.php
new file mode 100644
index 00000000..29700181
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/verseny.php
@@ -0,0 +1,20 @@
+<?php
+
+ function getVersenyek() {
+
+ $q = "SELECT * FROM verseny";
+ return db_query($q, array('modul'=>'naplo_intezmeny'));
+
+ }
+
+ function ujVerseny($ADAT) {
+
+
+ $q = "INSERT INTO verseny (targyId,versenyNev) VALUES (%u,'%s')";
+ $v = array($ADAT['targyId'],$ADAT['versenyNev']);
+
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/vizsga.php b/mayor-orig/www/include/modules/naplo/share/vizsga.php
new file mode 100644
index 00000000..1154d9b4
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/vizsga.php
@@ -0,0 +1,41 @@
+<?php
+
+ function getVizsgak($ADAT) {
+
+ if (isset($ADAT['diakId'])) { $W[] = 'diakId=%u'; $v[] = $ADAT['diakId']; }
+ if (isset($ADAT['targyId'])) { $W[] = 'targyId=%u'; $v[] = $ADAT['targyId']; }
+
+ if (isset($ADAT['evfolyamJel'])) { $W[] = "(vizsga.evfolyamJel='%s' OR vizsga.evfolyam=%u)"; $v[] = $ADAT['evfolyamJel']; $v[] = $ADAT['evfolyam']; }
+ else if (isset($ADAT['evfolyam'])) { $W[] = 'vizsga.evfolyam=%u'; $v[] = $ADAT['evfolyam']; }
+
+ if (isset($ADAT['jelentkezesDt'])) { $W[] = "jelentkezesDt='%s'"; $v[] = $ADAT['jelentkezesDt']; }
+ if (isset($ADAT['vizsgaDt'])) { $W[] = "vizsgaDt='%s'"; $v[] = $ADAT['vizsgaDt']; }
+
+ if (!is_array($W) || $W == '') return false;
+
+ $q = "SELECT *, vizsga.evfolyam AS evfolyam, vizsga.evfolyamJel AS evfolyamJel FROM vizsga
+ LEFT JOIN zaradek USING (zaradekId,diakId)
+ LEFT JOIN zaroJegy USING (zaroJegyId,diakId,targyId,felev)
+ WHERE ".implode(' AND ', $W)." ORDER BY jelentkezesDt DESC,targyId,diakId";
+ $ret = db_query($q, array(
+ 'modul' => 'naplo_intezmeny', 'fv' => 'getVizsgak', 'result' => 'indexed', 'values' => $v)
+ );
+
+ return $ret;
+
+ }
+
+ function getVizsgaAdatById($vizsgaId) {
+
+ $q = "SELECT *, vizsga.evfolyam AS evfolyam, vizsga.evfolyamJel AS evfolyamJel FROM vizsga
+ LEFT JOIN zaradek USING (zaradekId,diakId)
+ LEFT JOIN zaroJegy USING (zaroJegyId,diakId,targyId,felev)
+ WHERE vizsgaId=%u";
+ $v = array($vizsgaId);
+ return db_query($q, array(
+ 'modul' => 'naplo_intezmeny', 'fv' => 'getVizsgaAdatById', 'result' => 'record', 'values' => $v)
+ );
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/share/zaradek.php b/mayor-orig/www/include/modules/naplo/share/zaradek.php
new file mode 100644
index 00000000..edc432b4
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/zaradek.php
@@ -0,0 +1,543 @@
+<?php
+
+ function zaradekRogzites($ADAT, $olr='') {
+ /**
+ * $ADAT:
+ * csere - array(mit => mire...)
+ * zaradekId - a lecserélendő záradék (optional)
+ * diakId, dt, zaradekIndex (require)
+ **/
+
+ global $Zaradek;
+
+ $lr = ($olr=='') ? db_connect('naplo_intezmeny') : $olr;
+ if (!is_array($ADAT['csere'])) $ADAT['csere'] = array();
+
+ if (isset($ADAT['zaradekId'])) {
+ $q = "UPDATE zaradek SET diakId=%u,dt='%s',sorszam='%s',dokumentum='%s',szoveg='%s',zaradekIndex=%u WHERE zaradekId=%u";
+ $v = array(
+ $ADAT['diakId'], $ADAT['dt'], $Zaradek[$ADAT['zaradekIndex']]['sorszam'],
+ str_replace(', ', ',', $Zaradek[$ADAT['zaradekIndex']]['dokumentum']),
+ str_replace(array_keys($ADAT['csere']), array_values($ADAT['csere']), $Zaradek[$ADAT['zaradekIndex']]['szoveg']),
+ $ADAT['zaradekIndex'], $ADAT['zaradekId']
+ );
+ $ret = db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'zaradekRogzites', 'values' => $v), $lr);
+ } else {
+ $q = "INSERT INTO zaradek (diakId, dt, sorszam, dokumentum, szoveg, zaradekIndex,iktatoszam) VALUES
+ (%u, '%s', '%s', '%s', '%s', %u,'%s')";
+ $v = array(
+ $ADAT['diakId'], $ADAT['dt'], $Zaradek[$ADAT['zaradekIndex']]['sorszam'],
+ str_replace(', ', ',', $Zaradek[$ADAT['zaradekIndex']]['dokumentum']),
+ str_replace(array_keys($ADAT['csere']), array_values($ADAT['csere']), $Zaradek[$ADAT['zaradekIndex']]['szoveg']),
+ $ADAT['zaradekIndex'], $ADAT['iktatoszam']
+ );
+ $ret = db_query($q, array('modul' => 'naplo_intezmeny', 'fv' => 'zaradekRogzites', 'result' => 'insert', 'values' => $v), $lr);
+ }
+
+ if ($olr=='') db_close($lr);
+ return $ret;
+ }
+
+ function getZaradekok() {
+ global $Zaradek;
+ return $Zaradek;
+ }
+
+ function getDiakZaradekok($diakId, $SET = array('tolDt' => null, 'igDt' => null, 'dokumentum' => null, 'tipus' => null, 'result' => 'indexed', 'keyfield' => null)) {
+
+ global $Zaradek, $ZaradekIndex;
+
+ $dokumentum = readVariable($SET['dokumentum'], 'enum', null, array('beírási napló','osztálynapló','törzslap','bizonyítvány'));
+ $tolDt = readVariable($SET['tolDt'], 'datetime', '1940-01-01');
+ $igDt = readVariable($SET['igDt'], 'datetime', '2050-01-01');
+ $tipus = readVariable($SET['tipus'], 'enum', null, array_keys($ZaradekIndex));
+ if ($SET['result']=='') $SET['result'] = 'indexed';
+
+ $q = "SELECT zaradekId,diakId,dt,sorszam,dokumentum,IF(iktatoszam!='',CONCAT(szoveg,' (',iktatoszam,')'),szoveg) AS szoveg,zaradekIndex,iktatoszam FROM zaradek WHERE diakId=%u AND '%s' <= dt AND dt <= '%s'";
+ $v = array($diakId, $tolDt, $igDt);
+ if (isset($dokumentum)) {
+ $q .= " AND dokumentum LIKE '%%%s%%'";
+ $v[] = $dokumentum;
+ }
+ if (isset($tipus)) {
+ $q .= " AND zaradekIndex IN (".implode(',',array_values($ZaradekIndex[$tipus])).")";
+ }
+ $q .= " ORDER BY dt,zaradekId,sorszam";
+ return db_query($q, array(
+ 'modul' => 'naplo_intezmeny', 'fv' => 'getDiakZaradekok', 'result' => $SET['result'], 'keyfield' => $SET['keyfield'], 'values' => $v)
+ );
+
+ }
+
+ function getZaradekokByDiakIds($diakIds, $SET = array('tolDt' => null, 'igDt' => null, 'dokumentum' => null, 'tipus' => null, 'result' => 'indexed', 'keyfield' => null)) {
+
+ global $Zaradek, $ZaradekIndex;
+
+ if (!is_array($diakIds) || count($diakIds) < 1) return false;
+
+ $dokumentum = readVariable($SET['dokumentum'], 'enum', null, array('beírási napló','osztálynapló','törzslap','bizonyítvány'));
+ $tolDt = readVariable($SET['tolDt'], 'datetime', '1940-01-01');
+ $igDt = readVariable($SET['igDt'], 'datetime', '2050-01-01');
+ $tipus = readVariable($SET['tipus'], 'enum', null, array_keys($ZaradekIndex));
+ if ($SET['result']=='') { $SET['result'] = 'assoc'; $SET['keyfield'] = 'diakId'; }
+
+ $q = "SELECT * FROM zaradek WHERE diakId IN (".implode(',', array_fill(0, count($diakIds), '%u')).") AND '%s' <= dt AND dt <= '%s'";
+ $v = $diakIds;
+ $v[] = $tolDt; $v[] = $igDt;
+ if (isset($dokumentum)) {
+ $q .= " AND dokumentum LIKE '%%%s%%'";
+ $v[] = $dokumentum;
+ }
+ if (isset($tipus)) {
+ $q .= " AND zaradekIndex IN (".implode(',',array_values($ZaradekIndex[$tipus])).")";
+ }
+ $q .= " ORDER BY dt,sorszam,zaradekId";
+ return db_query($q, array(
+ 'modul' => 'naplo_intezmeny', 'fv' => 'getDiakZaradekok', 'result' => $SET['result'], 'keyfield' => $SET['keyfield'], 'values' => $v)
+ );
+
+ }
+
+ function getZaradekokByIndexes($zaradekIndexes) {
+
+ global $Zaradek;
+
+ $ret = array();
+ if (is_array($zaradekIndexes)) foreach ($zaradekIndexes as $key => $zaradekIndex) {
+ $ret[$zaradekIndex] = $Zaradek[$zaradekIndex];
+ }
+ return $ret;
+
+ }
+
+ function getZaradekokByTipus($tipus) {
+ /**
+ * A tipus paraméter vesszővel elválasztva több típust is tartalmazhat.
+ **/
+ global $ZaradekIndex;
+
+ foreach (explode(',', $tipus) as $idx => $_tipus) {
+ foreach ($ZaradekIndex[trim($_tipus)] as $key => $zIndex) $zaradekIndexes[] = $zIndex;
+ }
+ return getZaradekokByIndexes($zaradekIndexes);
+
+ }
+
+ function zaradekTorles($zaradekId) {
+ $q = "DELETE FROM zaradek WHERE zaradekId=%u";
+ return db_query($q, array('fv'=>'zaradekTorles','modul'=>'naplo_intezmeny','values'=>array($zaradekId)));
+ }
+
+if (__TANEV < 2013) {
+
+$Zaradek = array(
+1 => array('sorszam' => '1.', 'szoveg' => 'Felvéve a(z) %iskola címe% iskolába.', 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+2 => array('sorszam' => '1.', 'szoveg' => 'Átvéve a(z) %iskola címe% iskolába.', 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+3 => array('sorszam' => '1.', 'szoveg' => 'A(z) %határozat száma% számú határozattal áthelyezve a(z) %iskola címe% iskolába.', 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+4 => array('sorszam' => '1/A', 'szoveg' => 'Az első évfolyam követelményeit nem teljesítette, munkája előkészítőnek minősül, tanulmányait az első évfolyamon folytathatja.', 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+5 => array('sorszam' => '2.', 'szoveg' => 'A %fordítás száma% számú fordítással hitelesített bizonyítvány alapján tanulmányait a(z) %évfolyam betűvel% évfolyamon folytatja.', 'dokumentum' => 'beírási napló, törzslap'),
+6 => array('sorszam' => '3.', 'szoveg' => 'Felvette a(z) %iskola címe% iskola.', 'dokumentum' => 'beírási napló, törzslap, osztálynapló'),
+7 => array('sorszam' => '4.', 'szoveg' => 'Tanulmányait évfolyamismétléssel kezdheti meg, illetve osztályozó vizsga letételével folytathatja.', 'dokumentum' => 'beírási napló, törzslap, osztálynapló'),
+8 => array('sorszam' => '4/A', 'szoveg' => '%Tantárgy% tantárgyból tanulmányait egyéni továbbhaladás szerint végzi.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+9 => array('sorszam' => '4/B', 'szoveg' => 'Mentesítve %tantárgy% tantárgyból az értékelés és a minősítés alól.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+10 => array('sorszam' => '4/C', 'szoveg' => '%Tantárgy% tantárgy %évfolyamok% évfolyamainak követelményeit egy tanévben teljesítette a következők szerint: %jegyek%', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+11 => array('sorszam' => '5.', 'szoveg' => 'Egyes tantárgyak tanórai látogatása alól az %tanév jele% tanévben felmentve %felmentés oka% miatt.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány)'),
+12 => array('sorszam' => '5.', 'szoveg' => 'Egyes tantárgyak tanórai látogatása alól az %tanév jele% tanévben felmentve %felmentés oka% miatt. Osztályozó vizsgát köteles tenni', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+13 => array('sorszam' => '6.', 'szoveg' => 'Tanulmányait a szülő kérésére (szakértői vélemény alapján) magántanulóként folytatja.', 'dokumentum' => 'osztálynapló, törzslap'),
+14 => array('sorszam' => '7.', 'szoveg' => 'Mentesítve a(z) %tantárgyak neve% tantárgy tanulása alól.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+15 => array('sorszam' => '8.', 'szoveg' => 'Tanulmányi idejének megrövidítése miatt a(z) %évfolyam% évfolyam tantárgyból osztályozó vizsgát köteles tenni.', 'dokumentum' => 'osztálynapló, törzslap'),
+16 => array('sorszam' => '9.', 'szoveg' => 'A(z) évfolyamra megállapított tantervi követelményeket a tanulmányi idő megrövidítésével teljesítette.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+17 => array('sorszam' => '10.', 'szoveg' => 'A(z) %tantárgy% tantárgy %ezen óráinak% óráinak látogatása alól felmentve %tólDt%-tól %igDt%-ig.', 'dokumentum' => 'osztálynapló'),
+18 => array('sorszam' => '10.', 'szoveg' => 'A(z) %tantárgy% tantárgy %ezen óráinak% óráinak látogatása alól felmentve %tólDt%-tól %igDt%-ig. Osztályozó vizsgát köteles tenni.', 'dokumentum' => 'osztálynapló'),
+19 => array('sorszam' => '11.', 'szoveg' => 'Mulasztása miatt nem osztályozható, a nevelőtestület határozata értelmében osztályozó vizsgát tehet.', 'dokumentum' => 'osztálynapló, törzslap'),
+20 => array('sorszam' => '12.', 'szoveg' => 'A nevelőtestület határozata: a(z) %évfolyam betűvel% évfolyamba léphet.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+21 => array('sorszam' => '12.', 'szoveg' => 'A nevelőtestület határozata: iskolai tanulmányait befejezte, tanulmányait %évfolyam% évfolyamon folytathatja.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+22 => array('sorszam' => '13.', 'szoveg' => 'A tanuló az %évfolyam% évfolyam követelményeit egy tanítási évnél hosszabb ideig, %hónap szám% hónap alatt teljesítette.', 'dokumentum' => 'osztálynapló, törzslap'),
+23 => array('sorszam' => '14.', 'szoveg' => 'A(z) %tantárgy% tantárgyból javítóvizsgát tehet.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+24 => array('sorszam' => '14.', 'szoveg' => 'A javítóvizsgán %tantárgy% tantárgyból %osztályzat% osztályzatot kapott, %évfolyam% évfolyamba léphet.', 'dokumentum' => 'törzslap, bizonyítvány'),
+25 => array('sorszam' => '15.', 'szoveg' => 'A(z) %évfolyam% évfolyam követelményeit nem teljesítette, az évfolyamot megismételheti.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+26 => array('sorszam' => '15/A', 'szoveg' => 'Az %évfolyam% évfolyamot az 1993. évi LXXIX. törvény 72. §-ának (4) bekezdésében foglaltak alapján megismételte.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+27 => array('sorszam' => '16.', 'szoveg' => 'A javítóvizsgán %tantárgy% tantárgyból elégtelen osztályzatot kapott. Évfolyamot ismételni köteles.', 'dokumentum' => 'törzslap, bizonyítvány'),
+28 => array('sorszam' => '17.', 'szoveg' => 'A(z) %tantárgy% tantárgyból %dátum%-án osztályozó vizsgát tett.', 'dokumentum' => 'osztálynapló, törzslap'),
+29 => array('sorszam' => '18.', 'szoveg' => 'Osztályozó vizsgát tett.', 'dokumentum' => 'törzslap, bizonyítvány'),
+30 => array('sorszam' => '19.', 'szoveg' => 'A(z) %tantárgy% tantárgy alól %felmentés oka% okból felmentve.', 'dokumentum' => 'törzslap, bizonyítvány'),
+31 => array('sorszam' => '20.', 'szoveg' => 'A(z) %tanóra% tanóra alól %felmentés oka% okból felmentve.', 'dokumentum' => 'törzslap, bizonyítvány'),
+32 => array('sorszam' => '21.', 'szoveg' => 'Az osztályozóvizsga letételére %igDt%-ig halasztást kapott.', 'dokumentum' => 'törzslap, bizonyítvány'),
+33 => array('sorszam' => '21.', 'szoveg' => 'Az beszámoltatóvizsga letételére %igDt%-ig halasztást kapott.', 'dokumentum' => 'törzslap, bizonyítvány'),
+34 => array('sorszam' => '21.', 'szoveg' => 'Az különbözetivizsga letételére %igDt%-ig halasztást kapott.', 'dokumentum' => 'törzslap, bizonyítvány'),
+35 => array('sorszam' => '21.', 'szoveg' => 'Az javítóvizsga letételére %igDt%-ig halasztást kapott.', 'dokumentum' => 'törzslap, bizonyítvány'),
+36 => array('sorszam' => '22.', 'szoveg' => 'Az osztályozó vizsgát engedéllyel a(z) %iskola% iskolában független vizsgabizottság előtt tette le.', 'dokumentum' => 'törzslap, bizonyítvány'),
+37 => array('sorszam' => '22.', 'szoveg' => 'Az javítóvizsgát engedéllyel a(z) %iskola% iskolában független vizsgabizottság előtt tette le.', 'dokumentum' => 'törzslap, bizonyítvány'),
+38 => array('sorszam' => '23.', 'szoveg' => 'A(z) %szakképesítés% szakképesítés évfolyamán folytatja tanulmányait.', 'dokumentum' => 'törzslap, bizonyítvány, osztálynapló'),
+39 => array('sorszam' => '24.', 'szoveg' => 'Tanulmányait %ok% okból megszakította, a tanulói jogviszonya %igDt%-ig szünetel.', 'dokumentum' => 'beírási napló, törzslap'),
+40 => array('sorszam' => '25.', 'szoveg' => 'A tanuló jogviszonya kimaradással megszűnt, a létszámból törölve.', 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+41 => array('sorszam' => '25.', 'szoveg' => 'A tanuló jogviszonya %igazolatlan órák száma% óra igazolatlan mulasztás miatt megszűnt, a létszámból törölve.', 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+42 => array('sorszam' => '25.', 'szoveg' => 'A tanuló jogviszonya egészségügyi alkalmasság miatt megszűnt, a létszámból törölve.', 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+43 => array('sorszam' => '25.', 'szoveg' => 'A tanuló jogviszonya térítési díj fizetési hátralék miatt megszűnt, a létszámból törölve.', 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+44 => array('sorszam' => '25.', 'szoveg' => 'A tanuló jogviszonya tandíj fizetési hátralék miatt megszűnt, a létszámból törölve.', 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+45 => array('sorszam' => '25.', 'szoveg' => 'A tanuló jogviszonya %iskola% iskolába való átvétel miatt megszűnt, a létszámból törölve.', 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+46 => array('sorszam' => '26.', 'szoveg' => '%Fegyelmező intézkedés% fegyelmező intézkedésben részesült.', 'dokumentum' => 'osztálynapló'),
+47 => array('sorszam' => '27.', 'szoveg' => '%Fegyelmi büntetés% fegyelmi büntetésben részesült. A büntetés végrehajtása %igDt%-ig felfüggesztve.', 'dokumentum' => ''),
+48 => array('sorszam' => '28.', 'szoveg' => 'Tanköteles tanuló igazolatlan mulasztása esetén a tanuló %igazolatlan órák száma% óra igazolatlan mulasztása miatt a szülőt felszólítottam.', 'dokumentum' => 'osztálynapló'),
+49 => array('sorszam' => '28.', 'szoveg' => 'Tanköteles tanuló igazolatlan mulasztása esetén a tanuló ismételt %igazolatlan órák száma% óra igazolatlan mulasztása miatt a szülő ellen szabálysértési eljárást kezdeményeztem.', 'dokumentum' => 'beírási napló, törzslap, osztálynapló'),
+50 => array('sorszam' => '29.', 'szoveg' => 'Tankötelezettség megszűnt.', 'dokumentum' => 'beírási napló'),
+51 => array('sorszam' => '30.', 'szoveg' => 'A %szó% szót %helyesbítés%-ra/re helyesbítettem.', 'dokumentum' => 'törzslap, bizonyítvány'),
+52 => array('sorszam' => '30.', 'szoveg' => 'A %szavak% szavakat %helyesbítés%-ra/re helyesbítettem.', 'dokumentum' => 'törzslap, bizonyítvány'),
+53 => array('sorszam' => '30.', 'szoveg' => 'A %osztályzat% osztályzatot %helyesbítés%-ra/re helyesbítettem.', 'dokumentum' => 'törzslap, bizonyítvány'),
+54 => array('sorszam' => '30.', 'szoveg' => 'A %osztályzatok% osztályzatokat %helyesbítés%-ra/re helyesbítettem.', 'dokumentum' => 'törzslap, bizonyítvány'),
+55 => array('sorszam' => '31.', 'szoveg' => 'A bizonyítvány %lap% lapját téves bejegyzés miatt érvénytelenítettem.', 'dokumentum' => 'bizonyítvány'),
+56 => array('sorszam' => '32.', 'szoveg' => 'Ezt a póttörzslapot a(z) %ok% következtében elvesztett (megsemmisült) eredeti helyett %adatforrás% adatai (adatok) alapján állítottam ki.', 'dokumentum' => 'Pót. törzslap'),
+57 => array('sorszam' => '33.', 'szoveg' => 'Ezt a bizonyítványmásodlatot az elveszett (megsemmisült) eredeti helyett %adatforrás% adatai (adatok) alapján állítottam ki.', 'dokumentum' => 'Pót. törzslap'),
+58 => array('sorszam' => '33/A', 'szoveg' => 'A bizonyítványt %kérelmező% kérelmére a %bizonyítványszám% számú bizonyítvány alapján, téves bejegyzés miatt állítottam ki.', 'dokumentum' => 'törzslap, bizonyítvány'),
+59 => array('sorszam' => '34.', 'szoveg' => 'Pótbizonyítvány. Igazolom, hogy név %Név%, anyja neve %Anyja neve% a(z) %iskola% iskola %szak% szak (szakmai, speciális osztály, két tanítási nyelvű osztály, tagozat) %évfolyam% évfolyamát a(z) %tanév jele% tanévben eredményesen elvégezte.', 'dokumentum' => 'Pót. bizonyítvány'),
+60 => array('sorszam' => '35.', 'szoveg' => 'Az iskola a tanulmányi eredmények bejegyzéséhez, a kiemelkedő tanulmányi eredmények elismeréséhez, a felvételi vizsga eredményeinek bejegyzéséhez %vizsga% vizsga eredményének befejezéséhez vagy egyéb, a záradékok között nem szereplő, a tanulóval kapcsolatos közlés dokumentálásához a záradékokat megfelelően alkalmazhatja, illetve megfelelően záradékot alakíthat ki.', 'dokumentum' => ''),
+61 => array('sorszam' => '36.', 'szoveg' => 'Érettségi vizsgát tehet.', 'dokumentum' => 'törzslap, bizonyítvány'),
+62 => array('sorszam' => '37.', 'szoveg' => 'Gyakorlati képzésről mulasztását %tólDt%-tól %igDt%-ig pótolhatja.', 'dokumentum' => 'törzslap, bizonyítvány, osztálynapló'),
+63 => array('sorszam' => '38.', 'szoveg' => 'Beírtam a %iskola% iskola első osztályába.', 'dokumentum' => ''),
+64 => array('sorszam' => '39.', 'szoveg' => 'Ezt a haladási naplót %tanítási napok száma% tanítási nappal lezártam.', 'dokumentum' => 'osztálynapló'),
+65 => array('sorszam' => '39.', 'szoveg' => 'Ezt a haladási naplót %tanítási órák száma% tanítási órával lezártam.', 'dokumentum' => 'osztálynapló'),
+66 => array('sorszam' => '40.', 'szoveg' => 'Ezt az osztályozó naplót %tanulók száma% azaz %tanulók száma betűvel% osztályozott tanulóval lezártam.', 'dokumentum' => 'osztálynapló'),
+
+67 => array('sorszam' => '1/B', 'szoveg' => 'Felvéve a(z) %iskola címe% %osztály% osztályába.', 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+68 => array('sorszam' => '17/A', 'szoveg' => 'A(z) %tantárgy% tantárgyból %dátum%-án beszámoltatóvizsgát tett.', 'dokumentum' => 'osztálynapló, törzslap'),
+69 => array('sorszam' => '17/B', 'szoveg' => 'A(z) %tantárgy% tantárgyból %dátum%-án különbözetivizsgát tett.', 'dokumentum' => 'osztálynapló, törzslap'),
+70 => array('sorszam' => '12/A', 'szoveg' => 'A nevelőtestület határozata: iskolai tanulmányait befejezte.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+71 => array('sorszam' => '35/D', 'szoveg' => 'A %iktatószám% alapján tanulmányait a %osztály% osztályban folytatja.', 'dokumentum' => 'beírási napló, törzslap'),
+72 => array('sorszam' => '16/A', 'szoveg' => 'Az osztályozó vizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%.', 'dokumentum' => 'törzslap, bizonyítvány'),
+73 => array('sorszam' => '16/B', 'szoveg' => 'A beszámoltatóvizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%.', 'dokumentum' => 'törzslap, bizonyítvány'),
+74 => array('sorszam' => '16/C', 'szoveg' => 'A különbözetivizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%.', 'dokumentum' => 'törzslap, bizonyítvány'),
+75 => array('sorszam' => '16/D', 'szoveg' => 'A javítóvizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%. Évfolyamot ismételni köteles.', 'dokumentum' => 'törzslap, bizonyítvány'),
+
+100 => array('sorszam' => '35/A', 'szoveg' => '%Egyedi osztálynapló záradék%', 'dokumentum' => 'osztálynapló'),
+101 => array('sorszam' => '35/B', 'szoveg' => '%Egyedi törzslap záradék%', 'dokumentum' => 'törzslap'),
+102 => array('sorszam' => '35/C', 'szoveg' => '%Egyedi bizonyítvány záradék%', 'dokumentum' => 'bizonyítvány'),
+103 => array('sorszam' => '35/F', 'szoveg' => 'A(z) %zaradekId% nyilvántartási számú záradékban rögzített felmentést %dt% napon hatályon kívül helyeztem. ', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+104 => array('sorszam' => '4/C', 'szoveg' => '%miatt% miatt mentesítve a(z) %mi% értékelés(e) és a minősítés(e) alól.', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+105 => array('sorszam' => '35/E', 'szoveg' => 'A(z) %tankorDiakFelmentesId% nyilvántartási számú felmentést %dt% napon hatályon kívül helyeztem. ', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+106 => array('sorszam' => '17/C', 'szoveg' => 'A(z) %tantárgy% tantárgyból a(z) %évfolyam% évfolyam anyagából %dátum% napon %osztályzat% eredménnyel osztályozó vizsgát tett.', 'dokumentum' => 'osztálynapló, törzslap'),
+
+107 => array('sorszam' => '25/A', 'szoveg' => 'A tanuló jogviszonya haláleset miatt megszűnt, a létszámból törölve.', 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+
+);
+
+$ZaradekIndex = array(
+ 'konferencia' => array(
+ // továbbléphet
+ 'következő évfolyamba léphet' => 20, // %évfolyam betűvel%
+ 'tanulmányait befejezte' => 70,
+ // vizsgázhat
+ 'mulasztás miatt osztályozóvizsga' => 19,
+ 'javítóvizsgát tehet' => 23, // %tantárgy%
+ // évfolyamot ismételhet
+ 'előkészítőt végzett' => 4,
+ 'követelményeket nem teljesítette, évfolyamot ismételhet' => 25, // %évfolyam%
+ ),
+ 'jogviszony' => array(
+ 'megnyitás' => array(
+ 'felvétel' => 1,
+ 'felvétel osztályba' => 67,
+ 'átvétel' => 2,
+ 'áthelyezés' => 3
+ ),
+ 'változás' => array(
+ 'magántanuló' => 13,
+ 'felfüggesztés' => 39
+ ),
+ 'lezárás' => array(
+ 'kimaradás' => 40,
+ 'igazolatlan órák' => 41,
+ 'egészségügyi alkalmasság' => 42,
+ 'térítési díj hátralék' => 43,
+ 'tandíj hátralék' => 44,
+ 'átvétel' => 45,
+ 'haláleset' => 107,
+ 'tanulmányait folytathatja' => 21,
+ 'tanulmányait befejezte' => 70
+ )
+ ),
+ 'vizsga halasztás' => array(
+ 'osztályozó vizsga' => 32,
+ 'beszámoltatóvizsga' => 33,
+ 'különbözetivizsga' => 34,
+ 'javítóvizsga' => 35,
+ ),
+ 'vizsga' => array(
+ 'osztályozó vizsga' => 106, // 28 volt
+ 'osztályozó vizsga bukás' => 72,
+ 'beszámoltatóvizsga' => 68,
+ 'beszámoltatóvizsga bukás' => 73,
+ 'különbözetivizsga' => 69,
+ 'különbözetivizsga bukás' => 74,
+ 'javítóvizsga' => 24,
+ 'javítóvizsga bukás' => 27,
+ 'javítóvizsga nem teljesített' => 75,
+ ),
+ 'felmentés' => array(
+ 'értékelés alól' =>9,
+ 'értékelés és minősítés alól' => 104,
+ 'óra látogatása alól' => 17,
+ 'óra látogatása alól osztályozóvizsgával' => 18,
+ 'tárgy tanulása alól' => 14,
+ 'törlés' => 105
+ ),
+ 'törzslap feljegyzés' => array(
+ 'egyedi törzslap záradék' => 101
+ )
+
+);
+
+} else { // 20/2012 EMMI rendelet
+
+$Zaradek = array(
+1 => array('sorszam' => '1.', 'szoveg' => 'Felvéve a(z) %iskola címe% iskolába.',
+ 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+2 => array('sorszam' => '1.', 'szoveg' => 'Átvéve a(z) %iskola címe% iskolába.',
+ 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+3 => array('sorszam' => '1.', 'szoveg' => 'A(z) %határozat száma% számú határozattal áthelyezve a(z) %iskola címe% iskolába.',
+ 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+4 => array('sorszam' => '1/A', 'szoveg' => 'Az első évfolyam követelményeit nem teljesítette, munkája előkészítőnek minősül, tanulmányait az első évfolyamon folytathatja.',
+ 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+5 => array('sorszam' => '2.', 'szoveg' => 'A %fordítás száma% számú fordítással hitelesített bizonyítvány alapján tanulmányait a(z) %évfolyam betűvel% évfolyamon folytatja.',
+ 'dokumentum' => 'beírási napló, törzslap'),
+6 => array('sorszam' => '3.', 'szoveg' => 'Felvette a(z) %iskola címe% iskola.',
+ 'dokumentum' => 'beírási napló, törzslap, osztálynapló'),
+7 => array('sorszam' => '4.', 'szoveg' => 'Tanulmányait évfolyamismétléssel kezdheti meg, vagy osztályozó vizsga letételével folytathatja.',
+ 'dokumentum' => 'beírási napló, törzslap, osztálynapló'),
+8 => array('sorszam' => '5.', 'szoveg' => '%Tantárgy% tantárgyból tanulmányait egyéni továbbhaladás szerint végzi.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+9 => array('sorszam' => '6.', 'szoveg' => 'Mentesítve %tantárgy% tantárgyból az értékelés és a minősítés alól.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+10 => array('sorszam' => '7.', 'szoveg' => '%Tantárgy% tantárgy %évfolyamok% évfolyamainak követelményeit egy tanévben teljesítette a következők szerint: %jegyek%',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+11 => array('sorszam' => '8.', 'szoveg' => 'Egyes tantárgyak tanórai látogatása alól az %tanév jele% tanévben felmentve %felmentés oka% miatt.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány)'),
+12 => array('sorszam' => '8.', 'szoveg' => 'Egyes tantárgyak tanórai látogatása alól az %tanév jele% tanévben felmentve %felmentés oka% miatt. Osztályozó vizsgát köteles tenni',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+13 => array('sorszam' => '9.', 'szoveg' => 'Tanulmányait a szülő kérésére (szakértői vélemény alapján) magántanulóként folytatja.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+14 => array('sorszam' => '10.', 'szoveg' => 'Mentesítve a(z) %tantárgyak neve% tantárgy tanulása alól.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+15 => array('sorszam' => '11.', 'szoveg' => 'Tanulmányi idejének megrövidítése miatt a(z) %évfolyam% évfolyam tantárgyaiból osztályozó vizsgát köteles tenni.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+16 => array('sorszam' => '12.', 'szoveg' => 'A(z) %évfolyam% évfolyamra megállapított tantervi követelményeket a tanulmányi idő megrövidítésével teljesítette.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'), // %evfolyam% paraméter nincs a rendeletben
+17 => array('sorszam' => '13.', 'szoveg' => 'A(z) %tantárgy% tantárgy %ezen óráinak% óráinak látogatása alól felmentve %tólDt%-tól %igDt%-ig.',
+ 'dokumentum' => 'osztálynapló'), // %ezen óráinak% paraméter nincs a rendeletben
+18 => array('sorszam' => '13.', 'szoveg' => 'A(z) %tantárgy% tantárgy %ezen óráinak% óráinak látogatása alól felmentve %tólDt%-tól %igDt%-ig. Osztályozó vizsgát köteles tenni.',
+ 'dokumentum' => 'osztálynapló'), // %ezen óráinak% paraméter nincs a rendeletben
+19 => array('sorszam' => '14.', 'szoveg' => 'Mulasztása miatt nem osztályozható, a nevelőtestület határozata értelmében osztályozó vizsgát tehet.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+20 => array('sorszam' => '15.', 'szoveg' => 'A nevelőtestület határozata: a(z) %évfolyam betűvel% évfolyamba léphet.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+21 => array('sorszam' => '15.', 'szoveg' => 'A nevelőtestület határozata: iskolai tanulmányait befejezte, tanulmányait %évfolyam% évfolyamon folytathatja.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'), // csak "iskolai tanulmányait befejezte - nincs?
+22 => array('sorszam' => '16.', 'szoveg' => 'A tanuló az %évfolyam% évfolyam követelményeit egy tanítási évnél hosszabb ideig, %hónap szám% hónap alatt teljesítette.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+23 => array('sorszam' => '17.', 'szoveg' => 'A(z) %tantárgy% tantárgyból javítóvizsgát tehet.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+24 => array('sorszam' => '17.', 'szoveg' => 'A javítóvizsgán %tantárgy% tantárgyból %osztályzat% osztályzatot kapott, %évfolyam% évfolyamba léphet.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+25 => array('sorszam' => '18.', 'szoveg' => 'A(z) %évfolyam% évfolyam követelményeit nem teljesítette, az évfolyamot meg kell ismételnie.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+26 => array('sorszam' => '', 'szoveg' => '', 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+27 => array('sorszam' => '19', 'szoveg' => 'A javítóvizsgán %tantárgy% tantárgyból elégtelen osztályzatot kapott. Évfolyamot ismételni köteles.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+28 => array('sorszam' => '20.', 'szoveg' => 'A(z) %tantárgy% tantárgyból %dátum%-án osztályozó vizsgát tett.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+29 => array('sorszam' => '21.', 'szoveg' => 'Osztályozó vizsgát tett.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+30 => array('sorszam' => '22.', 'szoveg' => 'A(z) %tantárgy% tantárgy alól %felmentés oka% okból felmentve.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+31 => array('sorszam' => '23.', 'szoveg' => 'A(z) %tanóra% tanóra alól %felmentés oka% okból felmentve.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+32 => array('sorszam' => '24.', 'szoveg' => 'Az osztályozóvizsga letételére %igDt%-ig halasztást kapott.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+33 => array('sorszam' => '24.', 'szoveg' => 'Az beszámoltatóvizsga letételére %igDt%-ig halasztást kapott.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+34 => array('sorszam' => '24.', 'szoveg' => 'Az különbözetivizsga letételére %igDt%-ig halasztást kapott.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+35 => array('sorszam' => '24.', 'szoveg' => 'Az javítóvizsga letételére %igDt%-ig halasztást kapott.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+36 => array('sorszam' => '25.', 'szoveg' => 'Az osztályozó vizsgát engedéllyel a(z) %iskola% iskolában független vizsgabizottság előtt tette le.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+37 => array('sorszam' => '25.', 'szoveg' => 'Az javítóvizsgát engedéllyel a(z) %iskola% iskolában független vizsgabizottság előtt tette le.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+38 => array('sorszam' => '26.', 'szoveg' => 'A(z) %szakképesítés% szakképesítés évfolyamán folytatja tanulmányait.',
+ 'dokumentum' => 'törzslap, bizonyítvány, osztálynapló'),
+39 => array('sorszam' => '27.', 'szoveg' => 'Tanulmányait %ok% okból megszakította, a tanulói jogviszonya %igDt%-ig szünetel.',
+ 'dokumentum' => 'beírási napló, törzslap'),
+40 => array('sorszam' => '28.', 'szoveg' => 'A tanuló jogviszonya kimaradással megszűnt, a létszámból törölve.',
+ 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+41 => array('sorszam' => '28.', 'szoveg' => 'A tanuló jogviszonya %igazolatlan órák száma% óra igazolatlan mulasztás miatt megszűnt, a létszámból törölve.',
+ 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+42 => array('sorszam' => '28.', 'szoveg' => 'A tanuló jogviszonya egészségügyi alkalmasság miatt megszűnt, a létszámból törölve.',
+ 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+43 => array('sorszam' => '28.', 'szoveg' => 'A tanuló jogviszonya térítési díj fizetési hátralék miatt megszűnt, a létszámból törölve.',
+ 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+44 => array('sorszam' => '28.', 'szoveg' => 'A tanuló jogviszonya tandíj fizetési hátralék miatt megszűnt, a létszámból törölve.',
+ 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+45 => array('sorszam' => '28.', 'szoveg' => 'A tanuló jogviszonya %iskola% iskolába való átvétel miatt megszűnt, a létszámból törölve.',
+ 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+46 => array('sorszam' => '29.', 'szoveg' => '%Fegyelmező intézkedés% fegyelmező intézkedésben részesült.',
+ 'dokumentum' => 'osztálynapló'),
+47 => array('sorszam' => '30.', 'szoveg' => '%Fegyelmi büntetés% fegyelmi büntetésben részesült. A büntetés végrehajtása %igDt%-ig felfüggesztve.',
+ 'dokumentum' => 'törzslap'),
+48 => array('sorszam' => '31.', 'szoveg' => 'A tanuló %igazolatlan órák száma% óra igazolatlan mulasztása miatt a szülőt felszólítottam.',
+ 'dokumentum' => 'osztálynapló'), // A "Tanköteles tanuló igazolatlan mulasztása esetén" szöveget magyarázatnak tekintettem
+49 => array('sorszam' => '31.', 'szoveg' => 'A tanuló ismételt %igazolatlan órák száma% óra igazolatlan mulasztása miatt a szülő ellen szabálysértési eljárást kezdeményeztem.',
+ 'dokumentum' => 'beírási napló, törzslap, osztálynapló'), // A "Tanköteles tanuló igazolatlan mulasztása esetén" szöveget magyarázatnak tekintettem
+50 => array('sorszam' => '32.', 'szoveg' => 'Tankötelezettség megszűnt.', 'dokumentum' => 'beírási napló'),
+51 => array('sorszam' => '33.', 'szoveg' => 'A %szó% szót %helyesbítés%-ra/re helyesbítettem.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+52 => array('sorszam' => '33.', 'szoveg' => 'A %szavak% szavakat %helyesbítés%-ra/re helyesbítettem.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+53 => array('sorszam' => '33.', 'szoveg' => 'A %osztályzat% osztályzatot %helyesbítés%-ra/re helyesbítettem.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+54 => array('sorszam' => '33.', 'szoveg' => 'A %osztályzatok% osztályzatokat %helyesbítés%-ra/re helyesbítettem.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+55 => array('sorszam' => '34.', 'szoveg' => 'A bizonyítvány %lap% lapját téves bejegyzés miatt érvénytelenítettem.',
+ 'dokumentum' => 'bizonyítvány'),
+56 => array('sorszam' => '35.', 'szoveg' => 'Ezt a póttörzslapot a(z) %ok% következtében elvesztett (megsemmisült) eredeti helyett %adatforrás% adatai (adatok) alapján állítottam ki.',
+ 'dokumentum' => 'Pót. törzslap'),
+57 => array('sorszam' => '36.', 'szoveg' => 'Ezt a bizonyítványmásodlatot az elveszett (megsemmisült) eredeti helyett %adatforrás% adatai (adatok) alapján állítottam ki.',
+ 'dokumentum' => 'Pót. törzslap'),
+58 => array('sorszam' => '37.', 'szoveg' => 'A bizonyítványt %kérelmező% kérelmére a %bizonyítványszám% számú bizonyítvány alapján, téves bejegyzés miatt állítottam ki.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+59 => array('sorszam' => '38.', 'szoveg' => 'Pótbizonyítvány. Igazolom, hogy név %Név%, anyja neve %Anyja neve% a(z) %iskola% iskola %szak% szak (szakmai, speciális osztály, két tanítási nyelvű osztály, tagozat) %évfolyam% évfolyamát a(z) %tanév jele% tanévben eredményesen elvégezte.',
+ 'dokumentum' => 'Pót. bizonyítvány'),
+60 => array('sorszam' => '39.', 'szoveg' => 'Az iskola a tanulmányi eredmények bejegyzéséhez, a kiemelkedő tanulmányi eredmények elismeréséhez, a felvételi vizsga eredményeinek bejegyzéséhez %vizsga% vizsga eredményének befejezéséhez vagy egyéb, a záradékok között nem szereplő, a tanulóval kapcsolatos közlés dokumentálásához a záradékokat megfelelően alkalmazhatja, illetve megfelelően záradékot alakíthat ki.',
+ 'dokumentum' => ''),
+61 => array('sorszam' => '40.', 'szoveg' => 'Érettségi vizsgát tehet.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+62 => array('sorszam' => '41.', 'szoveg' => 'Gyakorlati képzésről mulasztását %tólDt%-tól %igDt%-ig pótolhatja.',
+ 'dokumentum' => 'törzslap, bizonyítvány, osztálynapló'),
+63 => array('sorszam' => '42.', 'szoveg' => 'Beírtam a %iskola% iskola első osztályába.',
+ 'dokumentum' => ''),
+64 => array('sorszam' => '43.', 'szoveg' => 'Ezt a naplót %tanítási napok száma% tanítási nappal lezártam.',
+ 'dokumentum' => 'osztálynapló'),
+65 => array('sorszam' => '43.', 'szoveg' => 'Ezt a naplót %tanítási órák száma% tanítási órával lezártam.',
+ 'dokumentum' => 'osztálynapló'),
+66 => array('sorszam' => '44.', 'szoveg' => 'Ezt az osztályozó naplót %tanulók száma% azaz %tanulók száma betűvel% osztályozott tanulóval lezártam.',
+ 'dokumentum' => 'osztálynapló'),
+67 => array('sorszam' => '45.', 'szoveg' => 'Ezt az osztályozó naplót %tanulók száma% azaz %tanulók száma betűvel% osztályozott tanulóval lezártam.',
+ 'dokumentum' => 'osztálynapló'),
+68 => array('sorszam' => '46.', 'szoveg' => 'Igazolom, hogy a tanuló a %tanév jele% tanévig %elvégzett órák száma% óra közösségi szolgálatot teljesített.',
+ 'dokumentum' => 'bizonyítvány'),
+69 => array('sorszam' => '47.', 'szoveg' => 'A tanuló teljesítette az érettségi bizonyítvány kiadásához szükséges közösségi szolgálatot',
+ 'dokumentum' => 'törzslap'),
+70 => array('sorszam' => '48.', 'szoveg' => '%nemzetiség megnevezése% kiegészítő nemzetiségi tanulmányait a nyolcadik/tizenkettedik évfolyamon befejezte',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+
+
+
+
+100 => array('sorszam' => '1/A', 'szoveg' => 'Felvéve a(z) %iskola címe% %osztály% osztályába.',
+ 'dokumentum' => 'beírási napló, osztálynapló, törzslap, bizonyítvány'),
+101 => array('sorszam' => '6/B', 'szoveg' => '%miatt% miatt mentesítve a(z) %mi% értékelés(e) és a minősítés(e) alól.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+102 => array('sorszam' => '15/A', 'szoveg' => 'A nevelőtestület határozata: iskolai tanulmányait befejezte.',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+103 => array('sorszam' => '19/A', 'szoveg' => 'Az osztályozó vizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+104 => array('sorszam' => '19/B', 'szoveg' => 'A beszámoltatóvizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+105 => array('sorszam' => '19/C', 'szoveg' => 'A különbözetivizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%.',
+ 'dokumentum' => 'törzslap, bizonyítvány'),
+106 => array('sorszam' => '19/D', 'szoveg' => 'A javítóvizsgán a %tantárgy% tantárgy követelményeit nem teljesítette - %osztályzat%. Évfolyamot ismételni köteles.',
+ 'dokumentum' => 'törzslap, bizonyítvány'), // Ez nem kell, mert az eredeti 19-es épp erről az esetről szól - nem?
+107 => array('sorszam' => '20/A', 'szoveg' => 'A(z) %tantárgy% tantárgyból %dátum%-án beszámoltatóvizsgát tett.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+108 => array('sorszam' => '20/B', 'szoveg' => 'A(z) %tantárgy% tantárgyból %dátum%-án különbözetivizsgát tett.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+109 => array('sorszam' => '20/C', 'szoveg' => 'A(z) %tantárgy% tantárgyból a(z) %évfolyam% évfolyam anyagából %dátum% napon %osztályzat% eredménnyel osztályozó vizsgát tett.',
+ 'dokumentum' => 'osztálynapló, törzslap'),
+110 => array('sorszam' => '28/A', 'szoveg' => 'A tanuló jogviszonya haláleset miatt megszűnt, a létszámból törölve.',
+ 'dokumentum' => 'beírási napló, törzslap, bizonyítvány, osztálynapló'),
+111 => array('sorszam' => '39/A', 'szoveg' => '%Egyedi osztálynapló záradék%',
+ 'dokumentum' => 'osztálynapló'),
+112 => array('sorszam' => '39/B', 'szoveg' => '%Egyedi törzslap záradék%',
+ 'dokumentum' => 'törzslap'),
+113 => array('sorszam' => '39/C', 'szoveg' => '%Egyedi bizonyítvány záradék%',
+ 'dokumentum' => 'bizonyítvány'),
+114 => array('sorszam' => '39/D', 'szoveg' => 'A %iktatószám% alapján tanulmányait a %osztály% osztályban folytatja.',
+ 'dokumentum' => 'beírási napló, törzslap'),
+115 => array('sorszam' => '39/E', 'szoveg' => 'A(z) %tankorDiakFelmentesId% nyilvántartási számú felmentést %dt% napon hatályon kívül helyeztem. ',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+116 => array('sorszam' => '39/F', 'szoveg' => 'A(z) %zaradekId% nyilvántartási számú záradékban rögzített felmentést %dt% napon hatályon kívül helyeztem. ',
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+117 => array('sorszam' => '18/A', 'szoveg' => 'A(z) %évfolyam% évfolyam követelményeit nem teljesítette, az évfolyamot megismételheti.', // nem tanköteles diák esetén
+ 'dokumentum' => 'osztálynapló, törzslap, bizonyítvány'),
+
+);
+
+$ZaradekIndex = array(
+ 'konferencia' => array(
+ // továbbléphet
+ 'következő évfolyamba léphet' => 20, // %évfolyam betűvel%
+ 'tanulmányait befejezte, következő évfolyamon folytathatja' => 21, // %évfolyam%
+ 'tanulmányait befejezte' => 102,
+ 'szakképző évfolyamba léphet' => 38, // %szakképesítés%
+ // mulasztás - de vizsgázat
+ 'mulasztás miatt osztályozóvizsga' => 19,
+ ),
+ 'konferencia bukás' => array(
+ 'javítóvizsgát tehet' => 23, // %tantárgy%
+ 'előkészítőt végzett' => 4, // csak első évfolyamon!!
+ 'követelményeket nem teljesítette, évfolyamot ismétel' => 25, // %évfolyam% - tanköteles eset
+ 'követelményeket nem teljesítette, évfolyamot ismételhet' => 117, // %évfolyam% - nem tanköteles eset
+ ),
+ 'jogviszony megnyitás' => array(
+ 'felvétel' => 1,
+ 'felvétel osztályba' => 100, // %iskola címe%, %osztály%
+ 'átvétel' => 2, // %iskola címe%
+ 'áthelyezés' => 3, // %határozat száma%, %iskola címe%
+ ),
+ 'jogviszony változás' => array(
+ 'magántanuló' => 13,
+ 'felfüggesztés' => 39 // %ok%, %igDt%
+ ),
+ 'jogviszony lezárás' => array(
+ 'kimaradás' => 40,
+ 'igazolatlan órák' => 41, // %igazolatlan órák száma%
+ 'egészségügyi alkalmasság' => 42,
+ 'térítési díj hátralék' => 43,
+ 'tandíj hátralék' => 44,
+ 'átvétel' => 45, // %iskola%
+ 'haláleset' => 110,
+ 'tanulmányait folytathatja' => 21, // %évfolyam%
+ 'tanulmányait befejezte' => 102,
+ ),
+ 'vizsga halasztás' => array(
+ 'osztályozó vizsga' => 32, // %igDt%
+ 'beszámoltatóvizsga' => 33, // %igDt%
+ 'különbözetivizsga' => 34, // %igDt%
+ 'javítóvizsga' => 35, // %igDt%
+ ),
+ 'vizsga' => array(
+ 'osztályozó vizsga' => 109, // %tantárgy%, %évfolyam%, %dátum%, %osztályzat%
+ 'osztályozó vizsga bukás' => 103, // %tantárgy%, %osztályzat%
+ 'beszámoltatóvizsga' => 107, // %tantárgy%
+ 'beszámoltatóvizsga bukás' => 104, // %tantárgy%, %osztályzat%
+ 'különbözetivizsga' => 108, // %tantárgy%
+ 'különbözetivizsga bukás' => 105, // %tantárgy%, %osztályzat%
+ 'javítóvizsga' => 24, // %tárgy%, %osztályzat%, %évfolyam%
+ 'javítóvizsga bukás' => 27, // %tantárgy%
+ 'javítóvizsga nem teljesített' => 25, // %évfolyam% (az évfolyam követelményeit)
+ ),
+ 'felmentés' => array(
+ 'értékelés alól' => 9, // %tantárgy%
+ 'értékelés és minősítés alól' => 101, // %miatt%, %mi%
+ 'óra látogatása alól' => 17, // %tantárgy%, %ezen óráinka%, %tólDt%, %igDt%
+ 'óra látogatása alól osztályozóvizsgával' => 18, // %tantárgy%, %ezen óráinka%, %tólDt%, %igDt%
+ 'tárgy tanulása alól' => 14, // %tantárgyak neve%
+ 'törlés' => 115, // %tankorDiakFelmentesId%
+ ),
+ 'törzslap feljegyzés' => array(
+ 'egyedi törzslap záradék' => 112
+ )
+
+);
+
+} // __TANEV > 2012
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/share/zaroJegyModifier.php b/mayor-orig/www/include/modules/naplo/share/zaroJegyModifier.php
new file mode 100644
index 00000000..48c5cfe9
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/share/zaroJegyModifier.php
@@ -0,0 +1,156 @@
+<?php
+
+ require_once('include/modules/naplo/share/szemeszter.php');
+
+ // -- 2009-2010
+ /*
+ A zaroJegy tábla mezői:
+ zaroJegyId diakId targyId evfolyam felev jegy jegyTipus megjegyzes modositasDt hivatalosDt
+
+ @param: $jegyek[index] = assoc array, melyben a módosuló jegy adatai szerepelnek
+ zaroJegyId - ha módosítani vagy törölni kell egy jegyet
+ diakId targyId evfolyam felev jegy jegyTipus megjegyzes
+ evfolyamJel (opcionális, de ez a helyes irány)
+ hivatalosDt | tanev, szemeszter - ekkor a szemszter zarasDt-je lesz a hivatalosDt
+ - a modositasDt mindig az aktualis dátum - nem paraméter
+ delete - töröljük a megadott jegyet
+
+ !! MÓDOSÍTANDÓ, ÁTÍRÁS MÉG NEM TÖRTÉNT%! !!
+ */
+ function zaroJegyBeiras($jegyek,$olr='') {
+
+ /* NOTE!
+ A függvénynek jó lenne foglalkoznia azzal is, hogy beírható-e ez a jegy már, vagy ez ugyanaz-e?
+ Honnan lehet ezt eldönteni vajon? Egyáltalán el lehet-e az új táblastrukturában?
+ */
+
+ // jogosultságok ellenőrzése a hívó függvény feladata!
+ // a megfelelő bemenő paraméterek előállítása a hívó függvény feladata
+
+ if ($olr!='') $lr = $olr; else $lr = db_connect('naplo_intezmeny');
+
+ for ($i = 0; $i < count($jegyek); $i++) {
+ $J = $jegyek[$i];
+ if ($J['zaroJegyId']!='' || $J['jegy']!='') { // vagy zaroJegyId vagy jegy érték legyen legalább!!!
+/** Ez volt ....
+ // Ha csak dátum van, akkor a dátum előtt kezdődő utolsó szemeszterhez rendeljük a jegyet
+ if ($J['dt'] != '' && $J['tanev'] == '') {
+ $tmp = _generateTanevSzemeszter($J['dt']);
+ if (!is_array($tmp)) {
+ $_SESSION['alert'][] = 'warning:wrong_data:A szemeszter meghatározás nem sikerült.:zaroJegyBeiras';
+ unset($J['tanev']); unset($J['szemeszter']);
+ } else {
+ $J['tanev'] = $tmp['tanev'];
+ $J['szemeszter'] = $tmp['szemeszter'];
+ }
+ }
+**/
+ // Ha tanev, szemeszter van csak megadva, akkor a szemeszter zarasDt a hivatalosDt
+ if ($J['hivatalosDt'] == '') {
+ if ($J['tanev'] != '' && $J['szemeszter'] != '') {
+ $TA = getTanevAdat($J['tanev']);
+ $J['hivatalosDt'] = $TA['szemeszter'][$J['szemeszter']]['zarasDt'];
+ } else {
+ $_SESSION['alert'][] = 'message:empty_fields:zaroJegyBeiras:hivatalosDt,tanev,szemeszter';
+ unset($J);
+ continue;
+ }
+ }
+ $szA = getSzemeszterByDt($J['hivatalosDt'], -1);
+ // Ha nincs megadva évfolyam, akkor kitaláljuk - ha lehet
+// if ($J['evfolyam']=='') {
+// // miért nem a hivatalosDt-t nézzük?
+// if ($J['tanev'] == '') $J['tanev'] = $szA['tanev'];
+// if ($J['szemeszter'] == '') $J['szemeszter'] = $szA['szemeszter'];
+// $J['evfolyam'] = _generateEvfolyam($J['diakId'], $J['tanev'], $J['szemeszter']);
+// if ($J['evfolyam']===false) {
+// $_SESSION['alert'][] = 'message:wrong_data:Ez a zárójegy nem rögzíthető!!!:zaroJegyBeiras';
+// unset($J);
+// }
+// }
+ // Ha nincs megadva evfolyamJel, akkor kitaláljuk - ha lehet
+ if ($J['evfolyamJel'] == '' || $J['evfolyam'] == '') {
+ // A hivatalosDt alapján
+ $evfAdat = getEvfolyamAdatByDiakId($J['diakId'], $J['hivatalosDt'], $J['tanev'], $csakHaEgyertelmu = true);
+ if (is_array($evfAdat)) {
+ $J['evfolyam'] = $evfAdat['evfolyam'];
+ $J['evfolyamJel'] = $evfAdat['evfolyamJel'];
+ }
+ }
+ // Ha nincs megadva felev, akkor a hivatalosDt szemesztere
+ if ($J['felev']=='') $J['felev'] = $szA['szemeszter'];
+
+ $v = array($J['hivatalosDt'],$J['diakId'],$J['targyId'],$J['evfolyam'],$J['evfolyamJel'],$J['felev'],$J['jegy'],$J['jegyTipus'],$J['megjegyzes']);
+ $q = '';
+
+ if ($J['zaroJegyId']!='') { // megadott zaroJegyId, módosítsuk a bejegyzést
+
+ if ($J['delete'] == 'true') { // string, nem logikai! - törölhetjük
+ $q = "DELETE FROM zaroJegy WHERE zaroJegyId=".intval($J['zaroJegyId']);
+ $v = null;
+ } elseif ($J['jegy']!='') { // ha van jegy megadva
+ // NEM REPLACE, UPDATE, különben a megszorítások miatt cascade törlésre kerülnek a vizsgák!!! HIBA!
+ $q = "UPDATE zaroJegy SET modositasDt=NOW(),hivatalosDt='%s',diakId=%u,targyId=%u,evfolyam=%u,evfolyamJel='%s',felev=%u,
+ jegy='%s',jegyTipus='%s',megjegyzes='%s'
+ WHERE zaroJegyId=%u AND (jegy!='%s' OR jegyTipus!='%s' OR megjegyzes!='%s')";
+ $v[] = $J['zaroJegyId'];
+ $v[] = $J['jegy'];
+ $v[] = $J['jegyTipus'];
+ $v[] = $J['megjegyzes'];
+ } // különben nem írjuk be
+
+ } elseif ($J['jegy']!='') { // nincs megadva zaroJegyId, ámbár probléma lehet, hátha van ilyen jegye mégis (konkurrens kliensek)
+ // ugyanakkor az index létrehozás nem biztos hogy nyomravezető. Megoldás, ha a több bejegyzés megjelenik
+ $q = "INSERT INTO zaroJegy (modositasDt,hivatalosDt,diakId,targyId,evfolyam,evfolyamJel,felev,jegy,jegyTipus,megjegyzes)
+ VALUES (NOW(),'%s',%u,%u,%u,'%s',%u,'%s','%s','%s')";
+ }
+ $results[] = db_query($q, array('modul' => 'naplo_intezmeny','values' => $v, 'fv' => 'zaroJegyBeiras', 'result' => 'insert'), $lr);
+ }
+ }
+
+ if ($olr=='') db_close($lr); //+++ MISSING hibakezelés, tranzakciókezelés???
+
+ if (is_array($results) && count($results) == 1) return $results[0]; // vizsga oldal használja lastInsertId miatt
+ else return false;
+
+ }
+
+ // Tanev/Szemeszter zárónapjával meghatározva
+ function generateDiakEvfolyamJel($diakId,$tanev,$szemeszter) { return _generateEvfolyamJel($diakId,$tanev,$szemeszter); }
+
+ function _generateEvfolyamJel($diakId,$tanev,$szemeszter) { // returns INTEGER || FALSE --> STRING || FALSE
+
+ /*
+ milyen evfolyamos?
+ diakId-->(tanev/szemeszter.zaroDt)osztaly-->evfolyamJel
+
+ + kiegészítés: diák osztályai és tankör osztályainak metszete 1 osztály kell hogy legyen.
+ - getTankorOsztalyai($tankorId, $SET = array('result' => 'id'), $olr='');
+ - ezt sajnos nem tudujk itt meghívni!
+ */
+ // getSzemeszterAdat
+ $q = "SELECT zarasDt FROM szemeszter WHERE tanev=%u AND szemeszter=%u";
+ $v = array($tanev,$szemeszter);
+ $zarasDt = db_query($q, array('fv'=>'inner_generateEvfolyam','modul'=>'naplo_intezmeny','result'=>'value', 'values'=>$v));
+ // melyik osztályba járt?
+ $OSZTALYOK = getDiakOsztalya($diakId,array('tanev'=>$tanev,'tolDt'=>$zarasDt,'igDt'=>$zarasDt));
+ if (count($OSZTALYOK)===1) { // ha több osztályba is jár, de azok évfolyamjele azonos, akkor nem kellene hibával kilépni...
+ $_osztalyId = $OSZTALYOK[0]['osztalyId'];
+ $OA = getOsztalyAdat($_osztalyId);
+ return $OA['evfolyamJel'];
+ } else {
+ $_SESSION['alert'][] = '::nem tudom kitalálni az évfolyamot (db osztály: '.count($OSZTALYOK).", diakId: $diakId, tanev: $tanev, szemeszter: $szemeszter)";
+ return false;
+ }
+
+ }
+
+ function _generateTanevSzemeszter($dt) {
+
+
+ $q = "SELECT tanev,szemeszter FROM szemeszter WHERE kezdesDt < '%s' ORDER BY tanev DESC, szemeszter DESC LIMIT 1";
+ $v = array($dt);
+ return db_query($q, array('fv' => '_generateTanevSzemeszter', 'modul' => 'naplo_intezmeny', 'result' => 'record', 'values' => $v));
+
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/sni/diakAllapot.php b/mayor-orig/www/include/modules/naplo/sni/diakAllapot.php
new file mode 100644
index 00000000..6236e3e4
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/sni/diakAllapot.php
@@ -0,0 +1,91 @@
+<?php
+
+ function getDiakAllapot($diakId) {
+
+ $v = array($diakId);
+ $q = "SELECT * FROM sniDiakAllapot WHERE diakId=%u";
+ $ret = db_query($q, array('fv' => 'getDiakAllapot','modul' => 'naplo','values' => $v, 'result' => 'assoc', 'keyfield' => 'szemeszter'));
+ // Gyengeségek és erősségek riorizált listája
+ $q = "SELECT * FROM sniDiakGyengesegErosseg WHERE diakId=%u ORDER BY prioritas";
+ $ret2 = db_query($q, array('fv' => 'getDiakAllapot/gyengeségek, erősségek','modul' => 'naplo','values' => $v, 'result' => 'multiassoc', 'keyfield' => 'szemeszter'));
+ foreach ($ret2 as $szemeszter => $gyeAdat) {
+ foreach ($gyeAdat as $key => $value) {
+ $ret[ $value['szemeszter'] ][ $value['gyengesegErosseg'] ][] = array(
+ 'leiras' => $value['leiras'],
+ 'prioritas' => $value['prioritas']
+ );
+ }
+ }
+
+ return $ret;
+
+
+ }
+
+ function sniDiakAllapotRogzites($Parameters) {
+
+ $lr = db_connect('naplo', array('fv' => 'sniDiakAllapotRogzites'));
+ db_start_trans($lr);
+
+ $Param = $Parameters['diakAllapot'];
+ $diakId = $Param['diakId']; $szemeszter = $Param['szemeszter'];
+ // Korábbi bejegyzés törlése
+ $val = array($Param['diakId'], $Param['szemeszter']);
+ $q = "DELETE FROM `sniDiakAllapot` WHERE `diakId` = %u AND `szemeszter` = %u";
+ db_query($q, array('fv' => 'sniDiakAllapotRogzites', 'modul' => 'naplo', 'values' => $val), $lr);
+ $q = "DELETE FROM `sniDiakGyengesegErosseg` WHERE `diakId` = %u AND `szemeszter` = %u";
+ db_query($q, array('fv' => 'sniDiakAllapotRogzites', 'modul' => 'naplo', 'values' => $val), $lr);
+ // Paraméterek feldolgozása
+ $pattern = $v = array();
+ foreach ($Param as $attr => $value) {
+ if (in_array($attr, array('gyengesegLeiras','gyengesegPrioritas','erossegLeiras','erossegPrioritas'))) continue;
+ if (in_array($attr, array('diakId','szemeszter','vizsgalatTanarId','priorizalas')))
+ if ($value == '') { $pattern[] = '%s'; $value = 'NULL'; }
+ else $pattern[] = "%u";
+ else
+ if ($attr == 'vizsgalatDt' && $value == '') { $pattern[] = '%s'; $value = 'NULL'; }
+ else $pattern[] = "'%s'";
+ $v[] = $value;
+ }
+ // új bejegyzés beszúrása
+ $q = "INSERT INTO `sniDiakAllapot` (`".implode('`,`',array_keys($Param))."`) VALUES (".implode(',', $pattern).")";
+ $ret = db_query($q, array('fv' => 'sniDiakAllapotRogzites', 'modul' => 'naplo', 'values' => $v), $lr);
+ if (!$ret) {
+ db_rollback($lr, 'Az SNI adatok módosítása nem sikerült. Visszaállítjuk az eredeti állapotot...');
+ db_close($lr); return false;
+ }
+ // Gyengeségek/Erősségek rögzítése
+ $Param = $Parameters['gyengesegekErossegek'];
+ $v = array();
+ foreach (array('gyengeseg','erosseg') as $key => $gye) {
+ if (is_array($Param[$gye.'Leiras'])) {
+ foreach ($Param[$gye.'Leiras'] as $index => $leiras) if ($leiras != '') { // Lehessen törölni így...
+ array_push($v, $diakId, $szemeszter, ($key+1), $leiras, $Param[$gye.'Prioritas'][$index]);
+ }
+ }
+ }
+ if (count($v) != 0) {
+ $q = "INSERT INTO `sniDiakGyengesegErosseg` VALUES ".implode(',', array_fill(0, (count($v)/5), "(%u,%u,%u,'%s',%u)"));
+ $ret = db_query($q, array('fv' => 'sniDiakAllapotRogzites/Gyengeségek-erősségek', 'modul' => 'naplo', 'values' => $v), $lr);
+ var_dump($Param);
+ }
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+ function sniDiakAdatRogzites($Param) {
+
+ // diak.fogytekossag módosítása
+ $q = "UPDATE diak SET `fogyatekossag`='%s' WHERE diakId=%u";
+ db_query($q, array('fv' => 'sniDiakAdatRogzites', 'modul' => 'naplo_intezmeny', 'values' => array(implode(',', $Param['fogyatekossag']), $Param['diakId'])));
+ unset($Param['fogyatekossag']);
+ // sniDiakAdat modosítás
+ $q = "REPLACE INTO `sniDiakAdat` (`diakId`, `kulsoInfo`, `mentorTanarId`) VALUES (%u, '%s', %u)";
+ return db_query($q, array('fv' => 'sniDiakAdatRogzites', 'modul' => 'naplo', 'values' => $Param));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/sni/fejlesztesiTerv.php b/mayor-orig/www/include/modules/naplo/sni/fejlesztesiTerv.php
new file mode 100644
index 00000000..8485f20e
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/sni/fejlesztesiTerv.php
@@ -0,0 +1,45 @@
+<?php
+/* Áthelyezve a share/sni-be
+
+ function getHaviOsszegzes($diakId, $dt) {
+
+ $q = "SELECT * FROM sniHaviOsszegzes WHERE diakId=%u AND dt='%s'";
+ $v = array($diakId, $dt);
+ $ret = db_query($q, array('fv' => 'getHaviOsszegzes', 'modul' => 'naplo', 'values' => $v, 'result' => 'record'));
+
+ $q = "SELECT tanarId FROM sniHaviOsszegzesFelelos WHERE haviOsszegzesId = %u";
+ $ret['felelos'] = db_query($q, array('fv' => 'getHaviOsszegzes', 'modul' => 'naplo', 'values' => array($ret['haviOsszegzesId']), 'result' => 'idonly'));
+
+ return $ret;
+
+ }
+
+ function sniHaviOsszegzesRogzites($Param) {
+
+ $Felelos = $Param['felelos']; unset($Param['felelos']);
+ // Korábbi bejegyzés törlése
+ $q = "SELECT haviOsszegzesId FROM sniHaviOsszegzes WHERE diakId = %u AND dt = '%s'";
+ $v = array($Param['diakId'], $Param['dt']);
+ $Param['haviOsszegzesId'] = db_query($q, array('fv' => 'sniHaviOsszesitesRogzites', 'modul' => 'naplo', 'values' => $v, 'result' => 'value'));
+ // Paraméterek feldolgozása
+ $pattern = $v = array();
+ foreach ($Param as $attr => $value) {
+ if (in_array($attr, array('diakId','haviOsszegzesId','valtozas')))
+ if ($value == '') { $pattern[] = '%s'; $value = 'NULL'; }
+ else $pattern[] = "%u";
+ else
+ $pattern[] = "'%s'";
+ $v[] = $value;
+ }
+ // új bejegyzés beszúrása
+ $q = "REPLACE INTO `sniHaviOsszegzes` (`".implode('`,`',array_keys($Param))."`) VALUES (".implode(',', $pattern).")";
+ $id = db_query($q, array('fv' => 'sniHaviOsszegzesRogzites', 'modul' => 'naplo', 'values' => $v, 'result' => 'insert'));
+ // felelosok törlése
+ $q = "DELETE FROM `sniHaviOsszegzesFelelos` WHERE haviOsszegzesId = %u";
+ db_query($q, array('fv' => 'sniHaviOsszegzesRogzites', 'modul' => 'naplo', 'values' => array($id)));
+ // új felelősök felvétele
+ $q = "INSERT INTO `sniHaviOsszegzesFelelos` (`haviOsszegzesId`,`tanarId`) VALUES ".implode(',', array_fill(0, count($Felelos), "($id, %u)"));
+ return db_query($q, array('fv' => 'sniHaviOsszegzesRogzites', 'modul' => 'naplo', 'values' => $Felelos));
+ }
+*/
+?>
diff --git a/mayor-orig/www/include/modules/naplo/sni/tantargyiFeljegyzesek.php b/mayor-orig/www/include/modules/naplo/sni/tantargyiFeljegyzesek.php
new file mode 100644
index 00000000..c11be93b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/sni/tantargyiFeljegyzesek.php
@@ -0,0 +1,26 @@
+<?php
+
+ function getDiakFeljegyzesByTankorId($ADAT) {
+
+ $q = "SELECT dt, megjegyzes FROM sniTantargyiFeljegyzes WHERE diakId = %u AND tankorId = %u ORDER BY dt";
+ $v = array($ADAT['diakId'], $ADAT['tankorId']);
+ return db_query($q, array('fv' => 'getDiakFeljegyzesByTankorId', 'modul' => 'naplo', 'values' => $v, 'result' => 'keyvaluepair'));
+
+ }
+
+ function getDiakFeljegyzesByDt($ADAT) {
+
+ $q = "SELECT tankorId, megjegyzes FROM sniTantargyiFeljegyzes WHERE diakId = %u AND dt = '%s'";
+ $v = array($ADAT['diakId'], $ADAT['dt']);
+ return db_query($q, array('fv' => 'getDiakFeljegyzesByDt', 'modul' => 'naplo', 'values' => $v, 'result' => 'keyvaluepair'));
+
+ }
+
+ function tantargyiFeljegyzesRogzites($Param) {
+
+ $q = "REPLACE INTO sniTantargyiFeljegyzes (diakId, tankorId, dt, megjegyzes) VALUES (%u, %u, '%s', '%s')";
+ return db_query($q, array('fv' => 'tantargyiFeljegyzesRogzites', 'modul' => 'naplo', 'values' => $Param));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/stat/lemorzsolodas.php b/mayor-orig/www/include/modules/naplo/stat/lemorzsolodas.php
new file mode 100644
index 00000000..bb1700f6
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/stat/lemorzsolodas.php
@@ -0,0 +1,223 @@
+<?php
+
+ require_once('include/modules/naplo/share/diak.php');
+
+ function getLemorzsolodas($SET = array()) { // tanev, dt
+
+ $R = array();
+ $tanev = $SET['tanev'];
+ $szemeszter = $SET['szemeszter'];
+ $dt = $SET['dt'];
+ $elozoDt = $SET['elozoDt'];
+
+ $DIAKADAT = array(); // local cache
+
+ $intezmeny_lr = db_connect('naplo_intezmeny');
+
+ // -- két egymás követő félév alatt átlagosan >=1,1 romlás
+ // !! csak a jegy típusokra értelmezhető az átlagolás
+
+ //elozo
+ $q = "SELECT diakId,avg(jegy) AS avg FROM zaroJegy WHERE hivatalosDt = '%s' AND jegyTipus IN ('jegy') GROUP BY diakId";
+ $v = array($elozoDt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','keyfield'=>'diakId','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $A[$r[$i]['diakId']] = $r[$i]['avg'];
+ }
+
+ //kivalasztott
+ $q = "SELECT diakId,avg(jegy) AS avg FROM zaroJegy WHERE hivatalosDt = '%s' AND jegyTipus IN ('jegy') GROUP BY diakId";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ if ( isset($A[$r[$i]['diakId']]) && (- $r[$i]['avg'] + $A[$r[$i]['diakId']])>=1.1) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $R['ronto'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'avg' => $r[$i]['avg'],
+ 'elozoAvg' => $A[$r[$i]['diakId']],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+
+ );
+ }
+ }
+
+ // -- a félév végén (év végén) a tanulmányi átlaga< 3,0
+ //kivalasztott
+ $q = "SELECT diakId,avg(jegy) AS atlag FROM zaroJegy WHERE hivatalosDt = '%s' AND jegyTipus IN ('jegy') GROUP BY diakId HAVING atlag<3";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $R['rosszTanulo'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'atlag' => $r[$i]['atlag'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+
+ );
+ }
+
+ // -- a félév végén (év végén) a tanulmányi átlaga< 2,5
+ //kivalasztott
+ $q = "SELECT diakId,avg(jegy) AS atlag FROM zaroJegy WHERE hivatalosDt = '%s' AND jegyTipus IN ('jegy') GROUP BY diakId HAVING atlag<2.5";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $R['nagyonRosszTanulo'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'atlag' => $r[$i]['atlag'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+
+ );
+ }
+
+ // -- egy-vagy több tárgyból bukik (ez lényegében most is benne van már)
+ $q = "SELECT diakId,count(*) as dbBukas FROM zaroJegy WHERE hivatalosDt = '%s' AND jegyTipus IN ('jegy') AND jegy='1.0' GROUP BY diakId";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $R['bukott'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'dbBukas' => $r[$i]['dbBukas'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+ );
+ }
+
+ // -- magatartása rossz
+ $q = "SELECT diakId FROM zaroJegy WHERE hivatalosDt = '%s' AND jegyTipus IN ('magatartás') AND jegy='2.0' GROUP BY diakId";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $R['rosszMagatartasu'][] = array(
+ 'hivatalosDt' => $dt,
+ 'diakId' => $r[$i]['diakId'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+ );
+ }
+ // -- szorgalma hanyag
+ $q = "SELECT diakId FROM zaroJegy WHERE hivatalosDt = '%s' AND jegyTipus IN ('szorgalom') AND jegy='2.0' GROUP BY diakId";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $R['hanyagSzorgalmu'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+ );
+ }
+ // -- 50 órát elérő igazolatlan hiányzás
+ // --TODO TANÉV!!!
+ $q = "SELECT diakId,count(*) as dbHianyzas FROM hianyzas
+ LEFT JOIN " .__INTEZMENYDBNEV. ".diak USING (diakId)
+ WHERE dt<= '%s' AND tipus='hiányzás' AND igazolas='' AND diak.statusz='jogviszonyban van' GROUP BY diakId HAVING dbHianyzas>=50";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $_jogviszonya = getDiakJogviszonyByDts(array($_diakId),array($dt));
+ if ($_jogviszonya[$_diakId][$dt]['statusz']=='jogviszonyban van') {
+ $R['igazolatlanHianyzo_50'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'dbHianyzas' => $r[$i]['dbHianyzas'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakJogviszony' => $_jogviszonya[$_diakId][$dt]['statusz'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+ );
+ }
+ }
+
+ // -- 100 órát elérő igazolt hiányzás
+ // --TODO TANÉV!!!
+ $q = "SELECT diakId,count(*) as dbHianyzas FROM hianyzas
+ WHERE dt<= '%s' AND tipus='hiányzás' AND igazolas!=''
+ GROUP BY diakId HAVING dbHianyzas>=100";
+ $v = array($dt);
+ $r = db_query($q, array('modul'=>'naplo','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ // itt szűrhetjük ki a "hibás" diákjogviszonyúakat...
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $_jogviszonya = getDiakJogviszonyByDts(array($_diakId),array($dt));
+ if ($_jogviszonya[$_diakId][$dt]['statusz']=='jogviszonyban van') {
+ $R['igazoltanHianyzo_100'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'dbHianyzas' => $r[$i]['dbHianyzas'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakJogviszony' => $_jogviszonya[$_diakId][$dt]['statusz'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+ );
+ }
+ }
+ // -- magántanulóvá vált
+ $q = "SELECT diakId FROM diakJogviszony WHERE dt BETWEEN '%s' AND '%s' AND statusz='magántanuló'";
+ $v = array($elozoDt,$dt);
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ for ($i=0; $i<count($r); $i++) {
+ $_diakId = $r[$i]['diakId'];
+ if (!is_array($DIAKADAT[$_diakId])) {
+ $DIAKADAT[$_diakId] = getDiakAdatById($_diakId);
+ $DIAKADAT[$_diakId]['diakOsztalya'] = getDiakOsztalya($_diakId, array('tanev'=>__TANEV,'tolDt'=>$dt,'igDt'=>$dt), $intezmeny_lr);
+ }
+ $_jogviszonya = getDiakJogviszonyByDts(array($_diakId),array($dt));
+ if ($_jogviszonya[$_diakId][$dt]['statusz']=='magántanuló') { // még mindig
+ $R['magantanuloLett'][] = array(
+ 'diakId' => $r[$i]['diakId'],
+ 'diakNev' => $DIAKADAT[$_diakId]['diakNev'],
+ 'diakOsztalya' => ($DIAKADAT[$_diakId]['diakOsztalya'][0]['osztalyJel'])
+ );
+ }
+ }
+
+ // -- magántanulóvá minősítése folyamatban - ezt nem tudjuk
+ // -- oltalmazott / menekült / menedékes - ezt nem tudjuk
+ // -- veszélyeztetetté vált - ez mi?
+ // -- egyéb nehezen értelmezhető feltételek... - ez mi?
+
+ db_close($intezmeny_lr);
+
+ return $R;
+
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/stat/tantargyFelosztas.php b/mayor-orig/www/include/modules/naplo/stat/tantargyFelosztas.php
new file mode 100644
index 00000000..a78cb70b
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/stat/tantargyFelosztas.php
@@ -0,0 +1,236 @@
+<?php
+ /*
+ Vigyázat!! A létszám adatok csak az épp aktuális státuszokkal dolgoznak. Visstamenőleg, korábbi évekre nézni őket nincs értelme.
+ */
+
+ function getDiakLetszamByStatusz() {
+
+ $q = "select statusz, count(*) as letszam from diak group by statusz";
+ $ret = db_query($q, array('fv'=>'getDiakLetszamByStatusz','modul'=>'naplo_intezmeny','result'=>'keyvaluepair'));
+ $q = "select statusz, count(*) as letszam from diak where nem='fiú' group by statusz";
+ $ret['fiú'] = db_query($q, array('fv'=>'getDiakLetszamByStatusz/fiú','modul'=>'naplo_intezmeny','result'=>'keyvaluepair'));
+ $q = "select statusz, count(*) as letszam from diak where nem='lány' group by statusz";
+ $ret['lány'] = db_query($q, array('fv'=>'getDiakLetszamByStatusz/lány','modul'=>'naplo_intezmeny','result'=>'keyvaluepair'));
+
+ return $ret;
+
+ }
+
+ function getDiakLetszamByOsztalyId($osztalyIds) {
+ if (is_array($osztalyIds) && count($osztalyIds)>0) {
+ $q = "select osztalyId, count(*) as letszam from diak left join osztalyDiak using (diakId)
+ where statusz in ('jogviszonyban van','magántanuló') and osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).") group by osztalyId";
+ $ret = db_query($q, array('fv'=>'getDiakLetszamByStatusz','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$osztalyIds));
+ $q = "select osztalyId, count(*) as letszam from diak left join osztalyDiak using (diakId)
+ where statusz in ('jogviszonyban van','magántanuló') and osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).") and nem='fiú' group by osztalyId";
+ $ret['fiú'] = db_query($q, array('fv'=>'getDiakLetszamByStatusz/fiú','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$osztalyIds));
+ $q = "select osztalyId, count(*) as letszam from diak left join osztalyDiak using (diakId)
+ where statusz in ('jogviszonyban van','magántanuló') and osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).") and nem='lány' group by osztalyId";
+ $ret['lány'] = db_query($q, array('fv'=>'getDiakLetszamByStatusz/lány','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$osztalyIds));
+
+ return $ret;
+
+ } else {
+ return false;
+ }
+ }
+
+ function getTanarLetszamByBesorolas() {
+ $q = "select besorolas, count(*) as letszam from tanar where statusz<>'jogviszonya lezárva' and statusz<>'külső óraadó' group by besorolas";
+ return db_query($q, array('fv'=>'getTanarLetszamByBesorolas','modul'=>'naplo_intezmeny','result'=>'keyvaluepair'));
+ }
+
+ function getTanarLetszamByStatusz() {
+ $q = "select statusz, count(*) as letszam from tanar group by statusz";
+ return db_query($q, array('fv'=>'getTanarLetszamByBesorolas','modul'=>'naplo_intezmeny','result'=>'keyvaluepair'));
+ }
+
+ function getTankorOraszamOsszesites($tankorTipusIds) {
+
+ $q = "select sum(oraszam/2) from tankorSzemeszter where tanev=".__TANEV;
+ $ret['összes'] = db_query($q, array('fv'=>'getTankorOraszamOsszesites','modul'=>'naplo_intezmeny','result'=>'value'));
+ $q = "select sum(oraszam/2) from tankorSzemeszter left join tankor using (tankorId)
+ where tankorTipusId in (".implode(',', array_fill(0, count($tankorTipusIds['óratervi']), '%u')).") and tanev=".__TANEV;
+ $ret['óratervi'] = db_query($q, array('fv'=>'getTankorOraszamOsszesites/óratervi','modul'=>'naplo_intezmeny','result'=>'value','values'=>$tankorTipusIds['óratervi']));
+ $q = "select sum(oraszam/2) from tankorSzemeszter left join tankor using (tankorId)
+ where tankorTipusId in (".implode(',', array_fill(0, count($tankorTipusIds['tanórán kívüli']), '%u')).") and tanev=".__TANEV;
+ $ret['tanórán kívüli'] = db_query($q, array('fv'=>'getTankorOraszamOsszesites/tanórán kívüli','modul'=>'naplo_intezmeny','result'=>'value','values'=>$tankorTipusIds['tanórán kívüli']));
+
+ return $ret;
+ }
+
+ function getTargyOraszamok($tankorTipusIds) {
+
+ $q = "select targyId, sum(oraszam/2) from tankorSzemeszter left join tankor using (tankorId)
+ where tanev=".__TANEV." group by targyId";
+ $ret['összes'] = db_query($q, array('fv'=>'getTargyOraszamok','modul'=>'naplo_intezmeny','result'=>'keyvaluepair'));
+ $q = "select targyId, sum(oraszam/2) from tankorSzemeszter left join tankor using (tankorId)
+ where tankorTipusId in (".implode(',', array_fill(0, count($tankorTipusIds['óratervi']), '%u')).") and tanev=".__TANEV." group by targyId";
+ $ret['óratervi'] = db_query($q, array('fv'=>'getTargyOraszamok/óratervi','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$tankorTipusIds['óratervi']));
+ $q = "select targyId, sum(oraszam/2) from tankorSzemeszter left join tankor using (tankorId)
+ where tankorTipusId in (".implode(',', array_fill(0, count($tankorTipusIds['tanórán kívüli']), '%u')).") and tanev=".__TANEV." group by targyId";
+ $ret['tanórán kívüli'] = db_query($q, array('fv'=>'getTargyOraszamok/tanórán kívüli','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$tankorTipusIds['tanórán kívüli']));
+
+ return $ret;
+ }
+
+ function getOsztalyOraszamok($osztalyIds, $tankorTipusIds) {
+
+ $q = "select osztalyId, sum(oraszam/2) from tankorSzemeszter left join tankorOsztaly using (tankorId)
+ where osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ and tanev=".__TANEV." group by osztalyId";
+ $ret['összes'] = db_query($q, array('fv'=>'getOsztalyOraszamok','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$osztalyIds));
+ $q = "select osztalyId, sum(oraszam/2) from tankorSzemeszter left join tankor using (tankorId) left join tankorOsztaly using (tankorId)
+ where tankorTipusId in (".implode(',', array_fill(0, count($tankorTipusIds['óratervi']), '%u')).")
+ and osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ and tanev=".__TANEV." group by osztalyId";
+ $v = array_merge($tankorTipusIds['óratervi'], $osztalyIds);
+ $ret['óratervi'] = db_query($q, array('fv'=>'getOsztalyOraszamok/óratervi','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$v));
+ $q = "select osztalyId, sum(oraszam/2) from tankorSzemeszter left join tankor using (tankorId) left join tankorOsztaly using (tankorId)
+ where tankorTipusId in (".implode(',', array_fill(0, count($tankorTipusIds['tanórán kívüli']), '%u')).")
+ and osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ and tanev=".__TANEV." group by osztalyId";
+ $v = array_merge($tankorTipusIds['tanórán kívüli'], $osztalyIds);
+ $ret['tanórán kívüli'] = db_query($q, array('fv'=>'getOsztalyOraszamok/tanórán kívüli','modul'=>'naplo_intezmeny','result'=>'keyvaluepair','values'=>$v));
+
+ return $ret;
+ }
+
+ function getTankorLetszamStat() {
+ global $_TANEV;
+ $r = getTankorByTanev(__TANEV);
+ foreach ($r as $idx => $tAdat) {
+ $return[ $tAdat['targyId'] ]['tankorIds'][] = $tAdat['tankorId'];
+ $letszam = getTankorLetszam($tAdat['tankorId'], array('refDt'=>$_TANEV['kezdesDt']));
+ $return[ $tAdat['targyId'] ]['sum'] += $letszam;
+ $return[ $tAdat['targyId'] ]['db']++;
+ if ($return[ $tAdat['targyId'] ]['max'] < $letszam) $return[ $tAdat['targyId'] ]['max'] = $letszam;
+ if (!isset($return[ $tAdat['targyId'] ]['min']) || $return[ $tAdat['targyId'] ]['min'] > $letszam) $return[ $tAdat['targyId'] ]['min'] = $letszam;
+ }
+ return $return;
+ }
+
+
+function getTantargyfelosztasStat() {
+
+ // __TANEV és __INTEZMENY függés!!
+
+ global $ADAT;
+
+ // ---- ---- ---- ----
+ $ADAT['evfolyamJelek'] = getEvfolyamJelek(array('result'=>'idonly'));
+ $ADAT['tankorTipusok'] = getTankorTipusok();
+ foreach ($ADAT['tankorTipusok'] as $tankorTipusId => $tAdat) $ADAT['tankorTipusIds'][$tAdat['oratervi']][] = $tankorTipusId;
+ // Ha módosul, akkor javítani kell a fenntarto/naplo/tantargyfelosztas alatt is!!
+ $ADAT['finanszírozott pedagógus létszám'] = array(
+ 'általános iskola' => 11.8, // 11.8 tanuló / 1 pedagógus
+ 'gimnázium' => 12.5, // 12.5 tanuló / 1 pedagógus
+ 'szakiskola, Híd programok' => 12, // ...
+ 'szakközépiskola, nem szakkképző évfolyam' => 12.4,
+ 'szakközépiskola, szakkképző évfolyam' => 13.7
+ ); // -- TODO szakgimnázium???
+
+
+
+ $IA['intezmenyAdat'] = getIntezmenyByRovidnev(__INTEZMENY);
+ $IA['osztalyAdat'] = getOsztalyok(__TANEV, array('result' => 'assoc', 'minden'=>false, 'telephelyId' => null));
+ foreach ($IA['osztalyAdat'] as $idx => $oAdat) $IA['osztalyIds'][] = $oAdat['osztalyId'];
+ $IA['targyAdat'] = getTargyAdatByIds();
+
+ $IA['diakLetszam']['statusz'] = getDiakLetszamByStatusz();
+ $IA['diakLetszam']['osztaly'] = getDiakLetszamByOsztalyId($IA['osztalyIds']);
+ foreach ($IA['diakLetszam']['osztaly'] as $osztalyId => $letszam)
+ if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['összes'] += intval($letszam);
+ foreach ($IA['diakLetszam']['osztaly']['fiú'] as $osztalyId => $letszam)
+ if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['fiú'] += intval($letszam);
+ foreach ($IA['diakLetszam']['osztaly']['lány'] as $osztalyId => $letszam)
+ if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['lány'] += intval($letszam);
+ $IA['tanarLetszam']['besorolas'] = getTanarLetszamByBesorolas();
+ $IA['tanarLetszam']['statusz'] = getTanarLetszamByStatusz();
+ $IA['oraszamok'] = getTankorOraszamOsszesites($ADAT['tankorTipusIds']);
+ $IA['targyOraszamok'] = getTargyOraszamok($ADAT['tankorTipusIds']);
+ $IA['osztalyOraszamok'] = getOsztalyOraszamok($IA['osztalyIds'], $ADAT['tankorTipusIds']);
+ foreach ($IA['osztalyOraszamok']['összes'] as $osztalyId => $oraszam) {
+ $IA['evfolyamOraszamok']['összes'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($oraszam);
+ $IA['evfolyamOraszamok']['óratervi'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($IA['osztalyOraszamok']['óratervi'][$osztalyId]);
+ $IA['evfolyamOraszamok']['tanórán kívüli'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($IA['osztalyOraszamok']['tanórán kívüli'][$osztalyId]);
+ }
+ $egyhaziE = ($IA['intezmenyAdat']['fenntarto']=='egyházi');
+ foreach ($IA['osztalyAdat'] as $osztalyId => $osztalyAdat) {
+ $IA['osztalyIdokeret'][$osztalyId] = getOsztalyHetiIdokeret($osztalyId, $osztalyAdat, array('egyhaziE'=>$egyhaziE));
+ $IA['osztalyIdokeret']['összesen']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['összesen']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['összesen']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['összesen']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['összesen']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['összesen']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,22)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4'))) {
+ $IA['osztalyIdokeret']['alsó']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['alsó']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['alsó']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['alsó']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['alsó']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['alsó']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,23)) && in_array($osztalyAdat['evfolyamJel'], array('5','6','7','8'))) {
+ $IA['osztalyIdokeret']['felső']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['felső']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['felső']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['felső']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['felső']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['felső']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,22,23)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4','5','6','7','8'))) {
+ $IA['osztalyIdokeret']['általános']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['általános']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['általános']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['általános']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['általános']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['általános']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(51,52,53,61,62,63)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4','5','6','7','8'))) {
+ $IA['osztalyIdokeret']['gimnázium18']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['gimnázium18']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['gimnázium18']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['gimnázium18']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['gimnázium18']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['gimnázium18']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63)) && in_array($osztalyAdat['evfolyamJel'], array('9','10','11','12'))) {
+ $IA['osztalyIdokeret']['gimnázium92']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['gimnázium92']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['gimnázium92']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['gimnázium92']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['gimnázium92']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['gimnázium92']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63))) {
+ $IA['osztalyIdokeret']['gimnázium']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['gimnázium']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['gimnázium']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['gimnázium']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['gimnázium']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['gimnázium']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ // Finanszírozott pedagógus létszámhoz diáklészámok osztály-típusonként
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,22,23))) { // általános iskola
+ $IA['diakLetszam']['általános iskola'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63,65))) { // gimnázium
+ $IA['diakLetszam']['gimnázium'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array(82,83,84,85,91,92,93))) { // szakiskola, Híd programok
+ $IA['diakLetszam']['szakiskola, Híd programok'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array(71,72,73,74,75,76,77,78,79))) { // szakközépiskola, nem szakképző évfolyam
+ $IA['diakLetszam']['szakközépiskola, nem szakkképző évfolyam'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array())) { // szakközépiskola, szakképző évfolyam
+ $IA['diakLetszam']['szakközépiskola, szakképző évfolyam'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ }
+ } // osztályok
+ $IA['tankorLetszamStat'] = getTankorLetszamStat();
+ // ---- ---- ---- ----
+
+ return $IA;
+
+}
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/tanev/checkStatus.php b/mayor-orig/www/include/modules/naplo/tanev/checkStatus.php
new file mode 100644
index 00000000..a2d97afb
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/checkStatus.php
@@ -0,0 +1,33 @@
+<?php
+
+ function checkStatus() {
+ if ($olr == '') $lr = db_connect('naplo');
+ else $lr = $olr;
+
+ // A munkaterv meglétének ellenőrzése
+ $q = "SELECT COUNT(*) AS db FROM `nap`";
+ $R['napokSzama'] = db_query($q, array('fv' => 'checkStatus/1', 'modul' => 'naplo', 'result' => 'value'), $lr);
+
+ $q = "SELECT COUNT(*) AS db FROM orarendiOra WHERE tolDt <= curdate() AND igDt >= curdate()";
+ $R['orakSzama'] = db_query($q, array('fv' => 'checkStatus/2', 'modul' => 'naplo', 'result' => 'value'), $lr);
+
+ $q = "SELECT DISTINCT orarendiOra.tanarId, orarendiOra.targyJel, orarendiOra.osztalyJel
+ FROM orarendiOra LEFT JOIN orarendiOraTankor USING(tanarId, targyJel, osztalyJel)
+ WHERE tankorId IS NULL";
+
+ $R['hianyzoTankor'] = db_query($q, array('fv' => 'checkStatus/3', 'modul' => 'naplo', 'result' => 'indexed'),$lr);
+
+ $q = "SELECT DISTINCT orarendiOra.tanarId, orarendiOra.targyJel, orarendiOra.osztalyJel
+ FROM orarendiOraTankor LEFT JOIN orarendiOra USING(tanarId, targyJel, osztalyJel)
+ WHERE tanarId IS NULL";
+
+ $R['hianyzoOra'] = db_query($q, array('fv' => 'checkStatus/3', 'modul' => 'naplo', 'result' => 'indexed'),$lr);
+
+ $R['vizsgaltDt'] = date('Y-m-d');
+
+ if ($olr == '') db_close($lr);
+
+ return $R;
+
+ }
+?>
diff --git a/mayor-orig/www/include/modules/naplo/tanev/fogadoOra.php b/mayor-orig/www/include/modules/naplo/tanev/fogadoOra.php
new file mode 100644
index 00000000..4aaf4016
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/fogadoOra.php
@@ -0,0 +1,142 @@
+<?php
+
+ function getKovetkezoFogadoDtk() {
+ $q = "SELECT DISTINCT tol, ig FROM ".__TANEVDBNEV.".fogadoOra WHERE ig>NOW() ORDER BY tol";
+ $dts = db_query($q, array('fv' => 'getKovetkezoFogadoDt', 'modul' => 'naplo', 'result' => 'indexed'));
+ $ret = array('dates' => array(), 'tol' => array(), 'ig' => array());
+ if (is_array($dts)) for ($i = 0; $i < count($dts); $i++) {
+ $dt = substr($dts[$i]['tol'],0,10);
+ if (!in_array($dt, $ret['dates'])) $ret['dates'][] = $dt;
+ $ret['tol'][] = $dts[$i]['tol'];
+ $ret['ig'][] = $dts[$i]['ig'];
+ }
+ return $ret;
+ }
+
+ function getTanarFogadoOra($tanarId) {
+ $v = array($tanarId);
+ $q = "SELECT * FROM ".__TANEVDBNEV.".fogadoOra WHERE tanarId=%u AND ig>=NOW()";
+ $ret['adatok'] = db_query($q, array('fv' => 'getTanarFogadoOra', 'modul' => 'naplo', 'result' => 'record', 'values' => $v));
+ if (!is_array($ret['adatok']) || count($ret['adatok']) == 0) $ret['adatok'] = array('tanarId' => $tanarId);
+
+ $q = "SELECT * FROM ".__TANEVDBNEV.".fogadoOraJelentkezes WHERE tanarId=%u AND tol>=CURDATE()";
+ $ret['jelentkezesek'] = db_query($q, array('fv' => 'getTanarFogadoOra', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'tol', 'values' => $v));
+
+ return $ret;
+ }
+
+ function getFogadoOsszes() {
+ // Hogy ABC szerint legyen inkább...
+ $q = "SELECT fogadoOra.* FROM ".__TANEVDBNEV.".fogadoOra LEFT JOIN ".__INTEZMENYDBNEV.".tanar USING (tanarId) WHERE ig>=NOW()
+ ORDER BY CONCAT_WS(' ',viseltCsaladinev,viseltUtonev),tol,ig,teremId";
+ $ret = db_query($q, array('fv' => 'getFogadoOsszes', 'modul' => 'naplo', 'result' => 'indexed'));
+ return $ret;
+ }
+
+ function kovetkezoFogadoOraInit($tol, $ig) {
+ // Egyszerre mindig csak egy következő fogadó óra lehet - törlés
+ $q = "DELETE FROM fogadoOra WHERE tol>=NOW() OR tol>='$tol'";
+ $r = db_query($q, array('fv' => 'kovetkezoFogadoFelvetele', 'modul' => 'naplo'));
+ // A szülői jelentkezések is törlődnek ekkor
+ $q = "DELETE FROM fogadoOraJelentkezes WHERE tol>=NOW() OR tol>='$tol'";
+ $r = db_query($q, array('fv' => 'kovetkezoFogadoFelvetele', 'modul' => 'naplo'));
+ // minden tanárra beállítjuk a megadott tol-ig értéket
+ $q = "INSERT INTO fogadoOra (tanarId,tol,ig)
+ SELECT tanarId, '%s','%s' FROM ".__INTEZMENYDBNEV.".tanar
+ WHERE beDt<='%s' and (kiDt is null or kiDt >= '%s');";
+ $r = db_query($q, array('fv' => 'kovetkezoFogadoFelvetele', 'modul' => 'naplo', 'values' => array($tol, $ig, $ig, $tol)));
+ }
+
+ function tanarFogadoOra($tanarId, $tol, $ig, $teremId) {
+ if ($teremId == '') $teremId = 'NULL';
+ // Ha van bejegyzett fogadóóra, akkor töröljük
+ $q = "DELETE FROM fogadoOra WHERE ig>NOW() AND tanarId=%u";
+ db_query($q, array('fv' => 'tanarFogadoOra', 'modul' => 'naplo', 'values' => array($tanarId)));
+ // Új fogadóóra felvétele
+ if (isset($teremId) && $teremId > 0) {
+ $q = "INSERT INTO fogadoOra VALUES (%u, '%s', '%s', %u)";
+ } else {
+ $q = "INSERT INTO fogadoOra VALUES (%u, '%s', '%s', NULL)";
+ }
+ $v = array($tanarId, $tol, $ig, $teremId);
+ db_query($q, array('fv' => 'tanarFogadoOra', 'modul' => 'naplo', 'values' => $v));
+
+ // A szülői jelentkezések is törlődnek ekkor
+ $q = "DELETE FROM fogadoOraJelentkezes WHERE tanarId=%u AND (tol<'%s' OR tol>='%s')";
+ $v = array($tanarId, $tol, $ig);
+ return db_query($q, array('fv' => 'tanarFogadoOra', 'modul' => 'naplo', 'values' => $v));
+
+ }
+
+ function getSzuloJelentkezes($szuloId) {
+ $q = "SELECT * FROM ".__TANEVDBNEV.".fogadoOraJelentkezes WHERE szuloId=%u AND tol>=NOW() ORDER BY tol";
+ return db_query($q, array('fv' => 'getSzuloJelentkezes', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'tanarId', 'values' => array($szuloId)));
+ }
+
+ function fogadoOraJelentkezes($szuloId, $M) {
+
+ $lr = db_connect('naplo');
+
+ for ($i = 0; $i < count($M); $i++) {
+ $tanarId = $M[$i]['tanarId'];
+ $datetime = $M[$i]['datetime'];
+ if (isset($datetime)) {
+ // Egy már felvett jelentkezésről van-e szó
+ $q = "SELECT COUNT(*) FROM ".__TANEVDBNEV.".fogadoOraJelentkezes WHERE tol='%s' AND tanarId=%u AND szuloId=%u";
+ $v = array($datetime, $tanarId, $szuloId);
+ $db = db_query($q, array('fv' => 'fogadoOraJelentkezes', 'modul' => 'naplo', 'result' => 'value', 'values' => $v), $lr);
+ if ($db > 0) continue;
+
+ // Van-e már a szülőnek, vagy a tanárnak bejegyzése az adott időpontra
+ $q = "SELECT * FROM ".__TANEVDBNEV.".fogadoOraJelentkezes WHERE tol='%s' AND (tanarId=%u OR szuloId=%u) LIMIT 1";
+ $v = array($datetime, $tanarId, $szuloId);
+ $r = db_query($q, array('fv' => 'fogadoOraJelentkezes', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if (!is_array($r) || count($r) == 1) {
+ //$_SESSION['alert'][] = 'message:wrong_data:fogadoOraJelentkezes:foglalt:'."$szuloId/$tanarId/$datetime";
+ $_SESSION['alert'][] = 'message:fogadoora_foglalt:'.str_replace(':','.',$datetime).':foglalt:'."$szuloId/$tanarId/$datetime";
+ continue;
+ }
+ // Van-e a tanárnak az adtott időpontban fogadóórája
+ $q = "SELECT * FROM fogadoOra WHERE tanarId=%u AND tol<='%s' AND '%s'<ig";
+ $v = array($tanarId, $datetime, $datetime);
+ $r = db_query($q, array('fv' => 'fogadoOraJelentkezes', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if (!is_array($r) || count($r) == 0) {
+ //$_SESSION['alert'][] = 'message:wrong_data:fogadoOraJelentkezes:nincs fogadóórája:'."szuloId/$tanarId/$datetime";
+ $_SESSION['alert'][] = 'message:fogadoora_nincs:'.$datetime.":szuloId/$tanarId/$datetime";
+ continue;
+ }
+ }
+
+ db_start_trans($lr);
+ // Töröljük a korrábbi jelentkezést és felvesszük az újat
+ $q = "DELETE FROM fogadoOraJelentkezes WHERE szuloId=%u AND tanarId=%u AND tol>=NOW()";
+ $v = array($szuloId, $tanarId);
+ $r = db_query($q, array('rollback' => true, 'fv' => 'fogadoOraJelentkezes', 'modul' => 'naplo', 'values' => $v), $lr);
+ // Ha csak törlés volt, akkor tovább
+ if (!isset($datetime)) { db_commit($lr); continue; }
+
+ // Felvesszük az új jelentkezést
+ $q = "INSERT INTO fogadoOraJelentkezes (szuloId, tanarId, tol) VALUES (%u, %u, '%s')";
+ $v = array($szuloId, $tanarId, $datetime);
+ $r = db_query($q, array('rollback' => true, 'fv' => 'fogadoOraJelentkezes', 'modul' => 'naplo', 'values' => $v), $lr);
+ db_commit($lr);
+ }
+
+ db_close($lr);
+
+ }
+
+
+ function getFogadoOraLista() {
+
+ $q = "SELECT * FROM ".__TANEVDBNEV.".fogadoOra LEFT JOIN ".__INTEZMENYDBNEV.".terem USING (teremId) WHERE ig>=NOW()";
+ $ret['adatok'] = db_query($q, array('fv' => 'getFogadoOraLista', 'modul' => 'naplo', 'result' => 'assoc', 'keyfield' => 'tanarId'));
+
+ $q = "SELECT * FROM ".__TANEVDBNEV.".fogadoOraJelentkezes WHERE tol>=CURDATE() ORDER BY tanarId,tol";
+ $ret['jelentkezesek'] = db_query($q, array('fv' => 'getFogadoOraLista', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'tanarId'));
+
+ return $ret;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/tanev/munkaterv.php b/mayor-orig/www/include/modules/naplo/tanev/munkaterv.php
new file mode 100644
index 00000000..ab52242f
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/munkaterv.php
@@ -0,0 +1,145 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function initNapok($ADAT) {
+
+ global $_TANEV, $UNNEPNAPOK;
+
+ logAction(array('szoveg'=>'initNapok','table'=>'nap'));
+
+ $Hetek = $ADAT['Hetek'];
+ $lr = db_connect('naplo', array('fv' => 'initNapok'));
+
+ db_start_trans($lr);
+
+ $q = "DELETE FROM munkaterv";
+ $r[] = db_query($q, array('fv' => 'initNapok', 'modul' => 'naplo'), $lr);
+
+ /* Munkaterv */
+ $q = "INSERT INTO munkaterv (munkatervId,munkatervNev,tanitasiNap,tanitasNelkuliMunkanap,vegzosZarasDt) VALUES (1,'alapértelmezett',%u,%u,'%s')";
+ $v = array($ADAT['tanitasiNap'], $ADAT['tanitasNelkuliMunkanap'], $ADAT['vegzosZarasDt']);
+ $r[] = db_query($q, array('fv' => 'initNapok1', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ $q = "INSERT INTO munkatervOsztaly (munkatervId,osztalyId) SELECT 1 AS `munkatervId`,`osztalyId` FROM `".__INTEZMENYDBNEV."`.`osztaly` WHERE vegzoTanev>=%u AND kezdoTanev<=%u";
+ $v = array(__TANEV,__TANEV);
+ $r[] = db_query($q, array('fv' => 'initNapok2', 'modul' => 'naplo', 'values' => $v), $lr);
+ /* --- */
+
+ $kovetkezoTanevAdat = getTanevAdat(__TANEV+1); $tanevVege = date('Y-m-d',strtotime('-1 days',strtotime($kovetkezoTanevAdat['kezdesDt'])));
+ $r[] = napokHozzaadasa(__TANEV, $_TANEV['kezdesDt'], $tanevVege, $_TANEV, $lr);
+
+ orarendiHetekHozzarendelese($_TANEV['kezdesDt'], $_TANEV['zarasDt'], $Hetek, $lr);
+
+ if (in_array(false,$r)) {
+ db_rollback($lr);
+ db_close($lr);
+ return false;
+ } else {
+ db_commit($lr);
+ db_close($lr);
+ $_SESSION['alert'][] = 'info:success';
+ return true;
+ }
+
+ }
+
+ function ujMunkaterv($ADAT) {
+
+ $q = "INSERT INTO munkaterv (munkatervNev,tanitasiNap,tanitasNelkuliMunkanap,vegzosZarasDt) VALUES
+ ('%s',%u,%u,'%s')";
+ $v = array($ADAT['munkatervNev'], $ADAT['tanitasiNap'], $ADAT['tanitasNelkuliMunkanap'], $ADAT['vegzosZarasDt']);
+ $munkatervId = db_query($q, array('fv' => 'ujMunkaterv/munkaterv', 'modul' => 'naplo', 'values' => $v, 'result' => 'insert'), $lr);
+
+ if (!$munkatervId) { return false; }
+
+ $q = "INSERT INTO nap SELECT dt, tipus, megjegyzes, orarendiHet, %u AS munkatervId, csengetesiRendTipus FROM nap WHERE munkatervId=%u";
+ $v = array($munkatervId, $ADAT['munkatervId']);
+ $r = db_query($q, array('fv' => 'ujMunkaterv/nap', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ if (!$r) { return false; }
+
+ return $munkatervId;
+
+ }
+
+ function munkatervModositas($Dt, $Tipus, $Megjegyzes, $OrarendiHet, $Hetek, $munkatervId = 1, $csengetesiRendTipus) {
+
+ global $_TANEV;
+
+ logAction(
+ array(
+ 'szoveg'=>'munkaterv módosítás',
+ 'table'=>'nap'
+ )
+ );
+ $lr = db_connect('naplo', array('fv' => 'munkatervModositas'));
+ db_start_trans($lr);
+ for ($i = 0; $i < count($Dt); $i++) {
+ $dt = $Dt[$i];
+ $time = strtotime($dt);
+ $tipus = $Tipus[$i];
+ $megjegyzes = $Megjegyzes[$i];
+ $_csengetesiRendTipus = $csengetesiRendTipus[$i];
+ if ($tipus == 'tanítási nap') {
+ $orarendiHet = $OrarendiHet[$i];
+ if ($orarendiHet == 0) { // most állítjuk be tanítási napnak, és nem rendelkeztek az órarendi hétről...
+ // kérdezzük le, hogy van-e másik munkatervben már megadott órarendi hét erre a napra
+ $q = "SELECT orarendiHet FROM nap WHERE dt='%s' AND orarendiHet<>0";
+ $v = array($dt);
+ $orarendiHet = db_query($q, array('fv' => 'munkatervModositas/hianyzoOrarendiHet','modul'=>'naplo', 'values'=>$v, 'result'=>'value'), $lr);
+ if ($orarendiHet === false) { db_rollback($lr); db_close($lr); return false; }
+ if (is_null($orarendiHet)) { // nincs beállítva órarendi hét --> legyen a $Hetek első eleme...
+ $orarendiHet = $Hetek[0];
+ }
+ }
+ } else {
+ // Ha nem tanítási nap, akkor nincs értelme órarendi hetet beállítani --> 0
+ $orarendiHet = 0;
+ }
+ if (
+ ($time >= strtotime($_TANEV['kezdesDt']) && $time <= strtotime($_TANEV['zarasDt']))
+ && ($tipus != 'tanítási nap' || count($Hetek) == 0 || in_array($orarendiHet, $Hetek))
+ ) {
+ $q = "UPDATE nap SET csengetesiRendTipus='%s',tipus='%s', megjegyzes='%s' WHERE dt='%s' AND munkatervId=%u";
+ $v = array($_csengetesiRendTipus, $tipus, $megjegyzes, $dt, $munkatervId);
+ $r = db_query($q, array('fv' => 'munkatervModositas/típus, megjegyzés', 'modul' => 'naplo', 'values' => $v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return(false); }
+ // Az órarendi hét módosítás mindig az összes munkatervet érinti!!
+ if ($orarendiHet != 0) {
+ $q = "UPDATE nap SET orarendiHet=%u WHERE dt='%s' AND tipus='tanítási nap'";
+ $v = array($orarendiHet, $dt);
+ } else {
+ $q = "UPDATE nap SET orarendiHet=%u WHERE dt='%s' AND munkatervId=%u";
+ $v = array($orarendiHet, $dt, $munkatervId);
+ }
+ $r = db_query($q, array('fv' => 'munkatervModositas/órarendiHét', 'modul' => 'naplo', 'values' => $v), $lr);
+ if (!$r) { db_rollback($lr); db_close($lr); return(false); }
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:munkatervModositas:'.$dt.':'.$tipus.'/'.$orarendiHet;
+ }
+ }
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+ function munkatervOsztaly($ADAT) {
+
+ $r = array();
+ for ($i = 0; $i < count($ADAT['osztalyIds']); $i++) {
+
+ $osztalyId = $ADAT['osztalyIds'][$i];
+ $munkatervId = $ADAT['ujMunkatervIds'][$i];
+ $q = "UPDATE munkatervOsztaly SET munkatervId='%u' WHERE osztalyId=%u";
+ $v = array($munkatervId, $osztalyId);
+ $r[] = db_query($q, array('fv' => 'munkatervOsztaly', 'modul' => 'naplo', 'values' => $v));
+
+ }
+ return !in_array(false, $r);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/tanev/tankorBlokk.php b/mayor-orig/www/include/modules/naplo/tanev/tankorBlokk.php
new file mode 100644
index 00000000..6b15bdeb
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/tankorBlokk.php
@@ -0,0 +1,277 @@
+<?php
+/*
+ Jó az, hogy egész évre nézzük a tankorBlokk ellenőrzéseket?
+ A tankorTanarFelvesz függvényben csak az érintett tol-ig határok kozott ellenőriztem... [bb]
+*/
+
+
+ function getTankorExportOraszamByTanev($tanev, $tankorIds = array(), $blokkId = '') {
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ $v = $WHERE = array(); $whereStr = '';
+ if (is_array($tankorIds) && count($tankorIds) > 0) {
+ $WHERE[] = 'tankorId IN ('.implode(',', array_fill(0, count($tankorIds), '%u')).')';
+ $v = $tankorIds;
+ }
+ if (isset($blokkId) && intval($blokkId) > 0) {
+ $WHERE[] = "blokkId != %u";
+ $v[] = intval($blokkId);
+ }
+ if (count($WHERE) > 0) $whereStr = "WHERE ".implode(' AND ', $WHERE);
+
+ $return = array();
+ // tankörök export óraszáma (az aktuális blokk kivételével)
+ $q = "SELECT tankorId, SUM(exportOraszam) AS exportOraszam FROM `%s`.tankorBlokk
+ LEFT JOIN `%s`.blokk USING (blokkId)
+ $whereStr GROUP BY tankorId";
+ array_unshift($v, $tanevDbNev, $tanevDbNev);
+ return db_query($q, array('fv' => 'getTankorExportOraszamByTanev', 'modul' => 'naplo', 'result' => 'keyvaluepair', 'keyfield' => 'tankorId', 'values' => $v), $lr);
+
+ }
+
+ function ujTankorBlokk($blokkNev, $exportOraszam, $tankorIds, $tanev='') {
+
+ global $_TANEV;
+
+ if (!is_array($tankorIds) || count($tankorIds)==0 || $blokkNev=='') {
+ $_SESSION['alert'][] = '::egy kötelező paraméter hiányzik!';
+ return false;
+ }
+
+ if ($tanev=='') {
+ $tanev = __TANEV;
+ $tanevAdat = $_TANEV;
+ } else {
+ $tanevAdat = getTanevAdat($tanev);
+ }
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ if (strtotime($tanevAdat['zarasDt']) < time()) {
+ $_SESSION['alert'][] = 'message:Elmúlt tanévre ne hozzunk létre tankörblokkot!';
+ return false;
+ }
+ if (time() < strtotime($tanevAdat['kezdesDt'])) {
+ $kezdesDt = $tanevAdat['kezdesDt'];
+ $kezdesDtPattern = "'%s'";
+ } else {
+ $kezdesDt = 'CURDATE()';
+ $kezdesDtPattern = '%s';
+ }
+ $zarasDt = $tanevAdat['zarasDt'];
+
+ /* Vizsgáljuk meg, hogy létrehozható-e a tankorBlokk
+ kizáró feltétel, ha egy diák beletartozik több csoportba HAVING count>2
+ */
+
+ $lr = db_connect('naplo', array('fv' => 'ujTankorBlokk'));
+
+ // Ellenőrzés - tankör - diákok
+ $q = "SELECT diakId,COUNT(DISTINCT tankorId) AS c FROM ".__INTEZMENYDBNEV.".tankorDiak
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR kiDt >= $kezdesDtPattern)
+ GROUP BY diakId HAVING c>1
+ ORDER BY tankorId,diakId";
+// AND jelenlet='kötelező'
+ /* Ez a függvény nem veszi figyelembe a felmentéseket! */
+
+ $_SESSION['alert'][] = 'info:!!!:ujTankorBlokk() felmentések';
+
+ $v = mayor_array_join($tankorIds, array($zarasDt, $kezdesDt));
+ $ret=db_query($q, array('fv' => 'ujTankorBlokk', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if (count( $ret ) > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:ujTankorBlokk:Sikertelen. '.count($ret).' db ütköző diákot találtam!: diakId='.$ret[0]['diakId'].'...';
+ db_close($lr);
+ return false;
+ }
+
+ // Ellenőrzés - tankör - tanárok
+ $q = "SELECT tanarId,COUNT(DISTINCT tankorId) AS c FROM ".__INTEZMENYDBNEV.".tankorTanar
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR kiDt >= $kezdesDtPattern)
+ GROUP BY tanarId HAVING c>1
+ ORDER BY tankorId,tanarId";
+ $v = mayor_array_join($tankorIds, array($zarasDt, $kezdesDt));
+ $ret = db_query($q, array('fv' => 'ujTankorBlokk', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v));
+ if (count( $ret ) > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:ujTankorBlokk:Sikertelen. '.count($ret).' db ütköző tanárt találtam!:tanarId='.$ret[0]['tanarId'].'...';
+ db_close($lr);
+ return false;
+ }
+
+ // Ellenőrzés - óraszám
+ // tankörök export óraszáma (az aktuális blokk kivételével)
+ $tankorExportOraszam = getTankorExportOraszamByTanev($tanev, $tankorIds);
+ // tankörök óraszáma
+ $tankorOraszam = getTankorOraszamByTanev($tanev, $tankorIds);
+ foreach ($tankorIds as $index => $tankorId) {
+ if ($tankorOraszam[$tankorId] - $tankorExportOraszam[$tankorId] < $exportOraszam)
+ $exportOraszam = $tankorOraszam[$tankorId] - $tankorExportOraszam[$tankorId];
+ }
+ if ($exportOraszam < 0) $exportOraszam = 0;
+ db_start_trans($lr);
+
+ // Új felvétele
+ $q = "INSERT INTO `%s`.`blokk` (`blokkNev`, `exportOraszam`) VALUES ('%s', %f)";
+ $v = array($tanevDbNev, $blokkNev, $exportOraszam);
+
+ $blokkId = db_query($q, array('fv' => 'ujTankorBlokk', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v, 'rollback' => true), $lr);
+ if ($blokkId === false) { db_close($lr); return false; }
+
+ // Tankörök hozzárendelése
+ $Val = array(); $v = array($tanevDbNev);
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $Val[] = "(%u, %u)";
+ array_push($v, $blokkId, $tankorIds[$i]);
+ }
+ $q = "INSERT INTO `%s`.tankorBlokk (blokkId,tankorId) VALUES ".implode(',', $Val);
+ $r = db_query($q, array('fv' => 'ujTankorBlokk', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if (!$r) { db_close($lr); return false; }
+
+ db_commit($lr);
+ db_close($lr);
+ return true;
+
+ }
+
+ function tankorBlokkModositas($ADAT) {
+
+
+ if (!is_array($ADAT['tankorIds']) || count($ADAT['tankorIds'])==0 || $ADAT['blokkNev']=='') {
+ $_SESSION['alert'][] = '::egy kötelező paraméter hiányzik!(tbmod)';
+ return false;
+ }
+
+ if ($ADAT['tanev']=='') {
+ $tanev = __TANEV;
+ $tanevAdat = $_TANEV;
+ } else {
+ $tanev = $ADAT['tanev'];
+ $tanevAdat = getTanevAdat($tanev);
+ }
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ if (strtotime($tanevAdat['zarasDt']) < time()) {
+ $_SESSION['alert'][] = 'message:Elmúlt tanévre ne hozzunk létre tankörblokkot!';
+ return false;
+ }
+ $blokkId = $ADAT['blokkId'];
+ $tankorIds = $ADAT['tankorIds'];
+
+ $zarasDt = $tanevAdat['zarasDt'];
+ if (time() < strtotime($tanevAdat['kezdesDt'])) {
+ $kezdesDt = $tanevAdat['kezdesDt'];
+ $kezdesDtPattern = "'%s'";
+ } else {
+ $kezdesDt = 'CURDATE()';
+ $kezdesDtPattern = "%s";
+ }
+
+ $lr = db_connect('naplo');
+
+ // Ellenőrizzük a tankör tagokat - azonosak-e tankörönként
+ $q = "SELECT diakId,COUNT(DISTINCT tankorId) AS c FROM ".__INTEZMENYDBNEV.".tankorDiak
+ WHERE tankorId IN (".implode(',', array_fill(0, count($ADAT['tankorIds']), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR kiDt >= $kezdesDtPattern)
+ GROUP BY diakId HAVING c>1
+ ORDER BY tankorId,diakId";
+
+ $v = mayor_array_join($ADAT['tankorIds'], array($zarasDt, $kezdesDt));
+ $ret = db_query($q, array('fv' => 'tankorBlokkModositas', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $lr);
+ if (count( $ret ) > 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:tankorBlokkModositas:Sikertelen. '.count($ret).' db ütköző diákot találtam!:diakId='.$ret[0]['diakId'].'...';
+ db_close($lr);
+ return false;
+ }
+
+ // Ellenőrizzük a tankör tanárokat - azonosak-e tankörönként
+ $q = "SELECT tanarId,COUNT(DISTINCT tankorId) AS c FROM ".__INTEZMENYDBNEV.".tankorTanar
+ WHERE tankorId IN (".implode(',', array_fill(0, count($ADAT['tankorIds']), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR kiDt >= $kezdesDtPattern)
+ GROUP BY tanarId HAVING c>1
+ ORDER BY tankorId,tanarId";
+ $v = mayor_array_join($ADAT['tankorIds'], array($zarasDt, $kezdesDt));
+ $ret = db_query($q, array('fv' => 'tankorBlokkModositas', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $lr);
+ if (count( $ret )>0) {
+ $_SESSION['alert'][] = 'message:wrong_data:tankorBlokkModositas:Sikertelen. '.count($ret).' db ütköző tanárt találtam!:blokkId='.$blokkId.':tanarId='.$ret[0]['tanarId'].'...';
+ db_close($lr);
+ return false;
+ }
+
+ // tankörök export óraszáma (az aktuális blokk kivételével)
+ $tankorExportOraszam = getTankorExportOraszamByTanev($tanev, $ADAT['tankorIds'], $blokkId);
+ // tankörök óraszáma
+ $tankorOraszam = getTankorOraszamByTanev($tanev, $ADAT['tankorIds']);
+ foreach ($ADAT['tankorIds'] as $index => $tankorId) {
+ if ($tankorOraszam[$tankorId] - $tankorExportOraszam[$tankorId] < $ADAT['exportOraszam']) {
+ $_SESSION['alert'][] = 'message:wrong_data:tankorId='.$tankorId.', óraszám='.$tankorOraszam[$tankorId].', export óraszám='.
+ intval($tankorExportOraszam[$tankorId]).', blokk óraszám='.$ADAT['exportOraszam'];
+ return false;
+ }
+ }
+
+ // Csoportnév és export óraszám módosítása
+ $q = "UPDATE `%s`.blokk SET blokkNev='%s',exportOraszam=%f WHERE blokkId=%u";
+ $v = array($tanevDbNev, $ADAT['blokkNev'], $ADAT['exportOraszam'], $ADAT['blokkId']);
+ db_query($q, array('fv' => 'tankorBlokkModositas', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ // SAFE:
+ db_start_trans($lr);
+
+ // Törlés
+ $q = "DELETE FROM `%s`.tankorBlokk WHERE blokkId=%u";
+ $v = array($tanevDbNev, $blokkId);
+ $r = db_query($q, array('fv' => 'tankorBlokkModositas/Delete', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ if ($r === false) { db_close($lr); return false; }
+ // Itt nem jó a commit, hisz még félben van a dolog - nem? // else db_commit($lr);
+
+ // Tankörök hozzárendelése
+ $v = array($tanevDbNev); $Val = array();
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $Val[] = "(%u, %u)";
+ array_push($v, $blokkId, $tankorIds[$i]);
+ }
+ if (count($Val) > 0) {
+ $q = "INSERT INTO `%s`.tankorBlokk (blokkId,tankorId) VALUES ".implode(',', $Val);
+ $r = db_query($q, array('fv' => 'tankorBlokkModositas/Insert', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback' => true), $lr);
+ }
+
+ if ($r===false) { db_close($lr); return false; }
+
+ db_commit($lr);
+
+ db_close($lr);
+ return true;
+
+ }
+
+ function tankorBlokkTorles($ADAT) {
+
+ if ($ADAT['blokkId']=='') {
+ $_SESSION['alert'][] = '::egy kötelező paraméter hiányzik!';
+ return false;
+ }
+
+ if ($ADAT['tanev']=='') {
+ $tanev = __TANEV;
+ $tanevAdat = $_TANEV;
+ } else {
+ $tanev = $ADAT['tanev'];
+ $tanevAdat = getTanevAdat($tanev);
+ }
+
+ $tanevDbNev = tanevDbNev(__INTEZMENY, $tanev);
+
+ $blokkId=intval($ADAT['blokkId']);
+
+ $q = "DELETE FROM `%s`.blokk WHERE blokkId=%u";
+ $v = array($tanevDbNev, $blokkId);
+ $r = db_query($q, array('fv' => 'TankorBlokk|Delete', 'modul' => 'naplo_intezmeny', 'values' => $v, 'rollback'=>true), $lr);
+
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/tanev/tankorCsoport.php b/mayor-orig/www/include/modules/naplo/tanev/tankorCsoport.php
new file mode 100644
index 00000000..984726db
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/tankorCsoport.php
@@ -0,0 +1,164 @@
+<?php
+
+ function getTankorCsoportByTankorIds($tankorIds) {
+
+ $q = "SELECT csoportId,csoportNev,tankorId FROM csoport LEFT JOIN tankorCsoport USING (csoportId)
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")";
+ return db_query($q, array(
+ 'fv' => 'tankorCsoport', 'modul' => 'naplo', 'result' => 'multiassoc', 'keyfield' => 'csoportId', 'values' => $tankorIds
+ ));
+
+ }
+
+ function ujTankorCsoport($csoportNev, $tankorIds) {
+
+ global $_TANEV;
+ $dt = (time() <= strtotime($_TANEV['kezdesDt'])) ? "'".$_TANEV['kezdesDt']."'" : 'CURDATE()';
+
+ $lr = db_connect('naplo', array('fv' => 'ujTankorCsoport'));
+
+ // Ellenőrizzük, hogy a megadott tankörök még nem foglaltak
+ $q = "SELECT tankorId FROM ".__TANEVDBNEV.".tankorCsoport
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") LIMIT 1";
+ $ret = db_query($q, array('fv' => 'ujTankorCsoport', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $tankorIds), $lr);
+ if (count($ret) > 0) {
+ $_SESSION['alert'][] = 'message:utkozes:ujTankorCsoport:tankör ütközés';
+ db_close($lr);
+ return false;
+ }
+
+ // Ellenőrizzük a tankör tagokat - azonosak-e tankörönként
+ $q = "SELECT DISTINCT tankorId,diakId FROM ".__INTEZMENYDBNEV.".tankorDiak
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR kiDt >= '%s')
+ ORDER BY tankorId,diakId";
+ $v = mayor_array_join($tankorIds, array($dt, $dt));
+ $ret = db_query($q, array('fv' => 'ujTankorCsoport', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ $tDiakok = array();
+ foreach ($tankorIds as $tankorId) $tDiakok[$tankorId] = array(); // különben az üres tankör nem jelennemeg az ellenőrzéskor!
+ for ($i = 0; $i < count($ret); $i++) {
+ $tDiakok[$ret[$i]['tankorId']][] = $ret[$i]['diakId'];
+ }
+ foreach ($tDiakok as $tankorId => $diakIds) {
+ if (is_array($elsoDiakIds)) {
+ if ($elsoDiakIds != $diakIds) {
+ $_SESSION['alert'][] = 'message:wrong_data:ujTankorCsoport:tankör tagok nem azonosak:(tankorId='.$tankorId.')';
+ db_close($lr);
+ return false;
+ }
+ } else {
+ $elsoDiakIds = $diakIds;
+ }
+ }
+
+ // Új csoport felvétele
+ $q = "INSERT INTO ".__TANEVDBNEV.".csoport (csoportNev) VALUES ('%s')";
+ $csoportId = db_query($q, array('fv' => 'ujTankorCsoport', 'modul' => 'naplo', 'result' => 'insert', 'values' => array($csoportNev)), $lr);
+ if ($csoportId === false) { db_close($lr); return false; }
+
+ // Tankörök hozzárendelése
+ $v = $Val = array();
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $Val[] = "(%u, %u)";
+ array_push($v, $csoportId, $tankorIds[$i]);
+ }
+ $q = "INSERT INTO ".__TANEVDBNEV.".tankorCsoport (csoportId,tankorId) VALUES ".implode(',', $Val);
+ db_query($q, array('fv' => 'ujTankorCsoport', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ _setMinMax($csoportId,$lr);
+
+ db_close($lr);
+ return true;
+
+ }
+
+ function tankorCsoportModositas($csoportId, $csoportNev, $tankorIds) {
+
+ global $_TANEV;
+ $dt = (time() <= strtotime($_TANEV['kezdesDt'])) ? "'".$_TANEV['kezdesDt']."'" : 'CURDATE()';
+
+ if (count($tankorIds) == 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:tankorCsoportModositas/#0:nincs tankör';
+ return false;
+ }
+
+ $lr = db_connect('naplo');
+
+ // Ellenőrizzük, hogy a megadott tankörök még nem foglaltak
+ $q = "SELECT tankorId FROM ".__TANEVDBNEV.".tankorCsoport
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).") AND csoportId != %u LIMIT 1";
+ $v = mayor_array_join($tankorIds, array($csoportId));
+ $ret = db_query($q, array('fv' => 'tankorCsoportModositas/#1', 'modul' => 'naplo', 'result' => 'indexed', 'values' => $v), $lr);
+ if (count($ret) > 0) {
+ $_SESSION['alert'][] = 'message:utkozes:tankorCsoportModositas/#2:tankör ütközés';
+ db_close($lr);
+ return false;
+ }
+
+ // Ellenőrizzük a tankör tagokat - azonosak-e tankörönként
+ $q = "SELECT tankorId,diakId FROM ".__INTEZMENYDBNEV.".tankorDiak
+ WHERE tankorId IN (".implode(',', array_fill(0, count($tankorIds), '%u')).")
+ AND beDt <= '%s' AND (kiDt IS NULL OR kiDt >= '%s' )
+ ORDER BY tankorId,diakId";
+ $v = mayor_array_join($tankorIds, array($dt, $dt));
+ $ret = db_query($q, array('fv' => 'tankorCsoportModositas/#3', 'modul' => 'naplo_intezmeny', 'result' => 'indexed', 'values' => $v), $lr);
+ $tDiakok = array();
+ for ($i = 0; $i < count($ret); $i++) $tDiakok[$ret[$i]['tankorId']][] = $ret[$i]['diakId'];
+ foreach ($tankorIds as $index => $tankorId) {
+ $diakIds = $tDiakok[$tankorId];
+ if (is_array($elsoDiakIds)) {
+ if ($elsoDiakIds != $diakIds) {
+ $_SESSION['alert'][] = 'message:wrong_data:tankorCsoportModositas/#4:tankör tagok nem azonosak:(tankorId='.$tankorId.')';
+ db_close($lr);
+ return false;
+ }
+ } else {
+ $elsoDiakIds = $diakIds;
+ }
+ }
+
+ // Csoportnév módosítása
+ $q = "UPDATE ".__TANEVDBNEV.".csoport SET csoportNev = '%s' WHERE csoportId = %u";
+ $v = array($csoportNev, $csoportId);
+ db_query($q, array('fv' => 'tankorCsoportModositas', 'modul' => 'naplo', 'values' => $v));
+ // Régi csoporthozzárendelések törlése
+ $q = "DELETE FROM ".__TANEVDBNEV.".tankorCsoport WHERE csoportId = %u";
+ $v = array($csoportId);
+ db_query($q, array('fv' => 'tankorCsoportModositas', 'modul' => 'naplo', 'values' => $v));
+ // Tankörök hozzárendelése
+ $v = $Val = array();
+ for ($i = 0; $i < count($tankorIds); $i++) {
+ $Val[] = "(%u, %u)";
+ array_push($v, $csoportId, $tankorIds[$i]);
+ }
+ $q = "INSERT INTO ".__TANEVDBNEV.".tankorCsoport (csoportId,tankorId) VALUES ".implode(',', $Val);
+ db_query($q, array('fv' => 'tankorCsoportModositas/#5', 'modul' => 'naplo', 'values' => $v));
+
+ _setMinMax($csoportId,$lr);
+
+ db_close($lr);
+ return true;
+
+ }
+
+ function tankorCsoportTorles($csoportId, $tanev = __TANEV) {
+ $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $q = "DELETE FROM `%s`.csoport WHERE csoportId=%u";
+ $v = array($tanevDb, $csoportId);
+ db_query($q, array('fv' => 'tankorCsoportTorles', 'modul' => 'naplo', 'values' => $v));
+ }
+
+ function _setMinMax($csoportId,$lr) {
+
+ // Tankörcsoport minimum, maximum beállítás - legbővebb halmaz
+ $v = array($csoportId);
+ $q = ("SET @min= (SELECT MIN(min) FROM ".__INTEZMENYDBNEV.".tankor WHERE tankorId IN (SELECT DISTINCT tankorId FROM tankorCsoport WHERE csoportId=%u))");
+ db_query($q, array('fv' => 'ujTankorCsoport', 'modul' => 'naplo', 'values' => $v), $lr);
+ $q = ("SET @max= (SELECT MAX(max) FROM ".__INTEZMENYDBNEV.".tankor WHERE tankorId IN (SELECT DISTINCT tankorId FROM tankorCsoport WHERE csoportId=%u))");
+ db_query($q, array('fv' => 'ujTankorCsoport', 'modul' => 'naplo', 'values' => $v), $lr);
+ $q = "UPDATE ".__INTEZMENYDBNEV.".tankor SET min=@min, max=@max WHERE tankorId IN (SELECT DISTINCT tankorId FROM tankorCsoport WHERE csoportId=%u)";
+ db_query($q, array('fv' => 'ujTankorCsoport', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/tanev/targyBontas.php b/mayor-orig/www/include/modules/naplo/tanev/targyBontas.php
new file mode 100644
index 00000000..5b31bdec
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/targyBontas.php
@@ -0,0 +1,240 @@
+<?php
+
+ function checkTargyBontas() {
+ // $q = "SELECT count(*) as db FROM bontasTankor"; ???
+ $q = "SELECT count(*) as db FROM kepzesTargyBontas";
+ $darab = db_query($q, array('fv'=>'checkTargyBontas','modul'=>'naplo','result'=>'value'));
+ return ($darab>0?TRUE:FALSE);
+ }
+
+ function getKepzesTargyBontasByOsztalyIds($osztalyIds) {
+
+ if (!is_array($osztalyIds) || count($osztalyIds)==0) return false;
+
+ // tankör- és óraszám adatok
+ $q = "SELECT bontasId, tankorId, hetiOraszam
+ FROM kepzesTargyBontas LEFT JOIN bontasTankor USING (bontasId)
+ WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).") AND tankorId IS NOT NULL
+ ORDER BY bontasId";
+ $r = db_query($q, array('fv'=>'getKepzesTargyBontasByOsztalyIds/2','modul'=>'naplo','result'=>'indexed','values'=>$osztalyIds));
+ foreach ($r as $a) $TO[$a['bontasId']][] = array('tankorId'=>$a['tankorId'], 'hetiOraszam'=>$a['hetiOraszam']);
+
+ // kepzesTargyBontas adatok
+ $q = "SELECT kepzesTargyBontas.*,sum(hetiOraszam) as hetiOraszam
+ FROM kepzesTargyBontas LEFT JOIN bontasTankor USING (bontasId)
+ WHERE osztalyId IN (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ GROUP BY bontasId ORDER BY bontasId";
+ $r = db_query($q, array('fv'=>'getKepzesTargyBontasByOsztalyIds','modul'=>'naplo','result'=>'indexed','values'=>$osztalyIds));
+ if (!is_array($r)) return $r;
+ $return = array();
+ foreach ($r as $a) $return[$a['osztalyId']][$a['kepzesOratervId']][] = array(
+ 'bontasId' => $a['bontasId'],
+ 'targyId' => $a['targyId'],
+ 'hetiOraszam' => $a['hetiOraszam'],
+ 'tankor-oraszam'=>$TO[ $a['bontasId'] ]
+ );
+
+ return $return;
+
+ }
+
+ function kepzesOratervSorrend($evfolyamJel, $osztalyIds, $kepzesIds) {
+ // ez volt // group_concat(kepzesTargyBontas.targyId order by kepzesTargyBontas.targyId separator '-') as btStr
+
+ $q = "select
+ kepzesOratervId, tipus, targyNev, kepzesOraterv.targyId as targyId, kepzesOraterv.hetiOraszam as hetiOraszam, osztalyId, kepzesId, szemeszter,
+ group_concat(concat_ws('-',kepzesTargyBontas.targyId,tankorId,bontasTankor.hetiOraszam) order by kepzesTargyBontas.targyId,tankorId separator '_') as btStr
+ from kepzesOraterv
+ left join targy using (targyId)
+ left join kepzesOsztaly using (kepzesId)
+ left join ".__TANEVDBNEV.".kepzesTargyBontas using (kepzesOratervId, osztalyId)
+ left join ".__TANEVDBNEV.".bontasTankor using (bontasId)
+ where evfolyamJel='%s' and osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ and kepzesId in (".implode(',', array_fill(0, count($kepzesIds), '%u')).")
+ group by kepzesOratervId, tipus, kepzesOraterv.targyId, kepzesOraterv.hetiOraszam, osztalyId, kepzesId, szemeszter
+ order by tipus, targyNev, kepzesOraterv.targyId, kepzesOraterv.hetiOraszam, btStr, osztalyId, szemeszter";
+ $v = mayor_array_join(array($evfolyamJel), $osztalyIds, $kepzesIds);
+ $ret = db_query($q, array('fv'=>'kepzesOratervSorrend','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+ return reindex($ret, array('tipus','targyId','hetiOraszam','btStr'));
+ }
+
+ function addBontas($osztalyId, $kepzesOratervId, $targyId=null, $olr=null) {
+
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) $lr = db_connect('naplo_intezmeny', array('fv'=>'addBontas'));
+ else $lr = $olr;
+
+ if ($targyId == '') {
+ $q = "SELECT targyId FROM kepzesOraterv WHERE kepzesOratervId=%u";
+ $targyId = db_query($q, array('fv'=>'addBontas','modul'=>'naplo_intezmeny','result'=>'value','values'=>array($kepzesOratervId)), $lr);
+ }
+ if ($targyId == '') return false;
+
+ $q = "INSERT INTO ".__TANEVDBNEV.".kepzesTargyBontas (osztalyId, kepzesOratervId, targyId) VALUES (%u, %u, %u)";
+ $bontasId = db_query($q, array('fv'=>'addBontas/insert','modul'=>'naplo','result'=>'insert','values'=>array($osztalyId,$kepzesOratervId,$targyId)), $lr);
+
+ // is_resource mysqli esetán nem jó (object)
+ if (!$olr) db_close();
+
+ return array(
+ 'targyId' => $targyId,
+ 'osztalyId' => $osztalyId,
+ 'kepzesOratervId' => $kepzesOratervId,
+ 'bontasId' => $bontasId
+ );
+
+ }
+
+ function delBontas($bontasIds) {
+ if (!is_array($bontasIds) || count($bontasIds) == 0) return false;
+ $q = "DELETE FROM kepzesTargyBontas WHERE bontasId IN (".implode(',', array_fill(0, count($bontasIds), '%u')).")";
+ $r = db_query($q, array('fv'=>'delBontas','modul'=>'naplo','values'=>$bontasIds));
+ if ($r) return $bontasIds;
+ else return $r;
+ }
+
+ function initFromLastYear() {
+ // Csak akkor lehet init, ha még nincs bent egyetlen bontás sem az adott kepzes-osztály párokhoz
+ $q = "select count(*) from kepzesTargyBontas";
+ $db = db_query($q, array('fv'=>'kepzesTargyBontasInit/0','modul'=>'naplo','result'=>'value','values'=>$v));
+ if ($db > 0) return true;
+
+ $lr = db_connect('naplo_intezmeny', array('fv'=>'initFromLastYear'));
+ // is_resource mysqli esetén nem jó (object)
+ if (!$lr) return false;
+
+ $elozoTanevDb = tanevDbNev(__INTEZMENY,__TANEV-1);
+ // ha nincs előző tanév, akkor kész az init
+ $q = "SELECT COUNT(SCHEMA_NAME) FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '%s'";
+ $v = array($elozoTanevDb);
+ $db = db_query($q, array('fv'=>'kepzesTargyBontasInit/0.5','modul'=>'naplo','result'=>'value','values'=>$v));
+ if ($db == 0) return true;
+
+ set_time_limit(300);
+
+ // Az előző év bontásai alapján
+ /*
+ Lekérdezzük az előző év bontásainak adatait, melyek az adott kepzes-osztály párhoz tartoztak.
+ bontasId szerint rendezünk, hogy egy bontást csak egyszer vegyünk fel.
+ */
+ $q = "select kepzesOratervId,osztalyId,kepzesOraterv.targyId as koTargyId,kepzesTargyBontas.targyId as bontasTargyId,
+ tankorId,bontasTankor.hetiOraszam as bontasOraszam, bontasId,
+ kepzesId,evfolyamJel,szemeszter,kepzesOraterv.hetiOraszam as koOraszam,tipus
+ from ".$elozoTanevDb.".kepzesTargyBontas
+ left join ".$elozoTanevDb.".bontasTankor using (bontasId)
+ left join kepzesOraterv using (kepzesOratervId)
+ order by bontasId";
+ $r1 = db_query($q, array('fv'=>'kepzesTargyBontasInit/1','modul'=>'naplo_intezmeny','result'=>'indexed'), $lr);
+
+ $elozoTavalyiBontasId = '';
+ foreach ($r1 as $r1Adat) {
+ // Ha van a tavalyinak megfelelő képzés-óraterv bejegyzés, akkor hozzunk létre neki bontást
+ if ($r1Adat['tipus'] == 'mintatantervi') {
+ $q = "select kepzesOraterv.*,oraszam from kepzesOraterv
+ left join tankorSzemeszter on tankorSzemeszter.szemeszter=kepzesOraterv.szemeszter and tanev=".__TANEV." and tankorId=%u
+ where kepzesId=%u and kepzesOraterv.szemeszter=%u
+ and tipus='%s' and kepzesOraterv.targyId=%u
+ and kepzesOraterv.evfolyamJel='".getKovetkezoEvfolyamJel($r1Adat['evfolyamJel'])."'
+ ";
+ $v = array($r1Adat['tankorId'], $r1Adat['kepzesId'], $r1Adat['szemeszter'], $r1Adat['tipus'], $r1Adat['koTargyId']);
+ } else {
+ $q = "select * from kepzesOraterv
+ left join tankorSzemeszter on tankorSzemeszter.szemeszter=kepzesOraterv.szemeszter and tanev=".__TANEV." and tankorId=%u
+ where kepzesId=%u and kepzesOraterv.szemeszter=%u
+ and tipus='%s' and kepzesOraterv.targyId is null
+ and kepzesOraterv.evfolyamJel='".getKovetkezoEvfolyamJel($r1Adat['evfolyamJel'])."'
+ ";
+ $v = array($r1Adat['tankorId'], $r1Adat['kepzesId'], $r1Adat['szemeszter'], $r1Adat['tipus'], );
+ }
+ $r2 = db_query($q, array('fv'=>'kepzesTargyBontasInit/2','modul'=>'naplo_intezmeny','result'=>'record','values'=>$v), $lr);
+ /*
+ - Lehet az eredmény üres, ha nincs a képzés óratervben idén folytatása a tárgynak/típusnak
+ */
+ if (!is_array($r2)) continue;
+ /*
+ - Amúgy csak egy rekord lehet... - ekkor a bontást létrehozhatjuk, ha az előző rekord nem ugyanehhez a bontáshoz tartozott...
+ (a hozzárendelt tankört csak akkor vesszük figyelembe, ha egy van belőle...)
+ */
+ if ($elozoTavalyiBontasId != $r1Adat['bontasId']) {
+ $r3 = addBontas($r1Adat['osztalyId'], $r2['kepzesOratervId'], $r1Adat['bontasTargyId'], $lr);
+ $bontasId = $r3['bontasId'];
+ $elozoTavalyiBontasId = $r1Adat['bontasId'];
+ }
+
+ if (($r1Adat['tankorId'] != '') && ($r1Adat['bontasOraszam'] == $r1Adat['koOraszam']) && ($r2['hetiOraszam'] == $r2['oraszam'])) {
+ /*
+ Ha a tavalyi tankör idei évhez is hozzá van rendelve...
+ és tavaly megegyezett a tankör óraszáma a bontás óraszámával...
+ a tankör idei óraszáma is megegyezik a bontás/képzés-oraterv óraszámával,
+ akkor a tankör is hozzárendelhető
+ */
+ $r4 = bontasTankor(array($bontasId), $r1Adat['tankorId'], $r2['hetiOraszam'], $lr);
+ if (!$r4) {} // hibakezelés??
+ }
+ }
+ db_close($lr);
+ return true;
+ }
+
+ function kepzesTargyBontasInit($osztalyIds, $kepzesIds) {
+
+ // A megadott osztaly megadott képzéseinek aktuális évfolyamának tantárgyhoz tartozó kepzesOraterv bejegyzéseihez felveszünk egy-egy bontást - ha még nincs
+ $q = "insert into ".__TANEVDBNEV.".kepzesTargyBontas (osztalyId, kepzesOratervId, targyId)
+ select osztalyId, kepzesOratervId, kepzesOraterv.targyId as targyId
+ from kepzesOraterv left join kepzesOsztaly using(kepzesId)
+ left join ".__TANEVDBNEV.".osztalyNaplo using (osztalyId)
+ left join ".__TANEVDBNEV.".kepzesTargyBontas using (osztalyId, kepzesOratervId)
+ where osztalyId in (".implode(',', array_fill(0, count($osztalyIds), '%u')).")
+ and kepzesId in (".implode(',', array_fill(0, count($kepzesIds), '%u')).")
+ and kepzesOraterv.evfolyamJel=osztalyNaplo.evfolyamJel
+ and bontasId is null and kepzesOraterv.targyId is not null";
+ $v = mayor_array_join($osztalyIds, $kepzesIds);
+ return db_query($q, array('fv'=>'kepzesTargyBontasInit','modul'=>'naplo_intezmeny','result'=>'affected rows','values'=>$v));
+
+ }
+
+ function bontasTankor($bontasIds, $tankorId, $hetiOraszam, $olr = null) {
+
+ if (!is_array($bontasIds) || count($bontasIds) == 0 || $tankorId == '' || $hetiOraszam <= 0) {
+ $_SESSION['alert'][] = 'message:empty_field:bontasTankor';
+ return false;
+ }
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) $lr = db_connect('naplo_intezmeny', array('fv'=>'bontasTankor'));
+ else $lr = $olr;
+
+ db_start_trans($lr);
+ $ok=true;
+ /*
+ Óraszám ellenőrzés - kellene itt is?
+ - tankör óraszáma: tankorBontás óraszám <= tankorSzemeszer óraszám
+ - bontás óraszáma: bontás-óraszám <= kepzesOraterv óraszám
+ - tipus szerint a tankörnek csak egyféle óraszáma lehet
+ */
+
+ // Tankor-osztály hozzárendelés
+ $q = "insert into ".__INTEZMENYDBNEV.".tankorOsztaly (tankorId, osztalyId)
+ select distinct %u as tankorId, kepzesTargyBontas.osztalyId as osztalyId from ".__TANEVDBNEV.".kepzesTargyBontas
+ left join ".__INTEZMENYDBNEV.".tankorOsztaly on kepzesTargyBontas.osztalyId=tankorOsztaly.osztalyId and tankorId=%u
+ where bontasId in (".implode(',', array_fill(0, count($bontasIds), '%u')).") and tankorId is null";
+ $v = $bontasIds; array_unshift($v, $tankorId, $tankorId);
+ $r = db_query($q, array('fv'=>'bontasTankor/1','modul'=>'naplo','result'=>'affected rows','values'=>$v), $lr);
+ if ($r === false) { db_rollback($lr, 'tankör-osztály hozzárendelés'); if ($olr) db_close($lr); return false; } // is_resource mysqli esetén nem jó (object)
+ // bontasTankor rögzítése
+ foreach ($bontasIds as $bontasId) {
+ $q = "insert into ".__TANEVDBNEV.".bontasTankor (bontasId, tankorId, hetiOraszam) values (%u, %u, %f)";
+ $v = array($bontasId, $tankorId, $hetiOraszam);
+ $r = db_query($q, array('fv'=>'bontasTankor/bt','modul'=>'naplo','values'=>$v), $lr);
+ if ($r === false) { db_rollback($lr, 'tankörnév hozzárendelés'); if (!$olr) db_close($lr); return false; } // is_resource mysqli esetén nem jó (object)
+ }
+ db_commit($lr);
+
+ $r1 = setTankorNev($tankorId, $tankorNevExtra=null, $lr);
+ // is_resource mysqli esetén nem jó (object)
+ if (!$olr) db_close($lr);
+
+ return $r1;
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/modules/naplo/tanev/targyOraszam.php b/mayor-orig/www/include/modules/naplo/tanev/targyOraszam.php
new file mode 100644
index 00000000..d17958d0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/targyOraszam.php
@@ -0,0 +1,28 @@
+<?php
+
+ function getTargyOraszam($tanev=__TANEV,$targyId='') {
+
+ $q = "SELECT SUM(oraszam)/(SELECT MAX(szemeszter) FROM szemeszter WHERE tanev=%u) AS db, targyNev FROM tankorSzemeszter LEFT JOIN tankor USING (tankorId)
+ LEFT JOIN targy USING (targyId)
+ WHERE tanev=%u GROUP BY targyid ORDER BY targyNev";
+ $v = array($tanev, $tanev);
+ $R = db_query($q, array('fv' => 'getTargyOraszam', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'targyNev', 'values' => $v));
+
+ foreach($R as $_tankorId => $D) {
+ $R[$_tankorId]['tankorTanar'] = getTankorTanarai($tankorId);
+ }
+
+ return $R;
+
+ }
+
+ function getTargyOraszamEvfolyamonkent($tanev=__TANEV) {
+
+ $q = "SELECT SUM(oraszam)/(SELECT MAX(szemeszter) FROM szemeszter WHERE tanev=%u) AS db, targyNev FROM tankorSzemeszter
+ LEFT JOIN tankor USING (tankorId) LEFT JOIN targy USING (targyId) WHERE tanev=%u GROUP BY targyid ORDER BY targyNev";
+ $v = array($tanev, $tanev);
+ return db_query($q, array('fv' => 'getTargyOraszamEvfolyamonkent', 'modul' => 'naplo_intezmeny', 'result' => 'assoc', 'keyfield' => 'targyNev', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/tanev/vegzosOrarendLezaras.php b/mayor-orig/www/include/modules/naplo/tanev/vegzosOrarendLezaras.php
new file mode 100644
index 00000000..b7f9acd0
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/tanev/vegzosOrarendLezaras.php
@@ -0,0 +1,33 @@
+<?php
+
+ /*
+ A megadott osztályokhoz - és csak azokhoz - rendelt tankörök listája
+ */
+ //function getTankorByOsztalyIds($osztalyIds, $tanev = __TANEV) { //MOVED to SHARE libs
+
+ function vegzosOrarendLezaras($ADAT) {
+
+ // A lezárási dátum utáni bejegyzések törlése
+ $q = "DELETE FROM orarendiOra WHERE tolDt >= '%s' AND (tanarId,osztalyJel,targyJel) IN (
+ SELECT tanarId,osztalyJel,targyJel FROM orarendiOraTankor WHERE tankorId IN (".implode(',', array_fill(0, count($ADAT['vegzosTankor']), '%u')).")
+ )";
+ $v = mayor_array_join(array($ADAT['dt']), $ADAT['vegzosTankor']);
+ db_query($q, array('fv' => 'vegzosOrarendLezarads', 'modul' => 'naplo', 'values' => $v));
+
+ // A lezárás dátuma után végződő bejegyzáések igDt-inek beállítása
+ $q = "UPDATE orarendiOra LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel) SET igDt=('%s' - INTERVAL 1 DAY)
+ WHERE tankorId IN (".implode(',', array_fill(0, count($ADAT['vegzosTankor']),'%u')).") AND igDt > '%s'";
+ $v = mayor_array_join(array($ADAT['dt']), $ADAT['vegzosTankor'], array($ADAT['dt']));
+ db_query($q, array('fv' => 'vegzosOrarendLezarads', 'modul' => 'naplo', 'values' => $v));
+
+ }
+
+ function vegzosHaladasiNaploLezaras($ADAT) {
+
+ $q = "DELETE FROM ora WHERE dt >= '%s' AND tankorId IN (".implode(',', array_fill(0, count($ADAT['vegzosTankor']), '%u')).")";
+ $v = mayor_array_join(array($ADAT['dt']), $ADAT['vegzosTankor']);
+ db_query($q, array('fv' => 'vegzosHaladasiNaploLezarads', 'modul' => 'naplo', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/naplo/uzeno/uzeno.php b/mayor-orig/www/include/modules/naplo/uzeno/uzeno.php
new file mode 100644
index 00000000..f85d8009
--- /dev/null
+++ b/mayor-orig/www/include/modules/naplo/uzeno/uzeno.php
@@ -0,0 +1,224 @@
+<?php
+
+ function initSzerep() {
+
+ if (defined('__SZEREP')) return false;
+
+ define('__SZEREP',__UZENOSZEREP);
+/*
+ if (__UZENOADMIN===true && __ASWHO==='asAdmin') define('__SZEREP','admin');
+ elseif (__TANAR===true) define('__SZEREP', 'tanar');
+ elseif (__DIAK===true && defined('__PARENTDIAKID') && intval(__PARENTDIAKID)>0) define('__SZEREP','szulo');
+ elseif (__DIAK===true && defined('__USERDIAKID') && intval(__USERDIAKID)>0) define('__SZEREP','diak');
+ elseif (__UZENOADMIN===true) define('__SZEREP','admin');
+ else define(__SZEREP,'');
+*/
+ }
+
+ function getUzenoSzerep() {
+
+ if (__TANAR===true) $szerep = 'tanar';
+ elseif (__DIAK===true && defined('__PARENTDIAKID') && intval(__PARENTDIAKID)>0) $szerep = 'szulo';
+ elseif (__DIAK===true && defined('__USERDIAKID') && intval(__USERDIAKID)>0) $szerep = 'diak';
+ elseif (__UZENOADMIN===true) $szerep = 'admin';
+ else $szerep='';
+
+ return $szerep;
+
+ }
+
+ function uzenhet($kinek) {
+ global $UZENODENY;
+ if (is_null($UZENODENY[__SZEREP])) return true;
+ return (!in_array($kinek,$UZENODENY[__SZEREP]));
+ }
+
+ function getUzenoUzenetek($SET=array('tanev'=>__TANEV,'count'=>false,'filter'=>array(),'ignoreAdmin'=>false,'filterFlag'=>array(),'limits'=>array(),'order'=>'DESC')) {
+
+ if (__SZEREP=='') return array();
+
+ $feladoId = setUzenoFeladoId();
+ $TIPUSOK = initUzenoTipusok(array('csakId'=>true,'result'=>'idonly','tanev'=>$SET['tanev'],'forRead'=>true));
+ $TIPUSOK[__SZEREP][] = setUzenoFeladoId();
+
+ if (__UZENOADMIN===true && $SET['ignoreAdmin']===true) return array(); // skip useradmin (pl hirnok)
+
+ if (is_array($SET['filter']) && count($SET['filter'])>0) {
+ for ($i=0; $i<count($SET['filter']); $i++) {
+ $X[] = $SET['filter'][$i];
+ }
+ }
+ if (is_array($SET['filterFlag']) && count($SET['filterFlag'])>0) {
+ for ($i=0; $i<count($SET['filterFlag']); $i++) {
+ $Y[] = $SET['filterFlag'][$i];
+ }
+ }
+
+ $dbName = 'naplo_'.__INTEZMENY.'_'.$SET['tanev'];
+
+ if (is_array($SET['limits'])) $L = ' LIMIT '.($SET['limits']['pointer']).','.$SET['limits']['limit'];
+ if (isset($SET['order'])) $O = ' '.$SET['order'].' '; else $O = ' DESC ';
+
+ if (is_array($X) && count($X)>0) $WX = implode(' AND ',$X).' AND'; else $WX = '';
+ if (is_array($Y) && count($Y)>0) $HAVING = 'HAVING '.implode(' AND ',$Y); else $HAVING = '';
+
+ $JOINTABLE = "LEFT JOIN `$dbName`.`uzenoFlagek` ON (uzeno.mId=uzenoFlagek.mId AND Id=$feladoId AND Tipus='".__SZEREP."')";
+
+ if (__UZENOADMIN!==true) {
+ foreach ($TIPUSOK as $tipus=>$DATA) {
+ if (is_array($DATA) && count($DATA)>0) {
+ $W[] = ' (cimzettTipus="'.$tipus.'" AND cimzettId IN ('. implode(',',$DATA) .')) ';
+ $W[] = ' (cimzettTipus="'.$tipus.'" AND cimzettTipus=feladoTipus AND cimzettId=0) ';
+
+ }
+ }
+ $q = "SELECT uzeno.*,uzenoFlagek.flag AS flag FROM $dbName.uzeno $JOINTABLE WHERE ".$WX." ((feladoId=$feladoId and feladoTipus='".__SZEREP."') OR (".implode(' OR ',$W).")) $HAVING ORDER BY uzeno.mId ".$O.$L;
+ $qc = "SELECT count(*) AS db FROM $dbName.uzeno WHERE ".$WX." ((feladoId=$feladoId and feladoTipus='".__SZEREP."') OR (".implode(' OR ',$W)."))";
+ } else {
+ // NOTE - nem minden id-nek az adatai lesznek lekérdezve később!!!
+ $WX = ($WX=='')?'':'WHERE '.$WX.' 1=1';
+// $q = "SELECT uzeno.*,uzenoFlagek.flag AS flag FROM `$dbName`.uzeno $JOINTABLE ".$WX." $HAVING ORDER BY uzeno.mId DESC".$L;
+ $q = "SELECT uzeno.* FROM `$dbName`.uzeno ".$WX." ORDER BY uzeno.mId DESC".$L;
+ $qc= "SELECT count(*) AS db FROM $dbName.uzeno ".$WX;
+ }
+ if ($SET['count']!==true)
+ $result = db_query($q, array('fv' => 'getUzenoUzenetek/1', 'modul' => 'naplo_intezmeny', 'result' => 'indexed'));
+ else
+ $result = db_query($qc, array('fv' => 'getUzenoUzenetek/2', 'modul' => 'naplo_intezmeny', 'result' => 'value'));
+ return $result ;
+
+ }
+
+ // getUzenoUzenetek-->
+ // pre-ből
+ function initUzenoTipusok($SET=array('csakId'=>true,'tanev'=>__TANEV,'forRead'=>false)) {
+ global $UZENODENY;
+
+ $TIPUSOK = array();
+ $feladoId = setUzenoFeladoId();
+ switch (__SZEREP) {
+ case 'tanar': /* nem tiltható */
+ $TIPUSOK['tankorSzulo'] = $TIPUSOK['tankor'] = getTankorByTanarId($feladoId, $SET['tanev'], array('csakId' => $SET['csakId']));
+ $TIPUSOK['munkakozosseg'] = getMunkakozossegByTanarId($feladoId, array('csakId'=>$SET['csakId']));
+ if (__OSZTALYFONOK) {
+ $TIPUSOK['osztalySzulo'] = $TIPUSOK['osztaly'] = getOsztalyByTanarId($feladoId, array('tanev'=>$SET['tanev'],'csakId' => $SET['csakId']));
+ }
+ $TIPUSOK['osztalyTanar'] = getTanarOsztaly($feladoId,$SET);
+ break;
+ case 'szulo': /* tiltható */
+ //if (uzenhet('tanar')) $TIPUSOK['tanar'] = extendUzenoTipusok(array('csakId'=>false,'tanev'=>$SET['tanev']));
+ if (uzenhet('tankorSzulo') || $SET['forRead']===true) $TIPUSOK['tankorSzulo'] = getTankorByDiakId( __USERDIAKID , $SET['tanev'], array('csakId' => $SET['csakId']));
+ if (uzenhet('osztalySzulo') || $SET['forRead']===true) $TIPUSOK['osztalySzulo'] = getDiakOsztalya( __USERDIAKID , array('tanev'=>$SET['tanev'], 'result'=>(($SET['csakId'])?'csakid':''), 'csakId' => $SET['csakId']));
+ break;
+ case 'diak': /* tiltható */
+ //if (uzenhet('tanar')) $TIPUSOK['tanar'] = extendUzenoTipusok(array('csakId'=>false,'tanev'=>$SET['tanev']));
+ if (uzenhet('tankor') || $SET['forRead']===true) $TIPUSOK['tankor'] = getTankorByDiakId($feladoId, $SET['tanev'], array('csakId' => $SET['csakId']));
+ if (uzenhet('osztaly') || $SET['forRead']===true) $TIPUSOK['osztaly'] = getDiakOsztalya($feladoId, array('tanev'=>$SET['tanev'], 'result'=>(($SET['csakId'])?'csakid':''), 'csakId' => $SET['csakId']));
+ break;
+ case 'admin': /* nem tiltható */
+ $TIPUSOK['osztalySzulo'] = $TIPUSOK['osztaly'] = $TIPUSOK['osztalyTanar'] = getOsztalyok($SET['tanev']);
+ $TIPUSOK['munkakozosseg'] = getMunkakozossegek(array(), array('csakId'=>$SET['csakId']));
+ $TIPUSOK['tankorSzulo'] = $TIPUSOK['tankor'] = getTankorByTanev($SET['tanev']);
+ break;
+ default:
+ break;
+ }
+ return $TIPUSOK;
+ }
+
+
+ function extendUzenoTipusok($SET=array('csakId'=>true,'tanev'=>__TANEV,'old'=>false)) { /* Ha szülő/diák, kérdezzük le a gyermek tanköreinek tanárait */
+
+ $R = array();
+ $TANKOROK = getTankorByDiakId( __USERDIAKID , $SET['tanev'], array('csakId' => true));
+ for ($i=0; $i<count($TANKOROK); $i++) {
+ $TT = getTankorTanarai($TANKOROK[$i]);
+ for ($j=0; $j<count($TT); $j++) {
+ $T[$TT[$j]['tanarNev']] = $TT[$j]['tanarId'];
+
+ }
+ }
+ if (is_array($T) && count($T)>0) {
+ ksort($T);reset($T);
+ foreach($T as $nev => $id) $R[] = array('tanarNev'=>$nev, 'tanarId'=>$id);
+ }
+ return $R;
+ }
+
+ function setUzenoFeladoId($nooverride=true) {
+ if ($nooverride===true && __UZENOADMIN===true && __ASWHO=='asAdmin') $kiId = 0;
+ elseif (__SZEREP=='tanar') $kiId = __USERTANARID;
+ elseif (__SZEREP=='szulo') //$kiId = __USERSZULOID; // NOTE ilyen konstans még nincs...
+ $kiId = getSzuloIdByUserAccount();
+ elseif (__SZEREP=='diak') $kiId = __USERDIAKID;
+ elseif (__SZEREP=='admin') $kiId = 0; // de a csak admin nem üzenhet!
+ else return false;
+ return $kiId;
+ }
+
+ function postUzenet($ADAT) {
+ $feladoId = setUzenoFeladoId();
+ $feladoTipus = __SZEREP;
+
+ $cimzettId = $ADAT['cimzettId'];
+ $cimzettTipus = $ADAT['cimzettTipus'];
+ $txt = ($ADAT['txt']);
+ $dbName = 'naplo_'.__INTEZMENY.'_'.$ADAT['tanev'];
+
+ $q = "INSERT INTO `%s`.uzeno (dt,txt,feladoId,feladoTipus,cimzettId,cimzettTipus) VALUES (NOW(), '%s', %u, '%s', %u, '%s')";
+ $v = array($dbName, $txt, $feladoId, $feladoTipus, $cimzettId, $cimzettTipus);
+ return db_query($q,array('fv' => 'uzeno/postUzenet', 'modul' => 'naplo_intezmeny', 'values' => $v));
+ }
+
+ // v3.1
+ function delUzenet($mId,$tanev=__TANEV) {
+ if (!is_numeric($mId) || __UZENOADMIN!==true) return false;
+ if (defined('__INTEZMENY')) {
+ $dbName = 'naplo_'.__INTEZMENY.'_'.$tanev;
+ $q = "DELETE FROM `%s`.`uzeno` WHERE `mId`=%d";
+ $params = array('debug'=>false,'values'=>array($dbName,intval($mId)),'modul'=>'naplo','fv'=>'deluzenet','detailed'=>__UZENOADMIN);
+ return db_query($q,$params);
+ } else
+ return false;
+ }
+
+/*
+ A flagUzenet() függvény az adott mId-t egy user szempontjából
+ (az üzenő terminológia szerint feladoId+feladoTipus ~szerep)
+ flageli meg.
+
+ Jelentései: LSB - olvasott (1=true, 0=X)
+*/
+
+ // v3.1
+ function flagUzenet($ADAT) {
+
+ $mId = $ADAT['mId'];
+ $feladoId = setUzenoFeladoId();
+ $feladoTipus = __SZEREP;
+ $flag = $ADAT['flag'];
+ $tanev = ($ADAT['tanev']=='') ? __TANEV : $ADAT['tanev'];
+ if (defined('__INTEZMENY')) {
+ $dbName = 'naplo_'.__INTEZMENY.'_'.$tanev;
+ $q = "REPLACE INTO `%s`.`uzenoFlagek`(`mId`,`Id`,`Tipus`,`flag`) VALUES (%d,%d,'%s',%d)";
+ $params = array(
+ 'values'=>array($dbName,intval($mId),$feladoId,$feladoTipus,$flag),
+ 'modul'=>'naplo','fv'=>'flaguzenet',
+ 'detailed'=>__UZENOADMIN);
+ return db_query($q,$params);
+ } else
+ return false;
+
+ }
+
+ function getUzenetFlagek($mIds, $tanev=__TANEV) {
+ if (defined('__INTEZMENY') && is_array($mIds)) {
+ $dbName = 'naplo_'.__INTEZMENY.'_'.$tanev;
+ $q = "SELECT * FROM `uzenoFlagek` WHERE mId IN (".implode(',',$mIds).")";
+ $params = array('result'=>'assoc','keyfield'=>'mId','debug'=>false,'modul'=>'naplo','fv'=>'getUzenoFlagek','detailed'=>__UZENOADMIN);
+ return db_query($q,$params);
+ } else
+ return false;
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/password/base/changePassword.php b/mayor-orig/www/include/modules/password/base/changePassword.php
new file mode 100644
index 00000000..b2233303
--- /dev/null
+++ b/mayor-orig/www/include/modules/password/base/changePassword.php
@@ -0,0 +1,13 @@
+<?php
+/*
+ Module: base/password
+*/
+
+// changeMyPassword-pre.php - kikommentezve - mindenképp újra bejelentkezünk
+// function updateSessionPassword($userAccount, $policy, $newPassword) {
+ //$q = "UPDATE session SET userPassword=encode('%s','"._MYSQL_ENCODE_STR."') WHERE userAccount='%s' AND policy='%s'";
+ //$v = array($newPassword, $userAccount, $policy);
+ //return db_query($q, array('fv' => 'updateSessionPassword', 'modul' => 'login', 'values' => $v));
+// }
+
+?>
diff --git a/mayor-orig/www/include/modules/session/accountInfo.php b/mayor-orig/www/include/modules/session/accountInfo.php
new file mode 100644
index 00000000..4b1521d0
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/accountInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ Modules: base/session
+
+ share --> function getAccountInfo($userAccount, $toPolicy = '') {
+ share --> function getUserInfo($userAccount, $toPolicy = '') {
+ function changeAccountInfo($userAccount, $toPolicy = '') {
+*/
+
+ require('include/share/session/accountInfo.php');
+
+###########################################################
+# changeAccountInfo - felhasználói információk módosítása
+###########################################################
+
+ function changeAccountInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/accountInfo.php');
+ $func = $AUTH[$toPolicy]['backend'].'ChangeAccountInfo';
+ return $func($userAccount, $toPolicy);
+
+
+ }
+
+ function getUserSettings($userAccount,$toPolicy = _POLICY) {
+
+ $q = "SELECT * FROM settings WHERE userAccount='%s' AND policy='%s'";
+ $res = db_query($q, array('modul'=>'login','values'=>array($userAccount,$toPolicy), 'result'=>'record'));
+ return $res;
+
+ }
+
+ function setUserSettings($userAccount,$toPolicy,$ADAT) {
+
+ if (!isset($ADAT['skin']) || $ADAT['skin']=='') {
+ $q = "UPDATE settings SET skin=NULL WHERE userAccount='%s' AND policy='%s'";
+ $res = db_query($q, array('modul'=>'login','values'=>array($userAccount,$toPolicy)));
+ } else {
+ $q = "UPDATE settings SET skin='%s' WHERE userAccount='%s' AND policy='%s'";
+ $res = db_query($q, array('modul'=>'login','values'=>array($ADAT['skin'],$userAccount,$toPolicy)));
+ }
+ return $res;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/session/base/base.php b/mayor-orig/www/include/modules/session/base/base.php
new file mode 100644
index 00000000..efc39324
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/base/base.php
@@ -0,0 +1,19 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ // Attribútumok nyelvi konstansai
+
+ if (file_exists('lang/'.$lang.'/share/session/attrs.php')) {
+ require('lang/'.$lang.'/share/session/attrs.php');
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/share/session/attrs.php')) {
+ require('lang/'._DEFAULT_LANG.'/share/session/attrs.php');
+ }
+
+ // Attribútum információk
+ if (file_exists('include/share/session/attrs.php')) {
+ require('include/share/session/attrs.php');
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/session/createAccount.php b/mayor-orig/www/include/modules/session/createAccount.php
new file mode 100644
index 00000000..6222ed76
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/createAccount.php
@@ -0,0 +1,19 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+ function createAccount($userCn, $userAccount, $userPassword, $toPolicy = _POLICY, $SET = array('category' => null, 'container' => null, 'groups' => '', 'policyAttrs' => array())) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/createAccount.php');
+ $func = $AUTH[$toPolicy]['backend'].'CreateAccount';
+ $r = $func($userCn, $userAccount, $userPassword, $toPolicy, $SET);
+ $_SESSION['lastCreatedAccount'] = $userAccount;
+
+ return $r;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/session/createGroup.php b/mayor-orig/www/include/modules/session/createGroup.php
new file mode 100644
index 00000000..69b2bb45
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/createGroup.php
@@ -0,0 +1,16 @@
+<?php
+/*
+ Modules: base/session
+*/
+
+ function createGroup($groupCn, $groupDesc, $toPolicy = _POLICY, $SET = array('category' => null, 'container' => null, 'policyAttrs' => array())) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/createGroup.php');
+ $func = $AUTH[$toPolicy]['backend'].'CreateGroup';
+ return $func($groupCn, $groupDesc, $toPolicy, $SET);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/session/download.php b/mayor-orig/www/include/modules/session/download.php
new file mode 100644
index 00000000..47d3bdb7
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/download.php
@@ -0,0 +1,108 @@
+<?php
+
+ $allowedExtensions = array(
+
+ // archives
+ 'zip' => 'application/zip',
+ 'tgz' => 'application/tar',
+
+ // documents
+ 'pdf' => 'application/pdf',
+ 'doc' => 'application/msword',
+ 'xls' => 'application/vnd.ms-excel',
+ 'ppt' => 'application/vnd.ms-powerpoint',
+ 'csv' => 'application/vnd.ms-excel',
+ 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
+
+ // executables
+ 'exe' => 'application/octet-stream',
+
+ // text
+ 'xml' => 'text/xml',
+
+ // images
+ 'gif' => 'image/gif',
+ 'png' => 'image/png',
+ 'jpg' => 'image/jpeg',
+ 'jpeg' => 'image/jpeg',
+
+ // audio
+ 'mp3' => 'audio/mpeg',
+ 'wav' => 'audio/x-wav',
+
+ // video
+ 'mpeg' => 'video/mpeg',
+ 'mpg' => 'video/mpeg',
+ 'mpe' => 'video/mpeg',
+ 'mov' => 'video/quicktime',
+ 'avi' => 'video/x-msvideo'
+ );
+
+ $allowedMimeTypes = array(
+ 'application/zip',
+ 'application/tar',
+ 'application/pdf',
+ 'application/msword',
+ 'application/vnd.ms-excel',
+ 'application/vnd.ms-powerpoint',
+ 'application/octet-stream',
+ 'text/xml',
+ 'image/gif',
+ 'image/png',
+ 'image/jpeg',
+ 'audio/mpeg',
+ 'audio/x-wav',
+ 'video/mpeg',
+ 'video/quicktime',
+ 'video/x-msvideo',
+ 'application/vnd.oasis.opendocument.spreadsheet'
+ );
+
+ function passFile($ADAT) {
+ if (in_array($ADAT['ext'],array('jpg','jpeg','png'))) passFile_image($ADAT);
+ else passFile_other($ADAT);
+ die();
+ }
+
+ function passFile_image($ADAT) {
+ ob_clean();
+ ignore_user_abort(true);
+ set_time_limit(0);
+ // Getting headers sent by the client.
+ $headers = apache_request_headers();
+ $fn = $ADAT['path'] ;
+ // Checking if the client is validating his cache and if it is current.
+ if (isset($headers['If-Modified-Since']) && (strtotime($headers['If-Modified-Since']) == filemtime($fn))) {
+ // Client's cache IS current, so we just respond '304 Not Modified'.
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($fn)).' GMT', true, 304);
+ header('Expires: '.gmdate('D, d M Y H:i:s', strtotime('+10 day')).' GMT', true);
+ header("Cache-Control: max-age=604800, public", true);
+ header("Pragma: public", true);
+ } else {
+ header("Pragma: public", true);
+ header("Cache-Control: max-age=604800, public", true);
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($fn)).' GMT', true, 200);
+ header('Expires: '.gmdate('D, d M Y H:i:s', strtotime('+10 day')).' GMT', true);
+ header("Content-Length: " . $ADAT['size'], true);
+ header('Content-type: '.$ADAT['mime'], true);
+ echo file_get_contents($fn);
+ }
+ }
+
+ function passFile_other($ADAT) {
+ ob_clean();
+ header('Content-type: '.$ADAT['mime']);
+ header("Pragma: public");
+ header("Expires: 0");
+ header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
+ header("Cache-Control: public");
+ header("Content-Description: File Transfer");
+ header("Content-Type: ".$ADAT['mime']);
+ if (!isset($ADAT['pure'])) // akkor force download as
+ header('Content-Disposition: attachment; filename="'.$ADAT['file'].'"');
+ header("Content-Transfer-Encoding: binary");
+ header("Content-Length: " . $ADAT['size']);
+ echo file_get_contents($ADAT['path']);
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/session/groupInfo.php b/mayor-orig/www/include/modules/session/groupInfo.php
new file mode 100644
index 00000000..fd46afee
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/groupInfo.php
@@ -0,0 +1,38 @@
+<?php
+/*
+ Modules: base/session
+
+ function getGroupInfo($groupCn, $toPolicy = '') {
+ function changeGroupInfo($userAccount, $toPolicy = '') {
+*/
+
+######################################################
+# getGroupInfo - csoport információk (backend)
+######################################################
+
+ function getGroupInfo($groupCn, $toPolicy = _POLICY, $SET = array('withNewAccounts' => true)) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/accountInfo.php');
+ $func = $AUTH[$toPolicy]['backend'].'GetGroupInfo';
+ return $func($groupCn, $toPolicy, $SET);
+
+
+ }
+
+###########################################################
+# changeGroupInfo - csoport információk módosítása
+###########################################################
+
+ function changeGroupInfo($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/accountInfo.php');
+ $func = $AUTH[$toPolicy]['backend'].'ChangeGroupInfo';
+ return $func($groupCn, $toPolicy);
+
+
+ }
+?>
diff --git a/mayor-orig/www/include/modules/session/search/searchAccount.php b/mayor-orig/www/include/modules/session/search/searchAccount.php
new file mode 100644
index 00000000..796a7423
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/search/searchAccount.php
@@ -0,0 +1,37 @@
+<?php
+/*
+ Module: base/session
+*/
+
+##############################################################
+# searchAccount - felhasználó kereső függvény
+##############################################################
+
+
+ function searchAccount($attr, $pattern, $searchAttrs = array('userCn'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/search/searchAccount.php');
+ $func = $AUTH[$toPolicy]['backend'].'SearchAccount';
+
+ return $func($attr, $pattern, $searchAttrs, $toPolicy);
+
+ }
+
+##############################################################
+# deleteAccount - felhasználó törlése
+##############################################################
+
+ function deleteAccount($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/search/searchAccount.php');
+ $func = $AUTH[$toPolicy]['backend'].'DeleteAccount';
+ return $func($userAccount, $toPolicy);
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/modules/session/search/searchGroup.php b/mayor-orig/www/include/modules/session/search/searchGroup.php
new file mode 100644
index 00000000..f44f9aa2
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/search/searchGroup.php
@@ -0,0 +1,34 @@
+<?php
+/*
+ Module: base/session
+*/
+
+##############################################################
+# searchGroup - csoport kereső függvény
+##############################################################
+
+ function searchGroup($attr, $pattern, $searchAttrs = array('groupCn, groupDesc'), $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/search/searchAccount.php');
+ $func = $AUTH[$toPolicy]['backend'].'SearchGroup';
+ return $func($attr, $pattern, $searchAttrs, $toPolicy);
+
+ }
+
+##############################################################
+# deleteGroup - csoport torlese
+##############################################################
+
+ function deleteGroup($groupCn, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/search/searchAccount.php');
+ $func = $AUTH[$toPolicy]['backend'].'DeleteGroup';
+ return $func($groupCn, $toPolicy);
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/modules/session/sessionAdmin.php b/mayor-orig/www/include/modules/session/sessionAdmin.php
new file mode 100644
index 00000000..ff3e99b8
--- /dev/null
+++ b/mayor-orig/www/include/modules/session/sessionAdmin.php
@@ -0,0 +1,24 @@
+<?php
+
+ function getSessions() {
+
+ $W = array();
+ if (intval(_SESSION_MAX_TIME) != 0) $W[] = "dt + INTERVAL ".intval(_SESSION_MAX_TIME)." HOUR > NOW()";
+ if (intval(_SESSION_MAX_IDLE_TIME) != 0) $W[] = "activity + INTERVAL ".intval(_SESSION_MAX_IDLE_TIME)." HOUR > NOW()";
+ $q = "SELECT userAccount,dt,policy,sessionID,userCn,studyId,skin,lang,activity,sessionCookie,ip FROM session LEFT JOIN loginLog USING (policy,userAccount,dt)";
+ if (count($W) > 0) $q .= " WHERE ".implode(' AND ', $W);
+ $q .= " ORDER BY activity DESC";
+
+ $ret = db_query($q, array('fv' => 'getSessions', 'modul' => 'login', 'result' => 'indexed'));
+ return $ret;
+ }
+
+ function deleteSession($sessionID, $policy) {
+
+ $q = "DELETE FROM session WHERE sessionID='%s' AND policy='%s'";
+ $v = array($sessionID, $policy);
+ return db_query($q, array('fv' => 'deleteSession','modul' => 'login', 'values' => $v));
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/share/auth/base.php b/mayor-orig/www/include/share/auth/base.php
new file mode 100644
index 00000000..9b4fa21a
--- /dev/null
+++ b/mayor-orig/www/include/share/auth/base.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ module: base/login
+
+ A bejelentkezések kezeléséhez szükséges konstansok, beállítások.
+*/
+
+ define('_AUTH_SUCCESS',0);
+ define('_AUTH_EXPIRED',1);
+ define('_AUTH_FAILURE',2);
+ define('_AUTH_FAILURE_1',21); // nincs ilyen azonosító
+ define('_AUTH_FAILURE_2',22); // több ilyen azonosító is van
+ define('_AUTH_FAILURE_3',23); // rossz jelszó
+ define('_AUTH_FAILURE_4',24); // le van tiltva
+ define('_AUTH_FAILURE_5',25); // a bejelentkezés korlátozva van
+
+######################################################################
+# Új session indítása és regisztrálása (vagy vissza a login-hoz)
+######################################################################
+
+ function newSession($accountInformation, $policy) {
+
+ global $lang, $skin, $sessionID, $SKINS, $AUTH;
+
+ $lr = db_connect('login', array('fv' => 'newSession'));
+
+ if (!$lr) {
+ $_SESSION['alert'][] = 'message:sql_failure:session';
+ return false;
+ }
+
+ $userAccount = db_escape_string($accountInformation['account'], $lr);
+ // nem tárolunk jelszót! //
+ // $userPassword = 'nem tárolunk jelszót!'; // mégis tároljuk - session/search (backend: ads)
+ $userPassword = db_escape_string($accountInformation['password'], $lr);
+ $userCn = db_escape_string($accountInformation['cn'], $lr);
+ $studyId = db_escape_string($accountInformation['studyId'], $lr);
+
+ (bool)$toRegister = true; // be kell jegyezni (lásd alább)
+ if ($sessionID == '') {
+ // A sessionID generálása
+ $sessionID = sessionHash();
+ } else {
+ // A meglevő sessionID használata - csak akkor hagyjuk ha az adott policy-hez még nincs ilyen,
+ // de másik policy-hez van
+ $query = "SELECT policy FROM session WHERE sessionID='%s'";
+ $ret = db_query($query, array('fv' => 'newSession', 'modul' => 'login', 'result' => 'idonly', 'values' => array($sessionID)), $lr);
+ if (is_array($ret) && count($ret) > 0) {
+ reset($ret);
+ while ((list($key, $_policy) = each($ret)) && $toRegister) {
+ //while ((list($_policy) = m_ysql_fetch_row($r)) && $toRegister) {
+ if ($_policy == $policy) $toRegister = false;
+ // mégsem kell bejegyezni, már van; és ez az. $sessionID=$sessionID
+ // else be kell jegyezni, de ezt a $sessionID-t, nem generálunk
+ }
+ } else {
+ $sessionID = sessionHash();
+ }
+ }
+ // fetch predefined lang+skin
+ {
+ $query = "SELECT skin,lang,lastlogin FROM settings WHERE userAccount='%s' AND policy='%s'";
+ $ret = db_query($query, array('fv' => 'newSession', 'modul' => 'login', 'result' => 'record', 'values' => array($userAccount, $policy)), $lr);
+ if (is_array($ret) && count($ret) > 0) {
+ extract($ret);
+ $_SESSION['lastLogin'] = $ret['lastlogin'];
+ if (!in_array($skin,$SKINS))
+ $skin = (in_array($AUTH[$policy]['skin'],$SKINS)) ? $AUTH[$policy]['skin'] : _DEFAULT_SKIN;
+ $q = "UPDATE settings SET lastlogin=now() WHERE userAccount='%s' AND policy='%s'";
+ $v = array($userAccount, $policy);
+ } else {
+ /* Policy szerinti default skin*/
+ $_SESSION['lastLogin'] = '2002-04-19';
+ $skin = (in_array($AUTH[$policy]['skin'],$SKINS)) ? $AUTH[$policy]['skin'] : _DEFAULT_SKIN;
+ $lang = _DEFAULT_LANG;
+ $q = "INSERT INTO settings (userAccount,policy,skin,lang,lastlogin) VALUES ('%s', '%s', '%s', '%s', now())";
+ $v = array($userAccount, $policy, '', $lang);
+ }
+ db_query($q, array('fv' => 'newSession', 'modul' => 'login', 'values' => $v), $lr);
+ }
+ // Ellenőrizzük, hogy hány karaktér fér bele az adatbázisba(!); ha eltérő, mint a generált, csonkoljuk.
+ $_q = "SHOW COLUMNS FROM session WHERE Field='sessionID'";
+ $_a = db_query($_q, array('fv' => 'newSession', 'modul' => 'login', 'result' => 'record'), $lr);
+ $_mezohossz = intval(substr($_a['Type'],strpos($_a['Type'],'(')+1,2));
+ if ($_mezohossz==0) $_SESSION['alert'][] = 'message:session_alter_needed:'.$_mezohossz;
+ if (strlen($sessionID)!=$_mezohossz) {
+ $_SESSION['alert'][] = 'message:session_alter_needed:'.$_mezohossz.':'.strlen($sessionID);
+ $sessionID = substr($sessionID,0,$_mezohossz);
+ }
+ // Felvétel az adatbázisba
+ if ($toRegister===false) {
+ $query = "DELETE FROM session WHERE sessionId='%s' and policy='%s'";
+ db_query($query, array('fv' => 'newSession', 'modul' => 'login', 'values' => array($sessionID, $policy)), $lr);
+ }
+ $now = date('Y-m-d H:i:s');
+ $_SC = sessionCookieEncode($sessionID, $now);
+ $_studyId = ($studyId=='') ? 'NULL' : $studyId;
+ if ($studyId=='') {
+ $query="INSERT INTO session
+ (sessionID, userPassword, userAccount, userCn, studyId, dt, policy, skin, lang, activity, sessionCookie)
+ VALUES ('%s', aes_encrypt('%s', '%s'), '%s', '%s', NULL, '%s', '%s', '%s', %u, NOW(), '%s')"; // [SECURITY 002]
+ $v = array($sessionID, $userPassword, $_SC['pwHash'], $userAccount, $userCn, $now, $policy, $skin, $lang, $_SC['store']);
+ } else {
+ $query="INSERT INTO session
+ (sessionID, userPassword, userAccount, userCn, studyId, dt, policy, skin, lang, activity, sessionCookie)
+ VALUES ('%s', aes_encrypt('%s', '%s'), '%s', '%s', '%s', '%s', '%s', '%s', %u, NOW(), '%s')"; // [SECURITY 002]
+ $v = array($sessionID, $userPassword, $_SC['pwHash'],$userAccount, $userCn, $_studyId, $now, $policy, $skin, $lang, $_SC['store']);
+ }
+ db_query($query, array('fv' => 'newSession', 'modul' => 'login', 'values' => $v), $lr);
+ db_close($lr);
+
+ // Megjegyzés: a sessionID elhashelése nem jelent semmiféle védelmet, így tökéletesen megfelelő az md5 is
+ // értékénél viszont a $now alkalmazása tökéletesen hibás, hiszen a lejárati dátumból 1:1-ben reprodukálható
+
+ setcookie($_SC['name'],$_SC['value'],time()+60*60*_SESSION_MAX_TIME,'/','',_SECURECOOKIE);
+
+ return $sessionID;
+ }
+
+?>
diff --git a/mayor-orig/www/include/share/date/names.php b/mayor-orig/www/include/share/date/names.php
new file mode 100644
index 00000000..4b39c79b
--- /dev/null
+++ b/mayor-orig/www/include/share/date/names.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (file_exists("lang/$lang/date/names.php")) {
+ require("lang/$lang/date/names.php");
+ } elseif (file_exists('lang/'._DEFAULT_LANG.'/date/names.php')) {
+ require('lang/'._DEFAULT_LANG.'/date/names.php');
+ }
+
+ $aHetNapjai = array(
+ _MONDAY,_TUESDAY,_WEDNESDAY,_THURSDAY,_FRIDAY,_SATURDAY,_SUNDAY
+ );
+ define('AHETNAPJAI',json_encode($aHetNapjai));
+
+ $Honapok = array(
+ _JANUARY,_FEBRUARY,_MARCH,_APRIL,_MAY,_JUNE,
+ _JULY,_AUGUSTUS,_SEPTEMBER,_OCTOBER,_NOVEMBER,_DECEMBER
+ );
+ define('AZEVHONAPJAI',json_encode($Honapok));
+
+ function dateToString($dt) {
+
+ global $Honapok;
+
+ list($ev,$ho,$nap) = explode('-', $dt);
+ return $ev.'. '.kisbetus($Honapok[$ho-1]).' '.intval($nap).'.';
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/share/facebook/Authentication/AccessToken.php b/mayor-orig/www/include/share/facebook/Authentication/AccessToken.php
new file mode 100644
index 00000000..5d700733
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Authentication/AccessToken.php
@@ -0,0 +1,160 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Authentication;
+
+/**
+ * Class AccessToken
+ *
+ * @package Facebook
+ */
+class AccessToken
+{
+ /**
+ * The access token value.
+ *
+ * @var string
+ */
+ protected $value = '';
+
+ /**
+ * Date when token expires.
+ *
+ * @var \DateTime|null
+ */
+ protected $expiresAt;
+
+ /**
+ * Create a new access token entity.
+ *
+ * @param string $accessToken
+ * @param int $expiresAt
+ */
+ public function __construct($accessToken, $expiresAt = 0)
+ {
+ $this->value = $accessToken;
+ if ($expiresAt) {
+ $this->setExpiresAtFromTimeStamp($expiresAt);
+ }
+ }
+
+ /**
+ * Generate an app secret proof to sign a request to Graph.
+ *
+ * @param string $appSecret The app secret.
+ *
+ * @return string
+ */
+ public function getAppSecretProof($appSecret)
+ {
+ return hash_hmac('sha256', $this->value, $appSecret);
+ }
+
+ /**
+ * Getter for expiresAt.
+ *
+ * @return \DateTime|null
+ */
+ public function getExpiresAt()
+ {
+ return $this->expiresAt;
+ }
+
+ /**
+ * Determines whether or not this is an app access token.
+ *
+ * @return bool
+ */
+ public function isAppAccessToken()
+ {
+ return strpos($this->value, '|') !== false;
+ }
+
+ /**
+ * Determines whether or not this is a long-lived token.
+ *
+ * @return bool
+ */
+ public function isLongLived()
+ {
+ if ($this->expiresAt) {
+ return $this->expiresAt->getTimestamp() > time() + (60 * 60 * 2);
+ }
+
+ if ($this->isAppAccessToken()) {
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Checks the expiration of the access token.
+ *
+ * @return boolean|null
+ */
+ public function isExpired()
+ {
+ if ($this->getExpiresAt() instanceof \DateTime) {
+ return $this->getExpiresAt()->getTimestamp() < time();
+ }
+
+ if ($this->isAppAccessToken()) {
+ return false;
+ }
+
+ return null;
+ }
+
+ /**
+ * Returns the access token as a string.
+ *
+ * @return string
+ */
+ public function getValue()
+ {
+ return $this->value;
+ }
+
+ /**
+ * Returns the access token as a string.
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return $this->getValue();
+ }
+
+ /**
+ * Setter for expires_at.
+ *
+ * @param int $timeStamp
+ */
+ protected function setExpiresAtFromTimeStamp($timeStamp)
+ {
+ $dt = new \DateTime();
+ $dt->setTimestamp($timeStamp);
+ $this->expiresAt = $dt;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Authentication/AccessTokenMetadata.php b/mayor-orig/www/include/share/facebook/Authentication/AccessTokenMetadata.php
new file mode 100644
index 00000000..165433cb
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Authentication/AccessTokenMetadata.php
@@ -0,0 +1,390 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Authentication;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class AccessTokenMetadata
+ *
+ * Represents metadata from an access token.
+ *
+ * @package Facebook
+ * @see https://developers.facebook.com/docs/graph-api/reference/debug_token
+ */
+class AccessTokenMetadata
+{
+ /**
+ * The access token metadata.
+ *
+ * @var array
+ */
+ protected $metadata = [];
+
+ /**
+ * Properties that should be cast as DateTime objects.
+ *
+ * @var array
+ */
+ protected static $dateProperties = ['expires_at', 'issued_at'];
+
+ /**
+ * @param array $metadata
+ *
+ * @throws FacebookSDKException
+ */
+ public function __construct(array $metadata)
+ {
+ if (!isset($metadata['data'])) {
+ throw new FacebookSDKException('Unexpected debug token response data.', 401);
+ }
+
+ $this->metadata = $metadata['data'];
+
+ $this->castTimestampsToDateTime();
+ }
+
+ /**
+ * Returns a value from the metadata.
+ *
+ * @param string $field The property to retrieve.
+ * @param mixed $default The default to return if the property doesn't exist.
+ *
+ * @return mixed
+ */
+ public function getField($field, $default = null)
+ {
+ if (isset($this->metadata[$field])) {
+ return $this->metadata[$field];
+ }
+
+ return $default;
+ }
+
+ /**
+ * Returns a value from the metadata.
+ *
+ * @param string $field The property to retrieve.
+ * @param mixed $default The default to return if the property doesn't exist.
+ *
+ * @return mixed
+ *
+ * @deprecated 5.0.0 getProperty() has been renamed to getField()
+ * @todo v6: Remove this method
+ */
+ public function getProperty($field, $default = null)
+ {
+ return $this->getField($field, $default);
+ }
+
+ /**
+ * Returns a value from a child property in the metadata.
+ *
+ * @param string $parentField The parent property.
+ * @param string $field The property to retrieve.
+ * @param mixed $default The default to return if the property doesn't exist.
+ *
+ * @return mixed
+ */
+ public function getChildProperty($parentField, $field, $default = null)
+ {
+ if (!isset($this->metadata[$parentField])) {
+ return $default;
+ }
+
+ if (!isset($this->metadata[$parentField][$field])) {
+ return $default;
+ }
+
+ return $this->metadata[$parentField][$field];
+ }
+
+ /**
+ * Returns a value from the error metadata.
+ *
+ * @param string $field The property to retrieve.
+ * @param mixed $default The default to return if the property doesn't exist.
+ *
+ * @return mixed
+ */
+ public function getErrorProperty($field, $default = null)
+ {
+ return $this->getChildProperty('error', $field, $default);
+ }
+
+ /**
+ * Returns a value from the "metadata" metadata. *Brain explodes*
+ *
+ * @param string $field The property to retrieve.
+ * @param mixed $default The default to return if the property doesn't exist.
+ *
+ * @return mixed
+ */
+ public function getMetadataProperty($field, $default = null)
+ {
+ return $this->getChildProperty('metadata', $field, $default);
+ }
+
+ /**
+ * The ID of the application this access token is for.
+ *
+ * @return string|null
+ */
+ public function getAppId()
+ {
+ return $this->getField('app_id');
+ }
+
+ /**
+ * Name of the application this access token is for.
+ *
+ * @return string|null
+ */
+ public function getApplication()
+ {
+ return $this->getField('application');
+ }
+
+ /**
+ * Any error that a request to the graph api
+ * would return due to the access token.
+ *
+ * @return bool|null
+ */
+ public function isError()
+ {
+ return $this->getField('error') !== null;
+ }
+
+ /**
+ * The error code for the error.
+ *
+ * @return int|null
+ */
+ public function getErrorCode()
+ {
+ return $this->getErrorProperty('code');
+ }
+
+ /**
+ * The error message for the error.
+ *
+ * @return string|null
+ */
+ public function getErrorMessage()
+ {
+ return $this->getErrorProperty('message');
+ }
+
+ /**
+ * The error subcode for the error.
+ *
+ * @return int|null
+ */
+ public function getErrorSubcode()
+ {
+ return $this->getErrorProperty('subcode');
+ }
+
+ /**
+ * DateTime when this access token expires.
+ *
+ * @return \DateTime|null
+ */
+ public function getExpiresAt()
+ {
+ return $this->getField('expires_at');
+ }
+
+ /**
+ * Whether the access token is still valid or not.
+ *
+ * @return boolean|null
+ */
+ public function getIsValid()
+ {
+ return $this->getField('is_valid');
+ }
+
+ /**
+ * DateTime when this access token was issued.
+ *
+ * Note that the issued_at field is not returned
+ * for short-lived access tokens.
+ *
+ * @see https://developers.facebook.com/docs/facebook-login/access-tokens#debug
+ *
+ * @return \DateTime|null
+ */
+ public function getIssuedAt()
+ {
+ return $this->getField('issued_at');
+ }
+
+ /**
+ * General metadata associated with the access token.
+ * Can contain data like 'sso', 'auth_type', 'auth_nonce'.
+ *
+ * @return array|null
+ */
+ public function getMetadata()
+ {
+ return $this->getField('metadata');
+ }
+
+ /**
+ * The 'sso' child property from the 'metadata' parent property.
+ *
+ * @return string|null
+ */
+ public function getSso()
+ {
+ return $this->getMetadataProperty('sso');
+ }
+
+ /**
+ * The 'auth_type' child property from the 'metadata' parent property.
+ *
+ * @return string|null
+ */
+ public function getAuthType()
+ {
+ return $this->getMetadataProperty('auth_type');
+ }
+
+ /**
+ * The 'auth_nonce' child property from the 'metadata' parent property.
+ *
+ * @return string|null
+ */
+ public function getAuthNonce()
+ {
+ return $this->getMetadataProperty('auth_nonce');
+ }
+
+ /**
+ * For impersonated access tokens, the ID of
+ * the page this token contains.
+ *
+ * @return string|null
+ */
+ public function getProfileId()
+ {
+ return $this->getField('profile_id');
+ }
+
+ /**
+ * List of permissions that the user has granted for
+ * the app in this access token.
+ *
+ * @return array
+ */
+ public function getScopes()
+ {
+ return $this->getField('scopes');
+ }
+
+ /**
+ * The ID of the user this access token is for.
+ *
+ * @return string|null
+ */
+ public function getUserId()
+ {
+ return $this->getField('user_id');
+ }
+
+ /**
+ * Ensures the app ID from the access token
+ * metadata is what we expect.
+ *
+ * @param string $appId
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateAppId($appId)
+ {
+ if ($this->getAppId() !== $appId) {
+ throw new FacebookSDKException('Access token metadata contains unexpected app ID.', 401);
+ }
+ }
+
+ /**
+ * Ensures the user ID from the access token
+ * metadata is what we expect.
+ *
+ * @param string $userId
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateUserId($userId)
+ {
+ if ($this->getUserId() !== $userId) {
+ throw new FacebookSDKException('Access token metadata contains unexpected user ID.', 401);
+ }
+ }
+
+ /**
+ * Ensures the access token has not expired yet.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateExpiration()
+ {
+ if (!$this->getExpiresAt() instanceof \DateTime) {
+ return;
+ }
+
+ if ($this->getExpiresAt()->getTimestamp() < time()) {
+ throw new FacebookSDKException('Inspection of access token metadata shows that the access token has expired.', 401);
+ }
+ }
+
+ /**
+ * Converts a unix timestamp into a DateTime entity.
+ *
+ * @param int $timestamp
+ *
+ * @return \DateTime
+ */
+ private function convertTimestampToDateTime($timestamp)
+ {
+ $dt = new \DateTime();
+ $dt->setTimestamp($timestamp);
+
+ return $dt;
+ }
+
+ /**
+ * Casts the unix timestamps as DateTime entities.
+ */
+ private function castTimestampsToDateTime()
+ {
+ foreach (static::$dateProperties as $key) {
+ if (isset($this->metadata[$key]) && $this->metadata[$key] !== 0) {
+ $this->metadata[$key] = $this->convertTimestampToDateTime($this->metadata[$key]);
+ }
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Authentication/OAuth2Client.php b/mayor-orig/www/include/share/facebook/Authentication/OAuth2Client.php
new file mode 100644
index 00000000..94df9b7b
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Authentication/OAuth2Client.php
@@ -0,0 +1,292 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Authentication;
+
+use Facebook\Facebook;
+use Facebook\FacebookApp;
+use Facebook\FacebookRequest;
+use Facebook\FacebookResponse;
+use Facebook\FacebookClient;
+use Facebook\Exceptions\FacebookResponseException;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class OAuth2Client
+ *
+ * @package Facebook
+ */
+class OAuth2Client
+{
+ /**
+ * @const string The base authorization URL.
+ */
+ const BASE_AUTHORIZATION_URL = 'https://www.facebook.com';
+
+ /**
+ * The FacebookApp entity.
+ *
+ * @var FacebookApp
+ */
+ protected $app;
+
+ /**
+ * The Facebook client.
+ *
+ * @var FacebookClient
+ */
+ protected $client;
+
+ /**
+ * The version of the Graph API to use.
+ *
+ * @var string
+ */
+ protected $graphVersion;
+
+ /**
+ * The last request sent to Graph.
+ *
+ * @var FacebookRequest|null
+ */
+ protected $lastRequest;
+
+ /**
+ * @param FacebookApp $app
+ * @param FacebookClient $client
+ * @param string|null $graphVersion The version of the Graph API to use.
+ */
+ public function __construct(FacebookApp $app, FacebookClient $client, $graphVersion = null)
+ {
+ $this->app = $app;
+ $this->client = $client;
+ $this->graphVersion = $graphVersion ?: Facebook::DEFAULT_GRAPH_VERSION;
+ }
+
+ /**
+ * Returns the last FacebookRequest that was sent.
+ * Useful for debugging and testing.
+ *
+ * @return FacebookRequest|null
+ */
+ public function getLastRequest()
+ {
+ return $this->lastRequest;
+ }
+
+ /**
+ * Get the metadata associated with the access token.
+ *
+ * @param AccessToken|string $accessToken The access token to debug.
+ *
+ * @return AccessTokenMetadata
+ */
+ public function debugToken($accessToken)
+ {
+ $accessToken = $accessToken instanceof AccessToken ? $accessToken->getValue() : $accessToken;
+ $params = ['input_token' => $accessToken];
+
+ $this->lastRequest = new FacebookRequest(
+ $this->app,
+ $this->app->getAccessToken(),
+ 'GET',
+ '/debug_token',
+ $params,
+ null,
+ $this->graphVersion
+ );
+ $response = $this->client->sendRequest($this->lastRequest);
+ $metadata = $response->getDecodedBody();
+
+ return new AccessTokenMetadata($metadata);
+ }
+
+ /**
+ * Generates an authorization URL to begin the process of authenticating a user.
+ *
+ * @param string $redirectUrl The callback URL to redirect to.
+ * @param string $state The CSPRNG-generated CSRF value.
+ * @param array $scope An array of permissions to request.
+ * @param array $params An array of parameters to generate URL.
+ * @param string $separator The separator to use in http_build_query().
+ *
+ * @return string
+ */
+ public function getAuthorizationUrl($redirectUrl, $state, array $scope = [], array $params = [], $separator = '&')
+ {
+ $params += [
+ 'client_id' => $this->app->getId(),
+ 'state' => $state,
+ 'response_type' => 'code',
+ 'sdk' => 'php-sdk-' . Facebook::VERSION,
+ 'redirect_uri' => $redirectUrl,
+ 'scope' => implode(',', $scope)
+ ];
+
+ return static::BASE_AUTHORIZATION_URL . '/' . $this->graphVersion . '/dialog/oauth?' . http_build_query($params, null, $separator);
+ }
+
+ /**
+ * Get a valid access token from a code.
+ *
+ * @param string $code
+ * @param string $redirectUri
+ *
+ * @return AccessToken
+ *
+ * @throws FacebookSDKException
+ */
+ public function getAccessTokenFromCode($code, $redirectUri = '')
+ {
+ $params = [
+ 'code' => $code,
+ 'redirect_uri' => $redirectUri,
+ ];
+
+ return $this->requestAnAccessToken($params);
+ }
+
+ /**
+ * Exchanges a short-lived access token with a long-lived access token.
+ *
+ * @param AccessToken|string $accessToken
+ *
+ * @return AccessToken
+ *
+ * @throws FacebookSDKException
+ */
+ public function getLongLivedAccessToken($accessToken)
+ {
+ $accessToken = $accessToken instanceof AccessToken ? $accessToken->getValue() : $accessToken;
+ $params = [
+ 'grant_type' => 'fb_exchange_token',
+ 'fb_exchange_token' => $accessToken,
+ ];
+
+ return $this->requestAnAccessToken($params);
+ }
+
+ /**
+ * Get a valid code from an access token.
+ *
+ * @param AccessToken|string $accessToken
+ * @param string $redirectUri
+ *
+ * @return AccessToken
+ *
+ * @throws FacebookSDKException
+ */
+ public function getCodeFromLongLivedAccessToken($accessToken, $redirectUri = '')
+ {
+ $params = [
+ 'redirect_uri' => $redirectUri,
+ ];
+
+ $response = $this->sendRequestWithClientParams('/oauth/client_code', $params, $accessToken);
+ $data = $response->getDecodedBody();
+
+ if (!isset($data['code'])) {
+ throw new FacebookSDKException('Code was not returned from Graph.', 401);
+ }
+
+ return $data['code'];
+ }
+
+ /**
+ * Send a request to the OAuth endpoint.
+ *
+ * @param array $params
+ *
+ * @return AccessToken
+ *
+ * @throws FacebookSDKException
+ */
+ protected function requestAnAccessToken(array $params)
+ {
+ $response = $this->sendRequestWithClientParams('/oauth/access_token', $params);
+ $data = $response->getDecodedBody();
+
+ if (!isset($data['access_token'])) {
+ throw new FacebookSDKException('Access token was not returned from Graph.', 401);
+ }
+
+ // Graph returns two different key names for expiration time
+ // on the same endpoint. Doh! :/
+ $expiresAt = 0;
+ if (isset($data['expires'])) {
+ // For exchanging a short lived token with a long lived token.
+ // The expiration time in seconds will be returned as "expires".
+ $expiresAt = time() + $data['expires'];
+ } elseif (isset($data['expires_in'])) {
+ // For exchanging a code for a short lived access token.
+ // The expiration time in seconds will be returned as "expires_in".
+ // See: https://developers.facebook.com/docs/facebook-login/access-tokens#long-via-code
+ $expiresAt = time() + $data['expires_in'];
+ }
+
+ return new AccessToken($data['access_token'], $expiresAt);
+ }
+
+ /**
+ * Send a request to Graph with an app access token.
+ *
+ * @param string $endpoint
+ * @param array $params
+ * @param AccessToken|string|null $accessToken
+ *
+ * @return FacebookResponse
+ *
+ * @throws FacebookResponseException
+ */
+ protected function sendRequestWithClientParams($endpoint, array $params, $accessToken = null)
+ {
+ $params += $this->getClientParams();
+
+ $accessToken = $accessToken ?: $this->app->getAccessToken();
+
+ $this->lastRequest = new FacebookRequest(
+ $this->app,
+ $accessToken,
+ 'GET',
+ $endpoint,
+ $params,
+ null,
+ $this->graphVersion
+ );
+
+ return $this->client->sendRequest($this->lastRequest);
+ }
+
+ /**
+ * Returns the client_* params for OAuth requests.
+ *
+ * @return array
+ */
+ protected function getClientParams()
+ {
+ return [
+ 'client_id' => $this->app->getId(),
+ 'client_secret' => $this->app->getSecret(),
+ ];
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthenticationException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthenticationException.php
new file mode 100644
index 00000000..c5e45fa3
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthenticationException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookAuthenticationException
+ *
+ * @package Facebook
+ */
+class FacebookAuthenticationException extends FacebookSDKException
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthorizationException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthorizationException.php
new file mode 100644
index 00000000..3a7f557c
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookAuthorizationException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookAuthorizationException
+ *
+ * @package Facebook
+ */
+class FacebookAuthorizationException extends FacebookSDKException
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookClientException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookClientException.php
new file mode 100644
index 00000000..6a899b77
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookClientException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookClientException
+ *
+ * @package Facebook
+ */
+class FacebookClientException extends FacebookSDKException
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookOtherException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookOtherException.php
new file mode 100644
index 00000000..06a33ac8
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookOtherException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookOtherException
+ *
+ * @package Facebook
+ */
+class FacebookOtherException extends FacebookSDKException
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookResponseException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookResponseException.php
new file mode 100644
index 00000000..60fd5cfc
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookResponseException.php
@@ -0,0 +1,214 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+use Facebook\FacebookResponse;
+
+/**
+ * Class FacebookResponseException
+ *
+ * @package Facebook
+ */
+class FacebookResponseException extends FacebookSDKException
+{
+ /**
+ * @var FacebookResponse The response that threw the exception.
+ */
+ protected $response;
+
+ /**
+ * @var array Decoded response.
+ */
+ protected $responseData;
+
+ /**
+ * Creates a FacebookResponseException.
+ *
+ * @param FacebookResponse $response The response that threw the exception.
+ * @param FacebookSDKException $previousException The more detailed exception.
+ */
+ public function __construct(FacebookResponse $response, FacebookSDKException $previousException = null)
+ {
+ $this->response = $response;
+ $this->responseData = $response->getDecodedBody();
+
+ $errorMessage = $this->get('message', 'Unknown error from Graph.');
+ $errorCode = $this->get('code', -1);
+
+ parent::__construct($errorMessage, $errorCode, $previousException);
+ }
+
+ /**
+ * A factory for creating the appropriate exception based on the response from Graph.
+ *
+ * @param FacebookResponse $response The response that threw the exception.
+ *
+ * @return FacebookResponseException
+ */
+ public static function create(FacebookResponse $response)
+ {
+ $data = $response->getDecodedBody();
+
+ if (!isset($data['error']['code']) && isset($data['code'])) {
+ $data = ['error' => $data];
+ }
+
+ $code = isset($data['error']['code']) ? $data['error']['code'] : null;
+ $message = isset($data['error']['message']) ? $data['error']['message'] : 'Unknown error from Graph.';
+
+ if (isset($data['error']['error_subcode'])) {
+ switch ($data['error']['error_subcode']) {
+ // Other authentication issues
+ case 458:
+ case 459:
+ case 460:
+ case 463:
+ case 464:
+ case 467:
+ return new static($response, new FacebookAuthenticationException($message, $code));
+ // Video upload resumable error
+ case 1363030:
+ case 1363019:
+ case 1363037:
+ case 1363033:
+ case 1363021:
+ case 1363041:
+ return new static($response, new FacebookResumableUploadException($message, $code));
+ }
+ }
+
+ switch ($code) {
+ // Login status or token expired, revoked, or invalid
+ case 100:
+ case 102:
+ case 190:
+ return new static($response, new FacebookAuthenticationException($message, $code));
+
+ // Server issue, possible downtime
+ case 1:
+ case 2:
+ return new static($response, new FacebookServerException($message, $code));
+
+ // API Throttling
+ case 4:
+ case 17:
+ case 341:
+ return new static($response, new FacebookThrottleException($message, $code));
+
+ // Duplicate Post
+ case 506:
+ return new static($response, new FacebookClientException($message, $code));
+ }
+
+ // Missing Permissions
+ if ($code == 10 || ($code >= 200 && $code <= 299)) {
+ return new static($response, new FacebookAuthorizationException($message, $code));
+ }
+
+ // OAuth authentication error
+ if (isset($data['error']['type']) && $data['error']['type'] === 'OAuthException') {
+ return new static($response, new FacebookAuthenticationException($message, $code));
+ }
+
+ // All others
+ return new static($response, new FacebookOtherException($message, $code));
+ }
+
+ /**
+ * Checks isset and returns that or a default value.
+ *
+ * @param string $key
+ * @param mixed $default
+ *
+ * @return mixed
+ */
+ private function get($key, $default = null)
+ {
+ if (isset($this->responseData['error'][$key])) {
+ return $this->responseData['error'][$key];
+ }
+
+ return $default;
+ }
+
+ /**
+ * Returns the HTTP status code
+ *
+ * @return int
+ */
+ public function getHttpStatusCode()
+ {
+ return $this->response->getHttpStatusCode();
+ }
+
+ /**
+ * Returns the sub-error code
+ *
+ * @return int
+ */
+ public function getSubErrorCode()
+ {
+ return $this->get('error_subcode', -1);
+ }
+
+ /**
+ * Returns the error type
+ *
+ * @return string
+ */
+ public function getErrorType()
+ {
+ return $this->get('type', '');
+ }
+
+ /**
+ * Returns the raw response used to create the exception.
+ *
+ * @return string
+ */
+ public function getRawResponse()
+ {
+ return $this->response->getBody();
+ }
+
+ /**
+ * Returns the decoded response used to create the exception.
+ *
+ * @return array
+ */
+ public function getResponseData()
+ {
+ return $this->responseData;
+ }
+
+ /**
+ * Returns the response entity used to create the exception.
+ *
+ * @return FacebookResponse
+ */
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookResumableUploadException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookResumableUploadException.php
new file mode 100644
index 00000000..6f470662
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookResumableUploadException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookResumableUploadException
+ *
+ * @package Facebook
+ */
+class FacebookResumableUploadException extends FacebookSDKException
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookSDKException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookSDKException.php
new file mode 100644
index 00000000..d8bef1ab
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookSDKException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookSDKException
+ *
+ * @package Facebook
+ */
+class FacebookSDKException extends \Exception
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookServerException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookServerException.php
new file mode 100644
index 00000000..5e0b625c
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookServerException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookServerException
+ *
+ * @package Facebook
+ */
+class FacebookServerException extends FacebookSDKException
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Exceptions/FacebookThrottleException.php b/mayor-orig/www/include/share/facebook/Exceptions/FacebookThrottleException.php
new file mode 100644
index 00000000..47fec0ea
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Exceptions/FacebookThrottleException.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Exceptions;
+
+/**
+ * Class FacebookThrottleException
+ *
+ * @package Facebook
+ */
+class FacebookThrottleException extends FacebookSDKException
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/Facebook.php b/mayor-orig/www/include/share/facebook/Facebook.php
new file mode 100644
index 00000000..4b444530
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Facebook.php
@@ -0,0 +1,635 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use Facebook\Authentication\AccessToken;
+use Facebook\Authentication\OAuth2Client;
+use Facebook\FileUpload\FacebookFile;
+use Facebook\FileUpload\FacebookResumableUploader;
+use Facebook\FileUpload\FacebookTransferChunk;
+use Facebook\FileUpload\FacebookVideo;
+use Facebook\GraphNodes\GraphEdge;
+use Facebook\Url\UrlDetectionInterface;
+use Facebook\Url\FacebookUrlDetectionHandler;
+use Facebook\PseudoRandomString\PseudoRandomStringGeneratorFactory;
+use Facebook\PseudoRandomString\PseudoRandomStringGeneratorInterface;
+use Facebook\HttpClients\HttpClientsFactory;
+use Facebook\PersistentData\PersistentDataFactory;
+use Facebook\PersistentData\PersistentDataInterface;
+use Facebook\Helpers\FacebookCanvasHelper;
+use Facebook\Helpers\FacebookJavaScriptHelper;
+use Facebook\Helpers\FacebookPageTabHelper;
+use Facebook\Helpers\FacebookRedirectLoginHelper;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class Facebook
+ *
+ * @package Facebook
+ */
+class Facebook
+{
+ /**
+ * @const string Version number of the Facebook PHP SDK.
+ */
+ const VERSION = '5.6.1';
+
+ /**
+ * @const string Default Graph API version for requests.
+ */
+ const DEFAULT_GRAPH_VERSION = 'v2.10';
+
+ /**
+ * @const string The name of the environment variable that contains the app ID.
+ */
+ const APP_ID_ENV_NAME = 'FACEBOOK_APP_ID';
+
+ /**
+ * @const string The name of the environment variable that contains the app secret.
+ */
+ const APP_SECRET_ENV_NAME = 'FACEBOOK_APP_SECRET';
+
+ /**
+ * @var FacebookApp The FacebookApp entity.
+ */
+ protected $app;
+
+ /**
+ * @var FacebookClient The Facebook client service.
+ */
+ protected $client;
+
+ /**
+ * @var OAuth2Client The OAuth 2.0 client service.
+ */
+ protected $oAuth2Client;
+
+ /**
+ * @var UrlDetectionInterface|null The URL detection handler.
+ */
+ protected $urlDetectionHandler;
+
+ /**
+ * @var PseudoRandomStringGeneratorInterface|null The cryptographically secure pseudo-random string generator.
+ */
+ protected $pseudoRandomStringGenerator;
+
+ /**
+ * @var AccessToken|null The default access token to use with requests.
+ */
+ protected $defaultAccessToken;
+
+ /**
+ * @var string|null The default Graph version we want to use.
+ */
+ protected $defaultGraphVersion;
+
+ /**
+ * @var PersistentDataInterface|null The persistent data handler.
+ */
+ protected $persistentDataHandler;
+
+ /**
+ * @var FacebookResponse|FacebookBatchResponse|null Stores the last request made to Graph.
+ */
+ protected $lastResponse;
+
+ /**
+ * Instantiates a new Facebook super-class object.
+ *
+ * @param array $config
+ *
+ * @throws FacebookSDKException
+ */
+ public function __construct(array $config = [])
+ {
+ $config = array_merge([
+ 'app_id' => getenv(static::APP_ID_ENV_NAME),
+ 'app_secret' => getenv(static::APP_SECRET_ENV_NAME),
+ 'default_graph_version' => static::DEFAULT_GRAPH_VERSION,
+ 'enable_beta_mode' => false,
+ 'http_client_handler' => null,
+ 'persistent_data_handler' => null,
+ 'pseudo_random_string_generator' => null,
+ 'url_detection_handler' => null,
+ ], $config);
+
+ if (!$config['app_id']) {
+ throw new FacebookSDKException('Required "app_id" key not supplied in config and could not find fallback environment variable "' . static::APP_ID_ENV_NAME . '"');
+ }
+ if (!$config['app_secret']) {
+ throw new FacebookSDKException('Required "app_secret" key not supplied in config and could not find fallback environment variable "' . static::APP_SECRET_ENV_NAME . '"');
+ }
+
+ $this->app = new FacebookApp($config['app_id'], $config['app_secret']);
+ $this->client = new FacebookClient(
+ HttpClientsFactory::createHttpClient($config['http_client_handler']),
+ $config['enable_beta_mode']
+ );
+ $this->pseudoRandomStringGenerator = PseudoRandomStringGeneratorFactory::createPseudoRandomStringGenerator(
+ $config['pseudo_random_string_generator']
+ );
+ $this->setUrlDetectionHandler($config['url_detection_handler'] ?: new FacebookUrlDetectionHandler());
+ $this->persistentDataHandler = PersistentDataFactory::createPersistentDataHandler(
+ $config['persistent_data_handler']
+ );
+
+ if (isset($config['default_access_token'])) {
+ $this->setDefaultAccessToken($config['default_access_token']);
+ }
+
+ // @todo v6: Throw an InvalidArgumentException if "default_graph_version" is not set
+ $this->defaultGraphVersion = $config['default_graph_version'];
+ }
+
+ /**
+ * Returns the FacebookApp entity.
+ *
+ * @return FacebookApp
+ */
+ public function getApp()
+ {
+ return $this->app;
+ }
+
+ /**
+ * Returns the FacebookClient service.
+ *
+ * @return FacebookClient
+ */
+ public function getClient()
+ {
+ return $this->client;
+ }
+
+ /**
+ * Returns the OAuth 2.0 client service.
+ *
+ * @return OAuth2Client
+ */
+ public function getOAuth2Client()
+ {
+ if (!$this->oAuth2Client instanceof OAuth2Client) {
+ $app = $this->getApp();
+ $client = $this->getClient();
+ $this->oAuth2Client = new OAuth2Client($app, $client, $this->defaultGraphVersion);
+ }
+
+ return $this->oAuth2Client;
+ }
+
+ /**
+ * Returns the last response returned from Graph.
+ *
+ * @return FacebookResponse|FacebookBatchResponse|null
+ */
+ public function getLastResponse()
+ {
+ return $this->lastResponse;
+ }
+
+ /**
+ * Returns the URL detection handler.
+ *
+ * @return UrlDetectionInterface
+ */
+ public function getUrlDetectionHandler()
+ {
+ return $this->urlDetectionHandler;
+ }
+
+ /**
+ * Changes the URL detection handler.
+ *
+ * @param UrlDetectionInterface $urlDetectionHandler
+ */
+ private function setUrlDetectionHandler(UrlDetectionInterface $urlDetectionHandler)
+ {
+ $this->urlDetectionHandler = $urlDetectionHandler;
+ }
+
+ /**
+ * Returns the default AccessToken entity.
+ *
+ * @return AccessToken|null
+ */
+ public function getDefaultAccessToken()
+ {
+ return $this->defaultAccessToken;
+ }
+
+ /**
+ * Sets the default access token to use with requests.
+ *
+ * @param AccessToken|string $accessToken The access token to save.
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function setDefaultAccessToken($accessToken)
+ {
+ if (is_string($accessToken)) {
+ $this->defaultAccessToken = new AccessToken($accessToken);
+
+ return;
+ }
+
+ if ($accessToken instanceof AccessToken) {
+ $this->defaultAccessToken = $accessToken;
+
+ return;
+ }
+
+ throw new \InvalidArgumentException('The default access token must be of type "string" or Facebook\AccessToken');
+ }
+
+ /**
+ * Returns the default Graph version.
+ *
+ * @return string
+ */
+ public function getDefaultGraphVersion()
+ {
+ return $this->defaultGraphVersion;
+ }
+
+ /**
+ * Returns the redirect login helper.
+ *
+ * @return FacebookRedirectLoginHelper
+ */
+ public function getRedirectLoginHelper()
+ {
+ return new FacebookRedirectLoginHelper(
+ $this->getOAuth2Client(),
+ $this->persistentDataHandler,
+ $this->urlDetectionHandler,
+ $this->pseudoRandomStringGenerator
+ );
+ }
+
+ /**
+ * Returns the JavaScript helper.
+ *
+ * @return FacebookJavaScriptHelper
+ */
+ public function getJavaScriptHelper()
+ {
+ return new FacebookJavaScriptHelper($this->app, $this->client, $this->defaultGraphVersion);
+ }
+
+ /**
+ * Returns the canvas helper.
+ *
+ * @return FacebookCanvasHelper
+ */
+ public function getCanvasHelper()
+ {
+ return new FacebookCanvasHelper($this->app, $this->client, $this->defaultGraphVersion);
+ }
+
+ /**
+ * Returns the page tab helper.
+ *
+ * @return FacebookPageTabHelper
+ */
+ public function getPageTabHelper()
+ {
+ return new FacebookPageTabHelper($this->app, $this->client, $this->defaultGraphVersion);
+ }
+
+ /**
+ * Sends a GET request to Graph and returns the result.
+ *
+ * @param string $endpoint
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $eTag
+ * @param string|null $graphVersion
+ *
+ * @return FacebookResponse
+ *
+ * @throws FacebookSDKException
+ */
+ public function get($endpoint, $accessToken = null, $eTag = null, $graphVersion = null)
+ {
+ return $this->sendRequest(
+ 'GET',
+ $endpoint,
+ $params = [],
+ $accessToken,
+ $eTag,
+ $graphVersion
+ );
+ }
+
+ /**
+ * Sends a POST request to Graph and returns the result.
+ *
+ * @param string $endpoint
+ * @param array $params
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $eTag
+ * @param string|null $graphVersion
+ *
+ * @return FacebookResponse
+ *
+ * @throws FacebookSDKException
+ */
+ public function post($endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null)
+ {
+ return $this->sendRequest(
+ 'POST',
+ $endpoint,
+ $params,
+ $accessToken,
+ $eTag,
+ $graphVersion
+ );
+ }
+
+ /**
+ * Sends a DELETE request to Graph and returns the result.
+ *
+ * @param string $endpoint
+ * @param array $params
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $eTag
+ * @param string|null $graphVersion
+ *
+ * @return FacebookResponse
+ *
+ * @throws FacebookSDKException
+ */
+ public function delete($endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null)
+ {
+ return $this->sendRequest(
+ 'DELETE',
+ $endpoint,
+ $params,
+ $accessToken,
+ $eTag,
+ $graphVersion
+ );
+ }
+
+ /**
+ * Sends a request to Graph for the next page of results.
+ *
+ * @param GraphEdge $graphEdge The GraphEdge to paginate over.
+ *
+ * @return GraphEdge|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function next(GraphEdge $graphEdge)
+ {
+ return $this->getPaginationResults($graphEdge, 'next');
+ }
+
+ /**
+ * Sends a request to Graph for the previous page of results.
+ *
+ * @param GraphEdge $graphEdge The GraphEdge to paginate over.
+ *
+ * @return GraphEdge|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function previous(GraphEdge $graphEdge)
+ {
+ return $this->getPaginationResults($graphEdge, 'previous');
+ }
+
+ /**
+ * Sends a request to Graph for the next page of results.
+ *
+ * @param GraphEdge $graphEdge The GraphEdge to paginate over.
+ * @param string $direction The direction of the pagination: next|previous.
+ *
+ * @return GraphEdge|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function getPaginationResults(GraphEdge $graphEdge, $direction)
+ {
+ $paginationRequest = $graphEdge->getPaginationRequest($direction);
+ if (!$paginationRequest) {
+ return null;
+ }
+
+ $this->lastResponse = $this->client->sendRequest($paginationRequest);
+
+ // Keep the same GraphNode subclass
+ $subClassName = $graphEdge->getSubClassName();
+ $graphEdge = $this->lastResponse->getGraphEdge($subClassName, false);
+
+ return count($graphEdge) > 0 ? $graphEdge : null;
+ }
+
+ /**
+ * Sends a request to Graph and returns the result.
+ *
+ * @param string $method
+ * @param string $endpoint
+ * @param array $params
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $eTag
+ * @param string|null $graphVersion
+ *
+ * @return FacebookResponse
+ *
+ * @throws FacebookSDKException
+ */
+ public function sendRequest($method, $endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null)
+ {
+ $accessToken = $accessToken ?: $this->defaultAccessToken;
+ $graphVersion = $graphVersion ?: $this->defaultGraphVersion;
+ $request = $this->request($method, $endpoint, $params, $accessToken, $eTag, $graphVersion);
+
+ return $this->lastResponse = $this->client->sendRequest($request);
+ }
+
+ /**
+ * Sends a batched request to Graph and returns the result.
+ *
+ * @param array $requests
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $graphVersion
+ *
+ * @return FacebookBatchResponse
+ *
+ * @throws FacebookSDKException
+ */
+ public function sendBatchRequest(array $requests, $accessToken = null, $graphVersion = null)
+ {
+ $accessToken = $accessToken ?: $this->defaultAccessToken;
+ $graphVersion = $graphVersion ?: $this->defaultGraphVersion;
+ $batchRequest = new FacebookBatchRequest(
+ $this->app,
+ $requests,
+ $accessToken,
+ $graphVersion
+ );
+
+ return $this->lastResponse = $this->client->sendBatchRequest($batchRequest);
+ }
+
+ /**
+ * Instantiates an empty FacebookBatchRequest entity.
+ *
+ * @param AccessToken|string|null $accessToken The top-level access token. Requests with no access token
+ * will fallback to this.
+ * @param string|null $graphVersion The Graph API version to use.
+ * @return FacebookBatchRequest
+ */
+ public function newBatchRequest($accessToken = null, $graphVersion = null)
+ {
+ $accessToken = $accessToken ?: $this->defaultAccessToken;
+ $graphVersion = $graphVersion ?: $this->defaultGraphVersion;
+
+ return new FacebookBatchRequest(
+ $this->app,
+ [],
+ $accessToken,
+ $graphVersion
+ );
+ }
+
+ /**
+ * Instantiates a new FacebookRequest entity.
+ *
+ * @param string $method
+ * @param string $endpoint
+ * @param array $params
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $eTag
+ * @param string|null $graphVersion
+ *
+ * @return FacebookRequest
+ *
+ * @throws FacebookSDKException
+ */
+ public function request($method, $endpoint, array $params = [], $accessToken = null, $eTag = null, $graphVersion = null)
+ {
+ $accessToken = $accessToken ?: $this->defaultAccessToken;
+ $graphVersion = $graphVersion ?: $this->defaultGraphVersion;
+
+ return new FacebookRequest(
+ $this->app,
+ $accessToken,
+ $method,
+ $endpoint,
+ $params,
+ $eTag,
+ $graphVersion
+ );
+ }
+
+ /**
+ * Factory to create FacebookFile's.
+ *
+ * @param string $pathToFile
+ *
+ * @return FacebookFile
+ *
+ * @throws FacebookSDKException
+ */
+ public function fileToUpload($pathToFile)
+ {
+ return new FacebookFile($pathToFile);
+ }
+
+ /**
+ * Factory to create FacebookVideo's.
+ *
+ * @param string $pathToFile
+ *
+ * @return FacebookVideo
+ *
+ * @throws FacebookSDKException
+ */
+ public function videoToUpload($pathToFile)
+ {
+ return new FacebookVideo($pathToFile);
+ }
+
+ /**
+ * Upload a video in chunks.
+ *
+ * @param int $target The id of the target node before the /videos edge.
+ * @param string $pathToFile The full path to the file.
+ * @param array $metadata The metadata associated with the video file.
+ * @param string|null $accessToken The access token.
+ * @param int $maxTransferTries The max times to retry a failed upload chunk.
+ * @param string|null $graphVersion The Graph API version to use.
+ *
+ * @return array
+ *
+ * @throws FacebookSDKException
+ */
+ public function uploadVideo($target, $pathToFile, $metadata = [], $accessToken = null, $maxTransferTries = 5, $graphVersion = null)
+ {
+ $accessToken = $accessToken ?: $this->defaultAccessToken;
+ $graphVersion = $graphVersion ?: $this->defaultGraphVersion;
+
+ $uploader = new FacebookResumableUploader($this->app, $this->client, $accessToken, $graphVersion);
+ $endpoint = '/'.$target.'/videos';
+ $file = $this->videoToUpload($pathToFile);
+ $chunk = $uploader->start($endpoint, $file);
+
+ do {
+ $chunk = $this->maxTriesTransfer($uploader, $endpoint, $chunk, $maxTransferTries);
+ } while (!$chunk->isLastChunk());
+
+ return [
+ 'video_id' => $chunk->getVideoId(),
+ 'success' => $uploader->finish($endpoint, $chunk->getUploadSessionId(), $metadata),
+ ];
+ }
+
+ /**
+ * Attempts to upload a chunk of a file in $retryCountdown tries.
+ *
+ * @param FacebookResumableUploader $uploader
+ * @param string $endpoint
+ * @param FacebookTransferChunk $chunk
+ * @param int $retryCountdown
+ *
+ * @return FacebookTransferChunk
+ *
+ * @throws FacebookSDKException
+ */
+ private function maxTriesTransfer(FacebookResumableUploader $uploader, $endpoint, FacebookTransferChunk $chunk, $retryCountdown)
+ {
+ $newChunk = $uploader->transfer($endpoint, $chunk, $retryCountdown < 1);
+
+ if ($newChunk !== $chunk) {
+ return $newChunk;
+ }
+
+ $retryCountdown--;
+
+ // If transfer() returned the same chunk entity, the transfer failed but is resumable.
+ return $this->maxTriesTransfer($uploader, $endpoint, $chunk, $retryCountdown);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FacebookApp.php b/mayor-orig/www/include/share/facebook/FacebookApp.php
new file mode 100644
index 00000000..804c9bb5
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FacebookApp.php
@@ -0,0 +1,110 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use Facebook\Authentication\AccessToken;
+use Facebook\Exceptions\FacebookSDKException;
+
+class FacebookApp implements \Serializable
+{
+ /**
+ * @var string The app ID.
+ */
+ protected $id;
+
+ /**
+ * @var string The app secret.
+ */
+ protected $secret;
+
+ /**
+ * @param string $id
+ * @param string $secret
+ *
+ * @throws FacebookSDKException
+ */
+ public function __construct($id, $secret)
+ {
+ if (!is_string($id)
+ // Keeping this for BC. Integers greater than PHP_INT_MAX will make is_int() return false
+ && !is_int($id)) {
+ throw new FacebookSDKException('The "app_id" must be formatted as a string since many app ID\'s are greater than PHP_INT_MAX on some systems.');
+ }
+ // We cast as a string in case a valid int was set on a 64-bit system and this is unserialised on a 32-bit system
+ $this->id = (string) $id;
+ $this->secret = $secret;
+ }
+
+ /**
+ * Returns the app ID.
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->id;
+ }
+
+ /**
+ * Returns the app secret.
+ *
+ * @return string
+ */
+ public function getSecret()
+ {
+ return $this->secret;
+ }
+
+ /**
+ * Returns an app access token.
+ *
+ * @return AccessToken
+ */
+ public function getAccessToken()
+ {
+ return new AccessToken($this->id . '|' . $this->secret);
+ }
+
+ /**
+ * Serializes the FacebookApp entity as a string.
+ *
+ * @return string
+ */
+ public function serialize()
+ {
+ return implode('|', [$this->id, $this->secret]);
+ }
+
+ /**
+ * Unserializes a string as a FacebookApp entity.
+ *
+ * @param string $serialized
+ */
+ public function unserialize($serialized)
+ {
+ list($id, $secret) = explode('|', $serialized);
+
+ $this->__construct($id, $secret);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FacebookBatchRequest.php b/mayor-orig/www/include/share/facebook/FacebookBatchRequest.php
new file mode 100644
index 00000000..3d5d5d56
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FacebookBatchRequest.php
@@ -0,0 +1,322 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use ArrayIterator;
+use IteratorAggregate;
+use ArrayAccess;
+use Facebook\Authentication\AccessToken;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class BatchRequest
+ *
+ * @package Facebook
+ */
+class FacebookBatchRequest extends FacebookRequest implements IteratorAggregate, ArrayAccess
+{
+ /**
+ * @var array An array of FacebookRequest entities to send.
+ */
+ protected $requests;
+
+ /**
+ * @var array An array of files to upload.
+ */
+ protected $attachedFiles;
+
+ /**
+ * Creates a new Request entity.
+ *
+ * @param FacebookApp|null $app
+ * @param array $requests
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $graphVersion
+ */
+ public function __construct(FacebookApp $app = null, array $requests = [], $accessToken = null, $graphVersion = null)
+ {
+ parent::__construct($app, $accessToken, 'POST', '', [], null, $graphVersion);
+
+ $this->add($requests);
+ }
+
+ /**
+ * Adds a new request to the array.
+ *
+ * @param FacebookRequest|array $request
+ * @param string|null|array $options Array of batch request options e.g. 'name', 'omit_response_on_success'.
+ * If a string is given, it is the value of the 'name' option.
+ *
+ * @return FacebookBatchRequest
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function add($request, $options = null)
+ {
+ if (is_array($request)) {
+ foreach ($request as $key => $req) {
+ $this->add($req, $key);
+ }
+
+ return $this;
+ }
+
+ if (!$request instanceof FacebookRequest) {
+ throw new \InvalidArgumentException('Argument for add() must be of type array or FacebookRequest.');
+ }
+
+ if (null === $options) {
+ $options = [];
+ } elseif (!is_array($options)) {
+ $options = ['name' => $options];
+ }
+
+ $this->addFallbackDefaults($request);
+
+ // File uploads
+ $attachedFiles = $this->extractFileAttachments($request);
+
+ $name = isset($options['name']) ? $options['name'] : null;
+
+ unset($options['name']);
+
+ $requestToAdd = [
+ 'name' => $name,
+ 'request' => $request,
+ 'options' => $options,
+ 'attached_files' => $attachedFiles,
+ ];
+
+ $this->requests[] = $requestToAdd;
+
+ return $this;
+ }
+
+ /**
+ * Ensures that the FacebookApp and access token fall back when missing.
+ *
+ * @param FacebookRequest $request
+ *
+ * @throws FacebookSDKException
+ */
+ public function addFallbackDefaults(FacebookRequest $request)
+ {
+ if (!$request->getApp()) {
+ $app = $this->getApp();
+ if (!$app) {
+ throw new FacebookSDKException('Missing FacebookApp on FacebookRequest and no fallback detected on FacebookBatchRequest.');
+ }
+ $request->setApp($app);
+ }
+
+ if (!$request->getAccessToken()) {
+ $accessToken = $this->getAccessToken();
+ if (!$accessToken) {
+ throw new FacebookSDKException('Missing access token on FacebookRequest and no fallback detected on FacebookBatchRequest.');
+ }
+ $request->setAccessToken($accessToken);
+ }
+ }
+
+ /**
+ * Extracts the files from a request.
+ *
+ * @param FacebookRequest $request
+ *
+ * @return string|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function extractFileAttachments(FacebookRequest $request)
+ {
+ if (!$request->containsFileUploads()) {
+ return null;
+ }
+
+ $files = $request->getFiles();
+ $fileNames = [];
+ foreach ($files as $file) {
+ $fileName = uniqid();
+ $this->addFile($fileName, $file);
+ $fileNames[] = $fileName;
+ }
+
+ $request->resetFiles();
+
+ // @TODO Does Graph support multiple uploads on one endpoint?
+ return implode(',', $fileNames);
+ }
+
+ /**
+ * Return the FacebookRequest entities.
+ *
+ * @return array
+ */
+ public function getRequests()
+ {
+ return $this->requests;
+ }
+
+ /**
+ * Prepares the requests to be sent as a batch request.
+ */
+ public function prepareRequestsForBatch()
+ {
+ $this->validateBatchRequestCount();
+
+ $params = [
+ 'batch' => $this->convertRequestsToJson(),
+ 'include_headers' => true,
+ ];
+ $this->setParams($params);
+ }
+
+ /**
+ * Converts the requests into a JSON(P) string.
+ *
+ * @return string
+ */
+ public function convertRequestsToJson()
+ {
+ $requests = [];
+ foreach ($this->requests as $request) {
+ $options = [];
+
+ if (null !== $request['name']) {
+ $options['name'] = $request['name'];
+ }
+
+ $options += $request['options'];
+
+ $requests[] = $this->requestEntityToBatchArray($request['request'], $options, $request['attached_files']);
+ }
+
+ return json_encode($requests);
+ }
+
+ /**
+ * Validate the request count before sending them as a batch.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateBatchRequestCount()
+ {
+ $batchCount = count($this->requests);
+ if ($batchCount === 0) {
+ throw new FacebookSDKException('There are no batch requests to send.');
+ } elseif ($batchCount > 50) {
+ // Per: https://developers.facebook.com/docs/graph-api/making-multiple-requests#limits
+ throw new FacebookSDKException('You cannot send more than 50 batch requests at a time.');
+ }
+ }
+
+ /**
+ * Converts a Request entity into an array that is batch-friendly.
+ *
+ * @param FacebookRequest $request The request entity to convert.
+ * @param string|null|array $options Array of batch request options e.g. 'name', 'omit_response_on_success'.
+ * If a string is given, it is the value of the 'name' option.
+ * @param string|null $attachedFiles Names of files associated with the request.
+ *
+ * @return array
+ */
+ public function requestEntityToBatchArray(FacebookRequest $request, $options = null, $attachedFiles = null)
+ {
+
+ if (null === $options) {
+ $options = [];
+ } elseif (!is_array($options)) {
+ $options = ['name' => $options];
+ }
+
+ $compiledHeaders = [];
+ $headers = $request->getHeaders();
+ foreach ($headers as $name => $value) {
+ $compiledHeaders[] = $name . ': ' . $value;
+ }
+
+ $batch = [
+ 'headers' => $compiledHeaders,
+ 'method' => $request->getMethod(),
+ 'relative_url' => $request->getUrl(),
+ ];
+
+ // Since file uploads are moved to the root request of a batch request,
+ // the child requests will always be URL-encoded.
+ $body = $request->getUrlEncodedBody()->getBody();
+ if ($body) {
+ $batch['body'] = $body;
+ }
+
+ $batch += $options;
+
+ if (null !== $attachedFiles) {
+ $batch['attached_files'] = $attachedFiles;
+ }
+
+ return $batch;
+ }
+
+ /**
+ * Get an iterator for the items.
+ *
+ * @return ArrayIterator
+ */
+ public function getIterator()
+ {
+ return new ArrayIterator($this->requests);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetSet($offset, $value)
+ {
+ $this->add($value, $offset);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->requests[$offset]);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->requests[$offset]);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->requests[$offset]) ? $this->requests[$offset] : null;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FacebookBatchResponse.php b/mayor-orig/www/include/share/facebook/FacebookBatchResponse.php
new file mode 100644
index 00000000..8e1464c9
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FacebookBatchResponse.php
@@ -0,0 +1,174 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use ArrayIterator;
+use IteratorAggregate;
+use ArrayAccess;
+
+/**
+ * Class FacebookBatchResponse
+ *
+ * @package Facebook
+ */
+class FacebookBatchResponse extends FacebookResponse implements IteratorAggregate, ArrayAccess
+{
+ /**
+ * @var FacebookBatchRequest The original entity that made the batch request.
+ */
+ protected $batchRequest;
+
+ /**
+ * @var array An array of FacebookResponse entities.
+ */
+ protected $responses = [];
+
+ /**
+ * Creates a new Response entity.
+ *
+ * @param FacebookBatchRequest $batchRequest
+ * @param FacebookResponse $response
+ */
+ public function __construct(FacebookBatchRequest $batchRequest, FacebookResponse $response)
+ {
+ $this->batchRequest = $batchRequest;
+
+ $request = $response->getRequest();
+ $body = $response->getBody();
+ $httpStatusCode = $response->getHttpStatusCode();
+ $headers = $response->getHeaders();
+ parent::__construct($request, $body, $httpStatusCode, $headers);
+
+ $responses = $response->getDecodedBody();
+ $this->setResponses($responses);
+ }
+
+ /**
+ * Returns an array of FacebookResponse entities.
+ *
+ * @return array
+ */
+ public function getResponses()
+ {
+ return $this->responses;
+ }
+
+ /**
+ * The main batch response will be an array of requests so
+ * we need to iterate over all the responses.
+ *
+ * @param array $responses
+ */
+ public function setResponses(array $responses)
+ {
+ $this->responses = [];
+
+ foreach ($responses as $key => $graphResponse) {
+ $this->addResponse($key, $graphResponse);
+ }
+ }
+
+ /**
+ * Add a response to the list.
+ *
+ * @param int $key
+ * @param array|null $response
+ */
+ public function addResponse($key, $response)
+ {
+ $originalRequestName = isset($this->batchRequest[$key]['name']) ? $this->batchRequest[$key]['name'] : $key;
+ $originalRequest = isset($this->batchRequest[$key]['request']) ? $this->batchRequest[$key]['request'] : null;
+
+ $httpResponseBody = isset($response['body']) ? $response['body'] : null;
+ $httpResponseCode = isset($response['code']) ? $response['code'] : null;
+ // @TODO With PHP 5.5 support, this becomes array_column($response['headers'], 'value', 'name')
+ $httpResponseHeaders = isset($response['headers']) ? $this->normalizeBatchHeaders($response['headers']) : [];
+
+ $this->responses[$originalRequestName] = new FacebookResponse(
+ $originalRequest,
+ $httpResponseBody,
+ $httpResponseCode,
+ $httpResponseHeaders
+ );
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getIterator()
+ {
+ return new ArrayIterator($this->responses);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetSet($offset, $value)
+ {
+ $this->addResponse($offset, $value);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->responses[$offset]);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->responses[$offset]);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->responses[$offset]) ? $this->responses[$offset] : null;
+ }
+
+ /**
+ * Converts the batch header array into a standard format.
+ * @TODO replace with array_column() when PHP 5.5 is supported.
+ *
+ * @param array $batchHeaders
+ *
+ * @return array
+ */
+ private function normalizeBatchHeaders(array $batchHeaders)
+ {
+ $headers = [];
+
+ foreach ($batchHeaders as $header) {
+ $headers[$header['name']] = $header['value'];
+ }
+
+ return $headers;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FacebookClient.php b/mayor-orig/www/include/share/facebook/FacebookClient.php
new file mode 100644
index 00000000..dbf75923
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FacebookClient.php
@@ -0,0 +1,250 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use Facebook\HttpClients\FacebookHttpClientInterface;
+use Facebook\HttpClients\FacebookCurlHttpClient;
+use Facebook\HttpClients\FacebookStreamHttpClient;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class FacebookClient
+ *
+ * @package Facebook
+ */
+class FacebookClient
+{
+ /**
+ * @const string Production Graph API URL.
+ */
+ const BASE_GRAPH_URL = 'https://graph.facebook.com';
+
+ /**
+ * @const string Graph API URL for video uploads.
+ */
+ const BASE_GRAPH_VIDEO_URL = 'https://graph-video.facebook.com';
+
+ /**
+ * @const string Beta Graph API URL.
+ */
+ const BASE_GRAPH_URL_BETA = 'https://graph.beta.facebook.com';
+
+ /**
+ * @const string Beta Graph API URL for video uploads.
+ */
+ const BASE_GRAPH_VIDEO_URL_BETA = 'https://graph-video.beta.facebook.com';
+
+ /**
+ * @const int The timeout in seconds for a normal request.
+ */
+ const DEFAULT_REQUEST_TIMEOUT = 60;
+
+ /**
+ * @const int The timeout in seconds for a request that contains file uploads.
+ */
+ const DEFAULT_FILE_UPLOAD_REQUEST_TIMEOUT = 3600;
+
+ /**
+ * @const int The timeout in seconds for a request that contains video uploads.
+ */
+ const DEFAULT_VIDEO_UPLOAD_REQUEST_TIMEOUT = 7200;
+
+ /**
+ * @var bool Toggle to use Graph beta url.
+ */
+ protected $enableBetaMode = false;
+
+ /**
+ * @var FacebookHttpClientInterface HTTP client handler.
+ */
+ protected $httpClientHandler;
+
+ /**
+ * @var int The number of calls that have been made to Graph.
+ */
+ public static $requestCount = 0;
+
+ /**
+ * Instantiates a new FacebookClient object.
+ *
+ * @param FacebookHttpClientInterface|null $httpClientHandler
+ * @param boolean $enableBeta
+ */
+ public function __construct(FacebookHttpClientInterface $httpClientHandler = null, $enableBeta = false)
+ {
+ $this->httpClientHandler = $httpClientHandler ?: $this->detectHttpClientHandler();
+ $this->enableBetaMode = $enableBeta;
+ }
+
+ /**
+ * Sets the HTTP client handler.
+ *
+ * @param FacebookHttpClientInterface $httpClientHandler
+ */
+ public function setHttpClientHandler(FacebookHttpClientInterface $httpClientHandler)
+ {
+ $this->httpClientHandler = $httpClientHandler;
+ }
+
+ /**
+ * Returns the HTTP client handler.
+ *
+ * @return FacebookHttpClientInterface
+ */
+ public function getHttpClientHandler()
+ {
+ return $this->httpClientHandler;
+ }
+
+ /**
+ * Detects which HTTP client handler to use.
+ *
+ * @return FacebookHttpClientInterface
+ */
+ public function detectHttpClientHandler()
+ {
+ return extension_loaded('curl') ? new FacebookCurlHttpClient() : new FacebookStreamHttpClient();
+ }
+
+ /**
+ * Toggle beta mode.
+ *
+ * @param boolean $betaMode
+ */
+ public function enableBetaMode($betaMode = true)
+ {
+ $this->enableBetaMode = $betaMode;
+ }
+
+ /**
+ * Returns the base Graph URL.
+ *
+ * @param boolean $postToVideoUrl Post to the video API if videos are being uploaded.
+ *
+ * @return string
+ */
+ public function getBaseGraphUrl($postToVideoUrl = false)
+ {
+ if ($postToVideoUrl) {
+ return $this->enableBetaMode ? static::BASE_GRAPH_VIDEO_URL_BETA : static::BASE_GRAPH_VIDEO_URL;
+ }
+
+ return $this->enableBetaMode ? static::BASE_GRAPH_URL_BETA : static::BASE_GRAPH_URL;
+ }
+
+ /**
+ * Prepares the request for sending to the client handler.
+ *
+ * @param FacebookRequest $request
+ *
+ * @return array
+ */
+ public function prepareRequestMessage(FacebookRequest $request)
+ {
+ $postToVideoUrl = $request->containsVideoUploads();
+ $url = $this->getBaseGraphUrl($postToVideoUrl) . $request->getUrl();
+
+ // If we're sending files they should be sent as multipart/form-data
+ if ($request->containsFileUploads()) {
+ $requestBody = $request->getMultipartBody();
+ $request->setHeaders([
+ 'Content-Type' => 'multipart/form-data; boundary=' . $requestBody->getBoundary(),
+ ]);
+ } else {
+ $requestBody = $request->getUrlEncodedBody();
+ $request->setHeaders([
+ 'Content-Type' => 'application/x-www-form-urlencoded',
+ ]);
+ }
+
+ return [
+ $url,
+ $request->getMethod(),
+ $request->getHeaders(),
+ $requestBody->getBody(),
+ ];
+ }
+
+ /**
+ * Makes the request to Graph and returns the result.
+ *
+ * @param FacebookRequest $request
+ *
+ * @return FacebookResponse
+ *
+ * @throws FacebookSDKException
+ */
+ public function sendRequest(FacebookRequest $request)
+ {
+ if (get_class($request) === 'Facebook\FacebookRequest') {
+ $request->validateAccessToken();
+ }
+
+ list($url, $method, $headers, $body) = $this->prepareRequestMessage($request);
+
+ // Since file uploads can take a while, we need to give more time for uploads
+ $timeOut = static::DEFAULT_REQUEST_TIMEOUT;
+ if ($request->containsFileUploads()) {
+ $timeOut = static::DEFAULT_FILE_UPLOAD_REQUEST_TIMEOUT;
+ } elseif ($request->containsVideoUploads()) {
+ $timeOut = static::DEFAULT_VIDEO_UPLOAD_REQUEST_TIMEOUT;
+ }
+
+ // Should throw `FacebookSDKException` exception on HTTP client error.
+ // Don't catch to allow it to bubble up.
+ $rawResponse = $this->httpClientHandler->send($url, $method, $body, $headers, $timeOut);
+
+ static::$requestCount++;
+
+ $returnResponse = new FacebookResponse(
+ $request,
+ $rawResponse->getBody(),
+ $rawResponse->getHttpResponseCode(),
+ $rawResponse->getHeaders()
+ );
+
+ if ($returnResponse->isError()) {
+ throw $returnResponse->getThrownException();
+ }
+
+ return $returnResponse;
+ }
+
+ /**
+ * Makes a batched request to Graph and returns the result.
+ *
+ * @param FacebookBatchRequest $request
+ *
+ * @return FacebookBatchResponse
+ *
+ * @throws FacebookSDKException
+ */
+ public function sendBatchRequest(FacebookBatchRequest $request)
+ {
+ $request->prepareRequestsForBatch();
+ $facebookResponse = $this->sendRequest($request);
+
+ return new FacebookBatchResponse($request, $facebookResponse);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FacebookRequest.php b/mayor-orig/www/include/share/facebook/FacebookRequest.php
new file mode 100644
index 00000000..2b100899
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FacebookRequest.php
@@ -0,0 +1,534 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use Facebook\Authentication\AccessToken;
+use Facebook\Url\FacebookUrlManipulator;
+use Facebook\FileUpload\FacebookFile;
+use Facebook\FileUpload\FacebookVideo;
+use Facebook\Http\RequestBodyMultipart;
+use Facebook\Http\RequestBodyUrlEncoded;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class Request
+ *
+ * @package Facebook
+ */
+class FacebookRequest
+{
+ /**
+ * @var FacebookApp The Facebook app entity.
+ */
+ protected $app;
+
+ /**
+ * @var string|null The access token to use for this request.
+ */
+ protected $accessToken;
+
+ /**
+ * @var string The HTTP method for this request.
+ */
+ protected $method;
+
+ /**
+ * @var string The Graph endpoint for this request.
+ */
+ protected $endpoint;
+
+ /**
+ * @var array The headers to send with this request.
+ */
+ protected $headers = [];
+
+ /**
+ * @var array The parameters to send with this request.
+ */
+ protected $params = [];
+
+ /**
+ * @var array The files to send with this request.
+ */
+ protected $files = [];
+
+ /**
+ * @var string ETag to send with this request.
+ */
+ protected $eTag;
+
+ /**
+ * @var string Graph version to use for this request.
+ */
+ protected $graphVersion;
+
+ /**
+ * Creates a new Request entity.
+ *
+ * @param FacebookApp|null $app
+ * @param AccessToken|string|null $accessToken
+ * @param string|null $method
+ * @param string|null $endpoint
+ * @param array|null $params
+ * @param string|null $eTag
+ * @param string|null $graphVersion
+ */
+ public function __construct(FacebookApp $app = null, $accessToken = null, $method = null, $endpoint = null, array $params = [], $eTag = null, $graphVersion = null)
+ {
+ $this->setApp($app);
+ $this->setAccessToken($accessToken);
+ $this->setMethod($method);
+ $this->setEndpoint($endpoint);
+ $this->setParams($params);
+ $this->setETag($eTag);
+ $this->graphVersion = $graphVersion ?: Facebook::DEFAULT_GRAPH_VERSION;
+ }
+
+ /**
+ * Set the access token for this request.
+ *
+ * @param AccessToken|string|null
+ *
+ * @return FacebookRequest
+ */
+ public function setAccessToken($accessToken)
+ {
+ $this->accessToken = $accessToken;
+ if ($accessToken instanceof AccessToken) {
+ $this->accessToken = $accessToken->getValue();
+ }
+
+ return $this;
+ }
+
+ /**
+ * Sets the access token with one harvested from a URL or POST params.
+ *
+ * @param string $accessToken The access token.
+ *
+ * @return FacebookRequest
+ *
+ * @throws FacebookSDKException
+ */
+ public function setAccessTokenFromParams($accessToken)
+ {
+ $existingAccessToken = $this->getAccessToken();
+ if (!$existingAccessToken) {
+ $this->setAccessToken($accessToken);
+ } elseif ($accessToken !== $existingAccessToken) {
+ throw new FacebookSDKException('Access token mismatch. The access token provided in the FacebookRequest and the one provided in the URL or POST params do not match.');
+ }
+
+ return $this;
+ }
+
+ /**
+ * Return the access token for this request.
+ *
+ * @return string|null
+ */
+ public function getAccessToken()
+ {
+ return $this->accessToken;
+ }
+
+ /**
+ * Return the access token for this request as an AccessToken entity.
+ *
+ * @return AccessToken|null
+ */
+ public function getAccessTokenEntity()
+ {
+ return $this->accessToken ? new AccessToken($this->accessToken) : null;
+ }
+
+ /**
+ * Set the FacebookApp entity used for this request.
+ *
+ * @param FacebookApp|null $app
+ */
+ public function setApp(FacebookApp $app = null)
+ {
+ $this->app = $app;
+ }
+
+ /**
+ * Return the FacebookApp entity used for this request.
+ *
+ * @return FacebookApp
+ */
+ public function getApp()
+ {
+ return $this->app;
+ }
+
+ /**
+ * Generate an app secret proof to sign this request.
+ *
+ * @return string|null
+ */
+ public function getAppSecretProof()
+ {
+ if (!$accessTokenEntity = $this->getAccessTokenEntity()) {
+ return null;
+ }
+
+ return $accessTokenEntity->getAppSecretProof($this->app->getSecret());
+ }
+
+ /**
+ * Validate that an access token exists for this request.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateAccessToken()
+ {
+ $accessToken = $this->getAccessToken();
+ if (!$accessToken) {
+ throw new FacebookSDKException('You must provide an access token.');
+ }
+ }
+
+ /**
+ * Set the HTTP method for this request.
+ *
+ * @param string
+ */
+ public function setMethod($method)
+ {
+ $this->method = strtoupper($method);
+ }
+
+ /**
+ * Return the HTTP method for this request.
+ *
+ * @return string
+ */
+ public function getMethod()
+ {
+ return $this->method;
+ }
+
+ /**
+ * Validate that the HTTP method is set.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateMethod()
+ {
+ if (!$this->method) {
+ throw new FacebookSDKException('HTTP method not specified.');
+ }
+
+ if (!in_array($this->method, ['GET', 'POST', 'DELETE'])) {
+ throw new FacebookSDKException('Invalid HTTP method specified.');
+ }
+ }
+
+ /**
+ * Set the endpoint for this request.
+ *
+ * @param string
+ *
+ * @return FacebookRequest
+ *
+ * @throws FacebookSDKException
+ */
+ public function setEndpoint($endpoint)
+ {
+ // Harvest the access token from the endpoint to keep things in sync
+ $params = FacebookUrlManipulator::getParamsAsArray($endpoint);
+ if (isset($params['access_token'])) {
+ $this->setAccessTokenFromParams($params['access_token']);
+ }
+
+ // Clean the token & app secret proof from the endpoint.
+ $filterParams = ['access_token', 'appsecret_proof'];
+ $this->endpoint = FacebookUrlManipulator::removeParamsFromUrl($endpoint, $filterParams);
+
+ return $this;
+ }
+
+ /**
+ * Return the endpoint for this request.
+ *
+ * @return string
+ */
+ public function getEndpoint()
+ {
+ // For batch requests, this will be empty
+ return $this->endpoint;
+ }
+
+ /**
+ * Generate and return the headers for this request.
+ *
+ * @return array
+ */
+ public function getHeaders()
+ {
+ $headers = static::getDefaultHeaders();
+
+ if ($this->eTag) {
+ $headers['If-None-Match'] = $this->eTag;
+ }
+
+ return array_merge($this->headers, $headers);
+ }
+
+ /**
+ * Set the headers for this request.
+ *
+ * @param array $headers
+ */
+ public function setHeaders(array $headers)
+ {
+ $this->headers = array_merge($this->headers, $headers);
+ }
+
+ /**
+ * Sets the eTag value.
+ *
+ * @param string $eTag
+ */
+ public function setETag($eTag)
+ {
+ $this->eTag = $eTag;
+ }
+
+ /**
+ * Set the params for this request.
+ *
+ * @param array $params
+ *
+ * @return FacebookRequest
+ *
+ * @throws FacebookSDKException
+ */
+ public function setParams(array $params = [])
+ {
+ if (isset($params['access_token'])) {
+ $this->setAccessTokenFromParams($params['access_token']);
+ }
+
+ // Don't let these buggers slip in.
+ unset($params['access_token'], $params['appsecret_proof']);
+
+ // @TODO Refactor code above with this
+ //$params = $this->sanitizeAuthenticationParams($params);
+ $params = $this->sanitizeFileParams($params);
+ $this->dangerouslySetParams($params);
+
+ return $this;
+ }
+
+ /**
+ * Set the params for this request without filtering them first.
+ *
+ * @param array $params
+ *
+ * @return FacebookRequest
+ */
+ public function dangerouslySetParams(array $params = [])
+ {
+ $this->params = array_merge($this->params, $params);
+
+ return $this;
+ }
+
+ /**
+ * Iterate over the params and pull out the file uploads.
+ *
+ * @param array $params
+ *
+ * @return array
+ */
+ public function sanitizeFileParams(array $params)
+ {
+ foreach ($params as $key => $value) {
+ if ($value instanceof FacebookFile) {
+ $this->addFile($key, $value);
+ unset($params[$key]);
+ }
+ }
+
+ return $params;
+ }
+
+ /**
+ * Add a file to be uploaded.
+ *
+ * @param string $key
+ * @param FacebookFile $file
+ */
+ public function addFile($key, FacebookFile $file)
+ {
+ $this->files[$key] = $file;
+ }
+
+ /**
+ * Removes all the files from the upload queue.
+ */
+ public function resetFiles()
+ {
+ $this->files = [];
+ }
+
+ /**
+ * Get the list of files to be uploaded.
+ *
+ * @return array
+ */
+ public function getFiles()
+ {
+ return $this->files;
+ }
+
+ /**
+ * Let's us know if there is a file upload with this request.
+ *
+ * @return boolean
+ */
+ public function containsFileUploads()
+ {
+ return !empty($this->files);
+ }
+
+ /**
+ * Let's us know if there is a video upload with this request.
+ *
+ * @return boolean
+ */
+ public function containsVideoUploads()
+ {
+ foreach ($this->files as $file) {
+ if ($file instanceof FacebookVideo) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Returns the body of the request as multipart/form-data.
+ *
+ * @return RequestBodyMultipart
+ */
+ public function getMultipartBody()
+ {
+ $params = $this->getPostParams();
+
+ return new RequestBodyMultipart($params, $this->files);
+ }
+
+ /**
+ * Returns the body of the request as URL-encoded.
+ *
+ * @return RequestBodyUrlEncoded
+ */
+ public function getUrlEncodedBody()
+ {
+ $params = $this->getPostParams();
+
+ return new RequestBodyUrlEncoded($params);
+ }
+
+ /**
+ * Generate and return the params for this request.
+ *
+ * @return array
+ */
+ public function getParams()
+ {
+ $params = $this->params;
+
+ $accessToken = $this->getAccessToken();
+ if ($accessToken) {
+ $params['access_token'] = $accessToken;
+ $params['appsecret_proof'] = $this->getAppSecretProof();
+ }
+
+ return $params;
+ }
+
+ /**
+ * Only return params on POST requests.
+ *
+ * @return array
+ */
+ public function getPostParams()
+ {
+ if ($this->getMethod() === 'POST') {
+ return $this->getParams();
+ }
+
+ return [];
+ }
+
+ /**
+ * The graph version used for this request.
+ *
+ * @return string
+ */
+ public function getGraphVersion()
+ {
+ return $this->graphVersion;
+ }
+
+ /**
+ * Generate and return the URL for this request.
+ *
+ * @return string
+ */
+ public function getUrl()
+ {
+ $this->validateMethod();
+
+ $graphVersion = FacebookUrlManipulator::forceSlashPrefix($this->graphVersion);
+ $endpoint = FacebookUrlManipulator::forceSlashPrefix($this->getEndpoint());
+
+ $url = $graphVersion . $endpoint;
+
+ if ($this->getMethod() !== 'POST') {
+ $params = $this->getParams();
+ $url = FacebookUrlManipulator::appendParamsToUrl($url, $params);
+ }
+
+ return $url;
+ }
+
+ /**
+ * Return the default headers that every request should use.
+ *
+ * @return array
+ */
+ public static function getDefaultHeaders()
+ {
+ return [
+ 'User-Agent' => 'fb-php-' . Facebook::VERSION,
+ 'Accept-Encoding' => '*',
+ ];
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FacebookResponse.php b/mayor-orig/www/include/share/facebook/FacebookResponse.php
new file mode 100644
index 00000000..251ca2f7
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FacebookResponse.php
@@ -0,0 +1,410 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use Facebook\GraphNodes\GraphNodeFactory;
+use Facebook\Exceptions\FacebookResponseException;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class FacebookResponse
+ *
+ * @package Facebook
+ */
+class FacebookResponse
+{
+ /**
+ * @var int The HTTP status code response from Graph.
+ */
+ protected $httpStatusCode;
+
+ /**
+ * @var array The headers returned from Graph.
+ */
+ protected $headers;
+
+ /**
+ * @var string The raw body of the response from Graph.
+ */
+ protected $body;
+
+ /**
+ * @var array The decoded body of the Graph response.
+ */
+ protected $decodedBody = [];
+
+ /**
+ * @var FacebookRequest The original request that returned this response.
+ */
+ protected $request;
+
+ /**
+ * @var FacebookSDKException The exception thrown by this request.
+ */
+ protected $thrownException;
+
+ /**
+ * Creates a new Response entity.
+ *
+ * @param FacebookRequest $request
+ * @param string|null $body
+ * @param int|null $httpStatusCode
+ * @param array|null $headers
+ */
+ public function __construct(FacebookRequest $request, $body = null, $httpStatusCode = null, array $headers = [])
+ {
+ $this->request = $request;
+ $this->body = $body;
+ $this->httpStatusCode = $httpStatusCode;
+ $this->headers = $headers;
+
+ $this->decodeBody();
+ }
+
+ /**
+ * Return the original request that returned this response.
+ *
+ * @return FacebookRequest
+ */
+ public function getRequest()
+ {
+ return $this->request;
+ }
+
+ /**
+ * Return the FacebookApp entity used for this response.
+ *
+ * @return FacebookApp
+ */
+ public function getApp()
+ {
+ return $this->request->getApp();
+ }
+
+ /**
+ * Return the access token that was used for this response.
+ *
+ * @return string|null
+ */
+ public function getAccessToken()
+ {
+ return $this->request->getAccessToken();
+ }
+
+ /**
+ * Return the HTTP status code for this response.
+ *
+ * @return int
+ */
+ public function getHttpStatusCode()
+ {
+ return $this->httpStatusCode;
+ }
+
+ /**
+ * Return the HTTP headers for this response.
+ *
+ * @return array
+ */
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+
+ /**
+ * Return the raw body response.
+ *
+ * @return string
+ */
+ public function getBody()
+ {
+ return $this->body;
+ }
+
+ /**
+ * Return the decoded body response.
+ *
+ * @return array
+ */
+ public function getDecodedBody()
+ {
+ return $this->decodedBody;
+ }
+
+ /**
+ * Get the app secret proof that was used for this response.
+ *
+ * @return string|null
+ */
+ public function getAppSecretProof()
+ {
+ return $this->request->getAppSecretProof();
+ }
+
+ /**
+ * Get the ETag associated with the response.
+ *
+ * @return string|null
+ */
+ public function getETag()
+ {
+ return isset($this->headers['ETag']) ? $this->headers['ETag'] : null;
+ }
+
+ /**
+ * Get the version of Graph that returned this response.
+ *
+ * @return string|null
+ */
+ public function getGraphVersion()
+ {
+ return isset($this->headers['Facebook-API-Version']) ? $this->headers['Facebook-API-Version'] : null;
+ }
+
+ /**
+ * Returns true if Graph returned an error message.
+ *
+ * @return boolean
+ */
+ public function isError()
+ {
+ return isset($this->decodedBody['error']);
+ }
+
+ /**
+ * Throws the exception.
+ *
+ * @throws FacebookSDKException
+ */
+ public function throwException()
+ {
+ throw $this->thrownException;
+ }
+
+ /**
+ * Instantiates an exception to be thrown later.
+ */
+ public function makeException()
+ {
+ $this->thrownException = FacebookResponseException::create($this);
+ }
+
+ /**
+ * Returns the exception that was thrown for this request.
+ *
+ * @return FacebookResponseException|null
+ */
+ public function getThrownException()
+ {
+ return $this->thrownException;
+ }
+
+ /**
+ * Convert the raw response into an array if possible.
+ *
+ * Graph will return 2 types of responses:
+ * - JSON(P)
+ * Most responses from Graph are JSON(P)
+ * - application/x-www-form-urlencoded key/value pairs
+ * Happens on the `/oauth/access_token` endpoint when exchanging
+ * a short-lived access token for a long-lived access token
+ * - And sometimes nothing :/ but that'd be a bug.
+ */
+ public function decodeBody()
+ {
+ $this->decodedBody = json_decode($this->body, true);
+
+ if ($this->decodedBody === null) {
+ $this->decodedBody = [];
+ parse_str($this->body, $this->decodedBody);
+ } elseif (is_bool($this->decodedBody)) {
+ // Backwards compatibility for Graph < 2.1.
+ // Mimics 2.1 responses.
+ // @TODO Remove this after Graph 2.0 is no longer supported
+ $this->decodedBody = ['success' => $this->decodedBody];
+ } elseif (is_numeric($this->decodedBody)) {
+ $this->decodedBody = ['id' => $this->decodedBody];
+ }
+
+ if (!is_array($this->decodedBody)) {
+ $this->decodedBody = [];
+ }
+
+ if ($this->isError()) {
+ $this->makeException();
+ }
+ }
+
+ /**
+ * Instantiate a new GraphObject from response.
+ *
+ * @param string|null $subclassName The GraphNode subclass to cast to.
+ *
+ * @return \Facebook\GraphNodes\GraphObject
+ *
+ * @throws FacebookSDKException
+ *
+ * @deprecated 5.0.0 getGraphObject() has been renamed to getGraphNode()
+ * @todo v6: Remove this method
+ */
+ public function getGraphObject($subclassName = null)
+ {
+ return $this->getGraphNode($subclassName);
+ }
+
+ /**
+ * Instantiate a new GraphNode from response.
+ *
+ * @param string|null $subclassName The GraphNode subclass to cast to.
+ *
+ * @return \Facebook\GraphNodes\GraphNode
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphNode($subclassName = null)
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphNode($subclassName);
+ }
+
+ /**
+ * Convenience method for creating a GraphAlbum collection.
+ *
+ * @return \Facebook\GraphNodes\GraphAlbum
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphAlbum()
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphAlbum();
+ }
+
+ /**
+ * Convenience method for creating a GraphPage collection.
+ *
+ * @return \Facebook\GraphNodes\GraphPage
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphPage()
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphPage();
+ }
+
+ /**
+ * Convenience method for creating a GraphSessionInfo collection.
+ *
+ * @return \Facebook\GraphNodes\GraphSessionInfo
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphSessionInfo()
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphSessionInfo();
+ }
+
+ /**
+ * Convenience method for creating a GraphUser collection.
+ *
+ * @return \Facebook\GraphNodes\GraphUser
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphUser()
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphUser();
+ }
+
+ /**
+ * Convenience method for creating a GraphEvent collection.
+ *
+ * @return \Facebook\GraphNodes\GraphEvent
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphEvent()
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphEvent();
+ }
+
+ /**
+ * Convenience method for creating a GraphGroup collection.
+ *
+ * @return \Facebook\GraphNodes\GraphGroup
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphGroup()
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphGroup();
+ }
+
+ /**
+ * Instantiate a new GraphList from response.
+ *
+ * @param string|null $subclassName The GraphNode subclass to cast list items to.
+ * @param boolean $auto_prefix Toggle to auto-prefix the subclass name.
+ *
+ * @return \Facebook\GraphNodes\GraphList
+ *
+ * @throws FacebookSDKException
+ *
+ * @deprecated 5.0.0 getGraphList() has been renamed to getGraphEdge()
+ * @todo v6: Remove this method
+ */
+ public function getGraphList($subclassName = null, $auto_prefix = true)
+ {
+ return $this->getGraphEdge($subclassName, $auto_prefix);
+ }
+
+ /**
+ * Instantiate a new GraphEdge from response.
+ *
+ * @param string|null $subclassName The GraphNode subclass to cast list items to.
+ * @param boolean $auto_prefix Toggle to auto-prefix the subclass name.
+ *
+ * @return \Facebook\GraphNodes\GraphEdge
+ *
+ * @throws FacebookSDKException
+ */
+ public function getGraphEdge($subclassName = null, $auto_prefix = true)
+ {
+ $factory = new GraphNodeFactory($this);
+
+ return $factory->makeGraphEdge($subclassName, $auto_prefix);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FileUpload/FacebookFile.php b/mayor-orig/www/include/share/facebook/FileUpload/FacebookFile.php
new file mode 100644
index 00000000..3c1536d4
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FileUpload/FacebookFile.php
@@ -0,0 +1,169 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\FileUpload;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class FacebookFile
+ *
+ * @package Facebook
+ */
+class FacebookFile
+{
+ /**
+ * @var string The path to the file on the system.
+ */
+ protected $path;
+
+ /**
+ * @var int The maximum bytes to read. Defaults to -1 (read all the remaining buffer).
+ */
+ private $maxLength;
+
+ /**
+ * @var int Seek to the specified offset before reading. If this number is negative, no seeking will occur and reading will start from the current position.
+ */
+ private $offset;
+
+ /**
+ * @var resource The stream pointing to the file.
+ */
+ protected $stream;
+
+ /**
+ * Creates a new FacebookFile entity.
+ *
+ * @param string $filePath
+ * @param int $maxLength
+ * @param int $offset
+ *
+ * @throws FacebookSDKException
+ */
+ public function __construct($filePath, $maxLength = -1, $offset = -1)
+ {
+ $this->path = $filePath;
+ $this->maxLength = $maxLength;
+ $this->offset = $offset;
+ $this->open();
+ }
+
+ /**
+ * Closes the stream when destructed.
+ */
+ public function __destruct()
+ {
+ $this->close();
+ }
+
+ /**
+ * Opens a stream for the file.
+ *
+ * @throws FacebookSDKException
+ */
+ public function open()
+ {
+ if (!$this->isRemoteFile($this->path) && !is_readable($this->path)) {
+ throw new FacebookSDKException('Failed to create FacebookFile entity. Unable to read resource: ' . $this->path . '.');
+ }
+
+ $this->stream = fopen($this->path, 'r');
+
+ if (!$this->stream) {
+ throw new FacebookSDKException('Failed to create FacebookFile entity. Unable to open resource: ' . $this->path . '.');
+ }
+ }
+
+ /**
+ * Stops the file stream.
+ */
+ public function close()
+ {
+ if (is_resource($this->stream)) {
+ fclose($this->stream);
+ }
+ }
+
+ /**
+ * Return the contents of the file.
+ *
+ * @return string
+ */
+ public function getContents()
+ {
+ return stream_get_contents($this->stream, $this->maxLength, $this->offset);
+ }
+
+ /**
+ * Return the name of the file.
+ *
+ * @return string
+ */
+ public function getFileName()
+ {
+ return basename($this->path);
+ }
+
+ /**
+ * Return the path of the file.
+ *
+ * @return string
+ */
+ public function getFilePath()
+ {
+ return $this->path;
+ }
+
+ /**
+ * Return the size of the file.
+ *
+ * @return int
+ */
+ public function getSize()
+ {
+ return filesize($this->path);
+ }
+
+ /**
+ * Return the mimetype of the file.
+ *
+ * @return string
+ */
+ public function getMimetype()
+ {
+ return Mimetypes::getInstance()->fromFilename($this->path) ?: 'text/plain';
+ }
+
+ /**
+ * Returns true if the path to the file is remote.
+ *
+ * @param string $pathToFile
+ *
+ * @return boolean
+ */
+ protected function isRemoteFile($pathToFile)
+ {
+ return preg_match('/^(https?|ftp):\/\/.*/', $pathToFile) === 1;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FileUpload/FacebookResumableUploader.php b/mayor-orig/www/include/share/facebook/FileUpload/FacebookResumableUploader.php
new file mode 100644
index 00000000..92a22f14
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FileUpload/FacebookResumableUploader.php
@@ -0,0 +1,167 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\FileUpload;
+
+use Facebook\Authentication\AccessToken;
+use Facebook\Exceptions\FacebookResponseException;
+use Facebook\Exceptions\FacebookResumableUploadException;
+use Facebook\Exceptions\FacebookSDKException;
+use Facebook\FacebookApp;
+use Facebook\FacebookClient;
+use Facebook\FacebookRequest;
+
+/**
+ * Class FacebookResumableUploader
+ *
+ * @package Facebook
+ */
+class FacebookResumableUploader
+{
+ /**
+ * @var FacebookApp
+ */
+ protected $app;
+
+ /**
+ * @var string
+ */
+ protected $accessToken;
+
+ /**
+ * @var FacebookClient The Facebook client service.
+ */
+ protected $client;
+
+ /**
+ * @var string Graph version to use for this request.
+ */
+ protected $graphVersion;
+
+ /**
+ * @param FacebookApp $app
+ * @param FacebookClient $client
+ * @param AccessToken|string|null $accessToken
+ * @param string $graphVersion
+ */
+ public function __construct(FacebookApp $app, FacebookClient $client, $accessToken, $graphVersion)
+ {
+ $this->app = $app;
+ $this->client = $client;
+ $this->accessToken = $accessToken;
+ $this->graphVersion = $graphVersion;
+ }
+
+ /**
+ * Upload by chunks - start phase
+ *
+ * @param string $endpoint
+ * @param FacebookFile $file
+ *
+ * @return FacebookTransferChunk
+ *
+ * @throws FacebookSDKException
+ */
+ public function start($endpoint, FacebookFile $file)
+ {
+ $params = [
+ 'upload_phase' => 'start',
+ 'file_size' => $file->getSize(),
+ ];
+ $response = $this->sendUploadRequest($endpoint, $params);
+
+ return new FacebookTransferChunk($file, $response['upload_session_id'], $response['video_id'], $response['start_offset'], $response['end_offset']);
+ }
+
+ /**
+ * Upload by chunks - transfer phase
+ *
+ * @param string $endpoint
+ * @param FacebookTransferChunk $chunk
+ * @param boolean $allowToThrow
+ *
+ * @return FacebookTransferChunk
+ *
+ * @throws FacebookResponseException
+ */
+ public function transfer($endpoint, FacebookTransferChunk $chunk, $allowToThrow = false)
+ {
+ $params = [
+ 'upload_phase' => 'transfer',
+ 'upload_session_id' => $chunk->getUploadSessionId(),
+ 'start_offset' => $chunk->getStartOffset(),
+ 'video_file_chunk' => $chunk->getPartialFile(),
+ ];
+
+ try {
+ $response = $this->sendUploadRequest($endpoint, $params);
+ } catch (FacebookResponseException $e) {
+ $preException = $e->getPrevious();
+ if ($allowToThrow || !$preException instanceof FacebookResumableUploadException) {
+ throw $e;
+ }
+
+ // Return the same chunk entity so it can be retried.
+ return $chunk;
+ }
+
+ return new FacebookTransferChunk($chunk->getFile(), $chunk->getUploadSessionId(), $chunk->getVideoId(), $response['start_offset'], $response['end_offset']);
+ }
+
+ /**
+ * Upload by chunks - finish phase
+ *
+ * @param string $endpoint
+ * @param string $uploadSessionId
+ * @param array $metadata The metadata associated with the file.
+ *
+ * @return boolean
+ *
+ * @throws FacebookSDKException
+ */
+ public function finish($endpoint, $uploadSessionId, $metadata = [])
+ {
+ $params = array_merge($metadata, [
+ 'upload_phase' => 'finish',
+ 'upload_session_id' => $uploadSessionId,
+ ]);
+ $response = $this->sendUploadRequest($endpoint, $params);
+
+ return $response['success'];
+ }
+
+ /**
+ * Helper to make a FacebookRequest and send it.
+ *
+ * @param string $endpoint The endpoint to POST to.
+ * @param array $params The params to send with the request.
+ *
+ * @return array
+ */
+ private function sendUploadRequest($endpoint, $params = [])
+ {
+ $request = new FacebookRequest($this->app, $this->accessToken, 'POST', $endpoint, $params, null, $this->graphVersion);
+
+ return $this->client->sendRequest($request)->getDecodedBody();
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FileUpload/FacebookTransferChunk.php b/mayor-orig/www/include/share/facebook/FileUpload/FacebookTransferChunk.php
new file mode 100644
index 00000000..a909e875
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FileUpload/FacebookTransferChunk.php
@@ -0,0 +1,133 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\FileUpload;
+
+/**
+ * Class FacebookTransferChunk
+ *
+ * @package Facebook
+ */
+class FacebookTransferChunk
+{
+ /**
+ * @var FacebookFile The file to chunk during upload.
+ */
+ private $file;
+
+ /**
+ * @var int The ID of the upload session.
+ */
+ private $uploadSessionId;
+
+ /**
+ * @var int Start byte position of the next file chunk.
+ */
+ private $startOffset;
+
+ /**
+ * @var int End byte position of the next file chunk.
+ */
+ private $endOffset;
+
+ /**
+ * @var int The ID of the video.
+ */
+ private $videoId;
+
+ /**
+ * @param FacebookFile $file
+ * @param int $uploadSessionId
+ * @param int $videoId
+ * @param int $startOffset
+ * @param int $endOffset
+ */
+ public function __construct(FacebookFile $file, $uploadSessionId, $videoId, $startOffset, $endOffset)
+ {
+ $this->file = $file;
+ $this->uploadSessionId = $uploadSessionId;
+ $this->videoId = $videoId;
+ $this->startOffset = $startOffset;
+ $this->endOffset = $endOffset;
+ }
+
+ /**
+ * Return the file entity.
+ *
+ * @return FacebookFile
+ */
+ public function getFile()
+ {
+ return $this->file;
+ }
+
+ /**
+ * Return a FacebookFile entity with partial content.
+ *
+ * @return FacebookFile
+ */
+ public function getPartialFile()
+ {
+ $maxLength = $this->endOffset - $this->startOffset;
+
+ return new FacebookFile($this->file->getFilePath(), $maxLength, $this->startOffset);
+ }
+
+ /**
+ * Return upload session Id
+ *
+ * @return int
+ */
+ public function getUploadSessionId()
+ {
+ return $this->uploadSessionId;
+ }
+
+ /**
+ * Check whether is the last chunk
+ *
+ * @return bool
+ */
+ public function isLastChunk()
+ {
+ return $this->startOffset === $this->endOffset;
+ }
+
+ /**
+ * @return int
+ */
+ public function getStartOffset()
+ {
+ return $this->startOffset;
+ }
+
+ /**
+ * Get uploaded video Id
+ *
+ * @return int
+ */
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/FileUpload/FacebookVideo.php b/mayor-orig/www/include/share/facebook/FileUpload/FacebookVideo.php
new file mode 100644
index 00000000..ee6dd538
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FileUpload/FacebookVideo.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\FileUpload;
+
+/**
+ * Class FacebookVideo
+ *
+ * @package Facebook
+ */
+class FacebookVideo extends FacebookFile
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/FileUpload/Mimetypes.php b/mayor-orig/www/include/share/facebook/FileUpload/Mimetypes.php
new file mode 100644
index 00000000..95d39924
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/FileUpload/Mimetypes.php
@@ -0,0 +1,988 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\FileUpload;
+
+/**
+ * Provides mappings of file extensions to mimetypes
+ *
+ * Taken from Guzzle
+ *
+ * @see https://github.com/guzzle/guzzle/blob/master/src/Mimetypes.php
+ *
+ * @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
+ */
+class Mimetypes
+{
+ /** @var self */
+ protected static $instance;
+
+ /** @var array Mapping of extension to mimetype */
+ protected $mimetypes = [
+ '3dml' => 'text/vnd.in3d.3dml',
+ '3g2' => 'video/3gpp2',
+ '3gp' => 'video/3gpp',
+ '7z' => 'application/x-7z-compressed',
+ 'aab' => 'application/x-authorware-bin',
+ 'aac' => 'audio/x-aac',
+ 'aam' => 'application/x-authorware-map',
+ 'aas' => 'application/x-authorware-seg',
+ 'abw' => 'application/x-abiword',
+ 'ac' => 'application/pkix-attr-cert',
+ 'acc' => 'application/vnd.americandynamics.acc',
+ 'ace' => 'application/x-ace-compressed',
+ 'acu' => 'application/vnd.acucobol',
+ 'acutc' => 'application/vnd.acucorp',
+ 'adp' => 'audio/adpcm',
+ 'aep' => 'application/vnd.audiograph',
+ 'afm' => 'application/x-font-type1',
+ 'afp' => 'application/vnd.ibm.modcap',
+ 'ahead' => 'application/vnd.ahead.space',
+ 'ai' => 'application/postscript',
+ 'aif' => 'audio/x-aiff',
+ 'aifc' => 'audio/x-aiff',
+ 'aiff' => 'audio/x-aiff',
+ 'air' => 'application/vnd.adobe.air-application-installer-package+zip',
+ 'ait' => 'application/vnd.dvb.ait',
+ 'ami' => 'application/vnd.amiga.ami',
+ 'apk' => 'application/vnd.android.package-archive',
+ 'application' => 'application/x-ms-application',
+ 'apr' => 'application/vnd.lotus-approach',
+ 'asa' => 'text/plain',
+ 'asax' => 'application/octet-stream',
+ 'asc' => 'application/pgp-signature',
+ 'ascx' => 'text/plain',
+ 'asf' => 'video/x-ms-asf',
+ 'ashx' => 'text/plain',
+ 'asm' => 'text/x-asm',
+ 'asmx' => 'text/plain',
+ 'aso' => 'application/vnd.accpac.simply.aso',
+ 'asp' => 'text/plain',
+ 'aspx' => 'text/plain',
+ 'asx' => 'video/x-ms-asf',
+ 'atc' => 'application/vnd.acucorp',
+ 'atom' => 'application/atom+xml',
+ 'atomcat' => 'application/atomcat+xml',
+ 'atomsvc' => 'application/atomsvc+xml',
+ 'atx' => 'application/vnd.antix.game-component',
+ 'au' => 'audio/basic',
+ 'avi' => 'video/x-msvideo',
+ 'aw' => 'application/applixware',
+ 'axd' => 'text/plain',
+ 'azf' => 'application/vnd.airzip.filesecure.azf',
+ 'azs' => 'application/vnd.airzip.filesecure.azs',
+ 'azw' => 'application/vnd.amazon.ebook',
+ 'bat' => 'application/x-msdownload',
+ 'bcpio' => 'application/x-bcpio',
+ 'bdf' => 'application/x-font-bdf',
+ 'bdm' => 'application/vnd.syncml.dm+wbxml',
+ 'bed' => 'application/vnd.realvnc.bed',
+ 'bh2' => 'application/vnd.fujitsu.oasysprs',
+ 'bin' => 'application/octet-stream',
+ 'bmi' => 'application/vnd.bmi',
+ 'bmp' => 'image/bmp',
+ 'book' => 'application/vnd.framemaker',
+ 'box' => 'application/vnd.previewsystems.box',
+ 'boz' => 'application/x-bzip2',
+ 'bpk' => 'application/octet-stream',
+ 'btif' => 'image/prs.btif',
+ 'bz' => 'application/x-bzip',
+ 'bz2' => 'application/x-bzip2',
+ 'c' => 'text/x-c',
+ 'c11amc' => 'application/vnd.cluetrust.cartomobile-config',
+ 'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg',
+ 'c4d' => 'application/vnd.clonk.c4group',
+ 'c4f' => 'application/vnd.clonk.c4group',
+ 'c4g' => 'application/vnd.clonk.c4group',
+ 'c4p' => 'application/vnd.clonk.c4group',
+ 'c4u' => 'application/vnd.clonk.c4group',
+ 'cab' => 'application/vnd.ms-cab-compressed',
+ 'car' => 'application/vnd.curl.car',
+ 'cat' => 'application/vnd.ms-pki.seccat',
+ 'cc' => 'text/x-c',
+ 'cct' => 'application/x-director',
+ 'ccxml' => 'application/ccxml+xml',
+ 'cdbcmsg' => 'application/vnd.contact.cmsg',
+ 'cdf' => 'application/x-netcdf',
+ 'cdkey' => 'application/vnd.mediastation.cdkey',
+ 'cdmia' => 'application/cdmi-capability',
+ 'cdmic' => 'application/cdmi-container',
+ 'cdmid' => 'application/cdmi-domain',
+ 'cdmio' => 'application/cdmi-object',
+ 'cdmiq' => 'application/cdmi-queue',
+ 'cdx' => 'chemical/x-cdx',
+ 'cdxml' => 'application/vnd.chemdraw+xml',
+ 'cdy' => 'application/vnd.cinderella',
+ 'cer' => 'application/pkix-cert',
+ 'cfc' => 'application/x-coldfusion',
+ 'cfm' => 'application/x-coldfusion',
+ 'cgm' => 'image/cgm',
+ 'chat' => 'application/x-chat',
+ 'chm' => 'application/vnd.ms-htmlhelp',
+ 'chrt' => 'application/vnd.kde.kchart',
+ 'cif' => 'chemical/x-cif',
+ 'cii' => 'application/vnd.anser-web-certificate-issue-initiation',
+ 'cil' => 'application/vnd.ms-artgalry',
+ 'cla' => 'application/vnd.claymore',
+ 'class' => 'application/java-vm',
+ 'clkk' => 'application/vnd.crick.clicker.keyboard',
+ 'clkp' => 'application/vnd.crick.clicker.palette',
+ 'clkt' => 'application/vnd.crick.clicker.template',
+ 'clkw' => 'application/vnd.crick.clicker.wordbank',
+ 'clkx' => 'application/vnd.crick.clicker',
+ 'clp' => 'application/x-msclip',
+ 'cmc' => 'application/vnd.cosmocaller',
+ 'cmdf' => 'chemical/x-cmdf',
+ 'cml' => 'chemical/x-cml',
+ 'cmp' => 'application/vnd.yellowriver-custom-menu',
+ 'cmx' => 'image/x-cmx',
+ 'cod' => 'application/vnd.rim.cod',
+ 'com' => 'application/x-msdownload',
+ 'conf' => 'text/plain',
+ 'cpio' => 'application/x-cpio',
+ 'cpp' => 'text/x-c',
+ 'cpt' => 'application/mac-compactpro',
+ 'crd' => 'application/x-mscardfile',
+ 'crl' => 'application/pkix-crl',
+ 'crt' => 'application/x-x509-ca-cert',
+ 'cryptonote' => 'application/vnd.rig.cryptonote',
+ 'cs' => 'text/plain',
+ 'csh' => 'application/x-csh',
+ 'csml' => 'chemical/x-csml',
+ 'csp' => 'application/vnd.commonspace',
+ 'css' => 'text/css',
+ 'cst' => 'application/x-director',
+ 'csv' => 'text/csv',
+ 'cu' => 'application/cu-seeme',
+ 'curl' => 'text/vnd.curl',
+ 'cww' => 'application/prs.cww',
+ 'cxt' => 'application/x-director',
+ 'cxx' => 'text/x-c',
+ 'dae' => 'model/vnd.collada+xml',
+ 'daf' => 'application/vnd.mobius.daf',
+ 'dataless' => 'application/vnd.fdsn.seed',
+ 'davmount' => 'application/davmount+xml',
+ 'dcr' => 'application/x-director',
+ 'dcurl' => 'text/vnd.curl.dcurl',
+ 'dd2' => 'application/vnd.oma.dd2+xml',
+ 'ddd' => 'application/vnd.fujixerox.ddd',
+ 'deb' => 'application/x-debian-package',
+ 'def' => 'text/plain',
+ 'deploy' => 'application/octet-stream',
+ 'der' => 'application/x-x509-ca-cert',
+ 'dfac' => 'application/vnd.dreamfactory',
+ 'dic' => 'text/x-c',
+ 'dir' => 'application/x-director',
+ 'dis' => 'application/vnd.mobius.dis',
+ 'dist' => 'application/octet-stream',
+ 'distz' => 'application/octet-stream',
+ 'djv' => 'image/vnd.djvu',
+ 'djvu' => 'image/vnd.djvu',
+ 'dll' => 'application/x-msdownload',
+ 'dmg' => 'application/octet-stream',
+ 'dms' => 'application/octet-stream',
+ 'dna' => 'application/vnd.dna',
+ 'doc' => 'application/msword',
+ 'docm' => 'application/vnd.ms-word.document.macroenabled.12',
+ 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
+ 'dot' => 'application/msword',
+ 'dotm' => 'application/vnd.ms-word.template.macroenabled.12',
+ 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
+ 'dp' => 'application/vnd.osgi.dp',
+ 'dpg' => 'application/vnd.dpgraph',
+ 'dra' => 'audio/vnd.dra',
+ 'dsc' => 'text/prs.lines.tag',
+ 'dssc' => 'application/dssc+der',
+ 'dtb' => 'application/x-dtbook+xml',
+ 'dtd' => 'application/xml-dtd',
+ 'dts' => 'audio/vnd.dts',
+ 'dtshd' => 'audio/vnd.dts.hd',
+ 'dump' => 'application/octet-stream',
+ 'dvi' => 'application/x-dvi',
+ 'dwf' => 'model/vnd.dwf',
+ 'dwg' => 'image/vnd.dwg',
+ 'dxf' => 'image/vnd.dxf',
+ 'dxp' => 'application/vnd.spotfire.dxp',
+ 'dxr' => 'application/x-director',
+ 'ecelp4800' => 'audio/vnd.nuera.ecelp4800',
+ 'ecelp7470' => 'audio/vnd.nuera.ecelp7470',
+ 'ecelp9600' => 'audio/vnd.nuera.ecelp9600',
+ 'ecma' => 'application/ecmascript',
+ 'edm' => 'application/vnd.novadigm.edm',
+ 'edx' => 'application/vnd.novadigm.edx',
+ 'efif' => 'application/vnd.picsel',
+ 'ei6' => 'application/vnd.pg.osasli',
+ 'elc' => 'application/octet-stream',
+ 'eml' => 'message/rfc822',
+ 'emma' => 'application/emma+xml',
+ 'eol' => 'audio/vnd.digital-winds',
+ 'eot' => 'application/vnd.ms-fontobject',
+ 'eps' => 'application/postscript',
+ 'epub' => 'application/epub+zip',
+ 'es3' => 'application/vnd.eszigno3+xml',
+ 'esf' => 'application/vnd.epson.esf',
+ 'et3' => 'application/vnd.eszigno3+xml',
+ 'etx' => 'text/x-setext',
+ 'exe' => 'application/x-msdownload',
+ 'exi' => 'application/exi',
+ 'ext' => 'application/vnd.novadigm.ext',
+ 'ez' => 'application/andrew-inset',
+ 'ez2' => 'application/vnd.ezpix-album',
+ 'ez3' => 'application/vnd.ezpix-package',
+ 'f' => 'text/x-fortran',
+ 'f4v' => 'video/x-f4v',
+ 'f77' => 'text/x-fortran',
+ 'f90' => 'text/x-fortran',
+ 'fbs' => 'image/vnd.fastbidsheet',
+ 'fcs' => 'application/vnd.isac.fcs',
+ 'fdf' => 'application/vnd.fdf',
+ 'fe_launch' => 'application/vnd.denovo.fcselayout-link',
+ 'fg5' => 'application/vnd.fujitsu.oasysgp',
+ 'fgd' => 'application/x-director',
+ 'fh' => 'image/x-freehand',
+ 'fh4' => 'image/x-freehand',
+ 'fh5' => 'image/x-freehand',
+ 'fh7' => 'image/x-freehand',
+ 'fhc' => 'image/x-freehand',
+ 'fig' => 'application/x-xfig',
+ 'fli' => 'video/x-fli',
+ 'flo' => 'application/vnd.micrografx.flo',
+ 'flv' => 'video/x-flv',
+ 'flw' => 'application/vnd.kde.kivio',
+ 'flx' => 'text/vnd.fmi.flexstor',
+ 'fly' => 'text/vnd.fly',
+ 'fm' => 'application/vnd.framemaker',
+ 'fnc' => 'application/vnd.frogans.fnc',
+ 'for' => 'text/x-fortran',
+ 'fpx' => 'image/vnd.fpx',
+ 'frame' => 'application/vnd.framemaker',
+ 'fsc' => 'application/vnd.fsc.weblaunch',
+ 'fst' => 'image/vnd.fst',
+ 'ftc' => 'application/vnd.fluxtime.clip',
+ 'fti' => 'application/vnd.anser-web-funds-transfer-initiation',
+ 'fvt' => 'video/vnd.fvt',
+ 'fxp' => 'application/vnd.adobe.fxp',
+ 'fxpl' => 'application/vnd.adobe.fxp',
+ 'fzs' => 'application/vnd.fuzzysheet',
+ 'g2w' => 'application/vnd.geoplan',
+ 'g3' => 'image/g3fax',
+ 'g3w' => 'application/vnd.geospace',
+ 'gac' => 'application/vnd.groove-account',
+ 'gdl' => 'model/vnd.gdl',
+ 'geo' => 'application/vnd.dynageo',
+ 'gex' => 'application/vnd.geometry-explorer',
+ 'ggb' => 'application/vnd.geogebra.file',
+ 'ggt' => 'application/vnd.geogebra.tool',
+ 'ghf' => 'application/vnd.groove-help',
+ 'gif' => 'image/gif',
+ 'gim' => 'application/vnd.groove-identity-message',
+ 'gmx' => 'application/vnd.gmx',
+ 'gnumeric' => 'application/x-gnumeric',
+ 'gph' => 'application/vnd.flographit',
+ 'gqf' => 'application/vnd.grafeq',
+ 'gqs' => 'application/vnd.grafeq',
+ 'gram' => 'application/srgs',
+ 'gre' => 'application/vnd.geometry-explorer',
+ 'grv' => 'application/vnd.groove-injector',
+ 'grxml' => 'application/srgs+xml',
+ 'gsf' => 'application/x-font-ghostscript',
+ 'gtar' => 'application/x-gtar',
+ 'gtm' => 'application/vnd.groove-tool-message',
+ 'gtw' => 'model/vnd.gtw',
+ 'gv' => 'text/vnd.graphviz',
+ 'gxt' => 'application/vnd.geonext',
+ 'h' => 'text/x-c',
+ 'h261' => 'video/h261',
+ 'h263' => 'video/h263',
+ 'h264' => 'video/h264',
+ 'hal' => 'application/vnd.hal+xml',
+ 'hbci' => 'application/vnd.hbci',
+ 'hdf' => 'application/x-hdf',
+ 'hh' => 'text/x-c',
+ 'hlp' => 'application/winhlp',
+ 'hpgl' => 'application/vnd.hp-hpgl',
+ 'hpid' => 'application/vnd.hp-hpid',
+ 'hps' => 'application/vnd.hp-hps',
+ 'hqx' => 'application/mac-binhex40',
+ 'hta' => 'application/octet-stream',
+ 'htc' => 'text/html',
+ 'htke' => 'application/vnd.kenameaapp',
+ 'htm' => 'text/html',
+ 'html' => 'text/html',
+ 'hvd' => 'application/vnd.yamaha.hv-dic',
+ 'hvp' => 'application/vnd.yamaha.hv-voice',
+ 'hvs' => 'application/vnd.yamaha.hv-script',
+ 'i2g' => 'application/vnd.intergeo',
+ 'icc' => 'application/vnd.iccprofile',
+ 'ice' => 'x-conference/x-cooltalk',
+ 'icm' => 'application/vnd.iccprofile',
+ 'ico' => 'image/x-icon',
+ 'ics' => 'text/calendar',
+ 'ief' => 'image/ief',
+ 'ifb' => 'text/calendar',
+ 'ifm' => 'application/vnd.shana.informed.formdata',
+ 'iges' => 'model/iges',
+ 'igl' => 'application/vnd.igloader',
+ 'igm' => 'application/vnd.insors.igm',
+ 'igs' => 'model/iges',
+ 'igx' => 'application/vnd.micrografx.igx',
+ 'iif' => 'application/vnd.shana.informed.interchange',
+ 'imp' => 'application/vnd.accpac.simply.imp',
+ 'ims' => 'application/vnd.ms-ims',
+ 'in' => 'text/plain',
+ 'ini' => 'text/plain',
+ 'ipfix' => 'application/ipfix',
+ 'ipk' => 'application/vnd.shana.informed.package',
+ 'irm' => 'application/vnd.ibm.rights-management',
+ 'irp' => 'application/vnd.irepository.package+xml',
+ 'iso' => 'application/octet-stream',
+ 'itp' => 'application/vnd.shana.informed.formtemplate',
+ 'ivp' => 'application/vnd.immervision-ivp',
+ 'ivu' => 'application/vnd.immervision-ivu',
+ 'jad' => 'text/vnd.sun.j2me.app-descriptor',
+ 'jam' => 'application/vnd.jam',
+ 'jar' => 'application/java-archive',
+ 'java' => 'text/x-java-source',
+ 'jisp' => 'application/vnd.jisp',
+ 'jlt' => 'application/vnd.hp-jlyt',
+ 'jnlp' => 'application/x-java-jnlp-file',
+ 'joda' => 'application/vnd.joost.joda-archive',
+ 'jpe' => 'image/jpeg',
+ 'jpeg' => 'image/jpeg',
+ 'jpg' => 'image/jpeg',
+ 'jpgm' => 'video/jpm',
+ 'jpgv' => 'video/jpeg',
+ 'jpm' => 'video/jpm',
+ 'js' => 'text/javascript',
+ 'json' => 'application/json',
+ 'kar' => 'audio/midi',
+ 'karbon' => 'application/vnd.kde.karbon',
+ 'kfo' => 'application/vnd.kde.kformula',
+ 'kia' => 'application/vnd.kidspiration',
+ 'kml' => 'application/vnd.google-earth.kml+xml',
+ 'kmz' => 'application/vnd.google-earth.kmz',
+ 'kne' => 'application/vnd.kinar',
+ 'knp' => 'application/vnd.kinar',
+ 'kon' => 'application/vnd.kde.kontour',
+ 'kpr' => 'application/vnd.kde.kpresenter',
+ 'kpt' => 'application/vnd.kde.kpresenter',
+ 'ksp' => 'application/vnd.kde.kspread',
+ 'ktr' => 'application/vnd.kahootz',
+ 'ktx' => 'image/ktx',
+ 'ktz' => 'application/vnd.kahootz',
+ 'kwd' => 'application/vnd.kde.kword',
+ 'kwt' => 'application/vnd.kde.kword',
+ 'lasxml' => 'application/vnd.las.las+xml',
+ 'latex' => 'application/x-latex',
+ 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop',
+ 'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml',
+ 'les' => 'application/vnd.hhe.lesson-player',
+ 'lha' => 'application/octet-stream',
+ 'link66' => 'application/vnd.route66.link66+xml',
+ 'list' => 'text/plain',
+ 'list3820' => 'application/vnd.ibm.modcap',
+ 'listafp' => 'application/vnd.ibm.modcap',
+ 'log' => 'text/plain',
+ 'lostxml' => 'application/lost+xml',
+ 'lrf' => 'application/octet-stream',
+ 'lrm' => 'application/vnd.ms-lrm',
+ 'ltf' => 'application/vnd.frogans.ltf',
+ 'lvp' => 'audio/vnd.lucent.voice',
+ 'lwp' => 'application/vnd.lotus-wordpro',
+ 'lzh' => 'application/octet-stream',
+ 'm13' => 'application/x-msmediaview',
+ 'm14' => 'application/x-msmediaview',
+ 'm1v' => 'video/mpeg',
+ 'm21' => 'application/mp21',
+ 'm2a' => 'audio/mpeg',
+ 'm2v' => 'video/mpeg',
+ 'm3a' => 'audio/mpeg',
+ 'm3u' => 'audio/x-mpegurl',
+ 'm3u8' => 'application/vnd.apple.mpegurl',
+ 'm4a' => 'audio/mp4',
+ 'm4u' => 'video/vnd.mpegurl',
+ 'm4v' => 'video/mp4',
+ 'ma' => 'application/mathematica',
+ 'mads' => 'application/mads+xml',
+ 'mag' => 'application/vnd.ecowin.chart',
+ 'maker' => 'application/vnd.framemaker',
+ 'man' => 'text/troff',
+ 'mathml' => 'application/mathml+xml',
+ 'mb' => 'application/mathematica',
+ 'mbk' => 'application/vnd.mobius.mbk',
+ 'mbox' => 'application/mbox',
+ 'mc1' => 'application/vnd.medcalcdata',
+ 'mcd' => 'application/vnd.mcd',
+ 'mcurl' => 'text/vnd.curl.mcurl',
+ 'mdb' => 'application/x-msaccess',
+ 'mdi' => 'image/vnd.ms-modi',
+ 'me' => 'text/troff',
+ 'mesh' => 'model/mesh',
+ 'meta4' => 'application/metalink4+xml',
+ 'mets' => 'application/mets+xml',
+ 'mfm' => 'application/vnd.mfmp',
+ 'mgp' => 'application/vnd.osgeo.mapguide.package',
+ 'mgz' => 'application/vnd.proteus.magazine',
+ 'mid' => 'audio/midi',
+ 'midi' => 'audio/midi',
+ 'mif' => 'application/vnd.mif',
+ 'mime' => 'message/rfc822',
+ 'mj2' => 'video/mj2',
+ 'mjp2' => 'video/mj2',
+ 'mlp' => 'application/vnd.dolby.mlp',
+ 'mmd' => 'application/vnd.chipnuts.karaoke-mmd',
+ 'mmf' => 'application/vnd.smaf',
+ 'mmr' => 'image/vnd.fujixerox.edmics-mmr',
+ 'mny' => 'application/x-msmoney',
+ 'mobi' => 'application/x-mobipocket-ebook',
+ 'mods' => 'application/mods+xml',
+ 'mov' => 'video/quicktime',
+ 'movie' => 'video/x-sgi-movie',
+ 'mp2' => 'audio/mpeg',
+ 'mp21' => 'application/mp21',
+ 'mp2a' => 'audio/mpeg',
+ 'mp3' => 'audio/mpeg',
+ 'mp4' => 'video/mp4',
+ 'mp4a' => 'audio/mp4',
+ 'mp4s' => 'application/mp4',
+ 'mp4v' => 'video/mp4',
+ 'mpc' => 'application/vnd.mophun.certificate',
+ 'mpe' => 'video/mpeg',
+ 'mpeg' => 'video/mpeg',
+ 'mpg' => 'video/mpeg',
+ 'mpg4' => 'video/mp4',
+ 'mpga' => 'audio/mpeg',
+ 'mpkg' => 'application/vnd.apple.installer+xml',
+ 'mpm' => 'application/vnd.blueice.multipass',
+ 'mpn' => 'application/vnd.mophun.application',
+ 'mpp' => 'application/vnd.ms-project',
+ 'mpt' => 'application/vnd.ms-project',
+ 'mpy' => 'application/vnd.ibm.minipay',
+ 'mqy' => 'application/vnd.mobius.mqy',
+ 'mrc' => 'application/marc',
+ 'mrcx' => 'application/marcxml+xml',
+ 'ms' => 'text/troff',
+ 'mscml' => 'application/mediaservercontrol+xml',
+ 'mseed' => 'application/vnd.fdsn.mseed',
+ 'mseq' => 'application/vnd.mseq',
+ 'msf' => 'application/vnd.epson.msf',
+ 'msh' => 'model/mesh',
+ 'msi' => 'application/x-msdownload',
+ 'msl' => 'application/vnd.mobius.msl',
+ 'msty' => 'application/vnd.muvee.style',
+ 'mts' => 'model/vnd.mts',
+ 'mus' => 'application/vnd.musician',
+ 'musicxml' => 'application/vnd.recordare.musicxml+xml',
+ 'mvb' => 'application/x-msmediaview',
+ 'mwf' => 'application/vnd.mfer',
+ 'mxf' => 'application/mxf',
+ 'mxl' => 'application/vnd.recordare.musicxml',
+ 'mxml' => 'application/xv+xml',
+ 'mxs' => 'application/vnd.triscape.mxs',
+ 'mxu' => 'video/vnd.mpegurl',
+ 'n-gage' => 'application/vnd.nokia.n-gage.symbian.install',
+ 'n3' => 'text/n3',
+ 'nb' => 'application/mathematica',
+ 'nbp' => 'application/vnd.wolfram.player',
+ 'nc' => 'application/x-netcdf',
+ 'ncx' => 'application/x-dtbncx+xml',
+ 'ngdat' => 'application/vnd.nokia.n-gage.data',
+ 'nlu' => 'application/vnd.neurolanguage.nlu',
+ 'nml' => 'application/vnd.enliven',
+ 'nnd' => 'application/vnd.noblenet-directory',
+ 'nns' => 'application/vnd.noblenet-sealer',
+ 'nnw' => 'application/vnd.noblenet-web',
+ 'npx' => 'image/vnd.net-fpx',
+ 'nsf' => 'application/vnd.lotus-notes',
+ 'oa2' => 'application/vnd.fujitsu.oasys2',
+ 'oa3' => 'application/vnd.fujitsu.oasys3',
+ 'oas' => 'application/vnd.fujitsu.oasys',
+ 'obd' => 'application/x-msbinder',
+ 'oda' => 'application/oda',
+ 'odb' => 'application/vnd.oasis.opendocument.database',
+ 'odc' => 'application/vnd.oasis.opendocument.chart',
+ 'odf' => 'application/vnd.oasis.opendocument.formula',
+ 'odft' => 'application/vnd.oasis.opendocument.formula-template',
+ 'odg' => 'application/vnd.oasis.opendocument.graphics',
+ 'odi' => 'application/vnd.oasis.opendocument.image',
+ 'odm' => 'application/vnd.oasis.opendocument.text-master',
+ 'odp' => 'application/vnd.oasis.opendocument.presentation',
+ 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
+ 'odt' => 'application/vnd.oasis.opendocument.text',
+ 'oga' => 'audio/ogg',
+ 'ogg' => 'audio/ogg',
+ 'ogv' => 'video/ogg',
+ 'ogx' => 'application/ogg',
+ 'onepkg' => 'application/onenote',
+ 'onetmp' => 'application/onenote',
+ 'onetoc' => 'application/onenote',
+ 'onetoc2' => 'application/onenote',
+ 'opf' => 'application/oebps-package+xml',
+ 'oprc' => 'application/vnd.palm',
+ 'org' => 'application/vnd.lotus-organizer',
+ 'osf' => 'application/vnd.yamaha.openscoreformat',
+ 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
+ 'otc' => 'application/vnd.oasis.opendocument.chart-template',
+ 'otf' => 'application/x-font-otf',
+ 'otg' => 'application/vnd.oasis.opendocument.graphics-template',
+ 'oth' => 'application/vnd.oasis.opendocument.text-web',
+ 'oti' => 'application/vnd.oasis.opendocument.image-template',
+ 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
+ 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
+ 'ott' => 'application/vnd.oasis.opendocument.text-template',
+ 'oxt' => 'application/vnd.openofficeorg.extension',
+ 'p' => 'text/x-pascal',
+ 'p10' => 'application/pkcs10',
+ 'p12' => 'application/x-pkcs12',
+ 'p7b' => 'application/x-pkcs7-certificates',
+ 'p7c' => 'application/pkcs7-mime',
+ 'p7m' => 'application/pkcs7-mime',
+ 'p7r' => 'application/x-pkcs7-certreqresp',
+ 'p7s' => 'application/pkcs7-signature',
+ 'p8' => 'application/pkcs8',
+ 'pas' => 'text/x-pascal',
+ 'paw' => 'application/vnd.pawaafile',
+ 'pbd' => 'application/vnd.powerbuilder6',
+ 'pbm' => 'image/x-portable-bitmap',
+ 'pcf' => 'application/x-font-pcf',
+ 'pcl' => 'application/vnd.hp-pcl',
+ 'pclxl' => 'application/vnd.hp-pclxl',
+ 'pct' => 'image/x-pict',
+ 'pcurl' => 'application/vnd.curl.pcurl',
+ 'pcx' => 'image/x-pcx',
+ 'pdb' => 'application/vnd.palm',
+ 'pdf' => 'application/pdf',
+ 'pfa' => 'application/x-font-type1',
+ 'pfb' => 'application/x-font-type1',
+ 'pfm' => 'application/x-font-type1',
+ 'pfr' => 'application/font-tdpfr',
+ 'pfx' => 'application/x-pkcs12',
+ 'pgm' => 'image/x-portable-graymap',
+ 'pgn' => 'application/x-chess-pgn',
+ 'pgp' => 'application/pgp-encrypted',
+ 'php' => 'text/x-php',
+ 'phps' => 'application/x-httpd-phps',
+ 'pic' => 'image/x-pict',
+ 'pkg' => 'application/octet-stream',
+ 'pki' => 'application/pkixcmp',
+ 'pkipath' => 'application/pkix-pkipath',
+ 'plb' => 'application/vnd.3gpp.pic-bw-large',
+ 'plc' => 'application/vnd.mobius.plc',
+ 'plf' => 'application/vnd.pocketlearn',
+ 'pls' => 'application/pls+xml',
+ 'pml' => 'application/vnd.ctc-posml',
+ 'png' => 'image/png',
+ 'pnm' => 'image/x-portable-anymap',
+ 'portpkg' => 'application/vnd.macports.portpkg',
+ 'pot' => 'application/vnd.ms-powerpoint',
+ 'potm' => 'application/vnd.ms-powerpoint.template.macroenabled.12',
+ 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
+ 'ppam' => 'application/vnd.ms-powerpoint.addin.macroenabled.12',
+ 'ppd' => 'application/vnd.cups-ppd',
+ 'ppm' => 'image/x-portable-pixmap',
+ 'pps' => 'application/vnd.ms-powerpoint',
+ 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroenabled.12',
+ 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
+ 'ppt' => 'application/vnd.ms-powerpoint',
+ 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroenabled.12',
+ 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
+ 'pqa' => 'application/vnd.palm',
+ 'prc' => 'application/x-mobipocket-ebook',
+ 'pre' => 'application/vnd.lotus-freelance',
+ 'prf' => 'application/pics-rules',
+ 'ps' => 'application/postscript',
+ 'psb' => 'application/vnd.3gpp.pic-bw-small',
+ 'psd' => 'image/vnd.adobe.photoshop',
+ 'psf' => 'application/x-font-linux-psf',
+ 'pskcxml' => 'application/pskc+xml',
+ 'ptid' => 'application/vnd.pvi.ptid1',
+ 'pub' => 'application/x-mspublisher',
+ 'pvb' => 'application/vnd.3gpp.pic-bw-var',
+ 'pwn' => 'application/vnd.3m.post-it-notes',
+ 'pya' => 'audio/vnd.ms-playready.media.pya',
+ 'pyv' => 'video/vnd.ms-playready.media.pyv',
+ 'qam' => 'application/vnd.epson.quickanime',
+ 'qbo' => 'application/vnd.intu.qbo',
+ 'qfx' => 'application/vnd.intu.qfx',
+ 'qps' => 'application/vnd.publishare-delta-tree',
+ 'qt' => 'video/quicktime',
+ 'qwd' => 'application/vnd.quark.quarkxpress',
+ 'qwt' => 'application/vnd.quark.quarkxpress',
+ 'qxb' => 'application/vnd.quark.quarkxpress',
+ 'qxd' => 'application/vnd.quark.quarkxpress',
+ 'qxl' => 'application/vnd.quark.quarkxpress',
+ 'qxt' => 'application/vnd.quark.quarkxpress',
+ 'ra' => 'audio/x-pn-realaudio',
+ 'ram' => 'audio/x-pn-realaudio',
+ 'rar' => 'application/x-rar-compressed',
+ 'ras' => 'image/x-cmu-raster',
+ 'rb' => 'text/plain',
+ 'rcprofile' => 'application/vnd.ipunplugged.rcprofile',
+ 'rdf' => 'application/rdf+xml',
+ 'rdz' => 'application/vnd.data-vision.rdz',
+ 'rep' => 'application/vnd.businessobjects',
+ 'res' => 'application/x-dtbresource+xml',
+ 'resx' => 'text/xml',
+ 'rgb' => 'image/x-rgb',
+ 'rif' => 'application/reginfo+xml',
+ 'rip' => 'audio/vnd.rip',
+ 'rl' => 'application/resource-lists+xml',
+ 'rlc' => 'image/vnd.fujixerox.edmics-rlc',
+ 'rld' => 'application/resource-lists-diff+xml',
+ 'rm' => 'application/vnd.rn-realmedia',
+ 'rmi' => 'audio/midi',
+ 'rmp' => 'audio/x-pn-realaudio-plugin',
+ 'rms' => 'application/vnd.jcp.javame.midlet-rms',
+ 'rnc' => 'application/relax-ng-compact-syntax',
+ 'roff' => 'text/troff',
+ 'rp9' => 'application/vnd.cloanto.rp9',
+ 'rpss' => 'application/vnd.nokia.radio-presets',
+ 'rpst' => 'application/vnd.nokia.radio-preset',
+ 'rq' => 'application/sparql-query',
+ 'rs' => 'application/rls-services+xml',
+ 'rsd' => 'application/rsd+xml',
+ 'rss' => 'application/rss+xml',
+ 'rtf' => 'application/rtf',
+ 'rtx' => 'text/richtext',
+ 's' => 'text/x-asm',
+ 'saf' => 'application/vnd.yamaha.smaf-audio',
+ 'sbml' => 'application/sbml+xml',
+ 'sc' => 'application/vnd.ibm.secure-container',
+ 'scd' => 'application/x-msschedule',
+ 'scm' => 'application/vnd.lotus-screencam',
+ 'scq' => 'application/scvp-cv-request',
+ 'scs' => 'application/scvp-cv-response',
+ 'scurl' => 'text/vnd.curl.scurl',
+ 'sda' => 'application/vnd.stardivision.draw',
+ 'sdc' => 'application/vnd.stardivision.calc',
+ 'sdd' => 'application/vnd.stardivision.impress',
+ 'sdkd' => 'application/vnd.solent.sdkm+xml',
+ 'sdkm' => 'application/vnd.solent.sdkm+xml',
+ 'sdp' => 'application/sdp',
+ 'sdw' => 'application/vnd.stardivision.writer',
+ 'see' => 'application/vnd.seemail',
+ 'seed' => 'application/vnd.fdsn.seed',
+ 'sema' => 'application/vnd.sema',
+ 'semd' => 'application/vnd.semd',
+ 'semf' => 'application/vnd.semf',
+ 'ser' => 'application/java-serialized-object',
+ 'setpay' => 'application/set-payment-initiation',
+ 'setreg' => 'application/set-registration-initiation',
+ 'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data',
+ 'sfs' => 'application/vnd.spotfire.sfs',
+ 'sgl' => 'application/vnd.stardivision.writer-global',
+ 'sgm' => 'text/sgml',
+ 'sgml' => 'text/sgml',
+ 'sh' => 'application/x-sh',
+ 'shar' => 'application/x-shar',
+ 'shf' => 'application/shf+xml',
+ 'sig' => 'application/pgp-signature',
+ 'silo' => 'model/mesh',
+ 'sis' => 'application/vnd.symbian.install',
+ 'sisx' => 'application/vnd.symbian.install',
+ 'sit' => 'application/x-stuffit',
+ 'sitx' => 'application/x-stuffitx',
+ 'skd' => 'application/vnd.koan',
+ 'skm' => 'application/vnd.koan',
+ 'skp' => 'application/vnd.koan',
+ 'skt' => 'application/vnd.koan',
+ 'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12',
+ 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
+ 'slt' => 'application/vnd.epson.salt',
+ 'sm' => 'application/vnd.stepmania.stepchart',
+ 'smf' => 'application/vnd.stardivision.math',
+ 'smi' => 'application/smil+xml',
+ 'smil' => 'application/smil+xml',
+ 'snd' => 'audio/basic',
+ 'snf' => 'application/x-font-snf',
+ 'so' => 'application/octet-stream',
+ 'spc' => 'application/x-pkcs7-certificates',
+ 'spf' => 'application/vnd.yamaha.smaf-phrase',
+ 'spl' => 'application/x-futuresplash',
+ 'spot' => 'text/vnd.in3d.spot',
+ 'spp' => 'application/scvp-vp-response',
+ 'spq' => 'application/scvp-vp-request',
+ 'spx' => 'audio/ogg',
+ 'src' => 'application/x-wais-source',
+ 'srt' => 'application/octet-stream',
+ 'sru' => 'application/sru+xml',
+ 'srx' => 'application/sparql-results+xml',
+ 'sse' => 'application/vnd.kodak-descriptor',
+ 'ssf' => 'application/vnd.epson.ssf',
+ 'ssml' => 'application/ssml+xml',
+ 'st' => 'application/vnd.sailingtracker.track',
+ 'stc' => 'application/vnd.sun.xml.calc.template',
+ 'std' => 'application/vnd.sun.xml.draw.template',
+ 'stf' => 'application/vnd.wt.stf',
+ 'sti' => 'application/vnd.sun.xml.impress.template',
+ 'stk' => 'application/hyperstudio',
+ 'stl' => 'application/vnd.ms-pki.stl',
+ 'str' => 'application/vnd.pg.format',
+ 'stw' => 'application/vnd.sun.xml.writer.template',
+ 'sub' => 'image/vnd.dvb.subtitle',
+ 'sus' => 'application/vnd.sus-calendar',
+ 'susp' => 'application/vnd.sus-calendar',
+ 'sv4cpio' => 'application/x-sv4cpio',
+ 'sv4crc' => 'application/x-sv4crc',
+ 'svc' => 'application/vnd.dvb.service',
+ 'svd' => 'application/vnd.svd',
+ 'svg' => 'image/svg+xml',
+ 'svgz' => 'image/svg+xml',
+ 'swa' => 'application/x-director',
+ 'swf' => 'application/x-shockwave-flash',
+ 'swi' => 'application/vnd.aristanetworks.swi',
+ 'sxc' => 'application/vnd.sun.xml.calc',
+ 'sxd' => 'application/vnd.sun.xml.draw',
+ 'sxg' => 'application/vnd.sun.xml.writer.global',
+ 'sxi' => 'application/vnd.sun.xml.impress',
+ 'sxm' => 'application/vnd.sun.xml.math',
+ 'sxw' => 'application/vnd.sun.xml.writer',
+ 't' => 'text/troff',
+ 'tao' => 'application/vnd.tao.intent-module-archive',
+ 'tar' => 'application/x-tar',
+ 'tcap' => 'application/vnd.3gpp2.tcap',
+ 'tcl' => 'application/x-tcl',
+ 'teacher' => 'application/vnd.smart.teacher',
+ 'tei' => 'application/tei+xml',
+ 'teicorpus' => 'application/tei+xml',
+ 'tex' => 'application/x-tex',
+ 'texi' => 'application/x-texinfo',
+ 'texinfo' => 'application/x-texinfo',
+ 'text' => 'text/plain',
+ 'tfi' => 'application/thraud+xml',
+ 'tfm' => 'application/x-tex-tfm',
+ 'thmx' => 'application/vnd.ms-officetheme',
+ 'tif' => 'image/tiff',
+ 'tiff' => 'image/tiff',
+ 'tmo' => 'application/vnd.tmobile-livetv',
+ 'torrent' => 'application/x-bittorrent',
+ 'tpl' => 'application/vnd.groove-tool-template',
+ 'tpt' => 'application/vnd.trid.tpt',
+ 'tr' => 'text/troff',
+ 'tra' => 'application/vnd.trueapp',
+ 'trm' => 'application/x-msterminal',
+ 'tsd' => 'application/timestamped-data',
+ 'tsv' => 'text/tab-separated-values',
+ 'ttc' => 'application/x-font-ttf',
+ 'ttf' => 'application/x-font-ttf',
+ 'ttl' => 'text/turtle',
+ 'twd' => 'application/vnd.simtech-mindmapper',
+ 'twds' => 'application/vnd.simtech-mindmapper',
+ 'txd' => 'application/vnd.genomatix.tuxedo',
+ 'txf' => 'application/vnd.mobius.txf',
+ 'txt' => 'text/plain',
+ 'u32' => 'application/x-authorware-bin',
+ 'udeb' => 'application/x-debian-package',
+ 'ufd' => 'application/vnd.ufdl',
+ 'ufdl' => 'application/vnd.ufdl',
+ 'umj' => 'application/vnd.umajin',
+ 'unityweb' => 'application/vnd.unity',
+ 'uoml' => 'application/vnd.uoml+xml',
+ 'uri' => 'text/uri-list',
+ 'uris' => 'text/uri-list',
+ 'urls' => 'text/uri-list',
+ 'ustar' => 'application/x-ustar',
+ 'utz' => 'application/vnd.uiq.theme',
+ 'uu' => 'text/x-uuencode',
+ 'uva' => 'audio/vnd.dece.audio',
+ 'uvd' => 'application/vnd.dece.data',
+ 'uvf' => 'application/vnd.dece.data',
+ 'uvg' => 'image/vnd.dece.graphic',
+ 'uvh' => 'video/vnd.dece.hd',
+ 'uvi' => 'image/vnd.dece.graphic',
+ 'uvm' => 'video/vnd.dece.mobile',
+ 'uvp' => 'video/vnd.dece.pd',
+ 'uvs' => 'video/vnd.dece.sd',
+ 'uvt' => 'application/vnd.dece.ttml+xml',
+ 'uvu' => 'video/vnd.uvvu.mp4',
+ 'uvv' => 'video/vnd.dece.video',
+ 'uvva' => 'audio/vnd.dece.audio',
+ 'uvvd' => 'application/vnd.dece.data',
+ 'uvvf' => 'application/vnd.dece.data',
+ 'uvvg' => 'image/vnd.dece.graphic',
+ 'uvvh' => 'video/vnd.dece.hd',
+ 'uvvi' => 'image/vnd.dece.graphic',
+ 'uvvm' => 'video/vnd.dece.mobile',
+ 'uvvp' => 'video/vnd.dece.pd',
+ 'uvvs' => 'video/vnd.dece.sd',
+ 'uvvt' => 'application/vnd.dece.ttml+xml',
+ 'uvvu' => 'video/vnd.uvvu.mp4',
+ 'uvvv' => 'video/vnd.dece.video',
+ 'uvvx' => 'application/vnd.dece.unspecified',
+ 'uvx' => 'application/vnd.dece.unspecified',
+ 'vcd' => 'application/x-cdlink',
+ 'vcf' => 'text/x-vcard',
+ 'vcg' => 'application/vnd.groove-vcard',
+ 'vcs' => 'text/x-vcalendar',
+ 'vcx' => 'application/vnd.vcx',
+ 'vis' => 'application/vnd.visionary',
+ 'viv' => 'video/vnd.vivo',
+ 'vor' => 'application/vnd.stardivision.writer',
+ 'vox' => 'application/x-authorware-bin',
+ 'vrml' => 'model/vrml',
+ 'vsd' => 'application/vnd.visio',
+ 'vsf' => 'application/vnd.vsf',
+ 'vss' => 'application/vnd.visio',
+ 'vst' => 'application/vnd.visio',
+ 'vsw' => 'application/vnd.visio',
+ 'vtu' => 'model/vnd.vtu',
+ 'vxml' => 'application/voicexml+xml',
+ 'w3d' => 'application/x-director',
+ 'wad' => 'application/x-doom',
+ 'wav' => 'audio/x-wav',
+ 'wax' => 'audio/x-ms-wax',
+ 'wbmp' => 'image/vnd.wap.wbmp',
+ 'wbs' => 'application/vnd.criticaltools.wbs+xml',
+ 'wbxml' => 'application/vnd.wap.wbxml',
+ 'wcm' => 'application/vnd.ms-works',
+ 'wdb' => 'application/vnd.ms-works',
+ 'weba' => 'audio/webm',
+ 'webm' => 'video/webm',
+ 'webp' => 'image/webp',
+ 'wg' => 'application/vnd.pmi.widget',
+ 'wgt' => 'application/widget',
+ 'wks' => 'application/vnd.ms-works',
+ 'wm' => 'video/x-ms-wm',
+ 'wma' => 'audio/x-ms-wma',
+ 'wmd' => 'application/x-ms-wmd',
+ 'wmf' => 'application/x-msmetafile',
+ 'wml' => 'text/vnd.wap.wml',
+ 'wmlc' => 'application/vnd.wap.wmlc',
+ 'wmls' => 'text/vnd.wap.wmlscript',
+ 'wmlsc' => 'application/vnd.wap.wmlscriptc',
+ 'wmv' => 'video/x-ms-wmv',
+ 'wmx' => 'video/x-ms-wmx',
+ 'wmz' => 'application/x-ms-wmz',
+ 'woff' => 'application/x-font-woff',
+ 'wpd' => 'application/vnd.wordperfect',
+ 'wpl' => 'application/vnd.ms-wpl',
+ 'wps' => 'application/vnd.ms-works',
+ 'wqd' => 'application/vnd.wqd',
+ 'wri' => 'application/x-mswrite',
+ 'wrl' => 'model/vrml',
+ 'wsdl' => 'application/wsdl+xml',
+ 'wspolicy' => 'application/wspolicy+xml',
+ 'wtb' => 'application/vnd.webturbo',
+ 'wvx' => 'video/x-ms-wvx',
+ 'x32' => 'application/x-authorware-bin',
+ 'x3d' => 'application/vnd.hzn-3d-crossword',
+ 'xap' => 'application/x-silverlight-app',
+ 'xar' => 'application/vnd.xara',
+ 'xbap' => 'application/x-ms-xbap',
+ 'xbd' => 'application/vnd.fujixerox.docuworks.binder',
+ 'xbm' => 'image/x-xbitmap',
+ 'xdf' => 'application/xcap-diff+xml',
+ 'xdm' => 'application/vnd.syncml.dm+xml',
+ 'xdp' => 'application/vnd.adobe.xdp+xml',
+ 'xdssc' => 'application/dssc+xml',
+ 'xdw' => 'application/vnd.fujixerox.docuworks',
+ 'xenc' => 'application/xenc+xml',
+ 'xer' => 'application/patch-ops-error+xml',
+ 'xfdf' => 'application/vnd.adobe.xfdf',
+ 'xfdl' => 'application/vnd.xfdl',
+ 'xht' => 'application/xhtml+xml',
+ 'xhtml' => 'application/xhtml+xml',
+ 'xhvml' => 'application/xv+xml',
+ 'xif' => 'image/vnd.xiff',
+ 'xla' => 'application/vnd.ms-excel',
+ 'xlam' => 'application/vnd.ms-excel.addin.macroenabled.12',
+ 'xlc' => 'application/vnd.ms-excel',
+ 'xlm' => 'application/vnd.ms-excel',
+ 'xls' => 'application/vnd.ms-excel',
+ 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroenabled.12',
+ 'xlsm' => 'application/vnd.ms-excel.sheet.macroenabled.12',
+ 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
+ 'xlt' => 'application/vnd.ms-excel',
+ 'xltm' => 'application/vnd.ms-excel.template.macroenabled.12',
+ 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
+ 'xlw' => 'application/vnd.ms-excel',
+ 'xml' => 'application/xml',
+ 'xo' => 'application/vnd.olpc-sugar',
+ 'xop' => 'application/xop+xml',
+ 'xpi' => 'application/x-xpinstall',
+ 'xpm' => 'image/x-xpixmap',
+ 'xpr' => 'application/vnd.is-xpr',
+ 'xps' => 'application/vnd.ms-xpsdocument',
+ 'xpw' => 'application/vnd.intercon.formnet',
+ 'xpx' => 'application/vnd.intercon.formnet',
+ 'xsl' => 'application/xml',
+ 'xslt' => 'application/xslt+xml',
+ 'xsm' => 'application/vnd.syncml+xml',
+ 'xspf' => 'application/xspf+xml',
+ 'xul' => 'application/vnd.mozilla.xul+xml',
+ 'xvm' => 'application/xv+xml',
+ 'xvml' => 'application/xv+xml',
+ 'xwd' => 'image/x-xwindowdump',
+ 'xyz' => 'chemical/x-xyz',
+ 'yaml' => 'text/yaml',
+ 'yang' => 'application/yang',
+ 'yin' => 'application/yin+xml',
+ 'yml' => 'text/yaml',
+ 'zaz' => 'application/vnd.zzazz.deck+xml',
+ 'zip' => 'application/zip',
+ 'zir' => 'application/vnd.zul',
+ 'zirz' => 'application/vnd.zul',
+ 'zmm' => 'application/vnd.handheld-entertainment+xml'
+ ];
+
+ /**
+ * Get a singleton instance of the class
+ *
+ * @return self
+ * @codeCoverageIgnore
+ */
+ public static function getInstance()
+ {
+ if (!self::$instance) {
+ self::$instance = new self();
+ }
+
+ return self::$instance;
+ }
+
+ /**
+ * Get a mimetype value from a file extension
+ *
+ * @param string $extension File extension
+ *
+ * @return string|null
+ */
+ public function fromExtension($extension)
+ {
+ $extension = strtolower($extension);
+
+ return isset($this->mimetypes[$extension]) ? $this->mimetypes[$extension] : null;
+ }
+
+ /**
+ * Get a mimetype from a filename
+ *
+ * @param string $filename Filename to generate a mimetype from
+ *
+ * @return string|null
+ */
+ public function fromFilename($filename)
+ {
+ return $this->fromExtension(pathinfo($filename, PATHINFO_EXTENSION));
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/Birthday.php b/mayor-orig/www/include/share/facebook/GraphNodes/Birthday.php
new file mode 100644
index 00000000..4338b65e
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/Birthday.php
@@ -0,0 +1,85 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+use DateTime;
+
+/**
+ * Birthday object to handle various Graph return formats
+ *
+ * @package Facebook
+ */
+class Birthday extends DateTime
+{
+ /**
+ * @var bool
+ */
+ private $hasDate = false;
+
+ /**
+ * @var bool
+ */
+ private $hasYear = false;
+
+ /**
+ * Parses Graph birthday format to set indication flags, possible values:
+ *
+ * MM/DD/YYYY
+ * MM/DD
+ * YYYY
+ *
+ * @link https://developers.facebook.com/docs/graph-api/reference/user
+ *
+ * @param string $date
+ */
+ public function __construct($date)
+ {
+ $parts = explode('/', $date);
+
+ $this->hasYear = count($parts) === 3 || count($parts) === 1;
+ $this->hasDate = count($parts) === 3 || count($parts) === 2;
+
+ parent::__construct($date);
+ }
+
+ /**
+ * Returns whether date object contains birth day and month
+ *
+ * @return bool
+ */
+ public function hasDate()
+ {
+ return $this->hasDate;
+ }
+
+ /**
+ * Returns whether date object contains birth year
+ *
+ * @return bool
+ */
+ public function hasYear()
+ {
+ return $this->hasYear;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/Collection.php b/mayor-orig/www/include/share/facebook/GraphNodes/Collection.php
new file mode 100644
index 00000000..424b7cf3
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/Collection.php
@@ -0,0 +1,242 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class Collection
+ *
+ * Modified version of Collection in "illuminate/support" by Taylor Otwell
+ *
+ * @package Facebook
+ */
+
+use ArrayAccess;
+use ArrayIterator;
+use Countable;
+use IteratorAggregate;
+
+class Collection implements ArrayAccess, Countable, IteratorAggregate
+{
+ /**
+ * The items contained in the collection.
+ *
+ * @var array
+ */
+ protected $items = [];
+
+ /**
+ * Create a new collection.
+ *
+ * @param array $items
+ */
+ public function __construct(array $items = [])
+ {
+ $this->items = $items;
+ }
+
+ /**
+ * Gets the value of a field from the Graph node.
+ *
+ * @param string $name The field to retrieve.
+ * @param mixed $default The default to return if the field doesn't exist.
+ *
+ * @return mixed
+ */
+ public function getField($name, $default = null)
+ {
+ if (isset($this->items[$name])) {
+ return $this->items[$name];
+ }
+
+ return $default;
+ }
+
+ /**
+ * Gets the value of the named property for this graph object.
+ *
+ * @param string $name The property to retrieve.
+ * @param mixed $default The default to return if the property doesn't exist.
+ *
+ * @return mixed
+ *
+ * @deprecated 5.0.0 getProperty() has been renamed to getField()
+ * @todo v6: Remove this method
+ */
+ public function getProperty($name, $default = null)
+ {
+ return $this->getField($name, $default);
+ }
+
+ /**
+ * Returns a list of all fields set on the object.
+ *
+ * @return array
+ */
+ public function getFieldNames()
+ {
+ return array_keys($this->items);
+ }
+
+ /**
+ * Returns a list of all properties set on the object.
+ *
+ * @return array
+ *
+ * @deprecated 5.0.0 getPropertyNames() has been renamed to getFieldNames()
+ * @todo v6: Remove this method
+ */
+ public function getPropertyNames()
+ {
+ return $this->getFieldNames();
+ }
+
+ /**
+ * Get all of the items in the collection.
+ *
+ * @return array
+ */
+ public function all()
+ {
+ return $this->items;
+ }
+
+ /**
+ * Get the collection of items as a plain array.
+ *
+ * @return array
+ */
+ public function asArray()
+ {
+ return array_map(function ($value) {
+ return $value instanceof Collection ? $value->asArray() : $value;
+ }, $this->items);
+ }
+
+ /**
+ * Run a map over each of the items.
+ *
+ * @param \Closure $callback
+ *
+ * @return static
+ */
+ public function map(\Closure $callback)
+ {
+ return new static(array_map($callback, $this->items, array_keys($this->items)));
+ }
+
+ /**
+ * Get the collection of items as JSON.
+ *
+ * @param int $options
+ *
+ * @return string
+ */
+ public function asJson($options = 0)
+ {
+ return json_encode($this->asArray(), $options);
+ }
+
+ /**
+ * Count the number of items in the collection.
+ *
+ * @return int
+ */
+ public function count()
+ {
+ return count($this->items);
+ }
+
+ /**
+ * Get an iterator for the items.
+ *
+ * @return ArrayIterator
+ */
+ public function getIterator()
+ {
+ return new ArrayIterator($this->items);
+ }
+
+ /**
+ * Determine if an item exists at an offset.
+ *
+ * @param mixed $key
+ *
+ * @return bool
+ */
+ public function offsetExists($key)
+ {
+ return array_key_exists($key, $this->items);
+ }
+
+ /**
+ * Get an item at a given offset.
+ *
+ * @param mixed $key
+ *
+ * @return mixed
+ */
+ public function offsetGet($key)
+ {
+ return $this->items[$key];
+ }
+
+ /**
+ * Set the item at a given offset.
+ *
+ * @param mixed $key
+ * @param mixed $value
+ *
+ * @return void
+ */
+ public function offsetSet($key, $value)
+ {
+ if (is_null($key)) {
+ $this->items[] = $value;
+ } else {
+ $this->items[$key] = $value;
+ }
+ }
+
+ /**
+ * Unset the item at a given offset.
+ *
+ * @param string $key
+ *
+ * @return void
+ */
+ public function offsetUnset($key)
+ {
+ unset($this->items[$key]);
+ }
+
+ /**
+ * Convert the collection to its string representation.
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return $this->asJson();
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphAchievement.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphAchievement.php
new file mode 100644
index 00000000..31508ee4
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphAchievement.php
@@ -0,0 +1,112 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphAchievement
+ *
+ * @package Facebook
+ */
+class GraphAchievement extends GraphNode
+{
+ /**
+ * @var array Maps object key names to Graph object types.
+ */
+ protected static $graphObjectMap = [
+ 'from' => '\Facebook\GraphNodes\GraphUser',
+ 'application' => '\Facebook\GraphNodes\GraphApplication',
+ ];
+
+ /**
+ * Returns the ID for the achievement.
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+
+ /**
+ * Returns the user who achieved this.
+ *
+ * @return GraphUser|null
+ */
+ public function getFrom()
+ {
+ return $this->getField('from');
+ }
+
+ /**
+ * Returns the time at which this was achieved.
+ *
+ * @return \DateTime|null
+ */
+ public function getPublishTime()
+ {
+ return $this->getField('publish_time');
+ }
+
+ /**
+ * Returns the app in which the user achieved this.
+ *
+ * @return GraphApplication|null
+ */
+ public function getApplication()
+ {
+ return $this->getField('application');
+ }
+
+ /**
+ * Returns information about the achievement type this instance is connected with.
+ *
+ * @return array|null
+ */
+ public function getData()
+ {
+ return $this->getField('data');
+ }
+
+ /**
+ * Returns the type of achievement.
+ *
+ * @see https://developers.facebook.com/docs/graph-api/reference/achievement
+ *
+ * @return string
+ */
+ public function getType()
+ {
+ return 'game.achievement';
+ }
+
+ /**
+ * Indicates whether gaining the achievement published a feed story for the user.
+ *
+ * @return boolean|null
+ */
+ public function isNoFeedStory()
+ {
+ return $this->getField('no_feed_story');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphAlbum.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphAlbum.php
new file mode 100644
index 00000000..52f19b51
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphAlbum.php
@@ -0,0 +1,183 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphAlbum
+ *
+ * @package Facebook
+ */
+
+class GraphAlbum extends GraphNode
+{
+ /**
+ * @var array Maps object key names to Graph object types.
+ */
+ protected static $graphObjectMap = [
+ 'from' => '\Facebook\GraphNodes\GraphUser',
+ 'place' => '\Facebook\GraphNodes\GraphPage',
+ ];
+
+ /**
+ * Returns the ID for the album.
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+
+ /**
+ * Returns whether the viewer can upload photos to this album.
+ *
+ * @return boolean|null
+ */
+ public function getCanUpload()
+ {
+ return $this->getField('can_upload');
+ }
+
+ /**
+ * Returns the number of photos in this album.
+ *
+ * @return int|null
+ */
+ public function getCount()
+ {
+ return $this->getField('count');
+ }
+
+ /**
+ * Returns the ID of the album's cover photo.
+ *
+ * @return string|null
+ */
+ public function getCoverPhoto()
+ {
+ return $this->getField('cover_photo');
+ }
+
+ /**
+ * Returns the time the album was initially created.
+ *
+ * @return \DateTime|null
+ */
+ public function getCreatedTime()
+ {
+ return $this->getField('created_time');
+ }
+
+ /**
+ * Returns the time the album was updated.
+ *
+ * @return \DateTime|null
+ */
+ public function getUpdatedTime()
+ {
+ return $this->getField('updated_time');
+ }
+
+ /**
+ * Returns the description of the album.
+ *
+ * @return string|null
+ */
+ public function getDescription()
+ {
+ return $this->getField('description');
+ }
+
+ /**
+ * Returns profile that created the album.
+ *
+ * @return GraphUser|null
+ */
+ public function getFrom()
+ {
+ return $this->getField('from');
+ }
+
+ /**
+ * Returns profile that created the album.
+ *
+ * @return GraphPage|null
+ */
+ public function getPlace()
+ {
+ return $this->getField('place');
+ }
+
+ /**
+ * Returns a link to this album on Facebook.
+ *
+ * @return string|null
+ */
+ public function getLink()
+ {
+ return $this->getField('link');
+ }
+
+ /**
+ * Returns the textual location of the album.
+ *
+ * @return string|null
+ */
+ public function getLocation()
+ {
+ return $this->getField('location');
+ }
+
+ /**
+ * Returns the title of the album.
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->getField('name');
+ }
+
+ /**
+ * Returns the privacy settings for the album.
+ *
+ * @return string|null
+ */
+ public function getPrivacy()
+ {
+ return $this->getField('privacy');
+ }
+
+ /**
+ * Returns the type of the album.
+ *
+ * enum{ profile, mobile, wall, normal, album }
+ *
+ * @return string|null
+ */
+ public function getType()
+ {
+ return $this->getField('type');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphApplication.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphApplication.php
new file mode 100644
index 00000000..aa07c825
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphApplication.php
@@ -0,0 +1,43 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphApplication
+ *
+ * @package Facebook
+ */
+
+class GraphApplication extends GraphNode
+{
+ /**
+ * Returns the ID for the application.
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphCoverPhoto.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphCoverPhoto.php
new file mode 100644
index 00000000..824275bb
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphCoverPhoto.php
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphCoverPhoto
+ *
+ * @package Facebook
+ */
+class GraphCoverPhoto extends GraphNode
+{
+ /**
+ * Returns the id of cover if it exists
+ *
+ * @return int|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+
+ /**
+ * Returns the source of cover if it exists
+ *
+ * @return string|null
+ */
+ public function getSource()
+ {
+ return $this->getField('source');
+ }
+
+ /**
+ * Returns the offset_x of cover if it exists
+ *
+ * @return int|null
+ */
+ public function getOffsetX()
+ {
+ return $this->getField('offset_x');
+ }
+
+ /**
+ * Returns the offset_y of cover if it exists
+ *
+ * @return int|null
+ */
+ public function getOffsetY()
+ {
+ return $this->getField('offset_y');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphEdge.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphEdge.php
new file mode 100644
index 00000000..f6f4970c
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphEdge.php
@@ -0,0 +1,252 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+use Facebook\FacebookRequest;
+use Facebook\Url\FacebookUrlManipulator;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class GraphEdge
+ *
+ * @package Facebook
+ */
+class GraphEdge extends Collection
+{
+ /**
+ * @var FacebookRequest The original request that generated this data.
+ */
+ protected $request;
+
+ /**
+ * @var array An array of Graph meta data like pagination, etc.
+ */
+ protected $metaData = [];
+
+ /**
+ * @var string|null The parent Graph edge endpoint that generated the list.
+ */
+ protected $parentEdgeEndpoint;
+
+ /**
+ * @var string|null The subclass of the child GraphNode's.
+ */
+ protected $subclassName;
+
+ /**
+ * Init this collection of GraphNode's.
+ *
+ * @param FacebookRequest $request The original request that generated this data.
+ * @param array $data An array of GraphNode's.
+ * @param array $metaData An array of Graph meta data like pagination, etc.
+ * @param string|null $parentEdgeEndpoint The parent Graph edge endpoint that generated the list.
+ * @param string|null $subclassName The subclass of the child GraphNode's.
+ */
+ public function __construct(FacebookRequest $request, array $data = [], array $metaData = [], $parentEdgeEndpoint = null, $subclassName = null)
+ {
+ $this->request = $request;
+ $this->metaData = $metaData;
+ $this->parentEdgeEndpoint = $parentEdgeEndpoint;
+ $this->subclassName = $subclassName;
+
+ parent::__construct($data);
+ }
+
+ /**
+ * Gets the parent Graph edge endpoint that generated the list.
+ *
+ * @return string|null
+ */
+ public function getParentGraphEdge()
+ {
+ return $this->parentEdgeEndpoint;
+ }
+
+ /**
+ * Gets the subclass name that the child GraphNode's are cast as.
+ *
+ * @return string|null
+ */
+ public function getSubClassName()
+ {
+ return $this->subclassName;
+ }
+
+ /**
+ * Returns the raw meta data associated with this GraphEdge.
+ *
+ * @return array
+ */
+ public function getMetaData()
+ {
+ return $this->metaData;
+ }
+
+ /**
+ * Returns the next cursor if it exists.
+ *
+ * @return string|null
+ */
+ public function getNextCursor()
+ {
+ return $this->getCursor('after');
+ }
+
+ /**
+ * Returns the previous cursor if it exists.
+ *
+ * @return string|null
+ */
+ public function getPreviousCursor()
+ {
+ return $this->getCursor('before');
+ }
+
+ /**
+ * Returns the cursor for a specific direction if it exists.
+ *
+ * @param string $direction The direction of the page: after|before
+ *
+ * @return string|null
+ */
+ public function getCursor($direction)
+ {
+ if (isset($this->metaData['paging']['cursors'][$direction])) {
+ return $this->metaData['paging']['cursors'][$direction];
+ }
+
+ return null;
+ }
+
+ /**
+ * Generates a pagination URL based on a cursor.
+ *
+ * @param string $direction The direction of the page: next|previous
+ *
+ * @return string|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function getPaginationUrl($direction)
+ {
+ $this->validateForPagination();
+
+ // Do we have a paging URL?
+ if (!isset($this->metaData['paging'][$direction])) {
+ return null;
+ }
+
+ $pageUrl = $this->metaData['paging'][$direction];
+
+ return FacebookUrlManipulator::baseGraphUrlEndpoint($pageUrl);
+ }
+
+ /**
+ * Validates whether or not we can paginate on this request.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateForPagination()
+ {
+ if ($this->request->getMethod() !== 'GET') {
+ throw new FacebookSDKException('You can only paginate on a GET request.', 720);
+ }
+ }
+
+ /**
+ * Gets the request object needed to make a next|previous page request.
+ *
+ * @param string $direction The direction of the page: next|previous
+ *
+ * @return FacebookRequest|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function getPaginationRequest($direction)
+ {
+ $pageUrl = $this->getPaginationUrl($direction);
+ if (!$pageUrl) {
+ return null;
+ }
+
+ $newRequest = clone $this->request;
+ $newRequest->setEndpoint($pageUrl);
+
+ return $newRequest;
+ }
+
+ /**
+ * Gets the request object needed to make a "next" page request.
+ *
+ * @return FacebookRequest|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function getNextPageRequest()
+ {
+ return $this->getPaginationRequest('next');
+ }
+
+ /**
+ * Gets the request object needed to make a "previous" page request.
+ *
+ * @return FacebookRequest|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function getPreviousPageRequest()
+ {
+ return $this->getPaginationRequest('previous');
+ }
+
+ /**
+ * The total number of results according to Graph if it exists.
+ *
+ * This will be returned if the summary=true modifier is present in the request.
+ *
+ * @return int|null
+ */
+ public function getTotalCount()
+ {
+ if (isset($this->metaData['summary']['total_count'])) {
+ return $this->metaData['summary']['total_count'];
+ }
+
+ return null;
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function map(\Closure $callback)
+ {
+ return new static(
+ $this->request,
+ array_map($callback, $this->items, array_keys($this->items)),
+ $this->metaData,
+ $this->parentEdgeEndpoint,
+ $this->subclassName
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphEvent.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphEvent.php
new file mode 100644
index 00000000..a470d89f
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphEvent.php
@@ -0,0 +1,242 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphEvent
+ *
+ * @package Facebook
+ */
+class GraphEvent extends GraphNode
+{
+ /**
+ * @var array Maps object key names to GraphNode types.
+ */
+ protected static $graphObjectMap = [
+ 'cover' => '\Facebook\GraphNodes\GraphCoverPhoto',
+ 'place' => '\Facebook\GraphNodes\GraphPage',
+ 'picture' => '\Facebook\GraphNodes\GraphPicture',
+ 'parent_group' => '\Facebook\GraphNodes\GraphGroup',
+ ];
+
+ /**
+ * Returns the `id` (The event ID) as string if present.
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+
+ /**
+ * Returns the `cover` (Cover picture) as GraphCoverPhoto if present.
+ *
+ * @return GraphCoverPhoto|null
+ */
+ public function getCover()
+ {
+ return $this->getField('cover');
+ }
+
+ /**
+ * Returns the `description` (Long-form description) as string if present.
+ *
+ * @return string|null
+ */
+ public function getDescription()
+ {
+ return $this->getField('description');
+ }
+
+ /**
+ * Returns the `end_time` (End time, if one has been set) as DateTime if present.
+ *
+ * @return \DateTime|null
+ */
+ public function getEndTime()
+ {
+ return $this->getField('end_time');
+ }
+
+ /**
+ * Returns the `is_date_only` (Whether the event only has a date specified, but no time) as bool if present.
+ *
+ * @return bool|null
+ */
+ public function getIsDateOnly()
+ {
+ return $this->getField('is_date_only');
+ }
+
+ /**
+ * Returns the `name` (Event name) as string if present.
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->getField('name');
+ }
+
+ /**
+ * Returns the `owner` (The profile that created the event) as GraphNode if present.
+ *
+ * @return GraphNode|null
+ */
+ public function getOwner()
+ {
+ return $this->getField('owner');
+ }
+
+ /**
+ * Returns the `parent_group` (The group the event belongs to) as GraphGroup if present.
+ *
+ * @return GraphGroup|null
+ */
+ public function getParentGroup()
+ {
+ return $this->getField('parent_group');
+ }
+
+ /**
+ * Returns the `place` (Event Place information) as GraphPage if present.
+ *
+ * @return GraphPage|null
+ */
+ public function getPlace()
+ {
+ return $this->getField('place');
+ }
+
+ /**
+ * Returns the `privacy` (Who can see the event) as string if present.
+ *
+ * @return string|null
+ */
+ public function getPrivacy()
+ {
+ return $this->getField('privacy');
+ }
+
+ /**
+ * Returns the `start_time` (Start time) as DateTime if present.
+ *
+ * @return \DateTime|null
+ */
+ public function getStartTime()
+ {
+ return $this->getField('start_time');
+ }
+
+ /**
+ * Returns the `ticket_uri` (The link users can visit to buy a ticket to this event) as string if present.
+ *
+ * @return string|null
+ */
+ public function getTicketUri()
+ {
+ return $this->getField('ticket_uri');
+ }
+
+ /**
+ * Returns the `timezone` (Timezone) as string if present.
+ *
+ * @return string|null
+ */
+ public function getTimezone()
+ {
+ return $this->getField('timezone');
+ }
+
+ /**
+ * Returns the `updated_time` (Last update time) as DateTime if present.
+ *
+ * @return \DateTime|null
+ */
+ public function getUpdatedTime()
+ {
+ return $this->getField('updated_time');
+ }
+
+ /**
+ * Returns the `picture` (Event picture) as GraphPicture if present.
+ *
+ * @return GraphPicture|null
+ */
+ public function getPicture()
+ {
+ return $this->getField('picture');
+ }
+
+ /**
+ * Returns the `attending_count` (Number of people attending the event) as int if present.
+ *
+ * @return int|null
+ */
+ public function getAttendingCount()
+ {
+ return $this->getField('attending_count');
+ }
+
+ /**
+ * Returns the `declined_count` (Number of people who declined the event) as int if present.
+ *
+ * @return int|null
+ */
+ public function getDeclinedCount()
+ {
+ return $this->getField('declined_count');
+ }
+
+ /**
+ * Returns the `maybe_count` (Number of people who maybe going to the event) as int if present.
+ *
+ * @return int|null
+ */
+ public function getMaybeCount()
+ {
+ return $this->getField('maybe_count');
+ }
+
+ /**
+ * Returns the `noreply_count` (Number of people who did not reply to the event) as int if present.
+ *
+ * @return int|null
+ */
+ public function getNoreplyCount()
+ {
+ return $this->getField('noreply_count');
+ }
+
+ /**
+ * Returns the `invited_count` (Number of people invited to the event) as int if present.
+ *
+ * @return int|null
+ */
+ public function getInvitedCount()
+ {
+ return $this->getField('invited_count');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphGroup.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphGroup.php
new file mode 100644
index 00000000..6217bd4d
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphGroup.php
@@ -0,0 +1,170 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphGroup
+ *
+ * @package Facebook
+ */
+class GraphGroup extends GraphNode
+{
+ /**
+ * @var array Maps object key names to GraphNode types.
+ */
+ protected static $graphObjectMap = [
+ 'cover' => '\Facebook\GraphNodes\GraphCoverPhoto',
+ 'venue' => '\Facebook\GraphNodes\GraphLocation',
+ ];
+
+ /**
+ * Returns the `id` (The Group ID) as string if present.
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+
+ /**
+ * Returns the `cover` (The cover photo of the Group) as GraphCoverPhoto if present.
+ *
+ * @return GraphCoverPhoto|null
+ */
+ public function getCover()
+ {
+ return $this->getField('cover');
+ }
+
+ /**
+ * Returns the `description` (A brief description of the Group) as string if present.
+ *
+ * @return string|null
+ */
+ public function getDescription()
+ {
+ return $this->getField('description');
+ }
+
+ /**
+ * Returns the `email` (The email address to upload content to the Group. Only current members of the Group can use this) as string if present.
+ *
+ * @return string|null
+ */
+ public function getEmail()
+ {
+ return $this->getField('email');
+ }
+
+ /**
+ * Returns the `icon` (The URL for the Group's icon) as string if present.
+ *
+ * @return string|null
+ */
+ public function getIcon()
+ {
+ return $this->getField('icon');
+ }
+
+ /**
+ * Returns the `link` (The Group's website) as string if present.
+ *
+ * @return string|null
+ */
+ public function getLink()
+ {
+ return $this->getField('link');
+ }
+
+ /**
+ * Returns the `name` (The name of the Group) as string if present.
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->getField('name');
+ }
+
+ /**
+ * Returns the `member_request_count` (Number of people asking to join the group.) as int if present.
+ *
+ * @return int|null
+ */
+ public function getMemberRequestCount()
+ {
+ return $this->getField('member_request_count');
+ }
+
+ /**
+ * Returns the `owner` (The profile that created this Group) as GraphNode if present.
+ *
+ * @return GraphNode|null
+ */
+ public function getOwner()
+ {
+ return $this->getField('owner');
+ }
+
+ /**
+ * Returns the `parent` (The parent Group of this Group, if it exists) as GraphNode if present.
+ *
+ * @return GraphNode|null
+ */
+ public function getParent()
+ {
+ return $this->getField('parent');
+ }
+
+ /**
+ * Returns the `privacy` (The privacy setting of the Group) as string if present.
+ *
+ * @return string|null
+ */
+ public function getPrivacy()
+ {
+ return $this->getField('privacy');
+ }
+
+ /**
+ * Returns the `updated_time` (The last time the Group was updated (this includes changes in the Group's properties and changes in posts and comments if user can see them)) as \DateTime if present.
+ *
+ * @return \DateTime|null
+ */
+ public function getUpdatedTime()
+ {
+ return $this->getField('updated_time');
+ }
+
+ /**
+ * Returns the `venue` (The location for the Group) as GraphLocation if present.
+ *
+ * @return GraphLocation|null
+ */
+ public function getVenue()
+ {
+ return $this->getField('venue');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphList.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphList.php
new file mode 100644
index 00000000..3dfbd497
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphList.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphList
+ *
+ * @package Facebook
+ *
+ * @deprecated 5.0.0 GraphList has been renamed to GraphEdge
+ * @todo v6: Remove this class
+ */
+class GraphList extends GraphEdge
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphLocation.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphLocation.php
new file mode 100644
index 00000000..29215aa7
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphLocation.php
@@ -0,0 +1,102 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphLocation
+ *
+ * @package Facebook
+ */
+class GraphLocation extends GraphNode
+{
+ /**
+ * Returns the street component of the location
+ *
+ * @return string|null
+ */
+ public function getStreet()
+ {
+ return $this->getField('street');
+ }
+
+ /**
+ * Returns the city component of the location
+ *
+ * @return string|null
+ */
+ public function getCity()
+ {
+ return $this->getField('city');
+ }
+
+ /**
+ * Returns the state component of the location
+ *
+ * @return string|null
+ */
+ public function getState()
+ {
+ return $this->getField('state');
+ }
+
+ /**
+ * Returns the country component of the location
+ *
+ * @return string|null
+ */
+ public function getCountry()
+ {
+ return $this->getField('country');
+ }
+
+ /**
+ * Returns the zipcode component of the location
+ *
+ * @return string|null
+ */
+ public function getZip()
+ {
+ return $this->getField('zip');
+ }
+
+ /**
+ * Returns the latitude component of the location
+ *
+ * @return float|null
+ */
+ public function getLatitude()
+ {
+ return $this->getField('latitude');
+ }
+
+ /**
+ * Returns the street component of the location
+ *
+ * @return float|null
+ */
+ public function getLongitude()
+ {
+ return $this->getField('longitude');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php
new file mode 100644
index 00000000..061e7449
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphNode.php
@@ -0,0 +1,197 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphNode
+ *
+ * @package Facebook
+ */
+class GraphNode extends Collection
+{
+ /**
+ * @var array Maps object key names to Graph object types.
+ */
+ protected static $graphObjectMap = [];
+
+ /**
+ * Init this Graph object.
+ *
+ * @param array $data
+ */
+ public function __construct(array $data = [])
+ {
+ parent::__construct($this->castItems($data));
+ }
+
+ /**
+ * Iterates over an array and detects the types each node
+ * should be cast to and returns all the items as an array.
+ *
+ * @TODO Add auto-casting to AccessToken entities.
+ *
+ * @param array $data The array to iterate over.
+ *
+ * @return array
+ */
+ public function castItems(array $data)
+ {
+ $items = [];
+
+ foreach ($data as $k => $v) {
+ if ($this->shouldCastAsDateTime($k)
+ && (is_numeric($v)
+ || $this->isIso8601DateString($v))
+ ) {
+ $items[$k] = $this->castToDateTime($v);
+ } elseif ($k === 'birthday') {
+ $items[$k] = $this->castToBirthday($v);
+ } else {
+ $items[$k] = $v;
+ }
+ }
+
+ return $items;
+ }
+
+ /**
+ * Uncasts any auto-casted datatypes.
+ * Basically the reverse of castItems().
+ *
+ * @return array
+ */
+ public function uncastItems()
+ {
+ $items = $this->asArray();
+
+ return array_map(function ($v) {
+ if ($v instanceof \DateTime) {
+ return $v->format(\DateTime::ISO8601);
+ }
+
+ return $v;
+ }, $items);
+ }
+
+ /**
+ * Get the collection of items as JSON.
+ *
+ * @param int $options
+ *
+ * @return string
+ */
+ public function asJson($options = 0)
+ {
+ return json_encode($this->uncastItems(), $options);
+ }
+
+ /**
+ * Detects an ISO 8601 formatted string.
+ *
+ * @param string $string
+ *
+ * @return boolean
+ *
+ * @see https://developers.facebook.com/docs/graph-api/using-graph-api/#readmodifiers
+ * @see http://www.cl.cam.ac.uk/~mgk25/iso-time.html
+ * @see http://en.wikipedia.org/wiki/ISO_8601
+ */
+ public function isIso8601DateString($string)
+ {
+ // This insane regex was yoinked from here:
+ // http://www.pelagodesign.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
+ // ...and I'm all like:
+ // http://thecodinglove.com/post/95378251969/when-code-works-and-i-dont-know-why
+ $crazyInsaneRegexThatSomehowDetectsIso8601 = '/^([\+-]?\d{4}(?!\d{2}\b))'
+ . '((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?'
+ . '|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d'
+ . '|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])'
+ . '((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d'
+ . '([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/';
+
+ return preg_match($crazyInsaneRegexThatSomehowDetectsIso8601, $string) === 1;
+ }
+
+ /**
+ * Determines if a value from Graph should be cast to DateTime.
+ *
+ * @param string $key
+ *
+ * @return boolean
+ */
+ public function shouldCastAsDateTime($key)
+ {
+ return in_array($key, [
+ 'created_time',
+ 'updated_time',
+ 'start_time',
+ 'end_time',
+ 'backdated_time',
+ 'issued_at',
+ 'expires_at',
+ 'publish_time'
+ ], true);
+ }
+
+ /**
+ * Casts a date value from Graph to DateTime.
+ *
+ * @param int|string $value
+ *
+ * @return \DateTime
+ */
+ public function castToDateTime($value)
+ {
+ if (is_int($value)) {
+ $dt = new \DateTime();
+ $dt->setTimestamp($value);
+ } else {
+ $dt = new \DateTime($value);
+ }
+
+ return $dt;
+ }
+
+ /**
+ * Casts a birthday value from Graph to Birthday
+ *
+ * @param string $value
+ *
+ * @return Birthday
+ */
+ public function castToBirthday($value)
+ {
+ return new Birthday($value);
+ }
+
+ /**
+ * Getter for $graphObjectMap.
+ *
+ * @return array
+ */
+ public static function getObjectMap()
+ {
+ return static::$graphObjectMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphNodeFactory.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphNodeFactory.php
new file mode 100644
index 00000000..6a370919
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphNodeFactory.php
@@ -0,0 +1,392 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+use Facebook\FacebookResponse;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class GraphNodeFactory
+ *
+ * @package Facebook
+ *
+ * ## Assumptions ##
+ * GraphEdge - is ALWAYS a numeric array
+ * GraphEdge - is ALWAYS an array of GraphNode types
+ * GraphNode - is ALWAYS an associative array
+ * GraphNode - MAY contain GraphNode's "recurrable"
+ * GraphNode - MAY contain GraphEdge's "recurrable"
+ * GraphNode - MAY contain DateTime's "primitives"
+ * GraphNode - MAY contain string's "primitives"
+ */
+class GraphNodeFactory
+{
+ /**
+ * @const string The base graph object class.
+ */
+ const BASE_GRAPH_NODE_CLASS = '\Facebook\GraphNodes\GraphNode';
+
+ /**
+ * @const string The base graph edge class.
+ */
+ const BASE_GRAPH_EDGE_CLASS = '\Facebook\GraphNodes\GraphEdge';
+
+ /**
+ * @const string The graph object prefix.
+ */
+ const BASE_GRAPH_OBJECT_PREFIX = '\Facebook\GraphNodes\\';
+
+ /**
+ * @var FacebookResponse The response entity from Graph.
+ */
+ protected $response;
+
+ /**
+ * @var array The decoded body of the FacebookResponse entity from Graph.
+ */
+ protected $decodedBody;
+
+ /**
+ * Init this Graph object.
+ *
+ * @param FacebookResponse $response The response entity from Graph.
+ */
+ public function __construct(FacebookResponse $response)
+ {
+ $this->response = $response;
+ $this->decodedBody = $response->getDecodedBody();
+ }
+
+ /**
+ * Tries to convert a FacebookResponse entity into a GraphNode.
+ *
+ * @param string|null $subclassName The GraphNode sub class to cast to.
+ *
+ * @return GraphNode
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphNode($subclassName = null)
+ {
+ $this->validateResponseAsArray();
+ $this->validateResponseCastableAsGraphNode();
+
+ return $this->castAsGraphNodeOrGraphEdge($this->decodedBody, $subclassName);
+ }
+
+ /**
+ * Convenience method for creating a GraphAchievement collection.
+ *
+ * @return GraphAchievement
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphAchievement()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphAchievement');
+ }
+
+ /**
+ * Convenience method for creating a GraphAlbum collection.
+ *
+ * @return GraphAlbum
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphAlbum()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphAlbum');
+ }
+
+ /**
+ * Convenience method for creating a GraphPage collection.
+ *
+ * @return GraphPage
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphPage()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphPage');
+ }
+
+ /**
+ * Convenience method for creating a GraphSessionInfo collection.
+ *
+ * @return GraphSessionInfo
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphSessionInfo()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphSessionInfo');
+ }
+
+ /**
+ * Convenience method for creating a GraphUser collection.
+ *
+ * @return GraphUser
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphUser()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphUser');
+ }
+
+ /**
+ * Convenience method for creating a GraphEvent collection.
+ *
+ * @return GraphEvent
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphEvent()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphEvent');
+ }
+
+ /**
+ * Convenience method for creating a GraphGroup collection.
+ *
+ * @return GraphGroup
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphGroup()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphGroup');
+ }
+
+ /**
+ * Tries to convert a FacebookResponse entity into a GraphEdge.
+ *
+ * @param string|null $subclassName The GraphNode sub class to cast the list items to.
+ * @param boolean $auto_prefix Toggle to auto-prefix the subclass name.
+ *
+ * @return GraphEdge
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphEdge($subclassName = null, $auto_prefix = true)
+ {
+ $this->validateResponseAsArray();
+ $this->validateResponseCastableAsGraphEdge();
+
+ if ($subclassName && $auto_prefix) {
+ $subclassName = static::BASE_GRAPH_OBJECT_PREFIX . $subclassName;
+ }
+
+ return $this->castAsGraphNodeOrGraphEdge($this->decodedBody, $subclassName);
+ }
+
+ /**
+ * Validates the decoded body.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateResponseAsArray()
+ {
+ if (!is_array($this->decodedBody)) {
+ throw new FacebookSDKException('Unable to get response from Graph as array.', 620);
+ }
+ }
+
+ /**
+ * Validates that the return data can be cast as a GraphNode.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateResponseCastableAsGraphNode()
+ {
+ if (isset($this->decodedBody['data']) && static::isCastableAsGraphEdge($this->decodedBody['data'])) {
+ throw new FacebookSDKException(
+ 'Unable to convert response from Graph to a GraphNode because the response looks like a GraphEdge. Try using GraphNodeFactory::makeGraphEdge() instead.',
+ 620
+ );
+ }
+ }
+
+ /**
+ * Validates that the return data can be cast as a GraphEdge.
+ *
+ * @throws FacebookSDKException
+ */
+ public function validateResponseCastableAsGraphEdge()
+ {
+ if (!(isset($this->decodedBody['data']) && static::isCastableAsGraphEdge($this->decodedBody['data']))) {
+ throw new FacebookSDKException(
+ 'Unable to convert response from Graph to a GraphEdge because the response does not look like a GraphEdge. Try using GraphNodeFactory::makeGraphNode() instead.',
+ 620
+ );
+ }
+ }
+
+ /**
+ * Safely instantiates a GraphNode of $subclassName.
+ *
+ * @param array $data The array of data to iterate over.
+ * @param string|null $subclassName The subclass to cast this collection to.
+ *
+ * @return GraphNode
+ *
+ * @throws FacebookSDKException
+ */
+ public function safelyMakeGraphNode(array $data, $subclassName = null)
+ {
+ $subclassName = $subclassName ?: static::BASE_GRAPH_NODE_CLASS;
+ static::validateSubclass($subclassName);
+
+ // Remember the parent node ID
+ $parentNodeId = isset($data['id']) ? $data['id'] : null;
+
+ $items = [];
+
+ foreach ($data as $k => $v) {
+ // Array means could be recurable
+ if (is_array($v)) {
+ // Detect any smart-casting from the $graphObjectMap array.
+ // This is always empty on the GraphNode collection, but subclasses can define
+ // their own array of smart-casting types.
+ $graphObjectMap = $subclassName::getObjectMap();
+ $objectSubClass = isset($graphObjectMap[$k])
+ ? $graphObjectMap[$k]
+ : null;
+
+ // Could be a GraphEdge or GraphNode
+ $items[$k] = $this->castAsGraphNodeOrGraphEdge($v, $objectSubClass, $k, $parentNodeId);
+ } else {
+ $items[$k] = $v;
+ }
+ }
+
+ return new $subclassName($items);
+ }
+
+ /**
+ * Takes an array of values and determines how to cast each node.
+ *
+ * @param array $data The array of data to iterate over.
+ * @param string|null $subclassName The subclass to cast this collection to.
+ * @param string|null $parentKey The key of this data (Graph edge).
+ * @param string|null $parentNodeId The parent Graph node ID.
+ *
+ * @return GraphNode|GraphEdge
+ *
+ * @throws FacebookSDKException
+ */
+ public function castAsGraphNodeOrGraphEdge(array $data, $subclassName = null, $parentKey = null, $parentNodeId = null)
+ {
+ if (isset($data['data'])) {
+ // Create GraphEdge
+ if (static::isCastableAsGraphEdge($data['data'])) {
+ return $this->safelyMakeGraphEdge($data, $subclassName, $parentKey, $parentNodeId);
+ }
+ // Sometimes Graph is a weirdo and returns a GraphNode under the "data" key
+ $data = $data['data'];
+ }
+
+ // Create GraphNode
+ return $this->safelyMakeGraphNode($data, $subclassName);
+ }
+
+ /**
+ * Return an array of GraphNode's.
+ *
+ * @param array $data The array of data to iterate over.
+ * @param string|null $subclassName The GraphNode subclass to cast each item in the list to.
+ * @param string|null $parentKey The key of this data (Graph edge).
+ * @param string|null $parentNodeId The parent Graph node ID.
+ *
+ * @return GraphEdge
+ *
+ * @throws FacebookSDKException
+ */
+ public function safelyMakeGraphEdge(array $data, $subclassName = null, $parentKey = null, $parentNodeId = null)
+ {
+ if (!isset($data['data'])) {
+ throw new FacebookSDKException('Cannot cast data to GraphEdge. Expected a "data" key.', 620);
+ }
+
+ $dataList = [];
+ foreach ($data['data'] as $graphNode) {
+ $dataList[] = $this->safelyMakeGraphNode($graphNode, $subclassName);
+ }
+
+ $metaData = $this->getMetaData($data);
+
+ // We'll need to make an edge endpoint for this in case it's a GraphEdge (for cursor pagination)
+ $parentGraphEdgeEndpoint = $parentNodeId && $parentKey ? '/' . $parentNodeId . '/' . $parentKey : null;
+ $className = static::BASE_GRAPH_EDGE_CLASS;
+
+ return new $className($this->response->getRequest(), $dataList, $metaData, $parentGraphEdgeEndpoint, $subclassName);
+ }
+
+ /**
+ * Get the meta data from a list in a Graph response.
+ *
+ * @param array $data The Graph response.
+ *
+ * @return array
+ */
+ public function getMetaData(array $data)
+ {
+ unset($data['data']);
+
+ return $data;
+ }
+
+ /**
+ * Determines whether or not the data should be cast as a GraphEdge.
+ *
+ * @param array $data
+ *
+ * @return boolean
+ */
+ public static function isCastableAsGraphEdge(array $data)
+ {
+ if ($data === []) {
+ return true;
+ }
+
+ // Checks for a sequential numeric array which would be a GraphEdge
+ return array_keys($data) === range(0, count($data) - 1);
+ }
+
+ /**
+ * Ensures that the subclass in question is valid.
+ *
+ * @param string $subclassName The GraphNode subclass to validate.
+ *
+ * @throws FacebookSDKException
+ */
+ public static function validateSubclass($subclassName)
+ {
+ if ($subclassName == static::BASE_GRAPH_NODE_CLASS || is_subclass_of($subclassName, static::BASE_GRAPH_NODE_CLASS)) {
+ return;
+ }
+
+ throw new FacebookSDKException('The given subclass "' . $subclassName . '" is not valid. Cannot cast to an object that is not a GraphNode subclass.', 620);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphObject.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphObject.php
new file mode 100644
index 00000000..0633c405
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphObject.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphObject
+ *
+ * @package Facebook
+ *
+ * @deprecated 5.0.0 GraphObject has been renamed to GraphNode
+ * @todo v6: Remove this class
+ */
+class GraphObject extends GraphNode
+{
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphObjectFactory.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphObjectFactory.php
new file mode 100644
index 00000000..c0f6e045
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphObjectFactory.php
@@ -0,0 +1,88 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class GraphObjectFactory
+ *
+ * @package Facebook
+ *
+ * @deprecated 5.0.0 GraphObjectFactory has been renamed to GraphNodeFactory
+ * @todo v6: Remove this class
+ */
+class GraphObjectFactory extends GraphNodeFactory
+{
+ /**
+ * @const string The base graph object class.
+ */
+ const BASE_GRAPH_NODE_CLASS = '\Facebook\GraphNodes\GraphObject';
+
+ /**
+ * @const string The base graph edge class.
+ */
+ const BASE_GRAPH_EDGE_CLASS = '\Facebook\GraphNodes\GraphList';
+
+ /**
+ * Tries to convert a FacebookResponse entity into a GraphNode.
+ *
+ * @param string|null $subclassName The GraphNode sub class to cast to.
+ *
+ * @return GraphNode
+ *
+ * @deprecated 5.0.0 GraphObjectFactory has been renamed to GraphNodeFactory
+ */
+ public function makeGraphObject($subclassName = null)
+ {
+ return $this->makeGraphNode($subclassName);
+ }
+
+ /**
+ * Convenience method for creating a GraphEvent collection.
+ *
+ * @return GraphEvent
+ *
+ * @throws FacebookSDKException
+ */
+ public function makeGraphEvent()
+ {
+ return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphEvent');
+ }
+
+ /**
+ * Tries to convert a FacebookResponse entity into a GraphEdge.
+ *
+ * @param string|null $subclassName The GraphNode sub class to cast the list items to.
+ * @param boolean $auto_prefix Toggle to auto-prefix the subclass name.
+ *
+ * @return GraphEdge
+ *
+ * @deprecated 5.0.0 GraphObjectFactory has been renamed to GraphNodeFactory
+ */
+ public function makeGraphList($subclassName = null, $auto_prefix = true)
+ {
+ return $this->makeGraphEdge($subclassName, $auto_prefix);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php
new file mode 100644
index 00000000..3dfb0e03
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphPage.php
@@ -0,0 +1,147 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphPage
+ *
+ * @package Facebook
+ */
+class GraphPage extends GraphNode
+{
+ /**
+ * @var array Maps object key names to Graph object types.
+ */
+ protected static $graphObjectMap = [
+ 'best_page' => '\Facebook\GraphNodes\GraphPage',
+ 'global_brand_parent_page' => '\Facebook\GraphNodes\GraphPage',
+ 'location' => '\Facebook\GraphNodes\GraphLocation',
+ 'cover' => '\Facebook\GraphNodes\GraphCoverPhoto',
+ 'picture' => '\Facebook\GraphNodes\GraphPicture',
+ ];
+
+ /**
+ * Returns the ID for the user's page as a string if present.
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+
+ /**
+ * Returns the Category for the user's page as a string if present.
+ *
+ * @return string|null
+ */
+ public function getCategory()
+ {
+ return $this->getField('category');
+ }
+
+ /**
+ * Returns the Name of the user's page as a string if present.
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->getField('name');
+ }
+
+ /**
+ * Returns the best available Page on Facebook.
+ *
+ * @return GraphPage|null
+ */
+ public function getBestPage()
+ {
+ return $this->getField('best_page');
+ }
+
+ /**
+ * Returns the brand's global (parent) Page.
+ *
+ * @return GraphPage|null
+ */
+ public function getGlobalBrandParentPage()
+ {
+ return $this->getField('global_brand_parent_page');
+ }
+
+ /**
+ * Returns the location of this place.
+ *
+ * @return GraphLocation|null
+ */
+ public function getLocation()
+ {
+ return $this->getField('location');
+ }
+
+ /**
+ * Returns CoverPhoto of the Page.
+ *
+ * @return GraphCoverPhoto|null
+ */
+ public function getCover()
+ {
+ return $this->getField('cover');
+ }
+
+ /**
+ * Returns Picture of the Page.
+ *
+ * @return GraphPicture|null
+ */
+ public function getPicture()
+ {
+ return $this->getField('picture');
+ }
+
+ /**
+ * Returns the page access token for the admin user.
+ *
+ * Only available in the `/me/accounts` context.
+ *
+ * @return string|null
+ */
+ public function getAccessToken()
+ {
+ return $this->getField('access_token');
+ }
+
+ /**
+ * Returns the roles of the page admin user.
+ *
+ * Only available in the `/me/accounts` context.
+ *
+ * @return array|null
+ */
+ public function getPerms()
+ {
+ return $this->getField('perms');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphPicture.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphPicture.php
new file mode 100644
index 00000000..10274ec5
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphPicture.php
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphPicture
+ *
+ * @package Facebook
+ */
+class GraphPicture extends GraphNode
+{
+ /**
+ * Returns true if user picture is silhouette.
+ *
+ * @return bool|null
+ */
+ public function isSilhouette()
+ {
+ return $this->getField('is_silhouette');
+ }
+
+ /**
+ * Returns the url of user picture if it exists
+ *
+ * @return string|null
+ */
+ public function getUrl()
+ {
+ return $this->getField('url');
+ }
+
+ /**
+ * Returns the width of user picture if it exists
+ *
+ * @return int|null
+ */
+ public function getWidth()
+ {
+ return $this->getField('width');
+ }
+
+ /**
+ * Returns the height of user picture if it exists
+ *
+ * @return int|null
+ */
+ public function getHeight()
+ {
+ return $this->getField('height');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphSessionInfo.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphSessionInfo.php
new file mode 100644
index 00000000..df8dd358
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphSessionInfo.php
@@ -0,0 +1,102 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphSessionInfo
+ *
+ * @package Facebook
+ */
+class GraphSessionInfo extends GraphNode
+{
+ /**
+ * Returns the application id the token was issued for.
+ *
+ * @return string|null
+ */
+ public function getAppId()
+ {
+ return $this->getField('app_id');
+ }
+
+ /**
+ * Returns the application name the token was issued for.
+ *
+ * @return string|null
+ */
+ public function getApplication()
+ {
+ return $this->getField('application');
+ }
+
+ /**
+ * Returns the date & time that the token expires.
+ *
+ * @return \DateTime|null
+ */
+ public function getExpiresAt()
+ {
+ return $this->getField('expires_at');
+ }
+
+ /**
+ * Returns whether the token is valid.
+ *
+ * @return boolean
+ */
+ public function getIsValid()
+ {
+ return $this->getField('is_valid');
+ }
+
+ /**
+ * Returns the date & time the token was issued at.
+ *
+ * @return \DateTime|null
+ */
+ public function getIssuedAt()
+ {
+ return $this->getField('issued_at');
+ }
+
+ /**
+ * Returns the scope permissions associated with the token.
+ *
+ * @return array
+ */
+ public function getScopes()
+ {
+ return $this->getField('scopes');
+ }
+
+ /**
+ * Returns the login id of the user associated with the token.
+ *
+ * @return string|null
+ */
+ public function getUserId()
+ {
+ return $this->getField('user_id');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php b/mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php
new file mode 100644
index 00000000..c50d7efd
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/GraphNodes/GraphUser.php
@@ -0,0 +1,172 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\GraphNodes;
+
+/**
+ * Class GraphUser
+ *
+ * @package Facebook
+ */
+class GraphUser extends GraphNode
+{
+ /**
+ * @var array Maps object key names to Graph object types.
+ */
+ protected static $graphObjectMap = [
+ 'hometown' => '\Facebook\GraphNodes\GraphPage',
+ 'location' => '\Facebook\GraphNodes\GraphPage',
+ 'significant_other' => '\Facebook\GraphNodes\GraphUser',
+ 'picture' => '\Facebook\GraphNodes\GraphPicture',
+ ];
+
+ /**
+ * Returns the ID for the user as a string if present.
+ *
+ * @return string|null
+ */
+ public function getId()
+ {
+ return $this->getField('id');
+ }
+
+ /**
+ * Returns the name for the user as a string if present.
+ *
+ * @return string|null
+ */
+ public function getName()
+ {
+ return $this->getField('name');
+ }
+
+ /**
+ * Returns the first name for the user as a string if present.
+ *
+ * @return string|null
+ */
+ public function getFirstName()
+ {
+ return $this->getField('first_name');
+ }
+
+ /**
+ * Returns the middle name for the user as a string if present.
+ *
+ * @return string|null
+ */
+ public function getMiddleName()
+ {
+ return $this->getField('middle_name');
+ }
+
+ /**
+ * Returns the last name for the user as a string if present.
+ *
+ * @return string|null
+ */
+ public function getLastName()
+ {
+ return $this->getField('last_name');
+ }
+
+ /**
+ * Returns the email for the user as a string if present.
+ *
+ * @return string|null
+ */
+ public function getEmail()
+ {
+ return $this->getField('email');
+ }
+
+ /**
+ * Returns the gender for the user as a string if present.
+ *
+ * @return string|null
+ */
+ public function getGender()
+ {
+ return $this->getField('gender');
+ }
+
+ /**
+ * Returns the Facebook URL for the user as a string if available.
+ *
+ * @return string|null
+ */
+ public function getLink()
+ {
+ return $this->getField('link');
+ }
+
+ /**
+ * Returns the users birthday, if available.
+ *
+ * @return \DateTime|null
+ */
+ public function getBirthday()
+ {
+ return $this->getField('birthday');
+ }
+
+ /**
+ * Returns the current location of the user as a GraphPage.
+ *
+ * @return GraphPage|null
+ */
+ public function getLocation()
+ {
+ return $this->getField('location');
+ }
+
+ /**
+ * Returns the current location of the user as a GraphPage.
+ *
+ * @return GraphPage|null
+ */
+ public function getHometown()
+ {
+ return $this->getField('hometown');
+ }
+
+ /**
+ * Returns the current location of the user as a GraphUser.
+ *
+ * @return GraphUser|null
+ */
+ public function getSignificantOther()
+ {
+ return $this->getField('significant_other');
+ }
+
+ /**
+ * Returns the picture of the user as a GraphPicture
+ *
+ * @return GraphPicture|null
+ */
+ public function getPicture()
+ {
+ return $this->getField('picture');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Helpers/FacebookCanvasHelper.php b/mayor-orig/www/include/share/facebook/Helpers/FacebookCanvasHelper.php
new file mode 100644
index 00000000..7f3466ff
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Helpers/FacebookCanvasHelper.php
@@ -0,0 +1,52 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Helpers;
+
+/**
+ * Class FacebookCanvasLoginHelper
+ *
+ * @package Facebook
+ */
+class FacebookCanvasHelper extends FacebookSignedRequestFromInputHelper
+{
+ /**
+ * Returns the app data value.
+ *
+ * @return mixed|null
+ */
+ public function getAppData()
+ {
+ return $this->signedRequest ? $this->signedRequest->get('app_data') : null;
+ }
+
+ /**
+ * Get raw signed request from POST.
+ *
+ * @return string|null
+ */
+ public function getRawSignedRequest()
+ {
+ return $this->getRawSignedRequestFromPost() ?: null;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Helpers/FacebookJavaScriptHelper.php b/mayor-orig/www/include/share/facebook/Helpers/FacebookJavaScriptHelper.php
new file mode 100644
index 00000000..01a76b8b
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Helpers/FacebookJavaScriptHelper.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Helpers;
+
+/**
+ * Class FacebookJavaScriptLoginHelper
+ *
+ * @package Facebook
+ */
+class FacebookJavaScriptHelper extends FacebookSignedRequestFromInputHelper
+{
+ /**
+ * Get raw signed request from the cookie.
+ *
+ * @return string|null
+ */
+ public function getRawSignedRequest()
+ {
+ return $this->getRawSignedRequestFromCookie();
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Helpers/FacebookPageTabHelper.php b/mayor-orig/www/include/share/facebook/Helpers/FacebookPageTabHelper.php
new file mode 100644
index 00000000..da2c356c
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Helpers/FacebookPageTabHelper.php
@@ -0,0 +1,95 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Helpers;
+
+use Facebook\FacebookApp;
+use Facebook\FacebookClient;
+
+/**
+ * Class FacebookPageTabHelper
+ *
+ * @package Facebook
+ */
+class FacebookPageTabHelper extends FacebookCanvasHelper
+{
+ /**
+ * @var array|null
+ */
+ protected $pageData;
+
+ /**
+ * Initialize the helper and process available signed request data.
+ *
+ * @param FacebookApp $app The FacebookApp entity.
+ * @param FacebookClient $client The client to make HTTP requests.
+ * @param string|null $graphVersion The version of Graph to use.
+ */
+ public function __construct(FacebookApp $app, FacebookClient $client, $graphVersion = null)
+ {
+ parent::__construct($app, $client, $graphVersion);
+
+ if (!$this->signedRequest) {
+ return;
+ }
+
+ $this->pageData = $this->signedRequest->get('page');
+ }
+
+ /**
+ * Returns a value from the page data.
+ *
+ * @param string $key
+ * @param mixed|null $default
+ *
+ * @return mixed|null
+ */
+ public function getPageData($key, $default = null)
+ {
+ if (isset($this->pageData[$key])) {
+ return $this->pageData[$key];
+ }
+
+ return $default;
+ }
+
+ /**
+ * Returns true if the user is an admin.
+ *
+ * @return boolean
+ */
+ public function isAdmin()
+ {
+ return $this->getPageData('admin') === true;
+ }
+
+ /**
+ * Returns the page id if available.
+ *
+ * @return string|null
+ */
+ public function getPageId()
+ {
+ return $this->getPageData('id');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Helpers/FacebookRedirectLoginHelper.php b/mayor-orig/www/include/share/facebook/Helpers/FacebookRedirectLoginHelper.php
new file mode 100644
index 00000000..4a0755a4
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Helpers/FacebookRedirectLoginHelper.php
@@ -0,0 +1,333 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Helpers;
+
+use Facebook\Authentication\AccessToken;
+use Facebook\Authentication\OAuth2Client;
+use Facebook\Exceptions\FacebookSDKException;
+use Facebook\PersistentData\FacebookSessionPersistentDataHandler;
+use Facebook\PersistentData\PersistentDataInterface;
+use Facebook\PseudoRandomString\PseudoRandomStringGeneratorFactory;
+use Facebook\PseudoRandomString\PseudoRandomStringGeneratorInterface;
+use Facebook\Url\FacebookUrlDetectionHandler;
+use Facebook\Url\FacebookUrlManipulator;
+use Facebook\Url\UrlDetectionInterface;
+
+/**
+ * Class FacebookRedirectLoginHelper
+ *
+ * @package Facebook
+ */
+class FacebookRedirectLoginHelper
+{
+ /**
+ * @const int The length of CSRF string to validate the login link.
+ */
+ const CSRF_LENGTH = 32;
+
+ /**
+ * @var OAuth2Client The OAuth 2.0 client service.
+ */
+ protected $oAuth2Client;
+
+ /**
+ * @var UrlDetectionInterface The URL detection handler.
+ */
+ protected $urlDetectionHandler;
+
+ /**
+ * @var PersistentDataInterface The persistent data handler.
+ */
+ protected $persistentDataHandler;
+
+ /**
+ * @var PseudoRandomStringGeneratorInterface The cryptographically secure pseudo-random string generator.
+ */
+ protected $pseudoRandomStringGenerator;
+
+ /**
+ * @param OAuth2Client $oAuth2Client The OAuth 2.0 client service.
+ * @param PersistentDataInterface|null $persistentDataHandler The persistent data handler.
+ * @param UrlDetectionInterface|null $urlHandler The URL detection handler.
+ * @param PseudoRandomStringGeneratorInterface|null $prsg The cryptographically secure pseudo-random string generator.
+ */
+ public function __construct(OAuth2Client $oAuth2Client, PersistentDataInterface $persistentDataHandler = null, UrlDetectionInterface $urlHandler = null, PseudoRandomStringGeneratorInterface $prsg = null)
+ {
+ $this->oAuth2Client = $oAuth2Client;
+ $this->persistentDataHandler = $persistentDataHandler ?: new FacebookSessionPersistentDataHandler();
+ $this->urlDetectionHandler = $urlHandler ?: new FacebookUrlDetectionHandler();
+ $this->pseudoRandomStringGenerator = PseudoRandomStringGeneratorFactory::createPseudoRandomStringGenerator($prsg);
+ }
+
+ /**
+ * Returns the persistent data handler.
+ *
+ * @return PersistentDataInterface
+ */
+ public function getPersistentDataHandler()
+ {
+ return $this->persistentDataHandler;
+ }
+
+ /**
+ * Returns the URL detection handler.
+ *
+ * @return UrlDetectionInterface
+ */
+ public function getUrlDetectionHandler()
+ {
+ return $this->urlDetectionHandler;
+ }
+
+ /**
+ * Returns the cryptographically secure pseudo-random string generator.
+ *
+ * @return PseudoRandomStringGeneratorInterface
+ */
+ public function getPseudoRandomStringGenerator()
+ {
+ return $this->pseudoRandomStringGenerator;
+ }
+
+ /**
+ * Stores CSRF state and returns a URL to which the user should be sent to in order to continue the login process with Facebook.
+ *
+ * @param string $redirectUrl The URL Facebook should redirect users to after login.
+ * @param array $scope List of permissions to request during login.
+ * @param array $params An array of parameters to generate URL.
+ * @param string $separator The separator to use in http_build_query().
+ *
+ * @return string
+ */
+ private function makeUrl($redirectUrl, array $scope, array $params = [], $separator = '&')
+ {
+ $state = $this->persistentDataHandler->get('state') ?: $this->pseudoRandomStringGenerator->getPseudoRandomString(static::CSRF_LENGTH);
+ $this->persistentDataHandler->set('state', $state);
+
+ return $this->oAuth2Client->getAuthorizationUrl($redirectUrl, $state, $scope, $params, $separator);
+ }
+
+ /**
+ * Returns the URL to send the user in order to login to Facebook.
+ *
+ * @param string $redirectUrl The URL Facebook should redirect users to after login.
+ * @param array $scope List of permissions to request during login.
+ * @param string $separator The separator to use in http_build_query().
+ *
+ * @return string
+ */
+ public function getLoginUrl($redirectUrl, array $scope = [], $separator = '&')
+ {
+ return $this->makeUrl($redirectUrl, $scope, [], $separator);
+ }
+
+ /**
+ * Returns the URL to send the user in order to log out of Facebook.
+ *
+ * @param AccessToken|string $accessToken The access token that will be logged out.
+ * @param string $next The url Facebook should redirect the user to after a successful logout.
+ * @param string $separator The separator to use in http_build_query().
+ *
+ * @return string
+ *
+ * @throws FacebookSDKException
+ */
+ public function getLogoutUrl($accessToken, $next, $separator = '&')
+ {
+ if (!$accessToken instanceof AccessToken) {
+ $accessToken = new AccessToken($accessToken);
+ }
+
+ if ($accessToken->isAppAccessToken()) {
+ throw new FacebookSDKException('Cannot generate a logout URL with an app access token.', 722);
+ }
+
+ $params = [
+ 'next' => $next,
+ 'access_token' => $accessToken->getValue(),
+ ];
+
+ return 'https://www.facebook.com/logout.php?' . http_build_query($params, null, $separator);
+ }
+
+ /**
+ * Returns the URL to send the user in order to login to Facebook with permission(s) to be re-asked.
+ *
+ * @param string $redirectUrl The URL Facebook should redirect users to after login.
+ * @param array $scope List of permissions to request during login.
+ * @param string $separator The separator to use in http_build_query().
+ *
+ * @return string
+ */
+ public function getReRequestUrl($redirectUrl, array $scope = [], $separator = '&')
+ {
+ $params = ['auth_type' => 'rerequest'];
+
+ return $this->makeUrl($redirectUrl, $scope, $params, $separator);
+ }
+
+ /**
+ * Returns the URL to send the user in order to login to Facebook with user to be re-authenticated.
+ *
+ * @param string $redirectUrl The URL Facebook should redirect users to after login.
+ * @param array $scope List of permissions to request during login.
+ * @param string $separator The separator to use in http_build_query().
+ *
+ * @return string
+ */
+ public function getReAuthenticationUrl($redirectUrl, array $scope = [], $separator = '&')
+ {
+ $params = ['auth_type' => 'reauthenticate'];
+
+ return $this->makeUrl($redirectUrl, $scope, $params, $separator);
+ }
+
+ /**
+ * Takes a valid code from a login redirect, and returns an AccessToken entity.
+ *
+ * @param string|null $redirectUrl The redirect URL.
+ *
+ * @return AccessToken|null
+ *
+ * @throws FacebookSDKException
+ */
+ public function getAccessToken($redirectUrl = null)
+ {
+ if (!$code = $this->getCode()) {
+ return null;
+ }
+
+ $this->validateCsrf();
+ $this->resetCsrf();
+
+ $redirectUrl = $redirectUrl ?: $this->urlDetectionHandler->getCurrentUrl();
+ // At minimum we need to remove the state param
+ $redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['state']);
+
+ return $this->oAuth2Client->getAccessTokenFromCode($code, $redirectUrl);
+ }
+
+ /**
+ * Validate the request against a cross-site request forgery.
+ *
+ * @throws FacebookSDKException
+ */
+ protected function validateCsrf()
+ {
+ $state = $this->getState();
+ if (!$state) {
+ throw new FacebookSDKException('Cross-site request forgery validation failed. Required GET param "state" missing.');
+ }
+ $savedState = $this->persistentDataHandler->get('state');
+ if (!$savedState) {
+ throw new FacebookSDKException('Cross-site request forgery validation failed. Required param "state" missing from persistent data.');
+ }
+
+ if (\hash_equals($savedState, $state)) {
+ return;
+ }
+
+ throw new FacebookSDKException('Cross-site request forgery validation failed. The "state" param from the URL and session do not match.');
+ }
+
+ /**
+ * Resets the CSRF so that it doesn't get reused.
+ */
+ private function resetCsrf()
+ {
+ $this->persistentDataHandler->set('state', null);
+ }
+
+ /**
+ * Return the code.
+ *
+ * @return string|null
+ */
+ protected function getCode()
+ {
+ return $this->getInput('code');
+ }
+
+ /**
+ * Return the state.
+ *
+ * @return string|null
+ */
+ protected function getState()
+ {
+ return $this->getInput('state');
+ }
+
+ /**
+ * Return the error code.
+ *
+ * @return string|null
+ */
+ public function getErrorCode()
+ {
+ return $this->getInput('error_code');
+ }
+
+ /**
+ * Returns the error.
+ *
+ * @return string|null
+ */
+ public function getError()
+ {
+ return $this->getInput('error');
+ }
+
+ /**
+ * Returns the error reason.
+ *
+ * @return string|null
+ */
+ public function getErrorReason()
+ {
+ return $this->getInput('error_reason');
+ }
+
+ /**
+ * Returns the error description.
+ *
+ * @return string|null
+ */
+ public function getErrorDescription()
+ {
+ return $this->getInput('error_description');
+ }
+
+ /**
+ * Returns a value from a GET param.
+ *
+ * @param string $key
+ *
+ * @return string|null
+ */
+ private function getInput($key)
+ {
+ return isset($_GET[$key]) ? $_GET[$key] : null;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Helpers/FacebookSignedRequestFromInputHelper.php b/mayor-orig/www/include/share/facebook/Helpers/FacebookSignedRequestFromInputHelper.php
new file mode 100644
index 00000000..4044da10
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Helpers/FacebookSignedRequestFromInputHelper.php
@@ -0,0 +1,166 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Helpers;
+
+use Facebook\Facebook;
+use Facebook\FacebookApp;
+use Facebook\FacebookClient;
+use Facebook\SignedRequest;
+use Facebook\Authentication\AccessToken;
+use Facebook\Authentication\OAuth2Client;
+
+/**
+ * Class FacebookSignedRequestFromInputHelper
+ *
+ * @package Facebook
+ */
+abstract class FacebookSignedRequestFromInputHelper
+{
+ /**
+ * @var SignedRequest|null The SignedRequest entity.
+ */
+ protected $signedRequest;
+
+ /**
+ * @var FacebookApp The FacebookApp entity.
+ */
+ protected $app;
+
+ /**
+ * @var OAuth2Client The OAuth 2.0 client service.
+ */
+ protected $oAuth2Client;
+
+ /**
+ * Initialize the helper and process available signed request data.
+ *
+ * @param FacebookApp $app The FacebookApp entity.
+ * @param FacebookClient $client The client to make HTTP requests.
+ * @param string|null $graphVersion The version of Graph to use.
+ */
+ public function __construct(FacebookApp $app, FacebookClient $client, $graphVersion = null)
+ {
+ $this->app = $app;
+ $graphVersion = $graphVersion ?: Facebook::DEFAULT_GRAPH_VERSION;
+ $this->oAuth2Client = new OAuth2Client($this->app, $client, $graphVersion);
+
+ $this->instantiateSignedRequest();
+ }
+
+ /**
+ * Instantiates a new SignedRequest entity.
+ *
+ * @param string|null
+ */
+ public function instantiateSignedRequest($rawSignedRequest = null)
+ {
+ $rawSignedRequest = $rawSignedRequest ?: $this->getRawSignedRequest();
+
+ if (!$rawSignedRequest) {
+ return;
+ }
+
+ $this->signedRequest = new SignedRequest($this->app, $rawSignedRequest);
+ }
+
+ /**
+ * Returns an AccessToken entity from the signed request.
+ *
+ * @return AccessToken|null
+ *
+ * @throws \Facebook\Exceptions\FacebookSDKException
+ */
+ public function getAccessToken()
+ {
+ if ($this->signedRequest && $this->signedRequest->hasOAuthData()) {
+ $code = $this->signedRequest->get('code');
+ $accessToken = $this->signedRequest->get('oauth_token');
+
+ if ($code && !$accessToken) {
+ return $this->oAuth2Client->getAccessTokenFromCode($code);
+ }
+
+ $expiresAt = $this->signedRequest->get('expires', 0);
+
+ return new AccessToken($accessToken, $expiresAt);
+ }
+
+ return null;
+ }
+
+ /**
+ * Returns the SignedRequest entity.
+ *
+ * @return SignedRequest|null
+ */
+ public function getSignedRequest()
+ {
+ return $this->signedRequest;
+ }
+
+ /**
+ * Returns the user_id if available.
+ *
+ * @return string|null
+ */
+ public function getUserId()
+ {
+ return $this->signedRequest ? $this->signedRequest->getUserId() : null;
+ }
+
+ /**
+ * Get raw signed request from input.
+ *
+ * @return string|null
+ */
+ abstract public function getRawSignedRequest();
+
+ /**
+ * Get raw signed request from POST input.
+ *
+ * @return string|null
+ */
+ public function getRawSignedRequestFromPost()
+ {
+ if (isset($_POST['signed_request'])) {
+ return $_POST['signed_request'];
+ }
+
+ return null;
+ }
+
+ /**
+ * Get raw signed request from cookie set from the Javascript SDK.
+ *
+ * @return string|null
+ */
+ public function getRawSignedRequestFromCookie()
+ {
+ if (isset($_COOKIE['fbsr_' . $this->app->getId()])) {
+ return $_COOKIE['fbsr_' . $this->app->getId()];
+ }
+
+ return null;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Http/GraphRawResponse.php b/mayor-orig/www/include/share/facebook/Http/GraphRawResponse.php
new file mode 100644
index 00000000..d1a7241c
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Http/GraphRawResponse.php
@@ -0,0 +1,137 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Http;
+
+/**
+ * Class GraphRawResponse
+ *
+ * @package Facebook
+ */
+class GraphRawResponse
+{
+ /**
+ * @var array The response headers in the form of an associative array.
+ */
+ protected $headers;
+
+ /**
+ * @var string The raw response body.
+ */
+ protected $body;
+
+ /**
+ * @var int The HTTP status response code.
+ */
+ protected $httpResponseCode;
+
+ /**
+ * Creates a new GraphRawResponse entity.
+ *
+ * @param string|array $headers The headers as a raw string or array.
+ * @param string $body The raw response body.
+ * @param int $httpStatusCode The HTTP response code (if sending headers as parsed array).
+ */
+ public function __construct($headers, $body, $httpStatusCode = null)
+ {
+ if (is_numeric($httpStatusCode)) {
+ $this->httpResponseCode = (int)$httpStatusCode;
+ }
+
+ if (is_array($headers)) {
+ $this->headers = $headers;
+ } else {
+ $this->setHeadersFromString($headers);
+ }
+
+ $this->body = $body;
+ }
+
+ /**
+ * Return the response headers.
+ *
+ * @return array
+ */
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+
+ /**
+ * Return the body of the response.
+ *
+ * @return string
+ */
+ public function getBody()
+ {
+ return $this->body;
+ }
+
+ /**
+ * Return the HTTP response code.
+ *
+ * @return int
+ */
+ public function getHttpResponseCode()
+ {
+ return $this->httpResponseCode;
+ }
+
+ /**
+ * Sets the HTTP response code from a raw header.
+ *
+ * @param string $rawResponseHeader
+ */
+ public function setHttpResponseCodeFromHeader($rawResponseHeader)
+ {
+ preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
+ $this->httpResponseCode = (int)$match[1];
+ }
+
+ /**
+ * Parse the raw headers and set as an array.
+ *
+ * @param string $rawHeaders The raw headers from the response.
+ */
+ protected function setHeadersFromString($rawHeaders)
+ {
+ // Normalize line breaks
+ $rawHeaders = str_replace("\r\n", "\n", $rawHeaders);
+
+ // There will be multiple headers if a 301 was followed
+ // or a proxy was followed, etc
+ $headerCollection = explode("\n\n", trim($rawHeaders));
+ // We just want the last response (at the end)
+ $rawHeader = array_pop($headerCollection);
+
+ $headerComponents = explode("\n", $rawHeader);
+ foreach ($headerComponents as $line) {
+ if (strpos($line, ': ') === false) {
+ $this->setHttpResponseCodeFromHeader($line);
+ } else {
+ list($key, $value) = explode(': ', $line, 2);
+ $this->headers[$key] = $value;
+ }
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Http/RequestBodyInterface.php b/mayor-orig/www/include/share/facebook/Http/RequestBodyInterface.php
new file mode 100644
index 00000000..1c03f4fd
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Http/RequestBodyInterface.php
@@ -0,0 +1,39 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Http;
+
+/**
+ * Interface
+ *
+ * @package Facebook
+ */
+interface RequestBodyInterface
+{
+ /**
+ * Get the body of the request to send to Graph.
+ *
+ * @return string
+ */
+ public function getBody();
+}
diff --git a/mayor-orig/www/include/share/facebook/Http/RequestBodyMultipart.php b/mayor-orig/www/include/share/facebook/Http/RequestBodyMultipart.php
new file mode 100644
index 00000000..e43695a4
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Http/RequestBodyMultipart.php
@@ -0,0 +1,170 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Http;
+
+use Facebook\FileUpload\FacebookFile;
+
+/**
+ * Class RequestBodyMultipartt
+ *
+ * Some things copied from Guzzle
+ *
+ * @package Facebook
+ *
+ * @see https://github.com/guzzle/guzzle/blob/master/src/Post/MultipartBody.php
+ */
+class RequestBodyMultipart implements RequestBodyInterface
+{
+ /**
+ * @var string The boundary.
+ */
+ private $boundary;
+
+ /**
+ * @var array The parameters to send with this request.
+ */
+ private $params;
+
+ /**
+ * @var array The files to send with this request.
+ */
+ private $files = [];
+
+ /**
+ * @param array $params The parameters to send with this request.
+ * @param array $files The files to send with this request.
+ * @param string $boundary Provide a specific boundary.
+ */
+ public function __construct(array $params = [], array $files = [], $boundary = null)
+ {
+ $this->params = $params;
+ $this->files = $files;
+ $this->boundary = $boundary ?: uniqid();
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getBody()
+ {
+ $body = '';
+
+ // Compile normal params
+ $params = $this->getNestedParams($this->params);
+ foreach ($params as $k => $v) {
+ $body .= $this->getParamString($k, $v);
+ }
+
+ // Compile files
+ foreach ($this->files as $k => $v) {
+ $body .= $this->getFileString($k, $v);
+ }
+
+ // Peace out
+ $body .= "--{$this->boundary}--\r\n";
+
+ return $body;
+ }
+
+ /**
+ * Get the boundary
+ *
+ * @return string
+ */
+ public function getBoundary()
+ {
+ return $this->boundary;
+ }
+
+ /**
+ * Get the string needed to transfer a file.
+ *
+ * @param string $name
+ * @param FacebookFile $file
+ *
+ * @return string
+ */
+ private function getFileString($name, FacebookFile $file)
+ {
+ return sprintf(
+ "--%s\r\nContent-Disposition: form-data; name=\"%s\"; filename=\"%s\"%s\r\n\r\n%s\r\n",
+ $this->boundary,
+ $name,
+ $file->getFileName(),
+ $this->getFileHeaders($file),
+ $file->getContents()
+ );
+ }
+
+ /**
+ * Get the string needed to transfer a POST field.
+ *
+ * @param string $name
+ * @param string $value
+ *
+ * @return string
+ */
+ private function getParamString($name, $value)
+ {
+ return sprintf(
+ "--%s\r\nContent-Disposition: form-data; name=\"%s\"\r\n\r\n%s\r\n",
+ $this->boundary,
+ $name,
+ $value
+ );
+ }
+
+ /**
+ * Returns the params as an array of nested params.
+ *
+ * @param array $params
+ *
+ * @return array
+ */
+ private function getNestedParams(array $params)
+ {
+ $query = http_build_query($params, null, '&');
+ $params = explode('&', $query);
+ $result = [];
+
+ foreach ($params as $param) {
+ list($key, $value) = explode('=', $param, 2);
+ $result[urldecode($key)] = urldecode($value);
+ }
+
+ return $result;
+ }
+
+ /**
+ * Get the headers needed before transferring the content of a POST file.
+ *
+ * @param FacebookFile $file
+ *
+ * @return string
+ */
+ protected function getFileHeaders(FacebookFile $file)
+ {
+ return "\r\nContent-Type: {$file->getMimetype()}";
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Http/RequestBodyUrlEncoded.php b/mayor-orig/www/include/share/facebook/Http/RequestBodyUrlEncoded.php
new file mode 100644
index 00000000..c1e35f43
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Http/RequestBodyUrlEncoded.php
@@ -0,0 +1,55 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Http;
+
+/**
+ * Class RequestBodyUrlEncoded
+ *
+ * @package Facebook
+ */
+class RequestBodyUrlEncoded implements RequestBodyInterface
+{
+ /**
+ * @var array The parameters to send with this request.
+ */
+ protected $params = [];
+
+ /**
+ * Creates a new GraphUrlEncodedBody entity.
+ *
+ * @param array $params
+ */
+ public function __construct(array $params)
+ {
+ $this->params = $params;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getBody()
+ {
+ return http_build_query($this->params, null, '&');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/FacebookCurl.php b/mayor-orig/www/include/share/facebook/HttpClients/FacebookCurl.php
new file mode 100644
index 00000000..28e4ba59
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/FacebookCurl.php
@@ -0,0 +1,129 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\HttpClients;
+
+/**
+ * Class FacebookCurl
+ *
+ * Abstraction for the procedural curl elements so that curl can be mocked and the implementation can be tested.
+ *
+ * @package Facebook
+ */
+class FacebookCurl
+{
+
+ /**
+ * @var resource Curl resource instance
+ */
+ protected $curl;
+
+ /**
+ * Make a new curl reference instance
+ */
+ public function init()
+ {
+ $this->curl = curl_init();
+ }
+
+ /**
+ * Set a curl option
+ *
+ * @param $key
+ * @param $value
+ */
+ public function setopt($key, $value)
+ {
+ curl_setopt($this->curl, $key, $value);
+ }
+
+ /**
+ * Set an array of options to a curl resource
+ *
+ * @param array $options
+ */
+ public function setoptArray(array $options)
+ {
+ curl_setopt_array($this->curl, $options);
+ }
+
+ /**
+ * Send a curl request
+ *
+ * @return mixed
+ */
+ public function exec()
+ {
+ return curl_exec($this->curl);
+ }
+
+ /**
+ * Return the curl error number
+ *
+ * @return int
+ */
+ public function errno()
+ {
+ return curl_errno($this->curl);
+ }
+
+ /**
+ * Return the curl error message
+ *
+ * @return string
+ */
+ public function error()
+ {
+ return curl_error($this->curl);
+ }
+
+ /**
+ * Get info from a curl reference
+ *
+ * @param $type
+ *
+ * @return mixed
+ */
+ public function getinfo($type)
+ {
+ return curl_getinfo($this->curl, $type);
+ }
+
+ /**
+ * Get the currently installed curl version
+ *
+ * @return array
+ */
+ public function version()
+ {
+ return curl_version();
+ }
+
+ /**
+ * Close the resource connection to curl
+ */
+ public function close()
+ {
+ curl_close($this->curl);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/FacebookCurlHttpClient.php b/mayor-orig/www/include/share/facebook/HttpClients/FacebookCurlHttpClient.php
new file mode 100644
index 00000000..059e75a5
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/FacebookCurlHttpClient.php
@@ -0,0 +1,163 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\HttpClients;
+
+use Facebook\Http\GraphRawResponse;
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class FacebookCurlHttpClient
+ *
+ * @package Facebook
+ */
+class FacebookCurlHttpClient implements FacebookHttpClientInterface
+{
+ /**
+ * @var string The client error message
+ */
+ protected $curlErrorMessage = '';
+
+ /**
+ * @var int The curl client error code
+ */
+ protected $curlErrorCode = 0;
+
+ /**
+ * @var string|boolean The raw response from the server
+ */
+ protected $rawResponse;
+
+ /**
+ * @var FacebookCurl Procedural curl as object
+ */
+ protected $facebookCurl;
+
+ /**
+ * @param FacebookCurl|null Procedural curl as object
+ */
+ public function __construct(FacebookCurl $facebookCurl = null)
+ {
+ $this->facebookCurl = $facebookCurl ?: new FacebookCurl();
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function send($url, $method, $body, array $headers, $timeOut)
+ {
+ $this->openConnection($url, $method, $body, $headers, $timeOut);
+ $this->sendRequest();
+
+ if ($curlErrorCode = $this->facebookCurl->errno()) {
+ throw new FacebookSDKException($this->facebookCurl->error(), $curlErrorCode);
+ }
+
+ // Separate the raw headers from the raw body
+ list($rawHeaders, $rawBody) = $this->extractResponseHeadersAndBody();
+
+ $this->closeConnection();
+
+ return new GraphRawResponse($rawHeaders, $rawBody);
+ }
+
+ /**
+ * Opens a new curl connection.
+ *
+ * @param string $url The endpoint to send the request to.
+ * @param string $method The request method.
+ * @param string $body The body of the request.
+ * @param array $headers The request headers.
+ * @param int $timeOut The timeout in seconds for the request.
+ */
+ public function openConnection($url, $method, $body, array $headers, $timeOut)
+ {
+ $options = [
+ CURLOPT_CUSTOMREQUEST => $method,
+ CURLOPT_HTTPHEADER => $this->compileRequestHeaders($headers),
+ CURLOPT_URL => $url,
+ CURLOPT_CONNECTTIMEOUT => 10,
+ CURLOPT_TIMEOUT => $timeOut,
+ CURLOPT_RETURNTRANSFER => true, // Follow 301 redirects
+ CURLOPT_HEADER => true, // Enable header processing
+ CURLOPT_SSL_VERIFYHOST => 2,
+ CURLOPT_SSL_VERIFYPEER => true,
+ CURLOPT_CAINFO => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
+ ];
+
+ if ($method !== "GET") {
+ $options[CURLOPT_POSTFIELDS] = $body;
+ }
+
+ $this->facebookCurl->init();
+ $this->facebookCurl->setoptArray($options);
+ }
+
+ /**
+ * Closes an existing curl connection
+ */
+ public function closeConnection()
+ {
+ $this->facebookCurl->close();
+ }
+
+ /**
+ * Send the request and get the raw response from curl
+ */
+ public function sendRequest()
+ {
+ $this->rawResponse = $this->facebookCurl->exec();
+ }
+
+ /**
+ * Compiles the request headers into a curl-friendly format.
+ *
+ * @param array $headers The request headers.
+ *
+ * @return array
+ */
+ public function compileRequestHeaders(array $headers)
+ {
+ $return = [];
+
+ foreach ($headers as $key => $value) {
+ $return[] = $key . ': ' . $value;
+ }
+
+ return $return;
+ }
+
+ /**
+ * Extracts the headers and the body into a two-part array
+ *
+ * @return array
+ */
+ public function extractResponseHeadersAndBody()
+ {
+ $parts = explode("\r\n\r\n", $this->rawResponse);
+ $rawBody = array_pop($parts);
+ $rawHeaders = implode("\r\n\r\n", $parts);
+
+ return [trim($rawHeaders), trim($rawBody)];
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/FacebookGuzzleHttpClient.php b/mayor-orig/www/include/share/facebook/HttpClients/FacebookGuzzleHttpClient.php
new file mode 100644
index 00000000..8feb7cb6
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/FacebookGuzzleHttpClient.php
@@ -0,0 +1,97 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\HttpClients;
+
+use Facebook\Http\GraphRawResponse;
+use Facebook\Exceptions\FacebookSDKException;
+
+use GuzzleHttp\Client;
+use GuzzleHttp\Message\ResponseInterface;
+use GuzzleHttp\Ring\Exception\RingException;
+use GuzzleHttp\Exception\RequestException;
+
+class FacebookGuzzleHttpClient implements FacebookHttpClientInterface
+{
+ /**
+ * @var \GuzzleHttp\Client The Guzzle client.
+ */
+ protected $guzzleClient;
+
+ /**
+ * @param \GuzzleHttp\Client|null The Guzzle client.
+ */
+ public function __construct(Client $guzzleClient = null)
+ {
+ $this->guzzleClient = $guzzleClient ?: new Client();
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function send($url, $method, $body, array $headers, $timeOut)
+ {
+ $options = [
+ 'headers' => $headers,
+ 'body' => $body,
+ 'timeout' => $timeOut,
+ 'connect_timeout' => 10,
+ 'verify' => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
+ ];
+ $request = $this->guzzleClient->createRequest($method, $url, $options);
+
+ try {
+ $rawResponse = $this->guzzleClient->send($request);
+ } catch (RequestException $e) {
+ $rawResponse = $e->getResponse();
+
+ if ($e->getPrevious() instanceof RingException || !$rawResponse instanceof ResponseInterface) {
+ throw new FacebookSDKException($e->getMessage(), $e->getCode());
+ }
+ }
+
+ $rawHeaders = $this->getHeadersAsString($rawResponse);
+ $rawBody = $rawResponse->getBody();
+ $httpStatusCode = $rawResponse->getStatusCode();
+
+ return new GraphRawResponse($rawHeaders, $rawBody, $httpStatusCode);
+ }
+
+ /**
+ * Returns the Guzzle array of headers as a string.
+ *
+ * @param ResponseInterface $response The Guzzle response.
+ *
+ * @return string
+ */
+ public function getHeadersAsString(ResponseInterface $response)
+ {
+ $headers = $response->getHeaders();
+ $rawHeaders = [];
+ foreach ($headers as $name => $values) {
+ $rawHeaders[] = $name . ": " . implode(", ", $values);
+ }
+
+ return implode("\r\n", $rawHeaders);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/FacebookHttpClientInterface.php b/mayor-orig/www/include/share/facebook/HttpClients/FacebookHttpClientInterface.php
new file mode 100644
index 00000000..1fbf953d
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/FacebookHttpClientInterface.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\HttpClients;
+
+/**
+ * Interface FacebookHttpClientInterface
+ *
+ * @package Facebook
+ */
+interface FacebookHttpClientInterface
+{
+ /**
+ * Sends a request to the server and returns the raw response.
+ *
+ * @param string $url The endpoint to send the request to.
+ * @param string $method The request method.
+ * @param string $body The body of the request.
+ * @param array $headers The request headers.
+ * @param int $timeOut The timeout in seconds for the request.
+ *
+ * @return \Facebook\Http\GraphRawResponse Raw response from the server.
+ *
+ * @throws \Facebook\Exceptions\FacebookSDKException
+ */
+ public function send($url, $method, $body, array $headers, $timeOut);
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/FacebookStream.php b/mayor-orig/www/include/share/facebook/HttpClients/FacebookStream.php
new file mode 100644
index 00000000..3f399884
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/FacebookStream.php
@@ -0,0 +1,80 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\HttpClients;
+
+/**
+ * Class FacebookStream
+ *
+ * Abstraction for the procedural stream elements so that the functions can be
+ * mocked and the implementation can be tested.
+ *
+ * @package Facebook
+ */
+class FacebookStream
+{
+ /**
+ * @var resource Context stream resource instance
+ */
+ protected $stream;
+
+ /**
+ * @var array Response headers from the stream wrapper
+ */
+ protected $responseHeaders = [];
+
+ /**
+ * Make a new context stream reference instance
+ *
+ * @param array $options
+ */
+ public function streamContextCreate(array $options)
+ {
+ $this->stream = stream_context_create($options);
+ }
+
+ /**
+ * The response headers from the stream wrapper
+ *
+ * @return array
+ */
+ public function getResponseHeaders()
+ {
+ return $this->responseHeaders;
+ }
+
+ /**
+ * Send a stream wrapped request
+ *
+ * @param string $url
+ *
+ * @return mixed
+ */
+ public function fileGetContents($url)
+ {
+ $rawResponse = file_get_contents($url, false, $this->stream);
+ $this->responseHeaders = $http_response_header ?: [];
+
+ return $rawResponse;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/FacebookStreamHttpClient.php b/mayor-orig/www/include/share/facebook/HttpClients/FacebookStreamHttpClient.php
new file mode 100644
index 00000000..1cdfd539
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/FacebookStreamHttpClient.php
@@ -0,0 +1,94 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\HttpClients;
+
+use Facebook\Http\GraphRawResponse;
+use Facebook\Exceptions\FacebookSDKException;
+
+class FacebookStreamHttpClient implements FacebookHttpClientInterface
+{
+ /**
+ * @var FacebookStream Procedural stream wrapper as object.
+ */
+ protected $facebookStream;
+
+ /**
+ * @param FacebookStream|null Procedural stream wrapper as object.
+ */
+ public function __construct(FacebookStream $facebookStream = null)
+ {
+ $this->facebookStream = $facebookStream ?: new FacebookStream();
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function send($url, $method, $body, array $headers, $timeOut)
+ {
+ $options = [
+ 'http' => [
+ 'method' => $method,
+ 'header' => $this->compileHeader($headers),
+ 'content' => $body,
+ 'timeout' => $timeOut,
+ 'ignore_errors' => true
+ ],
+ 'ssl' => [
+ 'verify_peer' => true,
+ 'verify_peer_name' => true,
+ 'allow_self_signed' => true, // All root certificates are self-signed
+ 'cafile' => __DIR__ . '/certs/DigiCertHighAssuranceEVRootCA.pem',
+ ],
+ ];
+
+ $this->facebookStream->streamContextCreate($options);
+ $rawBody = $this->facebookStream->fileGetContents($url);
+ $rawHeaders = $this->facebookStream->getResponseHeaders();
+
+ if ($rawBody === false || empty($rawHeaders)) {
+ throw new FacebookSDKException('Stream returned an empty response', 660);
+ }
+
+ $rawHeaders = implode("\r\n", $rawHeaders);
+
+ return new GraphRawResponse($rawHeaders, $rawBody);
+ }
+
+ /**
+ * Formats the headers for use in the stream wrapper.
+ *
+ * @param array $headers The request headers.
+ *
+ * @return string
+ */
+ public function compileHeader(array $headers)
+ {
+ $header = [];
+ foreach ($headers as $k => $v) {
+ $header[] = $k . ': ' . $v;
+ }
+
+ return implode("\r\n", $header);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/HttpClientsFactory.php b/mayor-orig/www/include/share/facebook/HttpClients/HttpClientsFactory.php
new file mode 100644
index 00000000..d9f2a8d3
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/HttpClientsFactory.php
@@ -0,0 +1,99 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\HttpClients;
+
+use GuzzleHttp\Client;
+use InvalidArgumentException;
+use Exception;
+
+class HttpClientsFactory
+{
+ private function __construct()
+ {
+ // a factory constructor should never be invoked
+ }
+
+ /**
+ * HTTP client generation.
+ *
+ * @param FacebookHttpClientInterface|Client|string|null $handler
+ *
+ * @throws Exception If the cURL extension or the Guzzle client aren't available (if required).
+ * @throws InvalidArgumentException If the http client handler isn't "curl", "stream", "guzzle", or an instance of Facebook\HttpClients\FacebookHttpClientInterface.
+ *
+ * @return FacebookHttpClientInterface
+ */
+ public static function createHttpClient($handler)
+ {
+ if (!$handler) {
+ return self::detectDefaultClient();
+ }
+
+ if ($handler instanceof FacebookHttpClientInterface) {
+ return $handler;
+ }
+
+ if ('stream' === $handler) {
+ return new FacebookStreamHttpClient();
+ }
+ if ('curl' === $handler) {
+ if (!extension_loaded('curl')) {
+ throw new Exception('The cURL extension must be loaded in order to use the "curl" handler.');
+ }
+
+ return new FacebookCurlHttpClient();
+ }
+
+ if ('guzzle' === $handler && !class_exists('GuzzleHttp\Client')) {
+ throw new Exception('The Guzzle HTTP client must be included in order to use the "guzzle" handler.');
+ }
+
+ if ($handler instanceof Client) {
+ return new FacebookGuzzleHttpClient($handler);
+ }
+ if ('guzzle' === $handler) {
+ return new FacebookGuzzleHttpClient();
+ }
+
+ throw new InvalidArgumentException('The http client handler must be set to "curl", "stream", "guzzle", be an instance of GuzzleHttp\Client or an instance of Facebook\HttpClients\FacebookHttpClientInterface');
+ }
+
+ /**
+ * Detect default HTTP client.
+ *
+ * @return FacebookHttpClientInterface
+ */
+ private static function detectDefaultClient()
+ {
+ if (extension_loaded('curl')) {
+ return new FacebookCurlHttpClient();
+ }
+
+ if (class_exists('GuzzleHttp\Client')) {
+ return new FacebookGuzzleHttpClient();
+ }
+
+ return new FacebookStreamHttpClient();
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/HttpClients/certs/DigiCertHighAssuranceEVRootCA.pem b/mayor-orig/www/include/share/facebook/HttpClients/certs/DigiCertHighAssuranceEVRootCA.pem
new file mode 100644
index 00000000..9e6810ab
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/HttpClients/certs/DigiCertHighAssuranceEVRootCA.pem
@@ -0,0 +1,23 @@
+-----BEGIN CERTIFICATE-----
+MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs
+MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
+d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j
+ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL
+MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3
+LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug
+RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm
++9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW
+PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM
+xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB
+Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3
+hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg
+EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF
+MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA
+FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec
+nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z
+eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF
+hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2
+Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe
+vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep
++OkuE6N36B9K
+-----END CERTIFICATE-----
diff --git a/mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php b/mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php
new file mode 100644
index 00000000..4b7c87ea
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PersistentData/FacebookMemoryPersistentDataHandler.php
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PersistentData;
+
+/**
+ * Class FacebookMemoryPersistentDataHandler
+ *
+ * @package Facebook
+ */
+class FacebookMemoryPersistentDataHandler implements PersistentDataInterface
+{
+ /**
+ * @var array The session data to keep in memory.
+ */
+ protected $sessionData = [];
+
+ /**
+ * @inheritdoc
+ */
+ public function get($key)
+ {
+ return isset($this->sessionData[$key]) ? $this->sessionData[$key] : null;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function set($key, $value)
+ {
+ $this->sessionData[$key] = $value;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php b/mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php
new file mode 100644
index 00000000..9123e3dc
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PersistentData/FacebookSessionPersistentDataHandler.php
@@ -0,0 +1,76 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PersistentData;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class FacebookSessionPersistentDataHandler
+ *
+ * @package Facebook
+ */
+class FacebookSessionPersistentDataHandler implements PersistentDataInterface
+{
+ /**
+ * @var string Prefix to use for session variables.
+ */
+ protected $sessionPrefix = 'FBRLH_';
+
+ /**
+ * Init the session handler.
+ *
+ * @param boolean $enableSessionCheck
+ *
+ * @throws FacebookSDKException
+ */
+ public function __construct($enableSessionCheck = true)
+ {
+ if ($enableSessionCheck && session_status() !== PHP_SESSION_ACTIVE) {
+ throw new FacebookSDKException(
+ 'Sessions are not active. Please make sure session_start() is at the top of your script.',
+ 720
+ );
+ }
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function get($key)
+ {
+ if (isset($_SESSION[$this->sessionPrefix . $key])) {
+ return $_SESSION[$this->sessionPrefix . $key];
+ }
+
+ return null;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function set($key, $value)
+ {
+ $_SESSION[$this->sessionPrefix . $key] = $value;
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php b/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php
new file mode 100644
index 00000000..18fb8fd5
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataFactory.php
@@ -0,0 +1,65 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PersistentData;
+
+use InvalidArgumentException;
+
+class PersistentDataFactory
+{
+ private function __construct()
+ {
+ // a factory constructor should never be invoked
+ }
+
+ /**
+ * PersistentData generation.
+ *
+ * @param PersistentDataInterface|string|null $handler
+ *
+ * @throws InvalidArgumentException If the persistent data handler isn't "session", "memory", or an instance of Facebook\PersistentData\PersistentDataInterface.
+ *
+ * @return PersistentDataInterface
+ */
+ public static function createPersistentDataHandler($handler)
+ {
+ if (!$handler) {
+ return session_status() === PHP_SESSION_ACTIVE
+ ? new FacebookSessionPersistentDataHandler()
+ : new FacebookMemoryPersistentDataHandler();
+ }
+
+ if ($handler instanceof PersistentDataInterface) {
+ return $handler;
+ }
+
+ if ('session' === $handler) {
+ return new FacebookSessionPersistentDataHandler();
+ }
+ if ('memory' === $handler) {
+ return new FacebookMemoryPersistentDataHandler();
+ }
+
+ throw new InvalidArgumentException('The persistent data handler must be set to "session", "memory", or be an instance of Facebook\PersistentData\PersistentDataInterface');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataInterface.php b/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataInterface.php
new file mode 100644
index 00000000..3517ee15
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PersistentData/PersistentDataInterface.php
@@ -0,0 +1,49 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PersistentData;
+
+/**
+ * Interface PersistentDataInterface
+ *
+ * @package Facebook
+ */
+interface PersistentDataInterface
+{
+ /**
+ * Get a value from a persistent data store.
+ *
+ * @param string $key
+ *
+ * @return mixed
+ */
+ public function get($key);
+
+ /**
+ * Set a value in the persistent data store.
+ *
+ * @param string $key
+ * @param mixed $value
+ */
+ public function set($key, $value);
+}
diff --git a/mayor-orig/www/include/share/facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php b/mayor-orig/www/include/share/facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php
new file mode 100644
index 00000000..bf573745
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php
@@ -0,0 +1,68 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PseudoRandomString;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+class McryptPseudoRandomStringGenerator implements PseudoRandomStringGeneratorInterface
+{
+ use PseudoRandomStringGeneratorTrait;
+
+ /**
+ * @const string The error message when generating the string fails.
+ */
+ const ERROR_MESSAGE = 'Unable to generate a cryptographically secure pseudo-random string from mcrypt_create_iv(). ';
+
+ /**
+ * @throws FacebookSDKException
+ */
+ public function __construct()
+ {
+ if (!function_exists('mcrypt_create_iv')) {
+ throw new FacebookSDKException(
+ static::ERROR_MESSAGE .
+ 'The function mcrypt_create_iv() does not exist.'
+ );
+ }
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getPseudoRandomString($length)
+ {
+ $this->validateLength($length);
+
+ $binaryString = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM);
+
+ if ($binaryString === false) {
+ throw new FacebookSDKException(
+ static::ERROR_MESSAGE .
+ 'mcrypt_create_iv() returned an error.'
+ );
+ }
+
+ return $this->binToHex($binaryString, $length);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php b/mayor-orig/www/include/share/facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php
new file mode 100644
index 00000000..4b4276dc
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PseudoRandomString/OpenSslPseudoRandomStringGenerator.php
@@ -0,0 +1,67 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PseudoRandomString;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+class OpenSslPseudoRandomStringGenerator implements PseudoRandomStringGeneratorInterface
+{
+ use PseudoRandomStringGeneratorTrait;
+
+ /**
+ * @const string The error message when generating the string fails.
+ */
+ const ERROR_MESSAGE = 'Unable to generate a cryptographically secure pseudo-random string from openssl_random_pseudo_bytes().';
+
+ /**
+ * @throws FacebookSDKException
+ */
+ public function __construct()
+ {
+ if (!function_exists('openssl_random_pseudo_bytes')) {
+ throw new FacebookSDKException(static::ERROR_MESSAGE . 'The function openssl_random_pseudo_bytes() does not exist.');
+ }
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getPseudoRandomString($length)
+ {
+ $this->validateLength($length);
+
+ $wasCryptographicallyStrong = false;
+ $binaryString = openssl_random_pseudo_bytes($length, $wasCryptographicallyStrong);
+
+ if ($binaryString === false) {
+ throw new FacebookSDKException(static::ERROR_MESSAGE . 'openssl_random_pseudo_bytes() returned an unknown error.');
+ }
+
+ if ($wasCryptographicallyStrong !== true) {
+ throw new FacebookSDKException(static::ERROR_MESSAGE . 'openssl_random_pseudo_bytes() returned a pseudo-random string but it was not cryptographically secure and cannot be used.');
+ }
+
+ return $this->binToHex($binaryString, $length);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorFactory.php b/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorFactory.php
new file mode 100644
index 00000000..412f4813
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorFactory.php
@@ -0,0 +1,101 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PseudoRandomString;
+
+use Facebook\Exceptions\FacebookSDKException;
+use InvalidArgumentException;
+
+class PseudoRandomStringGeneratorFactory
+{
+ private function __construct()
+ {
+ // a factory constructor should never be invoked
+ }
+
+ /**
+ * Pseudo random string generator creation.
+ *
+ * @param PseudoRandomStringGeneratorInterface|string|null $generator
+ *
+ * @throws InvalidArgumentException If the pseudo random string generator must be set to "random_bytes", "mcrypt", "openssl", or "urandom", or be an instance of Facebook\PseudoRandomString\PseudoRandomStringGeneratorInterface.
+ *
+ * @return PseudoRandomStringGeneratorInterface
+ */
+ public static function createPseudoRandomStringGenerator($generator)
+ {
+ if (!$generator) {
+ return self::detectDefaultPseudoRandomStringGenerator();
+ }
+
+ if ($generator instanceof PseudoRandomStringGeneratorInterface) {
+ return $generator;
+ }
+
+ if ('random_bytes' === $generator) {
+ return new RandomBytesPseudoRandomStringGenerator();
+ }
+ if ('mcrypt' === $generator) {
+ return new McryptPseudoRandomStringGenerator();
+ }
+ if ('openssl' === $generator) {
+ return new OpenSslPseudoRandomStringGenerator();
+ }
+ if ('urandom' === $generator) {
+ return new UrandomPseudoRandomStringGenerator();
+ }
+
+ throw new InvalidArgumentException('The pseudo random string generator must be set to "random_bytes", "mcrypt", "openssl", or "urandom", or be an instance of Facebook\PseudoRandomString\PseudoRandomStringGeneratorInterface');
+ }
+
+ /**
+ * Detects which pseudo-random string generator to use.
+ *
+ * @throws FacebookSDKException If unable to detect a cryptographically secure pseudo-random string generator.
+ *
+ * @return PseudoRandomStringGeneratorInterface
+ */
+ private static function detectDefaultPseudoRandomStringGenerator()
+ {
+ // Check for PHP 7's CSPRNG first to keep mcrypt deprecation messages from appearing in PHP 7.1.
+ if (function_exists('random_bytes')) {
+ return new RandomBytesPseudoRandomStringGenerator();
+ }
+
+ // Since openssl_random_pseudo_bytes() can sometimes return non-cryptographically
+ // secure pseudo-random strings (in rare cases), we check for mcrypt_create_iv() next.
+ if (function_exists('mcrypt_create_iv')) {
+ return new McryptPseudoRandomStringGenerator();
+ }
+
+ if (function_exists('openssl_random_pseudo_bytes')) {
+ return new OpenSslPseudoRandomStringGenerator();
+ }
+
+ if (!ini_get('open_basedir') && is_readable('/dev/urandom')) {
+ return new UrandomPseudoRandomStringGenerator();
+ }
+
+ throw new FacebookSDKException('Unable to detect a cryptographically secure pseudo-random string generator.');
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorInterface.php b/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorInterface.php
new file mode 100644
index 00000000..914ee3cf
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorInterface.php
@@ -0,0 +1,45 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PseudoRandomString;
+
+/**
+ * Interface
+ *
+ * @package Facebook
+ */
+interface PseudoRandomStringGeneratorInterface
+{
+ /**
+ * Get a cryptographically secure pseudo-random string of arbitrary length.
+ *
+ * @see http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/
+ *
+ * @param int $length The length of the string to return.
+ *
+ * @return string
+ *
+ * @throws \Facebook\Exceptions\FacebookSDKException|\InvalidArgumentException
+ */
+ public function getPseudoRandomString($length);
+}
diff --git a/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorTrait.php b/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorTrait.php
new file mode 100644
index 00000000..0f587ea2
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PseudoRandomString/PseudoRandomStringGeneratorTrait.php
@@ -0,0 +1,58 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PseudoRandomString;
+
+trait PseudoRandomStringGeneratorTrait
+{
+ /**
+ * Validates the length argument of a random string.
+ *
+ * @param int $length The length to validate.
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function validateLength($length)
+ {
+ if (!is_int($length)) {
+ throw new \InvalidArgumentException('getPseudoRandomString() expects an integer for the string length');
+ }
+
+ if ($length < 1) {
+ throw new \InvalidArgumentException('getPseudoRandomString() expects a length greater than 1');
+ }
+ }
+
+ /**
+ * Converts binary data to hexadecimal of arbitrary length.
+ *
+ * @param string $binaryData The binary data to convert to hex.
+ * @param int $length The length of the string to return.
+ *
+ * @return string
+ */
+ public function binToHex($binaryData, $length)
+ {
+ return \substr(\bin2hex($binaryData), 0, $length);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PseudoRandomString/RandomBytesPseudoRandomStringGenerator.php b/mayor-orig/www/include/share/facebook/PseudoRandomString/RandomBytesPseudoRandomStringGenerator.php
new file mode 100644
index 00000000..b5943f6f
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PseudoRandomString/RandomBytesPseudoRandomStringGenerator.php
@@ -0,0 +1,59 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PseudoRandomString;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+class RandomBytesPseudoRandomStringGenerator implements PseudoRandomStringGeneratorInterface
+{
+ use PseudoRandomStringGeneratorTrait;
+
+ /**
+ * @const string The error message when generating the string fails.
+ */
+ const ERROR_MESSAGE = 'Unable to generate a cryptographically secure pseudo-random string from random_bytes(). ';
+
+ /**
+ * @throws FacebookSDKException
+ */
+ public function __construct()
+ {
+ if (!function_exists('random_bytes')) {
+ throw new FacebookSDKException(
+ static::ERROR_MESSAGE .
+ 'The function random_bytes() does not exist.'
+ );
+ }
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getPseudoRandomString($length)
+ {
+ $this->validateLength($length);
+
+ return $this->binToHex(random_bytes($length), $length);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/PseudoRandomString/UrandomPseudoRandomStringGenerator.php b/mayor-orig/www/include/share/facebook/PseudoRandomString/UrandomPseudoRandomStringGenerator.php
new file mode 100644
index 00000000..5ab434e6
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/PseudoRandomString/UrandomPseudoRandomStringGenerator.php
@@ -0,0 +1,89 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\PseudoRandomString;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+class UrandomPseudoRandomStringGenerator implements PseudoRandomStringGeneratorInterface
+{
+
+ use PseudoRandomStringGeneratorTrait;
+
+ /**
+ * @const string The error message when generating the string fails.
+ */
+ const ERROR_MESSAGE = 'Unable to generate a cryptographically secure pseudo-random string from /dev/urandom. ';
+
+ /**
+ * @throws FacebookSDKException
+ */
+ public function __construct()
+ {
+ if (ini_get('open_basedir')) {
+ throw new FacebookSDKException(
+ static::ERROR_MESSAGE .
+ 'There is an open_basedir constraint that prevents access to /dev/urandom.'
+ );
+ }
+
+ if (!is_readable('/dev/urandom')) {
+ throw new FacebookSDKException(
+ static::ERROR_MESSAGE .
+ 'Unable to read from /dev/urandom.'
+ );
+ }
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getPseudoRandomString($length)
+ {
+ $this->validateLength($length);
+
+ $stream = fopen('/dev/urandom', 'rb');
+ if (!is_resource($stream)) {
+ throw new FacebookSDKException(
+ static::ERROR_MESSAGE .
+ 'Unable to open stream to /dev/urandom.'
+ );
+ }
+
+ if (!defined('HHVM_VERSION')) {
+ stream_set_read_buffer($stream, 0);
+ }
+
+ $binaryString = fread($stream, $length);
+ fclose($stream);
+
+ if (!$binaryString) {
+ throw new FacebookSDKException(
+ static::ERROR_MESSAGE .
+ 'Stream to /dev/urandom returned no data.'
+ );
+ }
+
+ return $this->binToHex($binaryString, $length);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/SignedRequest.php b/mayor-orig/www/include/share/facebook/SignedRequest.php
new file mode 100644
index 00000000..6a175a0a
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/SignedRequest.php
@@ -0,0 +1,326 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook;
+
+use Facebook\Exceptions\FacebookSDKException;
+
+/**
+ * Class SignedRequest
+ *
+ * @package Facebook
+ */
+class SignedRequest
+{
+ /**
+ * @var FacebookApp The FacebookApp entity.
+ */
+ protected $app;
+
+ /**
+ * @var string The raw encrypted signed request.
+ */
+ protected $rawSignedRequest;
+
+ /**
+ * @var array The payload from the decrypted signed request.
+ */
+ protected $payload;
+
+ /**
+ * Instantiate a new SignedRequest entity.
+ *
+ * @param FacebookApp $facebookApp The FacebookApp entity.
+ * @param string|null $rawSignedRequest The raw signed request.
+ */
+ public function __construct(FacebookApp $facebookApp, $rawSignedRequest = null)
+ {
+ $this->app = $facebookApp;
+
+ if (!$rawSignedRequest) {
+ return;
+ }
+
+ $this->rawSignedRequest = $rawSignedRequest;
+
+ $this->parse();
+ }
+
+ /**
+ * Returns the raw signed request data.
+ *
+ * @return string|null
+ */
+ public function getRawSignedRequest()
+ {
+ return $this->rawSignedRequest;
+ }
+
+ /**
+ * Returns the parsed signed request data.
+ *
+ * @return array|null
+ */
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+
+ /**
+ * Returns a property from the signed request data if available.
+ *
+ * @param string $key
+ * @param mixed|null $default
+ *
+ * @return mixed|null
+ */
+ public function get($key, $default = null)
+ {
+ if (isset($this->payload[$key])) {
+ return $this->payload[$key];
+ }
+
+ return $default;
+ }
+
+ /**
+ * Returns user_id from signed request data if available.
+ *
+ * @return string|null
+ */
+ public function getUserId()
+ {
+ return $this->get('user_id');
+ }
+
+ /**
+ * Checks for OAuth data in the payload.
+ *
+ * @return boolean
+ */
+ public function hasOAuthData()
+ {
+ return $this->get('oauth_token') || $this->get('code');
+ }
+
+ /**
+ * Creates a signed request from an array of data.
+ *
+ * @param array $payload
+ *
+ * @return string
+ */
+ public function make(array $payload)
+ {
+ $payload['algorithm'] = isset($payload['algorithm']) ? $payload['algorithm'] : 'HMAC-SHA256';
+ $payload['issued_at'] = isset($payload['issued_at']) ? $payload['issued_at'] : time();
+ $encodedPayload = $this->base64UrlEncode(json_encode($payload));
+
+ $hashedSig = $this->hashSignature($encodedPayload);
+ $encodedSig = $this->base64UrlEncode($hashedSig);
+
+ return $encodedSig . '.' . $encodedPayload;
+ }
+
+ /**
+ * Validates and decodes a signed request and saves
+ * the payload to an array.
+ */
+ protected function parse()
+ {
+ list($encodedSig, $encodedPayload) = $this->split();
+
+ // Signature validation
+ $sig = $this->decodeSignature($encodedSig);
+ $hashedSig = $this->hashSignature($encodedPayload);
+ $this->validateSignature($hashedSig, $sig);
+
+ $this->payload = $this->decodePayload($encodedPayload);
+
+ // Payload validation
+ $this->validateAlgorithm();
+ }
+
+ /**
+ * Splits a raw signed request into signature and payload.
+ *
+ * @return array
+ *
+ * @throws FacebookSDKException
+ */
+ protected function split()
+ {
+ if (strpos($this->rawSignedRequest, '.') === false) {
+ throw new FacebookSDKException('Malformed signed request.', 606);
+ }
+
+ return explode('.', $this->rawSignedRequest, 2);
+ }
+
+ /**
+ * Decodes the raw signature from a signed request.
+ *
+ * @param string $encodedSig
+ *
+ * @return string
+ *
+ * @throws FacebookSDKException
+ */
+ protected function decodeSignature($encodedSig)
+ {
+ $sig = $this->base64UrlDecode($encodedSig);
+
+ if (!$sig) {
+ throw new FacebookSDKException('Signed request has malformed encoded signature data.', 607);
+ }
+
+ return $sig;
+ }
+
+ /**
+ * Decodes the raw payload from a signed request.
+ *
+ * @param string $encodedPayload
+ *
+ * @return array
+ *
+ * @throws FacebookSDKException
+ */
+ protected function decodePayload($encodedPayload)
+ {
+ $payload = $this->base64UrlDecode($encodedPayload);
+
+ if ($payload) {
+ $payload = json_decode($payload, true);
+ }
+
+ if (!is_array($payload)) {
+ throw new FacebookSDKException('Signed request has malformed encoded payload data.', 607);
+ }
+
+ return $payload;
+ }
+
+ /**
+ * Validates the algorithm used in a signed request.
+ *
+ * @throws FacebookSDKException
+ */
+ protected function validateAlgorithm()
+ {
+ if ($this->get('algorithm') !== 'HMAC-SHA256') {
+ throw new FacebookSDKException('Signed request is using the wrong algorithm.', 605);
+ }
+ }
+
+ /**
+ * Hashes the signature used in a signed request.
+ *
+ * @param string $encodedData
+ *
+ * @return string
+ *
+ * @throws FacebookSDKException
+ */
+ protected function hashSignature($encodedData)
+ {
+ $hashedSig = hash_hmac(
+ 'sha256',
+ $encodedData,
+ $this->app->getSecret(),
+ $raw_output = true
+ );
+
+ if (!$hashedSig) {
+ throw new FacebookSDKException('Unable to hash signature from encoded payload data.', 602);
+ }
+
+ return $hashedSig;
+ }
+
+ /**
+ * Validates the signature used in a signed request.
+ *
+ * @param string $hashedSig
+ * @param string $sig
+ *
+ * @throws FacebookSDKException
+ */
+ protected function validateSignature($hashedSig, $sig)
+ {
+ if (\hash_equals($hashedSig, $sig)) {
+ return;
+ }
+
+ throw new FacebookSDKException('Signed request has an invalid signature.', 602);
+ }
+
+ /**
+ * Base64 decoding which replaces characters:
+ * + instead of -
+ * / instead of _
+ *
+ * @link http://en.wikipedia.org/wiki/Base64#URL_applications
+ *
+ * @param string $input base64 url encoded input
+ *
+ * @return string decoded string
+ */
+ public function base64UrlDecode($input)
+ {
+ $urlDecodedBase64 = strtr($input, '-_', '+/');
+ $this->validateBase64($urlDecodedBase64);
+
+ return base64_decode($urlDecodedBase64);
+ }
+
+ /**
+ * Base64 encoding which replaces characters:
+ * + instead of -
+ * / instead of _
+ *
+ * @link http://en.wikipedia.org/wiki/Base64#URL_applications
+ *
+ * @param string $input string to encode
+ *
+ * @return string base64 url encoded input
+ */
+ public function base64UrlEncode($input)
+ {
+ return strtr(base64_encode($input), '+/', '-_');
+ }
+
+ /**
+ * Validates a base64 string.
+ *
+ * @param string $input base64 value to validate
+ *
+ * @throws FacebookSDKException
+ */
+ protected function validateBase64($input)
+ {
+ if (!preg_match('/^[a-zA-Z0-9\/\r\n+]*={0,2}$/', $input)) {
+ throw new FacebookSDKException('Signed request contains malformed base64 encoding.', 608);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Url/FacebookUrlDetectionHandler.php b/mayor-orig/www/include/share/facebook/Url/FacebookUrlDetectionHandler.php
new file mode 100644
index 00000000..1d134ddc
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Url/FacebookUrlDetectionHandler.php
@@ -0,0 +1,182 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Url;
+
+/**
+ * Class FacebookUrlDetectionHandler
+ *
+ * @package Facebook
+ */
+class FacebookUrlDetectionHandler implements UrlDetectionInterface
+{
+ /**
+ * @inheritdoc
+ */
+ public function getCurrentUrl()
+ {
+ return $this->getHttpScheme() . '://' . $this->getHostName() . $this->getServerVar('REQUEST_URI');
+ }
+
+ /**
+ * Get the currently active URL scheme.
+ *
+ * @return string
+ */
+ protected function getHttpScheme()
+ {
+ return $this->isBehindSsl() ? 'https' : 'http';
+ }
+
+ /**
+ * Tries to detect if the server is running behind an SSL.
+ *
+ * @return boolean
+ */
+ protected function isBehindSsl()
+ {
+ // Check for proxy first
+ $protocol = $this->getHeader('X_FORWARDED_PROTO');
+ if ($protocol) {
+ return $this->protocolWithActiveSsl($protocol);
+ }
+
+ $protocol = $this->getServerVar('HTTPS');
+ if ($protocol) {
+ return $this->protocolWithActiveSsl($protocol);
+ }
+
+ return (string)$this->getServerVar('SERVER_PORT') === '443';
+ }
+
+ /**
+ * Detects an active SSL protocol value.
+ *
+ * @param string $protocol
+ *
+ * @return boolean
+ */
+ protected function protocolWithActiveSsl($protocol)
+ {
+ $protocol = strtolower((string)$protocol);
+
+ return in_array($protocol, ['on', '1', 'https', 'ssl'], true);
+ }
+
+ /**
+ * Tries to detect the host name of the server.
+ *
+ * Some elements adapted from
+ *
+ * @see https://github.com/symfony/HttpFoundation/blob/master/Request.php
+ *
+ * @return string
+ */
+ protected function getHostName()
+ {
+ // Check for proxy first
+ $header = $this->getHeader('X_FORWARDED_HOST');
+ if ($header && $this->isValidForwardedHost($header)) {
+ $elements = explode(',', $header);
+ $host = $elements[count($elements) - 1];
+ } elseif (!$host = $this->getHeader('HOST')) {
+ if (!$host = $this->getServerVar('SERVER_NAME')) {
+ $host = $this->getServerVar('SERVER_ADDR');
+ }
+ }
+
+ // trim and remove port number from host
+ // host is lowercase as per RFC 952/2181
+ $host = strtolower(preg_replace('/:\d+$/', '', trim($host)));
+
+ // Port number
+ $scheme = $this->getHttpScheme();
+ $port = $this->getCurrentPort();
+ $appendPort = ':' . $port;
+
+ // Don't append port number if a normal port.
+ if (($scheme == 'http' && $port == '80') || ($scheme == 'https' && $port == '443')) {
+ $appendPort = '';
+ }
+
+ return $host . $appendPort;
+ }
+
+ protected function getCurrentPort()
+ {
+ // Check for proxy first
+ $port = $this->getHeader('X_FORWARDED_PORT');
+ if ($port) {
+ return (string)$port;
+ }
+
+ $protocol = (string)$this->getHeader('X_FORWARDED_PROTO');
+ if ($protocol === 'https') {
+ return '443';
+ }
+
+ return (string)$this->getServerVar('SERVER_PORT');
+ }
+
+ /**
+ * Returns the a value from the $_SERVER super global.
+ *
+ * @param string $key
+ *
+ * @return string
+ */
+ protected function getServerVar($key)
+ {
+ return isset($_SERVER[$key]) ? $_SERVER[$key] : '';
+ }
+
+ /**
+ * Gets a value from the HTTP request headers.
+ *
+ * @param string $key
+ *
+ * @return string
+ */
+ protected function getHeader($key)
+ {
+ return $this->getServerVar('HTTP_' . $key);
+ }
+
+ /**
+ * Checks if the value in X_FORWARDED_HOST is a valid hostname
+ * Could prevent unintended redirections
+ *
+ * @param string $header
+ *
+ * @return boolean
+ */
+ protected function isValidForwardedHost($header)
+ {
+ $elements = explode(',', $header);
+ $host = $elements[count($elements) - 1];
+
+ return preg_match("/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i", $host) //valid chars check
+ && 0 < strlen($host) && strlen($host) < 254 //overall length check
+ && preg_match("/^[^\.]{1,63}(\.[^\.]{1,63})*$/", $host); //length of each label
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Url/FacebookUrlManipulator.php b/mayor-orig/www/include/share/facebook/Url/FacebookUrlManipulator.php
new file mode 100644
index 00000000..daeab9c5
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Url/FacebookUrlManipulator.php
@@ -0,0 +1,167 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Url;
+
+/**
+ * Class FacebookUrlManipulator
+ *
+ * @package Facebook
+ */
+class FacebookUrlManipulator
+{
+ /**
+ * Remove params from a URL.
+ *
+ * @param string $url The URL to filter.
+ * @param array $paramsToFilter The params to filter from the URL.
+ *
+ * @return string The URL with the params removed.
+ */
+ public static function removeParamsFromUrl($url, array $paramsToFilter)
+ {
+ $parts = parse_url($url);
+
+ $query = '';
+ if (isset($parts['query'])) {
+ $params = [];
+ parse_str($parts['query'], $params);
+
+ // Remove query params
+ foreach ($paramsToFilter as $paramName) {
+ unset($params[$paramName]);
+ }
+
+ if (count($params) > 0) {
+ $query = '?' . http_build_query($params, null, '&');
+ }
+ }
+
+ $scheme = isset($parts['scheme']) ? $parts['scheme'] . '://' : '';
+ $host = isset($parts['host']) ? $parts['host'] : '';
+ $port = isset($parts['port']) ? ':' . $parts['port'] : '';
+ $path = isset($parts['path']) ? $parts['path'] : '';
+ $fragment = isset($parts['fragment']) ? '#' . $parts['fragment'] : '';
+
+ return $scheme . $host . $port . $path . $query . $fragment;
+ }
+
+ /**
+ * Gracefully appends params to the URL.
+ *
+ * @param string $url The URL that will receive the params.
+ * @param array $newParams The params to append to the URL.
+ *
+ * @return string
+ */
+ public static function appendParamsToUrl($url, array $newParams = [])
+ {
+ if (empty($newParams)) {
+ return $url;
+ }
+
+ if (strpos($url, '?') === false) {
+ return $url . '?' . http_build_query($newParams, null, '&');
+ }
+
+ list($path, $query) = explode('?', $url, 2);
+ $existingParams = [];
+ parse_str($query, $existingParams);
+
+ // Favor params from the original URL over $newParams
+ $newParams = array_merge($newParams, $existingParams);
+
+ // Sort for a predicable order
+ ksort($newParams);
+
+ return $path . '?' . http_build_query($newParams, null, '&');
+ }
+
+ /**
+ * Returns the params from a URL in the form of an array.
+ *
+ * @param string $url The URL to parse the params from.
+ *
+ * @return array
+ */
+ public static function getParamsAsArray($url)
+ {
+ $query = parse_url($url, PHP_URL_QUERY);
+ if (!$query) {
+ return [];
+ }
+ $params = [];
+ parse_str($query, $params);
+
+ return $params;
+ }
+
+ /**
+ * Adds the params of the first URL to the second URL.
+ *
+ * Any params that already exist in the second URL will go untouched.
+ *
+ * @param string $urlToStealFrom The URL harvest the params from.
+ * @param string $urlToAddTo The URL that will receive the new params.
+ *
+ * @return string The $urlToAddTo with any new params from $urlToStealFrom.
+ */
+ public static function mergeUrlParams($urlToStealFrom, $urlToAddTo)
+ {
+ $newParams = static::getParamsAsArray($urlToStealFrom);
+ // Nothing new to add, return as-is
+ if (!$newParams) {
+ return $urlToAddTo;
+ }
+
+ return static::appendParamsToUrl($urlToAddTo, $newParams);
+ }
+
+ /**
+ * Check for a "/" prefix and prepend it if not exists.
+ *
+ * @param string|null $string
+ *
+ * @return string|null
+ */
+ public static function forceSlashPrefix($string)
+ {
+ if (!$string) {
+ return $string;
+ }
+
+ return strpos($string, '/') === 0 ? $string : '/' . $string;
+ }
+
+ /**
+ * Trims off the hostname and Graph version from a URL.
+ *
+ * @param string $urlToTrim The URL the needs the surgery.
+ *
+ * @return string The $urlToTrim with the hostname and Graph version removed.
+ */
+ public static function baseGraphUrlEndpoint($urlToTrim)
+ {
+ return '/' . preg_replace('/^https:\/\/.+\.facebook\.com(\/v.+?)?\//', '', $urlToTrim);
+ }
+}
diff --git a/mayor-orig/www/include/share/facebook/Url/UrlDetectionInterface.php b/mayor-orig/www/include/share/facebook/Url/UrlDetectionInterface.php
new file mode 100644
index 00000000..dca38a0c
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/Url/UrlDetectionInterface.php
@@ -0,0 +1,39 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+namespace Facebook\Url;
+
+/**
+ * Interface UrlDetectionInterface
+ *
+ * @package Facebook
+ */
+interface UrlDetectionInterface
+{
+ /**
+ * Get the currently active URL.
+ *
+ * @return string
+ */
+ public function getCurrentUrl();
+}
diff --git a/mayor-orig/www/include/share/facebook/autoload.php b/mayor-orig/www/include/share/facebook/autoload.php
new file mode 100644
index 00000000..e0dd21c1
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/autoload.php
@@ -0,0 +1,81 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+
+/**
+ * You only need this file if you are not using composer.
+ * Why are you not using composer?
+ * https://getcomposer.org/
+ */
+
+if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+ throw new Exception('The Facebook SDK requires PHP version 5.4 or higher.');
+}
+
+require_once __DIR__ . '/polyfills.php';
+
+/**
+ * Register the autoloader for the Facebook SDK classes.
+ *
+ * Based off the official PSR-4 autoloader example found here:
+ * https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md
+ *
+ * @param string $class The fully-qualified class name.
+ *
+ * @return void
+ */
+spl_autoload_register(function ($class) {
+ // project-specific namespace prefix
+ $prefix = 'Facebook\\';
+
+ // For backwards compatibility
+ $customBaseDir = '';
+ // @todo v6: Remove support for 'FACEBOOK_SDK_V4_SRC_DIR'
+ if (defined('FACEBOOK_SDK_V4_SRC_DIR')) {
+ $customBaseDir = FACEBOOK_SDK_V4_SRC_DIR;
+ } elseif (defined('FACEBOOK_SDK_SRC_DIR')) {
+ $customBaseDir = FACEBOOK_SDK_SRC_DIR;
+ }
+ // base directory for the namespace prefix
+ $baseDir = $customBaseDir ?: __DIR__ . '/';
+
+ // does the class use the namespace prefix?
+ $len = strlen($prefix);
+ if (strncmp($prefix, $class, $len) !== 0) {
+ // no, move to the next registered autoloader
+ return;
+ }
+
+ // get the relative class name
+ $relativeClass = substr($class, $len);
+
+ // replace the namespace prefix with the base directory, replace namespace
+ // separators with directory separators in the relative class name, append
+ // with .php
+ $file = rtrim($baseDir, '/') . '/' . str_replace('\\', '/', $relativeClass) . '.php';
+
+ // if the file exists, require it
+ if (file_exists($file)) {
+ require $file;
+ }
+});
diff --git a/mayor-orig/www/include/share/facebook/polyfills.php b/mayor-orig/www/include/share/facebook/polyfills.php
new file mode 100644
index 00000000..4a67d863
--- /dev/null
+++ b/mayor-orig/www/include/share/facebook/polyfills.php
@@ -0,0 +1,49 @@
+<?php
+/**
+ * Copyright 2017 Facebook, Inc.
+ *
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
+ * use, copy, modify, and distribute this software in source code or binary
+ * form for use in connection with the web services and APIs provided by
+ * Facebook.
+ *
+ * As with any software that integrates with the Facebook platform, your use
+ * of this software is subject to the Facebook Developer Principles and
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
+ * shall be included in all copies or substantial portions of the software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+
+/**
+ * @see https://github.com/sarciszewski/php-future/blob/master/src/Security.php#L37-L51
+ */
+if (!function_exists('hash_equals')) {
+ function hash_equals($knownString, $userString)
+ {
+ if (function_exists('mb_strlen')) {
+ $kLen = mb_strlen($knownString, '8bit');
+ $uLen = mb_strlen($userString, '8bit');
+ } else {
+ $kLen = strlen($knownString);
+ $uLen = strlen($userString);
+ }
+ if ($kLen !== $uLen) {
+ return false;
+ }
+ $result = 0;
+ for ($i = 0; $i < $kLen; $i++) {
+ $result |= (ord($knownString[$i]) ^ ord($userString[$i]));
+ }
+
+ // They are only identical strings if $result is exactly 0...
+ return 0 === $result;
+ }
+}
diff --git a/mayor-orig/www/include/share/gd/imagefilter.php b/mayor-orig/www/include/share/gd/imagefilter.php
new file mode 100644
index 00000000..908b4407
--- /dev/null
+++ b/mayor-orig/www/include/share/gd/imagefilter.php
@@ -0,0 +1,252 @@
+<?php
+
+//include this file whenever you have to use imageconvolution...
+//This is licensed either GPL3 or public domain, pick the one you like
+//you can use in your project, but keep the comment below :)
+//great for any image manipulation library
+//Made by Chao Xu(Mgccl) 3/1/07
+//www.webdevlogs.com
+//V 1.0
+if(!function_exists('imagefilter')){
+
+define('IMG_FILTER_NEGATE',0);
+define('IMG_FILTER_GRAYSCALE',0);
+define('IMG_FILTER_BRIGHTNESS',2);
+define('IMG_FILTER_CONTRAST',3);
+define('IMG_FILTER_COLORIZE',4);
+define('IMG_FILTER_EDGEDETECT',5);
+define('IMG_FILTER_EMBOSS',6);
+define('IMG_FILTER_GAUSSIAN_BLUR',7);
+define('IMG_FILTER_SELECTIVE_BLUR',8);
+define('IMG_FILTER_MEAN_REMOVAL',9);
+define('IMG_FILTER_SMOOTH',10);
+
+
+function imagefilter($source, $var, $arg1 = null, $arg2 = null, $arg3 = null){
+#define('IMAGE_FILTER_NEGATE',0);
+#define('IMAGE_FILTER_GRAYSCALE',0);
+#define('IMAGE_FILTER_BRIGHTNESS',2);
+#define('IMAGE_FILTER_CONTRAST',3);
+#define('IMAGE_FILTER_COLORIZE',4);
+#define('IMAGE_FILTER_EDGEDETECT',5);
+#define('IMAGE_FILTER_EMBOSS',6);
+#define('IMAGE_FILTER_GAUSSIAN_BLUR',7);
+#define('IMAGE_FILTER_SELECTIVE_BLUR',8);
+#define('IMAGE_FILTER_MEAN_REMOVAL',9);
+#define('IMAGE_FILTER_SMOOTH',10);
+$max_y = imagesy($source);
+$max_x = imagesx($source);
+ switch ($var){
+ case 0:
+ $y = 0;
+ while($y<$max_y) {
+ $x = 0;
+ while($x<$max_x){
+ $rgb = imagecolorat($source,$x,$y);
+ $r = 255 - (($rgb >> 16) & 0xFF);
+ $g = 255 - (($rgb >> 8) & 0xFF);
+ $b = 255 - ($rgb & 0xFF);
+ $a = $rgb >> 24;
+ $new_pxl = imagecolorallocatealpha($source, $r, $g, $b, $a);
+ if ($new_pxl == false){
+ $new_pxl = imagecolorclosestalpha($source, $r, $g, $b, $a);
+ }
+ imagesetpixel($source,$x,$y,$new_pxl);
+ ++$x;
+ }
+ ++$y;
+ }
+ return true;
+ break;
+ case 1:
+ $y = 0;
+ while($y<$max_y) {
+ $x = 0;
+ while($x<$max_x){
+ $rgb = imagecolorat($source,$x,$y);
+ $a = $rgb >> 24;
+ $r = ((($rgb >> 16) & 0xFF)*0.299)+((($rgb >> 8) & 0xFF)*0.587)+(($rgb & 0xFF)*0.114);
+ $new_pxl = imagecolorallocatealpha($source, $r, $r, $r, $a);
+ if ($new_pxl == false){
+ $new_pxl = imagecolorclosestalpha($source, $r, $r, $r, $a);
+ }
+ imagesetpixel($source,$x,$y,$new_pxl);
+ ++$x;
+ }
+ ++$y;
+ }
+ return true;
+ break;
+ case 2:
+ $y = 0;
+ while($y<$max_y) {
+ $x = 0;
+ while($x<$max_x){
+ $rgb = imagecolorat($source,$x,$y);
+ $r = (($rgb >> 16) & 0xFF) + $arg1;
+ $g = (($rgb >> 8) & 0xFF) + $arg1;
+ $b = ($rgb & 0xFF) + $arg1;
+ $a = $rgb >> 24;
+ $r = ($r > 255)? 255 : (($r < 0)? 0:$r);
+ $g = ($g > 255)? 255 : (($g < 0)? 0:$g);
+ $b = ($b > 255)? 255 : (($b < 0)? 0:$b);
+ $new_pxl = imagecolorallocatealpha($source, $r, $g, $b, $a);
+ if ($new_pxl == false){
+ $new_pxl = imagecolorclosestalpha($source, $r, $g, $b, $a);
+ }
+ imagesetpixel($source,$x,$y,$new_pxl);
+ ++$x;
+ }
+ ++$y;
+ }
+ return true;
+ break;
+ case 3:
+ $contrast = pow((100-$arg1)/100,2);
+ $y = 0;
+ while($y<$max_y) {
+ $x = 0;
+ while($x<$max_x){
+ $rgb = imagecolorat($source,$x,$y);
+ $a = $rgb >> 24;
+ $r = (((((($rgb >> 16) & 0xFF)/255)-0.5)*$contrast)+0.5)*255;
+ $g = (((((($rgb >> 8) & 0xFF)/255)-0.5)*$contrast)+0.5)*255;
+ $b = ((((($rgb & 0xFF)/255)-0.5)*$contrast)+0.5)*255;
+ $r = ($r > 255)? 255 : (($r < 0)? 0:$r);
+ $g = ($g > 255)? 255 : (($g < 0)? 0:$g);
+ $b = ($b > 255)? 255 : (($b < 0)? 0:$b);
+ $new_pxl = imagecolorallocatealpha($source, $r, $g, $b, $a);
+ if ($new_pxl == false){
+ $new_pxl = imagecolorclosestalpha($source, $r, $g, $b, $a);
+ }
+ imagesetpixel($source,$x,$y,$new_pxl);
+ ++$x;
+ }
+ ++$y;
+ }
+ return true;
+ break;
+ case 4:
+ $x = 0;
+ while($x<$max_x){
+ $y = 0;
+ while($y<$max_y){
+ $rgb = imagecolorat($source, $x, $y);
+ $r = (($rgb >> 16) & 0xFF) + $arg1;
+ $g = (($rgb >> 8) & 0xFF) + $arg2;
+ $b = ($rgb & 0xFF) + $arg3;
+ $a = $rgb >> 24;
+ $r = ($r > 255)? 255 : (($r < 0)? 0:$r);
+ $g = ($g > 255)? 255 : (($g < 0)? 0:$g);
+ $b = ($b > 255)? 255 : (($b < 0)? 0:$b);
+ $new_pxl = imagecolorallocatealpha($source, $r, $g, $b, $a);
+ if ($new_pxl == false){
+ $new_pxl = imagecolorclosestalpha($source, $r, $g, $b, $a);
+ }
+ imagesetpixel($source,$x,$y,$new_pxl);
+ ++$y;
+ }
+ ++$x;
+ }
+ return true;
+ break;
+ case 5:
+ return imageconvolution($source, array(array(-1,0,-1), array(0,4,0), array(-1,0,-1)), 1, 127);
+ break;
+ case 6:
+ return imageconvolution($source, array(array(1.5, 0, 0), array(0, 0, 0), array(0, 0, -1.5)), 1, 127);
+ break;
+ case 7:
+ return imageconvolution($source, array(array(1, 2, 1), array(2, 4, 2), array(1, 2, 1)), 16, 0);
+ break;
+ case 8:
+ for($y = 0; $y<$max_y; $y++) {
+ for ($x = 0; $x<$max_x; $x++) {
+ $flt_r_sum = $flt_g_sum = $flt_b_sum = 0;
+ $cpxl = imagecolorat($source, $x, $y);
+ for ($j=0; $j<3; $j++) {
+ for ($i=0; $i<3; $i++) {
+ if (($j == 1) && ($i == 1)) {
+ $flt_r[1][1] = $flt_g[1][1] = $flt_b[1][1] = 0.5;
+ } else {
+ $pxl = imagecolorat($source, $x-(3>>1)+$i, $y-(3>>1)+$j);
+
+ $new_a = $pxl >> 24;
+ //$r = (($pxl >> 16) & 0xFF);
+ //$g = (($pxl >> 8) & 0xFF);
+ //$b = ($pxl & 0xFF);
+ $new_r = abs((($cpxl >> 16) & 0xFF) - (($pxl >> 16) & 0xFF));
+ if ($new_r != 0) {
+ $flt_r[$j][$i] = 1/$new_r;
+ } else {
+ $flt_r[$j][$i] = 1;
+ }
+
+ $new_g = abs((($cpxl >> 8) & 0xFF) - (($pxl >> 8) & 0xFF));
+ if ($new_g != 0) {
+ $flt_g[$j][$i] = 1/$new_g;
+ } else {
+ $flt_g[$j][$i] = 1;
+ }
+
+ $new_b = abs(($cpxl & 0xFF) - ($pxl & 0xFF));
+ if ($new_b != 0) {
+ $flt_b[$j][$i] = 1/$new_b;
+ } else {
+ $flt_b[$j][$i] = 1;
+ }
+ }
+
+ $flt_r_sum += $flt_r[$j][$i];
+ $flt_g_sum += $flt_g[$j][$i];
+ $flt_b_sum += $flt_b[$j][$i];
+ }
+ }
+
+ for ($j=0; $j<3; $j++) {
+ for ($i=0; $i<3; $i++) {
+ if ($flt_r_sum != 0) {
+ $flt_r[$j][$i] /= $flt_r_sum;
+ }
+ if ($flt_g_sum != 0) {
+ $flt_g[$j][$i] /= $flt_g_sum;
+ }
+ if ($flt_b_sum != 0) {
+ $flt_b[$j][$i] /= $flt_b_sum;
+ }
+ }
+ }
+
+ $new_r = $new_g = $new_b = 0;
+
+ for ($j=0; $j<3; $j++) {
+ for ($i=0; $i<3; $i++) {
+ $pxl = imagecolorat($source, $x-(3>>1)+$i, $y-(3>>1)+$j);
+ $new_r += (($pxl >> 16) & 0xFF) * $flt_r[$j][$i];
+ $new_g += (($pxl >> 8) & 0xFF) * $flt_g[$j][$i];
+ $new_b += ($pxl & 0xFF) * $flt_b[$j][$i];
+ }
+ }
+
+ $new_r = ($new_r > 255)? 255 : (($new_r < 0)? 0:$new_r);
+ $new_g = ($new_g > 255)? 255 : (($new_g < 0)? 0:$new_g);
+ $new_b = ($new_b > 255)? 255 : (($new_b < 0)? 0:$new_b);
+ $new_pxl = ImageColorAllocateAlpha($source, (int)$new_r, (int)$new_g, (int)$new_b, $new_a);
+ if ($new_pxl == false) {
+ $new_pxl = ImageColorClosestAlpha($source, (int)$new_r, (int)$new_g, (int)$new_b, $new_a);
+ }
+ imagesetpixel($source,$x,$y,$new_pxl);
+ }
+ }
+ return true;
+ break;
+ case 9:
+ return imageconvolution($source, array(array(-1,-1,-1),array(-1,9,-1),array(-1,-1,-1)), 1, 0);
+ break;
+ case 10:
+ return imageconvolution($source, array(array(1,1,1),array(1,$arg1,1),array(1,1,1)), $arg1+8, 0);
+ break;
+ }
+}
+}
+?>
diff --git a/mayor-orig/www/include/share/googleapi/autoload.php b/mayor-orig/www/include/share/googleapi/autoload.php
new file mode 100644
index 00000000..f51c20c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/autoload.php
@@ -0,0 +1,7 @@
+<?php
+
+// autoload.php @generated by Composer
+
+require_once __DIR__ . '/composer/autoload_real.php';
+
+return ComposerAutoloaderInit93fe46837b05a1a7f3fe21c3c3d374b7::getLoader();
diff --git a/mayor-orig/www/include/share/googleapi/composer/ClassLoader.php b/mayor-orig/www/include/share/googleapi/composer/ClassLoader.php
new file mode 100644
index 00000000..2c72175e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/ClassLoader.php
@@ -0,0 +1,445 @@
+<?php
+
+/*
+ * This file is part of Composer.
+ *
+ * (c) Nils Adermann <naderman@naderman.de>
+ * Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Composer\Autoload;
+
+/**
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
+ *
+ * $loader = new \Composer\Autoload\ClassLoader();
+ *
+ * // register classes with namespaces
+ * $loader->add('Symfony\Component', __DIR__.'/component');
+ * $loader->add('Symfony', __DIR__.'/framework');
+ *
+ * // activate the autoloader
+ * $loader->register();
+ *
+ * // to enable searching the include path (eg. for PEAR packages)
+ * $loader->setUseIncludePath(true);
+ *
+ * In this example, if you try to use a class in the Symfony\Component
+ * namespace or one of its children (Symfony\Component\Console for instance),
+ * the autoloader will first look for the class under the component/
+ * directory, and it will then fallback to the framework/ directory if not
+ * found before giving up.
+ *
+ * This class is loosely based on the Symfony UniversalClassLoader.
+ *
+ * @author Fabien Potencier <fabien@symfony.com>
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ * @see http://www.php-fig.org/psr/psr-0/
+ * @see http://www.php-fig.org/psr/psr-4/
+ */
+class ClassLoader
+{
+ // PSR-4
+ private $prefixLengthsPsr4 = array();
+ private $prefixDirsPsr4 = array();
+ private $fallbackDirsPsr4 = array();
+
+ // PSR-0
+ private $prefixesPsr0 = array();
+ private $fallbackDirsPsr0 = array();
+
+ private $useIncludePath = false;
+ private $classMap = array();
+ private $classMapAuthoritative = false;
+ private $missingClasses = array();
+ private $apcuPrefix;
+
+ public function getPrefixes()
+ {
+ if (!empty($this->prefixesPsr0)) {
+ return call_user_func_array('array_merge', $this->prefixesPsr0);
+ }
+
+ return array();
+ }
+
+ public function getPrefixesPsr4()
+ {
+ return $this->prefixDirsPsr4;
+ }
+
+ public function getFallbackDirs()
+ {
+ return $this->fallbackDirsPsr0;
+ }
+
+ public function getFallbackDirsPsr4()
+ {
+ return $this->fallbackDirsPsr4;
+ }
+
+ public function getClassMap()
+ {
+ return $this->classMap;
+ }
+
+ /**
+ * @param array $classMap Class to filename map
+ */
+ public function addClassMap(array $classMap)
+ {
+ if ($this->classMap) {
+ $this->classMap = array_merge($this->classMap, $classMap);
+ } else {
+ $this->classMap = $classMap;
+ }
+ }
+
+ /**
+ * Registers a set of PSR-0 directories for a given prefix, either
+ * appending or prepending to the ones previously set for this prefix.
+ *
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 root directories
+ * @param bool $prepend Whether to prepend the directories
+ */
+ public function add($prefix, $paths, $prepend = false)
+ {
+ if (!$prefix) {
+ if ($prepend) {
+ $this->fallbackDirsPsr0 = array_merge(
+ (array) $paths,
+ $this->fallbackDirsPsr0
+ );
+ } else {
+ $this->fallbackDirsPsr0 = array_merge(
+ $this->fallbackDirsPsr0,
+ (array) $paths
+ );
+ }
+
+ return;
+ }
+
+ $first = $prefix[0];
+ if (!isset($this->prefixesPsr0[$first][$prefix])) {
+ $this->prefixesPsr0[$first][$prefix] = (array) $paths;
+
+ return;
+ }
+ if ($prepend) {
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
+ (array) $paths,
+ $this->prefixesPsr0[$first][$prefix]
+ );
+ } else {
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
+ $this->prefixesPsr0[$first][$prefix],
+ (array) $paths
+ );
+ }
+ }
+
+ /**
+ * Registers a set of PSR-4 directories for a given namespace, either
+ * appending or prepending to the ones previously set for this namespace.
+ *
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-4 base directories
+ * @param bool $prepend Whether to prepend the directories
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function addPsr4($prefix, $paths, $prepend = false)
+ {
+ if (!$prefix) {
+ // Register directories for the root namespace.
+ if ($prepend) {
+ $this->fallbackDirsPsr4 = array_merge(
+ (array) $paths,
+ $this->fallbackDirsPsr4
+ );
+ } else {
+ $this->fallbackDirsPsr4 = array_merge(
+ $this->fallbackDirsPsr4,
+ (array) $paths
+ );
+ }
+ } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
+ // Register directories for a new namespace.
+ $length = strlen($prefix);
+ if ('\\' !== $prefix[$length - 1]) {
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
+ }
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
+ } elseif ($prepend) {
+ // Prepend directories for an already registered namespace.
+ $this->prefixDirsPsr4[$prefix] = array_merge(
+ (array) $paths,
+ $this->prefixDirsPsr4[$prefix]
+ );
+ } else {
+ // Append directories for an already registered namespace.
+ $this->prefixDirsPsr4[$prefix] = array_merge(
+ $this->prefixDirsPsr4[$prefix],
+ (array) $paths
+ );
+ }
+ }
+
+ /**
+ * Registers a set of PSR-0 directories for a given prefix,
+ * replacing any others previously set for this prefix.
+ *
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 base directories
+ */
+ public function set($prefix, $paths)
+ {
+ if (!$prefix) {
+ $this->fallbackDirsPsr0 = (array) $paths;
+ } else {
+ $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
+ }
+ }
+
+ /**
+ * Registers a set of PSR-4 directories for a given namespace,
+ * replacing any others previously set for this namespace.
+ *
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-4 base directories
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function setPsr4($prefix, $paths)
+ {
+ if (!$prefix) {
+ $this->fallbackDirsPsr4 = (array) $paths;
+ } else {
+ $length = strlen($prefix);
+ if ('\\' !== $prefix[$length - 1]) {
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
+ }
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
+ }
+ }
+
+ /**
+ * Turns on searching the include path for class files.
+ *
+ * @param bool $useIncludePath
+ */
+ public function setUseIncludePath($useIncludePath)
+ {
+ $this->useIncludePath = $useIncludePath;
+ }
+
+ /**
+ * Can be used to check if the autoloader uses the include path to check
+ * for classes.
+ *
+ * @return bool
+ */
+ public function getUseIncludePath()
+ {
+ return $this->useIncludePath;
+ }
+
+ /**
+ * Turns off searching the prefix and fallback directories for classes
+ * that have not been registered with the class map.
+ *
+ * @param bool $classMapAuthoritative
+ */
+ public function setClassMapAuthoritative($classMapAuthoritative)
+ {
+ $this->classMapAuthoritative = $classMapAuthoritative;
+ }
+
+ /**
+ * Should class lookup fail if not found in the current class map?
+ *
+ * @return bool
+ */
+ public function isClassMapAuthoritative()
+ {
+ return $this->classMapAuthoritative;
+ }
+
+ /**
+ * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
+ *
+ * @param string|null $apcuPrefix
+ */
+ public function setApcuPrefix($apcuPrefix)
+ {
+ $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
+ }
+
+ /**
+ * The APCu prefix in use, or null if APCu caching is not enabled.
+ *
+ * @return string|null
+ */
+ public function getApcuPrefix()
+ {
+ return $this->apcuPrefix;
+ }
+
+ /**
+ * Registers this instance as an autoloader.
+ *
+ * @param bool $prepend Whether to prepend the autoloader or not
+ */
+ public function register($prepend = false)
+ {
+ spl_autoload_register(array($this, 'loadClass'), true, $prepend);
+ }
+
+ /**
+ * Unregisters this instance as an autoloader.
+ */
+ public function unregister()
+ {
+ spl_autoload_unregister(array($this, 'loadClass'));
+ }
+
+ /**
+ * Loads the given class or interface.
+ *
+ * @param string $class The name of the class
+ * @return bool|null True if loaded, null otherwise
+ */
+ public function loadClass($class)
+ {
+ if ($file = $this->findFile($class)) {
+ includeFile($file);
+
+ return true;
+ }
+ }
+
+ /**
+ * Finds the path to the file where the class is defined.
+ *
+ * @param string $class The name of the class
+ *
+ * @return string|false The path if found, false otherwise
+ */
+ public function findFile($class)
+ {
+ // class map lookup
+ if (isset($this->classMap[$class])) {
+ return $this->classMap[$class];
+ }
+ if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
+ return false;
+ }
+ if (null !== $this->apcuPrefix) {
+ $file = apcu_fetch($this->apcuPrefix.$class, $hit);
+ if ($hit) {
+ return $file;
+ }
+ }
+
+ $file = $this->findFileWithExtension($class, '.php');
+
+ // Search for Hack files if we are running on HHVM
+ if (false === $file && defined('HHVM_VERSION')) {
+ $file = $this->findFileWithExtension($class, '.hh');
+ }
+
+ if (null !== $this->apcuPrefix) {
+ apcu_add($this->apcuPrefix.$class, $file);
+ }
+
+ if (false === $file) {
+ // Remember that this class does not exist.
+ $this->missingClasses[$class] = true;
+ }
+
+ return $file;
+ }
+
+ private function findFileWithExtension($class, $ext)
+ {
+ // PSR-4 lookup
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
+
+ $first = $class[0];
+ if (isset($this->prefixLengthsPsr4[$first])) {
+ $subPath = $class;
+ while (false !== $lastPos = strrpos($subPath, '\\')) {
+ $subPath = substr($subPath, 0, $lastPos);
+ $search = $subPath.'\\';
+ if (isset($this->prefixDirsPsr4[$search])) {
+ foreach ($this->prefixDirsPsr4[$search] as $dir) {
+ $length = $this->prefixLengthsPsr4[$first][$search];
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
+ return $file;
+ }
+ }
+ }
+ }
+ }
+
+ // PSR-4 fallback dirs
+ foreach ($this->fallbackDirsPsr4 as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
+ return $file;
+ }
+ }
+
+ // PSR-0 lookup
+ if (false !== $pos = strrpos($class, '\\')) {
+ // namespaced class name
+ $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
+ . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
+ } else {
+ // PEAR-like class name
+ $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
+ }
+
+ if (isset($this->prefixesPsr0[$first])) {
+ foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
+ if (0 === strpos($class, $prefix)) {
+ foreach ($dirs as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
+ return $file;
+ }
+ }
+ }
+ }
+ }
+
+ // PSR-0 fallback dirs
+ foreach ($this->fallbackDirsPsr0 as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
+ return $file;
+ }
+ }
+
+ // PSR-0 include paths.
+ if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
+ return $file;
+ }
+
+ return false;
+ }
+}
+
+/**
+ * Scope isolated include.
+ *
+ * Prevents access to $this/self from included files.
+ */
+function includeFile($file)
+{
+ include $file;
+}
diff --git a/mayor-orig/www/include/share/googleapi/composer/LICENSE b/mayor-orig/www/include/share/googleapi/composer/LICENSE
new file mode 100644
index 00000000..f27399a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/LICENSE
@@ -0,0 +1,21 @@
+
+Copyright (c) Nils Adermann, Jordi Boggiano
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/mayor-orig/www/include/share/googleapi/composer/autoload_classmap.php b/mayor-orig/www/include/share/googleapi/composer/autoload_classmap.php
new file mode 100644
index 00000000..c153b061
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/autoload_classmap.php
@@ -0,0 +1,35 @@
+<?php
+
+// autoload_classmap.php @generated by Composer
+
+$vendorDir = dirname(dirname(__FILE__));
+$baseDir = dirname($vendorDir);
+
+return array(
+ 'Google\\Auth\\ApplicationDefaultCredentials' => $vendorDir . '/google/auth/src/ApplicationDefaultCredentials.php',
+ 'Google\\Auth\\CacheTrait' => $vendorDir . '/google/auth/src/CacheTrait.php',
+ 'Google\\Auth\\Cache\\InvalidArgumentException' => $vendorDir . '/google/auth/src/Cache/InvalidArgumentException.php',
+ 'Google\\Auth\\Cache\\Item' => $vendorDir . '/google/auth/src/Cache/Item.php',
+ 'Google\\Auth\\Cache\\MemoryCacheItemPool' => $vendorDir . '/google/auth/src/Cache/MemoryCacheItemPool.php',
+ 'Google\\Auth\\CredentialsLoader' => $vendorDir . '/google/auth/src/CredentialsLoader.php',
+ 'Google\\Auth\\Credentials\\AppIdentityCredentials' => $vendorDir . '/google/auth/src/Credentials/AppIdentityCredentials.php',
+ 'Google\\Auth\\Credentials\\GCECredentials' => $vendorDir . '/google/auth/src/Credentials/GCECredentials.php',
+ 'Google\\Auth\\Credentials\\IAMCredentials' => $vendorDir . '/google/auth/src/Credentials/IAMCredentials.php',
+ 'Google\\Auth\\Credentials\\ServiceAccountCredentials' => $vendorDir . '/google/auth/src/Credentials/ServiceAccountCredentials.php',
+ 'Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => $vendorDir . '/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php',
+ 'Google\\Auth\\Credentials\\UserRefreshCredentials' => $vendorDir . '/google/auth/src/Credentials/UserRefreshCredentials.php',
+ 'Google\\Auth\\FetchAuthTokenCache' => $vendorDir . '/google/auth/src/FetchAuthTokenCache.php',
+ 'Google\\Auth\\FetchAuthTokenInterface' => $vendorDir . '/google/auth/src/FetchAuthTokenInterface.php',
+ 'Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => $vendorDir . '/google/auth/src/HttpHandler/Guzzle5HttpHandler.php',
+ 'Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => $vendorDir . '/google/auth/src/HttpHandler/Guzzle6HttpHandler.php',
+ 'Google\\Auth\\HttpHandler\\HttpHandlerFactory' => $vendorDir . '/google/auth/src/HttpHandler/HttpHandlerFactory.php',
+ 'Google\\Auth\\Middleware\\AuthTokenMiddleware' => $vendorDir . '/google/auth/src/Middleware/AuthTokenMiddleware.php',
+ 'Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => $vendorDir . '/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php',
+ 'Google\\Auth\\Middleware\\SimpleMiddleware' => $vendorDir . '/google/auth/src/Middleware/SimpleMiddleware.php',
+ 'Google\\Auth\\OAuth2' => $vendorDir . '/google/auth/src/OAuth2.php',
+ 'Google\\Auth\\Subscriber\\AuthTokenSubscriber' => $vendorDir . '/google/auth/src/Subscriber/AuthTokenSubscriber.php',
+ 'Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => $vendorDir . '/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php',
+ 'Google\\Auth\\Subscriber\\SimpleSubscriber' => $vendorDir . '/google/auth/src/Subscriber/SimpleSubscriber.php',
+ 'Google_Service_Exception' => $vendorDir . '/google/apiclient/src/Google/Service/Exception.php',
+ 'Google_Service_Resource' => $vendorDir . '/google/apiclient/src/Google/Service/Resource.php',
+);
diff --git a/mayor-orig/www/include/share/googleapi/composer/autoload_files.php b/mayor-orig/www/include/share/googleapi/composer/autoload_files.php
new file mode 100644
index 00000000..56bb586c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/autoload_files.php
@@ -0,0 +1,13 @@
+<?php
+
+// autoload_files.php @generated by Composer
+
+$vendorDir = dirname(dirname(__FILE__));
+$baseDir = dirname($vendorDir);
+
+return array(
+ 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
+ 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
+ '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
+ 'decc78cc4436b1292c6c0d151b19445c' => $vendorDir . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
+);
diff --git a/mayor-orig/www/include/share/googleapi/composer/autoload_namespaces.php b/mayor-orig/www/include/share/googleapi/composer/autoload_namespaces.php
new file mode 100644
index 00000000..aed9f84e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/autoload_namespaces.php
@@ -0,0 +1,11 @@
+<?php
+
+// autoload_namespaces.php @generated by Composer
+
+$vendorDir = dirname(dirname(__FILE__));
+$baseDir = dirname($vendorDir);
+
+return array(
+ 'Google_Service_' => array($vendorDir . '/google/apiclient-services/src'),
+ 'Google_' => array($vendorDir . '/google/apiclient/src'),
+);
diff --git a/mayor-orig/www/include/share/googleapi/composer/autoload_psr4.php b/mayor-orig/www/include/share/googleapi/composer/autoload_psr4.php
new file mode 100644
index 00000000..36bd6b5a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/autoload_psr4.php
@@ -0,0 +1,19 @@
+<?php
+
+// autoload_psr4.php @generated by Composer
+
+$vendorDir = dirname(dirname(__FILE__));
+$baseDir = dirname($vendorDir);
+
+return array(
+ 'phpseclib\\' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
+ 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
+ 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
+ 'Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'),
+ 'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
+ 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
+ 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
+ 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
+ 'Google\\Auth\\' => array($vendorDir . '/google/auth/src'),
+ 'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
+);
diff --git a/mayor-orig/www/include/share/googleapi/composer/autoload_real.php b/mayor-orig/www/include/share/googleapi/composer/autoload_real.php
new file mode 100644
index 00000000..84415c51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/autoload_real.php
@@ -0,0 +1,70 @@
+<?php
+
+// autoload_real.php @generated by Composer
+
+class ComposerAutoloaderInit93fe46837b05a1a7f3fe21c3c3d374b7
+{
+ private static $loader;
+
+ public static function loadClassLoader($class)
+ {
+ if ('Composer\Autoload\ClassLoader' === $class) {
+ require __DIR__ . '/ClassLoader.php';
+ }
+ }
+
+ public static function getLoader()
+ {
+ if (null !== self::$loader) {
+ return self::$loader;
+ }
+
+ spl_autoload_register(array('ComposerAutoloaderInit93fe46837b05a1a7f3fe21c3c3d374b7', 'loadClassLoader'), true, true);
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader();
+ spl_autoload_unregister(array('ComposerAutoloaderInit93fe46837b05a1a7f3fe21c3c3d374b7', 'loadClassLoader'));
+
+ $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
+ if ($useStaticLoader) {
+ require_once __DIR__ . '/autoload_static.php';
+
+ call_user_func(\Composer\Autoload\ComposerStaticInit93fe46837b05a1a7f3fe21c3c3d374b7::getInitializer($loader));
+ } else {
+ $map = require __DIR__ . '/autoload_namespaces.php';
+ foreach ($map as $namespace => $path) {
+ $loader->set($namespace, $path);
+ }
+
+ $map = require __DIR__ . '/autoload_psr4.php';
+ foreach ($map as $namespace => $path) {
+ $loader->setPsr4($namespace, $path);
+ }
+
+ $classMap = require __DIR__ . '/autoload_classmap.php';
+ if ($classMap) {
+ $loader->addClassMap($classMap);
+ }
+ }
+
+ $loader->register(true);
+
+ if ($useStaticLoader) {
+ $includeFiles = Composer\Autoload\ComposerStaticInit93fe46837b05a1a7f3fe21c3c3d374b7::$files;
+ } else {
+ $includeFiles = require __DIR__ . '/autoload_files.php';
+ }
+ foreach ($includeFiles as $fileIdentifier => $file) {
+ composerRequire93fe46837b05a1a7f3fe21c3c3d374b7($fileIdentifier, $file);
+ }
+
+ return $loader;
+ }
+}
+
+function composerRequire93fe46837b05a1a7f3fe21c3c3d374b7($fileIdentifier, $file)
+{
+ if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
+ require $file;
+
+ $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/composer/autoload_static.php b/mayor-orig/www/include/share/googleapi/composer/autoload_static.php
new file mode 100644
index 00000000..9893763c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/autoload_static.php
@@ -0,0 +1,140 @@
+<?php
+
+// autoload_static.php @generated by Composer
+
+namespace Composer\Autoload;
+
+class ComposerStaticInit93fe46837b05a1a7f3fe21c3c3d374b7
+{
+ public static $files = array (
+ 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
+ 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
+ '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
+ 'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php',
+ );
+
+ public static $prefixLengthsPsr4 = array (
+ 'p' =>
+ array (
+ 'phpseclib\\' => 10,
+ ),
+ 'P' =>
+ array (
+ 'Psr\\Log\\' => 8,
+ 'Psr\\Http\\Message\\' => 17,
+ 'Psr\\Cache\\' => 10,
+ ),
+ 'M' =>
+ array (
+ 'Monolog\\' => 8,
+ ),
+ 'G' =>
+ array (
+ 'GuzzleHttp\\Psr7\\' => 16,
+ 'GuzzleHttp\\Promise\\' => 19,
+ 'GuzzleHttp\\' => 11,
+ 'Google\\Auth\\' => 12,
+ ),
+ 'F' =>
+ array (
+ 'Firebase\\JWT\\' => 13,
+ ),
+ );
+
+ public static $prefixDirsPsr4 = array (
+ 'phpseclib\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib',
+ ),
+ 'Psr\\Log\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
+ ),
+ 'Psr\\Http\\Message\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/psr/http-message/src',
+ ),
+ 'Psr\\Cache\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/psr/cache/src',
+ ),
+ 'Monolog\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog',
+ ),
+ 'GuzzleHttp\\Psr7\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
+ ),
+ 'GuzzleHttp\\Promise\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
+ ),
+ 'GuzzleHttp\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
+ ),
+ 'Google\\Auth\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/google/auth/src',
+ ),
+ 'Firebase\\JWT\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/firebase/php-jwt/src',
+ ),
+ );
+
+ public static $prefixesPsr0 = array (
+ 'G' =>
+ array (
+ 'Google_Service_' =>
+ array (
+ 0 => __DIR__ . '/..' . '/google/apiclient-services/src',
+ ),
+ 'Google_' =>
+ array (
+ 0 => __DIR__ . '/..' . '/google/apiclient/src',
+ ),
+ ),
+ );
+
+ public static $classMap = array (
+ 'Google\\Auth\\ApplicationDefaultCredentials' => __DIR__ . '/..' . '/google/auth/src/ApplicationDefaultCredentials.php',
+ 'Google\\Auth\\CacheTrait' => __DIR__ . '/..' . '/google/auth/src/CacheTrait.php',
+ 'Google\\Auth\\Cache\\InvalidArgumentException' => __DIR__ . '/..' . '/google/auth/src/Cache/InvalidArgumentException.php',
+ 'Google\\Auth\\Cache\\Item' => __DIR__ . '/..' . '/google/auth/src/Cache/Item.php',
+ 'Google\\Auth\\Cache\\MemoryCacheItemPool' => __DIR__ . '/..' . '/google/auth/src/Cache/MemoryCacheItemPool.php',
+ 'Google\\Auth\\CredentialsLoader' => __DIR__ . '/..' . '/google/auth/src/CredentialsLoader.php',
+ 'Google\\Auth\\Credentials\\AppIdentityCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/AppIdentityCredentials.php',
+ 'Google\\Auth\\Credentials\\GCECredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/GCECredentials.php',
+ 'Google\\Auth\\Credentials\\IAMCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/IAMCredentials.php',
+ 'Google\\Auth\\Credentials\\ServiceAccountCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/ServiceAccountCredentials.php',
+ 'Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php',
+ 'Google\\Auth\\Credentials\\UserRefreshCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/UserRefreshCredentials.php',
+ 'Google\\Auth\\FetchAuthTokenCache' => __DIR__ . '/..' . '/google/auth/src/FetchAuthTokenCache.php',
+ 'Google\\Auth\\FetchAuthTokenInterface' => __DIR__ . '/..' . '/google/auth/src/FetchAuthTokenInterface.php',
+ 'Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => __DIR__ . '/..' . '/google/auth/src/HttpHandler/Guzzle5HttpHandler.php',
+ 'Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => __DIR__ . '/..' . '/google/auth/src/HttpHandler/Guzzle6HttpHandler.php',
+ 'Google\\Auth\\HttpHandler\\HttpHandlerFactory' => __DIR__ . '/..' . '/google/auth/src/HttpHandler/HttpHandlerFactory.php',
+ 'Google\\Auth\\Middleware\\AuthTokenMiddleware' => __DIR__ . '/..' . '/google/auth/src/Middleware/AuthTokenMiddleware.php',
+ 'Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => __DIR__ . '/..' . '/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php',
+ 'Google\\Auth\\Middleware\\SimpleMiddleware' => __DIR__ . '/..' . '/google/auth/src/Middleware/SimpleMiddleware.php',
+ 'Google\\Auth\\OAuth2' => __DIR__ . '/..' . '/google/auth/src/OAuth2.php',
+ 'Google\\Auth\\Subscriber\\AuthTokenSubscriber' => __DIR__ . '/..' . '/google/auth/src/Subscriber/AuthTokenSubscriber.php',
+ 'Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => __DIR__ . '/..' . '/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php',
+ 'Google\\Auth\\Subscriber\\SimpleSubscriber' => __DIR__ . '/..' . '/google/auth/src/Subscriber/SimpleSubscriber.php',
+ 'Google_Service_Exception' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Exception.php',
+ 'Google_Service_Resource' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Resource.php',
+ );
+
+ public static function getInitializer(ClassLoader $loader)
+ {
+ return \Closure::bind(function () use ($loader) {
+ $loader->prefixLengthsPsr4 = ComposerStaticInit93fe46837b05a1a7f3fe21c3c3d374b7::$prefixLengthsPsr4;
+ $loader->prefixDirsPsr4 = ComposerStaticInit93fe46837b05a1a7f3fe21c3c3d374b7::$prefixDirsPsr4;
+ $loader->prefixesPsr0 = ComposerStaticInit93fe46837b05a1a7f3fe21c3c3d374b7::$prefixesPsr0;
+ $loader->classMap = ComposerStaticInit93fe46837b05a1a7f3fe21c3c3d374b7::$classMap;
+
+ }, null, ClassLoader::class);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/composer/installed.json b/mayor-orig/www/include/share/googleapi/composer/installed.json
new file mode 100644
index 00000000..274eeed6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/composer/installed.json
@@ -0,0 +1,707 @@
+[
+ {
+ "name": "psr/http-message",
+ "version": "1.0.1",
+ "version_normalized": "1.0.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/http-message.git",
+ "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "time": "2016-08-06T14:39:51+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Psr\\Http\\Message\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for HTTP messages",
+ "homepage": "https://github.com/php-fig/http-message",
+ "keywords": [
+ "http",
+ "http-message",
+ "psr",
+ "psr-7",
+ "request",
+ "response"
+ ]
+ },
+ {
+ "name": "guzzlehttp/psr7",
+ "version": "1.4.2",
+ "version_normalized": "1.4.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/guzzle/psr7.git",
+ "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
+ "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4.0",
+ "psr/http-message": "~1.0"
+ },
+ "provide": {
+ "psr/http-message-implementation": "1.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.0"
+ },
+ "time": "2017-03-20T17:10:46+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "GuzzleHttp\\Psr7\\": "src/"
+ },
+ "files": [
+ "src/functions_include.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "Tobias Schultze",
+ "homepage": "https://github.com/Tobion"
+ }
+ ],
+ "description": "PSR-7 message implementation that also provides common utility methods",
+ "keywords": [
+ "http",
+ "message",
+ "request",
+ "response",
+ "stream",
+ "uri",
+ "url"
+ ]
+ },
+ {
+ "name": "guzzlehttp/promises",
+ "version": "v1.3.1",
+ "version_normalized": "1.3.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/guzzle/promises.git",
+ "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
+ "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.5.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.0"
+ },
+ "time": "2016-12-20T10:07:11+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "GuzzleHttp\\Promise\\": "src/"
+ },
+ "files": [
+ "src/functions_include.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ }
+ ],
+ "description": "Guzzle promises library",
+ "keywords": [
+ "promise"
+ ]
+ },
+ {
+ "name": "guzzlehttp/guzzle",
+ "version": "6.3.0",
+ "version_normalized": "6.3.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/guzzle/guzzle.git",
+ "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699",
+ "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699",
+ "shasum": ""
+ },
+ "require": {
+ "guzzlehttp/promises": "^1.0",
+ "guzzlehttp/psr7": "^1.4",
+ "php": ">=5.5"
+ },
+ "require-dev": {
+ "ext-curl": "*",
+ "phpunit/phpunit": "^4.0 || ^5.0",
+ "psr/log": "^1.0"
+ },
+ "suggest": {
+ "psr/log": "Required for using the Log middleware"
+ },
+ "time": "2017-06-22T18:50:49+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "6.2-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "files": [
+ "src/functions_include.php"
+ ],
+ "psr-4": {
+ "GuzzleHttp\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ }
+ ],
+ "description": "Guzzle is a PHP HTTP client library",
+ "homepage": "http://guzzlephp.org/",
+ "keywords": [
+ "client",
+ "curl",
+ "framework",
+ "http",
+ "http client",
+ "rest",
+ "web service"
+ ]
+ },
+ {
+ "name": "phpseclib/phpseclib",
+ "version": "2.0.6",
+ "version_normalized": "2.0.6.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpseclib/phpseclib.git",
+ "reference": "34a7699e6f31b1ef4035ee36444407cecf9f56aa"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/34a7699e6f31b1ef4035ee36444407cecf9f56aa",
+ "reference": "34a7699e6f31b1ef4035ee36444407cecf9f56aa",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phing/phing": "~2.7",
+ "phpunit/phpunit": "~4.0",
+ "sami/sami": "~2.0",
+ "squizlabs/php_codesniffer": "~2.0"
+ },
+ "suggest": {
+ "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.",
+ "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.",
+ "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.",
+ "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations."
+ },
+ "time": "2017-06-05T06:31:10+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "files": [
+ "phpseclib/bootstrap.php"
+ ],
+ "psr-4": {
+ "phpseclib\\": "phpseclib/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jim Wigginton",
+ "email": "terrafrost@php.net",
+ "role": "Lead Developer"
+ },
+ {
+ "name": "Patrick Monnerat",
+ "email": "pm@datasphere.ch",
+ "role": "Developer"
+ },
+ {
+ "name": "Andreas Fischer",
+ "email": "bantu@phpbb.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Hans-Jürgen Petrich",
+ "email": "petrich@tronic-media.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com",
+ "role": "Developer"
+ }
+ ],
+ "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.",
+ "homepage": "http://phpseclib.sourceforge.net",
+ "keywords": [
+ "BigInteger",
+ "aes",
+ "asn.1",
+ "asn1",
+ "blowfish",
+ "crypto",
+ "cryptography",
+ "encryption",
+ "rsa",
+ "security",
+ "sftp",
+ "signature",
+ "signing",
+ "ssh",
+ "twofish",
+ "x.509",
+ "x509"
+ ]
+ },
+ {
+ "name": "psr/log",
+ "version": "1.0.2",
+ "version_normalized": "1.0.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/log.git",
+ "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
+ "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "time": "2016-10-10T12:19:37+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Psr\\Log\\": "Psr/Log/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for logging libraries",
+ "homepage": "https://github.com/php-fig/log",
+ "keywords": [
+ "log",
+ "psr",
+ "psr-3"
+ ]
+ },
+ {
+ "name": "monolog/monolog",
+ "version": "1.23.0",
+ "version_normalized": "1.23.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/Seldaek/monolog.git",
+ "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/Seldaek/monolog/zipball/fd8c787753b3a2ad11bc60c063cff1358a32a3b4",
+ "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0",
+ "psr/log": "~1.0"
+ },
+ "provide": {
+ "psr/log-implementation": "1.0.0"
+ },
+ "require-dev": {
+ "aws/aws-sdk-php": "^2.4.9 || ^3.0",
+ "doctrine/couchdb": "~1.0@dev",
+ "graylog2/gelf-php": "~1.0",
+ "jakub-onderka/php-parallel-lint": "0.9",
+ "php-amqplib/php-amqplib": "~2.4",
+ "php-console/php-console": "^3.1.3",
+ "phpunit/phpunit": "~4.5",
+ "phpunit/phpunit-mock-objects": "2.3.0",
+ "ruflin/elastica": ">=0.90 <3.0",
+ "sentry/sentry": "^0.13",
+ "swiftmailer/swiftmailer": "^5.3|^6.0"
+ },
+ "suggest": {
+ "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
+ "doctrine/couchdb": "Allow sending log messages to a CouchDB server",
+ "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
+ "ext-mongo": "Allow sending log messages to a MongoDB server",
+ "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
+ "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver",
+ "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",
+ "php-console/php-console": "Allow sending log messages to Google Chrome",
+ "rollbar/rollbar": "Allow sending log messages to Rollbar",
+ "ruflin/elastica": "Allow sending log messages to an Elastic Search server",
+ "sentry/sentry": "Allow sending log messages to a Sentry server"
+ },
+ "time": "2017-06-19T01:22:40+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Monolog\\": "src/Monolog"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
+ "homepage": "http://github.com/Seldaek/monolog",
+ "keywords": [
+ "log",
+ "logging",
+ "psr-3"
+ ]
+ },
+ {
+ "name": "firebase/php-jwt",
+ "version": "v4.0.0",
+ "version_normalized": "4.0.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/firebase/php-jwt.git",
+ "reference": "dccf163dc8ed7ed6a00afc06c51ee5186a428d35"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/firebase/php-jwt/zipball/dccf163dc8ed7ed6a00afc06c51ee5186a428d35",
+ "reference": "dccf163dc8ed7ed6a00afc06c51ee5186a428d35",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "time": "2016-07-18T04:51:16+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Firebase\\JWT\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Neuman Vong",
+ "email": "neuman+pear@twilio.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Anant Narayanan",
+ "email": "anant@php.net",
+ "role": "Developer"
+ }
+ ],
+ "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
+ "homepage": "https://github.com/firebase/php-jwt"
+ },
+ {
+ "name": "google/apiclient-services",
+ "version": "v0.11",
+ "version_normalized": "0.11.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/google/google-api-php-client-services.git",
+ "reference": "48c554aee06f2fd5700d7bdfa4fa6b82d184eb52"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/google/google-api-php-client-services/zipball/48c554aee06f2fd5700d7bdfa4fa6b82d184eb52",
+ "reference": "48c554aee06f2fd5700d7bdfa4fa6b82d184eb52",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.8"
+ },
+ "time": "2017-03-13T17:40:44+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-0": {
+ "Google_Service_": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Apache-2.0"
+ ],
+ "description": "Client library for Google APIs",
+ "homepage": "http://developers.google.com/api-client-library/php",
+ "keywords": [
+ "google"
+ ]
+ },
+ {
+ "name": "psr/cache",
+ "version": "1.0.1",
+ "version_normalized": "1.0.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/cache.git",
+ "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8",
+ "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "time": "2016-08-06T20:24:11+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Psr\\Cache\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for caching libraries",
+ "keywords": [
+ "cache",
+ "psr",
+ "psr-6"
+ ]
+ },
+ {
+ "name": "google/auth",
+ "version": "v0.11.1",
+ "version_normalized": "0.11.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/google/google-auth-library-php.git",
+ "reference": "a240674b08a09949fd5597f7590b3ed83663a12d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/google/google-auth-library-php/zipball/a240674b08a09949fd5597f7590b3ed83663a12d",
+ "reference": "a240674b08a09949fd5597f7590b3ed83663a12d",
+ "shasum": ""
+ },
+ "require": {
+ "firebase/php-jwt": "~2.0|~3.0|~4.0",
+ "guzzlehttp/guzzle": "~5.3|~6.0",
+ "guzzlehttp/psr7": "~1.2",
+ "php": ">=5.4",
+ "psr/cache": "^1.0",
+ "psr/http-message": "^1.0"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "^1.11",
+ "phpunit/phpunit": "3.7.*"
+ },
+ "time": "2016-11-02T14:59:14+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ],
+ "psr-4": {
+ "Google\\Auth\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Apache-2.0"
+ ],
+ "description": "Google Auth Library for PHP",
+ "homepage": "http://github.com/google/google-auth-library-php",
+ "keywords": [
+ "Authentication",
+ "google",
+ "oauth2"
+ ]
+ },
+ {
+ "name": "google/apiclient",
+ "version": "v2.1.3",
+ "version_normalized": "2.1.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/google/google-api-php-client.git",
+ "reference": "43996f09df274158fd04fce98e8a82effe5f3717"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/google/google-api-php-client/zipball/43996f09df274158fd04fce98e8a82effe5f3717",
+ "reference": "43996f09df274158fd04fce98e8a82effe5f3717",
+ "shasum": ""
+ },
+ "require": {
+ "firebase/php-jwt": "~2.0|~3.0|~4.0",
+ "google/apiclient-services": "^0.11",
+ "google/auth": "^0.11",
+ "guzzlehttp/guzzle": "~5.2|~6.0",
+ "guzzlehttp/psr7": "^1.2",
+ "monolog/monolog": "^1.17",
+ "php": ">=5.4",
+ "phpseclib/phpseclib": "~0.3.10|~2.0"
+ },
+ "require-dev": {
+ "cache/filesystem-adapter": "^0.3.2",
+ "phpunit/phpunit": "~4",
+ "squizlabs/php_codesniffer": "~2.3",
+ "symfony/css-selector": "~2.1",
+ "symfony/dom-crawler": "~2.1"
+ },
+ "suggest": {
+ "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)"
+ },
+ "time": "2017-03-22T18:32:04+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-0": {
+ "Google_": "src/"
+ },
+ "classmap": [
+ "src/Google/Service/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Apache-2.0"
+ ],
+ "description": "Client library for Google APIs",
+ "homepage": "http://developers.google.com/api-client-library/php",
+ "keywords": [
+ "google"
+ ]
+ }
+]
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/LICENSE b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/LICENSE
new file mode 100644
index 00000000..cb0c49b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/LICENSE
@@ -0,0 +1,30 @@
+Copyright (c) 2011, Neuman Vong
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+ * Neither the name of Neuman Vong nor the names of other
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/README.md b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/README.md
new file mode 100644
index 00000000..d4589b1c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/README.md
@@ -0,0 +1,119 @@
+[![Build Status](https://travis-ci.org/firebase/php-jwt.png?branch=master)](https://travis-ci.org/firebase/php-jwt)
+[![Latest Stable Version](https://poser.pugx.org/firebase/php-jwt/v/stable)](https://packagist.org/packages/firebase/php-jwt)
+[![Total Downloads](https://poser.pugx.org/firebase/php-jwt/downloads)](https://packagist.org/packages/firebase/php-jwt)
+[![License](https://poser.pugx.org/firebase/php-jwt/license)](https://packagist.org/packages/firebase/php-jwt)
+
+PHP-JWT
+=======
+A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to [RFC 7519](https://tools.ietf.org/html/rfc7519).
+
+Installation
+------------
+
+Use composer to manage your dependencies and download PHP-JWT:
+
+```bash
+composer require firebase/php-jwt
+```
+
+Example
+-------
+```php
+<?php
+use \Firebase\JWT\JWT;
+
+$key = "example_key";
+$token = array(
+ "iss" => "http://example.org",
+ "aud" => "http://example.com",
+ "iat" => 1356999524,
+ "nbf" => 1357000000
+);
+
+/**
+ * IMPORTANT:
+ * You must specify supported algorithms for your application. See
+ * https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40
+ * for a list of spec-compliant algorithms.
+ */
+$jwt = JWT::encode($token, $key);
+$decoded = JWT::decode($jwt, $key, array('HS256'));
+
+print_r($decoded);
+
+/*
+ NOTE: This will now be an object instead of an associative array. To get
+ an associative array, you will need to cast it as such:
+*/
+
+$decoded_array = (array) $decoded;
+
+/**
+ * You can add a leeway to account for when there is a clock skew times between
+ * the signing and verifying servers. It is recommended that this leeway should
+ * not be bigger than a few minutes.
+ *
+ * Source: http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html#nbfDef
+ */
+JWT::$leeway = 60; // $leeway in seconds
+$decoded = JWT::decode($jwt, $key, array('HS256'));
+
+?>
+```
+
+Changelog
+---------
+
+#### 4.0.0 / 2016-07-17
+- Add support for late static binding. See [#88](https://github.com/firebase/php-jwt/pull/88) for details. Thanks to [@chappy84](https://github.com/chappy84)!
+- Use static `$timestamp` instead of `time()` to improve unit testing. See [#93](https://github.com/firebase/php-jwt/pull/93) for details. Thanks to [@josephmcdermott](https://github.com/josephmcdermott)!
+- Fixes to exceptions classes. See [#81](https://github.com/firebase/php-jwt/pull/81) for details. Thanks to [@Maks3w](https://github.com/Maks3w)!
+- Fixes to PHPDoc. See [#76](https://github.com/firebase/php-jwt/pull/76) for details. Thanks to [@akeeman](https://github.com/akeeman)!
+
+#### 3.0.0 / 2015-07-22
+- Minimum PHP version updated from `5.2.0` to `5.3.0`.
+- Add `\Firebase\JWT` namespace. See
+[#59](https://github.com/firebase/php-jwt/pull/59) for details. Thanks to
+[@Dashron](https://github.com/Dashron)!
+- Require a non-empty key to decode and verify a JWT. See
+[#60](https://github.com/firebase/php-jwt/pull/60) for details. Thanks to
+[@sjones608](https://github.com/sjones608)!
+- Cleaner documentation blocks in the code. See
+[#62](https://github.com/firebase/php-jwt/pull/62) for details. Thanks to
+[@johanderuijter](https://github.com/johanderuijter)!
+
+#### 2.2.0 / 2015-06-22
+- Add support for adding custom, optional JWT headers to `JWT::encode()`. See
+[#53](https://github.com/firebase/php-jwt/pull/53/files) for details. Thanks to
+[@mcocaro](https://github.com/mcocaro)!
+
+#### 2.1.0 / 2015-05-20
+- Add support for adding a leeway to `JWT:decode()` that accounts for clock skew
+between signing and verifying entities. Thanks to [@lcabral](https://github.com/lcabral)!
+- Add support for passing an object implementing the `ArrayAccess` interface for
+`$keys` argument in `JWT::decode()`. Thanks to [@aztech-dev](https://github.com/aztech-dev)!
+
+#### 2.0.0 / 2015-04-01
+- **Note**: It is strongly recommended that you update to > v2.0.0 to address
+ known security vulnerabilities in prior versions when both symmetric and
+ asymmetric keys are used together.
+- Update signature for `JWT::decode(...)` to require an array of supported
+ algorithms to use when verifying token signatures.
+
+
+Tests
+-----
+Run the tests using phpunit:
+
+```bash
+$ pear install PHPUnit
+$ phpunit --configuration phpunit.xml.dist
+PHPUnit 3.7.10 by Sebastian Bergmann.
+.....
+Time: 0 seconds, Memory: 2.50Mb
+OK (5 tests, 5 assertions)
+```
+
+License
+-------
+[3-Clause BSD](http://opensource.org/licenses/BSD-3-Clause).
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.json b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.json
new file mode 100644
index 00000000..1a5e93b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.json
@@ -0,0 +1,27 @@
+{
+ "name": "firebase/php-jwt",
+ "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
+ "homepage": "https://github.com/firebase/php-jwt",
+ "authors": [
+ {
+ "name": "Neuman Vong",
+ "email": "neuman+pear@twilio.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Anant Narayanan",
+ "email": "anant@php.net",
+ "role": "Developer"
+ }
+ ],
+ "license": "BSD-3-Clause",
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "Firebase\\JWT\\": "src"
+ }
+ },
+ "minimum-stability": "dev"
+}
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.lock b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.lock
new file mode 100644
index 00000000..5518ae41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/composer.lock
@@ -0,0 +1,19 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+ "This file is @generated automatically"
+ ],
+ "hash": "60a5df5d283a7ae9000173248eba8909",
+ "packages": [],
+ "packages-dev": [],
+ "aliases": [],
+ "minimum-stability": "dev",
+ "stability-flags": [],
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=5.2.0"
+ },
+ "platform-dev": []
+}
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/package.xml b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/package.xml
new file mode 100644
index 00000000..a95b056f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/package.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<package packagerversion="1.9.2" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
+ http://pear.php.net/dtd/tasks-1.0.xsd
+ http://pear.php.net/dtd/package-2.0
+ http://pear.php.net/dtd/package-2.0.xsd">
+ <name>JWT</name>
+ <channel>pear.php.net</channel>
+ <summary>A JWT encoder/decoder.</summary>
+ <description>A JWT encoder/decoder library for PHP.</description>
+ <lead>
+ <name>Neuman Vong</name>
+ <user>lcfrs</user>
+ <email>neuman+pear@twilio.com</email>
+ <active>yes</active>
+ </lead>
+ <lead>
+ <name>Firebase Operations</name>
+ <user>firebase</user>
+ <email>operations@firebase.com</email>
+ <active>yes</active>
+ </lead>
+ <date>2015-07-22</date>
+ <version>
+ <release>3.0.0</release>
+ <api>3.0.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <license uri="http://opensource.org/licenses/BSD-3-Clause">BSD 3-Clause License</license>
+ <notes>
+Initial release with basic support for JWT encoding, decoding and signature verification.
+ </notes>
+ <contents>
+ <dir baseinstalldir="/" name="/">
+ <dir name="tests">
+ <file name="JWTTest.php" role="test" />
+ </dir>
+ <file name="Authentication/JWT.php" role="php" />
+ </dir>
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>5.1</min>
+ </php>
+ <pearinstaller>
+ <min>1.7.0</min>
+ </pearinstaller>
+ <extension>
+ <name>json</name>
+ </extension>
+ <extension>
+ <name>hash</name>
+ </extension>
+ </required>
+ </dependencies>
+ <phprelease />
+ <changelog>
+ <release>
+ <version>
+ <release>0.1.0</release>
+ <api>0.1.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <date>2015-04-01</date>
+ <license uri="http://opensource.org/licenses/BSD-3-Clause">BSD 3-Clause License</license>
+ <notes>
+Initial release with basic support for JWT encoding, decoding and signature verification.
+ </notes>
+ </release>
+ </changelog>
+</package>
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/BeforeValidException.php b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/BeforeValidException.php
new file mode 100644
index 00000000..a6ee2f7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/BeforeValidException.php
@@ -0,0 +1,7 @@
+<?php
+namespace Firebase\JWT;
+
+class BeforeValidException extends \UnexpectedValueException
+{
+
+}
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/ExpiredException.php b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/ExpiredException.php
new file mode 100644
index 00000000..3597370a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/ExpiredException.php
@@ -0,0 +1,7 @@
+<?php
+namespace Firebase\JWT;
+
+class ExpiredException extends \UnexpectedValueException
+{
+
+}
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/JWT.php b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/JWT.php
new file mode 100644
index 00000000..6d30e941
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/JWT.php
@@ -0,0 +1,370 @@
+<?php
+
+namespace Firebase\JWT;
+use \DomainException;
+use \InvalidArgumentException;
+use \UnexpectedValueException;
+use \DateTime;
+
+/**
+ * JSON Web Token implementation, based on this spec:
+ * http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06
+ *
+ * PHP version 5
+ *
+ * @category Authentication
+ * @package Authentication_JWT
+ * @author Neuman Vong <neuman@twilio.com>
+ * @author Anant Narayanan <anant@php.net>
+ * @license http://opensource.org/licenses/BSD-3-Clause 3-clause BSD
+ * @link https://github.com/firebase/php-jwt
+ */
+class JWT
+{
+
+ /**
+ * When checking nbf, iat or expiration times,
+ * we want to provide some extra leeway time to
+ * account for clock skew.
+ */
+ public static $leeway = 0;
+
+ /**
+ * Allow the current timestamp to be specified.
+ * Useful for fixing a value within unit testing.
+ *
+ * Will default to PHP time() value if null.
+ */
+ public static $timestamp = null;
+
+ public static $supported_algs = array(
+ 'HS256' => array('hash_hmac', 'SHA256'),
+ 'HS512' => array('hash_hmac', 'SHA512'),
+ 'HS384' => array('hash_hmac', 'SHA384'),
+ 'RS256' => array('openssl', 'SHA256'),
+ );
+
+ /**
+ * Decodes a JWT string into a PHP object.
+ *
+ * @param string $jwt The JWT
+ * @param string|array $key The key, or map of keys.
+ * If the algorithm used is asymmetric, this is the public key
+ * @param array $allowed_algs List of supported verification algorithms
+ * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256'
+ *
+ * @return object The JWT's payload as a PHP object
+ *
+ * @throws UnexpectedValueException Provided JWT was invalid
+ * @throws SignatureInvalidException Provided JWT was invalid because the signature verification failed
+ * @throws BeforeValidException Provided JWT is trying to be used before it's eligible as defined by 'nbf'
+ * @throws BeforeValidException Provided JWT is trying to be used before it's been created as defined by 'iat'
+ * @throws ExpiredException Provided JWT has since expired, as defined by the 'exp' claim
+ *
+ * @uses jsonDecode
+ * @uses urlsafeB64Decode
+ */
+ public static function decode($jwt, $key, $allowed_algs = array())
+ {
+ $timestamp = is_null(static::$timestamp) ? time() : static::$timestamp;
+
+ if (empty($key)) {
+ throw new InvalidArgumentException('Key may not be empty');
+ }
+ if (!is_array($allowed_algs)) {
+ throw new InvalidArgumentException('Algorithm not allowed');
+ }
+ $tks = explode('.', $jwt);
+ if (count($tks) != 3) {
+ throw new UnexpectedValueException('Wrong number of segments');
+ }
+ list($headb64, $bodyb64, $cryptob64) = $tks;
+ if (null === ($header = static::jsonDecode(static::urlsafeB64Decode($headb64)))) {
+ throw new UnexpectedValueException('Invalid header encoding');
+ }
+ if (null === $payload = static::jsonDecode(static::urlsafeB64Decode($bodyb64))) {
+ throw new UnexpectedValueException('Invalid claims encoding');
+ }
+ $sig = static::urlsafeB64Decode($cryptob64);
+
+ if (empty($header->alg)) {
+ throw new UnexpectedValueException('Empty algorithm');
+ }
+ if (empty(static::$supported_algs[$header->alg])) {
+ throw new UnexpectedValueException('Algorithm not supported');
+ }
+ if (!in_array($header->alg, $allowed_algs)) {
+ throw new UnexpectedValueException('Algorithm not allowed');
+ }
+ if (is_array($key) || $key instanceof \ArrayAccess) {
+ if (isset($header->kid)) {
+ $key = $key[$header->kid];
+ } else {
+ throw new UnexpectedValueException('"kid" empty, unable to lookup correct key');
+ }
+ }
+
+ // Check the signature
+ if (!static::verify("$headb64.$bodyb64", $sig, $key, $header->alg)) {
+ throw new SignatureInvalidException('Signature verification failed');
+ }
+
+ // Check if the nbf if it is defined. This is the time that the
+ // token can actually be used. If it's not yet that time, abort.
+ if (isset($payload->nbf) && $payload->nbf > ($timestamp + static::$leeway)) {
+ throw new BeforeValidException(
+ 'Cannot handle token prior to ' . date(DateTime::ISO8601, $payload->nbf)
+ );
+ }
+
+ // Check that this token has been created before 'now'. This prevents
+ // using tokens that have been created for later use (and haven't
+ // correctly used the nbf claim).
+ if (isset($payload->iat) && $payload->iat > ($timestamp + static::$leeway)) {
+ throw new BeforeValidException(
+ 'Cannot handle token prior to ' . date(DateTime::ISO8601, $payload->iat)
+ );
+ }
+
+ // Check if this token has expired.
+ if (isset($payload->exp) && ($timestamp - static::$leeway) >= $payload->exp) {
+ throw new ExpiredException('Expired token');
+ }
+
+ return $payload;
+ }
+
+ /**
+ * Converts and signs a PHP object or array into a JWT string.
+ *
+ * @param object|array $payload PHP object or array
+ * @param string $key The secret key.
+ * If the algorithm used is asymmetric, this is the private key
+ * @param string $alg The signing algorithm.
+ * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256'
+ * @param mixed $keyId
+ * @param array $head An array with header elements to attach
+ *
+ * @return string A signed JWT
+ *
+ * @uses jsonEncode
+ * @uses urlsafeB64Encode
+ */
+ public static function encode($payload, $key, $alg = 'HS256', $keyId = null, $head = null)
+ {
+ $header = array('typ' => 'JWT', 'alg' => $alg);
+ if ($keyId !== null) {
+ $header['kid'] = $keyId;
+ }
+ if ( isset($head) && is_array($head) ) {
+ $header = array_merge($head, $header);
+ }
+ $segments = array();
+ $segments[] = static::urlsafeB64Encode(static::jsonEncode($header));
+ $segments[] = static::urlsafeB64Encode(static::jsonEncode($payload));
+ $signing_input = implode('.', $segments);
+
+ $signature = static::sign($signing_input, $key, $alg);
+ $segments[] = static::urlsafeB64Encode($signature);
+
+ return implode('.', $segments);
+ }
+
+ /**
+ * Sign a string with a given key and algorithm.
+ *
+ * @param string $msg The message to sign
+ * @param string|resource $key The secret key
+ * @param string $alg The signing algorithm.
+ * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256'
+ *
+ * @return string An encrypted message
+ *
+ * @throws DomainException Unsupported algorithm was specified
+ */
+ public static function sign($msg, $key, $alg = 'HS256')
+ {
+ if (empty(static::$supported_algs[$alg])) {
+ throw new DomainException('Algorithm not supported');
+ }
+ list($function, $algorithm) = static::$supported_algs[$alg];
+ switch($function) {
+ case 'hash_hmac':
+ return hash_hmac($algorithm, $msg, $key, true);
+ case 'openssl':
+ $signature = '';
+ $success = openssl_sign($msg, $signature, $key, $algorithm);
+ if (!$success) {
+ throw new DomainException("OpenSSL unable to sign data");
+ } else {
+ return $signature;
+ }
+ }
+ }
+
+ /**
+ * Verify a signature with the message, key and method. Not all methods
+ * are symmetric, so we must have a separate verify and sign method.
+ *
+ * @param string $msg The original message (header and body)
+ * @param string $signature The original signature
+ * @param string|resource $key For HS*, a string key works. for RS*, must be a resource of an openssl public key
+ * @param string $alg The algorithm
+ *
+ * @return bool
+ *
+ * @throws DomainException Invalid Algorithm or OpenSSL failure
+ */
+ private static function verify($msg, $signature, $key, $alg)
+ {
+ if (empty(static::$supported_algs[$alg])) {
+ throw new DomainException('Algorithm not supported');
+ }
+
+ list($function, $algorithm) = static::$supported_algs[$alg];
+ switch($function) {
+ case 'openssl':
+ $success = openssl_verify($msg, $signature, $key, $algorithm);
+ if (!$success) {
+ throw new DomainException("OpenSSL unable to verify data: " . openssl_error_string());
+ } else {
+ return $signature;
+ }
+ case 'hash_hmac':
+ default:
+ $hash = hash_hmac($algorithm, $msg, $key, true);
+ if (function_exists('hash_equals')) {
+ return hash_equals($signature, $hash);
+ }
+ $len = min(static::safeStrlen($signature), static::safeStrlen($hash));
+
+ $status = 0;
+ for ($i = 0; $i < $len; $i++) {
+ $status |= (ord($signature[$i]) ^ ord($hash[$i]));
+ }
+ $status |= (static::safeStrlen($signature) ^ static::safeStrlen($hash));
+
+ return ($status === 0);
+ }
+ }
+
+ /**
+ * Decode a JSON string into a PHP object.
+ *
+ * @param string $input JSON string
+ *
+ * @return object Object representation of JSON string
+ *
+ * @throws DomainException Provided string was invalid JSON
+ */
+ public static function jsonDecode($input)
+ {
+ if (version_compare(PHP_VERSION, '5.4.0', '>=') && !(defined('JSON_C_VERSION') && PHP_INT_SIZE > 4)) {
+ /** In PHP >=5.4.0, json_decode() accepts an options parameter, that allows you
+ * to specify that large ints (like Steam Transaction IDs) should be treated as
+ * strings, rather than the PHP default behaviour of converting them to floats.
+ */
+ $obj = json_decode($input, false, 512, JSON_BIGINT_AS_STRING);
+ } else {
+ /** Not all servers will support that, however, so for older versions we must
+ * manually detect large ints in the JSON string and quote them (thus converting
+ *them to strings) before decoding, hence the preg_replace() call.
+ */
+ $max_int_length = strlen((string) PHP_INT_MAX) - 1;
+ $json_without_bigints = preg_replace('/:\s*(-?\d{'.$max_int_length.',})/', ': "$1"', $input);
+ $obj = json_decode($json_without_bigints);
+ }
+
+ if (function_exists('json_last_error') && $errno = json_last_error()) {
+ static::handleJsonError($errno);
+ } elseif ($obj === null && $input !== 'null') {
+ throw new DomainException('Null result with non-null input');
+ }
+ return $obj;
+ }
+
+ /**
+ * Encode a PHP object into a JSON string.
+ *
+ * @param object|array $input A PHP object or array
+ *
+ * @return string JSON representation of the PHP object or array
+ *
+ * @throws DomainException Provided object could not be encoded to valid JSON
+ */
+ public static function jsonEncode($input)
+ {
+ $json = json_encode($input);
+ if (function_exists('json_last_error') && $errno = json_last_error()) {
+ static::handleJsonError($errno);
+ } elseif ($json === 'null' && $input !== null) {
+ throw new DomainException('Null result with non-null input');
+ }
+ return $json;
+ }
+
+ /**
+ * Decode a string with URL-safe Base64.
+ *
+ * @param string $input A Base64 encoded string
+ *
+ * @return string A decoded string
+ */
+ public static function urlsafeB64Decode($input)
+ {
+ $remainder = strlen($input) % 4;
+ if ($remainder) {
+ $padlen = 4 - $remainder;
+ $input .= str_repeat('=', $padlen);
+ }
+ return base64_decode(strtr($input, '-_', '+/'));
+ }
+
+ /**
+ * Encode a string with URL-safe Base64.
+ *
+ * @param string $input The string you want encoded
+ *
+ * @return string The base64 encode of what you passed in
+ */
+ public static function urlsafeB64Encode($input)
+ {
+ return str_replace('=', '', strtr(base64_encode($input), '+/', '-_'));
+ }
+
+ /**
+ * Helper method to create a JSON error.
+ *
+ * @param int $errno An error number from json_last_error()
+ *
+ * @return void
+ */
+ private static function handleJsonError($errno)
+ {
+ $messages = array(
+ JSON_ERROR_DEPTH => 'Maximum stack depth exceeded',
+ JSON_ERROR_CTRL_CHAR => 'Unexpected control character found',
+ JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON'
+ );
+ throw new DomainException(
+ isset($messages[$errno])
+ ? $messages[$errno]
+ : 'Unknown JSON error: ' . $errno
+ );
+ }
+
+ /**
+ * Get the number of bytes in cryptographic strings.
+ *
+ * @param string
+ *
+ * @return int
+ */
+ private static function safeStrlen($str)
+ {
+ if (function_exists('mb_strlen')) {
+ return mb_strlen($str, '8bit');
+ }
+ return strlen($str);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/SignatureInvalidException.php b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/SignatureInvalidException.php
new file mode 100644
index 00000000..27332b21
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/firebase/php-jwt/src/SignatureInvalidException.php
@@ -0,0 +1,7 @@
+<?php
+namespace Firebase\JWT;
+
+class SignatureInvalidException extends \UnexpectedValueException
+{
+
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/.gitignore b/mayor-orig/www/include/share/googleapi/google/apiclient-services/.gitignore
new file mode 100644
index 00000000..01150f6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/.gitignore
@@ -0,0 +1,4 @@
+vendor
+composer.lock
+src/Google/Service/Compute/HTTPHealthCheck.php
+src/Google/Service/Compute/HTTPSHealthCheck.php
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/.travis.yml b/mayor-orig/www/include/share/googleapi/google/apiclient-services/.travis.yml
new file mode 100644
index 00000000..c3c21d4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/.travis.yml
@@ -0,0 +1,15 @@
+language: php
+
+php:
+ - 5.4
+ - 5.5
+ - 5.6
+ - 7.0
+ - 7.1
+ - hhvm
+
+install:
+ - composer install
+
+script:
+ - phpunit
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/CONTRIBUTING.md b/mayor-orig/www/include/share/googleapi/google/apiclient-services/CONTRIBUTING.md
new file mode 100644
index 00000000..e852a93a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/CONTRIBUTING.md
@@ -0,0 +1,22 @@
+# How to become a contributor and submit your own code
+
+## Contributor License Agreements
+
+We'd love to accept your code patches! However, before we can take them, we have to jump a couple of legal hurdles.
+
+Please fill out either the individual or corporate Contributor License Agreement (CLA).
+
+ * If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an [individual CLA](http://code.google.com/legal/individual-cla-v1.0.html).
+ * If you work for a company that wants to allow you to contribute your work to this client library, then you'll need to sign a[corporate CLA](http://code.google.com/legal/corporate-cla-v1.0.html).
+
+Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll add you to the official list of contributors and be able to accept your patches.
+
+## Submitting Patches
+
+1. Fork the PHP client library on GitHub
+1. Decide which code you want to submit. A submission should be a set of changes that addresses one issue in the issue tracker. Please file one change per issue, and address one issue per change. If you want to make a change that doesn't have a corresponding issue in the issue tracker, please file a new ticket!
+1. Ensure that your code adheres to standard PHP conventions, as used in the rest of the library.
+1. Ensure that there are unit tests for your code.
+1. Sign a Contributor License Agreement (see above).
+1. Submit a pull request with your patch on Github.
+
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/LICENSE b/mayor-orig/www/include/share/googleapi/google/apiclient-services/LICENSE
new file mode 100644
index 00000000..a148ba56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/LICENSE
@@ -0,0 +1,203 @@
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction,
+and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by
+the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all
+other entities that control, are controlled by, or are under common
+control with that entity. For the purposes of this definition,
+"control" means (i) the power, direct or indirect, to cause the
+direction or management of such entity, whether by contract or
+otherwise, or (ii) ownership of fifty percent (50%) or more of the
+outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity
+exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation
+source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical
+transformation or translation of a Source form, including but
+not limited to compiled object code, generated documentation,
+and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or
+Object form, made available under the License, as indicated by a
+copyright notice that is included in or attached to the work
+(an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object
+form, that is based on (or derived from) the Work and for which the
+editorial revisions, annotations, elaborations, or other modifications
+represent, as a whole, an original work of authorship. For the purposes
+of this License, Derivative Works shall not include works that remain
+separable from, or merely link (or bind by name) to the interfaces of,
+the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including
+the original version of the Work and any modifications or additions
+to that Work or Derivative Works thereof, that is intentionally
+submitted to Licensor for inclusion in the Work by the copyright owner
+or by an individual or Legal Entity authorized to submit on behalf of
+the copyright owner. For the purposes of this definition, "submitted"
+means any form of electronic, verbal, or written communication sent
+to the Licensor or its representatives, including but not limited to
+communication on electronic mailing lists, source code control systems,
+and issue tracking systems that are managed by, or on behalf of, the
+Licensor for the purpose of discussing and improving the Work, but
+excluding communication that is conspicuously marked or otherwise
+designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity
+on behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of,
+publicly display, publicly perform, sublicense, and distribute the
+Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made,
+use, offer to sell, sell, import, and otherwise transfer the Work,
+where such license applies only to those patent claims licensable
+by such Contributor that are necessarily infringed by their
+Contribution(s) alone or by combination of their Contribution(s)
+with the Work to which such Contribution(s) was submitted. If You
+institute patent litigation against any entity (including a
+cross-claim or counterclaim in a lawsuit) alleging that the Work
+or a Contribution incorporated within the Work constitutes direct
+or contributory patent infringement, then any patent licenses
+granted to You under this License for that Work shall terminate
+as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+Work or Derivative Works thereof in any medium, with or without
+modifications, and in Source or Object form, provided that You
+meet the following conditions:
+
+(a) You must give any other recipients of the Work or
+Derivative Works a copy of this License; and
+
+(b) You must cause any modified files to carry prominent notices
+stating that You changed the files; and
+
+(c) You must retain, in the Source form of any Derivative Works
+that You distribute, all copyright, patent, trademark, and
+attribution notices from the Source form of the Work,
+excluding those notices that do not pertain to any part of
+the Derivative Works; and
+
+(d) If the Work includes a "NOTICE" text file as part of its
+distribution, then any Derivative Works that You distribute must
+include a readable copy of the attribution notices contained
+within such NOTICE file, excluding those notices that do not
+pertain to any part of the Derivative Works, in at least one
+of the following places: within a NOTICE text file distributed
+as part of the Derivative Works; within the Source form or
+documentation, if provided along with the Derivative Works; or,
+within a display generated by the Derivative Works, if and
+wherever such third-party notices normally appear. The contents
+of the NOTICE file are for informational purposes only and
+do not modify the License. You may add Your own attribution
+notices within Derivative Works that You distribute, alongside
+or as an addendum to the NOTICE text from the Work, provided
+that such additional attribution notices cannot be construed
+as modifying the License.
+
+You may add Your own copyright statement to Your modifications and
+may provide additional or different license terms and conditions
+for use, reproduction, or distribution of Your modifications, or
+for any such Derivative Works as a whole, provided Your use,
+reproduction, and distribution of the Work otherwise complies with
+the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+any Contribution intentionally submitted for inclusion in the Work
+by You to the Licensor shall be under the terms and conditions of
+this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify
+the terms of any separate license agreement you may have executed
+with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+names, trademarks, service marks, or product names of the Licensor,
+except as required for reasonable and customary use in describing the
+origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+agreed to in writing, Licensor provides the Work (and each
+Contributor provides its Contributions) on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+implied, including, without limitation, any warranties or conditions
+of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+PARTICULAR PURPOSE. You are solely responsible for determining the
+appropriateness of using or redistributing the Work and assume any
+risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+whether in tort (including negligence), contract, or otherwise,
+unless required by applicable law (such as deliberate and grossly
+negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a
+result of this License or out of the use or inability to use the
+Work (including but not limited to damages for loss of goodwill,
+work stoppage, computer failure or malfunction, or any and all
+other commercial damages or losses), even if such Contributor
+has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+the Work or Derivative Works thereof, You may choose to offer,
+and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this
+License. However, in accepting such obligations, You may act only
+on Your own behalf and on Your sole responsibility, not on behalf
+of any other Contributor, and only if You agree to indemnify,
+defend, and hold each Contributor harmless for any liability
+incurred by, or claims asserted against, such Contributor by reason
+of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+To apply the Apache License to your work, attach the following
+boilerplate notice, with the fields enclosed by brackets "[]"
+replaced with your own identifying information. (Don't include
+the brackets!) The text should be enclosed in the appropriate
+comment syntax for the file format. We also recommend that a
+file or class name and description of purpose be included on the
+same "printed page" as the copyright notice for easier
+identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/README.md b/mayor-orig/www/include/share/googleapi/google/apiclient-services/README.md
new file mode 100644
index 00000000..0eb62fa6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/README.md
@@ -0,0 +1,30 @@
+Google PHP API Client Services
+==============================
+
+## Requirements
+
+[Google API PHP Client](https://github.com/google/google-api-php-client/releases)
+
+## Usage in v2 of Google API PHP Client
+
+This library will be automatically installed with the
+[Google API PHP Client](https://github.com/google/google-api-php-client/releases)
+via composer. Composer will automatically pull down a monthly tag
+from this repository.
+
+If you'd like to always be up-to-date with the latest release, rather than
+wait for monthly tagged releases, request the `dev-master` version in composer:
+
+```sh
+composer require google/apiclient-services:dev-master
+```
+
+## Usage in v1
+
+If you are currently using the [`v1-master`](https://github.com/google/google-api-php-client/tree/v1-master)
+branch of the client library, but want to use the latest API services, you can
+do so by requiring this library directly into your project via the same composer command:
+
+```sh
+composer require google/apiclient-services:dev-master
+```
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/composer.json b/mayor-orig/www/include/share/googleapi/google/apiclient-services/composer.json
new file mode 100644
index 00000000..7c319d05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/composer.json
@@ -0,0 +1,19 @@
+{
+ "name": "google/apiclient-services",
+ "type": "library",
+ "description": "Client library for Google APIs",
+ "keywords": ["google"],
+ "homepage": "http://developers.google.com/api-client-library/php",
+ "license": "Apache-2.0",
+ "require": {
+ "php": ">=5.4"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.8"
+ },
+ "autoload": {
+ "psr-0": {
+ "Google_Service_": "src"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/phpunit.xml b/mayor-orig/www/include/share/googleapi/google/apiclient-services/phpunit.xml
new file mode 100644
index 00000000..95069eed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/phpunit.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/3.7/phpunit.xsd"
+ colors="true"
+ bootstrap="tests/bootstrap.php">
+ <testsuites>
+ <testsuite name="Google PHP Client Unit Services Test Suite">
+ <directory>tests</directory>
+ </testsuite>
+ </testsuites>
+</phpunit>
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php
new file mode 100644
index 00000000..00a09651
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Acceleratedmobilepageurl (v1).
+ *
+ * <p>
+ * This API contains a single method, batchGet. Call this method to retrieve the
+ * AMP URL (and equivalent AMP Cache URL) for given public URL(s).</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/amp/cache/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Acceleratedmobilepageurl extends Google_Service
+{
+
+
+ public $ampUrls;
+
+ /**
+ * Constructs the internal representation of the Acceleratedmobilepageurl
+ * service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://acceleratedmobilepageurl.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'acceleratedmobilepageurl';
+
+ $this->ampUrls = new Google_Service_Acceleratedmobilepageurl_Resource_AmpUrls(
+ $this,
+ $this->serviceName,
+ 'ampUrls',
+ array(
+ 'methods' => array(
+ 'batchGet' => array(
+ 'path' => 'v1/ampUrls:batchGet',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrl.php
new file mode 100644
index 00000000..9edc1587
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrl.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Acceleratedmobilepageurl_AmpUrl extends Google_Model
+{
+ public $ampUrl;
+ public $cdnAmpUrl;
+ public $originalUrl;
+
+ public function setAmpUrl($ampUrl)
+ {
+ $this->ampUrl = $ampUrl;
+ }
+ public function getAmpUrl()
+ {
+ return $this->ampUrl;
+ }
+ public function setCdnAmpUrl($cdnAmpUrl)
+ {
+ $this->cdnAmpUrl = $cdnAmpUrl;
+ }
+ public function getCdnAmpUrl()
+ {
+ return $this->cdnAmpUrl;
+ }
+ public function setOriginalUrl($originalUrl)
+ {
+ $this->originalUrl = $originalUrl;
+ }
+ public function getOriginalUrl()
+ {
+ return $this->originalUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrlError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrlError.php
new file mode 100644
index 00000000..450988d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrlError.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Acceleratedmobilepageurl_AmpUrlError extends Google_Model
+{
+ public $errorCode;
+ public $errorMessage;
+ public $originalUrl;
+
+ public function setErrorCode($errorCode)
+ {
+ $this->errorCode = $errorCode;
+ }
+ public function getErrorCode()
+ {
+ return $this->errorCode;
+ }
+ public function setErrorMessage($errorMessage)
+ {
+ $this->errorMessage = $errorMessage;
+ }
+ public function getErrorMessage()
+ {
+ return $this->errorMessage;
+ }
+ public function setOriginalUrl($originalUrl)
+ {
+ $this->originalUrl = $originalUrl;
+ }
+ public function getOriginalUrl()
+ {
+ return $this->originalUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsRequest.php
new file mode 100644
index 00000000..c2b4d204
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsRequest extends Google_Collection
+{
+ protected $collection_key = 'urls';
+ public $lookupStrategy;
+ public $urls;
+
+ public function setLookupStrategy($lookupStrategy)
+ {
+ $this->lookupStrategy = $lookupStrategy;
+ }
+ public function getLookupStrategy()
+ {
+ return $this->lookupStrategy;
+ }
+ public function setUrls($urls)
+ {
+ $this->urls = $urls;
+ }
+ public function getUrls()
+ {
+ return $this->urls;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsResponse.php
new file mode 100644
index 00000000..62196ade
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsResponse.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsResponse extends Google_Collection
+{
+ protected $collection_key = 'urlErrors';
+ protected $ampUrlsType = 'Google_Service_Acceleratedmobilepageurl_AmpUrl';
+ protected $ampUrlsDataType = 'array';
+ protected $urlErrorsType = 'Google_Service_Acceleratedmobilepageurl_AmpUrlError';
+ protected $urlErrorsDataType = 'array';
+
+ public function setAmpUrls($ampUrls)
+ {
+ $this->ampUrls = $ampUrls;
+ }
+ public function getAmpUrls()
+ {
+ return $this->ampUrls;
+ }
+ public function setUrlErrors($urlErrors)
+ {
+ $this->urlErrors = $urlErrors;
+ }
+ public function getUrlErrors()
+ {
+ return $this->urlErrors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/Resource/AmpUrls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/Resource/AmpUrls.php
new file mode 100644
index 00000000..9082e17c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/Resource/AmpUrls.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "ampUrls" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $acceleratedmobilepageurlService = new Google_Service_Acceleratedmobilepageurl(...);
+ * $ampUrls = $acceleratedmobilepageurlService->ampUrls;
+ * </code>
+ */
+class Google_Service_Acceleratedmobilepageurl_Resource_AmpUrls extends Google_Service_Resource
+{
+ /**
+ * Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-
+ * cache-url-format). (ampUrls.batchGet)
+ *
+ * @param Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsResponse
+ */
+ public function batchGet(Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchGet', array($params), "Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer.php
new file mode 100644
index 00000000..0d49c832
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer.php
@@ -0,0 +1,679 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AdExchangeBuyer (v1.4).
+ *
+ * <p>
+ * Accesses your bidding-account information, submits creatives for validation,
+ * finds available direct deals, and retrieves performance reports.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/ad-exchange/buyer-rest" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AdExchangeBuyer extends Google_Service
+{
+ /** Manage your Ad Exchange buyer account configuration. */
+ const ADEXCHANGE_BUYER =
+ "https://www.googleapis.com/auth/adexchange.buyer";
+
+ public $accounts;
+ public $billingInfo;
+ public $budget;
+ public $creatives;
+ public $marketplacedeals;
+ public $marketplacenotes;
+ public $marketplaceprivateauction;
+ public $performanceReport;
+ public $pretargetingConfig;
+ public $products;
+ public $proposals;
+ public $pubprofiles;
+
+ /**
+ * Constructs the internal representation of the AdExchangeBuyer service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'adexchangebuyer/v1.4/';
+ $this->version = 'v1.4';
+ $this->serviceName = 'adexchangebuyer';
+
+ $this->accounts = new Google_Service_AdExchangeBuyer_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'accounts/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'confirmUnsafeAccountChange' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'confirmUnsafeAccountChange' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->billingInfo = new Google_Service_AdExchangeBuyer_Resource_BillingInfo(
+ $this,
+ $this->serviceName,
+ 'billingInfo',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'billinginfo/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'billinginfo',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->budget = new Google_Service_AdExchangeBuyer_Resource_Budget(
+ $this,
+ $this->serviceName,
+ 'budget',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'billinginfo/{accountId}/{billingId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'billingId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'billinginfo/{accountId}/{billingId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'billingId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'billinginfo/{accountId}/{billingId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'billingId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->creatives = new Google_Service_AdExchangeBuyer_Resource_Creatives(
+ $this,
+ $this->serviceName,
+ 'creatives',
+ array(
+ 'methods' => array(
+ 'addDeal' => array(
+ 'path' => 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'buyerCreativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dealId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'creatives/{accountId}/{buyerCreativeId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'buyerCreativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'creatives',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'creatives',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'repeated' => true,
+ ),
+ 'buyerCreativeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'dealsStatusFilter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'openAuctionStatusFilter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listDeals' => array(
+ 'path' => 'creatives/{accountId}/{buyerCreativeId}/listDeals',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'buyerCreativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'removeDeal' => array(
+ 'path' => 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'buyerCreativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dealId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->marketplacedeals = new Google_Service_AdExchangeBuyer_Resource_Marketplacedeals(
+ $this,
+ $this->serviceName,
+ 'marketplacedeals',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'proposals/{proposalId}/deals/delete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'proposals/{proposalId}/deals/insert',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'proposals/{proposalId}/deals',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pqlQuery' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'proposals/{proposalId}/deals/update',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->marketplacenotes = new Google_Service_AdExchangeBuyer_Resource_Marketplacenotes(
+ $this,
+ $this->serviceName,
+ 'marketplacenotes',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'proposals/{proposalId}/notes/insert',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'proposals/{proposalId}/notes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pqlQuery' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->marketplaceprivateauction = new Google_Service_AdExchangeBuyer_Resource_Marketplaceprivateauction(
+ $this,
+ $this->serviceName,
+ 'marketplaceprivateauction',
+ array(
+ 'methods' => array(
+ 'updateproposal' => array(
+ 'path' => 'privateauction/{privateAuctionId}/updateproposal',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'privateAuctionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->performanceReport = new Google_Service_AdExchangeBuyer_Resource_PerformanceReport(
+ $this,
+ $this->serviceName,
+ 'performanceReport',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'performancereport',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDateTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'startDateTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->pretargetingConfig = new Google_Service_AdExchangeBuyer_Resource_PretargetingConfig(
+ $this,
+ $this->serviceName,
+ 'pretargetingConfig',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'pretargetingconfigs/{accountId}/{configId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'configId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'pretargetingconfigs/{accountId}/{configId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'configId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'pretargetingconfigs/{accountId}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'pretargetingconfigs/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'pretargetingconfigs/{accountId}/{configId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'configId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'pretargetingconfigs/{accountId}/{configId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'configId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->products = new Google_Service_AdExchangeBuyer_Resource_Products(
+ $this,
+ $this->serviceName,
+ 'products',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'products/{productId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'products/search',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pqlQuery' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->proposals = new Google_Service_AdExchangeBuyer_Resource_Proposals(
+ $this,
+ $this->serviceName,
+ 'proposals',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'proposals/{proposalId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'proposals/insert',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'revisionNumber' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateAction' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'proposals/search',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pqlQuery' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setupcomplete' => array(
+ 'path' => 'proposals/{proposalId}/setupcomplete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'proposalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'revisionNumber' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateAction' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->pubprofiles = new Google_Service_AdExchangeBuyer_Resource_Pubprofiles(
+ $this,
+ $this->serviceName,
+ 'pubprofiles',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'publisher/{accountId}/profiles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Account.php
new file mode 100644
index 00000000..85b0aea5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Account.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Account extends Google_Collection
+{
+ protected $collection_key = 'bidderLocation';
+ protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation';
+ protected $bidderLocationDataType = 'array';
+ public $cookieMatchingNid;
+ public $cookieMatchingUrl;
+ public $id;
+ public $kind;
+ public $maximumActiveCreatives;
+ public $maximumTotalQps;
+ public $numberActiveCreatives;
+
+ public function setBidderLocation($bidderLocation)
+ {
+ $this->bidderLocation = $bidderLocation;
+ }
+ public function getBidderLocation()
+ {
+ return $this->bidderLocation;
+ }
+ public function setCookieMatchingNid($cookieMatchingNid)
+ {
+ $this->cookieMatchingNid = $cookieMatchingNid;
+ }
+ public function getCookieMatchingNid()
+ {
+ return $this->cookieMatchingNid;
+ }
+ public function setCookieMatchingUrl($cookieMatchingUrl)
+ {
+ $this->cookieMatchingUrl = $cookieMatchingUrl;
+ }
+ public function getCookieMatchingUrl()
+ {
+ return $this->cookieMatchingUrl;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaximumActiveCreatives($maximumActiveCreatives)
+ {
+ $this->maximumActiveCreatives = $maximumActiveCreatives;
+ }
+ public function getMaximumActiveCreatives()
+ {
+ return $this->maximumActiveCreatives;
+ }
+ public function setMaximumTotalQps($maximumTotalQps)
+ {
+ $this->maximumTotalQps = $maximumTotalQps;
+ }
+ public function getMaximumTotalQps()
+ {
+ return $this->maximumTotalQps;
+ }
+ public function setNumberActiveCreatives($numberActiveCreatives)
+ {
+ $this->numberActiveCreatives = $numberActiveCreatives;
+ }
+ public function getNumberActiveCreatives()
+ {
+ return $this->numberActiveCreatives;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountBidderLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountBidderLocation.php
new file mode 100644
index 00000000..3b1d6ebd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountBidderLocation.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model
+{
+ public $bidProtocol;
+ public $maximumQps;
+ public $region;
+ public $url;
+
+ public function setBidProtocol($bidProtocol)
+ {
+ $this->bidProtocol = $bidProtocol;
+ }
+ public function getBidProtocol()
+ {
+ return $this->bidProtocol;
+ }
+ public function setMaximumQps($maximumQps)
+ {
+ $this->maximumQps = $maximumQps;
+ }
+ public function getMaximumQps()
+ {
+ return $this->maximumQps;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountsList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountsList.php
new file mode 100644
index 00000000..96635b14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountsList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdExchangeBuyer_Account';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsRequest.php
new file mode 100644
index 00000000..9d39b447
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_AddOrderDealsRequest extends Google_Collection
+{
+ protected $collection_key = 'deals';
+ protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
+ protected $dealsDataType = 'array';
+ public $proposalRevisionNumber;
+ public $updateAction;
+
+ public function setDeals($deals)
+ {
+ $this->deals = $deals;
+ }
+ public function getDeals()
+ {
+ return $this->deals;
+ }
+ public function setProposalRevisionNumber($proposalRevisionNumber)
+ {
+ $this->proposalRevisionNumber = $proposalRevisionNumber;
+ }
+ public function getProposalRevisionNumber()
+ {
+ return $this->proposalRevisionNumber;
+ }
+ public function setUpdateAction($updateAction)
+ {
+ $this->updateAction = $updateAction;
+ }
+ public function getUpdateAction()
+ {
+ return $this->updateAction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsResponse.php
new file mode 100644
index 00000000..6e2e56ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_AddOrderDealsResponse extends Google_Collection
+{
+ protected $collection_key = 'deals';
+ protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
+ protected $dealsDataType = 'array';
+ public $proposalRevisionNumber;
+
+ public function setDeals($deals)
+ {
+ $this->deals = $deals;
+ }
+ public function getDeals()
+ {
+ return $this->deals;
+ }
+ public function setProposalRevisionNumber($proposalRevisionNumber)
+ {
+ $this->proposalRevisionNumber = $proposalRevisionNumber;
+ }
+ public function getProposalRevisionNumber()
+ {
+ return $this->proposalRevisionNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesRequest.php
new file mode 100644
index 00000000..1f05dcbf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_AddOrderNotesRequest extends Google_Collection
+{
+ protected $collection_key = 'notes';
+ protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
+ protected $notesDataType = 'array';
+
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesResponse.php
new file mode 100644
index 00000000..d33cd505
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_AddOrderNotesResponse extends Google_Collection
+{
+ protected $collection_key = 'notes';
+ protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
+ protected $notesDataType = 'array';
+
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfo.php
new file mode 100644
index 00000000..5265205d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfo.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection
+{
+ protected $collection_key = 'billingId';
+ public $accountId;
+ public $accountName;
+ public $billingId;
+ public $kind;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAccountName($accountName)
+ {
+ $this->accountName = $accountName;
+ }
+ public function getAccountName()
+ {
+ return $this->accountName;
+ }
+ public function setBillingId($billingId)
+ {
+ $this->billingId = $billingId;
+ }
+ public function getBillingId()
+ {
+ return $this->billingId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfoList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfoList.php
new file mode 100644
index 00000000..0ebd96e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfoList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Budget.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Budget.php
new file mode 100644
index 00000000..339e36e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Budget.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Budget extends Google_Model
+{
+ public $accountId;
+ public $billingId;
+ public $budgetAmount;
+ public $currencyCode;
+ public $id;
+ public $kind;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setBillingId($billingId)
+ {
+ $this->billingId = $billingId;
+ }
+ public function getBillingId()
+ {
+ return $this->billingId;
+ }
+ public function setBudgetAmount($budgetAmount)
+ {
+ $this->budgetAmount = $budgetAmount;
+ }
+ public function getBudgetAmount()
+ {
+ return $this->budgetAmount;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Buyer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Buyer.php
new file mode 100644
index 00000000..f5b79f56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Buyer.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Buyer extends Google_Model
+{
+ public $accountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/ContactInformation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/ContactInformation.php
new file mode 100644
index 00000000..55de2d18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/ContactInformation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_ContactInformation extends Google_Model
+{
+ public $email;
+ public $name;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersRequest.php
new file mode 100644
index 00000000..e8203657
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreateOrdersRequest extends Google_Collection
+{
+ protected $collection_key = 'proposals';
+ protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal';
+ protected $proposalsDataType = 'array';
+ public $webPropertyCode;
+
+ public function setProposals($proposals)
+ {
+ $this->proposals = $proposals;
+ }
+ public function getProposals()
+ {
+ return $this->proposals;
+ }
+ public function setWebPropertyCode($webPropertyCode)
+ {
+ $this->webPropertyCode = $webPropertyCode;
+ }
+ public function getWebPropertyCode()
+ {
+ return $this->webPropertyCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersResponse.php
new file mode 100644
index 00000000..a617afbc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreateOrdersResponse extends Google_Collection
+{
+ protected $collection_key = 'proposals';
+ protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal';
+ protected $proposalsDataType = 'array';
+
+ public function setProposals($proposals)
+ {
+ $this->proposals = $proposals;
+ }
+ public function getProposals()
+ {
+ return $this->proposals;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Creative.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Creative.php
new file mode 100644
index 00000000..376cd3f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Creative.php
@@ -0,0 +1,281 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Creative extends Google_Collection
+{
+ protected $collection_key = 'vendorType';
+ protected $internal_gapi_mappings = array(
+ "hTMLSnippet" => "HTMLSnippet",
+ );
+ public $hTMLSnippet;
+ public $accountId;
+ public $adChoicesDestinationUrl;
+ public $advertiserId;
+ public $advertiserName;
+ public $agencyId;
+ public $apiUploadTimestamp;
+ public $attribute;
+ public $buyerCreativeId;
+ public $clickThroughUrl;
+ protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections';
+ protected $correctionsDataType = 'array';
+ public $dealsStatus;
+ public $detectedDomains;
+ protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons';
+ protected $filteringReasonsDataType = '';
+ public $height;
+ public $impressionTrackingUrl;
+ public $kind;
+ public $languages;
+ protected $nativeAdType = 'Google_Service_AdExchangeBuyer_CreativeNativeAd';
+ protected $nativeAdDataType = '';
+ public $openAuctionStatus;
+ public $productCategories;
+ public $restrictedCategories;
+ public $sensitiveCategories;
+ protected $servingRestrictionsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictions';
+ protected $servingRestrictionsDataType = 'array';
+ public $vendorType;
+ public $version;
+ public $videoURL;
+ public $width;
+
+ public function setHTMLSnippet($hTMLSnippet)
+ {
+ $this->hTMLSnippet = $hTMLSnippet;
+ }
+ public function getHTMLSnippet()
+ {
+ return $this->hTMLSnippet;
+ }
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdChoicesDestinationUrl($adChoicesDestinationUrl)
+ {
+ $this->adChoicesDestinationUrl = $adChoicesDestinationUrl;
+ }
+ public function getAdChoicesDestinationUrl()
+ {
+ return $this->adChoicesDestinationUrl;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserName($advertiserName)
+ {
+ $this->advertiserName = $advertiserName;
+ }
+ public function getAdvertiserName()
+ {
+ return $this->advertiserName;
+ }
+ public function setAgencyId($agencyId)
+ {
+ $this->agencyId = $agencyId;
+ }
+ public function getAgencyId()
+ {
+ return $this->agencyId;
+ }
+ public function setApiUploadTimestamp($apiUploadTimestamp)
+ {
+ $this->apiUploadTimestamp = $apiUploadTimestamp;
+ }
+ public function getApiUploadTimestamp()
+ {
+ return $this->apiUploadTimestamp;
+ }
+ public function setAttribute($attribute)
+ {
+ $this->attribute = $attribute;
+ }
+ public function getAttribute()
+ {
+ return $this->attribute;
+ }
+ public function setBuyerCreativeId($buyerCreativeId)
+ {
+ $this->buyerCreativeId = $buyerCreativeId;
+ }
+ public function getBuyerCreativeId()
+ {
+ return $this->buyerCreativeId;
+ }
+ public function setClickThroughUrl($clickThroughUrl)
+ {
+ $this->clickThroughUrl = $clickThroughUrl;
+ }
+ public function getClickThroughUrl()
+ {
+ return $this->clickThroughUrl;
+ }
+ public function setCorrections($corrections)
+ {
+ $this->corrections = $corrections;
+ }
+ public function getCorrections()
+ {
+ return $this->corrections;
+ }
+ public function setDealsStatus($dealsStatus)
+ {
+ $this->dealsStatus = $dealsStatus;
+ }
+ public function getDealsStatus()
+ {
+ return $this->dealsStatus;
+ }
+ public function setDetectedDomains($detectedDomains)
+ {
+ $this->detectedDomains = $detectedDomains;
+ }
+ public function getDetectedDomains()
+ {
+ return $this->detectedDomains;
+ }
+ public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons)
+ {
+ $this->filteringReasons = $filteringReasons;
+ }
+ public function getFilteringReasons()
+ {
+ return $this->filteringReasons;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setImpressionTrackingUrl($impressionTrackingUrl)
+ {
+ $this->impressionTrackingUrl = $impressionTrackingUrl;
+ }
+ public function getImpressionTrackingUrl()
+ {
+ return $this->impressionTrackingUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+ public function setNativeAd(Google_Service_AdExchangeBuyer_CreativeNativeAd $nativeAd)
+ {
+ $this->nativeAd = $nativeAd;
+ }
+ public function getNativeAd()
+ {
+ return $this->nativeAd;
+ }
+ public function setOpenAuctionStatus($openAuctionStatus)
+ {
+ $this->openAuctionStatus = $openAuctionStatus;
+ }
+ public function getOpenAuctionStatus()
+ {
+ return $this->openAuctionStatus;
+ }
+ public function setProductCategories($productCategories)
+ {
+ $this->productCategories = $productCategories;
+ }
+ public function getProductCategories()
+ {
+ return $this->productCategories;
+ }
+ public function setRestrictedCategories($restrictedCategories)
+ {
+ $this->restrictedCategories = $restrictedCategories;
+ }
+ public function getRestrictedCategories()
+ {
+ return $this->restrictedCategories;
+ }
+ public function setSensitiveCategories($sensitiveCategories)
+ {
+ $this->sensitiveCategories = $sensitiveCategories;
+ }
+ public function getSensitiveCategories()
+ {
+ return $this->sensitiveCategories;
+ }
+ public function setServingRestrictions($servingRestrictions)
+ {
+ $this->servingRestrictions = $servingRestrictions;
+ }
+ public function getServingRestrictions()
+ {
+ return $this->servingRestrictions;
+ }
+ public function setVendorType($vendorType)
+ {
+ $this->vendorType = $vendorType;
+ }
+ public function getVendorType()
+ {
+ return $this->vendorType;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+ public function setVideoURL($videoURL)
+ {
+ $this->videoURL = $videoURL;
+ }
+ public function getVideoURL()
+ {
+ return $this->videoURL;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrections.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrections.php
new file mode 100644
index 00000000..0ac14a05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrections.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection
+{
+ protected $collection_key = 'details';
+ protected $contextsType = 'Google_Service_AdExchangeBuyer_CreativeCorrectionsContexts';
+ protected $contextsDataType = 'array';
+ public $details;
+ public $reason;
+
+ public function setContexts($contexts)
+ {
+ $this->contexts = $contexts;
+ }
+ public function getContexts()
+ {
+ return $this->contexts;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrectionsContexts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrectionsContexts.php
new file mode 100644
index 00000000..3fc726cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrectionsContexts.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeCorrectionsContexts extends Google_Collection
+{
+ protected $collection_key = 'platform';
+ public $auctionType;
+ public $contextType;
+ public $geoCriteriaId;
+ public $platform;
+
+ public function setAuctionType($auctionType)
+ {
+ $this->auctionType = $auctionType;
+ }
+ public function getAuctionType()
+ {
+ return $this->auctionType;
+ }
+ public function setContextType($contextType)
+ {
+ $this->contextType = $contextType;
+ }
+ public function getContextType()
+ {
+ return $this->contextType;
+ }
+ public function setGeoCriteriaId($geoCriteriaId)
+ {
+ $this->geoCriteriaId = $geoCriteriaId;
+ }
+ public function getGeoCriteriaId()
+ {
+ return $this->geoCriteriaId;
+ }
+ public function setPlatform($platform)
+ {
+ $this->platform = $platform;
+ }
+ public function getPlatform()
+ {
+ return $this->platform;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIds.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIds.php
new file mode 100644
index 00000000..59136bf6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIds.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeDealIds extends Google_Collection
+{
+ protected $collection_key = 'dealStatuses';
+ protected $dealStatusesType = 'Google_Service_AdExchangeBuyer_CreativeDealIdsDealStatuses';
+ protected $dealStatusesDataType = 'array';
+ public $kind;
+
+ public function setDealStatuses($dealStatuses)
+ {
+ $this->dealStatuses = $dealStatuses;
+ }
+ public function getDealStatuses()
+ {
+ return $this->dealStatuses;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIdsDealStatuses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIdsDealStatuses.php
new file mode 100644
index 00000000..62759046
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIdsDealStatuses.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeDealIdsDealStatuses extends Google_Model
+{
+ public $arcStatus;
+ public $dealId;
+ public $webPropertyId;
+
+ public function setArcStatus($arcStatus)
+ {
+ $this->arcStatus = $arcStatus;
+ }
+ public function getArcStatus()
+ {
+ return $this->arcStatus;
+ }
+ public function setDealId($dealId)
+ {
+ $this->dealId = $dealId;
+ }
+ public function getDealId()
+ {
+ return $this->dealId;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasons.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasons.php
new file mode 100644
index 00000000..6f7b281d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasons.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection
+{
+ protected $collection_key = 'reasons';
+ public $date;
+ protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons';
+ protected $reasonsDataType = 'array';
+
+ public function setDate($date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setReasons($reasons)
+ {
+ $this->reasons = $reasons;
+ }
+ public function getReasons()
+ {
+ return $this->reasons;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasonsReasons.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasonsReasons.php
new file mode 100644
index 00000000..d40dfba6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasonsReasons.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model
+{
+ public $filteringCount;
+ public $filteringStatus;
+
+ public function setFilteringCount($filteringCount)
+ {
+ $this->filteringCount = $filteringCount;
+ }
+ public function getFilteringCount()
+ {
+ return $this->filteringCount;
+ }
+ public function setFilteringStatus($filteringStatus)
+ {
+ $this->filteringStatus = $filteringStatus;
+ }
+ public function getFilteringStatus()
+ {
+ return $this->filteringStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAd.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAd.php
new file mode 100644
index 00000000..a4053823
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAd.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeNativeAd extends Google_Collection
+{
+ protected $collection_key = 'impressionTrackingUrl';
+ public $advertiser;
+ protected $appIconType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon';
+ protected $appIconDataType = '';
+ public $body;
+ public $callToAction;
+ public $clickLinkUrl;
+ public $clickTrackingUrl;
+ public $headline;
+ protected $imageType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdImage';
+ protected $imageDataType = '';
+ public $impressionTrackingUrl;
+ protected $logoType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdLogo';
+ protected $logoDataType = '';
+ public $price;
+ public $starRating;
+ public $store;
+ public $videoURL;
+
+ public function setAdvertiser($advertiser)
+ {
+ $this->advertiser = $advertiser;
+ }
+ public function getAdvertiser()
+ {
+ return $this->advertiser;
+ }
+ public function setAppIcon(Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon $appIcon)
+ {
+ $this->appIcon = $appIcon;
+ }
+ public function getAppIcon()
+ {
+ return $this->appIcon;
+ }
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setCallToAction($callToAction)
+ {
+ $this->callToAction = $callToAction;
+ }
+ public function getCallToAction()
+ {
+ return $this->callToAction;
+ }
+ public function setClickLinkUrl($clickLinkUrl)
+ {
+ $this->clickLinkUrl = $clickLinkUrl;
+ }
+ public function getClickLinkUrl()
+ {
+ return $this->clickLinkUrl;
+ }
+ public function setClickTrackingUrl($clickTrackingUrl)
+ {
+ $this->clickTrackingUrl = $clickTrackingUrl;
+ }
+ public function getClickTrackingUrl()
+ {
+ return $this->clickTrackingUrl;
+ }
+ public function setHeadline($headline)
+ {
+ $this->headline = $headline;
+ }
+ public function getHeadline()
+ {
+ return $this->headline;
+ }
+ public function setImage(Google_Service_AdExchangeBuyer_CreativeNativeAdImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setImpressionTrackingUrl($impressionTrackingUrl)
+ {
+ $this->impressionTrackingUrl = $impressionTrackingUrl;
+ }
+ public function getImpressionTrackingUrl()
+ {
+ return $this->impressionTrackingUrl;
+ }
+ public function setLogo(Google_Service_AdExchangeBuyer_CreativeNativeAdLogo $logo)
+ {
+ $this->logo = $logo;
+ }
+ public function getLogo()
+ {
+ return $this->logo;
+ }
+ public function setPrice($price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setStarRating($starRating)
+ {
+ $this->starRating = $starRating;
+ }
+ public function getStarRating()
+ {
+ return $this->starRating;
+ }
+ public function setStore($store)
+ {
+ $this->store = $store;
+ }
+ public function getStore()
+ {
+ return $this->store;
+ }
+ public function setVideoURL($videoURL)
+ {
+ $this->videoURL = $videoURL;
+ }
+ public function getVideoURL()
+ {
+ return $this->videoURL;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdAppIcon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdAppIcon.php
new file mode 100644
index 00000000..54192165
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdAppIcon.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon extends Google_Model
+{
+ public $height;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdImage.php
new file mode 100644
index 00000000..c5db1c2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdImage.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeNativeAdImage extends Google_Model
+{
+ public $height;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdLogo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdLogo.php
new file mode 100644
index 00000000..658230c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdLogo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeNativeAdLogo extends Google_Model
+{
+ public $height;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictions.php
new file mode 100644
index 00000000..0c508036
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictions.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeServingRestrictions extends Google_Collection
+{
+ protected $collection_key = 'disapprovalReasons';
+ protected $contextsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts';
+ protected $contextsDataType = 'array';
+ protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons';
+ protected $disapprovalReasonsDataType = 'array';
+ public $reason;
+
+ public function setContexts($contexts)
+ {
+ $this->contexts = $contexts;
+ }
+ public function getContexts()
+ {
+ return $this->contexts;
+ }
+ public function setDisapprovalReasons($disapprovalReasons)
+ {
+ $this->disapprovalReasons = $disapprovalReasons;
+ }
+ public function getDisapprovalReasons()
+ {
+ return $this->disapprovalReasons;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsContexts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsContexts.php
new file mode 100644
index 00000000..c236e5a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsContexts.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts extends Google_Collection
+{
+ protected $collection_key = 'platform';
+ public $auctionType;
+ public $contextType;
+ public $geoCriteriaId;
+ public $platform;
+
+ public function setAuctionType($auctionType)
+ {
+ $this->auctionType = $auctionType;
+ }
+ public function getAuctionType()
+ {
+ return $this->auctionType;
+ }
+ public function setContextType($contextType)
+ {
+ $this->contextType = $contextType;
+ }
+ public function getContextType()
+ {
+ return $this->contextType;
+ }
+ public function setGeoCriteriaId($geoCriteriaId)
+ {
+ $this->geoCriteriaId = $geoCriteriaId;
+ }
+ public function getGeoCriteriaId()
+ {
+ return $this->geoCriteriaId;
+ }
+ public function setPlatform($platform)
+ {
+ $this->platform = $platform;
+ }
+ public function getPlatform()
+ {
+ return $this->platform;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsDisapprovalReasons.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsDisapprovalReasons.php
new file mode 100644
index 00000000..f10255f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsDisapprovalReasons.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $details;
+ public $reason;
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativesList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativesList.php
new file mode 100644
index 00000000..65200632
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativesList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadata.php
new file mode 100644
index 00000000..fac51dfc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadata.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealServingMetadata extends Google_Model
+{
+ public $alcoholAdsAllowed;
+ protected $dealPauseStatusType = 'Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus';
+ protected $dealPauseStatusDataType = '';
+
+ public function setAlcoholAdsAllowed($alcoholAdsAllowed)
+ {
+ $this->alcoholAdsAllowed = $alcoholAdsAllowed;
+ }
+ public function getAlcoholAdsAllowed()
+ {
+ return $this->alcoholAdsAllowed;
+ }
+ public function setDealPauseStatus(Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus $dealPauseStatus)
+ {
+ $this->dealPauseStatus = $dealPauseStatus;
+ }
+ public function getDealPauseStatus()
+ {
+ return $this->dealPauseStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadataDealPauseStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadataDealPauseStatus.php
new file mode 100644
index 00000000..17da50be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadataDealPauseStatus.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus extends Google_Model
+{
+ public $buyerPauseReason;
+ public $firstPausedBy;
+ public $hasBuyerPaused;
+ public $hasSellerPaused;
+ public $sellerPauseReason;
+
+ public function setBuyerPauseReason($buyerPauseReason)
+ {
+ $this->buyerPauseReason = $buyerPauseReason;
+ }
+ public function getBuyerPauseReason()
+ {
+ return $this->buyerPauseReason;
+ }
+ public function setFirstPausedBy($firstPausedBy)
+ {
+ $this->firstPausedBy = $firstPausedBy;
+ }
+ public function getFirstPausedBy()
+ {
+ return $this->firstPausedBy;
+ }
+ public function setHasBuyerPaused($hasBuyerPaused)
+ {
+ $this->hasBuyerPaused = $hasBuyerPaused;
+ }
+ public function getHasBuyerPaused()
+ {
+ return $this->hasBuyerPaused;
+ }
+ public function setHasSellerPaused($hasSellerPaused)
+ {
+ $this->hasSellerPaused = $hasSellerPaused;
+ }
+ public function getHasSellerPaused()
+ {
+ return $this->hasSellerPaused;
+ }
+ public function setSellerPauseReason($sellerPauseReason)
+ {
+ $this->sellerPauseReason = $sellerPauseReason;
+ }
+ public function getSellerPauseReason()
+ {
+ return $this->sellerPauseReason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTerms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTerms.php
new file mode 100644
index 00000000..2fd7039a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTerms.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealTerms extends Google_Model
+{
+ public $brandingType;
+ public $crossListedExternalDealIdType;
+ public $description;
+ protected $estimatedGrossSpendType = 'Google_Service_AdExchangeBuyer_Price';
+ protected $estimatedGrossSpendDataType = '';
+ public $estimatedImpressionsPerDay;
+ protected $guaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms';
+ protected $guaranteedFixedPriceTermsDataType = '';
+ protected $nonGuaranteedAuctionTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms';
+ protected $nonGuaranteedAuctionTermsDataType = '';
+ protected $nonGuaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms';
+ protected $nonGuaranteedFixedPriceTermsDataType = '';
+ protected $rubiconNonGuaranteedTermsType = 'Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms';
+ protected $rubiconNonGuaranteedTermsDataType = '';
+ public $sellerTimeZone;
+
+ public function setBrandingType($brandingType)
+ {
+ $this->brandingType = $brandingType;
+ }
+ public function getBrandingType()
+ {
+ return $this->brandingType;
+ }
+ public function setCrossListedExternalDealIdType($crossListedExternalDealIdType)
+ {
+ $this->crossListedExternalDealIdType = $crossListedExternalDealIdType;
+ }
+ public function getCrossListedExternalDealIdType()
+ {
+ return $this->crossListedExternalDealIdType;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEstimatedGrossSpend(Google_Service_AdExchangeBuyer_Price $estimatedGrossSpend)
+ {
+ $this->estimatedGrossSpend = $estimatedGrossSpend;
+ }
+ public function getEstimatedGrossSpend()
+ {
+ return $this->estimatedGrossSpend;
+ }
+ public function setEstimatedImpressionsPerDay($estimatedImpressionsPerDay)
+ {
+ $this->estimatedImpressionsPerDay = $estimatedImpressionsPerDay;
+ }
+ public function getEstimatedImpressionsPerDay()
+ {
+ return $this->estimatedImpressionsPerDay;
+ }
+ public function setGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms $guaranteedFixedPriceTerms)
+ {
+ $this->guaranteedFixedPriceTerms = $guaranteedFixedPriceTerms;
+ }
+ public function getGuaranteedFixedPriceTerms()
+ {
+ return $this->guaranteedFixedPriceTerms;
+ }
+ public function setNonGuaranteedAuctionTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms)
+ {
+ $this->nonGuaranteedAuctionTerms = $nonGuaranteedAuctionTerms;
+ }
+ public function getNonGuaranteedAuctionTerms()
+ {
+ return $this->nonGuaranteedAuctionTerms;
+ }
+ public function setNonGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms)
+ {
+ $this->nonGuaranteedFixedPriceTerms = $nonGuaranteedFixedPriceTerms;
+ }
+ public function getNonGuaranteedFixedPriceTerms()
+ {
+ return $this->nonGuaranteedFixedPriceTerms;
+ }
+ public function setRubiconNonGuaranteedTerms(Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms $rubiconNonGuaranteedTerms)
+ {
+ $this->rubiconNonGuaranteedTerms = $rubiconNonGuaranteedTerms;
+ }
+ public function getRubiconNonGuaranteedTerms()
+ {
+ return $this->rubiconNonGuaranteedTerms;
+ }
+ public function setSellerTimeZone($sellerTimeZone)
+ {
+ $this->sellerTimeZone = $sellerTimeZone;
+ }
+ public function getSellerTimeZone()
+ {
+ return $this->sellerTimeZone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTerms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTerms.php
new file mode 100644
index 00000000..44d1c474
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTerms.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms extends Google_Collection
+{
+ protected $collection_key = 'fixedPrices';
+ protected $billingInfoType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo';
+ protected $billingInfoDataType = '';
+ protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer';
+ protected $fixedPricesDataType = 'array';
+ public $guaranteedImpressions;
+ public $guaranteedLooks;
+ public $minimumDailyLooks;
+
+ public function setBillingInfo(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo $billingInfo)
+ {
+ $this->billingInfo = $billingInfo;
+ }
+ public function getBillingInfo()
+ {
+ return $this->billingInfo;
+ }
+ public function setFixedPrices($fixedPrices)
+ {
+ $this->fixedPrices = $fixedPrices;
+ }
+ public function getFixedPrices()
+ {
+ return $this->fixedPrices;
+ }
+ public function setGuaranteedImpressions($guaranteedImpressions)
+ {
+ $this->guaranteedImpressions = $guaranteedImpressions;
+ }
+ public function getGuaranteedImpressions()
+ {
+ return $this->guaranteedImpressions;
+ }
+ public function setGuaranteedLooks($guaranteedLooks)
+ {
+ $this->guaranteedLooks = $guaranteedLooks;
+ }
+ public function getGuaranteedLooks()
+ {
+ return $this->guaranteedLooks;
+ }
+ public function setMinimumDailyLooks($minimumDailyLooks)
+ {
+ $this->minimumDailyLooks = $minimumDailyLooks;
+ }
+ public function getMinimumDailyLooks()
+ {
+ return $this->minimumDailyLooks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTermsBillingInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTermsBillingInfo.php
new file mode 100644
index 00000000..800389e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTermsBillingInfo.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo extends Google_Model
+{
+ public $currencyConversionTimeMs;
+ public $dfpLineItemId;
+ public $originalContractedQuantity;
+ protected $priceType = 'Google_Service_AdExchangeBuyer_Price';
+ protected $priceDataType = '';
+
+ public function setCurrencyConversionTimeMs($currencyConversionTimeMs)
+ {
+ $this->currencyConversionTimeMs = $currencyConversionTimeMs;
+ }
+ public function getCurrencyConversionTimeMs()
+ {
+ return $this->currencyConversionTimeMs;
+ }
+ public function setDfpLineItemId($dfpLineItemId)
+ {
+ $this->dfpLineItemId = $dfpLineItemId;
+ }
+ public function getDfpLineItemId()
+ {
+ return $this->dfpLineItemId;
+ }
+ public function setOriginalContractedQuantity($originalContractedQuantity)
+ {
+ $this->originalContractedQuantity = $originalContractedQuantity;
+ }
+ public function getOriginalContractedQuantity()
+ {
+ return $this->originalContractedQuantity;
+ }
+ public function setPrice(Google_Service_AdExchangeBuyer_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedAuctionTerms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedAuctionTerms.php
new file mode 100644
index 00000000..c1d3b9c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedAuctionTerms.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms extends Google_Collection
+{
+ protected $collection_key = 'reservePricePerBuyers';
+ public $autoOptimizePrivateAuction;
+ protected $reservePricePerBuyersType = 'Google_Service_AdExchangeBuyer_PricePerBuyer';
+ protected $reservePricePerBuyersDataType = 'array';
+
+ public function setAutoOptimizePrivateAuction($autoOptimizePrivateAuction)
+ {
+ $this->autoOptimizePrivateAuction = $autoOptimizePrivateAuction;
+ }
+ public function getAutoOptimizePrivateAuction()
+ {
+ return $this->autoOptimizePrivateAuction;
+ }
+ public function setReservePricePerBuyers($reservePricePerBuyers)
+ {
+ $this->reservePricePerBuyers = $reservePricePerBuyers;
+ }
+ public function getReservePricePerBuyers()
+ {
+ return $this->reservePricePerBuyers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedFixedPriceTerms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedFixedPriceTerms.php
new file mode 100644
index 00000000..2cc74947
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedFixedPriceTerms.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms extends Google_Collection
+{
+ protected $collection_key = 'fixedPrices';
+ protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer';
+ protected $fixedPricesDataType = 'array';
+
+ public function setFixedPrices($fixedPrices)
+ {
+ $this->fixedPrices = $fixedPrices;
+ }
+ public function getFixedPrices()
+ {
+ return $this->fixedPrices;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsRubiconNonGuaranteedTerms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsRubiconNonGuaranteedTerms.php
new file mode 100644
index 00000000..4f71b442
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsRubiconNonGuaranteedTerms.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms extends Google_Model
+{
+ protected $priorityPriceType = 'Google_Service_AdExchangeBuyer_Price';
+ protected $priorityPriceDataType = '';
+ protected $standardPriceType = 'Google_Service_AdExchangeBuyer_Price';
+ protected $standardPriceDataType = '';
+
+ public function setPriorityPrice(Google_Service_AdExchangeBuyer_Price $priorityPrice)
+ {
+ $this->priorityPrice = $priorityPrice;
+ }
+ public function getPriorityPrice()
+ {
+ return $this->priorityPrice;
+ }
+ public function setStandardPrice(Google_Service_AdExchangeBuyer_Price $standardPrice)
+ {
+ $this->standardPrice = $standardPrice;
+ }
+ public function getStandardPrice()
+ {
+ return $this->standardPrice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsRequest.php
new file mode 100644
index 00000000..0ad62aaa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest extends Google_Collection
+{
+ protected $collection_key = 'dealIds';
+ public $dealIds;
+ public $proposalRevisionNumber;
+ public $updateAction;
+
+ public function setDealIds($dealIds)
+ {
+ $this->dealIds = $dealIds;
+ }
+ public function getDealIds()
+ {
+ return $this->dealIds;
+ }
+ public function setProposalRevisionNumber($proposalRevisionNumber)
+ {
+ $this->proposalRevisionNumber = $proposalRevisionNumber;
+ }
+ public function getProposalRevisionNumber()
+ {
+ return $this->proposalRevisionNumber;
+ }
+ public function setUpdateAction($updateAction)
+ {
+ $this->updateAction = $updateAction;
+ }
+ public function getUpdateAction()
+ {
+ return $this->updateAction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsResponse.php
new file mode 100644
index 00000000..004de993
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse extends Google_Collection
+{
+ protected $collection_key = 'deals';
+ protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
+ protected $dealsDataType = 'array';
+ public $proposalRevisionNumber;
+
+ public function setDeals($deals)
+ {
+ $this->deals = $deals;
+ }
+ public function getDeals()
+ {
+ return $this->deals;
+ }
+ public function setProposalRevisionNumber($proposalRevisionNumber)
+ {
+ $this->proposalRevisionNumber = $proposalRevisionNumber;
+ }
+ public function getProposalRevisionNumber()
+ {
+ return $this->proposalRevisionNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControl.php
new file mode 100644
index 00000000..0dc9e33b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControl.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DeliveryControl extends Google_Collection
+{
+ protected $collection_key = 'frequencyCaps';
+ public $creativeBlockingLevel;
+ public $deliveryRateType;
+ protected $frequencyCapsType = 'Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap';
+ protected $frequencyCapsDataType = 'array';
+
+ public function setCreativeBlockingLevel($creativeBlockingLevel)
+ {
+ $this->creativeBlockingLevel = $creativeBlockingLevel;
+ }
+ public function getCreativeBlockingLevel()
+ {
+ return $this->creativeBlockingLevel;
+ }
+ public function setDeliveryRateType($deliveryRateType)
+ {
+ $this->deliveryRateType = $deliveryRateType;
+ }
+ public function getDeliveryRateType()
+ {
+ return $this->deliveryRateType;
+ }
+ public function setFrequencyCaps($frequencyCaps)
+ {
+ $this->frequencyCaps = $frequencyCaps;
+ }
+ public function getFrequencyCaps()
+ {
+ return $this->frequencyCaps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControlFrequencyCap.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControlFrequencyCap.php
new file mode 100644
index 00000000..5f07de48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControlFrequencyCap.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap extends Google_Model
+{
+ public $maxImpressions;
+ public $numTimeUnits;
+ public $timeUnitType;
+
+ public function setMaxImpressions($maxImpressions)
+ {
+ $this->maxImpressions = $maxImpressions;
+ }
+ public function getMaxImpressions()
+ {
+ return $this->maxImpressions;
+ }
+ public function setNumTimeUnits($numTimeUnits)
+ {
+ $this->numTimeUnits = $numTimeUnits;
+ }
+ public function getNumTimeUnits()
+ {
+ return $this->numTimeUnits;
+ }
+ public function setTimeUnitType($timeUnitType)
+ {
+ $this->timeUnitType = $timeUnitType;
+ }
+ public function getTimeUnitType()
+ {
+ return $this->timeUnitType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Dimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Dimension.php
new file mode 100644
index 00000000..a3ebe40b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Dimension.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Dimension extends Google_Collection
+{
+ protected $collection_key = 'dimensionValues';
+ public $dimensionType;
+ protected $dimensionValuesType = 'Google_Service_AdExchangeBuyer_DimensionDimensionValue';
+ protected $dimensionValuesDataType = 'array';
+
+ public function setDimensionType($dimensionType)
+ {
+ $this->dimensionType = $dimensionType;
+ }
+ public function getDimensionType()
+ {
+ return $this->dimensionType;
+ }
+ public function setDimensionValues($dimensionValues)
+ {
+ $this->dimensionValues = $dimensionValues;
+ }
+ public function getDimensionValues()
+ {
+ return $this->dimensionValues;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DimensionDimensionValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DimensionDimensionValue.php
new file mode 100644
index 00000000..b2d4a9a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DimensionDimensionValue.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_DimensionDimensionValue extends Google_Model
+{
+ public $id;
+ public $name;
+ public $percentage;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPercentage($percentage)
+ {
+ $this->percentage = $percentage;
+ }
+ public function getPercentage()
+ {
+ return $this->percentage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsRequest.php
new file mode 100644
index 00000000..f4584ad4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsRequest.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest extends Google_Collection
+{
+ protected $collection_key = 'deals';
+ protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
+ protected $dealsDataType = 'array';
+ protected $proposalType = 'Google_Service_AdExchangeBuyer_Proposal';
+ protected $proposalDataType = '';
+ public $proposalRevisionNumber;
+ public $updateAction;
+
+ public function setDeals($deals)
+ {
+ $this->deals = $deals;
+ }
+ public function getDeals()
+ {
+ return $this->deals;
+ }
+ public function setProposal(Google_Service_AdExchangeBuyer_Proposal $proposal)
+ {
+ $this->proposal = $proposal;
+ }
+ public function getProposal()
+ {
+ return $this->proposal;
+ }
+ public function setProposalRevisionNumber($proposalRevisionNumber)
+ {
+ $this->proposalRevisionNumber = $proposalRevisionNumber;
+ }
+ public function getProposalRevisionNumber()
+ {
+ return $this->proposalRevisionNumber;
+ }
+ public function setUpdateAction($updateAction)
+ {
+ $this->updateAction = $updateAction;
+ }
+ public function getUpdateAction()
+ {
+ return $this->updateAction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsResponse.php
new file mode 100644
index 00000000..2a480ea5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse extends Google_Collection
+{
+ protected $collection_key = 'deals';
+ protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
+ protected $dealsDataType = 'array';
+ public $orderRevisionNumber;
+
+ public function setDeals($deals)
+ {
+ $this->deals = $deals;
+ }
+ public function getDeals()
+ {
+ return $this->deals;
+ }
+ public function setOrderRevisionNumber($orderRevisionNumber)
+ {
+ $this->orderRevisionNumber = $orderRevisionNumber;
+ }
+ public function getOrderRevisionNumber()
+ {
+ return $this->orderRevisionNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOffersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOffersResponse.php
new file mode 100644
index 00000000..d7dd858b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOffersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_GetOffersResponse extends Google_Collection
+{
+ protected $collection_key = 'products';
+ protected $productsType = 'Google_Service_AdExchangeBuyer_Product';
+ protected $productsDataType = 'array';
+
+ public function setProducts($products)
+ {
+ $this->products = $products;
+ }
+ public function getProducts()
+ {
+ return $this->products;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderDealsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderDealsResponse.php
new file mode 100644
index 00000000..7c1eee41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderDealsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_GetOrderDealsResponse extends Google_Collection
+{
+ protected $collection_key = 'deals';
+ protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
+ protected $dealsDataType = 'array';
+
+ public function setDeals($deals)
+ {
+ $this->deals = $deals;
+ }
+ public function getDeals()
+ {
+ return $this->deals;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderNotesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderNotesResponse.php
new file mode 100644
index 00000000..a35f8ce8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderNotesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_GetOrderNotesResponse extends Google_Collection
+{
+ protected $collection_key = 'notes';
+ protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
+ protected $notesDataType = 'array';
+
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrdersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrdersResponse.php
new file mode 100644
index 00000000..e6061634
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrdersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_GetOrdersResponse extends Google_Collection
+{
+ protected $collection_key = 'proposals';
+ protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal';
+ protected $proposalsDataType = 'array';
+
+ public function setProposals($proposals)
+ {
+ $this->proposals = $proposals;
+ }
+ public function getProposals()
+ {
+ return $this->proposals;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetPublisherProfilesByAccountIdResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetPublisherProfilesByAccountIdResponse.php
new file mode 100644
index 00000000..bafbb851
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetPublisherProfilesByAccountIdResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse extends Google_Collection
+{
+ protected $collection_key = 'profiles';
+ protected $profilesType = 'Google_Service_AdExchangeBuyer_PublisherProfileApiProto';
+ protected $profilesDataType = 'array';
+
+ public function setProfiles($profiles)
+ {
+ $this->profiles = $profiles;
+ }
+ public function getProfiles()
+ {
+ return $this->profiles;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDeal.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDeal.php
new file mode 100644
index 00000000..9a03a16d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDeal.php
@@ -0,0 +1,244 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection
+{
+ protected $collection_key = 'sharedTargetings';
+ protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData';
+ protected $buyerPrivateDataDataType = '';
+ public $creationTimeMs;
+ public $creativePreApprovalPolicy;
+ public $creativeSafeFrameCompatibility;
+ public $dealId;
+ protected $dealServingMetadataType = 'Google_Service_AdExchangeBuyer_DealServingMetadata';
+ protected $dealServingMetadataDataType = '';
+ protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl';
+ protected $deliveryControlDataType = '';
+ public $externalDealId;
+ public $flightEndTimeMs;
+ public $flightStartTimeMs;
+ public $inventoryDescription;
+ public $isRfpTemplate;
+ public $kind;
+ public $lastUpdateTimeMs;
+ public $name;
+ public $productId;
+ public $productRevisionNumber;
+ public $programmaticCreativeSource;
+ public $proposalId;
+ protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
+ protected $sellerContactsDataType = 'array';
+ protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting';
+ protected $sharedTargetingsDataType = 'array';
+ public $syndicationProduct;
+ protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms';
+ protected $termsDataType = '';
+ public $webPropertyCode;
+
+ public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData)
+ {
+ $this->buyerPrivateData = $buyerPrivateData;
+ }
+ public function getBuyerPrivateData()
+ {
+ return $this->buyerPrivateData;
+ }
+ public function setCreationTimeMs($creationTimeMs)
+ {
+ $this->creationTimeMs = $creationTimeMs;
+ }
+ public function getCreationTimeMs()
+ {
+ return $this->creationTimeMs;
+ }
+ public function setCreativePreApprovalPolicy($creativePreApprovalPolicy)
+ {
+ $this->creativePreApprovalPolicy = $creativePreApprovalPolicy;
+ }
+ public function getCreativePreApprovalPolicy()
+ {
+ return $this->creativePreApprovalPolicy;
+ }
+ public function setCreativeSafeFrameCompatibility($creativeSafeFrameCompatibility)
+ {
+ $this->creativeSafeFrameCompatibility = $creativeSafeFrameCompatibility;
+ }
+ public function getCreativeSafeFrameCompatibility()
+ {
+ return $this->creativeSafeFrameCompatibility;
+ }
+ public function setDealId($dealId)
+ {
+ $this->dealId = $dealId;
+ }
+ public function getDealId()
+ {
+ return $this->dealId;
+ }
+ public function setDealServingMetadata(Google_Service_AdExchangeBuyer_DealServingMetadata $dealServingMetadata)
+ {
+ $this->dealServingMetadata = $dealServingMetadata;
+ }
+ public function getDealServingMetadata()
+ {
+ return $this->dealServingMetadata;
+ }
+ public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl)
+ {
+ $this->deliveryControl = $deliveryControl;
+ }
+ public function getDeliveryControl()
+ {
+ return $this->deliveryControl;
+ }
+ public function setExternalDealId($externalDealId)
+ {
+ $this->externalDealId = $externalDealId;
+ }
+ public function getExternalDealId()
+ {
+ return $this->externalDealId;
+ }
+ public function setFlightEndTimeMs($flightEndTimeMs)
+ {
+ $this->flightEndTimeMs = $flightEndTimeMs;
+ }
+ public function getFlightEndTimeMs()
+ {
+ return $this->flightEndTimeMs;
+ }
+ public function setFlightStartTimeMs($flightStartTimeMs)
+ {
+ $this->flightStartTimeMs = $flightStartTimeMs;
+ }
+ public function getFlightStartTimeMs()
+ {
+ return $this->flightStartTimeMs;
+ }
+ public function setInventoryDescription($inventoryDescription)
+ {
+ $this->inventoryDescription = $inventoryDescription;
+ }
+ public function getInventoryDescription()
+ {
+ return $this->inventoryDescription;
+ }
+ public function setIsRfpTemplate($isRfpTemplate)
+ {
+ $this->isRfpTemplate = $isRfpTemplate;
+ }
+ public function getIsRfpTemplate()
+ {
+ return $this->isRfpTemplate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUpdateTimeMs($lastUpdateTimeMs)
+ {
+ $this->lastUpdateTimeMs = $lastUpdateTimeMs;
+ }
+ public function getLastUpdateTimeMs()
+ {
+ return $this->lastUpdateTimeMs;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setProductRevisionNumber($productRevisionNumber)
+ {
+ $this->productRevisionNumber = $productRevisionNumber;
+ }
+ public function getProductRevisionNumber()
+ {
+ return $this->productRevisionNumber;
+ }
+ public function setProgrammaticCreativeSource($programmaticCreativeSource)
+ {
+ $this->programmaticCreativeSource = $programmaticCreativeSource;
+ }
+ public function getProgrammaticCreativeSource()
+ {
+ return $this->programmaticCreativeSource;
+ }
+ public function setProposalId($proposalId)
+ {
+ $this->proposalId = $proposalId;
+ }
+ public function getProposalId()
+ {
+ return $this->proposalId;
+ }
+ public function setSellerContacts($sellerContacts)
+ {
+ $this->sellerContacts = $sellerContacts;
+ }
+ public function getSellerContacts()
+ {
+ return $this->sellerContacts;
+ }
+ public function setSharedTargetings($sharedTargetings)
+ {
+ $this->sharedTargetings = $sharedTargetings;
+ }
+ public function getSharedTargetings()
+ {
+ return $this->sharedTargetings;
+ }
+ public function setSyndicationProduct($syndicationProduct)
+ {
+ $this->syndicationProduct = $syndicationProduct;
+ }
+ public function getSyndicationProduct()
+ {
+ return $this->syndicationProduct;
+ }
+ public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms)
+ {
+ $this->terms = $terms;
+ }
+ public function getTerms()
+ {
+ return $this->terms;
+ }
+ public function setWebPropertyCode($webPropertyCode)
+ {
+ $this->webPropertyCode = $webPropertyCode;
+ }
+ public function getWebPropertyCode()
+ {
+ return $this->webPropertyCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDealParty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDealParty.php
new file mode 100644
index 00000000..ff1b47bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDealParty.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_MarketplaceDealParty extends Google_Model
+{
+ protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer';
+ protected $buyerDataType = '';
+ protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
+ protected $sellerDataType = '';
+
+ public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer)
+ {
+ $this->buyer = $buyer;
+ }
+ public function getBuyer()
+ {
+ return $this->buyer;
+ }
+ public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
+ {
+ $this->seller = $seller;
+ }
+ public function getSeller()
+ {
+ return $this->seller;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceLabel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceLabel.php
new file mode 100644
index 00000000..33253901
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceLabel.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_MarketplaceLabel extends Google_Model
+{
+ public $accountId;
+ public $createTimeMs;
+ protected $deprecatedMarketplaceDealPartyType = 'Google_Service_AdExchangeBuyer_MarketplaceDealParty';
+ protected $deprecatedMarketplaceDealPartyDataType = '';
+ public $label;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCreateTimeMs($createTimeMs)
+ {
+ $this->createTimeMs = $createTimeMs;
+ }
+ public function getCreateTimeMs()
+ {
+ return $this->createTimeMs;
+ }
+ public function setDeprecatedMarketplaceDealParty(Google_Service_AdExchangeBuyer_MarketplaceDealParty $deprecatedMarketplaceDealParty)
+ {
+ $this->deprecatedMarketplaceDealParty = $deprecatedMarketplaceDealParty;
+ }
+ public function getDeprecatedMarketplaceDealParty()
+ {
+ return $this->deprecatedMarketplaceDealParty;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceNote.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceNote.php
new file mode 100644
index 00000000..70597782
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceNote.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_MarketplaceNote extends Google_Model
+{
+ public $creatorRole;
+ public $dealId;
+ public $kind;
+ public $note;
+ public $noteId;
+ public $proposalId;
+ public $proposalRevisionNumber;
+ public $timestampMs;
+
+ public function setCreatorRole($creatorRole)
+ {
+ $this->creatorRole = $creatorRole;
+ }
+ public function getCreatorRole()
+ {
+ return $this->creatorRole;
+ }
+ public function setDealId($dealId)
+ {
+ $this->dealId = $dealId;
+ }
+ public function getDealId()
+ {
+ return $this->dealId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNote($note)
+ {
+ $this->note = $note;
+ }
+ public function getNote()
+ {
+ return $this->note;
+ }
+ public function setNoteId($noteId)
+ {
+ $this->noteId = $noteId;
+ }
+ public function getNoteId()
+ {
+ return $this->noteId;
+ }
+ public function setProposalId($proposalId)
+ {
+ $this->proposalId = $proposalId;
+ }
+ public function getProposalId()
+ {
+ return $this->proposalId;
+ }
+ public function setProposalRevisionNumber($proposalRevisionNumber)
+ {
+ $this->proposalRevisionNumber = $proposalRevisionNumber;
+ }
+ public function getProposalRevisionNumber()
+ {
+ return $this->proposalRevisionNumber;
+ }
+ public function setTimestampMs($timestampMs)
+ {
+ $this->timestampMs = $timestampMs;
+ }
+ public function getTimestampMs()
+ {
+ return $this->timestampMs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReport.php
new file mode 100644
index 00000000..3d0b766c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReport.php
@@ -0,0 +1,220 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection
+{
+ protected $collection_key = 'hostedMatchStatusRate';
+ public $bidRate;
+ public $bidRequestRate;
+ public $calloutStatusRate;
+ public $cookieMatcherStatusRate;
+ public $creativeStatusRate;
+ public $filteredBidRate;
+ public $hostedMatchStatusRate;
+ public $inventoryMatchRate;
+ public $kind;
+ public $latency50thPercentile;
+ public $latency85thPercentile;
+ public $latency95thPercentile;
+ public $noQuotaInRegion;
+ public $outOfQuota;
+ public $pixelMatchRequests;
+ public $pixelMatchResponses;
+ public $quotaConfiguredLimit;
+ public $quotaThrottledLimit;
+ public $region;
+ public $successfulRequestRate;
+ public $timestamp;
+ public $unsuccessfulRequestRate;
+
+ public function setBidRate($bidRate)
+ {
+ $this->bidRate = $bidRate;
+ }
+ public function getBidRate()
+ {
+ return $this->bidRate;
+ }
+ public function setBidRequestRate($bidRequestRate)
+ {
+ $this->bidRequestRate = $bidRequestRate;
+ }
+ public function getBidRequestRate()
+ {
+ return $this->bidRequestRate;
+ }
+ public function setCalloutStatusRate($calloutStatusRate)
+ {
+ $this->calloutStatusRate = $calloutStatusRate;
+ }
+ public function getCalloutStatusRate()
+ {
+ return $this->calloutStatusRate;
+ }
+ public function setCookieMatcherStatusRate($cookieMatcherStatusRate)
+ {
+ $this->cookieMatcherStatusRate = $cookieMatcherStatusRate;
+ }
+ public function getCookieMatcherStatusRate()
+ {
+ return $this->cookieMatcherStatusRate;
+ }
+ public function setCreativeStatusRate($creativeStatusRate)
+ {
+ $this->creativeStatusRate = $creativeStatusRate;
+ }
+ public function getCreativeStatusRate()
+ {
+ return $this->creativeStatusRate;
+ }
+ public function setFilteredBidRate($filteredBidRate)
+ {
+ $this->filteredBidRate = $filteredBidRate;
+ }
+ public function getFilteredBidRate()
+ {
+ return $this->filteredBidRate;
+ }
+ public function setHostedMatchStatusRate($hostedMatchStatusRate)
+ {
+ $this->hostedMatchStatusRate = $hostedMatchStatusRate;
+ }
+ public function getHostedMatchStatusRate()
+ {
+ return $this->hostedMatchStatusRate;
+ }
+ public function setInventoryMatchRate($inventoryMatchRate)
+ {
+ $this->inventoryMatchRate = $inventoryMatchRate;
+ }
+ public function getInventoryMatchRate()
+ {
+ return $this->inventoryMatchRate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLatency50thPercentile($latency50thPercentile)
+ {
+ $this->latency50thPercentile = $latency50thPercentile;
+ }
+ public function getLatency50thPercentile()
+ {
+ return $this->latency50thPercentile;
+ }
+ public function setLatency85thPercentile($latency85thPercentile)
+ {
+ $this->latency85thPercentile = $latency85thPercentile;
+ }
+ public function getLatency85thPercentile()
+ {
+ return $this->latency85thPercentile;
+ }
+ public function setLatency95thPercentile($latency95thPercentile)
+ {
+ $this->latency95thPercentile = $latency95thPercentile;
+ }
+ public function getLatency95thPercentile()
+ {
+ return $this->latency95thPercentile;
+ }
+ public function setNoQuotaInRegion($noQuotaInRegion)
+ {
+ $this->noQuotaInRegion = $noQuotaInRegion;
+ }
+ public function getNoQuotaInRegion()
+ {
+ return $this->noQuotaInRegion;
+ }
+ public function setOutOfQuota($outOfQuota)
+ {
+ $this->outOfQuota = $outOfQuota;
+ }
+ public function getOutOfQuota()
+ {
+ return $this->outOfQuota;
+ }
+ public function setPixelMatchRequests($pixelMatchRequests)
+ {
+ $this->pixelMatchRequests = $pixelMatchRequests;
+ }
+ public function getPixelMatchRequests()
+ {
+ return $this->pixelMatchRequests;
+ }
+ public function setPixelMatchResponses($pixelMatchResponses)
+ {
+ $this->pixelMatchResponses = $pixelMatchResponses;
+ }
+ public function getPixelMatchResponses()
+ {
+ return $this->pixelMatchResponses;
+ }
+ public function setQuotaConfiguredLimit($quotaConfiguredLimit)
+ {
+ $this->quotaConfiguredLimit = $quotaConfiguredLimit;
+ }
+ public function getQuotaConfiguredLimit()
+ {
+ return $this->quotaConfiguredLimit;
+ }
+ public function setQuotaThrottledLimit($quotaThrottledLimit)
+ {
+ $this->quotaThrottledLimit = $quotaThrottledLimit;
+ }
+ public function getQuotaThrottledLimit()
+ {
+ return $this->quotaThrottledLimit;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSuccessfulRequestRate($successfulRequestRate)
+ {
+ $this->successfulRequestRate = $successfulRequestRate;
+ }
+ public function getSuccessfulRequestRate()
+ {
+ return $this->successfulRequestRate;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setUnsuccessfulRequestRate($unsuccessfulRequestRate)
+ {
+ $this->unsuccessfulRequestRate = $unsuccessfulRequestRate;
+ }
+ public function getUnsuccessfulRequestRate()
+ {
+ return $this->unsuccessfulRequestRate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReportList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReportList.php
new file mode 100644
index 00000000..0ec2be9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReportList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection
+{
+ protected $collection_key = 'performanceReport';
+ public $kind;
+ protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport';
+ protected $performanceReportDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPerformanceReport($performanceReport)
+ {
+ $this->performanceReport = $performanceReport;
+ }
+ public function getPerformanceReport()
+ {
+ return $this->performanceReport;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfig.php
new file mode 100644
index 00000000..f24a9df1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfig.php
@@ -0,0 +1,260 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection
+{
+ protected $collection_key = 'videoPlayerSizes';
+ public $billingId;
+ public $configId;
+ public $configName;
+ public $creativeType;
+ protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions';
+ protected $dimensionsDataType = 'array';
+ public $excludedContentLabels;
+ public $excludedGeoCriteriaIds;
+ protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements';
+ protected $excludedPlacementsDataType = 'array';
+ public $excludedUserLists;
+ public $excludedVerticals;
+ public $geoCriteriaIds;
+ public $isActive;
+ public $kind;
+ public $languages;
+ public $minimumViewabilityDecile;
+ public $mobileCarriers;
+ public $mobileDevices;
+ public $mobileOperatingSystemVersions;
+ protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements';
+ protected $placementsDataType = 'array';
+ public $platforms;
+ public $supportedCreativeAttributes;
+ public $userIdentifierDataRequired;
+ public $userLists;
+ public $vendorTypes;
+ public $verticals;
+ protected $videoPlayerSizesType = 'Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes';
+ protected $videoPlayerSizesDataType = 'array';
+
+ public function setBillingId($billingId)
+ {
+ $this->billingId = $billingId;
+ }
+ public function getBillingId()
+ {
+ return $this->billingId;
+ }
+ public function setConfigId($configId)
+ {
+ $this->configId = $configId;
+ }
+ public function getConfigId()
+ {
+ return $this->configId;
+ }
+ public function setConfigName($configName)
+ {
+ $this->configName = $configName;
+ }
+ public function getConfigName()
+ {
+ return $this->configName;
+ }
+ public function setCreativeType($creativeType)
+ {
+ $this->creativeType = $creativeType;
+ }
+ public function getCreativeType()
+ {
+ return $this->creativeType;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setExcludedContentLabels($excludedContentLabels)
+ {
+ $this->excludedContentLabels = $excludedContentLabels;
+ }
+ public function getExcludedContentLabels()
+ {
+ return $this->excludedContentLabels;
+ }
+ public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds)
+ {
+ $this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds;
+ }
+ public function getExcludedGeoCriteriaIds()
+ {
+ return $this->excludedGeoCriteriaIds;
+ }
+ public function setExcludedPlacements($excludedPlacements)
+ {
+ $this->excludedPlacements = $excludedPlacements;
+ }
+ public function getExcludedPlacements()
+ {
+ return $this->excludedPlacements;
+ }
+ public function setExcludedUserLists($excludedUserLists)
+ {
+ $this->excludedUserLists = $excludedUserLists;
+ }
+ public function getExcludedUserLists()
+ {
+ return $this->excludedUserLists;
+ }
+ public function setExcludedVerticals($excludedVerticals)
+ {
+ $this->excludedVerticals = $excludedVerticals;
+ }
+ public function getExcludedVerticals()
+ {
+ return $this->excludedVerticals;
+ }
+ public function setGeoCriteriaIds($geoCriteriaIds)
+ {
+ $this->geoCriteriaIds = $geoCriteriaIds;
+ }
+ public function getGeoCriteriaIds()
+ {
+ return $this->geoCriteriaIds;
+ }
+ public function setIsActive($isActive)
+ {
+ $this->isActive = $isActive;
+ }
+ public function getIsActive()
+ {
+ return $this->isActive;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+ public function setMinimumViewabilityDecile($minimumViewabilityDecile)
+ {
+ $this->minimumViewabilityDecile = $minimumViewabilityDecile;
+ }
+ public function getMinimumViewabilityDecile()
+ {
+ return $this->minimumViewabilityDecile;
+ }
+ public function setMobileCarriers($mobileCarriers)
+ {
+ $this->mobileCarriers = $mobileCarriers;
+ }
+ public function getMobileCarriers()
+ {
+ return $this->mobileCarriers;
+ }
+ public function setMobileDevices($mobileDevices)
+ {
+ $this->mobileDevices = $mobileDevices;
+ }
+ public function getMobileDevices()
+ {
+ return $this->mobileDevices;
+ }
+ public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions)
+ {
+ $this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions;
+ }
+ public function getMobileOperatingSystemVersions()
+ {
+ return $this->mobileOperatingSystemVersions;
+ }
+ public function setPlacements($placements)
+ {
+ $this->placements = $placements;
+ }
+ public function getPlacements()
+ {
+ return $this->placements;
+ }
+ public function setPlatforms($platforms)
+ {
+ $this->platforms = $platforms;
+ }
+ public function getPlatforms()
+ {
+ return $this->platforms;
+ }
+ public function setSupportedCreativeAttributes($supportedCreativeAttributes)
+ {
+ $this->supportedCreativeAttributes = $supportedCreativeAttributes;
+ }
+ public function getSupportedCreativeAttributes()
+ {
+ return $this->supportedCreativeAttributes;
+ }
+ public function setUserIdentifierDataRequired($userIdentifierDataRequired)
+ {
+ $this->userIdentifierDataRequired = $userIdentifierDataRequired;
+ }
+ public function getUserIdentifierDataRequired()
+ {
+ return $this->userIdentifierDataRequired;
+ }
+ public function setUserLists($userLists)
+ {
+ $this->userLists = $userLists;
+ }
+ public function getUserLists()
+ {
+ return $this->userLists;
+ }
+ public function setVendorTypes($vendorTypes)
+ {
+ $this->vendorTypes = $vendorTypes;
+ }
+ public function getVendorTypes()
+ {
+ return $this->vendorTypes;
+ }
+ public function setVerticals($verticals)
+ {
+ $this->verticals = $verticals;
+ }
+ public function getVerticals()
+ {
+ return $this->verticals;
+ }
+ public function setVideoPlayerSizes($videoPlayerSizes)
+ {
+ $this->videoPlayerSizes = $videoPlayerSizes;
+ }
+ public function getVideoPlayerSizes()
+ {
+ return $this->videoPlayerSizes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigDimensions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigDimensions.php
new file mode 100644
index 00000000..0515ea6c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigDimensions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model
+{
+ public $height;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigExcludedPlacements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigExcludedPlacements.php
new file mode 100644
index 00000000..6ef80a65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigExcludedPlacements.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model
+{
+ public $token;
+ public $type;
+
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigList.php
new file mode 100644
index 00000000..aaeda88b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigPlacements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigPlacements.php
new file mode 100644
index 00000000..f6394606
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigPlacements.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model
+{
+ public $token;
+ public $type;
+
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigVideoPlayerSizes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigVideoPlayerSizes.php
new file mode 100644
index 00000000..f1b50101
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigVideoPlayerSizes.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes extends Google_Model
+{
+ public $aspectRatio;
+ public $minHeight;
+ public $minWidth;
+
+ public function setAspectRatio($aspectRatio)
+ {
+ $this->aspectRatio = $aspectRatio;
+ }
+ public function getAspectRatio()
+ {
+ return $this->aspectRatio;
+ }
+ public function setMinHeight($minHeight)
+ {
+ $this->minHeight = $minHeight;
+ }
+ public function getMinHeight()
+ {
+ return $this->minHeight;
+ }
+ public function setMinWidth($minWidth)
+ {
+ $this->minWidth = $minWidth;
+ }
+ public function getMinWidth()
+ {
+ return $this->minWidth;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Price.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Price.php
new file mode 100644
index 00000000..876ecceb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Price.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Price extends Google_Model
+{
+ public $amountMicros;
+ public $currencyCode;
+ public $expectedCpmMicros;
+ public $pricingType;
+
+ public function setAmountMicros($amountMicros)
+ {
+ $this->amountMicros = $amountMicros;
+ }
+ public function getAmountMicros()
+ {
+ return $this->amountMicros;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setExpectedCpmMicros($expectedCpmMicros)
+ {
+ $this->expectedCpmMicros = $expectedCpmMicros;
+ }
+ public function getExpectedCpmMicros()
+ {
+ return $this->expectedCpmMicros;
+ }
+ public function setPricingType($pricingType)
+ {
+ $this->pricingType = $pricingType;
+ }
+ public function getPricingType()
+ {
+ return $this->pricingType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PricePerBuyer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PricePerBuyer.php
new file mode 100644
index 00000000..59018c9e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PricePerBuyer.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PricePerBuyer extends Google_Model
+{
+ public $auctionTier;
+ protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer';
+ protected $buyerDataType = '';
+ protected $priceType = 'Google_Service_AdExchangeBuyer_Price';
+ protected $priceDataType = '';
+
+ public function setAuctionTier($auctionTier)
+ {
+ $this->auctionTier = $auctionTier;
+ }
+ public function getAuctionTier()
+ {
+ return $this->auctionTier;
+ }
+ public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer)
+ {
+ $this->buyer = $buyer;
+ }
+ public function getBuyer()
+ {
+ return $this->buyer;
+ }
+ public function setPrice(Google_Service_AdExchangeBuyer_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PrivateData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PrivateData.php
new file mode 100644
index 00000000..c2b42db9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PrivateData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PrivateData extends Google_Model
+{
+ public $referenceId;
+ public $referencePayload;
+
+ public function setReferenceId($referenceId)
+ {
+ $this->referenceId = $referenceId;
+ }
+ public function getReferenceId()
+ {
+ return $this->referenceId;
+ }
+ public function setReferencePayload($referencePayload)
+ {
+ $this->referencePayload = $referencePayload;
+ }
+ public function getReferencePayload()
+ {
+ return $this->referencePayload;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Product.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Product.php
new file mode 100644
index 00000000..7b5c0a59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Product.php
@@ -0,0 +1,245 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Product extends Google_Collection
+{
+ protected $collection_key = 'sharedTargetings';
+ public $creationTimeMs;
+ protected $creatorContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
+ protected $creatorContactsDataType = 'array';
+ protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl';
+ protected $deliveryControlDataType = '';
+ public $flightEndTimeMs;
+ public $flightStartTimeMs;
+ public $hasCreatorSignedOff;
+ public $inventorySource;
+ public $kind;
+ protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel';
+ protected $labelsDataType = 'array';
+ public $lastUpdateTimeMs;
+ public $legacyOfferId;
+ public $marketplacePublisherProfileId;
+ public $name;
+ public $privateAuctionId;
+ public $productId;
+ public $publisherProfileId;
+ protected $publisherProvidedForecastType = 'Google_Service_AdExchangeBuyer_PublisherProvidedForecast';
+ protected $publisherProvidedForecastDataType = '';
+ public $revisionNumber;
+ protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
+ protected $sellerDataType = '';
+ protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting';
+ protected $sharedTargetingsDataType = 'array';
+ public $state;
+ public $syndicationProduct;
+ protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms';
+ protected $termsDataType = '';
+ public $webPropertyCode;
+
+ public function setCreationTimeMs($creationTimeMs)
+ {
+ $this->creationTimeMs = $creationTimeMs;
+ }
+ public function getCreationTimeMs()
+ {
+ return $this->creationTimeMs;
+ }
+ public function setCreatorContacts($creatorContacts)
+ {
+ $this->creatorContacts = $creatorContacts;
+ }
+ public function getCreatorContacts()
+ {
+ return $this->creatorContacts;
+ }
+ public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl)
+ {
+ $this->deliveryControl = $deliveryControl;
+ }
+ public function getDeliveryControl()
+ {
+ return $this->deliveryControl;
+ }
+ public function setFlightEndTimeMs($flightEndTimeMs)
+ {
+ $this->flightEndTimeMs = $flightEndTimeMs;
+ }
+ public function getFlightEndTimeMs()
+ {
+ return $this->flightEndTimeMs;
+ }
+ public function setFlightStartTimeMs($flightStartTimeMs)
+ {
+ $this->flightStartTimeMs = $flightStartTimeMs;
+ }
+ public function getFlightStartTimeMs()
+ {
+ return $this->flightStartTimeMs;
+ }
+ public function setHasCreatorSignedOff($hasCreatorSignedOff)
+ {
+ $this->hasCreatorSignedOff = $hasCreatorSignedOff;
+ }
+ public function getHasCreatorSignedOff()
+ {
+ return $this->hasCreatorSignedOff;
+ }
+ public function setInventorySource($inventorySource)
+ {
+ $this->inventorySource = $inventorySource;
+ }
+ public function getInventorySource()
+ {
+ return $this->inventorySource;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLastUpdateTimeMs($lastUpdateTimeMs)
+ {
+ $this->lastUpdateTimeMs = $lastUpdateTimeMs;
+ }
+ public function getLastUpdateTimeMs()
+ {
+ return $this->lastUpdateTimeMs;
+ }
+ public function setLegacyOfferId($legacyOfferId)
+ {
+ $this->legacyOfferId = $legacyOfferId;
+ }
+ public function getLegacyOfferId()
+ {
+ return $this->legacyOfferId;
+ }
+ public function setMarketplacePublisherProfileId($marketplacePublisherProfileId)
+ {
+ $this->marketplacePublisherProfileId = $marketplacePublisherProfileId;
+ }
+ public function getMarketplacePublisherProfileId()
+ {
+ return $this->marketplacePublisherProfileId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrivateAuctionId($privateAuctionId)
+ {
+ $this->privateAuctionId = $privateAuctionId;
+ }
+ public function getPrivateAuctionId()
+ {
+ return $this->privateAuctionId;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setPublisherProfileId($publisherProfileId)
+ {
+ $this->publisherProfileId = $publisherProfileId;
+ }
+ public function getPublisherProfileId()
+ {
+ return $this->publisherProfileId;
+ }
+ public function setPublisherProvidedForecast(Google_Service_AdExchangeBuyer_PublisherProvidedForecast $publisherProvidedForecast)
+ {
+ $this->publisherProvidedForecast = $publisherProvidedForecast;
+ }
+ public function getPublisherProvidedForecast()
+ {
+ return $this->publisherProvidedForecast;
+ }
+ public function setRevisionNumber($revisionNumber)
+ {
+ $this->revisionNumber = $revisionNumber;
+ }
+ public function getRevisionNumber()
+ {
+ return $this->revisionNumber;
+ }
+ public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
+ {
+ $this->seller = $seller;
+ }
+ public function getSeller()
+ {
+ return $this->seller;
+ }
+ public function setSharedTargetings($sharedTargetings)
+ {
+ $this->sharedTargetings = $sharedTargetings;
+ }
+ public function getSharedTargetings()
+ {
+ return $this->sharedTargetings;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setSyndicationProduct($syndicationProduct)
+ {
+ $this->syndicationProduct = $syndicationProduct;
+ }
+ public function getSyndicationProduct()
+ {
+ return $this->syndicationProduct;
+ }
+ public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms)
+ {
+ $this->terms = $terms;
+ }
+ public function getTerms()
+ {
+ return $this->terms;
+ }
+ public function setWebPropertyCode($webPropertyCode)
+ {
+ $this->webPropertyCode = $webPropertyCode;
+ }
+ public function getWebPropertyCode()
+ {
+ return $this->webPropertyCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Proposal.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Proposal.php
new file mode 100644
index 00000000..e6192855
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Proposal.php
@@ -0,0 +1,236 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Proposal extends Google_Collection
+{
+ protected $collection_key = 'sellerContacts';
+ protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer';
+ protected $billedBuyerDataType = '';
+ protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer';
+ protected $buyerDataType = '';
+ protected $buyerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
+ protected $buyerContactsDataType = 'array';
+ protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData';
+ protected $buyerPrivateDataDataType = '';
+ public $dbmAdvertiserIds;
+ public $hasBuyerSignedOff;
+ public $hasSellerSignedOff;
+ public $inventorySource;
+ public $isRenegotiating;
+ public $isSetupComplete;
+ public $kind;
+ protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel';
+ protected $labelsDataType = 'array';
+ public $lastUpdaterOrCommentorRole;
+ public $name;
+ public $negotiationId;
+ public $originatorRole;
+ public $privateAuctionId;
+ public $proposalId;
+ public $proposalState;
+ public $revisionNumber;
+ public $revisionTimeMs;
+ protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
+ protected $sellerDataType = '';
+ protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
+ protected $sellerContactsDataType = 'array';
+
+ public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer)
+ {
+ $this->billedBuyer = $billedBuyer;
+ }
+ public function getBilledBuyer()
+ {
+ return $this->billedBuyer;
+ }
+ public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer)
+ {
+ $this->buyer = $buyer;
+ }
+ public function getBuyer()
+ {
+ return $this->buyer;
+ }
+ public function setBuyerContacts($buyerContacts)
+ {
+ $this->buyerContacts = $buyerContacts;
+ }
+ public function getBuyerContacts()
+ {
+ return $this->buyerContacts;
+ }
+ public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData)
+ {
+ $this->buyerPrivateData = $buyerPrivateData;
+ }
+ public function getBuyerPrivateData()
+ {
+ return $this->buyerPrivateData;
+ }
+ public function setDbmAdvertiserIds($dbmAdvertiserIds)
+ {
+ $this->dbmAdvertiserIds = $dbmAdvertiserIds;
+ }
+ public function getDbmAdvertiserIds()
+ {
+ return $this->dbmAdvertiserIds;
+ }
+ public function setHasBuyerSignedOff($hasBuyerSignedOff)
+ {
+ $this->hasBuyerSignedOff = $hasBuyerSignedOff;
+ }
+ public function getHasBuyerSignedOff()
+ {
+ return $this->hasBuyerSignedOff;
+ }
+ public function setHasSellerSignedOff($hasSellerSignedOff)
+ {
+ $this->hasSellerSignedOff = $hasSellerSignedOff;
+ }
+ public function getHasSellerSignedOff()
+ {
+ return $this->hasSellerSignedOff;
+ }
+ public function setInventorySource($inventorySource)
+ {
+ $this->inventorySource = $inventorySource;
+ }
+ public function getInventorySource()
+ {
+ return $this->inventorySource;
+ }
+ public function setIsRenegotiating($isRenegotiating)
+ {
+ $this->isRenegotiating = $isRenegotiating;
+ }
+ public function getIsRenegotiating()
+ {
+ return $this->isRenegotiating;
+ }
+ public function setIsSetupComplete($isSetupComplete)
+ {
+ $this->isSetupComplete = $isSetupComplete;
+ }
+ public function getIsSetupComplete()
+ {
+ return $this->isSetupComplete;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLastUpdaterOrCommentorRole($lastUpdaterOrCommentorRole)
+ {
+ $this->lastUpdaterOrCommentorRole = $lastUpdaterOrCommentorRole;
+ }
+ public function getLastUpdaterOrCommentorRole()
+ {
+ return $this->lastUpdaterOrCommentorRole;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNegotiationId($negotiationId)
+ {
+ $this->negotiationId = $negotiationId;
+ }
+ public function getNegotiationId()
+ {
+ return $this->negotiationId;
+ }
+ public function setOriginatorRole($originatorRole)
+ {
+ $this->originatorRole = $originatorRole;
+ }
+ public function getOriginatorRole()
+ {
+ return $this->originatorRole;
+ }
+ public function setPrivateAuctionId($privateAuctionId)
+ {
+ $this->privateAuctionId = $privateAuctionId;
+ }
+ public function getPrivateAuctionId()
+ {
+ return $this->privateAuctionId;
+ }
+ public function setProposalId($proposalId)
+ {
+ $this->proposalId = $proposalId;
+ }
+ public function getProposalId()
+ {
+ return $this->proposalId;
+ }
+ public function setProposalState($proposalState)
+ {
+ $this->proposalState = $proposalState;
+ }
+ public function getProposalState()
+ {
+ return $this->proposalState;
+ }
+ public function setRevisionNumber($revisionNumber)
+ {
+ $this->revisionNumber = $revisionNumber;
+ }
+ public function getRevisionNumber()
+ {
+ return $this->revisionNumber;
+ }
+ public function setRevisionTimeMs($revisionTimeMs)
+ {
+ $this->revisionTimeMs = $revisionTimeMs;
+ }
+ public function getRevisionTimeMs()
+ {
+ return $this->revisionTimeMs;
+ }
+ public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
+ {
+ $this->seller = $seller;
+ }
+ public function getSeller()
+ {
+ return $this->seller;
+ }
+ public function setSellerContacts($sellerContacts)
+ {
+ $this->sellerContacts = $sellerContacts;
+ }
+ public function getSellerContacts()
+ {
+ return $this->sellerContacts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProfileApiProto.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProfileApiProto.php
new file mode 100644
index 00000000..b05485e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProfileApiProto.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PublisherProfileApiProto extends Google_Collection
+{
+ protected $collection_key = 'topHeadlines';
+ public $accountId;
+ public $audience;
+ public $buyerPitchStatement;
+ public $directContact;
+ public $exchange;
+ public $googlePlusLink;
+ public $isParent;
+ public $isPublished;
+ public $kind;
+ public $logoUrl;
+ public $mediaKitLink;
+ public $name;
+ public $overview;
+ public $profileId;
+ public $programmaticContact;
+ public $publisherDomains;
+ public $publisherProfileId;
+ protected $publisherProvidedForecastType = 'Google_Service_AdExchangeBuyer_PublisherProvidedForecast';
+ protected $publisherProvidedForecastDataType = '';
+ public $rateCardInfoLink;
+ public $samplePageLink;
+ protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
+ protected $sellerDataType = '';
+ public $state;
+ public $topHeadlines;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAudience($audience)
+ {
+ $this->audience = $audience;
+ }
+ public function getAudience()
+ {
+ return $this->audience;
+ }
+ public function setBuyerPitchStatement($buyerPitchStatement)
+ {
+ $this->buyerPitchStatement = $buyerPitchStatement;
+ }
+ public function getBuyerPitchStatement()
+ {
+ return $this->buyerPitchStatement;
+ }
+ public function setDirectContact($directContact)
+ {
+ $this->directContact = $directContact;
+ }
+ public function getDirectContact()
+ {
+ return $this->directContact;
+ }
+ public function setExchange($exchange)
+ {
+ $this->exchange = $exchange;
+ }
+ public function getExchange()
+ {
+ return $this->exchange;
+ }
+ public function setGooglePlusLink($googlePlusLink)
+ {
+ $this->googlePlusLink = $googlePlusLink;
+ }
+ public function getGooglePlusLink()
+ {
+ return $this->googlePlusLink;
+ }
+ public function setIsParent($isParent)
+ {
+ $this->isParent = $isParent;
+ }
+ public function getIsParent()
+ {
+ return $this->isParent;
+ }
+ public function setIsPublished($isPublished)
+ {
+ $this->isPublished = $isPublished;
+ }
+ public function getIsPublished()
+ {
+ return $this->isPublished;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLogoUrl($logoUrl)
+ {
+ $this->logoUrl = $logoUrl;
+ }
+ public function getLogoUrl()
+ {
+ return $this->logoUrl;
+ }
+ public function setMediaKitLink($mediaKitLink)
+ {
+ $this->mediaKitLink = $mediaKitLink;
+ }
+ public function getMediaKitLink()
+ {
+ return $this->mediaKitLink;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOverview($overview)
+ {
+ $this->overview = $overview;
+ }
+ public function getOverview()
+ {
+ return $this->overview;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setProgrammaticContact($programmaticContact)
+ {
+ $this->programmaticContact = $programmaticContact;
+ }
+ public function getProgrammaticContact()
+ {
+ return $this->programmaticContact;
+ }
+ public function setPublisherDomains($publisherDomains)
+ {
+ $this->publisherDomains = $publisherDomains;
+ }
+ public function getPublisherDomains()
+ {
+ return $this->publisherDomains;
+ }
+ public function setPublisherProfileId($publisherProfileId)
+ {
+ $this->publisherProfileId = $publisherProfileId;
+ }
+ public function getPublisherProfileId()
+ {
+ return $this->publisherProfileId;
+ }
+ public function setPublisherProvidedForecast(Google_Service_AdExchangeBuyer_PublisherProvidedForecast $publisherProvidedForecast)
+ {
+ $this->publisherProvidedForecast = $publisherProvidedForecast;
+ }
+ public function getPublisherProvidedForecast()
+ {
+ return $this->publisherProvidedForecast;
+ }
+ public function setRateCardInfoLink($rateCardInfoLink)
+ {
+ $this->rateCardInfoLink = $rateCardInfoLink;
+ }
+ public function getRateCardInfoLink()
+ {
+ return $this->rateCardInfoLink;
+ }
+ public function setSamplePageLink($samplePageLink)
+ {
+ $this->samplePageLink = $samplePageLink;
+ }
+ public function getSamplePageLink()
+ {
+ return $this->samplePageLink;
+ }
+ public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
+ {
+ $this->seller = $seller;
+ }
+ public function getSeller()
+ {
+ return $this->seller;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTopHeadlines($topHeadlines)
+ {
+ $this->topHeadlines = $topHeadlines;
+ }
+ public function getTopHeadlines()
+ {
+ return $this->topHeadlines;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProvidedForecast.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProvidedForecast.php
new file mode 100644
index 00000000..d97208bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProvidedForecast.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_PublisherProvidedForecast extends Google_Collection
+{
+ protected $collection_key = 'dimensions';
+ protected $dimensionsType = 'Google_Service_AdExchangeBuyer_Dimension';
+ protected $dimensionsDataType = 'array';
+ public $weeklyImpressions;
+ public $weeklyUniques;
+
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setWeeklyImpressions($weeklyImpressions)
+ {
+ $this->weeklyImpressions = $weeklyImpressions;
+ }
+ public function getWeeklyImpressions()
+ {
+ return $this->weeklyImpressions;
+ }
+ public function setWeeklyUniques($weeklyUniques)
+ {
+ $this->weeklyUniques = $weeklyUniques;
+ }
+ public function getWeeklyUniques()
+ {
+ return $this->weeklyUniques;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Accounts.php
new file mode 100644
index 00000000..1d53f571
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Accounts.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $accounts = $adexchangebuyerService->accounts;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Gets one account by ID. (accounts.get)
+ *
+ * @param int $id The account id
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Account
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account");
+ }
+ /**
+ * Retrieves the authenticated user's list of accounts. (accounts.listAccounts)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_AccountsList
+ */
+ public function listAccounts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList");
+ }
+ /**
+ * Updates an existing account. This method supports patch semantics.
+ * (accounts.patch)
+ *
+ * @param int $id The account id
+ * @param Google_Service_AdExchangeBuyer_Account $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool confirmUnsafeAccountChange Confirmation for erasing bidder
+ * and cookie matching urls.
+ * @return Google_Service_AdExchangeBuyer_Account
+ */
+ public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account");
+ }
+ /**
+ * Updates an existing account. (accounts.update)
+ *
+ * @param int $id The account id
+ * @param Google_Service_AdExchangeBuyer_Account $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool confirmUnsafeAccountChange Confirmation for erasing bidder
+ * and cookie matching urls.
+ * @return Google_Service_AdExchangeBuyer_Account
+ */
+ public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Account");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/BillingInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/BillingInfo.php
new file mode 100644
index 00000000..a531125e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/BillingInfo.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "billingInfo" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $billingInfo = $adexchangebuyerService->billingInfo;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_BillingInfo extends Google_Service_Resource
+{
+ /**
+ * Returns the billing information for one account specified by account ID.
+ * (billingInfo.get)
+ *
+ * @param int $accountId The account id.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_BillingInfo
+ */
+ public function get($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_BillingInfo");
+ }
+ /**
+ * Retrieves a list of billing information for all accounts of the authenticated
+ * user. (billingInfo.listBillingInfo)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_BillingInfoList
+ */
+ public function listBillingInfo($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_BillingInfoList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Budget.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Budget.php
new file mode 100644
index 00000000..26efc8e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Budget.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "budget" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $budget = $adexchangebuyerService->budget;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Budget extends Google_Service_Resource
+{
+ /**
+ * Returns the budget information for the adgroup specified by the accountId and
+ * billingId. (budget.get)
+ *
+ * @param string $accountId The account id to get the budget information for.
+ * @param string $billingId The billing id to get the budget information for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Budget
+ */
+ public function get($accountId, $billingId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'billingId' => $billingId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget");
+ }
+ /**
+ * Updates the budget amount for the budget of the adgroup specified by the
+ * accountId and billingId, with the budget amount in the request. This method
+ * supports patch semantics. (budget.patch)
+ *
+ * @param string $accountId The account id associated with the budget being
+ * updated.
+ * @param string $billingId The billing id associated with the budget being
+ * updated.
+ * @param Google_Service_AdExchangeBuyer_Budget $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Budget
+ */
+ public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget");
+ }
+ /**
+ * Updates the budget amount for the budget of the adgroup specified by the
+ * accountId and billingId, with the budget amount in the request.
+ * (budget.update)
+ *
+ * @param string $accountId The account id associated with the budget being
+ * updated.
+ * @param string $billingId The billing id associated with the budget being
+ * updated.
+ * @param Google_Service_AdExchangeBuyer_Budget $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Budget
+ */
+ public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Creatives.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Creatives.php
new file mode 100644
index 00000000..fa6c0c40
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Creatives.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "creatives" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $creatives = $adexchangebuyerService->creatives;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Creatives extends Google_Service_Resource
+{
+ /**
+ * Add a deal id association for the creative. (creatives.addDeal)
+ *
+ * @param int $accountId The id for the account that will serve this creative.
+ * @param string $buyerCreativeId The buyer-specific id for this creative.
+ * @param string $dealId The id of the deal id to associate with this creative.
+ * @param array $optParams Optional parameters.
+ */
+ public function addDeal($accountId, $buyerCreativeId, $dealId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId);
+ $params = array_merge($params, $optParams);
+ return $this->call('addDeal', array($params));
+ }
+ /**
+ * Gets the status for a single creative. A creative will be available 30-40
+ * minutes after submission. (creatives.get)
+ *
+ * @param int $accountId The id for the account that will serve this creative.
+ * @param string $buyerCreativeId The buyer-specific id for this creative.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Creative
+ */
+ public function get($accountId, $buyerCreativeId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative");
+ }
+ /**
+ * Submit a new creative. (creatives.insert)
+ *
+ * @param Google_Service_AdExchangeBuyer_Creative $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Creative
+ */
+ public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative");
+ }
+ /**
+ * Retrieves a list of the authenticated user's active creatives. A creative
+ * will be available 30-40 minutes after submission. (creatives.listCreatives)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int accountId When specified, only creatives for the given account
+ * ids are returned.
+ * @opt_param string buyerCreativeId When specified, only creatives for the
+ * given buyer creative ids are returned.
+ * @opt_param string dealsStatusFilter When specified, only creatives having the
+ * given deals status are returned.
+ * @opt_param string maxResults Maximum number of entries returned on one result
+ * page. If not set, the default is 100. Optional.
+ * @opt_param string openAuctionStatusFilter When specified, only creatives
+ * having the given open auction status are returned.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * clients. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response. Optional.
+ * @return Google_Service_AdExchangeBuyer_CreativesList
+ */
+ public function listCreatives($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList");
+ }
+ /**
+ * Lists the external deal ids associated with the creative.
+ * (creatives.listDeals)
+ *
+ * @param int $accountId The id for the account that will serve this creative.
+ * @param string $buyerCreativeId The buyer-specific id for this creative.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_CreativeDealIds
+ */
+ public function listDeals($accountId, $buyerCreativeId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listDeals', array($params), "Google_Service_AdExchangeBuyer_CreativeDealIds");
+ }
+ /**
+ * Remove a deal id associated with the creative. (creatives.removeDeal)
+ *
+ * @param int $accountId The id for the account that will serve this creative.
+ * @param string $buyerCreativeId The buyer-specific id for this creative.
+ * @param string $dealId The id of the deal id to disassociate with this
+ * creative.
+ * @param array $optParams Optional parameters.
+ */
+ public function removeDeal($accountId, $buyerCreativeId, $dealId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeDeal', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacedeals.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacedeals.php
new file mode 100644
index 00000000..6dff34b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacedeals.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "marketplacedeals" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $marketplacedeals = $adexchangebuyerService->marketplacedeals;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Marketplacedeals extends Google_Service_Resource
+{
+ /**
+ * Delete the specified deals from the proposal (marketplacedeals.delete)
+ *
+ * @param string $proposalId The proposalId to delete deals from.
+ * @param Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse
+ */
+ public function delete($proposalId, Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse");
+ }
+ /**
+ * Add new deals for the specified proposal (marketplacedeals.insert)
+ *
+ * @param string $proposalId proposalId for which deals need to be added.
+ * @param Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_AddOrderDealsResponse
+ */
+ public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderDealsResponse");
+ }
+ /**
+ * List all the deals for a given proposal
+ * (marketplacedeals.listMarketplacedeals)
+ *
+ * @param string $proposalId The proposalId to get deals for. To search across
+ * all proposals specify order_id = '-' as part of the URL.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pqlQuery Query string to retrieve specific deals.
+ * @return Google_Service_AdExchangeBuyer_GetOrderDealsResponse
+ */
+ public function listMarketplacedeals($proposalId, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderDealsResponse");
+ }
+ /**
+ * Replaces all the deals in the proposal with the passed in deals
+ * (marketplacedeals.update)
+ *
+ * @param string $proposalId The proposalId to edit deals on.
+ * @param Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse
+ */
+ public function update($proposalId, Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacenotes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacenotes.php
new file mode 100644
index 00000000..dfd9ca8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacenotes.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "marketplacenotes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $marketplacenotes = $adexchangebuyerService->marketplacenotes;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Marketplacenotes extends Google_Service_Resource
+{
+ /**
+ * Add notes to the proposal (marketplacenotes.insert)
+ *
+ * @param string $proposalId The proposalId to add notes for.
+ * @param Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_AddOrderNotesResponse
+ */
+ public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderNotesResponse");
+ }
+ /**
+ * Get all the notes associated with a proposal
+ * (marketplacenotes.listMarketplacenotes)
+ *
+ * @param string $proposalId The proposalId to get notes for. To search across
+ * all proposals specify order_id = '-' as part of the URL.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pqlQuery Query string to retrieve specific notes. To search
+ * the text contents of notes, please use syntax like "WHERE note.note = "foo"
+ * or "WHERE note.note LIKE "%bar%"
+ * @return Google_Service_AdExchangeBuyer_GetOrderNotesResponse
+ */
+ public function listMarketplacenotes($proposalId, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderNotesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplaceprivateauction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplaceprivateauction.php
new file mode 100644
index 00000000..bc7dbc96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplaceprivateauction.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "marketplaceprivateauction" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $marketplaceprivateauction = $adexchangebuyerService->marketplaceprivateauction;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Marketplaceprivateauction extends Google_Service_Resource
+{
+ /**
+ * Update a given private auction proposal
+ * (marketplaceprivateauction.updateproposal)
+ *
+ * @param string $privateAuctionId The private auction id to be updated.
+ * @param Google_Service_AdExchangeBuyer_UpdatePrivateAuctionProposalRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function updateproposal($privateAuctionId, Google_Service_AdExchangeBuyer_UpdatePrivateAuctionProposalRequest $postBody, $optParams = array())
+ {
+ $params = array('privateAuctionId' => $privateAuctionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateproposal', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PerformanceReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PerformanceReport.php
new file mode 100644
index 00000000..4198794d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PerformanceReport.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "performanceReport" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $performanceReport = $adexchangebuyerService->performanceReport;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_PerformanceReport extends Google_Service_Resource
+{
+ /**
+ * Retrieves the authenticated user's list of performance metrics.
+ * (performanceReport.listPerformanceReport)
+ *
+ * @param string $accountId The account id to get the reports.
+ * @param string $endDateTime The end time of the report in ISO 8601 timestamp
+ * format using UTC.
+ * @param string $startDateTime The start time of the report in ISO 8601
+ * timestamp format using UTC.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of entries returned on one result
+ * page. If not set, the default is 100. Optional.
+ * @opt_param string pageToken A continuation token, used to page through
+ * performance reports. To retrieve the next page, set this parameter to the
+ * value of "nextPageToken" from the previous response. Optional.
+ * @return Google_Service_AdExchangeBuyer_PerformanceReportList
+ */
+ public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PretargetingConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PretargetingConfig.php
new file mode 100644
index 00000000..9d525076
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PretargetingConfig.php
@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "pretargetingConfig" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $pretargetingConfig = $adexchangebuyerService->pretargetingConfig;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_PretargetingConfig extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing pretargeting config. (pretargetingConfig.delete)
+ *
+ * @param string $accountId The account id to delete the pretargeting config
+ * for.
+ * @param string $configId The specific id of the configuration to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $configId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'configId' => $configId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a specific pretargeting configuration (pretargetingConfig.get)
+ *
+ * @param string $accountId The account id to get the pretargeting config for.
+ * @param string $configId The specific id of the configuration to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_PretargetingConfig
+ */
+ public function get($accountId, $configId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'configId' => $configId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
+ }
+ /**
+ * Inserts a new pretargeting configuration. (pretargetingConfig.insert)
+ *
+ * @param string $accountId The account id to insert the pretargeting config
+ * for.
+ * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_PretargetingConfig
+ */
+ public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
+ }
+ /**
+ * Retrieves a list of the authenticated user's pretargeting configurations.
+ * (pretargetingConfig.listPretargetingConfig)
+ *
+ * @param string $accountId The account id to get the pretargeting configs for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_PretargetingConfigList
+ */
+ public function listPretargetingConfig($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList");
+ }
+ /**
+ * Updates an existing pretargeting config. This method supports patch
+ * semantics. (pretargetingConfig.patch)
+ *
+ * @param string $accountId The account id to update the pretargeting config
+ * for.
+ * @param string $configId The specific id of the configuration to update.
+ * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_PretargetingConfig
+ */
+ public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
+ }
+ /**
+ * Updates an existing pretargeting config. (pretargetingConfig.update)
+ *
+ * @param string $accountId The account id to update the pretargeting config
+ * for.
+ * @param string $configId The specific id of the configuration to update.
+ * @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_PretargetingConfig
+ */
+ public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Products.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Products.php
new file mode 100644
index 00000000..cbbf161b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Products.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "products" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $products = $adexchangebuyerService->products;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Products extends Google_Service_Resource
+{
+ /**
+ * Gets the requested product by id. (products.get)
+ *
+ * @param string $productId The id for the product to get the head revision for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Product
+ */
+ public function get($productId, $optParams = array())
+ {
+ $params = array('productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Product");
+ }
+ /**
+ * Gets the requested product. (products.search)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pqlQuery The pql query used to query for products.
+ * @return Google_Service_AdExchangeBuyer_GetOffersResponse
+ */
+ public function search($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOffersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Proposals.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Proposals.php
new file mode 100644
index 00000000..63c4a03e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Proposals.php
@@ -0,0 +1,122 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "proposals" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $proposals = $adexchangebuyerService->proposals;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Proposals extends Google_Service_Resource
+{
+ /**
+ * Get a proposal given its id (proposals.get)
+ *
+ * @param string $proposalId Id of the proposal to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Proposal
+ */
+ public function get($proposalId, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Proposal");
+ }
+ /**
+ * Create the given list of proposals (proposals.insert)
+ *
+ * @param Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_CreateOrdersResponse
+ */
+ public function insert(Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_CreateOrdersResponse");
+ }
+ /**
+ * Update the given proposal. This method supports patch semantics.
+ * (proposals.patch)
+ *
+ * @param string $proposalId The proposal id to update.
+ * @param string $revisionNumber The last known revision number to update. If
+ * the head revision in the marketplace database has since changed, an error
+ * will be thrown. The caller should then fetch the latest proposal at head
+ * revision and retry the update at that revision.
+ * @param string $updateAction The proposed action to take on the proposal. This
+ * field is required and it must be set when updating a proposal.
+ * @param Google_Service_AdExchangeBuyer_Proposal $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Proposal
+ */
+ public function patch($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Proposal");
+ }
+ /**
+ * Search for proposals using pql query (proposals.search)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pqlQuery Query string to retrieve specific proposals.
+ * @return Google_Service_AdExchangeBuyer_GetOrdersResponse
+ */
+ public function search($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOrdersResponse");
+ }
+ /**
+ * Update the given proposal to indicate that setup has been completed.
+ * (proposals.setupcomplete)
+ *
+ * @param string $proposalId The proposal id for which the setup is complete
+ * @param array $optParams Optional parameters.
+ */
+ public function setupcomplete($proposalId, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId);
+ $params = array_merge($params, $optParams);
+ return $this->call('setupcomplete', array($params));
+ }
+ /**
+ * Update the given proposal (proposals.update)
+ *
+ * @param string $proposalId The proposal id to update.
+ * @param string $revisionNumber The last known revision number to update. If
+ * the head revision in the marketplace database has since changed, an error
+ * will be thrown. The caller should then fetch the latest proposal at head
+ * revision and retry the update at that revision.
+ * @param string $updateAction The proposed action to take on the proposal. This
+ * field is required and it must be set when updating a proposal.
+ * @param Google_Service_AdExchangeBuyer_Proposal $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_Proposal
+ */
+ public function update($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array())
+ {
+ $params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Proposal");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Pubprofiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Pubprofiles.php
new file mode 100644
index 00000000..b3fa00bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Pubprofiles.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "pubprofiles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
+ * $pubprofiles = $adexchangebuyerService->pubprofiles;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyer_Resource_Pubprofiles extends Google_Service_Resource
+{
+ /**
+ * Gets the requested publisher profile(s) by publisher accountId.
+ * (pubprofiles.listPubprofiles)
+ *
+ * @param int $accountId The accountId of the publisher to get profiles for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse
+ */
+ public function listPubprofiles($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Seller.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Seller.php
new file mode 100644
index 00000000..82ea611b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Seller.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_Seller extends Google_Model
+{
+ public $accountId;
+ public $subAccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setSubAccountId($subAccountId)
+ {
+ $this->subAccountId = $subAccountId;
+ }
+ public function getSubAccountId()
+ {
+ return $this->subAccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/SharedTargeting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/SharedTargeting.php
new file mode 100644
index 00000000..281ec37f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/SharedTargeting.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_SharedTargeting extends Google_Collection
+{
+ protected $collection_key = 'inclusions';
+ protected $exclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue';
+ protected $exclusionsDataType = 'array';
+ protected $inclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue';
+ protected $inclusionsDataType = 'array';
+ public $key;
+
+ public function setExclusions($exclusions)
+ {
+ $this->exclusions = $exclusions;
+ }
+ public function getExclusions()
+ {
+ return $this->exclusions;
+ }
+ public function setInclusions($inclusions)
+ {
+ $this->inclusions = $inclusions;
+ }
+ public function getInclusions()
+ {
+ return $this->inclusions;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValue.php
new file mode 100644
index 00000000..a167819b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValue.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_TargetingValue extends Google_Model
+{
+ protected $creativeSizeValueType = 'Google_Service_AdExchangeBuyer_TargetingValueCreativeSize';
+ protected $creativeSizeValueDataType = '';
+ protected $dayPartTargetingValueType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting';
+ protected $dayPartTargetingValueDataType = '';
+ public $longValue;
+ public $stringValue;
+
+ public function setCreativeSizeValue(Google_Service_AdExchangeBuyer_TargetingValueCreativeSize $creativeSizeValue)
+ {
+ $this->creativeSizeValue = $creativeSizeValue;
+ }
+ public function getCreativeSizeValue()
+ {
+ return $this->creativeSizeValue;
+ }
+ public function setDayPartTargetingValue(Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting $dayPartTargetingValue)
+ {
+ $this->dayPartTargetingValue = $dayPartTargetingValue;
+ }
+ public function getDayPartTargetingValue()
+ {
+ return $this->dayPartTargetingValue;
+ }
+ public function setLongValue($longValue)
+ {
+ $this->longValue = $longValue;
+ }
+ public function getLongValue()
+ {
+ return $this->longValue;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueCreativeSize.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueCreativeSize.php
new file mode 100644
index 00000000..7302f658
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueCreativeSize.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_TargetingValueCreativeSize extends Google_Collection
+{
+ protected $collection_key = 'companionSizes';
+ protected $companionSizesType = 'Google_Service_AdExchangeBuyer_TargetingValueSize';
+ protected $companionSizesDataType = 'array';
+ public $creativeSizeType;
+ protected $sizeType = 'Google_Service_AdExchangeBuyer_TargetingValueSize';
+ protected $sizeDataType = '';
+ public $skippableAdType;
+
+ public function setCompanionSizes($companionSizes)
+ {
+ $this->companionSizes = $companionSizes;
+ }
+ public function getCompanionSizes()
+ {
+ return $this->companionSizes;
+ }
+ public function setCreativeSizeType($creativeSizeType)
+ {
+ $this->creativeSizeType = $creativeSizeType;
+ }
+ public function getCreativeSizeType()
+ {
+ return $this->creativeSizeType;
+ }
+ public function setSize(Google_Service_AdExchangeBuyer_TargetingValueSize $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSkippableAdType($skippableAdType)
+ {
+ $this->skippableAdType = $skippableAdType;
+ }
+ public function getSkippableAdType()
+ {
+ return $this->skippableAdType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargeting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargeting.php
new file mode 100644
index 00000000..da57301a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargeting.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting extends Google_Collection
+{
+ protected $collection_key = 'dayParts';
+ protected $dayPartsType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart';
+ protected $dayPartsDataType = 'array';
+ public $timeZoneType;
+
+ public function setDayParts($dayParts)
+ {
+ $this->dayParts = $dayParts;
+ }
+ public function getDayParts()
+ {
+ return $this->dayParts;
+ }
+ public function setTimeZoneType($timeZoneType)
+ {
+ $this->timeZoneType = $timeZoneType;
+ }
+ public function getTimeZoneType()
+ {
+ return $this->timeZoneType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargetingDayPart.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargetingDayPart.php
new file mode 100644
index 00000000..f656ae74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargetingDayPart.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart extends Google_Model
+{
+ public $dayOfWeek;
+ public $endHour;
+ public $endMinute;
+ public $startHour;
+ public $startMinute;
+
+ public function setDayOfWeek($dayOfWeek)
+ {
+ $this->dayOfWeek = $dayOfWeek;
+ }
+ public function getDayOfWeek()
+ {
+ return $this->dayOfWeek;
+ }
+ public function setEndHour($endHour)
+ {
+ $this->endHour = $endHour;
+ }
+ public function getEndHour()
+ {
+ return $this->endHour;
+ }
+ public function setEndMinute($endMinute)
+ {
+ $this->endMinute = $endMinute;
+ }
+ public function getEndMinute()
+ {
+ return $this->endMinute;
+ }
+ public function setStartHour($startHour)
+ {
+ $this->startHour = $startHour;
+ }
+ public function getStartHour()
+ {
+ return $this->startHour;
+ }
+ public function setStartMinute($startMinute)
+ {
+ $this->startMinute = $startMinute;
+ }
+ public function getStartMinute()
+ {
+ return $this->startMinute;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueSize.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueSize.php
new file mode 100644
index 00000000..116c5b5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueSize.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_TargetingValueSize extends Google_Model
+{
+ public $height;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/UpdatePrivateAuctionProposalRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/UpdatePrivateAuctionProposalRequest.php
new file mode 100644
index 00000000..8ec36d3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyer/UpdatePrivateAuctionProposalRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyer_UpdatePrivateAuctionProposalRequest extends Google_Model
+{
+ public $externalDealId;
+ protected $noteType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
+ protected $noteDataType = '';
+ public $proposalRevisionNumber;
+ public $updateAction;
+
+ public function setExternalDealId($externalDealId)
+ {
+ $this->externalDealId = $externalDealId;
+ }
+ public function getExternalDealId()
+ {
+ return $this->externalDealId;
+ }
+ public function setNote(Google_Service_AdExchangeBuyer_MarketplaceNote $note)
+ {
+ $this->note = $note;
+ }
+ public function getNote()
+ {
+ return $this->note;
+ }
+ public function setProposalRevisionNumber($proposalRevisionNumber)
+ {
+ $this->proposalRevisionNumber = $proposalRevisionNumber;
+ }
+ public function getProposalRevisionNumber()
+ {
+ return $this->proposalRevisionNumber;
+ }
+ public function setUpdateAction($updateAction)
+ {
+ $this->updateAction = $updateAction;
+ }
+ public function getUpdateAction()
+ {
+ return $this->updateAction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII.php
new file mode 100644
index 00000000..99ce5a6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII.php
@@ -0,0 +1,441 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AdExchangeBuyerII (v2beta1).
+ *
+ * <p>
+ * Accesses the latest features for managing Ad Exchange accounts, Real-Time
+ * Bidding configurations and auction metrics, and Marketplace programmatic
+ * deals.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AdExchangeBuyerII extends Google_Service
+{
+ /** Manage your Ad Exchange buyer account configuration. */
+ const ADEXCHANGE_BUYER =
+ "https://www.googleapis.com/auth/adexchange.buyer";
+
+ public $accounts_clients;
+ public $accounts_clients_invitations;
+ public $accounts_clients_users;
+ public $accounts_creatives;
+ public $accounts_creatives_dealAssociations;
+
+ /**
+ * Constructs the internal representation of the AdExchangeBuyerII service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://adexchangebuyer.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v2beta1';
+ $this->serviceName = 'adexchangebuyer2';
+
+ $this->accounts_clients = new Google_Service_AdExchangeBuyerII_Resource_AccountsClients(
+ $this,
+ $this->serviceName,
+ 'clients',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_clients_invitations = new Google_Service_AdExchangeBuyerII_Resource_AccountsClientsInvitations(
+ $this,
+ $this->serviceName,
+ 'invitations',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'invitationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_clients_users = new Google_Service_AdExchangeBuyerII_Resource_AccountsClientsUsers(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_creatives = new Google_Service_AdExchangeBuyerII_Resource_AccountsCreatives(
+ $this,
+ $this->serviceName,
+ 'creatives',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'duplicateIdMode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'stopWatching' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_creatives_dealAssociations = new Google_Service_AdExchangeBuyerII_Resource_AccountsCreativesDealAssociations(
+ $this,
+ $this->serviceName,
+ 'dealAssociations',
+ array(
+ 'methods' => array(
+ 'add' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'remove' => array(
+ 'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AddDealAssociationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AddDealAssociationRequest.php
new file mode 100644
index 00000000..032c0279
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AddDealAssociationRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_AddDealAssociationRequest extends Google_Model
+{
+ protected $associationType = 'Google_Service_AdExchangeBuyerII_CreativeDealAssociation';
+ protected $associationDataType = '';
+
+ public function setAssociation(Google_Service_AdExchangeBuyerII_CreativeDealAssociation $association)
+ {
+ $this->association = $association;
+ }
+ public function getAssociation()
+ {
+ return $this->association;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Adexchangebuyer2Empty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Adexchangebuyer2Empty.php
new file mode 100644
index 00000000..360f021f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Adexchangebuyer2Empty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AppContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AppContext.php
new file mode 100644
index 00000000..cad3827b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AppContext.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_AppContext extends Google_Collection
+{
+ protected $collection_key = 'appTypes';
+ public $appTypes;
+
+ public function setAppTypes($appTypes)
+ {
+ $this->appTypes = $appTypes;
+ }
+ public function getAppTypes()
+ {
+ return $this->appTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AuctionContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AuctionContext.php
new file mode 100644
index 00000000..b3144e80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AuctionContext.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_AuctionContext extends Google_Collection
+{
+ protected $collection_key = 'auctionTypes';
+ public $auctionTypes;
+
+ public function setAuctionTypes($auctionTypes)
+ {
+ $this->auctionTypes = $auctionTypes;
+ }
+ public function getAuctionTypes()
+ {
+ return $this->auctionTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Client.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Client.php
new file mode 100644
index 00000000..8a0d1242
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Client.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Client extends Google_Model
+{
+ public $clientAccountId;
+ public $clientName;
+ public $entityId;
+ public $entityName;
+ public $entityType;
+ public $role;
+ public $status;
+ public $visibleToSeller;
+
+ public function setClientAccountId($clientAccountId)
+ {
+ $this->clientAccountId = $clientAccountId;
+ }
+ public function getClientAccountId()
+ {
+ return $this->clientAccountId;
+ }
+ public function setClientName($clientName)
+ {
+ $this->clientName = $clientName;
+ }
+ public function getClientName()
+ {
+ return $this->clientName;
+ }
+ public function setEntityId($entityId)
+ {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId()
+ {
+ return $this->entityId;
+ }
+ public function setEntityName($entityName)
+ {
+ $this->entityName = $entityName;
+ }
+ public function getEntityName()
+ {
+ return $this->entityName;
+ }
+ public function setEntityType($entityType)
+ {
+ $this->entityType = $entityType;
+ }
+ public function getEntityType()
+ {
+ return $this->entityType;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setVisibleToSeller($visibleToSeller)
+ {
+ $this->visibleToSeller = $visibleToSeller;
+ }
+ public function getVisibleToSeller()
+ {
+ return $this->visibleToSeller;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUser.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUser.php
new file mode 100644
index 00000000..da71813e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUser.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ClientUser extends Google_Model
+{
+ public $clientAccountId;
+ public $email;
+ public $status;
+ public $userId;
+
+ public function setClientAccountId($clientAccountId)
+ {
+ $this->clientAccountId = $clientAccountId;
+ }
+ public function getClientAccountId()
+ {
+ return $this->clientAccountId;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUserInvitation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUserInvitation.php
new file mode 100644
index 00000000..fe3d0cc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUserInvitation.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ClientUserInvitation extends Google_Model
+{
+ public $clientAccountId;
+ public $email;
+ public $invitationId;
+
+ public function setClientAccountId($clientAccountId)
+ {
+ $this->clientAccountId = $clientAccountId;
+ }
+ public function getClientAccountId()
+ {
+ return $this->clientAccountId;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setInvitationId($invitationId)
+ {
+ $this->invitationId = $invitationId;
+ }
+ public function getInvitationId()
+ {
+ return $this->invitationId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Correction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Correction.php
new file mode 100644
index 00000000..3e1f2eea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Correction.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Correction extends Google_Collection
+{
+ protected $collection_key = 'details';
+ protected $contextsType = 'Google_Service_AdExchangeBuyerII_ServingContext';
+ protected $contextsDataType = 'array';
+ public $details;
+ public $type;
+
+ public function setContexts($contexts)
+ {
+ $this->contexts = $contexts;
+ }
+ public function getContexts()
+ {
+ return $this->contexts;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Creative.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Creative.php
new file mode 100644
index 00000000..54930e4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Creative.php
@@ -0,0 +1,253 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Creative extends Google_Collection
+{
+ protected $collection_key = 'vendorIds';
+ public $accountId;
+ public $adChoicesDestinationUrl;
+ public $advertiserName;
+ public $agencyId;
+ public $apiUpdateTime;
+ public $attributes;
+ public $clickThroughUrls;
+ protected $correctionsType = 'Google_Service_AdExchangeBuyerII_Correction';
+ protected $correctionsDataType = 'array';
+ public $creativeId;
+ public $dealsStatus;
+ public $detectedAdvertiserIds;
+ public $detectedDomains;
+ public $detectedLanguages;
+ public $detectedProductCategories;
+ public $detectedSensitiveCategories;
+ protected $filteringStatsType = 'Google_Service_AdExchangeBuyerII_FilteringStats';
+ protected $filteringStatsDataType = '';
+ protected $htmlType = 'Google_Service_AdExchangeBuyerII_HtmlContent';
+ protected $htmlDataType = '';
+ public $impressionTrackingUrls;
+ protected $nativeType = 'Google_Service_AdExchangeBuyerII_NativeContent';
+ protected $nativeDataType = '';
+ public $openAuctionStatus;
+ public $restrictedCategories;
+ protected $servingRestrictionsType = 'Google_Service_AdExchangeBuyerII_ServingRestriction';
+ protected $servingRestrictionsDataType = 'array';
+ public $vendorIds;
+ public $version;
+ protected $videoType = 'Google_Service_AdExchangeBuyerII_VideoContent';
+ protected $videoDataType = '';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdChoicesDestinationUrl($adChoicesDestinationUrl)
+ {
+ $this->adChoicesDestinationUrl = $adChoicesDestinationUrl;
+ }
+ public function getAdChoicesDestinationUrl()
+ {
+ return $this->adChoicesDestinationUrl;
+ }
+ public function setAdvertiserName($advertiserName)
+ {
+ $this->advertiserName = $advertiserName;
+ }
+ public function getAdvertiserName()
+ {
+ return $this->advertiserName;
+ }
+ public function setAgencyId($agencyId)
+ {
+ $this->agencyId = $agencyId;
+ }
+ public function getAgencyId()
+ {
+ return $this->agencyId;
+ }
+ public function setApiUpdateTime($apiUpdateTime)
+ {
+ $this->apiUpdateTime = $apiUpdateTime;
+ }
+ public function getApiUpdateTime()
+ {
+ return $this->apiUpdateTime;
+ }
+ public function setAttributes($attributes)
+ {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+ public function setClickThroughUrls($clickThroughUrls)
+ {
+ $this->clickThroughUrls = $clickThroughUrls;
+ }
+ public function getClickThroughUrls()
+ {
+ return $this->clickThroughUrls;
+ }
+ public function setCorrections($corrections)
+ {
+ $this->corrections = $corrections;
+ }
+ public function getCorrections()
+ {
+ return $this->corrections;
+ }
+ public function setCreativeId($creativeId)
+ {
+ $this->creativeId = $creativeId;
+ }
+ public function getCreativeId()
+ {
+ return $this->creativeId;
+ }
+ public function setDealsStatus($dealsStatus)
+ {
+ $this->dealsStatus = $dealsStatus;
+ }
+ public function getDealsStatus()
+ {
+ return $this->dealsStatus;
+ }
+ public function setDetectedAdvertiserIds($detectedAdvertiserIds)
+ {
+ $this->detectedAdvertiserIds = $detectedAdvertiserIds;
+ }
+ public function getDetectedAdvertiserIds()
+ {
+ return $this->detectedAdvertiserIds;
+ }
+ public function setDetectedDomains($detectedDomains)
+ {
+ $this->detectedDomains = $detectedDomains;
+ }
+ public function getDetectedDomains()
+ {
+ return $this->detectedDomains;
+ }
+ public function setDetectedLanguages($detectedLanguages)
+ {
+ $this->detectedLanguages = $detectedLanguages;
+ }
+ public function getDetectedLanguages()
+ {
+ return $this->detectedLanguages;
+ }
+ public function setDetectedProductCategories($detectedProductCategories)
+ {
+ $this->detectedProductCategories = $detectedProductCategories;
+ }
+ public function getDetectedProductCategories()
+ {
+ return $this->detectedProductCategories;
+ }
+ public function setDetectedSensitiveCategories($detectedSensitiveCategories)
+ {
+ $this->detectedSensitiveCategories = $detectedSensitiveCategories;
+ }
+ public function getDetectedSensitiveCategories()
+ {
+ return $this->detectedSensitiveCategories;
+ }
+ public function setFilteringStats(Google_Service_AdExchangeBuyerII_FilteringStats $filteringStats)
+ {
+ $this->filteringStats = $filteringStats;
+ }
+ public function getFilteringStats()
+ {
+ return $this->filteringStats;
+ }
+ public function setHtml(Google_Service_AdExchangeBuyerII_HtmlContent $html)
+ {
+ $this->html = $html;
+ }
+ public function getHtml()
+ {
+ return $this->html;
+ }
+ public function setImpressionTrackingUrls($impressionTrackingUrls)
+ {
+ $this->impressionTrackingUrls = $impressionTrackingUrls;
+ }
+ public function getImpressionTrackingUrls()
+ {
+ return $this->impressionTrackingUrls;
+ }
+ public function setNative(Google_Service_AdExchangeBuyerII_NativeContent $native)
+ {
+ $this->native = $native;
+ }
+ public function getNative()
+ {
+ return $this->native;
+ }
+ public function setOpenAuctionStatus($openAuctionStatus)
+ {
+ $this->openAuctionStatus = $openAuctionStatus;
+ }
+ public function getOpenAuctionStatus()
+ {
+ return $this->openAuctionStatus;
+ }
+ public function setRestrictedCategories($restrictedCategories)
+ {
+ $this->restrictedCategories = $restrictedCategories;
+ }
+ public function getRestrictedCategories()
+ {
+ return $this->restrictedCategories;
+ }
+ public function setServingRestrictions($servingRestrictions)
+ {
+ $this->servingRestrictions = $servingRestrictions;
+ }
+ public function getServingRestrictions()
+ {
+ return $this->servingRestrictions;
+ }
+ public function setVendorIds($vendorIds)
+ {
+ $this->vendorIds = $vendorIds;
+ }
+ public function getVendorIds()
+ {
+ return $this->vendorIds;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+ public function setVideo(Google_Service_AdExchangeBuyerII_VideoContent $video)
+ {
+ $this->video = $video;
+ }
+ public function getVideo()
+ {
+ return $this->video;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeDealAssociation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeDealAssociation.php
new file mode 100644
index 00000000..4ce53aa7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeDealAssociation.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_CreativeDealAssociation extends Google_Model
+{
+ public $accountId;
+ public $creativeId;
+ public $dealsId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCreativeId($creativeId)
+ {
+ $this->creativeId = $creativeId;
+ }
+ public function getCreativeId()
+ {
+ return $this->creativeId;
+ }
+ public function setDealsId($dealsId)
+ {
+ $this->dealsId = $dealsId;
+ }
+ public function getDealsId()
+ {
+ return $this->dealsId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Date.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Date.php
new file mode 100644
index 00000000..0d65a08d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Date.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Date extends Google_Model
+{
+ public $day;
+ public $month;
+ public $year;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth($month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+ public function setYear($year)
+ {
+ $this->year = $year;
+ }
+ public function getYear()
+ {
+ return $this->year;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Disapproval.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Disapproval.php
new file mode 100644
index 00000000..6a6824a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Disapproval.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Disapproval extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $details;
+ public $reason;
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteringStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteringStats.php
new file mode 100644
index 00000000..ecc5a875
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteringStats.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_FilteringStats extends Google_Collection
+{
+ protected $collection_key = 'reasons';
+ protected $dateType = 'Google_Service_AdExchangeBuyerII_Date';
+ protected $dateDataType = '';
+ protected $reasonsType = 'Google_Service_AdExchangeBuyerII_Reason';
+ protected $reasonsDataType = 'array';
+
+ public function setDate(Google_Service_AdExchangeBuyerII_Date $date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setReasons($reasons)
+ {
+ $this->reasons = $reasons;
+ }
+ public function getReasons()
+ {
+ return $this->reasons;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/HtmlContent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/HtmlContent.php
new file mode 100644
index 00000000..5e474ed5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/HtmlContent.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_HtmlContent extends Google_Model
+{
+ public $height;
+ public $snippet;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setSnippet($snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Image.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Image.php
new file mode 100644
index 00000000..4abc4434
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Image.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Image extends Google_Model
+{
+ public $height;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUserInvitationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUserInvitationsResponse.php
new file mode 100644
index 00000000..b33d7d05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUserInvitationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse extends Google_Collection
+{
+ protected $collection_key = 'invitations';
+ protected $invitationsType = 'Google_Service_AdExchangeBuyerII_ClientUserInvitation';
+ protected $invitationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setInvitations($invitations)
+ {
+ $this->invitations = $invitations;
+ }
+ public function getInvitations()
+ {
+ return $this->invitations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUsersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUsersResponse.php
new file mode 100644
index 00000000..8458df7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUsersResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ListClientUsersResponse extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $nextPageToken;
+ protected $usersType = 'Google_Service_AdExchangeBuyerII_ClientUser';
+ protected $usersDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientsResponse.php
new file mode 100644
index 00000000..03fe35a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ListClientsResponse extends Google_Collection
+{
+ protected $collection_key = 'clients';
+ protected $clientsType = 'Google_Service_AdExchangeBuyerII_Client';
+ protected $clientsDataType = 'array';
+ public $nextPageToken;
+
+ public function setClients($clients)
+ {
+ $this->clients = $clients;
+ }
+ public function getClients()
+ {
+ return $this->clients;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativesResponse.php
new file mode 100644
index 00000000..10df66aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ListCreativesResponse extends Google_Collection
+{
+ protected $collection_key = 'creatives';
+ protected $creativesType = 'Google_Service_AdExchangeBuyerII_Creative';
+ protected $creativesDataType = 'array';
+ public $nextPageToken;
+
+ public function setCreatives($creatives)
+ {
+ $this->creatives = $creatives;
+ }
+ public function getCreatives()
+ {
+ return $this->creatives;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListDealAssociationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListDealAssociationsResponse.php
new file mode 100644
index 00000000..9014532b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListDealAssociationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ListDealAssociationsResponse extends Google_Collection
+{
+ protected $collection_key = 'associations';
+ protected $associationsType = 'Google_Service_AdExchangeBuyerII_CreativeDealAssociation';
+ protected $associationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setAssociations($associations)
+ {
+ $this->associations = $associations;
+ }
+ public function getAssociations()
+ {
+ return $this->associations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/LocationContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/LocationContext.php
new file mode 100644
index 00000000..38b65c92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/LocationContext.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_LocationContext extends Google_Collection
+{
+ protected $collection_key = 'geoCriteriaIds';
+ public $geoCriteriaIds;
+
+ public function setGeoCriteriaIds($geoCriteriaIds)
+ {
+ $this->geoCriteriaIds = $geoCriteriaIds;
+ }
+ public function getGeoCriteriaIds()
+ {
+ return $this->geoCriteriaIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NativeContent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NativeContent.php
new file mode 100644
index 00000000..c5d7b6fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NativeContent.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_NativeContent extends Google_Model
+{
+ public $advertiserName;
+ protected $appIconType = 'Google_Service_AdExchangeBuyerII_Image';
+ protected $appIconDataType = '';
+ public $body;
+ public $callToAction;
+ public $clickLinkUrl;
+ public $clickTrackingUrl;
+ public $headline;
+ protected $imageType = 'Google_Service_AdExchangeBuyerII_Image';
+ protected $imageDataType = '';
+ protected $logoType = 'Google_Service_AdExchangeBuyerII_Image';
+ protected $logoDataType = '';
+ public $priceDisplayText;
+ public $starRating;
+ public $storeUrl;
+ public $videoUrl;
+
+ public function setAdvertiserName($advertiserName)
+ {
+ $this->advertiserName = $advertiserName;
+ }
+ public function getAdvertiserName()
+ {
+ return $this->advertiserName;
+ }
+ public function setAppIcon(Google_Service_AdExchangeBuyerII_Image $appIcon)
+ {
+ $this->appIcon = $appIcon;
+ }
+ public function getAppIcon()
+ {
+ return $this->appIcon;
+ }
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setCallToAction($callToAction)
+ {
+ $this->callToAction = $callToAction;
+ }
+ public function getCallToAction()
+ {
+ return $this->callToAction;
+ }
+ public function setClickLinkUrl($clickLinkUrl)
+ {
+ $this->clickLinkUrl = $clickLinkUrl;
+ }
+ public function getClickLinkUrl()
+ {
+ return $this->clickLinkUrl;
+ }
+ public function setClickTrackingUrl($clickTrackingUrl)
+ {
+ $this->clickTrackingUrl = $clickTrackingUrl;
+ }
+ public function getClickTrackingUrl()
+ {
+ return $this->clickTrackingUrl;
+ }
+ public function setHeadline($headline)
+ {
+ $this->headline = $headline;
+ }
+ public function getHeadline()
+ {
+ return $this->headline;
+ }
+ public function setImage(Google_Service_AdExchangeBuyerII_Image $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setLogo(Google_Service_AdExchangeBuyerII_Image $logo)
+ {
+ $this->logo = $logo;
+ }
+ public function getLogo()
+ {
+ return $this->logo;
+ }
+ public function setPriceDisplayText($priceDisplayText)
+ {
+ $this->priceDisplayText = $priceDisplayText;
+ }
+ public function getPriceDisplayText()
+ {
+ return $this->priceDisplayText;
+ }
+ public function setStarRating($starRating)
+ {
+ $this->starRating = $starRating;
+ }
+ public function getStarRating()
+ {
+ return $this->starRating;
+ }
+ public function setStoreUrl($storeUrl)
+ {
+ $this->storeUrl = $storeUrl;
+ }
+ public function getStoreUrl()
+ {
+ return $this->storeUrl;
+ }
+ public function setVideoUrl($videoUrl)
+ {
+ $this->videoUrl = $videoUrl;
+ }
+ public function getVideoUrl()
+ {
+ return $this->videoUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/PlatformContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/PlatformContext.php
new file mode 100644
index 00000000..07fd0680
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/PlatformContext.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_PlatformContext extends Google_Collection
+{
+ protected $collection_key = 'platforms';
+ public $platforms;
+
+ public function setPlatforms($platforms)
+ {
+ $this->platforms = $platforms;
+ }
+ public function getPlatforms()
+ {
+ return $this->platforms;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Reason.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Reason.php
new file mode 100644
index 00000000..5b536f3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Reason.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_Reason extends Google_Model
+{
+ public $count;
+ public $status;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/RemoveDealAssociationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/RemoveDealAssociationRequest.php
new file mode 100644
index 00000000..a0997af7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/RemoveDealAssociationRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_RemoveDealAssociationRequest extends Google_Model
+{
+ protected $associationType = 'Google_Service_AdExchangeBuyerII_CreativeDealAssociation';
+ protected $associationDataType = '';
+
+ public function setAssociation(Google_Service_AdExchangeBuyerII_CreativeDealAssociation $association)
+ {
+ $this->association = $association;
+ }
+ public function getAssociation()
+ {
+ return $this->association;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/Accounts.php
new file mode 100644
index 00000000..b4753fb6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/Accounts.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
+ * $accounts = $adexchangebuyer2Service->accounts;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyerII_Resource_Accounts extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClients.php
new file mode 100644
index 00000000..6006cac9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClients.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "clients" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
+ * $clients = $adexchangebuyer2Service->clients;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyerII_Resource_AccountsClients extends Google_Service_Resource
+{
+ /**
+ * Creates a new client buyer. (clients.create)
+ *
+ * @param string $accountId Unique numerical account ID for the buyer of which
+ * the client buyer is a customer; the sponsor buyer to create a client for.
+ * (required)
+ * @param Google_Service_AdExchangeBuyerII_Client $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Client
+ */
+ public function create($accountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_Client");
+ }
+ /**
+ * Gets a client buyer with a given client account ID. (clients.get)
+ *
+ * @param string $accountId Numerical account ID of the client's sponsor buyer.
+ * (required)
+ * @param string $clientAccountId Numerical account ID of the client buyer to
+ * retrieve. (required)
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Client
+ */
+ public function get($accountId, $clientAccountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_Client");
+ }
+ /**
+ * Lists all the clients for the current sponsor buyer.
+ * (clients.listAccountsClients)
+ *
+ * @param string $accountId Unique numerical account ID of the sponsor buyer to
+ * list the clients for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListClientsResponse.nextPageToken returned from the previous call to the
+ * accounts.clients.list method.
+ * @opt_param int pageSize Requested page size. The server may return fewer
+ * clients than requested. If unspecified, the server will pick an appropriate
+ * default.
+ * @return Google_Service_AdExchangeBuyerII_ListClientsResponse
+ */
+ public function listAccountsClients($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientsResponse");
+ }
+ /**
+ * Updates an existing client buyer. (clients.update)
+ *
+ * @param string $accountId Unique numerical account ID for the buyer of which
+ * the client buyer is a customer; the sponsor buyer to update a client for.
+ * (required)
+ * @param string $clientAccountId Unique numerical account ID of the client to
+ * update. (required)
+ * @param Google_Service_AdExchangeBuyerII_Client $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Client
+ */
+ public function update($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_Client $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_Client");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsInvitations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsInvitations.php
new file mode 100644
index 00000000..5a8569c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsInvitations.php
@@ -0,0 +1,90 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "invitations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
+ * $invitations = $adexchangebuyer2Service->invitations;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyerII_Resource_AccountsClientsInvitations extends Google_Service_Resource
+{
+ /**
+ * Creates and sends out an email invitation to access an Ad Exchange client
+ * buyer account. (invitations.create)
+ *
+ * @param string $accountId Numerical account ID of the client's sponsor buyer.
+ * (required)
+ * @param string $clientAccountId Numerical account ID of the client buyer that
+ * the user should be associated with. (required)
+ * @param Google_Service_AdExchangeBuyerII_ClientUserInvitation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_ClientUserInvitation
+ */
+ public function create($accountId, $clientAccountId, Google_Service_AdExchangeBuyerII_ClientUserInvitation $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation");
+ }
+ /**
+ * Retrieves an existing client user invitation. (invitations.get)
+ *
+ * @param string $accountId Numerical account ID of the client's sponsor buyer.
+ * (required)
+ * @param string $clientAccountId Numerical account ID of the client buyer that
+ * the user invitation to be retrieved is associated with. (required)
+ * @param string $invitationId Numerical identifier of the user invitation to
+ * retrieve. (required)
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_ClientUserInvitation
+ */
+ public function get($accountId, $clientAccountId, $invitationId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'invitationId' => $invitationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUserInvitation");
+ }
+ /**
+ * Lists all the client users invitations for a client with a given account ID.
+ * (invitations.listAccountsClientsInvitations)
+ *
+ * @param string $accountId Numerical account ID of the client's sponsor buyer.
+ * (required)
+ * @param string $clientAccountId Numerical account ID of the client buyer to
+ * list invitations for. (required) You must either specify a string
+ * representation of a numerical account identifier or the `-` character to list
+ * all the invitations for all the clients of a given sponsor buyer.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListClientUserInvitationsResponse.nextPageToken returned from the previous
+ * call to the clients.invitations.list method.
+ * @opt_param int pageSize Requested page size. Server may return fewer clients
+ * than requested. If unspecified, server will pick an appropriate default.
+ * @return Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse
+ */
+ public function listAccountsClientsInvitations($accountId, $clientAccountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsUsers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsUsers.php
new file mode 100644
index 00000000..a543d238
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsClientsUsers.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
+ * $users = $adexchangebuyer2Service->users;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyerII_Resource_AccountsClientsUsers extends Google_Service_Resource
+{
+ /**
+ * Retrieves an existing client user. (users.get)
+ *
+ * @param string $accountId Numerical account ID of the client's sponsor buyer.
+ * (required)
+ * @param string $clientAccountId Numerical account ID of the client buyer that
+ * the user to be retrieved is associated with. (required)
+ * @param string $userId Numerical identifier of the user to retrieve.
+ * (required)
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_ClientUser
+ */
+ public function get($accountId, $clientAccountId, $userId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_ClientUser");
+ }
+ /**
+ * Lists all the known client users for a specified sponsor buyer account ID.
+ * (users.listAccountsClientsUsers)
+ *
+ * @param string $accountId Numerical account ID of the sponsor buyer of the
+ * client to list users for. (required)
+ * @param string $clientAccountId The account ID of the client buyer to list
+ * users for. (required) You must specify either a string representation of a
+ * numerical account identifier or the `-` character to list all the client
+ * users for all the clients of a given sponsor buyer.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListClientUsersResponse.nextPageToken returned from the previous call to the
+ * accounts.clients.users.list method.
+ * @opt_param int pageSize Requested page size. The server may return fewer
+ * clients than requested. If unspecified, the server will pick an appropriate
+ * default.
+ * @return Google_Service_AdExchangeBuyerII_ListClientUsersResponse
+ */
+ public function listAccountsClientsUsers($accountId, $clientAccountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListClientUsersResponse");
+ }
+ /**
+ * Updates an existing client user. Only the user status can be changed on
+ * update. (users.update)
+ *
+ * @param string $accountId Numerical account ID of the client's sponsor buyer.
+ * (required)
+ * @param string $clientAccountId Numerical account ID of the client buyer that
+ * the user to be retrieved is associated with. (required)
+ * @param string $userId Numerical identifier of the user to retrieve.
+ * (required)
+ * @param Google_Service_AdExchangeBuyerII_ClientUser $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_ClientUser
+ */
+ public function update($accountId, $clientAccountId, $userId, Google_Service_AdExchangeBuyerII_ClientUser $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'clientAccountId' => $clientAccountId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_ClientUser");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreatives.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreatives.php
new file mode 100644
index 00000000..f4dc48c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreatives.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "creatives" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
+ * $creatives = $adexchangebuyer2Service->creatives;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyerII_Resource_AccountsCreatives extends Google_Service_Resource
+{
+ /**
+ * Creates a creative. (creatives.create)
+ *
+ * @param string $accountId The account that this creative belongs to. Can be
+ * used to filter the response of the creatives.list method.
+ * @param Google_Service_AdExchangeBuyerII_Creative $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string duplicateIdMode Indicates if multiple creatives can share
+ * an ID or not. Default is NO_DUPLICATES (one ID per creative).
+ * @return Google_Service_AdExchangeBuyerII_Creative
+ */
+ public function create($accountId, Google_Service_AdExchangeBuyerII_Creative $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_AdExchangeBuyerII_Creative");
+ }
+ /**
+ * Gets a creative. (creatives.get)
+ *
+ * @param string $accountId The account the creative belongs to.
+ * @param string $creativeId The ID of the creative to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Creative
+ */
+ public function get($accountId, $creativeId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'creativeId' => $creativeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeBuyerII_Creative");
+ }
+ /**
+ * Lists creatives. (creatives.listAccountsCreatives)
+ *
+ * @param string $accountId The account to list the creatives from. Specify "-"
+ * to list all creatives the current user has access to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListCreativesResponse.next_page_token returned from the previous call to
+ * 'ListCreatives' method.
+ * @opt_param int pageSize Requested page size. The server may return fewer
+ * creatives than requested (due to timeout constraint) even if more are
+ * available via another call. If unspecified, server will pick an appropriate
+ * default. Acceptable values are 1 to 1000, inclusive.
+ * @opt_param string query An optional query string to filter creatives. If no
+ * filter is specified, all active creatives will be returned. Supported queries
+ * are:
+ *
+ * accountId=account_id_string creativeId=creative_id_string dealsStatus:
+ * {approved, conditionally_approved, disapproved,
+ * not_checked} openAuctionStatus: {approved, conditionally_approved,
+ * disapproved, not_checked} attribute: {a numeric
+ * attribute from the list of attributes} disapprovalReason: {a reason from
+ * DisapprovalReason
+ *
+ * Example: 'accountId=12345 AND (dealsStatus:disapproved AND
+ * disapprovalReason:unacceptable_content) OR attribute:47'
+ * @return Google_Service_AdExchangeBuyerII_ListCreativesResponse
+ */
+ public function listAccountsCreatives($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListCreativesResponse");
+ }
+ /**
+ * Stops watching a creative. Will stop push notifications being sent to the
+ * topics when the creative changes status. (creatives.stopWatching)
+ *
+ * @param string $accountId The account of the creative to stop notifications
+ * for.
+ * @param string $creativeId The creative ID of the creative to stop
+ * notifications for. Specify "-" to specify stopping account level
+ * notifications.
+ * @param Google_Service_AdExchangeBuyerII_StopWatchingCreativeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
+ */
+ public function stopWatching($accountId, $creativeId, Google_Service_AdExchangeBuyerII_StopWatchingCreativeRequest $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('stopWatching', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
+ }
+ /**
+ * Updates a creative. (creatives.update)
+ *
+ * @param string $accountId The account that this creative belongs to. Can be
+ * used to filter the response of the creatives.list method.
+ * @param string $creativeId The buyer-defined creative ID of this creative. Can
+ * be used to filter the response of the creatives.list method.
+ * @param Google_Service_AdExchangeBuyerII_Creative $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Creative
+ */
+ public function update($accountId, $creativeId, Google_Service_AdExchangeBuyerII_Creative $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdExchangeBuyerII_Creative");
+ }
+ /**
+ * Watches a creative. Will result in push notifications being sent to the topic
+ * when the creative changes status. (creatives.watch)
+ *
+ * @param string $accountId The account of the creative to watch.
+ * @param string $creativeId The creative ID to watch for status changes.
+ * Specify "-" to watch all creatives under the above account. If both creative-
+ * level and account-level notifications are sent, only a single notification
+ * will be sent to the creative-level notification topic.
+ * @param Google_Service_AdExchangeBuyerII_WatchCreativeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
+ */
+ public function watch($accountId, $creativeId, Google_Service_AdExchangeBuyerII_WatchCreativeRequest $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreativesDealAssociations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreativesDealAssociations.php
new file mode 100644
index 00000000..22ee0540
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Resource/AccountsCreativesDealAssociations.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dealAssociations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangebuyer2Service = new Google_Service_AdExchangeBuyerII(...);
+ * $dealAssociations = $adexchangebuyer2Service->dealAssociations;
+ * </code>
+ */
+class Google_Service_AdExchangeBuyerII_Resource_AccountsCreativesDealAssociations extends Google_Service_Resource
+{
+ /**
+ * Associate an existing deal with a creative. (dealAssociations.add)
+ *
+ * @param string $accountId The account the creative belongs to.
+ * @param string $creativeId The ID of the creative associated with the deal.
+ * @param Google_Service_AdExchangeBuyerII_AddDealAssociationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
+ */
+ public function add($accountId, $creativeId, Google_Service_AdExchangeBuyerII_AddDealAssociationRequest $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('add', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
+ }
+ /**
+ * List all creative-deal associations.
+ * (dealAssociations.listAccountsCreativesDealAssociations)
+ *
+ * @param string $accountId The account to list the associations from. Specify
+ * "-" to list all creatives the current user has access to.
+ * @param string $creativeId The creative ID to list the associations from.
+ * Specify "-" to list all creatives under the above account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListDealAssociationsResponse.next_page_token returned from the previous call
+ * to 'ListDealAssociations' method.
+ * @opt_param int pageSize Requested page size. Server may return fewer
+ * associations than requested. If unspecified, server will pick an appropriate
+ * default.
+ * @opt_param string query An optional query string to filter deal associations.
+ * If no filter is specified, all associations will be returned. Supported
+ * queries are:
+ *
+ * accountId=account_id_string creativeId=creative_id_string
+ * dealsId=deals_id_string dealsStatus:{approved, conditionally_approved,
+ * disapproved, not_checked} openAuctionStatus:{approved,
+ * conditionally_approved, disapproved, not_checked}
+ *
+ * Example: 'dealsId=12345 AND dealsStatus:disapproved'
+ * @return Google_Service_AdExchangeBuyerII_ListDealAssociationsResponse
+ */
+ public function listAccountsCreativesDealAssociations($accountId, $creativeId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'creativeId' => $creativeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeBuyerII_ListDealAssociationsResponse");
+ }
+ /**
+ * Remove the association between a deal and a creative.
+ * (dealAssociations.remove)
+ *
+ * @param string $accountId The account the creative belongs to.
+ * @param string $creativeId The ID of the creative associated with the deal.
+ * @param Google_Service_AdExchangeBuyerII_RemoveDealAssociationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty
+ */
+ public function remove($accountId, $creativeId, Google_Service_AdExchangeBuyerII_RemoveDealAssociationRequest $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'creativeId' => $creativeId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('remove', array($params), "Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/SecurityContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/SecurityContext.php
new file mode 100644
index 00000000..c82d1917
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/SecurityContext.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_SecurityContext extends Google_Collection
+{
+ protected $collection_key = 'securities';
+ public $securities;
+
+ public function setSecurities($securities)
+ {
+ $this->securities = $securities;
+ }
+ public function getSecurities()
+ {
+ return $this->securities;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingContext.php
new file mode 100644
index 00000000..784fe232
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingContext.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ServingContext extends Google_Model
+{
+ public $all;
+ protected $appTypeType = 'Google_Service_AdExchangeBuyerII_AppContext';
+ protected $appTypeDataType = '';
+ protected $auctionTypeType = 'Google_Service_AdExchangeBuyerII_AuctionContext';
+ protected $auctionTypeDataType = '';
+ protected $locationType = 'Google_Service_AdExchangeBuyerII_LocationContext';
+ protected $locationDataType = '';
+ protected $platformType = 'Google_Service_AdExchangeBuyerII_PlatformContext';
+ protected $platformDataType = '';
+ protected $securityTypeType = 'Google_Service_AdExchangeBuyerII_SecurityContext';
+ protected $securityTypeDataType = '';
+
+ public function setAll($all)
+ {
+ $this->all = $all;
+ }
+ public function getAll()
+ {
+ return $this->all;
+ }
+ public function setAppType(Google_Service_AdExchangeBuyerII_AppContext $appType)
+ {
+ $this->appType = $appType;
+ }
+ public function getAppType()
+ {
+ return $this->appType;
+ }
+ public function setAuctionType(Google_Service_AdExchangeBuyerII_AuctionContext $auctionType)
+ {
+ $this->auctionType = $auctionType;
+ }
+ public function getAuctionType()
+ {
+ return $this->auctionType;
+ }
+ public function setLocation(Google_Service_AdExchangeBuyerII_LocationContext $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setPlatform(Google_Service_AdExchangeBuyerII_PlatformContext $platform)
+ {
+ $this->platform = $platform;
+ }
+ public function getPlatform()
+ {
+ return $this->platform;
+ }
+ public function setSecurityType(Google_Service_AdExchangeBuyerII_SecurityContext $securityType)
+ {
+ $this->securityType = $securityType;
+ }
+ public function getSecurityType()
+ {
+ return $this->securityType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingRestriction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingRestriction.php
new file mode 100644
index 00000000..07684683
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ServingRestriction.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_ServingRestriction extends Google_Collection
+{
+ protected $collection_key = 'disapprovalReasons';
+ protected $contextsType = 'Google_Service_AdExchangeBuyerII_ServingContext';
+ protected $contextsDataType = 'array';
+ protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyerII_Disapproval';
+ protected $disapprovalReasonsDataType = 'array';
+ public $status;
+
+ public function setContexts($contexts)
+ {
+ $this->contexts = $contexts;
+ }
+ public function getContexts()
+ {
+ return $this->contexts;
+ }
+ public function setDisapprovalReasons($disapprovalReasons)
+ {
+ $this->disapprovalReasons = $disapprovalReasons;
+ }
+ public function getDisapprovalReasons()
+ {
+ return $this->disapprovalReasons;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/StopWatchingCreativeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/StopWatchingCreativeRequest.php
new file mode 100644
index 00000000..5b0c31ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/StopWatchingCreativeRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_StopWatchingCreativeRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/VideoContent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/VideoContent.php
new file mode 100644
index 00000000..9a978e24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/VideoContent.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_VideoContent extends Google_Model
+{
+ public $videoUrl;
+
+ public function setVideoUrl($videoUrl)
+ {
+ $this->videoUrl = $videoUrl;
+ }
+ public function getVideoUrl()
+ {
+ return $this->videoUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/WatchCreativeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/WatchCreativeRequest.php
new file mode 100644
index 00000000..f92ea705
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/WatchCreativeRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeBuyerII_WatchCreativeRequest extends Google_Model
+{
+ public $topic;
+
+ public function setTopic($topic)
+ {
+ $this->topic = $topic;
+ }
+ public function getTopic()
+ {
+ return $this->topic;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller.php
new file mode 100644
index 00000000..278069cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller.php
@@ -0,0 +1,428 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AdExchangeSeller (v2.0).
+ *
+ * <p>
+ * Accesses the inventory of Ad Exchange seller users and generates reports.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/ad-exchange/seller-rest/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AdExchangeSeller extends Google_Service
+{
+ /** View and manage your Ad Exchange data. */
+ const ADEXCHANGE_SELLER =
+ "https://www.googleapis.com/auth/adexchange.seller";
+ /** View your Ad Exchange data. */
+ const ADEXCHANGE_SELLER_READONLY =
+ "https://www.googleapis.com/auth/adexchange.seller.readonly";
+
+ public $accounts;
+ public $accounts_adclients;
+ public $accounts_alerts;
+ public $accounts_customchannels;
+ public $accounts_metadata_dimensions;
+ public $accounts_metadata_metrics;
+ public $accounts_preferreddeals;
+ public $accounts_reports;
+ public $accounts_reports_saved;
+ public $accounts_urlchannels;
+
+ /**
+ * Constructs the internal representation of the AdExchangeSeller service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'adexchangeseller/v2.0/';
+ $this->version = 'v2.0';
+ $this->serviceName = 'adexchangeseller';
+
+ $this->accounts = new Google_Service_AdExchangeSeller_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_adclients = new Google_Service_AdExchangeSeller_Resource_AccountsAdclients(
+ $this,
+ $this->serviceName,
+ 'adclients',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/adclients',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_alerts = new Google_Service_AdExchangeSeller_Resource_AccountsAlerts(
+ $this,
+ $this->serviceName,
+ 'alerts',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/alerts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_customchannels = new Google_Service_AdExchangeSeller_Resource_AccountsCustomchannels(
+ $this,
+ $this->serviceName,
+ 'customchannels',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_metadata_dimensions = new Google_Service_AdExchangeSeller_Resource_AccountsMetadataDimensions(
+ $this,
+ $this->serviceName,
+ 'dimensions',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/metadata/dimensions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_metadata_metrics = new Google_Service_AdExchangeSeller_Resource_AccountsMetadataMetrics(
+ $this,
+ $this->serviceName,
+ 'metrics',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/metadata/metrics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_preferreddeals = new Google_Service_AdExchangeSeller_Resource_AccountsPreferreddeals(
+ $this,
+ $this->serviceName,
+ 'preferreddeals',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}/preferreddeals/{dealId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dealId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/preferreddeals',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_reports = new Google_Service_AdExchangeSeller_Resource_AccountsReports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'accounts/{accountId}/reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'metric' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_reports_saved = new Google_Service_AdExchangeSeller_Resource_AccountsReportsSaved(
+ $this,
+ $this->serviceName,
+ 'saved',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'accounts/{accountId}/reports/{savedReportId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'savedReportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/reports/saved',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_urlchannels = new Google_Service_AdExchangeSeller_Resource_AccountsUrlchannels(
+ $this,
+ $this->serviceName,
+ 'urlchannels',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Account.php
new file mode 100644
index 00000000..c5380f0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Account.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_Account extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Accounts.php
new file mode 100644
index 00000000..678e0c89
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Accounts.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_Accounts extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdExchangeSeller_Account';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClient.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClient.php
new file mode 100644
index 00000000..97bc8934
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClient.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_AdClient extends Google_Model
+{
+ public $arcOptIn;
+ public $id;
+ public $kind;
+ public $productCode;
+ public $supportsReporting;
+
+ public function setArcOptIn($arcOptIn)
+ {
+ $this->arcOptIn = $arcOptIn;
+ }
+ public function getArcOptIn()
+ {
+ return $this->arcOptIn;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductCode($productCode)
+ {
+ $this->productCode = $productCode;
+ }
+ public function getProductCode()
+ {
+ return $this->productCode;
+ }
+ public function setSupportsReporting($supportsReporting)
+ {
+ $this->supportsReporting = $supportsReporting;
+ }
+ public function getSupportsReporting()
+ {
+ return $this->supportsReporting;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClients.php
new file mode 100644
index 00000000..0577fb07
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/AdClients.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_AdClients extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alert.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alert.php
new file mode 100644
index 00000000..798496c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alert.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_Alert extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $message;
+ public $severity;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alerts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alerts.php
new file mode 100644
index 00000000..902f261f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Alerts.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_Alerts extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdExchangeSeller_Alert';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannel.php
new file mode 100644
index 00000000..016dbc9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannel.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model
+{
+ public $code;
+ public $id;
+ public $kind;
+ public $name;
+ protected $targetingInfoType = 'Google_Service_AdExchangeSeller_CustomChannelTargetingInfo';
+ protected $targetingInfoDataType = '';
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTargetingInfo(Google_Service_AdExchangeSeller_CustomChannelTargetingInfo $targetingInfo)
+ {
+ $this->targetingInfo = $targetingInfo;
+ }
+ public function getTargetingInfo()
+ {
+ return $this->targetingInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannelTargetingInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannelTargetingInfo.php
new file mode 100644
index 00000000..a0f43d70
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannelTargetingInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_Model
+{
+ public $adsAppearOn;
+ public $description;
+ public $location;
+ public $siteLanguage;
+
+ public function setAdsAppearOn($adsAppearOn)
+ {
+ $this->adsAppearOn = $adsAppearOn;
+ }
+ public function getAdsAppearOn()
+ {
+ return $this->adsAppearOn;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setSiteLanguage($siteLanguage)
+ {
+ $this->siteLanguage = $siteLanguage;
+ }
+ public function getSiteLanguage()
+ {
+ return $this->siteLanguage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannels.php
new file mode 100644
index 00000000..53a0aa08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/CustomChannels.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdExchangeSeller_CustomChannel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Metadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Metadata.php
new file mode 100644
index 00000000..87f064a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Metadata.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_Metadata extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdExchangeSeller_ReportingMetadataEntry';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeal.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeal.php
new file mode 100644
index 00000000..bdbf73fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeal.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model
+{
+ public $advertiserName;
+ public $buyerNetworkName;
+ public $currencyCode;
+ public $endTime;
+ public $fixedCpm;
+ public $id;
+ public $kind;
+ public $startTime;
+
+ public function setAdvertiserName($advertiserName)
+ {
+ $this->advertiserName = $advertiserName;
+ }
+ public function getAdvertiserName()
+ {
+ return $this->advertiserName;
+ }
+ public function setBuyerNetworkName($buyerNetworkName)
+ {
+ $this->buyerNetworkName = $buyerNetworkName;
+ }
+ public function getBuyerNetworkName()
+ {
+ return $this->buyerNetworkName;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setFixedCpm($fixedCpm)
+ {
+ $this->fixedCpm = $fixedCpm;
+ }
+ public function getFixedCpm()
+ {
+ return $this->fixedCpm;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeals.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeals.php
new file mode 100644
index 00000000..b50fbf63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/PreferredDeals.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdExchangeSeller_PreferredDeal';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Report.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Report.php
new file mode 100644
index 00000000..9ee73d77
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Report.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_Report extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $averages;
+ protected $headersType = 'Google_Service_AdExchangeSeller_ReportHeaders';
+ protected $headersDataType = 'array';
+ public $kind;
+ public $rows;
+ public $totalMatchedRows;
+ public $totals;
+ public $warnings;
+
+ public function setAverages($averages)
+ {
+ $this->averages = $averages;
+ }
+ public function getAverages()
+ {
+ return $this->averages;
+ }
+ public function setHeaders($headers)
+ {
+ $this->headers = $headers;
+ }
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setTotalMatchedRows($totalMatchedRows)
+ {
+ $this->totalMatchedRows = $totalMatchedRows;
+ }
+ public function getTotalMatchedRows()
+ {
+ return $this->totalMatchedRows;
+ }
+ public function setTotals($totals)
+ {
+ $this->totals = $totals;
+ }
+ public function getTotals()
+ {
+ return $this->totals;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportHeaders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportHeaders.php
new file mode 100644
index 00000000..0321c042
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportHeaders.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model
+{
+ public $currency;
+ public $name;
+ public $type;
+
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportingMetadataEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportingMetadataEntry.php
new file mode 100644
index 00000000..c8b90c46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/ReportingMetadataEntry.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection
+{
+ protected $collection_key = 'supportedProducts';
+ public $compatibleDimensions;
+ public $compatibleMetrics;
+ public $id;
+ public $kind;
+ public $requiredDimensions;
+ public $requiredMetrics;
+ public $supportedProducts;
+
+ public function setCompatibleDimensions($compatibleDimensions)
+ {
+ $this->compatibleDimensions = $compatibleDimensions;
+ }
+ public function getCompatibleDimensions()
+ {
+ return $this->compatibleDimensions;
+ }
+ public function setCompatibleMetrics($compatibleMetrics)
+ {
+ $this->compatibleMetrics = $compatibleMetrics;
+ }
+ public function getCompatibleMetrics()
+ {
+ return $this->compatibleMetrics;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRequiredDimensions($requiredDimensions)
+ {
+ $this->requiredDimensions = $requiredDimensions;
+ }
+ public function getRequiredDimensions()
+ {
+ return $this->requiredDimensions;
+ }
+ public function setRequiredMetrics($requiredMetrics)
+ {
+ $this->requiredMetrics = $requiredMetrics;
+ }
+ public function getRequiredMetrics()
+ {
+ return $this->requiredMetrics;
+ }
+ public function setSupportedProducts($supportedProducts)
+ {
+ $this->supportedProducts = $supportedProducts;
+ }
+ public function getSupportedProducts()
+ {
+ return $this->supportedProducts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/Accounts.php
new file mode 100644
index 00000000..a107fbae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/Accounts.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $accounts = $adexchangesellerService->accounts;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Get information about the selected Ad Exchange account. (accounts.get)
+ *
+ * @param string $accountId Account to get information about. Tip: 'myaccount'
+ * is a valid ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeSeller_Account
+ */
+ public function get($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeSeller_Account");
+ }
+ /**
+ * List all accounts available to this Ad Exchange account.
+ * (accounts.listAccounts)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of accounts to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through
+ * accounts. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_Accounts
+ */
+ public function listAccounts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Accounts");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAdclients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAdclients.php
new file mode 100644
index 00000000..af4a9489
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAdclients.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $adclients = $adexchangesellerService->adclients;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsAdclients extends Google_Service_Resource
+{
+ /**
+ * List all ad clients in this Ad Exchange account.
+ * (adclients.listAccountsAdclients)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of ad clients to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * clients. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_AdClients
+ */
+ public function listAccountsAdclients($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdClients");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAlerts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAlerts.php
new file mode 100644
index 00000000..66ab285e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsAlerts.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "alerts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $alerts = $adexchangesellerService->alerts;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsAlerts extends Google_Service_Resource
+{
+ /**
+ * List the alerts for this Ad Exchange account. (alerts.listAccountsAlerts)
+ *
+ * @param string $accountId Account owning the alerts.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale The locale to use for translating alert messages.
+ * The account locale will be used if this is not supplied. The AdSense default
+ * (English) will be used if the supplied locale is invalid or unsupported.
+ * @return Google_Service_AdExchangeSeller_Alerts
+ */
+ public function listAccountsAlerts($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Alerts");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsCustomchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsCustomchannels.php
new file mode 100644
index 00000000..8b23fc2e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsCustomchannels.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $customchannels = $adexchangesellerService->customchannels;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsCustomchannels extends Google_Service_Resource
+{
+ /**
+ * Get the specified custom channel from the specified ad client.
+ * (customchannels.get)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client which contains the custom channel.
+ * @param string $customChannelId Custom channel to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeSeller_CustomChannel
+ */
+ public function get($accountId, $adClientId, $customChannelId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeSeller_CustomChannel");
+ }
+ /**
+ * List all custom channels in the specified ad client for this Ad Exchange
+ * account. (customchannels.listAccountsCustomchannels)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of custom channels to include
+ * in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_CustomChannels
+ */
+ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadata.php
new file mode 100644
index 00000000..55e090a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadata.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metadata" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $metadata = $adexchangesellerService->metadata;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsMetadata extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataDimensions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataDimensions.php
new file mode 100644
index 00000000..197fc8dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataDimensions.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dimensions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $dimensions = $adexchangesellerService->dimensions;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsMetadataDimensions extends Google_Service_Resource
+{
+ /**
+ * List the metadata for the dimensions available to this AdExchange account.
+ * (dimensions.listAccountsMetadataDimensions)
+ *
+ * @param string $accountId Account with visibility to the dimensions.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeSeller_Metadata
+ */
+ public function listAccountsMetadataDimensions($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataMetrics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataMetrics.php
new file mode 100644
index 00000000..90aa3968
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsMetadataMetrics.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metrics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $metrics = $adexchangesellerService->metrics;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsMetadataMetrics extends Google_Service_Resource
+{
+ /**
+ * List the metadata for the metrics available to this AdExchange account.
+ * (metrics.listAccountsMetadataMetrics)
+ *
+ * @param string $accountId Account with visibility to the metrics.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeSeller_Metadata
+ */
+ public function listAccountsMetadataMetrics($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsPreferreddeals.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsPreferreddeals.php
new file mode 100644
index 00000000..91daee92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsPreferreddeals.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "preferreddeals" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $preferreddeals = $adexchangesellerService->preferreddeals;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsPreferreddeals extends Google_Service_Resource
+{
+ /**
+ * Get information about the selected Ad Exchange Preferred Deal.
+ * (preferreddeals.get)
+ *
+ * @param string $accountId Account owning the deal.
+ * @param string $dealId Preferred deal to get information about.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeSeller_PreferredDeal
+ */
+ public function get($accountId, $dealId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'dealId' => $dealId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal");
+ }
+ /**
+ * List the preferred deals for this Ad Exchange account.
+ * (preferreddeals.listAccountsPreferreddeals)
+ *
+ * @param string $accountId Account owning the deals.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdExchangeSeller_PreferredDeals
+ */
+ public function listAccountsPreferreddeals($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_PreferredDeals");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReports.php
new file mode 100644
index 00000000..33c70e59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReports.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $reports = $adexchangesellerService->reports;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsReports extends Google_Service_Resource
+{
+ /**
+ * Generate an Ad Exchange report based on the report request sent in the query
+ * parameters. Returns the result as JSON; to retrieve output in CSV format
+ * specify "alt=csv" as a query parameter. (reports.generate)
+ *
+ * @param string $accountId Account which owns the generated report.
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param string maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the
+ * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
+ * sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param string startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdExchangeSeller_Report
+ */
+ public function generate($accountId, $startDate, $endDate, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReportsSaved.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReportsSaved.php
new file mode 100644
index 00000000..8a0441c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsReportsSaved.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "saved" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $saved = $adexchangesellerService->saved;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsReportsSaved extends Google_Service_Resource
+{
+ /**
+ * Generate an Ad Exchange report based on the saved report ID sent in the query
+ * parameters. (saved.generate)
+ *
+ * @param string $accountId Account owning the saved report.
+ * @param string $savedReportId The saved report to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param int maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdExchangeSeller_Report
+ */
+ public function generate($accountId, $savedReportId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report");
+ }
+ /**
+ * List all saved reports in this Ad Exchange account.
+ * (saved.listAccountsReportsSaved)
+ *
+ * @param string $accountId Account owning the saved reports.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved reports to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved
+ * reports. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_SavedReports
+ */
+ public function listAccountsReportsSaved($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_SavedReports");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsUrlchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsUrlchannels.php
new file mode 100644
index 00000000..13a9106a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/Resource/AccountsUrlchannels.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
+ * $urlchannels = $adexchangesellerService->urlchannels;
+ * </code>
+ */
+class Google_Service_AdExchangeSeller_Resource_AccountsUrlchannels extends Google_Service_Resource
+{
+ /**
+ * List all URL channels in the specified ad client for this Ad Exchange
+ * account. (urlchannels.listAccountsUrlchannels)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client for which to list URL channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of URL channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through URL
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_UrlChannels
+ */
+ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdExchangeSeller_UrlChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReport.php
new file mode 100644
index 00000000..8dfa6cb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReport.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_SavedReport extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReports.php
new file mode 100644
index 00000000..c20cabc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/SavedReports.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdExchangeSeller_SavedReport';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannel.php
new file mode 100644
index 00000000..645b6fca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannel.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $urlPattern;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUrlPattern($urlPattern)
+ {
+ $this->urlPattern = $urlPattern;
+ }
+ public function getUrlPattern()
+ {
+ return $this->urlPattern;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannels.php
new file mode 100644
index 00000000..7b1b39a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdExchangeSeller/UrlChannels.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdExchangeSeller_UrlChannel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense.php
new file mode 100644
index 00000000..8463904c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense.php
@@ -0,0 +1,1060 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AdSense (v1.4).
+ *
+ * <p>
+ * Accesses AdSense publishers' inventory and generates performance reports.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/adsense/management/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AdSense extends Google_Service
+{
+ /** View and manage your AdSense data. */
+ const ADSENSE =
+ "https://www.googleapis.com/auth/adsense";
+ /** View your AdSense data. */
+ const ADSENSE_READONLY =
+ "https://www.googleapis.com/auth/adsense.readonly";
+
+ public $accounts;
+ public $accounts_adclients;
+ public $accounts_adunits;
+ public $accounts_adunits_customchannels;
+ public $accounts_alerts;
+ public $accounts_customchannels;
+ public $accounts_customchannels_adunits;
+ public $accounts_payments;
+ public $accounts_reports;
+ public $accounts_reports_saved;
+ public $accounts_savedadstyles;
+ public $accounts_urlchannels;
+ public $adclients;
+ public $adunits;
+ public $adunits_customchannels;
+ public $alerts;
+ public $customchannels;
+ public $customchannels_adunits;
+ public $metadata_dimensions;
+ public $metadata_metrics;
+ public $payments;
+ public $reports;
+ public $reports_saved;
+ public $savedadstyles;
+ public $urlchannels;
+
+ /**
+ * Constructs the internal representation of the AdSense service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'adsense/v1.4/';
+ $this->version = 'v1.4';
+ $this->serviceName = 'adsense';
+
+ $this->accounts = new Google_Service_AdSense_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tree' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_adclients = new Google_Service_AdSense_Resource_AccountsAdclients(
+ $this,
+ $this->serviceName,
+ 'adclients',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/adclients',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_adunits = new Google_Service_AdSense_Resource_AccountsAdunits(
+ $this,
+ $this->serviceName,
+ 'adunits',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getAdCode' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeInactive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_adunits_customchannels = new Google_Service_AdSense_Resource_AccountsAdunitsCustomchannels(
+ $this,
+ $this->serviceName,
+ 'customchannels',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_alerts = new Google_Service_AdSense_Resource_AccountsAlerts(
+ $this,
+ $this->serviceName,
+ 'alerts',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'accounts/{accountId}/alerts/{alertId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alertId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/alerts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_customchannels = new Google_Service_AdSense_Resource_AccountsCustomchannels(
+ $this,
+ $this->serviceName,
+ 'customchannels',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_customchannels_adunits = new Google_Service_AdSense_Resource_AccountsCustomchannelsAdunits(
+ $this,
+ $this->serviceName,
+ 'adunits',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeInactive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_payments = new Google_Service_AdSense_Resource_AccountsPayments(
+ $this,
+ $this->serviceName,
+ 'payments',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/payments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_reports = new Google_Service_AdSense_Resource_AccountsReports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'accounts/{accountId}/reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'currency' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'metric' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'useTimezoneReporting' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_reports_saved = new Google_Service_AdSense_Resource_AccountsReportsSaved(
+ $this,
+ $this->serviceName,
+ 'saved',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'accounts/{accountId}/reports/{savedReportId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'savedReportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/reports/saved',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_savedadstyles = new Google_Service_AdSense_Resource_AccountsSavedadstyles(
+ $this,
+ $this->serviceName,
+ 'savedadstyles',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}/savedadstyles/{savedAdStyleId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'savedAdStyleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/savedadstyles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_urlchannels = new Google_Service_AdSense_Resource_AccountsUrlchannels(
+ $this,
+ $this->serviceName,
+ 'urlchannels',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/urlchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->adclients = new Google_Service_AdSense_Resource_Adclients(
+ $this,
+ $this->serviceName,
+ 'adclients',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'adclients',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->adunits = new Google_Service_AdSense_Resource_Adunits(
+ $this,
+ $this->serviceName,
+ 'adunits',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'adclients/{adClientId}/adunits/{adUnitId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getAdCode' => array(
+ 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/adcode',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'adclients/{adClientId}/adunits',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeInactive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->adunits_customchannels = new Google_Service_AdSense_Resource_AdunitsCustomchannels(
+ $this,
+ $this->serviceName,
+ 'customchannels',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'adclients/{adClientId}/adunits/{adUnitId}/customchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->alerts = new Google_Service_AdSense_Resource_Alerts(
+ $this,
+ $this->serviceName,
+ 'alerts',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'alerts/{alertId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'alertId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'alerts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->customchannels = new Google_Service_AdSense_Resource_Customchannels(
+ $this,
+ $this->serviceName,
+ 'customchannels',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'adclients/{adClientId}/customchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->customchannels_adunits = new Google_Service_AdSense_Resource_CustomchannelsAdunits(
+ $this,
+ $this->serviceName,
+ 'adunits',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}/adunits',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeInactive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->metadata_dimensions = new Google_Service_AdSense_Resource_MetadataDimensions(
+ $this,
+ $this->serviceName,
+ 'dimensions',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'metadata/dimensions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->metadata_metrics = new Google_Service_AdSense_Resource_MetadataMetrics(
+ $this,
+ $this->serviceName,
+ 'metrics',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'metadata/metrics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->payments = new Google_Service_AdSense_Resource_Payments(
+ $this,
+ $this->serviceName,
+ 'payments',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'payments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->reports = new Google_Service_AdSense_Resource_Reports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'currency' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'metric' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'useTimezoneReporting' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reports_saved = new Google_Service_AdSense_Resource_ReportsSaved(
+ $this,
+ $this->serviceName,
+ 'saved',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'reports/{savedReportId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'savedReportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'reports/saved',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->savedadstyles = new Google_Service_AdSense_Resource_Savedadstyles(
+ $this,
+ $this->serviceName,
+ 'savedadstyles',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'savedadstyles/{savedAdStyleId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'savedAdStyleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'savedadstyles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->urlchannels = new Google_Service_AdSense_Resource_Urlchannels(
+ $this,
+ $this->serviceName,
+ 'urlchannels',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'adclients/{adClientId}/urlchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Account.php
new file mode 100644
index 00000000..a627aa78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Account.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_Account extends Google_Collection
+{
+ protected $collection_key = 'subAccounts';
+ protected $internal_gapi_mappings = array(
+ "creationTime" => "creation_time",
+ );
+ public $creationTime;
+ public $id;
+ public $kind;
+ public $name;
+ public $premium;
+ protected $subAccountsType = 'Google_Service_AdSense_Account';
+ protected $subAccountsDataType = 'array';
+ public $timezone;
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPremium($premium)
+ {
+ $this->premium = $premium;
+ }
+ public function getPremium()
+ {
+ return $this->premium;
+ }
+ public function setSubAccounts($subAccounts)
+ {
+ $this->subAccounts = $subAccounts;
+ }
+ public function getSubAccounts()
+ {
+ return $this->subAccounts;
+ }
+ public function setTimezone($timezone)
+ {
+ $this->timezone = $timezone;
+ }
+ public function getTimezone()
+ {
+ return $this->timezone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Accounts.php
new file mode 100644
index 00000000..b7a3d6b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Accounts.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_Accounts extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSense_Account';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClient.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClient.php
new file mode 100644
index 00000000..c34218f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClient.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdClient extends Google_Model
+{
+ public $arcOptIn;
+ public $id;
+ public $kind;
+ public $productCode;
+ public $supportsReporting;
+
+ public function setArcOptIn($arcOptIn)
+ {
+ $this->arcOptIn = $arcOptIn;
+ }
+ public function getArcOptIn()
+ {
+ return $this->arcOptIn;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductCode($productCode)
+ {
+ $this->productCode = $productCode;
+ }
+ public function getProductCode()
+ {
+ return $this->productCode;
+ }
+ public function setSupportsReporting($supportsReporting)
+ {
+ $this->supportsReporting = $supportsReporting;
+ }
+ public function getSupportsReporting()
+ {
+ return $this->supportsReporting;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClients.php
new file mode 100644
index 00000000..4347876e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdClients.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdClients extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSense_AdClient';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdCode.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdCode.php
new file mode 100644
index 00000000..2efb9d6b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdCode.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdCode extends Google_Model
+{
+ public $adCode;
+ public $kind;
+
+ public function setAdCode($adCode)
+ {
+ $this->adCode = $adCode;
+ }
+ public function getAdCode()
+ {
+ return $this->adCode;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyle.php
new file mode 100644
index 00000000..491c2a46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyle.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdStyle extends Google_Model
+{
+ protected $colorsType = 'Google_Service_AdSense_AdStyleColors';
+ protected $colorsDataType = '';
+ public $corners;
+ protected $fontType = 'Google_Service_AdSense_AdStyleFont';
+ protected $fontDataType = '';
+ public $kind;
+
+ public function setColors(Google_Service_AdSense_AdStyleColors $colors)
+ {
+ $this->colors = $colors;
+ }
+ public function getColors()
+ {
+ return $this->colors;
+ }
+ public function setCorners($corners)
+ {
+ $this->corners = $corners;
+ }
+ public function getCorners()
+ {
+ return $this->corners;
+ }
+ public function setFont(Google_Service_AdSense_AdStyleFont $font)
+ {
+ $this->font = $font;
+ }
+ public function getFont()
+ {
+ return $this->font;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleColors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleColors.php
new file mode 100644
index 00000000..a844ccf9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleColors.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdStyleColors extends Google_Model
+{
+ public $background;
+ public $border;
+ public $text;
+ public $title;
+ public $url;
+
+ public function setBackground($background)
+ {
+ $this->background = $background;
+ }
+ public function getBackground()
+ {
+ return $this->background;
+ }
+ public function setBorder($border)
+ {
+ $this->border = $border;
+ }
+ public function getBorder()
+ {
+ return $this->border;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleFont.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleFont.php
new file mode 100644
index 00000000..9dfc83f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdStyleFont.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdStyleFont extends Google_Model
+{
+ public $family;
+ public $size;
+
+ public function setFamily($family)
+ {
+ $this->family = $family;
+ }
+ public function getFamily()
+ {
+ return $this->family;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnit.php
new file mode 100644
index 00000000..53466f58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnit.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdUnit extends Google_Model
+{
+ public $code;
+ protected $contentAdsSettingsType = 'Google_Service_AdSense_AdUnitContentAdsSettings';
+ protected $contentAdsSettingsDataType = '';
+ protected $customStyleType = 'Google_Service_AdSense_AdStyle';
+ protected $customStyleDataType = '';
+ protected $feedAdsSettingsType = 'Google_Service_AdSense_AdUnitFeedAdsSettings';
+ protected $feedAdsSettingsDataType = '';
+ public $id;
+ public $kind;
+ protected $mobileContentAdsSettingsType = 'Google_Service_AdSense_AdUnitMobileContentAdsSettings';
+ protected $mobileContentAdsSettingsDataType = '';
+ public $name;
+ public $savedStyleId;
+ public $status;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings)
+ {
+ $this->contentAdsSettings = $contentAdsSettings;
+ }
+ public function getContentAdsSettings()
+ {
+ return $this->contentAdsSettings;
+ }
+ public function setCustomStyle(Google_Service_AdSense_AdStyle $customStyle)
+ {
+ $this->customStyle = $customStyle;
+ }
+ public function getCustomStyle()
+ {
+ return $this->customStyle;
+ }
+ public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings)
+ {
+ $this->feedAdsSettings = $feedAdsSettings;
+ }
+ public function getFeedAdsSettings()
+ {
+ return $this->feedAdsSettings;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
+ {
+ $this->mobileContentAdsSettings = $mobileContentAdsSettings;
+ }
+ public function getMobileContentAdsSettings()
+ {
+ return $this->mobileContentAdsSettings;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSavedStyleId($savedStyleId)
+ {
+ $this->savedStyleId = $savedStyleId;
+ }
+ public function getSavedStyleId()
+ {
+ return $this->savedStyleId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettings.php
new file mode 100644
index 00000000..ecbd2198
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettings.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model
+{
+ protected $backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption';
+ protected $backupOptionDataType = '';
+ public $size;
+ public $type;
+
+ public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption)
+ {
+ $this->backupOption = $backupOption;
+ }
+ public function getBackupOption()
+ {
+ return $this->backupOption;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettingsBackupOption.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettingsBackupOption.php
new file mode 100644
index 00000000..8c3824b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitContentAdsSettingsBackupOption.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model
+{
+ public $color;
+ public $type;
+ public $url;
+
+ public function setColor($color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitFeedAdsSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitFeedAdsSettings.php
new file mode 100644
index 00000000..8c5f5a41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitFeedAdsSettings.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model
+{
+ public $adPosition;
+ public $frequency;
+ public $minimumWordCount;
+ public $type;
+
+ public function setAdPosition($adPosition)
+ {
+ $this->adPosition = $adPosition;
+ }
+ public function getAdPosition()
+ {
+ return $this->adPosition;
+ }
+ public function setFrequency($frequency)
+ {
+ $this->frequency = $frequency;
+ }
+ public function getFrequency()
+ {
+ return $this->frequency;
+ }
+ public function setMinimumWordCount($minimumWordCount)
+ {
+ $this->minimumWordCount = $minimumWordCount;
+ }
+ public function getMinimumWordCount()
+ {
+ return $this->minimumWordCount;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitMobileContentAdsSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitMobileContentAdsSettings.php
new file mode 100644
index 00000000..892d83a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnitMobileContentAdsSettings.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model
+{
+ public $markupLanguage;
+ public $scriptingLanguage;
+ public $size;
+ public $type;
+
+ public function setMarkupLanguage($markupLanguage)
+ {
+ $this->markupLanguage = $markupLanguage;
+ }
+ public function getMarkupLanguage()
+ {
+ return $this->markupLanguage;
+ }
+ public function setScriptingLanguage($scriptingLanguage)
+ {
+ $this->scriptingLanguage = $scriptingLanguage;
+ }
+ public function getScriptingLanguage()
+ {
+ return $this->scriptingLanguage;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnits.php
new file mode 100644
index 00000000..ab16767c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdUnits.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdUnits extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSense_AdUnit';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponse.php
new file mode 100644
index 00000000..61d16a5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponse.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $averages;
+ public $endDate;
+ protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders';
+ protected $headersDataType = 'array';
+ public $kind;
+ public $rows;
+ public $startDate;
+ public $totalMatchedRows;
+ public $totals;
+ public $warnings;
+
+ public function setAverages($averages)
+ {
+ $this->averages = $averages;
+ }
+ public function getAverages()
+ {
+ return $this->averages;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setHeaders($headers)
+ {
+ $this->headers = $headers;
+ }
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setTotalMatchedRows($totalMatchedRows)
+ {
+ $this->totalMatchedRows = $totalMatchedRows;
+ }
+ public function getTotalMatchedRows()
+ {
+ return $this->totalMatchedRows;
+ }
+ public function setTotals($totals)
+ {
+ $this->totals = $totals;
+ }
+ public function getTotals()
+ {
+ return $this->totals;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponseHeaders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponseHeaders.php
new file mode 100644
index 00000000..4fc41d2e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/AdsenseReportsGenerateResponseHeaders.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model
+{
+ public $currency;
+ public $name;
+ public $type;
+
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alert.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alert.php
new file mode 100644
index 00000000..14a4748d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alert.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_Alert extends Google_Model
+{
+ public $id;
+ public $isDismissible;
+ public $kind;
+ public $message;
+ public $severity;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsDismissible($isDismissible)
+ {
+ $this->isDismissible = $isDismissible;
+ }
+ public function getIsDismissible()
+ {
+ return $this->isDismissible;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alerts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alerts.php
new file mode 100644
index 00000000..04f38a45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Alerts.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_Alerts extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdSense_Alert';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannel.php
new file mode 100644
index 00000000..2d3c7ec3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannel.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_CustomChannel extends Google_Model
+{
+ public $code;
+ public $id;
+ public $kind;
+ public $name;
+ protected $targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo';
+ protected $targetingInfoDataType = '';
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingInfo $targetingInfo)
+ {
+ $this->targetingInfo = $targetingInfo;
+ }
+ public function getTargetingInfo()
+ {
+ return $this->targetingInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannelTargetingInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannelTargetingInfo.php
new file mode 100644
index 00000000..d37a7c0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannelTargetingInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model
+{
+ public $adsAppearOn;
+ public $description;
+ public $location;
+ public $siteLanguage;
+
+ public function setAdsAppearOn($adsAppearOn)
+ {
+ $this->adsAppearOn = $adsAppearOn;
+ }
+ public function getAdsAppearOn()
+ {
+ return $this->adsAppearOn;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setSiteLanguage($siteLanguage)
+ {
+ $this->siteLanguage = $siteLanguage;
+ }
+ public function getSiteLanguage()
+ {
+ return $this->siteLanguage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannels.php
new file mode 100644
index 00000000..3897f99b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/CustomChannels.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_CustomChannels extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSense_CustomChannel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Metadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Metadata.php
new file mode 100644
index 00000000..3234c015
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Metadata.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_Metadata extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payment.php
new file mode 100644
index 00000000..577ab302
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payment.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_Payment extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $paymentAmount;
+ public $paymentAmountCurrencyCode;
+ public $paymentDate;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPaymentAmount($paymentAmount)
+ {
+ $this->paymentAmount = $paymentAmount;
+ }
+ public function getPaymentAmount()
+ {
+ return $this->paymentAmount;
+ }
+ public function setPaymentAmountCurrencyCode($paymentAmountCurrencyCode)
+ {
+ $this->paymentAmountCurrencyCode = $paymentAmountCurrencyCode;
+ }
+ public function getPaymentAmountCurrencyCode()
+ {
+ return $this->paymentAmountCurrencyCode;
+ }
+ public function setPaymentDate($paymentDate)
+ {
+ $this->paymentDate = $paymentDate;
+ }
+ public function getPaymentDate()
+ {
+ return $this->paymentDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payments.php
new file mode 100644
index 00000000..2aad94f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Payments.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_Payments extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AdSense_Payment';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/ReportingMetadataEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/ReportingMetadataEntry.php
new file mode 100644
index 00000000..8919b1a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/ReportingMetadataEntry.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection
+{
+ protected $collection_key = 'supportedProducts';
+ public $compatibleDimensions;
+ public $compatibleMetrics;
+ public $id;
+ public $kind;
+ public $requiredDimensions;
+ public $requiredMetrics;
+ public $supportedProducts;
+
+ public function setCompatibleDimensions($compatibleDimensions)
+ {
+ $this->compatibleDimensions = $compatibleDimensions;
+ }
+ public function getCompatibleDimensions()
+ {
+ return $this->compatibleDimensions;
+ }
+ public function setCompatibleMetrics($compatibleMetrics)
+ {
+ $this->compatibleMetrics = $compatibleMetrics;
+ }
+ public function getCompatibleMetrics()
+ {
+ return $this->compatibleMetrics;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRequiredDimensions($requiredDimensions)
+ {
+ $this->requiredDimensions = $requiredDimensions;
+ }
+ public function getRequiredDimensions()
+ {
+ return $this->requiredDimensions;
+ }
+ public function setRequiredMetrics($requiredMetrics)
+ {
+ $this->requiredMetrics = $requiredMetrics;
+ }
+ public function getRequiredMetrics()
+ {
+ return $this->requiredMetrics;
+ }
+ public function setSupportedProducts($supportedProducts)
+ {
+ $this->supportedProducts = $supportedProducts;
+ }
+ public function getSupportedProducts()
+ {
+ return $this->supportedProducts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Accounts.php
new file mode 100644
index 00000000..dd310359
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Accounts.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $accounts = $adsenseService->accounts;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Get information about the selected AdSense account. (accounts.get)
+ *
+ * @param string $accountId Account to get information about.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool tree Whether the tree of sub accounts should be returned.
+ * @return Google_Service_AdSense_Account
+ */
+ public function get($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSense_Account");
+ }
+ /**
+ * List all accounts available to this AdSense account. (accounts.listAccounts)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of accounts to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through
+ * accounts. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_Accounts
+ */
+ public function listAccounts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_Accounts");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php
new file mode 100644
index 00000000..0d204e62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdclients.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $adclients = $adsenseService->adclients;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsAdclients extends Google_Service_Resource
+{
+ /**
+ * List all ad clients in the specified account.
+ * (adclients.listAccountsAdclients)
+ *
+ * @param string $accountId Account for which to list ad clients.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of ad clients to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * clients. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_AdClients
+ */
+ public function listAccountsAdclients($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_AdClients");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunits.php
new file mode 100644
index 00000000..5e51d4bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunits.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $adunits = $adsenseService->adunits;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsAdunits extends Google_Service_Resource
+{
+ /**
+ * Gets the specified ad unit in the specified ad client for the specified
+ * account. (adunits.get)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client for which to get the ad unit.
+ * @param string $adUnitId Ad unit to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_AdUnit
+ */
+ public function get($accountId, $adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSense_AdUnit");
+ }
+ /**
+ * Get ad code for the specified ad unit. (adunits.getAdCode)
+ *
+ * @param string $accountId Account which contains the ad client.
+ * @param string $adClientId Ad client with contains the ad unit.
+ * @param string $adUnitId Ad unit to get the code for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_AdCode
+ */
+ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode");
+ }
+ /**
+ * List all ad units in the specified ad client for the specified account.
+ * (adunits.listAccountsAdunits)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client for which to list ad units.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInactive Whether to include inactive ad units.
+ * Default: true.
+ * @opt_param int maxResults The maximum number of ad units to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * units. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_AdUnits
+ */
+ public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunitsCustomchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunitsCustomchannels.php
new file mode 100644
index 00000000..8d3dc90a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAdunitsCustomchannels.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $customchannels = $adsenseService->customchannels;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsAdunitsCustomchannels extends Google_Service_Resource
+{
+ /**
+ * List all custom channels which the specified ad unit belongs to.
+ * (customchannels.listAccountsAdunitsCustomchannels)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client which contains the ad unit.
+ * @param string $adUnitId Ad unit for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of custom channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAlerts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAlerts.php
new file mode 100644
index 00000000..da9daf6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsAlerts.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "alerts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $alerts = $adsenseService->alerts;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsAlerts extends Google_Service_Resource
+{
+ /**
+ * Dismiss (delete) the specified alert from the specified publisher AdSense
+ * account. (alerts.delete)
+ *
+ * @param string $accountId Account which contains the ad unit.
+ * @param string $alertId Alert to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $alertId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'alertId' => $alertId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * List the alerts for the specified AdSense account.
+ * (alerts.listAccountsAlerts)
+ *
+ * @param string $accountId Account for which to retrieve the alerts.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale The locale to use for translating alert messages.
+ * The account locale will be used if this is not supplied. The AdSense default
+ * (English) will be used if the supplied locale is invalid or unsupported.
+ * @return Google_Service_AdSense_Alerts
+ */
+ public function listAccountsAlerts($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_Alerts");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannels.php
new file mode 100644
index 00000000..1dd90824
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannels.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $customchannels = $adsenseService->customchannels;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsCustomchannels extends Google_Service_Resource
+{
+ /**
+ * Get the specified custom channel from the specified ad client for the
+ * specified account. (customchannels.get)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client which contains the custom channel.
+ * @param string $customChannelId Custom channel to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_CustomChannel
+ */
+ public function get($accountId, $adClientId, $customChannelId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel");
+ }
+ /**
+ * List all custom channels in the specified ad client for the specified
+ * account. (customchannels.listAccountsCustomchannels)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of custom channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannelsAdunits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannelsAdunits.php
new file mode 100644
index 00000000..846bee58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsCustomchannelsAdunits.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $adunits = $adsenseService->adunits;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsCustomchannelsAdunits extends Google_Service_Resource
+{
+ /**
+ * List all ad units in the specified custom channel.
+ * (adunits.listAccountsCustomchannelsAdunits)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client which contains the custom channel.
+ * @param string $customChannelId Custom channel for which to list ad units.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInactive Whether to include inactive ad units.
+ * Default: true.
+ * @opt_param int maxResults The maximum number of ad units to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * units. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_AdUnits
+ */
+ public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsPayments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsPayments.php
new file mode 100644
index 00000000..56e18873
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsPayments.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "payments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $payments = $adsenseService->payments;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsPayments extends Google_Service_Resource
+{
+ /**
+ * List the payments for the specified AdSense account.
+ * (payments.listAccountsPayments)
+ *
+ * @param string $accountId Account for which to retrieve the payments.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_Payments
+ */
+ public function listAccountsPayments($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_Payments");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReports.php
new file mode 100644
index 00000000..22f0709c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReports.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $reports = $adsenseService->reports;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsReports extends Google_Service_Resource
+{
+ /**
+ * Generate an AdSense report based on the report request sent in the query
+ * parameters. Returns the result as JSON; to retrieve output in CSV format
+ * specify "alt=csv" as a query parameter. (reports.generate)
+ *
+ * @param string $accountId Account upon which to report.
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currency Optional currency to use when reporting on
+ * monetary metrics. Defaults to the account's currency if not set.
+ * @opt_param string dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param int maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the
+ * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
+ * sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @opt_param bool useTimezoneReporting Whether the report should be generated
+ * in the AdSense account's local timezone. If false default PST/PDT timezone
+ * will be used.
+ * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
+ */
+ public function generate($accountId, $startDate, $endDate, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReportsSaved.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReportsSaved.php
new file mode 100644
index 00000000..1dca5377
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsReportsSaved.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "saved" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $saved = $adsenseService->saved;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsReportsSaved extends Google_Service_Resource
+{
+ /**
+ * Generate an AdSense report based on the saved report ID sent in the query
+ * parameters. (saved.generate)
+ *
+ * @param string $accountId Account to which the saved reports belong.
+ * @param string $savedReportId The saved report to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param int maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
+ */
+ public function generate($accountId, $savedReportId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
+ }
+ /**
+ * List all saved reports in the specified AdSense account.
+ * (saved.listAccountsReportsSaved)
+ *
+ * @param string $accountId Account to which the saved reports belong.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved reports to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved
+ * reports. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedReports
+ */
+ public function listAccountsReportsSaved($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_SavedReports");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsSavedadstyles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsSavedadstyles.php
new file mode 100644
index 00000000..a33cc2d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsSavedadstyles.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "savedadstyles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $savedadstyles = $adsenseService->savedadstyles;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsSavedadstyles extends Google_Service_Resource
+{
+ /**
+ * List a specific saved ad style for the specified account. (savedadstyles.get)
+ *
+ * @param string $accountId Account for which to get the saved ad style.
+ * @param string $savedAdStyleId Saved ad style to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_SavedAdStyle
+ */
+ public function get($accountId, $savedAdStyleId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle");
+ }
+ /**
+ * List all saved ad styles in the specified account.
+ * (savedadstyles.listAccountsSavedadstyles)
+ *
+ * @param string $accountId Account for which to list saved ad styles.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved ad styles to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved
+ * ad styles. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedAdStyles
+ */
+ public function listAccountsSavedadstyles($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsUrlchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsUrlchannels.php
new file mode 100644
index 00000000..82b9cf19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AccountsUrlchannels.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $urlchannels = $adsenseService->urlchannels;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AccountsUrlchannels extends Google_Service_Resource
+{
+ /**
+ * List all URL channels in the specified ad client for the specified account.
+ * (urlchannels.listAccountsUrlchannels)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client for which to list URL channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of URL channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through URL
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_UrlChannels
+ */
+ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adclients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adclients.php
new file mode 100644
index 00000000..3d22182a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adclients.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $adclients = $adsenseService->adclients;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Adclients extends Google_Service_Resource
+{
+ /**
+ * List all ad clients in this AdSense account. (adclients.listAdclients)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of ad clients to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * clients. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_AdClients
+ */
+ public function listAdclients($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_AdClients");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adunits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adunits.php
new file mode 100644
index 00000000..38f7b060
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Adunits.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $adunits = $adsenseService->adunits;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Adunits extends Google_Service_Resource
+{
+ /**
+ * Gets the specified ad unit in the specified ad client. (adunits.get)
+ *
+ * @param string $adClientId Ad client for which to get the ad unit.
+ * @param string $adUnitId Ad unit to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_AdUnit
+ */
+ public function get($adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSense_AdUnit");
+ }
+ /**
+ * Get ad code for the specified ad unit. (adunits.getAdCode)
+ *
+ * @param string $adClientId Ad client with contains the ad unit.
+ * @param string $adUnitId Ad unit to get the code for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_AdCode
+ */
+ public function getAdCode($adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode");
+ }
+ /**
+ * List all ad units in the specified ad client for this AdSense account.
+ * (adunits.listAdunits)
+ *
+ * @param string $adClientId Ad client for which to list ad units.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInactive Whether to include inactive ad units.
+ * Default: true.
+ * @opt_param int maxResults The maximum number of ad units to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * units. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_AdUnits
+ */
+ public function listAdunits($adClientId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AdunitsCustomchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AdunitsCustomchannels.php
new file mode 100644
index 00000000..8c32cfe0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/AdunitsCustomchannels.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $customchannels = $adsenseService->customchannels;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_AdunitsCustomchannels extends Google_Service_Resource
+{
+ /**
+ * List all custom channels which the specified ad unit belongs to.
+ * (customchannels.listAdunitsCustomchannels)
+ *
+ * @param string $adClientId Ad client which contains the ad unit.
+ * @param string $adUnitId Ad unit for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of custom channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Alerts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Alerts.php
new file mode 100644
index 00000000..5c2c5934
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Alerts.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "alerts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $alerts = $adsenseService->alerts;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Alerts extends Google_Service_Resource
+{
+ /**
+ * Dismiss (delete) the specified alert from the publisher's AdSense account.
+ * (alerts.delete)
+ *
+ * @param string $alertId Alert to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($alertId, $optParams = array())
+ {
+ $params = array('alertId' => $alertId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * List the alerts for this AdSense account. (alerts.listAlerts)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale The locale to use for translating alert messages.
+ * The account locale will be used if this is not supplied. The AdSense default
+ * (English) will be used if the supplied locale is invalid or unsupported.
+ * @return Google_Service_AdSense_Alerts
+ */
+ public function listAlerts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_Alerts");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Customchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Customchannels.php
new file mode 100644
index 00000000..0c0cda9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Customchannels.php
@@ -0,0 +1,63 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $customchannels = $adsenseService->customchannels;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Customchannels extends Google_Service_Resource
+{
+ /**
+ * Get the specified custom channel from the specified ad client.
+ * (customchannels.get)
+ *
+ * @param string $adClientId Ad client which contains the custom channel.
+ * @param string $customChannelId Custom channel to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_CustomChannel
+ */
+ public function get($adClientId, $customChannelId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel");
+ }
+ /**
+ * List all custom channels in the specified ad client for this AdSense account.
+ * (customchannels.listCustomchannels)
+ *
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of custom channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listCustomchannels($adClientId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/CustomchannelsAdunits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/CustomchannelsAdunits.php
new file mode 100644
index 00000000..0fe22624
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/CustomchannelsAdunits.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $adunits = $adsenseService->adunits;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_CustomchannelsAdunits extends Google_Service_Resource
+{
+ /**
+ * List all ad units in the specified custom channel.
+ * (adunits.listCustomchannelsAdunits)
+ *
+ * @param string $adClientId Ad client which contains the custom channel.
+ * @param string $customChannelId Custom channel for which to list ad units.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInactive Whether to include inactive ad units.
+ * Default: true.
+ * @opt_param int maxResults The maximum number of ad units to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * units. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_AdUnits
+ */
+ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Metadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Metadata.php
new file mode 100644
index 00000000..9bbfef60
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Metadata.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metadata" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $metadata = $adsenseService->metadata;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Metadata extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataDimensions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataDimensions.php
new file mode 100644
index 00000000..1e72c608
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataDimensions.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dimensions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $dimensions = $adsenseService->dimensions;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_MetadataDimensions extends Google_Service_Resource
+{
+ /**
+ * List the metadata for the dimensions available to this AdSense account.
+ * (dimensions.listMetadataDimensions)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_Metadata
+ */
+ public function listMetadataDimensions($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_Metadata");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataMetrics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataMetrics.php
new file mode 100644
index 00000000..c8cc4205
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/MetadataMetrics.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metrics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $metrics = $adsenseService->metrics;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_MetadataMetrics extends Google_Service_Resource
+{
+ /**
+ * List the metadata for the metrics available to this AdSense account.
+ * (metrics.listMetadataMetrics)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_Metadata
+ */
+ public function listMetadataMetrics($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_Metadata");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Payments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Payments.php
new file mode 100644
index 00000000..0818c239
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Payments.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "payments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $payments = $adsenseService->payments;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Payments extends Google_Service_Resource
+{
+ /**
+ * List the payments for this AdSense account. (payments.listPayments)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_Payments
+ */
+ public function listPayments($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_Payments");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Reports.php
new file mode 100644
index 00000000..499d980a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Reports.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $reports = $adsenseService->reports;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Reports extends Google_Service_Resource
+{
+ /**
+ * Generate an AdSense report based on the report request sent in the query
+ * parameters. Returns the result as JSON; to retrieve output in CSV format
+ * specify "alt=csv" as a query parameter. (reports.generate)
+ *
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string accountId Accounts upon which to report.
+ * @opt_param string currency Optional currency to use when reporting on
+ * monetary metrics. Defaults to the account's currency if not set.
+ * @opt_param string dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param int maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the
+ * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
+ * sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @opt_param bool useTimezoneReporting Whether the report should be generated
+ * in the AdSense account's local timezone. If false default PST/PDT timezone
+ * will be used.
+ * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
+ */
+ public function generate($startDate, $endDate, $optParams = array())
+ {
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/ReportsSaved.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/ReportsSaved.php
new file mode 100644
index 00000000..e65cfda0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/ReportsSaved.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "saved" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $saved = $adsenseService->saved;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_ReportsSaved extends Google_Service_Resource
+{
+ /**
+ * Generate an AdSense report based on the saved report ID sent in the query
+ * parameters. (saved.generate)
+ *
+ * @param string $savedReportId The saved report to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param int maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
+ */
+ public function generate($savedReportId, $optParams = array())
+ {
+ $params = array('savedReportId' => $savedReportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
+ }
+ /**
+ * List all saved reports in this AdSense account. (saved.listReportsSaved)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved reports to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved
+ * reports. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedReports
+ */
+ public function listReportsSaved($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_SavedReports");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Savedadstyles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Savedadstyles.php
new file mode 100644
index 00000000..3a89624c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Savedadstyles.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "savedadstyles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $savedadstyles = $adsenseService->savedadstyles;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Savedadstyles extends Google_Service_Resource
+{
+ /**
+ * Get a specific saved ad style from the user's account. (savedadstyles.get)
+ *
+ * @param string $savedAdStyleId Saved ad style to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSense_SavedAdStyle
+ */
+ public function get($savedAdStyleId, $optParams = array())
+ {
+ $params = array('savedAdStyleId' => $savedAdStyleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle");
+ }
+ /**
+ * List all saved ad styles in the user's account.
+ * (savedadstyles.listSavedadstyles)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved ad styles to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved
+ * ad styles. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedAdStyles
+ */
+ public function listSavedadstyles($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Urlchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Urlchannels.php
new file mode 100644
index 00000000..b937f2c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/Resource/Urlchannels.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsenseService = new Google_Service_AdSense(...);
+ * $urlchannels = $adsenseService->urlchannels;
+ * </code>
+ */
+class Google_Service_AdSense_Resource_Urlchannels extends Google_Service_Resource
+{
+ /**
+ * List all URL channels in the specified ad client for this AdSense account.
+ * (urlchannels.listUrlchannels)
+ *
+ * @param string $adClientId Ad client for which to list URL channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of URL channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through URL
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_UrlChannels
+ */
+ public function listUrlchannels($adClientId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyle.php
new file mode 100644
index 00000000..f568bd1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyle.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_SavedAdStyle extends Google_Model
+{
+ protected $adStyleType = 'Google_Service_AdSense_AdStyle';
+ protected $adStyleDataType = '';
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setAdStyle(Google_Service_AdSense_AdStyle $adStyle)
+ {
+ $this->adStyle = $adStyle;
+ }
+ public function getAdStyle()
+ {
+ return $this->adStyle;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyles.php
new file mode 100644
index 00000000..478945cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedAdStyles.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_SavedAdStyles extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSense_SavedAdStyle';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReport.php
new file mode 100644
index 00000000..8baebb35
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReport.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_SavedReport extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReports.php
new file mode 100644
index 00000000..2d85c0be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/SavedReports.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_SavedReports extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSense_SavedReport';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannel.php
new file mode 100644
index 00000000..a372506f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannel.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_UrlChannel extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $urlPattern;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUrlPattern($urlPattern)
+ {
+ $this->urlPattern = $urlPattern;
+ }
+ public function getUrlPattern()
+ {
+ return $this->urlPattern;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannels.php
new file mode 100644
index 00000000..d5a3a6de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSense/UrlChannels.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSense_UrlChannels extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSense_UrlChannel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost.php
new file mode 100644
index 00000000..166525a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost.php
@@ -0,0 +1,630 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AdSenseHost (v4.1).
+ *
+ * <p>
+ * Generates performance reports, generates ad codes, and provides publisher
+ * management capabilities for AdSense Hosts.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/adsense/host/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AdSenseHost extends Google_Service
+{
+ /** View and manage your AdSense host data and associated accounts. */
+ const ADSENSEHOST =
+ "https://www.googleapis.com/auth/adsensehost";
+
+ public $accounts;
+ public $accounts_adclients;
+ public $accounts_adunits;
+ public $accounts_reports;
+ public $adclients;
+ public $associationsessions;
+ public $customchannels;
+ public $reports;
+ public $urlchannels;
+
+ /**
+ * Constructs the internal representation of the AdSenseHost service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'adsensehost/v4.1/';
+ $this->version = 'v4.1';
+ $this->serviceName = 'adsensehost';
+
+ $this->accounts = new Google_Service_AdSenseHost_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'filterAdClientId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_adclients = new Google_Service_AdSenseHost_Resource_AccountsAdclients(
+ $this,
+ $this->serviceName,
+ 'adclients',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/adclients',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_adunits = new Google_Service_AdSenseHost_Resource_AccountsAdunits(
+ $this,
+ $this->serviceName,
+ 'adunits',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getAdCode' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hostCustomChannelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeInactive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adUnitId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/adclients/{adClientId}/adunits',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_reports = new Google_Service_AdSenseHost_Resource_AccountsReports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'accounts/{accountId}/reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'metric' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->adclients = new Google_Service_AdSenseHost_Resource_Adclients(
+ $this,
+ $this->serviceName,
+ 'adclients',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'adclients/{adClientId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'adclients',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->associationsessions = new Google_Service_AdSenseHost_Resource_Associationsessions(
+ $this,
+ $this->serviceName,
+ 'associationsessions',
+ array(
+ 'methods' => array(
+ 'start' => array(
+ 'path' => 'associationsessions/start',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'productCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ 'websiteUrl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userLocale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'websiteLocale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'verify' => array(
+ 'path' => 'associationsessions/verify',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->customchannels = new Google_Service_AdSenseHost_Resource_Customchannels(
+ $this,
+ $this->serviceName,
+ 'customchannels',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'adclients/{adClientId}/customchannels/{customChannelId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'adclients/{adClientId}/customchannels',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'adclients/{adClientId}/customchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'adclients/{adClientId}/customchannels',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customChannelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'adclients/{adClientId}/customchannels',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reports = new Google_Service_AdSenseHost_Resource_Reports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'metric' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->urlchannels = new Google_Service_AdSenseHost_Resource_Urlchannels(
+ $this,
+ $this->serviceName,
+ 'urlchannels',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'adclients/{adClientId}/urlchannels/{urlChannelId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'urlChannelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'adclients/{adClientId}/urlchannels',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'adclients/{adClientId}/urlchannels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'adClientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Account.php
new file mode 100644
index 00000000..1c35144e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Account.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_Account extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+ public $status;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Accounts.php
new file mode 100644
index 00000000..371aef17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Accounts.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_Accounts extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSenseHost_Account';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClient.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClient.php
new file mode 100644
index 00000000..c8a1d5d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClient.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdClient extends Google_Model
+{
+ public $arcOptIn;
+ public $id;
+ public $kind;
+ public $productCode;
+ public $supportsReporting;
+
+ public function setArcOptIn($arcOptIn)
+ {
+ $this->arcOptIn = $arcOptIn;
+ }
+ public function getArcOptIn()
+ {
+ return $this->arcOptIn;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductCode($productCode)
+ {
+ $this->productCode = $productCode;
+ }
+ public function getProductCode()
+ {
+ return $this->productCode;
+ }
+ public function setSupportsReporting($supportsReporting)
+ {
+ $this->supportsReporting = $supportsReporting;
+ }
+ public function getSupportsReporting()
+ {
+ return $this->supportsReporting;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClients.php
new file mode 100644
index 00000000..6a80b166
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdClients.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdClients extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSenseHost_AdClient';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdCode.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdCode.php
new file mode 100644
index 00000000..939dcb1d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdCode.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdCode extends Google_Model
+{
+ public $adCode;
+ public $kind;
+
+ public function setAdCode($adCode)
+ {
+ $this->adCode = $adCode;
+ }
+ public function getAdCode()
+ {
+ return $this->adCode;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyle.php
new file mode 100644
index 00000000..f5bddbaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyle.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdStyle extends Google_Model
+{
+ protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors';
+ protected $colorsDataType = '';
+ public $corners;
+ protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont';
+ protected $fontDataType = '';
+ public $kind;
+
+ public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors)
+ {
+ $this->colors = $colors;
+ }
+ public function getColors()
+ {
+ return $this->colors;
+ }
+ public function setCorners($corners)
+ {
+ $this->corners = $corners;
+ }
+ public function getCorners()
+ {
+ return $this->corners;
+ }
+ public function setFont(Google_Service_AdSenseHost_AdStyleFont $font)
+ {
+ $this->font = $font;
+ }
+ public function getFont()
+ {
+ return $this->font;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleColors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleColors.php
new file mode 100644
index 00000000..dbe20cfb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleColors.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdStyleColors extends Google_Model
+{
+ public $background;
+ public $border;
+ public $text;
+ public $title;
+ public $url;
+
+ public function setBackground($background)
+ {
+ $this->background = $background;
+ }
+ public function getBackground()
+ {
+ return $this->background;
+ }
+ public function setBorder($border)
+ {
+ $this->border = $border;
+ }
+ public function getBorder()
+ {
+ return $this->border;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleFont.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleFont.php
new file mode 100644
index 00000000..0d935b8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdStyleFont.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdStyleFont extends Google_Model
+{
+ public $family;
+ public $size;
+
+ public function setFamily($family)
+ {
+ $this->family = $family;
+ }
+ public function getFamily()
+ {
+ return $this->family;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnit.php
new file mode 100644
index 00000000..fee1e201
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnit.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdUnit extends Google_Model
+{
+ public $code;
+ protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings';
+ protected $contentAdsSettingsDataType = '';
+ protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle';
+ protected $customStyleDataType = '';
+ public $id;
+ public $kind;
+ protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings';
+ protected $mobileContentAdsSettingsDataType = '';
+ public $name;
+ public $status;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings)
+ {
+ $this->contentAdsSettings = $contentAdsSettings;
+ }
+ public function getContentAdsSettings()
+ {
+ return $this->contentAdsSettings;
+ }
+ public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle)
+ {
+ $this->customStyle = $customStyle;
+ }
+ public function getCustomStyle()
+ {
+ return $this->customStyle;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
+ {
+ $this->mobileContentAdsSettings = $mobileContentAdsSettings;
+ }
+ public function getMobileContentAdsSettings()
+ {
+ return $this->mobileContentAdsSettings;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettings.php
new file mode 100644
index 00000000..4bd5d533
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettings.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model
+{
+ protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption';
+ protected $backupOptionDataType = '';
+ public $size;
+ public $type;
+
+ public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption)
+ {
+ $this->backupOption = $backupOption;
+ }
+ public function getBackupOption()
+ {
+ return $this->backupOption;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettingsBackupOption.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettingsBackupOption.php
new file mode 100644
index 00000000..c4ca660c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitContentAdsSettingsBackupOption.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model
+{
+ public $color;
+ public $type;
+ public $url;
+
+ public function setColor($color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitMobileContentAdsSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitMobileContentAdsSettings.php
new file mode 100644
index 00000000..c50cdad2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnitMobileContentAdsSettings.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model
+{
+ public $markupLanguage;
+ public $scriptingLanguage;
+ public $size;
+ public $type;
+
+ public function setMarkupLanguage($markupLanguage)
+ {
+ $this->markupLanguage = $markupLanguage;
+ }
+ public function getMarkupLanguage()
+ {
+ return $this->markupLanguage;
+ }
+ public function setScriptingLanguage($scriptingLanguage)
+ {
+ $this->scriptingLanguage = $scriptingLanguage;
+ }
+ public function getScriptingLanguage()
+ {
+ return $this->scriptingLanguage;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnits.php
new file mode 100644
index 00000000..b528b0cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AdUnits.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AdUnits extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSenseHost_AdUnit';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AssociationSession.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AssociationSession.php
new file mode 100644
index 00000000..4d346008
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/AssociationSession.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_AssociationSession extends Google_Collection
+{
+ protected $collection_key = 'productCodes';
+ public $accountId;
+ public $id;
+ public $kind;
+ public $productCodes;
+ public $redirectUrl;
+ public $status;
+ public $userLocale;
+ public $websiteLocale;
+ public $websiteUrl;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductCodes($productCodes)
+ {
+ $this->productCodes = $productCodes;
+ }
+ public function getProductCodes()
+ {
+ return $this->productCodes;
+ }
+ public function setRedirectUrl($redirectUrl)
+ {
+ $this->redirectUrl = $redirectUrl;
+ }
+ public function getRedirectUrl()
+ {
+ return $this->redirectUrl;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUserLocale($userLocale)
+ {
+ $this->userLocale = $userLocale;
+ }
+ public function getUserLocale()
+ {
+ return $this->userLocale;
+ }
+ public function setWebsiteLocale($websiteLocale)
+ {
+ $this->websiteLocale = $websiteLocale;
+ }
+ public function getWebsiteLocale()
+ {
+ return $this->websiteLocale;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannel.php
new file mode 100644
index 00000000..94f73abd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannel.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_CustomChannel extends Google_Model
+{
+ public $code;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannels.php
new file mode 100644
index 00000000..455be5ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/CustomChannels.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_CustomChannels extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Report.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Report.php
new file mode 100644
index 00000000..94220fec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Report.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_Report extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $averages;
+ protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders';
+ protected $headersDataType = 'array';
+ public $kind;
+ public $rows;
+ public $totalMatchedRows;
+ public $totals;
+ public $warnings;
+
+ public function setAverages($averages)
+ {
+ $this->averages = $averages;
+ }
+ public function getAverages()
+ {
+ return $this->averages;
+ }
+ public function setHeaders($headers)
+ {
+ $this->headers = $headers;
+ }
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setTotalMatchedRows($totalMatchedRows)
+ {
+ $this->totalMatchedRows = $totalMatchedRows;
+ }
+ public function getTotalMatchedRows()
+ {
+ return $this->totalMatchedRows;
+ }
+ public function setTotals($totals)
+ {
+ $this->totals = $totals;
+ }
+ public function getTotals()
+ {
+ return $this->totals;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/ReportHeaders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/ReportHeaders.php
new file mode 100644
index 00000000..418e03fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/ReportHeaders.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_ReportHeaders extends Google_Model
+{
+ public $currency;
+ public $name;
+ public $type;
+
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Accounts.php
new file mode 100644
index 00000000..6256267b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Accounts.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $accounts = $adsensehostService->accounts;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Get information about the selected associated AdSense account. (accounts.get)
+ *
+ * @param string $accountId Account to get information about.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_Account
+ */
+ public function get($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSenseHost_Account");
+ }
+ /**
+ * List hosted accounts associated with this AdSense account by ad client id.
+ * (accounts.listAccounts)
+ *
+ * @param string|array $filterAdClientId Ad clients to list accounts for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_Accounts
+ */
+ public function listAccounts($filterAdClientId, $optParams = array())
+ {
+ $params = array('filterAdClientId' => $filterAdClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdclients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdclients.php
new file mode 100644
index 00000000..5eab0111
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdclients.php
@@ -0,0 +1,63 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $adclients = $adsensehostService->adclients;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_AccountsAdclients extends Google_Service_Resource
+{
+ /**
+ * Get information about one of the ad clients in the specified publisher's
+ * AdSense account. (adclients.get)
+ *
+ * @param string $accountId Account which contains the ad client.
+ * @param string $adClientId Ad client to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AdClient
+ */
+ public function get($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
+ }
+ /**
+ * List all hosted ad clients in the specified hosted account.
+ * (adclients.listAccountsAdclients)
+ *
+ * @param string $accountId Account for which to list ad clients.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of ad clients to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * clients. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSenseHost_AdClients
+ */
+ public function listAccountsAdclients($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdunits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdunits.php
new file mode 100644
index 00000000..b05f2bcd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsAdunits.php
@@ -0,0 +1,150 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $adunits = $adsensehostService->adunits;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_AccountsAdunits extends Google_Service_Resource
+{
+ /**
+ * Delete the specified ad unit from the specified publisher AdSense account.
+ * (adunits.delete)
+ *
+ * @param string $accountId Account which contains the ad unit.
+ * @param string $adClientId Ad client for which to get ad unit.
+ * @param string $adUnitId Ad unit to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AdUnit
+ */
+ public function delete($accountId, $adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit");
+ }
+ /**
+ * Get the specified host ad unit in this AdSense account. (adunits.get)
+ *
+ * @param string $accountId Account which contains the ad unit.
+ * @param string $adClientId Ad client for which to get ad unit.
+ * @param string $adUnitId Ad unit to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AdUnit
+ */
+ public function get($accountId, $adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit");
+ }
+ /**
+ * Get ad code for the specified ad unit, attaching the specified host custom
+ * channels. (adunits.getAdCode)
+ *
+ * @param string $accountId Account which contains the ad client.
+ * @param string $adClientId Ad client with contains the ad unit.
+ * @param string $adUnitId Ad unit to get the code for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hostCustomChannelId Host custom channel to attach to the ad
+ * code.
+ * @return Google_Service_AdSenseHost_AdCode
+ */
+ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode");
+ }
+ /**
+ * Insert the supplied ad unit into the specified publisher AdSense account.
+ * (adunits.insert)
+ *
+ * @param string $accountId Account which will contain the ad unit.
+ * @param string $adClientId Ad client into which to insert the ad unit.
+ * @param Google_Service_AdSenseHost_AdUnit $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AdUnit
+ */
+ public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit");
+ }
+ /**
+ * List all ad units in the specified publisher's AdSense account.
+ * (adunits.listAccountsAdunits)
+ *
+ * @param string $accountId Account which contains the ad client.
+ * @param string $adClientId Ad client for which to list ad units.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInactive Whether to include inactive ad units.
+ * Default: true.
+ * @opt_param string maxResults The maximum number of ad units to include in the
+ * response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * units. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSenseHost_AdUnits
+ */
+ public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits");
+ }
+ /**
+ * Update the supplied ad unit in the specified publisher AdSense account. This
+ * method supports patch semantics. (adunits.patch)
+ *
+ * @param string $accountId Account which contains the ad client.
+ * @param string $adClientId Ad client which contains the ad unit.
+ * @param string $adUnitId Ad unit to get.
+ * @param Google_Service_AdSenseHost_AdUnit $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AdUnit
+ */
+ public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit");
+ }
+ /**
+ * Update the supplied ad unit in the specified publisher AdSense account.
+ * (adunits.update)
+ *
+ * @param string $accountId Account which contains the ad client.
+ * @param string $adClientId Ad client which contains the ad unit.
+ * @param Google_Service_AdSenseHost_AdUnit $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AdUnit
+ */
+ public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsReports.php
new file mode 100644
index 00000000..0aa2ea79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/AccountsReports.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $reports = $adsensehostService->reports;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_AccountsReports extends Google_Service_Resource
+{
+ /**
+ * Generate an AdSense report based on the report request sent in the query
+ * parameters. Returns the result as JSON; to retrieve output in CSV format
+ * specify "alt=csv" as a query parameter. (reports.generate)
+ *
+ * @param string $accountId Hosted account upon which to report.
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param string maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the
+ * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
+ * sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param string startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSenseHost_Report
+ */
+ public function generate($accountId, $startDate, $endDate, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Adclients.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Adclients.php
new file mode 100644
index 00000000..006abdfb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Adclients.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $adclients = $adsensehostService->adclients;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_Adclients extends Google_Service_Resource
+{
+ /**
+ * Get information about one of the ad clients in the Host AdSense account.
+ * (adclients.get)
+ *
+ * @param string $adClientId Ad client to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AdClient
+ */
+ public function get($adClientId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
+ }
+ /**
+ * List all host ad clients in this AdSense account. (adclients.listAdclients)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of ad clients to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad
+ * clients. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSenseHost_AdClients
+ */
+ public function listAdclients($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Associationsessions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Associationsessions.php
new file mode 100644
index 00000000..67a900aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Associationsessions.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "associationsessions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $associationsessions = $adsensehostService->associationsessions;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_Associationsessions extends Google_Service_Resource
+{
+ /**
+ * Create an association session for initiating an association with an AdSense
+ * user. (associationsessions.start)
+ *
+ * @param string|array $productCode Products to associate with the user.
+ * @param string $websiteUrl The URL of the user's hosted website.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string userLocale The preferred locale of the user.
+ * @opt_param string websiteLocale The locale of the user's hosted website.
+ * @return Google_Service_AdSenseHost_AssociationSession
+ */
+ public function start($productCode, $websiteUrl, $optParams = array())
+ {
+ $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
+ $params = array_merge($params, $optParams);
+ return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession");
+ }
+ /**
+ * Verify an association session after the association callback returns from
+ * AdSense signup. (associationsessions.verify)
+ *
+ * @param string $token The token returned to the association callback URL.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_AssociationSession
+ */
+ public function verify($token, $optParams = array())
+ {
+ $params = array('token' => $token);
+ $params = array_merge($params, $optParams);
+ return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Customchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Customchannels.php
new file mode 100644
index 00000000..75736e6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Customchannels.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $customchannels = $adsensehostService->customchannels;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_Customchannels extends Google_Service_Resource
+{
+ /**
+ * Delete a specific custom channel from the host AdSense account.
+ * (customchannels.delete)
+ *
+ * @param string $adClientId Ad client from which to delete the custom channel.
+ * @param string $customChannelId Custom channel to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_CustomChannel
+ */
+ public function delete($adClientId, $customChannelId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel");
+ }
+ /**
+ * Get a specific custom channel from the host AdSense account.
+ * (customchannels.get)
+ *
+ * @param string $adClientId Ad client from which to get the custom channel.
+ * @param string $customChannelId Custom channel to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_CustomChannel
+ */
+ public function get($adClientId, $customChannelId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel");
+ }
+ /**
+ * Add a new custom channel to the host AdSense account. (customchannels.insert)
+ *
+ * @param string $adClientId Ad client to which the new custom channel will be
+ * added.
+ * @param Google_Service_AdSenseHost_CustomChannel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_CustomChannel
+ */
+ public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel");
+ }
+ /**
+ * List all host custom channels in this AdSense account.
+ * (customchannels.listCustomchannels)
+ *
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of custom channels to include
+ * in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSenseHost_CustomChannels
+ */
+ public function listCustomchannels($adClientId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels");
+ }
+ /**
+ * Update a custom channel in the host AdSense account. This method supports
+ * patch semantics. (customchannels.patch)
+ *
+ * @param string $adClientId Ad client in which the custom channel will be
+ * updated.
+ * @param string $customChannelId Custom channel to get.
+ * @param Google_Service_AdSenseHost_CustomChannel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_CustomChannel
+ */
+ public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel");
+ }
+ /**
+ * Update a custom channel in the host AdSense account. (customchannels.update)
+ *
+ * @param string $adClientId Ad client in which the custom channel will be
+ * updated.
+ * @param Google_Service_AdSenseHost_CustomChannel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_CustomChannel
+ */
+ public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Reports.php
new file mode 100644
index 00000000..fa5522c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Reports.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $reports = $adsensehostService->reports;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_Reports extends Google_Service_Resource
+{
+ /**
+ * Generate an AdSense report based on the report request sent in the query
+ * parameters. Returns the result as JSON; to retrieve output in CSV format
+ * specify "alt=csv" as a query parameter. (reports.generate)
+ *
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD"
+ * format, inclusive.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output
+ * to a local language. Defaults to "en_US" if not specified.
+ * @opt_param string maxResults The maximum number of rows of report data to
+ * return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the
+ * resulting report on, optionally prefixed with "+" to sort ascending or "-" to
+ * sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param string startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSenseHost_Report
+ */
+ public function generate($startDate, $endDate, $optParams = array())
+ {
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Urlchannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Urlchannels.php
new file mode 100644
index 00000000..6a7cbcf4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/Resource/Urlchannels.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adsensehostService = new Google_Service_AdSenseHost(...);
+ * $urlchannels = $adsensehostService->urlchannels;
+ * </code>
+ */
+class Google_Service_AdSenseHost_Resource_Urlchannels extends Google_Service_Resource
+{
+ /**
+ * Delete a URL channel from the host AdSense account. (urlchannels.delete)
+ *
+ * @param string $adClientId Ad client from which to delete the URL channel.
+ * @param string $urlChannelId URL channel to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_UrlChannel
+ */
+ public function delete($adClientId, $urlChannelId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel");
+ }
+ /**
+ * Add a new URL channel to the host AdSense account. (urlchannels.insert)
+ *
+ * @param string $adClientId Ad client to which the new URL channel will be
+ * added.
+ * @param Google_Service_AdSenseHost_UrlChannel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AdSenseHost_UrlChannel
+ */
+ public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel");
+ }
+ /**
+ * List all host URL channels in the host AdSense account.
+ * (urlchannels.listUrlchannels)
+ *
+ * @param string $adClientId Ad client for which to list URL channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of URL channels to include in
+ * the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through URL
+ * channels. To retrieve the next page, set this parameter to the value of
+ * "nextPageToken" from the previous response.
+ * @return Google_Service_AdSenseHost_UrlChannels
+ */
+ public function listUrlchannels($adClientId, $optParams = array())
+ {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannel.php
new file mode 100644
index 00000000..f58f23cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannel.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_UrlChannel extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $urlPattern;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUrlPattern($urlPattern)
+ {
+ $this->urlPattern = $urlPattern;
+ }
+ public function getUrlPattern()
+ {
+ return $this->urlPattern;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannels.php
new file mode 100644
index 00000000..cc7338dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AdSenseHost/UrlChannels.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AdSenseHost_UrlChannels extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics.php
new file mode 100644
index 00000000..50a3b231
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics.php
@@ -0,0 +1,2103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Analytics (v3).
+ *
+ * <p>
+ * Views and manages your Google Analytics data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/analytics/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Analytics extends Google_Service
+{
+ /** View and manage your Google Analytics data. */
+ const ANALYTICS =
+ "https://www.googleapis.com/auth/analytics";
+ /** Edit Google Analytics management entities. */
+ const ANALYTICS_EDIT =
+ "https://www.googleapis.com/auth/analytics.edit";
+ /** Manage Google Analytics Account users by email address. */
+ const ANALYTICS_MANAGE_USERS =
+ "https://www.googleapis.com/auth/analytics.manage.users";
+ /** View Google Analytics user permissions. */
+ const ANALYTICS_MANAGE_USERS_READONLY =
+ "https://www.googleapis.com/auth/analytics.manage.users.readonly";
+ /** Create a new Google Analytics account along with its default property and view. */
+ const ANALYTICS_PROVISION =
+ "https://www.googleapis.com/auth/analytics.provision";
+ /** View your Google Analytics data. */
+ const ANALYTICS_READONLY =
+ "https://www.googleapis.com/auth/analytics.readonly";
+
+ public $data_ga;
+ public $data_mcf;
+ public $data_realtime;
+ public $management_accountSummaries;
+ public $management_accountUserLinks;
+ public $management_accounts;
+ public $management_customDataSources;
+ public $management_customDimensions;
+ public $management_customMetrics;
+ public $management_experiments;
+ public $management_filters;
+ public $management_goals;
+ public $management_profileFilterLinks;
+ public $management_profileUserLinks;
+ public $management_profiles;
+ public $management_remarketingAudience;
+ public $management_segments;
+ public $management_unsampledReports;
+ public $management_uploads;
+ public $management_webPropertyAdWordsLinks;
+ public $management_webproperties;
+ public $management_webpropertyUserLinks;
+ public $metadata_columns;
+ public $provisioning;
+
+ /**
+ * Constructs the internal representation of the Analytics service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'analytics/v3/';
+ $this->version = 'v3';
+ $this->serviceName = 'analytics';
+
+ $this->data_ga = new Google_Service_Analytics_Resource_DataGa(
+ $this,
+ $this->serviceName,
+ 'ga',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'data/ga',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'start-date' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'end-date' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'metrics' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dimensions' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'include-empty-rows' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'output' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'samplingLevel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'segment' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->data_mcf = new Google_Service_Analytics_Resource_DataMcf(
+ $this,
+ $this->serviceName,
+ 'mcf',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'data/mcf',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'start-date' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'end-date' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'metrics' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dimensions' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'samplingLevel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->data_realtime = new Google_Service_Analytics_Resource_DataRealtime(
+ $this,
+ $this->serviceName,
+ 'realtime',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'data/realtime',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'metrics' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dimensions' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_accountSummaries = new Google_Service_Analytics_Resource_ManagementAccountSummaries(
+ $this,
+ $this->serviceName,
+ 'accountSummaries',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'management/accountSummaries',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_accountUserLinks = new Google_Service_Analytics_Resource_ManagementAccountUserLinks(
+ $this,
+ $this->serviceName,
+ 'accountUserLinks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/entityUserLinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/entityUserLinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_accounts = new Google_Service_Analytics_Resource_ManagementAccounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'management/accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_customDataSources = new Google_Service_Analytics_Resource_ManagementCustomDataSources(
+ $this,
+ $this->serviceName,
+ 'customDataSources',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_customDimensions = new Google_Service_Analytics_Resource_ManagementCustomDimensions(
+ $this,
+ $this->serviceName,
+ 'customDimensions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customDimensionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customDimensionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ignoreCustomDataSourceLinks' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customDimensionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ignoreCustomDataSourceLinks' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_customMetrics = new Google_Service_Analytics_Resource_ManagementCustomMetrics(
+ $this,
+ $this->serviceName,
+ 'customMetrics',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customMetricId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customMetricId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ignoreCustomDataSourceLinks' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customMetricId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ignoreCustomDataSourceLinks' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_experiments = new Google_Service_Analytics_Resource_ManagementExperiments(
+ $this,
+ $this->serviceName,
+ 'experiments',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'experimentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'experimentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'experimentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'experimentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_filters = new Google_Service_Analytics_Resource_ManagementFilters(
+ $this,
+ $this->serviceName,
+ 'filters',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/filters/{filterId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'management/accounts/{accountId}/filters/{filterId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/filters',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/filters',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/filters/{filterId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/filters/{filterId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_goals = new Google_Service_Analytics_Resource_ManagementGoals(
+ $this,
+ $this->serviceName,
+ 'goals',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'goalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'goalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'goalId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_profileFilterLinks = new Google_Service_Analytics_Resource_ManagementProfileFilterLinks(
+ $this,
+ $this->serviceName,
+ 'profileFilterLinks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_profileUserLinks = new Google_Service_Analytics_Resource_ManagementProfileUserLinks(
+ $this,
+ $this->serviceName,
+ 'profileUserLinks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_profiles = new Google_Service_Analytics_Resource_ManagementProfiles(
+ $this,
+ $this->serviceName,
+ 'profiles',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_remarketingAudience = new Google_Service_Analytics_Resource_ManagementRemarketingAudience(
+ $this,
+ $this->serviceName,
+ 'remarketingAudience',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'remarketingAudienceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'remarketingAudienceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'remarketingAudienceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_segments = new Google_Service_Analytics_Resource_ManagementSegments(
+ $this,
+ $this->serviceName,
+ 'segments',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'management/segments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_unsampledReports = new Google_Service_Analytics_Resource_ManagementUnsampledReports(
+ $this,
+ $this->serviceName,
+ 'unsampledReports',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'unsampledReportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'unsampledReportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_uploads = new Google_Service_Analytics_Resource_ManagementUploads(
+ $this,
+ $this->serviceName,
+ 'uploads',
+ array(
+ 'methods' => array(
+ 'deleteUploadData' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customDataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customDataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uploadId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customDataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'uploadData' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customDataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_webPropertyAdWordsLinks = new Google_Service_Analytics_Resource_ManagementWebPropertyAdWordsLinks(
+ $this,
+ $this->serviceName,
+ 'webPropertyAdWordsLinks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyAdWordsLinkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyAdWordsLinkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyAdWordsLinkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyAdWordsLinkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_webproperties = new Google_Service_Analytics_Resource_ManagementWebproperties(
+ $this,
+ $this->serviceName,
+ 'webproperties',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->management_webpropertyUserLinks = new Google_Service_Analytics_Resource_ManagementWebpropertyUserLinks(
+ $this,
+ $this->serviceName,
+ 'webpropertyUserLinks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'webPropertyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'linkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->metadata_columns = new Google_Service_Analytics_Resource_MetadataColumns(
+ $this,
+ $this->serviceName,
+ 'columns',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'metadata/{reportType}/columns',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'reportType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->provisioning = new Google_Service_Analytics_Resource_Provisioning(
+ $this,
+ $this->serviceName,
+ 'provisioning',
+ array(
+ 'methods' => array(
+ 'createAccountTicket' => array(
+ 'path' => 'provisioning/createAccountTicket',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Account.php
new file mode 100644
index 00000000..a6e19b91
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Account.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Account extends Google_Model
+{
+ protected $childLinkType = 'Google_Service_Analytics_AccountChildLink';
+ protected $childLinkDataType = '';
+ public $created;
+ public $id;
+ public $kind;
+ public $name;
+ protected $permissionsType = 'Google_Service_Analytics_AccountPermissions';
+ protected $permissionsDataType = '';
+ public $selfLink;
+ public $starred;
+ public $updated;
+
+ public function setChildLink(Google_Service_Analytics_AccountChildLink $childLink)
+ {
+ $this->childLink = $childLink;
+ }
+ public function getChildLink()
+ {
+ return $this->childLink;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPermissions(Google_Service_Analytics_AccountPermissions $permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStarred($starred)
+ {
+ $this->starred = $starred;
+ }
+ public function getStarred()
+ {
+ return $this->starred;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountChildLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountChildLink.php
new file mode 100644
index 00000000..06eba70b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountChildLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AccountChildLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountPermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountPermissions.php
new file mode 100644
index 00000000..f2f34830
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountPermissions.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AccountPermissions extends Google_Collection
+{
+ protected $collection_key = 'effective';
+ public $effective;
+
+ public function setEffective($effective)
+ {
+ $this->effective = $effective;
+ }
+ public function getEffective()
+ {
+ return $this->effective;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountRef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountRef.php
new file mode 100644
index 00000000..b43e14e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountRef.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AccountRef extends Google_Model
+{
+ public $href;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummaries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummaries.php
new file mode 100644
index 00000000..0db22975
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummaries.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AccountSummaries extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_AccountSummary';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummary.php
new file mode 100644
index 00000000..bf938539
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountSummary.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AccountSummary extends Google_Collection
+{
+ protected $collection_key = 'webProperties';
+ public $id;
+ public $kind;
+ public $name;
+ public $starred;
+ protected $webPropertiesType = 'Google_Service_Analytics_WebPropertySummary';
+ protected $webPropertiesDataType = 'array';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStarred($starred)
+ {
+ $this->starred = $starred;
+ }
+ public function getStarred()
+ {
+ return $this->starred;
+ }
+ public function setWebProperties($webProperties)
+ {
+ $this->webProperties = $webProperties;
+ }
+ public function getWebProperties()
+ {
+ return $this->webProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountTicket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountTicket.php
new file mode 100644
index 00000000..97bf502f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AccountTicket.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AccountTicket extends Google_Model
+{
+ protected $accountType = 'Google_Service_Analytics_Account';
+ protected $accountDataType = '';
+ public $id;
+ public $kind;
+ protected $profileType = 'Google_Service_Analytics_Profile';
+ protected $profileDataType = '';
+ public $redirectUri;
+ protected $webpropertyType = 'Google_Service_Analytics_Webproperty';
+ protected $webpropertyDataType = '';
+
+ public function setAccount(Google_Service_Analytics_Account $account)
+ {
+ $this->account = $account;
+ }
+ public function getAccount()
+ {
+ return $this->account;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProfile(Google_Service_Analytics_Profile $profile)
+ {
+ $this->profile = $profile;
+ }
+ public function getProfile()
+ {
+ return $this->profile;
+ }
+ public function setRedirectUri($redirectUri)
+ {
+ $this->redirectUri = $redirectUri;
+ }
+ public function getRedirectUri()
+ {
+ return $this->redirectUri;
+ }
+ public function setWebproperty(Google_Service_Analytics_Webproperty $webproperty)
+ {
+ $this->webproperty = $webproperty;
+ }
+ public function getWebproperty()
+ {
+ return $this->webproperty;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Accounts.php
new file mode 100644
index 00000000..1bf59275
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Accounts.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Accounts extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Account';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AdWordsAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AdWordsAccount.php
new file mode 100644
index 00000000..e22d7b6c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AdWordsAccount.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AdWordsAccount extends Google_Model
+{
+ public $autoTaggingEnabled;
+ public $customerId;
+ public $kind;
+
+ public function setAutoTaggingEnabled($autoTaggingEnabled)
+ {
+ $this->autoTaggingEnabled = $autoTaggingEnabled;
+ }
+ public function getAutoTaggingEnabled()
+ {
+ return $this->autoTaggingEnabled;
+ }
+ public function setCustomerId($customerId)
+ {
+ $this->customerId = $customerId;
+ }
+ public function getCustomerId()
+ {
+ return $this->customerId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AnalyticsDataimportDeleteUploadDataRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AnalyticsDataimportDeleteUploadDataRequest.php
new file mode 100644
index 00000000..2bc12a96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/AnalyticsDataimportDeleteUploadDataRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection
+{
+ protected $collection_key = 'customDataImportUids';
+ public $customDataImportUids;
+
+ public function setCustomDataImportUids($customDataImportUids)
+ {
+ $this->customDataImportUids = $customDataImportUids;
+ }
+ public function getCustomDataImportUids()
+ {
+ return $this->customDataImportUids;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Column.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Column.php
new file mode 100644
index 00000000..a620de65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Column.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Column extends Google_Model
+{
+ public $attributes;
+ public $id;
+ public $kind;
+
+ public function setAttributes($attributes)
+ {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Columns.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Columns.php
new file mode 100644
index 00000000..1dda1cad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Columns.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Columns extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $attributeNames;
+ public $etag;
+ protected $itemsType = 'Google_Service_Analytics_Column';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $totalResults;
+
+ public function setAttributeNames($attributeNames)
+ {
+ $this->attributeNames = $attributeNames;
+ }
+ public function getAttributeNames()
+ {
+ return $this->attributeNames;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSource.php
new file mode 100644
index 00000000..cf04ad16
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSource.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomDataSource extends Google_Collection
+{
+ protected $collection_key = 'profilesLinked';
+ public $accountId;
+ protected $childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink';
+ protected $childLinkDataType = '';
+ public $created;
+ public $description;
+ public $id;
+ public $importBehavior;
+ public $kind;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_CustomDataSourceParentLink';
+ protected $parentLinkDataType = '';
+ public $profilesLinked;
+ public $selfLink;
+ public $type;
+ public $updated;
+ public $uploadType;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setChildLink(Google_Service_Analytics_CustomDataSourceChildLink $childLink)
+ {
+ $this->childLink = $childLink;
+ }
+ public function getChildLink()
+ {
+ return $this->childLink;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImportBehavior($importBehavior)
+ {
+ $this->importBehavior = $importBehavior;
+ }
+ public function getImportBehavior()
+ {
+ return $this->importBehavior;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_CustomDataSourceParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setProfilesLinked($profilesLinked)
+ {
+ $this->profilesLinked = $profilesLinked;
+ }
+ public function getProfilesLinked()
+ {
+ return $this->profilesLinked;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUploadType($uploadType)
+ {
+ $this->uploadType = $uploadType;
+ }
+ public function getUploadType()
+ {
+ return $this->uploadType;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceChildLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceChildLink.php
new file mode 100644
index 00000000..3de24017
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceChildLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceParentLink.php
new file mode 100644
index 00000000..812076df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSourceParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSources.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSources.php
new file mode 100644
index 00000000..b767ee8e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDataSources.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomDataSources extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_CustomDataSource';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimension.php
new file mode 100644
index 00000000..f95183f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimension.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomDimension extends Google_Model
+{
+ public $accountId;
+ public $active;
+ public $created;
+ public $id;
+ public $index;
+ public $kind;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_CustomDimensionParentLink';
+ protected $parentLinkDataType = '';
+ public $scope;
+ public $selfLink;
+ public $updated;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_CustomDimensionParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setScope($scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensionParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensionParentLink.php
new file mode 100644
index 00000000..d64a579f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensionParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomDimensionParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensions.php
new file mode 100644
index 00000000..548831d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomDimensions.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomDimensions extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_CustomDimension';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetric.php
new file mode 100644
index 00000000..9e11209b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetric.php
@@ -0,0 +1,161 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomMetric extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "maxValue" => "max_value",
+ "minValue" => "min_value",
+ );
+ public $accountId;
+ public $active;
+ public $created;
+ public $id;
+ public $index;
+ public $kind;
+ public $maxValue;
+ public $minValue;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_CustomMetricParentLink';
+ protected $parentLinkDataType = '';
+ public $scope;
+ public $selfLink;
+ public $type;
+ public $updated;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxValue($maxValue)
+ {
+ $this->maxValue = $maxValue;
+ }
+ public function getMaxValue()
+ {
+ return $this->maxValue;
+ }
+ public function setMinValue($minValue)
+ {
+ $this->minValue = $minValue;
+ }
+ public function getMinValue()
+ {
+ return $this->minValue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_CustomMetricParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setScope($scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetricParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetricParentLink.php
new file mode 100644
index 00000000..14f4ea6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetricParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomMetricParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetrics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetrics.php
new file mode 100644
index 00000000..c9758870
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/CustomMetrics.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_CustomMetrics extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_CustomMetric';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLink.php
new file mode 100644
index 00000000..aae8010f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLink.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection
+{
+ protected $collection_key = 'profileIds';
+ protected $adWordsAccountsType = 'Google_Service_Analytics_AdWordsAccount';
+ protected $adWordsAccountsDataType = 'array';
+ protected $entityType = 'Google_Service_Analytics_EntityAdWordsLinkEntity';
+ protected $entityDataType = '';
+ public $id;
+ public $kind;
+ public $name;
+ public $profileIds;
+ public $selfLink;
+
+ public function setAdWordsAccounts($adWordsAccounts)
+ {
+ $this->adWordsAccounts = $adWordsAccounts;
+ }
+ public function getAdWordsAccounts()
+ {
+ return $this->adWordsAccounts;
+ }
+ public function setEntity(Google_Service_Analytics_EntityAdWordsLinkEntity $entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProfileIds($profileIds)
+ {
+ $this->profileIds = $profileIds;
+ }
+ public function getProfileIds()
+ {
+ return $this->profileIds;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinkEntity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinkEntity.php
new file mode 100644
index 00000000..e73e2dac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinkEntity.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_EntityAdWordsLinkEntity extends Google_Model
+{
+ protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef';
+ protected $webPropertyRefDataType = '';
+
+ public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef)
+ {
+ $this->webPropertyRef = $webPropertyRef;
+ }
+ public function getWebPropertyRef()
+ {
+ return $this->webPropertyRef;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinks.php
new file mode 100644
index 00000000..8f93d27a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityAdWordsLinks.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_EntityAdWordsLinks extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_EntityAdWordsLink';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLink.php
new file mode 100644
index 00000000..6edfa12f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLink.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_EntityUserLink extends Google_Model
+{
+ protected $entityType = 'Google_Service_Analytics_EntityUserLinkEntity';
+ protected $entityDataType = '';
+ public $id;
+ public $kind;
+ protected $permissionsType = 'Google_Service_Analytics_EntityUserLinkPermissions';
+ protected $permissionsDataType = '';
+ public $selfLink;
+ protected $userRefType = 'Google_Service_Analytics_UserRef';
+ protected $userRefDataType = '';
+
+ public function setEntity(Google_Service_Analytics_EntityUserLinkEntity $entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPermissions(Google_Service_Analytics_EntityUserLinkPermissions $permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUserRef(Google_Service_Analytics_UserRef $userRef)
+ {
+ $this->userRef = $userRef;
+ }
+ public function getUserRef()
+ {
+ return $this->userRef;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkEntity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkEntity.php
new file mode 100644
index 00000000..acae39c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkEntity.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model
+{
+ protected $accountRefType = 'Google_Service_Analytics_AccountRef';
+ protected $accountRefDataType = '';
+ protected $profileRefType = 'Google_Service_Analytics_ProfileRef';
+ protected $profileRefDataType = '';
+ protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef';
+ protected $webPropertyRefDataType = '';
+
+ public function setAccountRef(Google_Service_Analytics_AccountRef $accountRef)
+ {
+ $this->accountRef = $accountRef;
+ }
+ public function getAccountRef()
+ {
+ return $this->accountRef;
+ }
+ public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef)
+ {
+ $this->profileRef = $profileRef;
+ }
+ public function getProfileRef()
+ {
+ return $this->profileRef;
+ }
+ public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef)
+ {
+ $this->webPropertyRef = $webPropertyRef;
+ }
+ public function getWebPropertyRef()
+ {
+ return $this->webPropertyRef;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkPermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkPermissions.php
new file mode 100644
index 00000000..3222e94a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkPermissions.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection
+{
+ protected $collection_key = 'local';
+ public $effective;
+ public $local;
+
+ public function setEffective($effective)
+ {
+ $this->effective = $effective;
+ }
+ public function getEffective()
+ {
+ return $this->effective;
+ }
+ public function setLocal($local)
+ {
+ $this->local = $local;
+ }
+ public function getLocal()
+ {
+ return $this->local;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinks.php
new file mode 100644
index 00000000..81cbefde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinks.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_EntityUserLinks extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_EntityUserLink';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiment.php
new file mode 100644
index 00000000..ef28448e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiment.php
@@ -0,0 +1,276 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Experiment extends Google_Collection
+{
+ protected $collection_key = 'variations';
+ public $accountId;
+ public $created;
+ public $description;
+ public $editableInGaUi;
+ public $endTime;
+ public $equalWeighting;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $minimumExperimentLengthInDays;
+ public $name;
+ public $objectiveMetric;
+ public $optimizationType;
+ protected $parentLinkType = 'Google_Service_Analytics_ExperimentParentLink';
+ protected $parentLinkDataType = '';
+ public $profileId;
+ public $reasonExperimentEnded;
+ public $rewriteVariationUrlsAsOriginal;
+ public $selfLink;
+ public $servingFramework;
+ public $snippet;
+ public $startTime;
+ public $status;
+ public $trafficCoverage;
+ public $updated;
+ protected $variationsType = 'Google_Service_Analytics_ExperimentVariations';
+ protected $variationsDataType = 'array';
+ public $webPropertyId;
+ public $winnerConfidenceLevel;
+ public $winnerFound;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEditableInGaUi($editableInGaUi)
+ {
+ $this->editableInGaUi = $editableInGaUi;
+ }
+ public function getEditableInGaUi()
+ {
+ return $this->editableInGaUi;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setEqualWeighting($equalWeighting)
+ {
+ $this->equalWeighting = $equalWeighting;
+ }
+ public function getEqualWeighting()
+ {
+ return $this->equalWeighting;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays)
+ {
+ $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays;
+ }
+ public function getMinimumExperimentLengthInDays()
+ {
+ return $this->minimumExperimentLengthInDays;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setObjectiveMetric($objectiveMetric)
+ {
+ $this->objectiveMetric = $objectiveMetric;
+ }
+ public function getObjectiveMetric()
+ {
+ return $this->objectiveMetric;
+ }
+ public function setOptimizationType($optimizationType)
+ {
+ $this->optimizationType = $optimizationType;
+ }
+ public function getOptimizationType()
+ {
+ return $this->optimizationType;
+ }
+ public function setParentLink(Google_Service_Analytics_ExperimentParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setReasonExperimentEnded($reasonExperimentEnded)
+ {
+ $this->reasonExperimentEnded = $reasonExperimentEnded;
+ }
+ public function getReasonExperimentEnded()
+ {
+ return $this->reasonExperimentEnded;
+ }
+ public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal)
+ {
+ $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal;
+ }
+ public function getRewriteVariationUrlsAsOriginal()
+ {
+ return $this->rewriteVariationUrlsAsOriginal;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setServingFramework($servingFramework)
+ {
+ $this->servingFramework = $servingFramework;
+ }
+ public function getServingFramework()
+ {
+ return $this->servingFramework;
+ }
+ public function setSnippet($snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTrafficCoverage($trafficCoverage)
+ {
+ $this->trafficCoverage = $trafficCoverage;
+ }
+ public function getTrafficCoverage()
+ {
+ return $this->trafficCoverage;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVariations($variations)
+ {
+ $this->variations = $variations;
+ }
+ public function getVariations()
+ {
+ return $this->variations;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+ public function setWinnerConfidenceLevel($winnerConfidenceLevel)
+ {
+ $this->winnerConfidenceLevel = $winnerConfidenceLevel;
+ }
+ public function getWinnerConfidenceLevel()
+ {
+ return $this->winnerConfidenceLevel;
+ }
+ public function setWinnerFound($winnerFound)
+ {
+ $this->winnerFound = $winnerFound;
+ }
+ public function getWinnerFound()
+ {
+ return $this->winnerFound;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentParentLink.php
new file mode 100644
index 00000000..bffe8ef6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ExperimentParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentVariations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentVariations.php
new file mode 100644
index 00000000..a5d8128a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ExperimentVariations.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ExperimentVariations extends Google_Model
+{
+ public $name;
+ public $status;
+ public $url;
+ public $weight;
+ public $won;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWeight($weight)
+ {
+ $this->weight = $weight;
+ }
+ public function getWeight()
+ {
+ return $this->weight;
+ }
+ public function setWon($won)
+ {
+ $this->won = $won;
+ }
+ public function getWon()
+ {
+ return $this->won;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiments.php
new file mode 100644
index 00000000..27936f61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Experiments.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Experiments extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Experiment';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filter.php
new file mode 100644
index 00000000..3a43445d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filter.php
@@ -0,0 +1,163 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Filter extends Google_Model
+{
+ public $accountId;
+ protected $advancedDetailsType = 'Google_Service_Analytics_FilterAdvancedDetails';
+ protected $advancedDetailsDataType = '';
+ public $created;
+ protected $excludeDetailsType = 'Google_Service_Analytics_FilterExpression';
+ protected $excludeDetailsDataType = '';
+ public $id;
+ protected $includeDetailsType = 'Google_Service_Analytics_FilterExpression';
+ protected $includeDetailsDataType = '';
+ public $kind;
+ protected $lowercaseDetailsType = 'Google_Service_Analytics_FilterLowercaseDetails';
+ protected $lowercaseDetailsDataType = '';
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_FilterParentLink';
+ protected $parentLinkDataType = '';
+ protected $searchAndReplaceDetailsType = 'Google_Service_Analytics_FilterSearchAndReplaceDetails';
+ protected $searchAndReplaceDetailsDataType = '';
+ public $selfLink;
+ public $type;
+ public $updated;
+ protected $uppercaseDetailsType = 'Google_Service_Analytics_FilterUppercaseDetails';
+ protected $uppercaseDetailsDataType = '';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvancedDetails(Google_Service_Analytics_FilterAdvancedDetails $advancedDetails)
+ {
+ $this->advancedDetails = $advancedDetails;
+ }
+ public function getAdvancedDetails()
+ {
+ return $this->advancedDetails;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setExcludeDetails(Google_Service_Analytics_FilterExpression $excludeDetails)
+ {
+ $this->excludeDetails = $excludeDetails;
+ }
+ public function getExcludeDetails()
+ {
+ return $this->excludeDetails;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIncludeDetails(Google_Service_Analytics_FilterExpression $includeDetails)
+ {
+ $this->includeDetails = $includeDetails;
+ }
+ public function getIncludeDetails()
+ {
+ return $this->includeDetails;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLowercaseDetails(Google_Service_Analytics_FilterLowercaseDetails $lowercaseDetails)
+ {
+ $this->lowercaseDetails = $lowercaseDetails;
+ }
+ public function getLowercaseDetails()
+ {
+ return $this->lowercaseDetails;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_FilterParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setSearchAndReplaceDetails(Google_Service_Analytics_FilterSearchAndReplaceDetails $searchAndReplaceDetails)
+ {
+ $this->searchAndReplaceDetails = $searchAndReplaceDetails;
+ }
+ public function getSearchAndReplaceDetails()
+ {
+ return $this->searchAndReplaceDetails;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUppercaseDetails(Google_Service_Analytics_FilterUppercaseDetails $uppercaseDetails)
+ {
+ $this->uppercaseDetails = $uppercaseDetails;
+ }
+ public function getUppercaseDetails()
+ {
+ return $this->uppercaseDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterAdvancedDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterAdvancedDetails.php
new file mode 100644
index 00000000..a7ef11f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterAdvancedDetails.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model
+{
+ public $caseSensitive;
+ public $extractA;
+ public $extractB;
+ public $fieldA;
+ public $fieldAIndex;
+ public $fieldARequired;
+ public $fieldB;
+ public $fieldBIndex;
+ public $fieldBRequired;
+ public $outputConstructor;
+ public $outputToField;
+ public $outputToFieldIndex;
+ public $overrideOutputField;
+
+ public function setCaseSensitive($caseSensitive)
+ {
+ $this->caseSensitive = $caseSensitive;
+ }
+ public function getCaseSensitive()
+ {
+ return $this->caseSensitive;
+ }
+ public function setExtractA($extractA)
+ {
+ $this->extractA = $extractA;
+ }
+ public function getExtractA()
+ {
+ return $this->extractA;
+ }
+ public function setExtractB($extractB)
+ {
+ $this->extractB = $extractB;
+ }
+ public function getExtractB()
+ {
+ return $this->extractB;
+ }
+ public function setFieldA($fieldA)
+ {
+ $this->fieldA = $fieldA;
+ }
+ public function getFieldA()
+ {
+ return $this->fieldA;
+ }
+ public function setFieldAIndex($fieldAIndex)
+ {
+ $this->fieldAIndex = $fieldAIndex;
+ }
+ public function getFieldAIndex()
+ {
+ return $this->fieldAIndex;
+ }
+ public function setFieldARequired($fieldARequired)
+ {
+ $this->fieldARequired = $fieldARequired;
+ }
+ public function getFieldARequired()
+ {
+ return $this->fieldARequired;
+ }
+ public function setFieldB($fieldB)
+ {
+ $this->fieldB = $fieldB;
+ }
+ public function getFieldB()
+ {
+ return $this->fieldB;
+ }
+ public function setFieldBIndex($fieldBIndex)
+ {
+ $this->fieldBIndex = $fieldBIndex;
+ }
+ public function getFieldBIndex()
+ {
+ return $this->fieldBIndex;
+ }
+ public function setFieldBRequired($fieldBRequired)
+ {
+ $this->fieldBRequired = $fieldBRequired;
+ }
+ public function getFieldBRequired()
+ {
+ return $this->fieldBRequired;
+ }
+ public function setOutputConstructor($outputConstructor)
+ {
+ $this->outputConstructor = $outputConstructor;
+ }
+ public function getOutputConstructor()
+ {
+ return $this->outputConstructor;
+ }
+ public function setOutputToField($outputToField)
+ {
+ $this->outputToField = $outputToField;
+ }
+ public function getOutputToField()
+ {
+ return $this->outputToField;
+ }
+ public function setOutputToFieldIndex($outputToFieldIndex)
+ {
+ $this->outputToFieldIndex = $outputToFieldIndex;
+ }
+ public function getOutputToFieldIndex()
+ {
+ return $this->outputToFieldIndex;
+ }
+ public function setOverrideOutputField($overrideOutputField)
+ {
+ $this->overrideOutputField = $overrideOutputField;
+ }
+ public function getOverrideOutputField()
+ {
+ return $this->overrideOutputField;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterExpression.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterExpression.php
new file mode 100644
index 00000000..2270c654
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterExpression.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_FilterExpression extends Google_Model
+{
+ public $caseSensitive;
+ public $expressionValue;
+ public $field;
+ public $fieldIndex;
+ public $kind;
+ public $matchType;
+
+ public function setCaseSensitive($caseSensitive)
+ {
+ $this->caseSensitive = $caseSensitive;
+ }
+ public function getCaseSensitive()
+ {
+ return $this->caseSensitive;
+ }
+ public function setExpressionValue($expressionValue)
+ {
+ $this->expressionValue = $expressionValue;
+ }
+ public function getExpressionValue()
+ {
+ return $this->expressionValue;
+ }
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setFieldIndex($fieldIndex)
+ {
+ $this->fieldIndex = $fieldIndex;
+ }
+ public function getFieldIndex()
+ {
+ return $this->fieldIndex;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMatchType($matchType)
+ {
+ $this->matchType = $matchType;
+ }
+ public function getMatchType()
+ {
+ return $this->matchType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterLowercaseDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterLowercaseDetails.php
new file mode 100644
index 00000000..0e929524
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterLowercaseDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model
+{
+ public $field;
+ public $fieldIndex;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setFieldIndex($fieldIndex)
+ {
+ $this->fieldIndex = $fieldIndex;
+ }
+ public function getFieldIndex()
+ {
+ return $this->fieldIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterParentLink.php
new file mode 100644
index 00000000..14663d3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_FilterParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterRef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterRef.php
new file mode 100644
index 00000000..1a594e67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterRef.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_FilterRef extends Google_Model
+{
+ public $accountId;
+ public $href;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterSearchAndReplaceDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterSearchAndReplaceDetails.php
new file mode 100644
index 00000000..f74cfdab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterSearchAndReplaceDetails.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Model
+{
+ public $caseSensitive;
+ public $field;
+ public $fieldIndex;
+ public $replaceString;
+ public $searchString;
+
+ public function setCaseSensitive($caseSensitive)
+ {
+ $this->caseSensitive = $caseSensitive;
+ }
+ public function getCaseSensitive()
+ {
+ return $this->caseSensitive;
+ }
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setFieldIndex($fieldIndex)
+ {
+ $this->fieldIndex = $fieldIndex;
+ }
+ public function getFieldIndex()
+ {
+ return $this->fieldIndex;
+ }
+ public function setReplaceString($replaceString)
+ {
+ $this->replaceString = $replaceString;
+ }
+ public function getReplaceString()
+ {
+ return $this->replaceString;
+ }
+ public function setSearchString($searchString)
+ {
+ $this->searchString = $searchString;
+ }
+ public function getSearchString()
+ {
+ return $this->searchString;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterUppercaseDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterUppercaseDetails.php
new file mode 100644
index 00000000..41d6c3a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/FilterUppercaseDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model
+{
+ public $field;
+ public $fieldIndex;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setFieldIndex($fieldIndex)
+ {
+ $this->fieldIndex = $fieldIndex;
+ }
+ public function getFieldIndex()
+ {
+ return $this->fieldIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filters.php
new file mode 100644
index 00000000..4058b930
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Filters.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Filters extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Filter';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaData.php
new file mode 100644
index 00000000..5b8a9fe2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaData.php
@@ -0,0 +1,179 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaData extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $columnHeadersType = 'Google_Service_Analytics_GaDataColumnHeaders';
+ protected $columnHeadersDataType = 'array';
+ public $containsSampledData;
+ public $dataLastRefreshed;
+ protected $dataTableType = 'Google_Service_Analytics_GaDataDataTable';
+ protected $dataTableDataType = '';
+ public $id;
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ protected $profileInfoType = 'Google_Service_Analytics_GaDataProfileInfo';
+ protected $profileInfoDataType = '';
+ protected $queryType = 'Google_Service_Analytics_GaDataQuery';
+ protected $queryDataType = '';
+ public $rows;
+ public $sampleSize;
+ public $sampleSpace;
+ public $selfLink;
+ public $totalResults;
+ public $totalsForAllResults;
+
+ public function setColumnHeaders($columnHeaders)
+ {
+ $this->columnHeaders = $columnHeaders;
+ }
+ public function getColumnHeaders()
+ {
+ return $this->columnHeaders;
+ }
+ public function setContainsSampledData($containsSampledData)
+ {
+ $this->containsSampledData = $containsSampledData;
+ }
+ public function getContainsSampledData()
+ {
+ return $this->containsSampledData;
+ }
+ public function setDataLastRefreshed($dataLastRefreshed)
+ {
+ $this->dataLastRefreshed = $dataLastRefreshed;
+ }
+ public function getDataLastRefreshed()
+ {
+ return $this->dataLastRefreshed;
+ }
+ public function setDataTable(Google_Service_Analytics_GaDataDataTable $dataTable)
+ {
+ $this->dataTable = $dataTable;
+ }
+ public function getDataTable()
+ {
+ return $this->dataTable;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setProfileInfo(Google_Service_Analytics_GaDataProfileInfo $profileInfo)
+ {
+ $this->profileInfo = $profileInfo;
+ }
+ public function getProfileInfo()
+ {
+ return $this->profileInfo;
+ }
+ public function setQuery(Google_Service_Analytics_GaDataQuery $query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSampleSize($sampleSize)
+ {
+ $this->sampleSize = $sampleSize;
+ }
+ public function getSampleSize()
+ {
+ return $this->sampleSize;
+ }
+ public function setSampleSpace($sampleSpace)
+ {
+ $this->sampleSpace = $sampleSpace;
+ }
+ public function getSampleSpace()
+ {
+ return $this->sampleSpace;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setTotalsForAllResults($totalsForAllResults)
+ {
+ $this->totalsForAllResults = $totalsForAllResults;
+ }
+ public function getTotalsForAllResults()
+ {
+ return $this->totalsForAllResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataColumnHeaders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataColumnHeaders.php
new file mode 100644
index 00000000..4f05a9df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataColumnHeaders.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model
+{
+ public $columnType;
+ public $dataType;
+ public $name;
+
+ public function setColumnType($columnType)
+ {
+ $this->columnType = $columnType;
+ }
+ public function getColumnType()
+ {
+ return $this->columnType;
+ }
+ public function setDataType($dataType)
+ {
+ $this->dataType = $dataType;
+ }
+ public function getDataType()
+ {
+ return $this->dataType;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTable.php
new file mode 100644
index 00000000..8e9b5349
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTable.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaDataDataTable extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $colsType = 'Google_Service_Analytics_GaDataDataTableCols';
+ protected $colsDataType = 'array';
+ protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows';
+ protected $rowsDataType = 'array';
+
+ public function setCols($cols)
+ {
+ $this->cols = $cols;
+ }
+ public function getCols()
+ {
+ return $this->cols;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableCols.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableCols.php
new file mode 100644
index 00000000..1c2fdc72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableCols.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaDataDataTableCols extends Google_Model
+{
+ public $id;
+ public $label;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRows.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRows.php
new file mode 100644
index 00000000..409a66c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRows.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection
+{
+ protected $collection_key = 'c';
+ protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC';
+ protected $cDataType = 'array';
+
+ public function setC($c)
+ {
+ $this->c = $c;
+ }
+ public function getC()
+ {
+ return $this->c;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRowsC.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRowsC.php
new file mode 100644
index 00000000..b81f3cc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataDataTableRowsC.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model
+{
+ public $v;
+
+ public function setV($v)
+ {
+ $this->v = $v;
+ }
+ public function getV()
+ {
+ return $this->v;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataProfileInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataProfileInfo.php
new file mode 100644
index 00000000..ca5a9126
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataProfileInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaDataProfileInfo extends Google_Model
+{
+ public $accountId;
+ public $internalWebPropertyId;
+ public $profileId;
+ public $profileName;
+ public $tableId;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setProfileName($profileName)
+ {
+ $this->profileName = $profileName;
+ }
+ public function getProfileName()
+ {
+ return $this->profileName;
+ }
+ public function setTableId($tableId)
+ {
+ $this->tableId = $tableId;
+ }
+ public function getTableId()
+ {
+ return $this->tableId;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataQuery.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataQuery.php
new file mode 100644
index 00000000..811f2929
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GaDataQuery.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GaDataQuery extends Google_Collection
+{
+ protected $collection_key = 'sort';
+ protected $internal_gapi_mappings = array(
+ "endDate" => "end-date",
+ "maxResults" => "max-results",
+ "startDate" => "start-date",
+ "startIndex" => "start-index",
+ );
+ public $dimensions;
+ public $endDate;
+ public $filters;
+ public $ids;
+ public $maxResults;
+ public $metrics;
+ public $samplingLevel;
+ public $segment;
+ public $sort;
+ public $startDate;
+ public $startIndex;
+
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setIds($ids)
+ {
+ $this->ids = $ids;
+ }
+ public function getIds()
+ {
+ return $this->ids;
+ }
+ public function setMaxResults($maxResults)
+ {
+ $this->maxResults = $maxResults;
+ }
+ public function getMaxResults()
+ {
+ return $this->maxResults;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setSamplingLevel($samplingLevel)
+ {
+ $this->samplingLevel = $samplingLevel;
+ }
+ public function getSamplingLevel()
+ {
+ return $this->samplingLevel;
+ }
+ public function setSegment($segment)
+ {
+ $this->segment = $segment;
+ }
+ public function getSegment()
+ {
+ return $this->segment;
+ }
+ public function setSort($sort)
+ {
+ $this->sort = $sort;
+ }
+ public function getSort()
+ {
+ return $this->sort;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goal.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goal.php
new file mode 100644
index 00000000..767420ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goal.php
@@ -0,0 +1,188 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Goal extends Google_Model
+{
+ public $accountId;
+ public $active;
+ public $created;
+ protected $eventDetailsType = 'Google_Service_Analytics_GoalEventDetails';
+ protected $eventDetailsDataType = '';
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_GoalParentLink';
+ protected $parentLinkDataType = '';
+ public $profileId;
+ public $selfLink;
+ public $type;
+ public $updated;
+ protected $urlDestinationDetailsType = 'Google_Service_Analytics_GoalUrlDestinationDetails';
+ protected $urlDestinationDetailsDataType = '';
+ public $value;
+ protected $visitNumPagesDetailsType = 'Google_Service_Analytics_GoalVisitNumPagesDetails';
+ protected $visitNumPagesDetailsDataType = '';
+ protected $visitTimeOnSiteDetailsType = 'Google_Service_Analytics_GoalVisitTimeOnSiteDetails';
+ protected $visitTimeOnSiteDetailsDataType = '';
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setEventDetails(Google_Service_Analytics_GoalEventDetails $eventDetails)
+ {
+ $this->eventDetails = $eventDetails;
+ }
+ public function getEventDetails()
+ {
+ return $this->eventDetails;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_GoalParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUrlDestinationDetails(Google_Service_Analytics_GoalUrlDestinationDetails $urlDestinationDetails)
+ {
+ $this->urlDestinationDetails = $urlDestinationDetails;
+ }
+ public function getUrlDestinationDetails()
+ {
+ return $this->urlDestinationDetails;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setVisitNumPagesDetails(Google_Service_Analytics_GoalVisitNumPagesDetails $visitNumPagesDetails)
+ {
+ $this->visitNumPagesDetails = $visitNumPagesDetails;
+ }
+ public function getVisitNumPagesDetails()
+ {
+ return $this->visitNumPagesDetails;
+ }
+ public function setVisitTimeOnSiteDetails(Google_Service_Analytics_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails)
+ {
+ $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
+ }
+ public function getVisitTimeOnSiteDetails()
+ {
+ return $this->visitTimeOnSiteDetails;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetails.php
new file mode 100644
index 00000000..0cd903db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetails.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GoalEventDetails extends Google_Collection
+{
+ protected $collection_key = 'eventConditions';
+ protected $eventConditionsType = 'Google_Service_Analytics_GoalEventDetailsEventConditions';
+ protected $eventConditionsDataType = 'array';
+ public $useEventValue;
+
+ public function setEventConditions($eventConditions)
+ {
+ $this->eventConditions = $eventConditions;
+ }
+ public function getEventConditions()
+ {
+ return $this->eventConditions;
+ }
+ public function setUseEventValue($useEventValue)
+ {
+ $this->useEventValue = $useEventValue;
+ }
+ public function getUseEventValue()
+ {
+ return $this->useEventValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetailsEventConditions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetailsEventConditions.php
new file mode 100644
index 00000000..6b401eea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalEventDetailsEventConditions.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model
+{
+ public $comparisonType;
+ public $comparisonValue;
+ public $expression;
+ public $matchType;
+ public $type;
+
+ public function setComparisonType($comparisonType)
+ {
+ $this->comparisonType = $comparisonType;
+ }
+ public function getComparisonType()
+ {
+ return $this->comparisonType;
+ }
+ public function setComparisonValue($comparisonValue)
+ {
+ $this->comparisonValue = $comparisonValue;
+ }
+ public function getComparisonValue()
+ {
+ return $this->comparisonValue;
+ }
+ public function setExpression($expression)
+ {
+ $this->expression = $expression;
+ }
+ public function getExpression()
+ {
+ return $this->expression;
+ }
+ public function setMatchType($matchType)
+ {
+ $this->matchType = $matchType;
+ }
+ public function getMatchType()
+ {
+ return $this->matchType;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalParentLink.php
new file mode 100644
index 00000000..54d7d542
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GoalParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetails.php
new file mode 100644
index 00000000..52520879
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetails.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection
+{
+ protected $collection_key = 'steps';
+ public $caseSensitive;
+ public $firstStepRequired;
+ public $matchType;
+ protected $stepsType = 'Google_Service_Analytics_GoalUrlDestinationDetailsSteps';
+ protected $stepsDataType = 'array';
+ public $url;
+
+ public function setCaseSensitive($caseSensitive)
+ {
+ $this->caseSensitive = $caseSensitive;
+ }
+ public function getCaseSensitive()
+ {
+ return $this->caseSensitive;
+ }
+ public function setFirstStepRequired($firstStepRequired)
+ {
+ $this->firstStepRequired = $firstStepRequired;
+ }
+ public function getFirstStepRequired()
+ {
+ return $this->firstStepRequired;
+ }
+ public function setMatchType($matchType)
+ {
+ $this->matchType = $matchType;
+ }
+ public function getMatchType()
+ {
+ return $this->matchType;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetailsSteps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetailsSteps.php
new file mode 100644
index 00000000..812ae53e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalUrlDestinationDetailsSteps.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model
+{
+ public $name;
+ public $number;
+ public $url;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitNumPagesDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitNumPagesDetails.php
new file mode 100644
index 00000000..fc92b56a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitNumPagesDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model
+{
+ public $comparisonType;
+ public $comparisonValue;
+
+ public function setComparisonType($comparisonType)
+ {
+ $this->comparisonType = $comparisonType;
+ }
+ public function getComparisonType()
+ {
+ return $this->comparisonType;
+ }
+ public function setComparisonValue($comparisonValue)
+ {
+ $this->comparisonValue = $comparisonValue;
+ }
+ public function getComparisonValue()
+ {
+ return $this->comparisonValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitTimeOnSiteDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitTimeOnSiteDetails.php
new file mode 100644
index 00000000..0f28a0a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/GoalVisitTimeOnSiteDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model
+{
+ public $comparisonType;
+ public $comparisonValue;
+
+ public function setComparisonType($comparisonType)
+ {
+ $this->comparisonType = $comparisonType;
+ }
+ public function getComparisonType()
+ {
+ return $this->comparisonType;
+ }
+ public function setComparisonValue($comparisonValue)
+ {
+ $this->comparisonValue = $comparisonValue;
+ }
+ public function getComparisonValue()
+ {
+ return $this->comparisonValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goals.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goals.php
new file mode 100644
index 00000000..402eb350
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Goals.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Goals extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Goal';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/IncludeConditions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/IncludeConditions.php
new file mode 100644
index 00000000..11b89c7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/IncludeConditions.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_IncludeConditions extends Google_Model
+{
+ public $daysToLookBack;
+ public $isSmartList;
+ public $kind;
+ public $membershipDurationDays;
+ public $segment;
+
+ public function setDaysToLookBack($daysToLookBack)
+ {
+ $this->daysToLookBack = $daysToLookBack;
+ }
+ public function getDaysToLookBack()
+ {
+ return $this->daysToLookBack;
+ }
+ public function setIsSmartList($isSmartList)
+ {
+ $this->isSmartList = $isSmartList;
+ }
+ public function getIsSmartList()
+ {
+ return $this->isSmartList;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMembershipDurationDays($membershipDurationDays)
+ {
+ $this->membershipDurationDays = $membershipDurationDays;
+ }
+ public function getMembershipDurationDays()
+ {
+ return $this->membershipDurationDays;
+ }
+ public function setSegment($segment)
+ {
+ $this->segment = $segment;
+ }
+ public function getSegment()
+ {
+ return $this->segment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/LinkedForeignAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/LinkedForeignAccount.php
new file mode 100644
index 00000000..4863f8a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/LinkedForeignAccount.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_LinkedForeignAccount extends Google_Model
+{
+ public $accountId;
+ public $eligibleForSearch;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $linkedAccountId;
+ public $remarketingAudienceId;
+ public $status;
+ public $type;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setEligibleForSearch($eligibleForSearch)
+ {
+ $this->eligibleForSearch = $eligibleForSearch;
+ }
+ public function getEligibleForSearch()
+ {
+ return $this->eligibleForSearch;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLinkedAccountId($linkedAccountId)
+ {
+ $this->linkedAccountId = $linkedAccountId;
+ }
+ public function getLinkedAccountId()
+ {
+ return $this->linkedAccountId;
+ }
+ public function setRemarketingAudienceId($remarketingAudienceId)
+ {
+ $this->remarketingAudienceId = $remarketingAudienceId;
+ }
+ public function getRemarketingAudienceId()
+ {
+ return $this->remarketingAudienceId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfData.php
new file mode 100644
index 00000000..91bf9d9d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfData.php
@@ -0,0 +1,161 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_McfData extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $columnHeadersType = 'Google_Service_Analytics_McfDataColumnHeaders';
+ protected $columnHeadersDataType = 'array';
+ public $containsSampledData;
+ public $id;
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ protected $profileInfoType = 'Google_Service_Analytics_McfDataProfileInfo';
+ protected $profileInfoDataType = '';
+ protected $queryType = 'Google_Service_Analytics_McfDataQuery';
+ protected $queryDataType = '';
+ protected $rowsType = 'Google_Service_Analytics_McfDataRows';
+ protected $rowsDataType = 'array';
+ public $sampleSize;
+ public $sampleSpace;
+ public $selfLink;
+ public $totalResults;
+ public $totalsForAllResults;
+
+ public function setColumnHeaders($columnHeaders)
+ {
+ $this->columnHeaders = $columnHeaders;
+ }
+ public function getColumnHeaders()
+ {
+ return $this->columnHeaders;
+ }
+ public function setContainsSampledData($containsSampledData)
+ {
+ $this->containsSampledData = $containsSampledData;
+ }
+ public function getContainsSampledData()
+ {
+ return $this->containsSampledData;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setProfileInfo(Google_Service_Analytics_McfDataProfileInfo $profileInfo)
+ {
+ $this->profileInfo = $profileInfo;
+ }
+ public function getProfileInfo()
+ {
+ return $this->profileInfo;
+ }
+ public function setQuery(Google_Service_Analytics_McfDataQuery $query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSampleSize($sampleSize)
+ {
+ $this->sampleSize = $sampleSize;
+ }
+ public function getSampleSize()
+ {
+ return $this->sampleSize;
+ }
+ public function setSampleSpace($sampleSpace)
+ {
+ $this->sampleSpace = $sampleSpace;
+ }
+ public function getSampleSpace()
+ {
+ return $this->sampleSpace;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setTotalsForAllResults($totalsForAllResults)
+ {
+ $this->totalsForAllResults = $totalsForAllResults;
+ }
+ public function getTotalsForAllResults()
+ {
+ return $this->totalsForAllResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataColumnHeaders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataColumnHeaders.php
new file mode 100644
index 00000000..30ef1ddb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataColumnHeaders.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model
+{
+ public $columnType;
+ public $dataType;
+ public $name;
+
+ public function setColumnType($columnType)
+ {
+ $this->columnType = $columnType;
+ }
+ public function getColumnType()
+ {
+ return $this->columnType;
+ }
+ public function setDataType($dataType)
+ {
+ $this->dataType = $dataType;
+ }
+ public function getDataType()
+ {
+ return $this->dataType;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataProfileInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataProfileInfo.php
new file mode 100644
index 00000000..0dc090c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataProfileInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_McfDataProfileInfo extends Google_Model
+{
+ public $accountId;
+ public $internalWebPropertyId;
+ public $profileId;
+ public $profileName;
+ public $tableId;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setProfileName($profileName)
+ {
+ $this->profileName = $profileName;
+ }
+ public function getProfileName()
+ {
+ return $this->profileName;
+ }
+ public function setTableId($tableId)
+ {
+ $this->tableId = $tableId;
+ }
+ public function getTableId()
+ {
+ return $this->tableId;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataQuery.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataQuery.php
new file mode 100644
index 00000000..2756e2fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataQuery.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_McfDataQuery extends Google_Collection
+{
+ protected $collection_key = 'sort';
+ protected $internal_gapi_mappings = array(
+ "endDate" => "end-date",
+ "maxResults" => "max-results",
+ "startDate" => "start-date",
+ "startIndex" => "start-index",
+ );
+ public $dimensions;
+ public $endDate;
+ public $filters;
+ public $ids;
+ public $maxResults;
+ public $metrics;
+ public $samplingLevel;
+ public $segment;
+ public $sort;
+ public $startDate;
+ public $startIndex;
+
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setIds($ids)
+ {
+ $this->ids = $ids;
+ }
+ public function getIds()
+ {
+ return $this->ids;
+ }
+ public function setMaxResults($maxResults)
+ {
+ $this->maxResults = $maxResults;
+ }
+ public function getMaxResults()
+ {
+ return $this->maxResults;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setSamplingLevel($samplingLevel)
+ {
+ $this->samplingLevel = $samplingLevel;
+ }
+ public function getSamplingLevel()
+ {
+ return $this->samplingLevel;
+ }
+ public function setSegment($segment)
+ {
+ $this->segment = $segment;
+ }
+ public function getSegment()
+ {
+ return $this->segment;
+ }
+ public function setSort($sort)
+ {
+ $this->sort = $sort;
+ }
+ public function getSort()
+ {
+ return $this->sort;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRows.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRows.php
new file mode 100644
index 00000000..08bbb95f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRows.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_McfDataRows extends Google_Collection
+{
+ protected $collection_key = 'conversionPathValue';
+ protected $conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue';
+ protected $conversionPathValueDataType = 'array';
+ public $primitiveValue;
+
+ public function setConversionPathValue($conversionPathValue)
+ {
+ $this->conversionPathValue = $conversionPathValue;
+ }
+ public function getConversionPathValue()
+ {
+ return $this->conversionPathValue;
+ }
+ public function setPrimitiveValue($primitiveValue)
+ {
+ $this->primitiveValue = $primitiveValue;
+ }
+ public function getPrimitiveValue()
+ {
+ return $this->primitiveValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRowsConversionPathValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRowsConversionPathValue.php
new file mode 100644
index 00000000..69b2ecb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/McfDataRowsConversionPathValue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model
+{
+ public $interactionType;
+ public $nodeValue;
+
+ public function setInteractionType($interactionType)
+ {
+ $this->interactionType = $interactionType;
+ }
+ public function getInteractionType()
+ {
+ return $this->interactionType;
+ }
+ public function setNodeValue($nodeValue)
+ {
+ $this->nodeValue = $nodeValue;
+ }
+ public function getNodeValue()
+ {
+ return $this->nodeValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profile.php
new file mode 100644
index 00000000..f92d97b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profile.php
@@ -0,0 +1,258 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Profile extends Google_Model
+{
+ public $accountId;
+ public $botFilteringEnabled;
+ protected $childLinkType = 'Google_Service_Analytics_ProfileChildLink';
+ protected $childLinkDataType = '';
+ public $created;
+ public $currency;
+ public $defaultPage;
+ public $eCommerceTracking;
+ public $enhancedECommerceTracking;
+ public $excludeQueryParameters;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_ProfileParentLink';
+ protected $parentLinkDataType = '';
+ protected $permissionsType = 'Google_Service_Analytics_ProfilePermissions';
+ protected $permissionsDataType = '';
+ public $selfLink;
+ public $siteSearchCategoryParameters;
+ public $siteSearchQueryParameters;
+ public $starred;
+ public $stripSiteSearchCategoryParameters;
+ public $stripSiteSearchQueryParameters;
+ public $timezone;
+ public $type;
+ public $updated;
+ public $webPropertyId;
+ public $websiteUrl;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setBotFilteringEnabled($botFilteringEnabled)
+ {
+ $this->botFilteringEnabled = $botFilteringEnabled;
+ }
+ public function getBotFilteringEnabled()
+ {
+ return $this->botFilteringEnabled;
+ }
+ public function setChildLink(Google_Service_Analytics_ProfileChildLink $childLink)
+ {
+ $this->childLink = $childLink;
+ }
+ public function getChildLink()
+ {
+ return $this->childLink;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setDefaultPage($defaultPage)
+ {
+ $this->defaultPage = $defaultPage;
+ }
+ public function getDefaultPage()
+ {
+ return $this->defaultPage;
+ }
+ public function setECommerceTracking($eCommerceTracking)
+ {
+ $this->eCommerceTracking = $eCommerceTracking;
+ }
+ public function getECommerceTracking()
+ {
+ return $this->eCommerceTracking;
+ }
+ public function setEnhancedECommerceTracking($enhancedECommerceTracking)
+ {
+ $this->enhancedECommerceTracking = $enhancedECommerceTracking;
+ }
+ public function getEnhancedECommerceTracking()
+ {
+ return $this->enhancedECommerceTracking;
+ }
+ public function setExcludeQueryParameters($excludeQueryParameters)
+ {
+ $this->excludeQueryParameters = $excludeQueryParameters;
+ }
+ public function getExcludeQueryParameters()
+ {
+ return $this->excludeQueryParameters;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_ProfileParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setPermissions(Google_Service_Analytics_ProfilePermissions $permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSiteSearchCategoryParameters($siteSearchCategoryParameters)
+ {
+ $this->siteSearchCategoryParameters = $siteSearchCategoryParameters;
+ }
+ public function getSiteSearchCategoryParameters()
+ {
+ return $this->siteSearchCategoryParameters;
+ }
+ public function setSiteSearchQueryParameters($siteSearchQueryParameters)
+ {
+ $this->siteSearchQueryParameters = $siteSearchQueryParameters;
+ }
+ public function getSiteSearchQueryParameters()
+ {
+ return $this->siteSearchQueryParameters;
+ }
+ public function setStarred($starred)
+ {
+ $this->starred = $starred;
+ }
+ public function getStarred()
+ {
+ return $this->starred;
+ }
+ public function setStripSiteSearchCategoryParameters($stripSiteSearchCategoryParameters)
+ {
+ $this->stripSiteSearchCategoryParameters = $stripSiteSearchCategoryParameters;
+ }
+ public function getStripSiteSearchCategoryParameters()
+ {
+ return $this->stripSiteSearchCategoryParameters;
+ }
+ public function setStripSiteSearchQueryParameters($stripSiteSearchQueryParameters)
+ {
+ $this->stripSiteSearchQueryParameters = $stripSiteSearchQueryParameters;
+ }
+ public function getStripSiteSearchQueryParameters()
+ {
+ return $this->stripSiteSearchQueryParameters;
+ }
+ public function setTimezone($timezone)
+ {
+ $this->timezone = $timezone;
+ }
+ public function getTimezone()
+ {
+ return $this->timezone;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileChildLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileChildLink.php
new file mode 100644
index 00000000..bb18f139
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileChildLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ProfileChildLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLink.php
new file mode 100644
index 00000000..38417464
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLink.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ProfileFilterLink extends Google_Model
+{
+ protected $filterRefType = 'Google_Service_Analytics_FilterRef';
+ protected $filterRefDataType = '';
+ public $id;
+ public $kind;
+ protected $profileRefType = 'Google_Service_Analytics_ProfileRef';
+ protected $profileRefDataType = '';
+ public $rank;
+ public $selfLink;
+
+ public function setFilterRef(Google_Service_Analytics_FilterRef $filterRef)
+ {
+ $this->filterRef = $filterRef;
+ }
+ public function getFilterRef()
+ {
+ return $this->filterRef;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef)
+ {
+ $this->profileRef = $profileRef;
+ }
+ public function getProfileRef()
+ {
+ return $this->profileRef;
+ }
+ public function setRank($rank)
+ {
+ $this->rank = $rank;
+ }
+ public function getRank()
+ {
+ return $this->rank;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLinks.php
new file mode 100644
index 00000000..6ba55aa8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileFilterLinks.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ProfileFilterLinks extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_ProfileFilterLink';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileParentLink.php
new file mode 100644
index 00000000..cedcf497
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ProfileParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfilePermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfilePermissions.php
new file mode 100644
index 00000000..fbbea20a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfilePermissions.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ProfilePermissions extends Google_Collection
+{
+ protected $collection_key = 'effective';
+ public $effective;
+
+ public function setEffective($effective)
+ {
+ $this->effective = $effective;
+ }
+ public function getEffective()
+ {
+ return $this->effective;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileRef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileRef.php
new file mode 100644
index 00000000..a32f66d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileRef.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ProfileRef extends Google_Model
+{
+ public $accountId;
+ public $href;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $name;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileSummary.php
new file mode 100644
index 00000000..abec3351
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/ProfileSummary.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_ProfileSummary extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+ public $starred;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStarred($starred)
+ {
+ $this->starred = $starred;
+ }
+ public function getStarred()
+ {
+ return $this->starred;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profiles.php
new file mode 100644
index 00000000..704d5907
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Profiles.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Profiles extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Profile';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeData.php
new file mode 100644
index 00000000..865a95e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeData.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RealtimeData extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $columnHeadersType = 'Google_Service_Analytics_RealtimeDataColumnHeaders';
+ protected $columnHeadersDataType = 'array';
+ public $id;
+ public $kind;
+ protected $profileInfoType = 'Google_Service_Analytics_RealtimeDataProfileInfo';
+ protected $profileInfoDataType = '';
+ protected $queryType = 'Google_Service_Analytics_RealtimeDataQuery';
+ protected $queryDataType = '';
+ public $rows;
+ public $selfLink;
+ public $totalResults;
+ public $totalsForAllResults;
+
+ public function setColumnHeaders($columnHeaders)
+ {
+ $this->columnHeaders = $columnHeaders;
+ }
+ public function getColumnHeaders()
+ {
+ return $this->columnHeaders;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProfileInfo(Google_Service_Analytics_RealtimeDataProfileInfo $profileInfo)
+ {
+ $this->profileInfo = $profileInfo;
+ }
+ public function getProfileInfo()
+ {
+ return $this->profileInfo;
+ }
+ public function setQuery(Google_Service_Analytics_RealtimeDataQuery $query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setTotalsForAllResults($totalsForAllResults)
+ {
+ $this->totalsForAllResults = $totalsForAllResults;
+ }
+ public function getTotalsForAllResults()
+ {
+ return $this->totalsForAllResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataColumnHeaders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataColumnHeaders.php
new file mode 100644
index 00000000..661fdf66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataColumnHeaders.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model
+{
+ public $columnType;
+ public $dataType;
+ public $name;
+
+ public function setColumnType($columnType)
+ {
+ $this->columnType = $columnType;
+ }
+ public function getColumnType()
+ {
+ return $this->columnType;
+ }
+ public function setDataType($dataType)
+ {
+ $this->dataType = $dataType;
+ }
+ public function getDataType()
+ {
+ return $this->dataType;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataProfileInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataProfileInfo.php
new file mode 100644
index 00000000..2bca3e7d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataProfileInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model
+{
+ public $accountId;
+ public $internalWebPropertyId;
+ public $profileId;
+ public $profileName;
+ public $tableId;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setProfileName($profileName)
+ {
+ $this->profileName = $profileName;
+ }
+ public function getProfileName()
+ {
+ return $this->profileName;
+ }
+ public function setTableId($tableId)
+ {
+ $this->tableId = $tableId;
+ }
+ public function getTableId()
+ {
+ return $this->tableId;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataQuery.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataQuery.php
new file mode 100644
index 00000000..b91009a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RealtimeDataQuery.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection
+{
+ protected $collection_key = 'sort';
+ protected $internal_gapi_mappings = array(
+ "maxResults" => "max-results",
+ );
+ public $dimensions;
+ public $filters;
+ public $ids;
+ public $maxResults;
+ public $metrics;
+ public $sort;
+
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setIds($ids)
+ {
+ $this->ids = $ids;
+ }
+ public function getIds()
+ {
+ return $this->ids;
+ }
+ public function setMaxResults($maxResults)
+ {
+ $this->maxResults = $maxResults;
+ }
+ public function getMaxResults()
+ {
+ return $this->maxResults;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setSort($sort)
+ {
+ $this->sort = $sort;
+ }
+ public function getSort()
+ {
+ return $this->sort;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudience.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudience.php
new file mode 100644
index 00000000..b960417f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudience.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RemarketingAudience extends Google_Collection
+{
+ protected $collection_key = 'linkedViews';
+ public $accountId;
+ protected $audienceDefinitionType = 'Google_Service_Analytics_RemarketingAudienceAudienceDefinition';
+ protected $audienceDefinitionDataType = '';
+ public $audienceType;
+ public $created;
+ public $description;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ protected $linkedAdAccountsType = 'Google_Service_Analytics_LinkedForeignAccount';
+ protected $linkedAdAccountsDataType = 'array';
+ public $linkedViews;
+ public $name;
+ protected $stateBasedAudienceDefinitionType = 'Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinition';
+ protected $stateBasedAudienceDefinitionDataType = '';
+ public $updated;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAudienceDefinition(Google_Service_Analytics_RemarketingAudienceAudienceDefinition $audienceDefinition)
+ {
+ $this->audienceDefinition = $audienceDefinition;
+ }
+ public function getAudienceDefinition()
+ {
+ return $this->audienceDefinition;
+ }
+ public function setAudienceType($audienceType)
+ {
+ $this->audienceType = $audienceType;
+ }
+ public function getAudienceType()
+ {
+ return $this->audienceType;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLinkedAdAccounts($linkedAdAccounts)
+ {
+ $this->linkedAdAccounts = $linkedAdAccounts;
+ }
+ public function getLinkedAdAccounts()
+ {
+ return $this->linkedAdAccounts;
+ }
+ public function setLinkedViews($linkedViews)
+ {
+ $this->linkedViews = $linkedViews;
+ }
+ public function getLinkedViews()
+ {
+ return $this->linkedViews;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStateBasedAudienceDefinition(Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinition $stateBasedAudienceDefinition)
+ {
+ $this->stateBasedAudienceDefinition = $stateBasedAudienceDefinition;
+ }
+ public function getStateBasedAudienceDefinition()
+ {
+ return $this->stateBasedAudienceDefinition;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceAudienceDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceAudienceDefinition.php
new file mode 100644
index 00000000..0069e8c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceAudienceDefinition.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RemarketingAudienceAudienceDefinition extends Google_Model
+{
+ protected $includeConditionsType = 'Google_Service_Analytics_IncludeConditions';
+ protected $includeConditionsDataType = '';
+
+ public function setIncludeConditions(Google_Service_Analytics_IncludeConditions $includeConditions)
+ {
+ $this->includeConditions = $includeConditions;
+ }
+ public function getIncludeConditions()
+ {
+ return $this->includeConditions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinition.php
new file mode 100644
index 00000000..3417d286
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinition.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinition extends Google_Model
+{
+ protected $excludeConditionsType = 'Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions';
+ protected $excludeConditionsDataType = '';
+ protected $includeConditionsType = 'Google_Service_Analytics_IncludeConditions';
+ protected $includeConditionsDataType = '';
+
+ public function setExcludeConditions(Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions $excludeConditions)
+ {
+ $this->excludeConditions = $excludeConditions;
+ }
+ public function getExcludeConditions()
+ {
+ return $this->excludeConditions;
+ }
+ public function setIncludeConditions(Google_Service_Analytics_IncludeConditions $includeConditions)
+ {
+ $this->includeConditions = $includeConditions;
+ }
+ public function getIncludeConditions()
+ {
+ return $this->includeConditions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php
new file mode 100644
index 00000000..f12f3f0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions extends Google_Model
+{
+ public $exclusionDuration;
+ public $segment;
+
+ public function setExclusionDuration($exclusionDuration)
+ {
+ $this->exclusionDuration = $exclusionDuration;
+ }
+ public function getExclusionDuration()
+ {
+ return $this->exclusionDuration;
+ }
+ public function setSegment($segment)
+ {
+ $this->segment = $segment;
+ }
+ public function getSegment()
+ {
+ return $this->segment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudiences.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudiences.php
new file mode 100644
index 00000000..cfabe4da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/RemarketingAudiences.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_RemarketingAudiences extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_RemarketingAudience';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Data.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Data.php
new file mode 100644
index 00000000..f2552067
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Data.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "data" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $data = $analyticsService->data;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_Data extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataGa.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataGa.php
new file mode 100644
index 00000000..269f6960
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataGa.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "ga" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $ga = $analyticsService->ga;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_DataGa extends Google_Service_Resource
+{
+ /**
+ * Returns Analytics data for a view (profile). (ga.get)
+ *
+ * @param string $ids Unique table ID for retrieving Analytics data. Table ID is
+ * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
+ * @param string $startDate Start date for fetching Analytics data. Requests can
+ * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g.,
+ * today, yesterday, or 7daysAgo). The default value is 7daysAgo.
+ * @param string $endDate End date for fetching Analytics data. Request can
+ * should specify an end date formatted as YYYY-MM-DD, or as a relative date
+ * (e.g., today, yesterday, or 7daysAgo). The default value is yesterday.
+ * @param string $metrics A comma-separated list of Analytics metrics. E.g.,
+ * 'ga:sessions,ga:pageviews'. At least one metric must be specified.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimensions A comma-separated list of Analytics dimensions.
+ * E.g., 'ga:browser,ga:city'.
+ * @opt_param string filters A comma-separated list of dimension or metric
+ * filters to be applied to Analytics data.
+ * @opt_param bool include-empty-rows The response will include empty rows if
+ * this parameter is set to true, the default is true
+ * @opt_param int max-results The maximum number of entries to include in this
+ * feed.
+ * @opt_param string output The selected format for the response. Default format
+ * is JSON.
+ * @opt_param string samplingLevel The desired sampling level.
+ * @opt_param string segment An Analytics segment to be applied to data.
+ * @opt_param string sort A comma-separated list of dimensions or metrics that
+ * determine the sort order for Analytics data.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_GaData
+ */
+ public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
+ {
+ $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_GaData");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataMcf.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataMcf.php
new file mode 100644
index 00000000..6a5e1685
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataMcf.php
@@ -0,0 +1,63 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mcf" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $mcf = $analyticsService->mcf;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_DataMcf extends Google_Service_Resource
+{
+ /**
+ * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get)
+ *
+ * @param string $ids Unique table ID for retrieving Analytics data. Table ID is
+ * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
+ * @param string $startDate Start date for fetching Analytics data. Requests can
+ * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g.,
+ * today, yesterday, or 7daysAgo). The default value is 7daysAgo.
+ * @param string $endDate End date for fetching Analytics data. Requests can
+ * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g.,
+ * today, yesterday, or 7daysAgo). The default value is 7daysAgo.
+ * @param string $metrics A comma-separated list of Multi-Channel Funnels
+ * metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one
+ * metric must be specified.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels
+ * dimensions. E.g., 'mcf:source,mcf:medium'.
+ * @opt_param string filters A comma-separated list of dimension or metric
+ * filters to be applied to the Analytics data.
+ * @opt_param int max-results The maximum number of entries to include in this
+ * feed.
+ * @opt_param string samplingLevel The desired sampling level.
+ * @opt_param string sort A comma-separated list of dimensions or metrics that
+ * determine the sort order for the Analytics data.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_McfData
+ */
+ public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
+ {
+ $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_McfData");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataRealtime.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataRealtime.php
new file mode 100644
index 00000000..4ea551d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/DataRealtime.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "realtime" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $realtime = $analyticsService->realtime;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_DataRealtime extends Google_Service_Resource
+{
+ /**
+ * Returns real time data for a view (profile). (realtime.get)
+ *
+ * @param string $ids Unique table ID for retrieving real time data. Table ID is
+ * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
+ * @param string $metrics A comma-separated list of real time metrics. E.g.,
+ * 'rt:activeUsers'. At least one metric must be specified.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimensions A comma-separated list of real time dimensions.
+ * E.g., 'rt:medium,rt:city'.
+ * @opt_param string filters A comma-separated list of dimension or metric
+ * filters to be applied to real time data.
+ * @opt_param int max-results The maximum number of entries to include in this
+ * feed.
+ * @opt_param string sort A comma-separated list of dimensions or metrics that
+ * determine the sort order for real time data.
+ * @return Google_Service_Analytics_RealtimeData
+ */
+ public function get($ids, $metrics, $optParams = array())
+ {
+ $params = array('ids' => $ids, 'metrics' => $metrics);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_RealtimeData");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Management.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Management.php
new file mode 100644
index 00000000..66c2905d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Management.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "management" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $management = $analyticsService->management;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_Management extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountSummaries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountSummaries.php
new file mode 100644
index 00000000..cfb29396
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountSummaries.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountSummaries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $accountSummaries = $analyticsService->accountSummaries;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementAccountSummaries extends Google_Service_Resource
+{
+ /**
+ * Lists account summaries (lightweight tree comprised of
+ * accounts/properties/profiles) to which the user has access.
+ * (accountSummaries.listManagementAccountSummaries)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of account summaries to include
+ * in this response, where the largest acceptable value is 1000.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_AccountSummaries
+ */
+ public function listManagementAccountSummaries($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_AccountSummaries");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountUserLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountUserLinks.php
new file mode 100644
index 00000000..12baeda4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccountUserLinks.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountUserLinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $accountUserLinks = $analyticsService->accountUserLinks;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementAccountUserLinks extends Google_Service_Resource
+{
+ /**
+ * Removes a user from the given account. (accountUserLinks.delete)
+ *
+ * @param string $accountId Account ID to delete the user link for.
+ * @param string $linkId Link ID to delete the user link for.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $linkId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'linkId' => $linkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a new user to the given account. (accountUserLinks.insert)
+ *
+ * @param string $accountId Account ID to create the user link for.
+ * @param Google_Service_Analytics_EntityUserLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityUserLink
+ */
+ public function insert($accountId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
+ }
+ /**
+ * Lists account-user links for a given account.
+ * (accountUserLinks.listManagementAccountUserLinks)
+ *
+ * @param string $accountId Account ID to retrieve the user links for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of account-user links to
+ * include in this response.
+ * @opt_param int start-index An index of the first account-user link to
+ * retrieve. Use this parameter as a pagination mechanism along with the max-
+ * results parameter.
+ * @return Google_Service_Analytics_EntityUserLinks
+ */
+ public function listManagementAccountUserLinks($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
+ }
+ /**
+ * Updates permissions for an existing user on the given account.
+ * (accountUserLinks.update)
+ *
+ * @param string $accountId Account ID to update the account-user link for.
+ * @param string $linkId Link ID to update the account-user link for.
+ * @param Google_Service_Analytics_EntityUserLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityUserLink
+ */
+ public function update($accountId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccounts.php
new file mode 100644
index 00000000..9a6a1daa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementAccounts.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $accounts = $analyticsService->accounts;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementAccounts extends Google_Service_Resource
+{
+ /**
+ * Lists all accounts to which the user has access.
+ * (accounts.listManagementAccounts)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of accounts to include in this
+ * response.
+ * @opt_param int start-index An index of the first account to retrieve. Use
+ * this parameter as a pagination mechanism along with the max-results
+ * parameter.
+ * @return Google_Service_Analytics_Accounts
+ */
+ public function listManagementAccounts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Accounts");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDataSources.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDataSources.php
new file mode 100644
index 00000000..d45ba9ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDataSources.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customDataSources" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $customDataSources = $analyticsService->customDataSources;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementCustomDataSources extends Google_Service_Resource
+{
+ /**
+ * List custom data sources to which the user has access.
+ * (customDataSources.listManagementCustomDataSources)
+ *
+ * @param string $accountId Account Id for the custom data sources to retrieve.
+ * @param string $webPropertyId Web property Id for the custom data sources to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of custom data sources to
+ * include in this response.
+ * @opt_param int start-index A 1-based index of the first custom data source to
+ * retrieve. Use this parameter as a pagination mechanism along with the max-
+ * results parameter.
+ * @return Google_Service_Analytics_CustomDataSources
+ */
+ public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_CustomDataSources");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDimensions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDimensions.php
new file mode 100644
index 00000000..bb430adb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomDimensions.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customDimensions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $customDimensions = $analyticsService->customDimensions;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementCustomDimensions extends Google_Service_Resource
+{
+ /**
+ * Get a custom dimension to which the user has access. (customDimensions.get)
+ *
+ * @param string $accountId Account ID for the custom dimension to retrieve.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * retrieve.
+ * @param string $customDimensionId The ID of the custom dimension to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_CustomDimension
+ */
+ public function get($accountId, $webPropertyId, $customDimensionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_CustomDimension");
+ }
+ /**
+ * Create a new custom dimension. (customDimensions.insert)
+ *
+ * @param string $accountId Account ID for the custom dimension to create.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * create.
+ * @param Google_Service_Analytics_CustomDimension $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_CustomDimension
+ */
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_CustomDimension");
+ }
+ /**
+ * Lists custom dimensions to which the user has access.
+ * (customDimensions.listManagementCustomDimensions)
+ *
+ * @param string $accountId Account ID for the custom dimensions to retrieve.
+ * @param string $webPropertyId Web property ID for the custom dimensions to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of custom dimensions to include
+ * in this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_CustomDimensions
+ */
+ public function listManagementCustomDimensions($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_CustomDimensions");
+ }
+ /**
+ * Updates an existing custom dimension. This method supports patch semantics.
+ * (customDimensions.patch)
+ *
+ * @param string $accountId Account ID for the custom dimension to update.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * update.
+ * @param string $customDimensionId Custom dimension ID for the custom dimension
+ * to update.
+ * @param Google_Service_Analytics_CustomDimension $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom dimension being linked to a custom data source
+ * / data set.
+ * @return Google_Service_Analytics_CustomDimension
+ */
+ public function patch($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_CustomDimension");
+ }
+ /**
+ * Updates an existing custom dimension. (customDimensions.update)
+ *
+ * @param string $accountId Account ID for the custom dimension to update.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * update.
+ * @param string $customDimensionId Custom dimension ID for the custom dimension
+ * to update.
+ * @param Google_Service_Analytics_CustomDimension $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom dimension being linked to a custom data source
+ * / data set.
+ * @return Google_Service_Analytics_CustomDimension
+ */
+ public function update($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_CustomDimension");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomMetrics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomMetrics.php
new file mode 100644
index 00000000..3186f63c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementCustomMetrics.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customMetrics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $customMetrics = $analyticsService->customMetrics;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementCustomMetrics extends Google_Service_Resource
+{
+ /**
+ * Get a custom metric to which the user has access. (customMetrics.get)
+ *
+ * @param string $accountId Account ID for the custom metric to retrieve.
+ * @param string $webPropertyId Web property ID for the custom metric to
+ * retrieve.
+ * @param string $customMetricId The ID of the custom metric to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function get($accountId, $webPropertyId, $customMetricId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+ /**
+ * Create a new custom metric. (customMetrics.insert)
+ *
+ * @param string $accountId Account ID for the custom metric to create.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * create.
+ * @param Google_Service_Analytics_CustomMetric $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+ /**
+ * Lists custom metrics to which the user has access.
+ * (customMetrics.listManagementCustomMetrics)
+ *
+ * @param string $accountId Account ID for the custom metrics to retrieve.
+ * @param string $webPropertyId Web property ID for the custom metrics to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of custom metrics to include in
+ * this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_CustomMetrics
+ */
+ public function listManagementCustomMetrics($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_CustomMetrics");
+ }
+ /**
+ * Updates an existing custom metric. This method supports patch semantics.
+ * (customMetrics.patch)
+ *
+ * @param string $accountId Account ID for the custom metric to update.
+ * @param string $webPropertyId Web property ID for the custom metric to update.
+ * @param string $customMetricId Custom metric ID for the custom metric to
+ * update.
+ * @param Google_Service_Analytics_CustomMetric $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom metric being linked to a custom data source /
+ * data set.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function patch($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+ /**
+ * Updates an existing custom metric. (customMetrics.update)
+ *
+ * @param string $accountId Account ID for the custom metric to update.
+ * @param string $webPropertyId Web property ID for the custom metric to update.
+ * @param string $customMetricId Custom metric ID for the custom metric to
+ * update.
+ * @param Google_Service_Analytics_CustomMetric $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom metric being linked to a custom data source /
+ * data set.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function update($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementExperiments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementExperiments.php
new file mode 100644
index 00000000..24053c7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementExperiments.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "experiments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $experiments = $analyticsService->experiments;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementExperiments extends Google_Service_Resource
+{
+ /**
+ * Delete an experiment. (experiments.delete)
+ *
+ * @param string $accountId Account ID to which the experiment belongs
+ * @param string $webPropertyId Web property ID to which the experiment belongs
+ * @param string $profileId View (Profile) ID to which the experiment belongs
+ * @param string $experimentId ID of the experiment to delete
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns an experiment to which the user has access. (experiments.get)
+ *
+ * @param string $accountId Account ID to retrieve the experiment for.
+ * @param string $webPropertyId Web property ID to retrieve the experiment for.
+ * @param string $profileId View (Profile) ID to retrieve the experiment for.
+ * @param string $experimentId Experiment ID to retrieve the experiment for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Experiment
+ */
+ public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_Experiment");
+ }
+ /**
+ * Create a new experiment. (experiments.insert)
+ *
+ * @param string $accountId Account ID to create the experiment for.
+ * @param string $webPropertyId Web property ID to create the experiment for.
+ * @param string $profileId View (Profile) ID to create the experiment for.
+ * @param Google_Service_Analytics_Experiment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Experiment
+ */
+ public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_Experiment");
+ }
+ /**
+ * Lists experiments to which the user has access.
+ * (experiments.listManagementExperiments)
+ *
+ * @param string $accountId Account ID to retrieve experiments for.
+ * @param string $webPropertyId Web property ID to retrieve experiments for.
+ * @param string $profileId View (Profile) ID to retrieve experiments for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of experiments to include in
+ * this response.
+ * @opt_param int start-index An index of the first experiment to retrieve. Use
+ * this parameter as a pagination mechanism along with the max-results
+ * parameter.
+ * @return Google_Service_Analytics_Experiments
+ */
+ public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Experiments");
+ }
+ /**
+ * Update an existing experiment. This method supports patch semantics.
+ * (experiments.patch)
+ *
+ * @param string $accountId Account ID of the experiment to update.
+ * @param string $webPropertyId Web property ID of the experiment to update.
+ * @param string $profileId View (Profile) ID of the experiment to update.
+ * @param string $experimentId Experiment ID of the experiment to update.
+ * @param Google_Service_Analytics_Experiment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Experiment
+ */
+ public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_Experiment");
+ }
+ /**
+ * Update an existing experiment. (experiments.update)
+ *
+ * @param string $accountId Account ID of the experiment to update.
+ * @param string $webPropertyId Web property ID of the experiment to update.
+ * @param string $profileId View (Profile) ID of the experiment to update.
+ * @param string $experimentId Experiment ID of the experiment to update.
+ * @param Google_Service_Analytics_Experiment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Experiment
+ */
+ public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_Experiment");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementFilters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementFilters.php
new file mode 100644
index 00000000..cc0355bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementFilters.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "filters" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $filters = $analyticsService->filters;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementFilters extends Google_Service_Resource
+{
+ /**
+ * Delete a filter. (filters.delete)
+ *
+ * @param string $accountId Account ID to delete the filter for.
+ * @param string $filterId ID of the filter to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Filter
+ */
+ public function delete($accountId, $filterId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'filterId' => $filterId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Analytics_Filter");
+ }
+ /**
+ * Returns a filters to which the user has access. (filters.get)
+ *
+ * @param string $accountId Account ID to retrieve filters for.
+ * @param string $filterId Filter ID to retrieve filters for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Filter
+ */
+ public function get($accountId, $filterId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'filterId' => $filterId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_Filter");
+ }
+ /**
+ * Create a new filter. (filters.insert)
+ *
+ * @param string $accountId Account ID to create filter for.
+ * @param Google_Service_Analytics_Filter $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Filter
+ */
+ public function insert($accountId, Google_Service_Analytics_Filter $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_Filter");
+ }
+ /**
+ * Lists all filters for an account (filters.listManagementFilters)
+ *
+ * @param string $accountId Account ID to retrieve filters for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of filters to include in this
+ * response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_Filters
+ */
+ public function listManagementFilters($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Filters");
+ }
+ /**
+ * Updates an existing filter. This method supports patch semantics.
+ * (filters.patch)
+ *
+ * @param string $accountId Account ID to which the filter belongs.
+ * @param string $filterId ID of the filter to be updated.
+ * @param Google_Service_Analytics_Filter $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Filter
+ */
+ public function patch($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_Filter");
+ }
+ /**
+ * Updates an existing filter. (filters.update)
+ *
+ * @param string $accountId Account ID to which the filter belongs.
+ * @param string $filterId ID of the filter to be updated.
+ * @param Google_Service_Analytics_Filter $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Filter
+ */
+ public function update($accountId, $filterId, Google_Service_Analytics_Filter $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_Filter");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementGoals.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementGoals.php
new file mode 100644
index 00000000..0943b5c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementGoals.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "goals" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $goals = $analyticsService->goals;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementGoals extends Google_Service_Resource
+{
+ /**
+ * Gets a goal to which the user has access. (goals.get)
+ *
+ * @param string $accountId Account ID to retrieve the goal for.
+ * @param string $webPropertyId Web property ID to retrieve the goal for.
+ * @param string $profileId View (Profile) ID to retrieve the goal for.
+ * @param string $goalId Goal ID to retrieve the goal for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Goal
+ */
+ public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_Goal");
+ }
+ /**
+ * Create a new goal. (goals.insert)
+ *
+ * @param string $accountId Account ID to create the goal for.
+ * @param string $webPropertyId Web property ID to create the goal for.
+ * @param string $profileId View (Profile) ID to create the goal for.
+ * @param Google_Service_Analytics_Goal $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Goal
+ */
+ public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Goal $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_Goal");
+ }
+ /**
+ * Lists goals to which the user has access. (goals.listManagementGoals)
+ *
+ * @param string $accountId Account ID to retrieve goals for. Can either be a
+ * specific account ID or '~all', which refers to all the accounts that user has
+ * access to.
+ * @param string $webPropertyId Web property ID to retrieve goals for. Can
+ * either be a specific web property ID or '~all', which refers to all the web
+ * properties that user has access to.
+ * @param string $profileId View (Profile) ID to retrieve goals for. Can either
+ * be a specific view (profile) ID or '~all', which refers to all the views
+ * (profiles) that user has access to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of goals to include in this
+ * response.
+ * @opt_param int start-index An index of the first goal to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_Goals
+ */
+ public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Goals");
+ }
+ /**
+ * Updates an existing goal. This method supports patch semantics. (goals.patch)
+ *
+ * @param string $accountId Account ID to update the goal.
+ * @param string $webPropertyId Web property ID to update the goal.
+ * @param string $profileId View (Profile) ID to update the goal.
+ * @param string $goalId Index of the goal to be updated.
+ * @param Google_Service_Analytics_Goal $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Goal
+ */
+ public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_Goal");
+ }
+ /**
+ * Updates an existing goal. (goals.update)
+ *
+ * @param string $accountId Account ID to update the goal.
+ * @param string $webPropertyId Web property ID to update the goal.
+ * @param string $profileId View (Profile) ID to update the goal.
+ * @param string $goalId Index of the goal to be updated.
+ * @param Google_Service_Analytics_Goal $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Goal
+ */
+ public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_Goal");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileFilterLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileFilterLinks.php
new file mode 100644
index 00000000..acb6f7e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileFilterLinks.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "profileFilterLinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $profileFilterLinks = $analyticsService->profileFilterLinks;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementProfileFilterLinks extends Google_Service_Resource
+{
+ /**
+ * Delete a profile filter link. (profileFilterLinks.delete)
+ *
+ * @param string $accountId Account ID to which the profile filter link belongs.
+ * @param string $webPropertyId Web property Id to which the profile filter link
+ * belongs.
+ * @param string $profileId Profile ID to which the filter link belongs.
+ * @param string $linkId ID of the profile filter link to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns a single profile filter link. (profileFilterLinks.get)
+ *
+ * @param string $accountId Account ID to retrieve profile filter link for.
+ * @param string $webPropertyId Web property Id to retrieve profile filter link
+ * for.
+ * @param string $profileId Profile ID to retrieve filter link for.
+ * @param string $linkId ID of the profile filter link.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_ProfileFilterLink
+ */
+ public function get($accountId, $webPropertyId, $profileId, $linkId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_ProfileFilterLink");
+ }
+ /**
+ * Create a new profile filter link. (profileFilterLinks.insert)
+ *
+ * @param string $accountId Account ID to create profile filter link for.
+ * @param string $webPropertyId Web property Id to create profile filter link
+ * for.
+ * @param string $profileId Profile ID to create filter link for.
+ * @param Google_Service_Analytics_ProfileFilterLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_ProfileFilterLink
+ */
+ public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_ProfileFilterLink");
+ }
+ /**
+ * Lists all profile filter links for a profile.
+ * (profileFilterLinks.listManagementProfileFilterLinks)
+ *
+ * @param string $accountId Account ID to retrieve profile filter links for.
+ * @param string $webPropertyId Web property Id for profile filter links for.
+ * Can either be a specific web property ID or '~all', which refers to all the
+ * web properties that user has access to.
+ * @param string $profileId Profile ID to retrieve filter links for. Can either
+ * be a specific profile ID or '~all', which refers to all the profiles that
+ * user has access to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of profile filter links to
+ * include in this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_ProfileFilterLinks
+ */
+ public function listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_ProfileFilterLinks");
+ }
+ /**
+ * Update an existing profile filter link. This method supports patch semantics.
+ * (profileFilterLinks.patch)
+ *
+ * @param string $accountId Account ID to which profile filter link belongs.
+ * @param string $webPropertyId Web property Id to which profile filter link
+ * belongs
+ * @param string $profileId Profile ID to which filter link belongs
+ * @param string $linkId ID of the profile filter link to be updated.
+ * @param Google_Service_Analytics_ProfileFilterLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_ProfileFilterLink
+ */
+ public function patch($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_ProfileFilterLink");
+ }
+ /**
+ * Update an existing profile filter link. (profileFilterLinks.update)
+ *
+ * @param string $accountId Account ID to which profile filter link belongs.
+ * @param string $webPropertyId Web property Id to which profile filter link
+ * belongs
+ * @param string $profileId Profile ID to which filter link belongs
+ * @param string $linkId ID of the profile filter link to be updated.
+ * @param Google_Service_Analytics_ProfileFilterLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_ProfileFilterLink
+ */
+ public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_ProfileFilterLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_ProfileFilterLink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileUserLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileUserLinks.php
new file mode 100644
index 00000000..97d6a097
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfileUserLinks.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "profileUserLinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $profileUserLinks = $analyticsService->profileUserLinks;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementProfileUserLinks extends Google_Service_Resource
+{
+ /**
+ * Removes a user from the given view (profile). (profileUserLinks.delete)
+ *
+ * @param string $accountId Account ID to delete the user link for.
+ * @param string $webPropertyId Web Property ID to delete the user link for.
+ * @param string $profileId View (Profile) ID to delete the user link for.
+ * @param string $linkId Link ID to delete the user link for.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a new user to the given view (profile). (profileUserLinks.insert)
+ *
+ * @param string $accountId Account ID to create the user link for.
+ * @param string $webPropertyId Web Property ID to create the user link for.
+ * @param string $profileId View (Profile) ID to create the user link for.
+ * @param Google_Service_Analytics_EntityUserLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityUserLink
+ */
+ public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
+ }
+ /**
+ * Lists profile-user links for a given view (profile).
+ * (profileUserLinks.listManagementProfileUserLinks)
+ *
+ * @param string $accountId Account ID which the given view (profile) belongs
+ * to.
+ * @param string $webPropertyId Web Property ID which the given view (profile)
+ * belongs to. Can either be a specific web property ID or '~all', which refers
+ * to all the web properties that user has access to.
+ * @param string $profileId View (Profile) ID to retrieve the profile-user links
+ * for. Can either be a specific profile ID or '~all', which refers to all the
+ * profiles that user has access to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of profile-user links to
+ * include in this response.
+ * @opt_param int start-index An index of the first profile-user link to
+ * retrieve. Use this parameter as a pagination mechanism along with the max-
+ * results parameter.
+ * @return Google_Service_Analytics_EntityUserLinks
+ */
+ public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
+ }
+ /**
+ * Updates permissions for an existing user on the given view (profile).
+ * (profileUserLinks.update)
+ *
+ * @param string $accountId Account ID to update the user link for.
+ * @param string $webPropertyId Web Property ID to update the user link for.
+ * @param string $profileId View (Profile ID) to update the user link for.
+ * @param string $linkId Link ID to update the user link for.
+ * @param Google_Service_Analytics_EntityUserLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityUserLink
+ */
+ public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfiles.php
new file mode 100644
index 00000000..a72f0bcd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementProfiles.php
@@ -0,0 +1,135 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "profiles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $profiles = $analyticsService->profiles;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementProfiles extends Google_Service_Resource
+{
+ /**
+ * Deletes a view (profile). (profiles.delete)
+ *
+ * @param string $accountId Account ID to delete the view (profile) for.
+ * @param string $webPropertyId Web property ID to delete the view (profile)
+ * for.
+ * @param string $profileId ID of the view (profile) to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $profileId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a view (profile) to which the user has access. (profiles.get)
+ *
+ * @param string $accountId Account ID to retrieve the view (profile) for.
+ * @param string $webPropertyId Web property ID to retrieve the view (profile)
+ * for.
+ * @param string $profileId View (Profile) ID to retrieve the view (profile)
+ * for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Profile
+ */
+ public function get($accountId, $webPropertyId, $profileId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_Profile");
+ }
+ /**
+ * Create a new view (profile). (profiles.insert)
+ *
+ * @param string $accountId Account ID to create the view (profile) for.
+ * @param string $webPropertyId Web property ID to create the view (profile)
+ * for.
+ * @param Google_Service_Analytics_Profile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Profile
+ */
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_Profile $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_Profile");
+ }
+ /**
+ * Lists views (profiles) to which the user has access.
+ * (profiles.listManagementProfiles)
+ *
+ * @param string $accountId Account ID for the view (profiles) to retrieve. Can
+ * either be a specific account ID or '~all', which refers to all the accounts
+ * to which the user has access.
+ * @param string $webPropertyId Web property ID for the views (profiles) to
+ * retrieve. Can either be a specific web property ID or '~all', which refers to
+ * all the web properties to which the user has access.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of views (profiles) to include
+ * in this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_Profiles
+ */
+ public function listManagementProfiles($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Profiles");
+ }
+ /**
+ * Updates an existing view (profile). This method supports patch semantics.
+ * (profiles.patch)
+ *
+ * @param string $accountId Account ID to which the view (profile) belongs
+ * @param string $webPropertyId Web property ID to which the view (profile)
+ * belongs
+ * @param string $profileId ID of the view (profile) to be updated.
+ * @param Google_Service_Analytics_Profile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Profile
+ */
+ public function patch($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_Profile");
+ }
+ /**
+ * Updates an existing view (profile). (profiles.update)
+ *
+ * @param string $accountId Account ID to which the view (profile) belongs
+ * @param string $webPropertyId Web property ID to which the view (profile)
+ * belongs
+ * @param string $profileId ID of the view (profile) to be updated.
+ * @param Google_Service_Analytics_Profile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Profile
+ */
+ public function update($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_Profile");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementRemarketingAudience.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementRemarketingAudience.php
new file mode 100644
index 00000000..ad23bb92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementRemarketingAudience.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "remarketingAudience" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $remarketingAudience = $analyticsService->remarketingAudience;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementRemarketingAudience extends Google_Service_Resource
+{
+ /**
+ * Gets a remarketing audience to which the user has access.
+ * (remarketingAudience.get)
+ *
+ * @param string $accountId The account ID of the remarketing audience to
+ * retrieve.
+ * @param string $webPropertyId The web property ID of the remarketing audience
+ * to retrieve.
+ * @param string $remarketingAudienceId The ID of the remarketing audience to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_RemarketingAudience
+ */
+ public function get($accountId, $webPropertyId, $remarketingAudienceId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_RemarketingAudience");
+ }
+ /**
+ * Creates a new remarketing audience. (remarketingAudience.insert)
+ *
+ * @param string $accountId The account ID for which to create the remarketing
+ * audience.
+ * @param string $webPropertyId Web property ID for which to create the
+ * remarketing audience.
+ * @param Google_Service_Analytics_RemarketingAudience $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_RemarketingAudience
+ */
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_RemarketingAudience $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_RemarketingAudience");
+ }
+ /**
+ * Lists remarketing audiences to which the user has access.
+ * (remarketingAudience.listManagementRemarketingAudience)
+ *
+ * @param string $accountId The account ID of the remarketing audiences to
+ * retrieve.
+ * @param string $webPropertyId The web property ID of the remarketing audiences
+ * to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of remarketing audiences to
+ * include in this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @opt_param string type
+ * @return Google_Service_Analytics_RemarketingAudiences
+ */
+ public function listManagementRemarketingAudience($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_RemarketingAudiences");
+ }
+ /**
+ * Updates an existing remarketing audience. This method supports patch
+ * semantics. (remarketingAudience.patch)
+ *
+ * @param string $accountId The account ID of the remarketing audience to
+ * update.
+ * @param string $webPropertyId The web property ID of the remarketing audience
+ * to update.
+ * @param string $remarketingAudienceId The ID of the remarketing audience to
+ * update.
+ * @param Google_Service_Analytics_RemarketingAudience $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_RemarketingAudience
+ */
+ public function patch($accountId, $webPropertyId, $remarketingAudienceId, Google_Service_Analytics_RemarketingAudience $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_RemarketingAudience");
+ }
+ /**
+ * Updates an existing remarketing audience. (remarketingAudience.update)
+ *
+ * @param string $accountId The account ID of the remarketing audience to
+ * update.
+ * @param string $webPropertyId The web property ID of the remarketing audience
+ * to update.
+ * @param string $remarketingAudienceId The ID of the remarketing audience to
+ * update.
+ * @param Google_Service_Analytics_RemarketingAudience $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_RemarketingAudience
+ */
+ public function update($accountId, $webPropertyId, $remarketingAudienceId, Google_Service_Analytics_RemarketingAudience $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_RemarketingAudience");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementSegments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementSegments.php
new file mode 100644
index 00000000..b3925a82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementSegments.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "segments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $segments = $analyticsService->segments;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementSegments extends Google_Service_Resource
+{
+ /**
+ * Lists segments to which the user has access.
+ * (segments.listManagementSegments)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of segments to include in this
+ * response.
+ * @opt_param int start-index An index of the first segment to retrieve. Use
+ * this parameter as a pagination mechanism along with the max-results
+ * parameter.
+ * @return Google_Service_Analytics_Segments
+ */
+ public function listManagementSegments($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Segments");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUnsampledReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUnsampledReports.php
new file mode 100644
index 00000000..ce2bd67a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUnsampledReports.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "unsampledReports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $unsampledReports = $analyticsService->unsampledReports;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementUnsampledReports extends Google_Service_Resource
+{
+ /**
+ * Deletes an unsampled report. (unsampledReports.delete)
+ *
+ * @param string $accountId Account ID to delete the unsampled report for.
+ * @param string $webPropertyId Web property ID to delete the unsampled reports
+ * for.
+ * @param string $profileId View (Profile) ID to delete the unsampled report
+ * for.
+ * @param string $unsampledReportId ID of the unsampled report to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns a single unsampled report. (unsampledReports.get)
+ *
+ * @param string $accountId Account ID to retrieve unsampled report for.
+ * @param string $webPropertyId Web property ID to retrieve unsampled reports
+ * for.
+ * @param string $profileId View (Profile) ID to retrieve unsampled report for.
+ * @param string $unsampledReportId ID of the unsampled report to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_UnsampledReport
+ */
+ public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_UnsampledReport");
+ }
+ /**
+ * Create a new unsampled report. (unsampledReports.insert)
+ *
+ * @param string $accountId Account ID to create the unsampled report for.
+ * @param string $webPropertyId Web property ID to create the unsampled report
+ * for.
+ * @param string $profileId View (Profile) ID to create the unsampled report
+ * for.
+ * @param Google_Service_Analytics_UnsampledReport $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_UnsampledReport
+ */
+ public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_UnsampledReport $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_UnsampledReport");
+ }
+ /**
+ * Lists unsampled reports to which the user has access.
+ * (unsampledReports.listManagementUnsampledReports)
+ *
+ * @param string $accountId Account ID to retrieve unsampled reports for. Must
+ * be a specific account ID, ~all is not supported.
+ * @param string $webPropertyId Web property ID to retrieve unsampled reports
+ * for. Must be a specific web property ID, ~all is not supported.
+ * @param string $profileId View (Profile) ID to retrieve unsampled reports for.
+ * Must be a specific view (profile) ID, ~all is not supported.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of unsampled reports to include
+ * in this response.
+ * @opt_param int start-index An index of the first unsampled report to
+ * retrieve. Use this parameter as a pagination mechanism along with the max-
+ * results parameter.
+ * @return Google_Service_Analytics_UnsampledReports
+ */
+ public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_UnsampledReports");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUploads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUploads.php
new file mode 100644
index 00000000..b6b77011
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementUploads.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "uploads" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $uploads = $analyticsService->uploads;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementUploads extends Google_Service_Resource
+{
+ /**
+ * Delete data associated with a previous upload. (uploads.deleteUploadData)
+ *
+ * @param string $accountId Account Id for the uploads to be deleted.
+ * @param string $webPropertyId Web property Id for the uploads to be deleted.
+ * @param string $customDataSourceId Custom data source Id for the uploads to be
+ * deleted.
+ * @param Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteUploadData', array($params));
+ }
+ /**
+ * List uploads to which the user has access. (uploads.get)
+ *
+ * @param string $accountId Account Id for the upload to retrieve.
+ * @param string $webPropertyId Web property Id for the upload to retrieve.
+ * @param string $customDataSourceId Custom data source Id for upload to
+ * retrieve.
+ * @param string $uploadId Upload Id to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Upload
+ */
+ public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_Upload");
+ }
+ /**
+ * List uploads to which the user has access. (uploads.listManagementUploads)
+ *
+ * @param string $accountId Account Id for the uploads to retrieve.
+ * @param string $webPropertyId Web property Id for the uploads to retrieve.
+ * @param string $customDataSourceId Custom data source Id for uploads to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of uploads to include in this
+ * response.
+ * @opt_param int start-index A 1-based index of the first upload to retrieve.
+ * Use this parameter as a pagination mechanism along with the max-results
+ * parameter.
+ * @return Google_Service_Analytics_Uploads
+ */
+ public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Uploads");
+ }
+ /**
+ * Upload data for a custom data source. (uploads.uploadData)
+ *
+ * @param string $accountId Account Id associated with the upload.
+ * @param string $webPropertyId Web property UA-string associated with the
+ * upload.
+ * @param string $customDataSourceId Custom data source Id to which the data
+ * being uploaded belongs.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Upload
+ */
+ public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('uploadData', array($params), "Google_Service_Analytics_Upload");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebPropertyAdWordsLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebPropertyAdWordsLinks.php
new file mode 100644
index 00000000..12ce084c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebPropertyAdWordsLinks.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "webPropertyAdWordsLinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $webPropertyAdWordsLinks = $analyticsService->webPropertyAdWordsLinks;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementWebPropertyAdWordsLinks extends Google_Service_Resource
+{
+ /**
+ * Deletes a web property-AdWords link. (webPropertyAdWordsLinks.delete)
+ *
+ * @param string $accountId ID of the account which the given web property
+ * belongs to.
+ * @param string $webPropertyId Web property ID to delete the AdWords link for.
+ * @param string $webPropertyAdWordsLinkId Web property AdWords link ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns a web property-AdWords link to which the user has access.
+ * (webPropertyAdWordsLinks.get)
+ *
+ * @param string $accountId ID of the account which the given web property
+ * belongs to.
+ * @param string $webPropertyId Web property ID to retrieve the AdWords link
+ * for.
+ * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityAdWordsLink
+ */
+ public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_EntityAdWordsLink");
+ }
+ /**
+ * Creates a webProperty-AdWords link. (webPropertyAdWordsLinks.insert)
+ *
+ * @param string $accountId ID of the Google Analytics account to create the
+ * link for.
+ * @param string $webPropertyId Web property ID to create the link for.
+ * @param Google_Service_Analytics_EntityAdWordsLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityAdWordsLink
+ */
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_EntityAdWordsLink");
+ }
+ /**
+ * Lists webProperty-AdWords links for a given web property.
+ * (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks)
+ *
+ * @param string $accountId ID of the account which the given web property
+ * belongs to.
+ * @param string $webPropertyId Web property ID to retrieve the AdWords links
+ * for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of webProperty-AdWords links to
+ * include in this response.
+ * @opt_param int start-index An index of the first webProperty-AdWords link to
+ * retrieve. Use this parameter as a pagination mechanism along with the max-
+ * results parameter.
+ * @return Google_Service_Analytics_EntityAdWordsLinks
+ */
+ public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_EntityAdWordsLinks");
+ }
+ /**
+ * Updates an existing webProperty-AdWords link. This method supports patch
+ * semantics. (webPropertyAdWordsLinks.patch)
+ *
+ * @param string $accountId ID of the account which the given web property
+ * belongs to.
+ * @param string $webPropertyId Web property ID to retrieve the AdWords link
+ * for.
+ * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID.
+ * @param Google_Service_Analytics_EntityAdWordsLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityAdWordsLink
+ */
+ public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_EntityAdWordsLink");
+ }
+ /**
+ * Updates an existing webProperty-AdWords link.
+ * (webPropertyAdWordsLinks.update)
+ *
+ * @param string $accountId ID of the account which the given web property
+ * belongs to.
+ * @param string $webPropertyId Web property ID to retrieve the AdWords link
+ * for.
+ * @param string $webPropertyAdWordsLinkId Web property-AdWords link ID.
+ * @param Google_Service_Analytics_EntityAdWordsLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityAdWordsLink
+ */
+ public function update($accountId, $webPropertyId, $webPropertyAdWordsLinkId, Google_Service_Analytics_EntityAdWordsLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_EntityAdWordsLink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebproperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebproperties.php
new file mode 100644
index 00000000..272b0e66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebproperties.php
@@ -0,0 +1,110 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "webproperties" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $webproperties = $analyticsService->webproperties;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementWebproperties extends Google_Service_Resource
+{
+ /**
+ * Gets a web property to which the user has access. (webproperties.get)
+ *
+ * @param string $accountId Account ID to retrieve the web property for.
+ * @param string $webPropertyId ID to retrieve the web property for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Webproperty
+ */
+ public function get($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_Webproperty");
+ }
+ /**
+ * Create a new property if the account has fewer than 20 properties. Web
+ * properties are visible in the Google Analytics interface only if they have at
+ * least one profile. (webproperties.insert)
+ *
+ * @param string $accountId Account ID to create the web property for.
+ * @param Google_Service_Analytics_Webproperty $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Webproperty
+ */
+ public function insert($accountId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty");
+ }
+ /**
+ * Lists web properties to which the user has access.
+ * (webproperties.listManagementWebproperties)
+ *
+ * @param string $accountId Account ID to retrieve web properties for. Can
+ * either be a specific account ID or '~all', which refers to all the accounts
+ * that user has access to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of web properties to include in
+ * this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_Webproperties
+ */
+ public function listManagementWebproperties($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Webproperties");
+ }
+ /**
+ * Updates an existing web property. This method supports patch semantics.
+ * (webproperties.patch)
+ *
+ * @param string $accountId Account ID to which the web property belongs
+ * @param string $webPropertyId Web property ID
+ * @param Google_Service_Analytics_Webproperty $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Webproperty
+ */
+ public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty");
+ }
+ /**
+ * Updates an existing web property. (webproperties.update)
+ *
+ * @param string $accountId Account ID to which the web property belongs
+ * @param string $webPropertyId Web property ID
+ * @param Google_Service_Analytics_Webproperty $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Webproperty
+ */
+ public function update($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_Webproperty");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebpropertyUserLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebpropertyUserLinks.php
new file mode 100644
index 00000000..a0f42a88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/ManagementWebpropertyUserLinks.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "webpropertyUserLinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $webpropertyUserLinks = $analyticsService->webpropertyUserLinks;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_ManagementWebpropertyUserLinks extends Google_Service_Resource
+{
+ /**
+ * Removes a user from the given web property. (webpropertyUserLinks.delete)
+ *
+ * @param string $accountId Account ID to delete the user link for.
+ * @param string $webPropertyId Web Property ID to delete the user link for.
+ * @param string $linkId Link ID to delete the user link for.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $linkId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a new user to the given web property. (webpropertyUserLinks.insert)
+ *
+ * @param string $accountId Account ID to create the user link for.
+ * @param string $webPropertyId Web Property ID to create the user link for.
+ * @param Google_Service_Analytics_EntityUserLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityUserLink
+ */
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
+ }
+ /**
+ * Lists webProperty-user links for a given web property.
+ * (webpropertyUserLinks.listManagementWebpropertyUserLinks)
+ *
+ * @param string $accountId Account ID which the given web property belongs to.
+ * @param string $webPropertyId Web Property ID for the webProperty-user links
+ * to retrieve. Can either be a specific web property ID or '~all', which refers
+ * to all the web properties that user has access to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of webProperty-user Links to
+ * include in this response.
+ * @opt_param int start-index An index of the first webProperty-user link to
+ * retrieve. Use this parameter as a pagination mechanism along with the max-
+ * results parameter.
+ * @return Google_Service_Analytics_EntityUserLinks
+ */
+ public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
+ }
+ /**
+ * Updates permissions for an existing user on the given web property.
+ * (webpropertyUserLinks.update)
+ *
+ * @param string $accountId Account ID to update the account-user link for.
+ * @param string $webPropertyId Web property ID to update the account-user link
+ * for.
+ * @param string $linkId Link ID to update the account-user link for.
+ * @param Google_Service_Analytics_EntityUserLink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_EntityUserLink
+ */
+ public function update($accountId, $webPropertyId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Metadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Metadata.php
new file mode 100644
index 00000000..81421fe5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Metadata.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metadata" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $metadata = $analyticsService->metadata;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_Metadata extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/MetadataColumns.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/MetadataColumns.php
new file mode 100644
index 00000000..3574a0d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/MetadataColumns.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "columns" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $columns = $analyticsService->columns;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_MetadataColumns extends Google_Service_Resource
+{
+ /**
+ * Lists all columns for a report type (columns.listMetadataColumns)
+ *
+ * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga'
+ * corresponds to the Core Reporting API
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_Columns
+ */
+ public function listMetadataColumns($reportType, $optParams = array())
+ {
+ $params = array('reportType' => $reportType);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_Columns");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Provisioning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Provisioning.php
new file mode 100644
index 00000000..b3829ff8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Resource/Provisioning.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "provisioning" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $provisioning = $analyticsService->provisioning;
+ * </code>
+ */
+class Google_Service_Analytics_Resource_Provisioning extends Google_Service_Resource
+{
+ /**
+ * Creates an account ticket. (provisioning.createAccountTicket)
+ *
+ * @param Google_Service_Analytics_AccountTicket $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_AccountTicket
+ */
+ public function createAccountTicket(Google_Service_Analytics_AccountTicket $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createAccountTicket', array($params), "Google_Service_Analytics_AccountTicket");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segment.php
new file mode 100644
index 00000000..0e3caa2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segment.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Segment extends Google_Model
+{
+ public $created;
+ public $definition;
+ public $id;
+ public $kind;
+ public $name;
+ public $segmentId;
+ public $selfLink;
+ public $type;
+ public $updated;
+
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDefinition($definition)
+ {
+ $this->definition = $definition;
+ }
+ public function getDefinition()
+ {
+ return $this->definition;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSegmentId($segmentId)
+ {
+ $this->segmentId = $segmentId;
+ }
+ public function getSegmentId()
+ {
+ return $this->segmentId;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segments.php
new file mode 100644
index 00000000..ec874e65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Segments.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Segments extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Segment';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReport.php
new file mode 100644
index 00000000..a87bfe10
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReport.php
@@ -0,0 +1,198 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_UnsampledReport extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "endDate" => "end-date",
+ "startDate" => "start-date",
+ );
+ public $accountId;
+ protected $cloudStorageDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails';
+ protected $cloudStorageDownloadDetailsDataType = '';
+ public $created;
+ public $dimensions;
+ public $downloadType;
+ protected $driveDownloadDetailsType = 'Google_Service_Analytics_UnsampledReportDriveDownloadDetails';
+ protected $driveDownloadDetailsDataType = '';
+ public $endDate;
+ public $filters;
+ public $id;
+ public $kind;
+ public $metrics;
+ public $profileId;
+ public $segment;
+ public $selfLink;
+ public $startDate;
+ public $status;
+ public $title;
+ public $updated;
+ public $webPropertyId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCloudStorageDownloadDetails(Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails $cloudStorageDownloadDetails)
+ {
+ $this->cloudStorageDownloadDetails = $cloudStorageDownloadDetails;
+ }
+ public function getCloudStorageDownloadDetails()
+ {
+ return $this->cloudStorageDownloadDetails;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setDownloadType($downloadType)
+ {
+ $this->downloadType = $downloadType;
+ }
+ public function getDownloadType()
+ {
+ return $this->downloadType;
+ }
+ public function setDriveDownloadDetails(Google_Service_Analytics_UnsampledReportDriveDownloadDetails $driveDownloadDetails)
+ {
+ $this->driveDownloadDetails = $driveDownloadDetails;
+ }
+ public function getDriveDownloadDetails()
+ {
+ return $this->driveDownloadDetails;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setSegment($segment)
+ {
+ $this->segment = $segment;
+ }
+ public function getSegment()
+ {
+ return $this->segment;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportCloudStorageDownloadDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportCloudStorageDownloadDetails.php
new file mode 100644
index 00000000..48a7533f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportCloudStorageDownloadDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails extends Google_Model
+{
+ public $bucketId;
+ public $objectId;
+
+ public function setBucketId($bucketId)
+ {
+ $this->bucketId = $bucketId;
+ }
+ public function getBucketId()
+ {
+ return $this->bucketId;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportDriveDownloadDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportDriveDownloadDetails.php
new file mode 100644
index 00000000..805cec88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReportDriveDownloadDetails.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_UnsampledReportDriveDownloadDetails extends Google_Model
+{
+ public $documentId;
+
+ public function setDocumentId($documentId)
+ {
+ $this->documentId = $documentId;
+ }
+ public function getDocumentId()
+ {
+ return $this->documentId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReports.php
new file mode 100644
index 00000000..dda579e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UnsampledReports.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_UnsampledReports extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_UnsampledReport';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Upload.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Upload.php
new file mode 100644
index 00000000..0da4f5b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Upload.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Upload extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ public $accountId;
+ public $customDataSourceId;
+ public $errors;
+ public $id;
+ public $kind;
+ public $status;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCustomDataSourceId($customDataSourceId)
+ {
+ $this->customDataSourceId = $customDataSourceId;
+ }
+ public function getCustomDataSourceId()
+ {
+ return $this->customDataSourceId;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Uploads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Uploads.php
new file mode 100644
index 00000000..4324bad9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Uploads.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Uploads extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Upload';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UserRef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UserRef.php
new file mode 100644
index 00000000..649bd1d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/UserRef.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_UserRef extends Google_Model
+{
+ public $email;
+ public $id;
+ public $kind;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertyRef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertyRef.php
new file mode 100644
index 00000000..2c9ce1d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertyRef.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_WebPropertyRef extends Google_Model
+{
+ public $accountId;
+ public $href;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $name;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertySummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertySummary.php
new file mode 100644
index 00000000..63ae34bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebPropertySummary.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_WebPropertySummary extends Google_Collection
+{
+ protected $collection_key = 'profiles';
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $level;
+ public $name;
+ protected $profilesType = 'Google_Service_Analytics_ProfileSummary';
+ protected $profilesDataType = 'array';
+ public $starred;
+ public $websiteUrl;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProfiles($profiles)
+ {
+ $this->profiles = $profiles;
+ }
+ public function getProfiles()
+ {
+ return $this->profiles;
+ }
+ public function setStarred($starred)
+ {
+ $this->starred = $starred;
+ }
+ public function getStarred()
+ {
+ return $this->starred;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperties.php
new file mode 100644
index 00000000..fcdecd39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperties.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Webproperties extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Analytics_Webproperty';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperty.php
new file mode 100644
index 00000000..5d2e3629
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/Webproperty.php
@@ -0,0 +1,177 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_Webproperty extends Google_Model
+{
+ public $accountId;
+ protected $childLinkType = 'Google_Service_Analytics_WebpropertyChildLink';
+ protected $childLinkDataType = '';
+ public $created;
+ public $defaultProfileId;
+ public $id;
+ public $industryVertical;
+ public $internalWebPropertyId;
+ public $kind;
+ public $level;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_WebpropertyParentLink';
+ protected $parentLinkDataType = '';
+ protected $permissionsType = 'Google_Service_Analytics_WebpropertyPermissions';
+ protected $permissionsDataType = '';
+ public $profileCount;
+ public $selfLink;
+ public $starred;
+ public $updated;
+ public $websiteUrl;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setChildLink(Google_Service_Analytics_WebpropertyChildLink $childLink)
+ {
+ $this->childLink = $childLink;
+ }
+ public function getChildLink()
+ {
+ return $this->childLink;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDefaultProfileId($defaultProfileId)
+ {
+ $this->defaultProfileId = $defaultProfileId;
+ }
+ public function getDefaultProfileId()
+ {
+ return $this->defaultProfileId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIndustryVertical($industryVertical)
+ {
+ $this->industryVertical = $industryVertical;
+ }
+ public function getIndustryVertical()
+ {
+ return $this->industryVertical;
+ }
+ public function setInternalWebPropertyId($internalWebPropertyId)
+ {
+ $this->internalWebPropertyId = $internalWebPropertyId;
+ }
+ public function getInternalWebPropertyId()
+ {
+ return $this->internalWebPropertyId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_WebpropertyParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setPermissions(Google_Service_Analytics_WebpropertyPermissions $permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+ public function setProfileCount($profileCount)
+ {
+ $this->profileCount = $profileCount;
+ }
+ public function getProfileCount()
+ {
+ return $this->profileCount;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStarred($starred)
+ {
+ $this->starred = $starred;
+ }
+ public function getStarred()
+ {
+ return $this->starred;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyChildLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyChildLink.php
new file mode 100644
index 00000000..f61b2cf0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyChildLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_WebpropertyChildLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyParentLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyParentLink.php
new file mode 100644
index 00000000..2df9c8c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyParentLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_WebpropertyParentLink extends Google_Model
+{
+ public $href;
+ public $type;
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyPermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyPermissions.php
new file mode 100644
index 00000000..5305e8b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Analytics/WebpropertyPermissions.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection
+{
+ protected $collection_key = 'effective';
+ public $effective;
+
+ public function setEffective($effective)
+ {
+ $this->effective = $effective;
+ }
+ public function getEffective()
+ {
+ return $this->effective;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting.php
new file mode 100644
index 00000000..789a2b2c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AnalyticsReporting (v4).
+ *
+ * <p>
+ * Accesses Analytics report data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/analytics/devguides/reporting/core/v4/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AnalyticsReporting extends Google_Service
+{
+ /** View and manage your Google Analytics data. */
+ const ANALYTICS =
+ "https://www.googleapis.com/auth/analytics";
+ /** View your Google Analytics data. */
+ const ANALYTICS_READONLY =
+ "https://www.googleapis.com/auth/analytics.readonly";
+
+ public $reports;
+
+ /**
+ * Constructs the internal representation of the AnalyticsReporting service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://analyticsreporting.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v4';
+ $this->serviceName = 'analyticsreporting';
+
+ $this->reports = new Google_Service_AnalyticsReporting_Resource_Reports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'batchGet' => array(
+ 'path' => 'v4/reports:batchGet',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Cohort.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Cohort.php
new file mode 100644
index 00000000..9ad3b8f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Cohort.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_Cohort extends Google_Model
+{
+ protected $dateRangeType = 'Google_Service_AnalyticsReporting_DateRange';
+ protected $dateRangeDataType = '';
+ public $name;
+ public $type;
+
+ public function setDateRange(Google_Service_AnalyticsReporting_DateRange $dateRange)
+ {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange()
+ {
+ return $this->dateRange;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/CohortGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/CohortGroup.php
new file mode 100644
index 00000000..a173e839
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/CohortGroup.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_CohortGroup extends Google_Collection
+{
+ protected $collection_key = 'cohorts';
+ protected $cohortsType = 'Google_Service_AnalyticsReporting_Cohort';
+ protected $cohortsDataType = 'array';
+ public $lifetimeValue;
+
+ public function setCohorts($cohorts)
+ {
+ $this->cohorts = $cohorts;
+ }
+ public function getCohorts()
+ {
+ return $this->cohorts;
+ }
+ public function setLifetimeValue($lifetimeValue)
+ {
+ $this->lifetimeValue = $lifetimeValue;
+ }
+ public function getLifetimeValue()
+ {
+ return $this->lifetimeValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ColumnHeader.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ColumnHeader.php
new file mode 100644
index 00000000..0f6ee458
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ColumnHeader.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_ColumnHeader extends Google_Collection
+{
+ protected $collection_key = 'dimensions';
+ public $dimensions;
+ protected $metricHeaderType = 'Google_Service_AnalyticsReporting_MetricHeader';
+ protected $metricHeaderDataType = '';
+
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setMetricHeader(Google_Service_AnalyticsReporting_MetricHeader $metricHeader)
+ {
+ $this->metricHeader = $metricHeader;
+ }
+ public function getMetricHeader()
+ {
+ return $this->metricHeader;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRange.php
new file mode 100644
index 00000000..9b9152b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRange.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_DateRange extends Google_Model
+{
+ public $endDate;
+ public $startDate;
+
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRangeValues.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRangeValues.php
new file mode 100644
index 00000000..82d52bc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DateRangeValues.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_DateRangeValues extends Google_Collection
+{
+ protected $collection_key = 'values';
+ protected $pivotValueRegionsType = 'Google_Service_AnalyticsReporting_PivotValueRegion';
+ protected $pivotValueRegionsDataType = 'array';
+ public $values;
+
+ public function setPivotValueRegions($pivotValueRegions)
+ {
+ $this->pivotValueRegions = $pivotValueRegions;
+ }
+ public function getPivotValueRegions()
+ {
+ return $this->pivotValueRegions;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Dimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Dimension.php
new file mode 100644
index 00000000..8ed06791
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Dimension.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_Dimension extends Google_Collection
+{
+ protected $collection_key = 'histogramBuckets';
+ public $histogramBuckets;
+ public $name;
+
+ public function setHistogramBuckets($histogramBuckets)
+ {
+ $this->histogramBuckets = $histogramBuckets;
+ }
+ public function getHistogramBuckets()
+ {
+ return $this->histogramBuckets;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilter.php
new file mode 100644
index 00000000..eb512f11
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilter.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_DimensionFilter extends Google_Collection
+{
+ protected $collection_key = 'expressions';
+ public $caseSensitive;
+ public $dimensionName;
+ public $expressions;
+ public $not;
+ public $operator;
+
+ public function setCaseSensitive($caseSensitive)
+ {
+ $this->caseSensitive = $caseSensitive;
+ }
+ public function getCaseSensitive()
+ {
+ return $this->caseSensitive;
+ }
+ public function setDimensionName($dimensionName)
+ {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName()
+ {
+ return $this->dimensionName;
+ }
+ public function setExpressions($expressions)
+ {
+ $this->expressions = $expressions;
+ }
+ public function getExpressions()
+ {
+ return $this->expressions;
+ }
+ public function setNot($not)
+ {
+ $this->not = $not;
+ }
+ public function getNot()
+ {
+ return $this->not;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilterClause.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilterClause.php
new file mode 100644
index 00000000..317f0ee8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DimensionFilterClause.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_DimensionFilterClause extends Google_Collection
+{
+ protected $collection_key = 'filters';
+ protected $filtersType = 'Google_Service_AnalyticsReporting_DimensionFilter';
+ protected $filtersDataType = 'array';
+ public $operator;
+
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DynamicSegment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DynamicSegment.php
new file mode 100644
index 00000000..7d41be7d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/DynamicSegment.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_DynamicSegment extends Google_Model
+{
+ public $name;
+ protected $sessionSegmentType = 'Google_Service_AnalyticsReporting_SegmentDefinition';
+ protected $sessionSegmentDataType = '';
+ protected $userSegmentType = 'Google_Service_AnalyticsReporting_SegmentDefinition';
+ protected $userSegmentDataType = '';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSessionSegment(Google_Service_AnalyticsReporting_SegmentDefinition $sessionSegment)
+ {
+ $this->sessionSegment = $sessionSegment;
+ }
+ public function getSessionSegment()
+ {
+ return $this->sessionSegment;
+ }
+ public function setUserSegment(Google_Service_AnalyticsReporting_SegmentDefinition $userSegment)
+ {
+ $this->userSegment = $userSegment;
+ }
+ public function getUserSegment()
+ {
+ return $this->userSegment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsRequest.php
new file mode 100644
index 00000000..e1a0e9bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_GetReportsRequest extends Google_Collection
+{
+ protected $collection_key = 'reportRequests';
+ protected $reportRequestsType = 'Google_Service_AnalyticsReporting_ReportRequest';
+ protected $reportRequestsDataType = 'array';
+
+ public function setReportRequests($reportRequests)
+ {
+ $this->reportRequests = $reportRequests;
+ }
+ public function getReportRequests()
+ {
+ return $this->reportRequests;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsResponse.php
new file mode 100644
index 00000000..15ff4976
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/GetReportsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_GetReportsResponse extends Google_Collection
+{
+ protected $collection_key = 'reports';
+ protected $reportsType = 'Google_Service_AnalyticsReporting_Report';
+ protected $reportsDataType = 'array';
+
+ public function setReports($reports)
+ {
+ $this->reports = $reports;
+ }
+ public function getReports()
+ {
+ return $this->reports;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Metric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Metric.php
new file mode 100644
index 00000000..6dc69e98
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Metric.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_Metric extends Google_Model
+{
+ public $alias;
+ public $expression;
+ public $formattingType;
+
+ public function setAlias($alias)
+ {
+ $this->alias = $alias;
+ }
+ public function getAlias()
+ {
+ return $this->alias;
+ }
+ public function setExpression($expression)
+ {
+ $this->expression = $expression;
+ }
+ public function getExpression()
+ {
+ return $this->expression;
+ }
+ public function setFormattingType($formattingType)
+ {
+ $this->formattingType = $formattingType;
+ }
+ public function getFormattingType()
+ {
+ return $this->formattingType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilter.php
new file mode 100644
index 00000000..713c50c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilter.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_MetricFilter extends Google_Model
+{
+ public $comparisonValue;
+ public $metricName;
+ public $not;
+ public $operator;
+
+ public function setComparisonValue($comparisonValue)
+ {
+ $this->comparisonValue = $comparisonValue;
+ }
+ public function getComparisonValue()
+ {
+ return $this->comparisonValue;
+ }
+ public function setMetricName($metricName)
+ {
+ $this->metricName = $metricName;
+ }
+ public function getMetricName()
+ {
+ return $this->metricName;
+ }
+ public function setNot($not)
+ {
+ $this->not = $not;
+ }
+ public function getNot()
+ {
+ return $this->not;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilterClause.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilterClause.php
new file mode 100644
index 00000000..ebdbad5b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricFilterClause.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_MetricFilterClause extends Google_Collection
+{
+ protected $collection_key = 'filters';
+ protected $filtersType = 'Google_Service_AnalyticsReporting_MetricFilter';
+ protected $filtersDataType = 'array';
+ public $operator;
+
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeader.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeader.php
new file mode 100644
index 00000000..04a84b96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeader.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_MetricHeader extends Google_Collection
+{
+ protected $collection_key = 'pivotHeaders';
+ protected $metricHeaderEntriesType = 'Google_Service_AnalyticsReporting_MetricHeaderEntry';
+ protected $metricHeaderEntriesDataType = 'array';
+ protected $pivotHeadersType = 'Google_Service_AnalyticsReporting_PivotHeader';
+ protected $pivotHeadersDataType = 'array';
+
+ public function setMetricHeaderEntries($metricHeaderEntries)
+ {
+ $this->metricHeaderEntries = $metricHeaderEntries;
+ }
+ public function getMetricHeaderEntries()
+ {
+ return $this->metricHeaderEntries;
+ }
+ public function setPivotHeaders($pivotHeaders)
+ {
+ $this->pivotHeaders = $pivotHeaders;
+ }
+ public function getPivotHeaders()
+ {
+ return $this->pivotHeaders;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeaderEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeaderEntry.php
new file mode 100644
index 00000000..62ddbcef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/MetricHeaderEntry.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_MetricHeaderEntry extends Google_Model
+{
+ public $name;
+ public $type;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrFiltersForSegment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrFiltersForSegment.php
new file mode 100644
index 00000000..a4bc7a61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrFiltersForSegment.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_OrFiltersForSegment extends Google_Collection
+{
+ protected $collection_key = 'segmentFilterClauses';
+ protected $segmentFilterClausesType = 'Google_Service_AnalyticsReporting_SegmentFilterClause';
+ protected $segmentFilterClausesDataType = 'array';
+
+ public function setSegmentFilterClauses($segmentFilterClauses)
+ {
+ $this->segmentFilterClauses = $segmentFilterClauses;
+ }
+ public function getSegmentFilterClauses()
+ {
+ return $this->segmentFilterClauses;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrderBy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrderBy.php
new file mode 100644
index 00000000..0793be24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/OrderBy.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_OrderBy extends Google_Model
+{
+ public $fieldName;
+ public $orderType;
+ public $sortOrder;
+
+ public function setFieldName($fieldName)
+ {
+ $this->fieldName = $fieldName;
+ }
+ public function getFieldName()
+ {
+ return $this->fieldName;
+ }
+ public function setOrderType($orderType)
+ {
+ $this->orderType = $orderType;
+ }
+ public function getOrderType()
+ {
+ return $this->orderType;
+ }
+ public function setSortOrder($sortOrder)
+ {
+ $this->sortOrder = $sortOrder;
+ }
+ public function getSortOrder()
+ {
+ return $this->sortOrder;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Pivot.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Pivot.php
new file mode 100644
index 00000000..cb412463
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Pivot.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_Pivot extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ protected $dimensionFilterClausesType = 'Google_Service_AnalyticsReporting_DimensionFilterClause';
+ protected $dimensionFilterClausesDataType = 'array';
+ protected $dimensionsType = 'Google_Service_AnalyticsReporting_Dimension';
+ protected $dimensionsDataType = 'array';
+ public $maxGroupCount;
+ protected $metricsType = 'Google_Service_AnalyticsReporting_Metric';
+ protected $metricsDataType = 'array';
+ public $startGroup;
+
+ public function setDimensionFilterClauses($dimensionFilterClauses)
+ {
+ $this->dimensionFilterClauses = $dimensionFilterClauses;
+ }
+ public function getDimensionFilterClauses()
+ {
+ return $this->dimensionFilterClauses;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setMaxGroupCount($maxGroupCount)
+ {
+ $this->maxGroupCount = $maxGroupCount;
+ }
+ public function getMaxGroupCount()
+ {
+ return $this->maxGroupCount;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setStartGroup($startGroup)
+ {
+ $this->startGroup = $startGroup;
+ }
+ public function getStartGroup()
+ {
+ return $this->startGroup;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeader.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeader.php
new file mode 100644
index 00000000..4f3b1c01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeader.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_PivotHeader extends Google_Collection
+{
+ protected $collection_key = 'pivotHeaderEntries';
+ protected $pivotHeaderEntriesType = 'Google_Service_AnalyticsReporting_PivotHeaderEntry';
+ protected $pivotHeaderEntriesDataType = 'array';
+ public $totalPivotGroupsCount;
+
+ public function setPivotHeaderEntries($pivotHeaderEntries)
+ {
+ $this->pivotHeaderEntries = $pivotHeaderEntries;
+ }
+ public function getPivotHeaderEntries()
+ {
+ return $this->pivotHeaderEntries;
+ }
+ public function setTotalPivotGroupsCount($totalPivotGroupsCount)
+ {
+ $this->totalPivotGroupsCount = $totalPivotGroupsCount;
+ }
+ public function getTotalPivotGroupsCount()
+ {
+ return $this->totalPivotGroupsCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeaderEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeaderEntry.php
new file mode 100644
index 00000000..2b74aefd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotHeaderEntry.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_PivotHeaderEntry extends Google_Collection
+{
+ protected $collection_key = 'dimensionValues';
+ public $dimensionNames;
+ public $dimensionValues;
+ protected $metricType = 'Google_Service_AnalyticsReporting_MetricHeaderEntry';
+ protected $metricDataType = '';
+
+ public function setDimensionNames($dimensionNames)
+ {
+ $this->dimensionNames = $dimensionNames;
+ }
+ public function getDimensionNames()
+ {
+ return $this->dimensionNames;
+ }
+ public function setDimensionValues($dimensionValues)
+ {
+ $this->dimensionValues = $dimensionValues;
+ }
+ public function getDimensionValues()
+ {
+ return $this->dimensionValues;
+ }
+ public function setMetric(Google_Service_AnalyticsReporting_MetricHeaderEntry $metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotValueRegion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotValueRegion.php
new file mode 100644
index 00000000..2cc4253f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/PivotValueRegion.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_PivotValueRegion extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $values;
+
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Report.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Report.php
new file mode 100644
index 00000000..4aca26b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Report.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_Report extends Google_Model
+{
+ protected $columnHeaderType = 'Google_Service_AnalyticsReporting_ColumnHeader';
+ protected $columnHeaderDataType = '';
+ protected $dataType = 'Google_Service_AnalyticsReporting_ReportData';
+ protected $dataDataType = '';
+ public $nextPageToken;
+
+ public function setColumnHeader(Google_Service_AnalyticsReporting_ColumnHeader $columnHeader)
+ {
+ $this->columnHeader = $columnHeader;
+ }
+ public function getColumnHeader()
+ {
+ return $this->columnHeader;
+ }
+ public function setData(Google_Service_AnalyticsReporting_ReportData $data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportData.php
new file mode 100644
index 00000000..81f3db2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportData.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_ReportData extends Google_Collection
+{
+ protected $collection_key = 'totals';
+ public $dataLastRefreshed;
+ public $isDataGolden;
+ protected $maximumsType = 'Google_Service_AnalyticsReporting_DateRangeValues';
+ protected $maximumsDataType = 'array';
+ protected $minimumsType = 'Google_Service_AnalyticsReporting_DateRangeValues';
+ protected $minimumsDataType = 'array';
+ public $rowCount;
+ protected $rowsType = 'Google_Service_AnalyticsReporting_ReportRow';
+ protected $rowsDataType = 'array';
+ public $samplesReadCounts;
+ public $samplingSpaceSizes;
+ protected $totalsType = 'Google_Service_AnalyticsReporting_DateRangeValues';
+ protected $totalsDataType = 'array';
+
+ public function setDataLastRefreshed($dataLastRefreshed)
+ {
+ $this->dataLastRefreshed = $dataLastRefreshed;
+ }
+ public function getDataLastRefreshed()
+ {
+ return $this->dataLastRefreshed;
+ }
+ public function setIsDataGolden($isDataGolden)
+ {
+ $this->isDataGolden = $isDataGolden;
+ }
+ public function getIsDataGolden()
+ {
+ return $this->isDataGolden;
+ }
+ public function setMaximums($maximums)
+ {
+ $this->maximums = $maximums;
+ }
+ public function getMaximums()
+ {
+ return $this->maximums;
+ }
+ public function setMinimums($minimums)
+ {
+ $this->minimums = $minimums;
+ }
+ public function getMinimums()
+ {
+ return $this->minimums;
+ }
+ public function setRowCount($rowCount)
+ {
+ $this->rowCount = $rowCount;
+ }
+ public function getRowCount()
+ {
+ return $this->rowCount;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSamplesReadCounts($samplesReadCounts)
+ {
+ $this->samplesReadCounts = $samplesReadCounts;
+ }
+ public function getSamplesReadCounts()
+ {
+ return $this->samplesReadCounts;
+ }
+ public function setSamplingSpaceSizes($samplingSpaceSizes)
+ {
+ $this->samplingSpaceSizes = $samplingSpaceSizes;
+ }
+ public function getSamplingSpaceSizes()
+ {
+ return $this->samplingSpaceSizes;
+ }
+ public function setTotals($totals)
+ {
+ $this->totals = $totals;
+ }
+ public function getTotals()
+ {
+ return $this->totals;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRequest.php
new file mode 100644
index 00000000..a5b7dcdf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRequest.php
@@ -0,0 +1,184 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_ReportRequest extends Google_Collection
+{
+ protected $collection_key = 'segments';
+ protected $cohortGroupType = 'Google_Service_AnalyticsReporting_CohortGroup';
+ protected $cohortGroupDataType = '';
+ protected $dateRangesType = 'Google_Service_AnalyticsReporting_DateRange';
+ protected $dateRangesDataType = 'array';
+ protected $dimensionFilterClausesType = 'Google_Service_AnalyticsReporting_DimensionFilterClause';
+ protected $dimensionFilterClausesDataType = 'array';
+ protected $dimensionsType = 'Google_Service_AnalyticsReporting_Dimension';
+ protected $dimensionsDataType = 'array';
+ public $filtersExpression;
+ public $hideTotals;
+ public $hideValueRanges;
+ public $includeEmptyRows;
+ protected $metricFilterClausesType = 'Google_Service_AnalyticsReporting_MetricFilterClause';
+ protected $metricFilterClausesDataType = 'array';
+ protected $metricsType = 'Google_Service_AnalyticsReporting_Metric';
+ protected $metricsDataType = 'array';
+ protected $orderBysType = 'Google_Service_AnalyticsReporting_OrderBy';
+ protected $orderBysDataType = 'array';
+ public $pageSize;
+ public $pageToken;
+ protected $pivotsType = 'Google_Service_AnalyticsReporting_Pivot';
+ protected $pivotsDataType = 'array';
+ public $samplingLevel;
+ protected $segmentsType = 'Google_Service_AnalyticsReporting_Segment';
+ protected $segmentsDataType = 'array';
+ public $viewId;
+
+ public function setCohortGroup(Google_Service_AnalyticsReporting_CohortGroup $cohortGroup)
+ {
+ $this->cohortGroup = $cohortGroup;
+ }
+ public function getCohortGroup()
+ {
+ return $this->cohortGroup;
+ }
+ public function setDateRanges($dateRanges)
+ {
+ $this->dateRanges = $dateRanges;
+ }
+ public function getDateRanges()
+ {
+ return $this->dateRanges;
+ }
+ public function setDimensionFilterClauses($dimensionFilterClauses)
+ {
+ $this->dimensionFilterClauses = $dimensionFilterClauses;
+ }
+ public function getDimensionFilterClauses()
+ {
+ return $this->dimensionFilterClauses;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setFiltersExpression($filtersExpression)
+ {
+ $this->filtersExpression = $filtersExpression;
+ }
+ public function getFiltersExpression()
+ {
+ return $this->filtersExpression;
+ }
+ public function setHideTotals($hideTotals)
+ {
+ $this->hideTotals = $hideTotals;
+ }
+ public function getHideTotals()
+ {
+ return $this->hideTotals;
+ }
+ public function setHideValueRanges($hideValueRanges)
+ {
+ $this->hideValueRanges = $hideValueRanges;
+ }
+ public function getHideValueRanges()
+ {
+ return $this->hideValueRanges;
+ }
+ public function setIncludeEmptyRows($includeEmptyRows)
+ {
+ $this->includeEmptyRows = $includeEmptyRows;
+ }
+ public function getIncludeEmptyRows()
+ {
+ return $this->includeEmptyRows;
+ }
+ public function setMetricFilterClauses($metricFilterClauses)
+ {
+ $this->metricFilterClauses = $metricFilterClauses;
+ }
+ public function getMetricFilterClauses()
+ {
+ return $this->metricFilterClauses;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setOrderBys($orderBys)
+ {
+ $this->orderBys = $orderBys;
+ }
+ public function getOrderBys()
+ {
+ return $this->orderBys;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setPivots($pivots)
+ {
+ $this->pivots = $pivots;
+ }
+ public function getPivots()
+ {
+ return $this->pivots;
+ }
+ public function setSamplingLevel($samplingLevel)
+ {
+ $this->samplingLevel = $samplingLevel;
+ }
+ public function getSamplingLevel()
+ {
+ return $this->samplingLevel;
+ }
+ public function setSegments($segments)
+ {
+ $this->segments = $segments;
+ }
+ public function getSegments()
+ {
+ return $this->segments;
+ }
+ public function setViewId($viewId)
+ {
+ $this->viewId = $viewId;
+ }
+ public function getViewId()
+ {
+ return $this->viewId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRow.php
new file mode 100644
index 00000000..ee7224fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/ReportRow.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_ReportRow extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ public $dimensions;
+ protected $metricsType = 'Google_Service_AnalyticsReporting_DateRangeValues';
+ protected $metricsDataType = 'array';
+
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Resource/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Resource/Reports.php
new file mode 100644
index 00000000..0fd6f6e3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Resource/Reports.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $analyticsreportingService = new Google_Service_AnalyticsReporting(...);
+ * $reports = $analyticsreportingService->reports;
+ * </code>
+ */
+class Google_Service_AnalyticsReporting_Resource_Reports extends Google_Service_Resource
+{
+ /**
+ * Returns the Analytics data. (reports.batchGet)
+ *
+ * @param Google_Service_AnalyticsReporting_GetReportsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AnalyticsReporting_GetReportsResponse
+ */
+ public function batchGet(Google_Service_AnalyticsReporting_GetReportsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchGet', array($params), "Google_Service_AnalyticsReporting_GetReportsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Segment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Segment.php
new file mode 100644
index 00000000..5c4eda89
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/Segment.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_Segment extends Google_Model
+{
+ protected $dynamicSegmentType = 'Google_Service_AnalyticsReporting_DynamicSegment';
+ protected $dynamicSegmentDataType = '';
+ public $segmentId;
+
+ public function setDynamicSegment(Google_Service_AnalyticsReporting_DynamicSegment $dynamicSegment)
+ {
+ $this->dynamicSegment = $dynamicSegment;
+ }
+ public function getDynamicSegment()
+ {
+ return $this->dynamicSegment;
+ }
+ public function setSegmentId($segmentId)
+ {
+ $this->segmentId = $segmentId;
+ }
+ public function getSegmentId()
+ {
+ return $this->segmentId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDefinition.php
new file mode 100644
index 00000000..fcd3d5b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDefinition.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SegmentDefinition extends Google_Collection
+{
+ protected $collection_key = 'segmentFilters';
+ protected $segmentFiltersType = 'Google_Service_AnalyticsReporting_SegmentFilter';
+ protected $segmentFiltersDataType = 'array';
+
+ public function setSegmentFilters($segmentFilters)
+ {
+ $this->segmentFilters = $segmentFilters;
+ }
+ public function getSegmentFilters()
+ {
+ return $this->segmentFilters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDimensionFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDimensionFilter.php
new file mode 100644
index 00000000..d6424e15
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentDimensionFilter.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SegmentDimensionFilter extends Google_Collection
+{
+ protected $collection_key = 'expressions';
+ public $caseSensitive;
+ public $dimensionName;
+ public $expressions;
+ public $maxComparisonValue;
+ public $minComparisonValue;
+ public $operator;
+
+ public function setCaseSensitive($caseSensitive)
+ {
+ $this->caseSensitive = $caseSensitive;
+ }
+ public function getCaseSensitive()
+ {
+ return $this->caseSensitive;
+ }
+ public function setDimensionName($dimensionName)
+ {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName()
+ {
+ return $this->dimensionName;
+ }
+ public function setExpressions($expressions)
+ {
+ $this->expressions = $expressions;
+ }
+ public function getExpressions()
+ {
+ return $this->expressions;
+ }
+ public function setMaxComparisonValue($maxComparisonValue)
+ {
+ $this->maxComparisonValue = $maxComparisonValue;
+ }
+ public function getMaxComparisonValue()
+ {
+ return $this->maxComparisonValue;
+ }
+ public function setMinComparisonValue($minComparisonValue)
+ {
+ $this->minComparisonValue = $minComparisonValue;
+ }
+ public function getMinComparisonValue()
+ {
+ return $this->minComparisonValue;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilter.php
new file mode 100644
index 00000000..9206784c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilter.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SegmentFilter extends Google_Model
+{
+ public $not;
+ protected $sequenceSegmentType = 'Google_Service_AnalyticsReporting_SequenceSegment';
+ protected $sequenceSegmentDataType = '';
+ protected $simpleSegmentType = 'Google_Service_AnalyticsReporting_SimpleSegment';
+ protected $simpleSegmentDataType = '';
+
+ public function setNot($not)
+ {
+ $this->not = $not;
+ }
+ public function getNot()
+ {
+ return $this->not;
+ }
+ public function setSequenceSegment(Google_Service_AnalyticsReporting_SequenceSegment $sequenceSegment)
+ {
+ $this->sequenceSegment = $sequenceSegment;
+ }
+ public function getSequenceSegment()
+ {
+ return $this->sequenceSegment;
+ }
+ public function setSimpleSegment(Google_Service_AnalyticsReporting_SimpleSegment $simpleSegment)
+ {
+ $this->simpleSegment = $simpleSegment;
+ }
+ public function getSimpleSegment()
+ {
+ return $this->simpleSegment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilterClause.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilterClause.php
new file mode 100644
index 00000000..709a1017
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentFilterClause.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SegmentFilterClause extends Google_Model
+{
+ protected $dimensionFilterType = 'Google_Service_AnalyticsReporting_SegmentDimensionFilter';
+ protected $dimensionFilterDataType = '';
+ protected $metricFilterType = 'Google_Service_AnalyticsReporting_SegmentMetricFilter';
+ protected $metricFilterDataType = '';
+ public $not;
+
+ public function setDimensionFilter(Google_Service_AnalyticsReporting_SegmentDimensionFilter $dimensionFilter)
+ {
+ $this->dimensionFilter = $dimensionFilter;
+ }
+ public function getDimensionFilter()
+ {
+ return $this->dimensionFilter;
+ }
+ public function setMetricFilter(Google_Service_AnalyticsReporting_SegmentMetricFilter $metricFilter)
+ {
+ $this->metricFilter = $metricFilter;
+ }
+ public function getMetricFilter()
+ {
+ return $this->metricFilter;
+ }
+ public function setNot($not)
+ {
+ $this->not = $not;
+ }
+ public function getNot()
+ {
+ return $this->not;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentMetricFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentMetricFilter.php
new file mode 100644
index 00000000..f0d91897
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentMetricFilter.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SegmentMetricFilter extends Google_Model
+{
+ public $comparisonValue;
+ public $maxComparisonValue;
+ public $metricName;
+ public $operator;
+ public $scope;
+
+ public function setComparisonValue($comparisonValue)
+ {
+ $this->comparisonValue = $comparisonValue;
+ }
+ public function getComparisonValue()
+ {
+ return $this->comparisonValue;
+ }
+ public function setMaxComparisonValue($maxComparisonValue)
+ {
+ $this->maxComparisonValue = $maxComparisonValue;
+ }
+ public function getMaxComparisonValue()
+ {
+ return $this->maxComparisonValue;
+ }
+ public function setMetricName($metricName)
+ {
+ $this->metricName = $metricName;
+ }
+ public function getMetricName()
+ {
+ return $this->metricName;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+ public function setScope($scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentSequenceStep.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentSequenceStep.php
new file mode 100644
index 00000000..adeb2a84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SegmentSequenceStep.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SegmentSequenceStep extends Google_Collection
+{
+ protected $collection_key = 'orFiltersForSegment';
+ public $matchType;
+ protected $orFiltersForSegmentType = 'Google_Service_AnalyticsReporting_OrFiltersForSegment';
+ protected $orFiltersForSegmentDataType = 'array';
+
+ public function setMatchType($matchType)
+ {
+ $this->matchType = $matchType;
+ }
+ public function getMatchType()
+ {
+ return $this->matchType;
+ }
+ public function setOrFiltersForSegment($orFiltersForSegment)
+ {
+ $this->orFiltersForSegment = $orFiltersForSegment;
+ }
+ public function getOrFiltersForSegment()
+ {
+ return $this->orFiltersForSegment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SequenceSegment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SequenceSegment.php
new file mode 100644
index 00000000..5ebc30f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SequenceSegment.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SequenceSegment extends Google_Collection
+{
+ protected $collection_key = 'segmentSequenceSteps';
+ public $firstStepShouldMatchFirstHit;
+ protected $segmentSequenceStepsType = 'Google_Service_AnalyticsReporting_SegmentSequenceStep';
+ protected $segmentSequenceStepsDataType = 'array';
+
+ public function setFirstStepShouldMatchFirstHit($firstStepShouldMatchFirstHit)
+ {
+ $this->firstStepShouldMatchFirstHit = $firstStepShouldMatchFirstHit;
+ }
+ public function getFirstStepShouldMatchFirstHit()
+ {
+ return $this->firstStepShouldMatchFirstHit;
+ }
+ public function setSegmentSequenceSteps($segmentSequenceSteps)
+ {
+ $this->segmentSequenceSteps = $segmentSequenceSteps;
+ }
+ public function getSegmentSequenceSteps()
+ {
+ return $this->segmentSequenceSteps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SimpleSegment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SimpleSegment.php
new file mode 100644
index 00000000..af8f4562
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AnalyticsReporting/SimpleSegment.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AnalyticsReporting_SimpleSegment extends Google_Collection
+{
+ protected $collection_key = 'orFiltersForSegment';
+ protected $orFiltersForSegmentType = 'Google_Service_AnalyticsReporting_OrFiltersForSegment';
+ protected $orFiltersForSegmentDataType = 'array';
+
+ public function setOrFiltersForSegment($orFiltersForSegment)
+ {
+ $this->orFiltersForSegment = $orFiltersForSegment;
+ }
+ public function getOrFiltersForSegment()
+ {
+ return $this->orFiltersForSegment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise.php
new file mode 100644
index 00000000..791f403c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise.php
@@ -0,0 +1,1454 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AndroidEnterprise (v1).
+ *
+ * <p>
+ * Manages the deployment of apps to Android for Work users.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/android/work/play/emm-api" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AndroidEnterprise extends Google_Service
+{
+ /** Manage corporate Android devices. */
+ const ANDROIDENTERPRISE =
+ "https://www.googleapis.com/auth/androidenterprise";
+
+ public $devices;
+ public $enterprises;
+ public $entitlements;
+ public $grouplicenses;
+ public $grouplicenseusers;
+ public $installs;
+ public $managedconfigurationsfordevice;
+ public $managedconfigurationsforuser;
+ public $permissions;
+ public $products;
+ public $serviceaccountkeys;
+ public $storelayoutclusters;
+ public $storelayoutpages;
+ public $users;
+
+ /**
+ * Constructs the internal representation of the AndroidEnterprise service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'androidenterprise/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'androidenterprise';
+
+ $this->devices = new Google_Service_AndroidEnterprise_Resource_Devices(
+ $this,
+ $this->serviceName,
+ 'devices',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getState' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setState' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->enterprises = new Google_Service_AndroidEnterprise_Resource_Enterprises(
+ $this,
+ $this->serviceName,
+ 'enterprises',
+ array(
+ 'methods' => array(
+ 'acknowledgeNotificationSet' => array(
+ 'path' => 'enterprises/acknowledgeNotificationSet',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'notificationSetId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'completeSignup' => array(
+ 'path' => 'enterprises/completeSignup',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'completionToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'enterpriseToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'createWebToken' => array(
+ 'path' => 'enterprises/{enterpriseId}/createWebToken',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'enroll' => array(
+ 'path' => 'enterprises/enroll',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'generateSignupUrl' => array(
+ 'path' => 'enterprises/signupUrl',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'callbackUrl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getServiceAccount' => array(
+ 'path' => 'enterprises/{enterpriseId}/serviceAccount',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'keyType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getStoreLayout' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'enterprises',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'domain' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'pullNotificationSet' => array(
+ 'path' => 'enterprises/pullNotificationSet',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'requestMode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'sendTestPushNotification' => array(
+ 'path' => 'enterprises/{enterpriseId}/sendTestPushNotification',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setAccount' => array(
+ 'path' => 'enterprises/{enterpriseId}/account',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setStoreLayout' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'unenroll' => array(
+ 'path' => 'enterprises/{enterpriseId}/unenroll',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->entitlements = new Google_Service_AndroidEnterprise_Resource_Entitlements(
+ $this,
+ $this->serviceName,
+ 'entitlements',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entitlementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entitlementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entitlementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'install' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entitlementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'install' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->grouplicenses = new Google_Service_AndroidEnterprise_Resource_Grouplicenses(
+ $this,
+ $this->serviceName,
+ 'grouplicenses',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'groupLicenseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/groupLicenses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->grouplicenseusers = new Google_Service_AndroidEnterprise_Resource_Grouplicenseusers(
+ $this,
+ $this->serviceName,
+ 'grouplicenseusers',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'groupLicenseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->installs = new Google_Service_AndroidEnterprise_Resource_Installs(
+ $this,
+ $this->serviceName,
+ 'installs',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'installId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'installId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'installId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'installId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->managedconfigurationsfordevice = new Google_Service_AndroidEnterprise_Resource_Managedconfigurationsfordevice(
+ $this,
+ $this->serviceName,
+ 'managedconfigurationsfordevice',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForDeviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForDeviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForDeviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForDeviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->managedconfigurationsforuser = new Google_Service_AndroidEnterprise_Resource_Managedconfigurationsforuser(
+ $this,
+ $this->serviceName,
+ 'managedconfigurationsforuser',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForUserId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForUserId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForUserId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedConfigurationForUserId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->permissions = new Google_Service_AndroidEnterprise_Resource_Permissions(
+ $this,
+ $this->serviceName,
+ 'permissions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'permissions/{permissionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'permissionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->products = new Google_Service_AndroidEnterprise_Resource_Products(
+ $this,
+ $this->serviceName,
+ 'products',
+ array(
+ 'methods' => array(
+ 'approve' => array(
+ 'path' => 'enterprises/{enterpriseId}/products/{productId}/approve',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'generateApprovalUrl' => array(
+ 'path' => 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'languageCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/products/{productId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getAppRestrictionsSchema' => array(
+ 'path' => 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getPermissions' => array(
+ 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/products',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'approved' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'unapprove' => array(
+ 'path' => 'enterprises/{enterpriseId}/products/{productId}/unapprove',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->serviceaccountkeys = new Google_Service_AndroidEnterprise_Resource_Serviceaccountkeys(
+ $this,
+ $this->serviceName,
+ 'serviceaccountkeys',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/serviceAccountKeys/{keyId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'keyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'enterprises/{enterpriseId}/serviceAccountKeys',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/serviceAccountKeys',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->storelayoutclusters = new Google_Service_AndroidEnterprise_Resource_Storelayoutclusters(
+ $this,
+ $this->serviceName,
+ 'storelayoutclusters',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->storelayoutpages = new Google_Service_AndroidEnterprise_Resource_Storelayoutpages(
+ $this,
+ $this->serviceName,
+ 'storelayoutpages',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users = new Google_Service_AndroidEnterprise_Resource_Users(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'generateAuthenticationToken' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/authenticationToken',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'generateToken' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/token',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getAvailableProductSet' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'enterprises/{enterpriseId}/users',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'enterprises/{enterpriseId}/users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'email' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'revokeToken' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/token',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setAvailableProductSet' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}/availableProductSet',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'enterprises/{enterpriseId}/users/{userId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'enterpriseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Administrator.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Administrator.php
new file mode 100644
index 00000000..8e29748f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Administrator.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Administrator extends Google_Model
+{
+ public $email;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebToken.php
new file mode 100644
index 00000000..19fdfb42
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebToken.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AdministratorWebToken extends Google_Model
+{
+ public $kind;
+ public $token;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebTokenSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebTokenSpec.php
new file mode 100644
index 00000000..c2269b19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AdministratorWebTokenSpec.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AdministratorWebTokenSpec extends Google_Collection
+{
+ protected $collection_key = 'permission';
+ public $kind;
+ public $parent;
+ public $permission;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParent($parent)
+ {
+ $this->parent = $parent;
+ }
+ public function getParent()
+ {
+ return $this->parent;
+ }
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchema.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchema.php
new file mode 100644
index 00000000..fc64b129
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchema.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AppRestrictionsSchema extends Google_Collection
+{
+ protected $collection_key = 'restrictions';
+ public $kind;
+ protected $restrictionsType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction';
+ protected $restrictionsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRestrictions($restrictions)
+ {
+ $this->restrictions = $restrictions;
+ }
+ public function getRestrictions()
+ {
+ return $this->restrictions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaChangeEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaChangeEvent.php
new file mode 100644
index 00000000..795a180f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaChangeEvent.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AppRestrictionsSchemaChangeEvent extends Google_Model
+{
+ public $productId;
+
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestriction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestriction.php
new file mode 100644
index 00000000..f1701ce9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestriction.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction extends Google_Collection
+{
+ protected $collection_key = 'nestedRestriction';
+ protected $defaultValueType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue';
+ protected $defaultValueDataType = '';
+ public $description;
+ public $entry;
+ public $entryValue;
+ public $key;
+ protected $nestedRestrictionType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction';
+ protected $nestedRestrictionDataType = 'array';
+ public $restrictionType;
+ public $title;
+
+ public function setDefaultValue(Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue)
+ {
+ $this->defaultValue = $defaultValue;
+ }
+ public function getDefaultValue()
+ {
+ return $this->defaultValue;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEntry($entry)
+ {
+ $this->entry = $entry;
+ }
+ public function getEntry()
+ {
+ return $this->entry;
+ }
+ public function setEntryValue($entryValue)
+ {
+ $this->entryValue = $entryValue;
+ }
+ public function getEntryValue()
+ {
+ return $this->entryValue;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setNestedRestriction($nestedRestriction)
+ {
+ $this->nestedRestriction = $nestedRestriction;
+ }
+ public function getNestedRestriction()
+ {
+ return $this->nestedRestriction;
+ }
+ public function setRestrictionType($restrictionType)
+ {
+ $this->restrictionType = $restrictionType;
+ }
+ public function getRestrictionType()
+ {
+ return $this->restrictionType;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestrictionRestrictionValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestrictionRestrictionValue.php
new file mode 100644
index 00000000..8a7219f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppRestrictionsSchemaRestrictionRestrictionValue.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue extends Google_Collection
+{
+ protected $collection_key = 'valueMultiselect';
+ public $type;
+ public $valueBool;
+ public $valueInteger;
+ public $valueMultiselect;
+ public $valueString;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValueBool($valueBool)
+ {
+ $this->valueBool = $valueBool;
+ }
+ public function getValueBool()
+ {
+ return $this->valueBool;
+ }
+ public function setValueInteger($valueInteger)
+ {
+ $this->valueInteger = $valueInteger;
+ }
+ public function getValueInteger()
+ {
+ return $this->valueInteger;
+ }
+ public function setValueMultiselect($valueMultiselect)
+ {
+ $this->valueMultiselect = $valueMultiselect;
+ }
+ public function getValueMultiselect()
+ {
+ return $this->valueMultiselect;
+ }
+ public function setValueString($valueString)
+ {
+ $this->valueString = $valueString;
+ }
+ public function getValueString()
+ {
+ return $this->valueString;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppUpdateEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppUpdateEvent.php
new file mode 100644
index 00000000..0c32f9d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppUpdateEvent.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AppUpdateEvent extends Google_Model
+{
+ public $productId;
+
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppVersion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppVersion.php
new file mode 100644
index 00000000..7d588b9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AppVersion.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AppVersion extends Google_Model
+{
+ public $versionCode;
+ public $versionString;
+
+ public function setVersionCode($versionCode)
+ {
+ $this->versionCode = $versionCode;
+ }
+ public function getVersionCode()
+ {
+ return $this->versionCode;
+ }
+ public function setVersionString($versionString)
+ {
+ $this->versionString = $versionString;
+ }
+ public function getVersionString()
+ {
+ return $this->versionString;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ApprovalUrlInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ApprovalUrlInfo.php
new file mode 100644
index 00000000..21a32e4f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ApprovalUrlInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ApprovalUrlInfo extends Google_Model
+{
+ public $approvalUrl;
+ public $kind;
+
+ public function setApprovalUrl($approvalUrl)
+ {
+ $this->approvalUrl = $approvalUrl;
+ }
+ public function getApprovalUrl()
+ {
+ return $this->approvalUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AuthenticationToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AuthenticationToken.php
new file mode 100644
index 00000000..02d94a76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/AuthenticationToken.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_AuthenticationToken extends Google_Model
+{
+ public $kind;
+ public $token;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Collection.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Collection.php
new file mode 100644
index 00000000..12639e44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Collection.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Collection extends Google_Collection
+{
+ protected $collection_key = 'productId';
+ public $collectionId;
+ public $kind;
+ public $name;
+ public $productId;
+ public $visibility;
+
+ public function setCollectionId($collectionId)
+ {
+ $this->collectionId = $collectionId;
+ }
+ public function getCollectionId()
+ {
+ return $this->collectionId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setVisibility($visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionViewersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionViewersListResponse.php
new file mode 100644
index 00000000..7ebeee4e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionViewersListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_CollectionViewersListResponse extends Google_Collection
+{
+ protected $collection_key = 'user';
+ public $kind;
+ protected $userType = 'Google_Service_AndroidEnterprise_User';
+ protected $userDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionsListResponse.php
new file mode 100644
index 00000000..5fb82d31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/CollectionsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_CollectionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'collection';
+ protected $collectionType = 'Google_Service_AndroidEnterprise_Collection';
+ protected $collectionDataType = 'array';
+ public $kind;
+
+ public function setCollection($collection)
+ {
+ $this->collection = $collection;
+ }
+ public function getCollection()
+ {
+ return $this->collection;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Device.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Device.php
new file mode 100644
index 00000000..2d9b5e9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Device.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Device extends Google_Model
+{
+ public $androidId;
+ public $kind;
+ public $managementType;
+
+ public function setAndroidId($androidId)
+ {
+ $this->androidId = $androidId;
+ }
+ public function getAndroidId()
+ {
+ return $this->androidId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setManagementType($managementType)
+ {
+ $this->managementType = $managementType;
+ }
+ public function getManagementType()
+ {
+ return $this->managementType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DeviceState.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DeviceState.php
new file mode 100644
index 00000000..c186deb6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DeviceState.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_DeviceState extends Google_Model
+{
+ public $accountState;
+ public $kind;
+
+ public function setAccountState($accountState)
+ {
+ $this->accountState = $accountState;
+ }
+ public function getAccountState()
+ {
+ return $this->accountState;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DevicesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DevicesListResponse.php
new file mode 100644
index 00000000..1f5db7b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/DevicesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_DevicesListResponse extends Google_Collection
+{
+ protected $collection_key = 'device';
+ protected $deviceType = 'Google_Service_AndroidEnterprise_Device';
+ protected $deviceDataType = 'array';
+ public $kind;
+
+ public function setDevice($device)
+ {
+ $this->device = $device;
+ }
+ public function getDevice()
+ {
+ return $this->device;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Enterprise.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Enterprise.php
new file mode 100644
index 00000000..cd315106
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Enterprise.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Enterprise extends Google_Collection
+{
+ protected $collection_key = 'administrator';
+ protected $administratorType = 'Google_Service_AndroidEnterprise_Administrator';
+ protected $administratorDataType = 'array';
+ public $id;
+ public $kind;
+ public $name;
+ public $primaryDomain;
+
+ public function setAdministrator($administrator)
+ {
+ $this->administrator = $administrator;
+ }
+ public function getAdministrator()
+ {
+ return $this->administrator;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrimaryDomain($primaryDomain)
+ {
+ $this->primaryDomain = $primaryDomain;
+ }
+ public function getPrimaryDomain()
+ {
+ return $this->primaryDomain;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterpriseAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterpriseAccount.php
new file mode 100644
index 00000000..5057cff7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterpriseAccount.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_EnterpriseAccount extends Google_Model
+{
+ public $accountEmail;
+ public $kind;
+
+ public function setAccountEmail($accountEmail)
+ {
+ $this->accountEmail = $accountEmail;
+ }
+ public function getAccountEmail()
+ {
+ return $this->accountEmail;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesListResponse.php
new file mode 100644
index 00000000..025a4c2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_EnterprisesListResponse extends Google_Collection
+{
+ protected $collection_key = 'enterprise';
+ protected $enterpriseType = 'Google_Service_AndroidEnterprise_Enterprise';
+ protected $enterpriseDataType = 'array';
+ public $kind;
+
+ public function setEnterprise($enterprise)
+ {
+ $this->enterprise = $enterprise;
+ }
+ public function getEnterprise()
+ {
+ return $this->enterprise;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesSendTestPushNotificationResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesSendTestPushNotificationResponse.php
new file mode 100644
index 00000000..ae1cb870
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EnterprisesSendTestPushNotificationResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse extends Google_Model
+{
+ public $messageId;
+ public $topicName;
+
+ public function setMessageId($messageId)
+ {
+ $this->messageId = $messageId;
+ }
+ public function getMessageId()
+ {
+ return $this->messageId;
+ }
+ public function setTopicName($topicName)
+ {
+ $this->topicName = $topicName;
+ }
+ public function getTopicName()
+ {
+ return $this->topicName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Entitlement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Entitlement.php
new file mode 100644
index 00000000..098537cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Entitlement.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Entitlement extends Google_Model
+{
+ public $kind;
+ public $productId;
+ public $reason;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EntitlementsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EntitlementsListResponse.php
new file mode 100644
index 00000000..bab3d685
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/EntitlementsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_EntitlementsListResponse extends Google_Collection
+{
+ protected $collection_key = 'entitlement';
+ protected $entitlementType = 'Google_Service_AndroidEnterprise_Entitlement';
+ protected $entitlementDataType = 'array';
+ public $kind;
+
+ public function setEntitlement($entitlement)
+ {
+ $this->entitlement = $entitlement;
+ }
+ public function getEntitlement()
+ {
+ return $this->entitlement;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicense.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicense.php
new file mode 100644
index 00000000..ebce1eed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicense.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_GroupLicense extends Google_Model
+{
+ public $acquisitionKind;
+ public $approval;
+ public $kind;
+ public $numProvisioned;
+ public $numPurchased;
+ public $productId;
+
+ public function setAcquisitionKind($acquisitionKind)
+ {
+ $this->acquisitionKind = $acquisitionKind;
+ }
+ public function getAcquisitionKind()
+ {
+ return $this->acquisitionKind;
+ }
+ public function setApproval($approval)
+ {
+ $this->approval = $approval;
+ }
+ public function getApproval()
+ {
+ return $this->approval;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumProvisioned($numProvisioned)
+ {
+ $this->numProvisioned = $numProvisioned;
+ }
+ public function getNumProvisioned()
+ {
+ return $this->numProvisioned;
+ }
+ public function setNumPurchased($numPurchased)
+ {
+ $this->numPurchased = $numPurchased;
+ }
+ public function getNumPurchased()
+ {
+ return $this->numPurchased;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicenseUsersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicenseUsersListResponse.php
new file mode 100644
index 00000000..b0c506a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicenseUsersListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'user';
+ public $kind;
+ protected $userType = 'Google_Service_AndroidEnterprise_User';
+ protected $userDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicensesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicensesListResponse.php
new file mode 100644
index 00000000..a8a4f087
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/GroupLicensesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_GroupLicensesListResponse extends Google_Collection
+{
+ protected $collection_key = 'groupLicense';
+ protected $groupLicenseType = 'Google_Service_AndroidEnterprise_GroupLicense';
+ protected $groupLicenseDataType = 'array';
+ public $kind;
+
+ public function setGroupLicense($groupLicense)
+ {
+ $this->groupLicense = $groupLicense;
+ }
+ public function getGroupLicense()
+ {
+ return $this->groupLicense;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Install.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Install.php
new file mode 100644
index 00000000..de9fef90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Install.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Install extends Google_Model
+{
+ public $installState;
+ public $kind;
+ public $productId;
+ public $versionCode;
+
+ public function setInstallState($installState)
+ {
+ $this->installState = $installState;
+ }
+ public function getInstallState()
+ {
+ return $this->installState;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setVersionCode($versionCode)
+ {
+ $this->versionCode = $versionCode;
+ }
+ public function getVersionCode()
+ {
+ return $this->versionCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallFailureEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallFailureEvent.php
new file mode 100644
index 00000000..cb7e9bbd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallFailureEvent.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_InstallFailureEvent extends Google_Model
+{
+ public $deviceId;
+ public $failureDetails;
+ public $failureReason;
+ public $productId;
+ public $userId;
+
+ public function setDeviceId($deviceId)
+ {
+ $this->deviceId = $deviceId;
+ }
+ public function getDeviceId()
+ {
+ return $this->deviceId;
+ }
+ public function setFailureDetails($failureDetails)
+ {
+ $this->failureDetails = $failureDetails;
+ }
+ public function getFailureDetails()
+ {
+ return $this->failureDetails;
+ }
+ public function setFailureReason($failureReason)
+ {
+ $this->failureReason = $failureReason;
+ }
+ public function getFailureReason()
+ {
+ return $this->failureReason;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallsListResponse.php
new file mode 100644
index 00000000..f437011e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/InstallsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_InstallsListResponse extends Google_Collection
+{
+ protected $collection_key = 'install';
+ protected $installType = 'Google_Service_AndroidEnterprise_Install';
+ protected $installDataType = 'array';
+ public $kind;
+
+ public function setInstall($install)
+ {
+ $this->install = $install;
+ }
+ public function getInstall()
+ {
+ return $this->install;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/LocalizedText.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/LocalizedText.php
new file mode 100644
index 00000000..a974b0ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/LocalizedText.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_LocalizedText extends Google_Model
+{
+ public $locale;
+ public $text;
+
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfiguration.php
new file mode 100644
index 00000000..b2a66d70
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfiguration.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ManagedConfiguration extends Google_Collection
+{
+ protected $collection_key = 'managedProperty';
+ public $kind;
+ protected $managedPropertyType = 'Google_Service_AndroidEnterprise_ManagedProperty';
+ protected $managedPropertyDataType = 'array';
+ public $productId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setManagedProperty($managedProperty)
+ {
+ $this->managedProperty = $managedProperty;
+ }
+ public function getManagedProperty()
+ {
+ return $this->managedProperty;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForDeviceListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForDeviceListResponse.php
new file mode 100644
index 00000000..b14134f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForDeviceListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ManagedConfigurationsForDeviceListResponse extends Google_Collection
+{
+ protected $collection_key = 'managedConfigurationForDevice';
+ public $kind;
+ protected $managedConfigurationForDeviceType = 'Google_Service_AndroidEnterprise_ManagedConfiguration';
+ protected $managedConfigurationForDeviceDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setManagedConfigurationForDevice($managedConfigurationForDevice)
+ {
+ $this->managedConfigurationForDevice = $managedConfigurationForDevice;
+ }
+ public function getManagedConfigurationForDevice()
+ {
+ return $this->managedConfigurationForDevice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForUserListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForUserListResponse.php
new file mode 100644
index 00000000..ce18d4ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedConfigurationsForUserListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ManagedConfigurationsForUserListResponse extends Google_Collection
+{
+ protected $collection_key = 'managedConfigurationForUser';
+ public $kind;
+ protected $managedConfigurationForUserType = 'Google_Service_AndroidEnterprise_ManagedConfiguration';
+ protected $managedConfigurationForUserDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setManagedConfigurationForUser($managedConfigurationForUser)
+ {
+ $this->managedConfigurationForUser = $managedConfigurationForUser;
+ }
+ public function getManagedConfigurationForUser()
+ {
+ return $this->managedConfigurationForUser;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedProperty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedProperty.php
new file mode 100644
index 00000000..8fe61415
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedProperty.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ManagedProperty extends Google_Collection
+{
+ protected $collection_key = 'valueStringArray';
+ public $key;
+ public $valueBool;
+ protected $valueBundleType = 'Google_Service_AndroidEnterprise_ManagedPropertyBundle';
+ protected $valueBundleDataType = '';
+ protected $valueBundleArrayType = 'Google_Service_AndroidEnterprise_ManagedPropertyBundle';
+ protected $valueBundleArrayDataType = 'array';
+ public $valueInteger;
+ public $valueString;
+ public $valueStringArray;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValueBool($valueBool)
+ {
+ $this->valueBool = $valueBool;
+ }
+ public function getValueBool()
+ {
+ return $this->valueBool;
+ }
+ public function setValueBundle(Google_Service_AndroidEnterprise_ManagedPropertyBundle $valueBundle)
+ {
+ $this->valueBundle = $valueBundle;
+ }
+ public function getValueBundle()
+ {
+ return $this->valueBundle;
+ }
+ public function setValueBundleArray($valueBundleArray)
+ {
+ $this->valueBundleArray = $valueBundleArray;
+ }
+ public function getValueBundleArray()
+ {
+ return $this->valueBundleArray;
+ }
+ public function setValueInteger($valueInteger)
+ {
+ $this->valueInteger = $valueInteger;
+ }
+ public function getValueInteger()
+ {
+ return $this->valueInteger;
+ }
+ public function setValueString($valueString)
+ {
+ $this->valueString = $valueString;
+ }
+ public function getValueString()
+ {
+ return $this->valueString;
+ }
+ public function setValueStringArray($valueStringArray)
+ {
+ $this->valueStringArray = $valueStringArray;
+ }
+ public function getValueStringArray()
+ {
+ return $this->valueStringArray;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedPropertyBundle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedPropertyBundle.php
new file mode 100644
index 00000000..057ba250
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ManagedPropertyBundle.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ManagedPropertyBundle extends Google_Collection
+{
+ protected $collection_key = 'managedProperty';
+ protected $managedPropertyType = 'Google_Service_AndroidEnterprise_ManagedProperty';
+ protected $managedPropertyDataType = 'array';
+
+ public function setManagedProperty($managedProperty)
+ {
+ $this->managedProperty = $managedProperty;
+ }
+ public function getManagedProperty()
+ {
+ return $this->managedProperty;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewDeviceEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewDeviceEvent.php
new file mode 100644
index 00000000..999e7692
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewDeviceEvent.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_NewDeviceEvent extends Google_Model
+{
+ public $deviceId;
+ public $managementType;
+ public $userId;
+
+ public function setDeviceId($deviceId)
+ {
+ $this->deviceId = $deviceId;
+ }
+ public function getDeviceId()
+ {
+ return $this->deviceId;
+ }
+ public function setManagementType($managementType)
+ {
+ $this->managementType = $managementType;
+ }
+ public function getManagementType()
+ {
+ return $this->managementType;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewPermissionsEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewPermissionsEvent.php
new file mode 100644
index 00000000..ae464bfa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NewPermissionsEvent.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_NewPermissionsEvent extends Google_Collection
+{
+ protected $collection_key = 'requestedPermissions';
+ public $approvedPermissions;
+ public $productId;
+ public $requestedPermissions;
+
+ public function setApprovedPermissions($approvedPermissions)
+ {
+ $this->approvedPermissions = $approvedPermissions;
+ }
+ public function getApprovedPermissions()
+ {
+ return $this->approvedPermissions;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setRequestedPermissions($requestedPermissions)
+ {
+ $this->requestedPermissions = $requestedPermissions;
+ }
+ public function getRequestedPermissions()
+ {
+ return $this->requestedPermissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Notification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Notification.php
new file mode 100644
index 00000000..35f3afe4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Notification.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Notification extends Google_Model
+{
+ protected $appRestrictionsSchemaChangeEventType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaChangeEvent';
+ protected $appRestrictionsSchemaChangeEventDataType = '';
+ protected $appUpdateEventType = 'Google_Service_AndroidEnterprise_AppUpdateEvent';
+ protected $appUpdateEventDataType = '';
+ public $enterpriseId;
+ protected $installFailureEventType = 'Google_Service_AndroidEnterprise_InstallFailureEvent';
+ protected $installFailureEventDataType = '';
+ protected $newDeviceEventType = 'Google_Service_AndroidEnterprise_NewDeviceEvent';
+ protected $newDeviceEventDataType = '';
+ protected $newPermissionsEventType = 'Google_Service_AndroidEnterprise_NewPermissionsEvent';
+ protected $newPermissionsEventDataType = '';
+ protected $productApprovalEventType = 'Google_Service_AndroidEnterprise_ProductApprovalEvent';
+ protected $productApprovalEventDataType = '';
+ protected $productAvailabilityChangeEventType = 'Google_Service_AndroidEnterprise_ProductAvailabilityChangeEvent';
+ protected $productAvailabilityChangeEventDataType = '';
+ public $timestampMillis;
+
+ public function setAppRestrictionsSchemaChangeEvent(Google_Service_AndroidEnterprise_AppRestrictionsSchemaChangeEvent $appRestrictionsSchemaChangeEvent)
+ {
+ $this->appRestrictionsSchemaChangeEvent = $appRestrictionsSchemaChangeEvent;
+ }
+ public function getAppRestrictionsSchemaChangeEvent()
+ {
+ return $this->appRestrictionsSchemaChangeEvent;
+ }
+ public function setAppUpdateEvent(Google_Service_AndroidEnterprise_AppUpdateEvent $appUpdateEvent)
+ {
+ $this->appUpdateEvent = $appUpdateEvent;
+ }
+ public function getAppUpdateEvent()
+ {
+ return $this->appUpdateEvent;
+ }
+ public function setEnterpriseId($enterpriseId)
+ {
+ $this->enterpriseId = $enterpriseId;
+ }
+ public function getEnterpriseId()
+ {
+ return $this->enterpriseId;
+ }
+ public function setInstallFailureEvent(Google_Service_AndroidEnterprise_InstallFailureEvent $installFailureEvent)
+ {
+ $this->installFailureEvent = $installFailureEvent;
+ }
+ public function getInstallFailureEvent()
+ {
+ return $this->installFailureEvent;
+ }
+ public function setNewDeviceEvent(Google_Service_AndroidEnterprise_NewDeviceEvent $newDeviceEvent)
+ {
+ $this->newDeviceEvent = $newDeviceEvent;
+ }
+ public function getNewDeviceEvent()
+ {
+ return $this->newDeviceEvent;
+ }
+ public function setNewPermissionsEvent(Google_Service_AndroidEnterprise_NewPermissionsEvent $newPermissionsEvent)
+ {
+ $this->newPermissionsEvent = $newPermissionsEvent;
+ }
+ public function getNewPermissionsEvent()
+ {
+ return $this->newPermissionsEvent;
+ }
+ public function setProductApprovalEvent(Google_Service_AndroidEnterprise_ProductApprovalEvent $productApprovalEvent)
+ {
+ $this->productApprovalEvent = $productApprovalEvent;
+ }
+ public function getProductApprovalEvent()
+ {
+ return $this->productApprovalEvent;
+ }
+ public function setProductAvailabilityChangeEvent(Google_Service_AndroidEnterprise_ProductAvailabilityChangeEvent $productAvailabilityChangeEvent)
+ {
+ $this->productAvailabilityChangeEvent = $productAvailabilityChangeEvent;
+ }
+ public function getProductAvailabilityChangeEvent()
+ {
+ return $this->productAvailabilityChangeEvent;
+ }
+ public function setTimestampMillis($timestampMillis)
+ {
+ $this->timestampMillis = $timestampMillis;
+ }
+ public function getTimestampMillis()
+ {
+ return $this->timestampMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NotificationSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NotificationSet.php
new file mode 100644
index 00000000..04ab0ac1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/NotificationSet.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_NotificationSet extends Google_Collection
+{
+ protected $collection_key = 'notification';
+ public $kind;
+ protected $notificationType = 'Google_Service_AndroidEnterprise_Notification';
+ protected $notificationDataType = 'array';
+ public $notificationSetId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNotification($notification)
+ {
+ $this->notification = $notification;
+ }
+ public function getNotification()
+ {
+ return $this->notification;
+ }
+ public function setNotificationSetId($notificationSetId)
+ {
+ $this->notificationSetId = $notificationSetId;
+ }
+ public function getNotificationSetId()
+ {
+ return $this->notificationSetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/PageInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/PageInfo.php
new file mode 100644
index 00000000..b28d2adc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/PageInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_PageInfo extends Google_Model
+{
+ public $resultPerPage;
+ public $startIndex;
+ public $totalResults;
+
+ public function setResultPerPage($resultPerPage)
+ {
+ $this->resultPerPage = $resultPerPage;
+ }
+ public function getResultPerPage()
+ {
+ return $this->resultPerPage;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Permission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Permission.php
new file mode 100644
index 00000000..1798c5bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Permission.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Permission extends Google_Model
+{
+ public $description;
+ public $kind;
+ public $name;
+ public $permissionId;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Product.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Product.php
new file mode 100644
index 00000000..f54d4ac1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Product.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_Product extends Google_Collection
+{
+ protected $collection_key = 'appVersion';
+ protected $appVersionType = 'Google_Service_AndroidEnterprise_AppVersion';
+ protected $appVersionDataType = 'array';
+ public $authorName;
+ public $detailsUrl;
+ public $distributionChannel;
+ public $iconUrl;
+ public $kind;
+ public $productId;
+ public $productPricing;
+ public $requiresContainerApp;
+ public $smallIconUrl;
+ public $title;
+ public $workDetailsUrl;
+
+ public function setAppVersion($appVersion)
+ {
+ $this->appVersion = $appVersion;
+ }
+ public function getAppVersion()
+ {
+ return $this->appVersion;
+ }
+ public function setAuthorName($authorName)
+ {
+ $this->authorName = $authorName;
+ }
+ public function getAuthorName()
+ {
+ return $this->authorName;
+ }
+ public function setDetailsUrl($detailsUrl)
+ {
+ $this->detailsUrl = $detailsUrl;
+ }
+ public function getDetailsUrl()
+ {
+ return $this->detailsUrl;
+ }
+ public function setDistributionChannel($distributionChannel)
+ {
+ $this->distributionChannel = $distributionChannel;
+ }
+ public function getDistributionChannel()
+ {
+ return $this->distributionChannel;
+ }
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setProductPricing($productPricing)
+ {
+ $this->productPricing = $productPricing;
+ }
+ public function getProductPricing()
+ {
+ return $this->productPricing;
+ }
+ public function setRequiresContainerApp($requiresContainerApp)
+ {
+ $this->requiresContainerApp = $requiresContainerApp;
+ }
+ public function getRequiresContainerApp()
+ {
+ return $this->requiresContainerApp;
+ }
+ public function setSmallIconUrl($smallIconUrl)
+ {
+ $this->smallIconUrl = $smallIconUrl;
+ }
+ public function getSmallIconUrl()
+ {
+ return $this->smallIconUrl;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setWorkDetailsUrl($workDetailsUrl)
+ {
+ $this->workDetailsUrl = $workDetailsUrl;
+ }
+ public function getWorkDetailsUrl()
+ {
+ return $this->workDetailsUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductApprovalEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductApprovalEvent.php
new file mode 100644
index 00000000..63b1ae2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductApprovalEvent.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductApprovalEvent extends Google_Model
+{
+ public $approved;
+ public $productId;
+
+ public function setApproved($approved)
+ {
+ $this->approved = $approved;
+ }
+ public function getApproved()
+ {
+ return $this->approved;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductAvailabilityChangeEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductAvailabilityChangeEvent.php
new file mode 100644
index 00000000..eacab5c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductAvailabilityChangeEvent.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductAvailabilityChangeEvent extends Google_Model
+{
+ public $availabilityStatus;
+ public $productId;
+
+ public function setAvailabilityStatus($availabilityStatus)
+ {
+ $this->availabilityStatus = $availabilityStatus;
+ }
+ public function getAvailabilityStatus()
+ {
+ return $this->availabilityStatus;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermission.php
new file mode 100644
index 00000000..d41192c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermission.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductPermission extends Google_Model
+{
+ public $permissionId;
+ public $state;
+
+ public function setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermissions.php
new file mode 100644
index 00000000..8ded09b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductPermissions.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductPermissions extends Google_Collection
+{
+ protected $collection_key = 'permission';
+ public $kind;
+ protected $permissionType = 'Google_Service_AndroidEnterprise_ProductPermission';
+ protected $permissionDataType = 'array';
+ public $productId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductSet.php
new file mode 100644
index 00000000..04d39a8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductSet.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductSet extends Google_Collection
+{
+ protected $collection_key = 'productId';
+ public $kind;
+ public $productId;
+ public $productSetBehavior;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setProductSetBehavior($productSetBehavior)
+ {
+ $this->productSetBehavior = $productSetBehavior;
+ }
+ public function getProductSetBehavior()
+ {
+ return $this->productSetBehavior;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsApproveRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsApproveRequest.php
new file mode 100644
index 00000000..5e940e7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsApproveRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductsApproveRequest extends Google_Model
+{
+ protected $approvalUrlInfoType = 'Google_Service_AndroidEnterprise_ApprovalUrlInfo';
+ protected $approvalUrlInfoDataType = '';
+
+ public function setApprovalUrlInfo(Google_Service_AndroidEnterprise_ApprovalUrlInfo $approvalUrlInfo)
+ {
+ $this->approvalUrlInfo = $approvalUrlInfo;
+ }
+ public function getApprovalUrlInfo()
+ {
+ return $this->approvalUrlInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsGenerateApprovalUrlResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsGenerateApprovalUrlResponse.php
new file mode 100644
index 00000000..8ebd8f82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsGenerateApprovalUrlResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsListResponse.php
new file mode 100644
index 00000000..716bd227
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ProductsListResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ProductsListResponse extends Google_Collection
+{
+ protected $collection_key = 'product';
+ public $kind;
+ protected $pageInfoType = 'Google_Service_AndroidEnterprise_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $productType = 'Google_Service_AndroidEnterprise_Product';
+ protected $productDataType = 'array';
+ protected $tokenPaginationType = 'Google_Service_AndroidEnterprise_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPageInfo(Google_Service_AndroidEnterprise_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setProduct($product)
+ {
+ $this->product = $product;
+ }
+ public function getProduct()
+ {
+ return $this->product;
+ }
+ public function setTokenPagination(Google_Service_AndroidEnterprise_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collections.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collections.php
new file mode 100644
index 00000000..1ffd3fab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collections.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "collections" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $collections = $androidenterpriseService->collections;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Collections extends Google_Service_Resource
+{
+ /**
+ * Deletes a collection. (collections.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $collectionId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the details of a collection. (collections.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function get($enterpriseId, $collectionId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+ /**
+ * Creates a new collection. (collections.insert)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Service_AndroidEnterprise_Collection $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function insert($enterpriseId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+ /**
+ * Retrieves the IDs of all the collections for an enterprise.
+ * (collections.listCollections)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_CollectionsListResponse
+ */
+ public function listCollections($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionsListResponse");
+ }
+ /**
+ * Updates a collection. This method supports patch semantics.
+ * (collections.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param Google_Service_AndroidEnterprise_Collection $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function patch($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+ /**
+ * Updates a collection. (collections.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param Google_Service_AndroidEnterprise_Collection $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function update($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collectionviewers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collectionviewers.php
new file mode 100644
index 00000000..acf1aa3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Collectionviewers.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "collectionviewers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $collectionviewers = $androidenterpriseService->collectionviewers;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Collectionviewers extends Google_Service_Resource
+{
+ /**
+ * Removes the user from the list of those specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * such users will see the collection. (collectionviewers.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $collectionId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the ID of the user if they have been specifically allowed to see
+ * the collection. If the collection's visibility is set to viewersOnly then
+ * only these users will see the collection. (collectionviewers.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function get($enterpriseId, $collectionId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+ /**
+ * Retrieves the IDs of the users who have been specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * these users will see the collection.
+ * (collectionviewers.listCollectionviewers)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_CollectionViewersListResponse
+ */
+ public function listCollectionviewers($enterpriseId, $collectionId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionViewersListResponse");
+ }
+ /**
+ * Adds the user to the list of those specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * such users will see the collection. This method supports patch semantics.
+ * (collectionviewers.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param Google_Service_AndroidEnterprise_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function patch($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+ /**
+ * Adds the user to the list of those specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * such users will see the collection. (collectionviewers.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param Google_Service_AndroidEnterprise_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function update($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Devices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Devices.php
new file mode 100644
index 00000000..c265c0ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Devices.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "devices" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $devices = $androidenterpriseService->devices;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Devices extends Google_Service_Resource
+{
+ /**
+ * Retrieves the details of a device. (devices.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The ID of the device.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Device
+ */
+ public function get($enterpriseId, $userId, $deviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Device");
+ }
+ /**
+ * Retrieves whether a device's access to Google services is enabled or
+ * disabled. The device state takes effect only if enforcing EMM policies on
+ * Android devices is enabled in the Google Admin Console. Otherwise, the device
+ * state is ignored and all devices are allowed access to Google services. This
+ * is only supported for Google-managed users. (devices.getState)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The ID of the device.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_DeviceState
+ */
+ public function getState($enterpriseId, $userId, $deviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getState', array($params), "Google_Service_AndroidEnterprise_DeviceState");
+ }
+ /**
+ * Retrieves the IDs of all of a user's devices. (devices.listDevices)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_DevicesListResponse
+ */
+ public function listDevices($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_DevicesListResponse");
+ }
+ /**
+ * Sets whether a device's access to Google services is enabled or disabled. The
+ * device state takes effect only if enforcing EMM policies on Android devices
+ * is enabled in the Google Admin Console. Otherwise, the device state is
+ * ignored and all devices are allowed access to Google services. This is only
+ * supported for Google-managed users. (devices.setState)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The ID of the device.
+ * @param Google_Service_AndroidEnterprise_DeviceState $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_DeviceState
+ */
+ public function setState($enterpriseId, $userId, $deviceId, Google_Service_AndroidEnterprise_DeviceState $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setState', array($params), "Google_Service_AndroidEnterprise_DeviceState");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Enterprises.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Enterprises.php
new file mode 100644
index 00000000..5328eaf3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Enterprises.php
@@ -0,0 +1,317 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "enterprises" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $enterprises = $androidenterpriseService->enterprises;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Enterprises extends Google_Service_Resource
+{
+ /**
+ * Acknowledges notifications that were received from
+ * Enterprises.PullNotificationSet to prevent subsequent calls from returning
+ * the same notifications. (enterprises.acknowledgeNotificationSet)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string notificationSetId The notification set ID as returned by
+ * Enterprises.PullNotificationSet. This must be provided.
+ */
+ public function acknowledgeNotificationSet($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('acknowledgeNotificationSet', array($params));
+ }
+ /**
+ * Completes the signup flow, by specifying the Completion token and Enterprise
+ * token. This request must not be called multiple times for a given Enterprise
+ * Token. (enterprises.completeSignup)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string completionToken The Completion token initially returned by
+ * GenerateSignupUrl.
+ * @opt_param string enterpriseToken The Enterprise token appended to the
+ * Callback URL.
+ * @return Google_Service_AndroidEnterprise_Enterprise
+ */
+ public function completeSignup($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('completeSignup', array($params), "Google_Service_AndroidEnterprise_Enterprise");
+ }
+ /**
+ * Returns a unique token to access an embeddable UI. To generate a web UI, pass
+ * the generated token into the managed Google Play javascript API. Each token
+ * may only be used to start one UI session. See the javascript API
+ * documentation for further information. (enterprises.createWebToken)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Service_AndroidEnterprise_AdministratorWebTokenSpec $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_AdministratorWebToken
+ */
+ public function createWebToken($enterpriseId, Google_Service_AndroidEnterprise_AdministratorWebTokenSpec $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createWebToken', array($params), "Google_Service_AndroidEnterprise_AdministratorWebToken");
+ }
+ /**
+ * Deletes the binding between the EMM and enterprise. This is now deprecated.
+ * Use this method only to unenroll customers that were previously enrolled with
+ * the insert call, then enroll them again with the enroll call.
+ * (enterprises.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Enrolls an enterprise with the calling EMM. (enterprises.enroll)
+ *
+ * @param string $token The token provided by the enterprise to register the
+ * EMM.
+ * @param Google_Service_AndroidEnterprise_Enterprise $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Enterprise
+ */
+ public function enroll($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array())
+ {
+ $params = array('token' => $token, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('enroll', array($params), "Google_Service_AndroidEnterprise_Enterprise");
+ }
+ /**
+ * Generates a sign-up URL. (enterprises.generateSignupUrl)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string callbackUrl The callback URL to which the Admin will be
+ * redirected after successfully creating an enterprise. Before redirecting
+ * there the system will add a single query parameter to this URL named
+ * "enterpriseToken" which will contain an opaque token to be used for the
+ * CompleteSignup request. Beware that this means that the URL will be parsed,
+ * the parameter added and then a new URL formatted, i.e. there may be some
+ * minor formatting changes and, more importantly, the URL must be well-formed
+ * so that it can be parsed.
+ * @return Google_Service_AndroidEnterprise_SignupInfo
+ */
+ public function generateSignupUrl($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('generateSignupUrl', array($params), "Google_Service_AndroidEnterprise_SignupInfo");
+ }
+ /**
+ * Retrieves the name and domain of an enterprise. (enterprises.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Enterprise
+ */
+ public function get($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Enterprise");
+ }
+ /**
+ * Returns a service account and credentials. The service account can be bound
+ * to the enterprise by calling setAccount. The service account is unique to
+ * this enterprise and EMM, and will be deleted if the enterprise is unbound.
+ * The credentials contain private key data and are not stored server-side.
+ *
+ * This method can only be called after calling Enterprises.Enroll or
+ * Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times
+ * it will return an error.
+ *
+ * Subsequent calls after the first will generate a new, unique set of
+ * credentials, and invalidate the previously generated credentials.
+ *
+ * Once the service account is bound to the enterprise, it can be managed using
+ * the serviceAccountKeys resource. (enterprises.getServiceAccount)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string keyType The type of credential to return with the service
+ * account. Required.
+ * @return Google_Service_AndroidEnterprise_ServiceAccount
+ */
+ public function getServiceAccount($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getServiceAccount', array($params), "Google_Service_AndroidEnterprise_ServiceAccount");
+ }
+ /**
+ * Returns the store layout for the enterprise. If the store layout has not been
+ * set, or if the store layout has no homepageId set, returns a NOT_FOUND error.
+ * (enterprises.getStoreLayout)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreLayout
+ */
+ public function getStoreLayout($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getStoreLayout', array($params), "Google_Service_AndroidEnterprise_StoreLayout");
+ }
+ /**
+ * Establishes the binding between the EMM and an enterprise. This is now
+ * deprecated; use enroll instead. (enterprises.insert)
+ *
+ * @param string $token The token provided by the enterprise to register the
+ * EMM.
+ * @param Google_Service_AndroidEnterprise_Enterprise $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Enterprise
+ */
+ public function insert($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array())
+ {
+ $params = array('token' => $token, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Enterprise");
+ }
+ /**
+ * Looks up an enterprise by domain name. This is only supported for enterprises
+ * created via the Google-initiated creation flow. Lookup of the id is not
+ * needed for enterprises created via the EMM-initiated flow since the EMM
+ * learns the enterprise ID in the callback specified in the
+ * Enterprises.generateSignupUrl call. (enterprises.listEnterprises)
+ *
+ * @param string $domain The exact primary domain name of the enterprise to look
+ * up.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_EnterprisesListResponse
+ */
+ public function listEnterprises($domain, $optParams = array())
+ {
+ $params = array('domain' => $domain);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EnterprisesListResponse");
+ }
+ /**
+ * Pulls and returns a notification set for the enterprises associated with the
+ * service account authenticated for the request. The notification set may be
+ * empty if no notification are pending. A notification set returned needs to be
+ * acknowledged within 20 seconds by calling
+ * Enterprises.AcknowledgeNotificationSet, unless the notification set is empty.
+ * Notifications that are not acknowledged within the 20 seconds will eventually
+ * be included again in the response to another PullNotificationSet request, and
+ * those that are never acknowledged will ultimately be deleted according to the
+ * Google Cloud Platform Pub/Sub system policy. Multiple requests might be
+ * performed concurrently to retrieve notifications, in which case the pending
+ * notifications (if any) will be split among each caller, if any are pending.
+ * If no notifications are present, an empty notification list is returned.
+ * Subsequent requests may return more notifications once they become available.
+ * (enterprises.pullNotificationSet)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMode The request mode for pulling notifications.
+ * Specifying waitForNotifications will cause the request to block and wait
+ * until one or more notifications are present, or return an empty notification
+ * list if no notifications are present after some time. Speciying
+ * returnImmediately will cause the request to immediately return the pending
+ * notifications, or an empty list if no notifications are present. If omitted,
+ * defaults to waitForNotifications.
+ * @return Google_Service_AndroidEnterprise_NotificationSet
+ */
+ public function pullNotificationSet($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('pullNotificationSet', array($params), "Google_Service_AndroidEnterprise_NotificationSet");
+ }
+ /**
+ * Sends a test push notification to validate the EMM integration with the
+ * Google Cloud Pub/Sub service for this enterprise.
+ * (enterprises.sendTestPushNotification)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse
+ */
+ public function sendTestPushNotification($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('sendTestPushNotification', array($params), "Google_Service_AndroidEnterprise_EnterprisesSendTestPushNotificationResponse");
+ }
+ /**
+ * Sets the account that will be used to authenticate to the API as the
+ * enterprise. (enterprises.setAccount)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Service_AndroidEnterprise_EnterpriseAccount $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_EnterpriseAccount
+ */
+ public function setAccount($enterpriseId, Google_Service_AndroidEnterprise_EnterpriseAccount $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setAccount', array($params), "Google_Service_AndroidEnterprise_EnterpriseAccount");
+ }
+ /**
+ * Sets the store layout for the enterprise. By default, storeLayoutType is set
+ * to "basic" and the basic store layout is enabled. The basic layout only
+ * contains apps approved by the admin, and that have been added to the
+ * available product set for a user (using the setAvailableProductSet call).
+ * Apps on the page are sorted in order of their product ID value. If you create
+ * a custom store layout (by setting storeLayoutType = "custom"), the basic
+ * store layout is disabled. (enterprises.setStoreLayout)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Service_AndroidEnterprise_StoreLayout $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreLayout
+ */
+ public function setStoreLayout($enterpriseId, Google_Service_AndroidEnterprise_StoreLayout $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setStoreLayout', array($params), "Google_Service_AndroidEnterprise_StoreLayout");
+ }
+ /**
+ * Unenrolls an enterprise from the calling EMM. (enterprises.unenroll)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ */
+ public function unenroll($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('unenroll', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Entitlements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Entitlements.php
new file mode 100644
index 00000000..4d31c8c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Entitlements.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "entitlements" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $entitlements = $androidenterpriseService->entitlements;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Entitlements extends Google_Service_Resource
+{
+ /**
+ * Removes an entitlement to an app for a user. (entitlements.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement (a product ID), e.g.
+ * "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $userId, $entitlementId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves details of an entitlement. (entitlements.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement (a product ID), e.g.
+ * "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Entitlement
+ */
+ public function get($enterpriseId, $userId, $entitlementId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Entitlement");
+ }
+ /**
+ * Lists all entitlements for the specified user. Only the ID is set.
+ * (entitlements.listEntitlements)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_EntitlementsListResponse
+ */
+ public function listEntitlements($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EntitlementsListResponse");
+ }
+ /**
+ * Adds or updates an entitlement to an app for a user. This method supports
+ * patch semantics. (entitlements.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement (a product ID), e.g.
+ * "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_Entitlement $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool install Set to true to also install the product on all the
+ * user's devices where possible. Failure to install on one or more devices will
+ * not prevent this operation from returning successfully, as long as the
+ * entitlement was successfully assigned to the user.
+ * @return Google_Service_AndroidEnterprise_Entitlement
+ */
+ public function patch($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Entitlement");
+ }
+ /**
+ * Adds or updates an entitlement to an app for a user. (entitlements.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement (a product ID), e.g.
+ * "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_Entitlement $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool install Set to true to also install the product on all the
+ * user's devices where possible. Failure to install on one or more devices will
+ * not prevent this operation from returning successfully, as long as the
+ * entitlement was successfully assigned to the user.
+ * @return Google_Service_AndroidEnterprise_Entitlement
+ */
+ public function update($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Entitlement");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenses.php
new file mode 100644
index 00000000..cb8dcaad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenses.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "grouplicenses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $grouplicenses = $androidenterpriseService->grouplicenses;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Grouplicenses extends Google_Service_Resource
+{
+ /**
+ * Retrieves details of an enterprise's group license for a product.
+ * (grouplicenses.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $groupLicenseId The ID of the product the group license is for,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_GroupLicense
+ */
+ public function get($enterpriseId, $groupLicenseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_GroupLicense");
+ }
+ /**
+ * Retrieves IDs of all products for which the enterprise has a group license.
+ * (grouplicenses.listGrouplicenses)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_GroupLicensesListResponse
+ */
+ public function listGrouplicenses($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicensesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenseusers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenseusers.php
new file mode 100644
index 00000000..fd178ee5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Grouplicenseusers.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "grouplicenseusers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $grouplicenseusers = $androidenterpriseService->grouplicenseusers;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Grouplicenseusers extends Google_Service_Resource
+{
+ /**
+ * Retrieves the IDs of the users who have been granted entitlements under the
+ * license. (grouplicenseusers.listGrouplicenseusers)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $groupLicenseId The ID of the product the group license is for,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse
+ */
+ public function listGrouplicenseusers($enterpriseId, $groupLicenseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Installs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Installs.php
new file mode 100644
index 00000000..49d77a28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Installs.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "installs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $installs = $androidenterpriseService->installs;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Installs extends Google_Service_Resource
+{
+ /**
+ * Requests to remove an app from a device. A call to get or list will still
+ * show the app as installed on the device until it is actually removed.
+ * (installs.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves details of an installation of an app on a device. (installs.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Install
+ */
+ public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Install");
+ }
+ /**
+ * Retrieves the details of all apps installed on the specified device.
+ * (installs.listInstalls)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_InstallsListResponse
+ */
+ public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_InstallsListResponse");
+ }
+ /**
+ * Requests to install the latest version of an app to a device. If the app is
+ * already installed, then it is updated to the latest version if necessary.
+ * This method supports patch semantics. (installs.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_Install $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Install
+ */
+ public function patch($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Install");
+ }
+ /**
+ * Requests to install the latest version of an app to a device. If the app is
+ * already installed, then it is updated to the latest version if necessary.
+ * (installs.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_Install $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Install
+ */
+ public function update($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Install");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsfordevice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsfordevice.php
new file mode 100644
index 00000000..b5cd9bf2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsfordevice.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "managedconfigurationsfordevice" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $managedconfigurationsfordevice = $androidenterpriseService->managedconfigurationsfordevice;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Managedconfigurationsfordevice extends Google_Service_Resource
+{
+ /**
+ * Removes a per-device managed configuration for an app for the specified
+ * device. (managedconfigurationsfordevice.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $managedConfigurationForDeviceId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $userId, $deviceId, $managedConfigurationForDeviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'managedConfigurationForDeviceId' => $managedConfigurationForDeviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves details of a per-device managed configuration.
+ * (managedconfigurationsfordevice.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $managedConfigurationForDeviceId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfiguration
+ */
+ public function get($enterpriseId, $userId, $deviceId, $managedConfigurationForDeviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'managedConfigurationForDeviceId' => $managedConfigurationForDeviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_ManagedConfiguration");
+ }
+ /**
+ * Lists all the per-device managed configurations for the specified device.
+ * Only the ID is set.
+ * (managedconfigurationsfordevice.listManagedconfigurationsfordevice)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfigurationsForDeviceListResponse
+ */
+ public function listManagedconfigurationsfordevice($enterpriseId, $userId, $deviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_ManagedConfigurationsForDeviceListResponse");
+ }
+ /**
+ * Adds or updates a per-device managed configuration for an app for the
+ * specified device. This method supports patch semantics.
+ * (managedconfigurationsfordevice.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $managedConfigurationForDeviceId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_ManagedConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfiguration
+ */
+ public function patch($enterpriseId, $userId, $deviceId, $managedConfigurationForDeviceId, Google_Service_AndroidEnterprise_ManagedConfiguration $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'managedConfigurationForDeviceId' => $managedConfigurationForDeviceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_ManagedConfiguration");
+ }
+ /**
+ * Adds or updates a per-device managed configuration for an app for the
+ * specified device. (managedconfigurationsfordevice.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $managedConfigurationForDeviceId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_ManagedConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfiguration
+ */
+ public function update($enterpriseId, $userId, $deviceId, $managedConfigurationForDeviceId, Google_Service_AndroidEnterprise_ManagedConfiguration $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'managedConfigurationForDeviceId' => $managedConfigurationForDeviceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_ManagedConfiguration");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsforuser.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsforuser.php
new file mode 100644
index 00000000..ade7f399
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Managedconfigurationsforuser.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "managedconfigurationsforuser" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $managedconfigurationsforuser = $androidenterpriseService->managedconfigurationsforuser;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Managedconfigurationsforuser extends Google_Service_Resource
+{
+ /**
+ * Removes a per-user managed configuration for an app for the specified user.
+ * (managedconfigurationsforuser.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $managedConfigurationForUserId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $userId, $managedConfigurationForUserId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves details of a per-user managed configuration for an app for the
+ * specified user. (managedconfigurationsforuser.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $managedConfigurationForUserId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfiguration
+ */
+ public function get($enterpriseId, $userId, $managedConfigurationForUserId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_ManagedConfiguration");
+ }
+ /**
+ * Lists all the per-user managed configurations for the specified user. Only
+ * the ID is set.
+ * (managedconfigurationsforuser.listManagedconfigurationsforuser)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfigurationsForUserListResponse
+ */
+ public function listManagedconfigurationsforuser($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_ManagedConfigurationsForUserListResponse");
+ }
+ /**
+ * Adds or updates a per-user managed configuration for an app for the specified
+ * user. This method supports patch semantics.
+ * (managedconfigurationsforuser.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $managedConfigurationForUserId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_ManagedConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfiguration
+ */
+ public function patch($enterpriseId, $userId, $managedConfigurationForUserId, Google_Service_AndroidEnterprise_ManagedConfiguration $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_ManagedConfiguration");
+ }
+ /**
+ * Adds or updates a per-user managed configuration for an app for the specified
+ * user. (managedconfigurationsforuser.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $managedConfigurationForUserId The ID of the managed
+ * configuration (a product ID), e.g. "app:com.google.android.gm".
+ * @param Google_Service_AndroidEnterprise_ManagedConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ManagedConfiguration
+ */
+ public function update($enterpriseId, $userId, $managedConfigurationForUserId, Google_Service_AndroidEnterprise_ManagedConfiguration $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'managedConfigurationForUserId' => $managedConfigurationForUserId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_ManagedConfiguration");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Permissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Permissions.php
new file mode 100644
index 00000000..ad1a0b90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Permissions.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "permissions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $permissions = $androidenterpriseService->permissions;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Permissions extends Google_Service_Resource
+{
+ /**
+ * Retrieves details of an Android app permission for display to an enterprise
+ * admin. (permissions.get)
+ *
+ * @param string $permissionId The ID of the permission.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language The BCP47 tag for the user's preferred language
+ * (e.g. "en-US", "de")
+ * @return Google_Service_AndroidEnterprise_Permission
+ */
+ public function get($permissionId, $optParams = array())
+ {
+ $params = array('permissionId' => $permissionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Permission");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Products.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Products.php
new file mode 100644
index 00000000..c7abdc44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Products.php
@@ -0,0 +1,175 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "products" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $products = $androidenterpriseService->products;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Products extends Google_Service_Resource
+{
+ /**
+ * Approves the specified product and the relevant app permissions, if any. The
+ * maximum number of products that you can approve per enterprise customer is
+ * 1,000.
+ *
+ * To learn how to use managed Google Play to design and create a store layout
+ * to display approved products to your users, see Store Layout Design.
+ * (products.approve)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param Google_Service_AndroidEnterprise_ProductsApproveRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function approve($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductsApproveRequest $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('approve', array($params));
+ }
+ /**
+ * Generates a URL that can be rendered in an iframe to display the permissions
+ * (if any) of a product. An enterprise admin must view these permissions and
+ * accept them on behalf of their organization in order to approve that product.
+ *
+ * Admins should accept the displayed permissions by interacting with a separate
+ * UI element in the EMM console, which in turn should trigger the use of this
+ * URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
+ * approve the product. This URL can only be used to display permissions for up
+ * to 1 day. (products.generateApprovalUrl)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string languageCode The BCP 47 language code used for permission
+ * names and descriptions in the returned iframe, for instance "en-US".
+ * @return Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse
+ */
+ public function generateApprovalUrl($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generateApprovalUrl', array($params), "Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse");
+ }
+ /**
+ * Retrieves details of a product for display to an enterprise admin.
+ * (products.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product, e.g.
+ * "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language The BCP47 tag for the user's preferred language
+ * (e.g. "en-US", "de").
+ * @return Google_Service_AndroidEnterprise_Product
+ */
+ public function get($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Product");
+ }
+ /**
+ * Retrieves the schema that defines the configurable properties for this
+ * product. All products have a schema, but this schema may be empty if no
+ * managed configurations have been defined. This schema can be used to populate
+ * a UI that allows an admin to configure the product. To apply a managed
+ * configuration based on the schema obtained using this API, see Managed
+ * Configurations through Play. (products.getAppRestrictionsSchema)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language The BCP47 tag for the user's preferred language
+ * (e.g. "en-US", "de").
+ * @return Google_Service_AndroidEnterprise_AppRestrictionsSchema
+ */
+ public function getAppRestrictionsSchema($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAppRestrictionsSchema', array($params), "Google_Service_AndroidEnterprise_AppRestrictionsSchema");
+ }
+ /**
+ * Retrieves the Android app permissions required by this app.
+ * (products.getPermissions)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ProductPermissions
+ */
+ public function getPermissions($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getPermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions");
+ }
+ /**
+ * Finds approved products that match a query, or all approved products if there
+ * is no query. (products.listProducts)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool approved Specifies whether to search among all products
+ * (false) or among only products that have been approved (true). Only "true" is
+ * supported, and should be specified.
+ * @opt_param string language The BCP47 tag for the user's preferred language
+ * (e.g. "en-US", "de"). Results are returned in the language best matching the
+ * preferred language.
+ * @opt_param string maxResults Specifies the maximum number of products that
+ * can be returned per request. If not specified, uses a default value of 100,
+ * which is also the maximum retrievable within a single response.
+ * @opt_param string query The search query as typed in the Google Play store
+ * search box. If omitted, all approved apps will be returned (using the
+ * pagination parameters), including apps that are not available in the store
+ * (e.g. unpublished apps).
+ * @opt_param string token A pagination token is contained in a request''s
+ * response when there are more products. The token can be used in a subsequent
+ * request to obtain more products, and so forth. This parameter cannot be used
+ * in the initial request.
+ * @return Google_Service_AndroidEnterprise_ProductsListResponse
+ */
+ public function listProducts($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_ProductsListResponse");
+ }
+ /**
+ * Unapproves the specified product (and the relevant app permissions, if any)
+ * (products.unapprove)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ */
+ public function unapprove($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('unapprove', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Serviceaccountkeys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Serviceaccountkeys.php
new file mode 100644
index 00000000..7421754e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Serviceaccountkeys.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "serviceaccountkeys" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $serviceaccountkeys = $androidenterpriseService->serviceaccountkeys;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Serviceaccountkeys extends Google_Service_Resource
+{
+ /**
+ * Removes and invalidates the specified credentials for the service account
+ * associated with this enterprise. The calling service account must have been
+ * retrieved by calling Enterprises.GetServiceAccount and must have been set as
+ * the enterprise service account by calling Enterprises.SetAccount.
+ * (serviceaccountkeys.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $keyId The ID of the key.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $keyId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'keyId' => $keyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Generates new credentials for the service account associated with this
+ * enterprise. The calling service account must have been retrieved by calling
+ * Enterprises.GetServiceAccount and must have been set as the enterprise
+ * service account by calling Enterprises.SetAccount.
+ *
+ * Only the type of the key should be populated in the resource to be inserted.
+ * (serviceaccountkeys.insert)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Service_AndroidEnterprise_ServiceAccountKey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ServiceAccountKey
+ */
+ public function insert($enterpriseId, Google_Service_AndroidEnterprise_ServiceAccountKey $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_ServiceAccountKey");
+ }
+ /**
+ * Lists all active credentials for the service account associated with this
+ * enterprise. Only the ID and key type are returned. The calling service
+ * account must have been retrieved by calling Enterprises.GetServiceAccount and
+ * must have been set as the enterprise service account by calling
+ * Enterprises.SetAccount. (serviceaccountkeys.listServiceaccountkeys)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ServiceAccountKeysListResponse
+ */
+ public function listServiceaccountkeys($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_ServiceAccountKeysListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutclusters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutclusters.php
new file mode 100644
index 00000000..c15da4e4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutclusters.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "storelayoutclusters" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $storelayoutclusters = $androidenterpriseService->storelayoutclusters;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Storelayoutclusters extends Google_Service_Resource
+{
+ /**
+ * Deletes a cluster. (storelayoutclusters.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param string $clusterId The ID of the cluster.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $pageId, $clusterId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves details of a cluster. (storelayoutclusters.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param string $clusterId The ID of the cluster.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreCluster
+ */
+ public function get($enterpriseId, $pageId, $clusterId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_StoreCluster");
+ }
+ /**
+ * Inserts a new cluster in a page. (storelayoutclusters.insert)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param Google_Service_AndroidEnterprise_StoreCluster $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreCluster
+ */
+ public function insert($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_StoreCluster");
+ }
+ /**
+ * Retrieves the details of all clusters on the specified page.
+ * (storelayoutclusters.listStorelayoutclusters)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse
+ */
+ public function listStorelayoutclusters($enterpriseId, $pageId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse");
+ }
+ /**
+ * Updates a cluster. This method supports patch semantics.
+ * (storelayoutclusters.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param string $clusterId The ID of the cluster.
+ * @param Google_Service_AndroidEnterprise_StoreCluster $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreCluster
+ */
+ public function patch($enterpriseId, $pageId, $clusterId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_StoreCluster");
+ }
+ /**
+ * Updates a cluster. (storelayoutclusters.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param string $clusterId The ID of the cluster.
+ * @param Google_Service_AndroidEnterprise_StoreCluster $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreCluster
+ */
+ public function update($enterpriseId, $pageId, $clusterId, Google_Service_AndroidEnterprise_StoreCluster $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_StoreCluster");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutpages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutpages.php
new file mode 100644
index 00000000..f06c2fa6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Storelayoutpages.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "storelayoutpages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $storelayoutpages = $androidenterpriseService->storelayoutpages;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Storelayoutpages extends Google_Service_Resource
+{
+ /**
+ * Deletes a store page. (storelayoutpages.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $pageId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves details of a store page. (storelayoutpages.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StorePage
+ */
+ public function get($enterpriseId, $pageId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_StorePage");
+ }
+ /**
+ * Inserts a new store page. (storelayoutpages.insert)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Service_AndroidEnterprise_StorePage $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StorePage
+ */
+ public function insert($enterpriseId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_StorePage");
+ }
+ /**
+ * Retrieves the details of all pages in the store.
+ * (storelayoutpages.listStorelayoutpages)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse
+ */
+ public function listStorelayoutpages($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse");
+ }
+ /**
+ * Updates the content of a store page. This method supports patch semantics.
+ * (storelayoutpages.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param Google_Service_AndroidEnterprise_StorePage $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StorePage
+ */
+ public function patch($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_StorePage");
+ }
+ /**
+ * Updates the content of a store page. (storelayoutpages.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $pageId The ID of the page.
+ * @param Google_Service_AndroidEnterprise_StorePage $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_StorePage
+ */
+ public function update($enterpriseId, $pageId, Google_Service_AndroidEnterprise_StorePage $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_StorePage");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Users.php
new file mode 100644
index 00000000..dd070c4c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Users.php
@@ -0,0 +1,215 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $users = $androidenterpriseService->users;
+ * </code>
+ */
+class Google_Service_AndroidEnterprise_Resource_Users extends Google_Service_Resource
+{
+ /**
+ * Deleted an EMM-managed user. (users.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Generates an authentication token which the device policy client can use to
+ * provision the given EMM-managed user account on a device. The generated token
+ * is single-use and expires after a few minutes.
+ *
+ * This call only works with EMM-managed accounts.
+ * (users.generateAuthenticationToken)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_AuthenticationToken
+ */
+ public function generateAuthenticationToken($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generateAuthenticationToken', array($params), "Google_Service_AndroidEnterprise_AuthenticationToken");
+ }
+ /**
+ * Generates a token (activation code) to allow this user to configure their
+ * managed account in the Android Setup Wizard. Revokes any previously generated
+ * token.
+ *
+ * This call only works with Google managed accounts. (users.generateToken)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_UserToken
+ */
+ public function generateToken($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generateToken', array($params), "Google_Service_AndroidEnterprise_UserToken");
+ }
+ /**
+ * Retrieves a user's details. (users.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function get($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+ /**
+ * Retrieves the set of products a user is entitled to access.
+ * (users.getAvailableProductSet)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ProductSet
+ */
+ public function getAvailableProductSet($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet");
+ }
+ /**
+ * Creates a new EMM-managed user.
+ *
+ * The Users resource passed in the body of the request should include an
+ * accountIdentifier and an accountType. If a corresponding user already exists
+ * with the same account identifier, the user will be updated with the resource.
+ * In this case only the displayName field can be changed. (users.insert)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Service_AndroidEnterprise_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function insert($enterpriseId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+ /**
+ * Looks up a user by primary email address. This is only supported for Google-
+ * managed users. Lookup of the id is not needed for EMM-managed users because
+ * the id is already returned in the result of the Users.insert call.
+ * (users.listUsers)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $email The exact primary email address of the user to look up.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_UsersListResponse
+ */
+ public function listUsers($enterpriseId, $email, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'email' => $email);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_UsersListResponse");
+ }
+ /**
+ * Updates the details of an EMM-managed user.
+ *
+ * Can be used with EMM-managed users only (not Google managed users). Pass the
+ * new details in the Users resource in the request body. Only the displayName
+ * field can be changed. Other fields must either be unset or have the currently
+ * active value. This method supports patch semantics. (users.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param Google_Service_AndroidEnterprise_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function patch($enterpriseId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+ /**
+ * Revokes a previously generated token (activation code) for the user.
+ * (users.revokeToken)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ */
+ public function revokeToken($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('revokeToken', array($params));
+ }
+ /**
+ * Modifies the set of products that a user is entitled to access (referred to
+ * as whitelisted products). Only products that are approved or products that
+ * were previously approved (products with revoked approval) can be whitelisted.
+ * (users.setAvailableProductSet)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param Google_Service_AndroidEnterprise_ProductSet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ProductSet
+ */
+ public function setAvailableProductSet($enterpriseId, $userId, Google_Service_AndroidEnterprise_ProductSet $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setAvailableProductSet', array($params), "Google_Service_AndroidEnterprise_ProductSet");
+ }
+ /**
+ * Updates the details of an EMM-managed user.
+ *
+ * Can be used with EMM-managed users only (not Google managed users). Pass the
+ * new details in the Users resource in the request body. Only the displayName
+ * field can be changed. Other fields must either be unset or have the currently
+ * active value. (users.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param Google_Service_AndroidEnterprise_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function update($enterpriseId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccount.php
new file mode 100644
index 00000000..e1746570
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccount.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ServiceAccount extends Google_Model
+{
+ protected $keyType = 'Google_Service_AndroidEnterprise_ServiceAccountKey';
+ protected $keyDataType = '';
+ public $kind;
+ public $name;
+
+ public function setKey(Google_Service_AndroidEnterprise_ServiceAccountKey $key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKey.php
new file mode 100644
index 00000000..41b182df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKey.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ServiceAccountKey extends Google_Model
+{
+ public $data;
+ public $id;
+ public $kind;
+ public $publicData;
+ public $type;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPublicData($publicData)
+ {
+ $this->publicData = $publicData;
+ }
+ public function getPublicData()
+ {
+ return $this->publicData;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKeysListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKeysListResponse.php
new file mode 100644
index 00000000..5e336a24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/ServiceAccountKeysListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_ServiceAccountKeysListResponse extends Google_Collection
+{
+ protected $collection_key = 'serviceAccountKey';
+ protected $serviceAccountKeyType = 'Google_Service_AndroidEnterprise_ServiceAccountKey';
+ protected $serviceAccountKeyDataType = 'array';
+
+ public function setServiceAccountKey($serviceAccountKey)
+ {
+ $this->serviceAccountKey = $serviceAccountKey;
+ }
+ public function getServiceAccountKey()
+ {
+ return $this->serviceAccountKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/SignupInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/SignupInfo.php
new file mode 100644
index 00000000..20dc18e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/SignupInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_SignupInfo extends Google_Model
+{
+ public $completionToken;
+ public $kind;
+ public $url;
+
+ public function setCompletionToken($completionToken)
+ {
+ $this->completionToken = $completionToken;
+ }
+ public function getCompletionToken()
+ {
+ return $this->completionToken;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreCluster.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreCluster.php
new file mode 100644
index 00000000..bfca3515
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreCluster.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_StoreCluster extends Google_Collection
+{
+ protected $collection_key = 'productId';
+ public $id;
+ public $kind;
+ protected $nameType = 'Google_Service_AndroidEnterprise_LocalizedText';
+ protected $nameDataType = 'array';
+ public $orderInPage;
+ public $productId;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrderInPage($orderInPage)
+ {
+ $this->orderInPage = $orderInPage;
+ }
+ public function getOrderInPage()
+ {
+ return $this->orderInPage;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayout.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayout.php
new file mode 100644
index 00000000..faf25c1a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayout.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_StoreLayout extends Google_Model
+{
+ public $homepageId;
+ public $kind;
+ public $storeLayoutType;
+
+ public function setHomepageId($homepageId)
+ {
+ $this->homepageId = $homepageId;
+ }
+ public function getHomepageId()
+ {
+ return $this->homepageId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStoreLayoutType($storeLayoutType)
+ {
+ $this->storeLayoutType = $storeLayoutType;
+ }
+ public function getStoreLayoutType()
+ {
+ return $this->storeLayoutType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutClustersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutClustersListResponse.php
new file mode 100644
index 00000000..553f3ab0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutClustersListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_StoreLayoutClustersListResponse extends Google_Collection
+{
+ protected $collection_key = 'cluster';
+ protected $clusterType = 'Google_Service_AndroidEnterprise_StoreCluster';
+ protected $clusterDataType = 'array';
+ public $kind;
+
+ public function setCluster($cluster)
+ {
+ $this->cluster = $cluster;
+ }
+ public function getCluster()
+ {
+ return $this->cluster;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutPagesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutPagesListResponse.php
new file mode 100644
index 00000000..c47c3374
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StoreLayoutPagesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_StoreLayoutPagesListResponse extends Google_Collection
+{
+ protected $collection_key = 'page';
+ public $kind;
+ protected $pageType = 'Google_Service_AndroidEnterprise_StorePage';
+ protected $pageDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPage($page)
+ {
+ $this->page = $page;
+ }
+ public function getPage()
+ {
+ return $this->page;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StorePage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StorePage.php
new file mode 100644
index 00000000..bee78374
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/StorePage.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_StorePage extends Google_Collection
+{
+ protected $collection_key = 'name';
+ public $id;
+ public $kind;
+ public $link;
+ protected $nameType = 'Google_Service_AndroidEnterprise_LocalizedText';
+ protected $nameDataType = 'array';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/TokenPagination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/TokenPagination.php
new file mode 100644
index 00000000..69fc8175
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/TokenPagination.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_TokenPagination extends Google_Model
+{
+ public $nextPageToken;
+ public $previousPageToken;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPreviousPageToken($previousPageToken)
+ {
+ $this->previousPageToken = $previousPageToken;
+ }
+ public function getPreviousPageToken()
+ {
+ return $this->previousPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/User.php
new file mode 100644
index 00000000..60ed8dbf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/User.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_User extends Google_Model
+{
+ public $accountIdentifier;
+ public $accountType;
+ public $displayName;
+ public $id;
+ public $kind;
+ public $managementType;
+ public $primaryEmail;
+
+ public function setAccountIdentifier($accountIdentifier)
+ {
+ $this->accountIdentifier = $accountIdentifier;
+ }
+ public function getAccountIdentifier()
+ {
+ return $this->accountIdentifier;
+ }
+ public function setAccountType($accountType)
+ {
+ $this->accountType = $accountType;
+ }
+ public function getAccountType()
+ {
+ return $this->accountType;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setManagementType($managementType)
+ {
+ $this->managementType = $managementType;
+ }
+ public function getManagementType()
+ {
+ return $this->managementType;
+ }
+ public function setPrimaryEmail($primaryEmail)
+ {
+ $this->primaryEmail = $primaryEmail;
+ }
+ public function getPrimaryEmail()
+ {
+ return $this->primaryEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UserToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UserToken.php
new file mode 100644
index 00000000..fd511dc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UserToken.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_UserToken extends Google_Model
+{
+ public $kind;
+ public $token;
+ public $userId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UsersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UsersListResponse.php
new file mode 100644
index 00000000..b680ded9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidEnterprise/UsersListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidEnterprise_UsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'user';
+ public $kind;
+ protected $userType = 'Google_Service_AndroidEnterprise_User';
+ protected $userDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher.php
new file mode 100644
index 00000000..8aba4482
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher.php
@@ -0,0 +1,1347 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AndroidPublisher (v2).
+ *
+ * <p>
+ * Lets Android application developers access their Google Play accounts.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/android-publisher" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AndroidPublisher extends Google_Service
+{
+ /** View and manage your Google Play Developer account. */
+ const ANDROIDPUBLISHER =
+ "https://www.googleapis.com/auth/androidpublisher";
+
+ public $edits;
+ public $edits_apklistings;
+ public $edits_apks;
+ public $edits_deobfuscationfiles;
+ public $edits_details;
+ public $edits_expansionfiles;
+ public $edits_images;
+ public $edits_listings;
+ public $edits_testers;
+ public $edits_tracks;
+ public $entitlements;
+ public $inappproducts;
+ public $purchases_products;
+ public $purchases_subscriptions;
+ public $purchases_voidedpurchases;
+ public $reviews;
+
+ /**
+ * Constructs the internal representation of the AndroidPublisher service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'androidpublisher/v2/applications/';
+ $this->version = 'v2';
+ $this->serviceName = 'androidpublisher';
+
+ $this->edits = new Google_Service_AndroidPublisher_Resource_Edits(
+ $this,
+ $this->serviceName,
+ 'edits',
+ array(
+ 'methods' => array(
+ 'commit' => array(
+ 'path' => '{packageName}/edits/{editId}:commit',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{packageName}/edits/{editId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{packageName}/edits/{editId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{packageName}/edits',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'validate' => array(
+ 'path' => '{packageName}/edits/{editId}:validate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_apklistings = new Google_Service_AndroidPublisher_Resource_EditsApklistings(
+ $this,
+ $this->serviceName,
+ 'apklistings',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deleteall' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/listings/{language}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_apks = new Google_Service_AndroidPublisher_Resource_EditsApks(
+ $this,
+ $this->serviceName,
+ 'apks',
+ array(
+ 'methods' => array(
+ 'addexternallyhosted' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/externallyHosted',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{packageName}/edits/{editId}/apks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'upload' => array(
+ 'path' => '{packageName}/edits/{editId}/apks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_deobfuscationfiles = new Google_Service_AndroidPublisher_Resource_EditsDeobfuscationfiles(
+ $this,
+ $this->serviceName,
+ 'deobfuscationfiles',
+ array(
+ 'methods' => array(
+ 'upload' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'deobfuscationFileType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_details = new Google_Service_AndroidPublisher_Resource_EditsDetails(
+ $this,
+ $this->serviceName,
+ 'details',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{packageName}/edits/{editId}/details',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{packageName}/edits/{editId}/details',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{packageName}/edits/{editId}/details',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_expansionfiles = new Google_Service_AndroidPublisher_Resource_EditsExpansionfiles(
+ $this,
+ $this->serviceName,
+ 'expansionfiles',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'expansionFileType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'expansionFileType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'expansionFileType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'upload' => array(
+ 'path' => '{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'apkVersionCode' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'expansionFileType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_images = new Google_Service_AndroidPublisher_Resource_EditsImages(
+ $this,
+ $this->serviceName,
+ 'images',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'imageType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'imageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deleteall' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'imageType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'imageType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'upload' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}/{imageType}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'imageType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_listings = new Google_Service_AndroidPublisher_Resource_EditsListings(
+ $this,
+ $this->serviceName,
+ 'listings',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deleteall' => array(
+ 'path' => '{packageName}/edits/{editId}/listings',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{packageName}/edits/{editId}/listings',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{packageName}/edits/{editId}/listings/{language}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_testers = new Google_Service_AndroidPublisher_Resource_EditsTesters(
+ $this,
+ $this->serviceName,
+ 'testers',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{packageName}/edits/{editId}/testers/{track}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'track' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{packageName}/edits/{editId}/testers/{track}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'track' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{packageName}/edits/{editId}/testers/{track}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'track' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->edits_tracks = new Google_Service_AndroidPublisher_Resource_EditsTracks(
+ $this,
+ $this->serviceName,
+ 'tracks',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{packageName}/edits/{editId}/tracks/{track}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'track' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{packageName}/edits/{editId}/tracks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{packageName}/edits/{editId}/tracks/{track}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'track' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{packageName}/edits/{editId}/tracks/{track}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'editId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'track' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->entitlements = new Google_Service_AndroidPublisher_Resource_Entitlements(
+ $this,
+ $this->serviceName,
+ 'entitlements',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{packageName}/entitlements',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'productId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->inappproducts = new Google_Service_AndroidPublisher_Resource_Inappproducts(
+ $this,
+ $this->serviceName,
+ 'inappproducts',
+ array(
+ 'methods' => array(
+ 'batch' => array(
+ 'path' => 'inappproducts/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => '{packageName}/inappproducts/{sku}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sku' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{packageName}/inappproducts/{sku}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sku' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{packageName}/inappproducts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoConvertMissingPrices' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{packageName}/inappproducts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{packageName}/inappproducts/{sku}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sku' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoConvertMissingPrices' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{packageName}/inappproducts/{sku}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sku' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoConvertMissingPrices' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->purchases_products = new Google_Service_AndroidPublisher_Resource_PurchasesProducts(
+ $this,
+ $this->serviceName,
+ 'products',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{packageName}/purchases/products/{productId}/tokens/{token}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'token' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->purchases_subscriptions = new Google_Service_AndroidPublisher_Resource_PurchasesSubscriptions(
+ $this,
+ $this->serviceName,
+ 'subscriptions',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'token' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'defer' => array(
+ 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'token' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'token' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'refund' => array(
+ 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'token' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'revoke' => array(
+ 'path' => '{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'token' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->purchases_voidedpurchases = new Google_Service_AndroidPublisher_Resource_PurchasesVoidedpurchases(
+ $this,
+ $this->serviceName,
+ 'voidedpurchases',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{packageName}/purchases/voidedpurchases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reviews = new Google_Service_AndroidPublisher_Resource_Reviews(
+ $this,
+ $this->serviceName,
+ 'reviews',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{packageName}/reviews/{reviewId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reviewId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'translationLanguage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{packageName}/reviews',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'translationLanguage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'reply' => array(
+ 'path' => '{packageName}/reviews/{reviewId}:reply',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'packageName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reviewId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Apk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Apk.php
new file mode 100644
index 00000000..25b7a54b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Apk.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Apk extends Google_Model
+{
+ protected $binaryType = 'Google_Service_AndroidPublisher_ApkBinary';
+ protected $binaryDataType = '';
+ public $versionCode;
+
+ public function setBinary(Google_Service_AndroidPublisher_ApkBinary $binary)
+ {
+ $this->binary = $binary;
+ }
+ public function getBinary()
+ {
+ return $this->binary;
+ }
+ public function setVersionCode($versionCode)
+ {
+ $this->versionCode = $versionCode;
+ }
+ public function getVersionCode()
+ {
+ return $this->versionCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkBinary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkBinary.php
new file mode 100644
index 00000000..713000e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkBinary.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ApkBinary extends Google_Model
+{
+ public $sha1;
+
+ public function setSha1($sha1)
+ {
+ $this->sha1 = $sha1;
+ }
+ public function getSha1()
+ {
+ return $this->sha1;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListing.php
new file mode 100644
index 00000000..ee624744
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListing.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ApkListing extends Google_Model
+{
+ public $language;
+ public $recentChanges;
+
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setRecentChanges($recentChanges)
+ {
+ $this->recentChanges = $recentChanges;
+ }
+ public function getRecentChanges()
+ {
+ return $this->recentChanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListingsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListingsListResponse.php
new file mode 100644
index 00000000..d9adb37a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApkListingsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Collection
+{
+ protected $collection_key = 'listings';
+ public $kind;
+ protected $listingsType = 'Google_Service_AndroidPublisher_ApkListing';
+ protected $listingsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setListings($listings)
+ {
+ $this->listings = $listings;
+ }
+ public function getListings()
+ {
+ return $this->listings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedRequest.php
new file mode 100644
index 00000000..d7ca9cd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest extends Google_Model
+{
+ protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk';
+ protected $externallyHostedApkDataType = '';
+
+ public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk)
+ {
+ $this->externallyHostedApk = $externallyHostedApk;
+ }
+ public function getExternallyHostedApk()
+ {
+ return $this->externallyHostedApk;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedResponse.php
new file mode 100644
index 00000000..2829511e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksAddExternallyHostedResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse extends Google_Model
+{
+ protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk';
+ protected $externallyHostedApkDataType = '';
+
+ public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk)
+ {
+ $this->externallyHostedApk = $externallyHostedApk;
+ }
+ public function getExternallyHostedApk()
+ {
+ return $this->externallyHostedApk;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksListResponse.php
new file mode 100644
index 00000000..040a7459
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ApksListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection
+{
+ protected $collection_key = 'apks';
+ protected $apksType = 'Google_Service_AndroidPublisher_Apk';
+ protected $apksDataType = 'array';
+ public $kind;
+
+ public function setApks($apks)
+ {
+ $this->apks = $apks;
+ }
+ public function getApks()
+ {
+ return $this->apks;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppDetails.php
new file mode 100644
index 00000000..6fe56b02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppDetails.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_AppDetails extends Google_Model
+{
+ public $contactEmail;
+ public $contactPhone;
+ public $contactWebsite;
+ public $defaultLanguage;
+
+ public function setContactEmail($contactEmail)
+ {
+ $this->contactEmail = $contactEmail;
+ }
+ public function getContactEmail()
+ {
+ return $this->contactEmail;
+ }
+ public function setContactPhone($contactPhone)
+ {
+ $this->contactPhone = $contactPhone;
+ }
+ public function getContactPhone()
+ {
+ return $this->contactPhone;
+ }
+ public function setContactWebsite($contactWebsite)
+ {
+ $this->contactWebsite = $contactWebsite;
+ }
+ public function getContactWebsite()
+ {
+ return $this->contactWebsite;
+ }
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppEdit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppEdit.php
new file mode 100644
index 00000000..4175f551
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/AppEdit.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_AppEdit extends Google_Model
+{
+ public $expiryTimeSeconds;
+ public $id;
+
+ public function setExpiryTimeSeconds($expiryTimeSeconds)
+ {
+ $this->expiryTimeSeconds = $expiryTimeSeconds;
+ }
+ public function getExpiryTimeSeconds()
+ {
+ return $this->expiryTimeSeconds;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Comment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Comment.php
new file mode 100644
index 00000000..dab712f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Comment.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Comment extends Google_Model
+{
+ protected $developerCommentType = 'Google_Service_AndroidPublisher_DeveloperComment';
+ protected $developerCommentDataType = '';
+ protected $userCommentType = 'Google_Service_AndroidPublisher_UserComment';
+ protected $userCommentDataType = '';
+
+ public function setDeveloperComment(Google_Service_AndroidPublisher_DeveloperComment $developerComment)
+ {
+ $this->developerComment = $developerComment;
+ }
+ public function getDeveloperComment()
+ {
+ return $this->developerComment;
+ }
+ public function setUserComment(Google_Service_AndroidPublisher_UserComment $userComment)
+ {
+ $this->userComment = $userComment;
+ }
+ public function getUserComment()
+ {
+ return $this->userComment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFile.php
new file mode 100644
index 00000000..9c3389b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFile.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_DeobfuscationFile extends Google_Model
+{
+ public $symbolType;
+
+ public function setSymbolType($symbolType)
+ {
+ $this->symbolType = $symbolType;
+ }
+ public function getSymbolType()
+ {
+ return $this->symbolType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFilesUploadResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFilesUploadResponse.php
new file mode 100644
index 00000000..598ce394
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeobfuscationFilesUploadResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_DeobfuscationFilesUploadResponse extends Google_Model
+{
+ protected $deobfuscationFileType = 'Google_Service_AndroidPublisher_DeobfuscationFile';
+ protected $deobfuscationFileDataType = '';
+
+ public function setDeobfuscationFile(Google_Service_AndroidPublisher_DeobfuscationFile $deobfuscationFile)
+ {
+ $this->deobfuscationFile = $deobfuscationFile;
+ }
+ public function getDeobfuscationFile()
+ {
+ return $this->deobfuscationFile;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeveloperComment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeveloperComment.php
new file mode 100644
index 00000000..5686bf9e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeveloperComment.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_DeveloperComment extends Google_Model
+{
+ protected $lastModifiedType = 'Google_Service_AndroidPublisher_Timestamp';
+ protected $lastModifiedDataType = '';
+ public $text;
+
+ public function setLastModified(Google_Service_AndroidPublisher_Timestamp $lastModified)
+ {
+ $this->lastModified = $lastModified;
+ }
+ public function getLastModified()
+ {
+ return $this->lastModified;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeviceMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeviceMetadata.php
new file mode 100644
index 00000000..ebd0036f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/DeviceMetadata.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_DeviceMetadata extends Google_Model
+{
+ public $cpuMake;
+ public $cpuModel;
+ public $deviceClass;
+ public $glEsVersion;
+ public $manufacturer;
+ public $nativePlatform;
+ public $productName;
+ public $ramMb;
+ public $screenDensityDpi;
+ public $screenHeightPx;
+ public $screenWidthPx;
+
+ public function setCpuMake($cpuMake)
+ {
+ $this->cpuMake = $cpuMake;
+ }
+ public function getCpuMake()
+ {
+ return $this->cpuMake;
+ }
+ public function setCpuModel($cpuModel)
+ {
+ $this->cpuModel = $cpuModel;
+ }
+ public function getCpuModel()
+ {
+ return $this->cpuModel;
+ }
+ public function setDeviceClass($deviceClass)
+ {
+ $this->deviceClass = $deviceClass;
+ }
+ public function getDeviceClass()
+ {
+ return $this->deviceClass;
+ }
+ public function setGlEsVersion($glEsVersion)
+ {
+ $this->glEsVersion = $glEsVersion;
+ }
+ public function getGlEsVersion()
+ {
+ return $this->glEsVersion;
+ }
+ public function setManufacturer($manufacturer)
+ {
+ $this->manufacturer = $manufacturer;
+ }
+ public function getManufacturer()
+ {
+ return $this->manufacturer;
+ }
+ public function setNativePlatform($nativePlatform)
+ {
+ $this->nativePlatform = $nativePlatform;
+ }
+ public function getNativePlatform()
+ {
+ return $this->nativePlatform;
+ }
+ public function setProductName($productName)
+ {
+ $this->productName = $productName;
+ }
+ public function getProductName()
+ {
+ return $this->productName;
+ }
+ public function setRamMb($ramMb)
+ {
+ $this->ramMb = $ramMb;
+ }
+ public function getRamMb()
+ {
+ return $this->ramMb;
+ }
+ public function setScreenDensityDpi($screenDensityDpi)
+ {
+ $this->screenDensityDpi = $screenDensityDpi;
+ }
+ public function getScreenDensityDpi()
+ {
+ return $this->screenDensityDpi;
+ }
+ public function setScreenHeightPx($screenHeightPx)
+ {
+ $this->screenHeightPx = $screenHeightPx;
+ }
+ public function getScreenHeightPx()
+ {
+ return $this->screenHeightPx;
+ }
+ public function setScreenWidthPx($screenWidthPx)
+ {
+ $this->screenWidthPx = $screenWidthPx;
+ }
+ public function getScreenWidthPx()
+ {
+ return $this->screenWidthPx;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Entitlement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Entitlement.php
new file mode 100644
index 00000000..79a76811
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Entitlement.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Entitlement extends Google_Model
+{
+ public $kind;
+ public $productId;
+ public $productType;
+ public $token;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setProductType($productType)
+ {
+ $this->productType = $productType;
+ }
+ public function getProductType()
+ {
+ return $this->productType;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/EntitlementsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/EntitlementsListResponse.php
new file mode 100644
index 00000000..c6ba8213
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/EntitlementsListResponse.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_EntitlementsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $resourcesType = 'Google_Service_AndroidPublisher_Entitlement';
+ protected $resourcesDataType = 'array';
+ protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+ public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFile.php
new file mode 100644
index 00000000..32635979
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFile.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model
+{
+ public $fileSize;
+ public $referencesVersion;
+
+ public function setFileSize($fileSize)
+ {
+ $this->fileSize = $fileSize;
+ }
+ public function getFileSize()
+ {
+ return $this->fileSize;
+ }
+ public function setReferencesVersion($referencesVersion)
+ {
+ $this->referencesVersion = $referencesVersion;
+ }
+ public function getReferencesVersion()
+ {
+ return $this->referencesVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFilesUploadResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFilesUploadResponse.php
new file mode 100644
index 00000000..b53010d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExpansionFilesUploadResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Google_Model
+{
+ protected $expansionFileType = 'Google_Service_AndroidPublisher_ExpansionFile';
+ protected $expansionFileDataType = '';
+
+ public function setExpansionFile(Google_Service_AndroidPublisher_ExpansionFile $expansionFile)
+ {
+ $this->expansionFile = $expansionFile;
+ }
+ public function getExpansionFile()
+ {
+ return $this->expansionFile;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApk.php
new file mode 100644
index 00000000..1f4bc1c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApk.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ExternallyHostedApk extends Google_Collection
+{
+ protected $collection_key = 'usesPermissions';
+ public $applicationLabel;
+ public $certificateBase64s;
+ public $externallyHostedUrl;
+ public $fileSha1Base64;
+ public $fileSha256Base64;
+ public $fileSize;
+ public $iconBase64;
+ public $maximumSdk;
+ public $minimumSdk;
+ public $nativeCodes;
+ public $packageName;
+ public $usesFeatures;
+ protected $usesPermissionsType = 'Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission';
+ protected $usesPermissionsDataType = 'array';
+ public $versionCode;
+ public $versionName;
+
+ public function setApplicationLabel($applicationLabel)
+ {
+ $this->applicationLabel = $applicationLabel;
+ }
+ public function getApplicationLabel()
+ {
+ return $this->applicationLabel;
+ }
+ public function setCertificateBase64s($certificateBase64s)
+ {
+ $this->certificateBase64s = $certificateBase64s;
+ }
+ public function getCertificateBase64s()
+ {
+ return $this->certificateBase64s;
+ }
+ public function setExternallyHostedUrl($externallyHostedUrl)
+ {
+ $this->externallyHostedUrl = $externallyHostedUrl;
+ }
+ public function getExternallyHostedUrl()
+ {
+ return $this->externallyHostedUrl;
+ }
+ public function setFileSha1Base64($fileSha1Base64)
+ {
+ $this->fileSha1Base64 = $fileSha1Base64;
+ }
+ public function getFileSha1Base64()
+ {
+ return $this->fileSha1Base64;
+ }
+ public function setFileSha256Base64($fileSha256Base64)
+ {
+ $this->fileSha256Base64 = $fileSha256Base64;
+ }
+ public function getFileSha256Base64()
+ {
+ return $this->fileSha256Base64;
+ }
+ public function setFileSize($fileSize)
+ {
+ $this->fileSize = $fileSize;
+ }
+ public function getFileSize()
+ {
+ return $this->fileSize;
+ }
+ public function setIconBase64($iconBase64)
+ {
+ $this->iconBase64 = $iconBase64;
+ }
+ public function getIconBase64()
+ {
+ return $this->iconBase64;
+ }
+ public function setMaximumSdk($maximumSdk)
+ {
+ $this->maximumSdk = $maximumSdk;
+ }
+ public function getMaximumSdk()
+ {
+ return $this->maximumSdk;
+ }
+ public function setMinimumSdk($minimumSdk)
+ {
+ $this->minimumSdk = $minimumSdk;
+ }
+ public function getMinimumSdk()
+ {
+ return $this->minimumSdk;
+ }
+ public function setNativeCodes($nativeCodes)
+ {
+ $this->nativeCodes = $nativeCodes;
+ }
+ public function getNativeCodes()
+ {
+ return $this->nativeCodes;
+ }
+ public function setPackageName($packageName)
+ {
+ $this->packageName = $packageName;
+ }
+ public function getPackageName()
+ {
+ return $this->packageName;
+ }
+ public function setUsesFeatures($usesFeatures)
+ {
+ $this->usesFeatures = $usesFeatures;
+ }
+ public function getUsesFeatures()
+ {
+ return $this->usesFeatures;
+ }
+ public function setUsesPermissions($usesPermissions)
+ {
+ $this->usesPermissions = $usesPermissions;
+ }
+ public function getUsesPermissions()
+ {
+ return $this->usesPermissions;
+ }
+ public function setVersionCode($versionCode)
+ {
+ $this->versionCode = $versionCode;
+ }
+ public function getVersionCode()
+ {
+ return $this->versionCode;
+ }
+ public function setVersionName($versionName)
+ {
+ $this->versionName = $versionName;
+ }
+ public function getVersionName()
+ {
+ return $this->versionName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApkUsesPermission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApkUsesPermission.php
new file mode 100644
index 00000000..27fd1b00
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ExternallyHostedApkUsesPermission.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission extends Google_Model
+{
+ public $maxSdkVersion;
+ public $name;
+
+ public function setMaxSdkVersion($maxSdkVersion)
+ {
+ $this->maxSdkVersion = $maxSdkVersion;
+ }
+ public function getMaxSdkVersion()
+ {
+ return $this->maxSdkVersion;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Image.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Image.php
new file mode 100644
index 00000000..269ceb7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Image.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Image extends Google_Model
+{
+ public $id;
+ public $sha1;
+ public $url;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSha1($sha1)
+ {
+ $this->sha1 = $sha1;
+ }
+ public function getSha1()
+ {
+ return $this->sha1;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesDeleteAllResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesDeleteAllResponse.php
new file mode 100644
index 00000000..7d2fcf3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesDeleteAllResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ImagesDeleteAllResponse extends Google_Collection
+{
+ protected $collection_key = 'deleted';
+ protected $deletedType = 'Google_Service_AndroidPublisher_Image';
+ protected $deletedDataType = 'array';
+
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesListResponse.php
new file mode 100644
index 00000000..740f9a04
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ImagesListResponse extends Google_Collection
+{
+ protected $collection_key = 'images';
+ protected $imagesType = 'Google_Service_AndroidPublisher_Image';
+ protected $imagesDataType = 'array';
+
+ public function setImages($images)
+ {
+ $this->images = $images;
+ }
+ public function getImages()
+ {
+ return $this->images;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesUploadResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesUploadResponse.php
new file mode 100644
index 00000000..1e8514b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ImagesUploadResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ImagesUploadResponse extends Google_Model
+{
+ protected $imageType = 'Google_Service_AndroidPublisher_Image';
+ protected $imageDataType = '';
+
+ public function setImage(Google_Service_AndroidPublisher_Image $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php
new file mode 100644
index 00000000..c4c503b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProduct.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InAppProduct extends Google_Model
+{
+ public $defaultLanguage;
+ protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price';
+ protected $defaultPriceDataType = '';
+ protected $listingsType = 'Google_Service_AndroidPublisher_InAppProductListing';
+ protected $listingsDataType = 'map';
+ public $packageName;
+ protected $pricesType = 'Google_Service_AndroidPublisher_Price';
+ protected $pricesDataType = 'map';
+ public $purchaseType;
+ protected $seasonType = 'Google_Service_AndroidPublisher_Season';
+ protected $seasonDataType = '';
+ public $sku;
+ public $status;
+ public $subscriptionPeriod;
+ public $trialPeriod;
+
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice)
+ {
+ $this->defaultPrice = $defaultPrice;
+ }
+ public function getDefaultPrice()
+ {
+ return $this->defaultPrice;
+ }
+ public function setListings($listings)
+ {
+ $this->listings = $listings;
+ }
+ public function getListings()
+ {
+ return $this->listings;
+ }
+ public function setPackageName($packageName)
+ {
+ $this->packageName = $packageName;
+ }
+ public function getPackageName()
+ {
+ return $this->packageName;
+ }
+ public function setPrices($prices)
+ {
+ $this->prices = $prices;
+ }
+ public function getPrices()
+ {
+ return $this->prices;
+ }
+ public function setPurchaseType($purchaseType)
+ {
+ $this->purchaseType = $purchaseType;
+ }
+ public function getPurchaseType()
+ {
+ return $this->purchaseType;
+ }
+ public function setSeason(Google_Service_AndroidPublisher_Season $season)
+ {
+ $this->season = $season;
+ }
+ public function getSeason()
+ {
+ return $this->season;
+ }
+ public function setSku($sku)
+ {
+ $this->sku = $sku;
+ }
+ public function getSku()
+ {
+ return $this->sku;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSubscriptionPeriod($subscriptionPeriod)
+ {
+ $this->subscriptionPeriod = $subscriptionPeriod;
+ }
+ public function getSubscriptionPeriod()
+ {
+ return $this->subscriptionPeriod;
+ }
+ public function setTrialPeriod($trialPeriod)
+ {
+ $this->trialPeriod = $trialPeriod;
+ }
+ public function getTrialPeriod()
+ {
+ return $this->trialPeriod;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProductListing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProductListing.php
new file mode 100644
index 00000000..1c3388b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InAppProductListing.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InAppProductListing extends Google_Model
+{
+ public $description;
+ public $title;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequest.php
new file mode 100644
index 00000000..6ab8fa5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entrys';
+ protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchRequestEntry';
+ protected $entrysDataType = 'array';
+
+ public function setEntrys($entrys)
+ {
+ $this->entrys = $entrys;
+ }
+ public function getEntrys()
+ {
+ return $this->entrys;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequestEntry.php
new file mode 100644
index 00000000..8677b014
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchRequestEntry.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsBatchRequestEntry extends Google_Model
+{
+ public $batchId;
+ protected $inappproductsinsertrequestType = 'Google_Service_AndroidPublisher_InappproductsInsertRequest';
+ protected $inappproductsinsertrequestDataType = '';
+ protected $inappproductsupdaterequestType = 'Google_Service_AndroidPublisher_InappproductsUpdateRequest';
+ protected $inappproductsupdaterequestDataType = '';
+ public $methodName;
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setInappproductsinsertrequest(Google_Service_AndroidPublisher_InappproductsInsertRequest $inappproductsinsertrequest)
+ {
+ $this->inappproductsinsertrequest = $inappproductsinsertrequest;
+ }
+ public function getInappproductsinsertrequest()
+ {
+ return $this->inappproductsinsertrequest;
+ }
+ public function setInappproductsupdaterequest(Google_Service_AndroidPublisher_InappproductsUpdateRequest $inappproductsupdaterequest)
+ {
+ $this->inappproductsupdaterequest = $inappproductsupdaterequest;
+ }
+ public function getInappproductsupdaterequest()
+ {
+ return $this->inappproductsupdaterequest;
+ }
+ public function setMethodName($methodName)
+ {
+ $this->methodName = $methodName;
+ }
+ public function getMethodName()
+ {
+ return $this->methodName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponse.php
new file mode 100644
index 00000000..324864ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entrys';
+ protected $entrysType = 'Google_Service_AndroidPublisher_InappproductsBatchResponseEntry';
+ protected $entrysDataType = 'array';
+ public $kind;
+
+ public function setEntrys($entrys)
+ {
+ $this->entrys = $entrys;
+ }
+ public function getEntrys()
+ {
+ return $this->entrys;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponseEntry.php
new file mode 100644
index 00000000..ed82acc5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsBatchResponseEntry.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $inappproductsinsertresponseType = 'Google_Service_AndroidPublisher_InappproductsInsertResponse';
+ protected $inappproductsinsertresponseDataType = '';
+ protected $inappproductsupdateresponseType = 'Google_Service_AndroidPublisher_InappproductsUpdateResponse';
+ protected $inappproductsupdateresponseDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setInappproductsinsertresponse(Google_Service_AndroidPublisher_InappproductsInsertResponse $inappproductsinsertresponse)
+ {
+ $this->inappproductsinsertresponse = $inappproductsinsertresponse;
+ }
+ public function getInappproductsinsertresponse()
+ {
+ return $this->inappproductsinsertresponse;
+ }
+ public function setInappproductsupdateresponse(Google_Service_AndroidPublisher_InappproductsUpdateResponse $inappproductsupdateresponse)
+ {
+ $this->inappproductsupdateresponse = $inappproductsupdateresponse;
+ }
+ public function getInappproductsupdateresponse()
+ {
+ return $this->inappproductsupdateresponse;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertRequest.php
new file mode 100644
index 00000000..ed15881c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsInsertRequest extends Google_Model
+{
+ protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct';
+ protected $inappproductDataType = '';
+
+ public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct)
+ {
+ $this->inappproduct = $inappproduct;
+ }
+ public function getInappproduct()
+ {
+ return $this->inappproduct;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertResponse.php
new file mode 100644
index 00000000..079e375c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsInsertResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsInsertResponse extends Google_Model
+{
+ protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct';
+ protected $inappproductDataType = '';
+
+ public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct)
+ {
+ $this->inappproduct = $inappproduct;
+ }
+ public function getInappproduct()
+ {
+ return $this->inappproduct;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsListResponse.php
new file mode 100644
index 00000000..a6ee8471
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsListResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsListResponse extends Google_Collection
+{
+ protected $collection_key = 'inappproduct';
+ protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct';
+ protected $inappproductDataType = 'array';
+ public $kind;
+ protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setInappproduct($inappproduct)
+ {
+ $this->inappproduct = $inappproduct;
+ }
+ public function getInappproduct()
+ {
+ return $this->inappproduct;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateRequest.php
new file mode 100644
index 00000000..35647417
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsUpdateRequest extends Google_Model
+{
+ protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct';
+ protected $inappproductDataType = '';
+
+ public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct)
+ {
+ $this->inappproduct = $inappproduct;
+ }
+ public function getInappproduct()
+ {
+ return $this->inappproduct;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateResponse.php
new file mode 100644
index 00000000..6966db8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/InappproductsUpdateResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_InappproductsUpdateResponse extends Google_Model
+{
+ protected $inappproductType = 'Google_Service_AndroidPublisher_InAppProduct';
+ protected $inappproductDataType = '';
+
+ public function setInappproduct(Google_Service_AndroidPublisher_InAppProduct $inappproduct)
+ {
+ $this->inappproduct = $inappproduct;
+ }
+ public function getInappproduct()
+ {
+ return $this->inappproduct;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Listing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Listing.php
new file mode 100644
index 00000000..97677c40
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Listing.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Listing extends Google_Model
+{
+ public $fullDescription;
+ public $language;
+ public $shortDescription;
+ public $title;
+ public $video;
+
+ public function setFullDescription($fullDescription)
+ {
+ $this->fullDescription = $fullDescription;
+ }
+ public function getFullDescription()
+ {
+ return $this->fullDescription;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setShortDescription($shortDescription)
+ {
+ $this->shortDescription = $shortDescription;
+ }
+ public function getShortDescription()
+ {
+ return $this->shortDescription;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setVideo($video)
+ {
+ $this->video = $video;
+ }
+ public function getVideo()
+ {
+ return $this->video;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ListingsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ListingsListResponse.php
new file mode 100644
index 00000000..5f864bbe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ListingsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ListingsListResponse extends Google_Collection
+{
+ protected $collection_key = 'listings';
+ public $kind;
+ protected $listingsType = 'Google_Service_AndroidPublisher_Listing';
+ protected $listingsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setListings($listings)
+ {
+ $this->listings = $listings;
+ }
+ public function getListings()
+ {
+ return $this->listings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/MonthDay.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/MonthDay.php
new file mode 100644
index 00000000..cb2e1ec9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/MonthDay.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_MonthDay extends Google_Model
+{
+ public $day;
+ public $month;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth($month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/PageInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/PageInfo.php
new file mode 100644
index 00000000..18ba5507
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/PageInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_PageInfo extends Google_Model
+{
+ public $resultPerPage;
+ public $startIndex;
+ public $totalResults;
+
+ public function setResultPerPage($resultPerPage)
+ {
+ $this->resultPerPage = $resultPerPage;
+ }
+ public function getResultPerPage()
+ {
+ return $this->resultPerPage;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Price.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Price.php
new file mode 100644
index 00000000..211e5744
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Price.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Price extends Google_Model
+{
+ public $currency;
+ public $priceMicros;
+
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setPriceMicros($priceMicros)
+ {
+ $this->priceMicros = $priceMicros;
+ }
+ public function getPriceMicros()
+ {
+ return $this->priceMicros;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ProductPurchase.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ProductPurchase.php
new file mode 100644
index 00000000..f4cc2aae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ProductPurchase.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ProductPurchase extends Google_Model
+{
+ public $consumptionState;
+ public $developerPayload;
+ public $kind;
+ public $purchaseState;
+ public $purchaseTimeMillis;
+
+ public function setConsumptionState($consumptionState)
+ {
+ $this->consumptionState = $consumptionState;
+ }
+ public function getConsumptionState()
+ {
+ return $this->consumptionState;
+ }
+ public function setDeveloperPayload($developerPayload)
+ {
+ $this->developerPayload = $developerPayload;
+ }
+ public function getDeveloperPayload()
+ {
+ return $this->developerPayload;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPurchaseState($purchaseState)
+ {
+ $this->purchaseState = $purchaseState;
+ }
+ public function getPurchaseState()
+ {
+ return $this->purchaseState;
+ }
+ public function setPurchaseTimeMillis($purchaseTimeMillis)
+ {
+ $this->purchaseTimeMillis = $purchaseTimeMillis;
+ }
+ public function getPurchaseTimeMillis()
+ {
+ return $this->purchaseTimeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Prorate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Prorate.php
new file mode 100644
index 00000000..099f6a0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Prorate.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Prorate extends Google_Model
+{
+ protected $defaultPriceType = 'Google_Service_AndroidPublisher_Price';
+ protected $defaultPriceDataType = '';
+ protected $startType = 'Google_Service_AndroidPublisher_MonthDay';
+ protected $startDataType = '';
+
+ public function setDefaultPrice(Google_Service_AndroidPublisher_Price $defaultPrice)
+ {
+ $this->defaultPrice = $defaultPrice;
+ }
+ public function getDefaultPrice()
+ {
+ return $this->defaultPrice;
+ }
+ public function setStart(Google_Service_AndroidPublisher_MonthDay $start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Edits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Edits.php
new file mode 100644
index 00000000..717e239c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Edits.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "edits" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $edits = $androidpublisherService->edits;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_Edits extends Google_Service_Resource
+{
+ /**
+ * Commits/applies the changes made in this edit back to the app. (edits.commit)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_AppEdit
+ */
+ public function commit($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('commit', array($params), "Google_Service_AndroidPublisher_AppEdit");
+ }
+ /**
+ * Deletes an edit for an app. Creating a new edit will automatically delete any
+ * of your previous edits so this method need only be called if you want to
+ * preemptively abandon an edit. (edits.delete)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns information about the edit specified. Calls will fail if the edit is
+ * no long active (e.g. has been deleted, superseded or expired). (edits.get)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_AppEdit
+ */
+ public function get($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppEdit");
+ }
+ /**
+ * Creates a new edit for an app, populated with the app's current state.
+ * (edits.insert)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param Google_Service_AndroidPublisher_AppEdit $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_AppEdit
+ */
+ public function insert($packageName, Google_Service_AndroidPublisher_AppEdit $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidPublisher_AppEdit");
+ }
+ /**
+ * Checks that the edit can be successfully committed. The edit's changes are
+ * not applied to the live app. (edits.validate)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_AppEdit
+ */
+ public function validate($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('validate', array($params), "Google_Service_AndroidPublisher_AppEdit");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApklistings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApklistings.php
new file mode 100644
index 00000000..ede1af67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApklistings.php
@@ -0,0 +1,148 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "apklistings" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $apklistings = $androidpublisherService->apklistings;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsApklistings extends Google_Service_Resource
+{
+ /**
+ * Deletes the APK-specific localized listing for a specified APK and language
+ * code. (apklistings.delete)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The APK version code whose APK-specific listings
+ * should be read or modified.
+ * @param string $language The language code (a BCP-47 language tag) of the APK-
+ * specific localized listing to read or modify. For example, to select Austrian
+ * German, pass "de-AT".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($packageName, $editId, $apkVersionCode, $language, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Deletes all the APK-specific localized listings for a specified APK.
+ * (apklistings.deleteall)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The APK version code whose APK-specific listings
+ * should be read or modified.
+ * @param array $optParams Optional parameters.
+ */
+ public function deleteall($packageName, $editId, $apkVersionCode, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteall', array($params));
+ }
+ /**
+ * Fetches the APK-specific localized listing for a specified APK and language
+ * code. (apklistings.get)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The APK version code whose APK-specific listings
+ * should be read or modified.
+ * @param string $language The language code (a BCP-47 language tag) of the APK-
+ * specific localized listing to read or modify. For example, to select Austrian
+ * German, pass "de-AT".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ApkListing
+ */
+ public function get($packageName, $editId, $apkVersionCode, $language, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_ApkListing");
+ }
+ /**
+ * Lists all the APK-specific localized listings for a specified APK.
+ * (apklistings.listEditsApklistings)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The APK version code whose APK-specific listings
+ * should be read or modified.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ApkListingsListResponse
+ */
+ public function listEditsApklistings($packageName, $editId, $apkVersionCode, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApkListingsListResponse");
+ }
+ /**
+ * Updates or creates the APK-specific localized listing for a specified APK and
+ * language code. This method supports patch semantics. (apklistings.patch)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The APK version code whose APK-specific listings
+ * should be read or modified.
+ * @param string $language The language code (a BCP-47 language tag) of the APK-
+ * specific localized listing to read or modify. For example, to select Austrian
+ * German, pass "de-AT".
+ * @param Google_Service_AndroidPublisher_ApkListing $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ApkListing
+ */
+ public function patch($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ApkListing");
+ }
+ /**
+ * Updates or creates the APK-specific localized listing for a specified APK and
+ * language code. (apklistings.update)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The APK version code whose APK-specific listings
+ * should be read or modified.
+ * @param string $language The language code (a BCP-47 language tag) of the APK-
+ * specific localized listing to read or modify. For example, to select Austrian
+ * German, pass "de-AT".
+ * @param Google_Service_AndroidPublisher_ApkListing $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ApkListing
+ */
+ public function update($packageName, $editId, $apkVersionCode, $language, Google_Service_AndroidPublisher_ApkListing $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'language' => $language, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidPublisher_ApkListing");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApks.php
new file mode 100644
index 00000000..a26caa6b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsApks.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "apks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $apks = $androidpublisherService->apks;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsApks extends Google_Service_Resource
+{
+ /**
+ * Creates a new APK without uploading the APK itself to Google Play, instead
+ * hosting the APK at a specified URL. This function is only available to
+ * enterprises using Google Play for Work whose application is configured to
+ * restrict distribution to the enterprise domain. (apks.addexternallyhosted)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse
+ */
+ public function addexternallyhosted($packageName, $editId, Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addexternallyhosted', array($params), "Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse");
+ }
+ /**
+ * (apks.listEditsApks)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ApksListResponse
+ */
+ public function listEditsApks($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_ApksListResponse");
+ }
+ /**
+ * (apks.upload)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Apk
+ */
+ public function upload($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('upload', array($params), "Google_Service_AndroidPublisher_Apk");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDeobfuscationfiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDeobfuscationfiles.php
new file mode 100644
index 00000000..b8b46996
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDeobfuscationfiles.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "deobfuscationfiles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $deobfuscationfiles = $androidpublisherService->deobfuscationfiles;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsDeobfuscationfiles extends Google_Service_Resource
+{
+ /**
+ * Uploads the deobfuscation file of the specified APK. If a deobfuscation file
+ * already exists, it will be replaced. (deobfuscationfiles.upload)
+ *
+ * @param string $packageName Unique identifier of the Android app for which the
+ * deobfuscatiuon files are being uploaded; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The version code of the APK whose deobfuscation
+ * file is being uploaded.
+ * @param string $deobfuscationFileType
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_DeobfuscationFilesUploadResponse
+ */
+ public function upload($packageName, $editId, $apkVersionCode, $deobfuscationFileType, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'deobfuscationFileType' => $deobfuscationFileType);
+ $params = array_merge($params, $optParams);
+ return $this->call('upload', array($params), "Google_Service_AndroidPublisher_DeobfuscationFilesUploadResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDetails.php
new file mode 100644
index 00000000..2c0e2385
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsDetails.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "details" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $details = $androidpublisherService->details;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsDetails extends Google_Service_Resource
+{
+ /**
+ * Fetches app details for this edit. This includes the default language and
+ * developer support contact information. (details.get)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_AppDetails
+ */
+ public function get($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_AppDetails");
+ }
+ /**
+ * Updates app details for this edit. This method supports patch semantics.
+ * (details.patch)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param Google_Service_AndroidPublisher_AppDetails $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_AppDetails
+ */
+ public function patch($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidPublisher_AppDetails");
+ }
+ /**
+ * Updates app details for this edit. (details.update)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param Google_Service_AndroidPublisher_AppDetails $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_AppDetails
+ */
+ public function update($packageName, $editId, Google_Service_AndroidPublisher_AppDetails $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidPublisher_AppDetails");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsExpansionfiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsExpansionfiles.php
new file mode 100644
index 00000000..62e23a01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsExpansionfiles.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "expansionfiles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $expansionfiles = $androidpublisherService->expansionfiles;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsExpansionfiles extends Google_Service_Resource
+{
+ /**
+ * Fetches the Expansion File configuration for the APK specified.
+ * (expansionfiles.get)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The version code of the APK whose Expansion File
+ * configuration is being read or modified.
+ * @param string $expansionFileType
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ExpansionFile
+ */
+ public function get($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_ExpansionFile");
+ }
+ /**
+ * Updates the APK's Expansion File configuration to reference another APK's
+ * Expansion Files. To add a new Expansion File use the Upload method. This
+ * method supports patch semantics. (expansionfiles.patch)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The version code of the APK whose Expansion File
+ * configuration is being read or modified.
+ * @param string $expansionFileType
+ * @param Google_Service_AndroidPublisher_ExpansionFile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ExpansionFile
+ */
+ public function patch($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidPublisher_ExpansionFile");
+ }
+ /**
+ * Updates the APK's Expansion File configuration to reference another APK's
+ * Expansion Files. To add a new Expansion File use the Upload method.
+ * (expansionfiles.update)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The version code of the APK whose Expansion File
+ * configuration is being read or modified.
+ * @param string $expansionFileType
+ * @param Google_Service_AndroidPublisher_ExpansionFile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ExpansionFile
+ */
+ public function update($packageName, $editId, $apkVersionCode, $expansionFileType, Google_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidPublisher_ExpansionFile");
+ }
+ /**
+ * Uploads and attaches a new Expansion File to the APK specified.
+ * (expansionfiles.upload)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param int $apkVersionCode The version code of the APK whose Expansion File
+ * configuration is being read or modified.
+ * @param string $expansionFileType
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ExpansionFilesUploadResponse
+ */
+ public function upload($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType);
+ $params = array_merge($params, $optParams);
+ return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ExpansionFilesUploadResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsImages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsImages.php
new file mode 100644
index 00000000..769e6984
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsImages.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "images" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $images = $androidpublisherService->images;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsImages extends Google_Service_Resource
+{
+ /**
+ * Deletes the image (specified by id) from the edit. (images.delete)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing whose images are to read or modified. For example, to
+ * select Austrian German, pass "de-AT".
+ * @param string $imageType
+ * @param string $imageId Unique identifier an image within the set of images
+ * attached to this edit.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($packageName, $editId, $language, $imageType, $imageId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType, 'imageId' => $imageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Deletes all images for the specified language and image type.
+ * (images.deleteall)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing whose images are to read or modified. For example, to
+ * select Austrian German, pass "de-AT".
+ * @param string $imageType
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ImagesDeleteAllResponse
+ */
+ public function deleteall($packageName, $editId, $language, $imageType, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteall', array($params), "Google_Service_AndroidPublisher_ImagesDeleteAllResponse");
+ }
+ /**
+ * Lists all images for the specified language and image type.
+ * (images.listEditsImages)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing whose images are to read or modified. For example, to
+ * select Austrian German, pass "de-AT".
+ * @param string $imageType
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ImagesListResponse
+ */
+ public function listEditsImages($packageName, $editId, $language, $imageType, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_ImagesListResponse");
+ }
+ /**
+ * Uploads a new image and adds it to the list of images for the specified
+ * language and image type. (images.upload)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing whose images are to read or modified. For example, to
+ * select Austrian German, pass "de-AT".
+ * @param string $imageType
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ImagesUploadResponse
+ */
+ public function upload($packageName, $editId, $language, $imageType, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'imageType' => $imageType);
+ $params = array_merge($params, $optParams);
+ return $this->call('upload', array($params), "Google_Service_AndroidPublisher_ImagesUploadResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsListings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsListings.php
new file mode 100644
index 00000000..4cda2f67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsListings.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "listings" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $listings = $androidpublisherService->listings;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsListings extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified localized store listing from an edit. (listings.delete)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing to read or modify. For example, to select Austrian German,
+ * pass "de-AT".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($packageName, $editId, $language, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Deletes all localized listings from an edit. (listings.deleteall)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ */
+ public function deleteall($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteall', array($params));
+ }
+ /**
+ * Fetches information about a localized store listing. (listings.get)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing to read or modify. For example, to select Austrian German,
+ * pass "de-AT".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Listing
+ */
+ public function get($packageName, $editId, $language, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_Listing");
+ }
+ /**
+ * Returns all of the localized store listings attached to this edit.
+ * (listings.listEditsListings)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ListingsListResponse
+ */
+ public function listEditsListings($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_ListingsListResponse");
+ }
+ /**
+ * Creates or updates a localized store listing. This method supports patch
+ * semantics. (listings.patch)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing to read or modify. For example, to select Austrian German,
+ * pass "de-AT".
+ * @param Google_Service_AndroidPublisher_Listing $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Listing
+ */
+ public function patch($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Listing");
+ }
+ /**
+ * Creates or updates a localized store listing. (listings.update)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $language The language code (a BCP-47 language tag) of the
+ * localized listing to read or modify. For example, to select Austrian German,
+ * pass "de-AT".
+ * @param Google_Service_AndroidPublisher_Listing $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Listing
+ */
+ public function update($packageName, $editId, $language, Google_Service_AndroidPublisher_Listing $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidPublisher_Listing");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTesters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTesters.php
new file mode 100644
index 00000000..66a3a1a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTesters.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "testers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $testers = $androidpublisherService->testers;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsTesters extends Google_Service_Resource
+{
+ /**
+ * (testers.get)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $track
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Testers
+ */
+ public function get($packageName, $editId, $track, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_Testers");
+ }
+ /**
+ * (testers.patch)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $track
+ * @param Google_Service_AndroidPublisher_Testers $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Testers
+ */
+ public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Testers");
+ }
+ /**
+ * (testers.update)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $track
+ * @param Google_Service_AndroidPublisher_Testers $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Testers
+ */
+ public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Testers $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidPublisher_Testers");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php
new file mode 100644
index 00000000..be15dfea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/EditsTracks.php
@@ -0,0 +1,99 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tracks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $tracks = $androidpublisherService->tracks;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_EditsTracks extends Google_Service_Resource
+{
+ /**
+ * Fetches the track configuration for the specified track type. Includes the
+ * APK version codes that are in this track. (tracks.get)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $track The track type to read or modify.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Track
+ */
+ public function get($packageName, $editId, $track, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_Track");
+ }
+ /**
+ * Lists all the track configurations for this edit. (tracks.listEditsTracks)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_TracksListResponse
+ */
+ public function listEditsTracks($packageName, $editId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_TracksListResponse");
+ }
+ /**
+ * Updates the track configuration for the specified track type. When halted,
+ * the rollout track cannot be updated without adding new APKs, and adding new
+ * APKs will cause it to resume. This method supports patch semantics.
+ * (tracks.patch)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $track The track type to read or modify.
+ * @param Google_Service_AndroidPublisher_Track $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Track
+ */
+ public function patch($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidPublisher_Track");
+ }
+ /**
+ * Updates the track configuration for the specified track type. When halted,
+ * the rollout track cannot be updated without adding new APKs, and adding new
+ * APKs will cause it to resume. (tracks.update)
+ *
+ * @param string $packageName Unique identifier for the Android app that is
+ * being updated; for example, "com.spiffygame".
+ * @param string $editId Unique identifier for this edit.
+ * @param string $track The track type to read or modify.
+ * @param Google_Service_AndroidPublisher_Track $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_Track
+ */
+ public function update($packageName, $editId, $track, Google_Service_AndroidPublisher_Track $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidPublisher_Track");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Entitlements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Entitlements.php
new file mode 100644
index 00000000..690e7c39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Entitlements.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "entitlements" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $entitlements = $androidpublisherService->entitlements;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_Entitlements extends Google_Service_Resource
+{
+ /**
+ * Lists the user's current inapp item or subscription entitlements
+ * (entitlements.listEntitlements)
+ *
+ * @param string $packageName The package name of the application the inapp
+ * product was sold in (for example, 'com.some.thing').
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults
+ * @opt_param string productId The product id of the inapp product (for example,
+ * 'sku1'). This can be used to restrict the result set.
+ * @opt_param string startIndex
+ * @opt_param string token
+ * @return Google_Service_AndroidPublisher_EntitlementsListResponse
+ */
+ public function listEntitlements($packageName, $optParams = array())
+ {
+ $params = array('packageName' => $packageName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_EntitlementsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Inappproducts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Inappproducts.php
new file mode 100644
index 00000000..ec0c356e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Inappproducts.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "inappproducts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $inappproducts = $androidpublisherService->inappproducts;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_Inappproducts extends Google_Service_Resource
+{
+ /**
+ * (inappproducts.batch)
+ *
+ * @param Google_Service_AndroidPublisher_InappproductsBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_InappproductsBatchResponse
+ */
+ public function batch(Google_Service_AndroidPublisher_InappproductsBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batch', array($params), "Google_Service_AndroidPublisher_InappproductsBatchResponse");
+ }
+ /**
+ * Delete an in-app product for an app. (inappproducts.delete)
+ *
+ * @param string $packageName Unique identifier for the Android app with the in-
+ * app product; for example, "com.spiffygame".
+ * @param string $sku Unique identifier for the in-app product.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($packageName, $sku, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'sku' => $sku);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns information about the in-app product specified. (inappproducts.get)
+ *
+ * @param string $packageName
+ * @param string $sku Unique identifier for the in-app product.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_InAppProduct
+ */
+ public function get($packageName, $sku, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'sku' => $sku);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_InAppProduct");
+ }
+ /**
+ * Creates a new in-app product for an app. (inappproducts.insert)
+ *
+ * @param string $packageName Unique identifier for the Android app; for
+ * example, "com.spiffygame".
+ * @param Google_Service_AndroidPublisher_InAppProduct $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool autoConvertMissingPrices If true the prices for all regions
+ * targeted by the parent app that don't have a price specified for this in-app
+ * product will be auto converted to the target currency based on the default
+ * price. Defaults to false.
+ * @return Google_Service_AndroidPublisher_InAppProduct
+ */
+ public function insert($packageName, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidPublisher_InAppProduct");
+ }
+ /**
+ * List all the in-app products for an Android app, both subscriptions and
+ * managed in-app products.. (inappproducts.listInappproducts)
+ *
+ * @param string $packageName Unique identifier for the Android app with in-app
+ * products; for example, "com.spiffygame".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults
+ * @opt_param string startIndex
+ * @opt_param string token
+ * @return Google_Service_AndroidPublisher_InappproductsListResponse
+ */
+ public function listInappproducts($packageName, $optParams = array())
+ {
+ $params = array('packageName' => $packageName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_InappproductsListResponse");
+ }
+ /**
+ * Updates the details of an in-app product. This method supports patch
+ * semantics. (inappproducts.patch)
+ *
+ * @param string $packageName Unique identifier for the Android app with the in-
+ * app product; for example, "com.spiffygame".
+ * @param string $sku Unique identifier for the in-app product.
+ * @param Google_Service_AndroidPublisher_InAppProduct $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool autoConvertMissingPrices If true the prices for all regions
+ * targeted by the parent app that don't have a price specified for this in-app
+ * product will be auto converted to the target currency based on the default
+ * price. Defaults to false.
+ * @return Google_Service_AndroidPublisher_InAppProduct
+ */
+ public function patch($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidPublisher_InAppProduct");
+ }
+ /**
+ * Updates the details of an in-app product. (inappproducts.update)
+ *
+ * @param string $packageName Unique identifier for the Android app with the in-
+ * app product; for example, "com.spiffygame".
+ * @param string $sku Unique identifier for the in-app product.
+ * @param Google_Service_AndroidPublisher_InAppProduct $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool autoConvertMissingPrices If true the prices for all regions
+ * targeted by the parent app that don't have a price specified for this in-app
+ * product will be auto converted to the target currency based on the default
+ * price. Defaults to false.
+ * @return Google_Service_AndroidPublisher_InAppProduct
+ */
+ public function update($packageName, $sku, Google_Service_AndroidPublisher_InAppProduct $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'sku' => $sku, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidPublisher_InAppProduct");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Purchases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Purchases.php
new file mode 100644
index 00000000..65eee4b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Purchases.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "purchases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $purchases = $androidpublisherService->purchases;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_Purchases extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesProducts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesProducts.php
new file mode 100644
index 00000000..6dd82da9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesProducts.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "products" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $products = $androidpublisherService->products;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_PurchasesProducts extends Google_Service_Resource
+{
+ /**
+ * Checks the purchase and consumption status of an inapp item. (products.get)
+ *
+ * @param string $packageName The package name of the application the inapp
+ * product was sold in (for example, 'com.some.thing').
+ * @param string $productId The inapp product SKU (for example,
+ * 'com.some.thing.inapp1').
+ * @param string $token The token provided to the user's device when the inapp
+ * product was purchased.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ProductPurchase
+ */
+ public function get($packageName, $productId, $token, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_ProductPurchase");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesSubscriptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesSubscriptions.php
new file mode 100644
index 00000000..e128594a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesSubscriptions.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $subscriptions = $androidpublisherService->subscriptions;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_PurchasesSubscriptions extends Google_Service_Resource
+{
+ /**
+ * Cancels a user's subscription purchase. The subscription remains valid until
+ * its expiration time. (subscriptions.cancel)
+ *
+ * @param string $packageName The package name of the application for which this
+ * subscription was purchased (for example, 'com.some.thing').
+ * @param string $subscriptionId The purchased subscription ID (for example,
+ * 'monthly001').
+ * @param string $token The token provided to the user's device when the
+ * subscription was purchased.
+ * @param array $optParams Optional parameters.
+ */
+ public function cancel($packageName, $subscriptionId, $token, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params));
+ }
+ /**
+ * Defers a user's subscription purchase until a specified future expiration
+ * time. (subscriptions.defer)
+ *
+ * @param string $packageName The package name of the application for which this
+ * subscription was purchased (for example, 'com.some.thing').
+ * @param string $subscriptionId The purchased subscription ID (for example,
+ * 'monthly001').
+ * @param string $token The token provided to the user's device when the
+ * subscription was purchased.
+ * @param Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse
+ */
+ public function defer($packageName, $subscriptionId, $token, Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('defer', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse");
+ }
+ /**
+ * Checks whether a user's subscription purchase is valid and returns its expiry
+ * time. (subscriptions.get)
+ *
+ * @param string $packageName The package name of the application for which this
+ * subscription was purchased (for example, 'com.some.thing').
+ * @param string $subscriptionId The purchased subscription ID (for example,
+ * 'monthly001').
+ * @param string $token The token provided to the user's device when the
+ * subscription was purchased.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_SubscriptionPurchase
+ */
+ public function get($packageName, $subscriptionId, $token, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase");
+ }
+ /**
+ * Refunds a user's subscription purchase, but the subscription remains valid
+ * until its expiration time and it will continue to recur.
+ * (subscriptions.refund)
+ *
+ * @param string $packageName The package name of the application for which this
+ * subscription was purchased (for example, 'com.some.thing').
+ * @param string $subscriptionId The purchased subscription ID (for example,
+ * 'monthly001').
+ * @param string $token The token provided to the user's device when the
+ * subscription was purchased.
+ * @param array $optParams Optional parameters.
+ */
+ public function refund($packageName, $subscriptionId, $token, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
+ $params = array_merge($params, $optParams);
+ return $this->call('refund', array($params));
+ }
+ /**
+ * Refunds and immediately revokes a user's subscription purchase. Access to the
+ * subscription will be terminated immediately and it will stop recurring.
+ * (subscriptions.revoke)
+ *
+ * @param string $packageName The package name of the application for which this
+ * subscription was purchased (for example, 'com.some.thing').
+ * @param string $subscriptionId The purchased subscription ID (for example,
+ * 'monthly001').
+ * @param string $token The token provided to the user's device when the
+ * subscription was purchased.
+ * @param array $optParams Optional parameters.
+ */
+ public function revoke($packageName, $subscriptionId, $token, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
+ $params = array_merge($params, $optParams);
+ return $this->call('revoke', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesVoidedpurchases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesVoidedpurchases.php
new file mode 100644
index 00000000..ea1f4271
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/PurchasesVoidedpurchases.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "voidedpurchases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $voidedpurchases = $androidpublisherService->voidedpurchases;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_PurchasesVoidedpurchases extends Google_Service_Resource
+{
+ /**
+ * Lists the purchases that were cancelled, refunded or charged-back.
+ * (voidedpurchases.listPurchasesVoidedpurchases)
+ *
+ * @param string $packageName The package name of the application for which
+ * voided purchases need to be returned (for example, 'com.some.thing').
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endTime The time, in milliseconds since the Epoch, of the
+ * newest voided in-app product purchase that you want to see in the response.
+ * The value of this parameter cannot be greater than the current time and is
+ * ignored if a pagination token is set. Default value is current time.
+ * @opt_param string maxResults
+ * @opt_param string startIndex
+ * @opt_param string startTime The time, in milliseconds since the Epoch, of the
+ * oldest voided in-app product purchase that you want to see in the response.
+ * The value of this parameter cannot be older than 30 days and is ignored if a
+ * pagination token is set. Default value is current time minus 30 days.
+ * @opt_param string token
+ * @return Google_Service_AndroidPublisher_VoidedPurchasesListResponse
+ */
+ public function listPurchasesVoidedpurchases($packageName, $optParams = array())
+ {
+ $params = array('packageName' => $packageName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_VoidedPurchasesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Reviews.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Reviews.php
new file mode 100644
index 00000000..c1fa3c6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Resource/Reviews.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reviews" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $androidpublisherService = new Google_Service_AndroidPublisher(...);
+ * $reviews = $androidpublisherService->reviews;
+ * </code>
+ */
+class Google_Service_AndroidPublisher_Resource_Reviews extends Google_Service_Resource
+{
+ /**
+ * Returns a single review. (reviews.get)
+ *
+ * @param string $packageName Unique identifier for the Android app for which we
+ * want reviews; for example, "com.spiffygame".
+ * @param string $reviewId
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string translationLanguage
+ * @return Google_Service_AndroidPublisher_Review
+ */
+ public function get($packageName, $reviewId, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'reviewId' => $reviewId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidPublisher_Review");
+ }
+ /**
+ * Returns a list of reviews. Only reviews from last week will be returned.
+ * (reviews.listReviews)
+ *
+ * @param string $packageName Unique identifier for the Android app for which we
+ * want reviews; for example, "com.spiffygame".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults
+ * @opt_param string startIndex
+ * @opt_param string token
+ * @opt_param string translationLanguage
+ * @return Google_Service_AndroidPublisher_ReviewsListResponse
+ */
+ public function listReviews($packageName, $optParams = array())
+ {
+ $params = array('packageName' => $packageName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidPublisher_ReviewsListResponse");
+ }
+ /**
+ * Reply to a single review, or update an existing reply. (reviews.reply)
+ *
+ * @param string $packageName Unique identifier for the Android app for which we
+ * want reviews; for example, "com.spiffygame".
+ * @param string $reviewId
+ * @param Google_Service_AndroidPublisher_ReviewsReplyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidPublisher_ReviewsReplyResponse
+ */
+ public function reply($packageName, $reviewId, Google_Service_AndroidPublisher_ReviewsReplyRequest $postBody, $optParams = array())
+ {
+ $params = array('packageName' => $packageName, 'reviewId' => $reviewId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reply', array($params), "Google_Service_AndroidPublisher_ReviewsReplyResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Review.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Review.php
new file mode 100644
index 00000000..c7daff3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Review.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Review extends Google_Collection
+{
+ protected $collection_key = 'comments';
+ public $authorName;
+ protected $commentsType = 'Google_Service_AndroidPublisher_Comment';
+ protected $commentsDataType = 'array';
+ public $reviewId;
+
+ public function setAuthorName($authorName)
+ {
+ $this->authorName = $authorName;
+ }
+ public function getAuthorName()
+ {
+ return $this->authorName;
+ }
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setReviewId($reviewId)
+ {
+ $this->reviewId = $reviewId;
+ }
+ public function getReviewId()
+ {
+ return $this->reviewId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewReplyResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewReplyResult.php
new file mode 100644
index 00000000..5cb8c3aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewReplyResult.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ReviewReplyResult extends Google_Model
+{
+ protected $lastEditedType = 'Google_Service_AndroidPublisher_Timestamp';
+ protected $lastEditedDataType = '';
+ public $replyText;
+
+ public function setLastEdited(Google_Service_AndroidPublisher_Timestamp $lastEdited)
+ {
+ $this->lastEdited = $lastEdited;
+ }
+ public function getLastEdited()
+ {
+ return $this->lastEdited;
+ }
+ public function setReplyText($replyText)
+ {
+ $this->replyText = $replyText;
+ }
+ public function getReplyText()
+ {
+ return $this->replyText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsListResponse.php
new file mode 100644
index 00000000..04a61eeb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsListResponse.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ReviewsListResponse extends Google_Collection
+{
+ protected $collection_key = 'reviews';
+ protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $reviewsType = 'Google_Service_AndroidPublisher_Review';
+ protected $reviewsDataType = 'array';
+ protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setReviews($reviews)
+ {
+ $this->reviews = $reviews;
+ }
+ public function getReviews()
+ {
+ return $this->reviews;
+ }
+ public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyRequest.php
new file mode 100644
index 00000000..11f528fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ReviewsReplyRequest extends Google_Model
+{
+ public $replyText;
+
+ public function setReplyText($replyText)
+ {
+ $this->replyText = $replyText;
+ }
+ public function getReplyText()
+ {
+ return $this->replyText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyResponse.php
new file mode 100644
index 00000000..62351a8c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/ReviewsReplyResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_ReviewsReplyResponse extends Google_Model
+{
+ protected $resultType = 'Google_Service_AndroidPublisher_ReviewReplyResult';
+ protected $resultDataType = '';
+
+ public function setResult(Google_Service_AndroidPublisher_ReviewReplyResult $result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Season.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Season.php
new file mode 100644
index 00000000..db476a3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Season.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Season extends Google_Collection
+{
+ protected $collection_key = 'prorations';
+ protected $endType = 'Google_Service_AndroidPublisher_MonthDay';
+ protected $endDataType = '';
+ protected $prorationsType = 'Google_Service_AndroidPublisher_Prorate';
+ protected $prorationsDataType = 'array';
+ protected $startType = 'Google_Service_AndroidPublisher_MonthDay';
+ protected $startDataType = '';
+
+ public function setEnd(Google_Service_AndroidPublisher_MonthDay $end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setProrations($prorations)
+ {
+ $this->prorations = $prorations;
+ }
+ public function getProrations()
+ {
+ return $this->prorations;
+ }
+ public function setStart(Google_Service_AndroidPublisher_MonthDay $start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionDeferralInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionDeferralInfo.php
new file mode 100644
index 00000000..134df222
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionDeferralInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_SubscriptionDeferralInfo extends Google_Model
+{
+ public $desiredExpiryTimeMillis;
+ public $expectedExpiryTimeMillis;
+
+ public function setDesiredExpiryTimeMillis($desiredExpiryTimeMillis)
+ {
+ $this->desiredExpiryTimeMillis = $desiredExpiryTimeMillis;
+ }
+ public function getDesiredExpiryTimeMillis()
+ {
+ return $this->desiredExpiryTimeMillis;
+ }
+ public function setExpectedExpiryTimeMillis($expectedExpiryTimeMillis)
+ {
+ $this->expectedExpiryTimeMillis = $expectedExpiryTimeMillis;
+ }
+ public function getExpectedExpiryTimeMillis()
+ {
+ return $this->expectedExpiryTimeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php
new file mode 100644
index 00000000..81dc85e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchase.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model
+{
+ public $autoRenewing;
+ public $cancelReason;
+ public $countryCode;
+ public $developerPayload;
+ public $expiryTimeMillis;
+ public $kind;
+ public $paymentState;
+ public $priceAmountMicros;
+ public $priceCurrencyCode;
+ public $startTimeMillis;
+ public $userCancellationTimeMillis;
+
+ public function setAutoRenewing($autoRenewing)
+ {
+ $this->autoRenewing = $autoRenewing;
+ }
+ public function getAutoRenewing()
+ {
+ return $this->autoRenewing;
+ }
+ public function setCancelReason($cancelReason)
+ {
+ $this->cancelReason = $cancelReason;
+ }
+ public function getCancelReason()
+ {
+ return $this->cancelReason;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setDeveloperPayload($developerPayload)
+ {
+ $this->developerPayload = $developerPayload;
+ }
+ public function getDeveloperPayload()
+ {
+ return $this->developerPayload;
+ }
+ public function setExpiryTimeMillis($expiryTimeMillis)
+ {
+ $this->expiryTimeMillis = $expiryTimeMillis;
+ }
+ public function getExpiryTimeMillis()
+ {
+ return $this->expiryTimeMillis;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPaymentState($paymentState)
+ {
+ $this->paymentState = $paymentState;
+ }
+ public function getPaymentState()
+ {
+ return $this->paymentState;
+ }
+ public function setPriceAmountMicros($priceAmountMicros)
+ {
+ $this->priceAmountMicros = $priceAmountMicros;
+ }
+ public function getPriceAmountMicros()
+ {
+ return $this->priceAmountMicros;
+ }
+ public function setPriceCurrencyCode($priceCurrencyCode)
+ {
+ $this->priceCurrencyCode = $priceCurrencyCode;
+ }
+ public function getPriceCurrencyCode()
+ {
+ return $this->priceCurrencyCode;
+ }
+ public function setStartTimeMillis($startTimeMillis)
+ {
+ $this->startTimeMillis = $startTimeMillis;
+ }
+ public function getStartTimeMillis()
+ {
+ return $this->startTimeMillis;
+ }
+ public function setUserCancellationTimeMillis($userCancellationTimeMillis)
+ {
+ $this->userCancellationTimeMillis = $userCancellationTimeMillis;
+ }
+ public function getUserCancellationTimeMillis()
+ {
+ return $this->userCancellationTimeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferRequest.php
new file mode 100644
index 00000000..3f873760
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferRequest extends Google_Model
+{
+ protected $deferralInfoType = 'Google_Service_AndroidPublisher_SubscriptionDeferralInfo';
+ protected $deferralInfoDataType = '';
+
+ public function setDeferralInfo(Google_Service_AndroidPublisher_SubscriptionDeferralInfo $deferralInfo)
+ {
+ $this->deferralInfo = $deferralInfo;
+ }
+ public function getDeferralInfo()
+ {
+ return $this->deferralInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferResponse.php
new file mode 100644
index 00000000..afdeda31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/SubscriptionPurchasesDeferResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_SubscriptionPurchasesDeferResponse extends Google_Model
+{
+ public $newExpiryTimeMillis;
+
+ public function setNewExpiryTimeMillis($newExpiryTimeMillis)
+ {
+ $this->newExpiryTimeMillis = $newExpiryTimeMillis;
+ }
+ public function getNewExpiryTimeMillis()
+ {
+ return $this->newExpiryTimeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Testers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Testers.php
new file mode 100644
index 00000000..0d9dd02a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Testers.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Testers extends Google_Collection
+{
+ protected $collection_key = 'googlePlusCommunities';
+ public $googleGroups;
+ public $googlePlusCommunities;
+
+ public function setGoogleGroups($googleGroups)
+ {
+ $this->googleGroups = $googleGroups;
+ }
+ public function getGoogleGroups()
+ {
+ return $this->googleGroups;
+ }
+ public function setGooglePlusCommunities($googlePlusCommunities)
+ {
+ $this->googlePlusCommunities = $googlePlusCommunities;
+ }
+ public function getGooglePlusCommunities()
+ {
+ return $this->googlePlusCommunities;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Timestamp.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Timestamp.php
new file mode 100644
index 00000000..e98946e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Timestamp.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Timestamp extends Google_Model
+{
+ public $nanos;
+ public $seconds;
+
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+ public function setSeconds($seconds)
+ {
+ $this->seconds = $seconds;
+ }
+ public function getSeconds()
+ {
+ return $this->seconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TokenPagination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TokenPagination.php
new file mode 100644
index 00000000..9c216acf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TokenPagination.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_TokenPagination extends Google_Model
+{
+ public $nextPageToken;
+ public $previousPageToken;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPreviousPageToken($previousPageToken)
+ {
+ $this->previousPageToken = $previousPageToken;
+ }
+ public function getPreviousPageToken()
+ {
+ return $this->previousPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php
new file mode 100644
index 00000000..26e8c25e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/Track.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_Track extends Google_Collection
+{
+ protected $collection_key = 'versionCodes';
+ public $track;
+ public $userFraction;
+ public $versionCodes;
+
+ public function setTrack($track)
+ {
+ $this->track = $track;
+ }
+ public function getTrack()
+ {
+ return $this->track;
+ }
+ public function setUserFraction($userFraction)
+ {
+ $this->userFraction = $userFraction;
+ }
+ public function getUserFraction()
+ {
+ return $this->userFraction;
+ }
+ public function setVersionCodes($versionCodes)
+ {
+ $this->versionCodes = $versionCodes;
+ }
+ public function getVersionCodes()
+ {
+ return $this->versionCodes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TracksListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TracksListResponse.php
new file mode 100644
index 00000000..cfa7d152
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/TracksListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_TracksListResponse extends Google_Collection
+{
+ protected $collection_key = 'tracks';
+ public $kind;
+ protected $tracksType = 'Google_Service_AndroidPublisher_Track';
+ protected $tracksDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTracks($tracks)
+ {
+ $this->tracks = $tracks;
+ }
+ public function getTracks()
+ {
+ return $this->tracks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/UserComment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/UserComment.php
new file mode 100644
index 00000000..6a8d4370
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/UserComment.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_UserComment extends Google_Model
+{
+ public $androidOsVersion;
+ public $appVersionCode;
+ public $appVersionName;
+ public $device;
+ protected $deviceMetadataType = 'Google_Service_AndroidPublisher_DeviceMetadata';
+ protected $deviceMetadataDataType = '';
+ protected $lastModifiedType = 'Google_Service_AndroidPublisher_Timestamp';
+ protected $lastModifiedDataType = '';
+ public $originalText;
+ public $reviewerLanguage;
+ public $starRating;
+ public $text;
+ public $thumbsDownCount;
+ public $thumbsUpCount;
+
+ public function setAndroidOsVersion($androidOsVersion)
+ {
+ $this->androidOsVersion = $androidOsVersion;
+ }
+ public function getAndroidOsVersion()
+ {
+ return $this->androidOsVersion;
+ }
+ public function setAppVersionCode($appVersionCode)
+ {
+ $this->appVersionCode = $appVersionCode;
+ }
+ public function getAppVersionCode()
+ {
+ return $this->appVersionCode;
+ }
+ public function setAppVersionName($appVersionName)
+ {
+ $this->appVersionName = $appVersionName;
+ }
+ public function getAppVersionName()
+ {
+ return $this->appVersionName;
+ }
+ public function setDevice($device)
+ {
+ $this->device = $device;
+ }
+ public function getDevice()
+ {
+ return $this->device;
+ }
+ public function setDeviceMetadata(Google_Service_AndroidPublisher_DeviceMetadata $deviceMetadata)
+ {
+ $this->deviceMetadata = $deviceMetadata;
+ }
+ public function getDeviceMetadata()
+ {
+ return $this->deviceMetadata;
+ }
+ public function setLastModified(Google_Service_AndroidPublisher_Timestamp $lastModified)
+ {
+ $this->lastModified = $lastModified;
+ }
+ public function getLastModified()
+ {
+ return $this->lastModified;
+ }
+ public function setOriginalText($originalText)
+ {
+ $this->originalText = $originalText;
+ }
+ public function getOriginalText()
+ {
+ return $this->originalText;
+ }
+ public function setReviewerLanguage($reviewerLanguage)
+ {
+ $this->reviewerLanguage = $reviewerLanguage;
+ }
+ public function getReviewerLanguage()
+ {
+ return $this->reviewerLanguage;
+ }
+ public function setStarRating($starRating)
+ {
+ $this->starRating = $starRating;
+ }
+ public function getStarRating()
+ {
+ return $this->starRating;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+ public function setThumbsDownCount($thumbsDownCount)
+ {
+ $this->thumbsDownCount = $thumbsDownCount;
+ }
+ public function getThumbsDownCount()
+ {
+ return $this->thumbsDownCount;
+ }
+ public function setThumbsUpCount($thumbsUpCount)
+ {
+ $this->thumbsUpCount = $thumbsUpCount;
+ }
+ public function getThumbsUpCount()
+ {
+ return $this->thumbsUpCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchase.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchase.php
new file mode 100644
index 00000000..208f641a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchase.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_VoidedPurchase extends Google_Model
+{
+ public $kind;
+ public $purchaseTimeMillis;
+ public $purchaseToken;
+ public $voidedTimeMillis;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPurchaseTimeMillis($purchaseTimeMillis)
+ {
+ $this->purchaseTimeMillis = $purchaseTimeMillis;
+ }
+ public function getPurchaseTimeMillis()
+ {
+ return $this->purchaseTimeMillis;
+ }
+ public function setPurchaseToken($purchaseToken)
+ {
+ $this->purchaseToken = $purchaseToken;
+ }
+ public function getPurchaseToken()
+ {
+ return $this->purchaseToken;
+ }
+ public function setVoidedTimeMillis($voidedTimeMillis)
+ {
+ $this->voidedTimeMillis = $voidedTimeMillis;
+ }
+ public function getVoidedTimeMillis()
+ {
+ return $this->voidedTimeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchasesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchasesListResponse.php
new file mode 100644
index 00000000..4cc0970f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AndroidPublisher/VoidedPurchasesListResponse.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AndroidPublisher_VoidedPurchasesListResponse extends Google_Collection
+{
+ protected $collection_key = 'voidedPurchases';
+ protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ protected $voidedPurchasesType = 'Google_Service_AndroidPublisher_VoidedPurchase';
+ protected $voidedPurchasesDataType = 'array';
+
+ public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVoidedPurchases($voidedPurchases)
+ {
+ $this->voidedPurchases = $voidedPurchases;
+ }
+ public function getVoidedPurchases()
+ {
+ return $this->voidedPurchases;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState.php
new file mode 100644
index 00000000..fc2f9435
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for AppState (v1).
+ *
+ * <p>
+ * The Google App State API.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/games/services/web/api/states" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_AppState extends Google_Service
+{
+ /** View and manage your data for this application. */
+ const APPSTATE =
+ "https://www.googleapis.com/auth/appstate";
+
+ public $states;
+
+ /**
+ * Constructs the internal representation of the AppState service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'appstate/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'appstate';
+
+ $this->states = new Google_Service_AppState_Resource_States(
+ $this,
+ $this->serviceName,
+ 'states',
+ array(
+ 'methods' => array(
+ 'clear' => array(
+ 'path' => 'states/{stateKey}/clear',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'stateKey' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'currentDataVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'states/{stateKey}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'stateKey' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'states/{stateKey}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'stateKey' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'states',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'includeData' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'states/{stateKey}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'stateKey' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'currentStateVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/GetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/GetResponse.php
new file mode 100644
index 00000000..bb4a8336
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/GetResponse.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AppState_GetResponse extends Google_Model
+{
+ public $currentStateVersion;
+ public $data;
+ public $kind;
+ public $stateKey;
+
+ public function setCurrentStateVersion($currentStateVersion)
+ {
+ $this->currentStateVersion = $currentStateVersion;
+ }
+ public function getCurrentStateVersion()
+ {
+ return $this->currentStateVersion;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStateKey($stateKey)
+ {
+ $this->stateKey = $stateKey;
+ }
+ public function getStateKey()
+ {
+ return $this->stateKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/ListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/ListResponse.php
new file mode 100644
index 00000000..cc17c880
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/ListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AppState_ListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_AppState_GetResponse';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $maximumKeyCount;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaximumKeyCount($maximumKeyCount)
+ {
+ $this->maximumKeyCount = $maximumKeyCount;
+ }
+ public function getMaximumKeyCount()
+ {
+ return $this->maximumKeyCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/Resource/States.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/Resource/States.php
new file mode 100644
index 00000000..b652c2cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/Resource/States.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "states" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appstateService = new Google_Service_AppState(...);
+ * $states = $appstateService->states;
+ * </code>
+ */
+class Google_Service_AppState_Resource_States extends Google_Service_Resource
+{
+ /**
+ * Clears (sets to empty) the data for the passed key if and only if the passed
+ * version matches the currently stored version. This method results in a
+ * conflict error on version mismatch. (states.clear)
+ *
+ * @param int $stateKey The key for the data to be retrieved.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currentDataVersion The version of the data to be cleared.
+ * Version strings are returned by the server.
+ * @return Google_Service_AppState_WriteResult
+ */
+ public function clear($stateKey, $optParams = array())
+ {
+ $params = array('stateKey' => $stateKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('clear', array($params), "Google_Service_AppState_WriteResult");
+ }
+ /**
+ * Deletes a key and the data associated with it. The key is removed and no
+ * longer counts against the key quota. Note that since this method is not safe
+ * in the face of concurrent modifications, it should only be used for
+ * development and testing purposes. Invoking this method in shipping code can
+ * result in data loss and data corruption. (states.delete)
+ *
+ * @param int $stateKey The key for the data to be retrieved.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($stateKey, $optParams = array())
+ {
+ $params = array('stateKey' => $stateKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the data corresponding to the passed key. If the key does not exist
+ * on the server, an HTTP 404 will be returned. (states.get)
+ *
+ * @param int $stateKey The key for the data to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AppState_GetResponse
+ */
+ public function get($stateKey, $optParams = array())
+ {
+ $params = array('stateKey' => $stateKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AppState_GetResponse");
+ }
+ /**
+ * Lists all the states keys, and optionally the state data. (states.listStates)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeData Whether to include the full data in addition to
+ * the version number
+ * @return Google_Service_AppState_ListResponse
+ */
+ public function listStates($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AppState_ListResponse");
+ }
+ /**
+ * Update the data associated with the input key if and only if the passed
+ * version matches the currently stored version. This method is safe in the face
+ * of concurrent writes. Maximum per-key size is 128KB. (states.update)
+ *
+ * @param int $stateKey The key for the data to be retrieved.
+ * @param Google_Service_AppState_UpdateRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currentStateVersion The version of the app state your
+ * application is attempting to update. If this does not match the current
+ * version, this method will return a conflict error. If there is no data stored
+ * on the server for this key, the update will succeed irrespective of the value
+ * of this parameter.
+ * @return Google_Service_AppState_WriteResult
+ */
+ public function update($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams = array())
+ {
+ $params = array('stateKey' => $stateKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AppState_WriteResult");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/UpdateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/UpdateRequest.php
new file mode 100644
index 00000000..719c6a59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/UpdateRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AppState_UpdateRequest extends Google_Model
+{
+ public $data;
+ public $kind;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/WriteResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/WriteResult.php
new file mode 100644
index 00000000..3b742cbd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/AppState/WriteResult.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_AppState_WriteResult extends Google_Model
+{
+ public $currentStateVersion;
+ public $kind;
+ public $stateKey;
+
+ public function setCurrentStateVersion($currentStateVersion)
+ {
+ $this->currentStateVersion = $currentStateVersion;
+ }
+ public function getCurrentStateVersion()
+ {
+ return $this->currentStateVersion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStateKey($stateKey)
+ {
+ $this->stateKey = $stateKey;
+ }
+ public function getStateKey()
+ {
+ return $this->stateKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine.php
new file mode 100644
index 00000000..4a692250
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine.php
@@ -0,0 +1,520 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Appengine (v1).
+ *
+ * <p>
+ * Provisions and manages App Engine applications.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/appengine/docs/admin-api/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Appengine extends Google_Service
+{
+ /** View and manage your applications deployed on Google App Engine. */
+ const APPENGINE_ADMIN =
+ "https://www.googleapis.com/auth/appengine.admin";
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ public $apps;
+ public $apps_locations;
+ public $apps_operations;
+ public $apps_services;
+ public $apps_services_versions;
+ public $apps_services_versions_instances;
+
+ /**
+ * Constructs the internal representation of the Appengine service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://appengine.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'appengine';
+
+ $this->apps = new Google_Service_Appengine_Resource_Apps(
+ $this,
+ $this->serviceName,
+ 'apps',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/apps',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => 'v1/apps/{appsId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/apps/{appsId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'repair' => array(
+ 'path' => 'v1/apps/{appsId}:repair',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->apps_locations = new Google_Service_Appengine_Resource_AppsLocations(
+ $this,
+ $this->serviceName,
+ 'locations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/apps/{appsId}/locations/{locationsId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locationsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/apps/{appsId}/locations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->apps_operations = new Google_Service_Appengine_Resource_AppsOperations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/apps/{appsId}/operations/{operationsId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operationsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/apps/{appsId}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->apps_services = new Google_Service_Appengine_Resource_AppsServices(
+ $this,
+ $this->serviceName,
+ 'services',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/apps/{appsId}/services',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'migrateTraffic' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->apps_services_versions = new Google_Service_Appengine_Resource_AppsServicesVersions(
+ $this,
+ $this->serviceName,
+ 'versions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'versionsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'versionsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'versionsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->apps_services_versions_instances = new Google_Service_Appengine_Resource_AppsServicesVersionsInstances(
+ $this,
+ $this->serviceName,
+ 'instances',
+ array(
+ 'methods' => array(
+ 'debug' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'versionsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instancesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'versionsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instancesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'versionsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instancesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'appsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'servicesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'versionsId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiConfigHandler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiConfigHandler.php
new file mode 100644
index 00000000..2464a8b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiConfigHandler.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ApiConfigHandler extends Google_Model
+{
+ public $authFailAction;
+ public $login;
+ public $script;
+ public $securityLevel;
+ public $url;
+
+ public function setAuthFailAction($authFailAction)
+ {
+ $this->authFailAction = $authFailAction;
+ }
+ public function getAuthFailAction()
+ {
+ return $this->authFailAction;
+ }
+ public function setLogin($login)
+ {
+ $this->login = $login;
+ }
+ public function getLogin()
+ {
+ return $this->login;
+ }
+ public function setScript($script)
+ {
+ $this->script = $script;
+ }
+ public function getScript()
+ {
+ return $this->script;
+ }
+ public function setSecurityLevel($securityLevel)
+ {
+ $this->securityLevel = $securityLevel;
+ }
+ public function getSecurityLevel()
+ {
+ return $this->securityLevel;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiEndpointHandler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiEndpointHandler.php
new file mode 100644
index 00000000..6b5d1381
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ApiEndpointHandler.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ApiEndpointHandler extends Google_Model
+{
+ public $scriptPath;
+
+ public function setScriptPath($scriptPath)
+ {
+ $this->scriptPath = $scriptPath;
+ }
+ public function getScriptPath()
+ {
+ return $this->scriptPath;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Application.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Application.php
new file mode 100644
index 00000000..a1c8fc28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Application.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Application extends Google_Collection
+{
+ protected $collection_key = 'dispatchRules';
+ public $authDomain;
+ public $codeBucket;
+ public $defaultBucket;
+ public $defaultCookieExpiration;
+ public $defaultHostname;
+ protected $dispatchRulesType = 'Google_Service_Appengine_UrlDispatchRule';
+ protected $dispatchRulesDataType = 'array';
+ public $id;
+ public $locationId;
+ public $name;
+
+ public function setAuthDomain($authDomain)
+ {
+ $this->authDomain = $authDomain;
+ }
+ public function getAuthDomain()
+ {
+ return $this->authDomain;
+ }
+ public function setCodeBucket($codeBucket)
+ {
+ $this->codeBucket = $codeBucket;
+ }
+ public function getCodeBucket()
+ {
+ return $this->codeBucket;
+ }
+ public function setDefaultBucket($defaultBucket)
+ {
+ $this->defaultBucket = $defaultBucket;
+ }
+ public function getDefaultBucket()
+ {
+ return $this->defaultBucket;
+ }
+ public function setDefaultCookieExpiration($defaultCookieExpiration)
+ {
+ $this->defaultCookieExpiration = $defaultCookieExpiration;
+ }
+ public function getDefaultCookieExpiration()
+ {
+ return $this->defaultCookieExpiration;
+ }
+ public function setDefaultHostname($defaultHostname)
+ {
+ $this->defaultHostname = $defaultHostname;
+ }
+ public function getDefaultHostname()
+ {
+ return $this->defaultHostname;
+ }
+ public function setDispatchRules($dispatchRules)
+ {
+ $this->dispatchRules = $dispatchRules;
+ }
+ public function getDispatchRules()
+ {
+ return $this->dispatchRules;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/AutomaticScaling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/AutomaticScaling.php
new file mode 100644
index 00000000..3801742d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/AutomaticScaling.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_AutomaticScaling extends Google_Model
+{
+ public $coolDownPeriod;
+ protected $cpuUtilizationType = 'Google_Service_Appengine_CpuUtilization';
+ protected $cpuUtilizationDataType = '';
+ protected $diskUtilizationType = 'Google_Service_Appengine_DiskUtilization';
+ protected $diskUtilizationDataType = '';
+ public $maxConcurrentRequests;
+ public $maxIdleInstances;
+ public $maxPendingLatency;
+ public $maxTotalInstances;
+ public $minIdleInstances;
+ public $minPendingLatency;
+ public $minTotalInstances;
+ protected $networkUtilizationType = 'Google_Service_Appengine_NetworkUtilization';
+ protected $networkUtilizationDataType = '';
+ protected $requestUtilizationType = 'Google_Service_Appengine_RequestUtilization';
+ protected $requestUtilizationDataType = '';
+
+ public function setCoolDownPeriod($coolDownPeriod)
+ {
+ $this->coolDownPeriod = $coolDownPeriod;
+ }
+ public function getCoolDownPeriod()
+ {
+ return $this->coolDownPeriod;
+ }
+ public function setCpuUtilization(Google_Service_Appengine_CpuUtilization $cpuUtilization)
+ {
+ $this->cpuUtilization = $cpuUtilization;
+ }
+ public function getCpuUtilization()
+ {
+ return $this->cpuUtilization;
+ }
+ public function setDiskUtilization(Google_Service_Appengine_DiskUtilization $diskUtilization)
+ {
+ $this->diskUtilization = $diskUtilization;
+ }
+ public function getDiskUtilization()
+ {
+ return $this->diskUtilization;
+ }
+ public function setMaxConcurrentRequests($maxConcurrentRequests)
+ {
+ $this->maxConcurrentRequests = $maxConcurrentRequests;
+ }
+ public function getMaxConcurrentRequests()
+ {
+ return $this->maxConcurrentRequests;
+ }
+ public function setMaxIdleInstances($maxIdleInstances)
+ {
+ $this->maxIdleInstances = $maxIdleInstances;
+ }
+ public function getMaxIdleInstances()
+ {
+ return $this->maxIdleInstances;
+ }
+ public function setMaxPendingLatency($maxPendingLatency)
+ {
+ $this->maxPendingLatency = $maxPendingLatency;
+ }
+ public function getMaxPendingLatency()
+ {
+ return $this->maxPendingLatency;
+ }
+ public function setMaxTotalInstances($maxTotalInstances)
+ {
+ $this->maxTotalInstances = $maxTotalInstances;
+ }
+ public function getMaxTotalInstances()
+ {
+ return $this->maxTotalInstances;
+ }
+ public function setMinIdleInstances($minIdleInstances)
+ {
+ $this->minIdleInstances = $minIdleInstances;
+ }
+ public function getMinIdleInstances()
+ {
+ return $this->minIdleInstances;
+ }
+ public function setMinPendingLatency($minPendingLatency)
+ {
+ $this->minPendingLatency = $minPendingLatency;
+ }
+ public function getMinPendingLatency()
+ {
+ return $this->minPendingLatency;
+ }
+ public function setMinTotalInstances($minTotalInstances)
+ {
+ $this->minTotalInstances = $minTotalInstances;
+ }
+ public function getMinTotalInstances()
+ {
+ return $this->minTotalInstances;
+ }
+ public function setNetworkUtilization(Google_Service_Appengine_NetworkUtilization $networkUtilization)
+ {
+ $this->networkUtilization = $networkUtilization;
+ }
+ public function getNetworkUtilization()
+ {
+ return $this->networkUtilization;
+ }
+ public function setRequestUtilization(Google_Service_Appengine_RequestUtilization $requestUtilization)
+ {
+ $this->requestUtilization = $requestUtilization;
+ }
+ public function getRequestUtilization()
+ {
+ return $this->requestUtilization;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/BasicScaling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/BasicScaling.php
new file mode 100644
index 00000000..98bad2e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/BasicScaling.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_BasicScaling extends Google_Model
+{
+ public $idleTimeout;
+ public $maxInstances;
+
+ public function setIdleTimeout($idleTimeout)
+ {
+ $this->idleTimeout = $idleTimeout;
+ }
+ public function getIdleTimeout()
+ {
+ return $this->idleTimeout;
+ }
+ public function setMaxInstances($maxInstances)
+ {
+ $this->maxInstances = $maxInstances;
+ }
+ public function getMaxInstances()
+ {
+ return $this->maxInstances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ContainerInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ContainerInfo.php
new file mode 100644
index 00000000..86bb890c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ContainerInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ContainerInfo extends Google_Model
+{
+ public $image;
+
+ public function setImage($image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/CpuUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/CpuUtilization.php
new file mode 100644
index 00000000..c8e25137
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/CpuUtilization.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_CpuUtilization extends Google_Model
+{
+ public $aggregationWindowLength;
+ public $targetUtilization;
+
+ public function setAggregationWindowLength($aggregationWindowLength)
+ {
+ $this->aggregationWindowLength = $aggregationWindowLength;
+ }
+ public function getAggregationWindowLength()
+ {
+ return $this->aggregationWindowLength;
+ }
+ public function setTargetUtilization($targetUtilization)
+ {
+ $this->targetUtilization = $targetUtilization;
+ }
+ public function getTargetUtilization()
+ {
+ return $this->targetUtilization;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DebugInstanceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DebugInstanceRequest.php
new file mode 100644
index 00000000..569bf83a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DebugInstanceRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_DebugInstanceRequest extends Google_Model
+{
+ public $sshKey;
+
+ public function setSshKey($sshKey)
+ {
+ $this->sshKey = $sshKey;
+ }
+ public function getSshKey()
+ {
+ return $this->sshKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Deployment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Deployment.php
new file mode 100644
index 00000000..7f727f16
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Deployment.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Deployment extends Google_Model
+{
+ protected $containerType = 'Google_Service_Appengine_ContainerInfo';
+ protected $containerDataType = '';
+ protected $filesType = 'Google_Service_Appengine_FileInfo';
+ protected $filesDataType = 'map';
+ protected $zipType = 'Google_Service_Appengine_ZipInfo';
+ protected $zipDataType = '';
+
+ public function setContainer(Google_Service_Appengine_ContainerInfo $container)
+ {
+ $this->container = $container;
+ }
+ public function getContainer()
+ {
+ return $this->container;
+ }
+ public function setFiles($files)
+ {
+ $this->files = $files;
+ }
+ public function getFiles()
+ {
+ return $this->files;
+ }
+ public function setZip(Google_Service_Appengine_ZipInfo $zip)
+ {
+ $this->zip = $zip;
+ }
+ public function getZip()
+ {
+ return $this->zip;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DiskUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DiskUtilization.php
new file mode 100644
index 00000000..fcb82677
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/DiskUtilization.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_DiskUtilization extends Google_Model
+{
+ public $targetReadBytesPerSecond;
+ public $targetReadOpsPerSecond;
+ public $targetWriteBytesPerSecond;
+ public $targetWriteOpsPerSecond;
+
+ public function setTargetReadBytesPerSecond($targetReadBytesPerSecond)
+ {
+ $this->targetReadBytesPerSecond = $targetReadBytesPerSecond;
+ }
+ public function getTargetReadBytesPerSecond()
+ {
+ return $this->targetReadBytesPerSecond;
+ }
+ public function setTargetReadOpsPerSecond($targetReadOpsPerSecond)
+ {
+ $this->targetReadOpsPerSecond = $targetReadOpsPerSecond;
+ }
+ public function getTargetReadOpsPerSecond()
+ {
+ return $this->targetReadOpsPerSecond;
+ }
+ public function setTargetWriteBytesPerSecond($targetWriteBytesPerSecond)
+ {
+ $this->targetWriteBytesPerSecond = $targetWriteBytesPerSecond;
+ }
+ public function getTargetWriteBytesPerSecond()
+ {
+ return $this->targetWriteBytesPerSecond;
+ }
+ public function setTargetWriteOpsPerSecond($targetWriteOpsPerSecond)
+ {
+ $this->targetWriteOpsPerSecond = $targetWriteOpsPerSecond;
+ }
+ public function getTargetWriteOpsPerSecond()
+ {
+ return $this->targetWriteOpsPerSecond;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php
new file mode 100644
index 00000000..c14bd3cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/EndpointsApiService.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_EndpointsApiService extends Google_Model
+{
+ public $configId;
+ public $name;
+
+ public function setConfigId($configId)
+ {
+ $this->configId = $configId;
+ }
+ public function getConfigId()
+ {
+ return $this->configId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ErrorHandler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ErrorHandler.php
new file mode 100644
index 00000000..64e1987f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ErrorHandler.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ErrorHandler extends Google_Model
+{
+ public $errorCode;
+ public $mimeType;
+ public $staticFile;
+
+ public function setErrorCode($errorCode)
+ {
+ $this->errorCode = $errorCode;
+ }
+ public function getErrorCode()
+ {
+ return $this->errorCode;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setStaticFile($staticFile)
+ {
+ $this->staticFile = $staticFile;
+ }
+ public function getStaticFile()
+ {
+ return $this->staticFile;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/FileInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/FileInfo.php
new file mode 100644
index 00000000..680afb50
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/FileInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_FileInfo extends Google_Model
+{
+ public $mimeType;
+ public $sha1Sum;
+ public $sourceUrl;
+
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setSha1Sum($sha1Sum)
+ {
+ $this->sha1Sum = $sha1Sum;
+ }
+ public function getSha1Sum()
+ {
+ return $this->sha1Sum;
+ }
+ public function setSourceUrl($sourceUrl)
+ {
+ $this->sourceUrl = $sourceUrl;
+ }
+ public function getSourceUrl()
+ {
+ return $this->sourceUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/HealthCheck.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/HealthCheck.php
new file mode 100644
index 00000000..dc87fbaa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/HealthCheck.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_HealthCheck extends Google_Model
+{
+ public $checkInterval;
+ public $disableHealthCheck;
+ public $healthyThreshold;
+ public $host;
+ public $restartThreshold;
+ public $timeout;
+ public $unhealthyThreshold;
+
+ public function setCheckInterval($checkInterval)
+ {
+ $this->checkInterval = $checkInterval;
+ }
+ public function getCheckInterval()
+ {
+ return $this->checkInterval;
+ }
+ public function setDisableHealthCheck($disableHealthCheck)
+ {
+ $this->disableHealthCheck = $disableHealthCheck;
+ }
+ public function getDisableHealthCheck()
+ {
+ return $this->disableHealthCheck;
+ }
+ public function setHealthyThreshold($healthyThreshold)
+ {
+ $this->healthyThreshold = $healthyThreshold;
+ }
+ public function getHealthyThreshold()
+ {
+ return $this->healthyThreshold;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setRestartThreshold($restartThreshold)
+ {
+ $this->restartThreshold = $restartThreshold;
+ }
+ public function getRestartThreshold()
+ {
+ return $this->restartThreshold;
+ }
+ public function setTimeout($timeout)
+ {
+ $this->timeout = $timeout;
+ }
+ public function getTimeout()
+ {
+ return $this->timeout;
+ }
+ public function setUnhealthyThreshold($unhealthyThreshold)
+ {
+ $this->unhealthyThreshold = $unhealthyThreshold;
+ }
+ public function getUnhealthyThreshold()
+ {
+ return $this->unhealthyThreshold;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Instance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Instance.php
new file mode 100644
index 00000000..001d85fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Instance.php
@@ -0,0 +1,165 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Instance extends Google_Model
+{
+ public $appEngineRelease;
+ public $availability;
+ public $averageLatency;
+ public $errors;
+ public $id;
+ public $memoryUsage;
+ public $name;
+ public $qps;
+ public $requests;
+ public $startTime;
+ public $vmDebugEnabled;
+ public $vmId;
+ public $vmIp;
+ public $vmName;
+ public $vmStatus;
+ public $vmZoneName;
+
+ public function setAppEngineRelease($appEngineRelease)
+ {
+ $this->appEngineRelease = $appEngineRelease;
+ }
+ public function getAppEngineRelease()
+ {
+ return $this->appEngineRelease;
+ }
+ public function setAvailability($availability)
+ {
+ $this->availability = $availability;
+ }
+ public function getAvailability()
+ {
+ return $this->availability;
+ }
+ public function setAverageLatency($averageLatency)
+ {
+ $this->averageLatency = $averageLatency;
+ }
+ public function getAverageLatency()
+ {
+ return $this->averageLatency;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMemoryUsage($memoryUsage)
+ {
+ $this->memoryUsage = $memoryUsage;
+ }
+ public function getMemoryUsage()
+ {
+ return $this->memoryUsage;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setQps($qps)
+ {
+ $this->qps = $qps;
+ }
+ public function getQps()
+ {
+ return $this->qps;
+ }
+ public function setRequests($requests)
+ {
+ $this->requests = $requests;
+ }
+ public function getRequests()
+ {
+ return $this->requests;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setVmDebugEnabled($vmDebugEnabled)
+ {
+ $this->vmDebugEnabled = $vmDebugEnabled;
+ }
+ public function getVmDebugEnabled()
+ {
+ return $this->vmDebugEnabled;
+ }
+ public function setVmId($vmId)
+ {
+ $this->vmId = $vmId;
+ }
+ public function getVmId()
+ {
+ return $this->vmId;
+ }
+ public function setVmIp($vmIp)
+ {
+ $this->vmIp = $vmIp;
+ }
+ public function getVmIp()
+ {
+ return $this->vmIp;
+ }
+ public function setVmName($vmName)
+ {
+ $this->vmName = $vmName;
+ }
+ public function getVmName()
+ {
+ return $this->vmName;
+ }
+ public function setVmStatus($vmStatus)
+ {
+ $this->vmStatus = $vmStatus;
+ }
+ public function getVmStatus()
+ {
+ return $this->vmStatus;
+ }
+ public function setVmZoneName($vmZoneName)
+ {
+ $this->vmZoneName = $vmZoneName;
+ }
+ public function getVmZoneName()
+ {
+ return $this->vmZoneName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Library.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Library.php
new file mode 100644
index 00000000..c4fb3462
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Library.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Library extends Google_Model
+{
+ public $name;
+ public $version;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListInstancesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListInstancesResponse.php
new file mode 100644
index 00000000..37e6212f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListInstancesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ListInstancesResponse extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $instancesType = 'Google_Service_Appengine_Instance';
+ protected $instancesDataType = 'array';
+ public $nextPageToken;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListLocationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListLocationsResponse.php
new file mode 100644
index 00000000..ecb6bc83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListLocationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ListLocationsResponse extends Google_Collection
+{
+ protected $collection_key = 'locations';
+ protected $locationsType = 'Google_Service_Appengine_Location';
+ protected $locationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListOperationsResponse.php
new file mode 100644
index 00000000..a3b2e215
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_Appengine_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListServicesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListServicesResponse.php
new file mode 100644
index 00000000..5d53085e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListServicesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ListServicesResponse extends Google_Collection
+{
+ protected $collection_key = 'services';
+ public $nextPageToken;
+ protected $servicesType = 'Google_Service_Appengine_Service';
+ protected $servicesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListVersionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListVersionsResponse.php
new file mode 100644
index 00000000..ed8085a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ListVersionsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ListVersionsResponse extends Google_Collection
+{
+ protected $collection_key = 'versions';
+ public $nextPageToken;
+ protected $versionsType = 'Google_Service_Appengine_Version';
+ protected $versionsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setVersions($versions)
+ {
+ $this->versions = $versions;
+ }
+ public function getVersions()
+ {
+ return $this->versions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Location.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Location.php
new file mode 100644
index 00000000..f931f221
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Location.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Location extends Google_Model
+{
+ public $labels;
+ public $locationId;
+ public $metadata;
+ public $name;
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/LocationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/LocationMetadata.php
new file mode 100644
index 00000000..a2e5476b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/LocationMetadata.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_LocationMetadata extends Google_Model
+{
+ public $flexibleEnvironmentAvailable;
+ public $standardEnvironmentAvailable;
+
+ public function setFlexibleEnvironmentAvailable($flexibleEnvironmentAvailable)
+ {
+ $this->flexibleEnvironmentAvailable = $flexibleEnvironmentAvailable;
+ }
+ public function getFlexibleEnvironmentAvailable()
+ {
+ return $this->flexibleEnvironmentAvailable;
+ }
+ public function setStandardEnvironmentAvailable($standardEnvironmentAvailable)
+ {
+ $this->standardEnvironmentAvailable = $standardEnvironmentAvailable;
+ }
+ public function getStandardEnvironmentAvailable()
+ {
+ return $this->standardEnvironmentAvailable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ManualScaling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ManualScaling.php
new file mode 100644
index 00000000..dd6547d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ManualScaling.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ManualScaling extends Google_Model
+{
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Network.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Network.php
new file mode 100644
index 00000000..90c9438e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Network.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Network extends Google_Collection
+{
+ protected $collection_key = 'forwardedPorts';
+ public $forwardedPorts;
+ public $instanceTag;
+ public $name;
+ public $subnetworkName;
+
+ public function setForwardedPorts($forwardedPorts)
+ {
+ $this->forwardedPorts = $forwardedPorts;
+ }
+ public function getForwardedPorts()
+ {
+ return $this->forwardedPorts;
+ }
+ public function setInstanceTag($instanceTag)
+ {
+ $this->instanceTag = $instanceTag;
+ }
+ public function getInstanceTag()
+ {
+ return $this->instanceTag;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubnetworkName($subnetworkName)
+ {
+ $this->subnetworkName = $subnetworkName;
+ }
+ public function getSubnetworkName()
+ {
+ return $this->subnetworkName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/NetworkUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/NetworkUtilization.php
new file mode 100644
index 00000000..922285e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/NetworkUtilization.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_NetworkUtilization extends Google_Model
+{
+ public $targetReceivedBytesPerSecond;
+ public $targetReceivedPacketsPerSecond;
+ public $targetSentBytesPerSecond;
+ public $targetSentPacketsPerSecond;
+
+ public function setTargetReceivedBytesPerSecond($targetReceivedBytesPerSecond)
+ {
+ $this->targetReceivedBytesPerSecond = $targetReceivedBytesPerSecond;
+ }
+ public function getTargetReceivedBytesPerSecond()
+ {
+ return $this->targetReceivedBytesPerSecond;
+ }
+ public function setTargetReceivedPacketsPerSecond($targetReceivedPacketsPerSecond)
+ {
+ $this->targetReceivedPacketsPerSecond = $targetReceivedPacketsPerSecond;
+ }
+ public function getTargetReceivedPacketsPerSecond()
+ {
+ return $this->targetReceivedPacketsPerSecond;
+ }
+ public function setTargetSentBytesPerSecond($targetSentBytesPerSecond)
+ {
+ $this->targetSentBytesPerSecond = $targetSentBytesPerSecond;
+ }
+ public function getTargetSentBytesPerSecond()
+ {
+ return $this->targetSentBytesPerSecond;
+ }
+ public function setTargetSentPacketsPerSecond($targetSentPacketsPerSecond)
+ {
+ $this->targetSentPacketsPerSecond = $targetSentPacketsPerSecond;
+ }
+ public function getTargetSentPacketsPerSecond()
+ {
+ return $this->targetSentPacketsPerSecond;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Operation.php
new file mode 100644
index 00000000..6a5bd5e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_Appengine_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_Appengine_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadata.php
new file mode 100644
index 00000000..b55c4600
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadata.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_OperationMetadata extends Google_Model
+{
+ public $endTime;
+ public $insertTime;
+ public $method;
+ public $operationType;
+ public $target;
+ public $user;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataExperimental.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataExperimental.php
new file mode 100644
index 00000000..9d680e4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataExperimental.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_OperationMetadataExperimental extends Google_Model
+{
+ public $endTime;
+ public $insertTime;
+ public $method;
+ public $target;
+ public $user;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1.php
new file mode 100644
index 00000000..5a256376
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_OperationMetadataV1 extends Google_Collection
+{
+ protected $collection_key = 'warning';
+ public $endTime;
+ public $ephemeralMessage;
+ public $insertTime;
+ public $method;
+ public $target;
+ public $user;
+ public $warning;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setEphemeralMessage($ephemeralMessage)
+ {
+ $this->ephemeralMessage = $ephemeralMessage;
+ }
+ public function getEphemeralMessage()
+ {
+ return $this->ephemeralMessage;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarning($warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1Beta5.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1Beta5.php
new file mode 100644
index 00000000..de110bf9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/OperationMetadataV1Beta5.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_OperationMetadataV1Beta5 extends Google_Model
+{
+ public $endTime;
+ public $insertTime;
+ public $method;
+ public $target;
+ public $user;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RepairApplicationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RepairApplicationRequest.php
new file mode 100644
index 00000000..4ce8ad39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RepairApplicationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_RepairApplicationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RequestUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RequestUtilization.php
new file mode 100644
index 00000000..2a2757be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/RequestUtilization.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_RequestUtilization extends Google_Model
+{
+ public $targetConcurrentRequests;
+ public $targetRequestCountPerSecond;
+
+ public function setTargetConcurrentRequests($targetConcurrentRequests)
+ {
+ $this->targetConcurrentRequests = $targetConcurrentRequests;
+ }
+ public function getTargetConcurrentRequests()
+ {
+ return $this->targetConcurrentRequests;
+ }
+ public function setTargetRequestCountPerSecond($targetRequestCountPerSecond)
+ {
+ $this->targetRequestCountPerSecond = $targetRequestCountPerSecond;
+ }
+ public function getTargetRequestCountPerSecond()
+ {
+ return $this->targetRequestCountPerSecond;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Apps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Apps.php
new file mode 100644
index 00000000..9e379e1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Apps.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "apps" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $apps = $appengineService->apps;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_Apps extends Google_Service_Resource
+{
+ /**
+ * Creates an App Engine application for a Google Cloud Platform project. This
+ * requires a project that excludes an App Engine application. For details about
+ * creating a project without an application, see the Google Cloud Resource
+ * Manager create project topic (https://cloud.google.com/resource-manager/docs
+ * /creating-project). (apps.create)
+ *
+ * @param Google_Service_Appengine_Application $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function create(Google_Service_Appengine_Application $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Gets information about an application. (apps.get)
+ *
+ * @param string $appsId Part of `name`. Name of the Application resource to
+ * get. Example: apps/myapp.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Application
+ */
+ public function get($appsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Appengine_Application");
+ }
+ /**
+ * Updates the specified Application resource. You can update the following
+ * fields: auth_domain (https://cloud.google.com/appengine/docs/admin-
+ * api/reference/rest/v1/apps#Application.FIELDS.auth_domain)
+ * default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-
+ * api/reference/rest/v1/apps#Application.FIELDS.default_cookie_expiration)
+ * (apps.patch)
+ *
+ * @param string $appsId Part of `name`. Name of the Application resource to
+ * update. Example: apps/myapp.
+ * @param Google_Service_Appengine_Application $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Standard field mask for the set of fields to be
+ * updated.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function patch($appsId, Google_Service_Appengine_Application $postBody, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Recreates the required App Engine features for the specified App Engine
+ * application, for example a Cloud Storage bucket or App Engine service
+ * account. Use this method if you receive an error message about a missing
+ * feature, for example, Error retrieving the App Engine service account.
+ * (apps.repair)
+ *
+ * @param string $appsId Part of `name`. Name of the application to repair.
+ * Example: apps/myapp
+ * @param Google_Service_Appengine_RepairApplicationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function repair($appsId, Google_Service_Appengine_RepairApplicationRequest $postBody, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('repair', array($params), "Google_Service_Appengine_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsLocations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsLocations.php
new file mode 100644
index 00000000..d9d27b8e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsLocations.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "locations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $locations = $appengineService->locations;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_AppsLocations extends Google_Service_Resource
+{
+ /**
+ * Get information about a location. (locations.get)
+ *
+ * @param string $appsId Part of `name`. Resource name for the location.
+ * @param string $locationsId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Location
+ */
+ public function get($appsId, $locationsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'locationsId' => $locationsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Appengine_Location");
+ }
+ /**
+ * Lists information about the supported locations for this service.
+ * (locations.listAppsLocations)
+ *
+ * @param string $appsId Part of `name`. The resource that owns the locations
+ * collection, if applicable.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_Appengine_ListLocationsResponse
+ */
+ public function listAppsLocations($appsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Appengine_ListLocationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php
new file mode 100644
index 00000000..5b0c6333
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsOperations.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $operations = $appengineService->operations;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_AppsOperations extends Google_Service_Resource
+{
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $appsId Part of `name`. The name of the operation resource.
+ * @param string $operationsId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function get($appsId, $operationsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'operationsId' => $operationsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name
+ * binding below allows API services to override the binding to use different
+ * resource name schemes, such as users/operations.
+ * (operations.listAppsOperations)
+ *
+ * @param string $appsId Part of `name`. The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_Appengine_ListOperationsResponse
+ */
+ public function listAppsOperations($appsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Appengine_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php
new file mode 100644
index 00000000..77095a8a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServices.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "services" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $services = $appengineService->services;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_AppsServices extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified service and all enclosed versions. (services.delete)
+ *
+ * @param string $appsId Part of `name`. Name of the resource requested.
+ * Example: apps/myapp/services/default.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function delete($appsId, $servicesId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Gets the current configuration of the specified service. (services.get)
+ *
+ * @param string $appsId Part of `name`. Name of the resource requested.
+ * Example: apps/myapp/services/default.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Service
+ */
+ public function get($appsId, $servicesId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Appengine_Service");
+ }
+ /**
+ * Lists all the services in the application. (services.listAppsServices)
+ *
+ * @param string $appsId Part of `parent`. Name of the parent Application
+ * resource. Example: apps/myapp.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum results to return per page.
+ * @opt_param string pageToken Continuation token for fetching the next page of
+ * results.
+ * @return Google_Service_Appengine_ListServicesResponse
+ */
+ public function listAppsServices($appsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Appengine_ListServicesResponse");
+ }
+ /**
+ * Updates the configuration of the specified service. (services.patch)
+ *
+ * @param string $appsId Part of `name`. Name of the resource to update.
+ * Example: apps/myapp/services/default.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param Google_Service_Appengine_Service $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Standard field mask for the set of fields to be
+ * updated.
+ * @opt_param bool migrateTraffic Set to true to gradually shift traffic from
+ * one version to another single version. By default, traffic is shifted
+ * immediately. For gradual traffic migration, the target version must be
+ * located within instances that are configured for both warmup requests
+ * (https://cloud.google.com/appengine/docs/admin-
+ * api/reference/rest/v1/apps.services.versions#inboundservicetype) and
+ * automatic scaling (https://cloud.google.com/appengine/docs/admin-
+ * api/reference/rest/v1/apps.services.versions#automaticscaling). You must
+ * specify the shardBy (https://cloud.google.com/appengine/docs/admin-
+ * api/reference/rest/v1/apps.services#shardby) field in the Service resource.
+ * Gradual traffic migration is not supported in the App Engine flexible
+ * environment. For examples, see Migrating and Splitting Traffic
+ * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-
+ * traffic).
+ * @return Google_Service_Appengine_Operation
+ */
+ public function patch($appsId, $servicesId, Google_Service_Appengine_Service $postBody, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Appengine_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php
new file mode 100644
index 00000000..3c1eb114
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersions.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "versions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $versions = $appengineService->versions;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_AppsServicesVersions extends Google_Service_Resource
+{
+ /**
+ * Deploys code and resource files to a new version. (versions.create)
+ *
+ * @param string $appsId Part of `parent`. Name of the parent resource to create
+ * this version under. Example: apps/myapp/services/default.
+ * @param string $servicesId Part of `parent`. See documentation of `appsId`.
+ * @param Google_Service_Appengine_Version $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function create($appsId, $servicesId, Google_Service_Appengine_Version $postBody, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Deletes an existing Version resource. (versions.delete)
+ *
+ * @param string $appsId Part of `name`. Name of the resource requested.
+ * Example: apps/myapp/services/default/versions/v1.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param string $versionsId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function delete($appsId, $servicesId, $versionsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Gets the specified Version resource. By default, only a BASIC_VIEW will be
+ * returned. Specify the FULL_VIEW parameter to get the full resource.
+ * (versions.get)
+ *
+ * @param string $appsId Part of `name`. Name of the resource requested.
+ * Example: apps/myapp/services/default/versions/v1.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param string $versionsId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view Controls the set of fields returned in the Get
+ * response.
+ * @return Google_Service_Appengine_Version
+ */
+ public function get($appsId, $servicesId, $versionsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Appengine_Version");
+ }
+ /**
+ * Lists the versions of a service. (versions.listAppsServicesVersions)
+ *
+ * @param string $appsId Part of `parent`. Name of the parent Service resource.
+ * Example: apps/myapp/services/default.
+ * @param string $servicesId Part of `parent`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view Controls the set of fields returned in the List
+ * response.
+ * @opt_param int pageSize Maximum results to return per page.
+ * @opt_param string pageToken Continuation token for fetching the next page of
+ * results.
+ * @return Google_Service_Appengine_ListVersionsResponse
+ */
+ public function listAppsServicesVersions($appsId, $servicesId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Appengine_ListVersionsResponse");
+ }
+ /**
+ * Updates the specified Version resource. You can specify the following fields
+ * depending on the App Engine environment and type of scaling that the version
+ * resource uses: serving_status (https://cloud.google.com/appengine/docs/admin-
+ * api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status):
+ * For Version resources that use basic scaling, manual scaling, or run in the
+ * App Engine flexible environment. instance_class
+ * (https://cloud.google.com/appengine/docs/admin-
+ * api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class):
+ * For Version resources that run in the App Engine standard environment.
+ * automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs
+ * /admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_
+ * scaling): For Version resources that use automatic scaling and run in the App
+ * Engine standard environment. automatic_scaling.max_idle_instances
+ * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
+ * vices.versions#Version.FIELDS.automatic_scaling): For Version resources that
+ * use automatic scaling and run in the App Engine standard environment.
+ * (versions.patch)
+ *
+ * @param string $appsId Part of `name`. Name of the resource to update.
+ * Example: apps/myapp/services/default/versions/1.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param string $versionsId Part of `name`. See documentation of `appsId`.
+ * @param Google_Service_Appengine_Version $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Standard field mask for the set of fields to be
+ * updated.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function patch($appsId, $servicesId, $versionsId, Google_Service_Appengine_Version $postBody, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Appengine_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersionsInstances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersionsInstances.php
new file mode 100644
index 00000000..a1e8c24f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/AppsServicesVersionsInstances.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instances" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $instances = $appengineService->instances;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_AppsServicesVersionsInstances extends Google_Service_Resource
+{
+ /**
+ * Enables debugging on a VM instance. This allows you to use the SSH command to
+ * connect to the virtual machine where the instance lives. While in "debug
+ * mode", the instance continues to serve live traffic. You should delete the
+ * instance when you are done debugging and then allow the system to take over
+ * and determine if another instance should be started.Only applicable for
+ * instances in App Engine flexible environment. (instances.debug)
+ *
+ * @param string $appsId Part of `name`. Name of the resource requested.
+ * Example: apps/myapp/services/default/versions/v1/instances/instance-1.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param string $versionsId Part of `name`. See documentation of `appsId`.
+ * @param string $instancesId Part of `name`. See documentation of `appsId`.
+ * @param Google_Service_Appengine_DebugInstanceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function debug($appsId, $servicesId, $versionsId, $instancesId, Google_Service_Appengine_DebugInstanceRequest $postBody, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('debug', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Stops a running instance. (instances.delete)
+ *
+ * @param string $appsId Part of `name`. Name of the resource requested.
+ * Example: apps/myapp/services/default/versions/v1/instances/instance-1.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param string $versionsId Part of `name`. See documentation of `appsId`.
+ * @param string $instancesId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function delete($appsId, $servicesId, $versionsId, $instancesId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Gets instance information. (instances.get)
+ *
+ * @param string $appsId Part of `name`. Name of the resource requested.
+ * Example: apps/myapp/services/default/versions/v1/instances/instance-1.
+ * @param string $servicesId Part of `name`. See documentation of `appsId`.
+ * @param string $versionsId Part of `name`. See documentation of `appsId`.
+ * @param string $instancesId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Instance
+ */
+ public function get($appsId, $servicesId, $versionsId, $instancesId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Appengine_Instance");
+ }
+ /**
+ * Lists the instances of a version.
+ * (instances.listAppsServicesVersionsInstances)
+ *
+ * @param string $appsId Part of `parent`. Name of the parent Version resource.
+ * Example: apps/myapp/services/default/versions/v1.
+ * @param string $servicesId Part of `parent`. See documentation of `appsId`.
+ * @param string $versionsId Part of `parent`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum results to return per page.
+ * @opt_param string pageToken Continuation token for fetching the next page of
+ * results.
+ * @return Google_Service_Appengine_ListInstancesResponse
+ */
+ public function listAppsServicesVersionsInstances($appsId, $servicesId, $versionsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Appengine_ListInstancesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Experimental.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Experimental.php
new file mode 100644
index 00000000..4ac8bd4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/Experimental.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "experimental" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $experimental = $appengineService->experimental;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_Experimental extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalApps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalApps.php
new file mode 100644
index 00000000..99fc1a4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalApps.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "apps" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $apps = $appengineService->apps;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_ExperimentalApps extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalAppsOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalAppsOperations.php
new file mode 100644
index 00000000..802c1dab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resource/ExperimentalAppsOperations.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appengineService = new Google_Service_Appengine(...);
+ * $operations = $appengineService->operations;
+ * </code>
+ */
+class Google_Service_Appengine_Resource_ExperimentalAppsOperations extends Google_Service_Resource
+{
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $appsId Part of `name`. The name of the operation resource.
+ * @param string $operationsId Part of `name`. See documentation of `appsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Appengine_Operation
+ */
+ public function get($appsId, $operationsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId, 'operationsId' => $operationsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Appengine_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the
+ * `name` binding below allows API services to override the binding to use
+ * different resource name schemes, such as `users/operations`.
+ * (operations.listExperimentalAppsOperations)
+ *
+ * @param string $appsId Part of `name`. The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_Appengine_ListOperationsResponse
+ */
+ public function listExperimentalAppsOperations($appsId, $optParams = array())
+ {
+ $params = array('appsId' => $appsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Appengine_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resources.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resources.php
new file mode 100644
index 00000000..39819350
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Resources.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Resources extends Google_Collection
+{
+ protected $collection_key = 'volumes';
+ public $cpu;
+ public $diskGb;
+ public $memoryGb;
+ protected $volumesType = 'Google_Service_Appengine_Volume';
+ protected $volumesDataType = 'array';
+
+ public function setCpu($cpu)
+ {
+ $this->cpu = $cpu;
+ }
+ public function getCpu()
+ {
+ return $this->cpu;
+ }
+ public function setDiskGb($diskGb)
+ {
+ $this->diskGb = $diskGb;
+ }
+ public function getDiskGb()
+ {
+ return $this->diskGb;
+ }
+ public function setMemoryGb($memoryGb)
+ {
+ $this->memoryGb = $memoryGb;
+ }
+ public function getMemoryGb()
+ {
+ return $this->memoryGb;
+ }
+ public function setVolumes($volumes)
+ {
+ $this->volumes = $volumes;
+ }
+ public function getVolumes()
+ {
+ return $this->volumes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ScriptHandler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ScriptHandler.php
new file mode 100644
index 00000000..cf7902d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ScriptHandler.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ScriptHandler extends Google_Model
+{
+ public $scriptPath;
+
+ public function setScriptPath($scriptPath)
+ {
+ $this->scriptPath = $scriptPath;
+ }
+ public function getScriptPath()
+ {
+ return $this->scriptPath;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Service.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Service.php
new file mode 100644
index 00000000..e6321b33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Service.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Service extends Google_Model
+{
+ public $id;
+ public $name;
+ protected $splitType = 'Google_Service_Appengine_TrafficSplit';
+ protected $splitDataType = '';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSplit(Google_Service_Appengine_TrafficSplit $split)
+ {
+ $this->split = $split;
+ }
+ public function getSplit()
+ {
+ return $this->split;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/SourceReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/SourceReference.php
new file mode 100644
index 00000000..fadc6039
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/SourceReference.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_SourceReference extends Google_Model
+{
+ public $repository;
+ public $revisionId;
+
+ public function setRepository($repository)
+ {
+ $this->repository = $repository;
+ }
+ public function getRepository()
+ {
+ return $this->repository;
+ }
+ public function setRevisionId($revisionId)
+ {
+ $this->revisionId = $revisionId;
+ }
+ public function getRevisionId()
+ {
+ return $this->revisionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/StaticFilesHandler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/StaticFilesHandler.php
new file mode 100644
index 00000000..5a51584b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/StaticFilesHandler.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_StaticFilesHandler extends Google_Model
+{
+ public $applicationReadable;
+ public $expiration;
+ public $httpHeaders;
+ public $mimeType;
+ public $path;
+ public $requireMatchingFile;
+ public $uploadPathRegex;
+
+ public function setApplicationReadable($applicationReadable)
+ {
+ $this->applicationReadable = $applicationReadable;
+ }
+ public function getApplicationReadable()
+ {
+ return $this->applicationReadable;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setHttpHeaders($httpHeaders)
+ {
+ $this->httpHeaders = $httpHeaders;
+ }
+ public function getHttpHeaders()
+ {
+ return $this->httpHeaders;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+ public function setRequireMatchingFile($requireMatchingFile)
+ {
+ $this->requireMatchingFile = $requireMatchingFile;
+ }
+ public function getRequireMatchingFile()
+ {
+ return $this->requireMatchingFile;
+ }
+ public function setUploadPathRegex($uploadPathRegex)
+ {
+ $this->uploadPathRegex = $uploadPathRegex;
+ }
+ public function getUploadPathRegex()
+ {
+ return $this->uploadPathRegex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Status.php
new file mode 100644
index 00000000..d80b5b19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/TrafficSplit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/TrafficSplit.php
new file mode 100644
index 00000000..055d4d3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/TrafficSplit.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_TrafficSplit extends Google_Model
+{
+ public $allocations;
+ public $shardBy;
+
+ public function setAllocations($allocations)
+ {
+ $this->allocations = $allocations;
+ }
+ public function getAllocations()
+ {
+ return $this->allocations;
+ }
+ public function setShardBy($shardBy)
+ {
+ $this->shardBy = $shardBy;
+ }
+ public function getShardBy()
+ {
+ return $this->shardBy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlDispatchRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlDispatchRule.php
new file mode 100644
index 00000000..dd889ecc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlDispatchRule.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_UrlDispatchRule extends Google_Model
+{
+ public $domain;
+ public $path;
+ public $service;
+
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlMap.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlMap.php
new file mode 100644
index 00000000..01ddd838
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/UrlMap.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_UrlMap extends Google_Model
+{
+ protected $apiEndpointType = 'Google_Service_Appengine_ApiEndpointHandler';
+ protected $apiEndpointDataType = '';
+ public $authFailAction;
+ public $login;
+ public $redirectHttpResponseCode;
+ protected $scriptType = 'Google_Service_Appengine_ScriptHandler';
+ protected $scriptDataType = '';
+ public $securityLevel;
+ protected $staticFilesType = 'Google_Service_Appengine_StaticFilesHandler';
+ protected $staticFilesDataType = '';
+ public $urlRegex;
+
+ public function setApiEndpoint(Google_Service_Appengine_ApiEndpointHandler $apiEndpoint)
+ {
+ $this->apiEndpoint = $apiEndpoint;
+ }
+ public function getApiEndpoint()
+ {
+ return $this->apiEndpoint;
+ }
+ public function setAuthFailAction($authFailAction)
+ {
+ $this->authFailAction = $authFailAction;
+ }
+ public function getAuthFailAction()
+ {
+ return $this->authFailAction;
+ }
+ public function setLogin($login)
+ {
+ $this->login = $login;
+ }
+ public function getLogin()
+ {
+ return $this->login;
+ }
+ public function setRedirectHttpResponseCode($redirectHttpResponseCode)
+ {
+ $this->redirectHttpResponseCode = $redirectHttpResponseCode;
+ }
+ public function getRedirectHttpResponseCode()
+ {
+ return $this->redirectHttpResponseCode;
+ }
+ public function setScript(Google_Service_Appengine_ScriptHandler $script)
+ {
+ $this->script = $script;
+ }
+ public function getScript()
+ {
+ return $this->script;
+ }
+ public function setSecurityLevel($securityLevel)
+ {
+ $this->securityLevel = $securityLevel;
+ }
+ public function getSecurityLevel()
+ {
+ return $this->securityLevel;
+ }
+ public function setStaticFiles(Google_Service_Appengine_StaticFilesHandler $staticFiles)
+ {
+ $this->staticFiles = $staticFiles;
+ }
+ public function getStaticFiles()
+ {
+ return $this->staticFiles;
+ }
+ public function setUrlRegex($urlRegex)
+ {
+ $this->urlRegex = $urlRegex;
+ }
+ public function getUrlRegex()
+ {
+ return $this->urlRegex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Version.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Version.php
new file mode 100644
index 00000000..32d603ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Version.php
@@ -0,0 +1,295 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Version extends Google_Collection
+{
+ protected $collection_key = 'libraries';
+ protected $apiConfigType = 'Google_Service_Appengine_ApiConfigHandler';
+ protected $apiConfigDataType = '';
+ protected $automaticScalingType = 'Google_Service_Appengine_AutomaticScaling';
+ protected $automaticScalingDataType = '';
+ protected $basicScalingType = 'Google_Service_Appengine_BasicScaling';
+ protected $basicScalingDataType = '';
+ public $betaSettings;
+ public $createTime;
+ public $createdBy;
+ public $defaultExpiration;
+ protected $deploymentType = 'Google_Service_Appengine_Deployment';
+ protected $deploymentDataType = '';
+ public $diskUsageBytes;
+ protected $endpointsApiServiceType = 'Google_Service_Appengine_EndpointsApiService';
+ protected $endpointsApiServiceDataType = '';
+ public $env;
+ public $envVariables;
+ protected $errorHandlersType = 'Google_Service_Appengine_ErrorHandler';
+ protected $errorHandlersDataType = 'array';
+ protected $handlersType = 'Google_Service_Appengine_UrlMap';
+ protected $handlersDataType = 'array';
+ protected $healthCheckType = 'Google_Service_Appengine_HealthCheck';
+ protected $healthCheckDataType = '';
+ public $id;
+ public $inboundServices;
+ public $instanceClass;
+ protected $librariesType = 'Google_Service_Appengine_Library';
+ protected $librariesDataType = 'array';
+ protected $manualScalingType = 'Google_Service_Appengine_ManualScaling';
+ protected $manualScalingDataType = '';
+ public $name;
+ protected $networkType = 'Google_Service_Appengine_Network';
+ protected $networkDataType = '';
+ public $nobuildFilesRegex;
+ protected $resourcesType = 'Google_Service_Appengine_Resources';
+ protected $resourcesDataType = '';
+ public $runtime;
+ public $servingStatus;
+ public $threadsafe;
+ public $versionUrl;
+ public $vm;
+
+ public function setApiConfig(Google_Service_Appengine_ApiConfigHandler $apiConfig)
+ {
+ $this->apiConfig = $apiConfig;
+ }
+ public function getApiConfig()
+ {
+ return $this->apiConfig;
+ }
+ public function setAutomaticScaling(Google_Service_Appengine_AutomaticScaling $automaticScaling)
+ {
+ $this->automaticScaling = $automaticScaling;
+ }
+ public function getAutomaticScaling()
+ {
+ return $this->automaticScaling;
+ }
+ public function setBasicScaling(Google_Service_Appengine_BasicScaling $basicScaling)
+ {
+ $this->basicScaling = $basicScaling;
+ }
+ public function getBasicScaling()
+ {
+ return $this->basicScaling;
+ }
+ public function setBetaSettings($betaSettings)
+ {
+ $this->betaSettings = $betaSettings;
+ }
+ public function getBetaSettings()
+ {
+ return $this->betaSettings;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setCreatedBy($createdBy)
+ {
+ $this->createdBy = $createdBy;
+ }
+ public function getCreatedBy()
+ {
+ return $this->createdBy;
+ }
+ public function setDefaultExpiration($defaultExpiration)
+ {
+ $this->defaultExpiration = $defaultExpiration;
+ }
+ public function getDefaultExpiration()
+ {
+ return $this->defaultExpiration;
+ }
+ public function setDeployment(Google_Service_Appengine_Deployment $deployment)
+ {
+ $this->deployment = $deployment;
+ }
+ public function getDeployment()
+ {
+ return $this->deployment;
+ }
+ public function setDiskUsageBytes($diskUsageBytes)
+ {
+ $this->diskUsageBytes = $diskUsageBytes;
+ }
+ public function getDiskUsageBytes()
+ {
+ return $this->diskUsageBytes;
+ }
+ public function setEndpointsApiService(Google_Service_Appengine_EndpointsApiService $endpointsApiService)
+ {
+ $this->endpointsApiService = $endpointsApiService;
+ }
+ public function getEndpointsApiService()
+ {
+ return $this->endpointsApiService;
+ }
+ public function setEnv($env)
+ {
+ $this->env = $env;
+ }
+ public function getEnv()
+ {
+ return $this->env;
+ }
+ public function setEnvVariables($envVariables)
+ {
+ $this->envVariables = $envVariables;
+ }
+ public function getEnvVariables()
+ {
+ return $this->envVariables;
+ }
+ public function setErrorHandlers($errorHandlers)
+ {
+ $this->errorHandlers = $errorHandlers;
+ }
+ public function getErrorHandlers()
+ {
+ return $this->errorHandlers;
+ }
+ public function setHandlers($handlers)
+ {
+ $this->handlers = $handlers;
+ }
+ public function getHandlers()
+ {
+ return $this->handlers;
+ }
+ public function setHealthCheck(Google_Service_Appengine_HealthCheck $healthCheck)
+ {
+ $this->healthCheck = $healthCheck;
+ }
+ public function getHealthCheck()
+ {
+ return $this->healthCheck;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInboundServices($inboundServices)
+ {
+ $this->inboundServices = $inboundServices;
+ }
+ public function getInboundServices()
+ {
+ return $this->inboundServices;
+ }
+ public function setInstanceClass($instanceClass)
+ {
+ $this->instanceClass = $instanceClass;
+ }
+ public function getInstanceClass()
+ {
+ return $this->instanceClass;
+ }
+ public function setLibraries($libraries)
+ {
+ $this->libraries = $libraries;
+ }
+ public function getLibraries()
+ {
+ return $this->libraries;
+ }
+ public function setManualScaling(Google_Service_Appengine_ManualScaling $manualScaling)
+ {
+ $this->manualScaling = $manualScaling;
+ }
+ public function getManualScaling()
+ {
+ return $this->manualScaling;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork(Google_Service_Appengine_Network $network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setNobuildFilesRegex($nobuildFilesRegex)
+ {
+ $this->nobuildFilesRegex = $nobuildFilesRegex;
+ }
+ public function getNobuildFilesRegex()
+ {
+ return $this->nobuildFilesRegex;
+ }
+ public function setResources(Google_Service_Appengine_Resources $resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+ public function setRuntime($runtime)
+ {
+ $this->runtime = $runtime;
+ }
+ public function getRuntime()
+ {
+ return $this->runtime;
+ }
+ public function setServingStatus($servingStatus)
+ {
+ $this->servingStatus = $servingStatus;
+ }
+ public function getServingStatus()
+ {
+ return $this->servingStatus;
+ }
+ public function setThreadsafe($threadsafe)
+ {
+ $this->threadsafe = $threadsafe;
+ }
+ public function getThreadsafe()
+ {
+ return $this->threadsafe;
+ }
+ public function setVersionUrl($versionUrl)
+ {
+ $this->versionUrl = $versionUrl;
+ }
+ public function getVersionUrl()
+ {
+ return $this->versionUrl;
+ }
+ public function setVm($vm)
+ {
+ $this->vm = $vm;
+ }
+ public function getVm()
+ {
+ return $this->vm;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Volume.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Volume.php
new file mode 100644
index 00000000..bc491dd7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/Volume.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_Volume extends Google_Model
+{
+ public $name;
+ public $sizeGb;
+ public $volumeType;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSizeGb($sizeGb)
+ {
+ $this->sizeGb = $sizeGb;
+ }
+ public function getSizeGb()
+ {
+ return $this->sizeGb;
+ }
+ public function setVolumeType($volumeType)
+ {
+ $this->volumeType = $volumeType;
+ }
+ public function getVolumeType()
+ {
+ return $this->volumeType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ZipInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ZipInfo.php
new file mode 100644
index 00000000..f2c6cc31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appengine/ZipInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appengine_ZipInfo extends Google_Model
+{
+ public $filesCount;
+ public $sourceUrl;
+
+ public function setFilesCount($filesCount)
+ {
+ $this->filesCount = $filesCount;
+ }
+ public function getFilesCount()
+ {
+ return $this->filesCount;
+ }
+ public function setSourceUrl($sourceUrl)
+ {
+ $this->sourceUrl = $sourceUrl;
+ }
+ public function getSourceUrl()
+ {
+ return $this->sourceUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity.php
new file mode 100644
index 00000000..95cb3065
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Appsactivity (v1).
+ *
+ * <p>
+ * Provides a historical view of activity.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/google-apps/activity/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Appsactivity extends Google_Service
+{
+ /** View the activity history of your Google apps. */
+ const ACTIVITY =
+ "https://www.googleapis.com/auth/activity";
+ /** View and manage the files in your Google Drive. */
+ const DRIVE =
+ "https://www.googleapis.com/auth/drive";
+ /** View and manage metadata of files in your Google Drive. */
+ const DRIVE_METADATA =
+ "https://www.googleapis.com/auth/drive.metadata";
+ /** View metadata for files in your Google Drive. */
+ const DRIVE_METADATA_READONLY =
+ "https://www.googleapis.com/auth/drive.metadata.readonly";
+ /** View the files in your Google Drive. */
+ const DRIVE_READONLY =
+ "https://www.googleapis.com/auth/drive.readonly";
+
+ public $activities;
+
+ /**
+ * Constructs the internal representation of the Appsactivity service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'appsactivity/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'appsactivity';
+
+ $this->activities = new Google_Service_Appsactivity_Resource_Activities(
+ $this,
+ $this->serviceName,
+ 'activities',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'activities',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'drive.ancestorId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'drive.fileId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'groupingStrategy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Activity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Activity.php
new file mode 100644
index 00000000..0e854bde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Activity.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_Activity extends Google_Collection
+{
+ protected $collection_key = 'singleEvents';
+ protected $combinedEventType = 'Google_Service_Appsactivity_Event';
+ protected $combinedEventDataType = '';
+ protected $singleEventsType = 'Google_Service_Appsactivity_Event';
+ protected $singleEventsDataType = 'array';
+
+ public function setCombinedEvent(Google_Service_Appsactivity_Event $combinedEvent)
+ {
+ $this->combinedEvent = $combinedEvent;
+ }
+ public function getCombinedEvent()
+ {
+ return $this->combinedEvent;
+ }
+ public function setSingleEvents($singleEvents)
+ {
+ $this->singleEvents = $singleEvents;
+ }
+ public function getSingleEvents()
+ {
+ return $this->singleEvents;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/AppsactivityParent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/AppsactivityParent.php
new file mode 100644
index 00000000..25564618
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/AppsactivityParent.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_AppsactivityParent extends Google_Model
+{
+ public $id;
+ public $isRoot;
+ public $title;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsRoot($isRoot)
+ {
+ $this->isRoot = $isRoot;
+ }
+ public function getIsRoot()
+ {
+ return $this->isRoot;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Event.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Event.php
new file mode 100644
index 00000000..26a99881
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Event.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_Event extends Google_Collection
+{
+ protected $collection_key = 'permissionChanges';
+ public $additionalEventTypes;
+ public $eventTimeMillis;
+ public $fromUserDeletion;
+ protected $moveType = 'Google_Service_Appsactivity_Move';
+ protected $moveDataType = '';
+ protected $permissionChangesType = 'Google_Service_Appsactivity_PermissionChange';
+ protected $permissionChangesDataType = 'array';
+ public $primaryEventType;
+ protected $renameType = 'Google_Service_Appsactivity_Rename';
+ protected $renameDataType = '';
+ protected $targetType = 'Google_Service_Appsactivity_Target';
+ protected $targetDataType = '';
+ protected $userType = 'Google_Service_Appsactivity_User';
+ protected $userDataType = '';
+
+ public function setAdditionalEventTypes($additionalEventTypes)
+ {
+ $this->additionalEventTypes = $additionalEventTypes;
+ }
+ public function getAdditionalEventTypes()
+ {
+ return $this->additionalEventTypes;
+ }
+ public function setEventTimeMillis($eventTimeMillis)
+ {
+ $this->eventTimeMillis = $eventTimeMillis;
+ }
+ public function getEventTimeMillis()
+ {
+ return $this->eventTimeMillis;
+ }
+ public function setFromUserDeletion($fromUserDeletion)
+ {
+ $this->fromUserDeletion = $fromUserDeletion;
+ }
+ public function getFromUserDeletion()
+ {
+ return $this->fromUserDeletion;
+ }
+ public function setMove(Google_Service_Appsactivity_Move $move)
+ {
+ $this->move = $move;
+ }
+ public function getMove()
+ {
+ return $this->move;
+ }
+ public function setPermissionChanges($permissionChanges)
+ {
+ $this->permissionChanges = $permissionChanges;
+ }
+ public function getPermissionChanges()
+ {
+ return $this->permissionChanges;
+ }
+ public function setPrimaryEventType($primaryEventType)
+ {
+ $this->primaryEventType = $primaryEventType;
+ }
+ public function getPrimaryEventType()
+ {
+ return $this->primaryEventType;
+ }
+ public function setRename(Google_Service_Appsactivity_Rename $rename)
+ {
+ $this->rename = $rename;
+ }
+ public function getRename()
+ {
+ return $this->rename;
+ }
+ public function setTarget(Google_Service_Appsactivity_Target $target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setUser(Google_Service_Appsactivity_User $user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/ListActivitiesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/ListActivitiesResponse.php
new file mode 100644
index 00000000..2a82e889
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/ListActivitiesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_ListActivitiesResponse extends Google_Collection
+{
+ protected $collection_key = 'activities';
+ protected $activitiesType = 'Google_Service_Appsactivity_Activity';
+ protected $activitiesDataType = 'array';
+ public $nextPageToken;
+
+ public function setActivities($activities)
+ {
+ $this->activities = $activities;
+ }
+ public function getActivities()
+ {
+ return $this->activities;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Move.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Move.php
new file mode 100644
index 00000000..48c08dd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Move.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_Move extends Google_Collection
+{
+ protected $collection_key = 'removedParents';
+ protected $addedParentsType = 'Google_Service_Appsactivity_AppsactivityParent';
+ protected $addedParentsDataType = 'array';
+ protected $removedParentsType = 'Google_Service_Appsactivity_AppsactivityParent';
+ protected $removedParentsDataType = 'array';
+
+ public function setAddedParents($addedParents)
+ {
+ $this->addedParents = $addedParents;
+ }
+ public function getAddedParents()
+ {
+ return $this->addedParents;
+ }
+ public function setRemovedParents($removedParents)
+ {
+ $this->removedParents = $removedParents;
+ }
+ public function getRemovedParents()
+ {
+ return $this->removedParents;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Permission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Permission.php
new file mode 100644
index 00000000..6fec4049
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Permission.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_Permission extends Google_Model
+{
+ public $name;
+ public $permissionId;
+ public $role;
+ public $type;
+ protected $userType = 'Google_Service_Appsactivity_User';
+ protected $userDataType = '';
+ public $withLink;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUser(Google_Service_Appsactivity_User $user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWithLink($withLink)
+ {
+ $this->withLink = $withLink;
+ }
+ public function getWithLink()
+ {
+ return $this->withLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/PermissionChange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/PermissionChange.php
new file mode 100644
index 00000000..f070e9eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/PermissionChange.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_PermissionChange extends Google_Collection
+{
+ protected $collection_key = 'removedPermissions';
+ protected $addedPermissionsType = 'Google_Service_Appsactivity_Permission';
+ protected $addedPermissionsDataType = 'array';
+ protected $removedPermissionsType = 'Google_Service_Appsactivity_Permission';
+ protected $removedPermissionsDataType = 'array';
+
+ public function setAddedPermissions($addedPermissions)
+ {
+ $this->addedPermissions = $addedPermissions;
+ }
+ public function getAddedPermissions()
+ {
+ return $this->addedPermissions;
+ }
+ public function setRemovedPermissions($removedPermissions)
+ {
+ $this->removedPermissions = $removedPermissions;
+ }
+ public function getRemovedPermissions()
+ {
+ return $this->removedPermissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Photo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Photo.php
new file mode 100644
index 00000000..6bb27174
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Photo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_Photo extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Rename.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Rename.php
new file mode 100644
index 00000000..1e714abc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Rename.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_Rename extends Google_Model
+{
+ public $newTitle;
+ public $oldTitle;
+
+ public function setNewTitle($newTitle)
+ {
+ $this->newTitle = $newTitle;
+ }
+ public function getNewTitle()
+ {
+ return $this->newTitle;
+ }
+ public function setOldTitle($oldTitle)
+ {
+ $this->oldTitle = $oldTitle;
+ }
+ public function getOldTitle()
+ {
+ return $this->oldTitle;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Resource/Activities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Resource/Activities.php
new file mode 100644
index 00000000..d5589f66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Resource/Activities.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "activities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $appsactivityService = new Google_Service_Appsactivity(...);
+ * $activities = $appsactivityService->activities;
+ * </code>
+ */
+class Google_Service_Appsactivity_Resource_Activities extends Google_Service_Resource
+{
+ /**
+ * Returns a list of activities visible to the current logged in user. Visible
+ * activities are determined by the visiblity settings of the object that was
+ * acted on, e.g. Drive files a user can see. An activity is a record of past
+ * events. Multiple events may be merged if they are similar. A request is
+ * scoped to activities from a given Google service using the source parameter.
+ * (activities.listActivities)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string drive.ancestorId Identifies the Drive folder containing the
+ * items for which to return activities.
+ * @opt_param string drive.fileId Identifies the Drive item to return activities
+ * for.
+ * @opt_param string groupingStrategy Indicates the strategy to use when
+ * grouping singleEvents items in the associated combinedEvent object.
+ * @opt_param int pageSize The maximum number of events to return on a page. The
+ * response includes a continuation token if there are more events.
+ * @opt_param string pageToken A token to retrieve a specific page of results.
+ * @opt_param string source The Google service from which to return activities.
+ * Possible values of source are: - drive.google.com
+ * @opt_param string userId Indicates the user to return activity for. Use the
+ * special value me to indicate the currently authenticated user.
+ * @return Google_Service_Appsactivity_ListActivitiesResponse
+ */
+ public function listActivities($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Appsactivity_ListActivitiesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Target.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Target.php
new file mode 100644
index 00000000..a4d3107a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/Target.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_Target extends Google_Model
+{
+ public $id;
+ public $mimeType;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/User.php
new file mode 100644
index 00000000..e0d2de4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Appsactivity/User.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Appsactivity_User extends Google_Model
+{
+ public $isDeleted;
+ public $isMe;
+ public $name;
+ public $permissionId;
+ protected $photoType = 'Google_Service_Appsactivity_Photo';
+ protected $photoDataType = '';
+
+ public function setIsDeleted($isDeleted)
+ {
+ $this->isDeleted = $isDeleted;
+ }
+ public function getIsDeleted()
+ {
+ return $this->isDeleted;
+ }
+ public function setIsMe($isMe)
+ {
+ $this->isMe = $isMe;
+ }
+ public function getIsMe()
+ {
+ return $this->isMe;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+ public function setPhoto(Google_Service_Appsactivity_Photo $photo)
+ {
+ $this->photo = $photo;
+ }
+ public function getPhoto()
+ {
+ return $this->photo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler.php
new file mode 100644
index 00000000..619cb66e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler.php
@@ -0,0 +1,299 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Autoscaler (v1beta2).
+ *
+ * <p>
+ * The Google Compute Engine Autoscaler API provides autoscaling for groups of
+ * Cloud VMs.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="http://developers.google.com/compute/docs/autoscaler" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Autoscaler extends Google_Service
+{
+ /** View and manage your Google Compute Engine resources. */
+ const COMPUTE =
+ "https://www.googleapis.com/auth/compute";
+ /** View your Google Compute Engine resources. */
+ const COMPUTE_READONLY =
+ "https://www.googleapis.com/auth/compute.readonly";
+
+ public $autoscalers;
+ public $zoneOperations;
+ public $zones;
+
+ /**
+ * Constructs the internal representation of the Autoscaler service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'autoscaler/v1beta2/';
+ $this->version = 'v1beta2';
+ $this->serviceName = 'autoscaler';
+
+ $this->autoscalers = new Google_Service_Autoscaler_Resource_Autoscalers(
+ $this,
+ $this->serviceName,
+ 'autoscalers',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{project}/zones/{zone}/autoscalers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{project}/zones/{zone}/autoscalers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->zoneOperations = new Google_Service_Autoscaler_Resource_ZoneOperations(
+ $this,
+ $this->serviceName,
+ 'zoneOperations',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/zones/{zone}/operations/{operation}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->zones = new Google_Service_Autoscaler_Resource_Zones(
+ $this,
+ $this->serviceName,
+ 'zones',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'zones',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'project' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Autoscaler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Autoscaler.php
new file mode 100644
index 00000000..be348120
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Autoscaler.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_Autoscaler extends Google_Model
+{
+ protected $autoscalingPolicyType = 'Google_Service_Autoscaler_AutoscalingPolicy';
+ protected $autoscalingPolicyDataType = '';
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ public $target;
+
+ public function setAutoscalingPolicy(Google_Service_Autoscaler_AutoscalingPolicy $autoscalingPolicy)
+ {
+ $this->autoscalingPolicy = $autoscalingPolicy;
+ }
+ public function getAutoscalingPolicy()
+ {
+ return $this->autoscalingPolicy;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalerListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalerListResponse.php
new file mode 100644
index 00000000..b677647c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalerListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_AutoscalerListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Autoscaler_Autoscaler';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicy.php
new file mode 100644
index 00000000..c76b696f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_AutoscalingPolicy extends Google_Collection
+{
+ protected $collection_key = 'customMetricUtilizations';
+ public $coolDownPeriodSec;
+ protected $cpuUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization';
+ protected $cpuUtilizationDataType = '';
+ protected $customMetricUtilizationsType = 'Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization';
+ protected $customMetricUtilizationsDataType = 'array';
+ protected $loadBalancingUtilizationType = 'Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization';
+ protected $loadBalancingUtilizationDataType = '';
+ public $maxNumReplicas;
+ public $minNumReplicas;
+
+ public function setCoolDownPeriodSec($coolDownPeriodSec)
+ {
+ $this->coolDownPeriodSec = $coolDownPeriodSec;
+ }
+ public function getCoolDownPeriodSec()
+ {
+ return $this->coolDownPeriodSec;
+ }
+ public function setCpuUtilization(Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization $cpuUtilization)
+ {
+ $this->cpuUtilization = $cpuUtilization;
+ }
+ public function getCpuUtilization()
+ {
+ return $this->cpuUtilization;
+ }
+ public function setCustomMetricUtilizations($customMetricUtilizations)
+ {
+ $this->customMetricUtilizations = $customMetricUtilizations;
+ }
+ public function getCustomMetricUtilizations()
+ {
+ return $this->customMetricUtilizations;
+ }
+ public function setLoadBalancingUtilization(Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization)
+ {
+ $this->loadBalancingUtilization = $loadBalancingUtilization;
+ }
+ public function getLoadBalancingUtilization()
+ {
+ return $this->loadBalancingUtilization;
+ }
+ public function setMaxNumReplicas($maxNumReplicas)
+ {
+ $this->maxNumReplicas = $maxNumReplicas;
+ }
+ public function getMaxNumReplicas()
+ {
+ return $this->maxNumReplicas;
+ }
+ public function setMinNumReplicas($minNumReplicas)
+ {
+ $this->minNumReplicas = $minNumReplicas;
+ }
+ public function getMinNumReplicas()
+ {
+ return $this->minNumReplicas;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCpuUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCpuUtilization.php
new file mode 100644
index 00000000..ef1600a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCpuUtilization.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_AutoscalingPolicyCpuUtilization extends Google_Model
+{
+ public $utilizationTarget;
+
+ public function setUtilizationTarget($utilizationTarget)
+ {
+ $this->utilizationTarget = $utilizationTarget;
+ }
+ public function getUtilizationTarget()
+ {
+ return $this->utilizationTarget;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCustomMetricUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCustomMetricUtilization.php
new file mode 100644
index 00000000..32603dd6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyCustomMetricUtilization.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_AutoscalingPolicyCustomMetricUtilization extends Google_Model
+{
+ public $metric;
+ public $utilizationTarget;
+ public $utilizationTargetType;
+
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+ public function setUtilizationTarget($utilizationTarget)
+ {
+ $this->utilizationTarget = $utilizationTarget;
+ }
+ public function getUtilizationTarget()
+ {
+ return $this->utilizationTarget;
+ }
+ public function setUtilizationTargetType($utilizationTargetType)
+ {
+ $this->utilizationTargetType = $utilizationTargetType;
+ }
+ public function getUtilizationTargetType()
+ {
+ return $this->utilizationTargetType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyLoadBalancingUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyLoadBalancingUtilization.php
new file mode 100644
index 00000000..c608a0fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/AutoscalingPolicyLoadBalancingUtilization.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_AutoscalingPolicyLoadBalancingUtilization extends Google_Model
+{
+ public $utilizationTarget;
+
+ public function setUtilizationTarget($utilizationTarget)
+ {
+ $this->utilizationTarget = $utilizationTarget;
+ }
+ public function getUtilizationTarget()
+ {
+ return $this->utilizationTarget;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/DeprecationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/DeprecationStatus.php
new file mode 100644
index 00000000..38c0db66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/DeprecationStatus.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_DeprecationStatus extends Google_Model
+{
+ public $deleted;
+ public $deprecated;
+ public $obsolete;
+ public $replacement;
+ public $state;
+
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setDeprecated($deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setObsolete($obsolete)
+ {
+ $this->obsolete = $obsolete;
+ }
+ public function getObsolete()
+ {
+ return $this->obsolete;
+ }
+ public function setReplacement($replacement)
+ {
+ $this->replacement = $replacement;
+ }
+ public function getReplacement()
+ {
+ return $this->replacement;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Operation.php
new file mode 100644
index 00000000..af096dab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Operation.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $description;
+ public $endTime;
+ protected $errorType = 'Google_Service_Autoscaler_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_Autoscaler_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_Autoscaler_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationError.php
new file mode 100644
index 00000000..c9a5f2e3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Autoscaler_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationErrorErrors.php
new file mode 100644
index 00000000..c40d2332
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationList.php
new file mode 100644
index 00000000..516a9086
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Autoscaler_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarnings.php
new file mode 100644
index 00000000..76118225
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Autoscaler_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarningsData.php
new file mode 100644
index 00000000..1dffa0bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Autoscalers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Autoscalers.php
new file mode 100644
index 00000000..55d7a712
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Autoscalers.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "autoscalers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $autoscalerService = new Google_Service_Autoscaler(...);
+ * $autoscalers = $autoscalerService->autoscalers;
+ * </code>
+ */
+class Google_Service_Autoscaler_Resource_Autoscalers extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified Autoscaler resource. (autoscalers.delete)
+ *
+ * @param string $project Project ID of Autoscaler resource.
+ * @param string $zone Zone name of Autoscaler resource.
+ * @param string $autoscaler Name of the Autoscaler resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Autoscaler_Operation
+ */
+ public function delete($project, $zone, $autoscaler, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Autoscaler_Operation");
+ }
+ /**
+ * Gets the specified Autoscaler resource. (autoscalers.get)
+ *
+ * @param string $project Project ID of Autoscaler resource.
+ * @param string $zone Zone name of Autoscaler resource.
+ * @param string $autoscaler Name of the Autoscaler resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Autoscaler_Autoscaler
+ */
+ public function get($project, $zone, $autoscaler, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Autoscaler_Autoscaler");
+ }
+ /**
+ * Adds new Autoscaler resource. (autoscalers.insert)
+ *
+ * @param string $project Project ID of Autoscaler resource.
+ * @param string $zone Zone name of Autoscaler resource.
+ * @param Google_Service_Autoscaler_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Autoscaler_Operation
+ */
+ public function insert($project, $zone, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Autoscaler_Operation");
+ }
+ /**
+ * Lists all Autoscaler resources in this zone. (autoscalers.listAutoscalers)
+ *
+ * @param string $project Project ID of Autoscaler resource.
+ * @param string $zone Zone name of Autoscaler resource.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter
+ * @opt_param string maxResults
+ * @opt_param string pageToken
+ * @return Google_Service_Autoscaler_AutoscalerListResponse
+ */
+ public function listAutoscalers($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Autoscaler_AutoscalerListResponse");
+ }
+ /**
+ * Update the entire content of the Autoscaler resource. This method supports
+ * patch semantics. (autoscalers.patch)
+ *
+ * @param string $project Project ID of Autoscaler resource.
+ * @param string $zone Zone name of Autoscaler resource.
+ * @param string $autoscaler Name of the Autoscaler resource.
+ * @param Google_Service_Autoscaler_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Autoscaler_Operation
+ */
+ public function patch($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Autoscaler_Operation");
+ }
+ /**
+ * Update the entire content of the Autoscaler resource. (autoscalers.update)
+ *
+ * @param string $project Project ID of Autoscaler resource.
+ * @param string $zone Zone name of Autoscaler resource.
+ * @param string $autoscaler Name of the Autoscaler resource.
+ * @param Google_Service_Autoscaler_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Autoscaler_Operation
+ */
+ public function update($project, $zone, $autoscaler, Google_Service_Autoscaler_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Autoscaler_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/ZoneOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/ZoneOperations.php
new file mode 100644
index 00000000..0452efe5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/ZoneOperations.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zoneOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $autoscalerService = new Google_Service_Autoscaler(...);
+ * $zoneOperations = $autoscalerService->zoneOperations;
+ * </code>
+ */
+class Google_Service_Autoscaler_Resource_ZoneOperations extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified zone-specific operation resource.
+ * (zoneOperations.delete)
+ *
+ * @param string $project
+ * @param string $zone
+ * @param string $operation
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $zone, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the specified zone-specific operation resource.
+ * (zoneOperations.get)
+ *
+ * @param string $project
+ * @param string $zone
+ * @param string $operation
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Autoscaler_Operation
+ */
+ public function get($project, $zone, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Autoscaler_Operation");
+ }
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * zone. (zoneOperations.listZoneOperations)
+ *
+ * @param string $project
+ * @param string $zone
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter
+ * @opt_param string maxResults
+ * @opt_param string pageToken
+ * @return Google_Service_Autoscaler_OperationList
+ */
+ public function listZoneOperations($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Autoscaler_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Zones.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Zones.php
new file mode 100644
index 00000000..33c0c832
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Resource/Zones.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zones" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $autoscalerService = new Google_Service_Autoscaler(...);
+ * $zones = $autoscalerService->zones;
+ * </code>
+ */
+class Google_Service_Autoscaler_Resource_Zones extends Google_Service_Resource
+{
+ /**
+ * (zones.listZones)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter
+ * @opt_param string maxResults
+ * @opt_param string pageToken
+ * @opt_param string project
+ * @return Google_Service_Autoscaler_ZoneList
+ */
+ public function listZones($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Autoscaler_ZoneList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Zone.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Zone.php
new file mode 100644
index 00000000..2c4fa2b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/Zone.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_Zone extends Google_Model
+{
+ public $creationTimestamp;
+ protected $deprecatedType = 'Google_Service_Autoscaler_DeprecationStatus';
+ protected $deprecatedDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $region;
+ public $selfLink;
+ public $status;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDeprecated(Google_Service_Autoscaler_DeprecationStatus $deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/ZoneList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/ZoneList.php
new file mode 100644
index 00000000..abf42b22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Autoscaler/ZoneList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Autoscaler_ZoneList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Autoscaler_Zone';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery.php
new file mode 100644
index 00000000..9216e022
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery.php
@@ -0,0 +1,520 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Bigquery (v2).
+ *
+ * <p>
+ * A data platform for customers to create, manage, share and query data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/bigquery/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Bigquery extends Google_Service
+{
+ /** View and manage your data in Google BigQuery. */
+ const BIGQUERY =
+ "https://www.googleapis.com/auth/bigquery";
+ /** Insert data into Google BigQuery. */
+ const BIGQUERY_INSERTDATA =
+ "https://www.googleapis.com/auth/bigquery.insertdata";
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** Manage your data and permissions in Google Cloud Storage. */
+ const DEVSTORAGE_FULL_CONTROL =
+ "https://www.googleapis.com/auth/devstorage.full_control";
+ /** View your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_ONLY =
+ "https://www.googleapis.com/auth/devstorage.read_only";
+ /** Manage your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_WRITE =
+ "https://www.googleapis.com/auth/devstorage.read_write";
+
+ public $datasets;
+ public $jobs;
+ public $projects;
+ public $tabledata;
+ public $tables;
+
+ /**
+ * Constructs the internal representation of the Bigquery service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'bigquery/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'bigquery';
+
+ $this->datasets = new Google_Service_Bigquery_Resource_Datasets(
+ $this,
+ $this->serviceName,
+ 'datasets',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deleteContents' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{projectId}/datasets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{projectId}/datasets',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'all' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->jobs = new Google_Service_Bigquery_Resource_Jobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'projects/{projectId}/jobs/{jobId}/cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{projectId}/jobs/{jobId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getQueryResults' => array(
+ 'path' => 'projects/{projectId}/queries/{jobId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeoutMs' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{projectId}/jobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{projectId}/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'allUsers' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'stateFilter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'query' => array(
+ 'path' => 'projects/{projectId}/queries',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects = new Google_Service_Bigquery_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'projects',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->tabledata = new Google_Service_Bigquery_Resource_Tabledata(
+ $this,
+ $this->serviceName,
+ 'tabledata',
+ array(
+ 'methods' => array(
+ 'insertAll' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->tables = new Google_Service_Bigquery_Resource_Tables(
+ $this,
+ $this->serviceName,
+ 'tables',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumn.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumn.php
new file mode 100644
index 00000000..ba688934
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumn.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_BigtableColumn extends Google_Model
+{
+ public $encoding;
+ public $fieldName;
+ public $onlyReadLatest;
+ public $qualifierEncoded;
+ public $qualifierString;
+ public $type;
+
+ public function setEncoding($encoding)
+ {
+ $this->encoding = $encoding;
+ }
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+ public function setFieldName($fieldName)
+ {
+ $this->fieldName = $fieldName;
+ }
+ public function getFieldName()
+ {
+ return $this->fieldName;
+ }
+ public function setOnlyReadLatest($onlyReadLatest)
+ {
+ $this->onlyReadLatest = $onlyReadLatest;
+ }
+ public function getOnlyReadLatest()
+ {
+ return $this->onlyReadLatest;
+ }
+ public function setQualifierEncoded($qualifierEncoded)
+ {
+ $this->qualifierEncoded = $qualifierEncoded;
+ }
+ public function getQualifierEncoded()
+ {
+ return $this->qualifierEncoded;
+ }
+ public function setQualifierString($qualifierString)
+ {
+ $this->qualifierString = $qualifierString;
+ }
+ public function getQualifierString()
+ {
+ return $this->qualifierString;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumnFamily.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumnFamily.php
new file mode 100644
index 00000000..70b502a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableColumnFamily.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_BigtableColumnFamily extends Google_Collection
+{
+ protected $collection_key = 'columns';
+ protected $columnsType = 'Google_Service_Bigquery_BigtableColumn';
+ protected $columnsDataType = 'array';
+ public $encoding;
+ public $familyId;
+ public $onlyReadLatest;
+ public $type;
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setEncoding($encoding)
+ {
+ $this->encoding = $encoding;
+ }
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+ public function setFamilyId($familyId)
+ {
+ $this->familyId = $familyId;
+ }
+ public function getFamilyId()
+ {
+ return $this->familyId;
+ }
+ public function setOnlyReadLatest($onlyReadLatest)
+ {
+ $this->onlyReadLatest = $onlyReadLatest;
+ }
+ public function getOnlyReadLatest()
+ {
+ return $this->onlyReadLatest;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableOptions.php
new file mode 100644
index 00000000..51b78b98
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/BigtableOptions.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_BigtableOptions extends Google_Collection
+{
+ protected $collection_key = 'columnFamilies';
+ protected $columnFamiliesType = 'Google_Service_Bigquery_BigtableColumnFamily';
+ protected $columnFamiliesDataType = 'array';
+ public $ignoreUnspecifiedColumnFamilies;
+ public $readRowkeyAsString;
+
+ public function setColumnFamilies($columnFamilies)
+ {
+ $this->columnFamilies = $columnFamilies;
+ }
+ public function getColumnFamilies()
+ {
+ return $this->columnFamilies;
+ }
+ public function setIgnoreUnspecifiedColumnFamilies($ignoreUnspecifiedColumnFamilies)
+ {
+ $this->ignoreUnspecifiedColumnFamilies = $ignoreUnspecifiedColumnFamilies;
+ }
+ public function getIgnoreUnspecifiedColumnFamilies()
+ {
+ return $this->ignoreUnspecifiedColumnFamilies;
+ }
+ public function setReadRowkeyAsString($readRowkeyAsString)
+ {
+ $this->readRowkeyAsString = $readRowkeyAsString;
+ }
+ public function getReadRowkeyAsString()
+ {
+ return $this->readRowkeyAsString;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/CsvOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/CsvOptions.php
new file mode 100644
index 00000000..de25be0b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/CsvOptions.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_CsvOptions extends Google_Model
+{
+ public $allowJaggedRows;
+ public $allowQuotedNewlines;
+ public $encoding;
+ public $fieldDelimiter;
+ public $quote;
+ public $skipLeadingRows;
+
+ public function setAllowJaggedRows($allowJaggedRows)
+ {
+ $this->allowJaggedRows = $allowJaggedRows;
+ }
+ public function getAllowJaggedRows()
+ {
+ return $this->allowJaggedRows;
+ }
+ public function setAllowQuotedNewlines($allowQuotedNewlines)
+ {
+ $this->allowQuotedNewlines = $allowQuotedNewlines;
+ }
+ public function getAllowQuotedNewlines()
+ {
+ return $this->allowQuotedNewlines;
+ }
+ public function setEncoding($encoding)
+ {
+ $this->encoding = $encoding;
+ }
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+ public function setFieldDelimiter($fieldDelimiter)
+ {
+ $this->fieldDelimiter = $fieldDelimiter;
+ }
+ public function getFieldDelimiter()
+ {
+ return $this->fieldDelimiter;
+ }
+ public function setQuote($quote)
+ {
+ $this->quote = $quote;
+ }
+ public function getQuote()
+ {
+ return $this->quote;
+ }
+ public function setSkipLeadingRows($skipLeadingRows)
+ {
+ $this->skipLeadingRows = $skipLeadingRows;
+ }
+ public function getSkipLeadingRows()
+ {
+ return $this->skipLeadingRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php
new file mode 100644
index 00000000..5591fb53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Dataset.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_Dataset extends Google_Collection
+{
+ protected $collection_key = 'access';
+ protected $accessType = 'Google_Service_Bigquery_DatasetAccess';
+ protected $accessDataType = 'array';
+ public $creationTime;
+ protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
+ protected $datasetReferenceDataType = '';
+ public $defaultTableExpirationMs;
+ public $description;
+ public $etag;
+ public $friendlyName;
+ public $id;
+ public $kind;
+ public $labels;
+ public $lastModifiedTime;
+ public $location;
+ public $selfLink;
+
+ public function setAccess($access)
+ {
+ $this->access = $access;
+ }
+ public function getAccess()
+ {
+ return $this->access;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
+ {
+ $this->datasetReference = $datasetReference;
+ }
+ public function getDatasetReference()
+ {
+ return $this->datasetReference;
+ }
+ public function setDefaultTableExpirationMs($defaultTableExpirationMs)
+ {
+ $this->defaultTableExpirationMs = $defaultTableExpirationMs;
+ }
+ public function getDefaultTableExpirationMs()
+ {
+ return $this->defaultTableExpirationMs;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFriendlyName($friendlyName)
+ {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName()
+ {
+ return $this->friendlyName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLastModifiedTime($lastModifiedTime)
+ {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime()
+ {
+ return $this->lastModifiedTime;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php
new file mode 100644
index 00000000..65677dfb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetAccess.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_DatasetAccess extends Google_Model
+{
+ public $domain;
+ public $groupByEmail;
+ public $role;
+ public $specialGroup;
+ public $userByEmail;
+ protected $viewType = 'Google_Service_Bigquery_TableReference';
+ protected $viewDataType = '';
+
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setGroupByEmail($groupByEmail)
+ {
+ $this->groupByEmail = $groupByEmail;
+ }
+ public function getGroupByEmail()
+ {
+ return $this->groupByEmail;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setSpecialGroup($specialGroup)
+ {
+ $this->specialGroup = $specialGroup;
+ }
+ public function getSpecialGroup()
+ {
+ return $this->specialGroup;
+ }
+ public function setUserByEmail($userByEmail)
+ {
+ $this->userByEmail = $userByEmail;
+ }
+ public function getUserByEmail()
+ {
+ return $this->userByEmail;
+ }
+ public function setView(Google_Service_Bigquery_TableReference $view)
+ {
+ $this->view = $view;
+ }
+ public function getView()
+ {
+ return $this->view;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetList.php
new file mode 100644
index 00000000..207ba0b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_DatasetList extends Google_Collection
+{
+ protected $collection_key = 'datasets';
+ protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets';
+ protected $datasetsDataType = 'array';
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+
+ public function setDatasets($datasets)
+ {
+ $this->datasets = $datasets;
+ }
+ public function getDatasets()
+ {
+ return $this->datasets;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetListDatasets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetListDatasets.php
new file mode 100644
index 00000000..382c85d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetListDatasets.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_DatasetListDatasets extends Google_Model
+{
+ protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
+ protected $datasetReferenceDataType = '';
+ public $friendlyName;
+ public $id;
+ public $kind;
+ public $labels;
+
+ public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
+ {
+ $this->datasetReference = $datasetReference;
+ }
+ public function getDatasetReference()
+ {
+ return $this->datasetReference;
+ }
+ public function setFriendlyName($friendlyName)
+ {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName()
+ {
+ return $this->friendlyName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetReference.php
new file mode 100644
index 00000000..e2c7d9c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/DatasetReference.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_DatasetReference extends Google_Model
+{
+ public $datasetId;
+ public $projectId;
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ErrorProto.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ErrorProto.php
new file mode 100644
index 00000000..1981d89b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ErrorProto.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ErrorProto extends Google_Model
+{
+ public $debugInfo;
+ public $location;
+ public $message;
+ public $reason;
+
+ public function setDebugInfo($debugInfo)
+ {
+ $this->debugInfo = $debugInfo;
+ }
+ public function getDebugInfo()
+ {
+ return $this->debugInfo;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStage.php
new file mode 100644
index 00000000..148eae03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStage.php
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ExplainQueryStage extends Google_Collection
+{
+ protected $collection_key = 'steps';
+ public $computeRatioAvg;
+ public $computeRatioMax;
+ public $id;
+ public $name;
+ public $readRatioAvg;
+ public $readRatioMax;
+ public $recordsRead;
+ public $recordsWritten;
+ public $status;
+ protected $stepsType = 'Google_Service_Bigquery_ExplainQueryStep';
+ protected $stepsDataType = 'array';
+ public $waitRatioAvg;
+ public $waitRatioMax;
+ public $writeRatioAvg;
+ public $writeRatioMax;
+
+ public function setComputeRatioAvg($computeRatioAvg)
+ {
+ $this->computeRatioAvg = $computeRatioAvg;
+ }
+ public function getComputeRatioAvg()
+ {
+ return $this->computeRatioAvg;
+ }
+ public function setComputeRatioMax($computeRatioMax)
+ {
+ $this->computeRatioMax = $computeRatioMax;
+ }
+ public function getComputeRatioMax()
+ {
+ return $this->computeRatioMax;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReadRatioAvg($readRatioAvg)
+ {
+ $this->readRatioAvg = $readRatioAvg;
+ }
+ public function getReadRatioAvg()
+ {
+ return $this->readRatioAvg;
+ }
+ public function setReadRatioMax($readRatioMax)
+ {
+ $this->readRatioMax = $readRatioMax;
+ }
+ public function getReadRatioMax()
+ {
+ return $this->readRatioMax;
+ }
+ public function setRecordsRead($recordsRead)
+ {
+ $this->recordsRead = $recordsRead;
+ }
+ public function getRecordsRead()
+ {
+ return $this->recordsRead;
+ }
+ public function setRecordsWritten($recordsWritten)
+ {
+ $this->recordsWritten = $recordsWritten;
+ }
+ public function getRecordsWritten()
+ {
+ return $this->recordsWritten;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+ public function setWaitRatioAvg($waitRatioAvg)
+ {
+ $this->waitRatioAvg = $waitRatioAvg;
+ }
+ public function getWaitRatioAvg()
+ {
+ return $this->waitRatioAvg;
+ }
+ public function setWaitRatioMax($waitRatioMax)
+ {
+ $this->waitRatioMax = $waitRatioMax;
+ }
+ public function getWaitRatioMax()
+ {
+ return $this->waitRatioMax;
+ }
+ public function setWriteRatioAvg($writeRatioAvg)
+ {
+ $this->writeRatioAvg = $writeRatioAvg;
+ }
+ public function getWriteRatioAvg()
+ {
+ return $this->writeRatioAvg;
+ }
+ public function setWriteRatioMax($writeRatioMax)
+ {
+ $this->writeRatioMax = $writeRatioMax;
+ }
+ public function getWriteRatioMax()
+ {
+ return $this->writeRatioMax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStep.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStep.php
new file mode 100644
index 00000000..160025b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExplainQueryStep.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ExplainQueryStep extends Google_Collection
+{
+ protected $collection_key = 'substeps';
+ public $kind;
+ public $substeps;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSubsteps($substeps)
+ {
+ $this->substeps = $substeps;
+ }
+ public function getSubsteps()
+ {
+ return $this->substeps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php
new file mode 100644
index 00000000..86f22801
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ExternalDataConfiguration.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collection
+{
+ protected $collection_key = 'sourceUris';
+ public $autodetect;
+ protected $bigtableOptionsType = 'Google_Service_Bigquery_BigtableOptions';
+ protected $bigtableOptionsDataType = '';
+ public $compression;
+ protected $csvOptionsType = 'Google_Service_Bigquery_CsvOptions';
+ protected $csvOptionsDataType = '';
+ protected $googleSheetsOptionsType = 'Google_Service_Bigquery_GoogleSheetsOptions';
+ protected $googleSheetsOptionsDataType = '';
+ public $ignoreUnknownValues;
+ public $maxBadRecords;
+ protected $schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $schemaDataType = '';
+ public $sourceFormat;
+ public $sourceUris;
+
+ public function setAutodetect($autodetect)
+ {
+ $this->autodetect = $autodetect;
+ }
+ public function getAutodetect()
+ {
+ return $this->autodetect;
+ }
+ public function setBigtableOptions(Google_Service_Bigquery_BigtableOptions $bigtableOptions)
+ {
+ $this->bigtableOptions = $bigtableOptions;
+ }
+ public function getBigtableOptions()
+ {
+ return $this->bigtableOptions;
+ }
+ public function setCompression($compression)
+ {
+ $this->compression = $compression;
+ }
+ public function getCompression()
+ {
+ return $this->compression;
+ }
+ public function setCsvOptions(Google_Service_Bigquery_CsvOptions $csvOptions)
+ {
+ $this->csvOptions = $csvOptions;
+ }
+ public function getCsvOptions()
+ {
+ return $this->csvOptions;
+ }
+ public function setGoogleSheetsOptions(Google_Service_Bigquery_GoogleSheetsOptions $googleSheetsOptions)
+ {
+ $this->googleSheetsOptions = $googleSheetsOptions;
+ }
+ public function getGoogleSheetsOptions()
+ {
+ return $this->googleSheetsOptions;
+ }
+ public function setIgnoreUnknownValues($ignoreUnknownValues)
+ {
+ $this->ignoreUnknownValues = $ignoreUnknownValues;
+ }
+ public function getIgnoreUnknownValues()
+ {
+ return $this->ignoreUnknownValues;
+ }
+ public function setMaxBadRecords($maxBadRecords)
+ {
+ $this->maxBadRecords = $maxBadRecords;
+ }
+ public function getMaxBadRecords()
+ {
+ return $this->maxBadRecords;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema $schema)
+ {
+ $this->schema = $schema;
+ }
+ public function getSchema()
+ {
+ return $this->schema;
+ }
+ public function setSourceFormat($sourceFormat)
+ {
+ $this->sourceFormat = $sourceFormat;
+ }
+ public function getSourceFormat()
+ {
+ return $this->sourceFormat;
+ }
+ public function setSourceUris($sourceUris)
+ {
+ $this->sourceUris = $sourceUris;
+ }
+ public function getSourceUris()
+ {
+ return $this->sourceUris;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GetQueryResultsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GetQueryResultsResponse.php
new file mode 100644
index 00000000..9a177fb5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GetQueryResultsResponse.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $cacheHit;
+ protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
+ protected $errorsDataType = 'array';
+ public $etag;
+ public $jobComplete;
+ protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
+ protected $jobReferenceDataType = '';
+ public $kind;
+ public $numDmlAffectedRows;
+ public $pageToken;
+ protected $rowsType = 'Google_Service_Bigquery_TableRow';
+ protected $rowsDataType = 'array';
+ protected $schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $schemaDataType = '';
+ public $totalBytesProcessed;
+ public $totalRows;
+
+ public function setCacheHit($cacheHit)
+ {
+ $this->cacheHit = $cacheHit;
+ }
+ public function getCacheHit()
+ {
+ return $this->cacheHit;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setJobComplete($jobComplete)
+ {
+ $this->jobComplete = $jobComplete;
+ }
+ public function getJobComplete()
+ {
+ return $this->jobComplete;
+ }
+ public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
+ {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference()
+ {
+ return $this->jobReference;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumDmlAffectedRows($numDmlAffectedRows)
+ {
+ $this->numDmlAffectedRows = $numDmlAffectedRows;
+ }
+ public function getNumDmlAffectedRows()
+ {
+ return $this->numDmlAffectedRows;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema $schema)
+ {
+ $this->schema = $schema;
+ }
+ public function getSchema()
+ {
+ return $this->schema;
+ }
+ public function setTotalBytesProcessed($totalBytesProcessed)
+ {
+ $this->totalBytesProcessed = $totalBytesProcessed;
+ }
+ public function getTotalBytesProcessed()
+ {
+ return $this->totalBytesProcessed;
+ }
+ public function setTotalRows($totalRows)
+ {
+ $this->totalRows = $totalRows;
+ }
+ public function getTotalRows()
+ {
+ return $this->totalRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GoogleSheetsOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GoogleSheetsOptions.php
new file mode 100644
index 00000000..359b6a46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/GoogleSheetsOptions.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_GoogleSheetsOptions extends Google_Model
+{
+ public $skipLeadingRows;
+
+ public function setSkipLeadingRows($skipLeadingRows)
+ {
+ $this->skipLeadingRows = $skipLeadingRows;
+ }
+ public function getSkipLeadingRows()
+ {
+ return $this->skipLeadingRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Job.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Job.php
new file mode 100644
index 00000000..67a242a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Job.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_Job extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "userEmail" => "user_email",
+ );
+ protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
+ protected $configurationDataType = '';
+ public $etag;
+ public $id;
+ protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
+ protected $jobReferenceDataType = '';
+ public $kind;
+ public $selfLink;
+ protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
+ protected $statisticsDataType = '';
+ protected $statusType = 'Google_Service_Bigquery_JobStatus';
+ protected $statusDataType = '';
+ public $userEmail;
+
+ public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
+ {
+ $this->configuration = $configuration;
+ }
+ public function getConfiguration()
+ {
+ return $this->configuration;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
+ {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference()
+ {
+ return $this->jobReference;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
+ {
+ $this->statistics = $statistics;
+ }
+ public function getStatistics()
+ {
+ return $this->statistics;
+ }
+ public function setStatus(Google_Service_Bigquery_JobStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUserEmail($userEmail)
+ {
+ $this->userEmail = $userEmail;
+ }
+ public function getUserEmail()
+ {
+ return $this->userEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobCancelResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobCancelResponse.php
new file mode 100644
index 00000000..19affed3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobCancelResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobCancelResponse extends Google_Model
+{
+ protected $jobType = 'Google_Service_Bigquery_Job';
+ protected $jobDataType = '';
+ public $kind;
+
+ public function setJob(Google_Service_Bigquery_Job $job)
+ {
+ $this->job = $job;
+ }
+ public function getJob()
+ {
+ return $this->job;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php
new file mode 100644
index 00000000..9a66c970
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfiguration.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobConfiguration extends Google_Model
+{
+ protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy';
+ protected $copyDataType = '';
+ public $dryRun;
+ protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract';
+ protected $extractDataType = '';
+ public $labels;
+ protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad';
+ protected $loadDataType = '';
+ protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery';
+ protected $queryDataType = '';
+
+ public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy)
+ {
+ $this->copy = $copy;
+ }
+ public function getCopy()
+ {
+ return $this->copy;
+ }
+ public function setDryRun($dryRun)
+ {
+ $this->dryRun = $dryRun;
+ }
+ public function getDryRun()
+ {
+ return $this->dryRun;
+ }
+ public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract)
+ {
+ $this->extract = $extract;
+ }
+ public function getExtract()
+ {
+ return $this->extract;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load)
+ {
+ $this->load = $load;
+ }
+ public function getLoad()
+ {
+ return $this->load;
+ }
+ public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationExtract.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationExtract.php
new file mode 100644
index 00000000..28cdf78a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationExtract.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection
+{
+ protected $collection_key = 'destinationUris';
+ public $compression;
+ public $destinationFormat;
+ public $destinationUri;
+ public $destinationUris;
+ public $fieldDelimiter;
+ public $printHeader;
+ protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
+ protected $sourceTableDataType = '';
+
+ public function setCompression($compression)
+ {
+ $this->compression = $compression;
+ }
+ public function getCompression()
+ {
+ return $this->compression;
+ }
+ public function setDestinationFormat($destinationFormat)
+ {
+ $this->destinationFormat = $destinationFormat;
+ }
+ public function getDestinationFormat()
+ {
+ return $this->destinationFormat;
+ }
+ public function setDestinationUri($destinationUri)
+ {
+ $this->destinationUri = $destinationUri;
+ }
+ public function getDestinationUri()
+ {
+ return $this->destinationUri;
+ }
+ public function setDestinationUris($destinationUris)
+ {
+ $this->destinationUris = $destinationUris;
+ }
+ public function getDestinationUris()
+ {
+ return $this->destinationUris;
+ }
+ public function setFieldDelimiter($fieldDelimiter)
+ {
+ $this->fieldDelimiter = $fieldDelimiter;
+ }
+ public function getFieldDelimiter()
+ {
+ return $this->fieldDelimiter;
+ }
+ public function setPrintHeader($printHeader)
+ {
+ $this->printHeader = $printHeader;
+ }
+ public function getPrintHeader()
+ {
+ return $this->printHeader;
+ }
+ public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
+ {
+ $this->sourceTable = $sourceTable;
+ }
+ public function getSourceTable()
+ {
+ return $this->sourceTable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php
new file mode 100644
index 00000000..76e0f436
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationLoad.php
@@ -0,0 +1,204 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection
+{
+ protected $collection_key = 'sourceUris';
+ public $allowJaggedRows;
+ public $allowQuotedNewlines;
+ public $autodetect;
+ public $createDisposition;
+ protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
+ protected $destinationTableDataType = '';
+ public $encoding;
+ public $fieldDelimiter;
+ public $ignoreUnknownValues;
+ public $maxBadRecords;
+ public $nullMarker;
+ public $projectionFields;
+ public $quote;
+ protected $schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $schemaDataType = '';
+ public $schemaInline;
+ public $schemaInlineFormat;
+ public $schemaUpdateOptions;
+ public $skipLeadingRows;
+ public $sourceFormat;
+ public $sourceUris;
+ public $writeDisposition;
+
+ public function setAllowJaggedRows($allowJaggedRows)
+ {
+ $this->allowJaggedRows = $allowJaggedRows;
+ }
+ public function getAllowJaggedRows()
+ {
+ return $this->allowJaggedRows;
+ }
+ public function setAllowQuotedNewlines($allowQuotedNewlines)
+ {
+ $this->allowQuotedNewlines = $allowQuotedNewlines;
+ }
+ public function getAllowQuotedNewlines()
+ {
+ return $this->allowQuotedNewlines;
+ }
+ public function setAutodetect($autodetect)
+ {
+ $this->autodetect = $autodetect;
+ }
+ public function getAutodetect()
+ {
+ return $this->autodetect;
+ }
+ public function setCreateDisposition($createDisposition)
+ {
+ $this->createDisposition = $createDisposition;
+ }
+ public function getCreateDisposition()
+ {
+ return $this->createDisposition;
+ }
+ public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
+ {
+ $this->destinationTable = $destinationTable;
+ }
+ public function getDestinationTable()
+ {
+ return $this->destinationTable;
+ }
+ public function setEncoding($encoding)
+ {
+ $this->encoding = $encoding;
+ }
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+ public function setFieldDelimiter($fieldDelimiter)
+ {
+ $this->fieldDelimiter = $fieldDelimiter;
+ }
+ public function getFieldDelimiter()
+ {
+ return $this->fieldDelimiter;
+ }
+ public function setIgnoreUnknownValues($ignoreUnknownValues)
+ {
+ $this->ignoreUnknownValues = $ignoreUnknownValues;
+ }
+ public function getIgnoreUnknownValues()
+ {
+ return $this->ignoreUnknownValues;
+ }
+ public function setMaxBadRecords($maxBadRecords)
+ {
+ $this->maxBadRecords = $maxBadRecords;
+ }
+ public function getMaxBadRecords()
+ {
+ return $this->maxBadRecords;
+ }
+ public function setNullMarker($nullMarker)
+ {
+ $this->nullMarker = $nullMarker;
+ }
+ public function getNullMarker()
+ {
+ return $this->nullMarker;
+ }
+ public function setProjectionFields($projectionFields)
+ {
+ $this->projectionFields = $projectionFields;
+ }
+ public function getProjectionFields()
+ {
+ return $this->projectionFields;
+ }
+ public function setQuote($quote)
+ {
+ $this->quote = $quote;
+ }
+ public function getQuote()
+ {
+ return $this->quote;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema $schema)
+ {
+ $this->schema = $schema;
+ }
+ public function getSchema()
+ {
+ return $this->schema;
+ }
+ public function setSchemaInline($schemaInline)
+ {
+ $this->schemaInline = $schemaInline;
+ }
+ public function getSchemaInline()
+ {
+ return $this->schemaInline;
+ }
+ public function setSchemaInlineFormat($schemaInlineFormat)
+ {
+ $this->schemaInlineFormat = $schemaInlineFormat;
+ }
+ public function getSchemaInlineFormat()
+ {
+ return $this->schemaInlineFormat;
+ }
+ public function setSchemaUpdateOptions($schemaUpdateOptions)
+ {
+ $this->schemaUpdateOptions = $schemaUpdateOptions;
+ }
+ public function getSchemaUpdateOptions()
+ {
+ return $this->schemaUpdateOptions;
+ }
+ public function setSkipLeadingRows($skipLeadingRows)
+ {
+ $this->skipLeadingRows = $skipLeadingRows;
+ }
+ public function getSkipLeadingRows()
+ {
+ return $this->skipLeadingRows;
+ }
+ public function setSourceFormat($sourceFormat)
+ {
+ $this->sourceFormat = $sourceFormat;
+ }
+ public function getSourceFormat()
+ {
+ return $this->sourceFormat;
+ }
+ public function setSourceUris($sourceUris)
+ {
+ $this->sourceUris = $sourceUris;
+ }
+ public function getSourceUris()
+ {
+ return $this->sourceUris;
+ }
+ public function setWriteDisposition($writeDisposition)
+ {
+ $this->writeDisposition = $writeDisposition;
+ }
+ public function getWriteDisposition()
+ {
+ return $this->writeDisposition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php
new file mode 100644
index 00000000..0e4f8462
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationQuery.php
@@ -0,0 +1,189 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection
+{
+ protected $collection_key = 'userDefinedFunctionResources';
+ public $allowLargeResults;
+ public $createDisposition;
+ protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
+ protected $defaultDatasetDataType = '';
+ protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
+ protected $destinationTableDataType = '';
+ public $flattenResults;
+ public $maximumBillingTier;
+ public $maximumBytesBilled;
+ public $parameterMode;
+ public $preserveNulls;
+ public $priority;
+ public $query;
+ protected $queryParametersType = 'Google_Service_Bigquery_QueryParameter';
+ protected $queryParametersDataType = 'array';
+ public $schemaUpdateOptions;
+ protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration';
+ protected $tableDefinitionsDataType = 'map';
+ public $useLegacySql;
+ public $useQueryCache;
+ protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource';
+ protected $userDefinedFunctionResourcesDataType = 'array';
+ public $writeDisposition;
+
+ public function setAllowLargeResults($allowLargeResults)
+ {
+ $this->allowLargeResults = $allowLargeResults;
+ }
+ public function getAllowLargeResults()
+ {
+ return $this->allowLargeResults;
+ }
+ public function setCreateDisposition($createDisposition)
+ {
+ $this->createDisposition = $createDisposition;
+ }
+ public function getCreateDisposition()
+ {
+ return $this->createDisposition;
+ }
+ public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
+ {
+ $this->defaultDataset = $defaultDataset;
+ }
+ public function getDefaultDataset()
+ {
+ return $this->defaultDataset;
+ }
+ public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
+ {
+ $this->destinationTable = $destinationTable;
+ }
+ public function getDestinationTable()
+ {
+ return $this->destinationTable;
+ }
+ public function setFlattenResults($flattenResults)
+ {
+ $this->flattenResults = $flattenResults;
+ }
+ public function getFlattenResults()
+ {
+ return $this->flattenResults;
+ }
+ public function setMaximumBillingTier($maximumBillingTier)
+ {
+ $this->maximumBillingTier = $maximumBillingTier;
+ }
+ public function getMaximumBillingTier()
+ {
+ return $this->maximumBillingTier;
+ }
+ public function setMaximumBytesBilled($maximumBytesBilled)
+ {
+ $this->maximumBytesBilled = $maximumBytesBilled;
+ }
+ public function getMaximumBytesBilled()
+ {
+ return $this->maximumBytesBilled;
+ }
+ public function setParameterMode($parameterMode)
+ {
+ $this->parameterMode = $parameterMode;
+ }
+ public function getParameterMode()
+ {
+ return $this->parameterMode;
+ }
+ public function setPreserveNulls($preserveNulls)
+ {
+ $this->preserveNulls = $preserveNulls;
+ }
+ public function getPreserveNulls()
+ {
+ return $this->preserveNulls;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setQuery($query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setQueryParameters($queryParameters)
+ {
+ $this->queryParameters = $queryParameters;
+ }
+ public function getQueryParameters()
+ {
+ return $this->queryParameters;
+ }
+ public function setSchemaUpdateOptions($schemaUpdateOptions)
+ {
+ $this->schemaUpdateOptions = $schemaUpdateOptions;
+ }
+ public function getSchemaUpdateOptions()
+ {
+ return $this->schemaUpdateOptions;
+ }
+ public function setTableDefinitions($tableDefinitions)
+ {
+ $this->tableDefinitions = $tableDefinitions;
+ }
+ public function getTableDefinitions()
+ {
+ return $this->tableDefinitions;
+ }
+ public function setUseLegacySql($useLegacySql)
+ {
+ $this->useLegacySql = $useLegacySql;
+ }
+ public function getUseLegacySql()
+ {
+ return $this->useLegacySql;
+ }
+ public function setUseQueryCache($useQueryCache)
+ {
+ $this->useQueryCache = $useQueryCache;
+ }
+ public function getUseQueryCache()
+ {
+ return $this->useQueryCache;
+ }
+ public function setUserDefinedFunctionResources($userDefinedFunctionResources)
+ {
+ $this->userDefinedFunctionResources = $userDefinedFunctionResources;
+ }
+ public function getUserDefinedFunctionResources()
+ {
+ return $this->userDefinedFunctionResources;
+ }
+ public function setWriteDisposition($writeDisposition)
+ {
+ $this->writeDisposition = $writeDisposition;
+ }
+ public function getWriteDisposition()
+ {
+ return $this->writeDisposition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationTableCopy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationTableCopy.php
new file mode 100644
index 00000000..d6ba7923
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobConfigurationTableCopy.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection
+{
+ protected $collection_key = 'sourceTables';
+ public $createDisposition;
+ protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
+ protected $destinationTableDataType = '';
+ protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
+ protected $sourceTableDataType = '';
+ protected $sourceTablesType = 'Google_Service_Bigquery_TableReference';
+ protected $sourceTablesDataType = 'array';
+ public $writeDisposition;
+
+ public function setCreateDisposition($createDisposition)
+ {
+ $this->createDisposition = $createDisposition;
+ }
+ public function getCreateDisposition()
+ {
+ return $this->createDisposition;
+ }
+ public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
+ {
+ $this->destinationTable = $destinationTable;
+ }
+ public function getDestinationTable()
+ {
+ return $this->destinationTable;
+ }
+ public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
+ {
+ $this->sourceTable = $sourceTable;
+ }
+ public function getSourceTable()
+ {
+ return $this->sourceTable;
+ }
+ public function setSourceTables($sourceTables)
+ {
+ $this->sourceTables = $sourceTables;
+ }
+ public function getSourceTables()
+ {
+ return $this->sourceTables;
+ }
+ public function setWriteDisposition($writeDisposition)
+ {
+ $this->writeDisposition = $writeDisposition;
+ }
+ public function getWriteDisposition()
+ {
+ return $this->writeDisposition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobList.php
new file mode 100644
index 00000000..174c32f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobList extends Google_Collection
+{
+ protected $collection_key = 'jobs';
+ public $etag;
+ protected $jobsType = 'Google_Service_Bigquery_JobListJobs';
+ protected $jobsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setJobs($jobs)
+ {
+ $this->jobs = $jobs;
+ }
+ public function getJobs()
+ {
+ return $this->jobs;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobListJobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobListJobs.php
new file mode 100644
index 00000000..36a9a9a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobListJobs.php
@@ -0,0 +1,110 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobListJobs extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "userEmail" => "user_email",
+ );
+ protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
+ protected $configurationDataType = '';
+ protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
+ protected $errorResultDataType = '';
+ public $id;
+ protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
+ protected $jobReferenceDataType = '';
+ public $kind;
+ public $state;
+ protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
+ protected $statisticsDataType = '';
+ protected $statusType = 'Google_Service_Bigquery_JobStatus';
+ protected $statusDataType = '';
+ public $userEmail;
+
+ public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
+ {
+ $this->configuration = $configuration;
+ }
+ public function getConfiguration()
+ {
+ return $this->configuration;
+ }
+ public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
+ {
+ $this->errorResult = $errorResult;
+ }
+ public function getErrorResult()
+ {
+ return $this->errorResult;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
+ {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference()
+ {
+ return $this->jobReference;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
+ {
+ $this->statistics = $statistics;
+ }
+ public function getStatistics()
+ {
+ return $this->statistics;
+ }
+ public function setStatus(Google_Service_Bigquery_JobStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUserEmail($userEmail)
+ {
+ $this->userEmail = $userEmail;
+ }
+ public function getUserEmail()
+ {
+ return $this->userEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobReference.php
new file mode 100644
index 00000000..696d73aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobReference.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobReference extends Google_Model
+{
+ public $jobId;
+ public $projectId;
+
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
+ {
+ return $this->jobId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php
new file mode 100644
index 00000000..865e0281
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobStatistics extends Google_Model
+{
+ public $creationTime;
+ public $endTime;
+ protected $extractType = 'Google_Service_Bigquery_JobStatistics4';
+ protected $extractDataType = '';
+ protected $loadType = 'Google_Service_Bigquery_JobStatistics3';
+ protected $loadDataType = '';
+ protected $queryType = 'Google_Service_Bigquery_JobStatistics2';
+ protected $queryDataType = '';
+ public $startTime;
+ public $totalBytesProcessed;
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setExtract(Google_Service_Bigquery_JobStatistics4 $extract)
+ {
+ $this->extract = $extract;
+ }
+ public function getExtract()
+ {
+ return $this->extract;
+ }
+ public function setLoad(Google_Service_Bigquery_JobStatistics3 $load)
+ {
+ $this->load = $load;
+ }
+ public function getLoad()
+ {
+ return $this->load;
+ }
+ public function setQuery(Google_Service_Bigquery_JobStatistics2 $query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setTotalBytesProcessed($totalBytesProcessed)
+ {
+ $this->totalBytesProcessed = $totalBytesProcessed;
+ }
+ public function getTotalBytesProcessed()
+ {
+ return $this->totalBytesProcessed;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php
new file mode 100644
index 00000000..7b9ecfa3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics2.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobStatistics2 extends Google_Collection
+{
+ protected $collection_key = 'undeclaredQueryParameters';
+ public $billingTier;
+ public $cacheHit;
+ public $numDmlAffectedRows;
+ protected $queryPlanType = 'Google_Service_Bigquery_ExplainQueryStage';
+ protected $queryPlanDataType = 'array';
+ protected $referencedTablesType = 'Google_Service_Bigquery_TableReference';
+ protected $referencedTablesDataType = 'array';
+ protected $schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $schemaDataType = '';
+ public $statementType;
+ public $totalBytesBilled;
+ public $totalBytesProcessed;
+ protected $undeclaredQueryParametersType = 'Google_Service_Bigquery_QueryParameter';
+ protected $undeclaredQueryParametersDataType = 'array';
+
+ public function setBillingTier($billingTier)
+ {
+ $this->billingTier = $billingTier;
+ }
+ public function getBillingTier()
+ {
+ return $this->billingTier;
+ }
+ public function setCacheHit($cacheHit)
+ {
+ $this->cacheHit = $cacheHit;
+ }
+ public function getCacheHit()
+ {
+ return $this->cacheHit;
+ }
+ public function setNumDmlAffectedRows($numDmlAffectedRows)
+ {
+ $this->numDmlAffectedRows = $numDmlAffectedRows;
+ }
+ public function getNumDmlAffectedRows()
+ {
+ return $this->numDmlAffectedRows;
+ }
+ public function setQueryPlan($queryPlan)
+ {
+ $this->queryPlan = $queryPlan;
+ }
+ public function getQueryPlan()
+ {
+ return $this->queryPlan;
+ }
+ public function setReferencedTables($referencedTables)
+ {
+ $this->referencedTables = $referencedTables;
+ }
+ public function getReferencedTables()
+ {
+ return $this->referencedTables;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema $schema)
+ {
+ $this->schema = $schema;
+ }
+ public function getSchema()
+ {
+ return $this->schema;
+ }
+ public function setStatementType($statementType)
+ {
+ $this->statementType = $statementType;
+ }
+ public function getStatementType()
+ {
+ return $this->statementType;
+ }
+ public function setTotalBytesBilled($totalBytesBilled)
+ {
+ $this->totalBytesBilled = $totalBytesBilled;
+ }
+ public function getTotalBytesBilled()
+ {
+ return $this->totalBytesBilled;
+ }
+ public function setTotalBytesProcessed($totalBytesProcessed)
+ {
+ $this->totalBytesProcessed = $totalBytesProcessed;
+ }
+ public function getTotalBytesProcessed()
+ {
+ return $this->totalBytesProcessed;
+ }
+ public function setUndeclaredQueryParameters($undeclaredQueryParameters)
+ {
+ $this->undeclaredQueryParameters = $undeclaredQueryParameters;
+ }
+ public function getUndeclaredQueryParameters()
+ {
+ return $this->undeclaredQueryParameters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics3.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics3.php
new file mode 100644
index 00000000..d2b920d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics3.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobStatistics3 extends Google_Model
+{
+ public $inputFileBytes;
+ public $inputFiles;
+ public $outputBytes;
+ public $outputRows;
+
+ public function setInputFileBytes($inputFileBytes)
+ {
+ $this->inputFileBytes = $inputFileBytes;
+ }
+ public function getInputFileBytes()
+ {
+ return $this->inputFileBytes;
+ }
+ public function setInputFiles($inputFiles)
+ {
+ $this->inputFiles = $inputFiles;
+ }
+ public function getInputFiles()
+ {
+ return $this->inputFiles;
+ }
+ public function setOutputBytes($outputBytes)
+ {
+ $this->outputBytes = $outputBytes;
+ }
+ public function getOutputBytes()
+ {
+ return $this->outputBytes;
+ }
+ public function setOutputRows($outputRows)
+ {
+ $this->outputRows = $outputRows;
+ }
+ public function getOutputRows()
+ {
+ return $this->outputRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php
new file mode 100644
index 00000000..d9aebbf3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatistics4.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobStatistics4 extends Google_Collection
+{
+ protected $collection_key = 'destinationUriFileCounts';
+ public $destinationUriFileCounts;
+
+ public function setDestinationUriFileCounts($destinationUriFileCounts)
+ {
+ $this->destinationUriFileCounts = $destinationUriFileCounts;
+ }
+ public function getDestinationUriFileCounts()
+ {
+ return $this->destinationUriFileCounts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatus.php
new file mode 100644
index 00000000..8afca757
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/JobStatus.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_JobStatus extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
+ protected $errorResultDataType = '';
+ protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
+ protected $errorsDataType = 'array';
+ public $state;
+
+ public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
+ {
+ $this->errorResult = $errorResult;
+ }
+ public function getErrorResult()
+ {
+ return $this->errorResult;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectList.php
new file mode 100644
index 00000000..aa55920c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ProjectList extends Google_Collection
+{
+ protected $collection_key = 'projects';
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+ protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects';
+ protected $projectsDataType = 'array';
+ public $totalItems;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setProjects($projects)
+ {
+ $this->projects = $projects;
+ }
+ public function getProjects()
+ {
+ return $this->projects;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectListProjects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectListProjects.php
new file mode 100644
index 00000000..eef33842
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectListProjects.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ProjectListProjects extends Google_Model
+{
+ public $friendlyName;
+ public $id;
+ public $kind;
+ public $numericId;
+ protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference';
+ protected $projectReferenceDataType = '';
+
+ public function setFriendlyName($friendlyName)
+ {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName()
+ {
+ return $this->friendlyName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumericId($numericId)
+ {
+ $this->numericId = $numericId;
+ }
+ public function getNumericId()
+ {
+ return $this->numericId;
+ }
+ public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference)
+ {
+ $this->projectReference = $projectReference;
+ }
+ public function getProjectReference()
+ {
+ return $this->projectReference;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectReference.php
new file mode 100644
index 00000000..4f9fb3e4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ProjectReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ProjectReference extends Google_Model
+{
+ public $projectId;
+
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameter.php
new file mode 100644
index 00000000..b8e35a83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameter.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_QueryParameter extends Google_Model
+{
+ public $name;
+ protected $parameterTypeType = 'Google_Service_Bigquery_QueryParameterType';
+ protected $parameterTypeDataType = '';
+ protected $parameterValueType = 'Google_Service_Bigquery_QueryParameterValue';
+ protected $parameterValueDataType = '';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParameterType(Google_Service_Bigquery_QueryParameterType $parameterType)
+ {
+ $this->parameterType = $parameterType;
+ }
+ public function getParameterType()
+ {
+ return $this->parameterType;
+ }
+ public function setParameterValue(Google_Service_Bigquery_QueryParameterValue $parameterValue)
+ {
+ $this->parameterValue = $parameterValue;
+ }
+ public function getParameterValue()
+ {
+ return $this->parameterValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterType.php
new file mode 100644
index 00000000..12dcb449
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterType.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_QueryParameterType extends Google_Collection
+{
+ protected $collection_key = 'structTypes';
+ protected $arrayTypeType = 'Google_Service_Bigquery_QueryParameterType';
+ protected $arrayTypeDataType = '';
+ protected $structTypesType = 'Google_Service_Bigquery_QueryParameterTypeStructTypes';
+ protected $structTypesDataType = 'array';
+ public $type;
+
+ public function setArrayType(Google_Service_Bigquery_QueryParameterType $arrayType)
+ {
+ $this->arrayType = $arrayType;
+ }
+ public function getArrayType()
+ {
+ return $this->arrayType;
+ }
+ public function setStructTypes($structTypes)
+ {
+ $this->structTypes = $structTypes;
+ }
+ public function getStructTypes()
+ {
+ return $this->structTypes;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterTypeStructTypes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterTypeStructTypes.php
new file mode 100644
index 00000000..00f9f890
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterTypeStructTypes.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_QueryParameterTypeStructTypes extends Google_Model
+{
+ public $description;
+ public $name;
+ protected $typeType = 'Google_Service_Bigquery_QueryParameterType';
+ protected $typeDataType = '';
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType(Google_Service_Bigquery_QueryParameterType $type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterValue.php
new file mode 100644
index 00000000..46f629c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterValue.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_QueryParameterValue extends Google_Collection
+{
+ protected $collection_key = 'arrayValues';
+ protected $arrayValuesType = 'Google_Service_Bigquery_QueryParameterValue';
+ protected $arrayValuesDataType = 'array';
+ protected $structValuesType = 'Google_Service_Bigquery_QueryParameterValue';
+ protected $structValuesDataType = 'map';
+ public $value;
+
+ public function setArrayValues($arrayValues)
+ {
+ $this->arrayValues = $arrayValues;
+ }
+ public function getArrayValues()
+ {
+ return $this->arrayValues;
+ }
+ public function setStructValues($structValues)
+ {
+ $this->structValues = $structValues;
+ }
+ public function getStructValues()
+ {
+ return $this->structValues;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryRequest.php
new file mode 100644
index 00000000..7b1d5423
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryRequest.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_QueryRequest extends Google_Collection
+{
+ protected $collection_key = 'queryParameters';
+ protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
+ protected $defaultDatasetDataType = '';
+ public $dryRun;
+ public $kind;
+ public $maxResults;
+ public $parameterMode;
+ public $preserveNulls;
+ public $query;
+ protected $queryParametersType = 'Google_Service_Bigquery_QueryParameter';
+ protected $queryParametersDataType = 'array';
+ public $timeoutMs;
+ public $useLegacySql;
+ public $useQueryCache;
+
+ public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
+ {
+ $this->defaultDataset = $defaultDataset;
+ }
+ public function getDefaultDataset()
+ {
+ return $this->defaultDataset;
+ }
+ public function setDryRun($dryRun)
+ {
+ $this->dryRun = $dryRun;
+ }
+ public function getDryRun()
+ {
+ return $this->dryRun;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxResults($maxResults)
+ {
+ $this->maxResults = $maxResults;
+ }
+ public function getMaxResults()
+ {
+ return $this->maxResults;
+ }
+ public function setParameterMode($parameterMode)
+ {
+ $this->parameterMode = $parameterMode;
+ }
+ public function getParameterMode()
+ {
+ return $this->parameterMode;
+ }
+ public function setPreserveNulls($preserveNulls)
+ {
+ $this->preserveNulls = $preserveNulls;
+ }
+ public function getPreserveNulls()
+ {
+ return $this->preserveNulls;
+ }
+ public function setQuery($query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setQueryParameters($queryParameters)
+ {
+ $this->queryParameters = $queryParameters;
+ }
+ public function getQueryParameters()
+ {
+ return $this->queryParameters;
+ }
+ public function setTimeoutMs($timeoutMs)
+ {
+ $this->timeoutMs = $timeoutMs;
+ }
+ public function getTimeoutMs()
+ {
+ return $this->timeoutMs;
+ }
+ public function setUseLegacySql($useLegacySql)
+ {
+ $this->useLegacySql = $useLegacySql;
+ }
+ public function getUseLegacySql()
+ {
+ return $this->useLegacySql;
+ }
+ public function setUseQueryCache($useQueryCache)
+ {
+ $this->useQueryCache = $useQueryCache;
+ }
+ public function getUseQueryCache()
+ {
+ return $this->useQueryCache;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryResponse.php
new file mode 100644
index 00000000..7736968a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/QueryResponse.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_QueryResponse extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $cacheHit;
+ protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
+ protected $errorsDataType = 'array';
+ public $jobComplete;
+ protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
+ protected $jobReferenceDataType = '';
+ public $kind;
+ public $numDmlAffectedRows;
+ public $pageToken;
+ protected $rowsType = 'Google_Service_Bigquery_TableRow';
+ protected $rowsDataType = 'array';
+ protected $schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $schemaDataType = '';
+ public $totalBytesProcessed;
+ public $totalRows;
+
+ public function setCacheHit($cacheHit)
+ {
+ $this->cacheHit = $cacheHit;
+ }
+ public function getCacheHit()
+ {
+ return $this->cacheHit;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setJobComplete($jobComplete)
+ {
+ $this->jobComplete = $jobComplete;
+ }
+ public function getJobComplete()
+ {
+ return $this->jobComplete;
+ }
+ public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
+ {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference()
+ {
+ return $this->jobReference;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumDmlAffectedRows($numDmlAffectedRows)
+ {
+ $this->numDmlAffectedRows = $numDmlAffectedRows;
+ }
+ public function getNumDmlAffectedRows()
+ {
+ return $this->numDmlAffectedRows;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema $schema)
+ {
+ $this->schema = $schema;
+ }
+ public function getSchema()
+ {
+ return $this->schema;
+ }
+ public function setTotalBytesProcessed($totalBytesProcessed)
+ {
+ $this->totalBytesProcessed = $totalBytesProcessed;
+ }
+ public function getTotalBytesProcessed()
+ {
+ return $this->totalBytesProcessed;
+ }
+ public function setTotalRows($totalRows)
+ {
+ $this->totalRows = $totalRows;
+ }
+ public function getTotalRows()
+ {
+ return $this->totalRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Datasets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Datasets.php
new file mode 100644
index 00000000..ebe9716a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Datasets.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "datasets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bigqueryService = new Google_Service_Bigquery(...);
+ * $datasets = $bigqueryService->datasets;
+ * </code>
+ */
+class Google_Service_Bigquery_Resource_Datasets extends Google_Service_Resource
+{
+ /**
+ * Deletes the dataset specified by the datasetId value. Before you can delete a
+ * dataset, you must delete all its tables, either manually or by specifying
+ * deleteContents. Immediately after deletion, you can create another dataset
+ * with the same name. (datasets.delete)
+ *
+ * @param string $projectId Project ID of the dataset being deleted
+ * @param string $datasetId Dataset ID of dataset being deleted
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool deleteContents If True, delete all the tables in the dataset.
+ * If False and the dataset contains tables, the request will fail. Default is
+ * False
+ */
+ public function delete($projectId, $datasetId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns the dataset specified by datasetID. (datasets.get)
+ *
+ * @param string $projectId Project ID of the requested dataset
+ * @param string $datasetId Dataset ID of the requested dataset
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Dataset
+ */
+ public function get($projectId, $datasetId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Bigquery_Dataset");
+ }
+ /**
+ * Creates a new empty dataset. (datasets.insert)
+ *
+ * @param string $projectId Project ID of the new dataset
+ * @param Google_Service_Bigquery_Dataset $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Dataset
+ */
+ public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset");
+ }
+ /**
+ * Lists all datasets in the specified project to which you have been granted
+ * the READER dataset role. (datasets.listDatasets)
+ *
+ * @param string $projectId Project ID of the datasets to be listed
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool all Whether to list all datasets, including hidden ones
+ * @opt_param string filter An expression for filtering the results of the
+ * request by label. The syntax is "labels.[:]". Multiple filters can be ANDed
+ * together by connecting with a space. Example: "labels.department:receiving
+ * labels.active". See Filtering datasets using labels for details.
+ * @opt_param string maxResults The maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call, to
+ * request the next page of results
+ * @return Google_Service_Bigquery_DatasetList
+ */
+ public function listDatasets($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList");
+ }
+ /**
+ * Updates information in an existing dataset. The update method replaces the
+ * entire dataset resource, whereas the patch method only replaces fields that
+ * are provided in the submitted dataset resource. This method supports patch
+ * semantics. (datasets.patch)
+ *
+ * @param string $projectId Project ID of the dataset being updated
+ * @param string $datasetId Dataset ID of the dataset being updated
+ * @param Google_Service_Bigquery_Dataset $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Dataset
+ */
+ public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset");
+ }
+ /**
+ * Updates information in an existing dataset. The update method replaces the
+ * entire dataset resource, whereas the patch method only replaces fields that
+ * are provided in the submitted dataset resource. (datasets.update)
+ *
+ * @param string $projectId Project ID of the dataset being updated
+ * @param string $datasetId Dataset ID of the dataset being updated
+ * @param Google_Service_Bigquery_Dataset $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Dataset
+ */
+ public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Bigquery_Dataset");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php
new file mode 100644
index 00000000..adc6f241
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Jobs.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bigqueryService = new Google_Service_Bigquery(...);
+ * $jobs = $bigqueryService->jobs;
+ * </code>
+ */
+class Google_Service_Bigquery_Resource_Jobs extends Google_Service_Resource
+{
+ /**
+ * Requests that a job be cancelled. This call will return immediately, and the
+ * client will need to poll for the job status to see if the cancel completed
+ * successfully. Cancelled jobs may still incur costs. (jobs.cancel)
+ *
+ * @param string $projectId [Required] Project ID of the job to cancel
+ * @param string $jobId [Required] Job ID of the job to cancel
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_JobCancelResponse
+ */
+ public function cancel($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Bigquery_JobCancelResponse");
+ }
+ /**
+ * Returns information about a specific job. Job information is available for a
+ * six month period after creation. Requires that you're the person who ran the
+ * job, or have the Is Owner project role. (jobs.get)
+ *
+ * @param string $projectId [Required] Project ID of the requested job
+ * @param string $jobId [Required] Job ID of the requested job
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Job
+ */
+ public function get($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Bigquery_Job");
+ }
+ /**
+ * Retrieves the results of a query job. (jobs.getQueryResults)
+ *
+ * @param string $projectId [Required] Project ID of the query job
+ * @param string $jobId [Required] Job ID of the query job
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to read
+ * @opt_param string pageToken Page token, returned by a previous call, to
+ * request the next page of results
+ * @opt_param string startIndex Zero-based index of the starting row
+ * @opt_param string timeoutMs How long to wait for the query to complete, in
+ * milliseconds, before returning. Default is 10 seconds. If the timeout passes
+ * before the job completes, the 'jobComplete' field in the response will be
+ * false
+ * @return Google_Service_Bigquery_GetQueryResultsResponse
+ */
+ public function getQueryResults($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse");
+ }
+ /**
+ * Starts a new asynchronous job. Requires the Can View project role.
+ * (jobs.insert)
+ *
+ * @param string $projectId Project ID of the project that will be billed for
+ * the job
+ * @param Google_Service_Bigquery_Job $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Job
+ */
+ public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Bigquery_Job");
+ }
+ /**
+ * Lists all jobs that you started in the specified project. Job information is
+ * available for a six month period after creation. The job list is sorted in
+ * reverse chronological order, by job creation time. Requires the Can View
+ * project role, or the Is Owner project role if you set the allUsers property.
+ * (jobs.listJobs)
+ *
+ * @param string $projectId Project ID of the jobs to list
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool allUsers Whether to display jobs owned by all users in the
+ * project. Default false
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call, to
+ * request the next page of results
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields
+ * @opt_param string stateFilter Filter for job state
+ * @return Google_Service_Bigquery_JobList
+ */
+ public function listJobs($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Bigquery_JobList");
+ }
+ /**
+ * Runs a BigQuery SQL query synchronously and returns query results if the
+ * query completes within a specified timeout. (jobs.query)
+ *
+ * @param string $projectId Project ID of the project billed for the query
+ * @param Google_Service_Bigquery_QueryRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_QueryResponse
+ */
+ public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Projects.php
new file mode 100644
index 00000000..a14b0e18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Projects.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bigqueryService = new Google_Service_Bigquery(...);
+ * $projects = $bigqueryService->projects;
+ * </code>
+ */
+class Google_Service_Bigquery_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Lists all projects to which you have been granted any project role.
+ * (projects.listProjects)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call, to
+ * request the next page of results
+ * @return Google_Service_Bigquery_ProjectList
+ */
+ public function listProjects($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tabledata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tabledata.php
new file mode 100644
index 00000000..c0984a19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tabledata.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tabledata" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bigqueryService = new Google_Service_Bigquery(...);
+ * $tabledata = $bigqueryService->tabledata;
+ * </code>
+ */
+class Google_Service_Bigquery_Resource_Tabledata extends Google_Service_Resource
+{
+ /**
+ * Streams data into BigQuery one record at a time without needing to run a load
+ * job. Requires the WRITER dataset role. (tabledata.insertAll)
+ *
+ * @param string $projectId Project ID of the destination table.
+ * @param string $datasetId Dataset ID of the destination table.
+ * @param string $tableId Table ID of the destination table.
+ * @param Google_Service_Bigquery_TableDataInsertAllRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_TableDataInsertAllResponse
+ */
+ public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse");
+ }
+ /**
+ * Retrieves table data from a specified set of rows. Requires the READER
+ * dataset role. (tabledata.listTabledata)
+ *
+ * @param string $projectId Project ID of the table to read
+ * @param string $datasetId Dataset ID of the table to read
+ * @param string $tableId Table ID of the table to read
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call,
+ * identifying the result set
+ * @opt_param string startIndex Zero-based index of the starting row to read
+ * @return Google_Service_Bigquery_TableDataList
+ */
+ public function listTabledata($projectId, $datasetId, $tableId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tables.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tables.php
new file mode 100644
index 00000000..063bddfb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Resource/Tables.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tables" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bigqueryService = new Google_Service_Bigquery(...);
+ * $tables = $bigqueryService->tables;
+ * </code>
+ */
+class Google_Service_Bigquery_Resource_Tables extends Google_Service_Resource
+{
+ /**
+ * Deletes the table specified by tableId from the dataset. If the table
+ * contains data, all the data will be deleted. (tables.delete)
+ *
+ * @param string $projectId Project ID of the table to delete
+ * @param string $datasetId Dataset ID of the table to delete
+ * @param string $tableId Table ID of the table to delete
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($projectId, $datasetId, $tableId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified table resource by table ID. This method does not return
+ * the data in the table, it only returns the table resource, which describes
+ * the structure of this table. (tables.get)
+ *
+ * @param string $projectId Project ID of the requested table
+ * @param string $datasetId Dataset ID of the requested table
+ * @param string $tableId Table ID of the requested table
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Table
+ */
+ public function get($projectId, $datasetId, $tableId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Bigquery_Table");
+ }
+ /**
+ * Creates a new, empty table in the dataset. (tables.insert)
+ *
+ * @param string $projectId Project ID of the new table
+ * @param string $datasetId Dataset ID of the new table
+ * @param Google_Service_Bigquery_Table $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Table
+ */
+ public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Bigquery_Table");
+ }
+ /**
+ * Lists all tables in the specified dataset. Requires the READER dataset role.
+ * (tables.listTables)
+ *
+ * @param string $projectId Project ID of the tables to list
+ * @param string $datasetId Dataset ID of the tables to list
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call, to
+ * request the next page of results
+ * @return Google_Service_Bigquery_TableList
+ */
+ public function listTables($projectId, $datasetId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Bigquery_TableList");
+ }
+ /**
+ * Updates information in an existing table. The update method replaces the
+ * entire table resource, whereas the patch method only replaces fields that are
+ * provided in the submitted table resource. This method supports patch
+ * semantics. (tables.patch)
+ *
+ * @param string $projectId Project ID of the table to update
+ * @param string $datasetId Dataset ID of the table to update
+ * @param string $tableId Table ID of the table to update
+ * @param Google_Service_Bigquery_Table $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Table
+ */
+ public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Bigquery_Table");
+ }
+ /**
+ * Updates information in an existing table. The update method replaces the
+ * entire table resource, whereas the patch method only replaces fields that are
+ * provided in the submitted table resource. (tables.update)
+ *
+ * @param string $projectId Project ID of the table to update
+ * @param string $datasetId Dataset ID of the table to update
+ * @param string $tableId Table ID of the table to update
+ * @param Google_Service_Bigquery_Table $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Bigquery_Table
+ */
+ public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Bigquery_Table");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Streamingbuffer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Streamingbuffer.php
new file mode 100644
index 00000000..4bf63704
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Streamingbuffer.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_Streamingbuffer extends Google_Model
+{
+ public $estimatedBytes;
+ public $estimatedRows;
+ public $oldestEntryTime;
+
+ public function setEstimatedBytes($estimatedBytes)
+ {
+ $this->estimatedBytes = $estimatedBytes;
+ }
+ public function getEstimatedBytes()
+ {
+ return $this->estimatedBytes;
+ }
+ public function setEstimatedRows($estimatedRows)
+ {
+ $this->estimatedRows = $estimatedRows;
+ }
+ public function getEstimatedRows()
+ {
+ return $this->estimatedRows;
+ }
+ public function setOldestEntryTime($oldestEntryTime)
+ {
+ $this->oldestEntryTime = $oldestEntryTime;
+ }
+ public function getOldestEntryTime()
+ {
+ return $this->oldestEntryTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Table.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Table.php
new file mode 100644
index 00000000..6d6521fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/Table.php
@@ -0,0 +1,216 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_Table extends Google_Model
+{
+ public $creationTime;
+ public $description;
+ public $etag;
+ public $expirationTime;
+ protected $externalDataConfigurationType = 'Google_Service_Bigquery_ExternalDataConfiguration';
+ protected $externalDataConfigurationDataType = '';
+ public $friendlyName;
+ public $id;
+ public $kind;
+ public $labels;
+ public $lastModifiedTime;
+ public $location;
+ public $numBytes;
+ public $numLongTermBytes;
+ public $numRows;
+ protected $schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $schemaDataType = '';
+ public $selfLink;
+ protected $streamingBufferType = 'Google_Service_Bigquery_Streamingbuffer';
+ protected $streamingBufferDataType = '';
+ protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
+ protected $tableReferenceDataType = '';
+ protected $timePartitioningType = 'Google_Service_Bigquery_TimePartitioning';
+ protected $timePartitioningDataType = '';
+ public $type;
+ protected $viewType = 'Google_Service_Bigquery_ViewDefinition';
+ protected $viewDataType = '';
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ public function setExternalDataConfiguration(Google_Service_Bigquery_ExternalDataConfiguration $externalDataConfiguration)
+ {
+ $this->externalDataConfiguration = $externalDataConfiguration;
+ }
+ public function getExternalDataConfiguration()
+ {
+ return $this->externalDataConfiguration;
+ }
+ public function setFriendlyName($friendlyName)
+ {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName()
+ {
+ return $this->friendlyName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLastModifiedTime($lastModifiedTime)
+ {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime()
+ {
+ return $this->lastModifiedTime;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setNumBytes($numBytes)
+ {
+ $this->numBytes = $numBytes;
+ }
+ public function getNumBytes()
+ {
+ return $this->numBytes;
+ }
+ public function setNumLongTermBytes($numLongTermBytes)
+ {
+ $this->numLongTermBytes = $numLongTermBytes;
+ }
+ public function getNumLongTermBytes()
+ {
+ return $this->numLongTermBytes;
+ }
+ public function setNumRows($numRows)
+ {
+ $this->numRows = $numRows;
+ }
+ public function getNumRows()
+ {
+ return $this->numRows;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema $schema)
+ {
+ $this->schema = $schema;
+ }
+ public function getSchema()
+ {
+ return $this->schema;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStreamingBuffer(Google_Service_Bigquery_Streamingbuffer $streamingBuffer)
+ {
+ $this->streamingBuffer = $streamingBuffer;
+ }
+ public function getStreamingBuffer()
+ {
+ return $this->streamingBuffer;
+ }
+ public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
+ {
+ $this->tableReference = $tableReference;
+ }
+ public function getTableReference()
+ {
+ return $this->tableReference;
+ }
+ public function setTimePartitioning(Google_Service_Bigquery_TimePartitioning $timePartitioning)
+ {
+ $this->timePartitioning = $timePartitioning;
+ }
+ public function getTimePartitioning()
+ {
+ return $this->timePartitioning;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setView(Google_Service_Bigquery_ViewDefinition $view)
+ {
+ $this->view = $view;
+ }
+ public function getView()
+ {
+ return $this->view;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableCell.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableCell.php
new file mode 100644
index 00000000..29909c03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableCell.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableCell extends Google_Model
+{
+ public $v;
+
+ public function setV($v)
+ {
+ $this->v = $v;
+ }
+ public function getV()
+ {
+ return $this->v;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequest.php
new file mode 100644
index 00000000..70b6cd7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequest.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $ignoreUnknownValues;
+ public $kind;
+ protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows';
+ protected $rowsDataType = 'array';
+ public $skipInvalidRows;
+ public $templateSuffix;
+
+ public function setIgnoreUnknownValues($ignoreUnknownValues)
+ {
+ $this->ignoreUnknownValues = $ignoreUnknownValues;
+ }
+ public function getIgnoreUnknownValues()
+ {
+ return $this->ignoreUnknownValues;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSkipInvalidRows($skipInvalidRows)
+ {
+ $this->skipInvalidRows = $skipInvalidRows;
+ }
+ public function getSkipInvalidRows()
+ {
+ return $this->skipInvalidRows;
+ }
+ public function setTemplateSuffix($templateSuffix)
+ {
+ $this->templateSuffix = $templateSuffix;
+ }
+ public function getTemplateSuffix()
+ {
+ return $this->templateSuffix;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequestRows.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequestRows.php
new file mode 100644
index 00000000..9467a738
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllRequestRows.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model
+{
+ public $insertId;
+ public $json;
+
+ public function setInsertId($insertId)
+ {
+ $this->insertId = $insertId;
+ }
+ public function getInsertId()
+ {
+ return $this->insertId;
+ }
+ public function setJson($json)
+ {
+ $this->json = $json;
+ }
+ public function getJson()
+ {
+ return $this->json;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponse.php
new file mode 100644
index 00000000..09e42b02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection
+{
+ protected $collection_key = 'insertErrors';
+ protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors';
+ protected $insertErrorsDataType = 'array';
+ public $kind;
+
+ public function setInsertErrors($insertErrors)
+ {
+ $this->insertErrors = $insertErrors;
+ }
+ public function getInsertErrors()
+ {
+ return $this->insertErrors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponseInsertErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponseInsertErrors.php
new file mode 100644
index 00000000..28c7b4f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataInsertAllResponseInsertErrors.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
+ protected $errorsDataType = 'array';
+ public $index;
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataList.php
new file mode 100644
index 00000000..0faf8c73
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableDataList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableDataList extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $etag;
+ public $kind;
+ public $pageToken;
+ protected $rowsType = 'Google_Service_Bigquery_TableRow';
+ protected $rowsDataType = 'array';
+ public $totalRows;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setTotalRows($totalRows)
+ {
+ $this->totalRows = $totalRows;
+ }
+ public function getTotalRows()
+ {
+ return $this->totalRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php
new file mode 100644
index 00000000..140fbece
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableFieldSchema.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableFieldSchema extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ public $description;
+ protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
+ protected $fieldsDataType = 'array';
+ public $mode;
+ public $name;
+ public $type;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setMode($mode)
+ {
+ $this->mode = $mode;
+ }
+ public function getMode()
+ {
+ return $this->mode;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableList.php
new file mode 100644
index 00000000..1c471637
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableList extends Google_Collection
+{
+ protected $collection_key = 'tables';
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+ protected $tablesType = 'Google_Service_Bigquery_TableListTables';
+ protected $tablesDataType = 'array';
+ public $totalItems;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTables($tables)
+ {
+ $this->tables = $tables;
+ }
+ public function getTables()
+ {
+ return $this->tables;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTables.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTables.php
new file mode 100644
index 00000000..08aecbae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTables.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableListTables extends Google_Model
+{
+ public $friendlyName;
+ public $id;
+ public $kind;
+ public $labels;
+ protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
+ protected $tableReferenceDataType = '';
+ public $type;
+ protected $viewType = 'Google_Service_Bigquery_TableListTablesView';
+ protected $viewDataType = '';
+
+ public function setFriendlyName($friendlyName)
+ {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName()
+ {
+ return $this->friendlyName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
+ {
+ $this->tableReference = $tableReference;
+ }
+ public function getTableReference()
+ {
+ return $this->tableReference;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setView(Google_Service_Bigquery_TableListTablesView $view)
+ {
+ $this->view = $view;
+ }
+ public function getView()
+ {
+ return $this->view;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTablesView.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTablesView.php
new file mode 100644
index 00000000..75cd863a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableListTablesView.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableListTablesView extends Google_Model
+{
+ public $useLegacySql;
+
+ public function setUseLegacySql($useLegacySql)
+ {
+ $this->useLegacySql = $useLegacySql;
+ }
+ public function getUseLegacySql()
+ {
+ return $this->useLegacySql;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableReference.php
new file mode 100644
index 00000000..9f6f5043
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableReference.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableReference extends Google_Model
+{
+ public $datasetId;
+ public $projectId;
+ public $tableId;
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setTableId($tableId)
+ {
+ $this->tableId = $tableId;
+ }
+ public function getTableId()
+ {
+ return $this->tableId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableRow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableRow.php
new file mode 100644
index 00000000..2d6a0190
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableRow.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableRow extends Google_Collection
+{
+ protected $collection_key = 'f';
+ protected $fType = 'Google_Service_Bigquery_TableCell';
+ protected $fDataType = 'array';
+
+ public function setF($f)
+ {
+ $this->f = $f;
+ }
+ public function getF()
+ {
+ return $this->f;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableSchema.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableSchema.php
new file mode 100644
index 00000000..9f0266e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TableSchema.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TableSchema extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
+ protected $fieldsDataType = 'array';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TimePartitioning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TimePartitioning.php
new file mode 100644
index 00000000..c89e2b66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/TimePartitioning.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_TimePartitioning extends Google_Model
+{
+ public $expirationMs;
+ public $type;
+
+ public function setExpirationMs($expirationMs)
+ {
+ $this->expirationMs = $expirationMs;
+ }
+ public function getExpirationMs()
+ {
+ return $this->expirationMs;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/UserDefinedFunctionResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/UserDefinedFunctionResource.php
new file mode 100644
index 00000000..60d19d52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/UserDefinedFunctionResource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_UserDefinedFunctionResource extends Google_Model
+{
+ public $inlineCode;
+ public $resourceUri;
+
+ public function setInlineCode($inlineCode)
+ {
+ $this->inlineCode = $inlineCode;
+ }
+ public function getInlineCode()
+ {
+ return $this->inlineCode;
+ }
+ public function setResourceUri($resourceUri)
+ {
+ $this->resourceUri = $resourceUri;
+ }
+ public function getResourceUri()
+ {
+ return $this->resourceUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ViewDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ViewDefinition.php
new file mode 100644
index 00000000..1692c994
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Bigquery/ViewDefinition.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Bigquery_ViewDefinition extends Google_Collection
+{
+ protected $collection_key = 'userDefinedFunctionResources';
+ public $query;
+ public $useLegacySql;
+ protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource';
+ protected $userDefinedFunctionResourcesDataType = 'array';
+
+ public function setQuery($query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setUseLegacySql($useLegacySql)
+ {
+ $this->useLegacySql = $useLegacySql;
+ }
+ public function getUseLegacySql()
+ {
+ return $this->useLegacySql;
+ }
+ public function setUserDefinedFunctionResources($userDefinedFunctionResources)
+ {
+ $this->userDefinedFunctionResources = $userDefinedFunctionResources;
+ }
+ public function getUserDefinedFunctionResources()
+ {
+ return $this->userDefinedFunctionResources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger.php
new file mode 100644
index 00000000..f8560dc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger.php
@@ -0,0 +1,930 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Blogger (v3).
+ *
+ * <p>
+ * API for access to the data within Blogger.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Blogger extends Google_Service
+{
+ /** Manage your Blogger account. */
+ const BLOGGER =
+ "https://www.googleapis.com/auth/blogger";
+ /** View your Blogger account. */
+ const BLOGGER_READONLY =
+ "https://www.googleapis.com/auth/blogger.readonly";
+
+ public $blogUserInfos;
+ public $blogs;
+ public $comments;
+ public $pageViews;
+ public $pages;
+ public $postUserInfos;
+ public $posts;
+ public $users;
+
+ /**
+ * Constructs the internal representation of the Blogger service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'blogger/v3/';
+ $this->version = 'v3';
+ $this->serviceName = 'blogger';
+
+ $this->blogUserInfos = new Google_Service_Blogger_Resource_BlogUserInfos(
+ $this,
+ $this->serviceName,
+ 'blogUserInfos',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'users/{userId}/blogs/{blogId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxPosts' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->blogs = new Google_Service_Blogger_Resource_Blogs(
+ $this,
+ $this->serviceName,
+ 'blogs',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'blogs/{blogId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxPosts' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getByUrl' => array(
+ 'path' => 'blogs/byurl',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'url' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listByUser' => array(
+ 'path' => 'users/{userId}/blogs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fetchUserInfo' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'role' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->comments = new Google_Service_Blogger_Resource_Comments(
+ $this,
+ $this->serviceName,
+ 'comments',
+ array(
+ 'methods' => array(
+ 'approve' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/comments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'fetchBodies' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listByBlog' => array(
+ 'path' => 'blogs/{blogId}/comments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'fetchBodies' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'markAsSpam' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'removeContent' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->pageViews = new Google_Service_Blogger_Resource_PageViews(
+ $this,
+ $this->serviceName,
+ 'pageViews',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'blogs/{blogId}/pageviews',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'range' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->pages = new Google_Service_Blogger_Resource_Pages(
+ $this,
+ $this->serviceName,
+ 'pages',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'blogs/{blogId}/pages/{pageId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'blogs/{blogId}/pages/{pageId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'blogs/{blogId}/pages',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'isDraft' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'blogs/{blogId}/pages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fetchBodies' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'blogs/{blogId}/pages/{pageId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'publish' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'revert' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'publish' => array(
+ 'path' => 'blogs/{blogId}/pages/{pageId}/publish',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'revert' => array(
+ 'path' => 'blogs/{blogId}/pages/{pageId}/revert',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'blogs/{blogId}/pages/{pageId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'publish' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'revert' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->postUserInfos = new Google_Service_Blogger_Resource_PostUserInfos(
+ $this,
+ $this->serviceName,
+ 'postUserInfos',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxComments' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/{userId}/blogs/{blogId}/posts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'fetchBodies' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'labels' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->posts = new Google_Service_Blogger_Resource_Posts(
+ $this,
+ $this->serviceName,
+ 'posts',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fetchBody' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'fetchImages' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxComments' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getByPath' => array(
+ 'path' => 'blogs/{blogId}/posts/bypath',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'path' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxComments' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'blogs/{blogId}/posts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fetchBody' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'fetchImages' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'isDraft' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'blogs/{blogId}/posts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'fetchBodies' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'fetchImages' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'labels' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fetchBody' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'fetchImages' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxComments' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'publish' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'revert' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'publish' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/publish',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'publishDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'revert' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}/revert',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'blogs/{blogId}/posts/search',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fetchBodies' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'blogs/{blogId}/posts/{postId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'blogId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'postId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fetchBody' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'fetchImages' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxComments' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'publish' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'revert' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users = new Google_Service_Blogger_Resource_Users(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'users/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Blog.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Blog.php
new file mode 100644
index 00000000..cab4de8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Blog.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_Blog extends Google_Model
+{
+ public $customMetaData;
+ public $description;
+ public $id;
+ public $kind;
+ protected $localeType = 'Google_Service_Blogger_BlogLocale';
+ protected $localeDataType = '';
+ public $name;
+ protected $pagesType = 'Google_Service_Blogger_BlogPages';
+ protected $pagesDataType = '';
+ protected $postsType = 'Google_Service_Blogger_BlogPosts';
+ protected $postsDataType = '';
+ public $published;
+ public $selfLink;
+ public $status;
+ public $updated;
+ public $url;
+
+ public function setCustomMetaData($customMetaData)
+ {
+ $this->customMetaData = $customMetaData;
+ }
+ public function getCustomMetaData()
+ {
+ return $this->customMetaData;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocale(Google_Service_Blogger_BlogLocale $locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPages(Google_Service_Blogger_BlogPages $pages)
+ {
+ $this->pages = $pages;
+ }
+ public function getPages()
+ {
+ return $this->pages;
+ }
+ public function setPosts(Google_Service_Blogger_BlogPosts $posts)
+ {
+ $this->posts = $posts;
+ }
+ public function getPosts()
+ {
+ return $this->posts;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogList.php
new file mode 100644
index 00000000..9fde7e1e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogList.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_BlogList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo';
+ protected $blogUserInfosDataType = 'array';
+ protected $itemsType = 'Google_Service_Blogger_Blog';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setBlogUserInfos($blogUserInfos)
+ {
+ $this->blogUserInfos = $blogUserInfos;
+ }
+ public function getBlogUserInfos()
+ {
+ return $this->blogUserInfos;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogLocale.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogLocale.php
new file mode 100644
index 00000000..3cf95449
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogLocale.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_BlogLocale extends Google_Model
+{
+ public $country;
+ public $language;
+ public $variant;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setVariant($variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPages.php
new file mode 100644
index 00000000..48658153
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPages.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_BlogPages extends Google_Model
+{
+ public $selfLink;
+ public $totalItems;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPerUserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPerUserInfo.php
new file mode 100644
index 00000000..43625b90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPerUserInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_BlogPerUserInfo extends Google_Model
+{
+ public $blogId;
+ public $hasAdminAccess;
+ public $kind;
+ public $photosAlbumKey;
+ public $role;
+ public $userId;
+
+ public function setBlogId($blogId)
+ {
+ $this->blogId = $blogId;
+ }
+ public function getBlogId()
+ {
+ return $this->blogId;
+ }
+ public function setHasAdminAccess($hasAdminAccess)
+ {
+ $this->hasAdminAccess = $hasAdminAccess;
+ }
+ public function getHasAdminAccess()
+ {
+ return $this->hasAdminAccess;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPhotosAlbumKey($photosAlbumKey)
+ {
+ $this->photosAlbumKey = $photosAlbumKey;
+ }
+ public function getPhotosAlbumKey()
+ {
+ return $this->photosAlbumKey;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPosts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPosts.php
new file mode 100644
index 00000000..20c52cc6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogPosts.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_BlogPosts extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Blogger_Post';
+ protected $itemsDataType = 'array';
+ public $selfLink;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogUserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogUserInfo.php
new file mode 100644
index 00000000..6c78b30b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/BlogUserInfo.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_BlogUserInfo extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "blogUserInfo" => "blog_user_info",
+ );
+ protected $blogType = 'Google_Service_Blogger_Blog';
+ protected $blogDataType = '';
+ protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo';
+ protected $blogUserInfoDataType = '';
+ public $kind;
+
+ public function setBlog(Google_Service_Blogger_Blog $blog)
+ {
+ $this->blog = $blog;
+ }
+ public function getBlog()
+ {
+ return $this->blog;
+ }
+ public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo)
+ {
+ $this->blogUserInfo = $blogUserInfo;
+ }
+ public function getBlogUserInfo()
+ {
+ return $this->blogUserInfo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Comment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Comment.php
new file mode 100644
index 00000000..357f5aa0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Comment.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_Comment extends Google_Model
+{
+ protected $authorType = 'Google_Service_Blogger_CommentAuthor';
+ protected $authorDataType = '';
+ protected $blogType = 'Google_Service_Blogger_CommentBlog';
+ protected $blogDataType = '';
+ public $content;
+ public $id;
+ protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo';
+ protected $inReplyToDataType = '';
+ public $kind;
+ protected $postType = 'Google_Service_Blogger_CommentPost';
+ protected $postDataType = '';
+ public $published;
+ public $selfLink;
+ public $status;
+ public $updated;
+
+ public function setAuthor(Google_Service_Blogger_CommentAuthor $author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setBlog(Google_Service_Blogger_CommentBlog $blog)
+ {
+ $this->blog = $blog;
+ }
+ public function getBlog()
+ {
+ return $this->blog;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo)
+ {
+ $this->inReplyTo = $inReplyTo;
+ }
+ public function getInReplyTo()
+ {
+ return $this->inReplyTo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPost(Google_Service_Blogger_CommentPost $post)
+ {
+ $this->post = $post;
+ }
+ public function getPost()
+ {
+ return $this->post;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthor.php
new file mode 100644
index 00000000..fec87663
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthor.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_CommentAuthor extends Google_Model
+{
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_Blogger_CommentAuthorImage';
+ protected $imageDataType = '';
+ public $url;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Blogger_CommentAuthorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthorImage.php
new file mode 100644
index 00000000..1ed7ee8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentAuthorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_CommentAuthorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentBlog.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentBlog.php
new file mode 100644
index 00000000..0118d08a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentBlog.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_CommentBlog extends Google_Model
+{
+ public $id;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentInReplyTo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentInReplyTo.php
new file mode 100644
index 00000000..05916ae3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentInReplyTo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_CommentInReplyTo extends Google_Model
+{
+ public $id;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentList.php
new file mode 100644
index 00000000..82414c04
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_CommentList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Blogger_Comment';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $prevPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentPost.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentPost.php
new file mode 100644
index 00000000..e074c58a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/CommentPost.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_CommentPost extends Google_Model
+{
+ public $id;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Page.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Page.php
new file mode 100644
index 00000000..756c2dfa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Page.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_Page extends Google_Model
+{
+ protected $authorType = 'Google_Service_Blogger_PageAuthor';
+ protected $authorDataType = '';
+ protected $blogType = 'Google_Service_Blogger_PageBlog';
+ protected $blogDataType = '';
+ public $content;
+ public $etag;
+ public $id;
+ public $kind;
+ public $published;
+ public $selfLink;
+ public $status;
+ public $title;
+ public $updated;
+ public $url;
+
+ public function setAuthor(Google_Service_Blogger_PageAuthor $author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setBlog(Google_Service_Blogger_PageBlog $blog)
+ {
+ $this->blog = $blog;
+ }
+ public function getBlog()
+ {
+ return $this->blog;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthor.php
new file mode 100644
index 00000000..271f82bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthor.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PageAuthor extends Google_Model
+{
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_Blogger_PageAuthorImage';
+ protected $imageDataType = '';
+ public $url;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Blogger_PageAuthorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthorImage.php
new file mode 100644
index 00000000..ff5c679f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageAuthorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PageAuthorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageBlog.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageBlog.php
new file mode 100644
index 00000000..dbcf5cd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageBlog.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PageBlog extends Google_Model
+{
+ public $id;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageList.php
new file mode 100644
index 00000000..e9d90d63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PageList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Blogger_Page';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Pageviews.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Pageviews.php
new file mode 100644
index 00000000..c7285d57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Pageviews.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_Pageviews extends Google_Collection
+{
+ protected $collection_key = 'counts';
+ public $blogId;
+ protected $countsType = 'Google_Service_Blogger_PageviewsCounts';
+ protected $countsDataType = 'array';
+ public $kind;
+
+ public function setBlogId($blogId)
+ {
+ $this->blogId = $blogId;
+ }
+ public function getBlogId()
+ {
+ return $this->blogId;
+ }
+ public function setCounts($counts)
+ {
+ $this->counts = $counts;
+ }
+ public function getCounts()
+ {
+ return $this->counts;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageviewsCounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageviewsCounts.php
new file mode 100644
index 00000000..058d7d22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PageviewsCounts.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PageviewsCounts extends Google_Model
+{
+ public $count;
+ public $timeRange;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setTimeRange($timeRange)
+ {
+ $this->timeRange = $timeRange;
+ }
+ public function getTimeRange()
+ {
+ return $this->timeRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Post.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Post.php
new file mode 100644
index 00000000..9cc40361
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Post.php
@@ -0,0 +1,198 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_Post extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ protected $authorType = 'Google_Service_Blogger_PostAuthor';
+ protected $authorDataType = '';
+ protected $blogType = 'Google_Service_Blogger_PostBlog';
+ protected $blogDataType = '';
+ public $content;
+ public $customMetaData;
+ public $etag;
+ public $id;
+ protected $imagesType = 'Google_Service_Blogger_PostImages';
+ protected $imagesDataType = 'array';
+ public $kind;
+ public $labels;
+ protected $locationType = 'Google_Service_Blogger_PostLocation';
+ protected $locationDataType = '';
+ public $published;
+ public $readerComments;
+ protected $repliesType = 'Google_Service_Blogger_PostReplies';
+ protected $repliesDataType = '';
+ public $selfLink;
+ public $status;
+ public $title;
+ public $titleLink;
+ public $updated;
+ public $url;
+
+ public function setAuthor(Google_Service_Blogger_PostAuthor $author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setBlog(Google_Service_Blogger_PostBlog $blog)
+ {
+ $this->blog = $blog;
+ }
+ public function getBlog()
+ {
+ return $this->blog;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setCustomMetaData($customMetaData)
+ {
+ $this->customMetaData = $customMetaData;
+ }
+ public function getCustomMetaData()
+ {
+ return $this->customMetaData;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImages($images)
+ {
+ $this->images = $images;
+ }
+ public function getImages()
+ {
+ return $this->images;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocation(Google_Service_Blogger_PostLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setReaderComments($readerComments)
+ {
+ $this->readerComments = $readerComments;
+ }
+ public function getReaderComments()
+ {
+ return $this->readerComments;
+ }
+ public function setReplies(Google_Service_Blogger_PostReplies $replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTitleLink($titleLink)
+ {
+ $this->titleLink = $titleLink;
+ }
+ public function getTitleLink()
+ {
+ return $this->titleLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthor.php
new file mode 100644
index 00000000..4f89741e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthor.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostAuthor extends Google_Model
+{
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_Blogger_PostAuthorImage';
+ protected $imageDataType = '';
+ public $url;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Blogger_PostAuthorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthorImage.php
new file mode 100644
index 00000000..642a389a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostAuthorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostAuthorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostBlog.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostBlog.php
new file mode 100644
index 00000000..99248132
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostBlog.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostBlog extends Google_Model
+{
+ public $id;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostImages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostImages.php
new file mode 100644
index 00000000..59a0ac02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostImages.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostImages extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostList.php
new file mode 100644
index 00000000..1e9f15ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Blogger_Post';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostLocation.php
new file mode 100644
index 00000000..d2e65e86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostLocation.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostLocation extends Google_Model
+{
+ public $lat;
+ public $lng;
+ public $name;
+ public $span;
+
+ public function setLat($lat)
+ {
+ $this->lat = $lat;
+ }
+ public function getLat()
+ {
+ return $this->lat;
+ }
+ public function setLng($lng)
+ {
+ $this->lng = $lng;
+ }
+ public function getLng()
+ {
+ return $this->lng;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSpan($span)
+ {
+ $this->span = $span;
+ }
+ public function getSpan()
+ {
+ return $this->span;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostPerUserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostPerUserInfo.php
new file mode 100644
index 00000000..ec385a7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostPerUserInfo.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostPerUserInfo extends Google_Model
+{
+ public $blogId;
+ public $hasEditAccess;
+ public $kind;
+ public $postId;
+ public $userId;
+
+ public function setBlogId($blogId)
+ {
+ $this->blogId = $blogId;
+ }
+ public function getBlogId()
+ {
+ return $this->blogId;
+ }
+ public function setHasEditAccess($hasEditAccess)
+ {
+ $this->hasEditAccess = $hasEditAccess;
+ }
+ public function getHasEditAccess()
+ {
+ return $this->hasEditAccess;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPostId($postId)
+ {
+ $this->postId = $postId;
+ }
+ public function getPostId()
+ {
+ return $this->postId;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostReplies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostReplies.php
new file mode 100644
index 00000000..b456fdcd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostReplies.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostReplies extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Blogger_Comment';
+ protected $itemsDataType = 'array';
+ public $selfLink;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfo.php
new file mode 100644
index 00000000..e3598a95
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfo.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostUserInfo extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "postUserInfo" => "post_user_info",
+ );
+ public $kind;
+ protected $postType = 'Google_Service_Blogger_Post';
+ protected $postDataType = '';
+ protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo';
+ protected $postUserInfoDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPost(Google_Service_Blogger_Post $post)
+ {
+ $this->post = $post;
+ }
+ public function getPost()
+ {
+ return $this->post;
+ }
+ public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo)
+ {
+ $this->postUserInfo = $postUserInfo;
+ }
+ public function getPostUserInfo()
+ {
+ return $this->postUserInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfosList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfosList.php
new file mode 100644
index 00000000..f65b7013
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/PostUserInfosList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_PostUserInfosList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Blogger_PostUserInfo';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/BlogUserInfos.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/BlogUserInfos.php
new file mode 100644
index 00000000..f843e4a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/BlogUserInfos.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "blogUserInfos" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $blogUserInfos = $bloggerService->blogUserInfos;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_BlogUserInfos extends Google_Service_Resource
+{
+ /**
+ * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get)
+ *
+ * @param string $userId ID of the user whose blogs are to be fetched. Either
+ * the word 'self' (sans quote marks) or the user's profile identifier.
+ * @param string $blogId The ID of the blog to get.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxPosts Maximum number of posts to pull back with the
+ * blog.
+ * @return Google_Service_Blogger_BlogUserInfo
+ */
+ public function get($userId, $blogId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Blogs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Blogs.php
new file mode 100644
index 00000000..b97611eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Blogs.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "blogs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $blogs = $bloggerService->blogs;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_Blogs extends Google_Service_Resource
+{
+ /**
+ * Gets one blog by ID. (blogs.get)
+ *
+ * @param string $blogId The ID of the blog to get.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxPosts Maximum number of posts to pull back with the
+ * blog.
+ * @opt_param string view Access level with which to view the blog. Note that
+ * some fields require elevated access.
+ * @return Google_Service_Blogger_Blog
+ */
+ public function get($blogId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_Blog");
+ }
+ /**
+ * Retrieve a Blog by URL. (blogs.getByUrl)
+ *
+ * @param string $url The URL of the blog to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view Access level with which to view the blog. Note that
+ * some fields require elevated access.
+ * @return Google_Service_Blogger_Blog
+ */
+ public function getByUrl($url, $optParams = array())
+ {
+ $params = array('url' => $url);
+ $params = array_merge($params, $optParams);
+ return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog");
+ }
+ /**
+ * Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
+ *
+ * @param string $userId ID of the user whose blogs are to be fetched. Either
+ * the word 'self' (sans quote marks) or the user's profile identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchUserInfo Whether the response is a list of blogs with
+ * per-user information instead of just blogs.
+ * @opt_param string role User access types for blogs to include in the results,
+ * e.g. AUTHOR will return blogs where the user has author level access. If no
+ * roles are specified, defaults to ADMIN and AUTHOR roles.
+ * @opt_param string status Blog statuses to include in the result (default:
+ * Live blogs only). Note that ADMIN access is required to view deleted blogs.
+ * @opt_param string view Access level with which to view the blogs. Note that
+ * some fields require elevated access.
+ * @return Google_Service_Blogger_BlogList
+ */
+ public function listByUser($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Comments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Comments.php
new file mode 100644
index 00000000..ff0ca9c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Comments.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $comments = $bloggerService->comments;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_Comments extends Google_Service_Resource
+{
+ /**
+ * Marks a comment as not spam. (comments.approve)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param string $commentId The ID of the comment to mark as not spam.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_Comment
+ */
+ public function approve($blogId, $postId, $commentId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('approve', array($params), "Google_Service_Blogger_Comment");
+ }
+ /**
+ * Delete a comment by ID. (comments.delete)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param string $commentId The ID of the comment to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($blogId, $postId, $commentId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one comment by ID. (comments.get)
+ *
+ * @param string $blogId ID of the blog to containing the comment.
+ * @param string $postId ID of the post to fetch posts from.
+ * @param string $commentId The ID of the comment to get.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view Access level for the requested comment (default:
+ * READER). Note that some comments will require elevated permissions, for
+ * example comments where the parent posts which is in a draft state, or
+ * comments that are pending moderation.
+ * @return Google_Service_Blogger_Comment
+ */
+ public function get($blogId, $postId, $commentId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_Comment");
+ }
+ /**
+ * Retrieves the comments for a post, possibly filtered. (comments.listComments)
+ *
+ * @param string $blogId ID of the blog to fetch comments from.
+ * @param string $postId ID of the post to fetch posts from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endDate Latest date of comment to fetch, a date-time with
+ * RFC 3339 formatting.
+ * @opt_param bool fetchBodies Whether the body content of the comments is
+ * included.
+ * @opt_param string maxResults Maximum number of comments to include in the
+ * result.
+ * @opt_param string pageToken Continuation token if request is paged.
+ * @opt_param string startDate Earliest date of comment to fetch, a date-time
+ * with RFC 3339 formatting.
+ * @opt_param string status
+ * @opt_param string view Access level with which to view the returned result.
+ * Note that some fields require elevated access.
+ * @return Google_Service_Blogger_CommentList
+ */
+ public function listComments($blogId, $postId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Blogger_CommentList");
+ }
+ /**
+ * Retrieves the comments for a blog, across all posts, possibly filtered.
+ * (comments.listByBlog)
+ *
+ * @param string $blogId ID of the blog to fetch comments from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endDate Latest date of comment to fetch, a date-time with
+ * RFC 3339 formatting.
+ * @opt_param bool fetchBodies Whether the body content of the comments is
+ * included.
+ * @opt_param string maxResults Maximum number of comments to include in the
+ * result.
+ * @opt_param string pageToken Continuation token if request is paged.
+ * @opt_param string startDate Earliest date of comment to fetch, a date-time
+ * with RFC 3339 formatting.
+ * @opt_param string status
+ * @return Google_Service_Blogger_CommentList
+ */
+ public function listByBlog($blogId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList");
+ }
+ /**
+ * Marks a comment as spam. (comments.markAsSpam)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param string $commentId The ID of the comment to mark as spam.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_Comment
+ */
+ public function markAsSpam($blogId, $postId, $commentId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment");
+ }
+ /**
+ * Removes the content of a comment. (comments.removeContent)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param string $commentId The ID of the comment to delete content from.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_Comment
+ */
+ public function removeContent($blogId, $postId, $commentId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PageViews.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PageViews.php
new file mode 100644
index 00000000..c1f231d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PageViews.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "pageViews" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $pageViews = $bloggerService->pageViews;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_PageViews extends Google_Service_Resource
+{
+ /**
+ * Retrieve pageview stats for a Blog. (pageViews.get)
+ *
+ * @param string $blogId The ID of the blog to get.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string range
+ * @return Google_Service_Blogger_Pageviews
+ */
+ public function get($blogId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_Pageviews");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Pages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Pages.php
new file mode 100644
index 00000000..b27f175a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Pages.php
@@ -0,0 +1,163 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "pages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $pages = $bloggerService->pages;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_Pages extends Google_Service_Resource
+{
+ /**
+ * Delete a page by ID. (pages.delete)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $pageId The ID of the Page.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($blogId, $pageId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one blog page by ID. (pages.get)
+ *
+ * @param string $blogId ID of the blog containing the page.
+ * @param string $pageId The ID of the page to get.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view
+ * @return Google_Service_Blogger_Page
+ */
+ public function get($blogId, $pageId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_Page");
+ }
+ /**
+ * Add a page. (pages.insert)
+ *
+ * @param string $blogId ID of the blog to add the page to.
+ * @param Google_Service_Blogger_Page $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool isDraft Whether to create the page as a draft (default:
+ * false).
+ * @return Google_Service_Blogger_Page
+ */
+ public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Blogger_Page");
+ }
+ /**
+ * Retrieves the pages for a blog, optionally including non-LIVE statuses.
+ * (pages.listPages)
+ *
+ * @param string $blogId ID of the blog to fetch Pages from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
+ * @opt_param string maxResults Maximum number of Pages to fetch.
+ * @opt_param string pageToken Continuation token if the request is paged.
+ * @opt_param string status
+ * @opt_param string view Access level with which to view the returned result.
+ * Note that some fields require elevated access.
+ * @return Google_Service_Blogger_PageList
+ */
+ public function listPages($blogId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Blogger_PageList");
+ }
+ /**
+ * Update a page. This method supports patch semantics. (pages.patch)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $pageId The ID of the Page.
+ * @param Google_Service_Blogger_Page $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool publish Whether a publish action should be performed when the
+ * page is updated (default: false).
+ * @opt_param bool revert Whether a revert action should be performed when the
+ * page is updated (default: false).
+ * @return Google_Service_Blogger_Page
+ */
+ public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Blogger_Page");
+ }
+ /**
+ * Publishes a draft page. (pages.publish)
+ *
+ * @param string $blogId The ID of the blog.
+ * @param string $pageId The ID of the page.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_Page
+ */
+ public function publish($blogId, $pageId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('publish', array($params), "Google_Service_Blogger_Page");
+ }
+ /**
+ * Revert a published or scheduled page to draft state. (pages.revert)
+ *
+ * @param string $blogId The ID of the blog.
+ * @param string $pageId The ID of the page.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_Page
+ */
+ public function revert($blogId, $pageId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ return $this->call('revert', array($params), "Google_Service_Blogger_Page");
+ }
+ /**
+ * Update a page. (pages.update)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $pageId The ID of the Page.
+ * @param Google_Service_Blogger_Page $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool publish Whether a publish action should be performed when the
+ * page is updated (default: false).
+ * @opt_param bool revert Whether a revert action should be performed when the
+ * page is updated (default: false).
+ * @return Google_Service_Blogger_Page
+ */
+ public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Blogger_Page");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PostUserInfos.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PostUserInfos.php
new file mode 100644
index 00000000..aef69dc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/PostUserInfos.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "postUserInfos" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $postUserInfos = $bloggerService->postUserInfos;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_PostUserInfos extends Google_Service_Resource
+{
+ /**
+ * Gets one post and user info pair, by post ID and user ID. The post user info
+ * contains per-user information about the post, such as access rights, specific
+ * to the user. (postUserInfos.get)
+ *
+ * @param string $userId ID of the user for the per-user information to be
+ * fetched. Either the word 'self' (sans quote marks) or the user's profile
+ * identifier.
+ * @param string $blogId The ID of the blog.
+ * @param string $postId The ID of the post to get.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxComments Maximum number of comments to pull back on a
+ * post.
+ * @return Google_Service_Blogger_PostUserInfo
+ */
+ public function get($userId, $blogId, $postId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo");
+ }
+ /**
+ * Retrieves a list of post and post user info pairs, possibly filtered. The
+ * post user info contains per-user information about the post, such as access
+ * rights, specific to the user. (postUserInfos.listPostUserInfos)
+ *
+ * @param string $userId ID of the user for the per-user information to be
+ * fetched. Either the word 'self' (sans quote marks) or the user's profile
+ * identifier.
+ * @param string $blogId ID of the blog to fetch posts from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endDate Latest post date to fetch, a date-time with RFC
+ * 3339 formatting.
+ * @opt_param bool fetchBodies Whether the body content of posts is included.
+ * Default is false.
+ * @opt_param string labels Comma-separated list of labels to search for.
+ * @opt_param string maxResults Maximum number of posts to fetch.
+ * @opt_param string orderBy Sort order applied to search results. Default is
+ * published.
+ * @opt_param string pageToken Continuation token if the request is paged.
+ * @opt_param string startDate Earliest post date to fetch, a date-time with RFC
+ * 3339 formatting.
+ * @opt_param string status
+ * @opt_param string view Access level with which to view the returned result.
+ * Note that some fields require elevated access.
+ * @return Google_Service_Blogger_PostUserInfosList
+ */
+ public function listPostUserInfos($userId, $blogId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Posts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Posts.php
new file mode 100644
index 00000000..d89c5623
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Posts.php
@@ -0,0 +1,241 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "posts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $posts = $bloggerService->posts;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_Posts extends Google_Service_Resource
+{
+ /**
+ * Delete a post by ID. (posts.delete)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($blogId, $postId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Get a post by ID. (posts.get)
+ *
+ * @param string $blogId ID of the blog to fetch the post from.
+ * @param string $postId The ID of the post
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchBody Whether the body content of the post is included
+ * (default: true). This should be set to false when the post bodies are not
+ * required, to help minimize traffic.
+ * @opt_param bool fetchImages Whether image URL metadata for each post is
+ * included (default: false).
+ * @opt_param string maxComments Maximum number of comments to pull back on a
+ * post.
+ * @opt_param string view Access level with which to view the returned result.
+ * Note that some fields require elevated access.
+ * @return Google_Service_Blogger_Post
+ */
+ public function get($blogId, $postId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_Post");
+ }
+ /**
+ * Retrieve a Post by Path. (posts.getByPath)
+ *
+ * @param string $blogId ID of the blog to fetch the post from.
+ * @param string $path Path of the Post to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxComments Maximum number of comments to pull back on a
+ * post.
+ * @opt_param string view Access level with which to view the returned result.
+ * Note that some fields require elevated access.
+ * @return Google_Service_Blogger_Post
+ */
+ public function getByPath($blogId, $path, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'path' => $path);
+ $params = array_merge($params, $optParams);
+ return $this->call('getByPath', array($params), "Google_Service_Blogger_Post");
+ }
+ /**
+ * Add a post. (posts.insert)
+ *
+ * @param string $blogId ID of the blog to add the post to.
+ * @param Google_Service_Blogger_Post $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchBody Whether the body content of the post is included
+ * with the result (default: true).
+ * @opt_param bool fetchImages Whether image URL metadata for each post is
+ * included in the returned result (default: false).
+ * @opt_param bool isDraft Whether to create the post as a draft (default:
+ * false).
+ * @return Google_Service_Blogger_Post
+ */
+ public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Blogger_Post");
+ }
+ /**
+ * Retrieves a list of posts, possibly filtered. (posts.listPosts)
+ *
+ * @param string $blogId ID of the blog to fetch posts from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endDate Latest post date to fetch, a date-time with RFC
+ * 3339 formatting.
+ * @opt_param bool fetchBodies Whether the body content of posts is included
+ * (default: true). This should be set to false when the post bodies are not
+ * required, to help minimize traffic.
+ * @opt_param bool fetchImages Whether image URL metadata for each post is
+ * included.
+ * @opt_param string labels Comma-separated list of labels to search for.
+ * @opt_param string maxResults Maximum number of posts to fetch.
+ * @opt_param string orderBy Sort search results
+ * @opt_param string pageToken Continuation token if the request is paged.
+ * @opt_param string startDate Earliest post date to fetch, a date-time with RFC
+ * 3339 formatting.
+ * @opt_param string status Statuses to include in the results.
+ * @opt_param string view Access level with which to view the returned result.
+ * Note that some fields require escalated access.
+ * @return Google_Service_Blogger_PostList
+ */
+ public function listPosts($blogId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Blogger_PostList");
+ }
+ /**
+ * Update a post. This method supports patch semantics. (posts.patch)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param Google_Service_Blogger_Post $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchBody Whether the body content of the post is included
+ * with the result (default: true).
+ * @opt_param bool fetchImages Whether image URL metadata for each post is
+ * included in the returned result (default: false).
+ * @opt_param string maxComments Maximum number of comments to retrieve with the
+ * returned post.
+ * @opt_param bool publish Whether a publish action should be performed when the
+ * post is updated (default: false).
+ * @opt_param bool revert Whether a revert action should be performed when the
+ * post is updated (default: false).
+ * @return Google_Service_Blogger_Post
+ */
+ public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Blogger_Post");
+ }
+ /**
+ * Publishes a draft post, optionally at the specific time of the given
+ * publishDate parameter. (posts.publish)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string publishDate Optional date and time to schedule the
+ * publishing of the Blog. If no publishDate parameter is given, the post is
+ * either published at the a previously saved schedule date (if present), or the
+ * current time. If a future date is given, the post will be scheduled to be
+ * published.
+ * @return Google_Service_Blogger_Post
+ */
+ public function publish($blogId, $postId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ return $this->call('publish', array($params), "Google_Service_Blogger_Post");
+ }
+ /**
+ * Revert a published or scheduled post to draft state. (posts.revert)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_Post
+ */
+ public function revert($blogId, $postId, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ return $this->call('revert', array($params), "Google_Service_Blogger_Post");
+ }
+ /**
+ * Search for a post. (posts.search)
+ *
+ * @param string $blogId ID of the blog to fetch the post from.
+ * @param string $q Query terms to search this blog for matching posts.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchBodies Whether the body content of posts is included
+ * (default: true). This should be set to false when the post bodies are not
+ * required, to help minimize traffic.
+ * @opt_param string orderBy Sort search results
+ * @return Google_Service_Blogger_PostList
+ */
+ public function search($blogId, $q, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'q' => $q);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Blogger_PostList");
+ }
+ /**
+ * Update a post. (posts.update)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param Google_Service_Blogger_Post $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchBody Whether the body content of the post is included
+ * with the result (default: true).
+ * @opt_param bool fetchImages Whether image URL metadata for each post is
+ * included in the returned result (default: false).
+ * @opt_param string maxComments Maximum number of comments to retrieve with the
+ * returned post.
+ * @opt_param bool publish Whether a publish action should be performed when the
+ * post is updated (default: false).
+ * @opt_param bool revert Whether a revert action should be performed when the
+ * post is updated (default: false).
+ * @return Google_Service_Blogger_Post
+ */
+ public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array())
+ {
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Blogger_Post");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Users.php
new file mode 100644
index 00000000..92fc8775
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/Resource/Users.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $bloggerService = new Google_Service_Blogger(...);
+ * $users = $bloggerService->users;
+ * </code>
+ */
+class Google_Service_Blogger_Resource_Users extends Google_Service_Resource
+{
+ /**
+ * Gets one user by ID. (users.get)
+ *
+ * @param string $userId The ID of the user to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_User
+ */
+ public function get($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Blogger_User");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/User.php
new file mode 100644
index 00000000..31abea38
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/User.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_User extends Google_Model
+{
+ public $about;
+ protected $blogsType = 'Google_Service_Blogger_UserBlogs';
+ protected $blogsDataType = '';
+ public $created;
+ public $displayName;
+ public $id;
+ public $kind;
+ protected $localeType = 'Google_Service_Blogger_UserLocale';
+ protected $localeDataType = '';
+ public $selfLink;
+ public $url;
+
+ public function setAbout($about)
+ {
+ $this->about = $about;
+ }
+ public function getAbout()
+ {
+ return $this->about;
+ }
+ public function setBlogs(Google_Service_Blogger_UserBlogs $blogs)
+ {
+ $this->blogs = $blogs;
+ }
+ public function getBlogs()
+ {
+ return $this->blogs;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocale(Google_Service_Blogger_UserLocale $locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserBlogs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserBlogs.php
new file mode 100644
index 00000000..d26dce0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserBlogs.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_UserBlogs extends Google_Model
+{
+ public $selfLink;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserLocale.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserLocale.php
new file mode 100644
index 00000000..11c7a9e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Blogger/UserLocale.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Blogger_UserLocale extends Google_Model
+{
+ public $country;
+ public $language;
+ public $variant;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setVariant($variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books.php
new file mode 100644
index 00000000..efef02b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books.php
@@ -0,0 +1,1508 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Books (v1).
+ *
+ * <p>
+ * Searches for books and manages your Google Books library.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/books/docs/v1/getting_started" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Books extends Google_Service
+{
+ /** Manage your books. */
+ const BOOKS =
+ "https://www.googleapis.com/auth/books";
+
+ public $bookshelves;
+ public $bookshelves_volumes;
+ public $cloudloading;
+ public $dictionary;
+ public $layers;
+ public $layers_annotationData;
+ public $layers_volumeAnnotations;
+ public $myconfig;
+ public $mylibrary_annotations;
+ public $mylibrary_bookshelves;
+ public $mylibrary_bookshelves_volumes;
+ public $mylibrary_readingpositions;
+ public $notification;
+ public $onboarding;
+ public $personalizedstream;
+ public $promooffer;
+ public $series;
+ public $series_membership;
+ public $volumes;
+ public $volumes_associated;
+ public $volumes_mybooks;
+ public $volumes_recommended;
+ public $volumes_useruploaded;
+
+ /**
+ * Constructs the internal representation of the Books service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'books/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'books';
+
+ $this->bookshelves = new Google_Service_Books_Resource_Bookshelves(
+ $this,
+ $this->serviceName,
+ 'bookshelves',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'users/{userId}/bookshelves/{shelf}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/{userId}/bookshelves',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->bookshelves_volumes = new Google_Service_Books_Resource_BookshelvesVolumes(
+ $this,
+ $this->serviceName,
+ 'volumes',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'users/{userId}/bookshelves/{shelf}/volumes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'showPreorders' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->cloudloading = new Google_Service_Books_Resource_Cloudloading(
+ $this,
+ $this->serviceName,
+ 'cloudloading',
+ array(
+ 'methods' => array(
+ 'addBook' => array(
+ 'path' => 'cloudloading/addBook',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'drive_document_id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'mime_type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'upload_client_token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'deleteBook' => array(
+ 'path' => 'cloudloading/deleteBook',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updateBook' => array(
+ 'path' => 'cloudloading/updateBook',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->dictionary = new Google_Service_Books_Resource_Dictionary(
+ $this,
+ $this->serviceName,
+ 'dictionary',
+ array(
+ 'methods' => array(
+ 'listOfflineMetadata' => array(
+ 'path' => 'dictionary/listOfflineMetadata',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'cpksver' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->layers = new Google_Service_Books_Resource_Layers(
+ $this,
+ $this->serviceName,
+ 'layers',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'volumes/{volumeId}/layersummary/{summaryId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'summaryId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'volumes/{volumeId}/layersummary',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->layers_annotationData = new Google_Service_Books_Resource_LayersAnnotationData(
+ $this,
+ $this->serviceName,
+ 'annotationData',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'layerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'annotationDataId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'allowWebDefinitions' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'h' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'scale' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'w' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'volumes/{volumeId}/layers/{layerId}/data',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'layerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'annotationDataId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'h' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'scale' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'w' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->layers_volumeAnnotations = new Google_Service_Books_Resource_LayersVolumeAnnotations(
+ $this,
+ $this->serviceName,
+ 'volumeAnnotations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'layerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'annotationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'volumes/{volumeId}/layers/{layerId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'layerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endOffset' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endPosition' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startOffset' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startPosition' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'volumeAnnotationsVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->myconfig = new Google_Service_Books_Resource_Myconfig(
+ $this,
+ $this->serviceName,
+ 'myconfig',
+ array(
+ 'methods' => array(
+ 'getUserSettings' => array(
+ 'path' => 'myconfig/getUserSettings',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'releaseDownloadAccess' => array(
+ 'path' => 'myconfig/releaseDownloadAccess',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'volumeIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ 'cpksver' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'requestAccess' => array(
+ 'path' => 'myconfig/requestAccess',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'nonce' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'cpksver' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'licenseTypes' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'syncVolumeLicenses' => array(
+ 'path' => 'myconfig/syncVolumeLicenses',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'nonce' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'cpksver' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'features' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'includeNonComicsSeries' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showPreorders' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'volumeIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'updateUserSettings' => array(
+ 'path' => 'myconfig/updateUserSettings',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->mylibrary_annotations = new Google_Service_Books_Resource_MylibraryAnnotations(
+ $this,
+ $this->serviceName,
+ 'annotations',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'mylibrary/annotations/{annotationId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'annotationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'mylibrary/annotations',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'country' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showOnlySummaryInResponse' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'mylibrary/annotations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'layerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'layerIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'summary' => array(
+ 'path' => 'mylibrary/annotations/summary',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'layerIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'mylibrary/annotations/{annotationId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'annotationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->mylibrary_bookshelves = new Google_Service_Books_Resource_MylibraryBookshelves(
+ $this,
+ $this->serviceName,
+ 'bookshelves',
+ array(
+ 'methods' => array(
+ 'addVolume' => array(
+ 'path' => 'mylibrary/bookshelves/{shelf}/addVolume',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reason' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'clearVolumes' => array(
+ 'path' => 'mylibrary/bookshelves/{shelf}/clearVolumes',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'mylibrary/bookshelves/{shelf}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'mylibrary/bookshelves',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'moveVolume' => array(
+ 'path' => 'mylibrary/bookshelves/{shelf}/moveVolume',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'volumePosition' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'removeVolume' => array(
+ 'path' => 'mylibrary/bookshelves/{shelf}/removeVolume',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reason' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->mylibrary_bookshelves_volumes = new Google_Service_Books_Resource_MylibraryBookshelvesVolumes(
+ $this,
+ $this->serviceName,
+ 'volumes',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'mylibrary/bookshelves/{shelf}/volumes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'shelf' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'country' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showPreorders' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->mylibrary_readingpositions = new Google_Service_Books_Resource_MylibraryReadingpositions(
+ $this,
+ $this->serviceName,
+ 'readingpositions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'mylibrary/readingpositions/{volumeId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setPosition' => array(
+ 'path' => 'mylibrary/readingpositions/{volumeId}/setPosition',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'timestamp' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'position' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'action' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'contentVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'deviceCookie' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->notification = new Google_Service_Books_Resource_Notification(
+ $this,
+ $this->serviceName,
+ 'notification',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'notification/get',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'notification_id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->onboarding = new Google_Service_Books_Resource_Onboarding(
+ $this,
+ $this->serviceName,
+ 'onboarding',
+ array(
+ 'methods' => array(
+ 'listCategories' => array(
+ 'path' => 'onboarding/listCategories',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listCategoryVolumes' => array(
+ 'path' => 'onboarding/listCategoryVolumes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'categoryId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxAllowedMaturityRating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->personalizedstream = new Google_Service_Books_Resource_Personalizedstream(
+ $this,
+ $this->serviceName,
+ 'personalizedstream',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'personalizedstream/get',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxAllowedMaturityRating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->promooffer = new Google_Service_Books_Resource_Promooffer(
+ $this,
+ $this->serviceName,
+ 'promooffer',
+ array(
+ 'methods' => array(
+ 'accept' => array(
+ 'path' => 'promooffer/accept',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'androidId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'device' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'manufacturer' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'model' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'offerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'product' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'serial' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'dismiss' => array(
+ 'path' => 'promooffer/dismiss',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'androidId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'device' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'manufacturer' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'model' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'offerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'product' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'serial' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'promooffer/get',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'androidId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'device' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'manufacturer' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'model' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'product' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'serial' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->series = new Google_Service_Books_Resource_Series(
+ $this,
+ $this->serviceName,
+ 'series',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'series/get',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'series_id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->series_membership = new Google_Service_Books_Resource_SeriesMembership(
+ $this,
+ $this->serviceName,
+ 'membership',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'series/membership/get',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'series_id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'page_size' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'page_token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->volumes = new Google_Service_Books_Resource_Volumes(
+ $this,
+ $this->serviceName,
+ 'volumes',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'volumes/{volumeId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'country' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeNonComicsSeries' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'partner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'user_library_consistent_read' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'volumes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'download' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'langRestrict' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'libraryRestrict' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxAllowedMaturityRating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'partner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'printType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showPreorders' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->volumes_associated = new Google_Service_Books_Resource_VolumesAssociated(
+ $this,
+ $this->serviceName,
+ 'associated',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'volumes/{volumeId}/associated',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'volumeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'association' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxAllowedMaturityRating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->volumes_mybooks = new Google_Service_Books_Resource_VolumesMybooks(
+ $this,
+ $this->serviceName,
+ 'mybooks',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'volumes/mybooks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'acquireMethod' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'country' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'processingState' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->volumes_recommended = new Google_Service_Books_Resource_VolumesRecommended(
+ $this,
+ $this->serviceName,
+ 'recommended',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'volumes/recommended',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxAllowedMaturityRating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'rate' => array(
+ 'path' => 'volumes/recommended/rate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'rating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->volumes_useruploaded = new Google_Service_Books_Resource_VolumesUseruploaded(
+ $this,
+ $this->serviceName,
+ 'useruploaded',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'volumes/useruploaded',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'processingState' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'volumeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotation.php
new file mode 100644
index 00000000..727c720a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotation.php
@@ -0,0 +1,178 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Annotation extends Google_Collection
+{
+ protected $collection_key = 'pageIds';
+ public $afterSelectedText;
+ public $beforeSelectedText;
+ protected $clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges';
+ protected $clientVersionRangesDataType = '';
+ public $created;
+ protected $currentVersionRangesType = 'Google_Service_Books_AnnotationCurrentVersionRanges';
+ protected $currentVersionRangesDataType = '';
+ public $data;
+ public $deleted;
+ public $highlightStyle;
+ public $id;
+ public $kind;
+ public $layerId;
+ protected $layerSummaryType = 'Google_Service_Books_AnnotationLayerSummary';
+ protected $layerSummaryDataType = '';
+ public $pageIds;
+ public $selectedText;
+ public $selfLink;
+ public $updated;
+ public $volumeId;
+
+ public function setAfterSelectedText($afterSelectedText)
+ {
+ $this->afterSelectedText = $afterSelectedText;
+ }
+ public function getAfterSelectedText()
+ {
+ return $this->afterSelectedText;
+ }
+ public function setBeforeSelectedText($beforeSelectedText)
+ {
+ $this->beforeSelectedText = $beforeSelectedText;
+ }
+ public function getBeforeSelectedText()
+ {
+ return $this->beforeSelectedText;
+ }
+ public function setClientVersionRanges(Google_Service_Books_AnnotationClientVersionRanges $clientVersionRanges)
+ {
+ $this->clientVersionRanges = $clientVersionRanges;
+ }
+ public function getClientVersionRanges()
+ {
+ return $this->clientVersionRanges;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setCurrentVersionRanges(Google_Service_Books_AnnotationCurrentVersionRanges $currentVersionRanges)
+ {
+ $this->currentVersionRanges = $currentVersionRanges;
+ }
+ public function getCurrentVersionRanges()
+ {
+ return $this->currentVersionRanges;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setHighlightStyle($highlightStyle)
+ {
+ $this->highlightStyle = $highlightStyle;
+ }
+ public function getHighlightStyle()
+ {
+ return $this->highlightStyle;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLayerId($layerId)
+ {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId()
+ {
+ return $this->layerId;
+ }
+ public function setLayerSummary(Google_Service_Books_AnnotationLayerSummary $layerSummary)
+ {
+ $this->layerSummary = $layerSummary;
+ }
+ public function getLayerSummary()
+ {
+ return $this->layerSummary;
+ }
+ public function setPageIds($pageIds)
+ {
+ $this->pageIds = $pageIds;
+ }
+ public function getPageIds()
+ {
+ return $this->pageIds;
+ }
+ public function setSelectedText($selectedText)
+ {
+ $this->selectedText = $selectedText;
+ }
+ public function getSelectedText()
+ {
+ return $this->selectedText;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationClientVersionRanges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationClientVersionRanges.php
new file mode 100644
index 00000000..7bcaf052
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationClientVersionRanges.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model
+{
+ protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $cfiRangeDataType = '';
+ public $contentVersion;
+ protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $gbImageRangeDataType = '';
+ protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $gbTextRangeDataType = '';
+ protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $imageCfiRangeDataType = '';
+
+ public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange)
+ {
+ $this->cfiRange = $cfiRange;
+ }
+ public function getCfiRange()
+ {
+ return $this->cfiRange;
+ }
+ public function setContentVersion($contentVersion)
+ {
+ $this->contentVersion = $contentVersion;
+ }
+ public function getContentVersion()
+ {
+ return $this->contentVersion;
+ }
+ public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange)
+ {
+ $this->gbImageRange = $gbImageRange;
+ }
+ public function getGbImageRange()
+ {
+ return $this->gbImageRange;
+ }
+ public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange)
+ {
+ $this->gbTextRange = $gbTextRange;
+ }
+ public function getGbTextRange()
+ {
+ return $this->gbTextRange;
+ }
+ public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange)
+ {
+ $this->imageCfiRange = $imageCfiRange;
+ }
+ public function getImageCfiRange()
+ {
+ return $this->imageCfiRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationCurrentVersionRanges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationCurrentVersionRanges.php
new file mode 100644
index 00000000..5a92c0c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationCurrentVersionRanges.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model
+{
+ protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $cfiRangeDataType = '';
+ public $contentVersion;
+ protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $gbImageRangeDataType = '';
+ protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $gbTextRangeDataType = '';
+ protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $imageCfiRangeDataType = '';
+
+ public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange)
+ {
+ $this->cfiRange = $cfiRange;
+ }
+ public function getCfiRange()
+ {
+ return $this->cfiRange;
+ }
+ public function setContentVersion($contentVersion)
+ {
+ $this->contentVersion = $contentVersion;
+ }
+ public function getContentVersion()
+ {
+ return $this->contentVersion;
+ }
+ public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange)
+ {
+ $this->gbImageRange = $gbImageRange;
+ }
+ public function getGbImageRange()
+ {
+ return $this->gbImageRange;
+ }
+ public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange)
+ {
+ $this->gbTextRange = $gbTextRange;
+ }
+ public function getGbTextRange()
+ {
+ return $this->gbTextRange;
+ }
+ public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange)
+ {
+ $this->imageCfiRange = $imageCfiRange;
+ }
+ public function getImageCfiRange()
+ {
+ return $this->imageCfiRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationLayerSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationLayerSummary.php
new file mode 100644
index 00000000..cfbe8f37
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationLayerSummary.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_AnnotationLayerSummary extends Google_Model
+{
+ public $allowedCharacterCount;
+ public $limitType;
+ public $remainingCharacterCount;
+
+ public function setAllowedCharacterCount($allowedCharacterCount)
+ {
+ $this->allowedCharacterCount = $allowedCharacterCount;
+ }
+ public function getAllowedCharacterCount()
+ {
+ return $this->allowedCharacterCount;
+ }
+ public function setLimitType($limitType)
+ {
+ $this->limitType = $limitType;
+ }
+ public function getLimitType()
+ {
+ return $this->limitType;
+ }
+ public function setRemainingCharacterCount($remainingCharacterCount)
+ {
+ $this->remainingCharacterCount = $remainingCharacterCount;
+ }
+ public function getRemainingCharacterCount()
+ {
+ return $this->remainingCharacterCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationdata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationdata.php
new file mode 100644
index 00000000..2287ba55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationdata.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Annotationdata extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "encodedData" => "encoded_data",
+ );
+ public $annotationType;
+ public $data;
+ public $encodedData;
+ public $id;
+ public $kind;
+ public $layerId;
+ public $selfLink;
+ public $updated;
+ public $volumeId;
+
+ public function setAnnotationType($annotationType)
+ {
+ $this->annotationType = $annotationType;
+ }
+ public function getAnnotationType()
+ {
+ return $this->annotationType;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setEncodedData($encodedData)
+ {
+ $this->encodedData = $encodedData;
+ }
+ public function getEncodedData()
+ {
+ return $this->encodedData;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLayerId($layerId)
+ {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId()
+ {
+ return $this->layerId;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotations.php
new file mode 100644
index 00000000..b57862d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotations.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Annotations extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_Annotation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummary.php
new file mode 100644
index 00000000..b9f39f6b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummary.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_AnnotationsSummary extends Google_Collection
+{
+ protected $collection_key = 'layers';
+ public $kind;
+ protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers';
+ protected $layersDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLayers($layers)
+ {
+ $this->layers = $layers;
+ }
+ public function getLayers()
+ {
+ return $this->layers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummaryLayers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummaryLayers.php
new file mode 100644
index 00000000..2c5d3c77
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/AnnotationsSummaryLayers.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model
+{
+ public $allowedCharacterCount;
+ public $layerId;
+ public $limitType;
+ public $remainingCharacterCount;
+ public $updated;
+
+ public function setAllowedCharacterCount($allowedCharacterCount)
+ {
+ $this->allowedCharacterCount = $allowedCharacterCount;
+ }
+ public function getAllowedCharacterCount()
+ {
+ return $this->allowedCharacterCount;
+ }
+ public function setLayerId($layerId)
+ {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId()
+ {
+ return $this->layerId;
+ }
+ public function setLimitType($limitType)
+ {
+ $this->limitType = $limitType;
+ }
+ public function getLimitType()
+ {
+ return $this->limitType;
+ }
+ public function setRemainingCharacterCount($remainingCharacterCount)
+ {
+ $this->remainingCharacterCount = $remainingCharacterCount;
+ }
+ public function getRemainingCharacterCount()
+ {
+ return $this->remainingCharacterCount;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationsdata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationsdata.php
new file mode 100644
index 00000000..e54607eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Annotationsdata.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Annotationsdata extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_Annotationdata';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksAnnotationsRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksAnnotationsRange.php
new file mode 100644
index 00000000..af5060df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksAnnotationsRange.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_BooksAnnotationsRange extends Google_Model
+{
+ public $endOffset;
+ public $endPosition;
+ public $startOffset;
+ public $startPosition;
+
+ public function setEndOffset($endOffset)
+ {
+ $this->endOffset = $endOffset;
+ }
+ public function getEndOffset()
+ {
+ return $this->endOffset;
+ }
+ public function setEndPosition($endPosition)
+ {
+ $this->endPosition = $endPosition;
+ }
+ public function getEndPosition()
+ {
+ return $this->endPosition;
+ }
+ public function setStartOffset($startOffset)
+ {
+ $this->startOffset = $startOffset;
+ }
+ public function getStartOffset()
+ {
+ return $this->startOffset;
+ }
+ public function setStartPosition($startPosition)
+ {
+ $this->startPosition = $startPosition;
+ }
+ public function getStartPosition()
+ {
+ return $this->startPosition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksCloudloadingResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksCloudloadingResource.php
new file mode 100644
index 00000000..cde35e49
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksCloudloadingResource.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_BooksCloudloadingResource extends Google_Model
+{
+ public $author;
+ public $processingState;
+ public $title;
+ public $volumeId;
+
+ public function setAuthor($author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setProcessingState($processingState)
+ {
+ $this->processingState = $processingState;
+ }
+ public function getProcessingState()
+ {
+ return $this->processingState;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksVolumesRecommendedRateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksVolumesRecommendedRateResponse.php
new file mode 100644
index 00000000..3bf3d137
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/BooksVolumesRecommendedRateResponse.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "consistencyToken" => "consistency_token",
+ );
+ public $consistencyToken;
+
+ public function setConsistencyToken($consistencyToken)
+ {
+ $this->consistencyToken = $consistencyToken;
+ }
+ public function getConsistencyToken()
+ {
+ return $this->consistencyToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelf.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelf.php
new file mode 100644
index 00000000..fee17066
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelf.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Bookshelf extends Google_Model
+{
+ public $access;
+ public $created;
+ public $description;
+ public $id;
+ public $kind;
+ public $selfLink;
+ public $title;
+ public $updated;
+ public $volumeCount;
+ public $volumesLastUpdated;
+
+ public function setAccess($access)
+ {
+ $this->access = $access;
+ }
+ public function getAccess()
+ {
+ return $this->access;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVolumeCount($volumeCount)
+ {
+ $this->volumeCount = $volumeCount;
+ }
+ public function getVolumeCount()
+ {
+ return $this->volumeCount;
+ }
+ public function setVolumesLastUpdated($volumesLastUpdated)
+ {
+ $this->volumesLastUpdated = $volumesLastUpdated;
+ }
+ public function getVolumesLastUpdated()
+ {
+ return $this->volumesLastUpdated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelves.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelves.php
new file mode 100644
index 00000000..0f7b06e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Bookshelves.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Bookshelves extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_Bookshelf';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Category.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Category.php
new file mode 100644
index 00000000..821d7b6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Category.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Category extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_CategoryItems';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/CategoryItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/CategoryItems.php
new file mode 100644
index 00000000..1603d89f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/CategoryItems.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_CategoryItems extends Google_Model
+{
+ public $badgeUrl;
+ public $categoryId;
+ public $name;
+
+ public function setBadgeUrl($badgeUrl)
+ {
+ $this->badgeUrl = $badgeUrl;
+ }
+ public function getBadgeUrl()
+ {
+ return $this->badgeUrl;
+ }
+ public function setCategoryId($categoryId)
+ {
+ $this->categoryId = $categoryId;
+ }
+ public function getCategoryId()
+ {
+ return $this->categoryId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ConcurrentAccessRestriction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ConcurrentAccessRestriction.php
new file mode 100644
index 00000000..5f614e4e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ConcurrentAccessRestriction.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model
+{
+ public $deviceAllowed;
+ public $kind;
+ public $maxConcurrentDevices;
+ public $message;
+ public $nonce;
+ public $reasonCode;
+ public $restricted;
+ public $signature;
+ public $source;
+ public $timeWindowSeconds;
+ public $volumeId;
+
+ public function setDeviceAllowed($deviceAllowed)
+ {
+ $this->deviceAllowed = $deviceAllowed;
+ }
+ public function getDeviceAllowed()
+ {
+ return $this->deviceAllowed;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxConcurrentDevices($maxConcurrentDevices)
+ {
+ $this->maxConcurrentDevices = $maxConcurrentDevices;
+ }
+ public function getMaxConcurrentDevices()
+ {
+ return $this->maxConcurrentDevices;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setNonce($nonce)
+ {
+ $this->nonce = $nonce;
+ }
+ public function getNonce()
+ {
+ return $this->nonce;
+ }
+ public function setReasonCode($reasonCode)
+ {
+ $this->reasonCode = $reasonCode;
+ }
+ public function getReasonCode()
+ {
+ return $this->reasonCode;
+ }
+ public function setRestricted($restricted)
+ {
+ $this->restricted = $restricted;
+ }
+ public function getRestricted()
+ {
+ return $this->restricted;
+ }
+ public function setSignature($signature)
+ {
+ $this->signature = $signature;
+ }
+ public function getSignature()
+ {
+ return $this->signature;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setTimeWindowSeconds($timeWindowSeconds)
+ {
+ $this->timeWindowSeconds = $timeWindowSeconds;
+ }
+ public function getTimeWindowSeconds()
+ {
+ return $this->timeWindowSeconds;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Dictlayerdata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Dictlayerdata.php
new file mode 100644
index 00000000..ac82cd19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Dictlayerdata.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Dictlayerdata extends Google_Model
+{
+ protected $commonType = 'Google_Service_Books_DictlayerdataCommon';
+ protected $commonDataType = '';
+ protected $dictType = 'Google_Service_Books_DictlayerdataDict';
+ protected $dictDataType = '';
+ public $kind;
+
+ public function setCommon(Google_Service_Books_DictlayerdataCommon $common)
+ {
+ $this->common = $common;
+ }
+ public function getCommon()
+ {
+ return $this->common;
+ }
+ public function setDict(Google_Service_Books_DictlayerdataDict $dict)
+ {
+ $this->dict = $dict;
+ }
+ public function getDict()
+ {
+ return $this->dict;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataCommon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataCommon.php
new file mode 100644
index 00000000..2ef54770
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataCommon.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataCommon extends Google_Model
+{
+ public $title;
+
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDict.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDict.php
new file mode 100644
index 00000000..43c10e75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDict.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDict extends Google_Collection
+{
+ protected $collection_key = 'words';
+ protected $sourceType = 'Google_Service_Books_DictlayerdataDictSource';
+ protected $sourceDataType = '';
+ protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords';
+ protected $wordsDataType = 'array';
+
+ public function setSource(Google_Service_Books_DictlayerdataDictSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setWords($words)
+ {
+ $this->words = $words;
+ }
+ public function getWords()
+ {
+ return $this->words;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictSource.php
new file mode 100644
index 00000000..3280b323
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictSource extends Google_Model
+{
+ public $attribution;
+ public $url;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWords.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWords.php
new file mode 100644
index 00000000..15734a1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWords.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWords extends Google_Collection
+{
+ protected $collection_key = 'senses';
+ protected $derivativesType = 'Google_Service_Books_DictlayerdataDictWordsDerivatives';
+ protected $derivativesDataType = 'array';
+ protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsExamples';
+ protected $examplesDataType = 'array';
+ protected $sensesType = 'Google_Service_Books_DictlayerdataDictWordsSenses';
+ protected $sensesDataType = 'array';
+ protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSource';
+ protected $sourceDataType = '';
+
+ public function setDerivatives($derivatives)
+ {
+ $this->derivatives = $derivatives;
+ }
+ public function getDerivatives()
+ {
+ return $this->derivatives;
+ }
+ public function setExamples($examples)
+ {
+ $this->examples = $examples;
+ }
+ public function getExamples()
+ {
+ return $this->examples;
+ }
+ public function setSenses($senses)
+ {
+ $this->senses = $senses;
+ }
+ public function getSenses()
+ {
+ return $this->senses;
+ }
+ public function setSource(Google_Service_Books_DictlayerdataDictWordsSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivatives.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivatives.php
new file mode 100644
index 00000000..f7a46615
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivatives.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model
+{
+ protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsDerivativesSource';
+ protected $sourceDataType = '';
+ public $text;
+
+ public function setSource(Google_Service_Books_DictlayerdataDictWordsDerivativesSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivativesSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivativesSource.php
new file mode 100644
index 00000000..8fbfa35d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsDerivativesSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model
+{
+ public $attribution;
+ public $url;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamples.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamples.php
new file mode 100644
index 00000000..5e9878ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamples.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model
+{
+ protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsExamplesSource';
+ protected $sourceDataType = '';
+ public $text;
+
+ public function setSource(Google_Service_Books_DictlayerdataDictWordsExamplesSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamplesSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamplesSource.php
new file mode 100644
index 00000000..b562e689
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsExamplesSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model
+{
+ public $attribution;
+ public $url;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSenses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSenses.php
new file mode 100644
index 00000000..cf6b54a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSenses.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection
+{
+ protected $collection_key = 'synonyms';
+ protected $conjugationsType = 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations';
+ protected $conjugationsDataType = 'array';
+ protected $definitionsType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions';
+ protected $definitionsDataType = 'array';
+ public $partOfSpeech;
+ public $pronunciation;
+ public $pronunciationUrl;
+ protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSource';
+ protected $sourceDataType = '';
+ public $syllabification;
+ protected $synonymsType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonyms';
+ protected $synonymsDataType = 'array';
+
+ public function setConjugations($conjugations)
+ {
+ $this->conjugations = $conjugations;
+ }
+ public function getConjugations()
+ {
+ return $this->conjugations;
+ }
+ public function setDefinitions($definitions)
+ {
+ $this->definitions = $definitions;
+ }
+ public function getDefinitions()
+ {
+ return $this->definitions;
+ }
+ public function setPartOfSpeech($partOfSpeech)
+ {
+ $this->partOfSpeech = $partOfSpeech;
+ }
+ public function getPartOfSpeech()
+ {
+ return $this->partOfSpeech;
+ }
+ public function setPronunciation($pronunciation)
+ {
+ $this->pronunciation = $pronunciation;
+ }
+ public function getPronunciation()
+ {
+ return $this->pronunciation;
+ }
+ public function setPronunciationUrl($pronunciationUrl)
+ {
+ $this->pronunciationUrl = $pronunciationUrl;
+ }
+ public function getPronunciationUrl()
+ {
+ return $this->pronunciationUrl;
+ }
+ public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setSyllabification($syllabification)
+ {
+ $this->syllabification = $syllabification;
+ }
+ public function getSyllabification()
+ {
+ return $this->syllabification;
+ }
+ public function setSynonyms($synonyms)
+ {
+ $this->synonyms = $synonyms;
+ }
+ public function getSynonyms()
+ {
+ return $this->synonyms;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesConjugations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesConjugations.php
new file mode 100644
index 00000000..ff548961
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesConjugations.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model
+{
+ public $type;
+ public $value;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitions.php
new file mode 100644
index 00000000..031c8527
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitions.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection
+{
+ protected $collection_key = 'examples';
+ public $definition;
+ protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples';
+ protected $examplesDataType = 'array';
+
+ public function setDefinition($definition)
+ {
+ $this->definition = $definition;
+ }
+ public function getDefinition()
+ {
+ return $this->definition;
+ }
+ public function setExamples($examples)
+ {
+ $this->examples = $examples;
+ }
+ public function getExamples()
+ {
+ return $this->examples;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamples.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamples.php
new file mode 100644
index 00000000..c1428086
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamples.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model
+{
+ protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource';
+ protected $sourceDataType = '';
+ public $text;
+
+ public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamplesSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamplesSource.php
new file mode 100644
index 00000000..cbae7867
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesDefinitionsExamplesSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model
+{
+ public $attribution;
+ public $url;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSource.php
new file mode 100644
index 00000000..e8789ca5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Model
+{
+ public $attribution;
+ public $url;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonyms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonyms.php
new file mode 100644
index 00000000..88589657
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonyms.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_Model
+{
+ protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource';
+ protected $sourceDataType = '';
+ public $text;
+
+ public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonymsSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonymsSource.php
new file mode 100644
index 00000000..8a5157b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSensesSynonymsSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model
+{
+ public $attribution;
+ public $url;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSource.php
new file mode 100644
index 00000000..b401a3b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DictlayerdataDictWordsSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model
+{
+ public $attribution;
+ public $url;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Discoveryclusters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Discoveryclusters.php
new file mode 100644
index 00000000..f69b78e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Discoveryclusters.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Discoveryclusters extends Google_Collection
+{
+ protected $collection_key = 'clusters';
+ protected $clustersType = 'Google_Service_Books_DiscoveryclustersClusters';
+ protected $clustersDataType = 'array';
+ public $kind;
+ public $totalClusters;
+
+ public function setClusters($clusters)
+ {
+ $this->clusters = $clusters;
+ }
+ public function getClusters()
+ {
+ return $this->clusters;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTotalClusters($totalClusters)
+ {
+ $this->totalClusters = $totalClusters;
+ }
+ public function getTotalClusters()
+ {
+ return $this->totalClusters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClusters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClusters.php
new file mode 100644
index 00000000..451abddf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClusters.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DiscoveryclustersClusters extends Google_Collection
+{
+ protected $collection_key = 'volumes';
+ protected $internal_gapi_mappings = array(
+ "bannerWithContentContainer" => "banner_with_content_container",
+ );
+ protected $bannerWithContentContainerType = 'Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer';
+ protected $bannerWithContentContainerDataType = '';
+ public $subTitle;
+ public $title;
+ public $totalVolumes;
+ public $uid;
+ protected $volumesType = 'Google_Service_Books_Volume';
+ protected $volumesDataType = 'array';
+
+ public function setBannerWithContentContainer(Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer $bannerWithContentContainer)
+ {
+ $this->bannerWithContentContainer = $bannerWithContentContainer;
+ }
+ public function getBannerWithContentContainer()
+ {
+ return $this->bannerWithContentContainer;
+ }
+ public function setSubTitle($subTitle)
+ {
+ $this->subTitle = $subTitle;
+ }
+ public function getSubTitle()
+ {
+ return $this->subTitle;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTotalVolumes($totalVolumes)
+ {
+ $this->totalVolumes = $totalVolumes;
+ }
+ public function getTotalVolumes()
+ {
+ return $this->totalVolumes;
+ }
+ public function setUid($uid)
+ {
+ $this->uid = $uid;
+ }
+ public function getUid()
+ {
+ return $this->uid;
+ }
+ public function setVolumes($volumes)
+ {
+ $this->volumes = $volumes;
+ }
+ public function getVolumes()
+ {
+ return $this->volumes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClustersBannerWithContentContainer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClustersBannerWithContentContainer.php
new file mode 100644
index 00000000..93373e5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DiscoveryclustersClustersBannerWithContentContainer.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer extends Google_Model
+{
+ public $fillColorArgb;
+ public $imageUrl;
+ public $maskColorArgb;
+ public $moreButtonText;
+ public $moreButtonUrl;
+ public $textColorArgb;
+
+ public function setFillColorArgb($fillColorArgb)
+ {
+ $this->fillColorArgb = $fillColorArgb;
+ }
+ public function getFillColorArgb()
+ {
+ return $this->fillColorArgb;
+ }
+ public function setImageUrl($imageUrl)
+ {
+ $this->imageUrl = $imageUrl;
+ }
+ public function getImageUrl()
+ {
+ return $this->imageUrl;
+ }
+ public function setMaskColorArgb($maskColorArgb)
+ {
+ $this->maskColorArgb = $maskColorArgb;
+ }
+ public function getMaskColorArgb()
+ {
+ return $this->maskColorArgb;
+ }
+ public function setMoreButtonText($moreButtonText)
+ {
+ $this->moreButtonText = $moreButtonText;
+ }
+ public function getMoreButtonText()
+ {
+ return $this->moreButtonText;
+ }
+ public function setMoreButtonUrl($moreButtonUrl)
+ {
+ $this->moreButtonUrl = $moreButtonUrl;
+ }
+ public function getMoreButtonUrl()
+ {
+ return $this->moreButtonUrl;
+ }
+ public function setTextColorArgb($textColorArgb)
+ {
+ $this->textColorArgb = $textColorArgb;
+ }
+ public function getTextColorArgb()
+ {
+ return $this->textColorArgb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccessRestriction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccessRestriction.php
new file mode 100644
index 00000000..d5b2e8c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccessRestriction.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DownloadAccessRestriction extends Google_Model
+{
+ public $deviceAllowed;
+ public $downloadsAcquired;
+ public $justAcquired;
+ public $kind;
+ public $maxDownloadDevices;
+ public $message;
+ public $nonce;
+ public $reasonCode;
+ public $restricted;
+ public $signature;
+ public $source;
+ public $volumeId;
+
+ public function setDeviceAllowed($deviceAllowed)
+ {
+ $this->deviceAllowed = $deviceAllowed;
+ }
+ public function getDeviceAllowed()
+ {
+ return $this->deviceAllowed;
+ }
+ public function setDownloadsAcquired($downloadsAcquired)
+ {
+ $this->downloadsAcquired = $downloadsAcquired;
+ }
+ public function getDownloadsAcquired()
+ {
+ return $this->downloadsAcquired;
+ }
+ public function setJustAcquired($justAcquired)
+ {
+ $this->justAcquired = $justAcquired;
+ }
+ public function getJustAcquired()
+ {
+ return $this->justAcquired;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxDownloadDevices($maxDownloadDevices)
+ {
+ $this->maxDownloadDevices = $maxDownloadDevices;
+ }
+ public function getMaxDownloadDevices()
+ {
+ return $this->maxDownloadDevices;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setNonce($nonce)
+ {
+ $this->nonce = $nonce;
+ }
+ public function getNonce()
+ {
+ return $this->nonce;
+ }
+ public function setReasonCode($reasonCode)
+ {
+ $this->reasonCode = $reasonCode;
+ }
+ public function getReasonCode()
+ {
+ return $this->reasonCode;
+ }
+ public function setRestricted($restricted)
+ {
+ $this->restricted = $restricted;
+ }
+ public function getRestricted()
+ {
+ return $this->restricted;
+ }
+ public function setSignature($signature)
+ {
+ $this->signature = $signature;
+ }
+ public function getSignature()
+ {
+ return $this->signature;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccesses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccesses.php
new file mode 100644
index 00000000..78bbe26f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/DownloadAccesses.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_DownloadAccesses extends Google_Collection
+{
+ protected $collection_key = 'downloadAccessList';
+ protected $downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction';
+ protected $downloadAccessListDataType = 'array';
+ public $kind;
+
+ public function setDownloadAccessList($downloadAccessList)
+ {
+ $this->downloadAccessList = $downloadAccessList;
+ }
+ public function getDownloadAccessList()
+ {
+ return $this->downloadAccessList;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Geolayerdata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Geolayerdata.php
new file mode 100644
index 00000000..c9b58df5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Geolayerdata.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Geolayerdata extends Google_Model
+{
+ protected $commonType = 'Google_Service_Books_GeolayerdataCommon';
+ protected $commonDataType = '';
+ protected $geoType = 'Google_Service_Books_GeolayerdataGeo';
+ protected $geoDataType = '';
+ public $kind;
+
+ public function setCommon(Google_Service_Books_GeolayerdataCommon $common)
+ {
+ $this->common = $common;
+ }
+ public function getCommon()
+ {
+ return $this->common;
+ }
+ public function setGeo(Google_Service_Books_GeolayerdataGeo $geo)
+ {
+ $this->geo = $geo;
+ }
+ public function getGeo()
+ {
+ return $this->geo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataCommon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataCommon.php
new file mode 100644
index 00000000..0af63d59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataCommon.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_GeolayerdataCommon extends Google_Model
+{
+ public $lang;
+ public $previewImageUrl;
+ public $snippet;
+ public $snippetUrl;
+ public $title;
+
+ public function setLang($lang)
+ {
+ $this->lang = $lang;
+ }
+ public function getLang()
+ {
+ return $this->lang;
+ }
+ public function setPreviewImageUrl($previewImageUrl)
+ {
+ $this->previewImageUrl = $previewImageUrl;
+ }
+ public function getPreviewImageUrl()
+ {
+ return $this->previewImageUrl;
+ }
+ public function setSnippet($snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setSnippetUrl($snippetUrl)
+ {
+ $this->snippetUrl = $snippetUrl;
+ }
+ public function getSnippetUrl()
+ {
+ return $this->snippetUrl;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeo.php
new file mode 100644
index 00000000..13aa2984
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeo.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_GeolayerdataGeo extends Google_Collection
+{
+ protected $collection_key = 'boundary';
+ protected $boundaryType = 'Google_Service_Books_GeolayerdataGeoBoundary';
+ protected $boundaryDataType = 'array';
+ public $cachePolicy;
+ public $countryCode;
+ public $latitude;
+ public $longitude;
+ public $mapType;
+ protected $viewportType = 'Google_Service_Books_GeolayerdataGeoViewport';
+ protected $viewportDataType = '';
+ public $zoom;
+
+ public function setBoundary($boundary)
+ {
+ $this->boundary = $boundary;
+ }
+ public function getBoundary()
+ {
+ return $this->boundary;
+ }
+ public function setCachePolicy($cachePolicy)
+ {
+ $this->cachePolicy = $cachePolicy;
+ }
+ public function getCachePolicy()
+ {
+ return $this->cachePolicy;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+ public function setMapType($mapType)
+ {
+ $this->mapType = $mapType;
+ }
+ public function getMapType()
+ {
+ return $this->mapType;
+ }
+ public function setViewport(Google_Service_Books_GeolayerdataGeoViewport $viewport)
+ {
+ $this->viewport = $viewport;
+ }
+ public function getViewport()
+ {
+ return $this->viewport;
+ }
+ public function setZoom($zoom)
+ {
+ $this->zoom = $zoom;
+ }
+ public function getZoom()
+ {
+ return $this->zoom;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoBoundary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoBoundary.php
new file mode 100644
index 00000000..f72610fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoBoundary.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewport.php
new file mode 100644
index 00000000..ec95fd2e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewport.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model
+{
+ protected $hiType = 'Google_Service_Books_GeolayerdataGeoViewportHi';
+ protected $hiDataType = '';
+ protected $loType = 'Google_Service_Books_GeolayerdataGeoViewportLo';
+ protected $loDataType = '';
+
+ public function setHi(Google_Service_Books_GeolayerdataGeoViewportHi $hi)
+ {
+ $this->hi = $hi;
+ }
+ public function getHi()
+ {
+ return $this->hi;
+ }
+ public function setLo(Google_Service_Books_GeolayerdataGeoViewportLo $lo)
+ {
+ $this->lo = $lo;
+ }
+ public function getLo()
+ {
+ return $this->lo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportHi.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportHi.php
new file mode 100644
index 00000000..a70b5059
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportHi.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportLo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportLo.php
new file mode 100644
index 00000000..53ac070d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/GeolayerdataGeoViewportLo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummaries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummaries.php
new file mode 100644
index 00000000..ee215018
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummaries.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Layersummaries extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_Layersummary';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummary.php
new file mode 100644
index 00000000..dc84696e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Layersummary.php
@@ -0,0 +1,139 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Layersummary extends Google_Collection
+{
+ protected $collection_key = 'annotationTypes';
+ public $annotationCount;
+ public $annotationTypes;
+ public $annotationsDataLink;
+ public $annotationsLink;
+ public $contentVersion;
+ public $dataCount;
+ public $id;
+ public $kind;
+ public $layerId;
+ public $selfLink;
+ public $updated;
+ public $volumeAnnotationsVersion;
+ public $volumeId;
+
+ public function setAnnotationCount($annotationCount)
+ {
+ $this->annotationCount = $annotationCount;
+ }
+ public function getAnnotationCount()
+ {
+ return $this->annotationCount;
+ }
+ public function setAnnotationTypes($annotationTypes)
+ {
+ $this->annotationTypes = $annotationTypes;
+ }
+ public function getAnnotationTypes()
+ {
+ return $this->annotationTypes;
+ }
+ public function setAnnotationsDataLink($annotationsDataLink)
+ {
+ $this->annotationsDataLink = $annotationsDataLink;
+ }
+ public function getAnnotationsDataLink()
+ {
+ return $this->annotationsDataLink;
+ }
+ public function setAnnotationsLink($annotationsLink)
+ {
+ $this->annotationsLink = $annotationsLink;
+ }
+ public function getAnnotationsLink()
+ {
+ return $this->annotationsLink;
+ }
+ public function setContentVersion($contentVersion)
+ {
+ $this->contentVersion = $contentVersion;
+ }
+ public function getContentVersion()
+ {
+ return $this->contentVersion;
+ }
+ public function setDataCount($dataCount)
+ {
+ $this->dataCount = $dataCount;
+ }
+ public function getDataCount()
+ {
+ return $this->dataCount;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLayerId($layerId)
+ {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId()
+ {
+ return $this->layerId;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVolumeAnnotationsVersion($volumeAnnotationsVersion)
+ {
+ $this->volumeAnnotationsVersion = $volumeAnnotationsVersion;
+ }
+ public function getVolumeAnnotationsVersion()
+ {
+ return $this->volumeAnnotationsVersion;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Metadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Metadata.php
new file mode 100644
index 00000000..7f9688ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Metadata.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Metadata extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_MetadataItems';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/MetadataItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/MetadataItems.php
new file mode 100644
index 00000000..67a48e3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/MetadataItems.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_MetadataItems extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "downloadUrl" => "download_url",
+ "encryptedKey" => "encrypted_key",
+ );
+ public $downloadUrl;
+ public $encryptedKey;
+ public $language;
+ public $size;
+ public $version;
+
+ public function setDownloadUrl($downloadUrl)
+ {
+ $this->downloadUrl = $downloadUrl;
+ }
+ public function getDownloadUrl()
+ {
+ return $this->downloadUrl;
+ }
+ public function setEncryptedKey($encryptedKey)
+ {
+ $this->encryptedKey = $encryptedKey;
+ }
+ public function getEncryptedKey()
+ {
+ return $this->encryptedKey;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Notification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Notification.php
new file mode 100644
index 00000000..54eca0ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Notification.php
@@ -0,0 +1,156 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Notification extends Google_Collection
+{
+ protected $collection_key = 'crmExperimentIds';
+ protected $internal_gapi_mappings = array(
+ "docId" => "doc_id",
+ "docType" => "doc_type",
+ "dontShowNotification" => "dont_show_notification",
+ "notificationType" => "notification_type",
+ "pcampaignId" => "pcampaign_id",
+ "showNotificationSettingsAction" => "show_notification_settings_action",
+ );
+ public $body;
+ public $crmExperimentIds;
+ public $docId;
+ public $docType;
+ public $dontShowNotification;
+ public $iconUrl;
+ public $kind;
+ public $notificationGroup;
+ public $notificationType;
+ public $pcampaignId;
+ public $reason;
+ public $showNotificationSettingsAction;
+ public $targetUrl;
+ public $title;
+
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setCrmExperimentIds($crmExperimentIds)
+ {
+ $this->crmExperimentIds = $crmExperimentIds;
+ }
+ public function getCrmExperimentIds()
+ {
+ return $this->crmExperimentIds;
+ }
+ public function setDocId($docId)
+ {
+ $this->docId = $docId;
+ }
+ public function getDocId()
+ {
+ return $this->docId;
+ }
+ public function setDocType($docType)
+ {
+ $this->docType = $docType;
+ }
+ public function getDocType()
+ {
+ return $this->docType;
+ }
+ public function setDontShowNotification($dontShowNotification)
+ {
+ $this->dontShowNotification = $dontShowNotification;
+ }
+ public function getDontShowNotification()
+ {
+ return $this->dontShowNotification;
+ }
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNotificationGroup($notificationGroup)
+ {
+ $this->notificationGroup = $notificationGroup;
+ }
+ public function getNotificationGroup()
+ {
+ return $this->notificationGroup;
+ }
+ public function setNotificationType($notificationType)
+ {
+ $this->notificationType = $notificationType;
+ }
+ public function getNotificationType()
+ {
+ return $this->notificationType;
+ }
+ public function setPcampaignId($pcampaignId)
+ {
+ $this->pcampaignId = $pcampaignId;
+ }
+ public function getPcampaignId()
+ {
+ return $this->pcampaignId;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setShowNotificationSettingsAction($showNotificationSettingsAction)
+ {
+ $this->showNotificationSettingsAction = $showNotificationSettingsAction;
+ }
+ public function getShowNotificationSettingsAction()
+ {
+ return $this->showNotificationSettingsAction;
+ }
+ public function setTargetUrl($targetUrl)
+ {
+ $this->targetUrl = $targetUrl;
+ }
+ public function getTargetUrl()
+ {
+ return $this->targetUrl;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Offers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Offers.php
new file mode 100644
index 00000000..0910f0f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Offers.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Offers extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_OffersItems';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItems.php
new file mode 100644
index 00000000..9d70ff51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItems.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_OffersItems extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $artUrl;
+ public $gservicesKey;
+ public $id;
+ protected $itemsType = 'Google_Service_Books_OffersItemsItems';
+ protected $itemsDataType = 'array';
+
+ public function setArtUrl($artUrl)
+ {
+ $this->artUrl = $artUrl;
+ }
+ public function getArtUrl()
+ {
+ return $this->artUrl;
+ }
+ public function setGservicesKey($gservicesKey)
+ {
+ $this->gservicesKey = $gservicesKey;
+ }
+ public function getGservicesKey()
+ {
+ return $this->gservicesKey;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItemsItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItemsItems.php
new file mode 100644
index 00000000..23a041c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/OffersItemsItems.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_OffersItemsItems extends Google_Model
+{
+ public $author;
+ public $canonicalVolumeLink;
+ public $coverUrl;
+ public $description;
+ public $title;
+ public $volumeId;
+
+ public function setAuthor($author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setCanonicalVolumeLink($canonicalVolumeLink)
+ {
+ $this->canonicalVolumeLink = $canonicalVolumeLink;
+ }
+ public function getCanonicalVolumeLink()
+ {
+ return $this->canonicalVolumeLink;
+ }
+ public function setCoverUrl($coverUrl)
+ {
+ $this->coverUrl = $coverUrl;
+ }
+ public function getCoverUrl()
+ {
+ return $this->coverUrl;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReadingPosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReadingPosition.php
new file mode 100644
index 00000000..53b3330f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReadingPosition.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_ReadingPosition extends Google_Model
+{
+ public $epubCfiPosition;
+ public $gbImagePosition;
+ public $gbTextPosition;
+ public $kind;
+ public $pdfPosition;
+ public $updated;
+ public $volumeId;
+
+ public function setEpubCfiPosition($epubCfiPosition)
+ {
+ $this->epubCfiPosition = $epubCfiPosition;
+ }
+ public function getEpubCfiPosition()
+ {
+ return $this->epubCfiPosition;
+ }
+ public function setGbImagePosition($gbImagePosition)
+ {
+ $this->gbImagePosition = $gbImagePosition;
+ }
+ public function getGbImagePosition()
+ {
+ return $this->gbImagePosition;
+ }
+ public function setGbTextPosition($gbTextPosition)
+ {
+ $this->gbTextPosition = $gbTextPosition;
+ }
+ public function getGbTextPosition()
+ {
+ return $this->gbTextPosition;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPdfPosition($pdfPosition)
+ {
+ $this->pdfPosition = $pdfPosition;
+ }
+ public function getPdfPosition()
+ {
+ return $this->pdfPosition;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/RequestAccess.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/RequestAccess.php
new file mode 100644
index 00000000..4a903ae2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/RequestAccess.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_RequestAccess extends Google_Model
+{
+ protected $concurrentAccessType = 'Google_Service_Books_ConcurrentAccessRestriction';
+ protected $concurrentAccessDataType = '';
+ protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction';
+ protected $downloadAccessDataType = '';
+ public $kind;
+
+ public function setConcurrentAccess(Google_Service_Books_ConcurrentAccessRestriction $concurrentAccess)
+ {
+ $this->concurrentAccess = $concurrentAccess;
+ }
+ public function getConcurrentAccess()
+ {
+ return $this->concurrentAccess;
+ }
+ public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess)
+ {
+ $this->downloadAccess = $downloadAccess;
+ }
+ public function getDownloadAccess()
+ {
+ return $this->downloadAccess;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Bookshelves.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Bookshelves.php
new file mode 100644
index 00000000..38c7d29a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Bookshelves.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "bookshelves" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $bookshelves = $booksService->bookshelves;
+ * </code>
+ */
+class Google_Service_Books_Resource_Bookshelves extends Google_Service_Resource
+{
+ /**
+ * Retrieves metadata for a specific bookshelf for the specified user.
+ * (bookshelves.get)
+ *
+ * @param string $userId ID of user for whom to retrieve bookshelves.
+ * @param string $shelf ID of bookshelf to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Bookshelf
+ */
+ public function get($userId, $shelf, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'shelf' => $shelf);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Bookshelf");
+ }
+ /**
+ * Retrieves a list of public bookshelves for the specified user.
+ * (bookshelves.listBookshelves)
+ *
+ * @param string $userId ID of user for whom to retrieve bookshelves.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Bookshelves
+ */
+ public function listBookshelves($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Bookshelves");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/BookshelvesVolumes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/BookshelvesVolumes.php
new file mode 100644
index 00000000..91949468
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/BookshelvesVolumes.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "volumes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $volumes = $booksService->volumes;
+ * </code>
+ */
+class Google_Service_Books_Resource_BookshelvesVolumes extends Google_Service_Resource
+{
+ /**
+ * Retrieves volumes in a specific bookshelf for the specified user.
+ * (volumes.listBookshelvesVolumes)
+ *
+ * @param string $userId ID of user for whom to retrieve bookshelf volumes.
+ * @param string $shelf ID of bookshelf to retrieve volumes.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults
+ * to false.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string startIndex Index of the first element to return (starts at
+ * 0)
+ * @return Google_Service_Books_Volumes
+ */
+ public function listBookshelvesVolumes($userId, $shelf, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'shelf' => $shelf);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumes");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Cloudloading.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Cloudloading.php
new file mode 100644
index 00000000..a2d6865c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Cloudloading.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "cloudloading" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $cloudloading = $booksService->cloudloading;
+ * </code>
+ */
+class Google_Service_Books_Resource_Cloudloading extends Google_Service_Resource
+{
+ /**
+ * (cloudloading.addBook)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string drive_document_id A drive document id. The
+ * upload_client_token must not be set.
+ * @opt_param string mime_type The document MIME type. It can be set only if the
+ * drive_document_id is set.
+ * @opt_param string name The document name. It can be set only if the
+ * drive_document_id is set.
+ * @opt_param string upload_client_token
+ * @return Google_Service_Books_BooksCloudloadingResource
+ */
+ public function addBook($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('addBook', array($params), "Google_Service_Books_BooksCloudloadingResource");
+ }
+ /**
+ * Remove the book and its contents (cloudloading.deleteBook)
+ *
+ * @param string $volumeId The id of the book to be removed.
+ * @param array $optParams Optional parameters.
+ */
+ public function deleteBook($volumeId, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteBook', array($params));
+ }
+ /**
+ * (cloudloading.updateBook)
+ *
+ * @param Google_Service_Books_BooksCloudloadingResource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Books_BooksCloudloadingResource
+ */
+ public function updateBook(Google_Service_Books_BooksCloudloadingResource $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateBook', array($params), "Google_Service_Books_BooksCloudloadingResource");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Dictionary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Dictionary.php
new file mode 100644
index 00000000..997f2781
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Dictionary.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dictionary" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $dictionary = $booksService->dictionary;
+ * </code>
+ */
+class Google_Service_Books_Resource_Dictionary extends Google_Service_Resource
+{
+ /**
+ * Returns a list of offline dictionary metadata available
+ * (dictionary.listOfflineMetadata)
+ *
+ * @param string $cpksver The device/version ID from which to request the data.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Books_Metadata
+ */
+ public function listOfflineMetadata($cpksver, $optParams = array())
+ {
+ $params = array('cpksver' => $cpksver);
+ $params = array_merge($params, $optParams);
+ return $this->call('listOfflineMetadata', array($params), "Google_Service_Books_Metadata");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Layers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Layers.php
new file mode 100644
index 00000000..3b93e8d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Layers.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "layers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $layers = $booksService->layers;
+ * </code>
+ */
+class Google_Service_Books_Resource_Layers extends Google_Service_Resource
+{
+ /**
+ * Gets the layer summary for a volume. (layers.get)
+ *
+ * @param string $volumeId The volume to retrieve layers for.
+ * @param string $summaryId The ID for the layer to get the summary for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string contentVersion The content version for the requested
+ * volume.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Layersummary
+ */
+ public function get($volumeId, $summaryId, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Layersummary");
+ }
+ /**
+ * List the layer summaries for a volume. (layers.listLayers)
+ *
+ * @param string $volumeId The volume to retrieve layers for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string contentVersion The content version for the requested
+ * volume.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * page.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Layersummaries
+ */
+ public function listLayers($volumeId, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Layersummaries");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersAnnotationData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersAnnotationData.php
new file mode 100644
index 00000000..3f04cb68
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersAnnotationData.php
@@ -0,0 +1,90 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "annotationData" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $annotationData = $booksService->annotationData;
+ * </code>
+ */
+class Google_Service_Books_Resource_LayersAnnotationData extends Google_Service_Resource
+{
+ /**
+ * Gets the annotation data. (annotationData.get)
+ *
+ * @param string $volumeId The volume to retrieve annotations for.
+ * @param string $layerId The ID for the layer to get the annotations.
+ * @param string $annotationDataId The ID of the annotation data to retrieve.
+ * @param string $contentVersion The content version for the volume you are
+ * trying to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool allowWebDefinitions For the dictionary layer. Whether or not
+ * to allow web definitions.
+ * @opt_param int h The requested pixel height for any images. If height is
+ * provided width must also be provided.
+ * @opt_param string locale The locale information for the data. ISO-639-1
+ * language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param int scale The requested scale for the image.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param int w The requested pixel width for any images. If width is
+ * provided height must also be provided.
+ * @return Google_Service_Books_Annotationdata
+ */
+ public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Annotationdata");
+ }
+ /**
+ * Gets the annotation data for a volume and layer.
+ * (annotationData.listLayersAnnotationData)
+ *
+ * @param string $volumeId The volume to retrieve annotation data for.
+ * @param string $layerId The ID for the layer to get the annotation data.
+ * @param string $contentVersion The content version for the requested volume.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string annotationDataId The list of Annotation Data Ids to
+ * retrieve. Pagination is ignored if this is set.
+ * @opt_param int h The requested pixel height for any images. If height is
+ * provided width must also be provided.
+ * @opt_param string locale The locale information for the data. ISO-639-1
+ * language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * page.
+ * @opt_param int scale The requested scale for the image.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated
+ * prior to this timestamp (exclusive).
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated
+ * since this timestamp (inclusive).
+ * @opt_param int w The requested pixel width for any images. If width is
+ * provided height must also be provided.
+ * @return Google_Service_Books_Annotationsdata
+ */
+ public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Annotationsdata");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersVolumeAnnotations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersVolumeAnnotations.php
new file mode 100644
index 00000000..eef4ed83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/LayersVolumeAnnotations.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "volumeAnnotations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $volumeAnnotations = $booksService->volumeAnnotations;
+ * </code>
+ */
+class Google_Service_Books_Resource_LayersVolumeAnnotations extends Google_Service_Resource
+{
+ /**
+ * Gets the volume annotation. (volumeAnnotations.get)
+ *
+ * @param string $volumeId The volume to retrieve annotations for.
+ * @param string $layerId The ID for the layer to get the annotations.
+ * @param string $annotationId The ID of the volume annotation to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale The locale information for the data. ISO-639-1
+ * language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Volumeannotation
+ */
+ public function get($volumeId, $layerId, $annotationId, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Volumeannotation");
+ }
+ /**
+ * Gets the volume annotations for a volume and layer.
+ * (volumeAnnotations.listLayersVolumeAnnotations)
+ *
+ * @param string $volumeId The volume to retrieve annotations for.
+ * @param string $layerId The ID for the layer to get the annotations.
+ * @param string $contentVersion The content version for the requested volume.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endOffset The end offset to end retrieving data from.
+ * @opt_param string endPosition The end position to end retrieving data from.
+ * @opt_param string locale The locale information for the data. ISO-639-1
+ * language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * page.
+ * @opt_param bool showDeleted Set to true to return deleted annotations.
+ * updatedMin must be in the request to use this. Defaults to false.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string startOffset The start offset to start retrieving data from.
+ * @opt_param string startPosition The start position to start retrieving data
+ * from.
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated
+ * prior to this timestamp (exclusive).
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated
+ * since this timestamp (inclusive).
+ * @opt_param string volumeAnnotationsVersion The version of the volume
+ * annotations that you are requesting.
+ * @return Google_Service_Books_Volumeannotations
+ */
+ public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumeannotations");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Myconfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Myconfig.php
new file mode 100644
index 00000000..afe93d7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Myconfig.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "myconfig" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $myconfig = $booksService->myconfig;
+ * </code>
+ */
+class Google_Service_Books_Resource_Myconfig extends Google_Service_Resource
+{
+ /**
+ * Gets the current settings for the user. (myconfig.getUserSettings)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Books_Usersettings
+ */
+ public function getUserSettings($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getUserSettings', array($params), "Google_Service_Books_Usersettings");
+ }
+ /**
+ * Release downloaded content access restriction.
+ * (myconfig.releaseDownloadAccess)
+ *
+ * @param string|array $volumeIds The volume(s) to release restrictions for.
+ * @param string $cpksver The device/version ID from which to release the
+ * restriction.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message
+ * localization, i.e. en_US.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_DownloadAccesses
+ */
+ public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array())
+ {
+ $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
+ $params = array_merge($params, $optParams);
+ return $this->call('releaseDownloadAccess', array($params), "Google_Service_Books_DownloadAccesses");
+ }
+ /**
+ * Request concurrent and download access restrictions. (myconfig.requestAccess)
+ *
+ * @param string $source String to identify the originator of this request.
+ * @param string $volumeId The volume to request concurrent/download
+ * restrictions for.
+ * @param string $nonce The client nonce value.
+ * @param string $cpksver The device/version ID from which to request the
+ * restrictions.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string licenseTypes The type of access license to request. If not
+ * specified, the default is BOTH.
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message
+ * localization, i.e. en_US.
+ * @return Google_Service_Books_RequestAccess
+ */
+ public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array())
+ {
+ $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
+ $params = array_merge($params, $optParams);
+ return $this->call('requestAccess', array($params), "Google_Service_Books_RequestAccess");
+ }
+ /**
+ * Request downloaded content access for specified volumes on the My eBooks
+ * shelf. (myconfig.syncVolumeLicenses)
+ *
+ * @param string $source String to identify the originator of this request.
+ * @param string $nonce The client nonce value.
+ * @param string $cpksver The device/version ID from which to release the
+ * restriction.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string features List of features supported by the client, i.e.,
+ * 'RENTALS'
+ * @opt_param bool includeNonComicsSeries Set to true to include non-comics
+ * series. Defaults to false.
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message
+ * localization, i.e. en_US.
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults
+ * to false.
+ * @opt_param string volumeIds The volume(s) to request download restrictions
+ * for.
+ * @return Google_Service_Books_Volumes
+ */
+ public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array())
+ {
+ $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
+ $params = array_merge($params, $optParams);
+ return $this->call('syncVolumeLicenses', array($params), "Google_Service_Books_Volumes");
+ }
+ /**
+ * Sets the settings for the user. If a sub-object is specified, it will
+ * overwrite the existing sub-object stored in the server. Unspecified sub-
+ * objects will retain the existing value. (myconfig.updateUserSettings)
+ *
+ * @param Google_Service_Books_Usersettings $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Books_Usersettings
+ */
+ public function updateUserSettings(Google_Service_Books_Usersettings $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateUserSettings', array($params), "Google_Service_Books_Usersettings");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Mylibrary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Mylibrary.php
new file mode 100644
index 00000000..5c98fce7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Mylibrary.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mylibrary" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $mylibrary = $booksService->mylibrary;
+ * </code>
+ */
+class Google_Service_Books_Resource_Mylibrary extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryAnnotations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryAnnotations.php
new file mode 100644
index 00000000..67cdde37
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryAnnotations.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "annotations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $annotations = $booksService->annotations;
+ * </code>
+ */
+class Google_Service_Books_Resource_MylibraryAnnotations extends Google_Service_Resource
+{
+ /**
+ * Deletes an annotation. (annotations.delete)
+ *
+ * @param string $annotationId The ID for the annotation to delete.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function delete($annotationId, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Inserts a new annotation. (annotations.insert)
+ *
+ * @param Google_Service_Books_Annotation $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param bool showOnlySummaryInResponse Requests that only the summary of
+ * the specified layer be provided in the response.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Annotation
+ */
+ public function insert(Google_Service_Books_Annotation $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Books_Annotation");
+ }
+ /**
+ * Retrieves a list of annotations, possibly filtered.
+ * (annotations.listMylibraryAnnotations)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string contentVersion The content version for the requested
+ * volume.
+ * @opt_param string layerId The layer ID to limit annotation by.
+ * @opt_param string layerIds The layer ID(s) to limit annotation by.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * page.
+ * @opt_param bool showDeleted Set to true to return deleted annotations.
+ * updatedMin must be in the request to use this. Defaults to false.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated
+ * prior to this timestamp (exclusive).
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated
+ * since this timestamp (inclusive).
+ * @opt_param string volumeId The volume to restrict annotations to.
+ * @return Google_Service_Books_Annotations
+ */
+ public function listMylibraryAnnotations($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Annotations");
+ }
+ /**
+ * Gets the summary of specified layers. (annotations.summary)
+ *
+ * @param string|array $layerIds Array of layer IDs to get the summary for.
+ * @param string $volumeId Volume id to get the summary for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Books_AnnotationsSummary
+ */
+ public function summary($layerIds, $volumeId, $optParams = array())
+ {
+ $params = array('layerIds' => $layerIds, 'volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('summary', array($params), "Google_Service_Books_AnnotationsSummary");
+ }
+ /**
+ * Updates an existing annotation. (annotations.update)
+ *
+ * @param string $annotationId The ID for the annotation to update.
+ * @param Google_Service_Books_Annotation $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Annotation
+ */
+ public function update($annotationId, Google_Service_Books_Annotation $postBody, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Books_Annotation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelves.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelves.php
new file mode 100644
index 00000000..a88c986c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelves.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "bookshelves" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $bookshelves = $booksService->bookshelves;
+ * </code>
+ */
+class Google_Service_Books_Resource_MylibraryBookshelves extends Google_Service_Resource
+{
+ /**
+ * Adds a volume to a bookshelf. (bookshelves.addVolume)
+ *
+ * @param string $shelf ID of bookshelf to which to add a volume.
+ * @param string $volumeId ID of volume to add.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string reason The reason for which the book is added to the
+ * library.
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function addVolume($shelf, $volumeId, $optParams = array())
+ {
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('addVolume', array($params));
+ }
+ /**
+ * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
+ *
+ * @param string $shelf ID of bookshelf from which to remove a volume.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function clearVolumes($shelf, $optParams = array())
+ {
+ $params = array('shelf' => $shelf);
+ $params = array_merge($params, $optParams);
+ return $this->call('clearVolumes', array($params));
+ }
+ /**
+ * Retrieves metadata for a specific bookshelf belonging to the authenticated
+ * user. (bookshelves.get)
+ *
+ * @param string $shelf ID of bookshelf to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Bookshelf
+ */
+ public function get($shelf, $optParams = array())
+ {
+ $params = array('shelf' => $shelf);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Bookshelf");
+ }
+ /**
+ * Retrieves a list of bookshelves belonging to the authenticated user.
+ * (bookshelves.listMylibraryBookshelves)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Bookshelves
+ */
+ public function listMylibraryBookshelves($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Bookshelves");
+ }
+ /**
+ * Moves a volume within a bookshelf. (bookshelves.moveVolume)
+ *
+ * @param string $shelf ID of bookshelf with the volume.
+ * @param string $volumeId ID of volume to move.
+ * @param int $volumePosition Position on shelf to move the item (0 puts the
+ * item before the current first item, 1 puts it between the first and the
+ * second and so on.)
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array())
+ {
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition);
+ $params = array_merge($params, $optParams);
+ return $this->call('moveVolume', array($params));
+ }
+ /**
+ * Removes a volume from a bookshelf. (bookshelves.removeVolume)
+ *
+ * @param string $shelf ID of bookshelf from which to remove a volume.
+ * @param string $volumeId ID of volume to remove.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string reason The reason for which the book is removed from the
+ * library.
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function removeVolume($shelf, $volumeId, $optParams = array())
+ {
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeVolume', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelvesVolumes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelvesVolumes.php
new file mode 100644
index 00000000..c1536ffc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryBookshelvesVolumes.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "volumes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $volumes = $booksService->volumes;
+ * </code>
+ */
+class Google_Service_Books_Resource_MylibraryBookshelvesVolumes extends Google_Service_Resource
+{
+ /**
+ * Gets volume information for volumes on a bookshelf.
+ * (volumes.listMylibraryBookshelvesVolumes)
+ *
+ * @param string $shelf The bookshelf ID or name retrieve volumes for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @opt_param string q Full-text search query string in this bookshelf.
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults
+ * to false.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string startIndex Index of the first element to return (starts at
+ * 0)
+ * @return Google_Service_Books_Volumes
+ */
+ public function listMylibraryBookshelvesVolumes($shelf, $optParams = array())
+ {
+ $params = array('shelf' => $shelf);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumes");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryReadingpositions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryReadingpositions.php
new file mode 100644
index 00000000..375c2ae1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/MylibraryReadingpositions.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "readingpositions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $readingpositions = $booksService->readingpositions;
+ * </code>
+ */
+class Google_Service_Books_Resource_MylibraryReadingpositions extends Google_Service_Resource
+{
+ /**
+ * Retrieves my reading position information for a volume.
+ * (readingpositions.get)
+ *
+ * @param string $volumeId ID of volume for which to retrieve a reading
+ * position.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string contentVersion Volume content version for which this
+ * reading position is requested.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_ReadingPosition
+ */
+ public function get($volumeId, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_ReadingPosition");
+ }
+ /**
+ * Sets my reading position information for a volume.
+ * (readingpositions.setPosition)
+ *
+ * @param string $volumeId ID of volume for which to update the reading
+ * position.
+ * @param string $timestamp RFC 3339 UTC format timestamp associated with this
+ * reading position.
+ * @param string $position Position string for the new volume reading position.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string action Action that caused this reading position to be set.
+ * @opt_param string contentVersion Volume content version for which this
+ * reading position applies.
+ * @opt_param string deviceCookie Random persistent device cookie optional on
+ * set position.
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function setPosition($volumeId, $timestamp, $position, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
+ $params = array_merge($params, $optParams);
+ return $this->call('setPosition', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Notification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Notification.php
new file mode 100644
index 00000000..f3bae929
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Notification.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "notification" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $notification = $booksService->notification;
+ * </code>
+ */
+class Google_Service_Books_Resource_Notification extends Google_Service_Resource
+{
+ /**
+ * Returns notification details for a given notification id. (notification.get)
+ *
+ * @param string $notificationId String to identify the notification.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
+ * 'en_US'. Used for generating notification title and body.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Notification
+ */
+ public function get($notificationId, $optParams = array())
+ {
+ $params = array('notification_id' => $notificationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Notification");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Onboarding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Onboarding.php
new file mode 100644
index 00000000..6ad8f753
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Onboarding.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "onboarding" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $onboarding = $booksService->onboarding;
+ * </code>
+ */
+class Google_Service_Books_Resource_Onboarding extends Google_Service_Resource
+{
+ /**
+ * List categories for onboarding experience. (onboarding.listCategories)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code.
+ * Default is en-US if unset.
+ * @return Google_Service_Books_Category
+ */
+ public function listCategories($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('listCategories', array($params), "Google_Service_Books_Category");
+ }
+ /**
+ * List available volumes under categories for onboarding experience.
+ * (onboarding.listCategoryVolumes)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string categoryId List of category ids requested.
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code.
+ * Default is en-US if unset.
+ * @opt_param string maxAllowedMaturityRating The maximum allowed maturity
+ * rating of returned volumes. Books with a higher maturity rating are filtered
+ * out.
+ * @opt_param string pageSize Number of maximum results per page to be included
+ * in the response.
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * page.
+ * @return Google_Service_Books_Volume2
+ */
+ public function listCategoryVolumes($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('listCategoryVolumes', array($params), "Google_Service_Books_Volume2");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Personalizedstream.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Personalizedstream.php
new file mode 100644
index 00000000..363f5edf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Personalizedstream.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "personalizedstream" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $personalizedstream = $booksService->personalizedstream;
+ * </code>
+ */
+class Google_Service_Books_Resource_Personalizedstream extends Google_Service_Resource
+{
+ /**
+ * Returns a stream of personalized book clusters (personalizedstream.get)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
+ * 'en_US'. Used for generating recommendations.
+ * @opt_param string maxAllowedMaturityRating The maximum allowed maturity
+ * rating of returned recommendations. Books with a higher maturity rating are
+ * filtered out.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Discoveryclusters
+ */
+ public function get($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Discoveryclusters");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Promooffer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Promooffer.php
new file mode 100644
index 00000000..624952f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Promooffer.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "promooffer" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $promooffer = $booksService->promooffer;
+ * </code>
+ */
+class Google_Service_Books_Resource_Promooffer extends Google_Service_Resource
+{
+ /**
+ * (promooffer.accept)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string androidId device android_id
+ * @opt_param string device device device
+ * @opt_param string manufacturer device manufacturer
+ * @opt_param string model device model
+ * @opt_param string offerId
+ * @opt_param string product device product
+ * @opt_param string serial device serial
+ * @opt_param string volumeId Volume id to exercise the offer
+ */
+ public function accept($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('accept', array($params));
+ }
+ /**
+ * (promooffer.dismiss)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string androidId device android_id
+ * @opt_param string device device device
+ * @opt_param string manufacturer device manufacturer
+ * @opt_param string model device model
+ * @opt_param string offerId Offer to dimiss
+ * @opt_param string product device product
+ * @opt_param string serial device serial
+ */
+ public function dismiss($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('dismiss', array($params));
+ }
+ /**
+ * Returns a list of promo offers available to the user (promooffer.get)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string androidId device android_id
+ * @opt_param string device device device
+ * @opt_param string manufacturer device manufacturer
+ * @opt_param string model device model
+ * @opt_param string product device product
+ * @opt_param string serial device serial
+ * @return Google_Service_Books_Offers
+ */
+ public function get($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Offers");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Series.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Series.php
new file mode 100644
index 00000000..a3f8bdee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Series.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "series" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $series = $booksService->series;
+ * </code>
+ */
+class Google_Service_Books_Resource_Series extends Google_Service_Resource
+{
+ /**
+ * Returns Series metadata for the given series ids. (series.get)
+ *
+ * @param string|array $seriesId String that identifies the series
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Books_Series
+ */
+ public function get($seriesId, $optParams = array())
+ {
+ $params = array('series_id' => $seriesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Series");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/SeriesMembership.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/SeriesMembership.php
new file mode 100644
index 00000000..28a2e410
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/SeriesMembership.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "membership" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $membership = $booksService->membership;
+ * </code>
+ */
+class Google_Service_Books_Resource_SeriesMembership extends Google_Service_Resource
+{
+ /**
+ * Returns Series membership data given the series id. (membership.get)
+ *
+ * @param string $seriesId String that identifies the series
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string page_size Number of maximum results per page to be included
+ * in the response.
+ * @opt_param string page_token The value of the nextToken from the previous
+ * page.
+ * @return Google_Service_Books_Seriesmembership
+ */
+ public function get($seriesId, $optParams = array())
+ {
+ $params = array('series_id' => $seriesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Seriesmembership");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Volumes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Volumes.php
new file mode 100644
index 00000000..1065108c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/Volumes.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "volumes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $volumes = $booksService->volumes;
+ * </code>
+ */
+class Google_Service_Books_Resource_Volumes extends Google_Service_Resource
+{
+ /**
+ * Gets volume information for a single volume. (volumes.get)
+ *
+ * @param string $volumeId ID of volume to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param bool includeNonComicsSeries Set to true to include non-comics
+ * series. Defaults to false.
+ * @opt_param string partner Brand results for partner ID.
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param bool user_library_consistent_read
+ * @return Google_Service_Books_Volume
+ */
+ public function get($volumeId, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Books_Volume");
+ }
+ /**
+ * Performs a book search. (volumes.listVolumes)
+ *
+ * @param string $q Full-text search query string.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string download Restrict to volumes by download availability.
+ * @opt_param string filter Filter search results.
+ * @opt_param string langRestrict Restrict results to books with this language
+ * code.
+ * @opt_param string libraryRestrict Restrict search to this user's library.
+ * @opt_param string maxAllowedMaturityRating The maximum allowed maturity
+ * rating of returned recommendations. Books with a higher maturity rating are
+ * filtered out.
+ * @opt_param string maxResults Maximum number of results to return.
+ * @opt_param string orderBy Sort search results.
+ * @opt_param string partner Restrict and brand results for partner ID.
+ * @opt_param string printType Restrict to books or magazines.
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @opt_param bool showPreorders Set to true to show books available for
+ * preorder. Defaults to false.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string startIndex Index of the first result to return (starts at
+ * 0)
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumes($q, $optParams = array())
+ {
+ $params = array('q' => $q);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumes");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesAssociated.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesAssociated.php
new file mode 100644
index 00000000..85716456
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesAssociated.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "associated" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $associated = $booksService->associated;
+ * </code>
+ */
+class Google_Service_Books_Resource_VolumesAssociated extends Google_Service_Resource
+{
+ /**
+ * Return a list of associated books. (associated.listVolumesAssociated)
+ *
+ * @param string $volumeId ID of the source volume.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string association Association type.
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
+ * 'en_US'. Used for generating recommendations.
+ * @opt_param string maxAllowedMaturityRating The maximum allowed maturity
+ * rating of returned recommendations. Books with a higher maturity rating are
+ * filtered out.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumesAssociated($volumeId, $optParams = array())
+ {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumes");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesMybooks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesMybooks.php
new file mode 100644
index 00000000..b9897853
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesMybooks.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mybooks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $mybooks = $booksService->mybooks;
+ * </code>
+ */
+class Google_Service_Books_Resource_VolumesMybooks extends Google_Service_Resource
+{
+ /**
+ * Return a list of books in My Library. (mybooks.listVolumesMybooks)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string acquireMethod How the book was acquired
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code.
+ * Ex:'en_US'. Used for generating recommendations.
+ * @opt_param string maxResults Maximum number of results to return.
+ * @opt_param string processingState The processing state of the user uploaded
+ * volumes to be returned. Applicable only if the UPLOADED is specified in the
+ * acquireMethod.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string startIndex Index of the first result to return (starts at
+ * 0)
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumesMybooks($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumes");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesRecommended.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesRecommended.php
new file mode 100644
index 00000000..e8cb7241
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesRecommended.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "recommended" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $recommended = $booksService->recommended;
+ * </code>
+ */
+class Google_Service_Books_Resource_VolumesRecommended extends Google_Service_Resource
+{
+ /**
+ * Return a list of recommended books for the current user.
+ * (recommended.listVolumesRecommended)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
+ * 'en_US'. Used for generating recommendations.
+ * @opt_param string maxAllowedMaturityRating The maximum allowed maturity
+ * rating of returned recommendations. Books with a higher maturity rating are
+ * filtered out.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumesRecommended($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumes");
+ }
+ /**
+ * Rate a recommended book for the current user. (recommended.rate)
+ *
+ * @param string $rating Rating to be given to the volume.
+ * @param string $volumeId ID of the source volume.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
+ * 'en_US'. Used for generating recommendations.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_BooksVolumesRecommendedRateResponse
+ */
+ public function rate($rating, $volumeId, $optParams = array())
+ {
+ $params = array('rating' => $rating, 'volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('rate', array($params), "Google_Service_Books_BooksVolumesRecommendedRateResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesUseruploaded.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesUseruploaded.php
new file mode 100644
index 00000000..12b69f46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Resource/VolumesUseruploaded.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "useruploaded" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new Google_Service_Books(...);
+ * $useruploaded = $booksService->useruploaded;
+ * </code>
+ */
+class Google_Service_Books_Resource_VolumesUseruploaded extends Google_Service_Resource
+{
+ /**
+ * Return a list of books uploaded by the current user.
+ * (useruploaded.listVolumesUseruploaded)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
+ * 'en_US'. Used for generating recommendations.
+ * @opt_param string maxResults Maximum number of results to return.
+ * @opt_param string processingState The processing state of the user uploaded
+ * volumes to be returned.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string startIndex Index of the first result to return (starts at
+ * 0)
+ * @opt_param string volumeId The ids of the volumes to be returned. If not
+ * specified all that match the processingState are returned.
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumesUseruploaded($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Books_Volumes");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Review.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Review.php
new file mode 100644
index 00000000..c648e1cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Review.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Review extends Google_Model
+{
+ protected $authorType = 'Google_Service_Books_ReviewAuthor';
+ protected $authorDataType = '';
+ public $content;
+ public $date;
+ public $fullTextUrl;
+ public $kind;
+ public $rating;
+ protected $sourceType = 'Google_Service_Books_ReviewSource';
+ protected $sourceDataType = '';
+ public $title;
+ public $type;
+ public $volumeId;
+
+ public function setAuthor(Google_Service_Books_ReviewAuthor $author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setDate($date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setFullTextUrl($fullTextUrl)
+ {
+ $this->fullTextUrl = $fullTextUrl;
+ }
+ public function getFullTextUrl()
+ {
+ return $this->fullTextUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRating($rating)
+ {
+ $this->rating = $rating;
+ }
+ public function getRating()
+ {
+ return $this->rating;
+ }
+ public function setSource(Google_Service_Books_ReviewSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewAuthor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewAuthor.php
new file mode 100644
index 00000000..5de1b157
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewAuthor.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_ReviewAuthor extends Google_Model
+{
+ public $displayName;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewSource.php
new file mode 100644
index 00000000..7d4c0ce9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/ReviewSource.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_ReviewSource extends Google_Model
+{
+ public $description;
+ public $extraDescription;
+ public $url;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setExtraDescription($extraDescription)
+ {
+ $this->extraDescription = $extraDescription;
+ }
+ public function getExtraDescription()
+ {
+ return $this->extraDescription;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Series.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Series.php
new file mode 100644
index 00000000..8d546289
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Series.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Series extends Google_Collection
+{
+ protected $collection_key = 'series';
+ public $kind;
+ protected $seriesType = 'Google_Service_Books_SeriesSeries';
+ protected $seriesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSeries($series)
+ {
+ $this->series = $series;
+ }
+ public function getSeries()
+ {
+ return $this->series;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/SeriesSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/SeriesSeries.php
new file mode 100644
index 00000000..8fcf8fed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/SeriesSeries.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_SeriesSeries extends Google_Model
+{
+ public $bannerImageUrl;
+ public $imageUrl;
+ public $seriesId;
+ public $seriesType;
+ public $title;
+
+ public function setBannerImageUrl($bannerImageUrl)
+ {
+ $this->bannerImageUrl = $bannerImageUrl;
+ }
+ public function getBannerImageUrl()
+ {
+ return $this->bannerImageUrl;
+ }
+ public function setImageUrl($imageUrl)
+ {
+ $this->imageUrl = $imageUrl;
+ }
+ public function getImageUrl()
+ {
+ return $this->imageUrl;
+ }
+ public function setSeriesId($seriesId)
+ {
+ $this->seriesId = $seriesId;
+ }
+ public function getSeriesId()
+ {
+ return $this->seriesId;
+ }
+ public function setSeriesType($seriesType)
+ {
+ $this->seriesType = $seriesType;
+ }
+ public function getSeriesType()
+ {
+ return $this->seriesType;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Seriesmembership.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Seriesmembership.php
new file mode 100644
index 00000000..be25c944
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Seriesmembership.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Seriesmembership extends Google_Collection
+{
+ protected $collection_key = 'member';
+ public $kind;
+ protected $memberType = 'Google_Service_Books_Volume';
+ protected $memberDataType = 'array';
+ public $nextPageToken;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMember($member)
+ {
+ $this->member = $member;
+ }
+ public function getMember()
+ {
+ return $this->member;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Usersettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Usersettings.php
new file mode 100644
index 00000000..919149e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Usersettings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Usersettings extends Google_Model
+{
+ public $kind;
+ protected $notesExportType = 'Google_Service_Books_UsersettingsNotesExport';
+ protected $notesExportDataType = '';
+ protected $notificationType = 'Google_Service_Books_UsersettingsNotification';
+ protected $notificationDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNotesExport(Google_Service_Books_UsersettingsNotesExport $notesExport)
+ {
+ $this->notesExport = $notesExport;
+ }
+ public function getNotesExport()
+ {
+ return $this->notesExport;
+ }
+ public function setNotification(Google_Service_Books_UsersettingsNotification $notification)
+ {
+ $this->notification = $notification;
+ }
+ public function getNotification()
+ {
+ return $this->notification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotesExport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotesExport.php
new file mode 100644
index 00000000..9d6d2e8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotesExport.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_UsersettingsNotesExport extends Google_Model
+{
+ public $folderName;
+ public $isEnabled;
+
+ public function setFolderName($folderName)
+ {
+ $this->folderName = $folderName;
+ }
+ public function getFolderName()
+ {
+ return $this->folderName;
+ }
+ public function setIsEnabled($isEnabled)
+ {
+ $this->isEnabled = $isEnabled;
+ }
+ public function getIsEnabled()
+ {
+ return $this->isEnabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotification.php
new file mode 100644
index 00000000..680742f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotification.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_UsersettingsNotification extends Google_Model
+{
+ protected $moreFromAuthorsType = 'Google_Service_Books_UsersettingsNotificationMoreFromAuthors';
+ protected $moreFromAuthorsDataType = '';
+ protected $moreFromSeriesType = 'Google_Service_Books_UsersettingsNotificationMoreFromSeries';
+ protected $moreFromSeriesDataType = '';
+
+ public function setMoreFromAuthors(Google_Service_Books_UsersettingsNotificationMoreFromAuthors $moreFromAuthors)
+ {
+ $this->moreFromAuthors = $moreFromAuthors;
+ }
+ public function getMoreFromAuthors()
+ {
+ return $this->moreFromAuthors;
+ }
+ public function setMoreFromSeries(Google_Service_Books_UsersettingsNotificationMoreFromSeries $moreFromSeries)
+ {
+ $this->moreFromSeries = $moreFromSeries;
+ }
+ public function getMoreFromSeries()
+ {
+ return $this->moreFromSeries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromAuthors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromAuthors.php
new file mode 100644
index 00000000..fa684173
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromAuthors.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_UsersettingsNotificationMoreFromAuthors extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "optedState" => "opted_state",
+ );
+ public $optedState;
+
+ public function setOptedState($optedState)
+ {
+ $this->optedState = $optedState;
+ }
+ public function getOptedState()
+ {
+ return $this->optedState;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromSeries.php
new file mode 100644
index 00000000..d0b94d08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/UsersettingsNotificationMoreFromSeries.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_UsersettingsNotificationMoreFromSeries extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "optedState" => "opted_state",
+ );
+ public $optedState;
+
+ public function setOptedState($optedState)
+ {
+ $this->optedState = $optedState;
+ }
+ public function getOptedState()
+ {
+ return $this->optedState;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume.php
new file mode 100644
index 00000000..7017042d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Volume extends Google_Model
+{
+ protected $accessInfoType = 'Google_Service_Books_VolumeAccessInfo';
+ protected $accessInfoDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $layerInfoType = 'Google_Service_Books_VolumeLayerInfo';
+ protected $layerInfoDataType = '';
+ protected $recommendedInfoType = 'Google_Service_Books_VolumeRecommendedInfo';
+ protected $recommendedInfoDataType = '';
+ protected $saleInfoType = 'Google_Service_Books_VolumeSaleInfo';
+ protected $saleInfoDataType = '';
+ protected $searchInfoType = 'Google_Service_Books_VolumeSearchInfo';
+ protected $searchInfoDataType = '';
+ public $selfLink;
+ protected $userInfoType = 'Google_Service_Books_VolumeUserInfo';
+ protected $userInfoDataType = '';
+ protected $volumeInfoType = 'Google_Service_Books_VolumeVolumeInfo';
+ protected $volumeInfoDataType = '';
+
+ public function setAccessInfo(Google_Service_Books_VolumeAccessInfo $accessInfo)
+ {
+ $this->accessInfo = $accessInfo;
+ }
+ public function getAccessInfo()
+ {
+ return $this->accessInfo;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLayerInfo(Google_Service_Books_VolumeLayerInfo $layerInfo)
+ {
+ $this->layerInfo = $layerInfo;
+ }
+ public function getLayerInfo()
+ {
+ return $this->layerInfo;
+ }
+ public function setRecommendedInfo(Google_Service_Books_VolumeRecommendedInfo $recommendedInfo)
+ {
+ $this->recommendedInfo = $recommendedInfo;
+ }
+ public function getRecommendedInfo()
+ {
+ return $this->recommendedInfo;
+ }
+ public function setSaleInfo(Google_Service_Books_VolumeSaleInfo $saleInfo)
+ {
+ $this->saleInfo = $saleInfo;
+ }
+ public function getSaleInfo()
+ {
+ return $this->saleInfo;
+ }
+ public function setSearchInfo(Google_Service_Books_VolumeSearchInfo $searchInfo)
+ {
+ $this->searchInfo = $searchInfo;
+ }
+ public function getSearchInfo()
+ {
+ return $this->searchInfo;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUserInfo(Google_Service_Books_VolumeUserInfo $userInfo)
+ {
+ $this->userInfo = $userInfo;
+ }
+ public function getUserInfo()
+ {
+ return $this->userInfo;
+ }
+ public function setVolumeInfo(Google_Service_Books_VolumeVolumeInfo $volumeInfo)
+ {
+ $this->volumeInfo = $volumeInfo;
+ }
+ public function getVolumeInfo()
+ {
+ return $this->volumeInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume2.php
new file mode 100644
index 00000000..f8608302
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volume2.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Volume2 extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_Volume';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfo.php
new file mode 100644
index 00000000..65fa6a80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfo.php
@@ -0,0 +1,150 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeAccessInfo extends Google_Model
+{
+ public $accessViewStatus;
+ public $country;
+ protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction';
+ protected $downloadAccessDataType = '';
+ public $driveImportedContentLink;
+ public $embeddable;
+ protected $epubType = 'Google_Service_Books_VolumeAccessInfoEpub';
+ protected $epubDataType = '';
+ public $explicitOfflineLicenseManagement;
+ protected $pdfType = 'Google_Service_Books_VolumeAccessInfoPdf';
+ protected $pdfDataType = '';
+ public $publicDomain;
+ public $quoteSharingAllowed;
+ public $textToSpeechPermission;
+ public $viewOrderUrl;
+ public $viewability;
+ public $webReaderLink;
+
+ public function setAccessViewStatus($accessViewStatus)
+ {
+ $this->accessViewStatus = $accessViewStatus;
+ }
+ public function getAccessViewStatus()
+ {
+ return $this->accessViewStatus;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess)
+ {
+ $this->downloadAccess = $downloadAccess;
+ }
+ public function getDownloadAccess()
+ {
+ return $this->downloadAccess;
+ }
+ public function setDriveImportedContentLink($driveImportedContentLink)
+ {
+ $this->driveImportedContentLink = $driveImportedContentLink;
+ }
+ public function getDriveImportedContentLink()
+ {
+ return $this->driveImportedContentLink;
+ }
+ public function setEmbeddable($embeddable)
+ {
+ $this->embeddable = $embeddable;
+ }
+ public function getEmbeddable()
+ {
+ return $this->embeddable;
+ }
+ public function setEpub(Google_Service_Books_VolumeAccessInfoEpub $epub)
+ {
+ $this->epub = $epub;
+ }
+ public function getEpub()
+ {
+ return $this->epub;
+ }
+ public function setExplicitOfflineLicenseManagement($explicitOfflineLicenseManagement)
+ {
+ $this->explicitOfflineLicenseManagement = $explicitOfflineLicenseManagement;
+ }
+ public function getExplicitOfflineLicenseManagement()
+ {
+ return $this->explicitOfflineLicenseManagement;
+ }
+ public function setPdf(Google_Service_Books_VolumeAccessInfoPdf $pdf)
+ {
+ $this->pdf = $pdf;
+ }
+ public function getPdf()
+ {
+ return $this->pdf;
+ }
+ public function setPublicDomain($publicDomain)
+ {
+ $this->publicDomain = $publicDomain;
+ }
+ public function getPublicDomain()
+ {
+ return $this->publicDomain;
+ }
+ public function setQuoteSharingAllowed($quoteSharingAllowed)
+ {
+ $this->quoteSharingAllowed = $quoteSharingAllowed;
+ }
+ public function getQuoteSharingAllowed()
+ {
+ return $this->quoteSharingAllowed;
+ }
+ public function setTextToSpeechPermission($textToSpeechPermission)
+ {
+ $this->textToSpeechPermission = $textToSpeechPermission;
+ }
+ public function getTextToSpeechPermission()
+ {
+ return $this->textToSpeechPermission;
+ }
+ public function setViewOrderUrl($viewOrderUrl)
+ {
+ $this->viewOrderUrl = $viewOrderUrl;
+ }
+ public function getViewOrderUrl()
+ {
+ return $this->viewOrderUrl;
+ }
+ public function setViewability($viewability)
+ {
+ $this->viewability = $viewability;
+ }
+ public function getViewability()
+ {
+ return $this->viewability;
+ }
+ public function setWebReaderLink($webReaderLink)
+ {
+ $this->webReaderLink = $webReaderLink;
+ }
+ public function getWebReaderLink()
+ {
+ return $this->webReaderLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoEpub.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoEpub.php
new file mode 100644
index 00000000..a41c2150
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoEpub.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model
+{
+ public $acsTokenLink;
+ public $downloadLink;
+ public $isAvailable;
+
+ public function setAcsTokenLink($acsTokenLink)
+ {
+ $this->acsTokenLink = $acsTokenLink;
+ }
+ public function getAcsTokenLink()
+ {
+ return $this->acsTokenLink;
+ }
+ public function setDownloadLink($downloadLink)
+ {
+ $this->downloadLink = $downloadLink;
+ }
+ public function getDownloadLink()
+ {
+ return $this->downloadLink;
+ }
+ public function setIsAvailable($isAvailable)
+ {
+ $this->isAvailable = $isAvailable;
+ }
+ public function getIsAvailable()
+ {
+ return $this->isAvailable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoPdf.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoPdf.php
new file mode 100644
index 00000000..8a0f6c4f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeAccessInfoPdf.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model
+{
+ public $acsTokenLink;
+ public $downloadLink;
+ public $isAvailable;
+
+ public function setAcsTokenLink($acsTokenLink)
+ {
+ $this->acsTokenLink = $acsTokenLink;
+ }
+ public function getAcsTokenLink()
+ {
+ return $this->acsTokenLink;
+ }
+ public function setDownloadLink($downloadLink)
+ {
+ $this->downloadLink = $downloadLink;
+ }
+ public function getDownloadLink()
+ {
+ return $this->downloadLink;
+ }
+ public function setIsAvailable($isAvailable)
+ {
+ $this->isAvailable = $isAvailable;
+ }
+ public function getIsAvailable()
+ {
+ return $this->isAvailable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfo.php
new file mode 100644
index 00000000..9802d0ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfo.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeLayerInfo extends Google_Collection
+{
+ protected $collection_key = 'layers';
+ protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers';
+ protected $layersDataType = 'array';
+
+ public function setLayers($layers)
+ {
+ $this->layers = $layers;
+ }
+ public function getLayers()
+ {
+ return $this->layers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfoLayers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfoLayers.php
new file mode 100644
index 00000000..e65080cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeLayerInfoLayers.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model
+{
+ public $layerId;
+ public $volumeAnnotationsVersion;
+
+ public function setLayerId($layerId)
+ {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId()
+ {
+ return $this->layerId;
+ }
+ public function setVolumeAnnotationsVersion($volumeAnnotationsVersion)
+ {
+ $this->volumeAnnotationsVersion = $volumeAnnotationsVersion;
+ }
+ public function getVolumeAnnotationsVersion()
+ {
+ return $this->volumeAnnotationsVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeRecommendedInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeRecommendedInfo.php
new file mode 100644
index 00000000..67757950
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeRecommendedInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeRecommendedInfo extends Google_Model
+{
+ public $explanation;
+
+ public function setExplanation($explanation)
+ {
+ $this->explanation = $explanation;
+ }
+ public function getExplanation()
+ {
+ return $this->explanation;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfo.php
new file mode 100644
index 00000000..a772a103
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfo.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSaleInfo extends Google_Collection
+{
+ protected $collection_key = 'offers';
+ public $buyLink;
+ public $country;
+ public $isEbook;
+ protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoListPrice';
+ protected $listPriceDataType = '';
+ protected $offersType = 'Google_Service_Books_VolumeSaleInfoOffers';
+ protected $offersDataType = 'array';
+ public $onSaleDate;
+ protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoRetailPrice';
+ protected $retailPriceDataType = '';
+ public $saleability;
+
+ public function setBuyLink($buyLink)
+ {
+ $this->buyLink = $buyLink;
+ }
+ public function getBuyLink()
+ {
+ return $this->buyLink;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setIsEbook($isEbook)
+ {
+ $this->isEbook = $isEbook;
+ }
+ public function getIsEbook()
+ {
+ return $this->isEbook;
+ }
+ public function setListPrice(Google_Service_Books_VolumeSaleInfoListPrice $listPrice)
+ {
+ $this->listPrice = $listPrice;
+ }
+ public function getListPrice()
+ {
+ return $this->listPrice;
+ }
+ public function setOffers($offers)
+ {
+ $this->offers = $offers;
+ }
+ public function getOffers()
+ {
+ return $this->offers;
+ }
+ public function setOnSaleDate($onSaleDate)
+ {
+ $this->onSaleDate = $onSaleDate;
+ }
+ public function getOnSaleDate()
+ {
+ return $this->onSaleDate;
+ }
+ public function setRetailPrice(Google_Service_Books_VolumeSaleInfoRetailPrice $retailPrice)
+ {
+ $this->retailPrice = $retailPrice;
+ }
+ public function getRetailPrice()
+ {
+ return $this->retailPrice;
+ }
+ public function setSaleability($saleability)
+ {
+ $this->saleability = $saleability;
+ }
+ public function getSaleability()
+ {
+ return $this->saleability;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoListPrice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoListPrice.php
new file mode 100644
index 00000000..e0ccb21e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoListPrice.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model
+{
+ public $amount;
+ public $currencyCode;
+
+ public function setAmount($amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffers.php
new file mode 100644
index 00000000..594ba952
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffers.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model
+{
+ public $finskyOfferType;
+ public $giftable;
+ protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoOffersListPrice';
+ protected $listPriceDataType = '';
+ protected $rentalDurationType = 'Google_Service_Books_VolumeSaleInfoOffersRentalDuration';
+ protected $rentalDurationDataType = '';
+ protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoOffersRetailPrice';
+ protected $retailPriceDataType = '';
+
+ public function setFinskyOfferType($finskyOfferType)
+ {
+ $this->finskyOfferType = $finskyOfferType;
+ }
+ public function getFinskyOfferType()
+ {
+ return $this->finskyOfferType;
+ }
+ public function setGiftable($giftable)
+ {
+ $this->giftable = $giftable;
+ }
+ public function getGiftable()
+ {
+ return $this->giftable;
+ }
+ public function setListPrice(Google_Service_Books_VolumeSaleInfoOffersListPrice $listPrice)
+ {
+ $this->listPrice = $listPrice;
+ }
+ public function getListPrice()
+ {
+ return $this->listPrice;
+ }
+ public function setRentalDuration(Google_Service_Books_VolumeSaleInfoOffersRentalDuration $rentalDuration)
+ {
+ $this->rentalDuration = $rentalDuration;
+ }
+ public function getRentalDuration()
+ {
+ return $this->rentalDuration;
+ }
+ public function setRetailPrice(Google_Service_Books_VolumeSaleInfoOffersRetailPrice $retailPrice)
+ {
+ $this->retailPrice = $retailPrice;
+ }
+ public function getRetailPrice()
+ {
+ return $this->retailPrice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersListPrice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersListPrice.php
new file mode 100644
index 00000000..7973473f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersListPrice.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model
+{
+ public $amountInMicros;
+ public $currencyCode;
+
+ public function setAmountInMicros($amountInMicros)
+ {
+ $this->amountInMicros = $amountInMicros;
+ }
+ public function getAmountInMicros()
+ {
+ return $this->amountInMicros;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRentalDuration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRentalDuration.php
new file mode 100644
index 00000000..23421ddc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRentalDuration.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model
+{
+ public $count;
+ public $unit;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRetailPrice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRetailPrice.php
new file mode 100644
index 00000000..2928a826
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoOffersRetailPrice.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model
+{
+ public $amountInMicros;
+ public $currencyCode;
+
+ public function setAmountInMicros($amountInMicros)
+ {
+ $this->amountInMicros = $amountInMicros;
+ }
+ public function getAmountInMicros()
+ {
+ return $this->amountInMicros;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoRetailPrice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoRetailPrice.php
new file mode 100644
index 00000000..9c9d0475
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSaleInfoRetailPrice.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model
+{
+ public $amount;
+ public $currencyCode;
+
+ public function setAmount($amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSearchInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSearchInfo.php
new file mode 100644
index 00000000..7b36118a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeSearchInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeSearchInfo extends Google_Model
+{
+ public $textSnippet;
+
+ public function setTextSnippet($textSnippet)
+ {
+ $this->textSnippet = $textSnippet;
+ }
+ public function getTextSnippet()
+ {
+ return $this->textSnippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfo.php
new file mode 100644
index 00000000..86c80537
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfo.php
@@ -0,0 +1,198 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeUserInfo extends Google_Model
+{
+ public $acquiredTime;
+ public $acquisitionType;
+ protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy';
+ protected $copyDataType = '';
+ public $entitlementType;
+ protected $familySharingType = 'Google_Service_Books_VolumeUserInfoFamilySharing';
+ protected $familySharingDataType = '';
+ public $isFamilySharedFromUser;
+ public $isFamilySharedToUser;
+ public $isFamilySharingAllowed;
+ public $isFamilySharingDisabledByFop;
+ public $isInMyBooks;
+ public $isPreordered;
+ public $isPurchased;
+ public $isUploaded;
+ protected $readingPositionType = 'Google_Service_Books_ReadingPosition';
+ protected $readingPositionDataType = '';
+ protected $rentalPeriodType = 'Google_Service_Books_VolumeUserInfoRentalPeriod';
+ protected $rentalPeriodDataType = '';
+ public $rentalState;
+ protected $reviewType = 'Google_Service_Books_Review';
+ protected $reviewDataType = '';
+ public $updated;
+ protected $userUploadedVolumeInfoType = 'Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo';
+ protected $userUploadedVolumeInfoDataType = '';
+
+ public function setAcquiredTime($acquiredTime)
+ {
+ $this->acquiredTime = $acquiredTime;
+ }
+ public function getAcquiredTime()
+ {
+ return $this->acquiredTime;
+ }
+ public function setAcquisitionType($acquisitionType)
+ {
+ $this->acquisitionType = $acquisitionType;
+ }
+ public function getAcquisitionType()
+ {
+ return $this->acquisitionType;
+ }
+ public function setCopy(Google_Service_Books_VolumeUserInfoCopy $copy)
+ {
+ $this->copy = $copy;
+ }
+ public function getCopy()
+ {
+ return $this->copy;
+ }
+ public function setEntitlementType($entitlementType)
+ {
+ $this->entitlementType = $entitlementType;
+ }
+ public function getEntitlementType()
+ {
+ return $this->entitlementType;
+ }
+ public function setFamilySharing(Google_Service_Books_VolumeUserInfoFamilySharing $familySharing)
+ {
+ $this->familySharing = $familySharing;
+ }
+ public function getFamilySharing()
+ {
+ return $this->familySharing;
+ }
+ public function setIsFamilySharedFromUser($isFamilySharedFromUser)
+ {
+ $this->isFamilySharedFromUser = $isFamilySharedFromUser;
+ }
+ public function getIsFamilySharedFromUser()
+ {
+ return $this->isFamilySharedFromUser;
+ }
+ public function setIsFamilySharedToUser($isFamilySharedToUser)
+ {
+ $this->isFamilySharedToUser = $isFamilySharedToUser;
+ }
+ public function getIsFamilySharedToUser()
+ {
+ return $this->isFamilySharedToUser;
+ }
+ public function setIsFamilySharingAllowed($isFamilySharingAllowed)
+ {
+ $this->isFamilySharingAllowed = $isFamilySharingAllowed;
+ }
+ public function getIsFamilySharingAllowed()
+ {
+ return $this->isFamilySharingAllowed;
+ }
+ public function setIsFamilySharingDisabledByFop($isFamilySharingDisabledByFop)
+ {
+ $this->isFamilySharingDisabledByFop = $isFamilySharingDisabledByFop;
+ }
+ public function getIsFamilySharingDisabledByFop()
+ {
+ return $this->isFamilySharingDisabledByFop;
+ }
+ public function setIsInMyBooks($isInMyBooks)
+ {
+ $this->isInMyBooks = $isInMyBooks;
+ }
+ public function getIsInMyBooks()
+ {
+ return $this->isInMyBooks;
+ }
+ public function setIsPreordered($isPreordered)
+ {
+ $this->isPreordered = $isPreordered;
+ }
+ public function getIsPreordered()
+ {
+ return $this->isPreordered;
+ }
+ public function setIsPurchased($isPurchased)
+ {
+ $this->isPurchased = $isPurchased;
+ }
+ public function getIsPurchased()
+ {
+ return $this->isPurchased;
+ }
+ public function setIsUploaded($isUploaded)
+ {
+ $this->isUploaded = $isUploaded;
+ }
+ public function getIsUploaded()
+ {
+ return $this->isUploaded;
+ }
+ public function setReadingPosition(Google_Service_Books_ReadingPosition $readingPosition)
+ {
+ $this->readingPosition = $readingPosition;
+ }
+ public function getReadingPosition()
+ {
+ return $this->readingPosition;
+ }
+ public function setRentalPeriod(Google_Service_Books_VolumeUserInfoRentalPeriod $rentalPeriod)
+ {
+ $this->rentalPeriod = $rentalPeriod;
+ }
+ public function getRentalPeriod()
+ {
+ return $this->rentalPeriod;
+ }
+ public function setRentalState($rentalState)
+ {
+ $this->rentalState = $rentalState;
+ }
+ public function getRentalState()
+ {
+ return $this->rentalState;
+ }
+ public function setReview(Google_Service_Books_Review $review)
+ {
+ $this->review = $review;
+ }
+ public function getReview()
+ {
+ return $this->review;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUserUploadedVolumeInfo(Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo)
+ {
+ $this->userUploadedVolumeInfo = $userUploadedVolumeInfo;
+ }
+ public function getUserUploadedVolumeInfo()
+ {
+ return $this->userUploadedVolumeInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoCopy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoCopy.php
new file mode 100644
index 00000000..837916af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoCopy.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeUserInfoCopy extends Google_Model
+{
+ public $allowedCharacterCount;
+ public $limitType;
+ public $remainingCharacterCount;
+ public $updated;
+
+ public function setAllowedCharacterCount($allowedCharacterCount)
+ {
+ $this->allowedCharacterCount = $allowedCharacterCount;
+ }
+ public function getAllowedCharacterCount()
+ {
+ return $this->allowedCharacterCount;
+ }
+ public function setLimitType($limitType)
+ {
+ $this->limitType = $limitType;
+ }
+ public function getLimitType()
+ {
+ return $this->limitType;
+ }
+ public function setRemainingCharacterCount($remainingCharacterCount)
+ {
+ $this->remainingCharacterCount = $remainingCharacterCount;
+ }
+ public function getRemainingCharacterCount()
+ {
+ return $this->remainingCharacterCount;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoFamilySharing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoFamilySharing.php
new file mode 100644
index 00000000..a372b4f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoFamilySharing.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeUserInfoFamilySharing extends Google_Model
+{
+ public $familyRole;
+ public $isSharingAllowed;
+ public $isSharingDisabledByFop;
+
+ public function setFamilyRole($familyRole)
+ {
+ $this->familyRole = $familyRole;
+ }
+ public function getFamilyRole()
+ {
+ return $this->familyRole;
+ }
+ public function setIsSharingAllowed($isSharingAllowed)
+ {
+ $this->isSharingAllowed = $isSharingAllowed;
+ }
+ public function getIsSharingAllowed()
+ {
+ return $this->isSharingAllowed;
+ }
+ public function setIsSharingDisabledByFop($isSharingDisabledByFop)
+ {
+ $this->isSharingDisabledByFop = $isSharingDisabledByFop;
+ }
+ public function getIsSharingDisabledByFop()
+ {
+ return $this->isSharingDisabledByFop;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoRentalPeriod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoRentalPeriod.php
new file mode 100644
index 00000000..6e2e050a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoRentalPeriod.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model
+{
+ public $endUtcSec;
+ public $startUtcSec;
+
+ public function setEndUtcSec($endUtcSec)
+ {
+ $this->endUtcSec = $endUtcSec;
+ }
+ public function getEndUtcSec()
+ {
+ return $this->endUtcSec;
+ }
+ public function setStartUtcSec($startUtcSec)
+ {
+ $this->startUtcSec = $startUtcSec;
+ }
+ public function getStartUtcSec()
+ {
+ return $this->startUtcSec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoUserUploadedVolumeInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoUserUploadedVolumeInfo.php
new file mode 100644
index 00000000..5eddbebe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeUserInfoUserUploadedVolumeInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model
+{
+ public $processingState;
+
+ public function setProcessingState($processingState)
+ {
+ $this->processingState = $processingState;
+ }
+ public function getProcessingState()
+ {
+ return $this->processingState;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php
new file mode 100644
index 00000000..5d40f90d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfo.php
@@ -0,0 +1,270 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeVolumeInfo extends Google_Collection
+{
+ protected $collection_key = 'industryIdentifiers';
+ public $allowAnonLogging;
+ public $authors;
+ public $averageRating;
+ public $canonicalVolumeLink;
+ public $categories;
+ public $contentVersion;
+ public $description;
+ protected $dimensionsType = 'Google_Service_Books_VolumeVolumeInfoDimensions';
+ protected $dimensionsDataType = '';
+ protected $imageLinksType = 'Google_Service_Books_VolumeVolumeInfoImageLinks';
+ protected $imageLinksDataType = '';
+ protected $industryIdentifiersType = 'Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers';
+ protected $industryIdentifiersDataType = 'array';
+ public $infoLink;
+ public $language;
+ public $mainCategory;
+ public $maturityRating;
+ public $pageCount;
+ protected $panelizationSummaryType = 'Google_Service_Books_VolumeVolumeInfoPanelizationSummary';
+ protected $panelizationSummaryDataType = '';
+ public $previewLink;
+ public $printType;
+ public $printedPageCount;
+ public $publishedDate;
+ public $publisher;
+ public $ratingsCount;
+ public $readingModes;
+ public $samplePageCount;
+ protected $seriesInfoType = 'Google_Service_Books_Volumeseriesinfo';
+ protected $seriesInfoDataType = '';
+ public $subtitle;
+ public $title;
+
+ public function setAllowAnonLogging($allowAnonLogging)
+ {
+ $this->allowAnonLogging = $allowAnonLogging;
+ }
+ public function getAllowAnonLogging()
+ {
+ return $this->allowAnonLogging;
+ }
+ public function setAuthors($authors)
+ {
+ $this->authors = $authors;
+ }
+ public function getAuthors()
+ {
+ return $this->authors;
+ }
+ public function setAverageRating($averageRating)
+ {
+ $this->averageRating = $averageRating;
+ }
+ public function getAverageRating()
+ {
+ return $this->averageRating;
+ }
+ public function setCanonicalVolumeLink($canonicalVolumeLink)
+ {
+ $this->canonicalVolumeLink = $canonicalVolumeLink;
+ }
+ public function getCanonicalVolumeLink()
+ {
+ return $this->canonicalVolumeLink;
+ }
+ public function setCategories($categories)
+ {
+ $this->categories = $categories;
+ }
+ public function getCategories()
+ {
+ return $this->categories;
+ }
+ public function setContentVersion($contentVersion)
+ {
+ $this->contentVersion = $contentVersion;
+ }
+ public function getContentVersion()
+ {
+ return $this->contentVersion;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDimensions(Google_Service_Books_VolumeVolumeInfoDimensions $dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setImageLinks(Google_Service_Books_VolumeVolumeInfoImageLinks $imageLinks)
+ {
+ $this->imageLinks = $imageLinks;
+ }
+ public function getImageLinks()
+ {
+ return $this->imageLinks;
+ }
+ public function setIndustryIdentifiers($industryIdentifiers)
+ {
+ $this->industryIdentifiers = $industryIdentifiers;
+ }
+ public function getIndustryIdentifiers()
+ {
+ return $this->industryIdentifiers;
+ }
+ public function setInfoLink($infoLink)
+ {
+ $this->infoLink = $infoLink;
+ }
+ public function getInfoLink()
+ {
+ return $this->infoLink;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setMainCategory($mainCategory)
+ {
+ $this->mainCategory = $mainCategory;
+ }
+ public function getMainCategory()
+ {
+ return $this->mainCategory;
+ }
+ public function setMaturityRating($maturityRating)
+ {
+ $this->maturityRating = $maturityRating;
+ }
+ public function getMaturityRating()
+ {
+ return $this->maturityRating;
+ }
+ public function setPageCount($pageCount)
+ {
+ $this->pageCount = $pageCount;
+ }
+ public function getPageCount()
+ {
+ return $this->pageCount;
+ }
+ public function setPanelizationSummary(Google_Service_Books_VolumeVolumeInfoPanelizationSummary $panelizationSummary)
+ {
+ $this->panelizationSummary = $panelizationSummary;
+ }
+ public function getPanelizationSummary()
+ {
+ return $this->panelizationSummary;
+ }
+ public function setPreviewLink($previewLink)
+ {
+ $this->previewLink = $previewLink;
+ }
+ public function getPreviewLink()
+ {
+ return $this->previewLink;
+ }
+ public function setPrintType($printType)
+ {
+ $this->printType = $printType;
+ }
+ public function getPrintType()
+ {
+ return $this->printType;
+ }
+ public function setPrintedPageCount($printedPageCount)
+ {
+ $this->printedPageCount = $printedPageCount;
+ }
+ public function getPrintedPageCount()
+ {
+ return $this->printedPageCount;
+ }
+ public function setPublishedDate($publishedDate)
+ {
+ $this->publishedDate = $publishedDate;
+ }
+ public function getPublishedDate()
+ {
+ return $this->publishedDate;
+ }
+ public function setPublisher($publisher)
+ {
+ $this->publisher = $publisher;
+ }
+ public function getPublisher()
+ {
+ return $this->publisher;
+ }
+ public function setRatingsCount($ratingsCount)
+ {
+ $this->ratingsCount = $ratingsCount;
+ }
+ public function getRatingsCount()
+ {
+ return $this->ratingsCount;
+ }
+ public function setReadingModes($readingModes)
+ {
+ $this->readingModes = $readingModes;
+ }
+ public function getReadingModes()
+ {
+ return $this->readingModes;
+ }
+ public function setSamplePageCount($samplePageCount)
+ {
+ $this->samplePageCount = $samplePageCount;
+ }
+ public function getSamplePageCount()
+ {
+ return $this->samplePageCount;
+ }
+ public function setSeriesInfo(Google_Service_Books_Volumeseriesinfo $seriesInfo)
+ {
+ $this->seriesInfo = $seriesInfo;
+ }
+ public function getSeriesInfo()
+ {
+ return $this->seriesInfo;
+ }
+ public function setSubtitle($subtitle)
+ {
+ $this->subtitle = $subtitle;
+ }
+ public function getSubtitle()
+ {
+ return $this->subtitle;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoDimensions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoDimensions.php
new file mode 100644
index 00000000..db2b654e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoDimensions.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model
+{
+ public $height;
+ public $thickness;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setThickness($thickness)
+ {
+ $this->thickness = $thickness;
+ }
+ public function getThickness()
+ {
+ return $this->thickness;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoImageLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoImageLinks.php
new file mode 100644
index 00000000..cef978a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoImageLinks.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model
+{
+ public $extraLarge;
+ public $large;
+ public $medium;
+ public $small;
+ public $smallThumbnail;
+ public $thumbnail;
+
+ public function setExtraLarge($extraLarge)
+ {
+ $this->extraLarge = $extraLarge;
+ }
+ public function getExtraLarge()
+ {
+ return $this->extraLarge;
+ }
+ public function setLarge($large)
+ {
+ $this->large = $large;
+ }
+ public function getLarge()
+ {
+ return $this->large;
+ }
+ public function setMedium($medium)
+ {
+ $this->medium = $medium;
+ }
+ public function getMedium()
+ {
+ return $this->medium;
+ }
+ public function setSmall($small)
+ {
+ $this->small = $small;
+ }
+ public function getSmall()
+ {
+ return $this->small;
+ }
+ public function setSmallThumbnail($smallThumbnail)
+ {
+ $this->smallThumbnail = $smallThumbnail;
+ }
+ public function getSmallThumbnail()
+ {
+ return $this->smallThumbnail;
+ }
+ public function setThumbnail($thumbnail)
+ {
+ $this->thumbnail = $thumbnail;
+ }
+ public function getThumbnail()
+ {
+ return $this->thumbnail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoIndustryIdentifiers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoIndustryIdentifiers.php
new file mode 100644
index 00000000..cde9a418
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoIndustryIdentifiers.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Model
+{
+ public $identifier;
+ public $type;
+
+ public function setIdentifier($identifier)
+ {
+ $this->identifier = $identifier;
+ }
+ public function getIdentifier()
+ {
+ return $this->identifier;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoPanelizationSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoPanelizationSummary.php
new file mode 100644
index 00000000..e2806fb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeVolumeInfoPanelizationSummary.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeVolumeInfoPanelizationSummary extends Google_Model
+{
+ public $containsEpubBubbles;
+ public $containsImageBubbles;
+ public $epubBubbleVersion;
+ public $imageBubbleVersion;
+
+ public function setContainsEpubBubbles($containsEpubBubbles)
+ {
+ $this->containsEpubBubbles = $containsEpubBubbles;
+ }
+ public function getContainsEpubBubbles()
+ {
+ return $this->containsEpubBubbles;
+ }
+ public function setContainsImageBubbles($containsImageBubbles)
+ {
+ $this->containsImageBubbles = $containsImageBubbles;
+ }
+ public function getContainsImageBubbles()
+ {
+ return $this->containsImageBubbles;
+ }
+ public function setEpubBubbleVersion($epubBubbleVersion)
+ {
+ $this->epubBubbleVersion = $epubBubbleVersion;
+ }
+ public function getEpubBubbleVersion()
+ {
+ return $this->epubBubbleVersion;
+ }
+ public function setImageBubbleVersion($imageBubbleVersion)
+ {
+ $this->imageBubbleVersion = $imageBubbleVersion;
+ }
+ public function getImageBubbleVersion()
+ {
+ return $this->imageBubbleVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotation.php
new file mode 100644
index 00000000..0dc9f6a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotation.php
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Volumeannotation extends Google_Collection
+{
+ protected $collection_key = 'pageIds';
+ public $annotationDataId;
+ public $annotationDataLink;
+ public $annotationType;
+ protected $contentRangesType = 'Google_Service_Books_VolumeannotationContentRanges';
+ protected $contentRangesDataType = '';
+ public $data;
+ public $deleted;
+ public $id;
+ public $kind;
+ public $layerId;
+ public $pageIds;
+ public $selectedText;
+ public $selfLink;
+ public $updated;
+ public $volumeId;
+
+ public function setAnnotationDataId($annotationDataId)
+ {
+ $this->annotationDataId = $annotationDataId;
+ }
+ public function getAnnotationDataId()
+ {
+ return $this->annotationDataId;
+ }
+ public function setAnnotationDataLink($annotationDataLink)
+ {
+ $this->annotationDataLink = $annotationDataLink;
+ }
+ public function getAnnotationDataLink()
+ {
+ return $this->annotationDataLink;
+ }
+ public function setAnnotationType($annotationType)
+ {
+ $this->annotationType = $annotationType;
+ }
+ public function getAnnotationType()
+ {
+ return $this->annotationType;
+ }
+ public function setContentRanges(Google_Service_Books_VolumeannotationContentRanges $contentRanges)
+ {
+ $this->contentRanges = $contentRanges;
+ }
+ public function getContentRanges()
+ {
+ return $this->contentRanges;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLayerId($layerId)
+ {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId()
+ {
+ return $this->layerId;
+ }
+ public function setPageIds($pageIds)
+ {
+ $this->pageIds = $pageIds;
+ }
+ public function getPageIds()
+ {
+ return $this->pageIds;
+ }
+ public function setSelectedText($selectedText)
+ {
+ $this->selectedText = $selectedText;
+ }
+ public function getSelectedText()
+ {
+ return $this->selectedText;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVolumeId($volumeId)
+ {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId()
+ {
+ return $this->volumeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeannotationContentRanges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeannotationContentRanges.php
new file mode 100644
index 00000000..5b9c720a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeannotationContentRanges.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeannotationContentRanges extends Google_Model
+{
+ protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $cfiRangeDataType = '';
+ public $contentVersion;
+ protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $gbImageRangeDataType = '';
+ protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $gbTextRangeDataType = '';
+
+ public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange)
+ {
+ $this->cfiRange = $cfiRange;
+ }
+ public function getCfiRange()
+ {
+ return $this->cfiRange;
+ }
+ public function setContentVersion($contentVersion)
+ {
+ $this->contentVersion = $contentVersion;
+ }
+ public function getContentVersion()
+ {
+ return $this->contentVersion;
+ }
+ public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange)
+ {
+ $this->gbImageRange = $gbImageRange;
+ }
+ public function getGbImageRange()
+ {
+ return $this->gbImageRange;
+ }
+ public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange)
+ {
+ $this->gbTextRange = $gbTextRange;
+ }
+ public function getGbTextRange()
+ {
+ return $this->gbTextRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotations.php
new file mode 100644
index 00000000..f28f199a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeannotations.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Volumeannotations extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_Volumeannotation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+ public $version;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumes.php
new file mode 100644
index 00000000..89f00ff0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumes.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Volumes extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Books_Volume';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeseriesinfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeseriesinfo.php
new file mode 100644
index 00000000..555cf367
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/Volumeseriesinfo.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_Volumeseriesinfo extends Google_Collection
+{
+ protected $collection_key = 'volumeSeries';
+ public $bookDisplayNumber;
+ public $kind;
+ public $shortSeriesBookTitle;
+ protected $volumeSeriesType = 'Google_Service_Books_VolumeseriesinfoVolumeSeries';
+ protected $volumeSeriesDataType = 'array';
+
+ public function setBookDisplayNumber($bookDisplayNumber)
+ {
+ $this->bookDisplayNumber = $bookDisplayNumber;
+ }
+ public function getBookDisplayNumber()
+ {
+ return $this->bookDisplayNumber;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setShortSeriesBookTitle($shortSeriesBookTitle)
+ {
+ $this->shortSeriesBookTitle = $shortSeriesBookTitle;
+ }
+ public function getShortSeriesBookTitle()
+ {
+ return $this->shortSeriesBookTitle;
+ }
+ public function setVolumeSeries($volumeSeries)
+ {
+ $this->volumeSeries = $volumeSeries;
+ }
+ public function getVolumeSeries()
+ {
+ return $this->volumeSeries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeries.php
new file mode 100644
index 00000000..f58238f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeries.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeseriesinfoVolumeSeries extends Google_Collection
+{
+ protected $collection_key = 'issue';
+ protected $issueType = 'Google_Service_Books_VolumeseriesinfoVolumeSeriesIssue';
+ protected $issueDataType = 'array';
+ public $orderNumber;
+ public $seriesBookType;
+ public $seriesId;
+
+ public function setIssue($issue)
+ {
+ $this->issue = $issue;
+ }
+ public function getIssue()
+ {
+ return $this->issue;
+ }
+ public function setOrderNumber($orderNumber)
+ {
+ $this->orderNumber = $orderNumber;
+ }
+ public function getOrderNumber()
+ {
+ return $this->orderNumber;
+ }
+ public function setSeriesBookType($seriesBookType)
+ {
+ $this->seriesBookType = $seriesBookType;
+ }
+ public function getSeriesBookType()
+ {
+ return $this->seriesBookType;
+ }
+ public function setSeriesId($seriesId)
+ {
+ $this->seriesId = $seriesId;
+ }
+ public function getSeriesId()
+ {
+ return $this->seriesId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeriesIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeriesIssue.php
new file mode 100644
index 00000000..4dd85f2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Books/VolumeseriesinfoVolumeSeriesIssue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Books_VolumeseriesinfoVolumeSeriesIssue extends Google_Model
+{
+ public $issueDisplayNumber;
+ public $issueOrderNumber;
+
+ public function setIssueDisplayNumber($issueDisplayNumber)
+ {
+ $this->issueDisplayNumber = $issueDisplayNumber;
+ }
+ public function getIssueDisplayNumber()
+ {
+ return $this->issueDisplayNumber;
+ }
+ public function setIssueOrderNumber($issueOrderNumber)
+ {
+ $this->issueOrderNumber = $issueOrderNumber;
+ }
+ public function getIssueOrderNumber()
+ {
+ return $this->issueOrderNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar.php
new file mode 100644
index 00000000..b1241bd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar.php
@@ -0,0 +1,888 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Calendar (v3).
+ *
+ * <p>
+ * Manipulates events and other calendar data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/google-apps/calendar/firstapp" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Calendar extends Google_Service
+{
+ /** Manage your calendars. */
+ const CALENDAR =
+ "https://www.googleapis.com/auth/calendar";
+ /** View your calendars. */
+ const CALENDAR_READONLY =
+ "https://www.googleapis.com/auth/calendar.readonly";
+
+ public $acl;
+ public $calendarList;
+ public $calendars;
+ public $channels;
+ public $colors;
+ public $events;
+ public $freebusy;
+ public $settings;
+
+ /**
+ * Constructs the internal representation of the Calendar service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'calendar/v3/';
+ $this->version = 'v3';
+ $this->serviceName = 'calendar';
+
+ $this->acl = new Google_Service_Calendar_Resource_Acl(
+ $this,
+ $this->serviceName,
+ 'acl',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'calendars/{calendarId}/acl/{ruleId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ruleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'calendars/{calendarId}/acl/{ruleId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ruleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'calendars/{calendarId}/acl',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'calendars/{calendarId}/acl',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'calendars/{calendarId}/acl/{ruleId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ruleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'calendars/{calendarId}/acl/{ruleId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ruleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'calendars/{calendarId}/acl/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->calendarList = new Google_Service_Calendar_Resource_CalendarList(
+ $this,
+ $this->serviceName,
+ 'calendarList',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'users/me/calendarList/{calendarId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'users/me/calendarList/{calendarId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'users/me/calendarList',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'colorRgbFormat' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/me/calendarList',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'minAccessRole' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'showHidden' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'users/me/calendarList/{calendarId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'colorRgbFormat' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'users/me/calendarList/{calendarId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'colorRgbFormat' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'users/me/calendarList/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'minAccessRole' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'showHidden' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->calendars = new Google_Service_Calendar_Resource_Calendars(
+ $this,
+ $this->serviceName,
+ 'calendars',
+ array(
+ 'methods' => array(
+ 'clear' => array(
+ 'path' => 'calendars/{calendarId}/clear',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'calendars/{calendarId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'calendars/{calendarId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'calendars',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'calendars/{calendarId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'calendars/{calendarId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channels = new Google_Service_Calendar_Resource_Channels(
+ $this,
+ $this->serviceName,
+ 'channels',
+ array(
+ 'methods' => array(
+ 'stop' => array(
+ 'path' => 'channels/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->colors = new Google_Service_Calendar_Resource_Colors(
+ $this,
+ $this->serviceName,
+ 'colors',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'colors',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->events = new Google_Service_Calendar_Resource_Events(
+ $this,
+ $this->serviceName,
+ 'events',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'calendars/{calendarId}/events/{eventId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendNotifications' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'calendars/{calendarId}/events/{eventId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alwaysIncludeEmail' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxAttendees' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'timeZone' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'import' => array(
+ 'path' => 'calendars/{calendarId}/events/import',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'supportsAttachments' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'calendars/{calendarId}/events',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxAttendees' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'sendNotifications' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'supportsAttachments' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'instances' => array(
+ 'path' => 'calendars/{calendarId}/events/{eventId}/instances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alwaysIncludeEmail' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxAttendees' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'originalStart' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'timeMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeZone' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'calendars/{calendarId}/events',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alwaysIncludeEmail' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'iCalUID' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxAttendees' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'privateExtendedProperty' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sharedExtendedProperty' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'showHiddenInvitations' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'singleEvents' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeZone' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'move' => array(
+ 'path' => 'calendars/{calendarId}/events/{eventId}/move',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destination' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendNotifications' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'calendars/{calendarId}/events/{eventId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alwaysIncludeEmail' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxAttendees' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'sendNotifications' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'supportsAttachments' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'quickAdd' => array(
+ 'path' => 'calendars/{calendarId}/events/quickAdd',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'text' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendNotifications' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'calendars/{calendarId}/events/{eventId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alwaysIncludeEmail' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxAttendees' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'sendNotifications' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'supportsAttachments' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'calendars/{calendarId}/events/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'calendarId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alwaysIncludeEmail' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'iCalUID' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxAttendees' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'privateExtendedProperty' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sharedExtendedProperty' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'showHiddenInvitations' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'singleEvents' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeZone' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updatedMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->freebusy = new Google_Service_Calendar_Resource_Freebusy(
+ $this,
+ $this->serviceName,
+ 'freebusy',
+ array(
+ 'methods' => array(
+ 'query' => array(
+ 'path' => 'freeBusy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->settings = new Google_Service_Calendar_Resource_Settings(
+ $this,
+ $this->serviceName,
+ 'settings',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'users/me/settings/{setting}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'setting' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/me/settings',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'users/me/settings/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Acl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Acl.php
new file mode 100644
index 00000000..94b64d21
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Acl.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Acl extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Calendar_AclRule';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $nextSyncToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setNextSyncToken($nextSyncToken)
+ {
+ $this->nextSyncToken = $nextSyncToken;
+ }
+ public function getNextSyncToken()
+ {
+ return $this->nextSyncToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRule.php
new file mode 100644
index 00000000..49402b02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRule.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_AclRule extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ public $role;
+ protected $scopeType = 'Google_Service_Calendar_AclRuleScope';
+ protected $scopeDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setScope(Google_Service_Calendar_AclRuleScope $scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRuleScope.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRuleScope.php
new file mode 100644
index 00000000..47a10b24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/AclRuleScope.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_AclRuleScope extends Google_Model
+{
+ public $type;
+ public $value;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Calendar.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Calendar.php
new file mode 100644
index 00000000..a2bc1e00
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Calendar.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Calendar extends Google_Model
+{
+ public $description;
+ public $etag;
+ public $id;
+ public $kind;
+ public $location;
+ public $summary;
+ public $timeZone;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarList.php
new file mode 100644
index 00000000..79281326
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_CalendarList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Calendar_CalendarListEntry';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $nextSyncToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setNextSyncToken($nextSyncToken)
+ {
+ $this->nextSyncToken = $nextSyncToken;
+ }
+ public function getNextSyncToken()
+ {
+ return $this->nextSyncToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntry.php
new file mode 100644
index 00000000..eb7584b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntry.php
@@ -0,0 +1,186 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_CalendarListEntry extends Google_Collection
+{
+ protected $collection_key = 'defaultReminders';
+ public $accessRole;
+ public $backgroundColor;
+ public $colorId;
+ protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
+ protected $defaultRemindersDataType = 'array';
+ public $deleted;
+ public $description;
+ public $etag;
+ public $foregroundColor;
+ public $hidden;
+ public $id;
+ public $kind;
+ public $location;
+ protected $notificationSettingsType = 'Google_Service_Calendar_CalendarListEntryNotificationSettings';
+ protected $notificationSettingsDataType = '';
+ public $primary;
+ public $selected;
+ public $summary;
+ public $summaryOverride;
+ public $timeZone;
+
+ public function setAccessRole($accessRole)
+ {
+ $this->accessRole = $accessRole;
+ }
+ public function getAccessRole()
+ {
+ return $this->accessRole;
+ }
+ public function setBackgroundColor($backgroundColor)
+ {
+ $this->backgroundColor = $backgroundColor;
+ }
+ public function getBackgroundColor()
+ {
+ return $this->backgroundColor;
+ }
+ public function setColorId($colorId)
+ {
+ $this->colorId = $colorId;
+ }
+ public function getColorId()
+ {
+ return $this->colorId;
+ }
+ public function setDefaultReminders($defaultReminders)
+ {
+ $this->defaultReminders = $defaultReminders;
+ }
+ public function getDefaultReminders()
+ {
+ return $this->defaultReminders;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setForegroundColor($foregroundColor)
+ {
+ $this->foregroundColor = $foregroundColor;
+ }
+ public function getForegroundColor()
+ {
+ return $this->foregroundColor;
+ }
+ public function setHidden($hidden)
+ {
+ $this->hidden = $hidden;
+ }
+ public function getHidden()
+ {
+ return $this->hidden;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setNotificationSettings(Google_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings)
+ {
+ $this->notificationSettings = $notificationSettings;
+ }
+ public function getNotificationSettings()
+ {
+ return $this->notificationSettings;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setSelected($selected)
+ {
+ $this->selected = $selected;
+ }
+ public function getSelected()
+ {
+ return $this->selected;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+ public function setSummaryOverride($summaryOverride)
+ {
+ $this->summaryOverride = $summaryOverride;
+ }
+ public function getSummaryOverride()
+ {
+ return $this->summaryOverride;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntryNotificationSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntryNotificationSettings.php
new file mode 100644
index 00000000..06a9130d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarListEntryNotificationSettings.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection
+{
+ protected $collection_key = 'notifications';
+ protected $notificationsType = 'Google_Service_Calendar_CalendarNotification';
+ protected $notificationsDataType = 'array';
+
+ public function setNotifications($notifications)
+ {
+ $this->notifications = $notifications;
+ }
+ public function getNotifications()
+ {
+ return $this->notifications;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarNotification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarNotification.php
new file mode 100644
index 00000000..7afe4dc9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/CalendarNotification.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_CalendarNotification extends Google_Model
+{
+ public $method;
+ public $type;
+
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Channel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Channel.php
new file mode 100644
index 00000000..cbf151c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Channel.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Channel extends Google_Model
+{
+ public $address;
+ public $expiration;
+ public $id;
+ public $kind;
+ public $params;
+ public $payload;
+ public $resourceId;
+ public $resourceUri;
+ public $token;
+ public $type;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setResourceUri($resourceUri)
+ {
+ $this->resourceUri = $resourceUri;
+ }
+ public function getResourceUri()
+ {
+ return $this->resourceUri;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/ColorDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/ColorDefinition.php
new file mode 100644
index 00000000..f42fd3b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/ColorDefinition.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_ColorDefinition extends Google_Model
+{
+ public $background;
+ public $foreground;
+
+ public function setBackground($background)
+ {
+ $this->background = $background;
+ }
+ public function getBackground()
+ {
+ return $this->background;
+ }
+ public function setForeground($foreground)
+ {
+ $this->foreground = $foreground;
+ }
+ public function getForeground()
+ {
+ return $this->foreground;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Colors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Colors.php
new file mode 100644
index 00000000..1e330ab7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Colors.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Colors extends Google_Model
+{
+ protected $calendarType = 'Google_Service_Calendar_ColorDefinition';
+ protected $calendarDataType = 'map';
+ protected $eventType = 'Google_Service_Calendar_ColorDefinition';
+ protected $eventDataType = 'map';
+ public $kind;
+ public $updated;
+
+ public function setCalendar($calendar)
+ {
+ $this->calendar = $calendar;
+ }
+ public function getCalendar()
+ {
+ return $this->calendar;
+ }
+ public function setEvent($event)
+ {
+ $this->event = $event;
+ }
+ public function getEvent()
+ {
+ return $this->event;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Error.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Error.php
new file mode 100644
index 00000000..22d09b72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Error.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Error extends Google_Model
+{
+ public $domain;
+ public $reason;
+
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Event.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Event.php
new file mode 100644
index 00000000..2d0a00c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Event.php
@@ -0,0 +1,366 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Event extends Google_Collection
+{
+ protected $collection_key = 'recurrence';
+ public $anyoneCanAddSelf;
+ protected $attachmentsType = 'Google_Service_Calendar_EventAttachment';
+ protected $attachmentsDataType = 'array';
+ protected $attendeesType = 'Google_Service_Calendar_EventAttendee';
+ protected $attendeesDataType = 'array';
+ public $attendeesOmitted;
+ public $colorId;
+ public $created;
+ protected $creatorType = 'Google_Service_Calendar_EventCreator';
+ protected $creatorDataType = '';
+ public $description;
+ protected $endType = 'Google_Service_Calendar_EventDateTime';
+ protected $endDataType = '';
+ public $endTimeUnspecified;
+ public $etag;
+ protected $extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties';
+ protected $extendedPropertiesDataType = '';
+ protected $gadgetType = 'Google_Service_Calendar_EventGadget';
+ protected $gadgetDataType = '';
+ public $guestsCanInviteOthers;
+ public $guestsCanModify;
+ public $guestsCanSeeOtherGuests;
+ public $hangoutLink;
+ public $htmlLink;
+ public $iCalUID;
+ public $id;
+ public $kind;
+ public $location;
+ public $locked;
+ protected $organizerType = 'Google_Service_Calendar_EventOrganizer';
+ protected $organizerDataType = '';
+ protected $originalStartTimeType = 'Google_Service_Calendar_EventDateTime';
+ protected $originalStartTimeDataType = '';
+ public $privateCopy;
+ public $recurrence;
+ public $recurringEventId;
+ protected $remindersType = 'Google_Service_Calendar_EventReminders';
+ protected $remindersDataType = '';
+ public $sequence;
+ protected $sourceType = 'Google_Service_Calendar_EventSource';
+ protected $sourceDataType = '';
+ protected $startType = 'Google_Service_Calendar_EventDateTime';
+ protected $startDataType = '';
+ public $status;
+ public $summary;
+ public $transparency;
+ public $updated;
+ public $visibility;
+
+ public function setAnyoneCanAddSelf($anyoneCanAddSelf)
+ {
+ $this->anyoneCanAddSelf = $anyoneCanAddSelf;
+ }
+ public function getAnyoneCanAddSelf()
+ {
+ return $this->anyoneCanAddSelf;
+ }
+ public function setAttachments($attachments)
+ {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments()
+ {
+ return $this->attachments;
+ }
+ public function setAttendees($attendees)
+ {
+ $this->attendees = $attendees;
+ }
+ public function getAttendees()
+ {
+ return $this->attendees;
+ }
+ public function setAttendeesOmitted($attendeesOmitted)
+ {
+ $this->attendeesOmitted = $attendeesOmitted;
+ }
+ public function getAttendeesOmitted()
+ {
+ return $this->attendeesOmitted;
+ }
+ public function setColorId($colorId)
+ {
+ $this->colorId = $colorId;
+ }
+ public function getColorId()
+ {
+ return $this->colorId;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setCreator(Google_Service_Calendar_EventCreator $creator)
+ {
+ $this->creator = $creator;
+ }
+ public function getCreator()
+ {
+ return $this->creator;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEnd(Google_Service_Calendar_EventDateTime $end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setEndTimeUnspecified($endTimeUnspecified)
+ {
+ $this->endTimeUnspecified = $endTimeUnspecified;
+ }
+ public function getEndTimeUnspecified()
+ {
+ return $this->endTimeUnspecified;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setExtendedProperties(Google_Service_Calendar_EventExtendedProperties $extendedProperties)
+ {
+ $this->extendedProperties = $extendedProperties;
+ }
+ public function getExtendedProperties()
+ {
+ return $this->extendedProperties;
+ }
+ public function setGadget(Google_Service_Calendar_EventGadget $gadget)
+ {
+ $this->gadget = $gadget;
+ }
+ public function getGadget()
+ {
+ return $this->gadget;
+ }
+ public function setGuestsCanInviteOthers($guestsCanInviteOthers)
+ {
+ $this->guestsCanInviteOthers = $guestsCanInviteOthers;
+ }
+ public function getGuestsCanInviteOthers()
+ {
+ return $this->guestsCanInviteOthers;
+ }
+ public function setGuestsCanModify($guestsCanModify)
+ {
+ $this->guestsCanModify = $guestsCanModify;
+ }
+ public function getGuestsCanModify()
+ {
+ return $this->guestsCanModify;
+ }
+ public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests)
+ {
+ $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests;
+ }
+ public function getGuestsCanSeeOtherGuests()
+ {
+ return $this->guestsCanSeeOtherGuests;
+ }
+ public function setHangoutLink($hangoutLink)
+ {
+ $this->hangoutLink = $hangoutLink;
+ }
+ public function getHangoutLink()
+ {
+ return $this->hangoutLink;
+ }
+ public function setHtmlLink($htmlLink)
+ {
+ $this->htmlLink = $htmlLink;
+ }
+ public function getHtmlLink()
+ {
+ return $this->htmlLink;
+ }
+ public function setICalUID($iCalUID)
+ {
+ $this->iCalUID = $iCalUID;
+ }
+ public function getICalUID()
+ {
+ return $this->iCalUID;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setLocked($locked)
+ {
+ $this->locked = $locked;
+ }
+ public function getLocked()
+ {
+ return $this->locked;
+ }
+ public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer)
+ {
+ $this->organizer = $organizer;
+ }
+ public function getOrganizer()
+ {
+ return $this->organizer;
+ }
+ public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $originalStartTime)
+ {
+ $this->originalStartTime = $originalStartTime;
+ }
+ public function getOriginalStartTime()
+ {
+ return $this->originalStartTime;
+ }
+ public function setPrivateCopy($privateCopy)
+ {
+ $this->privateCopy = $privateCopy;
+ }
+ public function getPrivateCopy()
+ {
+ return $this->privateCopy;
+ }
+ public function setRecurrence($recurrence)
+ {
+ $this->recurrence = $recurrence;
+ }
+ public function getRecurrence()
+ {
+ return $this->recurrence;
+ }
+ public function setRecurringEventId($recurringEventId)
+ {
+ $this->recurringEventId = $recurringEventId;
+ }
+ public function getRecurringEventId()
+ {
+ return $this->recurringEventId;
+ }
+ public function setReminders(Google_Service_Calendar_EventReminders $reminders)
+ {
+ $this->reminders = $reminders;
+ }
+ public function getReminders()
+ {
+ return $this->reminders;
+ }
+ public function setSequence($sequence)
+ {
+ $this->sequence = $sequence;
+ }
+ public function getSequence()
+ {
+ return $this->sequence;
+ }
+ public function setSource(Google_Service_Calendar_EventSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setStart(Google_Service_Calendar_EventDateTime $start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+ public function setTransparency($transparency)
+ {
+ $this->transparency = $transparency;
+ }
+ public function getTransparency()
+ {
+ return $this->transparency;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVisibility($visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttachment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttachment.php
new file mode 100644
index 00000000..8f3d6e24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttachment.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventAttachment extends Google_Model
+{
+ public $fileId;
+ public $fileUrl;
+ public $iconLink;
+ public $mimeType;
+ public $title;
+
+ public function setFileId($fileId)
+ {
+ $this->fileId = $fileId;
+ }
+ public function getFileId()
+ {
+ return $this->fileId;
+ }
+ public function setFileUrl($fileUrl)
+ {
+ $this->fileUrl = $fileUrl;
+ }
+ public function getFileUrl()
+ {
+ return $this->fileUrl;
+ }
+ public function setIconLink($iconLink)
+ {
+ $this->iconLink = $iconLink;
+ }
+ public function getIconLink()
+ {
+ return $this->iconLink;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttendee.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttendee.php
new file mode 100644
index 00000000..78572b03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventAttendee.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventAttendee extends Google_Model
+{
+ public $additionalGuests;
+ public $comment;
+ public $displayName;
+ public $email;
+ public $id;
+ public $optional;
+ public $organizer;
+ public $resource;
+ public $responseStatus;
+ public $self;
+
+ public function setAdditionalGuests($additionalGuests)
+ {
+ $this->additionalGuests = $additionalGuests;
+ }
+ public function getAdditionalGuests()
+ {
+ return $this->additionalGuests;
+ }
+ public function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setOptional($optional)
+ {
+ $this->optional = $optional;
+ }
+ public function getOptional()
+ {
+ return $this->optional;
+ }
+ public function setOrganizer($organizer)
+ {
+ $this->organizer = $organizer;
+ }
+ public function getOrganizer()
+ {
+ return $this->organizer;
+ }
+ public function setResource($resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+ public function setResponseStatus($responseStatus)
+ {
+ $this->responseStatus = $responseStatus;
+ }
+ public function getResponseStatus()
+ {
+ return $this->responseStatus;
+ }
+ public function setSelf($self)
+ {
+ $this->self = $self;
+ }
+ public function getSelf()
+ {
+ return $this->self;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventCreator.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventCreator.php
new file mode 100644
index 00000000..5ab38f69
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventCreator.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventCreator extends Google_Model
+{
+ public $displayName;
+ public $email;
+ public $id;
+ public $self;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSelf($self)
+ {
+ $this->self = $self;
+ }
+ public function getSelf()
+ {
+ return $this->self;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventDateTime.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventDateTime.php
new file mode 100644
index 00000000..f47a3772
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventDateTime.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventDateTime extends Google_Model
+{
+ public $date;
+ public $dateTime;
+ public $timeZone;
+
+ public function setDate($date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setDateTime($dateTime)
+ {
+ $this->dateTime = $dateTime;
+ }
+ public function getDateTime()
+ {
+ return $this->dateTime;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventExtendedProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventExtendedProperties.php
new file mode 100644
index 00000000..7efb26d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventExtendedProperties.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventExtendedProperties extends Google_Model
+{
+ public $private;
+ public $shared;
+
+ public function setPrivate($private)
+ {
+ $this->private = $private;
+ }
+ public function getPrivate()
+ {
+ return $this->private;
+ }
+ public function setShared($shared)
+ {
+ $this->shared = $shared;
+ }
+ public function getShared()
+ {
+ return $this->shared;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventGadget.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventGadget.php
new file mode 100644
index 00000000..78844e5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventGadget.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventGadget extends Google_Model
+{
+ public $display;
+ public $height;
+ public $iconLink;
+ public $link;
+ public $preferences;
+ public $title;
+ public $type;
+ public $width;
+
+ public function setDisplay($display)
+ {
+ $this->display = $display;
+ }
+ public function getDisplay()
+ {
+ return $this->display;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setIconLink($iconLink)
+ {
+ $this->iconLink = $iconLink;
+ }
+ public function getIconLink()
+ {
+ return $this->iconLink;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setPreferences($preferences)
+ {
+ $this->preferences = $preferences;
+ }
+ public function getPreferences()
+ {
+ return $this->preferences;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventOrganizer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventOrganizer.php
new file mode 100644
index 00000000..5f3a658b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventOrganizer.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventOrganizer extends Google_Model
+{
+ public $displayName;
+ public $email;
+ public $id;
+ public $self;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSelf($self)
+ {
+ $this->self = $self;
+ }
+ public function getSelf()
+ {
+ return $this->self;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminder.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminder.php
new file mode 100644
index 00000000..3ad8c1ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminder.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventReminder extends Google_Model
+{
+ public $method;
+ public $minutes;
+
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setMinutes($minutes)
+ {
+ $this->minutes = $minutes;
+ }
+ public function getMinutes()
+ {
+ return $this->minutes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminders.php
new file mode 100644
index 00000000..d2f4c2a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventReminders.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventReminders extends Google_Collection
+{
+ protected $collection_key = 'overrides';
+ protected $overridesType = 'Google_Service_Calendar_EventReminder';
+ protected $overridesDataType = 'array';
+ public $useDefault;
+
+ public function setOverrides($overrides)
+ {
+ $this->overrides = $overrides;
+ }
+ public function getOverrides()
+ {
+ return $this->overrides;
+ }
+ public function setUseDefault($useDefault)
+ {
+ $this->useDefault = $useDefault;
+ }
+ public function getUseDefault()
+ {
+ return $this->useDefault;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventSource.php
new file mode 100644
index 00000000..f209c172
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/EventSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_EventSource extends Google_Model
+{
+ public $title;
+ public $url;
+
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Events.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Events.php
new file mode 100644
index 00000000..ee9e5be2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Events.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Events extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $accessRole;
+ protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
+ protected $defaultRemindersDataType = 'array';
+ public $description;
+ public $etag;
+ protected $itemsType = 'Google_Service_Calendar_Event';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $nextSyncToken;
+ public $summary;
+ public $timeZone;
+ public $updated;
+
+ public function setAccessRole($accessRole)
+ {
+ $this->accessRole = $accessRole;
+ }
+ public function getAccessRole()
+ {
+ return $this->accessRole;
+ }
+ public function setDefaultReminders($defaultReminders)
+ {
+ $this->defaultReminders = $defaultReminders;
+ }
+ public function getDefaultReminders()
+ {
+ return $this->defaultReminders;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setNextSyncToken($nextSyncToken)
+ {
+ $this->nextSyncToken = $nextSyncToken;
+ }
+ public function getNextSyncToken()
+ {
+ return $this->nextSyncToken;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyCalendar.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyCalendar.php
new file mode 100644
index 00000000..6fe872eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyCalendar.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $busyType = 'Google_Service_Calendar_TimePeriod';
+ protected $busyDataType = 'array';
+ protected $errorsType = 'Google_Service_Calendar_Error';
+ protected $errorsDataType = 'array';
+
+ public function setBusy($busy)
+ {
+ $this->busy = $busy;
+ }
+ public function getBusy()
+ {
+ return $this->busy;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyGroup.php
new file mode 100644
index 00000000..b1f95ea8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyGroup.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_FreeBusyGroup extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ public $calendars;
+ protected $errorsType = 'Google_Service_Calendar_Error';
+ protected $errorsDataType = 'array';
+
+ public function setCalendars($calendars)
+ {
+ $this->calendars = $calendars;
+ }
+ public function getCalendars()
+ {
+ return $this->calendars;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequest.php
new file mode 100644
index 00000000..c0ffd291
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequest.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_FreeBusyRequest extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $calendarExpansionMax;
+ public $groupExpansionMax;
+ protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem';
+ protected $itemsDataType = 'array';
+ public $timeMax;
+ public $timeMin;
+ public $timeZone;
+
+ public function setCalendarExpansionMax($calendarExpansionMax)
+ {
+ $this->calendarExpansionMax = $calendarExpansionMax;
+ }
+ public function getCalendarExpansionMax()
+ {
+ return $this->calendarExpansionMax;
+ }
+ public function setGroupExpansionMax($groupExpansionMax)
+ {
+ $this->groupExpansionMax = $groupExpansionMax;
+ }
+ public function getGroupExpansionMax()
+ {
+ return $this->groupExpansionMax;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setTimeMax($timeMax)
+ {
+ $this->timeMax = $timeMax;
+ }
+ public function getTimeMax()
+ {
+ return $this->timeMax;
+ }
+ public function setTimeMin($timeMin)
+ {
+ $this->timeMin = $timeMin;
+ }
+ public function getTimeMin()
+ {
+ return $this->timeMin;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequestItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequestItem.php
new file mode 100644
index 00000000..f67c9eb2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyRequestItem.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model
+{
+ public $id;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyResponse.php
new file mode 100644
index 00000000..cfa74d8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/FreeBusyResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_FreeBusyResponse extends Google_Model
+{
+ protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar';
+ protected $calendarsDataType = 'map';
+ protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup';
+ protected $groupsDataType = 'map';
+ public $kind;
+ public $timeMax;
+ public $timeMin;
+
+ public function setCalendars($calendars)
+ {
+ $this->calendars = $calendars;
+ }
+ public function getCalendars()
+ {
+ return $this->calendars;
+ }
+ public function setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTimeMax($timeMax)
+ {
+ $this->timeMax = $timeMax;
+ }
+ public function getTimeMax()
+ {
+ return $this->timeMax;
+ }
+ public function setTimeMin($timeMin)
+ {
+ $this->timeMin = $timeMin;
+ }
+ public function getTimeMin()
+ {
+ return $this->timeMin;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Acl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Acl.php
new file mode 100644
index 00000000..3d1b6650
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Acl.php
@@ -0,0 +1,177 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "acl" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $acl = $calendarService->acl;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_Acl extends Google_Service_Resource
+{
+ /**
+ * Deletes an access control rule. (acl.delete)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $ruleId ACL rule identifier.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($calendarId, $ruleId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns an access control rule. (acl.get)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $ruleId ACL rule identifier.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_AclRule
+ */
+ public function get($calendarId, $ruleId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Calendar_AclRule");
+ }
+ /**
+ * Creates an access control rule. (acl.insert)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_AclRule $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_AclRule
+ */
+ public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Calendar_AclRule");
+ }
+ /**
+ * Returns the rules in the access control list for the calendar. (acl.listAcl)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of entries returned on one result
+ * page. By default the value is 100 entries. The page size can never be larger
+ * than 250 entries. Optional.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param bool showDeleted Whether to include deleted ACLs in the result.
+ * Deleted ACLs are represented by role equal to "none". Deleted ACLs will
+ * always be included if syncToken is provided. Optional. The default is False.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. All entries deleted since the previous list request will always be in
+ * the result set and it is not allowed to set showDeleted to False. If the
+ * syncToken expires, the server will respond with a 410 GONE response code and
+ * the client should clear its storage and perform a full synchronization
+ * without any syncToken. Learn more about incremental synchronization.
+ * Optional. The default is to return all entries.
+ * @return Google_Service_Calendar_Acl
+ */
+ public function listAcl($calendarId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Calendar_Acl");
+ }
+ /**
+ * Updates an access control rule. This method supports patch semantics.
+ * (acl.patch)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $ruleId ACL rule identifier.
+ * @param Google_Service_Calendar_AclRule $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_AclRule
+ */
+ public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Calendar_AclRule");
+ }
+ /**
+ * Updates an access control rule. (acl.update)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $ruleId ACL rule identifier.
+ * @param Google_Service_Calendar_AclRule $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_AclRule
+ */
+ public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Calendar_AclRule");
+ }
+ /**
+ * Watch for changes to ACL resources. (acl.watch)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of entries returned on one result
+ * page. By default the value is 100 entries. The page size can never be larger
+ * than 250 entries. Optional.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param bool showDeleted Whether to include deleted ACLs in the result.
+ * Deleted ACLs are represented by role equal to "none". Deleted ACLs will
+ * always be included if syncToken is provided. Optional. The default is False.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. All entries deleted since the previous list request will always be in
+ * the result set and it is not allowed to set showDeleted to False. If the
+ * syncToken expires, the server will respond with a 410 GONE response code and
+ * the client should clear its storage and perform a full synchronization
+ * without any syncToken. Learn more about incremental synchronization.
+ * Optional. The default is to return all entries.
+ * @return Google_Service_Calendar_Channel
+ */
+ public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php
new file mode 100644
index 00000000..751b2b1a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/CalendarList.php
@@ -0,0 +1,191 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "calendarList" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $calendarList = $calendarService->calendarList;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_CalendarList extends Google_Service_Resource
+{
+ /**
+ * Deletes an entry on the user's calendar list. (calendarList.delete)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($calendarId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns an entry on the user's calendar list. (calendarList.get)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_CalendarListEntry
+ */
+ public function get($calendarId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry");
+ }
+ /**
+ * Adds an entry to the user's calendar list. (calendarList.insert)
+ *
+ * @param Google_Service_Calendar_CalendarListEntry $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool colorRgbFormat Whether to use the foregroundColor and
+ * backgroundColor fields to write the calendar colors (RGB). If this feature is
+ * used, the index-based colorId field will be set to the best matching option
+ * automatically. Optional. The default is False.
+ * @return Google_Service_Calendar_CalendarListEntry
+ */
+ public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry");
+ }
+ /**
+ * Returns entries on the user's calendar list. (calendarList.listCalendarList)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of entries returned on one result
+ * page. By default the value is 100 entries. The page size can never be larger
+ * than 250 entries. Optional.
+ * @opt_param string minAccessRole The minimum access role for the user in the
+ * returned entries. Optional. The default is no restriction.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param bool showDeleted Whether to include deleted calendar list entries
+ * in the result. Optional. The default is False.
+ * @opt_param bool showHidden Whether to show hidden entries. Optional. The
+ * default is False.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. If only read-only fields such as calendar properties or ACLs have
+ * changed, the entry won't be returned. All entries deleted and hidden since
+ * the previous list request will always be in the result set and it is not
+ * allowed to set showDeleted neither showHidden to False. To ensure client
+ * state consistency minAccessRole query parameter cannot be specified together
+ * with nextSyncToken. If the syncToken expires, the server will respond with a
+ * 410 GONE response code and the client should clear its storage and perform a
+ * full synchronization without any syncToken. Learn more about incremental
+ * synchronization. Optional. The default is to return all entries.
+ * @return Google_Service_Calendar_CalendarList
+ */
+ public function listCalendarList($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Calendar_CalendarList");
+ }
+ /**
+ * Updates an entry on the user's calendar list. This method supports patch
+ * semantics. (calendarList.patch)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_CalendarListEntry $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool colorRgbFormat Whether to use the foregroundColor and
+ * backgroundColor fields to write the calendar colors (RGB). If this feature is
+ * used, the index-based colorId field will be set to the best matching option
+ * automatically. Optional. The default is False.
+ * @return Google_Service_Calendar_CalendarListEntry
+ */
+ public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry");
+ }
+ /**
+ * Updates an entry on the user's calendar list. (calendarList.update)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_CalendarListEntry $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool colorRgbFormat Whether to use the foregroundColor and
+ * backgroundColor fields to write the calendar colors (RGB). If this feature is
+ * used, the index-based colorId field will be set to the best matching option
+ * automatically. Optional. The default is False.
+ * @return Google_Service_Calendar_CalendarListEntry
+ */
+ public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry");
+ }
+ /**
+ * Watch for changes to CalendarList resources. (calendarList.watch)
+ *
+ * @param Google_Service_Calendar_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of entries returned on one result
+ * page. By default the value is 100 entries. The page size can never be larger
+ * than 250 entries. Optional.
+ * @opt_param string minAccessRole The minimum access role for the user in the
+ * returned entries. Optional. The default is no restriction.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param bool showDeleted Whether to include deleted calendar list entries
+ * in the result. Optional. The default is False.
+ * @opt_param bool showHidden Whether to show hidden entries. Optional. The
+ * default is False.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. If only read-only fields such as calendar properties or ACLs have
+ * changed, the entry won't be returned. All entries deleted and hidden since
+ * the previous list request will always be in the result set and it is not
+ * allowed to set showDeleted neither showHidden to False. To ensure client
+ * state consistency minAccessRole query parameter cannot be specified together
+ * with nextSyncToken. If the syncToken expires, the server will respond with a
+ * 410 GONE response code and the client should clear its storage and perform a
+ * full synchronization without any syncToken. Learn more about incremental
+ * synchronization. Optional. The default is to return all entries.
+ * @return Google_Service_Calendar_Channel
+ */
+ public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Calendars.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Calendars.php
new file mode 100644
index 00000000..9471e9b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Calendars.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "calendars" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $calendars = $calendarService->calendars;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_Calendars extends Google_Service_Resource
+{
+ /**
+ * Clears a primary calendar. This operation deletes all events associated with
+ * the primary calendar of an account. (calendars.clear)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param array $optParams Optional parameters.
+ */
+ public function clear($calendarId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ return $this->call('clear', array($params));
+ }
+ /**
+ * Deletes a secondary calendar. Use calendars.clear for clearing all events on
+ * primary calendars. (calendars.delete)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($calendarId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns metadata for a calendar. (calendars.get)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Calendar
+ */
+ public function get($calendarId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Calendar_Calendar");
+ }
+ /**
+ * Creates a secondary calendar. (calendars.insert)
+ *
+ * @param Google_Service_Calendar_Calendar $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Calendar
+ */
+ public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Calendar_Calendar");
+ }
+ /**
+ * Updates metadata for a calendar. This method supports patch semantics.
+ * (calendars.patch)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_Calendar $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Calendar
+ */
+ public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Calendar_Calendar");
+ }
+ /**
+ * Updates metadata for a calendar. (calendars.update)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_Calendar $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Calendar
+ */
+ public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Calendar_Calendar");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Channels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Channels.php
new file mode 100644
index 00000000..35254316
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Channels.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $channels = $calendarService->channels;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_Channels extends Google_Service_Resource
+{
+ /**
+ * Stop watching resources through this channel (channels.stop)
+ *
+ * @param Google_Service_Calendar_Channel $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Colors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Colors.php
new file mode 100644
index 00000000..4d281a04
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Colors.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "colors" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $colors = $calendarService->colors;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_Colors extends Google_Service_Resource
+{
+ /**
+ * Returns the color definitions for calendars and events. (colors.get)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Colors
+ */
+ public function get($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Calendar_Colors");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php
new file mode 100644
index 00000000..53c89ce6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Events.php
@@ -0,0 +1,440 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "events" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $events = $calendarService->events;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_Events extends Google_Service_Resource
+{
+ /**
+ * Deletes an event. (events.delete)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $eventId Event identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool sendNotifications Whether to send notifications about the
+ * deletion of the event. Optional. The default is False.
+ */
+ public function delete($calendarId, $eventId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns an event. (events.get)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $eventId Event identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
+ * email field for the organizer, creator and attendees, even if no real email
+ * is available (i.e. a generated, non-working value will be provided). The use
+ * of this option is discouraged and should only be used by clients which cannot
+ * handle the absence of an email address value in the mentioned places.
+ * Optional. The default is False.
+ * @opt_param int maxAttendees The maximum number of attendees to include in the
+ * response. If there are more than the specified number of attendees, only the
+ * participant is returned. Optional.
+ * @opt_param string timeZone Time zone used in the response. Optional. The
+ * default is the time zone of the calendar.
+ * @return Google_Service_Calendar_Event
+ */
+ public function get($calendarId, $eventId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Calendar_Event");
+ }
+ /**
+ * Imports an event. This operation is used to add a private copy of an existing
+ * event to a calendar. (events.import)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_Event $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool supportsAttachments Whether API client performing operation
+ * supports event attachments. Optional. The default is False.
+ * @return Google_Service_Calendar_Event
+ */
+ public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('import', array($params), "Google_Service_Calendar_Event");
+ }
+ /**
+ * Creates an event. (events.insert)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_Event $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxAttendees The maximum number of attendees to include in the
+ * response. If there are more than the specified number of attendees, only the
+ * participant is returned. Optional.
+ * @opt_param bool sendNotifications Whether to send notifications about the
+ * creation of the new event. Optional. The default is False.
+ * @opt_param bool supportsAttachments Whether API client performing operation
+ * supports event attachments. Optional. The default is False.
+ * @return Google_Service_Calendar_Event
+ */
+ public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Calendar_Event");
+ }
+ /**
+ * Returns instances of the specified recurring event. (events.instances)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $eventId Recurring event identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
+ * email field for the organizer, creator and attendees, even if no real email
+ * is available (i.e. a generated, non-working value will be provided). The use
+ * of this option is discouraged and should only be used by clients which cannot
+ * handle the absence of an email address value in the mentioned places.
+ * Optional. The default is False.
+ * @opt_param int maxAttendees The maximum number of attendees to include in the
+ * response. If there are more than the specified number of attendees, only the
+ * participant is returned. Optional.
+ * @opt_param int maxResults Maximum number of events returned on one result
+ * page. By default the value is 250 events. The page size can never be larger
+ * than 2500 events. Optional.
+ * @opt_param string originalStart The original start time of the instance in
+ * the result. Optional.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param bool showDeleted Whether to include deleted events (with status
+ * equals "cancelled") in the result. Cancelled instances of recurring events
+ * will still be included if singleEvents is False. Optional. The default is
+ * False.
+ * @opt_param string timeMax Upper bound (exclusive) for an event's start time
+ * to filter by. Optional. The default is not to filter by start time. Must be
+ * an RFC3339 timestamp with mandatory time zone offset.
+ * @opt_param string timeMin Lower bound (inclusive) for an event's end time to
+ * filter by. Optional. The default is not to filter by end time. Must be an
+ * RFC3339 timestamp with mandatory time zone offset.
+ * @opt_param string timeZone Time zone used in the response. Optional. The
+ * default is the time zone of the calendar.
+ * @return Google_Service_Calendar_Events
+ */
+ public function instances($calendarId, $eventId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
+ $params = array_merge($params, $optParams);
+ return $this->call('instances', array($params), "Google_Service_Calendar_Events");
+ }
+ /**
+ * Returns events on the specified calendar. (events.listEvents)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
+ * email field for the organizer, creator and attendees, even if no real email
+ * is available (i.e. a generated, non-working value will be provided). The use
+ * of this option is discouraged and should only be used by clients which cannot
+ * handle the absence of an email address value in the mentioned places.
+ * Optional. The default is False.
+ * @opt_param string iCalUID Specifies event ID in the iCalendar format to be
+ * included in the response. Optional.
+ * @opt_param int maxAttendees The maximum number of attendees to include in the
+ * response. If there are more than the specified number of attendees, only the
+ * participant is returned. Optional.
+ * @opt_param int maxResults Maximum number of events returned on one result
+ * page. By default the value is 250 events. The page size can never be larger
+ * than 2500 events. Optional.
+ * @opt_param string orderBy The order of the events returned in the result.
+ * Optional. The default is an unspecified, stable order.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param string privateExtendedProperty Extended properties constraint
+ * specified as propertyName=value. Matches only private properties. This
+ * parameter might be repeated multiple times to return events that match all
+ * given constraints.
+ * @opt_param string q Free text search terms to find events that match these
+ * terms in any field, except for extended properties. Optional.
+ * @opt_param string sharedExtendedProperty Extended properties constraint
+ * specified as propertyName=value. Matches only shared properties. This
+ * parameter might be repeated multiple times to return events that match all
+ * given constraints.
+ * @opt_param bool showDeleted Whether to include deleted events (with status
+ * equals "cancelled") in the result. Cancelled instances of recurring events
+ * (but not the underlying recurring event) will still be included if
+ * showDeleted and singleEvents are both False. If showDeleted and singleEvents
+ * are both True, only single instances of deleted events (but not the
+ * underlying recurring events) are returned. Optional. The default is False.
+ * @opt_param bool showHiddenInvitations Whether to include hidden invitations
+ * in the result. Optional. The default is False.
+ * @opt_param bool singleEvents Whether to expand recurring events into
+ * instances and only return single one-off events and instances of recurring
+ * events, but not the underlying recurring events themselves. Optional. The
+ * default is False.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. All events deleted since the previous list request will always be in
+ * the result set and it is not allowed to set showDeleted to False. There are
+ * several query parameters that cannot be specified together with nextSyncToken
+ * to ensure consistency of the client state.
+ *
+ * These are: - iCalUID - orderBy - privateExtendedProperty - q -
+ * sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken
+ * expires, the server will respond with a 410 GONE response code and the client
+ * should clear its storage and perform a full synchronization without any
+ * syncToken. Learn more about incremental synchronization. Optional. The
+ * default is to return all entries.
+ * @opt_param string timeMax Upper bound (exclusive) for an event's start time
+ * to filter by. Optional. The default is not to filter by start time. Must be
+ * an RFC3339 timestamp with mandatory time zone offset, e.g.,
+ * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
+ * but will be ignored.
+ * @opt_param string timeMin Lower bound (inclusive) for an event's end time to
+ * filter by. Optional. The default is not to filter by end time. Must be an
+ * RFC3339 timestamp with mandatory time zone offset, e.g.,
+ * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
+ * but will be ignored.
+ * @opt_param string timeZone Time zone used in the response. Optional. The
+ * default is the time zone of the calendar.
+ * @opt_param string updatedMin Lower bound for an event's last modification
+ * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted
+ * since this time will always be included regardless of showDeleted. Optional.
+ * The default is not to filter by last modification time.
+ * @return Google_Service_Calendar_Events
+ */
+ public function listEvents($calendarId, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Calendar_Events");
+ }
+ /**
+ * Moves an event to another calendar, i.e. changes an event's organizer.
+ * (events.move)
+ *
+ * @param string $calendarId Calendar identifier of the source calendar where
+ * the event currently is on.
+ * @param string $eventId Event identifier.
+ * @param string $destination Calendar identifier of the target calendar where
+ * the event is to be moved to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool sendNotifications Whether to send notifications about the
+ * change of the event's organizer. Optional. The default is False.
+ * @return Google_Service_Calendar_Event
+ */
+ public function move($calendarId, $eventId, $destination, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
+ $params = array_merge($params, $optParams);
+ return $this->call('move', array($params), "Google_Service_Calendar_Event");
+ }
+ /**
+ * Updates an event. This method supports patch semantics. (events.patch)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $eventId Event identifier.
+ * @param Google_Service_Calendar_Event $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
+ * email field for the organizer, creator and attendees, even if no real email
+ * is available (i.e. a generated, non-working value will be provided). The use
+ * of this option is discouraged and should only be used by clients which cannot
+ * handle the absence of an email address value in the mentioned places.
+ * Optional. The default is False.
+ * @opt_param int maxAttendees The maximum number of attendees to include in the
+ * response. If there are more than the specified number of attendees, only the
+ * participant is returned. Optional.
+ * @opt_param bool sendNotifications Whether to send notifications about the
+ * event update (e.g. attendee's responses, title changes, etc.). Optional. The
+ * default is False.
+ * @opt_param bool supportsAttachments Whether API client performing operation
+ * supports event attachments. Optional. The default is False.
+ * @return Google_Service_Calendar_Event
+ */
+ public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Calendar_Event");
+ }
+ /**
+ * Creates an event based on a simple text string. (events.quickAdd)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $text The text describing the event to be created.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool sendNotifications Whether to send notifications about the
+ * creation of the event. Optional. The default is False.
+ * @return Google_Service_Calendar_Event
+ */
+ public function quickAdd($calendarId, $text, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'text' => $text);
+ $params = array_merge($params, $optParams);
+ return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event");
+ }
+ /**
+ * Updates an event. (events.update)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param string $eventId Event identifier.
+ * @param Google_Service_Calendar_Event $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
+ * email field for the organizer, creator and attendees, even if no real email
+ * is available (i.e. a generated, non-working value will be provided). The use
+ * of this option is discouraged and should only be used by clients which cannot
+ * handle the absence of an email address value in the mentioned places.
+ * Optional. The default is False.
+ * @opt_param int maxAttendees The maximum number of attendees to include in the
+ * response. If there are more than the specified number of attendees, only the
+ * participant is returned. Optional.
+ * @opt_param bool sendNotifications Whether to send notifications about the
+ * event update (e.g. attendee's responses, title changes, etc.). Optional. The
+ * default is False.
+ * @opt_param bool supportsAttachments Whether API client performing operation
+ * supports event attachments. Optional. The default is False.
+ * @return Google_Service_Calendar_Event
+ */
+ public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Calendar_Event");
+ }
+ /**
+ * Watch for changes to Events resources. (events.watch)
+ *
+ * @param string $calendarId Calendar identifier. To retrieve calendar IDs call
+ * the calendarList.list method. If you want to access the primary calendar of
+ * the currently logged in user, use the "primary" keyword.
+ * @param Google_Service_Calendar_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
+ * email field for the organizer, creator and attendees, even if no real email
+ * is available (i.e. a generated, non-working value will be provided). The use
+ * of this option is discouraged and should only be used by clients which cannot
+ * handle the absence of an email address value in the mentioned places.
+ * Optional. The default is False.
+ * @opt_param string iCalUID Specifies event ID in the iCalendar format to be
+ * included in the response. Optional.
+ * @opt_param int maxAttendees The maximum number of attendees to include in the
+ * response. If there are more than the specified number of attendees, only the
+ * participant is returned. Optional.
+ * @opt_param int maxResults Maximum number of events returned on one result
+ * page. By default the value is 250 events. The page size can never be larger
+ * than 2500 events. Optional.
+ * @opt_param string orderBy The order of the events returned in the result.
+ * Optional. The default is an unspecified, stable order.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param string privateExtendedProperty Extended properties constraint
+ * specified as propertyName=value. Matches only private properties. This
+ * parameter might be repeated multiple times to return events that match all
+ * given constraints.
+ * @opt_param string q Free text search terms to find events that match these
+ * terms in any field, except for extended properties. Optional.
+ * @opt_param string sharedExtendedProperty Extended properties constraint
+ * specified as propertyName=value. Matches only shared properties. This
+ * parameter might be repeated multiple times to return events that match all
+ * given constraints.
+ * @opt_param bool showDeleted Whether to include deleted events (with status
+ * equals "cancelled") in the result. Cancelled instances of recurring events
+ * (but not the underlying recurring event) will still be included if
+ * showDeleted and singleEvents are both False. If showDeleted and singleEvents
+ * are both True, only single instances of deleted events (but not the
+ * underlying recurring events) are returned. Optional. The default is False.
+ * @opt_param bool showHiddenInvitations Whether to include hidden invitations
+ * in the result. Optional. The default is False.
+ * @opt_param bool singleEvents Whether to expand recurring events into
+ * instances and only return single one-off events and instances of recurring
+ * events, but not the underlying recurring events themselves. Optional. The
+ * default is False.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. All events deleted since the previous list request will always be in
+ * the result set and it is not allowed to set showDeleted to False. There are
+ * several query parameters that cannot be specified together with nextSyncToken
+ * to ensure consistency of the client state.
+ *
+ * These are: - iCalUID - orderBy - privateExtendedProperty - q -
+ * sharedExtendedProperty - timeMin - timeMax - updatedMin If the syncToken
+ * expires, the server will respond with a 410 GONE response code and the client
+ * should clear its storage and perform a full synchronization without any
+ * syncToken. Learn more about incremental synchronization. Optional. The
+ * default is to return all entries.
+ * @opt_param string timeMax Upper bound (exclusive) for an event's start time
+ * to filter by. Optional. The default is not to filter by start time. Must be
+ * an RFC3339 timestamp with mandatory time zone offset, e.g.,
+ * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
+ * but will be ignored.
+ * @opt_param string timeMin Lower bound (inclusive) for an event's end time to
+ * filter by. Optional. The default is not to filter by end time. Must be an
+ * RFC3339 timestamp with mandatory time zone offset, e.g.,
+ * 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
+ * but will be ignored.
+ * @opt_param string timeZone Time zone used in the response. Optional. The
+ * default is the time zone of the calendar.
+ * @opt_param string updatedMin Lower bound for an event's last modification
+ * time (as a RFC3339 timestamp) to filter by. When specified, entries deleted
+ * since this time will always be included regardless of showDeleted. Optional.
+ * The default is not to filter by last modification time.
+ * @return Google_Service_Calendar_Channel
+ */
+ public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array())
+ {
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Freebusy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Freebusy.php
new file mode 100644
index 00000000..76791c78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Freebusy.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "freebusy" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $freebusy = $calendarService->freebusy;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_Freebusy extends Google_Service_Resource
+{
+ /**
+ * Returns free/busy information for a set of calendars. (freebusy.query)
+ *
+ * @param Google_Service_Calendar_FreeBusyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_FreeBusyResponse
+ */
+ public function query(Google_Service_Calendar_FreeBusyRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('query', array($params), "Google_Service_Calendar_FreeBusyResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Settings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Settings.php
new file mode 100644
index 00000000..1b2a9370
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Resource/Settings.php
@@ -0,0 +1,92 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "settings" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $calendarService = new Google_Service_Calendar(...);
+ * $settings = $calendarService->settings;
+ * </code>
+ */
+class Google_Service_Calendar_Resource_Settings extends Google_Service_Resource
+{
+ /**
+ * Returns a single user setting. (settings.get)
+ *
+ * @param string $setting The id of the user setting.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Setting
+ */
+ public function get($setting, $optParams = array())
+ {
+ $params = array('setting' => $setting);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Calendar_Setting");
+ }
+ /**
+ * Returns all user settings for the authenticated user. (settings.listSettings)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of entries returned on one result
+ * page. By default the value is 100 entries. The page size can never be larger
+ * than 250 entries. Optional.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. If the syncToken expires, the server will respond with a 410 GONE
+ * response code and the client should clear its storage and perform a full
+ * synchronization without any syncToken. Learn more about incremental
+ * synchronization. Optional. The default is to return all entries.
+ * @return Google_Service_Calendar_Settings
+ */
+ public function listSettings($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Calendar_Settings");
+ }
+ /**
+ * Watch for changes to Settings resources. (settings.watch)
+ *
+ * @param Google_Service_Calendar_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of entries returned on one result
+ * page. By default the value is 100 entries. The page size can never be larger
+ * than 250 entries. Optional.
+ * @opt_param string pageToken Token specifying which result page to return.
+ * Optional.
+ * @opt_param string syncToken Token obtained from the nextSyncToken field
+ * returned on the last page of results from the previous list request. It makes
+ * the result of this list request contain only entries that have changed since
+ * then. If the syncToken expires, the server will respond with a 410 GONE
+ * response code and the client should clear its storage and perform a full
+ * synchronization without any syncToken. Learn more about incremental
+ * synchronization. Optional. The default is to return all entries.
+ * @return Google_Service_Calendar_Channel
+ */
+ public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Setting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Setting.php
new file mode 100644
index 00000000..3e4ae0b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Setting.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Setting extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ public $value;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Settings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Settings.php
new file mode 100644
index 00000000..fa0d9334
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/Settings.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_Settings extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Calendar_Setting';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $nextSyncToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setNextSyncToken($nextSyncToken)
+ {
+ $this->nextSyncToken = $nextSyncToken;
+ }
+ public function getNextSyncToken()
+ {
+ return $this->nextSyncToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/TimePeriod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/TimePeriod.php
new file mode 100644
index 00000000..91bda8a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Calendar/TimePeriod.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Calendar_TimePeriod extends Google_Model
+{
+ public $end;
+ public $start;
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo.php
new file mode 100644
index 00000000..8f9d7b8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo.php
@@ -0,0 +1,166 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CivicInfo (v2).
+ *
+ * <p>
+ * Provides polling places, early vote locations, contest data, election
+ * officials, and government representatives for U.S. residential addresses.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/civic-information" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CivicInfo extends Google_Service
+{
+
+
+ public $divisions;
+ public $elections;
+ public $representatives;
+
+ /**
+ * Constructs the internal representation of the CivicInfo service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'civicinfo/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'civicinfo';
+
+ $this->divisions = new Google_Service_CivicInfo_Resource_Divisions(
+ $this,
+ $this->serviceName,
+ 'divisions',
+ array(
+ 'methods' => array(
+ 'search' => array(
+ 'path' => 'divisions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->elections = new Google_Service_CivicInfo_Resource_Elections(
+ $this,
+ $this->serviceName,
+ 'elections',
+ array(
+ 'methods' => array(
+ 'electionQuery' => array(
+ 'path' => 'elections',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'voterInfoQuery' => array(
+ 'path' => 'voterinfo',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'address' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'electionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'officialOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'returnAllAvailableData' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->representatives = new Google_Service_CivicInfo_Resource_Representatives(
+ $this,
+ $this->serviceName,
+ 'representatives',
+ array(
+ 'methods' => array(
+ 'representativeInfoByAddress' => array(
+ 'path' => 'representatives',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'address' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeOffices' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'levels' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'roles' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'representativeInfoByDivision' => array(
+ 'path' => 'representatives/{ocdId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'ocdId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'levels' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'recursive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'roles' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrationRegion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrationRegion.php
new file mode 100644
index 00000000..ca275283
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrationRegion.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ protected $internal_gapi_mappings = array(
+ "localJurisdiction" => "local_jurisdiction",
+ );
+ protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody';
+ protected $electionAdministrationBodyDataType = '';
+ public $id;
+ protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion';
+ protected $localJurisdictionDataType = '';
+ public $name;
+ protected $sourcesType = 'Google_Service_CivicInfo_Source';
+ protected $sourcesDataType = 'array';
+
+ public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody)
+ {
+ $this->electionAdministrationBody = $electionAdministrationBody;
+ }
+ public function getElectionAdministrationBody()
+ {
+ return $this->electionAdministrationBody;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction)
+ {
+ $this->localJurisdiction = $localJurisdiction;
+ }
+ public function getLocalJurisdiction()
+ {
+ return $this->localJurisdiction;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrativeBody.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrativeBody.php
new file mode 100644
index 00000000..60c3a4a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/AdministrativeBody.php
@@ -0,0 +1,154 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection
+{
+ protected $collection_key = 'voter_services';
+ protected $internal_gapi_mappings = array(
+ "voterServices" => "voter_services",
+ );
+ public $absenteeVotingInfoUrl;
+ public $addressLines;
+ public $ballotInfoUrl;
+ protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
+ protected $correspondenceAddressDataType = '';
+ public $electionInfoUrl;
+ protected $electionOfficialsType = 'Google_Service_CivicInfo_ElectionOfficial';
+ protected $electionOfficialsDataType = 'array';
+ public $electionRegistrationConfirmationUrl;
+ public $electionRegistrationUrl;
+ public $electionRulesUrl;
+ public $hoursOfOperation;
+ public $name;
+ protected $physicalAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
+ protected $physicalAddressDataType = '';
+ public $voterServices;
+ public $votingLocationFinderUrl;
+
+ public function setAbsenteeVotingInfoUrl($absenteeVotingInfoUrl)
+ {
+ $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl;
+ }
+ public function getAbsenteeVotingInfoUrl()
+ {
+ return $this->absenteeVotingInfoUrl;
+ }
+ public function setAddressLines($addressLines)
+ {
+ $this->addressLines = $addressLines;
+ }
+ public function getAddressLines()
+ {
+ return $this->addressLines;
+ }
+ public function setBallotInfoUrl($ballotInfoUrl)
+ {
+ $this->ballotInfoUrl = $ballotInfoUrl;
+ }
+ public function getBallotInfoUrl()
+ {
+ return $this->ballotInfoUrl;
+ }
+ public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress)
+ {
+ $this->correspondenceAddress = $correspondenceAddress;
+ }
+ public function getCorrespondenceAddress()
+ {
+ return $this->correspondenceAddress;
+ }
+ public function setElectionInfoUrl($electionInfoUrl)
+ {
+ $this->electionInfoUrl = $electionInfoUrl;
+ }
+ public function getElectionInfoUrl()
+ {
+ return $this->electionInfoUrl;
+ }
+ public function setElectionOfficials($electionOfficials)
+ {
+ $this->electionOfficials = $electionOfficials;
+ }
+ public function getElectionOfficials()
+ {
+ return $this->electionOfficials;
+ }
+ public function setElectionRegistrationConfirmationUrl($electionRegistrationConfirmationUrl)
+ {
+ $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl;
+ }
+ public function getElectionRegistrationConfirmationUrl()
+ {
+ return $this->electionRegistrationConfirmationUrl;
+ }
+ public function setElectionRegistrationUrl($electionRegistrationUrl)
+ {
+ $this->electionRegistrationUrl = $electionRegistrationUrl;
+ }
+ public function getElectionRegistrationUrl()
+ {
+ return $this->electionRegistrationUrl;
+ }
+ public function setElectionRulesUrl($electionRulesUrl)
+ {
+ $this->electionRulesUrl = $electionRulesUrl;
+ }
+ public function getElectionRulesUrl()
+ {
+ return $this->electionRulesUrl;
+ }
+ public function setHoursOfOperation($hoursOfOperation)
+ {
+ $this->hoursOfOperation = $hoursOfOperation;
+ }
+ public function getHoursOfOperation()
+ {
+ return $this->hoursOfOperation;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress)
+ {
+ $this->physicalAddress = $physicalAddress;
+ }
+ public function getPhysicalAddress()
+ {
+ return $this->physicalAddress;
+ }
+ public function setVoterServices($voterServices)
+ {
+ $this->voterServices = $voterServices;
+ }
+ public function getVoterServices()
+ {
+ return $this->voterServices;
+ }
+ public function setVotingLocationFinderUrl($votingLocationFinderUrl)
+ {
+ $this->votingLocationFinderUrl = $votingLocationFinderUrl;
+ }
+ public function getVotingLocationFinderUrl()
+ {
+ return $this->votingLocationFinderUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Candidate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Candidate.php
new file mode 100644
index 00000000..8f5ff7d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Candidate.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_Candidate extends Google_Collection
+{
+ protected $collection_key = 'channels';
+ public $candidateUrl;
+ protected $channelsType = 'Google_Service_CivicInfo_Channel';
+ protected $channelsDataType = 'array';
+ public $email;
+ public $name;
+ public $orderOnBallot;
+ public $party;
+ public $phone;
+ public $photoUrl;
+
+ public function setCandidateUrl($candidateUrl)
+ {
+ $this->candidateUrl = $candidateUrl;
+ }
+ public function getCandidateUrl()
+ {
+ return $this->candidateUrl;
+ }
+ public function setChannels($channels)
+ {
+ $this->channels = $channels;
+ }
+ public function getChannels()
+ {
+ return $this->channels;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrderOnBallot($orderOnBallot)
+ {
+ $this->orderOnBallot = $orderOnBallot;
+ }
+ public function getOrderOnBallot()
+ {
+ return $this->orderOnBallot;
+ }
+ public function setParty($party)
+ {
+ $this->party = $party;
+ }
+ public function getParty()
+ {
+ return $this->party;
+ }
+ public function setPhone($phone)
+ {
+ $this->phone = $phone;
+ }
+ public function getPhone()
+ {
+ return $this->phone;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Channel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Channel.php
new file mode 100644
index 00000000..3d4d6731
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Channel.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_Channel extends Google_Model
+{
+ public $id;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php
new file mode 100644
index 00000000..c555ce04
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Contest.php
@@ -0,0 +1,241 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_Contest extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ public $ballotPlacement;
+ protected $candidatesType = 'Google_Service_CivicInfo_Candidate';
+ protected $candidatesDataType = 'array';
+ protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict';
+ protected $districtDataType = '';
+ public $electorateSpecifications;
+ public $id;
+ public $level;
+ public $numberElected;
+ public $numberVotingFor;
+ public $office;
+ public $primaryParty;
+ public $referendumBallotResponses;
+ public $referendumBrief;
+ public $referendumConStatement;
+ public $referendumEffectOfAbstain;
+ public $referendumPassageThreshold;
+ public $referendumProStatement;
+ public $referendumSubtitle;
+ public $referendumText;
+ public $referendumTitle;
+ public $referendumUrl;
+ public $roles;
+ protected $sourcesType = 'Google_Service_CivicInfo_Source';
+ protected $sourcesDataType = 'array';
+ public $special;
+ public $type;
+
+ public function setBallotPlacement($ballotPlacement)
+ {
+ $this->ballotPlacement = $ballotPlacement;
+ }
+ public function getBallotPlacement()
+ {
+ return $this->ballotPlacement;
+ }
+ public function setCandidates($candidates)
+ {
+ $this->candidates = $candidates;
+ }
+ public function getCandidates()
+ {
+ return $this->candidates;
+ }
+ public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district)
+ {
+ $this->district = $district;
+ }
+ public function getDistrict()
+ {
+ return $this->district;
+ }
+ public function setElectorateSpecifications($electorateSpecifications)
+ {
+ $this->electorateSpecifications = $electorateSpecifications;
+ }
+ public function getElectorateSpecifications()
+ {
+ return $this->electorateSpecifications;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+ public function setNumberElected($numberElected)
+ {
+ $this->numberElected = $numberElected;
+ }
+ public function getNumberElected()
+ {
+ return $this->numberElected;
+ }
+ public function setNumberVotingFor($numberVotingFor)
+ {
+ $this->numberVotingFor = $numberVotingFor;
+ }
+ public function getNumberVotingFor()
+ {
+ return $this->numberVotingFor;
+ }
+ public function setOffice($office)
+ {
+ $this->office = $office;
+ }
+ public function getOffice()
+ {
+ return $this->office;
+ }
+ public function setPrimaryParty($primaryParty)
+ {
+ $this->primaryParty = $primaryParty;
+ }
+ public function getPrimaryParty()
+ {
+ return $this->primaryParty;
+ }
+ public function setReferendumBallotResponses($referendumBallotResponses)
+ {
+ $this->referendumBallotResponses = $referendumBallotResponses;
+ }
+ public function getReferendumBallotResponses()
+ {
+ return $this->referendumBallotResponses;
+ }
+ public function setReferendumBrief($referendumBrief)
+ {
+ $this->referendumBrief = $referendumBrief;
+ }
+ public function getReferendumBrief()
+ {
+ return $this->referendumBrief;
+ }
+ public function setReferendumConStatement($referendumConStatement)
+ {
+ $this->referendumConStatement = $referendumConStatement;
+ }
+ public function getReferendumConStatement()
+ {
+ return $this->referendumConStatement;
+ }
+ public function setReferendumEffectOfAbstain($referendumEffectOfAbstain)
+ {
+ $this->referendumEffectOfAbstain = $referendumEffectOfAbstain;
+ }
+ public function getReferendumEffectOfAbstain()
+ {
+ return $this->referendumEffectOfAbstain;
+ }
+ public function setReferendumPassageThreshold($referendumPassageThreshold)
+ {
+ $this->referendumPassageThreshold = $referendumPassageThreshold;
+ }
+ public function getReferendumPassageThreshold()
+ {
+ return $this->referendumPassageThreshold;
+ }
+ public function setReferendumProStatement($referendumProStatement)
+ {
+ $this->referendumProStatement = $referendumProStatement;
+ }
+ public function getReferendumProStatement()
+ {
+ return $this->referendumProStatement;
+ }
+ public function setReferendumSubtitle($referendumSubtitle)
+ {
+ $this->referendumSubtitle = $referendumSubtitle;
+ }
+ public function getReferendumSubtitle()
+ {
+ return $this->referendumSubtitle;
+ }
+ public function setReferendumText($referendumText)
+ {
+ $this->referendumText = $referendumText;
+ }
+ public function getReferendumText()
+ {
+ return $this->referendumText;
+ }
+ public function setReferendumTitle($referendumTitle)
+ {
+ $this->referendumTitle = $referendumTitle;
+ }
+ public function getReferendumTitle()
+ {
+ return $this->referendumTitle;
+ }
+ public function setReferendumUrl($referendumUrl)
+ {
+ $this->referendumUrl = $referendumUrl;
+ }
+ public function getReferendumUrl()
+ {
+ return $this->referendumUrl;
+ }
+ public function setRoles($roles)
+ {
+ $this->roles = $roles;
+ }
+ public function getRoles()
+ {
+ return $this->roles;
+ }
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+ public function setSpecial($special)
+ {
+ $this->special = $special;
+ }
+ public function getSpecial()
+ {
+ return $this->special;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ContextParams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ContextParams.php
new file mode 100644
index 00000000..e3ac07e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ContextParams.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_ContextParams extends Google_Model
+{
+ public $clientProfile;
+
+ public function setClientProfile($clientProfile)
+ {
+ $this->clientProfile = $clientProfile;
+ }
+ public function getClientProfile()
+ {
+ return $this->clientProfile;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionRepresentativeInfoRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionRepresentativeInfoRequest.php
new file mode 100644
index 00000000..db9fe2d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionRepresentativeInfoRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_DivisionRepresentativeInfoRequest extends Google_Model
+{
+ protected $contextParamsType = 'Google_Service_CivicInfo_ContextParams';
+ protected $contextParamsDataType = '';
+
+ public function setContextParams(Google_Service_CivicInfo_ContextParams $contextParams)
+ {
+ $this->contextParams = $contextParams;
+ }
+ public function getContextParams()
+ {
+ return $this->contextParams;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchRequest.php
new file mode 100644
index 00000000..60a04708
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_DivisionSearchRequest extends Google_Model
+{
+ protected $contextParamsType = 'Google_Service_CivicInfo_ContextParams';
+ protected $contextParamsDataType = '';
+
+ public function setContextParams(Google_Service_CivicInfo_ContextParams $contextParams)
+ {
+ $this->contextParams = $contextParams;
+ }
+ public function getContextParams()
+ {
+ return $this->contextParams;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResponse.php
new file mode 100644
index 00000000..8cee4cf9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection
+{
+ protected $collection_key = 'results';
+ public $kind;
+ protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult';
+ protected $resultsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResult.php
new file mode 100644
index 00000000..390937ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/DivisionSearchResult.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_DivisionSearchResult extends Google_Collection
+{
+ protected $collection_key = 'aliases';
+ public $aliases;
+ public $name;
+ public $ocdId;
+
+ public function setAliases($aliases)
+ {
+ $this->aliases = $aliases;
+ }
+ public function getAliases()
+ {
+ return $this->aliases;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOcdId($ocdId)
+ {
+ $this->ocdId = $ocdId;
+ }
+ public function getOcdId()
+ {
+ return $this->ocdId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Election.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Election.php
new file mode 100644
index 00000000..aec7e7f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Election.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_Election extends Google_Model
+{
+ public $electionDay;
+ public $id;
+ public $name;
+ public $ocdDivisionId;
+
+ public function setElectionDay($electionDay)
+ {
+ $this->electionDay = $electionDay;
+ }
+ public function getElectionDay()
+ {
+ return $this->electionDay;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOcdDivisionId($ocdDivisionId)
+ {
+ $this->ocdDivisionId = $ocdDivisionId;
+ }
+ public function getOcdDivisionId()
+ {
+ return $this->ocdDivisionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionOfficial.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionOfficial.php
new file mode 100644
index 00000000..228f6065
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionOfficial.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_ElectionOfficial extends Google_Model
+{
+ public $emailAddress;
+ public $faxNumber;
+ public $name;
+ public $officePhoneNumber;
+ public $title;
+
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setFaxNumber($faxNumber)
+ {
+ $this->faxNumber = $faxNumber;
+ }
+ public function getFaxNumber()
+ {
+ return $this->faxNumber;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOfficePhoneNumber($officePhoneNumber)
+ {
+ $this->officePhoneNumber = $officePhoneNumber;
+ }
+ public function getOfficePhoneNumber()
+ {
+ return $this->officePhoneNumber;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryRequest.php
new file mode 100644
index 00000000..aa458541
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_ElectionsQueryRequest extends Google_Model
+{
+ protected $contextParamsType = 'Google_Service_CivicInfo_ContextParams';
+ protected $contextParamsDataType = '';
+
+ public function setContextParams(Google_Service_CivicInfo_ContextParams $contextParams)
+ {
+ $this->contextParams = $contextParams;
+ }
+ public function getContextParams()
+ {
+ return $this->contextParams;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryResponse.php
new file mode 100644
index 00000000..a13b9867
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectionsQueryResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection
+{
+ protected $collection_key = 'elections';
+ protected $electionsType = 'Google_Service_CivicInfo_Election';
+ protected $electionsDataType = 'array';
+ public $kind;
+
+ public function setElections($elections)
+ {
+ $this->elections = $elections;
+ }
+ public function getElections()
+ {
+ return $this->elections;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectoralDistrict.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectoralDistrict.php
new file mode 100644
index 00000000..29dac57c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/ElectoralDistrict.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model
+{
+ public $id;
+ public $kgForeignKey;
+ public $name;
+ public $scope;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKgForeignKey($kgForeignKey)
+ {
+ $this->kgForeignKey = $kgForeignKey;
+ }
+ public function getKgForeignKey()
+ {
+ return $this->kgForeignKey;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setScope($scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/GeographicDivision.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/GeographicDivision.php
new file mode 100644
index 00000000..6f10d919
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/GeographicDivision.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_GeographicDivision extends Google_Collection
+{
+ protected $collection_key = 'officeIndices';
+ public $alsoKnownAs;
+ public $name;
+ public $officeIndices;
+
+ public function setAlsoKnownAs($alsoKnownAs)
+ {
+ $this->alsoKnownAs = $alsoKnownAs;
+ }
+ public function getAlsoKnownAs()
+ {
+ return $this->alsoKnownAs;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOfficeIndices($officeIndices)
+ {
+ $this->officeIndices = $officeIndices;
+ }
+ public function getOfficeIndices()
+ {
+ return $this->officeIndices;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Office.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Office.php
new file mode 100644
index 00000000..f5c35439
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Office.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_Office extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ public $divisionId;
+ public $levels;
+ public $name;
+ public $officialIndices;
+ public $roles;
+ protected $sourcesType = 'Google_Service_CivicInfo_Source';
+ protected $sourcesDataType = 'array';
+
+ public function setDivisionId($divisionId)
+ {
+ $this->divisionId = $divisionId;
+ }
+ public function getDivisionId()
+ {
+ return $this->divisionId;
+ }
+ public function setLevels($levels)
+ {
+ $this->levels = $levels;
+ }
+ public function getLevels()
+ {
+ return $this->levels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOfficialIndices($officialIndices)
+ {
+ $this->officialIndices = $officialIndices;
+ }
+ public function getOfficialIndices()
+ {
+ return $this->officialIndices;
+ }
+ public function setRoles($roles)
+ {
+ $this->roles = $roles;
+ }
+ public function getRoles()
+ {
+ return $this->roles;
+ }
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Official.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Official.php
new file mode 100644
index 00000000..ac7aa629
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Official.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_Official extends Google_Collection
+{
+ protected $collection_key = 'urls';
+ protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
+ protected $addressDataType = 'array';
+ protected $channelsType = 'Google_Service_CivicInfo_Channel';
+ protected $channelsDataType = 'array';
+ public $emails;
+ public $name;
+ public $party;
+ public $phones;
+ public $photoUrl;
+ public $urls;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setChannels($channels)
+ {
+ $this->channels = $channels;
+ }
+ public function getChannels()
+ {
+ return $this->channels;
+ }
+ public function setEmails($emails)
+ {
+ $this->emails = $emails;
+ }
+ public function getEmails()
+ {
+ return $this->emails;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParty($party)
+ {
+ $this->party = $party;
+ }
+ public function getParty()
+ {
+ return $this->party;
+ }
+ public function setPhones($phones)
+ {
+ $this->phones = $phones;
+ }
+ public function getPhones()
+ {
+ return $this->phones;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setUrls($urls)
+ {
+ $this->urls = $urls;
+ }
+ public function getUrls()
+ {
+ return $this->urls;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php
new file mode 100644
index 00000000..b7f8e064
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PollingLocation.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_PollingLocation extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
+ protected $addressDataType = '';
+ public $endDate;
+ public $id;
+ public $name;
+ public $notes;
+ public $pollingHours;
+ protected $sourcesType = 'Google_Service_CivicInfo_Source';
+ protected $sourcesDataType = 'array';
+ public $startDate;
+ public $voterServices;
+
+ public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setPollingHours($pollingHours)
+ {
+ $this->pollingHours = $pollingHours;
+ }
+ public function getPollingHours()
+ {
+ return $this->pollingHours;
+ }
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setVoterServices($voterServices)
+ {
+ $this->voterServices = $voterServices;
+ }
+ public function getVoterServices()
+ {
+ return $this->voterServices;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php
new file mode 100644
index 00000000..c0f85ca6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/PostalAddress.php
@@ -0,0 +1,301 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_PostalAddress extends Google_Collection
+{
+ protected $collection_key = 'addressLines';
+ public $addressLines;
+ public $administrativeAreaName;
+ public $countryName;
+ public $countryNameCode;
+ public $dependentLocalityName;
+ public $dependentThoroughfareLeadingType;
+ public $dependentThoroughfareName;
+ public $dependentThoroughfarePostDirection;
+ public $dependentThoroughfarePreDirection;
+ public $dependentThoroughfareTrailingType;
+ public $dependentThoroughfaresConnector;
+ public $dependentThoroughfaresIndicator;
+ public $dependentThoroughfaresType;
+ public $firmName;
+ public $isDisputed;
+ public $languageCode;
+ public $localityName;
+ public $postBoxNumber;
+ public $postalCodeNumber;
+ public $postalCodeNumberExtension;
+ public $premiseName;
+ public $recipientName;
+ public $sortingCode;
+ public $subAdministrativeAreaName;
+ public $subPremiseName;
+ public $thoroughfareLeadingType;
+ public $thoroughfareName;
+ public $thoroughfareNumber;
+ public $thoroughfarePostDirection;
+ public $thoroughfarePreDirection;
+ public $thoroughfareTrailingType;
+
+ public function setAddressLines($addressLines)
+ {
+ $this->addressLines = $addressLines;
+ }
+ public function getAddressLines()
+ {
+ return $this->addressLines;
+ }
+ public function setAdministrativeAreaName($administrativeAreaName)
+ {
+ $this->administrativeAreaName = $administrativeAreaName;
+ }
+ public function getAdministrativeAreaName()
+ {
+ return $this->administrativeAreaName;
+ }
+ public function setCountryName($countryName)
+ {
+ $this->countryName = $countryName;
+ }
+ public function getCountryName()
+ {
+ return $this->countryName;
+ }
+ public function setCountryNameCode($countryNameCode)
+ {
+ $this->countryNameCode = $countryNameCode;
+ }
+ public function getCountryNameCode()
+ {
+ return $this->countryNameCode;
+ }
+ public function setDependentLocalityName($dependentLocalityName)
+ {
+ $this->dependentLocalityName = $dependentLocalityName;
+ }
+ public function getDependentLocalityName()
+ {
+ return $this->dependentLocalityName;
+ }
+ public function setDependentThoroughfareLeadingType($dependentThoroughfareLeadingType)
+ {
+ $this->dependentThoroughfareLeadingType = $dependentThoroughfareLeadingType;
+ }
+ public function getDependentThoroughfareLeadingType()
+ {
+ return $this->dependentThoroughfareLeadingType;
+ }
+ public function setDependentThoroughfareName($dependentThoroughfareName)
+ {
+ $this->dependentThoroughfareName = $dependentThoroughfareName;
+ }
+ public function getDependentThoroughfareName()
+ {
+ return $this->dependentThoroughfareName;
+ }
+ public function setDependentThoroughfarePostDirection($dependentThoroughfarePostDirection)
+ {
+ $this->dependentThoroughfarePostDirection = $dependentThoroughfarePostDirection;
+ }
+ public function getDependentThoroughfarePostDirection()
+ {
+ return $this->dependentThoroughfarePostDirection;
+ }
+ public function setDependentThoroughfarePreDirection($dependentThoroughfarePreDirection)
+ {
+ $this->dependentThoroughfarePreDirection = $dependentThoroughfarePreDirection;
+ }
+ public function getDependentThoroughfarePreDirection()
+ {
+ return $this->dependentThoroughfarePreDirection;
+ }
+ public function setDependentThoroughfareTrailingType($dependentThoroughfareTrailingType)
+ {
+ $this->dependentThoroughfareTrailingType = $dependentThoroughfareTrailingType;
+ }
+ public function getDependentThoroughfareTrailingType()
+ {
+ return $this->dependentThoroughfareTrailingType;
+ }
+ public function setDependentThoroughfaresConnector($dependentThoroughfaresConnector)
+ {
+ $this->dependentThoroughfaresConnector = $dependentThoroughfaresConnector;
+ }
+ public function getDependentThoroughfaresConnector()
+ {
+ return $this->dependentThoroughfaresConnector;
+ }
+ public function setDependentThoroughfaresIndicator($dependentThoroughfaresIndicator)
+ {
+ $this->dependentThoroughfaresIndicator = $dependentThoroughfaresIndicator;
+ }
+ public function getDependentThoroughfaresIndicator()
+ {
+ return $this->dependentThoroughfaresIndicator;
+ }
+ public function setDependentThoroughfaresType($dependentThoroughfaresType)
+ {
+ $this->dependentThoroughfaresType = $dependentThoroughfaresType;
+ }
+ public function getDependentThoroughfaresType()
+ {
+ return $this->dependentThoroughfaresType;
+ }
+ public function setFirmName($firmName)
+ {
+ $this->firmName = $firmName;
+ }
+ public function getFirmName()
+ {
+ return $this->firmName;
+ }
+ public function setIsDisputed($isDisputed)
+ {
+ $this->isDisputed = $isDisputed;
+ }
+ public function getIsDisputed()
+ {
+ return $this->isDisputed;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+ public function setLocalityName($localityName)
+ {
+ $this->localityName = $localityName;
+ }
+ public function getLocalityName()
+ {
+ return $this->localityName;
+ }
+ public function setPostBoxNumber($postBoxNumber)
+ {
+ $this->postBoxNumber = $postBoxNumber;
+ }
+ public function getPostBoxNumber()
+ {
+ return $this->postBoxNumber;
+ }
+ public function setPostalCodeNumber($postalCodeNumber)
+ {
+ $this->postalCodeNumber = $postalCodeNumber;
+ }
+ public function getPostalCodeNumber()
+ {
+ return $this->postalCodeNumber;
+ }
+ public function setPostalCodeNumberExtension($postalCodeNumberExtension)
+ {
+ $this->postalCodeNumberExtension = $postalCodeNumberExtension;
+ }
+ public function getPostalCodeNumberExtension()
+ {
+ return $this->postalCodeNumberExtension;
+ }
+ public function setPremiseName($premiseName)
+ {
+ $this->premiseName = $premiseName;
+ }
+ public function getPremiseName()
+ {
+ return $this->premiseName;
+ }
+ public function setRecipientName($recipientName)
+ {
+ $this->recipientName = $recipientName;
+ }
+ public function getRecipientName()
+ {
+ return $this->recipientName;
+ }
+ public function setSortingCode($sortingCode)
+ {
+ $this->sortingCode = $sortingCode;
+ }
+ public function getSortingCode()
+ {
+ return $this->sortingCode;
+ }
+ public function setSubAdministrativeAreaName($subAdministrativeAreaName)
+ {
+ $this->subAdministrativeAreaName = $subAdministrativeAreaName;
+ }
+ public function getSubAdministrativeAreaName()
+ {
+ return $this->subAdministrativeAreaName;
+ }
+ public function setSubPremiseName($subPremiseName)
+ {
+ $this->subPremiseName = $subPremiseName;
+ }
+ public function getSubPremiseName()
+ {
+ return $this->subPremiseName;
+ }
+ public function setThoroughfareLeadingType($thoroughfareLeadingType)
+ {
+ $this->thoroughfareLeadingType = $thoroughfareLeadingType;
+ }
+ public function getThoroughfareLeadingType()
+ {
+ return $this->thoroughfareLeadingType;
+ }
+ public function setThoroughfareName($thoroughfareName)
+ {
+ $this->thoroughfareName = $thoroughfareName;
+ }
+ public function getThoroughfareName()
+ {
+ return $this->thoroughfareName;
+ }
+ public function setThoroughfareNumber($thoroughfareNumber)
+ {
+ $this->thoroughfareNumber = $thoroughfareNumber;
+ }
+ public function getThoroughfareNumber()
+ {
+ return $this->thoroughfareNumber;
+ }
+ public function setThoroughfarePostDirection($thoroughfarePostDirection)
+ {
+ $this->thoroughfarePostDirection = $thoroughfarePostDirection;
+ }
+ public function getThoroughfarePostDirection()
+ {
+ return $this->thoroughfarePostDirection;
+ }
+ public function setThoroughfarePreDirection($thoroughfarePreDirection)
+ {
+ $this->thoroughfarePreDirection = $thoroughfarePreDirection;
+ }
+ public function getThoroughfarePreDirection()
+ {
+ return $this->thoroughfarePreDirection;
+ }
+ public function setThoroughfareTrailingType($thoroughfareTrailingType)
+ {
+ $this->thoroughfareTrailingType = $thoroughfareTrailingType;
+ }
+ public function getThoroughfareTrailingType()
+ {
+ return $this->thoroughfareTrailingType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoData.php
new file mode 100644
index 00000000..7de91ecc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoData.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_RepresentativeInfoData extends Google_Collection
+{
+ protected $collection_key = 'officials';
+ protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision';
+ protected $divisionsDataType = 'map';
+ protected $officesType = 'Google_Service_CivicInfo_Office';
+ protected $officesDataType = 'array';
+ protected $officialsType = 'Google_Service_CivicInfo_Official';
+ protected $officialsDataType = 'array';
+
+ public function setDivisions($divisions)
+ {
+ $this->divisions = $divisions;
+ }
+ public function getDivisions()
+ {
+ return $this->divisions;
+ }
+ public function setOffices($offices)
+ {
+ $this->offices = $offices;
+ }
+ public function getOffices()
+ {
+ return $this->offices;
+ }
+ public function setOfficials($officials)
+ {
+ $this->officials = $officials;
+ }
+ public function getOfficials()
+ {
+ return $this->officials;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoRequest.php
new file mode 100644
index 00000000..2545dc80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_RepresentativeInfoRequest extends Google_Model
+{
+ protected $contextParamsType = 'Google_Service_CivicInfo_ContextParams';
+ protected $contextParamsDataType = '';
+
+ public function setContextParams(Google_Service_CivicInfo_ContextParams $contextParams)
+ {
+ $this->contextParams = $contextParams;
+ }
+ public function getContextParams()
+ {
+ return $this->contextParams;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoResponse.php
new file mode 100644
index 00000000..167415a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/RepresentativeInfoResponse.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Collection
+{
+ protected $collection_key = 'officials';
+ protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision';
+ protected $divisionsDataType = 'map';
+ public $kind;
+ protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
+ protected $normalizedInputDataType = '';
+ protected $officesType = 'Google_Service_CivicInfo_Office';
+ protected $officesDataType = 'array';
+ protected $officialsType = 'Google_Service_CivicInfo_Official';
+ protected $officialsDataType = 'array';
+
+ public function setDivisions($divisions)
+ {
+ $this->divisions = $divisions;
+ }
+ public function getDivisions()
+ {
+ return $this->divisions;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
+ {
+ $this->normalizedInput = $normalizedInput;
+ }
+ public function getNormalizedInput()
+ {
+ return $this->normalizedInput;
+ }
+ public function setOffices($offices)
+ {
+ $this->offices = $offices;
+ }
+ public function getOffices()
+ {
+ return $this->offices;
+ }
+ public function setOfficials($officials)
+ {
+ $this->officials = $officials;
+ }
+ public function getOfficials()
+ {
+ return $this->officials;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Divisions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Divisions.php
new file mode 100644
index 00000000..9214d3ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Divisions.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "divisions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $civicinfoService = new Google_Service_CivicInfo(...);
+ * $divisions = $civicinfoService->divisions;
+ * </code>
+ */
+class Google_Service_CivicInfo_Resource_Divisions extends Google_Service_Resource
+{
+ /**
+ * Searches for political divisions by their natural name or OCD ID.
+ * (divisions.search)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string query The search query. Queries can cover any parts of a
+ * OCD ID or a human readable division name. All words given in the query are
+ * treated as required patterns. In addition to that, most query operators of
+ * the Apache Lucene library are supported. See
+ * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
+ * @return Google_Service_CivicInfo_DivisionSearchResponse
+ */
+ public function search($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_CivicInfo_DivisionSearchResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php
new file mode 100644
index 00000000..7498db32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Elections.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "elections" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $civicinfoService = new Google_Service_CivicInfo(...);
+ * $elections = $civicinfoService->elections;
+ * </code>
+ */
+class Google_Service_CivicInfo_Resource_Elections extends Google_Service_Resource
+{
+ /**
+ * List of available elections to query. (elections.electionQuery)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CivicInfo_ElectionsQueryResponse
+ */
+ public function electionQuery($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse");
+ }
+ /**
+ * Looks up information relevant to a voter based on the voter's registered
+ * address. (elections.voterInfoQuery)
+ *
+ * @param string $address The registered address of the voter to look up.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string electionId The unique ID of the election to look up. A list
+ * of election IDs can be obtained at
+ * https://www.googleapis.com/civicinfo/{version}/elections
+ * @opt_param bool officialOnly If set to true, only data from official state
+ * sources will be returned.
+ * @opt_param bool returnAllAvailableData If set to true, the query will return
+ * the success codeand include any partial information when it is unable to
+ * determine a matching address or unable to determine the election for
+ * electionId=0 queries.
+ * @return Google_Service_CivicInfo_VoterInfoResponse
+ */
+ public function voterInfoQuery($address, $optParams = array())
+ {
+ $params = array('address' => $address);
+ $params = array_merge($params, $optParams);
+ return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Representatives.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Representatives.php
new file mode 100644
index 00000000..73fab240
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Resource/Representatives.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "representatives" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $civicinfoService = new Google_Service_CivicInfo(...);
+ * $representatives = $civicinfoService->representatives;
+ * </code>
+ */
+class Google_Service_CivicInfo_Resource_Representatives extends Google_Service_Resource
+{
+ /**
+ * Looks up political geography and representative information for a single
+ * address. (representatives.representativeInfoByAddress)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string address The address to look up. May only be specified if
+ * the field ocdId is not given in the URL.
+ * @opt_param bool includeOffices Whether to return information about offices
+ * and officials. If false, only the top-level district information will be
+ * returned.
+ * @opt_param string levels A list of office levels to filter by. Only offices
+ * that serve at least one of these levels will be returned. Divisions that
+ * don't contain a matching office will not be returned.
+ * @opt_param string roles A list of office roles to filter by. Only offices
+ * fulfilling one of these roles will be returned. Divisions that don't contain
+ * a matching office will not be returned.
+ * @return Google_Service_CivicInfo_RepresentativeInfoResponse
+ */
+ public function representativeInfoByAddress($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('representativeInfoByAddress', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse");
+ }
+ /**
+ * Looks up representative information for a single geographic division.
+ * (representatives.representativeInfoByDivision)
+ *
+ * @param string $ocdId The Open Civic Data division identifier of the division
+ * to look up.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string levels A list of office levels to filter by. Only offices
+ * that serve at least one of these levels will be returned. Divisions that
+ * don't contain a matching office will not be returned.
+ * @opt_param bool recursive If true, information about all divisions contained
+ * in the division requested will be included as well. For example, if querying
+ * ocd-division/country:us/district:dc, this would also return all DC's wards
+ * and ANCs.
+ * @opt_param string roles A list of office roles to filter by. Only offices
+ * fulfilling one of these roles will be returned. Divisions that don't contain
+ * a matching office will not be returned.
+ * @return Google_Service_CivicInfo_RepresentativeInfoData
+ */
+ public function representativeInfoByDivision($ocdId, $optParams = array())
+ {
+ $params = array('ocdId' => $ocdId);
+ $params = array_merge($params, $optParams);
+ return $this->call('representativeInfoByDivision', array($params), "Google_Service_CivicInfo_RepresentativeInfoData");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/SimpleAddressType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/SimpleAddressType.php
new file mode 100644
index 00000000..7b01fd7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/SimpleAddressType.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_SimpleAddressType extends Google_Model
+{
+ public $city;
+ public $line1;
+ public $line2;
+ public $line3;
+ public $locationName;
+ public $state;
+ public $zip;
+
+ public function setCity($city)
+ {
+ $this->city = $city;
+ }
+ public function getCity()
+ {
+ return $this->city;
+ }
+ public function setLine1($line1)
+ {
+ $this->line1 = $line1;
+ }
+ public function getLine1()
+ {
+ return $this->line1;
+ }
+ public function setLine2($line2)
+ {
+ $this->line2 = $line2;
+ }
+ public function getLine2()
+ {
+ return $this->line2;
+ }
+ public function setLine3($line3)
+ {
+ $this->line3 = $line3;
+ }
+ public function getLine3()
+ {
+ return $this->line3;
+ }
+ public function setLocationName($locationName)
+ {
+ $this->locationName = $locationName;
+ }
+ public function getLocationName()
+ {
+ return $this->locationName;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setZip($zip)
+ {
+ $this->zip = $zip;
+ }
+ public function getZip()
+ {
+ return $this->zip;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Source.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Source.php
new file mode 100644
index 00000000..a183a726
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/Source.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_Source extends Google_Model
+{
+ public $name;
+ public $official;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOfficial($official)
+ {
+ $this->official = $official;
+ }
+ public function getOfficial()
+ {
+ return $this->official;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoRequest.php
new file mode 100644
index 00000000..8f6ced1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_VoterInfoRequest extends Google_Model
+{
+ protected $contextParamsType = 'Google_Service_CivicInfo_ContextParams';
+ protected $contextParamsDataType = '';
+ protected $voterInfoSegmentResultType = 'Google_Service_CivicInfo_VoterInfoSegmentResult';
+ protected $voterInfoSegmentResultDataType = '';
+
+ public function setContextParams(Google_Service_CivicInfo_ContextParams $contextParams)
+ {
+ $this->contextParams = $contextParams;
+ }
+ public function getContextParams()
+ {
+ return $this->contextParams;
+ }
+ public function setVoterInfoSegmentResult(Google_Service_CivicInfo_VoterInfoSegmentResult $voterInfoSegmentResult)
+ {
+ $this->voterInfoSegmentResult = $voterInfoSegmentResult;
+ }
+ public function getVoterInfoSegmentResult()
+ {
+ return $this->voterInfoSegmentResult;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php
new file mode 100644
index 00000000..e3f53709
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoResponse.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection
+{
+ protected $collection_key = 'state';
+ protected $contestsType = 'Google_Service_CivicInfo_Contest';
+ protected $contestsDataType = 'array';
+ protected $dropOffLocationsType = 'Google_Service_CivicInfo_PollingLocation';
+ protected $dropOffLocationsDataType = 'array';
+ protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation';
+ protected $earlyVoteSitesDataType = 'array';
+ protected $electionType = 'Google_Service_CivicInfo_Election';
+ protected $electionDataType = '';
+ public $kind;
+ public $mailOnly;
+ protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
+ protected $normalizedInputDataType = '';
+ protected $otherElectionsType = 'Google_Service_CivicInfo_Election';
+ protected $otherElectionsDataType = 'array';
+ protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation';
+ protected $pollingLocationsDataType = 'array';
+ public $precinctId;
+ protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion';
+ protected $stateDataType = 'array';
+
+ public function setContests($contests)
+ {
+ $this->contests = $contests;
+ }
+ public function getContests()
+ {
+ return $this->contests;
+ }
+ public function setDropOffLocations($dropOffLocations)
+ {
+ $this->dropOffLocations = $dropOffLocations;
+ }
+ public function getDropOffLocations()
+ {
+ return $this->dropOffLocations;
+ }
+ public function setEarlyVoteSites($earlyVoteSites)
+ {
+ $this->earlyVoteSites = $earlyVoteSites;
+ }
+ public function getEarlyVoteSites()
+ {
+ return $this->earlyVoteSites;
+ }
+ public function setElection(Google_Service_CivicInfo_Election $election)
+ {
+ $this->election = $election;
+ }
+ public function getElection()
+ {
+ return $this->election;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMailOnly($mailOnly)
+ {
+ $this->mailOnly = $mailOnly;
+ }
+ public function getMailOnly()
+ {
+ return $this->mailOnly;
+ }
+ public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
+ {
+ $this->normalizedInput = $normalizedInput;
+ }
+ public function getNormalizedInput()
+ {
+ return $this->normalizedInput;
+ }
+ public function setOtherElections($otherElections)
+ {
+ $this->otherElections = $otherElections;
+ }
+ public function getOtherElections()
+ {
+ return $this->otherElections;
+ }
+ public function setPollingLocations($pollingLocations)
+ {
+ $this->pollingLocations = $pollingLocations;
+ }
+ public function getPollingLocations()
+ {
+ return $this->pollingLocations;
+ }
+ public function setPrecinctId($precinctId)
+ {
+ $this->precinctId = $precinctId;
+ }
+ public function getPrecinctId()
+ {
+ return $this->precinctId;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoSegmentResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoSegmentResult.php
new file mode 100644
index 00000000..6feceab9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CivicInfo/VoterInfoSegmentResult.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CivicInfo_VoterInfoSegmentResult extends Google_Model
+{
+ public $generatedMillis;
+ protected $postalAddressType = 'Google_Service_CivicInfo_PostalAddress';
+ protected $postalAddressDataType = '';
+ protected $requestType = 'Google_Service_CivicInfo_VoterInfoRequest';
+ protected $requestDataType = '';
+ protected $responseType = 'Google_Service_CivicInfo_VoterInfoResponse';
+ protected $responseDataType = '';
+
+ public function setGeneratedMillis($generatedMillis)
+ {
+ $this->generatedMillis = $generatedMillis;
+ }
+ public function getGeneratedMillis()
+ {
+ return $this->generatedMillis;
+ }
+ public function setPostalAddress(Google_Service_CivicInfo_PostalAddress $postalAddress)
+ {
+ $this->postalAddress = $postalAddress;
+ }
+ public function getPostalAddress()
+ {
+ return $this->postalAddress;
+ }
+ public function setRequest(Google_Service_CivicInfo_VoterInfoRequest $request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+ public function setResponse(Google_Service_CivicInfo_VoterInfoResponse $response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom.php
new file mode 100644
index 00000000..acf8a1ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom.php
@@ -0,0 +1,869 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Classroom (v1).
+ *
+ * <p>
+ * Manages classes, rosters, and invitations in Google Classroom.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/classroom/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Classroom extends Google_Service
+{
+ /** View instructions for teacher-assigned work in your Google Classroom classes. */
+ const CLASSROOM_COURSE_WORK_READONLY =
+ "https://www.googleapis.com/auth/classroom.course-work.readonly";
+ /** Manage your Google Classroom classes. */
+ const CLASSROOM_COURSES =
+ "https://www.googleapis.com/auth/classroom.courses";
+ /** View your Google Classroom classes. */
+ const CLASSROOM_COURSES_READONLY =
+ "https://www.googleapis.com/auth/classroom.courses.readonly";
+ /** Manage your course work and view your grades in Google Classroom. */
+ const CLASSROOM_COURSEWORK_ME =
+ "https://www.googleapis.com/auth/classroom.coursework.me";
+ /** View your course work and grades in Google Classroom. */
+ const CLASSROOM_COURSEWORK_ME_READONLY =
+ "https://www.googleapis.com/auth/classroom.coursework.me.readonly";
+ /** Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer. */
+ const CLASSROOM_COURSEWORK_STUDENTS =
+ "https://www.googleapis.com/auth/classroom.coursework.students";
+ /** View course work and grades for students in the Google Classroom classes you teach or administer. */
+ const CLASSROOM_COURSEWORK_STUDENTS_READONLY =
+ "https://www.googleapis.com/auth/classroom.coursework.students.readonly";
+ /** View the email addresses of people in your classes. */
+ const CLASSROOM_PROFILE_EMAILS =
+ "https://www.googleapis.com/auth/classroom.profile.emails";
+ /** View the profile photos of people in your classes. */
+ const CLASSROOM_PROFILE_PHOTOS =
+ "https://www.googleapis.com/auth/classroom.profile.photos";
+ /** Manage your Google Classroom class rosters. */
+ const CLASSROOM_ROSTERS =
+ "https://www.googleapis.com/auth/classroom.rosters";
+ /** View your Google Classroom class rosters. */
+ const CLASSROOM_ROSTERS_READONLY =
+ "https://www.googleapis.com/auth/classroom.rosters.readonly";
+ /** View your course work and grades in Google Classroom. */
+ const CLASSROOM_STUDENT_SUBMISSIONS_ME_READONLY =
+ "https://www.googleapis.com/auth/classroom.student-submissions.me.readonly";
+ /** View course work and grades for students in the Google Classroom classes you teach or administer. */
+ const CLASSROOM_STUDENT_SUBMISSIONS_STUDENTS_READONLY =
+ "https://www.googleapis.com/auth/classroom.student-submissions.students.readonly";
+
+ public $courses;
+ public $courses_aliases;
+ public $courses_courseWork;
+ public $courses_courseWork_studentSubmissions;
+ public $courses_students;
+ public $courses_teachers;
+ public $invitations;
+ public $userProfiles;
+ public $userProfiles_guardianInvitations;
+ public $userProfiles_guardians;
+
+ /**
+ * Constructs the internal representation of the Classroom service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://classroom.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'classroom';
+
+ $this->courses = new Google_Service_Classroom_Resource_Courses(
+ $this,
+ $this->serviceName,
+ 'courses',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/courses',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/courses/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/courses/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/courses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'teacherId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'courseStates' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/courses/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1/courses/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->courses_aliases = new Google_Service_Classroom_Resource_CoursesAliases(
+ $this,
+ $this->serviceName,
+ 'aliases',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/courses/{courseId}/aliases',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/courses/{courseId}/aliases/{alias}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alias' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/courses/{courseId}/aliases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->courses_courseWork = new Google_Service_Classroom_Resource_CoursesCourseWork(
+ $this,
+ $this->serviceName,
+ 'courseWork',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkStates' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->courses_courseWork_studentSubmissions = new Google_Service_Classroom_Resource_CoursesCourseWorkStudentSubmissions(
+ $this,
+ $this->serviceName,
+ 'studentSubmissions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'states' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'late' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'modifyAttachments' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'reclaim' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'return' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'turnIn' => array(
+ 'path' => 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'courseWorkId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->courses_students = new Google_Service_Classroom_Resource_CoursesStudents(
+ $this,
+ $this->serviceName,
+ 'students',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/courses/{courseId}/students',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'enrollmentCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/courses/{courseId}/students/{userId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/courses/{courseId}/students/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/courses/{courseId}/students',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->courses_teachers = new Google_Service_Classroom_Resource_CoursesTeachers(
+ $this,
+ $this->serviceName,
+ 'teachers',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/courses/{courseId}/teachers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/courses/{courseId}/teachers/{userId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/courses/{courseId}/teachers/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/courses/{courseId}/teachers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'courseId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->invitations = new Google_Service_Classroom_Resource_Invitations(
+ $this,
+ $this->serviceName,
+ 'invitations',
+ array(
+ 'methods' => array(
+ 'accept' => array(
+ 'path' => 'v1/invitations/{id}:accept',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1/invitations',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/invitations/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/invitations/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/invitations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'courseId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userProfiles = new Google_Service_Classroom_Resource_UserProfiles(
+ $this,
+ $this->serviceName,
+ 'userProfiles',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/userProfiles/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userProfiles_guardianInvitations = new Google_Service_Classroom_Resource_UserProfilesGuardianInvitations(
+ $this,
+ $this->serviceName,
+ 'guardianInvitations',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/userProfiles/{studentId}/guardianInvitations',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'invitationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/userProfiles/{studentId}/guardianInvitations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'invitedEmailAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'states' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/userProfiles/{studentId}/guardianInvitations/{invitationId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'invitationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userProfiles_guardians = new Google_Service_Classroom_Resource_UserProfilesGuardians(
+ $this,
+ $this->serviceName,
+ 'guardians',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v1/userProfiles/{studentId}/guardians/{guardianId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'guardianId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/userProfiles/{studentId}/guardians/{guardianId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'guardianId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/userProfiles/{studentId}/guardians',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'studentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'invitedEmailAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Assignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Assignment.php
new file mode 100644
index 00000000..b90d744f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Assignment.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Assignment extends Google_Model
+{
+ protected $studentWorkFolderType = 'Google_Service_Classroom_DriveFolder';
+ protected $studentWorkFolderDataType = '';
+
+ public function setStudentWorkFolder(Google_Service_Classroom_DriveFolder $studentWorkFolder)
+ {
+ $this->studentWorkFolder = $studentWorkFolder;
+ }
+ public function getStudentWorkFolder()
+ {
+ return $this->studentWorkFolder;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/AssignmentSubmission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/AssignmentSubmission.php
new file mode 100644
index 00000000..149aa4ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/AssignmentSubmission.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_AssignmentSubmission extends Google_Collection
+{
+ protected $collection_key = 'attachments';
+ protected $attachmentsType = 'Google_Service_Classroom_Attachment';
+ protected $attachmentsDataType = 'array';
+
+ public function setAttachments($attachments)
+ {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments()
+ {
+ return $this->attachments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Attachment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Attachment.php
new file mode 100644
index 00000000..5fe96664
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Attachment.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Attachment extends Google_Model
+{
+ protected $driveFileType = 'Google_Service_Classroom_DriveFile';
+ protected $driveFileDataType = '';
+ protected $formType = 'Google_Service_Classroom_Form';
+ protected $formDataType = '';
+ protected $linkType = 'Google_Service_Classroom_Link';
+ protected $linkDataType = '';
+ protected $youTubeVideoType = 'Google_Service_Classroom_YouTubeVideo';
+ protected $youTubeVideoDataType = '';
+
+ public function setDriveFile(Google_Service_Classroom_DriveFile $driveFile)
+ {
+ $this->driveFile = $driveFile;
+ }
+ public function getDriveFile()
+ {
+ return $this->driveFile;
+ }
+ public function setForm(Google_Service_Classroom_Form $form)
+ {
+ $this->form = $form;
+ }
+ public function getForm()
+ {
+ return $this->form;
+ }
+ public function setLink(Google_Service_Classroom_Link $link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setYouTubeVideo(Google_Service_Classroom_YouTubeVideo $youTubeVideo)
+ {
+ $this->youTubeVideo = $youTubeVideo;
+ }
+ public function getYouTubeVideo()
+ {
+ return $this->youTubeVideo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ClassroomEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ClassroomEmpty.php
new file mode 100644
index 00000000..24a85010
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ClassroomEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ClassroomEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Course.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Course.php
new file mode 100644
index 00000000..f5d6a3b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Course.php
@@ -0,0 +1,177 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Course extends Google_Collection
+{
+ protected $collection_key = 'courseMaterialSets';
+ public $alternateLink;
+ public $courseGroupEmail;
+ protected $courseMaterialSetsType = 'Google_Service_Classroom_CourseMaterialSet';
+ protected $courseMaterialSetsDataType = 'array';
+ public $courseState;
+ public $creationTime;
+ public $description;
+ public $descriptionHeading;
+ public $enrollmentCode;
+ public $guardiansEnabled;
+ public $id;
+ public $name;
+ public $ownerId;
+ public $room;
+ public $section;
+ protected $teacherFolderType = 'Google_Service_Classroom_DriveFolder';
+ protected $teacherFolderDataType = '';
+ public $teacherGroupEmail;
+ public $updateTime;
+
+ public function setAlternateLink($alternateLink)
+ {
+ $this->alternateLink = $alternateLink;
+ }
+ public function getAlternateLink()
+ {
+ return $this->alternateLink;
+ }
+ public function setCourseGroupEmail($courseGroupEmail)
+ {
+ $this->courseGroupEmail = $courseGroupEmail;
+ }
+ public function getCourseGroupEmail()
+ {
+ return $this->courseGroupEmail;
+ }
+ public function setCourseMaterialSets($courseMaterialSets)
+ {
+ $this->courseMaterialSets = $courseMaterialSets;
+ }
+ public function getCourseMaterialSets()
+ {
+ return $this->courseMaterialSets;
+ }
+ public function setCourseState($courseState)
+ {
+ $this->courseState = $courseState;
+ }
+ public function getCourseState()
+ {
+ return $this->courseState;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDescriptionHeading($descriptionHeading)
+ {
+ $this->descriptionHeading = $descriptionHeading;
+ }
+ public function getDescriptionHeading()
+ {
+ return $this->descriptionHeading;
+ }
+ public function setEnrollmentCode($enrollmentCode)
+ {
+ $this->enrollmentCode = $enrollmentCode;
+ }
+ public function getEnrollmentCode()
+ {
+ return $this->enrollmentCode;
+ }
+ public function setGuardiansEnabled($guardiansEnabled)
+ {
+ $this->guardiansEnabled = $guardiansEnabled;
+ }
+ public function getGuardiansEnabled()
+ {
+ return $this->guardiansEnabled;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwnerId($ownerId)
+ {
+ $this->ownerId = $ownerId;
+ }
+ public function getOwnerId()
+ {
+ return $this->ownerId;
+ }
+ public function setRoom($room)
+ {
+ $this->room = $room;
+ }
+ public function getRoom()
+ {
+ return $this->room;
+ }
+ public function setSection($section)
+ {
+ $this->section = $section;
+ }
+ public function getSection()
+ {
+ return $this->section;
+ }
+ public function setTeacherFolder(Google_Service_Classroom_DriveFolder $teacherFolder)
+ {
+ $this->teacherFolder = $teacherFolder;
+ }
+ public function getTeacherFolder()
+ {
+ return $this->teacherFolder;
+ }
+ public function setTeacherGroupEmail($teacherGroupEmail)
+ {
+ $this->teacherGroupEmail = $teacherGroupEmail;
+ }
+ public function getTeacherGroupEmail()
+ {
+ return $this->teacherGroupEmail;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseAlias.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseAlias.php
new file mode 100644
index 00000000..47d27a87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseAlias.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_CourseAlias extends Google_Model
+{
+ public $alias;
+
+ public function setAlias($alias)
+ {
+ $this->alias = $alias;
+ }
+ public function getAlias()
+ {
+ return $this->alias;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterial.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterial.php
new file mode 100644
index 00000000..66362fe5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterial.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_CourseMaterial extends Google_Model
+{
+ protected $driveFileType = 'Google_Service_Classroom_DriveFile';
+ protected $driveFileDataType = '';
+ protected $formType = 'Google_Service_Classroom_Form';
+ protected $formDataType = '';
+ protected $linkType = 'Google_Service_Classroom_Link';
+ protected $linkDataType = '';
+ protected $youTubeVideoType = 'Google_Service_Classroom_YouTubeVideo';
+ protected $youTubeVideoDataType = '';
+
+ public function setDriveFile(Google_Service_Classroom_DriveFile $driveFile)
+ {
+ $this->driveFile = $driveFile;
+ }
+ public function getDriveFile()
+ {
+ return $this->driveFile;
+ }
+ public function setForm(Google_Service_Classroom_Form $form)
+ {
+ $this->form = $form;
+ }
+ public function getForm()
+ {
+ return $this->form;
+ }
+ public function setLink(Google_Service_Classroom_Link $link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setYouTubeVideo(Google_Service_Classroom_YouTubeVideo $youTubeVideo)
+ {
+ $this->youTubeVideo = $youTubeVideo;
+ }
+ public function getYouTubeVideo()
+ {
+ return $this->youTubeVideo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterialSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterialSet.php
new file mode 100644
index 00000000..81d7ac76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseMaterialSet.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_CourseMaterialSet extends Google_Collection
+{
+ protected $collection_key = 'materials';
+ protected $materialsType = 'Google_Service_Classroom_CourseMaterial';
+ protected $materialsDataType = 'array';
+ public $title;
+
+ public function setMaterials($materials)
+ {
+ $this->materials = $materials;
+ }
+ public function getMaterials()
+ {
+ return $this->materials;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseWork.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseWork.php
new file mode 100644
index 00000000..d6f79c14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/CourseWork.php
@@ -0,0 +1,180 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_CourseWork extends Google_Collection
+{
+ protected $collection_key = 'materials';
+ public $alternateLink;
+ protected $assignmentType = 'Google_Service_Classroom_Assignment';
+ protected $assignmentDataType = '';
+ public $associatedWithDeveloper;
+ public $courseId;
+ public $creationTime;
+ public $description;
+ protected $dueDateType = 'Google_Service_Classroom_Date';
+ protected $dueDateDataType = '';
+ protected $dueTimeType = 'Google_Service_Classroom_TimeOfDay';
+ protected $dueTimeDataType = '';
+ public $id;
+ protected $materialsType = 'Google_Service_Classroom_Material';
+ protected $materialsDataType = 'array';
+ public $maxPoints;
+ protected $multipleChoiceQuestionType = 'Google_Service_Classroom_MultipleChoiceQuestion';
+ protected $multipleChoiceQuestionDataType = '';
+ public $state;
+ public $submissionModificationMode;
+ public $title;
+ public $updateTime;
+ public $workType;
+
+ public function setAlternateLink($alternateLink)
+ {
+ $this->alternateLink = $alternateLink;
+ }
+ public function getAlternateLink()
+ {
+ return $this->alternateLink;
+ }
+ public function setAssignment(Google_Service_Classroom_Assignment $assignment)
+ {
+ $this->assignment = $assignment;
+ }
+ public function getAssignment()
+ {
+ return $this->assignment;
+ }
+ public function setAssociatedWithDeveloper($associatedWithDeveloper)
+ {
+ $this->associatedWithDeveloper = $associatedWithDeveloper;
+ }
+ public function getAssociatedWithDeveloper()
+ {
+ return $this->associatedWithDeveloper;
+ }
+ public function setCourseId($courseId)
+ {
+ $this->courseId = $courseId;
+ }
+ public function getCourseId()
+ {
+ return $this->courseId;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDueDate(Google_Service_Classroom_Date $dueDate)
+ {
+ $this->dueDate = $dueDate;
+ }
+ public function getDueDate()
+ {
+ return $this->dueDate;
+ }
+ public function setDueTime(Google_Service_Classroom_TimeOfDay $dueTime)
+ {
+ $this->dueTime = $dueTime;
+ }
+ public function getDueTime()
+ {
+ return $this->dueTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMaterials($materials)
+ {
+ $this->materials = $materials;
+ }
+ public function getMaterials()
+ {
+ return $this->materials;
+ }
+ public function setMaxPoints($maxPoints)
+ {
+ $this->maxPoints = $maxPoints;
+ }
+ public function getMaxPoints()
+ {
+ return $this->maxPoints;
+ }
+ public function setMultipleChoiceQuestion(Google_Service_Classroom_MultipleChoiceQuestion $multipleChoiceQuestion)
+ {
+ $this->multipleChoiceQuestion = $multipleChoiceQuestion;
+ }
+ public function getMultipleChoiceQuestion()
+ {
+ return $this->multipleChoiceQuestion;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setSubmissionModificationMode($submissionModificationMode)
+ {
+ $this->submissionModificationMode = $submissionModificationMode;
+ }
+ public function getSubmissionModificationMode()
+ {
+ return $this->submissionModificationMode;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+ public function setWorkType($workType)
+ {
+ $this->workType = $workType;
+ }
+ public function getWorkType()
+ {
+ return $this->workType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Date.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Date.php
new file mode 100644
index 00000000..e9872a83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Date.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Date extends Google_Model
+{
+ public $day;
+ public $month;
+ public $year;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth($month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+ public function setYear($year)
+ {
+ $this->year = $year;
+ }
+ public function getYear()
+ {
+ return $this->year;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFile.php
new file mode 100644
index 00000000..19303dc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFile.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_DriveFile extends Google_Model
+{
+ public $alternateLink;
+ public $id;
+ public $thumbnailUrl;
+ public $title;
+
+ public function setAlternateLink($alternateLink)
+ {
+ $this->alternateLink = $alternateLink;
+ }
+ public function getAlternateLink()
+ {
+ return $this->alternateLink;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setThumbnailUrl($thumbnailUrl)
+ {
+ $this->thumbnailUrl = $thumbnailUrl;
+ }
+ public function getThumbnailUrl()
+ {
+ return $this->thumbnailUrl;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFolder.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFolder.php
new file mode 100644
index 00000000..8da31945
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/DriveFolder.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_DriveFolder extends Google_Model
+{
+ public $alternateLink;
+ public $id;
+ public $title;
+
+ public function setAlternateLink($alternateLink)
+ {
+ $this->alternateLink = $alternateLink;
+ }
+ public function getAlternateLink()
+ {
+ return $this->alternateLink;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Form.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Form.php
new file mode 100644
index 00000000..8d942a0e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Form.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Form extends Google_Model
+{
+ public $formUrl;
+ public $responseUrl;
+ public $thumbnailUrl;
+ public $title;
+
+ public function setFormUrl($formUrl)
+ {
+ $this->formUrl = $formUrl;
+ }
+ public function getFormUrl()
+ {
+ return $this->formUrl;
+ }
+ public function setResponseUrl($responseUrl)
+ {
+ $this->responseUrl = $responseUrl;
+ }
+ public function getResponseUrl()
+ {
+ return $this->responseUrl;
+ }
+ public function setThumbnailUrl($thumbnailUrl)
+ {
+ $this->thumbnailUrl = $thumbnailUrl;
+ }
+ public function getThumbnailUrl()
+ {
+ return $this->thumbnailUrl;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GlobalPermission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GlobalPermission.php
new file mode 100644
index 00000000..6ac872bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GlobalPermission.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_GlobalPermission extends Google_Model
+{
+ public $permission;
+
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Guardian.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Guardian.php
new file mode 100644
index 00000000..b6da5951
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Guardian.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Guardian extends Google_Model
+{
+ public $guardianId;
+ protected $guardianProfileType = 'Google_Service_Classroom_UserProfile';
+ protected $guardianProfileDataType = '';
+ public $invitedEmailAddress;
+ public $studentId;
+
+ public function setGuardianId($guardianId)
+ {
+ $this->guardianId = $guardianId;
+ }
+ public function getGuardianId()
+ {
+ return $this->guardianId;
+ }
+ public function setGuardianProfile(Google_Service_Classroom_UserProfile $guardianProfile)
+ {
+ $this->guardianProfile = $guardianProfile;
+ }
+ public function getGuardianProfile()
+ {
+ return $this->guardianProfile;
+ }
+ public function setInvitedEmailAddress($invitedEmailAddress)
+ {
+ $this->invitedEmailAddress = $invitedEmailAddress;
+ }
+ public function getInvitedEmailAddress()
+ {
+ return $this->invitedEmailAddress;
+ }
+ public function setStudentId($studentId)
+ {
+ $this->studentId = $studentId;
+ }
+ public function getStudentId()
+ {
+ return $this->studentId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GuardianInvitation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GuardianInvitation.php
new file mode 100644
index 00000000..390dee3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/GuardianInvitation.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_GuardianInvitation extends Google_Model
+{
+ public $creationTime;
+ public $invitationId;
+ public $invitedEmailAddress;
+ public $state;
+ public $studentId;
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setInvitationId($invitationId)
+ {
+ $this->invitationId = $invitationId;
+ }
+ public function getInvitationId()
+ {
+ return $this->invitationId;
+ }
+ public function setInvitedEmailAddress($invitedEmailAddress)
+ {
+ $this->invitedEmailAddress = $invitedEmailAddress;
+ }
+ public function getInvitedEmailAddress()
+ {
+ return $this->invitedEmailAddress;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStudentId($studentId)
+ {
+ $this->studentId = $studentId;
+ }
+ public function getStudentId()
+ {
+ return $this->studentId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Invitation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Invitation.php
new file mode 100644
index 00000000..298bf05e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Invitation.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Invitation extends Google_Model
+{
+ public $courseId;
+ public $id;
+ public $role;
+ public $userId;
+
+ public function setCourseId($courseId)
+ {
+ $this->courseId = $courseId;
+ }
+ public function getCourseId()
+ {
+ return $this->courseId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Link.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Link.php
new file mode 100644
index 00000000..89ca037a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Link.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Link extends Google_Model
+{
+ public $thumbnailUrl;
+ public $title;
+ public $url;
+
+ public function setThumbnailUrl($thumbnailUrl)
+ {
+ $this->thumbnailUrl = $thumbnailUrl;
+ }
+ public function getThumbnailUrl()
+ {
+ return $this->thumbnailUrl;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseAliasesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseAliasesResponse.php
new file mode 100644
index 00000000..c04e6e4c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseAliasesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListCourseAliasesResponse extends Google_Collection
+{
+ protected $collection_key = 'aliases';
+ protected $aliasesType = 'Google_Service_Classroom_CourseAlias';
+ protected $aliasesDataType = 'array';
+ public $nextPageToken;
+
+ public function setAliases($aliases)
+ {
+ $this->aliases = $aliases;
+ }
+ public function getAliases()
+ {
+ return $this->aliases;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseWorkResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseWorkResponse.php
new file mode 100644
index 00000000..dea448d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCourseWorkResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListCourseWorkResponse extends Google_Collection
+{
+ protected $collection_key = 'courseWork';
+ protected $courseWorkType = 'Google_Service_Classroom_CourseWork';
+ protected $courseWorkDataType = 'array';
+ public $nextPageToken;
+
+ public function setCourseWork($courseWork)
+ {
+ $this->courseWork = $courseWork;
+ }
+ public function getCourseWork()
+ {
+ return $this->courseWork;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCoursesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCoursesResponse.php
new file mode 100644
index 00000000..d48ed59b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListCoursesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListCoursesResponse extends Google_Collection
+{
+ protected $collection_key = 'courses';
+ protected $coursesType = 'Google_Service_Classroom_Course';
+ protected $coursesDataType = 'array';
+ public $nextPageToken;
+
+ public function setCourses($courses)
+ {
+ $this->courses = $courses;
+ }
+ public function getCourses()
+ {
+ return $this->courses;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardianInvitationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardianInvitationsResponse.php
new file mode 100644
index 00000000..6454931c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardianInvitationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListGuardianInvitationsResponse extends Google_Collection
+{
+ protected $collection_key = 'guardianInvitations';
+ protected $guardianInvitationsType = 'Google_Service_Classroom_GuardianInvitation';
+ protected $guardianInvitationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setGuardianInvitations($guardianInvitations)
+ {
+ $this->guardianInvitations = $guardianInvitations;
+ }
+ public function getGuardianInvitations()
+ {
+ return $this->guardianInvitations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardiansResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardiansResponse.php
new file mode 100644
index 00000000..4183d5e4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListGuardiansResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListGuardiansResponse extends Google_Collection
+{
+ protected $collection_key = 'guardians';
+ protected $guardiansType = 'Google_Service_Classroom_Guardian';
+ protected $guardiansDataType = 'array';
+ public $nextPageToken;
+
+ public function setGuardians($guardians)
+ {
+ $this->guardians = $guardians;
+ }
+ public function getGuardians()
+ {
+ return $this->guardians;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListInvitationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListInvitationsResponse.php
new file mode 100644
index 00000000..0e85390b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListInvitationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListInvitationsResponse extends Google_Collection
+{
+ protected $collection_key = 'invitations';
+ protected $invitationsType = 'Google_Service_Classroom_Invitation';
+ protected $invitationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setInvitations($invitations)
+ {
+ $this->invitations = $invitations;
+ }
+ public function getInvitations()
+ {
+ return $this->invitations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentSubmissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentSubmissionsResponse.php
new file mode 100644
index 00000000..7b052d51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentSubmissionsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListStudentSubmissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'studentSubmissions';
+ public $nextPageToken;
+ protected $studentSubmissionsType = 'Google_Service_Classroom_StudentSubmission';
+ protected $studentSubmissionsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setStudentSubmissions($studentSubmissions)
+ {
+ $this->studentSubmissions = $studentSubmissions;
+ }
+ public function getStudentSubmissions()
+ {
+ return $this->studentSubmissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentsResponse.php
new file mode 100644
index 00000000..516a0d11
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListStudentsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListStudentsResponse extends Google_Collection
+{
+ protected $collection_key = 'students';
+ public $nextPageToken;
+ protected $studentsType = 'Google_Service_Classroom_Student';
+ protected $studentsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setStudents($students)
+ {
+ $this->students = $students;
+ }
+ public function getStudents()
+ {
+ return $this->students;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListTeachersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListTeachersResponse.php
new file mode 100644
index 00000000..ccfbdcd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ListTeachersResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ListTeachersResponse extends Google_Collection
+{
+ protected $collection_key = 'teachers';
+ public $nextPageToken;
+ protected $teachersType = 'Google_Service_Classroom_Teacher';
+ protected $teachersDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTeachers($teachers)
+ {
+ $this->teachers = $teachers;
+ }
+ public function getTeachers()
+ {
+ return $this->teachers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Material.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Material.php
new file mode 100644
index 00000000..6f79c4ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Material.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Material extends Google_Model
+{
+ protected $driveFileType = 'Google_Service_Classroom_SharedDriveFile';
+ protected $driveFileDataType = '';
+ protected $formType = 'Google_Service_Classroom_Form';
+ protected $formDataType = '';
+ protected $linkType = 'Google_Service_Classroom_Link';
+ protected $linkDataType = '';
+ protected $youtubeVideoType = 'Google_Service_Classroom_YouTubeVideo';
+ protected $youtubeVideoDataType = '';
+
+ public function setDriveFile(Google_Service_Classroom_SharedDriveFile $driveFile)
+ {
+ $this->driveFile = $driveFile;
+ }
+ public function getDriveFile()
+ {
+ return $this->driveFile;
+ }
+ public function setForm(Google_Service_Classroom_Form $form)
+ {
+ $this->form = $form;
+ }
+ public function getForm()
+ {
+ return $this->form;
+ }
+ public function setLink(Google_Service_Classroom_Link $link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setYoutubeVideo(Google_Service_Classroom_YouTubeVideo $youtubeVideo)
+ {
+ $this->youtubeVideo = $youtubeVideo;
+ }
+ public function getYoutubeVideo()
+ {
+ return $this->youtubeVideo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ModifyAttachmentsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ModifyAttachmentsRequest.php
new file mode 100644
index 00000000..02afca76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ModifyAttachmentsRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ModifyAttachmentsRequest extends Google_Collection
+{
+ protected $collection_key = 'addAttachments';
+ protected $addAttachmentsType = 'Google_Service_Classroom_Attachment';
+ protected $addAttachmentsDataType = 'array';
+
+ public function setAddAttachments($addAttachments)
+ {
+ $this->addAttachments = $addAttachments;
+ }
+ public function getAddAttachments()
+ {
+ return $this->addAttachments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceQuestion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceQuestion.php
new file mode 100644
index 00000000..623e096d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceQuestion.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_MultipleChoiceQuestion extends Google_Collection
+{
+ protected $collection_key = 'choices';
+ public $choices;
+
+ public function setChoices($choices)
+ {
+ $this->choices = $choices;
+ }
+ public function getChoices()
+ {
+ return $this->choices;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceSubmission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceSubmission.php
new file mode 100644
index 00000000..9e4bb806
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/MultipleChoiceSubmission.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_MultipleChoiceSubmission extends Google_Model
+{
+ public $answer;
+
+ public function setAnswer($answer)
+ {
+ $this->answer = $answer;
+ }
+ public function getAnswer()
+ {
+ return $this->answer;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Name.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Name.php
new file mode 100644
index 00000000..d0cf628a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Name.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Name extends Google_Model
+{
+ public $familyName;
+ public $fullName;
+ public $givenName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setFullName($fullName)
+ {
+ $this->fullName = $fullName;
+ }
+ public function getFullName()
+ {
+ return $this->fullName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReclaimStudentSubmissionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReclaimStudentSubmissionRequest.php
new file mode 100644
index 00000000..7b06c874
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReclaimStudentSubmissionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ReclaimStudentSubmissionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Courses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Courses.php
new file mode 100644
index 00000000..4dacadfd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Courses.php
@@ -0,0 +1,163 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "courses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $courses = $classroomService->courses;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_Courses extends Google_Service_Resource
+{
+ /**
+ * Creates a course. The user specified in `ownerId` is the owner of the created
+ * course and added as a teacher. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to create
+ * courses or for access errors. * `NOT_FOUND` if the primary teacher is not a
+ * valid user. * `FAILED_PRECONDITION` if the course owner's account is disabled
+ * or for the following request errors: * UserGroupsMembershipLimitReached *
+ * `ALREADY_EXISTS` if an alias was specified in the `id` and already exists.
+ * (courses.create)
+ *
+ * @param Google_Service_Classroom_Course $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Course
+ */
+ public function create(Google_Service_Classroom_Course $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Classroom_Course");
+ }
+ /**
+ * Deletes a course. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the requesting user is not permitted to delete the
+ * requested course or for access errors. * `NOT_FOUND` if no course exists with
+ * the requested ID. (courses.delete)
+ *
+ * @param string $id Identifier of the course to delete. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns a course. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the requesting user is not permitted to access the
+ * requested course or for access errors. * `NOT_FOUND` if no course exists with
+ * the requested ID. (courses.get)
+ *
+ * @param string $id Identifier of the course to return. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Course
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_Course");
+ }
+ /**
+ * Returns a list of courses that the requesting user is permitted to view,
+ * restricted to those that match the request. This method returns the following
+ * error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if
+ * the query argument is malformed. * `NOT_FOUND` if any users specified in the
+ * query arguments do not exist. (courses.listCourses)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string studentId Restricts returned courses to those having a
+ * student with the specified identifier. The identifier can be one of the
+ * following: * the numeric identifier for the user * the email address of the
+ * user * the string literal `"me"`, indicating the requesting user
+ * @opt_param string teacherId Restricts returned courses to those having a
+ * teacher with the specified identifier. The identifier can be one of the
+ * following: * the numeric identifier for the user * the email address of the
+ * user * the string literal `"me"`, indicating the requesting user
+ * @opt_param string courseStates Restricts returned courses to those in one of
+ * the specified states
+ * @opt_param int pageSize Maximum number of items to return. Zero or
+ * unspecified indicates that the server may assign a maximum. The server may
+ * return fewer than the specified number of results.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @return Google_Service_Classroom_ListCoursesResponse
+ */
+ public function listCourses($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListCoursesResponse");
+ }
+ /**
+ * Updates one or more fields in a course. This method returns the following
+ * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * modify the requested course or for access errors. * `NOT_FOUND` if no course
+ * exists with the requested ID. * `INVALID_ARGUMENT` if invalid fields are
+ * specified in the update mask or if no update mask is supplied. *
+ * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable
+ * (courses.patch)
+ *
+ * @param string $id Identifier of the course to update. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param Google_Service_Classroom_Course $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Mask that identifies which fields on the course
+ * to update. This field is required to do an update. The update will fail if
+ * invalid fields are specified. The following fields are valid: * `name` *
+ * `section` * `descriptionHeading` * `description` * `room` * `courseState`
+ * When set in a query parameter, this field should be specified as
+ * `updateMask=,,...`
+ * @return Google_Service_Classroom_Course
+ */
+ public function patch($id, Google_Service_Classroom_Course $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Classroom_Course");
+ }
+ /**
+ * Updates a course. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the requesting user is not permitted to modify the
+ * requested course or for access errors. * `NOT_FOUND` if no course exists with
+ * the requested ID. * `FAILED_PRECONDITION` for the following request errors: *
+ * CourseNotModifiable (courses.update)
+ *
+ * @param string $id Identifier of the course to update. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param Google_Service_Classroom_Course $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Course
+ */
+ public function update($id, Google_Service_Classroom_Course $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Classroom_Course");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php
new file mode 100644
index 00000000..8ee78852
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesAliases.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "aliases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $aliases = $classroomService->aliases;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_CoursesAliases extends Google_Service_Resource
+{
+ /**
+ * Creates an alias for a course. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to create the
+ * alias or for access errors. * `NOT_FOUND` if the course does not exist. *
+ * `ALREADY_EXISTS` if the alias already exists. (aliases.create)
+ *
+ * @param string $courseId Identifier of the course to alias. This identifier
+ * can be either the Classroom-assigned identifier or an alias.
+ * @param Google_Service_Classroom_CourseAlias $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_CourseAlias
+ */
+ public function create($courseId, Google_Service_Classroom_CourseAlias $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Classroom_CourseAlias");
+ }
+ /**
+ * Deletes an alias of a course. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to remove the
+ * alias or for access errors. * `NOT_FOUND` if the alias does not exist.
+ * (aliases.delete)
+ *
+ * @param string $courseId Identifier of the course whose alias should be
+ * deleted. This identifier can be either the Classroom-assigned identifier or
+ * an alias.
+ * @param string $alias Alias to delete. This may not be the Classroom-assigned
+ * identifier.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function delete($courseId, $alias, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'alias' => $alias);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns a list of aliases for a course. This method returns the following
+ * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * access the course or for access errors. * `NOT_FOUND` if the course does not
+ * exist. (aliases.listCoursesAliases)
+ *
+ * @param string $courseId The identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum number of items to return. Zero or
+ * unspecified indicates that the server may assign a maximum. The server may
+ * return fewer than the specified number of results.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @return Google_Service_Classroom_ListCourseAliasesResponse
+ */
+ public function listCoursesAliases($courseId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListCourseAliasesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWork.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWork.php
new file mode 100644
index 00000000..a212dbc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWork.php
@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "courseWork" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $courseWork = $classroomService->courseWork;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_CoursesCourseWork extends Google_Service_Resource
+{
+ /**
+ * Creates course work. The resulting course work (and corresponding student
+ * submissions) are associated with the Developer Console project of the [OAuth
+ * client ID](https://support.google.com/cloud/answer/6158849) used to make the
+ * request. Classroom API requests to modify course work and student submissions
+ * must be made with an OAuth client ID from the associated Developer Console
+ * project. This method returns the following error codes: * `PERMISSION_DENIED`
+ * if the requesting user is not permitted to access the requested course,
+ * create course work in the requested course, share a Drive attachment, or for
+ * access errors. * `INVALID_ARGUMENT` if the request is malformed. *
+ * `NOT_FOUND` if the requested course does not exist. * `FAILED_PRECONDITION`
+ * for the following request error: * AttachmentNotVisible (courseWork.create)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param Google_Service_Classroom_CourseWork $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_CourseWork
+ */
+ public function create($courseId, Google_Service_Classroom_CourseWork $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Classroom_CourseWork");
+ }
+ /**
+ * Deletes a course work. This request must be made by the Developer Console
+ * project of the [OAuth client
+ * ID](https://support.google.com/cloud/answer/6158849) used to create the
+ * corresponding course work item. This method returns the following error
+ * codes: * `PERMISSION_DENIED` if the requesting developer project did not
+ * create the corresponding course work, if the requesting user is not permitted
+ * to delete the requested course or for access errors. * `FAILED_PRECONDITION`
+ * if the requested course work has already been deleted. * `NOT_FOUND` if no
+ * course exists with the requested ID. (courseWork.delete)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $id Identifier of the course work to delete. This identifier is
+ * a Classroom-assigned identifier.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function delete($courseId, $id, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns course work. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the requesting user is not permitted to access the
+ * requested course or course work, or for access errors. * `INVALID_ARGUMENT`
+ * if the request is malformed. * `NOT_FOUND` if the requested course or course
+ * work does not exist. (courseWork.get)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $id Identifier of the course work.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_CourseWork
+ */
+ public function get($courseId, $id, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_CourseWork");
+ }
+ /**
+ * Returns a list of course work that the requester is permitted to view. Course
+ * students may only view `PUBLISHED` course work. Course teachers and domain
+ * administrators may view all course work. This method returns the following
+ * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * access the requested course or for access errors. * `INVALID_ARGUMENT` if the
+ * request is malformed. * `NOT_FOUND` if the requested course does not exist.
+ * (courseWork.listCoursesCourseWork)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string courseWorkStates Restriction on the work status to return.
+ * Only courseWork that matches is returned. If unspecified, items with a work
+ * status of `PUBLISHED` is returned.
+ * @opt_param string orderBy Optional sort ordering for results. A comma-
+ * separated list of fields with an optional sort direction keyword. Supported
+ * fields are `updateTime` and `dueDate`. Supported direction keywords are `asc`
+ * and `desc`. If not specified, `updateTime desc` is the default behavior.
+ * Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc`
+ * @opt_param int pageSize Maximum number of items to return. Zero or
+ * unspecified indicates that the server may assign a maximum. The server may
+ * return fewer than the specified number of results.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @return Google_Service_Classroom_ListCourseWorkResponse
+ */
+ public function listCoursesCourseWork($courseId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListCourseWorkResponse");
+ }
+ /**
+ * Updates one or more fields of a course work. See
+ * google.classroom.v1.CourseWork for details of which fields may be updated and
+ * who may change them. This request must be made by the Developer Console
+ * project of the [OAuth client
+ * ID](https://support.google.com/cloud/answer/6158849) used to create the
+ * corresponding course work item. This method returns the following error
+ * codes: * `PERMISSION_DENIED` if the requesting developer project did not
+ * create the corresponding course work, if the user is not permitted to make
+ * the requested modification to the student submission, or for access errors. *
+ * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if
+ * the requested course work has already been deleted. * `NOT_FOUND` if the
+ * requested course, course work, or student submission does not exist.
+ * (courseWork.patch)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $id Identifier of the course work.
+ * @param Google_Service_Classroom_CourseWork $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Mask that identifies which fields on the course
+ * work to update. This field is required to do an update. The update fails if
+ * invalid fields are specified. If a field supports empty values, it can be
+ * cleared by specifying it in the update mask and not in the CourseWork object.
+ * If a field that does not support empty values is included in the update mask
+ * and not set in the CourseWork object, an `INVALID_ARGUMENT` error will be
+ * returned. The following fields may be specified by teachers: * `title` *
+ * `description` * `state` * `due_date` * `due_time` * `max_points` *
+ * `submission_modification_mode`
+ * @return Google_Service_Classroom_CourseWork
+ */
+ public function patch($courseId, $id, Google_Service_Classroom_CourseWork $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Classroom_CourseWork");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php
new file mode 100644
index 00000000..8e0b3d21
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesCourseWorkStudentSubmissions.php
@@ -0,0 +1,240 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "studentSubmissions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $studentSubmissions = $classroomService->studentSubmissions;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_CoursesCourseWorkStudentSubmissions extends Google_Service_Resource
+{
+ /**
+ * Returns a student submission. * `PERMISSION_DENIED` if the requesting user is
+ * not permitted to access the requested course, course work, or student
+ * submission or for access errors. * `INVALID_ARGUMENT` if the request is
+ * malformed. * `NOT_FOUND` if the requested course, course work, or student
+ * submission does not exist. (studentSubmissions.get)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $courseWorkId Identifier of the course work.
+ * @param string $id Identifier of the student submission.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_StudentSubmission
+ */
+ public function get($courseId, $courseWorkId, $id, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_StudentSubmission");
+ }
+ /**
+ * Returns a list of student submissions that the requester is permitted to
+ * view, factoring in the OAuth scopes of the request. `-` may be specified as
+ * the `course_work_id` to include student submissions for multiple course work
+ * items. Course students may only view their own work. Course teachers and
+ * domain administrators may view all student submissions. This method returns
+ * the following error codes: * `PERMISSION_DENIED` if the requesting user is
+ * not permitted to access the requested course or course work, or for access
+ * errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if
+ * the requested course does not exist.
+ * (studentSubmissions.listCoursesCourseWorkStudentSubmissions)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $courseWorkId Identifer of the student work to request. This
+ * may be set to the string literal `"-"` to request student work for all course
+ * work in the specified course.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string userId Optional argument to restrict returned student work
+ * to those owned by the student with the specified identifier. The identifier
+ * can be one of the following: * the numeric identifier for the user * the
+ * email address of the user * the string literal `"me"`, indicating the
+ * requesting user
+ * @opt_param string states Requested submission states. If specified, returned
+ * student submissions match one of the specified submission states.
+ * @opt_param string late Requested lateness value. If specified, returned
+ * student submissions are restricted by the requested value. If unspecified,
+ * submissions are returned regardless of `late` value.
+ * @opt_param int pageSize Maximum number of items to return. Zero or
+ * unspecified indicates that the server may assign a maximum. The server may
+ * return fewer than the specified number of results.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @return Google_Service_Classroom_ListStudentSubmissionsResponse
+ */
+ public function listCoursesCourseWorkStudentSubmissions($courseId, $courseWorkId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListStudentSubmissionsResponse");
+ }
+ /**
+ * Modifies attachments of student submission. Attachments may only be added to
+ * student submissions belonging to course work objects with a `workType` of
+ * `ASSIGNMENT`. This request must be made by the Developer Console project of
+ * the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used
+ * to create the corresponding course work item. This method returns the
+ * following error codes: * `PERMISSION_DENIED` if the requesting user is not
+ * permitted to access the requested course or course work, if the user is not
+ * permitted to modify attachments on the requested student submission, or for
+ * access errors. * `INVALID_ARGUMENT` if the request is malformed. *
+ * `NOT_FOUND` if the requested course, course work, or student submission does
+ * not exist. (studentSubmissions.modifyAttachments)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $courseWorkId Identifier of the course work.
+ * @param string $id Identifier of the student submission.
+ * @param Google_Service_Classroom_ModifyAttachmentsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_StudentSubmission
+ */
+ public function modifyAttachments($courseId, $courseWorkId, $id, Google_Service_Classroom_ModifyAttachmentsRequest $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('modifyAttachments', array($params), "Google_Service_Classroom_StudentSubmission");
+ }
+ /**
+ * Updates one or more fields of a student submission. See
+ * google.classroom.v1.StudentSubmission for details of which fields may be
+ * updated and who may change them. This request must be made by the Developer
+ * Console project of the [OAuth client
+ * ID](https://support.google.com/cloud/answer/6158849) used to create the
+ * corresponding course work item. This method returns the following error
+ * codes: * `PERMISSION_DENIED` if the requesting developer project did not
+ * create the corresponding course work, if the user is not permitted to make
+ * the requested modification to the student submission, or for access errors. *
+ * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the
+ * requested course, course work, or student submission does not exist.
+ * (studentSubmissions.patch)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $courseWorkId Identifier of the course work.
+ * @param string $id Identifier of the student submission.
+ * @param Google_Service_Classroom_StudentSubmission $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Mask that identifies which fields on the student
+ * submission to update. This field is required to do an update. The update
+ * fails if invalid fields are specified. The following fields may be specified
+ * by teachers: * `draft_grade` * `assigned_grade`
+ * @return Google_Service_Classroom_StudentSubmission
+ */
+ public function patch($courseId, $courseWorkId, $id, Google_Service_Classroom_StudentSubmission $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Classroom_StudentSubmission");
+ }
+ /**
+ * Reclaims a student submission on behalf of the student that owns it.
+ * Reclaiming a student submission transfers ownership of attached Drive files
+ * to the student and update the submission state. Only the student that owns
+ * the requested student submission may call this method, and only for a student
+ * submission that has been turned in. This request must be made by the
+ * Developer Console project of the [OAuth client
+ * ID](https://support.google.com/cloud/answer/6158849) used to create the
+ * corresponding course work item. This method returns the following error
+ * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * access the requested course or course work, unsubmit the requested student
+ * submission, or for access errors. * `FAILED_PRECONDITION` if the student
+ * submission has not been turned in. * `INVALID_ARGUMENT` if the request is
+ * malformed. * `NOT_FOUND` if the requested course, course work, or student
+ * submission does not exist. (studentSubmissions.reclaim)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $courseWorkId Identifier of the course work.
+ * @param string $id Identifier of the student submission.
+ * @param Google_Service_Classroom_ReclaimStudentSubmissionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function reclaim($courseId, $courseWorkId, $id, Google_Service_Classroom_ReclaimStudentSubmissionRequest $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reclaim', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns a student submission. Returning a student submission transfers
+ * ownership of attached Drive files to the student and may also update the
+ * submission state. Unlike the Classroom application, returning a student
+ * submission does not set assignedGrade to the draftGrade value. Only a teacher
+ * of the course that contains the requested student submission may call this
+ * method. This request must be made by the Developer Console project of the
+ * [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
+ * create the corresponding course work item. This method returns the following
+ * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * access the requested course or course work, return the requested student
+ * submission, or for access errors. * `INVALID_ARGUMENT` if the request is
+ * malformed. * `NOT_FOUND` if the requested course, course work, or student
+ * submission does not exist.
+ * (studentSubmissions.returnCoursesCourseWorkStudentSubmissions)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $courseWorkId Identifier of the course work.
+ * @param string $id Identifier of the student submission.
+ * @param Google_Service_Classroom_ReturnStudentSubmissionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function returnCoursesCourseWorkStudentSubmissions($courseId, $courseWorkId, $id, Google_Service_Classroom_ReturnStudentSubmissionRequest $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('return', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Turns in a student submission. Turning in a student submission transfers
+ * ownership of attached Drive files to the teacher and may also update the
+ * submission state. This may only be called by the student that owns the
+ * specified student submission. This request must be made by the Developer
+ * Console project of the [OAuth client
+ * ID](https://support.google.com/cloud/answer/6158849) used to create the
+ * corresponding course work item. This method returns the following error
+ * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * access the requested course or course work, turn in the requested student
+ * submission, or for access errors. * `INVALID_ARGUMENT` if the request is
+ * malformed. * `NOT_FOUND` if the requested course, course work, or student
+ * submission does not exist. (studentSubmissions.turnIn)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $courseWorkId Identifier of the course work.
+ * @param string $id Identifier of the student submission.
+ * @param Google_Service_Classroom_TurnInStudentSubmissionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function turnIn($courseId, $courseWorkId, $id, Google_Service_Classroom_TurnInStudentSubmissionRequest $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'courseWorkId' => $courseWorkId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('turnIn', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesStudents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesStudents.php
new file mode 100644
index 00000000..2f6855cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesStudents.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "students" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $students = $classroomService->students;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_CoursesStudents extends Google_Service_Resource
+{
+ /**
+ * Adds a user as a student of a course. This method returns the following error
+ * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * create students in this course or for access errors. * `NOT_FOUND` if the
+ * requested course ID does not exist. * `FAILED_PRECONDITION` if the requested
+ * user's account is disabled, for the following request errors: *
+ * CourseMemberLimitReached * CourseNotModifiable *
+ * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a
+ * student or teacher in the course. (students.create)
+ *
+ * @param string $courseId Identifier of the course to create the student in.
+ * This identifier can be either the Classroom-assigned identifier or an alias.
+ * @param Google_Service_Classroom_Student $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string enrollmentCode Enrollment code of the course to create the
+ * student in. This code is required if userId corresponds to the requesting
+ * user; it may be omitted if the requesting user has administrative permissions
+ * to create students for any user.
+ * @return Google_Service_Classroom_Student
+ */
+ public function create($courseId, Google_Service_Classroom_Student $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Classroom_Student");
+ }
+ /**
+ * Deletes a student of a course. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to delete
+ * students of this course or for access errors. * `NOT_FOUND` if no student of
+ * this course has the requested ID or if the course does not exist.
+ * (students.delete)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $userId Identifier of the student to delete. The identifier can
+ * be one of the following: * the numeric identifier for the user * the email
+ * address of the user * the string literal `"me"`, indicating the requesting
+ * user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function delete($courseId, $userId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns a student of a course. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to view
+ * students of this course or for access errors. * `NOT_FOUND` if no student of
+ * this course has the requested ID or if the course does not exist.
+ * (students.get)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $userId Identifier of the student to return. The identifier can
+ * be one of the following: * the numeric identifier for the user * the email
+ * address of the user * the string literal `"me"`, indicating the requesting
+ * user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Student
+ */
+ public function get($courseId, $userId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_Student");
+ }
+ /**
+ * Returns a list of students of this course that the requester is permitted to
+ * view. This method returns the following error codes: * `NOT_FOUND` if the
+ * course does not exist. * `PERMISSION_DENIED` for access errors.
+ * (students.listCoursesStudents)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum number of items to return. Zero means no
+ * maximum. The server may return fewer than the specified number of results.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @return Google_Service_Classroom_ListStudentsResponse
+ */
+ public function listCoursesStudents($courseId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListStudentsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesTeachers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesTeachers.php
new file mode 100644
index 00000000..881a74b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/CoursesTeachers.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "teachers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $teachers = $classroomService->teachers;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_CoursesTeachers extends Google_Service_Resource
+{
+ /**
+ * Creates a teacher of a course. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to create
+ * teachers in this course or for access errors. * `NOT_FOUND` if the requested
+ * course ID does not exist. * `FAILED_PRECONDITION` if the requested user's
+ * account is disabled, for the following request errors: *
+ * CourseMemberLimitReached * CourseNotModifiable * CourseTeacherLimitReached *
+ * UserGroupsMembershipLimitReached * `ALREADY_EXISTS` if the user is already a
+ * teacher or student in the course. (teachers.create)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param Google_Service_Classroom_Teacher $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Teacher
+ */
+ public function create($courseId, Google_Service_Classroom_Teacher $postBody, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Classroom_Teacher");
+ }
+ /**
+ * Deletes a teacher of a course. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to delete
+ * teachers of this course or for access errors. * `NOT_FOUND` if no teacher of
+ * this course has the requested ID or if the course does not exist. *
+ * `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher of
+ * this course. (teachers.delete)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $userId Identifier of the teacher to delete. The identifier can
+ * be one of the following: * the numeric identifier for the user * the email
+ * address of the user * the string literal `"me"`, indicating the requesting
+ * user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function delete($courseId, $userId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns a teacher of a course. This method returns the following error codes:
+ * * `PERMISSION_DENIED` if the requesting user is not permitted to view
+ * teachers of this course or for access errors. * `NOT_FOUND` if no teacher of
+ * this course has the requested ID or if the course does not exist.
+ * (teachers.get)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param string $userId Identifier of the teacher to return. The identifier can
+ * be one of the following: * the numeric identifier for the user * the email
+ * address of the user * the string literal `"me"`, indicating the requesting
+ * user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Teacher
+ */
+ public function get($courseId, $userId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_Teacher");
+ }
+ /**
+ * Returns a list of teachers of this course that the requester is permitted to
+ * view. This method returns the following error codes: * `NOT_FOUND` if the
+ * course does not exist. * `PERMISSION_DENIED` for access errors.
+ * (teachers.listCoursesTeachers)
+ *
+ * @param string $courseId Identifier of the course. This identifier can be
+ * either the Classroom-assigned identifier or an alias.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum number of items to return. Zero means no
+ * maximum. The server may return fewer than the specified number of results.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @return Google_Service_Classroom_ListTeachersResponse
+ */
+ public function listCoursesTeachers($courseId, $optParams = array())
+ {
+ $params = array('courseId' => $courseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListTeachersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php
new file mode 100644
index 00000000..6c946833
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/Invitations.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "invitations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $invitations = $classroomService->invitations;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_Invitations extends Google_Service_Resource
+{
+ /**
+ * Accepts an invitation, removing it and adding the invited user to the
+ * teachers or students (as appropriate) of the specified course. Only the
+ * invited user may accept an invitation. This method returns the following
+ * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * accept the requested invitation or for access errors. * `FAILED_PRECONDITION`
+ * for the following request errors: * CourseMemberLimitReached *
+ * CourseNotModifiable * CourseTeacherLimitReached *
+ * UserGroupsMembershipLimitReached * `NOT_FOUND` if no invitation exists with
+ * the requested ID. (invitations.accept)
+ *
+ * @param string $id Identifier of the invitation to accept.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function accept($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('accept', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Creates an invitation. Only one invitation for a user and course may exist at
+ * a time. Delete and re-create an invitation to make changes. This method
+ * returns the following error codes: * `PERMISSION_DENIED` if the requesting
+ * user is not permitted to create invitations for this course or for access
+ * errors. * `NOT_FOUND` if the course or the user does not exist. *
+ * `FAILED_PRECONDITION` if the requested user's account is disabled or if the
+ * user already has this role or a role with greater permissions. *
+ * `ALREADY_EXISTS` if an invitation for the specified user and course already
+ * exists. (invitations.create)
+ *
+ * @param Google_Service_Classroom_Invitation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Invitation
+ */
+ public function create(Google_Service_Classroom_Invitation $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Classroom_Invitation");
+ }
+ /**
+ * Deletes an invitation. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the requesting user is not permitted to delete the
+ * requested invitation or for access errors. * `NOT_FOUND` if no invitation
+ * exists with the requested ID. (invitations.delete)
+ *
+ * @param string $id Identifier of the invitation to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns an invitation. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the requesting user is not permitted to view the
+ * requested invitation or for access errors. * `NOT_FOUND` if no invitation
+ * exists with the requested ID. (invitations.get)
+ *
+ * @param string $id Identifier of the invitation to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Invitation
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_Invitation");
+ }
+ /**
+ * Returns a list of invitations that the requesting user is permitted to view,
+ * restricted to those that match the list request. *Note:* At least one of
+ * `user_id` or `course_id` must be supplied. Both fields can be supplied. This
+ * method returns the following error codes: * `PERMISSION_DENIED` for access
+ * errors. (invitations.listInvitations)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string userId Restricts returned invitations to those for a
+ * specific user. The identifier can be one of the following: * the numeric
+ * identifier for the user * the email address of the user * the string literal
+ * `"me"`, indicating the requesting user
+ * @opt_param string courseId Restricts returned invitations to those for a
+ * course with the specified identifier.
+ * @opt_param int pageSize Maximum number of items to return. Zero means no
+ * maximum. The server may return fewer than the specified number of results.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @return Google_Service_Classroom_ListInvitationsResponse
+ */
+ public function listInvitations($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListInvitationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfiles.php
new file mode 100644
index 00000000..38ee3eb6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfiles.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userProfiles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $userProfiles = $classroomService->userProfiles;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_UserProfiles extends Google_Service_Resource
+{
+ /**
+ * Returns a user profile. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the requesting user is not permitted to access this
+ * user profile, if no profile exists with the requested ID, or for access
+ * errors. (userProfiles.get)
+ *
+ * @param string $userId Identifier of the profile to return. The identifier can
+ * be one of the following: * the numeric identifier for the user * the email
+ * address of the user * the string literal `"me"`, indicating the requesting
+ * user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_UserProfile
+ */
+ public function get($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_UserProfile");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php
new file mode 100644
index 00000000..a8a88224
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardianInvitations.php
@@ -0,0 +1,166 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "guardianInvitations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $guardianInvitations = $classroomService->guardianInvitations;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_UserProfilesGuardianInvitations extends Google_Service_Resource
+{
+ /**
+ * Creates a guardian invitation, and sends an email to the guardian asking them
+ * to confirm that they are the student's guardian. Once the guardian accepts
+ * the invitation, their `state` will change to `COMPLETED` and they will start
+ * receiving guardian notifications. A `Guardian` resource will also be created
+ * to represent the active guardian. The request object must have the
+ * `student_id` and `invited_email_address` fields set. Failing to set these
+ * fields, or setting any other fields in the request, will result in an error.
+ * This method returns the following error codes: * `PERMISSION_DENIED` if the
+ * current user does not have permission to manage guardians, if the guardian in
+ * question has already rejected too many requests for that student, if
+ * guardians are not enabled for the domain in question, or for other access
+ * errors. * `RESOURCE_EXHAUSTED` if the student or guardian has exceeded the
+ * guardian link limit. * `INVALID_ARGUMENT` if the guardian email address is
+ * not valid (for example, if it is too long), or if the format of the student
+ * ID provided cannot be recognized (it is not an email address, nor a `user_id`
+ * from this API). This error will also be returned if read-only fields are set,
+ * or if the `state` field is set to to a value other than `PENDING`. *
+ * `NOT_FOUND` if the student ID provided is a valid student ID, but Classroom
+ * has no record of that student. * `ALREADY_EXISTS` if there is already a
+ * pending guardian invitation for the student and `invited_email_address`
+ * provided, or if the provided `invited_email_address` matches the Google
+ * account of an existing `Guardian` for this user. (guardianInvitations.create)
+ *
+ * @param string $studentId ID of the student (in standard format)
+ * @param Google_Service_Classroom_GuardianInvitation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_GuardianInvitation
+ */
+ public function create($studentId, Google_Service_Classroom_GuardianInvitation $postBody, $optParams = array())
+ {
+ $params = array('studentId' => $studentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Classroom_GuardianInvitation");
+ }
+ /**
+ * Returns a specific guardian invitation. This method returns the following
+ * error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
+ * view guardian invitations for the student identified by the `student_id`, if
+ * guardians are not enabled for the domain in question, or for other access
+ * errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
+ * cannot be recognized (it is not an email address, nor a `student_id` from the
+ * API, nor the literal string `me`). * `NOT_FOUND` if Classroom cannot find any
+ * record of the given student or `invitation_id`. May also be returned if the
+ * student exists, but the requesting user does not have access to see that
+ * student. (guardianInvitations.get)
+ *
+ * @param string $studentId The ID of the student whose guardian invitation is
+ * being requested.
+ * @param string $invitationId The `id` field of the `GuardianInvitation` being
+ * requested.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_GuardianInvitation
+ */
+ public function get($studentId, $invitationId, $optParams = array())
+ {
+ $params = array('studentId' => $studentId, 'invitationId' => $invitationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_GuardianInvitation");
+ }
+ /**
+ * Returns a list of guardian invitations that the requesting user is permitted
+ * to view, filtered by the parameters provided. This method returns the
+ * following error codes: * `PERMISSION_DENIED` if a `student_id` is specified,
+ * and the requesting user is not permitted to view guardian invitations for
+ * that student, if `"-"` is specified as the `student_id` and the user is not a
+ * domain administrator, if guardians are not enabled for the domain in
+ * question, or for other access errors. * `INVALID_ARGUMENT` if a `student_id`
+ * is specified, but its format cannot be recognized (it is not an email
+ * address, nor a `student_id` from the API, nor the literal string `me`). May
+ * also be returned if an invalid `page_token` or `state` is provided. *
+ * `NOT_FOUND` if a `student_id` is specified, and its format can be recognized,
+ * but Classroom has no record of that student.
+ * (guardianInvitations.listUserProfilesGuardianInvitations)
+ *
+ * @param string $studentId The ID of the student whose guardian invitations are
+ * to be returned. The identifier can be one of the following: * the numeric
+ * identifier for the user * the email address of the user * the string literal
+ * `"me"`, indicating the requesting user * the string literal `"-"`, indicating
+ * that results should be returned for all students that the requesting user is
+ * permitted to view guardian invitations.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string invitedEmailAddress If specified, only results with the
+ * specified `invited_email_address` will be returned.
+ * @opt_param string states If specified, only results with the specified
+ * `state` values will be returned. Otherwise, results with a `state` of
+ * `PENDING` will be returned.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @opt_param int pageSize Maximum number of items to return. Zero or
+ * unspecified indicates that the server may assign a maximum. The server may
+ * return fewer than the specified number of results.
+ * @return Google_Service_Classroom_ListGuardianInvitationsResponse
+ */
+ public function listUserProfilesGuardianInvitations($studentId, $optParams = array())
+ {
+ $params = array('studentId' => $studentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListGuardianInvitationsResponse");
+ }
+ /**
+ * Modifies a guardian invitation. Currently, the only valid modification is to
+ * change the `state` from `PENDING` to `COMPLETE`. This has the effect of
+ * withdrawing the invitation. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if the current user does not have permission to manage
+ * guardians, if guardians are not enabled for the domain in question or for
+ * other access errors. * `FAILED_PRECONDITION` if the guardian link is not in
+ * the `PENDING` state. * `INVALID_ARGUMENT` if the format of the student ID
+ * provided cannot be recognized (it is not an email address, nor a `user_id`
+ * from this API), or if the passed `GuardianInvitation` has a `state` other
+ * than `COMPLETE`, or if it modifies fields other than `state`. * `NOT_FOUND`
+ * if the student ID provided is a valid student ID, but Classroom has no record
+ * of that student, or if the `id` field does not refer to a guardian invitation
+ * known to Classroom. (guardianInvitations.patch)
+ *
+ * @param string $studentId The ID of the student whose guardian invitation is
+ * to be modified.
+ * @param string $invitationId The `id` field of the `GuardianInvitation` to be
+ * modified.
+ * @param Google_Service_Classroom_GuardianInvitation $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Mask that identifies which fields on the course
+ * to update. This field is required to do an update. The update will fail if
+ * invalid fields are specified. The following fields are valid: * `state` When
+ * set in a query parameter, this field should be specified as
+ * `updateMask=,,...`
+ * @return Google_Service_Classroom_GuardianInvitation
+ */
+ public function patch($studentId, $invitationId, Google_Service_Classroom_GuardianInvitation $postBody, $optParams = array())
+ {
+ $params = array('studentId' => $studentId, 'invitationId' => $invitationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Classroom_GuardianInvitation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php
new file mode 100644
index 00000000..98a8371f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Resource/UserProfilesGuardians.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "guardians" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $classroomService = new Google_Service_Classroom(...);
+ * $guardians = $classroomService->guardians;
+ * </code>
+ */
+class Google_Service_Classroom_Resource_UserProfilesGuardians extends Google_Service_Resource
+{
+ /**
+ * Deletes a guardian. The guardian will no longer receive guardian
+ * notifications and the guardian will no longer be accessible via the API. This
+ * method returns the following error codes: * `PERMISSION_DENIED` if no user
+ * that matches the provided `student_id` is visible to the requesting user, if
+ * the requesting user is not permitted to manage guardians for the student
+ * identified by the `student_id`, if guardians are not enabled for the domain
+ * in question, or for other access errors. * `INVALID_ARGUMENT` if a
+ * `student_id` is specified, but its format cannot be recognized (it is not an
+ * email address, nor a `student_id` from the API). * `NOT_FOUND` if the
+ * requesting user is permitted to modify guardians for the requested
+ * `student_id`, but no `Guardian` record exists for that student with the
+ * provided `guardian_id`. (guardians.delete)
+ *
+ * @param string $studentId The student whose guardian is to be deleted. One of
+ * the following: * the numeric identifier for the user * the email address of
+ * the user * the string literal `"me"`, indicating the requesting user
+ * @param string $guardianId The `id` field from a `Guardian`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_ClassroomEmpty
+ */
+ public function delete($studentId, $guardianId, $optParams = array())
+ {
+ $params = array('studentId' => $studentId, 'guardianId' => $guardianId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Classroom_ClassroomEmpty");
+ }
+ /**
+ * Returns a specific guardian. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if no user that matches the provided `student_id` is
+ * visible to the requesting user, if the requesting user is not permitted to
+ * view guardian information for the student identified by the `student_id`, if
+ * guardians are not enabled for the domain in question, or for other access
+ * errors. * `INVALID_ARGUMENT` if a `student_id` is specified, but its format
+ * cannot be recognized (it is not an email address, nor a `student_id` from the
+ * API, nor the literal string `me`). * `NOT_FOUND` if the requesting user is
+ * permitted to view guardians for the requested `student_id`, but no `Guardian`
+ * record exists for that student that matches the provided `guardian_id`.
+ * (guardians.get)
+ *
+ * @param string $studentId The student whose guardian is being requested. One
+ * of the following: * the numeric identifier for the user * the email address
+ * of the user * the string literal `"me"`, indicating the requesting user
+ * @param string $guardianId The `id` field from a `Guardian`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Classroom_Guardian
+ */
+ public function get($studentId, $guardianId, $optParams = array())
+ {
+ $params = array('studentId' => $studentId, 'guardianId' => $guardianId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Classroom_Guardian");
+ }
+ /**
+ * Returns a list of guardians that the requesting user is permitted to view,
+ * restricted to those that match the request. To list guardians for any student
+ * that the requesting user may view guardians for, use the literal character
+ * `-` for the student ID. This method returns the following error codes: *
+ * `PERMISSION_DENIED` if a `student_id` is specified, and the requesting user
+ * is not permitted to view guardian information for that student, if `"-"` is
+ * specified as the `student_id` and the user is not a domain administrator, if
+ * guardians are not enabled for the domain in question, if the
+ * `invited_email_address` filter is set by a user who is not a domain
+ * administrator, or for other access errors. * `INVALID_ARGUMENT` if a
+ * `student_id` is specified, but its format cannot be recognized (it is not an
+ * email address, nor a `student_id` from the API, nor the literal string `me`).
+ * May also be returned if an invalid `page_token` is provided. * `NOT_FOUND` if
+ * a `student_id` is specified, and its format can be recognized, but Classroom
+ * has no record of that student. (guardians.listUserProfilesGuardians)
+ *
+ * @param string $studentId Filter results by the student who the guardian is
+ * linked to. The identifier can be one of the following: * the numeric
+ * identifier for the user * the email address of the user * the string literal
+ * `"me"`, indicating the requesting user * the string literal `"-"`, indicating
+ * that results should be returned for all students that the requesting user has
+ * access to view.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string invitedEmailAddress Filter results by the email address
+ * that the original invitation was sent to, resulting in this guardian link.
+ * This filter can only be used by domain administrators.
+ * @opt_param string pageToken nextPageToken value returned from a previous list
+ * call, indicating that the subsequent page of results should be returned. The
+ * list request must be otherwise identical to the one that resulted in this
+ * token.
+ * @opt_param int pageSize Maximum number of items to return. Zero or
+ * unspecified indicates that the server may assign a maximum. The server may
+ * return fewer than the specified number of results.
+ * @return Google_Service_Classroom_ListGuardiansResponse
+ */
+ public function listUserProfilesGuardians($studentId, $optParams = array())
+ {
+ $params = array('studentId' => $studentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Classroom_ListGuardiansResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReturnStudentSubmissionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReturnStudentSubmissionRequest.php
new file mode 100644
index 00000000..e9b41ced
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ReturnStudentSubmissionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ReturnStudentSubmissionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/SharedDriveFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/SharedDriveFile.php
new file mode 100644
index 00000000..b5d3e1f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/SharedDriveFile.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_SharedDriveFile extends Google_Model
+{
+ protected $driveFileType = 'Google_Service_Classroom_DriveFile';
+ protected $driveFileDataType = '';
+ public $shareMode;
+
+ public function setDriveFile(Google_Service_Classroom_DriveFile $driveFile)
+ {
+ $this->driveFile = $driveFile;
+ }
+ public function getDriveFile()
+ {
+ return $this->driveFile;
+ }
+ public function setShareMode($shareMode)
+ {
+ $this->shareMode = $shareMode;
+ }
+ public function getShareMode()
+ {
+ return $this->shareMode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ShortAnswerSubmission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ShortAnswerSubmission.php
new file mode 100644
index 00000000..e4c59121
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/ShortAnswerSubmission.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_ShortAnswerSubmission extends Google_Model
+{
+ public $answer;
+
+ public function setAnswer($answer)
+ {
+ $this->answer = $answer;
+ }
+ public function getAnswer()
+ {
+ return $this->answer;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Student.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Student.php
new file mode 100644
index 00000000..65e5dcdd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Student.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Student extends Google_Model
+{
+ public $courseId;
+ protected $profileType = 'Google_Service_Classroom_UserProfile';
+ protected $profileDataType = '';
+ protected $studentWorkFolderType = 'Google_Service_Classroom_DriveFolder';
+ protected $studentWorkFolderDataType = '';
+ public $userId;
+
+ public function setCourseId($courseId)
+ {
+ $this->courseId = $courseId;
+ }
+ public function getCourseId()
+ {
+ return $this->courseId;
+ }
+ public function setProfile(Google_Service_Classroom_UserProfile $profile)
+ {
+ $this->profile = $profile;
+ }
+ public function getProfile()
+ {
+ return $this->profile;
+ }
+ public function setStudentWorkFolder(Google_Service_Classroom_DriveFolder $studentWorkFolder)
+ {
+ $this->studentWorkFolder = $studentWorkFolder;
+ }
+ public function getStudentWorkFolder()
+ {
+ return $this->studentWorkFolder;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/StudentSubmission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/StudentSubmission.php
new file mode 100644
index 00000000..82262450
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/StudentSubmission.php
@@ -0,0 +1,168 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_StudentSubmission extends Google_Model
+{
+ public $alternateLink;
+ public $assignedGrade;
+ protected $assignmentSubmissionType = 'Google_Service_Classroom_AssignmentSubmission';
+ protected $assignmentSubmissionDataType = '';
+ public $associatedWithDeveloper;
+ public $courseId;
+ public $courseWorkId;
+ public $courseWorkType;
+ public $creationTime;
+ public $draftGrade;
+ public $id;
+ public $late;
+ protected $multipleChoiceSubmissionType = 'Google_Service_Classroom_MultipleChoiceSubmission';
+ protected $multipleChoiceSubmissionDataType = '';
+ protected $shortAnswerSubmissionType = 'Google_Service_Classroom_ShortAnswerSubmission';
+ protected $shortAnswerSubmissionDataType = '';
+ public $state;
+ public $updateTime;
+ public $userId;
+
+ public function setAlternateLink($alternateLink)
+ {
+ $this->alternateLink = $alternateLink;
+ }
+ public function getAlternateLink()
+ {
+ return $this->alternateLink;
+ }
+ public function setAssignedGrade($assignedGrade)
+ {
+ $this->assignedGrade = $assignedGrade;
+ }
+ public function getAssignedGrade()
+ {
+ return $this->assignedGrade;
+ }
+ public function setAssignmentSubmission(Google_Service_Classroom_AssignmentSubmission $assignmentSubmission)
+ {
+ $this->assignmentSubmission = $assignmentSubmission;
+ }
+ public function getAssignmentSubmission()
+ {
+ return $this->assignmentSubmission;
+ }
+ public function setAssociatedWithDeveloper($associatedWithDeveloper)
+ {
+ $this->associatedWithDeveloper = $associatedWithDeveloper;
+ }
+ public function getAssociatedWithDeveloper()
+ {
+ return $this->associatedWithDeveloper;
+ }
+ public function setCourseId($courseId)
+ {
+ $this->courseId = $courseId;
+ }
+ public function getCourseId()
+ {
+ return $this->courseId;
+ }
+ public function setCourseWorkId($courseWorkId)
+ {
+ $this->courseWorkId = $courseWorkId;
+ }
+ public function getCourseWorkId()
+ {
+ return $this->courseWorkId;
+ }
+ public function setCourseWorkType($courseWorkType)
+ {
+ $this->courseWorkType = $courseWorkType;
+ }
+ public function getCourseWorkType()
+ {
+ return $this->courseWorkType;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDraftGrade($draftGrade)
+ {
+ $this->draftGrade = $draftGrade;
+ }
+ public function getDraftGrade()
+ {
+ return $this->draftGrade;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLate($late)
+ {
+ $this->late = $late;
+ }
+ public function getLate()
+ {
+ return $this->late;
+ }
+ public function setMultipleChoiceSubmission(Google_Service_Classroom_MultipleChoiceSubmission $multipleChoiceSubmission)
+ {
+ $this->multipleChoiceSubmission = $multipleChoiceSubmission;
+ }
+ public function getMultipleChoiceSubmission()
+ {
+ return $this->multipleChoiceSubmission;
+ }
+ public function setShortAnswerSubmission(Google_Service_Classroom_ShortAnswerSubmission $shortAnswerSubmission)
+ {
+ $this->shortAnswerSubmission = $shortAnswerSubmission;
+ }
+ public function getShortAnswerSubmission()
+ {
+ return $this->shortAnswerSubmission;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Teacher.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Teacher.php
new file mode 100644
index 00000000..a8ae4511
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/Teacher.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_Teacher extends Google_Model
+{
+ public $courseId;
+ protected $profileType = 'Google_Service_Classroom_UserProfile';
+ protected $profileDataType = '';
+ public $userId;
+
+ public function setCourseId($courseId)
+ {
+ $this->courseId = $courseId;
+ }
+ public function getCourseId()
+ {
+ return $this->courseId;
+ }
+ public function setProfile(Google_Service_Classroom_UserProfile $profile)
+ {
+ $this->profile = $profile;
+ }
+ public function getProfile()
+ {
+ return $this->profile;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TimeOfDay.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TimeOfDay.php
new file mode 100644
index 00000000..77255e1c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TimeOfDay.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_TimeOfDay extends Google_Model
+{
+ public $hours;
+ public $minutes;
+ public $nanos;
+ public $seconds;
+
+ public function setHours($hours)
+ {
+ $this->hours = $hours;
+ }
+ public function getHours()
+ {
+ return $this->hours;
+ }
+ public function setMinutes($minutes)
+ {
+ $this->minutes = $minutes;
+ }
+ public function getMinutes()
+ {
+ return $this->minutes;
+ }
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+ public function setSeconds($seconds)
+ {
+ $this->seconds = $seconds;
+ }
+ public function getSeconds()
+ {
+ return $this->seconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TurnInStudentSubmissionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TurnInStudentSubmissionRequest.php
new file mode 100644
index 00000000..47f135bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/TurnInStudentSubmissionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_TurnInStudentSubmissionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/UserProfile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/UserProfile.php
new file mode 100644
index 00000000..be414b9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/UserProfile.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_UserProfile extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $emailAddress;
+ public $id;
+ protected $nameType = 'Google_Service_Classroom_Name';
+ protected $nameDataType = '';
+ protected $permissionsType = 'Google_Service_Classroom_GlobalPermission';
+ protected $permissionsDataType = 'array';
+ public $photoUrl;
+
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName(Google_Service_Classroom_Name $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/YouTubeVideo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/YouTubeVideo.php
new file mode 100644
index 00000000..b3c33abc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Classroom/YouTubeVideo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Classroom_YouTubeVideo extends Google_Model
+{
+ public $alternateLink;
+ public $id;
+ public $thumbnailUrl;
+ public $title;
+
+ public function setAlternateLink($alternateLink)
+ {
+ $this->alternateLink = $alternateLink;
+ }
+ public function getAlternateLink()
+ {
+ return $this->alternateLink;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setThumbnailUrl($thumbnailUrl)
+ {
+ $this->thumbnailUrl = $thumbnailUrl;
+ }
+ public function getThumbnailUrl()
+ {
+ return $this->thumbnailUrl;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild.php
new file mode 100644
index 00000000..7f483bf1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild.php
@@ -0,0 +1,254 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudBuild (v1).
+ *
+ * <p>
+ * Builds container images in the cloud.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/container-builder/docs/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudBuild extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $operations;
+ public $projects_builds;
+ public $projects_triggers;
+
+ /**
+ * Constructs the internal representation of the CloudBuild service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://cloudbuild.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'cloudbuild';
+
+ $this->operations = new Google_Service_CloudBuild_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_builds = new Google_Service_CloudBuild_Resource_ProjectsBuilds(
+ $this,
+ $this->serviceName,
+ 'builds',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/projects/{projectId}/builds/{id}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1/projects/{projectId}/builds',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}/builds/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/builds',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_triggers = new Google_Service_CloudBuild_Resource_ProjectsTriggers(
+ $this,
+ $this->serviceName,
+ 'triggers',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/projects/{projectId}/triggers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/projects/{projectId}/triggers/{triggerId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'triggerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}/triggers/{triggerId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'triggerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/triggers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/projects/{projectId}/triggers/{triggerId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'triggerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Build.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Build.php
new file mode 100644
index 00000000..7f926793
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Build.php
@@ -0,0 +1,189 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_Build extends Google_Collection
+{
+ protected $collection_key = 'steps';
+ public $buildTriggerId;
+ public $createTime;
+ public $finishTime;
+ public $id;
+ public $images;
+ public $logUrl;
+ public $logsBucket;
+ protected $optionsType = 'Google_Service_CloudBuild_BuildOptions';
+ protected $optionsDataType = '';
+ public $projectId;
+ protected $resultsType = 'Google_Service_CloudBuild_Results';
+ protected $resultsDataType = '';
+ protected $sourceType = 'Google_Service_CloudBuild_Source';
+ protected $sourceDataType = '';
+ protected $sourceProvenanceType = 'Google_Service_CloudBuild_SourceProvenance';
+ protected $sourceProvenanceDataType = '';
+ public $startTime;
+ public $status;
+ public $statusDetail;
+ protected $stepsType = 'Google_Service_CloudBuild_BuildStep';
+ protected $stepsDataType = 'array';
+ public $substitutions;
+ public $timeout;
+
+ public function setBuildTriggerId($buildTriggerId)
+ {
+ $this->buildTriggerId = $buildTriggerId;
+ }
+ public function getBuildTriggerId()
+ {
+ return $this->buildTriggerId;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setFinishTime($finishTime)
+ {
+ $this->finishTime = $finishTime;
+ }
+ public function getFinishTime()
+ {
+ return $this->finishTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImages($images)
+ {
+ $this->images = $images;
+ }
+ public function getImages()
+ {
+ return $this->images;
+ }
+ public function setLogUrl($logUrl)
+ {
+ $this->logUrl = $logUrl;
+ }
+ public function getLogUrl()
+ {
+ return $this->logUrl;
+ }
+ public function setLogsBucket($logsBucket)
+ {
+ $this->logsBucket = $logsBucket;
+ }
+ public function getLogsBucket()
+ {
+ return $this->logsBucket;
+ }
+ public function setOptions(Google_Service_CloudBuild_BuildOptions $options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setResults(Google_Service_CloudBuild_Results $results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+ public function setSource(Google_Service_CloudBuild_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setSourceProvenance(Google_Service_CloudBuild_SourceProvenance $sourceProvenance)
+ {
+ $this->sourceProvenance = $sourceProvenance;
+ }
+ public function getSourceProvenance()
+ {
+ return $this->sourceProvenance;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusDetail($statusDetail)
+ {
+ $this->statusDetail = $statusDetail;
+ }
+ public function getStatusDetail()
+ {
+ return $this->statusDetail;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+ public function setSubstitutions($substitutions)
+ {
+ $this->substitutions = $substitutions;
+ }
+ public function getSubstitutions()
+ {
+ return $this->substitutions;
+ }
+ public function setTimeout($timeout)
+ {
+ $this->timeout = $timeout;
+ }
+ public function getTimeout()
+ {
+ return $this->timeout;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOperationMetadata.php
new file mode 100644
index 00000000..7eaa492c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOperationMetadata.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_BuildOperationMetadata extends Google_Model
+{
+ protected $buildType = 'Google_Service_CloudBuild_Build';
+ protected $buildDataType = '';
+
+ public function setBuild(Google_Service_CloudBuild_Build $build)
+ {
+ $this->build = $build;
+ }
+ public function getBuild()
+ {
+ return $this->build;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php
new file mode 100644
index 00000000..a5bec28a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildOptions.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_BuildOptions extends Google_Collection
+{
+ protected $collection_key = 'sourceProvenanceHash';
+ public $requestedVerifyOption;
+ public $sourceProvenanceHash;
+
+ public function setRequestedVerifyOption($requestedVerifyOption)
+ {
+ $this->requestedVerifyOption = $requestedVerifyOption;
+ }
+ public function getRequestedVerifyOption()
+ {
+ return $this->requestedVerifyOption;
+ }
+ public function setSourceProvenanceHash($sourceProvenanceHash)
+ {
+ $this->sourceProvenanceHash = $sourceProvenanceHash;
+ }
+ public function getSourceProvenanceHash()
+ {
+ return $this->sourceProvenanceHash;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php
new file mode 100644
index 00000000..bf4b78be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildStep.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_BuildStep extends Google_Collection
+{
+ protected $collection_key = 'waitFor';
+ public $args;
+ public $dir;
+ public $entrypoint;
+ public $env;
+ public $id;
+ public $name;
+ public $waitFor;
+
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setDir($dir)
+ {
+ $this->dir = $dir;
+ }
+ public function getDir()
+ {
+ return $this->dir;
+ }
+ public function setEntrypoint($entrypoint)
+ {
+ $this->entrypoint = $entrypoint;
+ }
+ public function getEntrypoint()
+ {
+ return $this->entrypoint;
+ }
+ public function setEnv($env)
+ {
+ $this->env = $env;
+ }
+ public function getEnv()
+ {
+ return $this->env;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setWaitFor($waitFor)
+ {
+ $this->waitFor = $waitFor;
+ }
+ public function getWaitFor()
+ {
+ return $this->waitFor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php
new file mode 100644
index 00000000..1c9a2274
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuildTrigger.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_BuildTrigger extends Google_Model
+{
+ protected $buildType = 'Google_Service_CloudBuild_Build';
+ protected $buildDataType = '';
+ public $createTime;
+ public $description;
+ public $disabled;
+ public $filename;
+ public $id;
+ public $substitutions;
+ protected $triggerTemplateType = 'Google_Service_CloudBuild_RepoSource';
+ protected $triggerTemplateDataType = '';
+
+ public function setBuild(Google_Service_CloudBuild_Build $build)
+ {
+ $this->build = $build;
+ }
+ public function getBuild()
+ {
+ return $this->build;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisabled($disabled)
+ {
+ $this->disabled = $disabled;
+ }
+ public function getDisabled()
+ {
+ return $this->disabled;
+ }
+ public function setFilename($filename)
+ {
+ $this->filename = $filename;
+ }
+ public function getFilename()
+ {
+ return $this->filename;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSubstitutions($substitutions)
+ {
+ $this->substitutions = $substitutions;
+ }
+ public function getSubstitutions()
+ {
+ return $this->substitutions;
+ }
+ public function setTriggerTemplate(Google_Service_CloudBuild_RepoSource $triggerTemplate)
+ {
+ $this->triggerTemplate = $triggerTemplate;
+ }
+ public function getTriggerTemplate()
+ {
+ return $this->triggerTemplate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuiltImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuiltImage.php
new file mode 100644
index 00000000..018efa99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/BuiltImage.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_BuiltImage extends Google_Model
+{
+ public $digest;
+ public $name;
+
+ public function setDigest($digest)
+ {
+ $this->digest = $digest;
+ }
+ public function getDigest()
+ {
+ return $this->digest;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelBuildRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelBuildRequest.php
new file mode 100644
index 00000000..ffb7bbbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelBuildRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_CancelBuildRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelOperationRequest.php
new file mode 100644
index 00000000..2fa69d0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CancelOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_CancelOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CloudbuildEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CloudbuildEmpty.php
new file mode 100644
index 00000000..a5c5e6b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/CloudbuildEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_CloudbuildEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/FileHashes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/FileHashes.php
new file mode 100644
index 00000000..0f52f21a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/FileHashes.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_FileHashes extends Google_Collection
+{
+ protected $collection_key = 'fileHash';
+ protected $fileHashType = 'Google_Service_CloudBuild_Hash';
+ protected $fileHashDataType = 'array';
+
+ public function setFileHash($fileHash)
+ {
+ $this->fileHash = $fileHash;
+ }
+ public function getFileHash()
+ {
+ return $this->fileHash;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Hash.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Hash.php
new file mode 100644
index 00000000..3040ebf6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Hash.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_Hash extends Google_Model
+{
+ public $type;
+ public $value;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildTriggersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildTriggersResponse.php
new file mode 100644
index 00000000..73b9afaa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildTriggersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_ListBuildTriggersResponse extends Google_Collection
+{
+ protected $collection_key = 'triggers';
+ protected $triggersType = 'Google_Service_CloudBuild_BuildTrigger';
+ protected $triggersDataType = 'array';
+
+ public function setTriggers($triggers)
+ {
+ $this->triggers = $triggers;
+ }
+ public function getTriggers()
+ {
+ return $this->triggers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildsResponse.php
new file mode 100644
index 00000000..f6749c76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListBuildsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_ListBuildsResponse extends Google_Collection
+{
+ protected $collection_key = 'builds';
+ protected $buildsType = 'Google_Service_CloudBuild_Build';
+ protected $buildsDataType = 'array';
+ public $nextPageToken;
+
+ public function setBuilds($builds)
+ {
+ $this->builds = $builds;
+ }
+ public function getBuilds()
+ {
+ return $this->builds;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListOperationsResponse.php
new file mode 100644
index 00000000..ac6517dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_CloudBuild_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Operation.php
new file mode 100644
index 00000000..2aeb3224
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_CloudBuild_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudBuild_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/RepoSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/RepoSource.php
new file mode 100644
index 00000000..aae7ef58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/RepoSource.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_RepoSource extends Google_Model
+{
+ public $branchName;
+ public $commitSha;
+ public $projectId;
+ public $repoName;
+ public $tagName;
+
+ public function setBranchName($branchName)
+ {
+ $this->branchName = $branchName;
+ }
+ public function getBranchName()
+ {
+ return $this->branchName;
+ }
+ public function setCommitSha($commitSha)
+ {
+ $this->commitSha = $commitSha;
+ }
+ public function getCommitSha()
+ {
+ return $this->commitSha;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setRepoName($repoName)
+ {
+ $this->repoName = $repoName;
+ }
+ public function getRepoName()
+ {
+ return $this->repoName;
+ }
+ public function setTagName($tagName)
+ {
+ $this->tagName = $tagName;
+ }
+ public function getTagName()
+ {
+ return $this->tagName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php
new file mode 100644
index 00000000..e4adde4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Operations.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudbuildService = new Google_Service_CloudBuild(...);
+ * $operations = $cloudbuildService->operations;
+ * </code>
+ */
+class Google_Service_CloudBuild_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param Google_Service_CloudBuild_CancelOperationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_CloudbuildEmpty
+ */
+ public function cancel($name, Google_Service_CloudBuild_CancelOperationRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudBuild_CloudbuildEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudBuild_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string filter The standard list filter.
+ * @return Google_Service_CloudBuild_ListOperationsResponse
+ */
+ public function listOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudBuild_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Projects.php
new file mode 100644
index 00000000..d9806091
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudbuildService = new Google_Service_CloudBuild(...);
+ * $projects = $cloudbuildService->projects;
+ * </code>
+ */
+class Google_Service_CloudBuild_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsBuilds.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsBuilds.php
new file mode 100644
index 00000000..e3f22516
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsBuilds.php
@@ -0,0 +1,99 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "builds" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudbuildService = new Google_Service_CloudBuild(...);
+ * $builds = $cloudbuildService->builds;
+ * </code>
+ */
+class Google_Service_CloudBuild_Resource_ProjectsBuilds extends Google_Service_Resource
+{
+ /**
+ * Cancels a requested build in progress. (builds.cancel)
+ *
+ * @param string $projectId ID of the project.
+ * @param string $id ID of the build.
+ * @param Google_Service_CloudBuild_CancelBuildRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_Build
+ */
+ public function cancel($projectId, $id, Google_Service_CloudBuild_CancelBuildRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudBuild_Build");
+ }
+ /**
+ * Starts a build with the specified configuration.
+ *
+ * The long-running Operation returned by this method will include the ID of the
+ * build, which can be passed to GetBuild to determine its status (e.g., success
+ * or failure). (builds.create)
+ *
+ * @param string $projectId ID of the project.
+ * @param Google_Service_CloudBuild_Build $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_Operation
+ */
+ public function create($projectId, Google_Service_CloudBuild_Build $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudBuild_Operation");
+ }
+ /**
+ * Returns information about a previously requested build.
+ *
+ * The Build that is returned includes its status (e.g., success or failure, or
+ * in-progress), and timing information. (builds.get)
+ *
+ * @param string $projectId ID of the project.
+ * @param string $id ID of the build.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_Build
+ */
+ public function get($projectId, $id, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudBuild_Build");
+ }
+ /**
+ * Lists previously requested builds.
+ *
+ * Previously requested builds may still be in-progress, or may have finished
+ * successfully or unsuccessfully. (builds.listProjectsBuilds)
+ *
+ * @param string $projectId ID of the project.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The raw filter text to constrain the results.
+ * @opt_param string pageToken Token to provide to skip to a particular spot in
+ * the list.
+ * @opt_param int pageSize Number of results to return in the list.
+ * @return Google_Service_CloudBuild_ListBuildsResponse
+ */
+ public function listProjectsBuilds($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudBuild_ListBuildsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsTriggers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsTriggers.php
new file mode 100644
index 00000000..d978fc4c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Resource/ProjectsTriggers.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "triggers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudbuildService = new Google_Service_CloudBuild(...);
+ * $triggers = $cloudbuildService->triggers;
+ * </code>
+ */
+class Google_Service_CloudBuild_Resource_ProjectsTriggers extends Google_Service_Resource
+{
+ /**
+ * Creates a new BuildTrigger.
+ *
+ * This API is experimental. (triggers.create)
+ *
+ * @param string $projectId ID of the project for which to configure automatic
+ * builds.
+ * @param Google_Service_CloudBuild_BuildTrigger $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_BuildTrigger
+ */
+ public function create($projectId, Google_Service_CloudBuild_BuildTrigger $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudBuild_BuildTrigger");
+ }
+ /**
+ * Deletes an BuildTrigger by its project ID and trigger ID.
+ *
+ * This API is experimental. (triggers.delete)
+ *
+ * @param string $projectId ID of the project that owns the trigger.
+ * @param string $triggerId ID of the BuildTrigger to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_CloudbuildEmpty
+ */
+ public function delete($projectId, $triggerId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'triggerId' => $triggerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudBuild_CloudbuildEmpty");
+ }
+ /**
+ * Gets information about a BuildTrigger.
+ *
+ * This API is experimental. (triggers.get)
+ *
+ * @param string $projectId ID of the project that owns the trigger.
+ * @param string $triggerId ID of the BuildTrigger to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_BuildTrigger
+ */
+ public function get($projectId, $triggerId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'triggerId' => $triggerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudBuild_BuildTrigger");
+ }
+ /**
+ * Lists existing BuildTrigger.
+ *
+ * This API is experimental. (triggers.listProjectsTriggers)
+ *
+ * @param string $projectId ID of the project for which to list BuildTriggers.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_ListBuildTriggersResponse
+ */
+ public function listProjectsTriggers($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudBuild_ListBuildTriggersResponse");
+ }
+ /**
+ * Updates an BuildTrigger by its project ID and trigger ID.
+ *
+ * This API is experimental. (triggers.patch)
+ *
+ * @param string $projectId ID of the project that owns the trigger.
+ * @param string $triggerId ID of the BuildTrigger to update.
+ * @param Google_Service_CloudBuild_BuildTrigger $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudBuild_BuildTrigger
+ */
+ public function patch($projectId, $triggerId, Google_Service_CloudBuild_BuildTrigger $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'triggerId' => $triggerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_CloudBuild_BuildTrigger");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Results.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Results.php
new file mode 100644
index 00000000..a1f776d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Results.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_Results extends Google_Collection
+{
+ protected $collection_key = 'images';
+ public $buildStepImages;
+ protected $imagesType = 'Google_Service_CloudBuild_BuiltImage';
+ protected $imagesDataType = 'array';
+
+ public function setBuildStepImages($buildStepImages)
+ {
+ $this->buildStepImages = $buildStepImages;
+ }
+ public function getBuildStepImages()
+ {
+ return $this->buildStepImages;
+ }
+ public function setImages($images)
+ {
+ $this->images = $images;
+ }
+ public function getImages()
+ {
+ return $this->images;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Source.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Source.php
new file mode 100644
index 00000000..a6e26a02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Source.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_Source extends Google_Model
+{
+ protected $repoSourceType = 'Google_Service_CloudBuild_RepoSource';
+ protected $repoSourceDataType = '';
+ protected $storageSourceType = 'Google_Service_CloudBuild_StorageSource';
+ protected $storageSourceDataType = '';
+
+ public function setRepoSource(Google_Service_CloudBuild_RepoSource $repoSource)
+ {
+ $this->repoSource = $repoSource;
+ }
+ public function getRepoSource()
+ {
+ return $this->repoSource;
+ }
+ public function setStorageSource(Google_Service_CloudBuild_StorageSource $storageSource)
+ {
+ $this->storageSource = $storageSource;
+ }
+ public function getStorageSource()
+ {
+ return $this->storageSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/SourceProvenance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/SourceProvenance.php
new file mode 100644
index 00000000..a89a9c5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/SourceProvenance.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_SourceProvenance extends Google_Model
+{
+ protected $fileHashesType = 'Google_Service_CloudBuild_FileHashes';
+ protected $fileHashesDataType = 'map';
+ protected $resolvedRepoSourceType = 'Google_Service_CloudBuild_RepoSource';
+ protected $resolvedRepoSourceDataType = '';
+ protected $resolvedStorageSourceType = 'Google_Service_CloudBuild_StorageSource';
+ protected $resolvedStorageSourceDataType = '';
+
+ public function setFileHashes($fileHashes)
+ {
+ $this->fileHashes = $fileHashes;
+ }
+ public function getFileHashes()
+ {
+ return $this->fileHashes;
+ }
+ public function setResolvedRepoSource(Google_Service_CloudBuild_RepoSource $resolvedRepoSource)
+ {
+ $this->resolvedRepoSource = $resolvedRepoSource;
+ }
+ public function getResolvedRepoSource()
+ {
+ return $this->resolvedRepoSource;
+ }
+ public function setResolvedStorageSource(Google_Service_CloudBuild_StorageSource $resolvedStorageSource)
+ {
+ $this->resolvedStorageSource = $resolvedStorageSource;
+ }
+ public function getResolvedStorageSource()
+ {
+ return $this->resolvedStorageSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Status.php
new file mode 100644
index 00000000..66067950
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/StorageSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/StorageSource.php
new file mode 100644
index 00000000..3a3df0a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudBuild/StorageSource.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudBuild_StorageSource extends Google_Model
+{
+ public $bucket;
+ public $generation;
+ public $object;
+
+ public function setBucket($bucket)
+ {
+ $this->bucket = $bucket;
+ }
+ public function getBucket()
+ {
+ return $this->bucket;
+ }
+ public function setGeneration($generation)
+ {
+ $this->generation = $generation;
+ }
+ public function getGeneration()
+ {
+ return $this->generation;
+ }
+ public function setObject($object)
+ {
+ $this->object = $object;
+ }
+ public function getObject()
+ {
+ return $this->object;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger.php
new file mode 100644
index 00000000..79744f14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger.php
@@ -0,0 +1,240 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudDebugger (v2).
+ *
+ * <p>
+ * Examines the call stack and variables of a running application without
+ * stopping or slowing it down.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="http://cloud.google.com/debugger" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudDebugger extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Manage cloud debugger. */
+ const CLOUD_DEBUGGER =
+ "https://www.googleapis.com/auth/cloud_debugger";
+
+ public $controller_debuggees;
+ public $controller_debuggees_breakpoints;
+ public $debugger_debuggees;
+ public $debugger_debuggees_breakpoints;
+
+ /**
+ * Constructs the internal representation of the CloudDebugger service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://clouddebugger.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v2';
+ $this->serviceName = 'clouddebugger';
+
+ $this->controller_debuggees = new Google_Service_CloudDebugger_Resource_ControllerDebuggees(
+ $this,
+ $this->serviceName,
+ 'debuggees',
+ array(
+ 'methods' => array(
+ 'register' => array(
+ 'path' => 'v2/controller/debuggees/register',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->controller_debuggees_breakpoints = new Google_Service_CloudDebugger_Resource_ControllerDebuggeesBreakpoints(
+ $this,
+ $this->serviceName,
+ 'breakpoints',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'debuggeeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'successOnTimeout' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'waitToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'debuggeeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->debugger_debuggees = new Google_Service_CloudDebugger_Resource_DebuggerDebuggees(
+ $this,
+ $this->serviceName,
+ 'debuggees',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/debugger/debuggees',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'clientVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeInactive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'project' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->debugger_debuggees_breakpoints = new Google_Service_CloudDebugger_Resource_DebuggerDebuggeesBreakpoints(
+ $this,
+ $this->serviceName,
+ 'breakpoints',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'debuggeeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'breakpointId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'debuggeeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'breakpointId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'debuggeeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stripResults' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'waitToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'clientVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'action.value' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeAllUsers' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'includeInactive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'set' => array(
+ 'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'debuggeeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/AliasContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/AliasContext.php
new file mode 100644
index 00000000..0a0d9892
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/AliasContext.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_AliasContext extends Google_Model
+{
+ public $kind;
+ public $name;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Breakpoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Breakpoint.php
new file mode 100644
index 00000000..146ca95a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Breakpoint.php
@@ -0,0 +1,171 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_Breakpoint extends Google_Collection
+{
+ protected $collection_key = 'variableTable';
+ public $action;
+ public $condition;
+ public $createTime;
+ protected $evaluatedExpressionsType = 'Google_Service_CloudDebugger_Variable';
+ protected $evaluatedExpressionsDataType = 'array';
+ public $expressions;
+ public $finalTime;
+ public $id;
+ public $isFinalState;
+ public $labels;
+ protected $locationType = 'Google_Service_CloudDebugger_SourceLocation';
+ protected $locationDataType = '';
+ public $logLevel;
+ public $logMessageFormat;
+ protected $stackFramesType = 'Google_Service_CloudDebugger_StackFrame';
+ protected $stackFramesDataType = 'array';
+ protected $statusType = 'Google_Service_CloudDebugger_StatusMessage';
+ protected $statusDataType = '';
+ public $userEmail;
+ protected $variableTableType = 'Google_Service_CloudDebugger_Variable';
+ protected $variableTableDataType = 'array';
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setCondition($condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEvaluatedExpressions($evaluatedExpressions)
+ {
+ $this->evaluatedExpressions = $evaluatedExpressions;
+ }
+ public function getEvaluatedExpressions()
+ {
+ return $this->evaluatedExpressions;
+ }
+ public function setExpressions($expressions)
+ {
+ $this->expressions = $expressions;
+ }
+ public function getExpressions()
+ {
+ return $this->expressions;
+ }
+ public function setFinalTime($finalTime)
+ {
+ $this->finalTime = $finalTime;
+ }
+ public function getFinalTime()
+ {
+ return $this->finalTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsFinalState($isFinalState)
+ {
+ $this->isFinalState = $isFinalState;
+ }
+ public function getIsFinalState()
+ {
+ return $this->isFinalState;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocation(Google_Service_CloudDebugger_SourceLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setLogLevel($logLevel)
+ {
+ $this->logLevel = $logLevel;
+ }
+ public function getLogLevel()
+ {
+ return $this->logLevel;
+ }
+ public function setLogMessageFormat($logMessageFormat)
+ {
+ $this->logMessageFormat = $logMessageFormat;
+ }
+ public function getLogMessageFormat()
+ {
+ return $this->logMessageFormat;
+ }
+ public function setStackFrames($stackFrames)
+ {
+ $this->stackFrames = $stackFrames;
+ }
+ public function getStackFrames()
+ {
+ return $this->stackFrames;
+ }
+ public function setStatus(Google_Service_CloudDebugger_StatusMessage $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUserEmail($userEmail)
+ {
+ $this->userEmail = $userEmail;
+ }
+ public function getUserEmail()
+ {
+ return $this->userEmail;
+ }
+ public function setVariableTable($variableTable)
+ {
+ $this->variableTable = $variableTable;
+ }
+ public function getVariableTable()
+ {
+ return $this->variableTable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudRepoSourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudRepoSourceContext.php
new file mode 100644
index 00000000..fcd5d8b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudRepoSourceContext.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_CloudRepoSourceContext extends Google_Model
+{
+ protected $aliasContextType = 'Google_Service_CloudDebugger_AliasContext';
+ protected $aliasContextDataType = '';
+ public $aliasName;
+ protected $repoIdType = 'Google_Service_CloudDebugger_RepoId';
+ protected $repoIdDataType = '';
+ public $revisionId;
+
+ public function setAliasContext(Google_Service_CloudDebugger_AliasContext $aliasContext)
+ {
+ $this->aliasContext = $aliasContext;
+ }
+ public function getAliasContext()
+ {
+ return $this->aliasContext;
+ }
+ public function setAliasName($aliasName)
+ {
+ $this->aliasName = $aliasName;
+ }
+ public function getAliasName()
+ {
+ return $this->aliasName;
+ }
+ public function setRepoId(Google_Service_CloudDebugger_RepoId $repoId)
+ {
+ $this->repoId = $repoId;
+ }
+ public function getRepoId()
+ {
+ return $this->repoId;
+ }
+ public function setRevisionId($revisionId)
+ {
+ $this->revisionId = $revisionId;
+ }
+ public function getRevisionId()
+ {
+ return $this->revisionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceId.php
new file mode 100644
index 00000000..30d3bd82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceId.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_CloudWorkspaceId extends Google_Model
+{
+ public $name;
+ protected $repoIdType = 'Google_Service_CloudDebugger_RepoId';
+ protected $repoIdDataType = '';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRepoId(Google_Service_CloudDebugger_RepoId $repoId)
+ {
+ $this->repoId = $repoId;
+ }
+ public function getRepoId()
+ {
+ return $this->repoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceSourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceSourceContext.php
new file mode 100644
index 00000000..a29c6abb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/CloudWorkspaceSourceContext.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_CloudWorkspaceSourceContext extends Google_Model
+{
+ public $snapshotId;
+ protected $workspaceIdType = 'Google_Service_CloudDebugger_CloudWorkspaceId';
+ protected $workspaceIdDataType = '';
+
+ public function setSnapshotId($snapshotId)
+ {
+ $this->snapshotId = $snapshotId;
+ }
+ public function getSnapshotId()
+ {
+ return $this->snapshotId;
+ }
+ public function setWorkspaceId(Google_Service_CloudDebugger_CloudWorkspaceId $workspaceId)
+ {
+ $this->workspaceId = $workspaceId;
+ }
+ public function getWorkspaceId()
+ {
+ return $this->workspaceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ClouddebuggerEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ClouddebuggerEmpty.php
new file mode 100644
index 00000000..1baaee17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ClouddebuggerEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_ClouddebuggerEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Debuggee.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Debuggee.php
new file mode 100644
index 00000000..559348d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Debuggee.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_Debuggee extends Google_Collection
+{
+ protected $collection_key = 'sourceContexts';
+ public $agentVersion;
+ public $description;
+ protected $extSourceContextsType = 'Google_Service_CloudDebugger_ExtendedSourceContext';
+ protected $extSourceContextsDataType = 'array';
+ public $id;
+ public $isDisabled;
+ public $isInactive;
+ public $labels;
+ public $project;
+ protected $sourceContextsType = 'Google_Service_CloudDebugger_SourceContext';
+ protected $sourceContextsDataType = 'array';
+ protected $statusType = 'Google_Service_CloudDebugger_StatusMessage';
+ protected $statusDataType = '';
+ public $uniquifier;
+
+ public function setAgentVersion($agentVersion)
+ {
+ $this->agentVersion = $agentVersion;
+ }
+ public function getAgentVersion()
+ {
+ return $this->agentVersion;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setExtSourceContexts($extSourceContexts)
+ {
+ $this->extSourceContexts = $extSourceContexts;
+ }
+ public function getExtSourceContexts()
+ {
+ return $this->extSourceContexts;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsDisabled($isDisabled)
+ {
+ $this->isDisabled = $isDisabled;
+ }
+ public function getIsDisabled()
+ {
+ return $this->isDisabled;
+ }
+ public function setIsInactive($isInactive)
+ {
+ $this->isInactive = $isInactive;
+ }
+ public function getIsInactive()
+ {
+ return $this->isInactive;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+ public function setSourceContexts($sourceContexts)
+ {
+ $this->sourceContexts = $sourceContexts;
+ }
+ public function getSourceContexts()
+ {
+ return $this->sourceContexts;
+ }
+ public function setStatus(Google_Service_CloudDebugger_StatusMessage $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUniquifier($uniquifier)
+ {
+ $this->uniquifier = $uniquifier;
+ }
+ public function getUniquifier()
+ {
+ return $this->uniquifier;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ExtendedSourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ExtendedSourceContext.php
new file mode 100644
index 00000000..bdde38dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ExtendedSourceContext.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_ExtendedSourceContext extends Google_Model
+{
+ protected $contextType = 'Google_Service_CloudDebugger_SourceContext';
+ protected $contextDataType = '';
+ public $labels;
+
+ public function setContext(Google_Service_CloudDebugger_SourceContext $context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/FormatMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/FormatMessage.php
new file mode 100644
index 00000000..e56e5f9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/FormatMessage.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_FormatMessage extends Google_Collection
+{
+ protected $collection_key = 'parameters';
+ public $format;
+ public $parameters;
+
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GerritSourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GerritSourceContext.php
new file mode 100644
index 00000000..4cb77f83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GerritSourceContext.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_GerritSourceContext extends Google_Model
+{
+ protected $aliasContextType = 'Google_Service_CloudDebugger_AliasContext';
+ protected $aliasContextDataType = '';
+ public $aliasName;
+ public $gerritProject;
+ public $hostUri;
+ public $revisionId;
+
+ public function setAliasContext(Google_Service_CloudDebugger_AliasContext $aliasContext)
+ {
+ $this->aliasContext = $aliasContext;
+ }
+ public function getAliasContext()
+ {
+ return $this->aliasContext;
+ }
+ public function setAliasName($aliasName)
+ {
+ $this->aliasName = $aliasName;
+ }
+ public function getAliasName()
+ {
+ return $this->aliasName;
+ }
+ public function setGerritProject($gerritProject)
+ {
+ $this->gerritProject = $gerritProject;
+ }
+ public function getGerritProject()
+ {
+ return $this->gerritProject;
+ }
+ public function setHostUri($hostUri)
+ {
+ $this->hostUri = $hostUri;
+ }
+ public function getHostUri()
+ {
+ return $this->hostUri;
+ }
+ public function setRevisionId($revisionId)
+ {
+ $this->revisionId = $revisionId;
+ }
+ public function getRevisionId()
+ {
+ return $this->revisionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GetBreakpointResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GetBreakpointResponse.php
new file mode 100644
index 00000000..de523178
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GetBreakpointResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_GetBreakpointResponse extends Google_Model
+{
+ protected $breakpointType = 'Google_Service_CloudDebugger_Breakpoint';
+ protected $breakpointDataType = '';
+
+ public function setBreakpoint(Google_Service_CloudDebugger_Breakpoint $breakpoint)
+ {
+ $this->breakpoint = $breakpoint;
+ }
+ public function getBreakpoint()
+ {
+ return $this->breakpoint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GitSourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GitSourceContext.php
new file mode 100644
index 00000000..2d916fc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/GitSourceContext.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_GitSourceContext extends Google_Model
+{
+ public $revisionId;
+ public $url;
+
+ public function setRevisionId($revisionId)
+ {
+ $this->revisionId = $revisionId;
+ }
+ public function getRevisionId()
+ {
+ return $this->revisionId;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListActiveBreakpointsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListActiveBreakpointsResponse.php
new file mode 100644
index 00000000..ec0375dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListActiveBreakpointsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_ListActiveBreakpointsResponse extends Google_Collection
+{
+ protected $collection_key = 'breakpoints';
+ protected $breakpointsType = 'Google_Service_CloudDebugger_Breakpoint';
+ protected $breakpointsDataType = 'array';
+ public $nextWaitToken;
+ public $waitExpired;
+
+ public function setBreakpoints($breakpoints)
+ {
+ $this->breakpoints = $breakpoints;
+ }
+ public function getBreakpoints()
+ {
+ return $this->breakpoints;
+ }
+ public function setNextWaitToken($nextWaitToken)
+ {
+ $this->nextWaitToken = $nextWaitToken;
+ }
+ public function getNextWaitToken()
+ {
+ return $this->nextWaitToken;
+ }
+ public function setWaitExpired($waitExpired)
+ {
+ $this->waitExpired = $waitExpired;
+ }
+ public function getWaitExpired()
+ {
+ return $this->waitExpired;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListBreakpointsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListBreakpointsResponse.php
new file mode 100644
index 00000000..dabcf969
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListBreakpointsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_ListBreakpointsResponse extends Google_Collection
+{
+ protected $collection_key = 'breakpoints';
+ protected $breakpointsType = 'Google_Service_CloudDebugger_Breakpoint';
+ protected $breakpointsDataType = 'array';
+ public $nextWaitToken;
+
+ public function setBreakpoints($breakpoints)
+ {
+ $this->breakpoints = $breakpoints;
+ }
+ public function getBreakpoints()
+ {
+ return $this->breakpoints;
+ }
+ public function setNextWaitToken($nextWaitToken)
+ {
+ $this->nextWaitToken = $nextWaitToken;
+ }
+ public function getNextWaitToken()
+ {
+ return $this->nextWaitToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListDebuggeesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListDebuggeesResponse.php
new file mode 100644
index 00000000..2669e3cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ListDebuggeesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_ListDebuggeesResponse extends Google_Collection
+{
+ protected $collection_key = 'debuggees';
+ protected $debuggeesType = 'Google_Service_CloudDebugger_Debuggee';
+ protected $debuggeesDataType = 'array';
+
+ public function setDebuggees($debuggees)
+ {
+ $this->debuggees = $debuggees;
+ }
+ public function getDebuggees()
+ {
+ return $this->debuggees;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ProjectRepoId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ProjectRepoId.php
new file mode 100644
index 00000000..7036340f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/ProjectRepoId.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_ProjectRepoId extends Google_Model
+{
+ public $projectId;
+ public $repoName;
+
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setRepoName($repoName)
+ {
+ $this->repoName = $repoName;
+ }
+ public function getRepoName()
+ {
+ return $this->repoName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeRequest.php
new file mode 100644
index 00000000..1e395463
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_RegisterDebuggeeRequest extends Google_Model
+{
+ protected $debuggeeType = 'Google_Service_CloudDebugger_Debuggee';
+ protected $debuggeeDataType = '';
+
+ public function setDebuggee(Google_Service_CloudDebugger_Debuggee $debuggee)
+ {
+ $this->debuggee = $debuggee;
+ }
+ public function getDebuggee()
+ {
+ return $this->debuggee;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeResponse.php
new file mode 100644
index 00000000..cbd171c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RegisterDebuggeeResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_RegisterDebuggeeResponse extends Google_Model
+{
+ protected $debuggeeType = 'Google_Service_CloudDebugger_Debuggee';
+ protected $debuggeeDataType = '';
+
+ public function setDebuggee(Google_Service_CloudDebugger_Debuggee $debuggee)
+ {
+ $this->debuggee = $debuggee;
+ }
+ public function getDebuggee()
+ {
+ return $this->debuggee;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RepoId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RepoId.php
new file mode 100644
index 00000000..c5a3b8bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/RepoId.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_RepoId extends Google_Model
+{
+ protected $projectRepoIdType = 'Google_Service_CloudDebugger_ProjectRepoId';
+ protected $projectRepoIdDataType = '';
+ public $uid;
+
+ public function setProjectRepoId(Google_Service_CloudDebugger_ProjectRepoId $projectRepoId)
+ {
+ $this->projectRepoId = $projectRepoId;
+ }
+ public function getProjectRepoId()
+ {
+ return $this->projectRepoId;
+ }
+ public function setUid($uid)
+ {
+ $this->uid = $uid;
+ }
+ public function getUid()
+ {
+ return $this->uid;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Controller.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Controller.php
new file mode 100644
index 00000000..70699a84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Controller.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "controller" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouddebuggerService = new Google_Service_CloudDebugger(...);
+ * $controller = $clouddebuggerService->controller;
+ * </code>
+ */
+class Google_Service_CloudDebugger_Resource_Controller extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggees.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggees.php
new file mode 100644
index 00000000..e016aabf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggees.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "debuggees" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouddebuggerService = new Google_Service_CloudDebugger(...);
+ * $debuggees = $clouddebuggerService->debuggees;
+ * </code>
+ */
+class Google_Service_CloudDebugger_Resource_ControllerDebuggees extends Google_Service_Resource
+{
+ /**
+ * Registers the debuggee with the controller service.
+ *
+ * All agents attached to the same application should call this method with the
+ * same request content to get back the same stable `debuggee_id`. Agents should
+ * call this method again whenever `google.rpc.Code.NOT_FOUND` is returned from
+ * any controller method.
+ *
+ * This allows the controller service to disable the agent or recover from any
+ * data loss. If the debuggee is disabled by the server, the response will have
+ * `is_disabled` set to `true`. (debuggees.register)
+ *
+ * @param Google_Service_CloudDebugger_RegisterDebuggeeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudDebugger_RegisterDebuggeeResponse
+ */
+ public function register(Google_Service_CloudDebugger_RegisterDebuggeeRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('register', array($params), "Google_Service_CloudDebugger_RegisterDebuggeeResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php
new file mode 100644
index 00000000..9c948c8c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/ControllerDebuggeesBreakpoints.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "breakpoints" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouddebuggerService = new Google_Service_CloudDebugger(...);
+ * $breakpoints = $clouddebuggerService->breakpoints;
+ * </code>
+ */
+class Google_Service_CloudDebugger_Resource_ControllerDebuggeesBreakpoints extends Google_Service_Resource
+{
+ /**
+ * Returns the list of all active breakpoints for the debuggee.
+ *
+ * The breakpoint specification (location, condition, and expression fields) is
+ * semantically immutable, although the field values may change. For example, an
+ * agent may update the location line number to reflect the actual line where
+ * the breakpoint was set, but this doesn't change the breakpoint semantics.
+ *
+ * This means that an agent does not need to check if a breakpoint has changed
+ * when it encounters the same breakpoint on a successive call. Moreover, an
+ * agent should remember the breakpoints that are completed until the controller
+ * removes them from the active list to avoid setting those breakpoints again.
+ * (breakpoints.listControllerDebuggeesBreakpoints)
+ *
+ * @param string $debuggeeId Identifies the debuggee.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool successOnTimeout If set to `true`, returns
+ * `google.rpc.Code.OK` status and sets the `wait_expired` response field to
+ * `true` when the server-selected timeout has expired (recommended).
+ *
+ * If set to `false`, returns `google.rpc.Code.ABORTED` status when the server-
+ * selected timeout has expired (deprecated).
+ * @opt_param string waitToken A wait token that, if specified, blocks the
+ * method call until the list of active breakpoints has changed, or a server
+ * selected timeout has expired. The value should be set from the last returned
+ * response.
+ * @return Google_Service_CloudDebugger_ListActiveBreakpointsResponse
+ */
+ public function listControllerDebuggeesBreakpoints($debuggeeId, $optParams = array())
+ {
+ $params = array('debuggeeId' => $debuggeeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudDebugger_ListActiveBreakpointsResponse");
+ }
+ /**
+ * Updates the breakpoint state or mutable fields. The entire Breakpoint message
+ * must be sent back to the controller service.
+ *
+ * Updates to active breakpoint fields are only allowed if the new value does
+ * not change the breakpoint specification. Updates to the `location`,
+ * `condition` and `expression` fields should not alter the breakpoint
+ * semantics. These may only make changes such as canonicalizing a value or
+ * snapping the location to the correct line of code. (breakpoints.update)
+ *
+ * @param string $debuggeeId Identifies the debuggee being debugged.
+ * @param string $id Breakpoint identifier, unique in the scope of the debuggee.
+ * @param Google_Service_CloudDebugger_UpdateActiveBreakpointRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudDebugger_UpdateActiveBreakpointResponse
+ */
+ public function update($debuggeeId, $id, Google_Service_CloudDebugger_UpdateActiveBreakpointRequest $postBody, $optParams = array())
+ {
+ $params = array('debuggeeId' => $debuggeeId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_CloudDebugger_UpdateActiveBreakpointResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Debugger.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Debugger.php
new file mode 100644
index 00000000..955317f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/Debugger.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "debugger" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouddebuggerService = new Google_Service_CloudDebugger(...);
+ * $debugger = $clouddebuggerService->debugger;
+ * </code>
+ */
+class Google_Service_CloudDebugger_Resource_Debugger extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php
new file mode 100644
index 00000000..09871712
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggees.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "debuggees" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouddebuggerService = new Google_Service_CloudDebugger(...);
+ * $debuggees = $clouddebuggerService->debuggees;
+ * </code>
+ */
+class Google_Service_CloudDebugger_Resource_DebuggerDebuggees extends Google_Service_Resource
+{
+ /**
+ * Lists all the debuggees that the user can set breakpoints to.
+ * (debuggees.listDebuggerDebuggees)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string clientVersion The client version making the call.
+ * Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
+ * @opt_param bool includeInactive When set to `true`, the result includes all
+ * debuggees. Otherwise, the result includes only debuggees that are active.
+ * @opt_param string project Project number of a Google Cloud project whose
+ * debuggees to list.
+ * @return Google_Service_CloudDebugger_ListDebuggeesResponse
+ */
+ public function listDebuggerDebuggees($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudDebugger_ListDebuggeesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php
new file mode 100644
index 00000000..dc07a2c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Resource/DebuggerDebuggeesBreakpoints.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "breakpoints" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouddebuggerService = new Google_Service_CloudDebugger(...);
+ * $breakpoints = $clouddebuggerService->breakpoints;
+ * </code>
+ */
+class Google_Service_CloudDebugger_Resource_DebuggerDebuggeesBreakpoints extends Google_Service_Resource
+{
+ /**
+ * Deletes the breakpoint from the debuggee. (breakpoints.delete)
+ *
+ * @param string $debuggeeId ID of the debuggee whose breakpoint to delete.
+ * @param string $breakpointId ID of the breakpoint to delete.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string clientVersion The client version making the call.
+ * Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
+ * @return Google_Service_CloudDebugger_ClouddebuggerEmpty
+ */
+ public function delete($debuggeeId, $breakpointId, $optParams = array())
+ {
+ $params = array('debuggeeId' => $debuggeeId, 'breakpointId' => $breakpointId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudDebugger_ClouddebuggerEmpty");
+ }
+ /**
+ * Gets breakpoint information. (breakpoints.get)
+ *
+ * @param string $debuggeeId ID of the debuggee whose breakpoint to get.
+ * @param string $breakpointId ID of the breakpoint to get.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string clientVersion The client version making the call.
+ * Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
+ * @return Google_Service_CloudDebugger_GetBreakpointResponse
+ */
+ public function get($debuggeeId, $breakpointId, $optParams = array())
+ {
+ $params = array('debuggeeId' => $debuggeeId, 'breakpointId' => $breakpointId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudDebugger_GetBreakpointResponse");
+ }
+ /**
+ * Lists all breakpoints for the debuggee.
+ * (breakpoints.listDebuggerDebuggeesBreakpoints)
+ *
+ * @param string $debuggeeId ID of the debuggee whose breakpoints to list.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool stripResults This field is deprecated. The following fields
+ * are always stripped out of the result: `stack_frames`,
+ * `evaluated_expressions` and `variable_table`.
+ * @opt_param string waitToken A wait token that, if specified, blocks the call
+ * until the breakpoints list has changed, or a server selected timeout has
+ * expired. The value should be set from the last response. The error code
+ * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should be
+ * called again with the same `wait_token`.
+ * @opt_param string clientVersion The client version making the call.
+ * Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
+ * @opt_param string action.value Only breakpoints with the specified action
+ * will pass the filter.
+ * @opt_param bool includeAllUsers When set to `true`, the response includes the
+ * list of breakpoints set by any user. Otherwise, it includes only breakpoints
+ * set by the caller.
+ * @opt_param bool includeInactive When set to `true`, the response includes
+ * active and inactive breakpoints. Otherwise, it includes only active
+ * breakpoints.
+ * @return Google_Service_CloudDebugger_ListBreakpointsResponse
+ */
+ public function listDebuggerDebuggeesBreakpoints($debuggeeId, $optParams = array())
+ {
+ $params = array('debuggeeId' => $debuggeeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudDebugger_ListBreakpointsResponse");
+ }
+ /**
+ * Sets the breakpoint to the debuggee. (breakpoints.set)
+ *
+ * @param string $debuggeeId ID of the debuggee where the breakpoint is to be
+ * set.
+ * @param Google_Service_CloudDebugger_Breakpoint $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string clientVersion The client version making the call.
+ * Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
+ * @return Google_Service_CloudDebugger_SetBreakpointResponse
+ */
+ public function set($debuggeeId, Google_Service_CloudDebugger_Breakpoint $postBody, $optParams = array())
+ {
+ $params = array('debuggeeId' => $debuggeeId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('set', array($params), "Google_Service_CloudDebugger_SetBreakpointResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SetBreakpointResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SetBreakpointResponse.php
new file mode 100644
index 00000000..4616a51d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SetBreakpointResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_SetBreakpointResponse extends Google_Model
+{
+ protected $breakpointType = 'Google_Service_CloudDebugger_Breakpoint';
+ protected $breakpointDataType = '';
+
+ public function setBreakpoint(Google_Service_CloudDebugger_Breakpoint $breakpoint)
+ {
+ $this->breakpoint = $breakpoint;
+ }
+ public function getBreakpoint()
+ {
+ return $this->breakpoint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceContext.php
new file mode 100644
index 00000000..e6eb484b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceContext.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_SourceContext extends Google_Model
+{
+ protected $cloudRepoType = 'Google_Service_CloudDebugger_CloudRepoSourceContext';
+ protected $cloudRepoDataType = '';
+ protected $cloudWorkspaceType = 'Google_Service_CloudDebugger_CloudWorkspaceSourceContext';
+ protected $cloudWorkspaceDataType = '';
+ protected $gerritType = 'Google_Service_CloudDebugger_GerritSourceContext';
+ protected $gerritDataType = '';
+ protected $gitType = 'Google_Service_CloudDebugger_GitSourceContext';
+ protected $gitDataType = '';
+
+ public function setCloudRepo(Google_Service_CloudDebugger_CloudRepoSourceContext $cloudRepo)
+ {
+ $this->cloudRepo = $cloudRepo;
+ }
+ public function getCloudRepo()
+ {
+ return $this->cloudRepo;
+ }
+ public function setCloudWorkspace(Google_Service_CloudDebugger_CloudWorkspaceSourceContext $cloudWorkspace)
+ {
+ $this->cloudWorkspace = $cloudWorkspace;
+ }
+ public function getCloudWorkspace()
+ {
+ return $this->cloudWorkspace;
+ }
+ public function setGerrit(Google_Service_CloudDebugger_GerritSourceContext $gerrit)
+ {
+ $this->gerrit = $gerrit;
+ }
+ public function getGerrit()
+ {
+ return $this->gerrit;
+ }
+ public function setGit(Google_Service_CloudDebugger_GitSourceContext $git)
+ {
+ $this->git = $git;
+ }
+ public function getGit()
+ {
+ return $this->git;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php
new file mode 100644
index 00000000..a896bb7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/SourceLocation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_SourceLocation extends Google_Model
+{
+ public $line;
+ public $path;
+
+ public function setLine($line)
+ {
+ $this->line = $line;
+ }
+ public function getLine()
+ {
+ return $this->line;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StackFrame.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StackFrame.php
new file mode 100644
index 00000000..a06beb7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StackFrame.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_StackFrame extends Google_Collection
+{
+ protected $collection_key = 'locals';
+ protected $argumentsType = 'Google_Service_CloudDebugger_Variable';
+ protected $argumentsDataType = 'array';
+ public $function;
+ protected $localsType = 'Google_Service_CloudDebugger_Variable';
+ protected $localsDataType = 'array';
+ protected $locationType = 'Google_Service_CloudDebugger_SourceLocation';
+ protected $locationDataType = '';
+
+ public function setArguments($arguments)
+ {
+ $this->arguments = $arguments;
+ }
+ public function getArguments()
+ {
+ return $this->arguments;
+ }
+ public function setFunction($function)
+ {
+ $this->function = $function;
+ }
+ public function getFunction()
+ {
+ return $this->function;
+ }
+ public function setLocals($locals)
+ {
+ $this->locals = $locals;
+ }
+ public function getLocals()
+ {
+ return $this->locals;
+ }
+ public function setLocation(Google_Service_CloudDebugger_SourceLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StatusMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StatusMessage.php
new file mode 100644
index 00000000..43ba9882
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/StatusMessage.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_StatusMessage extends Google_Model
+{
+ protected $descriptionType = 'Google_Service_CloudDebugger_FormatMessage';
+ protected $descriptionDataType = '';
+ public $isError;
+ public $refersTo;
+
+ public function setDescription(Google_Service_CloudDebugger_FormatMessage $description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIsError($isError)
+ {
+ $this->isError = $isError;
+ }
+ public function getIsError()
+ {
+ return $this->isError;
+ }
+ public function setRefersTo($refersTo)
+ {
+ $this->refersTo = $refersTo;
+ }
+ public function getRefersTo()
+ {
+ return $this->refersTo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointRequest.php
new file mode 100644
index 00000000..3181a61a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_UpdateActiveBreakpointRequest extends Google_Model
+{
+ protected $breakpointType = 'Google_Service_CloudDebugger_Breakpoint';
+ protected $breakpointDataType = '';
+
+ public function setBreakpoint(Google_Service_CloudDebugger_Breakpoint $breakpoint)
+ {
+ $this->breakpoint = $breakpoint;
+ }
+ public function getBreakpoint()
+ {
+ return $this->breakpoint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointResponse.php
new file mode 100644
index 00000000..a65647da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/UpdateActiveBreakpointResponse.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_UpdateActiveBreakpointResponse extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Variable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Variable.php
new file mode 100644
index 00000000..d1f1daaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudDebugger/Variable.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudDebugger_Variable extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $membersType = 'Google_Service_CloudDebugger_Variable';
+ protected $membersDataType = 'array';
+ public $name;
+ protected $statusType = 'Google_Service_CloudDebugger_StatusMessage';
+ protected $statusDataType = '';
+ public $type;
+ public $value;
+ public $varTableIndex;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStatus(Google_Service_CloudDebugger_StatusMessage $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setVarTableIndex($varTableIndex)
+ {
+ $this->varTableIndex = $varTableIndex;
+ }
+ public function getVarTableIndex()
+ {
+ return $this->varTableIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions.php
new file mode 100644
index 00000000..2ce8b7d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions.php
@@ -0,0 +1,207 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudFunctions (v1beta2).
+ *
+ * <p>
+ * API for managing lightweight user-provided functions executed in response to
+ * events.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/functions" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudFunctions extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $operations;
+ public $projects_locations;
+ public $projects_locations_functions;
+
+ /**
+ * Constructs the internal representation of the CloudFunctions service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://cloudfunctions.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1beta2';
+ $this->serviceName = 'cloudfunctions';
+
+ $this->operations = new Google_Service_CloudFunctions_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1beta2/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta2/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations = new Google_Service_CloudFunctions_Resource_ProjectsLocations(
+ $this,
+ $this->serviceName,
+ 'locations',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1beta2/{+name}/locations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations_functions = new Google_Service_CloudFunctions_Resource_ProjectsLocationsFunctions(
+ $this,
+ $this->serviceName,
+ 'functions',
+ array(
+ 'methods' => array(
+ 'call' => array(
+ 'path' => 'v1beta2/{+name}:call',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1beta2/{+location}/functions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta2/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta2/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta2/{+location}/functions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1beta2/{+name}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionRequest.php
new file mode 100644
index 00000000..5ab182c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_CallFunctionRequest extends Google_Model
+{
+ public $data;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionResponse.php
new file mode 100644
index 00000000..c610940e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CallFunctionResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_CallFunctionResponse extends Google_Model
+{
+ public $error;
+ public $executionId;
+ public $result;
+
+ public function setError($error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setExecutionId($executionId)
+ {
+ $this->executionId = $executionId;
+ }
+ public function getExecutionId()
+ {
+ return $this->executionId;
+ }
+ public function setResult($result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php
new file mode 100644
index 00000000..09ce0bba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/CloudFunction.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_CloudFunction extends Google_Model
+{
+ public $availableMemoryMb;
+ public $entryPoint;
+ protected $eventTriggerType = 'Google_Service_CloudFunctions_EventTrigger';
+ protected $eventTriggerDataType = '';
+ protected $httpsTriggerType = 'Google_Service_CloudFunctions_HTTPSTrigger';
+ protected $httpsTriggerDataType = '';
+ public $latestOperation;
+ public $name;
+ public $serviceAccount;
+ public $sourceArchiveUrl;
+ protected $sourceRepositoryType = 'Google_Service_CloudFunctions_SourceRepository';
+ protected $sourceRepositoryDataType = '';
+ public $status;
+ public $timeout;
+ public $updateTime;
+
+ public function setAvailableMemoryMb($availableMemoryMb)
+ {
+ $this->availableMemoryMb = $availableMemoryMb;
+ }
+ public function getAvailableMemoryMb()
+ {
+ return $this->availableMemoryMb;
+ }
+ public function setEntryPoint($entryPoint)
+ {
+ $this->entryPoint = $entryPoint;
+ }
+ public function getEntryPoint()
+ {
+ return $this->entryPoint;
+ }
+ public function setEventTrigger(Google_Service_CloudFunctions_EventTrigger $eventTrigger)
+ {
+ $this->eventTrigger = $eventTrigger;
+ }
+ public function getEventTrigger()
+ {
+ return $this->eventTrigger;
+ }
+ public function setHttpsTrigger(Google_Service_CloudFunctions_HTTPSTrigger $httpsTrigger)
+ {
+ $this->httpsTrigger = $httpsTrigger;
+ }
+ public function getHttpsTrigger()
+ {
+ return $this->httpsTrigger;
+ }
+ public function setLatestOperation($latestOperation)
+ {
+ $this->latestOperation = $latestOperation;
+ }
+ public function getLatestOperation()
+ {
+ return $this->latestOperation;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setServiceAccount($serviceAccount)
+ {
+ $this->serviceAccount = $serviceAccount;
+ }
+ public function getServiceAccount()
+ {
+ return $this->serviceAccount;
+ }
+ public function setSourceArchiveUrl($sourceArchiveUrl)
+ {
+ $this->sourceArchiveUrl = $sourceArchiveUrl;
+ }
+ public function getSourceArchiveUrl()
+ {
+ return $this->sourceArchiveUrl;
+ }
+ public function setSourceRepository(Google_Service_CloudFunctions_SourceRepository $sourceRepository)
+ {
+ $this->sourceRepository = $sourceRepository;
+ }
+ public function getSourceRepository()
+ {
+ return $this->sourceRepository;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTimeout($timeout)
+ {
+ $this->timeout = $timeout;
+ }
+ public function getTimeout()
+ {
+ return $this->timeout;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/EventTrigger.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/EventTrigger.php
new file mode 100644
index 00000000..03095384
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/EventTrigger.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_EventTrigger extends Google_Model
+{
+ public $eventType;
+ public $resource;
+
+ public function setEventType($eventType)
+ {
+ $this->eventType = $eventType;
+ }
+ public function getEventType()
+ {
+ return $this->eventType;
+ }
+ public function setResource($resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/HTTPSTrigger.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/HTTPSTrigger.php
new file mode 100644
index 00000000..1141c4bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/HTTPSTrigger.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_HTTPSTrigger extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListFunctionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListFunctionsResponse.php
new file mode 100644
index 00000000..c8ec7722
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListFunctionsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_ListFunctionsResponse extends Google_Collection
+{
+ protected $collection_key = 'functions';
+ protected $functionsType = 'Google_Service_CloudFunctions_CloudFunction';
+ protected $functionsDataType = 'array';
+ public $nextPageToken;
+
+ public function setFunctions($functions)
+ {
+ $this->functions = $functions;
+ }
+ public function getFunctions()
+ {
+ return $this->functions;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListLocationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListLocationsResponse.php
new file mode 100644
index 00000000..5e4fe418
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListLocationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_ListLocationsResponse extends Google_Collection
+{
+ protected $collection_key = 'locations';
+ protected $locationsType = 'Google_Service_CloudFunctions_Location';
+ protected $locationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListOperationsResponse.php
new file mode 100644
index 00000000..9de98b6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_CloudFunctions_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Location.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Location.php
new file mode 100644
index 00000000..1cf8057d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Location.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_Location extends Google_Model
+{
+ public $labels;
+ public $locationId;
+ public $metadata;
+ public $name;
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Operation.php
new file mode 100644
index 00000000..4385fb57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_CloudFunctions_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudFunctions_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/OperationMetadataV1Beta2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/OperationMetadataV1Beta2.php
new file mode 100644
index 00000000..76430bc5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/OperationMetadataV1Beta2.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_OperationMetadataV1Beta2 extends Google_Model
+{
+ public $request;
+ public $target;
+ public $type;
+
+ public function setRequest($request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php
new file mode 100644
index 00000000..4b431326
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Operations.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudfunctionsService = new Google_Service_CloudFunctions(...);
+ * $operations = $cloudfunctionsService->operations;
+ * </code>
+ */
+class Google_Service_CloudFunctions_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudFunctions_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudFunctions_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listOperations)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param string name The name of the operation collection.
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @return Google_Service_CloudFunctions_ListOperationsResponse
+ */
+ public function listOperations($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudFunctions_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Projects.php
new file mode 100644
index 00000000..96f030fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudfunctionsService = new Google_Service_CloudFunctions(...);
+ * $projects = $cloudfunctionsService->projects;
+ * </code>
+ */
+class Google_Service_CloudFunctions_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocations.php
new file mode 100644
index 00000000..b233fcce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocations.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "locations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudfunctionsService = new Google_Service_CloudFunctions(...);
+ * $locations = $cloudfunctionsService->locations;
+ * </code>
+ */
+class Google_Service_CloudFunctions_Resource_ProjectsLocations extends Google_Service_Resource
+{
+ /**
+ * Lists information about the supported locations for this service.
+ * (locations.listProjectsLocations)
+ *
+ * @param string $name The resource that owns the locations collection, if
+ * applicable.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @return Google_Service_CloudFunctions_ListLocationsResponse
+ */
+ public function listProjectsLocations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudFunctions_ListLocationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php
new file mode 100644
index 00000000..bf62afc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Resource/ProjectsLocationsFunctions.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "functions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudfunctionsService = new Google_Service_CloudFunctions(...);
+ * $functions = $cloudfunctionsService->functions;
+ * </code>
+ */
+class Google_Service_CloudFunctions_Resource_ProjectsLocationsFunctions extends Google_Service_Resource
+{
+ /**
+ * Invokes synchronously deployed function. To be used for testing, very limited
+ * traffic allowed. (functions.callProjectsLocationsFunctions)
+ *
+ * @param string $name The name of the function to be called.
+ * @param Google_Service_CloudFunctions_CallFunctionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudFunctions_CallFunctionResponse
+ */
+ public function callProjectsLocationsFunctions($name, Google_Service_CloudFunctions_CallFunctionRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('call', array($params), "Google_Service_CloudFunctions_CallFunctionResponse");
+ }
+ /**
+ * Creates a new function. If a function with the given name already exists in
+ * the specified project, the long running operation will return
+ * `ALREADY_EXISTS` error. (functions.create)
+ *
+ * @param string $location The project and location in which the function should
+ * be created, specified in the format `projects/locations`
+ * @param Google_Service_CloudFunctions_CloudFunction $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudFunctions_Operation
+ */
+ public function create($location, Google_Service_CloudFunctions_CloudFunction $postBody, $optParams = array())
+ {
+ $params = array('location' => $location, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudFunctions_Operation");
+ }
+ /**
+ * Deletes a function with the given name from the specified project. If the
+ * given function is used by some trigger, the trigger will be updated to remove
+ * this function. (functions.delete)
+ *
+ * @param string $name The name of the function which should be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudFunctions_Operation
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudFunctions_Operation");
+ }
+ /**
+ * Returns a function with the given name from the requested project.
+ * (functions.get)
+ *
+ * @param string $name The name of the function which details should be
+ * obtained.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudFunctions_CloudFunction
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudFunctions_CloudFunction");
+ }
+ /**
+ * Returns a list of functions that belong to the requested project.
+ * (functions.listProjectsLocationsFunctions)
+ *
+ * @param string $location The project and location from which the function
+ * should be listed, specified in the format `projects/locations` If you want to
+ * list functions in all locations, use "-" in place of a location.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The value returned by the last
+ * `ListFunctionsResponse`; indicates that this is a continuation of a prior
+ * `ListFunctions` call, and that the system should return the next page of
+ * data.
+ * @opt_param int pageSize Maximum number of functions to return per call.
+ * @return Google_Service_CloudFunctions_ListFunctionsResponse
+ */
+ public function listProjectsLocationsFunctions($location, $optParams = array())
+ {
+ $params = array('location' => $location);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudFunctions_ListFunctionsResponse");
+ }
+ /**
+ * Updates existing function. (functions.update)
+ *
+ * @param string $name The name of the function to be updated.
+ * @param Google_Service_CloudFunctions_CloudFunction $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudFunctions_Operation
+ */
+ public function update($name, Google_Service_CloudFunctions_CloudFunction $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_CloudFunctions_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/SourceRepository.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/SourceRepository.php
new file mode 100644
index 00000000..d1727e45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/SourceRepository.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_SourceRepository extends Google_Model
+{
+ public $branch;
+ public $deployedRevision;
+ public $repositoryUrl;
+ public $revision;
+ public $sourcePath;
+ public $tag;
+
+ public function setBranch($branch)
+ {
+ $this->branch = $branch;
+ }
+ public function getBranch()
+ {
+ return $this->branch;
+ }
+ public function setDeployedRevision($deployedRevision)
+ {
+ $this->deployedRevision = $deployedRevision;
+ }
+ public function getDeployedRevision()
+ {
+ return $this->deployedRevision;
+ }
+ public function setRepositoryUrl($repositoryUrl)
+ {
+ $this->repositoryUrl = $repositoryUrl;
+ }
+ public function getRepositoryUrl()
+ {
+ return $this->repositoryUrl;
+ }
+ public function setRevision($revision)
+ {
+ $this->revision = $revision;
+ }
+ public function getRevision()
+ {
+ return $this->revision;
+ }
+ public function setSourcePath($sourcePath)
+ {
+ $this->sourcePath = $sourcePath;
+ }
+ public function getSourcePath()
+ {
+ return $this->sourcePath;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Status.php
new file mode 100644
index 00000000..c0a151cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudFunctions/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudFunctions_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS.php
new file mode 100644
index 00000000..2ee4d958
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS.php
@@ -0,0 +1,389 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudKMS (v1).
+ *
+ * <p>
+ * Manages encryption for your cloud services the same way you do on-premise.
+ * You can generate, use, rotate, and destroy AES256 encryption keys.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/kms/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudKMS extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects_locations;
+ public $projects_locations_keyRings;
+ public $projects_locations_keyRings_cryptoKeys;
+ public $projects_locations_keyRings_cryptoKeys_cryptoKeyVersions;
+
+ /**
+ * Constructs the internal representation of the CloudKMS service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://cloudkms.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'cloudkms';
+
+ $this->projects_locations = new Google_Service_CloudKMS_Resource_ProjectsLocations(
+ $this,
+ $this->serviceName,
+ 'locations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}/locations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations_keyRings = new Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRings(
+ $this,
+ $this->serviceName,
+ 'keyRings',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/keyRings',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'keyRingId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/keyRings',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations_keyRings_cryptoKeys = new Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys(
+ $this,
+ $this->serviceName,
+ 'cryptoKeys',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/cryptoKeys',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'cryptoKeyId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'decrypt' => array(
+ 'path' => 'v1/{+name}:decrypt',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'encrypt' => array(
+ 'path' => 'v1/{+name}:encrypt',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/cryptoKeys',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updatePrimaryVersion' => array(
+ 'path' => 'v1/{+name}:updatePrimaryVersion',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations_keyRings_cryptoKeys_cryptoKeyVersions = new Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions(
+ $this,
+ $this->serviceName,
+ 'cryptoKeyVersions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/cryptoKeyVersions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'destroy' => array(
+ 'path' => 'v1/{+name}:destroy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/cryptoKeyVersions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'restore' => array(
+ 'path' => 'v1/{+name}:restore',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditConfig.php
new file mode 100644
index 00000000..d723d3ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditConfig.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_AuditConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ protected $auditLogConfigsType = 'Google_Service_CloudKMS_AuditLogConfig';
+ protected $auditLogConfigsDataType = 'array';
+ public $exemptedMembers;
+ public $service;
+
+ public function setAuditLogConfigs($auditLogConfigs)
+ {
+ $this->auditLogConfigs = $auditLogConfigs;
+ }
+ public function getAuditLogConfigs()
+ {
+ return $this->auditLogConfigs;
+ }
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditLogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditLogConfig.php
new file mode 100644
index 00000000..1e4df3fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/AuditLogConfig.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_AuditLogConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ public $exemptedMembers;
+ public $logType;
+
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setLogType($logType)
+ {
+ $this->logType = $logType;
+ }
+ public function getLogType()
+ {
+ return $this->logType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php
new file mode 100644
index 00000000..518959df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CloudAuditOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CloudAuditOptions.php
new file mode 100644
index 00000000..a46f146b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CloudAuditOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_CloudAuditOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Condition.php
new file mode 100644
index 00000000..2a4f6ceb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Condition.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_Condition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $iam;
+ public $op;
+ public $svc;
+ public $sys;
+ public $value;
+ public $values;
+
+ public function setIam($iam)
+ {
+ $this->iam = $iam;
+ }
+ public function getIam()
+ {
+ return $this->iam;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setSvc($svc)
+ {
+ $this->svc = $svc;
+ }
+ public function getSvc()
+ {
+ return $this->svc;
+ }
+ public function setSys($sys)
+ {
+ $this->sys = $sys;
+ }
+ public function getSys()
+ {
+ return $this->sys;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CounterOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CounterOptions.php
new file mode 100644
index 00000000..13bd4afb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CounterOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_CounterOptions extends Google_Model
+{
+ public $field;
+ public $metric;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php
new file mode 100644
index 00000000..ce6443e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKey.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_CryptoKey extends Google_Model
+{
+ public $createTime;
+ public $name;
+ public $nextRotationTime;
+ protected $primaryType = 'Google_Service_CloudKMS_CryptoKeyVersion';
+ protected $primaryDataType = '';
+ public $purpose;
+ public $rotationPeriod;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNextRotationTime($nextRotationTime)
+ {
+ $this->nextRotationTime = $nextRotationTime;
+ }
+ public function getNextRotationTime()
+ {
+ return $this->nextRotationTime;
+ }
+ public function setPrimary(Google_Service_CloudKMS_CryptoKeyVersion $primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setPurpose($purpose)
+ {
+ $this->purpose = $purpose;
+ }
+ public function getPurpose()
+ {
+ return $this->purpose;
+ }
+ public function setRotationPeriod($rotationPeriod)
+ {
+ $this->rotationPeriod = $rotationPeriod;
+ }
+ public function getRotationPeriod()
+ {
+ return $this->rotationPeriod;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php
new file mode 100644
index 00000000..764a3b57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/CryptoKeyVersion.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_CryptoKeyVersion extends Google_Model
+{
+ public $createTime;
+ public $destroyEventTime;
+ public $destroyTime;
+ public $name;
+ public $state;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setDestroyEventTime($destroyEventTime)
+ {
+ $this->destroyEventTime = $destroyEventTime;
+ }
+ public function getDestroyEventTime()
+ {
+ return $this->destroyEventTime;
+ }
+ public function setDestroyTime($destroyTime)
+ {
+ $this->destroyTime = $destroyTime;
+ }
+ public function getDestroyTime()
+ {
+ return $this->destroyTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DataAccessOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DataAccessOptions.php
new file mode 100644
index 00000000..616a5a64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DataAccessOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_DataAccessOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptRequest.php
new file mode 100644
index 00000000..7a28bc1a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_DecryptRequest extends Google_Model
+{
+ public $additionalAuthenticatedData;
+ public $ciphertext;
+
+ public function setAdditionalAuthenticatedData($additionalAuthenticatedData)
+ {
+ $this->additionalAuthenticatedData = $additionalAuthenticatedData;
+ }
+ public function getAdditionalAuthenticatedData()
+ {
+ return $this->additionalAuthenticatedData;
+ }
+ public function setCiphertext($ciphertext)
+ {
+ $this->ciphertext = $ciphertext;
+ }
+ public function getCiphertext()
+ {
+ return $this->ciphertext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptResponse.php
new file mode 100644
index 00000000..25834642
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DecryptResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_DecryptResponse extends Google_Model
+{
+ public $plaintext;
+
+ public function setPlaintext($plaintext)
+ {
+ $this->plaintext = $plaintext;
+ }
+ public function getPlaintext()
+ {
+ return $this->plaintext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DestroyCryptoKeyVersionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DestroyCryptoKeyVersionRequest.php
new file mode 100644
index 00000000..080dff6e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/DestroyCryptoKeyVersionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_DestroyCryptoKeyVersionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptRequest.php
new file mode 100644
index 00000000..53d6604c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_EncryptRequest extends Google_Model
+{
+ public $additionalAuthenticatedData;
+ public $plaintext;
+
+ public function setAdditionalAuthenticatedData($additionalAuthenticatedData)
+ {
+ $this->additionalAuthenticatedData = $additionalAuthenticatedData;
+ }
+ public function getAdditionalAuthenticatedData()
+ {
+ return $this->additionalAuthenticatedData;
+ }
+ public function setPlaintext($plaintext)
+ {
+ $this->plaintext = $plaintext;
+ }
+ public function getPlaintext()
+ {
+ return $this->plaintext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptResponse.php
new file mode 100644
index 00000000..59756352
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/EncryptResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_EncryptResponse extends Google_Model
+{
+ public $ciphertext;
+ public $name;
+
+ public function setCiphertext($ciphertext)
+ {
+ $this->ciphertext = $ciphertext;
+ }
+ public function getCiphertext()
+ {
+ return $this->ciphertext;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/KeyRing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/KeyRing.php
new file mode 100644
index 00000000..0c28e6c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/KeyRing.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_KeyRing extends Google_Model
+{
+ public $createTime;
+ public $name;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeyVersionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeyVersionsResponse.php
new file mode 100644
index 00000000..e2fb03b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeyVersionsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_ListCryptoKeyVersionsResponse extends Google_Collection
+{
+ protected $collection_key = 'cryptoKeyVersions';
+ protected $cryptoKeyVersionsType = 'Google_Service_CloudKMS_CryptoKeyVersion';
+ protected $cryptoKeyVersionsDataType = 'array';
+ public $nextPageToken;
+ public $totalSize;
+
+ public function setCryptoKeyVersions($cryptoKeyVersions)
+ {
+ $this->cryptoKeyVersions = $cryptoKeyVersions;
+ }
+ public function getCryptoKeyVersions()
+ {
+ return $this->cryptoKeyVersions;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeysResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeysResponse.php
new file mode 100644
index 00000000..6c601d48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListCryptoKeysResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_ListCryptoKeysResponse extends Google_Collection
+{
+ protected $collection_key = 'cryptoKeys';
+ protected $cryptoKeysType = 'Google_Service_CloudKMS_CryptoKey';
+ protected $cryptoKeysDataType = 'array';
+ public $nextPageToken;
+ public $totalSize;
+
+ public function setCryptoKeys($cryptoKeys)
+ {
+ $this->cryptoKeys = $cryptoKeys;
+ }
+ public function getCryptoKeys()
+ {
+ return $this->cryptoKeys;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListKeyRingsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListKeyRingsResponse.php
new file mode 100644
index 00000000..07b0a709
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListKeyRingsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_ListKeyRingsResponse extends Google_Collection
+{
+ protected $collection_key = 'keyRings';
+ protected $keyRingsType = 'Google_Service_CloudKMS_KeyRing';
+ protected $keyRingsDataType = 'array';
+ public $nextPageToken;
+ public $totalSize;
+
+ public function setKeyRings($keyRings)
+ {
+ $this->keyRings = $keyRings;
+ }
+ public function getKeyRings()
+ {
+ return $this->keyRings;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListLocationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListLocationsResponse.php
new file mode 100644
index 00000000..c8d71f4f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/ListLocationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_ListLocationsResponse extends Google_Collection
+{
+ protected $collection_key = 'locations';
+ protected $locationsType = 'Google_Service_CloudKMS_Location';
+ protected $locationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Location.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Location.php
new file mode 100644
index 00000000..f9960bfd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Location.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_Location extends Google_Model
+{
+ public $labels;
+ public $locationId;
+ public $metadata;
+ public $name;
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/LogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/LogConfig.php
new file mode 100644
index 00000000..0e9affde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/LogConfig.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_LogConfig extends Google_Model
+{
+ protected $cloudAuditType = 'Google_Service_CloudKMS_CloudAuditOptions';
+ protected $cloudAuditDataType = '';
+ protected $counterType = 'Google_Service_CloudKMS_CounterOptions';
+ protected $counterDataType = '';
+ protected $dataAccessType = 'Google_Service_CloudKMS_DataAccessOptions';
+ protected $dataAccessDataType = '';
+
+ public function setCloudAudit(Google_Service_CloudKMS_CloudAuditOptions $cloudAudit)
+ {
+ $this->cloudAudit = $cloudAudit;
+ }
+ public function getCloudAudit()
+ {
+ return $this->cloudAudit;
+ }
+ public function setCounter(Google_Service_CloudKMS_CounterOptions $counter)
+ {
+ $this->counter = $counter;
+ }
+ public function getCounter()
+ {
+ return $this->counter;
+ }
+ public function setDataAccess(Google_Service_CloudKMS_DataAccessOptions $dataAccess)
+ {
+ $this->dataAccess = $dataAccess;
+ }
+ public function getDataAccess()
+ {
+ return $this->dataAccess;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Policy.php
new file mode 100644
index 00000000..8fbce2c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Policy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_Policy extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $auditConfigsType = 'Google_Service_CloudKMS_AuditConfig';
+ protected $auditConfigsDataType = 'array';
+ protected $bindingsType = 'Google_Service_CloudKMS_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $iamOwned;
+ protected $rulesType = 'Google_Service_CloudKMS_Rule';
+ protected $rulesDataType = 'array';
+ public $version;
+
+ public function setAuditConfigs($auditConfigs)
+ {
+ $this->auditConfigs = $auditConfigs;
+ }
+ public function getAuditConfigs()
+ {
+ return $this->auditConfigs;
+ }
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIamOwned($iamOwned)
+ {
+ $this->iamOwned = $iamOwned;
+ }
+ public function getIamOwned()
+ {
+ return $this->iamOwned;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/Projects.php
new file mode 100644
index 00000000..e8e959e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudkmsService = new Google_Service_CloudKMS(...);
+ * $projects = $cloudkmsService->projects;
+ * </code>
+ */
+class Google_Service_CloudKMS_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php
new file mode 100644
index 00000000..4db94ee2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocations.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "locations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudkmsService = new Google_Service_CloudKMS(...);
+ * $locations = $cloudkmsService->locations;
+ * </code>
+ */
+class Google_Service_CloudKMS_Resource_ProjectsLocations extends Google_Service_Resource
+{
+ /**
+ * Get information about a location. (locations.get)
+ *
+ * @param string $name Resource name for the location.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_Location
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudKMS_Location");
+ }
+ /**
+ * Lists information about the supported locations for this service.
+ * (locations.listProjectsLocations)
+ *
+ * @param string $name The resource that owns the locations collection, if
+ * applicable.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @return Google_Service_CloudKMS_ListLocationsResponse
+ */
+ public function listProjectsLocations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudKMS_ListLocationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php
new file mode 100644
index 00000000..8acd8a5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRings.php
@@ -0,0 +1,135 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "keyRings" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudkmsService = new Google_Service_CloudKMS(...);
+ * $keyRings = $cloudkmsService->keyRings;
+ * </code>
+ */
+class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRings extends Google_Service_Resource
+{
+ /**
+ * Create a new KeyRing in a given Project and Location. (keyRings.create)
+ *
+ * @param string $parent Required. The resource name of the location associated
+ * with the KeyRings, in the format `projects/locations`.
+ * @param Google_Service_CloudKMS_KeyRing $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string keyRingId Required. It must be unique within a location and
+ * match the regular expression `[a-zA-Z0-9_-]{1,63}`
+ * @return Google_Service_CloudKMS_KeyRing
+ */
+ public function create($parent, Google_Service_CloudKMS_KeyRing $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudKMS_KeyRing");
+ }
+ /**
+ * Returns metadata for a given KeyRing. (keyRings.get)
+ *
+ * @param string $name The name of the KeyRing to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_KeyRing
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudKMS_KeyRing");
+ }
+ /**
+ * Gets the access control policy for a resource. Returns an empty policy if the
+ * resource exists and does not have a policy set. (keyRings.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. See the operation documentation for the appropriate value for this
+ * field.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_Policy
+ */
+ public function getIamPolicy($resource, $optParams = array())
+ {
+ $params = array('resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_CloudKMS_Policy");
+ }
+ /**
+ * Lists KeyRings. (keyRings.listProjectsLocationsKeyRings)
+ *
+ * @param string $parent Required. The resource name of the location associated
+ * with the KeyRings, in the format `projects/locations`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional pagination token, returned earlier via
+ * ListKeyRingsResponse.next_page_token.
+ * @opt_param int pageSize Optional limit on the number of KeyRings to include
+ * in the response. Further KeyRings can subsequently be obtained by including
+ * the ListKeyRingsResponse.next_page_token in a subsequent request. If
+ * unspecified, the server will pick an appropriate default.
+ * @return Google_Service_CloudKMS_ListKeyRingsResponse
+ */
+ public function listProjectsLocationsKeyRings($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudKMS_ListKeyRingsResponse");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (keyRings.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_CloudKMS_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_CloudKMS_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_CloudKMS_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the
+ * resource does not exist, this will return an empty set of permissions, not a
+ * NOT_FOUND error.
+ *
+ * Note: This operation is designed to be used for building permission-aware UIs
+ * and command-line tools, not for authorization checking. This operation may
+ * "fail open" without warning. (keyRings.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. See the operation documentation for the appropriate value
+ * for this field.
+ * @param Google_Service_CloudKMS_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_CloudKMS_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_CloudKMS_TestIamPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php
new file mode 100644
index 00000000..503233c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeys.php
@@ -0,0 +1,204 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "cryptoKeys" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudkmsService = new Google_Service_CloudKMS(...);
+ * $cryptoKeys = $cloudkmsService->cryptoKeys;
+ * </code>
+ */
+class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys extends Google_Service_Resource
+{
+ /**
+ * Create a new CryptoKey within a KeyRing.
+ *
+ * CryptoKey.purpose is required. (cryptoKeys.create)
+ *
+ * @param string $parent Required. The name of the KeyRing associated with the
+ * CryptoKeys.
+ * @param Google_Service_CloudKMS_CryptoKey $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string cryptoKeyId Required. It must be unique within a KeyRing
+ * and match the regular expression `[a-zA-Z0-9_-]{1,63}`
+ * @return Google_Service_CloudKMS_CryptoKey
+ */
+ public function create($parent, Google_Service_CloudKMS_CryptoKey $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudKMS_CryptoKey");
+ }
+ /**
+ * Decrypt data that was protected by Encrypt. (cryptoKeys.decrypt)
+ *
+ * @param string $name Required. The resource name of the CryptoKey to use for
+ * decryption. The server will choose the appropriate version.
+ * @param Google_Service_CloudKMS_DecryptRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_DecryptResponse
+ */
+ public function decrypt($name, Google_Service_CloudKMS_DecryptRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('decrypt', array($params), "Google_Service_CloudKMS_DecryptResponse");
+ }
+ /**
+ * Encrypt data, so that it can only be recovered by a call to Decrypt.
+ * (cryptoKeys.encrypt)
+ *
+ * @param string $name Required. The resource name of the CryptoKey or
+ * CryptoKeyVersion to use for encryption.
+ *
+ * If a CryptoKey is specified, the server will use its primary version.
+ * @param Google_Service_CloudKMS_EncryptRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_EncryptResponse
+ */
+ public function encrypt($name, Google_Service_CloudKMS_EncryptRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('encrypt', array($params), "Google_Service_CloudKMS_EncryptResponse");
+ }
+ /**
+ * Returns metadata for a given CryptoKey, as well as its primary
+ * CryptoKeyVersion. (cryptoKeys.get)
+ *
+ * @param string $name The name of the CryptoKey to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_CryptoKey
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudKMS_CryptoKey");
+ }
+ /**
+ * Gets the access control policy for a resource. Returns an empty policy if the
+ * resource exists and does not have a policy set. (cryptoKeys.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. See the operation documentation for the appropriate value for this
+ * field.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_Policy
+ */
+ public function getIamPolicy($resource, $optParams = array())
+ {
+ $params = array('resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_CloudKMS_Policy");
+ }
+ /**
+ * Lists CryptoKeys. (cryptoKeys.listProjectsLocationsKeyRingsCryptoKeys)
+ *
+ * @param string $parent Required. The resource name of the KeyRing to list, in
+ * the format `projects/locations/keyRings`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional pagination token, returned earlier via
+ * ListCryptoKeysResponse.next_page_token.
+ * @opt_param int pageSize Optional limit on the number of CryptoKeys to include
+ * in the response. Further CryptoKeys can subsequently be obtained by
+ * including the ListCryptoKeysResponse.next_page_token in a subsequent request.
+ * If unspecified, the server will pick an appropriate default.
+ * @return Google_Service_CloudKMS_ListCryptoKeysResponse
+ */
+ public function listProjectsLocationsKeyRingsCryptoKeys($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudKMS_ListCryptoKeysResponse");
+ }
+ /**
+ * Update a CryptoKey. (cryptoKeys.patch)
+ *
+ * @param string $name Output only. The resource name for this CryptoKey in the
+ * format `projects/locations/keyRings/cryptoKeys`.
+ * @param Google_Service_CloudKMS_CryptoKey $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Required list of fields to be updated in this
+ * request.
+ * @return Google_Service_CloudKMS_CryptoKey
+ */
+ public function patch($name, Google_Service_CloudKMS_CryptoKey $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_CloudKMS_CryptoKey");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (cryptoKeys.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_CloudKMS_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_CloudKMS_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_CloudKMS_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the
+ * resource does not exist, this will return an empty set of permissions, not a
+ * NOT_FOUND error.
+ *
+ * Note: This operation is designed to be used for building permission-aware UIs
+ * and command-line tools, not for authorization checking. This operation may
+ * "fail open" without warning. (cryptoKeys.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. See the operation documentation for the appropriate value
+ * for this field.
+ * @param Google_Service_CloudKMS_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_CloudKMS_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_CloudKMS_TestIamPermissionsResponse");
+ }
+ /**
+ * Update the version of a CryptoKey that will be used in Encrypt
+ * (cryptoKeys.updatePrimaryVersion)
+ *
+ * @param string $name The resource name of the CryptoKey to update.
+ * @param Google_Service_CloudKMS_UpdateCryptoKeyPrimaryVersionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_CryptoKey
+ */
+ public function updatePrimaryVersion($name, Google_Service_CloudKMS_UpdateCryptoKeyPrimaryVersionRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updatePrimaryVersion', array($params), "Google_Service_CloudKMS_CryptoKey");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php
new file mode 100644
index 00000000..e0f6ed75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Resource/ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions.php
@@ -0,0 +1,143 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "cryptoKeyVersions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudkmsService = new Google_Service_CloudKMS(...);
+ * $cryptoKeyVersions = $cloudkmsService->cryptoKeyVersions;
+ * </code>
+ */
+class Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions extends Google_Service_Resource
+{
+ /**
+ * Create a new CryptoKeyVersion in a CryptoKey.
+ *
+ * The server will assign the next sequential id. If unset, state will be set to
+ * ENABLED. (cryptoKeyVersions.create)
+ *
+ * @param string $parent Required. The name of the CryptoKey associated with the
+ * CryptoKeyVersions.
+ * @param Google_Service_CloudKMS_CryptoKeyVersion $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_CryptoKeyVersion
+ */
+ public function create($parent, Google_Service_CloudKMS_CryptoKeyVersion $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudKMS_CryptoKeyVersion");
+ }
+ /**
+ * Schedule a CryptoKeyVersion for destruction.
+ *
+ * Upon calling this method, CryptoKeyVersion.state will be set to
+ * DESTROY_SCHEDULED and destroy_time will be set to a time 24 hours in the
+ * future, at which point the state will be changed to DESTROYED, and the key
+ * material will be irrevocably destroyed.
+ *
+ * Before the destroy_time is reached, RestoreCryptoKeyVersion may be called to
+ * reverse the process. (cryptoKeyVersions.destroy)
+ *
+ * @param string $name The resource name of the CryptoKeyVersion to destroy.
+ * @param Google_Service_CloudKMS_DestroyCryptoKeyVersionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_CryptoKeyVersion
+ */
+ public function destroy($name, Google_Service_CloudKMS_DestroyCryptoKeyVersionRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('destroy', array($params), "Google_Service_CloudKMS_CryptoKeyVersion");
+ }
+ /**
+ * Returns metadata for a given CryptoKeyVersion. (cryptoKeyVersions.get)
+ *
+ * @param string $name The name of the CryptoKeyVersion to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_CryptoKeyVersion
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudKMS_CryptoKeyVersion");
+ }
+ /**
+ * Lists CryptoKeyVersions.
+ * (cryptoKeyVersions.listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions)
+ *
+ * @param string $parent Required. The resource name of the CryptoKey to list,
+ * in the format `projects/locations/keyRings/cryptoKeys`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional pagination token, returned earlier via
+ * ListCryptoKeyVersionsResponse.next_page_token.
+ * @opt_param int pageSize Optional limit on the number of CryptoKeyVersions to
+ * include in the response. Further CryptoKeyVersions can subsequently be
+ * obtained by including the ListCryptoKeyVersionsResponse.next_page_token in a
+ * subsequent request. If unspecified, the server will pick an appropriate
+ * default.
+ * @return Google_Service_CloudKMS_ListCryptoKeyVersionsResponse
+ */
+ public function listProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudKMS_ListCryptoKeyVersionsResponse");
+ }
+ /**
+ * Update a CryptoKeyVersion's metadata.
+ *
+ * state may be changed between ENABLED and DISABLED using this method. See
+ * DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to move between other
+ * states. (cryptoKeyVersions.patch)
+ *
+ * @param string $name Output only. The resource name for this CryptoKeyVersion
+ * in the format `projects/locations/keyRings/cryptoKeys/cryptoKeyVersions`.
+ * @param Google_Service_CloudKMS_CryptoKeyVersion $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Required list of fields to be updated in this
+ * request.
+ * @return Google_Service_CloudKMS_CryptoKeyVersion
+ */
+ public function patch($name, Google_Service_CloudKMS_CryptoKeyVersion $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_CloudKMS_CryptoKeyVersion");
+ }
+ /**
+ * Restore a CryptoKeyVersion in the DESTROY_SCHEDULED, state.
+ *
+ * Upon restoration of the CryptoKeyVersion, state will be set to DISABLED, and
+ * destroy_time will be cleared. (cryptoKeyVersions.restore)
+ *
+ * @param string $name The resource name of the CryptoKeyVersion to restore.
+ * @param Google_Service_CloudKMS_RestoreCryptoKeyVersionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudKMS_CryptoKeyVersion
+ */
+ public function restore($name, Google_Service_CloudKMS_RestoreCryptoKeyVersionRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('restore', array($params), "Google_Service_CloudKMS_CryptoKeyVersion");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/RestoreCryptoKeyVersionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/RestoreCryptoKeyVersionRequest.php
new file mode 100644
index 00000000..5408e12f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/RestoreCryptoKeyVersionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_RestoreCryptoKeyVersionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Rule.php
new file mode 100644
index 00000000..40f0a8b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/Rule.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_Rule extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $action;
+ protected $conditionsType = 'Google_Service_CloudKMS_Condition';
+ protected $conditionsDataType = 'array';
+ public $description;
+ public $in;
+ protected $logConfigType = 'Google_Service_CloudKMS_LogConfig';
+ protected $logConfigDataType = 'array';
+ public $notIn;
+ public $permissions;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIn($in)
+ {
+ $this->in = $in;
+ }
+ public function getIn()
+ {
+ return $this->in;
+ }
+ public function setLogConfig($logConfig)
+ {
+ $this->logConfig = $logConfig;
+ }
+ public function getLogConfig()
+ {
+ return $this->logConfig;
+ }
+ public function setNotIn($notIn)
+ {
+ $this->notIn = $notIn;
+ }
+ public function getNotIn()
+ {
+ return $this->notIn;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/SetIamPolicyRequest.php
new file mode 100644
index 00000000..cf66febc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/SetIamPolicyRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_CloudKMS_Policy';
+ protected $policyDataType = '';
+ public $updateMask;
+
+ public function setPolicy(Google_Service_CloudKMS_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+ public function setUpdateMask($updateMask)
+ {
+ $this->updateMask = $updateMask;
+ }
+ public function getUpdateMask()
+ {
+ return $this->updateMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..c83b1cb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..43f1a915
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/UpdateCryptoKeyPrimaryVersionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/UpdateCryptoKeyPrimaryVersionRequest.php
new file mode 100644
index 00000000..673148bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudKMS/UpdateCryptoKeyPrimaryVersionRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudKMS_UpdateCryptoKeyPrimaryVersionRequest extends Google_Model
+{
+ public $cryptoKeyVersionId;
+
+ public function setCryptoKeyVersionId($cryptoKeyVersionId)
+ {
+ $this->cryptoKeyVersionId = $cryptoKeyVersionId;
+ }
+ public function getCryptoKeyVersionId()
+ {
+ return $this->cryptoKeyVersionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning.php
new file mode 100644
index 00000000..851a3419
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning.php
@@ -0,0 +1,337 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudMachineLearning (v1beta1).
+ *
+ * <p>
+ * An API to enable creating and using machine learning models.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/ml/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudMachineLearning extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects;
+ public $projects_jobs;
+ public $projects_models;
+ public $projects_models_versions;
+ public $projects_operations;
+
+ /**
+ * Constructs the internal representation of the CloudMachineLearning service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://ml.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1beta1';
+ $this->serviceName = 'ml';
+
+ $this->projects = new Google_Service_CloudMachineLearning_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'getConfig' => array(
+ 'path' => 'v1beta1/{+name}:getConfig',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'predict' => array(
+ 'path' => 'v1beta1/{+name}:predict',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_jobs = new Google_Service_CloudMachineLearning_Resource_ProjectsJobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1beta1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1beta1/{+parent}/jobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/{+parent}/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_models = new Google_Service_CloudMachineLearning_Resource_ProjectsModels(
+ $this,
+ $this->serviceName,
+ 'models',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1beta1/{+parent}/models',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/{+parent}/models',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_models_versions = new Google_Service_CloudMachineLearning_Resource_ProjectsModelsVersions(
+ $this,
+ $this->serviceName,
+ 'versions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1beta1/{+parent}/versions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/{+parent}/versions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setDefault' => array(
+ 'path' => 'v1beta1/{+name}:setDefault',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_operations = new Google_Service_CloudMachineLearning_Resource_ProjectsOperations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1beta1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/{+name}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleApiHttpBody.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleApiHttpBody.php
new file mode 100644
index 00000000..21929b73
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleApiHttpBody.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleApiHttpBody extends Google_Model
+{
+ public $contentType;
+ public $data;
+
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1CancelJobRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1CancelJobRequest.php
new file mode 100644
index 00000000..2203115f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1CancelJobRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1CancelJobRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1GetConfigResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1GetConfigResponse.php
new file mode 100644
index 00000000..3bf24a82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1GetConfigResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1GetConfigResponse extends Google_Model
+{
+ public $serviceAccount;
+ public $serviceAccountProject;
+
+ public function setServiceAccount($serviceAccount)
+ {
+ $this->serviceAccount = $serviceAccount;
+ }
+ public function getServiceAccount()
+ {
+ return $this->serviceAccount;
+ }
+ public function setServiceAccountProject($serviceAccountProject)
+ {
+ $this->serviceAccountProject = $serviceAccountProject;
+ }
+ public function getServiceAccountProject()
+ {
+ return $this->serviceAccountProject;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutput.php
new file mode 100644
index 00000000..3c5cd116
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutput.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutput extends Google_Collection
+{
+ protected $collection_key = 'allMetrics';
+ protected $allMetricsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric';
+ protected $allMetricsDataType = 'array';
+ protected $finalMetricType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric';
+ protected $finalMetricDataType = '';
+ public $hyperparameters;
+ public $trialId;
+
+ public function setAllMetrics($allMetrics)
+ {
+ $this->allMetrics = $allMetrics;
+ }
+ public function getAllMetrics()
+ {
+ return $this->allMetrics;
+ }
+ public function setFinalMetric(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric $finalMetric)
+ {
+ $this->finalMetric = $finalMetric;
+ }
+ public function getFinalMetric()
+ {
+ return $this->finalMetric;
+ }
+ public function setHyperparameters($hyperparameters)
+ {
+ $this->hyperparameters = $hyperparameters;
+ }
+ public function getHyperparameters()
+ {
+ return $this->hyperparameters;
+ }
+ public function setTrialId($trialId)
+ {
+ $this->trialId = $trialId;
+ }
+ public function getTrialId()
+ {
+ return $this->trialId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.php
new file mode 100644
index 00000000..14694e4f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric extends Google_Model
+{
+ public $objectiveValue;
+ public $trainingStep;
+
+ public function setObjectiveValue($objectiveValue)
+ {
+ $this->objectiveValue = $objectiveValue;
+ }
+ public function getObjectiveValue()
+ {
+ return $this->objectiveValue;
+ }
+ public function setTrainingStep($trainingStep)
+ {
+ $this->trainingStep = $trainingStep;
+ }
+ public function getTrainingStep()
+ {
+ return $this->trainingStep;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterSpec.php
new file mode 100644
index 00000000..c03f7274
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1HyperparameterSpec.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterSpec extends Google_Collection
+{
+ protected $collection_key = 'params';
+ public $goal;
+ public $maxParallelTrials;
+ public $maxTrials;
+ protected $paramsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ParameterSpec';
+ protected $paramsDataType = 'array';
+
+ public function setGoal($goal)
+ {
+ $this->goal = $goal;
+ }
+ public function getGoal()
+ {
+ return $this->goal;
+ }
+ public function setMaxParallelTrials($maxParallelTrials)
+ {
+ $this->maxParallelTrials = $maxParallelTrials;
+ }
+ public function getMaxParallelTrials()
+ {
+ return $this->maxParallelTrials;
+ }
+ public function setMaxTrials($maxTrials)
+ {
+ $this->maxTrials = $maxTrials;
+ }
+ public function getMaxTrials()
+ {
+ return $this->maxTrials;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Job.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Job.php
new file mode 100644
index 00000000..6817d8a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Job.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job extends Google_Model
+{
+ public $createTime;
+ public $endTime;
+ public $errorMessage;
+ public $jobId;
+ protected $predictionInputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionInput';
+ protected $predictionInputDataType = '';
+ protected $predictionOutputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionOutput';
+ protected $predictionOutputDataType = '';
+ public $startTime;
+ public $state;
+ protected $trainingInputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingInput';
+ protected $trainingInputDataType = '';
+ protected $trainingOutputType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingOutput';
+ protected $trainingOutputDataType = '';
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setErrorMessage($errorMessage)
+ {
+ $this->errorMessage = $errorMessage;
+ }
+ public function getErrorMessage()
+ {
+ return $this->errorMessage;
+ }
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
+ {
+ return $this->jobId;
+ }
+ public function setPredictionInput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionInput $predictionInput)
+ {
+ $this->predictionInput = $predictionInput;
+ }
+ public function getPredictionInput()
+ {
+ return $this->predictionInput;
+ }
+ public function setPredictionOutput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionOutput $predictionOutput)
+ {
+ $this->predictionOutput = $predictionOutput;
+ }
+ public function getPredictionOutput()
+ {
+ return $this->predictionOutput;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTrainingInput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingInput $trainingInput)
+ {
+ $this->trainingInput = $trainingInput;
+ }
+ public function getTrainingInput()
+ {
+ return $this->trainingInput;
+ }
+ public function setTrainingOutput(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingOutput $trainingOutput)
+ {
+ $this->trainingOutput = $trainingOutput;
+ }
+ public function getTrainingOutput()
+ {
+ return $this->trainingOutput;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListJobsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListJobsResponse.php
new file mode 100644
index 00000000..4fdb12be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListJobsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListJobsResponse extends Google_Collection
+{
+ protected $collection_key = 'jobs';
+ protected $jobsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job';
+ protected $jobsDataType = 'array';
+ public $nextPageToken;
+
+ public function setJobs($jobs)
+ {
+ $this->jobs = $jobs;
+ }
+ public function getJobs()
+ {
+ return $this->jobs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListModelsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListModelsResponse.php
new file mode 100644
index 00000000..fdea12aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListModelsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListModelsResponse extends Google_Collection
+{
+ protected $collection_key = 'models';
+ protected $modelsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model';
+ protected $modelsDataType = 'array';
+ public $nextPageToken;
+
+ public function setModels($models)
+ {
+ $this->models = $models;
+ }
+ public function getModels()
+ {
+ return $this->models;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListVersionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListVersionsResponse.php
new file mode 100644
index 00000000..4a0bbc87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ListVersionsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListVersionsResponse extends Google_Collection
+{
+ protected $collection_key = 'versions';
+ public $nextPageToken;
+ protected $versionsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version';
+ protected $versionsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setVersions($versions)
+ {
+ $this->versions = $versions;
+ }
+ public function getVersions()
+ {
+ return $this->versions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Model.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Model.php
new file mode 100644
index 00000000..a86a626b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Model.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model extends Google_Model
+{
+ protected $defaultVersionType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version';
+ protected $defaultVersionDataType = '';
+ public $description;
+ public $name;
+
+ public function setDefaultVersion(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $defaultVersion)
+ {
+ $this->defaultVersion = $defaultVersion;
+ }
+ public function getDefaultVersion()
+ {
+ return $this->defaultVersion;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1OperationMetadata.php
new file mode 100644
index 00000000..c434b276
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1OperationMetadata.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1OperationMetadata extends Google_Model
+{
+ public $createTime;
+ public $endTime;
+ public $isCancellationRequested;
+ public $modelName;
+ public $operationType;
+ public $startTime;
+ protected $versionType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version';
+ protected $versionDataType = '';
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setIsCancellationRequested($isCancellationRequested)
+ {
+ $this->isCancellationRequested = $isCancellationRequested;
+ }
+ public function getIsCancellationRequested()
+ {
+ return $this->isCancellationRequested;
+ }
+ public function setModelName($modelName)
+ {
+ $this->modelName = $modelName;
+ }
+ public function getModelName()
+ {
+ return $this->modelName;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setVersion(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ParameterSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ParameterSpec.php
new file mode 100644
index 00000000..4403e505
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1ParameterSpec.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ParameterSpec extends Google_Collection
+{
+ protected $collection_key = 'discreteValues';
+ public $categoricalValues;
+ public $discreteValues;
+ public $maxValue;
+ public $minValue;
+ public $parameterName;
+ public $scaleType;
+ public $type;
+
+ public function setCategoricalValues($categoricalValues)
+ {
+ $this->categoricalValues = $categoricalValues;
+ }
+ public function getCategoricalValues()
+ {
+ return $this->categoricalValues;
+ }
+ public function setDiscreteValues($discreteValues)
+ {
+ $this->discreteValues = $discreteValues;
+ }
+ public function getDiscreteValues()
+ {
+ return $this->discreteValues;
+ }
+ public function setMaxValue($maxValue)
+ {
+ $this->maxValue = $maxValue;
+ }
+ public function getMaxValue()
+ {
+ return $this->maxValue;
+ }
+ public function setMinValue($minValue)
+ {
+ $this->minValue = $minValue;
+ }
+ public function getMinValue()
+ {
+ return $this->minValue;
+ }
+ public function setParameterName($parameterName)
+ {
+ $this->parameterName = $parameterName;
+ }
+ public function getParameterName()
+ {
+ return $this->parameterName;
+ }
+ public function setScaleType($scaleType)
+ {
+ $this->scaleType = $scaleType;
+ }
+ public function getScaleType()
+ {
+ return $this->scaleType;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictRequest.php
new file mode 100644
index 00000000..e27cfe46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictRequest extends Google_Model
+{
+ protected $httpBodyType = 'Google_Service_CloudMachineLearning_GoogleApiHttpBody';
+ protected $httpBodyDataType = '';
+
+ public function setHttpBody(Google_Service_CloudMachineLearning_GoogleApiHttpBody $httpBody)
+ {
+ $this->httpBody = $httpBody;
+ }
+ public function getHttpBody()
+ {
+ return $this->httpBody;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionInput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionInput.php
new file mode 100644
index 00000000..1dbd8138
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionInput.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionInput extends Google_Collection
+{
+ protected $collection_key = 'inputPaths';
+ public $dataFormat;
+ public $inputPaths;
+ public $maxWorkerCount;
+ public $modelName;
+ public $outputPath;
+ public $region;
+ public $versionName;
+
+ public function setDataFormat($dataFormat)
+ {
+ $this->dataFormat = $dataFormat;
+ }
+ public function getDataFormat()
+ {
+ return $this->dataFormat;
+ }
+ public function setInputPaths($inputPaths)
+ {
+ $this->inputPaths = $inputPaths;
+ }
+ public function getInputPaths()
+ {
+ return $this->inputPaths;
+ }
+ public function setMaxWorkerCount($maxWorkerCount)
+ {
+ $this->maxWorkerCount = $maxWorkerCount;
+ }
+ public function getMaxWorkerCount()
+ {
+ return $this->maxWorkerCount;
+ }
+ public function setModelName($modelName)
+ {
+ $this->modelName = $modelName;
+ }
+ public function getModelName()
+ {
+ return $this->modelName;
+ }
+ public function setOutputPath($outputPath)
+ {
+ $this->outputPath = $outputPath;
+ }
+ public function getOutputPath()
+ {
+ return $this->outputPath;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setVersionName($versionName)
+ {
+ $this->versionName = $versionName;
+ }
+ public function getVersionName()
+ {
+ return $this->versionName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionOutput.php
new file mode 100644
index 00000000..7a8080c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1PredictionOutput.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictionOutput extends Google_Model
+{
+ public $errorCount;
+ public $outputPath;
+ public $predictionCount;
+
+ public function setErrorCount($errorCount)
+ {
+ $this->errorCount = $errorCount;
+ }
+ public function getErrorCount()
+ {
+ return $this->errorCount;
+ }
+ public function setOutputPath($outputPath)
+ {
+ $this->outputPath = $outputPath;
+ }
+ public function getOutputPath()
+ {
+ return $this->outputPath;
+ }
+ public function setPredictionCount($predictionCount)
+ {
+ $this->predictionCount = $predictionCount;
+ }
+ public function getPredictionCount()
+ {
+ return $this->predictionCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1SetDefaultVersionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1SetDefaultVersionRequest.php
new file mode 100644
index 00000000..71268c53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1SetDefaultVersionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1SetDefaultVersionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingInput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingInput.php
new file mode 100644
index 00000000..0df48abd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingInput.php
@@ -0,0 +1,122 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingInput extends Google_Collection
+{
+ protected $collection_key = 'packageUris';
+ public $args;
+ protected $hyperparametersType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterSpec';
+ protected $hyperparametersDataType = '';
+ public $masterType;
+ public $packageUris;
+ public $parameterServerCount;
+ public $parameterServerType;
+ public $pythonModule;
+ public $region;
+ public $scaleTier;
+ public $workerCount;
+ public $workerType;
+
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setHyperparameters(Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterSpec $hyperparameters)
+ {
+ $this->hyperparameters = $hyperparameters;
+ }
+ public function getHyperparameters()
+ {
+ return $this->hyperparameters;
+ }
+ public function setMasterType($masterType)
+ {
+ $this->masterType = $masterType;
+ }
+ public function getMasterType()
+ {
+ return $this->masterType;
+ }
+ public function setPackageUris($packageUris)
+ {
+ $this->packageUris = $packageUris;
+ }
+ public function getPackageUris()
+ {
+ return $this->packageUris;
+ }
+ public function setParameterServerCount($parameterServerCount)
+ {
+ $this->parameterServerCount = $parameterServerCount;
+ }
+ public function getParameterServerCount()
+ {
+ return $this->parameterServerCount;
+ }
+ public function setParameterServerType($parameterServerType)
+ {
+ $this->parameterServerType = $parameterServerType;
+ }
+ public function getParameterServerType()
+ {
+ return $this->parameterServerType;
+ }
+ public function setPythonModule($pythonModule)
+ {
+ $this->pythonModule = $pythonModule;
+ }
+ public function getPythonModule()
+ {
+ return $this->pythonModule;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setScaleTier($scaleTier)
+ {
+ $this->scaleTier = $scaleTier;
+ }
+ public function getScaleTier()
+ {
+ return $this->scaleTier;
+ }
+ public function setWorkerCount($workerCount)
+ {
+ $this->workerCount = $workerCount;
+ }
+ public function getWorkerCount()
+ {
+ return $this->workerCount;
+ }
+ public function setWorkerType($workerType)
+ {
+ $this->workerType = $workerType;
+ }
+ public function getWorkerType()
+ {
+ return $this->workerType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingOutput.php
new file mode 100644
index 00000000..a23e6ddd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1TrainingOutput.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1TrainingOutput extends Google_Collection
+{
+ protected $collection_key = 'trials';
+ public $completedTrialCount;
+ public $consumedMLUnits;
+ protected $trialsType = 'Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1HyperparameterOutput';
+ protected $trialsDataType = 'array';
+
+ public function setCompletedTrialCount($completedTrialCount)
+ {
+ $this->completedTrialCount = $completedTrialCount;
+ }
+ public function getCompletedTrialCount()
+ {
+ return $this->completedTrialCount;
+ }
+ public function setConsumedMLUnits($consumedMLUnits)
+ {
+ $this->consumedMLUnits = $consumedMLUnits;
+ }
+ public function getConsumedMLUnits()
+ {
+ return $this->consumedMLUnits;
+ }
+ public function setTrials($trials)
+ {
+ $this->trials = $trials;
+ }
+ public function getTrials()
+ {
+ return $this->trials;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Version.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Version.php
new file mode 100644
index 00000000..4e06e3f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleCloudMlV1beta1Version.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version extends Google_Model
+{
+ public $createTime;
+ public $deploymentUri;
+ public $description;
+ public $isDefault;
+ public $lastUseTime;
+ public $name;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setDeploymentUri($deploymentUri)
+ {
+ $this->deploymentUri = $deploymentUri;
+ }
+ public function getDeploymentUri()
+ {
+ return $this->deploymentUri;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIsDefault($isDefault)
+ {
+ $this->isDefault = $isDefault;
+ }
+ public function getIsDefault()
+ {
+ return $this->isDefault;
+ }
+ public function setLastUseTime($lastUseTime)
+ {
+ $this->lastUseTime = $lastUseTime;
+ }
+ public function getLastUseTime()
+ {
+ return $this->lastUseTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningListOperationsResponse.php
new file mode 100644
index 00000000..bddb8930
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleLongrunningListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_CloudMachineLearning_GoogleLongrunningOperation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningOperation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningOperation.php
new file mode 100644
index 00000000..d9f2c4c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleLongrunningOperation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleLongrunningOperation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_CloudMachineLearning_GoogleRpcStatus';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudMachineLearning_GoogleRpcStatus $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleProtobufEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleProtobufEmpty.php
new file mode 100644
index 00000000..3ae84da2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleProtobufEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleProtobufEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleRpcStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleRpcStatus.php
new file mode 100644
index 00000000..8a3bc4e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/GoogleRpcStatus.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearning_GoogleRpcStatus extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/Projects.php
new file mode 100644
index 00000000..2f959bf2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/Projects.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearning(...);
+ * $projects = $mlService->projects;
+ * </code>
+ */
+class Google_Service_CloudMachineLearning_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Get the service account information associated with your project. You need
+ * this information in order to grant the service account persmissions for the
+ * Google Cloud Storage location where you put your model training code for
+ * training the model with Google Cloud Machine Learning. (projects.getConfig)
+ *
+ * @param string $name Required. The project name.
+ *
+ * Authorization: requires `Viewer` role on the specified project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1GetConfigResponse
+ */
+ public function getConfig($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('getConfig', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1GetConfigResponse");
+ }
+ /**
+ * Performs prediction on the data in the request.
+ *
+ * Responses are very similar to requests. There are two top-level fields, each
+ * of which are JSON lists:
+ *
+ * predictions The list of predictions, one per instance in the request.
+ * error An error message returned instead of a prediction list if any
+ * instance produced an error.
+ *
+ * If the call is successful, the response body will contain one prediction
+ * entry per instance in the request body. If prediction fails for any instance,
+ * the response body will contain no predictions and will contian a single error
+ * entry instead.
+ *
+ * Even though there is one prediction per instance, the format of a prediction
+ * is not directly related to the format of an instance. Predictions take
+ * whatever format is specified in the outputs collection defined in the model.
+ * The collection of predictions is returned in a JSON list. Each member of the
+ * list can be a simple value, a list, or a JSON object of any complexity. If
+ * your model has more than one output tensor, each prediction will be a JSON
+ * object containing a name/value pair for each output. The names identify the
+ * output aliases in the graph.
+ *
+ * The following examples show some possible responses:
+ *
+ * A simple set of predictions for three input instances, where each prediction
+ * is an integer value:
+ *
+ * {"predictions": [5, 4, 3]}
+ *
+ * A more complex set of predictions, each containing two named values that
+ * correspond to output tensors, named **label** and **scores** respectively.
+ * The value of **label** is the predicted category ("car" or "beach") and
+ * **scores** contains a list of probabilities for that instance across the
+ * possible categories.
+ *
+ * {"predictions": [{"label": "beach", "scores": [0.1, 0.9]},
+ * {"label": "car", "scores": [0.75, 0.25]}]}
+ *
+ * A response when there is an error processing an input instance:
+ *
+ * {"error": "Divide by zero"} (projects.predict)
+ *
+ * @param string $name Required. The resource name of a model or a version.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleApiHttpBody
+ */
+ public function predict($name, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1PredictRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('predict', array($params), "Google_Service_CloudMachineLearning_GoogleApiHttpBody");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsJobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsJobs.php
new file mode 100644
index 00000000..ba4459bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsJobs.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearning(...);
+ * $jobs = $mlService->jobs;
+ * </code>
+ */
+class Google_Service_CloudMachineLearning_Resource_ProjectsJobs extends Google_Service_Resource
+{
+ /**
+ * Cancels a running job. (jobs.cancel)
+ *
+ * @param string $name Required. The name of the job to cancel.
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1CancelJobRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleProtobufEmpty
+ */
+ public function cancel($name, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1CancelJobRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudMachineLearning_GoogleProtobufEmpty");
+ }
+ /**
+ * Creates a training or a batch prediction job. (jobs.create)
+ *
+ * @param string $parent Required. The project name.
+ *
+ * Authorization: requires `Editor` role on the specified project.
+ * @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job
+ */
+ public function create($parent, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job");
+ }
+ /**
+ * Describes a job. (jobs.get)
+ *
+ * @param string $name Required. The name of the job to get the description of.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Job");
+ }
+ /**
+ * Lists the jobs in the project. (jobs.listProjectsJobs)
+ *
+ * @param string $parent Required. The name of the project for which to list
+ * jobs.
+ *
+ * Authorization: requires `Viewer` role on the specified project.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Optional. The number of jobs to retrieve per "page"
+ * of results. If there are more remaining results than this number, the
+ * response message will contain a valid value in the `next_page_token` field.
+ *
+ * The default value is 20, and the maximum page size is 100.
+ * @opt_param string filter Optional. Specifies the subset of jobs to retrieve.
+ * @opt_param string pageToken Optional. A page token to request the next page
+ * of results.
+ *
+ * You get the token from the `next_page_token` field of the response from the
+ * previous call.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListJobsResponse
+ */
+ public function listProjectsJobs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListJobsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModels.php
new file mode 100644
index 00000000..8a4a3422
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModels.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "models" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearning(...);
+ * $models = $mlService->models;
+ * </code>
+ */
+class Google_Service_CloudMachineLearning_Resource_ProjectsModels extends Google_Service_Resource
+{
+ /**
+ * Creates a model which will later contain one or more versions.
+ *
+ * You must add at least one version before you can request predictions from the
+ * model. Add versions by calling [projects.models.versions.create](/ml/referenc
+ * e/rest/v1beta1/projects.models.versions/create). (models.create)
+ *
+ * @param string $parent Required. The project name.
+ *
+ * Authorization: requires `Editor` role on the specified project.
+ * @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model
+ */
+ public function create($parent, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model");
+ }
+ /**
+ * Deletes a model.
+ *
+ * You can only delete a model if there are no versions in it. You can delete
+ * versions by calling [projects.models.versions.delete](/ml/reference/rest/v1be
+ * ta1/projects.models.versions/delete). (models.delete)
+ *
+ * @param string $name Required. The name of the model.
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
+ }
+ /**
+ * Gets information about a model, including its name, the description (if set),
+ * and the default version (if at least one version of the model has been
+ * deployed). (models.get)
+ *
+ * @param string $name Required. The name of the model.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Model");
+ }
+ /**
+ * Lists the models in a project.
+ *
+ * Each project can contain multiple models, and each model can have multiple
+ * versions. (models.listProjectsModels)
+ *
+ * @param string $parent Required. The name of the project whose models are to
+ * be listed.
+ *
+ * Authorization: requires `Viewer` role on the specified project.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Optional. The number of models to retrieve per "page"
+ * of results. If there are more remaining results than this number, the
+ * response message will contain a valid value in the `next_page_token` field.
+ *
+ * The default value is 20, and the maximum page size is 100.
+ * @opt_param string pageToken Optional. A page token to request the next page
+ * of results.
+ *
+ * You get the token from the `next_page_token` field of the response from the
+ * previous call.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListModelsResponse
+ */
+ public function listProjectsModels($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListModelsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModelsVersions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModelsVersions.php
new file mode 100644
index 00000000..0f264fd8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsModelsVersions.php
@@ -0,0 +1,152 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "versions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearning(...);
+ * $versions = $mlService->versions;
+ * </code>
+ */
+class Google_Service_CloudMachineLearning_Resource_ProjectsModelsVersions extends Google_Service_Resource
+{
+ /**
+ * Creates a new version of a model from a trained TensorFlow model.
+ *
+ * If the version created in the cloud by this call is the first deployed
+ * version of the specified model, it will be made the default version of the
+ * model. When you add a version to a model that already has one or more
+ * versions, the default version does not automatically change. If you want a
+ * new version to be the default, you must call [projects.models.versions.setDef
+ * ault](/ml/reference/rest/v1beta1/projects.models.versions/setDefault).
+ * (versions.create)
+ *
+ * @param string $parent Required. The name of the model.
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
+ */
+ public function create($parent, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
+ }
+ /**
+ * Deletes a model version.
+ *
+ * Each model can have multiple versions deployed and in use at any given time.
+ * Use this method to remove a single version.
+ *
+ * Note: You cannot delete the version that is set as the default version of the
+ * model unless it is the only remaining version. (versions.delete)
+ *
+ * @param string $name Required. The name of the version. You can get the names
+ * of all the versions of a model by calling [projects.models.versions.list](/ml
+ * /reference/rest/v1beta1/projects.models.versions/list).
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
+ }
+ /**
+ * Gets information about a model version.
+ *
+ * Models can have multiple versions. You can call [projects.models.versions.lis
+ * t](/ml/reference/rest/v1beta1/projects.models.versions/list) to get the same
+ * information that this method returns for all of the versions of a model.
+ * (versions.get)
+ *
+ * @param string $name Required. The name of the version.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version");
+ }
+ /**
+ * Gets basic information about all the versions of a model.
+ *
+ * If you expect that a model has a lot of versions, or if you need to handle
+ * only a limited number of results at a time, you can request that the list be
+ * retrieved in batches (called pages): (versions.listProjectsModelsVersions)
+ *
+ * @param string $parent Required. The name of the model for which to list the
+ * version.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Optional. The number of versions to retrieve per
+ * "page" of results. If there are more remaining results than this number, the
+ * response message will contain a valid value in the `next_page_token` field.
+ *
+ * The default value is 20, and the maximum page size is 100.
+ * @opt_param string pageToken Optional. A page token to request the next page
+ * of results.
+ *
+ * You get the token from the `next_page_token` field of the response from the
+ * previous call.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListVersionsResponse
+ */
+ public function listProjectsModelsVersions($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1ListVersionsResponse");
+ }
+ /**
+ * Designates a version to be the default for the model.
+ *
+ * The default version is used for prediction requests made against the model
+ * that don't specify a version.
+ *
+ * The first version to be created for a model is automatically set as the
+ * default. You must make any subsequent changes to the default version setting
+ * manually using this method. (versions.setDefault)
+ *
+ * @param string $name Required. The name of the version to make the default for
+ * the model. You can get the names of all the versions of a model by calling [p
+ * rojects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.vers
+ * ions/list).
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1SetDefaultVersionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version
+ */
+ public function setDefault($name, Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1SetDefaultVersionRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setDefault', array($params), "Google_Service_CloudMachineLearning_GoogleCloudMlV1beta1Version");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsOperations.php
new file mode 100644
index 00000000..3deb6405
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearning/Resource/ProjectsOperations.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearning(...);
+ * $operations = $mlService->operations;
+ * </code>
+ */
+class Google_Service_CloudMachineLearning_Resource_ProjectsOperations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleProtobufEmpty
+ */
+ public function cancel($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudMachineLearning_GoogleProtobufEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleProtobufEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudMachineLearning_GoogleProtobufEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearning_GoogleLongrunningOperation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningOperation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listProjectsOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string filter The standard list filter.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_CloudMachineLearning_GoogleLongrunningListOperationsResponse
+ */
+ public function listProjectsOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearning_GoogleLongrunningListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php
new file mode 100644
index 00000000..22cf5f6b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine.php
@@ -0,0 +1,338 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudMachineLearningEngine (v1).
+ *
+ * <p>
+ * An API to enable creating and using machine learning models.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/ml/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudMachineLearningEngine extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects;
+ public $projects_jobs;
+ public $projects_models;
+ public $projects_models_versions;
+ public $projects_operations;
+
+ /**
+ * Constructs the internal representation of the CloudMachineLearningEngine
+ * service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://ml.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'ml';
+
+ $this->projects = new Google_Service_CloudMachineLearningEngine_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'getConfig' => array(
+ 'path' => 'v1/{+name}:getConfig',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'predict' => array(
+ 'path' => 'v1/{+name}:predict',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_jobs = new Google_Service_CloudMachineLearningEngine_Resource_ProjectsJobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1/{+parent}/jobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_models = new Google_Service_CloudMachineLearningEngine_Resource_ProjectsModels(
+ $this,
+ $this->serviceName,
+ 'models',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/models',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/models',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_models_versions = new Google_Service_CloudMachineLearningEngine_Resource_ProjectsModelsVersions(
+ $this,
+ $this->serviceName,
+ 'versions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/versions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/versions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'setDefault' => array(
+ 'path' => 'v1/{+name}:setDefault',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_operations = new Google_Service_CloudMachineLearningEngine_Resource_ProjectsOperations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleApiHttpBody.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleApiHttpBody.php
new file mode 100644
index 00000000..9defb8c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleApiHttpBody.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleApiHttpBody extends Google_Model
+{
+ public $contentType;
+ public $data;
+
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1CancelJobRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1CancelJobRequest.php
new file mode 100644
index 00000000..a53fd50d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1CancelJobRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CancelJobRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1GetConfigResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1GetConfigResponse.php
new file mode 100644
index 00000000..8d4afec6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1GetConfigResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1GetConfigResponse extends Google_Model
+{
+ public $serviceAccount;
+ public $serviceAccountProject;
+
+ public function setServiceAccount($serviceAccount)
+ {
+ $this->serviceAccount = $serviceAccount;
+ }
+ public function getServiceAccount()
+ {
+ return $this->serviceAccount;
+ }
+ public function setServiceAccountProject($serviceAccountProject)
+ {
+ $this->serviceAccountProject = $serviceAccountProject;
+ }
+ public function getServiceAccountProject()
+ {
+ return $this->serviceAccountProject;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutput.php
new file mode 100644
index 00000000..090b9545
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutput.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutput extends Google_Collection
+{
+ protected $collection_key = 'allMetrics';
+ protected $allMetricsType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutputHyperparameterMetric';
+ protected $allMetricsDataType = 'array';
+ protected $finalMetricType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutputHyperparameterMetric';
+ protected $finalMetricDataType = '';
+ public $hyperparameters;
+ public $trialId;
+
+ public function setAllMetrics($allMetrics)
+ {
+ $this->allMetrics = $allMetrics;
+ }
+ public function getAllMetrics()
+ {
+ return $this->allMetrics;
+ }
+ public function setFinalMetric(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutputHyperparameterMetric $finalMetric)
+ {
+ $this->finalMetric = $finalMetric;
+ }
+ public function getFinalMetric()
+ {
+ return $this->finalMetric;
+ }
+ public function setHyperparameters($hyperparameters)
+ {
+ $this->hyperparameters = $hyperparameters;
+ }
+ public function getHyperparameters()
+ {
+ return $this->hyperparameters;
+ }
+ public function setTrialId($trialId)
+ {
+ $this->trialId = $trialId;
+ }
+ public function getTrialId()
+ {
+ return $this->trialId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.php
new file mode 100644
index 00000000..6ce8feaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterOutputHyperparameterMetric.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutputHyperparameterMetric extends Google_Model
+{
+ public $objectiveValue;
+ public $trainingStep;
+
+ public function setObjectiveValue($objectiveValue)
+ {
+ $this->objectiveValue = $objectiveValue;
+ }
+ public function getObjectiveValue()
+ {
+ return $this->objectiveValue;
+ }
+ public function setTrainingStep($trainingStep)
+ {
+ $this->trainingStep = $trainingStep;
+ }
+ public function getTrainingStep()
+ {
+ return $this->trainingStep;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php
new file mode 100644
index 00000000..8a5bbab8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1HyperparameterSpec.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpec extends Google_Collection
+{
+ protected $collection_key = 'params';
+ public $goal;
+ public $hyperparameterMetricTag;
+ public $maxParallelTrials;
+ public $maxTrials;
+ protected $paramsType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ParameterSpec';
+ protected $paramsDataType = 'array';
+
+ public function setGoal($goal)
+ {
+ $this->goal = $goal;
+ }
+ public function getGoal()
+ {
+ return $this->goal;
+ }
+ public function setHyperparameterMetricTag($hyperparameterMetricTag)
+ {
+ $this->hyperparameterMetricTag = $hyperparameterMetricTag;
+ }
+ public function getHyperparameterMetricTag()
+ {
+ return $this->hyperparameterMetricTag;
+ }
+ public function setMaxParallelTrials($maxParallelTrials)
+ {
+ $this->maxParallelTrials = $maxParallelTrials;
+ }
+ public function getMaxParallelTrials()
+ {
+ return $this->maxParallelTrials;
+ }
+ public function setMaxTrials($maxTrials)
+ {
+ $this->maxTrials = $maxTrials;
+ }
+ public function getMaxTrials()
+ {
+ return $this->maxTrials;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php
new file mode 100644
index 00000000..12477968
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Job.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job extends Google_Model
+{
+ public $createTime;
+ public $endTime;
+ public $errorMessage;
+ public $jobId;
+ protected $predictionInputType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput';
+ protected $predictionInputDataType = '';
+ protected $predictionOutputType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionOutput';
+ protected $predictionOutputDataType = '';
+ public $startTime;
+ public $state;
+ protected $trainingInputType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput';
+ protected $trainingInputDataType = '';
+ protected $trainingOutputType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingOutput';
+ protected $trainingOutputDataType = '';
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setErrorMessage($errorMessage)
+ {
+ $this->errorMessage = $errorMessage;
+ }
+ public function getErrorMessage()
+ {
+ return $this->errorMessage;
+ }
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
+ {
+ return $this->jobId;
+ }
+ public function setPredictionInput(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput $predictionInput)
+ {
+ $this->predictionInput = $predictionInput;
+ }
+ public function getPredictionInput()
+ {
+ return $this->predictionInput;
+ }
+ public function setPredictionOutput(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionOutput $predictionOutput)
+ {
+ $this->predictionOutput = $predictionOutput;
+ }
+ public function getPredictionOutput()
+ {
+ return $this->predictionOutput;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTrainingInput(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput $trainingInput)
+ {
+ $this->trainingInput = $trainingInput;
+ }
+ public function getTrainingInput()
+ {
+ return $this->trainingInput;
+ }
+ public function setTrainingOutput(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingOutput $trainingOutput)
+ {
+ $this->trainingOutput = $trainingOutput;
+ }
+ public function getTrainingOutput()
+ {
+ return $this->trainingOutput;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListJobsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListJobsResponse.php
new file mode 100644
index 00000000..64ee1e51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListJobsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListJobsResponse extends Google_Collection
+{
+ protected $collection_key = 'jobs';
+ protected $jobsType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job';
+ protected $jobsDataType = 'array';
+ public $nextPageToken;
+
+ public function setJobs($jobs)
+ {
+ $this->jobs = $jobs;
+ }
+ public function getJobs()
+ {
+ return $this->jobs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListModelsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListModelsResponse.php
new file mode 100644
index 00000000..94073eb1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListModelsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListModelsResponse extends Google_Collection
+{
+ protected $collection_key = 'models';
+ protected $modelsType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model';
+ protected $modelsDataType = 'array';
+ public $nextPageToken;
+
+ public function setModels($models)
+ {
+ $this->models = $models;
+ }
+ public function getModels()
+ {
+ return $this->models;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListVersionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListVersionsResponse.php
new file mode 100644
index 00000000..3854c313
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ListVersionsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListVersionsResponse extends Google_Collection
+{
+ protected $collection_key = 'versions';
+ public $nextPageToken;
+ protected $versionsType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version';
+ protected $versionsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setVersions($versions)
+ {
+ $this->versions = $versions;
+ }
+ public function getVersions()
+ {
+ return $this->versions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ManualScaling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ManualScaling.php
new file mode 100644
index 00000000..e2ce19b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ManualScaling.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ManualScaling extends Google_Model
+{
+ public $nodes;
+
+ public function setNodes($nodes)
+ {
+ $this->nodes = $nodes;
+ }
+ public function getNodes()
+ {
+ return $this->nodes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php
new file mode 100644
index 00000000..f510f862
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Model.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model extends Google_Collection
+{
+ protected $collection_key = 'regions';
+ protected $defaultVersionType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version';
+ protected $defaultVersionDataType = '';
+ public $description;
+ public $name;
+ public $onlinePredictionLogging;
+ public $regions;
+
+ public function setDefaultVersion(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version $defaultVersion)
+ {
+ $this->defaultVersion = $defaultVersion;
+ }
+ public function getDefaultVersion()
+ {
+ return $this->defaultVersion;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOnlinePredictionLogging($onlinePredictionLogging)
+ {
+ $this->onlinePredictionLogging = $onlinePredictionLogging;
+ }
+ public function getOnlinePredictionLogging()
+ {
+ return $this->onlinePredictionLogging;
+ }
+ public function setRegions($regions)
+ {
+ $this->regions = $regions;
+ }
+ public function getRegions()
+ {
+ return $this->regions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php
new file mode 100644
index 00000000..f1b33712
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1OperationMetadata.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1OperationMetadata extends Google_Model
+{
+ public $createTime;
+ public $endTime;
+ public $isCancellationRequested;
+ public $modelName;
+ public $operationType;
+ public $startTime;
+ protected $versionType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version';
+ protected $versionDataType = '';
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setIsCancellationRequested($isCancellationRequested)
+ {
+ $this->isCancellationRequested = $isCancellationRequested;
+ }
+ public function getIsCancellationRequested()
+ {
+ return $this->isCancellationRequested;
+ }
+ public function setModelName($modelName)
+ {
+ $this->modelName = $modelName;
+ }
+ public function getModelName()
+ {
+ return $this->modelName;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setVersion(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version $version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ParameterSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ParameterSpec.php
new file mode 100644
index 00000000..d75f5915
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1ParameterSpec.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ParameterSpec extends Google_Collection
+{
+ protected $collection_key = 'discreteValues';
+ public $categoricalValues;
+ public $discreteValues;
+ public $maxValue;
+ public $minValue;
+ public $parameterName;
+ public $scaleType;
+ public $type;
+
+ public function setCategoricalValues($categoricalValues)
+ {
+ $this->categoricalValues = $categoricalValues;
+ }
+ public function getCategoricalValues()
+ {
+ return $this->categoricalValues;
+ }
+ public function setDiscreteValues($discreteValues)
+ {
+ $this->discreteValues = $discreteValues;
+ }
+ public function getDiscreteValues()
+ {
+ return $this->discreteValues;
+ }
+ public function setMaxValue($maxValue)
+ {
+ $this->maxValue = $maxValue;
+ }
+ public function getMaxValue()
+ {
+ return $this->maxValue;
+ }
+ public function setMinValue($minValue)
+ {
+ $this->minValue = $minValue;
+ }
+ public function getMinValue()
+ {
+ return $this->minValue;
+ }
+ public function setParameterName($parameterName)
+ {
+ $this->parameterName = $parameterName;
+ }
+ public function getParameterName()
+ {
+ return $this->parameterName;
+ }
+ public function setScaleType($scaleType)
+ {
+ $this->scaleType = $scaleType;
+ }
+ public function getScaleType()
+ {
+ return $this->scaleType;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictRequest.php
new file mode 100644
index 00000000..763b83a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictRequest extends Google_Model
+{
+ protected $httpBodyType = 'Google_Service_CloudMachineLearningEngine_GoogleApiHttpBody';
+ protected $httpBodyDataType = '';
+
+ public function setHttpBody(Google_Service_CloudMachineLearningEngine_GoogleApiHttpBody $httpBody)
+ {
+ $this->httpBody = $httpBody;
+ }
+ public function getHttpBody()
+ {
+ return $this->httpBody;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php
new file mode 100644
index 00000000..64b3b2a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionInput.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionInput extends Google_Collection
+{
+ protected $collection_key = 'inputPaths';
+ public $dataFormat;
+ public $inputPaths;
+ public $maxWorkerCount;
+ public $modelName;
+ public $outputPath;
+ public $region;
+ public $runtimeVersion;
+ public $uri;
+ public $versionName;
+
+ public function setDataFormat($dataFormat)
+ {
+ $this->dataFormat = $dataFormat;
+ }
+ public function getDataFormat()
+ {
+ return $this->dataFormat;
+ }
+ public function setInputPaths($inputPaths)
+ {
+ $this->inputPaths = $inputPaths;
+ }
+ public function getInputPaths()
+ {
+ return $this->inputPaths;
+ }
+ public function setMaxWorkerCount($maxWorkerCount)
+ {
+ $this->maxWorkerCount = $maxWorkerCount;
+ }
+ public function getMaxWorkerCount()
+ {
+ return $this->maxWorkerCount;
+ }
+ public function setModelName($modelName)
+ {
+ $this->modelName = $modelName;
+ }
+ public function getModelName()
+ {
+ return $this->modelName;
+ }
+ public function setOutputPath($outputPath)
+ {
+ $this->outputPath = $outputPath;
+ }
+ public function getOutputPath()
+ {
+ return $this->outputPath;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setRuntimeVersion($runtimeVersion)
+ {
+ $this->runtimeVersion = $runtimeVersion;
+ }
+ public function getRuntimeVersion()
+ {
+ return $this->runtimeVersion;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+ public function setVersionName($versionName)
+ {
+ $this->versionName = $versionName;
+ }
+ public function getVersionName()
+ {
+ return $this->versionName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionOutput.php
new file mode 100644
index 00000000..b3765585
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1PredictionOutput.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictionOutput extends Google_Model
+{
+ public $errorCount;
+ public $nodeHours;
+ public $outputPath;
+ public $predictionCount;
+
+ public function setErrorCount($errorCount)
+ {
+ $this->errorCount = $errorCount;
+ }
+ public function getErrorCount()
+ {
+ return $this->errorCount;
+ }
+ public function setNodeHours($nodeHours)
+ {
+ $this->nodeHours = $nodeHours;
+ }
+ public function getNodeHours()
+ {
+ return $this->nodeHours;
+ }
+ public function setOutputPath($outputPath)
+ {
+ $this->outputPath = $outputPath;
+ }
+ public function getOutputPath()
+ {
+ return $this->outputPath;
+ }
+ public function setPredictionCount($predictionCount)
+ {
+ $this->predictionCount = $predictionCount;
+ }
+ public function getPredictionCount()
+ {
+ return $this->predictionCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1SetDefaultVersionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1SetDefaultVersionRequest.php
new file mode 100644
index 00000000..cc51eec8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1SetDefaultVersionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SetDefaultVersionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php
new file mode 100644
index 00000000..7db3bf06
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingInput.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingInput extends Google_Collection
+{
+ protected $collection_key = 'packageUris';
+ public $args;
+ protected $hyperparametersType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpec';
+ protected $hyperparametersDataType = '';
+ public $jobDir;
+ public $masterType;
+ public $packageUris;
+ public $parameterServerCount;
+ public $parameterServerType;
+ public $pythonModule;
+ public $region;
+ public $runtimeVersion;
+ public $scaleTier;
+ public $workerCount;
+ public $workerType;
+
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setHyperparameters(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterSpec $hyperparameters)
+ {
+ $this->hyperparameters = $hyperparameters;
+ }
+ public function getHyperparameters()
+ {
+ return $this->hyperparameters;
+ }
+ public function setJobDir($jobDir)
+ {
+ $this->jobDir = $jobDir;
+ }
+ public function getJobDir()
+ {
+ return $this->jobDir;
+ }
+ public function setMasterType($masterType)
+ {
+ $this->masterType = $masterType;
+ }
+ public function getMasterType()
+ {
+ return $this->masterType;
+ }
+ public function setPackageUris($packageUris)
+ {
+ $this->packageUris = $packageUris;
+ }
+ public function getPackageUris()
+ {
+ return $this->packageUris;
+ }
+ public function setParameterServerCount($parameterServerCount)
+ {
+ $this->parameterServerCount = $parameterServerCount;
+ }
+ public function getParameterServerCount()
+ {
+ return $this->parameterServerCount;
+ }
+ public function setParameterServerType($parameterServerType)
+ {
+ $this->parameterServerType = $parameterServerType;
+ }
+ public function getParameterServerType()
+ {
+ return $this->parameterServerType;
+ }
+ public function setPythonModule($pythonModule)
+ {
+ $this->pythonModule = $pythonModule;
+ }
+ public function getPythonModule()
+ {
+ return $this->pythonModule;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setRuntimeVersion($runtimeVersion)
+ {
+ $this->runtimeVersion = $runtimeVersion;
+ }
+ public function getRuntimeVersion()
+ {
+ return $this->runtimeVersion;
+ }
+ public function setScaleTier($scaleTier)
+ {
+ $this->scaleTier = $scaleTier;
+ }
+ public function getScaleTier()
+ {
+ return $this->scaleTier;
+ }
+ public function setWorkerCount($workerCount)
+ {
+ $this->workerCount = $workerCount;
+ }
+ public function getWorkerCount()
+ {
+ return $this->workerCount;
+ }
+ public function setWorkerType($workerType)
+ {
+ $this->workerType = $workerType;
+ }
+ public function getWorkerType()
+ {
+ return $this->workerType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingOutput.php
new file mode 100644
index 00000000..1e67d343
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1TrainingOutput.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1TrainingOutput extends Google_Collection
+{
+ protected $collection_key = 'trials';
+ public $completedTrialCount;
+ public $consumedMLUnits;
+ public $isHyperparameterTuningJob;
+ protected $trialsType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1HyperparameterOutput';
+ protected $trialsDataType = 'array';
+
+ public function setCompletedTrialCount($completedTrialCount)
+ {
+ $this->completedTrialCount = $completedTrialCount;
+ }
+ public function getCompletedTrialCount()
+ {
+ return $this->completedTrialCount;
+ }
+ public function setConsumedMLUnits($consumedMLUnits)
+ {
+ $this->consumedMLUnits = $consumedMLUnits;
+ }
+ public function getConsumedMLUnits()
+ {
+ return $this->consumedMLUnits;
+ }
+ public function setIsHyperparameterTuningJob($isHyperparameterTuningJob)
+ {
+ $this->isHyperparameterTuningJob = $isHyperparameterTuningJob;
+ }
+ public function getIsHyperparameterTuningJob()
+ {
+ return $this->isHyperparameterTuningJob;
+ }
+ public function setTrials($trials)
+ {
+ $this->trials = $trials;
+ }
+ public function getTrials()
+ {
+ return $this->trials;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php
new file mode 100644
index 00000000..426b7cbe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1Version.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version extends Google_Model
+{
+ public $createTime;
+ public $deploymentUri;
+ public $description;
+ public $isDefault;
+ public $lastUseTime;
+ protected $manualScalingType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ManualScaling';
+ protected $manualScalingDataType = '';
+ public $name;
+ public $runtimeVersion;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setDeploymentUri($deploymentUri)
+ {
+ $this->deploymentUri = $deploymentUri;
+ }
+ public function getDeploymentUri()
+ {
+ return $this->deploymentUri;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIsDefault($isDefault)
+ {
+ $this->isDefault = $isDefault;
+ }
+ public function getIsDefault()
+ {
+ return $this->isDefault;
+ }
+ public function setLastUseTime($lastUseTime)
+ {
+ $this->lastUseTime = $lastUseTime;
+ }
+ public function getLastUseTime()
+ {
+ return $this->lastUseTime;
+ }
+ public function setManualScaling(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ManualScaling $manualScaling)
+ {
+ $this->manualScaling = $manualScaling;
+ }
+ public function getManualScaling()
+ {
+ return $this->manualScaling;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRuntimeVersion($runtimeVersion)
+ {
+ $this->runtimeVersion = $runtimeVersion;
+ }
+ public function getRuntimeVersion()
+ {
+ return $this->runtimeVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1ManualScaling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1ManualScaling.php
new file mode 100644
index 00000000..5d0677a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1ManualScaling.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1beta1ManualScaling extends Google_Model
+{
+ public $nodes;
+
+ public function setNodes($nodes)
+ {
+ $this->nodes = $nodes;
+ }
+ public function getNodes()
+ {
+ return $this->nodes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1OperationMetadata.php
new file mode 100644
index 00000000..8b5c5254
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1OperationMetadata.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1beta1OperationMetadata extends Google_Model
+{
+ public $createTime;
+ public $endTime;
+ public $isCancellationRequested;
+ public $modelName;
+ public $operationType;
+ public $startTime;
+ protected $versionType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1beta1Version';
+ protected $versionDataType = '';
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setIsCancellationRequested($isCancellationRequested)
+ {
+ $this->isCancellationRequested = $isCancellationRequested;
+ }
+ public function getIsCancellationRequested()
+ {
+ return $this->isCancellationRequested;
+ }
+ public function setModelName($modelName)
+ {
+ $this->modelName = $modelName;
+ }
+ public function getModelName()
+ {
+ return $this->modelName;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setVersion(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1beta1Version $version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1Version.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1Version.php
new file mode 100644
index 00000000..642dff3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleCloudMlV1beta1Version.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1beta1Version extends Google_Model
+{
+ public $createTime;
+ public $deploymentUri;
+ public $description;
+ public $isDefault;
+ public $lastUseTime;
+ protected $manualScalingType = 'Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1beta1ManualScaling';
+ protected $manualScalingDataType = '';
+ public $name;
+ public $runtimeVersion;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setDeploymentUri($deploymentUri)
+ {
+ $this->deploymentUri = $deploymentUri;
+ }
+ public function getDeploymentUri()
+ {
+ return $this->deploymentUri;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIsDefault($isDefault)
+ {
+ $this->isDefault = $isDefault;
+ }
+ public function getIsDefault()
+ {
+ return $this->isDefault;
+ }
+ public function setLastUseTime($lastUseTime)
+ {
+ $this->lastUseTime = $lastUseTime;
+ }
+ public function getLastUseTime()
+ {
+ return $this->lastUseTime;
+ }
+ public function setManualScaling(Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1beta1ManualScaling $manualScaling)
+ {
+ $this->manualScaling = $manualScaling;
+ }
+ public function getManualScaling()
+ {
+ return $this->manualScaling;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRuntimeVersion($runtimeVersion)
+ {
+ $this->runtimeVersion = $runtimeVersion;
+ }
+ public function getRuntimeVersion()
+ {
+ return $this->runtimeVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningListOperationsResponse.php
new file mode 100644
index 00000000..9ee43c8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleLongrunningListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningOperation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningOperation.php
new file mode 100644
index 00000000..8438a2ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleLongrunningOperation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_CloudMachineLearningEngine_GoogleRpcStatus';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudMachineLearningEngine_GoogleRpcStatus $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleProtobufEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleProtobufEmpty.php
new file mode 100644
index 00000000..cb33b8d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleProtobufEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleRpcStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleRpcStatus.php
new file mode 100644
index 00000000..47f8020e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/GoogleRpcStatus.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMachineLearningEngine_GoogleRpcStatus extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/Projects.php
new file mode 100644
index 00000000..fbda629d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/Projects.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearningEngine(...);
+ * $projects = $mlService->projects;
+ * </code>
+ */
+class Google_Service_CloudMachineLearningEngine_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Get the service account information associated with your project. You need
+ * this information in order to grant the service account persmissions for the
+ * Google Cloud Storage location where you put your model training code for
+ * training the model with Google Cloud Machine Learning. (projects.getConfig)
+ *
+ * @param string $name Required. The project name.
+ *
+ * Authorization: requires `Viewer` role on the specified project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1GetConfigResponse
+ */
+ public function getConfig($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('getConfig', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1GetConfigResponse");
+ }
+ /**
+ * Performs prediction on the data in the request.
+ *
+ * **** REMOVE FROM GENERATED DOCUMENTATION (projects.predict)
+ *
+ * @param string $name Required. The resource name of a model or a version.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleApiHttpBody
+ */
+ public function predict($name, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1PredictRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('predict', array($params), "Google_Service_CloudMachineLearningEngine_GoogleApiHttpBody");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php
new file mode 100644
index 00000000..ced6a517
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsJobs.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearningEngine(...);
+ * $jobs = $mlService->jobs;
+ * </code>
+ */
+class Google_Service_CloudMachineLearningEngine_Resource_ProjectsJobs extends Google_Service_Resource
+{
+ /**
+ * Cancels a running job. (jobs.cancel)
+ *
+ * @param string $name Required. The name of the job to cancel.
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CancelJobRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty
+ */
+ public function cancel($name, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1CancelJobRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty");
+ }
+ /**
+ * Creates a training or a batch prediction job. (jobs.create)
+ *
+ * @param string $parent Required. The project name.
+ *
+ * Authorization: requires `Editor` role on the specified project.
+ * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job
+ */
+ public function create($parent, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job");
+ }
+ /**
+ * Describes a job. (jobs.get)
+ *
+ * @param string $name Required. The name of the job to get the description of.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Job");
+ }
+ /**
+ * Lists the jobs in the project. (jobs.listProjectsJobs)
+ *
+ * @param string $parent Required. The name of the project for which to list
+ * jobs.
+ *
+ * Authorization: requires `Viewer` role on the specified project.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Specifies the subset of jobs to retrieve.
+ * @opt_param string pageToken Optional. A page token to request the next page
+ * of results.
+ *
+ * You get the token from the `next_page_token` field of the response from the
+ * previous call.
+ * @opt_param int pageSize Optional. The number of jobs to retrieve per "page"
+ * of results. If there are more remaining results than this number, the
+ * response message will contain a valid value in the `next_page_token` field.
+ *
+ * The default value is 20, and the maximum page size is 100.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListJobsResponse
+ */
+ public function listProjectsJobs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListJobsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php
new file mode 100644
index 00000000..96a165c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModels.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "models" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearningEngine(...);
+ * $models = $mlService->models;
+ * </code>
+ */
+class Google_Service_CloudMachineLearningEngine_Resource_ProjectsModels extends Google_Service_Resource
+{
+ /**
+ * Creates a model which will later contain one or more versions.
+ *
+ * You must add at least one version before you can request predictions from the
+ * model. Add versions by calling [projects.models.versions.create](/ml/referenc
+ * e/rest/v1/projects.models.versions/create). (models.create)
+ *
+ * @param string $parent Required. The project name.
+ *
+ * Authorization: requires `Editor` role on the specified project.
+ * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model
+ */
+ public function create($parent, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model");
+ }
+ /**
+ * Deletes a model.
+ *
+ * You can only delete a model if there are no versions in it. You can delete
+ * versions by calling [projects.models.versions.delete](/ml/reference/rest/v1/p
+ * rojects.models.versions/delete). (models.delete)
+ *
+ * @param string $name Required. The name of the model.
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation");
+ }
+ /**
+ * Gets information about a model, including its name, the description (if set),
+ * and the default version (if at least one version of the model has been
+ * deployed). (models.get)
+ *
+ * @param string $name Required. The name of the model.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Model");
+ }
+ /**
+ * Lists the models in a project.
+ *
+ * Each project can contain multiple models, and each model can have multiple
+ * versions. (models.listProjectsModels)
+ *
+ * @param string $parent Required. The name of the project whose models are to
+ * be listed.
+ *
+ * Authorization: requires `Viewer` role on the specified project.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. A page token to request the next page
+ * of results.
+ *
+ * You get the token from the `next_page_token` field of the response from the
+ * previous call.
+ * @opt_param int pageSize Optional. The number of models to retrieve per "page"
+ * of results. If there are more remaining results than this number, the
+ * response message will contain a valid value in the `next_page_token` field.
+ *
+ * The default value is 20, and the maximum page size is 100.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListModelsResponse
+ */
+ public function listProjectsModels($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListModelsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php
new file mode 100644
index 00000000..030482b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsModelsVersions.php
@@ -0,0 +1,152 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "versions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearningEngine(...);
+ * $versions = $mlService->versions;
+ * </code>
+ */
+class Google_Service_CloudMachineLearningEngine_Resource_ProjectsModelsVersions extends Google_Service_Resource
+{
+ /**
+ * Creates a new version of a model from a trained TensorFlow model.
+ *
+ * If the version created in the cloud by this call is the first deployed
+ * version of the specified model, it will be made the default version of the
+ * model. When you add a version to a model that already has one or more
+ * versions, the default version does not automatically change. If you want a
+ * new version to be the default, you must call [projects.models.versions.setDef
+ * ault](/ml/reference/rest/v1/projects.models.versions/setDefault).
+ * (versions.create)
+ *
+ * @param string $parent Required. The name of the model.
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation
+ */
+ public function create($parent, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation");
+ }
+ /**
+ * Deletes a model version.
+ *
+ * Each model can have multiple versions deployed and in use at any given time.
+ * Use this method to remove a single version.
+ *
+ * Note: You cannot delete the version that is set as the default version of the
+ * model unless it is the only remaining version. (versions.delete)
+ *
+ * @param string $name Required. The name of the version. You can get the names
+ * of all the versions of a model by calling [projects.models.versions.list](/ml
+ * /reference/rest/v1/projects.models.versions/list).
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation");
+ }
+ /**
+ * Gets information about a model version.
+ *
+ * Models can have multiple versions. You can call [projects.models.versions.lis
+ * t](/ml/reference/rest/v1/projects.models.versions/list) to get the same
+ * information that this method returns for all of the versions of a model.
+ * (versions.get)
+ *
+ * @param string $name Required. The name of the version.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version");
+ }
+ /**
+ * Gets basic information about all the versions of a model.
+ *
+ * If you expect that a model has a lot of versions, or if you need to handle
+ * only a limited number of results at a time, you can request that the list be
+ * retrieved in batches (called pages): (versions.listProjectsModelsVersions)
+ *
+ * @param string $parent Required. The name of the model for which to list the
+ * version.
+ *
+ * Authorization: requires `Viewer` role on the parent project.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. A page token to request the next page
+ * of results.
+ *
+ * You get the token from the `next_page_token` field of the response from the
+ * previous call.
+ * @opt_param int pageSize Optional. The number of versions to retrieve per
+ * "page" of results. If there are more remaining results than this number, the
+ * response message will contain a valid value in the `next_page_token` field.
+ *
+ * The default value is 20, and the maximum page size is 100.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListVersionsResponse
+ */
+ public function listProjectsModelsVersions($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1ListVersionsResponse");
+ }
+ /**
+ * Designates a version to be the default for the model.
+ *
+ * The default version is used for prediction requests made against the model
+ * that don't specify a version.
+ *
+ * The first version to be created for a model is automatically set as the
+ * default. You must make any subsequent changes to the default version setting
+ * manually using this method. (versions.setDefault)
+ *
+ * @param string $name Required. The name of the version to make the default for
+ * the model. You can get the names of all the versions of a model by calling [p
+ * rojects.models.versions.list](/ml/reference/rest/v1/projects.models.versions/
+ * list).
+ *
+ * Authorization: requires `Editor` role on the parent project.
+ * @param Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SetDefaultVersionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version
+ */
+ public function setDefault($name, Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1SetDefaultVersionRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setDefault', array($params), "Google_Service_CloudMachineLearningEngine_GoogleCloudMlV1Version");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php
new file mode 100644
index 00000000..d2a577c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMachineLearningEngine/Resource/ProjectsOperations.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mlService = new Google_Service_CloudMachineLearningEngine(...);
+ * $operations = $mlService->operations;
+ * </code>
+ */
+class Google_Service_CloudMachineLearningEngine_Resource_ProjectsOperations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty
+ */
+ public function cancel($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudMachineLearningEngine_GoogleProtobufEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudMachineLearningEngine_GoogleLongrunningOperation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listProjectsOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string filter The standard list filter.
+ * @return Google_Service_CloudMachineLearningEngine_GoogleLongrunningListOperationsResponse
+ */
+ public function listProjectsOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMachineLearningEngine_GoogleLongrunningListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring.php
new file mode 100644
index 00000000..2e1560a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring.php
@@ -0,0 +1,243 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudMonitoring (v2beta2).
+ *
+ * <p>
+ * Accesses Google Cloud Monitoring data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/monitoring/v2beta2/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudMonitoring extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */
+ const MONITORING =
+ "https://www.googleapis.com/auth/monitoring";
+
+ public $metricDescriptors;
+ public $timeseries;
+ public $timeseriesDescriptors;
+
+ /**
+ * Constructs the internal representation of the CloudMonitoring service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'cloudmonitoring/v2beta2/projects/';
+ $this->version = 'v2beta2';
+ $this->serviceName = 'cloudmonitoring';
+
+ $this->metricDescriptors = new Google_Service_CloudMonitoring_Resource_MetricDescriptors(
+ $this,
+ $this->serviceName,
+ 'metricDescriptors',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{project}/metricDescriptors',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/metricDescriptors/{metric}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'metric' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/metricDescriptors',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'count' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->timeseries = new Google_Service_CloudMonitoring_Resource_Timeseries(
+ $this,
+ $this->serviceName,
+ 'timeseries',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{project}/timeseries/{metric}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'metric' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'youngest' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'aggregator' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'count' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'labels' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'oldest' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timespan' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'window' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'write' => array(
+ 'path' => '{project}/timeseries:write',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->timeseriesDescriptors = new Google_Service_CloudMonitoring_Resource_TimeseriesDescriptors(
+ $this,
+ $this->serviceName,
+ 'timeseriesDescriptors',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{project}/timeseriesDescriptors/{metric}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'metric' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'youngest' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'aggregator' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'count' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'labels' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'oldest' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timespan' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'window' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/DeleteMetricDescriptorResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/DeleteMetricDescriptorResponse.php
new file mode 100644
index 00000000..4a7c777f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/DeleteMetricDescriptorResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsRequest.php
new file mode 100644
index 00000000..660d96a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsResponse.php
new file mode 100644
index 00000000..0265b2ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListMetricDescriptorsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ public $kind;
+ protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor';
+ protected $metricsDataType = 'array';
+ public $nextPageToken;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsRequest.php
new file mode 100644
index 00000000..df36f657
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsResponse.php
new file mode 100644
index 00000000..3a7c26a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesDescriptorsResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection
+{
+ protected $collection_key = 'timeseries';
+ public $kind;
+ public $nextPageToken;
+ public $oldest;
+ protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor';
+ protected $timeseriesDataType = 'array';
+ public $youngest;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOldest($oldest)
+ {
+ $this->oldest = $oldest;
+ }
+ public function getOldest()
+ {
+ return $this->oldest;
+ }
+ public function setTimeseries($timeseries)
+ {
+ $this->timeseries = $timeseries;
+ }
+ public function getTimeseries()
+ {
+ return $this->timeseries;
+ }
+ public function setYoungest($youngest)
+ {
+ $this->youngest = $youngest;
+ }
+ public function getYoungest()
+ {
+ return $this->youngest;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesRequest.php
new file mode 100644
index 00000000..1d6db5a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesResponse.php
new file mode 100644
index 00000000..ad11b4d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/ListTimeseriesResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection
+{
+ protected $collection_key = 'timeseries';
+ public $kind;
+ public $nextPageToken;
+ public $oldest;
+ protected $timeseriesType = 'Google_Service_CloudMonitoring_Timeseries';
+ protected $timeseriesDataType = 'array';
+ public $youngest;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOldest($oldest)
+ {
+ $this->oldest = $oldest;
+ }
+ public function getOldest()
+ {
+ return $this->oldest;
+ }
+ public function setTimeseries($timeseries)
+ {
+ $this->timeseries = $timeseries;
+ }
+ public function getTimeseries()
+ {
+ return $this->timeseries;
+ }
+ public function setYoungest($youngest)
+ {
+ $this->youngest = $youngest;
+ }
+ public function getYoungest()
+ {
+ return $this->youngest;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptor.php
new file mode 100644
index 00000000..b4d47467
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptor.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $name;
+ public $project;
+ protected $typeDescriptorType = 'Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor';
+ protected $typeDescriptorDataType = '';
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+ public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor $typeDescriptor)
+ {
+ $this->typeDescriptor = $typeDescriptor;
+ }
+ public function getTypeDescriptor()
+ {
+ return $this->typeDescriptor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorLabelDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorLabelDescriptor.php
new file mode 100644
index 00000000..a480cc32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorLabelDescriptor.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model
+{
+ public $description;
+ public $key;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorTypeDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorTypeDescriptor.php
new file mode 100644
index 00000000..54fffce5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/MetricDescriptorTypeDescriptor.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model
+{
+ public $metricType;
+ public $valueType;
+
+ public function setMetricType($metricType)
+ {
+ $this->metricType = $metricType;
+ }
+ public function getMetricType()
+ {
+ return $this->metricType;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Point.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Point.php
new file mode 100644
index 00000000..28eb9305
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Point.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_Point extends Google_Model
+{
+ public $boolValue;
+ protected $distributionValueType = 'Google_Service_CloudMonitoring_PointDistribution';
+ protected $distributionValueDataType = '';
+ public $doubleValue;
+ public $end;
+ public $int64Value;
+ public $start;
+ public $stringValue;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setDistributionValue(Google_Service_CloudMonitoring_PointDistribution $distributionValue)
+ {
+ $this->distributionValue = $distributionValue;
+ }
+ public function getDistributionValue()
+ {
+ return $this->distributionValue;
+ }
+ public function setDoubleValue($doubleValue)
+ {
+ $this->doubleValue = $doubleValue;
+ }
+ public function getDoubleValue()
+ {
+ return $this->doubleValue;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setInt64Value($int64Value)
+ {
+ $this->int64Value = $int64Value;
+ }
+ public function getInt64Value()
+ {
+ return $this->int64Value;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistribution.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistribution.php
new file mode 100644
index 00000000..7138dab0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistribution.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection
+{
+ protected $collection_key = 'buckets';
+ protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket';
+ protected $bucketsDataType = 'array';
+ protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket';
+ protected $overflowBucketDataType = '';
+ protected $underflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionUnderflowBucket';
+ protected $underflowBucketDataType = '';
+
+ public function setBuckets($buckets)
+ {
+ $this->buckets = $buckets;
+ }
+ public function getBuckets()
+ {
+ return $this->buckets;
+ }
+ public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributionOverflowBucket $overflowBucket)
+ {
+ $this->overflowBucket = $overflowBucket;
+ }
+ public function getOverflowBucket()
+ {
+ return $this->overflowBucket;
+ }
+ public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistributionUnderflowBucket $underflowBucket)
+ {
+ $this->underflowBucket = $underflowBucket;
+ }
+ public function getUnderflowBucket()
+ {
+ return $this->underflowBucket;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionBucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionBucket.php
new file mode 100644
index 00000000..540148e3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionBucket.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model
+{
+ public $count;
+ public $lowerBound;
+ public $upperBound;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setLowerBound($lowerBound)
+ {
+ $this->lowerBound = $lowerBound;
+ }
+ public function getLowerBound()
+ {
+ return $this->lowerBound;
+ }
+ public function setUpperBound($upperBound)
+ {
+ $this->upperBound = $upperBound;
+ }
+ public function getUpperBound()
+ {
+ return $this->upperBound;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionOverflowBucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionOverflowBucket.php
new file mode 100644
index 00000000..ec933786
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionOverflowBucket.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model
+{
+ public $count;
+ public $lowerBound;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setLowerBound($lowerBound)
+ {
+ $this->lowerBound = $lowerBound;
+ }
+ public function getLowerBound()
+ {
+ return $this->lowerBound;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionUnderflowBucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionUnderflowBucket.php
new file mode 100644
index 00000000..dab82c7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/PointDistributionUnderflowBucket.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model
+{
+ public $count;
+ public $upperBound;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setUpperBound($upperBound)
+ {
+ $this->upperBound = $upperBound;
+ }
+ public function getUpperBound()
+ {
+ return $this->upperBound;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/MetricDescriptors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/MetricDescriptors.php
new file mode 100644
index 00000000..f4088a47
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/MetricDescriptors.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metricDescriptors" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudmonitoringService = new Google_Service_CloudMonitoring(...);
+ * $metricDescriptors = $cloudmonitoringService->metricDescriptors;
+ * </code>
+ */
+class Google_Service_CloudMonitoring_Resource_MetricDescriptors extends Google_Service_Resource
+{
+ /**
+ * Create a new metric. (metricDescriptors.create)
+ *
+ * @param string $project The project id. The value can be the numeric project
+ * ID or string-based project name.
+ * @param Google_Service_CloudMonitoring_MetricDescriptor $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMonitoring_MetricDescriptor
+ */
+ public function create($project, Google_Service_CloudMonitoring_MetricDescriptor $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudMonitoring_MetricDescriptor");
+ }
+ /**
+ * Delete an existing metric. (metricDescriptors.delete)
+ *
+ * @param string $project The project ID to which the metric belongs.
+ * @param string $metric Name of the metric.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse
+ */
+ public function delete($project, $metric, $optParams = array())
+ {
+ $params = array('project' => $project, 'metric' => $metric);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse");
+ }
+ /**
+ * List metric descriptors that match the query. If the query is not set, then
+ * all of the metric descriptors will be returned. Large responses will be
+ * paginated, use the nextPageToken returned in the response to request
+ * subsequent pages of results by setting the pageToken query parameter to the
+ * value of the nextPageToken. (metricDescriptors.listMetricDescriptors)
+ *
+ * @param string $project The project id. The value can be the numeric project
+ * ID or string-based project name.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int count Maximum number of metric descriptors per page. Used for
+ * pagination. If not specified, count = 100.
+ * @opt_param string pageToken The pagination token, which is used to page
+ * through large result sets. Set this value to the value of the nextPageToken
+ * to retrieve the next page of results.
+ * @opt_param string query The query used to search against existing metrics.
+ * Separate keywords with a space; the service joins all keywords with AND,
+ * meaning that all keywords must match for a metric to be returned. If this
+ * field is omitted, all metrics are returned. If an empty string is passed with
+ * this field, no metrics are returned.
+ * @return Google_Service_CloudMonitoring_ListMetricDescriptorsResponse
+ */
+ public function listMetricDescriptors($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListMetricDescriptorsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/Timeseries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/Timeseries.php
new file mode 100644
index 00000000..4a647349
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/Timeseries.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "timeseries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudmonitoringService = new Google_Service_CloudMonitoring(...);
+ * $timeseries = $cloudmonitoringService->timeseries;
+ * </code>
+ */
+class Google_Service_CloudMonitoring_Resource_Timeseries extends Google_Service_Resource
+{
+ /**
+ * List the data points of the time series that match the metric and labels
+ * values and that have data points in the interval. Large responses are
+ * paginated; use the nextPageToken returned in the response to request
+ * subsequent pages of results by setting the pageToken query parameter to the
+ * value of the nextPageToken. (timeseries.listTimeseries)
+ *
+ * @param string $project The project ID to which this time series belongs. The
+ * value can be the numeric project ID or string-based project name.
+ * @param string $metric Metric names are protocol-free URLs as listed in the
+ * Supported Metrics page. For example,
+ * compute.googleapis.com/instance/disk/read_ops_count.
+ * @param string $youngest End of the time interval (inclusive), which is
+ * expressed as an RFC 3339 timestamp.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string aggregator The aggregation function that will reduce the
+ * data points in each window to a single point. This parameter is only valid
+ * for non-cumulative metrics with a value type of INT64 or DOUBLE.
+ * @opt_param int count Maximum number of data points per page, which is used
+ * for pagination of results.
+ * @opt_param string labels A collection of labels for the matching time series,
+ * which are represented as: - key==value: key equals the value - key=~value:
+ * key regex matches the value - key!=value: key does not equal the value -
+ * key!~value: key regex does not match the value For example, to list all of
+ * the time series descriptors for the region us-central1, you could specify:
+ * label=cloud.googleapis.com%2Flocation=~us-central1.*
+ * @opt_param string oldest Start of the time interval (exclusive), which is
+ * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is
+ * specified, the default time interval will be (youngest - 4 hours, youngest]
+ * @opt_param string pageToken The pagination token, which is used to page
+ * through large result sets. Set this value to the value of the nextPageToken
+ * to retrieve the next page of results.
+ * @opt_param string timespan Length of the time interval to query, which is an
+ * alternative way to declare the interval: (youngest - timespan, youngest]. The
+ * timespan and oldest parameters should not be used together. Units: - s:
+ * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w.
+ * Only one unit is allowed, for example: 2w3d is not allowed; you should use
+ * 17d instead.
+ *
+ * If neither oldest nor timespan is specified, the default time interval will
+ * be (youngest - 4 hours, youngest].
+ * @opt_param string window The sampling window. At most one data point will be
+ * returned for each window in the requested time interval. This parameter is
+ * only valid for non-cumulative metric types. Units: - m: minute - h: hour -
+ * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example:
+ * 2w3d is not allowed; you should use 17d instead.
+ * @return Google_Service_CloudMonitoring_ListTimeseriesResponse
+ */
+ public function listTimeseries($project, $metric, $youngest, $optParams = array())
+ {
+ $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse");
+ }
+ /**
+ * Put data points to one or more time series for one or more metrics. If a time
+ * series does not exist, a new time series will be created. It is not allowed
+ * to write a time series point that is older than the existing youngest point
+ * of that time series. Points that are older than the existing youngest point
+ * of that time series will be discarded silently. Therefore, users should make
+ * sure that points of a time series are written sequentially in the order of
+ * their end time. (timeseries.write)
+ *
+ * @param string $project The project ID. The value can be the numeric project
+ * ID or string-based project name.
+ * @param Google_Service_CloudMonitoring_WriteTimeseriesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudMonitoring_WriteTimeseriesResponse
+ */
+ public function write($project, Google_Service_CloudMonitoring_WriteTimeseriesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('write', array($params), "Google_Service_CloudMonitoring_WriteTimeseriesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/TimeseriesDescriptors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/TimeseriesDescriptors.php
new file mode 100644
index 00000000..ff24d0a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Resource/TimeseriesDescriptors.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "timeseriesDescriptors" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudmonitoringService = new Google_Service_CloudMonitoring(...);
+ * $timeseriesDescriptors = $cloudmonitoringService->timeseriesDescriptors;
+ * </code>
+ */
+class Google_Service_CloudMonitoring_Resource_TimeseriesDescriptors extends Google_Service_Resource
+{
+ /**
+ * List the descriptors of the time series that match the metric and labels
+ * values and that have data points in the interval. Large responses are
+ * paginated; use the nextPageToken returned in the response to request
+ * subsequent pages of results by setting the pageToken query parameter to the
+ * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors)
+ *
+ * @param string $project The project ID to which this time series belongs. The
+ * value can be the numeric project ID or string-based project name.
+ * @param string $metric Metric names are protocol-free URLs as listed in the
+ * Supported Metrics page. For example,
+ * compute.googleapis.com/instance/disk/read_ops_count.
+ * @param string $youngest End of the time interval (inclusive), which is
+ * expressed as an RFC 3339 timestamp.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string aggregator The aggregation function that will reduce the
+ * data points in each window to a single point. This parameter is only valid
+ * for non-cumulative metrics with a value type of INT64 or DOUBLE.
+ * @opt_param int count Maximum number of time series descriptors per page. Used
+ * for pagination. If not specified, count = 100.
+ * @opt_param string labels A collection of labels for the matching time series,
+ * which are represented as: - key==value: key equals the value - key=~value:
+ * key regex matches the value - key!=value: key does not equal the value -
+ * key!~value: key regex does not match the value For example, to list all of
+ * the time series descriptors for the region us-central1, you could specify:
+ * label=cloud.googleapis.com%2Flocation=~us-central1.*
+ * @opt_param string oldest Start of the time interval (exclusive), which is
+ * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is
+ * specified, the default time interval will be (youngest - 4 hours, youngest]
+ * @opt_param string pageToken The pagination token, which is used to page
+ * through large result sets. Set this value to the value of the nextPageToken
+ * to retrieve the next page of results.
+ * @opt_param string timespan Length of the time interval to query, which is an
+ * alternative way to declare the interval: (youngest - timespan, youngest]. The
+ * timespan and oldest parameters should not be used together. Units: - s:
+ * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w.
+ * Only one unit is allowed, for example: 2w3d is not allowed; you should use
+ * 17d instead.
+ *
+ * If neither oldest nor timespan is specified, the default time interval will
+ * be (youngest - 4 hours, youngest].
+ * @opt_param string window The sampling window. At most one data point will be
+ * returned for each window in the requested time interval. This parameter is
+ * only valid for non-cumulative metric types. Units: - m: minute - h: hour -
+ * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example:
+ * 2w3d is not allowed; you should use 17d instead.
+ * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse
+ */
+ public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array())
+ {
+ $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Timeseries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Timeseries.php
new file mode 100644
index 00000000..ed77beb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/Timeseries.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_Timeseries extends Google_Collection
+{
+ protected $collection_key = 'points';
+ protected $pointsType = 'Google_Service_CloudMonitoring_Point';
+ protected $pointsDataType = 'array';
+ protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor';
+ protected $timeseriesDescDataType = '';
+
+ public function setPoints($points)
+ {
+ $this->points = $points;
+ }
+ public function getPoints()
+ {
+ return $this->points;
+ }
+ public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc)
+ {
+ $this->timeseriesDesc = $timeseriesDesc;
+ }
+ public function getTimeseriesDesc()
+ {
+ return $this->timeseriesDesc;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptor.php
new file mode 100644
index 00000000..b7de3d5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptor.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model
+{
+ public $labels;
+ public $metric;
+ public $project;
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptorLabel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptorLabel.php
new file mode 100644
index 00000000..2c46fc25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesDescriptorLabel.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesPoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesPoint.php
new file mode 100644
index 00000000..b447a427
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/TimeseriesPoint.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_TimeseriesPoint extends Google_Model
+{
+ protected $pointType = 'Google_Service_CloudMonitoring_Point';
+ protected $pointDataType = '';
+ protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor';
+ protected $timeseriesDescDataType = '';
+
+ public function setPoint(Google_Service_CloudMonitoring_Point $point)
+ {
+ $this->point = $point;
+ }
+ public function getPoint()
+ {
+ return $this->point;
+ }
+ public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc)
+ {
+ $this->timeseriesDesc = $timeseriesDesc;
+ }
+ public function getTimeseriesDesc()
+ {
+ return $this->timeseriesDesc;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesRequest.php
new file mode 100644
index 00000000..18951de9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_WriteTimeseriesRequest extends Google_Collection
+{
+ protected $collection_key = 'timeseries';
+ public $commonLabels;
+ protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesPoint';
+ protected $timeseriesDataType = 'array';
+
+ public function setCommonLabels($commonLabels)
+ {
+ $this->commonLabels = $commonLabels;
+ }
+ public function getCommonLabels()
+ {
+ return $this->commonLabels;
+ }
+ public function setTimeseries($timeseries)
+ {
+ $this->timeseries = $timeseries;
+ }
+ public function getTimeseries()
+ {
+ return $this->timeseries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesResponse.php
new file mode 100644
index 00000000..4d24fd34
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudMonitoring/WriteTimeseriesResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudMonitoring_WriteTimeseriesResponse extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php
new file mode 100644
index 00000000..ac55a21b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudNaturalLanguage (v1).
+ *
+ * <p>
+ * Google Cloud Natural Language API provides natural language understanding
+ * technologies to developers. Examples include sentiment analysis, entity
+ * recognition, and text annotations.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/natural-language/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudNaturalLanguage extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $documents;
+
+ /**
+ * Constructs the internal representation of the CloudNaturalLanguage service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://language.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'language';
+
+ $this->documents = new Google_Service_CloudNaturalLanguage_Resource_Documents(
+ $this,
+ $this->serviceName,
+ 'documents',
+ array(
+ 'methods' => array(
+ 'analyzeEntities' => array(
+ 'path' => 'v1/documents:analyzeEntities',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'analyzeSentiment' => array(
+ 'path' => 'v1/documents:analyzeSentiment',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'analyzeSyntax' => array(
+ 'path' => 'v1/documents:analyzeSyntax',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'annotateText' => array(
+ 'path' => 'v1/documents:annotateText',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesRequest.php
new file mode 100644
index 00000000..6317ea54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnalyzeEntitiesRequest extends Google_Model
+{
+ protected $documentType = 'Google_Service_CloudNaturalLanguage_Document';
+ protected $documentDataType = '';
+ public $encodingType;
+
+ public function setDocument(Google_Service_CloudNaturalLanguage_Document $document)
+ {
+ $this->document = $document;
+ }
+ public function getDocument()
+ {
+ return $this->document;
+ }
+ public function setEncodingType($encodingType)
+ {
+ $this->encodingType = $encodingType;
+ }
+ public function getEncodingType()
+ {
+ return $this->encodingType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesResponse.php
new file mode 100644
index 00000000..376f1db0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeEntitiesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnalyzeEntitiesResponse extends Google_Collection
+{
+ protected $collection_key = 'entities';
+ protected $entitiesType = 'Google_Service_CloudNaturalLanguage_Entity';
+ protected $entitiesDataType = 'array';
+ public $language;
+
+ public function setEntities($entities)
+ {
+ $this->entities = $entities;
+ }
+ public function getEntities()
+ {
+ return $this->entities;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentRequest.php
new file mode 100644
index 00000000..3496cda1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnalyzeSentimentRequest extends Google_Model
+{
+ protected $documentType = 'Google_Service_CloudNaturalLanguage_Document';
+ protected $documentDataType = '';
+ public $encodingType;
+
+ public function setDocument(Google_Service_CloudNaturalLanguage_Document $document)
+ {
+ $this->document = $document;
+ }
+ public function getDocument()
+ {
+ return $this->document;
+ }
+ public function setEncodingType($encodingType)
+ {
+ $this->encodingType = $encodingType;
+ }
+ public function getEncodingType()
+ {
+ return $this->encodingType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentResponse.php
new file mode 100644
index 00000000..b2b4cb09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSentimentResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnalyzeSentimentResponse extends Google_Collection
+{
+ protected $collection_key = 'sentences';
+ protected $documentSentimentType = 'Google_Service_CloudNaturalLanguage_Sentiment';
+ protected $documentSentimentDataType = '';
+ public $language;
+ protected $sentencesType = 'Google_Service_CloudNaturalLanguage_Sentence';
+ protected $sentencesDataType = 'array';
+
+ public function setDocumentSentiment(Google_Service_CloudNaturalLanguage_Sentiment $documentSentiment)
+ {
+ $this->documentSentiment = $documentSentiment;
+ }
+ public function getDocumentSentiment()
+ {
+ return $this->documentSentiment;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setSentences($sentences)
+ {
+ $this->sentences = $sentences;
+ }
+ public function getSentences()
+ {
+ return $this->sentences;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxRequest.php
new file mode 100644
index 00000000..ca5a040f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnalyzeSyntaxRequest extends Google_Model
+{
+ protected $documentType = 'Google_Service_CloudNaturalLanguage_Document';
+ protected $documentDataType = '';
+ public $encodingType;
+
+ public function setDocument(Google_Service_CloudNaturalLanguage_Document $document)
+ {
+ $this->document = $document;
+ }
+ public function getDocument()
+ {
+ return $this->document;
+ }
+ public function setEncodingType($encodingType)
+ {
+ $this->encodingType = $encodingType;
+ }
+ public function getEncodingType()
+ {
+ return $this->encodingType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxResponse.php
new file mode 100644
index 00000000..d11d2afd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnalyzeSyntaxResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnalyzeSyntaxResponse extends Google_Collection
+{
+ protected $collection_key = 'tokens';
+ public $language;
+ protected $sentencesType = 'Google_Service_CloudNaturalLanguage_Sentence';
+ protected $sentencesDataType = 'array';
+ protected $tokensType = 'Google_Service_CloudNaturalLanguage_Token';
+ protected $tokensDataType = 'array';
+
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setSentences($sentences)
+ {
+ $this->sentences = $sentences;
+ }
+ public function getSentences()
+ {
+ return $this->sentences;
+ }
+ public function setTokens($tokens)
+ {
+ $this->tokens = $tokens;
+ }
+ public function getTokens()
+ {
+ return $this->tokens;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextRequest.php
new file mode 100644
index 00000000..eb19a0cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnnotateTextRequest extends Google_Model
+{
+ protected $documentType = 'Google_Service_CloudNaturalLanguage_Document';
+ protected $documentDataType = '';
+ public $encodingType;
+ protected $featuresType = 'Google_Service_CloudNaturalLanguage_Features';
+ protected $featuresDataType = '';
+
+ public function setDocument(Google_Service_CloudNaturalLanguage_Document $document)
+ {
+ $this->document = $document;
+ }
+ public function getDocument()
+ {
+ return $this->document;
+ }
+ public function setEncodingType($encodingType)
+ {
+ $this->encodingType = $encodingType;
+ }
+ public function getEncodingType()
+ {
+ return $this->encodingType;
+ }
+ public function setFeatures(Google_Service_CloudNaturalLanguage_Features $features)
+ {
+ $this->features = $features;
+ }
+ public function getFeatures()
+ {
+ return $this->features;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextResponse.php
new file mode 100644
index 00000000..cc64170f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/AnnotateTextResponse.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_AnnotateTextResponse extends Google_Collection
+{
+ protected $collection_key = 'tokens';
+ protected $documentSentimentType = 'Google_Service_CloudNaturalLanguage_Sentiment';
+ protected $documentSentimentDataType = '';
+ protected $entitiesType = 'Google_Service_CloudNaturalLanguage_Entity';
+ protected $entitiesDataType = 'array';
+ public $language;
+ protected $sentencesType = 'Google_Service_CloudNaturalLanguage_Sentence';
+ protected $sentencesDataType = 'array';
+ protected $tokensType = 'Google_Service_CloudNaturalLanguage_Token';
+ protected $tokensDataType = 'array';
+
+ public function setDocumentSentiment(Google_Service_CloudNaturalLanguage_Sentiment $documentSentiment)
+ {
+ $this->documentSentiment = $documentSentiment;
+ }
+ public function getDocumentSentiment()
+ {
+ return $this->documentSentiment;
+ }
+ public function setEntities($entities)
+ {
+ $this->entities = $entities;
+ }
+ public function getEntities()
+ {
+ return $this->entities;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setSentences($sentences)
+ {
+ $this->sentences = $sentences;
+ }
+ public function getSentences()
+ {
+ return $this->sentences;
+ }
+ public function setTokens($tokens)
+ {
+ $this->tokens = $tokens;
+ }
+ public function getTokens()
+ {
+ return $this->tokens;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/DependencyEdge.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/DependencyEdge.php
new file mode 100644
index 00000000..017a344d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/DependencyEdge.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_DependencyEdge extends Google_Model
+{
+ public $headTokenIndex;
+ public $label;
+
+ public function setHeadTokenIndex($headTokenIndex)
+ {
+ $this->headTokenIndex = $headTokenIndex;
+ }
+ public function getHeadTokenIndex()
+ {
+ return $this->headTokenIndex;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Document.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Document.php
new file mode 100644
index 00000000..327a84f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Document.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_Document extends Google_Model
+{
+ public $content;
+ public $gcsContentUri;
+ public $language;
+ public $type;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setGcsContentUri($gcsContentUri)
+ {
+ $this->gcsContentUri = $gcsContentUri;
+ }
+ public function getGcsContentUri()
+ {
+ return $this->gcsContentUri;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Entity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Entity.php
new file mode 100644
index 00000000..b855e87a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Entity.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_Entity extends Google_Collection
+{
+ protected $collection_key = 'mentions';
+ protected $mentionsType = 'Google_Service_CloudNaturalLanguage_EntityMention';
+ protected $mentionsDataType = 'array';
+ public $metadata;
+ public $name;
+ public $salience;
+ public $type;
+
+ public function setMentions($mentions)
+ {
+ $this->mentions = $mentions;
+ }
+ public function getMentions()
+ {
+ return $this->mentions;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSalience($salience)
+ {
+ $this->salience = $salience;
+ }
+ public function getSalience()
+ {
+ return $this->salience;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/EntityMention.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/EntityMention.php
new file mode 100644
index 00000000..3675f328
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/EntityMention.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_EntityMention extends Google_Model
+{
+ protected $textType = 'Google_Service_CloudNaturalLanguage_TextSpan';
+ protected $textDataType = '';
+ public $type;
+
+ public function setText(Google_Service_CloudNaturalLanguage_TextSpan $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Features.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Features.php
new file mode 100644
index 00000000..1d2e977d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Features.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_Features extends Google_Model
+{
+ public $extractDocumentSentiment;
+ public $extractEntities;
+ public $extractSyntax;
+
+ public function setExtractDocumentSentiment($extractDocumentSentiment)
+ {
+ $this->extractDocumentSentiment = $extractDocumentSentiment;
+ }
+ public function getExtractDocumentSentiment()
+ {
+ return $this->extractDocumentSentiment;
+ }
+ public function setExtractEntities($extractEntities)
+ {
+ $this->extractEntities = $extractEntities;
+ }
+ public function getExtractEntities()
+ {
+ return $this->extractEntities;
+ }
+ public function setExtractSyntax($extractSyntax)
+ {
+ $this->extractSyntax = $extractSyntax;
+ }
+ public function getExtractSyntax()
+ {
+ return $this->extractSyntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/PartOfSpeech.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/PartOfSpeech.php
new file mode 100644
index 00000000..81123c08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/PartOfSpeech.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_PartOfSpeech extends Google_Model
+{
+ public $aspect;
+ public $case;
+ public $form;
+ public $gender;
+ public $mood;
+ public $number;
+ public $person;
+ public $proper;
+ public $reciprocity;
+ public $tag;
+ public $tense;
+ public $voice;
+
+ public function setAspect($aspect)
+ {
+ $this->aspect = $aspect;
+ }
+ public function getAspect()
+ {
+ return $this->aspect;
+ }
+ public function setCase($case)
+ {
+ $this->case = $case;
+ }
+ public function getCase()
+ {
+ return $this->case;
+ }
+ public function setForm($form)
+ {
+ $this->form = $form;
+ }
+ public function getForm()
+ {
+ return $this->form;
+ }
+ public function setGender($gender)
+ {
+ $this->gender = $gender;
+ }
+ public function getGender()
+ {
+ return $this->gender;
+ }
+ public function setMood($mood)
+ {
+ $this->mood = $mood;
+ }
+ public function getMood()
+ {
+ return $this->mood;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setPerson($person)
+ {
+ $this->person = $person;
+ }
+ public function getPerson()
+ {
+ return $this->person;
+ }
+ public function setProper($proper)
+ {
+ $this->proper = $proper;
+ }
+ public function getProper()
+ {
+ return $this->proper;
+ }
+ public function setReciprocity($reciprocity)
+ {
+ $this->reciprocity = $reciprocity;
+ }
+ public function getReciprocity()
+ {
+ return $this->reciprocity;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+ public function setTense($tense)
+ {
+ $this->tense = $tense;
+ }
+ public function getTense()
+ {
+ return $this->tense;
+ }
+ public function setVoice($voice)
+ {
+ $this->voice = $voice;
+ }
+ public function getVoice()
+ {
+ return $this->voice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Resource/Documents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Resource/Documents.php
new file mode 100644
index 00000000..3c051a0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Resource/Documents.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "documents" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $languageService = new Google_Service_CloudNaturalLanguage(...);
+ * $documents = $languageService->documents;
+ * </code>
+ */
+class Google_Service_CloudNaturalLanguage_Resource_Documents extends Google_Service_Resource
+{
+ /**
+ * Finds named entities (currently finds proper names) in the text, entity
+ * types, salience, mentions for each entity, and other properties.
+ * (documents.analyzeEntities)
+ *
+ * @param Google_Service_CloudNaturalLanguage_AnalyzeEntitiesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudNaturalLanguage_AnalyzeEntitiesResponse
+ */
+ public function analyzeEntities(Google_Service_CloudNaturalLanguage_AnalyzeEntitiesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('analyzeEntities', array($params), "Google_Service_CloudNaturalLanguage_AnalyzeEntitiesResponse");
+ }
+ /**
+ * Analyzes the sentiment of the provided text. (documents.analyzeSentiment)
+ *
+ * @param Google_Service_CloudNaturalLanguage_AnalyzeSentimentRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudNaturalLanguage_AnalyzeSentimentResponse
+ */
+ public function analyzeSentiment(Google_Service_CloudNaturalLanguage_AnalyzeSentimentRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('analyzeSentiment', array($params), "Google_Service_CloudNaturalLanguage_AnalyzeSentimentResponse");
+ }
+ /**
+ * Analyzes the syntax of the text and provides sentence boundaries and
+ * tokenization along with part of speech tags, dependency trees, and other
+ * properties. (documents.analyzeSyntax)
+ *
+ * @param Google_Service_CloudNaturalLanguage_AnalyzeSyntaxRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudNaturalLanguage_AnalyzeSyntaxResponse
+ */
+ public function analyzeSyntax(Google_Service_CloudNaturalLanguage_AnalyzeSyntaxRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('analyzeSyntax', array($params), "Google_Service_CloudNaturalLanguage_AnalyzeSyntaxResponse");
+ }
+ /**
+ * A convenience method that provides all the features that analyzeSentiment,
+ * analyzeEntities, and analyzeSyntax provide in one call.
+ * (documents.annotateText)
+ *
+ * @param Google_Service_CloudNaturalLanguage_AnnotateTextRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudNaturalLanguage_AnnotateTextResponse
+ */
+ public function annotateText(Google_Service_CloudNaturalLanguage_AnnotateTextRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('annotateText', array($params), "Google_Service_CloudNaturalLanguage_AnnotateTextResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentence.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentence.php
new file mode 100644
index 00000000..e02ad371
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentence.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_Sentence extends Google_Model
+{
+ protected $sentimentType = 'Google_Service_CloudNaturalLanguage_Sentiment';
+ protected $sentimentDataType = '';
+ protected $textType = 'Google_Service_CloudNaturalLanguage_TextSpan';
+ protected $textDataType = '';
+
+ public function setSentiment(Google_Service_CloudNaturalLanguage_Sentiment $sentiment)
+ {
+ $this->sentiment = $sentiment;
+ }
+ public function getSentiment()
+ {
+ return $this->sentiment;
+ }
+ public function setText(Google_Service_CloudNaturalLanguage_TextSpan $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentiment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentiment.php
new file mode 100644
index 00000000..ec64f7e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Sentiment.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_Sentiment extends Google_Model
+{
+ public $magnitude;
+ public $score;
+
+ public function setMagnitude($magnitude)
+ {
+ $this->magnitude = $magnitude;
+ }
+ public function getMagnitude()
+ {
+ return $this->magnitude;
+ }
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Status.php
new file mode 100644
index 00000000..4e8a91c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/TextSpan.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/TextSpan.php
new file mode 100644
index 00000000..5ea23c55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/TextSpan.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_TextSpan extends Google_Model
+{
+ public $beginOffset;
+ public $content;
+
+ public function setBeginOffset($beginOffset)
+ {
+ $this->beginOffset = $beginOffset;
+ }
+ public function getBeginOffset()
+ {
+ return $this->beginOffset;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Token.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Token.php
new file mode 100644
index 00000000..7e38024d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguage/Token.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguage_Token extends Google_Model
+{
+ protected $dependencyEdgeType = 'Google_Service_CloudNaturalLanguage_DependencyEdge';
+ protected $dependencyEdgeDataType = '';
+ public $lemma;
+ protected $partOfSpeechType = 'Google_Service_CloudNaturalLanguage_PartOfSpeech';
+ protected $partOfSpeechDataType = '';
+ protected $textType = 'Google_Service_CloudNaturalLanguage_TextSpan';
+ protected $textDataType = '';
+
+ public function setDependencyEdge(Google_Service_CloudNaturalLanguage_DependencyEdge $dependencyEdge)
+ {
+ $this->dependencyEdge = $dependencyEdge;
+ }
+ public function getDependencyEdge()
+ {
+ return $this->dependencyEdge;
+ }
+ public function setLemma($lemma)
+ {
+ $this->lemma = $lemma;
+ }
+ public function getLemma()
+ {
+ return $this->lemma;
+ }
+ public function setPartOfSpeech(Google_Service_CloudNaturalLanguage_PartOfSpeech $partOfSpeech)
+ {
+ $this->partOfSpeech = $partOfSpeech;
+ }
+ public function getPartOfSpeech()
+ {
+ return $this->partOfSpeech;
+ }
+ public function setText(Google_Service_CloudNaturalLanguage_TextSpan $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI.php
new file mode 100644
index 00000000..a1d10e14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudNaturalLanguageAPI (v1beta1).
+ *
+ * <p>
+ * Google Cloud Natural Language API provides natural language understanding
+ * technologies to developers. Examples include sentiment analysis, entity
+ * recognition, and text annotations.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/natural-language/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudNaturalLanguageAPI extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $documents;
+
+ /**
+ * Constructs the internal representation of the CloudNaturalLanguageAPI
+ * service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://language.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1beta1';
+ $this->serviceName = 'language';
+
+ $this->documents = new Google_Service_CloudNaturalLanguageAPI_Resource_Documents(
+ $this,
+ $this->serviceName,
+ 'documents',
+ array(
+ 'methods' => array(
+ 'analyzeEntities' => array(
+ 'path' => 'v1beta1/documents:analyzeEntities',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'analyzeSentiment' => array(
+ 'path' => 'v1beta1/documents:analyzeSentiment',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'annotateText' => array(
+ 'path' => 'v1beta1/documents:annotateText',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesRequest.php
new file mode 100644
index 00000000..4a018366
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_AnalyzeEntitiesRequest extends Google_Model
+{
+ protected $documentType = 'Google_Service_CloudNaturalLanguageAPI_Document';
+ protected $documentDataType = '';
+ public $encodingType;
+
+ public function setDocument(Google_Service_CloudNaturalLanguageAPI_Document $document)
+ {
+ $this->document = $document;
+ }
+ public function getDocument()
+ {
+ return $this->document;
+ }
+ public function setEncodingType($encodingType)
+ {
+ $this->encodingType = $encodingType;
+ }
+ public function getEncodingType()
+ {
+ return $this->encodingType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesResponse.php
new file mode 100644
index 00000000..545954f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeEntitiesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_AnalyzeEntitiesResponse extends Google_Collection
+{
+ protected $collection_key = 'entities';
+ protected $entitiesType = 'Google_Service_CloudNaturalLanguageAPI_Entity';
+ protected $entitiesDataType = 'array';
+ public $language;
+
+ public function setEntities($entities)
+ {
+ $this->entities = $entities;
+ }
+ public function getEntities()
+ {
+ return $this->entities;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentRequest.php
new file mode 100644
index 00000000..f404a604
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_AnalyzeSentimentRequest extends Google_Model
+{
+ protected $documentType = 'Google_Service_CloudNaturalLanguageAPI_Document';
+ protected $documentDataType = '';
+
+ public function setDocument(Google_Service_CloudNaturalLanguageAPI_Document $document)
+ {
+ $this->document = $document;
+ }
+ public function getDocument()
+ {
+ return $this->document;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentResponse.php
new file mode 100644
index 00000000..a3baa1b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnalyzeSentimentResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_AnalyzeSentimentResponse extends Google_Model
+{
+ protected $documentSentimentType = 'Google_Service_CloudNaturalLanguageAPI_Sentiment';
+ protected $documentSentimentDataType = '';
+ public $language;
+
+ public function setDocumentSentiment(Google_Service_CloudNaturalLanguageAPI_Sentiment $documentSentiment)
+ {
+ $this->documentSentiment = $documentSentiment;
+ }
+ public function getDocumentSentiment()
+ {
+ return $this->documentSentiment;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextRequest.php
new file mode 100644
index 00000000..cc3e90ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_AnnotateTextRequest extends Google_Model
+{
+ protected $documentType = 'Google_Service_CloudNaturalLanguageAPI_Document';
+ protected $documentDataType = '';
+ public $encodingType;
+ protected $featuresType = 'Google_Service_CloudNaturalLanguageAPI_Features';
+ protected $featuresDataType = '';
+
+ public function setDocument(Google_Service_CloudNaturalLanguageAPI_Document $document)
+ {
+ $this->document = $document;
+ }
+ public function getDocument()
+ {
+ return $this->document;
+ }
+ public function setEncodingType($encodingType)
+ {
+ $this->encodingType = $encodingType;
+ }
+ public function getEncodingType()
+ {
+ return $this->encodingType;
+ }
+ public function setFeatures(Google_Service_CloudNaturalLanguageAPI_Features $features)
+ {
+ $this->features = $features;
+ }
+ public function getFeatures()
+ {
+ return $this->features;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextResponse.php
new file mode 100644
index 00000000..4efb2962
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/AnnotateTextResponse.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_AnnotateTextResponse extends Google_Collection
+{
+ protected $collection_key = 'tokens';
+ protected $documentSentimentType = 'Google_Service_CloudNaturalLanguageAPI_Sentiment';
+ protected $documentSentimentDataType = '';
+ protected $entitiesType = 'Google_Service_CloudNaturalLanguageAPI_Entity';
+ protected $entitiesDataType = 'array';
+ public $language;
+ protected $sentencesType = 'Google_Service_CloudNaturalLanguageAPI_Sentence';
+ protected $sentencesDataType = 'array';
+ protected $tokensType = 'Google_Service_CloudNaturalLanguageAPI_Token';
+ protected $tokensDataType = 'array';
+
+ public function setDocumentSentiment(Google_Service_CloudNaturalLanguageAPI_Sentiment $documentSentiment)
+ {
+ $this->documentSentiment = $documentSentiment;
+ }
+ public function getDocumentSentiment()
+ {
+ return $this->documentSentiment;
+ }
+ public function setEntities($entities)
+ {
+ $this->entities = $entities;
+ }
+ public function getEntities()
+ {
+ return $this->entities;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setSentences($sentences)
+ {
+ $this->sentences = $sentences;
+ }
+ public function getSentences()
+ {
+ return $this->sentences;
+ }
+ public function setTokens($tokens)
+ {
+ $this->tokens = $tokens;
+ }
+ public function getTokens()
+ {
+ return $this->tokens;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/DependencyEdge.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/DependencyEdge.php
new file mode 100644
index 00000000..bb243a0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/DependencyEdge.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_DependencyEdge extends Google_Model
+{
+ public $headTokenIndex;
+ public $label;
+
+ public function setHeadTokenIndex($headTokenIndex)
+ {
+ $this->headTokenIndex = $headTokenIndex;
+ }
+ public function getHeadTokenIndex()
+ {
+ return $this->headTokenIndex;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Document.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Document.php
new file mode 100644
index 00000000..e4039aee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Document.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_Document extends Google_Model
+{
+ public $content;
+ public $gcsContentUri;
+ public $language;
+ public $type;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setGcsContentUri($gcsContentUri)
+ {
+ $this->gcsContentUri = $gcsContentUri;
+ }
+ public function getGcsContentUri()
+ {
+ return $this->gcsContentUri;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Entity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Entity.php
new file mode 100644
index 00000000..2579c08f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Entity.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_Entity extends Google_Collection
+{
+ protected $collection_key = 'mentions';
+ protected $mentionsType = 'Google_Service_CloudNaturalLanguageAPI_EntityMention';
+ protected $mentionsDataType = 'array';
+ public $metadata;
+ public $name;
+ public $salience;
+ public $type;
+
+ public function setMentions($mentions)
+ {
+ $this->mentions = $mentions;
+ }
+ public function getMentions()
+ {
+ return $this->mentions;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSalience($salience)
+ {
+ $this->salience = $salience;
+ }
+ public function getSalience()
+ {
+ return $this->salience;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/EntityMention.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/EntityMention.php
new file mode 100644
index 00000000..e01f0cde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/EntityMention.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_EntityMention extends Google_Model
+{
+ protected $textType = 'Google_Service_CloudNaturalLanguageAPI_TextSpan';
+ protected $textDataType = '';
+
+ public function setText(Google_Service_CloudNaturalLanguageAPI_TextSpan $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Features.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Features.php
new file mode 100644
index 00000000..ab0a7cbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Features.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_Features extends Google_Model
+{
+ public $extractDocumentSentiment;
+ public $extractEntities;
+ public $extractSyntax;
+
+ public function setExtractDocumentSentiment($extractDocumentSentiment)
+ {
+ $this->extractDocumentSentiment = $extractDocumentSentiment;
+ }
+ public function getExtractDocumentSentiment()
+ {
+ return $this->extractDocumentSentiment;
+ }
+ public function setExtractEntities($extractEntities)
+ {
+ $this->extractEntities = $extractEntities;
+ }
+ public function getExtractEntities()
+ {
+ return $this->extractEntities;
+ }
+ public function setExtractSyntax($extractSyntax)
+ {
+ $this->extractSyntax = $extractSyntax;
+ }
+ public function getExtractSyntax()
+ {
+ return $this->extractSyntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/PartOfSpeech.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/PartOfSpeech.php
new file mode 100644
index 00000000..e2593898
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/PartOfSpeech.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_PartOfSpeech extends Google_Model
+{
+ public $tag;
+
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Resource/Documents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Resource/Documents.php
new file mode 100644
index 00000000..ff2470c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Resource/Documents.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "documents" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $languageService = new Google_Service_CloudNaturalLanguageAPI(...);
+ * $documents = $languageService->documents;
+ * </code>
+ */
+class Google_Service_CloudNaturalLanguageAPI_Resource_Documents extends Google_Service_Resource
+{
+ /**
+ * Finds named entities (currently finds proper names) in the text, entity
+ * types, salience, mentions for each entity, and other properties.
+ * (documents.analyzeEntities)
+ *
+ * @param Google_Service_CloudNaturalLanguageAPI_AnalyzeEntitiesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudNaturalLanguageAPI_AnalyzeEntitiesResponse
+ */
+ public function analyzeEntities(Google_Service_CloudNaturalLanguageAPI_AnalyzeEntitiesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('analyzeEntities', array($params), "Google_Service_CloudNaturalLanguageAPI_AnalyzeEntitiesResponse");
+ }
+ /**
+ * Analyzes the sentiment of the provided text. (documents.analyzeSentiment)
+ *
+ * @param Google_Service_CloudNaturalLanguageAPI_AnalyzeSentimentRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudNaturalLanguageAPI_AnalyzeSentimentResponse
+ */
+ public function analyzeSentiment(Google_Service_CloudNaturalLanguageAPI_AnalyzeSentimentRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('analyzeSentiment', array($params), "Google_Service_CloudNaturalLanguageAPI_AnalyzeSentimentResponse");
+ }
+ /**
+ * A convenience method that provides all the features that analyzeSentiment,
+ * analyzeEntities, and analyzeSyntax provide in one call.
+ * (documents.annotateText)
+ *
+ * @param Google_Service_CloudNaturalLanguageAPI_AnnotateTextRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudNaturalLanguageAPI_AnnotateTextResponse
+ */
+ public function annotateText(Google_Service_CloudNaturalLanguageAPI_AnnotateTextRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('annotateText', array($params), "Google_Service_CloudNaturalLanguageAPI_AnnotateTextResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentence.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentence.php
new file mode 100644
index 00000000..20d45c41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentence.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_Sentence extends Google_Model
+{
+ protected $textType = 'Google_Service_CloudNaturalLanguageAPI_TextSpan';
+ protected $textDataType = '';
+
+ public function setText(Google_Service_CloudNaturalLanguageAPI_TextSpan $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentiment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentiment.php
new file mode 100644
index 00000000..2e189c6e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Sentiment.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_Sentiment extends Google_Model
+{
+ public $magnitude;
+ public $polarity;
+
+ public function setMagnitude($magnitude)
+ {
+ $this->magnitude = $magnitude;
+ }
+ public function getMagnitude()
+ {
+ return $this->magnitude;
+ }
+ public function setPolarity($polarity)
+ {
+ $this->polarity = $polarity;
+ }
+ public function getPolarity()
+ {
+ return $this->polarity;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Status.php
new file mode 100644
index 00000000..6d4b0942
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/TextSpan.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/TextSpan.php
new file mode 100644
index 00000000..560aaa78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/TextSpan.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_TextSpan extends Google_Model
+{
+ public $beginOffset;
+ public $content;
+
+ public function setBeginOffset($beginOffset)
+ {
+ $this->beginOffset = $beginOffset;
+ }
+ public function getBeginOffset()
+ {
+ return $this->beginOffset;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Token.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Token.php
new file mode 100644
index 00000000..15b33b41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudNaturalLanguageAPI/Token.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudNaturalLanguageAPI_Token extends Google_Model
+{
+ protected $dependencyEdgeType = 'Google_Service_CloudNaturalLanguageAPI_DependencyEdge';
+ protected $dependencyEdgeDataType = '';
+ public $lemma;
+ protected $partOfSpeechType = 'Google_Service_CloudNaturalLanguageAPI_PartOfSpeech';
+ protected $partOfSpeechDataType = '';
+ protected $textType = 'Google_Service_CloudNaturalLanguageAPI_TextSpan';
+ protected $textDataType = '';
+
+ public function setDependencyEdge(Google_Service_CloudNaturalLanguageAPI_DependencyEdge $dependencyEdge)
+ {
+ $this->dependencyEdge = $dependencyEdge;
+ }
+ public function getDependencyEdge()
+ {
+ return $this->dependencyEdge;
+ }
+ public function setLemma($lemma)
+ {
+ $this->lemma = $lemma;
+ }
+ public function getLemma()
+ {
+ return $this->lemma;
+ }
+ public function setPartOfSpeech(Google_Service_CloudNaturalLanguageAPI_PartOfSpeech $partOfSpeech)
+ {
+ $this->partOfSpeech = $partOfSpeech;
+ }
+ public function getPartOfSpeech()
+ {
+ return $this->partOfSpeech;
+ }
+ public function setText(Google_Service_CloudNaturalLanguageAPI_TextSpan $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager.php
new file mode 100644
index 00000000..1f5d220f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager.php
@@ -0,0 +1,286 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudResourceManager (v1).
+ *
+ * <p>
+ * The Google Cloud Resource Manager API provides methods for creating, reading,
+ * and updating project metadata.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/resource-manager" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudResourceManager extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ public $liens;
+ public $operations;
+ public $organizations;
+ public $projects;
+
+ /**
+ * Constructs the internal representation of the CloudResourceManager service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://cloudresourcemanager.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'cloudresourcemanager';
+
+ $this->liens = new Google_Service_CloudResourceManager_Resource_Liens(
+ $this,
+ $this->serviceName,
+ 'liens',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/liens',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/liens',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->operations = new Google_Service_CloudResourceManager_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->organizations = new Google_Service_CloudResourceManager_Resource_Organizations(
+ $this,
+ $this->serviceName,
+ 'organizations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/organizations:search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects = new Google_Service_CloudResourceManager_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/projects',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/projects/{projectId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getAncestry' => array(
+ 'path' => 'v1/projects/{projectId}:getAncestry',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/projects/{resource}:getIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/projects/{resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/projects/{resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'undelete' => array(
+ 'path' => 'v1/projects/{projectId}:undelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1/projects/{projectId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Ancestor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Ancestor.php
new file mode 100644
index 00000000..044d2ba5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Ancestor.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Ancestor extends Google_Model
+{
+ protected $resourceIdType = 'Google_Service_CloudResourceManager_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setResourceId(Google_Service_CloudResourceManager_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditConfig.php
new file mode 100644
index 00000000..8e55adbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditConfig.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_AuditConfig extends Google_Collection
+{
+ protected $collection_key = 'auditLogConfigs';
+ protected $auditLogConfigsType = 'Google_Service_CloudResourceManager_AuditLogConfig';
+ protected $auditLogConfigsDataType = 'array';
+ public $service;
+
+ public function setAuditLogConfigs($auditLogConfigs)
+ {
+ $this->auditLogConfigs = $auditLogConfigs;
+ }
+ public function getAuditLogConfigs()
+ {
+ return $this->auditLogConfigs;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditLogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditLogConfig.php
new file mode 100644
index 00000000..9bd433bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/AuditLogConfig.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_AuditLogConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ public $exemptedMembers;
+ public $logType;
+
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setLogType($logType)
+ {
+ $this->logType = $logType;
+ }
+ public function getLogType()
+ {
+ return $this->logType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php
new file mode 100644
index 00000000..e08ea655
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/CloudresourcemanagerEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/CloudresourcemanagerEmpty.php
new file mode 100644
index 00000000..f4bb9538
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/CloudresourcemanagerEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_CloudresourcemanagerEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperation.php
new file mode 100644
index 00000000..f8fab451
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperation.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_FolderOperation extends Google_Model
+{
+ public $destinationParent;
+ public $displayName;
+ public $operationType;
+ public $sourceParent;
+
+ public function setDestinationParent($destinationParent)
+ {
+ $this->destinationParent = $destinationParent;
+ }
+ public function getDestinationParent()
+ {
+ return $this->destinationParent;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setSourceParent($sourceParent)
+ {
+ $this->sourceParent = $sourceParent;
+ }
+ public function getSourceParent()
+ {
+ return $this->sourceParent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperationError.php
new file mode 100644
index 00000000..2a1c994d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/FolderOperationError.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_FolderOperationError extends Google_Model
+{
+ public $errorMessageId;
+
+ public function setErrorMessageId($errorMessageId)
+ {
+ $this->errorMessageId = $errorMessageId;
+ }
+ public function getErrorMessageId()
+ {
+ return $this->errorMessageId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryRequest.php
new file mode 100644
index 00000000..ab9ddd03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_GetAncestryRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryResponse.php
new file mode 100644
index 00000000..eca47476
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetAncestryResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_GetAncestryResponse extends Google_Collection
+{
+ protected $collection_key = 'ancestor';
+ protected $ancestorType = 'Google_Service_CloudResourceManager_Ancestor';
+ protected $ancestorDataType = 'array';
+
+ public function setAncestor($ancestor)
+ {
+ $this->ancestor = $ancestor;
+ }
+ public function getAncestor()
+ {
+ return $this->ancestor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetIamPolicyRequest.php
new file mode 100644
index 00000000..2157401c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/GetIamPolicyRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_GetIamPolicyRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Lien.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Lien.php
new file mode 100644
index 00000000..536c6510
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Lien.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Lien extends Google_Collection
+{
+ protected $collection_key = 'restrictions';
+ public $createTime;
+ public $name;
+ public $origin;
+ public $parent;
+ public $reason;
+ public $restrictions;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+ public function setParent($parent)
+ {
+ $this->parent = $parent;
+ }
+ public function getParent()
+ {
+ return $this->parent;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setRestrictions($restrictions)
+ {
+ $this->restrictions = $restrictions;
+ }
+ public function getRestrictions()
+ {
+ return $this->restrictions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListLiensResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListLiensResponse.php
new file mode 100644
index 00000000..93c61cf1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListLiensResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_ListLiensResponse extends Google_Collection
+{
+ protected $collection_key = 'liens';
+ protected $liensType = 'Google_Service_CloudResourceManager_Lien';
+ protected $liensDataType = 'array';
+ public $nextPageToken;
+
+ public function setLiens($liens)
+ {
+ $this->liens = $liens;
+ }
+ public function getLiens()
+ {
+ return $this->liens;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListProjectsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListProjectsResponse.php
new file mode 100644
index 00000000..571f22b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ListProjectsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_ListProjectsResponse extends Google_Collection
+{
+ protected $collection_key = 'projects';
+ public $nextPageToken;
+ protected $projectsType = 'Google_Service_CloudResourceManager_Project';
+ protected $projectsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setProjects($projects)
+ {
+ $this->projects = $projects;
+ }
+ public function getProjects()
+ {
+ return $this->projects;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Operation.php
new file mode 100644
index 00000000..c86ec471
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_CloudResourceManager_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudResourceManager_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Organization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Organization.php
new file mode 100644
index 00000000..b78fc265
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Organization.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Organization extends Google_Model
+{
+ public $creationTime;
+ public $displayName;
+ public $lifecycleState;
+ public $name;
+ protected $ownerType = 'Google_Service_CloudResourceManager_OrganizationOwner';
+ protected $ownerDataType = '';
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLifecycleState($lifecycleState)
+ {
+ $this->lifecycleState = $lifecycleState;
+ }
+ public function getLifecycleState()
+ {
+ return $this->lifecycleState;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwner(Google_Service_CloudResourceManager_OrganizationOwner $owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/OrganizationOwner.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/OrganizationOwner.php
new file mode 100644
index 00000000..45896675
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/OrganizationOwner.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_OrganizationOwner extends Google_Model
+{
+ public $directoryCustomerId;
+
+ public function setDirectoryCustomerId($directoryCustomerId)
+ {
+ $this->directoryCustomerId = $directoryCustomerId;
+ }
+ public function getDirectoryCustomerId()
+ {
+ return $this->directoryCustomerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Policy.php
new file mode 100644
index 00000000..bf55c2fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Policy.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Policy extends Google_Collection
+{
+ protected $collection_key = 'bindings';
+ protected $auditConfigsType = 'Google_Service_CloudResourceManager_AuditConfig';
+ protected $auditConfigsDataType = 'array';
+ protected $bindingsType = 'Google_Service_CloudResourceManager_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $version;
+
+ public function setAuditConfigs($auditConfigs)
+ {
+ $this->auditConfigs = $auditConfigs;
+ }
+ public function getAuditConfigs()
+ {
+ return $this->auditConfigs;
+ }
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Project.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Project.php
new file mode 100644
index 00000000..1756338b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Project.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Project extends Google_Model
+{
+ public $createTime;
+ public $labels;
+ public $lifecycleState;
+ public $name;
+ protected $parentType = 'Google_Service_CloudResourceManager_ResourceId';
+ protected $parentDataType = '';
+ public $projectId;
+ public $projectNumber;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLifecycleState($lifecycleState)
+ {
+ $this->lifecycleState = $lifecycleState;
+ }
+ public function getLifecycleState()
+ {
+ return $this->lifecycleState;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParent(Google_Service_CloudResourceManager_ResourceId $parent)
+ {
+ $this->parent = $parent;
+ }
+ public function getParent()
+ {
+ return $this->parent;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setProjectNumber($projectNumber)
+ {
+ $this->projectNumber = $projectNumber;
+ }
+ public function getProjectNumber()
+ {
+ return $this->projectNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ProjectCreationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ProjectCreationStatus.php
new file mode 100644
index 00000000..5264612d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ProjectCreationStatus.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_ProjectCreationStatus extends Google_Model
+{
+ public $createTime;
+ public $gettable;
+ public $ready;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setGettable($gettable)
+ {
+ $this->gettable = $gettable;
+ }
+ public function getGettable()
+ {
+ return $this->gettable;
+ }
+ public function setReady($ready)
+ {
+ $this->ready = $ready;
+ }
+ public function getReady()
+ {
+ return $this->ready;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Liens.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Liens.php
new file mode 100644
index 00000000..69c7f435
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Liens.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "liens" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudresourcemanagerService = new Google_Service_CloudResourceManager(...);
+ * $liens = $cloudresourcemanagerService->liens;
+ * </code>
+ */
+class Google_Service_CloudResourceManager_Resource_Liens extends Google_Service_Resource
+{
+ /**
+ * Create a Lien which applies to the resource denoted by the `parent` field.
+ *
+ * Callers of this method will require permission on the `parent` resource. For
+ * example, applying to `projects/1234` requires permission
+ * `resourcemanager.projects.updateLiens`.
+ *
+ * NOTE: Some resources may limit the number of Liens which may be applied.
+ * (liens.create)
+ *
+ * @param Google_Service_CloudResourceManager_Lien $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Lien
+ */
+ public function create(Google_Service_CloudResourceManager_Lien $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudResourceManager_Lien");
+ }
+ /**
+ * Delete a Lien by `name`.
+ *
+ * Callers of this method will require permission on the `parent` resource. For
+ * example, a Lien with a `parent` of `projects/1234` requires permission
+ * `resourcemanager.projects.updateLiens`. (liens.delete)
+ *
+ * @param string $name The name/identifier of the Lien to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_CloudresourcemanagerEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudResourceManager_CloudresourcemanagerEmpty");
+ }
+ /**
+ * List all Liens applied to the `parent` resource.
+ *
+ * Callers of this method will require permission on the `parent` resource. For
+ * example, a Lien with a `parent` of `projects/1234` requires permission
+ * `resourcemanager.projects.get`. (liens.listLiens)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string parent The name of the resource to list all attached Liens.
+ * For example, `projects/1234`.
+ * @opt_param string pageToken The `next_page_token` value returned from a
+ * previous List request, if any.
+ * @opt_param int pageSize The maximum number of items to return. This is a
+ * suggestion for the server.
+ * @return Google_Service_CloudResourceManager_ListLiensResponse
+ */
+ public function listLiens($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudResourceManager_ListLiensResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Operations.php
new file mode 100644
index 00000000..096b85b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Operations.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudresourcemanagerService = new Google_Service_CloudResourceManager(...);
+ * $operations = $cloudresourcemanagerService->operations;
+ * </code>
+ */
+class Google_Service_CloudResourceManager_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudResourceManager_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Organizations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Organizations.php
new file mode 100644
index 00000000..4e04bef5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Organizations.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "organizations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudresourcemanagerService = new Google_Service_CloudResourceManager(...);
+ * $organizations = $cloudresourcemanagerService->organizations;
+ * </code>
+ */
+class Google_Service_CloudResourceManager_Resource_Organizations extends Google_Service_Resource
+{
+ /**
+ * Fetches an Organization resource identified by the specified resource name.
+ * (organizations.get)
+ *
+ * @param string $name The resource name of the Organization to fetch, e.g.
+ * "organizations/1234".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Organization
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudResourceManager_Organization");
+ }
+ /**
+ * Gets the access control policy for an Organization resource. May be empty if
+ * no such policy or resource exists. The `resource` field should be the
+ * organization's resource name, e.g. "organizations/123".
+ * (organizations.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_CloudResourceManager_GetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Policy
+ */
+ public function getIamPolicy($resource, Google_Service_CloudResourceManager_GetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_CloudResourceManager_Policy");
+ }
+ /**
+ * Searches Organization resources that are visible to the user and satisfy the
+ * specified filter. This method returns Organizations in an unspecified order.
+ * New Organizations do not necessarily appear at the end of the results.
+ * (organizations.search)
+ *
+ * @param Google_Service_CloudResourceManager_SearchOrganizationsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_SearchOrganizationsResponse
+ */
+ public function search(Google_Service_CloudResourceManager_SearchOrganizationsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_CloudResourceManager_SearchOrganizationsResponse");
+ }
+ /**
+ * Sets the access control policy on an Organization resource. Replaces any
+ * existing policy. The `resource` field should be the organization's resource
+ * name, e.g. "organizations/123". (organizations.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_CloudResourceManager_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_CloudResourceManager_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_CloudResourceManager_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified Organization. The
+ * `resource` field should be the organization's resource name, e.g.
+ * "organizations/123". (organizations.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. See the operation documentation for the appropriate value
+ * for this field.
+ * @param Google_Service_CloudResourceManager_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_CloudResourceManager_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_CloudResourceManager_TestIamPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Projects.php
new file mode 100644
index 00000000..5291c3d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Resource/Projects.php
@@ -0,0 +1,286 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudresourcemanagerService = new Google_Service_CloudResourceManager(...);
+ * $projects = $cloudresourcemanagerService->projects;
+ * </code>
+ */
+class Google_Service_CloudResourceManager_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Request that a new Project be created. The result is an Operation which can
+ * be used to track the creation process. It is automatically deleted after a
+ * few hours, so there is no need to call DeleteOperation.
+ *
+ * Our SLO permits Project creation to take up to 30 seconds at the 90th
+ * percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
+ * latency. 95th percentile latency is around 11 seconds. We recommend polling
+ * at the 5th second with an exponential backoff. (projects.create)
+ *
+ * @param Google_Service_CloudResourceManager_Project $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Operation
+ */
+ public function create(Google_Service_CloudResourceManager_Project $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudResourceManager_Operation");
+ }
+ /**
+ * Marks the Project identified by the specified `project_id` (for example, `my-
+ * project-123`) for deletion. This method will only affect the Project if the
+ * following criteria are met:
+ *
+ * + The Project does not have a billing account associated with it. + The
+ * Project has a lifecycle state of ACTIVE.
+ *
+ * This method changes the Project's lifecycle state from ACTIVE to
+ * DELETE_REQUESTED. The deletion starts at an unspecified time, at which point
+ * the Project is no longer accessible.
+ *
+ * Until the deletion completes, you can check the lifecycle state checked by
+ * retrieving the Project with GetProject, and the Project remains visible to
+ * ListProjects. However, you cannot update the project.
+ *
+ * After the deletion completes, the Project is not retrievable by the
+ * GetProject and ListProjects methods.
+ *
+ * The caller must have modify permissions for this Project. (projects.delete)
+ *
+ * @param string $projectId The Project ID (for example, `foo-bar-123`).
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_CloudresourcemanagerEmpty
+ */
+ public function delete($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudResourceManager_CloudresourcemanagerEmpty");
+ }
+ /**
+ * Retrieves the Project identified by the specified `project_id` (for example,
+ * `my-project-123`).
+ *
+ * The caller must have read permissions for this Project. (projects.get)
+ *
+ * @param string $projectId The Project ID (for example, `my-project-123`).
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Project
+ */
+ public function get($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudResourceManager_Project");
+ }
+ /**
+ * Gets a list of ancestors in the resource hierarchy for the Project identified
+ * by the specified `project_id` (for example, `my-project-123`).
+ *
+ * The caller must have read permissions for this Project.
+ * (projects.getAncestry)
+ *
+ * @param string $projectId The Project ID (for example, `my-project-123`).
+ *
+ * Required.
+ * @param Google_Service_CloudResourceManager_GetAncestryRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_GetAncestryResponse
+ */
+ public function getAncestry($projectId, Google_Service_CloudResourceManager_GetAncestryRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAncestry', array($params), "Google_Service_CloudResourceManager_GetAncestryResponse");
+ }
+ /**
+ * Returns the IAM access control policy for the specified Project. Permission
+ * is denied if the policy or the resource does not exist.
+ * (projects.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_CloudResourceManager_GetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Policy
+ */
+ public function getIamPolicy($resource, Google_Service_CloudResourceManager_GetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_CloudResourceManager_Policy");
+ }
+ /**
+ * Lists Projects that are visible to the user and satisfy the specified filter.
+ * This method returns Projects in an unspecified order. New Projects do not
+ * necessarily appear at the end of the list. (projects.listProjects)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter An expression for filtering the results of the
+ * request. Filter rules are case insensitive. The fields eligible for
+ * filtering are:
+ *
+ * + `name` + `id` + labels.key where *key* is the name of a label
+ *
+ * Some examples of using labels as filters:
+ *
+ * |Filter|Description| |------|-----------| |name:*|The project has a name.|
+ * |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|Equivalent to
+ * above.| |NAME:howl|Equivalent to above.| |labels.color:*|The project has the
+ * label `color`.| |labels.color:red|The project's label `color` has the value
+ * `red`.| |labels.color:redlabel.size:big|The project's label `color` has the
+ * value `red` and its label `size` has the value `big`.
+ *
+ * Optional.
+ * @opt_param string pageToken A pagination token returned from a previous call
+ * to ListProjects that indicates from where listing should continue.
+ *
+ * Optional.
+ * @opt_param int pageSize The maximum number of Projects to return in the
+ * response. The server can return fewer Projects than requested. If
+ * unspecified, server picks an appropriate default.
+ *
+ * Optional.
+ * @return Google_Service_CloudResourceManager_ListProjectsResponse
+ */
+ public function listProjects($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudResourceManager_ListProjectsResponse");
+ }
+ /**
+ * Sets the IAM access control policy for the specified Project. Replaces any
+ * existing policy.
+ *
+ * The following constraints apply when using `setIamPolicy()`:
+ *
+ * + Project does not support `allUsers` and `allAuthenticatedUsers` as
+ * `members` in a `Binding` of a `Policy`.
+ *
+ * + The owner role can be granted only to `user` and `serviceAccount`.
+ *
+ * + Service accounts can be made owners of a project directly without any
+ * restrictions. However, to be added as an owner, a user must be invited via
+ * Cloud Platform console and must accept the invitation.
+ *
+ * + A user cannot be granted the owner role using `setIamPolicy()`. The user
+ * must be granted the owner role using the Cloud Platform Console and must
+ * explicitly accept the invitation.
+ *
+ * + Invitations to grant the owner role cannot be sent using `setIamPolicy()`;
+ * they must be sent only using the Cloud Platform Console.
+ *
+ * + Membership changes that leave the project without any owners that have
+ * accepted the Terms of Service (ToS) will be rejected.
+ *
+ * + There must be at least one owner who has accepted the Terms of Service
+ * (ToS) agreement in the policy. Calling `setIamPolicy()` to to remove the last
+ * ToS-accepted owner from the policy will fail. This restriction also applies
+ * to legacy projects that no longer have owners who have accepted the ToS.
+ * Edits to IAM policies will be rejected until the lack of a ToS-accepting
+ * owner is rectified.
+ *
+ * + Calling this method requires enabling the App Engine Admin API.
+ *
+ * Note: Removing service accounts from policies or changing their roles can
+ * render services completely inoperable. It is important to understand how the
+ * service account is being used before removing or updating its roles.
+ * (projects.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_CloudResourceManager_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_CloudResourceManager_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_CloudResourceManager_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified Project.
+ * (projects.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. See the operation documentation for the appropriate value
+ * for this field.
+ * @param Google_Service_CloudResourceManager_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_CloudResourceManager_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_CloudResourceManager_TestIamPermissionsResponse");
+ }
+ /**
+ * Restores the Project identified by the specified `project_id` (for example,
+ * `my-project-123`). You can only use this method for a Project that has a
+ * lifecycle state of DELETE_REQUESTED. After deletion starts, the Project
+ * cannot be restored.
+ *
+ * The caller must have modify permissions for this Project. (projects.undelete)
+ *
+ * @param string $projectId The project ID (for example, `foo-bar-123`).
+ *
+ * Required.
+ * @param Google_Service_CloudResourceManager_UndeleteProjectRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_CloudresourcemanagerEmpty
+ */
+ public function undelete($projectId, Google_Service_CloudResourceManager_UndeleteProjectRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('undelete', array($params), "Google_Service_CloudResourceManager_CloudresourcemanagerEmpty");
+ }
+ /**
+ * Updates the attributes of the Project identified by the specified
+ * `project_id` (for example, `my-project-123`).
+ *
+ * The caller must have modify permissions for this Project. (projects.update)
+ *
+ * @param string $projectId The project ID (for example, `my-project-123`).
+ *
+ * Required.
+ * @param Google_Service_CloudResourceManager_Project $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudResourceManager_Project
+ */
+ public function update($projectId, Google_Service_CloudResourceManager_Project $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_CloudResourceManager_Project");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ResourceId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ResourceId.php
new file mode 100644
index 00000000..ac1347bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/ResourceId.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_ResourceId extends Google_Model
+{
+ public $id;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsRequest.php
new file mode 100644
index 00000000..d682ba0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsRequest.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_SearchOrganizationsRequest extends Google_Model
+{
+ public $filter;
+ public $pageSize;
+ public $pageToken;
+
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsResponse.php
new file mode 100644
index 00000000..d05ba06e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SearchOrganizationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_SearchOrganizationsResponse extends Google_Collection
+{
+ protected $collection_key = 'organizations';
+ public $nextPageToken;
+ protected $organizationsType = 'Google_Service_CloudResourceManager_Organization';
+ protected $organizationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOrganizations($organizations)
+ {
+ $this->organizations = $organizations;
+ }
+ public function getOrganizations()
+ {
+ return $this->organizations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SetIamPolicyRequest.php
new file mode 100644
index 00000000..e84b61c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/SetIamPolicyRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_CloudResourceManager_Policy';
+ protected $policyDataType = '';
+ public $updateMask;
+
+ public function setPolicy(Google_Service_CloudResourceManager_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+ public function setUpdateMask($updateMask)
+ {
+ $this->updateMask = $updateMask;
+ }
+ public function getUpdateMask()
+ {
+ return $this->updateMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Status.php
new file mode 100644
index 00000000..b5c5b7ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..9f69000b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..252c3846
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/UndeleteProjectRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/UndeleteProjectRequest.php
new file mode 100644
index 00000000..b79b4629
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudResourceManager/UndeleteProjectRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudResourceManager_UndeleteProjectRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php
new file mode 100644
index 00000000..b3ca5a30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudRuntimeConfig (v1).
+ *
+ * <p>
+ * Provides capabilities for dynamic configuration and coordination for
+ * applications running on Google Cloud Platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/deployment-manager/runtime-configurator/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudRuntimeConfig extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Manage your Google Cloud Platform services' runtime configuration. */
+ const CLOUDRUNTIMECONFIG =
+ "https://www.googleapis.com/auth/cloudruntimeconfig";
+
+ public $operations;
+
+ /**
+ * Constructs the internal representation of the CloudRuntimeConfig service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://runtimeconfig.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'runtimeconfig';
+
+ $this->operations = new Google_Service_CloudRuntimeConfig_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/CancelOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/CancelOperationRequest.php
new file mode 100644
index 00000000..948405c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/CancelOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_CancelOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Cardinality.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Cardinality.php
new file mode 100644
index 00000000..b8bbf0db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Cardinality.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_Cardinality extends Google_Model
+{
+ public $number;
+ public $path;
+
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/EndCondition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/EndCondition.php
new file mode 100644
index 00000000..e1321943
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/EndCondition.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_EndCondition extends Google_Model
+{
+ protected $cardinalityType = 'Google_Service_CloudRuntimeConfig_Cardinality';
+ protected $cardinalityDataType = '';
+
+ public function setCardinality(Google_Service_CloudRuntimeConfig_Cardinality $cardinality)
+ {
+ $this->cardinality = $cardinality;
+ }
+ public function getCardinality()
+ {
+ return $this->cardinality;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListConfigsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListConfigsResponse.php
new file mode 100644
index 00000000..607dbbc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListConfigsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_ListConfigsResponse extends Google_Collection
+{
+ protected $collection_key = 'configs';
+ protected $configsType = 'Google_Service_CloudRuntimeConfig_RuntimeConfig';
+ protected $configsDataType = 'array';
+ public $nextPageToken;
+
+ public function setConfigs($configs)
+ {
+ $this->configs = $configs;
+ }
+ public function getConfigs()
+ {
+ return $this->configs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListOperationsResponse.php
new file mode 100644
index 00000000..9ef11d09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_CloudRuntimeConfig_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListVariablesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListVariablesResponse.php
new file mode 100644
index 00000000..b063e7ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListVariablesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_ListVariablesResponse extends Google_Collection
+{
+ protected $collection_key = 'variables';
+ public $nextPageToken;
+ protected $variablesType = 'Google_Service_CloudRuntimeConfig_Variable';
+ protected $variablesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setVariables($variables)
+ {
+ $this->variables = $variables;
+ }
+ public function getVariables()
+ {
+ return $this->variables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListWaitersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListWaitersResponse.php
new file mode 100644
index 00000000..e6b7a0d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/ListWaitersResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_ListWaitersResponse extends Google_Collection
+{
+ protected $collection_key = 'waiters';
+ public $nextPageToken;
+ protected $waitersType = 'Google_Service_CloudRuntimeConfig_Waiter';
+ protected $waitersDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setWaiters($waiters)
+ {
+ $this->waiters = $waiters;
+ }
+ public function getWaiters()
+ {
+ return $this->waiters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Operation.php
new file mode 100644
index 00000000..7339420d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_CloudRuntimeConfig_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudRuntimeConfig_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php
new file mode 100644
index 00000000..25354914
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Operations.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
+ * $operations = $runtimeconfigService->operations;
+ * </code>
+ */
+class Google_Service_CloudRuntimeConfig_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param Google_Service_CloudRuntimeConfig_CancelOperationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
+ */
+ public function cancel($name, Google_Service_CloudRuntimeConfig_CancelOperationRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string filter The standard list filter.
+ * @return Google_Service_CloudRuntimeConfig_ListOperationsResponse
+ */
+ public function listOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Projects.php
new file mode 100644
index 00000000..10009973
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
+ * $projects = $runtimeconfigService->projects;
+ * </code>
+ */
+class Google_Service_CloudRuntimeConfig_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigs.php
new file mode 100644
index 00000000..013afd37
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigs.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "configs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
+ * $configs = $runtimeconfigService->configs;
+ * </code>
+ */
+class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigs extends Google_Service_Resource
+{
+ /**
+ * Creates a new RuntimeConfig resource. The configuration name must be unique
+ * within project. (configs.create)
+ *
+ * @param string $parent The [project
+ * ID](https://support.google.com/cloud/answer/6158840?hl=en_topic=6158848) for
+ * this request, in the format `projects/[PROJECT_ID]`.
+ * @param Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId An optional unique request_id. If server receives
+ * two Create requests with the same request_id then second request will be
+ * ignored and the resource stored in the backend will be returned. Empty
+ * request_id fields are ignored. It is responsibility of the client to ensure
+ * uniqueness of the request_id strings. The strings are limited to 64
+ * characters.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeConfig
+ */
+ public function create($parent, Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudRuntimeConfig_RuntimeConfig");
+ }
+ /**
+ * Deletes a RuntimeConfig resource. (configs.delete)
+ *
+ * @param string $name The RuntimeConfig resource to delete, in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
+ }
+ /**
+ * Gets information about a RuntimeConfig resource. (configs.get)
+ *
+ * @param string $name The name of the RuntimeConfig resource to retrieve, in
+ * the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeConfig
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_RuntimeConfig");
+ }
+ /**
+ * Lists all the RuntimeConfig resources within project.
+ * (configs.listProjectsConfigs)
+ *
+ * @param string $parent The [project
+ * ID](https://support.google.com/cloud/answer/6158840?hl=en_topic=6158848) for
+ * this request, in the format `projects/[PROJECT_ID]`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Specifies the number of results to return per page.
+ * If there are fewer elements than the specified number, returns all elements.
+ * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
+ * a `nextPageToken` returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_CloudRuntimeConfig_ListConfigsResponse
+ */
+ public function listProjectsConfigs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListConfigsResponse");
+ }
+ /**
+ * Updates a RuntimeConfig resource. The configuration must exist beforehand.
+ * (configs.update)
+ *
+ * @param string $name The name of the RuntimeConfig resource to update, in the
+ * format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ * @param Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeConfig
+ */
+ public function update($name, Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_CloudRuntimeConfig_RuntimeConfig");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsOperations.php
new file mode 100644
index 00000000..9e00b34d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsOperations.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
+ * $operations = $runtimeconfigService->operations;
+ * </code>
+ */
+class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigsOperations extends Google_Service_Resource
+{
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsVariables.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsVariables.php
new file mode 100644
index 00000000..23713ff3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsVariables.php
@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "variables" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
+ * $variables = $runtimeconfigService->variables;
+ * </code>
+ */
+class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigsVariables extends Google_Service_Resource
+{
+ /**
+ * Creates a variable within the given configuration. You cannot create a
+ * variable with a name that is a prefix of an existing variable name, or a name
+ * that has an existing variable name as a prefix.
+ *
+ * To learn more about creating a variable, read the [Setting and Getting Data
+ * ](/deployment-manager/runtime-configurator/set-and-get-variables)
+ * documentation. (variables.create)
+ *
+ * @param string $parent The path to the RutimeConfig resource that this
+ * variable should belong to. The configuration must exist beforehand; the path
+ * must by in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ * @param Google_Service_CloudRuntimeConfig_Variable $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId An optional unique request_id. If server receives
+ * two Create requests with the same request_id then second request will be
+ * ignored and the resource stored in the backend will be returned. Empty
+ * request_id fields are ignored. It is responsibility of the client to ensure
+ * uniqueness of the request_id strings. The strings are limited to 64
+ * characters.
+ * @return Google_Service_CloudRuntimeConfig_Variable
+ */
+ public function create($parent, Google_Service_CloudRuntimeConfig_Variable $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudRuntimeConfig_Variable");
+ }
+ /**
+ * Deletes a variable or multiple variables.
+ *
+ * If you specify a variable name, then that variable is deleted. If you specify
+ * a prefix and `recursive` is true, then all variables with that prefix are
+ * deleted. You must set a `recursive` to true if you delete variables by
+ * prefix. (variables.delete)
+ *
+ * @param string $name The name of the variable to delete, in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool recursive Set to `true` to recursively delete multiple
+ * variables with the same prefix.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
+ }
+ /**
+ * Gets information about a single variable. (variables.get)
+ *
+ * @param string $name The name of the variable to return, in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_Variable
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_Variable");
+ }
+ /**
+ * Lists variables within given a configuration, matching any provided filters.
+ * This only lists variable names, not the values.
+ * (variables.listProjectsConfigsVariables)
+ *
+ * @param string $parent The path to the RuntimeConfig resource for which you
+ * want to list variables. The configuration must exist beforehand; the path
+ * must by in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Specifies the number of results to return per page.
+ * If there are fewer elements than the specified number, returns all elements.
+ * @opt_param string filter Filters variables by matching the specified filter.
+ * For example:
+ *
+ * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`.
+ * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
+ * a `nextPageToken` returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_CloudRuntimeConfig_ListVariablesResponse
+ */
+ public function listProjectsConfigsVariables($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListVariablesResponse");
+ }
+ /**
+ * Updates an existing variable with a new value. (variables.update)
+ *
+ * @param string $name The name of the variable to update, in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
+ * @param Google_Service_CloudRuntimeConfig_Variable $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_Variable
+ */
+ public function update($name, Google_Service_CloudRuntimeConfig_Variable $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_CloudRuntimeConfig_Variable");
+ }
+ /**
+ * Watches a specific variable and waits for a change in the variable's value.
+ * When there is a change, this method returns the new value or times out.
+ *
+ * If a variable is deleted while being watched, the `variableState` state is
+ * set to `DELETED` and the method returns the last known variable `value`.
+ *
+ * If you set the deadline for watching to a larger value than internal timeout
+ * (60 seconds), the current variable value is returned and the `variableState`
+ * will be `VARIABLE_STATE_UNSPECIFIED`.
+ *
+ * To learn more about creating a watcher, read the [Watching a Variable for
+ * Changes](/deployment-manager/runtime-configurator/watching-a-variable)
+ * documentation. (variables.watch)
+ *
+ * @param string $name The name of the variable to watch, in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ * @param Google_Service_CloudRuntimeConfig_WatchVariableRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_Variable
+ */
+ public function watch($name, Google_Service_CloudRuntimeConfig_WatchVariableRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_CloudRuntimeConfig_Variable");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsWaiters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsWaiters.php
new file mode 100644
index 00000000..7f407cbd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Resource/ProjectsConfigsWaiters.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "waiters" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
+ * $waiters = $runtimeconfigService->waiters;
+ * </code>
+ */
+class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigsWaiters extends Google_Service_Resource
+{
+ /**
+ * Creates a Waiter resource. This operation returns a long-running Operation
+ * resource which can be polled for completion. However, a waiter with the given
+ * name will exist (and can be retrieved) prior to the operation completing. If
+ * the operation fails, the failed Waiter resource will still exist and must be
+ * deleted prior to subsequent creation attempts. (waiters.create)
+ *
+ * @param string $parent The path to the configuration that will own the waiter.
+ * The configuration must exist beforehand; the path must by in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`.
+ * @param Google_Service_CloudRuntimeConfig_Waiter $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId An optional unique request_id. If server receives
+ * two Create requests with the same request_id then second request will be
+ * ignored and information stored in the backend will be returned. Empty
+ * request_id fields are ignored. It is responsibility of the client to ensure
+ * uniqueness of the request_id strings. The strings are limited to 64
+ * characters.
+ * @return Google_Service_CloudRuntimeConfig_Operation
+ */
+ public function create($parent, Google_Service_CloudRuntimeConfig_Waiter $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudRuntimeConfig_Operation");
+ }
+ /**
+ * Deletes the waiter with the specified name. (waiters.delete)
+ *
+ * @param string $name The Waiter resource to delete, in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
+ }
+ /**
+ * Gets information about a single waiter. (waiters.get)
+ *
+ * @param string $name The fully-qualified name of the Waiter resource object to
+ * retrieve, in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudRuntimeConfig_Waiter
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_Waiter");
+ }
+ /**
+ * List waiters within the given configuration.
+ * (waiters.listProjectsConfigsWaiters)
+ *
+ * @param string $parent The path to the configuration for which you want to get
+ * a list of waiters. The configuration must exist beforehand; the path must by
+ * in the format:
+ *
+ * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Specifies the number of results to return per page.
+ * If there are fewer elements than the specified number, returns all elements.
+ * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
+ * a `nextPageToken` returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_CloudRuntimeConfig_ListWaitersResponse
+ */
+ public function listProjectsConfigsWaiters($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListWaitersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeConfig.php
new file mode 100644
index 00000000..445bade1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_RuntimeConfig extends Google_Model
+{
+ public $description;
+ public $name;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeconfigEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeconfigEmpty.php
new file mode 100644
index 00000000..a07606d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/RuntimeconfigEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Status.php
new file mode 100644
index 00000000..0c3c35ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Variable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Variable.php
new file mode 100644
index 00000000..2d0159cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Variable.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_Variable extends Google_Model
+{
+ public $name;
+ public $state;
+ public $text;
+ public $updateTime;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Waiter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Waiter.php
new file mode 100644
index 00000000..d115775b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/Waiter.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_Waiter extends Google_Model
+{
+ public $createTime;
+ public $done;
+ protected $errorType = 'Google_Service_CloudRuntimeConfig_Status';
+ protected $errorDataType = '';
+ protected $failureType = 'Google_Service_CloudRuntimeConfig_EndCondition';
+ protected $failureDataType = '';
+ public $name;
+ protected $successType = 'Google_Service_CloudRuntimeConfig_EndCondition';
+ protected $successDataType = '';
+ public $timeout;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudRuntimeConfig_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setFailure(Google_Service_CloudRuntimeConfig_EndCondition $failure)
+ {
+ $this->failure = $failure;
+ }
+ public function getFailure()
+ {
+ return $this->failure;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSuccess(Google_Service_CloudRuntimeConfig_EndCondition $success)
+ {
+ $this->success = $success;
+ }
+ public function getSuccess()
+ {
+ return $this->success;
+ }
+ public function setTimeout($timeout)
+ {
+ $this->timeout = $timeout;
+ }
+ public function getTimeout()
+ {
+ return $this->timeout;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/WatchVariableRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/WatchVariableRequest.php
new file mode 100644
index 00000000..7de9800f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudRuntimeConfig/WatchVariableRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudRuntimeConfig_WatchVariableRequest extends Google_Model
+{
+ public $newerThan;
+
+ public function setNewerThan($newerThan)
+ {
+ $this->newerThan = $newerThan;
+ }
+ public function getNewerThan()
+ {
+ return $this->newerThan;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php
new file mode 100644
index 00000000..4aa4def0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudSourceRepositories (v1).
+ *
+ * <p>
+ * Access source code repositories hosted by Google.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/eap/cloud-repositories/cloud-sourcerepo-api" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudSourceRepositories extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects_repos;
+
+ /**
+ * Constructs the internal representation of the CloudSourceRepositories
+ * service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://sourcerepo.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'sourcerepo';
+
+ $this->projects_repos = new Google_Service_CloudSourceRepositories_Resource_ProjectsRepos(
+ $this,
+ $this->serviceName,
+ 'repos',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/repos',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}/repos',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditConfig.php
new file mode 100644
index 00000000..28d14b9b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditConfig.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_AuditConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ protected $auditLogConfigsType = 'Google_Service_CloudSourceRepositories_AuditLogConfig';
+ protected $auditLogConfigsDataType = 'array';
+ public $exemptedMembers;
+ public $service;
+
+ public function setAuditLogConfigs($auditLogConfigs)
+ {
+ $this->auditLogConfigs = $auditLogConfigs;
+ }
+ public function getAuditLogConfigs()
+ {
+ return $this->auditLogConfigs;
+ }
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditLogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditLogConfig.php
new file mode 100644
index 00000000..6e518855
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/AuditLogConfig.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_AuditLogConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ public $exemptedMembers;
+ public $logType;
+
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setLogType($logType)
+ {
+ $this->logType = $logType;
+ }
+ public function getLogType()
+ {
+ return $this->logType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php
new file mode 100644
index 00000000..4cec3792
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CloudAuditOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CloudAuditOptions.php
new file mode 100644
index 00000000..48b8fc29
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CloudAuditOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_CloudAuditOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Condition.php
new file mode 100644
index 00000000..24263ed5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Condition.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_Condition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $iam;
+ public $op;
+ public $svc;
+ public $sys;
+ public $value;
+ public $values;
+
+ public function setIam($iam)
+ {
+ $this->iam = $iam;
+ }
+ public function getIam()
+ {
+ return $this->iam;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setSvc($svc)
+ {
+ $this->svc = $svc;
+ }
+ public function getSvc()
+ {
+ return $this->svc;
+ }
+ public function setSys($sys)
+ {
+ $this->sys = $sys;
+ }
+ public function getSys()
+ {
+ return $this->sys;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CounterOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CounterOptions.php
new file mode 100644
index 00000000..bd46c5de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/CounterOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_CounterOptions extends Google_Model
+{
+ public $field;
+ public $metric;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/DataAccessOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/DataAccessOptions.php
new file mode 100644
index 00000000..7ca520ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/DataAccessOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_DataAccessOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/ListReposResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/ListReposResponse.php
new file mode 100644
index 00000000..d96081c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/ListReposResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_ListReposResponse extends Google_Collection
+{
+ protected $collection_key = 'repos';
+ protected $reposType = 'Google_Service_CloudSourceRepositories_Repo';
+ protected $reposDataType = 'array';
+
+ public function setRepos($repos)
+ {
+ $this->repos = $repos;
+ }
+ public function getRepos()
+ {
+ return $this->repos;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/LogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/LogConfig.php
new file mode 100644
index 00000000..dd5aec75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/LogConfig.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_LogConfig extends Google_Model
+{
+ protected $cloudAuditType = 'Google_Service_CloudSourceRepositories_CloudAuditOptions';
+ protected $cloudAuditDataType = '';
+ protected $counterType = 'Google_Service_CloudSourceRepositories_CounterOptions';
+ protected $counterDataType = '';
+ protected $dataAccessType = 'Google_Service_CloudSourceRepositories_DataAccessOptions';
+ protected $dataAccessDataType = '';
+
+ public function setCloudAudit(Google_Service_CloudSourceRepositories_CloudAuditOptions $cloudAudit)
+ {
+ $this->cloudAudit = $cloudAudit;
+ }
+ public function getCloudAudit()
+ {
+ return $this->cloudAudit;
+ }
+ public function setCounter(Google_Service_CloudSourceRepositories_CounterOptions $counter)
+ {
+ $this->counter = $counter;
+ }
+ public function getCounter()
+ {
+ return $this->counter;
+ }
+ public function setDataAccess(Google_Service_CloudSourceRepositories_DataAccessOptions $dataAccess)
+ {
+ $this->dataAccess = $dataAccess;
+ }
+ public function getDataAccess()
+ {
+ return $this->dataAccess;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/MirrorConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/MirrorConfig.php
new file mode 100644
index 00000000..ed8f6f0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/MirrorConfig.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_MirrorConfig extends Google_Model
+{
+ public $deployKeyId;
+ public $url;
+ public $webhookId;
+
+ public function setDeployKeyId($deployKeyId)
+ {
+ $this->deployKeyId = $deployKeyId;
+ }
+ public function getDeployKeyId()
+ {
+ return $this->deployKeyId;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWebhookId($webhookId)
+ {
+ $this->webhookId = $webhookId;
+ }
+ public function getWebhookId()
+ {
+ return $this->webhookId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Policy.php
new file mode 100644
index 00000000..8be72e81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Policy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_Policy extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $auditConfigsType = 'Google_Service_CloudSourceRepositories_AuditConfig';
+ protected $auditConfigsDataType = 'array';
+ protected $bindingsType = 'Google_Service_CloudSourceRepositories_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $iamOwned;
+ protected $rulesType = 'Google_Service_CloudSourceRepositories_Rule';
+ protected $rulesDataType = 'array';
+ public $version;
+
+ public function setAuditConfigs($auditConfigs)
+ {
+ $this->auditConfigs = $auditConfigs;
+ }
+ public function getAuditConfigs()
+ {
+ return $this->auditConfigs;
+ }
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIamOwned($iamOwned)
+ {
+ $this->iamOwned = $iamOwned;
+ }
+ public function getIamOwned()
+ {
+ return $this->iamOwned;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php
new file mode 100644
index 00000000..6dae23e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Repo.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_Repo extends Google_Model
+{
+ protected $mirrorConfigType = 'Google_Service_CloudSourceRepositories_MirrorConfig';
+ protected $mirrorConfigDataType = '';
+ public $name;
+ public $size;
+ public $url;
+
+ public function setMirrorConfig(Google_Service_CloudSourceRepositories_MirrorConfig $mirrorConfig)
+ {
+ $this->mirrorConfig = $mirrorConfig;
+ }
+ public function getMirrorConfig()
+ {
+ return $this->mirrorConfig;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php
new file mode 100644
index 00000000..fcac6a61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sourcerepoService = new Google_Service_CloudSourceRepositories(...);
+ * $projects = $sourcerepoService->projects;
+ * </code>
+ */
+class Google_Service_CloudSourceRepositories_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php
new file mode 100644
index 00000000..8defb71c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Resource/ProjectsRepos.php
@@ -0,0 +1,139 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "repos" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sourcerepoService = new Google_Service_CloudSourceRepositories(...);
+ * $repos = $sourcerepoService->repos;
+ * </code>
+ */
+class Google_Service_CloudSourceRepositories_Resource_ProjectsRepos extends Google_Service_Resource
+{
+ /**
+ * Creates a repo in the given project with the given name..
+ *
+ * If the named repository already exists, `CreateRepo` returns
+ * `ALREADY_EXISTS`. (repos.create)
+ *
+ * @param string $parent The project in which to create the repo. Values are of
+ * the form `projects/`.
+ * @param Google_Service_CloudSourceRepositories_Repo $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSourceRepositories_Repo
+ */
+ public function create($parent, Google_Service_CloudSourceRepositories_Repo $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_CloudSourceRepositories_Repo");
+ }
+ /**
+ * Deletes a repo. (repos.delete)
+ *
+ * @param string $name The name of the repo to delete. Values are of the form
+ * `projects//repos/`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSourceRepositories_SourcerepoEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudSourceRepositories_SourcerepoEmpty");
+ }
+ /**
+ * Returns information about a repo. (repos.get)
+ *
+ * @param string $name The name of the requested repository. Values are of the
+ * form `projects//repos/`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSourceRepositories_Repo
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudSourceRepositories_Repo");
+ }
+ /**
+ * Gets the access control policy for a resource. Returns an empty policy if the
+ * resource exists and does not have a policy set. (repos.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. See the operation documentation for the appropriate value for this
+ * field.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSourceRepositories_Policy
+ */
+ public function getIamPolicy($resource, $optParams = array())
+ {
+ $params = array('resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_CloudSourceRepositories_Policy");
+ }
+ /**
+ * Returns all repos belonging to a project. (repos.listProjectsRepos)
+ *
+ * @param string $name The project ID whose repos should be listed. Values are
+ * of the form `projects/`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSourceRepositories_ListReposResponse
+ */
+ public function listProjectsRepos($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudSourceRepositories_ListReposResponse");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (repos.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_CloudSourceRepositories_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSourceRepositories_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_CloudSourceRepositories_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_CloudSourceRepositories_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the
+ * resource does not exist, this will return an empty set of permissions, not a
+ * NOT_FOUND error. (repos.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. See the operation documentation for the appropriate value
+ * for this field.
+ * @param Google_Service_CloudSourceRepositories_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSourceRepositories_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_CloudSourceRepositories_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_CloudSourceRepositories_TestIamPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Rule.php
new file mode 100644
index 00000000..fb546cda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/Rule.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_Rule extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $action;
+ protected $conditionsType = 'Google_Service_CloudSourceRepositories_Condition';
+ protected $conditionsDataType = 'array';
+ public $description;
+ public $in;
+ protected $logConfigType = 'Google_Service_CloudSourceRepositories_LogConfig';
+ protected $logConfigDataType = 'array';
+ public $notIn;
+ public $permissions;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIn($in)
+ {
+ $this->in = $in;
+ }
+ public function getIn()
+ {
+ return $this->in;
+ }
+ public function setLogConfig($logConfig)
+ {
+ $this->logConfig = $logConfig;
+ }
+ public function getLogConfig()
+ {
+ return $this->logConfig;
+ }
+ public function setNotIn($notIn)
+ {
+ $this->notIn = $notIn;
+ }
+ public function getNotIn()
+ {
+ return $this->notIn;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SetIamPolicyRequest.php
new file mode 100644
index 00000000..f3539dbc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SetIamPolicyRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_CloudSourceRepositories_Policy';
+ protected $policyDataType = '';
+ public $updateMask;
+
+ public function setPolicy(Google_Service_CloudSourceRepositories_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+ public function setUpdateMask($updateMask)
+ {
+ $this->updateMask = $updateMask;
+ }
+ public function getUpdateMask()
+ {
+ return $this->updateMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SourcerepoEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SourcerepoEmpty.php
new file mode 100644
index 00000000..46cf8752
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/SourcerepoEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_SourcerepoEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..8c0e7a3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..f8cb728e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSourceRepositories/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSourceRepositories_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI.php
new file mode 100644
index 00000000..065ec190
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudSpeechAPI (v1beta1).
+ *
+ * <p>
+ * Google Cloud Speech API.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/speech/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudSpeechAPI extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $operations;
+ public $speech;
+
+ /**
+ * Constructs the internal representation of the CloudSpeechAPI service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://speech.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1beta1';
+ $this->serviceName = 'speech';
+
+ $this->operations = new Google_Service_CloudSpeechAPI_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1beta1/operations/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta1/operations/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta1/operations/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->speech = new Google_Service_CloudSpeechAPI_Resource_Speech(
+ $this,
+ $this->serviceName,
+ 'speech',
+ array(
+ 'methods' => array(
+ 'asyncrecognize' => array(
+ 'path' => 'v1beta1/speech:asyncrecognize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'syncrecognize' => array(
+ 'path' => 'v1beta1/speech:syncrecognize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/AsyncRecognizeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/AsyncRecognizeRequest.php
new file mode 100644
index 00000000..cf03fbd9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/AsyncRecognizeRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_AsyncRecognizeRequest extends Google_Model
+{
+ protected $audioType = 'Google_Service_CloudSpeechAPI_RecognitionAudio';
+ protected $audioDataType = '';
+ protected $configType = 'Google_Service_CloudSpeechAPI_RecognitionConfig';
+ protected $configDataType = '';
+
+ public function setAudio(Google_Service_CloudSpeechAPI_RecognitionAudio $audio)
+ {
+ $this->audio = $audio;
+ }
+ public function getAudio()
+ {
+ return $this->audio;
+ }
+ public function setConfig(Google_Service_CloudSpeechAPI_RecognitionConfig $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/CancelOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/CancelOperationRequest.php
new file mode 100644
index 00000000..123426e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/CancelOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_CancelOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/ListOperationsResponse.php
new file mode 100644
index 00000000..8276777d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_CloudSpeechAPI_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Operation.php
new file mode 100644
index 00000000..1f356d2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_CloudSpeechAPI_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_CloudSpeechAPI_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionAudio.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionAudio.php
new file mode 100644
index 00000000..8b08ac8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionAudio.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_RecognitionAudio extends Google_Model
+{
+ public $content;
+ public $uri;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionConfig.php
new file mode 100644
index 00000000..a656b8de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/RecognitionConfig.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_RecognitionConfig extends Google_Model
+{
+ public $encoding;
+ public $languageCode;
+ public $maxAlternatives;
+ public $profanityFilter;
+ public $sampleRate;
+ protected $speechContextType = 'Google_Service_CloudSpeechAPI_SpeechContext';
+ protected $speechContextDataType = '';
+
+ public function setEncoding($encoding)
+ {
+ $this->encoding = $encoding;
+ }
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+ public function setMaxAlternatives($maxAlternatives)
+ {
+ $this->maxAlternatives = $maxAlternatives;
+ }
+ public function getMaxAlternatives()
+ {
+ return $this->maxAlternatives;
+ }
+ public function setProfanityFilter($profanityFilter)
+ {
+ $this->profanityFilter = $profanityFilter;
+ }
+ public function getProfanityFilter()
+ {
+ return $this->profanityFilter;
+ }
+ public function setSampleRate($sampleRate)
+ {
+ $this->sampleRate = $sampleRate;
+ }
+ public function getSampleRate()
+ {
+ return $this->sampleRate;
+ }
+ public function setSpeechContext(Google_Service_CloudSpeechAPI_SpeechContext $speechContext)
+ {
+ $this->speechContext = $speechContext;
+ }
+ public function getSpeechContext()
+ {
+ return $this->speechContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Operations.php
new file mode 100644
index 00000000..07efe1ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Operations.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $speechService = new Google_Service_CloudSpeechAPI(...);
+ * $operations = $speechService->operations;
+ * </code>
+ */
+class Google_Service_CloudSpeechAPI_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param Google_Service_CloudSpeechAPI_CancelOperationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSpeechAPI_SpeechEmpty
+ */
+ public function cancel($name, Google_Service_CloudSpeechAPI_CancelOperationRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_CloudSpeechAPI_SpeechEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSpeechAPI_SpeechEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudSpeechAPI_SpeechEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSpeechAPI_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudSpeechAPI_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listOperations)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string filter The standard list filter.
+ * @opt_param string name The name of the operation collection.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_CloudSpeechAPI_ListOperationsResponse
+ */
+ public function listOperations($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudSpeechAPI_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Speech.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Speech.php
new file mode 100644
index 00000000..694ecd44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Resource/Speech.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "speech" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $speechService = new Google_Service_CloudSpeechAPI(...);
+ * $speech = $speechService->speech;
+ * </code>
+ */
+class Google_Service_CloudSpeechAPI_Resource_Speech extends Google_Service_Resource
+{
+ /**
+ * Perform asynchronous speech-recognition: receive results via the
+ * google.longrunning.Operations interface. Returns either an `Operation.error`
+ * or an `Operation.response` which contains an `AsyncRecognizeResponse`
+ * message. (speech.asyncrecognize)
+ *
+ * @param Google_Service_CloudSpeechAPI_AsyncRecognizeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSpeechAPI_Operation
+ */
+ public function asyncrecognize(Google_Service_CloudSpeechAPI_AsyncRecognizeRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('asyncrecognize', array($params), "Google_Service_CloudSpeechAPI_Operation");
+ }
+ /**
+ * Perform synchronous speech-recognition: receive results after all audio has
+ * been sent and processed. (speech.syncrecognize)
+ *
+ * @param Google_Service_CloudSpeechAPI_SyncRecognizeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudSpeechAPI_SyncRecognizeResponse
+ */
+ public function syncrecognize(Google_Service_CloudSpeechAPI_SyncRecognizeRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('syncrecognize', array($params), "Google_Service_CloudSpeechAPI_SyncRecognizeResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechContext.php
new file mode 100644
index 00000000..256dfd05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechContext.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_SpeechContext extends Google_Collection
+{
+ protected $collection_key = 'phrases';
+ public $phrases;
+
+ public function setPhrases($phrases)
+ {
+ $this->phrases = $phrases;
+ }
+ public function getPhrases()
+ {
+ return $this->phrases;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechEmpty.php
new file mode 100644
index 00000000..e699d424
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_SpeechEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionAlternative.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionAlternative.php
new file mode 100644
index 00000000..53b6a76a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionAlternative.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_SpeechRecognitionAlternative extends Google_Model
+{
+ public $confidence;
+ public $transcript;
+
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setTranscript($transcript)
+ {
+ $this->transcript = $transcript;
+ }
+ public function getTranscript()
+ {
+ return $this->transcript;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionResult.php
new file mode 100644
index 00000000..5bab6493
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SpeechRecognitionResult.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_SpeechRecognitionResult extends Google_Collection
+{
+ protected $collection_key = 'alternatives';
+ protected $alternativesType = 'Google_Service_CloudSpeechAPI_SpeechRecognitionAlternative';
+ protected $alternativesDataType = 'array';
+
+ public function setAlternatives($alternatives)
+ {
+ $this->alternatives = $alternatives;
+ }
+ public function getAlternatives()
+ {
+ return $this->alternatives;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Status.php
new file mode 100644
index 00000000..62ed7860
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeRequest.php
new file mode 100644
index 00000000..0cb07439
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_SyncRecognizeRequest extends Google_Model
+{
+ protected $audioType = 'Google_Service_CloudSpeechAPI_RecognitionAudio';
+ protected $audioDataType = '';
+ protected $configType = 'Google_Service_CloudSpeechAPI_RecognitionConfig';
+ protected $configDataType = '';
+
+ public function setAudio(Google_Service_CloudSpeechAPI_RecognitionAudio $audio)
+ {
+ $this->audio = $audio;
+ }
+ public function getAudio()
+ {
+ return $this->audio;
+ }
+ public function setConfig(Google_Service_CloudSpeechAPI_RecognitionConfig $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeResponse.php
new file mode 100644
index 00000000..753753bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudSpeechAPI/SyncRecognizeResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudSpeechAPI_SyncRecognizeResponse extends Google_Collection
+{
+ protected $collection_key = 'results';
+ protected $resultsType = 'Google_Service_CloudSpeechAPI_SpeechRecognitionResult';
+ protected $resultsDataType = 'array';
+
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace.php
new file mode 100644
index 00000000..8a7b7876
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace.php
@@ -0,0 +1,146 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudTrace (v1).
+ *
+ * <p>
+ * Send and retrieve trace data from Stackdriver Trace. Data is generated and
+ * available by default for all App Engine applications. Data from other
+ * applications can be written to Stackdriver Trace for display, reporting, and
+ * analysis.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/trace" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudTrace extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Write Trace data for a project or application. */
+ const TRACE_APPEND =
+ "https://www.googleapis.com/auth/trace.append";
+ /** Read Trace data for a project or application. */
+ const TRACE_READONLY =
+ "https://www.googleapis.com/auth/trace.readonly";
+
+ public $projects;
+ public $projects_traces;
+
+ /**
+ * Constructs the internal representation of the CloudTrace service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://cloudtrace.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'cloudtrace';
+
+ $this->projects = new Google_Service_CloudTrace_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'patchTraces' => array(
+ 'path' => 'v1/projects/{projectId}/traces',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_traces = new Google_Service_CloudTrace_Resource_ProjectsTraces(
+ $this,
+ $this->serviceName,
+ 'traces',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/projects/{projectId}/traces/{traceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'traceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/traces',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/CloudtraceEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/CloudtraceEmpty.php
new file mode 100644
index 00000000..70f91b23
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/CloudtraceEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudTrace_CloudtraceEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/ListTracesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/ListTracesResponse.php
new file mode 100644
index 00000000..da69752c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/ListTracesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudTrace_ListTracesResponse extends Google_Collection
+{
+ protected $collection_key = 'traces';
+ public $nextPageToken;
+ protected $tracesType = 'Google_Service_CloudTrace_Trace';
+ protected $tracesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTraces($traces)
+ {
+ $this->traces = $traces;
+ }
+ public function getTraces()
+ {
+ return $this->traces;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/Projects.php
new file mode 100644
index 00000000..18a26dbe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/Projects.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudtraceService = new Google_Service_CloudTrace(...);
+ * $projects = $cloudtraceService->projects;
+ * </code>
+ */
+class Google_Service_CloudTrace_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Sends new traces to Stackdriver Trace or updates existing traces. If the ID
+ * of a trace that you send matches that of an existing trace, any fields in the
+ * existing trace and its spans are overwritten by the provided values, and any
+ * new fields provided are merged with the existing trace data. If the ID does
+ * not match, a new trace is created. (projects.patchTraces)
+ *
+ * @param string $projectId ID of the Cloud project where the trace data is
+ * stored.
+ * @param Google_Service_CloudTrace_Traces $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudTrace_CloudtraceEmpty
+ */
+ public function patchTraces($projectId, Google_Service_CloudTrace_Traces $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patchTraces', array($params), "Google_Service_CloudTrace_CloudtraceEmpty");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/ProjectsTraces.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/ProjectsTraces.php
new file mode 100644
index 00000000..2fe3f790
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Resource/ProjectsTraces.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "traces" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudtraceService = new Google_Service_CloudTrace(...);
+ * $traces = $cloudtraceService->traces;
+ * </code>
+ */
+class Google_Service_CloudTrace_Resource_ProjectsTraces extends Google_Service_Resource
+{
+ /**
+ * Gets a single trace by its ID. (traces.get)
+ *
+ * @param string $projectId ID of the Cloud project where the trace data is
+ * stored.
+ * @param string $traceId ID of the trace to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudTrace_Trace
+ */
+ public function get($projectId, $traceId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'traceId' => $traceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudTrace_Trace");
+ }
+ /**
+ * Returns of a list of traces that match the specified filter conditions.
+ * (traces.listProjectsTraces)
+ *
+ * @param string $projectId ID of the Cloud project where the trace data is
+ * stored.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string orderBy Field used to sort the returned traces. Optional.
+ * Can be one of the following:
+ *
+ * * `trace_id` * `name` (`name` field of root span in the trace) *
+ * `duration` (difference between `end_time` and `start_time` fields of the
+ * root span) * `start` (`start_time` field of the root span)
+ *
+ * Descending order can be specified by appending `desc` to the sort field (for
+ * example, `name desc`).
+ *
+ * Only one sort field is permitted.
+ * @opt_param string filter An optional filter for the request.
+ * @opt_param string endTime Start of the time interval (inclusive) during which
+ * the trace data was collected from the application.
+ * @opt_param string pageToken Token identifying the page of results to return.
+ * If provided, use the value of the `next_page_token` field from a previous
+ * request. Optional.
+ * @opt_param string startTime End of the time interval (inclusive) during which
+ * the trace data was collected from the application.
+ * @opt_param int pageSize Maximum number of traces to return. If not specified
+ * or <= 0, the implementation selects a reasonable value. The implementation
+ * may return fewer traces than the requested page size. Optional.
+ * @opt_param string view Type of data returned for traces in the list.
+ * Optional. Default is `MINIMAL`.
+ * @return Google_Service_CloudTrace_ListTracesResponse
+ */
+ public function listProjectsTraces($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudTrace_ListTracesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Trace.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Trace.php
new file mode 100644
index 00000000..f44f3558
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Trace.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudTrace_Trace extends Google_Collection
+{
+ protected $collection_key = 'spans';
+ public $projectId;
+ protected $spansType = 'Google_Service_CloudTrace_TraceSpan';
+ protected $spansDataType = 'array';
+ public $traceId;
+
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setSpans($spans)
+ {
+ $this->spans = $spans;
+ }
+ public function getSpans()
+ {
+ return $this->spans;
+ }
+ public function setTraceId($traceId)
+ {
+ $this->traceId = $traceId;
+ }
+ public function getTraceId()
+ {
+ return $this->traceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/TraceSpan.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/TraceSpan.php
new file mode 100644
index 00000000..d14b2f8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/TraceSpan.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudTrace_TraceSpan extends Google_Model
+{
+ public $endTime;
+ public $kind;
+ public $labels;
+ public $name;
+ public $parentSpanId;
+ public $spanId;
+ public $startTime;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentSpanId($parentSpanId)
+ {
+ $this->parentSpanId = $parentSpanId;
+ }
+ public function getParentSpanId()
+ {
+ return $this->parentSpanId;
+ }
+ public function setSpanId($spanId)
+ {
+ $this->spanId = $spanId;
+ }
+ public function getSpanId()
+ {
+ return $this->spanId;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Traces.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Traces.php
new file mode 100644
index 00000000..411f545c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudTrace/Traces.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudTrace_Traces extends Google_Collection
+{
+ protected $collection_key = 'traces';
+ protected $tracesType = 'Google_Service_CloudTrace_Trace';
+ protected $tracesDataType = 'array';
+
+ public function setTraces($traces)
+ {
+ $this->traces = $traces;
+ }
+ public function getTraces()
+ {
+ return $this->traces;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts.php
new file mode 100644
index 00000000..615084f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts.php
@@ -0,0 +1,514 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for CloudUserAccounts (vm_alpha).
+ *
+ * <p>
+ * Creates and manages users and groups for accessing Google Compute Engine
+ * virtual machines.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/compute/docs/access/user-accounts/api/latest/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_CloudUserAccounts extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** Manage your Google Cloud User Accounts. */
+ const CLOUD_USERACCOUNTS =
+ "https://www.googleapis.com/auth/cloud.useraccounts";
+ /** View your Google Cloud User Accounts. */
+ const CLOUD_USERACCOUNTS_READONLY =
+ "https://www.googleapis.com/auth/cloud.useraccounts.readonly";
+
+ public $globalAccountsOperations;
+ public $groups;
+ public $linux;
+ public $users;
+
+ /**
+ * Constructs the internal representation of the CloudUserAccounts service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'clouduseraccounts/vm_alpha/projects/';
+ $this->version = 'vm_alpha';
+ $this->serviceName = 'clouduseraccounts';
+
+ $this->globalAccountsOperations = new Google_Service_CloudUserAccounts_Resource_GlobalAccountsOperations(
+ $this,
+ $this->serviceName,
+ 'globalAccountsOperations',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/operations/{operation}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->groups = new Google_Service_CloudUserAccounts_Resource_Groups(
+ $this,
+ $this->serviceName,
+ 'groups',
+ array(
+ 'methods' => array(
+ 'addMember' => array(
+ 'path' => '{project}/global/groups/{groupName}/addMember',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'groupName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/global/groups/{groupName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'groupName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/groups/{groupName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'groupName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => '{project}/global/groups/{resource}/getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/groups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/groups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'removeMember' => array(
+ 'path' => '{project}/global/groups/{groupName}/removeMember',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'groupName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => '{project}/global/groups/{resource}/setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => '{project}/global/groups/{resource}/testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->linux = new Google_Service_CloudUserAccounts_Resource_Linux(
+ $this,
+ $this->serviceName,
+ 'linux',
+ array(
+ 'methods' => array(
+ 'getAuthorizedKeysView' => array(
+ 'path' => '{project}/zones/{zone}/authorizedKeysView/{user}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'user' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'login' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'getLinuxAccountViews' => array(
+ 'path' => '{project}/zones/{zone}/linuxAccountViews',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users = new Google_Service_CloudUserAccounts_Resource_Users(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'addPublicKey' => array(
+ 'path' => '{project}/global/users/{user}/addPublicKey',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'user' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/global/users/{user}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'user' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/users/{user}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'user' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => '{project}/global/users/{resource}/getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/users',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'removePublicKey' => array(
+ 'path' => '{project}/global/users/{user}/removePublicKey',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'user' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => '{project}/global/users/{resource}/setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => '{project}/global/users/{resource}/testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuditConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuditConfig.php
new file mode 100644
index 00000000..aeef16e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuditConfig.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_AuditConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ public $exemptedMembers;
+ public $service;
+
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuthorizedKeysView.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuthorizedKeysView.php
new file mode 100644
index 00000000..839aa89b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/AuthorizedKeysView.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ public $keys;
+ public $sudoer;
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+ public function setSudoer($sudoer)
+ {
+ $this->sudoer = $sudoer;
+ }
+ public function getSudoer()
+ {
+ return $this->sudoer;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Binding.php
new file mode 100644
index 00000000..187630d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Condition.php
new file mode 100644
index 00000000..51da8763
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Condition.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_Condition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $iam;
+ public $op;
+ public $svc;
+ public $sys;
+ public $value;
+ public $values;
+
+ public function setIam($iam)
+ {
+ $this->iam = $iam;
+ }
+ public function getIam()
+ {
+ return $this->iam;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setSvc($svc)
+ {
+ $this->svc = $svc;
+ }
+ public function getSvc()
+ {
+ return $this->svc;
+ }
+ public function setSys($sys)
+ {
+ $this->sys = $sys;
+ }
+ public function getSys()
+ {
+ return $this->sys;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Group.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Group.php
new file mode 100644
index 00000000..b7bb5f58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Group.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_Group extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $members;
+ public $name;
+ public $selfLink;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupList.php
new file mode 100644
index 00000000..89e71e64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_GroupList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_CloudUserAccounts_Group';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsAddMemberRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsAddMemberRequest.php
new file mode 100644
index 00000000..7683d8fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsAddMemberRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_GroupsAddMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $users;
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsRemoveMemberRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsRemoveMemberRequest.php
new file mode 100644
index 00000000..5d5cf7c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/GroupsRemoveMemberRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $users;
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxAccountViews.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxAccountViews.php
new file mode 100644
index 00000000..c7498762
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxAccountViews.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_LinuxAccountViews extends Google_Collection
+{
+ protected $collection_key = 'userViews';
+ protected $groupViewsType = 'Google_Service_CloudUserAccounts_LinuxGroupView';
+ protected $groupViewsDataType = 'array';
+ public $kind;
+ protected $userViewsType = 'Google_Service_CloudUserAccounts_LinuxUserView';
+ protected $userViewsDataType = 'array';
+
+ public function setGroupViews($groupViews)
+ {
+ $this->groupViews = $groupViews;
+ }
+ public function getGroupViews()
+ {
+ return $this->groupViews;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUserViews($userViews)
+ {
+ $this->userViews = $userViews;
+ }
+ public function getUserViews()
+ {
+ return $this->userViews;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetAuthorizedKeysViewResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetAuthorizedKeysViewResponse.php
new file mode 100644
index 00000000..04442f27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetAuthorizedKeysViewResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model
+{
+ protected $resourceType = 'Google_Service_CloudUserAccounts_AuthorizedKeysView';
+ protected $resourceDataType = '';
+
+ public function setResource(Google_Service_CloudUserAccounts_AuthorizedKeysView $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetLinuxAccountViewsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetLinuxAccountViewsResponse.php
new file mode 100644
index 00000000..97979a16
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGetLinuxAccountViewsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model
+{
+ protected $resourceType = 'Google_Service_CloudUserAccounts_LinuxAccountViews';
+ protected $resourceDataType = '';
+
+ public function setResource(Google_Service_CloudUserAccounts_LinuxAccountViews $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGroupView.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGroupView.php
new file mode 100644
index 00000000..9faa5af9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxGroupView.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_LinuxGroupView extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $gid;
+ public $groupName;
+ public $members;
+
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setGroupName($groupName)
+ {
+ $this->groupName = $groupName;
+ }
+ public function getGroupName()
+ {
+ return $this->groupName;
+ }
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxUserView.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxUserView.php
new file mode 100644
index 00000000..c1fedb20
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LinuxUserView.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_LinuxUserView extends Google_Model
+{
+ public $gecos;
+ public $gid;
+ public $homeDirectory;
+ public $shell;
+ public $uid;
+ public $username;
+
+ public function setGecos($gecos)
+ {
+ $this->gecos = $gecos;
+ }
+ public function getGecos()
+ {
+ return $this->gecos;
+ }
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setHomeDirectory($homeDirectory)
+ {
+ $this->homeDirectory = $homeDirectory;
+ }
+ public function getHomeDirectory()
+ {
+ return $this->homeDirectory;
+ }
+ public function setShell($shell)
+ {
+ $this->shell = $shell;
+ }
+ public function getShell()
+ {
+ return $this->shell;
+ }
+ public function setUid($uid)
+ {
+ $this->uid = $uid;
+ }
+ public function getUid()
+ {
+ return $this->uid;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfig.php
new file mode 100644
index 00000000..2b4839e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfig.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_LogConfig extends Google_Model
+{
+ protected $counterType = 'Google_Service_CloudUserAccounts_LogConfigCounterOptions';
+ protected $counterDataType = '';
+
+ public function setCounter(Google_Service_CloudUserAccounts_LogConfigCounterOptions $counter)
+ {
+ $this->counter = $counter;
+ }
+ public function getCounter()
+ {
+ return $this->counter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfigCounterOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfigCounterOptions.php
new file mode 100644
index 00000000..4efe7f1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/LogConfigCounterOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_LogConfigCounterOptions extends Google_Model
+{
+ public $field;
+ public $metric;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Operation.php
new file mode 100644
index 00000000..851faf5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Operation.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $description;
+ public $endTime;
+ protected $errorType = 'Google_Service_CloudUserAccounts_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_CloudUserAccounts_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_CloudUserAccounts_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationError.php
new file mode 100644
index 00000000..87f1583a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_CloudUserAccounts_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationErrorErrors.php
new file mode 100644
index 00000000..59fccfb6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationList.php
new file mode 100644
index 00000000..c60b9998
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_CloudUserAccounts_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarnings.php
new file mode 100644
index 00000000..0efbc0ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_CloudUserAccounts_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarningsData.php
new file mode 100644
index 00000000..f93758cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Policy.php
new file mode 100644
index 00000000..bc8b2b22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Policy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_Policy extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $auditConfigsType = 'Google_Service_CloudUserAccounts_AuditConfig';
+ protected $auditConfigsDataType = 'array';
+ protected $bindingsType = 'Google_Service_CloudUserAccounts_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $iamOwned;
+ protected $rulesType = 'Google_Service_CloudUserAccounts_Rule';
+ protected $rulesDataType = 'array';
+ public $version;
+
+ public function setAuditConfigs($auditConfigs)
+ {
+ $this->auditConfigs = $auditConfigs;
+ }
+ public function getAuditConfigs()
+ {
+ return $this->auditConfigs;
+ }
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIamOwned($iamOwned)
+ {
+ $this->iamOwned = $iamOwned;
+ }
+ public function getIamOwned()
+ {
+ return $this->iamOwned;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/PublicKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/PublicKey.php
new file mode 100644
index 00000000..c796f305
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/PublicKey.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_PublicKey extends Google_Model
+{
+ public $creationTimestamp;
+ public $description;
+ public $expirationTimestamp;
+ public $fingerprint;
+ public $key;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setExpirationTimestamp($expirationTimestamp)
+ {
+ $this->expirationTimestamp = $expirationTimestamp;
+ }
+ public function getExpirationTimestamp()
+ {
+ return $this->expirationTimestamp;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/GlobalAccountsOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/GlobalAccountsOperations.php
new file mode 100644
index 00000000..8291b075
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/GlobalAccountsOperations.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "globalAccountsOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $globalAccountsOperations = $clouduseraccountsService->globalAccountsOperations;
+ * </code>
+ */
+class Google_Service_CloudUserAccounts_Resource_GlobalAccountsOperations extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified operation resource. (globalAccountsOperations.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the specified operation resource. (globalAccountsOperations.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * project. (globalAccountsOperations.listGlobalAccountsOperations)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * Compute Engine Beta API Only: If you use filtering in the Beta API, you can
+ * also filter on nested fields. For example, you could filter on instances that
+ * have set the scheduling.automaticRestart field to true. In particular, use
+ * filtering on nested fields to take advantage of instance labels to organize
+ * and filter results based on label values.
+ *
+ * The Beta API also supports filtering on multiple expressions by providing
+ * each separate expression within parentheses. For example,
+ * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
+ * expressions are treated as AND expressions, meaning that resources must match
+ * all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_CloudUserAccounts_OperationList
+ */
+ public function listGlobalAccountsOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Groups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Groups.php
new file mode 100644
index 00000000..bdb4be98
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Groups.php
@@ -0,0 +1,206 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $groups = $clouduseraccountsService->groups;
+ * </code>
+ */
+class Google_Service_CloudUserAccounts_Resource_Groups extends Google_Service_Resource
+{
+ /**
+ * Adds users to the specified group. (groups.addMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function addMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Deletes the specified Group resource. (groups.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the Group resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function delete($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Returns the specified Group resource. (groups.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the Group resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Group
+ */
+ public function get($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group");
+ }
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy
+ * or resource exists. (groups.getIamPolicy)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Policy
+ */
+ public function getIamPolicy($project, $resource, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy");
+ }
+ /**
+ * Creates a Group resource in the specified project using the data included in
+ * the request. (groups.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_CloudUserAccounts_Group $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function insert($project, Google_Service_CloudUserAccounts_Group $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Retrieves the list of groups contained within the specified project.
+ * (groups.listGroups)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * Compute Engine Beta API Only: If you use filtering in the Beta API, you can
+ * also filter on nested fields. For example, you could filter on instances that
+ * have set the scheduling.automaticRestart field to true. In particular, use
+ * filtering on nested fields to take advantage of instance labels to organize
+ * and filter results based on label values.
+ *
+ * The Beta API also supports filtering on multiple expressions by providing
+ * each separate expression within parentheses. For example,
+ * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
+ * expressions are treated as AND expressions, meaning that resources must match
+ * all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_CloudUserAccounts_GroupList
+ */
+ public function listGroups($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList");
+ }
+ /**
+ * Removes users from the specified group. (groups.removeMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function removeMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (groups.setIamPolicy)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param Google_Service_CloudUserAccounts_Policy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Policy
+ */
+ public function setIamPolicy($project, $resource, Google_Service_CloudUserAccounts_Policy $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ * (groups.testIamPermissions)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_TestPermissionsResponse
+ */
+ public function testIamPermissions($project, $resource, Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_CloudUserAccounts_TestPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Linux.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Linux.php
new file mode 100644
index 00000000..b43fd1d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Linux.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "linux" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $linux = $clouduseraccountsService->linux;
+ * </code>
+ */
+class Google_Service_CloudUserAccounts_Resource_Linux extends Google_Service_Resource
+{
+ /**
+ * Returns a list of authorized public keys for a specific user account.
+ * (linux.getAuthorizedKeysView)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $user The user account for which you want to get a list of
+ * authorized public keys.
+ * @param string $instance The fully-qualified URL of the virtual machine
+ * requesting the view.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool login Whether the view was requested as part of a user-
+ * initiated login.
+ * @return Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse
+ */
+ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse");
+ }
+ /**
+ * Retrieves a list of user accounts for an instance within a specific project.
+ * (linux.getLinuxAccountViews)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $instance The fully-qualified URL of the virtual machine
+ * requesting the views.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * Compute Engine Beta API Only: If you use filtering in the Beta API, you can
+ * also filter on nested fields. For example, you could filter on instances that
+ * have set the scheduling.automaticRestart field to true. In particular, use
+ * filtering on nested fields to take advantage of instance labels to organize
+ * and filter results based on label values.
+ *
+ * The Beta API also supports filtering on multiple expressions by providing
+ * each separate expression within parentheses. For example,
+ * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
+ * expressions are treated as AND expressions, meaning that resources must match
+ * all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse
+ */
+ public function getLinuxAccountViews($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Users.php
new file mode 100644
index 00000000..39756972
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Resource/Users.php
@@ -0,0 +1,209 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $users = $clouduseraccountsService->users;
+ * </code>
+ */
+class Google_Service_CloudUserAccounts_Resource_Users extends Google_Service_Resource
+{
+ /**
+ * Adds a public key to the specified User resource with the data included in
+ * the request. (users.addPublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param Google_Service_CloudUserAccounts_PublicKey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function addPublicKey($project, $user, Google_Service_CloudUserAccounts_PublicKey $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Deletes the specified User resource. (users.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function delete($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Returns the specified User resource. (users.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_User
+ */
+ public function get($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User");
+ }
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy
+ * or resource exists. (users.getIamPolicy)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Policy
+ */
+ public function getIamPolicy($project, $resource, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy");
+ }
+ /**
+ * Creates a User resource in the specified project using the data included in
+ * the request. (users.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_CloudUserAccounts_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function insert($project, Google_Service_CloudUserAccounts_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Retrieves a list of users contained within the specified project.
+ * (users.listUsers)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * Compute Engine Beta API Only: If you use filtering in the Beta API, you can
+ * also filter on nested fields. For example, you could filter on instances that
+ * have set the scheduling.automaticRestart field to true. In particular, use
+ * filtering on nested fields to take advantage of instance labels to organize
+ * and filter results based on label values.
+ *
+ * The Beta API also supports filtering on multiple expressions by providing
+ * each separate expression within parentheses. For example,
+ * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
+ * expressions are treated as AND expressions, meaning that resources must match
+ * all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_CloudUserAccounts_UserList
+ */
+ public function listUsers($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList");
+ }
+ /**
+ * Removes the specified public key from the user. (users.removePublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param string $fingerprint The fingerprint of the public key to delete.
+ * Public keys are identified by their fingerprint, which is defined by RFC4716
+ * to be the MD5 digest of the public key.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function removePublicKey($project, $user, $fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (users.setIamPolicy)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param Google_Service_CloudUserAccounts_Policy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Policy
+ */
+ public function setIamPolicy($project, $resource, Google_Service_CloudUserAccounts_Policy $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_CloudUserAccounts_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ * (users.testIamPermissions)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_TestPermissionsResponse
+ */
+ public function testIamPermissions($project, $resource, Google_Service_CloudUserAccounts_TestPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_CloudUserAccounts_TestPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Rule.php
new file mode 100644
index 00000000..8f68ad31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/Rule.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_Rule extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $action;
+ protected $conditionsType = 'Google_Service_CloudUserAccounts_Condition';
+ protected $conditionsDataType = 'array';
+ public $description;
+ public $ins;
+ protected $logConfigsType = 'Google_Service_CloudUserAccounts_LogConfig';
+ protected $logConfigsDataType = 'array';
+ public $notIns;
+ public $permissions;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIns($ins)
+ {
+ $this->ins = $ins;
+ }
+ public function getIns()
+ {
+ return $this->ins;
+ }
+ public function setLogConfigs($logConfigs)
+ {
+ $this->logConfigs = $logConfigs;
+ }
+ public function getLogConfigs()
+ {
+ return $this->logConfigs;
+ }
+ public function setNotIns($notIns)
+ {
+ $this->notIns = $notIns;
+ }
+ public function getNotIns()
+ {
+ return $this->notIns;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsRequest.php
new file mode 100644
index 00000000..23f1e843
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_TestPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsResponse.php
new file mode 100644
index 00000000..96307a87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/TestPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_TestPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/User.php
new file mode 100644
index 00000000..06de7d06
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/User.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_User extends Google_Collection
+{
+ protected $collection_key = 'publicKeys';
+ public $creationTimestamp;
+ public $description;
+ public $groups;
+ public $id;
+ public $kind;
+ public $name;
+ public $owner;
+ protected $publicKeysType = 'Google_Service_CloudUserAccounts_PublicKey';
+ protected $publicKeysDataType = 'array';
+ public $selfLink;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwner($owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setPublicKeys($publicKeys)
+ {
+ $this->publicKeys = $publicKeys;
+ }
+ public function getPublicKeys()
+ {
+ return $this->publicKeys;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/UserList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/UserList.php
new file mode 100644
index 00000000..14ca859d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/CloudUserAccounts/UserList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_CloudUserAccounts_UserList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_CloudUserAccounts_User';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling.php
new file mode 100644
index 00000000..8ee068d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling.php
@@ -0,0 +1,147 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Cloudbilling (v1).
+ *
+ * <p>
+ * Allows developers to manage billing for their Google Cloud Platform projects
+ * programmatically.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/billing/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Cloudbilling extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $billingAccounts;
+ public $billingAccounts_projects;
+ public $projects;
+
+ /**
+ * Constructs the internal representation of the Cloudbilling service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://cloudbilling.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'cloudbilling';
+
+ $this->billingAccounts = new Google_Service_Cloudbilling_Resource_BillingAccounts(
+ $this,
+ $this->serviceName,
+ 'billingAccounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/billingAccounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->billingAccounts_projects = new Google_Service_Cloudbilling_Resource_BillingAccountsProjects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/{+name}/projects',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects = new Google_Service_Cloudbilling_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'getBillingInfo' => array(
+ 'path' => 'v1/{+name}/billingInfo',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updateBillingInfo' => array(
+ 'path' => 'v1/{+name}/billingInfo',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/BillingAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/BillingAccount.php
new file mode 100644
index 00000000..89fee313
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/BillingAccount.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudbilling_BillingAccount extends Google_Model
+{
+ public $displayName;
+ public $name;
+ public $open;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOpen($open)
+ {
+ $this->open = $open;
+ }
+ public function getOpen()
+ {
+ return $this->open;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListBillingAccountsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListBillingAccountsResponse.php
new file mode 100644
index 00000000..79165eb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListBillingAccountsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudbilling_ListBillingAccountsResponse extends Google_Collection
+{
+ protected $collection_key = 'billingAccounts';
+ protected $billingAccountsType = 'Google_Service_Cloudbilling_BillingAccount';
+ protected $billingAccountsDataType = 'array';
+ public $nextPageToken;
+
+ public function setBillingAccounts($billingAccounts)
+ {
+ $this->billingAccounts = $billingAccounts;
+ }
+ public function getBillingAccounts()
+ {
+ return $this->billingAccounts;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListProjectBillingInfoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListProjectBillingInfoResponse.php
new file mode 100644
index 00000000..0b7ff5ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ListProjectBillingInfoResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudbilling_ListProjectBillingInfoResponse extends Google_Collection
+{
+ protected $collection_key = 'projectBillingInfo';
+ public $nextPageToken;
+ protected $projectBillingInfoType = 'Google_Service_Cloudbilling_ProjectBillingInfo';
+ protected $projectBillingInfoDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setProjectBillingInfo($projectBillingInfo)
+ {
+ $this->projectBillingInfo = $projectBillingInfo;
+ }
+ public function getProjectBillingInfo()
+ {
+ return $this->projectBillingInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ProjectBillingInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ProjectBillingInfo.php
new file mode 100644
index 00000000..09e2e0fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/ProjectBillingInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudbilling_ProjectBillingInfo extends Google_Model
+{
+ public $billingAccountName;
+ public $billingEnabled;
+ public $name;
+ public $projectId;
+
+ public function setBillingAccountName($billingAccountName)
+ {
+ $this->billingAccountName = $billingAccountName;
+ }
+ public function getBillingAccountName()
+ {
+ return $this->billingAccountName;
+ }
+ public function setBillingEnabled($billingEnabled)
+ {
+ $this->billingEnabled = $billingEnabled;
+ }
+ public function getBillingEnabled()
+ {
+ return $this->billingEnabled;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php
new file mode 100644
index 00000000..3adfa84d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccounts.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "billingAccounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudbillingService = new Google_Service_Cloudbilling(...);
+ * $billingAccounts = $cloudbillingService->billingAccounts;
+ * </code>
+ */
+class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Service_Resource
+{
+ /**
+ * Gets information about a billing account. The current authenticated user must
+ * be an [owner of the billing
+ * account](https://support.google.com/cloud/answer/4430947).
+ * (billingAccounts.get)
+ *
+ * @param string $name The resource name of the billing account to retrieve. For
+ * example, `billingAccounts/012345-567890-ABCDEF`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudbilling_BillingAccount
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Cloudbilling_BillingAccount");
+ }
+ /**
+ * Lists the billing accounts that the current authenticated user
+ * [owns](https://support.google.com/cloud/answer/4430947).
+ * (billingAccounts.listBillingAccounts)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Requested page size. The maximum page size is 100;
+ * this is also the default.
+ * @opt_param string pageToken A token identifying a page of results to return.
+ * This should be a `next_page_token` value returned from a previous
+ * `ListBillingAccounts` call. If unspecified, the first page of results is
+ * returned.
+ * @return Google_Service_Cloudbilling_ListBillingAccountsResponse
+ */
+ public function listBillingAccounts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Cloudbilling_ListBillingAccountsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccountsProjects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccountsProjects.php
new file mode 100644
index 00000000..7cd8ce59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/BillingAccountsProjects.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudbillingService = new Google_Service_Cloudbilling(...);
+ * $projects = $cloudbillingService->projects;
+ * </code>
+ */
+class Google_Service_Cloudbilling_Resource_BillingAccountsProjects extends Google_Service_Resource
+{
+ /**
+ * Lists the projects associated with a billing account. The current
+ * authenticated user must be an [owner of the billing
+ * account](https://support.google.com/cloud/answer/4430947).
+ * (projects.listBillingAccountsProjects)
+ *
+ * @param string $name The resource name of the billing account associated with
+ * the projects that you want to list. For example,
+ * `billingAccounts/012345-567890-ABCDEF`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Requested page size. The maximum page size is 100;
+ * this is also the default.
+ * @opt_param string pageToken A token identifying a page of results to be
+ * returned. This should be a `next_page_token` value returned from a previous
+ * `ListProjectBillingInfo` call. If unspecified, the first page of results is
+ * returned.
+ * @return Google_Service_Cloudbilling_ListProjectBillingInfoResponse
+ */
+ public function listBillingAccountsProjects($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Cloudbilling_ListProjectBillingInfoResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/Projects.php
new file mode 100644
index 00000000..222ebccf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudbilling/Resource/Projects.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudbillingService = new Google_Service_Cloudbilling(...);
+ * $projects = $cloudbillingService->projects;
+ * </code>
+ */
+class Google_Service_Cloudbilling_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Gets the billing information for a project. The current authenticated user
+ * must have [permission to view the project](https://cloud.google.com/docs
+ * /permissions-overview#h.bgs0oxofvnoo ). (projects.getBillingInfo)
+ *
+ * @param string $name The resource name of the project for which billing
+ * information is retrieved. For example, `projects/tokyo-rain-123`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudbilling_ProjectBillingInfo
+ */
+ public function getBillingInfo($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('getBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo");
+ }
+ /**
+ * Sets or updates the billing account associated with a project. You specify
+ * the new billing account by setting the `billing_account_name` in the
+ * `ProjectBillingInfo` resource to the resource name of a billing account.
+ * Associating a project with an open billing account enables billing on the
+ * project and allows charges for resource usage. If the project already had a
+ * billing account, this method changes the billing account used for resource
+ * usage charges.
+ *
+ * *Note:* Incurred charges that have not yet been reported in the transaction
+ * history of the Google Cloud Console may be billed to the new billing account,
+ * even if the charge occurred before the new billing account was assigned to
+ * the project.
+ *
+ * The current authenticated user must have ownership privileges for both the
+ * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo )
+ * and the [billing account](https://support.google.com/cloud/answer/4430947).
+ *
+ * You can disable billing on the project by setting the `billing_account_name`
+ * field to empty. This action disassociates the current billing account from
+ * the project. Any billable activity of your in-use services will stop, and
+ * your application could stop functioning as expected. Any unbilled charges to
+ * date will be billed to the previously associated account. The current
+ * authenticated user must be either an owner of the project or an owner of the
+ * billing account for the project.
+ *
+ * Note that associating a project with a *closed* billing account will have
+ * much the same effect as disabling billing on the project: any paid resources
+ * used by the project will be shut down. Thus, unless you wish to disable
+ * billing, you should always call this method with the name of an *open*
+ * billing account. (projects.updateBillingInfo)
+ *
+ * @param string $name The resource name of the project associated with the
+ * billing information that you want to update. For example, `projects/tokyo-
+ * rain-123`.
+ * @param Google_Service_Cloudbilling_ProjectBillingInfo $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudbilling_ProjectBillingInfo
+ */
+ public function updateBillingInfo($name, Google_Service_Cloudbilling_ProjectBillingInfo $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateBillingInfo', array($params), "Google_Service_Cloudbilling_ProjectBillingInfo");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting.php
new file mode 100644
index 00000000..fce44e1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Clouderrorreporting (v1beta1).
+ *
+ * <p>
+ * Stackdriver Error Reporting groups and counts similar errors from cloud
+ * services. The Stackdriver Error Reporting API provides a way to report new
+ * errors and read access to error groups and their associated errors.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/error-reporting/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Clouderrorreporting extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects;
+ public $projects_events;
+ public $projects_groupStats;
+ public $projects_groups;
+
+ /**
+ * Constructs the internal representation of the Clouderrorreporting service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://clouderrorreporting.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1beta1';
+ $this->serviceName = 'clouderrorreporting';
+
+ $this->projects = new Google_Service_Clouderrorreporting_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'deleteEvents' => array(
+ 'path' => 'v1beta1/{+projectName}/events',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_events = new Google_Service_Clouderrorreporting_Resource_ProjectsEvents(
+ $this,
+ $this->serviceName,
+ 'events',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1beta1/{+projectName}/events',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'groupId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'serviceFilter.service' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'serviceFilter.version' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'serviceFilter.resourceType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeRange.period' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'report' => array(
+ 'path' => 'v1beta1/{+projectName}/events:report',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_groupStats = new Google_Service_Clouderrorreporting_Resource_ProjectsGroupStats(
+ $this,
+ $this->serviceName,
+ 'groupStats',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1beta1/{+projectName}/groupStats',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'timedCountDuration' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'timeRange.period' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'alignment' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'groupId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'serviceFilter.service' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'serviceFilter.version' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'order' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'serviceFilter.resourceType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'alignmentTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_groups = new Google_Service_Clouderrorreporting_Resource_ProjectsGroups(
+ $this,
+ $this->serviceName,
+ 'groups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1beta1/{+groupName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'groupName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1beta1/{+name}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/DeleteEventsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/DeleteEventsResponse.php
new file mode 100644
index 00000000..967bddb6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/DeleteEventsResponse.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_DeleteEventsResponse extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorContext.php
new file mode 100644
index 00000000..adc0b5f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorContext.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ErrorContext extends Google_Model
+{
+ protected $httpRequestType = 'Google_Service_Clouderrorreporting_HttpRequestContext';
+ protected $httpRequestDataType = '';
+ protected $reportLocationType = 'Google_Service_Clouderrorreporting_SourceLocation';
+ protected $reportLocationDataType = '';
+ public $user;
+
+ public function setHttpRequest(Google_Service_Clouderrorreporting_HttpRequestContext $httpRequest)
+ {
+ $this->httpRequest = $httpRequest;
+ }
+ public function getHttpRequest()
+ {
+ return $this->httpRequest;
+ }
+ public function setReportLocation(Google_Service_Clouderrorreporting_SourceLocation $reportLocation)
+ {
+ $this->reportLocation = $reportLocation;
+ }
+ public function getReportLocation()
+ {
+ return $this->reportLocation;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorEvent.php
new file mode 100644
index 00000000..762f70d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorEvent.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ErrorEvent extends Google_Model
+{
+ protected $contextType = 'Google_Service_Clouderrorreporting_ErrorContext';
+ protected $contextDataType = '';
+ public $eventTime;
+ public $message;
+ protected $serviceContextType = 'Google_Service_Clouderrorreporting_ServiceContext';
+ protected $serviceContextDataType = '';
+
+ public function setContext(Google_Service_Clouderrorreporting_ErrorContext $context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setEventTime($eventTime)
+ {
+ $this->eventTime = $eventTime;
+ }
+ public function getEventTime()
+ {
+ return $this->eventTime;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setServiceContext(Google_Service_Clouderrorreporting_ServiceContext $serviceContext)
+ {
+ $this->serviceContext = $serviceContext;
+ }
+ public function getServiceContext()
+ {
+ return $this->serviceContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroup.php
new file mode 100644
index 00000000..b31a8f56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroup.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ErrorGroup extends Google_Collection
+{
+ protected $collection_key = 'trackingIssues';
+ public $groupId;
+ public $name;
+ protected $trackingIssuesType = 'Google_Service_Clouderrorreporting_TrackingIssue';
+ protected $trackingIssuesDataType = 'array';
+
+ public function setGroupId($groupId)
+ {
+ $this->groupId = $groupId;
+ }
+ public function getGroupId()
+ {
+ return $this->groupId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTrackingIssues($trackingIssues)
+ {
+ $this->trackingIssues = $trackingIssues;
+ }
+ public function getTrackingIssues()
+ {
+ return $this->trackingIssues;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroupStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroupStats.php
new file mode 100644
index 00000000..d02e9ace
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ErrorGroupStats.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ErrorGroupStats extends Google_Collection
+{
+ protected $collection_key = 'timedCounts';
+ protected $affectedServicesType = 'Google_Service_Clouderrorreporting_ServiceContext';
+ protected $affectedServicesDataType = 'array';
+ public $affectedUsersCount;
+ public $count;
+ public $firstSeenTime;
+ protected $groupType = 'Google_Service_Clouderrorreporting_ErrorGroup';
+ protected $groupDataType = '';
+ public $lastSeenTime;
+ public $numAffectedServices;
+ protected $representativeType = 'Google_Service_Clouderrorreporting_ErrorEvent';
+ protected $representativeDataType = '';
+ protected $timedCountsType = 'Google_Service_Clouderrorreporting_TimedCount';
+ protected $timedCountsDataType = 'array';
+
+ public function setAffectedServices($affectedServices)
+ {
+ $this->affectedServices = $affectedServices;
+ }
+ public function getAffectedServices()
+ {
+ return $this->affectedServices;
+ }
+ public function setAffectedUsersCount($affectedUsersCount)
+ {
+ $this->affectedUsersCount = $affectedUsersCount;
+ }
+ public function getAffectedUsersCount()
+ {
+ return $this->affectedUsersCount;
+ }
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setFirstSeenTime($firstSeenTime)
+ {
+ $this->firstSeenTime = $firstSeenTime;
+ }
+ public function getFirstSeenTime()
+ {
+ return $this->firstSeenTime;
+ }
+ public function setGroup(Google_Service_Clouderrorreporting_ErrorGroup $group)
+ {
+ $this->group = $group;
+ }
+ public function getGroup()
+ {
+ return $this->group;
+ }
+ public function setLastSeenTime($lastSeenTime)
+ {
+ $this->lastSeenTime = $lastSeenTime;
+ }
+ public function getLastSeenTime()
+ {
+ return $this->lastSeenTime;
+ }
+ public function setNumAffectedServices($numAffectedServices)
+ {
+ $this->numAffectedServices = $numAffectedServices;
+ }
+ public function getNumAffectedServices()
+ {
+ return $this->numAffectedServices;
+ }
+ public function setRepresentative(Google_Service_Clouderrorreporting_ErrorEvent $representative)
+ {
+ $this->representative = $representative;
+ }
+ public function getRepresentative()
+ {
+ return $this->representative;
+ }
+ public function setTimedCounts($timedCounts)
+ {
+ $this->timedCounts = $timedCounts;
+ }
+ public function getTimedCounts()
+ {
+ return $this->timedCounts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/HttpRequestContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/HttpRequestContext.php
new file mode 100644
index 00000000..ef8c0125
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/HttpRequestContext.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_HttpRequestContext extends Google_Model
+{
+ public $method;
+ public $referrer;
+ public $remoteIp;
+ public $responseStatusCode;
+ public $url;
+ public $userAgent;
+
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setReferrer($referrer)
+ {
+ $this->referrer = $referrer;
+ }
+ public function getReferrer()
+ {
+ return $this->referrer;
+ }
+ public function setRemoteIp($remoteIp)
+ {
+ $this->remoteIp = $remoteIp;
+ }
+ public function getRemoteIp()
+ {
+ return $this->remoteIp;
+ }
+ public function setResponseStatusCode($responseStatusCode)
+ {
+ $this->responseStatusCode = $responseStatusCode;
+ }
+ public function getResponseStatusCode()
+ {
+ return $this->responseStatusCode;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setUserAgent($userAgent)
+ {
+ $this->userAgent = $userAgent;
+ }
+ public function getUserAgent()
+ {
+ return $this->userAgent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListEventsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListEventsResponse.php
new file mode 100644
index 00000000..8081c8b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListEventsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ListEventsResponse extends Google_Collection
+{
+ protected $collection_key = 'errorEvents';
+ protected $errorEventsType = 'Google_Service_Clouderrorreporting_ErrorEvent';
+ protected $errorEventsDataType = 'array';
+ public $nextPageToken;
+ public $timeRangeBegin;
+
+ public function setErrorEvents($errorEvents)
+ {
+ $this->errorEvents = $errorEvents;
+ }
+ public function getErrorEvents()
+ {
+ return $this->errorEvents;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTimeRangeBegin($timeRangeBegin)
+ {
+ $this->timeRangeBegin = $timeRangeBegin;
+ }
+ public function getTimeRangeBegin()
+ {
+ return $this->timeRangeBegin;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListGroupStatsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListGroupStatsResponse.php
new file mode 100644
index 00000000..a1339e0e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ListGroupStatsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ListGroupStatsResponse extends Google_Collection
+{
+ protected $collection_key = 'errorGroupStats';
+ protected $errorGroupStatsType = 'Google_Service_Clouderrorreporting_ErrorGroupStats';
+ protected $errorGroupStatsDataType = 'array';
+ public $nextPageToken;
+ public $timeRangeBegin;
+
+ public function setErrorGroupStats($errorGroupStats)
+ {
+ $this->errorGroupStats = $errorGroupStats;
+ }
+ public function getErrorGroupStats()
+ {
+ return $this->errorGroupStats;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTimeRangeBegin($timeRangeBegin)
+ {
+ $this->timeRangeBegin = $timeRangeBegin;
+ }
+ public function getTimeRangeBegin()
+ {
+ return $this->timeRangeBegin;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportErrorEventResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportErrorEventResponse.php
new file mode 100644
index 00000000..84b4ae18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportErrorEventResponse.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ReportErrorEventResponse extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportedErrorEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportedErrorEvent.php
new file mode 100644
index 00000000..a2508456
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ReportedErrorEvent.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ReportedErrorEvent extends Google_Model
+{
+ protected $contextType = 'Google_Service_Clouderrorreporting_ErrorContext';
+ protected $contextDataType = '';
+ public $eventTime;
+ public $message;
+ protected $serviceContextType = 'Google_Service_Clouderrorreporting_ServiceContext';
+ protected $serviceContextDataType = '';
+
+ public function setContext(Google_Service_Clouderrorreporting_ErrorContext $context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setEventTime($eventTime)
+ {
+ $this->eventTime = $eventTime;
+ }
+ public function getEventTime()
+ {
+ return $this->eventTime;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setServiceContext(Google_Service_Clouderrorreporting_ServiceContext $serviceContext)
+ {
+ $this->serviceContext = $serviceContext;
+ }
+ public function getServiceContext()
+ {
+ return $this->serviceContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/Projects.php
new file mode 100644
index 00000000..2d656604
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/Projects.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouderrorreportingService = new Google_Service_Clouderrorreporting(...);
+ * $projects = $clouderrorreportingService->projects;
+ * </code>
+ */
+class Google_Service_Clouderrorreporting_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Deletes all error events of a given project. (projects.deleteEvents)
+ *
+ * @param string $projectName [Required] The resource name of the Google Cloud
+ * Platform project. Written as `projects/` plus the [Google Cloud Platform
+ * project ID](https://support.google.com/cloud/answer/6158840). Example:
+ * `projects/my-project-123`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Clouderrorreporting_DeleteEventsResponse
+ */
+ public function deleteEvents($projectName, $optParams = array())
+ {
+ $params = array('projectName' => $projectName);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteEvents', array($params), "Google_Service_Clouderrorreporting_DeleteEventsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php
new file mode 100644
index 00000000..dd6ef5ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsEvents.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "events" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouderrorreportingService = new Google_Service_Clouderrorreporting(...);
+ * $events = $clouderrorreportingService->events;
+ * </code>
+ */
+class Google_Service_Clouderrorreporting_Resource_ProjectsEvents extends Google_Service_Resource
+{
+ /**
+ * Lists the specified events. (events.listProjectsEvents)
+ *
+ * @param string $projectName [Required] The resource name of the Google Cloud
+ * Platform project. Written as `projects/` plus the [Google Cloud Platform
+ * project ID](https://support.google.com/cloud/answer/6158840). Example:
+ * `projects/my-project-123`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string groupId [Required] The group for which events shall be
+ * returned.
+ * @opt_param string pageToken [Optional] A `next_page_token` provided by a
+ * previous response.
+ * @opt_param string serviceFilter.service [Optional] The exact value to match
+ * against [`ServiceContext.service`](/error-
+ * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
+ * @opt_param int pageSize [Optional] The maximum number of results to return
+ * per response.
+ * @opt_param string serviceFilter.version [Optional] The exact value to match
+ * against [`ServiceContext.version`](/error-
+ * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
+ * @opt_param string serviceFilter.resourceType [Optional] The exact value to
+ * match against [`ServiceContext.resource_type`](/error-
+ * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
+ * @opt_param string timeRange.period Restricts the query to the specified time
+ * range.
+ * @return Google_Service_Clouderrorreporting_ListEventsResponse
+ */
+ public function listProjectsEvents($projectName, $optParams = array())
+ {
+ $params = array('projectName' => $projectName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Clouderrorreporting_ListEventsResponse");
+ }
+ /**
+ * Report an individual error event.
+ *
+ * This endpoint accepts either an OAuth token, or an API key for
+ * authentication. To use an API key, append it to the URL as the value of a
+ * `key` parameter. For example: POST
+ * https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
+ * project/events:report?key=123ABC456 (events.report)
+ *
+ * @param string $projectName [Required] The resource name of the Google Cloud
+ * Platform project. Written as `projects/` plus the [Google Cloud Platform
+ * project ID](https://support.google.com/cloud/answer/6158840). Example:
+ * `projects/my-project-123`.
+ * @param Google_Service_Clouderrorreporting_ReportedErrorEvent $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Clouderrorreporting_ReportErrorEventResponse
+ */
+ public function report($projectName, Google_Service_Clouderrorreporting_ReportedErrorEvent $postBody, $optParams = array())
+ {
+ $params = array('projectName' => $projectName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('report', array($params), "Google_Service_Clouderrorreporting_ReportErrorEventResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php
new file mode 100644
index 00000000..d1787fd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroupStats.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groupStats" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouderrorreportingService = new Google_Service_Clouderrorreporting(...);
+ * $groupStats = $clouderrorreportingService->groupStats;
+ * </code>
+ */
+class Google_Service_Clouderrorreporting_Resource_ProjectsGroupStats extends Google_Service_Resource
+{
+ /**
+ * Lists the specified groups. (groupStats.listProjectsGroupStats)
+ *
+ * @param string $projectName [Required] The resource name of the Google Cloud
+ * Platform project. Written as projects/ plus the Google Cloud Platform project
+ * ID.
+ *
+ * Example: projects/my-project-123.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string timedCountDuration [Optional] The preferred duration for a
+ * single returned `TimedCount`. If not set, no timed counts are returned.
+ * @opt_param string pageToken [Optional] A `next_page_token` provided by a
+ * previous response. To view additional results, pass this token along with the
+ * identical query parameters as the first request.
+ * @opt_param string timeRange.period Restricts the query to the specified time
+ * range.
+ * @opt_param string alignment [Optional] The alignment of the timed counts to
+ * be returned. Default is `ALIGNMENT_EQUAL_AT_END`.
+ * @opt_param string groupId [Optional] List all ErrorGroupStats with these IDs.
+ * @opt_param string serviceFilter.service [Optional] The exact value to match
+ * against [`ServiceContext.service`](/error-
+ * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
+ * @opt_param int pageSize [Optional] The maximum number of results to return
+ * per response. Default is 20.
+ * @opt_param string serviceFilter.version [Optional] The exact value to match
+ * against [`ServiceContext.version`](/error-
+ * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
+ * @opt_param string order [Optional] The sort order in which the results are
+ * returned. Default is `COUNT_DESC`.
+ * @opt_param string serviceFilter.resourceType [Optional] The exact value to
+ * match against [`ServiceContext.resource_type`](/error-
+ * reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
+ * @opt_param string alignmentTime [Optional] Time where the timed counts shall
+ * be aligned if rounded alignment is chosen. Default is 00:00 UTC.
+ * @return Google_Service_Clouderrorreporting_ListGroupStatsResponse
+ */
+ public function listProjectsGroupStats($projectName, $optParams = array())
+ {
+ $params = array('projectName' => $projectName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Clouderrorreporting_ListGroupStatsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroups.php
new file mode 100644
index 00000000..a75d8a28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/Resource/ProjectsGroups.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $clouderrorreportingService = new Google_Service_Clouderrorreporting(...);
+ * $groups = $clouderrorreportingService->groups;
+ * </code>
+ */
+class Google_Service_Clouderrorreporting_Resource_ProjectsGroups extends Google_Service_Resource
+{
+ /**
+ * Get the specified group. (groups.get)
+ *
+ * @param string $groupName [Required] The group resource name. Written as
+ * projects/projectID/groups/group_name. Call
+ *
+ * groupStats.list to return a list of groups belonging to this project.
+ *
+ * Example: projects/my-project-123/groups/my-group
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Clouderrorreporting_ErrorGroup
+ */
+ public function get($groupName, $optParams = array())
+ {
+ $params = array('groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Clouderrorreporting_ErrorGroup");
+ }
+ /**
+ * Replace the data for the specified group. Fails if the group does not exist.
+ * (groups.update)
+ *
+ * @param string $name The group resource name. Example: projects/my-
+ * project-123/groups/my-groupid
+ * @param Google_Service_Clouderrorreporting_ErrorGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Clouderrorreporting_ErrorGroup
+ */
+ public function update($name, Google_Service_Clouderrorreporting_ErrorGroup $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Clouderrorreporting_ErrorGroup");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ServiceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ServiceContext.php
new file mode 100644
index 00000000..5c421858
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/ServiceContext.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_ServiceContext extends Google_Model
+{
+ public $resourceType;
+ public $service;
+ public $version;
+
+ public function setResourceType($resourceType)
+ {
+ $this->resourceType = $resourceType;
+ }
+ public function getResourceType()
+ {
+ return $this->resourceType;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/SourceLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/SourceLocation.php
new file mode 100644
index 00000000..0af36afa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/SourceLocation.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_SourceLocation extends Google_Model
+{
+ public $filePath;
+ public $functionName;
+ public $lineNumber;
+
+ public function setFilePath($filePath)
+ {
+ $this->filePath = $filePath;
+ }
+ public function getFilePath()
+ {
+ return $this->filePath;
+ }
+ public function setFunctionName($functionName)
+ {
+ $this->functionName = $functionName;
+ }
+ public function getFunctionName()
+ {
+ return $this->functionName;
+ }
+ public function setLineNumber($lineNumber)
+ {
+ $this->lineNumber = $lineNumber;
+ }
+ public function getLineNumber()
+ {
+ return $this->lineNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TimedCount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TimedCount.php
new file mode 100644
index 00000000..81bb63ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TimedCount.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_TimedCount extends Google_Model
+{
+ public $count;
+ public $endTime;
+ public $startTime;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TrackingIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TrackingIssue.php
new file mode 100644
index 00000000..d6595405
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Clouderrorreporting/TrackingIssue.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Clouderrorreporting_TrackingIssue extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest.php
new file mode 100644
index 00000000..c33743ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Cloudlatencytest (v2).
+ *
+ * <p>
+ * Reports latency data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Cloudlatencytest extends Google_Service
+{
+ /** View monitoring data for all of your Google Cloud and API projects. */
+ const MONITORING_READONLY =
+ "https://www.googleapis.com/auth/monitoring.readonly";
+
+ public $statscollection;
+
+ /**
+ * Constructs the internal representation of the Cloudlatencytest service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://cloudlatencytest-pa.googleapis.com/';
+ $this->servicePath = 'v2/statscollection/';
+ $this->version = 'v2';
+ $this->serviceName = 'cloudlatencytest';
+
+ $this->statscollection = new Google_Service_Cloudlatencytest_StatscollectionResource(
+ $this,
+ $this->serviceName,
+ 'statscollection',
+ array(
+ 'methods' => array(
+ 'updateaggregatedstats' => array(
+ 'path' => 'updateaggregatedstats',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'updatestats' => array(
+ 'path' => 'updatestats',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStats.php
new file mode 100644
index 00000000..94d7d0af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStats.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudlatencytest_AggregatedStats extends Google_Collection
+{
+ protected $collection_key = 'stats';
+ protected $statsType = 'Google_Service_Cloudlatencytest_Stats';
+ protected $statsDataType = 'array';
+
+ public function setStats($stats)
+ {
+ $this->stats = $stats;
+ }
+ public function getStats()
+ {
+ return $this->stats;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStatsReply.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStatsReply.php
new file mode 100644
index 00000000..41230f5b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/AggregatedStatsReply.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudlatencytest_AggregatedStatsReply extends Google_Model
+{
+ public $testValue;
+
+ public function setTestValue($testValue)
+ {
+ $this->testValue = $testValue;
+ }
+ public function getTestValue()
+ {
+ return $this->testValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/DoubleValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/DoubleValue.php
new file mode 100644
index 00000000..02ec2e2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/DoubleValue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudlatencytest_DoubleValue extends Google_Model
+{
+ public $label;
+ public $value;
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/IntValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/IntValue.php
new file mode 100644
index 00000000..53c5b93e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/IntValue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudlatencytest_IntValue extends Google_Model
+{
+ public $label;
+ public $value;
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/Stats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/Stats.php
new file mode 100644
index 00000000..51e62a7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/Stats.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudlatencytest_Stats extends Google_Collection
+{
+ protected $collection_key = 'stringValues';
+ protected $doubleValuesType = 'Google_Service_Cloudlatencytest_DoubleValue';
+ protected $doubleValuesDataType = 'array';
+ protected $intValuesType = 'Google_Service_Cloudlatencytest_IntValue';
+ protected $intValuesDataType = 'array';
+ protected $stringValuesType = 'Google_Service_Cloudlatencytest_StringValue';
+ protected $stringValuesDataType = 'array';
+ public $time;
+
+ public function setDoubleValues($doubleValues)
+ {
+ $this->doubleValues = $doubleValues;
+ }
+ public function getDoubleValues()
+ {
+ return $this->doubleValues;
+ }
+ public function setIntValues($intValues)
+ {
+ $this->intValues = $intValues;
+ }
+ public function getIntValues()
+ {
+ return $this->intValues;
+ }
+ public function setStringValues($stringValues)
+ {
+ $this->stringValues = $stringValues;
+ }
+ public function getStringValues()
+ {
+ return $this->stringValues;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatsReply.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatsReply.php
new file mode 100644
index 00000000..238ae50e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatsReply.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudlatencytest_StatsReply extends Google_Model
+{
+ public $testValue;
+
+ public function setTestValue($testValue)
+ {
+ $this->testValue = $testValue;
+ }
+ public function getTestValue()
+ {
+ return $this->testValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatscollectionResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatscollectionResource.php
new file mode 100644
index 00000000..3f9b41d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StatscollectionResource.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "statscollection" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $cloudlatencytestService = new Google_Service_Cloudlatencytest(...);
+ * $statscollection = $cloudlatencytestService->statscollection;
+ * </code>
+ */
+class Google_Service_Cloudlatencytest_StatscollectionResource extends Google_Service_Resource
+{
+ /**
+ * RPC to update the new TCP stats. (statscollection.updateaggregatedstats)
+ *
+ * @param Google_Service_Cloudlatencytest_AggregatedStats $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudlatencytest_AggregatedStatsReply
+ */
+ public function updateaggregatedstats(Google_Service_Cloudlatencytest_AggregatedStats $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateaggregatedstats', array($params), "Google_Service_Cloudlatencytest_AggregatedStatsReply");
+ }
+ /**
+ * RPC to update the new TCP stats. (statscollection.updatestats)
+ *
+ * @param Google_Service_Cloudlatencytest_Stats $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudlatencytest_StatsReply
+ */
+ public function updatestats(Google_Service_Cloudlatencytest_Stats $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updatestats', array($params), "Google_Service_Cloudlatencytest_StatsReply");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StringValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StringValue.php
new file mode 100644
index 00000000..2d79f3ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Cloudlatencytest/StringValue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Cloudlatencytest_StringValue extends Google_Model
+{
+ public $label;
+ public $value;
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute.php
new file mode 100644
index 00000000..15627e1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute.php
@@ -0,0 +1,5692 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Compute (v1).
+ *
+ * <p>
+ * Creates and runs virtual machines on Google Cloud Platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/compute/docs/reference/latest/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Compute extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View and manage your Google Compute Engine resources. */
+ const COMPUTE =
+ "https://www.googleapis.com/auth/compute";
+ /** View your Google Compute Engine resources. */
+ const COMPUTE_READONLY =
+ "https://www.googleapis.com/auth/compute.readonly";
+ /** Manage your data and permissions in Google Cloud Storage. */
+ const DEVSTORAGE_FULL_CONTROL =
+ "https://www.googleapis.com/auth/devstorage.full_control";
+ /** View your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_ONLY =
+ "https://www.googleapis.com/auth/devstorage.read_only";
+ /** Manage your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_WRITE =
+ "https://www.googleapis.com/auth/devstorage.read_write";
+
+ public $addresses;
+ public $autoscalers;
+ public $backendBuckets;
+ public $backendServices;
+ public $diskTypes;
+ public $disks;
+ public $firewalls;
+ public $forwardingRules;
+ public $globalAddresses;
+ public $globalForwardingRules;
+ public $globalOperations;
+ public $healthChecks;
+ public $httpHealthChecks;
+ public $httpsHealthChecks;
+ public $images;
+ public $instanceGroupManagers;
+ public $instanceGroups;
+ public $instanceTemplates;
+ public $instances;
+ public $licenses;
+ public $machineTypes;
+ public $networks;
+ public $projects;
+ public $regionAutoscalers;
+ public $regionBackendServices;
+ public $regionInstanceGroupManagers;
+ public $regionInstanceGroups;
+ public $regionOperations;
+ public $regions;
+ public $routers;
+ public $routes;
+ public $snapshots;
+ public $sslCertificates;
+ public $subnetworks;
+ public $targetHttpProxies;
+ public $targetHttpsProxies;
+ public $targetInstances;
+ public $targetPools;
+ public $targetSslProxies;
+ public $targetVpnGateways;
+ public $urlMaps;
+ public $vpnTunnels;
+ public $zoneOperations;
+ public $zones;
+
+ /**
+ * Constructs the internal representation of the Compute service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'compute/v1/projects/';
+ $this->version = 'v1';
+ $this->serviceName = 'compute';
+
+ $this->addresses = new Google_Service_Compute_Resource_Addresses(
+ $this,
+ $this->serviceName,
+ 'addresses',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/addresses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/addresses/{address}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'address' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/addresses/{address}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'address' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/addresses',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/addresses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->autoscalers = new Google_Service_Compute_Resource_Autoscalers(
+ $this,
+ $this->serviceName,
+ 'autoscalers',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/autoscalers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/autoscalers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/autoscalers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/zones/{zone}/autoscalers',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/zones/{zone}/autoscalers',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->backendBuckets = new Google_Service_Compute_Resource_BackendBuckets(
+ $this,
+ $this->serviceName,
+ 'backendBuckets',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/backendBuckets/{backendBucket}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/backendBuckets/{backendBucket}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/backendBuckets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/backendBuckets',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/backendBuckets/{backendBucket}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/backendBuckets/{backendBucket}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->backendServices = new Google_Service_Compute_Resource_BackendServices(
+ $this,
+ $this->serviceName,
+ 'backendServices',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/backendServices',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/global/backendServices/{backendService}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/backendServices/{backendService}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getHealth' => array(
+ 'path' => '{project}/global/backendServices/{backendService}/getHealth',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/backendServices',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/backendServices',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/backendServices/{backendService}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/backendServices/{backendService}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->diskTypes = new Google_Service_Compute_Resource_DiskTypes(
+ $this,
+ $this->serviceName,
+ 'diskTypes',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/diskTypes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/diskTypes/{diskType}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'diskType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/diskTypes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->disks = new Google_Service_Compute_Resource_Disks(
+ $this,
+ $this->serviceName,
+ 'disks',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/disks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'createSnapshot' => array(
+ 'path' => '{project}/zones/{zone}/disks/{disk}/createSnapshot',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'disk' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'guestFlush' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/disks/{disk}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'disk' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/disks/{disk}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'disk' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/disks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sourceImage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/disks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'resize' => array(
+ 'path' => '{project}/zones/{zone}/disks/{disk}/resize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'disk' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->firewalls = new Google_Service_Compute_Resource_Firewalls(
+ $this,
+ $this->serviceName,
+ 'firewalls',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/firewalls/{firewall}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'firewall' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/firewalls/{firewall}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'firewall' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/firewalls',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/firewalls',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/firewalls/{firewall}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'firewall' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/firewalls/{firewall}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'firewall' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->forwardingRules = new Google_Service_Compute_Resource_ForwardingRules(
+ $this,
+ $this->serviceName,
+ 'forwardingRules',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/forwardingRules',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingRule' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingRule' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/forwardingRules',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/forwardingRules',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setTarget' => array(
+ 'path' => '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingRule' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->globalAddresses = new Google_Service_Compute_Resource_GlobalAddresses(
+ $this,
+ $this->serviceName,
+ 'globalAddresses',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/addresses/{address}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'address' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/addresses/{address}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'address' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/addresses',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/addresses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->globalForwardingRules = new Google_Service_Compute_Resource_GlobalForwardingRules(
+ $this,
+ $this->serviceName,
+ 'globalForwardingRules',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/forwardingRules/{forwardingRule}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingRule' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/forwardingRules/{forwardingRule}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingRule' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/forwardingRules',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/forwardingRules',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setTarget' => array(
+ 'path' => '{project}/global/forwardingRules/{forwardingRule}/setTarget',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingRule' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->globalOperations = new Google_Service_Compute_Resource_GlobalOperations(
+ $this,
+ $this->serviceName,
+ 'globalOperations',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/global/operations/{operation}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->healthChecks = new Google_Service_Compute_Resource_HealthChecks(
+ $this,
+ $this->serviceName,
+ 'healthChecks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/healthChecks/{healthCheck}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'healthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/healthChecks/{healthCheck}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'healthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/healthChecks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/healthChecks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/healthChecks/{healthCheck}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'healthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/healthChecks/{healthCheck}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'healthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->httpHealthChecks = new Google_Service_Compute_Resource_HttpHealthChecks(
+ $this,
+ $this->serviceName,
+ 'httpHealthChecks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/httpHealthChecks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/httpHealthChecks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/httpHealthChecks/{httpHealthCheck}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->httpsHealthChecks = new Google_Service_Compute_Resource_HttpsHealthChecks(
+ $this,
+ $this->serviceName,
+ 'httpsHealthChecks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpsHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpsHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/httpsHealthChecks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/httpsHealthChecks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpsHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'httpsHealthCheck' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->images = new Google_Service_Compute_Resource_Images(
+ $this,
+ $this->serviceName,
+ 'images',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/images/{image}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'image' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deprecate' => array(
+ 'path' => '{project}/global/images/{image}/deprecate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'image' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/images/{image}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'image' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getFromFamily' => array(
+ 'path' => '{project}/global/images/family/{family}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'family' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/images',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/images',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->instanceGroupManagers = new Google_Service_Compute_Resource_InstanceGroupManagers(
+ $this,
+ $this->serviceName,
+ 'instanceGroupManagers',
+ array(
+ 'methods' => array(
+ 'abandonInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'aggregatedList' => array(
+ 'path' => '{project}/aggregated/instanceGroupManagers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deleteInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listManagedInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'order_by' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'recreateInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resize' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'size' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'setInstanceTemplate' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setTargetPools' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->instanceGroups = new Google_Service_Compute_Resource_InstanceGroups(
+ $this,
+ $this->serviceName,
+ 'instanceGroups',
+ array(
+ 'methods' => array(
+ 'addInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'aggregatedList' => array(
+ 'path' => '{project}/aggregated/instanceGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'removeInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setNamedPorts' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->instanceTemplates = new Google_Service_Compute_Resource_InstanceTemplates(
+ $this,
+ $this->serviceName,
+ 'instanceTemplates',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/instanceTemplates/{instanceTemplate}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceTemplate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/instanceTemplates/{instanceTemplate}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceTemplate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/instanceTemplates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/instanceTemplates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->instances = new Google_Service_Compute_Resource_Instances(
+ $this,
+ $this->serviceName,
+ 'instances',
+ array(
+ 'methods' => array(
+ 'addAccessConfig' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'networkInterface' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'aggregatedList' => array(
+ 'path' => '{project}/aggregated/instances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'attachDisk' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deleteAccessConfig' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accessConfig' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'networkInterface' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'detachDisk' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getSerialPortOutput' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'port' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/instances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/instances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'reset' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setDiskAutoDelete' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoDelete' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ 'required' => true,
+ ),
+ 'deviceName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setMachineType' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/setMachineType',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setMetadata' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/setMetadata',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setScheduling' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setServiceAccount' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/setServiceAccount',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setTags' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/setTags',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'start' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/start',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'startWithEncryptionKey' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'stop' => array(
+ 'path' => '{project}/zones/{zone}/instances/{instance}/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->licenses = new Google_Service_Compute_Resource_Licenses(
+ $this,
+ $this->serviceName,
+ 'licenses',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/global/licenses/{license}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'license' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->machineTypes = new Google_Service_Compute_Resource_MachineTypes(
+ $this,
+ $this->serviceName,
+ 'machineTypes',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/machineTypes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/machineTypes/{machineType}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'machineType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/machineTypes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->networks = new Google_Service_Compute_Resource_Networks(
+ $this,
+ $this->serviceName,
+ 'networks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/networks/{network}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'network' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/networks/{network}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'network' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/networks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/networks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'switchToCustomMode' => array(
+ 'path' => '{project}/global/networks/{network}/switchToCustomMode',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'network' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects = new Google_Service_Compute_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'moveDisk' => array(
+ 'path' => '{project}/moveDisk',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'moveInstance' => array(
+ 'path' => '{project}/moveInstance',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setCommonInstanceMetadata' => array(
+ 'path' => '{project}/setCommonInstanceMetadata',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setUsageExportBucket' => array(
+ 'path' => '{project}/setUsageExportBucket',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->regionAutoscalers = new Google_Service_Compute_Resource_RegionAutoscalers(
+ $this,
+ $this->serviceName,
+ 'regionAutoscalers',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/regions/{region}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/autoscalers/{autoscaler}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/autoscalers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/autoscalers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/regions/{region}/autoscalers',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/regions/{region}/autoscalers',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoscaler' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->regionBackendServices = new Google_Service_Compute_Resource_RegionBackendServices(
+ $this,
+ $this->serviceName,
+ 'regionBackendServices',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/regions/{region}/backendServices/{backendService}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/backendServices/{backendService}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getHealth' => array(
+ 'path' => '{project}/regions/{region}/backendServices/{backendService}/getHealth',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/backendServices',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/backendServices',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/regions/{region}/backendServices/{backendService}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/regions/{region}/backendServices/{backendService}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'backendService' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->regionInstanceGroupManagers = new Google_Service_Compute_Resource_RegionInstanceGroupManagers(
+ $this,
+ $this->serviceName,
+ 'regionInstanceGroupManagers',
+ array(
+ 'methods' => array(
+ 'abandonInstances' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deleteInstances' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listManagedInstances' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'order_by' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'recreateInstances' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resize' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'size' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'setInstanceTemplate' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setTargetPools' => array(
+ 'path' => '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->regionInstanceGroups = new Google_Service_Compute_Resource_RegionInstanceGroups(
+ $this,
+ $this->serviceName,
+ 'regionInstanceGroups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/regions/{region}/instanceGroups/{instanceGroup}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/instanceGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listInstances' => array(
+ 'path' => '{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setNamedPorts' => array(
+ 'path' => '{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroup' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->regionOperations = new Google_Service_Compute_Resource_RegionOperations(
+ $this,
+ $this->serviceName,
+ 'regionOperations',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/regions/{region}/operations/{operation}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->regions = new Google_Service_Compute_Resource_Regions(
+ $this,
+ $this->serviceName,
+ 'regions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/regions/{region}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->routers = new Google_Service_Compute_Resource_Routers(
+ $this,
+ $this->serviceName,
+ 'routers',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/routers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/routers/{router}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'router' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/routers/{router}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'router' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getRouterStatus' => array(
+ 'path' => '{project}/regions/{region}/routers/{router}/getRouterStatus',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'router' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/routers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/routers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/regions/{region}/routers/{router}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'router' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'preview' => array(
+ 'path' => '{project}/regions/{region}/routers/{router}/preview',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'router' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/regions/{region}/routers/{router}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'router' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->routes = new Google_Service_Compute_Resource_Routes(
+ $this,
+ $this->serviceName,
+ 'routes',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/routes/{route}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'route' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/routes/{route}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'route' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/routes',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/routes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->snapshots = new Google_Service_Compute_Resource_Snapshots(
+ $this,
+ $this->serviceName,
+ 'snapshots',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/snapshots/{snapshot}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'snapshot' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/snapshots/{snapshot}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'snapshot' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/snapshots',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sslCertificates = new Google_Service_Compute_Resource_SslCertificates(
+ $this,
+ $this->serviceName,
+ 'sslCertificates',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/sslCertificates/{sslCertificate}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sslCertificate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/sslCertificates/{sslCertificate}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sslCertificate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/sslCertificates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/sslCertificates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->subnetworks = new Google_Service_Compute_Resource_Subnetworks(
+ $this,
+ $this->serviceName,
+ 'subnetworks',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/subnetworks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subnetwork' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'expandIpCidrRange' => array(
+ 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subnetwork' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/subnetworks/{subnetwork}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subnetwork' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/subnetworks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/subnetworks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetHttpProxies = new Google_Service_Compute_Resource_TargetHttpProxies(
+ $this,
+ $this->serviceName,
+ 'targetHttpProxies',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetHttpProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetHttpProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/targetHttpProxies',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/targetHttpProxies',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setUrlMap' => array(
+ 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetHttpProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetHttpsProxies = new Google_Service_Compute_Resource_TargetHttpsProxies(
+ $this,
+ $this->serviceName,
+ 'targetHttpsProxies',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetHttpsProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetHttpsProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/targetHttpsProxies',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/targetHttpsProxies',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setSslCertificates' => array(
+ 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetHttpsProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setUrlMap' => array(
+ 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetHttpsProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetInstances = new Google_Service_Compute_Resource_TargetInstances(
+ $this,
+ $this->serviceName,
+ 'targetInstances',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/targetInstances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetInstance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/targetInstances/{targetInstance}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetInstance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/targetInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/targetInstances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetPools = new Google_Service_Compute_Resource_TargetPools(
+ $this,
+ $this->serviceName,
+ 'targetPools',
+ array(
+ 'methods' => array(
+ 'addHealthCheck' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'addInstance' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}/addInstance',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'aggregatedList' => array(
+ 'path' => '{project}/aggregated/targetPools',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getHealth' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}/getHealth',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/targetPools',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/targetPools',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'removeHealthCheck' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'removeInstance' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}/removeInstance',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setBackup' => array(
+ 'path' => '{project}/regions/{region}/targetPools/{targetPool}/setBackup',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetPool' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'failoverRatio' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetSslProxies = new Google_Service_Compute_Resource_TargetSslProxies(
+ $this,
+ $this->serviceName,
+ 'targetSslProxies',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/targetSslProxies/{targetSslProxy}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetSslProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/targetSslProxies/{targetSslProxy}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetSslProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/targetSslProxies',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/targetSslProxies',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setBackendService' => array(
+ 'path' => '{project}/global/targetSslProxies/{targetSslProxy}/setBackendService',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetSslProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setProxyHeader' => array(
+ 'path' => '{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetSslProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setSslCertificates' => array(
+ 'path' => '{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetSslProxy' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetVpnGateways = new Google_Service_Compute_Resource_TargetVpnGateways(
+ $this,
+ $this->serviceName,
+ 'targetVpnGateways',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/targetVpnGateways',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetVpnGateway' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetVpnGateway' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/targetVpnGateways',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/targetVpnGateways',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->urlMaps = new Google_Service_Compute_Resource_UrlMaps(
+ $this,
+ $this->serviceName,
+ 'urlMaps',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/urlMaps/{urlMap}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'urlMap' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/urlMaps/{urlMap}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'urlMap' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/urlMaps',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'invalidateCache' => array(
+ 'path' => '{project}/global/urlMaps/{urlMap}/invalidateCache',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'urlMap' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/urlMaps',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/urlMaps/{urlMap}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'urlMap' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/urlMaps/{urlMap}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'urlMap' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'validate' => array(
+ 'path' => '{project}/global/urlMaps/{urlMap}/validate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'urlMap' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->vpnTunnels = new Google_Service_Compute_Resource_VpnTunnels(
+ $this,
+ $this->serviceName,
+ 'vpnTunnels',
+ array(
+ 'methods' => array(
+ 'aggregatedList' => array(
+ 'path' => '{project}/aggregated/vpnTunnels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'vpnTunnel' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'vpnTunnel' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/regions/{region}/vpnTunnels',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/regions/{region}/vpnTunnels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->zoneOperations = new Google_Service_Compute_Resource_ZoneOperations(
+ $this,
+ $this->serviceName,
+ 'zoneOperations',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/zones/{zone}/operations/{operation}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->zones = new Google_Service_Compute_Resource_Zones(
+ $this,
+ $this->serviceName,
+ 'zones',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/zones/{zone}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php
new file mode 100644
index 00000000..a016c52e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AccessConfig.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AccessConfig extends Google_Model
+{
+ public $kind;
+ public $name;
+ public $natIP;
+ public $type;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNatIP($natIP)
+ {
+ $this->natIP = $natIP;
+ }
+ public function getNatIP()
+ {
+ return $this->natIP;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Address.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Address.php
new file mode 100644
index 00000000..0c8773cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Address.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Address extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $address;
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $region;
+ public $selfLink;
+ public $status;
+ public $users;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressAggregatedList.php
new file mode 100644
index 00000000..99fbc3c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AddressAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_AddressesScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressList.php
new file mode 100644
index 00000000..2bb8cc9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AddressList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Address';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedList.php
new file mode 100644
index 00000000..2789ebb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AddressesScopedList extends Google_Collection
+{
+ protected $collection_key = 'addresses';
+ protected $addressesType = 'Google_Service_Compute_Address';
+ protected $addressesDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setAddresses($addresses)
+ {
+ $this->addresses = $addresses;
+ }
+ public function getAddresses()
+ {
+ return $this->addresses;
+ }
+ public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarning.php
new file mode 100644
index 00000000..4638a137
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarningData.php
new file mode 100644
index 00000000..825996cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AddressesScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDisk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDisk.php
new file mode 100644
index 00000000..a8f994c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDisk.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AttachedDisk extends Google_Collection
+{
+ protected $collection_key = 'licenses';
+ public $autoDelete;
+ public $boot;
+ public $deviceName;
+ protected $diskEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $diskEncryptionKeyDataType = '';
+ public $index;
+ protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams';
+ protected $initializeParamsDataType = '';
+ public $interface;
+ public $kind;
+ public $licenses;
+ public $mode;
+ public $source;
+ public $type;
+
+ public function setAutoDelete($autoDelete)
+ {
+ $this->autoDelete = $autoDelete;
+ }
+ public function getAutoDelete()
+ {
+ return $this->autoDelete;
+ }
+ public function setBoot($boot)
+ {
+ $this->boot = $boot;
+ }
+ public function getBoot()
+ {
+ return $this->boot;
+ }
+ public function setDeviceName($deviceName)
+ {
+ $this->deviceName = $deviceName;
+ }
+ public function getDeviceName()
+ {
+ return $this->deviceName;
+ }
+ public function setDiskEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $diskEncryptionKey)
+ {
+ $this->diskEncryptionKey = $diskEncryptionKey;
+ }
+ public function getDiskEncryptionKey()
+ {
+ return $this->diskEncryptionKey;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams)
+ {
+ $this->initializeParams = $initializeParams;
+ }
+ public function getInitializeParams()
+ {
+ return $this->initializeParams;
+ }
+ public function setInterface($interface)
+ {
+ $this->interface = $interface;
+ }
+ public function getInterface()
+ {
+ return $this->interface;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLicenses($licenses)
+ {
+ $this->licenses = $licenses;
+ }
+ public function getLicenses()
+ {
+ return $this->licenses;
+ }
+ public function setMode($mode)
+ {
+ $this->mode = $mode;
+ }
+ public function getMode()
+ {
+ return $this->mode;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php
new file mode 100644
index 00000000..90f8f752
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AttachedDiskInitializeParams.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model
+{
+ public $diskName;
+ public $diskSizeGb;
+ public $diskType;
+ public $sourceImage;
+ protected $sourceImageEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $sourceImageEncryptionKeyDataType = '';
+
+ public function setDiskName($diskName)
+ {
+ $this->diskName = $diskName;
+ }
+ public function getDiskName()
+ {
+ return $this->diskName;
+ }
+ public function setDiskSizeGb($diskSizeGb)
+ {
+ $this->diskSizeGb = $diskSizeGb;
+ }
+ public function getDiskSizeGb()
+ {
+ return $this->diskSizeGb;
+ }
+ public function setDiskType($diskType)
+ {
+ $this->diskType = $diskType;
+ }
+ public function getDiskType()
+ {
+ return $this->diskType;
+ }
+ public function setSourceImage($sourceImage)
+ {
+ $this->sourceImage = $sourceImage;
+ }
+ public function getSourceImage()
+ {
+ return $this->sourceImage;
+ }
+ public function setSourceImageEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $sourceImageEncryptionKey)
+ {
+ $this->sourceImageEncryptionKey = $sourceImageEncryptionKey;
+ }
+ public function getSourceImageEncryptionKey()
+ {
+ return $this->sourceImageEncryptionKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Autoscaler.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Autoscaler.php
new file mode 100644
index 00000000..f60faf8a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Autoscaler.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Autoscaler extends Google_Model
+{
+ protected $autoscalingPolicyType = 'Google_Service_Compute_AutoscalingPolicy';
+ protected $autoscalingPolicyDataType = '';
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $region;
+ public $selfLink;
+ public $target;
+ public $zone;
+
+ public function setAutoscalingPolicy(Google_Service_Compute_AutoscalingPolicy $autoscalingPolicy)
+ {
+ $this->autoscalingPolicy = $autoscalingPolicy;
+ }
+ public function getAutoscalingPolicy()
+ {
+ return $this->autoscalingPolicy;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerAggregatedList.php
new file mode 100644
index 00000000..9d980f2c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalerAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_AutoscalersScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerList.php
new file mode 100644
index 00000000..30c52054
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalerList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalerList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Autoscaler';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedList.php
new file mode 100644
index 00000000..41f1be32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalersScopedList extends Google_Collection
+{
+ protected $collection_key = 'autoscalers';
+ protected $autoscalersType = 'Google_Service_Compute_Autoscaler';
+ protected $autoscalersDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_AutoscalersScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setAutoscalers($autoscalers)
+ {
+ $this->autoscalers = $autoscalers;
+ }
+ public function getAutoscalers()
+ {
+ return $this->autoscalers;
+ }
+ public function setWarning(Google_Service_Compute_AutoscalersScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarning.php
new file mode 100644
index 00000000..7471eda9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalersScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_AutoscalersScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarningData.php
new file mode 100644
index 00000000..d6139c26
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalersScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalersScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicy.php
new file mode 100644
index 00000000..80ba5188
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalingPolicy extends Google_Collection
+{
+ protected $collection_key = 'customMetricUtilizations';
+ public $coolDownPeriodSec;
+ protected $cpuUtilizationType = 'Google_Service_Compute_AutoscalingPolicyCpuUtilization';
+ protected $cpuUtilizationDataType = '';
+ protected $customMetricUtilizationsType = 'Google_Service_Compute_AutoscalingPolicyCustomMetricUtilization';
+ protected $customMetricUtilizationsDataType = 'array';
+ protected $loadBalancingUtilizationType = 'Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization';
+ protected $loadBalancingUtilizationDataType = '';
+ public $maxNumReplicas;
+ public $minNumReplicas;
+
+ public function setCoolDownPeriodSec($coolDownPeriodSec)
+ {
+ $this->coolDownPeriodSec = $coolDownPeriodSec;
+ }
+ public function getCoolDownPeriodSec()
+ {
+ return $this->coolDownPeriodSec;
+ }
+ public function setCpuUtilization(Google_Service_Compute_AutoscalingPolicyCpuUtilization $cpuUtilization)
+ {
+ $this->cpuUtilization = $cpuUtilization;
+ }
+ public function getCpuUtilization()
+ {
+ return $this->cpuUtilization;
+ }
+ public function setCustomMetricUtilizations($customMetricUtilizations)
+ {
+ $this->customMetricUtilizations = $customMetricUtilizations;
+ }
+ public function getCustomMetricUtilizations()
+ {
+ return $this->customMetricUtilizations;
+ }
+ public function setLoadBalancingUtilization(Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization)
+ {
+ $this->loadBalancingUtilization = $loadBalancingUtilization;
+ }
+ public function getLoadBalancingUtilization()
+ {
+ return $this->loadBalancingUtilization;
+ }
+ public function setMaxNumReplicas($maxNumReplicas)
+ {
+ $this->maxNumReplicas = $maxNumReplicas;
+ }
+ public function getMaxNumReplicas()
+ {
+ return $this->maxNumReplicas;
+ }
+ public function setMinNumReplicas($minNumReplicas)
+ {
+ $this->minNumReplicas = $minNumReplicas;
+ }
+ public function getMinNumReplicas()
+ {
+ return $this->minNumReplicas;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCpuUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCpuUtilization.php
new file mode 100644
index 00000000..e528d597
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCpuUtilization.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalingPolicyCpuUtilization extends Google_Model
+{
+ public $utilizationTarget;
+
+ public function setUtilizationTarget($utilizationTarget)
+ {
+ $this->utilizationTarget = $utilizationTarget;
+ }
+ public function getUtilizationTarget()
+ {
+ return $this->utilizationTarget;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCustomMetricUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCustomMetricUtilization.php
new file mode 100644
index 00000000..c733d3da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyCustomMetricUtilization.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalingPolicyCustomMetricUtilization extends Google_Model
+{
+ public $metric;
+ public $utilizationTarget;
+ public $utilizationTargetType;
+
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+ public function setUtilizationTarget($utilizationTarget)
+ {
+ $this->utilizationTarget = $utilizationTarget;
+ }
+ public function getUtilizationTarget()
+ {
+ return $this->utilizationTarget;
+ }
+ public function setUtilizationTargetType($utilizationTargetType)
+ {
+ $this->utilizationTargetType = $utilizationTargetType;
+ }
+ public function getUtilizationTargetType()
+ {
+ return $this->utilizationTargetType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyLoadBalancingUtilization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyLoadBalancingUtilization.php
new file mode 100644
index 00000000..f52e3e67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/AutoscalingPolicyLoadBalancingUtilization.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization extends Google_Model
+{
+ public $utilizationTarget;
+
+ public function setUtilizationTarget($utilizationTarget)
+ {
+ $this->utilizationTarget = $utilizationTarget;
+ }
+ public function getUtilizationTarget()
+ {
+ return $this->utilizationTarget;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Backend.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Backend.php
new file mode 100644
index 00000000..77240d08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Backend.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Backend extends Google_Model
+{
+ public $balancingMode;
+ public $capacityScaler;
+ public $description;
+ public $group;
+ public $maxConnections;
+ public $maxConnectionsPerInstance;
+ public $maxRate;
+ public $maxRatePerInstance;
+ public $maxUtilization;
+
+ public function setBalancingMode($balancingMode)
+ {
+ $this->balancingMode = $balancingMode;
+ }
+ public function getBalancingMode()
+ {
+ return $this->balancingMode;
+ }
+ public function setCapacityScaler($capacityScaler)
+ {
+ $this->capacityScaler = $capacityScaler;
+ }
+ public function getCapacityScaler()
+ {
+ return $this->capacityScaler;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setGroup($group)
+ {
+ $this->group = $group;
+ }
+ public function getGroup()
+ {
+ return $this->group;
+ }
+ public function setMaxConnections($maxConnections)
+ {
+ $this->maxConnections = $maxConnections;
+ }
+ public function getMaxConnections()
+ {
+ return $this->maxConnections;
+ }
+ public function setMaxConnectionsPerInstance($maxConnectionsPerInstance)
+ {
+ $this->maxConnectionsPerInstance = $maxConnectionsPerInstance;
+ }
+ public function getMaxConnectionsPerInstance()
+ {
+ return $this->maxConnectionsPerInstance;
+ }
+ public function setMaxRate($maxRate)
+ {
+ $this->maxRate = $maxRate;
+ }
+ public function getMaxRate()
+ {
+ return $this->maxRate;
+ }
+ public function setMaxRatePerInstance($maxRatePerInstance)
+ {
+ $this->maxRatePerInstance = $maxRatePerInstance;
+ }
+ public function getMaxRatePerInstance()
+ {
+ return $this->maxRatePerInstance;
+ }
+ public function setMaxUtilization($maxUtilization)
+ {
+ $this->maxUtilization = $maxUtilization;
+ }
+ public function getMaxUtilization()
+ {
+ return $this->maxUtilization;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php
new file mode 100644
index 00000000..b0c1811b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucket.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendBucket extends Google_Model
+{
+ public $bucketName;
+ public $creationTimestamp;
+ public $description;
+ public $enableCdn;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+
+ public function setBucketName($bucketName)
+ {
+ $this->bucketName = $bucketName;
+ }
+ public function getBucketName()
+ {
+ return $this->bucketName;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEnableCdn($enableCdn)
+ {
+ $this->enableCdn = $enableCdn;
+ }
+ public function getEnableCdn()
+ {
+ return $this->enableCdn;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucketList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucketList.php
new file mode 100644
index 00000000..dfad709e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendBucketList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendBucketList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_BackendBucket';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendService.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendService.php
new file mode 100644
index 00000000..0ac30517
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendService.php
@@ -0,0 +1,195 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendService extends Google_Collection
+{
+ protected $collection_key = 'healthChecks';
+ public $affinityCookieTtlSec;
+ protected $backendsType = 'Google_Service_Compute_Backend';
+ protected $backendsDataType = 'array';
+ protected $connectionDrainingType = 'Google_Service_Compute_ConnectionDraining';
+ protected $connectionDrainingDataType = '';
+ public $creationTimestamp;
+ public $description;
+ public $enableCDN;
+ public $fingerprint;
+ public $healthChecks;
+ public $id;
+ public $kind;
+ public $loadBalancingScheme;
+ public $name;
+ public $port;
+ public $portName;
+ public $protocol;
+ public $region;
+ public $selfLink;
+ public $sessionAffinity;
+ public $timeoutSec;
+
+ public function setAffinityCookieTtlSec($affinityCookieTtlSec)
+ {
+ $this->affinityCookieTtlSec = $affinityCookieTtlSec;
+ }
+ public function getAffinityCookieTtlSec()
+ {
+ return $this->affinityCookieTtlSec;
+ }
+ public function setBackends($backends)
+ {
+ $this->backends = $backends;
+ }
+ public function getBackends()
+ {
+ return $this->backends;
+ }
+ public function setConnectionDraining(Google_Service_Compute_ConnectionDraining $connectionDraining)
+ {
+ $this->connectionDraining = $connectionDraining;
+ }
+ public function getConnectionDraining()
+ {
+ return $this->connectionDraining;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEnableCDN($enableCDN)
+ {
+ $this->enableCDN = $enableCDN;
+ }
+ public function getEnableCDN()
+ {
+ return $this->enableCDN;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setHealthChecks($healthChecks)
+ {
+ $this->healthChecks = $healthChecks;
+ }
+ public function getHealthChecks()
+ {
+ return $this->healthChecks;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLoadBalancingScheme($loadBalancingScheme)
+ {
+ $this->loadBalancingScheme = $loadBalancingScheme;
+ }
+ public function getLoadBalancingScheme()
+ {
+ return $this->loadBalancingScheme;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setPortName($portName)
+ {
+ $this->portName = $portName;
+ }
+ public function getPortName()
+ {
+ return $this->portName;
+ }
+ public function setProtocol($protocol)
+ {
+ $this->protocol = $protocol;
+ }
+ public function getProtocol()
+ {
+ return $this->protocol;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSessionAffinity($sessionAffinity)
+ {
+ $this->sessionAffinity = $sessionAffinity;
+ }
+ public function getSessionAffinity()
+ {
+ return $this->sessionAffinity;
+ }
+ public function setTimeoutSec($timeoutSec)
+ {
+ $this->timeoutSec = $timeoutSec;
+ }
+ public function getTimeoutSec()
+ {
+ return $this->timeoutSec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceAggregatedList.php
new file mode 100644
index 00000000..c84b4081
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendServiceAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_BackendServicesScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceGroupHealth.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceGroupHealth.php
new file mode 100644
index 00000000..e748b062
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceGroupHealth.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection
+{
+ protected $collection_key = 'healthStatus';
+ protected $healthStatusType = 'Google_Service_Compute_HealthStatus';
+ protected $healthStatusDataType = 'array';
+ public $kind;
+
+ public function setHealthStatus($healthStatus)
+ {
+ $this->healthStatus = $healthStatus;
+ }
+ public function getHealthStatus()
+ {
+ return $this->healthStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceList.php
new file mode 100644
index 00000000..c0800a67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServiceList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendServiceList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_BackendService';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedList.php
new file mode 100644
index 00000000..2ac8c28a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendServicesScopedList extends Google_Collection
+{
+ protected $collection_key = 'backendServices';
+ protected $backendServicesType = 'Google_Service_Compute_BackendService';
+ protected $backendServicesDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_BackendServicesScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setBackendServices($backendServices)
+ {
+ $this->backendServices = $backendServices;
+ }
+ public function getBackendServices()
+ {
+ return $this->backendServices;
+ }
+ public function setWarning(Google_Service_Compute_BackendServicesScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarning.php
new file mode 100644
index 00000000..87b27240
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendServicesScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_BackendServicesScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarningData.php
new file mode 100644
index 00000000..a3e254cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/BackendServicesScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_BackendServicesScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CacheInvalidationRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CacheInvalidationRule.php
new file mode 100644
index 00000000..f4cf93be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CacheInvalidationRule.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_CacheInvalidationRule extends Google_Model
+{
+ public $host;
+ public $path;
+
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ConnectionDraining.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ConnectionDraining.php
new file mode 100644
index 00000000..21a63afd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ConnectionDraining.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ConnectionDraining extends Google_Model
+{
+ public $drainingTimeoutSec;
+
+ public function setDrainingTimeoutSec($drainingTimeoutSec)
+ {
+ $this->drainingTimeoutSec = $drainingTimeoutSec;
+ }
+ public function getDrainingTimeoutSec()
+ {
+ return $this->drainingTimeoutSec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php
new file mode 100644
index 00000000..423e6d12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKey.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_CustomerEncryptionKey extends Google_Model
+{
+ public $rawKey;
+ public $sha256;
+
+ public function setRawKey($rawKey)
+ {
+ $this->rawKey = $rawKey;
+ }
+ public function getRawKey()
+ {
+ return $this->rawKey;
+ }
+ public function setSha256($sha256)
+ {
+ $this->sha256 = $sha256;
+ }
+ public function getSha256()
+ {
+ return $this->sha256;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKeyProtectedDisk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKeyProtectedDisk.php
new file mode 100644
index 00000000..91203db0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/CustomerEncryptionKeyProtectedDisk.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_CustomerEncryptionKeyProtectedDisk extends Google_Model
+{
+ protected $diskEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $diskEncryptionKeyDataType = '';
+ public $source;
+
+ public function setDiskEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $diskEncryptionKey)
+ {
+ $this->diskEncryptionKey = $diskEncryptionKey;
+ }
+ public function getDiskEncryptionKey()
+ {
+ return $this->diskEncryptionKey;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DeprecationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DeprecationStatus.php
new file mode 100644
index 00000000..90c0e85f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DeprecationStatus.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DeprecationStatus extends Google_Model
+{
+ public $deleted;
+ public $deprecated;
+ public $obsolete;
+ public $replacement;
+ public $state;
+
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setDeprecated($deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setObsolete($obsolete)
+ {
+ $this->obsolete = $obsolete;
+ }
+ public function getObsolete()
+ {
+ return $this->obsolete;
+ }
+ public function setReplacement($replacement)
+ {
+ $this->replacement = $replacement;
+ }
+ public function getReplacement()
+ {
+ return $this->replacement;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Disk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Disk.php
new file mode 100644
index 00000000..58c2e3ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Disk.php
@@ -0,0 +1,223 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Disk extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $creationTimestamp;
+ public $description;
+ protected $diskEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $diskEncryptionKeyDataType = '';
+ public $id;
+ public $kind;
+ public $lastAttachTimestamp;
+ public $lastDetachTimestamp;
+ public $licenses;
+ public $name;
+ public $options;
+ public $selfLink;
+ public $sizeGb;
+ public $sourceImage;
+ protected $sourceImageEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $sourceImageEncryptionKeyDataType = '';
+ public $sourceImageId;
+ public $sourceSnapshot;
+ protected $sourceSnapshotEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $sourceSnapshotEncryptionKeyDataType = '';
+ public $sourceSnapshotId;
+ public $status;
+ public $type;
+ public $users;
+ public $zone;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDiskEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $diskEncryptionKey)
+ {
+ $this->diskEncryptionKey = $diskEncryptionKey;
+ }
+ public function getDiskEncryptionKey()
+ {
+ return $this->diskEncryptionKey;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastAttachTimestamp($lastAttachTimestamp)
+ {
+ $this->lastAttachTimestamp = $lastAttachTimestamp;
+ }
+ public function getLastAttachTimestamp()
+ {
+ return $this->lastAttachTimestamp;
+ }
+ public function setLastDetachTimestamp($lastDetachTimestamp)
+ {
+ $this->lastDetachTimestamp = $lastDetachTimestamp;
+ }
+ public function getLastDetachTimestamp()
+ {
+ return $this->lastDetachTimestamp;
+ }
+ public function setLicenses($licenses)
+ {
+ $this->licenses = $licenses;
+ }
+ public function getLicenses()
+ {
+ return $this->licenses;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSizeGb($sizeGb)
+ {
+ $this->sizeGb = $sizeGb;
+ }
+ public function getSizeGb()
+ {
+ return $this->sizeGb;
+ }
+ public function setSourceImage($sourceImage)
+ {
+ $this->sourceImage = $sourceImage;
+ }
+ public function getSourceImage()
+ {
+ return $this->sourceImage;
+ }
+ public function setSourceImageEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $sourceImageEncryptionKey)
+ {
+ $this->sourceImageEncryptionKey = $sourceImageEncryptionKey;
+ }
+ public function getSourceImageEncryptionKey()
+ {
+ return $this->sourceImageEncryptionKey;
+ }
+ public function setSourceImageId($sourceImageId)
+ {
+ $this->sourceImageId = $sourceImageId;
+ }
+ public function getSourceImageId()
+ {
+ return $this->sourceImageId;
+ }
+ public function setSourceSnapshot($sourceSnapshot)
+ {
+ $this->sourceSnapshot = $sourceSnapshot;
+ }
+ public function getSourceSnapshot()
+ {
+ return $this->sourceSnapshot;
+ }
+ public function setSourceSnapshotEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $sourceSnapshotEncryptionKey)
+ {
+ $this->sourceSnapshotEncryptionKey = $sourceSnapshotEncryptionKey;
+ }
+ public function getSourceSnapshotEncryptionKey()
+ {
+ return $this->sourceSnapshotEncryptionKey;
+ }
+ public function setSourceSnapshotId($sourceSnapshotId)
+ {
+ $this->sourceSnapshotId = $sourceSnapshotId;
+ }
+ public function getSourceSnapshotId()
+ {
+ return $this->sourceSnapshotId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskAggregatedList.php
new file mode 100644
index 00000000..77707292
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_DisksScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskList.php
new file mode 100644
index 00000000..5cc85b9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Disk';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskMoveRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskMoveRequest.php
new file mode 100644
index 00000000..e95d4668
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskMoveRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskMoveRequest extends Google_Model
+{
+ public $destinationZone;
+ public $targetDisk;
+
+ public function setDestinationZone($destinationZone)
+ {
+ $this->destinationZone = $destinationZone;
+ }
+ public function getDestinationZone()
+ {
+ return $this->destinationZone;
+ }
+ public function setTargetDisk($targetDisk)
+ {
+ $this->targetDisk = $targetDisk;
+ }
+ public function getTargetDisk()
+ {
+ return $this->targetDisk;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskType.php
new file mode 100644
index 00000000..f283fc27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskType.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskType extends Google_Model
+{
+ public $creationTimestamp;
+ public $defaultDiskSizeGb;
+ protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $deprecatedDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ public $validDiskSize;
+ public $zone;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDefaultDiskSizeGb($defaultDiskSizeGb)
+ {
+ $this->defaultDiskSizeGb = $defaultDiskSizeGb;
+ }
+ public function getDefaultDiskSizeGb()
+ {
+ return $this->defaultDiskSizeGb;
+ }
+ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setValidDiskSize($validDiskSize)
+ {
+ $this->validDiskSize = $validDiskSize;
+ }
+ public function getValidDiskSize()
+ {
+ return $this->validDiskSize;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeAggregatedList.php
new file mode 100644
index 00000000..c866b2af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeList.php
new file mode 100644
index 00000000..4ae1c27c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypeList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskTypeList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_DiskType';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedList.php
new file mode 100644
index 00000000..174396be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskTypesScopedList extends Google_Collection
+{
+ protected $collection_key = 'diskTypes';
+ protected $diskTypesType = 'Google_Service_Compute_DiskType';
+ protected $diskTypesDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setDiskTypes($diskTypes)
+ {
+ $this->diskTypes = $diskTypes;
+ }
+ public function getDiskTypes()
+ {
+ return $this->diskTypes;
+ }
+ public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarning.php
new file mode 100644
index 00000000..c12c0d7a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskTypesScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_DiskTypesScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarningData.php
new file mode 100644
index 00000000..a3b73434
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DiskTypesScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksResizeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksResizeRequest.php
new file mode 100644
index 00000000..3d961a60
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksResizeRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DisksResizeRequest extends Google_Model
+{
+ public $sizeGb;
+
+ public function setSizeGb($sizeGb)
+ {
+ $this->sizeGb = $sizeGb;
+ }
+ public function getSizeGb()
+ {
+ return $this->sizeGb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedList.php
new file mode 100644
index 00000000..4d886495
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DisksScopedList extends Google_Collection
+{
+ protected $collection_key = 'disks';
+ protected $disksType = 'Google_Service_Compute_Disk';
+ protected $disksDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_DisksScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setDisks($disks)
+ {
+ $this->disks = $disks;
+ }
+ public function getDisks()
+ {
+ return $this->disks;
+ }
+ public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarning.php
new file mode 100644
index 00000000..22ac1b64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DisksScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarningData.php
new file mode 100644
index 00000000..905acde1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/DisksScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_DisksScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Firewall.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Firewall.php
new file mode 100644
index 00000000..35c6bbc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Firewall.php
@@ -0,0 +1,122 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Firewall extends Google_Collection
+{
+ protected $collection_key = 'targetTags';
+ protected $allowedType = 'Google_Service_Compute_FirewallAllowed';
+ protected $allowedDataType = 'array';
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $network;
+ public $selfLink;
+ public $sourceRanges;
+ public $sourceTags;
+ public $targetTags;
+
+ public function setAllowed($allowed)
+ {
+ $this->allowed = $allowed;
+ }
+ public function getAllowed()
+ {
+ return $this->allowed;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSourceRanges($sourceRanges)
+ {
+ $this->sourceRanges = $sourceRanges;
+ }
+ public function getSourceRanges()
+ {
+ return $this->sourceRanges;
+ }
+ public function setSourceTags($sourceTags)
+ {
+ $this->sourceTags = $sourceTags;
+ }
+ public function getSourceTags()
+ {
+ return $this->sourceTags;
+ }
+ public function setTargetTags($targetTags)
+ {
+ $this->targetTags = $targetTags;
+ }
+ public function getTargetTags()
+ {
+ return $this->targetTags;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallAllowed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallAllowed.php
new file mode 100644
index 00000000..8b301412
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallAllowed.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_FirewallAllowed extends Google_Collection
+{
+ protected $collection_key = 'ports';
+ protected $internal_gapi_mappings = array(
+ "iPProtocol" => "IPProtocol",
+ );
+ public $iPProtocol;
+ public $ports;
+
+ public function setIPProtocol($iPProtocol)
+ {
+ $this->iPProtocol = $iPProtocol;
+ }
+ public function getIPProtocol()
+ {
+ return $this->iPProtocol;
+ }
+ public function setPorts($ports)
+ {
+ $this->ports = $ports;
+ }
+ public function getPorts()
+ {
+ return $this->ports;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallList.php
new file mode 100644
index 00000000..6d6f46dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/FirewallList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_FirewallList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Firewall';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php
new file mode 100644
index 00000000..df993147
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRule.php
@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ForwardingRule extends Google_Collection
+{
+ protected $collection_key = 'ports';
+ protected $internal_gapi_mappings = array(
+ "iPAddress" => "IPAddress",
+ "iPProtocol" => "IPProtocol",
+ );
+ public $iPAddress;
+ public $iPProtocol;
+ public $backendService;
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $loadBalancingScheme;
+ public $name;
+ public $network;
+ public $portRange;
+ public $ports;
+ public $region;
+ public $selfLink;
+ public $subnetwork;
+ public $target;
+
+ public function setIPAddress($iPAddress)
+ {
+ $this->iPAddress = $iPAddress;
+ }
+ public function getIPAddress()
+ {
+ return $this->iPAddress;
+ }
+ public function setIPProtocol($iPProtocol)
+ {
+ $this->iPProtocol = $iPProtocol;
+ }
+ public function getIPProtocol()
+ {
+ return $this->iPProtocol;
+ }
+ public function setBackendService($backendService)
+ {
+ $this->backendService = $backendService;
+ }
+ public function getBackendService()
+ {
+ return $this->backendService;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLoadBalancingScheme($loadBalancingScheme)
+ {
+ $this->loadBalancingScheme = $loadBalancingScheme;
+ }
+ public function getLoadBalancingScheme()
+ {
+ return $this->loadBalancingScheme;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setPortRange($portRange)
+ {
+ $this->portRange = $portRange;
+ }
+ public function getPortRange()
+ {
+ return $this->portRange;
+ }
+ public function setPorts($ports)
+ {
+ $this->ports = $ports;
+ }
+ public function getPorts()
+ {
+ return $this->ports;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSubnetwork($subnetwork)
+ {
+ $this->subnetwork = $subnetwork;
+ }
+ public function getSubnetwork()
+ {
+ return $this->subnetwork;
+ }
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleAggregatedList.php
new file mode 100644
index 00000000..06994bd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleList.php
new file mode 100644
index 00000000..8c0701c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRuleList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ForwardingRuleList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_ForwardingRule';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedList.php
new file mode 100644
index 00000000..cff55a4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection
+{
+ protected $collection_key = 'forwardingRules';
+ protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule';
+ protected $forwardingRulesDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setForwardingRules($forwardingRules)
+ {
+ $this->forwardingRules = $forwardingRules;
+ }
+ public function getForwardingRules()
+ {
+ return $this->forwardingRules;
+ }
+ public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarning.php
new file mode 100644
index 00000000..82ff32b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarningData.php
new file mode 100644
index 00000000..f330149d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ForwardingRulesScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/GuestOsFeature.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/GuestOsFeature.php
new file mode 100644
index 00000000..60bd8857
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/GuestOsFeature.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_GuestOsFeature extends Google_Model
+{
+ public $type;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HTTP2HealthCheck.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HTTP2HealthCheck.php
new file mode 100644
index 00000000..d1939e79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HTTP2HealthCheck.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HTTP2HealthCheck extends Google_Model
+{
+ public $host;
+ public $port;
+ public $portName;
+ public $proxyHeader;
+ public $requestPath;
+
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setPortName($portName)
+ {
+ $this->portName = $portName;
+ }
+ public function getPortName()
+ {
+ return $this->portName;
+ }
+ public function setProxyHeader($proxyHeader)
+ {
+ $this->proxyHeader = $proxyHeader;
+ }
+ public function getProxyHeader()
+ {
+ return $this->proxyHeader;
+ }
+ public function setRequestPath($requestPath)
+ {
+ $this->requestPath = $requestPath;
+ }
+ public function getRequestPath()
+ {
+ return $this->requestPath;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheck.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheck.php
new file mode 100644
index 00000000..9f2d9b3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheck.php
@@ -0,0 +1,160 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HealthCheck extends Google_Model
+{
+ public $checkIntervalSec;
+ public $creationTimestamp;
+ public $description;
+ public $healthyThreshold;
+ protected $httpHealthCheckType = 'Google_Service_Compute_HTTPHealthCheck';
+ protected $httpHealthCheckDataType = '';
+ protected $httpsHealthCheckType = 'Google_Service_Compute_HTTPSHealthCheck';
+ protected $httpsHealthCheckDataType = '';
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ protected $sslHealthCheckType = 'Google_Service_Compute_SSLHealthCheck';
+ protected $sslHealthCheckDataType = '';
+ protected $tcpHealthCheckType = 'Google_Service_Compute_TCPHealthCheck';
+ protected $tcpHealthCheckDataType = '';
+ public $timeoutSec;
+ public $type;
+ public $unhealthyThreshold;
+
+ public function setCheckIntervalSec($checkIntervalSec)
+ {
+ $this->checkIntervalSec = $checkIntervalSec;
+ }
+ public function getCheckIntervalSec()
+ {
+ return $this->checkIntervalSec;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHealthyThreshold($healthyThreshold)
+ {
+ $this->healthyThreshold = $healthyThreshold;
+ }
+ public function getHealthyThreshold()
+ {
+ return $this->healthyThreshold;
+ }
+ public function setHttpHealthCheck(Google_Service_Compute_HTTPHealthCheck $httpHealthCheck)
+ {
+ $this->httpHealthCheck = $httpHealthCheck;
+ }
+ public function getHttpHealthCheck()
+ {
+ return $this->httpHealthCheck;
+ }
+ public function setHttpsHealthCheck(Google_Service_Compute_HTTPSHealthCheck $httpsHealthCheck)
+ {
+ $this->httpsHealthCheck = $httpsHealthCheck;
+ }
+ public function getHttpsHealthCheck()
+ {
+ return $this->httpsHealthCheck;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSslHealthCheck(Google_Service_Compute_SSLHealthCheck $sslHealthCheck)
+ {
+ $this->sslHealthCheck = $sslHealthCheck;
+ }
+ public function getSslHealthCheck()
+ {
+ return $this->sslHealthCheck;
+ }
+ public function setTcpHealthCheck(Google_Service_Compute_TCPHealthCheck $tcpHealthCheck)
+ {
+ $this->tcpHealthCheck = $tcpHealthCheck;
+ }
+ public function getTcpHealthCheck()
+ {
+ return $this->tcpHealthCheck;
+ }
+ public function setTimeoutSec($timeoutSec)
+ {
+ $this->timeoutSec = $timeoutSec;
+ }
+ public function getTimeoutSec()
+ {
+ return $this->timeoutSec;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnhealthyThreshold($unhealthyThreshold)
+ {
+ $this->unhealthyThreshold = $unhealthyThreshold;
+ }
+ public function getUnhealthyThreshold()
+ {
+ return $this->unhealthyThreshold;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckList.php
new file mode 100644
index 00000000..9a7da005
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HealthCheckList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_HealthCheck';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckReference.php
new file mode 100644
index 00000000..ecd0a0b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthCheckReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HealthCheckReference extends Google_Model
+{
+ public $healthCheck;
+
+ public function setHealthCheck($healthCheck)
+ {
+ $this->healthCheck = $healthCheck;
+ }
+ public function getHealthCheck()
+ {
+ return $this->healthCheck;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthStatus.php
new file mode 100644
index 00000000..264694a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HealthStatus.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HealthStatus extends Google_Model
+{
+ public $healthState;
+ public $instance;
+ public $ipAddress;
+ public $port;
+
+ public function setHealthState($healthState)
+ {
+ $this->healthState = $healthState;
+ }
+ public function getHealthState()
+ {
+ return $this->healthState;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HostRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HostRule.php
new file mode 100644
index 00000000..345b3254
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HostRule.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HostRule extends Google_Collection
+{
+ protected $collection_key = 'hosts';
+ public $description;
+ public $hosts;
+ public $pathMatcher;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHosts($hosts)
+ {
+ $this->hosts = $hosts;
+ }
+ public function getHosts()
+ {
+ return $this->hosts;
+ }
+ public function setPathMatcher($pathMatcher)
+ {
+ $this->pathMatcher = $pathMatcher;
+ }
+ public function getPathMatcher()
+ {
+ return $this->pathMatcher;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheck.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheck.php
new file mode 100644
index 00000000..d886f6bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheck.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HttpHealthCheck extends Google_Model
+{
+ public $checkIntervalSec;
+ public $creationTimestamp;
+ public $description;
+ public $healthyThreshold;
+ public $host;
+ public $id;
+ public $kind;
+ public $name;
+ public $port;
+ public $requestPath;
+ public $selfLink;
+ public $timeoutSec;
+ public $unhealthyThreshold;
+
+ public function setCheckIntervalSec($checkIntervalSec)
+ {
+ $this->checkIntervalSec = $checkIntervalSec;
+ }
+ public function getCheckIntervalSec()
+ {
+ return $this->checkIntervalSec;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHealthyThreshold($healthyThreshold)
+ {
+ $this->healthyThreshold = $healthyThreshold;
+ }
+ public function getHealthyThreshold()
+ {
+ return $this->healthyThreshold;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setRequestPath($requestPath)
+ {
+ $this->requestPath = $requestPath;
+ }
+ public function getRequestPath()
+ {
+ return $this->requestPath;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTimeoutSec($timeoutSec)
+ {
+ $this->timeoutSec = $timeoutSec;
+ }
+ public function getTimeoutSec()
+ {
+ return $this->timeoutSec;
+ }
+ public function setUnhealthyThreshold($unhealthyThreshold)
+ {
+ $this->unhealthyThreshold = $unhealthyThreshold;
+ }
+ public function getUnhealthyThreshold()
+ {
+ return $this->unhealthyThreshold;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheckList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheckList.php
new file mode 100644
index 00000000..c700cf50
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpHealthCheckList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HttpHealthCheckList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_HttpHealthCheck';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheck.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheck.php
new file mode 100644
index 00000000..22cfe26b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheck.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HttpsHealthCheck extends Google_Model
+{
+ public $checkIntervalSec;
+ public $creationTimestamp;
+ public $description;
+ public $healthyThreshold;
+ public $host;
+ public $id;
+ public $kind;
+ public $name;
+ public $port;
+ public $requestPath;
+ public $selfLink;
+ public $timeoutSec;
+ public $unhealthyThreshold;
+
+ public function setCheckIntervalSec($checkIntervalSec)
+ {
+ $this->checkIntervalSec = $checkIntervalSec;
+ }
+ public function getCheckIntervalSec()
+ {
+ return $this->checkIntervalSec;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHealthyThreshold($healthyThreshold)
+ {
+ $this->healthyThreshold = $healthyThreshold;
+ }
+ public function getHealthyThreshold()
+ {
+ return $this->healthyThreshold;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setRequestPath($requestPath)
+ {
+ $this->requestPath = $requestPath;
+ }
+ public function getRequestPath()
+ {
+ return $this->requestPath;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTimeoutSec($timeoutSec)
+ {
+ $this->timeoutSec = $timeoutSec;
+ }
+ public function getTimeoutSec()
+ {
+ return $this->timeoutSec;
+ }
+ public function setUnhealthyThreshold($unhealthyThreshold)
+ {
+ $this->unhealthyThreshold = $unhealthyThreshold;
+ }
+ public function getUnhealthyThreshold()
+ {
+ return $this->unhealthyThreshold;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheckList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheckList.php
new file mode 100644
index 00000000..6db553d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/HttpsHealthCheckList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_HttpsHealthCheckList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_HttpsHealthCheck';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Image.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Image.php
new file mode 100644
index 00000000..4f72521f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Image.php
@@ -0,0 +1,198 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Image extends Google_Collection
+{
+ protected $collection_key = 'licenses';
+ public $archiveSizeBytes;
+ public $creationTimestamp;
+ protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $deprecatedDataType = '';
+ public $description;
+ public $diskSizeGb;
+ public $family;
+ protected $guestOsFeaturesType = 'Google_Service_Compute_GuestOsFeature';
+ protected $guestOsFeaturesDataType = 'array';
+ public $id;
+ protected $imageEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $imageEncryptionKeyDataType = '';
+ public $kind;
+ public $licenses;
+ public $name;
+ protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk';
+ protected $rawDiskDataType = '';
+ public $selfLink;
+ public $sourceDisk;
+ protected $sourceDiskEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $sourceDiskEncryptionKeyDataType = '';
+ public $sourceDiskId;
+ public $sourceType;
+ public $status;
+
+ public function setArchiveSizeBytes($archiveSizeBytes)
+ {
+ $this->archiveSizeBytes = $archiveSizeBytes;
+ }
+ public function getArchiveSizeBytes()
+ {
+ return $this->archiveSizeBytes;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDiskSizeGb($diskSizeGb)
+ {
+ $this->diskSizeGb = $diskSizeGb;
+ }
+ public function getDiskSizeGb()
+ {
+ return $this->diskSizeGb;
+ }
+ public function setFamily($family)
+ {
+ $this->family = $family;
+ }
+ public function getFamily()
+ {
+ return $this->family;
+ }
+ public function setGuestOsFeatures($guestOsFeatures)
+ {
+ $this->guestOsFeatures = $guestOsFeatures;
+ }
+ public function getGuestOsFeatures()
+ {
+ return $this->guestOsFeatures;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImageEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $imageEncryptionKey)
+ {
+ $this->imageEncryptionKey = $imageEncryptionKey;
+ }
+ public function getImageEncryptionKey()
+ {
+ return $this->imageEncryptionKey;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLicenses($licenses)
+ {
+ $this->licenses = $licenses;
+ }
+ public function getLicenses()
+ {
+ return $this->licenses;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk)
+ {
+ $this->rawDisk = $rawDisk;
+ }
+ public function getRawDisk()
+ {
+ return $this->rawDisk;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSourceDisk($sourceDisk)
+ {
+ $this->sourceDisk = $sourceDisk;
+ }
+ public function getSourceDisk()
+ {
+ return $this->sourceDisk;
+ }
+ public function setSourceDiskEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $sourceDiskEncryptionKey)
+ {
+ $this->sourceDiskEncryptionKey = $sourceDiskEncryptionKey;
+ }
+ public function getSourceDiskEncryptionKey()
+ {
+ return $this->sourceDiskEncryptionKey;
+ }
+ public function setSourceDiskId($sourceDiskId)
+ {
+ $this->sourceDiskId = $sourceDiskId;
+ }
+ public function getSourceDiskId()
+ {
+ return $this->sourceDiskId;
+ }
+ public function setSourceType($sourceType)
+ {
+ $this->sourceType = $sourceType;
+ }
+ public function getSourceType()
+ {
+ return $this->sourceType;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageList.php
new file mode 100644
index 00000000..0ad2e978
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ImageList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Image';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageRawDisk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageRawDisk.php
new file mode 100644
index 00000000..80344fb9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ImageRawDisk.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ImageRawDisk extends Google_Model
+{
+ public $containerType;
+ public $sha1Checksum;
+ public $source;
+
+ public function setContainerType($containerType)
+ {
+ $this->containerType = $containerType;
+ }
+ public function getContainerType()
+ {
+ return $this->containerType;
+ }
+ public function setSha1Checksum($sha1Checksum)
+ {
+ $this->sha1Checksum = $sha1Checksum;
+ }
+ public function getSha1Checksum()
+ {
+ return $this->sha1Checksum;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Instance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Instance.php
new file mode 100644
index 00000000..6f7d7004
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Instance.php
@@ -0,0 +1,190 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Instance extends Google_Collection
+{
+ protected $collection_key = 'serviceAccounts';
+ public $canIpForward;
+ public $cpuPlatform;
+ public $creationTimestamp;
+ public $description;
+ protected $disksType = 'Google_Service_Compute_AttachedDisk';
+ protected $disksDataType = 'array';
+ public $id;
+ public $kind;
+ public $machineType;
+ protected $metadataType = 'Google_Service_Compute_Metadata';
+ protected $metadataDataType = '';
+ public $name;
+ protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface';
+ protected $networkInterfacesDataType = 'array';
+ protected $schedulingType = 'Google_Service_Compute_Scheduling';
+ protected $schedulingDataType = '';
+ public $selfLink;
+ protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount';
+ protected $serviceAccountsDataType = 'array';
+ public $status;
+ public $statusMessage;
+ protected $tagsType = 'Google_Service_Compute_Tags';
+ protected $tagsDataType = '';
+ public $zone;
+
+ public function setCanIpForward($canIpForward)
+ {
+ $this->canIpForward = $canIpForward;
+ }
+ public function getCanIpForward()
+ {
+ return $this->canIpForward;
+ }
+ public function setCpuPlatform($cpuPlatform)
+ {
+ $this->cpuPlatform = $cpuPlatform;
+ }
+ public function getCpuPlatform()
+ {
+ return $this->cpuPlatform;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisks($disks)
+ {
+ $this->disks = $disks;
+ }
+ public function getDisks()
+ {
+ return $this->disks;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+ public function setMetadata(Google_Service_Compute_Metadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetworkInterfaces($networkInterfaces)
+ {
+ $this->networkInterfaces = $networkInterfaces;
+ }
+ public function getNetworkInterfaces()
+ {
+ return $this->networkInterfaces;
+ }
+ public function setScheduling(Google_Service_Compute_Scheduling $scheduling)
+ {
+ $this->scheduling = $scheduling;
+ }
+ public function getScheduling()
+ {
+ return $this->scheduling;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setServiceAccounts($serviceAccounts)
+ {
+ $this->serviceAccounts = $serviceAccounts;
+ }
+ public function getServiceAccounts()
+ {
+ return $this->serviceAccounts;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTags(Google_Service_Compute_Tags $tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceAggregatedList.php
new file mode 100644
index 00000000..91a83c56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstancesScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroup.php
new file mode 100644
index 00000000..f2d83179
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroup.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroup extends Google_Collection
+{
+ protected $collection_key = 'namedPorts';
+ public $creationTimestamp;
+ public $description;
+ public $fingerprint;
+ public $id;
+ public $kind;
+ public $name;
+ protected $namedPortsType = 'Google_Service_Compute_NamedPort';
+ protected $namedPortsDataType = 'array';
+ public $network;
+ public $region;
+ public $selfLink;
+ public $size;
+ public $subnetwork;
+ public $zone;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNamedPorts($namedPorts)
+ {
+ $this->namedPorts = $namedPorts;
+ }
+ public function getNamedPorts()
+ {
+ return $this->namedPorts;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSubnetwork($subnetwork)
+ {
+ $this->subnetwork = $subnetwork;
+ }
+ public function getSubnetwork()
+ {
+ return $this->subnetwork;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupAggregatedList.php
new file mode 100644
index 00000000..1530d36e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceGroupsScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupList.php
new file mode 100644
index 00000000..7e3a843f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceGroup';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php
new file mode 100644
index 00000000..04a8641f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManager.php
@@ -0,0 +1,168 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManager extends Google_Collection
+{
+ protected $collection_key = 'targetPools';
+ public $baseInstanceName;
+ public $creationTimestamp;
+ protected $currentActionsType = 'Google_Service_Compute_InstanceGroupManagerActionsSummary';
+ protected $currentActionsDataType = '';
+ public $description;
+ public $fingerprint;
+ public $id;
+ public $instanceGroup;
+ public $instanceTemplate;
+ public $kind;
+ public $name;
+ protected $namedPortsType = 'Google_Service_Compute_NamedPort';
+ protected $namedPortsDataType = 'array';
+ public $region;
+ public $selfLink;
+ public $targetPools;
+ public $targetSize;
+ public $zone;
+
+ public function setBaseInstanceName($baseInstanceName)
+ {
+ $this->baseInstanceName = $baseInstanceName;
+ }
+ public function getBaseInstanceName()
+ {
+ return $this->baseInstanceName;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setCurrentActions(Google_Service_Compute_InstanceGroupManagerActionsSummary $currentActions)
+ {
+ $this->currentActions = $currentActions;
+ }
+ public function getCurrentActions()
+ {
+ return $this->currentActions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstanceGroup($instanceGroup)
+ {
+ $this->instanceGroup = $instanceGroup;
+ }
+ public function getInstanceGroup()
+ {
+ return $this->instanceGroup;
+ }
+ public function setInstanceTemplate($instanceTemplate)
+ {
+ $this->instanceTemplate = $instanceTemplate;
+ }
+ public function getInstanceTemplate()
+ {
+ return $this->instanceTemplate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNamedPorts($namedPorts)
+ {
+ $this->namedPorts = $namedPorts;
+ }
+ public function getNamedPorts()
+ {
+ return $this->namedPorts;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTargetPools($targetPools)
+ {
+ $this->targetPools = $targetPools;
+ }
+ public function getTargetPools()
+ {
+ return $this->targetPools;
+ }
+ public function setTargetSize($targetSize)
+ {
+ $this->targetSize = $targetSize;
+ }
+ public function getTargetSize()
+ {
+ return $this->targetSize;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php
new file mode 100644
index 00000000..3c115ade
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerActionsSummary.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagerActionsSummary extends Google_Model
+{
+ public $abandoning;
+ public $creating;
+ public $creatingWithoutRetries;
+ public $deleting;
+ public $none;
+ public $recreating;
+ public $refreshing;
+ public $restarting;
+
+ public function setAbandoning($abandoning)
+ {
+ $this->abandoning = $abandoning;
+ }
+ public function getAbandoning()
+ {
+ return $this->abandoning;
+ }
+ public function setCreating($creating)
+ {
+ $this->creating = $creating;
+ }
+ public function getCreating()
+ {
+ return $this->creating;
+ }
+ public function setCreatingWithoutRetries($creatingWithoutRetries)
+ {
+ $this->creatingWithoutRetries = $creatingWithoutRetries;
+ }
+ public function getCreatingWithoutRetries()
+ {
+ return $this->creatingWithoutRetries;
+ }
+ public function setDeleting($deleting)
+ {
+ $this->deleting = $deleting;
+ }
+ public function getDeleting()
+ {
+ return $this->deleting;
+ }
+ public function setNone($none)
+ {
+ $this->none = $none;
+ }
+ public function getNone()
+ {
+ return $this->none;
+ }
+ public function setRecreating($recreating)
+ {
+ $this->recreating = $recreating;
+ }
+ public function getRecreating()
+ {
+ return $this->recreating;
+ }
+ public function setRefreshing($refreshing)
+ {
+ $this->refreshing = $refreshing;
+ }
+ public function getRefreshing()
+ {
+ return $this->refreshing;
+ }
+ public function setRestarting($restarting)
+ {
+ $this->restarting = $restarting;
+ }
+ public function getRestarting()
+ {
+ return $this->restarting;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerAggregatedList.php
new file mode 100644
index 00000000..f323d5f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagerAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceGroupManagersScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerList.php
new file mode 100644
index 00000000..b477ff89
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagerList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagerList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceGroupManager';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersAbandonInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersAbandonInstancesRequest.php
new file mode 100644
index 00000000..003f395a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersAbandonInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersDeleteInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersDeleteInstancesRequest.php
new file mode 100644
index 00000000..730134f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersDeleteInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersListManagedInstancesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersListManagedInstancesResponse.php
new file mode 100644
index 00000000..af31cdf0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersListManagedInstancesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse extends Google_Collection
+{
+ protected $collection_key = 'managedInstances';
+ protected $managedInstancesType = 'Google_Service_Compute_ManagedInstance';
+ protected $managedInstancesDataType = 'array';
+
+ public function setManagedInstances($managedInstances)
+ {
+ $this->managedInstances = $managedInstances;
+ }
+ public function getManagedInstances()
+ {
+ return $this->managedInstances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersRecreateInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersRecreateInstancesRequest.php
new file mode 100644
index 00000000..33c6fdc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersRecreateInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedList.php
new file mode 100644
index 00000000..03a6c2f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersScopedList extends Google_Collection
+{
+ protected $collection_key = 'instanceGroupManagers';
+ protected $instanceGroupManagersType = 'Google_Service_Compute_InstanceGroupManager';
+ protected $instanceGroupManagersDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_InstanceGroupManagersScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setInstanceGroupManagers($instanceGroupManagers)
+ {
+ $this->instanceGroupManagers = $instanceGroupManagers;
+ }
+ public function getInstanceGroupManagers()
+ {
+ return $this->instanceGroupManagers;
+ }
+ public function setWarning(Google_Service_Compute_InstanceGroupManagersScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarning.php
new file mode 100644
index 00000000..b5263d91
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_InstanceGroupManagersScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarningData.php
new file mode 100644
index 00000000..782c8669
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetInstanceTemplateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetInstanceTemplateRequest.php
new file mode 100644
index 00000000..f4eb6d4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetInstanceTemplateRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model
+{
+ public $instanceTemplate;
+
+ public function setInstanceTemplate($instanceTemplate)
+ {
+ $this->instanceTemplate = $instanceTemplate;
+ }
+ public function getInstanceTemplate()
+ {
+ return $this->instanceTemplate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetTargetPoolsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetTargetPoolsRequest.php
new file mode 100644
index 00000000..faf92961
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupManagersSetTargetPoolsRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection
+{
+ protected $collection_key = 'targetPools';
+ public $fingerprint;
+ public $targetPools;
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setTargetPools($targetPools)
+ {
+ $this->targetPools = $targetPools;
+ }
+ public function getTargetPools()
+ {
+ return $this->targetPools;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsAddInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsAddInstancesRequest.php
new file mode 100644
index 00000000..61f2d30a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsAddInstancesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsAddInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $instancesType = 'Google_Service_Compute_InstanceReference';
+ protected $instancesDataType = 'array';
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstances.php
new file mode 100644
index 00000000..00d3c8ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstances.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsListInstances extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceWithNamedPorts';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstancesRequest.php
new file mode 100644
index 00000000..96626eba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsListInstancesRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsListInstancesRequest extends Google_Model
+{
+ public $instanceState;
+
+ public function setInstanceState($instanceState)
+ {
+ $this->instanceState = $instanceState;
+ }
+ public function getInstanceState()
+ {
+ return $this->instanceState;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsRemoveInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsRemoveInstancesRequest.php
new file mode 100644
index 00000000..90025aab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsRemoveInstancesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsRemoveInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $instancesType = 'Google_Service_Compute_InstanceReference';
+ protected $instancesDataType = 'array';
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedList.php
new file mode 100644
index 00000000..3a842801
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsScopedList extends Google_Collection
+{
+ protected $collection_key = 'instanceGroups';
+ protected $instanceGroupsType = 'Google_Service_Compute_InstanceGroup';
+ protected $instanceGroupsDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_InstanceGroupsScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setInstanceGroups($instanceGroups)
+ {
+ $this->instanceGroups = $instanceGroups;
+ }
+ public function getInstanceGroups()
+ {
+ return $this->instanceGroups;
+ }
+ public function setWarning(Google_Service_Compute_InstanceGroupsScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarning.php
new file mode 100644
index 00000000..9e66c4cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_InstanceGroupsScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarningData.php
new file mode 100644
index 00000000..5afedbde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsSetNamedPortsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsSetNamedPortsRequest.php
new file mode 100644
index 00000000..39b90bec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceGroupsSetNamedPortsRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceGroupsSetNamedPortsRequest extends Google_Collection
+{
+ protected $collection_key = 'namedPorts';
+ public $fingerprint;
+ protected $namedPortsType = 'Google_Service_Compute_NamedPort';
+ protected $namedPortsDataType = 'array';
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setNamedPorts($namedPorts)
+ {
+ $this->namedPorts = $namedPorts;
+ }
+ public function getNamedPorts()
+ {
+ return $this->namedPorts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceList.php
new file mode 100644
index 00000000..2b4972f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Instance';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceMoveRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceMoveRequest.php
new file mode 100644
index 00000000..31128eac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceMoveRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceMoveRequest extends Google_Model
+{
+ public $destinationZone;
+ public $targetInstance;
+
+ public function setDestinationZone($destinationZone)
+ {
+ $this->destinationZone = $destinationZone;
+ }
+ public function getDestinationZone()
+ {
+ return $this->destinationZone;
+ }
+ public function setTargetInstance($targetInstance)
+ {
+ $this->targetInstance = $targetInstance;
+ }
+ public function getTargetInstance()
+ {
+ return $this->targetInstance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceProperties.php
new file mode 100644
index 00000000..80c3bc30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceProperties.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceProperties extends Google_Collection
+{
+ protected $collection_key = 'serviceAccounts';
+ public $canIpForward;
+ public $description;
+ protected $disksType = 'Google_Service_Compute_AttachedDisk';
+ protected $disksDataType = 'array';
+ public $machineType;
+ protected $metadataType = 'Google_Service_Compute_Metadata';
+ protected $metadataDataType = '';
+ protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface';
+ protected $networkInterfacesDataType = 'array';
+ protected $schedulingType = 'Google_Service_Compute_Scheduling';
+ protected $schedulingDataType = '';
+ protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount';
+ protected $serviceAccountsDataType = 'array';
+ protected $tagsType = 'Google_Service_Compute_Tags';
+ protected $tagsDataType = '';
+
+ public function setCanIpForward($canIpForward)
+ {
+ $this->canIpForward = $canIpForward;
+ }
+ public function getCanIpForward()
+ {
+ return $this->canIpForward;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisks($disks)
+ {
+ $this->disks = $disks;
+ }
+ public function getDisks()
+ {
+ return $this->disks;
+ }
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+ public function setMetadata(Google_Service_Compute_Metadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setNetworkInterfaces($networkInterfaces)
+ {
+ $this->networkInterfaces = $networkInterfaces;
+ }
+ public function getNetworkInterfaces()
+ {
+ return $this->networkInterfaces;
+ }
+ public function setScheduling(Google_Service_Compute_Scheduling $scheduling)
+ {
+ $this->scheduling = $scheduling;
+ }
+ public function getScheduling()
+ {
+ return $this->scheduling;
+ }
+ public function setServiceAccounts($serviceAccounts)
+ {
+ $this->serviceAccounts = $serviceAccounts;
+ }
+ public function getServiceAccounts()
+ {
+ return $this->serviceAccounts;
+ }
+ public function setTags(Google_Service_Compute_Tags $tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceReference.php
new file mode 100644
index 00000000..76f5da37
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceReference extends Google_Model
+{
+ public $instance;
+
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php
new file mode 100644
index 00000000..5a251d31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplate.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceTemplate extends Google_Model
+{
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ protected $propertiesType = 'Google_Service_Compute_InstanceProperties';
+ protected $propertiesDataType = '';
+ public $selfLink;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProperties(Google_Service_Compute_InstanceProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplateList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplateList.php
new file mode 100644
index 00000000..3b001023
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceTemplateList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceTemplateList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceTemplate';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceWithNamedPorts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceWithNamedPorts.php
new file mode 100644
index 00000000..f7d57487
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstanceWithNamedPorts.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstanceWithNamedPorts extends Google_Collection
+{
+ protected $collection_key = 'namedPorts';
+ public $instance;
+ protected $namedPortsType = 'Google_Service_Compute_NamedPort';
+ protected $namedPortsDataType = 'array';
+ public $status;
+
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setNamedPorts($namedPorts)
+ {
+ $this->namedPorts = $namedPorts;
+ }
+ public function getNamedPorts()
+ {
+ return $this->namedPorts;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedList.php
new file mode 100644
index 00000000..54aadd51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstancesScopedList extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $instancesType = 'Google_Service_Compute_Instance';
+ protected $instancesDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+ public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarning.php
new file mode 100644
index 00000000..13901e5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarningData.php
new file mode 100644
index 00000000..26d37b6c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetMachineTypeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetMachineTypeRequest.php
new file mode 100644
index 00000000..236b546d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetMachineTypeRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstancesSetMachineTypeRequest extends Google_Model
+{
+ public $machineType;
+
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetServiceAccountRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetServiceAccountRequest.php
new file mode 100644
index 00000000..47d01e54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesSetServiceAccountRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstancesSetServiceAccountRequest extends Google_Collection
+{
+ protected $collection_key = 'scopes';
+ public $email;
+ public $scopes;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setScopes($scopes)
+ {
+ $this->scopes = $scopes;
+ }
+ public function getScopes()
+ {
+ return $this->scopes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesStartWithEncryptionKeyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesStartWithEncryptionKeyRequest.php
new file mode 100644
index 00000000..74908607
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/InstancesStartWithEncryptionKeyRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_InstancesStartWithEncryptionKeyRequest extends Google_Collection
+{
+ protected $collection_key = 'disks';
+ protected $disksType = 'Google_Service_Compute_CustomerEncryptionKeyProtectedDisk';
+ protected $disksDataType = 'array';
+
+ public function setDisks($disks)
+ {
+ $this->disks = $disks;
+ }
+ public function getDisks()
+ {
+ return $this->disks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/License.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/License.php
new file mode 100644
index 00000000..c118c70d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/License.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_License extends Google_Model
+{
+ public $chargesUseFee;
+ public $kind;
+ public $name;
+ public $selfLink;
+
+ public function setChargesUseFee($chargesUseFee)
+ {
+ $this->chargesUseFee = $chargesUseFee;
+ }
+ public function getChargesUseFee()
+ {
+ return $this->chargesUseFee;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineType.php
new file mode 100644
index 00000000..bd6c6074
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineType.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MachineType extends Google_Collection
+{
+ protected $collection_key = 'scratchDisks';
+ public $creationTimestamp;
+ protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $deprecatedDataType = '';
+ public $description;
+ public $guestCpus;
+ public $id;
+ public $imageSpaceGb;
+ public $isSharedCpu;
+ public $kind;
+ public $maximumPersistentDisks;
+ public $maximumPersistentDisksSizeGb;
+ public $memoryMb;
+ public $name;
+ protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks';
+ protected $scratchDisksDataType = 'array';
+ public $selfLink;
+ public $zone;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setGuestCpus($guestCpus)
+ {
+ $this->guestCpus = $guestCpus;
+ }
+ public function getGuestCpus()
+ {
+ return $this->guestCpus;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImageSpaceGb($imageSpaceGb)
+ {
+ $this->imageSpaceGb = $imageSpaceGb;
+ }
+ public function getImageSpaceGb()
+ {
+ return $this->imageSpaceGb;
+ }
+ public function setIsSharedCpu($isSharedCpu)
+ {
+ $this->isSharedCpu = $isSharedCpu;
+ }
+ public function getIsSharedCpu()
+ {
+ return $this->isSharedCpu;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaximumPersistentDisks($maximumPersistentDisks)
+ {
+ $this->maximumPersistentDisks = $maximumPersistentDisks;
+ }
+ public function getMaximumPersistentDisks()
+ {
+ return $this->maximumPersistentDisks;
+ }
+ public function setMaximumPersistentDisksSizeGb($maximumPersistentDisksSizeGb)
+ {
+ $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb;
+ }
+ public function getMaximumPersistentDisksSizeGb()
+ {
+ return $this->maximumPersistentDisksSizeGb;
+ }
+ public function setMemoryMb($memoryMb)
+ {
+ $this->memoryMb = $memoryMb;
+ }
+ public function getMemoryMb()
+ {
+ return $this->memoryMb;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setScratchDisks($scratchDisks)
+ {
+ $this->scratchDisks = $scratchDisks;
+ }
+ public function getScratchDisks()
+ {
+ return $this->scratchDisks;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeAggregatedList.php
new file mode 100644
index 00000000..7797003a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeList.php
new file mode 100644
index 00000000..318bc1c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MachineTypeList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_MachineType';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeScratchDisks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeScratchDisks.php
new file mode 100644
index 00000000..cb288a4e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypeScratchDisks.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model
+{
+ public $diskGb;
+
+ public function setDiskGb($diskGb)
+ {
+ $this->diskGb = $diskGb;
+ }
+ public function getDiskGb()
+ {
+ return $this->diskGb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedList.php
new file mode 100644
index 00000000..9837344a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MachineTypesScopedList extends Google_Collection
+{
+ protected $collection_key = 'machineTypes';
+ protected $machineTypesType = 'Google_Service_Compute_MachineType';
+ protected $machineTypesDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setMachineTypes($machineTypes)
+ {
+ $this->machineTypes = $machineTypes;
+ }
+ public function getMachineTypes()
+ {
+ return $this->machineTypes;
+ }
+ public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarning.php
new file mode 100644
index 00000000..a388962b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarningData.php
new file mode 100644
index 00000000..bfc4bbd6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MachineTypesScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php
new file mode 100644
index 00000000..d4185edc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstance.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ManagedInstance extends Google_Model
+{
+ public $currentAction;
+ public $id;
+ public $instance;
+ public $instanceStatus;
+ protected $lastAttemptType = 'Google_Service_Compute_ManagedInstanceLastAttempt';
+ protected $lastAttemptDataType = '';
+
+ public function setCurrentAction($currentAction)
+ {
+ $this->currentAction = $currentAction;
+ }
+ public function getCurrentAction()
+ {
+ return $this->currentAction;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setInstanceStatus($instanceStatus)
+ {
+ $this->instanceStatus = $instanceStatus;
+ }
+ public function getInstanceStatus()
+ {
+ return $this->instanceStatus;
+ }
+ public function setLastAttempt(Google_Service_Compute_ManagedInstanceLastAttempt $lastAttempt)
+ {
+ $this->lastAttempt = $lastAttempt;
+ }
+ public function getLastAttempt()
+ {
+ return $this->lastAttempt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttempt.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttempt.php
new file mode 100644
index 00000000..659d6477
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttempt.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ManagedInstanceLastAttempt extends Google_Model
+{
+ protected $errorsType = 'Google_Service_Compute_ManagedInstanceLastAttemptErrors';
+ protected $errorsDataType = '';
+
+ public function setErrors(Google_Service_Compute_ManagedInstanceLastAttemptErrors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrors.php
new file mode 100644
index 00000000..52b1f880
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrors.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ManagedInstanceLastAttemptErrors extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Compute_ManagedInstanceLastAttemptErrorsErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrorsErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrorsErrors.php
new file mode 100644
index 00000000..cba3b4e4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ManagedInstanceLastAttemptErrorsErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ManagedInstanceLastAttemptErrorsErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Metadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Metadata.php
new file mode 100644
index 00000000..f35c3842
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Metadata.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Metadata extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $fingerprint;
+ protected $itemsType = 'Google_Service_Compute_MetadataItems';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MetadataItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MetadataItems.php
new file mode 100644
index 00000000..f0244b54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/MetadataItems.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_MetadataItems extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NamedPort.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NamedPort.php
new file mode 100644
index 00000000..d654f378
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NamedPort.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_NamedPort extends Google_Model
+{
+ public $name;
+ public $port;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Network.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Network.php
new file mode 100644
index 00000000..c8b3a1ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Network.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Network extends Google_Collection
+{
+ protected $collection_key = 'subnetworks';
+ protected $internal_gapi_mappings = array(
+ "iPv4Range" => "IPv4Range",
+ );
+ public $iPv4Range;
+ public $autoCreateSubnetworks;
+ public $creationTimestamp;
+ public $description;
+ public $gatewayIPv4;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ public $subnetworks;
+
+ public function setIPv4Range($iPv4Range)
+ {
+ $this->iPv4Range = $iPv4Range;
+ }
+ public function getIPv4Range()
+ {
+ return $this->iPv4Range;
+ }
+ public function setAutoCreateSubnetworks($autoCreateSubnetworks)
+ {
+ $this->autoCreateSubnetworks = $autoCreateSubnetworks;
+ }
+ public function getAutoCreateSubnetworks()
+ {
+ return $this->autoCreateSubnetworks;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setGatewayIPv4($gatewayIPv4)
+ {
+ $this->gatewayIPv4 = $gatewayIPv4;
+ }
+ public function getGatewayIPv4()
+ {
+ return $this->gatewayIPv4;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSubnetworks($subnetworks)
+ {
+ $this->subnetworks = $subnetworks;
+ }
+ public function getSubnetworks()
+ {
+ return $this->subnetworks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkInterface.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkInterface.php
new file mode 100644
index 00000000..52529961
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkInterface.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_NetworkInterface extends Google_Collection
+{
+ protected $collection_key = 'accessConfigs';
+ protected $accessConfigsType = 'Google_Service_Compute_AccessConfig';
+ protected $accessConfigsDataType = 'array';
+ public $kind;
+ public $name;
+ public $network;
+ public $networkIP;
+ public $subnetwork;
+
+ public function setAccessConfigs($accessConfigs)
+ {
+ $this->accessConfigs = $accessConfigs;
+ }
+ public function getAccessConfigs()
+ {
+ return $this->accessConfigs;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setNetworkIP($networkIP)
+ {
+ $this->networkIP = $networkIP;
+ }
+ public function getNetworkIP()
+ {
+ return $this->networkIP;
+ }
+ public function setSubnetwork($subnetwork)
+ {
+ $this->subnetwork = $subnetwork;
+ }
+ public function getSubnetwork()
+ {
+ return $this->subnetwork;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkList.php
new file mode 100644
index 00000000..a1b084e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/NetworkList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_NetworkList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Network';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Operation.php
new file mode 100644
index 00000000..977d65d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Operation.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $description;
+ public $endTime;
+ protected $errorType = 'Google_Service_Compute_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_Compute_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_Compute_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationAggregatedList.php
new file mode 100644
index 00000000..fac3ad79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_OperationsScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationError.php
new file mode 100644
index 00000000..129e54f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Compute_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationErrorErrors.php
new file mode 100644
index 00000000..f2d6343e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationList.php
new file mode 100644
index 00000000..464ee133
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarnings.php
new file mode 100644
index 00000000..0f926dc5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarningsData.php
new file mode 100644
index 00000000..e780c0e3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedList.php
new file mode 100644
index 00000000..a20264ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationsScopedList extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ protected $operationsType = 'Google_Service_Compute_Operation';
+ protected $operationsDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+ public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarning.php
new file mode 100644
index 00000000..e21b32ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarningData.php
new file mode 100644
index 00000000..5465df98
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/OperationsScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathMatcher.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathMatcher.php
new file mode 100644
index 00000000..68589956
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathMatcher.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_PathMatcher extends Google_Collection
+{
+ protected $collection_key = 'pathRules';
+ public $defaultService;
+ public $description;
+ public $name;
+ protected $pathRulesType = 'Google_Service_Compute_PathRule';
+ protected $pathRulesDataType = 'array';
+
+ public function setDefaultService($defaultService)
+ {
+ $this->defaultService = $defaultService;
+ }
+ public function getDefaultService()
+ {
+ return $this->defaultService;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPathRules($pathRules)
+ {
+ $this->pathRules = $pathRules;
+ }
+ public function getPathRules()
+ {
+ return $this->pathRules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathRule.php
new file mode 100644
index 00000000..6e6f1a2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/PathRule.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_PathRule extends Google_Collection
+{
+ protected $collection_key = 'paths';
+ public $paths;
+ public $service;
+
+ public function setPaths($paths)
+ {
+ $this->paths = $paths;
+ }
+ public function getPaths()
+ {
+ return $this->paths;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Project.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Project.php
new file mode 100644
index 00000000..2b287643
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Project.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Project extends Google_Collection
+{
+ protected $collection_key = 'quotas';
+ protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata';
+ protected $commonInstanceMetadataDataType = '';
+ public $creationTimestamp;
+ public $defaultServiceAccount;
+ public $description;
+ public $enabledFeatures;
+ public $id;
+ public $kind;
+ public $name;
+ protected $quotasType = 'Google_Service_Compute_Quota';
+ protected $quotasDataType = 'array';
+ public $selfLink;
+ protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation';
+ protected $usageExportLocationDataType = '';
+
+ public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata)
+ {
+ $this->commonInstanceMetadata = $commonInstanceMetadata;
+ }
+ public function getCommonInstanceMetadata()
+ {
+ return $this->commonInstanceMetadata;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDefaultServiceAccount($defaultServiceAccount)
+ {
+ $this->defaultServiceAccount = $defaultServiceAccount;
+ }
+ public function getDefaultServiceAccount()
+ {
+ return $this->defaultServiceAccount;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEnabledFeatures($enabledFeatures)
+ {
+ $this->enabledFeatures = $enabledFeatures;
+ }
+ public function getEnabledFeatures()
+ {
+ return $this->enabledFeatures;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setQuotas($quotas)
+ {
+ $this->quotas = $quotas;
+ }
+ public function getQuotas()
+ {
+ return $this->quotas;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation)
+ {
+ $this->usageExportLocation = $usageExportLocation;
+ }
+ public function getUsageExportLocation()
+ {
+ return $this->usageExportLocation;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Quota.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Quota.php
new file mode 100644
index 00000000..a1a30905
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Quota.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Quota extends Google_Model
+{
+ public $limit;
+ public $metric;
+ public $usage;
+
+ public function setLimit($limit)
+ {
+ $this->limit = $limit;
+ }
+ public function getLimit()
+ {
+ return $this->limit;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+ public function setUsage($usage)
+ {
+ $this->usage = $usage;
+ }
+ public function getUsage()
+ {
+ return $this->usage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Region.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Region.php
new file mode 100644
index 00000000..bd4fc843
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Region.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Region extends Google_Collection
+{
+ protected $collection_key = 'zones';
+ public $creationTimestamp;
+ protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $deprecatedDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ protected $quotasType = 'Google_Service_Compute_Quota';
+ protected $quotasDataType = 'array';
+ public $selfLink;
+ public $status;
+ public $zones;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setQuotas($quotas)
+ {
+ $this->quotas = $quotas;
+ }
+ public function getQuotas()
+ {
+ return $this->quotas;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setZones($zones)
+ {
+ $this->zones = $zones;
+ }
+ public function getZones()
+ {
+ return $this->zones;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionAutoscalerList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionAutoscalerList.php
new file mode 100644
index 00000000..0cd5ad76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionAutoscalerList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionAutoscalerList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Autoscaler';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupList.php
new file mode 100644
index 00000000..69931641
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceGroup';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagerList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagerList.php
new file mode 100644
index 00000000..6d0123bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagerList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupManagerList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceGroupManager';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersAbandonInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersAbandonInstancesRequest.php
new file mode 100644
index 00000000..a6b34ae2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersAbandonInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupManagersAbandonInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersDeleteInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersDeleteInstancesRequest.php
new file mode 100644
index 00000000..c56fa201
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersDeleteInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupManagersDeleteInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersListInstancesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersListInstancesResponse.php
new file mode 100644
index 00000000..c8783a1c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersListInstancesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse extends Google_Collection
+{
+ protected $collection_key = 'managedInstances';
+ protected $managedInstancesType = 'Google_Service_Compute_ManagedInstance';
+ protected $managedInstancesDataType = 'array';
+
+ public function setManagedInstances($managedInstances)
+ {
+ $this->managedInstances = $managedInstances;
+ }
+ public function getManagedInstances()
+ {
+ return $this->managedInstances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersRecreateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersRecreateRequest.php
new file mode 100644
index 00000000..9be7b4e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersRecreateRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupManagersRecreateRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTargetPoolsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTargetPoolsRequest.php
new file mode 100644
index 00000000..fcd97d18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTargetPoolsRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupManagersSetTargetPoolsRequest extends Google_Collection
+{
+ protected $collection_key = 'targetPools';
+ public $fingerprint;
+ public $targetPools;
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setTargetPools($targetPools)
+ {
+ $this->targetPools = $targetPools;
+ }
+ public function getTargetPools()
+ {
+ return $this->targetPools;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTemplateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTemplateRequest.php
new file mode 100644
index 00000000..1aeebcd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupManagersSetTemplateRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupManagersSetTemplateRequest extends Google_Model
+{
+ public $instanceTemplate;
+
+ public function setInstanceTemplate($instanceTemplate)
+ {
+ $this->instanceTemplate = $instanceTemplate;
+ }
+ public function getInstanceTemplate()
+ {
+ return $this->instanceTemplate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstances.php
new file mode 100644
index 00000000..739d2e27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstances.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupsListInstances extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_InstanceWithNamedPorts';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstancesRequest.php
new file mode 100644
index 00000000..faecfb8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsListInstancesRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupsListInstancesRequest extends Google_Model
+{
+ public $instanceState;
+ public $portName;
+
+ public function setInstanceState($instanceState)
+ {
+ $this->instanceState = $instanceState;
+ }
+ public function getInstanceState()
+ {
+ return $this->instanceState;
+ }
+ public function setPortName($portName)
+ {
+ $this->portName = $portName;
+ }
+ public function getPortName()
+ {
+ return $this->portName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsSetNamedPortsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsSetNamedPortsRequest.php
new file mode 100644
index 00000000..e5ec1b7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionInstanceGroupsSetNamedPortsRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionInstanceGroupsSetNamedPortsRequest extends Google_Collection
+{
+ protected $collection_key = 'namedPorts';
+ public $fingerprint;
+ protected $namedPortsType = 'Google_Service_Compute_NamedPort';
+ protected $namedPortsDataType = 'array';
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setNamedPorts($namedPorts)
+ {
+ $this->namedPorts = $namedPorts;
+ }
+ public function getNamedPorts()
+ {
+ return $this->namedPorts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionList.php
new file mode 100644
index 00000000..630c76b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RegionList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RegionList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Region';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Addresses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Addresses.php
new file mode 100644
index 00000000..20769450
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Addresses.php
@@ -0,0 +1,188 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "addresses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $addresses = $computeService->addresses;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Addresses extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of addresses. (addresses.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_AddressAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList");
+ }
+ /**
+ * Deletes the specified address resource. (addresses.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $address Name of the address resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $address, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'address' => $address);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified address resource. (addresses.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $address Name of the address resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Address
+ */
+ public function get($project, $region, $address, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'address' => $address);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Address");
+ }
+ /**
+ * Creates an address resource in the specified project using the data included
+ * in the request. (addresses.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param Google_Service_Compute_Address $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of addresses contained within the specified region.
+ * (addresses.listAddresses)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_AddressList
+ */
+ public function listAddresses($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_AddressList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php
new file mode 100644
index 00000000..c0084e0a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Autoscalers.php
@@ -0,0 +1,224 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "autoscalers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $autoscalers = $computeService->autoscalers;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Autoscalers extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of autoscalers. (autoscalers.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_AutoscalerAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_AutoscalerAggregatedList");
+ }
+ /**
+ * Deletes the specified autoscaler. (autoscalers.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $autoscaler Name of the autoscaler to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $zone, $autoscaler, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified autoscaler resource. Get a list of available
+ * autoscalers by making a list() request. (autoscalers.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $autoscaler Name of the autoscaler to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Autoscaler
+ */
+ public function get($project, $zone, $autoscaler, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Autoscaler");
+ }
+ /**
+ * Creates an autoscaler in the specified project using the data included in the
+ * request. (autoscalers.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param Google_Service_Compute_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $zone, Google_Service_Compute_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of autoscalers contained within the specified zone.
+ * (autoscalers.listAutoscalers)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_AutoscalerList
+ */
+ public function listAutoscalers($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_AutoscalerList");
+ }
+ /**
+ * Updates an autoscaler in the specified project using the data included in the
+ * request. This method supports patch semantics. (autoscalers.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $autoscaler Name of the autoscaler to update.
+ * @param Google_Service_Compute_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $zone, $autoscaler, Google_Service_Compute_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates an autoscaler in the specified project using the data included in the
+ * request. (autoscalers.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param Google_Service_Compute_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string autoscaler Name of the autoscaler to update.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $zone, Google_Service_Compute_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php
new file mode 100644
index 00000000..4c510e32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendBuckets.php
@@ -0,0 +1,161 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "backendBuckets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $backendBuckets = $computeService->backendBuckets;
+ * </code>
+ */
+class Google_Service_Compute_Resource_BackendBuckets extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified BackendBucket resource. (backendBuckets.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendBucket Name of the BackendBucket resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $backendBucket, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendBucket' => $backendBucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified BackendBucket resource. Get a list of available backend
+ * buckets by making a list() request. (backendBuckets.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendBucket Name of the BackendBucket resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_BackendBucket
+ */
+ public function get($project, $backendBucket, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendBucket' => $backendBucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_BackendBucket");
+ }
+ /**
+ * Creates a BackendBucket resource in the specified project using the data
+ * included in the request. (backendBuckets.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_BackendBucket $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_BackendBucket $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of BackendBucket resources available to the specified
+ * project. (backendBuckets.listBackendBuckets)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_BackendBucketList
+ */
+ public function listBackendBuckets($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_BackendBucketList");
+ }
+ /**
+ * Updates the specified BackendBucket resource with the data included in the
+ * request. This method supports patch semantics. (backendBuckets.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendBucket Name of the BackendBucket resource to update.
+ * @param Google_Service_Compute_BackendBucket $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $backendBucket, Google_Service_Compute_BackendBucket $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendBucket' => $backendBucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates the specified BackendBucket resource with the data included in the
+ * request. (backendBuckets.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendBucket Name of the BackendBucket resource to update.
+ * @param Google_Service_Compute_BackendBucket $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $backendBucket, Google_Service_Compute_BackendBucket $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendBucket' => $backendBucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php
new file mode 100644
index 00000000..b234747b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/BackendServices.php
@@ -0,0 +1,241 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "backendServices" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $backendServices = $computeService->backendServices;
+ * </code>
+ */
+class Google_Service_Compute_Resource_BackendServices extends Google_Service_Resource
+{
+ /**
+ * Retrieves the list of all BackendService resources, regional and global,
+ * available to the specified project. (backendServices.aggregatedList)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_BackendServiceAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_BackendServiceAggregatedList");
+ }
+ /**
+ * Deletes the specified BackendService resource. (backendServices.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendService Name of the BackendService resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $backendService, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendService' => $backendService);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified BackendService resource. Get a list of available
+ * backend services by making a list() request. (backendServices.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendService Name of the BackendService resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_BackendService
+ */
+ public function get($project, $backendService, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendService' => $backendService);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_BackendService");
+ }
+ /**
+ * Gets the most recent health check results for this BackendService.
+ * (backendServices.getHealth)
+ *
+ * @param string $project
+ * @param string $backendService Name of the BackendService resource to which
+ * the queried instance belongs.
+ * @param Google_Service_Compute_ResourceGroupReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_BackendServiceGroupHealth
+ */
+ public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth");
+ }
+ /**
+ * Creates a BackendService resource in the specified project using the data
+ * included in the request. There are several restrictions and guidelines to
+ * keep in mind when creating a backend service. Read Restrictions and
+ * Guidelines for more information. (backendServices.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_BackendService $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of BackendService resources available to the specified
+ * project. (backendServices.listBackendServices)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_BackendServiceList
+ */
+ public function listBackendServices($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList");
+ }
+ /**
+ * Updates the specified BackendService resource with the data included in the
+ * request. There are several restrictions and guidelines to keep in mind when
+ * updating a backend service. Read Restrictions and Guidelines for more
+ * information. This method supports patch semantics. (backendServices.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendService Name of the BackendService resource to update.
+ * @param Google_Service_Compute_BackendService $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates the specified BackendService resource with the data included in the
+ * request. There are several restrictions and guidelines to keep in mind when
+ * updating a backend service. Read Restrictions and Guidelines for more
+ * information. (backendServices.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $backendService Name of the BackendService resource to update.
+ * @param Google_Service_Compute_BackendService $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php
new file mode 100644
index 00000000..83fcc523
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/DiskTypes.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "diskTypes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $diskTypes = $computeService->diskTypes;
+ * </code>
+ */
+class Google_Service_Compute_Resource_DiskTypes extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of disk types. (diskTypes.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_DiskTypeAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList");
+ }
+ /**
+ * Returns the specified disk type. Get a list of available disk types by making
+ * a list() request. (diskTypes.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $diskType Name of the disk type to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_DiskType
+ */
+ public function get($project, $zone, $diskType, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_DiskType");
+ }
+ /**
+ * Retrieves a list of disk types available to the specified project.
+ * (diskTypes.listDiskTypes)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_DiskTypeList
+ */
+ public function listDiskTypes($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_DiskTypeList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php
new file mode 100644
index 00000000..be69f684
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Disks.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "disks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $disks = $computeService->disks;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Disks extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of persistent disks. (disks.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_DiskAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList");
+ }
+ /**
+ * Creates a snapshot of a specified persistent disk. (disks.createSnapshot)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $disk Name of the persistent disk to snapshot.
+ * @param Google_Service_Compute_Snapshot $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool guestFlush
+ * @return Google_Service_Compute_Operation
+ */
+ public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Deletes the specified persistent disk. Deleting a disk removes its data
+ * permanently and is irreversible. However, deleting a disk does not delete any
+ * snapshots previously made from the disk. You must separately delete
+ * snapshots. (disks.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $disk Name of the persistent disk to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $zone, $disk, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns a specified persistent disk. Get a list of available persistent disks
+ * by making a list() request. (disks.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $disk Name of the persistent disk to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Disk
+ */
+ public function get($project, $zone, $disk, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Disk");
+ }
+ /**
+ * Creates a persistent disk in the specified project using the data in the
+ * request. You can create a disk with a sourceImage, a sourceSnapshot, or
+ * create an empty 500 GB data disk by omitting all properties. You can also
+ * create a disk that is larger than the default size by specifying the sizeGb
+ * property. (disks.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param Google_Service_Compute_Disk $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string sourceImage Optional. Source image to restore onto a disk.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of persistent disks contained within the specified zone.
+ * (disks.listDisks)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_DiskList
+ */
+ public function listDisks($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_DiskList");
+ }
+ /**
+ * Resizes the specified persistent disk. (disks.resize)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $disk The name of the persistent disk.
+ * @param Google_Service_Compute_DisksResizeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function resize($project, $zone, $disk, Google_Service_Compute_DisksResizeRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('resize', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Firewalls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Firewalls.php
new file mode 100644
index 00000000..850bbd95
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Firewalls.php
@@ -0,0 +1,160 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "firewalls" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $firewalls = $computeService->firewalls;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Firewalls extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified firewall. (firewalls.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $firewall Name of the firewall rule to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $firewall, $optParams = array())
+ {
+ $params = array('project' => $project, 'firewall' => $firewall);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified firewall. (firewalls.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $firewall Name of the firewall rule to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Firewall
+ */
+ public function get($project, $firewall, $optParams = array())
+ {
+ $params = array('project' => $project, 'firewall' => $firewall);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Firewall");
+ }
+ /**
+ * Creates a firewall rule in the specified project using the data included in
+ * the request. (firewalls.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_Firewall $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of firewall rules available to the specified project.
+ * (firewalls.listFirewalls)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_FirewallList
+ */
+ public function listFirewalls($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_FirewallList");
+ }
+ /**
+ * Updates the specified firewall rule with the data included in the request.
+ * This method supports patch semantics. (firewalls.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $firewall Name of the firewall rule to update.
+ * @param Google_Service_Compute_Firewall $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates the specified firewall rule with the data included in the request.
+ * (firewalls.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $firewall Name of the firewall rule to update.
+ * @param Google_Service_Compute_Firewall $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ForwardingRules.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ForwardingRules.php
new file mode 100644
index 00000000..9ee235b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ForwardingRules.php
@@ -0,0 +1,207 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "forwardingRules" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $forwardingRules = $computeService->forwardingRules;
+ * </code>
+ */
+class Google_Service_Compute_Resource_ForwardingRules extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of forwarding rules.
+ * (forwardingRules.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_ForwardingRuleAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList");
+ }
+ /**
+ * Deletes the specified ForwardingRule resource. (forwardingRules.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $forwardingRule Name of the ForwardingRule resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $forwardingRule, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified ForwardingRule resource. (forwardingRules.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $forwardingRule Name of the ForwardingRule resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_ForwardingRule
+ */
+ public function get($project, $region, $forwardingRule, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule");
+ }
+ /**
+ * Creates a ForwardingRule resource in the specified project and region using
+ * the data included in the request. (forwardingRules.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param Google_Service_Compute_ForwardingRule $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of ForwardingRule resources available to the specified
+ * project and region. (forwardingRules.listForwardingRules)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_ForwardingRuleList
+ */
+ public function listForwardingRules($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList");
+ }
+ /**
+ * Changes target URL for forwarding rule. The new target should be of the same
+ * type as the old target. (forwardingRules.setTarget)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $forwardingRule Name of the ForwardingRule resource in which
+ * target is to be set.
+ * @param Google_Service_Compute_TargetReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setTarget', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php
new file mode 100644
index 00000000..eb1878d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalAddresses.php
@@ -0,0 +1,128 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "globalAddresses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $globalAddresses = $computeService->globalAddresses;
+ * </code>
+ */
+class Google_Service_Compute_Resource_GlobalAddresses extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified address resource. (globalAddresses.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $address Name of the address resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $address, $optParams = array())
+ {
+ $params = array('project' => $project, 'address' => $address);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified address resource. Get a list of available addresses by
+ * making a list() request. (globalAddresses.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $address Name of the address resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Address
+ */
+ public function get($project, $address, $optParams = array())
+ {
+ $params = array('project' => $project, 'address' => $address);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Address");
+ }
+ /**
+ * Creates an address resource in the specified project using the data included
+ * in the request. (globalAddresses.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_Address $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_Address $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of global addresses. (globalAddresses.listGlobalAddresses)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_AddressList
+ */
+ public function listGlobalAddresses($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_AddressList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php
new file mode 100644
index 00000000..2edee631
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalForwardingRules.php
@@ -0,0 +1,146 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "globalForwardingRules" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $globalForwardingRules = $computeService->globalForwardingRules;
+ * </code>
+ */
+class Google_Service_Compute_Resource_GlobalForwardingRules extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified ForwardingRule resource. (globalForwardingRules.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $forwardingRule Name of the ForwardingRule resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $forwardingRule, $optParams = array())
+ {
+ $params = array('project' => $project, 'forwardingRule' => $forwardingRule);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified ForwardingRule resource. Get a list of available
+ * forwarding rules by making a list() request. (globalForwardingRules.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $forwardingRule Name of the ForwardingRule resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_ForwardingRule
+ */
+ public function get($project, $forwardingRule, $optParams = array())
+ {
+ $params = array('project' => $project, 'forwardingRule' => $forwardingRule);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule");
+ }
+ /**
+ * Creates a ForwardingRule resource in the specified project and region using
+ * the data included in the request. (globalForwardingRules.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_ForwardingRule $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_ForwardingRule $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of ForwardingRule resources available to the specified
+ * project. (globalForwardingRules.listGlobalForwardingRules)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_ForwardingRuleList
+ */
+ public function listGlobalForwardingRules($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList");
+ }
+ /**
+ * Changes target URL for forwarding rule. The new target should be of the same
+ * type as the old target. (globalForwardingRules.setTarget)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $forwardingRule Name of the ForwardingRule resource in which
+ * target is to be set.
+ * @param Google_Service_Compute_TargetReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setTarget', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php
new file mode 100644
index 00000000..ce1a9417
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/GlobalOperations.php
@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "globalOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $globalOperations = $computeService->globalOperations;
+ * </code>
+ */
+class Google_Service_Compute_Resource_GlobalOperations extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of all operations.
+ * (globalOperations.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_OperationAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList");
+ }
+ /**
+ * Deletes the specified Operations resource. (globalOperations.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the specified Operations resource. Get a list of operations by
+ * making a list() request. (globalOperations.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of Operation resources contained within the specified
+ * project. (globalOperations.listGlobalOperations)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_OperationList
+ */
+ public function listGlobalOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php
new file mode 100644
index 00000000..c46e7e73
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HealthChecks.php
@@ -0,0 +1,162 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "healthChecks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $healthChecks = $computeService->healthChecks;
+ * </code>
+ */
+class Google_Service_Compute_Resource_HealthChecks extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified HealthCheck resource. (healthChecks.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $healthCheck Name of the HealthCheck resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $healthCheck, $optParams = array())
+ {
+ $params = array('project' => $project, 'healthCheck' => $healthCheck);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified HealthCheck resource. Get a list of available health
+ * checks by making a list() request. (healthChecks.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $healthCheck Name of the HealthCheck resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_HealthCheck
+ */
+ public function get($project, $healthCheck, $optParams = array())
+ {
+ $params = array('project' => $project, 'healthCheck' => $healthCheck);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_HealthCheck");
+ }
+ /**
+ * Creates a HealthCheck resource in the specified project using the data
+ * included in the request. (healthChecks.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_HealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_HealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of HealthCheck resources available to the specified
+ * project. (healthChecks.listHealthChecks)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_HealthCheckList
+ */
+ public function listHealthChecks($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_HealthCheckList");
+ }
+ /**
+ * Updates a HealthCheck resource in the specified project using the data
+ * included in the request. This method supports patch semantics.
+ * (healthChecks.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $healthCheck Name of the HealthCheck resource to update.
+ * @param Google_Service_Compute_HealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $healthCheck, Google_Service_Compute_HealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'healthCheck' => $healthCheck, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates a HealthCheck resource in the specified project using the data
+ * included in the request. (healthChecks.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $healthCheck Name of the HealthCheck resource to update.
+ * @param Google_Service_Compute_HealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $healthCheck, Google_Service_Compute_HealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'healthCheck' => $healthCheck, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php
new file mode 100644
index 00000000..bd261fa8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpHealthChecks.php
@@ -0,0 +1,166 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "httpHealthChecks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $httpHealthChecks = $computeService->httpHealthChecks;
+ * </code>
+ */
+class Google_Service_Compute_Resource_HttpHealthChecks extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpHealthCheck Name of the HttpHealthCheck resource to
+ * delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $httpHealthCheck, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified HttpHealthCheck resource. Get a list of available HTTP
+ * health checks by making a list() request. (httpHealthChecks.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpHealthCheck Name of the HttpHealthCheck resource to
+ * return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_HttpHealthCheck
+ */
+ public function get($project, $httpHealthCheck, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck");
+ }
+ /**
+ * Creates a HttpHealthCheck resource in the specified project using the data
+ * included in the request. (httpHealthChecks.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_HttpHealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of HttpHealthCheck resources available to the specified
+ * project. (httpHealthChecks.listHttpHealthChecks)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_HttpHealthCheckList
+ */
+ public function listHttpHealthChecks($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList");
+ }
+ /**
+ * Updates a HttpHealthCheck resource in the specified project using the data
+ * included in the request. This method supports patch semantics.
+ * (httpHealthChecks.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpHealthCheck Name of the HttpHealthCheck resource to
+ * update.
+ * @param Google_Service_Compute_HttpHealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates a HttpHealthCheck resource in the specified project using the data
+ * included in the request. (httpHealthChecks.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpHealthCheck Name of the HttpHealthCheck resource to
+ * update.
+ * @param Google_Service_Compute_HttpHealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php
new file mode 100644
index 00000000..dcbfe55f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/HttpsHealthChecks.php
@@ -0,0 +1,166 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "httpsHealthChecks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $httpsHealthChecks = $computeService->httpsHealthChecks;
+ * </code>
+ */
+class Google_Service_Compute_Resource_HttpsHealthChecks extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified HttpsHealthCheck resource. (httpsHealthChecks.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to
+ * delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $httpsHealthCheck, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified HttpsHealthCheck resource. Get a list of available
+ * HTTPS health checks by making a list() request. (httpsHealthChecks.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to
+ * return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_HttpsHealthCheck
+ */
+ public function get($project, $httpsHealthCheck, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_HttpsHealthCheck");
+ }
+ /**
+ * Creates a HttpsHealthCheck resource in the specified project using the data
+ * included in the request. (httpsHealthChecks.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_HttpsHealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of HttpsHealthCheck resources available to the specified
+ * project. (httpsHealthChecks.listHttpsHealthChecks)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_HttpsHealthCheckList
+ */
+ public function listHttpsHealthChecks($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_HttpsHealthCheckList");
+ }
+ /**
+ * Updates a HttpsHealthCheck resource in the specified project using the data
+ * included in the request. This method supports patch semantics.
+ * (httpsHealthChecks.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to
+ * update.
+ * @param Google_Service_Compute_HttpsHealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $httpsHealthCheck, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates a HttpsHealthCheck resource in the specified project using the data
+ * included in the request. (httpsHealthChecks.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $httpsHealthCheck Name of the HttpsHealthCheck resource to
+ * update.
+ * @param Google_Service_Compute_HttpsHealthCheck $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $httpsHealthCheck, Google_Service_Compute_HttpsHealthCheck $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'httpsHealthCheck' => $httpsHealthCheck, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php
new file mode 100644
index 00000000..e3b5ac1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Images.php
@@ -0,0 +1,166 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "images" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $images = $computeService->images;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Images extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified image. (images.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $image Name of the image resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $image, $optParams = array())
+ {
+ $params = array('project' => $project, 'image' => $image);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets the deprecation status of an image.
+ *
+ * If an empty request body is given, clears the deprecation status instead.
+ * (images.deprecate)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $image Image name.
+ * @param Google_Service_Compute_DeprecationStatus $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('deprecate', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified image. Get a list of available images by making a
+ * list() request. (images.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $image Name of the image resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Image
+ */
+ public function get($project, $image, $optParams = array())
+ {
+ $params = array('project' => $project, 'image' => $image);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Image");
+ }
+ /**
+ * Returns the latest image that is part of an image family and is not
+ * deprecated. (images.getFromFamily)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $family Name of the image family to search for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Image
+ */
+ public function getFromFamily($project, $family, $optParams = array())
+ {
+ $params = array('project' => $project, 'family' => $family);
+ $params = array_merge($params, $optParams);
+ return $this->call('getFromFamily', array($params), "Google_Service_Compute_Image");
+ }
+ /**
+ * Creates an image in the specified project using the data included in the
+ * request. (images.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_Image $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of private images available to the specified project.
+ * Private images are images you create that belong to your project. This method
+ * does not get any images that belong to other projects, including publicly-
+ * available images, like Debian 8. If you want to get a list of publicly-
+ * available images, use this method to make a request to the respective image
+ * project, such as debian-cloud or windows-cloud. (images.listImages)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_ImageList
+ */
+ public function listImages($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_ImageList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php
new file mode 100644
index 00000000..1fb564e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroupManagers.php
@@ -0,0 +1,369 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instanceGroupManagers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $instanceGroupManagers = $computeService->instanceGroupManagers;
+ * </code>
+ */
+class Google_Service_Compute_Resource_InstanceGroupManagers extends Google_Service_Resource
+{
+ /**
+ * Schedules a group action to remove the specified instances from the managed
+ * instance group. Abandoning an instance does not delete the instance, but it
+ * does remove the instance from any target pools that are applied by the
+ * managed instance group. This method reduces the targetSize of the managed
+ * instance group by the number of instances that you abandon. This operation is
+ * marked as DONE when the action is scheduled even if the instances have not
+ * yet been removed from the group. You must separately verify the status of the
+ * abandoning action with the listmanagedinstances method.
+ * (instanceGroupManagers.abandonInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('abandonInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of managed instance groups and groups them by zone.
+ * (instanceGroupManagers.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceGroupManagerAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceGroupManagerAggregatedList");
+ }
+ /**
+ * Deletes the specified managed instance group and all of the instances in that
+ * group. Note that the instance group must not belong to a backend service.
+ * Read Deleting an instance group for more information.
+ * (instanceGroupManagers.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group to
+ * delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $zone, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Schedules a group action to delete the specified instances in the managed
+ * instance group. The instances are also removed from any target pools of which
+ * they were a member. This method reduces the targetSize of the managed
+ * instance group by the number of instances that you delete. This operation is
+ * marked as DONE when the action is scheduled even if the instances are still
+ * being deleted. You must separately verify the status of the deleting action
+ * with the listmanagedinstances method. (instanceGroupManagers.deleteInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns all of the details about the specified managed instance group. Get a
+ * list of available managed instance groups by making a list() request.
+ * (instanceGroupManagers.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_InstanceGroupManager
+ */
+ public function get($project, $zone, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_InstanceGroupManager");
+ }
+ /**
+ * Creates a managed instance group using the information that you specify in
+ * the request. After the group is created, it schedules an action to create
+ * instances in the group using the specified instance template. This operation
+ * is marked as DONE when the group is created even if the instances in the
+ * group have not yet been created. You must separately verify the status of the
+ * individual instances with the listmanagedinstances method.
+ * (instanceGroupManagers.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where you want to create the managed
+ * instance group.
+ * @param Google_Service_Compute_InstanceGroupManager $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $zone, Google_Service_Compute_InstanceGroupManager $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of managed instance groups that are contained within the
+ * specified project and zone. (instanceGroupManagers.listInstanceGroupManagers)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceGroupManagerList
+ */
+ public function listInstanceGroupManagers($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_InstanceGroupManagerList");
+ }
+ /**
+ * Lists all of the instances in the managed instance group. Each instance in
+ * the list has a currentAction, which indicates the action that the managed
+ * instance group is performing on the instance. For example, if the group is
+ * still creating an instance, the currentAction is CREATING. If a previous
+ * action failed, the list displays the errors for that failed action.
+ * (instanceGroupManagers.listManagedInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter
+ * @opt_param string maxResults
+ * @opt_param string order_by
+ * @opt_param string pageToken
+ * @return Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse
+ */
+ public function listManagedInstances($project, $zone, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('listManagedInstances', array($params), "Google_Service_Compute_InstanceGroupManagersListManagedInstancesResponse");
+ }
+ /**
+ * Schedules a group action to recreate the specified instances in the managed
+ * instance group. The instances are deleted and recreated using the current
+ * instance template for the managed instance group. This operation is marked as
+ * DONE when the action is scheduled even if the instances have not yet been
+ * recreated. You must separately verify the status of the recreating action
+ * with the listmanagedinstances method.
+ * (instanceGroupManagers.recreateInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('recreateInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Resizes the managed instance group. If you increase the size, the group
+ * creates new instances using the current instance template. If you decrease
+ * the size, the group deletes instances. The resize operation is marked DONE
+ * when the resize actions are scheduled even if the group has not yet added or
+ * deleted any instances. You must separately verify the status of the creating
+ * or deleting actions with the listmanagedinstances method.
+ * (instanceGroupManagers.resize)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param int $size The number of running instances that the managed instance
+ * group should maintain at any given time. The group automatically adds or
+ * removes instances to maintain the number of instances specified by this
+ * parameter.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size);
+ $params = array_merge($params, $optParams);
+ return $this->call('resize', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Specifies the instance template to use when creating new instances in this
+ * group. The templates for existing instances in the group do not change unless
+ * you recreate them. (instanceGroupManagers.setInstanceTemplate)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param Google_Service_Compute_InstanceGroupManagersSetInstanceTemplateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setInstanceTemplate', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Modifies the target pools to which all instances in this managed instance
+ * group are assigned. The target pools automatically apply to all of the
+ * instances in the managed instance group. This operation is marked DONE when
+ * you make the request even if the instances have not yet been added to their
+ * target pools. The change might take some time to apply to all of the
+ * instances in the group depending on the size of the group.
+ * (instanceGroupManagers.setTargetPools)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the managed instance group is
+ * located.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param Google_Service_Compute_InstanceGroupManagersSetTargetPoolsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Compute_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setTargetPools', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php
new file mode 100644
index 00000000..6945f6df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceGroups.php
@@ -0,0 +1,309 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instanceGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $instanceGroups = $computeService->instanceGroups;
+ * </code>
+ */
+class Google_Service_Compute_Resource_InstanceGroups extends Google_Service_Resource
+{
+ /**
+ * Adds a list of instances to the specified instance group. All of the
+ * instances in the instance group must be in the same network/subnetwork. Read
+ * Adding instances for more information. (instanceGroups.addInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the instance group is located.
+ * @param string $instanceGroup The name of the instance group where you are
+ * adding instances.
+ * @param Google_Service_Compute_InstanceGroupsAddInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function addInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsAddInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of instance groups and sorts them by zone.
+ * (instanceGroups.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceGroupAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceGroupAggregatedList");
+ }
+ /**
+ * Deletes the specified instance group. The instances in the group are not
+ * deleted. Note that instance group must not belong to a backend service. Read
+ * Deleting an instance group for more information. (instanceGroups.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the instance group is located.
+ * @param string $instanceGroup The name of the instance group to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $zone, $instanceGroup, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified instance group. Get a list of available instance groups
+ * by making a list() request. (instanceGroups.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the instance group is located.
+ * @param string $instanceGroup The name of the instance group.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_InstanceGroup
+ */
+ public function get($project, $zone, $instanceGroup, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_InstanceGroup");
+ }
+ /**
+ * Creates an instance group in the specified project using the parameters that
+ * are included in the request. (instanceGroups.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where you want to create the
+ * instance group.
+ * @param Google_Service_Compute_InstanceGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $zone, Google_Service_Compute_InstanceGroup $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of instance groups that are located in the specified
+ * project and zone. (instanceGroups.listInstanceGroups)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the instance group is located.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceGroupList
+ */
+ public function listInstanceGroups($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_InstanceGroupList");
+ }
+ /**
+ * Lists the instances in the specified instance group.
+ * (instanceGroups.listInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the instance group is located.
+ * @param string $instanceGroup The name of the instance group from which you
+ * want to generate a list of included instances.
+ * @param Google_Service_Compute_InstanceGroupsListInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceGroupsListInstances
+ */
+ public function listInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsListInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('listInstances', array($params), "Google_Service_Compute_InstanceGroupsListInstances");
+ }
+ /**
+ * Removes one or more instances from the specified instance group, but does not
+ * delete those instances. (instanceGroups.removeInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the instance group is located.
+ * @param string $instanceGroup The name of the instance group where the
+ * specified instances will be removed.
+ * @param Google_Service_Compute_InstanceGroupsRemoveInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function removeInstances($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsRemoveInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets the named ports for the specified instance group.
+ * (instanceGroups.setNamedPorts)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone where the instance group is located.
+ * @param string $instanceGroup The name of the instance group where the named
+ * ports are updated.
+ * @param Google_Service_Compute_InstanceGroupsSetNamedPortsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setNamedPorts($project, $zone, $instanceGroup, Google_Service_Compute_InstanceGroupsSetNamedPortsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setNamedPorts', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php
new file mode 100644
index 00000000..e2dd0e2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/InstanceTemplates.php
@@ -0,0 +1,136 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instanceTemplates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $instanceTemplates = $computeService->instanceTemplates;
+ * </code>
+ */
+class Google_Service_Compute_Resource_InstanceTemplates extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified instance template. If you delete an instance template
+ * that is being referenced from another instance group, the instance group will
+ * not be able to create or recreate virtual machine instances. Deleting an
+ * instance template is permanent and cannot be undone.
+ * (instanceTemplates.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $instanceTemplate The name of the instance template to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $instanceTemplate, $optParams = array())
+ {
+ $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified instance template. Get a list of available instance
+ * templates by making a list() request. (instanceTemplates.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $instanceTemplate The name of the instance template.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_InstanceTemplate
+ */
+ public function get($project, $instanceTemplate, $optParams = array())
+ {
+ $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate");
+ }
+ /**
+ * Creates an instance template in the specified project using the data that is
+ * included in the request. If you are creating a new template to update an
+ * existing instance group, your new instance template must use the same network
+ * or, if applicable, the same subnetwork as the original template.
+ * (instanceTemplates.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_InstanceTemplate $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_InstanceTemplate $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of instance templates that are contained within the
+ * specified project and zone. (instanceTemplates.listInstanceTemplates)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceTemplateList
+ */
+ public function listInstanceTemplates($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php
new file mode 100644
index 00000000..4c1d6cf5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Instances.php
@@ -0,0 +1,455 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instances" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $instances = $computeService->instances;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Instances extends Google_Service_Resource
+{
+ /**
+ * Adds an access config to an instance's network interface.
+ * (instances.addAccessConfig)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance The instance name for this request.
+ * @param string $networkInterface The name of the network interface to add to
+ * this instance.
+ * @param Google_Service_Compute_AccessConfig $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves aggregated list of instances. (instances.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList");
+ }
+ /**
+ * Attaches a Disk resource to an instance. (instances.attachDisk)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance The instance name for this request.
+ * @param Google_Service_Compute_AttachedDisk $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Deletes the specified Instance resource. For more information, see Stopping
+ * or Deleting an Instance. (instances.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Deletes an access config from an instance's network interface.
+ * (instances.deleteAccessConfig)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance The instance name for this request.
+ * @param string $accessConfig The name of the access config to delete.
+ * @param string $networkInterface The name of the network interface.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Detaches a disk from an instance. (instances.detachDisk)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Instance name.
+ * @param string $deviceName Disk device name to detach.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified Instance resource. Get a list of available instances by
+ * making a list() request. (instances.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Instance
+ */
+ public function get($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Instance");
+ }
+ /**
+ * Returns the specified instance's serial port output.
+ * (instances.getSerialPortOutput)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int port Specifies which COM or serial port to retrieve data from.
+ * @opt_param string start Returns output starting from a specific byte
+ * position. Use this to page through output when the output is too large to
+ * return in a single request. For the initial request, leave this field
+ * unspecified. For subsequent calls, this field should be set to the next value
+ * returned in the previous call.
+ * @return Google_Service_Compute_SerialPortOutput
+ */
+ public function getSerialPortOutput($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput");
+ }
+ /**
+ * Creates an instance resource in the specified project using the data included
+ * in the request. (instances.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param Google_Service_Compute_Instance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of instances contained within the specified zone.
+ * (instances.listInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_InstanceList
+ */
+ public function listInstances($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_InstanceList");
+ }
+ /**
+ * Performs a hard reset on the instance. (instances.reset)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance scoping this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function reset($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('reset', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets the auto-delete flag for a disk attached to an instance.
+ * (instances.setDiskAutoDelete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance The instance name.
+ * @param bool $autoDelete Whether to auto-delete the disk when the instance is
+ * deleted.
+ * @param string $deviceName The device name of the disk to modify.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Changes the machine type for a stopped instance to the machine type specified
+ * in the request. (instances.setMachineType)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance scoping this request.
+ * @param Google_Service_Compute_InstancesSetMachineTypeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setMachineType($project, $zone, $instance, Google_Service_Compute_InstancesSetMachineTypeRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setMachineType', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets metadata for the specified instance to the data included in the request.
+ * (instances.setMetadata)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance scoping this request.
+ * @param Google_Service_Compute_Metadata $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets an instance's scheduling options. (instances.setScheduling)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Instance name.
+ * @param Google_Service_Compute_Scheduling $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets the service account on the instance. For more information, read Changing
+ * the service account and access scopes for an instance.
+ * (instances.setServiceAccount)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance resource to start.
+ * @param Google_Service_Compute_InstancesSetServiceAccountRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setServiceAccount($project, $zone, $instance, Google_Service_Compute_InstancesSetServiceAccountRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setServiceAccount', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets tags for the specified instance to the data included in the request.
+ * (instances.setTags)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance scoping this request.
+ * @param Google_Service_Compute_Tags $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setTags', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Starts an instance that was stopped using the using the instances().stop
+ * method. For more information, see Restart an instance. (instances.start)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance resource to start.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function start($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('start', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Starts an instance that was stopped using the using the instances().stop
+ * method. For more information, see Restart an instance.
+ * (instances.startWithEncryptionKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance resource to start.
+ * @param Google_Service_Compute_InstancesStartWithEncryptionKeyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function startWithEncryptionKey($project, $zone, $instance, Google_Service_Compute_InstancesStartWithEncryptionKeyRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('startWithEncryptionKey', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Stops a running instance, shutting it down cleanly, and allows you to restart
+ * the instance at a later time. Stopped instances do not incur per-minute,
+ * virtual machine usage charges while they are stopped, but any resources that
+ * the virtual machine is using, such as persistent disks and static IP
+ * addresses, will continue to be charged until they are deleted. For more
+ * information, see Stopping an instance. (instances.stop)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $instance Name of the instance resource to stop.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function stop($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php
new file mode 100644
index 00000000..c6656a7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Licenses.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "licenses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $licenses = $computeService->licenses;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Licenses extends Google_Service_Resource
+{
+ /**
+ * Returns the specified License resource. Get a list of available licenses by
+ * making a list() request. (licenses.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $license Name of the License resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_License
+ */
+ public function get($project, $license, $optParams = array())
+ {
+ $params = array('project' => $project, 'license' => $license);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_License");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/MachineTypes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/MachineTypes.php
new file mode 100644
index 00000000..1e822f87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/MachineTypes.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "machineTypes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $machineTypes = $computeService->machineTypes;
+ * </code>
+ */
+class Google_Service_Compute_Resource_MachineTypes extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of machine types. (machineTypes.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_MachineTypeAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList");
+ }
+ /**
+ * Returns the specified machine type. Get a list of available machine types by
+ * making a list() request. (machineTypes.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param string $machineType Name of the machine type to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_MachineType
+ */
+ public function get($project, $zone, $machineType, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_MachineType");
+ }
+ /**
+ * Retrieves a list of machine types available to the specified project.
+ * (machineTypes.listMachineTypes)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone The name of the zone for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_MachineTypeList
+ */
+ public function listMachineTypes($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php
new file mode 100644
index 00000000..6e9d4383
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Networks.php
@@ -0,0 +1,144 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "networks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $networks = $computeService->networks;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Networks extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified network. (networks.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $network Name of the network to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $network, $optParams = array())
+ {
+ $params = array('project' => $project, 'network' => $network);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified network. Get a list of available networks by making a
+ * list() request. (networks.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $network Name of the network to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Network
+ */
+ public function get($project, $network, $optParams = array())
+ {
+ $params = array('project' => $project, 'network' => $network);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Network");
+ }
+ /**
+ * Creates a network in the specified project using the data included in the
+ * request. (networks.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_Network $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of networks available to the specified project.
+ * (networks.listNetworks)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_NetworkList
+ */
+ public function listNetworks($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_NetworkList");
+ }
+ /**
+ * Switches the network mode from auto subnet mode to custom subnet mode.
+ * (networks.switchToCustomMode)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $network Name of the network to be updated.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function switchToCustomMode($project, $network, $optParams = array())
+ {
+ $params = array('project' => $project, 'network' => $network);
+ $params = array_merge($params, $optParams);
+ return $this->call('switchToCustomMode', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php
new file mode 100644
index 00000000..99410cc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Projects.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $projects = $computeService->projects;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Returns the specified Project resource. (projects.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Project
+ */
+ public function get($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Project");
+ }
+ /**
+ * Moves a persistent disk from one zone to another. (projects.moveDisk)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_DiskMoveRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Moves an instance and its attached persistent disks from one zone to another.
+ * (projects.moveInstance)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_InstanceMoveRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets metadata common to all instances within the specified project using the
+ * data included in the request. (projects.setCommonInstanceMetadata)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_Metadata $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Enables the usage export feature and sets the usage export bucket where
+ * reports are stored. If you provide an empty request body using this method,
+ * the usage export feature will be disabled. (projects.setUsageExportBucket)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_UsageExportLocation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setUsageExportBucket($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionAutoscalers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionAutoscalers.php
new file mode 100644
index 00000000..a9a30977
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionAutoscalers.php
@@ -0,0 +1,167 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regionAutoscalers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $regionAutoscalers = $computeService->regionAutoscalers;
+ * </code>
+ */
+class Google_Service_Compute_Resource_RegionAutoscalers extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified autoscaler. (regionAutoscalers.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $autoscaler Name of the autoscaler to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $autoscaler, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'autoscaler' => $autoscaler);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified autoscaler. (regionAutoscalers.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $autoscaler Name of the autoscaler to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Autoscaler
+ */
+ public function get($project, $region, $autoscaler, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'autoscaler' => $autoscaler);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Autoscaler");
+ }
+ /**
+ * Creates an autoscaler in the specified project using the data included in the
+ * request. (regionAutoscalers.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param Google_Service_Compute_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of autoscalers contained within the specified region.
+ * (regionAutoscalers.listRegionAutoscalers)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RegionAutoscalerList
+ */
+ public function listRegionAutoscalers($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_RegionAutoscalerList");
+ }
+ /**
+ * Updates an autoscaler in the specified project using the data included in the
+ * request. This method supports patch semantics. (regionAutoscalers.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $autoscaler Name of the autoscaler to update.
+ * @param Google_Service_Compute_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $region, $autoscaler, Google_Service_Compute_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'autoscaler' => $autoscaler, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates an autoscaler in the specified project using the data included in the
+ * request. (regionAutoscalers.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param Google_Service_Compute_Autoscaler $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string autoscaler Name of the autoscaler to update.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $region, Google_Service_Compute_Autoscaler $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionBackendServices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionBackendServices.php
new file mode 100644
index 00000000..e82facce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionBackendServices.php
@@ -0,0 +1,194 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regionBackendServices" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $regionBackendServices = $computeService->regionBackendServices;
+ * </code>
+ */
+class Google_Service_Compute_Resource_RegionBackendServices extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified regional BackendService resource.
+ * (regionBackendServices.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $backendService Name of the BackendService resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $backendService, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'backendService' => $backendService);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified regional BackendService resource.
+ * (regionBackendServices.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $backendService Name of the BackendService resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_BackendService
+ */
+ public function get($project, $region, $backendService, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'backendService' => $backendService);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_BackendService");
+ }
+ /**
+ * Gets the most recent health check results for this regional BackendService.
+ * (regionBackendServices.getHealth)
+ *
+ * @param string $project
+ * @param string $region Name of the region scoping this request.
+ * @param string $backendService Name of the BackendService resource to which
+ * the queried instance belongs.
+ * @param Google_Service_Compute_ResourceGroupReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_BackendServiceGroupHealth
+ */
+ public function getHealth($project, $region, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'backendService' => $backendService, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth");
+ }
+ /**
+ * Creates a regional BackendService resource in the specified project using the
+ * data included in the request. There are several restrictions and guidelines
+ * to keep in mind when creating a regional backend service. Read Restrictions
+ * and Guidelines for more information. (regionBackendServices.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param Google_Service_Compute_BackendService $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_BackendService $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of regional BackendService resources available to the
+ * specified project in the given region.
+ * (regionBackendServices.listRegionBackendServices)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_BackendServiceList
+ */
+ public function listRegionBackendServices($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList");
+ }
+ /**
+ * Updates the specified regional BackendService resource with the data included
+ * in the request. There are several restrictions and guidelines to keep in mind
+ * when updating a backend service. Read Restrictions and Guidelines for more
+ * information. This method supports patch semantics.
+ * (regionBackendServices.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $backendService Name of the BackendService resource to update.
+ * @param Google_Service_Compute_BackendService $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $region, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'backendService' => $backendService, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates the specified regional BackendService resource with the data included
+ * in the request. There are several restrictions and guidelines to keep in mind
+ * when updating a backend service. Read Restrictions and Guidelines for more
+ * information. (regionBackendServices.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $backendService Name of the BackendService resource to update.
+ * @param Google_Service_Compute_BackendService $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $region, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'backendService' => $backendService, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php
new file mode 100644
index 00000000..94e89eda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroupManagers.php
@@ -0,0 +1,294 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regionInstanceGroupManagers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $regionInstanceGroupManagers = $computeService->regionInstanceGroupManagers;
+ * </code>
+ */
+class Google_Service_Compute_Resource_RegionInstanceGroupManagers extends Google_Service_Resource
+{
+ /**
+ * Schedules a group action to remove the specified instances from the managed
+ * instance group. Abandoning an instance does not delete the instance, but it
+ * does remove the instance from any target pools that are applied by the
+ * managed instance group. This method reduces the targetSize of the managed
+ * instance group by the number of instances that you abandon. This operation is
+ * marked as DONE when the action is scheduled even if the instances have not
+ * yet been removed from the group. You must separately verify the status of the
+ * abandoning action with the listmanagedinstances method.
+ * (regionInstanceGroupManagers.abandonInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager Name of the managed instance group.
+ * @param Google_Service_Compute_RegionInstanceGroupManagersAbandonInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function abandonInstances($project, $region, $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('abandonInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Deletes the specified managed instance group and all of the instances in that
+ * group. (regionInstanceGroupManagers.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager Name of the managed instance group to
+ * delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Schedules a group action to delete the specified instances in the managed
+ * instance group. The instances are also removed from any target pools of which
+ * they were a member. This method reduces the targetSize of the managed
+ * instance group by the number of instances that you delete. This operation is
+ * marked as DONE when the action is scheduled even if the instances are still
+ * being deleted. You must separately verify the status of the deleting action
+ * with the listmanagedinstances method.
+ * (regionInstanceGroupManagers.deleteInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager Name of the managed instance group.
+ * @param Google_Service_Compute_RegionInstanceGroupManagersDeleteInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function deleteInstances($project, $region, $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns all of the details about the specified managed instance group.
+ * (regionInstanceGroupManagers.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager Name of the managed instance group to
+ * return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_InstanceGroupManager
+ */
+ public function get($project, $region, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_InstanceGroupManager");
+ }
+ /**
+ * Creates a managed instance group using the information that you specify in
+ * the request. After the group is created, it schedules an action to create
+ * instances in the group using the specified instance template. This operation
+ * is marked as DONE when the group is created even if the instances in the
+ * group have not yet been created. You must separately verify the status of the
+ * individual instances with the listmanagedinstances method.
+ * (regionInstanceGroupManagers.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param Google_Service_Compute_InstanceGroupManager $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_InstanceGroupManager $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of managed instance groups that are contained within the
+ * specified region.
+ * (regionInstanceGroupManagers.listRegionInstanceGroupManagers)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RegionInstanceGroupManagerList
+ */
+ public function listRegionInstanceGroupManagers($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_RegionInstanceGroupManagerList");
+ }
+ /**
+ * Lists the instances in the managed instance group and instances that are
+ * scheduled to be created. The list includes any current actions that the group
+ * has scheduled for its instances.
+ * (regionInstanceGroupManagers.listManagedInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter
+ * @opt_param string maxResults
+ * @opt_param string order_by
+ * @opt_param string pageToken
+ * @return Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse
+ */
+ public function listManagedInstances($project, $region, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('listManagedInstances', array($params), "Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse");
+ }
+ /**
+ * Schedules a group action to recreate the specified instances in the managed
+ * instance group. The instances are deleted and recreated using the current
+ * instance template for the managed instance group. This operation is marked as
+ * DONE when the action is scheduled even if the instances have not yet been
+ * recreated. You must separately verify the status of the recreating action
+ * with the listmanagedinstances method.
+ * (regionInstanceGroupManagers.recreateInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager Name of the managed instance group.
+ * @param Google_Service_Compute_RegionInstanceGroupManagersRecreateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function recreateInstances($project, $region, $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersRecreateRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('recreateInstances', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Changes the intended size for the managed instance group. If you increase the
+ * size, the group schedules actions to create new instances using the current
+ * instance template. If you decrease the size, the group schedules delete
+ * actions on one or more instances. The resize operation is marked DONE when
+ * the resize actions are scheduled even if the group has not yet added or
+ * deleted any instances. You must separately verify the status of the creating
+ * or deleting actions with the listmanagedinstances method.
+ * (regionInstanceGroupManagers.resize)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager Name of the managed instance group.
+ * @param int $size Number of instances that should exist in this instance group
+ * manager.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function resize($project, $region, $instanceGroupManager, $size, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size);
+ $params = array_merge($params, $optParams);
+ return $this->call('resize', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Sets the instance template to use when creating new instances or recreating
+ * instances in this group. Existing instances are not affected.
+ * (regionInstanceGroupManagers.setInstanceTemplate)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager The name of the managed instance group.
+ * @param Google_Service_Compute_RegionInstanceGroupManagersSetTemplateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setInstanceTemplate($project, $region, $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersSetTemplateRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setInstanceTemplate', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Modifies the target pools to which all new instances in this group are
+ * assigned. Existing instances in the group are not affected.
+ * (regionInstanceGroupManagers.setTargetPools)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroupManager Name of the managed instance group.
+ * @param Google_Service_Compute_RegionInstanceGroupManagersSetTargetPoolsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setTargetPools($project, $region, $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setTargetPools', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroups.php
new file mode 100644
index 00000000..27934ab4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionInstanceGroups.php
@@ -0,0 +1,182 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regionInstanceGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $regionInstanceGroups = $computeService->regionInstanceGroups;
+ * </code>
+ */
+class Google_Service_Compute_Resource_RegionInstanceGroups extends Google_Service_Resource
+{
+ /**
+ * Returns the specified instance group resource. (regionInstanceGroups.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroup Name of the instance group resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_InstanceGroup
+ */
+ public function get($project, $region, $instanceGroup, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroup' => $instanceGroup);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_InstanceGroup");
+ }
+ /**
+ * Retrieves the list of instance group resources contained within the specified
+ * region. (regionInstanceGroups.listRegionInstanceGroups)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RegionInstanceGroupList
+ */
+ public function listRegionInstanceGroups($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_RegionInstanceGroupList");
+ }
+ /**
+ * Lists the instances in the specified instance group and displays information
+ * about the named ports. Depending on the specified options, this method can
+ * list all instances or only the instances that are running.
+ * (regionInstanceGroups.listInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroup Name of the regional instance group for which we
+ * want to list the instances.
+ * @param Google_Service_Compute_RegionInstanceGroupsListInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RegionInstanceGroupsListInstances
+ */
+ public function listInstances($project, $region, $instanceGroup, Google_Service_Compute_RegionInstanceGroupsListInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('listInstances', array($params), "Google_Service_Compute_RegionInstanceGroupsListInstances");
+ }
+ /**
+ * Sets the named ports for the specified regional instance group.
+ * (regionInstanceGroups.setNamedPorts)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $instanceGroup The name of the regional instance group where
+ * the named ports are updated.
+ * @param Google_Service_Compute_RegionInstanceGroupsSetNamedPortsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setNamedPorts($project, $region, $instanceGroup, Google_Service_Compute_RegionInstanceGroupsSetNamedPortsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'instanceGroup' => $instanceGroup, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setNamedPorts', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionOperations.php
new file mode 100644
index 00000000..40d91319
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/RegionOperations.php
@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regionOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $regionOperations = $computeService->regionOperations;
+ * </code>
+ */
+class Google_Service_Compute_Resource_RegionOperations extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified region-specific Operations resource.
+ * (regionOperations.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $operation Name of the Operations resource to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $region, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the specified region-specific Operations resource.
+ * (regionOperations.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $operation Name of the Operations resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function get($project, $region, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of Operation resources contained within the specified
+ * region. (regionOperations.listRegionOperations)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_OperationList
+ */
+ public function listRegionOperations($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php
new file mode 100644
index 00000000..b5e859a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Regions.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $regions = $computeService->regions;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Regions extends Google_Service_Resource
+{
+ /**
+ * Returns the specified Region resource. Get a list of available regions by
+ * making a list() request. (regions.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Region
+ */
+ public function get($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Region");
+ }
+ /**
+ * Retrieves the list of region resources available to the specified project.
+ * (regions.listRegions)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RegionList
+ */
+ public function listRegions($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_RegionList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php
new file mode 100644
index 00000000..8ab17d0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routers.php
@@ -0,0 +1,256 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "routers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $routers = $computeService->routers;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Routers extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of routers. (routers.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RouterAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_RouterAggregatedList");
+ }
+ /**
+ * Deletes the specified Router resource. (routers.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $router Name of the Router resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $router, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'router' => $router);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified Router resource. Get a list of available routers by
+ * making a list() request. (routers.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $router Name of the Router resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Router
+ */
+ public function get($project, $region, $router, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'router' => $router);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Router");
+ }
+ /**
+ * Retrieves runtime information of the specified router.
+ * (routers.getRouterStatus)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $router Name of the Router resource to query.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_RouterStatusResponse
+ */
+ public function getRouterStatus($project, $region, $router, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'router' => $router);
+ $params = array_merge($params, $optParams);
+ return $this->call('getRouterStatus', array($params), "Google_Service_Compute_RouterStatusResponse");
+ }
+ /**
+ * Creates a Router resource in the specified project and region using the data
+ * included in the request. (routers.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param Google_Service_Compute_Router $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_Router $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of Router resources available to the specified project.
+ * (routers.listRouters)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RouterList
+ */
+ public function listRouters($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_RouterList");
+ }
+ /**
+ * Updates the specified Router resource with the data included in the request.
+ * This method supports patch semantics. (routers.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $router Name of the Router resource to update.
+ * @param Google_Service_Compute_Router $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $region, $router, Google_Service_Compute_Router $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'router' => $router, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Preview fields auto-generated during router create and update operations.
+ * Calling this method does NOT create or update the router. (routers.preview)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $router Name of the Router resource to query.
+ * @param Google_Service_Compute_Router $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_RoutersPreviewResponse
+ */
+ public function preview($project, $region, $router, Google_Service_Compute_Router $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'router' => $router, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('preview', array($params), "Google_Service_Compute_RoutersPreviewResponse");
+ }
+ /**
+ * Updates the specified Router resource with the data included in the request.
+ * (routers.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $router Name of the Router resource to update.
+ * @param Google_Service_Compute_Router $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $region, $router, Google_Service_Compute_Router $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'router' => $router, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php
new file mode 100644
index 00000000..2970f5e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Routes.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "routes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $routes = $computeService->routes;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Routes extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified Route resource. (routes.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $route Name of the Route resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $route, $optParams = array())
+ {
+ $params = array('project' => $project, 'route' => $route);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified Route resource. Get a list of available routes by
+ * making a list() request. (routes.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $route Name of the Route resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Route
+ */
+ public function get($project, $route, $optParams = array())
+ {
+ $params = array('project' => $project, 'route' => $route);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Route");
+ }
+ /**
+ * Creates a Route resource in the specified project using the data included in
+ * the request. (routes.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_Route $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of Route resources available to the specified project.
+ * (routes.listRoutes)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_RouteList
+ */
+ public function listRoutes($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_RouteList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php
new file mode 100644
index 00000000..30fbf0b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Snapshots.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "snapshots" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $snapshots = $computeService->snapshots;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Snapshots extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified Snapshot resource. Keep in mind that deleting a single
+ * snapshot might not necessarily delete all the data on that snapshot. If any
+ * data on the snapshot that is marked for deletion is needed for subsequent
+ * snapshots, the data will be moved to the next corresponding snapshot.
+ *
+ * For more information, see Deleting snaphots. (snapshots.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $snapshot Name of the Snapshot resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $snapshot, $optParams = array())
+ {
+ $params = array('project' => $project, 'snapshot' => $snapshot);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified Snapshot resource. Get a list of available snapshots by
+ * making a list() request. (snapshots.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $snapshot Name of the Snapshot resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Snapshot
+ */
+ public function get($project, $snapshot, $optParams = array())
+ {
+ $params = array('project' => $project, 'snapshot' => $snapshot);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Snapshot");
+ }
+ /**
+ * Retrieves the list of Snapshot resources contained within the specified
+ * project. (snapshots.listSnapshots)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_SnapshotList
+ */
+ public function listSnapshots($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_SnapshotList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php
new file mode 100644
index 00000000..b445378c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/SslCertificates.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sslCertificates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $sslCertificates = $computeService->sslCertificates;
+ * </code>
+ */
+class Google_Service_Compute_Resource_SslCertificates extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified SslCertificate resource. (sslCertificates.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $sslCertificate Name of the SslCertificate resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $sslCertificate, $optParams = array())
+ {
+ $params = array('project' => $project, 'sslCertificate' => $sslCertificate);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified SslCertificate resource. Get a list of available SSL
+ * certificates by making a list() request. (sslCertificates.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $sslCertificate Name of the SslCertificate resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_SslCertificate
+ */
+ public function get($project, $sslCertificate, $optParams = array())
+ {
+ $params = array('project' => $project, 'sslCertificate' => $sslCertificate);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_SslCertificate");
+ }
+ /**
+ * Creates a SslCertificate resource in the specified project using the data
+ * included in the request. (sslCertificates.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_SslCertificate $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_SslCertificate $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of SslCertificate resources available to the specified
+ * project. (sslCertificates.listSslCertificates)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_SslCertificateList
+ */
+ public function listSslCertificates($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_SslCertificateList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php
new file mode 100644
index 00000000..9e0fd05b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Subnetworks.php
@@ -0,0 +1,206 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subnetworks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $subnetworks = $computeService->subnetworks;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Subnetworks extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of subnetworks. (subnetworks.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_SubnetworkAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_SubnetworkAggregatedList");
+ }
+ /**
+ * Deletes the specified subnetwork. (subnetworks.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $subnetwork Name of the Subnetwork resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $subnetwork, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'subnetwork' => $subnetwork);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Expands the IP CIDR range of the subnetwork to a specified value.
+ * (subnetworks.expandIpCidrRange)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $subnetwork Name of the Subnetwork resource to update.
+ * @param Google_Service_Compute_SubnetworksExpandIpCidrRangeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function expandIpCidrRange($project, $region, $subnetwork, Google_Service_Compute_SubnetworksExpandIpCidrRangeRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'subnetwork' => $subnetwork, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('expandIpCidrRange', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified subnetwork. Get a list of available subnetworks list()
+ * request. (subnetworks.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $subnetwork Name of the Subnetwork resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Subnetwork
+ */
+ public function get($project, $region, $subnetwork, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'subnetwork' => $subnetwork);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Subnetwork");
+ }
+ /**
+ * Creates a subnetwork in the specified project using the data included in the
+ * request. (subnetworks.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param Google_Service_Compute_Subnetwork $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_Subnetwork $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of subnetworks available to the specified project.
+ * (subnetworks.listSubnetworks)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_SubnetworkList
+ */
+ public function listSubnetworks($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_SubnetworkList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php
new file mode 100644
index 00000000..3f19cfe8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpProxies.php
@@ -0,0 +1,147 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetHttpProxies" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $targetHttpProxies = $computeService->targetHttpProxies;
+ * </code>
+ */
+class Google_Service_Compute_Resource_TargetHttpProxies extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetHttpProxy Name of the TargetHttpProxy resource to
+ * delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $targetHttpProxy, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified TargetHttpProxy resource. Get a list of available
+ * target HTTP proxies by making a list() request. (targetHttpProxies.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetHttpProxy Name of the TargetHttpProxy resource to
+ * return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_TargetHttpProxy
+ */
+ public function get($project, $targetHttpProxy, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy");
+ }
+ /**
+ * Creates a TargetHttpProxy resource in the specified project using the data
+ * included in the request. (targetHttpProxies.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_TargetHttpProxy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of TargetHttpProxy resources available to the specified
+ * project. (targetHttpProxies.listTargetHttpProxies)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetHttpProxyList
+ */
+ public function listTargetHttpProxies($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList");
+ }
+ /**
+ * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetHttpProxy Name of the TargetHttpProxy to set a URL map
+ * for.
+ * @param Google_Service_Compute_UrlMapReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php
new file mode 100644
index 00000000..dd659717
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetHttpsProxies.php
@@ -0,0 +1,164 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetHttpsProxies" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $targetHttpsProxies = $computeService->targetHttpsProxies;
+ * </code>
+ */
+class Google_Service_Compute_Resource_TargetHttpsProxies extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified TargetHttpsProxy resource. (targetHttpsProxies.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
+ * delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $targetHttpsProxy, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified TargetHttpsProxy resource. Get a list of available
+ * target HTTPS proxies by making a list() request. (targetHttpsProxies.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to
+ * return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_TargetHttpsProxy
+ */
+ public function get($project, $targetHttpsProxy, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_TargetHttpsProxy");
+ }
+ /**
+ * Creates a TargetHttpsProxy resource in the specified project using the data
+ * included in the request. (targetHttpsProxies.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_TargetHttpsProxy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_TargetHttpsProxy $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of TargetHttpsProxy resources available to the specified
+ * project. (targetHttpsProxies.listTargetHttpsProxies)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetHttpsProxyList
+ */
+ public function listTargetHttpsProxies($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_TargetHttpsProxyList");
+ }
+ /**
+ * Replaces SslCertificates for TargetHttpsProxy.
+ * (targetHttpsProxies.setSslCertificates)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to set
+ * an SslCertificates resource for.
+ * @param Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setSslCertificates($project, $targetHttpsProxy, Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setSslCertificates', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Changes the URL map for TargetHttpsProxy. (targetHttpsProxies.setUrlMap)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource whose
+ * URL map is to be set.
+ * @param Google_Service_Compute_UrlMapReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setUrlMap($project, $targetHttpsProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php
new file mode 100644
index 00000000..e421bf42
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetInstances.php
@@ -0,0 +1,190 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetInstances" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $targetInstances = $computeService->targetInstances;
+ * </code>
+ */
+class Google_Service_Compute_Resource_TargetInstances extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of target instances.
+ * (targetInstances.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetInstanceAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList");
+ }
+ /**
+ * Deletes the specified TargetInstance resource. (targetInstances.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $targetInstance Name of the TargetInstance resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $zone, $targetInstance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified TargetInstance resource. Get a list of available target
+ * instances by making a list() request. (targetInstances.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $targetInstance Name of the TargetInstance resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_TargetInstance
+ */
+ public function get($project, $zone, $targetInstance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_TargetInstance");
+ }
+ /**
+ * Creates a TargetInstance resource in the specified project and zone using the
+ * data included in the request. (targetInstances.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param Google_Service_Compute_TargetInstance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of TargetInstance resources available to the specified
+ * project and zone. (targetInstances.listTargetInstances)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetInstanceList
+ */
+ public function listTargetInstances($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php
new file mode 100644
index 00000000..7d462298
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetPools.php
@@ -0,0 +1,293 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetPools" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $targetPools = $computeService->targetPools;
+ * </code>
+ */
+class Google_Service_Compute_Resource_TargetPools extends Google_Service_Resource
+{
+ /**
+ * Adds health check URLs to a target pool. (targetPools.addHealthCheck)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $targetPool Name of the target pool to add a health check to.
+ * @param Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Adds an instance to a target pool. (targetPools.addInstance)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $targetPool Name of the TargetPool resource to add instances
+ * to.
+ * @param Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addInstance', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves an aggregated list of target pools. (targetPools.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetPoolAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList");
+ }
+ /**
+ * Deletes the specified target pool. (targetPools.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $targetPool Name of the TargetPool resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $targetPool, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified target pool. Get a list of available target pools by
+ * making a list() request. (targetPools.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $targetPool Name of the TargetPool resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_TargetPool
+ */
+ public function get($project, $region, $targetPool, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_TargetPool");
+ }
+ /**
+ * Gets the most recent health check results for each IP for the instance that
+ * is referenced by the given target pool. (targetPools.getHealth)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $targetPool Name of the TargetPool resource to which the
+ * queried instance belongs.
+ * @param Google_Service_Compute_InstanceReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_TargetPoolInstanceHealth
+ */
+ public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth");
+ }
+ /**
+ * Creates a target pool in the specified project and region using the data
+ * included in the request. (targetPools.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param Google_Service_Compute_TargetPool $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of target pools available to the specified project and
+ * region. (targetPools.listTargetPools)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetPoolList
+ */
+ public function listTargetPools($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList");
+ }
+ /**
+ * Removes health check URL from a target pool. (targetPools.removeHealthCheck)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $targetPool Name of the target pool to remove health checks
+ * from.
+ * @param Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Removes instance URL from a target pool. (targetPools.removeInstance)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $targetPool Name of the TargetPool resource to remove instances
+ * from.
+ * @param Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Changes a backup target pool's configurations. (targetPools.setBackup)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region scoping this request.
+ * @param string $targetPool Name of the TargetPool resource to set a backup
+ * pool for.
+ * @param Google_Service_Compute_TargetReference $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param float failoverRatio New failoverRatio value for the target pool.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setBackup', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php
new file mode 100644
index 00000000..b6e2458d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetSslProxies.php
@@ -0,0 +1,180 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetSslProxies" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $targetSslProxies = $computeService->targetSslProxies;
+ * </code>
+ */
+class Google_Service_Compute_Resource_TargetSslProxies extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified TargetSslProxy resource. (targetSslProxies.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetSslProxy Name of the TargetSslProxy resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $targetSslProxy, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified TargetSslProxy resource. Get a list of available target
+ * SSL proxies by making a list() request. (targetSslProxies.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetSslProxy Name of the TargetSslProxy resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_TargetSslProxy
+ */
+ public function get($project, $targetSslProxy, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_TargetSslProxy");
+ }
+ /**
+ * Creates a TargetSslProxy resource in the specified project using the data
+ * included in the request. (targetSslProxies.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_TargetSslProxy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_TargetSslProxy $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of TargetSslProxy resources available to the specified
+ * project. (targetSslProxies.listTargetSslProxies)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetSslProxyList
+ */
+ public function listTargetSslProxies($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_TargetSslProxyList");
+ }
+ /**
+ * Changes the BackendService for TargetSslProxy.
+ * (targetSslProxies.setBackendService)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetSslProxy Name of the TargetSslProxy resource whose
+ * BackendService resource is to be set.
+ * @param Google_Service_Compute_TargetSslProxiesSetBackendServiceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setBackendService($project, $targetSslProxy, Google_Service_Compute_TargetSslProxiesSetBackendServiceRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setBackendService', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Changes the ProxyHeaderType for TargetSslProxy.
+ * (targetSslProxies.setProxyHeader)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetSslProxy Name of the TargetSslProxy resource whose
+ * ProxyHeader is to be set.
+ * @param Google_Service_Compute_TargetSslProxiesSetProxyHeaderRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setProxyHeader($project, $targetSslProxy, Google_Service_Compute_TargetSslProxiesSetProxyHeaderRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setProxyHeader', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Changes SslCertificates for TargetSslProxy.
+ * (targetSslProxies.setSslCertificates)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $targetSslProxy Name of the TargetSslProxy resource whose
+ * SslCertificate resource is to be set.
+ * @param Google_Service_Compute_TargetSslProxiesSetSslCertificatesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function setSslCertificates($project, $targetSslProxy, Google_Service_Compute_TargetSslProxiesSetSslCertificatesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'targetSslProxy' => $targetSslProxy, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setSslCertificates', array($params), "Google_Service_Compute_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php
new file mode 100644
index 00000000..a4dc75ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/TargetVpnGateways.php
@@ -0,0 +1,190 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetVpnGateways" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $targetVpnGateways = $computeService->targetVpnGateways;
+ * </code>
+ */
+class Google_Service_Compute_Resource_TargetVpnGateways extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of target VPN gateways.
+ * (targetVpnGateways.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetVpnGatewayAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList");
+ }
+ /**
+ * Deletes the specified target VPN gateway. (targetVpnGateways.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $targetVpnGateway Name of the target VPN gateway to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $targetVpnGateway, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified target VPN gateway. Get a list of available target VPN
+ * gateways by making a list() request. (targetVpnGateways.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $targetVpnGateway Name of the target VPN gateway to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_TargetVpnGateway
+ */
+ public function get($project, $region, $targetVpnGateway, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway");
+ }
+ /**
+ * Creates a target VPN gateway in the specified project and region using the
+ * data included in the request. (targetVpnGateways.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param Google_Service_Compute_TargetVpnGateway $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of target VPN gateways available to the specified project
+ * and region. (targetVpnGateways.listTargetVpnGateways)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_TargetVpnGatewayList
+ */
+ public function listTargetVpnGateways($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php
new file mode 100644
index 00000000..3a3460d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/UrlMaps.php
@@ -0,0 +1,194 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlMaps" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $urlMaps = $computeService->urlMaps;
+ * </code>
+ */
+class Google_Service_Compute_Resource_UrlMaps extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified UrlMap resource. (urlMaps.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $urlMap Name of the UrlMap resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $urlMap, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified UrlMap resource. Get a list of available URL maps by
+ * making a list() request. (urlMaps.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $urlMap Name of the UrlMap resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_UrlMap
+ */
+ public function get($project, $urlMap, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_UrlMap");
+ }
+ /**
+ * Creates a UrlMap resource in the specified project using the data included in
+ * the request. (urlMaps.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Service_Compute_UrlMap $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Initiates a cache invalidation operation, invalidating the specified path,
+ * scoped to the specified UrlMap. (urlMaps.invalidateCache)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $urlMap Name of the UrlMap scoping this request.
+ * @param Google_Service_Compute_CacheInvalidationRule $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function invalidateCache($project, $urlMap, Google_Service_Compute_CacheInvalidationRule $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('invalidateCache', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves the list of UrlMap resources available to the specified project.
+ * (urlMaps.listUrlMaps)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_UrlMapList
+ */
+ public function listUrlMaps($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_UrlMapList");
+ }
+ /**
+ * Updates the specified UrlMap resource with the data included in the request.
+ * This method supports patch semantics. (urlMaps.patch)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $urlMap Name of the UrlMap resource to update.
+ * @param Google_Service_Compute_UrlMap $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Updates the specified UrlMap resource with the data included in the request.
+ * (urlMaps.update)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $urlMap Name of the UrlMap resource to update.
+ * @param Google_Service_Compute_UrlMap $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Runs static validation for the UrlMap. In particular, the tests of the
+ * provided UrlMap will be run. Calling this method does NOT create the UrlMap.
+ * (urlMaps.validate)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $urlMap Name of the UrlMap resource to be validated as.
+ * @param Google_Service_Compute_UrlMapsValidateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_UrlMapsValidateResponse
+ */
+ public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValidateRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php
new file mode 100644
index 00000000..4d9fd312
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/VpnTunnels.php
@@ -0,0 +1,189 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "vpnTunnels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $vpnTunnels = $computeService->vpnTunnels;
+ * </code>
+ */
+class Google_Service_Compute_Resource_VpnTunnels extends Google_Service_Resource
+{
+ /**
+ * Retrieves an aggregated list of VPN tunnels. (vpnTunnels.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_VpnTunnelAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList");
+ }
+ /**
+ * Deletes the specified VpnTunnel resource. (vpnTunnels.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $vpnTunnel Name of the VpnTunnel resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $vpnTunnel, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Returns the specified VpnTunnel resource. Get a list of available VPN tunnels
+ * by making a list() request. (vpnTunnels.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param string $vpnTunnel Name of the VpnTunnel resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_VpnTunnel
+ */
+ public function get($project, $region, $vpnTunnel, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel");
+ }
+ /**
+ * Creates a VpnTunnel resource in the specified project and region using the
+ * data included in the request. (vpnTunnels.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param Google_Service_Compute_VpnTunnel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of VpnTunnel resources contained in the specified project
+ * and region. (vpnTunnels.listVpnTunnels)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region Name of the region for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_VpnTunnelList
+ */
+ public function listVpnTunnels($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ZoneOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ZoneOperations.php
new file mode 100644
index 00000000..2c7117ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/ZoneOperations.php
@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zoneOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $zoneOperations = $computeService->zoneOperations;
+ * </code>
+ */
+class Google_Service_Compute_Resource_ZoneOperations extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified zone-specific Operations resource.
+ * (zoneOperations.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $operation Name of the Operations resource to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $zone, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the specified zone-specific Operations resource.
+ * (zoneOperations.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $operation Name of the Operations resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function get($project, $zone, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Operation");
+ }
+ /**
+ * Retrieves a list of Operation resources contained within the specified zone.
+ * (zoneOperations.listZoneOperations)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_OperationList
+ */
+ public function listZoneOperations($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php
new file mode 100644
index 00000000..7cb7a9ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Resource/Zones.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zones" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $computeService = new Google_Service_Compute(...);
+ * $zones = $computeService->zones;
+ * </code>
+ */
+class Google_Service_Compute_Resource_Zones extends Google_Service_Resource
+{
+ /**
+ * Returns the specified Zone resource. Get a list of available zones by making
+ * a list() request. (zones.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Zone
+ */
+ public function get($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_Zone");
+ }
+ /**
+ * Retrieves the list of Zone resources available to the specified project.
+ * (zones.listZones)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_Compute_ZoneList
+ */
+ public function listZones($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_ZoneList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ResourceGroupReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ResourceGroupReference.php
new file mode 100644
index 00000000..aff90a0b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ResourceGroupReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ResourceGroupReference extends Google_Model
+{
+ public $group;
+
+ public function setGroup($group)
+ {
+ $this->group = $group;
+ }
+ public function getGroup()
+ {
+ return $this->group;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Route.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Route.php
new file mode 100644
index 00000000..115d95be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Route.php
@@ -0,0 +1,167 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Route extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $creationTimestamp;
+ public $description;
+ public $destRange;
+ public $id;
+ public $kind;
+ public $name;
+ public $network;
+ public $nextHopGateway;
+ public $nextHopInstance;
+ public $nextHopIp;
+ public $nextHopNetwork;
+ public $nextHopVpnTunnel;
+ public $priority;
+ public $selfLink;
+ public $tags;
+ protected $warningsType = 'Google_Service_Compute_RouteWarnings';
+ protected $warningsDataType = 'array';
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDestRange($destRange)
+ {
+ $this->destRange = $destRange;
+ }
+ public function getDestRange()
+ {
+ return $this->destRange;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setNextHopGateway($nextHopGateway)
+ {
+ $this->nextHopGateway = $nextHopGateway;
+ }
+ public function getNextHopGateway()
+ {
+ return $this->nextHopGateway;
+ }
+ public function setNextHopInstance($nextHopInstance)
+ {
+ $this->nextHopInstance = $nextHopInstance;
+ }
+ public function getNextHopInstance()
+ {
+ return $this->nextHopInstance;
+ }
+ public function setNextHopIp($nextHopIp)
+ {
+ $this->nextHopIp = $nextHopIp;
+ }
+ public function getNextHopIp()
+ {
+ return $this->nextHopIp;
+ }
+ public function setNextHopNetwork($nextHopNetwork)
+ {
+ $this->nextHopNetwork = $nextHopNetwork;
+ }
+ public function getNextHopNetwork()
+ {
+ return $this->nextHopNetwork;
+ }
+ public function setNextHopVpnTunnel($nextHopVpnTunnel)
+ {
+ $this->nextHopVpnTunnel = $nextHopVpnTunnel;
+ }
+ public function getNextHopVpnTunnel()
+ {
+ return $this->nextHopVpnTunnel;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTags($tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteList.php
new file mode 100644
index 00000000..8587856c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouteList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Route';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarnings.php
new file mode 100644
index 00000000..d41e2c71
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouteWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_RouteWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarningsData.php
new file mode 100644
index 00000000..19826730
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouteWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouteWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Router.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Router.php
new file mode 100644
index 00000000..abcb67d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Router.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Router extends Google_Collection
+{
+ protected $collection_key = 'interfaces';
+ protected $bgpType = 'Google_Service_Compute_RouterBgp';
+ protected $bgpDataType = '';
+ protected $bgpPeersType = 'Google_Service_Compute_RouterBgpPeer';
+ protected $bgpPeersDataType = 'array';
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ protected $interfacesType = 'Google_Service_Compute_RouterInterface';
+ protected $interfacesDataType = 'array';
+ public $kind;
+ public $name;
+ public $network;
+ public $region;
+ public $selfLink;
+
+ public function setBgp(Google_Service_Compute_RouterBgp $bgp)
+ {
+ $this->bgp = $bgp;
+ }
+ public function getBgp()
+ {
+ return $this->bgp;
+ }
+ public function setBgpPeers($bgpPeers)
+ {
+ $this->bgpPeers = $bgpPeers;
+ }
+ public function getBgpPeers()
+ {
+ return $this->bgpPeers;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInterfaces($interfaces)
+ {
+ $this->interfaces = $interfaces;
+ }
+ public function getInterfaces()
+ {
+ return $this->interfaces;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterAggregatedList.php
new file mode 100644
index 00000000..fb5d0d93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_RoutersScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgp.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgp.php
new file mode 100644
index 00000000..c7e25f65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgp.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterBgp extends Google_Model
+{
+ public $asn;
+
+ public function setAsn($asn)
+ {
+ $this->asn = $asn;
+ }
+ public function getAsn()
+ {
+ return $this->asn;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php
new file mode 100644
index 00000000..a65fb824
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterBgpPeer.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterBgpPeer extends Google_Model
+{
+ public $advertisedRoutePriority;
+ public $interfaceName;
+ public $ipAddress;
+ public $name;
+ public $peerAsn;
+ public $peerIpAddress;
+
+ public function setAdvertisedRoutePriority($advertisedRoutePriority)
+ {
+ $this->advertisedRoutePriority = $advertisedRoutePriority;
+ }
+ public function getAdvertisedRoutePriority()
+ {
+ return $this->advertisedRoutePriority;
+ }
+ public function setInterfaceName($interfaceName)
+ {
+ $this->interfaceName = $interfaceName;
+ }
+ public function getInterfaceName()
+ {
+ return $this->interfaceName;
+ }
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPeerAsn($peerAsn)
+ {
+ $this->peerAsn = $peerAsn;
+ }
+ public function getPeerAsn()
+ {
+ return $this->peerAsn;
+ }
+ public function setPeerIpAddress($peerIpAddress)
+ {
+ $this->peerIpAddress = $peerIpAddress;
+ }
+ public function getPeerIpAddress()
+ {
+ return $this->peerIpAddress;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php
new file mode 100644
index 00000000..af0bc908
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterInterface.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterInterface extends Google_Model
+{
+ public $ipRange;
+ public $linkedVpnTunnel;
+ public $name;
+
+ public function setIpRange($ipRange)
+ {
+ $this->ipRange = $ipRange;
+ }
+ public function getIpRange()
+ {
+ return $this->ipRange;
+ }
+ public function setLinkedVpnTunnel($linkedVpnTunnel)
+ {
+ $this->linkedVpnTunnel = $linkedVpnTunnel;
+ }
+ public function getLinkedVpnTunnel()
+ {
+ return $this->linkedVpnTunnel;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterList.php
new file mode 100644
index 00000000..146168d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Router';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php
new file mode 100644
index 00000000..b737bc96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatus.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterStatus extends Google_Collection
+{
+ protected $collection_key = 'bgpPeerStatus';
+ protected $bestRoutesType = 'Google_Service_Compute_Route';
+ protected $bestRoutesDataType = 'array';
+ protected $bgpPeerStatusType = 'Google_Service_Compute_RouterStatusBgpPeerStatus';
+ protected $bgpPeerStatusDataType = 'array';
+ public $network;
+
+ public function setBestRoutes($bestRoutes)
+ {
+ $this->bestRoutes = $bestRoutes;
+ }
+ public function getBestRoutes()
+ {
+ return $this->bestRoutes;
+ }
+ public function setBgpPeerStatus($bgpPeerStatus)
+ {
+ $this->bgpPeerStatus = $bgpPeerStatus;
+ }
+ public function getBgpPeerStatus()
+ {
+ return $this->bgpPeerStatus;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusBgpPeerStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusBgpPeerStatus.php
new file mode 100644
index 00000000..bc657b2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusBgpPeerStatus.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterStatusBgpPeerStatus extends Google_Collection
+{
+ protected $collection_key = 'advertisedRoutes';
+ protected $advertisedRoutesType = 'Google_Service_Compute_Route';
+ protected $advertisedRoutesDataType = 'array';
+ public $ipAddress;
+ public $linkedVpnTunnel;
+ public $name;
+ public $numLearnedRoutes;
+ public $peerIpAddress;
+ public $state;
+ public $status;
+ public $uptime;
+ public $uptimeSeconds;
+
+ public function setAdvertisedRoutes($advertisedRoutes)
+ {
+ $this->advertisedRoutes = $advertisedRoutes;
+ }
+ public function getAdvertisedRoutes()
+ {
+ return $this->advertisedRoutes;
+ }
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setLinkedVpnTunnel($linkedVpnTunnel)
+ {
+ $this->linkedVpnTunnel = $linkedVpnTunnel;
+ }
+ public function getLinkedVpnTunnel()
+ {
+ return $this->linkedVpnTunnel;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumLearnedRoutes($numLearnedRoutes)
+ {
+ $this->numLearnedRoutes = $numLearnedRoutes;
+ }
+ public function getNumLearnedRoutes()
+ {
+ return $this->numLearnedRoutes;
+ }
+ public function setPeerIpAddress($peerIpAddress)
+ {
+ $this->peerIpAddress = $peerIpAddress;
+ }
+ public function getPeerIpAddress()
+ {
+ return $this->peerIpAddress;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUptime($uptime)
+ {
+ $this->uptime = $uptime;
+ }
+ public function getUptime()
+ {
+ return $this->uptime;
+ }
+ public function setUptimeSeconds($uptimeSeconds)
+ {
+ $this->uptimeSeconds = $uptimeSeconds;
+ }
+ public function getUptimeSeconds()
+ {
+ return $this->uptimeSeconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusResponse.php
new file mode 100644
index 00000000..a78812e3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RouterStatusResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RouterStatusResponse extends Google_Model
+{
+ public $kind;
+ protected $resultType = 'Google_Service_Compute_RouterStatus';
+ protected $resultDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResult(Google_Service_Compute_RouterStatus $result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersPreviewResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersPreviewResponse.php
new file mode 100644
index 00000000..79372e6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersPreviewResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RoutersPreviewResponse extends Google_Model
+{
+ protected $resourceType = 'Google_Service_Compute_Router';
+ protected $resourceDataType = '';
+
+ public function setResource(Google_Service_Compute_Router $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedList.php
new file mode 100644
index 00000000..7f321f15
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RoutersScopedList extends Google_Collection
+{
+ protected $collection_key = 'routers';
+ protected $routersType = 'Google_Service_Compute_Router';
+ protected $routersDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_RoutersScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setRouters($routers)
+ {
+ $this->routers = $routers;
+ }
+ public function getRouters()
+ {
+ return $this->routers;
+ }
+ public function setWarning(Google_Service_Compute_RoutersScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarning.php
new file mode 100644
index 00000000..0aa8c3ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RoutersScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_RoutersScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarningData.php
new file mode 100644
index 00000000..d4c75d1c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/RoutersScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_RoutersScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SSLHealthCheck.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SSLHealthCheck.php
new file mode 100644
index 00000000..8ba4fdef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SSLHealthCheck.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SSLHealthCheck extends Google_Model
+{
+ public $port;
+ public $portName;
+ public $proxyHeader;
+ public $request;
+ public $response;
+
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setPortName($portName)
+ {
+ $this->portName = $portName;
+ }
+ public function getPortName()
+ {
+ return $this->portName;
+ }
+ public function setProxyHeader($proxyHeader)
+ {
+ $this->proxyHeader = $proxyHeader;
+ }
+ public function getProxyHeader()
+ {
+ return $this->proxyHeader;
+ }
+ public function setRequest($request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Scheduling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Scheduling.php
new file mode 100644
index 00000000..cebeebb1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Scheduling.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Scheduling extends Google_Model
+{
+ public $automaticRestart;
+ public $onHostMaintenance;
+ public $preemptible;
+
+ public function setAutomaticRestart($automaticRestart)
+ {
+ $this->automaticRestart = $automaticRestart;
+ }
+ public function getAutomaticRestart()
+ {
+ return $this->automaticRestart;
+ }
+ public function setOnHostMaintenance($onHostMaintenance)
+ {
+ $this->onHostMaintenance = $onHostMaintenance;
+ }
+ public function getOnHostMaintenance()
+ {
+ return $this->onHostMaintenance;
+ }
+ public function setPreemptible($preemptible)
+ {
+ $this->preemptible = $preemptible;
+ }
+ public function getPreemptible()
+ {
+ return $this->preemptible;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SerialPortOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SerialPortOutput.php
new file mode 100644
index 00000000..79a96a7d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SerialPortOutput.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SerialPortOutput extends Google_Model
+{
+ public $contents;
+ public $kind;
+ public $next;
+ public $selfLink;
+ public $start;
+
+ public function setContents($contents)
+ {
+ $this->contents = $contents;
+ }
+ public function getContents()
+ {
+ return $this->contents;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNext($next)
+ {
+ $this->next = $next;
+ }
+ public function getNext()
+ {
+ return $this->next;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ServiceAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ServiceAccount.php
new file mode 100644
index 00000000..c3f5df0b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ServiceAccount.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ServiceAccount extends Google_Collection
+{
+ protected $collection_key = 'scopes';
+ public $email;
+ public $scopes;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setScopes($scopes)
+ {
+ $this->scopes = $scopes;
+ }
+ public function getScopes()
+ {
+ return $this->scopes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Snapshot.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Snapshot.php
new file mode 100644
index 00000000..60616e74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Snapshot.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Snapshot extends Google_Collection
+{
+ protected $collection_key = 'licenses';
+ public $creationTimestamp;
+ public $description;
+ public $diskSizeGb;
+ public $id;
+ public $kind;
+ public $licenses;
+ public $name;
+ public $selfLink;
+ protected $snapshotEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $snapshotEncryptionKeyDataType = '';
+ public $sourceDisk;
+ protected $sourceDiskEncryptionKeyType = 'Google_Service_Compute_CustomerEncryptionKey';
+ protected $sourceDiskEncryptionKeyDataType = '';
+ public $sourceDiskId;
+ public $status;
+ public $storageBytes;
+ public $storageBytesStatus;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDiskSizeGb($diskSizeGb)
+ {
+ $this->diskSizeGb = $diskSizeGb;
+ }
+ public function getDiskSizeGb()
+ {
+ return $this->diskSizeGb;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLicenses($licenses)
+ {
+ $this->licenses = $licenses;
+ }
+ public function getLicenses()
+ {
+ return $this->licenses;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSnapshotEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $snapshotEncryptionKey)
+ {
+ $this->snapshotEncryptionKey = $snapshotEncryptionKey;
+ }
+ public function getSnapshotEncryptionKey()
+ {
+ return $this->snapshotEncryptionKey;
+ }
+ public function setSourceDisk($sourceDisk)
+ {
+ $this->sourceDisk = $sourceDisk;
+ }
+ public function getSourceDisk()
+ {
+ return $this->sourceDisk;
+ }
+ public function setSourceDiskEncryptionKey(Google_Service_Compute_CustomerEncryptionKey $sourceDiskEncryptionKey)
+ {
+ $this->sourceDiskEncryptionKey = $sourceDiskEncryptionKey;
+ }
+ public function getSourceDiskEncryptionKey()
+ {
+ return $this->sourceDiskEncryptionKey;
+ }
+ public function setSourceDiskId($sourceDiskId)
+ {
+ $this->sourceDiskId = $sourceDiskId;
+ }
+ public function getSourceDiskId()
+ {
+ return $this->sourceDiskId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStorageBytes($storageBytes)
+ {
+ $this->storageBytes = $storageBytes;
+ }
+ public function getStorageBytes()
+ {
+ return $this->storageBytes;
+ }
+ public function setStorageBytesStatus($storageBytesStatus)
+ {
+ $this->storageBytesStatus = $storageBytesStatus;
+ }
+ public function getStorageBytesStatus()
+ {
+ return $this->storageBytesStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SnapshotList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SnapshotList.php
new file mode 100644
index 00000000..0cce5fc9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SnapshotList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SnapshotList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Snapshot';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificate.php
new file mode 100644
index 00000000..e1b3425e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificate.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SslCertificate extends Google_Model
+{
+ public $certificate;
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $privateKey;
+ public $selfLink;
+
+ public function setCertificate($certificate)
+ {
+ $this->certificate = $certificate;
+ }
+ public function getCertificate()
+ {
+ return $this->certificate;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrivateKey($privateKey)
+ {
+ $this->privateKey = $privateKey;
+ }
+ public function getPrivateKey()
+ {
+ return $this->privateKey;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificateList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificateList.php
new file mode 100644
index 00000000..14eeaf12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SslCertificateList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SslCertificateList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_SslCertificate';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php
new file mode 100644
index 00000000..a9253ed4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Subnetwork.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Subnetwork extends Google_Model
+{
+ public $creationTimestamp;
+ public $description;
+ public $gatewayAddress;
+ public $id;
+ public $ipCidrRange;
+ public $kind;
+ public $name;
+ public $network;
+ public $region;
+ public $selfLink;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setGatewayAddress($gatewayAddress)
+ {
+ $this->gatewayAddress = $gatewayAddress;
+ }
+ public function getGatewayAddress()
+ {
+ return $this->gatewayAddress;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIpCidrRange($ipCidrRange)
+ {
+ $this->ipCidrRange = $ipCidrRange;
+ }
+ public function getIpCidrRange()
+ {
+ return $this->ipCidrRange;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkAggregatedList.php
new file mode 100644
index 00000000..454b55a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SubnetworkAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_SubnetworksScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkList.php
new file mode 100644
index 00000000..5dcb4cfe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworkList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SubnetworkList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Subnetwork';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksExpandIpCidrRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksExpandIpCidrRangeRequest.php
new file mode 100644
index 00000000..d8bf7116
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksExpandIpCidrRangeRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SubnetworksExpandIpCidrRangeRequest extends Google_Model
+{
+ public $ipCidrRange;
+
+ public function setIpCidrRange($ipCidrRange)
+ {
+ $this->ipCidrRange = $ipCidrRange;
+ }
+ public function getIpCidrRange()
+ {
+ return $this->ipCidrRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedList.php
new file mode 100644
index 00000000..5ef2e8e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SubnetworksScopedList extends Google_Collection
+{
+ protected $collection_key = 'subnetworks';
+ protected $subnetworksType = 'Google_Service_Compute_Subnetwork';
+ protected $subnetworksDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_SubnetworksScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setSubnetworks($subnetworks)
+ {
+ $this->subnetworks = $subnetworks;
+ }
+ public function getSubnetworks()
+ {
+ return $this->subnetworks;
+ }
+ public function setWarning(Google_Service_Compute_SubnetworksScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarning.php
new file mode 100644
index 00000000..298eebb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SubnetworksScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_SubnetworksScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarningData.php
new file mode 100644
index 00000000..f83c966b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/SubnetworksScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_SubnetworksScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TCPHealthCheck.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TCPHealthCheck.php
new file mode 100644
index 00000000..0584c7ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TCPHealthCheck.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TCPHealthCheck extends Google_Model
+{
+ public $port;
+ public $portName;
+ public $proxyHeader;
+ public $request;
+ public $response;
+
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setPortName($portName)
+ {
+ $this->portName = $portName;
+ }
+ public function getPortName()
+ {
+ return $this->portName;
+ }
+ public function setProxyHeader($proxyHeader)
+ {
+ $this->proxyHeader = $proxyHeader;
+ }
+ public function getProxyHeader()
+ {
+ return $this->proxyHeader;
+ }
+ public function setRequest($request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Tags.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Tags.php
new file mode 100644
index 00000000..84321b75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Tags.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Tags extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $fingerprint;
+ public $items;
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxy.php
new file mode 100644
index 00000000..afdfe85b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxy.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetHttpProxy extends Google_Model
+{
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ public $urlMap;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUrlMap($urlMap)
+ {
+ $this->urlMap = $urlMap;
+ }
+ public function getUrlMap()
+ {
+ return $this->urlMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxyList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxyList.php
new file mode 100644
index 00000000..d58d9dd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpProxyList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetHttpProxyList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetHttpProxy';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxiesSetSslCertificatesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxiesSetSslCertificatesRequest.php
new file mode 100644
index 00000000..73ef2fe9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxiesSetSslCertificatesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest extends Google_Collection
+{
+ protected $collection_key = 'sslCertificates';
+ public $sslCertificates;
+
+ public function setSslCertificates($sslCertificates)
+ {
+ $this->sslCertificates = $sslCertificates;
+ }
+ public function getSslCertificates()
+ {
+ return $this->sslCertificates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php
new file mode 100644
index 00000000..a945b6b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxy.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetHttpsProxy extends Google_Collection
+{
+ protected $collection_key = 'sslCertificates';
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ public $sslCertificates;
+ public $urlMap;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSslCertificates($sslCertificates)
+ {
+ $this->sslCertificates = $sslCertificates;
+ }
+ public function getSslCertificates()
+ {
+ return $this->sslCertificates;
+ }
+ public function setUrlMap($urlMap)
+ {
+ $this->urlMap = $urlMap;
+ }
+ public function getUrlMap()
+ {
+ return $this->urlMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxyList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxyList.php
new file mode 100644
index 00000000..414156e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetHttpsProxyList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetHttpsProxyList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetHttpsProxy';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstance.php
new file mode 100644
index 00000000..efc5d2b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstance.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetInstance extends Google_Model
+{
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $instance;
+ public $kind;
+ public $name;
+ public $natPolicy;
+ public $selfLink;
+ public $zone;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNatPolicy($natPolicy)
+ {
+ $this->natPolicy = $natPolicy;
+ }
+ public function getNatPolicy()
+ {
+ return $this->natPolicy;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceAggregatedList.php
new file mode 100644
index 00000000..fda5e3c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceList.php
new file mode 100644
index 00000000..8419c6a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstanceList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetInstanceList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetInstance';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedList.php
new file mode 100644
index 00000000..fba4e82b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection
+{
+ protected $collection_key = 'targetInstances';
+ protected $targetInstancesType = 'Google_Service_Compute_TargetInstance';
+ protected $targetInstancesDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setTargetInstances($targetInstances)
+ {
+ $this->targetInstances = $targetInstances;
+ }
+ public function getTargetInstances()
+ {
+ return $this->targetInstances;
+ }
+ public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarning.php
new file mode 100644
index 00000000..15538355
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarningData.php
new file mode 100644
index 00000000..fa2252c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetInstancesScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPool.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPool.php
new file mode 100644
index 00000000..1e714d32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPool.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPool extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $backupPool;
+ public $creationTimestamp;
+ public $description;
+ public $failoverRatio;
+ public $healthChecks;
+ public $id;
+ public $instances;
+ public $kind;
+ public $name;
+ public $region;
+ public $selfLink;
+ public $sessionAffinity;
+
+ public function setBackupPool($backupPool)
+ {
+ $this->backupPool = $backupPool;
+ }
+ public function getBackupPool()
+ {
+ return $this->backupPool;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFailoverRatio($failoverRatio)
+ {
+ $this->failoverRatio = $failoverRatio;
+ }
+ public function getFailoverRatio()
+ {
+ return $this->failoverRatio;
+ }
+ public function setHealthChecks($healthChecks)
+ {
+ $this->healthChecks = $healthChecks;
+ }
+ public function getHealthChecks()
+ {
+ return $this->healthChecks;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSessionAffinity($sessionAffinity)
+ {
+ $this->sessionAffinity = $sessionAffinity;
+ }
+ public function getSessionAffinity()
+ {
+ return $this->sessionAffinity;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolAggregatedList.php
new file mode 100644
index 00000000..d3d8199f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolInstanceHealth.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolInstanceHealth.php
new file mode 100644
index 00000000..2c452132
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolInstanceHealth.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection
+{
+ protected $collection_key = 'healthStatus';
+ protected $healthStatusType = 'Google_Service_Compute_HealthStatus';
+ protected $healthStatusDataType = 'array';
+ public $kind;
+
+ public function setHealthStatus($healthStatus)
+ {
+ $this->healthStatus = $healthStatus;
+ }
+ public function getHealthStatus()
+ {
+ return $this->healthStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolList.php
new file mode 100644
index 00000000..9ef1a0bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetPool';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddHealthCheckRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddHealthCheckRequest.php
new file mode 100644
index 00000000..f4a05e03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddHealthCheckRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection
+{
+ protected $collection_key = 'healthChecks';
+ protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference';
+ protected $healthChecksDataType = 'array';
+
+ public function setHealthChecks($healthChecks)
+ {
+ $this->healthChecks = $healthChecks;
+ }
+ public function getHealthChecks()
+ {
+ return $this->healthChecks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddInstanceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddInstanceRequest.php
new file mode 100644
index 00000000..97005f79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsAddInstanceRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $instancesType = 'Google_Service_Compute_InstanceReference';
+ protected $instancesDataType = 'array';
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveHealthCheckRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveHealthCheckRequest.php
new file mode 100644
index 00000000..964f8fa1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveHealthCheckRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection
+{
+ protected $collection_key = 'healthChecks';
+ protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference';
+ protected $healthChecksDataType = 'array';
+
+ public function setHealthChecks($healthChecks)
+ {
+ $this->healthChecks = $healthChecks;
+ }
+ public function getHealthChecks()
+ {
+ return $this->healthChecks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveInstanceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveInstanceRequest.php
new file mode 100644
index 00000000..ab2b5713
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsRemoveInstanceRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $instancesType = 'Google_Service_Compute_InstanceReference';
+ protected $instancesDataType = 'array';
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedList.php
new file mode 100644
index 00000000..b444054f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection
+{
+ protected $collection_key = 'targetPools';
+ protected $targetPoolsType = 'Google_Service_Compute_TargetPool';
+ protected $targetPoolsDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setTargetPools($targetPools)
+ {
+ $this->targetPools = $targetPools;
+ }
+ public function getTargetPools()
+ {
+ return $this->targetPools;
+ }
+ public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarning.php
new file mode 100644
index 00000000..d15ea6eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarningData.php
new file mode 100644
index 00000000..907436bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetPoolsScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetReference.php
new file mode 100644
index 00000000..d07481b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetReference extends Google_Model
+{
+ public $target;
+
+ public function setTarget($target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetBackendServiceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetBackendServiceRequest.php
new file mode 100644
index 00000000..b0e7a3f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetBackendServiceRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetSslProxiesSetBackendServiceRequest extends Google_Model
+{
+ public $service;
+
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetProxyHeaderRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetProxyHeaderRequest.php
new file mode 100644
index 00000000..fd4336d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetProxyHeaderRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetSslProxiesSetProxyHeaderRequest extends Google_Model
+{
+ public $proxyHeader;
+
+ public function setProxyHeader($proxyHeader)
+ {
+ $this->proxyHeader = $proxyHeader;
+ }
+ public function getProxyHeader()
+ {
+ return $this->proxyHeader;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetSslCertificatesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetSslCertificatesRequest.php
new file mode 100644
index 00000000..6bb01ee4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxiesSetSslCertificatesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetSslProxiesSetSslCertificatesRequest extends Google_Collection
+{
+ protected $collection_key = 'sslCertificates';
+ public $sslCertificates;
+
+ public function setSslCertificates($sslCertificates)
+ {
+ $this->sslCertificates = $sslCertificates;
+ }
+ public function getSslCertificates()
+ {
+ return $this->sslCertificates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxy.php
new file mode 100644
index 00000000..f61f8bc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxy.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetSslProxy extends Google_Collection
+{
+ protected $collection_key = 'sslCertificates';
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $proxyHeader;
+ public $selfLink;
+ public $service;
+ public $sslCertificates;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProxyHeader($proxyHeader)
+ {
+ $this->proxyHeader = $proxyHeader;
+ }
+ public function getProxyHeader()
+ {
+ return $this->proxyHeader;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+ public function setSslCertificates($sslCertificates)
+ {
+ $this->sslCertificates = $sslCertificates;
+ }
+ public function getSslCertificates()
+ {
+ return $this->sslCertificates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxyList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxyList.php
new file mode 100644
index 00000000..1cbd310d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetSslProxyList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetSslProxyList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetSslProxy';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGateway.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGateway.php
new file mode 100644
index 00000000..08a13f7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGateway.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetVpnGateway extends Google_Collection
+{
+ protected $collection_key = 'tunnels';
+ public $creationTimestamp;
+ public $description;
+ public $forwardingRules;
+ public $id;
+ public $kind;
+ public $name;
+ public $network;
+ public $region;
+ public $selfLink;
+ public $status;
+ public $tunnels;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setForwardingRules($forwardingRules)
+ {
+ $this->forwardingRules = $forwardingRules;
+ }
+ public function getForwardingRules()
+ {
+ return $this->forwardingRules;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTunnels($tunnels)
+ {
+ $this->tunnels = $tunnels;
+ }
+ public function getTunnels()
+ {
+ return $this->tunnels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayAggregatedList.php
new file mode 100644
index 00000000..e85fc8b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetVpnGatewayAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetVpnGatewaysScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayList.php
new file mode 100644
index 00000000..d81e2c1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewayList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetVpnGateway';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedList.php
new file mode 100644
index 00000000..b09c456d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetVpnGatewaysScopedList extends Google_Collection
+{
+ protected $collection_key = 'targetVpnGateways';
+ protected $targetVpnGatewaysType = 'Google_Service_Compute_TargetVpnGateway';
+ protected $targetVpnGatewaysDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setTargetVpnGateways($targetVpnGateways)
+ {
+ $this->targetVpnGateways = $targetVpnGateways;
+ }
+ public function getTargetVpnGateways()
+ {
+ return $this->targetVpnGateways;
+ }
+ public function setWarning(Google_Service_Compute_TargetVpnGatewaysScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarning.php
new file mode 100644
index 00000000..048886fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetVpnGatewaysScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarningData.php
new file mode 100644
index 00000000..fc7b4d7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TargetVpnGatewaysScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TargetVpnGatewaysScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TestFailure.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TestFailure.php
new file mode 100644
index 00000000..266d2b63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/TestFailure.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_TestFailure extends Google_Model
+{
+ public $actualService;
+ public $expectedService;
+ public $host;
+ public $path;
+
+ public function setActualService($actualService)
+ {
+ $this->actualService = $actualService;
+ }
+ public function getActualService()
+ {
+ return $this->actualService;
+ }
+ public function setExpectedService($expectedService)
+ {
+ $this->expectedService = $expectedService;
+ }
+ public function getExpectedService()
+ {
+ return $this->expectedService;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMap.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMap.php
new file mode 100644
index 00000000..9ab743ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMap.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UrlMap extends Google_Collection
+{
+ protected $collection_key = 'tests';
+ public $creationTimestamp;
+ public $defaultService;
+ public $description;
+ public $fingerprint;
+ protected $hostRulesType = 'Google_Service_Compute_HostRule';
+ protected $hostRulesDataType = 'array';
+ public $id;
+ public $kind;
+ public $name;
+ protected $pathMatchersType = 'Google_Service_Compute_PathMatcher';
+ protected $pathMatchersDataType = 'array';
+ public $selfLink;
+ protected $testsType = 'Google_Service_Compute_UrlMapTest';
+ protected $testsDataType = 'array';
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDefaultService($defaultService)
+ {
+ $this->defaultService = $defaultService;
+ }
+ public function getDefaultService()
+ {
+ return $this->defaultService;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setHostRules($hostRules)
+ {
+ $this->hostRules = $hostRules;
+ }
+ public function getHostRules()
+ {
+ return $this->hostRules;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPathMatchers($pathMatchers)
+ {
+ $this->pathMatchers = $pathMatchers;
+ }
+ public function getPathMatchers()
+ {
+ return $this->pathMatchers;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTests($tests)
+ {
+ $this->tests = $tests;
+ }
+ public function getTests()
+ {
+ return $this->tests;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapList.php
new file mode 100644
index 00000000..c3e90e18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UrlMapList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_UrlMap';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapReference.php
new file mode 100644
index 00000000..99f5e30a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UrlMapReference extends Google_Model
+{
+ public $urlMap;
+
+ public function setUrlMap($urlMap)
+ {
+ $this->urlMap = $urlMap;
+ }
+ public function getUrlMap()
+ {
+ return $this->urlMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapTest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapTest.php
new file mode 100644
index 00000000..2d2479e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapTest.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UrlMapTest extends Google_Model
+{
+ public $description;
+ public $host;
+ public $path;
+ public $service;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapValidationResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapValidationResult.php
new file mode 100644
index 00000000..6a0b5d34
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapValidationResult.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UrlMapValidationResult extends Google_Collection
+{
+ protected $collection_key = 'testFailures';
+ public $loadErrors;
+ public $loadSucceeded;
+ protected $testFailuresType = 'Google_Service_Compute_TestFailure';
+ protected $testFailuresDataType = 'array';
+ public $testPassed;
+
+ public function setLoadErrors($loadErrors)
+ {
+ $this->loadErrors = $loadErrors;
+ }
+ public function getLoadErrors()
+ {
+ return $this->loadErrors;
+ }
+ public function setLoadSucceeded($loadSucceeded)
+ {
+ $this->loadSucceeded = $loadSucceeded;
+ }
+ public function getLoadSucceeded()
+ {
+ return $this->loadSucceeded;
+ }
+ public function setTestFailures($testFailures)
+ {
+ $this->testFailures = $testFailures;
+ }
+ public function getTestFailures()
+ {
+ return $this->testFailures;
+ }
+ public function setTestPassed($testPassed)
+ {
+ $this->testPassed = $testPassed;
+ }
+ public function getTestPassed()
+ {
+ return $this->testPassed;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateRequest.php
new file mode 100644
index 00000000..5e9b6084
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model
+{
+ protected $resourceType = 'Google_Service_Compute_UrlMap';
+ protected $resourceDataType = '';
+
+ public function setResource(Google_Service_Compute_UrlMap $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateResponse.php
new file mode 100644
index 00000000..8da23749
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UrlMapsValidateResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model
+{
+ protected $resultType = 'Google_Service_Compute_UrlMapValidationResult';
+ protected $resultDataType = '';
+
+ public function setResult(Google_Service_Compute_UrlMapValidationResult $result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UsageExportLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UsageExportLocation.php
new file mode 100644
index 00000000..13c7d580
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/UsageExportLocation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_UsageExportLocation extends Google_Model
+{
+ public $bucketName;
+ public $reportNamePrefix;
+
+ public function setBucketName($bucketName)
+ {
+ $this->bucketName = $bucketName;
+ }
+ public function getBucketName()
+ {
+ return $this->bucketName;
+ }
+ public function setReportNamePrefix($reportNamePrefix)
+ {
+ $this->reportNamePrefix = $reportNamePrefix;
+ }
+ public function getReportNamePrefix()
+ {
+ return $this->reportNamePrefix;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnel.php
new file mode 100644
index 00000000..6ac775bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnel.php
@@ -0,0 +1,175 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_VpnTunnel extends Google_Collection
+{
+ protected $collection_key = 'remoteTrafficSelector';
+ public $creationTimestamp;
+ public $description;
+ public $detailedStatus;
+ public $id;
+ public $ikeVersion;
+ public $kind;
+ public $localTrafficSelector;
+ public $name;
+ public $peerIp;
+ public $region;
+ public $remoteTrafficSelector;
+ public $router;
+ public $selfLink;
+ public $sharedSecret;
+ public $sharedSecretHash;
+ public $status;
+ public $targetVpnGateway;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDetailedStatus($detailedStatus)
+ {
+ $this->detailedStatus = $detailedStatus;
+ }
+ public function getDetailedStatus()
+ {
+ return $this->detailedStatus;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIkeVersion($ikeVersion)
+ {
+ $this->ikeVersion = $ikeVersion;
+ }
+ public function getIkeVersion()
+ {
+ return $this->ikeVersion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocalTrafficSelector($localTrafficSelector)
+ {
+ $this->localTrafficSelector = $localTrafficSelector;
+ }
+ public function getLocalTrafficSelector()
+ {
+ return $this->localTrafficSelector;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPeerIp($peerIp)
+ {
+ $this->peerIp = $peerIp;
+ }
+ public function getPeerIp()
+ {
+ return $this->peerIp;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setRemoteTrafficSelector($remoteTrafficSelector)
+ {
+ $this->remoteTrafficSelector = $remoteTrafficSelector;
+ }
+ public function getRemoteTrafficSelector()
+ {
+ return $this->remoteTrafficSelector;
+ }
+ public function setRouter($router)
+ {
+ $this->router = $router;
+ }
+ public function getRouter()
+ {
+ return $this->router;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSharedSecret($sharedSecret)
+ {
+ $this->sharedSecret = $sharedSecret;
+ }
+ public function getSharedSecret()
+ {
+ return $this->sharedSecret;
+ }
+ public function setSharedSecretHash($sharedSecretHash)
+ {
+ $this->sharedSecretHash = $sharedSecretHash;
+ }
+ public function getSharedSecretHash()
+ {
+ return $this->sharedSecretHash;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTargetVpnGateway($targetVpnGateway)
+ {
+ $this->targetVpnGateway = $targetVpnGateway;
+ }
+ public function getTargetVpnGateway()
+ {
+ return $this->targetVpnGateway;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelAggregatedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelAggregatedList.php
new file mode 100644
index 00000000..999c68e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelAggregatedList.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_VpnTunnelAggregatedList extends Google_Model
+{
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_VpnTunnelsScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelList.php
new file mode 100644
index 00000000..ce35247f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_VpnTunnelList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_VpnTunnel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedList.php
new file mode 100644
index 00000000..2f961f7a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedList.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_VpnTunnelsScopedList extends Google_Collection
+{
+ protected $collection_key = 'vpnTunnels';
+ protected $vpnTunnelsType = 'Google_Service_Compute_VpnTunnel';
+ protected $vpnTunnelsDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_VpnTunnelsScopedListWarning';
+ protected $warningDataType = '';
+
+ public function setVpnTunnels($vpnTunnels)
+ {
+ $this->vpnTunnels = $vpnTunnels;
+ }
+ public function getVpnTunnels()
+ {
+ return $this->vpnTunnels;
+ }
+ public function setWarning(Google_Service_Compute_VpnTunnelsScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarning.php
new file mode 100644
index 00000000..aaae80a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarning.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_VpnTunnelsScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Compute_VpnTunnelsScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarningData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarningData.php
new file mode 100644
index 00000000..bee2d992
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/VpnTunnelsScopedListWarningData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_VpnTunnelsScopedListWarningData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Zone.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Zone.php
new file mode 100644
index 00000000..744e13ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/Zone.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_Zone extends Google_Model
+{
+ public $creationTimestamp;
+ protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $deprecatedDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $region;
+ public $selfLink;
+ public $status;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
+ {
+ $this->deprecated = $deprecated;
+ }
+ public function getDeprecated()
+ {
+ return $this->deprecated;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ZoneList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ZoneList.php
new file mode 100644
index 00000000..0cc44199
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Compute/ZoneList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Compute_ZoneList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_Zone';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys.php
new file mode 100644
index 00000000..bcf53834
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys.php
@@ -0,0 +1,210 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ConsumerSurveys (v2).
+ *
+ * <p>
+ * Creates and conducts surveys, lists the surveys that an authenticated user
+ * owns, and retrieves survey results and information about specified surveys.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ConsumerSurveys extends Google_Service
+{
+ /** View and edit your surveys and results. */
+ const CONSUMERSURVEYS =
+ "https://www.googleapis.com/auth/consumersurveys";
+ /** View the results for your surveys. */
+ const CONSUMERSURVEYS_READONLY =
+ "https://www.googleapis.com/auth/consumersurveys.readonly";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+
+ public $mobileapppanels;
+ public $results;
+ public $surveys;
+
+ /**
+ * Constructs the internal representation of the ConsumerSurveys service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'consumersurveys/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'consumersurveys';
+
+ $this->mobileapppanels = new Google_Service_ConsumerSurveys_Resource_Mobileapppanels(
+ $this,
+ $this->serviceName,
+ 'mobileapppanels',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'mobileAppPanels/{panelId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'panelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'mobileAppPanels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'mobileAppPanels/{panelId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'panelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->results = new Google_Service_ConsumerSurveys_Resource_Results(
+ $this,
+ $this->serviceName,
+ 'results',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'surveys/{surveyUrlId}/results',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->surveys = new Google_Service_ConsumerSurveys_Resource_Surveys(
+ $this,
+ $this->serviceName,
+ 'surveys',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'surveys/{surveyUrlId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'surveys/{surveyUrlId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'surveys',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'surveys',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'start' => array(
+ 'path' => 'surveys/{resourceId}/start',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'stop' => array(
+ 'path' => 'surveys/{resourceId}/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'surveys/{surveyUrlId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/FieldMask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/FieldMask.php
new file mode 100644
index 00000000..bad9f171
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/FieldMask.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_FieldMask extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ protected $fieldsType = 'Google_Service_ConsumerSurveys_FieldMask';
+ protected $fieldsDataType = 'array';
+ public $id;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanel.php
new file mode 100644
index 00000000..5e99b768
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanel.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_MobileAppPanel extends Google_Collection
+{
+ protected $collection_key = 'owners';
+ public $country;
+ public $isPublicPanel;
+ public $language;
+ public $mobileAppPanelId;
+ public $name;
+ public $owners;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setIsPublicPanel($isPublicPanel)
+ {
+ $this->isPublicPanel = $isPublicPanel;
+ }
+ public function getIsPublicPanel()
+ {
+ return $this->isPublicPanel;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setMobileAppPanelId($mobileAppPanelId)
+ {
+ $this->mobileAppPanelId = $mobileAppPanelId;
+ }
+ public function getMobileAppPanelId()
+ {
+ return $this->mobileAppPanelId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwners($owners)
+ {
+ $this->owners = $owners;
+ }
+ public function getOwners()
+ {
+ return $this->owners;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanelsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanelsListResponse.php
new file mode 100644
index 00000000..3bbb595e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/MobileAppPanelsListResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_MobileAppPanelsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ protected $pageInfoType = 'Google_Service_ConsumerSurveys_PageInfo';
+ protected $pageInfoDataType = '';
+ public $requestId;
+ protected $resourcesType = 'Google_Service_ConsumerSurveys_MobileAppPanel';
+ protected $resourcesDataType = 'array';
+ protected $tokenPaginationType = 'Google_Service_ConsumerSurveys_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setPageInfo(Google_Service_ConsumerSurveys_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+ public function setTokenPagination(Google_Service_ConsumerSurveys_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/PageInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/PageInfo.php
new file mode 100644
index 00000000..1e3c526a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/PageInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_PageInfo extends Google_Model
+{
+ public $resultPerPage;
+ public $startIndex;
+ public $totalResults;
+
+ public function setResultPerPage($resultPerPage)
+ {
+ $this->resultPerPage = $resultPerPage;
+ }
+ public function getResultPerPage()
+ {
+ return $this->resultPerPage;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Mobileapppanels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Mobileapppanels.php
new file mode 100644
index 00000000..bc6e07f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Mobileapppanels.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mobileapppanels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $consumersurveysService = new Google_Service_ConsumerSurveys(...);
+ * $mobileapppanels = $consumersurveysService->mobileapppanels;
+ * </code>
+ */
+class Google_Service_ConsumerSurveys_Resource_Mobileapppanels extends Google_Service_Resource
+{
+ /**
+ * Retrieves a MobileAppPanel that is available to the authenticated user.
+ * (mobileapppanels.get)
+ *
+ * @param string $panelId External URL ID for the panel.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_MobileAppPanel
+ */
+ public function get($panelId, $optParams = array())
+ {
+ $params = array('panelId' => $panelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ConsumerSurveys_MobileAppPanel");
+ }
+ /**
+ * Lists the MobileAppPanels available to the authenticated user.
+ * (mobileapppanels.listMobileapppanels)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults
+ * @opt_param string startIndex
+ * @opt_param string token
+ * @return Google_Service_ConsumerSurveys_MobileAppPanelsListResponse
+ */
+ public function listMobileapppanels($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ConsumerSurveys_MobileAppPanelsListResponse");
+ }
+ /**
+ * Updates a MobileAppPanel. Currently the only property that can be updated is
+ * the owners property. (mobileapppanels.update)
+ *
+ * @param string $panelId External URL ID for the panel.
+ * @param Google_Service_ConsumerSurveys_MobileAppPanel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_MobileAppPanel
+ */
+ public function update($panelId, Google_Service_ConsumerSurveys_MobileAppPanel $postBody, $optParams = array())
+ {
+ $params = array('panelId' => $panelId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ConsumerSurveys_MobileAppPanel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Results.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Results.php
new file mode 100644
index 00000000..2060052f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Results.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "results" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $consumersurveysService = new Google_Service_ConsumerSurveys(...);
+ * $results = $consumersurveysService->results;
+ * </code>
+ */
+class Google_Service_ConsumerSurveys_Resource_Results extends Google_Service_Resource
+{
+ /**
+ * Retrieves any survey results that have been produced so far. Results are
+ * formatted as an Excel file. You must add "?alt=media" to the URL as an
+ * argument to get results. (results.get)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_SurveyResults
+ */
+ public function get($surveyUrlId, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ConsumerSurveys_SurveyResults");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Surveys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Surveys.php
new file mode 100644
index 00000000..2a14092c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Resource/Surveys.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "surveys" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $consumersurveysService = new Google_Service_ConsumerSurveys(...);
+ * $surveys = $consumersurveysService->surveys;
+ * </code>
+ */
+class Google_Service_ConsumerSurveys_Resource_Surveys extends Google_Service_Resource
+{
+ /**
+ * Removes a survey from view in all user GET requests. (surveys.delete)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_SurveysDeleteResponse
+ */
+ public function delete($surveyUrlId, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_ConsumerSurveys_SurveysDeleteResponse");
+ }
+ /**
+ * Retrieves information about the specified survey. (surveys.get)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_Survey
+ */
+ public function get($surveyUrlId, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ConsumerSurveys_Survey");
+ }
+ /**
+ * Creates a survey. (surveys.insert)
+ *
+ * @param Google_Service_ConsumerSurveys_Survey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_Survey
+ */
+ public function insert(Google_Service_ConsumerSurveys_Survey $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ConsumerSurveys_Survey");
+ }
+ /**
+ * Lists the surveys owned by the authenticated user. (surveys.listSurveys)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults
+ * @opt_param string startIndex
+ * @opt_param string token
+ * @return Google_Service_ConsumerSurveys_SurveysListResponse
+ */
+ public function listSurveys($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ConsumerSurveys_SurveysListResponse");
+ }
+ /**
+ * Begins running a survey. (surveys.start)
+ *
+ * @param string $resourceId
+ * @param Google_Service_ConsumerSurveys_SurveysStartRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_SurveysStartResponse
+ */
+ public function start($resourceId, Google_Service_ConsumerSurveys_SurveysStartRequest $postBody, $optParams = array())
+ {
+ $params = array('resourceId' => $resourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('start', array($params), "Google_Service_ConsumerSurveys_SurveysStartResponse");
+ }
+ /**
+ * Stops a running survey. (surveys.stop)
+ *
+ * @param string $resourceId
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_SurveysStopResponse
+ */
+ public function stop($resourceId, $optParams = array())
+ {
+ $params = array('resourceId' => $resourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params), "Google_Service_ConsumerSurveys_SurveysStopResponse");
+ }
+ /**
+ * Updates a survey. Currently the only property that can be updated is the
+ * owners property. (surveys.update)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param Google_Service_ConsumerSurveys_Survey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ConsumerSurveys_Survey
+ */
+ public function update($surveyUrlId, Google_Service_ConsumerSurveys_Survey $postBody, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ConsumerSurveys_Survey");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsGetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsGetRequest.php
new file mode 100644
index 00000000..6016c193
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsGetRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_ResultsGetRequest extends Google_Model
+{
+ protected $resultMaskType = 'Google_Service_ConsumerSurveys_ResultsMask';
+ protected $resultMaskDataType = '';
+
+ public function setResultMask(Google_Service_ConsumerSurveys_ResultsMask $resultMask)
+ {
+ $this->resultMask = $resultMask;
+ }
+ public function getResultMask()
+ {
+ return $this->resultMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsMask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsMask.php
new file mode 100644
index 00000000..333d934e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/ResultsMask.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_ResultsMask extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ protected $fieldsType = 'Google_Service_ConsumerSurveys_FieldMask';
+ protected $fieldsDataType = 'array';
+ public $projection;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setProjection($projection)
+ {
+ $this->projection = $projection;
+ }
+ public function getProjection()
+ {
+ return $this->projection;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Survey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Survey.php
new file mode 100644
index 00000000..7b24d69e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/Survey.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_Survey extends Google_Collection
+{
+ protected $collection_key = 'questions';
+ protected $audienceType = 'Google_Service_ConsumerSurveys_SurveyAudience';
+ protected $audienceDataType = '';
+ protected $costType = 'Google_Service_ConsumerSurveys_SurveyCost';
+ protected $costDataType = '';
+ public $customerData;
+ public $description;
+ public $owners;
+ protected $questionsType = 'Google_Service_ConsumerSurveys_SurveyQuestion';
+ protected $questionsDataType = 'array';
+ protected $rejectionReasonType = 'Google_Service_ConsumerSurveys_SurveyRejection';
+ protected $rejectionReasonDataType = '';
+ public $state;
+ public $surveyUrlId;
+ public $title;
+ public $wantedResponseCount;
+
+ public function setAudience(Google_Service_ConsumerSurveys_SurveyAudience $audience)
+ {
+ $this->audience = $audience;
+ }
+ public function getAudience()
+ {
+ return $this->audience;
+ }
+ public function setCost(Google_Service_ConsumerSurveys_SurveyCost $cost)
+ {
+ $this->cost = $cost;
+ }
+ public function getCost()
+ {
+ return $this->cost;
+ }
+ public function setCustomerData($customerData)
+ {
+ $this->customerData = $customerData;
+ }
+ public function getCustomerData()
+ {
+ return $this->customerData;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setOwners($owners)
+ {
+ $this->owners = $owners;
+ }
+ public function getOwners()
+ {
+ return $this->owners;
+ }
+ public function setQuestions($questions)
+ {
+ $this->questions = $questions;
+ }
+ public function getQuestions()
+ {
+ return $this->questions;
+ }
+ public function setRejectionReason(Google_Service_ConsumerSurveys_SurveyRejection $rejectionReason)
+ {
+ $this->rejectionReason = $rejectionReason;
+ }
+ public function getRejectionReason()
+ {
+ return $this->rejectionReason;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setSurveyUrlId($surveyUrlId)
+ {
+ $this->surveyUrlId = $surveyUrlId;
+ }
+ public function getSurveyUrlId()
+ {
+ return $this->surveyUrlId;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setWantedResponseCount($wantedResponseCount)
+ {
+ $this->wantedResponseCount = $wantedResponseCount;
+ }
+ public function getWantedResponseCount()
+ {
+ return $this->wantedResponseCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyAudience.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyAudience.php
new file mode 100644
index 00000000..9ae7e0fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyAudience.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveyAudience extends Google_Collection
+{
+ protected $collection_key = 'languages';
+ public $ages;
+ public $country;
+ public $countrySubdivision;
+ public $gender;
+ public $languages;
+ public $mobileAppPanelId;
+ public $populationSource;
+
+ public function setAges($ages)
+ {
+ $this->ages = $ages;
+ }
+ public function getAges()
+ {
+ return $this->ages;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setCountrySubdivision($countrySubdivision)
+ {
+ $this->countrySubdivision = $countrySubdivision;
+ }
+ public function getCountrySubdivision()
+ {
+ return $this->countrySubdivision;
+ }
+ public function setGender($gender)
+ {
+ $this->gender = $gender;
+ }
+ public function getGender()
+ {
+ return $this->gender;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+ public function setMobileAppPanelId($mobileAppPanelId)
+ {
+ $this->mobileAppPanelId = $mobileAppPanelId;
+ }
+ public function getMobileAppPanelId()
+ {
+ return $this->mobileAppPanelId;
+ }
+ public function setPopulationSource($populationSource)
+ {
+ $this->populationSource = $populationSource;
+ }
+ public function getPopulationSource()
+ {
+ return $this->populationSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyCost.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyCost.php
new file mode 100644
index 00000000..686a8ace
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyCost.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveyCost extends Google_Model
+{
+ public $costPerResponseNanos;
+ public $currencyCode;
+ public $maxCostPerResponseNanos;
+ public $nanos;
+
+ public function setCostPerResponseNanos($costPerResponseNanos)
+ {
+ $this->costPerResponseNanos = $costPerResponseNanos;
+ }
+ public function getCostPerResponseNanos()
+ {
+ return $this->costPerResponseNanos;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setMaxCostPerResponseNanos($maxCostPerResponseNanos)
+ {
+ $this->maxCostPerResponseNanos = $maxCostPerResponseNanos;
+ }
+ public function getMaxCostPerResponseNanos()
+ {
+ return $this->maxCostPerResponseNanos;
+ }
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestion.php
new file mode 100644
index 00000000..976ac510
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestion.php
@@ -0,0 +1,185 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveyQuestion extends Google_Collection
+{
+ protected $collection_key = 'thresholdAnswers';
+ public $answerOrder;
+ public $answers;
+ public $hasOther;
+ public $highValueLabel;
+ protected $imagesType = 'Google_Service_ConsumerSurveys_SurveyQuestionImage';
+ protected $imagesDataType = 'array';
+ public $lastAnswerPositionPinned;
+ public $lowValueLabel;
+ public $mustPickSuggestion;
+ public $numStars;
+ public $openTextPlaceholder;
+ public $openTextSuggestions;
+ public $question;
+ public $sentimentText;
+ public $singleLineResponse;
+ public $thresholdAnswers;
+ public $type;
+ public $unitOfMeasurementLabel;
+ public $videoId;
+
+ public function setAnswerOrder($answerOrder)
+ {
+ $this->answerOrder = $answerOrder;
+ }
+ public function getAnswerOrder()
+ {
+ return $this->answerOrder;
+ }
+ public function setAnswers($answers)
+ {
+ $this->answers = $answers;
+ }
+ public function getAnswers()
+ {
+ return $this->answers;
+ }
+ public function setHasOther($hasOther)
+ {
+ $this->hasOther = $hasOther;
+ }
+ public function getHasOther()
+ {
+ return $this->hasOther;
+ }
+ public function setHighValueLabel($highValueLabel)
+ {
+ $this->highValueLabel = $highValueLabel;
+ }
+ public function getHighValueLabel()
+ {
+ return $this->highValueLabel;
+ }
+ public function setImages($images)
+ {
+ $this->images = $images;
+ }
+ public function getImages()
+ {
+ return $this->images;
+ }
+ public function setLastAnswerPositionPinned($lastAnswerPositionPinned)
+ {
+ $this->lastAnswerPositionPinned = $lastAnswerPositionPinned;
+ }
+ public function getLastAnswerPositionPinned()
+ {
+ return $this->lastAnswerPositionPinned;
+ }
+ public function setLowValueLabel($lowValueLabel)
+ {
+ $this->lowValueLabel = $lowValueLabel;
+ }
+ public function getLowValueLabel()
+ {
+ return $this->lowValueLabel;
+ }
+ public function setMustPickSuggestion($mustPickSuggestion)
+ {
+ $this->mustPickSuggestion = $mustPickSuggestion;
+ }
+ public function getMustPickSuggestion()
+ {
+ return $this->mustPickSuggestion;
+ }
+ public function setNumStars($numStars)
+ {
+ $this->numStars = $numStars;
+ }
+ public function getNumStars()
+ {
+ return $this->numStars;
+ }
+ public function setOpenTextPlaceholder($openTextPlaceholder)
+ {
+ $this->openTextPlaceholder = $openTextPlaceholder;
+ }
+ public function getOpenTextPlaceholder()
+ {
+ return $this->openTextPlaceholder;
+ }
+ public function setOpenTextSuggestions($openTextSuggestions)
+ {
+ $this->openTextSuggestions = $openTextSuggestions;
+ }
+ public function getOpenTextSuggestions()
+ {
+ return $this->openTextSuggestions;
+ }
+ public function setQuestion($question)
+ {
+ $this->question = $question;
+ }
+ public function getQuestion()
+ {
+ return $this->question;
+ }
+ public function setSentimentText($sentimentText)
+ {
+ $this->sentimentText = $sentimentText;
+ }
+ public function getSentimentText()
+ {
+ return $this->sentimentText;
+ }
+ public function setSingleLineResponse($singleLineResponse)
+ {
+ $this->singleLineResponse = $singleLineResponse;
+ }
+ public function getSingleLineResponse()
+ {
+ return $this->singleLineResponse;
+ }
+ public function setThresholdAnswers($thresholdAnswers)
+ {
+ $this->thresholdAnswers = $thresholdAnswers;
+ }
+ public function getThresholdAnswers()
+ {
+ return $this->thresholdAnswers;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnitOfMeasurementLabel($unitOfMeasurementLabel)
+ {
+ $this->unitOfMeasurementLabel = $unitOfMeasurementLabel;
+ }
+ public function getUnitOfMeasurementLabel()
+ {
+ return $this->unitOfMeasurementLabel;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestionImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestionImage.php
new file mode 100644
index 00000000..d065e7b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyQuestionImage.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveyQuestionImage extends Google_Model
+{
+ public $altText;
+ public $data;
+ public $url;
+
+ public function setAltText($altText)
+ {
+ $this->altText = $altText;
+ }
+ public function getAltText()
+ {
+ return $this->altText;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyRejection.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyRejection.php
new file mode 100644
index 00000000..de95eab8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyRejection.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveyRejection extends Google_Model
+{
+ public $explanation;
+ public $type;
+
+ public function setExplanation($explanation)
+ {
+ $this->explanation = $explanation;
+ }
+ public function getExplanation()
+ {
+ return $this->explanation;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyResults.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyResults.php
new file mode 100644
index 00000000..d69a9cc4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveyResults.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveyResults extends Google_Model
+{
+ public $status;
+ public $surveyUrlId;
+
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSurveyUrlId($surveyUrlId)
+ {
+ $this->surveyUrlId = $surveyUrlId;
+ }
+ public function getSurveyUrlId()
+ {
+ return $this->surveyUrlId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysDeleteResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysDeleteResponse.php
new file mode 100644
index 00000000..dc0358a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysDeleteResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveysDeleteResponse extends Google_Model
+{
+ public $requestId;
+
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysListResponse.php
new file mode 100644
index 00000000..e51ac29b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysListResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveysListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ protected $pageInfoType = 'Google_Service_ConsumerSurveys_PageInfo';
+ protected $pageInfoDataType = '';
+ public $requestId;
+ protected $resourcesType = 'Google_Service_ConsumerSurveys_Survey';
+ protected $resourcesDataType = 'array';
+ protected $tokenPaginationType = 'Google_Service_ConsumerSurveys_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setPageInfo(Google_Service_ConsumerSurveys_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+ public function setTokenPagination(Google_Service_ConsumerSurveys_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartRequest.php
new file mode 100644
index 00000000..430de935
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveysStartRequest extends Google_Model
+{
+ public $maxCostPerResponseNanos;
+
+ public function setMaxCostPerResponseNanos($maxCostPerResponseNanos)
+ {
+ $this->maxCostPerResponseNanos = $maxCostPerResponseNanos;
+ }
+ public function getMaxCostPerResponseNanos()
+ {
+ return $this->maxCostPerResponseNanos;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartResponse.php
new file mode 100644
index 00000000..ac97933b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStartResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveysStartResponse extends Google_Model
+{
+ public $requestId;
+ protected $resourceType = 'Google_Service_ConsumerSurveys_Survey';
+ protected $resourceDataType = '';
+
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResource(Google_Service_ConsumerSurveys_Survey $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStopResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStopResponse.php
new file mode 100644
index 00000000..575c385f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/SurveysStopResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_SurveysStopResponse extends Google_Model
+{
+ public $requestId;
+ protected $resourceType = 'Google_Service_ConsumerSurveys_Survey';
+ protected $resourceDataType = '';
+
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResource(Google_Service_ConsumerSurveys_Survey $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/TokenPagination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/TokenPagination.php
new file mode 100644
index 00000000..77b58605
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ConsumerSurveys/TokenPagination.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ConsumerSurveys_TokenPagination extends Google_Model
+{
+ public $nextPageToken;
+ public $previousPageToken;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPreviousPageToken($previousPageToken)
+ {
+ $this->previousPageToken = $previousPageToken;
+ }
+ public function getPreviousPageToken()
+ {
+ return $this->previousPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container.php
new file mode 100644
index 00000000..68aba51d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container.php
@@ -0,0 +1,397 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Container (v1).
+ *
+ * <p>
+ * Builds and manages clusters that run container-based applications, powered by
+ * open source Kubernetes technology.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/container-engine/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Container extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects_zones;
+ public $projects_zones_clusters;
+ public $projects_zones_clusters_nodePools;
+ public $projects_zones_operations;
+
+ /**
+ * Constructs the internal representation of the Container service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://container.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'container';
+
+ $this->projects_zones = new Google_Service_Container_Resource_ProjectsZones(
+ $this,
+ $this->serviceName,
+ 'zones',
+ array(
+ 'methods' => array(
+ 'getServerconfig' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/serverconfig',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_zones_clusters = new Google_Service_Container_Resource_ProjectsZonesClusters(
+ $this,
+ $this->serviceName,
+ 'clusters',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_zones_clusters_nodePools = new Google_Service_Container_Resource_ProjectsZonesClustersNodePools(
+ $this,
+ $this->serviceName,
+ 'nodePools',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'nodePoolId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'nodePoolId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'rollback' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'nodePoolId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setManagement' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'nodePoolId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_zones_operations = new Google_Service_Container_Resource_ProjectsZonesOperations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/zones/{zone}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AddonsConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AddonsConfig.php
new file mode 100644
index 00000000..4954faf4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AddonsConfig.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_AddonsConfig extends Google_Model
+{
+ protected $horizontalPodAutoscalingType = 'Google_Service_Container_HorizontalPodAutoscaling';
+ protected $horizontalPodAutoscalingDataType = '';
+ protected $httpLoadBalancingType = 'Google_Service_Container_HttpLoadBalancing';
+ protected $httpLoadBalancingDataType = '';
+
+ public function setHorizontalPodAutoscaling(Google_Service_Container_HorizontalPodAutoscaling $horizontalPodAutoscaling)
+ {
+ $this->horizontalPodAutoscaling = $horizontalPodAutoscaling;
+ }
+ public function getHorizontalPodAutoscaling()
+ {
+ return $this->horizontalPodAutoscaling;
+ }
+ public function setHttpLoadBalancing(Google_Service_Container_HttpLoadBalancing $httpLoadBalancing)
+ {
+ $this->httpLoadBalancing = $httpLoadBalancing;
+ }
+ public function getHttpLoadBalancing()
+ {
+ return $this->httpLoadBalancing;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AutoUpgradeOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AutoUpgradeOptions.php
new file mode 100644
index 00000000..a65f5408
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/AutoUpgradeOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_AutoUpgradeOptions extends Google_Model
+{
+ public $autoUpgradeStartTime;
+ public $description;
+
+ public function setAutoUpgradeStartTime($autoUpgradeStartTime)
+ {
+ $this->autoUpgradeStartTime = $autoUpgradeStartTime;
+ }
+ public function getAutoUpgradeStartTime()
+ {
+ return $this->autoUpgradeStartTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CancelOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CancelOperationRequest.php
new file mode 100644
index 00000000..27d7732d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CancelOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_CancelOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Cluster.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Cluster.php
new file mode 100644
index 00000000..cd3776c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Cluster.php
@@ -0,0 +1,278 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_Cluster extends Google_Collection
+{
+ protected $collection_key = 'nodePools';
+ protected $addonsConfigType = 'Google_Service_Container_AddonsConfig';
+ protected $addonsConfigDataType = '';
+ public $clusterIpv4Cidr;
+ public $createTime;
+ public $currentMasterVersion;
+ public $currentNodeCount;
+ public $currentNodeVersion;
+ public $description;
+ public $enableKubernetesAlpha;
+ public $endpoint;
+ public $expireTime;
+ public $initialClusterVersion;
+ public $initialNodeCount;
+ public $instanceGroupUrls;
+ public $locations;
+ public $loggingService;
+ protected $masterAuthType = 'Google_Service_Container_MasterAuth';
+ protected $masterAuthDataType = '';
+ public $monitoringService;
+ public $name;
+ public $network;
+ protected $nodeConfigType = 'Google_Service_Container_NodeConfig';
+ protected $nodeConfigDataType = '';
+ public $nodeIpv4CidrSize;
+ protected $nodePoolsType = 'Google_Service_Container_NodePool';
+ protected $nodePoolsDataType = 'array';
+ public $selfLink;
+ public $servicesIpv4Cidr;
+ public $status;
+ public $statusMessage;
+ public $subnetwork;
+ public $zone;
+
+ public function setAddonsConfig(Google_Service_Container_AddonsConfig $addonsConfig)
+ {
+ $this->addonsConfig = $addonsConfig;
+ }
+ public function getAddonsConfig()
+ {
+ return $this->addonsConfig;
+ }
+ public function setClusterIpv4Cidr($clusterIpv4Cidr)
+ {
+ $this->clusterIpv4Cidr = $clusterIpv4Cidr;
+ }
+ public function getClusterIpv4Cidr()
+ {
+ return $this->clusterIpv4Cidr;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setCurrentMasterVersion($currentMasterVersion)
+ {
+ $this->currentMasterVersion = $currentMasterVersion;
+ }
+ public function getCurrentMasterVersion()
+ {
+ return $this->currentMasterVersion;
+ }
+ public function setCurrentNodeCount($currentNodeCount)
+ {
+ $this->currentNodeCount = $currentNodeCount;
+ }
+ public function getCurrentNodeCount()
+ {
+ return $this->currentNodeCount;
+ }
+ public function setCurrentNodeVersion($currentNodeVersion)
+ {
+ $this->currentNodeVersion = $currentNodeVersion;
+ }
+ public function getCurrentNodeVersion()
+ {
+ return $this->currentNodeVersion;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEnableKubernetesAlpha($enableKubernetesAlpha)
+ {
+ $this->enableKubernetesAlpha = $enableKubernetesAlpha;
+ }
+ public function getEnableKubernetesAlpha()
+ {
+ return $this->enableKubernetesAlpha;
+ }
+ public function setEndpoint($endpoint)
+ {
+ $this->endpoint = $endpoint;
+ }
+ public function getEndpoint()
+ {
+ return $this->endpoint;
+ }
+ public function setExpireTime($expireTime)
+ {
+ $this->expireTime = $expireTime;
+ }
+ public function getExpireTime()
+ {
+ return $this->expireTime;
+ }
+ public function setInitialClusterVersion($initialClusterVersion)
+ {
+ $this->initialClusterVersion = $initialClusterVersion;
+ }
+ public function getInitialClusterVersion()
+ {
+ return $this->initialClusterVersion;
+ }
+ public function setInitialNodeCount($initialNodeCount)
+ {
+ $this->initialNodeCount = $initialNodeCount;
+ }
+ public function getInitialNodeCount()
+ {
+ return $this->initialNodeCount;
+ }
+ public function setInstanceGroupUrls($instanceGroupUrls)
+ {
+ $this->instanceGroupUrls = $instanceGroupUrls;
+ }
+ public function getInstanceGroupUrls()
+ {
+ return $this->instanceGroupUrls;
+ }
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setLoggingService($loggingService)
+ {
+ $this->loggingService = $loggingService;
+ }
+ public function getLoggingService()
+ {
+ return $this->loggingService;
+ }
+ public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth)
+ {
+ $this->masterAuth = $masterAuth;
+ }
+ public function getMasterAuth()
+ {
+ return $this->masterAuth;
+ }
+ public function setMonitoringService($monitoringService)
+ {
+ $this->monitoringService = $monitoringService;
+ }
+ public function getMonitoringService()
+ {
+ return $this->monitoringService;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig)
+ {
+ $this->nodeConfig = $nodeConfig;
+ }
+ public function getNodeConfig()
+ {
+ return $this->nodeConfig;
+ }
+ public function setNodeIpv4CidrSize($nodeIpv4CidrSize)
+ {
+ $this->nodeIpv4CidrSize = $nodeIpv4CidrSize;
+ }
+ public function getNodeIpv4CidrSize()
+ {
+ return $this->nodeIpv4CidrSize;
+ }
+ public function setNodePools($nodePools)
+ {
+ $this->nodePools = $nodePools;
+ }
+ public function getNodePools()
+ {
+ return $this->nodePools;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setServicesIpv4Cidr($servicesIpv4Cidr)
+ {
+ $this->servicesIpv4Cidr = $servicesIpv4Cidr;
+ }
+ public function getServicesIpv4Cidr()
+ {
+ return $this->servicesIpv4Cidr;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setSubnetwork($subnetwork)
+ {
+ $this->subnetwork = $subnetwork;
+ }
+ public function getSubnetwork()
+ {
+ return $this->subnetwork;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ClusterUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ClusterUpdate.php
new file mode 100644
index 00000000..ce55c078
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ClusterUpdate.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_ClusterUpdate extends Google_Collection
+{
+ protected $collection_key = 'desiredLocations';
+ protected $desiredAddonsConfigType = 'Google_Service_Container_AddonsConfig';
+ protected $desiredAddonsConfigDataType = '';
+ public $desiredImageType;
+ public $desiredLocations;
+ public $desiredMasterVersion;
+ public $desiredMonitoringService;
+ protected $desiredNodePoolAutoscalingType = 'Google_Service_Container_NodePoolAutoscaling';
+ protected $desiredNodePoolAutoscalingDataType = '';
+ public $desiredNodePoolId;
+ public $desiredNodeVersion;
+
+ public function setDesiredAddonsConfig(Google_Service_Container_AddonsConfig $desiredAddonsConfig)
+ {
+ $this->desiredAddonsConfig = $desiredAddonsConfig;
+ }
+ public function getDesiredAddonsConfig()
+ {
+ return $this->desiredAddonsConfig;
+ }
+ public function setDesiredImageType($desiredImageType)
+ {
+ $this->desiredImageType = $desiredImageType;
+ }
+ public function getDesiredImageType()
+ {
+ return $this->desiredImageType;
+ }
+ public function setDesiredLocations($desiredLocations)
+ {
+ $this->desiredLocations = $desiredLocations;
+ }
+ public function getDesiredLocations()
+ {
+ return $this->desiredLocations;
+ }
+ public function setDesiredMasterVersion($desiredMasterVersion)
+ {
+ $this->desiredMasterVersion = $desiredMasterVersion;
+ }
+ public function getDesiredMasterVersion()
+ {
+ return $this->desiredMasterVersion;
+ }
+ public function setDesiredMonitoringService($desiredMonitoringService)
+ {
+ $this->desiredMonitoringService = $desiredMonitoringService;
+ }
+ public function getDesiredMonitoringService()
+ {
+ return $this->desiredMonitoringService;
+ }
+ public function setDesiredNodePoolAutoscaling(Google_Service_Container_NodePoolAutoscaling $desiredNodePoolAutoscaling)
+ {
+ $this->desiredNodePoolAutoscaling = $desiredNodePoolAutoscaling;
+ }
+ public function getDesiredNodePoolAutoscaling()
+ {
+ return $this->desiredNodePoolAutoscaling;
+ }
+ public function setDesiredNodePoolId($desiredNodePoolId)
+ {
+ $this->desiredNodePoolId = $desiredNodePoolId;
+ }
+ public function getDesiredNodePoolId()
+ {
+ return $this->desiredNodePoolId;
+ }
+ public function setDesiredNodeVersion($desiredNodeVersion)
+ {
+ $this->desiredNodeVersion = $desiredNodeVersion;
+ }
+ public function getDesiredNodeVersion()
+ {
+ return $this->desiredNodeVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ContainerEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ContainerEmpty.php
new file mode 100644
index 00000000..0695e622
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ContainerEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_ContainerEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateClusterRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateClusterRequest.php
new file mode 100644
index 00000000..08b2baf3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateClusterRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_CreateClusterRequest extends Google_Model
+{
+ protected $clusterType = 'Google_Service_Container_Cluster';
+ protected $clusterDataType = '';
+
+ public function setCluster(Google_Service_Container_Cluster $cluster)
+ {
+ $this->cluster = $cluster;
+ }
+ public function getCluster()
+ {
+ return $this->cluster;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateNodePoolRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateNodePoolRequest.php
new file mode 100644
index 00000000..6088cb84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/CreateNodePoolRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_CreateNodePoolRequest extends Google_Model
+{
+ protected $nodePoolType = 'Google_Service_Container_NodePool';
+ protected $nodePoolDataType = '';
+
+ public function setNodePool(Google_Service_Container_NodePool $nodePool)
+ {
+ $this->nodePool = $nodePool;
+ }
+ public function getNodePool()
+ {
+ return $this->nodePool;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HorizontalPodAutoscaling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HorizontalPodAutoscaling.php
new file mode 100644
index 00000000..8e139c55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HorizontalPodAutoscaling.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_HorizontalPodAutoscaling extends Google_Model
+{
+ public $disabled;
+
+ public function setDisabled($disabled)
+ {
+ $this->disabled = $disabled;
+ }
+ public function getDisabled()
+ {
+ return $this->disabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HttpLoadBalancing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HttpLoadBalancing.php
new file mode 100644
index 00000000..b8db1f2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/HttpLoadBalancing.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_HttpLoadBalancing extends Google_Model
+{
+ public $disabled;
+
+ public function setDisabled($disabled)
+ {
+ $this->disabled = $disabled;
+ }
+ public function getDisabled()
+ {
+ return $this->disabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListClustersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListClustersResponse.php
new file mode 100644
index 00000000..e9dc6a97
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListClustersResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_ListClustersResponse extends Google_Collection
+{
+ protected $collection_key = 'missingZones';
+ protected $clustersType = 'Google_Service_Container_Cluster';
+ protected $clustersDataType = 'array';
+ public $missingZones;
+
+ public function setClusters($clusters)
+ {
+ $this->clusters = $clusters;
+ }
+ public function getClusters()
+ {
+ return $this->clusters;
+ }
+ public function setMissingZones($missingZones)
+ {
+ $this->missingZones = $missingZones;
+ }
+ public function getMissingZones()
+ {
+ return $this->missingZones;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListNodePoolsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListNodePoolsResponse.php
new file mode 100644
index 00000000..30f73741
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListNodePoolsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_ListNodePoolsResponse extends Google_Collection
+{
+ protected $collection_key = 'nodePools';
+ protected $nodePoolsType = 'Google_Service_Container_NodePool';
+ protected $nodePoolsDataType = 'array';
+
+ public function setNodePools($nodePools)
+ {
+ $this->nodePools = $nodePools;
+ }
+ public function getNodePools()
+ {
+ return $this->nodePools;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListOperationsResponse.php
new file mode 100644
index 00000000..f5d6c3bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $missingZones;
+ protected $operationsType = 'Google_Service_Container_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setMissingZones($missingZones)
+ {
+ $this->missingZones = $missingZones;
+ }
+ public function getMissingZones()
+ {
+ return $this->missingZones;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/MasterAuth.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/MasterAuth.php
new file mode 100644
index 00000000..e5db3e92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/MasterAuth.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_MasterAuth extends Google_Model
+{
+ public $clientCertificate;
+ public $clientKey;
+ public $clusterCaCertificate;
+ public $password;
+ public $username;
+
+ public function setClientCertificate($clientCertificate)
+ {
+ $this->clientCertificate = $clientCertificate;
+ }
+ public function getClientCertificate()
+ {
+ return $this->clientCertificate;
+ }
+ public function setClientKey($clientKey)
+ {
+ $this->clientKey = $clientKey;
+ }
+ public function getClientKey()
+ {
+ return $this->clientKey;
+ }
+ public function setClusterCaCertificate($clusterCaCertificate)
+ {
+ $this->clusterCaCertificate = $clusterCaCertificate;
+ }
+ public function getClusterCaCertificate()
+ {
+ return $this->clusterCaCertificate;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeConfig.php
new file mode 100644
index 00000000..9551ad12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeConfig.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_NodeConfig extends Google_Collection
+{
+ protected $collection_key = 'tags';
+ public $diskSizeGb;
+ public $imageType;
+ public $labels;
+ public $localSsdCount;
+ public $machineType;
+ public $metadata;
+ public $oauthScopes;
+ public $preemptible;
+ public $serviceAccount;
+ public $tags;
+
+ public function setDiskSizeGb($diskSizeGb)
+ {
+ $this->diskSizeGb = $diskSizeGb;
+ }
+ public function getDiskSizeGb()
+ {
+ return $this->diskSizeGb;
+ }
+ public function setImageType($imageType)
+ {
+ $this->imageType = $imageType;
+ }
+ public function getImageType()
+ {
+ return $this->imageType;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocalSsdCount($localSsdCount)
+ {
+ $this->localSsdCount = $localSsdCount;
+ }
+ public function getLocalSsdCount()
+ {
+ return $this->localSsdCount;
+ }
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setOauthScopes($oauthScopes)
+ {
+ $this->oauthScopes = $oauthScopes;
+ }
+ public function getOauthScopes()
+ {
+ return $this->oauthScopes;
+ }
+ public function setPreemptible($preemptible)
+ {
+ $this->preemptible = $preemptible;
+ }
+ public function getPreemptible()
+ {
+ return $this->preemptible;
+ }
+ public function setServiceAccount($serviceAccount)
+ {
+ $this->serviceAccount = $serviceAccount;
+ }
+ public function getServiceAccount()
+ {
+ return $this->serviceAccount;
+ }
+ public function setTags($tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeManagement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeManagement.php
new file mode 100644
index 00000000..833c5033
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodeManagement.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_NodeManagement extends Google_Model
+{
+ public $autoUpgrade;
+ protected $upgradeOptionsType = 'Google_Service_Container_AutoUpgradeOptions';
+ protected $upgradeOptionsDataType = '';
+
+ public function setAutoUpgrade($autoUpgrade)
+ {
+ $this->autoUpgrade = $autoUpgrade;
+ }
+ public function getAutoUpgrade()
+ {
+ return $this->autoUpgrade;
+ }
+ public function setUpgradeOptions(Google_Service_Container_AutoUpgradeOptions $upgradeOptions)
+ {
+ $this->upgradeOptions = $upgradeOptions;
+ }
+ public function getUpgradeOptions()
+ {
+ return $this->upgradeOptions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePool.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePool.php
new file mode 100644
index 00000000..0be52bb0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePool.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_NodePool extends Google_Collection
+{
+ protected $collection_key = 'instanceGroupUrls';
+ protected $autoscalingType = 'Google_Service_Container_NodePoolAutoscaling';
+ protected $autoscalingDataType = '';
+ protected $configType = 'Google_Service_Container_NodeConfig';
+ protected $configDataType = '';
+ public $initialNodeCount;
+ public $instanceGroupUrls;
+ protected $managementType = 'Google_Service_Container_NodeManagement';
+ protected $managementDataType = '';
+ public $name;
+ public $selfLink;
+ public $status;
+ public $statusMessage;
+ public $version;
+
+ public function setAutoscaling(Google_Service_Container_NodePoolAutoscaling $autoscaling)
+ {
+ $this->autoscaling = $autoscaling;
+ }
+ public function getAutoscaling()
+ {
+ return $this->autoscaling;
+ }
+ public function setConfig(Google_Service_Container_NodeConfig $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+ public function setInitialNodeCount($initialNodeCount)
+ {
+ $this->initialNodeCount = $initialNodeCount;
+ }
+ public function getInitialNodeCount()
+ {
+ return $this->initialNodeCount;
+ }
+ public function setInstanceGroupUrls($instanceGroupUrls)
+ {
+ $this->instanceGroupUrls = $instanceGroupUrls;
+ }
+ public function getInstanceGroupUrls()
+ {
+ return $this->instanceGroupUrls;
+ }
+ public function setManagement(Google_Service_Container_NodeManagement $management)
+ {
+ $this->management = $management;
+ }
+ public function getManagement()
+ {
+ return $this->management;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePoolAutoscaling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePoolAutoscaling.php
new file mode 100644
index 00000000..14386b5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/NodePoolAutoscaling.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_NodePoolAutoscaling extends Google_Model
+{
+ public $enabled;
+ public $maxNodeCount;
+ public $minNodeCount;
+
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setMaxNodeCount($maxNodeCount)
+ {
+ $this->maxNodeCount = $maxNodeCount;
+ }
+ public function getMaxNodeCount()
+ {
+ return $this->maxNodeCount;
+ }
+ public function setMinNodeCount($minNodeCount)
+ {
+ $this->minNodeCount = $minNodeCount;
+ }
+ public function getMinNodeCount()
+ {
+ return $this->minNodeCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Operation.php
new file mode 100644
index 00000000..65421cb0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Operation.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_Operation extends Google_Model
+{
+ public $detail;
+ public $name;
+ public $operationType;
+ public $selfLink;
+ public $status;
+ public $statusMessage;
+ public $targetLink;
+ public $zone;
+
+ public function setDetail($detail)
+ {
+ $this->detail = $detail;
+ }
+ public function getDetail()
+ {
+ return $this->detail;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/Projects.php
new file mode 100644
index 00000000..219380b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $containerService = new Google_Service_Container(...);
+ * $projects = $containerService->projects;
+ * </code>
+ */
+class Google_Service_Container_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php
new file mode 100644
index 00000000..0ed185df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZones.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zones" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $containerService = new Google_Service_Container(...);
+ * $zones = $containerService->zones;
+ * </code>
+ */
+class Google_Service_Container_Resource_ProjectsZones extends Google_Service_Resource
+{
+ /**
+ * Returns configuration info about the Container Engine service.
+ * (zones.getServerconfig)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) to return operations for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_ServerConfig
+ */
+ public function getServerconfig($projectId, $zone, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('getServerconfig', array($params), "Google_Service_Container_ServerConfig");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php
new file mode 100644
index 00000000..33a47edf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClusters.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "clusters" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $containerService = new Google_Service_Container(...);
+ * $clusters = $containerService->clusters;
+ * </code>
+ */
+class Google_Service_Container_Resource_ProjectsZonesClusters extends Google_Service_Resource
+{
+ /**
+ * Creates a cluster, consisting of the specified number and type of Google
+ * Compute Engine instances. By default, the cluster is created in the project's
+ * [default network](/compute/docs/networks-and-firewalls#networks). One
+ * firewall is added for the cluster. After cluster creation, the cluster
+ * creates routes for each node to allow the containers on that node to
+ * communicate with all other instances in the cluster. Finally, an entry is
+ * added to the project's global metadata indicating which CIDR range is being
+ * used by the cluster. (clusters.create)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param Google_Service_Container_CreateClusterRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function create($projectId, $zone, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Container_Operation");
+ }
+ /**
+ * Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
+ * Firewalls and routes that were configured during cluster creation are also
+ * deleted. Other Google Compute Engine resources that might be in use by the
+ * cluster (e.g. load balancer resources) will not be deleted if they weren't
+ * present at the initial create time. (clusters.delete)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function delete($projectId, $zone, $clusterId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Container_Operation");
+ }
+ /**
+ * Gets the details of a specific cluster. (clusters.get)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Cluster
+ */
+ public function get($projectId, $zone, $clusterId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Container_Cluster");
+ }
+ /**
+ * Lists all clusters owned by a project in either the specified zone or all
+ * zones. (clusters.listProjectsZonesClusters)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides, or "-"
+ * for all zones.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_ListClustersResponse
+ */
+ public function listProjectsZonesClusters($projectId, $zone, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse");
+ }
+ /**
+ * Updates the settings of a specific cluster. (clusters.update)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster to upgrade.
+ * @param Google_Service_Container_UpdateClusterRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function update($projectId, $zone, $clusterId, Google_Service_Container_UpdateClusterRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Container_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php
new file mode 100644
index 00000000..7763c92a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesClustersNodePools.php
@@ -0,0 +1,139 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "nodePools" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $containerService = new Google_Service_Container(...);
+ * $nodePools = $containerService->nodePools;
+ * </code>
+ */
+class Google_Service_Container_Resource_ProjectsZonesClustersNodePools extends Google_Service_Resource
+{
+ /**
+ * Creates a node pool for a cluster. (nodePools.create)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://developers.google.com/console/help/new/#projectnumber).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster.
+ * @param Google_Service_Container_CreateNodePoolRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function create($projectId, $zone, $clusterId, Google_Service_Container_CreateNodePoolRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Container_Operation");
+ }
+ /**
+ * Deletes a node pool from a cluster. (nodePools.delete)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://developers.google.com/console/help/new/#projectnumber).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster.
+ * @param string $nodePoolId The name of the node pool to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function delete($projectId, $zone, $clusterId, $nodePoolId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Container_Operation");
+ }
+ /**
+ * Retrieves the node pool requested. (nodePools.get)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://developers.google.com/console/help/new/#projectnumber).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster.
+ * @param string $nodePoolId The name of the node pool.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_NodePool
+ */
+ public function get($projectId, $zone, $clusterId, $nodePoolId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Container_NodePool");
+ }
+ /**
+ * Lists the node pools for a cluster.
+ * (nodePools.listProjectsZonesClustersNodePools)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://developers.google.com/console/help/new/#projectnumber).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_ListNodePoolsResponse
+ */
+ public function listProjectsZonesClustersNodePools($projectId, $zone, $clusterId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Container_ListNodePoolsResponse");
+ }
+ /**
+ * Roll back the previously Aborted or Failed NodePool upgrade. This will be an
+ * no-op if the last upgrade successfully completed. (nodePools.rollback)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster to rollback.
+ * @param string $nodePoolId The name of the node pool to rollback.
+ * @param Google_Service_Container_RollbackNodePoolUpgradeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function rollback($projectId, $zone, $clusterId, $nodePoolId, Google_Service_Container_RollbackNodePoolUpgradeRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('rollback', array($params), "Google_Service_Container_Operation");
+ }
+ /**
+ * Sets the NodeManagement options for a node pool. (nodePools.setManagement)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster to update.
+ * @param string $nodePoolId The name of the node pool to update.
+ * @param Google_Service_Container_SetNodePoolManagementRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function setManagement($projectId, $zone, $clusterId, $nodePoolId, Google_Service_Container_SetNodePoolManagementRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'nodePoolId' => $nodePoolId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setManagement', array($params), "Google_Service_Container_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesOperations.php
new file mode 100644
index 00000000..2622ee32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/Resource/ProjectsZonesOperations.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $containerService = new Google_Service_Container(...);
+ * $operations = $containerService->operations;
+ * </code>
+ */
+class Google_Service_Container_Resource_ProjectsZonesOperations extends Google_Service_Resource
+{
+ /**
+ * Cancels the specified operation. (operations.cancel)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the operation resides.
+ * @param string $operationId The server-assigned `name` of the operation.
+ * @param Google_Service_Container_CancelOperationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_ContainerEmpty
+ */
+ public function cancel($projectId, $zone, $operationId, Google_Service_Container_CancelOperationRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Container_ContainerEmpty");
+ }
+ /**
+ * Gets the specified operation. (operations.get)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $operationId The server-assigned `name` of the operation.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function get($projectId, $zone, $operationId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Container_Operation");
+ }
+ /**
+ * Lists all operations in a project in a specific zone or all zones.
+ * (operations.listProjectsZonesOperations)
+ *
+ * @param string $projectId The Google Developers Console [project ID or project
+ * number](https://support.google.com/cloud/answer/6158840).
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) to return operations for, or `-` for
+ * all zones.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_ListOperationsResponse
+ */
+ public function listProjectsZonesOperations($projectId, $zone, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/RollbackNodePoolUpgradeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/RollbackNodePoolUpgradeRequest.php
new file mode 100644
index 00000000..7054ca00
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/RollbackNodePoolUpgradeRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_RollbackNodePoolUpgradeRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ServerConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ServerConfig.php
new file mode 100644
index 00000000..19c9f3a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/ServerConfig.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_ServerConfig extends Google_Collection
+{
+ protected $collection_key = 'validNodeVersions';
+ public $defaultClusterVersion;
+ public $defaultImageType;
+ public $validImageTypes;
+ public $validMasterVersions;
+ public $validNodeVersions;
+
+ public function setDefaultClusterVersion($defaultClusterVersion)
+ {
+ $this->defaultClusterVersion = $defaultClusterVersion;
+ }
+ public function getDefaultClusterVersion()
+ {
+ return $this->defaultClusterVersion;
+ }
+ public function setDefaultImageType($defaultImageType)
+ {
+ $this->defaultImageType = $defaultImageType;
+ }
+ public function getDefaultImageType()
+ {
+ return $this->defaultImageType;
+ }
+ public function setValidImageTypes($validImageTypes)
+ {
+ $this->validImageTypes = $validImageTypes;
+ }
+ public function getValidImageTypes()
+ {
+ return $this->validImageTypes;
+ }
+ public function setValidMasterVersions($validMasterVersions)
+ {
+ $this->validMasterVersions = $validMasterVersions;
+ }
+ public function getValidMasterVersions()
+ {
+ return $this->validMasterVersions;
+ }
+ public function setValidNodeVersions($validNodeVersions)
+ {
+ $this->validNodeVersions = $validNodeVersions;
+ }
+ public function getValidNodeVersions()
+ {
+ return $this->validNodeVersions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/SetNodePoolManagementRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/SetNodePoolManagementRequest.php
new file mode 100644
index 00000000..591c099a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/SetNodePoolManagementRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_SetNodePoolManagementRequest extends Google_Model
+{
+ protected $managementType = 'Google_Service_Container_NodeManagement';
+ protected $managementDataType = '';
+
+ public function setManagement(Google_Service_Container_NodeManagement $management)
+ {
+ $this->management = $management;
+ }
+ public function getManagement()
+ {
+ return $this->management;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/UpdateClusterRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/UpdateClusterRequest.php
new file mode 100644
index 00000000..76f262c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Container/UpdateClusterRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Container_UpdateClusterRequest extends Google_Model
+{
+ protected $updateType = 'Google_Service_Container_ClusterUpdate';
+ protected $updateDataType = '';
+
+ public function setUpdate(Google_Service_Container_ClusterUpdate $update)
+ {
+ $this->update = $update;
+ }
+ public function getUpdate()
+ {
+ return $this->update;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate.php
new file mode 100644
index 00000000..5d25c17f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate.php
@@ -0,0 +1,467 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Coordinate (v1).
+ *
+ * <p>
+ * Lets you view and manage jobs in a Coordinate team.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/coordinate/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Coordinate extends Google_Service
+{
+ /** View and manage your Google Maps Coordinate jobs. */
+ const COORDINATE =
+ "https://www.googleapis.com/auth/coordinate";
+ /** View your Google Coordinate jobs. */
+ const COORDINATE_READONLY =
+ "https://www.googleapis.com/auth/coordinate.readonly";
+
+ public $customFieldDef;
+ public $jobs;
+ public $location;
+ public $schedule;
+ public $team;
+ public $worker;
+
+ /**
+ * Constructs the internal representation of the Coordinate service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'coordinate/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'coordinate';
+
+ $this->customFieldDef = new Google_Service_Coordinate_Resource_CustomFieldDef(
+ $this,
+ $this->serviceName,
+ 'customFieldDef',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'teams/{teamId}/custom_fields',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->jobs = new Google_Service_Coordinate_Resource_Jobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'teams/{teamId}/jobs/{jobId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'teams/{teamId}/jobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'address' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'lat' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ 'required' => true,
+ ),
+ 'lng' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ 'required' => true,
+ ),
+ 'title' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'assignee' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'customerName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customerPhoneNumber' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'note' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'teams/{teamId}/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'minModifiedTimestampMs' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'omitJobChanges' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'teams/{teamId}/jobs/{jobId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'address' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'assignee' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'customerName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customerPhoneNumber' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'lat' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ ),
+ 'lng' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ ),
+ 'note' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'progress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'title' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'teams/{teamId}/jobs/{jobId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'address' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'assignee' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'customerName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customerPhoneNumber' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'lat' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ ),
+ 'lng' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ ),
+ 'note' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'progress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'title' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->location = new Google_Service_Coordinate_Resource_Location(
+ $this,
+ $this->serviceName,
+ 'location',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'teams/{teamId}/workers/{workerEmail}/locations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'workerEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'startTimestampMs' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->schedule = new Google_Service_Coordinate_Resource_Schedule(
+ $this,
+ $this->serviceName,
+ 'schedule',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'teams/{teamId}/jobs/{jobId}/schedule',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'teams/{teamId}/jobs/{jobId}/schedule',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'allDay' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'duration' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'teams/{teamId}/jobs/{jobId}/schedule',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'allDay' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'duration' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->team = new Google_Service_Coordinate_Resource_Team(
+ $this,
+ $this->serviceName,
+ 'team',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'teams',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'admin' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'dispatcher' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'worker' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->worker = new Google_Service_Coordinate_Resource_Worker(
+ $this,
+ $this->serviceName,
+ 'worker',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'teams/{teamId}/workers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'teamId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomField.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomField.php
new file mode 100644
index 00000000..13226bff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomField.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_CustomField extends Google_Model
+{
+ public $customFieldId;
+ public $kind;
+ public $value;
+
+ public function setCustomFieldId($customFieldId)
+ {
+ $this->customFieldId = $customFieldId;
+ }
+ public function getCustomFieldId()
+ {
+ return $this->customFieldId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDef.php
new file mode 100644
index 00000000..82a8837c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDef.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_CustomFieldDef extends Google_Collection
+{
+ protected $collection_key = 'enumitems';
+ public $enabled;
+ protected $enumitemsType = 'Google_Service_Coordinate_EnumItemDef';
+ protected $enumitemsDataType = 'array';
+ public $id;
+ public $kind;
+ public $name;
+ public $requiredForCheckout;
+ public $type;
+
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setEnumitems($enumitems)
+ {
+ $this->enumitems = $enumitems;
+ }
+ public function getEnumitems()
+ {
+ return $this->enumitems;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRequiredForCheckout($requiredForCheckout)
+ {
+ $this->requiredForCheckout = $requiredForCheckout;
+ }
+ public function getRequiredForCheckout()
+ {
+ return $this->requiredForCheckout;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDefListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDefListResponse.php
new file mode 100644
index 00000000..af1d038d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFieldDefListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFields.php
new file mode 100644
index 00000000..32f9900c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/CustomFields.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_CustomFields extends Google_Collection
+{
+ protected $collection_key = 'customField';
+ protected $customFieldType = 'Google_Service_Coordinate_CustomField';
+ protected $customFieldDataType = 'array';
+ public $kind;
+
+ public function setCustomField($customField)
+ {
+ $this->customField = $customField;
+ }
+ public function getCustomField()
+ {
+ return $this->customField;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/EnumItemDef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/EnumItemDef.php
new file mode 100644
index 00000000..2086600a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/EnumItemDef.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_EnumItemDef extends Google_Model
+{
+ public $active;
+ public $kind;
+ public $value;
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Job.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Job.php
new file mode 100644
index 00000000..4c6a337c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Job.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_Job extends Google_Collection
+{
+ protected $collection_key = 'jobChange';
+ public $id;
+ protected $jobChangeType = 'Google_Service_Coordinate_JobChange';
+ protected $jobChangeDataType = 'array';
+ public $kind;
+ protected $stateType = 'Google_Service_Coordinate_JobState';
+ protected $stateDataType = '';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setJobChange($jobChange)
+ {
+ $this->jobChange = $jobChange;
+ }
+ public function getJobChange()
+ {
+ return $this->jobChange;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setState(Google_Service_Coordinate_JobState $state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobChange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobChange.php
new file mode 100644
index 00000000..a3e0611c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobChange.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_JobChange extends Google_Model
+{
+ public $kind;
+ protected $stateType = 'Google_Service_Coordinate_JobState';
+ protected $stateDataType = '';
+ public $timestamp;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setState(Google_Service_Coordinate_JobState $state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobListResponse.php
new file mode 100644
index 00000000..0793fc41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_JobListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Coordinate_Job';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobState.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobState.php
new file mode 100644
index 00000000..c997d69d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/JobState.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_JobState extends Google_Collection
+{
+ protected $collection_key = 'note';
+ public $assignee;
+ protected $customFieldsType = 'Google_Service_Coordinate_CustomFields';
+ protected $customFieldsDataType = '';
+ public $customerName;
+ public $customerPhoneNumber;
+ public $kind;
+ protected $locationType = 'Google_Service_Coordinate_Location';
+ protected $locationDataType = '';
+ public $note;
+ public $progress;
+ public $title;
+
+ public function setAssignee($assignee)
+ {
+ $this->assignee = $assignee;
+ }
+ public function getAssignee()
+ {
+ return $this->assignee;
+ }
+ public function setCustomFields(Google_Service_Coordinate_CustomFields $customFields)
+ {
+ $this->customFields = $customFields;
+ }
+ public function getCustomFields()
+ {
+ return $this->customFields;
+ }
+ public function setCustomerName($customerName)
+ {
+ $this->customerName = $customerName;
+ }
+ public function getCustomerName()
+ {
+ return $this->customerName;
+ }
+ public function setCustomerPhoneNumber($customerPhoneNumber)
+ {
+ $this->customerPhoneNumber = $customerPhoneNumber;
+ }
+ public function getCustomerPhoneNumber()
+ {
+ return $this->customerPhoneNumber;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation(Google_Service_Coordinate_Location $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setNote($note)
+ {
+ $this->note = $note;
+ }
+ public function getNote()
+ {
+ return $this->note;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Location.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Location.php
new file mode 100644
index 00000000..1b699eec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Location.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_Location extends Google_Collection
+{
+ protected $collection_key = 'addressLine';
+ public $addressLine;
+ public $kind;
+ public $lat;
+ public $lng;
+
+ public function setAddressLine($addressLine)
+ {
+ $this->addressLine = $addressLine;
+ }
+ public function getAddressLine()
+ {
+ return $this->addressLine;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLat($lat)
+ {
+ $this->lat = $lat;
+ }
+ public function getLat()
+ {
+ return $this->lat;
+ }
+ public function setLng($lng)
+ {
+ $this->lng = $lng;
+ }
+ public function getLng()
+ {
+ return $this->lng;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationListResponse.php
new file mode 100644
index 00000000..ac5334a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationListResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_LocationListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Coordinate_LocationRecord';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $tokenPaginationType = 'Google_Service_Coordinate_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTokenPagination(Google_Service_Coordinate_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationRecord.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationRecord.php
new file mode 100644
index 00000000..79a6839a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/LocationRecord.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_LocationRecord extends Google_Model
+{
+ public $collectionTime;
+ public $confidenceRadius;
+ public $kind;
+ public $latitude;
+ public $longitude;
+
+ public function setCollectionTime($collectionTime)
+ {
+ $this->collectionTime = $collectionTime;
+ }
+ public function getCollectionTime()
+ {
+ return $this->collectionTime;
+ }
+ public function setConfidenceRadius($confidenceRadius)
+ {
+ $this->confidenceRadius = $confidenceRadius;
+ }
+ public function getConfidenceRadius()
+ {
+ return $this->confidenceRadius;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/CustomFieldDef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/CustomFieldDef.php
new file mode 100644
index 00000000..59f814c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/CustomFieldDef.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customFieldDef" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $coordinateService = new Google_Service_Coordinate(...);
+ * $customFieldDef = $coordinateService->customFieldDef;
+ * </code>
+ */
+class Google_Service_Coordinate_Resource_CustomFieldDef extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of custom field definitions for a team.
+ * (customFieldDef.listCustomFieldDef)
+ *
+ * @param string $teamId Team ID
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Coordinate_CustomFieldDefListResponse
+ */
+ public function listCustomFieldDef($teamId, $optParams = array())
+ {
+ $params = array('teamId' => $teamId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Coordinate_CustomFieldDefListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Jobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Jobs.php
new file mode 100644
index 00000000..a6a3021a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Jobs.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $coordinateService = new Google_Service_Coordinate(...);
+ * $jobs = $coordinateService->jobs;
+ * </code>
+ */
+class Google_Service_Coordinate_Resource_Jobs extends Google_Service_Resource
+{
+ /**
+ * Retrieves a job, including all the changes made to the job. (jobs.get)
+ *
+ * @param string $teamId Team ID
+ * @param string $jobId Job number
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Coordinate_Job
+ */
+ public function get($teamId, $jobId, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Coordinate_Job");
+ }
+ /**
+ * Inserts a new job. Only the state field of the job should be set.
+ * (jobs.insert)
+ *
+ * @param string $teamId Team ID
+ * @param string $address Job address as newline (Unix) separated string
+ * @param double $lat The latitude coordinate of this job's location.
+ * @param double $lng The longitude coordinate of this job's location.
+ * @param string $title Job title
+ * @param Google_Service_Coordinate_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string assignee Assignee email address, or empty string to
+ * unassign.
+ * @opt_param string customField Sets the value of custom fields. To set a
+ * custom field, pass the field id (from /team/teamId/custom_fields), a URL
+ * escaped '=' character, and the desired value as a parameter. For example,
+ * customField=12%3DAlice. Repeat the parameter for each custom field. Note that
+ * '=' cannot appear in the parameter value. Specifying an invalid, or inactive
+ * enum field will result in an error 500.
+ * @opt_param string customerName Customer name
+ * @opt_param string customerPhoneNumber Customer phone number
+ * @opt_param string note Job note as newline (Unix) separated string
+ * @return Google_Service_Coordinate_Job
+ */
+ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Coordinate_Job");
+ }
+ /**
+ * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs)
+ *
+ * @param string $teamId Team ID
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return in one page.
+ * @opt_param string minModifiedTimestampMs Minimum time a job was modified in
+ * milliseconds since epoch.
+ * @opt_param bool omitJobChanges Whether to omit detail job history
+ * information.
+ * @opt_param string pageToken Continuation token
+ * @return Google_Service_Coordinate_JobListResponse
+ */
+ public function listJobs($teamId, $optParams = array())
+ {
+ $params = array('teamId' => $teamId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Coordinate_JobListResponse");
+ }
+ /**
+ * Updates a job. Fields that are set in the job state will be updated. This
+ * method supports patch semantics. (jobs.patch)
+ *
+ * @param string $teamId Team ID
+ * @param string $jobId Job number
+ * @param Google_Service_Coordinate_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string address Job address as newline (Unix) separated string
+ * @opt_param string assignee Assignee email address, or empty string to
+ * unassign.
+ * @opt_param string customField Sets the value of custom fields. To set a
+ * custom field, pass the field id (from /team/teamId/custom_fields), a URL
+ * escaped '=' character, and the desired value as a parameter. For example,
+ * customField=12%3DAlice. Repeat the parameter for each custom field. Note that
+ * '=' cannot appear in the parameter value. Specifying an invalid, or inactive
+ * enum field will result in an error 500.
+ * @opt_param string customerName Customer name
+ * @opt_param string customerPhoneNumber Customer phone number
+ * @opt_param double lat The latitude coordinate of this job's location.
+ * @opt_param double lng The longitude coordinate of this job's location.
+ * @opt_param string note Job note as newline (Unix) separated string
+ * @opt_param string progress Job progress
+ * @opt_param string title Job title
+ * @return Google_Service_Coordinate_Job
+ */
+ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Coordinate_Job");
+ }
+ /**
+ * Updates a job. Fields that are set in the job state will be updated.
+ * (jobs.update)
+ *
+ * @param string $teamId Team ID
+ * @param string $jobId Job number
+ * @param Google_Service_Coordinate_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string address Job address as newline (Unix) separated string
+ * @opt_param string assignee Assignee email address, or empty string to
+ * unassign.
+ * @opt_param string customField Sets the value of custom fields. To set a
+ * custom field, pass the field id (from /team/teamId/custom_fields), a URL
+ * escaped '=' character, and the desired value as a parameter. For example,
+ * customField=12%3DAlice. Repeat the parameter for each custom field. Note that
+ * '=' cannot appear in the parameter value. Specifying an invalid, or inactive
+ * enum field will result in an error 500.
+ * @opt_param string customerName Customer name
+ * @opt_param string customerPhoneNumber Customer phone number
+ * @opt_param double lat The latitude coordinate of this job's location.
+ * @opt_param double lng The longitude coordinate of this job's location.
+ * @opt_param string note Job note as newline (Unix) separated string
+ * @opt_param string progress Job progress
+ * @opt_param string title Job title
+ * @return Google_Service_Coordinate_Job
+ */
+ public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Coordinate_Job");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Location.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Location.php
new file mode 100644
index 00000000..e879bdaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Location.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "location" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $coordinateService = new Google_Service_Coordinate(...);
+ * $location = $coordinateService->location;
+ * </code>
+ */
+class Google_Service_Coordinate_Resource_Location extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of locations for a worker. (location.listLocation)
+ *
+ * @param string $teamId Team ID
+ * @param string $workerEmail Worker email address.
+ * @param string $startTimestampMs Start timestamp in milliseconds since the
+ * epoch.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return in one page.
+ * @opt_param string pageToken Continuation token
+ * @return Google_Service_Coordinate_LocationListResponse
+ */
+ public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Coordinate_LocationListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Schedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Schedule.php
new file mode 100644
index 00000000..8978e4c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Schedule.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "schedule" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $coordinateService = new Google_Service_Coordinate(...);
+ * $schedule = $coordinateService->schedule;
+ * </code>
+ */
+class Google_Service_Coordinate_Resource_Schedule extends Google_Service_Resource
+{
+ /**
+ * Retrieves the schedule for a job. (schedule.get)
+ *
+ * @param string $teamId Team ID
+ * @param string $jobId Job number
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Coordinate_Schedule
+ */
+ public function get($teamId, $jobId, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Coordinate_Schedule");
+ }
+ /**
+ * Replaces the schedule of a job with the provided schedule. This method
+ * supports patch semantics. (schedule.patch)
+ *
+ * @param string $teamId Team ID
+ * @param string $jobId Job number
+ * @param Google_Service_Coordinate_Schedule $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool allDay Whether the job is scheduled for the whole day. Time
+ * of day in start/end times is ignored if this is true.
+ * @opt_param string duration Job duration in milliseconds.
+ * @opt_param string endTime Scheduled end time in milliseconds since epoch.
+ * @opt_param string startTime Scheduled start time in milliseconds since epoch.
+ * @return Google_Service_Coordinate_Schedule
+ */
+ public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Coordinate_Schedule");
+ }
+ /**
+ * Replaces the schedule of a job with the provided schedule. (schedule.update)
+ *
+ * @param string $teamId Team ID
+ * @param string $jobId Job number
+ * @param Google_Service_Coordinate_Schedule $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool allDay Whether the job is scheduled for the whole day. Time
+ * of day in start/end times is ignored if this is true.
+ * @opt_param string duration Job duration in milliseconds.
+ * @opt_param string endTime Scheduled end time in milliseconds since epoch.
+ * @opt_param string startTime Scheduled start time in milliseconds since epoch.
+ * @return Google_Service_Coordinate_Schedule
+ */
+ public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array())
+ {
+ $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Coordinate_Schedule");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Team.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Team.php
new file mode 100644
index 00000000..e3355321
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Team.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "team" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $coordinateService = new Google_Service_Coordinate(...);
+ * $team = $coordinateService->team;
+ * </code>
+ */
+class Google_Service_Coordinate_Resource_Team extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of teams for a user. (team.listTeam)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool admin Whether to include teams for which the user has the
+ * Admin role.
+ * @opt_param bool dispatcher Whether to include teams for which the user has
+ * the Dispatcher role.
+ * @opt_param bool worker Whether to include teams for which the user has the
+ * Worker role.
+ * @return Google_Service_Coordinate_TeamListResponse
+ */
+ public function listTeam($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Coordinate_TeamListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Worker.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Worker.php
new file mode 100644
index 00000000..d01fc571
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Resource/Worker.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "worker" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $coordinateService = new Google_Service_Coordinate(...);
+ * $worker = $coordinateService->worker;
+ * </code>
+ */
+class Google_Service_Coordinate_Resource_Worker extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of workers in a team. (worker.listWorker)
+ *
+ * @param string $teamId Team ID
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Coordinate_WorkerListResponse
+ */
+ public function listWorker($teamId, $optParams = array())
+ {
+ $params = array('teamId' => $teamId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Coordinate_WorkerListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Schedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Schedule.php
new file mode 100644
index 00000000..dc75febe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Schedule.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_Schedule extends Google_Model
+{
+ public $allDay;
+ public $duration;
+ public $endTime;
+ public $kind;
+ public $startTime;
+
+ public function setAllDay($allDay)
+ {
+ $this->allDay = $allDay;
+ }
+ public function getAllDay()
+ {
+ return $this->allDay;
+ }
+ public function setDuration($duration)
+ {
+ $this->duration = $duration;
+ }
+ public function getDuration()
+ {
+ return $this->duration;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Team.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Team.php
new file mode 100644
index 00000000..0fb51956
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Team.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_Team extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TeamListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TeamListResponse.php
new file mode 100644
index 00000000..fa86755c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TeamListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_TeamListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Coordinate_Team';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TokenPagination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TokenPagination.php
new file mode 100644
index 00000000..e66763ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/TokenPagination.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_TokenPagination extends Google_Model
+{
+ public $kind;
+ public $nextPageToken;
+ public $previousPageToken;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPreviousPageToken($previousPageToken)
+ {
+ $this->previousPageToken = $previousPageToken;
+ }
+ public function getPreviousPageToken()
+ {
+ return $this->previousPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Worker.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Worker.php
new file mode 100644
index 00000000..1f078063
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/Worker.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_Worker extends Google_Model
+{
+ public $id;
+ public $kind;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/WorkerListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/WorkerListResponse.php
new file mode 100644
index 00000000..39dfe75e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Coordinate/WorkerListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Coordinate_WorkerListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Coordinate_Worker';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch.php
new file mode 100644
index 00000000..568833c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch.php
@@ -0,0 +1,195 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Customsearch (v1).
+ *
+ * <p>
+ * Lets you search over a website or collection of websites</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/custom-search/v1/using_rest" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Customsearch extends Google_Service
+{
+
+
+ public $cse;
+
+ /**
+ * Constructs the internal representation of the Customsearch service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'customsearch/';
+ $this->version = 'v1';
+ $this->serviceName = 'customsearch';
+
+ $this->cse = new Google_Service_Customsearch_Resource_Cse(
+ $this,
+ $this->serviceName,
+ 'cse',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'c2coff' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'cr' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'cref' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'cx' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dateRestrict' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'exactTerms' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'excludeTerms' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'fileType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'gl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'googlehost' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'highRange' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'hq' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'imgColorType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'imgDominantColor' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'imgSize' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'imgType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'linkSite' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'lowRange' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'lr' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'num' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orTerms' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'relatedSite' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'rights' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'safe' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'siteSearch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'siteSearchFilter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'start' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Context.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Context.php
new file mode 100644
index 00000000..e20a860c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Context.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_Context extends Google_Collection
+{
+ protected $collection_key = 'facets';
+ protected $facetsType = 'Google_Service_Customsearch_ContextFacets';
+ protected $facetsDataType = 'array';
+ public $title;
+
+ public function setFacets($facets)
+ {
+ $this->facets = $facets;
+ }
+ public function getFacets()
+ {
+ return $this->facets;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ContextFacets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ContextFacets.php
new file mode 100644
index 00000000..ba8e5265
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ContextFacets.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_ContextFacets extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "labelWithOp" => "label_with_op",
+ );
+ public $anchor;
+ public $label;
+ public $labelWithOp;
+
+ public function setAnchor($anchor)
+ {
+ $this->anchor = $anchor;
+ }
+ public function getAnchor()
+ {
+ return $this->anchor;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setLabelWithOp($labelWithOp)
+ {
+ $this->labelWithOp = $labelWithOp;
+ }
+ public function getLabelWithOp()
+ {
+ return $this->labelWithOp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Promotion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Promotion.php
new file mode 100644
index 00000000..cda98fb0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Promotion.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_Promotion extends Google_Collection
+{
+ protected $collection_key = 'bodyLines';
+ protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines';
+ protected $bodyLinesDataType = 'array';
+ public $displayLink;
+ public $htmlTitle;
+ protected $imageType = 'Google_Service_Customsearch_PromotionImage';
+ protected $imageDataType = '';
+ public $link;
+ public $title;
+
+ public function setBodyLines($bodyLines)
+ {
+ $this->bodyLines = $bodyLines;
+ }
+ public function getBodyLines()
+ {
+ return $this->bodyLines;
+ }
+ public function setDisplayLink($displayLink)
+ {
+ $this->displayLink = $displayLink;
+ }
+ public function getDisplayLink()
+ {
+ return $this->displayLink;
+ }
+ public function setHtmlTitle($htmlTitle)
+ {
+ $this->htmlTitle = $htmlTitle;
+ }
+ public function getHtmlTitle()
+ {
+ return $this->htmlTitle;
+ }
+ public function setImage(Google_Service_Customsearch_PromotionImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionBodyLines.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionBodyLines.php
new file mode 100644
index 00000000..4201ddf0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionBodyLines.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_PromotionBodyLines extends Google_Model
+{
+ public $htmlTitle;
+ public $link;
+ public $title;
+ public $url;
+
+ public function setHtmlTitle($htmlTitle)
+ {
+ $this->htmlTitle = $htmlTitle;
+ }
+ public function getHtmlTitle()
+ {
+ return $this->htmlTitle;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionImage.php
new file mode 100644
index 00000000..475feb52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/PromotionImage.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_PromotionImage extends Google_Model
+{
+ public $height;
+ public $source;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Query.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Query.php
new file mode 100644
index 00000000..6c0e92c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Query.php
@@ -0,0 +1,354 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_Query extends Google_Model
+{
+ public $count;
+ public $cr;
+ public $cref;
+ public $cx;
+ public $dateRestrict;
+ public $disableCnTwTranslation;
+ public $exactTerms;
+ public $excludeTerms;
+ public $fileType;
+ public $filter;
+ public $gl;
+ public $googleHost;
+ public $highRange;
+ public $hl;
+ public $hq;
+ public $imgColorType;
+ public $imgDominantColor;
+ public $imgSize;
+ public $imgType;
+ public $inputEncoding;
+ public $language;
+ public $linkSite;
+ public $lowRange;
+ public $orTerms;
+ public $outputEncoding;
+ public $relatedSite;
+ public $rights;
+ public $safe;
+ public $searchTerms;
+ public $searchType;
+ public $siteSearch;
+ public $siteSearchFilter;
+ public $sort;
+ public $startIndex;
+ public $startPage;
+ public $title;
+ public $totalResults;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setCr($cr)
+ {
+ $this->cr = $cr;
+ }
+ public function getCr()
+ {
+ return $this->cr;
+ }
+ public function setCref($cref)
+ {
+ $this->cref = $cref;
+ }
+ public function getCref()
+ {
+ return $this->cref;
+ }
+ public function setCx($cx)
+ {
+ $this->cx = $cx;
+ }
+ public function getCx()
+ {
+ return $this->cx;
+ }
+ public function setDateRestrict($dateRestrict)
+ {
+ $this->dateRestrict = $dateRestrict;
+ }
+ public function getDateRestrict()
+ {
+ return $this->dateRestrict;
+ }
+ public function setDisableCnTwTranslation($disableCnTwTranslation)
+ {
+ $this->disableCnTwTranslation = $disableCnTwTranslation;
+ }
+ public function getDisableCnTwTranslation()
+ {
+ return $this->disableCnTwTranslation;
+ }
+ public function setExactTerms($exactTerms)
+ {
+ $this->exactTerms = $exactTerms;
+ }
+ public function getExactTerms()
+ {
+ return $this->exactTerms;
+ }
+ public function setExcludeTerms($excludeTerms)
+ {
+ $this->excludeTerms = $excludeTerms;
+ }
+ public function getExcludeTerms()
+ {
+ return $this->excludeTerms;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setGl($gl)
+ {
+ $this->gl = $gl;
+ }
+ public function getGl()
+ {
+ return $this->gl;
+ }
+ public function setGoogleHost($googleHost)
+ {
+ $this->googleHost = $googleHost;
+ }
+ public function getGoogleHost()
+ {
+ return $this->googleHost;
+ }
+ public function setHighRange($highRange)
+ {
+ $this->highRange = $highRange;
+ }
+ public function getHighRange()
+ {
+ return $this->highRange;
+ }
+ public function setHl($hl)
+ {
+ $this->hl = $hl;
+ }
+ public function getHl()
+ {
+ return $this->hl;
+ }
+ public function setHq($hq)
+ {
+ $this->hq = $hq;
+ }
+ public function getHq()
+ {
+ return $this->hq;
+ }
+ public function setImgColorType($imgColorType)
+ {
+ $this->imgColorType = $imgColorType;
+ }
+ public function getImgColorType()
+ {
+ return $this->imgColorType;
+ }
+ public function setImgDominantColor($imgDominantColor)
+ {
+ $this->imgDominantColor = $imgDominantColor;
+ }
+ public function getImgDominantColor()
+ {
+ return $this->imgDominantColor;
+ }
+ public function setImgSize($imgSize)
+ {
+ $this->imgSize = $imgSize;
+ }
+ public function getImgSize()
+ {
+ return $this->imgSize;
+ }
+ public function setImgType($imgType)
+ {
+ $this->imgType = $imgType;
+ }
+ public function getImgType()
+ {
+ return $this->imgType;
+ }
+ public function setInputEncoding($inputEncoding)
+ {
+ $this->inputEncoding = $inputEncoding;
+ }
+ public function getInputEncoding()
+ {
+ return $this->inputEncoding;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setLinkSite($linkSite)
+ {
+ $this->linkSite = $linkSite;
+ }
+ public function getLinkSite()
+ {
+ return $this->linkSite;
+ }
+ public function setLowRange($lowRange)
+ {
+ $this->lowRange = $lowRange;
+ }
+ public function getLowRange()
+ {
+ return $this->lowRange;
+ }
+ public function setOrTerms($orTerms)
+ {
+ $this->orTerms = $orTerms;
+ }
+ public function getOrTerms()
+ {
+ return $this->orTerms;
+ }
+ public function setOutputEncoding($outputEncoding)
+ {
+ $this->outputEncoding = $outputEncoding;
+ }
+ public function getOutputEncoding()
+ {
+ return $this->outputEncoding;
+ }
+ public function setRelatedSite($relatedSite)
+ {
+ $this->relatedSite = $relatedSite;
+ }
+ public function getRelatedSite()
+ {
+ return $this->relatedSite;
+ }
+ public function setRights($rights)
+ {
+ $this->rights = $rights;
+ }
+ public function getRights()
+ {
+ return $this->rights;
+ }
+ public function setSafe($safe)
+ {
+ $this->safe = $safe;
+ }
+ public function getSafe()
+ {
+ return $this->safe;
+ }
+ public function setSearchTerms($searchTerms)
+ {
+ $this->searchTerms = $searchTerms;
+ }
+ public function getSearchTerms()
+ {
+ return $this->searchTerms;
+ }
+ public function setSearchType($searchType)
+ {
+ $this->searchType = $searchType;
+ }
+ public function getSearchType()
+ {
+ return $this->searchType;
+ }
+ public function setSiteSearch($siteSearch)
+ {
+ $this->siteSearch = $siteSearch;
+ }
+ public function getSiteSearch()
+ {
+ return $this->siteSearch;
+ }
+ public function setSiteSearchFilter($siteSearchFilter)
+ {
+ $this->siteSearchFilter = $siteSearchFilter;
+ }
+ public function getSiteSearchFilter()
+ {
+ return $this->siteSearchFilter;
+ }
+ public function setSort($sort)
+ {
+ $this->sort = $sort;
+ }
+ public function getSort()
+ {
+ return $this->sort;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setStartPage($startPage)
+ {
+ $this->startPage = $startPage;
+ }
+ public function getStartPage()
+ {
+ return $this->startPage;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php
new file mode 100644
index 00000000..c70ebbf7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Resource/Cse.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "cse" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $customsearchService = new Google_Service_Customsearch(...);
+ * $cse = $customsearchService->cse;
+ * </code>
+ */
+class Google_Service_Customsearch_Resource_Cse extends Google_Service_Resource
+{
+ /**
+ * Returns metadata about the search performed, metadata about the custom search
+ * engine used for the search, and the search results. (cse.listCse)
+ *
+ * @param string $q Query
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string c2coff Turns off the translation between zh-CN and zh-TW.
+ * @opt_param string cr Country restrict(s).
+ * @opt_param string cref The URL of a linked custom search engine
+ * @opt_param string cx The custom search engine ID to scope this search query
+ * @opt_param string dateRestrict Specifies all search results are from a time
+ * period
+ * @opt_param string exactTerms Identifies a phrase that all documents in the
+ * search results must contain
+ * @opt_param string excludeTerms Identifies a word or phrase that should not
+ * appear in any documents in the search results
+ * @opt_param string fileType Returns images of a specified type. Some of the
+ * allowed values are: bmp, gif, png, jpg, svg, pdf, ...
+ * @opt_param string filter Controls turning on or off the duplicate content
+ * filter.
+ * @opt_param string gl Geolocation of end user.
+ * @opt_param string googlehost The local Google domain to use to perform the
+ * search.
+ * @opt_param string highRange Creates a range in form as_nlo value..as_nhi
+ * value and attempts to append it to query
+ * @opt_param string hl Sets the user interface language.
+ * @opt_param string hq Appends the extra query terms to the query.
+ * @opt_param string imgColorType Returns black and white, grayscale, or color
+ * images: mono, gray, and color.
+ * @opt_param string imgDominantColor Returns images of a specific dominant
+ * color: yellow, green, teal, blue, purple, pink, white, gray, black and brown.
+ * @opt_param string imgSize Returns images of a specified size, where size can
+ * be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
+ * @opt_param string imgType Returns images of a type, which can be one of:
+ * clipart, face, lineart, news, and photo.
+ * @opt_param string linkSite Specifies that all search results should contain a
+ * link to a particular URL
+ * @opt_param string lowRange Creates a range in form as_nlo value..as_nhi value
+ * and attempts to append it to query
+ * @opt_param string lr The language restriction for the search results
+ * @opt_param string num Number of search results to return
+ * @opt_param string orTerms Provides additional search terms to check for in a
+ * document, where each document in the search results must contain at least one
+ * of the additional search terms
+ * @opt_param string relatedSite Specifies that all search results should be
+ * pages that are related to the specified URL
+ * @opt_param string rights Filters based on licensing. Supported values
+ * include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial,
+ * cc_nonderived and combinations of these.
+ * @opt_param string safe Search safety level
+ * @opt_param string searchType Specifies the search type: image.
+ * @opt_param string siteSearch Specifies all search results should be pages
+ * from a given site
+ * @opt_param string siteSearchFilter Controls whether to include or exclude
+ * results from the site named in the as_sitesearch parameter
+ * @opt_param string sort The sort expression to apply to the results
+ * @opt_param string start The index of the first result to return
+ * @return Google_Service_Customsearch_Search
+ */
+ public function listCse($q, $optParams = array())
+ {
+ $params = array('q' => $q);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Customsearch_Search");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Result.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Result.php
new file mode 100644
index 00000000..8d32894f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Result.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_Result extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $cacheId;
+ public $displayLink;
+ public $fileFormat;
+ public $formattedUrl;
+ public $htmlFormattedUrl;
+ public $htmlSnippet;
+ public $htmlTitle;
+ protected $imageType = 'Google_Service_Customsearch_ResultImage';
+ protected $imageDataType = '';
+ public $kind;
+ protected $labelsType = 'Google_Service_Customsearch_ResultLabels';
+ protected $labelsDataType = 'array';
+ public $link;
+ public $mime;
+ public $pagemap;
+ public $snippet;
+ public $title;
+
+ public function setCacheId($cacheId)
+ {
+ $this->cacheId = $cacheId;
+ }
+ public function getCacheId()
+ {
+ return $this->cacheId;
+ }
+ public function setDisplayLink($displayLink)
+ {
+ $this->displayLink = $displayLink;
+ }
+ public function getDisplayLink()
+ {
+ return $this->displayLink;
+ }
+ public function setFileFormat($fileFormat)
+ {
+ $this->fileFormat = $fileFormat;
+ }
+ public function getFileFormat()
+ {
+ return $this->fileFormat;
+ }
+ public function setFormattedUrl($formattedUrl)
+ {
+ $this->formattedUrl = $formattedUrl;
+ }
+ public function getFormattedUrl()
+ {
+ return $this->formattedUrl;
+ }
+ public function setHtmlFormattedUrl($htmlFormattedUrl)
+ {
+ $this->htmlFormattedUrl = $htmlFormattedUrl;
+ }
+ public function getHtmlFormattedUrl()
+ {
+ return $this->htmlFormattedUrl;
+ }
+ public function setHtmlSnippet($htmlSnippet)
+ {
+ $this->htmlSnippet = $htmlSnippet;
+ }
+ public function getHtmlSnippet()
+ {
+ return $this->htmlSnippet;
+ }
+ public function setHtmlTitle($htmlTitle)
+ {
+ $this->htmlTitle = $htmlTitle;
+ }
+ public function getHtmlTitle()
+ {
+ return $this->htmlTitle;
+ }
+ public function setImage(Google_Service_Customsearch_ResultImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setMime($mime)
+ {
+ $this->mime = $mime;
+ }
+ public function getMime()
+ {
+ return $this->mime;
+ }
+ public function setPagemap($pagemap)
+ {
+ $this->pagemap = $pagemap;
+ }
+ public function getPagemap()
+ {
+ return $this->pagemap;
+ }
+ public function setSnippet($snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultImage.php
new file mode 100644
index 00000000..d48f967f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultImage.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_ResultImage extends Google_Model
+{
+ public $byteSize;
+ public $contextLink;
+ public $height;
+ public $thumbnailHeight;
+ public $thumbnailLink;
+ public $thumbnailWidth;
+ public $width;
+
+ public function setByteSize($byteSize)
+ {
+ $this->byteSize = $byteSize;
+ }
+ public function getByteSize()
+ {
+ return $this->byteSize;
+ }
+ public function setContextLink($contextLink)
+ {
+ $this->contextLink = $contextLink;
+ }
+ public function getContextLink()
+ {
+ return $this->contextLink;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setThumbnailHeight($thumbnailHeight)
+ {
+ $this->thumbnailHeight = $thumbnailHeight;
+ }
+ public function getThumbnailHeight()
+ {
+ return $this->thumbnailHeight;
+ }
+ public function setThumbnailLink($thumbnailLink)
+ {
+ $this->thumbnailLink = $thumbnailLink;
+ }
+ public function getThumbnailLink()
+ {
+ return $this->thumbnailLink;
+ }
+ public function setThumbnailWidth($thumbnailWidth)
+ {
+ $this->thumbnailWidth = $thumbnailWidth;
+ }
+ public function getThumbnailWidth()
+ {
+ return $this->thumbnailWidth;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultLabels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultLabels.php
new file mode 100644
index 00000000..8685e43e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/ResultLabels.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_ResultLabels extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "labelWithOp" => "label_with_op",
+ );
+ public $displayName;
+ public $labelWithOp;
+ public $name;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabelWithOp($labelWithOp)
+ {
+ $this->labelWithOp = $labelWithOp;
+ }
+ public function getLabelWithOp()
+ {
+ return $this->labelWithOp;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Search.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Search.php
new file mode 100644
index 00000000..be2c6836
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/Search.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_Search extends Google_Collection
+{
+ protected $collection_key = 'promotions';
+ protected $contextType = 'Google_Service_Customsearch_Context';
+ protected $contextDataType = '';
+ protected $itemsType = 'Google_Service_Customsearch_Result';
+ protected $itemsDataType = 'array';
+ public $kind;
+ protected $promotionsType = 'Google_Service_Customsearch_Promotion';
+ protected $promotionsDataType = 'array';
+ protected $queriesType = 'Google_Service_Customsearch_Query';
+ protected $queriesDataType = 'map';
+ protected $searchInformationType = 'Google_Service_Customsearch_SearchSearchInformation';
+ protected $searchInformationDataType = '';
+ protected $spellingType = 'Google_Service_Customsearch_SearchSpelling';
+ protected $spellingDataType = '';
+ protected $urlType = 'Google_Service_Customsearch_SearchUrl';
+ protected $urlDataType = '';
+
+ public function setContext(Google_Service_Customsearch_Context $context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPromotions($promotions)
+ {
+ $this->promotions = $promotions;
+ }
+ public function getPromotions()
+ {
+ return $this->promotions;
+ }
+ public function setQueries($queries)
+ {
+ $this->queries = $queries;
+ }
+ public function getQueries()
+ {
+ return $this->queries;
+ }
+ public function setSearchInformation(Google_Service_Customsearch_SearchSearchInformation $searchInformation)
+ {
+ $this->searchInformation = $searchInformation;
+ }
+ public function getSearchInformation()
+ {
+ return $this->searchInformation;
+ }
+ public function setSpelling(Google_Service_Customsearch_SearchSpelling $spelling)
+ {
+ $this->spelling = $spelling;
+ }
+ public function getSpelling()
+ {
+ return $this->spelling;
+ }
+ public function setUrl(Google_Service_Customsearch_SearchUrl $url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSearchInformation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSearchInformation.php
new file mode 100644
index 00000000..8c8b787d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSearchInformation.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_SearchSearchInformation extends Google_Model
+{
+ public $formattedSearchTime;
+ public $formattedTotalResults;
+ public $searchTime;
+ public $totalResults;
+
+ public function setFormattedSearchTime($formattedSearchTime)
+ {
+ $this->formattedSearchTime = $formattedSearchTime;
+ }
+ public function getFormattedSearchTime()
+ {
+ return $this->formattedSearchTime;
+ }
+ public function setFormattedTotalResults($formattedTotalResults)
+ {
+ $this->formattedTotalResults = $formattedTotalResults;
+ }
+ public function getFormattedTotalResults()
+ {
+ return $this->formattedTotalResults;
+ }
+ public function setSearchTime($searchTime)
+ {
+ $this->searchTime = $searchTime;
+ }
+ public function getSearchTime()
+ {
+ return $this->searchTime;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSpelling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSpelling.php
new file mode 100644
index 00000000..bf5351e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchSpelling.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_SearchSpelling extends Google_Model
+{
+ public $correctedQuery;
+ public $htmlCorrectedQuery;
+
+ public function setCorrectedQuery($correctedQuery)
+ {
+ $this->correctedQuery = $correctedQuery;
+ }
+ public function getCorrectedQuery()
+ {
+ return $this->correctedQuery;
+ }
+ public function setHtmlCorrectedQuery($htmlCorrectedQuery)
+ {
+ $this->htmlCorrectedQuery = $htmlCorrectedQuery;
+ }
+ public function getHtmlCorrectedQuery()
+ {
+ return $this->htmlCorrectedQuery;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchUrl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchUrl.php
new file mode 100644
index 00000000..a89e160f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Customsearch/SearchUrl.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Customsearch_SearchUrl extends Google_Model
+{
+ public $template;
+ public $type;
+
+ public function setTemplate($template)
+ {
+ $this->template = $template;
+ }
+ public function getTemplate()
+ {
+ return $this->template;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer.php
new file mode 100644
index 00000000..8bb7f3b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer.php
@@ -0,0 +1,147 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for DataTransfer (datatransfer_v1).
+ *
+ * <p>
+ * Transfers user data from one user to another.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/admin-sdk/data-transfer/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_DataTransfer extends Google_Service
+{
+ /** View and manage data transfers between users in your organization. */
+ const ADMIN_DATATRANSFER =
+ "https://www.googleapis.com/auth/admin.datatransfer";
+ /** View data transfers between users in your organization. */
+ const ADMIN_DATATRANSFER_READONLY =
+ "https://www.googleapis.com/auth/admin.datatransfer.readonly";
+
+ public $applications;
+ public $transfers;
+
+ /**
+ * Constructs the internal representation of the DataTransfer service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'admin/datatransfer/v1/';
+ $this->version = 'datatransfer_v1';
+ $this->serviceName = 'admin';
+
+ $this->applications = new Google_Service_DataTransfer_Resource_Applications(
+ $this,
+ $this->serviceName,
+ 'applications',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'applications/{applicationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'applications',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->transfers = new Google_Service_DataTransfer_Resource_Transfers(
+ $this,
+ $this->serviceName,
+ 'transfers',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'transfers/{dataTransferId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'dataTransferId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'transfers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'transfers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'newOwnerUserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'oldOwnerUserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Application.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Application.php
new file mode 100644
index 00000000..fe402a05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Application.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DataTransfer_Application extends Google_Collection
+{
+ protected $collection_key = 'transferParams';
+ public $etag;
+ public $id;
+ public $kind;
+ public $name;
+ protected $transferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam';
+ protected $transferParamsDataType = 'array';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTransferParams($transferParams)
+ {
+ $this->transferParams = $transferParams;
+ }
+ public function getTransferParams()
+ {
+ return $this->transferParams;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationDataTransfer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationDataTransfer.php
new file mode 100644
index 00000000..3b701c9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationDataTransfer.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DataTransfer_ApplicationDataTransfer extends Google_Collection
+{
+ protected $collection_key = 'applicationTransferParams';
+ public $applicationId;
+ protected $applicationTransferParamsType = 'Google_Service_DataTransfer_ApplicationTransferParam';
+ protected $applicationTransferParamsDataType = 'array';
+ public $applicationTransferStatus;
+
+ public function setApplicationId($applicationId)
+ {
+ $this->applicationId = $applicationId;
+ }
+ public function getApplicationId()
+ {
+ return $this->applicationId;
+ }
+ public function setApplicationTransferParams($applicationTransferParams)
+ {
+ $this->applicationTransferParams = $applicationTransferParams;
+ }
+ public function getApplicationTransferParams()
+ {
+ return $this->applicationTransferParams;
+ }
+ public function setApplicationTransferStatus($applicationTransferStatus)
+ {
+ $this->applicationTransferStatus = $applicationTransferStatus;
+ }
+ public function getApplicationTransferStatus()
+ {
+ return $this->applicationTransferStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationTransferParam.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationTransferParam.php
new file mode 100644
index 00000000..d9ebbf5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationTransferParam.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DataTransfer_ApplicationTransferParam extends Google_Collection
+{
+ protected $collection_key = 'value';
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationsListResponse.php
new file mode 100644
index 00000000..4d7f5e05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/ApplicationsListResponse.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DataTransfer_ApplicationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'applications';
+ protected $applicationsType = 'Google_Service_DataTransfer_Application';
+ protected $applicationsDataType = 'array';
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+
+ public function setApplications($applications)
+ {
+ $this->applications = $applications;
+ }
+ public function getApplications()
+ {
+ return $this->applications;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfer.php
new file mode 100644
index 00000000..70b666ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfer.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DataTransfer_DataTransfer extends Google_Collection
+{
+ protected $collection_key = 'applicationDataTransfers';
+ protected $applicationDataTransfersType = 'Google_Service_DataTransfer_ApplicationDataTransfer';
+ protected $applicationDataTransfersDataType = 'array';
+ public $etag;
+ public $id;
+ public $kind;
+ public $newOwnerUserId;
+ public $oldOwnerUserId;
+ public $overallTransferStatusCode;
+ public $requestTime;
+
+ public function setApplicationDataTransfers($applicationDataTransfers)
+ {
+ $this->applicationDataTransfers = $applicationDataTransfers;
+ }
+ public function getApplicationDataTransfers()
+ {
+ return $this->applicationDataTransfers;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewOwnerUserId($newOwnerUserId)
+ {
+ $this->newOwnerUserId = $newOwnerUserId;
+ }
+ public function getNewOwnerUserId()
+ {
+ return $this->newOwnerUserId;
+ }
+ public function setOldOwnerUserId($oldOwnerUserId)
+ {
+ $this->oldOwnerUserId = $oldOwnerUserId;
+ }
+ public function getOldOwnerUserId()
+ {
+ return $this->oldOwnerUserId;
+ }
+ public function setOverallTransferStatusCode($overallTransferStatusCode)
+ {
+ $this->overallTransferStatusCode = $overallTransferStatusCode;
+ }
+ public function getOverallTransferStatusCode()
+ {
+ return $this->overallTransferStatusCode;
+ }
+ public function setRequestTime($requestTime)
+ {
+ $this->requestTime = $requestTime;
+ }
+ public function getRequestTime()
+ {
+ return $this->requestTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfersListResponse.php
new file mode 100644
index 00000000..e4e016b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/DataTransfersListResponse.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DataTransfer_DataTransfersListResponse extends Google_Collection
+{
+ protected $collection_key = 'dataTransfers';
+ protected $dataTransfersType = 'Google_Service_DataTransfer_DataTransfer';
+ protected $dataTransfersDataType = 'array';
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+
+ public function setDataTransfers($dataTransfers)
+ {
+ $this->dataTransfers = $dataTransfers;
+ }
+ public function getDataTransfers()
+ {
+ return $this->dataTransfers;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Applications.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Applications.php
new file mode 100644
index 00000000..b16b46f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Applications.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "applications" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_DataTransfer(...);
+ * $applications = $adminService->applications;
+ * </code>
+ */
+class Google_Service_DataTransfer_Resource_Applications extends Google_Service_Resource
+{
+ /**
+ * Retrieves information about an application for the given application ID.
+ * (applications.get)
+ *
+ * @param string $applicationId ID of the application resource to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DataTransfer_Application
+ */
+ public function get($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DataTransfer_Application");
+ }
+ /**
+ * Lists the applications available for data transfer for a customer.
+ * (applications.listApplications)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerId Immutable ID of the Google Apps account.
+ * @opt_param int maxResults Maximum number of results to return. Default is
+ * 100.
+ * @opt_param string pageToken Token to specify next page in the list.
+ * @return Google_Service_DataTransfer_ApplicationsListResponse
+ */
+ public function listApplications($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DataTransfer_ApplicationsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Transfers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Transfers.php
new file mode 100644
index 00000000..34389dad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DataTransfer/Resource/Transfers.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "transfers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_DataTransfer(...);
+ * $transfers = $adminService->transfers;
+ * </code>
+ */
+class Google_Service_DataTransfer_Resource_Transfers extends Google_Service_Resource
+{
+ /**
+ * Retrieves a data transfer request by its resource ID. (transfers.get)
+ *
+ * @param string $dataTransferId ID of the resource to be retrieved. This is
+ * returned in the response from the insert method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DataTransfer_DataTransfer
+ */
+ public function get($dataTransferId, $optParams = array())
+ {
+ $params = array('dataTransferId' => $dataTransferId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DataTransfer_DataTransfer");
+ }
+ /**
+ * Inserts a data transfer request. (transfers.insert)
+ *
+ * @param Google_Service_DataTransfer_DataTransfer $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DataTransfer_DataTransfer
+ */
+ public function insert(Google_Service_DataTransfer_DataTransfer $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_DataTransfer_DataTransfer");
+ }
+ /**
+ * Lists the transfers for a customer by source user, destination user, or
+ * status. (transfers.listTransfers)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerId Immutable ID of the Google Apps account.
+ * @opt_param int maxResults Maximum number of results to return. Default is
+ * 100.
+ * @opt_param string newOwnerUserId Destination user's profile ID.
+ * @opt_param string oldOwnerUserId Source user's profile ID.
+ * @opt_param string pageToken Token to specify the next page in the list.
+ * @opt_param string status Status of the transfer.
+ * @return Google_Service_DataTransfer_DataTransfersListResponse
+ */
+ public function listTransfers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DataTransfer_DataTransfersListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow.php
new file mode 100644
index 00000000..a76d4dc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow.php
@@ -0,0 +1,628 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Dataflow (v1b3).
+ *
+ * <p>
+ * Manages Google Cloud Dataflow projects on Google Cloud Platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/dataflow" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Dataflow extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+
+ public $projects;
+ public $projects_jobs;
+ public $projects_jobs_debug;
+ public $projects_jobs_messages;
+ public $projects_jobs_workItems;
+ public $projects_locations_jobs;
+ public $projects_locations_jobs_messages;
+ public $projects_locations_jobs_workItems;
+ public $projects_templates;
+
+ /**
+ * Constructs the internal representation of the Dataflow service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://dataflow.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1b3';
+ $this->serviceName = 'dataflow';
+
+ $this->projects = new Google_Service_Dataflow_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'workerMessages' => array(
+ 'path' => 'v1b3/projects/{projectId}/WorkerMessages',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_jobs = new Google_Service_Dataflow_Resource_ProjectsJobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'replaceJobId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getMetrics' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/metrics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'location' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'location' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_jobs_debug = new Google_Service_Dataflow_Resource_ProjectsJobsDebug(
+ $this,
+ $this->serviceName,
+ 'debug',
+ array(
+ 'methods' => array(
+ 'getConfig' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'sendCapture' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_jobs_messages = new Google_Service_Dataflow_Resource_ProjectsJobsMessages(
+ $this,
+ $this->serviceName,
+ 'messages',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/messages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'location' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'minimumImportance' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_jobs_workItems = new Google_Service_Dataflow_Resource_ProjectsJobsWorkItems(
+ $this,
+ $this->serviceName,
+ 'workItems',
+ array(
+ 'methods' => array(
+ 'lease' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'reportStatus' => array(
+ 'path' => 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations_jobs = new Google_Service_Dataflow_Resource_ProjectsLocationsJobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'replaceJobId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getMetrics' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations_jobs_messages = new Google_Service_Dataflow_Resource_ProjectsLocationsJobsMessages(
+ $this,
+ $this->serviceName,
+ 'messages',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'minimumImportance' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_locations_jobs_workItems = new Google_Service_Dataflow_Resource_ProjectsLocationsJobsWorkItems(
+ $this,
+ $this->serviceName,
+ 'workItems',
+ array(
+ 'methods' => array(
+ 'lease' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'reportStatus' => array(
+ 'path' => 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'location' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_templates = new Google_Service_Dataflow_Resource_ProjectsTemplates(
+ $this,
+ $this->serviceName,
+ 'templates',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1b3/projects/{projectId}/templates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1b3/projects/{projectId}/templates:get',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'gcsPath' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'launch' => array(
+ 'path' => 'v1b3/projects/{projectId}/templates:launch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'gcsPath' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateProgress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateProgress.php
new file mode 100644
index 00000000..8cb3234d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateProgress.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ApproximateProgress extends Google_Model
+{
+ public $percentComplete;
+ protected $positionType = 'Google_Service_Dataflow_Position';
+ protected $positionDataType = '';
+ public $remainingTime;
+
+ public function setPercentComplete($percentComplete)
+ {
+ $this->percentComplete = $percentComplete;
+ }
+ public function getPercentComplete()
+ {
+ return $this->percentComplete;
+ }
+ public function setPosition(Google_Service_Dataflow_Position $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setRemainingTime($remainingTime)
+ {
+ $this->remainingTime = $remainingTime;
+ }
+ public function getRemainingTime()
+ {
+ return $this->remainingTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateReportedProgress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateReportedProgress.php
new file mode 100644
index 00000000..a74e93bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateReportedProgress.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ApproximateReportedProgress extends Google_Model
+{
+ protected $consumedParallelismType = 'Google_Service_Dataflow_ReportedParallelism';
+ protected $consumedParallelismDataType = '';
+ public $fractionConsumed;
+ protected $positionType = 'Google_Service_Dataflow_Position';
+ protected $positionDataType = '';
+ protected $remainingParallelismType = 'Google_Service_Dataflow_ReportedParallelism';
+ protected $remainingParallelismDataType = '';
+
+ public function setConsumedParallelism(Google_Service_Dataflow_ReportedParallelism $consumedParallelism)
+ {
+ $this->consumedParallelism = $consumedParallelism;
+ }
+ public function getConsumedParallelism()
+ {
+ return $this->consumedParallelism;
+ }
+ public function setFractionConsumed($fractionConsumed)
+ {
+ $this->fractionConsumed = $fractionConsumed;
+ }
+ public function getFractionConsumed()
+ {
+ return $this->fractionConsumed;
+ }
+ public function setPosition(Google_Service_Dataflow_Position $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setRemainingParallelism(Google_Service_Dataflow_ReportedParallelism $remainingParallelism)
+ {
+ $this->remainingParallelism = $remainingParallelism;
+ }
+ public function getRemainingParallelism()
+ {
+ return $this->remainingParallelism;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php
new file mode 100644
index 00000000..f37e7ef2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ApproximateSplitRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ApproximateSplitRequest extends Google_Model
+{
+ public $fractionConsumed;
+ protected $positionType = 'Google_Service_Dataflow_Position';
+ protected $positionDataType = '';
+
+ public function setFractionConsumed($fractionConsumed)
+ {
+ $this->fractionConsumed = $fractionConsumed;
+ }
+ public function getFractionConsumed()
+ {
+ return $this->fractionConsumed;
+ }
+ public function setPosition(Google_Service_Dataflow_Position $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/AutoscalingSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/AutoscalingSettings.php
new file mode 100644
index 00000000..457ae2e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/AutoscalingSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_AutoscalingSettings extends Google_Model
+{
+ public $algorithm;
+ public $maxNumWorkers;
+
+ public function setAlgorithm($algorithm)
+ {
+ $this->algorithm = $algorithm;
+ }
+ public function getAlgorithm()
+ {
+ return $this->algorithm;
+ }
+ public function setMaxNumWorkers($maxNumWorkers)
+ {
+ $this->maxNumWorkers = $maxNumWorkers;
+ }
+ public function getMaxNumWorkers()
+ {
+ return $this->maxNumWorkers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CPUTime.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CPUTime.php
new file mode 100644
index 00000000..346202f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CPUTime.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_CPUTime extends Google_Model
+{
+ public $rate;
+ public $timestamp;
+ public $totalMs;
+
+ public function setRate($rate)
+ {
+ $this->rate = $rate;
+ }
+ public function getRate()
+ {
+ return $this->rate;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setTotalMs($totalMs)
+ {
+ $this->totalMs = $totalMs;
+ }
+ public function getTotalMs()
+ {
+ return $this->totalMs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentSource.php
new file mode 100644
index 00000000..35860b7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentSource.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ComponentSource extends Google_Model
+{
+ public $name;
+ public $originalTransformOrCollection;
+ public $userName;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalTransformOrCollection($originalTransformOrCollection)
+ {
+ $this->originalTransformOrCollection = $originalTransformOrCollection;
+ }
+ public function getOriginalTransformOrCollection()
+ {
+ return $this->originalTransformOrCollection;
+ }
+ public function setUserName($userName)
+ {
+ $this->userName = $userName;
+ }
+ public function getUserName()
+ {
+ return $this->userName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentTransform.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentTransform.php
new file mode 100644
index 00000000..7c2f1d9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComponentTransform.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ComponentTransform extends Google_Model
+{
+ public $name;
+ public $originalTransform;
+ public $userName;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalTransform($originalTransform)
+ {
+ $this->originalTransform = $originalTransform;
+ }
+ public function getOriginalTransform()
+ {
+ return $this->originalTransform;
+ }
+ public function setUserName($userName)
+ {
+ $this->userName = $userName;
+ }
+ public function getUserName()
+ {
+ return $this->userName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComputationTopology.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComputationTopology.php
new file mode 100644
index 00000000..f6b7b06a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ComputationTopology.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ComputationTopology extends Google_Collection
+{
+ protected $collection_key = 'stateFamilies';
+ public $computationId;
+ protected $inputsType = 'Google_Service_Dataflow_StreamLocation';
+ protected $inputsDataType = 'array';
+ protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation';
+ protected $keyRangesDataType = 'array';
+ protected $outputsType = 'Google_Service_Dataflow_StreamLocation';
+ protected $outputsDataType = 'array';
+ protected $stateFamiliesType = 'Google_Service_Dataflow_StateFamilyConfig';
+ protected $stateFamiliesDataType = 'array';
+ public $systemStageName;
+ public $userStageName;
+
+ public function setComputationId($computationId)
+ {
+ $this->computationId = $computationId;
+ }
+ public function getComputationId()
+ {
+ return $this->computationId;
+ }
+ public function setInputs($inputs)
+ {
+ $this->inputs = $inputs;
+ }
+ public function getInputs()
+ {
+ return $this->inputs;
+ }
+ public function setKeyRanges($keyRanges)
+ {
+ $this->keyRanges = $keyRanges;
+ }
+ public function getKeyRanges()
+ {
+ return $this->keyRanges;
+ }
+ public function setOutputs($outputs)
+ {
+ $this->outputs = $outputs;
+ }
+ public function getOutputs()
+ {
+ return $this->outputs;
+ }
+ public function setStateFamilies($stateFamilies)
+ {
+ $this->stateFamilies = $stateFamilies;
+ }
+ public function getStateFamilies()
+ {
+ return $this->stateFamilies;
+ }
+ public function setSystemStageName($systemStageName)
+ {
+ $this->systemStageName = $systemStageName;
+ }
+ public function getSystemStageName()
+ {
+ return $this->systemStageName;
+ }
+ public function setUserStageName($userStageName)
+ {
+ $this->userStageName = $userStageName;
+ }
+ public function getUserStageName()
+ {
+ return $this->userStageName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ConcatPosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ConcatPosition.php
new file mode 100644
index 00000000..06f884a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ConcatPosition.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ConcatPosition extends Google_Model
+{
+ public $index;
+ protected $positionType = 'Google_Service_Dataflow_Position';
+ protected $positionDataType = '';
+
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setPosition(Google_Service_Dataflow_Position $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterMetadata.php
new file mode 100644
index 00000000..d0546068
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterMetadata.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_CounterMetadata extends Google_Model
+{
+ public $description;
+ public $kind;
+ public $otherUnits;
+ public $standardUnits;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOtherUnits($otherUnits)
+ {
+ $this->otherUnits = $otherUnits;
+ }
+ public function getOtherUnits()
+ {
+ return $this->otherUnits;
+ }
+ public function setStandardUnits($standardUnits)
+ {
+ $this->standardUnits = $standardUnits;
+ }
+ public function getStandardUnits()
+ {
+ return $this->standardUnits;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredName.php
new file mode 100644
index 00000000..defd6b1e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredName.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_CounterStructuredName extends Google_Model
+{
+ public $componentStepName;
+ public $executionStepName;
+ public $name;
+ public $origin;
+ public $originNamespace;
+ public $originalStepName;
+ public $portion;
+ public $workerId;
+
+ public function setComponentStepName($componentStepName)
+ {
+ $this->componentStepName = $componentStepName;
+ }
+ public function getComponentStepName()
+ {
+ return $this->componentStepName;
+ }
+ public function setExecutionStepName($executionStepName)
+ {
+ $this->executionStepName = $executionStepName;
+ }
+ public function getExecutionStepName()
+ {
+ return $this->executionStepName;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+ public function setOriginNamespace($originNamespace)
+ {
+ $this->originNamespace = $originNamespace;
+ }
+ public function getOriginNamespace()
+ {
+ return $this->originNamespace;
+ }
+ public function setOriginalStepName($originalStepName)
+ {
+ $this->originalStepName = $originalStepName;
+ }
+ public function getOriginalStepName()
+ {
+ return $this->originalStepName;
+ }
+ public function setPortion($portion)
+ {
+ $this->portion = $portion;
+ }
+ public function getPortion()
+ {
+ return $this->portion;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredNameAndMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredNameAndMetadata.php
new file mode 100644
index 00000000..4d22eaf3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterStructuredNameAndMetadata.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_CounterStructuredNameAndMetadata extends Google_Model
+{
+ protected $metadataType = 'Google_Service_Dataflow_CounterMetadata';
+ protected $metadataDataType = '';
+ protected $nameType = 'Google_Service_Dataflow_CounterStructuredName';
+ protected $nameDataType = '';
+
+ public function setMetadata(Google_Service_Dataflow_CounterMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName(Google_Service_Dataflow_CounterStructuredName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterUpdate.php
new file mode 100644
index 00000000..025d61b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CounterUpdate.php
@@ -0,0 +1,156 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_CounterUpdate extends Google_Model
+{
+ public $boolean;
+ public $cumulative;
+ protected $distributionType = 'Google_Service_Dataflow_DistributionUpdate';
+ protected $distributionDataType = '';
+ public $floatingPoint;
+ protected $floatingPointListType = 'Google_Service_Dataflow_FloatingPointList';
+ protected $floatingPointListDataType = '';
+ protected $floatingPointMeanType = 'Google_Service_Dataflow_FloatingPointMean';
+ protected $floatingPointMeanDataType = '';
+ protected $integerType = 'Google_Service_Dataflow_SplitInt64';
+ protected $integerDataType = '';
+ protected $integerListType = 'Google_Service_Dataflow_IntegerList';
+ protected $integerListDataType = '';
+ protected $integerMeanType = 'Google_Service_Dataflow_IntegerMean';
+ protected $integerMeanDataType = '';
+ public $internal;
+ protected $nameAndKindType = 'Google_Service_Dataflow_NameAndKind';
+ protected $nameAndKindDataType = '';
+ public $shortId;
+ protected $stringListType = 'Google_Service_Dataflow_StringList';
+ protected $stringListDataType = '';
+ protected $structuredNameAndMetadataType = 'Google_Service_Dataflow_CounterStructuredNameAndMetadata';
+ protected $structuredNameAndMetadataDataType = '';
+
+ public function setBoolean($boolean)
+ {
+ $this->boolean = $boolean;
+ }
+ public function getBoolean()
+ {
+ return $this->boolean;
+ }
+ public function setCumulative($cumulative)
+ {
+ $this->cumulative = $cumulative;
+ }
+ public function getCumulative()
+ {
+ return $this->cumulative;
+ }
+ public function setDistribution(Google_Service_Dataflow_DistributionUpdate $distribution)
+ {
+ $this->distribution = $distribution;
+ }
+ public function getDistribution()
+ {
+ return $this->distribution;
+ }
+ public function setFloatingPoint($floatingPoint)
+ {
+ $this->floatingPoint = $floatingPoint;
+ }
+ public function getFloatingPoint()
+ {
+ return $this->floatingPoint;
+ }
+ public function setFloatingPointList(Google_Service_Dataflow_FloatingPointList $floatingPointList)
+ {
+ $this->floatingPointList = $floatingPointList;
+ }
+ public function getFloatingPointList()
+ {
+ return $this->floatingPointList;
+ }
+ public function setFloatingPointMean(Google_Service_Dataflow_FloatingPointMean $floatingPointMean)
+ {
+ $this->floatingPointMean = $floatingPointMean;
+ }
+ public function getFloatingPointMean()
+ {
+ return $this->floatingPointMean;
+ }
+ public function setInteger(Google_Service_Dataflow_SplitInt64 $integer)
+ {
+ $this->integer = $integer;
+ }
+ public function getInteger()
+ {
+ return $this->integer;
+ }
+ public function setIntegerList(Google_Service_Dataflow_IntegerList $integerList)
+ {
+ $this->integerList = $integerList;
+ }
+ public function getIntegerList()
+ {
+ return $this->integerList;
+ }
+ public function setIntegerMean(Google_Service_Dataflow_IntegerMean $integerMean)
+ {
+ $this->integerMean = $integerMean;
+ }
+ public function getIntegerMean()
+ {
+ return $this->integerMean;
+ }
+ public function setInternal($internal)
+ {
+ $this->internal = $internal;
+ }
+ public function getInternal()
+ {
+ return $this->internal;
+ }
+ public function setNameAndKind(Google_Service_Dataflow_NameAndKind $nameAndKind)
+ {
+ $this->nameAndKind = $nameAndKind;
+ }
+ public function getNameAndKind()
+ {
+ return $this->nameAndKind;
+ }
+ public function setShortId($shortId)
+ {
+ $this->shortId = $shortId;
+ }
+ public function getShortId()
+ {
+ return $this->shortId;
+ }
+ public function setStringList(Google_Service_Dataflow_StringList $stringList)
+ {
+ $this->stringList = $stringList;
+ }
+ public function getStringList()
+ {
+ return $this->stringList;
+ }
+ public function setStructuredNameAndMetadata(Google_Service_Dataflow_CounterStructuredNameAndMetadata $structuredNameAndMetadata)
+ {
+ $this->structuredNameAndMetadata = $structuredNameAndMetadata;
+ }
+ public function getStructuredNameAndMetadata()
+ {
+ return $this->structuredNameAndMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CreateJobFromTemplateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CreateJobFromTemplateRequest.php
new file mode 100644
index 00000000..5d95c17e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CreateJobFromTemplateRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_CreateJobFromTemplateRequest extends Google_Model
+{
+ protected $environmentType = 'Google_Service_Dataflow_RuntimeEnvironment';
+ protected $environmentDataType = '';
+ public $gcsPath;
+ public $jobName;
+ public $parameters;
+
+ public function setEnvironment(Google_Service_Dataflow_RuntimeEnvironment $environment)
+ {
+ $this->environment = $environment;
+ }
+ public function getEnvironment()
+ {
+ return $this->environment;
+ }
+ public function setGcsPath($gcsPath)
+ {
+ $this->gcsPath = $gcsPath;
+ }
+ public function getGcsPath()
+ {
+ return $this->gcsPath;
+ }
+ public function setJobName($jobName)
+ {
+ $this->jobName = $jobName;
+ }
+ public function getJobName()
+ {
+ return $this->jobName;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CustomSourceLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CustomSourceLocation.php
new file mode 100644
index 00000000..953c4d66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/CustomSourceLocation.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_CustomSourceLocation extends Google_Model
+{
+ public $stateful;
+
+ public function setStateful($stateful)
+ {
+ $this->stateful = $stateful;
+ }
+ public function getStateful()
+ {
+ return $this->stateful;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DataDiskAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DataDiskAssignment.php
new file mode 100644
index 00000000..dc94b888
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DataDiskAssignment.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection
+{
+ protected $collection_key = 'dataDisks';
+ public $dataDisks;
+ public $vmInstance;
+
+ public function setDataDisks($dataDisks)
+ {
+ $this->dataDisks = $dataDisks;
+ }
+ public function getDataDisks()
+ {
+ return $this->dataDisks;
+ }
+ public function setVmInstance($vmInstance)
+ {
+ $this->vmInstance = $vmInstance;
+ }
+ public function getVmInstance()
+ {
+ return $this->vmInstance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DerivedSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DerivedSource.php
new file mode 100644
index 00000000..26c6d0ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DerivedSource.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_DerivedSource extends Google_Model
+{
+ public $derivationMode;
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+ public function setDerivationMode($derivationMode)
+ {
+ $this->derivationMode = $derivationMode;
+ }
+ public function getDerivationMode()
+ {
+ return $this->derivationMode;
+ }
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Disk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Disk.php
new file mode 100644
index 00000000..510ab3e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Disk.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Disk extends Google_Model
+{
+ public $diskType;
+ public $mountPoint;
+ public $sizeGb;
+
+ public function setDiskType($diskType)
+ {
+ $this->diskType = $diskType;
+ }
+ public function getDiskType()
+ {
+ return $this->diskType;
+ }
+ public function setMountPoint($mountPoint)
+ {
+ $this->mountPoint = $mountPoint;
+ }
+ public function getMountPoint()
+ {
+ return $this->mountPoint;
+ }
+ public function setSizeGb($sizeGb)
+ {
+ $this->sizeGb = $sizeGb;
+ }
+ public function getSizeGb()
+ {
+ return $this->sizeGb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DisplayData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DisplayData.php
new file mode 100644
index 00000000..5755a466
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DisplayData.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_DisplayData extends Google_Model
+{
+ public $boolValue;
+ public $durationValue;
+ public $floatValue;
+ public $int64Value;
+ public $javaClassValue;
+ public $key;
+ public $label;
+ public $namespace;
+ public $shortStrValue;
+ public $strValue;
+ public $timestampValue;
+ public $url;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setDurationValue($durationValue)
+ {
+ $this->durationValue = $durationValue;
+ }
+ public function getDurationValue()
+ {
+ return $this->durationValue;
+ }
+ public function setFloatValue($floatValue)
+ {
+ $this->floatValue = $floatValue;
+ }
+ public function getFloatValue()
+ {
+ return $this->floatValue;
+ }
+ public function setInt64Value($int64Value)
+ {
+ $this->int64Value = $int64Value;
+ }
+ public function getInt64Value()
+ {
+ return $this->int64Value;
+ }
+ public function setJavaClassValue($javaClassValue)
+ {
+ $this->javaClassValue = $javaClassValue;
+ }
+ public function getJavaClassValue()
+ {
+ return $this->javaClassValue;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setNamespace($namespace)
+ {
+ $this->namespace = $namespace;
+ }
+ public function getNamespace()
+ {
+ return $this->namespace;
+ }
+ public function setShortStrValue($shortStrValue)
+ {
+ $this->shortStrValue = $shortStrValue;
+ }
+ public function getShortStrValue()
+ {
+ return $this->shortStrValue;
+ }
+ public function setStrValue($strValue)
+ {
+ $this->strValue = $strValue;
+ }
+ public function getStrValue()
+ {
+ return $this->strValue;
+ }
+ public function setTimestampValue($timestampValue)
+ {
+ $this->timestampValue = $timestampValue;
+ }
+ public function getTimestampValue()
+ {
+ return $this->timestampValue;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DistributionUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DistributionUpdate.php
new file mode 100644
index 00000000..0776ed81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DistributionUpdate.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_DistributionUpdate extends Google_Model
+{
+ protected $countType = 'Google_Service_Dataflow_SplitInt64';
+ protected $countDataType = '';
+ protected $maxType = 'Google_Service_Dataflow_SplitInt64';
+ protected $maxDataType = '';
+ protected $minType = 'Google_Service_Dataflow_SplitInt64';
+ protected $minDataType = '';
+ protected $sumType = 'Google_Service_Dataflow_SplitInt64';
+ protected $sumDataType = '';
+ public $sumOfSquares;
+
+ public function setCount(Google_Service_Dataflow_SplitInt64 $count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setMax(Google_Service_Dataflow_SplitInt64 $max)
+ {
+ $this->max = $max;
+ }
+ public function getMax()
+ {
+ return $this->max;
+ }
+ public function setMin(Google_Service_Dataflow_SplitInt64 $min)
+ {
+ $this->min = $min;
+ }
+ public function getMin()
+ {
+ return $this->min;
+ }
+ public function setSum(Google_Service_Dataflow_SplitInt64 $sum)
+ {
+ $this->sum = $sum;
+ }
+ public function getSum()
+ {
+ return $this->sum;
+ }
+ public function setSumOfSquares($sumOfSquares)
+ {
+ $this->sumOfSquares = $sumOfSquares;
+ }
+ public function getSumOfSquares()
+ {
+ return $this->sumOfSquares;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DynamicSourceSplit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DynamicSourceSplit.php
new file mode 100644
index 00000000..e7eb306e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/DynamicSourceSplit.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_DynamicSourceSplit extends Google_Model
+{
+ protected $primaryType = 'Google_Service_Dataflow_DerivedSource';
+ protected $primaryDataType = '';
+ protected $residualType = 'Google_Service_Dataflow_DerivedSource';
+ protected $residualDataType = '';
+
+ public function setPrimary(Google_Service_Dataflow_DerivedSource $primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setResidual(Google_Service_Dataflow_DerivedSource $residual)
+ {
+ $this->residual = $residual;
+ }
+ public function getResidual()
+ {
+ return $this->residual;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Environment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Environment.php
new file mode 100644
index 00000000..893044cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Environment.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Environment extends Google_Collection
+{
+ protected $collection_key = 'workerPools';
+ public $clusterManagerApiService;
+ public $dataset;
+ public $experiments;
+ public $internalExperiments;
+ public $sdkPipelineOptions;
+ public $serviceAccountEmail;
+ public $tempStoragePrefix;
+ public $userAgent;
+ public $version;
+ protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool';
+ protected $workerPoolsDataType = 'array';
+
+ public function setClusterManagerApiService($clusterManagerApiService)
+ {
+ $this->clusterManagerApiService = $clusterManagerApiService;
+ }
+ public function getClusterManagerApiService()
+ {
+ return $this->clusterManagerApiService;
+ }
+ public function setDataset($dataset)
+ {
+ $this->dataset = $dataset;
+ }
+ public function getDataset()
+ {
+ return $this->dataset;
+ }
+ public function setExperiments($experiments)
+ {
+ $this->experiments = $experiments;
+ }
+ public function getExperiments()
+ {
+ return $this->experiments;
+ }
+ public function setInternalExperiments($internalExperiments)
+ {
+ $this->internalExperiments = $internalExperiments;
+ }
+ public function getInternalExperiments()
+ {
+ return $this->internalExperiments;
+ }
+ public function setSdkPipelineOptions($sdkPipelineOptions)
+ {
+ $this->sdkPipelineOptions = $sdkPipelineOptions;
+ }
+ public function getSdkPipelineOptions()
+ {
+ return $this->sdkPipelineOptions;
+ }
+ public function setServiceAccountEmail($serviceAccountEmail)
+ {
+ $this->serviceAccountEmail = $serviceAccountEmail;
+ }
+ public function getServiceAccountEmail()
+ {
+ return $this->serviceAccountEmail;
+ }
+ public function setTempStoragePrefix($tempStoragePrefix)
+ {
+ $this->tempStoragePrefix = $tempStoragePrefix;
+ }
+ public function getTempStoragePrefix()
+ {
+ return $this->tempStoragePrefix;
+ }
+ public function setUserAgent($userAgent)
+ {
+ $this->userAgent = $userAgent;
+ }
+ public function getUserAgent()
+ {
+ return $this->userAgent;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+ public function setWorkerPools($workerPools)
+ {
+ $this->workerPools = $workerPools;
+ }
+ public function getWorkerPools()
+ {
+ return $this->workerPools;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ExecutionStageSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ExecutionStageSummary.php
new file mode 100644
index 00000000..0015f6ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ExecutionStageSummary.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ExecutionStageSummary extends Google_Collection
+{
+ protected $collection_key = 'outputSource';
+ protected $componentSourceType = 'Google_Service_Dataflow_ComponentSource';
+ protected $componentSourceDataType = 'array';
+ protected $componentTransformType = 'Google_Service_Dataflow_ComponentTransform';
+ protected $componentTransformDataType = 'array';
+ public $id;
+ protected $inputSourceType = 'Google_Service_Dataflow_StageSource';
+ protected $inputSourceDataType = 'array';
+ public $kind;
+ public $name;
+ protected $outputSourceType = 'Google_Service_Dataflow_StageSource';
+ protected $outputSourceDataType = 'array';
+
+ public function setComponentSource($componentSource)
+ {
+ $this->componentSource = $componentSource;
+ }
+ public function getComponentSource()
+ {
+ return $this->componentSource;
+ }
+ public function setComponentTransform($componentTransform)
+ {
+ $this->componentTransform = $componentTransform;
+ }
+ public function getComponentTransform()
+ {
+ return $this->componentTransform;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInputSource($inputSource)
+ {
+ $this->inputSource = $inputSource;
+ }
+ public function getInputSource()
+ {
+ return $this->inputSource;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOutputSource($outputSource)
+ {
+ $this->outputSource = $outputSource;
+ }
+ public function getOutputSource()
+ {
+ return $this->outputSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FailedLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FailedLocation.php
new file mode 100644
index 00000000..86ad9bf0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FailedLocation.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_FailedLocation extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FlattenInstruction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FlattenInstruction.php
new file mode 100644
index 00000000..b553b04f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FlattenInstruction.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_FlattenInstruction extends Google_Collection
+{
+ protected $collection_key = 'inputs';
+ protected $inputsType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputsDataType = 'array';
+
+ public function setInputs($inputs)
+ {
+ $this->inputs = $inputs;
+ }
+ public function getInputs()
+ {
+ return $this->inputs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointList.php
new file mode 100644
index 00000000..82c587e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointList.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_FloatingPointList extends Google_Collection
+{
+ protected $collection_key = 'elements';
+ public $elements;
+
+ public function setElements($elements)
+ {
+ $this->elements = $elements;
+ }
+ public function getElements()
+ {
+ return $this->elements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointMean.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointMean.php
new file mode 100644
index 00000000..344fff82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/FloatingPointMean.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_FloatingPointMean extends Google_Model
+{
+ protected $countType = 'Google_Service_Dataflow_SplitInt64';
+ protected $countDataType = '';
+ public $sum;
+
+ public function setCount(Google_Service_Dataflow_SplitInt64 $count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setSum($sum)
+ {
+ $this->sum = $sum;
+ }
+ public function getSum()
+ {
+ return $this->sum;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigRequest.php
new file mode 100644
index 00000000..0b9c5738
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_GetDebugConfigRequest extends Google_Model
+{
+ public $componentId;
+ public $workerId;
+
+ public function setComponentId($componentId)
+ {
+ $this->componentId = $componentId;
+ }
+ public function getComponentId()
+ {
+ return $this->componentId;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigResponse.php
new file mode 100644
index 00000000..e5e033e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetDebugConfigResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_GetDebugConfigResponse extends Google_Model
+{
+ public $config;
+
+ public function setConfig($config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetTemplateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetTemplateResponse.php
new file mode 100644
index 00000000..532ac258
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/GetTemplateResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_GetTemplateResponse extends Google_Model
+{
+ protected $metadataType = 'Google_Service_Dataflow_TemplateMetadata';
+ protected $metadataDataType = '';
+ protected $statusType = 'Google_Service_Dataflow_Status';
+ protected $statusDataType = '';
+
+ public function setMetadata(Google_Service_Dataflow_TemplateMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setStatus(Google_Service_Dataflow_Status $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionInput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionInput.php
new file mode 100644
index 00000000..cee054b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionInput.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_InstructionInput extends Google_Model
+{
+ public $outputNum;
+ public $producerInstructionIndex;
+
+ public function setOutputNum($outputNum)
+ {
+ $this->outputNum = $outputNum;
+ }
+ public function getOutputNum()
+ {
+ return $this->outputNum;
+ }
+ public function setProducerInstructionIndex($producerInstructionIndex)
+ {
+ $this->producerInstructionIndex = $producerInstructionIndex;
+ }
+ public function getProducerInstructionIndex()
+ {
+ return $this->producerInstructionIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionOutput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionOutput.php
new file mode 100644
index 00000000..ceb12186
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/InstructionOutput.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_InstructionOutput extends Google_Model
+{
+ public $codec;
+ public $name;
+ public $onlyCountKeyBytes;
+ public $onlyCountValueBytes;
+ public $originalName;
+ public $systemName;
+
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOnlyCountKeyBytes($onlyCountKeyBytes)
+ {
+ $this->onlyCountKeyBytes = $onlyCountKeyBytes;
+ }
+ public function getOnlyCountKeyBytes()
+ {
+ return $this->onlyCountKeyBytes;
+ }
+ public function setOnlyCountValueBytes($onlyCountValueBytes)
+ {
+ $this->onlyCountValueBytes = $onlyCountValueBytes;
+ }
+ public function getOnlyCountValueBytes()
+ {
+ return $this->onlyCountValueBytes;
+ }
+ public function setOriginalName($originalName)
+ {
+ $this->originalName = $originalName;
+ }
+ public function getOriginalName()
+ {
+ return $this->originalName;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerList.php
new file mode 100644
index 00000000..98f733f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerList.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_IntegerList extends Google_Collection
+{
+ protected $collection_key = 'elements';
+ protected $elementsType = 'Google_Service_Dataflow_SplitInt64';
+ protected $elementsDataType = 'array';
+
+ public function setElements($elements)
+ {
+ $this->elements = $elements;
+ }
+ public function getElements()
+ {
+ return $this->elements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerMean.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerMean.php
new file mode 100644
index 00000000..a82b2813
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/IntegerMean.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_IntegerMean extends Google_Model
+{
+ protected $countType = 'Google_Service_Dataflow_SplitInt64';
+ protected $countDataType = '';
+ protected $sumType = 'Google_Service_Dataflow_SplitInt64';
+ protected $sumDataType = '';
+
+ public function setCount(Google_Service_Dataflow_SplitInt64 $count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setSum(Google_Service_Dataflow_SplitInt64 $sum)
+ {
+ $this->sum = $sum;
+ }
+ public function getSum()
+ {
+ return $this->sum;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Job.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Job.php
new file mode 100644
index 00000000..151c2876
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Job.php
@@ -0,0 +1,197 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Job extends Google_Collection
+{
+ protected $collection_key = 'tempFiles';
+ public $clientRequestId;
+ public $createTime;
+ public $currentState;
+ public $currentStateTime;
+ protected $environmentType = 'Google_Service_Dataflow_Environment';
+ protected $environmentDataType = '';
+ protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo';
+ protected $executionInfoDataType = '';
+ public $id;
+ public $labels;
+ public $location;
+ public $name;
+ protected $pipelineDescriptionType = 'Google_Service_Dataflow_PipelineDescription';
+ protected $pipelineDescriptionDataType = '';
+ public $projectId;
+ public $replaceJobId;
+ public $replacedByJobId;
+ public $requestedState;
+ protected $stepsType = 'Google_Service_Dataflow_Step';
+ protected $stepsDataType = 'array';
+ public $tempFiles;
+ public $transformNameMapping;
+ public $type;
+
+ public function setClientRequestId($clientRequestId)
+ {
+ $this->clientRequestId = $clientRequestId;
+ }
+ public function getClientRequestId()
+ {
+ return $this->clientRequestId;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setCurrentState($currentState)
+ {
+ $this->currentState = $currentState;
+ }
+ public function getCurrentState()
+ {
+ return $this->currentState;
+ }
+ public function setCurrentStateTime($currentStateTime)
+ {
+ $this->currentStateTime = $currentStateTime;
+ }
+ public function getCurrentStateTime()
+ {
+ return $this->currentStateTime;
+ }
+ public function setEnvironment(Google_Service_Dataflow_Environment $environment)
+ {
+ $this->environment = $environment;
+ }
+ public function getEnvironment()
+ {
+ return $this->environment;
+ }
+ public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo)
+ {
+ $this->executionInfo = $executionInfo;
+ }
+ public function getExecutionInfo()
+ {
+ return $this->executionInfo;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPipelineDescription(Google_Service_Dataflow_PipelineDescription $pipelineDescription)
+ {
+ $this->pipelineDescription = $pipelineDescription;
+ }
+ public function getPipelineDescription()
+ {
+ return $this->pipelineDescription;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setReplaceJobId($replaceJobId)
+ {
+ $this->replaceJobId = $replaceJobId;
+ }
+ public function getReplaceJobId()
+ {
+ return $this->replaceJobId;
+ }
+ public function setReplacedByJobId($replacedByJobId)
+ {
+ $this->replacedByJobId = $replacedByJobId;
+ }
+ public function getReplacedByJobId()
+ {
+ return $this->replacedByJobId;
+ }
+ public function setRequestedState($requestedState)
+ {
+ $this->requestedState = $requestedState;
+ }
+ public function getRequestedState()
+ {
+ return $this->requestedState;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+ public function setTempFiles($tempFiles)
+ {
+ $this->tempFiles = $tempFiles;
+ }
+ public function getTempFiles()
+ {
+ return $this->tempFiles;
+ }
+ public function setTransformNameMapping($transformNameMapping)
+ {
+ $this->transformNameMapping = $transformNameMapping;
+ }
+ public function getTransformNameMapping()
+ {
+ return $this->transformNameMapping;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionInfo.php
new file mode 100644
index 00000000..602dc87f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_JobExecutionInfo extends Google_Model
+{
+ protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo';
+ protected $stagesDataType = 'map';
+
+ public function setStages($stages)
+ {
+ $this->stages = $stages;
+ }
+ public function getStages()
+ {
+ return $this->stages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionStageInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionStageInfo.php
new file mode 100644
index 00000000..765af53c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobExecutionStageInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection
+{
+ protected $collection_key = 'stepName';
+ public $stepName;
+
+ public function setStepName($stepName)
+ {
+ $this->stepName = $stepName;
+ }
+ public function getStepName()
+ {
+ return $this->stepName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMessage.php
new file mode 100644
index 00000000..6ef9ad0e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMessage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_JobMessage extends Google_Model
+{
+ public $id;
+ public $messageImportance;
+ public $messageText;
+ public $time;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMessageImportance($messageImportance)
+ {
+ $this->messageImportance = $messageImportance;
+ }
+ public function getMessageImportance()
+ {
+ return $this->messageImportance;
+ }
+ public function setMessageText($messageText)
+ {
+ $this->messageText = $messageText;
+ }
+ public function getMessageText()
+ {
+ return $this->messageText;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMetrics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMetrics.php
new file mode 100644
index 00000000..c096b480
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/JobMetrics.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_JobMetrics extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ public $metricTime;
+ protected $metricsType = 'Google_Service_Dataflow_MetricUpdate';
+ protected $metricsDataType = 'array';
+
+ public function setMetricTime($metricTime)
+ {
+ $this->metricTime = $metricTime;
+ }
+ public function getMetricTime()
+ {
+ return $this->metricTime;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeDataDiskAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeDataDiskAssignment.php
new file mode 100644
index 00000000..b4cca2b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeDataDiskAssignment.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_KeyRangeDataDiskAssignment extends Google_Model
+{
+ public $dataDisk;
+ public $end;
+ public $start;
+
+ public function setDataDisk($dataDisk)
+ {
+ $this->dataDisk = $dataDisk;
+ }
+ public function getDataDisk()
+ {
+ return $this->dataDisk;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeLocation.php
new file mode 100644
index 00000000..0c398718
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/KeyRangeLocation.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_KeyRangeLocation extends Google_Model
+{
+ public $dataDisk;
+ public $deliveryEndpoint;
+ public $end;
+ public $persistentDirectory;
+ public $start;
+
+ public function setDataDisk($dataDisk)
+ {
+ $this->dataDisk = $dataDisk;
+ }
+ public function getDataDisk()
+ {
+ return $this->dataDisk;
+ }
+ public function setDeliveryEndpoint($deliveryEndpoint)
+ {
+ $this->deliveryEndpoint = $deliveryEndpoint;
+ }
+ public function getDeliveryEndpoint()
+ {
+ return $this->deliveryEndpoint;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setPersistentDirectory($persistentDirectory)
+ {
+ $this->persistentDirectory = $persistentDirectory;
+ }
+ public function getPersistentDirectory()
+ {
+ return $this->persistentDirectory;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateParameters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateParameters.php
new file mode 100644
index 00000000..6d8f02af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateParameters.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_LaunchTemplateParameters extends Google_Model
+{
+ protected $environmentType = 'Google_Service_Dataflow_RuntimeEnvironment';
+ protected $environmentDataType = '';
+ public $jobName;
+ public $parameters;
+
+ public function setEnvironment(Google_Service_Dataflow_RuntimeEnvironment $environment)
+ {
+ $this->environment = $environment;
+ }
+ public function getEnvironment()
+ {
+ return $this->environment;
+ }
+ public function setJobName($jobName)
+ {
+ $this->jobName = $jobName;
+ }
+ public function getJobName()
+ {
+ return $this->jobName;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateResponse.php
new file mode 100644
index 00000000..04e2a323
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LaunchTemplateResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_LaunchTemplateResponse extends Google_Model
+{
+ protected $jobType = 'Google_Service_Dataflow_Job';
+ protected $jobDataType = '';
+ protected $statusType = 'Google_Service_Dataflow_Status';
+ protected $statusDataType = '';
+
+ public function setJob(Google_Service_Dataflow_Job $job)
+ {
+ $this->job = $job;
+ }
+ public function getJob()
+ {
+ return $this->job;
+ }
+ public function setStatus(Google_Service_Dataflow_Status $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php
new file mode 100644
index 00000000..9a193a10
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemRequest.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection
+{
+ protected $collection_key = 'workerCapabilities';
+ public $currentWorkerTime;
+ public $location;
+ public $requestedLeaseDuration;
+ public $workItemTypes;
+ public $workerCapabilities;
+ public $workerId;
+
+ public function setCurrentWorkerTime($currentWorkerTime)
+ {
+ $this->currentWorkerTime = $currentWorkerTime;
+ }
+ public function getCurrentWorkerTime()
+ {
+ return $this->currentWorkerTime;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setRequestedLeaseDuration($requestedLeaseDuration)
+ {
+ $this->requestedLeaseDuration = $requestedLeaseDuration;
+ }
+ public function getRequestedLeaseDuration()
+ {
+ return $this->requestedLeaseDuration;
+ }
+ public function setWorkItemTypes($workItemTypes)
+ {
+ $this->workItemTypes = $workItemTypes;
+ }
+ public function getWorkItemTypes()
+ {
+ return $this->workItemTypes;
+ }
+ public function setWorkerCapabilities($workerCapabilities)
+ {
+ $this->workerCapabilities = $workerCapabilities;
+ }
+ public function getWorkerCapabilities()
+ {
+ return $this->workerCapabilities;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php
new file mode 100644
index 00000000..c4df8496
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/LeaseWorkItemResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection
+{
+ protected $collection_key = 'workItems';
+ protected $workItemsType = 'Google_Service_Dataflow_WorkItem';
+ protected $workItemsDataType = 'array';
+
+ public function setWorkItems($workItems)
+ {
+ $this->workItems = $workItems;
+ }
+ public function getWorkItems()
+ {
+ return $this->workItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobMessagesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobMessagesResponse.php
new file mode 100644
index 00000000..e71cdfb9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobMessagesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection
+{
+ protected $collection_key = 'jobMessages';
+ protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage';
+ protected $jobMessagesDataType = 'array';
+ public $nextPageToken;
+
+ public function setJobMessages($jobMessages)
+ {
+ $this->jobMessages = $jobMessages;
+ }
+ public function getJobMessages()
+ {
+ return $this->jobMessages;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobsResponse.php
new file mode 100644
index 00000000..65d7f213
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ListJobsResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ListJobsResponse extends Google_Collection
+{
+ protected $collection_key = 'jobs';
+ protected $failedLocationType = 'Google_Service_Dataflow_FailedLocation';
+ protected $failedLocationDataType = 'array';
+ protected $jobsType = 'Google_Service_Dataflow_Job';
+ protected $jobsDataType = 'array';
+ public $nextPageToken;
+
+ public function setFailedLocation($failedLocation)
+ {
+ $this->failedLocation = $failedLocation;
+ }
+ public function getFailedLocation()
+ {
+ return $this->failedLocation;
+ }
+ public function setJobs($jobs)
+ {
+ $this->jobs = $jobs;
+ }
+ public function getJobs()
+ {
+ return $this->jobs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php
new file mode 100644
index 00000000..c34ffcae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MapTask.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_MapTask extends Google_Collection
+{
+ protected $collection_key = 'instructions';
+ protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction';
+ protected $instructionsDataType = 'array';
+ public $stageName;
+ public $systemName;
+
+ public function setInstructions($instructions)
+ {
+ $this->instructions = $instructions;
+ }
+ public function getInstructions()
+ {
+ return $this->instructions;
+ }
+ public function setStageName($stageName)
+ {
+ $this->stageName = $stageName;
+ }
+ public function getStageName()
+ {
+ return $this->stageName;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricShortId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricShortId.php
new file mode 100644
index 00000000..f16334fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricShortId.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_MetricShortId extends Google_Model
+{
+ public $metricIndex;
+ public $shortId;
+
+ public function setMetricIndex($metricIndex)
+ {
+ $this->metricIndex = $metricIndex;
+ }
+ public function getMetricIndex()
+ {
+ return $this->metricIndex;
+ }
+ public function setShortId($shortId)
+ {
+ $this->shortId = $shortId;
+ }
+ public function getShortId()
+ {
+ return $this->shortId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricStructuredName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricStructuredName.php
new file mode 100644
index 00000000..93f44ee7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricStructuredName.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_MetricStructuredName extends Google_Model
+{
+ public $context;
+ public $name;
+ public $origin;
+
+ public function setContext($context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricUpdate.php
new file mode 100644
index 00000000..d3db38c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MetricUpdate.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_MetricUpdate extends Google_Model
+{
+ public $cumulative;
+ public $internal;
+ public $kind;
+ public $meanCount;
+ public $meanSum;
+ protected $nameType = 'Google_Service_Dataflow_MetricStructuredName';
+ protected $nameDataType = '';
+ public $scalar;
+ public $set;
+ public $updateTime;
+
+ public function setCumulative($cumulative)
+ {
+ $this->cumulative = $cumulative;
+ }
+ public function getCumulative()
+ {
+ return $this->cumulative;
+ }
+ public function setInternal($internal)
+ {
+ $this->internal = $internal;
+ }
+ public function getInternal()
+ {
+ return $this->internal;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMeanCount($meanCount)
+ {
+ $this->meanCount = $meanCount;
+ }
+ public function getMeanCount()
+ {
+ return $this->meanCount;
+ }
+ public function setMeanSum($meanSum)
+ {
+ $this->meanSum = $meanSum;
+ }
+ public function getMeanSum()
+ {
+ return $this->meanSum;
+ }
+ public function setName(Google_Service_Dataflow_MetricStructuredName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setScalar($scalar)
+ {
+ $this->scalar = $scalar;
+ }
+ public function getScalar()
+ {
+ return $this->scalar;
+ }
+ public function setSet($set)
+ {
+ $this->set = $set;
+ }
+ public function getSet()
+ {
+ return $this->set;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MountedDataDisk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MountedDataDisk.php
new file mode 100644
index 00000000..d718ca84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MountedDataDisk.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_MountedDataDisk extends Google_Model
+{
+ public $dataDisk;
+
+ public function setDataDisk($dataDisk)
+ {
+ $this->dataDisk = $dataDisk;
+ }
+ public function getDataDisk()
+ {
+ return $this->dataDisk;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MultiOutputInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MultiOutputInfo.php
new file mode 100644
index 00000000..ed025f9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/MultiOutputInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_MultiOutputInfo extends Google_Model
+{
+ public $tag;
+
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/NameAndKind.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/NameAndKind.php
new file mode 100644
index 00000000..31f3a8b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/NameAndKind.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_NameAndKind extends Google_Model
+{
+ public $kind;
+ public $name;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Package.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Package.php
new file mode 100644
index 00000000..7ca41364
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Package.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Package extends Google_Model
+{
+ public $location;
+ public $name;
+
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParDoInstruction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParDoInstruction.php
new file mode 100644
index 00000000..9978da58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParDoInstruction.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ParDoInstruction extends Google_Collection
+{
+ protected $collection_key = 'sideInputs';
+ protected $inputType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputDataType = '';
+ protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo';
+ protected $multiOutputInfosDataType = 'array';
+ public $numOutputs;
+ protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo';
+ protected $sideInputsDataType = 'array';
+ public $userFn;
+
+ public function setInput(Google_Service_Dataflow_InstructionInput $input)
+ {
+ $this->input = $input;
+ }
+ public function getInput()
+ {
+ return $this->input;
+ }
+ public function setMultiOutputInfos($multiOutputInfos)
+ {
+ $this->multiOutputInfos = $multiOutputInfos;
+ }
+ public function getMultiOutputInfos()
+ {
+ return $this->multiOutputInfos;
+ }
+ public function setNumOutputs($numOutputs)
+ {
+ $this->numOutputs = $numOutputs;
+ }
+ public function getNumOutputs()
+ {
+ return $this->numOutputs;
+ }
+ public function setSideInputs($sideInputs)
+ {
+ $this->sideInputs = $sideInputs;
+ }
+ public function getSideInputs()
+ {
+ return $this->sideInputs;
+ }
+ public function setUserFn($userFn)
+ {
+ $this->userFn = $userFn;
+ }
+ public function getUserFn()
+ {
+ return $this->userFn;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParallelInstruction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParallelInstruction.php
new file mode 100644
index 00000000..1efb2afb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParallelInstruction.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ParallelInstruction extends Google_Collection
+{
+ protected $collection_key = 'outputs';
+ protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction';
+ protected $flattenDataType = '';
+ public $name;
+ public $originalName;
+ protected $outputsType = 'Google_Service_Dataflow_InstructionOutput';
+ protected $outputsDataType = 'array';
+ protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction';
+ protected $parDoDataType = '';
+ protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction';
+ protected $partialGroupByKeyDataType = '';
+ protected $readType = 'Google_Service_Dataflow_ReadInstruction';
+ protected $readDataType = '';
+ public $systemName;
+ protected $writeType = 'Google_Service_Dataflow_WriteInstruction';
+ protected $writeDataType = '';
+
+ public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten)
+ {
+ $this->flatten = $flatten;
+ }
+ public function getFlatten()
+ {
+ return $this->flatten;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalName($originalName)
+ {
+ $this->originalName = $originalName;
+ }
+ public function getOriginalName()
+ {
+ return $this->originalName;
+ }
+ public function setOutputs($outputs)
+ {
+ $this->outputs = $outputs;
+ }
+ public function getOutputs()
+ {
+ return $this->outputs;
+ }
+ public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo)
+ {
+ $this->parDo = $parDo;
+ }
+ public function getParDo()
+ {
+ return $this->parDo;
+ }
+ public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey)
+ {
+ $this->partialGroupByKey = $partialGroupByKey;
+ }
+ public function getPartialGroupByKey()
+ {
+ return $this->partialGroupByKey;
+ }
+ public function setRead(Google_Service_Dataflow_ReadInstruction $read)
+ {
+ $this->read = $read;
+ }
+ public function getRead()
+ {
+ return $this->read;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+ public function setWrite(Google_Service_Dataflow_WriteInstruction $write)
+ {
+ $this->write = $write;
+ }
+ public function getWrite()
+ {
+ return $this->write;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParameterMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParameterMetadata.php
new file mode 100644
index 00000000..36038cc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ParameterMetadata.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ParameterMetadata extends Google_Collection
+{
+ protected $collection_key = 'regexes';
+ public $helpText;
+ public $isOptional;
+ public $label;
+ public $name;
+ public $regexes;
+
+ public function setHelpText($helpText)
+ {
+ $this->helpText = $helpText;
+ }
+ public function getHelpText()
+ {
+ return $this->helpText;
+ }
+ public function setIsOptional($isOptional)
+ {
+ $this->isOptional = $isOptional;
+ }
+ public function getIsOptional()
+ {
+ return $this->isOptional;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegexes($regexes)
+ {
+ $this->regexes = $regexes;
+ }
+ public function getRegexes()
+ {
+ return $this->regexes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PartialGroupByKeyInstruction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PartialGroupByKeyInstruction.php
new file mode 100644
index 00000000..85f514f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PartialGroupByKeyInstruction.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Collection
+{
+ protected $collection_key = 'sideInputs';
+ protected $inputType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputDataType = '';
+ public $inputElementCodec;
+ public $originalCombineValuesInputStoreName;
+ public $originalCombineValuesStepName;
+ protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo';
+ protected $sideInputsDataType = 'array';
+ public $valueCombiningFn;
+
+ public function setInput(Google_Service_Dataflow_InstructionInput $input)
+ {
+ $this->input = $input;
+ }
+ public function getInput()
+ {
+ return $this->input;
+ }
+ public function setInputElementCodec($inputElementCodec)
+ {
+ $this->inputElementCodec = $inputElementCodec;
+ }
+ public function getInputElementCodec()
+ {
+ return $this->inputElementCodec;
+ }
+ public function setOriginalCombineValuesInputStoreName($originalCombineValuesInputStoreName)
+ {
+ $this->originalCombineValuesInputStoreName = $originalCombineValuesInputStoreName;
+ }
+ public function getOriginalCombineValuesInputStoreName()
+ {
+ return $this->originalCombineValuesInputStoreName;
+ }
+ public function setOriginalCombineValuesStepName($originalCombineValuesStepName)
+ {
+ $this->originalCombineValuesStepName = $originalCombineValuesStepName;
+ }
+ public function getOriginalCombineValuesStepName()
+ {
+ return $this->originalCombineValuesStepName;
+ }
+ public function setSideInputs($sideInputs)
+ {
+ $this->sideInputs = $sideInputs;
+ }
+ public function getSideInputs()
+ {
+ return $this->sideInputs;
+ }
+ public function setValueCombiningFn($valueCombiningFn)
+ {
+ $this->valueCombiningFn = $valueCombiningFn;
+ }
+ public function getValueCombiningFn()
+ {
+ return $this->valueCombiningFn;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PipelineDescription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PipelineDescription.php
new file mode 100644
index 00000000..289da1f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PipelineDescription.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_PipelineDescription extends Google_Collection
+{
+ protected $collection_key = 'originalPipelineTransform';
+ protected $displayDataType = 'Google_Service_Dataflow_DisplayData';
+ protected $displayDataDataType = 'array';
+ protected $executionPipelineStageType = 'Google_Service_Dataflow_ExecutionStageSummary';
+ protected $executionPipelineStageDataType = 'array';
+ protected $originalPipelineTransformType = 'Google_Service_Dataflow_TransformSummary';
+ protected $originalPipelineTransformDataType = 'array';
+
+ public function setDisplayData($displayData)
+ {
+ $this->displayData = $displayData;
+ }
+ public function getDisplayData()
+ {
+ return $this->displayData;
+ }
+ public function setExecutionPipelineStage($executionPipelineStage)
+ {
+ $this->executionPipelineStage = $executionPipelineStage;
+ }
+ public function getExecutionPipelineStage()
+ {
+ return $this->executionPipelineStage;
+ }
+ public function setOriginalPipelineTransform($originalPipelineTransform)
+ {
+ $this->originalPipelineTransform = $originalPipelineTransform;
+ }
+ public function getOriginalPipelineTransform()
+ {
+ return $this->originalPipelineTransform;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Position.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Position.php
new file mode 100644
index 00000000..9942c245
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Position.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Position extends Google_Model
+{
+ public $byteOffset;
+ protected $concatPositionType = 'Google_Service_Dataflow_ConcatPosition';
+ protected $concatPositionDataType = '';
+ public $end;
+ public $key;
+ public $recordIndex;
+ public $shufflePosition;
+
+ public function setByteOffset($byteOffset)
+ {
+ $this->byteOffset = $byteOffset;
+ }
+ public function getByteOffset()
+ {
+ return $this->byteOffset;
+ }
+ public function setConcatPosition(Google_Service_Dataflow_ConcatPosition $concatPosition)
+ {
+ $this->concatPosition = $concatPosition;
+ }
+ public function getConcatPosition()
+ {
+ return $this->concatPosition;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setRecordIndex($recordIndex)
+ {
+ $this->recordIndex = $recordIndex;
+ }
+ public function getRecordIndex()
+ {
+ return $this->recordIndex;
+ }
+ public function setShufflePosition($shufflePosition)
+ {
+ $this->shufflePosition = $shufflePosition;
+ }
+ public function getShufflePosition()
+ {
+ return $this->shufflePosition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PubsubLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PubsubLocation.php
new file mode 100644
index 00000000..775e7ed6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/PubsubLocation.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_PubsubLocation extends Google_Model
+{
+ public $dropLateData;
+ public $idLabel;
+ public $subscription;
+ public $timestampLabel;
+ public $topic;
+ public $trackingSubscription;
+ public $withAttributes;
+
+ public function setDropLateData($dropLateData)
+ {
+ $this->dropLateData = $dropLateData;
+ }
+ public function getDropLateData()
+ {
+ return $this->dropLateData;
+ }
+ public function setIdLabel($idLabel)
+ {
+ $this->idLabel = $idLabel;
+ }
+ public function getIdLabel()
+ {
+ return $this->idLabel;
+ }
+ public function setSubscription($subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
+ }
+ public function setTimestampLabel($timestampLabel)
+ {
+ $this->timestampLabel = $timestampLabel;
+ }
+ public function getTimestampLabel()
+ {
+ return $this->timestampLabel;
+ }
+ public function setTopic($topic)
+ {
+ $this->topic = $topic;
+ }
+ public function getTopic()
+ {
+ return $this->topic;
+ }
+ public function setTrackingSubscription($trackingSubscription)
+ {
+ $this->trackingSubscription = $trackingSubscription;
+ }
+ public function getTrackingSubscription()
+ {
+ return $this->trackingSubscription;
+ }
+ public function setWithAttributes($withAttributes)
+ {
+ $this->withAttributes = $withAttributes;
+ }
+ public function getWithAttributes()
+ {
+ return $this->withAttributes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReadInstruction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReadInstruction.php
new file mode 100644
index 00000000..ed30b3de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReadInstruction.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ReadInstruction extends Google_Model
+{
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php
new file mode 100644
index 00000000..23cc2175
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusRequest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection
+{
+ protected $collection_key = 'workItemStatuses';
+ public $currentWorkerTime;
+ public $location;
+ protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus';
+ protected $workItemStatusesDataType = 'array';
+ public $workerId;
+
+ public function setCurrentWorkerTime($currentWorkerTime)
+ {
+ $this->currentWorkerTime = $currentWorkerTime;
+ }
+ public function getCurrentWorkerTime()
+ {
+ return $this->currentWorkerTime;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setWorkItemStatuses($workItemStatuses)
+ {
+ $this->workItemStatuses = $workItemStatuses;
+ }
+ public function getWorkItemStatuses()
+ {
+ return $this->workItemStatuses;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php
new file mode 100644
index 00000000..ec7e4202
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportWorkItemStatusResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection
+{
+ protected $collection_key = 'workItemServiceStates';
+ protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState';
+ protected $workItemServiceStatesDataType = 'array';
+
+ public function setWorkItemServiceStates($workItemServiceStates)
+ {
+ $this->workItemServiceStates = $workItemServiceStates;
+ }
+ public function getWorkItemServiceStates()
+ {
+ return $this->workItemServiceStates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportedParallelism.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportedParallelism.php
new file mode 100644
index 00000000..c0b1089e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ReportedParallelism.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ReportedParallelism extends Google_Model
+{
+ public $isInfinite;
+ public $value;
+
+ public function setIsInfinite($isInfinite)
+ {
+ $this->isInfinite = $isInfinite;
+ }
+ public function getIsInfinite()
+ {
+ return $this->isInfinite;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/Projects.php
new file mode 100644
index 00000000..cb87dc99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/Projects.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $projects = $dataflowService->projects;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Send a worker_message to the service. (projects.workerMessages)
+ *
+ * @param string $projectId The project to send the WorkerMessages to.
+ * @param Google_Service_Dataflow_SendWorkerMessagesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_SendWorkerMessagesResponse
+ */
+ public function workerMessages($projectId, Google_Service_Dataflow_SendWorkerMessagesRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('workerMessages', array($params), "Google_Service_Dataflow_SendWorkerMessagesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php
new file mode 100644
index 00000000..f7465aa8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobs.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $jobs = $dataflowService->jobs;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsJobs extends Google_Service_Resource
+{
+ /**
+ * Creates a Cloud Dataflow job. (jobs.create)
+ *
+ * @param string $projectId The ID of the Cloud Platform project that the job
+ * belongs to.
+ * @param Google_Service_Dataflow_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string location The location that contains this job.
+ * @opt_param string replaceJobId Deprecated. This field is now in the Job
+ * message.
+ * @opt_param string view The level of information requested in response.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Dataflow_Job");
+ }
+ /**
+ * Gets the state of the specified Cloud Dataflow job. (jobs.get)
+ *
+ * @param string $projectId The ID of the Cloud Platform project that the job
+ * belongs to.
+ * @param string $jobId The job ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string location The location that contains this job.
+ * @opt_param string view The level of information requested in response.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function get($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dataflow_Job");
+ }
+ /**
+ * Request the job status. (jobs.getMetrics)
+ *
+ * @param string $projectId A project id.
+ * @param string $jobId The job to get messages for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string startTime Return only metric data that has changed since
+ * this time. Default is to return all information about all metrics for the
+ * job.
+ * @opt_param string location The location which contains the job specified by
+ * job_id.
+ * @return Google_Service_Dataflow_JobMetrics
+ */
+ public function getMetrics($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics");
+ }
+ /**
+ * List the jobs of a project. (jobs.listProjectsJobs)
+ *
+ * @param string $projectId The project which owns the jobs.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The kind of filter to use.
+ * @opt_param string location The location that contains this job.
+ * @opt_param string pageToken Set this to the 'next_page_token' field of a
+ * previous response to request additional results in a long list.
+ * @opt_param int pageSize If there are many jobs, limit response to at most
+ * this many. The actual number of jobs returned will be the lesser of
+ * max_responses and an unspecified server-defined limit.
+ * @opt_param string view Level of information requested in response. Default is
+ * `JOB_VIEW_SUMMARY`.
+ * @return Google_Service_Dataflow_ListJobsResponse
+ */
+ public function listProjectsJobs($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse");
+ }
+ /**
+ * Updates the state of an existing Cloud Dataflow job. (jobs.update)
+ *
+ * @param string $projectId The ID of the Cloud Platform project that the job
+ * belongs to.
+ * @param string $jobId The job ID.
+ * @param Google_Service_Dataflow_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string location The location that contains this job.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dataflow_Job");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsDebug.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsDebug.php
new file mode 100644
index 00000000..ea70131e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsDebug.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "debug" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $debug = $dataflowService->debug;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsJobsDebug extends Google_Service_Resource
+{
+ /**
+ * Get encoded debug configuration for component. Not cacheable.
+ * (debug.getConfig)
+ *
+ * @param string $projectId The project id.
+ * @param string $jobId The job id.
+ * @param Google_Service_Dataflow_GetDebugConfigRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_GetDebugConfigResponse
+ */
+ public function getConfig($projectId, $jobId, Google_Service_Dataflow_GetDebugConfigRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getConfig', array($params), "Google_Service_Dataflow_GetDebugConfigResponse");
+ }
+ /**
+ * Send encoded debug capture data for component. (debug.sendCapture)
+ *
+ * @param string $projectId The project id.
+ * @param string $jobId The job id.
+ * @param Google_Service_Dataflow_SendDebugCaptureRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_SendDebugCaptureResponse
+ */
+ public function sendCapture($projectId, $jobId, Google_Service_Dataflow_SendDebugCaptureRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('sendCapture', array($params), "Google_Service_Dataflow_SendDebugCaptureResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php
new file mode 100644
index 00000000..e9740951
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsMessages.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "messages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $messages = $dataflowService->messages;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsJobsMessages extends Google_Service_Resource
+{
+ /**
+ * Request the job status. (messages.listProjectsJobsMessages)
+ *
+ * @param string $projectId A project id.
+ * @param string $jobId The job to get messages about.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endTime Return only messages with timestamps < end_time.
+ * The default is now (i.e. return up to the latest messages available).
+ * @opt_param string location The location which contains the job specified by
+ * job_id.
+ * @opt_param string pageToken If supplied, this should be the value of
+ * next_page_token returned by an earlier call. This will cause the next page of
+ * results to be returned.
+ * @opt_param string startTime If specified, return only messages with
+ * timestamps >= start_time. The default is the job creation time (i.e.
+ * beginning of messages).
+ * @opt_param int pageSize If specified, determines the maximum number of
+ * messages to return. If unspecified, the service may choose an appropriate
+ * default, or may return an arbitrarily large number of results.
+ * @opt_param string minimumImportance Filter to only get messages with
+ * importance >= level
+ * @return Google_Service_Dataflow_ListJobMessagesResponse
+ */
+ public function listProjectsJobsMessages($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsWorkItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsWorkItems.php
new file mode 100644
index 00000000..82c3b780
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsJobsWorkItems.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "workItems" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $workItems = $dataflowService->workItems;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsJobsWorkItems extends Google_Service_Resource
+{
+ /**
+ * Leases a dataflow WorkItem to run. (workItems.lease)
+ *
+ * @param string $projectId Identifies the project this worker belongs to.
+ * @param string $jobId Identifies the workflow job this worker belongs to.
+ * @param Google_Service_Dataflow_LeaseWorkItemRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_LeaseWorkItemResponse
+ */
+ public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse");
+ }
+ /**
+ * Reports the status of dataflow WorkItems leased by a worker.
+ * (workItems.reportStatus)
+ *
+ * @param string $projectId The project which owns the WorkItem's job.
+ * @param string $jobId The job which the WorkItem is part of.
+ * @param Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_ReportWorkItemStatusResponse
+ */
+ public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php
new file mode 100644
index 00000000..ebf4947d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocations.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "locations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $locations = $dataflowService->locations;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsLocations extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php
new file mode 100644
index 00000000..5c4d2679
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobs.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $jobs = $dataflowService->jobs;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsLocationsJobs extends Google_Service_Resource
+{
+ /**
+ * Creates a Cloud Dataflow job. (jobs.create)
+ *
+ * @param string $projectId The ID of the Cloud Platform project that the job
+ * belongs to.
+ * @param string $location The location that contains this job.
+ * @param Google_Service_Dataflow_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string replaceJobId Deprecated. This field is now in the Job
+ * message.
+ * @opt_param string view The level of information requested in response.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function create($projectId, $location, Google_Service_Dataflow_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Dataflow_Job");
+ }
+ /**
+ * Gets the state of the specified Cloud Dataflow job. (jobs.get)
+ *
+ * @param string $projectId The ID of the Cloud Platform project that the job
+ * belongs to.
+ * @param string $location The location that contains this job.
+ * @param string $jobId The job ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view The level of information requested in response.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function get($projectId, $location, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dataflow_Job");
+ }
+ /**
+ * Request the job status. (jobs.getMetrics)
+ *
+ * @param string $projectId A project id.
+ * @param string $location The location which contains the job specified by
+ * job_id.
+ * @param string $jobId The job to get messages for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string startTime Return only metric data that has changed since
+ * this time. Default is to return all information about all metrics for the
+ * job.
+ * @return Google_Service_Dataflow_JobMetrics
+ */
+ public function getMetrics($projectId, $location, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics");
+ }
+ /**
+ * List the jobs of a project. (jobs.listProjectsLocationsJobs)
+ *
+ * @param string $projectId The project which owns the jobs.
+ * @param string $location The location that contains this job.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The kind of filter to use.
+ * @opt_param string pageToken Set this to the 'next_page_token' field of a
+ * previous response to request additional results in a long list.
+ * @opt_param int pageSize If there are many jobs, limit response to at most
+ * this many. The actual number of jobs returned will be the lesser of
+ * max_responses and an unspecified server-defined limit.
+ * @opt_param string view Level of information requested in response. Default is
+ * `JOB_VIEW_SUMMARY`.
+ * @return Google_Service_Dataflow_ListJobsResponse
+ */
+ public function listProjectsLocationsJobs($projectId, $location, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse");
+ }
+ /**
+ * Updates the state of an existing Cloud Dataflow job. (jobs.update)
+ *
+ * @param string $projectId The ID of the Cloud Platform project that the job
+ * belongs to.
+ * @param string $location The location that contains this job.
+ * @param string $jobId The job ID.
+ * @param Google_Service_Dataflow_Job $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function update($projectId, $location, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dataflow_Job");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php
new file mode 100644
index 00000000..822af3f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsMessages.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "messages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $messages = $dataflowService->messages;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsLocationsJobsMessages extends Google_Service_Resource
+{
+ /**
+ * Request the job status. (messages.listProjectsLocationsJobsMessages)
+ *
+ * @param string $projectId A project id.
+ * @param string $location The location which contains the job specified by
+ * job_id.
+ * @param string $jobId The job to get messages about.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endTime Return only messages with timestamps < end_time.
+ * The default is now (i.e. return up to the latest messages available).
+ * @opt_param string startTime If specified, return only messages with
+ * timestamps >= start_time. The default is the job creation time (i.e.
+ * beginning of messages).
+ * @opt_param string pageToken If supplied, this should be the value of
+ * next_page_token returned by an earlier call. This will cause the next page of
+ * results to be returned.
+ * @opt_param int pageSize If specified, determines the maximum number of
+ * messages to return. If unspecified, the service may choose an appropriate
+ * default, or may return an arbitrarily large number of results.
+ * @opt_param string minimumImportance Filter to only get messages with
+ * importance >= level
+ * @return Google_Service_Dataflow_ListJobMessagesResponse
+ */
+ public function listProjectsLocationsJobsMessages($projectId, $location, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php
new file mode 100644
index 00000000..ca422936
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsLocationsJobsWorkItems.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "workItems" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $workItems = $dataflowService->workItems;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsLocationsJobsWorkItems extends Google_Service_Resource
+{
+ /**
+ * Leases a dataflow WorkItem to run. (workItems.lease)
+ *
+ * @param string $projectId Identifies the project this worker belongs to.
+ * @param string $location The location which contains the WorkItem's job.
+ * @param string $jobId Identifies the workflow job this worker belongs to.
+ * @param Google_Service_Dataflow_LeaseWorkItemRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_LeaseWorkItemResponse
+ */
+ public function lease($projectId, $location, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse");
+ }
+ /**
+ * Reports the status of dataflow WorkItems leased by a worker.
+ * (workItems.reportStatus)
+ *
+ * @param string $projectId The project which owns the WorkItem's job.
+ * @param string $location The location which contains the WorkItem's job.
+ * @param string $jobId The job which the WorkItem is part of.
+ * @param Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_ReportWorkItemStatusResponse
+ */
+ public function reportStatus($projectId, $location, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'location' => $location, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php
new file mode 100644
index 00000000..ff18cd72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Resource/ProjectsTemplates.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "templates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $templates = $dataflowService->templates;
+ * </code>
+ */
+class Google_Service_Dataflow_Resource_ProjectsTemplates extends Google_Service_Resource
+{
+ /**
+ * Creates a Cloud Dataflow job from a template. (templates.create)
+ *
+ * @param string $projectId Required. The ID of the Cloud Platform project that
+ * the job belongs to.
+ * @param Google_Service_Dataflow_CreateJobFromTemplateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function create($projectId, Google_Service_Dataflow_CreateJobFromTemplateRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Dataflow_Job");
+ }
+ /**
+ * Get the template associated with a template. (templates.get)
+ *
+ * @param string $projectId Required. The ID of the Cloud Platform project that
+ * the job belongs to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view The view to retrieve. Defaults to METADATA_ONLY.
+ * @opt_param string gcsPath Required. A Cloud Storage path to the template from
+ * which to create the job. Must be a valid Cloud Storage URL, beginning with
+ * `gs://`.
+ * @return Google_Service_Dataflow_GetTemplateResponse
+ */
+ public function get($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dataflow_GetTemplateResponse");
+ }
+ /**
+ * Launch a template. (templates.launch)
+ *
+ * @param string $projectId Required. The ID of the Cloud Platform project that
+ * the job belongs to.
+ * @param Google_Service_Dataflow_LaunchTemplateParameters $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string gcsPath Required. A Cloud Storage path to the template from
+ * which to create the job. Must be valid Cloud Storage URL, beginning with
+ * 'gs://'.
+ * @opt_param bool dryRun Whether or not the job should actually be executed
+ * after validating parameters. Defaults to false. Validation errors do not
+ * cause the HTTP request to fail if true.
+ * @return Google_Service_Dataflow_LaunchTemplateResponse
+ */
+ public function launch($projectId, Google_Service_Dataflow_LaunchTemplateParameters $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('launch', array($params), "Google_Service_Dataflow_LaunchTemplateResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReport.php
new file mode 100644
index 00000000..7bafe4e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReport.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ResourceUtilizationReport extends Google_Collection
+{
+ protected $collection_key = 'cpuTime';
+ protected $cpuTimeType = 'Google_Service_Dataflow_CPUTime';
+ protected $cpuTimeDataType = 'array';
+
+ public function setCpuTime($cpuTime)
+ {
+ $this->cpuTime = $cpuTime;
+ }
+ public function getCpuTime()
+ {
+ return $this->cpuTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReportResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReportResponse.php
new file mode 100644
index 00000000..82d07b32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ResourceUtilizationReportResponse.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ResourceUtilizationReportResponse extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php
new file mode 100644
index 00000000..7e4fc45d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/RuntimeEnvironment.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_RuntimeEnvironment extends Google_Model
+{
+ public $bypassTempDirValidation;
+ public $maxWorkers;
+ public $serviceAccountEmail;
+ public $tempLocation;
+ public $zone;
+
+ public function setBypassTempDirValidation($bypassTempDirValidation)
+ {
+ $this->bypassTempDirValidation = $bypassTempDirValidation;
+ }
+ public function getBypassTempDirValidation()
+ {
+ return $this->bypassTempDirValidation;
+ }
+ public function setMaxWorkers($maxWorkers)
+ {
+ $this->maxWorkers = $maxWorkers;
+ }
+ public function getMaxWorkers()
+ {
+ return $this->maxWorkers;
+ }
+ public function setServiceAccountEmail($serviceAccountEmail)
+ {
+ $this->serviceAccountEmail = $serviceAccountEmail;
+ }
+ public function getServiceAccountEmail()
+ {
+ return $this->serviceAccountEmail;
+ }
+ public function setTempLocation($tempLocation)
+ {
+ $this->tempLocation = $tempLocation;
+ }
+ public function getTempLocation()
+ {
+ return $this->tempLocation;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureRequest.php
new file mode 100644
index 00000000..07c1688f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureRequest.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SendDebugCaptureRequest extends Google_Model
+{
+ public $componentId;
+ public $data;
+ public $workerId;
+
+ public function setComponentId($componentId)
+ {
+ $this->componentId = $componentId;
+ }
+ public function getComponentId()
+ {
+ return $this->componentId;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureResponse.php
new file mode 100644
index 00000000..99d30d74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendDebugCaptureResponse.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SendDebugCaptureResponse extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesRequest.php
new file mode 100644
index 00000000..39dbdd91
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SendWorkerMessagesRequest extends Google_Collection
+{
+ protected $collection_key = 'workerMessages';
+ protected $workerMessagesType = 'Google_Service_Dataflow_WorkerMessage';
+ protected $workerMessagesDataType = 'array';
+
+ public function setWorkerMessages($workerMessages)
+ {
+ $this->workerMessages = $workerMessages;
+ }
+ public function getWorkerMessages()
+ {
+ return $this->workerMessages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesResponse.php
new file mode 100644
index 00000000..eab6a5d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SendWorkerMessagesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SendWorkerMessagesResponse extends Google_Collection
+{
+ protected $collection_key = 'workerMessageResponses';
+ protected $workerMessageResponsesType = 'Google_Service_Dataflow_WorkerMessageResponse';
+ protected $workerMessageResponsesDataType = 'array';
+
+ public function setWorkerMessageResponses($workerMessageResponses)
+ {
+ $this->workerMessageResponses = $workerMessageResponses;
+ }
+ public function getWorkerMessageResponses()
+ {
+ return $this->workerMessageResponses;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTask.php
new file mode 100644
index 00000000..0b6450c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTask.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SeqMapTask extends Google_Collection
+{
+ protected $collection_key = 'outputInfos';
+ protected $inputsType = 'Google_Service_Dataflow_SideInputInfo';
+ protected $inputsDataType = 'array';
+ public $name;
+ protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo';
+ protected $outputInfosDataType = 'array';
+ public $stageName;
+ public $systemName;
+ public $userFn;
+
+ public function setInputs($inputs)
+ {
+ $this->inputs = $inputs;
+ }
+ public function getInputs()
+ {
+ return $this->inputs;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOutputInfos($outputInfos)
+ {
+ $this->outputInfos = $outputInfos;
+ }
+ public function getOutputInfos()
+ {
+ return $this->outputInfos;
+ }
+ public function setStageName($stageName)
+ {
+ $this->stageName = $stageName;
+ }
+ public function getStageName()
+ {
+ return $this->stageName;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+ public function setUserFn($userFn)
+ {
+ $this->userFn = $userFn;
+ }
+ public function getUserFn()
+ {
+ return $this->userFn;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTaskOutputInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTaskOutputInfo.php
new file mode 100644
index 00000000..92049428
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SeqMapTaskOutputInfo.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model
+{
+ protected $sinkType = 'Google_Service_Dataflow_Sink';
+ protected $sinkDataType = '';
+ public $tag;
+
+ public function setSink(Google_Service_Dataflow_Sink $sink)
+ {
+ $this->sink = $sink;
+ }
+ public function getSink()
+ {
+ return $this->sink;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ShellTask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ShellTask.php
new file mode 100644
index 00000000..5ff9c107
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/ShellTask.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_ShellTask extends Google_Model
+{
+ public $command;
+ public $exitCode;
+
+ public function setCommand($command)
+ {
+ $this->command = $command;
+ }
+ public function getCommand()
+ {
+ return $this->command;
+ }
+ public function setExitCode($exitCode)
+ {
+ $this->exitCode = $exitCode;
+ }
+ public function getExitCode()
+ {
+ return $this->exitCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SideInputInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SideInputInfo.php
new file mode 100644
index 00000000..6f863788
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SideInputInfo.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SideInputInfo extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ public $kind;
+ protected $sourcesType = 'Google_Service_Dataflow_Source';
+ protected $sourcesDataType = 'array';
+ public $tag;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Sink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Sink.php
new file mode 100644
index 00000000..18e8c52f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Sink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Sink extends Google_Model
+{
+ public $codec;
+ public $spec;
+
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setSpec($spec)
+ {
+ $this->spec = $spec;
+ }
+ public function getSpec()
+ {
+ return $this->spec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Source.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Source.php
new file mode 100644
index 00000000..587ee0bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Source.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Source extends Google_Collection
+{
+ protected $collection_key = 'baseSpecs';
+ public $baseSpecs;
+ public $codec;
+ public $doesNotNeedSplitting;
+ protected $metadataType = 'Google_Service_Dataflow_SourceMetadata';
+ protected $metadataDataType = '';
+ public $spec;
+
+ public function setBaseSpecs($baseSpecs)
+ {
+ $this->baseSpecs = $baseSpecs;
+ }
+ public function getBaseSpecs()
+ {
+ return $this->baseSpecs;
+ }
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setDoesNotNeedSplitting($doesNotNeedSplitting)
+ {
+ $this->doesNotNeedSplitting = $doesNotNeedSplitting;
+ }
+ public function getDoesNotNeedSplitting()
+ {
+ return $this->doesNotNeedSplitting;
+ }
+ public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setSpec($spec)
+ {
+ $this->spec = $spec;
+ }
+ public function getSpec()
+ {
+ return $this->spec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceFork.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceFork.php
new file mode 100644
index 00000000..810201f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceFork.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceFork extends Google_Model
+{
+ protected $primaryType = 'Google_Service_Dataflow_SourceSplitShard';
+ protected $primaryDataType = '';
+ protected $primarySourceType = 'Google_Service_Dataflow_DerivedSource';
+ protected $primarySourceDataType = '';
+ protected $residualType = 'Google_Service_Dataflow_SourceSplitShard';
+ protected $residualDataType = '';
+ protected $residualSourceType = 'Google_Service_Dataflow_DerivedSource';
+ protected $residualSourceDataType = '';
+
+ public function setPrimary(Google_Service_Dataflow_SourceSplitShard $primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setPrimarySource(Google_Service_Dataflow_DerivedSource $primarySource)
+ {
+ $this->primarySource = $primarySource;
+ }
+ public function getPrimarySource()
+ {
+ return $this->primarySource;
+ }
+ public function setResidual(Google_Service_Dataflow_SourceSplitShard $residual)
+ {
+ $this->residual = $residual;
+ }
+ public function getResidual()
+ {
+ return $this->residual;
+ }
+ public function setResidualSource(Google_Service_Dataflow_DerivedSource $residualSource)
+ {
+ $this->residualSource = $residualSource;
+ }
+ public function getResidualSource()
+ {
+ return $this->residualSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataRequest.php
new file mode 100644
index 00000000..4baff3b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model
+{
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataResponse.php
new file mode 100644
index 00000000..dda0e312
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceGetMetadataResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model
+{
+ protected $metadataType = 'Google_Service_Dataflow_SourceMetadata';
+ protected $metadataDataType = '';
+
+ public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceMetadata.php
new file mode 100644
index 00000000..2512f4a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceMetadata.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceMetadata extends Google_Model
+{
+ public $estimatedSizeBytes;
+ public $infinite;
+ public $producesSortedKeys;
+
+ public function setEstimatedSizeBytes($estimatedSizeBytes)
+ {
+ $this->estimatedSizeBytes = $estimatedSizeBytes;
+ }
+ public function getEstimatedSizeBytes()
+ {
+ return $this->estimatedSizeBytes;
+ }
+ public function setInfinite($infinite)
+ {
+ $this->infinite = $infinite;
+ }
+ public function getInfinite()
+ {
+ return $this->infinite;
+ }
+ public function setProducesSortedKeys($producesSortedKeys)
+ {
+ $this->producesSortedKeys = $producesSortedKeys;
+ }
+ public function getProducesSortedKeys()
+ {
+ return $this->producesSortedKeys;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationRequest.php
new file mode 100644
index 00000000..926fe71b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceOperationRequest extends Google_Model
+{
+ protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest';
+ protected $getMetadataDataType = '';
+ protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest';
+ protected $splitDataType = '';
+
+ public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata)
+ {
+ $this->getMetadata = $getMetadata;
+ }
+ public function getGetMetadata()
+ {
+ return $this->getMetadata;
+ }
+ public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split)
+ {
+ $this->split = $split;
+ }
+ public function getSplit()
+ {
+ return $this->split;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationResponse.php
new file mode 100644
index 00000000..f551b522
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceOperationResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceOperationResponse extends Google_Model
+{
+ protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse';
+ protected $getMetadataDataType = '';
+ protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse';
+ protected $splitDataType = '';
+
+ public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata)
+ {
+ $this->getMetadata = $getMetadata;
+ }
+ public function getGetMetadata()
+ {
+ return $this->getMetadata;
+ }
+ public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split)
+ {
+ $this->split = $split;
+ }
+ public function getSplit()
+ {
+ return $this->split;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitOptions.php
new file mode 100644
index 00000000..68c96736
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceSplitOptions extends Google_Model
+{
+ public $desiredBundleSizeBytes;
+ public $desiredShardSizeBytes;
+
+ public function setDesiredBundleSizeBytes($desiredBundleSizeBytes)
+ {
+ $this->desiredBundleSizeBytes = $desiredBundleSizeBytes;
+ }
+ public function getDesiredBundleSizeBytes()
+ {
+ return $this->desiredBundleSizeBytes;
+ }
+ public function setDesiredShardSizeBytes($desiredShardSizeBytes)
+ {
+ $this->desiredShardSizeBytes = $desiredShardSizeBytes;
+ }
+ public function getDesiredShardSizeBytes()
+ {
+ return $this->desiredShardSizeBytes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitRequest.php
new file mode 100644
index 00000000..c819be45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceSplitRequest extends Google_Model
+{
+ protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions';
+ protected $optionsDataType = '';
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+ public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitResponse.php
new file mode 100644
index 00000000..abedc3c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection
+{
+ protected $collection_key = 'shards';
+ protected $bundlesType = 'Google_Service_Dataflow_DerivedSource';
+ protected $bundlesDataType = 'array';
+ public $outcome;
+ protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard';
+ protected $shardsDataType = 'array';
+
+ public function setBundles($bundles)
+ {
+ $this->bundles = $bundles;
+ }
+ public function getBundles()
+ {
+ return $this->bundles;
+ }
+ public function setOutcome($outcome)
+ {
+ $this->outcome = $outcome;
+ }
+ public function getOutcome()
+ {
+ return $this->outcome;
+ }
+ public function setShards($shards)
+ {
+ $this->shards = $shards;
+ }
+ public function getShards()
+ {
+ return $this->shards;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitShard.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitShard.php
new file mode 100644
index 00000000..ed49befc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SourceSplitShard.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SourceSplitShard extends Google_Model
+{
+ public $derivationMode;
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+ public function setDerivationMode($derivationMode)
+ {
+ $this->derivationMode = $derivationMode;
+ }
+ public function getDerivationMode()
+ {
+ return $this->derivationMode;
+ }
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SplitInt64.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SplitInt64.php
new file mode 100644
index 00000000..62934864
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/SplitInt64.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_SplitInt64 extends Google_Model
+{
+ public $highBits;
+ public $lowBits;
+
+ public function setHighBits($highBits)
+ {
+ $this->highBits = $highBits;
+ }
+ public function getHighBits()
+ {
+ return $this->highBits;
+ }
+ public function setLowBits($lowBits)
+ {
+ $this->lowBits = $lowBits;
+ }
+ public function getLowBits()
+ {
+ return $this->lowBits;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StageSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StageSource.php
new file mode 100644
index 00000000..55db56b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StageSource.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StageSource extends Google_Model
+{
+ public $name;
+ public $originalTransformOrCollection;
+ public $sizeBytes;
+ public $userName;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalTransformOrCollection($originalTransformOrCollection)
+ {
+ $this->originalTransformOrCollection = $originalTransformOrCollection;
+ }
+ public function getOriginalTransformOrCollection()
+ {
+ return $this->originalTransformOrCollection;
+ }
+ public function setSizeBytes($sizeBytes)
+ {
+ $this->sizeBytes = $sizeBytes;
+ }
+ public function getSizeBytes()
+ {
+ return $this->sizeBytes;
+ }
+ public function setUserName($userName)
+ {
+ $this->userName = $userName;
+ }
+ public function getUserName()
+ {
+ return $this->userName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StateFamilyConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StateFamilyConfig.php
new file mode 100644
index 00000000..471d23e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StateFamilyConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StateFamilyConfig extends Google_Model
+{
+ public $isRead;
+ public $stateFamily;
+
+ public function setIsRead($isRead)
+ {
+ $this->isRead = $isRead;
+ }
+ public function getIsRead()
+ {
+ return $this->isRead;
+ }
+ public function setStateFamily($stateFamily)
+ {
+ $this->stateFamily = $stateFamily;
+ }
+ public function getStateFamily()
+ {
+ return $this->stateFamily;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Status.php
new file mode 100644
index 00000000..19942df7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Step.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Step.php
new file mode 100644
index 00000000..e9f5bad0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/Step.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_Step extends Google_Model
+{
+ public $kind;
+ public $name;
+ public $properties;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamLocation.php
new file mode 100644
index 00000000..feec6a28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamLocation.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamLocation extends Google_Model
+{
+ protected $customSourceLocationType = 'Google_Service_Dataflow_CustomSourceLocation';
+ protected $customSourceLocationDataType = '';
+ protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation';
+ protected $pubsubLocationDataType = '';
+ protected $sideInputLocationType = 'Google_Service_Dataflow_StreamingSideInputLocation';
+ protected $sideInputLocationDataType = '';
+ protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation';
+ protected $streamingStageLocationDataType = '';
+
+ public function setCustomSourceLocation(Google_Service_Dataflow_CustomSourceLocation $customSourceLocation)
+ {
+ $this->customSourceLocation = $customSourceLocation;
+ }
+ public function getCustomSourceLocation()
+ {
+ return $this->customSourceLocation;
+ }
+ public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation)
+ {
+ $this->pubsubLocation = $pubsubLocation;
+ }
+ public function getPubsubLocation()
+ {
+ return $this->pubsubLocation;
+ }
+ public function setSideInputLocation(Google_Service_Dataflow_StreamingSideInputLocation $sideInputLocation)
+ {
+ $this->sideInputLocation = $sideInputLocation;
+ }
+ public function getSideInputLocation()
+ {
+ return $this->sideInputLocation;
+ }
+ public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation)
+ {
+ $this->streamingStageLocation = $streamingStageLocation;
+ }
+ public function getStreamingStageLocation()
+ {
+ return $this->streamingStageLocation;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php
new file mode 100644
index 00000000..0cba9956
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationConfig.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamingComputationConfig extends Google_Collection
+{
+ protected $collection_key = 'instructions';
+ public $computationId;
+ protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction';
+ protected $instructionsDataType = 'array';
+ public $stageName;
+ public $systemName;
+
+ public function setComputationId($computationId)
+ {
+ $this->computationId = $computationId;
+ }
+ public function getComputationId()
+ {
+ return $this->computationId;
+ }
+ public function setInstructions($instructions)
+ {
+ $this->instructions = $instructions;
+ }
+ public function getInstructions()
+ {
+ return $this->instructions;
+ }
+ public function setStageName($stageName)
+ {
+ $this->stageName = $stageName;
+ }
+ public function getStageName()
+ {
+ return $this->stageName;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationRanges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationRanges.php
new file mode 100644
index 00000000..9d618c93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationRanges.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamingComputationRanges extends Google_Collection
+{
+ protected $collection_key = 'rangeAssignments';
+ public $computationId;
+ protected $rangeAssignmentsType = 'Google_Service_Dataflow_KeyRangeDataDiskAssignment';
+ protected $rangeAssignmentsDataType = 'array';
+
+ public function setComputationId($computationId)
+ {
+ $this->computationId = $computationId;
+ }
+ public function getComputationId()
+ {
+ return $this->computationId;
+ }
+ public function setRangeAssignments($rangeAssignments)
+ {
+ $this->rangeAssignments = $rangeAssignments;
+ }
+ public function getRangeAssignments()
+ {
+ return $this->rangeAssignments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationTask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationTask.php
new file mode 100644
index 00000000..e83408e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingComputationTask.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamingComputationTask extends Google_Collection
+{
+ protected $collection_key = 'dataDisks';
+ protected $computationRangesType = 'Google_Service_Dataflow_StreamingComputationRanges';
+ protected $computationRangesDataType = 'array';
+ protected $dataDisksType = 'Google_Service_Dataflow_MountedDataDisk';
+ protected $dataDisksDataType = 'array';
+ public $taskType;
+
+ public function setComputationRanges($computationRanges)
+ {
+ $this->computationRanges = $computationRanges;
+ }
+ public function getComputationRanges()
+ {
+ return $this->computationRanges;
+ }
+ public function setDataDisks($dataDisks)
+ {
+ $this->dataDisks = $dataDisks;
+ }
+ public function getDataDisks()
+ {
+ return $this->dataDisks;
+ }
+ public function setTaskType($taskType)
+ {
+ $this->taskType = $taskType;
+ }
+ public function getTaskType()
+ {
+ return $this->taskType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php
new file mode 100644
index 00000000..38741425
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingConfigTask.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamingConfigTask extends Google_Collection
+{
+ protected $collection_key = 'streamingComputationConfigs';
+ protected $streamingComputationConfigsType = 'Google_Service_Dataflow_StreamingComputationConfig';
+ protected $streamingComputationConfigsDataType = 'array';
+ public $userStepToStateFamilyNameMap;
+
+ public function setStreamingComputationConfigs($streamingComputationConfigs)
+ {
+ $this->streamingComputationConfigs = $streamingComputationConfigs;
+ }
+ public function getStreamingComputationConfigs()
+ {
+ return $this->streamingComputationConfigs;
+ }
+ public function setUserStepToStateFamilyNameMap($userStepToStateFamilyNameMap)
+ {
+ $this->userStepToStateFamilyNameMap = $userStepToStateFamilyNameMap;
+ }
+ public function getUserStepToStateFamilyNameMap()
+ {
+ return $this->userStepToStateFamilyNameMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php
new file mode 100644
index 00000000..a3786ce7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSetupTask.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamingSetupTask extends Google_Model
+{
+ public $drain;
+ public $receiveWorkPort;
+ protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig';
+ protected $streamingComputationTopologyDataType = '';
+ public $workerHarnessPort;
+
+ public function setDrain($drain)
+ {
+ $this->drain = $drain;
+ }
+ public function getDrain()
+ {
+ return $this->drain;
+ }
+ public function setReceiveWorkPort($receiveWorkPort)
+ {
+ $this->receiveWorkPort = $receiveWorkPort;
+ }
+ public function getReceiveWorkPort()
+ {
+ return $this->receiveWorkPort;
+ }
+ public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology)
+ {
+ $this->streamingComputationTopology = $streamingComputationTopology;
+ }
+ public function getStreamingComputationTopology()
+ {
+ return $this->streamingComputationTopology;
+ }
+ public function setWorkerHarnessPort($workerHarnessPort)
+ {
+ $this->workerHarnessPort = $workerHarnessPort;
+ }
+ public function getWorkerHarnessPort()
+ {
+ return $this->workerHarnessPort;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSideInputLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSideInputLocation.php
new file mode 100644
index 00000000..04643d12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingSideInputLocation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamingSideInputLocation extends Google_Model
+{
+ public $stateFamily;
+ public $tag;
+
+ public function setStateFamily($stateFamily)
+ {
+ $this->stateFamily = $stateFamily;
+ }
+ public function getStateFamily()
+ {
+ return $this->stateFamily;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingStageLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingStageLocation.php
new file mode 100644
index 00000000..2d9474e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StreamingStageLocation.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StreamingStageLocation extends Google_Model
+{
+ public $streamId;
+
+ public function setStreamId($streamId)
+ {
+ $this->streamId = $streamId;
+ }
+ public function getStreamId()
+ {
+ return $this->streamId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StringList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StringList.php
new file mode 100644
index 00000000..04779e71
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/StringList.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_StringList extends Google_Collection
+{
+ protected $collection_key = 'elements';
+ public $elements;
+
+ public function setElements($elements)
+ {
+ $this->elements = $elements;
+ }
+ public function getElements()
+ {
+ return $this->elements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TaskRunnerSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TaskRunnerSettings.php
new file mode 100644
index 00000000..50bac084
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TaskRunnerSettings.php
@@ -0,0 +1,194 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection
+{
+ protected $collection_key = 'oauthScopes';
+ public $alsologtostderr;
+ public $baseTaskDir;
+ public $baseUrl;
+ public $commandlinesFileName;
+ public $continueOnException;
+ public $dataflowApiVersion;
+ public $harnessCommand;
+ public $languageHint;
+ public $logDir;
+ public $logToSerialconsole;
+ public $logUploadLocation;
+ public $oauthScopes;
+ protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings';
+ protected $parallelWorkerSettingsDataType = '';
+ public $streamingWorkerMainClass;
+ public $taskGroup;
+ public $taskUser;
+ public $tempStoragePrefix;
+ public $vmId;
+ public $workflowFileName;
+
+ public function setAlsologtostderr($alsologtostderr)
+ {
+ $this->alsologtostderr = $alsologtostderr;
+ }
+ public function getAlsologtostderr()
+ {
+ return $this->alsologtostderr;
+ }
+ public function setBaseTaskDir($baseTaskDir)
+ {
+ $this->baseTaskDir = $baseTaskDir;
+ }
+ public function getBaseTaskDir()
+ {
+ return $this->baseTaskDir;
+ }
+ public function setBaseUrl($baseUrl)
+ {
+ $this->baseUrl = $baseUrl;
+ }
+ public function getBaseUrl()
+ {
+ return $this->baseUrl;
+ }
+ public function setCommandlinesFileName($commandlinesFileName)
+ {
+ $this->commandlinesFileName = $commandlinesFileName;
+ }
+ public function getCommandlinesFileName()
+ {
+ return $this->commandlinesFileName;
+ }
+ public function setContinueOnException($continueOnException)
+ {
+ $this->continueOnException = $continueOnException;
+ }
+ public function getContinueOnException()
+ {
+ return $this->continueOnException;
+ }
+ public function setDataflowApiVersion($dataflowApiVersion)
+ {
+ $this->dataflowApiVersion = $dataflowApiVersion;
+ }
+ public function getDataflowApiVersion()
+ {
+ return $this->dataflowApiVersion;
+ }
+ public function setHarnessCommand($harnessCommand)
+ {
+ $this->harnessCommand = $harnessCommand;
+ }
+ public function getHarnessCommand()
+ {
+ return $this->harnessCommand;
+ }
+ public function setLanguageHint($languageHint)
+ {
+ $this->languageHint = $languageHint;
+ }
+ public function getLanguageHint()
+ {
+ return $this->languageHint;
+ }
+ public function setLogDir($logDir)
+ {
+ $this->logDir = $logDir;
+ }
+ public function getLogDir()
+ {
+ return $this->logDir;
+ }
+ public function setLogToSerialconsole($logToSerialconsole)
+ {
+ $this->logToSerialconsole = $logToSerialconsole;
+ }
+ public function getLogToSerialconsole()
+ {
+ return $this->logToSerialconsole;
+ }
+ public function setLogUploadLocation($logUploadLocation)
+ {
+ $this->logUploadLocation = $logUploadLocation;
+ }
+ public function getLogUploadLocation()
+ {
+ return $this->logUploadLocation;
+ }
+ public function setOauthScopes($oauthScopes)
+ {
+ $this->oauthScopes = $oauthScopes;
+ }
+ public function getOauthScopes()
+ {
+ return $this->oauthScopes;
+ }
+ public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings)
+ {
+ $this->parallelWorkerSettings = $parallelWorkerSettings;
+ }
+ public function getParallelWorkerSettings()
+ {
+ return $this->parallelWorkerSettings;
+ }
+ public function setStreamingWorkerMainClass($streamingWorkerMainClass)
+ {
+ $this->streamingWorkerMainClass = $streamingWorkerMainClass;
+ }
+ public function getStreamingWorkerMainClass()
+ {
+ return $this->streamingWorkerMainClass;
+ }
+ public function setTaskGroup($taskGroup)
+ {
+ $this->taskGroup = $taskGroup;
+ }
+ public function getTaskGroup()
+ {
+ return $this->taskGroup;
+ }
+ public function setTaskUser($taskUser)
+ {
+ $this->taskUser = $taskUser;
+ }
+ public function getTaskUser()
+ {
+ return $this->taskUser;
+ }
+ public function setTempStoragePrefix($tempStoragePrefix)
+ {
+ $this->tempStoragePrefix = $tempStoragePrefix;
+ }
+ public function getTempStoragePrefix()
+ {
+ return $this->tempStoragePrefix;
+ }
+ public function setVmId($vmId)
+ {
+ $this->vmId = $vmId;
+ }
+ public function getVmId()
+ {
+ return $this->vmId;
+ }
+ public function setWorkflowFileName($workflowFileName)
+ {
+ $this->workflowFileName = $workflowFileName;
+ }
+ public function getWorkflowFileName()
+ {
+ return $this->workflowFileName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TemplateMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TemplateMetadata.php
new file mode 100644
index 00000000..3428c67e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TemplateMetadata.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_TemplateMetadata extends Google_Collection
+{
+ protected $collection_key = 'parameters';
+ public $bypassTempDirValidation;
+ public $description;
+ public $name;
+ protected $parametersType = 'Google_Service_Dataflow_ParameterMetadata';
+ protected $parametersDataType = 'array';
+
+ public function setBypassTempDirValidation($bypassTempDirValidation)
+ {
+ $this->bypassTempDirValidation = $bypassTempDirValidation;
+ }
+ public function getBypassTempDirValidation()
+ {
+ return $this->bypassTempDirValidation;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TopologyConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TopologyConfig.php
new file mode 100644
index 00000000..0eb190b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TopologyConfig.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_TopologyConfig extends Google_Collection
+{
+ protected $collection_key = 'dataDiskAssignments';
+ protected $computationsType = 'Google_Service_Dataflow_ComputationTopology';
+ protected $computationsDataType = 'array';
+ protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment';
+ protected $dataDiskAssignmentsDataType = 'array';
+ public $forwardingKeyBits;
+ public $persistentStateVersion;
+ public $userStageToComputationNameMap;
+
+ public function setComputations($computations)
+ {
+ $this->computations = $computations;
+ }
+ public function getComputations()
+ {
+ return $this->computations;
+ }
+ public function setDataDiskAssignments($dataDiskAssignments)
+ {
+ $this->dataDiskAssignments = $dataDiskAssignments;
+ }
+ public function getDataDiskAssignments()
+ {
+ return $this->dataDiskAssignments;
+ }
+ public function setForwardingKeyBits($forwardingKeyBits)
+ {
+ $this->forwardingKeyBits = $forwardingKeyBits;
+ }
+ public function getForwardingKeyBits()
+ {
+ return $this->forwardingKeyBits;
+ }
+ public function setPersistentStateVersion($persistentStateVersion)
+ {
+ $this->persistentStateVersion = $persistentStateVersion;
+ }
+ public function getPersistentStateVersion()
+ {
+ return $this->persistentStateVersion;
+ }
+ public function setUserStageToComputationNameMap($userStageToComputationNameMap)
+ {
+ $this->userStageToComputationNameMap = $userStageToComputationNameMap;
+ }
+ public function getUserStageToComputationNameMap()
+ {
+ return $this->userStageToComputationNameMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TransformSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TransformSummary.php
new file mode 100644
index 00000000..e967dd99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/TransformSummary.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_TransformSummary extends Google_Collection
+{
+ protected $collection_key = 'outputCollectionName';
+ protected $displayDataType = 'Google_Service_Dataflow_DisplayData';
+ protected $displayDataDataType = 'array';
+ public $id;
+ public $inputCollectionName;
+ public $kind;
+ public $name;
+ public $outputCollectionName;
+
+ public function setDisplayData($displayData)
+ {
+ $this->displayData = $displayData;
+ }
+ public function getDisplayData()
+ {
+ return $this->displayData;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInputCollectionName($inputCollectionName)
+ {
+ $this->inputCollectionName = $inputCollectionName;
+ }
+ public function getInputCollectionName()
+ {
+ return $this->inputCollectionName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOutputCollectionName($outputCollectionName)
+ {
+ $this->outputCollectionName = $outputCollectionName;
+ }
+ public function getOutputCollectionName()
+ {
+ return $this->outputCollectionName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItem.php
new file mode 100644
index 00000000..98a544ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItem.php
@@ -0,0 +1,165 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkItem extends Google_Collection
+{
+ protected $collection_key = 'packages';
+ public $configuration;
+ public $id;
+ public $initialReportIndex;
+ public $jobId;
+ public $leaseExpireTime;
+ protected $mapTaskType = 'Google_Service_Dataflow_MapTask';
+ protected $mapTaskDataType = '';
+ protected $packagesType = 'Google_Service_Dataflow_Package';
+ protected $packagesDataType = 'array';
+ public $projectId;
+ public $reportStatusInterval;
+ protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask';
+ protected $seqMapTaskDataType = '';
+ protected $shellTaskType = 'Google_Service_Dataflow_ShellTask';
+ protected $shellTaskDataType = '';
+ protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest';
+ protected $sourceOperationTaskDataType = '';
+ protected $streamingComputationTaskType = 'Google_Service_Dataflow_StreamingComputationTask';
+ protected $streamingComputationTaskDataType = '';
+ protected $streamingConfigTaskType = 'Google_Service_Dataflow_StreamingConfigTask';
+ protected $streamingConfigTaskDataType = '';
+ protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask';
+ protected $streamingSetupTaskDataType = '';
+
+ public function setConfiguration($configuration)
+ {
+ $this->configuration = $configuration;
+ }
+ public function getConfiguration()
+ {
+ return $this->configuration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInitialReportIndex($initialReportIndex)
+ {
+ $this->initialReportIndex = $initialReportIndex;
+ }
+ public function getInitialReportIndex()
+ {
+ return $this->initialReportIndex;
+ }
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
+ {
+ return $this->jobId;
+ }
+ public function setLeaseExpireTime($leaseExpireTime)
+ {
+ $this->leaseExpireTime = $leaseExpireTime;
+ }
+ public function getLeaseExpireTime()
+ {
+ return $this->leaseExpireTime;
+ }
+ public function setMapTask(Google_Service_Dataflow_MapTask $mapTask)
+ {
+ $this->mapTask = $mapTask;
+ }
+ public function getMapTask()
+ {
+ return $this->mapTask;
+ }
+ public function setPackages($packages)
+ {
+ $this->packages = $packages;
+ }
+ public function getPackages()
+ {
+ return $this->packages;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setReportStatusInterval($reportStatusInterval)
+ {
+ $this->reportStatusInterval = $reportStatusInterval;
+ }
+ public function getReportStatusInterval()
+ {
+ return $this->reportStatusInterval;
+ }
+ public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask)
+ {
+ $this->seqMapTask = $seqMapTask;
+ }
+ public function getSeqMapTask()
+ {
+ return $this->seqMapTask;
+ }
+ public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask)
+ {
+ $this->shellTask = $shellTask;
+ }
+ public function getShellTask()
+ {
+ return $this->shellTask;
+ }
+ public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask)
+ {
+ $this->sourceOperationTask = $sourceOperationTask;
+ }
+ public function getSourceOperationTask()
+ {
+ return $this->sourceOperationTask;
+ }
+ public function setStreamingComputationTask(Google_Service_Dataflow_StreamingComputationTask $streamingComputationTask)
+ {
+ $this->streamingComputationTask = $streamingComputationTask;
+ }
+ public function getStreamingComputationTask()
+ {
+ return $this->streamingComputationTask;
+ }
+ public function setStreamingConfigTask(Google_Service_Dataflow_StreamingConfigTask $streamingConfigTask)
+ {
+ $this->streamingConfigTask = $streamingConfigTask;
+ }
+ public function getStreamingConfigTask()
+ {
+ return $this->streamingConfigTask;
+ }
+ public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask)
+ {
+ $this->streamingSetupTask = $streamingSetupTask;
+ }
+ public function getStreamingSetupTask()
+ {
+ return $this->streamingSetupTask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemServiceState.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemServiceState.php
new file mode 100644
index 00000000..3398321e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemServiceState.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkItemServiceState extends Google_Collection
+{
+ protected $collection_key = 'metricShortId';
+ public $harnessData;
+ public $leaseExpireTime;
+ protected $metricShortIdType = 'Google_Service_Dataflow_MetricShortId';
+ protected $metricShortIdDataType = 'array';
+ public $nextReportIndex;
+ public $reportStatusInterval;
+ protected $splitRequestType = 'Google_Service_Dataflow_ApproximateSplitRequest';
+ protected $splitRequestDataType = '';
+ protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress';
+ protected $suggestedStopPointDataType = '';
+ protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position';
+ protected $suggestedStopPositionDataType = '';
+
+ public function setHarnessData($harnessData)
+ {
+ $this->harnessData = $harnessData;
+ }
+ public function getHarnessData()
+ {
+ return $this->harnessData;
+ }
+ public function setLeaseExpireTime($leaseExpireTime)
+ {
+ $this->leaseExpireTime = $leaseExpireTime;
+ }
+ public function getLeaseExpireTime()
+ {
+ return $this->leaseExpireTime;
+ }
+ public function setMetricShortId($metricShortId)
+ {
+ $this->metricShortId = $metricShortId;
+ }
+ public function getMetricShortId()
+ {
+ return $this->metricShortId;
+ }
+ public function setNextReportIndex($nextReportIndex)
+ {
+ $this->nextReportIndex = $nextReportIndex;
+ }
+ public function getNextReportIndex()
+ {
+ return $this->nextReportIndex;
+ }
+ public function setReportStatusInterval($reportStatusInterval)
+ {
+ $this->reportStatusInterval = $reportStatusInterval;
+ }
+ public function getReportStatusInterval()
+ {
+ return $this->reportStatusInterval;
+ }
+ public function setSplitRequest(Google_Service_Dataflow_ApproximateSplitRequest $splitRequest)
+ {
+ $this->splitRequest = $splitRequest;
+ }
+ public function getSplitRequest()
+ {
+ return $this->splitRequest;
+ }
+ public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint)
+ {
+ $this->suggestedStopPoint = $suggestedStopPoint;
+ }
+ public function getSuggestedStopPoint()
+ {
+ return $this->suggestedStopPoint;
+ }
+ public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition)
+ {
+ $this->suggestedStopPosition = $suggestedStopPosition;
+ }
+ public function getSuggestedStopPosition()
+ {
+ return $this->suggestedStopPosition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemStatus.php
new file mode 100644
index 00000000..0eba4843
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkItemStatus.php
@@ -0,0 +1,148 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkItemStatus extends Google_Collection
+{
+ protected $collection_key = 'metricUpdates';
+ public $completed;
+ protected $counterUpdatesType = 'Google_Service_Dataflow_CounterUpdate';
+ protected $counterUpdatesDataType = 'array';
+ protected $dynamicSourceSplitType = 'Google_Service_Dataflow_DynamicSourceSplit';
+ protected $dynamicSourceSplitDataType = '';
+ protected $errorsType = 'Google_Service_Dataflow_Status';
+ protected $errorsDataType = 'array';
+ protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate';
+ protected $metricUpdatesDataType = 'array';
+ protected $progressType = 'Google_Service_Dataflow_ApproximateProgress';
+ protected $progressDataType = '';
+ public $reportIndex;
+ protected $reportedProgressType = 'Google_Service_Dataflow_ApproximateReportedProgress';
+ protected $reportedProgressDataType = '';
+ public $requestedLeaseDuration;
+ protected $sourceForkType = 'Google_Service_Dataflow_SourceFork';
+ protected $sourceForkDataType = '';
+ protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse';
+ protected $sourceOperationResponseDataType = '';
+ protected $stopPositionType = 'Google_Service_Dataflow_Position';
+ protected $stopPositionDataType = '';
+ public $workItemId;
+
+ public function setCompleted($completed)
+ {
+ $this->completed = $completed;
+ }
+ public function getCompleted()
+ {
+ return $this->completed;
+ }
+ public function setCounterUpdates($counterUpdates)
+ {
+ $this->counterUpdates = $counterUpdates;
+ }
+ public function getCounterUpdates()
+ {
+ return $this->counterUpdates;
+ }
+ public function setDynamicSourceSplit(Google_Service_Dataflow_DynamicSourceSplit $dynamicSourceSplit)
+ {
+ $this->dynamicSourceSplit = $dynamicSourceSplit;
+ }
+ public function getDynamicSourceSplit()
+ {
+ return $this->dynamicSourceSplit;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setMetricUpdates($metricUpdates)
+ {
+ $this->metricUpdates = $metricUpdates;
+ }
+ public function getMetricUpdates()
+ {
+ return $this->metricUpdates;
+ }
+ public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setReportIndex($reportIndex)
+ {
+ $this->reportIndex = $reportIndex;
+ }
+ public function getReportIndex()
+ {
+ return $this->reportIndex;
+ }
+ public function setReportedProgress(Google_Service_Dataflow_ApproximateReportedProgress $reportedProgress)
+ {
+ $this->reportedProgress = $reportedProgress;
+ }
+ public function getReportedProgress()
+ {
+ return $this->reportedProgress;
+ }
+ public function setRequestedLeaseDuration($requestedLeaseDuration)
+ {
+ $this->requestedLeaseDuration = $requestedLeaseDuration;
+ }
+ public function getRequestedLeaseDuration()
+ {
+ return $this->requestedLeaseDuration;
+ }
+ public function setSourceFork(Google_Service_Dataflow_SourceFork $sourceFork)
+ {
+ $this->sourceFork = $sourceFork;
+ }
+ public function getSourceFork()
+ {
+ return $this->sourceFork;
+ }
+ public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse)
+ {
+ $this->sourceOperationResponse = $sourceOperationResponse;
+ }
+ public function getSourceOperationResponse()
+ {
+ return $this->sourceOperationResponse;
+ }
+ public function setStopPosition(Google_Service_Dataflow_Position $stopPosition)
+ {
+ $this->stopPosition = $stopPosition;
+ }
+ public function getStopPosition()
+ {
+ return $this->stopPosition;
+ }
+ public function setWorkItemId($workItemId)
+ {
+ $this->workItemId = $workItemId;
+ }
+ public function getWorkItemId()
+ {
+ return $this->workItemId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReport.php
new file mode 100644
index 00000000..ee81dd17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReport.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkerHealthReport extends Google_Collection
+{
+ protected $collection_key = 'pods';
+ public $pods;
+ public $reportInterval;
+ public $vmIsHealthy;
+ public $vmStartupTime;
+
+ public function setPods($pods)
+ {
+ $this->pods = $pods;
+ }
+ public function getPods()
+ {
+ return $this->pods;
+ }
+ public function setReportInterval($reportInterval)
+ {
+ $this->reportInterval = $reportInterval;
+ }
+ public function getReportInterval()
+ {
+ return $this->reportInterval;
+ }
+ public function setVmIsHealthy($vmIsHealthy)
+ {
+ $this->vmIsHealthy = $vmIsHealthy;
+ }
+ public function getVmIsHealthy()
+ {
+ return $this->vmIsHealthy;
+ }
+ public function setVmStartupTime($vmStartupTime)
+ {
+ $this->vmStartupTime = $vmStartupTime;
+ }
+ public function getVmStartupTime()
+ {
+ return $this->vmStartupTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReportResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReportResponse.php
new file mode 100644
index 00000000..8ba4d47c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerHealthReportResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkerHealthReportResponse extends Google_Model
+{
+ public $reportInterval;
+
+ public function setReportInterval($reportInterval)
+ {
+ $this->reportInterval = $reportInterval;
+ }
+ public function getReportInterval()
+ {
+ return $this->reportInterval;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessage.php
new file mode 100644
index 00000000..d3af1017
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessage.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkerMessage extends Google_Model
+{
+ public $labels;
+ public $time;
+ protected $workerHealthReportType = 'Google_Service_Dataflow_WorkerHealthReport';
+ protected $workerHealthReportDataType = '';
+ protected $workerMessageCodeType = 'Google_Service_Dataflow_WorkerMessageCode';
+ protected $workerMessageCodeDataType = '';
+ protected $workerMetricsType = 'Google_Service_Dataflow_ResourceUtilizationReport';
+ protected $workerMetricsDataType = '';
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+ public function setWorkerHealthReport(Google_Service_Dataflow_WorkerHealthReport $workerHealthReport)
+ {
+ $this->workerHealthReport = $workerHealthReport;
+ }
+ public function getWorkerHealthReport()
+ {
+ return $this->workerHealthReport;
+ }
+ public function setWorkerMessageCode(Google_Service_Dataflow_WorkerMessageCode $workerMessageCode)
+ {
+ $this->workerMessageCode = $workerMessageCode;
+ }
+ public function getWorkerMessageCode()
+ {
+ return $this->workerMessageCode;
+ }
+ public function setWorkerMetrics(Google_Service_Dataflow_ResourceUtilizationReport $workerMetrics)
+ {
+ $this->workerMetrics = $workerMetrics;
+ }
+ public function getWorkerMetrics()
+ {
+ return $this->workerMetrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageCode.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageCode.php
new file mode 100644
index 00000000..1a4a6841
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageCode.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkerMessageCode extends Google_Model
+{
+ public $code;
+ public $parameters;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageResponse.php
new file mode 100644
index 00000000..edd8da8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerMessageResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkerMessageResponse extends Google_Model
+{
+ protected $workerHealthReportResponseType = 'Google_Service_Dataflow_WorkerHealthReportResponse';
+ protected $workerHealthReportResponseDataType = '';
+ protected $workerMetricsResponseType = 'Google_Service_Dataflow_ResourceUtilizationReportResponse';
+ protected $workerMetricsResponseDataType = '';
+
+ public function setWorkerHealthReportResponse(Google_Service_Dataflow_WorkerHealthReportResponse $workerHealthReportResponse)
+ {
+ $this->workerHealthReportResponse = $workerHealthReportResponse;
+ }
+ public function getWorkerHealthReportResponse()
+ {
+ return $this->workerHealthReportResponse;
+ }
+ public function setWorkerMetricsResponse(Google_Service_Dataflow_ResourceUtilizationReportResponse $workerMetricsResponse)
+ {
+ $this->workerMetricsResponse = $workerMetricsResponse;
+ }
+ public function getWorkerMetricsResponse()
+ {
+ return $this->workerMetricsResponse;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerPool.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerPool.php
new file mode 100644
index 00000000..a75cecc9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerPool.php
@@ -0,0 +1,215 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkerPool extends Google_Collection
+{
+ protected $collection_key = 'packages';
+ protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings';
+ protected $autoscalingSettingsDataType = '';
+ protected $dataDisksType = 'Google_Service_Dataflow_Disk';
+ protected $dataDisksDataType = 'array';
+ public $defaultPackageSet;
+ public $diskSizeGb;
+ public $diskSourceImage;
+ public $diskType;
+ public $ipConfiguration;
+ public $kind;
+ public $machineType;
+ public $metadata;
+ public $network;
+ public $numThreadsPerWorker;
+ public $numWorkers;
+ public $onHostMaintenance;
+ protected $packagesType = 'Google_Service_Dataflow_Package';
+ protected $packagesDataType = 'array';
+ public $poolArgs;
+ public $subnetwork;
+ protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings';
+ protected $taskrunnerSettingsDataType = '';
+ public $teardownPolicy;
+ public $workerHarnessContainerImage;
+ public $zone;
+
+ public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings)
+ {
+ $this->autoscalingSettings = $autoscalingSettings;
+ }
+ public function getAutoscalingSettings()
+ {
+ return $this->autoscalingSettings;
+ }
+ public function setDataDisks($dataDisks)
+ {
+ $this->dataDisks = $dataDisks;
+ }
+ public function getDataDisks()
+ {
+ return $this->dataDisks;
+ }
+ public function setDefaultPackageSet($defaultPackageSet)
+ {
+ $this->defaultPackageSet = $defaultPackageSet;
+ }
+ public function getDefaultPackageSet()
+ {
+ return $this->defaultPackageSet;
+ }
+ public function setDiskSizeGb($diskSizeGb)
+ {
+ $this->diskSizeGb = $diskSizeGb;
+ }
+ public function getDiskSizeGb()
+ {
+ return $this->diskSizeGb;
+ }
+ public function setDiskSourceImage($diskSourceImage)
+ {
+ $this->diskSourceImage = $diskSourceImage;
+ }
+ public function getDiskSourceImage()
+ {
+ return $this->diskSourceImage;
+ }
+ public function setDiskType($diskType)
+ {
+ $this->diskType = $diskType;
+ }
+ public function getDiskType()
+ {
+ return $this->diskType;
+ }
+ public function setIpConfiguration($ipConfiguration)
+ {
+ $this->ipConfiguration = $ipConfiguration;
+ }
+ public function getIpConfiguration()
+ {
+ return $this->ipConfiguration;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setNumThreadsPerWorker($numThreadsPerWorker)
+ {
+ $this->numThreadsPerWorker = $numThreadsPerWorker;
+ }
+ public function getNumThreadsPerWorker()
+ {
+ return $this->numThreadsPerWorker;
+ }
+ public function setNumWorkers($numWorkers)
+ {
+ $this->numWorkers = $numWorkers;
+ }
+ public function getNumWorkers()
+ {
+ return $this->numWorkers;
+ }
+ public function setOnHostMaintenance($onHostMaintenance)
+ {
+ $this->onHostMaintenance = $onHostMaintenance;
+ }
+ public function getOnHostMaintenance()
+ {
+ return $this->onHostMaintenance;
+ }
+ public function setPackages($packages)
+ {
+ $this->packages = $packages;
+ }
+ public function getPackages()
+ {
+ return $this->packages;
+ }
+ public function setPoolArgs($poolArgs)
+ {
+ $this->poolArgs = $poolArgs;
+ }
+ public function getPoolArgs()
+ {
+ return $this->poolArgs;
+ }
+ public function setSubnetwork($subnetwork)
+ {
+ $this->subnetwork = $subnetwork;
+ }
+ public function getSubnetwork()
+ {
+ return $this->subnetwork;
+ }
+ public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings)
+ {
+ $this->taskrunnerSettings = $taskrunnerSettings;
+ }
+ public function getTaskrunnerSettings()
+ {
+ return $this->taskrunnerSettings;
+ }
+ public function setTeardownPolicy($teardownPolicy)
+ {
+ $this->teardownPolicy = $teardownPolicy;
+ }
+ public function getTeardownPolicy()
+ {
+ return $this->teardownPolicy;
+ }
+ public function setWorkerHarnessContainerImage($workerHarnessContainerImage)
+ {
+ $this->workerHarnessContainerImage = $workerHarnessContainerImage;
+ }
+ public function getWorkerHarnessContainerImage()
+ {
+ return $this->workerHarnessContainerImage;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerSettings.php
new file mode 100644
index 00000000..d3a58d39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WorkerSettings.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WorkerSettings extends Google_Model
+{
+ public $baseUrl;
+ public $reportingEnabled;
+ public $servicePath;
+ public $shuffleServicePath;
+ public $tempStoragePrefix;
+ public $workerId;
+
+ public function setBaseUrl($baseUrl)
+ {
+ $this->baseUrl = $baseUrl;
+ }
+ public function getBaseUrl()
+ {
+ return $this->baseUrl;
+ }
+ public function setReportingEnabled($reportingEnabled)
+ {
+ $this->reportingEnabled = $reportingEnabled;
+ }
+ public function getReportingEnabled()
+ {
+ return $this->reportingEnabled;
+ }
+ public function setServicePath($servicePath)
+ {
+ $this->servicePath = $servicePath;
+ }
+ public function getServicePath()
+ {
+ return $this->servicePath;
+ }
+ public function setShuffleServicePath($shuffleServicePath)
+ {
+ $this->shuffleServicePath = $shuffleServicePath;
+ }
+ public function getShuffleServicePath()
+ {
+ return $this->shuffleServicePath;
+ }
+ public function setTempStoragePrefix($tempStoragePrefix)
+ {
+ $this->tempStoragePrefix = $tempStoragePrefix;
+ }
+ public function getTempStoragePrefix()
+ {
+ return $this->tempStoragePrefix;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WriteInstruction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WriteInstruction.php
new file mode 100644
index 00000000..62bebc75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataflow/WriteInstruction.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataflow_WriteInstruction extends Google_Model
+{
+ protected $inputType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputDataType = '';
+ protected $sinkType = 'Google_Service_Dataflow_Sink';
+ protected $sinkDataType = '';
+
+ public function setInput(Google_Service_Dataflow_InstructionInput $input)
+ {
+ $this->input = $input;
+ }
+ public function getInput()
+ {
+ return $this->input;
+ }
+ public function setSink(Google_Service_Dataflow_Sink $sink)
+ {
+ $this->sink = $sink;
+ }
+ public function getSink()
+ {
+ return $this->sink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc.php
new file mode 100644
index 00000000..ddd618c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc.php
@@ -0,0 +1,397 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Dataproc (v1).
+ *
+ * <p>
+ * Manages Hadoop-based clusters and jobs on Google Cloud Platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/dataproc/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Dataproc extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects_regions_clusters;
+ public $projects_regions_jobs;
+ public $projects_regions_operations;
+
+ /**
+ * Constructs the internal representation of the Dataproc service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://dataproc.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'dataproc';
+
+ $this->projects_regions_clusters = new Google_Service_Dataproc_Resource_ProjectsRegionsClusters(
+ $this,
+ $this->serviceName,
+ 'clusters',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/clusters',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'diagnose' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/clusters',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clusterName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_regions_jobs = new Google_Service_Dataproc_Resource_ProjectsRegionsJobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'clusterName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'jobStateMatcher' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'submit' => array(
+ 'path' => 'v1/projects/{projectId}/regions/{region}/jobs:submit',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_regions_operations = new Google_Service_Dataproc_Resource_ProjectsRegionsOperations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/AcceleratorConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/AcceleratorConfig.php
new file mode 100644
index 00000000..626cb25a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/AcceleratorConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_AcceleratorConfig extends Google_Model
+{
+ public $acceleratorCount;
+ public $acceleratorTypeUri;
+
+ public function setAcceleratorCount($acceleratorCount)
+ {
+ $this->acceleratorCount = $acceleratorCount;
+ }
+ public function getAcceleratorCount()
+ {
+ return $this->acceleratorCount;
+ }
+ public function setAcceleratorTypeUri($acceleratorTypeUri)
+ {
+ $this->acceleratorTypeUri = $acceleratorTypeUri;
+ }
+ public function getAcceleratorTypeUri()
+ {
+ return $this->acceleratorTypeUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/CancelJobRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/CancelJobRequest.php
new file mode 100644
index 00000000..3eeeb947
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/CancelJobRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_CancelJobRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Cluster.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Cluster.php
new file mode 100644
index 00000000..bc0d48b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Cluster.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_Cluster extends Google_Collection
+{
+ protected $collection_key = 'statusHistory';
+ public $clusterName;
+ public $clusterUuid;
+ protected $configType = 'Google_Service_Dataproc_ClusterConfig';
+ protected $configDataType = '';
+ public $labels;
+ protected $metricsType = 'Google_Service_Dataproc_ClusterMetrics';
+ protected $metricsDataType = '';
+ public $projectId;
+ protected $statusType = 'Google_Service_Dataproc_ClusterStatus';
+ protected $statusDataType = '';
+ protected $statusHistoryType = 'Google_Service_Dataproc_ClusterStatus';
+ protected $statusHistoryDataType = 'array';
+
+ public function setClusterName($clusterName)
+ {
+ $this->clusterName = $clusterName;
+ }
+ public function getClusterName()
+ {
+ return $this->clusterName;
+ }
+ public function setClusterUuid($clusterUuid)
+ {
+ $this->clusterUuid = $clusterUuid;
+ }
+ public function getClusterUuid()
+ {
+ return $this->clusterUuid;
+ }
+ public function setConfig(Google_Service_Dataproc_ClusterConfig $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setMetrics(Google_Service_Dataproc_ClusterMetrics $metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setStatus(Google_Service_Dataproc_ClusterStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusHistory($statusHistory)
+ {
+ $this->statusHistory = $statusHistory;
+ }
+ public function getStatusHistory()
+ {
+ return $this->statusHistory;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php
new file mode 100644
index 00000000..f70e0a13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterConfig.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ClusterConfig extends Google_Collection
+{
+ protected $collection_key = 'initializationActions';
+ public $configBucket;
+ protected $gceClusterConfigType = 'Google_Service_Dataproc_GceClusterConfig';
+ protected $gceClusterConfigDataType = '';
+ protected $initializationActionsType = 'Google_Service_Dataproc_NodeInitializationAction';
+ protected $initializationActionsDataType = 'array';
+ protected $masterConfigType = 'Google_Service_Dataproc_InstanceGroupConfig';
+ protected $masterConfigDataType = '';
+ protected $secondaryWorkerConfigType = 'Google_Service_Dataproc_InstanceGroupConfig';
+ protected $secondaryWorkerConfigDataType = '';
+ protected $softwareConfigType = 'Google_Service_Dataproc_SoftwareConfig';
+ protected $softwareConfigDataType = '';
+ protected $workerConfigType = 'Google_Service_Dataproc_InstanceGroupConfig';
+ protected $workerConfigDataType = '';
+
+ public function setConfigBucket($configBucket)
+ {
+ $this->configBucket = $configBucket;
+ }
+ public function getConfigBucket()
+ {
+ return $this->configBucket;
+ }
+ public function setGceClusterConfig(Google_Service_Dataproc_GceClusterConfig $gceClusterConfig)
+ {
+ $this->gceClusterConfig = $gceClusterConfig;
+ }
+ public function getGceClusterConfig()
+ {
+ return $this->gceClusterConfig;
+ }
+ public function setInitializationActions($initializationActions)
+ {
+ $this->initializationActions = $initializationActions;
+ }
+ public function getInitializationActions()
+ {
+ return $this->initializationActions;
+ }
+ public function setMasterConfig(Google_Service_Dataproc_InstanceGroupConfig $masterConfig)
+ {
+ $this->masterConfig = $masterConfig;
+ }
+ public function getMasterConfig()
+ {
+ return $this->masterConfig;
+ }
+ public function setSecondaryWorkerConfig(Google_Service_Dataproc_InstanceGroupConfig $secondaryWorkerConfig)
+ {
+ $this->secondaryWorkerConfig = $secondaryWorkerConfig;
+ }
+ public function getSecondaryWorkerConfig()
+ {
+ return $this->secondaryWorkerConfig;
+ }
+ public function setSoftwareConfig(Google_Service_Dataproc_SoftwareConfig $softwareConfig)
+ {
+ $this->softwareConfig = $softwareConfig;
+ }
+ public function getSoftwareConfig()
+ {
+ return $this->softwareConfig;
+ }
+ public function setWorkerConfig(Google_Service_Dataproc_InstanceGroupConfig $workerConfig)
+ {
+ $this->workerConfig = $workerConfig;
+ }
+ public function getWorkerConfig()
+ {
+ return $this->workerConfig;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterMetrics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterMetrics.php
new file mode 100644
index 00000000..985b469a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterMetrics.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ClusterMetrics extends Google_Model
+{
+ public $hdfsMetrics;
+ public $yarnMetrics;
+
+ public function setHdfsMetrics($hdfsMetrics)
+ {
+ $this->hdfsMetrics = $hdfsMetrics;
+ }
+ public function getHdfsMetrics()
+ {
+ return $this->hdfsMetrics;
+ }
+ public function setYarnMetrics($yarnMetrics)
+ {
+ $this->yarnMetrics = $yarnMetrics;
+ }
+ public function getYarnMetrics()
+ {
+ return $this->yarnMetrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationMetadata.php
new file mode 100644
index 00000000..7c2fab7a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationMetadata.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ClusterOperationMetadata extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clusterName;
+ public $clusterUuid;
+ public $description;
+ public $labels;
+ public $operationType;
+ protected $statusType = 'Google_Service_Dataproc_ClusterOperationStatus';
+ protected $statusDataType = '';
+ protected $statusHistoryType = 'Google_Service_Dataproc_ClusterOperationStatus';
+ protected $statusHistoryDataType = 'array';
+ public $warnings;
+
+ public function setClusterName($clusterName)
+ {
+ $this->clusterName = $clusterName;
+ }
+ public function getClusterName()
+ {
+ return $this->clusterName;
+ }
+ public function setClusterUuid($clusterUuid)
+ {
+ $this->clusterUuid = $clusterUuid;
+ }
+ public function getClusterUuid()
+ {
+ return $this->clusterUuid;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setStatus(Google_Service_Dataproc_ClusterOperationStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusHistory($statusHistory)
+ {
+ $this->statusHistory = $statusHistory;
+ }
+ public function getStatusHistory()
+ {
+ return $this->statusHistory;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationStatus.php
new file mode 100644
index 00000000..8d4bc5ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterOperationStatus.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ClusterOperationStatus extends Google_Model
+{
+ public $details;
+ public $innerState;
+ public $state;
+ public $stateStartTime;
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setInnerState($innerState)
+ {
+ $this->innerState = $innerState;
+ }
+ public function getInnerState()
+ {
+ return $this->innerState;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStateStartTime($stateStartTime)
+ {
+ $this->stateStartTime = $stateStartTime;
+ }
+ public function getStateStartTime()
+ {
+ return $this->stateStartTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterStatus.php
new file mode 100644
index 00000000..81312805
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ClusterStatus.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ClusterStatus extends Google_Model
+{
+ public $detail;
+ public $state;
+ public $stateStartTime;
+
+ public function setDetail($detail)
+ {
+ $this->detail = $detail;
+ }
+ public function getDetail()
+ {
+ return $this->detail;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStateStartTime($stateStartTime)
+ {
+ $this->stateStartTime = $stateStartTime;
+ }
+ public function getStateStartTime()
+ {
+ return $this->stateStartTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DataprocEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DataprocEmpty.php
new file mode 100644
index 00000000..90de61d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DataprocEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_DataprocEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterOutputLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterOutputLocation.php
new file mode 100644
index 00000000..f4910123
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterOutputLocation.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_DiagnoseClusterOutputLocation extends Google_Model
+{
+ public $outputUri;
+
+ public function setOutputUri($outputUri)
+ {
+ $this->outputUri = $outputUri;
+ }
+ public function getOutputUri()
+ {
+ return $this->outputUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterRequest.php
new file mode 100644
index 00000000..6c50fa5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_DiagnoseClusterRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterResults.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterResults.php
new file mode 100644
index 00000000..86f69de1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiagnoseClusterResults.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_DiagnoseClusterResults extends Google_Model
+{
+ public $outputUri;
+
+ public function setOutputUri($outputUri)
+ {
+ $this->outputUri = $outputUri;
+ }
+ public function getOutputUri()
+ {
+ return $this->outputUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php
new file mode 100644
index 00000000..2ec2379e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/DiskConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_DiskConfig extends Google_Model
+{
+ public $bootDiskSizeGb;
+ public $numLocalSsds;
+
+ public function setBootDiskSizeGb($bootDiskSizeGb)
+ {
+ $this->bootDiskSizeGb = $bootDiskSizeGb;
+ }
+ public function getBootDiskSizeGb()
+ {
+ return $this->bootDiskSizeGb;
+ }
+ public function setNumLocalSsds($numLocalSsds)
+ {
+ $this->numLocalSsds = $numLocalSsds;
+ }
+ public function getNumLocalSsds()
+ {
+ return $this->numLocalSsds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/GceClusterConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/GceClusterConfig.php
new file mode 100644
index 00000000..1bad1cdb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/GceClusterConfig.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_GceClusterConfig extends Google_Collection
+{
+ protected $collection_key = 'tags';
+ public $internalIpOnly;
+ public $metadata;
+ public $networkUri;
+ public $serviceAccount;
+ public $serviceAccountScopes;
+ public $subnetworkUri;
+ public $tags;
+ public $zoneUri;
+
+ public function setInternalIpOnly($internalIpOnly)
+ {
+ $this->internalIpOnly = $internalIpOnly;
+ }
+ public function getInternalIpOnly()
+ {
+ return $this->internalIpOnly;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setNetworkUri($networkUri)
+ {
+ $this->networkUri = $networkUri;
+ }
+ public function getNetworkUri()
+ {
+ return $this->networkUri;
+ }
+ public function setServiceAccount($serviceAccount)
+ {
+ $this->serviceAccount = $serviceAccount;
+ }
+ public function getServiceAccount()
+ {
+ return $this->serviceAccount;
+ }
+ public function setServiceAccountScopes($serviceAccountScopes)
+ {
+ $this->serviceAccountScopes = $serviceAccountScopes;
+ }
+ public function getServiceAccountScopes()
+ {
+ return $this->serviceAccountScopes;
+ }
+ public function setSubnetworkUri($subnetworkUri)
+ {
+ $this->subnetworkUri = $subnetworkUri;
+ }
+ public function getSubnetworkUri()
+ {
+ return $this->subnetworkUri;
+ }
+ public function setTags($tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+ public function setZoneUri($zoneUri)
+ {
+ $this->zoneUri = $zoneUri;
+ }
+ public function getZoneUri()
+ {
+ return $this->zoneUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HadoopJob.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HadoopJob.php
new file mode 100644
index 00000000..fa2395c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HadoopJob.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_HadoopJob extends Google_Collection
+{
+ protected $collection_key = 'jarFileUris';
+ public $archiveUris;
+ public $args;
+ public $fileUris;
+ public $jarFileUris;
+ protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig';
+ protected $loggingConfigDataType = '';
+ public $mainClass;
+ public $mainJarFileUri;
+ public $properties;
+
+ public function setArchiveUris($archiveUris)
+ {
+ $this->archiveUris = $archiveUris;
+ }
+ public function getArchiveUris()
+ {
+ return $this->archiveUris;
+ }
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setFileUris($fileUris)
+ {
+ $this->fileUris = $fileUris;
+ }
+ public function getFileUris()
+ {
+ return $this->fileUris;
+ }
+ public function setJarFileUris($jarFileUris)
+ {
+ $this->jarFileUris = $jarFileUris;
+ }
+ public function getJarFileUris()
+ {
+ return $this->jarFileUris;
+ }
+ public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig)
+ {
+ $this->loggingConfig = $loggingConfig;
+ }
+ public function getLoggingConfig()
+ {
+ return $this->loggingConfig;
+ }
+ public function setMainClass($mainClass)
+ {
+ $this->mainClass = $mainClass;
+ }
+ public function getMainClass()
+ {
+ return $this->mainClass;
+ }
+ public function setMainJarFileUri($mainJarFileUri)
+ {
+ $this->mainJarFileUri = $mainJarFileUri;
+ }
+ public function getMainJarFileUri()
+ {
+ return $this->mainJarFileUri;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HiveJob.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HiveJob.php
new file mode 100644
index 00000000..1e99ec2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/HiveJob.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_HiveJob extends Google_Collection
+{
+ protected $collection_key = 'jarFileUris';
+ public $continueOnFailure;
+ public $jarFileUris;
+ public $properties;
+ public $queryFileUri;
+ protected $queryListType = 'Google_Service_Dataproc_QueryList';
+ protected $queryListDataType = '';
+ public $scriptVariables;
+
+ public function setContinueOnFailure($continueOnFailure)
+ {
+ $this->continueOnFailure = $continueOnFailure;
+ }
+ public function getContinueOnFailure()
+ {
+ return $this->continueOnFailure;
+ }
+ public function setJarFileUris($jarFileUris)
+ {
+ $this->jarFileUris = $jarFileUris;
+ }
+ public function getJarFileUris()
+ {
+ return $this->jarFileUris;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setQueryFileUri($queryFileUri)
+ {
+ $this->queryFileUri = $queryFileUri;
+ }
+ public function getQueryFileUri()
+ {
+ return $this->queryFileUri;
+ }
+ public function setQueryList(Google_Service_Dataproc_QueryList $queryList)
+ {
+ $this->queryList = $queryList;
+ }
+ public function getQueryList()
+ {
+ return $this->queryList;
+ }
+ public function setScriptVariables($scriptVariables)
+ {
+ $this->scriptVariables = $scriptVariables;
+ }
+ public function getScriptVariables()
+ {
+ return $this->scriptVariables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/InstanceGroupConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/InstanceGroupConfig.php
new file mode 100644
index 00000000..4c77e500
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/InstanceGroupConfig.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_InstanceGroupConfig extends Google_Collection
+{
+ protected $collection_key = 'instanceNames';
+ protected $acceleratorsType = 'Google_Service_Dataproc_AcceleratorConfig';
+ protected $acceleratorsDataType = 'array';
+ protected $diskConfigType = 'Google_Service_Dataproc_DiskConfig';
+ protected $diskConfigDataType = '';
+ public $imageUri;
+ public $instanceNames;
+ public $isPreemptible;
+ public $machineTypeUri;
+ protected $managedGroupConfigType = 'Google_Service_Dataproc_ManagedGroupConfig';
+ protected $managedGroupConfigDataType = '';
+ public $numInstances;
+
+ public function setAccelerators($accelerators)
+ {
+ $this->accelerators = $accelerators;
+ }
+ public function getAccelerators()
+ {
+ return $this->accelerators;
+ }
+ public function setDiskConfig(Google_Service_Dataproc_DiskConfig $diskConfig)
+ {
+ $this->diskConfig = $diskConfig;
+ }
+ public function getDiskConfig()
+ {
+ return $this->diskConfig;
+ }
+ public function setImageUri($imageUri)
+ {
+ $this->imageUri = $imageUri;
+ }
+ public function getImageUri()
+ {
+ return $this->imageUri;
+ }
+ public function setInstanceNames($instanceNames)
+ {
+ $this->instanceNames = $instanceNames;
+ }
+ public function getInstanceNames()
+ {
+ return $this->instanceNames;
+ }
+ public function setIsPreemptible($isPreemptible)
+ {
+ $this->isPreemptible = $isPreemptible;
+ }
+ public function getIsPreemptible()
+ {
+ return $this->isPreemptible;
+ }
+ public function setMachineTypeUri($machineTypeUri)
+ {
+ $this->machineTypeUri = $machineTypeUri;
+ }
+ public function getMachineTypeUri()
+ {
+ return $this->machineTypeUri;
+ }
+ public function setManagedGroupConfig(Google_Service_Dataproc_ManagedGroupConfig $managedGroupConfig)
+ {
+ $this->managedGroupConfig = $managedGroupConfig;
+ }
+ public function getManagedGroupConfig()
+ {
+ return $this->managedGroupConfig;
+ }
+ public function setNumInstances($numInstances)
+ {
+ $this->numInstances = $numInstances;
+ }
+ public function getNumInstances()
+ {
+ return $this->numInstances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Job.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Job.php
new file mode 100644
index 00000000..8b9fb432
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Job.php
@@ -0,0 +1,169 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_Job extends Google_Collection
+{
+ protected $collection_key = 'yarnApplications';
+ public $driverControlFilesUri;
+ public $driverOutputResourceUri;
+ protected $hadoopJobType = 'Google_Service_Dataproc_HadoopJob';
+ protected $hadoopJobDataType = '';
+ protected $hiveJobType = 'Google_Service_Dataproc_HiveJob';
+ protected $hiveJobDataType = '';
+ public $labels;
+ protected $pigJobType = 'Google_Service_Dataproc_PigJob';
+ protected $pigJobDataType = '';
+ protected $placementType = 'Google_Service_Dataproc_JobPlacement';
+ protected $placementDataType = '';
+ protected $pysparkJobType = 'Google_Service_Dataproc_PySparkJob';
+ protected $pysparkJobDataType = '';
+ protected $referenceType = 'Google_Service_Dataproc_JobReference';
+ protected $referenceDataType = '';
+ protected $schedulingType = 'Google_Service_Dataproc_JobScheduling';
+ protected $schedulingDataType = '';
+ protected $sparkJobType = 'Google_Service_Dataproc_SparkJob';
+ protected $sparkJobDataType = '';
+ protected $sparkSqlJobType = 'Google_Service_Dataproc_SparkSqlJob';
+ protected $sparkSqlJobDataType = '';
+ protected $statusType = 'Google_Service_Dataproc_JobStatus';
+ protected $statusDataType = '';
+ protected $statusHistoryType = 'Google_Service_Dataproc_JobStatus';
+ protected $statusHistoryDataType = 'array';
+ protected $yarnApplicationsType = 'Google_Service_Dataproc_YarnApplication';
+ protected $yarnApplicationsDataType = 'array';
+
+ public function setDriverControlFilesUri($driverControlFilesUri)
+ {
+ $this->driverControlFilesUri = $driverControlFilesUri;
+ }
+ public function getDriverControlFilesUri()
+ {
+ return $this->driverControlFilesUri;
+ }
+ public function setDriverOutputResourceUri($driverOutputResourceUri)
+ {
+ $this->driverOutputResourceUri = $driverOutputResourceUri;
+ }
+ public function getDriverOutputResourceUri()
+ {
+ return $this->driverOutputResourceUri;
+ }
+ public function setHadoopJob(Google_Service_Dataproc_HadoopJob $hadoopJob)
+ {
+ $this->hadoopJob = $hadoopJob;
+ }
+ public function getHadoopJob()
+ {
+ return $this->hadoopJob;
+ }
+ public function setHiveJob(Google_Service_Dataproc_HiveJob $hiveJob)
+ {
+ $this->hiveJob = $hiveJob;
+ }
+ public function getHiveJob()
+ {
+ return $this->hiveJob;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setPigJob(Google_Service_Dataproc_PigJob $pigJob)
+ {
+ $this->pigJob = $pigJob;
+ }
+ public function getPigJob()
+ {
+ return $this->pigJob;
+ }
+ public function setPlacement(Google_Service_Dataproc_JobPlacement $placement)
+ {
+ $this->placement = $placement;
+ }
+ public function getPlacement()
+ {
+ return $this->placement;
+ }
+ public function setPysparkJob(Google_Service_Dataproc_PySparkJob $pysparkJob)
+ {
+ $this->pysparkJob = $pysparkJob;
+ }
+ public function getPysparkJob()
+ {
+ return $this->pysparkJob;
+ }
+ public function setReference(Google_Service_Dataproc_JobReference $reference)
+ {
+ $this->reference = $reference;
+ }
+ public function getReference()
+ {
+ return $this->reference;
+ }
+ public function setScheduling(Google_Service_Dataproc_JobScheduling $scheduling)
+ {
+ $this->scheduling = $scheduling;
+ }
+ public function getScheduling()
+ {
+ return $this->scheduling;
+ }
+ public function setSparkJob(Google_Service_Dataproc_SparkJob $sparkJob)
+ {
+ $this->sparkJob = $sparkJob;
+ }
+ public function getSparkJob()
+ {
+ return $this->sparkJob;
+ }
+ public function setSparkSqlJob(Google_Service_Dataproc_SparkSqlJob $sparkSqlJob)
+ {
+ $this->sparkSqlJob = $sparkSqlJob;
+ }
+ public function getSparkSqlJob()
+ {
+ return $this->sparkSqlJob;
+ }
+ public function setStatus(Google_Service_Dataproc_JobStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusHistory($statusHistory)
+ {
+ $this->statusHistory = $statusHistory;
+ }
+ public function getStatusHistory()
+ {
+ return $this->statusHistory;
+ }
+ public function setYarnApplications($yarnApplications)
+ {
+ $this->yarnApplications = $yarnApplications;
+ }
+ public function getYarnApplications()
+ {
+ return $this->yarnApplications;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobPlacement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobPlacement.php
new file mode 100644
index 00000000..16705b8c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobPlacement.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_JobPlacement extends Google_Model
+{
+ public $clusterName;
+ public $clusterUuid;
+
+ public function setClusterName($clusterName)
+ {
+ $this->clusterName = $clusterName;
+ }
+ public function getClusterName()
+ {
+ return $this->clusterName;
+ }
+ public function setClusterUuid($clusterUuid)
+ {
+ $this->clusterUuid = $clusterUuid;
+ }
+ public function getClusterUuid()
+ {
+ return $this->clusterUuid;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobReference.php
new file mode 100644
index 00000000..977cd0d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobReference.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_JobReference extends Google_Model
+{
+ public $jobId;
+ public $projectId;
+
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
+ {
+ return $this->jobId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobScheduling.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobScheduling.php
new file mode 100644
index 00000000..e698e4ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobScheduling.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_JobScheduling extends Google_Model
+{
+ public $maxFailuresPerHour;
+
+ public function setMaxFailuresPerHour($maxFailuresPerHour)
+ {
+ $this->maxFailuresPerHour = $maxFailuresPerHour;
+ }
+ public function getMaxFailuresPerHour()
+ {
+ return $this->maxFailuresPerHour;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobStatus.php
new file mode 100644
index 00000000..60f8df6b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/JobStatus.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_JobStatus extends Google_Model
+{
+ public $details;
+ public $state;
+ public $stateStartTime;
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStateStartTime($stateStartTime)
+ {
+ $this->stateStartTime = $stateStartTime;
+ }
+ public function getStateStartTime()
+ {
+ return $this->stateStartTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListClustersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListClustersResponse.php
new file mode 100644
index 00000000..d3589082
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListClustersResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ListClustersResponse extends Google_Collection
+{
+ protected $collection_key = 'clusters';
+ protected $clustersType = 'Google_Service_Dataproc_Cluster';
+ protected $clustersDataType = 'array';
+ public $nextPageToken;
+
+ public function setClusters($clusters)
+ {
+ $this->clusters = $clusters;
+ }
+ public function getClusters()
+ {
+ return $this->clusters;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListJobsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListJobsResponse.php
new file mode 100644
index 00000000..be99793b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListJobsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ListJobsResponse extends Google_Collection
+{
+ protected $collection_key = 'jobs';
+ protected $jobsType = 'Google_Service_Dataproc_Job';
+ protected $jobsDataType = 'array';
+ public $nextPageToken;
+
+ public function setJobs($jobs)
+ {
+ $this->jobs = $jobs;
+ }
+ public function getJobs()
+ {
+ return $this->jobs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListOperationsResponse.php
new file mode 100644
index 00000000..dd749a87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_Dataproc_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/LoggingConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/LoggingConfig.php
new file mode 100644
index 00000000..90e5f33d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/LoggingConfig.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_LoggingConfig extends Google_Model
+{
+ public $driverLogLevels;
+
+ public function setDriverLogLevels($driverLogLevels)
+ {
+ $this->driverLogLevels = $driverLogLevels;
+ }
+ public function getDriverLogLevels()
+ {
+ return $this->driverLogLevels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ManagedGroupConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ManagedGroupConfig.php
new file mode 100644
index 00000000..1725fe5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/ManagedGroupConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_ManagedGroupConfig extends Google_Model
+{
+ public $instanceGroupManagerName;
+ public $instanceTemplateName;
+
+ public function setInstanceGroupManagerName($instanceGroupManagerName)
+ {
+ $this->instanceGroupManagerName = $instanceGroupManagerName;
+ }
+ public function getInstanceGroupManagerName()
+ {
+ return $this->instanceGroupManagerName;
+ }
+ public function setInstanceTemplateName($instanceTemplateName)
+ {
+ $this->instanceTemplateName = $instanceTemplateName;
+ }
+ public function getInstanceTemplateName()
+ {
+ return $this->instanceTemplateName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/NodeInitializationAction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/NodeInitializationAction.php
new file mode 100644
index 00000000..d7f296c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/NodeInitializationAction.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_NodeInitializationAction extends Google_Model
+{
+ public $executableFile;
+ public $executionTimeout;
+
+ public function setExecutableFile($executableFile)
+ {
+ $this->executableFile = $executableFile;
+ }
+ public function getExecutableFile()
+ {
+ return $this->executableFile;
+ }
+ public function setExecutionTimeout($executionTimeout)
+ {
+ $this->executionTimeout = $executionTimeout;
+ }
+ public function getExecutionTimeout()
+ {
+ return $this->executionTimeout;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Operation.php
new file mode 100644
index 00000000..71e287c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_Dataproc_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_Dataproc_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationMetadata.php
new file mode 100644
index 00000000..e57db919
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationMetadata.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_OperationMetadata extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clusterName;
+ public $clusterUuid;
+ public $description;
+ public $details;
+ public $endTime;
+ public $innerState;
+ public $insertTime;
+ public $operationType;
+ public $startTime;
+ public $state;
+ protected $statusType = 'Google_Service_Dataproc_OperationStatus';
+ protected $statusDataType = '';
+ protected $statusHistoryType = 'Google_Service_Dataproc_OperationStatus';
+ protected $statusHistoryDataType = 'array';
+ public $warnings;
+
+ public function setClusterName($clusterName)
+ {
+ $this->clusterName = $clusterName;
+ }
+ public function getClusterName()
+ {
+ return $this->clusterName;
+ }
+ public function setClusterUuid($clusterUuid)
+ {
+ $this->clusterUuid = $clusterUuid;
+ }
+ public function getClusterUuid()
+ {
+ return $this->clusterUuid;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setInnerState($innerState)
+ {
+ $this->innerState = $innerState;
+ }
+ public function getInnerState()
+ {
+ return $this->innerState;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStatus(Google_Service_Dataproc_OperationStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusHistory($statusHistory)
+ {
+ $this->statusHistory = $statusHistory;
+ }
+ public function getStatusHistory()
+ {
+ return $this->statusHistory;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationStatus.php
new file mode 100644
index 00000000..90f1143d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/OperationStatus.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_OperationStatus extends Google_Model
+{
+ public $details;
+ public $innerState;
+ public $state;
+ public $stateStartTime;
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setInnerState($innerState)
+ {
+ $this->innerState = $innerState;
+ }
+ public function getInnerState()
+ {
+ return $this->innerState;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStateStartTime($stateStartTime)
+ {
+ $this->stateStartTime = $stateStartTime;
+ }
+ public function getStateStartTime()
+ {
+ return $this->stateStartTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PigJob.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PigJob.php
new file mode 100644
index 00000000..e09142cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PigJob.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_PigJob extends Google_Collection
+{
+ protected $collection_key = 'jarFileUris';
+ public $continueOnFailure;
+ public $jarFileUris;
+ protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig';
+ protected $loggingConfigDataType = '';
+ public $properties;
+ public $queryFileUri;
+ protected $queryListType = 'Google_Service_Dataproc_QueryList';
+ protected $queryListDataType = '';
+ public $scriptVariables;
+
+ public function setContinueOnFailure($continueOnFailure)
+ {
+ $this->continueOnFailure = $continueOnFailure;
+ }
+ public function getContinueOnFailure()
+ {
+ return $this->continueOnFailure;
+ }
+ public function setJarFileUris($jarFileUris)
+ {
+ $this->jarFileUris = $jarFileUris;
+ }
+ public function getJarFileUris()
+ {
+ return $this->jarFileUris;
+ }
+ public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig)
+ {
+ $this->loggingConfig = $loggingConfig;
+ }
+ public function getLoggingConfig()
+ {
+ return $this->loggingConfig;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setQueryFileUri($queryFileUri)
+ {
+ $this->queryFileUri = $queryFileUri;
+ }
+ public function getQueryFileUri()
+ {
+ return $this->queryFileUri;
+ }
+ public function setQueryList(Google_Service_Dataproc_QueryList $queryList)
+ {
+ $this->queryList = $queryList;
+ }
+ public function getQueryList()
+ {
+ return $this->queryList;
+ }
+ public function setScriptVariables($scriptVariables)
+ {
+ $this->scriptVariables = $scriptVariables;
+ }
+ public function getScriptVariables()
+ {
+ return $this->scriptVariables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PySparkJob.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PySparkJob.php
new file mode 100644
index 00000000..4ab147d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/PySparkJob.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_PySparkJob extends Google_Collection
+{
+ protected $collection_key = 'pythonFileUris';
+ public $archiveUris;
+ public $args;
+ public $fileUris;
+ public $jarFileUris;
+ protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig';
+ protected $loggingConfigDataType = '';
+ public $mainPythonFileUri;
+ public $properties;
+ public $pythonFileUris;
+
+ public function setArchiveUris($archiveUris)
+ {
+ $this->archiveUris = $archiveUris;
+ }
+ public function getArchiveUris()
+ {
+ return $this->archiveUris;
+ }
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setFileUris($fileUris)
+ {
+ $this->fileUris = $fileUris;
+ }
+ public function getFileUris()
+ {
+ return $this->fileUris;
+ }
+ public function setJarFileUris($jarFileUris)
+ {
+ $this->jarFileUris = $jarFileUris;
+ }
+ public function getJarFileUris()
+ {
+ return $this->jarFileUris;
+ }
+ public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig)
+ {
+ $this->loggingConfig = $loggingConfig;
+ }
+ public function getLoggingConfig()
+ {
+ return $this->loggingConfig;
+ }
+ public function setMainPythonFileUri($mainPythonFileUri)
+ {
+ $this->mainPythonFileUri = $mainPythonFileUri;
+ }
+ public function getMainPythonFileUri()
+ {
+ return $this->mainPythonFileUri;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setPythonFileUris($pythonFileUris)
+ {
+ $this->pythonFileUris = $pythonFileUris;
+ }
+ public function getPythonFileUris()
+ {
+ return $this->pythonFileUris;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/QueryList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/QueryList.php
new file mode 100644
index 00000000..a14da25d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/QueryList.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_QueryList extends Google_Collection
+{
+ protected $collection_key = 'queries';
+ public $queries;
+
+ public function setQueries($queries)
+ {
+ $this->queries = $queries;
+ }
+ public function getQueries()
+ {
+ return $this->queries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/Projects.php
new file mode 100644
index 00000000..505f9dd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataprocService = new Google_Service_Dataproc(...);
+ * $projects = $dataprocService->projects;
+ * </code>
+ */
+class Google_Service_Dataproc_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegions.php
new file mode 100644
index 00000000..ba626814
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegions.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataprocService = new Google_Service_Dataproc(...);
+ * $regions = $dataprocService->regions;
+ * </code>
+ */
+class Google_Service_Dataproc_Resource_ProjectsRegions extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php
new file mode 100644
index 00000000..77c97dd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsClusters.php
@@ -0,0 +1,162 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "clusters" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataprocService = new Google_Service_Dataproc(...);
+ * $clusters = $dataprocService->clusters;
+ * </code>
+ */
+class Google_Service_Dataproc_Resource_ProjectsRegionsClusters extends Google_Service_Resource
+{
+ /**
+ * Creates a cluster in a project. (clusters.create)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the cluster belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param Google_Service_Dataproc_Cluster $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Operation
+ */
+ public function create($projectId, $region, Google_Service_Dataproc_Cluster $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Dataproc_Operation");
+ }
+ /**
+ * Deletes a cluster in a project. (clusters.delete)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the cluster belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $clusterName Required The cluster name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Operation
+ */
+ public function delete($projectId, $region, $clusterName, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Dataproc_Operation");
+ }
+ /**
+ * Gets cluster diagnostic information. After the operation completes, the
+ * Operation.response field contains DiagnoseClusterOutputLocation.
+ * (clusters.diagnose)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the cluster belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $clusterName Required The cluster name.
+ * @param Google_Service_Dataproc_DiagnoseClusterRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Operation
+ */
+ public function diagnose($projectId, $region, $clusterName, Google_Service_Dataproc_DiagnoseClusterRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('diagnose', array($params), "Google_Service_Dataproc_Operation");
+ }
+ /**
+ * Gets the resource representation for a cluster in a project. (clusters.get)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the cluster belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $clusterName Required The cluster name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Cluster
+ */
+ public function get($projectId, $region, $clusterName, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dataproc_Cluster");
+ }
+ /**
+ * Lists all regions/{region}/clusters in a project.
+ * (clusters.listProjectsRegionsClusters)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the cluster belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional A filter constraining the clusters to list.
+ * Filters are case-sensitive and have the following syntax:field = value AND
+ * field = value ...where field is one of status.state, clusterName, or
+ * labels.[KEY], and [KEY] is a label key. value can be * to match all values.
+ * status.state can be one of the following: ACTIVE, INACTIVE, CREATING,
+ * RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING,
+ * UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR
+ * states. clusterName is the name of the cluster provided at creation time.
+ * Only the logical AND operator is supported; space-separated items are treated
+ * as having an implicit AND operator.Example filter:status.state = ACTIVE AND
+ * clusterName = mycluster AND labels.env = staging AND labels.starred = *
+ * @opt_param string pageToken Optional The standard List page token.
+ * @opt_param int pageSize Optional The standard List page size.
+ * @return Google_Service_Dataproc_ListClustersResponse
+ */
+ public function listProjectsRegionsClusters($projectId, $region, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataproc_ListClustersResponse");
+ }
+ /**
+ * Updates a cluster in a project. (clusters.patch)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * the cluster belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $clusterName Required The cluster name.
+ * @param Google_Service_Dataproc_Cluster $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Required Specifies the path, relative to
+ * Cluster, of the field to update. For example, to change the number of workers
+ * in a cluster to 5, the update_mask parameter would be specified as
+ * config.worker_config.num_instances, and the PATCH request body would specify
+ * the new value, as follows: { "config":{ "workerConfig":{
+ * "numInstances":"5" } } } Similarly, to change the number of preemptible
+ * workers in a cluster to 5, the update_mask parameter would be
+ * config.secondary_worker_config.num_instances, and the PATCH request body
+ * would be set as follows: { "config":{ "secondaryWorkerConfig":{
+ * "numInstances":"5" } } } Note: Currently,
+ * config.worker_config.num_instances and
+ * config.secondary_worker_config.num_instances are the only fields that can be
+ * updated.
+ * @return Google_Service_Dataproc_Operation
+ */
+ public function patch($projectId, $region, $clusterName, Google_Service_Dataproc_Cluster $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'clusterName' => $clusterName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dataproc_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php
new file mode 100644
index 00000000..23cb52ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsJobs.php
@@ -0,0 +1,156 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataprocService = new Google_Service_Dataproc(...);
+ * $jobs = $dataprocService->jobs;
+ * </code>
+ */
+class Google_Service_Dataproc_Resource_ProjectsRegionsJobs extends Google_Service_Resource
+{
+ /**
+ * Starts a job cancellation request. To access the job resource after
+ * cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.
+ * (jobs.cancel)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the job belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $jobId Required The job ID.
+ * @param Google_Service_Dataproc_CancelJobRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Job
+ */
+ public function cancel($projectId, $region, $jobId, Google_Service_Dataproc_CancelJobRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Dataproc_Job");
+ }
+ /**
+ * Deletes the job from the project. If the job is active, the delete fails, and
+ * the response returns FAILED_PRECONDITION. (jobs.delete)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the job belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $jobId Required The job ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_DataprocEmpty
+ */
+ public function delete($projectId, $region, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Dataproc_DataprocEmpty");
+ }
+ /**
+ * Gets the resource representation for a job in a project. (jobs.get)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the job belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $jobId Required The job ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Job
+ */
+ public function get($projectId, $region, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dataproc_Job");
+ }
+ /**
+ * Lists regions/{region}/jobs in a project. (jobs.listProjectsRegionsJobs)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the job belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional The page token, returned by a previous
+ * call, to request the next page of results.
+ * @opt_param int pageSize Optional The number of results to return in each
+ * response.
+ * @opt_param string clusterName Optional If set, the returned jobs list
+ * includes only jobs that were submitted to the named cluster.
+ * @opt_param string filter Optional A filter constraining the jobs to list.
+ * Filters are case-sensitive and have the following syntax:field = value AND
+ * field = value ...where field is status.state or labels.[KEY], and [KEY] is a
+ * label key. value can be * to match all values. status.state can be either
+ * ACTIVE or INACTIVE. Only the logical AND operator is supported; space-
+ * separated items are treated as having an implicit AND operator.Example
+ * filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *
+ * @opt_param string jobStateMatcher Optional Specifies enumerated categories of
+ * jobs to list (default = match ALL jobs).
+ * @return Google_Service_Dataproc_ListJobsResponse
+ */
+ public function listProjectsRegionsJobs($projectId, $region, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataproc_ListJobsResponse");
+ }
+ /**
+ * Updates a job in a project. (jobs.patch)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the job belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param string $jobId Required The job ID.
+ * @param Google_Service_Dataproc_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask Required Specifies the path, relative to Job, of
+ * the field to update. For example, to update the labels of a Job the
+ * update_mask parameter would be specified as labels, and the PATCH request
+ * body would specify the new value. Note: Currently, labels is the only field
+ * that can be updated.
+ * @return Google_Service_Dataproc_Job
+ */
+ public function patch($projectId, $region, $jobId, Google_Service_Dataproc_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dataproc_Job");
+ }
+ /**
+ * Submits a job to a cluster. (jobs.submit)
+ *
+ * @param string $projectId Required The ID of the Google Cloud Platform project
+ * that the job belongs to.
+ * @param string $region Required The Cloud Dataproc region in which to handle
+ * the request.
+ * @param Google_Service_Dataproc_SubmitJobRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Job
+ */
+ public function submit($projectId, $region, Google_Service_Dataproc_SubmitJobRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('submit', array($params), "Google_Service_Dataproc_Job");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php
new file mode 100644
index 00000000..b366e26b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Resource/ProjectsRegionsOperations.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dataprocService = new Google_Service_Dataproc(...);
+ * $operations = $dataprocService->operations;
+ * </code>
+ */
+class Google_Service_Dataproc_Resource_ProjectsRegionsOperations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * Code.CANCELLED. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_DataprocEmpty
+ */
+ public function cancel($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Dataproc_DataprocEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * google.rpc.Code.UNIMPLEMENTED. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_DataprocEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Dataproc_DataprocEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataproc_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dataproc_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name
+ * binding below allows API services to override the binding to use different
+ * resource name schemes, such as users/operations.
+ * (operations.listProjectsRegionsOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string filter The standard list filter.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_Dataproc_ListOperationsResponse
+ */
+ public function listProjectsRegionsOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataproc_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SoftwareConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SoftwareConfig.php
new file mode 100644
index 00000000..26abe390
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SoftwareConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_SoftwareConfig extends Google_Model
+{
+ public $imageVersion;
+ public $properties;
+
+ public function setImageVersion($imageVersion)
+ {
+ $this->imageVersion = $imageVersion;
+ }
+ public function getImageVersion()
+ {
+ return $this->imageVersion;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkJob.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkJob.php
new file mode 100644
index 00000000..845b7e88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkJob.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_SparkJob extends Google_Collection
+{
+ protected $collection_key = 'jarFileUris';
+ public $archiveUris;
+ public $args;
+ public $fileUris;
+ public $jarFileUris;
+ protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig';
+ protected $loggingConfigDataType = '';
+ public $mainClass;
+ public $mainJarFileUri;
+ public $properties;
+
+ public function setArchiveUris($archiveUris)
+ {
+ $this->archiveUris = $archiveUris;
+ }
+ public function getArchiveUris()
+ {
+ return $this->archiveUris;
+ }
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setFileUris($fileUris)
+ {
+ $this->fileUris = $fileUris;
+ }
+ public function getFileUris()
+ {
+ return $this->fileUris;
+ }
+ public function setJarFileUris($jarFileUris)
+ {
+ $this->jarFileUris = $jarFileUris;
+ }
+ public function getJarFileUris()
+ {
+ return $this->jarFileUris;
+ }
+ public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig)
+ {
+ $this->loggingConfig = $loggingConfig;
+ }
+ public function getLoggingConfig()
+ {
+ return $this->loggingConfig;
+ }
+ public function setMainClass($mainClass)
+ {
+ $this->mainClass = $mainClass;
+ }
+ public function getMainClass()
+ {
+ return $this->mainClass;
+ }
+ public function setMainJarFileUri($mainJarFileUri)
+ {
+ $this->mainJarFileUri = $mainJarFileUri;
+ }
+ public function getMainJarFileUri()
+ {
+ return $this->mainJarFileUri;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkSqlJob.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkSqlJob.php
new file mode 100644
index 00000000..d5dba5d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SparkSqlJob.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_SparkSqlJob extends Google_Collection
+{
+ protected $collection_key = 'jarFileUris';
+ public $jarFileUris;
+ protected $loggingConfigType = 'Google_Service_Dataproc_LoggingConfig';
+ protected $loggingConfigDataType = '';
+ public $properties;
+ public $queryFileUri;
+ protected $queryListType = 'Google_Service_Dataproc_QueryList';
+ protected $queryListDataType = '';
+ public $scriptVariables;
+
+ public function setJarFileUris($jarFileUris)
+ {
+ $this->jarFileUris = $jarFileUris;
+ }
+ public function getJarFileUris()
+ {
+ return $this->jarFileUris;
+ }
+ public function setLoggingConfig(Google_Service_Dataproc_LoggingConfig $loggingConfig)
+ {
+ $this->loggingConfig = $loggingConfig;
+ }
+ public function getLoggingConfig()
+ {
+ return $this->loggingConfig;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setQueryFileUri($queryFileUri)
+ {
+ $this->queryFileUri = $queryFileUri;
+ }
+ public function getQueryFileUri()
+ {
+ return $this->queryFileUri;
+ }
+ public function setQueryList(Google_Service_Dataproc_QueryList $queryList)
+ {
+ $this->queryList = $queryList;
+ }
+ public function getQueryList()
+ {
+ return $this->queryList;
+ }
+ public function setScriptVariables($scriptVariables)
+ {
+ $this->scriptVariables = $scriptVariables;
+ }
+ public function getScriptVariables()
+ {
+ return $this->scriptVariables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Status.php
new file mode 100644
index 00000000..55bc1464
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SubmitJobRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SubmitJobRequest.php
new file mode 100644
index 00000000..e35ec7c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/SubmitJobRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_SubmitJobRequest extends Google_Model
+{
+ protected $jobType = 'Google_Service_Dataproc_Job';
+ protected $jobDataType = '';
+
+ public function setJob(Google_Service_Dataproc_Job $job)
+ {
+ $this->job = $job;
+ }
+ public function getJob()
+ {
+ return $this->job;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/YarnApplication.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/YarnApplication.php
new file mode 100644
index 00000000..3e9ec6b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dataproc/YarnApplication.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dataproc_YarnApplication extends Google_Model
+{
+ public $name;
+ public $progress;
+ public $state;
+ public $trackingUrl;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTrackingUrl($trackingUrl)
+ {
+ $this->trackingUrl = $trackingUrl;
+ }
+ public function getTrackingUrl()
+ {
+ return $this->trackingUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore.php
new file mode 100644
index 00000000..f51d9628
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Datastore (v1).
+ *
+ * <p>
+ * Accesses the schemaless NoSQL database to provide fully managed, robust,
+ * scalable storage for your application.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/datastore/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Datastore extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View and manage your Google Cloud Datastore data. */
+ const DATASTORE =
+ "https://www.googleapis.com/auth/datastore";
+
+ public $projects;
+
+ /**
+ * Constructs the internal representation of the Datastore service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://datastore.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'datastore';
+
+ $this->projects = new Google_Service_Datastore_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'allocateIds' => array(
+ 'path' => 'v1/projects/{projectId}:allocateIds',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'beginTransaction' => array(
+ 'path' => 'v1/projects/{projectId}:beginTransaction',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'commit' => array(
+ 'path' => 'v1/projects/{projectId}:commit',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'lookup' => array(
+ 'path' => 'v1/projects/{projectId}:lookup',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'rollback' => array(
+ 'path' => 'v1/projects/{projectId}:rollback',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'runQuery' => array(
+ 'path' => 'v1/projects/{projectId}:runQuery',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsRequest.php
new file mode 100644
index 00000000..a188b51e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $keysType = 'Google_Service_Datastore_Key';
+ protected $keysDataType = 'array';
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsResponse.php
new file mode 100644
index 00000000..19fbe936
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/AllocateIdsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $keysType = 'Google_Service_Datastore_Key';
+ protected $keysDataType = 'array';
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ArrayValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ArrayValue.php
new file mode 100644
index 00000000..70ce9602
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ArrayValue.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_ArrayValue extends Google_Collection
+{
+ protected $collection_key = 'values';
+ protected $valuesType = 'Google_Service_Datastore_Value';
+ protected $valuesDataType = 'array';
+
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionRequest.php
new file mode 100644
index 00000000..407ed6e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_BeginTransactionRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionResponse.php
new file mode 100644
index 00000000..542a9df3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/BeginTransactionResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_BeginTransactionResponse extends Google_Model
+{
+ public $transaction;
+
+ public function setTransaction($transaction)
+ {
+ $this->transaction = $transaction;
+ }
+ public function getTransaction()
+ {
+ return $this->transaction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitRequest.php
new file mode 100644
index 00000000..cbb98544
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_CommitRequest extends Google_Collection
+{
+ protected $collection_key = 'mutations';
+ public $mode;
+ protected $mutationsType = 'Google_Service_Datastore_Mutation';
+ protected $mutationsDataType = 'array';
+ public $transaction;
+
+ public function setMode($mode)
+ {
+ $this->mode = $mode;
+ }
+ public function getMode()
+ {
+ return $this->mode;
+ }
+ public function setMutations($mutations)
+ {
+ $this->mutations = $mutations;
+ }
+ public function getMutations()
+ {
+ return $this->mutations;
+ }
+ public function setTransaction($transaction)
+ {
+ $this->transaction = $transaction;
+ }
+ public function getTransaction()
+ {
+ return $this->transaction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitResponse.php
new file mode 100644
index 00000000..93395723
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CommitResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_CommitResponse extends Google_Collection
+{
+ protected $collection_key = 'mutationResults';
+ public $indexUpdates;
+ protected $mutationResultsType = 'Google_Service_Datastore_MutationResult';
+ protected $mutationResultsDataType = 'array';
+
+ public function setIndexUpdates($indexUpdates)
+ {
+ $this->indexUpdates = $indexUpdates;
+ }
+ public function getIndexUpdates()
+ {
+ return $this->indexUpdates;
+ }
+ public function setMutationResults($mutationResults)
+ {
+ $this->mutationResults = $mutationResults;
+ }
+ public function getMutationResults()
+ {
+ return $this->mutationResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CompositeFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CompositeFilter.php
new file mode 100644
index 00000000..e9774d7a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/CompositeFilter.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_CompositeFilter extends Google_Collection
+{
+ protected $collection_key = 'filters';
+ protected $filtersType = 'Google_Service_Datastore_Filter';
+ protected $filtersDataType = 'array';
+ public $op;
+
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Entity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Entity.php
new file mode 100644
index 00000000..dbc9e52f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Entity.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_Entity extends Google_Model
+{
+ protected $keyType = 'Google_Service_Datastore_Key';
+ protected $keyDataType = '';
+ protected $propertiesType = 'Google_Service_Datastore_Value';
+ protected $propertiesDataType = 'map';
+
+ public function setKey(Google_Service_Datastore_Key $key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/EntityResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/EntityResult.php
new file mode 100644
index 00000000..41fae807
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/EntityResult.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_EntityResult extends Google_Model
+{
+ public $cursor;
+ protected $entityType = 'Google_Service_Datastore_Entity';
+ protected $entityDataType = '';
+ public $version;
+
+ public function setCursor($cursor)
+ {
+ $this->cursor = $cursor;
+ }
+ public function getCursor()
+ {
+ return $this->cursor;
+ }
+ public function setEntity(Google_Service_Datastore_Entity $entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Filter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Filter.php
new file mode 100644
index 00000000..579c95c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Filter.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_Filter extends Google_Model
+{
+ protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter';
+ protected $compositeFilterDataType = '';
+ protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter';
+ protected $propertyFilterDataType = '';
+
+ public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter)
+ {
+ $this->compositeFilter = $compositeFilter;
+ }
+ public function getCompositeFilter()
+ {
+ return $this->compositeFilter;
+ }
+ public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter)
+ {
+ $this->propertyFilter = $propertyFilter;
+ }
+ public function getPropertyFilter()
+ {
+ return $this->propertyFilter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQuery.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQuery.php
new file mode 100644
index 00000000..271d43e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQuery.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_GqlQuery extends Google_Collection
+{
+ protected $collection_key = 'positionalBindings';
+ public $allowLiterals;
+ protected $namedBindingsType = 'Google_Service_Datastore_GqlQueryParameter';
+ protected $namedBindingsDataType = 'map';
+ protected $positionalBindingsType = 'Google_Service_Datastore_GqlQueryParameter';
+ protected $positionalBindingsDataType = 'array';
+ public $queryString;
+
+ public function setAllowLiterals($allowLiterals)
+ {
+ $this->allowLiterals = $allowLiterals;
+ }
+ public function getAllowLiterals()
+ {
+ return $this->allowLiterals;
+ }
+ public function setNamedBindings($namedBindings)
+ {
+ $this->namedBindings = $namedBindings;
+ }
+ public function getNamedBindings()
+ {
+ return $this->namedBindings;
+ }
+ public function setPositionalBindings($positionalBindings)
+ {
+ $this->positionalBindings = $positionalBindings;
+ }
+ public function getPositionalBindings()
+ {
+ return $this->positionalBindings;
+ }
+ public function setQueryString($queryString)
+ {
+ $this->queryString = $queryString;
+ }
+ public function getQueryString()
+ {
+ return $this->queryString;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQueryParameter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQueryParameter.php
new file mode 100644
index 00000000..fa47a775
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/GqlQueryParameter.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_GqlQueryParameter extends Google_Model
+{
+ public $cursor;
+ protected $valueType = 'Google_Service_Datastore_Value';
+ protected $valueDataType = '';
+
+ public function setCursor($cursor)
+ {
+ $this->cursor = $cursor;
+ }
+ public function getCursor()
+ {
+ return $this->cursor;
+ }
+ public function setValue(Google_Service_Datastore_Value $value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Key.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Key.php
new file mode 100644
index 00000000..0febfdf9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Key.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_Key extends Google_Collection
+{
+ protected $collection_key = 'path';
+ protected $partitionIdType = 'Google_Service_Datastore_PartitionId';
+ protected $partitionIdDataType = '';
+ protected $pathType = 'Google_Service_Datastore_PathElement';
+ protected $pathDataType = 'array';
+
+ public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId)
+ {
+ $this->partitionId = $partitionId;
+ }
+ public function getPartitionId()
+ {
+ return $this->partitionId;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/KindExpression.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/KindExpression.php
new file mode 100644
index 00000000..5831a6a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/KindExpression.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_KindExpression extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LatLng.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LatLng.php
new file mode 100644
index 00000000..e5eae8fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LatLng.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_LatLng extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupRequest.php
new file mode 100644
index 00000000..19a5f33e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupRequest.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_LookupRequest extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $keysType = 'Google_Service_Datastore_Key';
+ protected $keysDataType = 'array';
+ protected $readOptionsType = 'Google_Service_Datastore_ReadOptions';
+ protected $readOptionsDataType = '';
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+ public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions)
+ {
+ $this->readOptions = $readOptions;
+ }
+ public function getReadOptions()
+ {
+ return $this->readOptions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupResponse.php
new file mode 100644
index 00000000..9568c94e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/LookupResponse.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_LookupResponse extends Google_Collection
+{
+ protected $collection_key = 'missing';
+ protected $deferredType = 'Google_Service_Datastore_Key';
+ protected $deferredDataType = 'array';
+ protected $foundType = 'Google_Service_Datastore_EntityResult';
+ protected $foundDataType = 'array';
+ protected $missingType = 'Google_Service_Datastore_EntityResult';
+ protected $missingDataType = 'array';
+
+ public function setDeferred($deferred)
+ {
+ $this->deferred = $deferred;
+ }
+ public function getDeferred()
+ {
+ return $this->deferred;
+ }
+ public function setFound($found)
+ {
+ $this->found = $found;
+ }
+ public function getFound()
+ {
+ return $this->found;
+ }
+ public function setMissing($missing)
+ {
+ $this->missing = $missing;
+ }
+ public function getMissing()
+ {
+ return $this->missing;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Mutation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Mutation.php
new file mode 100644
index 00000000..6be38521
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Mutation.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_Mutation extends Google_Model
+{
+ public $baseVersion;
+ protected $deleteType = 'Google_Service_Datastore_Key';
+ protected $deleteDataType = '';
+ protected $insertType = 'Google_Service_Datastore_Entity';
+ protected $insertDataType = '';
+ protected $updateType = 'Google_Service_Datastore_Entity';
+ protected $updateDataType = '';
+ protected $upsertType = 'Google_Service_Datastore_Entity';
+ protected $upsertDataType = '';
+
+ public function setBaseVersion($baseVersion)
+ {
+ $this->baseVersion = $baseVersion;
+ }
+ public function getBaseVersion()
+ {
+ return $this->baseVersion;
+ }
+ public function setDelete(Google_Service_Datastore_Key $delete)
+ {
+ $this->delete = $delete;
+ }
+ public function getDelete()
+ {
+ return $this->delete;
+ }
+ public function setInsert(Google_Service_Datastore_Entity $insert)
+ {
+ $this->insert = $insert;
+ }
+ public function getInsert()
+ {
+ return $this->insert;
+ }
+ public function setUpdate(Google_Service_Datastore_Entity $update)
+ {
+ $this->update = $update;
+ }
+ public function getUpdate()
+ {
+ return $this->update;
+ }
+ public function setUpsert(Google_Service_Datastore_Entity $upsert)
+ {
+ $this->upsert = $upsert;
+ }
+ public function getUpsert()
+ {
+ return $this->upsert;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/MutationResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/MutationResult.php
new file mode 100644
index 00000000..9016d38e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/MutationResult.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_MutationResult extends Google_Model
+{
+ public $conflictDetected;
+ protected $keyType = 'Google_Service_Datastore_Key';
+ protected $keyDataType = '';
+ public $version;
+
+ public function setConflictDetected($conflictDetected)
+ {
+ $this->conflictDetected = $conflictDetected;
+ }
+ public function getConflictDetected()
+ {
+ return $this->conflictDetected;
+ }
+ public function setKey(Google_Service_Datastore_Key $key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PartitionId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PartitionId.php
new file mode 100644
index 00000000..39a95139
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PartitionId.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_PartitionId extends Google_Model
+{
+ public $namespaceId;
+ public $projectId;
+
+ public function setNamespaceId($namespaceId)
+ {
+ $this->namespaceId = $namespaceId;
+ }
+ public function getNamespaceId()
+ {
+ return $this->namespaceId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PathElement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PathElement.php
new file mode 100644
index 00000000..9ff2480e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PathElement.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_PathElement extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Projection.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Projection.php
new file mode 100644
index 00000000..2576f2ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Projection.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_Projection extends Google_Model
+{
+ protected $propertyType = 'Google_Service_Datastore_PropertyReference';
+ protected $propertyDataType = '';
+
+ public function setProperty(Google_Service_Datastore_PropertyReference $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyFilter.php
new file mode 100644
index 00000000..b6331bd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyFilter.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_PropertyFilter extends Google_Model
+{
+ public $op;
+ protected $propertyType = 'Google_Service_Datastore_PropertyReference';
+ protected $propertyDataType = '';
+ protected $valueType = 'Google_Service_Datastore_Value';
+ protected $valueDataType = '';
+
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setProperty(Google_Service_Datastore_PropertyReference $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+ public function setValue(Google_Service_Datastore_Value $value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyOrder.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyOrder.php
new file mode 100644
index 00000000..ae15b758
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyOrder.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_PropertyOrder extends Google_Model
+{
+ public $direction;
+ protected $propertyType = 'Google_Service_Datastore_PropertyReference';
+ protected $propertyDataType = '';
+
+ public function setDirection($direction)
+ {
+ $this->direction = $direction;
+ }
+ public function getDirection()
+ {
+ return $this->direction;
+ }
+ public function setProperty(Google_Service_Datastore_PropertyReference $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyReference.php
new file mode 100644
index 00000000..bc565d58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/PropertyReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_PropertyReference extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Query.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Query.php
new file mode 100644
index 00000000..c3c32780
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Query.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_Query extends Google_Collection
+{
+ protected $collection_key = 'projection';
+ protected $distinctOnType = 'Google_Service_Datastore_PropertyReference';
+ protected $distinctOnDataType = 'array';
+ public $endCursor;
+ protected $filterType = 'Google_Service_Datastore_Filter';
+ protected $filterDataType = '';
+ protected $kindType = 'Google_Service_Datastore_KindExpression';
+ protected $kindDataType = 'array';
+ public $limit;
+ public $offset;
+ protected $orderType = 'Google_Service_Datastore_PropertyOrder';
+ protected $orderDataType = 'array';
+ protected $projectionType = 'Google_Service_Datastore_Projection';
+ protected $projectionDataType = 'array';
+ public $startCursor;
+
+ public function setDistinctOn($distinctOn)
+ {
+ $this->distinctOn = $distinctOn;
+ }
+ public function getDistinctOn()
+ {
+ return $this->distinctOn;
+ }
+ public function setEndCursor($endCursor)
+ {
+ $this->endCursor = $endCursor;
+ }
+ public function getEndCursor()
+ {
+ return $this->endCursor;
+ }
+ public function setFilter(Google_Service_Datastore_Filter $filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLimit($limit)
+ {
+ $this->limit = $limit;
+ }
+ public function getLimit()
+ {
+ return $this->limit;
+ }
+ public function setOffset($offset)
+ {
+ $this->offset = $offset;
+ }
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+ public function setOrder($order)
+ {
+ $this->order = $order;
+ }
+ public function getOrder()
+ {
+ return $this->order;
+ }
+ public function setProjection($projection)
+ {
+ $this->projection = $projection;
+ }
+ public function getProjection()
+ {
+ return $this->projection;
+ }
+ public function setStartCursor($startCursor)
+ {
+ $this->startCursor = $startCursor;
+ }
+ public function getStartCursor()
+ {
+ return $this->startCursor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/QueryResultBatch.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/QueryResultBatch.php
new file mode 100644
index 00000000..268c7737
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/QueryResultBatch.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_QueryResultBatch extends Google_Collection
+{
+ protected $collection_key = 'entityResults';
+ public $endCursor;
+ public $entityResultType;
+ protected $entityResultsType = 'Google_Service_Datastore_EntityResult';
+ protected $entityResultsDataType = 'array';
+ public $moreResults;
+ public $skippedCursor;
+ public $skippedResults;
+ public $snapshotVersion;
+
+ public function setEndCursor($endCursor)
+ {
+ $this->endCursor = $endCursor;
+ }
+ public function getEndCursor()
+ {
+ return $this->endCursor;
+ }
+ public function setEntityResultType($entityResultType)
+ {
+ $this->entityResultType = $entityResultType;
+ }
+ public function getEntityResultType()
+ {
+ return $this->entityResultType;
+ }
+ public function setEntityResults($entityResults)
+ {
+ $this->entityResults = $entityResults;
+ }
+ public function getEntityResults()
+ {
+ return $this->entityResults;
+ }
+ public function setMoreResults($moreResults)
+ {
+ $this->moreResults = $moreResults;
+ }
+ public function getMoreResults()
+ {
+ return $this->moreResults;
+ }
+ public function setSkippedCursor($skippedCursor)
+ {
+ $this->skippedCursor = $skippedCursor;
+ }
+ public function getSkippedCursor()
+ {
+ return $this->skippedCursor;
+ }
+ public function setSkippedResults($skippedResults)
+ {
+ $this->skippedResults = $skippedResults;
+ }
+ public function getSkippedResults()
+ {
+ return $this->skippedResults;
+ }
+ public function setSnapshotVersion($snapshotVersion)
+ {
+ $this->snapshotVersion = $snapshotVersion;
+ }
+ public function getSnapshotVersion()
+ {
+ return $this->snapshotVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ReadOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ReadOptions.php
new file mode 100644
index 00000000..7e934ec0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/ReadOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_ReadOptions extends Google_Model
+{
+ public $readConsistency;
+ public $transaction;
+
+ public function setReadConsistency($readConsistency)
+ {
+ $this->readConsistency = $readConsistency;
+ }
+ public function getReadConsistency()
+ {
+ return $this->readConsistency;
+ }
+ public function setTransaction($transaction)
+ {
+ $this->transaction = $transaction;
+ }
+ public function getTransaction()
+ {
+ return $this->transaction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Resource/Projects.php
new file mode 100644
index 00000000..e786e729
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Resource/Projects.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $datastoreService = new Google_Service_Datastore(...);
+ * $projects = $datastoreService->projects;
+ * </code>
+ */
+class Google_Service_Datastore_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Allocates IDs for the given keys, which is useful for referencing an entity
+ * before it is inserted. (projects.allocateIds)
+ *
+ * @param string $projectId The ID of the project against which to make the
+ * request.
+ * @param Google_Service_Datastore_AllocateIdsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Datastore_AllocateIdsResponse
+ */
+ public function allocateIds($projectId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse");
+ }
+ /**
+ * Begins a new transaction. (projects.beginTransaction)
+ *
+ * @param string $projectId The ID of the project against which to make the
+ * request.
+ * @param Google_Service_Datastore_BeginTransactionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Datastore_BeginTransactionResponse
+ */
+ public function beginTransaction($projectId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse");
+ }
+ /**
+ * Commits a transaction, optionally creating, deleting or modifying some
+ * entities. (projects.commit)
+ *
+ * @param string $projectId The ID of the project against which to make the
+ * request.
+ * @param Google_Service_Datastore_CommitRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Datastore_CommitResponse
+ */
+ public function commit($projectId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse");
+ }
+ /**
+ * Looks up entities by key. (projects.lookup)
+ *
+ * @param string $projectId The ID of the project against which to make the
+ * request.
+ * @param Google_Service_Datastore_LookupRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Datastore_LookupResponse
+ */
+ public function lookup($projectId, Google_Service_Datastore_LookupRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse");
+ }
+ /**
+ * Rolls back a transaction. (projects.rollback)
+ *
+ * @param string $projectId The ID of the project against which to make the
+ * request.
+ * @param Google_Service_Datastore_RollbackRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Datastore_RollbackResponse
+ */
+ public function rollback($projectId, Google_Service_Datastore_RollbackRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse");
+ }
+ /**
+ * Queries for entities. (projects.runQuery)
+ *
+ * @param string $projectId The ID of the project against which to make the
+ * request.
+ * @param Google_Service_Datastore_RunQueryRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Datastore_RunQueryResponse
+ */
+ public function runQuery($projectId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('runQuery', array($params), "Google_Service_Datastore_RunQueryResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackRequest.php
new file mode 100644
index 00000000..2faa9679
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_RollbackRequest extends Google_Model
+{
+ public $transaction;
+
+ public function setTransaction($transaction)
+ {
+ $this->transaction = $transaction;
+ }
+ public function getTransaction()
+ {
+ return $this->transaction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackResponse.php
new file mode 100644
index 00000000..d80eb517
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RollbackResponse.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_RollbackResponse extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryRequest.php
new file mode 100644
index 00000000..d47fb563
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryRequest.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_RunQueryRequest extends Google_Model
+{
+ protected $gqlQueryType = 'Google_Service_Datastore_GqlQuery';
+ protected $gqlQueryDataType = '';
+ protected $partitionIdType = 'Google_Service_Datastore_PartitionId';
+ protected $partitionIdDataType = '';
+ protected $queryType = 'Google_Service_Datastore_Query';
+ protected $queryDataType = '';
+ protected $readOptionsType = 'Google_Service_Datastore_ReadOptions';
+ protected $readOptionsDataType = '';
+
+ public function setGqlQuery(Google_Service_Datastore_GqlQuery $gqlQuery)
+ {
+ $this->gqlQuery = $gqlQuery;
+ }
+ public function getGqlQuery()
+ {
+ return $this->gqlQuery;
+ }
+ public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId)
+ {
+ $this->partitionId = $partitionId;
+ }
+ public function getPartitionId()
+ {
+ return $this->partitionId;
+ }
+ public function setQuery(Google_Service_Datastore_Query $query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions)
+ {
+ $this->readOptions = $readOptions;
+ }
+ public function getReadOptions()
+ {
+ return $this->readOptions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryResponse.php
new file mode 100644
index 00000000..201368c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/RunQueryResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_RunQueryResponse extends Google_Model
+{
+ protected $batchType = 'Google_Service_Datastore_QueryResultBatch';
+ protected $batchDataType = '';
+ protected $queryType = 'Google_Service_Datastore_Query';
+ protected $queryDataType = '';
+
+ public function setBatch(Google_Service_Datastore_QueryResultBatch $batch)
+ {
+ $this->batch = $batch;
+ }
+ public function getBatch()
+ {
+ return $this->batch;
+ }
+ public function setQuery(Google_Service_Datastore_Query $query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Value.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Value.php
new file mode 100644
index 00000000..6d3c32d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Datastore/Value.php
@@ -0,0 +1,142 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Datastore_Value extends Google_Model
+{
+ protected $arrayValueType = 'Google_Service_Datastore_ArrayValue';
+ protected $arrayValueDataType = '';
+ public $blobValue;
+ public $booleanValue;
+ public $doubleValue;
+ protected $entityValueType = 'Google_Service_Datastore_Entity';
+ protected $entityValueDataType = '';
+ public $excludeFromIndexes;
+ protected $geoPointValueType = 'Google_Service_Datastore_LatLng';
+ protected $geoPointValueDataType = '';
+ public $integerValue;
+ protected $keyValueType = 'Google_Service_Datastore_Key';
+ protected $keyValueDataType = '';
+ public $meaning;
+ public $nullValue;
+ public $stringValue;
+ public $timestampValue;
+
+ public function setArrayValue(Google_Service_Datastore_ArrayValue $arrayValue)
+ {
+ $this->arrayValue = $arrayValue;
+ }
+ public function getArrayValue()
+ {
+ return $this->arrayValue;
+ }
+ public function setBlobValue($blobValue)
+ {
+ $this->blobValue = $blobValue;
+ }
+ public function getBlobValue()
+ {
+ return $this->blobValue;
+ }
+ public function setBooleanValue($booleanValue)
+ {
+ $this->booleanValue = $booleanValue;
+ }
+ public function getBooleanValue()
+ {
+ return $this->booleanValue;
+ }
+ public function setDoubleValue($doubleValue)
+ {
+ $this->doubleValue = $doubleValue;
+ }
+ public function getDoubleValue()
+ {
+ return $this->doubleValue;
+ }
+ public function setEntityValue(Google_Service_Datastore_Entity $entityValue)
+ {
+ $this->entityValue = $entityValue;
+ }
+ public function getEntityValue()
+ {
+ return $this->entityValue;
+ }
+ public function setExcludeFromIndexes($excludeFromIndexes)
+ {
+ $this->excludeFromIndexes = $excludeFromIndexes;
+ }
+ public function getExcludeFromIndexes()
+ {
+ return $this->excludeFromIndexes;
+ }
+ public function setGeoPointValue(Google_Service_Datastore_LatLng $geoPointValue)
+ {
+ $this->geoPointValue = $geoPointValue;
+ }
+ public function getGeoPointValue()
+ {
+ return $this->geoPointValue;
+ }
+ public function setIntegerValue($integerValue)
+ {
+ $this->integerValue = $integerValue;
+ }
+ public function getIntegerValue()
+ {
+ return $this->integerValue;
+ }
+ public function setKeyValue(Google_Service_Datastore_Key $keyValue)
+ {
+ $this->keyValue = $keyValue;
+ }
+ public function getKeyValue()
+ {
+ return $this->keyValue;
+ }
+ public function setMeaning($meaning)
+ {
+ $this->meaning = $meaning;
+ }
+ public function getMeaning()
+ {
+ return $this->meaning;
+ }
+ public function setNullValue($nullValue)
+ {
+ $this->nullValue = $nullValue;
+ }
+ public function getNullValue()
+ {
+ return $this->nullValue;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+ public function setTimestampValue($timestampValue)
+ {
+ $this->timestampValue = $timestampValue;
+ }
+ public function getTimestampValue()
+ {
+ return $this->timestampValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager.php
new file mode 100644
index 00000000..fe887c23
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager.php
@@ -0,0 +1,488 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for DeploymentManager (v2).
+ *
+ * <p>
+ * Declares, configures, and deploys complex solutions on Google Cloud Platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/deployment-manager/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_DeploymentManager extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** View and manage your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN =
+ "https://www.googleapis.com/auth/ndev.cloudman";
+ /** View your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN_READONLY =
+ "https://www.googleapis.com/auth/ndev.cloudman.readonly";
+
+ public $deployments;
+ public $manifests;
+ public $operations;
+ public $resources;
+ public $types;
+
+ /**
+ * Constructs the internal representation of the DeploymentManager service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'deploymentmanager/v2/projects/';
+ $this->version = 'v2';
+ $this->serviceName = 'deploymentmanager';
+
+ $this->deployments = new Google_Service_DeploymentManager_Resource_Deployments(
+ $this,
+ $this->serviceName,
+ 'deployments',
+ array(
+ 'methods' => array(
+ 'cancelPreview' => array(
+ 'path' => '{project}/global/deployments/{deployment}/cancelPreview',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/global/deployments/{deployment}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deletePolicy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/deployments/{deployment}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => '{project}/global/deployments/{resource}/getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/deployments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'preview' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/deployments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/deployments/{deployment}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'createPolicy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'deletePolicy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'preview' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => '{project}/global/deployments/{resource}/setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'stop' => array(
+ 'path' => '{project}/global/deployments/{deployment}/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => '{project}/global/deployments/{resource}/testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/deployments/{deployment}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'createPolicy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'deletePolicy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'preview' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->manifests = new Google_Service_DeploymentManager_Resource_Manifests(
+ $this,
+ $this->serviceName,
+ 'manifests',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/global/deployments/{deployment}/manifests/{manifest}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'manifest' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/deployments/{deployment}/manifests',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->operations = new Google_Service_DeploymentManager_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/global/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->resources = new Google_Service_DeploymentManager_Resource_Resources(
+ $this,
+ $this->serviceName,
+ 'resources',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/global/deployments/{deployment}/resources/{resource}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/deployments/{deployment}/resources',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deployment' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->types = new Google_Service_DeploymentManager_Resource_Types(
+ $this,
+ $this->serviceName,
+ 'types',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{project}/global/types',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditConfig.php
new file mode 100644
index 00000000..3dcd22fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditConfig.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_AuditConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ protected $auditLogConfigsType = 'Google_Service_DeploymentManager_AuditLogConfig';
+ protected $auditLogConfigsDataType = 'array';
+ public $exemptedMembers;
+ public $service;
+
+ public function setAuditLogConfigs($auditLogConfigs)
+ {
+ $this->auditLogConfigs = $auditLogConfigs;
+ }
+ public function getAuditLogConfigs()
+ {
+ return $this->auditLogConfigs;
+ }
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditLogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditLogConfig.php
new file mode 100644
index 00000000..7cb4e52d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/AuditLogConfig.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_AuditLogConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ public $exemptedMembers;
+ public $logType;
+
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setLogType($logType)
+ {
+ $this->logType = $logType;
+ }
+ public function getLogType()
+ {
+ return $this->logType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Binding.php
new file mode 100644
index 00000000..06bd6104
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Condition.php
new file mode 100644
index 00000000..60097131
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Condition.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Condition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $iam;
+ public $op;
+ public $svc;
+ public $sys;
+ public $value;
+ public $values;
+
+ public function setIam($iam)
+ {
+ $this->iam = $iam;
+ }
+ public function getIam()
+ {
+ return $this->iam;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setSvc($svc)
+ {
+ $this->svc = $svc;
+ }
+ public function getSvc()
+ {
+ return $this->svc;
+ }
+ public function setSys($sys)
+ {
+ $this->sys = $sys;
+ }
+ public function getSys()
+ {
+ return $this->sys;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ConfigFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ConfigFile.php
new file mode 100644
index 00000000..8abb1a99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ConfigFile.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ConfigFile extends Google_Model
+{
+ public $content;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php
new file mode 100644
index 00000000..065f0662
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Deployment.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Deployment extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $fingerprint;
+ public $id;
+ public $insertTime;
+ protected $labelsType = 'Google_Service_DeploymentManager_DeploymentLabelEntry';
+ protected $labelsDataType = 'array';
+ public $manifest;
+ public $name;
+ protected $operationType = 'Google_Service_DeploymentManager_Operation';
+ protected $operationDataType = '';
+ public $selfLink;
+ protected $targetType = 'Google_Service_DeploymentManager_TargetConfiguration';
+ protected $targetDataType = '';
+ protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate';
+ protected $updateDataType = '';
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperation(Google_Service_DeploymentManager_Operation $operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTarget(Google_Service_DeploymentManager_TargetConfiguration $target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setUpdate(Google_Service_DeploymentManager_DeploymentUpdate $update)
+ {
+ $this->update = $update;
+ }
+ public function getUpdate()
+ {
+ return $this->update;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentLabelEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentLabelEntry.php
new file mode 100644
index 00000000..dfefc929
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentLabelEntry.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentLabelEntry extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdate.php
new file mode 100644
index 00000000..99beda8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdate.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ protected $labelsType = 'Google_Service_DeploymentManager_DeploymentUpdateLabelEntry';
+ protected $labelsDataType = 'array';
+ public $manifest;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdateLabelEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdateLabelEntry.php
new file mode 100644
index 00000000..f7c160c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentUpdateLabelEntry.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentUpdateLabelEntry extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResource.php
new file mode 100644
index 00000000..6fdc0d7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResource.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ protected $accessControlType = 'Google_Service_DeploymentManager_ResourceAccessControl';
+ protected $accessControlDataType = '';
+ public $finalProperties;
+ public $id;
+ public $insertTime;
+ public $manifest;
+ public $name;
+ public $properties;
+ public $type;
+ protected $updateType = 'Google_Service_DeploymentManager_ResourceUpdate';
+ protected $updateDataType = '';
+ public $updateTime;
+ public $url;
+ protected $warningsType = 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarnings';
+ protected $warningsDataType = 'array';
+
+ public function setAccessControl(Google_Service_DeploymentManager_ResourceAccessControl $accessControl)
+ {
+ $this->accessControl = $accessControl;
+ }
+ public function getAccessControl()
+ {
+ return $this->accessControl;
+ }
+ public function setFinalProperties($finalProperties)
+ {
+ $this->finalProperties = $finalProperties;
+ }
+ public function getFinalProperties()
+ {
+ return $this->finalProperties;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdate(Google_Service_DeploymentManager_ResourceUpdate $update)
+ {
+ $this->update = $update;
+ }
+ public function getUpdate()
+ {
+ return $this->update;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarnings.php
new file mode 100644
index 00000000..2e5c54d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentmanagerResourceWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_DeploymentManager_DeploymentmanagerResourceWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarningsData.php
new file mode 100644
index 00000000..0ee7e71b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentmanagerResourceWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentmanagerResourceWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsCancelPreviewRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsCancelPreviewRequest.php
new file mode 100644
index 00000000..7e4d1e75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsCancelPreviewRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentsCancelPreviewRequest extends Google_Model
+{
+ public $fingerprint;
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsListResponse.php
new file mode 100644
index 00000000..8cbd2724
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentsListResponse extends Google_Collection
+{
+ protected $collection_key = 'deployments';
+ protected $deploymentsType = 'Google_Service_DeploymentManager_Deployment';
+ protected $deploymentsDataType = 'array';
+ public $nextPageToken;
+
+ public function setDeployments($deployments)
+ {
+ $this->deployments = $deployments;
+ }
+ public function getDeployments()
+ {
+ return $this->deployments;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsStopRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsStopRequest.php
new file mode 100644
index 00000000..262c7b30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/DeploymentsStopRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_DeploymentsStopRequest extends Google_Model
+{
+ public $fingerprint;
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ImportFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ImportFile.php
new file mode 100644
index 00000000..ab85668f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ImportFile.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ImportFile extends Google_Model
+{
+ public $content;
+ public $name;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfig.php
new file mode 100644
index 00000000..3599f1ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfig.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_LogConfig extends Google_Model
+{
+ protected $counterType = 'Google_Service_DeploymentManager_LogConfigCounterOptions';
+ protected $counterDataType = '';
+
+ public function setCounter(Google_Service_DeploymentManager_LogConfigCounterOptions $counter)
+ {
+ $this->counter = $counter;
+ }
+ public function getCounter()
+ {
+ return $this->counter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfigCounterOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfigCounterOptions.php
new file mode 100644
index 00000000..b9a9b9bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/LogConfigCounterOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_LogConfigCounterOptions extends Google_Model
+{
+ public $field;
+ public $metric;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Manifest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Manifest.php
new file mode 100644
index 00000000..7adc20f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Manifest.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Manifest extends Google_Collection
+{
+ protected $collection_key = 'imports';
+ protected $configType = 'Google_Service_DeploymentManager_ConfigFile';
+ protected $configDataType = '';
+ public $expandedConfig;
+ public $id;
+ protected $importsType = 'Google_Service_DeploymentManager_ImportFile';
+ protected $importsDataType = 'array';
+ public $insertTime;
+ public $layout;
+ public $name;
+ public $selfLink;
+
+ public function setConfig(Google_Service_DeploymentManager_ConfigFile $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+ public function setExpandedConfig($expandedConfig)
+ {
+ $this->expandedConfig = $expandedConfig;
+ }
+ public function getExpandedConfig()
+ {
+ return $this->expandedConfig;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImports($imports)
+ {
+ $this->imports = $imports;
+ }
+ public function getImports()
+ {
+ return $this->imports;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setLayout($layout)
+ {
+ $this->layout = $layout;
+ }
+ public function getLayout()
+ {
+ return $this->layout;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ManifestsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ManifestsListResponse.php
new file mode 100644
index 00000000..6859ab30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ManifestsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ManifestsListResponse extends Google_Collection
+{
+ protected $collection_key = 'manifests';
+ protected $manifestsType = 'Google_Service_DeploymentManager_Manifest';
+ protected $manifestsDataType = 'array';
+ public $nextPageToken;
+
+ public function setManifests($manifests)
+ {
+ $this->manifests = $manifests;
+ }
+ public function getManifests()
+ {
+ return $this->manifests;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Operation.php
new file mode 100644
index 00000000..a9993c6e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Operation.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $description;
+ public $endTime;
+ protected $errorType = 'Google_Service_DeploymentManager_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_DeploymentManager_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_DeploymentManager_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationError.php
new file mode 100644
index 00000000..7f37bf68
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_DeploymentManager_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationErrorErrors.php
new file mode 100644
index 00000000..544661ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarnings.php
new file mode 100644
index 00000000..342aa444
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_DeploymentManager_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarningsData.php
new file mode 100644
index 00000000..ddf46398
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationsListResponse.php
new file mode 100644
index 00000000..09f20c50
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/OperationsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_OperationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_DeploymentManager_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Policy.php
new file mode 100644
index 00000000..c9ae1046
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Policy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Policy extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $auditConfigsType = 'Google_Service_DeploymentManager_AuditConfig';
+ protected $auditConfigsDataType = 'array';
+ protected $bindingsType = 'Google_Service_DeploymentManager_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $iamOwned;
+ protected $rulesType = 'Google_Service_DeploymentManager_Rule';
+ protected $rulesDataType = 'array';
+ public $version;
+
+ public function setAuditConfigs($auditConfigs)
+ {
+ $this->auditConfigs = $auditConfigs;
+ }
+ public function getAuditConfigs()
+ {
+ return $this->auditConfigs;
+ }
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIamOwned($iamOwned)
+ {
+ $this->iamOwned = $iamOwned;
+ }
+ public function getIamOwned()
+ {
+ return $this->iamOwned;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php
new file mode 100644
index 00000000..890bfb18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Deployments.php
@@ -0,0 +1,279 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "deployments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $deployments = $deploymentmanagerService->deployments;
+ * </code>
+ */
+class Google_Service_DeploymentManager_Resource_Deployments extends Google_Service_Resource
+{
+ /**
+ * Cancels and removes the preview currently associated with the deployment.
+ * (deployments.cancelPreview)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param Google_Service_DeploymentManager_DeploymentsCancelPreviewRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function cancelPreview($project, $deployment, Google_Service_DeploymentManager_DeploymentsCancelPreviewRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancelPreview', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+ /**
+ * Deletes a deployment and all of the resources in the deployment.
+ * (deployments.delete)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string deletePolicy Sets the policy to use for deleting resources.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function delete($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+ /**
+ * Gets information about a specific deployment. (deployments.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Deployment
+ */
+ public function get($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_Deployment");
+ }
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy
+ * or resource exists. (deployments.getIamPolicy)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Policy
+ */
+ public function getIamPolicy($project, $resource, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_DeploymentManager_Policy");
+ }
+ /**
+ * Creates a deployment and all of the resources described by the deployment
+ * manifest. (deployments.insert)
+ *
+ * @param string $project The project ID for this request.
+ * @param Google_Service_DeploymentManager_Deployment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool preview If set to true, creates a deployment and creates
+ * "shell" resources but does not actually instantiate these resources. This
+ * allows you to preview what your deployment looks like. After previewing a
+ * deployment, you can deploy your resources by making a request with the
+ * update() method or you can use the cancelPreview() method to cancel the
+ * preview altogether. Note that the deployment will still exist after you
+ * cancel the preview and you must separately delete this deployment if you want
+ * to remove it.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function insert($project, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+ /**
+ * Lists all deployments for a given project. (deployments.listDeployments)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_DeploymentManager_DeploymentsListResponse
+ */
+ public function listDeployments($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_DeploymentsListResponse");
+ }
+ /**
+ * Updates a deployment and all of the resources described by the deployment
+ * manifest. This method supports patch semantics. (deployments.patch)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param Google_Service_DeploymentManager_Deployment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string createPolicy Sets the policy to use for creating new
+ * resources.
+ * @opt_param string deletePolicy Sets the policy to use for deleting resources.
+ * @opt_param bool preview If set to true, updates the deployment and creates
+ * and updates the "shell" resources but does not actually alter or instantiate
+ * these resources. This allows you to preview what your deployment will look
+ * like. You can use this intent to preview how an update would affect your
+ * deployment. You must provide a target.config with a configuration if this is
+ * set to true. After previewing a deployment, you can deploy your resources by
+ * making a request with the update() or you can cancelPreview() to remove the
+ * preview altogether. Note that the deployment will still exist after you
+ * cancel the preview and you must separately delete this deployment if you want
+ * to remove it.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function patch($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (deployments.setIamPolicy)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param Google_Service_DeploymentManager_Policy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Policy
+ */
+ public function setIamPolicy($project, $resource, Google_Service_DeploymentManager_Policy $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_DeploymentManager_Policy");
+ }
+ /**
+ * Stops an ongoing operation. This does not roll back any work that has already
+ * been completed, but prevents any new work from being started.
+ * (deployments.stop)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param Google_Service_DeploymentManager_DeploymentsStopRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function stop($project, $deployment, Google_Service_DeploymentManager_DeploymentsStopRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ * (deployments.testIamPermissions)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $resource Name of the resource for this request.
+ * @param Google_Service_DeploymentManager_TestPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_TestPermissionsResponse
+ */
+ public function testIamPermissions($project, $resource, Google_Service_DeploymentManager_TestPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_DeploymentManager_TestPermissionsResponse");
+ }
+ /**
+ * Updates a deployment and all of the resources described by the deployment
+ * manifest. (deployments.update)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param Google_Service_DeploymentManager_Deployment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string createPolicy Sets the policy to use for creating new
+ * resources.
+ * @opt_param string deletePolicy Sets the policy to use for deleting resources.
+ * @opt_param bool preview If set to true, updates the deployment and creates
+ * and updates the "shell" resources but does not actually alter or instantiate
+ * these resources. This allows you to preview what your deployment will look
+ * like. You can use this intent to preview how an update would affect your
+ * deployment. You must provide a target.config with a configuration if this is
+ * set to true. After previewing a deployment, you can deploy your resources by
+ * making a request with the update() or you can cancelPreview() to remove the
+ * preview altogether. Note that the deployment will still exist after you
+ * cancel the preview and you must separately delete this deployment if you want
+ * to remove it.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function update($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Manifests.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Manifests.php
new file mode 100644
index 00000000..866783bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Manifests.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "manifests" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $manifests = $deploymentmanagerService->manifests;
+ * </code>
+ */
+class Google_Service_DeploymentManager_Resource_Manifests extends Google_Service_Resource
+{
+ /**
+ * Gets information about a specific manifest. (manifests.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param string $manifest The name of the manifest for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Manifest
+ */
+ public function get($project, $deployment, $manifest, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_Manifest");
+ }
+ /**
+ * Lists all manifests for a given deployment. (manifests.listManifests)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_DeploymentManager_ManifestsListResponse
+ */
+ public function listManifests($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_ManifestsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Operations.php
new file mode 100644
index 00000000..937b87f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Operations.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $operations = $deploymentmanagerService->operations;
+ * </code>
+ */
+class Google_Service_DeploymentManager_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Gets information about a specific operation. (operations.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $operation The name of the operation for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+ /**
+ * Lists all operations for a project. (operations.listOperations)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_DeploymentManager_OperationsListResponse
+ */
+ public function listOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_OperationsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Resources.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Resources.php
new file mode 100644
index 00000000..ed154b2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Resources.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "resources" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $resources = $deploymentmanagerService->resources;
+ * </code>
+ */
+class Google_Service_DeploymentManager_Resource_Resources extends Google_Service_Resource
+{
+ /**
+ * Gets information about a single resource. (resources.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param string $resource The name of the resource for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_DeploymentmanagerResource
+ */
+ public function get($project, $deployment, $resource, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_DeploymentmanagerResource");
+ }
+ /**
+ * Lists all resources in a given deployment. (resources.listResources)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_DeploymentManager_ResourcesListResponse
+ */
+ public function listResources($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_ResourcesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Types.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Types.php
new file mode 100644
index 00000000..290fd50e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Resource/Types.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "types" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $types = $deploymentmanagerService->types;
+ * </code>
+ */
+class Google_Service_DeploymentManager_Resource_Types extends Google_Service_Resource
+{
+ /**
+ * Lists all resource types for Deployment Manager. (types.listTypes)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * You can filter on nested fields. For example, you could filter on instances
+ * that have set the scheduling.automaticRestart field to true. Use filtering on
+ * nested fields to take advantage of labels to organize and search for results
+ * based on label values.
+ *
+ * To filter on multiple expressions, provide each separate expression within
+ * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
+ * central1-f). Multiple expressions are treated as AND expressions, meaning
+ * that resources must match all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests. Acceptable values are 0
+ * to 500, inclusive. (Default: 500)
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_DeploymentManager_TypesListResponse
+ */
+ public function listTypes($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_TypesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceAccessControl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceAccessControl.php
new file mode 100644
index 00000000..33a43bbf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceAccessControl.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ResourceAccessControl extends Google_Model
+{
+ public $gcpIamPolicy;
+
+ public function setGcpIamPolicy($gcpIamPolicy)
+ {
+ $this->gcpIamPolicy = $gcpIamPolicy;
+ }
+ public function getGcpIamPolicy()
+ {
+ return $this->gcpIamPolicy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdate.php
new file mode 100644
index 00000000..5191d8f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdate.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ResourceUpdate extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ protected $accessControlType = 'Google_Service_DeploymentManager_ResourceAccessControl';
+ protected $accessControlDataType = '';
+ protected $errorType = 'Google_Service_DeploymentManager_ResourceUpdateError';
+ protected $errorDataType = '';
+ public $finalProperties;
+ public $intent;
+ public $manifest;
+ public $properties;
+ public $state;
+ protected $warningsType = 'Google_Service_DeploymentManager_ResourceUpdateWarnings';
+ protected $warningsDataType = 'array';
+
+ public function setAccessControl(Google_Service_DeploymentManager_ResourceAccessControl $accessControl)
+ {
+ $this->accessControl = $accessControl;
+ }
+ public function getAccessControl()
+ {
+ return $this->accessControl;
+ }
+ public function setError(Google_Service_DeploymentManager_ResourceUpdateError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setFinalProperties($finalProperties)
+ {
+ $this->finalProperties = $finalProperties;
+ }
+ public function getFinalProperties()
+ {
+ return $this->finalProperties;
+ }
+ public function setIntent($intent)
+ {
+ $this->intent = $intent;
+ }
+ public function getIntent()
+ {
+ return $this->intent;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateError.php
new file mode 100644
index 00000000..0d2afdc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ResourceUpdateError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_DeploymentManager_ResourceUpdateErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateErrorErrors.php
new file mode 100644
index 00000000..6fc49050
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ResourceUpdateErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarnings.php
new file mode 100644
index 00000000..39f3f579
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ResourceUpdateWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_DeploymentManager_ResourceUpdateWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarningsData.php
new file mode 100644
index 00000000..f5f43c48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourceUpdateWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ResourceUpdateWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourcesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourcesListResponse.php
new file mode 100644
index 00000000..ec94bf3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/ResourcesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_ResourcesListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_DeploymentManager_DeploymentmanagerResource';
+ protected $resourcesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Rule.php
new file mode 100644
index 00000000..b5794ae0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Rule.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Rule extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $action;
+ protected $conditionsType = 'Google_Service_DeploymentManager_Condition';
+ protected $conditionsDataType = 'array';
+ public $description;
+ public $ins;
+ protected $logConfigsType = 'Google_Service_DeploymentManager_LogConfig';
+ protected $logConfigsDataType = 'array';
+ public $notIns;
+ public $permissions;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIns($ins)
+ {
+ $this->ins = $ins;
+ }
+ public function getIns()
+ {
+ return $this->ins;
+ }
+ public function setLogConfigs($logConfigs)
+ {
+ $this->logConfigs = $logConfigs;
+ }
+ public function getLogConfigs()
+ {
+ return $this->logConfigs;
+ }
+ public function setNotIns($notIns)
+ {
+ $this->notIns = $notIns;
+ }
+ public function getNotIns()
+ {
+ return $this->notIns;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TargetConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TargetConfiguration.php
new file mode 100644
index 00000000..89a758a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TargetConfiguration.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_TargetConfiguration extends Google_Collection
+{
+ protected $collection_key = 'imports';
+ protected $configType = 'Google_Service_DeploymentManager_ConfigFile';
+ protected $configDataType = '';
+ protected $importsType = 'Google_Service_DeploymentManager_ImportFile';
+ protected $importsDataType = 'array';
+
+ public function setConfig(Google_Service_DeploymentManager_ConfigFile $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+ public function setImports($imports)
+ {
+ $this->imports = $imports;
+ }
+ public function getImports()
+ {
+ return $this->imports;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsRequest.php
new file mode 100644
index 00000000..27d0c28b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_TestPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsResponse.php
new file mode 100644
index 00000000..c3a1ab70
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TestPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_TestPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Type.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Type.php
new file mode 100644
index 00000000..b4239c73
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/Type.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_Type extends Google_Model
+{
+ public $id;
+ public $insertTime;
+ public $name;
+ protected $operationType = 'Google_Service_DeploymentManager_Operation';
+ protected $operationDataType = '';
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperation(Google_Service_DeploymentManager_Operation $operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TypesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TypesListResponse.php
new file mode 100644
index 00000000..180b0536
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DeploymentManager/TypesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DeploymentManager_TypesListResponse extends Google_Collection
+{
+ protected $collection_key = 'types';
+ public $nextPageToken;
+ protected $typesType = 'Google_Service_DeploymentManager_Type';
+ protected $typesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting.php
new file mode 100644
index 00000000..5538348b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting.php
@@ -0,0 +1,4816 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Dfareporting (v2.7).
+ *
+ * <p>
+ * Manages your DoubleClick Campaign Manager ad campaigns and reports.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/doubleclick-advertisers/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Dfareporting extends Google_Service
+{
+ /** Manage DoubleClick Digital Marketing conversions. */
+ const DDMCONVERSIONS =
+ "https://www.googleapis.com/auth/ddmconversions";
+ /** View and manage DoubleClick for Advertisers reports. */
+ const DFAREPORTING =
+ "https://www.googleapis.com/auth/dfareporting";
+ /** View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns. */
+ const DFATRAFFICKING =
+ "https://www.googleapis.com/auth/dfatrafficking";
+
+ public $accountActiveAdSummaries;
+ public $accountPermissionGroups;
+ public $accountPermissions;
+ public $accountUserProfiles;
+ public $accounts;
+ public $ads;
+ public $advertiserGroups;
+ public $advertisers;
+ public $browsers;
+ public $campaignCreativeAssociations;
+ public $campaigns;
+ public $changeLogs;
+ public $cities;
+ public $connectionTypes;
+ public $contentCategories;
+ public $conversions;
+ public $countries;
+ public $creativeAssets;
+ public $creativeFieldValues;
+ public $creativeFields;
+ public $creativeGroups;
+ public $creatives;
+ public $dimensionValues;
+ public $directorySiteContacts;
+ public $directorySites;
+ public $dynamicTargetingKeys;
+ public $eventTags;
+ public $files;
+ public $floodlightActivities;
+ public $floodlightActivityGroups;
+ public $floodlightConfigurations;
+ public $inventoryItems;
+ public $landingPages;
+ public $languages;
+ public $metros;
+ public $mobileCarriers;
+ public $operatingSystemVersions;
+ public $operatingSystems;
+ public $orderDocuments;
+ public $orders;
+ public $placementGroups;
+ public $placementStrategies;
+ public $placements;
+ public $platformTypes;
+ public $postalCodes;
+ public $projects;
+ public $regions;
+ public $remarketingListShares;
+ public $remarketingLists;
+ public $reports;
+ public $reports_compatibleFields;
+ public $reports_files;
+ public $sites;
+ public $sizes;
+ public $subaccounts;
+ public $targetableRemarketingLists;
+ public $targetingTemplates;
+ public $userProfiles;
+ public $userRolePermissionGroups;
+ public $userRolePermissions;
+ public $userRoles;
+ public $videoFormats;
+
+ /**
+ * Constructs the internal representation of the Dfareporting service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'dfareporting/v2.7/';
+ $this->version = 'v2.7';
+ $this->serviceName = 'dfareporting';
+
+ $this->accountActiveAdSummaries = new Google_Service_Dfareporting_Resource_AccountActiveAdSummaries(
+ $this,
+ $this->serviceName,
+ 'accountActiveAdSummaries',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'summaryAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accountPermissionGroups = new Google_Service_Dfareporting_Resource_AccountPermissionGroups(
+ $this,
+ $this->serviceName,
+ 'accountPermissionGroups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/accountPermissionGroups/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/accountPermissionGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accountPermissions = new Google_Service_Dfareporting_Resource_AccountPermissions(
+ $this,
+ $this->serviceName,
+ 'accountPermissions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/accountPermissions/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/accountPermissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accountUserProfiles = new Google_Service_Dfareporting_Resource_AccountUserProfiles(
+ $this,
+ $this->serviceName,
+ 'accountUserProfiles',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/accountUserProfiles/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/accountUserProfiles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/accountUserProfiles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'active' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'subaccountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'userRoleId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/accountUserProfiles',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/accountUserProfiles',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts = new Google_Service_Dfareporting_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/accounts/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'active' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/accounts',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/accounts',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->ads = new Google_Service_Dfareporting_Resource_Ads(
+ $this,
+ $this->serviceName,
+ 'ads',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/ads/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/ads',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/ads',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'active' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'archived' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'audienceSegmentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'campaignIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'compatibility' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'creativeIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'creativeOptimizationConfigurationIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'dynamicClickTracker' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'landingPageIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'overriddenEventTagId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'placementIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'remarketingListIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sizeIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sslCompliant' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'sslRequired' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/ads',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/ads',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->advertiserGroups = new Google_Service_Dfareporting_Resource_AdvertiserGroups(
+ $this,
+ $this->serviceName,
+ 'advertiserGroups',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/advertiserGroups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/advertiserGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/advertiserGroups',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/advertiserGroups',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->advertisers = new Google_Service_Dfareporting_Resource_Advertisers(
+ $this,
+ $this->serviceName,
+ 'advertisers',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/advertisers/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/advertisers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/advertisers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserGroupIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'floodlightConfigurationIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'includeAdvertisersWithoutGroupsOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'onlyParent' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'subaccountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/advertisers',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/advertisers',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->browsers = new Google_Service_Dfareporting_Resource_Browsers(
+ $this,
+ $this->serviceName,
+ 'browsers',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'userprofiles/{profileId}/browsers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->campaignCreativeAssociations = new Google_Service_Dfareporting_Resource_CampaignCreativeAssociations(
+ $this,
+ $this->serviceName,
+ 'campaignCreativeAssociations',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->campaigns = new Google_Service_Dfareporting_Resource_Campaigns(
+ $this,
+ $this->serviceName,
+ 'campaigns',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'defaultLandingPageName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'defaultLandingPageUrl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserGroupIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'advertiserIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'archived' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'atLeastOneOptimizationActivity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'excludedIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'overriddenEventTagId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'subaccountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->changeLogs = new Google_Service_Dfareporting_Resource_ChangeLogs(
+ $this,
+ $this->serviceName,
+ 'changeLogs',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/changeLogs/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/changeLogs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'action' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxChangeTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'minChangeTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'objectIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'objectType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'userProfileIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->cities = new Google_Service_Dfareporting_Resource_Cities(
+ $this,
+ $this->serviceName,
+ 'cities',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'userprofiles/{profileId}/cities',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'countryDartIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'dartIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'namePrefix' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'regionDartIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->connectionTypes = new Google_Service_Dfareporting_Resource_ConnectionTypes(
+ $this,
+ $this->serviceName,
+ 'connectionTypes',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/connectionTypes/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/connectionTypes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->contentCategories = new Google_Service_Dfareporting_Resource_ContentCategories(
+ $this,
+ $this->serviceName,
+ 'contentCategories',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/contentCategories/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/contentCategories/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/contentCategories',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/contentCategories',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/contentCategories',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/contentCategories',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->conversions = new Google_Service_Dfareporting_Resource_Conversions(
+ $this,
+ $this->serviceName,
+ 'conversions',
+ array(
+ 'methods' => array(
+ 'batchinsert' => array(
+ 'path' => 'userprofiles/{profileId}/conversions/batchinsert',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->countries = new Google_Service_Dfareporting_Resource_Countries(
+ $this,
+ $this->serviceName,
+ 'countries',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/countries/{dartId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dartId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/countries',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->creativeAssets = new Google_Service_Dfareporting_Resource_CreativeAssets(
+ $this,
+ $this->serviceName,
+ 'creativeAssets',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->creativeFieldValues = new Google_Service_Dfareporting_Resource_CreativeFieldValues(
+ $this,
+ $this->serviceName,
+ 'creativeFieldValues',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeFieldId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeFieldId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeFieldId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeFieldId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeFieldId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'creativeFieldId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->creativeFields = new Google_Service_Dfareporting_Resource_CreativeFields(
+ $this,
+ $this->serviceName,
+ 'creativeFields',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/creativeFields',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->creativeGroups = new Google_Service_Dfareporting_Resource_CreativeGroups(
+ $this,
+ $this->serviceName,
+ 'creativeGroups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/creativeGroups/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/creativeGroups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/creativeGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'groupNumber' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/creativeGroups',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/creativeGroups',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->creatives = new Google_Service_Dfareporting_Resource_Creatives(
+ $this,
+ $this->serviceName,
+ 'creatives',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/creatives/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/creatives',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/creatives',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'active' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'archived' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'campaignId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'companionCreativeIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'creativeFieldIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'renderingIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sizeIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'studioCreativeId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'types' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/creatives',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/creatives',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->dimensionValues = new Google_Service_Dfareporting_Resource_DimensionValues(
+ $this,
+ $this->serviceName,
+ 'dimensionValues',
+ array(
+ 'methods' => array(
+ 'query' => array(
+ 'path' => 'userprofiles/{profileId}/dimensionvalues/query',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->directorySiteContacts = new Google_Service_Dfareporting_Resource_DirectorySiteContacts(
+ $this,
+ $this->serviceName,
+ 'directorySiteContacts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/directorySiteContacts/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/directorySiteContacts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'directorySiteIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->directorySites = new Google_Service_Dfareporting_Resource_DirectorySites(
+ $this,
+ $this->serviceName,
+ 'directorySites',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/directorySites/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/directorySites',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/directorySites',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'acceptsInStreamVideoPlacements' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'acceptsInterstitialPlacements' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'acceptsPublisherPaidPlacements' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'active' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'countryId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dfp_network_code' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'parentId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->dynamicTargetingKeys = new Google_Service_Dfareporting_Resource_DynamicTargetingKeys(
+ $this,
+ $this->serviceName,
+ 'dynamicTargetingKeys',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/dynamicTargetingKeys/{objectId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'objectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'objectType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/dynamicTargetingKeys',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/dynamicTargetingKeys',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'names' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'objectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'objectType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->eventTags = new Google_Service_Dfareporting_Resource_EventTags(
+ $this,
+ $this->serviceName,
+ 'eventTags',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/eventTags/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/eventTags/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/eventTags',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/eventTags',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'adId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'campaignId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'definitionsOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'enabled' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'eventTagTypes' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/eventTags',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/eventTags',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->files = new Google_Service_Dfareporting_Resource_Files(
+ $this,
+ $this->serviceName,
+ 'files',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'reports/{reportId}/files/{fileId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/files',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'scope' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->floodlightActivities = new Google_Service_Dfareporting_Resource_FloodlightActivities(
+ $this,
+ $this->serviceName,
+ 'floodlightActivities',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'generatetag' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivities/generatetag',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'floodlightActivityId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivities',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivities',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'floodlightActivityGroupIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'floodlightActivityGroupName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'floodlightActivityGroupTagString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'floodlightActivityGroupType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'floodlightConfigurationId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'tagString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivities',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivities',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->floodlightActivityGroups = new Google_Service_Dfareporting_Resource_FloodlightActivityGroups(
+ $this,
+ $this->serviceName,
+ 'floodlightActivityGroups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivityGroups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivityGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'floodlightConfigurationId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivityGroups',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightActivityGroups',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->floodlightConfigurations = new Google_Service_Dfareporting_Resource_FloodlightConfigurations(
+ $this,
+ $this->serviceName,
+ 'floodlightConfigurations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightConfigurations/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightConfigurations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightConfigurations',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/floodlightConfigurations',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->inventoryItems = new Google_Service_Dfareporting_Resource_InventoryItems(
+ $this,
+ $this->serviceName,
+ 'inventoryItems',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'inPlan' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'siteId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->landingPages = new Google_Service_Dfareporting_Resource_LandingPages(
+ $this,
+ $this->serviceName,
+ 'landingPages',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->languages = new Google_Service_Dfareporting_Resource_Languages(
+ $this,
+ $this->serviceName,
+ 'languages',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'userprofiles/{profileId}/languages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->metros = new Google_Service_Dfareporting_Resource_Metros(
+ $this,
+ $this->serviceName,
+ 'metros',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'userprofiles/{profileId}/metros',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->mobileCarriers = new Google_Service_Dfareporting_Resource_MobileCarriers(
+ $this,
+ $this->serviceName,
+ 'mobileCarriers',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/mobileCarriers/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/mobileCarriers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->operatingSystemVersions = new Google_Service_Dfareporting_Resource_OperatingSystemVersions(
+ $this,
+ $this->serviceName,
+ 'operatingSystemVersions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/operatingSystemVersions/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/operatingSystemVersions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->operatingSystems = new Google_Service_Dfareporting_Resource_OperatingSystems(
+ $this,
+ $this->serviceName,
+ 'operatingSystems',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/operatingSystems/{dartId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dartId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/operatingSystems',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->orderDocuments = new Google_Service_Dfareporting_Resource_OrderDocuments(
+ $this,
+ $this->serviceName,
+ 'orderDocuments',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'approved' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'siteId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->orders = new Google_Service_Dfareporting_Resource_Orders(
+ $this,
+ $this->serviceName,
+ 'orders',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'siteId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->placementGroups = new Google_Service_Dfareporting_Resource_PlacementGroups(
+ $this,
+ $this->serviceName,
+ 'placementGroups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/placementGroups/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/placementGroups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/placementGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'archived' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'campaignIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'contentCategoryIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'directorySiteIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxEndDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxStartDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'minEndDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'minStartDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'placementGroupType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'placementStrategyIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pricingTypes' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'siteIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/placementGroups',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/placementGroups',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->placementStrategies = new Google_Service_Dfareporting_Resource_PlacementStrategies(
+ $this,
+ $this->serviceName,
+ 'placementStrategies',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/placementStrategies/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/placementStrategies/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/placementStrategies',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/placementStrategies',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/placementStrategies',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/placementStrategies',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->placements = new Google_Service_Dfareporting_Resource_Placements(
+ $this,
+ $this->serviceName,
+ 'placements',
+ array(
+ 'methods' => array(
+ 'generatetags' => array(
+ 'path' => 'userprofiles/{profileId}/placements/generatetags',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'campaignId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'placementIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'tagFormats' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/placements/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/placements',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/placements',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'archived' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'campaignIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'compatibilities' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'contentCategoryIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'directorySiteIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'groupIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxEndDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxStartDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'minEndDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'minStartDate' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'paymentSource' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'placementStrategyIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pricingTypes' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'siteIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sizeIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/placements',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/placements',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->platformTypes = new Google_Service_Dfareporting_Resource_PlatformTypes(
+ $this,
+ $this->serviceName,
+ 'platformTypes',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/platformTypes/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/platformTypes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->postalCodes = new Google_Service_Dfareporting_Resource_PostalCodes(
+ $this,
+ $this->serviceName,
+ 'postalCodes',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/postalCodes/{code}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'code' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/postalCodes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects = new Google_Service_Dfareporting_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/projects/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/projects',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->regions = new Google_Service_Dfareporting_Resource_Regions(
+ $this,
+ $this->serviceName,
+ 'regions',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'userprofiles/{profileId}/regions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->remarketingListShares = new Google_Service_Dfareporting_Resource_RemarketingListShares(
+ $this,
+ $this->serviceName,
+ 'remarketingListShares',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'remarketingListId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingListShares',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'remarketingListId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingListShares',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->remarketingLists = new Google_Service_Dfareporting_Resource_RemarketingLists(
+ $this,
+ $this->serviceName,
+ 'remarketingLists',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingLists/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingLists',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingLists',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'active' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'floodlightActivityId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingLists',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/remarketingLists',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reports = new Google_Service_Dfareporting_Resource_Reports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/reports/{reportId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/reports/{reportId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/reports',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'scope' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/reports/{reportId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'run' => array(
+ 'path' => 'userprofiles/{profileId}/reports/{reportId}/run',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'synchronous' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/reports/{reportId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reports_compatibleFields = new Google_Service_Dfareporting_Resource_ReportsCompatibleFields(
+ $this,
+ $this->serviceName,
+ 'compatibleFields',
+ array(
+ 'methods' => array(
+ 'query' => array(
+ 'path' => 'userprofiles/{profileId}/reports/compatiblefields/query',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reports_files = new Google_Service_Dfareporting_Resource_ReportsFiles(
+ $this,
+ $this->serviceName,
+ 'files',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/reports/{reportId}/files/{fileId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/reports/{reportId}/files',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sites = new Google_Service_Dfareporting_Resource_Sites(
+ $this,
+ $this->serviceName,
+ 'sites',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/sites/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/sites',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/sites',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'acceptsInStreamVideoPlacements' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'acceptsInterstitialPlacements' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'acceptsPublisherPaidPlacements' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'adWordsSite' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'approved' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'campaignIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'directorySiteIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'subaccountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'unmappedSite' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/sites',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/sites',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sizes = new Google_Service_Dfareporting_Resource_Sizes(
+ $this,
+ $this->serviceName,
+ 'sizes',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/sizes/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/sizes',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/sizes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'height' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'iabStandard' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'width' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->subaccounts = new Google_Service_Dfareporting_Resource_Subaccounts(
+ $this,
+ $this->serviceName,
+ 'subaccounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/subaccounts/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/subaccounts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/subaccounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/subaccounts',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/subaccounts',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetableRemarketingLists = new Google_Service_Dfareporting_Resource_TargetableRemarketingLists(
+ $this,
+ $this->serviceName,
+ 'targetableRemarketingLists',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/targetableRemarketingLists/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/targetableRemarketingLists',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'active' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->targetingTemplates = new Google_Service_Dfareporting_Resource_TargetingTemplates(
+ $this,
+ $this->serviceName,
+ 'targetingTemplates',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/targetingTemplates/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/targetingTemplates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/targetingTemplates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/targetingTemplates',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/targetingTemplates',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userProfiles = new Google_Service_Dfareporting_Resource_UserProfiles(
+ $this,
+ $this->serviceName,
+ 'userProfiles',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->userRolePermissionGroups = new Google_Service_Dfareporting_Resource_UserRolePermissionGroups(
+ $this,
+ $this->serviceName,
+ 'userRolePermissionGroups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/userRolePermissionGroups/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/userRolePermissionGroups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userRolePermissions = new Google_Service_Dfareporting_Resource_UserRolePermissions(
+ $this,
+ $this->serviceName,
+ 'userRolePermissions',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/userRolePermissions/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/userRolePermissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userRoles = new Google_Service_Dfareporting_Resource_UserRoles(
+ $this,
+ $this->serviceName,
+ 'userRoles',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'userprofiles/{profileId}/userRoles/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'userprofiles/{profileId}/userRoles/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'userprofiles/{profileId}/userRoles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/userRoles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountUserRoleOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchString' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'subaccountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'userprofiles/{profileId}/userRoles',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'userprofiles/{profileId}/userRoles',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->videoFormats = new Google_Service_Dfareporting_Resource_VideoFormats(
+ $this,
+ $this->serviceName,
+ 'videoFormats',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userprofiles/{profileId}/videoFormats/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'userprofiles/{profileId}/videoFormats',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'profileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Account.php
new file mode 100644
index 00000000..1d44a2e4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Account.php
@@ -0,0 +1,194 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Account extends Google_Collection
+{
+ protected $collection_key = 'availablePermissionIds';
+ public $accountPermissionIds;
+ public $accountProfile;
+ public $active;
+ public $activeAdsLimitTier;
+ public $activeViewOptOut;
+ public $availablePermissionIds;
+ public $countryId;
+ public $currencyId;
+ public $defaultCreativeSizeId;
+ public $description;
+ public $id;
+ public $kind;
+ public $locale;
+ public $maximumImageSize;
+ public $name;
+ public $nielsenOcrEnabled;
+ protected $reportsConfigurationType = 'Google_Service_Dfareporting_ReportsConfiguration';
+ protected $reportsConfigurationDataType = '';
+ public $shareReportsWithTwitter;
+ public $teaserSizeLimit;
+
+ public function setAccountPermissionIds($accountPermissionIds)
+ {
+ $this->accountPermissionIds = $accountPermissionIds;
+ }
+ public function getAccountPermissionIds()
+ {
+ return $this->accountPermissionIds;
+ }
+ public function setAccountProfile($accountProfile)
+ {
+ $this->accountProfile = $accountProfile;
+ }
+ public function getAccountProfile()
+ {
+ return $this->accountProfile;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setActiveAdsLimitTier($activeAdsLimitTier)
+ {
+ $this->activeAdsLimitTier = $activeAdsLimitTier;
+ }
+ public function getActiveAdsLimitTier()
+ {
+ return $this->activeAdsLimitTier;
+ }
+ public function setActiveViewOptOut($activeViewOptOut)
+ {
+ $this->activeViewOptOut = $activeViewOptOut;
+ }
+ public function getActiveViewOptOut()
+ {
+ return $this->activeViewOptOut;
+ }
+ public function setAvailablePermissionIds($availablePermissionIds)
+ {
+ $this->availablePermissionIds = $availablePermissionIds;
+ }
+ public function getAvailablePermissionIds()
+ {
+ return $this->availablePermissionIds;
+ }
+ public function setCountryId($countryId)
+ {
+ $this->countryId = $countryId;
+ }
+ public function getCountryId()
+ {
+ return $this->countryId;
+ }
+ public function setCurrencyId($currencyId)
+ {
+ $this->currencyId = $currencyId;
+ }
+ public function getCurrencyId()
+ {
+ return $this->currencyId;
+ }
+ public function setDefaultCreativeSizeId($defaultCreativeSizeId)
+ {
+ $this->defaultCreativeSizeId = $defaultCreativeSizeId;
+ }
+ public function getDefaultCreativeSizeId()
+ {
+ return $this->defaultCreativeSizeId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setMaximumImageSize($maximumImageSize)
+ {
+ $this->maximumImageSize = $maximumImageSize;
+ }
+ public function getMaximumImageSize()
+ {
+ return $this->maximumImageSize;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNielsenOcrEnabled($nielsenOcrEnabled)
+ {
+ $this->nielsenOcrEnabled = $nielsenOcrEnabled;
+ }
+ public function getNielsenOcrEnabled()
+ {
+ return $this->nielsenOcrEnabled;
+ }
+ public function setReportsConfiguration(Google_Service_Dfareporting_ReportsConfiguration $reportsConfiguration)
+ {
+ $this->reportsConfiguration = $reportsConfiguration;
+ }
+ public function getReportsConfiguration()
+ {
+ return $this->reportsConfiguration;
+ }
+ public function setShareReportsWithTwitter($shareReportsWithTwitter)
+ {
+ $this->shareReportsWithTwitter = $shareReportsWithTwitter;
+ }
+ public function getShareReportsWithTwitter()
+ {
+ return $this->shareReportsWithTwitter;
+ }
+ public function setTeaserSizeLimit($teaserSizeLimit)
+ {
+ $this->teaserSizeLimit = $teaserSizeLimit;
+ }
+ public function getTeaserSizeLimit()
+ {
+ return $this->teaserSizeLimit;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountActiveAdSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountActiveAdSummary.php
new file mode 100644
index 00000000..1fa446ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountActiveAdSummary.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountActiveAdSummary extends Google_Model
+{
+ public $accountId;
+ public $activeAds;
+ public $activeAdsLimitTier;
+ public $availableAds;
+ public $kind;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActiveAds($activeAds)
+ {
+ $this->activeAds = $activeAds;
+ }
+ public function getActiveAds()
+ {
+ return $this->activeAds;
+ }
+ public function setActiveAdsLimitTier($activeAdsLimitTier)
+ {
+ $this->activeAdsLimitTier = $activeAdsLimitTier;
+ }
+ public function getActiveAdsLimitTier()
+ {
+ return $this->activeAdsLimitTier;
+ }
+ public function setAvailableAds($availableAds)
+ {
+ $this->availableAds = $availableAds;
+ }
+ public function getAvailableAds()
+ {
+ return $this->availableAds;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermission.php
new file mode 100644
index 00000000..a2c2dfe3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermission.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountPermission extends Google_Collection
+{
+ protected $collection_key = 'accountProfiles';
+ public $accountProfiles;
+ public $id;
+ public $kind;
+ public $level;
+ public $name;
+ public $permissionGroupId;
+
+ public function setAccountProfiles($accountProfiles)
+ {
+ $this->accountProfiles = $accountProfiles;
+ }
+ public function getAccountProfiles()
+ {
+ return $this->accountProfiles;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPermissionGroupId($permissionGroupId)
+ {
+ $this->permissionGroupId = $permissionGroupId;
+ }
+ public function getPermissionGroupId()
+ {
+ return $this->permissionGroupId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroup.php
new file mode 100644
index 00000000..e8f74cba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroup.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountPermissionGroup extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroupsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroupsListResponse.php
new file mode 100644
index 00000000..00f724ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionGroupsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountPermissionGroupsListResponse extends Google_Collection
+{
+ protected $collection_key = 'accountPermissionGroups';
+ protected $accountPermissionGroupsType = 'Google_Service_Dfareporting_AccountPermissionGroup';
+ protected $accountPermissionGroupsDataType = 'array';
+ public $kind;
+
+ public function setAccountPermissionGroups($accountPermissionGroups)
+ {
+ $this->accountPermissionGroups = $accountPermissionGroups;
+ }
+ public function getAccountPermissionGroups()
+ {
+ return $this->accountPermissionGroups;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionsListResponse.php
new file mode 100644
index 00000000..3828ca6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountPermissionsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountPermissionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'accountPermissions';
+ protected $accountPermissionsType = 'Google_Service_Dfareporting_AccountPermission';
+ protected $accountPermissionsDataType = 'array';
+ public $kind;
+
+ public function setAccountPermissions($accountPermissions)
+ {
+ $this->accountPermissions = $accountPermissions;
+ }
+ public function getAccountPermissions()
+ {
+ return $this->accountPermissions;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfile.php
new file mode 100644
index 00000000..2c40cc88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfile.php
@@ -0,0 +1,169 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountUserProfile extends Google_Model
+{
+ public $accountId;
+ public $active;
+ protected $advertiserFilterType = 'Google_Service_Dfareporting_ObjectFilter';
+ protected $advertiserFilterDataType = '';
+ protected $campaignFilterType = 'Google_Service_Dfareporting_ObjectFilter';
+ protected $campaignFilterDataType = '';
+ public $comments;
+ public $email;
+ public $id;
+ public $kind;
+ public $locale;
+ public $name;
+ protected $siteFilterType = 'Google_Service_Dfareporting_ObjectFilter';
+ protected $siteFilterDataType = '';
+ public $subaccountId;
+ public $traffickerType;
+ public $userAccessType;
+ protected $userRoleFilterType = 'Google_Service_Dfareporting_ObjectFilter';
+ protected $userRoleFilterDataType = '';
+ public $userRoleId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setAdvertiserFilter(Google_Service_Dfareporting_ObjectFilter $advertiserFilter)
+ {
+ $this->advertiserFilter = $advertiserFilter;
+ }
+ public function getAdvertiserFilter()
+ {
+ return $this->advertiserFilter;
+ }
+ public function setCampaignFilter(Google_Service_Dfareporting_ObjectFilter $campaignFilter)
+ {
+ $this->campaignFilter = $campaignFilter;
+ }
+ public function getCampaignFilter()
+ {
+ return $this->campaignFilter;
+ }
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSiteFilter(Google_Service_Dfareporting_ObjectFilter $siteFilter)
+ {
+ $this->siteFilter = $siteFilter;
+ }
+ public function getSiteFilter()
+ {
+ return $this->siteFilter;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTraffickerType($traffickerType)
+ {
+ $this->traffickerType = $traffickerType;
+ }
+ public function getTraffickerType()
+ {
+ return $this->traffickerType;
+ }
+ public function setUserAccessType($userAccessType)
+ {
+ $this->userAccessType = $userAccessType;
+ }
+ public function getUserAccessType()
+ {
+ return $this->userAccessType;
+ }
+ public function setUserRoleFilter(Google_Service_Dfareporting_ObjectFilter $userRoleFilter)
+ {
+ $this->userRoleFilter = $userRoleFilter;
+ }
+ public function getUserRoleFilter()
+ {
+ return $this->userRoleFilter;
+ }
+ public function setUserRoleId($userRoleId)
+ {
+ $this->userRoleId = $userRoleId;
+ }
+ public function getUserRoleId()
+ {
+ return $this->userRoleId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfilesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfilesListResponse.php
new file mode 100644
index 00000000..5bd57051
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountUserProfilesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountUserProfilesListResponse extends Google_Collection
+{
+ protected $collection_key = 'accountUserProfiles';
+ protected $accountUserProfilesType = 'Google_Service_Dfareporting_AccountUserProfile';
+ protected $accountUserProfilesDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setAccountUserProfiles($accountUserProfiles)
+ {
+ $this->accountUserProfiles = $accountUserProfiles;
+ }
+ public function getAccountUserProfiles()
+ {
+ return $this->accountUserProfiles;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountsListResponse.php
new file mode 100644
index 00000000..7d2efbd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AccountsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AccountsListResponse extends Google_Collection
+{
+ protected $collection_key = 'accounts';
+ protected $accountsType = 'Google_Service_Dfareporting_Account';
+ protected $accountsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setAccounts($accounts)
+ {
+ $this->accounts = $accounts;
+ }
+ public function getAccounts()
+ {
+ return $this->accounts;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Activities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Activities.php
new file mode 100644
index 00000000..1dd0b515
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Activities.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Activities extends Google_Collection
+{
+ protected $collection_key = 'metricNames';
+ protected $filtersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $filtersDataType = 'array';
+ public $kind;
+ public $metricNames;
+
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetricNames($metricNames)
+ {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames()
+ {
+ return $this->metricNames;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Ad.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Ad.php
new file mode 100644
index 00000000..b794138f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Ad.php
@@ -0,0 +1,393 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Ad extends Google_Collection
+{
+ protected $collection_key = 'placementAssignments';
+ public $accountId;
+ public $active;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $archived;
+ public $audienceSegmentId;
+ public $campaignId;
+ protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $campaignIdDimensionValueDataType = '';
+ protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl';
+ protected $clickThroughUrlDataType = '';
+ protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties';
+ protected $clickThroughUrlSuffixPropertiesDataType = '';
+ public $comments;
+ public $compatibility;
+ protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $createInfoDataType = '';
+ protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment';
+ protected $creativeGroupAssignmentsDataType = 'array';
+ protected $creativeRotationType = 'Google_Service_Dfareporting_CreativeRotation';
+ protected $creativeRotationDataType = '';
+ protected $dayPartTargetingType = 'Google_Service_Dfareporting_DayPartTargeting';
+ protected $dayPartTargetingDataType = '';
+ protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties';
+ protected $defaultClickThroughEventTagPropertiesDataType = '';
+ protected $deliveryScheduleType = 'Google_Service_Dfareporting_DeliverySchedule';
+ protected $deliveryScheduleDataType = '';
+ public $dynamicClickTracker;
+ public $endTime;
+ protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride';
+ protected $eventTagOverridesDataType = 'array';
+ protected $geoTargetingType = 'Google_Service_Dfareporting_GeoTargeting';
+ protected $geoTargetingDataType = '';
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ protected $keyValueTargetingExpressionType = 'Google_Service_Dfareporting_KeyValueTargetingExpression';
+ protected $keyValueTargetingExpressionDataType = '';
+ public $kind;
+ protected $languageTargetingType = 'Google_Service_Dfareporting_LanguageTargeting';
+ protected $languageTargetingDataType = '';
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ protected $placementAssignmentsType = 'Google_Service_Dfareporting_PlacementAssignment';
+ protected $placementAssignmentsDataType = 'array';
+ protected $remarketingListExpressionType = 'Google_Service_Dfareporting_ListTargetingExpression';
+ protected $remarketingListExpressionDataType = '';
+ protected $sizeType = 'Google_Service_Dfareporting_Size';
+ protected $sizeDataType = '';
+ public $sslCompliant;
+ public $sslRequired;
+ public $startTime;
+ public $subaccountId;
+ public $targetingTemplateId;
+ protected $technologyTargetingType = 'Google_Service_Dfareporting_TechnologyTargeting';
+ protected $technologyTargetingDataType = '';
+ public $type;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setArchived($archived)
+ {
+ $this->archived = $archived;
+ }
+ public function getArchived()
+ {
+ return $this->archived;
+ }
+ public function setAudienceSegmentId($audienceSegmentId)
+ {
+ $this->audienceSegmentId = $audienceSegmentId;
+ }
+ public function getAudienceSegmentId()
+ {
+ return $this->audienceSegmentId;
+ }
+ public function setCampaignId($campaignId)
+ {
+ $this->campaignId = $campaignId;
+ }
+ public function getCampaignId()
+ {
+ return $this->campaignId;
+ }
+ public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue)
+ {
+ $this->campaignIdDimensionValue = $campaignIdDimensionValue;
+ }
+ public function getCampaignIdDimensionValue()
+ {
+ return $this->campaignIdDimensionValue;
+ }
+ public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl)
+ {
+ $this->clickThroughUrl = $clickThroughUrl;
+ }
+ public function getClickThroughUrl()
+ {
+ return $this->clickThroughUrl;
+ }
+ public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties)
+ {
+ $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties;
+ }
+ public function getClickThroughUrlSuffixProperties()
+ {
+ return $this->clickThroughUrlSuffixProperties;
+ }
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setCompatibility($compatibility)
+ {
+ $this->compatibility = $compatibility;
+ }
+ public function getCompatibility()
+ {
+ return $this->compatibility;
+ }
+ public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo)
+ {
+ $this->createInfo = $createInfo;
+ }
+ public function getCreateInfo()
+ {
+ return $this->createInfo;
+ }
+ public function setCreativeGroupAssignments($creativeGroupAssignments)
+ {
+ $this->creativeGroupAssignments = $creativeGroupAssignments;
+ }
+ public function getCreativeGroupAssignments()
+ {
+ return $this->creativeGroupAssignments;
+ }
+ public function setCreativeRotation(Google_Service_Dfareporting_CreativeRotation $creativeRotation)
+ {
+ $this->creativeRotation = $creativeRotation;
+ }
+ public function getCreativeRotation()
+ {
+ return $this->creativeRotation;
+ }
+ public function setDayPartTargeting(Google_Service_Dfareporting_DayPartTargeting $dayPartTargeting)
+ {
+ $this->dayPartTargeting = $dayPartTargeting;
+ }
+ public function getDayPartTargeting()
+ {
+ return $this->dayPartTargeting;
+ }
+ public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties)
+ {
+ $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties;
+ }
+ public function getDefaultClickThroughEventTagProperties()
+ {
+ return $this->defaultClickThroughEventTagProperties;
+ }
+ public function setDeliverySchedule(Google_Service_Dfareporting_DeliverySchedule $deliverySchedule)
+ {
+ $this->deliverySchedule = $deliverySchedule;
+ }
+ public function getDeliverySchedule()
+ {
+ return $this->deliverySchedule;
+ }
+ public function setDynamicClickTracker($dynamicClickTracker)
+ {
+ $this->dynamicClickTracker = $dynamicClickTracker;
+ }
+ public function getDynamicClickTracker()
+ {
+ return $this->dynamicClickTracker;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setEventTagOverrides($eventTagOverrides)
+ {
+ $this->eventTagOverrides = $eventTagOverrides;
+ }
+ public function getEventTagOverrides()
+ {
+ return $this->eventTagOverrides;
+ }
+ public function setGeoTargeting(Google_Service_Dfareporting_GeoTargeting $geoTargeting)
+ {
+ $this->geoTargeting = $geoTargeting;
+ }
+ public function getGeoTargeting()
+ {
+ return $this->geoTargeting;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKeyValueTargetingExpression(Google_Service_Dfareporting_KeyValueTargetingExpression $keyValueTargetingExpression)
+ {
+ $this->keyValueTargetingExpression = $keyValueTargetingExpression;
+ }
+ public function getKeyValueTargetingExpression()
+ {
+ return $this->keyValueTargetingExpression;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguageTargeting(Google_Service_Dfareporting_LanguageTargeting $languageTargeting)
+ {
+ $this->languageTargeting = $languageTargeting;
+ }
+ public function getLanguageTargeting()
+ {
+ return $this->languageTargeting;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPlacementAssignments($placementAssignments)
+ {
+ $this->placementAssignments = $placementAssignments;
+ }
+ public function getPlacementAssignments()
+ {
+ return $this->placementAssignments;
+ }
+ public function setRemarketingListExpression(Google_Service_Dfareporting_ListTargetingExpression $remarketingListExpression)
+ {
+ $this->remarketingListExpression = $remarketingListExpression;
+ }
+ public function getRemarketingListExpression()
+ {
+ return $this->remarketingListExpression;
+ }
+ public function setSize(Google_Service_Dfareporting_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSslCompliant($sslCompliant)
+ {
+ $this->sslCompliant = $sslCompliant;
+ }
+ public function getSslCompliant()
+ {
+ return $this->sslCompliant;
+ }
+ public function setSslRequired($sslRequired)
+ {
+ $this->sslRequired = $sslRequired;
+ }
+ public function getSslRequired()
+ {
+ return $this->sslRequired;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTargetingTemplateId($targetingTemplateId)
+ {
+ $this->targetingTemplateId = $targetingTemplateId;
+ }
+ public function getTargetingTemplateId()
+ {
+ return $this->targetingTemplateId;
+ }
+ public function setTechnologyTargeting(Google_Service_Dfareporting_TechnologyTargeting $technologyTargeting)
+ {
+ $this->technologyTargeting = $technologyTargeting;
+ }
+ public function getTechnologyTargeting()
+ {
+ return $this->technologyTargeting;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdSlot.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdSlot.php
new file mode 100644
index 00000000..f6e2fec7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdSlot.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AdSlot extends Google_Model
+{
+ public $comment;
+ public $compatibility;
+ public $height;
+ public $linkedPlacementId;
+ public $name;
+ public $paymentSourceType;
+ public $primary;
+ public $width;
+
+ public function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setCompatibility($compatibility)
+ {
+ $this->compatibility = $compatibility;
+ }
+ public function getCompatibility()
+ {
+ return $this->compatibility;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLinkedPlacementId($linkedPlacementId)
+ {
+ $this->linkedPlacementId = $linkedPlacementId;
+ }
+ public function getLinkedPlacementId()
+ {
+ return $this->linkedPlacementId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPaymentSourceType($paymentSourceType)
+ {
+ $this->paymentSourceType = $paymentSourceType;
+ }
+ public function getPaymentSourceType()
+ {
+ return $this->paymentSourceType;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdsListResponse.php
new file mode 100644
index 00000000..480ccece
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AdsListResponse extends Google_Collection
+{
+ protected $collection_key = 'ads';
+ protected $adsType = 'Google_Service_Dfareporting_Ad';
+ protected $adsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setAds($ads)
+ {
+ $this->ads = $ads;
+ }
+ public function getAds()
+ {
+ return $this->ads;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Advertiser.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Advertiser.php
new file mode 100644
index 00000000..f8998ef8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Advertiser.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Advertiser extends Google_Model
+{
+ public $accountId;
+ public $advertiserGroupId;
+ public $clickThroughUrlSuffix;
+ public $defaultClickThroughEventTagId;
+ public $defaultEmail;
+ public $floodlightConfigurationId;
+ protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $floodlightConfigurationIdDimensionValueDataType = '';
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $kind;
+ public $name;
+ public $originalFloodlightConfigurationId;
+ public $status;
+ public $subaccountId;
+ public $suspended;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserGroupId($advertiserGroupId)
+ {
+ $this->advertiserGroupId = $advertiserGroupId;
+ }
+ public function getAdvertiserGroupId()
+ {
+ return $this->advertiserGroupId;
+ }
+ public function setClickThroughUrlSuffix($clickThroughUrlSuffix)
+ {
+ $this->clickThroughUrlSuffix = $clickThroughUrlSuffix;
+ }
+ public function getClickThroughUrlSuffix()
+ {
+ return $this->clickThroughUrlSuffix;
+ }
+ public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId)
+ {
+ $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId;
+ }
+ public function getDefaultClickThroughEventTagId()
+ {
+ return $this->defaultClickThroughEventTagId;
+ }
+ public function setDefaultEmail($defaultEmail)
+ {
+ $this->defaultEmail = $defaultEmail;
+ }
+ public function getDefaultEmail()
+ {
+ return $this->defaultEmail;
+ }
+ public function setFloodlightConfigurationId($floodlightConfigurationId)
+ {
+ $this->floodlightConfigurationId = $floodlightConfigurationId;
+ }
+ public function getFloodlightConfigurationId()
+ {
+ return $this->floodlightConfigurationId;
+ }
+ public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue)
+ {
+ $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue;
+ }
+ public function getFloodlightConfigurationIdDimensionValue()
+ {
+ return $this->floodlightConfigurationIdDimensionValue;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalFloodlightConfigurationId($originalFloodlightConfigurationId)
+ {
+ $this->originalFloodlightConfigurationId = $originalFloodlightConfigurationId;
+ }
+ public function getOriginalFloodlightConfigurationId()
+ {
+ return $this->originalFloodlightConfigurationId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setSuspended($suspended)
+ {
+ $this->suspended = $suspended;
+ }
+ public function getSuspended()
+ {
+ return $this->suspended;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroup.php
new file mode 100644
index 00000000..f954b61f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroup.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AdvertiserGroup extends Google_Model
+{
+ public $accountId;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroupsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroupsListResponse.php
new file mode 100644
index 00000000..611a5d06
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertiserGroupsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AdvertiserGroupsListResponse extends Google_Collection
+{
+ protected $collection_key = 'advertiserGroups';
+ protected $advertiserGroupsType = 'Google_Service_Dfareporting_AdvertiserGroup';
+ protected $advertiserGroupsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setAdvertiserGroups($advertiserGroups)
+ {
+ $this->advertiserGroups = $advertiserGroups;
+ }
+ public function getAdvertiserGroups()
+ {
+ return $this->advertiserGroups;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertisersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertisersListResponse.php
new file mode 100644
index 00000000..b639a4c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AdvertisersListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AdvertisersListResponse extends Google_Collection
+{
+ protected $collection_key = 'advertisers';
+ protected $advertisersType = 'Google_Service_Dfareporting_Advertiser';
+ protected $advertisersDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setAdvertisers($advertisers)
+ {
+ $this->advertisers = $advertisers;
+ }
+ public function getAdvertisers()
+ {
+ return $this->advertisers;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegment.php
new file mode 100644
index 00000000..9b42a36d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegment.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AudienceSegment extends Google_Model
+{
+ public $allocation;
+ public $id;
+ public $name;
+
+ public function setAllocation($allocation)
+ {
+ $this->allocation = $allocation;
+ }
+ public function getAllocation()
+ {
+ return $this->allocation;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegmentGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegmentGroup.php
new file mode 100644
index 00000000..411fa1c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/AudienceSegmentGroup.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_AudienceSegmentGroup extends Google_Collection
+{
+ protected $collection_key = 'audienceSegments';
+ protected $audienceSegmentsType = 'Google_Service_Dfareporting_AudienceSegment';
+ protected $audienceSegmentsDataType = 'array';
+ public $id;
+ public $name;
+
+ public function setAudienceSegments($audienceSegments)
+ {
+ $this->audienceSegments = $audienceSegments;
+ }
+ public function getAudienceSegments()
+ {
+ return $this->audienceSegments;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Browser.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Browser.php
new file mode 100644
index 00000000..acdd5a97
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Browser.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Browser extends Google_Model
+{
+ public $browserVersionId;
+ public $dartId;
+ public $kind;
+ public $majorVersion;
+ public $minorVersion;
+ public $name;
+
+ public function setBrowserVersionId($browserVersionId)
+ {
+ $this->browserVersionId = $browserVersionId;
+ }
+ public function getBrowserVersionId()
+ {
+ return $this->browserVersionId;
+ }
+ public function setDartId($dartId)
+ {
+ $this->dartId = $dartId;
+ }
+ public function getDartId()
+ {
+ return $this->dartId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMajorVersion($majorVersion)
+ {
+ $this->majorVersion = $majorVersion;
+ }
+ public function getMajorVersion()
+ {
+ return $this->majorVersion;
+ }
+ public function setMinorVersion($minorVersion)
+ {
+ $this->minorVersion = $minorVersion;
+ }
+ public function getMinorVersion()
+ {
+ return $this->minorVersion;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/BrowsersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/BrowsersListResponse.php
new file mode 100644
index 00000000..c3caa3d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/BrowsersListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_BrowsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'browsers';
+ protected $browsersType = 'Google_Service_Dfareporting_Browser';
+ protected $browsersDataType = 'array';
+ public $kind;
+
+ public function setBrowsers($browsers)
+ {
+ $this->browsers = $browsers;
+ }
+ public function getBrowsers()
+ {
+ return $this->browsers;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php
new file mode 100644
index 00000000..562bb71d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Campaign.php
@@ -0,0 +1,276 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Campaign extends Google_Collection
+{
+ protected $collection_key = 'traffickerEmails';
+ public $accountId;
+ protected $additionalCreativeOptimizationConfigurationsType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration';
+ protected $additionalCreativeOptimizationConfigurationsDataType = 'array';
+ public $advertiserGroupId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $archived;
+ protected $audienceSegmentGroupsType = 'Google_Service_Dfareporting_AudienceSegmentGroup';
+ protected $audienceSegmentGroupsDataType = 'array';
+ public $billingInvoiceCode;
+ protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties';
+ protected $clickThroughUrlSuffixPropertiesDataType = '';
+ public $comment;
+ protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $createInfoDataType = '';
+ public $creativeGroupIds;
+ protected $creativeOptimizationConfigurationType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration';
+ protected $creativeOptimizationConfigurationDataType = '';
+ protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties';
+ protected $defaultClickThroughEventTagPropertiesDataType = '';
+ public $endDate;
+ protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride';
+ protected $eventTagOverridesDataType = 'array';
+ public $externalId;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration';
+ protected $lookbackConfigurationDataType = '';
+ public $name;
+ public $nielsenOcrEnabled;
+ public $startDate;
+ public $subaccountId;
+ public $traffickerEmails;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdditionalCreativeOptimizationConfigurations($additionalCreativeOptimizationConfigurations)
+ {
+ $this->additionalCreativeOptimizationConfigurations = $additionalCreativeOptimizationConfigurations;
+ }
+ public function getAdditionalCreativeOptimizationConfigurations()
+ {
+ return $this->additionalCreativeOptimizationConfigurations;
+ }
+ public function setAdvertiserGroupId($advertiserGroupId)
+ {
+ $this->advertiserGroupId = $advertiserGroupId;
+ }
+ public function getAdvertiserGroupId()
+ {
+ return $this->advertiserGroupId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setArchived($archived)
+ {
+ $this->archived = $archived;
+ }
+ public function getArchived()
+ {
+ return $this->archived;
+ }
+ public function setAudienceSegmentGroups($audienceSegmentGroups)
+ {
+ $this->audienceSegmentGroups = $audienceSegmentGroups;
+ }
+ public function getAudienceSegmentGroups()
+ {
+ return $this->audienceSegmentGroups;
+ }
+ public function setBillingInvoiceCode($billingInvoiceCode)
+ {
+ $this->billingInvoiceCode = $billingInvoiceCode;
+ }
+ public function getBillingInvoiceCode()
+ {
+ return $this->billingInvoiceCode;
+ }
+ public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties)
+ {
+ $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties;
+ }
+ public function getClickThroughUrlSuffixProperties()
+ {
+ return $this->clickThroughUrlSuffixProperties;
+ }
+ public function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo)
+ {
+ $this->createInfo = $createInfo;
+ }
+ public function getCreateInfo()
+ {
+ return $this->createInfo;
+ }
+ public function setCreativeGroupIds($creativeGroupIds)
+ {
+ $this->creativeGroupIds = $creativeGroupIds;
+ }
+ public function getCreativeGroupIds()
+ {
+ return $this->creativeGroupIds;
+ }
+ public function setCreativeOptimizationConfiguration(Google_Service_Dfareporting_CreativeOptimizationConfiguration $creativeOptimizationConfiguration)
+ {
+ $this->creativeOptimizationConfiguration = $creativeOptimizationConfiguration;
+ }
+ public function getCreativeOptimizationConfiguration()
+ {
+ return $this->creativeOptimizationConfiguration;
+ }
+ public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties)
+ {
+ $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties;
+ }
+ public function getDefaultClickThroughEventTagProperties()
+ {
+ return $this->defaultClickThroughEventTagProperties;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setEventTagOverrides($eventTagOverrides)
+ {
+ $this->eventTagOverrides = $eventTagOverrides;
+ }
+ public function getEventTagOverrides()
+ {
+ return $this->eventTagOverrides;
+ }
+ public function setExternalId($externalId)
+ {
+ $this->externalId = $externalId;
+ }
+ public function getExternalId()
+ {
+ return $this->externalId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration)
+ {
+ $this->lookbackConfiguration = $lookbackConfiguration;
+ }
+ public function getLookbackConfiguration()
+ {
+ return $this->lookbackConfiguration;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNielsenOcrEnabled($nielsenOcrEnabled)
+ {
+ $this->nielsenOcrEnabled = $nielsenOcrEnabled;
+ }
+ public function getNielsenOcrEnabled()
+ {
+ return $this->nielsenOcrEnabled;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTraffickerEmails($traffickerEmails)
+ {
+ $this->traffickerEmails = $traffickerEmails;
+ }
+ public function getTraffickerEmails()
+ {
+ return $this->traffickerEmails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociation.php
new file mode 100644
index 00000000..4ff18d41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CampaignCreativeAssociation extends Google_Model
+{
+ public $creativeId;
+ public $kind;
+
+ public function setCreativeId($creativeId)
+ {
+ $this->creativeId = $creativeId;
+ }
+ public function getCreativeId()
+ {
+ return $this->creativeId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociationsListResponse.php
new file mode 100644
index 00000000..a3749f17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignCreativeAssociationsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'campaignCreativeAssociations';
+ protected $campaignCreativeAssociationsType = 'Google_Service_Dfareporting_CampaignCreativeAssociation';
+ protected $campaignCreativeAssociationsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setCampaignCreativeAssociations($campaignCreativeAssociations)
+ {
+ $this->campaignCreativeAssociations = $campaignCreativeAssociations;
+ }
+ public function getCampaignCreativeAssociations()
+ {
+ return $this->campaignCreativeAssociations;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignsListResponse.php
new file mode 100644
index 00000000..5bd547f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CampaignsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CampaignsListResponse extends Google_Collection
+{
+ protected $collection_key = 'campaigns';
+ protected $campaignsType = 'Google_Service_Dfareporting_Campaign';
+ protected $campaignsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setCampaigns($campaigns)
+ {
+ $this->campaigns = $campaigns;
+ }
+ public function getCampaigns()
+ {
+ return $this->campaigns;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLog.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLog.php
new file mode 100644
index 00000000..9cd64f3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLog.php
@@ -0,0 +1,147 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ChangeLog extends Google_Model
+{
+ public $accountId;
+ public $action;
+ public $changeTime;
+ public $fieldName;
+ public $id;
+ public $kind;
+ public $newValue;
+ public $objectId;
+ public $objectType;
+ public $oldValue;
+ public $subaccountId;
+ public $transactionId;
+ public $userProfileId;
+ public $userProfileName;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setChangeTime($changeTime)
+ {
+ $this->changeTime = $changeTime;
+ }
+ public function getChangeTime()
+ {
+ return $this->changeTime;
+ }
+ public function setFieldName($fieldName)
+ {
+ $this->fieldName = $fieldName;
+ }
+ public function getFieldName()
+ {
+ return $this->fieldName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewValue($newValue)
+ {
+ $this->newValue = $newValue;
+ }
+ public function getNewValue()
+ {
+ return $this->newValue;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setOldValue($oldValue)
+ {
+ $this->oldValue = $oldValue;
+ }
+ public function getOldValue()
+ {
+ return $this->oldValue;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTransactionId($transactionId)
+ {
+ $this->transactionId = $transactionId;
+ }
+ public function getTransactionId()
+ {
+ return $this->transactionId;
+ }
+ public function setUserProfileId($userProfileId)
+ {
+ $this->userProfileId = $userProfileId;
+ }
+ public function getUserProfileId()
+ {
+ return $this->userProfileId;
+ }
+ public function setUserProfileName($userProfileName)
+ {
+ $this->userProfileName = $userProfileName;
+ }
+ public function getUserProfileName()
+ {
+ return $this->userProfileName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLogsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLogsListResponse.php
new file mode 100644
index 00000000..a90331c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ChangeLogsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ChangeLogsListResponse extends Google_Collection
+{
+ protected $collection_key = 'changeLogs';
+ protected $changeLogsType = 'Google_Service_Dfareporting_ChangeLog';
+ protected $changeLogsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setChangeLogs($changeLogs)
+ {
+ $this->changeLogs = $changeLogs;
+ }
+ public function getChangeLogs()
+ {
+ return $this->changeLogs;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CitiesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CitiesListResponse.php
new file mode 100644
index 00000000..c9ba81e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CitiesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CitiesListResponse extends Google_Collection
+{
+ protected $collection_key = 'cities';
+ protected $citiesType = 'Google_Service_Dfareporting_City';
+ protected $citiesDataType = 'array';
+ public $kind;
+
+ public function setCities($cities)
+ {
+ $this->cities = $cities;
+ }
+ public function getCities()
+ {
+ return $this->cities;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/City.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/City.php
new file mode 100644
index 00000000..6204f7b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/City.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_City extends Google_Model
+{
+ public $countryCode;
+ public $countryDartId;
+ public $dartId;
+ public $kind;
+ public $metroCode;
+ public $metroDmaId;
+ public $name;
+ public $regionCode;
+ public $regionDartId;
+
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCountryDartId($countryDartId)
+ {
+ $this->countryDartId = $countryDartId;
+ }
+ public function getCountryDartId()
+ {
+ return $this->countryDartId;
+ }
+ public function setDartId($dartId)
+ {
+ $this->dartId = $dartId;
+ }
+ public function getDartId()
+ {
+ return $this->dartId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetroCode($metroCode)
+ {
+ $this->metroCode = $metroCode;
+ }
+ public function getMetroCode()
+ {
+ return $this->metroCode;
+ }
+ public function setMetroDmaId($metroDmaId)
+ {
+ $this->metroDmaId = $metroDmaId;
+ }
+ public function getMetroDmaId()
+ {
+ return $this->metroDmaId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegionCode($regionCode)
+ {
+ $this->regionCode = $regionCode;
+ }
+ public function getRegionCode()
+ {
+ return $this->regionCode;
+ }
+ public function setRegionDartId($regionDartId)
+ {
+ $this->regionDartId = $regionDartId;
+ }
+ public function getRegionDartId()
+ {
+ return $this->regionDartId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickTag.php
new file mode 100644
index 00000000..943101c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickTag.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ClickTag extends Google_Model
+{
+ public $eventName;
+ public $name;
+ public $value;
+
+ public function setEventName($eventName)
+ {
+ $this->eventName = $eventName;
+ }
+ public function getEventName()
+ {
+ return $this->eventName;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrl.php
new file mode 100644
index 00000000..40b85556
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrl.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ClickThroughUrl extends Google_Model
+{
+ public $computedClickThroughUrl;
+ public $customClickThroughUrl;
+ public $defaultLandingPage;
+ public $landingPageId;
+
+ public function setComputedClickThroughUrl($computedClickThroughUrl)
+ {
+ $this->computedClickThroughUrl = $computedClickThroughUrl;
+ }
+ public function getComputedClickThroughUrl()
+ {
+ return $this->computedClickThroughUrl;
+ }
+ public function setCustomClickThroughUrl($customClickThroughUrl)
+ {
+ $this->customClickThroughUrl = $customClickThroughUrl;
+ }
+ public function getCustomClickThroughUrl()
+ {
+ return $this->customClickThroughUrl;
+ }
+ public function setDefaultLandingPage($defaultLandingPage)
+ {
+ $this->defaultLandingPage = $defaultLandingPage;
+ }
+ public function getDefaultLandingPage()
+ {
+ return $this->defaultLandingPage;
+ }
+ public function setLandingPageId($landingPageId)
+ {
+ $this->landingPageId = $landingPageId;
+ }
+ public function getLandingPageId()
+ {
+ return $this->landingPageId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrlSuffixProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrlSuffixProperties.php
new file mode 100644
index 00000000..a192e47c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ClickThroughUrlSuffixProperties.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ClickThroughUrlSuffixProperties extends Google_Model
+{
+ public $clickThroughUrlSuffix;
+ public $overrideInheritedSuffix;
+
+ public function setClickThroughUrlSuffix($clickThroughUrlSuffix)
+ {
+ $this->clickThroughUrlSuffix = $clickThroughUrlSuffix;
+ }
+ public function getClickThroughUrlSuffix()
+ {
+ return $this->clickThroughUrlSuffix;
+ }
+ public function setOverrideInheritedSuffix($overrideInheritedSuffix)
+ {
+ $this->overrideInheritedSuffix = $overrideInheritedSuffix;
+ }
+ public function getOverrideInheritedSuffix()
+ {
+ return $this->overrideInheritedSuffix;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionClickThroughOverride.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionClickThroughOverride.php
new file mode 100644
index 00000000..a6333bd8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionClickThroughOverride.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CompanionClickThroughOverride extends Google_Model
+{
+ protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl';
+ protected $clickThroughUrlDataType = '';
+ public $creativeId;
+
+ public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl)
+ {
+ $this->clickThroughUrl = $clickThroughUrl;
+ }
+ public function getClickThroughUrl()
+ {
+ return $this->clickThroughUrl;
+ }
+ public function setCreativeId($creativeId)
+ {
+ $this->creativeId = $creativeId;
+ }
+ public function getCreativeId()
+ {
+ return $this->creativeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionSetting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionSetting.php
new file mode 100644
index 00000000..f75ab2e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompanionSetting.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CompanionSetting extends Google_Collection
+{
+ protected $collection_key = 'enabledSizes';
+ public $companionsDisabled;
+ protected $enabledSizesType = 'Google_Service_Dfareporting_Size';
+ protected $enabledSizesDataType = 'array';
+ public $imageOnly;
+ public $kind;
+
+ public function setCompanionsDisabled($companionsDisabled)
+ {
+ $this->companionsDisabled = $companionsDisabled;
+ }
+ public function getCompanionsDisabled()
+ {
+ return $this->companionsDisabled;
+ }
+ public function setEnabledSizes($enabledSizes)
+ {
+ $this->enabledSizes = $enabledSizes;
+ }
+ public function getEnabledSizes()
+ {
+ return $this->enabledSizes;
+ }
+ public function setImageOnly($imageOnly)
+ {
+ $this->imageOnly = $imageOnly;
+ }
+ public function getImageOnly()
+ {
+ return $this->imageOnly;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompatibleFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompatibleFields.php
new file mode 100644
index 00000000..5619b83c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CompatibleFields.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CompatibleFields extends Google_Model
+{
+ protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields';
+ protected $crossDimensionReachReportCompatibleFieldsDataType = '';
+ protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields';
+ protected $floodlightReportCompatibleFieldsDataType = '';
+ public $kind;
+ protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields';
+ protected $pathToConversionReportCompatibleFieldsDataType = '';
+ protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields';
+ protected $reachReportCompatibleFieldsDataType = '';
+ protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields';
+ protected $reportCompatibleFieldsDataType = '';
+
+ public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields)
+ {
+ $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields;
+ }
+ public function getCrossDimensionReachReportCompatibleFields()
+ {
+ return $this->crossDimensionReachReportCompatibleFields;
+ }
+ public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields)
+ {
+ $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields;
+ }
+ public function getFloodlightReportCompatibleFields()
+ {
+ return $this->floodlightReportCompatibleFields;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields)
+ {
+ $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields;
+ }
+ public function getPathToConversionReportCompatibleFields()
+ {
+ return $this->pathToConversionReportCompatibleFields;
+ }
+ public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields)
+ {
+ $this->reachReportCompatibleFields = $reachReportCompatibleFields;
+ }
+ public function getReachReportCompatibleFields()
+ {
+ return $this->reachReportCompatibleFields;
+ }
+ public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields)
+ {
+ $this->reportCompatibleFields = $reportCompatibleFields;
+ }
+ public function getReportCompatibleFields()
+ {
+ return $this->reportCompatibleFields;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionType.php
new file mode 100644
index 00000000..5a2899a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionType.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ConnectionType extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionTypesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionTypesListResponse.php
new file mode 100644
index 00000000..2ef44105
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConnectionTypesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ConnectionTypesListResponse extends Google_Collection
+{
+ protected $collection_key = 'connectionTypes';
+ protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType';
+ protected $connectionTypesDataType = 'array';
+ public $kind;
+
+ public function setConnectionTypes($connectionTypes)
+ {
+ $this->connectionTypes = $connectionTypes;
+ }
+ public function getConnectionTypes()
+ {
+ return $this->connectionTypes;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategoriesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategoriesListResponse.php
new file mode 100644
index 00000000..2618be9d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategoriesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ContentCategoriesListResponse extends Google_Collection
+{
+ protected $collection_key = 'contentCategories';
+ protected $contentCategoriesType = 'Google_Service_Dfareporting_ContentCategory';
+ protected $contentCategoriesDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setContentCategories($contentCategories)
+ {
+ $this->contentCategories = $contentCategories;
+ }
+ public function getContentCategories()
+ {
+ return $this->contentCategories;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategory.php
new file mode 100644
index 00000000..d3ebe712
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ContentCategory.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ContentCategory extends Google_Model
+{
+ public $accountId;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php
new file mode 100644
index 00000000..c189b613
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Conversion.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Conversion extends Google_Collection
+{
+ protected $collection_key = 'encryptedUserIdCandidates';
+ public $childDirectedTreatment;
+ protected $customVariablesType = 'Google_Service_Dfareporting_CustomFloodlightVariable';
+ protected $customVariablesDataType = 'array';
+ public $encryptedUserId;
+ public $encryptedUserIdCandidates;
+ public $floodlightActivityId;
+ public $floodlightConfigurationId;
+ public $kind;
+ public $limitAdTracking;
+ public $mobileDeviceId;
+ public $ordinal;
+ public $quantity;
+ public $timestampMicros;
+ public $value;
+
+ public function setChildDirectedTreatment($childDirectedTreatment)
+ {
+ $this->childDirectedTreatment = $childDirectedTreatment;
+ }
+ public function getChildDirectedTreatment()
+ {
+ return $this->childDirectedTreatment;
+ }
+ public function setCustomVariables($customVariables)
+ {
+ $this->customVariables = $customVariables;
+ }
+ public function getCustomVariables()
+ {
+ return $this->customVariables;
+ }
+ public function setEncryptedUserId($encryptedUserId)
+ {
+ $this->encryptedUserId = $encryptedUserId;
+ }
+ public function getEncryptedUserId()
+ {
+ return $this->encryptedUserId;
+ }
+ public function setEncryptedUserIdCandidates($encryptedUserIdCandidates)
+ {
+ $this->encryptedUserIdCandidates = $encryptedUserIdCandidates;
+ }
+ public function getEncryptedUserIdCandidates()
+ {
+ return $this->encryptedUserIdCandidates;
+ }
+ public function setFloodlightActivityId($floodlightActivityId)
+ {
+ $this->floodlightActivityId = $floodlightActivityId;
+ }
+ public function getFloodlightActivityId()
+ {
+ return $this->floodlightActivityId;
+ }
+ public function setFloodlightConfigurationId($floodlightConfigurationId)
+ {
+ $this->floodlightConfigurationId = $floodlightConfigurationId;
+ }
+ public function getFloodlightConfigurationId()
+ {
+ return $this->floodlightConfigurationId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLimitAdTracking($limitAdTracking)
+ {
+ $this->limitAdTracking = $limitAdTracking;
+ }
+ public function getLimitAdTracking()
+ {
+ return $this->limitAdTracking;
+ }
+ public function setMobileDeviceId($mobileDeviceId)
+ {
+ $this->mobileDeviceId = $mobileDeviceId;
+ }
+ public function getMobileDeviceId()
+ {
+ return $this->mobileDeviceId;
+ }
+ public function setOrdinal($ordinal)
+ {
+ $this->ordinal = $ordinal;
+ }
+ public function getOrdinal()
+ {
+ return $this->ordinal;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setTimestampMicros($timestampMicros)
+ {
+ $this->timestampMicros = $timestampMicros;
+ }
+ public function getTimestampMicros()
+ {
+ return $this->timestampMicros;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionError.php
new file mode 100644
index 00000000..8eae13e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionError.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ConversionError extends Google_Model
+{
+ public $code;
+ public $kind;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionStatus.php
new file mode 100644
index 00000000..520a0fd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionStatus.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ConversionStatus extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $conversionType = 'Google_Service_Dfareporting_Conversion';
+ protected $conversionDataType = '';
+ protected $errorsType = 'Google_Service_Dfareporting_ConversionError';
+ protected $errorsDataType = 'array';
+ public $kind;
+
+ public function setConversion(Google_Service_Dfareporting_Conversion $conversion)
+ {
+ $this->conversion = $conversion;
+ }
+ public function getConversion()
+ {
+ return $this->conversion;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertRequest.php
new file mode 100644
index 00000000..acf5e24a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertRequest.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ConversionsBatchInsertRequest extends Google_Collection
+{
+ protected $collection_key = 'conversions';
+ protected $conversionsType = 'Google_Service_Dfareporting_Conversion';
+ protected $conversionsDataType = 'array';
+ protected $encryptionInfoType = 'Google_Service_Dfareporting_EncryptionInfo';
+ protected $encryptionInfoDataType = '';
+ public $kind;
+
+ public function setConversions($conversions)
+ {
+ $this->conversions = $conversions;
+ }
+ public function getConversions()
+ {
+ return $this->conversions;
+ }
+ public function setEncryptionInfo(Google_Service_Dfareporting_EncryptionInfo $encryptionInfo)
+ {
+ $this->encryptionInfo = $encryptionInfo;
+ }
+ public function getEncryptionInfo()
+ {
+ return $this->encryptionInfo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertResponse.php
new file mode 100644
index 00000000..b3591cc6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ConversionsBatchInsertResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ConversionsBatchInsertResponse extends Google_Collection
+{
+ protected $collection_key = 'status';
+ public $hasFailures;
+ public $kind;
+ protected $statusType = 'Google_Service_Dfareporting_ConversionStatus';
+ protected $statusDataType = 'array';
+
+ public function setHasFailures($hasFailures)
+ {
+ $this->hasFailures = $hasFailures;
+ }
+ public function getHasFailures()
+ {
+ return $this->hasFailures;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CountriesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CountriesListResponse.php
new file mode 100644
index 00000000..02349753
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CountriesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CountriesListResponse extends Google_Collection
+{
+ protected $collection_key = 'countries';
+ protected $countriesType = 'Google_Service_Dfareporting_Country';
+ protected $countriesDataType = 'array';
+ public $kind;
+
+ public function setCountries($countries)
+ {
+ $this->countries = $countries;
+ }
+ public function getCountries()
+ {
+ return $this->countries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Country.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Country.php
new file mode 100644
index 00000000..d1496294
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Country.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Country extends Google_Model
+{
+ public $countryCode;
+ public $dartId;
+ public $kind;
+ public $name;
+ public $sslEnabled;
+
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setDartId($dartId)
+ {
+ $this->dartId = $dartId;
+ }
+ public function getDartId()
+ {
+ return $this->dartId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSslEnabled($sslEnabled)
+ {
+ $this->sslEnabled = $sslEnabled;
+ }
+ public function getSslEnabled()
+ {
+ return $this->sslEnabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php
new file mode 100644
index 00000000..1fcc633a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Creative.php
@@ -0,0 +1,599 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Creative extends Google_Collection
+{
+ protected $collection_key = 'timerCustomEvents';
+ protected $internal_gapi_mappings = array(
+ "autoAdvanceImages" => "auto_advance_images",
+ );
+ public $accountId;
+ public $active;
+ public $adParameters;
+ public $adTagKeys;
+ public $advertiserId;
+ public $allowScriptAccess;
+ public $archived;
+ public $artworkType;
+ public $authoringSource;
+ public $authoringTool;
+ public $autoAdvanceImages;
+ public $backgroundColor;
+ public $backupImageClickThroughUrl;
+ public $backupImageFeatures;
+ public $backupImageReportingLabel;
+ protected $backupImageTargetWindowType = 'Google_Service_Dfareporting_TargetWindow';
+ protected $backupImageTargetWindowDataType = '';
+ protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag';
+ protected $clickTagsDataType = 'array';
+ public $commercialId;
+ public $companionCreatives;
+ public $compatibility;
+ public $convertFlashToHtml5;
+ protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent';
+ protected $counterCustomEventsDataType = 'array';
+ protected $creativeAssetSelectionType = 'Google_Service_Dfareporting_CreativeAssetSelection';
+ protected $creativeAssetSelectionDataType = '';
+ protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset';
+ protected $creativeAssetsDataType = 'array';
+ protected $creativeFieldAssignmentsType = 'Google_Service_Dfareporting_CreativeFieldAssignment';
+ protected $creativeFieldAssignmentsDataType = 'array';
+ public $customKeyValues;
+ public $dynamicAssetSelection;
+ protected $exitCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent';
+ protected $exitCustomEventsDataType = 'array';
+ protected $fsCommandType = 'Google_Service_Dfareporting_FsCommand';
+ protected $fsCommandDataType = '';
+ public $htmlCode;
+ public $htmlCodeLocked;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $latestTraffickedCreativeId;
+ public $name;
+ public $overrideCss;
+ protected $progressOffsetType = 'Google_Service_Dfareporting_VideoOffset';
+ protected $progressOffsetDataType = '';
+ public $redirectUrl;
+ public $renderingId;
+ protected $renderingIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $renderingIdDimensionValueDataType = '';
+ public $requiredFlashPluginVersion;
+ public $requiredFlashVersion;
+ protected $sizeType = 'Google_Service_Dfareporting_Size';
+ protected $sizeDataType = '';
+ protected $skipOffsetType = 'Google_Service_Dfareporting_VideoOffset';
+ protected $skipOffsetDataType = '';
+ public $skippable;
+ public $sslCompliant;
+ public $sslOverride;
+ public $studioAdvertiserId;
+ public $studioCreativeId;
+ public $studioTraffickedCreativeId;
+ public $subaccountId;
+ public $thirdPartyBackupImageImpressionsUrl;
+ public $thirdPartyRichMediaImpressionsUrl;
+ protected $thirdPartyUrlsType = 'Google_Service_Dfareporting_ThirdPartyTrackingUrl';
+ protected $thirdPartyUrlsDataType = 'array';
+ protected $timerCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent';
+ protected $timerCustomEventsDataType = 'array';
+ public $totalFileSize;
+ public $type;
+ public $version;
+ public $videoDescription;
+ public $videoDuration;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setAdParameters($adParameters)
+ {
+ $this->adParameters = $adParameters;
+ }
+ public function getAdParameters()
+ {
+ return $this->adParameters;
+ }
+ public function setAdTagKeys($adTagKeys)
+ {
+ $this->adTagKeys = $adTagKeys;
+ }
+ public function getAdTagKeys()
+ {
+ return $this->adTagKeys;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAllowScriptAccess($allowScriptAccess)
+ {
+ $this->allowScriptAccess = $allowScriptAccess;
+ }
+ public function getAllowScriptAccess()
+ {
+ return $this->allowScriptAccess;
+ }
+ public function setArchived($archived)
+ {
+ $this->archived = $archived;
+ }
+ public function getArchived()
+ {
+ return $this->archived;
+ }
+ public function setArtworkType($artworkType)
+ {
+ $this->artworkType = $artworkType;
+ }
+ public function getArtworkType()
+ {
+ return $this->artworkType;
+ }
+ public function setAuthoringSource($authoringSource)
+ {
+ $this->authoringSource = $authoringSource;
+ }
+ public function getAuthoringSource()
+ {
+ return $this->authoringSource;
+ }
+ public function setAuthoringTool($authoringTool)
+ {
+ $this->authoringTool = $authoringTool;
+ }
+ public function getAuthoringTool()
+ {
+ return $this->authoringTool;
+ }
+ public function setAutoAdvanceImages($autoAdvanceImages)
+ {
+ $this->autoAdvanceImages = $autoAdvanceImages;
+ }
+ public function getAutoAdvanceImages()
+ {
+ return $this->autoAdvanceImages;
+ }
+ public function setBackgroundColor($backgroundColor)
+ {
+ $this->backgroundColor = $backgroundColor;
+ }
+ public function getBackgroundColor()
+ {
+ return $this->backgroundColor;
+ }
+ public function setBackupImageClickThroughUrl($backupImageClickThroughUrl)
+ {
+ $this->backupImageClickThroughUrl = $backupImageClickThroughUrl;
+ }
+ public function getBackupImageClickThroughUrl()
+ {
+ return $this->backupImageClickThroughUrl;
+ }
+ public function setBackupImageFeatures($backupImageFeatures)
+ {
+ $this->backupImageFeatures = $backupImageFeatures;
+ }
+ public function getBackupImageFeatures()
+ {
+ return $this->backupImageFeatures;
+ }
+ public function setBackupImageReportingLabel($backupImageReportingLabel)
+ {
+ $this->backupImageReportingLabel = $backupImageReportingLabel;
+ }
+ public function getBackupImageReportingLabel()
+ {
+ return $this->backupImageReportingLabel;
+ }
+ public function setBackupImageTargetWindow(Google_Service_Dfareporting_TargetWindow $backupImageTargetWindow)
+ {
+ $this->backupImageTargetWindow = $backupImageTargetWindow;
+ }
+ public function getBackupImageTargetWindow()
+ {
+ return $this->backupImageTargetWindow;
+ }
+ public function setClickTags($clickTags)
+ {
+ $this->clickTags = $clickTags;
+ }
+ public function getClickTags()
+ {
+ return $this->clickTags;
+ }
+ public function setCommercialId($commercialId)
+ {
+ $this->commercialId = $commercialId;
+ }
+ public function getCommercialId()
+ {
+ return $this->commercialId;
+ }
+ public function setCompanionCreatives($companionCreatives)
+ {
+ $this->companionCreatives = $companionCreatives;
+ }
+ public function getCompanionCreatives()
+ {
+ return $this->companionCreatives;
+ }
+ public function setCompatibility($compatibility)
+ {
+ $this->compatibility = $compatibility;
+ }
+ public function getCompatibility()
+ {
+ return $this->compatibility;
+ }
+ public function setConvertFlashToHtml5($convertFlashToHtml5)
+ {
+ $this->convertFlashToHtml5 = $convertFlashToHtml5;
+ }
+ public function getConvertFlashToHtml5()
+ {
+ return $this->convertFlashToHtml5;
+ }
+ public function setCounterCustomEvents($counterCustomEvents)
+ {
+ $this->counterCustomEvents = $counterCustomEvents;
+ }
+ public function getCounterCustomEvents()
+ {
+ return $this->counterCustomEvents;
+ }
+ public function setCreativeAssetSelection(Google_Service_Dfareporting_CreativeAssetSelection $creativeAssetSelection)
+ {
+ $this->creativeAssetSelection = $creativeAssetSelection;
+ }
+ public function getCreativeAssetSelection()
+ {
+ return $this->creativeAssetSelection;
+ }
+ public function setCreativeAssets($creativeAssets)
+ {
+ $this->creativeAssets = $creativeAssets;
+ }
+ public function getCreativeAssets()
+ {
+ return $this->creativeAssets;
+ }
+ public function setCreativeFieldAssignments($creativeFieldAssignments)
+ {
+ $this->creativeFieldAssignments = $creativeFieldAssignments;
+ }
+ public function getCreativeFieldAssignments()
+ {
+ return $this->creativeFieldAssignments;
+ }
+ public function setCustomKeyValues($customKeyValues)
+ {
+ $this->customKeyValues = $customKeyValues;
+ }
+ public function getCustomKeyValues()
+ {
+ return $this->customKeyValues;
+ }
+ public function setDynamicAssetSelection($dynamicAssetSelection)
+ {
+ $this->dynamicAssetSelection = $dynamicAssetSelection;
+ }
+ public function getDynamicAssetSelection()
+ {
+ return $this->dynamicAssetSelection;
+ }
+ public function setExitCustomEvents($exitCustomEvents)
+ {
+ $this->exitCustomEvents = $exitCustomEvents;
+ }
+ public function getExitCustomEvents()
+ {
+ return $this->exitCustomEvents;
+ }
+ public function setFsCommand(Google_Service_Dfareporting_FsCommand $fsCommand)
+ {
+ $this->fsCommand = $fsCommand;
+ }
+ public function getFsCommand()
+ {
+ return $this->fsCommand;
+ }
+ public function setHtmlCode($htmlCode)
+ {
+ $this->htmlCode = $htmlCode;
+ }
+ public function getHtmlCode()
+ {
+ return $this->htmlCode;
+ }
+ public function setHtmlCodeLocked($htmlCodeLocked)
+ {
+ $this->htmlCodeLocked = $htmlCodeLocked;
+ }
+ public function getHtmlCodeLocked()
+ {
+ return $this->htmlCodeLocked;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setLatestTraffickedCreativeId($latestTraffickedCreativeId)
+ {
+ $this->latestTraffickedCreativeId = $latestTraffickedCreativeId;
+ }
+ public function getLatestTraffickedCreativeId()
+ {
+ return $this->latestTraffickedCreativeId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOverrideCss($overrideCss)
+ {
+ $this->overrideCss = $overrideCss;
+ }
+ public function getOverrideCss()
+ {
+ return $this->overrideCss;
+ }
+ public function setProgressOffset(Google_Service_Dfareporting_VideoOffset $progressOffset)
+ {
+ $this->progressOffset = $progressOffset;
+ }
+ public function getProgressOffset()
+ {
+ return $this->progressOffset;
+ }
+ public function setRedirectUrl($redirectUrl)
+ {
+ $this->redirectUrl = $redirectUrl;
+ }
+ public function getRedirectUrl()
+ {
+ return $this->redirectUrl;
+ }
+ public function setRenderingId($renderingId)
+ {
+ $this->renderingId = $renderingId;
+ }
+ public function getRenderingId()
+ {
+ return $this->renderingId;
+ }
+ public function setRenderingIdDimensionValue(Google_Service_Dfareporting_DimensionValue $renderingIdDimensionValue)
+ {
+ $this->renderingIdDimensionValue = $renderingIdDimensionValue;
+ }
+ public function getRenderingIdDimensionValue()
+ {
+ return $this->renderingIdDimensionValue;
+ }
+ public function setRequiredFlashPluginVersion($requiredFlashPluginVersion)
+ {
+ $this->requiredFlashPluginVersion = $requiredFlashPluginVersion;
+ }
+ public function getRequiredFlashPluginVersion()
+ {
+ return $this->requiredFlashPluginVersion;
+ }
+ public function setRequiredFlashVersion($requiredFlashVersion)
+ {
+ $this->requiredFlashVersion = $requiredFlashVersion;
+ }
+ public function getRequiredFlashVersion()
+ {
+ return $this->requiredFlashVersion;
+ }
+ public function setSize(Google_Service_Dfareporting_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSkipOffset(Google_Service_Dfareporting_VideoOffset $skipOffset)
+ {
+ $this->skipOffset = $skipOffset;
+ }
+ public function getSkipOffset()
+ {
+ return $this->skipOffset;
+ }
+ public function setSkippable($skippable)
+ {
+ $this->skippable = $skippable;
+ }
+ public function getSkippable()
+ {
+ return $this->skippable;
+ }
+ public function setSslCompliant($sslCompliant)
+ {
+ $this->sslCompliant = $sslCompliant;
+ }
+ public function getSslCompliant()
+ {
+ return $this->sslCompliant;
+ }
+ public function setSslOverride($sslOverride)
+ {
+ $this->sslOverride = $sslOverride;
+ }
+ public function getSslOverride()
+ {
+ return $this->sslOverride;
+ }
+ public function setStudioAdvertiserId($studioAdvertiserId)
+ {
+ $this->studioAdvertiserId = $studioAdvertiserId;
+ }
+ public function getStudioAdvertiserId()
+ {
+ return $this->studioAdvertiserId;
+ }
+ public function setStudioCreativeId($studioCreativeId)
+ {
+ $this->studioCreativeId = $studioCreativeId;
+ }
+ public function getStudioCreativeId()
+ {
+ return $this->studioCreativeId;
+ }
+ public function setStudioTraffickedCreativeId($studioTraffickedCreativeId)
+ {
+ $this->studioTraffickedCreativeId = $studioTraffickedCreativeId;
+ }
+ public function getStudioTraffickedCreativeId()
+ {
+ return $this->studioTraffickedCreativeId;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setThirdPartyBackupImageImpressionsUrl($thirdPartyBackupImageImpressionsUrl)
+ {
+ $this->thirdPartyBackupImageImpressionsUrl = $thirdPartyBackupImageImpressionsUrl;
+ }
+ public function getThirdPartyBackupImageImpressionsUrl()
+ {
+ return $this->thirdPartyBackupImageImpressionsUrl;
+ }
+ public function setThirdPartyRichMediaImpressionsUrl($thirdPartyRichMediaImpressionsUrl)
+ {
+ $this->thirdPartyRichMediaImpressionsUrl = $thirdPartyRichMediaImpressionsUrl;
+ }
+ public function getThirdPartyRichMediaImpressionsUrl()
+ {
+ return $this->thirdPartyRichMediaImpressionsUrl;
+ }
+ public function setThirdPartyUrls($thirdPartyUrls)
+ {
+ $this->thirdPartyUrls = $thirdPartyUrls;
+ }
+ public function getThirdPartyUrls()
+ {
+ return $this->thirdPartyUrls;
+ }
+ public function setTimerCustomEvents($timerCustomEvents)
+ {
+ $this->timerCustomEvents = $timerCustomEvents;
+ }
+ public function getTimerCustomEvents()
+ {
+ return $this->timerCustomEvents;
+ }
+ public function setTotalFileSize($totalFileSize)
+ {
+ $this->totalFileSize = $totalFileSize;
+ }
+ public function getTotalFileSize()
+ {
+ return $this->totalFileSize;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+ public function setVideoDescription($videoDescription)
+ {
+ $this->videoDescription = $videoDescription;
+ }
+ public function getVideoDescription()
+ {
+ return $this->videoDescription;
+ }
+ public function setVideoDuration($videoDuration)
+ {
+ $this->videoDuration = $videoDuration;
+ }
+ public function getVideoDuration()
+ {
+ return $this->videoDuration;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php
new file mode 100644
index 00000000..e2d06db5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAsset.php
@@ -0,0 +1,426 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeAsset extends Google_Collection
+{
+ protected $collection_key = 'detectedFeatures';
+ public $actionScript3;
+ public $active;
+ public $alignment;
+ public $artworkType;
+ protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId';
+ protected $assetIdentifierDataType = '';
+ protected $backupImageExitType = 'Google_Service_Dfareporting_CreativeCustomEvent';
+ protected $backupImageExitDataType = '';
+ public $bitRate;
+ public $childAssetType;
+ protected $collapsedSizeType = 'Google_Service_Dfareporting_Size';
+ protected $collapsedSizeDataType = '';
+ public $companionCreativeIds;
+ public $customStartTimeValue;
+ public $detectedFeatures;
+ public $displayType;
+ public $duration;
+ public $durationType;
+ protected $expandedDimensionType = 'Google_Service_Dfareporting_Size';
+ protected $expandedDimensionDataType = '';
+ public $fileSize;
+ public $flashVersion;
+ public $hideFlashObjects;
+ public $hideSelectionBoxes;
+ public $horizontallyLocked;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $mimeType;
+ protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition';
+ protected $offsetDataType = '';
+ public $originalBackup;
+ protected $positionType = 'Google_Service_Dfareporting_OffsetPosition';
+ protected $positionDataType = '';
+ public $positionLeftUnit;
+ public $positionTopUnit;
+ public $progressiveServingUrl;
+ public $pushdown;
+ public $pushdownDuration;
+ public $role;
+ protected $sizeType = 'Google_Service_Dfareporting_Size';
+ protected $sizeDataType = '';
+ public $sslCompliant;
+ public $startTimeType;
+ public $streamingServingUrl;
+ public $transparency;
+ public $verticallyLocked;
+ public $videoDuration;
+ public $windowMode;
+ public $zIndex;
+ public $zipFilename;
+ public $zipFilesize;
+
+ public function setActionScript3($actionScript3)
+ {
+ $this->actionScript3 = $actionScript3;
+ }
+ public function getActionScript3()
+ {
+ return $this->actionScript3;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setAlignment($alignment)
+ {
+ $this->alignment = $alignment;
+ }
+ public function getAlignment()
+ {
+ return $this->alignment;
+ }
+ public function setArtworkType($artworkType)
+ {
+ $this->artworkType = $artworkType;
+ }
+ public function getArtworkType()
+ {
+ return $this->artworkType;
+ }
+ public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier)
+ {
+ $this->assetIdentifier = $assetIdentifier;
+ }
+ public function getAssetIdentifier()
+ {
+ return $this->assetIdentifier;
+ }
+ public function setBackupImageExit(Google_Service_Dfareporting_CreativeCustomEvent $backupImageExit)
+ {
+ $this->backupImageExit = $backupImageExit;
+ }
+ public function getBackupImageExit()
+ {
+ return $this->backupImageExit;
+ }
+ public function setBitRate($bitRate)
+ {
+ $this->bitRate = $bitRate;
+ }
+ public function getBitRate()
+ {
+ return $this->bitRate;
+ }
+ public function setChildAssetType($childAssetType)
+ {
+ $this->childAssetType = $childAssetType;
+ }
+ public function getChildAssetType()
+ {
+ return $this->childAssetType;
+ }
+ public function setCollapsedSize(Google_Service_Dfareporting_Size $collapsedSize)
+ {
+ $this->collapsedSize = $collapsedSize;
+ }
+ public function getCollapsedSize()
+ {
+ return $this->collapsedSize;
+ }
+ public function setCompanionCreativeIds($companionCreativeIds)
+ {
+ $this->companionCreativeIds = $companionCreativeIds;
+ }
+ public function getCompanionCreativeIds()
+ {
+ return $this->companionCreativeIds;
+ }
+ public function setCustomStartTimeValue($customStartTimeValue)
+ {
+ $this->customStartTimeValue = $customStartTimeValue;
+ }
+ public function getCustomStartTimeValue()
+ {
+ return $this->customStartTimeValue;
+ }
+ public function setDetectedFeatures($detectedFeatures)
+ {
+ $this->detectedFeatures = $detectedFeatures;
+ }
+ public function getDetectedFeatures()
+ {
+ return $this->detectedFeatures;
+ }
+ public function setDisplayType($displayType)
+ {
+ $this->displayType = $displayType;
+ }
+ public function getDisplayType()
+ {
+ return $this->displayType;
+ }
+ public function setDuration($duration)
+ {
+ $this->duration = $duration;
+ }
+ public function getDuration()
+ {
+ return $this->duration;
+ }
+ public function setDurationType($durationType)
+ {
+ $this->durationType = $durationType;
+ }
+ public function getDurationType()
+ {
+ return $this->durationType;
+ }
+ public function setExpandedDimension(Google_Service_Dfareporting_Size $expandedDimension)
+ {
+ $this->expandedDimension = $expandedDimension;
+ }
+ public function getExpandedDimension()
+ {
+ return $this->expandedDimension;
+ }
+ public function setFileSize($fileSize)
+ {
+ $this->fileSize = $fileSize;
+ }
+ public function getFileSize()
+ {
+ return $this->fileSize;
+ }
+ public function setFlashVersion($flashVersion)
+ {
+ $this->flashVersion = $flashVersion;
+ }
+ public function getFlashVersion()
+ {
+ return $this->flashVersion;
+ }
+ public function setHideFlashObjects($hideFlashObjects)
+ {
+ $this->hideFlashObjects = $hideFlashObjects;
+ }
+ public function getHideFlashObjects()
+ {
+ return $this->hideFlashObjects;
+ }
+ public function setHideSelectionBoxes($hideSelectionBoxes)
+ {
+ $this->hideSelectionBoxes = $hideSelectionBoxes;
+ }
+ public function getHideSelectionBoxes()
+ {
+ return $this->hideSelectionBoxes;
+ }
+ public function setHorizontallyLocked($horizontallyLocked)
+ {
+ $this->horizontallyLocked = $horizontallyLocked;
+ }
+ public function getHorizontallyLocked()
+ {
+ return $this->horizontallyLocked;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset)
+ {
+ $this->offset = $offset;
+ }
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+ public function setOriginalBackup($originalBackup)
+ {
+ $this->originalBackup = $originalBackup;
+ }
+ public function getOriginalBackup()
+ {
+ return $this->originalBackup;
+ }
+ public function setPosition(Google_Service_Dfareporting_OffsetPosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setPositionLeftUnit($positionLeftUnit)
+ {
+ $this->positionLeftUnit = $positionLeftUnit;
+ }
+ public function getPositionLeftUnit()
+ {
+ return $this->positionLeftUnit;
+ }
+ public function setPositionTopUnit($positionTopUnit)
+ {
+ $this->positionTopUnit = $positionTopUnit;
+ }
+ public function getPositionTopUnit()
+ {
+ return $this->positionTopUnit;
+ }
+ public function setProgressiveServingUrl($progressiveServingUrl)
+ {
+ $this->progressiveServingUrl = $progressiveServingUrl;
+ }
+ public function getProgressiveServingUrl()
+ {
+ return $this->progressiveServingUrl;
+ }
+ public function setPushdown($pushdown)
+ {
+ $this->pushdown = $pushdown;
+ }
+ public function getPushdown()
+ {
+ return $this->pushdown;
+ }
+ public function setPushdownDuration($pushdownDuration)
+ {
+ $this->pushdownDuration = $pushdownDuration;
+ }
+ public function getPushdownDuration()
+ {
+ return $this->pushdownDuration;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setSize(Google_Service_Dfareporting_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSslCompliant($sslCompliant)
+ {
+ $this->sslCompliant = $sslCompliant;
+ }
+ public function getSslCompliant()
+ {
+ return $this->sslCompliant;
+ }
+ public function setStartTimeType($startTimeType)
+ {
+ $this->startTimeType = $startTimeType;
+ }
+ public function getStartTimeType()
+ {
+ return $this->startTimeType;
+ }
+ public function setStreamingServingUrl($streamingServingUrl)
+ {
+ $this->streamingServingUrl = $streamingServingUrl;
+ }
+ public function getStreamingServingUrl()
+ {
+ return $this->streamingServingUrl;
+ }
+ public function setTransparency($transparency)
+ {
+ $this->transparency = $transparency;
+ }
+ public function getTransparency()
+ {
+ return $this->transparency;
+ }
+ public function setVerticallyLocked($verticallyLocked)
+ {
+ $this->verticallyLocked = $verticallyLocked;
+ }
+ public function getVerticallyLocked()
+ {
+ return $this->verticallyLocked;
+ }
+ public function setVideoDuration($videoDuration)
+ {
+ $this->videoDuration = $videoDuration;
+ }
+ public function getVideoDuration()
+ {
+ return $this->videoDuration;
+ }
+ public function setWindowMode($windowMode)
+ {
+ $this->windowMode = $windowMode;
+ }
+ public function getWindowMode()
+ {
+ return $this->windowMode;
+ }
+ public function setZIndex($zIndex)
+ {
+ $this->zIndex = $zIndex;
+ }
+ public function getZIndex()
+ {
+ return $this->zIndex;
+ }
+ public function setZipFilename($zipFilename)
+ {
+ $this->zipFilename = $zipFilename;
+ }
+ public function getZipFilename()
+ {
+ return $this->zipFilename;
+ }
+ public function setZipFilesize($zipFilesize)
+ {
+ $this->zipFilesize = $zipFilesize;
+ }
+ public function getZipFilesize()
+ {
+ return $this->zipFilesize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetId.php
new file mode 100644
index 00000000..593fb02b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetId.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeAssetId extends Google_Model
+{
+ public $name;
+ public $type;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetMetadata.php
new file mode 100644
index 00000000..9ce9e146
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetMetadata.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeAssetMetadata extends Google_Collection
+{
+ protected $collection_key = 'warnedValidationRules';
+ protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId';
+ protected $assetIdentifierDataType = '';
+ protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag';
+ protected $clickTagsDataType = 'array';
+ public $detectedFeatures;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $kind;
+ public $warnedValidationRules;
+
+ public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier)
+ {
+ $this->assetIdentifier = $assetIdentifier;
+ }
+ public function getAssetIdentifier()
+ {
+ return $this->assetIdentifier;
+ }
+ public function setClickTags($clickTags)
+ {
+ $this->clickTags = $clickTags;
+ }
+ public function getClickTags()
+ {
+ return $this->clickTags;
+ }
+ public function setDetectedFeatures($detectedFeatures)
+ {
+ $this->detectedFeatures = $detectedFeatures;
+ }
+ public function getDetectedFeatures()
+ {
+ return $this->detectedFeatures;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setWarnedValidationRules($warnedValidationRules)
+ {
+ $this->warnedValidationRules = $warnedValidationRules;
+ }
+ public function getWarnedValidationRules()
+ {
+ return $this->warnedValidationRules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetSelection.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetSelection.php
new file mode 100644
index 00000000..14581ad1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssetSelection.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeAssetSelection extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ public $defaultAssetId;
+ protected $rulesType = 'Google_Service_Dfareporting_Rule';
+ protected $rulesDataType = 'array';
+
+ public function setDefaultAssetId($defaultAssetId)
+ {
+ $this->defaultAssetId = $defaultAssetId;
+ }
+ public function getDefaultAssetId()
+ {
+ return $this->defaultAssetId;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssignment.php
new file mode 100644
index 00000000..bf9c21bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeAssignment.php
@@ -0,0 +1,144 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeAssignment extends Google_Collection
+{
+ protected $collection_key = 'richMediaExitOverrides';
+ public $active;
+ public $applyEventTags;
+ protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl';
+ protected $clickThroughUrlDataType = '';
+ protected $companionCreativeOverridesType = 'Google_Service_Dfareporting_CompanionClickThroughOverride';
+ protected $companionCreativeOverridesDataType = 'array';
+ protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment';
+ protected $creativeGroupAssignmentsDataType = 'array';
+ public $creativeId;
+ protected $creativeIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $creativeIdDimensionValueDataType = '';
+ public $endTime;
+ protected $richMediaExitOverridesType = 'Google_Service_Dfareporting_RichMediaExitOverride';
+ protected $richMediaExitOverridesDataType = 'array';
+ public $sequence;
+ public $sslCompliant;
+ public $startTime;
+ public $weight;
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setApplyEventTags($applyEventTags)
+ {
+ $this->applyEventTags = $applyEventTags;
+ }
+ public function getApplyEventTags()
+ {
+ return $this->applyEventTags;
+ }
+ public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl)
+ {
+ $this->clickThroughUrl = $clickThroughUrl;
+ }
+ public function getClickThroughUrl()
+ {
+ return $this->clickThroughUrl;
+ }
+ public function setCompanionCreativeOverrides($companionCreativeOverrides)
+ {
+ $this->companionCreativeOverrides = $companionCreativeOverrides;
+ }
+ public function getCompanionCreativeOverrides()
+ {
+ return $this->companionCreativeOverrides;
+ }
+ public function setCreativeGroupAssignments($creativeGroupAssignments)
+ {
+ $this->creativeGroupAssignments = $creativeGroupAssignments;
+ }
+ public function getCreativeGroupAssignments()
+ {
+ return $this->creativeGroupAssignments;
+ }
+ public function setCreativeId($creativeId)
+ {
+ $this->creativeId = $creativeId;
+ }
+ public function getCreativeId()
+ {
+ return $this->creativeId;
+ }
+ public function setCreativeIdDimensionValue(Google_Service_Dfareporting_DimensionValue $creativeIdDimensionValue)
+ {
+ $this->creativeIdDimensionValue = $creativeIdDimensionValue;
+ }
+ public function getCreativeIdDimensionValue()
+ {
+ return $this->creativeIdDimensionValue;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setRichMediaExitOverrides($richMediaExitOverrides)
+ {
+ $this->richMediaExitOverrides = $richMediaExitOverrides;
+ }
+ public function getRichMediaExitOverrides()
+ {
+ return $this->richMediaExitOverrides;
+ }
+ public function setSequence($sequence)
+ {
+ $this->sequence = $sequence;
+ }
+ public function getSequence()
+ {
+ return $this->sequence;
+ }
+ public function setSslCompliant($sslCompliant)
+ {
+ $this->sslCompliant = $sslCompliant;
+ }
+ public function getSslCompliant()
+ {
+ return $this->sslCompliant;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setWeight($weight)
+ {
+ $this->weight = $weight;
+ }
+ public function getWeight()
+ {
+ return $this->weight;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeCustomEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeCustomEvent.php
new file mode 100644
index 00000000..3c755bac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeCustomEvent.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model
+{
+ public $advertiserCustomEventId;
+ public $advertiserCustomEventName;
+ public $advertiserCustomEventType;
+ public $artworkLabel;
+ public $artworkType;
+ public $exitUrl;
+ public $id;
+ protected $popupWindowPropertiesType = 'Google_Service_Dfareporting_PopupWindowProperties';
+ protected $popupWindowPropertiesDataType = '';
+ public $targetType;
+ public $videoReportingId;
+
+ public function setAdvertiserCustomEventId($advertiserCustomEventId)
+ {
+ $this->advertiserCustomEventId = $advertiserCustomEventId;
+ }
+ public function getAdvertiserCustomEventId()
+ {
+ return $this->advertiserCustomEventId;
+ }
+ public function setAdvertiserCustomEventName($advertiserCustomEventName)
+ {
+ $this->advertiserCustomEventName = $advertiserCustomEventName;
+ }
+ public function getAdvertiserCustomEventName()
+ {
+ return $this->advertiserCustomEventName;
+ }
+ public function setAdvertiserCustomEventType($advertiserCustomEventType)
+ {
+ $this->advertiserCustomEventType = $advertiserCustomEventType;
+ }
+ public function getAdvertiserCustomEventType()
+ {
+ return $this->advertiserCustomEventType;
+ }
+ public function setArtworkLabel($artworkLabel)
+ {
+ $this->artworkLabel = $artworkLabel;
+ }
+ public function getArtworkLabel()
+ {
+ return $this->artworkLabel;
+ }
+ public function setArtworkType($artworkType)
+ {
+ $this->artworkType = $artworkType;
+ }
+ public function getArtworkType()
+ {
+ return $this->artworkType;
+ }
+ public function setExitUrl($exitUrl)
+ {
+ $this->exitUrl = $exitUrl;
+ }
+ public function getExitUrl()
+ {
+ return $this->exitUrl;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setPopupWindowProperties(Google_Service_Dfareporting_PopupWindowProperties $popupWindowProperties)
+ {
+ $this->popupWindowProperties = $popupWindowProperties;
+ }
+ public function getPopupWindowProperties()
+ {
+ return $this->popupWindowProperties;
+ }
+ public function setTargetType($targetType)
+ {
+ $this->targetType = $targetType;
+ }
+ public function getTargetType()
+ {
+ return $this->targetType;
+ }
+ public function setVideoReportingId($videoReportingId)
+ {
+ $this->videoReportingId = $videoReportingId;
+ }
+ public function getVideoReportingId()
+ {
+ return $this->videoReportingId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeField.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeField.php
new file mode 100644
index 00000000..9a88cfa5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeField.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeField extends Google_Model
+{
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $id;
+ public $kind;
+ public $name;
+ public $subaccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldAssignment.php
new file mode 100644
index 00000000..b5b71bd2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldAssignment.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeFieldAssignment extends Google_Model
+{
+ public $creativeFieldId;
+ public $creativeFieldValueId;
+
+ public function setCreativeFieldId($creativeFieldId)
+ {
+ $this->creativeFieldId = $creativeFieldId;
+ }
+ public function getCreativeFieldId()
+ {
+ return $this->creativeFieldId;
+ }
+ public function setCreativeFieldValueId($creativeFieldValueId)
+ {
+ $this->creativeFieldValueId = $creativeFieldValueId;
+ }
+ public function getCreativeFieldValueId()
+ {
+ return $this->creativeFieldValueId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValue.php
new file mode 100644
index 00000000..e2eb6741
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValue.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeFieldValue extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $value;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValuesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValuesListResponse.php
new file mode 100644
index 00000000..6f18e338
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldValuesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeFieldValuesListResponse extends Google_Collection
+{
+ protected $collection_key = 'creativeFieldValues';
+ protected $creativeFieldValuesType = 'Google_Service_Dfareporting_CreativeFieldValue';
+ protected $creativeFieldValuesDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setCreativeFieldValues($creativeFieldValues)
+ {
+ $this->creativeFieldValues = $creativeFieldValues;
+ }
+ public function getCreativeFieldValues()
+ {
+ return $this->creativeFieldValues;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldsListResponse.php
new file mode 100644
index 00000000..90270241
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeFieldsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeFieldsListResponse extends Google_Collection
+{
+ protected $collection_key = 'creativeFields';
+ protected $creativeFieldsType = 'Google_Service_Dfareporting_CreativeField';
+ protected $creativeFieldsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setCreativeFields($creativeFields)
+ {
+ $this->creativeFields = $creativeFields;
+ }
+ public function getCreativeFields()
+ {
+ return $this->creativeFields;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroup.php
new file mode 100644
index 00000000..5dc2513f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroup.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeGroup extends Google_Model
+{
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $groupNumber;
+ public $id;
+ public $kind;
+ public $name;
+ public $subaccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setGroupNumber($groupNumber)
+ {
+ $this->groupNumber = $groupNumber;
+ }
+ public function getGroupNumber()
+ {
+ return $this->groupNumber;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupAssignment.php
new file mode 100644
index 00000000..a8ae2cc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupAssignment.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeGroupAssignment extends Google_Model
+{
+ public $creativeGroupId;
+ public $creativeGroupNumber;
+
+ public function setCreativeGroupId($creativeGroupId)
+ {
+ $this->creativeGroupId = $creativeGroupId;
+ }
+ public function getCreativeGroupId()
+ {
+ return $this->creativeGroupId;
+ }
+ public function setCreativeGroupNumber($creativeGroupNumber)
+ {
+ $this->creativeGroupNumber = $creativeGroupNumber;
+ }
+ public function getCreativeGroupNumber()
+ {
+ return $this->creativeGroupNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupsListResponse.php
new file mode 100644
index 00000000..3aec0094
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeGroupsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeGroupsListResponse extends Google_Collection
+{
+ protected $collection_key = 'creativeGroups';
+ protected $creativeGroupsType = 'Google_Service_Dfareporting_CreativeGroup';
+ protected $creativeGroupsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setCreativeGroups($creativeGroups)
+ {
+ $this->creativeGroups = $creativeGroups;
+ }
+ public function getCreativeGroups()
+ {
+ return $this->creativeGroups;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeOptimizationConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeOptimizationConfiguration.php
new file mode 100644
index 00000000..b573e93d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeOptimizationConfiguration.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeOptimizationConfiguration extends Google_Collection
+{
+ protected $collection_key = 'optimizationActivitys';
+ public $id;
+ public $name;
+ protected $optimizationActivitysType = 'Google_Service_Dfareporting_OptimizationActivity';
+ protected $optimizationActivitysDataType = 'array';
+ public $optimizationModel;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptimizationActivitys($optimizationActivitys)
+ {
+ $this->optimizationActivitys = $optimizationActivitys;
+ }
+ public function getOptimizationActivitys()
+ {
+ return $this->optimizationActivitys;
+ }
+ public function setOptimizationModel($optimizationModel)
+ {
+ $this->optimizationModel = $optimizationModel;
+ }
+ public function getOptimizationModel()
+ {
+ return $this->optimizationModel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeRotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeRotation.php
new file mode 100644
index 00000000..61e12e6e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeRotation.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeRotation extends Google_Collection
+{
+ protected $collection_key = 'creativeAssignments';
+ protected $creativeAssignmentsType = 'Google_Service_Dfareporting_CreativeAssignment';
+ protected $creativeAssignmentsDataType = 'array';
+ public $creativeOptimizationConfigurationId;
+ public $type;
+ public $weightCalculationStrategy;
+
+ public function setCreativeAssignments($creativeAssignments)
+ {
+ $this->creativeAssignments = $creativeAssignments;
+ }
+ public function getCreativeAssignments()
+ {
+ return $this->creativeAssignments;
+ }
+ public function setCreativeOptimizationConfigurationId($creativeOptimizationConfigurationId)
+ {
+ $this->creativeOptimizationConfigurationId = $creativeOptimizationConfigurationId;
+ }
+ public function getCreativeOptimizationConfigurationId()
+ {
+ return $this->creativeOptimizationConfigurationId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setWeightCalculationStrategy($weightCalculationStrategy)
+ {
+ $this->weightCalculationStrategy = $weightCalculationStrategy;
+ }
+ public function getWeightCalculationStrategy()
+ {
+ return $this->weightCalculationStrategy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeSettings.php
new file mode 100644
index 00000000..c9535f84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativeSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativeSettings extends Google_Model
+{
+ public $iFrameFooter;
+ public $iFrameHeader;
+
+ public function setIFrameFooter($iFrameFooter)
+ {
+ $this->iFrameFooter = $iFrameFooter;
+ }
+ public function getIFrameFooter()
+ {
+ return $this->iFrameFooter;
+ }
+ public function setIFrameHeader($iFrameHeader)
+ {
+ $this->iFrameHeader = $iFrameHeader;
+ }
+ public function getIFrameHeader()
+ {
+ return $this->iFrameHeader;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativesListResponse.php
new file mode 100644
index 00000000..10cfce90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CreativesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CreativesListResponse extends Google_Collection
+{
+ protected $collection_key = 'creatives';
+ protected $creativesType = 'Google_Service_Dfareporting_Creative';
+ protected $creativesDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setCreatives($creatives)
+ {
+ $this->creatives = $creatives;
+ }
+ public function getCreatives()
+ {
+ return $this->creatives;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CrossDimensionReachReportCompatibleFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CrossDimensionReachReportCompatibleFields.php
new file mode 100644
index 00000000..66675717
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CrossDimensionReachReportCompatibleFields.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection
+{
+ protected $collection_key = 'overlapMetrics';
+ protected $breakdownType = 'Google_Service_Dfareporting_Dimension';
+ protected $breakdownDataType = 'array';
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionFiltersDataType = 'array';
+ public $kind;
+ protected $metricsType = 'Google_Service_Dfareporting_Metric';
+ protected $metricsDataType = 'array';
+ protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric';
+ protected $overlapMetricsDataType = 'array';
+
+ public function setBreakdown($breakdown)
+ {
+ $this->breakdown = $breakdown;
+ }
+ public function getBreakdown()
+ {
+ return $this->breakdown;
+ }
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setOverlapMetrics($overlapMetrics)
+ {
+ $this->overlapMetrics = $overlapMetrics;
+ }
+ public function getOverlapMetrics()
+ {
+ return $this->overlapMetrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomFloodlightVariable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomFloodlightVariable.php
new file mode 100644
index 00000000..6e7bb7d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomFloodlightVariable.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CustomFloodlightVariable extends Google_Model
+{
+ public $kind;
+ public $type;
+ public $value;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomRichMediaEvents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomRichMediaEvents.php
new file mode 100644
index 00000000..26801149
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/CustomRichMediaEvents.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection
+{
+ protected $collection_key = 'filteredEventIds';
+ protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $filteredEventIdsDataType = 'array';
+ public $kind;
+
+ public function setFilteredEventIds($filteredEventIds)
+ {
+ $this->filteredEventIds = $filteredEventIds;
+ }
+ public function getFilteredEventIds()
+ {
+ return $this->filteredEventIds;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DateRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DateRange.php
new file mode 100644
index 00000000..7aceccb7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DateRange.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DateRange extends Google_Model
+{
+ public $endDate;
+ public $kind;
+ public $relativeDateRange;
+ public $startDate;
+
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRelativeDateRange($relativeDateRange)
+ {
+ $this->relativeDateRange = $relativeDateRange;
+ }
+ public function getRelativeDateRange()
+ {
+ return $this->relativeDateRange;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DayPartTargeting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DayPartTargeting.php
new file mode 100644
index 00000000..122a7dd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DayPartTargeting.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DayPartTargeting extends Google_Collection
+{
+ protected $collection_key = 'hoursOfDay';
+ public $daysOfWeek;
+ public $hoursOfDay;
+ public $userLocalTime;
+
+ public function setDaysOfWeek($daysOfWeek)
+ {
+ $this->daysOfWeek = $daysOfWeek;
+ }
+ public function getDaysOfWeek()
+ {
+ return $this->daysOfWeek;
+ }
+ public function setHoursOfDay($hoursOfDay)
+ {
+ $this->hoursOfDay = $hoursOfDay;
+ }
+ public function getHoursOfDay()
+ {
+ return $this->hoursOfDay;
+ }
+ public function setUserLocalTime($userLocalTime)
+ {
+ $this->userLocalTime = $userLocalTime;
+ }
+ public function getUserLocalTime()
+ {
+ return $this->userLocalTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DefaultClickThroughEventTagProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DefaultClickThroughEventTagProperties.php
new file mode 100644
index 00000000..fd54dfad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DefaultClickThroughEventTagProperties.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DefaultClickThroughEventTagProperties extends Google_Model
+{
+ public $defaultClickThroughEventTagId;
+ public $overrideInheritedEventTag;
+
+ public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId)
+ {
+ $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId;
+ }
+ public function getDefaultClickThroughEventTagId()
+ {
+ return $this->defaultClickThroughEventTagId;
+ }
+ public function setOverrideInheritedEventTag($overrideInheritedEventTag)
+ {
+ $this->overrideInheritedEventTag = $overrideInheritedEventTag;
+ }
+ public function getOverrideInheritedEventTag()
+ {
+ return $this->overrideInheritedEventTag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DeliverySchedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DeliverySchedule.php
new file mode 100644
index 00000000..8ae4dde9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DeliverySchedule.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DeliverySchedule extends Google_Model
+{
+ protected $frequencyCapType = 'Google_Service_Dfareporting_FrequencyCap';
+ protected $frequencyCapDataType = '';
+ public $hardCutoff;
+ public $impressionRatio;
+ public $priority;
+
+ public function setFrequencyCap(Google_Service_Dfareporting_FrequencyCap $frequencyCap)
+ {
+ $this->frequencyCap = $frequencyCap;
+ }
+ public function getFrequencyCap()
+ {
+ return $this->frequencyCap;
+ }
+ public function setHardCutoff($hardCutoff)
+ {
+ $this->hardCutoff = $hardCutoff;
+ }
+ public function getHardCutoff()
+ {
+ return $this->hardCutoff;
+ }
+ public function setImpressionRatio($impressionRatio)
+ {
+ $this->impressionRatio = $impressionRatio;
+ }
+ public function getImpressionRatio()
+ {
+ return $this->impressionRatio;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFile.php
new file mode 100644
index 00000000..f8715a3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFile.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DfareportingFile extends Google_Model
+{
+ protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $dateRangeDataType = '';
+ public $etag;
+ public $fileName;
+ public $format;
+ public $id;
+ public $kind;
+ public $lastModifiedTime;
+ public $reportId;
+ public $status;
+ protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls';
+ protected $urlsDataType = '';
+
+ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
+ {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange()
+ {
+ return $this->dateRange;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedTime($lastModifiedTime)
+ {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime()
+ {
+ return $this->lastModifiedTime;
+ }
+ public function setReportId($reportId)
+ {
+ $this->reportId = $reportId;
+ }
+ public function getReportId()
+ {
+ return $this->reportId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUrls(Google_Service_Dfareporting_DfareportingFileUrls $urls)
+ {
+ $this->urls = $urls;
+ }
+ public function getUrls()
+ {
+ return $this->urls;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFileUrls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFileUrls.php
new file mode 100644
index 00000000..5a293820
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfareportingFileUrls.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model
+{
+ public $apiUrl;
+ public $browserUrl;
+
+ public function setApiUrl($apiUrl)
+ {
+ $this->apiUrl = $apiUrl;
+ }
+ public function getApiUrl()
+ {
+ return $this->apiUrl;
+ }
+ public function setBrowserUrl($browserUrl)
+ {
+ $this->browserUrl = $browserUrl;
+ }
+ public function getBrowserUrl()
+ {
+ return $this->browserUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfpSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfpSettings.php
new file mode 100644
index 00000000..06ff5b6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DfpSettings.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DfpSettings extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "dfpNetworkCode" => "dfp_network_code",
+ "dfpNetworkName" => "dfp_network_name",
+ );
+ public $dfpNetworkCode;
+ public $dfpNetworkName;
+ public $programmaticPlacementAccepted;
+ public $pubPaidPlacementAccepted;
+ public $publisherPortalOnly;
+
+ public function setDfpNetworkCode($dfpNetworkCode)
+ {
+ $this->dfpNetworkCode = $dfpNetworkCode;
+ }
+ public function getDfpNetworkCode()
+ {
+ return $this->dfpNetworkCode;
+ }
+ public function setDfpNetworkName($dfpNetworkName)
+ {
+ $this->dfpNetworkName = $dfpNetworkName;
+ }
+ public function getDfpNetworkName()
+ {
+ return $this->dfpNetworkName;
+ }
+ public function setProgrammaticPlacementAccepted($programmaticPlacementAccepted)
+ {
+ $this->programmaticPlacementAccepted = $programmaticPlacementAccepted;
+ }
+ public function getProgrammaticPlacementAccepted()
+ {
+ return $this->programmaticPlacementAccepted;
+ }
+ public function setPubPaidPlacementAccepted($pubPaidPlacementAccepted)
+ {
+ $this->pubPaidPlacementAccepted = $pubPaidPlacementAccepted;
+ }
+ public function getPubPaidPlacementAccepted()
+ {
+ return $this->pubPaidPlacementAccepted;
+ }
+ public function setPublisherPortalOnly($publisherPortalOnly)
+ {
+ $this->publisherPortalOnly = $publisherPortalOnly;
+ }
+ public function getPublisherPortalOnly()
+ {
+ return $this->publisherPortalOnly;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Dimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Dimension.php
new file mode 100644
index 00000000..74ce2a92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Dimension.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Dimension extends Google_Model
+{
+ public $kind;
+ public $name;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionFilter.php
new file mode 100644
index 00000000..5d19b820
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionFilter.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DimensionFilter extends Google_Model
+{
+ public $dimensionName;
+ public $kind;
+ public $value;
+
+ public function setDimensionName($dimensionName)
+ {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName()
+ {
+ return $this->dimensionName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValue.php
new file mode 100644
index 00000000..c02b6df8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValue.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DimensionValue extends Google_Model
+{
+ public $dimensionName;
+ public $etag;
+ public $id;
+ public $kind;
+ public $matchType;
+ public $value;
+
+ public function setDimensionName($dimensionName)
+ {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName()
+ {
+ return $this->dimensionName;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMatchType($matchType)
+ {
+ $this->matchType = $matchType;
+ }
+ public function getMatchType()
+ {
+ return $this->matchType;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueList.php
new file mode 100644
index 00000000..473c5e5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DimensionValueList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueRequest.php
new file mode 100644
index 00000000..5a4dcc0f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DimensionValueRequest.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection
+{
+ protected $collection_key = 'filters';
+ public $dimensionName;
+ public $endDate;
+ protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter';
+ protected $filtersDataType = 'array';
+ public $kind;
+ public $startDate;
+
+ public function setDimensionName($dimensionName)
+ {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName()
+ {
+ return $this->dimensionName;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php
new file mode 100644
index 00000000..06505841
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySite.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DirectorySite extends Google_Collection
+{
+ protected $collection_key = 'interstitialTagFormats';
+ public $active;
+ protected $contactAssignmentsType = 'Google_Service_Dfareporting_DirectorySiteContactAssignment';
+ protected $contactAssignmentsDataType = 'array';
+ public $countryId;
+ public $currencyId;
+ public $description;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $inpageTagFormats;
+ public $interstitialTagFormats;
+ public $kind;
+ public $name;
+ public $parentId;
+ protected $settingsType = 'Google_Service_Dfareporting_DirectorySiteSettings';
+ protected $settingsDataType = '';
+ public $url;
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setContactAssignments($contactAssignments)
+ {
+ $this->contactAssignments = $contactAssignments;
+ }
+ public function getContactAssignments()
+ {
+ return $this->contactAssignments;
+ }
+ public function setCountryId($countryId)
+ {
+ $this->countryId = $countryId;
+ }
+ public function getCountryId()
+ {
+ return $this->countryId;
+ }
+ public function setCurrencyId($currencyId)
+ {
+ $this->currencyId = $currencyId;
+ }
+ public function getCurrencyId()
+ {
+ return $this->currencyId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setInpageTagFormats($inpageTagFormats)
+ {
+ $this->inpageTagFormats = $inpageTagFormats;
+ }
+ public function getInpageTagFormats()
+ {
+ return $this->inpageTagFormats;
+ }
+ public function setInterstitialTagFormats($interstitialTagFormats)
+ {
+ $this->interstitialTagFormats = $interstitialTagFormats;
+ }
+ public function getInterstitialTagFormats()
+ {
+ return $this->interstitialTagFormats;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentId($parentId)
+ {
+ $this->parentId = $parentId;
+ }
+ public function getParentId()
+ {
+ return $this->parentId;
+ }
+ public function setSettings(Google_Service_Dfareporting_DirectorySiteSettings $settings)
+ {
+ $this->settings = $settings;
+ }
+ public function getSettings()
+ {
+ return $this->settings;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContact.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContact.php
new file mode 100644
index 00000000..bf9851c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContact.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model
+{
+ public $address;
+ public $email;
+ public $firstName;
+ public $id;
+ public $kind;
+ public $lastName;
+ public $phone;
+ public $role;
+ public $title;
+ public $type;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setFirstName($firstName)
+ {
+ $this->firstName = $firstName;
+ }
+ public function getFirstName()
+ {
+ return $this->firstName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastName($lastName)
+ {
+ $this->lastName = $lastName;
+ }
+ public function getLastName()
+ {
+ return $this->lastName;
+ }
+ public function setPhone($phone)
+ {
+ $this->phone = $phone;
+ }
+ public function getPhone()
+ {
+ return $this->phone;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactAssignment.php
new file mode 100644
index 00000000..d0072b2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactAssignment.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DirectorySiteContactAssignment extends Google_Model
+{
+ public $contactId;
+ public $visibility;
+
+ public function setContactId($contactId)
+ {
+ $this->contactId = $contactId;
+ }
+ public function getContactId()
+ {
+ return $this->contactId;
+ }
+ public function setVisibility($visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactsListResponse.php
new file mode 100644
index 00000000..d7cbdd8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteContactsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Google_Collection
+{
+ protected $collection_key = 'directorySiteContacts';
+ protected $directorySiteContactsType = 'Google_Service_Dfareporting_DirectorySiteContact';
+ protected $directorySiteContactsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setDirectorySiteContacts($directorySiteContacts)
+ {
+ $this->directorySiteContacts = $directorySiteContacts;
+ }
+ public function getDirectorySiteContacts()
+ {
+ return $this->directorySiteContacts;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php
new file mode 100644
index 00000000..6fb0da5a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySiteSettings.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DirectorySiteSettings extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "dfpSettings" => "dfp_settings",
+ "instreamVideoPlacementAccepted" => "instream_video_placement_accepted",
+ );
+ public $activeViewOptOut;
+ protected $dfpSettingsType = 'Google_Service_Dfareporting_DfpSettings';
+ protected $dfpSettingsDataType = '';
+ public $instreamVideoPlacementAccepted;
+ public $interstitialPlacementAccepted;
+ public $nielsenOcrOptOut;
+ public $verificationTagOptOut;
+ public $videoActiveViewOptOut;
+
+ public function setActiveViewOptOut($activeViewOptOut)
+ {
+ $this->activeViewOptOut = $activeViewOptOut;
+ }
+ public function getActiveViewOptOut()
+ {
+ return $this->activeViewOptOut;
+ }
+ public function setDfpSettings(Google_Service_Dfareporting_DfpSettings $dfpSettings)
+ {
+ $this->dfpSettings = $dfpSettings;
+ }
+ public function getDfpSettings()
+ {
+ return $this->dfpSettings;
+ }
+ public function setInstreamVideoPlacementAccepted($instreamVideoPlacementAccepted)
+ {
+ $this->instreamVideoPlacementAccepted = $instreamVideoPlacementAccepted;
+ }
+ public function getInstreamVideoPlacementAccepted()
+ {
+ return $this->instreamVideoPlacementAccepted;
+ }
+ public function setInterstitialPlacementAccepted($interstitialPlacementAccepted)
+ {
+ $this->interstitialPlacementAccepted = $interstitialPlacementAccepted;
+ }
+ public function getInterstitialPlacementAccepted()
+ {
+ return $this->interstitialPlacementAccepted;
+ }
+ public function setNielsenOcrOptOut($nielsenOcrOptOut)
+ {
+ $this->nielsenOcrOptOut = $nielsenOcrOptOut;
+ }
+ public function getNielsenOcrOptOut()
+ {
+ return $this->nielsenOcrOptOut;
+ }
+ public function setVerificationTagOptOut($verificationTagOptOut)
+ {
+ $this->verificationTagOptOut = $verificationTagOptOut;
+ }
+ public function getVerificationTagOptOut()
+ {
+ return $this->verificationTagOptOut;
+ }
+ public function setVideoActiveViewOptOut($videoActiveViewOptOut)
+ {
+ $this->videoActiveViewOptOut = $videoActiveViewOptOut;
+ }
+ public function getVideoActiveViewOptOut()
+ {
+ return $this->videoActiveViewOptOut;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySitesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySitesListResponse.php
new file mode 100644
index 00000000..89990085
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DirectorySitesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DirectorySitesListResponse extends Google_Collection
+{
+ protected $collection_key = 'directorySites';
+ protected $directorySitesType = 'Google_Service_Dfareporting_DirectorySite';
+ protected $directorySitesDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setDirectorySites($directorySites)
+ {
+ $this->directorySites = $directorySites;
+ }
+ public function getDirectorySites()
+ {
+ return $this->directorySites;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKey.php
new file mode 100644
index 00000000..c29d347b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKey.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DynamicTargetingKey extends Google_Model
+{
+ public $kind;
+ public $name;
+ public $objectId;
+ public $objectType;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKeysListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKeysListResponse.php
new file mode 100644
index 00000000..f38295f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/DynamicTargetingKeysListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_DynamicTargetingKeysListResponse extends Google_Collection
+{
+ protected $collection_key = 'dynamicTargetingKeys';
+ protected $dynamicTargetingKeysType = 'Google_Service_Dfareporting_DynamicTargetingKey';
+ protected $dynamicTargetingKeysDataType = 'array';
+ public $kind;
+
+ public function setDynamicTargetingKeys($dynamicTargetingKeys)
+ {
+ $this->dynamicTargetingKeys = $dynamicTargetingKeys;
+ }
+ public function getDynamicTargetingKeys()
+ {
+ return $this->dynamicTargetingKeys;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EncryptionInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EncryptionInfo.php
new file mode 100644
index 00000000..c1bccd19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EncryptionInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_EncryptionInfo extends Google_Model
+{
+ public $encryptionEntityId;
+ public $encryptionEntityType;
+ public $encryptionSource;
+ public $kind;
+
+ public function setEncryptionEntityId($encryptionEntityId)
+ {
+ $this->encryptionEntityId = $encryptionEntityId;
+ }
+ public function getEncryptionEntityId()
+ {
+ return $this->encryptionEntityId;
+ }
+ public function setEncryptionEntityType($encryptionEntityType)
+ {
+ $this->encryptionEntityType = $encryptionEntityType;
+ }
+ public function getEncryptionEntityType()
+ {
+ return $this->encryptionEntityType;
+ }
+ public function setEncryptionSource($encryptionSource)
+ {
+ $this->encryptionSource = $encryptionSource;
+ }
+ public function getEncryptionSource()
+ {
+ return $this->encryptionSource;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTag.php
new file mode 100644
index 00000000..a08a7ba8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTag.php
@@ -0,0 +1,186 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_EventTag extends Google_Collection
+{
+ protected $collection_key = 'siteIds';
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $campaignId;
+ protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $campaignIdDimensionValueDataType = '';
+ public $enabledByDefault;
+ public $excludeFromAdxRequests;
+ public $id;
+ public $kind;
+ public $name;
+ public $siteFilterType;
+ public $siteIds;
+ public $sslCompliant;
+ public $status;
+ public $subaccountId;
+ public $type;
+ public $url;
+ public $urlEscapeLevels;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setCampaignId($campaignId)
+ {
+ $this->campaignId = $campaignId;
+ }
+ public function getCampaignId()
+ {
+ return $this->campaignId;
+ }
+ public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue)
+ {
+ $this->campaignIdDimensionValue = $campaignIdDimensionValue;
+ }
+ public function getCampaignIdDimensionValue()
+ {
+ return $this->campaignIdDimensionValue;
+ }
+ public function setEnabledByDefault($enabledByDefault)
+ {
+ $this->enabledByDefault = $enabledByDefault;
+ }
+ public function getEnabledByDefault()
+ {
+ return $this->enabledByDefault;
+ }
+ public function setExcludeFromAdxRequests($excludeFromAdxRequests)
+ {
+ $this->excludeFromAdxRequests = $excludeFromAdxRequests;
+ }
+ public function getExcludeFromAdxRequests()
+ {
+ return $this->excludeFromAdxRequests;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSiteFilterType($siteFilterType)
+ {
+ $this->siteFilterType = $siteFilterType;
+ }
+ public function getSiteFilterType()
+ {
+ return $this->siteFilterType;
+ }
+ public function setSiteIds($siteIds)
+ {
+ $this->siteIds = $siteIds;
+ }
+ public function getSiteIds()
+ {
+ return $this->siteIds;
+ }
+ public function setSslCompliant($sslCompliant)
+ {
+ $this->sslCompliant = $sslCompliant;
+ }
+ public function getSslCompliant()
+ {
+ return $this->sslCompliant;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setUrlEscapeLevels($urlEscapeLevels)
+ {
+ $this->urlEscapeLevels = $urlEscapeLevels;
+ }
+ public function getUrlEscapeLevels()
+ {
+ return $this->urlEscapeLevels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagOverride.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagOverride.php
new file mode 100644
index 00000000..d2d4a501
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagOverride.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_EventTagOverride extends Google_Model
+{
+ public $enabled;
+ public $id;
+
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagsListResponse.php
new file mode 100644
index 00000000..bae72d7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/EventTagsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_EventTagsListResponse extends Google_Collection
+{
+ protected $collection_key = 'eventTags';
+ protected $eventTagsType = 'Google_Service_Dfareporting_EventTag';
+ protected $eventTagsDataType = 'array';
+ public $kind;
+
+ public function setEventTags($eventTags)
+ {
+ $this->eventTags = $eventTags;
+ }
+ public function getEventTags()
+ {
+ return $this->eventTags;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FileList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FileList.php
new file mode 100644
index 00000000..b4fab4e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FileList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FileList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Flight.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Flight.php
new file mode 100644
index 00000000..ec0ff945
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Flight.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Flight extends Google_Model
+{
+ public $endDate;
+ public $rateOrCost;
+ public $startDate;
+ public $units;
+
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setRateOrCost($rateOrCost)
+ {
+ $this->rateOrCost = $rateOrCost;
+ }
+ public function getRateOrCost()
+ {
+ return $this->rateOrCost;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setUnits($units)
+ {
+ $this->units = $units;
+ }
+ public function getUnits()
+ {
+ return $this->units;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesGenerateTagResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesGenerateTagResponse.php
new file mode 100644
index 00000000..c0ad645f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesGenerateTagResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse extends Google_Model
+{
+ public $floodlightActivityTag;
+ public $kind;
+
+ public function setFloodlightActivityTag($floodlightActivityTag)
+ {
+ $this->floodlightActivityTag = $floodlightActivityTag;
+ }
+ public function getFloodlightActivityTag()
+ {
+ return $this->floodlightActivityTag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesListResponse.php
new file mode 100644
index 00000000..12ff2c83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivitiesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightActivitiesListResponse extends Google_Collection
+{
+ protected $collection_key = 'floodlightActivities';
+ protected $floodlightActivitiesType = 'Google_Service_Dfareporting_FloodlightActivity';
+ protected $floodlightActivitiesDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setFloodlightActivities($floodlightActivities)
+ {
+ $this->floodlightActivities = $floodlightActivities;
+ }
+ public function getFloodlightActivities()
+ {
+ return $this->floodlightActivities;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivity.php
new file mode 100644
index 00000000..4be8d151
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivity.php
@@ -0,0 +1,279 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightActivity extends Google_Collection
+{
+ protected $collection_key = 'userDefinedVariableTypes';
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $cacheBustingType;
+ public $countingMethod;
+ protected $defaultTagsType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag';
+ protected $defaultTagsDataType = 'array';
+ public $expectedUrl;
+ public $floodlightActivityGroupId;
+ public $floodlightActivityGroupName;
+ public $floodlightActivityGroupTagString;
+ public $floodlightActivityGroupType;
+ public $floodlightConfigurationId;
+ protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $floodlightConfigurationIdDimensionValueDataType = '';
+ public $hidden;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $imageTagEnabled;
+ public $kind;
+ public $name;
+ public $notes;
+ protected $publisherTagsType = 'Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag';
+ protected $publisherTagsDataType = 'array';
+ public $secure;
+ public $sslCompliant;
+ public $sslRequired;
+ public $subaccountId;
+ public $tagFormat;
+ public $tagString;
+ public $userDefinedVariableTypes;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setCacheBustingType($cacheBustingType)
+ {
+ $this->cacheBustingType = $cacheBustingType;
+ }
+ public function getCacheBustingType()
+ {
+ return $this->cacheBustingType;
+ }
+ public function setCountingMethod($countingMethod)
+ {
+ $this->countingMethod = $countingMethod;
+ }
+ public function getCountingMethod()
+ {
+ return $this->countingMethod;
+ }
+ public function setDefaultTags($defaultTags)
+ {
+ $this->defaultTags = $defaultTags;
+ }
+ public function getDefaultTags()
+ {
+ return $this->defaultTags;
+ }
+ public function setExpectedUrl($expectedUrl)
+ {
+ $this->expectedUrl = $expectedUrl;
+ }
+ public function getExpectedUrl()
+ {
+ return $this->expectedUrl;
+ }
+ public function setFloodlightActivityGroupId($floodlightActivityGroupId)
+ {
+ $this->floodlightActivityGroupId = $floodlightActivityGroupId;
+ }
+ public function getFloodlightActivityGroupId()
+ {
+ return $this->floodlightActivityGroupId;
+ }
+ public function setFloodlightActivityGroupName($floodlightActivityGroupName)
+ {
+ $this->floodlightActivityGroupName = $floodlightActivityGroupName;
+ }
+ public function getFloodlightActivityGroupName()
+ {
+ return $this->floodlightActivityGroupName;
+ }
+ public function setFloodlightActivityGroupTagString($floodlightActivityGroupTagString)
+ {
+ $this->floodlightActivityGroupTagString = $floodlightActivityGroupTagString;
+ }
+ public function getFloodlightActivityGroupTagString()
+ {
+ return $this->floodlightActivityGroupTagString;
+ }
+ public function setFloodlightActivityGroupType($floodlightActivityGroupType)
+ {
+ $this->floodlightActivityGroupType = $floodlightActivityGroupType;
+ }
+ public function getFloodlightActivityGroupType()
+ {
+ return $this->floodlightActivityGroupType;
+ }
+ public function setFloodlightConfigurationId($floodlightConfigurationId)
+ {
+ $this->floodlightConfigurationId = $floodlightConfigurationId;
+ }
+ public function getFloodlightConfigurationId()
+ {
+ return $this->floodlightConfigurationId;
+ }
+ public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue)
+ {
+ $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue;
+ }
+ public function getFloodlightConfigurationIdDimensionValue()
+ {
+ return $this->floodlightConfigurationIdDimensionValue;
+ }
+ public function setHidden($hidden)
+ {
+ $this->hidden = $hidden;
+ }
+ public function getHidden()
+ {
+ return $this->hidden;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setImageTagEnabled($imageTagEnabled)
+ {
+ $this->imageTagEnabled = $imageTagEnabled;
+ }
+ public function getImageTagEnabled()
+ {
+ return $this->imageTagEnabled;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setPublisherTags($publisherTags)
+ {
+ $this->publisherTags = $publisherTags;
+ }
+ public function getPublisherTags()
+ {
+ return $this->publisherTags;
+ }
+ public function setSecure($secure)
+ {
+ $this->secure = $secure;
+ }
+ public function getSecure()
+ {
+ return $this->secure;
+ }
+ public function setSslCompliant($sslCompliant)
+ {
+ $this->sslCompliant = $sslCompliant;
+ }
+ public function getSslCompliant()
+ {
+ return $this->sslCompliant;
+ }
+ public function setSslRequired($sslRequired)
+ {
+ $this->sslRequired = $sslRequired;
+ }
+ public function getSslRequired()
+ {
+ return $this->sslRequired;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTagFormat($tagFormat)
+ {
+ $this->tagFormat = $tagFormat;
+ }
+ public function getTagFormat()
+ {
+ return $this->tagFormat;
+ }
+ public function setTagString($tagString)
+ {
+ $this->tagString = $tagString;
+ }
+ public function getTagString()
+ {
+ return $this->tagString;
+ }
+ public function setUserDefinedVariableTypes($userDefinedVariableTypes)
+ {
+ $this->userDefinedVariableTypes = $userDefinedVariableTypes;
+ }
+ public function getUserDefinedVariableTypes()
+ {
+ return $this->userDefinedVariableTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityDynamicTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityDynamicTag.php
new file mode 100644
index 00000000..0235ca3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityDynamicTag.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightActivityDynamicTag extends Google_Model
+{
+ public $id;
+ public $name;
+ public $tag;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroup.php
new file mode 100644
index 00000000..5d4fdbe6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroup.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightActivityGroup extends Google_Model
+{
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $floodlightConfigurationId;
+ protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $floodlightConfigurationIdDimensionValueDataType = '';
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $kind;
+ public $name;
+ public $subaccountId;
+ public $tagString;
+ public $type;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setFloodlightConfigurationId($floodlightConfigurationId)
+ {
+ $this->floodlightConfigurationId = $floodlightConfigurationId;
+ }
+ public function getFloodlightConfigurationId()
+ {
+ return $this->floodlightConfigurationId;
+ }
+ public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue)
+ {
+ $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue;
+ }
+ public function getFloodlightConfigurationIdDimensionValue()
+ {
+ return $this->floodlightConfigurationIdDimensionValue;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTagString($tagString)
+ {
+ $this->tagString = $tagString;
+ }
+ public function getTagString()
+ {
+ return $this->tagString;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroupsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroupsListResponse.php
new file mode 100644
index 00000000..82def03b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityGroupsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightActivityGroupsListResponse extends Google_Collection
+{
+ protected $collection_key = 'floodlightActivityGroups';
+ protected $floodlightActivityGroupsType = 'Google_Service_Dfareporting_FloodlightActivityGroup';
+ protected $floodlightActivityGroupsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setFloodlightActivityGroups($floodlightActivityGroups)
+ {
+ $this->floodlightActivityGroups = $floodlightActivityGroups;
+ }
+ public function getFloodlightActivityGroups()
+ {
+ return $this->floodlightActivityGroups;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityPublisherDynamicTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityPublisherDynamicTag.php
new file mode 100644
index 00000000..032b96fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightActivityPublisherDynamicTag.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag extends Google_Model
+{
+ public $clickThrough;
+ public $directorySiteId;
+ protected $dynamicTagType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag';
+ protected $dynamicTagDataType = '';
+ public $siteId;
+ protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $siteIdDimensionValueDataType = '';
+ public $viewThrough;
+
+ public function setClickThrough($clickThrough)
+ {
+ $this->clickThrough = $clickThrough;
+ }
+ public function getClickThrough()
+ {
+ return $this->clickThrough;
+ }
+ public function setDirectorySiteId($directorySiteId)
+ {
+ $this->directorySiteId = $directorySiteId;
+ }
+ public function getDirectorySiteId()
+ {
+ return $this->directorySiteId;
+ }
+ public function setDynamicTag(Google_Service_Dfareporting_FloodlightActivityDynamicTag $dynamicTag)
+ {
+ $this->dynamicTag = $dynamicTag;
+ }
+ public function getDynamicTag()
+ {
+ return $this->dynamicTag;
+ }
+ public function setSiteId($siteId)
+ {
+ $this->siteId = $siteId;
+ }
+ public function getSiteId()
+ {
+ return $this->siteId;
+ }
+ public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue)
+ {
+ $this->siteIdDimensionValue = $siteIdDimensionValue;
+ }
+ public function getSiteIdDimensionValue()
+ {
+ return $this->siteIdDimensionValue;
+ }
+ public function setViewThrough($viewThrough)
+ {
+ $this->viewThrough = $viewThrough;
+ }
+ public function getViewThrough()
+ {
+ return $this->viewThrough;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php
new file mode 100644
index 00000000..b923bd2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfiguration.php
@@ -0,0 +1,191 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collection
+{
+ protected $collection_key = 'userDefinedVariableConfigurations';
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $analyticsDataSharingEnabled;
+ public $exposureToConversionEnabled;
+ public $firstDayOfWeek;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $inAppAttributionTrackingEnabled;
+ public $kind;
+ protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration';
+ protected $lookbackConfigurationDataType = '';
+ public $naturalSearchConversionAttributionOption;
+ protected $omnitureSettingsType = 'Google_Service_Dfareporting_OmnitureSettings';
+ protected $omnitureSettingsDataType = '';
+ public $standardVariableTypes;
+ public $subaccountId;
+ protected $tagSettingsType = 'Google_Service_Dfareporting_TagSettings';
+ protected $tagSettingsDataType = '';
+ protected $thirdPartyAuthenticationTokensType = 'Google_Service_Dfareporting_ThirdPartyAuthenticationToken';
+ protected $thirdPartyAuthenticationTokensDataType = 'array';
+ protected $userDefinedVariableConfigurationsType = 'Google_Service_Dfareporting_UserDefinedVariableConfiguration';
+ protected $userDefinedVariableConfigurationsDataType = 'array';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setAnalyticsDataSharingEnabled($analyticsDataSharingEnabled)
+ {
+ $this->analyticsDataSharingEnabled = $analyticsDataSharingEnabled;
+ }
+ public function getAnalyticsDataSharingEnabled()
+ {
+ return $this->analyticsDataSharingEnabled;
+ }
+ public function setExposureToConversionEnabled($exposureToConversionEnabled)
+ {
+ $this->exposureToConversionEnabled = $exposureToConversionEnabled;
+ }
+ public function getExposureToConversionEnabled()
+ {
+ return $this->exposureToConversionEnabled;
+ }
+ public function setFirstDayOfWeek($firstDayOfWeek)
+ {
+ $this->firstDayOfWeek = $firstDayOfWeek;
+ }
+ public function getFirstDayOfWeek()
+ {
+ return $this->firstDayOfWeek;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setInAppAttributionTrackingEnabled($inAppAttributionTrackingEnabled)
+ {
+ $this->inAppAttributionTrackingEnabled = $inAppAttributionTrackingEnabled;
+ }
+ public function getInAppAttributionTrackingEnabled()
+ {
+ return $this->inAppAttributionTrackingEnabled;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration)
+ {
+ $this->lookbackConfiguration = $lookbackConfiguration;
+ }
+ public function getLookbackConfiguration()
+ {
+ return $this->lookbackConfiguration;
+ }
+ public function setNaturalSearchConversionAttributionOption($naturalSearchConversionAttributionOption)
+ {
+ $this->naturalSearchConversionAttributionOption = $naturalSearchConversionAttributionOption;
+ }
+ public function getNaturalSearchConversionAttributionOption()
+ {
+ return $this->naturalSearchConversionAttributionOption;
+ }
+ public function setOmnitureSettings(Google_Service_Dfareporting_OmnitureSettings $omnitureSettings)
+ {
+ $this->omnitureSettings = $omnitureSettings;
+ }
+ public function getOmnitureSettings()
+ {
+ return $this->omnitureSettings;
+ }
+ public function setStandardVariableTypes($standardVariableTypes)
+ {
+ $this->standardVariableTypes = $standardVariableTypes;
+ }
+ public function getStandardVariableTypes()
+ {
+ return $this->standardVariableTypes;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTagSettings(Google_Service_Dfareporting_TagSettings $tagSettings)
+ {
+ $this->tagSettings = $tagSettings;
+ }
+ public function getTagSettings()
+ {
+ return $this->tagSettings;
+ }
+ public function setThirdPartyAuthenticationTokens($thirdPartyAuthenticationTokens)
+ {
+ $this->thirdPartyAuthenticationTokens = $thirdPartyAuthenticationTokens;
+ }
+ public function getThirdPartyAuthenticationTokens()
+ {
+ return $this->thirdPartyAuthenticationTokens;
+ }
+ public function setUserDefinedVariableConfigurations($userDefinedVariableConfigurations)
+ {
+ $this->userDefinedVariableConfigurations = $userDefinedVariableConfigurations;
+ }
+ public function getUserDefinedVariableConfigurations()
+ {
+ return $this->userDefinedVariableConfigurations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfigurationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfigurationsListResponse.php
new file mode 100644
index 00000000..18e68ca7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightConfigurationsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightConfigurationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'floodlightConfigurations';
+ protected $floodlightConfigurationsType = 'Google_Service_Dfareporting_FloodlightConfiguration';
+ protected $floodlightConfigurationsDataType = 'array';
+ public $kind;
+
+ public function setFloodlightConfigurations($floodlightConfigurations)
+ {
+ $this->floodlightConfigurations = $floodlightConfigurations;
+ }
+ public function getFloodlightConfigurations()
+ {
+ return $this->floodlightConfigurations;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightReportCompatibleFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightReportCompatibleFields.php
new file mode 100644
index 00000000..9e9de516
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FloodlightReportCompatibleFields.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionFiltersDataType = 'array';
+ protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionsDataType = 'array';
+ public $kind;
+ protected $metricsType = 'Google_Service_Dfareporting_Metric';
+ protected $metricsDataType = 'array';
+
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FrequencyCap.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FrequencyCap.php
new file mode 100644
index 00000000..575b905e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FrequencyCap.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FrequencyCap extends Google_Model
+{
+ public $duration;
+ public $impressions;
+
+ public function setDuration($duration)
+ {
+ $this->duration = $duration;
+ }
+ public function getDuration()
+ {
+ return $this->duration;
+ }
+ public function setImpressions($impressions)
+ {
+ $this->impressions = $impressions;
+ }
+ public function getImpressions()
+ {
+ return $this->impressions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FsCommand.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FsCommand.php
new file mode 100644
index 00000000..1dc4c0c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/FsCommand.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_FsCommand extends Google_Model
+{
+ public $left;
+ public $positionOption;
+ public $top;
+ public $windowHeight;
+ public $windowWidth;
+
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setPositionOption($positionOption)
+ {
+ $this->positionOption = $positionOption;
+ }
+ public function getPositionOption()
+ {
+ return $this->positionOption;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+ public function setWindowHeight($windowHeight)
+ {
+ $this->windowHeight = $windowHeight;
+ }
+ public function getWindowHeight()
+ {
+ return $this->windowHeight;
+ }
+ public function setWindowWidth($windowWidth)
+ {
+ $this->windowWidth = $windowWidth;
+ }
+ public function getWindowWidth()
+ {
+ return $this->windowWidth;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/GeoTargeting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/GeoTargeting.php
new file mode 100644
index 00000000..164960f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/GeoTargeting.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_GeoTargeting extends Google_Collection
+{
+ protected $collection_key = 'regions';
+ protected $citiesType = 'Google_Service_Dfareporting_City';
+ protected $citiesDataType = 'array';
+ protected $countriesType = 'Google_Service_Dfareporting_Country';
+ protected $countriesDataType = 'array';
+ public $excludeCountries;
+ protected $metrosType = 'Google_Service_Dfareporting_Metro';
+ protected $metrosDataType = 'array';
+ protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode';
+ protected $postalCodesDataType = 'array';
+ protected $regionsType = 'Google_Service_Dfareporting_Region';
+ protected $regionsDataType = 'array';
+
+ public function setCities($cities)
+ {
+ $this->cities = $cities;
+ }
+ public function getCities()
+ {
+ return $this->cities;
+ }
+ public function setCountries($countries)
+ {
+ $this->countries = $countries;
+ }
+ public function getCountries()
+ {
+ return $this->countries;
+ }
+ public function setExcludeCountries($excludeCountries)
+ {
+ $this->excludeCountries = $excludeCountries;
+ }
+ public function getExcludeCountries()
+ {
+ return $this->excludeCountries;
+ }
+ public function setMetros($metros)
+ {
+ $this->metros = $metros;
+ }
+ public function getMetros()
+ {
+ return $this->metros;
+ }
+ public function setPostalCodes($postalCodes)
+ {
+ $this->postalCodes = $postalCodes;
+ }
+ public function getPostalCodes()
+ {
+ return $this->postalCodes;
+ }
+ public function setRegions($regions)
+ {
+ $this->regions = $regions;
+ }
+ public function getRegions()
+ {
+ return $this->regions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItem.php
new file mode 100644
index 00000000..560ea238
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItem.php
@@ -0,0 +1,205 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_InventoryItem extends Google_Collection
+{
+ protected $collection_key = 'adSlots';
+ public $accountId;
+ protected $adSlotsType = 'Google_Service_Dfareporting_AdSlot';
+ protected $adSlotsDataType = 'array';
+ public $advertiserId;
+ public $contentCategoryId;
+ public $estimatedClickThroughRate;
+ public $estimatedConversionRate;
+ public $id;
+ public $inPlan;
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ public $negotiationChannelId;
+ public $orderId;
+ public $placementStrategyId;
+ protected $pricingType = 'Google_Service_Dfareporting_Pricing';
+ protected $pricingDataType = '';
+ public $projectId;
+ public $rfpId;
+ public $siteId;
+ public $subaccountId;
+ public $type;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdSlots($adSlots)
+ {
+ $this->adSlots = $adSlots;
+ }
+ public function getAdSlots()
+ {
+ return $this->adSlots;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setContentCategoryId($contentCategoryId)
+ {
+ $this->contentCategoryId = $contentCategoryId;
+ }
+ public function getContentCategoryId()
+ {
+ return $this->contentCategoryId;
+ }
+ public function setEstimatedClickThroughRate($estimatedClickThroughRate)
+ {
+ $this->estimatedClickThroughRate = $estimatedClickThroughRate;
+ }
+ public function getEstimatedClickThroughRate()
+ {
+ return $this->estimatedClickThroughRate;
+ }
+ public function setEstimatedConversionRate($estimatedConversionRate)
+ {
+ $this->estimatedConversionRate = $estimatedConversionRate;
+ }
+ public function getEstimatedConversionRate()
+ {
+ return $this->estimatedConversionRate;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInPlan($inPlan)
+ {
+ $this->inPlan = $inPlan;
+ }
+ public function getInPlan()
+ {
+ return $this->inPlan;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNegotiationChannelId($negotiationChannelId)
+ {
+ $this->negotiationChannelId = $negotiationChannelId;
+ }
+ public function getNegotiationChannelId()
+ {
+ return $this->negotiationChannelId;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+ public function setPlacementStrategyId($placementStrategyId)
+ {
+ $this->placementStrategyId = $placementStrategyId;
+ }
+ public function getPlacementStrategyId()
+ {
+ return $this->placementStrategyId;
+ }
+ public function setPricing(Google_Service_Dfareporting_Pricing $pricing)
+ {
+ $this->pricing = $pricing;
+ }
+ public function getPricing()
+ {
+ return $this->pricing;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setRfpId($rfpId)
+ {
+ $this->rfpId = $rfpId;
+ }
+ public function getRfpId()
+ {
+ return $this->rfpId;
+ }
+ public function setSiteId($siteId)
+ {
+ $this->siteId = $siteId;
+ }
+ public function getSiteId()
+ {
+ return $this->siteId;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItemsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItemsListResponse.php
new file mode 100644
index 00000000..07824ba3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/InventoryItemsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_InventoryItemsListResponse extends Google_Collection
+{
+ protected $collection_key = 'inventoryItems';
+ protected $inventoryItemsType = 'Google_Service_Dfareporting_InventoryItem';
+ protected $inventoryItemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setInventoryItems($inventoryItems)
+ {
+ $this->inventoryItems = $inventoryItems;
+ }
+ public function getInventoryItems()
+ {
+ return $this->inventoryItems;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/KeyValueTargetingExpression.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/KeyValueTargetingExpression.php
new file mode 100644
index 00000000..cce2661b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/KeyValueTargetingExpression.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_KeyValueTargetingExpression extends Google_Model
+{
+ public $expression;
+
+ public function setExpression($expression)
+ {
+ $this->expression = $expression;
+ }
+ public function getExpression()
+ {
+ return $this->expression;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php
new file mode 100644
index 00000000..b5156804
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPage.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_LandingPage extends Google_Model
+{
+ public $default;
+ public $id;
+ public $kind;
+ public $name;
+ public $url;
+
+ public function setDefault($default)
+ {
+ $this->default = $default;
+ }
+ public function getDefault()
+ {
+ return $this->default;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPagesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPagesListResponse.php
new file mode 100644
index 00000000..b402046f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LandingPagesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_LandingPagesListResponse extends Google_Collection
+{
+ protected $collection_key = 'landingPages';
+ public $kind;
+ protected $landingPagesType = 'Google_Service_Dfareporting_LandingPage';
+ protected $landingPagesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLandingPages($landingPages)
+ {
+ $this->landingPages = $landingPages;
+ }
+ public function getLandingPages()
+ {
+ return $this->landingPages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Language.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Language.php
new file mode 100644
index 00000000..e9ebe424
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Language.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Language extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $languageCode;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguageTargeting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguageTargeting.php
new file mode 100644
index 00000000..3d375866
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguageTargeting.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_LanguageTargeting extends Google_Collection
+{
+ protected $collection_key = 'languages';
+ protected $languagesType = 'Google_Service_Dfareporting_Language';
+ protected $languagesDataType = 'array';
+
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguagesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguagesListResponse.php
new file mode 100644
index 00000000..db2ea185
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LanguagesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_LanguagesListResponse extends Google_Collection
+{
+ protected $collection_key = 'languages';
+ public $kind;
+ protected $languagesType = 'Google_Service_Dfareporting_Language';
+ protected $languagesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LastModifiedInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LastModifiedInfo.php
new file mode 100644
index 00000000..985e97f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LastModifiedInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_LastModifiedInfo extends Google_Model
+{
+ public $time;
+
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationClause.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationClause.php
new file mode 100644
index 00000000..c5b1cd25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationClause.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ListPopulationClause extends Google_Collection
+{
+ protected $collection_key = 'terms';
+ protected $termsType = 'Google_Service_Dfareporting_ListPopulationTerm';
+ protected $termsDataType = 'array';
+
+ public function setTerms($terms)
+ {
+ $this->terms = $terms;
+ }
+ public function getTerms()
+ {
+ return $this->terms;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationRule.php
new file mode 100644
index 00000000..3841c63c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationRule.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ListPopulationRule extends Google_Collection
+{
+ protected $collection_key = 'listPopulationClauses';
+ public $floodlightActivityId;
+ public $floodlightActivityName;
+ protected $listPopulationClausesType = 'Google_Service_Dfareporting_ListPopulationClause';
+ protected $listPopulationClausesDataType = 'array';
+
+ public function setFloodlightActivityId($floodlightActivityId)
+ {
+ $this->floodlightActivityId = $floodlightActivityId;
+ }
+ public function getFloodlightActivityId()
+ {
+ return $this->floodlightActivityId;
+ }
+ public function setFloodlightActivityName($floodlightActivityName)
+ {
+ $this->floodlightActivityName = $floodlightActivityName;
+ }
+ public function getFloodlightActivityName()
+ {
+ return $this->floodlightActivityName;
+ }
+ public function setListPopulationClauses($listPopulationClauses)
+ {
+ $this->listPopulationClauses = $listPopulationClauses;
+ }
+ public function getListPopulationClauses()
+ {
+ return $this->listPopulationClauses;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationTerm.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationTerm.php
new file mode 100644
index 00000000..54f358ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListPopulationTerm.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ListPopulationTerm extends Google_Model
+{
+ public $contains;
+ public $negation;
+ public $operator;
+ public $remarketingListId;
+ public $type;
+ public $value;
+ public $variableFriendlyName;
+ public $variableName;
+
+ public function setContains($contains)
+ {
+ $this->contains = $contains;
+ }
+ public function getContains()
+ {
+ return $this->contains;
+ }
+ public function setNegation($negation)
+ {
+ $this->negation = $negation;
+ }
+ public function getNegation()
+ {
+ return $this->negation;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+ public function setRemarketingListId($remarketingListId)
+ {
+ $this->remarketingListId = $remarketingListId;
+ }
+ public function getRemarketingListId()
+ {
+ return $this->remarketingListId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setVariableFriendlyName($variableFriendlyName)
+ {
+ $this->variableFriendlyName = $variableFriendlyName;
+ }
+ public function getVariableFriendlyName()
+ {
+ return $this->variableFriendlyName;
+ }
+ public function setVariableName($variableName)
+ {
+ $this->variableName = $variableName;
+ }
+ public function getVariableName()
+ {
+ return $this->variableName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListTargetingExpression.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListTargetingExpression.php
new file mode 100644
index 00000000..b8ae7dca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ListTargetingExpression.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model
+{
+ public $expression;
+
+ public function setExpression($expression)
+ {
+ $this->expression = $expression;
+ }
+ public function getExpression()
+ {
+ return $this->expression;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LookbackConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LookbackConfiguration.php
new file mode 100644
index 00000000..75529d53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/LookbackConfiguration.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model
+{
+ public $clickDuration;
+ public $postImpressionActivitiesDuration;
+
+ public function setClickDuration($clickDuration)
+ {
+ $this->clickDuration = $clickDuration;
+ }
+ public function getClickDuration()
+ {
+ return $this->clickDuration;
+ }
+ public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration)
+ {
+ $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration;
+ }
+ public function getPostImpressionActivitiesDuration()
+ {
+ return $this->postImpressionActivitiesDuration;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metric.php
new file mode 100644
index 00000000..9b2ea3a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metric.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Metric extends Google_Model
+{
+ public $kind;
+ public $name;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metro.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metro.php
new file mode 100644
index 00000000..4234051c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Metro.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Metro extends Google_Model
+{
+ public $countryCode;
+ public $countryDartId;
+ public $dartId;
+ public $dmaId;
+ public $kind;
+ public $metroCode;
+ public $name;
+
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCountryDartId($countryDartId)
+ {
+ $this->countryDartId = $countryDartId;
+ }
+ public function getCountryDartId()
+ {
+ return $this->countryDartId;
+ }
+ public function setDartId($dartId)
+ {
+ $this->dartId = $dartId;
+ }
+ public function getDartId()
+ {
+ return $this->dartId;
+ }
+ public function setDmaId($dmaId)
+ {
+ $this->dmaId = $dmaId;
+ }
+ public function getDmaId()
+ {
+ return $this->dmaId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetroCode($metroCode)
+ {
+ $this->metroCode = $metroCode;
+ }
+ public function getMetroCode()
+ {
+ return $this->metroCode;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MetrosListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MetrosListResponse.php
new file mode 100644
index 00000000..5378847f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MetrosListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_MetrosListResponse extends Google_Collection
+{
+ protected $collection_key = 'metros';
+ public $kind;
+ protected $metrosType = 'Google_Service_Dfareporting_Metro';
+ protected $metrosDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetros($metros)
+ {
+ $this->metros = $metros;
+ }
+ public function getMetros()
+ {
+ return $this->metros;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarrier.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarrier.php
new file mode 100644
index 00000000..952922d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarrier.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_MobileCarrier extends Google_Model
+{
+ public $countryCode;
+ public $countryDartId;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCountryDartId($countryDartId)
+ {
+ $this->countryDartId = $countryDartId;
+ }
+ public function getCountryDartId()
+ {
+ return $this->countryDartId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarriersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarriersListResponse.php
new file mode 100644
index 00000000..f330ea60
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/MobileCarriersListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_MobileCarriersListResponse extends Google_Collection
+{
+ protected $collection_key = 'mobileCarriers';
+ public $kind;
+ protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier';
+ protected $mobileCarriersDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMobileCarriers($mobileCarriers)
+ {
+ $this->mobileCarriers = $mobileCarriers;
+ }
+ public function getMobileCarriers()
+ {
+ return $this->mobileCarriers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ObjectFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ObjectFilter.php
new file mode 100644
index 00000000..a61bb339
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ObjectFilter.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ObjectFilter extends Google_Collection
+{
+ protected $collection_key = 'objectIds';
+ public $kind;
+ public $objectIds;
+ public $status;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setObjectIds($objectIds)
+ {
+ $this->objectIds = $objectIds;
+ }
+ public function getObjectIds()
+ {
+ return $this->objectIds;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OffsetPosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OffsetPosition.php
new file mode 100644
index 00000000..f91e3df4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OffsetPosition.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OffsetPosition extends Google_Model
+{
+ public $left;
+ public $top;
+
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OmnitureSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OmnitureSettings.php
new file mode 100644
index 00000000..461af1f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OmnitureSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OmnitureSettings extends Google_Model
+{
+ public $omnitureCostDataEnabled;
+ public $omnitureIntegrationEnabled;
+
+ public function setOmnitureCostDataEnabled($omnitureCostDataEnabled)
+ {
+ $this->omnitureCostDataEnabled = $omnitureCostDataEnabled;
+ }
+ public function getOmnitureCostDataEnabled()
+ {
+ return $this->omnitureCostDataEnabled;
+ }
+ public function setOmnitureIntegrationEnabled($omnitureIntegrationEnabled)
+ {
+ $this->omnitureIntegrationEnabled = $omnitureIntegrationEnabled;
+ }
+ public function getOmnitureIntegrationEnabled()
+ {
+ return $this->omnitureIntegrationEnabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystem.php
new file mode 100644
index 00000000..90d0b79b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystem.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OperatingSystem extends Google_Model
+{
+ public $dartId;
+ public $desktop;
+ public $kind;
+ public $mobile;
+ public $name;
+
+ public function setDartId($dartId)
+ {
+ $this->dartId = $dartId;
+ }
+ public function getDartId()
+ {
+ return $this->dartId;
+ }
+ public function setDesktop($desktop)
+ {
+ $this->desktop = $desktop;
+ }
+ public function getDesktop()
+ {
+ return $this->desktop;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMobile($mobile)
+ {
+ $this->mobile = $mobile;
+ }
+ public function getMobile()
+ {
+ return $this->mobile;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersion.php
new file mode 100644
index 00000000..f033d258
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersion.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OperatingSystemVersion extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $majorVersion;
+ public $minorVersion;
+ public $name;
+ protected $operatingSystemType = 'Google_Service_Dfareporting_OperatingSystem';
+ protected $operatingSystemDataType = '';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMajorVersion($majorVersion)
+ {
+ $this->majorVersion = $majorVersion;
+ }
+ public function getMajorVersion()
+ {
+ return $this->majorVersion;
+ }
+ public function setMinorVersion($minorVersion)
+ {
+ $this->minorVersion = $minorVersion;
+ }
+ public function getMinorVersion()
+ {
+ return $this->minorVersion;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperatingSystem(Google_Service_Dfareporting_OperatingSystem $operatingSystem)
+ {
+ $this->operatingSystem = $operatingSystem;
+ }
+ public function getOperatingSystem()
+ {
+ return $this->operatingSystem;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersionsListResponse.php
new file mode 100644
index 00000000..e6930897
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemVersionsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OperatingSystemVersionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'operatingSystemVersions';
+ public $kind;
+ protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion';
+ protected $operatingSystemVersionsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOperatingSystemVersions($operatingSystemVersions)
+ {
+ $this->operatingSystemVersions = $operatingSystemVersions;
+ }
+ public function getOperatingSystemVersions()
+ {
+ return $this->operatingSystemVersions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemsListResponse.php
new file mode 100644
index 00000000..bdcc6a28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OperatingSystemsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OperatingSystemsListResponse extends Google_Collection
+{
+ protected $collection_key = 'operatingSystems';
+ public $kind;
+ protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem';
+ protected $operatingSystemsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOperatingSystems($operatingSystems)
+ {
+ $this->operatingSystems = $operatingSystems;
+ }
+ public function getOperatingSystems()
+ {
+ return $this->operatingSystems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OptimizationActivity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OptimizationActivity.php
new file mode 100644
index 00000000..f9539cde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OptimizationActivity.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OptimizationActivity extends Google_Model
+{
+ public $floodlightActivityId;
+ protected $floodlightActivityIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $floodlightActivityIdDimensionValueDataType = '';
+ public $weight;
+
+ public function setFloodlightActivityId($floodlightActivityId)
+ {
+ $this->floodlightActivityId = $floodlightActivityId;
+ }
+ public function getFloodlightActivityId()
+ {
+ return $this->floodlightActivityId;
+ }
+ public function setFloodlightActivityIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightActivityIdDimensionValue)
+ {
+ $this->floodlightActivityIdDimensionValue = $floodlightActivityIdDimensionValue;
+ }
+ public function getFloodlightActivityIdDimensionValue()
+ {
+ return $this->floodlightActivityIdDimensionValue;
+ }
+ public function setWeight($weight)
+ {
+ $this->weight = $weight;
+ }
+ public function getWeight()
+ {
+ return $this->weight;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Order.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Order.php
new file mode 100644
index 00000000..da665f4f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Order.php
@@ -0,0 +1,204 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Order extends Google_Collection
+{
+ protected $collection_key = 'siteNames';
+ public $accountId;
+ public $advertiserId;
+ public $approverUserProfileIds;
+ public $buyerInvoiceId;
+ public $buyerOrganizationName;
+ public $comments;
+ protected $contactsType = 'Google_Service_Dfareporting_OrderContact';
+ protected $contactsDataType = 'array';
+ public $id;
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ public $notes;
+ public $planningTermId;
+ public $projectId;
+ public $sellerOrderId;
+ public $sellerOrganizationName;
+ public $siteId;
+ public $siteNames;
+ public $subaccountId;
+ public $termsAndConditions;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setApproverUserProfileIds($approverUserProfileIds)
+ {
+ $this->approverUserProfileIds = $approverUserProfileIds;
+ }
+ public function getApproverUserProfileIds()
+ {
+ return $this->approverUserProfileIds;
+ }
+ public function setBuyerInvoiceId($buyerInvoiceId)
+ {
+ $this->buyerInvoiceId = $buyerInvoiceId;
+ }
+ public function getBuyerInvoiceId()
+ {
+ return $this->buyerInvoiceId;
+ }
+ public function setBuyerOrganizationName($buyerOrganizationName)
+ {
+ $this->buyerOrganizationName = $buyerOrganizationName;
+ }
+ public function getBuyerOrganizationName()
+ {
+ return $this->buyerOrganizationName;
+ }
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setContacts($contacts)
+ {
+ $this->contacts = $contacts;
+ }
+ public function getContacts()
+ {
+ return $this->contacts;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setPlanningTermId($planningTermId)
+ {
+ $this->planningTermId = $planningTermId;
+ }
+ public function getPlanningTermId()
+ {
+ return $this->planningTermId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setSellerOrderId($sellerOrderId)
+ {
+ $this->sellerOrderId = $sellerOrderId;
+ }
+ public function getSellerOrderId()
+ {
+ return $this->sellerOrderId;
+ }
+ public function setSellerOrganizationName($sellerOrganizationName)
+ {
+ $this->sellerOrganizationName = $sellerOrganizationName;
+ }
+ public function getSellerOrganizationName()
+ {
+ return $this->sellerOrganizationName;
+ }
+ public function setSiteId($siteId)
+ {
+ $this->siteId = $siteId;
+ }
+ public function getSiteId()
+ {
+ return $this->siteId;
+ }
+ public function setSiteNames($siteNames)
+ {
+ $this->siteNames = $siteNames;
+ }
+ public function getSiteNames()
+ {
+ return $this->siteNames;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTermsAndConditions($termsAndConditions)
+ {
+ $this->termsAndConditions = $termsAndConditions;
+ }
+ public function getTermsAndConditions()
+ {
+ return $this->termsAndConditions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderContact.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderContact.php
new file mode 100644
index 00000000..2166196f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderContact.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OrderContact extends Google_Model
+{
+ public $contactInfo;
+ public $contactName;
+ public $contactTitle;
+ public $contactType;
+ public $signatureUserProfileId;
+
+ public function setContactInfo($contactInfo)
+ {
+ $this->contactInfo = $contactInfo;
+ }
+ public function getContactInfo()
+ {
+ return $this->contactInfo;
+ }
+ public function setContactName($contactName)
+ {
+ $this->contactName = $contactName;
+ }
+ public function getContactName()
+ {
+ return $this->contactName;
+ }
+ public function setContactTitle($contactTitle)
+ {
+ $this->contactTitle = $contactTitle;
+ }
+ public function getContactTitle()
+ {
+ return $this->contactTitle;
+ }
+ public function setContactType($contactType)
+ {
+ $this->contactType = $contactType;
+ }
+ public function getContactType()
+ {
+ return $this->contactType;
+ }
+ public function setSignatureUserProfileId($signatureUserProfileId)
+ {
+ $this->signatureUserProfileId = $signatureUserProfileId;
+ }
+ public function getSignatureUserProfileId()
+ {
+ return $this->signatureUserProfileId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocument.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocument.php
new file mode 100644
index 00000000..a7a26bf4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocument.php
@@ -0,0 +1,176 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OrderDocument extends Google_Collection
+{
+ protected $collection_key = 'lastSentRecipients';
+ public $accountId;
+ public $advertiserId;
+ public $amendedOrderDocumentId;
+ public $approvedByUserProfileIds;
+ public $cancelled;
+ protected $createdInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $createdInfoDataType = '';
+ public $effectiveDate;
+ public $id;
+ public $kind;
+ public $lastSentRecipients;
+ public $lastSentTime;
+ public $orderId;
+ public $projectId;
+ public $signed;
+ public $subaccountId;
+ public $title;
+ public $type;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAmendedOrderDocumentId($amendedOrderDocumentId)
+ {
+ $this->amendedOrderDocumentId = $amendedOrderDocumentId;
+ }
+ public function getAmendedOrderDocumentId()
+ {
+ return $this->amendedOrderDocumentId;
+ }
+ public function setApprovedByUserProfileIds($approvedByUserProfileIds)
+ {
+ $this->approvedByUserProfileIds = $approvedByUserProfileIds;
+ }
+ public function getApprovedByUserProfileIds()
+ {
+ return $this->approvedByUserProfileIds;
+ }
+ public function setCancelled($cancelled)
+ {
+ $this->cancelled = $cancelled;
+ }
+ public function getCancelled()
+ {
+ return $this->cancelled;
+ }
+ public function setCreatedInfo(Google_Service_Dfareporting_LastModifiedInfo $createdInfo)
+ {
+ $this->createdInfo = $createdInfo;
+ }
+ public function getCreatedInfo()
+ {
+ return $this->createdInfo;
+ }
+ public function setEffectiveDate($effectiveDate)
+ {
+ $this->effectiveDate = $effectiveDate;
+ }
+ public function getEffectiveDate()
+ {
+ return $this->effectiveDate;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastSentRecipients($lastSentRecipients)
+ {
+ $this->lastSentRecipients = $lastSentRecipients;
+ }
+ public function getLastSentRecipients()
+ {
+ return $this->lastSentRecipients;
+ }
+ public function setLastSentTime($lastSentTime)
+ {
+ $this->lastSentTime = $lastSentTime;
+ }
+ public function getLastSentTime()
+ {
+ return $this->lastSentTime;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setSigned($signed)
+ {
+ $this->signed = $signed;
+ }
+ public function getSigned()
+ {
+ return $this->signed;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocumentsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocumentsListResponse.php
new file mode 100644
index 00000000..63a41b30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrderDocumentsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OrderDocumentsListResponse extends Google_Collection
+{
+ protected $collection_key = 'orderDocuments';
+ public $kind;
+ public $nextPageToken;
+ protected $orderDocumentsType = 'Google_Service_Dfareporting_OrderDocument';
+ protected $orderDocumentsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOrderDocuments($orderDocuments)
+ {
+ $this->orderDocuments = $orderDocuments;
+ }
+ public function getOrderDocuments()
+ {
+ return $this->orderDocuments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrdersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrdersListResponse.php
new file mode 100644
index 00000000..e90bee1a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/OrdersListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_OrdersListResponse extends Google_Collection
+{
+ protected $collection_key = 'orders';
+ public $kind;
+ public $nextPageToken;
+ protected $ordersType = 'Google_Service_Dfareporting_Order';
+ protected $ordersDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOrders($orders)
+ {
+ $this->orders = $orders;
+ }
+ public function getOrders()
+ {
+ return $this->orders;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PathToConversionReportCompatibleFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PathToConversionReportCompatibleFields.php
new file mode 100644
index 00000000..8583dd86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PathToConversionReportCompatibleFields.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection
+{
+ protected $collection_key = 'perInteractionDimensions';
+ protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $conversionDimensionsDataType = 'array';
+ protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension';
+ protected $customFloodlightVariablesDataType = 'array';
+ public $kind;
+ protected $metricsType = 'Google_Service_Dfareporting_Metric';
+ protected $metricsDataType = 'array';
+ protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $perInteractionDimensionsDataType = 'array';
+
+ public function setConversionDimensions($conversionDimensions)
+ {
+ $this->conversionDimensions = $conversionDimensions;
+ }
+ public function getConversionDimensions()
+ {
+ return $this->conversionDimensions;
+ }
+ public function setCustomFloodlightVariables($customFloodlightVariables)
+ {
+ $this->customFloodlightVariables = $customFloodlightVariables;
+ }
+ public function getCustomFloodlightVariables()
+ {
+ return $this->customFloodlightVariables;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setPerInteractionDimensions($perInteractionDimensions)
+ {
+ $this->perInteractionDimensions = $perInteractionDimensions;
+ }
+ public function getPerInteractionDimensions()
+ {
+ return $this->perInteractionDimensions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php
new file mode 100644
index 00000000..ffb824ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Placement.php
@@ -0,0 +1,387 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Placement extends Google_Collection
+{
+ protected $collection_key = 'tagFormats';
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $archived;
+ public $campaignId;
+ protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $campaignIdDimensionValueDataType = '';
+ public $comment;
+ public $compatibility;
+ public $contentCategoryId;
+ protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $createInfoDataType = '';
+ public $directorySiteId;
+ protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $directorySiteIdDimensionValueDataType = '';
+ public $externalId;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $keyName;
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration';
+ protected $lookbackConfigurationDataType = '';
+ public $name;
+ public $paymentApproved;
+ public $paymentSource;
+ public $placementGroupId;
+ protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $placementGroupIdDimensionValueDataType = '';
+ public $placementStrategyId;
+ protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule';
+ protected $pricingScheduleDataType = '';
+ public $primary;
+ protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $publisherUpdateInfoDataType = '';
+ public $siteId;
+ protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $siteIdDimensionValueDataType = '';
+ protected $sizeType = 'Google_Service_Dfareporting_Size';
+ protected $sizeDataType = '';
+ public $sslRequired;
+ public $status;
+ public $subaccountId;
+ public $tagFormats;
+ protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting';
+ protected $tagSettingDataType = '';
+ public $videoActiveViewOptOut;
+ protected $videoSettingsType = 'Google_Service_Dfareporting_VideoSettings';
+ protected $videoSettingsDataType = '';
+ public $vpaidAdapterChoice;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setArchived($archived)
+ {
+ $this->archived = $archived;
+ }
+ public function getArchived()
+ {
+ return $this->archived;
+ }
+ public function setCampaignId($campaignId)
+ {
+ $this->campaignId = $campaignId;
+ }
+ public function getCampaignId()
+ {
+ return $this->campaignId;
+ }
+ public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue)
+ {
+ $this->campaignIdDimensionValue = $campaignIdDimensionValue;
+ }
+ public function getCampaignIdDimensionValue()
+ {
+ return $this->campaignIdDimensionValue;
+ }
+ public function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setCompatibility($compatibility)
+ {
+ $this->compatibility = $compatibility;
+ }
+ public function getCompatibility()
+ {
+ return $this->compatibility;
+ }
+ public function setContentCategoryId($contentCategoryId)
+ {
+ $this->contentCategoryId = $contentCategoryId;
+ }
+ public function getContentCategoryId()
+ {
+ return $this->contentCategoryId;
+ }
+ public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo)
+ {
+ $this->createInfo = $createInfo;
+ }
+ public function getCreateInfo()
+ {
+ return $this->createInfo;
+ }
+ public function setDirectorySiteId($directorySiteId)
+ {
+ $this->directorySiteId = $directorySiteId;
+ }
+ public function getDirectorySiteId()
+ {
+ return $this->directorySiteId;
+ }
+ public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue)
+ {
+ $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue;
+ }
+ public function getDirectorySiteIdDimensionValue()
+ {
+ return $this->directorySiteIdDimensionValue;
+ }
+ public function setExternalId($externalId)
+ {
+ $this->externalId = $externalId;
+ }
+ public function getExternalId()
+ {
+ return $this->externalId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKeyName($keyName)
+ {
+ $this->keyName = $keyName;
+ }
+ public function getKeyName()
+ {
+ return $this->keyName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration)
+ {
+ $this->lookbackConfiguration = $lookbackConfiguration;
+ }
+ public function getLookbackConfiguration()
+ {
+ return $this->lookbackConfiguration;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPaymentApproved($paymentApproved)
+ {
+ $this->paymentApproved = $paymentApproved;
+ }
+ public function getPaymentApproved()
+ {
+ return $this->paymentApproved;
+ }
+ public function setPaymentSource($paymentSource)
+ {
+ $this->paymentSource = $paymentSource;
+ }
+ public function getPaymentSource()
+ {
+ return $this->paymentSource;
+ }
+ public function setPlacementGroupId($placementGroupId)
+ {
+ $this->placementGroupId = $placementGroupId;
+ }
+ public function getPlacementGroupId()
+ {
+ return $this->placementGroupId;
+ }
+ public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue)
+ {
+ $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue;
+ }
+ public function getPlacementGroupIdDimensionValue()
+ {
+ return $this->placementGroupIdDimensionValue;
+ }
+ public function setPlacementStrategyId($placementStrategyId)
+ {
+ $this->placementStrategyId = $placementStrategyId;
+ }
+ public function getPlacementStrategyId()
+ {
+ return $this->placementStrategyId;
+ }
+ public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule)
+ {
+ $this->pricingSchedule = $pricingSchedule;
+ }
+ public function getPricingSchedule()
+ {
+ return $this->pricingSchedule;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo)
+ {
+ $this->publisherUpdateInfo = $publisherUpdateInfo;
+ }
+ public function getPublisherUpdateInfo()
+ {
+ return $this->publisherUpdateInfo;
+ }
+ public function setSiteId($siteId)
+ {
+ $this->siteId = $siteId;
+ }
+ public function getSiteId()
+ {
+ return $this->siteId;
+ }
+ public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue)
+ {
+ $this->siteIdDimensionValue = $siteIdDimensionValue;
+ }
+ public function getSiteIdDimensionValue()
+ {
+ return $this->siteIdDimensionValue;
+ }
+ public function setSize(Google_Service_Dfareporting_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSslRequired($sslRequired)
+ {
+ $this->sslRequired = $sslRequired;
+ }
+ public function getSslRequired()
+ {
+ return $this->sslRequired;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTagFormats($tagFormats)
+ {
+ $this->tagFormats = $tagFormats;
+ }
+ public function getTagFormats()
+ {
+ return $this->tagFormats;
+ }
+ public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting)
+ {
+ $this->tagSetting = $tagSetting;
+ }
+ public function getTagSetting()
+ {
+ return $this->tagSetting;
+ }
+ public function setVideoActiveViewOptOut($videoActiveViewOptOut)
+ {
+ $this->videoActiveViewOptOut = $videoActiveViewOptOut;
+ }
+ public function getVideoActiveViewOptOut()
+ {
+ return $this->videoActiveViewOptOut;
+ }
+ public function setVideoSettings(Google_Service_Dfareporting_VideoSettings $videoSettings)
+ {
+ $this->videoSettings = $videoSettings;
+ }
+ public function getVideoSettings()
+ {
+ return $this->videoSettings;
+ }
+ public function setVpaidAdapterChoice($vpaidAdapterChoice)
+ {
+ $this->vpaidAdapterChoice = $vpaidAdapterChoice;
+ }
+ public function getVpaidAdapterChoice()
+ {
+ return $this->vpaidAdapterChoice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementAssignment.php
new file mode 100644
index 00000000..f19b7374
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementAssignment.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementAssignment extends Google_Model
+{
+ public $active;
+ public $placementId;
+ protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $placementIdDimensionValueDataType = '';
+ public $sslRequired;
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setPlacementId($placementId)
+ {
+ $this->placementId = $placementId;
+ }
+ public function getPlacementId()
+ {
+ return $this->placementId;
+ }
+ public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue)
+ {
+ $this->placementIdDimensionValue = $placementIdDimensionValue;
+ }
+ public function getPlacementIdDimensionValue()
+ {
+ return $this->placementIdDimensionValue;
+ }
+ public function setSslRequired($sslRequired)
+ {
+ $this->sslRequired = $sslRequired;
+ }
+ public function getSslRequired()
+ {
+ return $this->sslRequired;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroup.php
new file mode 100644
index 00000000..266a1cf6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroup.php
@@ -0,0 +1,265 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementGroup extends Google_Collection
+{
+ protected $collection_key = 'childPlacementIds';
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $archived;
+ public $campaignId;
+ protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $campaignIdDimensionValueDataType = '';
+ public $childPlacementIds;
+ public $comment;
+ public $contentCategoryId;
+ protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $createInfoDataType = '';
+ public $directorySiteId;
+ protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $directorySiteIdDimensionValueDataType = '';
+ public $externalId;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ public $placementGroupType;
+ public $placementStrategyId;
+ protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule';
+ protected $pricingScheduleDataType = '';
+ public $primaryPlacementId;
+ protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $primaryPlacementIdDimensionValueDataType = '';
+ public $siteId;
+ protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $siteIdDimensionValueDataType = '';
+ public $subaccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setArchived($archived)
+ {
+ $this->archived = $archived;
+ }
+ public function getArchived()
+ {
+ return $this->archived;
+ }
+ public function setCampaignId($campaignId)
+ {
+ $this->campaignId = $campaignId;
+ }
+ public function getCampaignId()
+ {
+ return $this->campaignId;
+ }
+ public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue)
+ {
+ $this->campaignIdDimensionValue = $campaignIdDimensionValue;
+ }
+ public function getCampaignIdDimensionValue()
+ {
+ return $this->campaignIdDimensionValue;
+ }
+ public function setChildPlacementIds($childPlacementIds)
+ {
+ $this->childPlacementIds = $childPlacementIds;
+ }
+ public function getChildPlacementIds()
+ {
+ return $this->childPlacementIds;
+ }
+ public function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setContentCategoryId($contentCategoryId)
+ {
+ $this->contentCategoryId = $contentCategoryId;
+ }
+ public function getContentCategoryId()
+ {
+ return $this->contentCategoryId;
+ }
+ public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo)
+ {
+ $this->createInfo = $createInfo;
+ }
+ public function getCreateInfo()
+ {
+ return $this->createInfo;
+ }
+ public function setDirectorySiteId($directorySiteId)
+ {
+ $this->directorySiteId = $directorySiteId;
+ }
+ public function getDirectorySiteId()
+ {
+ return $this->directorySiteId;
+ }
+ public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue)
+ {
+ $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue;
+ }
+ public function getDirectorySiteIdDimensionValue()
+ {
+ return $this->directorySiteIdDimensionValue;
+ }
+ public function setExternalId($externalId)
+ {
+ $this->externalId = $externalId;
+ }
+ public function getExternalId()
+ {
+ return $this->externalId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPlacementGroupType($placementGroupType)
+ {
+ $this->placementGroupType = $placementGroupType;
+ }
+ public function getPlacementGroupType()
+ {
+ return $this->placementGroupType;
+ }
+ public function setPlacementStrategyId($placementStrategyId)
+ {
+ $this->placementStrategyId = $placementStrategyId;
+ }
+ public function getPlacementStrategyId()
+ {
+ return $this->placementStrategyId;
+ }
+ public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule)
+ {
+ $this->pricingSchedule = $pricingSchedule;
+ }
+ public function getPricingSchedule()
+ {
+ return $this->pricingSchedule;
+ }
+ public function setPrimaryPlacementId($primaryPlacementId)
+ {
+ $this->primaryPlacementId = $primaryPlacementId;
+ }
+ public function getPrimaryPlacementId()
+ {
+ return $this->primaryPlacementId;
+ }
+ public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue)
+ {
+ $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue;
+ }
+ public function getPrimaryPlacementIdDimensionValue()
+ {
+ return $this->primaryPlacementIdDimensionValue;
+ }
+ public function setSiteId($siteId)
+ {
+ $this->siteId = $siteId;
+ }
+ public function getSiteId()
+ {
+ return $this->siteId;
+ }
+ public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue)
+ {
+ $this->siteIdDimensionValue = $siteIdDimensionValue;
+ }
+ public function getSiteIdDimensionValue()
+ {
+ return $this->siteIdDimensionValue;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroupsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroupsListResponse.php
new file mode 100644
index 00000000..8adaa3c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementGroupsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection
+{
+ protected $collection_key = 'placementGroups';
+ public $kind;
+ public $nextPageToken;
+ protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup';
+ protected $placementGroupsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPlacementGroups($placementGroups)
+ {
+ $this->placementGroups = $placementGroups;
+ }
+ public function getPlacementGroups()
+ {
+ return $this->placementGroups;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategiesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategiesListResponse.php
new file mode 100644
index 00000000..d96c5b2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategiesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection
+{
+ protected $collection_key = 'placementStrategies';
+ public $kind;
+ public $nextPageToken;
+ protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy';
+ protected $placementStrategiesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPlacementStrategies($placementStrategies)
+ {
+ $this->placementStrategies = $placementStrategies;
+ }
+ public function getPlacementStrategies()
+ {
+ return $this->placementStrategies;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategy.php
new file mode 100644
index 00000000..61aac46d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementStrategy.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementStrategy extends Google_Model
+{
+ public $accountId;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementTag.php
new file mode 100644
index 00000000..8c560674
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementTag.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementTag extends Google_Collection
+{
+ protected $collection_key = 'tagDatas';
+ public $placementId;
+ protected $tagDatasType = 'Google_Service_Dfareporting_TagData';
+ protected $tagDatasDataType = 'array';
+
+ public function setPlacementId($placementId)
+ {
+ $this->placementId = $placementId;
+ }
+ public function getPlacementId()
+ {
+ return $this->placementId;
+ }
+ public function setTagDatas($tagDatas)
+ {
+ $this->tagDatas = $tagDatas;
+ }
+ public function getTagDatas()
+ {
+ return $this->tagDatas;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsGenerateTagsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsGenerateTagsResponse.php
new file mode 100644
index 00000000..e2ec68bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsGenerateTagsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection
+{
+ protected $collection_key = 'placementTags';
+ public $kind;
+ protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag';
+ protected $placementTagsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlacementTags($placementTags)
+ {
+ $this->placementTags = $placementTags;
+ }
+ public function getPlacementTags()
+ {
+ return $this->placementTags;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsListResponse.php
new file mode 100644
index 00000000..d1b5b6f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlacementsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection
+{
+ protected $collection_key = 'placements';
+ public $kind;
+ public $nextPageToken;
+ protected $placementsType = 'Google_Service_Dfareporting_Placement';
+ protected $placementsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPlacements($placements)
+ {
+ $this->placements = $placements;
+ }
+ public function getPlacements()
+ {
+ return $this->placements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformType.php
new file mode 100644
index 00000000..da474be9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformType.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlatformType extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformTypesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformTypesListResponse.php
new file mode 100644
index 00000000..0eee5f46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PlatformTypesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PlatformTypesListResponse extends Google_Collection
+{
+ protected $collection_key = 'platformTypes';
+ public $kind;
+ protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType';
+ protected $platformTypesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlatformTypes($platformTypes)
+ {
+ $this->platformTypes = $platformTypes;
+ }
+ public function getPlatformTypes()
+ {
+ return $this->platformTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PopupWindowProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PopupWindowProperties.php
new file mode 100644
index 00000000..2cf0dbc5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PopupWindowProperties.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model
+{
+ protected $dimensionType = 'Google_Service_Dfareporting_Size';
+ protected $dimensionDataType = '';
+ protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition';
+ protected $offsetDataType = '';
+ public $positionType;
+ public $showAddressBar;
+ public $showMenuBar;
+ public $showScrollBar;
+ public $showStatusBar;
+ public $showToolBar;
+ public $title;
+
+ public function setDimension(Google_Service_Dfareporting_Size $dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset)
+ {
+ $this->offset = $offset;
+ }
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+ public function setPositionType($positionType)
+ {
+ $this->positionType = $positionType;
+ }
+ public function getPositionType()
+ {
+ return $this->positionType;
+ }
+ public function setShowAddressBar($showAddressBar)
+ {
+ $this->showAddressBar = $showAddressBar;
+ }
+ public function getShowAddressBar()
+ {
+ return $this->showAddressBar;
+ }
+ public function setShowMenuBar($showMenuBar)
+ {
+ $this->showMenuBar = $showMenuBar;
+ }
+ public function getShowMenuBar()
+ {
+ return $this->showMenuBar;
+ }
+ public function setShowScrollBar($showScrollBar)
+ {
+ $this->showScrollBar = $showScrollBar;
+ }
+ public function getShowScrollBar()
+ {
+ return $this->showScrollBar;
+ }
+ public function setShowStatusBar($showStatusBar)
+ {
+ $this->showStatusBar = $showStatusBar;
+ }
+ public function getShowStatusBar()
+ {
+ return $this->showStatusBar;
+ }
+ public function setShowToolBar($showToolBar)
+ {
+ $this->showToolBar = $showToolBar;
+ }
+ public function getShowToolBar()
+ {
+ return $this->showToolBar;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCode.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCode.php
new file mode 100644
index 00000000..03cd3ede
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCode.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PostalCode extends Google_Model
+{
+ public $code;
+ public $countryCode;
+ public $countryDartId;
+ public $id;
+ public $kind;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCountryDartId($countryDartId)
+ {
+ $this->countryDartId = $countryDartId;
+ }
+ public function getCountryDartId()
+ {
+ return $this->countryDartId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCodesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCodesListResponse.php
new file mode 100644
index 00000000..93d9d799
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PostalCodesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PostalCodesListResponse extends Google_Collection
+{
+ protected $collection_key = 'postalCodes';
+ public $kind;
+ protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode';
+ protected $postalCodesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPostalCodes($postalCodes)
+ {
+ $this->postalCodes = $postalCodes;
+ }
+ public function getPostalCodes()
+ {
+ return $this->postalCodes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Pricing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Pricing.php
new file mode 100644
index 00000000..0e1abfb2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Pricing.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Pricing extends Google_Collection
+{
+ protected $collection_key = 'flights';
+ public $capCostType;
+ public $endDate;
+ protected $flightsType = 'Google_Service_Dfareporting_Flight';
+ protected $flightsDataType = 'array';
+ public $groupType;
+ public $pricingType;
+ public $startDate;
+
+ public function setCapCostType($capCostType)
+ {
+ $this->capCostType = $capCostType;
+ }
+ public function getCapCostType()
+ {
+ return $this->capCostType;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFlights($flights)
+ {
+ $this->flights = $flights;
+ }
+ public function getFlights()
+ {
+ return $this->flights;
+ }
+ public function setGroupType($groupType)
+ {
+ $this->groupType = $groupType;
+ }
+ public function getGroupType()
+ {
+ return $this->groupType;
+ }
+ public function setPricingType($pricingType)
+ {
+ $this->pricingType = $pricingType;
+ }
+ public function getPricingType()
+ {
+ return $this->pricingType;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedule.php
new file mode 100644
index 00000000..5ba2b971
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedule.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PricingSchedule extends Google_Collection
+{
+ protected $collection_key = 'pricingPeriods';
+ public $capCostOption;
+ public $disregardOverdelivery;
+ public $endDate;
+ public $flighted;
+ public $floodlightActivityId;
+ protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod';
+ protected $pricingPeriodsDataType = 'array';
+ public $pricingType;
+ public $startDate;
+ public $testingStartDate;
+
+ public function setCapCostOption($capCostOption)
+ {
+ $this->capCostOption = $capCostOption;
+ }
+ public function getCapCostOption()
+ {
+ return $this->capCostOption;
+ }
+ public function setDisregardOverdelivery($disregardOverdelivery)
+ {
+ $this->disregardOverdelivery = $disregardOverdelivery;
+ }
+ public function getDisregardOverdelivery()
+ {
+ return $this->disregardOverdelivery;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFlighted($flighted)
+ {
+ $this->flighted = $flighted;
+ }
+ public function getFlighted()
+ {
+ return $this->flighted;
+ }
+ public function setFloodlightActivityId($floodlightActivityId)
+ {
+ $this->floodlightActivityId = $floodlightActivityId;
+ }
+ public function getFloodlightActivityId()
+ {
+ return $this->floodlightActivityId;
+ }
+ public function setPricingPeriods($pricingPeriods)
+ {
+ $this->pricingPeriods = $pricingPeriods;
+ }
+ public function getPricingPeriods()
+ {
+ return $this->pricingPeriods;
+ }
+ public function setPricingType($pricingType)
+ {
+ $this->pricingType = $pricingType;
+ }
+ public function getPricingType()
+ {
+ return $this->pricingType;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setTestingStartDate($testingStartDate)
+ {
+ $this->testingStartDate = $testingStartDate;
+ }
+ public function getTestingStartDate()
+ {
+ return $this->testingStartDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedulePricingPeriod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedulePricingPeriod.php
new file mode 100644
index 00000000..0e55ed62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/PricingSchedulePricingPeriod.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model
+{
+ public $endDate;
+ public $pricingComment;
+ public $rateOrCostNanos;
+ public $startDate;
+ public $units;
+
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setPricingComment($pricingComment)
+ {
+ $this->pricingComment = $pricingComment;
+ }
+ public function getPricingComment()
+ {
+ return $this->pricingComment;
+ }
+ public function setRateOrCostNanos($rateOrCostNanos)
+ {
+ $this->rateOrCostNanos = $rateOrCostNanos;
+ }
+ public function getRateOrCostNanos()
+ {
+ return $this->rateOrCostNanos;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setUnits($units)
+ {
+ $this->units = $units;
+ }
+ public function getUnits()
+ {
+ return $this->units;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Project.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Project.php
new file mode 100644
index 00000000..a7fc809e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Project.php
@@ -0,0 +1,220 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Project extends Google_Model
+{
+ public $accountId;
+ public $advertiserId;
+ public $audienceAgeGroup;
+ public $audienceGender;
+ public $budget;
+ public $clientBillingCode;
+ public $clientName;
+ public $endDate;
+ public $id;
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ public $overview;
+ public $startDate;
+ public $subaccountId;
+ public $targetClicks;
+ public $targetConversions;
+ public $targetCpaNanos;
+ public $targetCpcNanos;
+ public $targetCpmActiveViewNanos;
+ public $targetCpmNanos;
+ public $targetImpressions;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAudienceAgeGroup($audienceAgeGroup)
+ {
+ $this->audienceAgeGroup = $audienceAgeGroup;
+ }
+ public function getAudienceAgeGroup()
+ {
+ return $this->audienceAgeGroup;
+ }
+ public function setAudienceGender($audienceGender)
+ {
+ $this->audienceGender = $audienceGender;
+ }
+ public function getAudienceGender()
+ {
+ return $this->audienceGender;
+ }
+ public function setBudget($budget)
+ {
+ $this->budget = $budget;
+ }
+ public function getBudget()
+ {
+ return $this->budget;
+ }
+ public function setClientBillingCode($clientBillingCode)
+ {
+ $this->clientBillingCode = $clientBillingCode;
+ }
+ public function getClientBillingCode()
+ {
+ return $this->clientBillingCode;
+ }
+ public function setClientName($clientName)
+ {
+ $this->clientName = $clientName;
+ }
+ public function getClientName()
+ {
+ return $this->clientName;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOverview($overview)
+ {
+ $this->overview = $overview;
+ }
+ public function getOverview()
+ {
+ return $this->overview;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTargetClicks($targetClicks)
+ {
+ $this->targetClicks = $targetClicks;
+ }
+ public function getTargetClicks()
+ {
+ return $this->targetClicks;
+ }
+ public function setTargetConversions($targetConversions)
+ {
+ $this->targetConversions = $targetConversions;
+ }
+ public function getTargetConversions()
+ {
+ return $this->targetConversions;
+ }
+ public function setTargetCpaNanos($targetCpaNanos)
+ {
+ $this->targetCpaNanos = $targetCpaNanos;
+ }
+ public function getTargetCpaNanos()
+ {
+ return $this->targetCpaNanos;
+ }
+ public function setTargetCpcNanos($targetCpcNanos)
+ {
+ $this->targetCpcNanos = $targetCpcNanos;
+ }
+ public function getTargetCpcNanos()
+ {
+ return $this->targetCpcNanos;
+ }
+ public function setTargetCpmActiveViewNanos($targetCpmActiveViewNanos)
+ {
+ $this->targetCpmActiveViewNanos = $targetCpmActiveViewNanos;
+ }
+ public function getTargetCpmActiveViewNanos()
+ {
+ return $this->targetCpmActiveViewNanos;
+ }
+ public function setTargetCpmNanos($targetCpmNanos)
+ {
+ $this->targetCpmNanos = $targetCpmNanos;
+ }
+ public function getTargetCpmNanos()
+ {
+ return $this->targetCpmNanos;
+ }
+ public function setTargetImpressions($targetImpressions)
+ {
+ $this->targetImpressions = $targetImpressions;
+ }
+ public function getTargetImpressions()
+ {
+ return $this->targetImpressions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ProjectsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ProjectsListResponse.php
new file mode 100644
index 00000000..2fa5d6bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ProjectsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ProjectsListResponse extends Google_Collection
+{
+ protected $collection_key = 'projects';
+ public $kind;
+ public $nextPageToken;
+ protected $projectsType = 'Google_Service_Dfareporting_Project';
+ protected $projectsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setProjects($projects)
+ {
+ $this->projects = $projects;
+ }
+ public function getProjects()
+ {
+ return $this->projects;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReachReportCompatibleFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReachReportCompatibleFields.php
new file mode 100644
index 00000000..5909785d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReachReportCompatibleFields.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection
+{
+ protected $collection_key = 'reachByFrequencyMetrics';
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionFiltersDataType = 'array';
+ protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionsDataType = 'array';
+ public $kind;
+ protected $metricsType = 'Google_Service_Dfareporting_Metric';
+ protected $metricsDataType = 'array';
+ protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric';
+ protected $pivotedActivityMetricsDataType = 'array';
+ protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric';
+ protected $reachByFrequencyMetricsDataType = 'array';
+
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setPivotedActivityMetrics($pivotedActivityMetrics)
+ {
+ $this->pivotedActivityMetrics = $pivotedActivityMetrics;
+ }
+ public function getPivotedActivityMetrics()
+ {
+ return $this->pivotedActivityMetrics;
+ }
+ public function setReachByFrequencyMetrics($reachByFrequencyMetrics)
+ {
+ $this->reachByFrequencyMetrics = $reachByFrequencyMetrics;
+ }
+ public function getReachByFrequencyMetrics()
+ {
+ return $this->reachByFrequencyMetrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Recipient.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Recipient.php
new file mode 100644
index 00000000..a802e2d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Recipient.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Recipient extends Google_Model
+{
+ public $deliveryType;
+ public $email;
+ public $kind;
+
+ public function setDeliveryType($deliveryType)
+ {
+ $this->deliveryType = $deliveryType;
+ }
+ public function getDeliveryType()
+ {
+ return $this->deliveryType;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Region.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Region.php
new file mode 100644
index 00000000..91d986a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Region.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Region extends Google_Model
+{
+ public $countryCode;
+ public $countryDartId;
+ public $dartId;
+ public $kind;
+ public $name;
+ public $regionCode;
+
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCountryDartId($countryDartId)
+ {
+ $this->countryDartId = $countryDartId;
+ }
+ public function getCountryDartId()
+ {
+ return $this->countryDartId;
+ }
+ public function setDartId($dartId)
+ {
+ $this->dartId = $dartId;
+ }
+ public function getDartId()
+ {
+ return $this->dartId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRegionCode($regionCode)
+ {
+ $this->regionCode = $regionCode;
+ }
+ public function getRegionCode()
+ {
+ return $this->regionCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RegionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RegionsListResponse.php
new file mode 100644
index 00000000..df314e88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RegionsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'regions';
+ public $kind;
+ protected $regionsType = 'Google_Service_Dfareporting_Region';
+ protected $regionsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRegions($regions)
+ {
+ $this->regions = $regions;
+ }
+ public function getRegions()
+ {
+ return $this->regions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingList.php
new file mode 100644
index 00000000..2a98707d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingList.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_RemarketingList extends Google_Model
+{
+ public $accountId;
+ public $active;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $lifeSpan;
+ protected $listPopulationRuleType = 'Google_Service_Dfareporting_ListPopulationRule';
+ protected $listPopulationRuleDataType = '';
+ public $listSize;
+ public $listSource;
+ public $name;
+ public $subaccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLifeSpan($lifeSpan)
+ {
+ $this->lifeSpan = $lifeSpan;
+ }
+ public function getLifeSpan()
+ {
+ return $this->lifeSpan;
+ }
+ public function setListPopulationRule(Google_Service_Dfareporting_ListPopulationRule $listPopulationRule)
+ {
+ $this->listPopulationRule = $listPopulationRule;
+ }
+ public function getListPopulationRule()
+ {
+ return $this->listPopulationRule;
+ }
+ public function setListSize($listSize)
+ {
+ $this->listSize = $listSize;
+ }
+ public function getListSize()
+ {
+ return $this->listSize;
+ }
+ public function setListSource($listSource)
+ {
+ $this->listSource = $listSource;
+ }
+ public function getListSource()
+ {
+ return $this->listSource;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListShare.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListShare.php
new file mode 100644
index 00000000..17be3a9e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListShare.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_RemarketingListShare extends Google_Collection
+{
+ protected $collection_key = 'sharedAdvertiserIds';
+ public $kind;
+ public $remarketingListId;
+ public $sharedAccountIds;
+ public $sharedAdvertiserIds;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRemarketingListId($remarketingListId)
+ {
+ $this->remarketingListId = $remarketingListId;
+ }
+ public function getRemarketingListId()
+ {
+ return $this->remarketingListId;
+ }
+ public function setSharedAccountIds($sharedAccountIds)
+ {
+ $this->sharedAccountIds = $sharedAccountIds;
+ }
+ public function getSharedAccountIds()
+ {
+ return $this->sharedAccountIds;
+ }
+ public function setSharedAdvertiserIds($sharedAdvertiserIds)
+ {
+ $this->sharedAdvertiserIds = $sharedAdvertiserIds;
+ }
+ public function getSharedAdvertiserIds()
+ {
+ return $this->sharedAdvertiserIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListsListResponse.php
new file mode 100644
index 00000000..bce9de6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RemarketingListsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_RemarketingListsListResponse extends Google_Collection
+{
+ protected $collection_key = 'remarketingLists';
+ public $kind;
+ public $nextPageToken;
+ protected $remarketingListsType = 'Google_Service_Dfareporting_RemarketingList';
+ protected $remarketingListsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setRemarketingLists($remarketingLists)
+ {
+ $this->remarketingLists = $remarketingLists;
+ }
+ public function getRemarketingLists()
+ {
+ return $this->remarketingLists;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Report.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Report.php
new file mode 100644
index 00000000..a31b1674
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Report.php
@@ -0,0 +1,190 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Report extends Google_Model
+{
+ public $accountId;
+ protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria';
+ protected $criteriaDataType = '';
+ protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria';
+ protected $crossDimensionReachCriteriaDataType = '';
+ protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery';
+ protected $deliveryDataType = '';
+ public $etag;
+ public $fileName;
+ protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria';
+ protected $floodlightCriteriaDataType = '';
+ public $format;
+ public $id;
+ public $kind;
+ public $lastModifiedTime;
+ public $name;
+ public $ownerProfileId;
+ protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria';
+ protected $pathToConversionCriteriaDataType = '';
+ protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria';
+ protected $reachCriteriaDataType = '';
+ protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule';
+ protected $scheduleDataType = '';
+ public $subAccountId;
+ public $type;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria)
+ {
+ $this->criteria = $criteria;
+ }
+ public function getCriteria()
+ {
+ return $this->criteria;
+ }
+ public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_ReportCrossDimensionReachCriteria $crossDimensionReachCriteria)
+ {
+ $this->crossDimensionReachCriteria = $crossDimensionReachCriteria;
+ }
+ public function getCrossDimensionReachCriteria()
+ {
+ return $this->crossDimensionReachCriteria;
+ }
+ public function setDelivery(Google_Service_Dfareporting_ReportDelivery $delivery)
+ {
+ $this->delivery = $delivery;
+ }
+ public function getDelivery()
+ {
+ return $this->delivery;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+ public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlightCriteria $floodlightCriteria)
+ {
+ $this->floodlightCriteria = $floodlightCriteria;
+ }
+ public function getFloodlightCriteria()
+ {
+ return $this->floodlightCriteria;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedTime($lastModifiedTime)
+ {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime()
+ {
+ return $this->lastModifiedTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwnerProfileId($ownerProfileId)
+ {
+ $this->ownerProfileId = $ownerProfileId;
+ }
+ public function getOwnerProfileId()
+ {
+ return $this->ownerProfileId;
+ }
+ public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPathToConversionCriteria $pathToConversionCriteria)
+ {
+ $this->pathToConversionCriteria = $pathToConversionCriteria;
+ }
+ public function getPathToConversionCriteria()
+ {
+ return $this->pathToConversionCriteria;
+ }
+ public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria $reachCriteria)
+ {
+ $this->reachCriteria = $reachCriteria;
+ }
+ public function getReachCriteria()
+ {
+ return $this->reachCriteria;
+ }
+ public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule)
+ {
+ $this->schedule = $schedule;
+ }
+ public function getSchedule()
+ {
+ return $this->schedule;
+ }
+ public function setSubAccountId($subAccountId)
+ {
+ $this->subAccountId = $subAccountId;
+ }
+ public function getSubAccountId()
+ {
+ return $this->subAccountId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCompatibleFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCompatibleFields.php
new file mode 100644
index 00000000..c21df0aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCompatibleFields.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection
+{
+ protected $collection_key = 'pivotedActivityMetrics';
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionFiltersDataType = 'array';
+ protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionsDataType = 'array';
+ public $kind;
+ protected $metricsType = 'Google_Service_Dfareporting_Metric';
+ protected $metricsDataType = 'array';
+ protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric';
+ protected $pivotedActivityMetricsDataType = 'array';
+
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setPivotedActivityMetrics($pivotedActivityMetrics)
+ {
+ $this->pivotedActivityMetrics = $pivotedActivityMetrics;
+ }
+ public function getPivotedActivityMetrics()
+ {
+ return $this->pivotedActivityMetrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCriteria.php
new file mode 100644
index 00000000..1b740bd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCriteria.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportCriteria extends Google_Collection
+{
+ protected $collection_key = 'metricNames';
+ protected $activitiesType = 'Google_Service_Dfareporting_Activities';
+ protected $activitiesDataType = '';
+ protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents';
+ protected $customRichMediaEventsDataType = '';
+ protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $dateRangeDataType = '';
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $dimensionFiltersDataType = 'array';
+ protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $dimensionsDataType = 'array';
+ public $metricNames;
+
+ public function setActivities(Google_Service_Dfareporting_Activities $activities)
+ {
+ $this->activities = $activities;
+ }
+ public function getActivities()
+ {
+ return $this->activities;
+ }
+ public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents)
+ {
+ $this->customRichMediaEvents = $customRichMediaEvents;
+ }
+ public function getCustomRichMediaEvents()
+ {
+ return $this->customRichMediaEvents;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
+ {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange()
+ {
+ return $this->dateRange;
+ }
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setMetricNames($metricNames)
+ {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames()
+ {
+ return $this->metricNames;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCrossDimensionReachCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCrossDimensionReachCriteria.php
new file mode 100644
index 00000000..e896f436
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportCrossDimensionReachCriteria.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection
+{
+ protected $collection_key = 'overlapMetricNames';
+ protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $breakdownDataType = 'array';
+ protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $dateRangeDataType = '';
+ public $dimension;
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $dimensionFiltersDataType = 'array';
+ public $metricNames;
+ public $overlapMetricNames;
+ public $pivoted;
+
+ public function setBreakdown($breakdown)
+ {
+ $this->breakdown = $breakdown;
+ }
+ public function getBreakdown()
+ {
+ return $this->breakdown;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
+ {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange()
+ {
+ return $this->dateRange;
+ }
+ public function setDimension($dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setMetricNames($metricNames)
+ {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames()
+ {
+ return $this->metricNames;
+ }
+ public function setOverlapMetricNames($overlapMetricNames)
+ {
+ $this->overlapMetricNames = $overlapMetricNames;
+ }
+ public function getOverlapMetricNames()
+ {
+ return $this->overlapMetricNames;
+ }
+ public function setPivoted($pivoted)
+ {
+ $this->pivoted = $pivoted;
+ }
+ public function getPivoted()
+ {
+ return $this->pivoted;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportDelivery.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportDelivery.php
new file mode 100644
index 00000000..1788b2b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportDelivery.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportDelivery extends Google_Collection
+{
+ protected $collection_key = 'recipients';
+ public $emailOwner;
+ public $emailOwnerDeliveryType;
+ public $message;
+ protected $recipientsType = 'Google_Service_Dfareporting_Recipient';
+ protected $recipientsDataType = 'array';
+
+ public function setEmailOwner($emailOwner)
+ {
+ $this->emailOwner = $emailOwner;
+ }
+ public function getEmailOwner()
+ {
+ return $this->emailOwner;
+ }
+ public function setEmailOwnerDeliveryType($emailOwnerDeliveryType)
+ {
+ $this->emailOwnerDeliveryType = $emailOwnerDeliveryType;
+ }
+ public function getEmailOwnerDeliveryType()
+ {
+ return $this->emailOwnerDeliveryType;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setRecipients($recipients)
+ {
+ $this->recipients = $recipients;
+ }
+ public function getRecipients()
+ {
+ return $this->recipients;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteria.php
new file mode 100644
index 00000000..6e82ad1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteria.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection
+{
+ protected $collection_key = 'metricNames';
+ protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $customRichMediaEventsDataType = 'array';
+ protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $dateRangeDataType = '';
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $dimensionFiltersDataType = 'array';
+ protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $dimensionsDataType = 'array';
+ protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $floodlightConfigIdDataType = '';
+ public $metricNames;
+ protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties';
+ protected $reportPropertiesDataType = '';
+
+ public function setCustomRichMediaEvents($customRichMediaEvents)
+ {
+ $this->customRichMediaEvents = $customRichMediaEvents;
+ }
+ public function getCustomRichMediaEvents()
+ {
+ return $this->customRichMediaEvents;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
+ {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange()
+ {
+ return $this->dateRange;
+ }
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId)
+ {
+ $this->floodlightConfigId = $floodlightConfigId;
+ }
+ public function getFloodlightConfigId()
+ {
+ return $this->floodlightConfigId;
+ }
+ public function setMetricNames($metricNames)
+ {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames()
+ {
+ return $this->metricNames;
+ }
+ public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties)
+ {
+ $this->reportProperties = $reportProperties;
+ }
+ public function getReportProperties()
+ {
+ return $this->reportProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteriaReportProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteriaReportProperties.php
new file mode 100644
index 00000000..5f6bb423
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportFloodlightCriteriaReportProperties.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model
+{
+ public $includeAttributedIPConversions;
+ public $includeUnattributedCookieConversions;
+ public $includeUnattributedIPConversions;
+
+ public function setIncludeAttributedIPConversions($includeAttributedIPConversions)
+ {
+ $this->includeAttributedIPConversions = $includeAttributedIPConversions;
+ }
+ public function getIncludeAttributedIPConversions()
+ {
+ return $this->includeAttributedIPConversions;
+ }
+ public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions)
+ {
+ $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions;
+ }
+ public function getIncludeUnattributedCookieConversions()
+ {
+ return $this->includeUnattributedCookieConversions;
+ }
+ public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions)
+ {
+ $this->includeUnattributedIPConversions = $includeUnattributedIPConversions;
+ }
+ public function getIncludeUnattributedIPConversions()
+ {
+ return $this->includeUnattributedIPConversions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportList.php
new file mode 100644
index 00000000..d551c362
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Dfareporting_Report';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteria.php
new file mode 100644
index 00000000..ba8f19f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteria.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection
+{
+ protected $collection_key = 'perInteractionDimensions';
+ protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $activityFiltersDataType = 'array';
+ protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $conversionDimensionsDataType = 'array';
+ protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $customFloodlightVariablesDataType = 'array';
+ protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $customRichMediaEventsDataType = 'array';
+ protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $dateRangeDataType = '';
+ protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $floodlightConfigIdDataType = '';
+ public $metricNames;
+ protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $perInteractionDimensionsDataType = 'array';
+ protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties';
+ protected $reportPropertiesDataType = '';
+
+ public function setActivityFilters($activityFilters)
+ {
+ $this->activityFilters = $activityFilters;
+ }
+ public function getActivityFilters()
+ {
+ return $this->activityFilters;
+ }
+ public function setConversionDimensions($conversionDimensions)
+ {
+ $this->conversionDimensions = $conversionDimensions;
+ }
+ public function getConversionDimensions()
+ {
+ return $this->conversionDimensions;
+ }
+ public function setCustomFloodlightVariables($customFloodlightVariables)
+ {
+ $this->customFloodlightVariables = $customFloodlightVariables;
+ }
+ public function getCustomFloodlightVariables()
+ {
+ return $this->customFloodlightVariables;
+ }
+ public function setCustomRichMediaEvents($customRichMediaEvents)
+ {
+ $this->customRichMediaEvents = $customRichMediaEvents;
+ }
+ public function getCustomRichMediaEvents()
+ {
+ return $this->customRichMediaEvents;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
+ {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange()
+ {
+ return $this->dateRange;
+ }
+ public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId)
+ {
+ $this->floodlightConfigId = $floodlightConfigId;
+ }
+ public function getFloodlightConfigId()
+ {
+ return $this->floodlightConfigId;
+ }
+ public function setMetricNames($metricNames)
+ {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames()
+ {
+ return $this->metricNames;
+ }
+ public function setPerInteractionDimensions($perInteractionDimensions)
+ {
+ $this->perInteractionDimensions = $perInteractionDimensions;
+ }
+ public function getPerInteractionDimensions()
+ {
+ return $this->perInteractionDimensions;
+ }
+ public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties)
+ {
+ $this->reportProperties = $reportProperties;
+ }
+ public function getReportProperties()
+ {
+ return $this->reportProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteriaReportProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteriaReportProperties.php
new file mode 100644
index 00000000..f6e4ef30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportPathToConversionCriteriaReportProperties.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model
+{
+ public $clicksLookbackWindow;
+ public $impressionsLookbackWindow;
+ public $includeAttributedIPConversions;
+ public $includeUnattributedCookieConversions;
+ public $includeUnattributedIPConversions;
+ public $maximumClickInteractions;
+ public $maximumImpressionInteractions;
+ public $maximumInteractionGap;
+ public $pivotOnInteractionPath;
+
+ public function setClicksLookbackWindow($clicksLookbackWindow)
+ {
+ $this->clicksLookbackWindow = $clicksLookbackWindow;
+ }
+ public function getClicksLookbackWindow()
+ {
+ return $this->clicksLookbackWindow;
+ }
+ public function setImpressionsLookbackWindow($impressionsLookbackWindow)
+ {
+ $this->impressionsLookbackWindow = $impressionsLookbackWindow;
+ }
+ public function getImpressionsLookbackWindow()
+ {
+ return $this->impressionsLookbackWindow;
+ }
+ public function setIncludeAttributedIPConversions($includeAttributedIPConversions)
+ {
+ $this->includeAttributedIPConversions = $includeAttributedIPConversions;
+ }
+ public function getIncludeAttributedIPConversions()
+ {
+ return $this->includeAttributedIPConversions;
+ }
+ public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions)
+ {
+ $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions;
+ }
+ public function getIncludeUnattributedCookieConversions()
+ {
+ return $this->includeUnattributedCookieConversions;
+ }
+ public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions)
+ {
+ $this->includeUnattributedIPConversions = $includeUnattributedIPConversions;
+ }
+ public function getIncludeUnattributedIPConversions()
+ {
+ return $this->includeUnattributedIPConversions;
+ }
+ public function setMaximumClickInteractions($maximumClickInteractions)
+ {
+ $this->maximumClickInteractions = $maximumClickInteractions;
+ }
+ public function getMaximumClickInteractions()
+ {
+ return $this->maximumClickInteractions;
+ }
+ public function setMaximumImpressionInteractions($maximumImpressionInteractions)
+ {
+ $this->maximumImpressionInteractions = $maximumImpressionInteractions;
+ }
+ public function getMaximumImpressionInteractions()
+ {
+ return $this->maximumImpressionInteractions;
+ }
+ public function setMaximumInteractionGap($maximumInteractionGap)
+ {
+ $this->maximumInteractionGap = $maximumInteractionGap;
+ }
+ public function getMaximumInteractionGap()
+ {
+ return $this->maximumInteractionGap;
+ }
+ public function setPivotOnInteractionPath($pivotOnInteractionPath)
+ {
+ $this->pivotOnInteractionPath = $pivotOnInteractionPath;
+ }
+ public function getPivotOnInteractionPath()
+ {
+ return $this->pivotOnInteractionPath;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportReachCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportReachCriteria.php
new file mode 100644
index 00000000..959ed9a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportReachCriteria.php
@@ -0,0 +1,99 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection
+{
+ protected $collection_key = 'reachByFrequencyMetricNames';
+ protected $activitiesType = 'Google_Service_Dfareporting_Activities';
+ protected $activitiesDataType = '';
+ protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents';
+ protected $customRichMediaEventsDataType = '';
+ protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $dateRangeDataType = '';
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $dimensionFiltersDataType = 'array';
+ protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $dimensionsDataType = 'array';
+ public $enableAllDimensionCombinations;
+ public $metricNames;
+ public $reachByFrequencyMetricNames;
+
+ public function setActivities(Google_Service_Dfareporting_Activities $activities)
+ {
+ $this->activities = $activities;
+ }
+ public function getActivities()
+ {
+ return $this->activities;
+ }
+ public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents)
+ {
+ $this->customRichMediaEvents = $customRichMediaEvents;
+ }
+ public function getCustomRichMediaEvents()
+ {
+ return $this->customRichMediaEvents;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
+ {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange()
+ {
+ return $this->dateRange;
+ }
+ public function setDimensionFilters($dimensionFilters)
+ {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters()
+ {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setEnableAllDimensionCombinations($enableAllDimensionCombinations)
+ {
+ $this->enableAllDimensionCombinations = $enableAllDimensionCombinations;
+ }
+ public function getEnableAllDimensionCombinations()
+ {
+ return $this->enableAllDimensionCombinations;
+ }
+ public function setMetricNames($metricNames)
+ {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames()
+ {
+ return $this->metricNames;
+ }
+ public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames)
+ {
+ $this->reachByFrequencyMetricNames = $reachByFrequencyMetricNames;
+ }
+ public function getReachByFrequencyMetricNames()
+ {
+ return $this->reachByFrequencyMetricNames;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportSchedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportSchedule.php
new file mode 100644
index 00000000..61724d02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportSchedule.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportSchedule extends Google_Collection
+{
+ protected $collection_key = 'repeatsOnWeekDays';
+ public $active;
+ public $every;
+ public $expirationDate;
+ public $repeats;
+ public $repeatsOnWeekDays;
+ public $runsOnDayOfMonth;
+ public $startDate;
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setEvery($every)
+ {
+ $this->every = $every;
+ }
+ public function getEvery()
+ {
+ return $this->every;
+ }
+ public function setExpirationDate($expirationDate)
+ {
+ $this->expirationDate = $expirationDate;
+ }
+ public function getExpirationDate()
+ {
+ return $this->expirationDate;
+ }
+ public function setRepeats($repeats)
+ {
+ $this->repeats = $repeats;
+ }
+ public function getRepeats()
+ {
+ return $this->repeats;
+ }
+ public function setRepeatsOnWeekDays($repeatsOnWeekDays)
+ {
+ $this->repeatsOnWeekDays = $repeatsOnWeekDays;
+ }
+ public function getRepeatsOnWeekDays()
+ {
+ return $this->repeatsOnWeekDays;
+ }
+ public function setRunsOnDayOfMonth($runsOnDayOfMonth)
+ {
+ $this->runsOnDayOfMonth = $runsOnDayOfMonth;
+ }
+ public function getRunsOnDayOfMonth()
+ {
+ return $this->runsOnDayOfMonth;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportsConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportsConfiguration.php
new file mode 100644
index 00000000..9b40a574
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ReportsConfiguration.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ReportsConfiguration extends Google_Model
+{
+ public $exposureToConversionEnabled;
+ protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration';
+ protected $lookbackConfigurationDataType = '';
+ public $reportGenerationTimeZoneId;
+
+ public function setExposureToConversionEnabled($exposureToConversionEnabled)
+ {
+ $this->exposureToConversionEnabled = $exposureToConversionEnabled;
+ }
+ public function getExposureToConversionEnabled()
+ {
+ return $this->exposureToConversionEnabled;
+ }
+ public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration)
+ {
+ $this->lookbackConfiguration = $lookbackConfiguration;
+ }
+ public function getLookbackConfiguration()
+ {
+ return $this->lookbackConfiguration;
+ }
+ public function setReportGenerationTimeZoneId($reportGenerationTimeZoneId)
+ {
+ $this->reportGenerationTimeZoneId = $reportGenerationTimeZoneId;
+ }
+ public function getReportGenerationTimeZoneId()
+ {
+ return $this->reportGenerationTimeZoneId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountActiveAdSummaries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountActiveAdSummaries.php
new file mode 100644
index 00000000..03afb6ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountActiveAdSummaries.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountActiveAdSummaries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $accountActiveAdSummaries = $dfareportingService->accountActiveAdSummaries;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_AccountActiveAdSummaries extends Google_Service_Resource
+{
+ /**
+ * Gets the account's active ad summary by account ID.
+ * (accountActiveAdSummaries.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $summaryAccountId Account ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountActiveAdSummary
+ */
+ public function get($profileId, $summaryAccountId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'summaryAccountId' => $summaryAccountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_AccountActiveAdSummary");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissionGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissionGroups.php
new file mode 100644
index 00000000..a63efce5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissionGroups.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountPermissionGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $accountPermissionGroups = $dfareportingService->accountPermissionGroups;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_AccountPermissionGroups extends Google_Service_Resource
+{
+ /**
+ * Gets one account permission group by ID. (accountPermissionGroups.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Account permission group ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountPermissionGroup
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermissionGroup");
+ }
+ /**
+ * Retrieves the list of account permission groups.
+ * (accountPermissionGroups.listAccountPermissionGroups)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountPermissionGroupsListResponse
+ */
+ public function listAccountPermissionGroups($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionGroupsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissions.php
new file mode 100644
index 00000000..ccc70f62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountPermissions.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountPermissions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $accountPermissions = $dfareportingService->accountPermissions;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_AccountPermissions extends Google_Service_Resource
+{
+ /**
+ * Gets one account permission by ID. (accountPermissions.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Account permission ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountPermission
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermission");
+ }
+ /**
+ * Retrieves the list of account permissions.
+ * (accountPermissions.listAccountPermissions)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountPermissionsListResponse
+ */
+ public function listAccountPermissions($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountUserProfiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountUserProfiles.php
new file mode 100644
index 00000000..4dbd6f9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AccountUserProfiles.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountUserProfiles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $accountUserProfiles = $dfareportingService->accountUserProfiles;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_AccountUserProfiles extends Google_Service_Resource
+{
+ /**
+ * Gets one account user profile by ID. (accountUserProfiles.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id User profile ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountUserProfile
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_AccountUserProfile");
+ }
+ /**
+ * Inserts a new account user profile. (accountUserProfiles.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_AccountUserProfile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountUserProfile
+ */
+ public function insert($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_AccountUserProfile");
+ }
+ /**
+ * Retrieves a list of account user profiles, possibly filtered. This method
+ * supports paging. (accountUserProfiles.listAccountUserProfiles)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool active Select only active user profiles.
+ * @opt_param string ids Select only user profiles with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name, ID or
+ * email. Wildcards (*) are allowed. For example, "user profile*2015" will
+ * return objects with names like "user profile June 2015", "user profile April
+ * 2015", or simply "user profile 2015". Most of the searches also add wildcards
+ * implicitly at the start and the end of the search string. For example, a
+ * search string of "user profile" will match objects with name "my user
+ * profile", "user profile 2015", or simply "user profile".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string subaccountId Select only user profiles with the specified
+ * subaccount ID.
+ * @opt_param string userRoleId Select only user profiles with the specified
+ * user role ID.
+ * @return Google_Service_Dfareporting_AccountUserProfilesListResponse
+ */
+ public function listAccountUserProfiles($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_AccountUserProfilesListResponse");
+ }
+ /**
+ * Updates an existing account user profile. This method supports patch
+ * semantics. (accountUserProfiles.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id User profile ID.
+ * @param Google_Service_Dfareporting_AccountUserProfile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountUserProfile
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_AccountUserProfile");
+ }
+ /**
+ * Updates an existing account user profile. (accountUserProfiles.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_AccountUserProfile $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AccountUserProfile
+ */
+ public function update($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_AccountUserProfile");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Accounts.php
new file mode 100644
index 00000000..ae6b22f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Accounts.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $accounts = $dfareportingService->accounts;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Gets one account by ID. (accounts.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Account ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Account
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Account");
+ }
+ /**
+ * Retrieves the list of accounts, possibly filtered. This method supports
+ * paging. (accounts.listAccounts)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool active Select only active accounts. Don't set this field to
+ * select both active and non-active accounts.
+ * @opt_param string ids Select only accounts with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "account*2015" will return objects
+ * with names like "account June 2015", "account April 2015", or simply "account
+ * 2015". Most of the searches also add wildcards implicitly at the start and
+ * the end of the search string. For example, a search string of "account" will
+ * match objects with name "my account", "account 2015", or simply "account".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_AccountsListResponse
+ */
+ public function listAccounts($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_AccountsListResponse");
+ }
+ /**
+ * Updates an existing account. This method supports patch semantics.
+ * (accounts.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Account ID.
+ * @param Google_Service_Dfareporting_Account $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Account
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Account $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Account");
+ }
+ /**
+ * Updates an existing account. (accounts.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Account $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Account
+ */
+ public function update($profileId, Google_Service_Dfareporting_Account $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Account");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Ads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Ads.php
new file mode 100644
index 00000000..b899e84d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Ads.php
@@ -0,0 +1,143 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "ads" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $ads = $dfareportingService->ads;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Ads extends Google_Service_Resource
+{
+ /**
+ * Gets one ad by ID. (ads.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Ad ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Ad
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Ad");
+ }
+ /**
+ * Inserts a new ad. (ads.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Ad $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Ad
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Ad");
+ }
+ /**
+ * Retrieves a list of ads, possibly filtered. This method supports paging.
+ * (ads.listAds)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool active Select only active ads.
+ * @opt_param string advertiserId Select only ads with this advertiser ID.
+ * @opt_param bool archived Select only archived ads.
+ * @opt_param string audienceSegmentIds Select only ads with these audience
+ * segment IDs.
+ * @opt_param string campaignIds Select only ads with these campaign IDs.
+ * @opt_param string compatibility Select default ads with the specified
+ * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and
+ * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile
+ * devices for regular or interstitial ads, respectively. APP and
+ * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to
+ * rendering an in-stream video ads developed with the VAST standard.
+ * @opt_param string creativeIds Select only ads with these creative IDs
+ * assigned.
+ * @opt_param string creativeOptimizationConfigurationIds Select only ads with
+ * these creative optimization configuration IDs.
+ * @opt_param bool dynamicClickTracker Select only dynamic click trackers.
+ * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic
+ * click trackers. If false, select static click trackers. Leave unset to select
+ * both.
+ * @opt_param string ids Select only ads with these IDs.
+ * @opt_param string landingPageIds Select only ads with these landing page IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string overriddenEventTagId Select only ads with this event tag
+ * override ID.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string placementIds Select only ads with these placement IDs
+ * assigned.
+ * @opt_param string remarketingListIds Select only ads whose list targeting
+ * expression use these remarketing list IDs.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "ad*2015" will return objects with
+ * names like "ad June 2015", "ad April 2015", or simply "ad 2015". Most of the
+ * searches also add wildcards implicitly at the start and the end of the search
+ * string. For example, a search string of "ad" will match objects with name "my
+ * ad", "ad 2015", or simply "ad".
+ * @opt_param string sizeIds Select only ads with these size IDs.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param bool sslCompliant Select only ads that are SSL-compliant.
+ * @opt_param bool sslRequired Select only ads that require SSL.
+ * @opt_param string type Select only ads with these types.
+ * @return Google_Service_Dfareporting_AdsListResponse
+ */
+ public function listAds($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_AdsListResponse");
+ }
+ /**
+ * Updates an existing ad. This method supports patch semantics. (ads.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Ad ID.
+ * @param Google_Service_Dfareporting_Ad $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Ad
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Ad $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Ad");
+ }
+ /**
+ * Updates an existing ad. (ads.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Ad $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Ad
+ */
+ public function update($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Ad");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserGroups.php
new file mode 100644
index 00000000..66ddb8b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/AdvertiserGroups.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "advertiserGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $advertiserGroups = $dfareportingService->advertiserGroups;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_AdvertiserGroups extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing advertiser group. (advertiserGroups.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Advertiser group ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one advertiser group by ID. (advertiserGroups.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Advertiser group ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AdvertiserGroup
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_AdvertiserGroup");
+ }
+ /**
+ * Inserts a new advertiser group. (advertiserGroups.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_AdvertiserGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AdvertiserGroup
+ */
+ public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_AdvertiserGroup");
+ }
+ /**
+ * Retrieves a list of advertiser groups, possibly filtered. This method
+ * supports paging. (advertiserGroups.listAdvertiserGroups)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only advertiser groups with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects
+ * with names like "advertiser group June 2015", "advertiser group April 2015",
+ * or simply "advertiser group 2015". Most of the searches also add wildcards
+ * implicitly at the start and the end of the search string. For example, a
+ * search string of "advertisergroup" will match objects with name "my
+ * advertisergroup", "advertisergroup 2015", or simply "advertisergroup".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse
+ */
+ public function listAdvertiserGroups($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertiserGroupsListResponse");
+ }
+ /**
+ * Updates an existing advertiser group. This method supports patch semantics.
+ * (advertiserGroups.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Advertiser group ID.
+ * @param Google_Service_Dfareporting_AdvertiserGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AdvertiserGroup
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_AdvertiserGroup");
+ }
+ /**
+ * Updates an existing advertiser group. (advertiserGroups.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_AdvertiserGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_AdvertiserGroup
+ */
+ public function update($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_AdvertiserGroup");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Advertisers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Advertisers.php
new file mode 100644
index 00000000..adf14824
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Advertisers.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "advertisers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $advertisers = $dfareportingService->advertisers;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Advertisers extends Google_Service_Resource
+{
+ /**
+ * Gets one advertiser by ID. (advertisers.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Advertiser ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Advertiser
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Advertiser");
+ }
+ /**
+ * Inserts a new advertiser. (advertisers.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Advertiser $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Advertiser
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Advertiser");
+ }
+ /**
+ * Retrieves a list of advertisers, possibly filtered. This method supports
+ * paging. (advertisers.listAdvertisers)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserGroupIds Select only advertisers with these
+ * advertiser group IDs.
+ * @opt_param string floodlightConfigurationIds Select only advertisers with
+ * these floodlight configuration IDs.
+ * @opt_param string ids Select only advertisers with these IDs.
+ * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers
+ * which do not belong to any advertiser group.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param bool onlyParent Select only advertisers which use another
+ * advertiser's floodlight configuration.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects
+ * with names like "advertiser June 2015", "advertiser April 2015", or simply
+ * "advertiser 2015". Most of the searches also add wildcards implicitly at the
+ * start and the end of the search string. For example, a search string of
+ * "advertiser" will match objects with name "my advertiser", "advertiser 2015",
+ * or simply "advertiser".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string status Select only advertisers with the specified status.
+ * @opt_param string subaccountId Select only advertisers with these subaccount
+ * IDs.
+ * @return Google_Service_Dfareporting_AdvertisersListResponse
+ */
+ public function listAdvertisers($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertisersListResponse");
+ }
+ /**
+ * Updates an existing advertiser. This method supports patch semantics.
+ * (advertisers.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Advertiser ID.
+ * @param Google_Service_Dfareporting_Advertiser $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Advertiser
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Advertiser");
+ }
+ /**
+ * Updates an existing advertiser. (advertisers.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Advertiser $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Advertiser
+ */
+ public function update($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Advertiser");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Browsers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Browsers.php
new file mode 100644
index 00000000..c1cacb90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Browsers.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "browsers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $browsers = $dfareportingService->browsers;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Browsers extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of browsers. (browsers.listBrowsers)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_BrowsersListResponse
+ */
+ public function listBrowsers($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_BrowsersListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CampaignCreativeAssociations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CampaignCreativeAssociations.php
new file mode 100644
index 00000000..fe5912f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CampaignCreativeAssociations.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "campaignCreativeAssociations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $campaignCreativeAssociations = $dfareportingService->campaignCreativeAssociations;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_CampaignCreativeAssociations extends Google_Service_Resource
+{
+ /**
+ * Associates a creative with the specified campaign. This method creates a
+ * default ad with dimensions matching the creative in the campaign if such a
+ * default ad does not exist already. (campaignCreativeAssociations.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Campaign ID in this association.
+ * @param Google_Service_Dfareporting_CampaignCreativeAssociation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CampaignCreativeAssociation
+ */
+ public function insert($profileId, $campaignId, Google_Service_Dfareporting_CampaignCreativeAssociation $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociation");
+ }
+ /**
+ * Retrieves the list of creative IDs associated with the specified campaign.
+ * This method supports paging.
+ * (campaignCreativeAssociations.listCampaignCreativeAssociations)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Campaign ID in this association.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse
+ */
+ public function listCampaignCreativeAssociations($profileId, $campaignId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Campaigns.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Campaigns.php
new file mode 100644
index 00000000..c34969bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Campaigns.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "campaigns" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $campaigns = $dfareportingService->campaigns;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Campaigns extends Google_Service_Resource
+{
+ /**
+ * Gets one campaign by ID. (campaigns.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Campaign ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Campaign
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Campaign");
+ }
+ /**
+ * Inserts a new campaign. (campaigns.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $defaultLandingPageName Default landing page name for this new
+ * campaign. Must be less than 256 characters long.
+ * @param string $defaultLandingPageUrl Default landing page URL for this new
+ * campaign.
+ * @param Google_Service_Dfareporting_Campaign $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Campaign
+ */
+ public function insert($profileId, $defaultLandingPageName, $defaultLandingPageUrl, Google_Service_Dfareporting_Campaign $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'defaultLandingPageName' => $defaultLandingPageName, 'defaultLandingPageUrl' => $defaultLandingPageUrl, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Campaign");
+ }
+ /**
+ * Retrieves a list of campaigns, possibly filtered. This method supports
+ * paging. (campaigns.listCampaigns)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserGroupIds Select only campaigns whose advertisers
+ * belong to these advertiser groups.
+ * @opt_param string advertiserIds Select only campaigns that belong to these
+ * advertisers.
+ * @opt_param bool archived Select only archived campaigns. Don't set this field
+ * to select both archived and non-archived campaigns.
+ * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that
+ * have at least one optimization activity.
+ * @opt_param string excludedIds Exclude campaigns with these IDs.
+ * @opt_param string ids Select only campaigns with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string overriddenEventTagId Select only campaigns that have
+ * overridden this event tag ID.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for campaigns by name or ID.
+ * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns
+ * with names like "campaign June 2015", "campaign April 2015", or simply
+ * "campaign 2015". Most of the searches also add wildcards implicitly at the
+ * start and the end of the search string. For example, a search string of
+ * "campaign" will match campaigns with name "my campaign", "campaign 2015", or
+ * simply "campaign".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string subaccountId Select only campaigns that belong to this
+ * subaccount.
+ * @return Google_Service_Dfareporting_CampaignsListResponse
+ */
+ public function listCampaigns($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignsListResponse");
+ }
+ /**
+ * Updates an existing campaign. This method supports patch semantics.
+ * (campaigns.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Campaign ID.
+ * @param Google_Service_Dfareporting_Campaign $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Campaign
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Campaign $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Campaign");
+ }
+ /**
+ * Updates an existing campaign. (campaigns.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Campaign $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Campaign
+ */
+ public function update($profileId, Google_Service_Dfareporting_Campaign $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Campaign");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ChangeLogs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ChangeLogs.php
new file mode 100644
index 00000000..f35a7c6b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ChangeLogs.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "changeLogs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $changeLogs = $dfareportingService->changeLogs;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_ChangeLogs extends Google_Service_Resource
+{
+ /**
+ * Gets one change log by ID. (changeLogs.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Change log ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ChangeLog
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_ChangeLog");
+ }
+ /**
+ * Retrieves a list of change logs. This method supports paging.
+ * (changeLogs.listChangeLogs)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string action Select only change logs with the specified action.
+ * @opt_param string ids Select only change logs with these IDs.
+ * @opt_param string maxChangeTime Select only change logs whose change time is
+ * before the specified maxChangeTime.The time should be formatted as an RFC3339
+ * date/time string. For example, for 10:54 PM on July 18th, 2015, in the
+ * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In
+ * other words, the year, month, day, the letter T, the hour (24-hour clock
+ * system), minute, second, and then the time zone offset.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string minChangeTime Select only change logs whose change time is
+ * before the specified minChangeTime.The time should be formatted as an RFC3339
+ * date/time string. For example, for 10:54 PM on July 18th, 2015, in the
+ * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In
+ * other words, the year, month, day, the letter T, the hour (24-hour clock
+ * system), minute, second, and then the time zone offset.
+ * @opt_param string objectIds Select only change logs with these object IDs.
+ * @opt_param string objectType Select only change logs with the specified
+ * object type.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Select only change logs whose object ID, user
+ * name, old or new values match the search string.
+ * @opt_param string userProfileIds Select only change logs with these user
+ * profile IDs.
+ * @return Google_Service_Dfareporting_ChangeLogsListResponse
+ */
+ public function listChangeLogs($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_ChangeLogsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Cities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Cities.php
new file mode 100644
index 00000000..eb04d0d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Cities.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "cities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $cities = $dfareportingService->cities;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Cities extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of cities, possibly filtered. (cities.listCities)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string countryDartIds Select only cities from these countries.
+ * @opt_param string dartIds Select only cities with these DART IDs.
+ * @opt_param string namePrefix Select only cities with names starting with this
+ * prefix.
+ * @opt_param string regionDartIds Select only cities from these regions.
+ * @return Google_Service_Dfareporting_CitiesListResponse
+ */
+ public function listCities($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CitiesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ConnectionTypes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ConnectionTypes.php
new file mode 100644
index 00000000..f0e60ffb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ConnectionTypes.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "connectionTypes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $connectionTypes = $dfareportingService->connectionTypes;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_ConnectionTypes extends Google_Service_Resource
+{
+ /**
+ * Gets one connection type by ID. (connectionTypes.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Connection type ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ConnectionType
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_ConnectionType");
+ }
+ /**
+ * Retrieves a list of connection types. (connectionTypes.listConnectionTypes)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ConnectionTypesListResponse
+ */
+ public function listConnectionTypes($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_ConnectionTypesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ContentCategories.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ContentCategories.php
new file mode 100644
index 00000000..8d2bb3ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ContentCategories.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "contentCategories" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $contentCategories = $dfareportingService->contentCategories;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_ContentCategories extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing content category. (contentCategories.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Content category ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one content category by ID. (contentCategories.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Content category ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ContentCategory
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_ContentCategory");
+ }
+ /**
+ * Inserts a new content category. (contentCategories.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_ContentCategory $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ContentCategory
+ */
+ public function insert($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_ContentCategory");
+ }
+ /**
+ * Retrieves a list of content categories, possibly filtered. This method
+ * supports paging. (contentCategories.listContentCategories)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only content categories with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "contentcategory*2015" will return
+ * objects with names like "contentcategory June 2015", "contentcategory April
+ * 2015", or simply "contentcategory 2015". Most of the searches also add
+ * wildcards implicitly at the start and the end of the search string. For
+ * example, a search string of "contentcategory" will match objects with name
+ * "my contentcategory", "contentcategory 2015", or simply "contentcategory".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_ContentCategoriesListResponse
+ */
+ public function listContentCategories($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_ContentCategoriesListResponse");
+ }
+ /**
+ * Updates an existing content category. This method supports patch semantics.
+ * (contentCategories.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Content category ID.
+ * @param Google_Service_Dfareporting_ContentCategory $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ContentCategory
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_ContentCategory");
+ }
+ /**
+ * Updates an existing content category. (contentCategories.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_ContentCategory $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ContentCategory
+ */
+ public function update($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_ContentCategory");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Conversions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Conversions.php
new file mode 100644
index 00000000..70f5588b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Conversions.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "conversions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $conversions = $dfareportingService->conversions;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Conversions extends Google_Service_Resource
+{
+ /**
+ * Inserts conversions. (conversions.batchinsert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_ConversionsBatchInsertRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_ConversionsBatchInsertResponse
+ */
+ public function batchinsert($profileId, Google_Service_Dfareporting_ConversionsBatchInsertRequest $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchinsert', array($params), "Google_Service_Dfareporting_ConversionsBatchInsertResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Countries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Countries.php
new file mode 100644
index 00000000..92eb622d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Countries.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "countries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $countries = $dfareportingService->countries;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Countries extends Google_Service_Resource
+{
+ /**
+ * Gets one country by ID. (countries.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $dartId Country DART ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Country
+ */
+ public function get($profileId, $dartId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'dartId' => $dartId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Country");
+ }
+ /**
+ * Retrieves a list of countries. (countries.listCountries)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CountriesListResponse
+ */
+ public function listCountries($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CountriesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeAssets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeAssets.php
new file mode 100644
index 00000000..99cb9f71
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeAssets.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "creativeAssets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $creativeAssets = $dfareportingService->creativeAssets;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_CreativeAssets extends Google_Service_Resource
+{
+ /**
+ * Inserts a new creative asset. (creativeAssets.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $advertiserId Advertiser ID of this creative. This is a
+ * required field.
+ * @param Google_Service_Dfareporting_CreativeAssetMetadata $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeAssetMetadata
+ */
+ public function insert($profileId, $advertiserId, Google_Service_Dfareporting_CreativeAssetMetadata $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeAssetMetadata");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFieldValues.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFieldValues.php
new file mode 100644
index 00000000..50aa7aa0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFieldValues.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "creativeFieldValues" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $creativeFieldValues = $dfareportingService->creativeFieldValues;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_CreativeFieldValues extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing creative field value. (creativeFieldValues.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $creativeFieldId Creative field ID for this creative field
+ * value.
+ * @param string $id Creative Field Value ID
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $creativeFieldId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one creative field value by ID. (creativeFieldValues.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $creativeFieldId Creative field ID for this creative field
+ * value.
+ * @param string $id Creative Field Value ID
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeFieldValue
+ */
+ public function get($profileId, $creativeFieldId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeFieldValue");
+ }
+ /**
+ * Inserts a new creative field value. (creativeFieldValues.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $creativeFieldId Creative field ID for this creative field
+ * value.
+ * @param Google_Service_Dfareporting_CreativeFieldValue $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeFieldValue
+ */
+ public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeFieldValue");
+ }
+ /**
+ * Retrieves a list of creative field values, possibly filtered. This method
+ * supports paging. (creativeFieldValues.listCreativeFieldValues)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $creativeFieldId Creative field ID for this creative field
+ * value.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only creative field values with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for creative field values by
+ * their values. Wildcards (e.g. *) are not allowed.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_CreativeFieldValuesListResponse
+ */
+ public function listCreativeFieldValues($profileId, $creativeFieldId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldValuesListResponse");
+ }
+ /**
+ * Updates an existing creative field value. This method supports patch
+ * semantics. (creativeFieldValues.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $creativeFieldId Creative field ID for this creative field
+ * value.
+ * @param string $id Creative Field Value ID
+ * @param Google_Service_Dfareporting_CreativeFieldValue $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeFieldValue
+ */
+ public function patch($profileId, $creativeFieldId, $id, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeFieldValue");
+ }
+ /**
+ * Updates an existing creative field value. (creativeFieldValues.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $creativeFieldId Creative field ID for this creative field
+ * value.
+ * @param Google_Service_Dfareporting_CreativeFieldValue $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeFieldValue
+ */
+ public function update($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeFieldValue");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFields.php
new file mode 100644
index 00000000..5739828b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeFields.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "creativeFields" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $creativeFields = $dfareportingService->creativeFields;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_CreativeFields extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing creative field. (creativeFields.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Creative Field ID
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one creative field by ID. (creativeFields.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Creative Field ID
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeField
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeField");
+ }
+ /**
+ * Inserts a new creative field. (creativeFields.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_CreativeField $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeField
+ */
+ public function insert($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeField");
+ }
+ /**
+ * Retrieves a list of creative fields, possibly filtered. This method supports
+ * paging. (creativeFields.listCreativeFields)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserIds Select only creative fields that belong to
+ * these advertisers.
+ * @opt_param string ids Select only creative fields with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for creative fields by name
+ * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will
+ * return creative fields with names like "creativefield June 2015",
+ * "creativefield April 2015", or simply "creativefield 2015". Most of the
+ * searches also add wild-cards implicitly at the start and the end of the
+ * search string. For example, a search string of "creativefield" will match
+ * creative fields with the name "my creativefield", "creativefield 2015", or
+ * simply "creativefield".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_CreativeFieldsListResponse
+ */
+ public function listCreativeFields($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldsListResponse");
+ }
+ /**
+ * Updates an existing creative field. This method supports patch semantics.
+ * (creativeFields.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Creative Field ID
+ * @param Google_Service_Dfareporting_CreativeField $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeField
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeField");
+ }
+ /**
+ * Updates an existing creative field. (creativeFields.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_CreativeField $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeField
+ */
+ public function update($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeField");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeGroups.php
new file mode 100644
index 00000000..44d70d04
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/CreativeGroups.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "creativeGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $creativeGroups = $dfareportingService->creativeGroups;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_CreativeGroups extends Google_Service_Resource
+{
+ /**
+ * Gets one creative group by ID. (creativeGroups.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Creative group ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeGroup
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeGroup");
+ }
+ /**
+ * Inserts a new creative group. (creativeGroups.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_CreativeGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeGroup
+ */
+ public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeGroup");
+ }
+ /**
+ * Retrieves a list of creative groups, possibly filtered. This method supports
+ * paging. (creativeGroups.listCreativeGroups)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserIds Select only creative groups that belong to
+ * these advertisers.
+ * @opt_param int groupNumber Select only creative groups that belong to this
+ * subgroup.
+ * @opt_param string ids Select only creative groups with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for creative groups by name
+ * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will
+ * return creative groups with names like "creativegroup June 2015",
+ * "creativegroup April 2015", or simply "creativegroup 2015". Most of the
+ * searches also add wild-cards implicitly at the start and the end of the
+ * search string. For example, a search string of "creativegroup" will match
+ * creative groups with the name "my creativegroup", "creativegroup 2015", or
+ * simply "creativegroup".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_CreativeGroupsListResponse
+ */
+ public function listCreativeGroups($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeGroupsListResponse");
+ }
+ /**
+ * Updates an existing creative group. This method supports patch semantics.
+ * (creativeGroups.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Creative group ID.
+ * @param Google_Service_Dfareporting_CreativeGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeGroup
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeGroup");
+ }
+ /**
+ * Updates an existing creative group. (creativeGroups.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_CreativeGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CreativeGroup
+ */
+ public function update($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeGroup");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Creatives.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Creatives.php
new file mode 100644
index 00000000..9cfe4548
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Creatives.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "creatives" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $creatives = $dfareportingService->creatives;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Creatives extends Google_Service_Resource
+{
+ /**
+ * Gets one creative by ID. (creatives.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Creative ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Creative
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Creative");
+ }
+ /**
+ * Inserts a new creative. (creatives.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Creative $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Creative
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Creative");
+ }
+ /**
+ * Retrieves a list of creatives, possibly filtered. This method supports
+ * paging. (creatives.listCreatives)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool active Select only active creatives. Leave blank to select
+ * active and inactive creatives.
+ * @opt_param string advertiserId Select only creatives with this advertiser ID.
+ * @opt_param bool archived Select only archived creatives. Leave blank to
+ * select archived and unarchived creatives.
+ * @opt_param string campaignId Select only creatives with this campaign ID.
+ * @opt_param string companionCreativeIds Select only in-stream video creatives
+ * with these companion IDs.
+ * @opt_param string creativeFieldIds Select only creatives with these creative
+ * field IDs.
+ * @opt_param string ids Select only creatives with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string renderingIds Select only creatives with these rendering
+ * IDs.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "creative*2015" will return objects
+ * with names like "creative June 2015", "creative April 2015", or simply
+ * "creative 2015". Most of the searches also add wildcards implicitly at the
+ * start and the end of the search string. For example, a search string of
+ * "creative" will match objects with name "my creative", "creative 2015", or
+ * simply "creative".
+ * @opt_param string sizeIds Select only creatives with these size IDs.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string studioCreativeId Select only creatives corresponding to
+ * this Studio creative ID.
+ * @opt_param string types Select only creatives with these creative types.
+ * @return Google_Service_Dfareporting_CreativesListResponse
+ */
+ public function listCreatives($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_CreativesListResponse");
+ }
+ /**
+ * Updates an existing creative. This method supports patch semantics.
+ * (creatives.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Creative ID.
+ * @param Google_Service_Dfareporting_Creative $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Creative
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Creative $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Creative");
+ }
+ /**
+ * Updates an existing creative. (creatives.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Creative $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Creative
+ */
+ public function update($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Creative");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DimensionValues.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DimensionValues.php
new file mode 100644
index 00000000..c7ea3a23
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DimensionValues.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dimensionValues" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $dimensionValues = $dfareportingService->dimensionValues;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_DimensionValues extends Google_Service_Resource
+{
+ /**
+ * Retrieves list of report dimension values for a list of filters.
+ * (dimensionValues.query)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param Google_Service_Dfareporting_DimensionValueRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * result page.
+ * @return Google_Service_Dfareporting_DimensionValueList
+ */
+ public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySiteContacts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySiteContacts.php
new file mode 100644
index 00000000..fc05b0fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySiteContacts.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "directorySiteContacts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $directorySiteContacts = $dfareportingService->directorySiteContacts;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_DirectorySiteContacts extends Google_Service_Resource
+{
+ /**
+ * Gets one directory site contact by ID. (directorySiteContacts.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Directory site contact ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_DirectorySiteContact
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact");
+ }
+ /**
+ * Retrieves a list of directory site contacts, possibly filtered. This method
+ * supports paging. (directorySiteContacts.listDirectorySiteContacts)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string directorySiteIds Select only directory site contacts with
+ * these directory site IDs. This is a required field.
+ * @opt_param string ids Select only directory site contacts with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name, ID or
+ * email. Wildcards (*) are allowed. For example, "directory site contact*2015"
+ * will return objects with names like "directory site contact June 2015",
+ * "directory site contact April 2015", or simply "directory site contact 2015".
+ * Most of the searches also add wildcards implicitly at the start and the end
+ * of the search string. For example, a search string of "directory site
+ * contact" will match objects with name "my directory site contact", "directory
+ * site contact 2015", or simply "directory site contact".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse
+ */
+ public function listDirectorySiteContacts($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php
new file mode 100644
index 00000000..ea3ac23f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DirectorySites.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "directorySites" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $directorySites = $dfareportingService->directorySites;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_DirectorySites extends Google_Service_Resource
+{
+ /**
+ * Gets one directory site by ID. (directorySites.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Directory site ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_DirectorySite
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySite");
+ }
+ /**
+ * Inserts a new directory site. (directorySites.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_DirectorySite $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_DirectorySite
+ */
+ public function insert($profileId, Google_Service_Dfareporting_DirectorySite $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_DirectorySite");
+ }
+ /**
+ * Retrieves a list of directory sites, possibly filtered. This method supports
+ * paging. (directorySites.listDirectorySites)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool acceptsInStreamVideoPlacements This search filter is no
+ * longer supported and will have no effect on the results returned.
+ * @opt_param bool acceptsInterstitialPlacements This search filter is no longer
+ * supported and will have no effect on the results returned.
+ * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites
+ * that accept publisher paid placements. This field can be left blank.
+ * @opt_param bool active Select only active directory sites. Leave blank to
+ * retrieve both active and inactive directory sites.
+ * @opt_param string countryId Select only directory sites with this country ID.
+ * @opt_param string dfp_network_code Select only directory sites with this DFP
+ * network code.
+ * @opt_param string ids Select only directory sites with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string parentId Select only directory sites with this parent ID.
+ * @opt_param string searchString Allows searching for objects by name, ID or
+ * URL. Wildcards (*) are allowed. For example, "directory site*2015" will
+ * return objects with names like "directory site June 2015", "directory site
+ * April 2015", or simply "directory site 2015". Most of the searches also add
+ * wildcards implicitly at the start and the end of the search string. For
+ * example, a search string of "directory site" will match objects with name "my
+ * directory site", "directory site 2015" or simply, "directory site".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_DirectorySitesListResponse
+ */
+ public function listDirectorySites($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySitesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DynamicTargetingKeys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DynamicTargetingKeys.php
new file mode 100644
index 00000000..2b210267
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/DynamicTargetingKeys.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dynamicTargetingKeys" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $dynamicTargetingKeys = $dfareportingService->dynamicTargetingKeys;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_DynamicTargetingKeys extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing dynamic targeting key. (dynamicTargetingKeys.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $objectId ID of the object of this dynamic targeting key. This
+ * is a required field.
+ * @param string $name Name of this dynamic targeting key. This is a required
+ * field. Must be less than 256 characters long and cannot contain commas. All
+ * characters are converted to lowercase.
+ * @param string $objectType Type of the object of this dynamic targeting key.
+ * This is a required field.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $objectId, $name, $objectType, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'objectId' => $objectId, 'name' => $name, 'objectType' => $objectType);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Inserts a new dynamic targeting key. Keys must be created at the advertiser
+ * level before being assigned to the advertiser's ads, creatives, or
+ * placements. There is a maximum of 1000 keys per advertiser, out of which a
+ * maximum of 20 keys can be assigned per ad, creative, or placement.
+ * (dynamicTargetingKeys.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_DynamicTargetingKey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_DynamicTargetingKey
+ */
+ public function insert($profileId, Google_Service_Dfareporting_DynamicTargetingKey $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_DynamicTargetingKey");
+ }
+ /**
+ * Retrieves a list of dynamic targeting keys.
+ * (dynamicTargetingKeys.listDynamicTargetingKeys)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserId Select only dynamic targeting keys whose
+ * object has this advertiser ID.
+ * @opt_param string names Select only dynamic targeting keys exactly matching
+ * these names.
+ * @opt_param string objectId Select only dynamic targeting keys with this
+ * object ID.
+ * @opt_param string objectType Select only dynamic targeting keys with this
+ * object type.
+ * @return Google_Service_Dfareporting_DynamicTargetingKeysListResponse
+ */
+ public function listDynamicTargetingKeys($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_DynamicTargetingKeysListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/EventTags.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/EventTags.php
new file mode 100644
index 00000000..34ef31a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/EventTags.php
@@ -0,0 +1,146 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "eventTags" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $eventTags = $dfareportingService->eventTags;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_EventTags extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing event tag. (eventTags.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Event tag ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one event tag by ID. (eventTags.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Event tag ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_EventTag
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_EventTag");
+ }
+ /**
+ * Inserts a new event tag. (eventTags.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_EventTag $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_EventTag
+ */
+ public function insert($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_EventTag");
+ }
+ /**
+ * Retrieves a list of event tags, possibly filtered. (eventTags.listEventTags)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string adId Select only event tags that belong to this ad.
+ * @opt_param string advertiserId Select only event tags that belong to this
+ * advertiser.
+ * @opt_param string campaignId Select only event tags that belong to this
+ * campaign.
+ * @opt_param bool definitionsOnly Examine only the specified campaign or
+ * advertiser's event tags for matching selector criteria. When set to false,
+ * the parent advertiser and parent campaign of the specified ad or campaign is
+ * examined as well. In addition, when set to false, the status field is
+ * examined as well, along with the enabledByDefault field. This parameter can
+ * not be set to true when adId is specified as ads do not define their own even
+ * tags.
+ * @opt_param bool enabled Select only enabled event tags. What is considered
+ * enabled or disabled depends on the definitionsOnly parameter. When
+ * definitionsOnly is set to true, only the specified advertiser or campaign's
+ * event tags' enabledByDefault field is examined. When definitionsOnly is set
+ * to false, the specified ad or specified campaign's parent advertiser's or
+ * parent campaign's event tags' enabledByDefault and status fields are examined
+ * as well.
+ * @opt_param string eventTagTypes Select only event tags with the specified
+ * event tag types. Event tag types can be used to specify whether to use a
+ * third-party pixel, a third-party JavaScript URL, or a third-party click-
+ * through URL for either impression or click tracking.
+ * @opt_param string ids Select only event tags with these IDs.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects
+ * with names like "eventtag June 2015", "eventtag April 2015", or simply
+ * "eventtag 2015". Most of the searches also add wildcards implicitly at the
+ * start and the end of the search string. For example, a search string of
+ * "eventtag" will match objects with name "my eventtag", "eventtag 2015", or
+ * simply "eventtag".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_EventTagsListResponse
+ */
+ public function listEventTags($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_EventTagsListResponse");
+ }
+ /**
+ * Updates an existing event tag. This method supports patch semantics.
+ * (eventTags.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Event tag ID.
+ * @param Google_Service_Dfareporting_EventTag $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_EventTag
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_EventTag $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_EventTag");
+ }
+ /**
+ * Updates an existing event tag. (eventTags.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_EventTag $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_EventTag
+ */
+ public function update($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_EventTag");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Files.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Files.php
new file mode 100644
index 00000000..6ab986ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Files.php
@@ -0,0 +1,63 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "files" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $files = $dfareportingService->files;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Files extends Google_Service_Resource
+{
+ /**
+ * Retrieves a report file by its report ID and file ID. (files.get)
+ *
+ * @param string $reportId The ID of the report.
+ * @param string $fileId The ID of the report file.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_DfareportingFile
+ */
+ public function get($reportId, $fileId, $optParams = array())
+ {
+ $params = array('reportId' => $reportId, 'fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile");
+ }
+ /**
+ * Lists files for a user profile. (files.listFiles)
+ *
+ * @param string $profileId The DFA profile ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * result page.
+ * @opt_param string scope The scope that defines which results are returned,
+ * default is 'MINE'.
+ * @opt_param string sortField The field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
+ * @return Google_Service_Dfareporting_FileList
+ */
+ public function listFiles($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_FileList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivities.php
new file mode 100644
index 00000000..ddf61e83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivities.php
@@ -0,0 +1,162 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "floodlightActivities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $floodlightActivities = $dfareportingService->floodlightActivities;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_FloodlightActivities extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing floodlight activity. (floodlightActivities.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Floodlight activity ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Generates a tag for a floodlight activity. (floodlightActivities.generatetag)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string floodlightActivityId Floodlight activity ID for which we
+ * want to generate a tag.
+ * @return Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse
+ */
+ public function generatetag($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generatetag', array($params), "Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse");
+ }
+ /**
+ * Gets one floodlight activity by ID. (floodlightActivities.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Floodlight activity ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivity
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivity");
+ }
+ /**
+ * Inserts a new floodlight activity. (floodlightActivities.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_FloodlightActivity $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivity
+ */
+ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivity");
+ }
+ /**
+ * Retrieves a list of floodlight activities, possibly filtered. This method
+ * supports paging. (floodlightActivities.listFloodlightActivities)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserId Select only floodlight activities for the
+ * specified advertiser ID. Must specify either ids, advertiserId, or
+ * floodlightConfigurationId for a non-empty result.
+ * @opt_param string floodlightActivityGroupIds Select only floodlight
+ * activities with the specified floodlight activity group IDs.
+ * @opt_param string floodlightActivityGroupName Select only floodlight
+ * activities with the specified floodlight activity group name.
+ * @opt_param string floodlightActivityGroupTagString Select only floodlight
+ * activities with the specified floodlight activity group tag string.
+ * @opt_param string floodlightActivityGroupType Select only floodlight
+ * activities with the specified floodlight activity group type.
+ * @opt_param string floodlightConfigurationId Select only floodlight activities
+ * for the specified floodlight configuration ID. Must specify either ids,
+ * advertiserId, or floodlightConfigurationId for a non-empty result.
+ * @opt_param string ids Select only floodlight activities with the specified
+ * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for
+ * a non-empty result.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return
+ * objects with names like "floodlightactivity June 2015", "floodlightactivity
+ * April 2015", or simply "floodlightactivity 2015". Most of the searches also
+ * add wildcards implicitly at the start and the end of the search string. For
+ * example, a search string of "floodlightactivity" will match objects with name
+ * "my floodlightactivity activity", "floodlightactivity 2015", or simply
+ * "floodlightactivity".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string tagString Select only floodlight activities with the
+ * specified tag string.
+ * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse
+ */
+ public function listFloodlightActivities($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivitiesListResponse");
+ }
+ /**
+ * Updates an existing floodlight activity. This method supports patch
+ * semantics. (floodlightActivities.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Floodlight activity ID.
+ * @param Google_Service_Dfareporting_FloodlightActivity $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivity
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivity");
+ }
+ /**
+ * Updates an existing floodlight activity. (floodlightActivities.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_FloodlightActivity $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivity
+ */
+ public function update($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivity");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivityGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivityGroups.php
new file mode 100644
index 00000000..1eb3442f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightActivityGroups.php
@@ -0,0 +1,128 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "floodlightActivityGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $floodlightActivityGroups = $dfareportingService->floodlightActivityGroups;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_FloodlightActivityGroups extends Google_Service_Resource
+{
+ /**
+ * Gets one floodlight activity group by ID. (floodlightActivityGroups.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Floodlight activity Group ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivityGroup
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup");
+ }
+ /**
+ * Inserts a new floodlight activity group. (floodlightActivityGroups.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_FloodlightActivityGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivityGroup
+ */
+ public function insert($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup");
+ }
+ /**
+ * Retrieves a list of floodlight activity groups, possibly filtered. This
+ * method supports paging.
+ * (floodlightActivityGroups.listFloodlightActivityGroups)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserId Select only floodlight activity groups with
+ * the specified advertiser ID. Must specify either advertiserId or
+ * floodlightConfigurationId for a non-empty result.
+ * @opt_param string floodlightConfigurationId Select only floodlight activity
+ * groups with the specified floodlight configuration ID. Must specify either
+ * advertiserId, or floodlightConfigurationId for a non-empty result.
+ * @opt_param string ids Select only floodlight activity groups with the
+ * specified IDs. Must specify either advertiserId or floodlightConfigurationId
+ * for a non-empty result.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will
+ * return objects with names like "floodlightactivitygroup June 2015",
+ * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup
+ * 2015". Most of the searches also add wildcards implicitly at the start and
+ * the end of the search string. For example, a search string of
+ * "floodlightactivitygroup" will match objects with name "my
+ * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply
+ * "floodlightactivitygroup".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string type Select only floodlight activity groups with the
+ * specified floodlight activity group type.
+ * @return Google_Service_Dfareporting_FloodlightActivityGroupsListResponse
+ */
+ public function listFloodlightActivityGroups($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivityGroupsListResponse");
+ }
+ /**
+ * Updates an existing floodlight activity group. This method supports patch
+ * semantics. (floodlightActivityGroups.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Floodlight activity Group ID.
+ * @param Google_Service_Dfareporting_FloodlightActivityGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivityGroup
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup");
+ }
+ /**
+ * Updates an existing floodlight activity group.
+ * (floodlightActivityGroups.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_FloodlightActivityGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightActivityGroup
+ */
+ public function update($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightConfigurations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightConfigurations.php
new file mode 100644
index 00000000..43449332
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/FloodlightConfigurations.php
@@ -0,0 +1,90 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "floodlightConfigurations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $floodlightConfigurations = $dfareportingService->floodlightConfigurations;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_FloodlightConfigurations extends Google_Service_Resource
+{
+ /**
+ * Gets one floodlight configuration by ID. (floodlightConfigurations.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Floodlight configuration ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightConfiguration
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightConfiguration");
+ }
+ /**
+ * Retrieves a list of floodlight configurations, possibly filtered.
+ * (floodlightConfigurations.listFloodlightConfigurations)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Set of IDs of floodlight configurations to retrieve.
+ * Required field; otherwise an empty list will be returned.
+ * @return Google_Service_Dfareporting_FloodlightConfigurationsListResponse
+ */
+ public function listFloodlightConfigurations($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightConfigurationsListResponse");
+ }
+ /**
+ * Updates an existing floodlight configuration. This method supports patch
+ * semantics. (floodlightConfigurations.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Floodlight configuration ID.
+ * @param Google_Service_Dfareporting_FloodlightConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightConfiguration
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightConfiguration");
+ }
+ /**
+ * Updates an existing floodlight configuration.
+ * (floodlightConfigurations.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_FloodlightConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_FloodlightConfiguration
+ */
+ public function update($profileId, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightConfiguration");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/InventoryItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/InventoryItems.php
new file mode 100644
index 00000000..39193822
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/InventoryItems.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "inventoryItems" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $inventoryItems = $dfareportingService->inventoryItems;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_InventoryItems extends Google_Service_Resource
+{
+ /**
+ * Gets one inventory item by ID. (inventoryItems.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param string $id Inventory item ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_InventoryItem
+ */
+ public function get($profileId, $projectId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_InventoryItem");
+ }
+ /**
+ * Retrieves a list of inventory items, possibly filtered. This method supports
+ * paging. (inventoryItems.listInventoryItems)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only inventory items with these IDs.
+ * @opt_param bool inPlan Select only inventory items that are in plan.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string orderId Select only inventory items that belong to
+ * specified orders.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string siteId Select only inventory items that are associated with
+ * these sites.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string type Select only inventory items with this type.
+ * @return Google_Service_Dfareporting_InventoryItemsListResponse
+ */
+ public function listInventoryItems($profileId, $projectId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_InventoryItemsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/LandingPages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/LandingPages.php
new file mode 100644
index 00000000..d067e4f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/LandingPages.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "landingPages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $landingPages = $dfareportingService->landingPages;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_LandingPages extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing campaign landing page. (landingPages.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Landing page campaign ID.
+ * @param string $id Landing page ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $campaignId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one campaign landing page by ID. (landingPages.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Landing page campaign ID.
+ * @param string $id Landing page ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_LandingPage
+ */
+ public function get($profileId, $campaignId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_LandingPage");
+ }
+ /**
+ * Inserts a new landing page for the specified campaign. (landingPages.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Landing page campaign ID.
+ * @param Google_Service_Dfareporting_LandingPage $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_LandingPage
+ */
+ public function insert($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_LandingPage");
+ }
+ /**
+ * Retrieves the list of landing pages for the specified campaign.
+ * (landingPages.listLandingPages)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Landing page campaign ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_LandingPagesListResponse
+ */
+ public function listLandingPages($profileId, $campaignId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_LandingPagesListResponse");
+ }
+ /**
+ * Updates an existing campaign landing page. This method supports patch
+ * semantics. (landingPages.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Landing page campaign ID.
+ * @param string $id Landing page ID.
+ * @param Google_Service_Dfareporting_LandingPage $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_LandingPage
+ */
+ public function patch($profileId, $campaignId, $id, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_LandingPage");
+ }
+ /**
+ * Updates an existing campaign landing page. (landingPages.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $campaignId Landing page campaign ID.
+ * @param Google_Service_Dfareporting_LandingPage $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_LandingPage
+ */
+ public function update($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_LandingPage");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Languages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Languages.php
new file mode 100644
index 00000000..79e856af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Languages.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "languages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $languages = $dfareportingService->languages;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Languages extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of languages. (languages.listLanguages)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_LanguagesListResponse
+ */
+ public function listLanguages($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_LanguagesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Metros.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Metros.php
new file mode 100644
index 00000000..57cf15e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Metros.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metros" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $metros = $dfareportingService->metros;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Metros extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of metros. (metros.listMetros)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_MetrosListResponse
+ */
+ public function listMetros($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_MetrosListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/MobileCarriers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/MobileCarriers.php
new file mode 100644
index 00000000..a9c62290
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/MobileCarriers.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mobileCarriers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $mobileCarriers = $dfareportingService->mobileCarriers;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_MobileCarriers extends Google_Service_Resource
+{
+ /**
+ * Gets one mobile carrier by ID. (mobileCarriers.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Mobile carrier ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_MobileCarrier
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_MobileCarrier");
+ }
+ /**
+ * Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_MobileCarriersListResponse
+ */
+ public function listMobileCarriers($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_MobileCarriersListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystemVersions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystemVersions.php
new file mode 100644
index 00000000..d5b7903e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystemVersions.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operatingSystemVersions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $operatingSystemVersions = $dfareportingService->operatingSystemVersions;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_OperatingSystemVersions extends Google_Service_Resource
+{
+ /**
+ * Gets one operating system version by ID. (operatingSystemVersions.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Operating system version ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OperatingSystemVersion
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystemVersion");
+ }
+ /**
+ * Retrieves a list of operating system versions.
+ * (operatingSystemVersions.listOperatingSystemVersions)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OperatingSystemVersionsListResponse
+ */
+ public function listOperatingSystemVersions($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemVersionsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystems.php
new file mode 100644
index 00000000..c17b2635
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OperatingSystems.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operatingSystems" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $operatingSystems = $dfareportingService->operatingSystems;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_OperatingSystems extends Google_Service_Resource
+{
+ /**
+ * Gets one operating system by DART ID. (operatingSystems.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $dartId Operating system DART ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OperatingSystem
+ */
+ public function get($profileId, $dartId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'dartId' => $dartId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystem");
+ }
+ /**
+ * Retrieves a list of operating systems.
+ * (operatingSystems.listOperatingSystems)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OperatingSystemsListResponse
+ */
+ public function listOperatingSystems($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OrderDocuments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OrderDocuments.php
new file mode 100644
index 00000000..281d64cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/OrderDocuments.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "orderDocuments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $orderDocuments = $dfareportingService->orderDocuments;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_OrderDocuments extends Google_Service_Resource
+{
+ /**
+ * Gets one order document by ID. (orderDocuments.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param string $id Order document ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OrderDocument
+ */
+ public function get($profileId, $projectId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_OrderDocument");
+ }
+ /**
+ * Retrieves a list of order documents, possibly filtered. This method supports
+ * paging. (orderDocuments.listOrderDocuments)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool approved Select only order documents that have been approved
+ * by at least one user.
+ * @opt_param string ids Select only order documents with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string orderId Select only order documents for specified orders.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for order documents by name
+ * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will
+ * return order documents with names like "orderdocument June 2015",
+ * "orderdocument April 2015", or simply "orderdocument 2015". Most of the
+ * searches also add wildcards implicitly at the start and the end of the search
+ * string. For example, a search string of "orderdocument" will match order
+ * documents with name "my orderdocument", "orderdocument 2015", or simply
+ * "orderdocument".
+ * @opt_param string siteId Select only order documents that are associated with
+ * these sites.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_OrderDocumentsListResponse
+ */
+ public function listOrderDocuments($profileId, $projectId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_OrderDocumentsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Orders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Orders.php
new file mode 100644
index 00000000..ce882dda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Orders.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "orders" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $orders = $dfareportingService->orders;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Orders extends Google_Service_Resource
+{
+ /**
+ * Gets one order by ID. (orders.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for orders.
+ * @param string $id Order ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Order
+ */
+ public function get($profileId, $projectId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Order");
+ }
+ /**
+ * Retrieves a list of orders, possibly filtered. This method supports paging.
+ * (orders.listOrders)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for orders.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only orders with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for orders by name or ID.
+ * Wildcards (*) are allowed. For example, "order*2015" will return orders with
+ * names like "order June 2015", "order April 2015", or simply "order 2015".
+ * Most of the searches also add wildcards implicitly at the start and the end
+ * of the search string. For example, a search string of "order" will match
+ * orders with name "my order", "order 2015", or simply "order".
+ * @opt_param string siteId Select only orders that are associated with these
+ * site IDs.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_OrdersListResponse
+ */
+ public function listOrders($profileId, $projectId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_OrdersListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementGroups.php
new file mode 100644
index 00000000..97b9a75c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementGroups.php
@@ -0,0 +1,148 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "placementGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $placementGroups = $dfareportingService->placementGroups;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_PlacementGroups extends Google_Service_Resource
+{
+ /**
+ * Gets one placement group by ID. (placementGroups.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Placement group ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementGroup
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementGroup");
+ }
+ /**
+ * Inserts a new placement group. (placementGroups.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_PlacementGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementGroup
+ */
+ public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementGroup");
+ }
+ /**
+ * Retrieves a list of placement groups, possibly filtered. This method supports
+ * paging. (placementGroups.listPlacementGroups)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserIds Select only placement groups that belong to
+ * these advertisers.
+ * @opt_param bool archived Select only archived placements. Don't set this
+ * field to select both archived and non-archived placements.
+ * @opt_param string campaignIds Select only placement groups that belong to
+ * these campaigns.
+ * @opt_param string contentCategoryIds Select only placement groups that are
+ * associated with these content categories.
+ * @opt_param string directorySiteIds Select only placement groups that are
+ * associated with these directory sites.
+ * @opt_param string ids Select only placement groups with these IDs.
+ * @opt_param string maxEndDate Select only placements or placement groups whose
+ * end date is on or before the specified maxEndDate. The date should be
+ * formatted as "yyyy-MM-dd".
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string maxStartDate Select only placements or placement groups
+ * whose start date is on or before the specified maxStartDate. The date should
+ * be formatted as "yyyy-MM-dd".
+ * @opt_param string minEndDate Select only placements or placement groups whose
+ * end date is on or after the specified minEndDate. The date should be
+ * formatted as "yyyy-MM-dd".
+ * @opt_param string minStartDate Select only placements or placement groups
+ * whose start date is on or after the specified minStartDate. The date should
+ * be formatted as "yyyy-MM-dd".
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string placementGroupType Select only placement groups belonging
+ * with this group type. A package is a simple group of placements that acts as
+ * a single pricing point for a group of tags. A roadblock is a group of
+ * placements that not only acts as a single pricing point but also assumes that
+ * all the tags in it will be served at the same time. A roadblock requires one
+ * of its assigned placements to be marked as primary for reporting.
+ * @opt_param string placementStrategyIds Select only placement groups that are
+ * associated with these placement strategies.
+ * @opt_param string pricingTypes Select only placement groups with these
+ * pricing types.
+ * @opt_param string searchString Allows searching for placement groups by name
+ * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return
+ * placement groups with names like "placement group June 2015", "placement
+ * group May 2015", or simply "placements 2015". Most of the searches also add
+ * wildcards implicitly at the start and the end of the search string. For
+ * example, a search string of "placementgroup" will match placement groups with
+ * name "my placementgroup", "placementgroup 2015", or simply "placementgroup".
+ * @opt_param string siteIds Select only placement groups that are associated
+ * with these sites.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_PlacementGroupsListResponse
+ */
+ public function listPlacementGroups($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementGroupsListResponse");
+ }
+ /**
+ * Updates an existing placement group. This method supports patch semantics.
+ * (placementGroups.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Placement group ID.
+ * @param Google_Service_Dfareporting_PlacementGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementGroup
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementGroup");
+ }
+ /**
+ * Updates an existing placement group. (placementGroups.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_PlacementGroup $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementGroup
+ */
+ public function update($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementGroup");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementStrategies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementStrategies.php
new file mode 100644
index 00000000..7ce914cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlacementStrategies.php
@@ -0,0 +1,128 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "placementStrategies" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $placementStrategies = $dfareportingService->placementStrategies;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_PlacementStrategies extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing placement strategy. (placementStrategies.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Placement strategy ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one placement strategy by ID. (placementStrategies.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Placement strategy ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementStrategy
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementStrategy");
+ }
+ /**
+ * Inserts a new placement strategy. (placementStrategies.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_PlacementStrategy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementStrategy
+ */
+ public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementStrategy");
+ }
+ /**
+ * Retrieves a list of placement strategies, possibly filtered. This method
+ * supports paging. (placementStrategies.listPlacementStrategies)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only placement strategies with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return
+ * objects with names like "placementstrategy June 2015", "placementstrategy
+ * April 2015", or simply "placementstrategy 2015". Most of the searches also
+ * add wildcards implicitly at the start and the end of the search string. For
+ * example, a search string of "placementstrategy" will match objects with name
+ * "my placementstrategy", "placementstrategy 2015", or simply
+ * "placementstrategy".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_PlacementStrategiesListResponse
+ */
+ public function listPlacementStrategies($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementStrategiesListResponse");
+ }
+ /**
+ * Updates an existing placement strategy. This method supports patch semantics.
+ * (placementStrategies.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Placement strategy ID.
+ * @param Google_Service_Dfareporting_PlacementStrategy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementStrategy
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementStrategy");
+ }
+ /**
+ * Updates an existing placement strategy. (placementStrategies.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_PlacementStrategy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlacementStrategy
+ */
+ public function update($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementStrategy");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Placements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Placements.php
new file mode 100644
index 00000000..cf27a58a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Placements.php
@@ -0,0 +1,172 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "placements" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $placements = $dfareportingService->placements;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Placements extends Google_Service_Resource
+{
+ /**
+ * Generates tags for a placement. (placements.generatetags)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string campaignId Generate placements belonging to this campaign.
+ * This is a required field.
+ * @opt_param string placementIds Generate tags for these placements.
+ * @opt_param string tagFormats Tag formats to generate for these placements.
+ * @return Google_Service_Dfareporting_PlacementsGenerateTagsResponse
+ */
+ public function generatetags($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generatetags', array($params), "Google_Service_Dfareporting_PlacementsGenerateTagsResponse");
+ }
+ /**
+ * Gets one placement by ID. (placements.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Placement ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Placement
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Placement");
+ }
+ /**
+ * Inserts a new placement. (placements.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Placement $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Placement
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Placement");
+ }
+ /**
+ * Retrieves a list of placements, possibly filtered. This method supports
+ * paging. (placements.listPlacements)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserIds Select only placements that belong to these
+ * advertisers.
+ * @opt_param bool archived Select only archived placements. Don't set this
+ * field to select both archived and non-archived placements.
+ * @opt_param string campaignIds Select only placements that belong to these
+ * campaigns.
+ * @opt_param string compatibilities Select only placements that are associated
+ * with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to
+ * rendering either on desktop or on mobile devices for regular or interstitial
+ * ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps.
+ * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the
+ * VAST standard.
+ * @opt_param string contentCategoryIds Select only placements that are
+ * associated with these content categories.
+ * @opt_param string directorySiteIds Select only placements that are associated
+ * with these directory sites.
+ * @opt_param string groupIds Select only placements that belong to these
+ * placement groups.
+ * @opt_param string ids Select only placements with these IDs.
+ * @opt_param string maxEndDate Select only placements or placement groups whose
+ * end date is on or before the specified maxEndDate. The date should be
+ * formatted as "yyyy-MM-dd".
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string maxStartDate Select only placements or placement groups
+ * whose start date is on or before the specified maxStartDate. The date should
+ * be formatted as "yyyy-MM-dd".
+ * @opt_param string minEndDate Select only placements or placement groups whose
+ * end date is on or after the specified minEndDate. The date should be
+ * formatted as "yyyy-MM-dd".
+ * @opt_param string minStartDate Select only placements or placement groups
+ * whose start date is on or after the specified minStartDate. The date should
+ * be formatted as "yyyy-MM-dd".
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string paymentSource Select only placements with this payment
+ * source.
+ * @opt_param string placementStrategyIds Select only placements that are
+ * associated with these placement strategies.
+ * @opt_param string pricingTypes Select only placements with these pricing
+ * types.
+ * @opt_param string searchString Allows searching for placements by name or ID.
+ * Wildcards (*) are allowed. For example, "placement*2015" will return
+ * placements with names like "placement June 2015", "placement May 2015", or
+ * simply "placements 2015". Most of the searches also add wildcards implicitly
+ * at the start and the end of the search string. For example, a search string
+ * of "placement" will match placements with name "my placement", "placement
+ * 2015", or simply "placement".
+ * @opt_param string siteIds Select only placements that are associated with
+ * these sites.
+ * @opt_param string sizeIds Select only placements that are associated with
+ * these sizes.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_PlacementsListResponse
+ */
+ public function listPlacements($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementsListResponse");
+ }
+ /**
+ * Updates an existing placement. This method supports patch semantics.
+ * (placements.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Placement ID.
+ * @param Google_Service_Dfareporting_Placement $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Placement
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Placement $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Placement");
+ }
+ /**
+ * Updates an existing placement. (placements.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Placement $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Placement
+ */
+ public function update($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Placement");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlatformTypes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlatformTypes.php
new file mode 100644
index 00000000..8437cb42
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PlatformTypes.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "platformTypes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $platformTypes = $dfareportingService->platformTypes;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_PlatformTypes extends Google_Service_Resource
+{
+ /**
+ * Gets one platform type by ID. (platformTypes.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Platform type ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlatformType
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_PlatformType");
+ }
+ /**
+ * Retrieves a list of platform types. (platformTypes.listPlatformTypes)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlatformTypesListResponse
+ */
+ public function listPlatformTypes($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_PlatformTypesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PostalCodes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PostalCodes.php
new file mode 100644
index 00000000..d5cf00ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/PostalCodes.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "postalCodes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $postalCodes = $dfareportingService->postalCodes;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_PostalCodes extends Google_Service_Resource
+{
+ /**
+ * Gets one postal code by ID. (postalCodes.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $code Postal code ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PostalCode
+ */
+ public function get($profileId, $code, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'code' => $code);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_PostalCode");
+ }
+ /**
+ * Retrieves a list of postal codes. (postalCodes.listPostalCodes)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PostalCodesListResponse
+ */
+ public function listPostalCodes($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_PostalCodesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Projects.php
new file mode 100644
index 00000000..0f396f8e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Projects.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $projects = $dfareportingService->projects;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Gets one project by ID. (projects.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Project
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Project");
+ }
+ /**
+ * Retrieves a list of projects, possibly filtered. This method supports paging.
+ * (projects.listProjects)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserIds Select only projects with these advertiser
+ * IDs.
+ * @opt_param string ids Select only projects with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for projects by name or ID.
+ * Wildcards (*) are allowed. For example, "project*2015" will return projects
+ * with names like "project June 2015", "project April 2015", or simply "project
+ * 2015". Most of the searches also add wildcards implicitly at the start and
+ * the end of the search string. For example, a search string of "project" will
+ * match projects with name "my project", "project 2015", or simply "project".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_ProjectsListResponse
+ */
+ public function listProjects($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_ProjectsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Regions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Regions.php
new file mode 100644
index 00000000..a6e170ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Regions.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "regions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $regions = $dfareportingService->regions;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Regions extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of regions. (regions.listRegions)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RegionsListResponse
+ */
+ public function listRegions($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_RegionsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingListShares.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingListShares.php
new file mode 100644
index 00000000..09123dd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingListShares.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "remarketingListShares" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $remarketingListShares = $dfareportingService->remarketingListShares;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_RemarketingListShares extends Google_Service_Resource
+{
+ /**
+ * Gets one remarketing list share by remarketing list ID.
+ * (remarketingListShares.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $remarketingListId Remarketing list ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingListShare
+ */
+ public function get($profileId, $remarketingListId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingListShare");
+ }
+ /**
+ * Updates an existing remarketing list share. This method supports patch
+ * semantics. (remarketingListShares.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $remarketingListId Remarketing list ID.
+ * @param Google_Service_Dfareporting_RemarketingListShare $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingListShare
+ */
+ public function patch($profileId, $remarketingListId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingListShare");
+ }
+ /**
+ * Updates an existing remarketing list share. (remarketingListShares.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_RemarketingListShare $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingListShare
+ */
+ public function update($profileId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingListShare");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingLists.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingLists.php
new file mode 100644
index 00000000..990f476a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/RemarketingLists.php
@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "remarketingLists" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $remarketingLists = $dfareportingService->remarketingLists;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_RemarketingLists extends Google_Service_Resource
+{
+ /**
+ * Gets one remarketing list by ID. (remarketingLists.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Remarketing list ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+ /**
+ * Inserts a new remarketing list. (remarketingLists.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_RemarketingList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function insert($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+ /**
+ * Retrieves a list of remarketing lists, possibly filtered. This method
+ * supports paging. (remarketingLists.listRemarketingLists)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $advertiserId Select only remarketing lists owned by this
+ * advertiser.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool active Select only active or only inactive remarketing lists.
+ * @opt_param string floodlightActivityId Select only remarketing lists that
+ * have this floodlight activity ID.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string name Allows searching for objects by name or ID. Wildcards
+ * (*) are allowed. For example, "remarketing list*2015" will return objects
+ * with names like "remarketing list June 2015", "remarketing list April 2015",
+ * or simply "remarketing list 2015". Most of the searches also add wildcards
+ * implicitly at the start and the end of the search string. For example, a
+ * search string of "remarketing list" will match objects with name "my
+ * remarketing list", "remarketing list 2015", or simply "remarketing list".
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_RemarketingListsListResponse
+ */
+ public function listRemarketingLists($profileId, $advertiserId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_RemarketingListsListResponse");
+ }
+ /**
+ * Updates an existing remarketing list. This method supports patch semantics.
+ * (remarketingLists.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Remarketing list ID.
+ * @param Google_Service_Dfareporting_RemarketingList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+ /**
+ * Updates an existing remarketing list. (remarketingLists.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_RemarketingList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function update($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Reports.php
new file mode 100644
index 00000000..1598d799
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Reports.php
@@ -0,0 +1,137 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $reports = $dfareportingService->reports;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Reports extends Google_Service_Resource
+{
+ /**
+ * Deletes a report by its ID. (reports.delete)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param string $reportId The ID of the report.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $reportId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a report by its ID. (reports.get)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param string $reportId The ID of the report.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Report
+ */
+ public function get($profileId, $reportId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Report");
+ }
+ /**
+ * Creates a report. (reports.insert)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param Google_Service_Dfareporting_Report $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Report
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Report");
+ }
+ /**
+ * Retrieves list of reports. (reports.listReports)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * result page.
+ * @opt_param string scope The scope that defines which results are returned,
+ * default is 'MINE'.
+ * @opt_param string sortField The field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
+ * @return Google_Service_Dfareporting_ReportList
+ */
+ public function listReports($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList");
+ }
+ /**
+ * Updates a report. This method supports patch semantics. (reports.patch)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param string $reportId The ID of the report.
+ * @param Google_Service_Dfareporting_Report $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Report
+ */
+ public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Report");
+ }
+ /**
+ * Runs a report. (reports.run)
+ *
+ * @param string $profileId The DFA profile ID.
+ * @param string $reportId The ID of the report.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool synchronous If set and true, tries to run the report
+ * synchronously.
+ * @return Google_Service_Dfareporting_DfareportingFile
+ */
+ public function run($profileId, $reportId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile");
+ }
+ /**
+ * Updates a report. (reports.update)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param string $reportId The ID of the report.
+ * @param Google_Service_Dfareporting_Report $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Report
+ */
+ public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Report");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsCompatibleFields.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsCompatibleFields.php
new file mode 100644
index 00000000..b6a9c9ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsCompatibleFields.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "compatibleFields" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $compatibleFields = $dfareportingService->compatibleFields;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_ReportsCompatibleFields extends Google_Service_Resource
+{
+ /**
+ * Returns the fields that are compatible to be selected in the respective
+ * sections of a report criteria, given the fields already selected in the input
+ * report and user permissions. (compatibleFields.query)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param Google_Service_Dfareporting_Report $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_CompatibleFields
+ */
+ public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsFiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsFiles.php
new file mode 100644
index 00000000..6c76e792
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/ReportsFiles.php
@@ -0,0 +1,63 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "files" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $files = $dfareportingService->files;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_ReportsFiles extends Google_Service_Resource
+{
+ /**
+ * Retrieves a report file. (files.get)
+ *
+ * @param string $profileId The DFA profile ID.
+ * @param string $reportId The ID of the report.
+ * @param string $fileId The ID of the report file.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_DfareportingFile
+ */
+ public function get($profileId, $reportId, $fileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile");
+ }
+ /**
+ * Lists files for a report. (files.listReportsFiles)
+ *
+ * @param string $profileId The DFA profile ID.
+ * @param string $reportId The ID of the parent report.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken The value of the nextToken from the previous
+ * result page.
+ * @opt_param string sortField The field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
+ * @return Google_Service_Dfareporting_FileList
+ */
+ public function listReportsFiles($profileId, $reportId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_FileList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sites.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sites.php
new file mode 100644
index 00000000..1911c88b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sites.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sites" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $sites = $dfareportingService->sites;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Sites extends Google_Service_Resource
+{
+ /**
+ * Gets one site by ID. (sites.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Site ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Site
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Site");
+ }
+ /**
+ * Inserts a new site. (sites.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Site $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Site
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Site");
+ }
+ /**
+ * Retrieves a list of sites, possibly filtered. This method supports paging.
+ * (sites.listSites)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool acceptsInStreamVideoPlacements This search filter is no
+ * longer supported and will have no effect on the results returned.
+ * @opt_param bool acceptsInterstitialPlacements This search filter is no longer
+ * supported and will have no effect on the results returned.
+ * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept
+ * publisher paid placements.
+ * @opt_param bool adWordsSite Select only AdWords sites.
+ * @opt_param bool approved Select only approved sites.
+ * @opt_param string campaignIds Select only sites with these campaign IDs.
+ * @opt_param string directorySiteIds Select only sites with these directory
+ * site IDs.
+ * @opt_param string ids Select only sites with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name, ID or
+ * keyName. Wildcards (*) are allowed. For example, "site*2015" will return
+ * objects with names like "site June 2015", "site April 2015", or simply "site
+ * 2015". Most of the searches also add wildcards implicitly at the start and
+ * the end of the search string. For example, a search string of "site" will
+ * match objects with name "my site", "site 2015", or simply "site".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string subaccountId Select only sites with this subaccount ID.
+ * @opt_param bool unmappedSite Select only sites that have not been mapped to a
+ * directory site.
+ * @return Google_Service_Dfareporting_SitesListResponse
+ */
+ public function listSites($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_SitesListResponse");
+ }
+ /**
+ * Updates an existing site. This method supports patch semantics. (sites.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Site ID.
+ * @param Google_Service_Dfareporting_Site $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Site
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Site $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Site");
+ }
+ /**
+ * Updates an existing site. (sites.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Site $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Site
+ */
+ public function update($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Site");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php
new file mode 100644
index 00000000..51c9a36c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Sizes.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sizes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $sizes = $dfareportingService->sizes;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Sizes extends Google_Service_Resource
+{
+ /**
+ * Gets one size by ID. (sizes.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Size ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Size
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Size");
+ }
+ /**
+ * Inserts a new size. (sizes.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Size $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Size
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Size");
+ }
+ /**
+ * Retrieves a list of sizes, possibly filtered. (sizes.listSizes)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int height Select only sizes with this height.
+ * @opt_param bool iabStandard Select only IAB standard sizes.
+ * @opt_param string ids Select only sizes with these IDs.
+ * @opt_param int width Select only sizes with this width.
+ * @return Google_Service_Dfareporting_SizesListResponse
+ */
+ public function listSizes($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_SizesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Subaccounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Subaccounts.php
new file mode 100644
index 00000000..27ac2feb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/Subaccounts.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subaccounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $subaccounts = $dfareportingService->subaccounts;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_Subaccounts extends Google_Service_Resource
+{
+ /**
+ * Gets one subaccount by ID. (subaccounts.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Subaccount ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Subaccount
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Subaccount");
+ }
+ /**
+ * Inserts a new subaccount. (subaccounts.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Subaccount $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Subaccount
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Subaccount");
+ }
+ /**
+ * Gets a list of subaccounts, possibly filtered. This method supports paging.
+ * (subaccounts.listSubaccounts)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only subaccounts with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects
+ * with names like "subaccount June 2015", "subaccount April 2015", or simply
+ * "subaccount 2015". Most of the searches also add wildcards implicitly at the
+ * start and the end of the search string. For example, a search string of
+ * "subaccount" will match objects with name "my subaccount", "subaccount 2015",
+ * or simply "subaccount".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_SubaccountsListResponse
+ */
+ public function listSubaccounts($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_SubaccountsListResponse");
+ }
+ /**
+ * Updates an existing subaccount. This method supports patch semantics.
+ * (subaccounts.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Subaccount ID.
+ * @param Google_Service_Dfareporting_Subaccount $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Subaccount
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_Subaccount");
+ }
+ /**
+ * Updates an existing subaccount. (subaccounts.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_Subaccount $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Subaccount
+ */
+ public function update($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_Subaccount");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetableRemarketingLists.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetableRemarketingLists.php
new file mode 100644
index 00000000..43d9de4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetableRemarketingLists.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetableRemarketingLists" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $targetableRemarketingLists = $dfareportingService->targetableRemarketingLists;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_TargetableRemarketingLists extends Google_Service_Resource
+{
+ /**
+ * Gets one remarketing list by ID. (targetableRemarketingLists.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Remarketing list ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_TargetableRemarketingList
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_TargetableRemarketingList");
+ }
+ /**
+ * Retrieves a list of targetable remarketing lists, possibly filtered. This
+ * method supports paging.
+ * (targetableRemarketingLists.listTargetableRemarketingLists)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $advertiserId Select only targetable remarketing lists
+ * targetable by these advertisers.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool active Select only active or only inactive targetable
+ * remarketing lists.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string name Allows searching for objects by name or ID. Wildcards
+ * (*) are allowed. For example, "remarketing list*2015" will return objects
+ * with names like "remarketing list June 2015", "remarketing list April 2015",
+ * or simply "remarketing list 2015". Most of the searches also add wildcards
+ * implicitly at the start and the end of the search string. For example, a
+ * search string of "remarketing list" will match objects with name "my
+ * remarketing list", "remarketing list 2015", or simply "remarketing list".
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse
+ */
+ public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_TargetableRemarketingListsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetingTemplates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetingTemplates.php
new file mode 100644
index 00000000..afe7af7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/TargetingTemplates.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "targetingTemplates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $targetingTemplates = $dfareportingService->targetingTemplates;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_TargetingTemplates extends Google_Service_Resource
+{
+ /**
+ * Gets one targeting template by ID. (targetingTemplates.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Targeting template ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_TargetingTemplate
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_TargetingTemplate");
+ }
+ /**
+ * Inserts a new targeting template. (targetingTemplates.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_TargetingTemplate $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_TargetingTemplate
+ */
+ public function insert($profileId, Google_Service_Dfareporting_TargetingTemplate $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_TargetingTemplate");
+ }
+ /**
+ * Retrieves a list of targeting templates, optionally filtered. This method
+ * supports paging. (targetingTemplates.listTargetingTemplates)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string advertiserId Select only targeting templates with this
+ * advertiser ID.
+ * @opt_param string ids Select only targeting templates with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "template*2015" will return objects
+ * with names like "template June 2015", "template April 2015", or simply
+ * "template 2015". Most of the searches also add wildcards implicitly at the
+ * start and the end of the search string. For example, a search string of
+ * "template" will match objects with name "my template", "template 2015", or
+ * simply "template".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_TargetingTemplatesListResponse
+ */
+ public function listTargetingTemplates($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_TargetingTemplatesListResponse");
+ }
+ /**
+ * Updates an existing targeting template. This method supports patch semantics.
+ * (targetingTemplates.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Targeting template ID.
+ * @param Google_Service_Dfareporting_TargetingTemplate $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_TargetingTemplate
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_TargetingTemplate $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_TargetingTemplate");
+ }
+ /**
+ * Updates an existing targeting template. (targetingTemplates.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_TargetingTemplate $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_TargetingTemplate
+ */
+ public function update($profileId, Google_Service_Dfareporting_TargetingTemplate $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_TargetingTemplate");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserProfiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserProfiles.php
new file mode 100644
index 00000000..019ce69f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserProfiles.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userProfiles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $userProfiles = $dfareportingService->userProfiles;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_UserProfiles extends Google_Service_Resource
+{
+ /**
+ * Gets one user profile by ID. (userProfiles.get)
+ *
+ * @param string $profileId The user profile ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserProfile
+ */
+ public function get($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile");
+ }
+ /**
+ * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserProfileList
+ */
+ public function listUserProfiles($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissionGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissionGroups.php
new file mode 100644
index 00000000..198da780
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissionGroups.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userRolePermissionGroups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $userRolePermissionGroups = $dfareportingService->userRolePermissionGroups;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_UserRolePermissionGroups extends Google_Service_Resource
+{
+ /**
+ * Gets one user role permission group by ID. (userRolePermissionGroups.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id User role permission group ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserRolePermissionGroup
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermissionGroup");
+ }
+ /**
+ * Gets a list of all supported user role permission groups.
+ * (userRolePermissionGroups.listUserRolePermissionGroups)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserRolePermissionGroupsListResponse
+ */
+ public function listUserRolePermissionGroups($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionGroupsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissions.php
new file mode 100644
index 00000000..4780e226
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRolePermissions.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userRolePermissions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $userRolePermissions = $dfareportingService->userRolePermissions;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_UserRolePermissions extends Google_Service_Resource
+{
+ /**
+ * Gets one user role permission by ID. (userRolePermissions.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id User role permission ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserRolePermission
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermission");
+ }
+ /**
+ * Gets a list of user role permissions, possibly filtered.
+ * (userRolePermissions.listUserRolePermissions)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ids Select only user role permissions with these IDs.
+ * @return Google_Service_Dfareporting_UserRolePermissionsListResponse
+ */
+ public function listUserRolePermissions($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRoles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRoles.php
new file mode 100644
index 00000000..a8769cd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/UserRoles.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userRoles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $userRoles = $dfareportingService->userRoles;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_UserRoles extends Google_Service_Resource
+{
+ /**
+ * Deletes an existing user role. (userRoles.delete)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id User role ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets one user role by ID. (userRoles.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id User role ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserRole
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_UserRole");
+ }
+ /**
+ * Inserts a new user role. (userRoles.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_UserRole $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserRole
+ */
+ public function insert($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_UserRole");
+ }
+ /**
+ * Retrieves a list of user roles, possibly filtered. This method supports
+ * paging. (userRoles.listUserRoles)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool accountUserRoleOnly Select only account level user roles not
+ * associated with any specific subaccount.
+ * @opt_param string ids Select only user roles with the specified IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string searchString Allows searching for objects by name or ID.
+ * Wildcards (*) are allowed. For example, "userrole*2015" will return objects
+ * with names like "userrole June 2015", "userrole April 2015", or simply
+ * "userrole 2015". Most of the searches also add wildcards implicitly at the
+ * start and the end of the search string. For example, a search string of
+ * "userrole" will match objects with name "my userrole", "userrole 2015", or
+ * simply "userrole".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string subaccountId Select only user roles that belong to this
+ * subaccount.
+ * @return Google_Service_Dfareporting_UserRolesListResponse
+ */
+ public function listUserRoles($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolesListResponse");
+ }
+ /**
+ * Updates an existing user role. This method supports patch semantics.
+ * (userRoles.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id User role ID.
+ * @param Google_Service_Dfareporting_UserRole $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserRole
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_UserRole $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_UserRole");
+ }
+ /**
+ * Updates an existing user role. (userRoles.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_Service_Dfareporting_UserRole $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserRole
+ */
+ public function update($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_UserRole");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/VideoFormats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/VideoFormats.php
new file mode 100644
index 00000000..065cadac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Resource/VideoFormats.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "videoFormats" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $videoFormats = $dfareportingService->videoFormats;
+ * </code>
+ */
+class Google_Service_Dfareporting_Resource_VideoFormats extends Google_Service_Resource
+{
+ /**
+ * Gets one video format by ID. (videoFormats.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param int $id Video format ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_VideoFormat
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_VideoFormat");
+ }
+ /**
+ * Lists available video formats. (videoFormats.listVideoFormats)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_VideoFormatsListResponse
+ */
+ public function listVideoFormats($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_VideoFormatsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RichMediaExitOverride.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RichMediaExitOverride.php
new file mode 100644
index 00000000..b53c2601
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/RichMediaExitOverride.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_RichMediaExitOverride extends Google_Model
+{
+ protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl';
+ protected $clickThroughUrlDataType = '';
+ public $enabled;
+ public $exitId;
+
+ public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl)
+ {
+ $this->clickThroughUrl = $clickThroughUrl;
+ }
+ public function getClickThroughUrl()
+ {
+ return $this->clickThroughUrl;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setExitId($exitId)
+ {
+ $this->exitId = $exitId;
+ }
+ public function getExitId()
+ {
+ return $this->exitId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Rule.php
new file mode 100644
index 00000000..77226d90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Rule.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Rule extends Google_Model
+{
+ public $assetId;
+ public $name;
+ public $targetingTemplateId;
+
+ public function setAssetId($assetId)
+ {
+ $this->assetId = $assetId;
+ }
+ public function getAssetId()
+ {
+ return $this->assetId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTargetingTemplateId($targetingTemplateId)
+ {
+ $this->targetingTemplateId = $targetingTemplateId;
+ }
+ public function getTargetingTemplateId()
+ {
+ return $this->targetingTemplateId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Site.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Site.php
new file mode 100644
index 00000000..11e2630f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Site.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Site extends Google_Collection
+{
+ protected $collection_key = 'siteContacts';
+ public $accountId;
+ public $approved;
+ public $directorySiteId;
+ protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $directorySiteIdDimensionValueDataType = '';
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $keyName;
+ public $kind;
+ public $name;
+ protected $siteContactsType = 'Google_Service_Dfareporting_SiteContact';
+ protected $siteContactsDataType = 'array';
+ protected $siteSettingsType = 'Google_Service_Dfareporting_SiteSettings';
+ protected $siteSettingsDataType = '';
+ public $subaccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setApproved($approved)
+ {
+ $this->approved = $approved;
+ }
+ public function getApproved()
+ {
+ return $this->approved;
+ }
+ public function setDirectorySiteId($directorySiteId)
+ {
+ $this->directorySiteId = $directorySiteId;
+ }
+ public function getDirectorySiteId()
+ {
+ return $this->directorySiteId;
+ }
+ public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue)
+ {
+ $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue;
+ }
+ public function getDirectorySiteIdDimensionValue()
+ {
+ return $this->directorySiteIdDimensionValue;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKeyName($keyName)
+ {
+ $this->keyName = $keyName;
+ }
+ public function getKeyName()
+ {
+ return $this->keyName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSiteContacts($siteContacts)
+ {
+ $this->siteContacts = $siteContacts;
+ }
+ public function getSiteContacts()
+ {
+ return $this->siteContacts;
+ }
+ public function setSiteSettings(Google_Service_Dfareporting_SiteSettings $siteSettings)
+ {
+ $this->siteSettings = $siteSettings;
+ }
+ public function getSiteSettings()
+ {
+ return $this->siteSettings;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteContact.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteContact.php
new file mode 100644
index 00000000..f2547cde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteContact.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_SiteContact extends Google_Model
+{
+ public $address;
+ public $contactType;
+ public $email;
+ public $firstName;
+ public $id;
+ public $lastName;
+ public $phone;
+ public $title;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setContactType($contactType)
+ {
+ $this->contactType = $contactType;
+ }
+ public function getContactType()
+ {
+ return $this->contactType;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setFirstName($firstName)
+ {
+ $this->firstName = $firstName;
+ }
+ public function getFirstName()
+ {
+ return $this->firstName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLastName($lastName)
+ {
+ $this->lastName = $lastName;
+ }
+ public function getLastName()
+ {
+ return $this->lastName;
+ }
+ public function setPhone($phone)
+ {
+ $this->phone = $phone;
+ }
+ public function getPhone()
+ {
+ return $this->phone;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php
new file mode 100644
index 00000000..ef948304
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SiteSettings.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_SiteSettings extends Google_Model
+{
+ public $activeViewOptOut;
+ protected $creativeSettingsType = 'Google_Service_Dfareporting_CreativeSettings';
+ protected $creativeSettingsDataType = '';
+ public $disableBrandSafeAds;
+ public $disableNewCookie;
+ protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration';
+ protected $lookbackConfigurationDataType = '';
+ protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting';
+ protected $tagSettingDataType = '';
+ public $videoActiveViewOptOutTemplate;
+ public $vpaidAdapterChoiceTemplate;
+
+ public function setActiveViewOptOut($activeViewOptOut)
+ {
+ $this->activeViewOptOut = $activeViewOptOut;
+ }
+ public function getActiveViewOptOut()
+ {
+ return $this->activeViewOptOut;
+ }
+ public function setCreativeSettings(Google_Service_Dfareporting_CreativeSettings $creativeSettings)
+ {
+ $this->creativeSettings = $creativeSettings;
+ }
+ public function getCreativeSettings()
+ {
+ return $this->creativeSettings;
+ }
+ public function setDisableBrandSafeAds($disableBrandSafeAds)
+ {
+ $this->disableBrandSafeAds = $disableBrandSafeAds;
+ }
+ public function getDisableBrandSafeAds()
+ {
+ return $this->disableBrandSafeAds;
+ }
+ public function setDisableNewCookie($disableNewCookie)
+ {
+ $this->disableNewCookie = $disableNewCookie;
+ }
+ public function getDisableNewCookie()
+ {
+ return $this->disableNewCookie;
+ }
+ public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration)
+ {
+ $this->lookbackConfiguration = $lookbackConfiguration;
+ }
+ public function getLookbackConfiguration()
+ {
+ return $this->lookbackConfiguration;
+ }
+ public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting)
+ {
+ $this->tagSetting = $tagSetting;
+ }
+ public function getTagSetting()
+ {
+ return $this->tagSetting;
+ }
+ public function setVideoActiveViewOptOutTemplate($videoActiveViewOptOutTemplate)
+ {
+ $this->videoActiveViewOptOutTemplate = $videoActiveViewOptOutTemplate;
+ }
+ public function getVideoActiveViewOptOutTemplate()
+ {
+ return $this->videoActiveViewOptOutTemplate;
+ }
+ public function setVpaidAdapterChoiceTemplate($vpaidAdapterChoiceTemplate)
+ {
+ $this->vpaidAdapterChoiceTemplate = $vpaidAdapterChoiceTemplate;
+ }
+ public function getVpaidAdapterChoiceTemplate()
+ {
+ return $this->vpaidAdapterChoiceTemplate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SitesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SitesListResponse.php
new file mode 100644
index 00000000..649333ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SitesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_SitesListResponse extends Google_Collection
+{
+ protected $collection_key = 'sites';
+ public $kind;
+ public $nextPageToken;
+ protected $sitesType = 'Google_Service_Dfareporting_Site';
+ protected $sitesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSites($sites)
+ {
+ $this->sites = $sites;
+ }
+ public function getSites()
+ {
+ return $this->sites;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Size.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Size.php
new file mode 100644
index 00000000..2d175cab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Size.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Size extends Google_Model
+{
+ public $height;
+ public $iab;
+ public $id;
+ public $kind;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setIab($iab)
+ {
+ $this->iab = $iab;
+ }
+ public function getIab()
+ {
+ return $this->iab;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SizesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SizesListResponse.php
new file mode 100644
index 00000000..6e0eb6b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SizesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_SizesListResponse extends Google_Collection
+{
+ protected $collection_key = 'sizes';
+ public $kind;
+ protected $sizesType = 'Google_Service_Dfareporting_Size';
+ protected $sizesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSizes($sizes)
+ {
+ $this->sizes = $sizes;
+ }
+ public function getSizes()
+ {
+ return $this->sizes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SkippableSetting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SkippableSetting.php
new file mode 100644
index 00000000..f1656e86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SkippableSetting.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_SkippableSetting extends Google_Model
+{
+ public $kind;
+ protected $progressOffsetType = 'Google_Service_Dfareporting_VideoOffset';
+ protected $progressOffsetDataType = '';
+ protected $skipOffsetType = 'Google_Service_Dfareporting_VideoOffset';
+ protected $skipOffsetDataType = '';
+ public $skippable;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProgressOffset(Google_Service_Dfareporting_VideoOffset $progressOffset)
+ {
+ $this->progressOffset = $progressOffset;
+ }
+ public function getProgressOffset()
+ {
+ return $this->progressOffset;
+ }
+ public function setSkipOffset(Google_Service_Dfareporting_VideoOffset $skipOffset)
+ {
+ $this->skipOffset = $skipOffset;
+ }
+ public function getSkipOffset()
+ {
+ return $this->skipOffset;
+ }
+ public function setSkippable($skippable)
+ {
+ $this->skippable = $skippable;
+ }
+ public function getSkippable()
+ {
+ return $this->skippable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SortedDimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SortedDimension.php
new file mode 100644
index 00000000..4d6dbed9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SortedDimension.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_SortedDimension extends Google_Model
+{
+ public $kind;
+ public $name;
+ public $sortOrder;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSortOrder($sortOrder)
+ {
+ $this->sortOrder = $sortOrder;
+ }
+ public function getSortOrder()
+ {
+ return $this->sortOrder;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Subaccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Subaccount.php
new file mode 100644
index 00000000..51322bb7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/Subaccount.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_Subaccount extends Google_Collection
+{
+ protected $collection_key = 'availablePermissionIds';
+ public $accountId;
+ public $availablePermissionIds;
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAvailablePermissionIds($availablePermissionIds)
+ {
+ $this->availablePermissionIds = $availablePermissionIds;
+ }
+ public function getAvailablePermissionIds()
+ {
+ return $this->availablePermissionIds;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SubaccountsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SubaccountsListResponse.php
new file mode 100644
index 00000000..22a06155
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/SubaccountsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_SubaccountsListResponse extends Google_Collection
+{
+ protected $collection_key = 'subaccounts';
+ public $kind;
+ public $nextPageToken;
+ protected $subaccountsType = 'Google_Service_Dfareporting_Subaccount';
+ protected $subaccountsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSubaccounts($subaccounts)
+ {
+ $this->subaccounts = $subaccounts;
+ }
+ public function getSubaccounts()
+ {
+ return $this->subaccounts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagData.php
new file mode 100644
index 00000000..4d293b04
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagData.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TagData extends Google_Model
+{
+ public $adId;
+ public $clickTag;
+ public $creativeId;
+ public $format;
+ public $impressionTag;
+
+ public function setAdId($adId)
+ {
+ $this->adId = $adId;
+ }
+ public function getAdId()
+ {
+ return $this->adId;
+ }
+ public function setClickTag($clickTag)
+ {
+ $this->clickTag = $clickTag;
+ }
+ public function getClickTag()
+ {
+ return $this->clickTag;
+ }
+ public function setCreativeId($creativeId)
+ {
+ $this->creativeId = $creativeId;
+ }
+ public function getCreativeId()
+ {
+ return $this->creativeId;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setImpressionTag($impressionTag)
+ {
+ $this->impressionTag = $impressionTag;
+ }
+ public function getImpressionTag()
+ {
+ return $this->impressionTag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSetting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSetting.php
new file mode 100644
index 00000000..888f4ef9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSetting.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TagSetting extends Google_Model
+{
+ public $additionalKeyValues;
+ public $includeClickThroughUrls;
+ public $includeClickTracking;
+ public $keywordOption;
+
+ public function setAdditionalKeyValues($additionalKeyValues)
+ {
+ $this->additionalKeyValues = $additionalKeyValues;
+ }
+ public function getAdditionalKeyValues()
+ {
+ return $this->additionalKeyValues;
+ }
+ public function setIncludeClickThroughUrls($includeClickThroughUrls)
+ {
+ $this->includeClickThroughUrls = $includeClickThroughUrls;
+ }
+ public function getIncludeClickThroughUrls()
+ {
+ return $this->includeClickThroughUrls;
+ }
+ public function setIncludeClickTracking($includeClickTracking)
+ {
+ $this->includeClickTracking = $includeClickTracking;
+ }
+ public function getIncludeClickTracking()
+ {
+ return $this->includeClickTracking;
+ }
+ public function setKeywordOption($keywordOption)
+ {
+ $this->keywordOption = $keywordOption;
+ }
+ public function getKeywordOption()
+ {
+ return $this->keywordOption;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSettings.php
new file mode 100644
index 00000000..954cd30d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TagSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TagSettings extends Google_Model
+{
+ public $dynamicTagEnabled;
+ public $imageTagEnabled;
+
+ public function setDynamicTagEnabled($dynamicTagEnabled)
+ {
+ $this->dynamicTagEnabled = $dynamicTagEnabled;
+ }
+ public function getDynamicTagEnabled()
+ {
+ return $this->dynamicTagEnabled;
+ }
+ public function setImageTagEnabled($imageTagEnabled)
+ {
+ $this->imageTagEnabled = $imageTagEnabled;
+ }
+ public function getImageTagEnabled()
+ {
+ return $this->imageTagEnabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetWindow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetWindow.php
new file mode 100644
index 00000000..91cb9ac7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetWindow.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TargetWindow extends Google_Model
+{
+ public $customHtml;
+ public $targetWindowOption;
+
+ public function setCustomHtml($customHtml)
+ {
+ $this->customHtml = $customHtml;
+ }
+ public function getCustomHtml()
+ {
+ return $this->customHtml;
+ }
+ public function setTargetWindowOption($targetWindowOption)
+ {
+ $this->targetWindowOption = $targetWindowOption;
+ }
+ public function getTargetWindowOption()
+ {
+ return $this->targetWindowOption;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingList.php
new file mode 100644
index 00000000..874918e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingList.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TargetableRemarketingList extends Google_Model
+{
+ public $accountId;
+ public $active;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $lifeSpan;
+ public $listSize;
+ public $listSource;
+ public $name;
+ public $subaccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLifeSpan($lifeSpan)
+ {
+ $this->lifeSpan = $lifeSpan;
+ }
+ public function getLifeSpan()
+ {
+ return $this->lifeSpan;
+ }
+ public function setListSize($listSize)
+ {
+ $this->listSize = $listSize;
+ }
+ public function getListSize()
+ {
+ return $this->listSize;
+ }
+ public function setListSource($listSource)
+ {
+ $this->listSource = $listSource;
+ }
+ public function getListSource()
+ {
+ return $this->listSource;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingListsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingListsListResponse.php
new file mode 100644
index 00000000..3db5c694
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetableRemarketingListsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TargetableRemarketingListsListResponse extends Google_Collection
+{
+ protected $collection_key = 'targetableRemarketingLists';
+ public $kind;
+ public $nextPageToken;
+ protected $targetableRemarketingListsType = 'Google_Service_Dfareporting_TargetableRemarketingList';
+ protected $targetableRemarketingListsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTargetableRemarketingLists($targetableRemarketingLists)
+ {
+ $this->targetableRemarketingLists = $targetableRemarketingLists;
+ }
+ public function getTargetableRemarketingLists()
+ {
+ return $this->targetableRemarketingLists;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplate.php
new file mode 100644
index 00000000..82aaae48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplate.php
@@ -0,0 +1,145 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TargetingTemplate extends Google_Model
+{
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ protected $dayPartTargetingType = 'Google_Service_Dfareporting_DayPartTargeting';
+ protected $dayPartTargetingDataType = '';
+ protected $geoTargetingType = 'Google_Service_Dfareporting_GeoTargeting';
+ protected $geoTargetingDataType = '';
+ public $id;
+ protected $keyValueTargetingExpressionType = 'Google_Service_Dfareporting_KeyValueTargetingExpression';
+ protected $keyValueTargetingExpressionDataType = '';
+ public $kind;
+ protected $languageTargetingType = 'Google_Service_Dfareporting_LanguageTargeting';
+ protected $languageTargetingDataType = '';
+ protected $listTargetingExpressionType = 'Google_Service_Dfareporting_ListTargetingExpression';
+ protected $listTargetingExpressionDataType = '';
+ public $name;
+ public $subaccountId;
+ protected $technologyTargetingType = 'Google_Service_Dfareporting_TechnologyTargeting';
+ protected $technologyTargetingDataType = '';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setDayPartTargeting(Google_Service_Dfareporting_DayPartTargeting $dayPartTargeting)
+ {
+ $this->dayPartTargeting = $dayPartTargeting;
+ }
+ public function getDayPartTargeting()
+ {
+ return $this->dayPartTargeting;
+ }
+ public function setGeoTargeting(Google_Service_Dfareporting_GeoTargeting $geoTargeting)
+ {
+ $this->geoTargeting = $geoTargeting;
+ }
+ public function getGeoTargeting()
+ {
+ return $this->geoTargeting;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKeyValueTargetingExpression(Google_Service_Dfareporting_KeyValueTargetingExpression $keyValueTargetingExpression)
+ {
+ $this->keyValueTargetingExpression = $keyValueTargetingExpression;
+ }
+ public function getKeyValueTargetingExpression()
+ {
+ return $this->keyValueTargetingExpression;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguageTargeting(Google_Service_Dfareporting_LanguageTargeting $languageTargeting)
+ {
+ $this->languageTargeting = $languageTargeting;
+ }
+ public function getLanguageTargeting()
+ {
+ return $this->languageTargeting;
+ }
+ public function setListTargetingExpression(Google_Service_Dfareporting_ListTargetingExpression $listTargetingExpression)
+ {
+ $this->listTargetingExpression = $listTargetingExpression;
+ }
+ public function getListTargetingExpression()
+ {
+ return $this->listTargetingExpression;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+ public function setTechnologyTargeting(Google_Service_Dfareporting_TechnologyTargeting $technologyTargeting)
+ {
+ $this->technologyTargeting = $technologyTargeting;
+ }
+ public function getTechnologyTargeting()
+ {
+ return $this->technologyTargeting;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplatesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplatesListResponse.php
new file mode 100644
index 00000000..5cbe40fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TargetingTemplatesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TargetingTemplatesListResponse extends Google_Collection
+{
+ protected $collection_key = 'targetingTemplates';
+ public $kind;
+ public $nextPageToken;
+ protected $targetingTemplatesType = 'Google_Service_Dfareporting_TargetingTemplate';
+ protected $targetingTemplatesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTargetingTemplates($targetingTemplates)
+ {
+ $this->targetingTemplates = $targetingTemplates;
+ }
+ public function getTargetingTemplates()
+ {
+ return $this->targetingTemplates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TechnologyTargeting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TechnologyTargeting.php
new file mode 100644
index 00000000..1284b19c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TechnologyTargeting.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection
+{
+ protected $collection_key = 'platformTypes';
+ protected $browsersType = 'Google_Service_Dfareporting_Browser';
+ protected $browsersDataType = 'array';
+ protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType';
+ protected $connectionTypesDataType = 'array';
+ protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier';
+ protected $mobileCarriersDataType = 'array';
+ protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion';
+ protected $operatingSystemVersionsDataType = 'array';
+ protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem';
+ protected $operatingSystemsDataType = 'array';
+ protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType';
+ protected $platformTypesDataType = 'array';
+
+ public function setBrowsers($browsers)
+ {
+ $this->browsers = $browsers;
+ }
+ public function getBrowsers()
+ {
+ return $this->browsers;
+ }
+ public function setConnectionTypes($connectionTypes)
+ {
+ $this->connectionTypes = $connectionTypes;
+ }
+ public function getConnectionTypes()
+ {
+ return $this->connectionTypes;
+ }
+ public function setMobileCarriers($mobileCarriers)
+ {
+ $this->mobileCarriers = $mobileCarriers;
+ }
+ public function getMobileCarriers()
+ {
+ return $this->mobileCarriers;
+ }
+ public function setOperatingSystemVersions($operatingSystemVersions)
+ {
+ $this->operatingSystemVersions = $operatingSystemVersions;
+ }
+ public function getOperatingSystemVersions()
+ {
+ return $this->operatingSystemVersions;
+ }
+ public function setOperatingSystems($operatingSystems)
+ {
+ $this->operatingSystems = $operatingSystems;
+ }
+ public function getOperatingSystems()
+ {
+ return $this->operatingSystems;
+ }
+ public function setPlatformTypes($platformTypes)
+ {
+ $this->platformTypes = $platformTypes;
+ }
+ public function getPlatformTypes()
+ {
+ return $this->platformTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyAuthenticationToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyAuthenticationToken.php
new file mode 100644
index 00000000..5f240020
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyAuthenticationToken.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ThirdPartyAuthenticationToken extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyTrackingUrl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyTrackingUrl.php
new file mode 100644
index 00000000..0c3afdf4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/ThirdPartyTrackingUrl.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_ThirdPartyTrackingUrl extends Google_Model
+{
+ public $thirdPartyUrlType;
+ public $url;
+
+ public function setThirdPartyUrlType($thirdPartyUrlType)
+ {
+ $this->thirdPartyUrlType = $thirdPartyUrlType;
+ }
+ public function getThirdPartyUrlType()
+ {
+ return $this->thirdPartyUrlType;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TranscodeSetting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TranscodeSetting.php
new file mode 100644
index 00000000..dd691696
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/TranscodeSetting.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_TranscodeSetting extends Google_Collection
+{
+ protected $collection_key = 'enabledVideoFormats';
+ public $enabledVideoFormats;
+ public $kind;
+
+ public function setEnabledVideoFormats($enabledVideoFormats)
+ {
+ $this->enabledVideoFormats = $enabledVideoFormats;
+ }
+ public function getEnabledVideoFormats()
+ {
+ return $this->enabledVideoFormats;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserDefinedVariableConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserDefinedVariableConfiguration.php
new file mode 100644
index 00000000..a3bf7433
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserDefinedVariableConfiguration.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserDefinedVariableConfiguration extends Google_Model
+{
+ public $dataType;
+ public $reportName;
+ public $variableType;
+
+ public function setDataType($dataType)
+ {
+ $this->dataType = $dataType;
+ }
+ public function getDataType()
+ {
+ return $this->dataType;
+ }
+ public function setReportName($reportName)
+ {
+ $this->reportName = $reportName;
+ }
+ public function getReportName()
+ {
+ return $this->reportName;
+ }
+ public function setVariableType($variableType)
+ {
+ $this->variableType = $variableType;
+ }
+ public function getVariableType()
+ {
+ return $this->variableType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfile.php
new file mode 100644
index 00000000..55dffef4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfile.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserProfile extends Google_Model
+{
+ public $accountId;
+ public $accountName;
+ public $etag;
+ public $kind;
+ public $profileId;
+ public $subAccountId;
+ public $subAccountName;
+ public $userName;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAccountName($accountName)
+ {
+ $this->accountName = $accountName;
+ }
+ public function getAccountName()
+ {
+ return $this->accountName;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setSubAccountId($subAccountId)
+ {
+ $this->subAccountId = $subAccountId;
+ }
+ public function getSubAccountId()
+ {
+ return $this->subAccountId;
+ }
+ public function setSubAccountName($subAccountName)
+ {
+ $this->subAccountName = $subAccountName;
+ }
+ public function getSubAccountName()
+ {
+ return $this->subAccountName;
+ }
+ public function setUserName($userName)
+ {
+ $this->userName = $userName;
+ }
+ public function getUserName()
+ {
+ return $this->userName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfileList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfileList.php
new file mode 100644
index 00000000..57217604
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserProfileList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserProfileList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Dfareporting_UserProfile';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRole.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRole.php
new file mode 100644
index 00000000..dfb7b1eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRole.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserRole extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $accountId;
+ public $defaultUserRole;
+ public $id;
+ public $kind;
+ public $name;
+ public $parentUserRoleId;
+ protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission';
+ protected $permissionsDataType = 'array';
+ public $subaccountId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setDefaultUserRole($defaultUserRole)
+ {
+ $this->defaultUserRole = $defaultUserRole;
+ }
+ public function getDefaultUserRole()
+ {
+ return $this->defaultUserRole;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentUserRoleId($parentUserRoleId)
+ {
+ $this->parentUserRoleId = $parentUserRoleId;
+ }
+ public function getParentUserRoleId()
+ {
+ return $this->parentUserRoleId;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermission.php
new file mode 100644
index 00000000..a6963c65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermission.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserRolePermission extends Google_Model
+{
+ public $availability;
+ public $id;
+ public $kind;
+ public $name;
+ public $permissionGroupId;
+
+ public function setAvailability($availability)
+ {
+ $this->availability = $availability;
+ }
+ public function getAvailability()
+ {
+ return $this->availability;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPermissionGroupId($permissionGroupId)
+ {
+ $this->permissionGroupId = $permissionGroupId;
+ }
+ public function getPermissionGroupId()
+ {
+ return $this->permissionGroupId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroup.php
new file mode 100644
index 00000000..2d07d1f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroup.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserRolePermissionGroup extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroupsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroupsListResponse.php
new file mode 100644
index 00000000..db2370e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionGroupsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserRolePermissionGroupsListResponse extends Google_Collection
+{
+ protected $collection_key = 'userRolePermissionGroups';
+ public $kind;
+ protected $userRolePermissionGroupsType = 'Google_Service_Dfareporting_UserRolePermissionGroup';
+ protected $userRolePermissionGroupsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUserRolePermissionGroups($userRolePermissionGroups)
+ {
+ $this->userRolePermissionGroups = $userRolePermissionGroups;
+ }
+ public function getUserRolePermissionGroups()
+ {
+ return $this->userRolePermissionGroups;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionsListResponse.php
new file mode 100644
index 00000000..8e5092e4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolePermissionsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserRolePermissionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'userRolePermissions';
+ public $kind;
+ protected $userRolePermissionsType = 'Google_Service_Dfareporting_UserRolePermission';
+ protected $userRolePermissionsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUserRolePermissions($userRolePermissions)
+ {
+ $this->userRolePermissions = $userRolePermissions;
+ }
+ public function getUserRolePermissions()
+ {
+ return $this->userRolePermissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolesListResponse.php
new file mode 100644
index 00000000..03f56d95
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/UserRolesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_UserRolesListResponse extends Google_Collection
+{
+ protected $collection_key = 'userRoles';
+ public $kind;
+ public $nextPageToken;
+ protected $userRolesType = 'Google_Service_Dfareporting_UserRole';
+ protected $userRolesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setUserRoles($userRoles)
+ {
+ $this->userRoles = $userRoles;
+ }
+ public function getUserRoles()
+ {
+ return $this->userRoles;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormat.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormat.php
new file mode 100644
index 00000000..816cab22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormat.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_VideoFormat extends Google_Model
+{
+ public $fileType;
+ public $id;
+ public $kind;
+ protected $resolutionType = 'Google_Service_Dfareporting_Size';
+ protected $resolutionDataType = '';
+ public $targetBitRate;
+
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResolution(Google_Service_Dfareporting_Size $resolution)
+ {
+ $this->resolution = $resolution;
+ }
+ public function getResolution()
+ {
+ return $this->resolution;
+ }
+ public function setTargetBitRate($targetBitRate)
+ {
+ $this->targetBitRate = $targetBitRate;
+ }
+ public function getTargetBitRate()
+ {
+ return $this->targetBitRate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormatsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormatsListResponse.php
new file mode 100644
index 00000000..08cba30e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoFormatsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_VideoFormatsListResponse extends Google_Collection
+{
+ protected $collection_key = 'videoFormats';
+ public $kind;
+ protected $videoFormatsType = 'Google_Service_Dfareporting_VideoFormat';
+ protected $videoFormatsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVideoFormats($videoFormats)
+ {
+ $this->videoFormats = $videoFormats;
+ }
+ public function getVideoFormats()
+ {
+ return $this->videoFormats;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoOffset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoOffset.php
new file mode 100644
index 00000000..0df6f9cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoOffset.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_VideoOffset extends Google_Model
+{
+ public $offsetPercentage;
+ public $offsetSeconds;
+
+ public function setOffsetPercentage($offsetPercentage)
+ {
+ $this->offsetPercentage = $offsetPercentage;
+ }
+ public function getOffsetPercentage()
+ {
+ return $this->offsetPercentage;
+ }
+ public function setOffsetSeconds($offsetSeconds)
+ {
+ $this->offsetSeconds = $offsetSeconds;
+ }
+ public function getOffsetSeconds()
+ {
+ return $this->offsetSeconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoSettings.php
new file mode 100644
index 00000000..4e4a0330
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dfareporting/VideoSettings.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dfareporting_VideoSettings extends Google_Model
+{
+ protected $companionSettingsType = 'Google_Service_Dfareporting_CompanionSetting';
+ protected $companionSettingsDataType = '';
+ public $kind;
+ protected $skippableSettingsType = 'Google_Service_Dfareporting_SkippableSetting';
+ protected $skippableSettingsDataType = '';
+ protected $transcodeSettingsType = 'Google_Service_Dfareporting_TranscodeSetting';
+ protected $transcodeSettingsDataType = '';
+
+ public function setCompanionSettings(Google_Service_Dfareporting_CompanionSetting $companionSettings)
+ {
+ $this->companionSettings = $companionSettings;
+ }
+ public function getCompanionSettings()
+ {
+ return $this->companionSettings;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSkippableSettings(Google_Service_Dfareporting_SkippableSetting $skippableSettings)
+ {
+ $this->skippableSettings = $skippableSettings;
+ }
+ public function getSkippableSettings()
+ {
+ return $this->skippableSettings;
+ }
+ public function setTranscodeSettings(Google_Service_Dfareporting_TranscodeSetting $transcodeSettings)
+ {
+ $this->transcodeSettings = $transcodeSettings;
+ }
+ public function getTranscodeSettings()
+ {
+ return $this->transcodeSettings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory.php
new file mode 100644
index 00000000..fafcfaad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory.php
@@ -0,0 +1,1788 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Directory (directory_v1).
+ *
+ * <p>
+ * The Admin SDK Directory API lets you view and manage enterprise resources
+ * such as users and groups, administrative notifications, security features,
+ * and more.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Directory extends Google_Service
+{
+ /** View and manage customer related information. */
+ const ADMIN_DIRECTORY_CUSTOMER =
+ "https://www.googleapis.com/auth/admin.directory.customer";
+ /** View customer related information. */
+ const ADMIN_DIRECTORY_CUSTOMER_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.customer.readonly";
+ /** View and manage your Chrome OS devices' metadata. */
+ const ADMIN_DIRECTORY_DEVICE_CHROMEOS =
+ "https://www.googleapis.com/auth/admin.directory.device.chromeos";
+ /** View your Chrome OS devices' metadata. */
+ const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
+ /** View and manage your mobile devices' metadata. */
+ const ADMIN_DIRECTORY_DEVICE_MOBILE =
+ "https://www.googleapis.com/auth/admin.directory.device.mobile";
+ /** Manage your mobile devices by performing administrative tasks. */
+ const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION =
+ "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
+ /** View your mobile devices' metadata. */
+ const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
+ /** View and manage the provisioning of domains for your customers. */
+ const ADMIN_DIRECTORY_DOMAIN =
+ "https://www.googleapis.com/auth/admin.directory.domain";
+ /** View domains related to your customers. */
+ const ADMIN_DIRECTORY_DOMAIN_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.domain.readonly";
+ /** View and manage the provisioning of groups on your domain. */
+ const ADMIN_DIRECTORY_GROUP =
+ "https://www.googleapis.com/auth/admin.directory.group";
+ /** View and manage group subscriptions on your domain. */
+ const ADMIN_DIRECTORY_GROUP_MEMBER =
+ "https://www.googleapis.com/auth/admin.directory.group.member";
+ /** View group subscriptions on your domain. */
+ const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
+ /** View groups on your domain. */
+ const ADMIN_DIRECTORY_GROUP_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.group.readonly";
+ /** View and manage notifications received on your domain. */
+ const ADMIN_DIRECTORY_NOTIFICATIONS =
+ "https://www.googleapis.com/auth/admin.directory.notifications";
+ /** View and manage organization units on your domain. */
+ const ADMIN_DIRECTORY_ORGUNIT =
+ "https://www.googleapis.com/auth/admin.directory.orgunit";
+ /** View organization units on your domain. */
+ const ADMIN_DIRECTORY_ORGUNIT_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
+ /** View and manage the provisioning of calendar resources on your domain. */
+ const ADMIN_DIRECTORY_RESOURCE_CALENDAR =
+ "https://www.googleapis.com/auth/admin.directory.resource.calendar";
+ /** View calendar resources on your domain. */
+ const ADMIN_DIRECTORY_RESOURCE_CALENDAR_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly";
+ /** Manage delegated admin roles for your domain. */
+ const ADMIN_DIRECTORY_ROLEMANAGEMENT =
+ "https://www.googleapis.com/auth/admin.directory.rolemanagement";
+ /** View delegated admin roles for your domain. */
+ const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
+ /** View and manage the provisioning of users on your domain. */
+ const ADMIN_DIRECTORY_USER =
+ "https://www.googleapis.com/auth/admin.directory.user";
+ /** View and manage user aliases on your domain. */
+ const ADMIN_DIRECTORY_USER_ALIAS =
+ "https://www.googleapis.com/auth/admin.directory.user.alias";
+ /** View user aliases on your domain. */
+ const ADMIN_DIRECTORY_USER_ALIAS_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
+ /** View users on your domain. */
+ const ADMIN_DIRECTORY_USER_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.user.readonly";
+ /** Manage data access permissions for users on your domain. */
+ const ADMIN_DIRECTORY_USER_SECURITY =
+ "https://www.googleapis.com/auth/admin.directory.user.security";
+ /** View and manage the provisioning of user schemas on your domain. */
+ const ADMIN_DIRECTORY_USERSCHEMA =
+ "https://www.googleapis.com/auth/admin.directory.userschema";
+ /** View user schemas on your domain. */
+ const ADMIN_DIRECTORY_USERSCHEMA_READONLY =
+ "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
+
+ public $asps;
+ public $channels;
+ public $chromeosdevices;
+ public $customers;
+ public $domainAliases;
+ public $domains;
+ public $groups;
+ public $groups_aliases;
+ public $members;
+ public $mobiledevices;
+ public $notifications;
+ public $orgunits;
+ public $privileges;
+ public $resources_calendars;
+ public $roleAssignments;
+ public $roles;
+ public $schemas;
+ public $tokens;
+ public $users;
+ public $users_aliases;
+ public $users_photos;
+ public $verificationCodes;
+
+ /**
+ * Constructs the internal representation of the Directory service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'admin/directory/v1/';
+ $this->version = 'directory_v1';
+ $this->serviceName = 'admin';
+
+ $this->asps = new Google_Service_Directory_Resource_Asps(
+ $this,
+ $this->serviceName,
+ 'asps',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'users/{userKey}/asps/{codeId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'codeId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'users/{userKey}/asps/{codeId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'codeId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/{userKey}/asps',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channels = new Google_Service_Directory_Resource_Channels(
+ $this,
+ $this->serviceName,
+ 'channels',
+ array(
+ 'methods' => array(
+ 'stop' => array(
+ 'path' => '/admin/directory_v1/channels/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->chromeosdevices = new Google_Service_Directory_Resource_Chromeosdevices(
+ $this,
+ $this->serviceName,
+ 'chromeosdevices',
+ array(
+ 'methods' => array(
+ 'action' => array(
+ 'path' => 'customer/{customerId}/devices/chromeos/{resourceId}/action',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customerId}/devices/chromeos',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deviceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->customers = new Google_Service_Directory_Resource_Customers(
+ $this,
+ $this->serviceName,
+ 'customers',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'customers/{customerKey}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customers/{customerKey}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customerKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customers/{customerKey}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customerKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->domainAliases = new Google_Service_Directory_Resource_DomainAliases(
+ $this,
+ $this->serviceName,
+ 'domainAliases',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'domainAliasName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'domainAliasName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customer/{customer}/domainaliases',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customer}/domainaliases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'parentDomainName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->domains = new Google_Service_Directory_Resource_Domains(
+ $this,
+ $this->serviceName,
+ 'domains',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customer}/domains/{domainName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'domainName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customer}/domains/{domainName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'domainName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customer/{customer}/domains',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customer}/domains',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->groups = new Google_Service_Directory_Resource_Groups(
+ $this,
+ $this->serviceName,
+ 'groups',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'groups/{groupKey}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'groups/{groupKey}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'groups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'groups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'domain' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'userKey' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'groups/{groupKey}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'groups/{groupKey}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->groups_aliases = new Google_Service_Directory_Resource_GroupsAliases(
+ $this,
+ $this->serviceName,
+ 'aliases',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'groups/{groupKey}/aliases/{alias}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alias' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'groups/{groupKey}/aliases',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'groups/{groupKey}/aliases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->members = new Google_Service_Directory_Resource_Members(
+ $this,
+ $this->serviceName,
+ 'members',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'groups/{groupKey}/members/{memberKey}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'memberKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'groups/{groupKey}/members/{memberKey}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'memberKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'groups/{groupKey}/members',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'groups/{groupKey}/members',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'roles' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'groups/{groupKey}/members/{memberKey}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'memberKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'groups/{groupKey}/members/{memberKey}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'groupKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'memberKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->mobiledevices = new Google_Service_Directory_Resource_Mobiledevices(
+ $this,
+ $this->serviceName,
+ 'mobiledevices',
+ array(
+ 'methods' => array(
+ 'action' => array(
+ 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customerId}/devices/mobile',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->notifications = new Google_Service_Directory_Resource_Notifications(
+ $this,
+ $this->serviceName,
+ 'notifications',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customer}/notifications/{notificationId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'notificationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customer}/notifications/{notificationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'notificationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customer}/notifications',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customer/{customer}/notifications/{notificationId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'notificationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customer/{customer}/notifications/{notificationId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'notificationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->orgunits = new Google_Service_Directory_Resource_Orgunits(
+ $this,
+ $this->serviceName,
+ 'orgunits',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orgUnitPath' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orgUnitPath' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customer/{customerId}/orgunits',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customerId}/orgunits',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orgUnitPath' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orgUnitPath' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orgUnitPath' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->privileges = new Google_Service_Directory_Resource_Privileges(
+ $this,
+ $this->serviceName,
+ 'privileges',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'customer/{customer}/roles/ALL/privileges',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->resources_calendars = new Google_Service_Directory_Resource_ResourcesCalendars(
+ $this,
+ $this->serviceName,
+ 'calendars',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'calendarResourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'calendarResourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customer/{customer}/resources/calendars',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customer}/resources/calendars',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'calendarResourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'calendarResourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->roleAssignments = new Google_Service_Directory_Resource_RoleAssignments(
+ $this,
+ $this->serviceName,
+ 'roleAssignments',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'roleAssignmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'roleAssignmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customer/{customer}/roleassignments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customer}/roleassignments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'roleId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'userKey' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->roles = new Google_Service_Directory_Resource_Roles(
+ $this,
+ $this->serviceName,
+ 'roles',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customer}/roles/{roleId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'roleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customer}/roles/{roleId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'roleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customer/{customer}/roles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customer}/roles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customer/{customer}/roles/{roleId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'roleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customer/{customer}/roles/{roleId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customer' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'roleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->schemas = new Google_Service_Directory_Resource_Schemas(
+ $this,
+ $this->serviceName,
+ 'schemas',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'customer/{customerId}/schemas/{schemaKey}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'schemaKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customer/{customerId}/schemas/{schemaKey}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'schemaKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customer/{customerId}/schemas',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'customer/{customerId}/schemas',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customer/{customerId}/schemas/{schemaKey}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'schemaKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customer/{customerId}/schemas/{schemaKey}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'schemaKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->tokens = new Google_Service_Directory_Resource_Tokens(
+ $this,
+ $this->serviceName,
+ 'tokens',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'users/{userKey}/tokens/{clientId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'users/{userKey}/tokens/{clientId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/{userKey}/tokens',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users = new Google_Service_Directory_Resource_Users(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'users/{userKey}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'users/{userKey}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customFieldMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'viewType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'users',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customFieldMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customer' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'domain' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'event' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'viewType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'makeAdmin' => array(
+ 'path' => 'users/{userKey}/makeAdmin',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'users/{userKey}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'undelete' => array(
+ 'path' => 'users/{userKey}/undelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'users/{userKey}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'users/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customFieldMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customer' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'domain' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'event' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'viewType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_aliases = new Google_Service_Directory_Resource_UsersAliases(
+ $this,
+ $this->serviceName,
+ 'aliases',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'users/{userKey}/aliases/{alias}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'alias' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'users/{userKey}/aliases',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/{userKey}/aliases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'event' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'users/{userKey}/aliases/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'event' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_photos = new Google_Service_Directory_Resource_UsersPhotos(
+ $this,
+ $this->serviceName,
+ 'photos',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'users/{userKey}/photos/thumbnail',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'users/{userKey}/photos/thumbnail',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'users/{userKey}/photos/thumbnail',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'users/{userKey}/photos/thumbnail',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->verificationCodes = new Google_Service_Directory_Resource_VerificationCodes(
+ $this,
+ $this->serviceName,
+ 'verificationCodes',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'users/{userKey}/verificationCodes/generate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'invalidate' => array(
+ 'path' => 'users/{userKey}/verificationCodes/invalidate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'users/{userKey}/verificationCodes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Alias.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Alias.php
new file mode 100644
index 00000000..f9cf8e76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Alias.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Alias extends Google_Model
+{
+ public $alias;
+ public $etag;
+ public $id;
+ public $kind;
+ public $primaryEmail;
+
+ public function setAlias($alias)
+ {
+ $this->alias = $alias;
+ }
+ public function getAlias()
+ {
+ return $this->alias;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPrimaryEmail($primaryEmail)
+ {
+ $this->primaryEmail = $primaryEmail;
+ }
+ public function getPrimaryEmail()
+ {
+ return $this->primaryEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Aliases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Aliases.php
new file mode 100644
index 00000000..419bca95
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Aliases.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Aliases extends Google_Collection
+{
+ protected $collection_key = 'aliases';
+ public $aliases;
+ public $etag;
+ public $kind;
+
+ public function setAliases($aliases)
+ {
+ $this->aliases = $aliases;
+ }
+ public function getAliases()
+ {
+ return $this->aliases;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asp.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asp.php
new file mode 100644
index 00000000..9a6dc3bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asp.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Asp extends Google_Model
+{
+ public $codeId;
+ public $creationTime;
+ public $etag;
+ public $kind;
+ public $lastTimeUsed;
+ public $name;
+ public $userKey;
+
+ public function setCodeId($codeId)
+ {
+ $this->codeId = $codeId;
+ }
+ public function getCodeId()
+ {
+ return $this->codeId;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastTimeUsed($lastTimeUsed)
+ {
+ $this->lastTimeUsed = $lastTimeUsed;
+ }
+ public function getLastTimeUsed()
+ {
+ return $this->lastTimeUsed;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUserKey($userKey)
+ {
+ $this->userKey = $userKey;
+ }
+ public function getUserKey()
+ {
+ return $this->userKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asps.php
new file mode 100644
index 00000000..05ca38b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Asps.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Asps extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_Asp';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResource.php
new file mode 100644
index 00000000..6a573ee6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResource.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_CalendarResource extends Google_Model
+{
+ public $etags;
+ public $kind;
+ public $resourceDescription;
+ public $resourceEmail;
+ public $resourceId;
+ public $resourceName;
+ public $resourceType;
+
+ public function setEtags($etags)
+ {
+ $this->etags = $etags;
+ }
+ public function getEtags()
+ {
+ return $this->etags;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResourceDescription($resourceDescription)
+ {
+ $this->resourceDescription = $resourceDescription;
+ }
+ public function getResourceDescription()
+ {
+ return $this->resourceDescription;
+ }
+ public function setResourceEmail($resourceEmail)
+ {
+ $this->resourceEmail = $resourceEmail;
+ }
+ public function getResourceEmail()
+ {
+ return $this->resourceEmail;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setResourceName($resourceName)
+ {
+ $this->resourceName = $resourceName;
+ }
+ public function getResourceName()
+ {
+ return $this->resourceName;
+ }
+ public function setResourceType($resourceType)
+ {
+ $this->resourceType = $resourceType;
+ }
+ public function getResourceType()
+ {
+ return $this->resourceType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResources.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResources.php
new file mode 100644
index 00000000..a6de5992
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CalendarResources.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_CalendarResources extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_CalendarResource';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Channel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Channel.php
new file mode 100644
index 00000000..63d6702c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Channel.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Channel extends Google_Model
+{
+ public $address;
+ public $expiration;
+ public $id;
+ public $kind;
+ public $params;
+ public $payload;
+ public $resourceId;
+ public $resourceUri;
+ public $token;
+ public $type;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setResourceUri($resourceUri)
+ {
+ $this->resourceUri = $resourceUri;
+ }
+ public function getResourceUri()
+ {
+ return $this->resourceUri;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php
new file mode 100644
index 00000000..c4b7492e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevice.php
@@ -0,0 +1,249 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_ChromeOsDevice extends Google_Collection
+{
+ protected $collection_key = 'recentUsers';
+ protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges';
+ protected $activeTimeRangesDataType = 'array';
+ public $annotatedAssetId;
+ public $annotatedLocation;
+ public $annotatedUser;
+ public $bootMode;
+ public $deviceId;
+ public $etag;
+ public $ethernetMacAddress;
+ public $firmwareVersion;
+ public $kind;
+ public $lastEnrollmentTime;
+ public $lastSync;
+ public $macAddress;
+ public $meid;
+ public $model;
+ public $notes;
+ public $orderNumber;
+ public $orgUnitPath;
+ public $osVersion;
+ public $platformVersion;
+ protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers';
+ protected $recentUsersDataType = 'array';
+ public $serialNumber;
+ public $status;
+ public $supportEndDate;
+ public $willAutoRenew;
+
+ public function setActiveTimeRanges($activeTimeRanges)
+ {
+ $this->activeTimeRanges = $activeTimeRanges;
+ }
+ public function getActiveTimeRanges()
+ {
+ return $this->activeTimeRanges;
+ }
+ public function setAnnotatedAssetId($annotatedAssetId)
+ {
+ $this->annotatedAssetId = $annotatedAssetId;
+ }
+ public function getAnnotatedAssetId()
+ {
+ return $this->annotatedAssetId;
+ }
+ public function setAnnotatedLocation($annotatedLocation)
+ {
+ $this->annotatedLocation = $annotatedLocation;
+ }
+ public function getAnnotatedLocation()
+ {
+ return $this->annotatedLocation;
+ }
+ public function setAnnotatedUser($annotatedUser)
+ {
+ $this->annotatedUser = $annotatedUser;
+ }
+ public function getAnnotatedUser()
+ {
+ return $this->annotatedUser;
+ }
+ public function setBootMode($bootMode)
+ {
+ $this->bootMode = $bootMode;
+ }
+ public function getBootMode()
+ {
+ return $this->bootMode;
+ }
+ public function setDeviceId($deviceId)
+ {
+ $this->deviceId = $deviceId;
+ }
+ public function getDeviceId()
+ {
+ return $this->deviceId;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEthernetMacAddress($ethernetMacAddress)
+ {
+ $this->ethernetMacAddress = $ethernetMacAddress;
+ }
+ public function getEthernetMacAddress()
+ {
+ return $this->ethernetMacAddress;
+ }
+ public function setFirmwareVersion($firmwareVersion)
+ {
+ $this->firmwareVersion = $firmwareVersion;
+ }
+ public function getFirmwareVersion()
+ {
+ return $this->firmwareVersion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastEnrollmentTime($lastEnrollmentTime)
+ {
+ $this->lastEnrollmentTime = $lastEnrollmentTime;
+ }
+ public function getLastEnrollmentTime()
+ {
+ return $this->lastEnrollmentTime;
+ }
+ public function setLastSync($lastSync)
+ {
+ $this->lastSync = $lastSync;
+ }
+ public function getLastSync()
+ {
+ return $this->lastSync;
+ }
+ public function setMacAddress($macAddress)
+ {
+ $this->macAddress = $macAddress;
+ }
+ public function getMacAddress()
+ {
+ return $this->macAddress;
+ }
+ public function setMeid($meid)
+ {
+ $this->meid = $meid;
+ }
+ public function getMeid()
+ {
+ return $this->meid;
+ }
+ public function setModel($model)
+ {
+ $this->model = $model;
+ }
+ public function getModel()
+ {
+ return $this->model;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setOrderNumber($orderNumber)
+ {
+ $this->orderNumber = $orderNumber;
+ }
+ public function getOrderNumber()
+ {
+ return $this->orderNumber;
+ }
+ public function setOrgUnitPath($orgUnitPath)
+ {
+ $this->orgUnitPath = $orgUnitPath;
+ }
+ public function getOrgUnitPath()
+ {
+ return $this->orgUnitPath;
+ }
+ public function setOsVersion($osVersion)
+ {
+ $this->osVersion = $osVersion;
+ }
+ public function getOsVersion()
+ {
+ return $this->osVersion;
+ }
+ public function setPlatformVersion($platformVersion)
+ {
+ $this->platformVersion = $platformVersion;
+ }
+ public function getPlatformVersion()
+ {
+ return $this->platformVersion;
+ }
+ public function setRecentUsers($recentUsers)
+ {
+ $this->recentUsers = $recentUsers;
+ }
+ public function getRecentUsers()
+ {
+ return $this->recentUsers;
+ }
+ public function setSerialNumber($serialNumber)
+ {
+ $this->serialNumber = $serialNumber;
+ }
+ public function getSerialNumber()
+ {
+ return $this->serialNumber;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSupportEndDate($supportEndDate)
+ {
+ $this->supportEndDate = $supportEndDate;
+ }
+ public function getSupportEndDate()
+ {
+ return $this->supportEndDate;
+ }
+ public function setWillAutoRenew($willAutoRenew)
+ {
+ $this->willAutoRenew = $willAutoRenew;
+ }
+ public function getWillAutoRenew()
+ {
+ return $this->willAutoRenew;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceAction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceAction.php
new file mode 100644
index 00000000..4b27a170
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceAction.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_ChromeOsDeviceAction extends Google_Model
+{
+ public $action;
+ public $deprovisionReason;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setDeprovisionReason($deprovisionReason)
+ {
+ $this->deprovisionReason = $deprovisionReason;
+ }
+ public function getDeprovisionReason()
+ {
+ return $this->deprovisionReason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceActiveTimeRanges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceActiveTimeRanges.php
new file mode 100644
index 00000000..d07a88bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceActiveTimeRanges.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model
+{
+ public $activeTime;
+ public $date;
+
+ public function setActiveTime($activeTime)
+ {
+ $this->activeTime = $activeTime;
+ }
+ public function getActiveTime()
+ {
+ return $this->activeTime;
+ }
+ public function setDate($date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceRecentUsers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceRecentUsers.php
new file mode 100644
index 00000000..7e9de091
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDeviceRecentUsers.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model
+{
+ public $email;
+ public $type;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevices.php
new file mode 100644
index 00000000..ca52967a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/ChromeOsDevices.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_ChromeOsDevices extends Google_Collection
+{
+ protected $collection_key = 'chromeosdevices';
+ protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice';
+ protected $chromeosdevicesDataType = 'array';
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+
+ public function setChromeosdevices($chromeosdevices)
+ {
+ $this->chromeosdevices = $chromeosdevices;
+ }
+ public function getChromeosdevices()
+ {
+ return $this->chromeosdevices;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Customer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Customer.php
new file mode 100644
index 00000000..30461ac1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Customer.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Customer extends Google_Model
+{
+ public $alternateEmail;
+ public $customerCreationTime;
+ public $customerDomain;
+ public $etag;
+ public $id;
+ public $kind;
+ public $language;
+ public $phoneNumber;
+ protected $postalAddressType = 'Google_Service_Directory_CustomerPostalAddress';
+ protected $postalAddressDataType = '';
+
+ public function setAlternateEmail($alternateEmail)
+ {
+ $this->alternateEmail = $alternateEmail;
+ }
+ public function getAlternateEmail()
+ {
+ return $this->alternateEmail;
+ }
+ public function setCustomerCreationTime($customerCreationTime)
+ {
+ $this->customerCreationTime = $customerCreationTime;
+ }
+ public function getCustomerCreationTime()
+ {
+ return $this->customerCreationTime;
+ }
+ public function setCustomerDomain($customerDomain)
+ {
+ $this->customerDomain = $customerDomain;
+ }
+ public function getCustomerDomain()
+ {
+ return $this->customerDomain;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+ public function setPostalAddress(Google_Service_Directory_CustomerPostalAddress $postalAddress)
+ {
+ $this->postalAddress = $postalAddress;
+ }
+ public function getPostalAddress()
+ {
+ return $this->postalAddress;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CustomerPostalAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CustomerPostalAddress.php
new file mode 100644
index 00000000..bf05a06a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/CustomerPostalAddress.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_CustomerPostalAddress extends Google_Model
+{
+ public $addressLine1;
+ public $addressLine2;
+ public $addressLine3;
+ public $contactName;
+ public $countryCode;
+ public $locality;
+ public $organizationName;
+ public $postalCode;
+ public $region;
+
+ public function setAddressLine1($addressLine1)
+ {
+ $this->addressLine1 = $addressLine1;
+ }
+ public function getAddressLine1()
+ {
+ return $this->addressLine1;
+ }
+ public function setAddressLine2($addressLine2)
+ {
+ $this->addressLine2 = $addressLine2;
+ }
+ public function getAddressLine2()
+ {
+ return $this->addressLine2;
+ }
+ public function setAddressLine3($addressLine3)
+ {
+ $this->addressLine3 = $addressLine3;
+ }
+ public function getAddressLine3()
+ {
+ return $this->addressLine3;
+ }
+ public function setContactName($contactName)
+ {
+ $this->contactName = $contactName;
+ }
+ public function getContactName()
+ {
+ return $this->contactName;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setLocality($locality)
+ {
+ $this->locality = $locality;
+ }
+ public function getLocality()
+ {
+ return $this->locality;
+ }
+ public function setOrganizationName($organizationName)
+ {
+ $this->organizationName = $organizationName;
+ }
+ public function getOrganizationName()
+ {
+ return $this->organizationName;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAlias.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAlias.php
new file mode 100644
index 00000000..5f5192b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAlias.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_DomainAlias extends Google_Model
+{
+ public $creationTime;
+ public $domainAliasName;
+ public $etag;
+ public $kind;
+ public $parentDomainName;
+ public $verified;
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDomainAliasName($domainAliasName)
+ {
+ $this->domainAliasName = $domainAliasName;
+ }
+ public function getDomainAliasName()
+ {
+ return $this->domainAliasName;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParentDomainName($parentDomainName)
+ {
+ $this->parentDomainName = $parentDomainName;
+ }
+ public function getParentDomainName()
+ {
+ return $this->parentDomainName;
+ }
+ public function setVerified($verified)
+ {
+ $this->verified = $verified;
+ }
+ public function getVerified()
+ {
+ return $this->verified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAliases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAliases.php
new file mode 100644
index 00000000..2b08b131
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/DomainAliases.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_DomainAliases extends Google_Collection
+{
+ protected $collection_key = 'domainAliases';
+ protected $domainAliasesType = 'Google_Service_Directory_DomainAlias';
+ protected $domainAliasesDataType = 'array';
+ public $etag;
+ public $kind;
+
+ public function setDomainAliases($domainAliases)
+ {
+ $this->domainAliases = $domainAliases;
+ }
+ public function getDomainAliases()
+ {
+ return $this->domainAliases;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains.php
new file mode 100644
index 00000000..a1573a21
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Domains extends Google_Collection
+{
+ protected $collection_key = 'domainAliases';
+ public $creationTime;
+ protected $domainAliasesType = 'Google_Service_Directory_DomainAlias';
+ protected $domainAliasesDataType = 'array';
+ public $domainName;
+ public $etag;
+ public $isPrimary;
+ public $kind;
+ public $verified;
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDomainAliases($domainAliases)
+ {
+ $this->domainAliases = $domainAliases;
+ }
+ public function getDomainAliases()
+ {
+ return $this->domainAliases;
+ }
+ public function setDomainName($domainName)
+ {
+ $this->domainName = $domainName;
+ }
+ public function getDomainName()
+ {
+ return $this->domainName;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIsPrimary($isPrimary)
+ {
+ $this->isPrimary = $isPrimary;
+ }
+ public function getIsPrimary()
+ {
+ return $this->isPrimary;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVerified($verified)
+ {
+ $this->verified = $verified;
+ }
+ public function getVerified()
+ {
+ return $this->verified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains2.php
new file mode 100644
index 00000000..73fbd448
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Domains2.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Domains2 extends Google_Collection
+{
+ protected $collection_key = 'domains';
+ protected $domainsType = 'Google_Service_Directory_Domains';
+ protected $domainsDataType = 'array';
+ public $etag;
+ public $kind;
+
+ public function setDomains($domains)
+ {
+ $this->domains = $domains;
+ }
+ public function getDomains()
+ {
+ return $this->domains;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Group.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Group.php
new file mode 100644
index 00000000..4d5c5534
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Group.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Group extends Google_Collection
+{
+ protected $collection_key = 'nonEditableAliases';
+ public $adminCreated;
+ public $aliases;
+ public $description;
+ public $directMembersCount;
+ public $email;
+ public $etag;
+ public $id;
+ public $kind;
+ public $name;
+ public $nonEditableAliases;
+
+ public function setAdminCreated($adminCreated)
+ {
+ $this->adminCreated = $adminCreated;
+ }
+ public function getAdminCreated()
+ {
+ return $this->adminCreated;
+ }
+ public function setAliases($aliases)
+ {
+ $this->aliases = $aliases;
+ }
+ public function getAliases()
+ {
+ return $this->aliases;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDirectMembersCount($directMembersCount)
+ {
+ $this->directMembersCount = $directMembersCount;
+ }
+ public function getDirectMembersCount()
+ {
+ return $this->directMembersCount;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNonEditableAliases($nonEditableAliases)
+ {
+ $this->nonEditableAliases = $nonEditableAliases;
+ }
+ public function getNonEditableAliases()
+ {
+ return $this->nonEditableAliases;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Groups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Groups.php
new file mode 100644
index 00000000..fcd7ef5b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Groups.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Groups extends Google_Collection
+{
+ protected $collection_key = 'groups';
+ public $etag;
+ protected $groupsType = 'Google_Service_Directory_Group';
+ protected $groupsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Member.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Member.php
new file mode 100644
index 00000000..84713b82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Member.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Member extends Google_Model
+{
+ public $email;
+ public $etag;
+ public $id;
+ public $kind;
+ public $role;
+ public $status;
+ public $type;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Members.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Members.php
new file mode 100644
index 00000000..6a7206d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Members.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Members extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $etag;
+ public $kind;
+ protected $membersType = 'Google_Service_Directory_Member';
+ protected $membersDataType = 'array';
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevice.php
new file mode 100644
index 00000000..c67448ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevice.php
@@ -0,0 +1,383 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_MobileDevice extends Google_Collection
+{
+ protected $collection_key = 'otherAccountsInfo';
+ public $adbStatus;
+ protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications';
+ protected $applicationsDataType = 'array';
+ public $basebandVersion;
+ public $bootloaderVersion;
+ public $brand;
+ public $buildNumber;
+ public $defaultLanguage;
+ public $developerOptionsStatus;
+ public $deviceCompromisedStatus;
+ public $deviceId;
+ public $devicePasswordStatus;
+ public $email;
+ public $encryptionStatus;
+ public $etag;
+ public $firstSync;
+ public $hardware;
+ public $hardwareId;
+ public $imei;
+ public $kernelVersion;
+ public $kind;
+ public $lastSync;
+ public $managedAccountIsOnOwnerProfile;
+ public $manufacturer;
+ public $meid;
+ public $model;
+ public $name;
+ public $networkOperator;
+ public $os;
+ public $otherAccountsInfo;
+ public $privilege;
+ public $releaseVersion;
+ public $resourceId;
+ public $securityPatchLevel;
+ public $serialNumber;
+ public $status;
+ public $supportsWorkProfile;
+ public $type;
+ public $unknownSourcesStatus;
+ public $userAgent;
+ public $wifiMacAddress;
+
+ public function setAdbStatus($adbStatus)
+ {
+ $this->adbStatus = $adbStatus;
+ }
+ public function getAdbStatus()
+ {
+ return $this->adbStatus;
+ }
+ public function setApplications($applications)
+ {
+ $this->applications = $applications;
+ }
+ public function getApplications()
+ {
+ return $this->applications;
+ }
+ public function setBasebandVersion($basebandVersion)
+ {
+ $this->basebandVersion = $basebandVersion;
+ }
+ public function getBasebandVersion()
+ {
+ return $this->basebandVersion;
+ }
+ public function setBootloaderVersion($bootloaderVersion)
+ {
+ $this->bootloaderVersion = $bootloaderVersion;
+ }
+ public function getBootloaderVersion()
+ {
+ return $this->bootloaderVersion;
+ }
+ public function setBrand($brand)
+ {
+ $this->brand = $brand;
+ }
+ public function getBrand()
+ {
+ return $this->brand;
+ }
+ public function setBuildNumber($buildNumber)
+ {
+ $this->buildNumber = $buildNumber;
+ }
+ public function getBuildNumber()
+ {
+ return $this->buildNumber;
+ }
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setDeveloperOptionsStatus($developerOptionsStatus)
+ {
+ $this->developerOptionsStatus = $developerOptionsStatus;
+ }
+ public function getDeveloperOptionsStatus()
+ {
+ return $this->developerOptionsStatus;
+ }
+ public function setDeviceCompromisedStatus($deviceCompromisedStatus)
+ {
+ $this->deviceCompromisedStatus = $deviceCompromisedStatus;
+ }
+ public function getDeviceCompromisedStatus()
+ {
+ return $this->deviceCompromisedStatus;
+ }
+ public function setDeviceId($deviceId)
+ {
+ $this->deviceId = $deviceId;
+ }
+ public function getDeviceId()
+ {
+ return $this->deviceId;
+ }
+ public function setDevicePasswordStatus($devicePasswordStatus)
+ {
+ $this->devicePasswordStatus = $devicePasswordStatus;
+ }
+ public function getDevicePasswordStatus()
+ {
+ return $this->devicePasswordStatus;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEncryptionStatus($encryptionStatus)
+ {
+ $this->encryptionStatus = $encryptionStatus;
+ }
+ public function getEncryptionStatus()
+ {
+ return $this->encryptionStatus;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFirstSync($firstSync)
+ {
+ $this->firstSync = $firstSync;
+ }
+ public function getFirstSync()
+ {
+ return $this->firstSync;
+ }
+ public function setHardware($hardware)
+ {
+ $this->hardware = $hardware;
+ }
+ public function getHardware()
+ {
+ return $this->hardware;
+ }
+ public function setHardwareId($hardwareId)
+ {
+ $this->hardwareId = $hardwareId;
+ }
+ public function getHardwareId()
+ {
+ return $this->hardwareId;
+ }
+ public function setImei($imei)
+ {
+ $this->imei = $imei;
+ }
+ public function getImei()
+ {
+ return $this->imei;
+ }
+ public function setKernelVersion($kernelVersion)
+ {
+ $this->kernelVersion = $kernelVersion;
+ }
+ public function getKernelVersion()
+ {
+ return $this->kernelVersion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastSync($lastSync)
+ {
+ $this->lastSync = $lastSync;
+ }
+ public function getLastSync()
+ {
+ return $this->lastSync;
+ }
+ public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile)
+ {
+ $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile;
+ }
+ public function getManagedAccountIsOnOwnerProfile()
+ {
+ return $this->managedAccountIsOnOwnerProfile;
+ }
+ public function setManufacturer($manufacturer)
+ {
+ $this->manufacturer = $manufacturer;
+ }
+ public function getManufacturer()
+ {
+ return $this->manufacturer;
+ }
+ public function setMeid($meid)
+ {
+ $this->meid = $meid;
+ }
+ public function getMeid()
+ {
+ return $this->meid;
+ }
+ public function setModel($model)
+ {
+ $this->model = $model;
+ }
+ public function getModel()
+ {
+ return $this->model;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetworkOperator($networkOperator)
+ {
+ $this->networkOperator = $networkOperator;
+ }
+ public function getNetworkOperator()
+ {
+ return $this->networkOperator;
+ }
+ public function setOs($os)
+ {
+ $this->os = $os;
+ }
+ public function getOs()
+ {
+ return $this->os;
+ }
+ public function setOtherAccountsInfo($otherAccountsInfo)
+ {
+ $this->otherAccountsInfo = $otherAccountsInfo;
+ }
+ public function getOtherAccountsInfo()
+ {
+ return $this->otherAccountsInfo;
+ }
+ public function setPrivilege($privilege)
+ {
+ $this->privilege = $privilege;
+ }
+ public function getPrivilege()
+ {
+ return $this->privilege;
+ }
+ public function setReleaseVersion($releaseVersion)
+ {
+ $this->releaseVersion = $releaseVersion;
+ }
+ public function getReleaseVersion()
+ {
+ return $this->releaseVersion;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setSecurityPatchLevel($securityPatchLevel)
+ {
+ $this->securityPatchLevel = $securityPatchLevel;
+ }
+ public function getSecurityPatchLevel()
+ {
+ return $this->securityPatchLevel;
+ }
+ public function setSerialNumber($serialNumber)
+ {
+ $this->serialNumber = $serialNumber;
+ }
+ public function getSerialNumber()
+ {
+ return $this->serialNumber;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSupportsWorkProfile($supportsWorkProfile)
+ {
+ $this->supportsWorkProfile = $supportsWorkProfile;
+ }
+ public function getSupportsWorkProfile()
+ {
+ return $this->supportsWorkProfile;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnknownSourcesStatus($unknownSourcesStatus)
+ {
+ $this->unknownSourcesStatus = $unknownSourcesStatus;
+ }
+ public function getUnknownSourcesStatus()
+ {
+ return $this->unknownSourcesStatus;
+ }
+ public function setUserAgent($userAgent)
+ {
+ $this->userAgent = $userAgent;
+ }
+ public function getUserAgent()
+ {
+ return $this->userAgent;
+ }
+ public function setWifiMacAddress($wifiMacAddress)
+ {
+ $this->wifiMacAddress = $wifiMacAddress;
+ }
+ public function getWifiMacAddress()
+ {
+ return $this->wifiMacAddress;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceAction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceAction.php
new file mode 100644
index 00000000..b829d0d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceAction.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_MobileDeviceAction extends Google_Model
+{
+ public $action;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceApplications.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceApplications.php
new file mode 100644
index 00000000..24f81570
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDeviceApplications.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_MobileDeviceApplications extends Google_Collection
+{
+ protected $collection_key = 'permission';
+ public $displayName;
+ public $packageName;
+ public $permission;
+ public $versionCode;
+ public $versionName;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setPackageName($packageName)
+ {
+ $this->packageName = $packageName;
+ }
+ public function getPackageName()
+ {
+ return $this->packageName;
+ }
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+ public function setVersionCode($versionCode)
+ {
+ $this->versionCode = $versionCode;
+ }
+ public function getVersionCode()
+ {
+ return $this->versionCode;
+ }
+ public function setVersionName($versionName)
+ {
+ $this->versionName = $versionName;
+ }
+ public function getVersionName()
+ {
+ return $this->versionName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevices.php
new file mode 100644
index 00000000..8d7a3761
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/MobileDevices.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_MobileDevices extends Google_Collection
+{
+ protected $collection_key = 'mobiledevices';
+ public $etag;
+ public $kind;
+ protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice';
+ protected $mobiledevicesDataType = 'array';
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMobiledevices($mobiledevices)
+ {
+ $this->mobiledevices = $mobiledevices;
+ }
+ public function getMobiledevices()
+ {
+ return $this->mobiledevices;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notification.php
new file mode 100644
index 00000000..17884c12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notification.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Notification extends Google_Model
+{
+ public $body;
+ public $etag;
+ public $fromAddress;
+ public $isUnread;
+ public $kind;
+ public $notificationId;
+ public $sendTime;
+ public $subject;
+
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFromAddress($fromAddress)
+ {
+ $this->fromAddress = $fromAddress;
+ }
+ public function getFromAddress()
+ {
+ return $this->fromAddress;
+ }
+ public function setIsUnread($isUnread)
+ {
+ $this->isUnread = $isUnread;
+ }
+ public function getIsUnread()
+ {
+ return $this->isUnread;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNotificationId($notificationId)
+ {
+ $this->notificationId = $notificationId;
+ }
+ public function getNotificationId()
+ {
+ return $this->notificationId;
+ }
+ public function setSendTime($sendTime)
+ {
+ $this->sendTime = $sendTime;
+ }
+ public function getSendTime()
+ {
+ return $this->sendTime;
+ }
+ public function setSubject($subject)
+ {
+ $this->subject = $subject;
+ }
+ public function getSubject()
+ {
+ return $this->subject;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notifications.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notifications.php
new file mode 100644
index 00000000..8b7bbd61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Notifications.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Notifications extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_Notification';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $unreadNotificationsCount;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setUnreadNotificationsCount($unreadNotificationsCount)
+ {
+ $this->unreadNotificationsCount = $unreadNotificationsCount;
+ }
+ public function getUnreadNotificationsCount()
+ {
+ return $this->unreadNotificationsCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnit.php
new file mode 100644
index 00000000..dfa9c3b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnit.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_OrgUnit extends Google_Model
+{
+ public $blockInheritance;
+ public $description;
+ public $etag;
+ public $kind;
+ public $name;
+ public $orgUnitId;
+ public $orgUnitPath;
+ public $parentOrgUnitId;
+ public $parentOrgUnitPath;
+
+ public function setBlockInheritance($blockInheritance)
+ {
+ $this->blockInheritance = $blockInheritance;
+ }
+ public function getBlockInheritance()
+ {
+ return $this->blockInheritance;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrgUnitId($orgUnitId)
+ {
+ $this->orgUnitId = $orgUnitId;
+ }
+ public function getOrgUnitId()
+ {
+ return $this->orgUnitId;
+ }
+ public function setOrgUnitPath($orgUnitPath)
+ {
+ $this->orgUnitPath = $orgUnitPath;
+ }
+ public function getOrgUnitPath()
+ {
+ return $this->orgUnitPath;
+ }
+ public function setParentOrgUnitId($parentOrgUnitId)
+ {
+ $this->parentOrgUnitId = $parentOrgUnitId;
+ }
+ public function getParentOrgUnitId()
+ {
+ return $this->parentOrgUnitId;
+ }
+ public function setParentOrgUnitPath($parentOrgUnitPath)
+ {
+ $this->parentOrgUnitPath = $parentOrgUnitPath;
+ }
+ public function getParentOrgUnitPath()
+ {
+ return $this->parentOrgUnitPath;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnits.php
new file mode 100644
index 00000000..db604d57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/OrgUnits.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_OrgUnits extends Google_Collection
+{
+ protected $collection_key = 'organizationUnits';
+ public $etag;
+ public $kind;
+ protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit';
+ protected $organizationUnitsDataType = 'array';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOrganizationUnits($organizationUnits)
+ {
+ $this->organizationUnits = $organizationUnits;
+ }
+ public function getOrganizationUnits()
+ {
+ return $this->organizationUnits;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privilege.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privilege.php
new file mode 100644
index 00000000..bb275168
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privilege.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Privilege extends Google_Collection
+{
+ protected $collection_key = 'childPrivileges';
+ protected $childPrivilegesType = 'Google_Service_Directory_Privilege';
+ protected $childPrivilegesDataType = 'array';
+ public $etag;
+ public $isOuScopable;
+ public $kind;
+ public $privilegeName;
+ public $serviceId;
+ public $serviceName;
+
+ public function setChildPrivileges($childPrivileges)
+ {
+ $this->childPrivileges = $childPrivileges;
+ }
+ public function getChildPrivileges()
+ {
+ return $this->childPrivileges;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIsOuScopable($isOuScopable)
+ {
+ $this->isOuScopable = $isOuScopable;
+ }
+ public function getIsOuScopable()
+ {
+ return $this->isOuScopable;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPrivilegeName($privilegeName)
+ {
+ $this->privilegeName = $privilegeName;
+ }
+ public function getPrivilegeName()
+ {
+ return $this->privilegeName;
+ }
+ public function setServiceId($serviceId)
+ {
+ $this->serviceId = $serviceId;
+ }
+ public function getServiceId()
+ {
+ return $this->serviceId;
+ }
+ public function setServiceName($serviceName)
+ {
+ $this->serviceName = $serviceName;
+ }
+ public function getServiceName()
+ {
+ return $this->serviceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privileges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privileges.php
new file mode 100644
index 00000000..952ff8d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Privileges.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Privileges extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_Privilege';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Asps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Asps.php
new file mode 100644
index 00000000..18b9c680
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Asps.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "asps" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $asps = $adminService->asps;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Asps extends Google_Service_Resource
+{
+ /**
+ * Delete an ASP issued by a user. (asps.delete)
+ *
+ * @param string $userKey Identifies the user in the API request. The value can
+ * be the user's primary email address, alias email address, or unique user ID.
+ * @param int $codeId The unique ID of the ASP to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userKey, $codeId, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'codeId' => $codeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Get information about an ASP issued by a user. (asps.get)
+ *
+ * @param string $userKey Identifies the user in the API request. The value can
+ * be the user's primary email address, alias email address, or unique user ID.
+ * @param int $codeId The unique ID of the ASP.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Asp
+ */
+ public function get($userKey, $codeId, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'codeId' => $codeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Asp");
+ }
+ /**
+ * List the ASPs issued by a user. (asps.listAsps)
+ *
+ * @param string $userKey Identifies the user in the API request. The value can
+ * be the user's primary email address, alias email address, or unique user ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Asps
+ */
+ public function listAsps($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Asps");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Channels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Channels.php
new file mode 100644
index 00000000..841a8198
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Channels.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $channels = $adminService->channels;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Channels extends Google_Service_Resource
+{
+ /**
+ * Stop watching resources through this channel (channels.stop)
+ *
+ * @param Google_Service_Directory_Channel $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function stop(Google_Service_Directory_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php
new file mode 100644
index 00000000..d44bfd16
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Chromeosdevices.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "chromeosdevices" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $chromeosdevices = $adminService->chromeosdevices;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Chromeosdevices extends Google_Service_Resource
+{
+ /**
+ * Take action on Chrome OS Device (chromeosdevices.action)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $resourceId Immutable id of Chrome OS Device
+ * @param Google_Service_Directory_ChromeOsDeviceAction $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function action($customerId, $resourceId, Google_Service_Directory_ChromeOsDeviceAction $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('action', array($params));
+ }
+ /**
+ * Retrieve Chrome OS Device (chromeosdevices.get)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $deviceId Immutable id of Chrome OS Device
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @return Google_Service_Directory_ChromeOsDevice
+ */
+ public function get($customerId, $deviceId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice");
+ }
+ /**
+ * Retrieve all Chrome OS Devices of a customer (paginated)
+ * (chromeosdevices.listChromeosdevices)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return. Default is 100
+ * @opt_param string orderBy Column to use for sorting results
+ * @opt_param string pageToken Token to specify next page in the list
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @opt_param string query Search string in the format given at
+ * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333
+ * @opt_param string sortOrder Whether to return results in ascending or
+ * descending order. Only of use when orderBy is also used
+ * @return Google_Service_Directory_ChromeOsDevices
+ */
+ public function listChromeosdevices($customerId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices");
+ }
+ /**
+ * Update Chrome OS Device. This method supports patch semantics.
+ * (chromeosdevices.patch)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $deviceId Immutable id of Chrome OS Device
+ * @param Google_Service_Directory_ChromeOsDevice $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @return Google_Service_Directory_ChromeOsDevice
+ */
+ public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice");
+ }
+ /**
+ * Update Chrome OS Device (chromeosdevices.update)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $deviceId Immutable id of Chrome OS Device
+ * @param Google_Service_Directory_ChromeOsDevice $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @return Google_Service_Directory_ChromeOsDevice
+ */
+ public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Customers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Customers.php
new file mode 100644
index 00000000..cae53ef3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Customers.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $customers = $adminService->customers;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Customers extends Google_Service_Resource
+{
+ /**
+ * Retrieves a customer. (customers.get)
+ *
+ * @param string $customerKey Id of the customer to be retrieved
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Customer
+ */
+ public function get($customerKey, $optParams = array())
+ {
+ $params = array('customerKey' => $customerKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Customer");
+ }
+ /**
+ * Updates a customer. This method supports patch semantics. (customers.patch)
+ *
+ * @param string $customerKey Id of the customer to be updated
+ * @param Google_Service_Directory_Customer $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Customer
+ */
+ public function patch($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array())
+ {
+ $params = array('customerKey' => $customerKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_Customer");
+ }
+ /**
+ * Updates a customer. (customers.update)
+ *
+ * @param string $customerKey Id of the customer to be updated
+ * @param Google_Service_Directory_Customer $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Customer
+ */
+ public function update($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array())
+ {
+ $params = array('customerKey' => $customerKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_Customer");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/DomainAliases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/DomainAliases.php
new file mode 100644
index 00000000..9a27afa4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/DomainAliases.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "domainAliases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $domainAliases = $adminService->domainAliases;
+ * </code>
+ */
+class Google_Service_Directory_Resource_DomainAliases extends Google_Service_Resource
+{
+ /**
+ * Deletes a Domain Alias of the customer. (domainAliases.delete)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param string $domainAliasName Name of domain alias to be retrieved.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customer, $domainAliasName, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a domain alias of the customer. (domainAliases.get)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param string $domainAliasName Name of domain alias to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_DomainAlias
+ */
+ public function get($customer, $domainAliasName, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_DomainAlias");
+ }
+ /**
+ * Inserts a Domain alias of the customer. (domainAliases.insert)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param Google_Service_Directory_DomainAlias $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_DomainAlias
+ */
+ public function insert($customer, Google_Service_Directory_DomainAlias $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_DomainAlias");
+ }
+ /**
+ * Lists the domain aliases of the customer. (domainAliases.listDomainAliases)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string parentDomainName Name of the parent domain for which domain
+ * aliases are to be fetched.
+ * @return Google_Service_Directory_DomainAliases
+ */
+ public function listDomainAliases($customer, $optParams = array())
+ {
+ $params = array('customer' => $customer);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_DomainAliases");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Domains.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Domains.php
new file mode 100644
index 00000000..7e6fc27a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Domains.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "domains" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $domains = $adminService->domains;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Domains extends Google_Service_Resource
+{
+ /**
+ * Deletes a domain of the customer. (domains.delete)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param string $domainName Name of domain to be deleted
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customer, $domainName, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'domainName' => $domainName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a domain of the customer. (domains.get)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param string $domainName Name of domain to be retrieved
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Domains
+ */
+ public function get($customer, $domainName, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'domainName' => $domainName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Domains");
+ }
+ /**
+ * Inserts a domain of the customer. (domains.insert)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param Google_Service_Directory_Domains $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Domains
+ */
+ public function insert($customer, Google_Service_Directory_Domains $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_Domains");
+ }
+ /**
+ * Lists the domains of the customer. (domains.listDomains)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Domains2
+ */
+ public function listDomains($customer, $optParams = array())
+ {
+ $params = array('customer' => $customer);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Domains2");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php
new file mode 100644
index 00000000..85960fd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Groups.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $groups = $adminService->groups;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Groups extends Google_Service_Resource
+{
+ /**
+ * Delete Group (groups.delete)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($groupKey, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieve Group (groups.get)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Group
+ */
+ public function get($groupKey, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Group");
+ }
+ /**
+ * Create Group (groups.insert)
+ *
+ * @param Google_Service_Directory_Group $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Group
+ */
+ public function insert(Google_Service_Directory_Group $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_Group");
+ }
+ /**
+ * Retrieve all groups in a domain (paginated) (groups.listGroups)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customer Immutable id of the Google Apps account. In case
+ * of multi-domain, to fetch all groups for a customer, fill this field instead
+ * of domain.
+ * @opt_param string domain Name of the domain. Fill this field to get groups
+ * from only this domain. To return all groups in a multi-domain fill customer
+ * field instead.
+ * @opt_param int maxResults Maximum number of results to return. Default is 200
+ * @opt_param string pageToken Token to specify next page in the list
+ * @opt_param string userKey Email or immutable Id of the user if only those
+ * groups are to be listed, the given user is a member of. If Id, it should
+ * match with id of user object
+ * @return Google_Service_Directory_Groups
+ */
+ public function listGroups($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Groups");
+ }
+ /**
+ * Update Group. This method supports patch semantics. (groups.patch)
+ *
+ * @param string $groupKey Email or immutable Id of the group. If Id, it should
+ * match with id of group object
+ * @param Google_Service_Directory_Group $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Group
+ */
+ public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_Group");
+ }
+ /**
+ * Update Group (groups.update)
+ *
+ * @param string $groupKey Email or immutable Id of the group. If Id, it should
+ * match with id of group object
+ * @param Google_Service_Directory_Group $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Group
+ */
+ public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_Group");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/GroupsAliases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/GroupsAliases.php
new file mode 100644
index 00000000..2a684876
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/GroupsAliases.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "aliases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $aliases = $adminService->aliases;
+ * </code>
+ */
+class Google_Service_Directory_Resource_GroupsAliases extends Google_Service_Resource
+{
+ /**
+ * Remove a alias for the group (aliases.delete)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param string $alias The alias to be removed
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($groupKey, $alias, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'alias' => $alias);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Add a alias for the group (aliases.insert)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param Google_Service_Directory_Alias $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Alias
+ */
+ public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_Alias");
+ }
+ /**
+ * List all aliases for a group (aliases.listGroupsAliases)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Aliases
+ */
+ public function listGroupsAliases($groupKey, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Aliases");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php
new file mode 100644
index 00000000..1dbdd8aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Members.php
@@ -0,0 +1,122 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "members" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $members = $adminService->members;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Members extends Google_Service_Resource
+{
+ /**
+ * Remove membership. (members.delete)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param string $memberKey Email or immutable Id of the member
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($groupKey, $memberKey, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieve Group Member (members.get)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param string $memberKey Email or immutable Id of the member
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Member
+ */
+ public function get($groupKey, $memberKey, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Member");
+ }
+ /**
+ * Add user to the specified group. (members.insert)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param Google_Service_Directory_Member $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Member
+ */
+ public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_Member");
+ }
+ /**
+ * Retrieve all members in a group (paginated) (members.listMembers)
+ *
+ * @param string $groupKey Email or immutable Id of the group
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return. Default is 200
+ * @opt_param string pageToken Token to specify next page in the list
+ * @opt_param string roles Comma separated role values to filter list results
+ * on.
+ * @return Google_Service_Directory_Members
+ */
+ public function listMembers($groupKey, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Members");
+ }
+ /**
+ * Update membership of a user in the specified group. This method supports
+ * patch semantics. (members.patch)
+ *
+ * @param string $groupKey Email or immutable Id of the group. If Id, it should
+ * match with id of group object
+ * @param string $memberKey Email or immutable Id of the user. If Id, it should
+ * match with id of member object
+ * @param Google_Service_Directory_Member $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Member
+ */
+ public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_Member");
+ }
+ /**
+ * Update membership of a user in the specified group. (members.update)
+ *
+ * @param string $groupKey Email or immutable Id of the group. If Id, it should
+ * match with id of group object
+ * @param string $memberKey Email or immutable Id of the user. If Id, it should
+ * match with id of member object
+ * @param Google_Service_Directory_Member $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Member
+ */
+ public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
+ {
+ $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_Member");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php
new file mode 100644
index 00000000..343d622a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Mobiledevices.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mobiledevices" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $mobiledevices = $adminService->mobiledevices;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Mobiledevices extends Google_Service_Resource
+{
+ /**
+ * Take action on Mobile Device (mobiledevices.action)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $resourceId Immutable id of Mobile Device
+ * @param Google_Service_Directory_MobileDeviceAction $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('action', array($params));
+ }
+ /**
+ * Delete Mobile Device (mobiledevices.delete)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $resourceId Immutable id of Mobile Device
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customerId, $resourceId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieve Mobile Device (mobiledevices.get)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $resourceId Immutable id of Mobile Device
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @return Google_Service_Directory_MobileDevice
+ */
+ public function get($customerId, $resourceId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_MobileDevice");
+ }
+ /**
+ * Retrieve all Mobile Devices of a customer (paginated)
+ * (mobiledevices.listMobiledevices)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return. Default is 100
+ * @opt_param string orderBy Column to use for sorting results
+ * @opt_param string pageToken Token to specify next page in the list
+ * @opt_param string projection Restrict information returned to a set of
+ * selected fields.
+ * @opt_param string query Search string in the format given at
+ * http://support.google.com/a/bin/answer.py?hl=en=1408863#search
+ * @opt_param string sortOrder Whether to return results in ascending or
+ * descending order. Only of use when orderBy is also used
+ * @return Google_Service_Directory_MobileDevices
+ */
+ public function listMobiledevices($customerId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_MobileDevices");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Notifications.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Notifications.php
new file mode 100644
index 00000000..6c0981e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Notifications.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "notifications" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $notifications = $adminService->notifications;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Notifications extends Google_Service_Resource
+{
+ /**
+ * Deletes a notification (notifications.delete)
+ *
+ * @param string $customer The unique ID for the customer's Google account. The
+ * customerId is also returned as part of the Users resource.
+ * @param string $notificationId The unique ID of the notification.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customer, $notificationId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'notificationId' => $notificationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a notification. (notifications.get)
+ *
+ * @param string $customer The unique ID for the customer's Google account. The
+ * customerId is also returned as part of the Users resource.
+ * @param string $notificationId The unique ID of the notification.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Notification
+ */
+ public function get($customer, $notificationId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'notificationId' => $notificationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Notification");
+ }
+ /**
+ * Retrieves a list of notifications. (notifications.listNotifications)
+ *
+ * @param string $customer The unique ID for the customer's Google account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language The ISO 639-1 code of the language notifications
+ * are returned in. The default is English (en).
+ * @opt_param string maxResults Maximum number of notifications to return per
+ * page. The default is 100.
+ * @opt_param string pageToken The token to specify the page of results to
+ * retrieve.
+ * @return Google_Service_Directory_Notifications
+ */
+ public function listNotifications($customer, $optParams = array())
+ {
+ $params = array('customer' => $customer);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Notifications");
+ }
+ /**
+ * Updates a notification. This method supports patch semantics.
+ * (notifications.patch)
+ *
+ * @param string $customer The unique ID for the customer's Google account.
+ * @param string $notificationId The unique ID of the notification.
+ * @param Google_Service_Directory_Notification $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Notification
+ */
+ public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_Notification");
+ }
+ /**
+ * Updates a notification. (notifications.update)
+ *
+ * @param string $customer The unique ID for the customer's Google account.
+ * @param string $notificationId The unique ID of the notification.
+ * @param Google_Service_Directory_Notification $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Notification
+ */
+ public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_Notification");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Orgunits.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Orgunits.php
new file mode 100644
index 00000000..233f08b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Orgunits.php
@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "orgunits" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $orgunits = $adminService->orgunits;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Orgunits extends Google_Service_Resource
+{
+ /**
+ * Remove Organization Unit (orgunits.delete)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string|array $orgUnitPath Full path of the organization unit or its Id
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customerId, $orgUnitPath, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieve Organization Unit (orgunits.get)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string|array $orgUnitPath Full path of the organization unit or its Id
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_OrgUnit
+ */
+ public function get($customerId, $orgUnitPath, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_OrgUnit");
+ }
+ /**
+ * Add Organization Unit (orgunits.insert)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param Google_Service_Directory_OrgUnit $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_OrgUnit
+ */
+ public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit");
+ }
+ /**
+ * Retrieve all Organization Units (orgunits.listOrgunits)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string orgUnitPath the URL-encoded organization unit's path or its
+ * Id
+ * @opt_param string type Whether to return all sub-organizations or just
+ * immediate children
+ * @return Google_Service_Directory_OrgUnits
+ */
+ public function listOrgunits($customerId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_OrgUnits");
+ }
+ /**
+ * Update Organization Unit. This method supports patch semantics.
+ * (orgunits.patch)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string|array $orgUnitPath Full path of the organization unit or its Id
+ * @param Google_Service_Directory_OrgUnit $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_OrgUnit
+ */
+ public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit");
+ }
+ /**
+ * Update Organization Unit (orgunits.update)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string|array $orgUnitPath Full path of the organization unit or its Id
+ * @param Google_Service_Directory_OrgUnit $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_OrgUnit
+ */
+ public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_OrgUnit");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Privileges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Privileges.php
new file mode 100644
index 00000000..2e55cb62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Privileges.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "privileges" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $privileges = $adminService->privileges;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Privileges extends Google_Service_Resource
+{
+ /**
+ * Retrieves a paginated list of all privileges for a customer.
+ * (privileges.listPrivileges)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Privileges
+ */
+ public function listPrivileges($customer, $optParams = array())
+ {
+ $params = array('customer' => $customer);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Privileges");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Resources.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Resources.php
new file mode 100644
index 00000000..a725d02a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Resources.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "resources" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $resources = $adminService->resources;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Resources extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesCalendars.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesCalendars.php
new file mode 100644
index 00000000..822f20f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/ResourcesCalendars.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "calendars" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $calendars = $adminService->calendars;
+ * </code>
+ */
+class Google_Service_Directory_Resource_ResourcesCalendars extends Google_Service_Resource
+{
+ /**
+ * Deletes a calendar resource. (calendars.delete)
+ *
+ * @param string $customer The unique ID for the customer's Google account. As
+ * an account administrator, you can also use the my_customer alias to represent
+ * your account's customer ID.
+ * @param string $calendarResourceId The unique ID of the calendar resource to
+ * delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customer, $calendarResourceId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a calendar resource. (calendars.get)
+ *
+ * @param string $customer The unique ID for the customer's Google account. As
+ * an account administrator, you can also use the my_customer alias to represent
+ * your account's customer ID.
+ * @param string $calendarResourceId The unique ID of the calendar resource to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_CalendarResource
+ */
+ public function get($customer, $calendarResourceId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_CalendarResource");
+ }
+ /**
+ * Inserts a calendar resource. (calendars.insert)
+ *
+ * @param string $customer The unique ID for the customer's Google account. As
+ * an account administrator, you can also use the my_customer alias to represent
+ * your account's customer ID.
+ * @param Google_Service_Directory_CalendarResource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_CalendarResource
+ */
+ public function insert($customer, Google_Service_Directory_CalendarResource $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_CalendarResource");
+ }
+ /**
+ * Retrieves a list of calendar resources for an account.
+ * (calendars.listResourcesCalendars)
+ *
+ * @param string $customer The unique ID for the customer's Google account. As
+ * an account administrator, you can also use the my_customer alias to represent
+ * your account's customer ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Token to specify the next page in the list.
+ * @return Google_Service_Directory_CalendarResources
+ */
+ public function listResourcesCalendars($customer, $optParams = array())
+ {
+ $params = array('customer' => $customer);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_CalendarResources");
+ }
+ /**
+ * Updates a calendar resource. This method supports patch semantics.
+ * (calendars.patch)
+ *
+ * @param string $customer The unique ID for the customer's Google account. As
+ * an account administrator, you can also use the my_customer alias to represent
+ * your account's customer ID.
+ * @param string $calendarResourceId The unique ID of the calendar resource to
+ * update.
+ * @param Google_Service_Directory_CalendarResource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_CalendarResource
+ */
+ public function patch($customer, $calendarResourceId, Google_Service_Directory_CalendarResource $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_CalendarResource");
+ }
+ /**
+ * Updates a calendar resource. (calendars.update)
+ *
+ * @param string $customer The unique ID for the customer's Google account. As
+ * an account administrator, you can also use the my_customer alias to represent
+ * your account's customer ID.
+ * @param string $calendarResourceId The unique ID of the calendar resource to
+ * update.
+ * @param Google_Service_Directory_CalendarResource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_CalendarResource
+ */
+ public function update($customer, $calendarResourceId, Google_Service_Directory_CalendarResource $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'calendarResourceId' => $calendarResourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_CalendarResource");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/RoleAssignments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/RoleAssignments.php
new file mode 100644
index 00000000..78be4cee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/RoleAssignments.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "roleAssignments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $roleAssignments = $adminService->roleAssignments;
+ * </code>
+ */
+class Google_Service_Directory_Resource_RoleAssignments extends Google_Service_Resource
+{
+ /**
+ * Deletes a role assignment. (roleAssignments.delete)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param string $roleAssignmentId Immutable ID of the role assignment.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customer, $roleAssignmentId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieve a role assignment. (roleAssignments.get)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param string $roleAssignmentId Immutable ID of the role assignment.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_RoleAssignment
+ */
+ public function get($customer, $roleAssignmentId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_RoleAssignment");
+ }
+ /**
+ * Creates a role assignment. (roleAssignments.insert)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param Google_Service_Directory_RoleAssignment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_RoleAssignment
+ */
+ public function insert($customer, Google_Service_Directory_RoleAssignment $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_RoleAssignment");
+ }
+ /**
+ * Retrieves a paginated list of all roleAssignments.
+ * (roleAssignments.listRoleAssignments)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Token to specify the next page in the list.
+ * @opt_param string roleId Immutable ID of a role. If included in the request,
+ * returns only role assignments containing this role ID.
+ * @opt_param string userKey The user's primary email address, alias email
+ * address, or unique user ID. If included in the request, returns role
+ * assignments only for this user.
+ * @return Google_Service_Directory_RoleAssignments
+ */
+ public function listRoleAssignments($customer, $optParams = array())
+ {
+ $params = array('customer' => $customer);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_RoleAssignments");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Roles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Roles.php
new file mode 100644
index 00000000..93036598
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Roles.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "roles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $roles = $adminService->roles;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Roles extends Google_Service_Resource
+{
+ /**
+ * Deletes a role. (roles.delete)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param string $roleId Immutable ID of the role.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customer, $roleId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'roleId' => $roleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a role. (roles.get)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param string $roleId Immutable ID of the role.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Role
+ */
+ public function get($customer, $roleId, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'roleId' => $roleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Role");
+ }
+ /**
+ * Creates a role. (roles.insert)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param Google_Service_Directory_Role $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Role
+ */
+ public function insert($customer, Google_Service_Directory_Role $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_Role");
+ }
+ /**
+ * Retrieves a paginated list of all the roles in a domain. (roles.listRoles)
+ *
+ * @param string $customer Immutable id of the Google Apps account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Token to specify the next page in the list.
+ * @return Google_Service_Directory_Roles
+ */
+ public function listRoles($customer, $optParams = array())
+ {
+ $params = array('customer' => $customer);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Roles");
+ }
+ /**
+ * Updates a role. This method supports patch semantics. (roles.patch)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param string $roleId Immutable ID of the role.
+ * @param Google_Service_Directory_Role $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Role
+ */
+ public function patch($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_Role");
+ }
+ /**
+ * Updates a role. (roles.update)
+ *
+ * @param string $customer Immutable ID of the Google Apps account.
+ * @param string $roleId Immutable ID of the role.
+ * @param Google_Service_Directory_Role $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Role
+ */
+ public function update($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array())
+ {
+ $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_Role");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Schemas.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Schemas.php
new file mode 100644
index 00000000..4592c082
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Schemas.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "schemas" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $schemas = $adminService->schemas;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Schemas extends Google_Service_Resource
+{
+ /**
+ * Delete schema (schemas.delete)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $schemaKey Name or immutable Id of the schema
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customerId, $schemaKey, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieve schema (schemas.get)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $schemaKey Name or immutable Id of the schema
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Schema
+ */
+ public function get($customerId, $schemaKey, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Schema");
+ }
+ /**
+ * Create schema. (schemas.insert)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param Google_Service_Directory_Schema $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Schema
+ */
+ public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_Schema");
+ }
+ /**
+ * Retrieve all schemas for a customer (schemas.listSchemas)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Schemas
+ */
+ public function listSchemas($customerId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Schemas");
+ }
+ /**
+ * Update schema. This method supports patch semantics. (schemas.patch)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $schemaKey Name or immutable Id of the schema.
+ * @param Google_Service_Directory_Schema $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Schema
+ */
+ public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_Schema");
+ }
+ /**
+ * Update schema (schemas.update)
+ *
+ * @param string $customerId Immutable id of the Google Apps account
+ * @param string $schemaKey Name or immutable Id of the schema.
+ * @param Google_Service_Directory_Schema $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Schema
+ */
+ public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_Schema");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Tokens.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Tokens.php
new file mode 100644
index 00000000..fed72312
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Tokens.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tokens" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $tokens = $adminService->tokens;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Tokens extends Google_Service_Resource
+{
+ /**
+ * Delete all access tokens issued by a user for an application. (tokens.delete)
+ *
+ * @param string $userKey Identifies the user in the API request. The value can
+ * be the user's primary email address, alias email address, or unique user ID.
+ * @param string $clientId The Client ID of the application the token is issued
+ * to.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userKey, $clientId, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'clientId' => $clientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Get information about an access token issued by a user. (tokens.get)
+ *
+ * @param string $userKey Identifies the user in the API request. The value can
+ * be the user's primary email address, alias email address, or unique user ID.
+ * @param string $clientId The Client ID of the application the token is issued
+ * to.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Token
+ */
+ public function get($userKey, $clientId, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'clientId' => $clientId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_Token");
+ }
+ /**
+ * Returns the set of tokens specified user has issued to 3rd party
+ * applications. (tokens.listTokens)
+ *
+ * @param string $userKey Identifies the user in the API request. The value can
+ * be the user's primary email address, alias email address, or unique user ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Tokens
+ */
+ public function listTokens($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Tokens");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Users.php
new file mode 100644
index 00000000..111b287e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/Users.php
@@ -0,0 +1,207 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $users = $adminService->users;
+ * </code>
+ */
+class Google_Service_Directory_Resource_Users extends Google_Service_Resource
+{
+ /**
+ * Delete user (users.delete)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * retrieve user (users.get)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customFieldMask Comma-separated list of schema names. All
+ * fields from these schemas are fetched. This should only be set when
+ * projection=custom.
+ * @opt_param string projection What subset of fields to fetch for this user.
+ * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
+ * view of the user.
+ * @return Google_Service_Directory_User
+ */
+ public function get($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_User");
+ }
+ /**
+ * create user. (users.insert)
+ *
+ * @param Google_Service_Directory_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_User
+ */
+ public function insert(Google_Service_Directory_User $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_User");
+ }
+ /**
+ * Retrieve either deleted users or all users in a domain (paginated)
+ * (users.listUsers)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customFieldMask Comma-separated list of schema names. All
+ * fields from these schemas are fetched. This should only be set when
+ * projection=custom.
+ * @opt_param string customer Immutable id of the Google Apps account. In case
+ * of multi-domain, to fetch all users for a customer, fill this field instead
+ * of domain.
+ * @opt_param string domain Name of the domain. Fill this field to get users
+ * from only this domain. To return all users in a multi-domain fill customer
+ * field instead.
+ * @opt_param string event Event on which subscription is intended (if
+ * subscribing)
+ * @opt_param int maxResults Maximum number of results to return. Default is
+ * 100. Max allowed is 500
+ * @opt_param string orderBy Column to use for sorting results
+ * @opt_param string pageToken Token to specify next page in the list
+ * @opt_param string projection What subset of fields to fetch for this user.
+ * @opt_param string query Query string search. Should be of the form "".
+ * Complete documentation is at https://developers.google.com/admin-
+ * sdk/directory/v1/guides/search-users
+ * @opt_param string showDeleted If set to true retrieves the list of deleted
+ * users. Default is false
+ * @opt_param string sortOrder Whether to return results in ascending or
+ * descending order.
+ * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
+ * view of the user.
+ * @return Google_Service_Directory_Users
+ */
+ public function listUsers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Users");
+ }
+ /**
+ * change admin status of a user (users.makeAdmin)
+ *
+ * @param string $userKey Email or immutable Id of the user as admin
+ * @param Google_Service_Directory_UserMakeAdmin $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('makeAdmin', array($params));
+ }
+ /**
+ * update user. This method supports patch semantics. (users.patch)
+ *
+ * @param string $userKey Email or immutable Id of the user. If Id, it should
+ * match with id of user object
+ * @param Google_Service_Directory_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_User
+ */
+ public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_User");
+ }
+ /**
+ * Undelete a deleted user (users.undelete)
+ *
+ * @param string $userKey The immutable id of the user
+ * @param Google_Service_Directory_UserUndelete $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('undelete', array($params));
+ }
+ /**
+ * update user (users.update)
+ *
+ * @param string $userKey Email or immutable Id of the user. If Id, it should
+ * match with id of user object
+ * @param Google_Service_Directory_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_User
+ */
+ public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_User");
+ }
+ /**
+ * Watch for changes in users list (users.watch)
+ *
+ * @param Google_Service_Directory_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customFieldMask Comma-separated list of schema names. All
+ * fields from these schemas are fetched. This should only be set when
+ * projection=custom.
+ * @opt_param string customer Immutable id of the Google Apps account. In case
+ * of multi-domain, to fetch all users for a customer, fill this field instead
+ * of domain.
+ * @opt_param string domain Name of the domain. Fill this field to get users
+ * from only this domain. To return all users in a multi-domain fill customer
+ * field instead.
+ * @opt_param string event Event on which subscription is intended (if
+ * subscribing)
+ * @opt_param int maxResults Maximum number of results to return. Default is
+ * 100. Max allowed is 500
+ * @opt_param string orderBy Column to use for sorting results
+ * @opt_param string pageToken Token to specify next page in the list
+ * @opt_param string projection What subset of fields to fetch for this user.
+ * @opt_param string query Query string search. Should be of the form "".
+ * Complete documentation is at https://developers.google.com/admin-
+ * sdk/directory/v1/guides/search-users
+ * @opt_param string showDeleted If set to true retrieves the list of deleted
+ * users. Default is false
+ * @opt_param string sortOrder Whether to return results in ascending or
+ * descending order.
+ * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
+ * view of the user.
+ * @return Google_Service_Directory_Channel
+ */
+ public function watch(Google_Service_Directory_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Directory_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersAliases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersAliases.php
new file mode 100644
index 00000000..545b4271
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersAliases.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "aliases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $aliases = $adminService->aliases;
+ * </code>
+ */
+class Google_Service_Directory_Resource_UsersAliases extends Google_Service_Resource
+{
+ /**
+ * Remove a alias for the user (aliases.delete)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param string $alias The alias to be removed
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userKey, $alias, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'alias' => $alias);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Add a alias for the user (aliases.insert)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param Google_Service_Directory_Alias $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_Alias
+ */
+ public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Directory_Alias");
+ }
+ /**
+ * List all aliases for a user (aliases.listUsersAliases)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string event Event on which subscription is intended (if
+ * subscribing)
+ * @return Google_Service_Directory_Aliases
+ */
+ public function listUsersAliases($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_Aliases");
+ }
+ /**
+ * Watch for changes in user aliases list (aliases.watch)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param Google_Service_Directory_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string event Event on which subscription is intended (if
+ * subscribing)
+ * @return Google_Service_Directory_Channel
+ */
+ public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Directory_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersPhotos.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersPhotos.php
new file mode 100644
index 00000000..6b3e5a32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/UsersPhotos.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "photos" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $photos = $adminService->photos;
+ * </code>
+ */
+class Google_Service_Directory_Resource_UsersPhotos extends Google_Service_Resource
+{
+ /**
+ * Remove photos for the user (photos.delete)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieve photo of a user (photos.get)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_UserPhoto
+ */
+ public function get($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Directory_UserPhoto");
+ }
+ /**
+ * Add a photo for the user. This method supports patch semantics.
+ * (photos.patch)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param Google_Service_Directory_UserPhoto $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_UserPhoto
+ */
+ public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto");
+ }
+ /**
+ * Add a photo for the user (photos.update)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param Google_Service_Directory_UserPhoto $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_UserPhoto
+ */
+ public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Directory_UserPhoto");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/VerificationCodes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/VerificationCodes.php
new file mode 100644
index 00000000..e67ff742
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Resource/VerificationCodes.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "verificationCodes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Directory(...);
+ * $verificationCodes = $adminService->verificationCodes;
+ * </code>
+ */
+class Google_Service_Directory_Resource_VerificationCodes extends Google_Service_Resource
+{
+ /**
+ * Generate new backup verification codes for the user.
+ * (verificationCodes.generate)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param array $optParams Optional parameters.
+ */
+ public function generate($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params));
+ }
+ /**
+ * Invalidate the current backup verification codes for the user.
+ * (verificationCodes.invalidate)
+ *
+ * @param string $userKey Email or immutable Id of the user
+ * @param array $optParams Optional parameters.
+ */
+ public function invalidate($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('invalidate', array($params));
+ }
+ /**
+ * Returns the current set of valid backup verification codes for the specified
+ * user. (verificationCodes.listVerificationCodes)
+ *
+ * @param string $userKey Identifies the user in the API request. The value can
+ * be the user's primary email address, alias email address, or unique user ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Directory_VerificationCodes
+ */
+ public function listVerificationCodes($userKey, $optParams = array())
+ {
+ $params = array('userKey' => $userKey);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Role.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Role.php
new file mode 100644
index 00000000..8bc11164
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Role.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Role extends Google_Collection
+{
+ protected $collection_key = 'rolePrivileges';
+ public $etag;
+ public $isSuperAdminRole;
+ public $isSystemRole;
+ public $kind;
+ public $roleDescription;
+ public $roleId;
+ public $roleName;
+ protected $rolePrivilegesType = 'Google_Service_Directory_RoleRolePrivileges';
+ protected $rolePrivilegesDataType = 'array';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIsSuperAdminRole($isSuperAdminRole)
+ {
+ $this->isSuperAdminRole = $isSuperAdminRole;
+ }
+ public function getIsSuperAdminRole()
+ {
+ return $this->isSuperAdminRole;
+ }
+ public function setIsSystemRole($isSystemRole)
+ {
+ $this->isSystemRole = $isSystemRole;
+ }
+ public function getIsSystemRole()
+ {
+ return $this->isSystemRole;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRoleDescription($roleDescription)
+ {
+ $this->roleDescription = $roleDescription;
+ }
+ public function getRoleDescription()
+ {
+ return $this->roleDescription;
+ }
+ public function setRoleId($roleId)
+ {
+ $this->roleId = $roleId;
+ }
+ public function getRoleId()
+ {
+ return $this->roleId;
+ }
+ public function setRoleName($roleName)
+ {
+ $this->roleName = $roleName;
+ }
+ public function getRoleName()
+ {
+ return $this->roleName;
+ }
+ public function setRolePrivileges($rolePrivileges)
+ {
+ $this->rolePrivileges = $rolePrivileges;
+ }
+ public function getRolePrivileges()
+ {
+ return $this->rolePrivileges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignment.php
new file mode 100644
index 00000000..ed27cfc9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignment.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_RoleAssignment extends Google_Model
+{
+ public $assignedTo;
+ public $etag;
+ public $kind;
+ public $orgUnitId;
+ public $roleAssignmentId;
+ public $roleId;
+ public $scopeType;
+
+ public function setAssignedTo($assignedTo)
+ {
+ $this->assignedTo = $assignedTo;
+ }
+ public function getAssignedTo()
+ {
+ return $this->assignedTo;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOrgUnitId($orgUnitId)
+ {
+ $this->orgUnitId = $orgUnitId;
+ }
+ public function getOrgUnitId()
+ {
+ return $this->orgUnitId;
+ }
+ public function setRoleAssignmentId($roleAssignmentId)
+ {
+ $this->roleAssignmentId = $roleAssignmentId;
+ }
+ public function getRoleAssignmentId()
+ {
+ return $this->roleAssignmentId;
+ }
+ public function setRoleId($roleId)
+ {
+ $this->roleId = $roleId;
+ }
+ public function getRoleId()
+ {
+ return $this->roleId;
+ }
+ public function setScopeType($scopeType)
+ {
+ $this->scopeType = $scopeType;
+ }
+ public function getScopeType()
+ {
+ return $this->scopeType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignments.php
new file mode 100644
index 00000000..d1fbe4d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleAssignments.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_RoleAssignments extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_RoleAssignment';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleRolePrivileges.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleRolePrivileges.php
new file mode 100644
index 00000000..7de85b02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/RoleRolePrivileges.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_RoleRolePrivileges extends Google_Model
+{
+ public $privilegeName;
+ public $serviceId;
+
+ public function setPrivilegeName($privilegeName)
+ {
+ $this->privilegeName = $privilegeName;
+ }
+ public function getPrivilegeName()
+ {
+ return $this->privilegeName;
+ }
+ public function setServiceId($serviceId)
+ {
+ $this->serviceId = $serviceId;
+ }
+ public function getServiceId()
+ {
+ return $this->serviceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Roles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Roles.php
new file mode 100644
index 00000000..d65f436f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Roles.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Roles extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_Role';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schema.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schema.php
new file mode 100644
index 00000000..ed958bca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schema.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Schema extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ public $etag;
+ protected $fieldsType = 'Google_Service_Directory_SchemaFieldSpec';
+ protected $fieldsDataType = 'array';
+ public $kind;
+ public $schemaId;
+ public $schemaName;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSchemaId($schemaId)
+ {
+ $this->schemaId = $schemaId;
+ }
+ public function getSchemaId()
+ {
+ return $this->schemaId;
+ }
+ public function setSchemaName($schemaName)
+ {
+ $this->schemaName = $schemaName;
+ }
+ public function getSchemaName()
+ {
+ return $this->schemaName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php
new file mode 100644
index 00000000..c2bdac87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpec.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_SchemaFieldSpec extends Google_Model
+{
+ public $etag;
+ public $fieldId;
+ public $fieldName;
+ public $fieldType;
+ public $indexed;
+ public $kind;
+ public $multiValued;
+ protected $numericIndexingSpecType = 'Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec';
+ protected $numericIndexingSpecDataType = '';
+ public $readAccessType;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFieldId($fieldId)
+ {
+ $this->fieldId = $fieldId;
+ }
+ public function getFieldId()
+ {
+ return $this->fieldId;
+ }
+ public function setFieldName($fieldName)
+ {
+ $this->fieldName = $fieldName;
+ }
+ public function getFieldName()
+ {
+ return $this->fieldName;
+ }
+ public function setFieldType($fieldType)
+ {
+ $this->fieldType = $fieldType;
+ }
+ public function getFieldType()
+ {
+ return $this->fieldType;
+ }
+ public function setIndexed($indexed)
+ {
+ $this->indexed = $indexed;
+ }
+ public function getIndexed()
+ {
+ return $this->indexed;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMultiValued($multiValued)
+ {
+ $this->multiValued = $multiValued;
+ }
+ public function getMultiValued()
+ {
+ return $this->multiValued;
+ }
+ public function setNumericIndexingSpec(Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec $numericIndexingSpec)
+ {
+ $this->numericIndexingSpec = $numericIndexingSpec;
+ }
+ public function getNumericIndexingSpec()
+ {
+ return $this->numericIndexingSpec;
+ }
+ public function setReadAccessType($readAccessType)
+ {
+ $this->readAccessType = $readAccessType;
+ }
+ public function getReadAccessType()
+ {
+ return $this->readAccessType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpecNumericIndexingSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpecNumericIndexingSpec.php
new file mode 100644
index 00000000..26a015e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/SchemaFieldSpecNumericIndexingSpec.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model
+{
+ public $maxValue;
+ public $minValue;
+
+ public function setMaxValue($maxValue)
+ {
+ $this->maxValue = $maxValue;
+ }
+ public function getMaxValue()
+ {
+ return $this->maxValue;
+ }
+ public function setMinValue($minValue)
+ {
+ $this->minValue = $minValue;
+ }
+ public function getMinValue()
+ {
+ return $this->minValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schemas.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schemas.php
new file mode 100644
index 00000000..f5ab8e3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Schemas.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Schemas extends Google_Collection
+{
+ protected $collection_key = 'schemas';
+ public $etag;
+ public $kind;
+ protected $schemasType = 'Google_Service_Directory_Schema';
+ protected $schemasDataType = 'array';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSchemas($schemas)
+ {
+ $this->schemas = $schemas;
+ }
+ public function getSchemas()
+ {
+ return $this->schemas;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Token.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Token.php
new file mode 100644
index 00000000..c51391b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Token.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Token extends Google_Collection
+{
+ protected $collection_key = 'scopes';
+ public $anonymous;
+ public $clientId;
+ public $displayText;
+ public $etag;
+ public $kind;
+ public $nativeApp;
+ public $scopes;
+ public $userKey;
+
+ public function setAnonymous($anonymous)
+ {
+ $this->anonymous = $anonymous;
+ }
+ public function getAnonymous()
+ {
+ return $this->anonymous;
+ }
+ public function setClientId($clientId)
+ {
+ $this->clientId = $clientId;
+ }
+ public function getClientId()
+ {
+ return $this->clientId;
+ }
+ public function setDisplayText($displayText)
+ {
+ $this->displayText = $displayText;
+ }
+ public function getDisplayText()
+ {
+ return $this->displayText;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNativeApp($nativeApp)
+ {
+ $this->nativeApp = $nativeApp;
+ }
+ public function getNativeApp()
+ {
+ return $this->nativeApp;
+ }
+ public function setScopes($scopes)
+ {
+ $this->scopes = $scopes;
+ }
+ public function getScopes()
+ {
+ return $this->scopes;
+ }
+ public function setUserKey($userKey)
+ {
+ $this->userKey = $userKey;
+ }
+ public function getUserKey()
+ {
+ return $this->userKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Tokens.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Tokens.php
new file mode 100644
index 00000000..3174c8c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Tokens.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Tokens extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_Token';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/User.php
new file mode 100644
index 00000000..e17d7c41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/User.php
@@ -0,0 +1,356 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_User extends Google_Collection
+{
+ protected $collection_key = 'nonEditableAliases';
+ public $addresses;
+ public $agreedToTerms;
+ public $aliases;
+ public $changePasswordAtNextLogin;
+ public $creationTime;
+ public $customSchemas;
+ public $customerId;
+ public $deletionTime;
+ public $emails;
+ public $etag;
+ public $externalIds;
+ public $hashFunction;
+ public $id;
+ public $ims;
+ public $includeInGlobalAddressList;
+ public $ipWhitelisted;
+ public $isAdmin;
+ public $isDelegatedAdmin;
+ public $isEnforcedIn2Sv;
+ public $isEnrolledIn2Sv;
+ public $isMailboxSetup;
+ public $kind;
+ public $lastLoginTime;
+ protected $nameType = 'Google_Service_Directory_UserName';
+ protected $nameDataType = '';
+ public $nonEditableAliases;
+ public $notes;
+ public $orgUnitPath;
+ public $organizations;
+ public $password;
+ public $phones;
+ public $primaryEmail;
+ public $relations;
+ public $suspended;
+ public $suspensionReason;
+ public $thumbnailPhotoEtag;
+ public $thumbnailPhotoUrl;
+ public $websites;
+
+ public function setAddresses($addresses)
+ {
+ $this->addresses = $addresses;
+ }
+ public function getAddresses()
+ {
+ return $this->addresses;
+ }
+ public function setAgreedToTerms($agreedToTerms)
+ {
+ $this->agreedToTerms = $agreedToTerms;
+ }
+ public function getAgreedToTerms()
+ {
+ return $this->agreedToTerms;
+ }
+ public function setAliases($aliases)
+ {
+ $this->aliases = $aliases;
+ }
+ public function getAliases()
+ {
+ return $this->aliases;
+ }
+ public function setChangePasswordAtNextLogin($changePasswordAtNextLogin)
+ {
+ $this->changePasswordAtNextLogin = $changePasswordAtNextLogin;
+ }
+ public function getChangePasswordAtNextLogin()
+ {
+ return $this->changePasswordAtNextLogin;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setCustomSchemas($customSchemas)
+ {
+ $this->customSchemas = $customSchemas;
+ }
+ public function getCustomSchemas()
+ {
+ return $this->customSchemas;
+ }
+ public function setCustomerId($customerId)
+ {
+ $this->customerId = $customerId;
+ }
+ public function getCustomerId()
+ {
+ return $this->customerId;
+ }
+ public function setDeletionTime($deletionTime)
+ {
+ $this->deletionTime = $deletionTime;
+ }
+ public function getDeletionTime()
+ {
+ return $this->deletionTime;
+ }
+ public function setEmails($emails)
+ {
+ $this->emails = $emails;
+ }
+ public function getEmails()
+ {
+ return $this->emails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setExternalIds($externalIds)
+ {
+ $this->externalIds = $externalIds;
+ }
+ public function getExternalIds()
+ {
+ return $this->externalIds;
+ }
+ public function setHashFunction($hashFunction)
+ {
+ $this->hashFunction = $hashFunction;
+ }
+ public function getHashFunction()
+ {
+ return $this->hashFunction;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIms($ims)
+ {
+ $this->ims = $ims;
+ }
+ public function getIms()
+ {
+ return $this->ims;
+ }
+ public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
+ {
+ $this->includeInGlobalAddressList = $includeInGlobalAddressList;
+ }
+ public function getIncludeInGlobalAddressList()
+ {
+ return $this->includeInGlobalAddressList;
+ }
+ public function setIpWhitelisted($ipWhitelisted)
+ {
+ $this->ipWhitelisted = $ipWhitelisted;
+ }
+ public function getIpWhitelisted()
+ {
+ return $this->ipWhitelisted;
+ }
+ public function setIsAdmin($isAdmin)
+ {
+ $this->isAdmin = $isAdmin;
+ }
+ public function getIsAdmin()
+ {
+ return $this->isAdmin;
+ }
+ public function setIsDelegatedAdmin($isDelegatedAdmin)
+ {
+ $this->isDelegatedAdmin = $isDelegatedAdmin;
+ }
+ public function getIsDelegatedAdmin()
+ {
+ return $this->isDelegatedAdmin;
+ }
+ public function setIsEnforcedIn2Sv($isEnforcedIn2Sv)
+ {
+ $this->isEnforcedIn2Sv = $isEnforcedIn2Sv;
+ }
+ public function getIsEnforcedIn2Sv()
+ {
+ return $this->isEnforcedIn2Sv;
+ }
+ public function setIsEnrolledIn2Sv($isEnrolledIn2Sv)
+ {
+ $this->isEnrolledIn2Sv = $isEnrolledIn2Sv;
+ }
+ public function getIsEnrolledIn2Sv()
+ {
+ return $this->isEnrolledIn2Sv;
+ }
+ public function setIsMailboxSetup($isMailboxSetup)
+ {
+ $this->isMailboxSetup = $isMailboxSetup;
+ }
+ public function getIsMailboxSetup()
+ {
+ return $this->isMailboxSetup;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastLoginTime($lastLoginTime)
+ {
+ $this->lastLoginTime = $lastLoginTime;
+ }
+ public function getLastLoginTime()
+ {
+ return $this->lastLoginTime;
+ }
+ public function setName(Google_Service_Directory_UserName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNonEditableAliases($nonEditableAliases)
+ {
+ $this->nonEditableAliases = $nonEditableAliases;
+ }
+ public function getNonEditableAliases()
+ {
+ return $this->nonEditableAliases;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setOrgUnitPath($orgUnitPath)
+ {
+ $this->orgUnitPath = $orgUnitPath;
+ }
+ public function getOrgUnitPath()
+ {
+ return $this->orgUnitPath;
+ }
+ public function setOrganizations($organizations)
+ {
+ $this->organizations = $organizations;
+ }
+ public function getOrganizations()
+ {
+ return $this->organizations;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setPhones($phones)
+ {
+ $this->phones = $phones;
+ }
+ public function getPhones()
+ {
+ return $this->phones;
+ }
+ public function setPrimaryEmail($primaryEmail)
+ {
+ $this->primaryEmail = $primaryEmail;
+ }
+ public function getPrimaryEmail()
+ {
+ return $this->primaryEmail;
+ }
+ public function setRelations($relations)
+ {
+ $this->relations = $relations;
+ }
+ public function getRelations()
+ {
+ return $this->relations;
+ }
+ public function setSuspended($suspended)
+ {
+ $this->suspended = $suspended;
+ }
+ public function getSuspended()
+ {
+ return $this->suspended;
+ }
+ public function setSuspensionReason($suspensionReason)
+ {
+ $this->suspensionReason = $suspensionReason;
+ }
+ public function getSuspensionReason()
+ {
+ return $this->suspensionReason;
+ }
+ public function setThumbnailPhotoEtag($thumbnailPhotoEtag)
+ {
+ $this->thumbnailPhotoEtag = $thumbnailPhotoEtag;
+ }
+ public function getThumbnailPhotoEtag()
+ {
+ return $this->thumbnailPhotoEtag;
+ }
+ public function setThumbnailPhotoUrl($thumbnailPhotoUrl)
+ {
+ $this->thumbnailPhotoUrl = $thumbnailPhotoUrl;
+ }
+ public function getThumbnailPhotoUrl()
+ {
+ return $this->thumbnailPhotoUrl;
+ }
+ public function setWebsites($websites)
+ {
+ $this->websites = $websites;
+ }
+ public function getWebsites()
+ {
+ return $this->websites;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAbout.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAbout.php
new file mode 100644
index 00000000..10e4af5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAbout.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserAbout extends Google_Model
+{
+ public $contentType;
+ public $value;
+
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAddress.php
new file mode 100644
index 00000000..0c68b39e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserAddress.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserAddress extends Google_Model
+{
+ public $country;
+ public $countryCode;
+ public $customType;
+ public $extendedAddress;
+ public $formatted;
+ public $locality;
+ public $poBox;
+ public $postalCode;
+ public $primary;
+ public $region;
+ public $sourceIsStructured;
+ public $streetAddress;
+ public $type;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setExtendedAddress($extendedAddress)
+ {
+ $this->extendedAddress = $extendedAddress;
+ }
+ public function getExtendedAddress()
+ {
+ return $this->extendedAddress;
+ }
+ public function setFormatted($formatted)
+ {
+ $this->formatted = $formatted;
+ }
+ public function getFormatted()
+ {
+ return $this->formatted;
+ }
+ public function setLocality($locality)
+ {
+ $this->locality = $locality;
+ }
+ public function getLocality()
+ {
+ return $this->locality;
+ }
+ public function setPoBox($poBox)
+ {
+ $this->poBox = $poBox;
+ }
+ public function getPoBox()
+ {
+ return $this->poBox;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSourceIsStructured($sourceIsStructured)
+ {
+ $this->sourceIsStructured = $sourceIsStructured;
+ }
+ public function getSourceIsStructured()
+ {
+ return $this->sourceIsStructured;
+ }
+ public function setStreetAddress($streetAddress)
+ {
+ $this->streetAddress = $streetAddress;
+ }
+ public function getStreetAddress()
+ {
+ return $this->streetAddress;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserEmail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserEmail.php
new file mode 100644
index 00000000..ed684d7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserEmail.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserEmail extends Google_Model
+{
+ public $address;
+ public $customType;
+ public $primary;
+ public $type;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserExternalId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserExternalId.php
new file mode 100644
index 00000000..9eabc336
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserExternalId.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserExternalId extends Google_Model
+{
+ public $customType;
+ public $type;
+ public $value;
+
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserIm.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserIm.php
new file mode 100644
index 00000000..84522e4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserIm.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserIm extends Google_Model
+{
+ public $customProtocol;
+ public $customType;
+ public $im;
+ public $primary;
+ public $protocol;
+ public $type;
+
+ public function setCustomProtocol($customProtocol)
+ {
+ $this->customProtocol = $customProtocol;
+ }
+ public function getCustomProtocol()
+ {
+ return $this->customProtocol;
+ }
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setIm($im)
+ {
+ $this->im = $im;
+ }
+ public function getIm()
+ {
+ return $this->im;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setProtocol($protocol)
+ {
+ $this->protocol = $protocol;
+ }
+ public function getProtocol()
+ {
+ return $this->protocol;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserMakeAdmin.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserMakeAdmin.php
new file mode 100644
index 00000000..8c5ac86b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserMakeAdmin.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserMakeAdmin extends Google_Model
+{
+ public $status;
+
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserName.php
new file mode 100644
index 00000000..677a5d99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserName.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserName extends Google_Model
+{
+ public $familyName;
+ public $fullName;
+ public $givenName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setFullName($fullName)
+ {
+ $this->fullName = $fullName;
+ }
+ public function getFullName()
+ {
+ return $this->fullName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserOrganization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserOrganization.php
new file mode 100644
index 00000000..2481928b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserOrganization.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserOrganization extends Google_Model
+{
+ public $costCenter;
+ public $customType;
+ public $department;
+ public $description;
+ public $domain;
+ public $location;
+ public $name;
+ public $primary;
+ public $symbol;
+ public $title;
+ public $type;
+
+ public function setCostCenter($costCenter)
+ {
+ $this->costCenter = $costCenter;
+ }
+ public function getCostCenter()
+ {
+ return $this->costCenter;
+ }
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setDepartment($department)
+ {
+ $this->department = $department;
+ }
+ public function getDepartment()
+ {
+ return $this->department;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setSymbol($symbol)
+ {
+ $this->symbol = $symbol;
+ }
+ public function getSymbol()
+ {
+ return $this->symbol;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhone.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhone.php
new file mode 100644
index 00000000..2e13223c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhone.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserPhone extends Google_Model
+{
+ public $customType;
+ public $primary;
+ public $type;
+ public $value;
+
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhoto.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhoto.php
new file mode 100644
index 00000000..f667c80b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserPhoto.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserPhoto extends Google_Model
+{
+ public $etag;
+ public $height;
+ public $id;
+ public $kind;
+ public $mimeType;
+ public $photoData;
+ public $primaryEmail;
+ public $width;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setPhotoData($photoData)
+ {
+ $this->photoData = $photoData;
+ }
+ public function getPhotoData()
+ {
+ return $this->photoData;
+ }
+ public function setPrimaryEmail($primaryEmail)
+ {
+ $this->primaryEmail = $primaryEmail;
+ }
+ public function getPrimaryEmail()
+ {
+ return $this->primaryEmail;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserRelation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserRelation.php
new file mode 100644
index 00000000..41e5c781
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserRelation.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserRelation extends Google_Model
+{
+ public $customType;
+ public $type;
+ public $value;
+
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserUndelete.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserUndelete.php
new file mode 100644
index 00000000..2b166047
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserUndelete.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserUndelete extends Google_Model
+{
+ public $orgUnitPath;
+
+ public function setOrgUnitPath($orgUnitPath)
+ {
+ $this->orgUnitPath = $orgUnitPath;
+ }
+ public function getOrgUnitPath()
+ {
+ return $this->orgUnitPath;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserWebsite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserWebsite.php
new file mode 100644
index 00000000..4b2d0c24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/UserWebsite.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_UserWebsite extends Google_Model
+{
+ public $customType;
+ public $primary;
+ public $type;
+ public $value;
+
+ public function setCustomType($customType)
+ {
+ $this->customType = $customType;
+ }
+ public function getCustomType()
+ {
+ return $this->customType;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Users.php
new file mode 100644
index 00000000..ce525cf7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/Users.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_Users extends Google_Collection
+{
+ protected $collection_key = 'users';
+ protected $internal_gapi_mappings = array(
+ "triggerEvent" => "trigger_event",
+ );
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+ public $triggerEvent;
+ protected $usersType = 'Google_Service_Directory_User';
+ protected $usersDataType = 'array';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTriggerEvent($triggerEvent)
+ {
+ $this->triggerEvent = $triggerEvent;
+ }
+ public function getTriggerEvent()
+ {
+ return $this->triggerEvent;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCode.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCode.php
new file mode 100644
index 00000000..fbf95a3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCode.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_VerificationCode extends Google_Model
+{
+ public $etag;
+ public $kind;
+ public $userId;
+ public $verificationCode;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+ public function setVerificationCode($verificationCode)
+ {
+ $this->verificationCode = $verificationCode;
+ }
+ public function getVerificationCode()
+ {
+ return $this->verificationCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCodes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCodes.php
new file mode 100644
index 00000000..3d4a8b8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Directory/VerificationCodes.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Directory_VerificationCodes extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Directory_VerificationCode';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns.php
new file mode 100644
index 00000000..a6820eb9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns.php
@@ -0,0 +1,274 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Dns (v1).
+ *
+ * <p>
+ * Configures and serves authoritative DNS records.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/cloud-dns" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Dns extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** View your DNS records hosted by Google Cloud DNS. */
+ const NDEV_CLOUDDNS_READONLY =
+ "https://www.googleapis.com/auth/ndev.clouddns.readonly";
+ /** View and manage your DNS records hosted by Google Cloud DNS. */
+ const NDEV_CLOUDDNS_READWRITE =
+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite";
+
+ public $changes;
+ public $managedZones;
+ public $projects;
+ public $resourceRecordSets;
+
+ /**
+ * Constructs the internal representation of the Dns service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'dns/v1/projects/';
+ $this->version = 'v1';
+ $this->serviceName = 'dns';
+
+ $this->changes = new Google_Service_Dns_Resource_Changes(
+ $this,
+ $this->serviceName,
+ 'changes',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{project}/managedZones/{managedZone}/changes',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedZone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/managedZones/{managedZone}/changes/{changeId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedZone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'changeId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/managedZones/{managedZone}/changes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedZone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->managedZones = new Google_Service_Dns_Resource_ManagedZones(
+ $this,
+ $this->serviceName,
+ 'managedZones',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{project}/managedZones',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/managedZones/{managedZone}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedZone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/managedZones/{managedZone}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedZone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/managedZones',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dnsName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects = new Google_Service_Dns_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->resourceRecordSets = new Google_Service_Dns_Resource_ResourceRecordSets(
+ $this,
+ $this->serviceName,
+ 'resourceRecordSets',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{project}/managedZones/{managedZone}/rrsets',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'managedZone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Change.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Change.php
new file mode 100644
index 00000000..7547319d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Change.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_Change extends Google_Collection
+{
+ protected $collection_key = 'deletions';
+ protected $additionsType = 'Google_Service_Dns_ResourceRecordSet';
+ protected $additionsDataType = 'array';
+ protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet';
+ protected $deletionsDataType = 'array';
+ public $id;
+ public $kind;
+ public $startTime;
+ public $status;
+
+ public function setAdditions($additions)
+ {
+ $this->additions = $additions;
+ }
+ public function getAdditions()
+ {
+ return $this->additions;
+ }
+ public function setDeletions($deletions)
+ {
+ $this->deletions = $deletions;
+ }
+ public function getDeletions()
+ {
+ return $this->deletions;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ChangesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ChangesListResponse.php
new file mode 100644
index 00000000..d5966aa1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ChangesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_ChangesListResponse extends Google_Collection
+{
+ protected $collection_key = 'changes';
+ protected $changesType = 'Google_Service_Dns_Change';
+ protected $changesDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setChanges($changes)
+ {
+ $this->changes = $changes;
+ }
+ public function getChanges()
+ {
+ return $this->changes;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZone.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZone.php
new file mode 100644
index 00000000..1a325ee5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZone.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_ManagedZone extends Google_Collection
+{
+ protected $collection_key = 'nameServers';
+ public $creationTime;
+ public $description;
+ public $dnsName;
+ public $id;
+ public $kind;
+ public $name;
+ public $nameServerSet;
+ public $nameServers;
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDnsName($dnsName)
+ {
+ $this->dnsName = $dnsName;
+ }
+ public function getDnsName()
+ {
+ return $this->dnsName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNameServerSet($nameServerSet)
+ {
+ $this->nameServerSet = $nameServerSet;
+ }
+ public function getNameServerSet()
+ {
+ return $this->nameServerSet;
+ }
+ public function setNameServers($nameServers)
+ {
+ $this->nameServers = $nameServers;
+ }
+ public function getNameServers()
+ {
+ return $this->nameServers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZonesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZonesListResponse.php
new file mode 100644
index 00000000..3427f0de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ManagedZonesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection
+{
+ protected $collection_key = 'managedZones';
+ public $kind;
+ protected $managedZonesType = 'Google_Service_Dns_ManagedZone';
+ protected $managedZonesDataType = 'array';
+ public $nextPageToken;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setManagedZones($managedZones)
+ {
+ $this->managedZones = $managedZones;
+ }
+ public function getManagedZones()
+ {
+ return $this->managedZones;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Project.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Project.php
new file mode 100644
index 00000000..aaa65267
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Project.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_Project extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $number;
+ protected $quotaType = 'Google_Service_Dns_Quota';
+ protected $quotaDataType = '';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setQuota(Google_Service_Dns_Quota $quota)
+ {
+ $this->quota = $quota;
+ }
+ public function getQuota()
+ {
+ return $this->quota;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Quota.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Quota.php
new file mode 100644
index 00000000..f08f06e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Quota.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_Quota extends Google_Model
+{
+ public $kind;
+ public $managedZones;
+ public $resourceRecordsPerRrset;
+ public $rrsetAdditionsPerChange;
+ public $rrsetDeletionsPerChange;
+ public $rrsetsPerManagedZone;
+ public $totalRrdataSizePerChange;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setManagedZones($managedZones)
+ {
+ $this->managedZones = $managedZones;
+ }
+ public function getManagedZones()
+ {
+ return $this->managedZones;
+ }
+ public function setResourceRecordsPerRrset($resourceRecordsPerRrset)
+ {
+ $this->resourceRecordsPerRrset = $resourceRecordsPerRrset;
+ }
+ public function getResourceRecordsPerRrset()
+ {
+ return $this->resourceRecordsPerRrset;
+ }
+ public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange)
+ {
+ $this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange;
+ }
+ public function getRrsetAdditionsPerChange()
+ {
+ return $this->rrsetAdditionsPerChange;
+ }
+ public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange)
+ {
+ $this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange;
+ }
+ public function getRrsetDeletionsPerChange()
+ {
+ return $this->rrsetDeletionsPerChange;
+ }
+ public function setRrsetsPerManagedZone($rrsetsPerManagedZone)
+ {
+ $this->rrsetsPerManagedZone = $rrsetsPerManagedZone;
+ }
+ public function getRrsetsPerManagedZone()
+ {
+ return $this->rrsetsPerManagedZone;
+ }
+ public function setTotalRrdataSizePerChange($totalRrdataSizePerChange)
+ {
+ $this->totalRrdataSizePerChange = $totalRrdataSizePerChange;
+ }
+ public function getTotalRrdataSizePerChange()
+ {
+ return $this->totalRrdataSizePerChange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php
new file mode 100644
index 00000000..49f96f93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Changes.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "changes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dnsService = new Google_Service_Dns(...);
+ * $changes = $dnsService->changes;
+ * </code>
+ */
+class Google_Service_Dns_Resource_Changes extends Google_Service_Resource
+{
+ /**
+ * Atomically update the ResourceRecordSet collection. (changes.create)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param string $managedZone Identifies the managed zone addressed by this
+ * request. Can be the managed zone name or id.
+ * @param Google_Service_Dns_Change $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dns_Change
+ */
+ public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Dns_Change");
+ }
+ /**
+ * Fetch the representation of an existing Change. (changes.get)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param string $managedZone Identifies the managed zone addressed by this
+ * request. Can be the managed zone name or id.
+ * @param string $changeId The identifier of the requested change, from a
+ * previous ResourceRecordSetsChangeResponse.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dns_Change
+ */
+ public function get($project, $managedZone, $changeId, $optParams = array())
+ {
+ $params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dns_Change");
+ }
+ /**
+ * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param string $managedZone Identifies the managed zone addressed by this
+ * request. Can be the managed zone name or id.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Optional. Maximum number of results to be returned.
+ * If unspecified, the server will decide how many results to return.
+ * @opt_param string pageToken Optional. A tag returned by a previous list
+ * request that was truncated. Use this parameter to continue a previous list
+ * request.
+ * @opt_param string sortBy Sorting criterion. The only supported value is
+ * change sequence.
+ * @opt_param string sortOrder Sorting order direction: 'ascending' or
+ * 'descending'.
+ * @return Google_Service_Dns_ChangesListResponse
+ */
+ public function listChanges($project, $managedZone, $optParams = array())
+ {
+ $params = array('project' => $project, 'managedZone' => $managedZone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php
new file mode 100644
index 00000000..bbe8316c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ManagedZones.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "managedZones" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dnsService = new Google_Service_Dns(...);
+ * $managedZones = $dnsService->managedZones;
+ * </code>
+ */
+class Google_Service_Dns_Resource_ManagedZones extends Google_Service_Resource
+{
+ /**
+ * Create a new ManagedZone. (managedZones.create)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param Google_Service_Dns_ManagedZone $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dns_ManagedZone
+ */
+ public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Dns_ManagedZone");
+ }
+ /**
+ * Delete a previously created ManagedZone. (managedZones.delete)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param string $managedZone Identifies the managed zone addressed by this
+ * request. Can be the managed zone name or id.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $managedZone, $optParams = array())
+ {
+ $params = array('project' => $project, 'managedZone' => $managedZone);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Fetch the representation of an existing ManagedZone. (managedZones.get)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param string $managedZone Identifies the managed zone addressed by this
+ * request. Can be the managed zone name or id.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dns_ManagedZone
+ */
+ public function get($project, $managedZone, $optParams = array())
+ {
+ $params = array('project' => $project, 'managedZone' => $managedZone);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dns_ManagedZone");
+ }
+ /**
+ * Enumerate ManagedZones that have been created but not yet deleted.
+ * (managedZones.listManagedZones)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dnsName Restricts the list to return only zones with this
+ * domain name.
+ * @opt_param int maxResults Optional. Maximum number of results to be returned.
+ * If unspecified, the server will decide how many results to return.
+ * @opt_param string pageToken Optional. A tag returned by a previous list
+ * request that was truncated. Use this parameter to continue a previous list
+ * request.
+ * @return Google_Service_Dns_ManagedZonesListResponse
+ */
+ public function listManagedZones($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php
new file mode 100644
index 00000000..db8ef93e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/Projects.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dnsService = new Google_Service_Dns(...);
+ * $projects = $dnsService->projects;
+ * </code>
+ */
+class Google_Service_Dns_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Fetch the representation of an existing Project. (projects.get)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dns_Project
+ */
+ public function get($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dns_Project");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php
new file mode 100644
index 00000000..ee539fdf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/Resource/ResourceRecordSets.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "resourceRecordSets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $dnsService = new Google_Service_Dns(...);
+ * $resourceRecordSets = $dnsService->resourceRecordSets;
+ * </code>
+ */
+class Google_Service_Dns_Resource_ResourceRecordSets extends Google_Service_Resource
+{
+ /**
+ * Enumerate ResourceRecordSets that have been created but not yet deleted.
+ * (resourceRecordSets.listResourceRecordSets)
+ *
+ * @param string $project Identifies the project addressed by this request.
+ * @param string $managedZone Identifies the managed zone addressed by this
+ * request. Can be the managed zone name or id.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Optional. Maximum number of results to be returned.
+ * If unspecified, the server will decide how many results to return.
+ * @opt_param string name Restricts the list to return only records with this
+ * fully qualified domain name.
+ * @opt_param string pageToken Optional. A tag returned by a previous list
+ * request that was truncated. Use this parameter to continue a previous list
+ * request.
+ * @opt_param string type Restricts the list to return only records of this
+ * type. If present, the "name" parameter must also be present.
+ * @return Google_Service_Dns_ResourceRecordSetsListResponse
+ */
+ public function listResourceRecordSets($project, $managedZone, $optParams = array())
+ {
+ $params = array('project' => $project, 'managedZone' => $managedZone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSet.php
new file mode 100644
index 00000000..6a057eac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSet.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_ResourceRecordSet extends Google_Collection
+{
+ protected $collection_key = 'rrdatas';
+ public $kind;
+ public $name;
+ public $rrdatas;
+ public $ttl;
+ public $type;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRrdatas($rrdatas)
+ {
+ $this->rrdatas = $rrdatas;
+ }
+ public function getRrdatas()
+ {
+ return $this->rrdatas;
+ }
+ public function setTtl($ttl)
+ {
+ $this->ttl = $ttl;
+ }
+ public function getTtl()
+ {
+ return $this->ttl;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSetsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSetsListResponse.php
new file mode 100644
index 00000000..e86438f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Dns/ResourceRecordSetsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection
+{
+ protected $collection_key = 'rrsets';
+ public $kind;
+ public $nextPageToken;
+ protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet';
+ protected $rrsetsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setRrsets($rrsets)
+ {
+ $this->rrsets = $rrsets;
+ }
+ public function getRrsets()
+ {
+ return $this->rrsets;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php
new file mode 100644
index 00000000..656266ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for DoubleClickBidManager (v1).
+ *
+ * <p>
+ * API for viewing and managing your reports in DoubleClick Bid Manager.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/bid-manager/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_DoubleClickBidManager extends Google_Service
+{
+
+
+ public $lineitems;
+ public $queries;
+ public $reports;
+ public $sdf;
+
+ /**
+ * Constructs the internal representation of the DoubleClickBidManager
+ * service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'doubleclickbidmanager/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'doubleclickbidmanager';
+
+ $this->lineitems = new Google_Service_DoubleClickBidManager_Resource_Lineitems(
+ $this,
+ $this->serviceName,
+ 'lineitems',
+ array(
+ 'methods' => array(
+ 'downloadlineitems' => array(
+ 'path' => 'lineitems/downloadlineitems',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'uploadlineitems' => array(
+ 'path' => 'lineitems/uploadlineitems',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->queries = new Google_Service_DoubleClickBidManager_Resource_Queries(
+ $this,
+ $this->serviceName,
+ 'queries',
+ array(
+ 'methods' => array(
+ 'createquery' => array(
+ 'path' => 'query',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'deletequery' => array(
+ 'path' => 'query/{queryId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'queryId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getquery' => array(
+ 'path' => 'query/{queryId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'queryId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'listqueries' => array(
+ 'path' => 'queries',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'runquery' => array(
+ 'path' => 'query/{queryId}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'queryId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reports = new Google_Service_DoubleClickBidManager_Resource_Reports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'listreports' => array(
+ 'path' => 'queries/{queryId}/reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'queryId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sdf = new Google_Service_DoubleClickBidManager_Resource_Sdf(
+ $this,
+ $this->serviceName,
+ 'sdf',
+ array(
+ 'methods' => array(
+ 'download' => array(
+ 'path' => 'sdf/download',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsRequest.php
new file mode 100644
index 00000000..08bb5c9d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Google_Collection
+{
+ protected $collection_key = 'filterIds';
+ public $fileSpec;
+ public $filterIds;
+ public $filterType;
+ public $format;
+
+ public function setFileSpec($fileSpec)
+ {
+ $this->fileSpec = $fileSpec;
+ }
+ public function getFileSpec()
+ {
+ return $this->fileSpec;
+ }
+ public function setFilterIds($filterIds)
+ {
+ $this->filterIds = $filterIds;
+ }
+ public function getFilterIds()
+ {
+ return $this->filterIds;
+ }
+ public function setFilterType($filterType)
+ {
+ $this->filterType = $filterType;
+ }
+ public function getFilterType()
+ {
+ return $this->filterType;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsResponse.php
new file mode 100644
index 00000000..5fcebc41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadLineItemsResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model
+{
+ public $lineItems;
+
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadRequest.php
new file mode 100644
index 00000000..062a89b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_DownloadRequest extends Google_Collection
+{
+ protected $collection_key = 'filterIds';
+ public $fileTypes;
+ public $filterIds;
+ public $filterType;
+ public $version;
+
+ public function setFileTypes($fileTypes)
+ {
+ $this->fileTypes = $fileTypes;
+ }
+ public function getFileTypes()
+ {
+ return $this->fileTypes;
+ }
+ public function setFilterIds($filterIds)
+ {
+ $this->filterIds = $filterIds;
+ }
+ public function getFilterIds()
+ {
+ return $this->filterIds;
+ }
+ public function setFilterType($filterType)
+ {
+ $this->filterType = $filterType;
+ }
+ public function getFilterType()
+ {
+ return $this->filterType;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php
new file mode 100644
index 00000000..4a289e82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/DownloadResponse.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_DownloadResponse extends Google_Model
+{
+ public $adGroups;
+ public $ads;
+ public $insertionOrders;
+ public $lineItems;
+
+ public function setAdGroups($adGroups)
+ {
+ $this->adGroups = $adGroups;
+ }
+ public function getAdGroups()
+ {
+ return $this->adGroups;
+ }
+ public function setAds($ads)
+ {
+ $this->ads = $ads;
+ }
+ public function getAds()
+ {
+ return $this->ads;
+ }
+ public function setInsertionOrders($insertionOrders)
+ {
+ $this->insertionOrders = $insertionOrders;
+ }
+ public function getInsertionOrders()
+ {
+ return $this->insertionOrders;
+ }
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/FilterPair.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/FilterPair.php
new file mode 100644
index 00000000..af28d25d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/FilterPair.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model
+{
+ public $type;
+ public $value;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListQueriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListQueriesResponse.php
new file mode 100644
index 00000000..ff2d7ec7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListQueriesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection
+{
+ protected $collection_key = 'queries';
+ public $kind;
+ protected $queriesType = 'Google_Service_DoubleClickBidManager_Query';
+ protected $queriesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setQueries($queries)
+ {
+ $this->queries = $queries;
+ }
+ public function getQueries()
+ {
+ return $this->queries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListReportsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListReportsResponse.php
new file mode 100644
index 00000000..45295b01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ListReportsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection
+{
+ protected $collection_key = 'reports';
+ public $kind;
+ protected $reportsType = 'Google_Service_DoubleClickBidManager_Report';
+ protected $reportsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setReports($reports)
+ {
+ $this->reports = $reports;
+ }
+ public function getReports()
+ {
+ return $this->reports;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Note.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Note.php
new file mode 100644
index 00000000..1443b729
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Note.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_Note extends Google_Model
+{
+ public $id;
+ public $message;
+ public $source;
+ public $timestamp;
+ public $username;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/NotifyProposalChangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/NotifyProposalChangeRequest.php
new file mode 100644
index 00000000..81bf5449
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/NotifyProposalChangeRequest.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_NotifyProposalChangeRequest extends Google_Collection
+{
+ protected $collection_key = 'notes';
+ public $action;
+ public $href;
+ public $id;
+ protected $notesType = 'Google_Service_DoubleClickBidManager_Note';
+ protected $notesDataType = 'array';
+ public $token;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Parameters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Parameters.php
new file mode 100644
index 00000000..6d16406f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Parameters.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ protected $filtersType = 'Google_Service_DoubleClickBidManager_FilterPair';
+ protected $filtersDataType = 'array';
+ public $groupBys;
+ public $includeInviteData;
+ public $metrics;
+ public $type;
+
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setGroupBys($groupBys)
+ {
+ $this->groupBys = $groupBys;
+ }
+ public function getGroupBys()
+ {
+ return $this->groupBys;
+ }
+ public function setIncludeInviteData($includeInviteData)
+ {
+ $this->includeInviteData = $includeInviteData;
+ }
+ public function getIncludeInviteData()
+ {
+ return $this->includeInviteData;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Query.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Query.php
new file mode 100644
index 00000000..bed6d208
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Query.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_Query extends Google_Model
+{
+ public $kind;
+ protected $metadataType = 'Google_Service_DoubleClickBidManager_QueryMetadata';
+ protected $metadataDataType = '';
+ protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters';
+ protected $paramsDataType = '';
+ public $queryId;
+ public $reportDataEndTimeMs;
+ public $reportDataStartTimeMs;
+ protected $scheduleType = 'Google_Service_DoubleClickBidManager_QuerySchedule';
+ protected $scheduleDataType = '';
+ public $timezoneCode;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setParams(Google_Service_DoubleClickBidManager_Parameters $params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+ public function setQueryId($queryId)
+ {
+ $this->queryId = $queryId;
+ }
+ public function getQueryId()
+ {
+ return $this->queryId;
+ }
+ public function setReportDataEndTimeMs($reportDataEndTimeMs)
+ {
+ $this->reportDataEndTimeMs = $reportDataEndTimeMs;
+ }
+ public function getReportDataEndTimeMs()
+ {
+ return $this->reportDataEndTimeMs;
+ }
+ public function setReportDataStartTimeMs($reportDataStartTimeMs)
+ {
+ $this->reportDataStartTimeMs = $reportDataStartTimeMs;
+ }
+ public function getReportDataStartTimeMs()
+ {
+ return $this->reportDataStartTimeMs;
+ }
+ public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $schedule)
+ {
+ $this->schedule = $schedule;
+ }
+ public function getSchedule()
+ {
+ return $this->schedule;
+ }
+ public function setTimezoneCode($timezoneCode)
+ {
+ $this->timezoneCode = $timezoneCode;
+ }
+ public function getTimezoneCode()
+ {
+ return $this->timezoneCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QueryMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QueryMetadata.php
new file mode 100644
index 00000000..5409a6b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QueryMetadata.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection
+{
+ protected $collection_key = 'shareEmailAddress';
+ public $dataRange;
+ public $format;
+ public $googleCloudStoragePathForLatestReport;
+ public $googleDrivePathForLatestReport;
+ public $latestReportRunTimeMs;
+ public $locale;
+ public $reportCount;
+ public $running;
+ public $sendNotification;
+ public $shareEmailAddress;
+ public $title;
+
+ public function setDataRange($dataRange)
+ {
+ $this->dataRange = $dataRange;
+ }
+ public function getDataRange()
+ {
+ return $this->dataRange;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setGoogleCloudStoragePathForLatestReport($googleCloudStoragePathForLatestReport)
+ {
+ $this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport;
+ }
+ public function getGoogleCloudStoragePathForLatestReport()
+ {
+ return $this->googleCloudStoragePathForLatestReport;
+ }
+ public function setGoogleDrivePathForLatestReport($googleDrivePathForLatestReport)
+ {
+ $this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport;
+ }
+ public function getGoogleDrivePathForLatestReport()
+ {
+ return $this->googleDrivePathForLatestReport;
+ }
+ public function setLatestReportRunTimeMs($latestReportRunTimeMs)
+ {
+ $this->latestReportRunTimeMs = $latestReportRunTimeMs;
+ }
+ public function getLatestReportRunTimeMs()
+ {
+ return $this->latestReportRunTimeMs;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setReportCount($reportCount)
+ {
+ $this->reportCount = $reportCount;
+ }
+ public function getReportCount()
+ {
+ return $this->reportCount;
+ }
+ public function setRunning($running)
+ {
+ $this->running = $running;
+ }
+ public function getRunning()
+ {
+ return $this->running;
+ }
+ public function setSendNotification($sendNotification)
+ {
+ $this->sendNotification = $sendNotification;
+ }
+ public function getSendNotification()
+ {
+ return $this->sendNotification;
+ }
+ public function setShareEmailAddress($shareEmailAddress)
+ {
+ $this->shareEmailAddress = $shareEmailAddress;
+ }
+ public function getShareEmailAddress()
+ {
+ return $this->shareEmailAddress;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QuerySchedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QuerySchedule.php
new file mode 100644
index 00000000..47268685
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/QuerySchedule.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model
+{
+ public $endTimeMs;
+ public $frequency;
+ public $nextRunMinuteOfDay;
+ public $nextRunTimezoneCode;
+
+ public function setEndTimeMs($endTimeMs)
+ {
+ $this->endTimeMs = $endTimeMs;
+ }
+ public function getEndTimeMs()
+ {
+ return $this->endTimeMs;
+ }
+ public function setFrequency($frequency)
+ {
+ $this->frequency = $frequency;
+ }
+ public function getFrequency()
+ {
+ return $this->frequency;
+ }
+ public function setNextRunMinuteOfDay($nextRunMinuteOfDay)
+ {
+ $this->nextRunMinuteOfDay = $nextRunMinuteOfDay;
+ }
+ public function getNextRunMinuteOfDay()
+ {
+ return $this->nextRunMinuteOfDay;
+ }
+ public function setNextRunTimezoneCode($nextRunTimezoneCode)
+ {
+ $this->nextRunTimezoneCode = $nextRunTimezoneCode;
+ }
+ public function getNextRunTimezoneCode()
+ {
+ return $this->nextRunTimezoneCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Report.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Report.php
new file mode 100644
index 00000000..1a146db4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Report.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_Report extends Google_Model
+{
+ protected $keyType = 'Google_Service_DoubleClickBidManager_ReportKey';
+ protected $keyDataType = '';
+ protected $metadataType = 'Google_Service_DoubleClickBidManager_ReportMetadata';
+ protected $metadataDataType = '';
+ protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters';
+ protected $paramsDataType = '';
+
+ public function setKey(Google_Service_DoubleClickBidManager_ReportKey $key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setParams(Google_Service_DoubleClickBidManager_Parameters $params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportFailure.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportFailure.php
new file mode 100644
index 00000000..99be54fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportFailure.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model
+{
+ public $errorCode;
+
+ public function setErrorCode($errorCode)
+ {
+ $this->errorCode = $errorCode;
+ }
+ public function getErrorCode()
+ {
+ return $this->errorCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportKey.php
new file mode 100644
index 00000000..7c1f30dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportKey.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model
+{
+ public $queryId;
+ public $reportId;
+
+ public function setQueryId($queryId)
+ {
+ $this->queryId = $queryId;
+ }
+ public function getQueryId()
+ {
+ return $this->queryId;
+ }
+ public function setReportId($reportId)
+ {
+ $this->reportId = $reportId;
+ }
+ public function getReportId()
+ {
+ return $this->reportId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportMetadata.php
new file mode 100644
index 00000000..8f4d9342
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportMetadata.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model
+{
+ public $googleCloudStoragePath;
+ public $reportDataEndTimeMs;
+ public $reportDataStartTimeMs;
+ protected $statusType = 'Google_Service_DoubleClickBidManager_ReportStatus';
+ protected $statusDataType = '';
+
+ public function setGoogleCloudStoragePath($googleCloudStoragePath)
+ {
+ $this->googleCloudStoragePath = $googleCloudStoragePath;
+ }
+ public function getGoogleCloudStoragePath()
+ {
+ return $this->googleCloudStoragePath;
+ }
+ public function setReportDataEndTimeMs($reportDataEndTimeMs)
+ {
+ $this->reportDataEndTimeMs = $reportDataEndTimeMs;
+ }
+ public function getReportDataEndTimeMs()
+ {
+ return $this->reportDataEndTimeMs;
+ }
+ public function setReportDataStartTimeMs($reportDataStartTimeMs)
+ {
+ $this->reportDataStartTimeMs = $reportDataStartTimeMs;
+ }
+ public function getReportDataStartTimeMs()
+ {
+ return $this->reportDataStartTimeMs;
+ }
+ public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportStatus.php
new file mode 100644
index 00000000..83f35473
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/ReportStatus.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model
+{
+ protected $failureType = 'Google_Service_DoubleClickBidManager_ReportFailure';
+ protected $failureDataType = '';
+ public $finishTimeMs;
+ public $format;
+ public $state;
+
+ public function setFailure(Google_Service_DoubleClickBidManager_ReportFailure $failure)
+ {
+ $this->failure = $failure;
+ }
+ public function getFailure()
+ {
+ return $this->failure;
+ }
+ public function setFinishTimeMs($finishTimeMs)
+ {
+ $this->finishTimeMs = $finishTimeMs;
+ }
+ public function getFinishTimeMs()
+ {
+ return $this->finishTimeMs;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Lineitems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Lineitems.php
new file mode 100644
index 00000000..4dc8fe19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Lineitems.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "lineitems" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
+ * $lineitems = $doubleclickbidmanagerService->lineitems;
+ * </code>
+ */
+class Google_Service_DoubleClickBidManager_Resource_Lineitems extends Google_Service_Resource
+{
+ /**
+ * Retrieves line items in CSV format. (lineitems.downloadlineitems)
+ *
+ * @param Google_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DoubleClickBidManager_DownloadLineItemsResponse
+ */
+ public function downloadlineitems(Google_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse");
+ }
+ /**
+ * Uploads line items in CSV format. (lineitems.uploadlineitems)
+ *
+ * @param Google_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DoubleClickBidManager_UploadLineItemsResponse
+ */
+ public function uploadlineitems(Google_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('uploadlineitems', array($params), "Google_Service_DoubleClickBidManager_UploadLineItemsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Queries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Queries.php
new file mode 100644
index 00000000..86e13458
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Queries.php
@@ -0,0 +1,92 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "queries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
+ * $queries = $doubleclickbidmanagerService->queries;
+ * </code>
+ */
+class Google_Service_DoubleClickBidManager_Resource_Queries extends Google_Service_Resource
+{
+ /**
+ * Creates a query. (queries.createquery)
+ *
+ * @param Google_Service_DoubleClickBidManager_Query $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DoubleClickBidManager_Query
+ */
+ public function createquery(Google_Service_DoubleClickBidManager_Query $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query");
+ }
+ /**
+ * Deletes a stored query as well as the associated stored reports.
+ * (queries.deletequery)
+ *
+ * @param string $queryId Query ID to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function deletequery($queryId, $optParams = array())
+ {
+ $params = array('queryId' => $queryId);
+ $params = array_merge($params, $optParams);
+ return $this->call('deletequery', array($params));
+ }
+ /**
+ * Retrieves a stored query. (queries.getquery)
+ *
+ * @param string $queryId Query ID to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DoubleClickBidManager_Query
+ */
+ public function getquery($queryId, $optParams = array())
+ {
+ $params = array('queryId' => $queryId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query");
+ }
+ /**
+ * Retrieves stored queries. (queries.listqueries)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DoubleClickBidManager_ListQueriesResponse
+ */
+ public function listqueries($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse");
+ }
+ /**
+ * Runs a stored query to generate a report. (queries.runquery)
+ *
+ * @param string $queryId Query ID to run.
+ * @param Google_Service_DoubleClickBidManager_RunQueryRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function runquery($queryId, Google_Service_DoubleClickBidManager_RunQueryRequest $postBody, $optParams = array())
+ {
+ $params = array('queryId' => $queryId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('runquery', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Reports.php
new file mode 100644
index 00000000..a6e3e956
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Reports.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
+ * $reports = $doubleclickbidmanagerService->reports;
+ * </code>
+ */
+class Google_Service_DoubleClickBidManager_Resource_Reports extends Google_Service_Resource
+{
+ /**
+ * Retrieves stored reports. (reports.listreports)
+ *
+ * @param string $queryId Query ID with which the reports are associated.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DoubleClickBidManager_ListReportsResponse
+ */
+ public function listreports($queryId, $optParams = array())
+ {
+ $params = array('queryId' => $queryId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listreports', array($params), "Google_Service_DoubleClickBidManager_ListReportsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Rubicon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Rubicon.php
new file mode 100644
index 00000000..e45fe907
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Rubicon.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "rubicon" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
+ * $rubicon = $doubleclickbidmanagerService->rubicon;
+ * </code>
+ */
+class Google_Service_DoubleClickBidManager_Resource_Rubicon extends Google_Service_Resource
+{
+ /**
+ * Update proposal upon actions of Rubicon publisher.
+ * (rubicon.notifyproposalchange)
+ *
+ * @param Google_Service_DoubleClickBidManager_NotifyProposalChangeRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function notifyproposalchange(Google_Service_DoubleClickBidManager_NotifyProposalChangeRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('notifyproposalchange', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Sdf.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Sdf.php
new file mode 100644
index 00000000..c94ee4a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/Resource/Sdf.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sdf" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
+ * $sdf = $doubleclickbidmanagerService->sdf;
+ * </code>
+ */
+class Google_Service_DoubleClickBidManager_Resource_Sdf extends Google_Service_Resource
+{
+ /**
+ * Retrieves entities in SDF format. (sdf.download)
+ *
+ * @param Google_Service_DoubleClickBidManager_DownloadRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DoubleClickBidManager_DownloadResponse
+ */
+ public function download(Google_Service_DoubleClickBidManager_DownloadRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('download', array($params), "Google_Service_DoubleClickBidManager_DownloadResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RowStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RowStatus.php
new file mode 100644
index 00000000..5644fe13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RowStatus.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ public $changed;
+ public $entityId;
+ public $entityName;
+ public $errors;
+ public $persisted;
+ public $rowNumber;
+
+ public function setChanged($changed)
+ {
+ $this->changed = $changed;
+ }
+ public function getChanged()
+ {
+ return $this->changed;
+ }
+ public function setEntityId($entityId)
+ {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId()
+ {
+ return $this->entityId;
+ }
+ public function setEntityName($entityName)
+ {
+ $this->entityName = $entityName;
+ }
+ public function getEntityName()
+ {
+ return $this->entityName;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setPersisted($persisted)
+ {
+ $this->persisted = $persisted;
+ }
+ public function getPersisted()
+ {
+ return $this->persisted;
+ }
+ public function setRowNumber($rowNumber)
+ {
+ $this->rowNumber = $rowNumber;
+ }
+ public function getRowNumber()
+ {
+ return $this->rowNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RunQueryRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RunQueryRequest.php
new file mode 100644
index 00000000..3345b965
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/RunQueryRequest.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model
+{
+ public $dataRange;
+ public $reportDataEndTimeMs;
+ public $reportDataStartTimeMs;
+ public $timezoneCode;
+
+ public function setDataRange($dataRange)
+ {
+ $this->dataRange = $dataRange;
+ }
+ public function getDataRange()
+ {
+ return $this->dataRange;
+ }
+ public function setReportDataEndTimeMs($reportDataEndTimeMs)
+ {
+ $this->reportDataEndTimeMs = $reportDataEndTimeMs;
+ }
+ public function getReportDataEndTimeMs()
+ {
+ return $this->reportDataEndTimeMs;
+ }
+ public function setReportDataStartTimeMs($reportDataStartTimeMs)
+ {
+ $this->reportDataStartTimeMs = $reportDataStartTimeMs;
+ }
+ public function getReportDataStartTimeMs()
+ {
+ return $this->reportDataStartTimeMs;
+ }
+ public function setTimezoneCode($timezoneCode)
+ {
+ $this->timezoneCode = $timezoneCode;
+ }
+ public function getTimezoneCode()
+ {
+ return $this->timezoneCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsRequest.php
new file mode 100644
index 00000000..bc26187c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsRequest.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model
+{
+ public $dryRun;
+ public $format;
+ public $lineItems;
+
+ public function setDryRun($dryRun)
+ {
+ $this->dryRun = $dryRun;
+ }
+ public function getDryRun()
+ {
+ return $this->dryRun;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsResponse.php
new file mode 100644
index 00000000..ec9dc789
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadLineItemsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model
+{
+ protected $uploadStatusType = 'Google_Service_DoubleClickBidManager_UploadStatus';
+ protected $uploadStatusDataType = '';
+
+ public function setUploadStatus(Google_Service_DoubleClickBidManager_UploadStatus $uploadStatus)
+ {
+ $this->uploadStatus = $uploadStatus;
+ }
+ public function getUploadStatus()
+ {
+ return $this->uploadStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadStatus.php
new file mode 100644
index 00000000..258519c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/DoubleClickBidManager/UploadStatus.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection
+{
+ protected $collection_key = 'rowStatus';
+ public $errors;
+ protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus';
+ protected $rowStatusDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setRowStatus($rowStatus)
+ {
+ $this->rowStatus = $rowStatus;
+ }
+ public function getRowStatus()
+ {
+ return $this->rowStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch.php
new file mode 100644
index 00000000..6df519f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch.php
@@ -0,0 +1,242 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Doubleclicksearch (v2).
+ *
+ * <p>
+ * Reports and modifies your advertising data in DoubleClick Search (for
+ * example, campaigns, ad groups, keywords, and conversions).</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/doubleclick-search/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Doubleclicksearch extends Google_Service
+{
+ /** View and manage your advertising data in DoubleClick Search. */
+ const DOUBLECLICKSEARCH =
+ "https://www.googleapis.com/auth/doubleclicksearch";
+
+ public $conversion;
+ public $reports;
+ public $savedColumns;
+
+ /**
+ * Constructs the internal representation of the Doubleclicksearch service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'doubleclicksearch/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'doubleclicksearch';
+
+ $this->conversion = new Google_Service_Doubleclicksearch_Resource_Conversion(
+ $this,
+ $this->serviceName,
+ 'conversion',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'agencyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'engineAccountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'rowCount' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'startRow' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'adGroupId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'adId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'campaignId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'criterionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'conversion',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'conversion',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'advertiserId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'agencyId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endDate' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'engineAccountId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rowCount' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'startDate' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'startRow' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'conversion',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(),
+ ),'updateAvailability' => array(
+ 'path' => 'conversion/updateAvailability',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->reports = new Google_Service_Doubleclicksearch_Resource_Reports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'generate' => array(
+ 'path' => 'reports/generate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => 'reports/{reportId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getFile' => array(
+ 'path' => 'reports/{reportId}/files/{reportFragment}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportFragment' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'request' => array(
+ 'path' => 'reports',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->savedColumns = new Google_Service_Doubleclicksearch_Resource_SavedColumns(
+ $this,
+ $this->serviceName,
+ 'savedColumns',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'agencyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'advertiserId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Availability.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Availability.php
new file mode 100644
index 00000000..9487d037
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Availability.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_Availability extends Google_Model
+{
+ public $advertiserId;
+ public $agencyId;
+ public $availabilityTimestamp;
+ public $segmentationId;
+ public $segmentationName;
+ public $segmentationType;
+
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAgencyId($agencyId)
+ {
+ $this->agencyId = $agencyId;
+ }
+ public function getAgencyId()
+ {
+ return $this->agencyId;
+ }
+ public function setAvailabilityTimestamp($availabilityTimestamp)
+ {
+ $this->availabilityTimestamp = $availabilityTimestamp;
+ }
+ public function getAvailabilityTimestamp()
+ {
+ return $this->availabilityTimestamp;
+ }
+ public function setSegmentationId($segmentationId)
+ {
+ $this->segmentationId = $segmentationId;
+ }
+ public function getSegmentationId()
+ {
+ return $this->segmentationId;
+ }
+ public function setSegmentationName($segmentationName)
+ {
+ $this->segmentationName = $segmentationName;
+ }
+ public function getSegmentationName()
+ {
+ return $this->segmentationName;
+ }
+ public function setSegmentationType($segmentationType)
+ {
+ $this->segmentationType = $segmentationType;
+ }
+ public function getSegmentationType()
+ {
+ return $this->segmentationType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Conversion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Conversion.php
new file mode 100644
index 00000000..8ea6e5b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Conversion.php
@@ -0,0 +1,321 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_Conversion extends Google_Collection
+{
+ protected $collection_key = 'customMetric';
+ public $adGroupId;
+ public $adId;
+ public $advertiserId;
+ public $agencyId;
+ public $attributionModel;
+ public $campaignId;
+ public $channel;
+ public $clickId;
+ public $conversionId;
+ public $conversionModifiedTimestamp;
+ public $conversionTimestamp;
+ public $countMillis;
+ public $criterionId;
+ public $currencyCode;
+ protected $customDimensionType = 'Google_Service_Doubleclicksearch_CustomDimension';
+ protected $customDimensionDataType = 'array';
+ protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric';
+ protected $customMetricDataType = 'array';
+ public $deviceType;
+ public $dsConversionId;
+ public $engineAccountId;
+ public $floodlightOrderId;
+ public $inventoryAccountId;
+ public $productCountry;
+ public $productGroupId;
+ public $productId;
+ public $productLanguage;
+ public $quantityMillis;
+ public $revenueMicros;
+ public $segmentationId;
+ public $segmentationName;
+ public $segmentationType;
+ public $state;
+ public $storeId;
+ public $type;
+
+ public function setAdGroupId($adGroupId)
+ {
+ $this->adGroupId = $adGroupId;
+ }
+ public function getAdGroupId()
+ {
+ return $this->adGroupId;
+ }
+ public function setAdId($adId)
+ {
+ $this->adId = $adId;
+ }
+ public function getAdId()
+ {
+ return $this->adId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAgencyId($agencyId)
+ {
+ $this->agencyId = $agencyId;
+ }
+ public function getAgencyId()
+ {
+ return $this->agencyId;
+ }
+ public function setAttributionModel($attributionModel)
+ {
+ $this->attributionModel = $attributionModel;
+ }
+ public function getAttributionModel()
+ {
+ return $this->attributionModel;
+ }
+ public function setCampaignId($campaignId)
+ {
+ $this->campaignId = $campaignId;
+ }
+ public function getCampaignId()
+ {
+ return $this->campaignId;
+ }
+ public function setChannel($channel)
+ {
+ $this->channel = $channel;
+ }
+ public function getChannel()
+ {
+ return $this->channel;
+ }
+ public function setClickId($clickId)
+ {
+ $this->clickId = $clickId;
+ }
+ public function getClickId()
+ {
+ return $this->clickId;
+ }
+ public function setConversionId($conversionId)
+ {
+ $this->conversionId = $conversionId;
+ }
+ public function getConversionId()
+ {
+ return $this->conversionId;
+ }
+ public function setConversionModifiedTimestamp($conversionModifiedTimestamp)
+ {
+ $this->conversionModifiedTimestamp = $conversionModifiedTimestamp;
+ }
+ public function getConversionModifiedTimestamp()
+ {
+ return $this->conversionModifiedTimestamp;
+ }
+ public function setConversionTimestamp($conversionTimestamp)
+ {
+ $this->conversionTimestamp = $conversionTimestamp;
+ }
+ public function getConversionTimestamp()
+ {
+ return $this->conversionTimestamp;
+ }
+ public function setCountMillis($countMillis)
+ {
+ $this->countMillis = $countMillis;
+ }
+ public function getCountMillis()
+ {
+ return $this->countMillis;
+ }
+ public function setCriterionId($criterionId)
+ {
+ $this->criterionId = $criterionId;
+ }
+ public function getCriterionId()
+ {
+ return $this->criterionId;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setCustomDimension($customDimension)
+ {
+ $this->customDimension = $customDimension;
+ }
+ public function getCustomDimension()
+ {
+ return $this->customDimension;
+ }
+ public function setCustomMetric($customMetric)
+ {
+ $this->customMetric = $customMetric;
+ }
+ public function getCustomMetric()
+ {
+ return $this->customMetric;
+ }
+ public function setDeviceType($deviceType)
+ {
+ $this->deviceType = $deviceType;
+ }
+ public function getDeviceType()
+ {
+ return $this->deviceType;
+ }
+ public function setDsConversionId($dsConversionId)
+ {
+ $this->dsConversionId = $dsConversionId;
+ }
+ public function getDsConversionId()
+ {
+ return $this->dsConversionId;
+ }
+ public function setEngineAccountId($engineAccountId)
+ {
+ $this->engineAccountId = $engineAccountId;
+ }
+ public function getEngineAccountId()
+ {
+ return $this->engineAccountId;
+ }
+ public function setFloodlightOrderId($floodlightOrderId)
+ {
+ $this->floodlightOrderId = $floodlightOrderId;
+ }
+ public function getFloodlightOrderId()
+ {
+ return $this->floodlightOrderId;
+ }
+ public function setInventoryAccountId($inventoryAccountId)
+ {
+ $this->inventoryAccountId = $inventoryAccountId;
+ }
+ public function getInventoryAccountId()
+ {
+ return $this->inventoryAccountId;
+ }
+ public function setProductCountry($productCountry)
+ {
+ $this->productCountry = $productCountry;
+ }
+ public function getProductCountry()
+ {
+ return $this->productCountry;
+ }
+ public function setProductGroupId($productGroupId)
+ {
+ $this->productGroupId = $productGroupId;
+ }
+ public function getProductGroupId()
+ {
+ return $this->productGroupId;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setProductLanguage($productLanguage)
+ {
+ $this->productLanguage = $productLanguage;
+ }
+ public function getProductLanguage()
+ {
+ return $this->productLanguage;
+ }
+ public function setQuantityMillis($quantityMillis)
+ {
+ $this->quantityMillis = $quantityMillis;
+ }
+ public function getQuantityMillis()
+ {
+ return $this->quantityMillis;
+ }
+ public function setRevenueMicros($revenueMicros)
+ {
+ $this->revenueMicros = $revenueMicros;
+ }
+ public function getRevenueMicros()
+ {
+ return $this->revenueMicros;
+ }
+ public function setSegmentationId($segmentationId)
+ {
+ $this->segmentationId = $segmentationId;
+ }
+ public function getSegmentationId()
+ {
+ return $this->segmentationId;
+ }
+ public function setSegmentationName($segmentationName)
+ {
+ $this->segmentationName = $segmentationName;
+ }
+ public function getSegmentationName()
+ {
+ return $this->segmentationName;
+ }
+ public function setSegmentationType($segmentationType)
+ {
+ $this->segmentationType = $segmentationType;
+ }
+ public function getSegmentationType()
+ {
+ return $this->segmentationType;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStoreId($storeId)
+ {
+ $this->storeId = $storeId;
+ }
+ public function getStoreId()
+ {
+ return $this->storeId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ConversionList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ConversionList.php
new file mode 100644
index 00000000..14ec937d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ConversionList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection
+{
+ protected $collection_key = 'conversion';
+ protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion';
+ protected $conversionDataType = 'array';
+ public $kind;
+
+ public function setConversion($conversion)
+ {
+ $this->conversion = $conversion;
+ }
+ public function getConversion()
+ {
+ return $this->conversion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomDimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomDimension.php
new file mode 100644
index 00000000..2df84411
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomDimension.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomMetric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomMetric.php
new file mode 100644
index 00000000..3f499106
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/CustomMetric.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Report.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Report.php
new file mode 100644
index 00000000..1b696dab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Report.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_Report extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles';
+ protected $filesDataType = 'array';
+ public $id;
+ public $isReportReady;
+ public $kind;
+ protected $requestType = 'Google_Service_Doubleclicksearch_ReportRequest';
+ protected $requestDataType = '';
+ public $rowCount;
+ public $rows;
+ public $statisticsCurrencyCode;
+ public $statisticsTimeZone;
+
+ public function setFiles($files)
+ {
+ $this->files = $files;
+ }
+ public function getFiles()
+ {
+ return $this->files;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsReportReady($isReportReady)
+ {
+ $this->isReportReady = $isReportReady;
+ }
+ public function getIsReportReady()
+ {
+ return $this->isReportReady;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+ public function setRowCount($rowCount)
+ {
+ $this->rowCount = $rowCount;
+ }
+ public function getRowCount()
+ {
+ return $this->rowCount;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setStatisticsCurrencyCode($statisticsCurrencyCode)
+ {
+ $this->statisticsCurrencyCode = $statisticsCurrencyCode;
+ }
+ public function getStatisticsCurrencyCode()
+ {
+ return $this->statisticsCurrencyCode;
+ }
+ public function setStatisticsTimeZone($statisticsTimeZone)
+ {
+ $this->statisticsTimeZone = $statisticsTimeZone;
+ }
+ public function getStatisticsTimeZone()
+ {
+ return $this->statisticsTimeZone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportApiColumnSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportApiColumnSpec.php
new file mode 100644
index 00000000..c4a3a4b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportApiColumnSpec.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model
+{
+ public $columnName;
+ public $customDimensionName;
+ public $customMetricName;
+ public $endDate;
+ public $groupByColumn;
+ public $headerText;
+ public $platformSource;
+ public $productReportPerspective;
+ public $savedColumnName;
+ public $startDate;
+
+ public function setColumnName($columnName)
+ {
+ $this->columnName = $columnName;
+ }
+ public function getColumnName()
+ {
+ return $this->columnName;
+ }
+ public function setCustomDimensionName($customDimensionName)
+ {
+ $this->customDimensionName = $customDimensionName;
+ }
+ public function getCustomDimensionName()
+ {
+ return $this->customDimensionName;
+ }
+ public function setCustomMetricName($customMetricName)
+ {
+ $this->customMetricName = $customMetricName;
+ }
+ public function getCustomMetricName()
+ {
+ return $this->customMetricName;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setGroupByColumn($groupByColumn)
+ {
+ $this->groupByColumn = $groupByColumn;
+ }
+ public function getGroupByColumn()
+ {
+ return $this->groupByColumn;
+ }
+ public function setHeaderText($headerText)
+ {
+ $this->headerText = $headerText;
+ }
+ public function getHeaderText()
+ {
+ return $this->headerText;
+ }
+ public function setPlatformSource($platformSource)
+ {
+ $this->platformSource = $platformSource;
+ }
+ public function getPlatformSource()
+ {
+ return $this->platformSource;
+ }
+ public function setProductReportPerspective($productReportPerspective)
+ {
+ $this->productReportPerspective = $productReportPerspective;
+ }
+ public function getProductReportPerspective()
+ {
+ return $this->productReportPerspective;
+ }
+ public function setSavedColumnName($savedColumnName)
+ {
+ $this->savedColumnName = $savedColumnName;
+ }
+ public function getSavedColumnName()
+ {
+ return $this->savedColumnName;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportFiles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportFiles.php
new file mode 100644
index 00000000..e0a0aaa6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportFiles.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model
+{
+ public $byteCount;
+ public $url;
+
+ public function setByteCount($byteCount)
+ {
+ $this->byteCount = $byteCount;
+ }
+ public function getByteCount()
+ {
+ return $this->byteCount;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequest.php
new file mode 100644
index 00000000..8fb74a78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequest.php
@@ -0,0 +1,153 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection
+{
+ protected $collection_key = 'orderBy';
+ protected $columnsType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec';
+ protected $columnsDataType = 'array';
+ public $downloadFormat;
+ protected $filtersType = 'Google_Service_Doubleclicksearch_ReportRequestFilters';
+ protected $filtersDataType = 'array';
+ public $includeDeletedEntities;
+ public $includeRemovedEntities;
+ public $maxRowsPerFile;
+ protected $orderByType = 'Google_Service_Doubleclicksearch_ReportRequestOrderBy';
+ protected $orderByDataType = 'array';
+ protected $reportScopeType = 'Google_Service_Doubleclicksearch_ReportRequestReportScope';
+ protected $reportScopeDataType = '';
+ public $reportType;
+ public $rowCount;
+ public $startRow;
+ public $statisticsCurrency;
+ protected $timeRangeType = 'Google_Service_Doubleclicksearch_ReportRequestTimeRange';
+ protected $timeRangeDataType = '';
+ public $verifySingleTimeZone;
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setDownloadFormat($downloadFormat)
+ {
+ $this->downloadFormat = $downloadFormat;
+ }
+ public function getDownloadFormat()
+ {
+ return $this->downloadFormat;
+ }
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setIncludeDeletedEntities($includeDeletedEntities)
+ {
+ $this->includeDeletedEntities = $includeDeletedEntities;
+ }
+ public function getIncludeDeletedEntities()
+ {
+ return $this->includeDeletedEntities;
+ }
+ public function setIncludeRemovedEntities($includeRemovedEntities)
+ {
+ $this->includeRemovedEntities = $includeRemovedEntities;
+ }
+ public function getIncludeRemovedEntities()
+ {
+ return $this->includeRemovedEntities;
+ }
+ public function setMaxRowsPerFile($maxRowsPerFile)
+ {
+ $this->maxRowsPerFile = $maxRowsPerFile;
+ }
+ public function getMaxRowsPerFile()
+ {
+ return $this->maxRowsPerFile;
+ }
+ public function setOrderBy($orderBy)
+ {
+ $this->orderBy = $orderBy;
+ }
+ public function getOrderBy()
+ {
+ return $this->orderBy;
+ }
+ public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestReportScope $reportScope)
+ {
+ $this->reportScope = $reportScope;
+ }
+ public function getReportScope()
+ {
+ return $this->reportScope;
+ }
+ public function setReportType($reportType)
+ {
+ $this->reportType = $reportType;
+ }
+ public function getReportType()
+ {
+ return $this->reportType;
+ }
+ public function setRowCount($rowCount)
+ {
+ $this->rowCount = $rowCount;
+ }
+ public function getRowCount()
+ {
+ return $this->rowCount;
+ }
+ public function setStartRow($startRow)
+ {
+ $this->startRow = $startRow;
+ }
+ public function getStartRow()
+ {
+ return $this->startRow;
+ }
+ public function setStatisticsCurrency($statisticsCurrency)
+ {
+ $this->statisticsCurrency = $statisticsCurrency;
+ }
+ public function getStatisticsCurrency()
+ {
+ return $this->statisticsCurrency;
+ }
+ public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange)
+ {
+ $this->timeRange = $timeRange;
+ }
+ public function getTimeRange()
+ {
+ return $this->timeRange;
+ }
+ public function setVerifySingleTimeZone($verifySingleTimeZone)
+ {
+ $this->verifySingleTimeZone = $verifySingleTimeZone;
+ }
+ public function getVerifySingleTimeZone()
+ {
+ return $this->verifySingleTimeZone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestFilters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestFilters.php
new file mode 100644
index 00000000..b3329743
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestFilters.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection
+{
+ protected $collection_key = 'values';
+ protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec';
+ protected $columnDataType = '';
+ public $operator;
+ public $values;
+
+ public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column)
+ {
+ $this->column = $column;
+ }
+ public function getColumn()
+ {
+ return $this->column;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestOrderBy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestOrderBy.php
new file mode 100644
index 00000000..c2967c6c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestOrderBy.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model
+{
+ protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec';
+ protected $columnDataType = '';
+ public $sortOrder;
+
+ public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column)
+ {
+ $this->column = $column;
+ }
+ public function getColumn()
+ {
+ return $this->column;
+ }
+ public function setSortOrder($sortOrder)
+ {
+ $this->sortOrder = $sortOrder;
+ }
+ public function getSortOrder()
+ {
+ return $this->sortOrder;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestReportScope.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestReportScope.php
new file mode 100644
index 00000000..2323f7a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestReportScope.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model
+{
+ public $adGroupId;
+ public $adId;
+ public $advertiserId;
+ public $agencyId;
+ public $campaignId;
+ public $engineAccountId;
+ public $keywordId;
+
+ public function setAdGroupId($adGroupId)
+ {
+ $this->adGroupId = $adGroupId;
+ }
+ public function getAdGroupId()
+ {
+ return $this->adGroupId;
+ }
+ public function setAdId($adId)
+ {
+ $this->adId = $adId;
+ }
+ public function getAdId()
+ {
+ return $this->adId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAgencyId($agencyId)
+ {
+ $this->agencyId = $agencyId;
+ }
+ public function getAgencyId()
+ {
+ return $this->agencyId;
+ }
+ public function setCampaignId($campaignId)
+ {
+ $this->campaignId = $campaignId;
+ }
+ public function getCampaignId()
+ {
+ return $this->campaignId;
+ }
+ public function setEngineAccountId($engineAccountId)
+ {
+ $this->engineAccountId = $engineAccountId;
+ }
+ public function getEngineAccountId()
+ {
+ return $this->engineAccountId;
+ }
+ public function setKeywordId($keywordId)
+ {
+ $this->keywordId = $keywordId;
+ }
+ public function getKeywordId()
+ {
+ return $this->keywordId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestTimeRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestTimeRange.php
new file mode 100644
index 00000000..d8c6338e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/ReportRequestTimeRange.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model
+{
+ public $changedAttributesSinceTimestamp;
+ public $changedMetricsSinceTimestamp;
+ public $endDate;
+ public $startDate;
+
+ public function setChangedAttributesSinceTimestamp($changedAttributesSinceTimestamp)
+ {
+ $this->changedAttributesSinceTimestamp = $changedAttributesSinceTimestamp;
+ }
+ public function getChangedAttributesSinceTimestamp()
+ {
+ return $this->changedAttributesSinceTimestamp;
+ }
+ public function setChangedMetricsSinceTimestamp($changedMetricsSinceTimestamp)
+ {
+ $this->changedMetricsSinceTimestamp = $changedMetricsSinceTimestamp;
+ }
+ public function getChangedMetricsSinceTimestamp()
+ {
+ return $this->changedMetricsSinceTimestamp;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Conversion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Conversion.php
new file mode 100644
index 00000000..b7d6342e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Conversion.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "conversion" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...);
+ * $conversion = $doubleclicksearchService->conversion;
+ * </code>
+ */
+class Google_Service_Doubleclicksearch_Resource_Conversion extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of conversions from a DoubleClick Search engine account.
+ * (conversion.get)
+ *
+ * @param string $agencyId Numeric ID of the agency.
+ * @param string $advertiserId Numeric ID of the advertiser.
+ * @param string $engineAccountId Numeric ID of the engine account.
+ * @param int $endDate Last date (inclusive) on which to retrieve conversions.
+ * Format is yyyymmdd.
+ * @param int $rowCount The number of conversions to return per call.
+ * @param int $startDate First date (inclusive) on which to retrieve
+ * conversions. Format is yyyymmdd.
+ * @param string $startRow The 0-based starting index for retrieving conversions
+ * results.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string adGroupId Numeric ID of the ad group.
+ * @opt_param string adId Numeric ID of the ad.
+ * @opt_param string campaignId Numeric ID of the campaign.
+ * @opt_param string criterionId Numeric ID of the criterion.
+ * @return Google_Service_Doubleclicksearch_ConversionList
+ */
+ public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array())
+ {
+ $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId, 'engineAccountId' => $engineAccountId, 'endDate' => $endDate, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Doubleclicksearch_ConversionList");
+ }
+ /**
+ * Inserts a batch of new conversions into DoubleClick Search.
+ * (conversion.insert)
+ *
+ * @param Google_Service_Doubleclicksearch_ConversionList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_ConversionList
+ */
+ public function insert(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Doubleclicksearch_ConversionList");
+ }
+ /**
+ * Updates a batch of conversions in DoubleClick Search. This method supports
+ * patch semantics. (conversion.patch)
+ *
+ * @param string $advertiserId Numeric ID of the advertiser.
+ * @param string $agencyId Numeric ID of the agency.
+ * @param int $endDate Last date (inclusive) on which to retrieve conversions.
+ * Format is yyyymmdd.
+ * @param string $engineAccountId Numeric ID of the engine account.
+ * @param int $rowCount The number of conversions to return per call.
+ * @param int $startDate First date (inclusive) on which to retrieve
+ * conversions. Format is yyyymmdd.
+ * @param string $startRow The 0-based starting index for retrieving conversions
+ * results.
+ * @param Google_Service_Doubleclicksearch_ConversionList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_ConversionList
+ */
+ public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $rowCount, $startDate, $startRow, Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
+ {
+ $params = array('advertiserId' => $advertiserId, 'agencyId' => $agencyId, 'endDate' => $endDate, 'engineAccountId' => $engineAccountId, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Doubleclicksearch_ConversionList");
+ }
+ /**
+ * Updates a batch of conversions in DoubleClick Search. (conversion.update)
+ *
+ * @param Google_Service_Doubleclicksearch_ConversionList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_ConversionList
+ */
+ public function update(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Doubleclicksearch_ConversionList");
+ }
+ /**
+ * Updates the availabilities of a batch of floodlight activities in DoubleClick
+ * Search. (conversion.updateAvailability)
+ *
+ * @param Google_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_UpdateAvailabilityResponse
+ */
+ public function updateAvailability(Google_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateAvailability', array($params), "Google_Service_Doubleclicksearch_UpdateAvailabilityResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Reports.php
new file mode 100644
index 00000000..51f76f13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/Reports.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...);
+ * $reports = $doubleclicksearchService->reports;
+ * </code>
+ */
+class Google_Service_Doubleclicksearch_Resource_Reports extends Google_Service_Resource
+{
+ /**
+ * Generates and returns a report immediately. (reports.generate)
+ *
+ * @param Google_Service_Doubleclicksearch_ReportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_Report
+ */
+ public function generate(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('generate', array($params), "Google_Service_Doubleclicksearch_Report");
+ }
+ /**
+ * Polls for the status of a report request. (reports.get)
+ *
+ * @param string $reportId ID of the report request being polled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_Report
+ */
+ public function get($reportId, $optParams = array())
+ {
+ $params = array('reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Doubleclicksearch_Report");
+ }
+ /**
+ * Downloads a report file encoded in UTF-8. (reports.getFile)
+ *
+ * @param string $reportId ID of the report.
+ * @param int $reportFragment The index of the report fragment to download.
+ * @param array $optParams Optional parameters.
+ */
+ public function getFile($reportId, $reportFragment, $optParams = array())
+ {
+ $params = array('reportId' => $reportId, 'reportFragment' => $reportFragment);
+ $params = array_merge($params, $optParams);
+ return $this->call('getFile', array($params));
+ }
+ /**
+ * Inserts a report request into the reporting system. (reports.request)
+ *
+ * @param Google_Service_Doubleclicksearch_ReportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_Report
+ */
+ public function request(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('request', array($params), "Google_Service_Doubleclicksearch_Report");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/SavedColumns.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/SavedColumns.php
new file mode 100644
index 00000000..52783ab0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/Resource/SavedColumns.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "savedColumns" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...);
+ * $savedColumns = $doubleclicksearchService->savedColumns;
+ * </code>
+ */
+class Google_Service_Doubleclicksearch_Resource_SavedColumns extends Google_Service_Resource
+{
+ /**
+ * Retrieve the list of saved columns for a specified advertiser.
+ * (savedColumns.listSavedColumns)
+ *
+ * @param string $agencyId DS ID of the agency.
+ * @param string $advertiserId DS ID of the advertiser.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Doubleclicksearch_SavedColumnList
+ */
+ public function listSavedColumns($agencyId, $advertiserId, $optParams = array())
+ {
+ $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Doubleclicksearch_SavedColumnList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumn.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumn.php
new file mode 100644
index 00000000..2328e440
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumn.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model
+{
+ public $kind;
+ public $savedColumnName;
+ public $type;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSavedColumnName($savedColumnName)
+ {
+ $this->savedColumnName = $savedColumnName;
+ }
+ public function getSavedColumnName()
+ {
+ return $this->savedColumnName;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumnList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumnList.php
new file mode 100644
index 00000000..1eab97b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/SavedColumnList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Doubleclicksearch_SavedColumn';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityRequest.php
new file mode 100644
index 00000000..aab3acbd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection
+{
+ protected $collection_key = 'availabilities';
+ protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability';
+ protected $availabilitiesDataType = 'array';
+
+ public function setAvailabilities($availabilities)
+ {
+ $this->availabilities = $availabilities;
+ }
+ public function getAvailabilities()
+ {
+ return $this->availabilities;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityResponse.php
new file mode 100644
index 00000000..7e43f5a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Doubleclicksearch/UpdateAvailabilityResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection
+{
+ protected $collection_key = 'availabilities';
+ protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability';
+ protected $availabilitiesDataType = 'array';
+
+ public function setAvailabilities($availabilities)
+ {
+ $this->availabilities = $availabilities;
+ }
+ public function getAvailabilities()
+ {
+ return $this->availabilities;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive.php
new file mode 100644
index 00000000..8bfdfe79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive.php
@@ -0,0 +1,914 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Drive (v3).
+ *
+ * <p>
+ * Manages files in Drive including uploading, downloading, searching, detecting
+ * changes, and updating sharing permissions.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/drive/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Drive extends Google_Service
+{
+ /** View and manage the files in your Google Drive. */
+ const DRIVE =
+ "https://www.googleapis.com/auth/drive";
+ /** View and manage its own configuration data in your Google Drive. */
+ const DRIVE_APPDATA =
+ "https://www.googleapis.com/auth/drive.appdata";
+ /** View and manage Google Drive files and folders that you have opened or created with this app. */
+ const DRIVE_FILE =
+ "https://www.googleapis.com/auth/drive.file";
+ /** View and manage metadata of files in your Google Drive. */
+ const DRIVE_METADATA =
+ "https://www.googleapis.com/auth/drive.metadata";
+ /** View metadata for files in your Google Drive. */
+ const DRIVE_METADATA_READONLY =
+ "https://www.googleapis.com/auth/drive.metadata.readonly";
+ /** View the photos, videos and albums in your Google Photos. */
+ const DRIVE_PHOTOS_READONLY =
+ "https://www.googleapis.com/auth/drive.photos.readonly";
+ /** View the files in your Google Drive. */
+ const DRIVE_READONLY =
+ "https://www.googleapis.com/auth/drive.readonly";
+ /** Modify your Google Apps Script scripts' behavior. */
+ const DRIVE_SCRIPTS =
+ "https://www.googleapis.com/auth/drive.scripts";
+
+ public $about;
+ public $changes;
+ public $channels;
+ public $comments;
+ public $files;
+ public $permissions;
+ public $replies;
+ public $revisions;
+ public $teamdrives;
+
+ /**
+ * Constructs the internal representation of the Drive service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'drive/v3/';
+ $this->version = 'v3';
+ $this->serviceName = 'drive';
+
+ $this->about = new Google_Service_Drive_Resource_About(
+ $this,
+ $this->serviceName,
+ 'about',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'about',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->changes = new Google_Service_Drive_Resource_Changes(
+ $this,
+ $this->serviceName,
+ 'changes',
+ array(
+ 'methods' => array(
+ 'getStartPageToken' => array(
+ 'path' => 'changes/startPageToken',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'teamDriveId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'changes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeCorpusRemovals' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'includeRemoved' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'includeTeamDriveItems' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'restrictToMyDrive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'spaces' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'teamDriveId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'changes/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeCorpusRemovals' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'includeRemoved' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'includeTeamDriveItems' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'restrictToMyDrive' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'spaces' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'teamDriveId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channels = new Google_Service_Drive_Resource_Channels(
+ $this,
+ $this->serviceName,
+ 'channels',
+ array(
+ 'methods' => array(
+ 'stop' => array(
+ 'path' => 'channels/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->comments = new Google_Service_Drive_Resource_Comments(
+ $this,
+ $this->serviceName,
+ 'comments',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'files/{fileId}/comments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'files/{fileId}/comments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startModifiedTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->files = new Google_Service_Drive_Resource_Files(
+ $this,
+ $this->serviceName,
+ 'files',
+ array(
+ 'methods' => array(
+ 'copy' => array(
+ 'path' => 'files/{fileId}/copy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ignoreDefaultVisibility' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'keepRevisionForever' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ocrLanguage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'files',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'ignoreDefaultVisibility' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'keepRevisionForever' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ocrLanguage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'useContentAsIndexableText' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'files/{fileId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'emptyTrash' => array(
+ 'path' => 'files/trash',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(),
+ ),'export' => array(
+ 'path' => 'files/{fileId}/export',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'mimeType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'generateIds' => array(
+ 'path' => 'files/generateIds',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'count' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'space' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'files/{fileId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'acknowledgeAbuse' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'files',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'corpora' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'corpus' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeTeamDriveItems' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'spaces' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'teamDriveId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'files/{fileId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'addParents' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'keepRevisionForever' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'ocrLanguage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'removeParents' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'useContentAsIndexableText' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'files/{fileId}/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'acknowledgeAbuse' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->permissions = new Google_Service_Drive_Resource_Permissions(
+ $this,
+ $this->serviceName,
+ 'permissions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'files/{fileId}/permissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'emailMessage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sendNotificationEmail' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'transferOwnership' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'files/{fileId}/permissions/{permissionId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'files/{fileId}/permissions/{permissionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'files/{fileId}/permissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'files/{fileId}/permissions/{permissionId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'removeExpiration' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'supportsTeamDrives' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'transferOwnership' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->replies = new Google_Service_Drive_Resource_Replies(
+ $this,
+ $this->serviceName,
+ 'replies',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}/replies',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'replyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'replyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}/replies',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'replyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->revisions = new Google_Service_Drive_Resource_Revisions(
+ $this,
+ $this->serviceName,
+ 'revisions',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'files/{fileId}/revisions/{revisionId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'revisionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'files/{fileId}/revisions/{revisionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'revisionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'acknowledgeAbuse' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'files/{fileId}/revisions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'files/{fileId}/revisions/{revisionId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'fileId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'revisionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->teamdrives = new Google_Service_Drive_Resource_Teamdrives(
+ $this,
+ $this->serviceName,
+ 'teamdrives',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'teamdrives',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'teamdrives/{teamDriveId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'teamDriveId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'teamdrives/{teamDriveId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'teamDriveId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'teamdrives',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'teamdrives/{teamDriveId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'teamDriveId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/About.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/About.php
new file mode 100644
index 00000000..07d73694
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/About.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_About extends Google_Collection
+{
+ protected $collection_key = 'folderColorPalette';
+ public $appInstalled;
+ public $exportFormats;
+ public $folderColorPalette;
+ public $importFormats;
+ public $kind;
+ public $maxImportSizes;
+ public $maxUploadSize;
+ protected $storageQuotaType = 'Google_Service_Drive_AboutStorageQuota';
+ protected $storageQuotaDataType = '';
+ protected $userType = 'Google_Service_Drive_User';
+ protected $userDataType = '';
+
+ public function setAppInstalled($appInstalled)
+ {
+ $this->appInstalled = $appInstalled;
+ }
+ public function getAppInstalled()
+ {
+ return $this->appInstalled;
+ }
+ public function setExportFormats($exportFormats)
+ {
+ $this->exportFormats = $exportFormats;
+ }
+ public function getExportFormats()
+ {
+ return $this->exportFormats;
+ }
+ public function setFolderColorPalette($folderColorPalette)
+ {
+ $this->folderColorPalette = $folderColorPalette;
+ }
+ public function getFolderColorPalette()
+ {
+ return $this->folderColorPalette;
+ }
+ public function setImportFormats($importFormats)
+ {
+ $this->importFormats = $importFormats;
+ }
+ public function getImportFormats()
+ {
+ return $this->importFormats;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxImportSizes($maxImportSizes)
+ {
+ $this->maxImportSizes = $maxImportSizes;
+ }
+ public function getMaxImportSizes()
+ {
+ return $this->maxImportSizes;
+ }
+ public function setMaxUploadSize($maxUploadSize)
+ {
+ $this->maxUploadSize = $maxUploadSize;
+ }
+ public function getMaxUploadSize()
+ {
+ return $this->maxUploadSize;
+ }
+ public function setStorageQuota(Google_Service_Drive_AboutStorageQuota $storageQuota)
+ {
+ $this->storageQuota = $storageQuota;
+ }
+ public function getStorageQuota()
+ {
+ return $this->storageQuota;
+ }
+ public function setUser(Google_Service_Drive_User $user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/AboutStorageQuota.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/AboutStorageQuota.php
new file mode 100644
index 00000000..67aa7530
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/AboutStorageQuota.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_AboutStorageQuota extends Google_Model
+{
+ public $limit;
+ public $usage;
+ public $usageInDrive;
+ public $usageInDriveTrash;
+
+ public function setLimit($limit)
+ {
+ $this->limit = $limit;
+ }
+ public function getLimit()
+ {
+ return $this->limit;
+ }
+ public function setUsage($usage)
+ {
+ $this->usage = $usage;
+ }
+ public function getUsage()
+ {
+ return $this->usage;
+ }
+ public function setUsageInDrive($usageInDrive)
+ {
+ $this->usageInDrive = $usageInDrive;
+ }
+ public function getUsageInDrive()
+ {
+ return $this->usageInDrive;
+ }
+ public function setUsageInDriveTrash($usageInDriveTrash)
+ {
+ $this->usageInDriveTrash = $usageInDriveTrash;
+ }
+ public function getUsageInDriveTrash()
+ {
+ return $this->usageInDriveTrash;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Change.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Change.php
new file mode 100644
index 00000000..d4755a46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Change.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_Change extends Google_Model
+{
+ protected $fileType = 'Google_Service_Drive_DriveFile';
+ protected $fileDataType = '';
+ public $fileId;
+ public $kind;
+ public $removed;
+ protected $teamDriveType = 'Google_Service_Drive_TeamDrive';
+ protected $teamDriveDataType = '';
+ public $teamDriveId;
+ public $time;
+ public $type;
+
+ public function setFile(Google_Service_Drive_DriveFile $file)
+ {
+ $this->file = $file;
+ }
+ public function getFile()
+ {
+ return $this->file;
+ }
+ public function setFileId($fileId)
+ {
+ $this->fileId = $fileId;
+ }
+ public function getFileId()
+ {
+ return $this->fileId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRemoved($removed)
+ {
+ $this->removed = $removed;
+ }
+ public function getRemoved()
+ {
+ return $this->removed;
+ }
+ public function setTeamDrive(Google_Service_Drive_TeamDrive $teamDrive)
+ {
+ $this->teamDrive = $teamDrive;
+ }
+ public function getTeamDrive()
+ {
+ return $this->teamDrive;
+ }
+ public function setTeamDriveId($teamDriveId)
+ {
+ $this->teamDriveId = $teamDriveId;
+ }
+ public function getTeamDriveId()
+ {
+ return $this->teamDriveId;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ChangeList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ChangeList.php
new file mode 100644
index 00000000..406447be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ChangeList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_ChangeList extends Google_Collection
+{
+ protected $collection_key = 'changes';
+ protected $changesType = 'Google_Service_Drive_Change';
+ protected $changesDataType = 'array';
+ public $kind;
+ public $newStartPageToken;
+ public $nextPageToken;
+
+ public function setChanges($changes)
+ {
+ $this->changes = $changes;
+ }
+ public function getChanges()
+ {
+ return $this->changes;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewStartPageToken($newStartPageToken)
+ {
+ $this->newStartPageToken = $newStartPageToken;
+ }
+ public function getNewStartPageToken()
+ {
+ return $this->newStartPageToken;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Channel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Channel.php
new file mode 100644
index 00000000..e3208a3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Channel.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_Channel extends Google_Model
+{
+ public $address;
+ public $expiration;
+ public $id;
+ public $kind;
+ public $params;
+ public $payload;
+ public $resourceId;
+ public $resourceUri;
+ public $token;
+ public $type;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setResourceUri($resourceUri)
+ {
+ $this->resourceUri = $resourceUri;
+ }
+ public function getResourceUri()
+ {
+ return $this->resourceUri;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Comment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Comment.php
new file mode 100644
index 00000000..baa836d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Comment.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_Comment extends Google_Collection
+{
+ protected $collection_key = 'replies';
+ public $anchor;
+ protected $authorType = 'Google_Service_Drive_User';
+ protected $authorDataType = '';
+ public $content;
+ public $createdTime;
+ public $deleted;
+ public $htmlContent;
+ public $id;
+ public $kind;
+ public $modifiedTime;
+ protected $quotedFileContentType = 'Google_Service_Drive_CommentQuotedFileContent';
+ protected $quotedFileContentDataType = '';
+ protected $repliesType = 'Google_Service_Drive_Reply';
+ protected $repliesDataType = 'array';
+ public $resolved;
+
+ public function setAnchor($anchor)
+ {
+ $this->anchor = $anchor;
+ }
+ public function getAnchor()
+ {
+ return $this->anchor;
+ }
+ public function setAuthor(Google_Service_Drive_User $author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setCreatedTime($createdTime)
+ {
+ $this->createdTime = $createdTime;
+ }
+ public function getCreatedTime()
+ {
+ return $this->createdTime;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setHtmlContent($htmlContent)
+ {
+ $this->htmlContent = $htmlContent;
+ }
+ public function getHtmlContent()
+ {
+ return $this->htmlContent;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setModifiedTime($modifiedTime)
+ {
+ $this->modifiedTime = $modifiedTime;
+ }
+ public function getModifiedTime()
+ {
+ return $this->modifiedTime;
+ }
+ public function setQuotedFileContent(Google_Service_Drive_CommentQuotedFileContent $quotedFileContent)
+ {
+ $this->quotedFileContent = $quotedFileContent;
+ }
+ public function getQuotedFileContent()
+ {
+ return $this->quotedFileContent;
+ }
+ public function setReplies($replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+ public function setResolved($resolved)
+ {
+ $this->resolved = $resolved;
+ }
+ public function getResolved()
+ {
+ return $this->resolved;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentList.php
new file mode 100644
index 00000000..d6b49c46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_CommentList extends Google_Collection
+{
+ protected $collection_key = 'comments';
+ protected $commentsType = 'Google_Service_Drive_Comment';
+ protected $commentsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentQuotedFileContent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentQuotedFileContent.php
new file mode 100644
index 00000000..9a257728
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/CommentQuotedFileContent.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_CommentQuotedFileContent extends Google_Model
+{
+ public $mimeType;
+ public $value;
+
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFile.php
new file mode 100644
index 00000000..36fb42d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFile.php
@@ -0,0 +1,490 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_DriveFile extends Google_Collection
+{
+ protected $collection_key = 'spaces';
+ public $appProperties;
+ protected $capabilitiesType = 'Google_Service_Drive_DriveFileCapabilities';
+ protected $capabilitiesDataType = '';
+ protected $contentHintsType = 'Google_Service_Drive_DriveFileContentHints';
+ protected $contentHintsDataType = '';
+ public $createdTime;
+ public $description;
+ public $explicitlyTrashed;
+ public $fileExtension;
+ public $folderColorRgb;
+ public $fullFileExtension;
+ public $hasAugmentedPermissions;
+ public $hasThumbnail;
+ public $headRevisionId;
+ public $iconLink;
+ public $id;
+ protected $imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata';
+ protected $imageMediaMetadataDataType = '';
+ public $isAppAuthorized;
+ public $kind;
+ protected $lastModifyingUserType = 'Google_Service_Drive_User';
+ protected $lastModifyingUserDataType = '';
+ public $md5Checksum;
+ public $mimeType;
+ public $modifiedByMe;
+ public $modifiedByMeTime;
+ public $modifiedTime;
+ public $name;
+ public $originalFilename;
+ public $ownedByMe;
+ protected $ownersType = 'Google_Service_Drive_User';
+ protected $ownersDataType = 'array';
+ public $parents;
+ protected $permissionsType = 'Google_Service_Drive_Permission';
+ protected $permissionsDataType = 'array';
+ public $properties;
+ public $quotaBytesUsed;
+ public $shared;
+ public $sharedWithMeTime;
+ protected $sharingUserType = 'Google_Service_Drive_User';
+ protected $sharingUserDataType = '';
+ public $size;
+ public $spaces;
+ public $starred;
+ public $teamDriveId;
+ public $thumbnailLink;
+ public $thumbnailVersion;
+ public $trashed;
+ public $trashedTime;
+ protected $trashingUserType = 'Google_Service_Drive_User';
+ protected $trashingUserDataType = '';
+ public $version;
+ protected $videoMediaMetadataType = 'Google_Service_Drive_DriveFileVideoMediaMetadata';
+ protected $videoMediaMetadataDataType = '';
+ public $viewedByMe;
+ public $viewedByMeTime;
+ public $viewersCanCopyContent;
+ public $webContentLink;
+ public $webViewLink;
+ public $writersCanShare;
+
+ public function setAppProperties($appProperties)
+ {
+ $this->appProperties = $appProperties;
+ }
+ public function getAppProperties()
+ {
+ return $this->appProperties;
+ }
+ public function setCapabilities(Google_Service_Drive_DriveFileCapabilities $capabilities)
+ {
+ $this->capabilities = $capabilities;
+ }
+ public function getCapabilities()
+ {
+ return $this->capabilities;
+ }
+ public function setContentHints(Google_Service_Drive_DriveFileContentHints $contentHints)
+ {
+ $this->contentHints = $contentHints;
+ }
+ public function getContentHints()
+ {
+ return $this->contentHints;
+ }
+ public function setCreatedTime($createdTime)
+ {
+ $this->createdTime = $createdTime;
+ }
+ public function getCreatedTime()
+ {
+ return $this->createdTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setExplicitlyTrashed($explicitlyTrashed)
+ {
+ $this->explicitlyTrashed = $explicitlyTrashed;
+ }
+ public function getExplicitlyTrashed()
+ {
+ return $this->explicitlyTrashed;
+ }
+ public function setFileExtension($fileExtension)
+ {
+ $this->fileExtension = $fileExtension;
+ }
+ public function getFileExtension()
+ {
+ return $this->fileExtension;
+ }
+ public function setFolderColorRgb($folderColorRgb)
+ {
+ $this->folderColorRgb = $folderColorRgb;
+ }
+ public function getFolderColorRgb()
+ {
+ return $this->folderColorRgb;
+ }
+ public function setFullFileExtension($fullFileExtension)
+ {
+ $this->fullFileExtension = $fullFileExtension;
+ }
+ public function getFullFileExtension()
+ {
+ return $this->fullFileExtension;
+ }
+ public function setHasAugmentedPermissions($hasAugmentedPermissions)
+ {
+ $this->hasAugmentedPermissions = $hasAugmentedPermissions;
+ }
+ public function getHasAugmentedPermissions()
+ {
+ return $this->hasAugmentedPermissions;
+ }
+ public function setHasThumbnail($hasThumbnail)
+ {
+ $this->hasThumbnail = $hasThumbnail;
+ }
+ public function getHasThumbnail()
+ {
+ return $this->hasThumbnail;
+ }
+ public function setHeadRevisionId($headRevisionId)
+ {
+ $this->headRevisionId = $headRevisionId;
+ }
+ public function getHeadRevisionId()
+ {
+ return $this->headRevisionId;
+ }
+ public function setIconLink($iconLink)
+ {
+ $this->iconLink = $iconLink;
+ }
+ public function getIconLink()
+ {
+ return $this->iconLink;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImageMediaMetadata(Google_Service_Drive_DriveFileImageMediaMetadata $imageMediaMetadata)
+ {
+ $this->imageMediaMetadata = $imageMediaMetadata;
+ }
+ public function getImageMediaMetadata()
+ {
+ return $this->imageMediaMetadata;
+ }
+ public function setIsAppAuthorized($isAppAuthorized)
+ {
+ $this->isAppAuthorized = $isAppAuthorized;
+ }
+ public function getIsAppAuthorized()
+ {
+ return $this->isAppAuthorized;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
+ {
+ $this->lastModifyingUser = $lastModifyingUser;
+ }
+ public function getLastModifyingUser()
+ {
+ return $this->lastModifyingUser;
+ }
+ public function setMd5Checksum($md5Checksum)
+ {
+ $this->md5Checksum = $md5Checksum;
+ }
+ public function getMd5Checksum()
+ {
+ return $this->md5Checksum;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setModifiedByMe($modifiedByMe)
+ {
+ $this->modifiedByMe = $modifiedByMe;
+ }
+ public function getModifiedByMe()
+ {
+ return $this->modifiedByMe;
+ }
+ public function setModifiedByMeTime($modifiedByMeTime)
+ {
+ $this->modifiedByMeTime = $modifiedByMeTime;
+ }
+ public function getModifiedByMeTime()
+ {
+ return $this->modifiedByMeTime;
+ }
+ public function setModifiedTime($modifiedTime)
+ {
+ $this->modifiedTime = $modifiedTime;
+ }
+ public function getModifiedTime()
+ {
+ return $this->modifiedTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalFilename($originalFilename)
+ {
+ $this->originalFilename = $originalFilename;
+ }
+ public function getOriginalFilename()
+ {
+ return $this->originalFilename;
+ }
+ public function setOwnedByMe($ownedByMe)
+ {
+ $this->ownedByMe = $ownedByMe;
+ }
+ public function getOwnedByMe()
+ {
+ return $this->ownedByMe;
+ }
+ public function setOwners($owners)
+ {
+ $this->owners = $owners;
+ }
+ public function getOwners()
+ {
+ return $this->owners;
+ }
+ public function setParents($parents)
+ {
+ $this->parents = $parents;
+ }
+ public function getParents()
+ {
+ return $this->parents;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setQuotaBytesUsed($quotaBytesUsed)
+ {
+ $this->quotaBytesUsed = $quotaBytesUsed;
+ }
+ public function getQuotaBytesUsed()
+ {
+ return $this->quotaBytesUsed;
+ }
+ public function setShared($shared)
+ {
+ $this->shared = $shared;
+ }
+ public function getShared()
+ {
+ return $this->shared;
+ }
+ public function setSharedWithMeTime($sharedWithMeTime)
+ {
+ $this->sharedWithMeTime = $sharedWithMeTime;
+ }
+ public function getSharedWithMeTime()
+ {
+ return $this->sharedWithMeTime;
+ }
+ public function setSharingUser(Google_Service_Drive_User $sharingUser)
+ {
+ $this->sharingUser = $sharingUser;
+ }
+ public function getSharingUser()
+ {
+ return $this->sharingUser;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSpaces($spaces)
+ {
+ $this->spaces = $spaces;
+ }
+ public function getSpaces()
+ {
+ return $this->spaces;
+ }
+ public function setStarred($starred)
+ {
+ $this->starred = $starred;
+ }
+ public function getStarred()
+ {
+ return $this->starred;
+ }
+ public function setTeamDriveId($teamDriveId)
+ {
+ $this->teamDriveId = $teamDriveId;
+ }
+ public function getTeamDriveId()
+ {
+ return $this->teamDriveId;
+ }
+ public function setThumbnailLink($thumbnailLink)
+ {
+ $this->thumbnailLink = $thumbnailLink;
+ }
+ public function getThumbnailLink()
+ {
+ return $this->thumbnailLink;
+ }
+ public function setThumbnailVersion($thumbnailVersion)
+ {
+ $this->thumbnailVersion = $thumbnailVersion;
+ }
+ public function getThumbnailVersion()
+ {
+ return $this->thumbnailVersion;
+ }
+ public function setTrashed($trashed)
+ {
+ $this->trashed = $trashed;
+ }
+ public function getTrashed()
+ {
+ return $this->trashed;
+ }
+ public function setTrashedTime($trashedTime)
+ {
+ $this->trashedTime = $trashedTime;
+ }
+ public function getTrashedTime()
+ {
+ return $this->trashedTime;
+ }
+ public function setTrashingUser(Google_Service_Drive_User $trashingUser)
+ {
+ $this->trashingUser = $trashingUser;
+ }
+ public function getTrashingUser()
+ {
+ return $this->trashingUser;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+ public function setVideoMediaMetadata(Google_Service_Drive_DriveFileVideoMediaMetadata $videoMediaMetadata)
+ {
+ $this->videoMediaMetadata = $videoMediaMetadata;
+ }
+ public function getVideoMediaMetadata()
+ {
+ return $this->videoMediaMetadata;
+ }
+ public function setViewedByMe($viewedByMe)
+ {
+ $this->viewedByMe = $viewedByMe;
+ }
+ public function getViewedByMe()
+ {
+ return $this->viewedByMe;
+ }
+ public function setViewedByMeTime($viewedByMeTime)
+ {
+ $this->viewedByMeTime = $viewedByMeTime;
+ }
+ public function getViewedByMeTime()
+ {
+ return $this->viewedByMeTime;
+ }
+ public function setViewersCanCopyContent($viewersCanCopyContent)
+ {
+ $this->viewersCanCopyContent = $viewersCanCopyContent;
+ }
+ public function getViewersCanCopyContent()
+ {
+ return $this->viewersCanCopyContent;
+ }
+ public function setWebContentLink($webContentLink)
+ {
+ $this->webContentLink = $webContentLink;
+ }
+ public function getWebContentLink()
+ {
+ return $this->webContentLink;
+ }
+ public function setWebViewLink($webViewLink)
+ {
+ $this->webViewLink = $webViewLink;
+ }
+ public function getWebViewLink()
+ {
+ return $this->webViewLink;
+ }
+ public function setWritersCanShare($writersCanShare)
+ {
+ $this->writersCanShare = $writersCanShare;
+ }
+ public function getWritersCanShare()
+ {
+ return $this->writersCanShare;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php
new file mode 100644
index 00000000..af3ffda7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileCapabilities.php
@@ -0,0 +1,165 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_DriveFileCapabilities extends Google_Model
+{
+ public $canAddChildren;
+ public $canComment;
+ public $canCopy;
+ public $canDelete;
+ public $canDownload;
+ public $canEdit;
+ public $canListChildren;
+ public $canMoveItemIntoTeamDrive;
+ public $canMoveTeamDriveItem;
+ public $canReadRevisions;
+ public $canReadTeamDrive;
+ public $canRemoveChildren;
+ public $canRename;
+ public $canShare;
+ public $canTrash;
+ public $canUntrash;
+
+ public function setCanAddChildren($canAddChildren)
+ {
+ $this->canAddChildren = $canAddChildren;
+ }
+ public function getCanAddChildren()
+ {
+ return $this->canAddChildren;
+ }
+ public function setCanComment($canComment)
+ {
+ $this->canComment = $canComment;
+ }
+ public function getCanComment()
+ {
+ return $this->canComment;
+ }
+ public function setCanCopy($canCopy)
+ {
+ $this->canCopy = $canCopy;
+ }
+ public function getCanCopy()
+ {
+ return $this->canCopy;
+ }
+ public function setCanDelete($canDelete)
+ {
+ $this->canDelete = $canDelete;
+ }
+ public function getCanDelete()
+ {
+ return $this->canDelete;
+ }
+ public function setCanDownload($canDownload)
+ {
+ $this->canDownload = $canDownload;
+ }
+ public function getCanDownload()
+ {
+ return $this->canDownload;
+ }
+ public function setCanEdit($canEdit)
+ {
+ $this->canEdit = $canEdit;
+ }
+ public function getCanEdit()
+ {
+ return $this->canEdit;
+ }
+ public function setCanListChildren($canListChildren)
+ {
+ $this->canListChildren = $canListChildren;
+ }
+ public function getCanListChildren()
+ {
+ return $this->canListChildren;
+ }
+ public function setCanMoveItemIntoTeamDrive($canMoveItemIntoTeamDrive)
+ {
+ $this->canMoveItemIntoTeamDrive = $canMoveItemIntoTeamDrive;
+ }
+ public function getCanMoveItemIntoTeamDrive()
+ {
+ return $this->canMoveItemIntoTeamDrive;
+ }
+ public function setCanMoveTeamDriveItem($canMoveTeamDriveItem)
+ {
+ $this->canMoveTeamDriveItem = $canMoveTeamDriveItem;
+ }
+ public function getCanMoveTeamDriveItem()
+ {
+ return $this->canMoveTeamDriveItem;
+ }
+ public function setCanReadRevisions($canReadRevisions)
+ {
+ $this->canReadRevisions = $canReadRevisions;
+ }
+ public function getCanReadRevisions()
+ {
+ return $this->canReadRevisions;
+ }
+ public function setCanReadTeamDrive($canReadTeamDrive)
+ {
+ $this->canReadTeamDrive = $canReadTeamDrive;
+ }
+ public function getCanReadTeamDrive()
+ {
+ return $this->canReadTeamDrive;
+ }
+ public function setCanRemoveChildren($canRemoveChildren)
+ {
+ $this->canRemoveChildren = $canRemoveChildren;
+ }
+ public function getCanRemoveChildren()
+ {
+ return $this->canRemoveChildren;
+ }
+ public function setCanRename($canRename)
+ {
+ $this->canRename = $canRename;
+ }
+ public function getCanRename()
+ {
+ return $this->canRename;
+ }
+ public function setCanShare($canShare)
+ {
+ $this->canShare = $canShare;
+ }
+ public function getCanShare()
+ {
+ return $this->canShare;
+ }
+ public function setCanTrash($canTrash)
+ {
+ $this->canTrash = $canTrash;
+ }
+ public function getCanTrash()
+ {
+ return $this->canTrash;
+ }
+ public function setCanUntrash($canUntrash)
+ {
+ $this->canUntrash = $canUntrash;
+ }
+ public function getCanUntrash()
+ {
+ return $this->canUntrash;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHints.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHints.php
new file mode 100644
index 00000000..ea263125
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHints.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_DriveFileContentHints extends Google_Model
+{
+ public $indexableText;
+ protected $thumbnailType = 'Google_Service_Drive_DriveFileContentHintsThumbnail';
+ protected $thumbnailDataType = '';
+
+ public function setIndexableText($indexableText)
+ {
+ $this->indexableText = $indexableText;
+ }
+ public function getIndexableText()
+ {
+ return $this->indexableText;
+ }
+ public function setThumbnail(Google_Service_Drive_DriveFileContentHintsThumbnail $thumbnail)
+ {
+ $this->thumbnail = $thumbnail;
+ }
+ public function getThumbnail()
+ {
+ return $this->thumbnail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHintsThumbnail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHintsThumbnail.php
new file mode 100644
index 00000000..7594db55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileContentHintsThumbnail.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_DriveFileContentHintsThumbnail extends Google_Model
+{
+ public $image;
+ public $mimeType;
+
+ public function setImage($image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadata.php
new file mode 100644
index 00000000..560aa7f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadata.php
@@ -0,0 +1,211 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_DriveFileImageMediaMetadata extends Google_Model
+{
+ public $aperture;
+ public $cameraMake;
+ public $cameraModel;
+ public $colorSpace;
+ public $exposureBias;
+ public $exposureMode;
+ public $exposureTime;
+ public $flashUsed;
+ public $focalLength;
+ public $height;
+ public $isoSpeed;
+ public $lens;
+ protected $locationType = 'Google_Service_Drive_DriveFileImageMediaMetadataLocation';
+ protected $locationDataType = '';
+ public $maxApertureValue;
+ public $meteringMode;
+ public $rotation;
+ public $sensor;
+ public $subjectDistance;
+ public $time;
+ public $whiteBalance;
+ public $width;
+
+ public function setAperture($aperture)
+ {
+ $this->aperture = $aperture;
+ }
+ public function getAperture()
+ {
+ return $this->aperture;
+ }
+ public function setCameraMake($cameraMake)
+ {
+ $this->cameraMake = $cameraMake;
+ }
+ public function getCameraMake()
+ {
+ return $this->cameraMake;
+ }
+ public function setCameraModel($cameraModel)
+ {
+ $this->cameraModel = $cameraModel;
+ }
+ public function getCameraModel()
+ {
+ return $this->cameraModel;
+ }
+ public function setColorSpace($colorSpace)
+ {
+ $this->colorSpace = $colorSpace;
+ }
+ public function getColorSpace()
+ {
+ return $this->colorSpace;
+ }
+ public function setExposureBias($exposureBias)
+ {
+ $this->exposureBias = $exposureBias;
+ }
+ public function getExposureBias()
+ {
+ return $this->exposureBias;
+ }
+ public function setExposureMode($exposureMode)
+ {
+ $this->exposureMode = $exposureMode;
+ }
+ public function getExposureMode()
+ {
+ return $this->exposureMode;
+ }
+ public function setExposureTime($exposureTime)
+ {
+ $this->exposureTime = $exposureTime;
+ }
+ public function getExposureTime()
+ {
+ return $this->exposureTime;
+ }
+ public function setFlashUsed($flashUsed)
+ {
+ $this->flashUsed = $flashUsed;
+ }
+ public function getFlashUsed()
+ {
+ return $this->flashUsed;
+ }
+ public function setFocalLength($focalLength)
+ {
+ $this->focalLength = $focalLength;
+ }
+ public function getFocalLength()
+ {
+ return $this->focalLength;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setIsoSpeed($isoSpeed)
+ {
+ $this->isoSpeed = $isoSpeed;
+ }
+ public function getIsoSpeed()
+ {
+ return $this->isoSpeed;
+ }
+ public function setLens($lens)
+ {
+ $this->lens = $lens;
+ }
+ public function getLens()
+ {
+ return $this->lens;
+ }
+ public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMaxApertureValue($maxApertureValue)
+ {
+ $this->maxApertureValue = $maxApertureValue;
+ }
+ public function getMaxApertureValue()
+ {
+ return $this->maxApertureValue;
+ }
+ public function setMeteringMode($meteringMode)
+ {
+ $this->meteringMode = $meteringMode;
+ }
+ public function getMeteringMode()
+ {
+ return $this->meteringMode;
+ }
+ public function setRotation($rotation)
+ {
+ $this->rotation = $rotation;
+ }
+ public function getRotation()
+ {
+ return $this->rotation;
+ }
+ public function setSensor($sensor)
+ {
+ $this->sensor = $sensor;
+ }
+ public function getSensor()
+ {
+ return $this->sensor;
+ }
+ public function setSubjectDistance($subjectDistance)
+ {
+ $this->subjectDistance = $subjectDistance;
+ }
+ public function getSubjectDistance()
+ {
+ return $this->subjectDistance;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+ public function setWhiteBalance($whiteBalance)
+ {
+ $this->whiteBalance = $whiteBalance;
+ }
+ public function getWhiteBalance()
+ {
+ return $this->whiteBalance;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadataLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadataLocation.php
new file mode 100644
index 00000000..7de118a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileImageMediaMetadataLocation.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_DriveFileImageMediaMetadataLocation extends Google_Model
+{
+ public $altitude;
+ public $latitude;
+ public $longitude;
+
+ public function setAltitude($altitude)
+ {
+ $this->altitude = $altitude;
+ }
+ public function getAltitude()
+ {
+ return $this->altitude;
+ }
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileVideoMediaMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileVideoMediaMetadata.php
new file mode 100644
index 00000000..97cd5114
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/DriveFileVideoMediaMetadata.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_DriveFileVideoMediaMetadata extends Google_Model
+{
+ public $durationMillis;
+ public $height;
+ public $width;
+
+ public function setDurationMillis($durationMillis)
+ {
+ $this->durationMillis = $durationMillis;
+ }
+ public function getDurationMillis()
+ {
+ return $this->durationMillis;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/FileList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/FileList.php
new file mode 100644
index 00000000..ba18998c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/FileList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_FileList extends Google_Collection
+{
+ protected $collection_key = 'files';
+ protected $filesType = 'Google_Service_Drive_DriveFile';
+ protected $filesDataType = 'array';
+ public $incompleteSearch;
+ public $kind;
+ public $nextPageToken;
+
+ public function setFiles($files)
+ {
+ $this->files = $files;
+ }
+ public function getFiles()
+ {
+ return $this->files;
+ }
+ public function setIncompleteSearch($incompleteSearch)
+ {
+ $this->incompleteSearch = $incompleteSearch;
+ }
+ public function getIncompleteSearch()
+ {
+ return $this->incompleteSearch;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/GeneratedIds.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/GeneratedIds.php
new file mode 100644
index 00000000..b27fc330
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/GeneratedIds.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_GeneratedIds extends Google_Collection
+{
+ protected $collection_key = 'ids';
+ public $ids;
+ public $kind;
+ public $space;
+
+ public function setIds($ids)
+ {
+ $this->ids = $ids;
+ }
+ public function getIds()
+ {
+ return $this->ids;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSpace($space)
+ {
+ $this->space = $space;
+ }
+ public function getSpace()
+ {
+ return $this->space;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Permission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Permission.php
new file mode 100644
index 00000000..58e1e0b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Permission.php
@@ -0,0 +1,122 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_Permission extends Google_Collection
+{
+ protected $collection_key = 'teamDrivePermissionDetails';
+ public $allowFileDiscovery;
+ public $displayName;
+ public $domain;
+ public $emailAddress;
+ public $expirationTime;
+ public $id;
+ public $kind;
+ public $photoLink;
+ public $role;
+ protected $teamDrivePermissionDetailsType = 'Google_Service_Drive_PermissionTeamDrivePermissionDetails';
+ protected $teamDrivePermissionDetailsDataType = 'array';
+ public $type;
+
+ public function setAllowFileDiscovery($allowFileDiscovery)
+ {
+ $this->allowFileDiscovery = $allowFileDiscovery;
+ }
+ public function getAllowFileDiscovery()
+ {
+ return $this->allowFileDiscovery;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPhotoLink($photoLink)
+ {
+ $this->photoLink = $photoLink;
+ }
+ public function getPhotoLink()
+ {
+ return $this->photoLink;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setTeamDrivePermissionDetails($teamDrivePermissionDetails)
+ {
+ $this->teamDrivePermissionDetails = $teamDrivePermissionDetails;
+ }
+ public function getTeamDrivePermissionDetails()
+ {
+ return $this->teamDrivePermissionDetails;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionList.php
new file mode 100644
index 00000000..a269f764
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_PermissionList extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $kind;
+ public $nextPageToken;
+ protected $permissionsType = 'Google_Service_Drive_Permission';
+ protected $permissionsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionTeamDrivePermissionDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionTeamDrivePermissionDetails.php
new file mode 100644
index 00000000..e7430d53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/PermissionTeamDrivePermissionDetails.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_PermissionTeamDrivePermissionDetails extends Google_Model
+{
+ public $inherited;
+ public $inheritedFrom;
+ public $role;
+ public $teamDrivePermissionType;
+
+ public function setInherited($inherited)
+ {
+ $this->inherited = $inherited;
+ }
+ public function getInherited()
+ {
+ return $this->inherited;
+ }
+ public function setInheritedFrom($inheritedFrom)
+ {
+ $this->inheritedFrom = $inheritedFrom;
+ }
+ public function getInheritedFrom()
+ {
+ return $this->inheritedFrom;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setTeamDrivePermissionType($teamDrivePermissionType)
+ {
+ $this->teamDrivePermissionType = $teamDrivePermissionType;
+ }
+ public function getTeamDrivePermissionType()
+ {
+ return $this->teamDrivePermissionType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Reply.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Reply.php
new file mode 100644
index 00000000..a8102157
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Reply.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_Reply extends Google_Model
+{
+ public $action;
+ protected $authorType = 'Google_Service_Drive_User';
+ protected $authorDataType = '';
+ public $content;
+ public $createdTime;
+ public $deleted;
+ public $htmlContent;
+ public $id;
+ public $kind;
+ public $modifiedTime;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setAuthor(Google_Service_Drive_User $author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setCreatedTime($createdTime)
+ {
+ $this->createdTime = $createdTime;
+ }
+ public function getCreatedTime()
+ {
+ return $this->createdTime;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setHtmlContent($htmlContent)
+ {
+ $this->htmlContent = $htmlContent;
+ }
+ public function getHtmlContent()
+ {
+ return $this->htmlContent;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setModifiedTime($modifiedTime)
+ {
+ $this->modifiedTime = $modifiedTime;
+ }
+ public function getModifiedTime()
+ {
+ return $this->modifiedTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ReplyList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ReplyList.php
new file mode 100644
index 00000000..a68fdbcc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/ReplyList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_ReplyList extends Google_Collection
+{
+ protected $collection_key = 'replies';
+ public $kind;
+ public $nextPageToken;
+ protected $repliesType = 'Google_Service_Drive_Reply';
+ protected $repliesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setReplies($replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/About.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/About.php
new file mode 100644
index 00000000..67bf18a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/About.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "about" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $about = $driveService->about;
+ * </code>
+ */
+class Google_Service_Drive_Resource_About extends Google_Service_Resource
+{
+ /**
+ * Gets information about the user, the user's Drive, and system capabilities.
+ * (about.get)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_About
+ */
+ public function get($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Drive_About");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Changes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Changes.php
new file mode 100644
index 00000000..cfdcf8c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Changes.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "changes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $changes = $driveService->changes;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Changes extends Google_Service_Resource
+{
+ /**
+ * Gets the starting pageToken for listing future changes.
+ * (changes.getStartPageToken)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param string teamDriveId The ID of the Team Drive for which the starting
+ * pageToken for listing future changes from that Team Drive will be returned.
+ * @return Google_Service_Drive_StartPageToken
+ */
+ public function getStartPageToken($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getStartPageToken', array($params), "Google_Service_Drive_StartPageToken");
+ }
+ /**
+ * Lists the changes for a user or Team Drive. (changes.listChanges)
+ *
+ * @param string $pageToken The token for continuing a previous list request on
+ * the next page. This should be set to the value of 'nextPageToken' from the
+ * previous response or to the response from the getStartPageToken method.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeCorpusRemovals Whether changes should include the file
+ * resource if the file is still accessible by the user at the time of the
+ * request, even when a file was removed from the list of changes and there will
+ * be no further change entries for this file.
+ * @opt_param bool includeRemoved Whether to include changes indicating that
+ * items have been removed from the list of changes, for example by deletion or
+ * loss of access.
+ * @opt_param bool includeTeamDriveItems Whether Team Drive files or changes
+ * should be included in results.
+ * @opt_param int pageSize The maximum number of changes to return per page.
+ * @opt_param bool restrictToMyDrive Whether to restrict the results to changes
+ * inside the My Drive hierarchy. This omits changes to files such as those in
+ * the Application Data folder or shared files which have not been added to My
+ * Drive.
+ * @opt_param string spaces A comma-separated list of spaces to query within the
+ * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param string teamDriveId The Team Drive from which changes will be
+ * returned. If specified the change IDs will be reflective of the Team Drive;
+ * use the combined Team Drive ID and change ID as an identifier.
+ * @return Google_Service_Drive_ChangeList
+ */
+ public function listChanges($pageToken, $optParams = array())
+ {
+ $params = array('pageToken' => $pageToken);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Drive_ChangeList");
+ }
+ /**
+ * Subscribes to changes for a user. (changes.watch)
+ *
+ * @param string $pageToken The token for continuing a previous list request on
+ * the next page. This should be set to the value of 'nextPageToken' from the
+ * previous response or to the response from the getStartPageToken method.
+ * @param Google_Service_Drive_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeCorpusRemovals Whether changes should include the file
+ * resource if the file is still accessible by the user at the time of the
+ * request, even when a file was removed from the list of changes and there will
+ * be no further change entries for this file.
+ * @opt_param bool includeRemoved Whether to include changes indicating that
+ * items have been removed from the list of changes, for example by deletion or
+ * loss of access.
+ * @opt_param bool includeTeamDriveItems Whether Team Drive files or changes
+ * should be included in results.
+ * @opt_param int pageSize The maximum number of changes to return per page.
+ * @opt_param bool restrictToMyDrive Whether to restrict the results to changes
+ * inside the My Drive hierarchy. This omits changes to files such as those in
+ * the Application Data folder or shared files which have not been added to My
+ * Drive.
+ * @opt_param string spaces A comma-separated list of spaces to query within the
+ * user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param string teamDriveId The Team Drive from which changes will be
+ * returned. If specified the change IDs will be reflective of the Team Drive;
+ * use the combined Team Drive ID and change ID as an identifier.
+ * @return Google_Service_Drive_Channel
+ */
+ public function watch($pageToken, Google_Service_Drive_Channel $postBody, $optParams = array())
+ {
+ $params = array('pageToken' => $pageToken, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Drive_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Channels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Channels.php
new file mode 100644
index 00000000..39f9eda9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Channels.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $channels = $driveService->channels;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Channels extends Google_Service_Resource
+{
+ /**
+ * Stop watching resources through this channel (channels.stop)
+ *
+ * @param Google_Service_Drive_Channel $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function stop(Google_Service_Drive_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Comments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Comments.php
new file mode 100644
index 00000000..2a09affd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Comments.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $comments = $driveService->comments;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Comments extends Google_Service_Resource
+{
+ /**
+ * Creates a new comment on a file. (comments.create)
+ *
+ * @param string $fileId The ID of the file.
+ * @param Google_Service_Drive_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_Comment
+ */
+ public function create($fileId, Google_Service_Drive_Comment $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Drive_Comment");
+ }
+ /**
+ * Deletes a comment. (comments.delete)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($fileId, $commentId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a comment by ID. (comments.get)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeDeleted Whether to return deleted comments. Deleted
+ * comments will not include their original content.
+ * @return Google_Service_Drive_Comment
+ */
+ public function get($fileId, $commentId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Drive_Comment");
+ }
+ /**
+ * Lists a file's comments. (comments.listComments)
+ *
+ * @param string $fileId The ID of the file.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeDeleted Whether to include deleted comments. Deleted
+ * comments will not include their original content.
+ * @opt_param int pageSize The maximum number of comments to return per page.
+ * @opt_param string pageToken The token for continuing a previous list request
+ * on the next page. This should be set to the value of 'nextPageToken' from the
+ * previous response.
+ * @opt_param string startModifiedTime The minimum value of 'modifiedTime' for
+ * the result comments (RFC 3339 date-time).
+ * @return Google_Service_Drive_CommentList
+ */
+ public function listComments($fileId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Drive_CommentList");
+ }
+ /**
+ * Updates a comment with patch semantics. (comments.update)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param Google_Service_Drive_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_Comment
+ */
+ public function update($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Drive_Comment");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Files.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Files.php
new file mode 100644
index 00000000..e8180228
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Files.php
@@ -0,0 +1,251 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "files" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $files = $driveService->files;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Files extends Google_Service_Resource
+{
+ /**
+ * Creates a copy of a file and applies any requested updates with patch
+ * semantics. (files.copy)
+ *
+ * @param string $fileId The ID of the file.
+ * @param Google_Service_Drive_DriveFile $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
+ * default visibility settings for the created file. Domain administrators can
+ * choose to make all uploaded files visible to the domain by default; this
+ * parameter bypasses that behavior for the request. Permissions are still
+ * inherited from parent folders.
+ * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
+ * the new head revision. This is only applicable to files with binary content
+ * in Drive.
+ * @opt_param string ocrLanguage A language hint for OCR processing during image
+ * import (ISO 639-1 code).
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @return Google_Service_Drive_DriveFile
+ */
+ public function copy($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('copy', array($params), "Google_Service_Drive_DriveFile");
+ }
+ /**
+ * Creates a new file. (files.create)
+ *
+ * @param Google_Service_Drive_DriveFile $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreDefaultVisibility Whether to ignore the domain's
+ * default visibility settings for the created file. Domain administrators can
+ * choose to make all uploaded files visible to the domain by default; this
+ * parameter bypasses that behavior for the request. Permissions are still
+ * inherited from parent folders.
+ * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
+ * the new head revision. This is only applicable to files with binary content
+ * in Drive.
+ * @opt_param string ocrLanguage A language hint for OCR processing during image
+ * import (ISO 639-1 code).
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param bool useContentAsIndexableText Whether to use the uploaded content
+ * as indexable text.
+ * @return Google_Service_Drive_DriveFile
+ */
+ public function create(Google_Service_Drive_DriveFile $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Drive_DriveFile");
+ }
+ /**
+ * Permanently deletes a file owned by the user without moving it to the trash.
+ * If the file belongs to a Team Drive the user must be an organizer on the
+ * parent. If the target is a folder, all descendants owned by the user are also
+ * deleted. (files.delete)
+ *
+ * @param string $fileId The ID of the file.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ */
+ public function delete($fileId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Permanently deletes all of the user's trashed files. (files.emptyTrash)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function emptyTrash($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('emptyTrash', array($params));
+ }
+ /**
+ * Exports a Google Doc to the requested MIME type and returns the exported
+ * content. (files.export)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $mimeType The MIME type of the format requested for this
+ * export.
+ * @param array $optParams Optional parameters.
+ */
+ public function export($fileId, $mimeType, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'mimeType' => $mimeType);
+ $params = array_merge($params, $optParams);
+ return $this->call('export', array($params));
+ }
+ /**
+ * Generates a set of file IDs which can be provided in create requests.
+ * (files.generateIds)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int count The number of IDs to return.
+ * @opt_param string space The space in which the IDs can be used to create new
+ * files. Supported values are 'drive' and 'appDataFolder'.
+ * @return Google_Service_Drive_GeneratedIds
+ */
+ public function generateIds($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds");
+ }
+ /**
+ * Gets a file's metadata or content by ID. (files.get)
+ *
+ * @param string $fileId The ID of the file.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
+ * of downloading known malware or other abusive files. This is only applicable
+ * when alt=media.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @return Google_Service_Drive_DriveFile
+ */
+ public function get($fileId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Drive_DriveFile");
+ }
+ /**
+ * Lists or searches files. (files.listFiles)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string corpora Comma-separated list of bodies of items
+ * (files/documents) to which the query applies. Supported bodies are 'user',
+ * 'domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined
+ * with 'user'; all other values must be used in isolation. Prefer 'user' or
+ * 'teamDrive' to 'allTeamDrives' for efficiency.
+ * @opt_param string corpus The source of files to list. Deprecated: use
+ * 'corpora' instead.
+ * @opt_param bool includeTeamDriveItems Whether Team Drive items should be
+ * included in results.
+ * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are
+ * 'createdTime', 'folder', 'modifiedByMeTime', 'modifiedTime', 'name',
+ * 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and
+ * 'viewedByMeTime'. Each key sorts ascending by default, but may be reversed
+ * with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedTime
+ * desc,name. Please note that there is a current limitation for users with
+ * approximately one million files in which the requested sort order is ignored.
+ * @opt_param int pageSize The maximum number of files to return per page.
+ * @opt_param string pageToken The token for continuing a previous list request
+ * on the next page. This should be set to the value of 'nextPageToken' from the
+ * previous response.
+ * @opt_param string q A query for filtering the file results. See the "Search
+ * for Files" guide for supported syntax.
+ * @opt_param string spaces A comma-separated list of spaces to query within the
+ * corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param string teamDriveId ID of Team Drive to search.
+ * @return Google_Service_Drive_FileList
+ */
+ public function listFiles($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Drive_FileList");
+ }
+ /**
+ * Updates a file's metadata and/or content with patch semantics. (files.update)
+ *
+ * @param string $fileId The ID of the file.
+ * @param Google_Service_Drive_DriveFile $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string addParents A comma-separated list of parent IDs to add.
+ * @opt_param bool keepRevisionForever Whether to set the 'keepForever' field in
+ * the new head revision. This is only applicable to files with binary content
+ * in Drive.
+ * @opt_param string ocrLanguage A language hint for OCR processing during image
+ * import (ISO 639-1 code).
+ * @opt_param string removeParents A comma-separated list of parent IDs to
+ * remove.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param bool useContentAsIndexableText Whether to use the uploaded content
+ * as indexable text.
+ * @return Google_Service_Drive_DriveFile
+ */
+ public function update($fileId, Google_Service_Drive_DriveFile $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Drive_DriveFile");
+ }
+ /**
+ * Subscribes to changes to a file (files.watch)
+ *
+ * @param string $fileId The ID of the file.
+ * @param Google_Service_Drive_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
+ * of downloading known malware or other abusive files. This is only applicable
+ * when alt=media.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @return Google_Service_Drive_Channel
+ */
+ public function watch($fileId, Google_Service_Drive_Channel $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Drive_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php
new file mode 100644
index 00000000..76462ba2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Permissions.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "permissions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $permissions = $driveService->permissions;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Permissions extends Google_Service_Resource
+{
+ /**
+ * Creates a permission for a file or Team Drive. (permissions.create)
+ *
+ * @param string $fileId The ID of the file or Team Drive.
+ * @param Google_Service_Drive_Permission $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string emailMessage A custom message to include in the
+ * notification email.
+ * @opt_param bool sendNotificationEmail Whether to send a notification email
+ * when sharing to users or groups. This defaults to true for users and groups,
+ * and is not allowed for other requests. It must not be disabled for ownership
+ * transfers.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param bool transferOwnership Whether to transfer ownership to the
+ * specified user and downgrade the current owner to a writer. This parameter is
+ * required as an acknowledgement of the side effect.
+ * @return Google_Service_Drive_Permission
+ */
+ public function create($fileId, Google_Service_Drive_Permission $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Drive_Permission");
+ }
+ /**
+ * Deletes a permission. (permissions.delete)
+ *
+ * @param string $fileId The ID of the file or Team Drive.
+ * @param string $permissionId The ID of the permission.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ */
+ public function delete($fileId, $permissionId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a permission by ID. (permissions.get)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $permissionId The ID of the permission.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @return Google_Service_Drive_Permission
+ */
+ public function get($fileId, $permissionId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Drive_Permission");
+ }
+ /**
+ * Lists a file's or Team Drive's permissions. (permissions.listPermissions)
+ *
+ * @param string $fileId The ID of the file or Team Drive.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The maximum number of permissions to return per page.
+ * When not set for files in a Team Drive, at most 100 results will be returned.
+ * When not set for files that are not in a Team Drive, the entire list will be
+ * returned.
+ * @opt_param string pageToken The token for continuing a previous list request
+ * on the next page. This should be set to the value of 'nextPageToken' from the
+ * previous response.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @return Google_Service_Drive_PermissionList
+ */
+ public function listPermissions($fileId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Drive_PermissionList");
+ }
+ /**
+ * Updates a permission with patch semantics. (permissions.update)
+ *
+ * @param string $fileId The ID of the file or Team Drive.
+ * @param string $permissionId The ID of the permission.
+ * @param Google_Service_Drive_Permission $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool removeExpiration Whether to remove the expiration date.
+ * @opt_param bool supportsTeamDrives Whether the requesting application
+ * supports Team Drives.
+ * @opt_param bool transferOwnership Whether to transfer ownership to the
+ * specified user and downgrade the current owner to a writer. This parameter is
+ * required as an acknowledgement of the side effect.
+ * @return Google_Service_Drive_Permission
+ */
+ public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Drive_Permission");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Replies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Replies.php
new file mode 100644
index 00000000..3db6854a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Replies.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "replies" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $replies = $driveService->replies;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Replies extends Google_Service_Resource
+{
+ /**
+ * Creates a new reply to a comment. (replies.create)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param Google_Service_Drive_Reply $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_Reply
+ */
+ public function create($fileId, $commentId, Google_Service_Drive_Reply $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Drive_Reply");
+ }
+ /**
+ * Deletes a reply. (replies.delete)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param string $replyId The ID of the reply.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($fileId, $commentId, $replyId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a reply by ID. (replies.get)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param string $replyId The ID of the reply.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeDeleted Whether to return deleted replies. Deleted
+ * replies will not include their original content.
+ * @return Google_Service_Drive_Reply
+ */
+ public function get($fileId, $commentId, $replyId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Drive_Reply");
+ }
+ /**
+ * Lists a comment's replies. (replies.listReplies)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeDeleted Whether to include deleted replies. Deleted
+ * replies will not include their original content.
+ * @opt_param int pageSize The maximum number of replies to return per page.
+ * @opt_param string pageToken The token for continuing a previous list request
+ * on the next page. This should be set to the value of 'nextPageToken' from the
+ * previous response.
+ * @return Google_Service_Drive_ReplyList
+ */
+ public function listReplies($fileId, $commentId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Drive_ReplyList");
+ }
+ /**
+ * Updates a reply with patch semantics. (replies.update)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param string $replyId The ID of the reply.
+ * @param Google_Service_Drive_Reply $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_Reply
+ */
+ public function update($fileId, $commentId, $replyId, Google_Service_Drive_Reply $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Drive_Reply");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Revisions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Revisions.php
new file mode 100644
index 00000000..78278396
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Revisions.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "revisions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $revisions = $driveService->revisions;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Revisions extends Google_Service_Resource
+{
+ /**
+ * Permanently deletes a revision. This method is only applicable to files with
+ * binary content in Drive. (revisions.delete)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $revisionId The ID of the revision.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($fileId, $revisionId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a revision's metadata or content by ID. (revisions.get)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $revisionId The ID of the revision.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool acknowledgeAbuse Whether the user is acknowledging the risk
+ * of downloading known malware or other abusive files. This is only applicable
+ * when alt=media.
+ * @return Google_Service_Drive_Revision
+ */
+ public function get($fileId, $revisionId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Drive_Revision");
+ }
+ /**
+ * Lists a file's revisions. (revisions.listRevisions)
+ *
+ * @param string $fileId The ID of the file.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The maximum number of revisions to return per page.
+ * @opt_param string pageToken The token for continuing a previous list request
+ * on the next page. This should be set to the value of 'nextPageToken' from the
+ * previous response.
+ * @return Google_Service_Drive_RevisionList
+ */
+ public function listRevisions($fileId, $optParams = array())
+ {
+ $params = array('fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Drive_RevisionList");
+ }
+ /**
+ * Updates a revision with patch semantics. (revisions.update)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $revisionId The ID of the revision.
+ * @param Google_Service_Drive_Revision $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_Revision
+ */
+ public function update($fileId, $revisionId, Google_Service_Drive_Revision $postBody, $optParams = array())
+ {
+ $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Drive_Revision");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php
new file mode 100644
index 00000000..847ef4cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Resource/Teamdrives.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "teamdrives" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $driveService = new Google_Service_Drive(...);
+ * $teamdrives = $driveService->teamdrives;
+ * </code>
+ */
+class Google_Service_Drive_Resource_Teamdrives extends Google_Service_Resource
+{
+ /**
+ * Creates a new Team Drive. (teamdrives.create)
+ *
+ * @param string $requestId An ID, such as a random UUID, which uniquely
+ * identifies this user's request for idempotent creation of a Team Drive. A
+ * repeated request by the same user and with the same request ID will avoid
+ * creating duplicates by attempting to create the same Team Drive. If the Team
+ * Drive already exists a 409 error will be returned.
+ * @param Google_Service_Drive_TeamDrive $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_TeamDrive
+ */
+ public function create($requestId, Google_Service_Drive_TeamDrive $postBody, $optParams = array())
+ {
+ $params = array('requestId' => $requestId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Drive_TeamDrive");
+ }
+ /**
+ * Permanently deletes a Team Drive for which the user is an organizer. The Team
+ * Drive cannot contain any untrashed items. (teamdrives.delete)
+ *
+ * @param string $teamDriveId The ID of the Team Drive
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($teamDriveId, $optParams = array())
+ {
+ $params = array('teamDriveId' => $teamDriveId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a Team Drive's metadata by ID. (teamdrives.get)
+ *
+ * @param string $teamDriveId The ID of the Team Drive
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_TeamDrive
+ */
+ public function get($teamDriveId, $optParams = array())
+ {
+ $params = array('teamDriveId' => $teamDriveId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Drive_TeamDrive");
+ }
+ /**
+ * Lists the user's Team Drives. (teamdrives.listTeamdrives)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum number of Team Drives to return.
+ * @opt_param string pageToken Page token for Team Drives.
+ * @return Google_Service_Drive_TeamDriveList
+ */
+ public function listTeamdrives($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Drive_TeamDriveList");
+ }
+ /**
+ * Updates a Team Drive's metadata (teamdrives.update)
+ *
+ * @param string $teamDriveId The ID of the Team Drive
+ * @param Google_Service_Drive_TeamDrive $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_TeamDrive
+ */
+ public function update($teamDriveId, Google_Service_Drive_TeamDrive $postBody, $optParams = array())
+ {
+ $params = array('teamDriveId' => $teamDriveId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Drive_TeamDrive");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Revision.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Revision.php
new file mode 100644
index 00000000..c783e621
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/Revision.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_Revision extends Google_Model
+{
+ public $id;
+ public $keepForever;
+ public $kind;
+ protected $lastModifyingUserType = 'Google_Service_Drive_User';
+ protected $lastModifyingUserDataType = '';
+ public $md5Checksum;
+ public $mimeType;
+ public $modifiedTime;
+ public $originalFilename;
+ public $publishAuto;
+ public $published;
+ public $publishedOutsideDomain;
+ public $size;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKeepForever($keepForever)
+ {
+ $this->keepForever = $keepForever;
+ }
+ public function getKeepForever()
+ {
+ return $this->keepForever;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifyingUser(Google_Service_Drive_User $lastModifyingUser)
+ {
+ $this->lastModifyingUser = $lastModifyingUser;
+ }
+ public function getLastModifyingUser()
+ {
+ return $this->lastModifyingUser;
+ }
+ public function setMd5Checksum($md5Checksum)
+ {
+ $this->md5Checksum = $md5Checksum;
+ }
+ public function getMd5Checksum()
+ {
+ return $this->md5Checksum;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setModifiedTime($modifiedTime)
+ {
+ $this->modifiedTime = $modifiedTime;
+ }
+ public function getModifiedTime()
+ {
+ return $this->modifiedTime;
+ }
+ public function setOriginalFilename($originalFilename)
+ {
+ $this->originalFilename = $originalFilename;
+ }
+ public function getOriginalFilename()
+ {
+ return $this->originalFilename;
+ }
+ public function setPublishAuto($publishAuto)
+ {
+ $this->publishAuto = $publishAuto;
+ }
+ public function getPublishAuto()
+ {
+ return $this->publishAuto;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setPublishedOutsideDomain($publishedOutsideDomain)
+ {
+ $this->publishedOutsideDomain = $publishedOutsideDomain;
+ }
+ public function getPublishedOutsideDomain()
+ {
+ return $this->publishedOutsideDomain;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/RevisionList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/RevisionList.php
new file mode 100644
index 00000000..973ea951
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/RevisionList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_RevisionList extends Google_Collection
+{
+ protected $collection_key = 'revisions';
+ public $kind;
+ public $nextPageToken;
+ protected $revisionsType = 'Google_Service_Drive_Revision';
+ protected $revisionsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setRevisions($revisions)
+ {
+ $this->revisions = $revisions;
+ }
+ public function getRevisions()
+ {
+ return $this->revisions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/StartPageToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/StartPageToken.php
new file mode 100644
index 00000000..cd2615ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/StartPageToken.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_StartPageToken extends Google_Model
+{
+ public $kind;
+ public $startPageToken;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStartPageToken($startPageToken)
+ {
+ $this->startPageToken = $startPageToken;
+ }
+ public function getStartPageToken()
+ {
+ return $this->startPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php
new file mode 100644
index 00000000..716a74fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDrive.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_TeamDrive extends Google_Model
+{
+ protected $capabilitiesType = 'Google_Service_Drive_TeamDriveCapabilities';
+ protected $capabilitiesDataType = '';
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setCapabilities(Google_Service_Drive_TeamDriveCapabilities $capabilities)
+ {
+ $this->capabilities = $capabilities;
+ }
+ public function getCapabilities()
+ {
+ return $this->capabilities;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php
new file mode 100644
index 00000000..69913d97
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveCapabilities.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_TeamDriveCapabilities extends Google_Model
+{
+ public $canAddChildren;
+ public $canComment;
+ public $canCopy;
+ public $canDeleteTeamDrive;
+ public $canDownload;
+ public $canEdit;
+ public $canListChildren;
+ public $canManageMembers;
+ public $canReadRevisions;
+ public $canRemoveChildren;
+ public $canRename;
+ public $canRenameTeamDrive;
+ public $canShare;
+
+ public function setCanAddChildren($canAddChildren)
+ {
+ $this->canAddChildren = $canAddChildren;
+ }
+ public function getCanAddChildren()
+ {
+ return $this->canAddChildren;
+ }
+ public function setCanComment($canComment)
+ {
+ $this->canComment = $canComment;
+ }
+ public function getCanComment()
+ {
+ return $this->canComment;
+ }
+ public function setCanCopy($canCopy)
+ {
+ $this->canCopy = $canCopy;
+ }
+ public function getCanCopy()
+ {
+ return $this->canCopy;
+ }
+ public function setCanDeleteTeamDrive($canDeleteTeamDrive)
+ {
+ $this->canDeleteTeamDrive = $canDeleteTeamDrive;
+ }
+ public function getCanDeleteTeamDrive()
+ {
+ return $this->canDeleteTeamDrive;
+ }
+ public function setCanDownload($canDownload)
+ {
+ $this->canDownload = $canDownload;
+ }
+ public function getCanDownload()
+ {
+ return $this->canDownload;
+ }
+ public function setCanEdit($canEdit)
+ {
+ $this->canEdit = $canEdit;
+ }
+ public function getCanEdit()
+ {
+ return $this->canEdit;
+ }
+ public function setCanListChildren($canListChildren)
+ {
+ $this->canListChildren = $canListChildren;
+ }
+ public function getCanListChildren()
+ {
+ return $this->canListChildren;
+ }
+ public function setCanManageMembers($canManageMembers)
+ {
+ $this->canManageMembers = $canManageMembers;
+ }
+ public function getCanManageMembers()
+ {
+ return $this->canManageMembers;
+ }
+ public function setCanReadRevisions($canReadRevisions)
+ {
+ $this->canReadRevisions = $canReadRevisions;
+ }
+ public function getCanReadRevisions()
+ {
+ return $this->canReadRevisions;
+ }
+ public function setCanRemoveChildren($canRemoveChildren)
+ {
+ $this->canRemoveChildren = $canRemoveChildren;
+ }
+ public function getCanRemoveChildren()
+ {
+ return $this->canRemoveChildren;
+ }
+ public function setCanRename($canRename)
+ {
+ $this->canRename = $canRename;
+ }
+ public function getCanRename()
+ {
+ return $this->canRename;
+ }
+ public function setCanRenameTeamDrive($canRenameTeamDrive)
+ {
+ $this->canRenameTeamDrive = $canRenameTeamDrive;
+ }
+ public function getCanRenameTeamDrive()
+ {
+ return $this->canRenameTeamDrive;
+ }
+ public function setCanShare($canShare)
+ {
+ $this->canShare = $canShare;
+ }
+ public function getCanShare()
+ {
+ return $this->canShare;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveList.php
new file mode 100644
index 00000000..a64ba690
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/TeamDriveList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_TeamDriveList extends Google_Collection
+{
+ protected $collection_key = 'teamDrives';
+ public $kind;
+ public $nextPageToken;
+ protected $teamDrivesType = 'Google_Service_Drive_TeamDrive';
+ protected $teamDrivesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTeamDrives($teamDrives)
+ {
+ $this->teamDrives = $teamDrives;
+ }
+ public function getTeamDrives()
+ {
+ return $this->teamDrives;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/User.php
new file mode 100644
index 00000000..aaa044d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Drive/User.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Drive_User extends Google_Model
+{
+ public $displayName;
+ public $emailAddress;
+ public $kind;
+ public $me;
+ public $permissionId;
+ public $photoLink;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMe($me)
+ {
+ $this->me = $me;
+ }
+ public function getMe()
+ {
+ return $this->me;
+ }
+ public function setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+ public function setPhotoLink($photoLink)
+ {
+ $this->photoLink = $photoLink;
+ }
+ public function getPhotoLink()
+ {
+ return $this->photoLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php
new file mode 100644
index 00000000..0f7ff87b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for FirebaseDynamicLinks (v1).
+ *
+ * <p>
+ * Firebase Dynamic Links API enables third party developers to programmatically
+ * create and manage Dynamic Links.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://firebase.google.com/docs/dynamic-links/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_FirebaseDynamicLinks extends Google_Service
+{
+ /** View and administer all your Firebase data and settings. */
+ const FIREBASE =
+ "https://www.googleapis.com/auth/firebase";
+
+ public $shortLinks;
+
+ /**
+ * Constructs the internal representation of the FirebaseDynamicLinks service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://firebasedynamiclinks.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'firebasedynamiclinks';
+
+ $this->shortLinks = new Google_Service_FirebaseDynamicLinks_Resource_ShortLinks(
+ $this,
+ $this->serviceName,
+ 'shortLinks',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/shortLinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AnalyticsInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AnalyticsInfo.php
new file mode 100644
index 00000000..f1cd2465
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AnalyticsInfo.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_AnalyticsInfo extends Google_Model
+{
+ protected $googlePlayAnalyticsType = 'Google_Service_FirebaseDynamicLinks_GooglePlayAnalytics';
+ protected $googlePlayAnalyticsDataType = '';
+ protected $itunesConnectAnalyticsType = 'Google_Service_FirebaseDynamicLinks_ITunesConnectAnalytics';
+ protected $itunesConnectAnalyticsDataType = '';
+
+ public function setGooglePlayAnalytics(Google_Service_FirebaseDynamicLinks_GooglePlayAnalytics $googlePlayAnalytics)
+ {
+ $this->googlePlayAnalytics = $googlePlayAnalytics;
+ }
+ public function getGooglePlayAnalytics()
+ {
+ return $this->googlePlayAnalytics;
+ }
+ public function setItunesConnectAnalytics(Google_Service_FirebaseDynamicLinks_ITunesConnectAnalytics $itunesConnectAnalytics)
+ {
+ $this->itunesConnectAnalytics = $itunesConnectAnalytics;
+ }
+ public function getItunesConnectAnalytics()
+ {
+ return $this->itunesConnectAnalytics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AndroidInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AndroidInfo.php
new file mode 100644
index 00000000..d32653e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/AndroidInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_AndroidInfo extends Google_Model
+{
+ public $androidFallbackLink;
+ public $androidLink;
+ public $androidMinPackageVersionCode;
+ public $androidPackageName;
+
+ public function setAndroidFallbackLink($androidFallbackLink)
+ {
+ $this->androidFallbackLink = $androidFallbackLink;
+ }
+ public function getAndroidFallbackLink()
+ {
+ return $this->androidFallbackLink;
+ }
+ public function setAndroidLink($androidLink)
+ {
+ $this->androidLink = $androidLink;
+ }
+ public function getAndroidLink()
+ {
+ return $this->androidLink;
+ }
+ public function setAndroidMinPackageVersionCode($androidMinPackageVersionCode)
+ {
+ $this->androidMinPackageVersionCode = $androidMinPackageVersionCode;
+ }
+ public function getAndroidMinPackageVersionCode()
+ {
+ return $this->androidMinPackageVersionCode;
+ }
+ public function setAndroidPackageName($androidPackageName)
+ {
+ $this->androidPackageName = $androidPackageName;
+ }
+ public function getAndroidPackageName()
+ {
+ return $this->androidPackageName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php
new file mode 100644
index 00000000..8ed9aac5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkRequest extends Google_Model
+{
+ protected $dynamicLinkInfoType = 'Google_Service_FirebaseDynamicLinks_DynamicLinkInfo';
+ protected $dynamicLinkInfoDataType = '';
+ public $longDynamicLink;
+ protected $suffixType = 'Google_Service_FirebaseDynamicLinks_Suffix';
+ protected $suffixDataType = '';
+
+ public function setDynamicLinkInfo(Google_Service_FirebaseDynamicLinks_DynamicLinkInfo $dynamicLinkInfo)
+ {
+ $this->dynamicLinkInfo = $dynamicLinkInfo;
+ }
+ public function getDynamicLinkInfo()
+ {
+ return $this->dynamicLinkInfo;
+ }
+ public function setLongDynamicLink($longDynamicLink)
+ {
+ $this->longDynamicLink = $longDynamicLink;
+ }
+ public function getLongDynamicLink()
+ {
+ return $this->longDynamicLink;
+ }
+ public function setSuffix(Google_Service_FirebaseDynamicLinks_Suffix $suffix)
+ {
+ $this->suffix = $suffix;
+ }
+ public function getSuffix()
+ {
+ return $this->suffix;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkResponse.php
new file mode 100644
index 00000000..4bc4f6f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/CreateShortDynamicLinkResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkResponse extends Google_Collection
+{
+ protected $collection_key = 'warning';
+ public $previewLink;
+ public $shortLink;
+ protected $warningType = 'Google_Service_FirebaseDynamicLinks_DynamicLinkWarning';
+ protected $warningDataType = 'array';
+
+ public function setPreviewLink($previewLink)
+ {
+ $this->previewLink = $previewLink;
+ }
+ public function getPreviewLink()
+ {
+ return $this->previewLink;
+ }
+ public function setShortLink($shortLink)
+ {
+ $this->shortLink = $shortLink;
+ }
+ public function getShortLink()
+ {
+ return $this->shortLink;
+ }
+ public function setWarning($warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkInfo.php
new file mode 100644
index 00000000..2d5e2989
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkInfo.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_DynamicLinkInfo extends Google_Model
+{
+ protected $analyticsInfoType = 'Google_Service_FirebaseDynamicLinks_AnalyticsInfo';
+ protected $analyticsInfoDataType = '';
+ protected $androidInfoType = 'Google_Service_FirebaseDynamicLinks_AndroidInfo';
+ protected $androidInfoDataType = '';
+ public $dynamicLinkDomain;
+ protected $iosInfoType = 'Google_Service_FirebaseDynamicLinks_IosInfo';
+ protected $iosInfoDataType = '';
+ public $link;
+ protected $navigationInfoType = 'Google_Service_FirebaseDynamicLinks_NavigationInfo';
+ protected $navigationInfoDataType = '';
+ protected $socialMetaTagInfoType = 'Google_Service_FirebaseDynamicLinks_SocialMetaTagInfo';
+ protected $socialMetaTagInfoDataType = '';
+
+ public function setAnalyticsInfo(Google_Service_FirebaseDynamicLinks_AnalyticsInfo $analyticsInfo)
+ {
+ $this->analyticsInfo = $analyticsInfo;
+ }
+ public function getAnalyticsInfo()
+ {
+ return $this->analyticsInfo;
+ }
+ public function setAndroidInfo(Google_Service_FirebaseDynamicLinks_AndroidInfo $androidInfo)
+ {
+ $this->androidInfo = $androidInfo;
+ }
+ public function getAndroidInfo()
+ {
+ return $this->androidInfo;
+ }
+ public function setDynamicLinkDomain($dynamicLinkDomain)
+ {
+ $this->dynamicLinkDomain = $dynamicLinkDomain;
+ }
+ public function getDynamicLinkDomain()
+ {
+ return $this->dynamicLinkDomain;
+ }
+ public function setIosInfo(Google_Service_FirebaseDynamicLinks_IosInfo $iosInfo)
+ {
+ $this->iosInfo = $iosInfo;
+ }
+ public function getIosInfo()
+ {
+ return $this->iosInfo;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setNavigationInfo(Google_Service_FirebaseDynamicLinks_NavigationInfo $navigationInfo)
+ {
+ $this->navigationInfo = $navigationInfo;
+ }
+ public function getNavigationInfo()
+ {
+ return $this->navigationInfo;
+ }
+ public function setSocialMetaTagInfo(Google_Service_FirebaseDynamicLinks_SocialMetaTagInfo $socialMetaTagInfo)
+ {
+ $this->socialMetaTagInfo = $socialMetaTagInfo;
+ }
+ public function getSocialMetaTagInfo()
+ {
+ return $this->socialMetaTagInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkWarning.php
new file mode 100644
index 00000000..f0e0bf48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/DynamicLinkWarning.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_DynamicLinkWarning extends Google_Model
+{
+ public $warningCode;
+ public $warningMessage;
+
+ public function setWarningCode($warningCode)
+ {
+ $this->warningCode = $warningCode;
+ }
+ public function getWarningCode()
+ {
+ return $this->warningCode;
+ }
+ public function setWarningMessage($warningMessage)
+ {
+ $this->warningMessage = $warningMessage;
+ }
+ public function getWarningMessage()
+ {
+ return $this->warningMessage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GooglePlayAnalytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GooglePlayAnalytics.php
new file mode 100644
index 00000000..d5a67d25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/GooglePlayAnalytics.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_GooglePlayAnalytics extends Google_Model
+{
+ public $gclid;
+ public $utmCampaign;
+ public $utmContent;
+ public $utmMedium;
+ public $utmSource;
+ public $utmTerm;
+
+ public function setGclid($gclid)
+ {
+ $this->gclid = $gclid;
+ }
+ public function getGclid()
+ {
+ return $this->gclid;
+ }
+ public function setUtmCampaign($utmCampaign)
+ {
+ $this->utmCampaign = $utmCampaign;
+ }
+ public function getUtmCampaign()
+ {
+ return $this->utmCampaign;
+ }
+ public function setUtmContent($utmContent)
+ {
+ $this->utmContent = $utmContent;
+ }
+ public function getUtmContent()
+ {
+ return $this->utmContent;
+ }
+ public function setUtmMedium($utmMedium)
+ {
+ $this->utmMedium = $utmMedium;
+ }
+ public function getUtmMedium()
+ {
+ return $this->utmMedium;
+ }
+ public function setUtmSource($utmSource)
+ {
+ $this->utmSource = $utmSource;
+ }
+ public function getUtmSource()
+ {
+ return $this->utmSource;
+ }
+ public function setUtmTerm($utmTerm)
+ {
+ $this->utmTerm = $utmTerm;
+ }
+ public function getUtmTerm()
+ {
+ return $this->utmTerm;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/ITunesConnectAnalytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/ITunesConnectAnalytics.php
new file mode 100644
index 00000000..a922dfa5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/ITunesConnectAnalytics.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_ITunesConnectAnalytics extends Google_Model
+{
+ public $at;
+ public $ct;
+ public $mt;
+ public $pt;
+
+ public function setAt($at)
+ {
+ $this->at = $at;
+ }
+ public function getAt()
+ {
+ return $this->at;
+ }
+ public function setCt($ct)
+ {
+ $this->ct = $ct;
+ }
+ public function getCt()
+ {
+ return $this->ct;
+ }
+ public function setMt($mt)
+ {
+ $this->mt = $mt;
+ }
+ public function getMt()
+ {
+ return $this->mt;
+ }
+ public function setPt($pt)
+ {
+ $this->pt = $pt;
+ }
+ public function getPt()
+ {
+ return $this->pt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php
new file mode 100644
index 00000000..3ae84bc0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/IosInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_IosInfo extends Google_Model
+{
+ public $iosAppStoreId;
+ public $iosBundleId;
+ public $iosCustomScheme;
+ public $iosFallbackLink;
+ public $iosIpadBundleId;
+ public $iosIpadFallbackLink;
+
+ public function setIosAppStoreId($iosAppStoreId)
+ {
+ $this->iosAppStoreId = $iosAppStoreId;
+ }
+ public function getIosAppStoreId()
+ {
+ return $this->iosAppStoreId;
+ }
+ public function setIosBundleId($iosBundleId)
+ {
+ $this->iosBundleId = $iosBundleId;
+ }
+ public function getIosBundleId()
+ {
+ return $this->iosBundleId;
+ }
+ public function setIosCustomScheme($iosCustomScheme)
+ {
+ $this->iosCustomScheme = $iosCustomScheme;
+ }
+ public function getIosCustomScheme()
+ {
+ return $this->iosCustomScheme;
+ }
+ public function setIosFallbackLink($iosFallbackLink)
+ {
+ $this->iosFallbackLink = $iosFallbackLink;
+ }
+ public function getIosFallbackLink()
+ {
+ return $this->iosFallbackLink;
+ }
+ public function setIosIpadBundleId($iosIpadBundleId)
+ {
+ $this->iosIpadBundleId = $iosIpadBundleId;
+ }
+ public function getIosIpadBundleId()
+ {
+ return $this->iosIpadBundleId;
+ }
+ public function setIosIpadFallbackLink($iosIpadFallbackLink)
+ {
+ $this->iosIpadFallbackLink = $iosIpadFallbackLink;
+ }
+ public function getIosIpadFallbackLink()
+ {
+ return $this->iosIpadFallbackLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/NavigationInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/NavigationInfo.php
new file mode 100644
index 00000000..fdae5f34
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/NavigationInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_NavigationInfo extends Google_Model
+{
+ public $enableForcedRedirect;
+
+ public function setEnableForcedRedirect($enableForcedRedirect)
+ {
+ $this->enableForcedRedirect = $enableForcedRedirect;
+ }
+ public function getEnableForcedRedirect()
+ {
+ return $this->enableForcedRedirect;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/ShortLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/ShortLinks.php
new file mode 100644
index 00000000..c725504f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Resource/ShortLinks.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "shortLinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $firebasedynamiclinksService = new Google_Service_FirebaseDynamicLinks(...);
+ * $shortLinks = $firebasedynamiclinksService->shortLinks;
+ * </code>
+ */
+class Google_Service_FirebaseDynamicLinks_Resource_ShortLinks extends Google_Service_Resource
+{
+ /**
+ * Creates a short Dynamic Link given either a valid long Dynamic Link or
+ * details such as Dynamic Link domain, Android and iOS app information. The
+ * created short Dynamic Link will not expire.
+ *
+ * Repeated calls with the same long Dynamic Link or Dynamic Link information
+ * will produce the same short Dynamic Link.
+ *
+ * The Dynamic Link domain in the request must be owned by requester's Firebase
+ * project. (shortLinks.create)
+ *
+ * @param Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkResponse
+ */
+ public function create(Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_FirebaseDynamicLinks_CreateShortDynamicLinkResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/SocialMetaTagInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/SocialMetaTagInfo.php
new file mode 100644
index 00000000..efa8c5ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/SocialMetaTagInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_SocialMetaTagInfo extends Google_Model
+{
+ public $socialDescription;
+ public $socialImageLink;
+ public $socialTitle;
+
+ public function setSocialDescription($socialDescription)
+ {
+ $this->socialDescription = $socialDescription;
+ }
+ public function getSocialDescription()
+ {
+ return $this->socialDescription;
+ }
+ public function setSocialImageLink($socialImageLink)
+ {
+ $this->socialImageLink = $socialImageLink;
+ }
+ public function getSocialImageLink()
+ {
+ return $this->socialImageLink;
+ }
+ public function setSocialTitle($socialTitle)
+ {
+ $this->socialTitle = $socialTitle;
+ }
+ public function getSocialTitle()
+ {
+ return $this->socialTitle;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Suffix.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Suffix.php
new file mode 100644
index 00000000..4e9cb2d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinks/Suffix.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinks_Suffix extends Google_Model
+{
+ public $option;
+
+ public function setOption($option)
+ {
+ $this->option = $option;
+ }
+ public function getOption()
+ {
+ return $this->option;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI.php
new file mode 100644
index 00000000..4c8ade40
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for FirebaseDynamicLinksAPI (v1).
+ *
+ * <p>
+ * Firebase Dynamic Links API enables third party developers to create and
+ * manage the Dynamic Links(go/fdl).</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://firebase.google.com/docs/dynamic-links/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_FirebaseDynamicLinksAPI extends Google_Service
+{
+ /** View and administer all your Firebase data and settings. */
+ const FIREBASE =
+ "https://www.googleapis.com/auth/firebase";
+
+ public $shortDynamicLinks;
+
+ /**
+ * Constructs the internal representation of the FirebaseDynamicLinksAPI
+ * service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://firebasedynamiclinks.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'firebasedynamiclinks';
+
+ $this->shortDynamicLinks = new Google_Service_FirebaseDynamicLinksAPI_Resource_ShortDynamicLinks(
+ $this,
+ $this->serviceName,
+ 'shortDynamicLinks',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/shortDynamicLinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AnalyticsInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AnalyticsInfo.php
new file mode 100644
index 00000000..07ac37af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AnalyticsInfo.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_AnalyticsInfo extends Google_Model
+{
+ protected $googlePlayAnalyticsType = 'Google_Service_FirebaseDynamicLinksAPI_GooglePlayAnalytics';
+ protected $googlePlayAnalyticsDataType = '';
+ protected $itunesConnectAnalyticsType = 'Google_Service_FirebaseDynamicLinksAPI_ITunesConnectAnalytics';
+ protected $itunesConnectAnalyticsDataType = '';
+
+ public function setGooglePlayAnalytics(Google_Service_FirebaseDynamicLinksAPI_GooglePlayAnalytics $googlePlayAnalytics)
+ {
+ $this->googlePlayAnalytics = $googlePlayAnalytics;
+ }
+ public function getGooglePlayAnalytics()
+ {
+ return $this->googlePlayAnalytics;
+ }
+ public function setItunesConnectAnalytics(Google_Service_FirebaseDynamicLinksAPI_ITunesConnectAnalytics $itunesConnectAnalytics)
+ {
+ $this->itunesConnectAnalytics = $itunesConnectAnalytics;
+ }
+ public function getItunesConnectAnalytics()
+ {
+ return $this->itunesConnectAnalytics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AndroidInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AndroidInfo.php
new file mode 100644
index 00000000..63badeac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/AndroidInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_AndroidInfo extends Google_Model
+{
+ public $androidFallbackLink;
+ public $androidLink;
+ public $androidMinPackageVersionCode;
+ public $androidPackageName;
+
+ public function setAndroidFallbackLink($androidFallbackLink)
+ {
+ $this->androidFallbackLink = $androidFallbackLink;
+ }
+ public function getAndroidFallbackLink()
+ {
+ return $this->androidFallbackLink;
+ }
+ public function setAndroidLink($androidLink)
+ {
+ $this->androidLink = $androidLink;
+ }
+ public function getAndroidLink()
+ {
+ return $this->androidLink;
+ }
+ public function setAndroidMinPackageVersionCode($androidMinPackageVersionCode)
+ {
+ $this->androidMinPackageVersionCode = $androidMinPackageVersionCode;
+ }
+ public function getAndroidMinPackageVersionCode()
+ {
+ return $this->androidMinPackageVersionCode;
+ }
+ public function setAndroidPackageName($androidPackageName)
+ {
+ $this->androidPackageName = $androidPackageName;
+ }
+ public function getAndroidPackageName()
+ {
+ return $this->androidPackageName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkRequest.php
new file mode 100644
index 00000000..969f4ed7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_CreateShortDynamicLinkRequest extends Google_Model
+{
+ protected $dynamicLinkInfoType = 'Google_Service_FirebaseDynamicLinksAPI_DynamicLinkInfo';
+ protected $dynamicLinkInfoDataType = '';
+ public $longDynamicLink;
+ protected $suffixType = 'Google_Service_FirebaseDynamicLinksAPI_Suffix';
+ protected $suffixDataType = '';
+
+ public function setDynamicLinkInfo(Google_Service_FirebaseDynamicLinksAPI_DynamicLinkInfo $dynamicLinkInfo)
+ {
+ $this->dynamicLinkInfo = $dynamicLinkInfo;
+ }
+ public function getDynamicLinkInfo()
+ {
+ return $this->dynamicLinkInfo;
+ }
+ public function setLongDynamicLink($longDynamicLink)
+ {
+ $this->longDynamicLink = $longDynamicLink;
+ }
+ public function getLongDynamicLink()
+ {
+ return $this->longDynamicLink;
+ }
+ public function setSuffix(Google_Service_FirebaseDynamicLinksAPI_Suffix $suffix)
+ {
+ $this->suffix = $suffix;
+ }
+ public function getSuffix()
+ {
+ return $this->suffix;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkResponse.php
new file mode 100644
index 00000000..36d3f033
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/CreateShortDynamicLinkResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_CreateShortDynamicLinkResponse extends Google_Collection
+{
+ protected $collection_key = 'warning';
+ public $previewLink;
+ public $shortLink;
+ protected $warningType = 'Google_Service_FirebaseDynamicLinksAPI_DynamicLinkWarning';
+ protected $warningDataType = 'array';
+
+ public function setPreviewLink($previewLink)
+ {
+ $this->previewLink = $previewLink;
+ }
+ public function getPreviewLink()
+ {
+ return $this->previewLink;
+ }
+ public function setShortLink($shortLink)
+ {
+ $this->shortLink = $shortLink;
+ }
+ public function getShortLink()
+ {
+ return $this->shortLink;
+ }
+ public function setWarning($warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkInfo.php
new file mode 100644
index 00000000..5848ca45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkInfo.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_DynamicLinkInfo extends Google_Model
+{
+ protected $analyticsInfoType = 'Google_Service_FirebaseDynamicLinksAPI_AnalyticsInfo';
+ protected $analyticsInfoDataType = '';
+ protected $androidInfoType = 'Google_Service_FirebaseDynamicLinksAPI_AndroidInfo';
+ protected $androidInfoDataType = '';
+ public $dynamicLinkDomain;
+ protected $iosInfoType = 'Google_Service_FirebaseDynamicLinksAPI_IosInfo';
+ protected $iosInfoDataType = '';
+ public $isAd;
+ public $link;
+ protected $socialMetaTagInfoType = 'Google_Service_FirebaseDynamicLinksAPI_SocialMetaTagInfo';
+ protected $socialMetaTagInfoDataType = '';
+
+ public function setAnalyticsInfo(Google_Service_FirebaseDynamicLinksAPI_AnalyticsInfo $analyticsInfo)
+ {
+ $this->analyticsInfo = $analyticsInfo;
+ }
+ public function getAnalyticsInfo()
+ {
+ return $this->analyticsInfo;
+ }
+ public function setAndroidInfo(Google_Service_FirebaseDynamicLinksAPI_AndroidInfo $androidInfo)
+ {
+ $this->androidInfo = $androidInfo;
+ }
+ public function getAndroidInfo()
+ {
+ return $this->androidInfo;
+ }
+ public function setDynamicLinkDomain($dynamicLinkDomain)
+ {
+ $this->dynamicLinkDomain = $dynamicLinkDomain;
+ }
+ public function getDynamicLinkDomain()
+ {
+ return $this->dynamicLinkDomain;
+ }
+ public function setIosInfo(Google_Service_FirebaseDynamicLinksAPI_IosInfo $iosInfo)
+ {
+ $this->iosInfo = $iosInfo;
+ }
+ public function getIosInfo()
+ {
+ return $this->iosInfo;
+ }
+ public function setIsAd($isAd)
+ {
+ $this->isAd = $isAd;
+ }
+ public function getIsAd()
+ {
+ return $this->isAd;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setSocialMetaTagInfo(Google_Service_FirebaseDynamicLinksAPI_SocialMetaTagInfo $socialMetaTagInfo)
+ {
+ $this->socialMetaTagInfo = $socialMetaTagInfo;
+ }
+ public function getSocialMetaTagInfo()
+ {
+ return $this->socialMetaTagInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkWarning.php
new file mode 100644
index 00000000..d67a925d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/DynamicLinkWarning.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_DynamicLinkWarning extends Google_Model
+{
+ public $warningCode;
+ public $warningMessage;
+
+ public function setWarningCode($warningCode)
+ {
+ $this->warningCode = $warningCode;
+ }
+ public function getWarningCode()
+ {
+ return $this->warningCode;
+ }
+ public function setWarningMessage($warningMessage)
+ {
+ $this->warningMessage = $warningMessage;
+ }
+ public function getWarningMessage()
+ {
+ return $this->warningMessage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/GooglePlayAnalytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/GooglePlayAnalytics.php
new file mode 100644
index 00000000..906acffb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/GooglePlayAnalytics.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_GooglePlayAnalytics extends Google_Model
+{
+ public $gclid;
+ public $utmCampaign;
+ public $utmContent;
+ public $utmMedium;
+ public $utmSource;
+ public $utmTerm;
+
+ public function setGclid($gclid)
+ {
+ $this->gclid = $gclid;
+ }
+ public function getGclid()
+ {
+ return $this->gclid;
+ }
+ public function setUtmCampaign($utmCampaign)
+ {
+ $this->utmCampaign = $utmCampaign;
+ }
+ public function getUtmCampaign()
+ {
+ return $this->utmCampaign;
+ }
+ public function setUtmContent($utmContent)
+ {
+ $this->utmContent = $utmContent;
+ }
+ public function getUtmContent()
+ {
+ return $this->utmContent;
+ }
+ public function setUtmMedium($utmMedium)
+ {
+ $this->utmMedium = $utmMedium;
+ }
+ public function getUtmMedium()
+ {
+ return $this->utmMedium;
+ }
+ public function setUtmSource($utmSource)
+ {
+ $this->utmSource = $utmSource;
+ }
+ public function getUtmSource()
+ {
+ return $this->utmSource;
+ }
+ public function setUtmTerm($utmTerm)
+ {
+ $this->utmTerm = $utmTerm;
+ }
+ public function getUtmTerm()
+ {
+ return $this->utmTerm;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/ITunesConnectAnalytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/ITunesConnectAnalytics.php
new file mode 100644
index 00000000..14f77741
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/ITunesConnectAnalytics.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_ITunesConnectAnalytics extends Google_Model
+{
+ public $at;
+ public $ct;
+ public $mt;
+ public $pt;
+
+ public function setAt($at)
+ {
+ $this->at = $at;
+ }
+ public function getAt()
+ {
+ return $this->at;
+ }
+ public function setCt($ct)
+ {
+ $this->ct = $ct;
+ }
+ public function getCt()
+ {
+ return $this->ct;
+ }
+ public function setMt($mt)
+ {
+ $this->mt = $mt;
+ }
+ public function getMt()
+ {
+ return $this->mt;
+ }
+ public function setPt($pt)
+ {
+ $this->pt = $pt;
+ }
+ public function getPt()
+ {
+ return $this->pt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/IosInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/IosInfo.php
new file mode 100644
index 00000000..acea3641
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/IosInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_IosInfo extends Google_Model
+{
+ public $iosAppStoreId;
+ public $iosBundleId;
+ public $iosCustomScheme;
+ public $iosFallbackLink;
+ public $iosIpadBundleId;
+ public $iosIpadFallbackLink;
+
+ public function setIosAppStoreId($iosAppStoreId)
+ {
+ $this->iosAppStoreId = $iosAppStoreId;
+ }
+ public function getIosAppStoreId()
+ {
+ return $this->iosAppStoreId;
+ }
+ public function setIosBundleId($iosBundleId)
+ {
+ $this->iosBundleId = $iosBundleId;
+ }
+ public function getIosBundleId()
+ {
+ return $this->iosBundleId;
+ }
+ public function setIosCustomScheme($iosCustomScheme)
+ {
+ $this->iosCustomScheme = $iosCustomScheme;
+ }
+ public function getIosCustomScheme()
+ {
+ return $this->iosCustomScheme;
+ }
+ public function setIosFallbackLink($iosFallbackLink)
+ {
+ $this->iosFallbackLink = $iosFallbackLink;
+ }
+ public function getIosFallbackLink()
+ {
+ return $this->iosFallbackLink;
+ }
+ public function setIosIpadBundleId($iosIpadBundleId)
+ {
+ $this->iosIpadBundleId = $iosIpadBundleId;
+ }
+ public function getIosIpadBundleId()
+ {
+ return $this->iosIpadBundleId;
+ }
+ public function setIosIpadFallbackLink($iosIpadFallbackLink)
+ {
+ $this->iosIpadFallbackLink = $iosIpadFallbackLink;
+ }
+ public function getIosIpadFallbackLink()
+ {
+ return $this->iosIpadFallbackLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Resource/ShortDynamicLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Resource/ShortDynamicLinks.php
new file mode 100644
index 00000000..9c4a183d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Resource/ShortDynamicLinks.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "shortDynamicLinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $firebasedynamiclinksService = new Google_Service_FirebaseDynamicLinksAPI(...);
+ * $shortDynamicLinks = $firebasedynamiclinksService->shortDynamicLinks;
+ * </code>
+ */
+class Google_Service_FirebaseDynamicLinksAPI_Resource_ShortDynamicLinks extends Google_Service_Resource
+{
+ /**
+ * Creates a short Dynamic Link given either a valid long Dynamic Link or
+ * details such as Dynamic Link domain, Android and iOS app information. The
+ * created short Dynamic Link will not expire.
+ *
+ * Repeated calls with the same long Dynamic Link or Dynamic Link information
+ * will produce the same short Dynamic Link.
+ *
+ * The Dynamic Link domain in the request must be owned by requester's Firebase
+ * project. (shortDynamicLinks.create)
+ *
+ * @param Google_Service_FirebaseDynamicLinksAPI_CreateShortDynamicLinkRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseDynamicLinksAPI_CreateShortDynamicLinkResponse
+ */
+ public function create(Google_Service_FirebaseDynamicLinksAPI_CreateShortDynamicLinkRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_FirebaseDynamicLinksAPI_CreateShortDynamicLinkResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/SocialMetaTagInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/SocialMetaTagInfo.php
new file mode 100644
index 00000000..e7317da7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/SocialMetaTagInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_SocialMetaTagInfo extends Google_Model
+{
+ public $socialDescription;
+ public $socialImageLink;
+ public $socialTitle;
+
+ public function setSocialDescription($socialDescription)
+ {
+ $this->socialDescription = $socialDescription;
+ }
+ public function getSocialDescription()
+ {
+ return $this->socialDescription;
+ }
+ public function setSocialImageLink($socialImageLink)
+ {
+ $this->socialImageLink = $socialImageLink;
+ }
+ public function getSocialImageLink()
+ {
+ return $this->socialImageLink;
+ }
+ public function setSocialTitle($socialTitle)
+ {
+ $this->socialTitle = $socialTitle;
+ }
+ public function getSocialTitle()
+ {
+ return $this->socialTitle;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Suffix.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Suffix.php
new file mode 100644
index 00000000..63b6f42d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseDynamicLinksAPI/Suffix.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseDynamicLinksAPI_Suffix extends Google_Model
+{
+ public $option;
+
+ public function setOption($option)
+ {
+ $this->option = $option;
+ }
+ public function getOption()
+ {
+ return $this->option;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI.php
new file mode 100644
index 00000000..459af977
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI.php
@@ -0,0 +1,212 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for FirebaseRulesAPI (v1).
+ *
+ * <p>
+ * Creates and manages rules that determine when a Firebase Rules-enabled
+ * service should permit a request.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://firebase.google.com/docs/storage/security" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_FirebaseRulesAPI extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View and administer all your Firebase data and settings. */
+ const FIREBASE =
+ "https://www.googleapis.com/auth/firebase";
+ /** View all your Firebase data and settings. */
+ const FIREBASE_READONLY =
+ "https://www.googleapis.com/auth/firebase.readonly";
+
+ public $projects;
+ public $projects_releases;
+ public $projects_rulesets;
+
+ /**
+ * Constructs the internal representation of the FirebaseRulesAPI service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://firebaserules.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'firebaserules';
+
+ $this->projects = new Google_Service_FirebaseRulesAPI_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'test' => array(
+ 'path' => 'v1/{+name}:test',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_releases = new Google_Service_FirebaseRulesAPI_Resource_ProjectsReleases(
+ $this,
+ $this->serviceName,
+ 'releases',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+name}/releases',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}/releases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_rulesets = new Google_Service_FirebaseRulesAPI_Resource_ProjectsRulesets(
+ $this,
+ $this->serviceName,
+ 'rulesets',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+name}/rulesets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}/rulesets',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesEmpty.php
new file mode 100644
index 00000000..2583a330
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_FirebaserulesEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesFile.php
new file mode 100644
index 00000000..c12abcc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesFile.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_FirebaserulesFile extends Google_Model
+{
+ public $content;
+ public $fingerprint;
+ public $name;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Issue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Issue.php
new file mode 100644
index 00000000..01b73c9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Issue.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_Issue extends Google_Model
+{
+ public $description;
+ public $severity;
+ protected $sourcePositionType = 'Google_Service_FirebaseRulesAPI_SourcePosition';
+ protected $sourcePositionDataType = '';
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setSourcePosition(Google_Service_FirebaseRulesAPI_SourcePosition $sourcePosition)
+ {
+ $this->sourcePosition = $sourcePosition;
+ }
+ public function getSourcePosition()
+ {
+ return $this->sourcePosition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListReleasesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListReleasesResponse.php
new file mode 100644
index 00000000..a3f9575d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListReleasesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_ListReleasesResponse extends Google_Collection
+{
+ protected $collection_key = 'releases';
+ public $nextPageToken;
+ protected $releasesType = 'Google_Service_FirebaseRulesAPI_Release';
+ protected $releasesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setReleases($releases)
+ {
+ $this->releases = $releases;
+ }
+ public function getReleases()
+ {
+ return $this->releases;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListRulesetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListRulesetsResponse.php
new file mode 100644
index 00000000..c94753cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListRulesetsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_ListRulesetsResponse extends Google_Collection
+{
+ protected $collection_key = 'rulesets';
+ public $nextPageToken;
+ protected $rulesetsType = 'Google_Service_FirebaseRulesAPI_Ruleset';
+ protected $rulesetsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setRulesets($rulesets)
+ {
+ $this->rulesets = $rulesets;
+ }
+ public function getRulesets()
+ {
+ return $this->rulesets;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Release.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Release.php
new file mode 100644
index 00000000..eff6c456
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Release.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_Release extends Google_Model
+{
+ public $createTime;
+ public $name;
+ public $rulesetName;
+ public $updateTime;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRulesetName($rulesetName)
+ {
+ $this->rulesetName = $rulesetName;
+ }
+ public function getRulesetName()
+ {
+ return $this->rulesetName;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/Projects.php
new file mode 100644
index 00000000..344eda48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/Projects.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $firebaserulesService = new Google_Service_FirebaseRulesAPI(...);
+ * $projects = $firebaserulesService->projects;
+ * </code>
+ */
+class Google_Service_FirebaseRulesAPI_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Test `Source` for syntactic and semantic correctness. Issues present in the
+ * rules, if any, will be returned to the caller with a description, severity,
+ * and source location.
+ *
+ * The test method will typically be executed with a developer provided
+ * `Source`, but if regression testing is desired, this method may be executed
+ * against a `Ruleset` resource name and the `Source` will be retrieved from the
+ * persisted `Ruleset`.
+ *
+ * The following is an example of `Source` that permits users to upload images
+ * to a bucket bearing their user id and matching the correct metadata:
+ *
+ * _*Example*_
+ *
+ * // Users are allowed to subscribe and unsubscribe to the blog.
+ * service firebase.storage { match /users/{userId}/images/{imageName} {
+ * allow write: if userId == request.userId &&
+ * (imageName.endsWith('.png') || imageName.endsWith('.jpg')) &&
+ * resource.mimeType.startsWith('image/') } } (projects.test)
+ *
+ * @param string $name Name of the project.
+ *
+ * Format: `projects/{project_id}`
+ * @param Google_Service_FirebaseRulesAPI_TestRulesetRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_TestRulesetResponse
+ */
+ public function test($name, Google_Service_FirebaseRulesAPI_TestRulesetRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('test', array($params), "Google_Service_FirebaseRulesAPI_TestRulesetResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsReleases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsReleases.php
new file mode 100644
index 00000000..b0911978
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsReleases.php
@@ -0,0 +1,186 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "releases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $firebaserulesService = new Google_Service_FirebaseRulesAPI(...);
+ * $releases = $firebaserulesService->releases;
+ * </code>
+ */
+class Google_Service_FirebaseRulesAPI_Resource_ProjectsReleases extends Google_Service_Resource
+{
+ /**
+ * Create a `Release`.
+ *
+ * Release names should reflect the developer's deployment practices. For
+ * example, the release name may include the environment name, application name,
+ * application version, or any other name meaningful to the developer. Once a
+ * `Release` refers to a `Ruleset`, the rules can be enforced by Firebase Rules-
+ * enabled services.
+ *
+ * More than one `Release` may be 'live' concurrently. Consider the following
+ * three `Release` names for `projects/foo` and the `Ruleset` to which they
+ * refer.
+ *
+ * Release Name | Ruleset Name
+ * --------------------------------|------------- projects/foo/releases/prod
+ * | projects/foo/rulesets/uuid123 projects/foo/releases/prod/beta |
+ * projects/foo/rulesets/uuid123 projects/foo/releases/prod/v23 |
+ * projects/foo/rulesets/uuid456
+ *
+ * The table reflects the `Ruleset` rollout in progress. The `prod` and
+ * `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23` refers
+ * to a new `Ruleset`. The `Ruleset` reference for a `Release` may be updated
+ * using the UpdateRelease method, and the custom `Release` name may be
+ * referenced by specifying the `X-Firebase-Rules-Release-Name` header.
+ * (releases.create)
+ *
+ * @param string $name Resource name for the project which owns this `Release`.
+ *
+ * Format: `projects/{project_id}`
+ * @param Google_Service_FirebaseRulesAPI_Release $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_Release
+ */
+ public function create($name, Google_Service_FirebaseRulesAPI_Release $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_FirebaseRulesAPI_Release");
+ }
+ /**
+ * Delete a `Release` by resource name. (releases.delete)
+ *
+ * @param string $name Resource name for the `Release` to delete.
+ *
+ * Format: `projects/{project_id}/releases/{release_id}`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_FirebaserulesEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_FirebaseRulesAPI_FirebaserulesEmpty");
+ }
+ /**
+ * Get a `Release` by name. (releases.get)
+ *
+ * @param string $name Resource name of the `Release`.
+ *
+ * Format: `projects/{project_id}/releases/{release_id}`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_Release
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_FirebaseRulesAPI_Release");
+ }
+ /**
+ * List the `Release` values for a project. This list may optionally be filtered
+ * by `Release` name or `Ruleset` id or both. (releases.listProjectsReleases)
+ *
+ * @param string $name Resource name for the project.
+ *
+ * Format: `projects/{project_id}`
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Page size to load. Maximum of 100. Defaults to 10.
+ * Note: `page_size` is just a hint and the service may choose to load less than
+ * `page_size` due to the size of the output. To traverse all of the releases,
+ * caller should iterate until the `page_token` is empty.
+ * @opt_param string filter `Release` filter. The list method supports filters
+ * with restrictions on the `Release` `name` and also on the `Ruleset`
+ * `ruleset_name`.
+ *
+ * Example 1) A filter of 'name=prod*' might return `Release`s with names within
+ * 'projects/foo' prefixed with 'prod':
+ *
+ * Name | Ruleset Name
+ * ------------------------------|------------- projects/foo/releases/prod |
+ * projects/foo/rulesets/uuid1234 projects/foo/releases/prod/v1 |
+ * projects/foo/rulesets/uuid1234 projects/foo/releases/prod/v2 |
+ * projects/foo/rulesets/uuid8888
+ *
+ * Example 2) A filter of `name=prod* ruleset_name=uuid1234` would return only
+ * `Release` instances for 'projects/foo' with names prefixed with 'prod'
+ * referring to the same `Ruleset` name of 'uuid1234':
+ *
+ * Name | Ruleset Name
+ * ------------------------------|------------- projects/foo/releases/prod |
+ * projects/foo/rulesets/1234 projects/foo/releases/prod/v1 |
+ * projects/foo/rulesets/1234
+ *
+ * In the examples, the filter parameters refer to the search filters for
+ * release and ruleset names are relative to the project releases and rulesets
+ * collections. Fully qualified prefixed may also be used. e.g.
+ * `name=projects/foo/releases/prod* ruleset_name=projects/foo/rulesets/uuid1`
+ * @opt_param string pageToken Next page token for the next batch of `Release`
+ * instances.
+ * @return Google_Service_FirebaseRulesAPI_ListReleasesResponse
+ */
+ public function listProjectsReleases($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_FirebaseRulesAPI_ListReleasesResponse");
+ }
+ /**
+ * Update a `Release`.
+ *
+ * Only updates to the `ruleset_name` field will be honored. `Release` rename is
+ * not supported. To create a `Release` use the CreateRelease method instead.
+ * (releases.update)
+ *
+ * @param string $name Resource name for the `Release`.
+ *
+ * `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2` which
+ * affords developers a great deal of flexibility in mapping the name to the
+ * style that best fits their existing development practices. For example, a
+ * name could refer to an environment, an app, a version, or some combination of
+ * three.
+ *
+ * In the table below, for the project name `projects/foo`, the following
+ * relative release paths show how flat and structured names might be chosen to
+ * match a desired development / deployment strategy.
+ *
+ * Use Case | Flat Name | Structured Name
+ * -------------|---------------------|---------------- Environments |
+ * releases/qa | releases/qa Apps | releases/app1_qa |
+ * releases/app1/qa Versions | releases/app1_v2_qa | releases/app1/v2/qa
+ *
+ * The delimiter between the release name path elements can be almost anything
+ * and it should work equally well with the release name list filter, but in
+ * many ways the structured paths provide a clearer picture of the relationship
+ * between `Release` instances.
+ *
+ * Format: `projects/{project_id}/releases/{release_id}`
+ * @param Google_Service_FirebaseRulesAPI_Release $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_Release
+ */
+ public function update($name, Google_Service_FirebaseRulesAPI_Release $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_FirebaseRulesAPI_Release");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsRulesets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsRulesets.php
new file mode 100644
index 00000000..56b66c4e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsRulesets.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "rulesets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $firebaserulesService = new Google_Service_FirebaseRulesAPI(...);
+ * $rulesets = $firebaserulesService->rulesets;
+ * </code>
+ */
+class Google_Service_FirebaseRulesAPI_Resource_ProjectsRulesets extends Google_Service_Resource
+{
+ /**
+ * Create a `Ruleset` from `Source`.
+ *
+ * The `Ruleset` is given a unique generated name which is returned to the
+ * caller. `Source` containing syntactic or semantics errors will result in an
+ * error response indicating the first error encountered. For a detailed view of
+ * `Source` issues, use TestRuleset. (rulesets.create)
+ *
+ * @param string $name Resource name for Project which owns this `Ruleset`.
+ *
+ * Format: `projects/{project_id}`
+ * @param Google_Service_FirebaseRulesAPI_Ruleset $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_Ruleset
+ */
+ public function create($name, Google_Service_FirebaseRulesAPI_Ruleset $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_FirebaseRulesAPI_Ruleset");
+ }
+ /**
+ * Delete a `Ruleset` by resource name.
+ *
+ * If the `Ruleset` is referenced by a `Release` the operation will fail.
+ * (rulesets.delete)
+ *
+ * @param string $name Resource name for the ruleset to delete.
+ *
+ * Format: `projects/{project_id}/rulesets/{ruleset_id}`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_FirebaserulesEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_FirebaseRulesAPI_FirebaserulesEmpty");
+ }
+ /**
+ * Get a `Ruleset` by name including the full `Source` contents. (rulesets.get)
+ *
+ * @param string $name Resource name for the ruleset to get.
+ *
+ * Format: `projects/{project_id}/rulesets/{ruleset_id}`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_FirebaseRulesAPI_Ruleset
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_FirebaseRulesAPI_Ruleset");
+ }
+ /**
+ * List `Ruleset` metadata only and optionally filter the results by Ruleset
+ * name.
+ *
+ * The full `Source` contents of a `Ruleset` may be retrieved with GetRuleset.
+ * (rulesets.listProjectsRulesets)
+ *
+ * @param string $name Resource name for the project.
+ *
+ * Format: `projects/{project_id}`
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Page size to load. Maximum of 100. Defaults to 10.
+ * Note: `page_size` is just a hint and the service may choose to load less than
+ * `page_size` due to the size of the output. To traverse all of the releases,
+ * caller should iterate until the `page_token` is empty.
+ * @opt_param string pageToken Next page token for loading the next batch of
+ * `Ruleset` instances.
+ * @return Google_Service_FirebaseRulesAPI_ListRulesetsResponse
+ */
+ public function listProjectsRulesets($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_FirebaseRulesAPI_ListRulesetsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Ruleset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Ruleset.php
new file mode 100644
index 00000000..567d1017
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Ruleset.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_Ruleset extends Google_Model
+{
+ public $createTime;
+ public $name;
+ protected $sourceType = 'Google_Service_FirebaseRulesAPI_Source';
+ protected $sourceDataType = '';
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSource(Google_Service_FirebaseRulesAPI_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Source.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Source.php
new file mode 100644
index 00000000..4ad6e5bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Source.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_Source extends Google_Collection
+{
+ protected $collection_key = 'files';
+ protected $filesType = 'Google_Service_FirebaseRulesAPI_FirebaserulesFile';
+ protected $filesDataType = 'array';
+
+ public function setFiles($files)
+ {
+ $this->files = $files;
+ }
+ public function getFiles()
+ {
+ return $this->files;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/SourcePosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/SourcePosition.php
new file mode 100644
index 00000000..4c62629e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/SourcePosition.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_SourcePosition extends Google_Model
+{
+ public $column;
+ public $fileName;
+ public $line;
+
+ public function setColumn($column)
+ {
+ $this->column = $column;
+ }
+ public function getColumn()
+ {
+ return $this->column;
+ }
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+ public function setLine($line)
+ {
+ $this->line = $line;
+ }
+ public function getLine()
+ {
+ return $this->line;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetRequest.php
new file mode 100644
index 00000000..48533a52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_TestRulesetRequest extends Google_Model
+{
+ protected $sourceType = 'Google_Service_FirebaseRulesAPI_Source';
+ protected $sourceDataType = '';
+
+ public function setSource(Google_Service_FirebaseRulesAPI_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetResponse.php
new file mode 100644
index 00000000..f888d46b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_FirebaseRulesAPI_TestRulesetResponse extends Google_Collection
+{
+ protected $collection_key = 'issues';
+ protected $issuesType = 'Google_Service_FirebaseRulesAPI_Issue';
+ protected $issuesDataType = 'array';
+
+ public function setIssues($issues)
+ {
+ $this->issues = $issues;
+ }
+ public function getIssues()
+ {
+ return $this->issues;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness.php
new file mode 100644
index 00000000..be8fc184
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness.php
@@ -0,0 +1,386 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Fitness (v1).
+ *
+ * <p>
+ * Stores and accesses user data in the fitness store from apps on any platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/fit/rest/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Fitness extends Google_Service
+{
+ /** View your activity information in Google Fit. */
+ const FITNESS_ACTIVITY_READ =
+ "https://www.googleapis.com/auth/fitness.activity.read";
+ /** View and store your activity information in Google Fit. */
+ const FITNESS_ACTIVITY_WRITE =
+ "https://www.googleapis.com/auth/fitness.activity.write";
+ /** View blood glucose data in Google Fit. */
+ const FITNESS_BLOOD_GLUCOSE_READ =
+ "https://www.googleapis.com/auth/fitness.blood_glucose.read";
+ /** View and store blood glucose data in Google Fit. */
+ const FITNESS_BLOOD_GLUCOSE_WRITE =
+ "https://www.googleapis.com/auth/fitness.blood_glucose.write";
+ /** View blood pressure data in Google Fit. */
+ const FITNESS_BLOOD_PRESSURE_READ =
+ "https://www.googleapis.com/auth/fitness.blood_pressure.read";
+ /** View and store blood pressure data in Google Fit. */
+ const FITNESS_BLOOD_PRESSURE_WRITE =
+ "https://www.googleapis.com/auth/fitness.blood_pressure.write";
+ /** View body sensor information in Google Fit. */
+ const FITNESS_BODY_READ =
+ "https://www.googleapis.com/auth/fitness.body.read";
+ /** View and store body sensor data in Google Fit. */
+ const FITNESS_BODY_WRITE =
+ "https://www.googleapis.com/auth/fitness.body.write";
+ /** View body temperature data in Google Fit. */
+ const FITNESS_BODY_TEMPERATURE_READ =
+ "https://www.googleapis.com/auth/fitness.body_temperature.read";
+ /** View and store body temperature data in Google Fit. */
+ const FITNESS_BODY_TEMPERATURE_WRITE =
+ "https://www.googleapis.com/auth/fitness.body_temperature.write";
+ /** View your stored location data in Google Fit. */
+ const FITNESS_LOCATION_READ =
+ "https://www.googleapis.com/auth/fitness.location.read";
+ /** View and store your location data in Google Fit. */
+ const FITNESS_LOCATION_WRITE =
+ "https://www.googleapis.com/auth/fitness.location.write";
+ /** View nutrition information in Google Fit. */
+ const FITNESS_NUTRITION_READ =
+ "https://www.googleapis.com/auth/fitness.nutrition.read";
+ /** View and store nutrition information in Google Fit. */
+ const FITNESS_NUTRITION_WRITE =
+ "https://www.googleapis.com/auth/fitness.nutrition.write";
+ /** View oxygen saturation data in Google Fit. */
+ const FITNESS_OXYGEN_SATURATION_READ =
+ "https://www.googleapis.com/auth/fitness.oxygen_saturation.read";
+ /** View and store oxygen saturation data in Google Fit. */
+ const FITNESS_OXYGEN_SATURATION_WRITE =
+ "https://www.googleapis.com/auth/fitness.oxygen_saturation.write";
+ /** View reproductive health data in Google Fit. */
+ const FITNESS_REPRODUCTIVE_HEALTH_READ =
+ "https://www.googleapis.com/auth/fitness.reproductive_health.read";
+ /** View and store reproductive health data in Google Fit. */
+ const FITNESS_REPRODUCTIVE_HEALTH_WRITE =
+ "https://www.googleapis.com/auth/fitness.reproductive_health.write";
+
+ public $users_dataSources;
+ public $users_dataSources_datasets;
+ public $users_dataset;
+ public $users_sessions;
+
+ /**
+ * Constructs the internal representation of the Fitness service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'fitness/v1/users/';
+ $this->version = 'v1';
+ $this->serviceName = 'fitness';
+
+ $this->users_dataSources = new Google_Service_Fitness_Resource_UsersDataSources(
+ $this,
+ $this->serviceName,
+ 'dataSources',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{userId}/dataSources',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{userId}/dataSources/{dataSourceId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/dataSources/{dataSourceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/dataSources',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataTypeName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{userId}/dataSources/{dataSourceId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{userId}/dataSources/{dataSourceId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_dataSources_datasets = new Google_Service_Fitness_Resource_UsersDataSourcesDatasets(
+ $this,
+ $this->serviceName,
+ 'datasets',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'currentTimeMillis' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'modifiedTimeMillis' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'limit' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{userId}/dataSources/{dataSourceId}/datasets/{datasetId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dataSourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'currentTimeMillis' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_dataset = new Google_Service_Fitness_Resource_UsersDataset(
+ $this,
+ $this->serviceName,
+ 'dataset',
+ array(
+ 'methods' => array(
+ 'aggregate' => array(
+ 'path' => '{userId}/dataset:aggregate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_sessions = new Google_Service_Fitness_Resource_UsersSessions(
+ $this,
+ $this->serviceName,
+ 'sessions',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{userId}/sessions/{sessionId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sessionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'currentTimeMillis' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/sessions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{userId}/sessions/{sessionId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sessionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'currentTimeMillis' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBucket.php
new file mode 100644
index 00000000..99f9430f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBucket.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_AggregateBucket extends Google_Collection
+{
+ protected $collection_key = 'dataset';
+ public $activity;
+ protected $datasetType = 'Google_Service_Fitness_Dataset';
+ protected $datasetDataType = 'array';
+ public $endTimeMillis;
+ protected $sessionType = 'Google_Service_Fitness_Session';
+ protected $sessionDataType = '';
+ public $startTimeMillis;
+ public $type;
+
+ public function setActivity($activity)
+ {
+ $this->activity = $activity;
+ }
+ public function getActivity()
+ {
+ return $this->activity;
+ }
+ public function setDataset($dataset)
+ {
+ $this->dataset = $dataset;
+ }
+ public function getDataset()
+ {
+ return $this->dataset;
+ }
+ public function setEndTimeMillis($endTimeMillis)
+ {
+ $this->endTimeMillis = $endTimeMillis;
+ }
+ public function getEndTimeMillis()
+ {
+ return $this->endTimeMillis;
+ }
+ public function setSession(Google_Service_Fitness_Session $session)
+ {
+ $this->session = $session;
+ }
+ public function getSession()
+ {
+ return $this->session;
+ }
+ public function setStartTimeMillis($startTimeMillis)
+ {
+ $this->startTimeMillis = $startTimeMillis;
+ }
+ public function getStartTimeMillis()
+ {
+ return $this->startTimeMillis;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBy.php
new file mode 100644
index 00000000..f93f1b2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateBy.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_AggregateBy extends Google_Model
+{
+ public $dataSourceId;
+ public $dataTypeName;
+
+ public function setDataSourceId($dataSourceId)
+ {
+ $this->dataSourceId = $dataSourceId;
+ }
+ public function getDataSourceId()
+ {
+ return $this->dataSourceId;
+ }
+ public function setDataTypeName($dataTypeName)
+ {
+ $this->dataTypeName = $dataTypeName;
+ }
+ public function getDataTypeName()
+ {
+ return $this->dataTypeName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateRequest.php
new file mode 100644
index 00000000..bf8d760c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateRequest.php
@@ -0,0 +1,99 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_AggregateRequest extends Google_Collection
+{
+ protected $collection_key = 'filteredDataQualityStandard';
+ protected $aggregateByType = 'Google_Service_Fitness_AggregateBy';
+ protected $aggregateByDataType = 'array';
+ protected $bucketByActivitySegmentType = 'Google_Service_Fitness_BucketByActivity';
+ protected $bucketByActivitySegmentDataType = '';
+ protected $bucketByActivityTypeType = 'Google_Service_Fitness_BucketByActivity';
+ protected $bucketByActivityTypeDataType = '';
+ protected $bucketBySessionType = 'Google_Service_Fitness_BucketBySession';
+ protected $bucketBySessionDataType = '';
+ protected $bucketByTimeType = 'Google_Service_Fitness_BucketByTime';
+ protected $bucketByTimeDataType = '';
+ public $endTimeMillis;
+ public $filteredDataQualityStandard;
+ public $startTimeMillis;
+
+ public function setAggregateBy($aggregateBy)
+ {
+ $this->aggregateBy = $aggregateBy;
+ }
+ public function getAggregateBy()
+ {
+ return $this->aggregateBy;
+ }
+ public function setBucketByActivitySegment(Google_Service_Fitness_BucketByActivity $bucketByActivitySegment)
+ {
+ $this->bucketByActivitySegment = $bucketByActivitySegment;
+ }
+ public function getBucketByActivitySegment()
+ {
+ return $this->bucketByActivitySegment;
+ }
+ public function setBucketByActivityType(Google_Service_Fitness_BucketByActivity $bucketByActivityType)
+ {
+ $this->bucketByActivityType = $bucketByActivityType;
+ }
+ public function getBucketByActivityType()
+ {
+ return $this->bucketByActivityType;
+ }
+ public function setBucketBySession(Google_Service_Fitness_BucketBySession $bucketBySession)
+ {
+ $this->bucketBySession = $bucketBySession;
+ }
+ public function getBucketBySession()
+ {
+ return $this->bucketBySession;
+ }
+ public function setBucketByTime(Google_Service_Fitness_BucketByTime $bucketByTime)
+ {
+ $this->bucketByTime = $bucketByTime;
+ }
+ public function getBucketByTime()
+ {
+ return $this->bucketByTime;
+ }
+ public function setEndTimeMillis($endTimeMillis)
+ {
+ $this->endTimeMillis = $endTimeMillis;
+ }
+ public function getEndTimeMillis()
+ {
+ return $this->endTimeMillis;
+ }
+ public function setFilteredDataQualityStandard($filteredDataQualityStandard)
+ {
+ $this->filteredDataQualityStandard = $filteredDataQualityStandard;
+ }
+ public function getFilteredDataQualityStandard()
+ {
+ return $this->filteredDataQualityStandard;
+ }
+ public function setStartTimeMillis($startTimeMillis)
+ {
+ $this->startTimeMillis = $startTimeMillis;
+ }
+ public function getStartTimeMillis()
+ {
+ return $this->startTimeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateResponse.php
new file mode 100644
index 00000000..d01f54a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/AggregateResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_AggregateResponse extends Google_Collection
+{
+ protected $collection_key = 'bucket';
+ protected $bucketType = 'Google_Service_Fitness_AggregateBucket';
+ protected $bucketDataType = 'array';
+
+ public function setBucket($bucket)
+ {
+ $this->bucket = $bucket;
+ }
+ public function getBucket()
+ {
+ return $this->bucket;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Application.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Application.php
new file mode 100644
index 00000000..aae83b93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Application.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_Application extends Google_Model
+{
+ public $detailsUrl;
+ public $name;
+ public $packageName;
+ public $version;
+
+ public function setDetailsUrl($detailsUrl)
+ {
+ $this->detailsUrl = $detailsUrl;
+ }
+ public function getDetailsUrl()
+ {
+ return $this->detailsUrl;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPackageName($packageName)
+ {
+ $this->packageName = $packageName;
+ }
+ public function getPackageName()
+ {
+ return $this->packageName;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByActivity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByActivity.php
new file mode 100644
index 00000000..a4949320
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByActivity.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_BucketByActivity extends Google_Model
+{
+ public $activityDataSourceId;
+ public $minDurationMillis;
+
+ public function setActivityDataSourceId($activityDataSourceId)
+ {
+ $this->activityDataSourceId = $activityDataSourceId;
+ }
+ public function getActivityDataSourceId()
+ {
+ return $this->activityDataSourceId;
+ }
+ public function setMinDurationMillis($minDurationMillis)
+ {
+ $this->minDurationMillis = $minDurationMillis;
+ }
+ public function getMinDurationMillis()
+ {
+ return $this->minDurationMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketBySession.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketBySession.php
new file mode 100644
index 00000000..45d3fdf5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketBySession.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_BucketBySession extends Google_Model
+{
+ public $minDurationMillis;
+
+ public function setMinDurationMillis($minDurationMillis)
+ {
+ $this->minDurationMillis = $minDurationMillis;
+ }
+ public function getMinDurationMillis()
+ {
+ return $this->minDurationMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTime.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTime.php
new file mode 100644
index 00000000..2ef6e9d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTime.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_BucketByTime extends Google_Model
+{
+ public $durationMillis;
+ protected $periodType = 'Google_Service_Fitness_BucketByTimePeriod';
+ protected $periodDataType = '';
+
+ public function setDurationMillis($durationMillis)
+ {
+ $this->durationMillis = $durationMillis;
+ }
+ public function getDurationMillis()
+ {
+ return $this->durationMillis;
+ }
+ public function setPeriod(Google_Service_Fitness_BucketByTimePeriod $period)
+ {
+ $this->period = $period;
+ }
+ public function getPeriod()
+ {
+ return $this->period;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTimePeriod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTimePeriod.php
new file mode 100644
index 00000000..e24450be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/BucketByTimePeriod.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_BucketByTimePeriod extends Google_Model
+{
+ public $timeZoneId;
+ public $type;
+ public $value;
+
+ public function setTimeZoneId($timeZoneId)
+ {
+ $this->timeZoneId = $timeZoneId;
+ }
+ public function getTimeZoneId()
+ {
+ return $this->timeZoneId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataPoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataPoint.php
new file mode 100644
index 00000000..fba8a4b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataPoint.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_DataPoint extends Google_Collection
+{
+ protected $collection_key = 'value';
+ public $computationTimeMillis;
+ public $dataTypeName;
+ public $endTimeNanos;
+ public $modifiedTimeMillis;
+ public $originDataSourceId;
+ public $rawTimestampNanos;
+ public $startTimeNanos;
+ protected $valueType = 'Google_Service_Fitness_Value';
+ protected $valueDataType = 'array';
+
+ public function setComputationTimeMillis($computationTimeMillis)
+ {
+ $this->computationTimeMillis = $computationTimeMillis;
+ }
+ public function getComputationTimeMillis()
+ {
+ return $this->computationTimeMillis;
+ }
+ public function setDataTypeName($dataTypeName)
+ {
+ $this->dataTypeName = $dataTypeName;
+ }
+ public function getDataTypeName()
+ {
+ return $this->dataTypeName;
+ }
+ public function setEndTimeNanos($endTimeNanos)
+ {
+ $this->endTimeNanos = $endTimeNanos;
+ }
+ public function getEndTimeNanos()
+ {
+ return $this->endTimeNanos;
+ }
+ public function setModifiedTimeMillis($modifiedTimeMillis)
+ {
+ $this->modifiedTimeMillis = $modifiedTimeMillis;
+ }
+ public function getModifiedTimeMillis()
+ {
+ return $this->modifiedTimeMillis;
+ }
+ public function setOriginDataSourceId($originDataSourceId)
+ {
+ $this->originDataSourceId = $originDataSourceId;
+ }
+ public function getOriginDataSourceId()
+ {
+ return $this->originDataSourceId;
+ }
+ public function setRawTimestampNanos($rawTimestampNanos)
+ {
+ $this->rawTimestampNanos = $rawTimestampNanos;
+ }
+ public function getRawTimestampNanos()
+ {
+ return $this->rawTimestampNanos;
+ }
+ public function setStartTimeNanos($startTimeNanos)
+ {
+ $this->startTimeNanos = $startTimeNanos;
+ }
+ public function getStartTimeNanos()
+ {
+ return $this->startTimeNanos;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataSource.php
new file mode 100644
index 00000000..837ec6f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataSource.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_DataSource extends Google_Collection
+{
+ protected $collection_key = 'dataQualityStandard';
+ protected $applicationType = 'Google_Service_Fitness_Application';
+ protected $applicationDataType = '';
+ public $dataQualityStandard;
+ public $dataStreamId;
+ public $dataStreamName;
+ protected $dataTypeType = 'Google_Service_Fitness_DataType';
+ protected $dataTypeDataType = '';
+ protected $deviceType = 'Google_Service_Fitness_Device';
+ protected $deviceDataType = '';
+ public $name;
+ public $type;
+
+ public function setApplication(Google_Service_Fitness_Application $application)
+ {
+ $this->application = $application;
+ }
+ public function getApplication()
+ {
+ return $this->application;
+ }
+ public function setDataQualityStandard($dataQualityStandard)
+ {
+ $this->dataQualityStandard = $dataQualityStandard;
+ }
+ public function getDataQualityStandard()
+ {
+ return $this->dataQualityStandard;
+ }
+ public function setDataStreamId($dataStreamId)
+ {
+ $this->dataStreamId = $dataStreamId;
+ }
+ public function getDataStreamId()
+ {
+ return $this->dataStreamId;
+ }
+ public function setDataStreamName($dataStreamName)
+ {
+ $this->dataStreamName = $dataStreamName;
+ }
+ public function getDataStreamName()
+ {
+ return $this->dataStreamName;
+ }
+ public function setDataType(Google_Service_Fitness_DataType $dataType)
+ {
+ $this->dataType = $dataType;
+ }
+ public function getDataType()
+ {
+ return $this->dataType;
+ }
+ public function setDevice(Google_Service_Fitness_Device $device)
+ {
+ $this->device = $device;
+ }
+ public function getDevice()
+ {
+ return $this->device;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataType.php
new file mode 100644
index 00000000..74042d11
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataType.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_DataType extends Google_Collection
+{
+ protected $collection_key = 'field';
+ protected $fieldType = 'Google_Service_Fitness_DataTypeField';
+ protected $fieldDataType = 'array';
+ public $name;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataTypeField.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataTypeField.php
new file mode 100644
index 00000000..4439ed84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/DataTypeField.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_DataTypeField extends Google_Model
+{
+ public $format;
+ public $name;
+ public $optional;
+
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptional($optional)
+ {
+ $this->optional = $optional;
+ }
+ public function getOptional()
+ {
+ return $this->optional;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Dataset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Dataset.php
new file mode 100644
index 00000000..cc005a09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Dataset.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_Dataset extends Google_Collection
+{
+ protected $collection_key = 'point';
+ public $dataSourceId;
+ public $maxEndTimeNs;
+ public $minStartTimeNs;
+ public $nextPageToken;
+ protected $pointType = 'Google_Service_Fitness_DataPoint';
+ protected $pointDataType = 'array';
+
+ public function setDataSourceId($dataSourceId)
+ {
+ $this->dataSourceId = $dataSourceId;
+ }
+ public function getDataSourceId()
+ {
+ return $this->dataSourceId;
+ }
+ public function setMaxEndTimeNs($maxEndTimeNs)
+ {
+ $this->maxEndTimeNs = $maxEndTimeNs;
+ }
+ public function getMaxEndTimeNs()
+ {
+ return $this->maxEndTimeNs;
+ }
+ public function setMinStartTimeNs($minStartTimeNs)
+ {
+ $this->minStartTimeNs = $minStartTimeNs;
+ }
+ public function getMinStartTimeNs()
+ {
+ return $this->minStartTimeNs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPoint($point)
+ {
+ $this->point = $point;
+ }
+ public function getPoint()
+ {
+ return $this->point;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Device.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Device.php
new file mode 100644
index 00000000..f286ef1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Device.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_Device extends Google_Model
+{
+ public $manufacturer;
+ public $model;
+ public $type;
+ public $uid;
+ public $version;
+
+ public function setManufacturer($manufacturer)
+ {
+ $this->manufacturer = $manufacturer;
+ }
+ public function getManufacturer()
+ {
+ return $this->manufacturer;
+ }
+ public function setModel($model)
+ {
+ $this->model = $model;
+ }
+ public function getModel()
+ {
+ return $this->model;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUid($uid)
+ {
+ $this->uid = $uid;
+ }
+ public function getUid()
+ {
+ return $this->uid;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListDataSourcesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListDataSourcesResponse.php
new file mode 100644
index 00000000..941acc9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListDataSourcesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_ListDataSourcesResponse extends Google_Collection
+{
+ protected $collection_key = 'dataSource';
+ protected $dataSourceType = 'Google_Service_Fitness_DataSource';
+ protected $dataSourceDataType = 'array';
+
+ public function setDataSource($dataSource)
+ {
+ $this->dataSource = $dataSource;
+ }
+ public function getDataSource()
+ {
+ return $this->dataSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListSessionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListSessionsResponse.php
new file mode 100644
index 00000000..ef0b85f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ListSessionsResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_ListSessionsResponse extends Google_Collection
+{
+ protected $collection_key = 'session';
+ protected $deletedSessionType = 'Google_Service_Fitness_Session';
+ protected $deletedSessionDataType = 'array';
+ public $hasMoreData;
+ public $nextPageToken;
+ protected $sessionType = 'Google_Service_Fitness_Session';
+ protected $sessionDataType = 'array';
+
+ public function setDeletedSession($deletedSession)
+ {
+ $this->deletedSession = $deletedSession;
+ }
+ public function getDeletedSession()
+ {
+ return $this->deletedSession;
+ }
+ public function setHasMoreData($hasMoreData)
+ {
+ $this->hasMoreData = $hasMoreData;
+ }
+ public function getHasMoreData()
+ {
+ return $this->hasMoreData;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSession($session)
+ {
+ $this->session = $session;
+ }
+ public function getSession()
+ {
+ return $this->session;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/MapValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/MapValue.php
new file mode 100644
index 00000000..5131de54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/MapValue.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_MapValue extends Google_Model
+{
+ public $fpVal;
+
+ public function setFpVal($fpVal)
+ {
+ $this->fpVal = $fpVal;
+ }
+ public function getFpVal()
+ {
+ return $this->fpVal;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/Users.php
new file mode 100644
index 00000000..1137392d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/Users.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fitnessService = new Google_Service_Fitness(...);
+ * $users = $fitnessService->users;
+ * </code>
+ */
+class Google_Service_Fitness_Resource_Users extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php
new file mode 100644
index 00000000..7616597d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSources.php
@@ -0,0 +1,143 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dataSources" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fitnessService = new Google_Service_Fitness(...);
+ * $dataSources = $fitnessService->dataSources;
+ * </code>
+ */
+class Google_Service_Fitness_Resource_UsersDataSources extends Google_Service_Resource
+{
+ /**
+ * Creates a new data source that is unique across all data sources belonging to
+ * this user. The data stream ID field can be omitted and will be generated by
+ * the server with the correct format. The data stream ID is an ordered
+ * combination of some fields from the data source. In addition to the data
+ * source fields reflected into the data source ID, the developer project number
+ * that is authenticated when creating the data source is included. This
+ * developer project number is obfuscated when read by any other developer
+ * reading public data types. (dataSources.create)
+ *
+ * @param string $userId Create the data source for the person identified. Use
+ * me to indicate the authenticated user. Only me is supported at this time.
+ * @param Google_Service_Fitness_DataSource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fitness_DataSource
+ */
+ public function create($userId, Google_Service_Fitness_DataSource $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Fitness_DataSource");
+ }
+ /**
+ * Deletes the specified data source. The request will fail if the data source
+ * contains any data points. (dataSources.delete)
+ *
+ * @param string $userId Retrieve a data source for the person identified. Use
+ * me to indicate the authenticated user. Only me is supported at this time.
+ * @param string $dataSourceId The data stream ID of the data source to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fitness_DataSource
+ */
+ public function delete($userId, $dataSourceId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Fitness_DataSource");
+ }
+ /**
+ * Returns the specified data source. (dataSources.get)
+ *
+ * @param string $userId Retrieve a data source for the person identified. Use
+ * me to indicate the authenticated user. Only me is supported at this time.
+ * @param string $dataSourceId The data stream ID of the data source to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fitness_DataSource
+ */
+ public function get($userId, $dataSourceId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Fitness_DataSource");
+ }
+ /**
+ * Lists all data sources that are visible to the developer, using the OAuth
+ * scopes provided. The list is not exhaustive; the user may have private data
+ * sources that are only visible to other developers, or calls using other
+ * scopes. (dataSources.listUsersDataSources)
+ *
+ * @param string $userId List data sources for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dataTypeName The names of data types to include in the
+ * list. If not specified, all data sources will be returned.
+ * @return Google_Service_Fitness_ListDataSourcesResponse
+ */
+ public function listUsersDataSources($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Fitness_ListDataSourcesResponse");
+ }
+ /**
+ * Updates the specified data source. The dataStreamId, dataType, type,
+ * dataStreamName, and device properties with the exception of version, cannot
+ * be modified.
+ *
+ * Data sources are identified by their dataStreamId. This method supports patch
+ * semantics. (dataSources.patch)
+ *
+ * @param string $userId Update the data source for the person identified. Use
+ * me to indicate the authenticated user. Only me is supported at this time.
+ * @param string $dataSourceId The data stream ID of the data source to update.
+ * @param Google_Service_Fitness_DataSource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fitness_DataSource
+ */
+ public function patch($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Fitness_DataSource");
+ }
+ /**
+ * Updates the specified data source. The dataStreamId, dataType, type,
+ * dataStreamName, and device properties with the exception of version, cannot
+ * be modified.
+ *
+ * Data sources are identified by their dataStreamId. (dataSources.update)
+ *
+ * @param string $userId Update the data source for the person identified. Use
+ * me to indicate the authenticated user. Only me is supported at this time.
+ * @param string $dataSourceId The data stream ID of the data source to update.
+ * @param Google_Service_Fitness_DataSource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fitness_DataSource
+ */
+ public function update($userId, $dataSourceId, Google_Service_Fitness_DataSource $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Fitness_DataSource");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSourcesDatasets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSourcesDatasets.php
new file mode 100644
index 00000000..0fca4bd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataSourcesDatasets.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "datasets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fitnessService = new Google_Service_Fitness(...);
+ * $datasets = $fitnessService->datasets;
+ * </code>
+ */
+class Google_Service_Fitness_Resource_UsersDataSourcesDatasets extends Google_Service_Resource
+{
+ /**
+ * Performs an inclusive delete of all data points whose start and end times
+ * have any overlap with the time range specified by the dataset ID. For most
+ * data types, the entire data point will be deleted. For data types where the
+ * time span represents a consistent value (such as
+ * com.google.activity.segment), and a data point straddles either end point of
+ * the dataset, only the overlapping portion of the data point will be deleted.
+ * (datasets.delete)
+ *
+ * @param string $userId Delete a dataset for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param string $dataSourceId The data stream ID of the data source that
+ * created the dataset.
+ * @param string $datasetId Dataset identifier that is a composite of the
+ * minimum data point start time and maximum data point end time represented as
+ * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
+ * where startTime and endTime are 64 bit integers.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currentTimeMillis The client's current time in milliseconds
+ * since epoch.
+ * @opt_param string modifiedTimeMillis When the operation was performed on the
+ * client.
+ */
+ public function delete($userId, $dataSourceId, $datasetId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns a dataset containing all data points whose start and end times
+ * overlap with the specified range of the dataset minimum start time and
+ * maximum end time. Specifically, any data point whose start time is less than
+ * or equal to the dataset end time and whose end time is greater than or equal
+ * to the dataset start time. (datasets.get)
+ *
+ * @param string $userId Retrieve a dataset for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param string $dataSourceId The data stream ID of the data source that
+ * created the dataset.
+ * @param string $datasetId Dataset identifier that is a composite of the
+ * minimum data point start time and maximum data point end time represented as
+ * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
+ * where startTime and endTime are 64 bit integers.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int limit If specified, no more than this many data points will be
+ * included in the dataset. If there are more data points in the dataset,
+ * nextPageToken will be set in the dataset response.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large datasets. To get the next page of a dataset, set this parameter
+ * to the value of nextPageToken from the previous response. Each subsequent
+ * call will yield a partial dataset with data point end timestamps that are
+ * strictly smaller than those in the previous partial response.
+ * @return Google_Service_Fitness_Dataset
+ */
+ public function get($userId, $dataSourceId, $datasetId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Fitness_Dataset");
+ }
+ /**
+ * Adds data points to a dataset. The dataset need not be previously created.
+ * All points within the given dataset will be returned with subsquent calls to
+ * retrieve this dataset. Data points can belong to more than one dataset. This
+ * method does not use patch semantics. (datasets.patch)
+ *
+ * @param string $userId Patch a dataset for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param string $dataSourceId The data stream ID of the data source that
+ * created the dataset.
+ * @param string $datasetId Dataset identifier that is a composite of the
+ * minimum data point start time and maximum data point end time represented as
+ * nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
+ * where startTime and endTime are 64 bit integers.
+ * @param Google_Service_Fitness_Dataset $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currentTimeMillis The client's current time in milliseconds
+ * since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the
+ * request body are in nanoseconds instead of milliseconds.
+ * @return Google_Service_Fitness_Dataset
+ */
+ public function patch($userId, $dataSourceId, $datasetId, Google_Service_Fitness_Dataset $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Fitness_Dataset");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataset.php
new file mode 100644
index 00000000..76e83451
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersDataset.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "dataset" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fitnessService = new Google_Service_Fitness(...);
+ * $dataset = $fitnessService->dataset;
+ * </code>
+ */
+class Google_Service_Fitness_Resource_UsersDataset extends Google_Service_Resource
+{
+ /**
+ * Aggregates data of a certain type or stream into buckets divided by a given
+ * type of boundary. Multiple data sets of multiple types and from multiple
+ * sources can be aggreated into exactly one bucket type per request.
+ * (dataset.aggregate)
+ *
+ * @param string $userId Aggregate data for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param Google_Service_Fitness_AggregateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fitness_AggregateResponse
+ */
+ public function aggregate($userId, Google_Service_Fitness_AggregateRequest $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregate', array($params), "Google_Service_Fitness_AggregateResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php
new file mode 100644
index 00000000..d610485c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Resource/UsersSessions.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sessions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fitnessService = new Google_Service_Fitness(...);
+ * $sessions = $fitnessService->sessions;
+ * </code>
+ */
+class Google_Service_Fitness_Resource_UsersSessions extends Google_Service_Resource
+{
+ /**
+ * Deletes a session specified by the given session ID. (sessions.delete)
+ *
+ * @param string $userId Delete a session for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param string $sessionId The ID of the session to be deleted.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currentTimeMillis The client's current time in milliseconds
+ * since epoch.
+ */
+ public function delete($userId, $sessionId, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sessionId' => $sessionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Lists sessions previously created. (sessions.listUsersSessions)
+ *
+ * @param string $userId List sessions for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endTime An RFC3339 timestamp. Only sessions ending between
+ * the start and end times will be included in the response.
+ * @opt_param bool includeDeleted If true, deleted sessions will be returned.
+ * When set to true, sessions returned in this response will only have an ID and
+ * will not have any other fields.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of nextPageToken from the previous response.
+ * @opt_param string startTime An RFC3339 timestamp. Only sessions ending
+ * between the start and end times will be included in the response.
+ * @return Google_Service_Fitness_ListSessionsResponse
+ */
+ public function listUsersSessions($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Fitness_ListSessionsResponse");
+ }
+ /**
+ * Updates or insert a given session. (sessions.update)
+ *
+ * @param string $userId Create sessions for the person identified. Use me to
+ * indicate the authenticated user. Only me is supported at this time.
+ * @param string $sessionId The ID of the session to be created.
+ * @param Google_Service_Fitness_Session $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currentTimeMillis The client's current time in milliseconds
+ * since epoch.
+ * @return Google_Service_Fitness_Session
+ */
+ public function update($userId, $sessionId, Google_Service_Fitness_Session $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sessionId' => $sessionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Fitness_Session");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Session.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Session.php
new file mode 100644
index 00000000..c1ae1290
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Session.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_Session extends Google_Model
+{
+ public $activeTimeMillis;
+ public $activityType;
+ protected $applicationType = 'Google_Service_Fitness_Application';
+ protected $applicationDataType = '';
+ public $description;
+ public $endTimeMillis;
+ public $id;
+ public $modifiedTimeMillis;
+ public $name;
+ public $startTimeMillis;
+
+ public function setActiveTimeMillis($activeTimeMillis)
+ {
+ $this->activeTimeMillis = $activeTimeMillis;
+ }
+ public function getActiveTimeMillis()
+ {
+ return $this->activeTimeMillis;
+ }
+ public function setActivityType($activityType)
+ {
+ $this->activityType = $activityType;
+ }
+ public function getActivityType()
+ {
+ return $this->activityType;
+ }
+ public function setApplication(Google_Service_Fitness_Application $application)
+ {
+ $this->application = $application;
+ }
+ public function getApplication()
+ {
+ return $this->application;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTimeMillis($endTimeMillis)
+ {
+ $this->endTimeMillis = $endTimeMillis;
+ }
+ public function getEndTimeMillis()
+ {
+ return $this->endTimeMillis;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setModifiedTimeMillis($modifiedTimeMillis)
+ {
+ $this->modifiedTimeMillis = $modifiedTimeMillis;
+ }
+ public function getModifiedTimeMillis()
+ {
+ return $this->modifiedTimeMillis;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStartTimeMillis($startTimeMillis)
+ {
+ $this->startTimeMillis = $startTimeMillis;
+ }
+ public function getStartTimeMillis()
+ {
+ return $this->startTimeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Value.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Value.php
new file mode 100644
index 00000000..273ed061
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/Value.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_Value extends Google_Collection
+{
+ protected $collection_key = 'mapVal';
+ public $fpVal;
+ public $intVal;
+ protected $mapValType = 'Google_Service_Fitness_ValueMapValEntry';
+ protected $mapValDataType = 'array';
+ public $stringVal;
+
+ public function setFpVal($fpVal)
+ {
+ $this->fpVal = $fpVal;
+ }
+ public function getFpVal()
+ {
+ return $this->fpVal;
+ }
+ public function setIntVal($intVal)
+ {
+ $this->intVal = $intVal;
+ }
+ public function getIntVal()
+ {
+ return $this->intVal;
+ }
+ public function setMapVal($mapVal)
+ {
+ $this->mapVal = $mapVal;
+ }
+ public function getMapVal()
+ {
+ return $this->mapVal;
+ }
+ public function setStringVal($stringVal)
+ {
+ $this->stringVal = $stringVal;
+ }
+ public function getStringVal()
+ {
+ return $this->stringVal;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ValueMapValEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ValueMapValEntry.php
new file mode 100644
index 00000000..fb99ddfd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fitness/ValueMapValEntry.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fitness_ValueMapValEntry extends Google_Model
+{
+ public $key;
+ protected $valueType = 'Google_Service_Fitness_MapValue';
+ protected $valueDataType = '';
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue(Google_Service_Fitness_MapValue $value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase.php
new file mode 100644
index 00000000..2c0e9ca6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase.php
@@ -0,0 +1,258 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Freebase (v1).
+ *
+ * <p>
+ * Find Freebase entities using textual queries and other constraints.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/freebase/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Freebase extends Google_Service
+{
+
+
+
+ private $base_methods;
+ /**
+ * Constructs the internal representation of the Freebase service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'freebase/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'freebase';
+
+ $this->base_methods = new Google_Service_Resource(
+ $this,
+ $this->serviceName,
+ '',
+ array(
+ 'methods' => array(
+ 'reconcile' => array(
+ 'path' => 'reconcile',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'confidence' => array(
+ 'location' => 'query',
+ 'type' => 'number',
+ ),
+ 'kind' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'lang' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'limit' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'prop' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'search',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'as_of_time' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'callback' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'cursor' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'domain' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'encode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'exact' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'help' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'indent' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'lang' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'limit' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mid' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'mql_output' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'output' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'prefixed' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'scoring' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'spell' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'stemmed' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'with' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'without' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+ /**
+ * Reconcile entities to Freebase open data. (reconcile)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param float confidence Required confidence for a candidate to match.
+ * Must be between .5 and 1.0
+ * @opt_param string kind Classifications of entity e.g. type, category, title.
+ * @opt_param string lang Languages for names and values. First language is used
+ * for display. Default is 'en'.
+ * @opt_param int limit Maximum number of candidates to return.
+ * @opt_param string name Name of entity.
+ * @opt_param string prop Property values for entity formatted as :
+ * @return Google_Service_Freebase_ReconcileGet
+ */
+ public function reconcile($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->base_methods->call('reconcile', array($params), "Google_Service_Freebase_ReconcileGet");
+ }
+ /**
+ * Search Freebase open data. (search)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string as_of_time A mql as_of_time value to use with mql_output
+ * queries.
+ * @opt_param string callback JS method name for JSONP callbacks.
+ * @opt_param int cursor The cursor value to use for the next page of results.
+ * @opt_param string domain Restrict to topics with this Freebase domain id.
+ * @opt_param string encode The encoding of the response. You can use this
+ * parameter to enable html encoding.
+ * @opt_param bool exact Query on exact name and keys only.
+ * @opt_param string filter A filter to apply to the query.
+ * @opt_param string format Structural format of the json response.
+ * @opt_param string help The keyword to request help on.
+ * @opt_param bool indent Whether to indent the json results or not.
+ * @opt_param string lang The code of the language to run the query with.
+ * Default is 'en'.
+ * @opt_param int limit Maximum number of results to return.
+ * @opt_param string mid A mid to use instead of a query.
+ * @opt_param string mql_output The MQL query to run againist the results to
+ * extract more data.
+ * @opt_param string output An output expression to request data from matches.
+ * @opt_param bool prefixed Prefix match against names and aliases.
+ * @opt_param string query Query term to search for.
+ * @opt_param string scoring Relevance scoring algorithm to use.
+ * @opt_param string spell Request 'did you mean' suggestions
+ * @opt_param bool stemmed Query on stemmed names and aliases. May not be used
+ * with prefixed.
+ * @opt_param string type Restrict to topics with this Freebase type id.
+ * @opt_param string with A rule to match against.
+ * @opt_param string without A rule to not match against.
+ */
+ public function search($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->base_methods->call('search', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidate.php
new file mode 100644
index 00000000..f642d16e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidate.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Freebase_ReconcileCandidate extends Google_Model
+{
+ public $confidence;
+ public $lang;
+ public $mid;
+ public $name;
+ protected $notableType = 'Google_Service_Freebase_ReconcileCandidateNotable';
+ protected $notableDataType = '';
+
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setLang($lang)
+ {
+ $this->lang = $lang;
+ }
+ public function getLang()
+ {
+ return $this->lang;
+ }
+ public function setMid($mid)
+ {
+ $this->mid = $mid;
+ }
+ public function getMid()
+ {
+ return $this->mid;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotable(Google_Service_Freebase_ReconcileCandidateNotable $notable)
+ {
+ $this->notable = $notable;
+ }
+ public function getNotable()
+ {
+ return $this->notable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidateNotable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidateNotable.php
new file mode 100644
index 00000000..4a75e047
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileCandidateNotable.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Freebase_ReconcileCandidateNotable extends Google_Model
+{
+ public $id;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGet.php
new file mode 100644
index 00000000..8abc62c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGet.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Freebase_ReconcileGet extends Google_Collection
+{
+ protected $collection_key = 'warning';
+ protected $candidateType = 'Google_Service_Freebase_ReconcileCandidate';
+ protected $candidateDataType = 'array';
+ protected $costsType = 'Google_Service_Freebase_ReconcileGetCosts';
+ protected $costsDataType = '';
+ protected $matchType = 'Google_Service_Freebase_ReconcileCandidate';
+ protected $matchDataType = '';
+ protected $warningType = 'Google_Service_Freebase_ReconcileGetWarning';
+ protected $warningDataType = 'array';
+
+ public function setCandidate($candidate)
+ {
+ $this->candidate = $candidate;
+ }
+ public function getCandidate()
+ {
+ return $this->candidate;
+ }
+ public function setCosts(Google_Service_Freebase_ReconcileGetCosts $costs)
+ {
+ $this->costs = $costs;
+ }
+ public function getCosts()
+ {
+ return $this->costs;
+ }
+ public function setMatch(Google_Service_Freebase_ReconcileCandidate $match)
+ {
+ $this->match = $match;
+ }
+ public function getMatch()
+ {
+ return $this->match;
+ }
+ public function setWarning($warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetCosts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetCosts.php
new file mode 100644
index 00000000..9157995b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetCosts.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Freebase_ReconcileGetCosts extends Google_Model
+{
+ public $hits;
+ public $ms;
+
+ public function setHits($hits)
+ {
+ $this->hits = $hits;
+ }
+ public function getHits()
+ {
+ return $this->hits;
+ }
+ public function setMs($ms)
+ {
+ $this->ms = $ms;
+ }
+ public function getMs()
+ {
+ return $this->ms;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetWarning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetWarning.php
new file mode 100644
index 00000000..7e5a9cec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Freebase/ReconcileGetWarning.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Freebase_ReconcileGetWarning extends Google_Model
+{
+ public $location;
+ public $message;
+ public $reason;
+
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables.php
new file mode 100644
index 00000000..7c51871e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables.php
@@ -0,0 +1,630 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Fusiontables (v2).
+ *
+ * <p>
+ * API for working with Fusion Tables data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/fusiontables" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Fusiontables extends Google_Service
+{
+ /** Manage your Fusion Tables. */
+ const FUSIONTABLES =
+ "https://www.googleapis.com/auth/fusiontables";
+ /** View your Fusion Tables. */
+ const FUSIONTABLES_READONLY =
+ "https://www.googleapis.com/auth/fusiontables.readonly";
+
+ public $column;
+ public $query;
+ public $style;
+ public $table;
+ public $task;
+ public $template;
+
+ /**
+ * Constructs the internal representation of the Fusiontables service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'fusiontables/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'fusiontables';
+
+ $this->column = new Google_Service_Fusiontables_Resource_Column(
+ $this,
+ $this->serviceName,
+ 'column',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'tables/{tableId}/columns/{columnId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'columnId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'tables/{tableId}/columns/{columnId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'columnId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'tables/{tableId}/columns',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'tables/{tableId}/columns',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'tables/{tableId}/columns/{columnId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'columnId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'tables/{tableId}/columns/{columnId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'columnId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->query = new Google_Service_Fusiontables_Resource_Query(
+ $this,
+ $this->serviceName,
+ 'query',
+ array(
+ 'methods' => array(
+ 'sql' => array(
+ 'path' => 'query',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'sql' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hdrs' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'typed' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'sqlGet' => array(
+ 'path' => 'query',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'sql' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hdrs' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'typed' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->style = new Google_Service_Fusiontables_Resource_Style(
+ $this,
+ $this->serviceName,
+ 'style',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'tables/{tableId}/styles/{styleId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'styleId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'tables/{tableId}/styles/{styleId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'styleId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'tables/{tableId}/styles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'tables/{tableId}/styles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'tables/{tableId}/styles/{styleId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'styleId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'tables/{tableId}/styles/{styleId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'styleId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->table = new Google_Service_Fusiontables_Resource_Table(
+ $this,
+ $this->serviceName,
+ 'table',
+ array(
+ 'methods' => array(
+ 'copy' => array(
+ 'path' => 'tables/{tableId}/copy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'copyPresentation' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'tables/{tableId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'tables/{tableId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'importRows' => array(
+ 'path' => 'tables/{tableId}/import',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'delimiter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'encoding' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endLine' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'isStrict' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'startLine' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'importTable' => array(
+ 'path' => 'tables/import',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'delimiter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'encoding' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'tables',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'tables',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'tables/{tableId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'replaceViewDefinition' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'replaceRows' => array(
+ 'path' => 'tables/{tableId}/replace',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'delimiter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'encoding' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endLine' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'isStrict' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'startLine' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'tables/{tableId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'replaceViewDefinition' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->task = new Google_Service_Fusiontables_Resource_Task(
+ $this,
+ $this->serviceName,
+ 'task',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'tables/{tableId}/tasks/{taskId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'tables/{tableId}/tasks/{taskId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'tables/{tableId}/tasks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->template = new Google_Service_Fusiontables_Resource_Template(
+ $this,
+ $this->serviceName,
+ 'template',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'tables/{tableId}/templates/{templateId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'templateId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'tables/{tableId}/templates/{templateId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'templateId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'tables/{tableId}/templates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'tables/{tableId}/templates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'tables/{tableId}/templates/{templateId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'templateId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'tables/{tableId}/templates/{templateId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'tableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'templateId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Bucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Bucket.php
new file mode 100644
index 00000000..b8d29340
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Bucket.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Bucket extends Google_Model
+{
+ public $color;
+ public $icon;
+ public $max;
+ public $min;
+ public $opacity;
+ public $weight;
+
+ public function setColor($color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setIcon($icon)
+ {
+ $this->icon = $icon;
+ }
+ public function getIcon()
+ {
+ return $this->icon;
+ }
+ public function setMax($max)
+ {
+ $this->max = $max;
+ }
+ public function getMax()
+ {
+ return $this->max;
+ }
+ public function setMin($min)
+ {
+ $this->min = $min;
+ }
+ public function getMin()
+ {
+ return $this->min;
+ }
+ public function setOpacity($opacity)
+ {
+ $this->opacity = $opacity;
+ }
+ public function getOpacity()
+ {
+ return $this->opacity;
+ }
+ public function setWeight($weight)
+ {
+ $this->weight = $weight;
+ }
+ public function getWeight()
+ {
+ return $this->weight;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Column.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Column.php
new file mode 100644
index 00000000..6af64b21
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Column.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Column extends Google_Collection
+{
+ protected $collection_key = 'validValues';
+ protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn';
+ protected $baseColumnDataType = '';
+ public $columnId;
+ public $columnJsonSchema;
+ public $columnPropertiesJson;
+ public $description;
+ public $formatPattern;
+ public $graphPredicate;
+ public $kind;
+ public $name;
+ public $type;
+ public $validValues;
+ public $validateData;
+
+ public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn $baseColumn)
+ {
+ $this->baseColumn = $baseColumn;
+ }
+ public function getBaseColumn()
+ {
+ return $this->baseColumn;
+ }
+ public function setColumnId($columnId)
+ {
+ $this->columnId = $columnId;
+ }
+ public function getColumnId()
+ {
+ return $this->columnId;
+ }
+ public function setColumnJsonSchema($columnJsonSchema)
+ {
+ $this->columnJsonSchema = $columnJsonSchema;
+ }
+ public function getColumnJsonSchema()
+ {
+ return $this->columnJsonSchema;
+ }
+ public function setColumnPropertiesJson($columnPropertiesJson)
+ {
+ $this->columnPropertiesJson = $columnPropertiesJson;
+ }
+ public function getColumnPropertiesJson()
+ {
+ return $this->columnPropertiesJson;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFormatPattern($formatPattern)
+ {
+ $this->formatPattern = $formatPattern;
+ }
+ public function getFormatPattern()
+ {
+ return $this->formatPattern;
+ }
+ public function setGraphPredicate($graphPredicate)
+ {
+ $this->graphPredicate = $graphPredicate;
+ }
+ public function getGraphPredicate()
+ {
+ return $this->graphPredicate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValidValues($validValues)
+ {
+ $this->validValues = $validValues;
+ }
+ public function getValidValues()
+ {
+ return $this->validValues;
+ }
+ public function setValidateData($validateData)
+ {
+ $this->validateData = $validateData;
+ }
+ public function getValidateData()
+ {
+ return $this->validateData;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnBaseColumn.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnBaseColumn.php
new file mode 100644
index 00000000..0dcd6e52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnBaseColumn.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model
+{
+ public $columnId;
+ public $tableIndex;
+
+ public function setColumnId($columnId)
+ {
+ $this->columnId = $columnId;
+ }
+ public function getColumnId()
+ {
+ return $this->columnId;
+ }
+ public function setTableIndex($tableIndex)
+ {
+ $this->tableIndex = $tableIndex;
+ }
+ public function getTableIndex()
+ {
+ return $this->tableIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnList.php
new file mode 100644
index 00000000..2f04ef80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/ColumnList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_ColumnList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Fusiontables_Column';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Geometry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Geometry.php
new file mode 100644
index 00000000..9852b8b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Geometry.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Geometry extends Google_Collection
+{
+ protected $collection_key = 'geometries';
+ public $geometries;
+ public $geometry;
+ public $type;
+
+ public function setGeometries($geometries)
+ {
+ $this->geometries = $geometries;
+ }
+ public function getGeometries()
+ {
+ return $this->geometries;
+ }
+ public function setGeometry($geometry)
+ {
+ $this->geometry = $geometry;
+ }
+ public function getGeometry()
+ {
+ return $this->geometry;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Import.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Import.php
new file mode 100644
index 00000000..63dd9aaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Import.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Import extends Google_Model
+{
+ public $kind;
+ public $numRowsReceived;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumRowsReceived($numRowsReceived)
+ {
+ $this->numRowsReceived = $numRowsReceived;
+ }
+ public function getNumRowsReceived()
+ {
+ return $this->numRowsReceived;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Line.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Line.php
new file mode 100644
index 00000000..ee490bd6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Line.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Line extends Google_Collection
+{
+ protected $collection_key = 'coordinates';
+ public $coordinates;
+ public $type;
+
+ public function setCoordinates($coordinates)
+ {
+ $this->coordinates = $coordinates;
+ }
+ public function getCoordinates()
+ {
+ return $this->coordinates;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/LineStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/LineStyle.php
new file mode 100644
index 00000000..ff7e78f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/LineStyle.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_LineStyle extends Google_Model
+{
+ public $strokeColor;
+ protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $strokeColorStylerDataType = '';
+ public $strokeOpacity;
+ public $strokeWeight;
+ protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $strokeWeightStylerDataType = '';
+
+ public function setStrokeColor($strokeColor)
+ {
+ $this->strokeColor = $strokeColor;
+ }
+ public function getStrokeColor()
+ {
+ return $this->strokeColor;
+ }
+ public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler)
+ {
+ $this->strokeColorStyler = $strokeColorStyler;
+ }
+ public function getStrokeColorStyler()
+ {
+ return $this->strokeColorStyler;
+ }
+ public function setStrokeOpacity($strokeOpacity)
+ {
+ $this->strokeOpacity = $strokeOpacity;
+ }
+ public function getStrokeOpacity()
+ {
+ return $this->strokeOpacity;
+ }
+ public function setStrokeWeight($strokeWeight)
+ {
+ $this->strokeWeight = $strokeWeight;
+ }
+ public function getStrokeWeight()
+ {
+ return $this->strokeWeight;
+ }
+ public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler)
+ {
+ $this->strokeWeightStyler = $strokeWeightStyler;
+ }
+ public function getStrokeWeightStyler()
+ {
+ return $this->strokeWeightStyler;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Point.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Point.php
new file mode 100644
index 00000000..bceb6895
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Point.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Point extends Google_Collection
+{
+ protected $collection_key = 'coordinates';
+ public $coordinates;
+ public $type;
+
+ public function setCoordinates($coordinates)
+ {
+ $this->coordinates = $coordinates;
+ }
+ public function getCoordinates()
+ {
+ return $this->coordinates;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PointStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PointStyle.php
new file mode 100644
index 00000000..c00480d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PointStyle.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_PointStyle extends Google_Model
+{
+ public $iconName;
+ protected $iconStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $iconStylerDataType = '';
+
+ public function setIconName($iconName)
+ {
+ $this->iconName = $iconName;
+ }
+ public function getIconName()
+ {
+ return $this->iconName;
+ }
+ public function setIconStyler(Google_Service_Fusiontables_StyleFunction $iconStyler)
+ {
+ $this->iconStyler = $iconStyler;
+ }
+ public function getIconStyler()
+ {
+ return $this->iconStyler;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Polygon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Polygon.php
new file mode 100644
index 00000000..519bf8ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Polygon.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Polygon extends Google_Collection
+{
+ protected $collection_key = 'coordinates';
+ public $coordinates;
+ public $type;
+
+ public function setCoordinates($coordinates)
+ {
+ $this->coordinates = $coordinates;
+ }
+ public function getCoordinates()
+ {
+ return $this->coordinates;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PolygonStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PolygonStyle.php
new file mode 100644
index 00000000..14a3102e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/PolygonStyle.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_PolygonStyle extends Google_Model
+{
+ public $fillColor;
+ protected $fillColorStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $fillColorStylerDataType = '';
+ public $fillOpacity;
+ public $strokeColor;
+ protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $strokeColorStylerDataType = '';
+ public $strokeOpacity;
+ public $strokeWeight;
+ protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $strokeWeightStylerDataType = '';
+
+ public function setFillColor($fillColor)
+ {
+ $this->fillColor = $fillColor;
+ }
+ public function getFillColor()
+ {
+ return $this->fillColor;
+ }
+ public function setFillColorStyler(Google_Service_Fusiontables_StyleFunction $fillColorStyler)
+ {
+ $this->fillColorStyler = $fillColorStyler;
+ }
+ public function getFillColorStyler()
+ {
+ return $this->fillColorStyler;
+ }
+ public function setFillOpacity($fillOpacity)
+ {
+ $this->fillOpacity = $fillOpacity;
+ }
+ public function getFillOpacity()
+ {
+ return $this->fillOpacity;
+ }
+ public function setStrokeColor($strokeColor)
+ {
+ $this->strokeColor = $strokeColor;
+ }
+ public function getStrokeColor()
+ {
+ return $this->strokeColor;
+ }
+ public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler)
+ {
+ $this->strokeColorStyler = $strokeColorStyler;
+ }
+ public function getStrokeColorStyler()
+ {
+ return $this->strokeColorStyler;
+ }
+ public function setStrokeOpacity($strokeOpacity)
+ {
+ $this->strokeOpacity = $strokeOpacity;
+ }
+ public function getStrokeOpacity()
+ {
+ return $this->strokeOpacity;
+ }
+ public function setStrokeWeight($strokeWeight)
+ {
+ $this->strokeWeight = $strokeWeight;
+ }
+ public function getStrokeWeight()
+ {
+ return $this->strokeWeight;
+ }
+ public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler)
+ {
+ $this->strokeWeightStyler = $strokeWeightStyler;
+ }
+ public function getStrokeWeightStyler()
+ {
+ return $this->strokeWeightStyler;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Column.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Column.php
new file mode 100644
index 00000000..6cbf88bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Column.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "column" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fusiontablesService = new Google_Service_Fusiontables(...);
+ * $column = $fusiontablesService->column;
+ * </code>
+ */
+class Google_Service_Fusiontables_Resource_Column extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified column. (column.delete)
+ *
+ * @param string $tableId Table from which the column is being deleted.
+ * @param string $columnId Name or identifier for the column being deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($tableId, $columnId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'columnId' => $columnId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a specific column by its ID. (column.get)
+ *
+ * @param string $tableId Table to which the column belongs.
+ * @param string $columnId Name or identifier for the column that is being
+ * requested.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Column
+ */
+ public function get($tableId, $columnId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'columnId' => $columnId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Fusiontables_Column");
+ }
+ /**
+ * Adds a new column to the table. (column.insert)
+ *
+ * @param string $tableId Table for which a new column is being added.
+ * @param Google_Service_Fusiontables_Column $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Column
+ */
+ public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Fusiontables_Column");
+ }
+ /**
+ * Retrieves a list of columns. (column.listColumn)
+ *
+ * @param string $tableId Table whose columns are being listed.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of columns to return. Default is
+ * 5.
+ * @opt_param string pageToken Continuation token specifying which result page
+ * to return.
+ * @return Google_Service_Fusiontables_ColumnList
+ */
+ public function listColumn($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList");
+ }
+ /**
+ * Updates the name or type of an existing column. This method supports patch
+ * semantics. (column.patch)
+ *
+ * @param string $tableId Table for which the column is being updated.
+ * @param string $columnId Name or identifier for the column that is being
+ * updated.
+ * @param Google_Service_Fusiontables_Column $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Column
+ */
+ public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Fusiontables_Column");
+ }
+ /**
+ * Updates the name or type of an existing column. (column.update)
+ *
+ * @param string $tableId Table for which the column is being updated.
+ * @param string $columnId Name or identifier for the column that is being
+ * updated.
+ * @param Google_Service_Fusiontables_Column $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Column
+ */
+ public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Fusiontables_Column");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Query.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Query.php
new file mode 100644
index 00000000..f2fb6562
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Query.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "query" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fusiontablesService = new Google_Service_Fusiontables(...);
+ * $query = $fusiontablesService->query;
+ * </code>
+ */
+class Google_Service_Fusiontables_Resource_Query extends Google_Service_Resource
+{
+ /**
+ * Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT
+ * - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement. (query.sql)
+ *
+ * @param string $sql A Fusion Tables SQL statement, which can be any of -
+ * SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool hdrs Whether column names are included in the first row.
+ * Default is true.
+ * @opt_param bool typed Whether typed values are returned in the (JSON)
+ * response: numbers for numeric values and parsed geometries for KML values.
+ * Default is true.
+ * @return Google_Service_Fusiontables_Sqlresponse
+ */
+ public function sql($sql, $optParams = array())
+ {
+ $params = array('sql' => $sql);
+ $params = array_merge($params, $optParams);
+ return $this->call('sql', array($params), "Google_Service_Fusiontables_Sqlresponse");
+ }
+ /**
+ * Executes a SQL statement which can be any of - SELECT - SHOW - DESCRIBE
+ * (query.sqlGet)
+ *
+ * @param string $sql A SQL statement which can be any of - SELECT - SHOW -
+ * DESCRIBE
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool hdrs Whether column names are included (in the first row).
+ * Default is true.
+ * @opt_param bool typed Whether typed values are returned in the (JSON)
+ * response: numbers for numeric values and parsed geometries for KML values.
+ * Default is true.
+ * @return Google_Service_Fusiontables_Sqlresponse
+ */
+ public function sqlGet($sql, $optParams = array())
+ {
+ $params = array('sql' => $sql);
+ $params = array_merge($params, $optParams);
+ return $this->call('sqlGet', array($params), "Google_Service_Fusiontables_Sqlresponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Style.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Style.php
new file mode 100644
index 00000000..a4827806
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Style.php
@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "style" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fusiontablesService = new Google_Service_Fusiontables(...);
+ * $style = $fusiontablesService->style;
+ * </code>
+ */
+class Google_Service_Fusiontables_Resource_Style extends Google_Service_Resource
+{
+ /**
+ * Deletes a style. (style.delete)
+ *
+ * @param string $tableId Table from which the style is being deleted
+ * @param int $styleId Identifier (within a table) for the style being deleted
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($tableId, $styleId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'styleId' => $styleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a specific style. (style.get)
+ *
+ * @param string $tableId Table to which the requested style belongs
+ * @param int $styleId Identifier (integer) for a specific style in a table
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_StyleSetting
+ */
+ public function get($tableId, $styleId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'styleId' => $styleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting");
+ }
+ /**
+ * Adds a new style for the table. (style.insert)
+ *
+ * @param string $tableId Table for which a new style is being added
+ * @param Google_Service_Fusiontables_StyleSetting $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_StyleSetting
+ */
+ public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting");
+ }
+ /**
+ * Retrieves a list of styles. (style.listStyle)
+ *
+ * @param string $tableId Table whose styles are being listed
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of styles to return. Optional.
+ * Default is 5.
+ * @opt_param string pageToken Continuation token specifying which result page
+ * to return. Optional.
+ * @return Google_Service_Fusiontables_StyleSettingList
+ */
+ public function listStyle($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList");
+ }
+ /**
+ * Updates an existing style. This method supports patch semantics.
+ * (style.patch)
+ *
+ * @param string $tableId Table whose style is being updated.
+ * @param int $styleId Identifier (within a table) for the style being updated.
+ * @param Google_Service_Fusiontables_StyleSetting $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_StyleSetting
+ */
+ public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting");
+ }
+ /**
+ * Updates an existing style. (style.update)
+ *
+ * @param string $tableId Table whose style is being updated.
+ * @param int $styleId Identifier (within a table) for the style being updated.
+ * @param Google_Service_Fusiontables_StyleSetting $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_StyleSetting
+ */
+ public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Table.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Table.php
new file mode 100644
index 00000000..a556b0d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Table.php
@@ -0,0 +1,212 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "table" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fusiontablesService = new Google_Service_Fusiontables(...);
+ * $table = $fusiontablesService->table;
+ * </code>
+ */
+class Google_Service_Fusiontables_Resource_Table extends Google_Service_Resource
+{
+ /**
+ * Copies a table. (table.copy)
+ *
+ * @param string $tableId ID of the table that is being copied.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool copyPresentation Whether to also copy tabs, styles, and
+ * templates. Default is false.
+ * @return Google_Service_Fusiontables_Table
+ */
+ public function copy($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('copy', array($params), "Google_Service_Fusiontables_Table");
+ }
+ /**
+ * Deletes a table. (table.delete)
+ *
+ * @param string $tableId ID of the table to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a specific table by its ID. (table.get)
+ *
+ * @param string $tableId Identifier for the table being requested.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Table
+ */
+ public function get($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Fusiontables_Table");
+ }
+ /**
+ * Imports more rows into a table. (table.importRows)
+ *
+ * @param string $tableId The table into which new rows are being imported.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delimiter The delimiter used to separate cell values. This
+ * can only consist of a single character. Default is ,.
+ * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
+ * auto-detect if you are unsure of the encoding.
+ * @opt_param int endLine The index of the line up to which data will be
+ * imported. Default is to import the entire file. If endLine is negative, it is
+ * an offset from the end of the file; the imported content will exclude the
+ * last endLine lines.
+ * @opt_param bool isStrict Whether the imported CSV must have the same number
+ * of values for each row. If false, rows with fewer values will be padded with
+ * empty values. Default is true.
+ * @opt_param int startLine The index of the first line from which to start
+ * importing, inclusive. Default is 0.
+ * @return Google_Service_Fusiontables_Import
+ */
+ public function importRows($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('importRows', array($params), "Google_Service_Fusiontables_Import");
+ }
+ /**
+ * Imports a new table. (table.importTable)
+ *
+ * @param string $name The name to be assigned to the new table.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delimiter The delimiter used to separate cell values. This
+ * can only consist of a single character. Default is ,.
+ * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
+ * auto-detect if you are unsure of the encoding.
+ * @return Google_Service_Fusiontables_Table
+ */
+ public function importTable($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('importTable', array($params), "Google_Service_Fusiontables_Table");
+ }
+ /**
+ * Creates a new table. (table.insert)
+ *
+ * @param Google_Service_Fusiontables_Table $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Table
+ */
+ public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Fusiontables_Table");
+ }
+ /**
+ * Retrieves a list of tables a user owns. (table.listTable)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of tables to return. Default is
+ * 5.
+ * @opt_param string pageToken Continuation token specifying which result page
+ * to return.
+ * @return Google_Service_Fusiontables_TableList
+ */
+ public function listTable($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Fusiontables_TableList");
+ }
+ /**
+ * Updates an existing table. Unless explicitly requested, only the name,
+ * description, and attribution will be updated. This method supports patch
+ * semantics. (table.patch)
+ *
+ * @param string $tableId ID of the table that is being updated.
+ * @param Google_Service_Fusiontables_Table $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool replaceViewDefinition Whether the view definition is also
+ * updated. The specified view definition replaces the existing one. Only a view
+ * can be updated with a new definition.
+ * @return Google_Service_Fusiontables_Table
+ */
+ public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Fusiontables_Table");
+ }
+ /**
+ * Replaces rows of an existing table. Current rows remain visible until all
+ * replacement rows are ready. (table.replaceRows)
+ *
+ * @param string $tableId Table whose rows will be replaced.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delimiter The delimiter used to separate cell values. This
+ * can only consist of a single character. Default is ,.
+ * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
+ * 'auto-detect' if you are unsure of the encoding.
+ * @opt_param int endLine The index of the line up to which data will be
+ * imported. Default is to import the entire file. If endLine is negative, it is
+ * an offset from the end of the file; the imported content will exclude the
+ * last endLine lines.
+ * @opt_param bool isStrict Whether the imported CSV must have the same number
+ * of column values for each row. If true, throws an exception if the CSV does
+ * not have the same number of columns. If false, rows with fewer column values
+ * will be padded with empty values. Default is true.
+ * @opt_param int startLine The index of the first line from which to start
+ * importing, inclusive. Default is 0.
+ * @return Google_Service_Fusiontables_Task
+ */
+ public function replaceRows($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('replaceRows', array($params), "Google_Service_Fusiontables_Task");
+ }
+ /**
+ * Updates an existing table. Unless explicitly requested, only the name,
+ * description, and attribution will be updated. (table.update)
+ *
+ * @param string $tableId ID of the table that is being updated.
+ * @param Google_Service_Fusiontables_Table $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool replaceViewDefinition Whether the view definition is also
+ * updated. The specified view definition replaces the existing one. Only a view
+ * can be updated with a new definition.
+ * @return Google_Service_Fusiontables_Table
+ */
+ public function update($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Fusiontables_Table");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Task.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Task.php
new file mode 100644
index 00000000..185552d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Task.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "task" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fusiontablesService = new Google_Service_Fusiontables(...);
+ * $task = $fusiontablesService->task;
+ * </code>
+ */
+class Google_Service_Fusiontables_Resource_Task extends Google_Service_Resource
+{
+ /**
+ * Deletes a specific task by its ID, unless that task has already started
+ * running. (task.delete)
+ *
+ * @param string $tableId Table from which the task is being deleted.
+ * @param string $taskId The identifier of the task to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($tableId, $taskId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'taskId' => $taskId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a specific task by its ID. (task.get)
+ *
+ * @param string $tableId Table to which the task belongs.
+ * @param string $taskId The identifier of the task to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Task
+ */
+ public function get($tableId, $taskId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'taskId' => $taskId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Fusiontables_Task");
+ }
+ /**
+ * Retrieves a list of tasks. (task.listTask)
+ *
+ * @param string $tableId Table whose tasks are being listed.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of tasks to return. Default is 5.
+ * @opt_param string pageToken Continuation token specifying which result page
+ * to return.
+ * @opt_param string startIndex Index of the first result returned in the
+ * current page.
+ * @return Google_Service_Fusiontables_TaskList
+ */
+ public function listTask($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Fusiontables_TaskList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Template.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Template.php
new file mode 100644
index 00000000..fb0bdd7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Resource/Template.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "template" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $fusiontablesService = new Google_Service_Fusiontables(...);
+ * $template = $fusiontablesService->template;
+ * </code>
+ */
+class Google_Service_Fusiontables_Resource_Template extends Google_Service_Resource
+{
+ /**
+ * Deletes a template (template.delete)
+ *
+ * @param string $tableId Table from which the template is being deleted
+ * @param int $templateId Identifier for the template which is being deleted
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($tableId, $templateId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'templateId' => $templateId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a specific template by its id (template.get)
+ *
+ * @param string $tableId Table to which the template belongs
+ * @param int $templateId Identifier for the template that is being requested
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Template
+ */
+ public function get($tableId, $templateId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'templateId' => $templateId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Fusiontables_Template");
+ }
+ /**
+ * Creates a new template for the table. (template.insert)
+ *
+ * @param string $tableId Table for which a new template is being created
+ * @param Google_Service_Fusiontables_Template $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Template
+ */
+ public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Fusiontables_Template");
+ }
+ /**
+ * Retrieves a list of templates. (template.listTemplate)
+ *
+ * @param string $tableId Identifier for the table whose templates are being
+ * requested
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of templates to return. Optional.
+ * Default is 5.
+ * @opt_param string pageToken Continuation token specifying which results page
+ * to return. Optional.
+ * @return Google_Service_Fusiontables_TemplateList
+ */
+ public function listTemplate($tableId, $optParams = array())
+ {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList");
+ }
+ /**
+ * Updates an existing template. This method supports patch semantics.
+ * (template.patch)
+ *
+ * @param string $tableId Table to which the updated template belongs
+ * @param int $templateId Identifier for the template that is being updated
+ * @param Google_Service_Fusiontables_Template $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Template
+ */
+ public function patch($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Fusiontables_Template");
+ }
+ /**
+ * Updates an existing template (template.update)
+ *
+ * @param string $tableId Table to which the updated template belongs
+ * @param int $templateId Identifier for the template that is being updated
+ * @param Google_Service_Fusiontables_Template $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fusiontables_Template
+ */
+ public function update($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
+ {
+ $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Fusiontables_Template");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Sqlresponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Sqlresponse.php
new file mode 100644
index 00000000..366a0099
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Sqlresponse.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Sqlresponse extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $columns;
+ public $kind;
+ public $rows;
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunction.php
new file mode 100644
index 00000000..7e47ccac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunction.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_StyleFunction extends Google_Collection
+{
+ protected $collection_key = 'buckets';
+ protected $bucketsType = 'Google_Service_Fusiontables_Bucket';
+ protected $bucketsDataType = 'array';
+ public $columnName;
+ protected $gradientType = 'Google_Service_Fusiontables_StyleFunctionGradient';
+ protected $gradientDataType = '';
+ public $kind;
+
+ public function setBuckets($buckets)
+ {
+ $this->buckets = $buckets;
+ }
+ public function getBuckets()
+ {
+ return $this->buckets;
+ }
+ public function setColumnName($columnName)
+ {
+ $this->columnName = $columnName;
+ }
+ public function getColumnName()
+ {
+ return $this->columnName;
+ }
+ public function setGradient(Google_Service_Fusiontables_StyleFunctionGradient $gradient)
+ {
+ $this->gradient = $gradient;
+ }
+ public function getGradient()
+ {
+ return $this->gradient;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradient.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradient.php
new file mode 100644
index 00000000..5926684f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradient.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection
+{
+ protected $collection_key = 'colors';
+ protected $colorsType = 'Google_Service_Fusiontables_StyleFunctionGradientColors';
+ protected $colorsDataType = 'array';
+ public $max;
+ public $min;
+
+ public function setColors($colors)
+ {
+ $this->colors = $colors;
+ }
+ public function getColors()
+ {
+ return $this->colors;
+ }
+ public function setMax($max)
+ {
+ $this->max = $max;
+ }
+ public function getMax()
+ {
+ return $this->max;
+ }
+ public function setMin($min)
+ {
+ $this->min = $min;
+ }
+ public function getMin()
+ {
+ return $this->min;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradientColors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradientColors.php
new file mode 100644
index 00000000..f0f5f3dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleFunctionGradientColors.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Model
+{
+ public $color;
+ public $opacity;
+
+ public function setColor($color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setOpacity($opacity)
+ {
+ $this->opacity = $opacity;
+ }
+ public function getOpacity()
+ {
+ return $this->opacity;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSetting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSetting.php
new file mode 100644
index 00000000..3e0139da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSetting.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_StyleSetting extends Google_Model
+{
+ public $kind;
+ protected $markerOptionsType = 'Google_Service_Fusiontables_PointStyle';
+ protected $markerOptionsDataType = '';
+ public $name;
+ protected $polygonOptionsType = 'Google_Service_Fusiontables_PolygonStyle';
+ protected $polygonOptionsDataType = '';
+ protected $polylineOptionsType = 'Google_Service_Fusiontables_LineStyle';
+ protected $polylineOptionsDataType = '';
+ public $styleId;
+ public $tableId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMarkerOptions(Google_Service_Fusiontables_PointStyle $markerOptions)
+ {
+ $this->markerOptions = $markerOptions;
+ }
+ public function getMarkerOptions()
+ {
+ return $this->markerOptions;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPolygonOptions(Google_Service_Fusiontables_PolygonStyle $polygonOptions)
+ {
+ $this->polygonOptions = $polygonOptions;
+ }
+ public function getPolygonOptions()
+ {
+ return $this->polygonOptions;
+ }
+ public function setPolylineOptions(Google_Service_Fusiontables_LineStyle $polylineOptions)
+ {
+ $this->polylineOptions = $polylineOptions;
+ }
+ public function getPolylineOptions()
+ {
+ return $this->polylineOptions;
+ }
+ public function setStyleId($styleId)
+ {
+ $this->styleId = $styleId;
+ }
+ public function getStyleId()
+ {
+ return $this->styleId;
+ }
+ public function setTableId($tableId)
+ {
+ $this->tableId = $tableId;
+ }
+ public function getTableId()
+ {
+ return $this->tableId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSettingList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSettingList.php
new file mode 100644
index 00000000..3dfa3e3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/StyleSettingList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_StyleSettingList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Fusiontables_StyleSetting';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Table.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Table.php
new file mode 100644
index 00000000..6de27fa1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Table.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Table extends Google_Collection
+{
+ protected $collection_key = 'columns';
+ public $attribution;
+ public $attributionLink;
+ public $baseTableIds;
+ public $columnPropertiesJsonSchema;
+ protected $columnsType = 'Google_Service_Fusiontables_Column';
+ protected $columnsDataType = 'array';
+ public $description;
+ public $isExportable;
+ public $kind;
+ public $name;
+ public $sql;
+ public $tableId;
+ public $tablePropertiesJson;
+ public $tablePropertiesJsonSchema;
+
+ public function setAttribution($attribution)
+ {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution()
+ {
+ return $this->attribution;
+ }
+ public function setAttributionLink($attributionLink)
+ {
+ $this->attributionLink = $attributionLink;
+ }
+ public function getAttributionLink()
+ {
+ return $this->attributionLink;
+ }
+ public function setBaseTableIds($baseTableIds)
+ {
+ $this->baseTableIds = $baseTableIds;
+ }
+ public function getBaseTableIds()
+ {
+ return $this->baseTableIds;
+ }
+ public function setColumnPropertiesJsonSchema($columnPropertiesJsonSchema)
+ {
+ $this->columnPropertiesJsonSchema = $columnPropertiesJsonSchema;
+ }
+ public function getColumnPropertiesJsonSchema()
+ {
+ return $this->columnPropertiesJsonSchema;
+ }
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIsExportable($isExportable)
+ {
+ $this->isExportable = $isExportable;
+ }
+ public function getIsExportable()
+ {
+ return $this->isExportable;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSql($sql)
+ {
+ $this->sql = $sql;
+ }
+ public function getSql()
+ {
+ return $this->sql;
+ }
+ public function setTableId($tableId)
+ {
+ $this->tableId = $tableId;
+ }
+ public function getTableId()
+ {
+ return $this->tableId;
+ }
+ public function setTablePropertiesJson($tablePropertiesJson)
+ {
+ $this->tablePropertiesJson = $tablePropertiesJson;
+ }
+ public function getTablePropertiesJson()
+ {
+ return $this->tablePropertiesJson;
+ }
+ public function setTablePropertiesJsonSchema($tablePropertiesJsonSchema)
+ {
+ $this->tablePropertiesJsonSchema = $tablePropertiesJsonSchema;
+ }
+ public function getTablePropertiesJsonSchema()
+ {
+ return $this->tablePropertiesJsonSchema;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TableList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TableList.php
new file mode 100644
index 00000000..c384dfaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TableList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_TableList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Fusiontables_Table';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Task.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Task.php
new file mode 100644
index 00000000..85a9a725
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Task.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Task extends Google_Model
+{
+ public $kind;
+ public $progress;
+ public $started;
+ public $taskId;
+ public $type;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setStarted($started)
+ {
+ $this->started = $started;
+ }
+ public function getStarted()
+ {
+ return $this->started;
+ }
+ public function setTaskId($taskId)
+ {
+ $this->taskId = $taskId;
+ }
+ public function getTaskId()
+ {
+ return $this->taskId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TaskList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TaskList.php
new file mode 100644
index 00000000..9d2fcf99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TaskList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_TaskList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Fusiontables_Task';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Template.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Template.php
new file mode 100644
index 00000000..67ad2d58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/Template.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_Template extends Google_Collection
+{
+ protected $collection_key = 'automaticColumnNames';
+ public $automaticColumnNames;
+ public $body;
+ public $kind;
+ public $name;
+ public $tableId;
+ public $templateId;
+
+ public function setAutomaticColumnNames($automaticColumnNames)
+ {
+ $this->automaticColumnNames = $automaticColumnNames;
+ }
+ public function getAutomaticColumnNames()
+ {
+ return $this->automaticColumnNames;
+ }
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTableId($tableId)
+ {
+ $this->tableId = $tableId;
+ }
+ public function getTableId()
+ {
+ return $this->tableId;
+ }
+ public function setTemplateId($templateId)
+ {
+ $this->templateId = $templateId;
+ }
+ public function getTemplateId()
+ {
+ return $this->templateId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TemplateList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TemplateList.php
new file mode 100644
index 00000000..85ce5acc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Fusiontables/TemplateList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Fusiontables_TemplateList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Fusiontables_Template';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games.php
new file mode 100644
index 00000000..8bef6415
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games.php
@@ -0,0 +1,1278 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Games (v1).
+ *
+ * <p>
+ * The API for Google Play Game Services.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/games/services/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Games extends Google_Service
+{
+ /** View and manage its own configuration data in your Google Drive. */
+ const DRIVE_APPDATA =
+ "https://www.googleapis.com/auth/drive.appdata";
+ /** Share your Google+ profile information and view and manage your game activity. */
+ const GAMES =
+ "https://www.googleapis.com/auth/games";
+ /** Know the list of people in your circles, your age range, and language. */
+ const PLUS_LOGIN =
+ "https://www.googleapis.com/auth/plus.login";
+
+ public $achievementDefinitions;
+ public $achievements;
+ public $applications;
+ public $events;
+ public $leaderboards;
+ public $metagame;
+ public $players;
+ public $pushtokens;
+ public $questMilestones;
+ public $quests;
+ public $revisions;
+ public $rooms;
+ public $scores;
+ public $snapshots;
+ public $turnBasedMatches;
+
+ /**
+ * Constructs the internal representation of the Games service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'games/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'games';
+
+ $this->achievementDefinitions = new Google_Service_Games_Resource_AchievementDefinitions(
+ $this,
+ $this->serviceName,
+ 'achievementDefinitions',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'achievements',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->achievements = new Google_Service_Games_Resource_Achievements(
+ $this,
+ $this->serviceName,
+ 'achievements',
+ array(
+ 'methods' => array(
+ 'increment' => array(
+ 'path' => 'achievements/{achievementId}/increment',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepsToIncrement' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'players/{playerId}/achievements',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'state' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'reveal' => array(
+ 'path' => 'achievements/{achievementId}/reveal',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setStepsAtLeast' => array(
+ 'path' => 'achievements/{achievementId}/setStepsAtLeast',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'steps' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'unlock' => array(
+ 'path' => 'achievements/{achievementId}/unlock',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'updateMultiple' => array(
+ 'path' => 'achievements/updateMultiple',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->applications = new Google_Service_Games_Resource_Applications(
+ $this,
+ $this->serviceName,
+ 'applications',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'applications/{applicationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'platformType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'played' => array(
+ 'path' => 'applications/played',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'verify' => array(
+ 'path' => 'applications/{applicationId}/verify',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->events = new Google_Service_Games_Resource_Events(
+ $this,
+ $this->serviceName,
+ 'events',
+ array(
+ 'methods' => array(
+ 'listByPlayer' => array(
+ 'path' => 'events',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listDefinitions' => array(
+ 'path' => 'eventDefinitions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'record' => array(
+ 'path' => 'events',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->leaderboards = new Google_Service_Games_Resource_Leaderboards(
+ $this,
+ $this->serviceName,
+ 'leaderboards',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'leaderboards/{leaderboardId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'leaderboards',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->metagame = new Google_Service_Games_Resource_Metagame(
+ $this,
+ $this->serviceName,
+ 'metagame',
+ array(
+ 'methods' => array(
+ 'getMetagameConfig' => array(
+ 'path' => 'metagameConfig',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listCategoriesByPlayer' => array(
+ 'path' => 'players/{playerId}/categories/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->players = new Google_Service_Games_Resource_Players(
+ $this,
+ $this->serviceName,
+ 'players',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'players/{playerId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'players/me/players/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->pushtokens = new Google_Service_Games_Resource_Pushtokens(
+ $this,
+ $this->serviceName,
+ 'pushtokens',
+ array(
+ 'methods' => array(
+ 'remove' => array(
+ 'path' => 'pushtokens/remove',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'pushtokens',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->questMilestones = new Google_Service_Games_Resource_QuestMilestones(
+ $this,
+ $this->serviceName,
+ 'questMilestones',
+ array(
+ 'methods' => array(
+ 'claim' => array(
+ 'path' => 'quests/{questId}/milestones/{milestoneId}/claim',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'questId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'milestoneId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->quests = new Google_Service_Games_Resource_Quests(
+ $this,
+ $this->serviceName,
+ 'quests',
+ array(
+ 'methods' => array(
+ 'accept' => array(
+ 'path' => 'quests/{questId}/accept',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'questId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'players/{playerId}/quests',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->revisions = new Google_Service_Games_Resource_Revisions(
+ $this,
+ $this->serviceName,
+ 'revisions',
+ array(
+ 'methods' => array(
+ 'check' => array(
+ 'path' => 'revisions/check',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'clientRevision' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->rooms = new Google_Service_Games_Resource_Rooms(
+ $this,
+ $this->serviceName,
+ 'rooms',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'rooms/create',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'decline' => array(
+ 'path' => 'rooms/{roomId}/decline',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'roomId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'dismiss' => array(
+ 'path' => 'rooms/{roomId}/dismiss',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'roomId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'rooms/{roomId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'roomId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'join' => array(
+ 'path' => 'rooms/{roomId}/join',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'roomId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'leave' => array(
+ 'path' => 'rooms/{roomId}/leave',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'roomId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'rooms',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'reportStatus' => array(
+ 'path' => 'rooms/{roomId}/reportstatus',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'roomId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->scores = new Google_Service_Games_Resource_Scores(
+ $this,
+ $this->serviceName,
+ 'scores',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'timeSpan' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeRankType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'leaderboards/{leaderboardId}/scores/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'timeSpan' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listWindow' => array(
+ 'path' => 'leaderboards/{leaderboardId}/window/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'timeSpan' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'resultsAbove' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'returnTopIfAbsent' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'submit' => array(
+ 'path' => 'leaderboards/{leaderboardId}/scores',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'score' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'scoreTag' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'submitMultiple' => array(
+ 'path' => 'leaderboards/scores',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->snapshots = new Google_Service_Games_Resource_Snapshots(
+ $this,
+ $this->serviceName,
+ 'snapshots',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'snapshots/{snapshotId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'snapshotId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'players/{playerId}/snapshots',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->turnBasedMatches = new Google_Service_Games_Resource_TurnBasedMatches(
+ $this,
+ $this->serviceName,
+ 'turnBasedMatches',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'turnbasedmatches/{matchId}/cancel',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'turnbasedmatches/create',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'decline' => array(
+ 'path' => 'turnbasedmatches/{matchId}/decline',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'dismiss' => array(
+ 'path' => 'turnbasedmatches/{matchId}/dismiss',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'finish' => array(
+ 'path' => 'turnbasedmatches/{matchId}/finish',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'turnbasedmatches/{matchId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeMatchData' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'join' => array(
+ 'path' => 'turnbasedmatches/{matchId}/join',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'leave' => array(
+ 'path' => 'turnbasedmatches/{matchId}/leave',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'leaveTurn' => array(
+ 'path' => 'turnbasedmatches/{matchId}/leaveTurn',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'matchVersion' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pendingParticipantId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'turnbasedmatches',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeMatchData' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxCompletedMatches' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'rematch' => array(
+ 'path' => 'turnbasedmatches/{matchId}/rematch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'sync' => array(
+ 'path' => 'turnbasedmatches/sync',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeMatchData' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxCompletedMatches' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'takeTurn' => array(
+ 'path' => 'turnbasedmatches/{matchId}/turn',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'matchId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'consistencyToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinition.php
new file mode 100644
index 00000000..b0744f35
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinition.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementDefinition extends Google_Model
+{
+ public $achievementType;
+ public $description;
+ public $experiencePoints;
+ public $formattedTotalSteps;
+ public $id;
+ public $initialState;
+ public $isRevealedIconUrlDefault;
+ public $isUnlockedIconUrlDefault;
+ public $kind;
+ public $name;
+ public $revealedIconUrl;
+ public $totalSteps;
+ public $unlockedIconUrl;
+
+ public function setAchievementType($achievementType)
+ {
+ $this->achievementType = $achievementType;
+ }
+ public function getAchievementType()
+ {
+ return $this->achievementType;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setExperiencePoints($experiencePoints)
+ {
+ $this->experiencePoints = $experiencePoints;
+ }
+ public function getExperiencePoints()
+ {
+ return $this->experiencePoints;
+ }
+ public function setFormattedTotalSteps($formattedTotalSteps)
+ {
+ $this->formattedTotalSteps = $formattedTotalSteps;
+ }
+ public function getFormattedTotalSteps()
+ {
+ return $this->formattedTotalSteps;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInitialState($initialState)
+ {
+ $this->initialState = $initialState;
+ }
+ public function getInitialState()
+ {
+ return $this->initialState;
+ }
+ public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault)
+ {
+ $this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault;
+ }
+ public function getIsRevealedIconUrlDefault()
+ {
+ return $this->isRevealedIconUrlDefault;
+ }
+ public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault)
+ {
+ $this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault;
+ }
+ public function getIsUnlockedIconUrlDefault()
+ {
+ return $this->isUnlockedIconUrlDefault;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRevealedIconUrl($revealedIconUrl)
+ {
+ $this->revealedIconUrl = $revealedIconUrl;
+ }
+ public function getRevealedIconUrl()
+ {
+ return $this->revealedIconUrl;
+ }
+ public function setTotalSteps($totalSteps)
+ {
+ $this->totalSteps = $totalSteps;
+ }
+ public function getTotalSteps()
+ {
+ return $this->totalSteps;
+ }
+ public function setUnlockedIconUrl($unlockedIconUrl)
+ {
+ $this->unlockedIconUrl = $unlockedIconUrl;
+ }
+ public function getUnlockedIconUrl()
+ {
+ return $this->unlockedIconUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinitionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinitionsListResponse.php
new file mode 100644
index 00000000..40da8475
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementDefinitionsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementDefinitionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_AchievementDefinition';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementIncrementResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementIncrementResponse.php
new file mode 100644
index 00000000..7ca6348f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementIncrementResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementIncrementResponse extends Google_Model
+{
+ public $currentSteps;
+ public $kind;
+ public $newlyUnlocked;
+
+ public function setCurrentSteps($currentSteps)
+ {
+ $this->currentSteps = $currentSteps;
+ }
+ public function getCurrentSteps()
+ {
+ return $this->currentSteps;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewlyUnlocked($newlyUnlocked)
+ {
+ $this->newlyUnlocked = $newlyUnlocked;
+ }
+ public function getNewlyUnlocked()
+ {
+ return $this->newlyUnlocked;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementRevealResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementRevealResponse.php
new file mode 100644
index 00000000..27792cbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementRevealResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementRevealResponse extends Google_Model
+{
+ public $currentState;
+ public $kind;
+
+ public function setCurrentState($currentState)
+ {
+ $this->currentState = $currentState;
+ }
+ public function getCurrentState()
+ {
+ return $this->currentState;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementSetStepsAtLeastResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementSetStepsAtLeastResponse.php
new file mode 100644
index 00000000..9662774b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementSetStepsAtLeastResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementSetStepsAtLeastResponse extends Google_Model
+{
+ public $currentSteps;
+ public $kind;
+ public $newlyUnlocked;
+
+ public function setCurrentSteps($currentSteps)
+ {
+ $this->currentSteps = $currentSteps;
+ }
+ public function getCurrentSteps()
+ {
+ return $this->currentSteps;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewlyUnlocked($newlyUnlocked)
+ {
+ $this->newlyUnlocked = $newlyUnlocked;
+ }
+ public function getNewlyUnlocked()
+ {
+ return $this->newlyUnlocked;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUnlockResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUnlockResponse.php
new file mode 100644
index 00000000..70304cca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUnlockResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementUnlockResponse extends Google_Model
+{
+ public $kind;
+ public $newlyUnlocked;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewlyUnlocked($newlyUnlocked)
+ {
+ $this->newlyUnlocked = $newlyUnlocked;
+ }
+ public function getNewlyUnlocked()
+ {
+ return $this->newlyUnlocked;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleRequest.php
new file mode 100644
index 00000000..3bf9259e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementUpdateMultipleRequest extends Google_Collection
+{
+ protected $collection_key = 'updates';
+ public $kind;
+ protected $updatesType = 'Google_Service_Games_AchievementUpdateRequest';
+ protected $updatesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUpdates($updates)
+ {
+ $this->updates = $updates;
+ }
+ public function getUpdates()
+ {
+ return $this->updates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleResponse.php
new file mode 100644
index 00000000..df19f29c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateMultipleResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementUpdateMultipleResponse extends Google_Collection
+{
+ protected $collection_key = 'updatedAchievements';
+ public $kind;
+ protected $updatedAchievementsType = 'Google_Service_Games_AchievementUpdateResponse';
+ protected $updatedAchievementsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUpdatedAchievements($updatedAchievements)
+ {
+ $this->updatedAchievements = $updatedAchievements;
+ }
+ public function getUpdatedAchievements()
+ {
+ return $this->updatedAchievements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateRequest.php
new file mode 100644
index 00000000..1fb41a66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateRequest.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementUpdateRequest extends Google_Model
+{
+ public $achievementId;
+ protected $incrementPayloadType = 'Google_Service_Games_GamesAchievementIncrement';
+ protected $incrementPayloadDataType = '';
+ public $kind;
+ protected $setStepsAtLeastPayloadType = 'Google_Service_Games_GamesAchievementSetStepsAtLeast';
+ protected $setStepsAtLeastPayloadDataType = '';
+ public $updateType;
+
+ public function setAchievementId($achievementId)
+ {
+ $this->achievementId = $achievementId;
+ }
+ public function getAchievementId()
+ {
+ return $this->achievementId;
+ }
+ public function setIncrementPayload(Google_Service_Games_GamesAchievementIncrement $incrementPayload)
+ {
+ $this->incrementPayload = $incrementPayload;
+ }
+ public function getIncrementPayload()
+ {
+ return $this->incrementPayload;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSetStepsAtLeastPayload(Google_Service_Games_GamesAchievementSetStepsAtLeast $setStepsAtLeastPayload)
+ {
+ $this->setStepsAtLeastPayload = $setStepsAtLeastPayload;
+ }
+ public function getSetStepsAtLeastPayload()
+ {
+ return $this->setStepsAtLeastPayload;
+ }
+ public function setUpdateType($updateType)
+ {
+ $this->updateType = $updateType;
+ }
+ public function getUpdateType()
+ {
+ return $this->updateType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateResponse.php
new file mode 100644
index 00000000..6d2d9f9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AchievementUpdateResponse.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AchievementUpdateResponse extends Google_Model
+{
+ public $achievementId;
+ public $currentState;
+ public $currentSteps;
+ public $kind;
+ public $newlyUnlocked;
+ public $updateOccurred;
+
+ public function setAchievementId($achievementId)
+ {
+ $this->achievementId = $achievementId;
+ }
+ public function getAchievementId()
+ {
+ return $this->achievementId;
+ }
+ public function setCurrentState($currentState)
+ {
+ $this->currentState = $currentState;
+ }
+ public function getCurrentState()
+ {
+ return $this->currentState;
+ }
+ public function setCurrentSteps($currentSteps)
+ {
+ $this->currentSteps = $currentSteps;
+ }
+ public function getCurrentSteps()
+ {
+ return $this->currentSteps;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewlyUnlocked($newlyUnlocked)
+ {
+ $this->newlyUnlocked = $newlyUnlocked;
+ }
+ public function getNewlyUnlocked()
+ {
+ return $this->newlyUnlocked;
+ }
+ public function setUpdateOccurred($updateOccurred)
+ {
+ $this->updateOccurred = $updateOccurred;
+ }
+ public function getUpdateOccurred()
+ {
+ return $this->updateOccurred;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AggregateStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AggregateStats.php
new file mode 100644
index 00000000..a8a00b57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AggregateStats.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AggregateStats extends Google_Model
+{
+ public $count;
+ public $kind;
+ public $max;
+ public $min;
+ public $sum;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMax($max)
+ {
+ $this->max = $max;
+ }
+ public function getMax()
+ {
+ return $this->max;
+ }
+ public function setMin($min)
+ {
+ $this->min = $min;
+ }
+ public function getMin()
+ {
+ return $this->min;
+ }
+ public function setSum($sum)
+ {
+ $this->sum = $sum;
+ }
+ public function getSum()
+ {
+ return $this->sum;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AnonymousPlayer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AnonymousPlayer.php
new file mode 100644
index 00000000..7d1dac1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/AnonymousPlayer.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_AnonymousPlayer extends Google_Model
+{
+ public $avatarImageUrl;
+ public $displayName;
+ public $kind;
+
+ public function setAvatarImageUrl($avatarImageUrl)
+ {
+ $this->avatarImageUrl = $avatarImageUrl;
+ }
+ public function getAvatarImageUrl()
+ {
+ return $this->avatarImageUrl;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Application.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Application.php
new file mode 100644
index 00000000..09248b96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Application.php
@@ -0,0 +1,146 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Application extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $internal_gapi_mappings = array(
+ "achievementCount" => "achievement_count",
+ "leaderboardCount" => "leaderboard_count",
+ );
+ public $achievementCount;
+ protected $assetsType = 'Google_Service_Games_ImageAsset';
+ protected $assetsDataType = 'array';
+ public $author;
+ protected $categoryType = 'Google_Service_Games_ApplicationCategory';
+ protected $categoryDataType = '';
+ public $description;
+ public $enabledFeatures;
+ public $id;
+ protected $instancesType = 'Google_Service_Games_Instance';
+ protected $instancesDataType = 'array';
+ public $kind;
+ public $lastUpdatedTimestamp;
+ public $leaderboardCount;
+ public $name;
+ public $themeColor;
+
+ public function setAchievementCount($achievementCount)
+ {
+ $this->achievementCount = $achievementCount;
+ }
+ public function getAchievementCount()
+ {
+ return $this->achievementCount;
+ }
+ public function setAssets($assets)
+ {
+ $this->assets = $assets;
+ }
+ public function getAssets()
+ {
+ return $this->assets;
+ }
+ public function setAuthor($author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setCategory(Google_Service_Games_ApplicationCategory $category)
+ {
+ $this->category = $category;
+ }
+ public function getCategory()
+ {
+ return $this->category;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEnabledFeatures($enabledFeatures)
+ {
+ $this->enabledFeatures = $enabledFeatures;
+ }
+ public function getEnabledFeatures()
+ {
+ return $this->enabledFeatures;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUpdatedTimestamp($lastUpdatedTimestamp)
+ {
+ $this->lastUpdatedTimestamp = $lastUpdatedTimestamp;
+ }
+ public function getLastUpdatedTimestamp()
+ {
+ return $this->lastUpdatedTimestamp;
+ }
+ public function setLeaderboardCount($leaderboardCount)
+ {
+ $this->leaderboardCount = $leaderboardCount;
+ }
+ public function getLeaderboardCount()
+ {
+ return $this->leaderboardCount;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setThemeColor($themeColor)
+ {
+ $this->themeColor = $themeColor;
+ }
+ public function getThemeColor()
+ {
+ return $this->themeColor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationCategory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationCategory.php
new file mode 100644
index 00000000..f267524b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationCategory.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_ApplicationCategory extends Google_Model
+{
+ public $kind;
+ public $primary;
+ public $secondary;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setSecondary($secondary)
+ {
+ $this->secondary = $secondary;
+ }
+ public function getSecondary()
+ {
+ return $this->secondary;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationVerifyResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationVerifyResponse.php
new file mode 100644
index 00000000..6b51e4f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ApplicationVerifyResponse.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_ApplicationVerifyResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "alternatePlayerId" => "alternate_player_id",
+ "playerId" => "player_id",
+ );
+ public $alternatePlayerId;
+ public $kind;
+ public $playerId;
+
+ public function setAlternatePlayerId($alternatePlayerId)
+ {
+ $this->alternatePlayerId = $alternatePlayerId;
+ }
+ public function getAlternatePlayerId()
+ {
+ return $this->alternatePlayerId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlayerId($playerId)
+ {
+ $this->playerId = $playerId;
+ }
+ public function getPlayerId()
+ {
+ return $this->playerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Category.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Category.php
new file mode 100644
index 00000000..4f0a05f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Category.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Category extends Google_Model
+{
+ public $category;
+ public $experiencePoints;
+ public $kind;
+
+ public function setCategory($category)
+ {
+ $this->category = $category;
+ }
+ public function getCategory()
+ {
+ return $this->category;
+ }
+ public function setExperiencePoints($experiencePoints)
+ {
+ $this->experiencePoints = $experiencePoints;
+ }
+ public function getExperiencePoints()
+ {
+ return $this->experiencePoints;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/CategoryListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/CategoryListResponse.php
new file mode 100644
index 00000000..d70d0020
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/CategoryListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_CategoryListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_Category';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventBatchRecordFailure.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventBatchRecordFailure.php
new file mode 100644
index 00000000..6b55ca36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventBatchRecordFailure.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventBatchRecordFailure extends Google_Model
+{
+ public $failureCause;
+ public $kind;
+ protected $rangeType = 'Google_Service_Games_EventPeriodRange';
+ protected $rangeDataType = '';
+
+ public function setFailureCause($failureCause)
+ {
+ $this->failureCause = $failureCause;
+ }
+ public function getFailureCause()
+ {
+ return $this->failureCause;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRange(Google_Service_Games_EventPeriodRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventChild.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventChild.php
new file mode 100644
index 00000000..2ef59454
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventChild.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventChild extends Google_Model
+{
+ public $childId;
+ public $kind;
+
+ public function setChildId($childId)
+ {
+ $this->childId = $childId;
+ }
+ public function getChildId()
+ {
+ return $this->childId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinition.php
new file mode 100644
index 00000000..65c020d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinition.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventDefinition extends Google_Collection
+{
+ protected $collection_key = 'childEvents';
+ protected $childEventsType = 'Google_Service_Games_EventChild';
+ protected $childEventsDataType = 'array';
+ public $description;
+ public $displayName;
+ public $id;
+ public $imageUrl;
+ public $isDefaultImageUrl;
+ public $kind;
+ public $visibility;
+
+ public function setChildEvents($childEvents)
+ {
+ $this->childEvents = $childEvents;
+ }
+ public function getChildEvents()
+ {
+ return $this->childEvents;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImageUrl($imageUrl)
+ {
+ $this->imageUrl = $imageUrl;
+ }
+ public function getImageUrl()
+ {
+ return $this->imageUrl;
+ }
+ public function setIsDefaultImageUrl($isDefaultImageUrl)
+ {
+ $this->isDefaultImageUrl = $isDefaultImageUrl;
+ }
+ public function getIsDefaultImageUrl()
+ {
+ return $this->isDefaultImageUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisibility($visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinitionListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinitionListResponse.php
new file mode 100644
index 00000000..8eb3a1a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventDefinitionListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventDefinitionListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_EventDefinition';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodRange.php
new file mode 100644
index 00000000..a584711f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodRange.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventPeriodRange extends Google_Model
+{
+ public $kind;
+ public $periodEndMillis;
+ public $periodStartMillis;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPeriodEndMillis($periodEndMillis)
+ {
+ $this->periodEndMillis = $periodEndMillis;
+ }
+ public function getPeriodEndMillis()
+ {
+ return $this->periodEndMillis;
+ }
+ public function setPeriodStartMillis($periodStartMillis)
+ {
+ $this->periodStartMillis = $periodStartMillis;
+ }
+ public function getPeriodStartMillis()
+ {
+ return $this->periodStartMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodUpdate.php
new file mode 100644
index 00000000..69e01175
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventPeriodUpdate.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventPeriodUpdate extends Google_Collection
+{
+ protected $collection_key = 'updates';
+ public $kind;
+ protected $timePeriodType = 'Google_Service_Games_EventPeriodRange';
+ protected $timePeriodDataType = '';
+ protected $updatesType = 'Google_Service_Games_EventUpdateRequest';
+ protected $updatesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTimePeriod(Google_Service_Games_EventPeriodRange $timePeriod)
+ {
+ $this->timePeriod = $timePeriod;
+ }
+ public function getTimePeriod()
+ {
+ return $this->timePeriod;
+ }
+ public function setUpdates($updates)
+ {
+ $this->updates = $updates;
+ }
+ public function getUpdates()
+ {
+ return $this->updates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordFailure.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordFailure.php
new file mode 100644
index 00000000..35ac4eed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordFailure.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventRecordFailure extends Google_Model
+{
+ public $eventId;
+ public $failureCause;
+ public $kind;
+
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setFailureCause($failureCause)
+ {
+ $this->failureCause = $failureCause;
+ }
+ public function getFailureCause()
+ {
+ return $this->failureCause;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordRequest.php
new file mode 100644
index 00000000..fd3da23b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventRecordRequest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventRecordRequest extends Google_Collection
+{
+ protected $collection_key = 'timePeriods';
+ public $currentTimeMillis;
+ public $kind;
+ public $requestId;
+ protected $timePeriodsType = 'Google_Service_Games_EventPeriodUpdate';
+ protected $timePeriodsDataType = 'array';
+
+ public function setCurrentTimeMillis($currentTimeMillis)
+ {
+ $this->currentTimeMillis = $currentTimeMillis;
+ }
+ public function getCurrentTimeMillis()
+ {
+ return $this->currentTimeMillis;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setTimePeriods($timePeriods)
+ {
+ $this->timePeriods = $timePeriods;
+ }
+ public function getTimePeriods()
+ {
+ return $this->timePeriods;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateRequest.php
new file mode 100644
index 00000000..48314f70
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateRequest.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventUpdateRequest extends Google_Model
+{
+ public $definitionId;
+ public $kind;
+ public $updateCount;
+
+ public function setDefinitionId($definitionId)
+ {
+ $this->definitionId = $definitionId;
+ }
+ public function getDefinitionId()
+ {
+ return $this->definitionId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUpdateCount($updateCount)
+ {
+ $this->updateCount = $updateCount;
+ }
+ public function getUpdateCount()
+ {
+ return $this->updateCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateResponse.php
new file mode 100644
index 00000000..9a180f33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/EventUpdateResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_EventUpdateResponse extends Google_Collection
+{
+ protected $collection_key = 'playerEvents';
+ protected $batchFailuresType = 'Google_Service_Games_EventBatchRecordFailure';
+ protected $batchFailuresDataType = 'array';
+ protected $eventFailuresType = 'Google_Service_Games_EventRecordFailure';
+ protected $eventFailuresDataType = 'array';
+ public $kind;
+ protected $playerEventsType = 'Google_Service_Games_PlayerEvent';
+ protected $playerEventsDataType = 'array';
+
+ public function setBatchFailures($batchFailures)
+ {
+ $this->batchFailures = $batchFailures;
+ }
+ public function getBatchFailures()
+ {
+ return $this->batchFailures;
+ }
+ public function setEventFailures($eventFailures)
+ {
+ $this->eventFailures = $eventFailures;
+ }
+ public function getEventFailures()
+ {
+ return $this->eventFailures;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlayerEvents($playerEvents)
+ {
+ $this->playerEvents = $playerEvents;
+ }
+ public function getPlayerEvents()
+ {
+ return $this->playerEvents;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementIncrement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementIncrement.php
new file mode 100644
index 00000000..863cd06a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementIncrement.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_GamesAchievementIncrement extends Google_Model
+{
+ public $kind;
+ public $requestId;
+ public $steps;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementSetStepsAtLeast.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementSetStepsAtLeast.php
new file mode 100644
index 00000000..121d0ec0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/GamesAchievementSetStepsAtLeast.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_GamesAchievementSetStepsAtLeast extends Google_Model
+{
+ public $kind;
+ public $steps;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ImageAsset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ImageAsset.php
new file mode 100644
index 00000000..2fbaff4f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ImageAsset.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_ImageAsset extends Google_Model
+{
+ public $height;
+ public $kind;
+ public $name;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Instance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Instance.php
new file mode 100644
index 00000000..d9b41555
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Instance.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Instance extends Google_Model
+{
+ public $acquisitionUri;
+ protected $androidInstanceType = 'Google_Service_Games_InstanceAndroidDetails';
+ protected $androidInstanceDataType = '';
+ protected $iosInstanceType = 'Google_Service_Games_InstanceIosDetails';
+ protected $iosInstanceDataType = '';
+ public $kind;
+ public $name;
+ public $platformType;
+ public $realtimePlay;
+ public $turnBasedPlay;
+ protected $webInstanceType = 'Google_Service_Games_InstanceWebDetails';
+ protected $webInstanceDataType = '';
+
+ public function setAcquisitionUri($acquisitionUri)
+ {
+ $this->acquisitionUri = $acquisitionUri;
+ }
+ public function getAcquisitionUri()
+ {
+ return $this->acquisitionUri;
+ }
+ public function setAndroidInstance(Google_Service_Games_InstanceAndroidDetails $androidInstance)
+ {
+ $this->androidInstance = $androidInstance;
+ }
+ public function getAndroidInstance()
+ {
+ return $this->androidInstance;
+ }
+ public function setIosInstance(Google_Service_Games_InstanceIosDetails $iosInstance)
+ {
+ $this->iosInstance = $iosInstance;
+ }
+ public function getIosInstance()
+ {
+ return $this->iosInstance;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPlatformType($platformType)
+ {
+ $this->platformType = $platformType;
+ }
+ public function getPlatformType()
+ {
+ return $this->platformType;
+ }
+ public function setRealtimePlay($realtimePlay)
+ {
+ $this->realtimePlay = $realtimePlay;
+ }
+ public function getRealtimePlay()
+ {
+ return $this->realtimePlay;
+ }
+ public function setTurnBasedPlay($turnBasedPlay)
+ {
+ $this->turnBasedPlay = $turnBasedPlay;
+ }
+ public function getTurnBasedPlay()
+ {
+ return $this->turnBasedPlay;
+ }
+ public function setWebInstance(Google_Service_Games_InstanceWebDetails $webInstance)
+ {
+ $this->webInstance = $webInstance;
+ }
+ public function getWebInstance()
+ {
+ return $this->webInstance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceAndroidDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceAndroidDetails.php
new file mode 100644
index 00000000..9bd810fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceAndroidDetails.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_InstanceAndroidDetails extends Google_Model
+{
+ public $enablePiracyCheck;
+ public $kind;
+ public $packageName;
+ public $preferred;
+
+ public function setEnablePiracyCheck($enablePiracyCheck)
+ {
+ $this->enablePiracyCheck = $enablePiracyCheck;
+ }
+ public function getEnablePiracyCheck()
+ {
+ return $this->enablePiracyCheck;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPackageName($packageName)
+ {
+ $this->packageName = $packageName;
+ }
+ public function getPackageName()
+ {
+ return $this->packageName;
+ }
+ public function setPreferred($preferred)
+ {
+ $this->preferred = $preferred;
+ }
+ public function getPreferred()
+ {
+ return $this->preferred;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceIosDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceIosDetails.php
new file mode 100644
index 00000000..e82877cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceIosDetails.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_InstanceIosDetails extends Google_Model
+{
+ public $bundleIdentifier;
+ public $itunesAppId;
+ public $kind;
+ public $preferredForIpad;
+ public $preferredForIphone;
+ public $supportIpad;
+ public $supportIphone;
+
+ public function setBundleIdentifier($bundleIdentifier)
+ {
+ $this->bundleIdentifier = $bundleIdentifier;
+ }
+ public function getBundleIdentifier()
+ {
+ return $this->bundleIdentifier;
+ }
+ public function setItunesAppId($itunesAppId)
+ {
+ $this->itunesAppId = $itunesAppId;
+ }
+ public function getItunesAppId()
+ {
+ return $this->itunesAppId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPreferredForIpad($preferredForIpad)
+ {
+ $this->preferredForIpad = $preferredForIpad;
+ }
+ public function getPreferredForIpad()
+ {
+ return $this->preferredForIpad;
+ }
+ public function setPreferredForIphone($preferredForIphone)
+ {
+ $this->preferredForIphone = $preferredForIphone;
+ }
+ public function getPreferredForIphone()
+ {
+ return $this->preferredForIphone;
+ }
+ public function setSupportIpad($supportIpad)
+ {
+ $this->supportIpad = $supportIpad;
+ }
+ public function getSupportIpad()
+ {
+ return $this->supportIpad;
+ }
+ public function setSupportIphone($supportIphone)
+ {
+ $this->supportIphone = $supportIphone;
+ }
+ public function getSupportIphone()
+ {
+ return $this->supportIphone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceWebDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceWebDetails.php
new file mode 100644
index 00000000..601cd4b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/InstanceWebDetails.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_InstanceWebDetails extends Google_Model
+{
+ public $kind;
+ public $launchUrl;
+ public $preferred;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLaunchUrl($launchUrl)
+ {
+ $this->launchUrl = $launchUrl;
+ }
+ public function getLaunchUrl()
+ {
+ return $this->launchUrl;
+ }
+ public function setPreferred($preferred)
+ {
+ $this->preferred = $preferred;
+ }
+ public function getPreferred()
+ {
+ return $this->preferred;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Leaderboard.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Leaderboard.php
new file mode 100644
index 00000000..8d6bc438
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Leaderboard.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Leaderboard extends Google_Model
+{
+ public $iconUrl;
+ public $id;
+ public $isIconUrlDefault;
+ public $kind;
+ public $name;
+ public $order;
+
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsIconUrlDefault($isIconUrlDefault)
+ {
+ $this->isIconUrlDefault = $isIconUrlDefault;
+ }
+ public function getIsIconUrlDefault()
+ {
+ return $this->isIconUrlDefault;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrder($order)
+ {
+ $this->order = $order;
+ }
+ public function getOrder()
+ {
+ return $this->order;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardEntry.php
new file mode 100644
index 00000000..9d451a02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardEntry.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_LeaderboardEntry extends Google_Model
+{
+ public $formattedScore;
+ public $formattedScoreRank;
+ public $kind;
+ protected $playerType = 'Google_Service_Games_Player';
+ protected $playerDataType = '';
+ public $scoreRank;
+ public $scoreTag;
+ public $scoreValue;
+ public $timeSpan;
+ public $writeTimestampMillis;
+
+ public function setFormattedScore($formattedScore)
+ {
+ $this->formattedScore = $formattedScore;
+ }
+ public function getFormattedScore()
+ {
+ return $this->formattedScore;
+ }
+ public function setFormattedScoreRank($formattedScoreRank)
+ {
+ $this->formattedScoreRank = $formattedScoreRank;
+ }
+ public function getFormattedScoreRank()
+ {
+ return $this->formattedScoreRank;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlayer(Google_Service_Games_Player $player)
+ {
+ $this->player = $player;
+ }
+ public function getPlayer()
+ {
+ return $this->player;
+ }
+ public function setScoreRank($scoreRank)
+ {
+ $this->scoreRank = $scoreRank;
+ }
+ public function getScoreRank()
+ {
+ return $this->scoreRank;
+ }
+ public function setScoreTag($scoreTag)
+ {
+ $this->scoreTag = $scoreTag;
+ }
+ public function getScoreTag()
+ {
+ return $this->scoreTag;
+ }
+ public function setScoreValue($scoreValue)
+ {
+ $this->scoreValue = $scoreValue;
+ }
+ public function getScoreValue()
+ {
+ return $this->scoreValue;
+ }
+ public function setTimeSpan($timeSpan)
+ {
+ $this->timeSpan = $timeSpan;
+ }
+ public function getTimeSpan()
+ {
+ return $this->timeSpan;
+ }
+ public function setWriteTimestampMillis($writeTimestampMillis)
+ {
+ $this->writeTimestampMillis = $writeTimestampMillis;
+ }
+ public function getWriteTimestampMillis()
+ {
+ return $this->writeTimestampMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardListResponse.php
new file mode 100644
index 00000000..21fdfa87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_LeaderboardListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_Leaderboard';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScoreRank.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScoreRank.php
new file mode 100644
index 00000000..8127bfd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScoreRank.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_LeaderboardScoreRank extends Google_Model
+{
+ public $formattedNumScores;
+ public $formattedRank;
+ public $kind;
+ public $numScores;
+ public $rank;
+
+ public function setFormattedNumScores($formattedNumScores)
+ {
+ $this->formattedNumScores = $formattedNumScores;
+ }
+ public function getFormattedNumScores()
+ {
+ return $this->formattedNumScores;
+ }
+ public function setFormattedRank($formattedRank)
+ {
+ $this->formattedRank = $formattedRank;
+ }
+ public function getFormattedRank()
+ {
+ return $this->formattedRank;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumScores($numScores)
+ {
+ $this->numScores = $numScores;
+ }
+ public function getNumScores()
+ {
+ return $this->numScores;
+ }
+ public function setRank($rank)
+ {
+ $this->rank = $rank;
+ }
+ public function getRank()
+ {
+ return $this->rank;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScores.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScores.php
new file mode 100644
index 00000000..9381da02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/LeaderboardScores.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_LeaderboardScores extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_LeaderboardEntry';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $numScores;
+ protected $playerScoreType = 'Google_Service_Games_LeaderboardEntry';
+ protected $playerScoreDataType = '';
+ public $prevPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setNumScores($numScores)
+ {
+ $this->numScores = $numScores;
+ }
+ public function getNumScores()
+ {
+ return $this->numScores;
+ }
+ public function setPlayerScore(Google_Service_Games_LeaderboardEntry $playerScore)
+ {
+ $this->playerScore = $playerScore;
+ }
+ public function getPlayerScore()
+ {
+ return $this->playerScore;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/MetagameConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/MetagameConfig.php
new file mode 100644
index 00000000..cec0a436
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/MetagameConfig.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_MetagameConfig extends Google_Collection
+{
+ protected $collection_key = 'playerLevels';
+ public $currentVersion;
+ public $kind;
+ protected $playerLevelsType = 'Google_Service_Games_PlayerLevel';
+ protected $playerLevelsDataType = 'array';
+
+ public function setCurrentVersion($currentVersion)
+ {
+ $this->currentVersion = $currentVersion;
+ }
+ public function getCurrentVersion()
+ {
+ return $this->currentVersion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlayerLevels($playerLevels)
+ {
+ $this->playerLevels = $playerLevels;
+ }
+ public function getPlayerLevels()
+ {
+ return $this->playerLevels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/NetworkDiagnostics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/NetworkDiagnostics.php
new file mode 100644
index 00000000..5669dbf5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/NetworkDiagnostics.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_NetworkDiagnostics extends Google_Model
+{
+ public $androidNetworkSubtype;
+ public $androidNetworkType;
+ public $iosNetworkType;
+ public $kind;
+ public $networkOperatorCode;
+ public $networkOperatorName;
+ public $registrationLatencyMillis;
+
+ public function setAndroidNetworkSubtype($androidNetworkSubtype)
+ {
+ $this->androidNetworkSubtype = $androidNetworkSubtype;
+ }
+ public function getAndroidNetworkSubtype()
+ {
+ return $this->androidNetworkSubtype;
+ }
+ public function setAndroidNetworkType($androidNetworkType)
+ {
+ $this->androidNetworkType = $androidNetworkType;
+ }
+ public function getAndroidNetworkType()
+ {
+ return $this->androidNetworkType;
+ }
+ public function setIosNetworkType($iosNetworkType)
+ {
+ $this->iosNetworkType = $iosNetworkType;
+ }
+ public function getIosNetworkType()
+ {
+ return $this->iosNetworkType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNetworkOperatorCode($networkOperatorCode)
+ {
+ $this->networkOperatorCode = $networkOperatorCode;
+ }
+ public function getNetworkOperatorCode()
+ {
+ return $this->networkOperatorCode;
+ }
+ public function setNetworkOperatorName($networkOperatorName)
+ {
+ $this->networkOperatorName = $networkOperatorName;
+ }
+ public function getNetworkOperatorName()
+ {
+ return $this->networkOperatorName;
+ }
+ public function setRegistrationLatencyMillis($registrationLatencyMillis)
+ {
+ $this->registrationLatencyMillis = $registrationLatencyMillis;
+ }
+ public function getRegistrationLatencyMillis()
+ {
+ return $this->registrationLatencyMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ParticipantResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ParticipantResult.php
new file mode 100644
index 00000000..8f856fbc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ParticipantResult.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_ParticipantResult extends Google_Model
+{
+ public $kind;
+ public $participantId;
+ public $placing;
+ public $result;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParticipantId($participantId)
+ {
+ $this->participantId = $participantId;
+ }
+ public function getParticipantId()
+ {
+ return $this->participantId;
+ }
+ public function setPlacing($placing)
+ {
+ $this->placing = $placing;
+ }
+ public function getPlacing()
+ {
+ return $this->placing;
+ }
+ public function setResult($result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerChannelDiagnostics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerChannelDiagnostics.php
new file mode 100644
index 00000000..f5042111
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerChannelDiagnostics.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PeerChannelDiagnostics extends Google_Model
+{
+ protected $bytesReceivedType = 'Google_Service_Games_AggregateStats';
+ protected $bytesReceivedDataType = '';
+ protected $bytesSentType = 'Google_Service_Games_AggregateStats';
+ protected $bytesSentDataType = '';
+ public $kind;
+ public $numMessagesLost;
+ public $numMessagesReceived;
+ public $numMessagesSent;
+ public $numSendFailures;
+ protected $roundtripLatencyMillisType = 'Google_Service_Games_AggregateStats';
+ protected $roundtripLatencyMillisDataType = '';
+
+ public function setBytesReceived(Google_Service_Games_AggregateStats $bytesReceived)
+ {
+ $this->bytesReceived = $bytesReceived;
+ }
+ public function getBytesReceived()
+ {
+ return $this->bytesReceived;
+ }
+ public function setBytesSent(Google_Service_Games_AggregateStats $bytesSent)
+ {
+ $this->bytesSent = $bytesSent;
+ }
+ public function getBytesSent()
+ {
+ return $this->bytesSent;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumMessagesLost($numMessagesLost)
+ {
+ $this->numMessagesLost = $numMessagesLost;
+ }
+ public function getNumMessagesLost()
+ {
+ return $this->numMessagesLost;
+ }
+ public function setNumMessagesReceived($numMessagesReceived)
+ {
+ $this->numMessagesReceived = $numMessagesReceived;
+ }
+ public function getNumMessagesReceived()
+ {
+ return $this->numMessagesReceived;
+ }
+ public function setNumMessagesSent($numMessagesSent)
+ {
+ $this->numMessagesSent = $numMessagesSent;
+ }
+ public function getNumMessagesSent()
+ {
+ return $this->numMessagesSent;
+ }
+ public function setNumSendFailures($numSendFailures)
+ {
+ $this->numSendFailures = $numSendFailures;
+ }
+ public function getNumSendFailures()
+ {
+ return $this->numSendFailures;
+ }
+ public function setRoundtripLatencyMillis(Google_Service_Games_AggregateStats $roundtripLatencyMillis)
+ {
+ $this->roundtripLatencyMillis = $roundtripLatencyMillis;
+ }
+ public function getRoundtripLatencyMillis()
+ {
+ return $this->roundtripLatencyMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerSessionDiagnostics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerSessionDiagnostics.php
new file mode 100644
index 00000000..cdd6b507
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PeerSessionDiagnostics.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PeerSessionDiagnostics extends Google_Model
+{
+ public $connectedTimestampMillis;
+ public $kind;
+ public $participantId;
+ protected $reliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics';
+ protected $reliableChannelDataType = '';
+ protected $unreliableChannelType = 'Google_Service_Games_PeerChannelDiagnostics';
+ protected $unreliableChannelDataType = '';
+
+ public function setConnectedTimestampMillis($connectedTimestampMillis)
+ {
+ $this->connectedTimestampMillis = $connectedTimestampMillis;
+ }
+ public function getConnectedTimestampMillis()
+ {
+ return $this->connectedTimestampMillis;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParticipantId($participantId)
+ {
+ $this->participantId = $participantId;
+ }
+ public function getParticipantId()
+ {
+ return $this->participantId;
+ }
+ public function setReliableChannel(Google_Service_Games_PeerChannelDiagnostics $reliableChannel)
+ {
+ $this->reliableChannel = $reliableChannel;
+ }
+ public function getReliableChannel()
+ {
+ return $this->reliableChannel;
+ }
+ public function setUnreliableChannel(Google_Service_Games_PeerChannelDiagnostics $unreliableChannel)
+ {
+ $this->unreliableChannel = $unreliableChannel;
+ }
+ public function getUnreliableChannel()
+ {
+ return $this->unreliableChannel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Played.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Played.php
new file mode 100644
index 00000000..eda3e5b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Played.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Played extends Google_Model
+{
+ public $autoMatched;
+ public $kind;
+ public $timeMillis;
+
+ public function setAutoMatched($autoMatched)
+ {
+ $this->autoMatched = $autoMatched;
+ }
+ public function getAutoMatched()
+ {
+ return $this->autoMatched;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTimeMillis($timeMillis)
+ {
+ $this->timeMillis = $timeMillis;
+ }
+ public function getTimeMillis()
+ {
+ return $this->timeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Player.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Player.php
new file mode 100644
index 00000000..c5d0888b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Player.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Player extends Google_Model
+{
+ public $avatarImageUrl;
+ public $bannerUrlLandscape;
+ public $bannerUrlPortrait;
+ public $displayName;
+ protected $experienceInfoType = 'Google_Service_Games_PlayerExperienceInfo';
+ protected $experienceInfoDataType = '';
+ public $kind;
+ protected $lastPlayedWithType = 'Google_Service_Games_Played';
+ protected $lastPlayedWithDataType = '';
+ protected $nameType = 'Google_Service_Games_PlayerName';
+ protected $nameDataType = '';
+ public $originalPlayerId;
+ public $playerId;
+ protected $profileSettingsType = 'Google_Service_Games_ProfileSettings';
+ protected $profileSettingsDataType = '';
+ public $title;
+
+ public function setAvatarImageUrl($avatarImageUrl)
+ {
+ $this->avatarImageUrl = $avatarImageUrl;
+ }
+ public function getAvatarImageUrl()
+ {
+ return $this->avatarImageUrl;
+ }
+ public function setBannerUrlLandscape($bannerUrlLandscape)
+ {
+ $this->bannerUrlLandscape = $bannerUrlLandscape;
+ }
+ public function getBannerUrlLandscape()
+ {
+ return $this->bannerUrlLandscape;
+ }
+ public function setBannerUrlPortrait($bannerUrlPortrait)
+ {
+ $this->bannerUrlPortrait = $bannerUrlPortrait;
+ }
+ public function getBannerUrlPortrait()
+ {
+ return $this->bannerUrlPortrait;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setExperienceInfo(Google_Service_Games_PlayerExperienceInfo $experienceInfo)
+ {
+ $this->experienceInfo = $experienceInfo;
+ }
+ public function getExperienceInfo()
+ {
+ return $this->experienceInfo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith)
+ {
+ $this->lastPlayedWith = $lastPlayedWith;
+ }
+ public function getLastPlayedWith()
+ {
+ return $this->lastPlayedWith;
+ }
+ public function setName(Google_Service_Games_PlayerName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalPlayerId($originalPlayerId)
+ {
+ $this->originalPlayerId = $originalPlayerId;
+ }
+ public function getOriginalPlayerId()
+ {
+ return $this->originalPlayerId;
+ }
+ public function setPlayerId($playerId)
+ {
+ $this->playerId = $playerId;
+ }
+ public function getPlayerId()
+ {
+ return $this->playerId;
+ }
+ public function setProfileSettings(Google_Service_Games_ProfileSettings $profileSettings)
+ {
+ $this->profileSettings = $profileSettings;
+ }
+ public function getProfileSettings()
+ {
+ return $this->profileSettings;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievement.php
new file mode 100644
index 00000000..0c3403cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievement.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerAchievement extends Google_Model
+{
+ public $achievementState;
+ public $currentSteps;
+ public $experiencePoints;
+ public $formattedCurrentStepsString;
+ public $id;
+ public $kind;
+ public $lastUpdatedTimestamp;
+
+ public function setAchievementState($achievementState)
+ {
+ $this->achievementState = $achievementState;
+ }
+ public function getAchievementState()
+ {
+ return $this->achievementState;
+ }
+ public function setCurrentSteps($currentSteps)
+ {
+ $this->currentSteps = $currentSteps;
+ }
+ public function getCurrentSteps()
+ {
+ return $this->currentSteps;
+ }
+ public function setExperiencePoints($experiencePoints)
+ {
+ $this->experiencePoints = $experiencePoints;
+ }
+ public function getExperiencePoints()
+ {
+ return $this->experiencePoints;
+ }
+ public function setFormattedCurrentStepsString($formattedCurrentStepsString)
+ {
+ $this->formattedCurrentStepsString = $formattedCurrentStepsString;
+ }
+ public function getFormattedCurrentStepsString()
+ {
+ return $this->formattedCurrentStepsString;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUpdatedTimestamp($lastUpdatedTimestamp)
+ {
+ $this->lastUpdatedTimestamp = $lastUpdatedTimestamp;
+ }
+ public function getLastUpdatedTimestamp()
+ {
+ return $this->lastUpdatedTimestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievementListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievementListResponse.php
new file mode 100644
index 00000000..a4b73ef4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerAchievementListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerAchievementListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_PlayerAchievement';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEvent.php
new file mode 100644
index 00000000..fdffa96d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEvent.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerEvent extends Google_Model
+{
+ public $definitionId;
+ public $formattedNumEvents;
+ public $kind;
+ public $numEvents;
+ public $playerId;
+
+ public function setDefinitionId($definitionId)
+ {
+ $this->definitionId = $definitionId;
+ }
+ public function getDefinitionId()
+ {
+ return $this->definitionId;
+ }
+ public function setFormattedNumEvents($formattedNumEvents)
+ {
+ $this->formattedNumEvents = $formattedNumEvents;
+ }
+ public function getFormattedNumEvents()
+ {
+ return $this->formattedNumEvents;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumEvents($numEvents)
+ {
+ $this->numEvents = $numEvents;
+ }
+ public function getNumEvents()
+ {
+ return $this->numEvents;
+ }
+ public function setPlayerId($playerId)
+ {
+ $this->playerId = $playerId;
+ }
+ public function getPlayerId()
+ {
+ return $this->playerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEventListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEventListResponse.php
new file mode 100644
index 00000000..f2ec3aec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerEventListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerEventListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_PlayerEvent';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerExperienceInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerExperienceInfo.php
new file mode 100644
index 00000000..fa437ae3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerExperienceInfo.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerExperienceInfo extends Google_Model
+{
+ public $currentExperiencePoints;
+ protected $currentLevelType = 'Google_Service_Games_PlayerLevel';
+ protected $currentLevelDataType = '';
+ public $kind;
+ public $lastLevelUpTimestampMillis;
+ protected $nextLevelType = 'Google_Service_Games_PlayerLevel';
+ protected $nextLevelDataType = '';
+
+ public function setCurrentExperiencePoints($currentExperiencePoints)
+ {
+ $this->currentExperiencePoints = $currentExperiencePoints;
+ }
+ public function getCurrentExperiencePoints()
+ {
+ return $this->currentExperiencePoints;
+ }
+ public function setCurrentLevel(Google_Service_Games_PlayerLevel $currentLevel)
+ {
+ $this->currentLevel = $currentLevel;
+ }
+ public function getCurrentLevel()
+ {
+ return $this->currentLevel;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis)
+ {
+ $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis;
+ }
+ public function getLastLevelUpTimestampMillis()
+ {
+ return $this->lastLevelUpTimestampMillis;
+ }
+ public function setNextLevel(Google_Service_Games_PlayerLevel $nextLevel)
+ {
+ $this->nextLevel = $nextLevel;
+ }
+ public function getNextLevel()
+ {
+ return $this->nextLevel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScore.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScore.php
new file mode 100644
index 00000000..f3119ac0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScore.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerLeaderboardScore extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "leaderboardId" => "leaderboard_id",
+ );
+ public $kind;
+ public $leaderboardId;
+ protected $publicRankType = 'Google_Service_Games_LeaderboardScoreRank';
+ protected $publicRankDataType = '';
+ public $scoreString;
+ public $scoreTag;
+ public $scoreValue;
+ protected $socialRankType = 'Google_Service_Games_LeaderboardScoreRank';
+ protected $socialRankDataType = '';
+ public $timeSpan;
+ public $writeTimestamp;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeaderboardId($leaderboardId)
+ {
+ $this->leaderboardId = $leaderboardId;
+ }
+ public function getLeaderboardId()
+ {
+ return $this->leaderboardId;
+ }
+ public function setPublicRank(Google_Service_Games_LeaderboardScoreRank $publicRank)
+ {
+ $this->publicRank = $publicRank;
+ }
+ public function getPublicRank()
+ {
+ return $this->publicRank;
+ }
+ public function setScoreString($scoreString)
+ {
+ $this->scoreString = $scoreString;
+ }
+ public function getScoreString()
+ {
+ return $this->scoreString;
+ }
+ public function setScoreTag($scoreTag)
+ {
+ $this->scoreTag = $scoreTag;
+ }
+ public function getScoreTag()
+ {
+ return $this->scoreTag;
+ }
+ public function setScoreValue($scoreValue)
+ {
+ $this->scoreValue = $scoreValue;
+ }
+ public function getScoreValue()
+ {
+ return $this->scoreValue;
+ }
+ public function setSocialRank(Google_Service_Games_LeaderboardScoreRank $socialRank)
+ {
+ $this->socialRank = $socialRank;
+ }
+ public function getSocialRank()
+ {
+ return $this->socialRank;
+ }
+ public function setTimeSpan($timeSpan)
+ {
+ $this->timeSpan = $timeSpan;
+ }
+ public function getTimeSpan()
+ {
+ return $this->timeSpan;
+ }
+ public function setWriteTimestamp($writeTimestamp)
+ {
+ $this->writeTimestamp = $writeTimestamp;
+ }
+ public function getWriteTimestamp()
+ {
+ return $this->writeTimestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScoreListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScoreListResponse.php
new file mode 100644
index 00000000..99bf0bc0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLeaderboardScoreListResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerLeaderboardScoreListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_PlayerLeaderboardScore';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $playerType = 'Google_Service_Games_Player';
+ protected $playerDataType = '';
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPlayer(Google_Service_Games_Player $player)
+ {
+ $this->player = $player;
+ }
+ public function getPlayer()
+ {
+ return $this->player;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLevel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLevel.php
new file mode 100644
index 00000000..f10a55b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerLevel.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerLevel extends Google_Model
+{
+ public $kind;
+ public $level;
+ public $maxExperiencePoints;
+ public $minExperiencePoints;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+ public function setMaxExperiencePoints($maxExperiencePoints)
+ {
+ $this->maxExperiencePoints = $maxExperiencePoints;
+ }
+ public function getMaxExperiencePoints()
+ {
+ return $this->maxExperiencePoints;
+ }
+ public function setMinExperiencePoints($minExperiencePoints)
+ {
+ $this->minExperiencePoints = $minExperiencePoints;
+ }
+ public function getMinExperiencePoints()
+ {
+ return $this->minExperiencePoints;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerListResponse.php
new file mode 100644
index 00000000..442910b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_Player';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerName.php
new file mode 100644
index 00000000..beadfaf1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerName.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerName extends Google_Model
+{
+ public $familyName;
+ public $givenName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScore.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScore.php
new file mode 100644
index 00000000..418f80ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScore.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerScore extends Google_Model
+{
+ public $formattedScore;
+ public $kind;
+ public $score;
+ public $scoreTag;
+ public $timeSpan;
+
+ public function setFormattedScore($formattedScore)
+ {
+ $this->formattedScore = $formattedScore;
+ }
+ public function getFormattedScore()
+ {
+ return $this->formattedScore;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+ public function setScoreTag($scoreTag)
+ {
+ $this->scoreTag = $scoreTag;
+ }
+ public function getScoreTag()
+ {
+ return $this->scoreTag;
+ }
+ public function setTimeSpan($timeSpan)
+ {
+ $this->timeSpan = $timeSpan;
+ }
+ public function getTimeSpan()
+ {
+ return $this->timeSpan;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreListResponse.php
new file mode 100644
index 00000000..1132c67d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerScoreListResponse extends Google_Collection
+{
+ protected $collection_key = 'submittedScores';
+ public $kind;
+ protected $submittedScoresType = 'Google_Service_Games_PlayerScoreResponse';
+ protected $submittedScoresDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSubmittedScores($submittedScores)
+ {
+ $this->submittedScores = $submittedScores;
+ }
+ public function getSubmittedScores()
+ {
+ return $this->submittedScores;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreResponse.php
new file mode 100644
index 00000000..8d10ed55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreResponse.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerScoreResponse extends Google_Collection
+{
+ protected $collection_key = 'unbeatenScores';
+ public $beatenScoreTimeSpans;
+ public $formattedScore;
+ public $kind;
+ public $leaderboardId;
+ public $scoreTag;
+ protected $unbeatenScoresType = 'Google_Service_Games_PlayerScore';
+ protected $unbeatenScoresDataType = 'array';
+
+ public function setBeatenScoreTimeSpans($beatenScoreTimeSpans)
+ {
+ $this->beatenScoreTimeSpans = $beatenScoreTimeSpans;
+ }
+ public function getBeatenScoreTimeSpans()
+ {
+ return $this->beatenScoreTimeSpans;
+ }
+ public function setFormattedScore($formattedScore)
+ {
+ $this->formattedScore = $formattedScore;
+ }
+ public function getFormattedScore()
+ {
+ return $this->formattedScore;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeaderboardId($leaderboardId)
+ {
+ $this->leaderboardId = $leaderboardId;
+ }
+ public function getLeaderboardId()
+ {
+ return $this->leaderboardId;
+ }
+ public function setScoreTag($scoreTag)
+ {
+ $this->scoreTag = $scoreTag;
+ }
+ public function getScoreTag()
+ {
+ return $this->scoreTag;
+ }
+ public function setUnbeatenScores($unbeatenScores)
+ {
+ $this->unbeatenScores = $unbeatenScores;
+ }
+ public function getUnbeatenScores()
+ {
+ return $this->unbeatenScores;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreSubmissionList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreSubmissionList.php
new file mode 100644
index 00000000..509daeda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PlayerScoreSubmissionList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PlayerScoreSubmissionList extends Google_Collection
+{
+ protected $collection_key = 'scores';
+ public $kind;
+ protected $scoresType = 'Google_Service_Games_ScoreSubmission';
+ protected $scoresDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setScores($scores)
+ {
+ $this->scores = $scores;
+ }
+ public function getScores()
+ {
+ return $this->scores;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ProfileSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ProfileSettings.php
new file mode 100644
index 00000000..b59cd8fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ProfileSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_ProfileSettings extends Google_Model
+{
+ public $kind;
+ public $profileVisible;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProfileVisible($profileVisible)
+ {
+ $this->profileVisible = $profileVisible;
+ }
+ public function getProfileVisible()
+ {
+ return $this->profileVisible;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushToken.php
new file mode 100644
index 00000000..3a26d18f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushToken.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PushToken extends Google_Model
+{
+ public $clientRevision;
+ protected $idType = 'Google_Service_Games_PushTokenId';
+ protected $idDataType = '';
+ public $kind;
+ public $language;
+
+ public function setClientRevision($clientRevision)
+ {
+ $this->clientRevision = $clientRevision;
+ }
+ public function getClientRevision()
+ {
+ return $this->clientRevision;
+ }
+ public function setId(Google_Service_Games_PushTokenId $id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenId.php
new file mode 100644
index 00000000..5781564a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenId.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PushTokenId extends Google_Model
+{
+ protected $iosType = 'Google_Service_Games_PushTokenIdIos';
+ protected $iosDataType = '';
+ public $kind;
+
+ public function setIos(Google_Service_Games_PushTokenIdIos $ios)
+ {
+ $this->ios = $ios;
+ }
+ public function getIos()
+ {
+ return $this->ios;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenIdIos.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenIdIos.php
new file mode 100644
index 00000000..7a7ebbe4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/PushTokenIdIos.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_PushTokenIdIos extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "apnsDeviceToken" => "apns_device_token",
+ "apnsEnvironment" => "apns_environment",
+ );
+ public $apnsDeviceToken;
+ public $apnsEnvironment;
+
+ public function setApnsDeviceToken($apnsDeviceToken)
+ {
+ $this->apnsDeviceToken = $apnsDeviceToken;
+ }
+ public function getApnsDeviceToken()
+ {
+ return $this->apnsDeviceToken;
+ }
+ public function setApnsEnvironment($apnsEnvironment)
+ {
+ $this->apnsEnvironment = $apnsEnvironment;
+ }
+ public function getApnsEnvironment()
+ {
+ return $this->apnsEnvironment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Quest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Quest.php
new file mode 100644
index 00000000..9c58dcfa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Quest.php
@@ -0,0 +1,167 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Quest extends Google_Collection
+{
+ protected $collection_key = 'milestones';
+ public $acceptedTimestampMillis;
+ public $applicationId;
+ public $bannerUrl;
+ public $description;
+ public $endTimestampMillis;
+ public $iconUrl;
+ public $id;
+ public $isDefaultBannerUrl;
+ public $isDefaultIconUrl;
+ public $kind;
+ public $lastUpdatedTimestampMillis;
+ protected $milestonesType = 'Google_Service_Games_QuestMilestone';
+ protected $milestonesDataType = 'array';
+ public $name;
+ public $notifyTimestampMillis;
+ public $startTimestampMillis;
+ public $state;
+
+ public function setAcceptedTimestampMillis($acceptedTimestampMillis)
+ {
+ $this->acceptedTimestampMillis = $acceptedTimestampMillis;
+ }
+ public function getAcceptedTimestampMillis()
+ {
+ return $this->acceptedTimestampMillis;
+ }
+ public function setApplicationId($applicationId)
+ {
+ $this->applicationId = $applicationId;
+ }
+ public function getApplicationId()
+ {
+ return $this->applicationId;
+ }
+ public function setBannerUrl($bannerUrl)
+ {
+ $this->bannerUrl = $bannerUrl;
+ }
+ public function getBannerUrl()
+ {
+ return $this->bannerUrl;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTimestampMillis($endTimestampMillis)
+ {
+ $this->endTimestampMillis = $endTimestampMillis;
+ }
+ public function getEndTimestampMillis()
+ {
+ return $this->endTimestampMillis;
+ }
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsDefaultBannerUrl($isDefaultBannerUrl)
+ {
+ $this->isDefaultBannerUrl = $isDefaultBannerUrl;
+ }
+ public function getIsDefaultBannerUrl()
+ {
+ return $this->isDefaultBannerUrl;
+ }
+ public function setIsDefaultIconUrl($isDefaultIconUrl)
+ {
+ $this->isDefaultIconUrl = $isDefaultIconUrl;
+ }
+ public function getIsDefaultIconUrl()
+ {
+ return $this->isDefaultIconUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUpdatedTimestampMillis($lastUpdatedTimestampMillis)
+ {
+ $this->lastUpdatedTimestampMillis = $lastUpdatedTimestampMillis;
+ }
+ public function getLastUpdatedTimestampMillis()
+ {
+ return $this->lastUpdatedTimestampMillis;
+ }
+ public function setMilestones($milestones)
+ {
+ $this->milestones = $milestones;
+ }
+ public function getMilestones()
+ {
+ return $this->milestones;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotifyTimestampMillis($notifyTimestampMillis)
+ {
+ $this->notifyTimestampMillis = $notifyTimestampMillis;
+ }
+ public function getNotifyTimestampMillis()
+ {
+ return $this->notifyTimestampMillis;
+ }
+ public function setStartTimestampMillis($startTimestampMillis)
+ {
+ $this->startTimestampMillis = $startTimestampMillis;
+ }
+ public function getStartTimestampMillis()
+ {
+ return $this->startTimestampMillis;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestContribution.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestContribution.php
new file mode 100644
index 00000000..357d66f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestContribution.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_QuestContribution extends Google_Model
+{
+ public $formattedValue;
+ public $kind;
+ public $value;
+
+ public function setFormattedValue($formattedValue)
+ {
+ $this->formattedValue = $formattedValue;
+ }
+ public function getFormattedValue()
+ {
+ return $this->formattedValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestCriterion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestCriterion.php
new file mode 100644
index 00000000..925d59bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestCriterion.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_QuestCriterion extends Google_Model
+{
+ protected $completionContributionType = 'Google_Service_Games_QuestContribution';
+ protected $completionContributionDataType = '';
+ protected $currentContributionType = 'Google_Service_Games_QuestContribution';
+ protected $currentContributionDataType = '';
+ public $eventId;
+ protected $initialPlayerProgressType = 'Google_Service_Games_QuestContribution';
+ protected $initialPlayerProgressDataType = '';
+ public $kind;
+
+ public function setCompletionContribution(Google_Service_Games_QuestContribution $completionContribution)
+ {
+ $this->completionContribution = $completionContribution;
+ }
+ public function getCompletionContribution()
+ {
+ return $this->completionContribution;
+ }
+ public function setCurrentContribution(Google_Service_Games_QuestContribution $currentContribution)
+ {
+ $this->currentContribution = $currentContribution;
+ }
+ public function getCurrentContribution()
+ {
+ return $this->currentContribution;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setInitialPlayerProgress(Google_Service_Games_QuestContribution $initialPlayerProgress)
+ {
+ $this->initialPlayerProgress = $initialPlayerProgress;
+ }
+ public function getInitialPlayerProgress()
+ {
+ return $this->initialPlayerProgress;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestListResponse.php
new file mode 100644
index 00000000..c683720f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_QuestListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_Quest';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestMilestone.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestMilestone.php
new file mode 100644
index 00000000..846f2ee3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/QuestMilestone.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_QuestMilestone extends Google_Collection
+{
+ protected $collection_key = 'criteria';
+ public $completionRewardData;
+ protected $criteriaType = 'Google_Service_Games_QuestCriterion';
+ protected $criteriaDataType = 'array';
+ public $id;
+ public $kind;
+ public $state;
+
+ public function setCompletionRewardData($completionRewardData)
+ {
+ $this->completionRewardData = $completionRewardData;
+ }
+ public function getCompletionRewardData()
+ {
+ return $this->completionRewardData;
+ }
+ public function setCriteria($criteria)
+ {
+ $this->criteria = $criteria;
+ }
+ public function getCriteria()
+ {
+ return $this->criteria;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/AchievementDefinitions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/AchievementDefinitions.php
new file mode 100644
index 00000000..3d4b8d87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/AchievementDefinitions.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "achievementDefinitions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $achievementDefinitions = $gamesService->achievementDefinitions;
+ * </code>
+ */
+class Google_Service_Games_Resource_AchievementDefinitions extends Google_Service_Resource
+{
+ /**
+ * Lists all the achievement definitions for your application.
+ * (achievementDefinitions.listAchievementDefinitions)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of achievement resources to
+ * return in the response, used for paging. For any response, the actual number
+ * of achievement resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_AchievementDefinitionsListResponse
+ */
+ public function listAchievementDefinitions($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_AchievementDefinitionsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php
new file mode 100644
index 00000000..aa58c5ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Achievements.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "achievements" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $achievements = $gamesService->achievements;
+ * </code>
+ */
+class Google_Service_Games_Resource_Achievements extends Google_Service_Resource
+{
+ /**
+ * Increments the steps of the achievement with the given ID for the currently
+ * authenticated player. (achievements.increment)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param int $stepsToIncrement The number of steps to increment.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string requestId A randomly generated numeric ID for each request
+ * specified by the caller. This number is used at the server to ensure that the
+ * request is handled correctly across retries.
+ * @return Google_Service_Games_AchievementIncrementResponse
+ */
+ public function increment($achievementId, $stepsToIncrement, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId, 'stepsToIncrement' => $stepsToIncrement);
+ $params = array_merge($params, $optParams);
+ return $this->call('increment', array($params), "Google_Service_Games_AchievementIncrementResponse");
+ }
+ /**
+ * Lists the progress for all your application's achievements for the currently
+ * authenticated player. (achievements.listAchievements)
+ *
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of achievement resources to
+ * return in the response, used for paging. For any response, the actual number
+ * of achievement resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param string state Tells the server to return only achievements with the
+ * specified state. If this parameter isn't specified, all achievements are
+ * returned.
+ * @return Google_Service_Games_PlayerAchievementListResponse
+ */
+ public function listAchievements($playerId, $optParams = array())
+ {
+ $params = array('playerId' => $playerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_PlayerAchievementListResponse");
+ }
+ /**
+ * Sets the state of the achievement with the given ID to REVEALED for the
+ * currently authenticated player. (achievements.reveal)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @return Google_Service_Games_AchievementRevealResponse
+ */
+ public function reveal($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('reveal', array($params), "Google_Service_Games_AchievementRevealResponse");
+ }
+ /**
+ * Sets the steps for the currently authenticated player towards unlocking an
+ * achievement. If the steps parameter is less than the current number of steps
+ * that the player already gained for the achievement, the achievement is not
+ * modified. (achievements.setStepsAtLeast)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param int $steps The minimum value to set the steps to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @return Google_Service_Games_AchievementSetStepsAtLeastResponse
+ */
+ public function setStepsAtLeast($achievementId, $steps, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId, 'steps' => $steps);
+ $params = array_merge($params, $optParams);
+ return $this->call('setStepsAtLeast', array($params), "Google_Service_Games_AchievementSetStepsAtLeastResponse");
+ }
+ /**
+ * Unlocks this achievement for the currently authenticated player.
+ * (achievements.unlock)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @return Google_Service_Games_AchievementUnlockResponse
+ */
+ public function unlock($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('unlock', array($params), "Google_Service_Games_AchievementUnlockResponse");
+ }
+ /**
+ * Updates multiple achievements for the currently authenticated player.
+ * (achievements.updateMultiple)
+ *
+ * @param Google_Service_Games_AchievementUpdateMultipleRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @return Google_Service_Games_AchievementUpdateMultipleResponse
+ */
+ public function updateMultiple(Google_Service_Games_AchievementUpdateMultipleRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateMultiple', array($params), "Google_Service_Games_AchievementUpdateMultipleResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php
new file mode 100644
index 00000000..f8acdb07
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Applications.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "applications" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $applications = $gamesService->applications;
+ * </code>
+ */
+class Google_Service_Games_Resource_Applications extends Google_Service_Resource
+{
+ /**
+ * Retrieves the metadata of the application with the given ID. If the requested
+ * application is not available for the specified platformType, the returned
+ * response will not include any instance data. (applications.get)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param string platformType Restrict application details returned to the
+ * specific platform.
+ * @return Google_Service_Games_Application
+ */
+ public function get($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Games_Application");
+ }
+ /**
+ * Indicate that the the currently authenticated user is playing your
+ * application. (applications.played)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ */
+ public function played($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('played', array($params));
+ }
+ /**
+ * Verifies the auth token provided with this request is for the application
+ * with the specified ID, and returns the ID of the player it was granted for.
+ * (applications.verify)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @return Google_Service_Games_ApplicationVerifyResponse
+ */
+ public function verify($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('verify', array($params), "Google_Service_Games_ApplicationVerifyResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Events.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Events.php
new file mode 100644
index 00000000..b72e0656
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Events.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "events" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $events = $gamesService->events;
+ * </code>
+ */
+class Google_Service_Games_Resource_Events extends Google_Service_Resource
+{
+ /**
+ * Returns a list showing the current progress on events in this application for
+ * the currently authenticated user. (events.listByPlayer)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of events to return in the
+ * response, used for paging. For any response, the actual number of events to
+ * return may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_PlayerEventListResponse
+ */
+ public function listByPlayer($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('listByPlayer', array($params), "Google_Service_Games_PlayerEventListResponse");
+ }
+ /**
+ * Returns a list of the event definitions in this application.
+ * (events.listDefinitions)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of event definitions to return
+ * in the response, used for paging. For any response, the actual number of
+ * event definitions to return may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_EventDefinitionListResponse
+ */
+ public function listDefinitions($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('listDefinitions', array($params), "Google_Service_Games_EventDefinitionListResponse");
+ }
+ /**
+ * Records a batch of changes to the number of times events have occurred for
+ * the currently authenticated user of this application. (events.record)
+ *
+ * @param Google_Service_Games_EventRecordRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_EventUpdateResponse
+ */
+ public function record(Google_Service_Games_EventRecordRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('record', array($params), "Google_Service_Games_EventUpdateResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Leaderboards.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Leaderboards.php
new file mode 100644
index 00000000..89e346c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Leaderboards.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "leaderboards" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $leaderboards = $gamesService->leaderboards;
+ * </code>
+ */
+class Google_Service_Games_Resource_Leaderboards extends Google_Service_Resource
+{
+ /**
+ * Retrieves the metadata of the leaderboard with the given ID.
+ * (leaderboards.get)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Leaderboard
+ */
+ public function get($leaderboardId, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Games_Leaderboard");
+ }
+ /**
+ * Lists all the leaderboard metadata for your application.
+ * (leaderboards.listLeaderboards)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of leaderboards to return in the
+ * response. For any response, the actual number of leaderboards returned may be
+ * less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_LeaderboardListResponse
+ */
+ public function listLeaderboards($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_LeaderboardListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Metagame.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Metagame.php
new file mode 100644
index 00000000..c89f6075
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Metagame.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metagame" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $metagame = $gamesService->metagame;
+ * </code>
+ */
+class Google_Service_Games_Resource_Metagame extends Google_Service_Resource
+{
+ /**
+ * Return the metagame configuration data for the calling application.
+ * (metagame.getMetagameConfig)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @return Google_Service_Games_MetagameConfig
+ */
+ public function getMetagameConfig($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig");
+ }
+ /**
+ * List play data aggregated per category for the player corresponding to
+ * playerId. (metagame.listCategoriesByPlayer)
+ *
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param string $collection The collection of categories for which data will be
+ * returned.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of category resources to return
+ * in the response, used for paging. For any response, the actual number of
+ * category resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_CategoryListResponse
+ */
+ public function listCategoriesByPlayer($playerId, $collection, $optParams = array())
+ {
+ $params = array('playerId' => $playerId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('listCategoriesByPlayer', array($params), "Google_Service_Games_CategoryListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Players.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Players.php
new file mode 100644
index 00000000..4ed67d25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Players.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "players" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $players = $gamesService->players;
+ * </code>
+ */
+class Google_Service_Games_Resource_Players extends Google_Service_Resource
+{
+ /**
+ * Retrieves the Player resource with the given ID. To retrieve the player for
+ * the currently authenticated user, set playerId to me. (players.get)
+ *
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Player
+ */
+ public function get($playerId, $optParams = array())
+ {
+ $params = array('playerId' => $playerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Games_Player");
+ }
+ /**
+ * Get the collection of players for the currently authenticated user.
+ * (players.listPlayers)
+ *
+ * @param string $collection Collection of players being retrieved
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of player resources to return in
+ * the response, used for paging. For any response, the actual number of player
+ * resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_PlayerListResponse
+ */
+ public function listPlayers($collection, $optParams = array())
+ {
+ $params = array('collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_PlayerListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Pushtokens.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Pushtokens.php
new file mode 100644
index 00000000..052edf27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Pushtokens.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "pushtokens" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $pushtokens = $gamesService->pushtokens;
+ * </code>
+ */
+class Google_Service_Games_Resource_Pushtokens extends Google_Service_Resource
+{
+ /**
+ * Removes a push token for the current user and application. Removing a non-
+ * existent push token will report success. (pushtokens.remove)
+ *
+ * @param Google_Service_Games_PushTokenId $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ */
+ public function remove(Google_Service_Games_PushTokenId $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('remove', array($params));
+ }
+ /**
+ * Registers a push token for the current user and application.
+ * (pushtokens.update)
+ *
+ * @param Google_Service_Games_PushToken $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ */
+ public function update(Google_Service_Games_PushToken $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/QuestMilestones.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/QuestMilestones.php
new file mode 100644
index 00000000..5b2bcf4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/QuestMilestones.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "questMilestones" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $questMilestones = $gamesService->questMilestones;
+ * </code>
+ */
+class Google_Service_Games_Resource_QuestMilestones extends Google_Service_Resource
+{
+ /**
+ * Report that a reward for the milestone corresponding to milestoneId for the
+ * quest corresponding to questId has been claimed by the currently authorized
+ * user. (questMilestones.claim)
+ *
+ * @param string $questId The ID of the quest.
+ * @param string $milestoneId The ID of the milestone.
+ * @param string $requestId A numeric ID to ensure that the request is handled
+ * correctly across retries. Your client application must generate this ID
+ * randomly.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ */
+ public function claim($questId, $milestoneId, $requestId, $optParams = array())
+ {
+ $params = array('questId' => $questId, 'milestoneId' => $milestoneId, 'requestId' => $requestId);
+ $params = array_merge($params, $optParams);
+ return $this->call('claim', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Quests.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Quests.php
new file mode 100644
index 00000000..4ed8d679
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Quests.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "quests" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $quests = $gamesService->quests;
+ * </code>
+ */
+class Google_Service_Games_Resource_Quests extends Google_Service_Resource
+{
+ /**
+ * Indicates that the currently authorized user will participate in the quest.
+ * (quests.accept)
+ *
+ * @param string $questId The ID of the quest.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Quest
+ */
+ public function accept($questId, $optParams = array())
+ {
+ $params = array('questId' => $questId);
+ $params = array_merge($params, $optParams);
+ return $this->call('accept', array($params), "Google_Service_Games_Quest");
+ }
+ /**
+ * Get a list of quests for your application and the currently authenticated
+ * player. (quests.listQuests)
+ *
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of quest resources to return in
+ * the response, used for paging. For any response, the actual number of quest
+ * resources returned may be less than the specified maxResults. Acceptable
+ * values are 1 to 50, inclusive. (Default: 50).
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_QuestListResponse
+ */
+ public function listQuests($playerId, $optParams = array())
+ {
+ $params = array('playerId' => $playerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_QuestListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Revisions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Revisions.php
new file mode 100644
index 00000000..5370204f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Revisions.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "revisions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $revisions = $gamesService->revisions;
+ * </code>
+ */
+class Google_Service_Games_Resource_Revisions extends Google_Service_Resource
+{
+ /**
+ * Checks whether the games client is out of date. (revisions.check)
+ *
+ * @param string $clientRevision The revision of the client SDK used by your
+ * application. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of
+ * PLATFORM_TYPE are: - "ANDROID" - Client is running the Android SDK. -
+ * "IOS" - Client is running the iOS SDK. - "WEB_APP" - Client is running as a
+ * Web App.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @return Google_Service_Games_RevisionCheckResponse
+ */
+ public function check($clientRevision, $optParams = array())
+ {
+ $params = array('clientRevision' => $clientRevision);
+ $params = array_merge($params, $optParams);
+ return $this->call('check', array($params), "Google_Service_Games_RevisionCheckResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Rooms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Rooms.php
new file mode 100644
index 00000000..cc863dfb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Rooms.php
@@ -0,0 +1,174 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "rooms" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $rooms = $gamesService->rooms;
+ * </code>
+ */
+class Google_Service_Games_Resource_Rooms extends Google_Service_Resource
+{
+ /**
+ * Create a room. For internal use by the Games SDK only. Calling this method
+ * directly is unsupported. (rooms.create)
+ *
+ * @param Google_Service_Games_RoomCreateRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Room
+ */
+ public function create(Google_Service_Games_RoomCreateRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Games_Room");
+ }
+ /**
+ * Decline an invitation to join a room. For internal use by the Games SDK only.
+ * Calling this method directly is unsupported. (rooms.decline)
+ *
+ * @param string $roomId The ID of the room.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Room
+ */
+ public function decline($roomId, $optParams = array())
+ {
+ $params = array('roomId' => $roomId);
+ $params = array_merge($params, $optParams);
+ return $this->call('decline', array($params), "Google_Service_Games_Room");
+ }
+ /**
+ * Dismiss an invitation to join a room. For internal use by the Games SDK only.
+ * Calling this method directly is unsupported. (rooms.dismiss)
+ *
+ * @param string $roomId The ID of the room.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ */
+ public function dismiss($roomId, $optParams = array())
+ {
+ $params = array('roomId' => $roomId);
+ $params = array_merge($params, $optParams);
+ return $this->call('dismiss', array($params));
+ }
+ /**
+ * Get the data for a room. (rooms.get)
+ *
+ * @param string $roomId The ID of the room.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Room
+ */
+ public function get($roomId, $optParams = array())
+ {
+ $params = array('roomId' => $roomId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Games_Room");
+ }
+ /**
+ * Join a room. For internal use by the Games SDK only. Calling this method
+ * directly is unsupported. (rooms.join)
+ *
+ * @param string $roomId The ID of the room.
+ * @param Google_Service_Games_RoomJoinRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Room
+ */
+ public function join($roomId, Google_Service_Games_RoomJoinRequest $postBody, $optParams = array())
+ {
+ $params = array('roomId' => $roomId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('join', array($params), "Google_Service_Games_Room");
+ }
+ /**
+ * Leave a room. For internal use by the Games SDK only. Calling this method
+ * directly is unsupported. (rooms.leave)
+ *
+ * @param string $roomId The ID of the room.
+ * @param Google_Service_Games_RoomLeaveRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Room
+ */
+ public function leave($roomId, Google_Service_Games_RoomLeaveRequest $postBody, $optParams = array())
+ {
+ $params = array('roomId' => $roomId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('leave', array($params), "Google_Service_Games_Room");
+ }
+ /**
+ * Returns invitations to join rooms. (rooms.listRooms)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of rooms to return in the
+ * response, used for paging. For any response, the actual number of rooms to
+ * return may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_RoomList
+ */
+ public function listRooms($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_RoomList");
+ }
+ /**
+ * Updates sent by a client reporting the status of peers in a room. For
+ * internal use by the Games SDK only. Calling this method directly is
+ * unsupported. (rooms.reportStatus)
+ *
+ * @param string $roomId The ID of the room.
+ * @param Google_Service_Games_RoomP2PStatuses $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_RoomStatus
+ */
+ public function reportStatus($roomId, Google_Service_Games_RoomP2PStatuses $postBody, $optParams = array())
+ {
+ $params = array('roomId' => $roomId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reportStatus', array($params), "Google_Service_Games_RoomStatus");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Scores.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Scores.php
new file mode 100644
index 00000000..a6ae8bda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Scores.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "scores" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $scores = $gamesService->scores;
+ * </code>
+ */
+class Google_Service_Games_Resource_Scores extends Google_Service_Resource
+{
+ /**
+ * Get high scores, and optionally ranks, in leaderboards for the currently
+ * authenticated player. For a specific time span, leaderboardId can be set to
+ * ALL to retrieve data for all leaderboards in a given time span. NOTE: You
+ * cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request;
+ * only one parameter may be set to 'ALL'. (scores.get)
+ *
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param string $leaderboardId The ID of the leaderboard. Can be set to 'ALL'
+ * to retrieve data for all leaderboards for this application.
+ * @param string $timeSpan The time span for the scores and ranks you're
+ * requesting.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string includeRankType The types of ranks to return. If the
+ * parameter is omitted, no ranks will be returned.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of leaderboard scores to return
+ * in the response. For any response, the actual number of leaderboard scores
+ * returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_PlayerLeaderboardScoreListResponse
+ */
+ public function get($playerId, $leaderboardId, $timeSpan, $optParams = array())
+ {
+ $params = array('playerId' => $playerId, 'leaderboardId' => $leaderboardId, 'timeSpan' => $timeSpan);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Games_PlayerLeaderboardScoreListResponse");
+ }
+ /**
+ * Lists the scores in a leaderboard, starting from the top. (scores.listScores)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param string $collection The collection of scores you're requesting.
+ * @param string $timeSpan The time span for the scores and ranks you're
+ * requesting.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of leaderboard scores to return
+ * in the response. For any response, the actual number of leaderboard scores
+ * returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_LeaderboardScores
+ */
+ public function listScores($leaderboardId, $collection, $timeSpan, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_LeaderboardScores");
+ }
+ /**
+ * Lists the scores in a leaderboard around (and including) a player's score.
+ * (scores.listWindow)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param string $collection The collection of scores you're requesting.
+ * @param string $timeSpan The time span for the scores and ranks you're
+ * requesting.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of leaderboard scores to return
+ * in the response. For any response, the actual number of leaderboard scores
+ * returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param int resultsAbove The preferred number of scores to return above
+ * the player's score. More scores may be returned if the player is at the
+ * bottom of the leaderboard; fewer may be returned if the player is at the top.
+ * Must be less than or equal to maxResults.
+ * @opt_param bool returnTopIfAbsent True if the top scores should be returned
+ * when the player is not in the leaderboard. Defaults to true.
+ * @return Google_Service_Games_LeaderboardScores
+ */
+ public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan);
+ $params = array_merge($params, $optParams);
+ return $this->call('listWindow', array($params), "Google_Service_Games_LeaderboardScores");
+ }
+ /**
+ * Submits a score to the specified leaderboard. (scores.submit)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param string $score The score you're submitting. The submitted score is
+ * ignored if it is worse than a previously submitted score, where worse depends
+ * on the leaderboard sort order. The meaning of the score value depends on the
+ * leaderboard format type. For fixed-point, the score represents the raw value.
+ * For time, the score represents elapsed time in milliseconds. For currency,
+ * the score represents a value in micro units.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param string scoreTag Additional information about the score you're
+ * submitting. Values must contain no more than 64 URI-safe characters as
+ * defined by section 2.3 of RFC 3986.
+ * @return Google_Service_Games_PlayerScoreResponse
+ */
+ public function submit($leaderboardId, $score, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId, 'score' => $score);
+ $params = array_merge($params, $optParams);
+ return $this->call('submit', array($params), "Google_Service_Games_PlayerScoreResponse");
+ }
+ /**
+ * Submits multiple scores to leaderboards. (scores.submitMultiple)
+ *
+ * @param Google_Service_Games_PlayerScoreSubmissionList $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_PlayerScoreListResponse
+ */
+ public function submitMultiple(Google_Service_Games_PlayerScoreSubmissionList $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('submitMultiple', array($params), "Google_Service_Games_PlayerScoreListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Snapshots.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Snapshots.php
new file mode 100644
index 00000000..5655d985
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/Snapshots.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "snapshots" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $snapshots = $gamesService->snapshots;
+ * </code>
+ */
+class Google_Service_Games_Resource_Snapshots extends Google_Service_Resource
+{
+ /**
+ * Retrieves the metadata for a given snapshot ID. (snapshots.get)
+ *
+ * @param string $snapshotId The ID of the snapshot.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_Snapshot
+ */
+ public function get($snapshotId, $optParams = array())
+ {
+ $params = array('snapshotId' => $snapshotId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Games_Snapshot");
+ }
+ /**
+ * Retrieves a list of snapshots created by your application for the player
+ * corresponding to the player ID. (snapshots.listSnapshots)
+ *
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxResults The maximum number of snapshot resources to return
+ * in the response, used for paging. For any response, the actual number of
+ * snapshot resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_SnapshotListResponse
+ */
+ public function listSnapshots($playerId, $optParams = array())
+ {
+ $params = array('playerId' => $playerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_SnapshotListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/TurnBasedMatches.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/TurnBasedMatches.php
new file mode 100644
index 00000000..e6c05a2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Resource/TurnBasedMatches.php
@@ -0,0 +1,289 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "turnBasedMatches" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesService = new Google_Service_Games(...);
+ * $turnBasedMatches = $gamesService->turnBasedMatches;
+ * </code>
+ */
+class Google_Service_Games_Resource_TurnBasedMatches extends Google_Service_Resource
+{
+ /**
+ * Cancel a turn-based match. (turnBasedMatches.cancel)
+ *
+ * @param string $matchId The ID of the match.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ */
+ public function cancel($matchId, $optParams = array())
+ {
+ $params = array('matchId' => $matchId);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params));
+ }
+ /**
+ * Create a turn-based match. (turnBasedMatches.create)
+ *
+ * @param Google_Service_Games_TurnBasedMatchCreateRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function create(Google_Service_Games_TurnBasedMatchCreateRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+ /**
+ * Decline an invitation to play a turn-based match. (turnBasedMatches.decline)
+ *
+ * @param string $matchId The ID of the match.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function decline($matchId, $optParams = array())
+ {
+ $params = array('matchId' => $matchId);
+ $params = array_merge($params, $optParams);
+ return $this->call('decline', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+ /**
+ * Dismiss a turn-based match from the match list. The match will no longer show
+ * up in the list and will not generate notifications.
+ * (turnBasedMatches.dismiss)
+ *
+ * @param string $matchId The ID of the match.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ */
+ public function dismiss($matchId, $optParams = array())
+ {
+ $params = array('matchId' => $matchId);
+ $params = array_merge($params, $optParams);
+ return $this->call('dismiss', array($params));
+ }
+ /**
+ * Finish a turn-based match. Each player should make this call once, after all
+ * results are in. Only the player whose turn it is may make the first call to
+ * Finish, and can pass in the final match state. (turnBasedMatches.finish)
+ *
+ * @param string $matchId The ID of the match.
+ * @param Google_Service_Games_TurnBasedMatchResults $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function finish($matchId, Google_Service_Games_TurnBasedMatchResults $postBody, $optParams = array())
+ {
+ $params = array('matchId' => $matchId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('finish', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+ /**
+ * Get the data for a turn-based match. (turnBasedMatches.get)
+ *
+ * @param string $matchId The ID of the match.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param bool includeMatchData Get match data along with metadata.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function get($matchId, $optParams = array())
+ {
+ $params = array('matchId' => $matchId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+ /**
+ * Join a turn-based match. (turnBasedMatches.join)
+ *
+ * @param string $matchId The ID of the match.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function join($matchId, $optParams = array())
+ {
+ $params = array('matchId' => $matchId);
+ $params = array_merge($params, $optParams);
+ return $this->call('join', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+ /**
+ * Leave a turn-based match when it is not the current player's turn, without
+ * canceling the match. (turnBasedMatches.leave)
+ *
+ * @param string $matchId The ID of the match.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function leave($matchId, $optParams = array())
+ {
+ $params = array('matchId' => $matchId);
+ $params = array_merge($params, $optParams);
+ return $this->call('leave', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+ /**
+ * Leave a turn-based match during the current player's turn, without canceling
+ * the match. (turnBasedMatches.leaveTurn)
+ *
+ * @param string $matchId The ID of the match.
+ * @param int $matchVersion The version of the match being updated.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param string pendingParticipantId The ID of another participant who
+ * should take their turn next. If not set, the match will wait for other
+ * player(s) to join via automatching; this is only valid if automatch criteria
+ * is set on the match with remaining slots for automatched players.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function leaveTurn($matchId, $matchVersion, $optParams = array())
+ {
+ $params = array('matchId' => $matchId, 'matchVersion' => $matchVersion);
+ $params = array_merge($params, $optParams);
+ return $this->call('leaveTurn', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+ /**
+ * Returns turn-based matches the player is or was involved in.
+ * (turnBasedMatches.listTurnBasedMatches)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param bool includeMatchData True if match data should be returned in the
+ * response. Note that not all data will necessarily be returned if
+ * include_match_data is true; the server may decide to only return data for
+ * some of the matches to limit download size for the client. The remainder of
+ * the data for these matches will be retrievable on request.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxCompletedMatches The maximum number of completed or
+ * canceled matches to return in the response. If not set, all matches returned
+ * could be completed or canceled.
+ * @opt_param int maxResults The maximum number of matches to return in the
+ * response, used for paging. For any response, the actual number of matches to
+ * return may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_TurnBasedMatchList
+ */
+ public function listTurnBasedMatches($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Games_TurnBasedMatchList");
+ }
+ /**
+ * Create a rematch of a match that was previously completed, with the same
+ * participants. This can be called by only one player on a match still in their
+ * list; the player must have called Finish first. Returns the newly created
+ * match; it will be the caller's turn. (turnBasedMatches.rematch)
+ *
+ * @param string $matchId The ID of the match.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param string requestId A randomly generated numeric ID for each request
+ * specified by the caller. This number is used at the server to ensure that the
+ * request is handled correctly across retries.
+ * @return Google_Service_Games_TurnBasedMatchRematch
+ */
+ public function rematch($matchId, $optParams = array())
+ {
+ $params = array('matchId' => $matchId);
+ $params = array_merge($params, $optParams);
+ return $this->call('rematch', array($params), "Google_Service_Games_TurnBasedMatchRematch");
+ }
+ /**
+ * Returns turn-based matches the player is or was involved in that changed
+ * since the last sync call, with the least recent changes coming first. Matches
+ * that should be removed from the local cache will have a status of
+ * MATCH_DELETED. (turnBasedMatches.sync)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param bool includeMatchData True if match data should be returned in the
+ * response. Note that not all data will necessarily be returned if
+ * include_match_data is true; the server may decide to only return data for
+ * some of the matches to limit download size for the client. The remainder of
+ * the data for these matches will be retrievable on request.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @opt_param int maxCompletedMatches The maximum number of completed or
+ * canceled matches to return in the response. If not set, all matches returned
+ * could be completed or canceled.
+ * @opt_param int maxResults The maximum number of matches to return in the
+ * response, used for paging. For any response, the actual number of matches to
+ * return may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_Games_TurnBasedMatchSync
+ */
+ public function sync($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('sync', array($params), "Google_Service_Games_TurnBasedMatchSync");
+ }
+ /**
+ * Commit the results of a player turn. (turnBasedMatches.takeTurn)
+ *
+ * @param string $matchId The ID of the match.
+ * @param Google_Service_Games_TurnBasedMatchTurn $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consistencyToken The last-seen mutation timestamp.
+ * @opt_param string language The preferred language to use for strings returned
+ * by this method.
+ * @return Google_Service_Games_TurnBasedMatch
+ */
+ public function takeTurn($matchId, Google_Service_Games_TurnBasedMatchTurn $postBody, $optParams = array())
+ {
+ $params = array('matchId' => $matchId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('takeTurn', array($params), "Google_Service_Games_TurnBasedMatch");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RevisionCheckResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RevisionCheckResponse.php
new file mode 100644
index 00000000..98696cad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RevisionCheckResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RevisionCheckResponse extends Google_Model
+{
+ public $apiVersion;
+ public $kind;
+ public $revisionStatus;
+
+ public function setApiVersion($apiVersion)
+ {
+ $this->apiVersion = $apiVersion;
+ }
+ public function getApiVersion()
+ {
+ return $this->apiVersion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRevisionStatus($revisionStatus)
+ {
+ $this->revisionStatus = $revisionStatus;
+ }
+ public function getRevisionStatus()
+ {
+ return $this->revisionStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Room.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Room.php
new file mode 100644
index 00000000..cf3501f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Room.php
@@ -0,0 +1,144 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Room extends Google_Collection
+{
+ protected $collection_key = 'participants';
+ public $applicationId;
+ protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria';
+ protected $autoMatchingCriteriaDataType = '';
+ protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus';
+ protected $autoMatchingStatusDataType = '';
+ protected $creationDetailsType = 'Google_Service_Games_RoomModification';
+ protected $creationDetailsDataType = '';
+ public $description;
+ public $inviterId;
+ public $kind;
+ protected $lastUpdateDetailsType = 'Google_Service_Games_RoomModification';
+ protected $lastUpdateDetailsDataType = '';
+ protected $participantsType = 'Google_Service_Games_RoomParticipant';
+ protected $participantsDataType = 'array';
+ public $roomId;
+ public $roomStatusVersion;
+ public $status;
+ public $variant;
+
+ public function setApplicationId($applicationId)
+ {
+ $this->applicationId = $applicationId;
+ }
+ public function getApplicationId()
+ {
+ return $this->applicationId;
+ }
+ public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria)
+ {
+ $this->autoMatchingCriteria = $autoMatchingCriteria;
+ }
+ public function getAutoMatchingCriteria()
+ {
+ return $this->autoMatchingCriteria;
+ }
+ public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus)
+ {
+ $this->autoMatchingStatus = $autoMatchingStatus;
+ }
+ public function getAutoMatchingStatus()
+ {
+ return $this->autoMatchingStatus;
+ }
+ public function setCreationDetails(Google_Service_Games_RoomModification $creationDetails)
+ {
+ $this->creationDetails = $creationDetails;
+ }
+ public function getCreationDetails()
+ {
+ return $this->creationDetails;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setInviterId($inviterId)
+ {
+ $this->inviterId = $inviterId;
+ }
+ public function getInviterId()
+ {
+ return $this->inviterId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUpdateDetails(Google_Service_Games_RoomModification $lastUpdateDetails)
+ {
+ $this->lastUpdateDetails = $lastUpdateDetails;
+ }
+ public function getLastUpdateDetails()
+ {
+ return $this->lastUpdateDetails;
+ }
+ public function setParticipants($participants)
+ {
+ $this->participants = $participants;
+ }
+ public function getParticipants()
+ {
+ return $this->participants;
+ }
+ public function setRoomId($roomId)
+ {
+ $this->roomId = $roomId;
+ }
+ public function getRoomId()
+ {
+ return $this->roomId;
+ }
+ public function setRoomStatusVersion($roomStatusVersion)
+ {
+ $this->roomStatusVersion = $roomStatusVersion;
+ }
+ public function getRoomStatusVersion()
+ {
+ return $this->roomStatusVersion;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setVariant($variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchStatus.php
new file mode 100644
index 00000000..d8daffae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchStatus.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomAutoMatchStatus extends Google_Model
+{
+ public $kind;
+ public $waitEstimateSeconds;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setWaitEstimateSeconds($waitEstimateSeconds)
+ {
+ $this->waitEstimateSeconds = $waitEstimateSeconds;
+ }
+ public function getWaitEstimateSeconds()
+ {
+ return $this->waitEstimateSeconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchingCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchingCriteria.php
new file mode 100644
index 00000000..5107dfdc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomAutoMatchingCriteria.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomAutoMatchingCriteria extends Google_Model
+{
+ public $exclusiveBitmask;
+ public $kind;
+ public $maxAutoMatchingPlayers;
+ public $minAutoMatchingPlayers;
+
+ public function setExclusiveBitmask($exclusiveBitmask)
+ {
+ $this->exclusiveBitmask = $exclusiveBitmask;
+ }
+ public function getExclusiveBitmask()
+ {
+ return $this->exclusiveBitmask;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers)
+ {
+ $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers;
+ }
+ public function getMaxAutoMatchingPlayers()
+ {
+ return $this->maxAutoMatchingPlayers;
+ }
+ public function setMinAutoMatchingPlayers($minAutoMatchingPlayers)
+ {
+ $this->minAutoMatchingPlayers = $minAutoMatchingPlayers;
+ }
+ public function getMinAutoMatchingPlayers()
+ {
+ return $this->minAutoMatchingPlayers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomClientAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomClientAddress.php
new file mode 100644
index 00000000..b65ae8e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomClientAddress.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomClientAddress extends Google_Model
+{
+ public $kind;
+ public $xmppAddress;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setXmppAddress($xmppAddress)
+ {
+ $this->xmppAddress = $xmppAddress;
+ }
+ public function getXmppAddress()
+ {
+ return $this->xmppAddress;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomCreateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomCreateRequest.php
new file mode 100644
index 00000000..b6bea55d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomCreateRequest.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomCreateRequest extends Google_Collection
+{
+ protected $collection_key = 'invitedPlayerIds';
+ protected $autoMatchingCriteriaType = 'Google_Service_Games_RoomAutoMatchingCriteria';
+ protected $autoMatchingCriteriaDataType = '';
+ public $capabilities;
+ protected $clientAddressType = 'Google_Service_Games_RoomClientAddress';
+ protected $clientAddressDataType = '';
+ public $invitedPlayerIds;
+ public $kind;
+ protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics';
+ protected $networkDiagnosticsDataType = '';
+ public $requestId;
+ public $variant;
+
+ public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria)
+ {
+ $this->autoMatchingCriteria = $autoMatchingCriteria;
+ }
+ public function getAutoMatchingCriteria()
+ {
+ return $this->autoMatchingCriteria;
+ }
+ public function setCapabilities($capabilities)
+ {
+ $this->capabilities = $capabilities;
+ }
+ public function getCapabilities()
+ {
+ return $this->capabilities;
+ }
+ public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress)
+ {
+ $this->clientAddress = $clientAddress;
+ }
+ public function getClientAddress()
+ {
+ return $this->clientAddress;
+ }
+ public function setInvitedPlayerIds($invitedPlayerIds)
+ {
+ $this->invitedPlayerIds = $invitedPlayerIds;
+ }
+ public function getInvitedPlayerIds()
+ {
+ return $this->invitedPlayerIds;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics)
+ {
+ $this->networkDiagnostics = $networkDiagnostics;
+ }
+ public function getNetworkDiagnostics()
+ {
+ return $this->networkDiagnostics;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setVariant($variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomJoinRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomJoinRequest.php
new file mode 100644
index 00000000..2f55f28e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomJoinRequest.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomJoinRequest extends Google_Collection
+{
+ protected $collection_key = 'capabilities';
+ public $capabilities;
+ protected $clientAddressType = 'Google_Service_Games_RoomClientAddress';
+ protected $clientAddressDataType = '';
+ public $kind;
+ protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics';
+ protected $networkDiagnosticsDataType = '';
+
+ public function setCapabilities($capabilities)
+ {
+ $this->capabilities = $capabilities;
+ }
+ public function getCapabilities()
+ {
+ return $this->capabilities;
+ }
+ public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress)
+ {
+ $this->clientAddress = $clientAddress;
+ }
+ public function getClientAddress()
+ {
+ return $this->clientAddress;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNetworkDiagnostics(Google_Service_Games_NetworkDiagnostics $networkDiagnostics)
+ {
+ $this->networkDiagnostics = $networkDiagnostics;
+ }
+ public function getNetworkDiagnostics()
+ {
+ return $this->networkDiagnostics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveDiagnostics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveDiagnostics.php
new file mode 100644
index 00000000..f456e9b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveDiagnostics.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomLeaveDiagnostics extends Google_Collection
+{
+ protected $collection_key = 'peerSession';
+ public $androidNetworkSubtype;
+ public $androidNetworkType;
+ public $iosNetworkType;
+ public $kind;
+ public $networkOperatorCode;
+ public $networkOperatorName;
+ protected $peerSessionType = 'Google_Service_Games_PeerSessionDiagnostics';
+ protected $peerSessionDataType = 'array';
+ public $socketsUsed;
+
+ public function setAndroidNetworkSubtype($androidNetworkSubtype)
+ {
+ $this->androidNetworkSubtype = $androidNetworkSubtype;
+ }
+ public function getAndroidNetworkSubtype()
+ {
+ return $this->androidNetworkSubtype;
+ }
+ public function setAndroidNetworkType($androidNetworkType)
+ {
+ $this->androidNetworkType = $androidNetworkType;
+ }
+ public function getAndroidNetworkType()
+ {
+ return $this->androidNetworkType;
+ }
+ public function setIosNetworkType($iosNetworkType)
+ {
+ $this->iosNetworkType = $iosNetworkType;
+ }
+ public function getIosNetworkType()
+ {
+ return $this->iosNetworkType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNetworkOperatorCode($networkOperatorCode)
+ {
+ $this->networkOperatorCode = $networkOperatorCode;
+ }
+ public function getNetworkOperatorCode()
+ {
+ return $this->networkOperatorCode;
+ }
+ public function setNetworkOperatorName($networkOperatorName)
+ {
+ $this->networkOperatorName = $networkOperatorName;
+ }
+ public function getNetworkOperatorName()
+ {
+ return $this->networkOperatorName;
+ }
+ public function setPeerSession($peerSession)
+ {
+ $this->peerSession = $peerSession;
+ }
+ public function getPeerSession()
+ {
+ return $this->peerSession;
+ }
+ public function setSocketsUsed($socketsUsed)
+ {
+ $this->socketsUsed = $socketsUsed;
+ }
+ public function getSocketsUsed()
+ {
+ return $this->socketsUsed;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveRequest.php
new file mode 100644
index 00000000..d41eec03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomLeaveRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomLeaveRequest extends Google_Model
+{
+ public $kind;
+ protected $leaveDiagnosticsType = 'Google_Service_Games_RoomLeaveDiagnostics';
+ protected $leaveDiagnosticsDataType = '';
+ public $reason;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeaveDiagnostics(Google_Service_Games_RoomLeaveDiagnostics $leaveDiagnostics)
+ {
+ $this->leaveDiagnostics = $leaveDiagnostics;
+ }
+ public function getLeaveDiagnostics()
+ {
+ return $this->leaveDiagnostics;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomList.php
new file mode 100644
index 00000000..2807aa3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_Room';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomModification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomModification.php
new file mode 100644
index 00000000..43ed77d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomModification.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomModification extends Google_Model
+{
+ public $kind;
+ public $modifiedTimestampMillis;
+ public $participantId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setModifiedTimestampMillis($modifiedTimestampMillis)
+ {
+ $this->modifiedTimestampMillis = $modifiedTimestampMillis;
+ }
+ public function getModifiedTimestampMillis()
+ {
+ return $this->modifiedTimestampMillis;
+ }
+ public function setParticipantId($participantId)
+ {
+ $this->participantId = $participantId;
+ }
+ public function getParticipantId()
+ {
+ return $this->participantId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatus.php
new file mode 100644
index 00000000..96a16ac5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatus.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomP2PStatus extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "errorReason" => "error_reason",
+ );
+ public $connectionSetupLatencyMillis;
+ public $error;
+ public $errorReason;
+ public $kind;
+ public $participantId;
+ public $status;
+ public $unreliableRoundtripLatencyMillis;
+
+ public function setConnectionSetupLatencyMillis($connectionSetupLatencyMillis)
+ {
+ $this->connectionSetupLatencyMillis = $connectionSetupLatencyMillis;
+ }
+ public function getConnectionSetupLatencyMillis()
+ {
+ return $this->connectionSetupLatencyMillis;
+ }
+ public function setError($error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setErrorReason($errorReason)
+ {
+ $this->errorReason = $errorReason;
+ }
+ public function getErrorReason()
+ {
+ return $this->errorReason;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParticipantId($participantId)
+ {
+ $this->participantId = $participantId;
+ }
+ public function getParticipantId()
+ {
+ return $this->participantId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUnreliableRoundtripLatencyMillis($unreliableRoundtripLatencyMillis)
+ {
+ $this->unreliableRoundtripLatencyMillis = $unreliableRoundtripLatencyMillis;
+ }
+ public function getUnreliableRoundtripLatencyMillis()
+ {
+ return $this->unreliableRoundtripLatencyMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatuses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatuses.php
new file mode 100644
index 00000000..fab0dca0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomP2PStatuses.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomP2PStatuses extends Google_Collection
+{
+ protected $collection_key = 'updates';
+ public $kind;
+ protected $updatesType = 'Google_Service_Games_RoomP2PStatus';
+ protected $updatesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUpdates($updates)
+ {
+ $this->updates = $updates;
+ }
+ public function getUpdates()
+ {
+ return $this->updates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomParticipant.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomParticipant.php
new file mode 100644
index 00000000..1f9bcd6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomParticipant.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomParticipant extends Google_Collection
+{
+ protected $collection_key = 'capabilities';
+ public $autoMatched;
+ protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer';
+ protected $autoMatchedPlayerDataType = '';
+ public $capabilities;
+ protected $clientAddressType = 'Google_Service_Games_RoomClientAddress';
+ protected $clientAddressDataType = '';
+ public $connected;
+ public $id;
+ public $kind;
+ public $leaveReason;
+ protected $playerType = 'Google_Service_Games_Player';
+ protected $playerDataType = '';
+ public $status;
+
+ public function setAutoMatched($autoMatched)
+ {
+ $this->autoMatched = $autoMatched;
+ }
+ public function getAutoMatched()
+ {
+ return $this->autoMatched;
+ }
+ public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer)
+ {
+ $this->autoMatchedPlayer = $autoMatchedPlayer;
+ }
+ public function getAutoMatchedPlayer()
+ {
+ return $this->autoMatchedPlayer;
+ }
+ public function setCapabilities($capabilities)
+ {
+ $this->capabilities = $capabilities;
+ }
+ public function getCapabilities()
+ {
+ return $this->capabilities;
+ }
+ public function setClientAddress(Google_Service_Games_RoomClientAddress $clientAddress)
+ {
+ $this->clientAddress = $clientAddress;
+ }
+ public function getClientAddress()
+ {
+ return $this->clientAddress;
+ }
+ public function setConnected($connected)
+ {
+ $this->connected = $connected;
+ }
+ public function getConnected()
+ {
+ return $this->connected;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeaveReason($leaveReason)
+ {
+ $this->leaveReason = $leaveReason;
+ }
+ public function getLeaveReason()
+ {
+ return $this->leaveReason;
+ }
+ public function setPlayer(Google_Service_Games_Player $player)
+ {
+ $this->player = $player;
+ }
+ public function getPlayer()
+ {
+ return $this->player;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomStatus.php
new file mode 100644
index 00000000..706221eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/RoomStatus.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_RoomStatus extends Google_Collection
+{
+ protected $collection_key = 'participants';
+ protected $autoMatchingStatusType = 'Google_Service_Games_RoomAutoMatchStatus';
+ protected $autoMatchingStatusDataType = '';
+ public $kind;
+ protected $participantsType = 'Google_Service_Games_RoomParticipant';
+ protected $participantsDataType = 'array';
+ public $roomId;
+ public $status;
+ public $statusVersion;
+
+ public function setAutoMatchingStatus(Google_Service_Games_RoomAutoMatchStatus $autoMatchingStatus)
+ {
+ $this->autoMatchingStatus = $autoMatchingStatus;
+ }
+ public function getAutoMatchingStatus()
+ {
+ return $this->autoMatchingStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParticipants($participants)
+ {
+ $this->participants = $participants;
+ }
+ public function getParticipants()
+ {
+ return $this->participants;
+ }
+ public function setRoomId($roomId)
+ {
+ $this->roomId = $roomId;
+ }
+ public function getRoomId()
+ {
+ return $this->roomId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusVersion($statusVersion)
+ {
+ $this->statusVersion = $statusVersion;
+ }
+ public function getStatusVersion()
+ {
+ return $this->statusVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ScoreSubmission.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ScoreSubmission.php
new file mode 100644
index 00000000..03c09cf9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/ScoreSubmission.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_ScoreSubmission extends Google_Model
+{
+ public $kind;
+ public $leaderboardId;
+ public $score;
+ public $scoreTag;
+ public $signature;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeaderboardId($leaderboardId)
+ {
+ $this->leaderboardId = $leaderboardId;
+ }
+ public function getLeaderboardId()
+ {
+ return $this->leaderboardId;
+ }
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+ public function setScoreTag($scoreTag)
+ {
+ $this->scoreTag = $scoreTag;
+ }
+ public function getScoreTag()
+ {
+ return $this->scoreTag;
+ }
+ public function setSignature($signature)
+ {
+ $this->signature = $signature;
+ }
+ public function getSignature()
+ {
+ return $this->signature;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Snapshot.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Snapshot.php
new file mode 100644
index 00000000..2ec6ed07
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/Snapshot.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_Snapshot extends Google_Model
+{
+ protected $coverImageType = 'Google_Service_Games_SnapshotImage';
+ protected $coverImageDataType = '';
+ public $description;
+ public $driveId;
+ public $durationMillis;
+ public $id;
+ public $kind;
+ public $lastModifiedMillis;
+ public $progressValue;
+ public $title;
+ public $type;
+ public $uniqueName;
+
+ public function setCoverImage(Google_Service_Games_SnapshotImage $coverImage)
+ {
+ $this->coverImage = $coverImage;
+ }
+ public function getCoverImage()
+ {
+ return $this->coverImage;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDriveId($driveId)
+ {
+ $this->driveId = $driveId;
+ }
+ public function getDriveId()
+ {
+ return $this->driveId;
+ }
+ public function setDurationMillis($durationMillis)
+ {
+ $this->durationMillis = $durationMillis;
+ }
+ public function getDurationMillis()
+ {
+ return $this->durationMillis;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedMillis($lastModifiedMillis)
+ {
+ $this->lastModifiedMillis = $lastModifiedMillis;
+ }
+ public function getLastModifiedMillis()
+ {
+ return $this->lastModifiedMillis;
+ }
+ public function setProgressValue($progressValue)
+ {
+ $this->progressValue = $progressValue;
+ }
+ public function getProgressValue()
+ {
+ return $this->progressValue;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUniqueName($uniqueName)
+ {
+ $this->uniqueName = $uniqueName;
+ }
+ public function getUniqueName()
+ {
+ return $this->uniqueName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotImage.php
new file mode 100644
index 00000000..2755e987
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotImage.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_SnapshotImage extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "mimeType" => "mime_type",
+ );
+ public $height;
+ public $kind;
+ public $mimeType;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotListResponse.php
new file mode 100644
index 00000000..a96009a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/SnapshotListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_SnapshotListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_Snapshot';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedAutoMatchingCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedAutoMatchingCriteria.php
new file mode 100644
index 00000000..2895ae47
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedAutoMatchingCriteria.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedAutoMatchingCriteria extends Google_Model
+{
+ public $exclusiveBitmask;
+ public $kind;
+ public $maxAutoMatchingPlayers;
+ public $minAutoMatchingPlayers;
+
+ public function setExclusiveBitmask($exclusiveBitmask)
+ {
+ $this->exclusiveBitmask = $exclusiveBitmask;
+ }
+ public function getExclusiveBitmask()
+ {
+ return $this->exclusiveBitmask;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxAutoMatchingPlayers($maxAutoMatchingPlayers)
+ {
+ $this->maxAutoMatchingPlayers = $maxAutoMatchingPlayers;
+ }
+ public function getMaxAutoMatchingPlayers()
+ {
+ return $this->maxAutoMatchingPlayers;
+ }
+ public function setMinAutoMatchingPlayers($minAutoMatchingPlayers)
+ {
+ $this->minAutoMatchingPlayers = $minAutoMatchingPlayers;
+ }
+ public function getMinAutoMatchingPlayers()
+ {
+ return $this->minAutoMatchingPlayers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatch.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatch.php
new file mode 100644
index 00000000..57b3588d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatch.php
@@ -0,0 +1,209 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatch extends Google_Collection
+{
+ protected $collection_key = 'results';
+ public $applicationId;
+ protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria';
+ protected $autoMatchingCriteriaDataType = '';
+ protected $creationDetailsType = 'Google_Service_Games_TurnBasedMatchModification';
+ protected $creationDetailsDataType = '';
+ protected $dataType = 'Google_Service_Games_TurnBasedMatchData';
+ protected $dataDataType = '';
+ public $description;
+ public $inviterId;
+ public $kind;
+ protected $lastUpdateDetailsType = 'Google_Service_Games_TurnBasedMatchModification';
+ protected $lastUpdateDetailsDataType = '';
+ public $matchId;
+ public $matchNumber;
+ public $matchVersion;
+ protected $participantsType = 'Google_Service_Games_TurnBasedMatchParticipant';
+ protected $participantsDataType = 'array';
+ public $pendingParticipantId;
+ protected $previousMatchDataType = 'Google_Service_Games_TurnBasedMatchData';
+ protected $previousMatchDataDataType = '';
+ public $rematchId;
+ protected $resultsType = 'Google_Service_Games_ParticipantResult';
+ protected $resultsDataType = 'array';
+ public $status;
+ public $userMatchStatus;
+ public $variant;
+ public $withParticipantId;
+
+ public function setApplicationId($applicationId)
+ {
+ $this->applicationId = $applicationId;
+ }
+ public function getApplicationId()
+ {
+ return $this->applicationId;
+ }
+ public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria)
+ {
+ $this->autoMatchingCriteria = $autoMatchingCriteria;
+ }
+ public function getAutoMatchingCriteria()
+ {
+ return $this->autoMatchingCriteria;
+ }
+ public function setCreationDetails(Google_Service_Games_TurnBasedMatchModification $creationDetails)
+ {
+ $this->creationDetails = $creationDetails;
+ }
+ public function getCreationDetails()
+ {
+ return $this->creationDetails;
+ }
+ public function setData(Google_Service_Games_TurnBasedMatchData $data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setInviterId($inviterId)
+ {
+ $this->inviterId = $inviterId;
+ }
+ public function getInviterId()
+ {
+ return $this->inviterId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUpdateDetails(Google_Service_Games_TurnBasedMatchModification $lastUpdateDetails)
+ {
+ $this->lastUpdateDetails = $lastUpdateDetails;
+ }
+ public function getLastUpdateDetails()
+ {
+ return $this->lastUpdateDetails;
+ }
+ public function setMatchId($matchId)
+ {
+ $this->matchId = $matchId;
+ }
+ public function getMatchId()
+ {
+ return $this->matchId;
+ }
+ public function setMatchNumber($matchNumber)
+ {
+ $this->matchNumber = $matchNumber;
+ }
+ public function getMatchNumber()
+ {
+ return $this->matchNumber;
+ }
+ public function setMatchVersion($matchVersion)
+ {
+ $this->matchVersion = $matchVersion;
+ }
+ public function getMatchVersion()
+ {
+ return $this->matchVersion;
+ }
+ public function setParticipants($participants)
+ {
+ $this->participants = $participants;
+ }
+ public function getParticipants()
+ {
+ return $this->participants;
+ }
+ public function setPendingParticipantId($pendingParticipantId)
+ {
+ $this->pendingParticipantId = $pendingParticipantId;
+ }
+ public function getPendingParticipantId()
+ {
+ return $this->pendingParticipantId;
+ }
+ public function setPreviousMatchData(Google_Service_Games_TurnBasedMatchData $previousMatchData)
+ {
+ $this->previousMatchData = $previousMatchData;
+ }
+ public function getPreviousMatchData()
+ {
+ return $this->previousMatchData;
+ }
+ public function setRematchId($rematchId)
+ {
+ $this->rematchId = $rematchId;
+ }
+ public function getRematchId()
+ {
+ return $this->rematchId;
+ }
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUserMatchStatus($userMatchStatus)
+ {
+ $this->userMatchStatus = $userMatchStatus;
+ }
+ public function getUserMatchStatus()
+ {
+ return $this->userMatchStatus;
+ }
+ public function setVariant($variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+ public function setWithParticipantId($withParticipantId)
+ {
+ $this->withParticipantId = $withParticipantId;
+ }
+ public function getWithParticipantId()
+ {
+ return $this->withParticipantId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchCreateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchCreateRequest.php
new file mode 100644
index 00000000..78b2f573
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchCreateRequest.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchCreateRequest extends Google_Collection
+{
+ protected $collection_key = 'invitedPlayerIds';
+ protected $autoMatchingCriteriaType = 'Google_Service_Games_TurnBasedAutoMatchingCriteria';
+ protected $autoMatchingCriteriaDataType = '';
+ public $invitedPlayerIds;
+ public $kind;
+ public $requestId;
+ public $variant;
+
+ public function setAutoMatchingCriteria(Google_Service_Games_TurnBasedAutoMatchingCriteria $autoMatchingCriteria)
+ {
+ $this->autoMatchingCriteria = $autoMatchingCriteria;
+ }
+ public function getAutoMatchingCriteria()
+ {
+ return $this->autoMatchingCriteria;
+ }
+ public function setInvitedPlayerIds($invitedPlayerIds)
+ {
+ $this->invitedPlayerIds = $invitedPlayerIds;
+ }
+ public function getInvitedPlayerIds()
+ {
+ return $this->invitedPlayerIds;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setVariant($variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchData.php
new file mode 100644
index 00000000..862fcdf3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchData.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchData extends Google_Model
+{
+ public $data;
+ public $dataAvailable;
+ public $kind;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setDataAvailable($dataAvailable)
+ {
+ $this->dataAvailable = $dataAvailable;
+ }
+ public function getDataAvailable()
+ {
+ return $this->dataAvailable;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchDataRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchDataRequest.php
new file mode 100644
index 00000000..2d814062
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchDataRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchDataRequest extends Google_Model
+{
+ public $data;
+ public $kind;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchList.php
new file mode 100644
index 00000000..cbfa1dc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_TurnBasedMatch';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchModification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchModification.php
new file mode 100644
index 00000000..91dcea69
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchModification.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchModification extends Google_Model
+{
+ public $kind;
+ public $modifiedTimestampMillis;
+ public $participantId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setModifiedTimestampMillis($modifiedTimestampMillis)
+ {
+ $this->modifiedTimestampMillis = $modifiedTimestampMillis;
+ }
+ public function getModifiedTimestampMillis()
+ {
+ return $this->modifiedTimestampMillis;
+ }
+ public function setParticipantId($participantId)
+ {
+ $this->participantId = $participantId;
+ }
+ public function getParticipantId()
+ {
+ return $this->participantId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchParticipant.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchParticipant.php
new file mode 100644
index 00000000..4bd859aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchParticipant.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model
+{
+ public $autoMatched;
+ protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer';
+ protected $autoMatchedPlayerDataType = '';
+ public $id;
+ public $kind;
+ protected $playerType = 'Google_Service_Games_Player';
+ protected $playerDataType = '';
+ public $status;
+
+ public function setAutoMatched($autoMatched)
+ {
+ $this->autoMatched = $autoMatched;
+ }
+ public function getAutoMatched()
+ {
+ return $this->autoMatched;
+ }
+ public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer)
+ {
+ $this->autoMatchedPlayer = $autoMatchedPlayer;
+ }
+ public function getAutoMatchedPlayer()
+ {
+ return $this->autoMatchedPlayer;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlayer(Google_Service_Games_Player $player)
+ {
+ $this->player = $player;
+ }
+ public function getPlayer()
+ {
+ return $this->player;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchRematch.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchRematch.php
new file mode 100644
index 00000000..bae80ea7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchRematch.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchRematch extends Google_Model
+{
+ public $kind;
+ protected $previousMatchType = 'Google_Service_Games_TurnBasedMatch';
+ protected $previousMatchDataType = '';
+ protected $rematchType = 'Google_Service_Games_TurnBasedMatch';
+ protected $rematchDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPreviousMatch(Google_Service_Games_TurnBasedMatch $previousMatch)
+ {
+ $this->previousMatch = $previousMatch;
+ }
+ public function getPreviousMatch()
+ {
+ return $this->previousMatch;
+ }
+ public function setRematch(Google_Service_Games_TurnBasedMatch $rematch)
+ {
+ $this->rematch = $rematch;
+ }
+ public function getRematch()
+ {
+ return $this->rematch;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchResults.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchResults.php
new file mode 100644
index 00000000..bc497bdd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchResults.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchResults extends Google_Collection
+{
+ protected $collection_key = 'results';
+ protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest';
+ protected $dataDataType = '';
+ public $kind;
+ public $matchVersion;
+ protected $resultsType = 'Google_Service_Games_ParticipantResult';
+ protected $resultsDataType = 'array';
+
+ public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMatchVersion($matchVersion)
+ {
+ $this->matchVersion = $matchVersion;
+ }
+ public function getMatchVersion()
+ {
+ return $this->matchVersion;
+ }
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchSync.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchSync.php
new file mode 100644
index 00000000..466e036a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchSync.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchSync extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Games_TurnBasedMatch';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $moreAvailable;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMoreAvailable($moreAvailable)
+ {
+ $this->moreAvailable = $moreAvailable;
+ }
+ public function getMoreAvailable()
+ {
+ return $this->moreAvailable;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchTurn.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchTurn.php
new file mode 100644
index 00000000..fcc0f31a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Games/TurnBasedMatchTurn.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Games_TurnBasedMatchTurn extends Google_Collection
+{
+ protected $collection_key = 'results';
+ protected $dataType = 'Google_Service_Games_TurnBasedMatchDataRequest';
+ protected $dataDataType = '';
+ public $kind;
+ public $matchVersion;
+ public $pendingParticipantId;
+ protected $resultsType = 'Google_Service_Games_ParticipantResult';
+ protected $resultsDataType = 'array';
+
+ public function setData(Google_Service_Games_TurnBasedMatchDataRequest $data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMatchVersion($matchVersion)
+ {
+ $this->matchVersion = $matchVersion;
+ }
+ public function getMatchVersion()
+ {
+ return $this->matchVersion;
+ }
+ public function setPendingParticipantId($pendingParticipantId)
+ {
+ $this->pendingParticipantId = $pendingParticipantId;
+ }
+ public function getPendingParticipantId()
+ {
+ return $this->pendingParticipantId;
+ }
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration.php
new file mode 100644
index 00000000..178aac3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration.php
@@ -0,0 +1,236 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for GamesConfiguration (v1configuration).
+ *
+ * <p>
+ * The Publishing API for Google Play Game Services.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/games/services" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_GamesConfiguration extends Google_Service
+{
+ /** View and manage your Google Play Developer account. */
+ const ANDROIDPUBLISHER =
+ "https://www.googleapis.com/auth/androidpublisher";
+
+ public $achievementConfigurations;
+ public $imageConfigurations;
+ public $leaderboardConfigurations;
+
+ /**
+ * Constructs the internal representation of the GamesConfiguration service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'games/v1configuration/';
+ $this->version = 'v1configuration';
+ $this->serviceName = 'gamesConfiguration';
+
+ $this->achievementConfigurations = new Google_Service_GamesConfiguration_Resource_AchievementConfigurations(
+ $this,
+ $this->serviceName,
+ 'achievementConfigurations',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'achievements/{achievementId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'achievements/{achievementId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'applications/{applicationId}/achievements',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'applications/{applicationId}/achievements',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'achievements/{achievementId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'achievements/{achievementId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->imageConfigurations = new Google_Service_GamesConfiguration_Resource_ImageConfigurations(
+ $this,
+ $this->serviceName,
+ 'imageConfigurations',
+ array(
+ 'methods' => array(
+ 'upload' => array(
+ 'path' => 'images/{resourceId}/imageType/{imageType}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'imageType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->leaderboardConfigurations = new Google_Service_GamesConfiguration_Resource_LeaderboardConfigurations(
+ $this,
+ $this->serviceName,
+ 'leaderboardConfigurations',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'leaderboards/{leaderboardId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'leaderboards/{leaderboardId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'applications/{applicationId}/leaderboards',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'applications/{applicationId}/leaderboards',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'leaderboards/{leaderboardId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'leaderboards/{leaderboardId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfiguration.php
new file mode 100644
index 00000000..4c5fb6b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfiguration.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_AchievementConfiguration extends Google_Model
+{
+ public $achievementType;
+ protected $draftType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail';
+ protected $draftDataType = '';
+ public $id;
+ public $initialState;
+ public $kind;
+ protected $publishedType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail';
+ protected $publishedDataType = '';
+ public $stepsToUnlock;
+ public $token;
+
+ public function setAchievementType($achievementType)
+ {
+ $this->achievementType = $achievementType;
+ }
+ public function getAchievementType()
+ {
+ return $this->achievementType;
+ }
+ public function setDraft(Google_Service_GamesConfiguration_AchievementConfigurationDetail $draft)
+ {
+ $this->draft = $draft;
+ }
+ public function getDraft()
+ {
+ return $this->draft;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInitialState($initialState)
+ {
+ $this->initialState = $initialState;
+ }
+ public function getInitialState()
+ {
+ return $this->initialState;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPublished(Google_Service_GamesConfiguration_AchievementConfigurationDetail $published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setStepsToUnlock($stepsToUnlock)
+ {
+ $this->stepsToUnlock = $stepsToUnlock;
+ }
+ public function getStepsToUnlock()
+ {
+ return $this->stepsToUnlock;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationDetail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationDetail.php
new file mode 100644
index 00000000..ef8e09ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationDetail.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_AchievementConfigurationDetail extends Google_Model
+{
+ protected $descriptionType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $descriptionDataType = '';
+ public $iconUrl;
+ public $kind;
+ protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $nameDataType = '';
+ public $pointValue;
+ public $sortRank;
+
+ public function setDescription(Google_Service_GamesConfiguration_LocalizedStringBundle $description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPointValue($pointValue)
+ {
+ $this->pointValue = $pointValue;
+ }
+ public function getPointValue()
+ {
+ return $this->pointValue;
+ }
+ public function setSortRank($sortRank)
+ {
+ $this->sortRank = $sortRank;
+ }
+ public function getSortRank()
+ {
+ return $this->sortRank;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationListResponse.php
new file mode 100644
index 00000000..75c92b97
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/AchievementConfigurationListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_AchievementConfigurationListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_GamesConfiguration_AchievementConfiguration';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberAffixConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberAffixConfiguration.php
new file mode 100644
index 00000000..8612a82f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberAffixConfiguration.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_GamesNumberAffixConfiguration extends Google_Model
+{
+ protected $fewType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $fewDataType = '';
+ protected $manyType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $manyDataType = '';
+ protected $oneType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $oneDataType = '';
+ protected $otherType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $otherDataType = '';
+ protected $twoType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $twoDataType = '';
+ protected $zeroType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $zeroDataType = '';
+
+ public function setFew(Google_Service_GamesConfiguration_LocalizedStringBundle $few)
+ {
+ $this->few = $few;
+ }
+ public function getFew()
+ {
+ return $this->few;
+ }
+ public function setMany(Google_Service_GamesConfiguration_LocalizedStringBundle $many)
+ {
+ $this->many = $many;
+ }
+ public function getMany()
+ {
+ return $this->many;
+ }
+ public function setOne(Google_Service_GamesConfiguration_LocalizedStringBundle $one)
+ {
+ $this->one = $one;
+ }
+ public function getOne()
+ {
+ return $this->one;
+ }
+ public function setOther(Google_Service_GamesConfiguration_LocalizedStringBundle $other)
+ {
+ $this->other = $other;
+ }
+ public function getOther()
+ {
+ return $this->other;
+ }
+ public function setTwo(Google_Service_GamesConfiguration_LocalizedStringBundle $two)
+ {
+ $this->two = $two;
+ }
+ public function getTwo()
+ {
+ return $this->two;
+ }
+ public function setZero(Google_Service_GamesConfiguration_LocalizedStringBundle $zero)
+ {
+ $this->zero = $zero;
+ }
+ public function getZero()
+ {
+ return $this->zero;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberFormatConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberFormatConfiguration.php
new file mode 100644
index 00000000..fc047dec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/GamesNumberFormatConfiguration.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_GamesNumberFormatConfiguration extends Google_Model
+{
+ public $currencyCode;
+ public $numDecimalPlaces;
+ public $numberFormatType;
+ protected $suffixType = 'Google_Service_GamesConfiguration_GamesNumberAffixConfiguration';
+ protected $suffixDataType = '';
+
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setNumDecimalPlaces($numDecimalPlaces)
+ {
+ $this->numDecimalPlaces = $numDecimalPlaces;
+ }
+ public function getNumDecimalPlaces()
+ {
+ return $this->numDecimalPlaces;
+ }
+ public function setNumberFormatType($numberFormatType)
+ {
+ $this->numberFormatType = $numberFormatType;
+ }
+ public function getNumberFormatType()
+ {
+ return $this->numberFormatType;
+ }
+ public function setSuffix(Google_Service_GamesConfiguration_GamesNumberAffixConfiguration $suffix)
+ {
+ $this->suffix = $suffix;
+ }
+ public function getSuffix()
+ {
+ return $this->suffix;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/ImageConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/ImageConfiguration.php
new file mode 100644
index 00000000..f2c7a72b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/ImageConfiguration.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_ImageConfiguration extends Google_Model
+{
+ public $imageType;
+ public $kind;
+ public $resourceId;
+ public $url;
+
+ public function setImageType($imageType)
+ {
+ $this->imageType = $imageType;
+ }
+ public function getImageType()
+ {
+ return $this->imageType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfiguration.php
new file mode 100644
index 00000000..92a465d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfiguration.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_LeaderboardConfiguration extends Google_Model
+{
+ protected $draftType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail';
+ protected $draftDataType = '';
+ public $id;
+ public $kind;
+ protected $publishedType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail';
+ protected $publishedDataType = '';
+ public $scoreMax;
+ public $scoreMin;
+ public $scoreOrder;
+ public $token;
+
+ public function setDraft(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $draft)
+ {
+ $this->draft = $draft;
+ }
+ public function getDraft()
+ {
+ return $this->draft;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPublished(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setScoreMax($scoreMax)
+ {
+ $this->scoreMax = $scoreMax;
+ }
+ public function getScoreMax()
+ {
+ return $this->scoreMax;
+ }
+ public function setScoreMin($scoreMin)
+ {
+ $this->scoreMin = $scoreMin;
+ }
+ public function getScoreMin()
+ {
+ return $this->scoreMin;
+ }
+ public function setScoreOrder($scoreOrder)
+ {
+ $this->scoreOrder = $scoreOrder;
+ }
+ public function getScoreOrder()
+ {
+ return $this->scoreOrder;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationDetail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationDetail.php
new file mode 100644
index 00000000..461aa34c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationDetail.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_LeaderboardConfigurationDetail extends Google_Model
+{
+ public $iconUrl;
+ public $kind;
+ protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $nameDataType = '';
+ protected $scoreFormatType = 'Google_Service_GamesConfiguration_GamesNumberFormatConfiguration';
+ protected $scoreFormatDataType = '';
+ public $sortRank;
+
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setScoreFormat(Google_Service_GamesConfiguration_GamesNumberFormatConfiguration $scoreFormat)
+ {
+ $this->scoreFormat = $scoreFormat;
+ }
+ public function getScoreFormat()
+ {
+ return $this->scoreFormat;
+ }
+ public function setSortRank($sortRank)
+ {
+ $this->sortRank = $sortRank;
+ }
+ public function getSortRank()
+ {
+ return $this->sortRank;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationListResponse.php
new file mode 100644
index 00000000..80f84741
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LeaderboardConfigurationListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_GamesConfiguration_LeaderboardConfiguration';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedString.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedString.php
new file mode 100644
index 00000000..dae44eda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedString.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_LocalizedString extends Google_Model
+{
+ public $kind;
+ public $locale;
+ public $value;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedStringBundle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedStringBundle.php
new file mode 100644
index 00000000..25f5999e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/LocalizedStringBundle.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesConfiguration_LocalizedStringBundle extends Google_Collection
+{
+ protected $collection_key = 'translations';
+ public $kind;
+ protected $translationsType = 'Google_Service_GamesConfiguration_LocalizedString';
+ protected $translationsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTranslations($translations)
+ {
+ $this->translations = $translations;
+ }
+ public function getTranslations()
+ {
+ return $this->translations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/AchievementConfigurations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/AchievementConfigurations.php
new file mode 100644
index 00000000..636dede6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/AchievementConfigurations.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "achievementConfigurations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
+ * $achievementConfigurations = $gamesConfigurationService->achievementConfigurations;
+ * </code>
+ */
+class Google_Service_GamesConfiguration_Resource_AchievementConfigurations extends Google_Service_Resource
+{
+ /**
+ * Delete the achievement configuration with the given ID.
+ * (achievementConfigurations.delete)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the metadata of the achievement configuration with the given ID.
+ * (achievementConfigurations.get)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function get($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+ /**
+ * Insert a new achievement configuration in this application.
+ * (achievementConfigurations.insert)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param Google_Service_GamesConfiguration_AchievementConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function insert($applicationId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+ /**
+ * Returns a list of the achievement configurations in this application.
+ * (achievementConfigurations.listAchievementConfigurations)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of resource configurations to
+ * return in the response, used for paging. For any response, the actual number
+ * of resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_GamesConfiguration_AchievementConfigurationListResponse
+ */
+ public function listAchievementConfigurations($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_GamesConfiguration_AchievementConfigurationListResponse");
+ }
+ /**
+ * Update the metadata of the achievement configuration with the given ID. This
+ * method supports patch semantics. (achievementConfigurations.patch)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param Google_Service_GamesConfiguration_AchievementConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function patch($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+ /**
+ * Update the metadata of the achievement configuration with the given ID.
+ * (achievementConfigurations.update)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param Google_Service_GamesConfiguration_AchievementConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function update($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/ImageConfigurations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/ImageConfigurations.php
new file mode 100644
index 00000000..832febab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/ImageConfigurations.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "imageConfigurations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
+ * $imageConfigurations = $gamesConfigurationService->imageConfigurations;
+ * </code>
+ */
+class Google_Service_GamesConfiguration_Resource_ImageConfigurations extends Google_Service_Resource
+{
+ /**
+ * Uploads an image for a resource with the given ID and image type.
+ * (imageConfigurations.upload)
+ *
+ * @param string $resourceId The ID of the resource used by this method.
+ * @param string $imageType Selects which image in a resource for this method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_ImageConfiguration
+ */
+ public function upload($resourceId, $imageType, $optParams = array())
+ {
+ $params = array('resourceId' => $resourceId, 'imageType' => $imageType);
+ $params = array_merge($params, $optParams);
+ return $this->call('upload', array($params), "Google_Service_GamesConfiguration_ImageConfiguration");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/LeaderboardConfigurations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/LeaderboardConfigurations.php
new file mode 100644
index 00000000..469f653e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesConfiguration/Resource/LeaderboardConfigurations.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "leaderboardConfigurations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
+ * $leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations;
+ * </code>
+ */
+class Google_Service_GamesConfiguration_Resource_LeaderboardConfigurations extends Google_Service_Resource
+{
+ /**
+ * Delete the leaderboard configuration with the given ID.
+ * (leaderboardConfigurations.delete)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($leaderboardId, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the metadata of the leaderboard configuration with the given ID.
+ * (leaderboardConfigurations.get)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function get($leaderboardId, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+ /**
+ * Insert a new leaderboard configuration in this application.
+ * (leaderboardConfigurations.insert)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function insert($applicationId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+ /**
+ * Returns a list of the leaderboard configurations in this application.
+ * (leaderboardConfigurations.listLeaderboardConfigurations)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of resource configurations to
+ * return in the response, used for paging. For any response, the actual number
+ * of resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse
+ */
+ public function listLeaderboardConfigurations($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse");
+ }
+ /**
+ * Update the metadata of the leaderboard configuration with the given ID. This
+ * method supports patch semantics. (leaderboardConfigurations.patch)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function patch($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+ /**
+ * Update the metadata of the leaderboard configuration with the given ID.
+ * (leaderboardConfigurations.update)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function update($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement.php
new file mode 100644
index 00000000..404fe207
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement.php
@@ -0,0 +1,335 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for GamesManagement (v1management).
+ *
+ * <p>
+ * The Management API for Google Play Game Services.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/games/services" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_GamesManagement extends Google_Service
+{
+ /** Share your Google+ profile information and view and manage your game activity. */
+ const GAMES =
+ "https://www.googleapis.com/auth/games";
+ /** Know the list of people in your circles, your age range, and language. */
+ const PLUS_LOGIN =
+ "https://www.googleapis.com/auth/plus.login";
+
+ public $achievements;
+ public $applications;
+ public $events;
+ public $players;
+ public $quests;
+ public $rooms;
+ public $scores;
+ public $turnBasedMatches;
+
+ /**
+ * Constructs the internal representation of the GamesManagement service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'games/v1management/';
+ $this->version = 'v1management';
+ $this->serviceName = 'gamesManagement';
+
+ $this->achievements = new Google_Service_GamesManagement_Resource_Achievements(
+ $this,
+ $this->serviceName,
+ 'achievements',
+ array(
+ 'methods' => array(
+ 'reset' => array(
+ 'path' => 'achievements/{achievementId}/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetAll' => array(
+ 'path' => 'achievements/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetAllForAllPlayers' => array(
+ 'path' => 'achievements/resetAllForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetForAllPlayers' => array(
+ 'path' => 'achievements/{achievementId}/resetForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'achievementId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetMultipleForAllPlayers' => array(
+ 'path' => 'achievements/resetMultipleForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->applications = new Google_Service_GamesManagement_Resource_Applications(
+ $this,
+ $this->serviceName,
+ 'applications',
+ array(
+ 'methods' => array(
+ 'listHidden' => array(
+ 'path' => 'applications/{applicationId}/players/hidden',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->events = new Google_Service_GamesManagement_Resource_Events(
+ $this,
+ $this->serviceName,
+ 'events',
+ array(
+ 'methods' => array(
+ 'reset' => array(
+ 'path' => 'events/{eventId}/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetAll' => array(
+ 'path' => 'events/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetAllForAllPlayers' => array(
+ 'path' => 'events/resetAllForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetForAllPlayers' => array(
+ 'path' => 'events/{eventId}/resetForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'eventId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetMultipleForAllPlayers' => array(
+ 'path' => 'events/resetMultipleForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->players = new Google_Service_GamesManagement_Resource_Players(
+ $this,
+ $this->serviceName,
+ 'players',
+ array(
+ 'methods' => array(
+ 'hide' => array(
+ 'path' => 'applications/{applicationId}/players/hidden/{playerId}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'unhide' => array(
+ 'path' => 'applications/{applicationId}/players/hidden/{playerId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'applicationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'playerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->quests = new Google_Service_GamesManagement_Resource_Quests(
+ $this,
+ $this->serviceName,
+ 'quests',
+ array(
+ 'methods' => array(
+ 'reset' => array(
+ 'path' => 'quests/{questId}/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'questId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetAll' => array(
+ 'path' => 'quests/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetAllForAllPlayers' => array(
+ 'path' => 'quests/resetAllForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetForAllPlayers' => array(
+ 'path' => 'quests/{questId}/resetForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'questId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetMultipleForAllPlayers' => array(
+ 'path' => 'quests/resetMultipleForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->rooms = new Google_Service_GamesManagement_Resource_Rooms(
+ $this,
+ $this->serviceName,
+ 'rooms',
+ array(
+ 'methods' => array(
+ 'reset' => array(
+ 'path' => 'rooms/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetForAllPlayers' => array(
+ 'path' => 'rooms/resetForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->scores = new Google_Service_GamesManagement_Resource_Scores(
+ $this,
+ $this->serviceName,
+ 'scores',
+ array(
+ 'methods' => array(
+ 'reset' => array(
+ 'path' => 'leaderboards/{leaderboardId}/scores/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetAll' => array(
+ 'path' => 'scores/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetAllForAllPlayers' => array(
+ 'path' => 'scores/resetAllForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetForAllPlayers' => array(
+ 'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'leaderboardId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetMultipleForAllPlayers' => array(
+ 'path' => 'scores/resetMultipleForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->turnBasedMatches = new Google_Service_GamesManagement_Resource_TurnBasedMatches(
+ $this,
+ $this->serviceName,
+ 'turnBasedMatches',
+ array(
+ 'methods' => array(
+ 'reset' => array(
+ 'path' => 'turnbasedmatches/reset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'resetForAllPlayers' => array(
+ 'path' => 'turnbasedmatches/resetForAllPlayers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetAllResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetAllResponse.php
new file mode 100644
index 00000000..d40fa941
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetAllResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_AchievementResetAllResponse extends Google_Collection
+{
+ protected $collection_key = 'results';
+ public $kind;
+ protected $resultsType = 'Google_Service_GamesManagement_AchievementResetResponse';
+ protected $resultsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetMultipleForAllRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetMultipleForAllRequest.php
new file mode 100644
index 00000000..a34e9d5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetMultipleForAllRequest.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection
+{
+ protected $collection_key = 'achievement_ids';
+ protected $internal_gapi_mappings = array(
+ "achievementIds" => "achievement_ids",
+ );
+ public $achievementIds;
+ public $kind;
+
+ public function setAchievementIds($achievementIds)
+ {
+ $this->achievementIds = $achievementIds;
+ }
+ public function getAchievementIds()
+ {
+ return $this->achievementIds;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetResponse.php
new file mode 100644
index 00000000..492d45bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/AchievementResetResponse.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model
+{
+ public $currentState;
+ public $definitionId;
+ public $kind;
+ public $updateOccurred;
+
+ public function setCurrentState($currentState)
+ {
+ $this->currentState = $currentState;
+ }
+ public function getCurrentState()
+ {
+ return $this->currentState;
+ }
+ public function setDefinitionId($definitionId)
+ {
+ $this->definitionId = $definitionId;
+ }
+ public function getDefinitionId()
+ {
+ return $this->definitionId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUpdateOccurred($updateOccurred)
+ {
+ $this->updateOccurred = $updateOccurred;
+ }
+ public function getUpdateOccurred()
+ {
+ return $this->updateOccurred;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/EventsResetMultipleForAllRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/EventsResetMultipleForAllRequest.php
new file mode 100644
index 00000000..77f7b8c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/EventsResetMultipleForAllRequest.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_EventsResetMultipleForAllRequest extends Google_Collection
+{
+ protected $collection_key = 'event_ids';
+ protected $internal_gapi_mappings = array(
+ "eventIds" => "event_ids",
+ );
+ public $eventIds;
+ public $kind;
+
+ public function setEventIds($eventIds)
+ {
+ $this->eventIds = $eventIds;
+ }
+ public function getEventIds()
+ {
+ return $this->eventIds;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayedResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayedResource.php
new file mode 100644
index 00000000..f2fadb36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayedResource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_GamesPlayedResource extends Google_Model
+{
+ public $autoMatched;
+ public $timeMillis;
+
+ public function setAutoMatched($autoMatched)
+ {
+ $this->autoMatched = $autoMatched;
+ }
+ public function getAutoMatched()
+ {
+ return $this->autoMatched;
+ }
+ public function setTimeMillis($timeMillis)
+ {
+ $this->timeMillis = $timeMillis;
+ }
+ public function getTimeMillis()
+ {
+ return $this->timeMillis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerExperienceInfoResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerExperienceInfoResource.php
new file mode 100644
index 00000000..1f5f367f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerExperienceInfoResource.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_GamesPlayerExperienceInfoResource extends Google_Model
+{
+ public $currentExperiencePoints;
+ protected $currentLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource';
+ protected $currentLevelDataType = '';
+ public $lastLevelUpTimestampMillis;
+ protected $nextLevelType = 'Google_Service_GamesManagement_GamesPlayerLevelResource';
+ protected $nextLevelDataType = '';
+
+ public function setCurrentExperiencePoints($currentExperiencePoints)
+ {
+ $this->currentExperiencePoints = $currentExperiencePoints;
+ }
+ public function getCurrentExperiencePoints()
+ {
+ return $this->currentExperiencePoints;
+ }
+ public function setCurrentLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $currentLevel)
+ {
+ $this->currentLevel = $currentLevel;
+ }
+ public function getCurrentLevel()
+ {
+ return $this->currentLevel;
+ }
+ public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis)
+ {
+ $this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis;
+ }
+ public function getLastLevelUpTimestampMillis()
+ {
+ return $this->lastLevelUpTimestampMillis;
+ }
+ public function setNextLevel(Google_Service_GamesManagement_GamesPlayerLevelResource $nextLevel)
+ {
+ $this->nextLevel = $nextLevel;
+ }
+ public function getNextLevel()
+ {
+ return $this->nextLevel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerLevelResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerLevelResource.php
new file mode 100644
index 00000000..418fffe1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/GamesPlayerLevelResource.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_GamesPlayerLevelResource extends Google_Model
+{
+ public $level;
+ public $maxExperiencePoints;
+ public $minExperiencePoints;
+
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+ public function setMaxExperiencePoints($maxExperiencePoints)
+ {
+ $this->maxExperiencePoints = $maxExperiencePoints;
+ }
+ public function getMaxExperiencePoints()
+ {
+ return $this->maxExperiencePoints;
+ }
+ public function setMinExperiencePoints($minExperiencePoints)
+ {
+ $this->minExperiencePoints = $minExperiencePoints;
+ }
+ public function getMinExperiencePoints()
+ {
+ return $this->minExperiencePoints;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayer.php
new file mode 100644
index 00000000..aeb11414
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayer.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_HiddenPlayer extends Google_Model
+{
+ public $hiddenTimeMillis;
+ public $kind;
+ protected $playerType = 'Google_Service_GamesManagement_Player';
+ protected $playerDataType = '';
+
+ public function setHiddenTimeMillis($hiddenTimeMillis)
+ {
+ $this->hiddenTimeMillis = $hiddenTimeMillis;
+ }
+ public function getHiddenTimeMillis()
+ {
+ return $this->hiddenTimeMillis;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlayer(Google_Service_GamesManagement_Player $player)
+ {
+ $this->player = $player;
+ }
+ public function getPlayer()
+ {
+ return $this->player;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayerList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayerList.php
new file mode 100644
index 00000000..f765dee9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/HiddenPlayerList.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_HiddenPlayerList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_GamesManagement_HiddenPlayer';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Player.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Player.php
new file mode 100644
index 00000000..d05586b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Player.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_Player extends Google_Model
+{
+ public $avatarImageUrl;
+ public $bannerUrlLandscape;
+ public $bannerUrlPortrait;
+ public $displayName;
+ protected $experienceInfoType = 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource';
+ protected $experienceInfoDataType = '';
+ public $kind;
+ protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource';
+ protected $lastPlayedWithDataType = '';
+ protected $nameType = 'Google_Service_GamesManagement_PlayerName';
+ protected $nameDataType = '';
+ public $originalPlayerId;
+ public $playerId;
+ protected $profileSettingsType = 'Google_Service_GamesManagement_ProfileSettings';
+ protected $profileSettingsDataType = '';
+ public $title;
+
+ public function setAvatarImageUrl($avatarImageUrl)
+ {
+ $this->avatarImageUrl = $avatarImageUrl;
+ }
+ public function getAvatarImageUrl()
+ {
+ return $this->avatarImageUrl;
+ }
+ public function setBannerUrlLandscape($bannerUrlLandscape)
+ {
+ $this->bannerUrlLandscape = $bannerUrlLandscape;
+ }
+ public function getBannerUrlLandscape()
+ {
+ return $this->bannerUrlLandscape;
+ }
+ public function setBannerUrlPortrait($bannerUrlPortrait)
+ {
+ $this->bannerUrlPortrait = $bannerUrlPortrait;
+ }
+ public function getBannerUrlPortrait()
+ {
+ return $this->bannerUrlPortrait;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setExperienceInfo(Google_Service_GamesManagement_GamesPlayerExperienceInfoResource $experienceInfo)
+ {
+ $this->experienceInfo = $experienceInfo;
+ }
+ public function getExperienceInfo()
+ {
+ return $this->experienceInfo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastPlayedWith(Google_Service_GamesManagement_GamesPlayedResource $lastPlayedWith)
+ {
+ $this->lastPlayedWith = $lastPlayedWith;
+ }
+ public function getLastPlayedWith()
+ {
+ return $this->lastPlayedWith;
+ }
+ public function setName(Google_Service_GamesManagement_PlayerName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalPlayerId($originalPlayerId)
+ {
+ $this->originalPlayerId = $originalPlayerId;
+ }
+ public function getOriginalPlayerId()
+ {
+ return $this->originalPlayerId;
+ }
+ public function setPlayerId($playerId)
+ {
+ $this->playerId = $playerId;
+ }
+ public function getPlayerId()
+ {
+ return $this->playerId;
+ }
+ public function setProfileSettings(Google_Service_GamesManagement_ProfileSettings $profileSettings)
+ {
+ $this->profileSettings = $profileSettings;
+ }
+ public function getProfileSettings()
+ {
+ return $this->profileSettings;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerName.php
new file mode 100644
index 00000000..b7dd909c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerName.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_PlayerName extends Google_Model
+{
+ public $familyName;
+ public $givenName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetAllResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetAllResponse.php
new file mode 100644
index 00000000..f99b68b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetAllResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_PlayerScoreResetAllResponse extends Google_Collection
+{
+ protected $collection_key = 'results';
+ public $kind;
+ protected $resultsType = 'Google_Service_GamesManagement_PlayerScoreResetResponse';
+ protected $resultsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetResponse.php
new file mode 100644
index 00000000..270b3f72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/PlayerScoreResetResponse.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection
+{
+ protected $collection_key = 'resetScoreTimeSpans';
+ public $definitionId;
+ public $kind;
+ public $resetScoreTimeSpans;
+
+ public function setDefinitionId($definitionId)
+ {
+ $this->definitionId = $definitionId;
+ }
+ public function getDefinitionId()
+ {
+ return $this->definitionId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResetScoreTimeSpans($resetScoreTimeSpans)
+ {
+ $this->resetScoreTimeSpans = $resetScoreTimeSpans;
+ }
+ public function getResetScoreTimeSpans()
+ {
+ return $this->resetScoreTimeSpans;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ProfileSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ProfileSettings.php
new file mode 100644
index 00000000..4cfa2f5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ProfileSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_ProfileSettings extends Google_Model
+{
+ public $kind;
+ public $profileVisible;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProfileVisible($profileVisible)
+ {
+ $this->profileVisible = $profileVisible;
+ }
+ public function getProfileVisible()
+ {
+ return $this->profileVisible;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/QuestsResetMultipleForAllRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/QuestsResetMultipleForAllRequest.php
new file mode 100644
index 00000000..6a4fa81f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/QuestsResetMultipleForAllRequest.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_QuestsResetMultipleForAllRequest extends Google_Collection
+{
+ protected $collection_key = 'quest_ids';
+ protected $internal_gapi_mappings = array(
+ "questIds" => "quest_ids",
+ );
+ public $kind;
+ public $questIds;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setQuestIds($questIds)
+ {
+ $this->questIds = $questIds;
+ }
+ public function getQuestIds()
+ {
+ return $this->questIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Achievements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Achievements.php
new file mode 100644
index 00000000..70ac90ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Achievements.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "achievements" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $achievements = $gamesManagementService->achievements;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_Achievements extends Google_Service_Resource
+{
+ /**
+ * Resets the achievement with the given ID for the currently authenticated
+ * player. This method is only accessible to whitelisted tester accounts for
+ * your application. (achievements.reset)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesManagement_AchievementResetResponse
+ */
+ public function reset($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('reset', array($params), "Google_Service_GamesManagement_AchievementResetResponse");
+ }
+ /**
+ * Resets all achievements for the currently authenticated player for your
+ * application. This method is only accessible to whitelisted tester accounts
+ * for your application. (achievements.resetAll)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesManagement_AchievementResetAllResponse
+ */
+ public function resetAll($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse");
+ }
+ /**
+ * Resets all draft achievements for all players. This method is only available
+ * to user accounts for your developer console.
+ * (achievements.resetAllForAllPlayers)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetAllForAllPlayers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAllForAllPlayers', array($params));
+ }
+ /**
+ * Resets the achievement with the given ID for all players. This method is only
+ * available to user accounts for your developer console. Only draft
+ * achievements can be reset. (achievements.resetForAllPlayers)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ */
+ public function resetForAllPlayers($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetForAllPlayers', array($params));
+ }
+ /**
+ * Resets achievements with the given IDs for all players. This method is only
+ * available to user accounts for your developer console. Only draft
+ * achievements may be reset. (achievements.resetMultipleForAllPlayers)
+ *
+ * @param Google_Service_GamesManagement_AchievementResetMultipleForAllRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function resetMultipleForAllPlayers(Google_Service_GamesManagement_AchievementResetMultipleForAllRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetMultipleForAllPlayers', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Applications.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Applications.php
new file mode 100644
index 00000000..2f53a34e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Applications.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "applications" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $applications = $gamesManagementService->applications;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_Applications extends Google_Service_Resource
+{
+ /**
+ * Get the list of players hidden from the given application. This method is
+ * only available to user accounts for your developer console.
+ * (applications.listHidden)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of player resources to return in
+ * the response, used for paging. For any response, the actual number of player
+ * resources returned may be less than the specified maxResults.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_GamesManagement_HiddenPlayerList
+ */
+ public function listHidden($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listHidden', array($params), "Google_Service_GamesManagement_HiddenPlayerList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Events.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Events.php
new file mode 100644
index 00000000..aafa71b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Events.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "events" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $events = $gamesManagementService->events;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_Events extends Google_Service_Resource
+{
+ /**
+ * Resets all player progress on the event with the given ID for the currently
+ * authenticated player. This method is only accessible to whitelisted tester
+ * accounts for your application. All quests for this player that use the event
+ * will also be reset. (events.reset)
+ *
+ * @param string $eventId The ID of the event.
+ * @param array $optParams Optional parameters.
+ */
+ public function reset($eventId, $optParams = array())
+ {
+ $params = array('eventId' => $eventId);
+ $params = array_merge($params, $optParams);
+ return $this->call('reset', array($params));
+ }
+ /**
+ * Resets all player progress on all events for the currently authenticated
+ * player. This method is only accessible to whitelisted tester accounts for
+ * your application. All quests for this player will also be reset.
+ * (events.resetAll)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetAll($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAll', array($params));
+ }
+ /**
+ * Resets all draft events for all players. This method is only available to
+ * user accounts for your developer console. All quests that use any of these
+ * events will also be reset. (events.resetAllForAllPlayers)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetAllForAllPlayers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAllForAllPlayers', array($params));
+ }
+ /**
+ * Resets the event with the given ID for all players. This method is only
+ * available to user accounts for your developer console. Only draft events can
+ * be reset. All quests that use the event will also be reset.
+ * (events.resetForAllPlayers)
+ *
+ * @param string $eventId The ID of the event.
+ * @param array $optParams Optional parameters.
+ */
+ public function resetForAllPlayers($eventId, $optParams = array())
+ {
+ $params = array('eventId' => $eventId);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetForAllPlayers', array($params));
+ }
+ /**
+ * Resets events with the given IDs for all players. This method is only
+ * available to user accounts for your developer console. Only draft events may
+ * be reset. All quests that use any of the events will also be reset.
+ * (events.resetMultipleForAllPlayers)
+ *
+ * @param Google_Service_GamesManagement_EventsResetMultipleForAllRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function resetMultipleForAllPlayers(Google_Service_GamesManagement_EventsResetMultipleForAllRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetMultipleForAllPlayers', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Players.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Players.php
new file mode 100644
index 00000000..fe9493ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Players.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "players" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $players = $gamesManagementService->players;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_Players extends Google_Service_Resource
+{
+ /**
+ * Hide the given player's leaderboard scores from the given application. This
+ * method is only available to user accounts for your developer console.
+ * (players.hide)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function hide($applicationId, $playerId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId, 'playerId' => $playerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('hide', array($params));
+ }
+ /**
+ * Unhide the given player's leaderboard scores from the given application. This
+ * method is only available to user accounts for your developer console.
+ * (players.unhide)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param string $playerId A player ID. A value of me may be used in place of
+ * the authenticated player's ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function unhide($applicationId, $playerId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId, 'playerId' => $playerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('unhide', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Quests.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Quests.php
new file mode 100644
index 00000000..7789daf6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Quests.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "quests" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $quests = $gamesManagementService->quests;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_Quests extends Google_Service_Resource
+{
+ /**
+ * Resets all player progress on the quest with the given ID for the currently
+ * authenticated player. This method is only accessible to whitelisted tester
+ * accounts for your application. (quests.reset)
+ *
+ * @param string $questId The ID of the quest.
+ * @param array $optParams Optional parameters.
+ */
+ public function reset($questId, $optParams = array())
+ {
+ $params = array('questId' => $questId);
+ $params = array_merge($params, $optParams);
+ return $this->call('reset', array($params));
+ }
+ /**
+ * Resets all player progress on all quests for the currently authenticated
+ * player. This method is only accessible to whitelisted tester accounts for
+ * your application. (quests.resetAll)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetAll($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAll', array($params));
+ }
+ /**
+ * Resets all draft quests for all players. This method is only available to
+ * user accounts for your developer console. (quests.resetAllForAllPlayers)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetAllForAllPlayers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAllForAllPlayers', array($params));
+ }
+ /**
+ * Resets all player progress on the quest with the given ID for all players.
+ * This method is only available to user accounts for your developer console.
+ * Only draft quests can be reset. (quests.resetForAllPlayers)
+ *
+ * @param string $questId The ID of the quest.
+ * @param array $optParams Optional parameters.
+ */
+ public function resetForAllPlayers($questId, $optParams = array())
+ {
+ $params = array('questId' => $questId);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetForAllPlayers', array($params));
+ }
+ /**
+ * Resets quests with the given IDs for all players. This method is only
+ * available to user accounts for your developer console. Only draft quests may
+ * be reset. (quests.resetMultipleForAllPlayers)
+ *
+ * @param Google_Service_GamesManagement_QuestsResetMultipleForAllRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function resetMultipleForAllPlayers(Google_Service_GamesManagement_QuestsResetMultipleForAllRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetMultipleForAllPlayers', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Rooms.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Rooms.php
new file mode 100644
index 00000000..bb5f0c3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Rooms.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "rooms" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $rooms = $gamesManagementService->rooms;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_Rooms extends Google_Service_Resource
+{
+ /**
+ * Reset all rooms for the currently authenticated player for your application.
+ * This method is only accessible to whitelisted tester accounts for your
+ * application. (rooms.reset)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function reset($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('reset', array($params));
+ }
+ /**
+ * Deletes rooms where the only room participants are from whitelisted tester
+ * accounts for your application. This method is only available to user accounts
+ * for your developer console. (rooms.resetForAllPlayers)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetForAllPlayers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetForAllPlayers', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Scores.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Scores.php
new file mode 100644
index 00000000..caff3905
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/Scores.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "scores" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $scores = $gamesManagementService->scores;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_Scores extends Google_Service_Resource
+{
+ /**
+ * Resets scores for the leaderboard with the given ID for the currently
+ * authenticated player. This method is only accessible to whitelisted tester
+ * accounts for your application. (scores.reset)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesManagement_PlayerScoreResetResponse
+ */
+ public function reset($leaderboardId, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId);
+ $params = array_merge($params, $optParams);
+ return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse");
+ }
+ /**
+ * Resets all scores for all leaderboards for the currently authenticated
+ * players. This method is only accessible to whitelisted tester accounts for
+ * your application. (scores.resetAll)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesManagement_PlayerScoreResetAllResponse
+ */
+ public function resetAll($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAll', array($params), "Google_Service_GamesManagement_PlayerScoreResetAllResponse");
+ }
+ /**
+ * Resets scores for all draft leaderboards for all players. This method is only
+ * available to user accounts for your developer console.
+ * (scores.resetAllForAllPlayers)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetAllForAllPlayers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetAllForAllPlayers', array($params));
+ }
+ /**
+ * Resets scores for the leaderboard with the given ID for all players. This
+ * method is only available to user accounts for your developer console. Only
+ * draft leaderboards can be reset. (scores.resetForAllPlayers)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param array $optParams Optional parameters.
+ */
+ public function resetForAllPlayers($leaderboardId, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetForAllPlayers', array($params));
+ }
+ /**
+ * Resets scores for the leaderboards with the given IDs for all players. This
+ * method is only available to user accounts for your developer console. Only
+ * draft leaderboards may be reset. (scores.resetMultipleForAllPlayers)
+ *
+ * @param Google_Service_GamesManagement_ScoresResetMultipleForAllRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function resetMultipleForAllPlayers(Google_Service_GamesManagement_ScoresResetMultipleForAllRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetMultipleForAllPlayers', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/TurnBasedMatches.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/TurnBasedMatches.php
new file mode 100644
index 00000000..62462f84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/Resource/TurnBasedMatches.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "turnBasedMatches" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gamesManagementService = new Google_Service_GamesManagement(...);
+ * $turnBasedMatches = $gamesManagementService->turnBasedMatches;
+ * </code>
+ */
+class Google_Service_GamesManagement_Resource_TurnBasedMatches extends Google_Service_Resource
+{
+ /**
+ * Reset all turn-based match data for a user. This method is only accessible to
+ * whitelisted tester accounts for your application. (turnBasedMatches.reset)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function reset($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('reset', array($params));
+ }
+ /**
+ * Deletes turn-based matches where the only match participants are from
+ * whitelisted tester accounts for your application. This method is only
+ * available to user accounts for your developer console.
+ * (turnBasedMatches.resetForAllPlayers)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function resetForAllPlayers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('resetForAllPlayers', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ScoresResetMultipleForAllRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ScoresResetMultipleForAllRequest.php
new file mode 100644
index 00000000..7a34ab9b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GamesManagement/ScoresResetMultipleForAllRequest.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GamesManagement_ScoresResetMultipleForAllRequest extends Google_Collection
+{
+ protected $collection_key = 'leaderboard_ids';
+ protected $internal_gapi_mappings = array(
+ "leaderboardIds" => "leaderboard_ids",
+ );
+ public $kind;
+ public $leaderboardIds;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeaderboardIds($leaderboardIds)
+ {
+ $this->leaderboardIds = $leaderboardIds;
+ }
+ public function getLeaderboardIds()
+ {
+ return $this->leaderboardIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics.php
new file mode 100644
index 00000000..1a3a6cb1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics.php
@@ -0,0 +1,720 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Genomics (v1).
+ *
+ * <p>
+ * Upload, process, query, and search Genomics data in the cloud.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/genomics" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Genomics extends Google_Service
+{
+ /** View and manage your data in Google BigQuery. */
+ const BIGQUERY =
+ "https://www.googleapis.com/auth/bigquery";
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Manage your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_WRITE =
+ "https://www.googleapis.com/auth/devstorage.read_write";
+ /** View and manage Genomics data. */
+ const GENOMICS =
+ "https://www.googleapis.com/auth/genomics";
+ /** View Genomics data. */
+ const GENOMICS_READONLY =
+ "https://www.googleapis.com/auth/genomics.readonly";
+
+ public $annotations;
+ public $annotationsets;
+ public $callsets;
+ public $datasets;
+ public $operations;
+ public $readgroupsets;
+ public $readgroupsets_coveragebuckets;
+ public $reads;
+ public $references;
+ public $references_bases;
+ public $referencesets;
+ public $variants;
+ public $variantsets;
+
+ /**
+ * Constructs the internal representation of the Genomics service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://genomics.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'genomics';
+
+ $this->annotations = new Google_Service_Genomics_Resource_Annotations(
+ $this,
+ $this->serviceName,
+ 'annotations',
+ array(
+ 'methods' => array(
+ 'batchCreate' => array(
+ 'path' => 'v1/annotations:batchCreate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'create' => array(
+ 'path' => 'v1/annotations',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/annotations/{annotationId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'annotationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/annotations/{annotationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'annotationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/annotations/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'update' => array(
+ 'path' => 'v1/annotations/{annotationId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'annotationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->annotationsets = new Google_Service_Genomics_Resource_Annotationsets(
+ $this,
+ $this->serviceName,
+ 'annotationsets',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/annotationsets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/annotationsets/{annotationSetId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'annotationSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/annotationsets/{annotationSetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'annotationSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/annotationsets/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'update' => array(
+ 'path' => 'v1/annotationsets/{annotationSetId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'annotationSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->callsets = new Google_Service_Genomics_Resource_Callsets(
+ $this,
+ $this->serviceName,
+ 'callsets',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/callsets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/callsets/{callSetId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'callSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/callsets/{callSetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'callSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/callsets/{callSetId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'callSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/callsets/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->datasets = new Google_Service_Genomics_Resource_Datasets(
+ $this,
+ $this->serviceName,
+ 'datasets',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/datasets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/datasets/{datasetId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/datasets/{datasetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/datasets',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/datasets/{datasetId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'undelete' => array(
+ 'path' => 'v1/datasets/{datasetId}:undelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'datasetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->operations = new Google_Service_Genomics_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->readgroupsets = new Google_Service_Genomics_Resource_Readgroupsets(
+ $this,
+ $this->serviceName,
+ 'readgroupsets',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v1/readgroupsets/{readGroupSetId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'readGroupSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'export' => array(
+ 'path' => 'v1/readgroupsets/{readGroupSetId}:export',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'readGroupSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/readgroupsets/{readGroupSetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'readGroupSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'import' => array(
+ 'path' => 'v1/readgroupsets:import',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'v1/readgroupsets/{readGroupSetId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'readGroupSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/readgroupsets/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->readgroupsets_coveragebuckets = new Google_Service_Genomics_Resource_ReadgroupsetsCoveragebuckets(
+ $this,
+ $this->serviceName,
+ 'coveragebuckets',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/readgroupsets/{readGroupSetId}/coveragebuckets',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'readGroupSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'targetBucketWidth' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'referenceName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'end' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reads = new Google_Service_Genomics_Resource_Reads(
+ $this,
+ $this->serviceName,
+ 'reads',
+ array(
+ 'methods' => array(
+ 'search' => array(
+ 'path' => 'v1/reads/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->references = new Google_Service_Genomics_Resource_References(
+ $this,
+ $this->serviceName,
+ 'references',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/references/{referenceId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'referenceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/references/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->references_bases = new Google_Service_Genomics_Resource_ReferencesBases(
+ $this,
+ $this->serviceName,
+ 'bases',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/references/{referenceId}/bases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'referenceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'start' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'end' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->referencesets = new Google_Service_Genomics_Resource_Referencesets(
+ $this,
+ $this->serviceName,
+ 'referencesets',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/referencesets/{referenceSetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'referenceSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/referencesets/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->variants = new Google_Service_Genomics_Resource_Variants(
+ $this,
+ $this->serviceName,
+ 'variants',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/variants',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/variants/{variantId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'variantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/variants/{variantId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'variantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'import' => array(
+ 'path' => 'v1/variants:import',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'merge' => array(
+ 'path' => 'v1/variants:merge',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'v1/variants/{variantId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'variantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/variants/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->variantsets = new Google_Service_Genomics_Resource_Variantsets(
+ $this,
+ $this->serviceName,
+ 'variantsets',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/variantsets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/variantsets/{variantSetId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'variantSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'export' => array(
+ 'path' => 'v1/variantsets/{variantSetId}:export',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'variantSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/variantsets/{variantSetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'variantSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/variantsets/{variantSetId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'variantSetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'v1/variantsets/search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Annotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Annotation.php
new file mode 100644
index 00000000..bcecbebc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Annotation.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Annotation extends Google_Model
+{
+ public $annotationSetId;
+ public $end;
+ public $id;
+ public $info;
+ public $name;
+ public $referenceId;
+ public $referenceName;
+ public $reverseStrand;
+ public $start;
+ protected $transcriptType = 'Google_Service_Genomics_Transcript';
+ protected $transcriptDataType = '';
+ public $type;
+ protected $variantType = 'Google_Service_Genomics_VariantAnnotation';
+ protected $variantDataType = '';
+
+ public function setAnnotationSetId($annotationSetId)
+ {
+ $this->annotationSetId = $annotationSetId;
+ }
+ public function getAnnotationSetId()
+ {
+ return $this->annotationSetId;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReferenceId($referenceId)
+ {
+ $this->referenceId = $referenceId;
+ }
+ public function getReferenceId()
+ {
+ return $this->referenceId;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setReverseStrand($reverseStrand)
+ {
+ $this->reverseStrand = $reverseStrand;
+ }
+ public function getReverseStrand()
+ {
+ return $this->reverseStrand;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setTranscript(Google_Service_Genomics_Transcript $transcript)
+ {
+ $this->transcript = $transcript;
+ }
+ public function getTranscript()
+ {
+ return $this->transcript;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVariant(Google_Service_Genomics_VariantAnnotation $variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/AnnotationSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/AnnotationSet.php
new file mode 100644
index 00000000..10ae1c86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/AnnotationSet.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_AnnotationSet extends Google_Model
+{
+ public $datasetId;
+ public $id;
+ public $info;
+ public $name;
+ public $referenceSetId;
+ public $sourceUri;
+ public $type;
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+ public function setSourceUri($sourceUri)
+ {
+ $this->sourceUri = $sourceUri;
+ }
+ public function getSourceUri()
+ {
+ return $this->sourceUri;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsRequest.php
new file mode 100644
index 00000000..3fed6c6e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_BatchCreateAnnotationsRequest extends Google_Collection
+{
+ protected $collection_key = 'annotations';
+ protected $annotationsType = 'Google_Service_Genomics_Annotation';
+ protected $annotationsDataType = 'array';
+ public $requestId;
+
+ public function setAnnotations($annotations)
+ {
+ $this->annotations = $annotations;
+ }
+ public function getAnnotations()
+ {
+ return $this->annotations;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsResponse.php
new file mode 100644
index 00000000..16ea7662
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/BatchCreateAnnotationsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_BatchCreateAnnotationsResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_Genomics_Entry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Binding.php
new file mode 100644
index 00000000..02d17028
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CallSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CallSet.php
new file mode 100644
index 00000000..db8abec6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CallSet.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_CallSet extends Google_Collection
+{
+ protected $collection_key = 'variantSetIds';
+ public $created;
+ public $id;
+ public $info;
+ public $name;
+ public $sampleId;
+ public $variantSetIds;
+
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSampleId($sampleId)
+ {
+ $this->sampleId = $sampleId;
+ }
+ public function getSampleId()
+ {
+ return $this->sampleId;
+ }
+ public function setVariantSetIds($variantSetIds)
+ {
+ $this->variantSetIds = $variantSetIds;
+ }
+ public function getVariantSetIds()
+ {
+ return $this->variantSetIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CancelOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CancelOperationRequest.php
new file mode 100644
index 00000000..84f29698
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CancelOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_CancelOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CigarUnit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CigarUnit.php
new file mode 100644
index 00000000..d6ead941
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CigarUnit.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_CigarUnit extends Google_Model
+{
+ public $operation;
+ public $operationLength;
+ public $referenceSequence;
+
+ public function setOperation($operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setOperationLength($operationLength)
+ {
+ $this->operationLength = $operationLength;
+ }
+ public function getOperationLength()
+ {
+ return $this->operationLength;
+ }
+ public function setReferenceSequence($referenceSequence)
+ {
+ $this->referenceSequence = $referenceSequence;
+ }
+ public function getReferenceSequence()
+ {
+ return $this->referenceSequence;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ClinicalCondition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ClinicalCondition.php
new file mode 100644
index 00000000..78387415
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ClinicalCondition.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ClinicalCondition extends Google_Collection
+{
+ protected $collection_key = 'names';
+ public $conceptId;
+ protected $externalIdsType = 'Google_Service_Genomics_ExternalId';
+ protected $externalIdsDataType = 'array';
+ public $names;
+ public $omimId;
+
+ public function setConceptId($conceptId)
+ {
+ $this->conceptId = $conceptId;
+ }
+ public function getConceptId()
+ {
+ return $this->conceptId;
+ }
+ public function setExternalIds($externalIds)
+ {
+ $this->externalIds = $externalIds;
+ }
+ public function getExternalIds()
+ {
+ return $this->externalIds;
+ }
+ public function setNames($names)
+ {
+ $this->names = $names;
+ }
+ public function getNames()
+ {
+ return $this->names;
+ }
+ public function setOmimId($omimId)
+ {
+ $this->omimId = $omimId;
+ }
+ public function getOmimId()
+ {
+ return $this->omimId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CodingSequence.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CodingSequence.php
new file mode 100644
index 00000000..38843a94
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CodingSequence.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_CodingSequence extends Google_Model
+{
+ public $end;
+ public $start;
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ComputeEngine.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ComputeEngine.php
new file mode 100644
index 00000000..a398d2dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ComputeEngine.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ComputeEngine extends Google_Collection
+{
+ protected $collection_key = 'diskNames';
+ public $diskNames;
+ public $instanceName;
+ public $machineType;
+ public $zone;
+
+ public function setDiskNames($diskNames)
+ {
+ $this->diskNames = $diskNames;
+ }
+ public function getDiskNames()
+ {
+ return $this->diskNames;
+ }
+ public function setInstanceName($instanceName)
+ {
+ $this->instanceName = $instanceName;
+ }
+ public function getInstanceName()
+ {
+ return $this->instanceName;
+ }
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CoverageBucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CoverageBucket.php
new file mode 100644
index 00000000..6486f45c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/CoverageBucket.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_CoverageBucket extends Google_Model
+{
+ public $meanCoverage;
+ protected $rangeType = 'Google_Service_Genomics_Range';
+ protected $rangeDataType = '';
+
+ public function setMeanCoverage($meanCoverage)
+ {
+ $this->meanCoverage = $meanCoverage;
+ }
+ public function getMeanCoverage()
+ {
+ return $this->meanCoverage;
+ }
+ public function setRange(Google_Service_Genomics_Range $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Dataset.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Dataset.php
new file mode 100644
index 00000000..dee47e7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Dataset.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Dataset extends Google_Model
+{
+ public $createTime;
+ public $id;
+ public $name;
+ public $projectId;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Entry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Entry.php
new file mode 100644
index 00000000..6556933e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Entry.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Entry extends Google_Model
+{
+ protected $annotationType = 'Google_Service_Genomics_Annotation';
+ protected $annotationDataType = '';
+ protected $statusType = 'Google_Service_Genomics_Status';
+ protected $statusDataType = '';
+
+ public function setAnnotation(Google_Service_Genomics_Annotation $annotation)
+ {
+ $this->annotation = $annotation;
+ }
+ public function getAnnotation()
+ {
+ return $this->annotation;
+ }
+ public function setStatus(Google_Service_Genomics_Status $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Exon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Exon.php
new file mode 100644
index 00000000..29366c9d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Exon.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Exon extends Google_Model
+{
+ public $end;
+ public $frame;
+ public $start;
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setFrame($frame)
+ {
+ $this->frame = $frame;
+ }
+ public function getFrame()
+ {
+ return $this->frame;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Experiment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Experiment.php
new file mode 100644
index 00000000..cf21926c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Experiment.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Experiment extends Google_Model
+{
+ public $instrumentModel;
+ public $libraryId;
+ public $platformUnit;
+ public $sequencingCenter;
+
+ public function setInstrumentModel($instrumentModel)
+ {
+ $this->instrumentModel = $instrumentModel;
+ }
+ public function getInstrumentModel()
+ {
+ return $this->instrumentModel;
+ }
+ public function setLibraryId($libraryId)
+ {
+ $this->libraryId = $libraryId;
+ }
+ public function getLibraryId()
+ {
+ return $this->libraryId;
+ }
+ public function setPlatformUnit($platformUnit)
+ {
+ $this->platformUnit = $platformUnit;
+ }
+ public function getPlatformUnit()
+ {
+ return $this->platformUnit;
+ }
+ public function setSequencingCenter($sequencingCenter)
+ {
+ $this->sequencingCenter = $sequencingCenter;
+ }
+ public function getSequencingCenter()
+ {
+ return $this->sequencingCenter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportReadGroupSetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportReadGroupSetRequest.php
new file mode 100644
index 00000000..482a90e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportReadGroupSetRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ExportReadGroupSetRequest extends Google_Collection
+{
+ protected $collection_key = 'referenceNames';
+ public $exportUri;
+ public $projectId;
+ public $referenceNames;
+
+ public function setExportUri($exportUri)
+ {
+ $this->exportUri = $exportUri;
+ }
+ public function getExportUri()
+ {
+ return $this->exportUri;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setReferenceNames($referenceNames)
+ {
+ $this->referenceNames = $referenceNames;
+ }
+ public function getReferenceNames()
+ {
+ return $this->referenceNames;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportVariantSetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportVariantSetRequest.php
new file mode 100644
index 00000000..214738c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExportVariantSetRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection
+{
+ protected $collection_key = 'callSetIds';
+ public $bigqueryDataset;
+ public $bigqueryTable;
+ public $callSetIds;
+ public $format;
+ public $projectId;
+
+ public function setBigqueryDataset($bigqueryDataset)
+ {
+ $this->bigqueryDataset = $bigqueryDataset;
+ }
+ public function getBigqueryDataset()
+ {
+ return $this->bigqueryDataset;
+ }
+ public function setBigqueryTable($bigqueryTable)
+ {
+ $this->bigqueryTable = $bigqueryTable;
+ }
+ public function getBigqueryTable()
+ {
+ return $this->bigqueryTable;
+ }
+ public function setCallSetIds($callSetIds)
+ {
+ $this->callSetIds = $callSetIds;
+ }
+ public function getCallSetIds()
+ {
+ return $this->callSetIds;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExternalId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExternalId.php
new file mode 100644
index 00000000..5552e207
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ExternalId.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ExternalId extends Google_Model
+{
+ public $id;
+ public $sourceName;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSourceName($sourceName)
+ {
+ $this->sourceName = $sourceName;
+ }
+ public function getSourceName()
+ {
+ return $this->sourceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GenomicsEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GenomicsEmpty.php
new file mode 100644
index 00000000..2bf2c603
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GenomicsEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_GenomicsEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GetIamPolicyRequest.php
new file mode 100644
index 00000000..c2187c93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/GetIamPolicyRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_GetIamPolicyRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsRequest.php
new file mode 100644
index 00000000..2183fb0f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'sourceUris';
+ public $datasetId;
+ public $partitionStrategy;
+ public $referenceSetId;
+ public $sourceUris;
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setPartitionStrategy($partitionStrategy)
+ {
+ $this->partitionStrategy = $partitionStrategy;
+ }
+ public function getPartitionStrategy()
+ {
+ return $this->partitionStrategy;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+ public function setSourceUris($sourceUris)
+ {
+ $this->sourceUris = $sourceUris;
+ }
+ public function getSourceUris()
+ {
+ return $this->sourceUris;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsResponse.php
new file mode 100644
index 00000000..2ee6cf5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportReadGroupSetsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Collection
+{
+ protected $collection_key = 'readGroupSetIds';
+ public $readGroupSetIds;
+
+ public function setReadGroupSetIds($readGroupSetIds)
+ {
+ $this->readGroupSetIds = $readGroupSetIds;
+ }
+ public function getReadGroupSetIds()
+ {
+ return $this->readGroupSetIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsRequest.php
new file mode 100644
index 00000000..d799ce1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection
+{
+ protected $collection_key = 'sourceUris';
+ public $format;
+ public $infoMergeConfig;
+ public $normalizeReferenceNames;
+ public $sourceUris;
+ public $variantSetId;
+
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setInfoMergeConfig($infoMergeConfig)
+ {
+ $this->infoMergeConfig = $infoMergeConfig;
+ }
+ public function getInfoMergeConfig()
+ {
+ return $this->infoMergeConfig;
+ }
+ public function setNormalizeReferenceNames($normalizeReferenceNames)
+ {
+ $this->normalizeReferenceNames = $normalizeReferenceNames;
+ }
+ public function getNormalizeReferenceNames()
+ {
+ return $this->normalizeReferenceNames;
+ }
+ public function setSourceUris($sourceUris)
+ {
+ $this->sourceUris = $sourceUris;
+ }
+ public function getSourceUris()
+ {
+ return $this->sourceUris;
+ }
+ public function setVariantSetId($variantSetId)
+ {
+ $this->variantSetId = $variantSetId;
+ }
+ public function getVariantSetId()
+ {
+ return $this->variantSetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsResponse.php
new file mode 100644
index 00000000..5ed64943
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ImportVariantsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ImportVariantsResponse extends Google_Collection
+{
+ protected $collection_key = 'callSetIds';
+ public $callSetIds;
+
+ public function setCallSetIds($callSetIds)
+ {
+ $this->callSetIds = $callSetIds;
+ }
+ public function getCallSetIds()
+ {
+ return $this->callSetIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/LinearAlignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/LinearAlignment.php
new file mode 100644
index 00000000..a73aa5d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/LinearAlignment.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_LinearAlignment extends Google_Collection
+{
+ protected $collection_key = 'cigar';
+ protected $cigarType = 'Google_Service_Genomics_CigarUnit';
+ protected $cigarDataType = 'array';
+ public $mappingQuality;
+ protected $positionType = 'Google_Service_Genomics_Position';
+ protected $positionDataType = '';
+
+ public function setCigar($cigar)
+ {
+ $this->cigar = $cigar;
+ }
+ public function getCigar()
+ {
+ return $this->cigar;
+ }
+ public function setMappingQuality($mappingQuality)
+ {
+ $this->mappingQuality = $mappingQuality;
+ }
+ public function getMappingQuality()
+ {
+ return $this->mappingQuality;
+ }
+ public function setPosition(Google_Service_Genomics_Position $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListBasesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListBasesResponse.php
new file mode 100644
index 00000000..5e6dda64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListBasesResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ListBasesResponse extends Google_Model
+{
+ public $nextPageToken;
+ public $offset;
+ public $sequence;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOffset($offset)
+ {
+ $this->offset = $offset;
+ }
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+ public function setSequence($sequence)
+ {
+ $this->sequence = $sequence;
+ }
+ public function getSequence()
+ {
+ return $this->sequence;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListCoverageBucketsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListCoverageBucketsResponse.php
new file mode 100644
index 00000000..2b98ca2e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListCoverageBucketsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection
+{
+ protected $collection_key = 'coverageBuckets';
+ public $bucketWidth;
+ protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket';
+ protected $coverageBucketsDataType = 'array';
+ public $nextPageToken;
+
+ public function setBucketWidth($bucketWidth)
+ {
+ $this->bucketWidth = $bucketWidth;
+ }
+ public function getBucketWidth()
+ {
+ return $this->bucketWidth;
+ }
+ public function setCoverageBuckets($coverageBuckets)
+ {
+ $this->coverageBuckets = $coverageBuckets;
+ }
+ public function getCoverageBuckets()
+ {
+ return $this->coverageBuckets;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListDatasetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListDatasetsResponse.php
new file mode 100644
index 00000000..e4460911
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListDatasetsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection
+{
+ protected $collection_key = 'datasets';
+ protected $datasetsType = 'Google_Service_Genomics_Dataset';
+ protected $datasetsDataType = 'array';
+ public $nextPageToken;
+
+ public function setDatasets($datasets)
+ {
+ $this->datasets = $datasets;
+ }
+ public function getDatasets()
+ {
+ return $this->datasets;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListOperationsResponse.php
new file mode 100644
index 00000000..f96a1025
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_Genomics_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/MergeVariantsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/MergeVariantsRequest.php
new file mode 100644
index 00000000..06dad4b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/MergeVariantsRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection
+{
+ protected $collection_key = 'variants';
+ public $infoMergeConfig;
+ public $variantSetId;
+ protected $variantsType = 'Google_Service_Genomics_Variant';
+ protected $variantsDataType = 'array';
+
+ public function setInfoMergeConfig($infoMergeConfig)
+ {
+ $this->infoMergeConfig = $infoMergeConfig;
+ }
+ public function getInfoMergeConfig()
+ {
+ return $this->infoMergeConfig;
+ }
+ public function setVariantSetId($variantSetId)
+ {
+ $this->variantSetId = $variantSetId;
+ }
+ public function getVariantSetId()
+ {
+ return $this->variantSetId;
+ }
+ public function setVariants($variants)
+ {
+ $this->variants = $variants;
+ }
+ public function getVariants()
+ {
+ return $this->variants;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Operation.php
new file mode 100644
index 00000000..1b28aa2c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_Genomics_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_Genomics_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationEvent.php
new file mode 100644
index 00000000..0c43648e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationEvent.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_OperationEvent extends Google_Model
+{
+ public $description;
+ public $endTime;
+ public $startTime;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationMetadata.php
new file mode 100644
index 00000000..04268ac8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/OperationMetadata.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_OperationMetadata extends Google_Collection
+{
+ protected $collection_key = 'events';
+ public $clientId;
+ public $createTime;
+ public $endTime;
+ protected $eventsType = 'Google_Service_Genomics_OperationEvent';
+ protected $eventsDataType = 'array';
+ public $labels;
+ public $projectId;
+ public $request;
+ public $runtimeMetadata;
+ public $startTime;
+
+ public function setClientId($clientId)
+ {
+ $this->clientId = $clientId;
+ }
+ public function getClientId()
+ {
+ return $this->clientId;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setEvents($events)
+ {
+ $this->events = $events;
+ }
+ public function getEvents()
+ {
+ return $this->events;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setRequest($request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+ public function setRuntimeMetadata($runtimeMetadata)
+ {
+ $this->runtimeMetadata = $runtimeMetadata;
+ }
+ public function getRuntimeMetadata()
+ {
+ return $this->runtimeMetadata;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Policy.php
new file mode 100644
index 00000000..7228e7bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Policy.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Policy extends Google_Collection
+{
+ protected $collection_key = 'bindings';
+ protected $bindingsType = 'Google_Service_Genomics_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $version;
+
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Position.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Position.php
new file mode 100644
index 00000000..98be9f87
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Position.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Position extends Google_Model
+{
+ public $position;
+ public $referenceName;
+ public $reverseStrand;
+
+ public function setPosition($position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setReverseStrand($reverseStrand)
+ {
+ $this->reverseStrand = $reverseStrand;
+ }
+ public function getReverseStrand()
+ {
+ return $this->reverseStrand;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Program.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Program.php
new file mode 100644
index 00000000..94438673
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Program.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Program extends Google_Model
+{
+ public $commandLine;
+ public $id;
+ public $name;
+ public $prevProgramId;
+ public $version;
+
+ public function setCommandLine($commandLine)
+ {
+ $this->commandLine = $commandLine;
+ }
+ public function getCommandLine()
+ {
+ return $this->commandLine;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrevProgramId($prevProgramId)
+ {
+ $this->prevProgramId = $prevProgramId;
+ }
+ public function getPrevProgramId()
+ {
+ return $this->prevProgramId;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Range.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Range.php
new file mode 100644
index 00000000..04ca770b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Range.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Range extends Google_Model
+{
+ public $end;
+ public $referenceName;
+ public $start;
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Read.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Read.php
new file mode 100644
index 00000000..99aa8d60
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Read.php
@@ -0,0 +1,177 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Read extends Google_Collection
+{
+ protected $collection_key = 'alignedQuality';
+ public $alignedQuality;
+ public $alignedSequence;
+ protected $alignmentType = 'Google_Service_Genomics_LinearAlignment';
+ protected $alignmentDataType = '';
+ public $duplicateFragment;
+ public $failedVendorQualityChecks;
+ public $fragmentLength;
+ public $fragmentName;
+ public $id;
+ public $info;
+ protected $nextMatePositionType = 'Google_Service_Genomics_Position';
+ protected $nextMatePositionDataType = '';
+ public $numberReads;
+ public $properPlacement;
+ public $readGroupId;
+ public $readGroupSetId;
+ public $readNumber;
+ public $secondaryAlignment;
+ public $supplementaryAlignment;
+
+ public function setAlignedQuality($alignedQuality)
+ {
+ $this->alignedQuality = $alignedQuality;
+ }
+ public function getAlignedQuality()
+ {
+ return $this->alignedQuality;
+ }
+ public function setAlignedSequence($alignedSequence)
+ {
+ $this->alignedSequence = $alignedSequence;
+ }
+ public function getAlignedSequence()
+ {
+ return $this->alignedSequence;
+ }
+ public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment)
+ {
+ $this->alignment = $alignment;
+ }
+ public function getAlignment()
+ {
+ return $this->alignment;
+ }
+ public function setDuplicateFragment($duplicateFragment)
+ {
+ $this->duplicateFragment = $duplicateFragment;
+ }
+ public function getDuplicateFragment()
+ {
+ return $this->duplicateFragment;
+ }
+ public function setFailedVendorQualityChecks($failedVendorQualityChecks)
+ {
+ $this->failedVendorQualityChecks = $failedVendorQualityChecks;
+ }
+ public function getFailedVendorQualityChecks()
+ {
+ return $this->failedVendorQualityChecks;
+ }
+ public function setFragmentLength($fragmentLength)
+ {
+ $this->fragmentLength = $fragmentLength;
+ }
+ public function getFragmentLength()
+ {
+ return $this->fragmentLength;
+ }
+ public function setFragmentName($fragmentName)
+ {
+ $this->fragmentName = $fragmentName;
+ }
+ public function getFragmentName()
+ {
+ return $this->fragmentName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setNextMatePosition(Google_Service_Genomics_Position $nextMatePosition)
+ {
+ $this->nextMatePosition = $nextMatePosition;
+ }
+ public function getNextMatePosition()
+ {
+ return $this->nextMatePosition;
+ }
+ public function setNumberReads($numberReads)
+ {
+ $this->numberReads = $numberReads;
+ }
+ public function getNumberReads()
+ {
+ return $this->numberReads;
+ }
+ public function setProperPlacement($properPlacement)
+ {
+ $this->properPlacement = $properPlacement;
+ }
+ public function getProperPlacement()
+ {
+ return $this->properPlacement;
+ }
+ public function setReadGroupId($readGroupId)
+ {
+ $this->readGroupId = $readGroupId;
+ }
+ public function getReadGroupId()
+ {
+ return $this->readGroupId;
+ }
+ public function setReadGroupSetId($readGroupSetId)
+ {
+ $this->readGroupSetId = $readGroupSetId;
+ }
+ public function getReadGroupSetId()
+ {
+ return $this->readGroupSetId;
+ }
+ public function setReadNumber($readNumber)
+ {
+ $this->readNumber = $readNumber;
+ }
+ public function getReadNumber()
+ {
+ return $this->readNumber;
+ }
+ public function setSecondaryAlignment($secondaryAlignment)
+ {
+ $this->secondaryAlignment = $secondaryAlignment;
+ }
+ public function getSecondaryAlignment()
+ {
+ return $this->secondaryAlignment;
+ }
+ public function setSupplementaryAlignment($supplementaryAlignment)
+ {
+ $this->supplementaryAlignment = $supplementaryAlignment;
+ }
+ public function getSupplementaryAlignment()
+ {
+ return $this->supplementaryAlignment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroup.php
new file mode 100644
index 00000000..aa63bd32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroup.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ReadGroup extends Google_Collection
+{
+ protected $collection_key = 'programs';
+ public $datasetId;
+ public $description;
+ protected $experimentType = 'Google_Service_Genomics_Experiment';
+ protected $experimentDataType = '';
+ public $id;
+ public $info;
+ public $name;
+ public $predictedInsertSize;
+ protected $programsType = 'Google_Service_Genomics_Program';
+ protected $programsDataType = 'array';
+ public $referenceSetId;
+ public $sampleId;
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setExperiment(Google_Service_Genomics_Experiment $experiment)
+ {
+ $this->experiment = $experiment;
+ }
+ public function getExperiment()
+ {
+ return $this->experiment;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPredictedInsertSize($predictedInsertSize)
+ {
+ $this->predictedInsertSize = $predictedInsertSize;
+ }
+ public function getPredictedInsertSize()
+ {
+ return $this->predictedInsertSize;
+ }
+ public function setPrograms($programs)
+ {
+ $this->programs = $programs;
+ }
+ public function getPrograms()
+ {
+ return $this->programs;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+ public function setSampleId($sampleId)
+ {
+ $this->sampleId = $sampleId;
+ }
+ public function getSampleId()
+ {
+ return $this->sampleId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroupSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroupSet.php
new file mode 100644
index 00000000..26d8871c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReadGroupSet.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ReadGroupSet extends Google_Collection
+{
+ protected $collection_key = 'readGroups';
+ public $datasetId;
+ public $filename;
+ public $id;
+ public $info;
+ public $name;
+ protected $readGroupsType = 'Google_Service_Genomics_ReadGroup';
+ protected $readGroupsDataType = 'array';
+ public $referenceSetId;
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setFilename($filename)
+ {
+ $this->filename = $filename;
+ }
+ public function getFilename()
+ {
+ return $this->filename;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReadGroups($readGroups)
+ {
+ $this->readGroups = $readGroups;
+ }
+ public function getReadGroups()
+ {
+ return $this->readGroups;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Reference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Reference.php
new file mode 100644
index 00000000..c9184497
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Reference.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Reference extends Google_Collection
+{
+ protected $collection_key = 'sourceAccessions';
+ public $id;
+ public $length;
+ public $md5checksum;
+ public $name;
+ public $ncbiTaxonId;
+ public $sourceAccessions;
+ public $sourceUri;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLength($length)
+ {
+ $this->length = $length;
+ }
+ public function getLength()
+ {
+ return $this->length;
+ }
+ public function setMd5checksum($md5checksum)
+ {
+ $this->md5checksum = $md5checksum;
+ }
+ public function getMd5checksum()
+ {
+ return $this->md5checksum;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNcbiTaxonId($ncbiTaxonId)
+ {
+ $this->ncbiTaxonId = $ncbiTaxonId;
+ }
+ public function getNcbiTaxonId()
+ {
+ return $this->ncbiTaxonId;
+ }
+ public function setSourceAccessions($sourceAccessions)
+ {
+ $this->sourceAccessions = $sourceAccessions;
+ }
+ public function getSourceAccessions()
+ {
+ return $this->sourceAccessions;
+ }
+ public function setSourceUri($sourceUri)
+ {
+ $this->sourceUri = $sourceUri;
+ }
+ public function getSourceUri()
+ {
+ return $this->sourceUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceBound.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceBound.php
new file mode 100644
index 00000000..824d0c99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceBound.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ReferenceBound extends Google_Model
+{
+ public $referenceName;
+ public $upperBound;
+
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setUpperBound($upperBound)
+ {
+ $this->upperBound = $upperBound;
+ }
+ public function getUpperBound()
+ {
+ return $this->upperBound;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceSet.php
new file mode 100644
index 00000000..d52726f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/ReferenceSet.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_ReferenceSet extends Google_Collection
+{
+ protected $collection_key = 'sourceAccessions';
+ public $assemblyId;
+ public $description;
+ public $id;
+ public $md5checksum;
+ public $ncbiTaxonId;
+ public $referenceIds;
+ public $sourceAccessions;
+ public $sourceUri;
+
+ public function setAssemblyId($assemblyId)
+ {
+ $this->assemblyId = $assemblyId;
+ }
+ public function getAssemblyId()
+ {
+ return $this->assemblyId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMd5checksum($md5checksum)
+ {
+ $this->md5checksum = $md5checksum;
+ }
+ public function getMd5checksum()
+ {
+ return $this->md5checksum;
+ }
+ public function setNcbiTaxonId($ncbiTaxonId)
+ {
+ $this->ncbiTaxonId = $ncbiTaxonId;
+ }
+ public function getNcbiTaxonId()
+ {
+ return $this->ncbiTaxonId;
+ }
+ public function setReferenceIds($referenceIds)
+ {
+ $this->referenceIds = $referenceIds;
+ }
+ public function getReferenceIds()
+ {
+ return $this->referenceIds;
+ }
+ public function setSourceAccessions($sourceAccessions)
+ {
+ $this->sourceAccessions = $sourceAccessions;
+ }
+ public function getSourceAccessions()
+ {
+ return $this->sourceAccessions;
+ }
+ public function setSourceUri($sourceUri)
+ {
+ $this->sourceUri = $sourceUri;
+ }
+ public function getSourceUri()
+ {
+ return $this->sourceUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotations.php
new file mode 100644
index 00000000..04837db9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotations.php
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "annotations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $annotations = $genomicsService->annotations;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Annotations extends Google_Service_Resource
+{
+ /**
+ * Creates one or more new annotations atomically. All annotations must belong
+ * to the same annotation set. Caller must have WRITE permission for this
+ * annotation set. For optimal performance, batch positionally adjacent
+ * annotations together.
+ *
+ * If the request has a systemic issue, such as an attempt to write to an
+ * inaccessible annotation set, the entire RPC will fail accordingly. For lesser
+ * data issues, when possible an error will be isolated to the corresponding
+ * batch entry in the response; the remaining well formed annotations will be
+ * created normally.
+ *
+ * For details on the requirements for each individual annotation resource, see
+ * CreateAnnotation. (annotations.batchCreate)
+ *
+ * @param Google_Service_Genomics_BatchCreateAnnotationsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_BatchCreateAnnotationsResponse
+ */
+ public function batchCreate(Google_Service_Genomics_BatchCreateAnnotationsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchCreate', array($params), "Google_Service_Genomics_BatchCreateAnnotationsResponse");
+ }
+ /**
+ * Creates a new annotation. Caller must have WRITE permission for the
+ * associated annotation set.
+ *
+ * The following fields are required:
+ *
+ * * annotationSetId * referenceName or referenceId
+ *
+ * ### Transcripts
+ *
+ * For annotations of type TRANSCRIPT, the following fields of transcript must
+ * be provided:
+ *
+ * * exons.start * exons.end
+ *
+ * All other fields may be optionally specified, unless documented as being
+ * server-generated (for example, the `id` field). The annotated range must be
+ * no longer than 100Mbp (mega base pairs). See the Annotation resource for
+ * additional restrictions on each field. (annotations.create)
+ *
+ * @param Google_Service_Genomics_Annotation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Annotation
+ */
+ public function create(Google_Service_Genomics_Annotation $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_Annotation");
+ }
+ /**
+ * Deletes an annotation. Caller must have WRITE permission for the associated
+ * annotation set. (annotations.delete)
+ *
+ * @param string $annotationId The ID of the annotation to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function delete($annotationId, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Gets an annotation. Caller must have READ permission for the associated
+ * annotation set. (annotations.get)
+ *
+ * @param string $annotationId The ID of the annotation to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Annotation
+ */
+ public function get($annotationId, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_Annotation");
+ }
+ /**
+ * Searches for annotations that match the given criteria. Results are ordered
+ * by genomic coordinate (by reference sequence, then position). Annotations
+ * with equivalent genomic coordinates are returned in an unspecified order.
+ * This order is consistent, such that two queries for the same content
+ * (regardless of page size) yield annotations in the same order across their
+ * respective streams of paginated responses. Caller must have READ permission
+ * for the queried annotation sets. (annotations.search)
+ *
+ * @param Google_Service_Genomics_SearchAnnotationsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchAnnotationsResponse
+ */
+ public function search(Google_Service_Genomics_SearchAnnotationsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationsResponse");
+ }
+ /**
+ * Updates an annotation. Caller must have WRITE permission for the associated
+ * dataset. (annotations.update)
+ *
+ * @param string $annotationId The ID of the annotation to be updated.
+ * @param Google_Service_Genomics_Annotation $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask An optional mask specifying which fields to
+ * update. Mutable fields are name, variant, transcript, and info. If
+ * unspecified, all mutable fields will be updated.
+ * @return Google_Service_Genomics_Annotation
+ */
+ public function update($annotationId, Google_Service_Genomics_Annotation $postBody, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Genomics_Annotation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotationsets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotationsets.php
new file mode 100644
index 00000000..662715ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Annotationsets.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "annotationsets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $annotationsets = $genomicsService->annotationsets;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Annotationsets extends Google_Service_Resource
+{
+ /**
+ * Creates a new annotation set. Caller must have WRITE permission for the
+ * associated dataset.
+ *
+ * The following fields are required:
+ *
+ * * datasetId * referenceSetId
+ *
+ * All other fields may be optionally specified, unless documented as being
+ * server-generated (for example, the `id` field). (annotationsets.create)
+ *
+ * @param Google_Service_Genomics_AnnotationSet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_AnnotationSet
+ */
+ public function create(Google_Service_Genomics_AnnotationSet $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_AnnotationSet");
+ }
+ /**
+ * Deletes an annotation set. Caller must have WRITE permission for the
+ * associated annotation set. (annotationsets.delete)
+ *
+ * @param string $annotationSetId The ID of the annotation set to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function delete($annotationSetId, $optParams = array())
+ {
+ $params = array('annotationSetId' => $annotationSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Gets an annotation set. Caller must have READ permission for the associated
+ * dataset. (annotationsets.get)
+ *
+ * @param string $annotationSetId The ID of the annotation set to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_AnnotationSet
+ */
+ public function get($annotationSetId, $optParams = array())
+ {
+ $params = array('annotationSetId' => $annotationSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_AnnotationSet");
+ }
+ /**
+ * Searches for annotation sets that match the given criteria. Annotation sets
+ * are returned in an unspecified order. This order is consistent, such that two
+ * queries for the same content (regardless of page size) yield annotation sets
+ * in the same order across their respective streams of paginated responses.
+ * Caller must have READ permission for the queried datasets.
+ * (annotationsets.search)
+ *
+ * @param Google_Service_Genomics_SearchAnnotationSetsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchAnnotationSetsResponse
+ */
+ public function search(Google_Service_Genomics_SearchAnnotationSetsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationSetsResponse");
+ }
+ /**
+ * Updates an annotation set. The update must respect all mutability
+ * restrictions and other invariants described on the annotation set resource.
+ * Caller must have WRITE permission for the associated dataset.
+ * (annotationsets.update)
+ *
+ * @param string $annotationSetId The ID of the annotation set to be updated.
+ * @param Google_Service_Genomics_AnnotationSet $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask An optional mask specifying which fields to
+ * update. Mutable fields are name, source_uri, and info. If unspecified, all
+ * mutable fields will be updated.
+ * @return Google_Service_Genomics_AnnotationSet
+ */
+ public function update($annotationSetId, Google_Service_Genomics_AnnotationSet $postBody, $optParams = array())
+ {
+ $params = array('annotationSetId' => $annotationSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Genomics_AnnotationSet");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Callsets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Callsets.php
new file mode 100644
index 00000000..5d406429
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Callsets.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "callsets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $callsets = $genomicsService->callsets;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Callsets extends Google_Service_Resource
+{
+ /**
+ * Creates a new call set.
+ *
+ * For the definitions of call sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (callsets.create)
+ *
+ * @param Google_Service_Genomics_CallSet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_CallSet
+ */
+ public function create(Google_Service_Genomics_CallSet $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_CallSet");
+ }
+ /**
+ * Deletes a call set.
+ *
+ * For the definitions of call sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (callsets.delete)
+ *
+ * @param string $callSetId The ID of the call set to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function delete($callSetId, $optParams = array())
+ {
+ $params = array('callSetId' => $callSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Gets a call set by ID.
+ *
+ * For the definitions of call sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (callsets.get)
+ *
+ * @param string $callSetId The ID of the call set.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_CallSet
+ */
+ public function get($callSetId, $optParams = array())
+ {
+ $params = array('callSetId' => $callSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_CallSet");
+ }
+ /**
+ * Updates a call set.
+ *
+ * For the definitions of call sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * This method supports patch semantics. (callsets.patch)
+ *
+ * @param string $callSetId The ID of the call set to be updated.
+ * @param Google_Service_Genomics_CallSet $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask An optional mask specifying which fields to
+ * update. At this time, the only mutable field is name. The only acceptable
+ * value is "name". If unspecified, all mutable fields will be updated.
+ * @return Google_Service_Genomics_CallSet
+ */
+ public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array())
+ {
+ $params = array('callSetId' => $callSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Genomics_CallSet");
+ }
+ /**
+ * Gets a list of call sets matching the criteria.
+ *
+ * For the definitions of call sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schema
+ * s/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L178).
+ * (callsets.search)
+ *
+ * @param Google_Service_Genomics_SearchCallSetsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchCallSetsResponse
+ */
+ public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchCallSetsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php
new file mode 100644
index 00000000..f989c1f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Datasets.php
@@ -0,0 +1,214 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "datasets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $datasets = $genomicsService->datasets;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Datasets extends Google_Service_Resource
+{
+ /**
+ * Creates a new dataset.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (datasets.create)
+ *
+ * @param Google_Service_Genomics_Dataset $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Dataset
+ */
+ public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_Dataset");
+ }
+ /**
+ * Deletes a dataset and all of its contents (all read group sets, reference
+ * sets, variant sets, call sets, annotation sets, etc.) This is reversible (up
+ * to one week after the deletion) via the datasets.undelete operation.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (datasets.delete)
+ *
+ * @param string $datasetId The ID of the dataset to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function delete($datasetId, $optParams = array())
+ {
+ $params = array('datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Gets a dataset by ID.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (datasets.get)
+ *
+ * @param string $datasetId The ID of the dataset.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Dataset
+ */
+ public function get($datasetId, $optParams = array())
+ {
+ $params = array('datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_Dataset");
+ }
+ /**
+ * Gets the access control policy for the dataset. This is empty if the policy
+ * or resource does not exist.
+ *
+ * See Getting a Policy for more information.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (datasets.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which policy is being
+ * specified. Format is `datasets/`.
+ * @param Google_Service_Genomics_GetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Policy
+ */
+ public function getIamPolicy($resource, Google_Service_Genomics_GetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Genomics_Policy");
+ }
+ /**
+ * Lists datasets within a project.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (datasets.listDatasets)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of `nextPageToken` from the previous response.
+ * @opt_param int pageSize The maximum number of results to return in a single
+ * page. If unspecified, defaults to 50. The maximum value is 1024.
+ * @opt_param string projectId Required. The Google Cloud project ID to list
+ * datasets for.
+ * @return Google_Service_Genomics_ListDatasetsResponse
+ */
+ public function listDatasets($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse");
+ }
+ /**
+ * Updates a dataset.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * This method supports patch semantics. (datasets.patch)
+ *
+ * @param string $datasetId The ID of the dataset to be updated.
+ * @param Google_Service_Genomics_Dataset $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask An optional mask specifying which fields to
+ * update. At this time, the only mutable field is name. The only acceptable
+ * value is "name". If unspecified, all mutable fields will be updated.
+ * @return Google_Service_Genomics_Dataset
+ */
+ public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array())
+ {
+ $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Genomics_Dataset");
+ }
+ /**
+ * Sets the access control policy on the specified dataset. Replaces any
+ * existing policy.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * See Setting a Policy for more information. (datasets.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which policy is being
+ * specified. Format is `datasets/`.
+ * @param Google_Service_Genomics_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_Genomics_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Genomics_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. See Testing
+ * Permissions for more information.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (datasets.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which policy is being
+ * specified. Format is `datasets/`.
+ * @param Google_Service_Genomics_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_Genomics_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Genomics_TestIamPermissionsResponse");
+ }
+ /**
+ * Undeletes a dataset by restoring a dataset which was deleted via this API.
+ *
+ * For the definitions of datasets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * This operation is only possible for a week after the deletion occurred.
+ * (datasets.undelete)
+ *
+ * @param string $datasetId The ID of the dataset to be undeleted.
+ * @param Google_Service_Genomics_UndeleteDatasetRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Dataset
+ */
+ public function undelete($datasetId, Google_Service_Genomics_UndeleteDatasetRequest $postBody, $optParams = array())
+ {
+ $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php
new file mode 100644
index 00000000..982df693
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Operations.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $operations = $genomicsService->operations;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * Clients may use Operations.GetOperation or Operations.ListOperations to check
+ * whether the cancellation succeeded or the operation completed despite
+ * cancellation. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param Google_Service_Genomics_CancelOperationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function cancel($name, Google_Service_Genomics_CancelOperationRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request.
+ * (operations.listOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter A string for filtering Operations. The following
+ * filter fields are supported
+ *
+ * * projectId Required. Corresponds to OperationMetadata.projectId. *
+ * createTime The time this job was created, in seconds from the
+ * [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=`
+ * operators. * status Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`.
+ * Only one status may be specified. * labels.key where key is a label key.
+ *
+ * Examples
+ *
+ * * `projectId = my-project AND createTime >= 1432140000` * `projectId = my-
+ * project AND createTime >= 1432140000 AND createTime <= 1432150000 AND status
+ * = RUNNING` * `projectId = my-project AND labels.color = *` * `projectId = my-
+ * project AND labels.color = red`
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The maximum number of results to return. If
+ * unspecified, defaults to 256. The maximum value is 2048.
+ * @return Google_Service_Genomics_ListOperationsResponse
+ */
+ public function listOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Genomics_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Readgroupsets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Readgroupsets.php
new file mode 100644
index 00000000..d8c1bf5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Readgroupsets.php
@@ -0,0 +1,166 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "readgroupsets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $readgroupsets = $genomicsService->readgroupsets;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Readgroupsets extends Google_Service_Resource
+{
+ /**
+ * Deletes a read group set.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (readgroupsets.delete)
+ *
+ * @param string $readGroupSetId The ID of the read group set to be deleted. The
+ * caller must have WRITE permissions to the dataset associated with this read
+ * group set.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function delete($readGroupSetId, $optParams = array())
+ {
+ $params = array('readGroupSetId' => $readGroupSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Exports a read group set to a BAM file in Google Cloud Storage.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Note that currently there may be some differences between exported BAM files
+ * and the original BAM file at the time of import. See ImportReadGroupSets for
+ * caveats. (readgroupsets.export)
+ *
+ * @param string $readGroupSetId Required. The ID of the read group set to
+ * export. The caller must have READ access to this read group set.
+ * @param Google_Service_Genomics_ExportReadGroupSetRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Operation
+ */
+ public function export($readGroupSetId, Google_Service_Genomics_ExportReadGroupSetRequest $postBody, $optParams = array())
+ {
+ $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('export', array($params), "Google_Service_Genomics_Operation");
+ }
+ /**
+ * Gets a read group set by ID.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (readgroupsets.get)
+ *
+ * @param string $readGroupSetId The ID of the read group set.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_ReadGroupSet
+ */
+ public function get($readGroupSetId, $optParams = array())
+ {
+ $params = array('readGroupSetId' => $readGroupSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet");
+ }
+ /**
+ * Creates read group sets by asynchronously importing the provided information.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * The caller must have WRITE permissions to the dataset.
+ *
+ * ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import
+ *
+ * - Tags will be converted to strings - tag types are not preserved - Comments
+ * (`@CO`) in the input file header will not be preserved - Original header
+ * order of references (`@SQ`) will not be preserved - Any reverse stranded
+ * unmapped reads will be reverse complemented, and their qualities (also the
+ * "BQ" and "OQ" tags, if any) will be reversed - Unmapped reads will be
+ * stripped of positional information (reference name and position)
+ * (readgroupsets.import)
+ *
+ * @param Google_Service_Genomics_ImportReadGroupSetsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Operation
+ */
+ public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('import', array($params), "Google_Service_Genomics_Operation");
+ }
+ /**
+ * Updates a read group set.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * This method supports patch semantics. (readgroupsets.patch)
+ *
+ * @param string $readGroupSetId The ID of the read group set to be updated. The
+ * caller must have WRITE permissions to the dataset associated with this read
+ * group set.
+ * @param Google_Service_Genomics_ReadGroupSet $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask An optional mask specifying which fields to
+ * update. Supported fields:
+ *
+ * * name. * referenceSetId.
+ *
+ * Leaving `updateMask` unset is equivalent to specifying all mutable fields.
+ * @return Google_Service_Genomics_ReadGroupSet
+ */
+ public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array())
+ {
+ $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet");
+ }
+ /**
+ * Searches for read group sets matching the criteria.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/s
+ * chemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L135).
+ * (readgroupsets.search)
+ *
+ * @param Google_Service_Genomics_SearchReadGroupSetsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchReadGroupSetsResponse
+ */
+ public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReadgroupsetsCoveragebuckets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReadgroupsetsCoveragebuckets.php
new file mode 100644
index 00000000..6f17a4c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReadgroupsetsCoveragebuckets.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "coveragebuckets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $coveragebuckets = $genomicsService->coveragebuckets;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_ReadgroupsetsCoveragebuckets extends Google_Service_Resource
+{
+ /**
+ * Lists fixed width coverage buckets for a read group set, each of which
+ * correspond to a range of a reference sequence. Each bucket summarizes
+ * coverage information across its corresponding genomic range.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Coverage is defined as the number of reads which are aligned to a given base
+ * in the reference sequence. Coverage buckets are available at several
+ * precomputed bucket widths, enabling retrieval of various coverage 'zoom
+ * levels'. The caller must have READ permissions for the target read group set.
+ * (coveragebuckets.listReadgroupsetsCoveragebuckets)
+ *
+ * @param string $readGroupSetId Required. The ID of the read group set over
+ * which coverage is requested.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string targetBucketWidth The desired width of each reported
+ * coverage bucket in base pairs. This will be rounded down to the nearest
+ * precomputed bucket width; the value of which is returned as `bucketWidth` in
+ * the response. Defaults to infinity (each bucket spans an entire reference
+ * sequence) or the length of the target range, if specified. The smallest
+ * precomputed `bucketWidth` is currently 2048 base pairs; this is subject to
+ * change.
+ * @opt_param string referenceName The name of the reference to query, within
+ * the reference set associated with this query. Optional.
+ * @opt_param string end The end position of the range on the reference, 0-based
+ * exclusive. If specified, `referenceName` must also be specified. If unset or
+ * 0, defaults to the length of the reference.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of `nextPageToken` from the previous response.
+ * @opt_param int pageSize The maximum number of results to return in a single
+ * page. If unspecified, defaults to 1024. The maximum value is 2048.
+ * @opt_param string start The start position of the range on the reference,
+ * 0-based inclusive. If specified, `referenceName` must also be specified.
+ * Defaults to 0.
+ * @return Google_Service_Genomics_ListCoverageBucketsResponse
+ */
+ public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array())
+ {
+ $params = array('readGroupSetId' => $readGroupSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Reads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Reads.php
new file mode 100644
index 00000000..a900fa94
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Reads.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reads" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $reads = $genomicsService->reads;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Reads extends Google_Service_Resource
+{
+ /**
+ * Gets a list of reads for one or more read group sets.
+ *
+ * For the definitions of read group sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Reads search operates over a genomic coordinate space of reference sequence &
+ * position defined over the reference sequences to which the requested read
+ * group sets are aligned.
+ *
+ * If a target positional range is specified, search returns all reads whose
+ * alignment to the reference genome overlap the range. A query which specifies
+ * only read group set IDs yields all reads in those read group sets, including
+ * unmapped reads.
+ *
+ * All reads returned (including reads on subsequent pages) are ordered by
+ * genomic coordinate (by reference sequence, then position). Reads with
+ * equivalent genomic coordinates are returned in an unspecified order. This
+ * order is consistent, such that two queries for the same content (regardless
+ * of page size) yield reads in the same order across their respective streams
+ * of paginated responses.
+ *
+ * Implements [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/b
+ * lob/v0.5.1/src/main/resources/avro/readmethods.avdl#L85). (reads.search)
+ *
+ * @param Google_Service_Genomics_SearchReadsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchReadsResponse
+ */
+ public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/References.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/References.php
new file mode 100644
index 00000000..f52fd8f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/References.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "references" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $references = $genomicsService->references;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_References extends Google_Service_Resource
+{
+ /**
+ * Gets a reference.
+ *
+ * For the definitions of references and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/
+ * blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L158).
+ * (references.get)
+ *
+ * @param string $referenceId The ID of the reference.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Reference
+ */
+ public function get($referenceId, $optParams = array())
+ {
+ $params = array('referenceId' => $referenceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_Reference");
+ }
+ /**
+ * Searches for references which match the given criteria.
+ *
+ * For the definitions of references and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/sche
+ * mas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L146).
+ * (references.search)
+ *
+ * @param Google_Service_Genomics_SearchReferencesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchReferencesResponse
+ */
+ public function search(Google_Service_Genomics_SearchReferencesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchReferencesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php
new file mode 100644
index 00000000..0e425078
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/ReferencesBases.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "bases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $bases = $genomicsService->bases;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_ReferencesBases extends Google_Service_Resource
+{
+ /**
+ * Lists the bases in a reference, optionally restricted to a range.
+ *
+ * For the definitions of references and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/sch
+ * emas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221).
+ * (bases.listReferencesBases)
+ *
+ * @param string $referenceId The ID of the reference.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of `nextPageToken` from the previous response.
+ * @opt_param int pageSize The maximum number of bases to return in a single
+ * page. If unspecified, defaults to 200Kbp (kilo base pairs). The maximum value
+ * is 10Mbp (mega base pairs).
+ * @opt_param string start The start position (0-based) of this query. Defaults
+ * to 0.
+ * @opt_param string end The end position (0-based, exclusive) of this query.
+ * Defaults to the length of this reference.
+ * @return Google_Service_Genomics_ListBasesResponse
+ */
+ public function listReferencesBases($referenceId, $optParams = array())
+ {
+ $params = array('referenceId' => $referenceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Genomics_ListBasesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Referencesets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Referencesets.php
new file mode 100644
index 00000000..4b5df535
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Referencesets.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "referencesets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $referencesets = $genomicsService->referencesets;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Referencesets extends Google_Service_Resource
+{
+ /**
+ * Gets a reference set.
+ *
+ * For the definitions of references and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schem
+ * as/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L83).
+ * (referencesets.get)
+ *
+ * @param string $referenceSetId The ID of the reference set.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_ReferenceSet
+ */
+ public function get($referenceSetId, $optParams = array())
+ {
+ $params = array('referenceSetId' => $referenceSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_ReferenceSet");
+ }
+ /**
+ * Searches for reference sets which match the given criteria.
+ *
+ * For the definitions of references and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/s
+ * chemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L71)
+ * (referencesets.search)
+ *
+ * @param Google_Service_Genomics_SearchReferenceSetsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchReferenceSetsResponse
+ */
+ public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchReferenceSetsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variants.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variants.php
new file mode 100644
index 00000000..6a13199b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variants.php
@@ -0,0 +1,213 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "variants" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $variants = $genomicsService->variants;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Variants extends Google_Service_Resource
+{
+ /**
+ * Creates a new variant.
+ *
+ * For the definitions of variants and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (variants.create)
+ *
+ * @param Google_Service_Genomics_Variant $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Variant
+ */
+ public function create(Google_Service_Genomics_Variant $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_Variant");
+ }
+ /**
+ * Deletes a variant.
+ *
+ * For the definitions of variants and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (variants.delete)
+ *
+ * @param string $variantId The ID of the variant to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function delete($variantId, $optParams = array())
+ {
+ $params = array('variantId' => $variantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Gets a variant by ID.
+ *
+ * For the definitions of variants and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (variants.get)
+ *
+ * @param string $variantId The ID of the variant.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Variant
+ */
+ public function get($variantId, $optParams = array())
+ {
+ $params = array('variantId' => $variantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_Variant");
+ }
+ /**
+ * Creates variant data by asynchronously importing the provided information.
+ *
+ * For the definitions of variant sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * The variants for import will be merged with any existing variant that matches
+ * its reference sequence, start, end, reference bases, and alternative bases.
+ * If no such variant exists, a new one will be created.
+ *
+ * When variants are merged, the call information from the new variant is added
+ * to the existing variant, and Variant info fields are merged as specified in
+ * infoMergeConfig. As a special case, for single-sample VCF files, QUAL and
+ * FILTER fields will be moved to the call level; these are sometimes
+ * interpreted in a call-specific context. Imported VCF headers are appended to
+ * the metadata already in a variant set. (variants.import)
+ *
+ * @param Google_Service_Genomics_ImportVariantsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Operation
+ */
+ public function import(Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('import', array($params), "Google_Service_Genomics_Operation");
+ }
+ /**
+ * Merges the given variants with existing variants.
+ *
+ * For the definitions of variants and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Each variant will be merged with an existing variant that matches its
+ * reference sequence, start, end, reference bases, and alternative bases. If no
+ * such variant exists, a new one will be created.
+ *
+ * When variants are merged, the call information from the new variant is added
+ * to the existing variant. Variant info fields are merged as specified in the
+ * infoMergeConfig field of the MergeVariantsRequest.
+ *
+ * Please exercise caution when using this method! It is easy to introduce
+ * mistakes in existing variants and difficult to back out of them. For
+ * example, suppose you were trying to merge a new variant with an existing one
+ * and both variants contain calls that belong to callsets with the same callset
+ * ID.
+ *
+ * // Existing variant - irrelevant fields trimmed for clarity {
+ * "variantSetId": "10473108253681171589", "referenceName": "1",
+ * "start": "10582", "referenceBases": "G", "alternateBases": [
+ * "A" ], "calls": [ { "callSetId":
+ * "10473108253681171589-0", "callSetName": "CALLSET0",
+ * "genotype": [ 0, 1 ],
+ * } ] }
+ *
+ * // New variant with conflicting call information {
+ * "variantSetId": "10473108253681171589", "referenceName": "1",
+ * "start": "10582", "referenceBases": "G", "alternateBases": [
+ * "A" ], "calls": [ { "callSetId":
+ * "10473108253681171589-0", "callSetName": "CALLSET0",
+ * "genotype": [ 1, 1 ],
+ * } ] }
+ *
+ * The resulting merged variant would overwrite the existing calls with those
+ * from the new variant:
+ *
+ * { "variantSetId": "10473108253681171589",
+ * "referenceName": "1", "start": "10582", "referenceBases":
+ * "G", "alternateBases": [ "A" ], "calls":
+ * [ { "callSetId": "10473108253681171589-0",
+ * "callSetName": "CALLSET0", "genotype": [
+ * 1, 1 ], } ] }
+ *
+ * This may be the desired outcome, but it is up to the user to determine if if
+ * that is indeed the case. (variants.merge)
+ *
+ * @param Google_Service_Genomics_MergeVariantsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function merge(Google_Service_Genomics_MergeVariantsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('merge', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Updates a variant.
+ *
+ * For the definitions of variants and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * This method supports patch semantics. Returns the modified variant without
+ * its calls. (variants.patch)
+ *
+ * @param string $variantId The ID of the variant to be updated.
+ * @param Google_Service_Genomics_Variant $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask An optional mask specifying which fields to
+ * update. At this time, mutable fields are names and info. Acceptable values
+ * are "names" and "info". If unspecified, all mutable fields will be updated.
+ * @return Google_Service_Genomics_Variant
+ */
+ public function patch($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array())
+ {
+ $params = array('variantId' => $variantId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Genomics_Variant");
+ }
+ /**
+ * Gets a list of variants matching the criteria.
+ *
+ * For the definitions of variants and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schema
+ * s/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L126).
+ * (variants.search)
+ *
+ * @param Google_Service_Genomics_SearchVariantsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchVariantsResponse
+ */
+ public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variantsets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variantsets.php
new file mode 100644
index 00000000..915be9bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Resource/Variantsets.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "variantsets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $variantsets = $genomicsService->variantsets;
+ * </code>
+ */
+class Google_Service_Genomics_Resource_Variantsets extends Google_Service_Resource
+{
+ /**
+ * Creates a new variant set.
+ *
+ * For the definitions of variant sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * The provided variant set must have a valid `datasetId` set - all other fields
+ * are optional. Note that the `id` field will be ignored, as this is assigned
+ * by the server. (variantsets.create)
+ *
+ * @param Google_Service_Genomics_VariantSet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_VariantSet
+ */
+ public function create(Google_Service_Genomics_VariantSet $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_VariantSet");
+ }
+ /**
+ * Deletes a variant set including all variants, call sets, and calls within.
+ * This is not reversible.
+ *
+ * For the definitions of variant sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (variantsets.delete)
+ *
+ * @param string $variantSetId The ID of the variant set to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_GenomicsEmpty
+ */
+ public function delete($variantSetId, $optParams = array())
+ {
+ $params = array('variantSetId' => $variantSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Genomics_GenomicsEmpty");
+ }
+ /**
+ * Exports variant set data to an external destination.
+ *
+ * For the definitions of variant sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (variantsets.export)
+ *
+ * @param string $variantSetId Required. The ID of the variant set that contains
+ * variant data which should be exported. The caller must have READ access to
+ * this variant set.
+ * @param Google_Service_Genomics_ExportVariantSetRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Operation
+ */
+ public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRequest $postBody, $optParams = array())
+ {
+ $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('export', array($params), "Google_Service_Genomics_Operation");
+ }
+ /**
+ * Gets a variant set by ID.
+ *
+ * For the definitions of variant sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (variantsets.get)
+ *
+ * @param string $variantSetId Required. The ID of the variant set.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_VariantSet
+ */
+ public function get($variantSetId, $optParams = array())
+ {
+ $params = array('variantSetId' => $variantSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_VariantSet");
+ }
+ /**
+ * Updates a variant set using patch semantics.
+ *
+ * For the definitions of variant sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics) (variantsets.patch)
+ *
+ * @param string $variantSetId The ID of the variant to be updated (must already
+ * exist).
+ * @param Google_Service_Genomics_VariantSet $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string updateMask An optional mask specifying which fields to
+ * update. Supported fields:
+ *
+ * * metadata. * name. * description.
+ *
+ * Leaving `updateMask` unset is equivalent to specifying all mutable fields.
+ * @return Google_Service_Genomics_VariantSet
+ */
+ public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array())
+ {
+ $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Genomics_VariantSet");
+ }
+ /**
+ * Returns a list of all variant sets matching search criteria.
+ *
+ * For the definitions of variant sets and other genomics resources, see
+ * [Fundamentals of Google Genomics](https://cloud.google.com/genomics
+ * /fundamentals-of-google-genomics)
+ *
+ * Implements [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/sch
+ * emas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L49).
+ * (variantsets.search)
+ *
+ * @param Google_Service_Genomics_SearchVariantSetsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchVariantSetsResponse
+ */
+ public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/RuntimeMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/RuntimeMetadata.php
new file mode 100644
index 00000000..d23b4f60
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/RuntimeMetadata.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_RuntimeMetadata extends Google_Model
+{
+ protected $computeEngineType = 'Google_Service_Genomics_ComputeEngine';
+ protected $computeEngineDataType = '';
+
+ public function setComputeEngine(Google_Service_Genomics_ComputeEngine $computeEngine)
+ {
+ $this->computeEngine = $computeEngine;
+ }
+ public function getComputeEngine()
+ {
+ return $this->computeEngine;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsRequest.php
new file mode 100644
index 00000000..59198e4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsRequest.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchAnnotationSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'types';
+ public $datasetIds;
+ public $name;
+ public $pageSize;
+ public $pageToken;
+ public $referenceSetId;
+ public $types;
+
+ public function setDatasetIds($datasetIds)
+ {
+ $this->datasetIds = $datasetIds;
+ }
+ public function getDatasetIds()
+ {
+ return $this->datasetIds;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsResponse.php
new file mode 100644
index 00000000..097be877
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationSetsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchAnnotationSetsResponse extends Google_Collection
+{
+ protected $collection_key = 'annotationSets';
+ protected $annotationSetsType = 'Google_Service_Genomics_AnnotationSet';
+ protected $annotationSetsDataType = 'array';
+ public $nextPageToken;
+
+ public function setAnnotationSets($annotationSets)
+ {
+ $this->annotationSets = $annotationSets;
+ }
+ public function getAnnotationSets()
+ {
+ return $this->annotationSets;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsRequest.php
new file mode 100644
index 00000000..e7451bd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsRequest.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchAnnotationsRequest extends Google_Collection
+{
+ protected $collection_key = 'annotationSetIds';
+ public $annotationSetIds;
+ public $end;
+ public $pageSize;
+ public $pageToken;
+ public $referenceId;
+ public $referenceName;
+ public $start;
+
+ public function setAnnotationSetIds($annotationSetIds)
+ {
+ $this->annotationSetIds = $annotationSetIds;
+ }
+ public function getAnnotationSetIds()
+ {
+ return $this->annotationSetIds;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setReferenceId($referenceId)
+ {
+ $this->referenceId = $referenceId;
+ }
+ public function getReferenceId()
+ {
+ return $this->referenceId;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsResponse.php
new file mode 100644
index 00000000..4b8d8021
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchAnnotationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchAnnotationsResponse extends Google_Collection
+{
+ protected $collection_key = 'annotations';
+ protected $annotationsType = 'Google_Service_Genomics_Annotation';
+ protected $annotationsDataType = 'array';
+ public $nextPageToken;
+
+ public function setAnnotations($annotations)
+ {
+ $this->annotations = $annotations;
+ }
+ public function getAnnotations()
+ {
+ return $this->annotations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsRequest.php
new file mode 100644
index 00000000..0ad65657
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'variantSetIds';
+ public $name;
+ public $pageSize;
+ public $pageToken;
+ public $variantSetIds;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setVariantSetIds($variantSetIds)
+ {
+ $this->variantSetIds = $variantSetIds;
+ }
+ public function getVariantSetIds()
+ {
+ return $this->variantSetIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsResponse.php
new file mode 100644
index 00000000..10ee9637
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchCallSetsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchCallSetsResponse extends Google_Collection
+{
+ protected $collection_key = 'callSets';
+ protected $callSetsType = 'Google_Service_Genomics_CallSet';
+ protected $callSetsDataType = 'array';
+ public $nextPageToken;
+
+ public function setCallSets($callSets)
+ {
+ $this->callSets = $callSets;
+ }
+ public function getCallSets()
+ {
+ return $this->callSets;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsRequest.php
new file mode 100644
index 00000000..da351ed3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'datasetIds';
+ public $datasetIds;
+ public $name;
+ public $pageSize;
+ public $pageToken;
+
+ public function setDatasetIds($datasetIds)
+ {
+ $this->datasetIds = $datasetIds;
+ }
+ public function getDatasetIds()
+ {
+ return $this->datasetIds;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsResponse.php
new file mode 100644
index 00000000..6251bb7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadGroupSetsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collection
+{
+ protected $collection_key = 'readGroupSets';
+ public $nextPageToken;
+ protected $readGroupSetsType = 'Google_Service_Genomics_ReadGroupSet';
+ protected $readGroupSetsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setReadGroupSets($readGroupSets)
+ {
+ $this->readGroupSets = $readGroupSets;
+ }
+ public function getReadGroupSets()
+ {
+ return $this->readGroupSets;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsRequest.php
new file mode 100644
index 00000000..a72a4ea7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsRequest.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReadsRequest extends Google_Collection
+{
+ protected $collection_key = 'readGroupSetIds';
+ public $end;
+ public $pageSize;
+ public $pageToken;
+ public $readGroupIds;
+ public $readGroupSetIds;
+ public $referenceName;
+ public $start;
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setReadGroupIds($readGroupIds)
+ {
+ $this->readGroupIds = $readGroupIds;
+ }
+ public function getReadGroupIds()
+ {
+ return $this->readGroupIds;
+ }
+ public function setReadGroupSetIds($readGroupSetIds)
+ {
+ $this->readGroupSetIds = $readGroupSetIds;
+ }
+ public function getReadGroupSetIds()
+ {
+ return $this->readGroupSetIds;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsResponse.php
new file mode 100644
index 00000000..841ffa57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReadsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReadsResponse extends Google_Collection
+{
+ protected $collection_key = 'alignments';
+ protected $alignmentsType = 'Google_Service_Genomics_Read';
+ protected $alignmentsDataType = 'array';
+ public $nextPageToken;
+
+ public function setAlignments($alignments)
+ {
+ $this->alignments = $alignments;
+ }
+ public function getAlignments()
+ {
+ return $this->alignments;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsRequest.php
new file mode 100644
index 00000000..0d984611
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'md5checksums';
+ public $accessions;
+ public $assemblyId;
+ public $md5checksums;
+ public $pageSize;
+ public $pageToken;
+
+ public function setAccessions($accessions)
+ {
+ $this->accessions = $accessions;
+ }
+ public function getAccessions()
+ {
+ return $this->accessions;
+ }
+ public function setAssemblyId($assemblyId)
+ {
+ $this->assemblyId = $assemblyId;
+ }
+ public function getAssemblyId()
+ {
+ return $this->assemblyId;
+ }
+ public function setMd5checksums($md5checksums)
+ {
+ $this->md5checksums = $md5checksums;
+ }
+ public function getMd5checksums()
+ {
+ return $this->md5checksums;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsResponse.php
new file mode 100644
index 00000000..efa61b36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferenceSetsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collection
+{
+ protected $collection_key = 'referenceSets';
+ public $nextPageToken;
+ protected $referenceSetsType = 'Google_Service_Genomics_ReferenceSet';
+ protected $referenceSetsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setReferenceSets($referenceSets)
+ {
+ $this->referenceSets = $referenceSets;
+ }
+ public function getReferenceSets()
+ {
+ return $this->referenceSets;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesRequest.php
new file mode 100644
index 00000000..ae49629b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReferencesRequest extends Google_Collection
+{
+ protected $collection_key = 'md5checksums';
+ public $accessions;
+ public $md5checksums;
+ public $pageSize;
+ public $pageToken;
+ public $referenceSetId;
+
+ public function setAccessions($accessions)
+ {
+ $this->accessions = $accessions;
+ }
+ public function getAccessions()
+ {
+ return $this->accessions;
+ }
+ public function setMd5checksums($md5checksums)
+ {
+ $this->md5checksums = $md5checksums;
+ }
+ public function getMd5checksums()
+ {
+ return $this->md5checksums;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesResponse.php
new file mode 100644
index 00000000..2d3e9603
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchReferencesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchReferencesResponse extends Google_Collection
+{
+ protected $collection_key = 'references';
+ public $nextPageToken;
+ protected $referencesType = 'Google_Service_Genomics_Reference';
+ protected $referencesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setReferences($references)
+ {
+ $this->references = $references;
+ }
+ public function getReferences()
+ {
+ return $this->references;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsRequest.php
new file mode 100644
index 00000000..f58dfd49
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchVariantSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'datasetIds';
+ public $datasetIds;
+ public $pageSize;
+ public $pageToken;
+
+ public function setDatasetIds($datasetIds)
+ {
+ $this->datasetIds = $datasetIds;
+ }
+ public function getDatasetIds()
+ {
+ return $this->datasetIds;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsResponse.php
new file mode 100644
index 00000000..0636fc6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantSetsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchVariantSetsResponse extends Google_Collection
+{
+ protected $collection_key = 'variantSets';
+ public $nextPageToken;
+ protected $variantSetsType = 'Google_Service_Genomics_VariantSet';
+ protected $variantSetsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setVariantSets($variantSets)
+ {
+ $this->variantSets = $variantSets;
+ }
+ public function getVariantSets()
+ {
+ return $this->variantSets;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsRequest.php
new file mode 100644
index 00000000..bf278baa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsRequest.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchVariantsRequest extends Google_Collection
+{
+ protected $collection_key = 'variantSetIds';
+ public $callSetIds;
+ public $end;
+ public $maxCalls;
+ public $pageSize;
+ public $pageToken;
+ public $referenceName;
+ public $start;
+ public $variantName;
+ public $variantSetIds;
+
+ public function setCallSetIds($callSetIds)
+ {
+ $this->callSetIds = $callSetIds;
+ }
+ public function getCallSetIds()
+ {
+ return $this->callSetIds;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setMaxCalls($maxCalls)
+ {
+ $this->maxCalls = $maxCalls;
+ }
+ public function getMaxCalls()
+ {
+ return $this->maxCalls;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setVariantName($variantName)
+ {
+ $this->variantName = $variantName;
+ }
+ public function getVariantName()
+ {
+ return $this->variantName;
+ }
+ public function setVariantSetIds($variantSetIds)
+ {
+ $this->variantSetIds = $variantSetIds;
+ }
+ public function getVariantSetIds()
+ {
+ return $this->variantSetIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsResponse.php
new file mode 100644
index 00000000..ec6f7fc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SearchVariantsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SearchVariantsResponse extends Google_Collection
+{
+ protected $collection_key = 'variants';
+ public $nextPageToken;
+ protected $variantsType = 'Google_Service_Genomics_Variant';
+ protected $variantsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setVariants($variants)
+ {
+ $this->variants = $variants;
+ }
+ public function getVariants()
+ {
+ return $this->variants;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SetIamPolicyRequest.php
new file mode 100644
index 00000000..e5196fd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/SetIamPolicyRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_Genomics_Policy';
+ protected $policyDataType = '';
+
+ public function setPolicy(Google_Service_Genomics_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Status.php
new file mode 100644
index 00000000..2d41b8ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsRequest.php
new file mode 100644
index 00000000..7b770127
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsRequest.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_StreamReadsRequest extends Google_Model
+{
+ public $end;
+ public $projectId;
+ public $readGroupSetId;
+ public $referenceName;
+ public $shard;
+ public $start;
+ public $totalShards;
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setReadGroupSetId($readGroupSetId)
+ {
+ $this->readGroupSetId = $readGroupSetId;
+ }
+ public function getReadGroupSetId()
+ {
+ return $this->readGroupSetId;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setShard($shard)
+ {
+ $this->shard = $shard;
+ }
+ public function getShard()
+ {
+ return $this->shard;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setTotalShards($totalShards)
+ {
+ $this->totalShards = $totalShards;
+ }
+ public function getTotalShards()
+ {
+ return $this->totalShards;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsResponse.php
new file mode 100644
index 00000000..e970e0d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamReadsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_StreamReadsResponse extends Google_Collection
+{
+ protected $collection_key = 'alignments';
+ protected $alignmentsType = 'Google_Service_Genomics_Read';
+ protected $alignmentsDataType = 'array';
+
+ public function setAlignments($alignments)
+ {
+ $this->alignments = $alignments;
+ }
+ public function getAlignments()
+ {
+ return $this->alignments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsRequest.php
new file mode 100644
index 00000000..b0671dd2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsRequest.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_StreamVariantsRequest extends Google_Collection
+{
+ protected $collection_key = 'callSetIds';
+ public $callSetIds;
+ public $end;
+ public $projectId;
+ public $referenceName;
+ public $start;
+ public $variantSetId;
+
+ public function setCallSetIds($callSetIds)
+ {
+ $this->callSetIds = $callSetIds;
+ }
+ public function getCallSetIds()
+ {
+ return $this->callSetIds;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setVariantSetId($variantSetId)
+ {
+ $this->variantSetId = $variantSetId;
+ }
+ public function getVariantSetId()
+ {
+ return $this->variantSetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsResponse.php
new file mode 100644
index 00000000..29e56448
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/StreamVariantsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_StreamVariantsResponse extends Google_Collection
+{
+ protected $collection_key = 'variants';
+ protected $variantsType = 'Google_Service_Genomics_Variant';
+ protected $variantsDataType = 'array';
+
+ public function setVariants($variants)
+ {
+ $this->variants = $variants;
+ }
+ public function getVariants()
+ {
+ return $this->variants;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..0700c68c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..acb47ab5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Transcript.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Transcript.php
new file mode 100644
index 00000000..e82dfd28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Transcript.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Transcript extends Google_Collection
+{
+ protected $collection_key = 'exons';
+ protected $codingSequenceType = 'Google_Service_Genomics_CodingSequence';
+ protected $codingSequenceDataType = '';
+ protected $exonsType = 'Google_Service_Genomics_Exon';
+ protected $exonsDataType = 'array';
+ public $geneId;
+
+ public function setCodingSequence(Google_Service_Genomics_CodingSequence $codingSequence)
+ {
+ $this->codingSequence = $codingSequence;
+ }
+ public function getCodingSequence()
+ {
+ return $this->codingSequence;
+ }
+ public function setExons($exons)
+ {
+ $this->exons = $exons;
+ }
+ public function getExons()
+ {
+ return $this->exons;
+ }
+ public function setGeneId($geneId)
+ {
+ $this->geneId = $geneId;
+ }
+ public function getGeneId()
+ {
+ return $this->geneId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/UndeleteDatasetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/UndeleteDatasetRequest.php
new file mode 100644
index 00000000..4a19f383
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/UndeleteDatasetRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_UndeleteDatasetRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Variant.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Variant.php
new file mode 100644
index 00000000..0cea18ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/Variant.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_Variant extends Google_Collection
+{
+ protected $collection_key = 'names';
+ public $alternateBases;
+ protected $callsType = 'Google_Service_Genomics_VariantCall';
+ protected $callsDataType = 'array';
+ public $created;
+ public $end;
+ public $filter;
+ public $id;
+ public $info;
+ public $names;
+ public $quality;
+ public $referenceBases;
+ public $referenceName;
+ public $start;
+ public $variantSetId;
+
+ public function setAlternateBases($alternateBases)
+ {
+ $this->alternateBases = $alternateBases;
+ }
+ public function getAlternateBases()
+ {
+ return $this->alternateBases;
+ }
+ public function setCalls($calls)
+ {
+ $this->calls = $calls;
+ }
+ public function getCalls()
+ {
+ return $this->calls;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setNames($names)
+ {
+ $this->names = $names;
+ }
+ public function getNames()
+ {
+ return $this->names;
+ }
+ public function setQuality($quality)
+ {
+ $this->quality = $quality;
+ }
+ public function getQuality()
+ {
+ return $this->quality;
+ }
+ public function setReferenceBases($referenceBases)
+ {
+ $this->referenceBases = $referenceBases;
+ }
+ public function getReferenceBases()
+ {
+ return $this->referenceBases;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setVariantSetId($variantSetId)
+ {
+ $this->variantSetId = $variantSetId;
+ }
+ public function getVariantSetId()
+ {
+ return $this->variantSetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantAnnotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantAnnotation.php
new file mode 100644
index 00000000..b82f7530
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantAnnotation.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_VariantAnnotation extends Google_Collection
+{
+ protected $collection_key = 'transcriptIds';
+ public $alternateBases;
+ public $clinicalSignificance;
+ protected $conditionsType = 'Google_Service_Genomics_ClinicalCondition';
+ protected $conditionsDataType = 'array';
+ public $effect;
+ public $geneId;
+ public $transcriptIds;
+ public $type;
+
+ public function setAlternateBases($alternateBases)
+ {
+ $this->alternateBases = $alternateBases;
+ }
+ public function getAlternateBases()
+ {
+ return $this->alternateBases;
+ }
+ public function setClinicalSignificance($clinicalSignificance)
+ {
+ $this->clinicalSignificance = $clinicalSignificance;
+ }
+ public function getClinicalSignificance()
+ {
+ return $this->clinicalSignificance;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setEffect($effect)
+ {
+ $this->effect = $effect;
+ }
+ public function getEffect()
+ {
+ return $this->effect;
+ }
+ public function setGeneId($geneId)
+ {
+ $this->geneId = $geneId;
+ }
+ public function getGeneId()
+ {
+ return $this->geneId;
+ }
+ public function setTranscriptIds($transcriptIds)
+ {
+ $this->transcriptIds = $transcriptIds;
+ }
+ public function getTranscriptIds()
+ {
+ return $this->transcriptIds;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantCall.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantCall.php
new file mode 100644
index 00000000..c96a2d8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantCall.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_VariantCall extends Google_Collection
+{
+ protected $collection_key = 'genotypeLikelihood';
+ public $callSetId;
+ public $callSetName;
+ public $genotype;
+ public $genotypeLikelihood;
+ public $info;
+ public $phaseset;
+
+ public function setCallSetId($callSetId)
+ {
+ $this->callSetId = $callSetId;
+ }
+ public function getCallSetId()
+ {
+ return $this->callSetId;
+ }
+ public function setCallSetName($callSetName)
+ {
+ $this->callSetName = $callSetName;
+ }
+ public function getCallSetName()
+ {
+ return $this->callSetName;
+ }
+ public function setGenotype($genotype)
+ {
+ $this->genotype = $genotype;
+ }
+ public function getGenotype()
+ {
+ return $this->genotype;
+ }
+ public function setGenotypeLikelihood($genotypeLikelihood)
+ {
+ $this->genotypeLikelihood = $genotypeLikelihood;
+ }
+ public function getGenotypeLikelihood()
+ {
+ return $this->genotypeLikelihood;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setPhaseset($phaseset)
+ {
+ $this->phaseset = $phaseset;
+ }
+ public function getPhaseset()
+ {
+ return $this->phaseset;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSet.php
new file mode 100644
index 00000000..364a09f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSet.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_VariantSet extends Google_Collection
+{
+ protected $collection_key = 'referenceBounds';
+ public $datasetId;
+ public $description;
+ public $id;
+ protected $metadataType = 'Google_Service_Genomics_VariantSetMetadata';
+ protected $metadataDataType = 'array';
+ public $name;
+ protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound';
+ protected $referenceBoundsDataType = 'array';
+ public $referenceSetId;
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReferenceBounds($referenceBounds)
+ {
+ $this->referenceBounds = $referenceBounds;
+ }
+ public function getReferenceBounds()
+ {
+ return $this->referenceBounds;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSetMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSetMetadata.php
new file mode 100644
index 00000000..826352f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Genomics/VariantSetMetadata.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Genomics_VariantSetMetadata extends Google_Model
+{
+ public $description;
+ public $id;
+ public $info;
+ public $key;
+ public $number;
+ public $type;
+ public $value;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail.php
new file mode 100644
index 00000000..dcb38f38
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail.php
@@ -0,0 +1,1136 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Gmail (v1).
+ *
+ * <p>
+ * Access Gmail mailboxes including sending user email.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/gmail/api/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Gmail extends Google_Service
+{
+ /** Read, send, delete, and manage your email. */
+ const MAIL_GOOGLE_COM =
+ "https://mail.google.com/";
+ /** Manage drafts and send emails. */
+ const GMAIL_COMPOSE =
+ "https://www.googleapis.com/auth/gmail.compose";
+ /** Insert mail into your mailbox. */
+ const GMAIL_INSERT =
+ "https://www.googleapis.com/auth/gmail.insert";
+ /** Manage mailbox labels. */
+ const GMAIL_LABELS =
+ "https://www.googleapis.com/auth/gmail.labels";
+ /** View your email message metadata such as labels and headers, but not the email body. */
+ const GMAIL_METADATA =
+ "https://www.googleapis.com/auth/gmail.metadata";
+ /** View and modify but not delete your email. */
+ const GMAIL_MODIFY =
+ "https://www.googleapis.com/auth/gmail.modify";
+ /** View your emails messages and settings. */
+ const GMAIL_READONLY =
+ "https://www.googleapis.com/auth/gmail.readonly";
+ /** Send email on your behalf. */
+ const GMAIL_SEND =
+ "https://www.googleapis.com/auth/gmail.send";
+ /** Manage your basic mail settings. */
+ const GMAIL_SETTINGS_BASIC =
+ "https://www.googleapis.com/auth/gmail.settings.basic";
+ /** Manage your sensitive mail settings, including who can manage your mail. */
+ const GMAIL_SETTINGS_SHARING =
+ "https://www.googleapis.com/auth/gmail.settings.sharing";
+
+ public $users;
+ public $users_drafts;
+ public $users_history;
+ public $users_labels;
+ public $users_messages;
+ public $users_messages_attachments;
+ public $users_settings;
+ public $users_settings_filters;
+ public $users_settings_forwardingAddresses;
+ public $users_settings_sendAs;
+ public $users_settings_sendAs_smimeInfo;
+ public $users_threads;
+
+ /**
+ * Constructs the internal representation of the Gmail service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'gmail/v1/users/';
+ $this->version = 'v1';
+ $this->serviceName = 'gmail';
+
+ $this->users = new Google_Service_Gmail_Resource_Users(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'getProfile' => array(
+ 'path' => '{userId}/profile',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'stop' => array(
+ 'path' => '{userId}/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => '{userId}/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_drafts = new Google_Service_Gmail_Resource_UsersDrafts(
+ $this,
+ $this->serviceName,
+ 'drafts',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{userId}/drafts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{userId}/drafts/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/drafts/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/drafts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeSpamTrash' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'send' => array(
+ 'path' => '{userId}/drafts/send',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{userId}/drafts/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_history = new Google_Service_Gmail_Resource_UsersHistory(
+ $this,
+ $this->serviceName,
+ 'history',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{userId}/history',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyTypes' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'labelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startHistoryId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_labels = new Google_Service_Gmail_Resource_UsersLabels(
+ $this,
+ $this->serviceName,
+ 'labels',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{userId}/labels',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{userId}/labels/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/labels/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/labels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{userId}/labels/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{userId}/labels/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_messages = new Google_Service_Gmail_Resource_UsersMessages(
+ $this,
+ $this->serviceName,
+ 'messages',
+ array(
+ 'methods' => array(
+ 'batchDelete' => array(
+ 'path' => '{userId}/messages/batchDelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'batchModify' => array(
+ 'path' => '{userId}/messages/batchModify',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{userId}/messages/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/messages/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'metadataHeaders' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'import' => array(
+ 'path' => '{userId}/messages/import',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'internalDateSource' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'neverMarkSpam' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'processForCalendar' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{userId}/messages',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'internalDateSource' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/messages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeSpamTrash' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'labelIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'modify' => array(
+ 'path' => '{userId}/messages/{id}/modify',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'send' => array(
+ 'path' => '{userId}/messages/send',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'trash' => array(
+ 'path' => '{userId}/messages/{id}/trash',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'untrash' => array(
+ 'path' => '{userId}/messages/{id}/untrash',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_messages_attachments = new Google_Service_Gmail_Resource_UsersMessagesAttachments(
+ $this,
+ $this->serviceName,
+ 'attachments',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{userId}/messages/{messageId}/attachments/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'messageId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_settings = new Google_Service_Gmail_Resource_UsersSettings(
+ $this,
+ $this->serviceName,
+ 'settings',
+ array(
+ 'methods' => array(
+ 'getAutoForwarding' => array(
+ 'path' => '{userId}/settings/autoForwarding',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getImap' => array(
+ 'path' => '{userId}/settings/imap',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getPop' => array(
+ 'path' => '{userId}/settings/pop',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getVacation' => array(
+ 'path' => '{userId}/settings/vacation',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updateAutoForwarding' => array(
+ 'path' => '{userId}/settings/autoForwarding',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updateImap' => array(
+ 'path' => '{userId}/settings/imap',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updatePop' => array(
+ 'path' => '{userId}/settings/pop',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updateVacation' => array(
+ 'path' => '{userId}/settings/vacation',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_settings_filters = new Google_Service_Gmail_Resource_UsersSettingsFilters(
+ $this,
+ $this->serviceName,
+ 'filters',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{userId}/settings/filters',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{userId}/settings/filters/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/settings/filters/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/settings/filters',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_settings_forwardingAddresses = new Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses(
+ $this,
+ $this->serviceName,
+ 'forwardingAddresses',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{userId}/settings/forwardingAddresses',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{userId}/settings/forwardingAddresses/{forwardingEmail}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/settings/forwardingAddresses/{forwardingEmail}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'forwardingEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/settings/forwardingAddresses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_settings_sendAs = new Google_Service_Gmail_Resource_UsersSettingsSendAs(
+ $this,
+ $this->serviceName,
+ 'sendAs',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{userId}/settings/sendAs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/settings/sendAs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'verify' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}/verify',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_settings_sendAs_smimeInfo = new Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo(
+ $this,
+ $this->serviceName,
+ 'smimeInfo',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setDefault' => array(
+ 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sendAsEmail' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users_threads = new Google_Service_Gmail_Resource_UsersThreads(
+ $this,
+ $this->serviceName,
+ 'threads',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{userId}/threads/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{userId}/threads/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'metadataHeaders' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{userId}/threads',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeSpamTrash' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'labelIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'modify' => array(
+ 'path' => '{userId}/threads/{id}/modify',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'trash' => array(
+ 'path' => '{userId}/threads/{id}/trash',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'untrash' => array(
+ 'path' => '{userId}/threads/{id}/untrash',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php
new file mode 100644
index 00000000..ab1ea245
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_AutoForwarding extends Google_Model
+{
+ public $disposition;
+ public $emailAddress;
+ public $enabled;
+
+ public function setDisposition($disposition)
+ {
+ $this->disposition = $disposition;
+ }
+ public function getDisposition()
+ {
+ return $this->disposition;
+ }
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php
new file mode 100644
index 00000000..e8f0a8d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_BatchDeleteMessagesRequest extends Google_Collection
+{
+ protected $collection_key = 'ids';
+ public $ids;
+
+ public function setIds($ids)
+ {
+ $this->ids = $ids;
+ }
+ public function getIds()
+ {
+ return $this->ids;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php
new file mode 100644
index 00000000..ac6474c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_BatchModifyMessagesRequest extends Google_Collection
+{
+ protected $collection_key = 'removeLabelIds';
+ public $addLabelIds;
+ public $ids;
+ public $removeLabelIds;
+
+ public function setAddLabelIds($addLabelIds)
+ {
+ $this->addLabelIds = $addLabelIds;
+ }
+ public function getAddLabelIds()
+ {
+ return $this->addLabelIds;
+ }
+ public function setIds($ids)
+ {
+ $this->ids = $ids;
+ }
+ public function getIds()
+ {
+ return $this->ids;
+ }
+ public function setRemoveLabelIds($removeLabelIds)
+ {
+ $this->removeLabelIds = $removeLabelIds;
+ }
+ public function getRemoveLabelIds()
+ {
+ return $this->removeLabelIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Draft.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Draft.php
new file mode 100644
index 00000000..adcbce81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Draft.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_Draft extends Google_Model
+{
+ public $id;
+ protected $messageType = 'Google_Service_Gmail_Message';
+ protected $messageDataType = '';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMessage(Google_Service_Gmail_Message $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Filter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Filter.php
new file mode 100644
index 00000000..c0fb8455
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Filter.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_Filter extends Google_Model
+{
+ protected $actionType = 'Google_Service_Gmail_FilterAction';
+ protected $actionDataType = '';
+ protected $criteriaType = 'Google_Service_Gmail_FilterCriteria';
+ protected $criteriaDataType = '';
+ public $id;
+
+ public function setAction(Google_Service_Gmail_FilterAction $action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setCriteria(Google_Service_Gmail_FilterCriteria $criteria)
+ {
+ $this->criteria = $criteria;
+ }
+ public function getCriteria()
+ {
+ return $this->criteria;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php
new file mode 100644
index 00000000..2c2f7137
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_FilterAction extends Google_Collection
+{
+ protected $collection_key = 'removeLabelIds';
+ public $addLabelIds;
+ public $forward;
+ public $removeLabelIds;
+
+ public function setAddLabelIds($addLabelIds)
+ {
+ $this->addLabelIds = $addLabelIds;
+ }
+ public function getAddLabelIds()
+ {
+ return $this->addLabelIds;
+ }
+ public function setForward($forward)
+ {
+ $this->forward = $forward;
+ }
+ public function getForward()
+ {
+ return $this->forward;
+ }
+ public function setRemoveLabelIds($removeLabelIds)
+ {
+ $this->removeLabelIds = $removeLabelIds;
+ }
+ public function getRemoveLabelIds()
+ {
+ return $this->removeLabelIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php
new file mode 100644
index 00000000..fd8ea442
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_FilterCriteria extends Google_Model
+{
+ public $excludeChats;
+ public $from;
+ public $hasAttachment;
+ public $negatedQuery;
+ public $query;
+ public $size;
+ public $sizeComparison;
+ public $subject;
+ public $to;
+
+ public function setExcludeChats($excludeChats)
+ {
+ $this->excludeChats = $excludeChats;
+ }
+ public function getExcludeChats()
+ {
+ return $this->excludeChats;
+ }
+ public function setFrom($from)
+ {
+ $this->from = $from;
+ }
+ public function getFrom()
+ {
+ return $this->from;
+ }
+ public function setHasAttachment($hasAttachment)
+ {
+ $this->hasAttachment = $hasAttachment;
+ }
+ public function getHasAttachment()
+ {
+ return $this->hasAttachment;
+ }
+ public function setNegatedQuery($negatedQuery)
+ {
+ $this->negatedQuery = $negatedQuery;
+ }
+ public function getNegatedQuery()
+ {
+ return $this->negatedQuery;
+ }
+ public function setQuery($query)
+ {
+ $this->query = $query;
+ }
+ public function getQuery()
+ {
+ return $this->query;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSizeComparison($sizeComparison)
+ {
+ $this->sizeComparison = $sizeComparison;
+ }
+ public function getSizeComparison()
+ {
+ return $this->sizeComparison;
+ }
+ public function setSubject($subject)
+ {
+ $this->subject = $subject;
+ }
+ public function getSubject()
+ {
+ return $this->subject;
+ }
+ public function setTo($to)
+ {
+ $this->to = $to;
+ }
+ public function getTo()
+ {
+ return $this->to;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php
new file mode 100644
index 00000000..30259a5b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ForwardingAddress extends Google_Model
+{
+ public $forwardingEmail;
+ public $verificationStatus;
+
+ public function setForwardingEmail($forwardingEmail)
+ {
+ $this->forwardingEmail = $forwardingEmail;
+ }
+ public function getForwardingEmail()
+ {
+ return $this->forwardingEmail;
+ }
+ public function setVerificationStatus($verificationStatus)
+ {
+ $this->verificationStatus = $verificationStatus;
+ }
+ public function getVerificationStatus()
+ {
+ return $this->verificationStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/History.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/History.php
new file mode 100644
index 00000000..c94fbacb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/History.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_History extends Google_Collection
+{
+ protected $collection_key = 'messagesDeleted';
+ public $id;
+ protected $labelsAddedType = 'Google_Service_Gmail_HistoryLabelAdded';
+ protected $labelsAddedDataType = 'array';
+ protected $labelsRemovedType = 'Google_Service_Gmail_HistoryLabelRemoved';
+ protected $labelsRemovedDataType = 'array';
+ protected $messagesType = 'Google_Service_Gmail_Message';
+ protected $messagesDataType = 'array';
+ protected $messagesAddedType = 'Google_Service_Gmail_HistoryMessageAdded';
+ protected $messagesAddedDataType = 'array';
+ protected $messagesDeletedType = 'Google_Service_Gmail_HistoryMessageDeleted';
+ protected $messagesDeletedDataType = 'array';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLabelsAdded($labelsAdded)
+ {
+ $this->labelsAdded = $labelsAdded;
+ }
+ public function getLabelsAdded()
+ {
+ return $this->labelsAdded;
+ }
+ public function setLabelsRemoved($labelsRemoved)
+ {
+ $this->labelsRemoved = $labelsRemoved;
+ }
+ public function getLabelsRemoved()
+ {
+ return $this->labelsRemoved;
+ }
+ public function setMessages($messages)
+ {
+ $this->messages = $messages;
+ }
+ public function getMessages()
+ {
+ return $this->messages;
+ }
+ public function setMessagesAdded($messagesAdded)
+ {
+ $this->messagesAdded = $messagesAdded;
+ }
+ public function getMessagesAdded()
+ {
+ return $this->messagesAdded;
+ }
+ public function setMessagesDeleted($messagesDeleted)
+ {
+ $this->messagesDeleted = $messagesDeleted;
+ }
+ public function getMessagesDeleted()
+ {
+ return $this->messagesDeleted;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php
new file mode 100644
index 00000000..98af97c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_HistoryLabelAdded extends Google_Collection
+{
+ protected $collection_key = 'labelIds';
+ public $labelIds;
+ protected $messageType = 'Google_Service_Gmail_Message';
+ protected $messageDataType = '';
+
+ public function setLabelIds($labelIds)
+ {
+ $this->labelIds = $labelIds;
+ }
+ public function getLabelIds()
+ {
+ return $this->labelIds;
+ }
+ public function setMessage(Google_Service_Gmail_Message $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php
new file mode 100644
index 00000000..8bba31ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_HistoryLabelRemoved extends Google_Collection
+{
+ protected $collection_key = 'labelIds';
+ public $labelIds;
+ protected $messageType = 'Google_Service_Gmail_Message';
+ protected $messageDataType = '';
+
+ public function setLabelIds($labelIds)
+ {
+ $this->labelIds = $labelIds;
+ }
+ public function getLabelIds()
+ {
+ return $this->labelIds;
+ }
+ public function setMessage(Google_Service_Gmail_Message $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php
new file mode 100644
index 00000000..28e5aecc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_HistoryMessageAdded extends Google_Model
+{
+ protected $messageType = 'Google_Service_Gmail_Message';
+ protected $messageDataType = '';
+
+ public function setMessage(Google_Service_Gmail_Message $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php
new file mode 100644
index 00000000..d8ecf450
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_HistoryMessageDeleted extends Google_Model
+{
+ protected $messageType = 'Google_Service_Gmail_Message';
+ protected $messageDataType = '';
+
+ public function setMessage(Google_Service_Gmail_Message $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php
new file mode 100644
index 00000000..8f467f93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ImapSettings extends Google_Model
+{
+ public $autoExpunge;
+ public $enabled;
+ public $expungeBehavior;
+ public $maxFolderSize;
+
+ public function setAutoExpunge($autoExpunge)
+ {
+ $this->autoExpunge = $autoExpunge;
+ }
+ public function getAutoExpunge()
+ {
+ return $this->autoExpunge;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setExpungeBehavior($expungeBehavior)
+ {
+ $this->expungeBehavior = $expungeBehavior;
+ }
+ public function getExpungeBehavior()
+ {
+ return $this->expungeBehavior;
+ }
+ public function setMaxFolderSize($maxFolderSize)
+ {
+ $this->maxFolderSize = $maxFolderSize;
+ }
+ public function getMaxFolderSize()
+ {
+ return $this->maxFolderSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Label.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Label.php
new file mode 100644
index 00000000..9595a0b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Label.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_Label extends Google_Model
+{
+ public $id;
+ public $labelListVisibility;
+ public $messageListVisibility;
+ public $messagesTotal;
+ public $messagesUnread;
+ public $name;
+ public $threadsTotal;
+ public $threadsUnread;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLabelListVisibility($labelListVisibility)
+ {
+ $this->labelListVisibility = $labelListVisibility;
+ }
+ public function getLabelListVisibility()
+ {
+ return $this->labelListVisibility;
+ }
+ public function setMessageListVisibility($messageListVisibility)
+ {
+ $this->messageListVisibility = $messageListVisibility;
+ }
+ public function getMessageListVisibility()
+ {
+ return $this->messageListVisibility;
+ }
+ public function setMessagesTotal($messagesTotal)
+ {
+ $this->messagesTotal = $messagesTotal;
+ }
+ public function getMessagesTotal()
+ {
+ return $this->messagesTotal;
+ }
+ public function setMessagesUnread($messagesUnread)
+ {
+ $this->messagesUnread = $messagesUnread;
+ }
+ public function getMessagesUnread()
+ {
+ return $this->messagesUnread;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setThreadsTotal($threadsTotal)
+ {
+ $this->threadsTotal = $threadsTotal;
+ }
+ public function getThreadsTotal()
+ {
+ return $this->threadsTotal;
+ }
+ public function setThreadsUnread($threadsUnread)
+ {
+ $this->threadsUnread = $threadsUnread;
+ }
+ public function getThreadsUnread()
+ {
+ return $this->threadsUnread;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php
new file mode 100644
index 00000000..4c510e47
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListDraftsResponse extends Google_Collection
+{
+ protected $collection_key = 'drafts';
+ protected $draftsType = 'Google_Service_Gmail_Draft';
+ protected $draftsDataType = 'array';
+ public $nextPageToken;
+ public $resultSizeEstimate;
+
+ public function setDrafts($drafts)
+ {
+ $this->drafts = $drafts;
+ }
+ public function getDrafts()
+ {
+ return $this->drafts;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResultSizeEstimate($resultSizeEstimate)
+ {
+ $this->resultSizeEstimate = $resultSizeEstimate;
+ }
+ public function getResultSizeEstimate()
+ {
+ return $this->resultSizeEstimate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php
new file mode 100644
index 00000000..20c14b19
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListFiltersResponse extends Google_Collection
+{
+ protected $collection_key = 'filter';
+ protected $filterType = 'Google_Service_Gmail_Filter';
+ protected $filterDataType = 'array';
+
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php
new file mode 100644
index 00000000..f91c0f95
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListForwardingAddressesResponse extends Google_Collection
+{
+ protected $collection_key = 'forwardingAddresses';
+ protected $forwardingAddressesType = 'Google_Service_Gmail_ForwardingAddress';
+ protected $forwardingAddressesDataType = 'array';
+
+ public function setForwardingAddresses($forwardingAddresses)
+ {
+ $this->forwardingAddresses = $forwardingAddresses;
+ }
+ public function getForwardingAddresses()
+ {
+ return $this->forwardingAddresses;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php
new file mode 100644
index 00000000..b2a95741
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListHistoryResponse extends Google_Collection
+{
+ protected $collection_key = 'history';
+ protected $historyType = 'Google_Service_Gmail_History';
+ protected $historyDataType = 'array';
+ public $historyId;
+ public $nextPageToken;
+
+ public function setHistory($history)
+ {
+ $this->history = $history;
+ }
+ public function getHistory()
+ {
+ return $this->history;
+ }
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php
new file mode 100644
index 00000000..dcd09dbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListLabelsResponse extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ protected $labelsType = 'Google_Service_Gmail_Label';
+ protected $labelsDataType = 'array';
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php
new file mode 100644
index 00000000..18ab5603
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListMessagesResponse extends Google_Collection
+{
+ protected $collection_key = 'messages';
+ protected $messagesType = 'Google_Service_Gmail_Message';
+ protected $messagesDataType = 'array';
+ public $nextPageToken;
+ public $resultSizeEstimate;
+
+ public function setMessages($messages)
+ {
+ $this->messages = $messages;
+ }
+ public function getMessages()
+ {
+ return $this->messages;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResultSizeEstimate($resultSizeEstimate)
+ {
+ $this->resultSizeEstimate = $resultSizeEstimate;
+ }
+ public function getResultSizeEstimate()
+ {
+ return $this->resultSizeEstimate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php
new file mode 100644
index 00000000..288d2f54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListSendAsResponse extends Google_Collection
+{
+ protected $collection_key = 'sendAs';
+ protected $sendAsType = 'Google_Service_Gmail_SendAs';
+ protected $sendAsDataType = 'array';
+
+ public function setSendAs($sendAs)
+ {
+ $this->sendAs = $sendAs;
+ }
+ public function getSendAs()
+ {
+ return $this->sendAs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php
new file mode 100644
index 00000000..e8bf165d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListSmimeInfoResponse extends Google_Collection
+{
+ protected $collection_key = 'smimeInfo';
+ protected $smimeInfoType = 'Google_Service_Gmail_SmimeInfo';
+ protected $smimeInfoDataType = 'array';
+
+ public function setSmimeInfo($smimeInfo)
+ {
+ $this->smimeInfo = $smimeInfo;
+ }
+ public function getSmimeInfo()
+ {
+ return $this->smimeInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php
new file mode 100644
index 00000000..990f593d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ListThreadsResponse extends Google_Collection
+{
+ protected $collection_key = 'threads';
+ public $nextPageToken;
+ public $resultSizeEstimate;
+ protected $threadsType = 'Google_Service_Gmail_Thread';
+ protected $threadsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResultSizeEstimate($resultSizeEstimate)
+ {
+ $this->resultSizeEstimate = $resultSizeEstimate;
+ }
+ public function getResultSizeEstimate()
+ {
+ return $this->resultSizeEstimate;
+ }
+ public function setThreads($threads)
+ {
+ $this->threads = $threads;
+ }
+ public function getThreads()
+ {
+ return $this->threads;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Message.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Message.php
new file mode 100644
index 00000000..95787880
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Message.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_Message extends Google_Collection
+{
+ protected $collection_key = 'labelIds';
+ public $historyId;
+ public $id;
+ public $internalDate;
+ public $labelIds;
+ protected $payloadType = 'Google_Service_Gmail_MessagePart';
+ protected $payloadDataType = '';
+ public $raw;
+ public $sizeEstimate;
+ public $snippet;
+ public $threadId;
+
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInternalDate($internalDate)
+ {
+ $this->internalDate = $internalDate;
+ }
+ public function getInternalDate()
+ {
+ return $this->internalDate;
+ }
+ public function setLabelIds($labelIds)
+ {
+ $this->labelIds = $labelIds;
+ }
+ public function getLabelIds()
+ {
+ return $this->labelIds;
+ }
+ public function setPayload(Google_Service_Gmail_MessagePart $payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setRaw($raw)
+ {
+ $this->raw = $raw;
+ }
+ public function getRaw()
+ {
+ return $this->raw;
+ }
+ public function setSizeEstimate($sizeEstimate)
+ {
+ $this->sizeEstimate = $sizeEstimate;
+ }
+ public function getSizeEstimate()
+ {
+ return $this->sizeEstimate;
+ }
+ public function setSnippet($snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setThreadId($threadId)
+ {
+ $this->threadId = $threadId;
+ }
+ public function getThreadId()
+ {
+ return $this->threadId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php
new file mode 100644
index 00000000..a53e1bad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_MessagePart extends Google_Collection
+{
+ protected $collection_key = 'parts';
+ protected $bodyType = 'Google_Service_Gmail_MessagePartBody';
+ protected $bodyDataType = '';
+ public $filename;
+ protected $headersType = 'Google_Service_Gmail_MessagePartHeader';
+ protected $headersDataType = 'array';
+ public $mimeType;
+ public $partId;
+ protected $partsType = 'Google_Service_Gmail_MessagePart';
+ protected $partsDataType = 'array';
+
+ public function setBody(Google_Service_Gmail_MessagePartBody $body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setFilename($filename)
+ {
+ $this->filename = $filename;
+ }
+ public function getFilename()
+ {
+ return $this->filename;
+ }
+ public function setHeaders($headers)
+ {
+ $this->headers = $headers;
+ }
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setPartId($partId)
+ {
+ $this->partId = $partId;
+ }
+ public function getPartId()
+ {
+ return $this->partId;
+ }
+ public function setParts($parts)
+ {
+ $this->parts = $parts;
+ }
+ public function getParts()
+ {
+ return $this->parts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php
new file mode 100644
index 00000000..d607b307
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_MessagePartBody extends Google_Model
+{
+ public $attachmentId;
+ public $data;
+ public $size;
+
+ public function setAttachmentId($attachmentId)
+ {
+ $this->attachmentId = $attachmentId;
+ }
+ public function getAttachmentId()
+ {
+ return $this->attachmentId;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php
new file mode 100644
index 00000000..b76456f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_MessagePartHeader extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php
new file mode 100644
index 00000000..96035fd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection
+{
+ protected $collection_key = 'removeLabelIds';
+ public $addLabelIds;
+ public $removeLabelIds;
+
+ public function setAddLabelIds($addLabelIds)
+ {
+ $this->addLabelIds = $addLabelIds;
+ }
+ public function getAddLabelIds()
+ {
+ return $this->addLabelIds;
+ }
+ public function setRemoveLabelIds($removeLabelIds)
+ {
+ $this->removeLabelIds = $removeLabelIds;
+ }
+ public function getRemoveLabelIds()
+ {
+ return $this->removeLabelIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php
new file mode 100644
index 00000000..9409d0d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection
+{
+ protected $collection_key = 'removeLabelIds';
+ public $addLabelIds;
+ public $removeLabelIds;
+
+ public function setAddLabelIds($addLabelIds)
+ {
+ $this->addLabelIds = $addLabelIds;
+ }
+ public function getAddLabelIds()
+ {
+ return $this->addLabelIds;
+ }
+ public function setRemoveLabelIds($removeLabelIds)
+ {
+ $this->removeLabelIds = $removeLabelIds;
+ }
+ public function getRemoveLabelIds()
+ {
+ return $this->removeLabelIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php
new file mode 100644
index 00000000..dcc92546
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_PopSettings extends Google_Model
+{
+ public $accessWindow;
+ public $disposition;
+
+ public function setAccessWindow($accessWindow)
+ {
+ $this->accessWindow = $accessWindow;
+ }
+ public function getAccessWindow()
+ {
+ return $this->accessWindow;
+ }
+ public function setDisposition($disposition)
+ {
+ $this->disposition = $disposition;
+ }
+ public function getDisposition()
+ {
+ return $this->disposition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Profile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Profile.php
new file mode 100644
index 00000000..15fccdfc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Profile.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_Profile extends Google_Model
+{
+ public $emailAddress;
+ public $historyId;
+ public $messagesTotal;
+ public $threadsTotal;
+
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+ public function setMessagesTotal($messagesTotal)
+ {
+ $this->messagesTotal = $messagesTotal;
+ }
+ public function getMessagesTotal()
+ {
+ return $this->messagesTotal;
+ }
+ public function setThreadsTotal($threadsTotal)
+ {
+ $this->threadsTotal = $threadsTotal;
+ }
+ public function getThreadsTotal()
+ {
+ return $this->threadsTotal;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php
new file mode 100644
index 00000000..a98be061
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $users = $gmailService->users;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_Users extends Google_Service_Resource
+{
+ /**
+ * Gets the current user's Gmail profile. (users.getProfile)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Profile
+ */
+ public function getProfile($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile");
+ }
+ /**
+ * Stop receiving push notifications for the given user mailbox. (users.stop)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ */
+ public function stop($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params));
+ }
+ /**
+ * Set up or update a push notification watch on the given user mailbox.
+ * (users.watch)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_WatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_WatchResponse
+ */
+ public function watch($userId, Google_Service_Gmail_WatchRequest $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php
new file mode 100644
index 00000000..af78f4b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "drafts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $drafts = $gmailService->drafts;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersDrafts extends Google_Service_Resource
+{
+ /**
+ * Creates a new draft with the DRAFT label. (drafts.create)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_Draft $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Draft
+ */
+ public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Gmail_Draft");
+ }
+ /**
+ * Immediately and permanently deletes the specified draft. Does not simply
+ * trash it. (drafts.delete)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the draft to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified draft. (drafts.get)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the draft to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string format The format to return the draft in.
+ * @return Google_Service_Gmail_Draft
+ */
+ public function get($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_Draft");
+ }
+ /**
+ * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeSpamTrash Include drafts from SPAM and TRASH in the
+ * results.
+ * @opt_param string maxResults Maximum number of drafts to return.
+ * @opt_param string pageToken Page token to retrieve a specific page of results
+ * in the list.
+ * @opt_param string q Only return draft messages matching the specified query.
+ * Supports the same query format as the Gmail search box. For example,
+ * "from:someuser@example.com rfc822msgid: is:unread".
+ * @return Google_Service_Gmail_ListDraftsResponse
+ */
+ public function listUsersDrafts($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse");
+ }
+ /**
+ * Sends the specified, existing draft to the recipients in the To, Cc, and Bcc
+ * headers. (drafts.send)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_Draft $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Message
+ */
+ public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('send', array($params), "Google_Service_Gmail_Message");
+ }
+ /**
+ * Replaces a draft's content. (drafts.update)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the draft to update.
+ * @param Google_Service_Gmail_Draft $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Draft
+ */
+ public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Gmail_Draft");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php
new file mode 100644
index 00000000..f04f7cf7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "history" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $history = $gmailService->history;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersHistory extends Google_Service_Resource
+{
+ /**
+ * Lists the history of all changes to the given mailbox. History results are
+ * returned in chronological order (increasing historyId).
+ * (history.listUsersHistory)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string historyTypes History types to be returned by the function
+ * @opt_param string labelId Only return messages with a label matching the ID.
+ * @opt_param string maxResults The maximum number of history records to return.
+ * @opt_param string pageToken Page token to retrieve a specific page of results
+ * in the list.
+ * @opt_param string startHistoryId Required. Returns history records after the
+ * specified startHistoryId. The supplied startHistoryId should be obtained from
+ * the historyId of a message, thread, or previous list response. History IDs
+ * increase chronologically but are not contiguous with random gaps in between
+ * valid IDs. Supplying an invalid or out of date startHistoryId typically
+ * returns an HTTP 404 error code. A historyId is typically valid for at least a
+ * week, but in some rare circumstances may be valid for only a few hours. If
+ * you receive an HTTP 404 error response, your application should perform a
+ * full sync. If you receive no nextPageToken in the response, there are no
+ * updates to retrieve and you can store the returned historyId for a future
+ * request.
+ * @return Google_Service_Gmail_ListHistoryResponse
+ */
+ public function listUsersHistory($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php
new file mode 100644
index 00000000..f099e5b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "labels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $labels = $gmailService->labels;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersLabels extends Google_Service_Resource
+{
+ /**
+ * Creates a new label. (labels.create)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_Label $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Label
+ */
+ public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Gmail_Label");
+ }
+ /**
+ * Immediately and permanently deletes the specified label and removes it from
+ * any messages and threads that it is applied to. (labels.delete)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the label to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified label. (labels.get)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the label to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Label
+ */
+ public function get($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_Label");
+ }
+ /**
+ * Lists all labels in the user's mailbox. (labels.listUsersLabels)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ListLabelsResponse
+ */
+ public function listUsersLabels($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse");
+ }
+ /**
+ * Updates the specified label. This method supports patch semantics.
+ * (labels.patch)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the label to update.
+ * @param Google_Service_Gmail_Label $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Label
+ */
+ public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Gmail_Label");
+ }
+ /**
+ * Updates the specified label. (labels.update)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the label to update.
+ * @param Google_Service_Gmail_Label $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Label
+ */
+ public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Gmail_Label");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php
new file mode 100644
index 00000000..f8da91aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php
@@ -0,0 +1,229 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "messages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $messages = $gmailService->messages;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resource
+{
+ /**
+ * Deletes many messages by message ID. Provides no guarantees that messages
+ * were not already deleted or even existed at all. (messages.batchDelete)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_BatchDeleteMessagesRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function batchDelete($userId, Google_Service_Gmail_BatchDeleteMessagesRequest $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchDelete', array($params));
+ }
+ /**
+ * Modifies the labels on the specified messages. (messages.batchModify)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_BatchModifyMessagesRequest $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function batchModify($userId, Google_Service_Gmail_BatchModifyMessagesRequest $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchModify', array($params));
+ }
+ /**
+ * Immediately and permanently deletes the specified message. This operation
+ * cannot be undone. Prefer messages.trash instead. (messages.delete)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the message to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified message. (messages.get)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the message to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string format The format to return the message in.
+ * @opt_param string metadataHeaders When given and format is METADATA, only
+ * include headers specified.
+ * @return Google_Service_Gmail_Message
+ */
+ public function get($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_Message");
+ }
+ /**
+ * Imports a message into only this user's mailbox, with standard email delivery
+ * scanning and classification similar to receiving via SMTP. Does not send a
+ * message. (messages.import)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_Message $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and
+ * only visible in Google Vault to a Vault administrator. Only used for G Suite
+ * accounts.
+ * @opt_param string internalDateSource Source for Gmail's internal date of the
+ * message.
+ * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and
+ * never mark this email as SPAM in the mailbox.
+ * @opt_param bool processForCalendar Process calendar invites in the email and
+ * add any extracted meetings to the Google Calendar for this user.
+ * @return Google_Service_Gmail_Message
+ */
+ public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('import', array($params), "Google_Service_Gmail_Message");
+ }
+ /**
+ * Directly inserts a message into only this user's mailbox similar to IMAP
+ * APPEND, bypassing most scanning and classification. Does not send a message.
+ * (messages.insert)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_Message $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and
+ * only visible in Google Vault to a Vault administrator. Only used for G Suite
+ * accounts.
+ * @opt_param string internalDateSource Source for Gmail's internal date of the
+ * message.
+ * @return Google_Service_Gmail_Message
+ */
+ public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Gmail_Message");
+ }
+ /**
+ * Lists the messages in the user's mailbox. (messages.listUsersMessages)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeSpamTrash Include messages from SPAM and TRASH in the
+ * results.
+ * @opt_param string labelIds Only return messages with labels that match all of
+ * the specified label IDs.
+ * @opt_param string maxResults Maximum number of messages to return.
+ * @opt_param string pageToken Page token to retrieve a specific page of results
+ * in the list.
+ * @opt_param string q Only return messages matching the specified query.
+ * Supports the same query format as the Gmail search box. For example,
+ * "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be used
+ * when accessing the api using the gmail.metadata scope.
+ * @return Google_Service_Gmail_ListMessagesResponse
+ */
+ public function listUsersMessages($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse");
+ }
+ /**
+ * Modifies the labels on the specified message. (messages.modify)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the message to modify.
+ * @param Google_Service_Gmail_ModifyMessageRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Message
+ */
+ public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('modify', array($params), "Google_Service_Gmail_Message");
+ }
+ /**
+ * Sends the specified message to the recipients in the To, Cc, and Bcc headers.
+ * (messages.send)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_Message $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Message
+ */
+ public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('send', array($params), "Google_Service_Gmail_Message");
+ }
+ /**
+ * Moves the specified message to the trash. (messages.trash)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the message to Trash.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Message
+ */
+ public function trash($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('trash', array($params), "Google_Service_Gmail_Message");
+ }
+ /**
+ * Removes the specified message from the trash. (messages.untrash)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the message to remove from Trash.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Message
+ */
+ public function untrash($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('untrash', array($params), "Google_Service_Gmail_Message");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php
new file mode 100644
index 00000000..f3d1a784
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "attachments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $attachments = $gmailService->attachments;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersMessagesAttachments extends Google_Service_Resource
+{
+ /**
+ * Gets the specified message attachment. (attachments.get)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $messageId The ID of the message containing the attachment.
+ * @param string $id The ID of the attachment.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_MessagePartBody
+ */
+ public function get($userId, $messageId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php
new file mode 100644
index 00000000..1f8bfa18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "settings" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $settings = $gmailService->settings;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resource
+{
+ /**
+ * Gets the auto-forwarding setting for the specified account.
+ * (settings.getAutoForwarding)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_AutoForwarding
+ */
+ public function getAutoForwarding($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding");
+ }
+ /**
+ * Gets IMAP settings. (settings.getImap)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ImapSettings
+ */
+ public function getImap($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getImap', array($params), "Google_Service_Gmail_ImapSettings");
+ }
+ /**
+ * Gets POP settings. (settings.getPop)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_PopSettings
+ */
+ public function getPop($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getPop', array($params), "Google_Service_Gmail_PopSettings");
+ }
+ /**
+ * Gets vacation responder settings. (settings.getVacation)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_VacationSettings
+ */
+ public function getVacation($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getVacation', array($params), "Google_Service_Gmail_VacationSettings");
+ }
+ /**
+ * Updates the auto-forwarding setting for the specified account. A verified
+ * forwarding address must be specified when auto-forwarding is enabled.
+ *
+ * This method is only available to service account clients that have been
+ * delegated domain-wide authority. (settings.updateAutoForwarding)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_AutoForwarding $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_AutoForwarding
+ */
+ public function updateAutoForwarding($userId, Google_Service_Gmail_AutoForwarding $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding");
+ }
+ /**
+ * Updates IMAP settings. (settings.updateImap)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_ImapSettings $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ImapSettings
+ */
+ public function updateImap($userId, Google_Service_Gmail_ImapSettings $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateImap', array($params), "Google_Service_Gmail_ImapSettings");
+ }
+ /**
+ * Updates POP settings. (settings.updatePop)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_PopSettings $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_PopSettings
+ */
+ public function updatePop($userId, Google_Service_Gmail_PopSettings $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updatePop', array($params), "Google_Service_Gmail_PopSettings");
+ }
+ /**
+ * Updates vacation responder settings. (settings.updateVacation)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_VacationSettings $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_VacationSettings
+ */
+ public function updateVacation($userId, Google_Service_Gmail_VacationSettings $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateVacation', array($params), "Google_Service_Gmail_VacationSettings");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php
new file mode 100644
index 00000000..79cc1b20
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "filters" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $filters = $gmailService->filters;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersSettingsFilters extends Google_Service_Resource
+{
+ /**
+ * Creates a filter. (filters.create)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_Filter $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Filter
+ */
+ public function create($userId, Google_Service_Gmail_Filter $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Gmail_Filter");
+ }
+ /**
+ * Deletes a filter. (filters.delete)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the filter to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a filter. (filters.get)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the filter to be fetched.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Filter
+ */
+ public function get($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_Filter");
+ }
+ /**
+ * Lists the message filters of a Gmail user. (filters.listUsersSettingsFilters)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ListFiltersResponse
+ */
+ public function listUsersSettingsFilters($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListFiltersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php
new file mode 100644
index 00000000..317383fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "forwardingAddresses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $forwardingAddresses = $gmailService->forwardingAddresses;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Google_Service_Resource
+{
+ /**
+ * Creates a forwarding address. If ownership verification is required, a
+ * message will be sent to the recipient and the resource's verification status
+ * will be set to pending; otherwise, the resource will be created with
+ * verification status set to accepted.
+ *
+ * This method is only available to service account clients that have been
+ * delegated domain-wide authority. (forwardingAddresses.create)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_ForwardingAddress $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ForwardingAddress
+ */
+ public function create($userId, Google_Service_Gmail_ForwardingAddress $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Gmail_ForwardingAddress");
+ }
+ /**
+ * Deletes the specified forwarding address and revokes any verification that
+ * may have been required.
+ *
+ * This method is only available to service account clients that have been
+ * delegated domain-wide authority. (forwardingAddresses.delete)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $forwardingEmail The forwarding address to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $forwardingEmail, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified forwarding address. (forwardingAddresses.get)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $forwardingEmail The forwarding address to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ForwardingAddress
+ */
+ public function get($userId, $forwardingEmail, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_ForwardingAddress");
+ }
+ /**
+ * Lists the forwarding addresses for the specified account.
+ * (forwardingAddresses.listUsersSettingsForwardingAddresses)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ListForwardingAddressesResponse
+ */
+ public function listUsersSettingsForwardingAddresses($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListForwardingAddressesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php
new file mode 100644
index 00000000..7190aa43
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php
@@ -0,0 +1,162 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sendAs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $sendAs = $gmailService->sendAs;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_Resource
+{
+ /**
+ * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail
+ * will attempt to connect to the SMTP service to validate the configuration
+ * before creating the alias. If ownership verification is required for the
+ * alias, a message will be sent to the email address and the resource's
+ * verification status will be set to pending; otherwise, the resource will be
+ * created with verification status set to accepted. If a signature is provided,
+ * Gmail will sanitize the HTML before saving it with the alias.
+ *
+ * This method is only available to service account clients that have been
+ * delegated domain-wide authority. (sendAs.create)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param Google_Service_Gmail_SendAs $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_SendAs
+ */
+ public function create($userId, Google_Service_Gmail_SendAs $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Gmail_SendAs");
+ }
+ /**
+ * Deletes the specified send-as alias. Revokes any verification that may have
+ * been required for using it.
+ *
+ * This method is only available to service account clients that have been
+ * delegated domain-wide authority. (sendAs.delete)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The send-as alias to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $sendAsEmail, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified send-as alias. Fails with an HTTP 404 error if the
+ * specified address is not a member of the collection. (sendAs.get)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The send-as alias to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_SendAs
+ */
+ public function get($userId, $sendAsEmail, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_SendAs");
+ }
+ /**
+ * Lists the send-as aliases for the specified account. The result includes the
+ * primary send-as address associated with the account as well as any custom
+ * "from" aliases. (sendAs.listUsersSettingsSendAs)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ListSendAsResponse
+ */
+ public function listUsersSettingsSendAs($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListSendAsResponse");
+ }
+ /**
+ * Updates a send-as alias. If a signature is provided, Gmail will sanitize the
+ * HTML before saving it with the alias.
+ *
+ * Addresses other than the primary address for the account can only be updated
+ * by service account clients that have been delegated domain-wide authority.
+ * This method supports patch semantics. (sendAs.patch)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The send-as alias to be updated.
+ * @param Google_Service_Gmail_SendAs $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_SendAs
+ */
+ public function patch($userId, $sendAsEmail, Google_Service_Gmail_SendAs $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Gmail_SendAs");
+ }
+ /**
+ * Updates a send-as alias. If a signature is provided, Gmail will sanitize the
+ * HTML before saving it with the alias.
+ *
+ * Addresses other than the primary address for the account can only be updated
+ * by service account clients that have been delegated domain-wide authority.
+ * (sendAs.update)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The send-as alias to be updated.
+ * @param Google_Service_Gmail_SendAs $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_SendAs
+ */
+ public function update($userId, $sendAsEmail, Google_Service_Gmail_SendAs $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Gmail_SendAs");
+ }
+ /**
+ * Sends a verification email to the specified send-as alias address. The
+ * verification status must be pending.
+ *
+ * This method is only available to service account clients that have been
+ * delegated domain-wide authority. (sendAs.verify)
+ *
+ * @param string $userId User's email address. The special value "me" can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The send-as alias to be verified.
+ * @param array $optParams Optional parameters.
+ */
+ public function verify($userId, $sendAsEmail, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
+ $params = array_merge($params, $optParams);
+ return $this->call('verify', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php
new file mode 100644
index 00000000..fe09c562
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "smimeInfo" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $smimeInfo = $gmailService->smimeInfo;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo extends Google_Service_Resource
+{
+ /**
+ * Deletes the specified S/MIME config for the specified send-as alias.
+ * (smimeInfo.delete)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The email address that appears in the "From:"
+ * header for mail sent using this alias.
+ * @param string $id The immutable ID for the SmimeInfo.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $sendAsEmail, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified S/MIME config for the specified send-as alias.
+ * (smimeInfo.get)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The email address that appears in the "From:"
+ * header for mail sent using this alias.
+ * @param string $id The immutable ID for the SmimeInfo.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_SmimeInfo
+ */
+ public function get($userId, $sendAsEmail, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_SmimeInfo");
+ }
+ /**
+ * Insert (upload) the given S/MIME config for the specified send-as alias. Note
+ * that pkcs12 format is required for the key. (smimeInfo.insert)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The email address that appears in the "From:"
+ * header for mail sent using this alias.
+ * @param Google_Service_Gmail_SmimeInfo $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_SmimeInfo
+ */
+ public function insert($userId, $sendAsEmail, Google_Service_Gmail_SmimeInfo $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Gmail_SmimeInfo");
+ }
+ /**
+ * Lists S/MIME configs for the specified send-as alias.
+ * (smimeInfo.listUsersSettingsSendAsSmimeInfo)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The email address that appears in the "From:"
+ * header for mail sent using this alias.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_ListSmimeInfoResponse
+ */
+ public function listUsersSettingsSendAsSmimeInfo($userId, $sendAsEmail, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListSmimeInfoResponse");
+ }
+ /**
+ * Sets the default S/MIME config for the specified send-as alias.
+ * (smimeInfo.setDefault)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $sendAsEmail The email address that appears in the "From:"
+ * header for mail sent using this alias.
+ * @param string $id The immutable ID for the SmimeInfo.
+ * @param array $optParams Optional parameters.
+ */
+ public function setDefault($userId, $sendAsEmail, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('setDefault', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php
new file mode 100644
index 00000000..a51e541c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php
@@ -0,0 +1,135 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "threads" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $gmailService = new Google_Service_Gmail(...);
+ * $threads = $gmailService->threads;
+ * </code>
+ */
+class Google_Service_Gmail_Resource_UsersThreads extends Google_Service_Resource
+{
+ /**
+ * Immediately and permanently deletes the specified thread. This operation
+ * cannot be undone. Prefer threads.trash instead. (threads.delete)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id ID of the Thread to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets the specified thread. (threads.get)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the thread to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string format The format to return the messages in.
+ * @opt_param string metadataHeaders When given and format is METADATA, only
+ * include headers specified.
+ * @return Google_Service_Gmail_Thread
+ */
+ public function get($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Gmail_Thread");
+ }
+ /**
+ * Lists the threads in the user's mailbox. (threads.listUsersThreads)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeSpamTrash Include threads from SPAM and TRASH in the
+ * results.
+ * @opt_param string labelIds Only return threads with labels that match all of
+ * the specified label IDs.
+ * @opt_param string maxResults Maximum number of threads to return.
+ * @opt_param string pageToken Page token to retrieve a specific page of results
+ * in the list.
+ * @opt_param string q Only return threads matching the specified query.
+ * Supports the same query format as the Gmail search box. For example,
+ * "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be used
+ * when accessing the api using the gmail.metadata scope.
+ * @return Google_Service_Gmail_ListThreadsResponse
+ */
+ public function listUsersThreads($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse");
+ }
+ /**
+ * Modifies the labels applied to the thread. This applies to all messages in
+ * the thread. (threads.modify)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the thread to modify.
+ * @param Google_Service_Gmail_ModifyThreadRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Thread
+ */
+ public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('modify', array($params), "Google_Service_Gmail_Thread");
+ }
+ /**
+ * Moves the specified thread to the trash. (threads.trash)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the thread to Trash.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Thread
+ */
+ public function trash($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('trash', array($params), "Google_Service_Gmail_Thread");
+ }
+ /**
+ * Removes the specified thread from the trash. (threads.untrash)
+ *
+ * @param string $userId The user's email address. The special value me can be
+ * used to indicate the authenticated user.
+ * @param string $id The ID of the thread to remove from Trash.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Gmail_Thread
+ */
+ public function untrash($userId, $id, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('untrash', array($params), "Google_Service_Gmail_Thread");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SendAs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SendAs.php
new file mode 100644
index 00000000..7df3937c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SendAs.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_SendAs extends Google_Model
+{
+ public $displayName;
+ public $isDefault;
+ public $isPrimary;
+ public $replyToAddress;
+ public $sendAsEmail;
+ public $signature;
+ protected $smtpMsaType = 'Google_Service_Gmail_SmtpMsa';
+ protected $smtpMsaDataType = '';
+ public $treatAsAlias;
+ public $verificationStatus;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setIsDefault($isDefault)
+ {
+ $this->isDefault = $isDefault;
+ }
+ public function getIsDefault()
+ {
+ return $this->isDefault;
+ }
+ public function setIsPrimary($isPrimary)
+ {
+ $this->isPrimary = $isPrimary;
+ }
+ public function getIsPrimary()
+ {
+ return $this->isPrimary;
+ }
+ public function setReplyToAddress($replyToAddress)
+ {
+ $this->replyToAddress = $replyToAddress;
+ }
+ public function getReplyToAddress()
+ {
+ return $this->replyToAddress;
+ }
+ public function setSendAsEmail($sendAsEmail)
+ {
+ $this->sendAsEmail = $sendAsEmail;
+ }
+ public function getSendAsEmail()
+ {
+ return $this->sendAsEmail;
+ }
+ public function setSignature($signature)
+ {
+ $this->signature = $signature;
+ }
+ public function getSignature()
+ {
+ return $this->signature;
+ }
+ public function setSmtpMsa(Google_Service_Gmail_SmtpMsa $smtpMsa)
+ {
+ $this->smtpMsa = $smtpMsa;
+ }
+ public function getSmtpMsa()
+ {
+ return $this->smtpMsa;
+ }
+ public function setTreatAsAlias($treatAsAlias)
+ {
+ $this->treatAsAlias = $treatAsAlias;
+ }
+ public function getTreatAsAlias()
+ {
+ return $this->treatAsAlias;
+ }
+ public function setVerificationStatus($verificationStatus)
+ {
+ $this->verificationStatus = $verificationStatus;
+ }
+ public function getVerificationStatus()
+ {
+ return $this->verificationStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php
new file mode 100644
index 00000000..e8ef0792
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_SmimeInfo extends Google_Model
+{
+ public $encryptedKeyPassword;
+ public $expiration;
+ public $id;
+ public $isDefault;
+ public $issuerCn;
+ public $pem;
+ public $pkcs12;
+
+ public function setEncryptedKeyPassword($encryptedKeyPassword)
+ {
+ $this->encryptedKeyPassword = $encryptedKeyPassword;
+ }
+ public function getEncryptedKeyPassword()
+ {
+ return $this->encryptedKeyPassword;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsDefault($isDefault)
+ {
+ $this->isDefault = $isDefault;
+ }
+ public function getIsDefault()
+ {
+ return $this->isDefault;
+ }
+ public function setIssuerCn($issuerCn)
+ {
+ $this->issuerCn = $issuerCn;
+ }
+ public function getIssuerCn()
+ {
+ return $this->issuerCn;
+ }
+ public function setPem($pem)
+ {
+ $this->pem = $pem;
+ }
+ public function getPem()
+ {
+ return $this->pem;
+ }
+ public function setPkcs12($pkcs12)
+ {
+ $this->pkcs12 = $pkcs12;
+ }
+ public function getPkcs12()
+ {
+ return $this->pkcs12;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php
new file mode 100644
index 00000000..5d3c9847
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_SmtpMsa extends Google_Model
+{
+ public $host;
+ public $password;
+ public $port;
+ public $securityMode;
+ public $username;
+
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setSecurityMode($securityMode)
+ {
+ $this->securityMode = $securityMode;
+ }
+ public function getSecurityMode()
+ {
+ return $this->securityMode;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Thread.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Thread.php
new file mode 100644
index 00000000..585b562f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/Thread.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_Thread extends Google_Collection
+{
+ protected $collection_key = 'messages';
+ public $historyId;
+ public $id;
+ protected $messagesType = 'Google_Service_Gmail_Message';
+ protected $messagesDataType = 'array';
+ public $snippet;
+
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMessages($messages)
+ {
+ $this->messages = $messages;
+ }
+ public function getMessages()
+ {
+ return $this->messages;
+ }
+ public function setSnippet($snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php
new file mode 100644
index 00000000..99985428
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_VacationSettings extends Google_Model
+{
+ public $enableAutoReply;
+ public $endTime;
+ public $responseBodyHtml;
+ public $responseBodyPlainText;
+ public $responseSubject;
+ public $restrictToContacts;
+ public $restrictToDomain;
+ public $startTime;
+
+ public function setEnableAutoReply($enableAutoReply)
+ {
+ $this->enableAutoReply = $enableAutoReply;
+ }
+ public function getEnableAutoReply()
+ {
+ return $this->enableAutoReply;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setResponseBodyHtml($responseBodyHtml)
+ {
+ $this->responseBodyHtml = $responseBodyHtml;
+ }
+ public function getResponseBodyHtml()
+ {
+ return $this->responseBodyHtml;
+ }
+ public function setResponseBodyPlainText($responseBodyPlainText)
+ {
+ $this->responseBodyPlainText = $responseBodyPlainText;
+ }
+ public function getResponseBodyPlainText()
+ {
+ return $this->responseBodyPlainText;
+ }
+ public function setResponseSubject($responseSubject)
+ {
+ $this->responseSubject = $responseSubject;
+ }
+ public function getResponseSubject()
+ {
+ return $this->responseSubject;
+ }
+ public function setRestrictToContacts($restrictToContacts)
+ {
+ $this->restrictToContacts = $restrictToContacts;
+ }
+ public function getRestrictToContacts()
+ {
+ return $this->restrictToContacts;
+ }
+ public function setRestrictToDomain($restrictToDomain)
+ {
+ $this->restrictToDomain = $restrictToDomain;
+ }
+ public function getRestrictToDomain()
+ {
+ return $this->restrictToDomain;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php
new file mode 100644
index 00000000..6be53b54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_WatchRequest extends Google_Collection
+{
+ protected $collection_key = 'labelIds';
+ public $labelFilterAction;
+ public $labelIds;
+ public $topicName;
+
+ public function setLabelFilterAction($labelFilterAction)
+ {
+ $this->labelFilterAction = $labelFilterAction;
+ }
+ public function getLabelFilterAction()
+ {
+ return $this->labelFilterAction;
+ }
+ public function setLabelIds($labelIds)
+ {
+ $this->labelIds = $labelIds;
+ }
+ public function getLabelIds()
+ {
+ return $this->labelIds;
+ }
+ public function setTopicName($topicName)
+ {
+ $this->topicName = $topicName;
+ }
+ public function getTopicName()
+ {
+ return $this->topicName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php
new file mode 100644
index 00000000..bcebc35a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Gmail_WatchResponse extends Google_Model
+{
+ public $expiration;
+ public $historyId;
+
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration.php
new file mode 100644
index 00000000..95eb6c8a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for GroupsMigration (v1).
+ *
+ * <p>
+ * Groups Migration Api.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/google-apps/groups-migration/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_GroupsMigration extends Google_Service
+{
+ /** Manage messages in groups on your domain. */
+ const APPS_GROUPS_MIGRATION =
+ "https://www.googleapis.com/auth/apps.groups.migration";
+
+ public $archive;
+
+ /**
+ * Constructs the internal representation of the GroupsMigration service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'groups/v1/groups/';
+ $this->version = 'v1';
+ $this->serviceName = 'groupsmigration';
+
+ $this->archive = new Google_Service_GroupsMigration_Resource_Archive(
+ $this,
+ $this->serviceName,
+ 'archive',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => '{groupId}/archive',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'groupId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Groups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Groups.php
new file mode 100644
index 00000000..e57ec84d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Groups.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_GroupsMigration_Groups extends Google_Model
+{
+ public $kind;
+ public $responseCode;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResponseCode($responseCode)
+ {
+ $this->responseCode = $responseCode;
+ }
+ public function getResponseCode()
+ {
+ return $this->responseCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Resource/Archive.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Resource/Archive.php
new file mode 100644
index 00000000..26227bab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/GroupsMigration/Resource/Archive.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "archive" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $groupsmigrationService = new Google_Service_GroupsMigration(...);
+ * $archive = $groupsmigrationService->archive;
+ * </code>
+ */
+class Google_Service_GroupsMigration_Resource_Archive extends Google_Service_Resource
+{
+ /**
+ * Inserts a new mail into the archive of the Google group. (archive.insert)
+ *
+ * @param string $groupId The group ID
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GroupsMigration_Groups
+ */
+ public function insert($groupId, $optParams = array())
+ {
+ $params = array('groupId' => $groupId);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings.php
new file mode 100644
index 00000000..75f7e8ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Groupssettings (v1).
+ *
+ * <p>
+ * Lets you manage permission levels and related settings of a group.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/google-apps/groups-settings/get_started" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Groupssettings extends Google_Service
+{
+ /** View and manage the settings of a G Suite group. */
+ const APPS_GROUPS_SETTINGS =
+ "https://www.googleapis.com/auth/apps.groups.settings";
+
+ public $groups;
+
+ /**
+ * Constructs the internal representation of the Groupssettings service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'groups/v1/groups/';
+ $this->version = 'v1';
+ $this->serviceName = 'groupssettings';
+
+ $this->groups = new Google_Service_Groupssettings_Resource_Groups(
+ $this,
+ $this->serviceName,
+ 'groups',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{groupUniqueId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'groupUniqueId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{groupUniqueId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'groupUniqueId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{groupUniqueId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'groupUniqueId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php
new file mode 100644
index 00000000..b83138b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Groups.php
@@ -0,0 +1,300 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Groupssettings_Groups extends Google_Model
+{
+ public $allowExternalMembers;
+ public $allowGoogleCommunication;
+ public $allowWebPosting;
+ public $archiveOnly;
+ public $customFooterText;
+ public $customReplyTo;
+ public $defaultMessageDenyNotificationText;
+ public $description;
+ public $email;
+ public $includeCustomFooter;
+ public $includeInGlobalAddressList;
+ public $isArchived;
+ public $kind;
+ public $maxMessageBytes;
+ public $membersCanPostAsTheGroup;
+ public $messageDisplayFont;
+ public $messageModerationLevel;
+ public $name;
+ public $primaryLanguage;
+ public $replyTo;
+ public $sendMessageDenyNotification;
+ public $showInGroupDirectory;
+ public $spamModerationLevel;
+ public $whoCanAdd;
+ public $whoCanContactOwner;
+ public $whoCanInvite;
+ public $whoCanJoin;
+ public $whoCanLeaveGroup;
+ public $whoCanPostMessage;
+ public $whoCanViewGroup;
+ public $whoCanViewMembership;
+
+ public function setAllowExternalMembers($allowExternalMembers)
+ {
+ $this->allowExternalMembers = $allowExternalMembers;
+ }
+ public function getAllowExternalMembers()
+ {
+ return $this->allowExternalMembers;
+ }
+ public function setAllowGoogleCommunication($allowGoogleCommunication)
+ {
+ $this->allowGoogleCommunication = $allowGoogleCommunication;
+ }
+ public function getAllowGoogleCommunication()
+ {
+ return $this->allowGoogleCommunication;
+ }
+ public function setAllowWebPosting($allowWebPosting)
+ {
+ $this->allowWebPosting = $allowWebPosting;
+ }
+ public function getAllowWebPosting()
+ {
+ return $this->allowWebPosting;
+ }
+ public function setArchiveOnly($archiveOnly)
+ {
+ $this->archiveOnly = $archiveOnly;
+ }
+ public function getArchiveOnly()
+ {
+ return $this->archiveOnly;
+ }
+ public function setCustomFooterText($customFooterText)
+ {
+ $this->customFooterText = $customFooterText;
+ }
+ public function getCustomFooterText()
+ {
+ return $this->customFooterText;
+ }
+ public function setCustomReplyTo($customReplyTo)
+ {
+ $this->customReplyTo = $customReplyTo;
+ }
+ public function getCustomReplyTo()
+ {
+ return $this->customReplyTo;
+ }
+ public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText)
+ {
+ $this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText;
+ }
+ public function getDefaultMessageDenyNotificationText()
+ {
+ return $this->defaultMessageDenyNotificationText;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setIncludeCustomFooter($includeCustomFooter)
+ {
+ $this->includeCustomFooter = $includeCustomFooter;
+ }
+ public function getIncludeCustomFooter()
+ {
+ return $this->includeCustomFooter;
+ }
+ public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
+ {
+ $this->includeInGlobalAddressList = $includeInGlobalAddressList;
+ }
+ public function getIncludeInGlobalAddressList()
+ {
+ return $this->includeInGlobalAddressList;
+ }
+ public function setIsArchived($isArchived)
+ {
+ $this->isArchived = $isArchived;
+ }
+ public function getIsArchived()
+ {
+ return $this->isArchived;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxMessageBytes($maxMessageBytes)
+ {
+ $this->maxMessageBytes = $maxMessageBytes;
+ }
+ public function getMaxMessageBytes()
+ {
+ return $this->maxMessageBytes;
+ }
+ public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup)
+ {
+ $this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup;
+ }
+ public function getMembersCanPostAsTheGroup()
+ {
+ return $this->membersCanPostAsTheGroup;
+ }
+ public function setMessageDisplayFont($messageDisplayFont)
+ {
+ $this->messageDisplayFont = $messageDisplayFont;
+ }
+ public function getMessageDisplayFont()
+ {
+ return $this->messageDisplayFont;
+ }
+ public function setMessageModerationLevel($messageModerationLevel)
+ {
+ $this->messageModerationLevel = $messageModerationLevel;
+ }
+ public function getMessageModerationLevel()
+ {
+ return $this->messageModerationLevel;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrimaryLanguage($primaryLanguage)
+ {
+ $this->primaryLanguage = $primaryLanguage;
+ }
+ public function getPrimaryLanguage()
+ {
+ return $this->primaryLanguage;
+ }
+ public function setReplyTo($replyTo)
+ {
+ $this->replyTo = $replyTo;
+ }
+ public function getReplyTo()
+ {
+ return $this->replyTo;
+ }
+ public function setSendMessageDenyNotification($sendMessageDenyNotification)
+ {
+ $this->sendMessageDenyNotification = $sendMessageDenyNotification;
+ }
+ public function getSendMessageDenyNotification()
+ {
+ return $this->sendMessageDenyNotification;
+ }
+ public function setShowInGroupDirectory($showInGroupDirectory)
+ {
+ $this->showInGroupDirectory = $showInGroupDirectory;
+ }
+ public function getShowInGroupDirectory()
+ {
+ return $this->showInGroupDirectory;
+ }
+ public function setSpamModerationLevel($spamModerationLevel)
+ {
+ $this->spamModerationLevel = $spamModerationLevel;
+ }
+ public function getSpamModerationLevel()
+ {
+ return $this->spamModerationLevel;
+ }
+ public function setWhoCanAdd($whoCanAdd)
+ {
+ $this->whoCanAdd = $whoCanAdd;
+ }
+ public function getWhoCanAdd()
+ {
+ return $this->whoCanAdd;
+ }
+ public function setWhoCanContactOwner($whoCanContactOwner)
+ {
+ $this->whoCanContactOwner = $whoCanContactOwner;
+ }
+ public function getWhoCanContactOwner()
+ {
+ return $this->whoCanContactOwner;
+ }
+ public function setWhoCanInvite($whoCanInvite)
+ {
+ $this->whoCanInvite = $whoCanInvite;
+ }
+ public function getWhoCanInvite()
+ {
+ return $this->whoCanInvite;
+ }
+ public function setWhoCanJoin($whoCanJoin)
+ {
+ $this->whoCanJoin = $whoCanJoin;
+ }
+ public function getWhoCanJoin()
+ {
+ return $this->whoCanJoin;
+ }
+ public function setWhoCanLeaveGroup($whoCanLeaveGroup)
+ {
+ $this->whoCanLeaveGroup = $whoCanLeaveGroup;
+ }
+ public function getWhoCanLeaveGroup()
+ {
+ return $this->whoCanLeaveGroup;
+ }
+ public function setWhoCanPostMessage($whoCanPostMessage)
+ {
+ $this->whoCanPostMessage = $whoCanPostMessage;
+ }
+ public function getWhoCanPostMessage()
+ {
+ return $this->whoCanPostMessage;
+ }
+ public function setWhoCanViewGroup($whoCanViewGroup)
+ {
+ $this->whoCanViewGroup = $whoCanViewGroup;
+ }
+ public function getWhoCanViewGroup()
+ {
+ return $this->whoCanViewGroup;
+ }
+ public function setWhoCanViewMembership($whoCanViewMembership)
+ {
+ $this->whoCanViewMembership = $whoCanViewMembership;
+ }
+ public function getWhoCanViewMembership()
+ {
+ return $this->whoCanViewMembership;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Resource/Groups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Resource/Groups.php
new file mode 100644
index 00000000..b706e219
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Groupssettings/Resource/Groups.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $groupssettingsService = new Google_Service_Groupssettings(...);
+ * $groups = $groupssettingsService->groups;
+ * </code>
+ */
+class Google_Service_Groupssettings_Resource_Groups extends Google_Service_Resource
+{
+ /**
+ * Gets one resource by id. (groups.get)
+ *
+ * @param string $groupUniqueId The resource ID
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Groupssettings_Groups
+ */
+ public function get($groupUniqueId, $optParams = array())
+ {
+ $params = array('groupUniqueId' => $groupUniqueId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Groupssettings_Groups");
+ }
+ /**
+ * Updates an existing resource. This method supports patch semantics.
+ * (groups.patch)
+ *
+ * @param string $groupUniqueId The resource ID
+ * @param Google_Service_Groupssettings_Groups $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Groupssettings_Groups
+ */
+ public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array())
+ {
+ $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups");
+ }
+ /**
+ * Updates an existing resource. (groups.update)
+ *
+ * @param string $groupUniqueId The resource ID
+ * @param Google_Service_Groupssettings_Groups $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Groupssettings_Groups
+ */
+ public function update($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array())
+ {
+ $params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Groupssettings_Groups");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam.php
new file mode 100644
index 00000000..9852bf2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam.php
@@ -0,0 +1,248 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Iam (v1).
+ *
+ * <p>
+ * Manages identity and access control for Google Cloud Platform resources,
+ * including the creation of service accounts, which you can use to authenticate
+ * to Google and make API calls.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/iam/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Iam extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects_serviceAccounts;
+ public $projects_serviceAccounts_keys;
+ public $roles;
+
+ /**
+ * Constructs the internal representation of the Iam service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://iam.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'iam';
+
+ $this->projects_serviceAccounts = new Google_Service_Iam_Resource_ProjectsServiceAccounts(
+ $this,
+ $this->serviceName,
+ 'serviceAccounts',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+name}/serviceAccounts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}/serviceAccounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'signBlob' => array(
+ 'path' => 'v1/{+name}:signBlob',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'signJwt' => array(
+ 'path' => 'v1/{+name}:signJwt',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_serviceAccounts_keys = new Google_Service_Iam_Resource_ProjectsServiceAccountsKeys(
+ $this,
+ $this->serviceName,
+ 'keys',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+name}/keys',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'publicKeyType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}/keys',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'keyTypes' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->roles = new Google_Service_Iam_Resource_Roles(
+ $this,
+ $this->serviceName,
+ 'roles',
+ array(
+ 'methods' => array(
+ 'queryGrantableRoles' => array(
+ 'path' => 'v1/roles:queryGrantableRoles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/AuditData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/AuditData.php
new file mode 100644
index 00000000..d64da48a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/AuditData.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_AuditData extends Google_Model
+{
+ protected $policyDeltaType = 'Google_Service_Iam_PolicyDelta';
+ protected $policyDeltaDataType = '';
+
+ public function setPolicyDelta(Google_Service_Iam_PolicyDelta $policyDelta)
+ {
+ $this->policyDelta = $policyDelta;
+ }
+ public function getPolicyDelta()
+ {
+ return $this->policyDelta;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Binding.php
new file mode 100644
index 00000000..70c5c869
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php
new file mode 100644
index 00000000..55a93c74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/BindingDelta.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_BindingDelta extends Google_Model
+{
+ public $action;
+ public $member;
+ public $role;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setMember($member)
+ {
+ $this->member = $member;
+ }
+ public function getMember()
+ {
+ return $this->member;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CloudAuditOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CloudAuditOptions.php
new file mode 100644
index 00000000..1e6436cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CloudAuditOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_CloudAuditOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Condition.php
new file mode 100644
index 00000000..26c989c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Condition.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_Condition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $iam;
+ public $op;
+ public $svc;
+ public $sys;
+ public $value;
+ public $values;
+
+ public function setIam($iam)
+ {
+ $this->iam = $iam;
+ }
+ public function getIam()
+ {
+ return $this->iam;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setSvc($svc)
+ {
+ $this->svc = $svc;
+ }
+ public function getSvc()
+ {
+ return $this->svc;
+ }
+ public function setSys($sys)
+ {
+ $this->sys = $sys;
+ }
+ public function getSys()
+ {
+ return $this->sys;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CounterOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CounterOptions.php
new file mode 100644
index 00000000..933b5cf4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CounterOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_CounterOptions extends Google_Model
+{
+ public $field;
+ public $metric;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountKeyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountKeyRequest.php
new file mode 100644
index 00000000..d85c9b32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountKeyRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_CreateServiceAccountKeyRequest extends Google_Model
+{
+ public $keyAlgorithm;
+ public $privateKeyType;
+
+ public function setKeyAlgorithm($keyAlgorithm)
+ {
+ $this->keyAlgorithm = $keyAlgorithm;
+ }
+ public function getKeyAlgorithm()
+ {
+ return $this->keyAlgorithm;
+ }
+ public function setPrivateKeyType($privateKeyType)
+ {
+ $this->privateKeyType = $privateKeyType;
+ }
+ public function getPrivateKeyType()
+ {
+ return $this->privateKeyType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountRequest.php
new file mode 100644
index 00000000..1d0ad16a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/CreateServiceAccountRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_CreateServiceAccountRequest extends Google_Model
+{
+ public $accountId;
+ protected $serviceAccountType = 'Google_Service_Iam_ServiceAccount';
+ protected $serviceAccountDataType = '';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setServiceAccount(Google_Service_Iam_ServiceAccount $serviceAccount)
+ {
+ $this->serviceAccount = $serviceAccount;
+ }
+ public function getServiceAccount()
+ {
+ return $this->serviceAccount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/DataAccessOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/DataAccessOptions.php
new file mode 100644
index 00000000..0e843bca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/DataAccessOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_DataAccessOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/IamEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/IamEmpty.php
new file mode 100644
index 00000000..8e2cd2a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/IamEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_IamEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountKeysResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountKeysResponse.php
new file mode 100644
index 00000000..c0cfa62c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountKeysResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_ListServiceAccountKeysResponse extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $keysType = 'Google_Service_Iam_ServiceAccountKey';
+ protected $keysDataType = 'array';
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountsResponse.php
new file mode 100644
index 00000000..93445ebb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ListServiceAccountsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_ListServiceAccountsResponse extends Google_Collection
+{
+ protected $collection_key = 'accounts';
+ protected $accountsType = 'Google_Service_Iam_ServiceAccount';
+ protected $accountsDataType = 'array';
+ public $nextPageToken;
+
+ public function setAccounts($accounts)
+ {
+ $this->accounts = $accounts;
+ }
+ public function getAccounts()
+ {
+ return $this->accounts;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/LogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/LogConfig.php
new file mode 100644
index 00000000..b8d479ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/LogConfig.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_LogConfig extends Google_Model
+{
+ protected $cloudAuditType = 'Google_Service_Iam_CloudAuditOptions';
+ protected $cloudAuditDataType = '';
+ protected $counterType = 'Google_Service_Iam_CounterOptions';
+ protected $counterDataType = '';
+ protected $dataAccessType = 'Google_Service_Iam_DataAccessOptions';
+ protected $dataAccessDataType = '';
+
+ public function setCloudAudit(Google_Service_Iam_CloudAuditOptions $cloudAudit)
+ {
+ $this->cloudAudit = $cloudAudit;
+ }
+ public function getCloudAudit()
+ {
+ return $this->cloudAudit;
+ }
+ public function setCounter(Google_Service_Iam_CounterOptions $counter)
+ {
+ $this->counter = $counter;
+ }
+ public function getCounter()
+ {
+ return $this->counter;
+ }
+ public function setDataAccess(Google_Service_Iam_DataAccessOptions $dataAccess)
+ {
+ $this->dataAccess = $dataAccess;
+ }
+ public function getDataAccess()
+ {
+ return $this->dataAccess;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Policy.php
new file mode 100644
index 00000000..7b8f0b5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Policy.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_Policy extends Google_Collection
+{
+ protected $collection_key = 'bindings';
+ protected $bindingsType = 'Google_Service_Iam_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $version;
+
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/PolicyDelta.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/PolicyDelta.php
new file mode 100644
index 00000000..cf1ab25f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/PolicyDelta.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_PolicyDelta extends Google_Collection
+{
+ protected $collection_key = 'bindingDeltas';
+ protected $bindingDeltasType = 'Google_Service_Iam_BindingDelta';
+ protected $bindingDeltasDataType = 'array';
+
+ public function setBindingDeltas($bindingDeltas)
+ {
+ $this->bindingDeltas = $bindingDeltas;
+ }
+ public function getBindingDeltas()
+ {
+ return $this->bindingDeltas;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesRequest.php
new file mode 100644
index 00000000..dd63cfcf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_QueryGrantableRolesRequest extends Google_Model
+{
+ public $fullResourceName;
+
+ public function setFullResourceName($fullResourceName)
+ {
+ $this->fullResourceName = $fullResourceName;
+ }
+ public function getFullResourceName()
+ {
+ return $this->fullResourceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesResponse.php
new file mode 100644
index 00000000..759f85f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/QueryGrantableRolesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_QueryGrantableRolesResponse extends Google_Collection
+{
+ protected $collection_key = 'roles';
+ protected $rolesType = 'Google_Service_Iam_Role';
+ protected $rolesDataType = 'array';
+
+ public function setRoles($roles)
+ {
+ $this->roles = $roles;
+ }
+ public function getRoles()
+ {
+ return $this->roles;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Projects.php
new file mode 100644
index 00000000..5b51eb8a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $iamService = new Google_Service_Iam(...);
+ * $projects = $iamService->projects;
+ * </code>
+ */
+class Google_Service_Iam_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php
new file mode 100644
index 00000000..481454d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccounts.php
@@ -0,0 +1,215 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "serviceAccounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $iamService = new Google_Service_Iam(...);
+ * $serviceAccounts = $iamService->serviceAccounts;
+ * </code>
+ */
+class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service_Resource
+{
+ /**
+ * Creates a ServiceAccount and returns it. (serviceAccounts.create)
+ *
+ * @param string $name Required. The resource name of the project associated
+ * with the service accounts, such as `projects/my-project-123`.
+ * @param Google_Service_Iam_CreateServiceAccountRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_ServiceAccount
+ */
+ public function create($name, Google_Service_Iam_CreateServiceAccountRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Iam_ServiceAccount");
+ }
+ /**
+ * Deletes a ServiceAccount. (serviceAccounts.delete)
+ *
+ * @param string $name The resource name of the service account in the following
+ * format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ * Using `-` as a wildcard for the project will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_IamEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Iam_IamEmpty");
+ }
+ /**
+ * Gets a ServiceAccount. (serviceAccounts.get)
+ *
+ * @param string $name The resource name of the service account in the following
+ * format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ * Using `-` as a wildcard for the project will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_ServiceAccount
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Iam_ServiceAccount");
+ }
+ /**
+ * Returns the IAM access control policy for a ServiceAccount.
+ * (serviceAccounts.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_Policy
+ */
+ public function getIamPolicy($resource, $optParams = array())
+ {
+ $params = array('resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Iam_Policy");
+ }
+ /**
+ * Lists ServiceAccounts for a project.
+ * (serviceAccounts.listProjectsServiceAccounts)
+ *
+ * @param string $name Required. The resource name of the project associated
+ * with the service accounts, such as `projects/my-project-123`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional pagination token returned in an earlier
+ * ListServiceAccountsResponse.next_page_token.
+ * @opt_param int pageSize Optional limit on the number of service accounts to
+ * include in the response. Further accounts can subsequently be obtained by
+ * including the ListServiceAccountsResponse.next_page_token in a subsequent
+ * request.
+ * @return Google_Service_Iam_ListServiceAccountsResponse
+ */
+ public function listProjectsServiceAccounts($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountsResponse");
+ }
+ /**
+ * Sets the IAM access control policy for a ServiceAccount.
+ * (serviceAccounts.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param Google_Service_Iam_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_Iam_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Iam_Policy");
+ }
+ /**
+ * Signs a blob using a service account's system-managed private key.
+ * (serviceAccounts.signBlob)
+ *
+ * @param string $name The resource name of the service account in the following
+ * format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ * Using `-` as a wildcard for the project will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param Google_Service_Iam_SignBlobRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_SignBlobResponse
+ */
+ public function signBlob($name, Google_Service_Iam_SignBlobRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('signBlob', array($params), "Google_Service_Iam_SignBlobResponse");
+ }
+ /**
+ * Signs a JWT using a service account's system-managed private key.
+ *
+ * If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an an
+ * expiry time of one hour by default. If you request an expiry time of more
+ * than one hour, the request will fail. (serviceAccounts.signJwt)
+ *
+ * @param string $name The resource name of the service account in the following
+ * format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ * Using `-` as a wildcard for the project will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param Google_Service_Iam_SignJwtRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_SignJwtResponse
+ */
+ public function signJwt($name, Google_Service_Iam_SignJwtRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('signJwt', array($params), "Google_Service_Iam_SignJwtResponse");
+ }
+ /**
+ * Tests the specified permissions against the IAM access control policy for a
+ * ServiceAccount. (serviceAccounts.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. `resource` is usually specified as a path. For example, a
+ * Project resource is specified as `projects/{project}`.
+ * @param Google_Service_Iam_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_Iam_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Iam_TestIamPermissionsResponse");
+ }
+ /**
+ * Updates a ServiceAccount.
+ *
+ * Currently, only the following fields are updatable: `display_name` . The
+ * `etag` is mandatory. (serviceAccounts.update)
+ *
+ * @param string $name The resource name of the service account in the following
+ * format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ *
+ * Requests using `-` as a wildcard for the project will infer the project from
+ * the `account` and the `account` value can be the `email` address or the
+ * `unique_id` of the service account.
+ *
+ * In responses the resource name will always be in the format
+ * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ * @param Google_Service_Iam_ServiceAccount $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_ServiceAccount
+ */
+ public function update($name, Google_Service_Iam_ServiceAccount $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Iam_ServiceAccount");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccountsKeys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccountsKeys.php
new file mode 100644
index 00000000..3dcb5bcf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccountsKeys.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "keys" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $iamService = new Google_Service_Iam(...);
+ * $keys = $iamService->keys;
+ * </code>
+ */
+class Google_Service_Iam_Resource_ProjectsServiceAccountsKeys extends Google_Service_Resource
+{
+ /**
+ * Creates a ServiceAccountKey and returns it. (keys.create)
+ *
+ * @param string $name The resource name of the service account in the following
+ * format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ * Using `-` as a wildcard for the project will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param Google_Service_Iam_CreateServiceAccountKeyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_ServiceAccountKey
+ */
+ public function create($name, Google_Service_Iam_CreateServiceAccountKeyRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Iam_ServiceAccountKey");
+ }
+ /**
+ * Deletes a ServiceAccountKey. (keys.delete)
+ *
+ * @param string $name The resource name of the service account key in the
+ * following format:
+ * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`.
+ * Using `-` as a wildcard for the project will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_IamEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Iam_IamEmpty");
+ }
+ /**
+ * Gets the ServiceAccountKey by key id. (keys.get)
+ *
+ * @param string $name The resource name of the service account key in the
+ * following format:
+ * `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`.
+ *
+ * Using `-` as a wildcard for the project will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string publicKeyType The output format of the public key
+ * requested. X509_PEM is the default output format.
+ * @return Google_Service_Iam_ServiceAccountKey
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Iam_ServiceAccountKey");
+ }
+ /**
+ * Lists ServiceAccountKeys. (keys.listProjectsServiceAccountsKeys)
+ *
+ * @param string $name The resource name of the service account in the following
+ * format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
+ *
+ * Using `-` as a wildcard for the project, will infer the project from the
+ * account. The `account` value can be the `email` address or the `unique_id` of
+ * the service account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string keyTypes Filters the types of keys the user wants to
+ * include in the list response. Duplicate key types are not allowed. If no key
+ * type is provided, all keys are returned.
+ * @return Google_Service_Iam_ListServiceAccountKeysResponse
+ */
+ public function listProjectsServiceAccountsKeys($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountKeysResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php
new file mode 100644
index 00000000..51ab8e9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Resource/Roles.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "roles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $iamService = new Google_Service_Iam(...);
+ * $roles = $iamService->roles;
+ * </code>
+ */
+class Google_Service_Iam_Resource_Roles extends Google_Service_Resource
+{
+ /**
+ * Queries roles that can be granted on a particular resource. A role is
+ * grantable if it can be used as the role in a binding for a policy for that
+ * resource. (roles.queryGrantableRoles)
+ *
+ * @param Google_Service_Iam_QueryGrantableRolesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Iam_QueryGrantableRolesResponse
+ */
+ public function queryGrantableRoles(Google_Service_Iam_QueryGrantableRolesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('queryGrantableRoles', array($params), "Google_Service_Iam_QueryGrantableRolesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Role.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Role.php
new file mode 100644
index 00000000..07e3bcd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Role.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_Role extends Google_Model
+{
+ public $description;
+ public $name;
+ public $title;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Rule.php
new file mode 100644
index 00000000..46705c88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/Rule.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_Rule extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $action;
+ protected $conditionsType = 'Google_Service_Iam_Condition';
+ protected $conditionsDataType = 'array';
+ public $description;
+ public $in;
+ protected $logConfigType = 'Google_Service_Iam_LogConfig';
+ protected $logConfigDataType = 'array';
+ public $notIn;
+ public $permissions;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIn($in)
+ {
+ $this->in = $in;
+ }
+ public function getIn()
+ {
+ return $this->in;
+ }
+ public function setLogConfig($logConfig)
+ {
+ $this->logConfig = $logConfig;
+ }
+ public function getLogConfig()
+ {
+ return $this->logConfig;
+ }
+ public function setNotIn($notIn)
+ {
+ $this->notIn = $notIn;
+ }
+ public function getNotIn()
+ {
+ return $this->notIn;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php
new file mode 100644
index 00000000..946dd856
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccount.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_ServiceAccount extends Google_Model
+{
+ public $displayName;
+ public $email;
+ public $etag;
+ public $name;
+ public $oauth2ClientId;
+ public $projectId;
+ public $uniqueId;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOauth2ClientId($oauth2ClientId)
+ {
+ $this->oauth2ClientId = $oauth2ClientId;
+ }
+ public function getOauth2ClientId()
+ {
+ return $this->oauth2ClientId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setUniqueId($uniqueId)
+ {
+ $this->uniqueId = $uniqueId;
+ }
+ public function getUniqueId()
+ {
+ return $this->uniqueId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccountKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccountKey.php
new file mode 100644
index 00000000..a65024e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/ServiceAccountKey.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_ServiceAccountKey extends Google_Model
+{
+ public $keyAlgorithm;
+ public $name;
+ public $privateKeyData;
+ public $privateKeyType;
+ public $publicKeyData;
+ public $validAfterTime;
+ public $validBeforeTime;
+
+ public function setKeyAlgorithm($keyAlgorithm)
+ {
+ $this->keyAlgorithm = $keyAlgorithm;
+ }
+ public function getKeyAlgorithm()
+ {
+ return $this->keyAlgorithm;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrivateKeyData($privateKeyData)
+ {
+ $this->privateKeyData = $privateKeyData;
+ }
+ public function getPrivateKeyData()
+ {
+ return $this->privateKeyData;
+ }
+ public function setPrivateKeyType($privateKeyType)
+ {
+ $this->privateKeyType = $privateKeyType;
+ }
+ public function getPrivateKeyType()
+ {
+ return $this->privateKeyType;
+ }
+ public function setPublicKeyData($publicKeyData)
+ {
+ $this->publicKeyData = $publicKeyData;
+ }
+ public function getPublicKeyData()
+ {
+ return $this->publicKeyData;
+ }
+ public function setValidAfterTime($validAfterTime)
+ {
+ $this->validAfterTime = $validAfterTime;
+ }
+ public function getValidAfterTime()
+ {
+ return $this->validAfterTime;
+ }
+ public function setValidBeforeTime($validBeforeTime)
+ {
+ $this->validBeforeTime = $validBeforeTime;
+ }
+ public function getValidBeforeTime()
+ {
+ return $this->validBeforeTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SetIamPolicyRequest.php
new file mode 100644
index 00000000..179610b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SetIamPolicyRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_Iam_Policy';
+ protected $policyDataType = '';
+
+ public function setPolicy(Google_Service_Iam_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobRequest.php
new file mode 100644
index 00000000..aa1b76c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_SignBlobRequest extends Google_Model
+{
+ public $bytesToSign;
+
+ public function setBytesToSign($bytesToSign)
+ {
+ $this->bytesToSign = $bytesToSign;
+ }
+ public function getBytesToSign()
+ {
+ return $this->bytesToSign;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobResponse.php
new file mode 100644
index 00000000..0ae14b09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignBlobResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_SignBlobResponse extends Google_Model
+{
+ public $keyId;
+ public $signature;
+
+ public function setKeyId($keyId)
+ {
+ $this->keyId = $keyId;
+ }
+ public function getKeyId()
+ {
+ return $this->keyId;
+ }
+ public function setSignature($signature)
+ {
+ $this->signature = $signature;
+ }
+ public function getSignature()
+ {
+ return $this->signature;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtRequest.php
new file mode 100644
index 00000000..933e4d7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_SignJwtRequest extends Google_Model
+{
+ public $payload;
+
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtResponse.php
new file mode 100644
index 00000000..81452db4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/SignJwtResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_SignJwtResponse extends Google_Model
+{
+ public $keyId;
+ public $signedJwt;
+
+ public function setKeyId($keyId)
+ {
+ $this->keyId = $keyId;
+ }
+ public function getKeyId()
+ {
+ return $this->keyId;
+ }
+ public function setSignedJwt($signedJwt)
+ {
+ $this->signedJwt = $signedJwt;
+ }
+ public function getSignedJwt()
+ {
+ return $this->signedJwt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..51680d13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..fd56c51e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Iam/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Iam_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit.php
new file mode 100644
index 00000000..a1fb0a62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit.php
@@ -0,0 +1,143 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for IdentityToolkit (v3).
+ *
+ * <p>
+ * Help the third party sites to implement federated login.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/identity-toolkit/v3/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_IdentityToolkit extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View and administer all your Firebase data and settings. */
+ const FIREBASE =
+ "https://www.googleapis.com/auth/firebase";
+
+ public $relyingparty;
+
+ /**
+ * Constructs the internal representation of the IdentityToolkit service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'identitytoolkit/v3/relyingparty/';
+ $this->version = 'v3';
+ $this->serviceName = 'identitytoolkit';
+
+ $this->relyingparty = new Google_Service_IdentityToolkit_Resource_Relyingparty(
+ $this,
+ $this->serviceName,
+ 'relyingparty',
+ array(
+ 'methods' => array(
+ 'createAuthUri' => array(
+ 'path' => 'createAuthUri',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'deleteAccount' => array(
+ 'path' => 'deleteAccount',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'downloadAccount' => array(
+ 'path' => 'downloadAccount',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'getAccountInfo' => array(
+ 'path' => 'getAccountInfo',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'getOobConfirmationCode' => array(
+ 'path' => 'getOobConfirmationCode',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'getProjectConfig' => array(
+ 'path' => 'getProjectConfig',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'delegatedProjectNumber' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projectNumber' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getPublicKeys' => array(
+ 'path' => 'publicKeys',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'getRecaptchaParam' => array(
+ 'path' => 'getRecaptchaParam',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'resetPassword' => array(
+ 'path' => 'resetPassword',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'setAccountInfo' => array(
+ 'path' => 'setAccountInfo',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'setProjectConfig' => array(
+ 'path' => 'setProjectConfig',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'signOutUser' => array(
+ 'path' => 'signOutUser',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'signupNewUser' => array(
+ 'path' => 'signupNewUser',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'uploadAccount' => array(
+ 'path' => 'uploadAccount',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'verifyAssertion' => array(
+ 'path' => 'verifyAssertion',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'verifyCustomToken' => array(
+ 'path' => 'verifyCustomToken',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'verifyPassword' => array(
+ 'path' => 'verifyPassword',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/CreateAuthUriResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/CreateAuthUriResponse.php
new file mode 100644
index 00000000..8cc940bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/CreateAuthUriResponse.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_CreateAuthUriResponse extends Google_Collection
+{
+ protected $collection_key = 'allProviders';
+ public $allProviders;
+ public $authUri;
+ public $captchaRequired;
+ public $forExistingProvider;
+ public $kind;
+ public $providerId;
+ public $registered;
+ public $sessionId;
+
+ public function setAllProviders($allProviders)
+ {
+ $this->allProviders = $allProviders;
+ }
+ public function getAllProviders()
+ {
+ return $this->allProviders;
+ }
+ public function setAuthUri($authUri)
+ {
+ $this->authUri = $authUri;
+ }
+ public function getAuthUri()
+ {
+ return $this->authUri;
+ }
+ public function setCaptchaRequired($captchaRequired)
+ {
+ $this->captchaRequired = $captchaRequired;
+ }
+ public function getCaptchaRequired()
+ {
+ return $this->captchaRequired;
+ }
+ public function setForExistingProvider($forExistingProvider)
+ {
+ $this->forExistingProvider = $forExistingProvider;
+ }
+ public function getForExistingProvider()
+ {
+ return $this->forExistingProvider;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProviderId($providerId)
+ {
+ $this->providerId = $providerId;
+ }
+ public function getProviderId()
+ {
+ return $this->providerId;
+ }
+ public function setRegistered($registered)
+ {
+ $this->registered = $registered;
+ }
+ public function getRegistered()
+ {
+ return $this->registered;
+ }
+ public function setSessionId($sessionId)
+ {
+ $this->sessionId = $sessionId;
+ }
+ public function getSessionId()
+ {
+ return $this->sessionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DeleteAccountResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DeleteAccountResponse.php
new file mode 100644
index 00000000..62997d6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DeleteAccountResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_DeleteAccountResponse extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DownloadAccountResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DownloadAccountResponse.php
new file mode 100644
index 00000000..4ea793f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/DownloadAccountResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_DownloadAccountResponse extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $kind;
+ public $nextPageToken;
+ protected $usersType = 'Google_Service_IdentityToolkit_UserInfo';
+ protected $usersDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/EmailTemplate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/EmailTemplate.php
new file mode 100644
index 00000000..bc5f9b73
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/EmailTemplate.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_EmailTemplate extends Google_Model
+{
+ public $body;
+ public $format;
+ public $from;
+ public $fromDisplayName;
+ public $replyTo;
+ public $subject;
+
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setFrom($from)
+ {
+ $this->from = $from;
+ }
+ public function getFrom()
+ {
+ return $this->from;
+ }
+ public function setFromDisplayName($fromDisplayName)
+ {
+ $this->fromDisplayName = $fromDisplayName;
+ }
+ public function getFromDisplayName()
+ {
+ return $this->fromDisplayName;
+ }
+ public function setReplyTo($replyTo)
+ {
+ $this->replyTo = $replyTo;
+ }
+ public function getReplyTo()
+ {
+ return $this->replyTo;
+ }
+ public function setSubject($subject)
+ {
+ $this->subject = $subject;
+ }
+ public function getSubject()
+ {
+ return $this->subject;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetAccountInfoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetAccountInfoResponse.php
new file mode 100644
index 00000000..a9e647c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetAccountInfoResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_GetAccountInfoResponse extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $kind;
+ protected $usersType = 'Google_Service_IdentityToolkit_UserInfo';
+ protected $usersDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetOobConfirmationCodeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetOobConfirmationCodeResponse.php
new file mode 100644
index 00000000..1f5fc0f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetOobConfirmationCodeResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Google_Model
+{
+ public $email;
+ public $kind;
+ public $oobCode;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOobCode($oobCode)
+ {
+ $this->oobCode = $oobCode;
+ }
+ public function getOobCode()
+ {
+ return $this->oobCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetRecaptchaParamResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetRecaptchaParamResponse.php
new file mode 100644
index 00000000..ae598afa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/GetRecaptchaParamResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_GetRecaptchaParamResponse extends Google_Model
+{
+ public $kind;
+ public $recaptchaSiteKey;
+ public $recaptchaStoken;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRecaptchaSiteKey($recaptchaSiteKey)
+ {
+ $this->recaptchaSiteKey = $recaptchaSiteKey;
+ }
+ public function getRecaptchaSiteKey()
+ {
+ return $this->recaptchaSiteKey;
+ }
+ public function setRecaptchaStoken($recaptchaStoken)
+ {
+ $this->recaptchaStoken = $recaptchaStoken;
+ }
+ public function getRecaptchaStoken()
+ {
+ return $this->recaptchaStoken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php
new file mode 100644
index 00000000..801d638f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequest.php
@@ -0,0 +1,147 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model
+{
+ public $appId;
+ public $authFlowType;
+ public $clientId;
+ public $context;
+ public $continueUri;
+ public $customParameter;
+ public $hostedDomain;
+ public $identifier;
+ public $oauthConsumerKey;
+ public $oauthScope;
+ public $openidRealm;
+ public $otaApp;
+ public $providerId;
+ public $sessionId;
+
+ public function setAppId($appId)
+ {
+ $this->appId = $appId;
+ }
+ public function getAppId()
+ {
+ return $this->appId;
+ }
+ public function setAuthFlowType($authFlowType)
+ {
+ $this->authFlowType = $authFlowType;
+ }
+ public function getAuthFlowType()
+ {
+ return $this->authFlowType;
+ }
+ public function setClientId($clientId)
+ {
+ $this->clientId = $clientId;
+ }
+ public function getClientId()
+ {
+ return $this->clientId;
+ }
+ public function setContext($context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setContinueUri($continueUri)
+ {
+ $this->continueUri = $continueUri;
+ }
+ public function getContinueUri()
+ {
+ return $this->continueUri;
+ }
+ public function setCustomParameter($customParameter)
+ {
+ $this->customParameter = $customParameter;
+ }
+ public function getCustomParameter()
+ {
+ return $this->customParameter;
+ }
+ public function setHostedDomain($hostedDomain)
+ {
+ $this->hostedDomain = $hostedDomain;
+ }
+ public function getHostedDomain()
+ {
+ return $this->hostedDomain;
+ }
+ public function setIdentifier($identifier)
+ {
+ $this->identifier = $identifier;
+ }
+ public function getIdentifier()
+ {
+ return $this->identifier;
+ }
+ public function setOauthConsumerKey($oauthConsumerKey)
+ {
+ $this->oauthConsumerKey = $oauthConsumerKey;
+ }
+ public function getOauthConsumerKey()
+ {
+ return $this->oauthConsumerKey;
+ }
+ public function setOauthScope($oauthScope)
+ {
+ $this->oauthScope = $oauthScope;
+ }
+ public function getOauthScope()
+ {
+ return $this->oauthScope;
+ }
+ public function setOpenidRealm($openidRealm)
+ {
+ $this->openidRealm = $openidRealm;
+ }
+ public function getOpenidRealm()
+ {
+ return $this->openidRealm;
+ }
+ public function setOtaApp($otaApp)
+ {
+ $this->otaApp = $otaApp;
+ }
+ public function getOtaApp()
+ {
+ return $this->otaApp;
+ }
+ public function setProviderId($providerId)
+ {
+ $this->providerId = $providerId;
+ }
+ public function getProviderId()
+ {
+ return $this->providerId;
+ }
+ public function setSessionId($sessionId)
+ {
+ $this->sessionId = $sessionId;
+ }
+ public function getSessionId()
+ {
+ return $this->sessionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequestCustomParameter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequestCustomParameter.php
new file mode 100644
index 00000000..daf6a900
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyCreateAuthUriRequestCustomParameter.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequestCustomParameter extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDeleteAccountRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDeleteAccountRequest.php
new file mode 100644
index 00000000..8a5cbc9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDeleteAccountRequest.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest extends Google_Model
+{
+ public $delegatedProjectNumber;
+ public $idToken;
+ public $localId;
+
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDownloadAccountRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDownloadAccountRequest.php
new file mode 100644
index 00000000..8f889d53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyDownloadAccountRequest.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest extends Google_Model
+{
+ public $delegatedProjectNumber;
+ public $maxResults;
+ public $nextPageToken;
+ public $targetProjectId;
+
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setMaxResults($maxResults)
+ {
+ $this->maxResults = $maxResults;
+ }
+ public function getMaxResults()
+ {
+ return $this->maxResults;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTargetProjectId($targetProjectId)
+ {
+ $this->targetProjectId = $targetProjectId;
+ }
+ public function getTargetProjectId()
+ {
+ return $this->targetProjectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetAccountInfoRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetAccountInfoRequest.php
new file mode 100644
index 00000000..30af08da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetAccountInfoRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest extends Google_Collection
+{
+ protected $collection_key = 'localId';
+ public $delegatedProjectNumber;
+ public $email;
+ public $idToken;
+ public $localId;
+
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetProjectConfigResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetProjectConfigResponse.php
new file mode 100644
index 00000000..be15bc3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyGetProjectConfigResponse.php
@@ -0,0 +1,135 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse extends Google_Collection
+{
+ protected $collection_key = 'idpConfig';
+ public $allowPasswordUser;
+ public $apiKey;
+ public $authorizedDomains;
+ protected $changeEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $changeEmailTemplateDataType = '';
+ public $dynamicLinksDomain;
+ public $enableAnonymousUser;
+ protected $idpConfigType = 'Google_Service_IdentityToolkit_IdpConfig';
+ protected $idpConfigDataType = 'array';
+ protected $legacyResetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $legacyResetPasswordTemplateDataType = '';
+ public $projectId;
+ protected $resetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $resetPasswordTemplateDataType = '';
+ public $useEmailSending;
+ protected $verifyEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $verifyEmailTemplateDataType = '';
+
+ public function setAllowPasswordUser($allowPasswordUser)
+ {
+ $this->allowPasswordUser = $allowPasswordUser;
+ }
+ public function getAllowPasswordUser()
+ {
+ return $this->allowPasswordUser;
+ }
+ public function setApiKey($apiKey)
+ {
+ $this->apiKey = $apiKey;
+ }
+ public function getApiKey()
+ {
+ return $this->apiKey;
+ }
+ public function setAuthorizedDomains($authorizedDomains)
+ {
+ $this->authorizedDomains = $authorizedDomains;
+ }
+ public function getAuthorizedDomains()
+ {
+ return $this->authorizedDomains;
+ }
+ public function setChangeEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $changeEmailTemplate)
+ {
+ $this->changeEmailTemplate = $changeEmailTemplate;
+ }
+ public function getChangeEmailTemplate()
+ {
+ return $this->changeEmailTemplate;
+ }
+ public function setDynamicLinksDomain($dynamicLinksDomain)
+ {
+ $this->dynamicLinksDomain = $dynamicLinksDomain;
+ }
+ public function getDynamicLinksDomain()
+ {
+ return $this->dynamicLinksDomain;
+ }
+ public function setEnableAnonymousUser($enableAnonymousUser)
+ {
+ $this->enableAnonymousUser = $enableAnonymousUser;
+ }
+ public function getEnableAnonymousUser()
+ {
+ return $this->enableAnonymousUser;
+ }
+ public function setIdpConfig($idpConfig)
+ {
+ $this->idpConfig = $idpConfig;
+ }
+ public function getIdpConfig()
+ {
+ return $this->idpConfig;
+ }
+ public function setLegacyResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $legacyResetPasswordTemplate)
+ {
+ $this->legacyResetPasswordTemplate = $legacyResetPasswordTemplate;
+ }
+ public function getLegacyResetPasswordTemplate()
+ {
+ return $this->legacyResetPasswordTemplate;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $resetPasswordTemplate)
+ {
+ $this->resetPasswordTemplate = $resetPasswordTemplate;
+ }
+ public function getResetPasswordTemplate()
+ {
+ return $this->resetPasswordTemplate;
+ }
+ public function setUseEmailSending($useEmailSending)
+ {
+ $this->useEmailSending = $useEmailSending;
+ }
+ public function getUseEmailSending()
+ {
+ return $this->useEmailSending;
+ }
+ public function setVerifyEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $verifyEmailTemplate)
+ {
+ $this->verifyEmailTemplate = $verifyEmailTemplate;
+ }
+ public function getVerifyEmailTemplate()
+ {
+ return $this->verifyEmailTemplate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyResetPasswordRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyResetPasswordRequest.php
new file mode 100644
index 00000000..e2a85f25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyResetPasswordRequest.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest extends Google_Model
+{
+ public $email;
+ public $newPassword;
+ public $oldPassword;
+ public $oobCode;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setNewPassword($newPassword)
+ {
+ $this->newPassword = $newPassword;
+ }
+ public function getNewPassword()
+ {
+ return $this->newPassword;
+ }
+ public function setOldPassword($oldPassword)
+ {
+ $this->oldPassword = $oldPassword;
+ }
+ public function getOldPassword()
+ {
+ return $this->oldPassword;
+ }
+ public function setOobCode($oobCode)
+ {
+ $this->oobCode = $oobCode;
+ }
+ public function getOobCode()
+ {
+ return $this->oobCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetAccountInfoRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetAccountInfoRequest.php
new file mode 100644
index 00000000..45b0dcc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetAccountInfoRequest.php
@@ -0,0 +1,211 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest extends Google_Collection
+{
+ protected $collection_key = 'provider';
+ public $captchaChallenge;
+ public $captchaResponse;
+ public $createdAt;
+ public $delegatedProjectNumber;
+ public $deleteAttribute;
+ public $deleteProvider;
+ public $disableUser;
+ public $displayName;
+ public $email;
+ public $emailVerified;
+ public $idToken;
+ public $instanceId;
+ public $lastLoginAt;
+ public $localId;
+ public $oobCode;
+ public $password;
+ public $photoUrl;
+ public $provider;
+ public $returnSecureToken;
+ public $upgradeToFederatedLogin;
+ public $validSince;
+
+ public function setCaptchaChallenge($captchaChallenge)
+ {
+ $this->captchaChallenge = $captchaChallenge;
+ }
+ public function getCaptchaChallenge()
+ {
+ return $this->captchaChallenge;
+ }
+ public function setCaptchaResponse($captchaResponse)
+ {
+ $this->captchaResponse = $captchaResponse;
+ }
+ public function getCaptchaResponse()
+ {
+ return $this->captchaResponse;
+ }
+ public function setCreatedAt($createdAt)
+ {
+ $this->createdAt = $createdAt;
+ }
+ public function getCreatedAt()
+ {
+ return $this->createdAt;
+ }
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setDeleteAttribute($deleteAttribute)
+ {
+ $this->deleteAttribute = $deleteAttribute;
+ }
+ public function getDeleteAttribute()
+ {
+ return $this->deleteAttribute;
+ }
+ public function setDeleteProvider($deleteProvider)
+ {
+ $this->deleteProvider = $deleteProvider;
+ }
+ public function getDeleteProvider()
+ {
+ return $this->deleteProvider;
+ }
+ public function setDisableUser($disableUser)
+ {
+ $this->disableUser = $disableUser;
+ }
+ public function getDisableUser()
+ {
+ return $this->disableUser;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEmailVerified($emailVerified)
+ {
+ $this->emailVerified = $emailVerified;
+ }
+ public function getEmailVerified()
+ {
+ return $this->emailVerified;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setLastLoginAt($lastLoginAt)
+ {
+ $this->lastLoginAt = $lastLoginAt;
+ }
+ public function getLastLoginAt()
+ {
+ return $this->lastLoginAt;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+ public function setOobCode($oobCode)
+ {
+ $this->oobCode = $oobCode;
+ }
+ public function getOobCode()
+ {
+ return $this->oobCode;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setProvider($provider)
+ {
+ $this->provider = $provider;
+ }
+ public function getProvider()
+ {
+ return $this->provider;
+ }
+ public function setReturnSecureToken($returnSecureToken)
+ {
+ $this->returnSecureToken = $returnSecureToken;
+ }
+ public function getReturnSecureToken()
+ {
+ return $this->returnSecureToken;
+ }
+ public function setUpgradeToFederatedLogin($upgradeToFederatedLogin)
+ {
+ $this->upgradeToFederatedLogin = $upgradeToFederatedLogin;
+ }
+ public function getUpgradeToFederatedLogin()
+ {
+ return $this->upgradeToFederatedLogin;
+ }
+ public function setValidSince($validSince)
+ {
+ $this->validSince = $validSince;
+ }
+ public function getValidSince()
+ {
+ return $this->validSince;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigRequest.php
new file mode 100644
index 00000000..9c004162
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigRequest.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest extends Google_Collection
+{
+ protected $collection_key = 'idpConfig';
+ public $allowPasswordUser;
+ public $apiKey;
+ public $authorizedDomains;
+ protected $changeEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $changeEmailTemplateDataType = '';
+ public $delegatedProjectNumber;
+ public $enableAnonymousUser;
+ protected $idpConfigType = 'Google_Service_IdentityToolkit_IdpConfig';
+ protected $idpConfigDataType = 'array';
+ protected $legacyResetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $legacyResetPasswordTemplateDataType = '';
+ protected $resetPasswordTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $resetPasswordTemplateDataType = '';
+ public $useEmailSending;
+ protected $verifyEmailTemplateType = 'Google_Service_IdentityToolkit_EmailTemplate';
+ protected $verifyEmailTemplateDataType = '';
+
+ public function setAllowPasswordUser($allowPasswordUser)
+ {
+ $this->allowPasswordUser = $allowPasswordUser;
+ }
+ public function getAllowPasswordUser()
+ {
+ return $this->allowPasswordUser;
+ }
+ public function setApiKey($apiKey)
+ {
+ $this->apiKey = $apiKey;
+ }
+ public function getApiKey()
+ {
+ return $this->apiKey;
+ }
+ public function setAuthorizedDomains($authorizedDomains)
+ {
+ $this->authorizedDomains = $authorizedDomains;
+ }
+ public function getAuthorizedDomains()
+ {
+ return $this->authorizedDomains;
+ }
+ public function setChangeEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $changeEmailTemplate)
+ {
+ $this->changeEmailTemplate = $changeEmailTemplate;
+ }
+ public function getChangeEmailTemplate()
+ {
+ return $this->changeEmailTemplate;
+ }
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setEnableAnonymousUser($enableAnonymousUser)
+ {
+ $this->enableAnonymousUser = $enableAnonymousUser;
+ }
+ public function getEnableAnonymousUser()
+ {
+ return $this->enableAnonymousUser;
+ }
+ public function setIdpConfig($idpConfig)
+ {
+ $this->idpConfig = $idpConfig;
+ }
+ public function getIdpConfig()
+ {
+ return $this->idpConfig;
+ }
+ public function setLegacyResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $legacyResetPasswordTemplate)
+ {
+ $this->legacyResetPasswordTemplate = $legacyResetPasswordTemplate;
+ }
+ public function getLegacyResetPasswordTemplate()
+ {
+ return $this->legacyResetPasswordTemplate;
+ }
+ public function setResetPasswordTemplate(Google_Service_IdentityToolkit_EmailTemplate $resetPasswordTemplate)
+ {
+ $this->resetPasswordTemplate = $resetPasswordTemplate;
+ }
+ public function getResetPasswordTemplate()
+ {
+ return $this->resetPasswordTemplate;
+ }
+ public function setUseEmailSending($useEmailSending)
+ {
+ $this->useEmailSending = $useEmailSending;
+ }
+ public function getUseEmailSending()
+ {
+ return $this->useEmailSending;
+ }
+ public function setVerifyEmailTemplate(Google_Service_IdentityToolkit_EmailTemplate $verifyEmailTemplate)
+ {
+ $this->verifyEmailTemplate = $verifyEmailTemplate;
+ }
+ public function getVerifyEmailTemplate()
+ {
+ return $this->verifyEmailTemplate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigResponse.php
new file mode 100644
index 00000000..484a135f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySetProjectConfigResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse extends Google_Model
+{
+ public $projectId;
+
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserRequest.php
new file mode 100644
index 00000000..815aab58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest extends Google_Model
+{
+ public $instanceId;
+ public $localId;
+
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserResponse.php
new file mode 100644
index 00000000..28d32120
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignOutUserResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse extends Google_Model
+{
+ public $localId;
+
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php
new file mode 100644
index 00000000..45534b57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartySignupNewUserRequest.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest extends Google_Model
+{
+ public $captchaChallenge;
+ public $captchaResponse;
+ public $disabled;
+ public $displayName;
+ public $email;
+ public $emailVerified;
+ public $idToken;
+ public $instanceId;
+ public $localId;
+ public $password;
+ public $photoUrl;
+
+ public function setCaptchaChallenge($captchaChallenge)
+ {
+ $this->captchaChallenge = $captchaChallenge;
+ }
+ public function getCaptchaChallenge()
+ {
+ return $this->captchaChallenge;
+ }
+ public function setCaptchaResponse($captchaResponse)
+ {
+ $this->captchaResponse = $captchaResponse;
+ }
+ public function getCaptchaResponse()
+ {
+ return $this->captchaResponse;
+ }
+ public function setDisabled($disabled)
+ {
+ $this->disabled = $disabled;
+ }
+ public function getDisabled()
+ {
+ return $this->disabled;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEmailVerified($emailVerified)
+ {
+ $this->emailVerified = $emailVerified;
+ }
+ public function getEmailVerified()
+ {
+ return $this->emailVerified;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyUploadAccountRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyUploadAccountRequest.php
new file mode 100644
index 00000000..de963cda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyUploadAccountRequest.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $allowOverwrite;
+ public $delegatedProjectNumber;
+ public $hashAlgorithm;
+ public $memoryCost;
+ public $rounds;
+ public $saltSeparator;
+ public $sanityCheck;
+ public $signerKey;
+ public $targetProjectId;
+ protected $usersType = 'Google_Service_IdentityToolkit_UserInfo';
+ protected $usersDataType = 'array';
+
+ public function setAllowOverwrite($allowOverwrite)
+ {
+ $this->allowOverwrite = $allowOverwrite;
+ }
+ public function getAllowOverwrite()
+ {
+ return $this->allowOverwrite;
+ }
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->hashAlgorithm = $hashAlgorithm;
+ }
+ public function getHashAlgorithm()
+ {
+ return $this->hashAlgorithm;
+ }
+ public function setMemoryCost($memoryCost)
+ {
+ $this->memoryCost = $memoryCost;
+ }
+ public function getMemoryCost()
+ {
+ return $this->memoryCost;
+ }
+ public function setRounds($rounds)
+ {
+ $this->rounds = $rounds;
+ }
+ public function getRounds()
+ {
+ return $this->rounds;
+ }
+ public function setSaltSeparator($saltSeparator)
+ {
+ $this->saltSeparator = $saltSeparator;
+ }
+ public function getSaltSeparator()
+ {
+ return $this->saltSeparator;
+ }
+ public function setSanityCheck($sanityCheck)
+ {
+ $this->sanityCheck = $sanityCheck;
+ }
+ public function getSanityCheck()
+ {
+ return $this->sanityCheck;
+ }
+ public function setSignerKey($signerKey)
+ {
+ $this->signerKey = $signerKey;
+ }
+ public function getSignerKey()
+ {
+ return $this->signerKey;
+ }
+ public function setTargetProjectId($targetProjectId)
+ {
+ $this->targetProjectId = $targetProjectId;
+ }
+ public function getTargetProjectId()
+ {
+ return $this->targetProjectId;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php
new file mode 100644
index 00000000..d0841034
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyAssertionRequest.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest extends Google_Model
+{
+ public $delegatedProjectNumber;
+ public $idToken;
+ public $instanceId;
+ public $pendingIdToken;
+ public $postBody;
+ public $requestUri;
+ public $returnIdpCredential;
+ public $returnRefreshToken;
+ public $returnSecureToken;
+ public $sessionId;
+
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setPendingIdToken($pendingIdToken)
+ {
+ $this->pendingIdToken = $pendingIdToken;
+ }
+ public function getPendingIdToken()
+ {
+ return $this->pendingIdToken;
+ }
+ public function setPostBody($postBody)
+ {
+ $this->postBody = $postBody;
+ }
+ public function getPostBody()
+ {
+ return $this->postBody;
+ }
+ public function setRequestUri($requestUri)
+ {
+ $this->requestUri = $requestUri;
+ }
+ public function getRequestUri()
+ {
+ return $this->requestUri;
+ }
+ public function setReturnIdpCredential($returnIdpCredential)
+ {
+ $this->returnIdpCredential = $returnIdpCredential;
+ }
+ public function getReturnIdpCredential()
+ {
+ return $this->returnIdpCredential;
+ }
+ public function setReturnRefreshToken($returnRefreshToken)
+ {
+ $this->returnRefreshToken = $returnRefreshToken;
+ }
+ public function getReturnRefreshToken()
+ {
+ return $this->returnRefreshToken;
+ }
+ public function setReturnSecureToken($returnSecureToken)
+ {
+ $this->returnSecureToken = $returnSecureToken;
+ }
+ public function getReturnSecureToken()
+ {
+ return $this->returnSecureToken;
+ }
+ public function setSessionId($sessionId)
+ {
+ $this->sessionId = $sessionId;
+ }
+ public function getSessionId()
+ {
+ return $this->sessionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.php
new file mode 100644
index 00000000..f2fe712e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest extends Google_Model
+{
+ public $delegatedProjectNumber;
+ public $instanceId;
+ public $returnSecureToken;
+ public $token;
+
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setReturnSecureToken($returnSecureToken)
+ {
+ $this->returnSecureToken = $returnSecureToken;
+ }
+ public function getReturnSecureToken()
+ {
+ return $this->returnSecureToken;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php
new file mode 100644
index 00000000..7115a251
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdentitytoolkitRelyingpartyVerifyPasswordRequest.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model
+{
+ public $captchaChallenge;
+ public $captchaResponse;
+ public $delegatedProjectNumber;
+ public $email;
+ public $idToken;
+ public $instanceId;
+ public $password;
+ public $pendingIdToken;
+ public $returnSecureToken;
+
+ public function setCaptchaChallenge($captchaChallenge)
+ {
+ $this->captchaChallenge = $captchaChallenge;
+ }
+ public function getCaptchaChallenge()
+ {
+ return $this->captchaChallenge;
+ }
+ public function setCaptchaResponse($captchaResponse)
+ {
+ $this->captchaResponse = $captchaResponse;
+ }
+ public function getCaptchaResponse()
+ {
+ return $this->captchaResponse;
+ }
+ public function setDelegatedProjectNumber($delegatedProjectNumber)
+ {
+ $this->delegatedProjectNumber = $delegatedProjectNumber;
+ }
+ public function getDelegatedProjectNumber()
+ {
+ return $this->delegatedProjectNumber;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setPendingIdToken($pendingIdToken)
+ {
+ $this->pendingIdToken = $pendingIdToken;
+ }
+ public function getPendingIdToken()
+ {
+ return $this->pendingIdToken;
+ }
+ public function setReturnSecureToken($returnSecureToken)
+ {
+ $this->returnSecureToken = $returnSecureToken;
+ }
+ public function getReturnSecureToken()
+ {
+ return $this->returnSecureToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdpConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdpConfig.php
new file mode 100644
index 00000000..ba4655af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/IdpConfig.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_IdpConfig extends Google_Collection
+{
+ protected $collection_key = 'whitelistedAudiences';
+ public $clientId;
+ public $enabled;
+ public $experimentPercent;
+ public $provider;
+ public $secret;
+ public $whitelistedAudiences;
+
+ public function setClientId($clientId)
+ {
+ $this->clientId = $clientId;
+ }
+ public function getClientId()
+ {
+ return $this->clientId;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setExperimentPercent($experimentPercent)
+ {
+ $this->experimentPercent = $experimentPercent;
+ }
+ public function getExperimentPercent()
+ {
+ return $this->experimentPercent;
+ }
+ public function setProvider($provider)
+ {
+ $this->provider = $provider;
+ }
+ public function getProvider()
+ {
+ return $this->provider;
+ }
+ public function setSecret($secret)
+ {
+ $this->secret = $secret;
+ }
+ public function getSecret()
+ {
+ return $this->secret;
+ }
+ public function setWhitelistedAudiences($whitelistedAudiences)
+ {
+ $this->whitelistedAudiences = $whitelistedAudiences;
+ }
+ public function getWhitelistedAudiences()
+ {
+ return $this->whitelistedAudiences;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Relyingparty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Relyingparty.php
new file mode 100644
index 00000000..19e2ecbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Relyingparty.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_Relyingparty extends Google_Model
+{
+ public $captchaResp;
+ public $challenge;
+ public $email;
+ public $idToken;
+ public $kind;
+ public $newEmail;
+ public $requestType;
+ public $userIp;
+
+ public function setCaptchaResp($captchaResp)
+ {
+ $this->captchaResp = $captchaResp;
+ }
+ public function getCaptchaResp()
+ {
+ return $this->captchaResp;
+ }
+ public function setChallenge($challenge)
+ {
+ $this->challenge = $challenge;
+ }
+ public function getChallenge()
+ {
+ return $this->challenge;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewEmail($newEmail)
+ {
+ $this->newEmail = $newEmail;
+ }
+ public function getNewEmail()
+ {
+ return $this->newEmail;
+ }
+ public function setRequestType($requestType)
+ {
+ $this->requestType = $requestType;
+ }
+ public function getRequestType()
+ {
+ return $this->requestType;
+ }
+ public function setUserIp($userIp)
+ {
+ $this->userIp = $userIp;
+ }
+ public function getUserIp()
+ {
+ return $this->userIp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/ResetPasswordResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/ResetPasswordResponse.php
new file mode 100644
index 00000000..d2e30f0f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/ResetPasswordResponse.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_ResetPasswordResponse extends Google_Model
+{
+ public $email;
+ public $kind;
+ public $newEmail;
+ public $requestType;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNewEmail($newEmail)
+ {
+ $this->newEmail = $newEmail;
+ }
+ public function getNewEmail()
+ {
+ return $this->newEmail;
+ }
+ public function setRequestType($requestType)
+ {
+ $this->requestType = $requestType;
+ }
+ public function getRequestType()
+ {
+ return $this->requestType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Resource/Relyingparty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Resource/Relyingparty.php
new file mode 100644
index 00000000..c6cd74db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/Resource/Relyingparty.php
@@ -0,0 +1,252 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "relyingparty" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $identitytoolkitService = new Google_Service_IdentityToolkit(...);
+ * $relyingparty = $identitytoolkitService->relyingparty;
+ * </code>
+ */
+class Google_Service_IdentityToolkit_Resource_Relyingparty extends Google_Service_Resource
+{
+ /**
+ * Creates the URI used by the IdP to authenticate the user.
+ * (relyingparty.createAuthUri)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_CreateAuthUriResponse
+ */
+ public function createAuthUri(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createAuthUri', array($params), "Google_Service_IdentityToolkit_CreateAuthUriResponse");
+ }
+ /**
+ * Delete user account. (relyingparty.deleteAccount)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_DeleteAccountResponse
+ */
+ public function deleteAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDeleteAccountRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteAccount', array($params), "Google_Service_IdentityToolkit_DeleteAccountResponse");
+ }
+ /**
+ * Batch download user accounts. (relyingparty.downloadAccount)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_DownloadAccountResponse
+ */
+ public function downloadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyDownloadAccountRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('downloadAccount', array($params), "Google_Service_IdentityToolkit_DownloadAccountResponse");
+ }
+ /**
+ * Returns the account info. (relyingparty.getAccountInfo)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_GetAccountInfoResponse
+ */
+ public function getAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetAccountInfoRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAccountInfo', array($params), "Google_Service_IdentityToolkit_GetAccountInfoResponse");
+ }
+ /**
+ * Get a code for user action confirmation.
+ * (relyingparty.getOobConfirmationCode)
+ *
+ * @param Google_Service_IdentityToolkit_Relyingparty $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse
+ */
+ public function getOobConfirmationCode(Google_Service_IdentityToolkit_Relyingparty $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getOobConfirmationCode', array($params), "Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse");
+ }
+ /**
+ * Get project configuration. (relyingparty.getProjectConfig)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delegatedProjectNumber Delegated GCP project number of the
+ * request.
+ * @opt_param string projectNumber GCP project number of the request.
+ * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse
+ */
+ public function getProjectConfig($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetProjectConfigResponse");
+ }
+ /**
+ * Get token signing public key. (relyingparty.getPublicKeys)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse
+ */
+ public function getPublicKeys($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse");
+ }
+ /**
+ * Get recaptcha secure param. (relyingparty.getRecaptchaParam)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_GetRecaptchaParamResponse
+ */
+ public function getRecaptchaParam($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getRecaptchaParam', array($params), "Google_Service_IdentityToolkit_GetRecaptchaParamResponse");
+ }
+ /**
+ * Reset password for a user. (relyingparty.resetPassword)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_ResetPasswordResponse
+ */
+ public function resetPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyResetPasswordRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetPassword', array($params), "Google_Service_IdentityToolkit_ResetPasswordResponse");
+ }
+ /**
+ * Set account info for a user. (relyingparty.setAccountInfo)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_SetAccountInfoResponse
+ */
+ public function setAccountInfo(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setAccountInfo', array($params), "Google_Service_IdentityToolkit_SetAccountInfoResponse");
+ }
+ /**
+ * Set project configuration. (relyingparty.setProjectConfig)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse
+ */
+ public function setProjectConfig(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setProjectConfig', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetProjectConfigResponse");
+ }
+ /**
+ * Sign out user. (relyingparty.signOutUser)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse
+ */
+ public function signOutUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('signOutUser', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignOutUserResponse");
+ }
+ /**
+ * Signup new user. (relyingparty.signupNewUser)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_SignupNewUserResponse
+ */
+ public function signupNewUser(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySignupNewUserRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('signupNewUser', array($params), "Google_Service_IdentityToolkit_SignupNewUserResponse");
+ }
+ /**
+ * Batch upload existing user accounts. (relyingparty.uploadAccount)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_UploadAccountResponse
+ */
+ public function uploadAccount(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('uploadAccount', array($params), "Google_Service_IdentityToolkit_UploadAccountResponse");
+ }
+ /**
+ * Verifies the assertion returned by the IdP. (relyingparty.verifyAssertion)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_VerifyAssertionResponse
+ */
+ public function verifyAssertion(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('verifyAssertion', array($params), "Google_Service_IdentityToolkit_VerifyAssertionResponse");
+ }
+ /**
+ * Verifies the developer asserted ID token. (relyingparty.verifyCustomToken)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_VerifyCustomTokenResponse
+ */
+ public function verifyCustomToken(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyCustomTokenRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('verifyCustomToken', array($params), "Google_Service_IdentityToolkit_VerifyCustomTokenResponse");
+ }
+ /**
+ * Verifies the user entered password. (relyingparty.verifyPassword)
+ *
+ * @param Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_IdentityToolkit_VerifyPasswordResponse
+ */
+ public function verifyPassword(Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('verifyPassword', array($params), "Google_Service_IdentityToolkit_VerifyPasswordResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponse.php
new file mode 100644
index 00000000..3500c609
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponse.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_SetAccountInfoResponse extends Google_Collection
+{
+ protected $collection_key = 'providerUserInfo';
+ public $displayName;
+ public $email;
+ public $emailVerified;
+ public $expiresIn;
+ public $idToken;
+ public $kind;
+ public $localId;
+ public $newEmail;
+ public $passwordHash;
+ public $photoUrl;
+ protected $providerUserInfoType = 'Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo';
+ protected $providerUserInfoDataType = 'array';
+ public $refreshToken;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEmailVerified($emailVerified)
+ {
+ $this->emailVerified = $emailVerified;
+ }
+ public function getEmailVerified()
+ {
+ return $this->emailVerified;
+ }
+ public function setExpiresIn($expiresIn)
+ {
+ $this->expiresIn = $expiresIn;
+ }
+ public function getExpiresIn()
+ {
+ return $this->expiresIn;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+ public function setNewEmail($newEmail)
+ {
+ $this->newEmail = $newEmail;
+ }
+ public function getNewEmail()
+ {
+ return $this->newEmail;
+ }
+ public function setPasswordHash($passwordHash)
+ {
+ $this->passwordHash = $passwordHash;
+ }
+ public function getPasswordHash()
+ {
+ return $this->passwordHash;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setProviderUserInfo($providerUserInfo)
+ {
+ $this->providerUserInfo = $providerUserInfo;
+ }
+ public function getProviderUserInfo()
+ {
+ return $this->providerUserInfo;
+ }
+ public function setRefreshToken($refreshToken)
+ {
+ $this->refreshToken = $refreshToken;
+ }
+ public function getRefreshToken()
+ {
+ return $this->refreshToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponseProviderUserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponseProviderUserInfo.php
new file mode 100644
index 00000000..9b4a7bd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SetAccountInfoResponseProviderUserInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_SetAccountInfoResponseProviderUserInfo extends Google_Model
+{
+ public $displayName;
+ public $federatedId;
+ public $photoUrl;
+ public $providerId;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setFederatedId($federatedId)
+ {
+ $this->federatedId = $federatedId;
+ }
+ public function getFederatedId()
+ {
+ return $this->federatedId;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setProviderId($providerId)
+ {
+ $this->providerId = $providerId;
+ }
+ public function getProviderId()
+ {
+ return $this->providerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SignupNewUserResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SignupNewUserResponse.php
new file mode 100644
index 00000000..8517a66a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/SignupNewUserResponse.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_SignupNewUserResponse extends Google_Model
+{
+ public $displayName;
+ public $email;
+ public $expiresIn;
+ public $idToken;
+ public $kind;
+ public $localId;
+ public $refreshToken;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setExpiresIn($expiresIn)
+ {
+ $this->expiresIn = $expiresIn;
+ }
+ public function getExpiresIn()
+ {
+ return $this->expiresIn;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+ public function setRefreshToken($refreshToken)
+ {
+ $this->refreshToken = $refreshToken;
+ }
+ public function getRefreshToken()
+ {
+ return $this->refreshToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponse.php
new file mode 100644
index 00000000..d125c05a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_UploadAccountResponse extends Google_Collection
+{
+ protected $collection_key = 'error';
+ protected $errorType = 'Google_Service_IdentityToolkit_UploadAccountResponseError';
+ protected $errorDataType = 'array';
+ public $kind;
+
+ public function setError($error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponseError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponseError.php
new file mode 100644
index 00000000..f3c4ed27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UploadAccountResponseError.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_UploadAccountResponseError extends Google_Model
+{
+ public $index;
+ public $message;
+
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfo.php
new file mode 100644
index 00000000..056ec9fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfo.php
@@ -0,0 +1,176 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_UserInfo extends Google_Collection
+{
+ protected $collection_key = 'providerUserInfo';
+ public $createdAt;
+ public $customAuth;
+ public $disabled;
+ public $displayName;
+ public $email;
+ public $emailVerified;
+ public $lastLoginAt;
+ public $localId;
+ public $passwordHash;
+ public $passwordUpdatedAt;
+ public $photoUrl;
+ protected $providerUserInfoType = 'Google_Service_IdentityToolkit_UserInfoProviderUserInfo';
+ protected $providerUserInfoDataType = 'array';
+ public $rawPassword;
+ public $salt;
+ public $screenName;
+ public $validSince;
+ public $version;
+
+ public function setCreatedAt($createdAt)
+ {
+ $this->createdAt = $createdAt;
+ }
+ public function getCreatedAt()
+ {
+ return $this->createdAt;
+ }
+ public function setCustomAuth($customAuth)
+ {
+ $this->customAuth = $customAuth;
+ }
+ public function getCustomAuth()
+ {
+ return $this->customAuth;
+ }
+ public function setDisabled($disabled)
+ {
+ $this->disabled = $disabled;
+ }
+ public function getDisabled()
+ {
+ return $this->disabled;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEmailVerified($emailVerified)
+ {
+ $this->emailVerified = $emailVerified;
+ }
+ public function getEmailVerified()
+ {
+ return $this->emailVerified;
+ }
+ public function setLastLoginAt($lastLoginAt)
+ {
+ $this->lastLoginAt = $lastLoginAt;
+ }
+ public function getLastLoginAt()
+ {
+ return $this->lastLoginAt;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+ public function setPasswordHash($passwordHash)
+ {
+ $this->passwordHash = $passwordHash;
+ }
+ public function getPasswordHash()
+ {
+ return $this->passwordHash;
+ }
+ public function setPasswordUpdatedAt($passwordUpdatedAt)
+ {
+ $this->passwordUpdatedAt = $passwordUpdatedAt;
+ }
+ public function getPasswordUpdatedAt()
+ {
+ return $this->passwordUpdatedAt;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setProviderUserInfo($providerUserInfo)
+ {
+ $this->providerUserInfo = $providerUserInfo;
+ }
+ public function getProviderUserInfo()
+ {
+ return $this->providerUserInfo;
+ }
+ public function setRawPassword($rawPassword)
+ {
+ $this->rawPassword = $rawPassword;
+ }
+ public function getRawPassword()
+ {
+ return $this->rawPassword;
+ }
+ public function setSalt($salt)
+ {
+ $this->salt = $salt;
+ }
+ public function getSalt()
+ {
+ return $this->salt;
+ }
+ public function setScreenName($screenName)
+ {
+ $this->screenName = $screenName;
+ }
+ public function getScreenName()
+ {
+ return $this->screenName;
+ }
+ public function setValidSince($validSince)
+ {
+ $this->validSince = $validSince;
+ }
+ public function getValidSince()
+ {
+ return $this->validSince;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfoProviderUserInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfoProviderUserInfo.php
new file mode 100644
index 00000000..cf333f8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/UserInfoProviderUserInfo.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model
+{
+ public $displayName;
+ public $email;
+ public $federatedId;
+ public $photoUrl;
+ public $providerId;
+ public $rawId;
+ public $screenName;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setFederatedId($federatedId)
+ {
+ $this->federatedId = $federatedId;
+ }
+ public function getFederatedId()
+ {
+ return $this->federatedId;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setProviderId($providerId)
+ {
+ $this->providerId = $providerId;
+ }
+ public function getProviderId()
+ {
+ return $this->providerId;
+ }
+ public function setRawId($rawId)
+ {
+ $this->rawId = $rawId;
+ }
+ public function getRawId()
+ {
+ return $this->rawId;
+ }
+ public function setScreenName($screenName)
+ {
+ $this->screenName = $screenName;
+ }
+ public function getScreenName()
+ {
+ return $this->screenName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyAssertionResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyAssertionResponse.php
new file mode 100644
index 00000000..bb3fbfb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyAssertionResponse.php
@@ -0,0 +1,373 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Collection
+{
+ protected $collection_key = 'verifiedProvider';
+ public $action;
+ public $appInstallationUrl;
+ public $appScheme;
+ public $context;
+ public $dateOfBirth;
+ public $displayName;
+ public $email;
+ public $emailRecycled;
+ public $emailVerified;
+ public $errorMessage;
+ public $expiresIn;
+ public $federatedId;
+ public $firstName;
+ public $fullName;
+ public $idToken;
+ public $inputEmail;
+ public $isNewUser;
+ public $kind;
+ public $language;
+ public $lastName;
+ public $localId;
+ public $needConfirmation;
+ public $needEmail;
+ public $nickName;
+ public $oauthAccessToken;
+ public $oauthAuthorizationCode;
+ public $oauthExpireIn;
+ public $oauthIdToken;
+ public $oauthRequestToken;
+ public $oauthScope;
+ public $oauthTokenSecret;
+ public $originalEmail;
+ public $photoUrl;
+ public $providerId;
+ public $rawUserInfo;
+ public $refreshToken;
+ public $screenName;
+ public $timeZone;
+ public $verifiedProvider;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setAppInstallationUrl($appInstallationUrl)
+ {
+ $this->appInstallationUrl = $appInstallationUrl;
+ }
+ public function getAppInstallationUrl()
+ {
+ return $this->appInstallationUrl;
+ }
+ public function setAppScheme($appScheme)
+ {
+ $this->appScheme = $appScheme;
+ }
+ public function getAppScheme()
+ {
+ return $this->appScheme;
+ }
+ public function setContext($context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setDateOfBirth($dateOfBirth)
+ {
+ $this->dateOfBirth = $dateOfBirth;
+ }
+ public function getDateOfBirth()
+ {
+ return $this->dateOfBirth;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEmailRecycled($emailRecycled)
+ {
+ $this->emailRecycled = $emailRecycled;
+ }
+ public function getEmailRecycled()
+ {
+ return $this->emailRecycled;
+ }
+ public function setEmailVerified($emailVerified)
+ {
+ $this->emailVerified = $emailVerified;
+ }
+ public function getEmailVerified()
+ {
+ return $this->emailVerified;
+ }
+ public function setErrorMessage($errorMessage)
+ {
+ $this->errorMessage = $errorMessage;
+ }
+ public function getErrorMessage()
+ {
+ return $this->errorMessage;
+ }
+ public function setExpiresIn($expiresIn)
+ {
+ $this->expiresIn = $expiresIn;
+ }
+ public function getExpiresIn()
+ {
+ return $this->expiresIn;
+ }
+ public function setFederatedId($federatedId)
+ {
+ $this->federatedId = $federatedId;
+ }
+ public function getFederatedId()
+ {
+ return $this->federatedId;
+ }
+ public function setFirstName($firstName)
+ {
+ $this->firstName = $firstName;
+ }
+ public function getFirstName()
+ {
+ return $this->firstName;
+ }
+ public function setFullName($fullName)
+ {
+ $this->fullName = $fullName;
+ }
+ public function getFullName()
+ {
+ return $this->fullName;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setInputEmail($inputEmail)
+ {
+ $this->inputEmail = $inputEmail;
+ }
+ public function getInputEmail()
+ {
+ return $this->inputEmail;
+ }
+ public function setIsNewUser($isNewUser)
+ {
+ $this->isNewUser = $isNewUser;
+ }
+ public function getIsNewUser()
+ {
+ return $this->isNewUser;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setLastName($lastName)
+ {
+ $this->lastName = $lastName;
+ }
+ public function getLastName()
+ {
+ return $this->lastName;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+ public function setNeedConfirmation($needConfirmation)
+ {
+ $this->needConfirmation = $needConfirmation;
+ }
+ public function getNeedConfirmation()
+ {
+ return $this->needConfirmation;
+ }
+ public function setNeedEmail($needEmail)
+ {
+ $this->needEmail = $needEmail;
+ }
+ public function getNeedEmail()
+ {
+ return $this->needEmail;
+ }
+ public function setNickName($nickName)
+ {
+ $this->nickName = $nickName;
+ }
+ public function getNickName()
+ {
+ return $this->nickName;
+ }
+ public function setOauthAccessToken($oauthAccessToken)
+ {
+ $this->oauthAccessToken = $oauthAccessToken;
+ }
+ public function getOauthAccessToken()
+ {
+ return $this->oauthAccessToken;
+ }
+ public function setOauthAuthorizationCode($oauthAuthorizationCode)
+ {
+ $this->oauthAuthorizationCode = $oauthAuthorizationCode;
+ }
+ public function getOauthAuthorizationCode()
+ {
+ return $this->oauthAuthorizationCode;
+ }
+ public function setOauthExpireIn($oauthExpireIn)
+ {
+ $this->oauthExpireIn = $oauthExpireIn;
+ }
+ public function getOauthExpireIn()
+ {
+ return $this->oauthExpireIn;
+ }
+ public function setOauthIdToken($oauthIdToken)
+ {
+ $this->oauthIdToken = $oauthIdToken;
+ }
+ public function getOauthIdToken()
+ {
+ return $this->oauthIdToken;
+ }
+ public function setOauthRequestToken($oauthRequestToken)
+ {
+ $this->oauthRequestToken = $oauthRequestToken;
+ }
+ public function getOauthRequestToken()
+ {
+ return $this->oauthRequestToken;
+ }
+ public function setOauthScope($oauthScope)
+ {
+ $this->oauthScope = $oauthScope;
+ }
+ public function getOauthScope()
+ {
+ return $this->oauthScope;
+ }
+ public function setOauthTokenSecret($oauthTokenSecret)
+ {
+ $this->oauthTokenSecret = $oauthTokenSecret;
+ }
+ public function getOauthTokenSecret()
+ {
+ return $this->oauthTokenSecret;
+ }
+ public function setOriginalEmail($originalEmail)
+ {
+ $this->originalEmail = $originalEmail;
+ }
+ public function getOriginalEmail()
+ {
+ return $this->originalEmail;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setProviderId($providerId)
+ {
+ $this->providerId = $providerId;
+ }
+ public function getProviderId()
+ {
+ return $this->providerId;
+ }
+ public function setRawUserInfo($rawUserInfo)
+ {
+ $this->rawUserInfo = $rawUserInfo;
+ }
+ public function getRawUserInfo()
+ {
+ return $this->rawUserInfo;
+ }
+ public function setRefreshToken($refreshToken)
+ {
+ $this->refreshToken = $refreshToken;
+ }
+ public function getRefreshToken()
+ {
+ return $this->refreshToken;
+ }
+ public function setScreenName($screenName)
+ {
+ $this->screenName = $screenName;
+ }
+ public function getScreenName()
+ {
+ return $this->screenName;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+ public function setVerifiedProvider($verifiedProvider)
+ {
+ $this->verifiedProvider = $verifiedProvider;
+ }
+ public function getVerifiedProvider()
+ {
+ return $this->verifiedProvider;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyCustomTokenResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyCustomTokenResponse.php
new file mode 100644
index 00000000..046b1bae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyCustomTokenResponse.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_VerifyCustomTokenResponse extends Google_Model
+{
+ public $expiresIn;
+ public $idToken;
+ public $kind;
+ public $refreshToken;
+
+ public function setExpiresIn($expiresIn)
+ {
+ $this->expiresIn = $expiresIn;
+ }
+ public function getExpiresIn()
+ {
+ return $this->expiresIn;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRefreshToken($refreshToken)
+ {
+ $this->refreshToken = $refreshToken;
+ }
+ public function getRefreshToken()
+ {
+ return $this->refreshToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyPasswordResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyPasswordResponse.php
new file mode 100644
index 00000000..852a0b94
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/IdentityToolkit/VerifyPasswordResponse.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_IdentityToolkit_VerifyPasswordResponse extends Google_Model
+{
+ public $displayName;
+ public $email;
+ public $expiresIn;
+ public $idToken;
+ public $kind;
+ public $localId;
+ public $oauthAccessToken;
+ public $oauthAuthorizationCode;
+ public $oauthExpireIn;
+ public $photoUrl;
+ public $refreshToken;
+ public $registered;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setExpiresIn($expiresIn)
+ {
+ $this->expiresIn = $expiresIn;
+ }
+ public function getExpiresIn()
+ {
+ return $this->expiresIn;
+ }
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocalId($localId)
+ {
+ $this->localId = $localId;
+ }
+ public function getLocalId()
+ {
+ return $this->localId;
+ }
+ public function setOauthAccessToken($oauthAccessToken)
+ {
+ $this->oauthAccessToken = $oauthAccessToken;
+ }
+ public function getOauthAccessToken()
+ {
+ return $this->oauthAccessToken;
+ }
+ public function setOauthAuthorizationCode($oauthAuthorizationCode)
+ {
+ $this->oauthAuthorizationCode = $oauthAuthorizationCode;
+ }
+ public function getOauthAuthorizationCode()
+ {
+ return $this->oauthAuthorizationCode;
+ }
+ public function setOauthExpireIn($oauthExpireIn)
+ {
+ $this->oauthExpireIn = $oauthExpireIn;
+ }
+ public function getOauthExpireIn()
+ {
+ return $this->oauthExpireIn;
+ }
+ public function setPhotoUrl($photoUrl)
+ {
+ $this->photoUrl = $photoUrl;
+ }
+ public function getPhotoUrl()
+ {
+ return $this->photoUrl;
+ }
+ public function setRefreshToken($refreshToken)
+ {
+ $this->refreshToken = $refreshToken;
+ }
+ public function getRefreshToken()
+ {
+ return $this->refreshToken;
+ }
+ public function setRegistered($registered)
+ {
+ $this->registered = $registered;
+ }
+ public function getRegistered()
+ {
+ return $this->registered;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch.php
new file mode 100644
index 00000000..6234175a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Kgsearch (v1).
+ *
+ * <p>
+ * Searches the Google Knowledge Graph for entities.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/knowledge-graph/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Kgsearch extends Google_Service
+{
+
+
+ public $entities;
+
+ /**
+ * Constructs the internal representation of the Kgsearch service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://kgsearch.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'kgsearch';
+
+ $this->entities = new Google_Service_Kgsearch_Resource_Entities(
+ $this,
+ $this->serviceName,
+ 'entities',
+ array(
+ 'methods' => array(
+ 'search' => array(
+ 'path' => 'v1/entities:search',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'types' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'indent' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'languages' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'limit' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'prefix' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php
new file mode 100644
index 00000000..f236faef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/Resource/Entities.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "entities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $kgsearchService = new Google_Service_Kgsearch(...);
+ * $entities = $kgsearchService->entities;
+ * </code>
+ */
+class Google_Service_Kgsearch_Resource_Entities extends Google_Service_Resource
+{
+ /**
+ * Searches Knowledge Graph for entities that match the constraints. A list of
+ * matched entities will be returned in response, which will be in JSON-LD
+ * format and compatible with http://schema.org (entities.search)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string types Restricts returned entities with these types, e.g.
+ * Person (as defined in http://schema.org/Person). If multiple types are
+ * specified, returned entities will contain one or more of these types.
+ * @opt_param bool indent Enables indenting of json results.
+ * @opt_param string languages The list of language codes (defined in ISO 693)
+ * to run the query with, e.g. 'en'.
+ * @opt_param string ids The list of entity id to be used for search instead of
+ * query string. To specify multiple ids in the HTTP request, repeat the
+ * parameter in the URL as in ...?ids=A=B
+ * @opt_param int limit Limits the number of entities to be returned.
+ * @opt_param bool prefix Enables prefix match against names and aliases of
+ * entities
+ * @opt_param string query The literal query string for search.
+ * @return Google_Service_Kgsearch_SearchResponse
+ */
+ public function search($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Kgsearch_SearchResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/SearchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/SearchResponse.php
new file mode 100644
index 00000000..50df00da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Kgsearch/SearchResponse.php
@@ -0,0 +1,53 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Kgsearch_SearchResponse extends Google_Collection
+{
+ protected $collection_key = 'itemListElement';
+ protected $internal_gapi_mappings = array(
+ "context" => "@context",
+ "type" => "@type",
+ );
+ public $context;
+ public $type;
+ public $itemListElement;
+
+ public function setContext($context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setItemListElement($itemListElement)
+ {
+ $this->itemListElement = $itemListElement;
+ }
+ public function getItemListElement()
+ {
+ return $this->itemListElement;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing.php
new file mode 100644
index 00000000..185d261a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing.php
@@ -0,0 +1,209 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Licensing (v1).
+ *
+ * <p>
+ * Views and manages licenses for your domain.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/google-apps/licensing/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Licensing extends Google_Service
+{
+ /** View and manage G Suite licenses for your domain. */
+ const APPS_LICENSING =
+ "https://www.googleapis.com/auth/apps.licensing";
+
+ public $licenseAssignments;
+
+ /**
+ * Constructs the internal representation of the Licensing service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'apps/licensing/v1/product/';
+ $this->version = 'v1';
+ $this->serviceName = 'licensing';
+
+ $this->licenseAssignments = new Google_Service_Licensing_Resource_LicenseAssignments(
+ $this,
+ $this->serviceName,
+ 'licenseAssignments',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{productId}/sku/{skuId}/user/{userId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'skuId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{productId}/sku/{skuId}/user/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'skuId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{productId}/sku/{skuId}/user',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'skuId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'listForProduct' => array(
+ 'path' => '{productId}/users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listForProductAndSku' => array(
+ 'path' => '{productId}/sku/{skuId}/users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'skuId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{productId}/sku/{skuId}/user/{userId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'skuId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{productId}/sku/{skuId}/user/{userId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'skuId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignment.php
new file mode 100644
index 00000000..af379726
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignment.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Licensing_LicenseAssignment extends Google_Model
+{
+ public $etags;
+ public $kind;
+ public $productId;
+ public $productName;
+ public $selfLink;
+ public $skuId;
+ public $skuName;
+ public $userId;
+
+ public function setEtags($etags)
+ {
+ $this->etags = $etags;
+ }
+ public function getEtags()
+ {
+ return $this->etags;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setProductName($productName)
+ {
+ $this->productName = $productName;
+ }
+ public function getProductName()
+ {
+ return $this->productName;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSkuId($skuId)
+ {
+ $this->skuId = $skuId;
+ }
+ public function getSkuId()
+ {
+ return $this->skuId;
+ }
+ public function setSkuName($skuName)
+ {
+ $this->skuName = $skuName;
+ }
+ public function getSkuName()
+ {
+ return $this->skuName;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentInsert.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentInsert.php
new file mode 100644
index 00000000..cad54f06
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentInsert.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model
+{
+ public $userId;
+
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentList.php
new file mode 100644
index 00000000..5ba88e52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/LicenseAssignmentList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Licensing_LicenseAssignment';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/Resource/LicenseAssignments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/Resource/LicenseAssignments.php
new file mode 100644
index 00000000..70350d7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Licensing/Resource/LicenseAssignments.php
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "licenseAssignments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $licensingService = new Google_Service_Licensing(...);
+ * $licenseAssignments = $licensingService->licenseAssignments;
+ * </code>
+ */
+class Google_Service_Licensing_Resource_LicenseAssignments extends Google_Service_Resource
+{
+ /**
+ * Revoke License. (licenseAssignments.delete)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku
+ * @param string $userId email id or unique Id of the user
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($productId, $skuId, $userId, $optParams = array())
+ {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Get license assignment of a particular product and sku for a user
+ * (licenseAssignments.get)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku
+ * @param string $userId email id or unique Id of the user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Licensing_LicenseAssignment
+ */
+ public function get($productId, $skuId, $userId, $optParams = array())
+ {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Licensing_LicenseAssignment");
+ }
+ /**
+ * Assign License. (licenseAssignments.insert)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku
+ * @param Google_Service_Licensing_LicenseAssignmentInsert $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Licensing_LicenseAssignment
+ */
+ public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssignmentInsert $postBody, $optParams = array())
+ {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Licensing_LicenseAssignment");
+ }
+ /**
+ * List license assignments for given product of the customer.
+ * (licenseAssignments.listForProduct)
+ *
+ * @param string $productId Name for product
+ * @param string $customerId CustomerId represents the customer for whom
+ * licenseassignments are queried
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of campaigns to return at one
+ * time. Must be positive. Optional. Default value is 100.
+ * @opt_param string pageToken Token to fetch the next page.Optional. By default
+ * server will return first page
+ * @return Google_Service_Licensing_LicenseAssignmentList
+ */
+ public function listForProduct($productId, $customerId, $optParams = array())
+ {
+ $params = array('productId' => $productId, 'customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listForProduct', array($params), "Google_Service_Licensing_LicenseAssignmentList");
+ }
+ /**
+ * List license assignments for given product and sku of the customer.
+ * (licenseAssignments.listForProductAndSku)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku
+ * @param string $customerId CustomerId represents the customer for whom
+ * licenseassignments are queried
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of campaigns to return at one
+ * time. Must be positive. Optional. Default value is 100.
+ * @opt_param string pageToken Token to fetch the next page.Optional. By default
+ * server will return first page
+ * @return Google_Service_Licensing_LicenseAssignmentList
+ */
+ public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array())
+ {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listForProductAndSku', array($params), "Google_Service_Licensing_LicenseAssignmentList");
+ }
+ /**
+ * Assign License. This method supports patch semantics.
+ * (licenseAssignments.patch)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku for which license would be revoked
+ * @param string $userId email id or unique Id of the user
+ * @param Google_Service_Licensing_LicenseAssignment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Licensing_LicenseAssignment
+ */
+ public function patch($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array())
+ {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Licensing_LicenseAssignment");
+ }
+ /**
+ * Assign License. (licenseAssignments.update)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku for which license would be revoked
+ * @param string $userId email id or unique Id of the user
+ * @param Google_Service_Licensing_LicenseAssignment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Licensing_LicenseAssignment
+ */
+ public function update($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array())
+ {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Licensing_LicenseAssignment");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging.php
new file mode 100644
index 00000000..92e9d14a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging.php
@@ -0,0 +1,640 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Logging (v2).
+ *
+ * <p>
+ * Writes log entries and manages your Stackdriver Logging configuration.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/logging/docs/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Logging extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** Administrate log data for your projects. */
+ const LOGGING_ADMIN =
+ "https://www.googleapis.com/auth/logging.admin";
+ /** View log data for your projects. */
+ const LOGGING_READ =
+ "https://www.googleapis.com/auth/logging.read";
+ /** Submit log data for your projects. */
+ const LOGGING_WRITE =
+ "https://www.googleapis.com/auth/logging.write";
+
+ public $billingAccounts_logs;
+ public $billingAccounts_sinks;
+ public $entries;
+ public $folders_logs;
+ public $folders_sinks;
+ public $monitoredResourceDescriptors;
+ public $organizations_logs;
+ public $organizations_sinks;
+ public $projects_logs;
+ public $projects_metrics;
+ public $projects_sinks;
+
+ /**
+ * Constructs the internal representation of the Logging service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://logging.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v2';
+ $this->serviceName = 'logging';
+
+ $this->billingAccounts_logs = new Google_Service_Logging_Resource_BillingAccountsLogs(
+ $this,
+ $this->serviceName,
+ 'logs',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v2/{+logName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'logName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/logs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->billingAccounts_sinks = new Google_Service_Logging_Resource_BillingAccountsSinks(
+ $this,
+ $this->serviceName,
+ 'sinks',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->entries = new Google_Service_Logging_Resource_Entries(
+ $this,
+ $this->serviceName,
+ 'entries',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/entries:list',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'write' => array(
+ 'path' => 'v2/entries:write',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->folders_logs = new Google_Service_Logging_Resource_FoldersLogs(
+ $this,
+ $this->serviceName,
+ 'logs',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v2/{+logName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'logName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/logs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->folders_sinks = new Google_Service_Logging_Resource_FoldersSinks(
+ $this,
+ $this->serviceName,
+ 'sinks',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->monitoredResourceDescriptors = new Google_Service_Logging_Resource_MonitoredResourceDescriptors(
+ $this,
+ $this->serviceName,
+ 'monitoredResourceDescriptors',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/monitoredResourceDescriptors',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->organizations_logs = new Google_Service_Logging_Resource_OrganizationsLogs(
+ $this,
+ $this->serviceName,
+ 'logs',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v2/{+logName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'logName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/logs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->organizations_sinks = new Google_Service_Logging_Resource_OrganizationsSinks(
+ $this,
+ $this->serviceName,
+ 'sinks',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_logs = new Google_Service_Logging_Resource_ProjectsLogs(
+ $this,
+ $this->serviceName,
+ 'logs',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'v2/{+logName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'logName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/logs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_metrics = new Google_Service_Logging_Resource_ProjectsMetrics(
+ $this,
+ $this->serviceName,
+ 'metrics',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2/{+parent}/metrics',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v2/{+metricName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'metricName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2/{+metricName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'metricName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/metrics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2/{+metricName}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'metricName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_sinks = new Google_Service_Logging_Resource_ProjectsSinks(
+ $this,
+ $this->serviceName,
+ 'sinks',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/{+parent}/sinks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v2/{+sinkName}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'sinkName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'uniqueWriterIdentity' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/HttpRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/HttpRequest.php
new file mode 100644
index 00000000..cb0962c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/HttpRequest.php
@@ -0,0 +1,147 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_HttpRequest extends Google_Model
+{
+ public $cacheFillBytes;
+ public $cacheHit;
+ public $cacheLookup;
+ public $cacheValidatedWithOriginServer;
+ public $latency;
+ public $referer;
+ public $remoteIp;
+ public $requestMethod;
+ public $requestSize;
+ public $requestUrl;
+ public $responseSize;
+ public $serverIp;
+ public $status;
+ public $userAgent;
+
+ public function setCacheFillBytes($cacheFillBytes)
+ {
+ $this->cacheFillBytes = $cacheFillBytes;
+ }
+ public function getCacheFillBytes()
+ {
+ return $this->cacheFillBytes;
+ }
+ public function setCacheHit($cacheHit)
+ {
+ $this->cacheHit = $cacheHit;
+ }
+ public function getCacheHit()
+ {
+ return $this->cacheHit;
+ }
+ public function setCacheLookup($cacheLookup)
+ {
+ $this->cacheLookup = $cacheLookup;
+ }
+ public function getCacheLookup()
+ {
+ return $this->cacheLookup;
+ }
+ public function setCacheValidatedWithOriginServer($cacheValidatedWithOriginServer)
+ {
+ $this->cacheValidatedWithOriginServer = $cacheValidatedWithOriginServer;
+ }
+ public function getCacheValidatedWithOriginServer()
+ {
+ return $this->cacheValidatedWithOriginServer;
+ }
+ public function setLatency($latency)
+ {
+ $this->latency = $latency;
+ }
+ public function getLatency()
+ {
+ return $this->latency;
+ }
+ public function setReferer($referer)
+ {
+ $this->referer = $referer;
+ }
+ public function getReferer()
+ {
+ return $this->referer;
+ }
+ public function setRemoteIp($remoteIp)
+ {
+ $this->remoteIp = $remoteIp;
+ }
+ public function getRemoteIp()
+ {
+ return $this->remoteIp;
+ }
+ public function setRequestMethod($requestMethod)
+ {
+ $this->requestMethod = $requestMethod;
+ }
+ public function getRequestMethod()
+ {
+ return $this->requestMethod;
+ }
+ public function setRequestSize($requestSize)
+ {
+ $this->requestSize = $requestSize;
+ }
+ public function getRequestSize()
+ {
+ return $this->requestSize;
+ }
+ public function setRequestUrl($requestUrl)
+ {
+ $this->requestUrl = $requestUrl;
+ }
+ public function getRequestUrl()
+ {
+ return $this->requestUrl;
+ }
+ public function setResponseSize($responseSize)
+ {
+ $this->responseSize = $responseSize;
+ }
+ public function getResponseSize()
+ {
+ return $this->responseSize;
+ }
+ public function setServerIp($serverIp)
+ {
+ $this->serverIp = $serverIp;
+ }
+ public function getServerIp()
+ {
+ return $this->serverIp;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setUserAgent($userAgent)
+ {
+ $this->userAgent = $userAgent;
+ }
+ public function getUserAgent()
+ {
+ return $this->userAgent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LabelDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LabelDescriptor.php
new file mode 100644
index 00000000..0aa9de13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LabelDescriptor.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LabelDescriptor extends Google_Model
+{
+ public $description;
+ public $key;
+ public $valueType;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesRequest.php
new file mode 100644
index 00000000..3cd2612d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesRequest.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_ListLogEntriesRequest extends Google_Collection
+{
+ protected $collection_key = 'resourceNames';
+ public $filter;
+ public $orderBy;
+ public $pageSize;
+ public $pageToken;
+ public $projectIds;
+ public $resourceNames;
+
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setOrderBy($orderBy)
+ {
+ $this->orderBy = $orderBy;
+ }
+ public function getOrderBy()
+ {
+ return $this->orderBy;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setProjectIds($projectIds)
+ {
+ $this->projectIds = $projectIds;
+ }
+ public function getProjectIds()
+ {
+ return $this->projectIds;
+ }
+ public function setResourceNames($resourceNames)
+ {
+ $this->resourceNames = $resourceNames;
+ }
+ public function getResourceNames()
+ {
+ return $this->resourceNames;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesResponse.php
new file mode 100644
index 00000000..15e9ff5a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogEntriesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_Logging_LogEntry';
+ protected $entriesDataType = 'array';
+ public $nextPageToken;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogMetricsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogMetricsResponse.php
new file mode 100644
index 00000000..44b32d47
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogMetricsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ protected $metricsType = 'Google_Service_Logging_LogMetric';
+ protected $metricsDataType = 'array';
+ public $nextPageToken;
+
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogsResponse.php
new file mode 100644
index 00000000..13447c36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListLogsResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_ListLogsResponse extends Google_Collection
+{
+ protected $collection_key = 'logNames';
+ public $logNames;
+ public $nextPageToken;
+
+ public function setLogNames($logNames)
+ {
+ $this->logNames = $logNames;
+ }
+ public function getLogNames()
+ {
+ return $this->logNames;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListMonitoredResourceDescriptorsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListMonitoredResourceDescriptorsResponse.php
new file mode 100644
index 00000000..0c542a22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListMonitoredResourceDescriptorsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_ListMonitoredResourceDescriptorsResponse extends Google_Collection
+{
+ protected $collection_key = 'resourceDescriptors';
+ public $nextPageToken;
+ protected $resourceDescriptorsType = 'Google_Service_Logging_MonitoredResourceDescriptor';
+ protected $resourceDescriptorsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResourceDescriptors($resourceDescriptors)
+ {
+ $this->resourceDescriptors = $resourceDescriptors;
+ }
+ public function getResourceDescriptors()
+ {
+ return $this->resourceDescriptors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListSinksResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListSinksResponse.php
new file mode 100644
index 00000000..80d72d83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/ListSinksResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_ListSinksResponse extends Google_Collection
+{
+ protected $collection_key = 'sinks';
+ public $nextPageToken;
+ protected $sinksType = 'Google_Service_Logging_LogSink';
+ protected $sinksDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSinks($sinks)
+ {
+ $this->sinks = $sinks;
+ }
+ public function getSinks()
+ {
+ return $this->sinks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntry.php
new file mode 100644
index 00000000..8d92b5ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntry.php
@@ -0,0 +1,142 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LogEntry extends Google_Model
+{
+ protected $httpRequestType = 'Google_Service_Logging_HttpRequest';
+ protected $httpRequestDataType = '';
+ public $insertId;
+ public $jsonPayload;
+ public $labels;
+ public $logName;
+ protected $operationType = 'Google_Service_Logging_LogEntryOperation';
+ protected $operationDataType = '';
+ public $protoPayload;
+ protected $resourceType = 'Google_Service_Logging_MonitoredResource';
+ protected $resourceDataType = '';
+ public $severity;
+ protected $sourceLocationType = 'Google_Service_Logging_LogEntrySourceLocation';
+ protected $sourceLocationDataType = '';
+ public $textPayload;
+ public $timestamp;
+ public $trace;
+
+ public function setHttpRequest(Google_Service_Logging_HttpRequest $httpRequest)
+ {
+ $this->httpRequest = $httpRequest;
+ }
+ public function getHttpRequest()
+ {
+ return $this->httpRequest;
+ }
+ public function setInsertId($insertId)
+ {
+ $this->insertId = $insertId;
+ }
+ public function getInsertId()
+ {
+ return $this->insertId;
+ }
+ public function setJsonPayload($jsonPayload)
+ {
+ $this->jsonPayload = $jsonPayload;
+ }
+ public function getJsonPayload()
+ {
+ return $this->jsonPayload;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLogName($logName)
+ {
+ $this->logName = $logName;
+ }
+ public function getLogName()
+ {
+ return $this->logName;
+ }
+ public function setOperation(Google_Service_Logging_LogEntryOperation $operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setProtoPayload($protoPayload)
+ {
+ $this->protoPayload = $protoPayload;
+ }
+ public function getProtoPayload()
+ {
+ return $this->protoPayload;
+ }
+ public function setResource(Google_Service_Logging_MonitoredResource $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setSourceLocation(Google_Service_Logging_LogEntrySourceLocation $sourceLocation)
+ {
+ $this->sourceLocation = $sourceLocation;
+ }
+ public function getSourceLocation()
+ {
+ return $this->sourceLocation;
+ }
+ public function setTextPayload($textPayload)
+ {
+ $this->textPayload = $textPayload;
+ }
+ public function getTextPayload()
+ {
+ return $this->textPayload;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setTrace($trace)
+ {
+ $this->trace = $trace;
+ }
+ public function getTrace()
+ {
+ return $this->trace;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntryOperation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntryOperation.php
new file mode 100644
index 00000000..53879c17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntryOperation.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LogEntryOperation extends Google_Model
+{
+ public $first;
+ public $id;
+ public $last;
+ public $producer;
+
+ public function setFirst($first)
+ {
+ $this->first = $first;
+ }
+ public function getFirst()
+ {
+ return $this->first;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLast($last)
+ {
+ $this->last = $last;
+ }
+ public function getLast()
+ {
+ return $this->last;
+ }
+ public function setProducer($producer)
+ {
+ $this->producer = $producer;
+ }
+ public function getProducer()
+ {
+ return $this->producer;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntrySourceLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntrySourceLocation.php
new file mode 100644
index 00000000..fa8f01ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogEntrySourceLocation.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LogEntrySourceLocation extends Google_Model
+{
+ public $file;
+ public $function;
+ public $line;
+
+ public function setFile($file)
+ {
+ $this->file = $file;
+ }
+ public function getFile()
+ {
+ return $this->file;
+ }
+ public function setFunction($function)
+ {
+ $this->function = $function;
+ }
+ public function getFunction()
+ {
+ return $this->function;
+ }
+ public function setLine($line)
+ {
+ $this->line = $line;
+ }
+ public function getLine()
+ {
+ return $this->line;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogLine.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogLine.php
new file mode 100644
index 00000000..3b37e402
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogLine.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LogLine extends Google_Model
+{
+ public $logMessage;
+ public $severity;
+ protected $sourceLocationType = 'Google_Service_Logging_SourceLocation';
+ protected $sourceLocationDataType = '';
+ public $time;
+
+ public function setLogMessage($logMessage)
+ {
+ $this->logMessage = $logMessage;
+ }
+ public function getLogMessage()
+ {
+ return $this->logMessage;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setSourceLocation(Google_Service_Logging_SourceLocation $sourceLocation)
+ {
+ $this->sourceLocation = $sourceLocation;
+ }
+ public function getSourceLocation()
+ {
+ return $this->sourceLocation;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogMetric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogMetric.php
new file mode 100644
index 00000000..42213432
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogMetric.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LogMetric extends Google_Model
+{
+ public $description;
+ public $filter;
+ public $name;
+ public $version;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogSink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogSink.php
new file mode 100644
index 00000000..2beb19da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LogSink.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LogSink extends Google_Model
+{
+ public $destination;
+ public $endTime;
+ public $filter;
+ public $name;
+ public $outputVersionFormat;
+ public $startTime;
+ public $writerIdentity;
+
+ public function setDestination($destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOutputVersionFormat($outputVersionFormat)
+ {
+ $this->outputVersionFormat = $outputVersionFormat;
+ }
+ public function getOutputVersionFormat()
+ {
+ return $this->outputVersionFormat;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setWriterIdentity($writerIdentity)
+ {
+ $this->writerIdentity = $writerIdentity;
+ }
+ public function getWriterIdentity()
+ {
+ return $this->writerIdentity;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LoggingEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LoggingEmpty.php
new file mode 100644
index 00000000..e74cf7f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/LoggingEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_LoggingEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResource.php
new file mode 100644
index 00000000..6b26d102
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_MonitoredResource extends Google_Model
+{
+ public $labels;
+ public $type;
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResourceDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResourceDescriptor.php
new file mode 100644
index 00000000..e3df9370
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/MonitoredResourceDescriptor.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_MonitoredResourceDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_Logging_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $name;
+ public $type;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/RequestLog.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/RequestLog.php
new file mode 100644
index 00000000..e9cbdd6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/RequestLog.php
@@ -0,0 +1,312 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_RequestLog extends Google_Collection
+{
+ protected $collection_key = 'sourceReference';
+ public $appEngineRelease;
+ public $appId;
+ public $cost;
+ public $endTime;
+ public $finished;
+ public $first;
+ public $host;
+ public $httpVersion;
+ public $instanceId;
+ public $instanceIndex;
+ public $ip;
+ public $latency;
+ protected $lineType = 'Google_Service_Logging_LogLine';
+ protected $lineDataType = 'array';
+ public $megaCycles;
+ public $method;
+ public $moduleId;
+ public $nickname;
+ public $pendingTime;
+ public $referrer;
+ public $requestId;
+ public $resource;
+ public $responseSize;
+ protected $sourceReferenceType = 'Google_Service_Logging_SourceReference';
+ protected $sourceReferenceDataType = 'array';
+ public $startTime;
+ public $status;
+ public $taskName;
+ public $taskQueueName;
+ public $traceId;
+ public $urlMapEntry;
+ public $userAgent;
+ public $versionId;
+ public $wasLoadingRequest;
+
+ public function setAppEngineRelease($appEngineRelease)
+ {
+ $this->appEngineRelease = $appEngineRelease;
+ }
+ public function getAppEngineRelease()
+ {
+ return $this->appEngineRelease;
+ }
+ public function setAppId($appId)
+ {
+ $this->appId = $appId;
+ }
+ public function getAppId()
+ {
+ return $this->appId;
+ }
+ public function setCost($cost)
+ {
+ $this->cost = $cost;
+ }
+ public function getCost()
+ {
+ return $this->cost;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setFinished($finished)
+ {
+ $this->finished = $finished;
+ }
+ public function getFinished()
+ {
+ return $this->finished;
+ }
+ public function setFirst($first)
+ {
+ $this->first = $first;
+ }
+ public function getFirst()
+ {
+ return $this->first;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setHttpVersion($httpVersion)
+ {
+ $this->httpVersion = $httpVersion;
+ }
+ public function getHttpVersion()
+ {
+ return $this->httpVersion;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setInstanceIndex($instanceIndex)
+ {
+ $this->instanceIndex = $instanceIndex;
+ }
+ public function getInstanceIndex()
+ {
+ return $this->instanceIndex;
+ }
+ public function setIp($ip)
+ {
+ $this->ip = $ip;
+ }
+ public function getIp()
+ {
+ return $this->ip;
+ }
+ public function setLatency($latency)
+ {
+ $this->latency = $latency;
+ }
+ public function getLatency()
+ {
+ return $this->latency;
+ }
+ public function setLine($line)
+ {
+ $this->line = $line;
+ }
+ public function getLine()
+ {
+ return $this->line;
+ }
+ public function setMegaCycles($megaCycles)
+ {
+ $this->megaCycles = $megaCycles;
+ }
+ public function getMegaCycles()
+ {
+ return $this->megaCycles;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setModuleId($moduleId)
+ {
+ $this->moduleId = $moduleId;
+ }
+ public function getModuleId()
+ {
+ return $this->moduleId;
+ }
+ public function setNickname($nickname)
+ {
+ $this->nickname = $nickname;
+ }
+ public function getNickname()
+ {
+ return $this->nickname;
+ }
+ public function setPendingTime($pendingTime)
+ {
+ $this->pendingTime = $pendingTime;
+ }
+ public function getPendingTime()
+ {
+ return $this->pendingTime;
+ }
+ public function setReferrer($referrer)
+ {
+ $this->referrer = $referrer;
+ }
+ public function getReferrer()
+ {
+ return $this->referrer;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResource($resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+ public function setResponseSize($responseSize)
+ {
+ $this->responseSize = $responseSize;
+ }
+ public function getResponseSize()
+ {
+ return $this->responseSize;
+ }
+ public function setSourceReference($sourceReference)
+ {
+ $this->sourceReference = $sourceReference;
+ }
+ public function getSourceReference()
+ {
+ return $this->sourceReference;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTaskName($taskName)
+ {
+ $this->taskName = $taskName;
+ }
+ public function getTaskName()
+ {
+ return $this->taskName;
+ }
+ public function setTaskQueueName($taskQueueName)
+ {
+ $this->taskQueueName = $taskQueueName;
+ }
+ public function getTaskQueueName()
+ {
+ return $this->taskQueueName;
+ }
+ public function setTraceId($traceId)
+ {
+ $this->traceId = $traceId;
+ }
+ public function getTraceId()
+ {
+ return $this->traceId;
+ }
+ public function setUrlMapEntry($urlMapEntry)
+ {
+ $this->urlMapEntry = $urlMapEntry;
+ }
+ public function getUrlMapEntry()
+ {
+ return $this->urlMapEntry;
+ }
+ public function setUserAgent($userAgent)
+ {
+ $this->userAgent = $userAgent;
+ }
+ public function getUserAgent()
+ {
+ return $this->userAgent;
+ }
+ public function setVersionId($versionId)
+ {
+ $this->versionId = $versionId;
+ }
+ public function getVersionId()
+ {
+ return $this->versionId;
+ }
+ public function setWasLoadingRequest($wasLoadingRequest)
+ {
+ $this->wasLoadingRequest = $wasLoadingRequest;
+ }
+ public function getWasLoadingRequest()
+ {
+ return $this->wasLoadingRequest;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccounts.php
new file mode 100644
index 00000000..9a3d49ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccounts.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "billingAccounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $billingAccounts = $loggingService->billingAccounts;
+ * </code>
+ */
+class Google_Service_Logging_Resource_BillingAccounts extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsLogs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsLogs.php
new file mode 100644
index 00000000..90105a79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsLogs.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "logs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $logs = $loggingService->logs;
+ * </code>
+ */
+class Google_Service_Logging_Resource_BillingAccountsLogs extends Google_Service_Resource
+{
+ /**
+ * Deletes all the log entries in a log. The log reappears if it receives new
+ * entries. Log entries written shortly before the delete operation might not be
+ * deleted. (logs.delete)
+ *
+ * @param string $logName Required. The resource name of the log to delete:
+ * "projects/[PROJECT_ID]/logs/[LOG_ID]"
+ * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
+ * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
+ * example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
+ * /cloudresourcemanager.googleapis.com%2Factivity". For more information about
+ * log names, see LogEntry.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($logName, $optParams = array())
+ {
+ $params = array('logName' => $logName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Lists the logs in projects, organizations, folders, or billing accounts. Only
+ * logs that have entries are listed. (logs.listBillingAccountsLogs)
+ *
+ * @param string $parent Required. The resource name that owns the logs:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListLogsResponse
+ */
+ public function listBillingAccountsLogs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php
new file mode 100644
index 00000000..a2bf7980
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/BillingAccountsSinks.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $sinks = $loggingService->sinks;
+ * </code>
+ */
+class Google_Service_Logging_Resource_BillingAccountsSinks extends Google_Service_Resource
+{
+ /**
+ * Creates a sink that exports specified log entries to a destination. The
+ * export of newly-ingested log entries begins immediately, unless the current
+ * time is outside the sink's start and end times or the sink's writer_identity
+ * is not permitted to write to the destination. A sink can export log entries
+ * only from the resource owning the sink. (sinks.create)
+ *
+ * @param string $parent Required. The resource in which to create the sink:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
+ * "projects/my-logging-project", "organizations/123456789".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
+ * identity returned as writer_identity in the new sink. If this value is
+ * omitted or set to false, and if the sink's parent is a project, then the
+ * value returned as writer_identity is the same group or service account used
+ * by Stackdriver Logging before the addition of writer identities to this API.
+ * The sink's destination must be in the same project as the sink itself.If this
+ * field is set to true, or if the sink is owned by a non-project resource such
+ * as an organization, then the value of writer_identity will be a unique
+ * service account used only for exports from the new sink. For more
+ * information, see writer_identity in LogSink.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Deletes a sink. If the sink has a unique writer_identity, then that service
+ * account is also deleted. (sinks.delete)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * delete, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Gets a sink. (sinks.get)
+ *
+ * @param string $sinkName Required. The resource name of the sink:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function get($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Lists sinks. (sinks.listBillingAccountsSinks)
+ *
+ * @param string $parent Required. The parent resource whose sinks are to be
+ * listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListSinksResponse
+ */
+ public function listBillingAccountsSinks($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
+ }
+ /**
+ * Updates a sink. If the named sink doesn't exist, then this method is
+ * identical to sinks.create. If the named sink does exist, then this method
+ * replaces the following fields in the existing sink with values from the new
+ * sink: destination, filter, output_version_format, start_time, and end_time.
+ * The updated filter might also have a new writer_identity; see the
+ * unique_writer_identity field. (sinks.update)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * update, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
+ * description of this field. When updating a sink, the effect of this field on
+ * the value of writer_identity in the updated sink depends on both the old and
+ * new values of this field: If the old and new values of this field are both
+ * false or both true, then there is no change to the sink's writer_identity. If
+ * the old value is false and the new value is true, then writer_identity is
+ * changed to a unique service account. It is an error if the old value is true
+ * and the new value is false.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogSink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php
new file mode 100644
index 00000000..f7984800
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Entries.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "entries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $entries = $loggingService->entries;
+ * </code>
+ */
+class Google_Service_Logging_Resource_Entries extends Google_Service_Resource
+{
+ /**
+ * Lists log entries. Use this method to retrieve log entries from Stackdriver
+ * Logging. For ways to export log entries, see Exporting Logs.
+ * (entries.listEntries)
+ *
+ * @param Google_Service_Logging_ListLogEntriesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_ListLogEntriesResponse
+ */
+ public function listEntries(Google_Service_Logging_ListLogEntriesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse");
+ }
+ /**
+ * Writes log entries to Stackdriver Logging. (entries.write)
+ *
+ * @param Google_Service_Logging_WriteLogEntriesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_WriteLogEntriesResponse
+ */
+ public function write(Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Folders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Folders.php
new file mode 100644
index 00000000..e0949582
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Folders.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "folders" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $folders = $loggingService->folders;
+ * </code>
+ */
+class Google_Service_Logging_Resource_Folders extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersLogs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersLogs.php
new file mode 100644
index 00000000..2687daba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersLogs.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "logs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $logs = $loggingService->logs;
+ * </code>
+ */
+class Google_Service_Logging_Resource_FoldersLogs extends Google_Service_Resource
+{
+ /**
+ * Deletes all the log entries in a log. The log reappears if it receives new
+ * entries. Log entries written shortly before the delete operation might not be
+ * deleted. (logs.delete)
+ *
+ * @param string $logName Required. The resource name of the log to delete:
+ * "projects/[PROJECT_ID]/logs/[LOG_ID]"
+ * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
+ * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
+ * example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
+ * /cloudresourcemanager.googleapis.com%2Factivity". For more information about
+ * log names, see LogEntry.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($logName, $optParams = array())
+ {
+ $params = array('logName' => $logName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Lists the logs in projects, organizations, folders, or billing accounts. Only
+ * logs that have entries are listed. (logs.listFoldersLogs)
+ *
+ * @param string $parent Required. The resource name that owns the logs:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListLogsResponse
+ */
+ public function listFoldersLogs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php
new file mode 100644
index 00000000..aec5f660
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/FoldersSinks.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $sinks = $loggingService->sinks;
+ * </code>
+ */
+class Google_Service_Logging_Resource_FoldersSinks extends Google_Service_Resource
+{
+ /**
+ * Creates a sink that exports specified log entries to a destination. The
+ * export of newly-ingested log entries begins immediately, unless the current
+ * time is outside the sink's start and end times or the sink's writer_identity
+ * is not permitted to write to the destination. A sink can export log entries
+ * only from the resource owning the sink. (sinks.create)
+ *
+ * @param string $parent Required. The resource in which to create the sink:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
+ * "projects/my-logging-project", "organizations/123456789".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
+ * identity returned as writer_identity in the new sink. If this value is
+ * omitted or set to false, and if the sink's parent is a project, then the
+ * value returned as writer_identity is the same group or service account used
+ * by Stackdriver Logging before the addition of writer identities to this API.
+ * The sink's destination must be in the same project as the sink itself.If this
+ * field is set to true, or if the sink is owned by a non-project resource such
+ * as an organization, then the value of writer_identity will be a unique
+ * service account used only for exports from the new sink. For more
+ * information, see writer_identity in LogSink.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Deletes a sink. If the sink has a unique writer_identity, then that service
+ * account is also deleted. (sinks.delete)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * delete, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Gets a sink. (sinks.get)
+ *
+ * @param string $sinkName Required. The resource name of the sink:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function get($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Lists sinks. (sinks.listFoldersSinks)
+ *
+ * @param string $parent Required. The parent resource whose sinks are to be
+ * listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListSinksResponse
+ */
+ public function listFoldersSinks($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
+ }
+ /**
+ * Updates a sink. If the named sink doesn't exist, then this method is
+ * identical to sinks.create. If the named sink does exist, then this method
+ * replaces the following fields in the existing sink with values from the new
+ * sink: destination, filter, output_version_format, start_time, and end_time.
+ * The updated filter might also have a new writer_identity; see the
+ * unique_writer_identity field. (sinks.update)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * update, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
+ * description of this field. When updating a sink, the effect of this field on
+ * the value of writer_identity in the updated sink depends on both the old and
+ * new values of this field: If the old and new values of this field are both
+ * false or both true, then there is no change to the sink's writer_identity. If
+ * the old value is false and the new value is true, then writer_identity is
+ * changed to a unique service account. It is an error if the old value is true
+ * and the new value is false.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogSink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php
new file mode 100644
index 00000000..3cb8643a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/MonitoredResourceDescriptors.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "monitoredResourceDescriptors" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $monitoredResourceDescriptors = $loggingService->monitoredResourceDescriptors;
+ * </code>
+ */
+class Google_Service_Logging_Resource_MonitoredResourceDescriptors extends Google_Service_Resource
+{
+ /**
+ * Lists the descriptors for monitored resource types used by Stackdriver
+ * Logging. (monitoredResourceDescriptors.listMonitoredResourceDescriptors)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @return Google_Service_Logging_ListMonitoredResourceDescriptorsResponse
+ */
+ public function listMonitoredResourceDescriptors($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListMonitoredResourceDescriptorsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Organizations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Organizations.php
new file mode 100644
index 00000000..016ced47
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Organizations.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "organizations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $organizations = $loggingService->organizations;
+ * </code>
+ */
+class Google_Service_Logging_Resource_Organizations extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsLogs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsLogs.php
new file mode 100644
index 00000000..f02191a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsLogs.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "logs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $logs = $loggingService->logs;
+ * </code>
+ */
+class Google_Service_Logging_Resource_OrganizationsLogs extends Google_Service_Resource
+{
+ /**
+ * Deletes all the log entries in a log. The log reappears if it receives new
+ * entries. Log entries written shortly before the delete operation might not be
+ * deleted. (logs.delete)
+ *
+ * @param string $logName Required. The resource name of the log to delete:
+ * "projects/[PROJECT_ID]/logs/[LOG_ID]"
+ * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
+ * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
+ * example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
+ * /cloudresourcemanager.googleapis.com%2Factivity". For more information about
+ * log names, see LogEntry.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($logName, $optParams = array())
+ {
+ $params = array('logName' => $logName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Lists the logs in projects, organizations, folders, or billing accounts. Only
+ * logs that have entries are listed. (logs.listOrganizationsLogs)
+ *
+ * @param string $parent Required. The resource name that owns the logs:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListLogsResponse
+ */
+ public function listOrganizationsLogs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php
new file mode 100644
index 00000000..352d2f74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/OrganizationsSinks.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $sinks = $loggingService->sinks;
+ * </code>
+ */
+class Google_Service_Logging_Resource_OrganizationsSinks extends Google_Service_Resource
+{
+ /**
+ * Creates a sink that exports specified log entries to a destination. The
+ * export of newly-ingested log entries begins immediately, unless the current
+ * time is outside the sink's start and end times or the sink's writer_identity
+ * is not permitted to write to the destination. A sink can export log entries
+ * only from the resource owning the sink. (sinks.create)
+ *
+ * @param string $parent Required. The resource in which to create the sink:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
+ * "projects/my-logging-project", "organizations/123456789".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
+ * identity returned as writer_identity in the new sink. If this value is
+ * omitted or set to false, and if the sink's parent is a project, then the
+ * value returned as writer_identity is the same group or service account used
+ * by Stackdriver Logging before the addition of writer identities to this API.
+ * The sink's destination must be in the same project as the sink itself.If this
+ * field is set to true, or if the sink is owned by a non-project resource such
+ * as an organization, then the value of writer_identity will be a unique
+ * service account used only for exports from the new sink. For more
+ * information, see writer_identity in LogSink.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Deletes a sink. If the sink has a unique writer_identity, then that service
+ * account is also deleted. (sinks.delete)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * delete, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Gets a sink. (sinks.get)
+ *
+ * @param string $sinkName Required. The resource name of the sink:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function get($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Lists sinks. (sinks.listOrganizationsSinks)
+ *
+ * @param string $parent Required. The parent resource whose sinks are to be
+ * listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListSinksResponse
+ */
+ public function listOrganizationsSinks($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
+ }
+ /**
+ * Updates a sink. If the named sink doesn't exist, then this method is
+ * identical to sinks.create. If the named sink does exist, then this method
+ * replaces the following fields in the existing sink with values from the new
+ * sink: destination, filter, output_version_format, start_time, and end_time.
+ * The updated filter might also have a new writer_identity; see the
+ * unique_writer_identity field. (sinks.update)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * update, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
+ * description of this field. When updating a sink, the effect of this field on
+ * the value of writer_identity in the updated sink depends on both the old and
+ * new values of this field: If the old and new values of this field are both
+ * false or both true, then there is no change to the sink's writer_identity. If
+ * the old value is false and the new value is true, then writer_identity is
+ * changed to a unique service account. It is an error if the old value is true
+ * and the new value is false.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogSink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Projects.php
new file mode 100644
index 00000000..22dae1b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $projects = $loggingService->projects;
+ * </code>
+ */
+class Google_Service_Logging_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php
new file mode 100644
index 00000000..d1bd323d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsLogs.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "logs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $logs = $loggingService->logs;
+ * </code>
+ */
+class Google_Service_Logging_Resource_ProjectsLogs extends Google_Service_Resource
+{
+ /**
+ * Deletes all the log entries in a log. The log reappears if it receives new
+ * entries. Log entries written shortly before the delete operation might not be
+ * deleted. (logs.delete)
+ *
+ * @param string $logName Required. The resource name of the log to delete:
+ * "projects/[PROJECT_ID]/logs/[LOG_ID]"
+ * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
+ * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For
+ * example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs
+ * /cloudresourcemanager.googleapis.com%2Factivity". For more information about
+ * log names, see LogEntry.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($logName, $optParams = array())
+ {
+ $params = array('logName' => $logName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Lists the logs in projects, organizations, folders, or billing accounts. Only
+ * logs that have entries are listed. (logs.listProjectsLogs)
+ *
+ * @param string $parent Required. The resource name that owns the logs:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @return Google_Service_Logging_ListLogsResponse
+ */
+ public function listProjectsLogs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsMetrics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsMetrics.php
new file mode 100644
index 00000000..b0919d84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsMetrics.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metrics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $metrics = $loggingService->metrics;
+ * </code>
+ */
+class Google_Service_Logging_Resource_ProjectsMetrics extends Google_Service_Resource
+{
+ /**
+ * Creates a logs-based metric. (metrics.create)
+ *
+ * @param string $parent The resource name of the project in which to create the
+ * metric: "projects/[PROJECT_ID]" The new metric must be provided in the
+ * request.
+ * @param Google_Service_Logging_LogMetric $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogMetric
+ */
+ public function create($parent, Google_Service_Logging_LogMetric $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogMetric");
+ }
+ /**
+ * Deletes a logs-based metric. (metrics.delete)
+ *
+ * @param string $metricName The resource name of the metric to delete:
+ * "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($metricName, $optParams = array())
+ {
+ $params = array('metricName' => $metricName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Gets a logs-based metric. (metrics.get)
+ *
+ * @param string $metricName The resource name of the desired metric:
+ * "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogMetric
+ */
+ public function get($metricName, $optParams = array())
+ {
+ $params = array('metricName' => $metricName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogMetric");
+ }
+ /**
+ * Lists logs-based metrics. (metrics.listProjectsMetrics)
+ *
+ * @param string $parent Required. The name of the project containing the
+ * metrics: "projects/[PROJECT_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListLogMetricsResponse
+ */
+ public function listProjectsMetrics($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse");
+ }
+ /**
+ * Creates or updates a logs-based metric. (metrics.update)
+ *
+ * @param string $metricName The resource name of the metric to update:
+ * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be
+ * provided in the request and it's name field must be the same as [METRIC_ID]
+ * If the metric does not exist in [PROJECT_ID], then a new metric is created.
+ * @param Google_Service_Logging_LogMetric $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogMetric
+ */
+ public function update($metricName, Google_Service_Logging_LogMetric $postBody, $optParams = array())
+ {
+ $params = array('metricName' => $metricName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogMetric");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php
new file mode 100644
index 00000000..653c03ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Resource/ProjectsSinks.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sinks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $loggingService = new Google_Service_Logging(...);
+ * $sinks = $loggingService->sinks;
+ * </code>
+ */
+class Google_Service_Logging_Resource_ProjectsSinks extends Google_Service_Resource
+{
+ /**
+ * Creates a sink that exports specified log entries to a destination. The
+ * export of newly-ingested log entries begins immediately, unless the current
+ * time is outside the sink's start and end times or the sink's writer_identity
+ * is not permitted to write to the destination. A sink can export log entries
+ * only from the resource owning the sink. (sinks.create)
+ *
+ * @param string $parent Required. The resource in which to create the sink:
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples:
+ * "projects/my-logging-project", "organizations/123456789".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
+ * identity returned as writer_identity in the new sink. If this value is
+ * omitted or set to false, and if the sink's parent is a project, then the
+ * value returned as writer_identity is the same group or service account used
+ * by Stackdriver Logging before the addition of writer identities to this API.
+ * The sink's destination must be in the same project as the sink itself.If this
+ * field is set to true, or if the sink is owned by a non-project resource such
+ * as an organization, then the value of writer_identity will be a unique
+ * service account used only for exports from the new sink. For more
+ * information, see writer_identity in LogSink.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function create($parent, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Deletes a sink. If the sink has a unique writer_identity, then that service
+ * account is also deleted. (sinks.delete)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * delete, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LoggingEmpty
+ */
+ public function delete($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_LoggingEmpty");
+ }
+ /**
+ * Gets a sink. (sinks.get)
+ *
+ * @param string $sinkName Required. The resource name of the sink:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function get($sinkName, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogSink");
+ }
+ /**
+ * Lists sinks. (sinks.listProjectsSinks)
+ *
+ * @param string $parent Required. The parent resource whose sinks are to be
+ * listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. If present, then retrieve the next
+ * batch of results from the preceding call to this method. pageToken must be
+ * the value of nextPageToken from the previous response. The values of other
+ * method parameters should be identical to those in the previous call.
+ * @opt_param int pageSize Optional. The maximum number of results to return
+ * from this request. Non-positive values are ignored. The presence of
+ * nextPageToken in the response indicates that more results might be available.
+ * @return Google_Service_Logging_ListSinksResponse
+ */
+ public function listProjectsSinks($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListSinksResponse");
+ }
+ /**
+ * Updates a sink. If the named sink doesn't exist, then this method is
+ * identical to sinks.create. If the named sink does exist, then this method
+ * replaces the following fields in the existing sink with values from the new
+ * sink: destination, filter, output_version_format, start_time, and end_time.
+ * The updated filter might also have a new writer_identity; see the
+ * unique_writer_identity field. (sinks.update)
+ *
+ * @param string $sinkName Required. The full resource name of the sink to
+ * update, including the parent resource and the sink identifier:
+ * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
+ * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
+ * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks
+ * /my-sink-id".
+ * @param Google_Service_Logging_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
+ * description of this field. When updating a sink, the effect of this field on
+ * the value of writer_identity in the updated sink depends on both the old and
+ * new values of this field: If the old and new values of this field are both
+ * false or both true, then there is no change to the sink's writer_identity. If
+ * the old value is false and the new value is true, then writer_identity is
+ * changed to a unique service account. It is an error if the old value is true
+ * and the new value is false.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function update($sinkName, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('sinkName' => $sinkName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogSink");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceLocation.php
new file mode 100644
index 00000000..7a61f8e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceLocation.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_SourceLocation extends Google_Model
+{
+ public $file;
+ public $functionName;
+ public $line;
+
+ public function setFile($file)
+ {
+ $this->file = $file;
+ }
+ public function getFile()
+ {
+ return $this->file;
+ }
+ public function setFunctionName($functionName)
+ {
+ $this->functionName = $functionName;
+ }
+ public function getFunctionName()
+ {
+ return $this->functionName;
+ }
+ public function setLine($line)
+ {
+ $this->line = $line;
+ }
+ public function getLine()
+ {
+ return $this->line;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceReference.php
new file mode 100644
index 00000000..ec61ebb6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/SourceReference.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_SourceReference extends Google_Model
+{
+ public $repository;
+ public $revisionId;
+
+ public function setRepository($repository)
+ {
+ $this->repository = $repository;
+ }
+ public function getRepository()
+ {
+ return $this->repository;
+ }
+ public function setRevisionId($revisionId)
+ {
+ $this->revisionId = $revisionId;
+ }
+ public function getRevisionId()
+ {
+ return $this->revisionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Status.php
new file mode 100644
index 00000000..07f225a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesRequest.php
new file mode 100644
index 00000000..ca6a4000
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesRequest.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_Logging_LogEntry';
+ protected $entriesDataType = 'array';
+ public $labels;
+ public $logName;
+ public $partialSuccess;
+ protected $resourceType = 'Google_Service_Logging_MonitoredResource';
+ protected $resourceDataType = '';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLogName($logName)
+ {
+ $this->logName = $logName;
+ }
+ public function getLogName()
+ {
+ return $this->logName;
+ }
+ public function setPartialSuccess($partialSuccess)
+ {
+ $this->partialSuccess = $partialSuccess;
+ }
+ public function getPartialSuccess()
+ {
+ return $this->partialSuccess;
+ }
+ public function setResource(Google_Service_Logging_MonitoredResource $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesResponse.php
new file mode 100644
index 00000000..1cda65d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Logging/WriteLogEntriesResponse.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager.php
new file mode 100644
index 00000000..1ac57769
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager.php
@@ -0,0 +1,229 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Manager (v1beta2).
+ *
+ * <p>
+ * The Deployment Manager API allows users to declaratively configure, deploy
+ * and run complex solutions on the Google Cloud Platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/deployment-manager/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Manager extends Google_Service
+{
+ /** View and manage your applications deployed on Google App Engine. */
+ const APPENGINE_ADMIN =
+ "https://www.googleapis.com/auth/appengine.admin";
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** View and manage your Google Compute Engine resources. */
+ const COMPUTE =
+ "https://www.googleapis.com/auth/compute";
+ /** Manage your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_WRITE =
+ "https://www.googleapis.com/auth/devstorage.read_write";
+ /** View and manage your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN =
+ "https://www.googleapis.com/auth/ndev.cloudman";
+ /** View your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN_READONLY =
+ "https://www.googleapis.com/auth/ndev.cloudman.readonly";
+
+ public $deployments;
+ public $templates;
+
+ /**
+ * Constructs the internal representation of the Manager service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'manager/v1beta2/projects/';
+ $this->version = 'v1beta2';
+ $this->serviceName = 'manager';
+
+ $this->deployments = new Google_Service_Manager_DeploymentsResource(
+ $this,
+ $this->serviceName,
+ 'deployments',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deploymentName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deploymentName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{projectId}/regions/{region}/deployments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{projectId}/regions/{region}/deployments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'region' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->templates = new Google_Service_Manager_TemplatesResource(
+ $this,
+ $this->serviceName,
+ 'templates',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{projectId}/templates/{templateName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'templateName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{projectId}/templates/{templateName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'templateName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{projectId}/templates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{projectId}/templates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AccessConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AccessConfig.php
new file mode 100644
index 00000000..23923afc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AccessConfig.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_AccessConfig extends Google_Model
+{
+ public $name;
+ public $natIp;
+ public $type;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNatIp($natIp)
+ {
+ $this->natIp = $natIp;
+ }
+ public function getNatIp()
+ {
+ return $this->natIp;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Action.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Action.php
new file mode 100644
index 00000000..96ff2a02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Action.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_Action extends Google_Collection
+{
+ protected $collection_key = 'commands';
+ public $commands;
+ public $timeoutMs;
+
+ public function setCommands($commands)
+ {
+ $this->commands = $commands;
+ }
+ public function getCommands()
+ {
+ return $this->commands;
+ }
+ public function setTimeoutMs($timeoutMs)
+ {
+ $this->timeoutMs = $timeoutMs;
+ }
+ public function getTimeoutMs()
+ {
+ return $this->timeoutMs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AllowedRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AllowedRule.php
new file mode 100644
index 00000000..913a2dd8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AllowedRule.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_AllowedRule extends Google_Collection
+{
+ protected $collection_key = 'ports';
+ protected $internal_gapi_mappings = array(
+ "iPProtocol" => "IPProtocol",
+ );
+ public $iPProtocol;
+ public $ports;
+
+ public function setIPProtocol($iPProtocol)
+ {
+ $this->iPProtocol = $iPProtocol;
+ }
+ public function getIPProtocol()
+ {
+ return $this->iPProtocol;
+ }
+ public function setPorts($ports)
+ {
+ $this->ports = $ports;
+ }
+ public function getPorts()
+ {
+ return $this->ports;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModule.php
new file mode 100644
index 00000000..2eb8df7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModule.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_AutoscalingModule extends Google_Model
+{
+ public $coolDownPeriodSec;
+ public $description;
+ public $maxNumReplicas;
+ public $minNumReplicas;
+ public $signalType;
+ public $targetModule;
+ public $targetUtilization;
+
+ public function setCoolDownPeriodSec($coolDownPeriodSec)
+ {
+ $this->coolDownPeriodSec = $coolDownPeriodSec;
+ }
+ public function getCoolDownPeriodSec()
+ {
+ return $this->coolDownPeriodSec;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setMaxNumReplicas($maxNumReplicas)
+ {
+ $this->maxNumReplicas = $maxNumReplicas;
+ }
+ public function getMaxNumReplicas()
+ {
+ return $this->maxNumReplicas;
+ }
+ public function setMinNumReplicas($minNumReplicas)
+ {
+ $this->minNumReplicas = $minNumReplicas;
+ }
+ public function getMinNumReplicas()
+ {
+ return $this->minNumReplicas;
+ }
+ public function setSignalType($signalType)
+ {
+ $this->signalType = $signalType;
+ }
+ public function getSignalType()
+ {
+ return $this->signalType;
+ }
+ public function setTargetModule($targetModule)
+ {
+ $this->targetModule = $targetModule;
+ }
+ public function getTargetModule()
+ {
+ return $this->targetModule;
+ }
+ public function setTargetUtilization($targetUtilization)
+ {
+ $this->targetUtilization = $targetUtilization;
+ }
+ public function getTargetUtilization()
+ {
+ return $this->targetUtilization;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModuleStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModuleStatus.php
new file mode 100644
index 00000000..4c778240
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/AutoscalingModuleStatus.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_AutoscalingModuleStatus extends Google_Model
+{
+ public $autoscalingConfigUrl;
+
+ public function setAutoscalingConfigUrl($autoscalingConfigUrl)
+ {
+ $this->autoscalingConfigUrl = $autoscalingConfigUrl;
+ }
+ public function getAutoscalingConfigUrl()
+ {
+ return $this->autoscalingConfigUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeployState.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeployState.php
new file mode 100644
index 00000000..abdc1837
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeployState.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_DeployState extends Google_Model
+{
+ public $details;
+ public $status;
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Deployment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Deployment.php
new file mode 100644
index 00000000..88cff021
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Deployment.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_Deployment extends Google_Collection
+{
+ protected $collection_key = 'overrides';
+ public $creationDate;
+ public $description;
+ protected $modulesType = 'Google_Service_Manager_ModuleStatus';
+ protected $modulesDataType = 'map';
+ public $name;
+ protected $overridesType = 'Google_Service_Manager_ParamOverride';
+ protected $overridesDataType = 'array';
+ protected $stateType = 'Google_Service_Manager_DeployState';
+ protected $stateDataType = '';
+ public $templateName;
+
+ public function setCreationDate($creationDate)
+ {
+ $this->creationDate = $creationDate;
+ }
+ public function getCreationDate()
+ {
+ return $this->creationDate;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setModules($modules)
+ {
+ $this->modules = $modules;
+ }
+ public function getModules()
+ {
+ return $this->modules;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOverrides($overrides)
+ {
+ $this->overrides = $overrides;
+ }
+ public function getOverrides()
+ {
+ return $this->overrides;
+ }
+ public function setState(Google_Service_Manager_DeployState $state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTemplateName($templateName)
+ {
+ $this->templateName = $templateName;
+ }
+ public function getTemplateName()
+ {
+ return $this->templateName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsListResponse.php
new file mode 100644
index 00000000..bd16e823
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_DeploymentsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_Manager_Deployment';
+ protected $resourcesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsResource.php
new file mode 100644
index 00000000..7f9abcd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DeploymentsResource.php
@@ -0,0 +1,92 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "deployments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $managerService = new Google_Service_Manager(...);
+ * $deployments = $managerService->deployments;
+ * </code>
+ */
+class Google_Service_Manager_DeploymentsResource extends Google_Service_Resource
+{
+ /**
+ * (deployments.delete)
+ *
+ * @param string $projectId
+ * @param string $region
+ * @param string $deploymentName
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($projectId, $region, $deploymentName, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * (deployments.get)
+ *
+ * @param string $projectId
+ * @param string $region
+ * @param string $deploymentName
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Deployment
+ */
+ public function get($projectId, $region, $deploymentName, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Manager_Deployment");
+ }
+ /**
+ * (deployments.insert)
+ *
+ * @param string $projectId
+ * @param string $region
+ * @param Google_Deployment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Deployment
+ */
+ public function insert($projectId, $region, Google_Service_Manager_Deployment $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Manager_Deployment");
+ }
+ /**
+ * (deployments.listDeployments)
+ *
+ * @param string $projectId
+ * @param string $region
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum count of results to be returned. Acceptable
+ * values are 0 to 100, inclusive. (Default: 50)
+ * @opt_param string pageToken Specifies a nextPageToken returned by a previous
+ * list request. This token can be used to request the next page of results from
+ * a previous list request.
+ * @return Google_Service_DeploymentsListResponse
+ */
+ public function listDeployments($projectId, $region, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Manager_DeploymentsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DiskAttachment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DiskAttachment.php
new file mode 100644
index 00000000..53f0fb20
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/DiskAttachment.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_DiskAttachment extends Google_Model
+{
+ public $deviceName;
+ public $index;
+
+ public function setDeviceName($deviceName)
+ {
+ $this->deviceName = $deviceName;
+ }
+ public function getDeviceName()
+ {
+ return $this->deviceName;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/EnvVariable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/EnvVariable.php
new file mode 100644
index 00000000..e14a4953
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/EnvVariable.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_EnvVariable extends Google_Model
+{
+ public $hidden;
+ public $value;
+
+ public function setHidden($hidden)
+ {
+ $this->hidden = $hidden;
+ }
+ public function getHidden()
+ {
+ return $this->hidden;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ExistingDisk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ExistingDisk.php
new file mode 100644
index 00000000..ef06866d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ExistingDisk.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ExistingDisk extends Google_Model
+{
+ protected $attachmentType = 'Google_Service_Manager_DiskAttachment';
+ protected $attachmentDataType = '';
+ public $source;
+
+ public function setAttachment(Google_Service_Manager_DiskAttachment $attachment)
+ {
+ $this->attachment = $attachment;
+ }
+ public function getAttachment()
+ {
+ return $this->attachment;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModule.php
new file mode 100644
index 00000000..dd53903a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModule.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_FirewallModule extends Google_Collection
+{
+ protected $collection_key = 'targetTags';
+ protected $allowedType = 'Google_Service_Manager_AllowedRule';
+ protected $allowedDataType = 'array';
+ public $description;
+ public $network;
+ public $sourceRanges;
+ public $sourceTags;
+ public $targetTags;
+
+ public function setAllowed($allowed)
+ {
+ $this->allowed = $allowed;
+ }
+ public function getAllowed()
+ {
+ return $this->allowed;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setSourceRanges($sourceRanges)
+ {
+ $this->sourceRanges = $sourceRanges;
+ }
+ public function getSourceRanges()
+ {
+ return $this->sourceRanges;
+ }
+ public function setSourceTags($sourceTags)
+ {
+ $this->sourceTags = $sourceTags;
+ }
+ public function getSourceTags()
+ {
+ return $this->sourceTags;
+ }
+ public function setTargetTags($targetTags)
+ {
+ $this->targetTags = $targetTags;
+ }
+ public function getTargetTags()
+ {
+ return $this->targetTags;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModuleStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModuleStatus.php
new file mode 100644
index 00000000..2328cb89
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/FirewallModuleStatus.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_FirewallModuleStatus extends Google_Model
+{
+ public $firewallUrl;
+
+ public function setFirewallUrl($firewallUrl)
+ {
+ $this->firewallUrl = $firewallUrl;
+ }
+ public function getFirewallUrl()
+ {
+ return $this->firewallUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModule.php
new file mode 100644
index 00000000..55821ac8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModule.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_HealthCheckModule extends Google_Model
+{
+ public $checkIntervalSec;
+ public $description;
+ public $healthyThreshold;
+ public $host;
+ public $path;
+ public $port;
+ public $timeoutSec;
+ public $unhealthyThreshold;
+
+ public function setCheckIntervalSec($checkIntervalSec)
+ {
+ $this->checkIntervalSec = $checkIntervalSec;
+ }
+ public function getCheckIntervalSec()
+ {
+ return $this->checkIntervalSec;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHealthyThreshold($healthyThreshold)
+ {
+ $this->healthyThreshold = $healthyThreshold;
+ }
+ public function getHealthyThreshold()
+ {
+ return $this->healthyThreshold;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setTimeoutSec($timeoutSec)
+ {
+ $this->timeoutSec = $timeoutSec;
+ }
+ public function getTimeoutSec()
+ {
+ return $this->timeoutSec;
+ }
+ public function setUnhealthyThreshold($unhealthyThreshold)
+ {
+ $this->unhealthyThreshold = $unhealthyThreshold;
+ }
+ public function getUnhealthyThreshold()
+ {
+ return $this->unhealthyThreshold;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModuleStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModuleStatus.php
new file mode 100644
index 00000000..7d2cbcf4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/HealthCheckModuleStatus.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_HealthCheckModuleStatus extends Google_Model
+{
+ public $healthCheckUrl;
+
+ public function setHealthCheckUrl($healthCheckUrl)
+ {
+ $this->healthCheckUrl = $healthCheckUrl;
+ }
+ public function getHealthCheckUrl()
+ {
+ return $this->healthCheckUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModule.php
new file mode 100644
index 00000000..0f7a4bc4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModule.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_LbModule extends Google_Collection
+{
+ protected $collection_key = 'targetModules';
+ public $description;
+ public $healthChecks;
+ public $ipAddress;
+ public $ipProtocol;
+ public $portRange;
+ public $sessionAffinity;
+ public $targetModules;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHealthChecks($healthChecks)
+ {
+ $this->healthChecks = $healthChecks;
+ }
+ public function getHealthChecks()
+ {
+ return $this->healthChecks;
+ }
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setIpProtocol($ipProtocol)
+ {
+ $this->ipProtocol = $ipProtocol;
+ }
+ public function getIpProtocol()
+ {
+ return $this->ipProtocol;
+ }
+ public function setPortRange($portRange)
+ {
+ $this->portRange = $portRange;
+ }
+ public function getPortRange()
+ {
+ return $this->portRange;
+ }
+ public function setSessionAffinity($sessionAffinity)
+ {
+ $this->sessionAffinity = $sessionAffinity;
+ }
+ public function getSessionAffinity()
+ {
+ return $this->sessionAffinity;
+ }
+ public function setTargetModules($targetModules)
+ {
+ $this->targetModules = $targetModules;
+ }
+ public function getTargetModules()
+ {
+ return $this->targetModules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModuleStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModuleStatus.php
new file mode 100644
index 00000000..88a19148
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/LbModuleStatus.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_LbModuleStatus extends Google_Model
+{
+ public $forwardingRuleUrl;
+ public $targetPoolUrl;
+
+ public function setForwardingRuleUrl($forwardingRuleUrl)
+ {
+ $this->forwardingRuleUrl = $forwardingRuleUrl;
+ }
+ public function getForwardingRuleUrl()
+ {
+ return $this->forwardingRuleUrl;
+ }
+ public function setTargetPoolUrl($targetPoolUrl)
+ {
+ $this->targetPoolUrl = $targetPoolUrl;
+ }
+ public function getTargetPoolUrl()
+ {
+ return $this->targetPoolUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Metadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Metadata.php
new file mode 100644
index 00000000..9936e676
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Metadata.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_Metadata extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $fingerPrint;
+ protected $itemsType = 'Google_Service_Manager_MetadataItem';
+ protected $itemsDataType = 'array';
+
+ public function setFingerPrint($fingerPrint)
+ {
+ $this->fingerPrint = $fingerPrint;
+ }
+ public function getFingerPrint()
+ {
+ return $this->fingerPrint;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/MetadataItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/MetadataItem.php
new file mode 100644
index 00000000..906f60d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/MetadataItem.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_MetadataItem extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Module.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Module.php
new file mode 100644
index 00000000..f8022151
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Module.php
@@ -0,0 +1,90 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_Module extends Google_Model
+{
+ protected $autoscalingModuleType = 'Google_Service_Manager_AutoscalingModule';
+ protected $autoscalingModuleDataType = '';
+ protected $firewallModuleType = 'Google_Service_Manager_FirewallModule';
+ protected $firewallModuleDataType = '';
+ protected $healthCheckModuleType = 'Google_Service_Manager_HealthCheckModule';
+ protected $healthCheckModuleDataType = '';
+ protected $lbModuleType = 'Google_Service_Manager_LbModule';
+ protected $lbModuleDataType = '';
+ protected $networkModuleType = 'Google_Service_Manager_NetworkModule';
+ protected $networkModuleDataType = '';
+ protected $replicaPoolModuleType = 'Google_Service_Manager_ReplicaPoolModule';
+ protected $replicaPoolModuleDataType = '';
+ public $type;
+
+ public function setAutoscalingModule(Google_Service_Manager_AutoscalingModule $autoscalingModule)
+ {
+ $this->autoscalingModule = $autoscalingModule;
+ }
+ public function getAutoscalingModule()
+ {
+ return $this->autoscalingModule;
+ }
+ public function setFirewallModule(Google_Service_Manager_FirewallModule $firewallModule)
+ {
+ $this->firewallModule = $firewallModule;
+ }
+ public function getFirewallModule()
+ {
+ return $this->firewallModule;
+ }
+ public function setHealthCheckModule(Google_Service_Manager_HealthCheckModule $healthCheckModule)
+ {
+ $this->healthCheckModule = $healthCheckModule;
+ }
+ public function getHealthCheckModule()
+ {
+ return $this->healthCheckModule;
+ }
+ public function setLbModule(Google_Service_Manager_LbModule $lbModule)
+ {
+ $this->lbModule = $lbModule;
+ }
+ public function getLbModule()
+ {
+ return $this->lbModule;
+ }
+ public function setNetworkModule(Google_Service_Manager_NetworkModule $networkModule)
+ {
+ $this->networkModule = $networkModule;
+ }
+ public function getNetworkModule()
+ {
+ return $this->networkModule;
+ }
+ public function setReplicaPoolModule(Google_Service_Manager_ReplicaPoolModule $replicaPoolModule)
+ {
+ $this->replicaPoolModule = $replicaPoolModule;
+ }
+ public function getReplicaPoolModule()
+ {
+ return $this->replicaPoolModule;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ModuleStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ModuleStatus.php
new file mode 100644
index 00000000..145fb322
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ModuleStatus.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ModuleStatus extends Google_Model
+{
+ protected $autoscalingModuleStatusType = 'Google_Service_Manager_AutoscalingModuleStatus';
+ protected $autoscalingModuleStatusDataType = '';
+ protected $firewallModuleStatusType = 'Google_Service_Manager_FirewallModuleStatus';
+ protected $firewallModuleStatusDataType = '';
+ protected $healthCheckModuleStatusType = 'Google_Service_Manager_HealthCheckModuleStatus';
+ protected $healthCheckModuleStatusDataType = '';
+ protected $lbModuleStatusType = 'Google_Service_Manager_LbModuleStatus';
+ protected $lbModuleStatusDataType = '';
+ protected $networkModuleStatusType = 'Google_Service_Manager_NetworkModuleStatus';
+ protected $networkModuleStatusDataType = '';
+ protected $replicaPoolModuleStatusType = 'Google_Service_Manager_ReplicaPoolModuleStatus';
+ protected $replicaPoolModuleStatusDataType = '';
+ protected $stateType = 'Google_Service_Manager_DeployState';
+ protected $stateDataType = '';
+ public $type;
+
+ public function setAutoscalingModuleStatus(Google_Service_Manager_AutoscalingModuleStatus $autoscalingModuleStatus)
+ {
+ $this->autoscalingModuleStatus = $autoscalingModuleStatus;
+ }
+ public function getAutoscalingModuleStatus()
+ {
+ return $this->autoscalingModuleStatus;
+ }
+ public function setFirewallModuleStatus(Google_Service_Manager_FirewallModuleStatus $firewallModuleStatus)
+ {
+ $this->firewallModuleStatus = $firewallModuleStatus;
+ }
+ public function getFirewallModuleStatus()
+ {
+ return $this->firewallModuleStatus;
+ }
+ public function setHealthCheckModuleStatus(Google_Service_Manager_HealthCheckModuleStatus $healthCheckModuleStatus)
+ {
+ $this->healthCheckModuleStatus = $healthCheckModuleStatus;
+ }
+ public function getHealthCheckModuleStatus()
+ {
+ return $this->healthCheckModuleStatus;
+ }
+ public function setLbModuleStatus(Google_Service_Manager_LbModuleStatus $lbModuleStatus)
+ {
+ $this->lbModuleStatus = $lbModuleStatus;
+ }
+ public function getLbModuleStatus()
+ {
+ return $this->lbModuleStatus;
+ }
+ public function setNetworkModuleStatus(Google_Service_Manager_NetworkModuleStatus $networkModuleStatus)
+ {
+ $this->networkModuleStatus = $networkModuleStatus;
+ }
+ public function getNetworkModuleStatus()
+ {
+ return $this->networkModuleStatus;
+ }
+ public function setReplicaPoolModuleStatus(Google_Service_Manager_ReplicaPoolModuleStatus $replicaPoolModuleStatus)
+ {
+ $this->replicaPoolModuleStatus = $replicaPoolModuleStatus;
+ }
+ public function getReplicaPoolModuleStatus()
+ {
+ return $this->replicaPoolModuleStatus;
+ }
+ public function setState(Google_Service_Manager_DeployState $state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkInterface.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkInterface.php
new file mode 100644
index 00000000..5fa0517e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkInterface.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_NetworkInterface extends Google_Collection
+{
+ protected $collection_key = 'accessConfigs';
+ protected $accessConfigsType = 'Google_Service_Manager_AccessConfig';
+ protected $accessConfigsDataType = 'array';
+ public $name;
+ public $network;
+ public $networkIp;
+
+ public function setAccessConfigs($accessConfigs)
+ {
+ $this->accessConfigs = $accessConfigs;
+ }
+ public function getAccessConfigs()
+ {
+ return $this->accessConfigs;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setNetworkIp($networkIp)
+ {
+ $this->networkIp = $networkIp;
+ }
+ public function getNetworkIp()
+ {
+ return $this->networkIp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModule.php
new file mode 100644
index 00000000..816687d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModule.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_NetworkModule extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "iPv4Range" => "IPv4Range",
+ );
+ public $iPv4Range;
+ public $description;
+ public $gatewayIPv4;
+
+ public function setIPv4Range($iPv4Range)
+ {
+ $this->iPv4Range = $iPv4Range;
+ }
+ public function getIPv4Range()
+ {
+ return $this->iPv4Range;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setGatewayIPv4($gatewayIPv4)
+ {
+ $this->gatewayIPv4 = $gatewayIPv4;
+ }
+ public function getGatewayIPv4()
+ {
+ return $this->gatewayIPv4;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModuleStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModuleStatus.php
new file mode 100644
index 00000000..915c4f3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NetworkModuleStatus.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_NetworkModuleStatus extends Google_Model
+{
+ public $networkUrl;
+
+ public function setNetworkUrl($networkUrl)
+ {
+ $this->networkUrl = $networkUrl;
+ }
+ public function getNetworkUrl()
+ {
+ return $this->networkUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDisk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDisk.php
new file mode 100644
index 00000000..42b14994
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDisk.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_NewDisk extends Google_Model
+{
+ protected $attachmentType = 'Google_Service_Manager_DiskAttachment';
+ protected $attachmentDataType = '';
+ public $autoDelete;
+ public $boot;
+ protected $initializeParamsType = 'Google_Service_Manager_NewDiskInitializeParams';
+ protected $initializeParamsDataType = '';
+
+ public function setAttachment(Google_Service_Manager_DiskAttachment $attachment)
+ {
+ $this->attachment = $attachment;
+ }
+ public function getAttachment()
+ {
+ return $this->attachment;
+ }
+ public function setAutoDelete($autoDelete)
+ {
+ $this->autoDelete = $autoDelete;
+ }
+ public function getAutoDelete()
+ {
+ return $this->autoDelete;
+ }
+ public function setBoot($boot)
+ {
+ $this->boot = $boot;
+ }
+ public function getBoot()
+ {
+ return $this->boot;
+ }
+ public function setInitializeParams(Google_Service_Manager_NewDiskInitializeParams $initializeParams)
+ {
+ $this->initializeParams = $initializeParams;
+ }
+ public function getInitializeParams()
+ {
+ return $this->initializeParams;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDiskInitializeParams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDiskInitializeParams.php
new file mode 100644
index 00000000..2246aa44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/NewDiskInitializeParams.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_NewDiskInitializeParams extends Google_Model
+{
+ public $diskSizeGb;
+ public $diskType;
+ public $sourceImage;
+
+ public function setDiskSizeGb($diskSizeGb)
+ {
+ $this->diskSizeGb = $diskSizeGb;
+ }
+ public function getDiskSizeGb()
+ {
+ return $this->diskSizeGb;
+ }
+ public function setDiskType($diskType)
+ {
+ $this->diskType = $diskType;
+ }
+ public function getDiskType()
+ {
+ return $this->diskType;
+ }
+ public function setSourceImage($sourceImage)
+ {
+ $this->sourceImage = $sourceImage;
+ }
+ public function getSourceImage()
+ {
+ return $this->sourceImage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ParamOverride.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ParamOverride.php
new file mode 100644
index 00000000..1c0193eb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ParamOverride.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ParamOverride extends Google_Model
+{
+ public $path;
+ public $value;
+
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModule.php
new file mode 100644
index 00000000..fef7a06a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModule.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ReplicaPoolModule extends Google_Collection
+{
+ protected $collection_key = 'healthChecks';
+ protected $envVariablesType = 'Google_Service_Manager_EnvVariable';
+ protected $envVariablesDataType = 'map';
+ public $healthChecks;
+ public $numReplicas;
+ protected $replicaPoolParamsType = 'Google_Service_Manager_ReplicaPoolParams';
+ protected $replicaPoolParamsDataType = '';
+ public $resourceView;
+
+ public function setEnvVariables($envVariables)
+ {
+ $this->envVariables = $envVariables;
+ }
+ public function getEnvVariables()
+ {
+ return $this->envVariables;
+ }
+ public function setHealthChecks($healthChecks)
+ {
+ $this->healthChecks = $healthChecks;
+ }
+ public function getHealthChecks()
+ {
+ return $this->healthChecks;
+ }
+ public function setNumReplicas($numReplicas)
+ {
+ $this->numReplicas = $numReplicas;
+ }
+ public function getNumReplicas()
+ {
+ return $this->numReplicas;
+ }
+ public function setReplicaPoolParams(Google_Service_Manager_ReplicaPoolParams $replicaPoolParams)
+ {
+ $this->replicaPoolParams = $replicaPoolParams;
+ }
+ public function getReplicaPoolParams()
+ {
+ return $this->replicaPoolParams;
+ }
+ public function setResourceView($resourceView)
+ {
+ $this->resourceView = $resourceView;
+ }
+ public function getResourceView()
+ {
+ return $this->resourceView;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModuleStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModuleStatus.php
new file mode 100644
index 00000000..3ff49116
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolModuleStatus.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ReplicaPoolModuleStatus extends Google_Model
+{
+ public $replicaPoolUrl;
+ public $resourceViewUrl;
+
+ public function setReplicaPoolUrl($replicaPoolUrl)
+ {
+ $this->replicaPoolUrl = $replicaPoolUrl;
+ }
+ public function getReplicaPoolUrl()
+ {
+ return $this->replicaPoolUrl;
+ }
+ public function setResourceViewUrl($resourceViewUrl)
+ {
+ $this->resourceViewUrl = $resourceViewUrl;
+ }
+ public function getResourceViewUrl()
+ {
+ return $this->resourceViewUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParams.php
new file mode 100644
index 00000000..0e58275e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParams.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ReplicaPoolParams extends Google_Model
+{
+ protected $v1beta1Type = 'Google_Service_Manager_ReplicaPoolParamsV1Beta1';
+ protected $v1beta1DataType = '';
+
+ public function setV1beta1(Google_Service_Manager_ReplicaPoolParamsV1Beta1 $v1beta1)
+ {
+ $this->v1beta1 = $v1beta1;
+ }
+ public function getV1beta1()
+ {
+ return $this->v1beta1;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParamsV1Beta1.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParamsV1Beta1.php
new file mode 100644
index 00000000..b20d58b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParamsV1Beta1.php
@@ -0,0 +1,154 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ReplicaPoolParamsV1Beta1 extends Google_Collection
+{
+ protected $collection_key = 'serviceAccounts';
+ public $autoRestart;
+ public $baseInstanceName;
+ public $canIpForward;
+ public $description;
+ protected $disksToAttachType = 'Google_Service_Manager_ExistingDisk';
+ protected $disksToAttachDataType = 'array';
+ protected $disksToCreateType = 'Google_Service_Manager_NewDisk';
+ protected $disksToCreateDataType = 'array';
+ public $initAction;
+ public $machineType;
+ protected $metadataType = 'Google_Service_Manager_Metadata';
+ protected $metadataDataType = '';
+ protected $networkInterfacesType = 'Google_Service_Manager_NetworkInterface';
+ protected $networkInterfacesDataType = 'array';
+ public $onHostMaintenance;
+ protected $serviceAccountsType = 'Google_Service_Manager_ServiceAccount';
+ protected $serviceAccountsDataType = 'array';
+ protected $tagsType = 'Google_Service_Manager_Tag';
+ protected $tagsDataType = '';
+ public $zone;
+
+ public function setAutoRestart($autoRestart)
+ {
+ $this->autoRestart = $autoRestart;
+ }
+ public function getAutoRestart()
+ {
+ return $this->autoRestart;
+ }
+ public function setBaseInstanceName($baseInstanceName)
+ {
+ $this->baseInstanceName = $baseInstanceName;
+ }
+ public function getBaseInstanceName()
+ {
+ return $this->baseInstanceName;
+ }
+ public function setCanIpForward($canIpForward)
+ {
+ $this->canIpForward = $canIpForward;
+ }
+ public function getCanIpForward()
+ {
+ return $this->canIpForward;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisksToAttach($disksToAttach)
+ {
+ $this->disksToAttach = $disksToAttach;
+ }
+ public function getDisksToAttach()
+ {
+ return $this->disksToAttach;
+ }
+ public function setDisksToCreate($disksToCreate)
+ {
+ $this->disksToCreate = $disksToCreate;
+ }
+ public function getDisksToCreate()
+ {
+ return $this->disksToCreate;
+ }
+ public function setInitAction($initAction)
+ {
+ $this->initAction = $initAction;
+ }
+ public function getInitAction()
+ {
+ return $this->initAction;
+ }
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+ public function setMetadata(Google_Service_Manager_Metadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setNetworkInterfaces($networkInterfaces)
+ {
+ $this->networkInterfaces = $networkInterfaces;
+ }
+ public function getNetworkInterfaces()
+ {
+ return $this->networkInterfaces;
+ }
+ public function setOnHostMaintenance($onHostMaintenance)
+ {
+ $this->onHostMaintenance = $onHostMaintenance;
+ }
+ public function getOnHostMaintenance()
+ {
+ return $this->onHostMaintenance;
+ }
+ public function setServiceAccounts($serviceAccounts)
+ {
+ $this->serviceAccounts = $serviceAccounts;
+ }
+ public function getServiceAccounts()
+ {
+ return $this->serviceAccounts;
+ }
+ public function setTags(Google_Service_Manager_Tag $tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ServiceAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ServiceAccount.php
new file mode 100644
index 00000000..59aa96d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/ServiceAccount.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_ServiceAccount extends Google_Collection
+{
+ protected $collection_key = 'scopes';
+ public $email;
+ public $scopes;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setScopes($scopes)
+ {
+ $this->scopes = $scopes;
+ }
+ public function getScopes()
+ {
+ return $this->scopes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Tag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Tag.php
new file mode 100644
index 00000000..0fef4180
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Tag.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_Tag extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $fingerPrint;
+ public $items;
+
+ public function setFingerPrint($fingerPrint)
+ {
+ $this->fingerPrint = $fingerPrint;
+ }
+ public function getFingerPrint()
+ {
+ return $this->fingerPrint;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Template.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Template.php
new file mode 100644
index 00000000..ad21dd9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/Template.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_Template extends Google_Model
+{
+ protected $actionsType = 'Google_Service_Manager_Action';
+ protected $actionsDataType = 'map';
+ public $description;
+ protected $modulesType = 'Google_Service_Manager_Module';
+ protected $modulesDataType = 'map';
+ public $name;
+
+ public function setActions($actions)
+ {
+ $this->actions = $actions;
+ }
+ public function getActions()
+ {
+ return $this->actions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setModules($modules)
+ {
+ $this->modules = $modules;
+ }
+ public function getModules()
+ {
+ return $this->modules;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesListResponse.php
new file mode 100644
index 00000000..515f148d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Manager_TemplatesListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_Manager_Template';
+ protected $resourcesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesResource.php
new file mode 100644
index 00000000..b5b133a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Manager/TemplatesResource.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "templates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $managerService = new Google_Service_Manager(...);
+ * $templates = $managerService->templates;
+ * </code>
+ */
+class Google_Service_Manager_TemplatesResource extends Google_Service_Resource
+{
+ /**
+ * (templates.delete)
+ *
+ * @param string $projectId
+ * @param string $templateName
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($projectId, $templateName, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'templateName' => $templateName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * (templates.get)
+ *
+ * @param string $projectId
+ * @param string $templateName
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Template
+ */
+ public function get($projectId, $templateName, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'templateName' => $templateName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Manager_Template");
+ }
+ /**
+ * (templates.insert)
+ *
+ * @param string $projectId
+ * @param Google_Template $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Template
+ */
+ public function insert($projectId, Google_Service_Manager_Template $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Manager_Template");
+ }
+ /**
+ * (templates.listTemplates)
+ *
+ * @param string $projectId
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum count of results to be returned. Acceptable
+ * values are 0 to 100, inclusive. (Default: 50)
+ * @opt_param string pageToken Specifies a nextPageToken returned by a previous
+ * list request. This token can be used to request the next page of results from
+ * a previous list request.
+ * @return Google_Service_TemplatesListResponse
+ */
+ public function listTemplates($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Manager_TemplatesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter.php
new file mode 100644
index 00000000..d3613abb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ManufacturerCenter (v1).
+ *
+ * <p>
+ * Public API for managing Manufacturer Center related data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/manufacturers/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ManufacturerCenter extends Google_Service
+{
+ /** Manage your product listings for Google Manufacturer Center. */
+ const MANUFACTURERCENTER =
+ "https://www.googleapis.com/auth/manufacturercenter";
+
+ public $accounts_products;
+
+ /**
+ * Constructs the internal representation of the ManufacturerCenter service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://manufacturers.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'manufacturers';
+
+ $this->accounts_products = new Google_Service_ManufacturerCenter_Resource_AccountsProducts(
+ $this,
+ $this->serviceName,
+ 'products',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+parent}/products/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/products',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Attributes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Attributes.php
new file mode 100644
index 00000000..6e546d70
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Attributes.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ManufacturerCenter_Attributes extends Google_Collection
+{
+ protected $collection_key = 'productType';
+ public $brand;
+ public $gtin;
+ public $mpn;
+ public $productLine;
+ public $productName;
+ public $productPageUrl;
+ public $productType;
+ public $title;
+
+ public function setBrand($brand)
+ {
+ $this->brand = $brand;
+ }
+ public function getBrand()
+ {
+ return $this->brand;
+ }
+ public function setGtin($gtin)
+ {
+ $this->gtin = $gtin;
+ }
+ public function getGtin()
+ {
+ return $this->gtin;
+ }
+ public function setMpn($mpn)
+ {
+ $this->mpn = $mpn;
+ }
+ public function getMpn()
+ {
+ return $this->mpn;
+ }
+ public function setProductLine($productLine)
+ {
+ $this->productLine = $productLine;
+ }
+ public function getProductLine()
+ {
+ return $this->productLine;
+ }
+ public function setProductName($productName)
+ {
+ $this->productName = $productName;
+ }
+ public function getProductName()
+ {
+ return $this->productName;
+ }
+ public function setProductPageUrl($productPageUrl)
+ {
+ $this->productPageUrl = $productPageUrl;
+ }
+ public function getProductPageUrl()
+ {
+ return $this->productPageUrl;
+ }
+ public function setProductType($productType)
+ {
+ $this->productType = $productType;
+ }
+ public function getProductType()
+ {
+ return $this->productType;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Issue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Issue.php
new file mode 100644
index 00000000..cf0c22c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Issue.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ManufacturerCenter_Issue extends Google_Model
+{
+ public $attribute;
+ public $description;
+ public $severity;
+ public $type;
+
+ public function setAttribute($attribute)
+ {
+ $this->attribute = $attribute;
+ }
+ public function getAttribute()
+ {
+ return $this->attribute;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/ListProductsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/ListProductsResponse.php
new file mode 100644
index 00000000..5f5452cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/ListProductsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ManufacturerCenter_ListProductsResponse extends Google_Collection
+{
+ protected $collection_key = 'products';
+ public $nextPageToken;
+ protected $productsType = 'Google_Service_ManufacturerCenter_Product';
+ protected $productsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setProducts($products)
+ {
+ $this->products = $products;
+ }
+ public function getProducts()
+ {
+ return $this->products;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php
new file mode 100644
index 00000000..8ba6e58b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Product.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ManufacturerCenter_Product extends Google_Collection
+{
+ protected $collection_key = 'manuallyDeletedAttributes';
+ public $contentLanguage;
+ protected $finalAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
+ protected $finalAttributesDataType = '';
+ protected $issuesType = 'Google_Service_ManufacturerCenter_Issue';
+ protected $issuesDataType = 'array';
+ public $manuallyDeletedAttributes;
+ protected $manuallyProvidedAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
+ protected $manuallyProvidedAttributesDataType = '';
+ public $name;
+ public $parent;
+ public $productId;
+ public $targetCountry;
+ protected $uploadedAttributesType = 'Google_Service_ManufacturerCenter_Attributes';
+ protected $uploadedAttributesDataType = '';
+
+ public function setContentLanguage($contentLanguage)
+ {
+ $this->contentLanguage = $contentLanguage;
+ }
+ public function getContentLanguage()
+ {
+ return $this->contentLanguage;
+ }
+ public function setFinalAttributes(Google_Service_ManufacturerCenter_Attributes $finalAttributes)
+ {
+ $this->finalAttributes = $finalAttributes;
+ }
+ public function getFinalAttributes()
+ {
+ return $this->finalAttributes;
+ }
+ public function setIssues($issues)
+ {
+ $this->issues = $issues;
+ }
+ public function getIssues()
+ {
+ return $this->issues;
+ }
+ public function setManuallyDeletedAttributes($manuallyDeletedAttributes)
+ {
+ $this->manuallyDeletedAttributes = $manuallyDeletedAttributes;
+ }
+ public function getManuallyDeletedAttributes()
+ {
+ return $this->manuallyDeletedAttributes;
+ }
+ public function setManuallyProvidedAttributes(Google_Service_ManufacturerCenter_Attributes $manuallyProvidedAttributes)
+ {
+ $this->manuallyProvidedAttributes = $manuallyProvidedAttributes;
+ }
+ public function getManuallyProvidedAttributes()
+ {
+ return $this->manuallyProvidedAttributes;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParent($parent)
+ {
+ $this->parent = $parent;
+ }
+ public function getParent()
+ {
+ return $this->parent;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setTargetCountry($targetCountry)
+ {
+ $this->targetCountry = $targetCountry;
+ }
+ public function getTargetCountry()
+ {
+ return $this->targetCountry;
+ }
+ public function setUploadedAttributes(Google_Service_ManufacturerCenter_Attributes $uploadedAttributes)
+ {
+ $this->uploadedAttributes = $uploadedAttributes;
+ }
+ public function getUploadedAttributes()
+ {
+ return $this->uploadedAttributes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/Accounts.php
new file mode 100644
index 00000000..290a211f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/Accounts.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $manufacturersService = new Google_Service_ManufacturerCenter(...);
+ * $accounts = $manufacturersService->accounts;
+ * </code>
+ */
+class Google_Service_ManufacturerCenter_Resource_Accounts extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php
new file mode 100644
index 00000000..5b869d08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ManufacturerCenter/Resource/AccountsProducts.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "products" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $manufacturersService = new Google_Service_ManufacturerCenter(...);
+ * $products = $manufacturersService->products;
+ * </code>
+ */
+class Google_Service_ManufacturerCenter_Resource_AccountsProducts extends Google_Service_Resource
+{
+ /**
+ * Gets the product from a Manufacturer Center account, including product
+ * issues. (products.get)
+ *
+ * @param string $parent Parent ID in the format `accounts/{account_id}`.
+ *
+ * `account_id` - The ID of the Manufacturer Center account.
+ * @param string $name Name in the format
+ * `{target_country}:{content_language}:{product_id}`.
+ *
+ * `target_country` - The target country of the product as a CLDR territory
+ * code (for example, US).
+ *
+ * `content_language` - The content language of the product as a two-letter
+ * ISO 639-1 language code (for example, en).
+ *
+ * `product_id` - The ID of the product. For more information, see
+ * https://support.google.com/manufacturers/answer/6124116#id.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ManufacturerCenter_Product
+ */
+ public function get($parent, $name, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ManufacturerCenter_Product");
+ }
+ /**
+ * Lists all the products in a Manufacturer Center account.
+ * (products.listAccountsProducts)
+ *
+ * @param string $parent Parent ID in the format `accounts/{account_id}`.
+ *
+ * `account_id` - The ID of the Manufacturer Center account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum number of product statuses to return in the
+ * response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ManufacturerCenter_ListProductsResponse
+ */
+ public function listAccountsProducts($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ManufacturerCenter_ListProductsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror.php
new file mode 100644
index 00000000..c9d86c8a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror.php
@@ -0,0 +1,379 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Mirror (v1).
+ *
+ * <p>
+ * Interacts with Glass users via the timeline.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/glass" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Mirror extends Google_Service
+{
+ /** View your location. */
+ const GLASS_LOCATION =
+ "https://www.googleapis.com/auth/glass.location";
+ /** View and manage your Glass timeline. */
+ const GLASS_TIMELINE =
+ "https://www.googleapis.com/auth/glass.timeline";
+
+ public $accounts;
+ public $contacts;
+ public $locations;
+ public $settings;
+ public $subscriptions;
+ public $timeline;
+ public $timeline_attachments;
+
+ /**
+ * Constructs the internal representation of the Mirror service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'mirror/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'mirror';
+
+ $this->accounts = new Google_Service_Mirror_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'accounts/{userToken}/{accountType}/{accountName}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userToken' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->contacts = new Google_Service_Mirror_Resource_Contacts(
+ $this,
+ $this->serviceName,
+ 'contacts',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'contacts/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'contacts/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'contacts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'contacts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'contacts/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'contacts/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->locations = new Google_Service_Mirror_Resource_Locations(
+ $this,
+ $this->serviceName,
+ 'locations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'locations/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'locations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->settings = new Google_Service_Mirror_Resource_Settings(
+ $this,
+ $this->serviceName,
+ 'settings',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'settings/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->subscriptions = new Google_Service_Mirror_Resource_Subscriptions(
+ $this,
+ $this->serviceName,
+ 'subscriptions',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'subscriptions/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'subscriptions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'subscriptions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'update' => array(
+ 'path' => 'subscriptions/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->timeline = new Google_Service_Mirror_Resource_Timeline(
+ $this,
+ $this->serviceName,
+ 'timeline',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'timeline/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'timeline/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'timeline',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'timeline',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bundleId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pinnedOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'sourceItemId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'timeline/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'timeline/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->timeline_attachments = new Google_Service_Mirror_Resource_TimelineAttachments(
+ $this,
+ $this->serviceName,
+ 'attachments',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'timeline/{itemId}/attachments/{attachmentId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'itemId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'attachmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'timeline/{itemId}/attachments/{attachmentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'itemId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'attachmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'timeline/{itemId}/attachments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'itemId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'timeline/{itemId}/attachments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'itemId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Account.php
new file mode 100644
index 00000000..b65da44b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Account.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Account extends Google_Collection
+{
+ protected $collection_key = 'userData';
+ protected $authTokensType = 'Google_Service_Mirror_AuthToken';
+ protected $authTokensDataType = 'array';
+ public $features;
+ public $password;
+ protected $userDataType = 'Google_Service_Mirror_UserData';
+ protected $userDataDataType = 'array';
+
+ public function setAuthTokens($authTokens)
+ {
+ $this->authTokens = $authTokens;
+ }
+ public function getAuthTokens()
+ {
+ return $this->authTokens;
+ }
+ public function setFeatures($features)
+ {
+ $this->features = $features;
+ }
+ public function getFeatures()
+ {
+ return $this->features;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setUserData($userData)
+ {
+ $this->userData = $userData;
+ }
+ public function getUserData()
+ {
+ return $this->userData;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Attachment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Attachment.php
new file mode 100644
index 00000000..558f7c01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Attachment.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Attachment extends Google_Model
+{
+ public $contentType;
+ public $contentUrl;
+ public $id;
+ public $isProcessingContent;
+
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setContentUrl($contentUrl)
+ {
+ $this->contentUrl = $contentUrl;
+ }
+ public function getContentUrl()
+ {
+ return $this->contentUrl;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIsProcessingContent($isProcessingContent)
+ {
+ $this->isProcessingContent = $isProcessingContent;
+ }
+ public function getIsProcessingContent()
+ {
+ return $this->isProcessingContent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AttachmentsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AttachmentsListResponse.php
new file mode 100644
index 00000000..e5d310c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AttachmentsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_AttachmentsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Mirror_Attachment';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AuthToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AuthToken.php
new file mode 100644
index 00000000..fbc0107d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/AuthToken.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_AuthToken extends Google_Model
+{
+ public $authToken;
+ public $type;
+
+ public function setAuthToken($authToken)
+ {
+ $this->authToken = $authToken;
+ }
+ public function getAuthToken()
+ {
+ return $this->authToken;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Command.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Command.php
new file mode 100644
index 00000000..f9bbc915
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Command.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Command extends Google_Model
+{
+ public $type;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Contact.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Contact.php
new file mode 100644
index 00000000..6ae03289
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Contact.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Contact extends Google_Collection
+{
+ protected $collection_key = 'sharingFeatures';
+ protected $acceptCommandsType = 'Google_Service_Mirror_Command';
+ protected $acceptCommandsDataType = 'array';
+ public $acceptTypes;
+ public $displayName;
+ public $id;
+ public $imageUrls;
+ public $kind;
+ public $phoneNumber;
+ public $priority;
+ public $sharingFeatures;
+ public $source;
+ public $speakableName;
+ public $type;
+
+ public function setAcceptCommands($acceptCommands)
+ {
+ $this->acceptCommands = $acceptCommands;
+ }
+ public function getAcceptCommands()
+ {
+ return $this->acceptCommands;
+ }
+ public function setAcceptTypes($acceptTypes)
+ {
+ $this->acceptTypes = $acceptTypes;
+ }
+ public function getAcceptTypes()
+ {
+ return $this->acceptTypes;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImageUrls($imageUrls)
+ {
+ $this->imageUrls = $imageUrls;
+ }
+ public function getImageUrls()
+ {
+ return $this->imageUrls;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setSharingFeatures($sharingFeatures)
+ {
+ $this->sharingFeatures = $sharingFeatures;
+ }
+ public function getSharingFeatures()
+ {
+ return $this->sharingFeatures;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setSpeakableName($speakableName)
+ {
+ $this->speakableName = $speakableName;
+ }
+ public function getSpeakableName()
+ {
+ return $this->speakableName;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/ContactsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/ContactsListResponse.php
new file mode 100644
index 00000000..fc5ed798
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/ContactsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_ContactsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Mirror_Contact';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Location.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Location.php
new file mode 100644
index 00000000..57070bbe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Location.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Location extends Google_Model
+{
+ public $accuracy;
+ public $address;
+ public $displayName;
+ public $id;
+ public $kind;
+ public $latitude;
+ public $longitude;
+ public $timestamp;
+
+ public function setAccuracy($accuracy)
+ {
+ $this->accuracy = $accuracy;
+ }
+ public function getAccuracy()
+ {
+ return $this->accuracy;
+ }
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/LocationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/LocationsListResponse.php
new file mode 100644
index 00000000..d6a6f06b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/LocationsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_LocationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Mirror_Location';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuItem.php
new file mode 100644
index 00000000..b7a79504
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuItem.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_MenuItem extends Google_Collection
+{
+ protected $collection_key = 'values';
+ protected $internal_gapi_mappings = array(
+ "contextualCommand" => "contextual_command",
+ );
+ public $action;
+ public $contextualCommand;
+ public $id;
+ public $payload;
+ public $removeWhenSelected;
+ protected $valuesType = 'Google_Service_Mirror_MenuValue';
+ protected $valuesDataType = 'array';
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setContextualCommand($contextualCommand)
+ {
+ $this->contextualCommand = $contextualCommand;
+ }
+ public function getContextualCommand()
+ {
+ return $this->contextualCommand;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setRemoveWhenSelected($removeWhenSelected)
+ {
+ $this->removeWhenSelected = $removeWhenSelected;
+ }
+ public function getRemoveWhenSelected()
+ {
+ return $this->removeWhenSelected;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuValue.php
new file mode 100644
index 00000000..f89880ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/MenuValue.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_MenuValue extends Google_Model
+{
+ public $displayName;
+ public $iconUrl;
+ public $state;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Notification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Notification.php
new file mode 100644
index 00000000..12bb369f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Notification.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Notification extends Google_Collection
+{
+ protected $collection_key = 'userActions';
+ public $collection;
+ public $itemId;
+ public $operation;
+ protected $userActionsType = 'Google_Service_Mirror_UserAction';
+ protected $userActionsDataType = 'array';
+ public $userToken;
+ public $verifyToken;
+
+ public function setCollection($collection)
+ {
+ $this->collection = $collection;
+ }
+ public function getCollection()
+ {
+ return $this->collection;
+ }
+ public function setItemId($itemId)
+ {
+ $this->itemId = $itemId;
+ }
+ public function getItemId()
+ {
+ return $this->itemId;
+ }
+ public function setOperation($operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setUserActions($userActions)
+ {
+ $this->userActions = $userActions;
+ }
+ public function getUserActions()
+ {
+ return $this->userActions;
+ }
+ public function setUserToken($userToken)
+ {
+ $this->userToken = $userToken;
+ }
+ public function getUserToken()
+ {
+ return $this->userToken;
+ }
+ public function setVerifyToken($verifyToken)
+ {
+ $this->verifyToken = $verifyToken;
+ }
+ public function getVerifyToken()
+ {
+ return $this->verifyToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/NotificationConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/NotificationConfig.php
new file mode 100644
index 00000000..74c07e64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/NotificationConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_NotificationConfig extends Google_Model
+{
+ public $deliveryTime;
+ public $level;
+
+ public function setDeliveryTime($deliveryTime)
+ {
+ $this->deliveryTime = $deliveryTime;
+ }
+ public function getDeliveryTime()
+ {
+ return $this->deliveryTime;
+ }
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Accounts.php
new file mode 100644
index 00000000..bc4c2256
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Accounts.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mirrorService = new Google_Service_Mirror(...);
+ * $accounts = $mirrorService->accounts;
+ * </code>
+ */
+class Google_Service_Mirror_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Inserts a new account for a user (accounts.insert)
+ *
+ * @param string $userToken The ID for the user.
+ * @param string $accountType Account type to be passed to Android Account
+ * Manager.
+ * @param string $accountName The name of the account to be passed to the
+ * Android Account Manager.
+ * @param Google_Service_Mirror_Account $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Account
+ */
+ public function insert($userToken, $accountType, $accountName, Google_Service_Mirror_Account $postBody, $optParams = array())
+ {
+ $params = array('userToken' => $userToken, 'accountType' => $accountType, 'accountName' => $accountName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Mirror_Account");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Contacts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Contacts.php
new file mode 100644
index 00000000..ae3356aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Contacts.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "contacts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mirrorService = new Google_Service_Mirror(...);
+ * $contacts = $mirrorService->contacts;
+ * </code>
+ */
+class Google_Service_Mirror_Resource_Contacts extends Google_Service_Resource
+{
+ /**
+ * Deletes a contact. (contacts.delete)
+ *
+ * @param string $id The ID of the contact.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a single contact by ID. (contacts.get)
+ *
+ * @param string $id The ID of the contact.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Contact
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Mirror_Contact");
+ }
+ /**
+ * Inserts a new contact. (contacts.insert)
+ *
+ * @param Google_Service_Mirror_Contact $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Contact
+ */
+ public function insert(Google_Service_Mirror_Contact $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Mirror_Contact");
+ }
+ /**
+ * Retrieves a list of contacts for the authenticated user.
+ * (contacts.listContacts)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_ContactsListResponse
+ */
+ public function listContacts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse");
+ }
+ /**
+ * Updates a contact in place. This method supports patch semantics.
+ * (contacts.patch)
+ *
+ * @param string $id The ID of the contact.
+ * @param Google_Service_Mirror_Contact $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Contact
+ */
+ public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Mirror_Contact");
+ }
+ /**
+ * Updates a contact in place. (contacts.update)
+ *
+ * @param string $id The ID of the contact.
+ * @param Google_Service_Mirror_Contact $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Contact
+ */
+ public function update($id, Google_Service_Mirror_Contact $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Mirror_Contact");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Locations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Locations.php
new file mode 100644
index 00000000..f611eff4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Locations.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "locations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mirrorService = new Google_Service_Mirror(...);
+ * $locations = $mirrorService->locations;
+ * </code>
+ */
+class Google_Service_Mirror_Resource_Locations extends Google_Service_Resource
+{
+ /**
+ * Gets a single location by ID. (locations.get)
+ *
+ * @param string $id The ID of the location or latest for the last known
+ * location.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Location
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Mirror_Location");
+ }
+ /**
+ * Retrieves a list of locations for the user. (locations.listLocations)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_LocationsListResponse
+ */
+ public function listLocations($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Mirror_LocationsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Settings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Settings.php
new file mode 100644
index 00000000..0927bd31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Settings.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "settings" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mirrorService = new Google_Service_Mirror(...);
+ * $settings = $mirrorService->settings;
+ * </code>
+ */
+class Google_Service_Mirror_Resource_Settings extends Google_Service_Resource
+{
+ /**
+ * Gets a single setting by ID. (settings.get)
+ *
+ * @param string $id The ID of the setting. The following IDs are valid: -
+ * locale - The key to the user’s language/locale (BCP 47 identifier) that
+ * Glassware should use to render localized content. - timezone - The key to
+ * the user’s current time zone region as defined in the tz database. Example:
+ * America/Los_Angeles.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Setting
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Mirror_Setting");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Subscriptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Subscriptions.php
new file mode 100644
index 00000000..8e837bd5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Subscriptions.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mirrorService = new Google_Service_Mirror(...);
+ * $subscriptions = $mirrorService->subscriptions;
+ * </code>
+ */
+class Google_Service_Mirror_Resource_Subscriptions extends Google_Service_Resource
+{
+ /**
+ * Deletes a subscription. (subscriptions.delete)
+ *
+ * @param string $id The ID of the subscription.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Creates a new subscription. (subscriptions.insert)
+ *
+ * @param Google_Service_Mirror_Subscription $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Subscription
+ */
+ public function insert(Google_Service_Mirror_Subscription $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Mirror_Subscription");
+ }
+ /**
+ * Retrieves a list of subscriptions for the authenticated user and service.
+ * (subscriptions.listSubscriptions)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_SubscriptionsListResponse
+ */
+ public function listSubscriptions($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Mirror_SubscriptionsListResponse");
+ }
+ /**
+ * Updates an existing subscription in place. (subscriptions.update)
+ *
+ * @param string $id The ID of the subscription.
+ * @param Google_Service_Mirror_Subscription $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Subscription
+ */
+ public function update($id, Google_Service_Mirror_Subscription $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Mirror_Subscription");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Timeline.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Timeline.php
new file mode 100644
index 00000000..b172dcd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/Timeline.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "timeline" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mirrorService = new Google_Service_Mirror(...);
+ * $timeline = $mirrorService->timeline;
+ * </code>
+ */
+class Google_Service_Mirror_Resource_Timeline extends Google_Service_Resource
+{
+ /**
+ * Deletes a timeline item. (timeline.delete)
+ *
+ * @param string $id The ID of the timeline item.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a single timeline item by ID. (timeline.get)
+ *
+ * @param string $id The ID of the timeline item.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_TimelineItem
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Mirror_TimelineItem");
+ }
+ /**
+ * Inserts a new item into the timeline. (timeline.insert)
+ *
+ * @param Google_Service_Mirror_TimelineItem $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_TimelineItem
+ */
+ public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem");
+ }
+ /**
+ * Retrieves a list of timeline items for the authenticated user.
+ * (timeline.listTimeline)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string bundleId If provided, only items with the given bundleId
+ * will be returned.
+ * @opt_param bool includeDeleted If true, tombstone records for deleted items
+ * will be returned.
+ * @opt_param string maxResults The maximum number of items to include in the
+ * response, used for paging.
+ * @opt_param string orderBy Controls the order in which timeline items are
+ * returned.
+ * @opt_param string pageToken Token for the page of results to return.
+ * @opt_param bool pinnedOnly If true, only pinned items will be returned.
+ * @opt_param string sourceItemId If provided, only items with the given
+ * sourceItemId will be returned.
+ * @return Google_Service_Mirror_TimelineListResponse
+ */
+ public function listTimeline($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Mirror_TimelineListResponse");
+ }
+ /**
+ * Updates a timeline item in place. This method supports patch semantics.
+ * (timeline.patch)
+ *
+ * @param string $id The ID of the timeline item.
+ * @param Google_Service_Mirror_TimelineItem $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_TimelineItem
+ */
+ public function patch($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Mirror_TimelineItem");
+ }
+ /**
+ * Updates a timeline item in place. (timeline.update)
+ *
+ * @param string $id The ID of the timeline item.
+ * @param Google_Service_Mirror_TimelineItem $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_TimelineItem
+ */
+ public function update($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Mirror_TimelineItem");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/TimelineAttachments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/TimelineAttachments.php
new file mode 100644
index 00000000..458179aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Resource/TimelineAttachments.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "attachments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $mirrorService = new Google_Service_Mirror(...);
+ * $attachments = $mirrorService->attachments;
+ * </code>
+ */
+class Google_Service_Mirror_Resource_TimelineAttachments extends Google_Service_Resource
+{
+ /**
+ * Deletes an attachment from a timeline item. (attachments.delete)
+ *
+ * @param string $itemId The ID of the timeline item the attachment belongs to.
+ * @param string $attachmentId The ID of the attachment.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($itemId, $attachmentId, $optParams = array())
+ {
+ $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves an attachment on a timeline item by item ID and attachment ID.
+ * (attachments.get)
+ *
+ * @param string $itemId The ID of the timeline item the attachment belongs to.
+ * @param string $attachmentId The ID of the attachment.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Attachment
+ */
+ public function get($itemId, $attachmentId, $optParams = array())
+ {
+ $params = array('itemId' => $itemId, 'attachmentId' => $attachmentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Mirror_Attachment");
+ }
+ /**
+ * Adds a new attachment to a timeline item. (attachments.insert)
+ *
+ * @param string $itemId The ID of the timeline item the attachment belongs to.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_Attachment
+ */
+ public function insert($itemId, $optParams = array())
+ {
+ $params = array('itemId' => $itemId);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Mirror_Attachment");
+ }
+ /**
+ * Returns a list of attachments for a timeline item.
+ * (attachments.listTimelineAttachments)
+ *
+ * @param string $itemId The ID of the timeline item whose attachments should be
+ * listed.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_AttachmentsListResponse
+ */
+ public function listTimelineAttachments($itemId, $optParams = array())
+ {
+ $params = array('itemId' => $itemId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Mirror_AttachmentsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Setting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Setting.php
new file mode 100644
index 00000000..eaeaf385
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Setting.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Setting extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $value;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Subscription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Subscription.php
new file mode 100644
index 00000000..c8887390
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/Subscription.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_Subscription extends Google_Collection
+{
+ protected $collection_key = 'operation';
+ public $callbackUrl;
+ public $collection;
+ public $id;
+ public $kind;
+ protected $notificationType = 'Google_Service_Mirror_Notification';
+ protected $notificationDataType = '';
+ public $operation;
+ public $updated;
+ public $userToken;
+ public $verifyToken;
+
+ public function setCallbackUrl($callbackUrl)
+ {
+ $this->callbackUrl = $callbackUrl;
+ }
+ public function getCallbackUrl()
+ {
+ return $this->callbackUrl;
+ }
+ public function setCollection($collection)
+ {
+ $this->collection = $collection;
+ }
+ public function getCollection()
+ {
+ return $this->collection;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNotification(Google_Service_Mirror_Notification $notification)
+ {
+ $this->notification = $notification;
+ }
+ public function getNotification()
+ {
+ return $this->notification;
+ }
+ public function setOperation($operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUserToken($userToken)
+ {
+ $this->userToken = $userToken;
+ }
+ public function getUserToken()
+ {
+ return $this->userToken;
+ }
+ public function setVerifyToken($verifyToken)
+ {
+ $this->verifyToken = $verifyToken;
+ }
+ public function getVerifyToken()
+ {
+ return $this->verifyToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/SubscriptionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/SubscriptionsListResponse.php
new file mode 100644
index 00000000..35323f41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/SubscriptionsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_SubscriptionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Mirror_Subscription';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineItem.php
new file mode 100644
index 00000000..fcc9e115
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineItem.php
@@ -0,0 +1,262 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_TimelineItem extends Google_Collection
+{
+ protected $collection_key = 'recipients';
+ protected $attachmentsType = 'Google_Service_Mirror_Attachment';
+ protected $attachmentsDataType = 'array';
+ public $bundleId;
+ public $canonicalUrl;
+ public $created;
+ protected $creatorType = 'Google_Service_Mirror_Contact';
+ protected $creatorDataType = '';
+ public $displayTime;
+ public $etag;
+ public $html;
+ public $id;
+ public $inReplyTo;
+ public $isBundleCover;
+ public $isDeleted;
+ public $isPinned;
+ public $kind;
+ protected $locationType = 'Google_Service_Mirror_Location';
+ protected $locationDataType = '';
+ protected $menuItemsType = 'Google_Service_Mirror_MenuItem';
+ protected $menuItemsDataType = 'array';
+ protected $notificationType = 'Google_Service_Mirror_NotificationConfig';
+ protected $notificationDataType = '';
+ public $pinScore;
+ protected $recipientsType = 'Google_Service_Mirror_Contact';
+ protected $recipientsDataType = 'array';
+ public $selfLink;
+ public $sourceItemId;
+ public $speakableText;
+ public $speakableType;
+ public $text;
+ public $title;
+ public $updated;
+
+ public function setAttachments($attachments)
+ {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments()
+ {
+ return $this->attachments;
+ }
+ public function setBundleId($bundleId)
+ {
+ $this->bundleId = $bundleId;
+ }
+ public function getBundleId()
+ {
+ return $this->bundleId;
+ }
+ public function setCanonicalUrl($canonicalUrl)
+ {
+ $this->canonicalUrl = $canonicalUrl;
+ }
+ public function getCanonicalUrl()
+ {
+ return $this->canonicalUrl;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setCreator(Google_Service_Mirror_Contact $creator)
+ {
+ $this->creator = $creator;
+ }
+ public function getCreator()
+ {
+ return $this->creator;
+ }
+ public function setDisplayTime($displayTime)
+ {
+ $this->displayTime = $displayTime;
+ }
+ public function getDisplayTime()
+ {
+ return $this->displayTime;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setHtml($html)
+ {
+ $this->html = $html;
+ }
+ public function getHtml()
+ {
+ return $this->html;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInReplyTo($inReplyTo)
+ {
+ $this->inReplyTo = $inReplyTo;
+ }
+ public function getInReplyTo()
+ {
+ return $this->inReplyTo;
+ }
+ public function setIsBundleCover($isBundleCover)
+ {
+ $this->isBundleCover = $isBundleCover;
+ }
+ public function getIsBundleCover()
+ {
+ return $this->isBundleCover;
+ }
+ public function setIsDeleted($isDeleted)
+ {
+ $this->isDeleted = $isDeleted;
+ }
+ public function getIsDeleted()
+ {
+ return $this->isDeleted;
+ }
+ public function setIsPinned($isPinned)
+ {
+ $this->isPinned = $isPinned;
+ }
+ public function getIsPinned()
+ {
+ return $this->isPinned;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation(Google_Service_Mirror_Location $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMenuItems($menuItems)
+ {
+ $this->menuItems = $menuItems;
+ }
+ public function getMenuItems()
+ {
+ return $this->menuItems;
+ }
+ public function setNotification(Google_Service_Mirror_NotificationConfig $notification)
+ {
+ $this->notification = $notification;
+ }
+ public function getNotification()
+ {
+ return $this->notification;
+ }
+ public function setPinScore($pinScore)
+ {
+ $this->pinScore = $pinScore;
+ }
+ public function getPinScore()
+ {
+ return $this->pinScore;
+ }
+ public function setRecipients($recipients)
+ {
+ $this->recipients = $recipients;
+ }
+ public function getRecipients()
+ {
+ return $this->recipients;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSourceItemId($sourceItemId)
+ {
+ $this->sourceItemId = $sourceItemId;
+ }
+ public function getSourceItemId()
+ {
+ return $this->sourceItemId;
+ }
+ public function setSpeakableText($speakableText)
+ {
+ $this->speakableText = $speakableText;
+ }
+ public function getSpeakableText()
+ {
+ return $this->speakableText;
+ }
+ public function setSpeakableType($speakableType)
+ {
+ $this->speakableType = $speakableType;
+ }
+ public function getSpeakableType()
+ {
+ return $this->speakableType;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineListResponse.php
new file mode 100644
index 00000000..f19256c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/TimelineListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_TimelineListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Mirror_TimelineItem';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserAction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserAction.php
new file mode 100644
index 00000000..e2f9ade5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserAction.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_UserAction extends Google_Model
+{
+ public $payload;
+ public $type;
+
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserData.php
new file mode 100644
index 00000000..83fc2a62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Mirror/UserData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Mirror_UserData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring.php
new file mode 100644
index 00000000..69d784a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring.php
@@ -0,0 +1,396 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Monitoring (v3).
+ *
+ * <p>
+ * Manages your Stackdriver Monitoring data and configurations. Most projects
+ * must be associated with a Stackdriver account, with a few exceptions as noted
+ * on the individual method pages.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/monitoring/api/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Monitoring extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */
+ const MONITORING =
+ "https://www.googleapis.com/auth/monitoring";
+ /** View monitoring data for all of your Google Cloud and third-party projects. */
+ const MONITORING_READ =
+ "https://www.googleapis.com/auth/monitoring.read";
+ /** Publish metric data to your Google Cloud projects. */
+ const MONITORING_WRITE =
+ "https://www.googleapis.com/auth/monitoring.write";
+
+ public $projects_collectdTimeSeries;
+ public $projects_groups;
+ public $projects_groups_members;
+ public $projects_metricDescriptors;
+ public $projects_monitoredResourceDescriptors;
+ public $projects_timeSeries;
+
+ /**
+ * Constructs the internal representation of the Monitoring service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://monitoring.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v3';
+ $this->serviceName = 'monitoring';
+
+ $this->projects_collectdTimeSeries = new Google_Service_Monitoring_Resource_ProjectsCollectdTimeSeries(
+ $this,
+ $this->serviceName,
+ 'collectdTimeSeries',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v3/{+name}/collectdTimeSeries',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_groups = new Google_Service_Monitoring_Resource_ProjectsGroups(
+ $this,
+ $this->serviceName,
+ 'groups',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v3/{+name}/groups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'validateOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v3/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v3/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v3/{+name}/groups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'childrenOfGroup' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'descendantsOfGroup' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'ancestorsOfGroup' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v3/{+name}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'validateOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_groups_members = new Google_Service_Monitoring_Resource_ProjectsGroupsMembers(
+ $this,
+ $this->serviceName,
+ 'members',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v3/{+name}/members',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'interval.endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'interval.startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_metricDescriptors = new Google_Service_Monitoring_Resource_ProjectsMetricDescriptors(
+ $this,
+ $this->serviceName,
+ 'metricDescriptors',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v3/{+name}/metricDescriptors',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v3/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v3/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v3/{+name}/metricDescriptors',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_monitoredResourceDescriptors = new Google_Service_Monitoring_Resource_ProjectsMonitoredResourceDescriptors(
+ $this,
+ $this->serviceName,
+ 'monitoredResourceDescriptors',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v3/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v3/{+name}/monitoredResourceDescriptors',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_timeSeries = new Google_Service_Monitoring_Resource_ProjectsTimeSeries(
+ $this,
+ $this->serviceName,
+ 'timeSeries',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v3/{+name}/timeSeries',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v3/{+name}/timeSeries',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'aggregation.crossSeriesReducer' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'aggregation.perSeriesAligner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'interval.startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'aggregation.groupByFields' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'interval.endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'aggregation.alignmentPeriod' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/BucketOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/BucketOptions.php
new file mode 100644
index 00000000..15a2b9e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/BucketOptions.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_BucketOptions extends Google_Model
+{
+ protected $explicitBucketsType = 'Google_Service_Monitoring_Explicit';
+ protected $explicitBucketsDataType = '';
+ protected $exponentialBucketsType = 'Google_Service_Monitoring_Exponential';
+ protected $exponentialBucketsDataType = '';
+ protected $linearBucketsType = 'Google_Service_Monitoring_Linear';
+ protected $linearBucketsDataType = '';
+
+ public function setExplicitBuckets(Google_Service_Monitoring_Explicit $explicitBuckets)
+ {
+ $this->explicitBuckets = $explicitBuckets;
+ }
+ public function getExplicitBuckets()
+ {
+ return $this->explicitBuckets;
+ }
+ public function setExponentialBuckets(Google_Service_Monitoring_Exponential $exponentialBuckets)
+ {
+ $this->exponentialBuckets = $exponentialBuckets;
+ }
+ public function getExponentialBuckets()
+ {
+ return $this->exponentialBuckets;
+ }
+ public function setLinearBuckets(Google_Service_Monitoring_Linear $linearBuckets)
+ {
+ $this->linearBuckets = $linearBuckets;
+ }
+ public function getLinearBuckets()
+ {
+ return $this->linearBuckets;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdPayload.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdPayload.php
new file mode 100644
index 00000000..42564424
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdPayload.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_CollectdPayload extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $endTime;
+ protected $metadataType = 'Google_Service_Monitoring_TypedValue';
+ protected $metadataDataType = 'map';
+ public $plugin;
+ public $pluginInstance;
+ public $startTime;
+ public $type;
+ public $typeInstance;
+ protected $valuesType = 'Google_Service_Monitoring_CollectdValue';
+ protected $valuesDataType = 'array';
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setPlugin($plugin)
+ {
+ $this->plugin = $plugin;
+ }
+ public function getPlugin()
+ {
+ return $this->plugin;
+ }
+ public function setPluginInstance($pluginInstance)
+ {
+ $this->pluginInstance = $pluginInstance;
+ }
+ public function getPluginInstance()
+ {
+ return $this->pluginInstance;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setTypeInstance($typeInstance)
+ {
+ $this->typeInstance = $typeInstance;
+ }
+ public function getTypeInstance()
+ {
+ return $this->typeInstance;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdValue.php
new file mode 100644
index 00000000..5ce4cab8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CollectdValue.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_CollectdValue extends Google_Model
+{
+ public $dataSourceName;
+ public $dataSourceType;
+ protected $valueType = 'Google_Service_Monitoring_TypedValue';
+ protected $valueDataType = '';
+
+ public function setDataSourceName($dataSourceName)
+ {
+ $this->dataSourceName = $dataSourceName;
+ }
+ public function getDataSourceName()
+ {
+ return $this->dataSourceName;
+ }
+ public function setDataSourceType($dataSourceType)
+ {
+ $this->dataSourceType = $dataSourceType;
+ }
+ public function getDataSourceType()
+ {
+ return $this->dataSourceType;
+ }
+ public function setValue(Google_Service_Monitoring_TypedValue $value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateCollectdTimeSeriesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateCollectdTimeSeriesRequest.php
new file mode 100644
index 00000000..9c461bf5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateCollectdTimeSeriesRequest.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_CreateCollectdTimeSeriesRequest extends Google_Collection
+{
+ protected $collection_key = 'collectdPayloads';
+ protected $collectdPayloadsType = 'Google_Service_Monitoring_CollectdPayload';
+ protected $collectdPayloadsDataType = 'array';
+ public $collectdVersion;
+ protected $resourceType = 'Google_Service_Monitoring_MonitoredResource';
+ protected $resourceDataType = '';
+
+ public function setCollectdPayloads($collectdPayloads)
+ {
+ $this->collectdPayloads = $collectdPayloads;
+ }
+ public function getCollectdPayloads()
+ {
+ return $this->collectdPayloads;
+ }
+ public function setCollectdVersion($collectdVersion)
+ {
+ $this->collectdVersion = $collectdVersion;
+ }
+ public function getCollectdVersion()
+ {
+ return $this->collectdVersion;
+ }
+ public function setResource(Google_Service_Monitoring_MonitoredResource $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateTimeSeriesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateTimeSeriesRequest.php
new file mode 100644
index 00000000..3199053d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/CreateTimeSeriesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_CreateTimeSeriesRequest extends Google_Collection
+{
+ protected $collection_key = 'timeSeries';
+ protected $timeSeriesType = 'Google_Service_Monitoring_TimeSeries';
+ protected $timeSeriesDataType = 'array';
+
+ public function setTimeSeries($timeSeries)
+ {
+ $this->timeSeries = $timeSeries;
+ }
+ public function getTimeSeries()
+ {
+ return $this->timeSeries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php
new file mode 100644
index 00000000..42bdc3c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Distribution.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Distribution extends Google_Collection
+{
+ protected $collection_key = 'bucketCounts';
+ public $bucketCounts;
+ protected $bucketOptionsType = 'Google_Service_Monitoring_BucketOptions';
+ protected $bucketOptionsDataType = '';
+ public $count;
+ public $mean;
+ protected $rangeType = 'Google_Service_Monitoring_Range';
+ protected $rangeDataType = '';
+ public $sumOfSquaredDeviation;
+
+ public function setBucketCounts($bucketCounts)
+ {
+ $this->bucketCounts = $bucketCounts;
+ }
+ public function getBucketCounts()
+ {
+ return $this->bucketCounts;
+ }
+ public function setBucketOptions(Google_Service_Monitoring_BucketOptions $bucketOptions)
+ {
+ $this->bucketOptions = $bucketOptions;
+ }
+ public function getBucketOptions()
+ {
+ return $this->bucketOptions;
+ }
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setMean($mean)
+ {
+ $this->mean = $mean;
+ }
+ public function getMean()
+ {
+ return $this->mean;
+ }
+ public function setRange(Google_Service_Monitoring_Range $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
+ {
+ $this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
+ }
+ public function getSumOfSquaredDeviation()
+ {
+ return $this->sumOfSquaredDeviation;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Explicit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Explicit.php
new file mode 100644
index 00000000..7a65c161
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Explicit.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Explicit extends Google_Collection
+{
+ protected $collection_key = 'bounds';
+ public $bounds;
+
+ public function setBounds($bounds)
+ {
+ $this->bounds = $bounds;
+ }
+ public function getBounds()
+ {
+ return $this->bounds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Exponential.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Exponential.php
new file mode 100644
index 00000000..bec5db2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Exponential.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Exponential extends Google_Model
+{
+ public $growthFactor;
+ public $numFiniteBuckets;
+ public $scale;
+
+ public function setGrowthFactor($growthFactor)
+ {
+ $this->growthFactor = $growthFactor;
+ }
+ public function getGrowthFactor()
+ {
+ return $this->growthFactor;
+ }
+ public function setNumFiniteBuckets($numFiniteBuckets)
+ {
+ $this->numFiniteBuckets = $numFiniteBuckets;
+ }
+ public function getNumFiniteBuckets()
+ {
+ return $this->numFiniteBuckets;
+ }
+ public function setScale($scale)
+ {
+ $this->scale = $scale;
+ }
+ public function getScale()
+ {
+ return $this->scale;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Field.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Field.php
new file mode 100644
index 00000000..8c777474
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Field.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Field extends Google_Collection
+{
+ protected $collection_key = 'options';
+ public $cardinality;
+ public $defaultValue;
+ public $jsonName;
+ public $kind;
+ public $name;
+ public $number;
+ public $oneofIndex;
+ protected $optionsType = 'Google_Service_Monitoring_Option';
+ protected $optionsDataType = 'array';
+ public $packed;
+ public $typeUrl;
+
+ public function setCardinality($cardinality)
+ {
+ $this->cardinality = $cardinality;
+ }
+ public function getCardinality()
+ {
+ return $this->cardinality;
+ }
+ public function setDefaultValue($defaultValue)
+ {
+ $this->defaultValue = $defaultValue;
+ }
+ public function getDefaultValue()
+ {
+ return $this->defaultValue;
+ }
+ public function setJsonName($jsonName)
+ {
+ $this->jsonName = $jsonName;
+ }
+ public function getJsonName()
+ {
+ return $this->jsonName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setOneofIndex($oneofIndex)
+ {
+ $this->oneofIndex = $oneofIndex;
+ }
+ public function getOneofIndex()
+ {
+ return $this->oneofIndex;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setPacked($packed)
+ {
+ $this->packed = $packed;
+ }
+ public function getPacked()
+ {
+ return $this->packed;
+ }
+ public function setTypeUrl($typeUrl)
+ {
+ $this->typeUrl = $typeUrl;
+ }
+ public function getTypeUrl()
+ {
+ return $this->typeUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Group.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Group.php
new file mode 100644
index 00000000..daba3e52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Group.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Group extends Google_Model
+{
+ public $displayName;
+ public $filter;
+ public $isCluster;
+ public $name;
+ public $parentName;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setIsCluster($isCluster)
+ {
+ $this->isCluster = $isCluster;
+ }
+ public function getIsCluster()
+ {
+ return $this->isCluster;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentName($parentName)
+ {
+ $this->parentName = $parentName;
+ }
+ public function getParentName()
+ {
+ return $this->parentName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/LabelDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/LabelDescriptor.php
new file mode 100644
index 00000000..1cdde867
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/LabelDescriptor.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_LabelDescriptor extends Google_Model
+{
+ public $description;
+ public $key;
+ public $valueType;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Linear.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Linear.php
new file mode 100644
index 00000000..ccfc8fbc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Linear.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Linear extends Google_Model
+{
+ public $numFiniteBuckets;
+ public $offset;
+ public $width;
+
+ public function setNumFiniteBuckets($numFiniteBuckets)
+ {
+ $this->numFiniteBuckets = $numFiniteBuckets;
+ }
+ public function getNumFiniteBuckets()
+ {
+ return $this->numFiniteBuckets;
+ }
+ public function setOffset($offset)
+ {
+ $this->offset = $offset;
+ }
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupMembersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupMembersResponse.php
new file mode 100644
index 00000000..c48880a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupMembersResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_ListGroupMembersResponse extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $membersType = 'Google_Service_Monitoring_MonitoredResource';
+ protected $membersDataType = 'array';
+ public $nextPageToken;
+ public $totalSize;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupsResponse.php
new file mode 100644
index 00000000..d5478fdf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListGroupsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_ListGroupsResponse extends Google_Collection
+{
+ protected $collection_key = 'group';
+ protected $groupType = 'Google_Service_Monitoring_Group';
+ protected $groupDataType = 'array';
+ public $nextPageToken;
+
+ public function setGroup($group)
+ {
+ $this->group = $group;
+ }
+ public function getGroup()
+ {
+ return $this->group;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMetricDescriptorsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMetricDescriptorsResponse.php
new file mode 100644
index 00000000..2c06e5ef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMetricDescriptorsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_ListMetricDescriptorsResponse extends Google_Collection
+{
+ protected $collection_key = 'metricDescriptors';
+ protected $metricDescriptorsType = 'Google_Service_Monitoring_MetricDescriptor';
+ protected $metricDescriptorsDataType = 'array';
+ public $nextPageToken;
+
+ public function setMetricDescriptors($metricDescriptors)
+ {
+ $this->metricDescriptors = $metricDescriptors;
+ }
+ public function getMetricDescriptors()
+ {
+ return $this->metricDescriptors;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMonitoredResourceDescriptorsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMonitoredResourceDescriptorsResponse.php
new file mode 100644
index 00000000..358881f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListMonitoredResourceDescriptorsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_ListMonitoredResourceDescriptorsResponse extends Google_Collection
+{
+ protected $collection_key = 'resourceDescriptors';
+ public $nextPageToken;
+ protected $resourceDescriptorsType = 'Google_Service_Monitoring_MonitoredResourceDescriptor';
+ protected $resourceDescriptorsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResourceDescriptors($resourceDescriptors)
+ {
+ $this->resourceDescriptors = $resourceDescriptors;
+ }
+ public function getResourceDescriptors()
+ {
+ return $this->resourceDescriptors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php
new file mode 100644
index 00000000..8bbfcccd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/ListTimeSeriesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_ListTimeSeriesResponse extends Google_Collection
+{
+ protected $collection_key = 'timeSeries';
+ public $nextPageToken;
+ protected $timeSeriesType = 'Google_Service_Monitoring_TimeSeries';
+ protected $timeSeriesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTimeSeries($timeSeries)
+ {
+ $this->timeSeries = $timeSeries;
+ }
+ public function getTimeSeries()
+ {
+ return $this->timeSeries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Metric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Metric.php
new file mode 100644
index 00000000..01bc87ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Metric.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Metric extends Google_Model
+{
+ public $labels;
+ public $type;
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php
new file mode 100644
index 00000000..ccb29198
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MetricDescriptor.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_MetricDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_Monitoring_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $metricKind;
+ public $name;
+ public $type;
+ public $unit;
+ public $valueType;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setMetricKind($metricKind)
+ {
+ $this->metricKind = $metricKind;
+ }
+ public function getMetricKind()
+ {
+ return $this->metricKind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResource.php
new file mode 100644
index 00000000..7845d3dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_MonitoredResource extends Google_Model
+{
+ public $labels;
+ public $type;
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResourceDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResourceDescriptor.php
new file mode 100644
index 00000000..c664f894
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoredResourceDescriptor.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_MonitoredResourceDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_Monitoring_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $name;
+ public $type;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoringEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoringEmpty.php
new file mode 100644
index 00000000..e6becdc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/MonitoringEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_MonitoringEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Option.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Option.php
new file mode 100644
index 00000000..c3765139
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Option.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Option extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Point.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Point.php
new file mode 100644
index 00000000..b565897c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Point.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Point extends Google_Model
+{
+ protected $intervalType = 'Google_Service_Monitoring_TimeInterval';
+ protected $intervalDataType = '';
+ protected $valueType = 'Google_Service_Monitoring_TypedValue';
+ protected $valueDataType = '';
+
+ public function setInterval(Google_Service_Monitoring_TimeInterval $interval)
+ {
+ $this->interval = $interval;
+ }
+ public function getInterval()
+ {
+ return $this->interval;
+ }
+ public function setValue(Google_Service_Monitoring_TypedValue $value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Range.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Range.php
new file mode 100644
index 00000000..ca54281f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Range.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Range extends Google_Model
+{
+ public $max;
+ public $min;
+
+ public function setMax($max)
+ {
+ $this->max = $max;
+ }
+ public function getMax()
+ {
+ return $this->max;
+ }
+ public function setMin($min)
+ {
+ $this->min = $min;
+ }
+ public function getMin()
+ {
+ return $this->min;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/Projects.php
new file mode 100644
index 00000000..92cf8f9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $monitoringService = new Google_Service_Monitoring(...);
+ * $projects = $monitoringService->projects;
+ * </code>
+ */
+class Google_Service_Monitoring_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsCollectdTimeSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsCollectdTimeSeries.php
new file mode 100644
index 00000000..da528965
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsCollectdTimeSeries.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "collectdTimeSeries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $monitoringService = new Google_Service_Monitoring(...);
+ * $collectdTimeSeries = $monitoringService->collectdTimeSeries;
+ * </code>
+ */
+class Google_Service_Monitoring_Resource_ProjectsCollectdTimeSeries extends Google_Service_Resource
+{
+ /**
+ * Stackdriver Monitoring Agent only: Creates a new time series.This method is
+ * only for use by the Stackdriver Monitoring Agent. Use
+ * projects.timeSeries.create instead. (collectdTimeSeries.create)
+ *
+ * @param string $name The project in which to create the time series. The
+ * format is "projects/PROJECT_ID_OR_NUMBER".
+ * @param Google_Service_Monitoring_CreateCollectdTimeSeriesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_MonitoringEmpty
+ */
+ public function create($name, Google_Service_Monitoring_CreateCollectdTimeSeriesRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Monitoring_MonitoringEmpty");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php
new file mode 100644
index 00000000..75c24fd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroups.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $monitoringService = new Google_Service_Monitoring(...);
+ * $groups = $monitoringService->groups;
+ * </code>
+ */
+class Google_Service_Monitoring_Resource_ProjectsGroups extends Google_Service_Resource
+{
+ /**
+ * Creates a new group. (groups.create)
+ *
+ * @param string $name The project in which to create the group. The format is
+ * "projects/{project_id_or_number}".
+ * @param Google_Service_Monitoring_Group $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool validateOnly If true, validate this request but do not create
+ * the group.
+ * @return Google_Service_Monitoring_Group
+ */
+ public function create($name, Google_Service_Monitoring_Group $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Monitoring_Group");
+ }
+ /**
+ * Deletes an existing group. (groups.delete)
+ *
+ * @param string $name The group to delete. The format is
+ * "projects/{project_id_or_number}/groups/{group_id}".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_MonitoringEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Monitoring_MonitoringEmpty");
+ }
+ /**
+ * Gets a single group. (groups.get)
+ *
+ * @param string $name The group to retrieve. The format is
+ * "projects/{project_id_or_number}/groups/{group_id}".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_Group
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Monitoring_Group");
+ }
+ /**
+ * Lists the existing groups. (groups.listProjectsGroups)
+ *
+ * @param string $name The project whose groups are to be listed. The format is
+ * "projects/{project_id_or_number}".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string childrenOfGroup A group name:
+ * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose
+ * parentName field contains the group name. If no groups have this parent, the
+ * results are empty.
+ * @opt_param string descendantsOfGroup A group name:
+ * "projects/{project_id_or_number}/groups/{group_id}". Returns the descendants
+ * of the specified group. This is a superset of the results returned by the
+ * childrenOfGroup filter, and includes children-of-children, and so forth.
+ * @opt_param string pageToken If this field is not empty then it must contain
+ * the nextPageToken value returned by a previous call to this method. Using
+ * this field causes the method to return additional results from the previous
+ * method call.
+ * @opt_param int pageSize A positive number that is the maximum number of
+ * results to return.
+ * @opt_param string ancestorsOfGroup A group name:
+ * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that are
+ * ancestors of the specified group. The groups are returned in order, starting
+ * with the immediate parent and ending with the most distant ancestor. If the
+ * specified group has no immediate parent, the results are empty.
+ * @return Google_Service_Monitoring_ListGroupsResponse
+ */
+ public function listProjectsGroups($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Monitoring_ListGroupsResponse");
+ }
+ /**
+ * Updates an existing group. You can change any group attributes except name.
+ * (groups.update)
+ *
+ * @param string $name Output only. The name of this group. The format is
+ * "projects/{project_id_or_number}/groups/{group_id}". When creating a group,
+ * this field is ignored and a new name is created consisting of the project
+ * specified in the call to CreateGroup and a unique {group_id} that is
+ * generated automatically.
+ * @param Google_Service_Monitoring_Group $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool validateOnly If true, validate this request but do not update
+ * the existing group.
+ * @return Google_Service_Monitoring_Group
+ */
+ public function update($name, Google_Service_Monitoring_Group $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Monitoring_Group");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php
new file mode 100644
index 00000000..a0325309
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsGroupsMembers.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "members" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $monitoringService = new Google_Service_Monitoring(...);
+ * $members = $monitoringService->members;
+ * </code>
+ */
+class Google_Service_Monitoring_Resource_ProjectsGroupsMembers extends Google_Service_Resource
+{
+ /**
+ * Lists the monitored resources that are members of a group.
+ * (members.listProjectsGroupsMembers)
+ *
+ * @param string $name The group whose members are listed. The format is
+ * "projects/{project_id_or_number}/groups/{group_id}".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string interval.endTime Required. The end of the time interval.
+ * @opt_param string filter An optional list filter describing the members to be
+ * returned. The filter may reference the type, labels, and metadata of
+ * monitored resources that comprise the group. For example, to return only
+ * resources representing Compute Engine VM instances, use this filter:
+ * resource.type = "gce_instance"
+ * @opt_param string pageToken If this field is not empty then it must contain
+ * the nextPageToken value returned by a previous call to this method. Using
+ * this field causes the method to return additional results from the previous
+ * method call.
+ * @opt_param int pageSize A positive number that is the maximum number of
+ * results to return.
+ * @opt_param string interval.startTime Optional. The beginning of the time
+ * interval. The default value for the start time is the end time. The start
+ * time must not be later than the end time.
+ * @return Google_Service_Monitoring_ListGroupMembersResponse
+ */
+ public function listProjectsGroupsMembers($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Monitoring_ListGroupMembersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php
new file mode 100644
index 00000000..a374b79e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMetricDescriptors.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "metricDescriptors" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $monitoringService = new Google_Service_Monitoring(...);
+ * $metricDescriptors = $monitoringService->metricDescriptors;
+ * </code>
+ */
+class Google_Service_Monitoring_Resource_ProjectsMetricDescriptors extends Google_Service_Resource
+{
+ /**
+ * Creates a new metric descriptor. User-created metric descriptors define
+ * custom metrics. (metricDescriptors.create)
+ *
+ * @param string $name The project on which to execute the request. The format
+ * is "projects/{project_id_or_number}".
+ * @param Google_Service_Monitoring_MetricDescriptor $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_MetricDescriptor
+ */
+ public function create($name, Google_Service_Monitoring_MetricDescriptor $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Monitoring_MetricDescriptor");
+ }
+ /**
+ * Deletes a metric descriptor. Only user-created custom metrics can be deleted.
+ * (metricDescriptors.delete)
+ *
+ * @param string $name The metric descriptor on which to execute the request.
+ * The format is
+ * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example
+ * of {metric_id} is: "custom.googleapis.com/my_test_metric".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_MonitoringEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Monitoring_MonitoringEmpty");
+ }
+ /**
+ * Gets a single metric descriptor. This method does not require a Stackdriver
+ * account. (metricDescriptors.get)
+ *
+ * @param string $name The metric descriptor on which to execute the request.
+ * The format is
+ * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An example
+ * value of {metric_id} is
+ * "compute.googleapis.com/instance/disk/read_bytes_count".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_MetricDescriptor
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Monitoring_MetricDescriptor");
+ }
+ /**
+ * Lists metric descriptors that match a filter. This method does not require a
+ * Stackdriver account. (metricDescriptors.listProjectsMetricDescriptors)
+ *
+ * @param string $name The project on which to execute the request. The format
+ * is "projects/{project_id_or_number}".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken If this field is not empty then it must contain
+ * the nextPageToken value returned by a previous call to this method. Using
+ * this field causes the method to return additional results from the previous
+ * method call.
+ * @opt_param int pageSize A positive number that is the maximum number of
+ * results to return.
+ * @opt_param string filter If this field is empty, all custom and system-
+ * defined metric descriptors are returned. Otherwise, the filter specifies
+ * which metric descriptors are to be returned. For example, the following
+ * filter matches all custom metrics: metric.type =
+ * starts_with("custom.googleapis.com/")
+ * @return Google_Service_Monitoring_ListMetricDescriptorsResponse
+ */
+ public function listProjectsMetricDescriptors($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Monitoring_ListMetricDescriptorsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php
new file mode 100644
index 00000000..f0c6d3f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsMonitoredResourceDescriptors.php
@@ -0,0 +1,72 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "monitoredResourceDescriptors" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $monitoringService = new Google_Service_Monitoring(...);
+ * $monitoredResourceDescriptors = $monitoringService->monitoredResourceDescriptors;
+ * </code>
+ */
+class Google_Service_Monitoring_Resource_ProjectsMonitoredResourceDescriptors extends Google_Service_Resource
+{
+ /**
+ * Gets a single monitored resource descriptor. This method does not require a
+ * Stackdriver account. (monitoredResourceDescriptors.get)
+ *
+ * @param string $name The monitored resource descriptor to get. The format is "
+ * projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}"
+ * . The {resource_type} is a predefined type, such as cloudsql_database.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_MonitoredResourceDescriptor
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Monitoring_MonitoredResourceDescriptor");
+ }
+ /**
+ * Lists monitored resource descriptors that match a filter. This method does
+ * not require a Stackdriver account.
+ * (monitoredResourceDescriptors.listProjectsMonitoredResourceDescriptors)
+ *
+ * @param string $name The project on which to execute the request. The format
+ * is "projects/{project_id_or_number}".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken If this field is not empty then it must contain
+ * the nextPageToken value returned by a previous call to this method. Using
+ * this field causes the method to return additional results from the previous
+ * method call.
+ * @opt_param int pageSize A positive number that is the maximum number of
+ * results to return.
+ * @opt_param string filter An optional filter describing the descriptors to be
+ * returned. The filter can reference the descriptor's type and labels. For
+ * example, the following filter returns only Google Compute Engine descriptors
+ * that have an id label: resource.type = starts_with("gce_") AND
+ * resource.label:id
+ * @return Google_Service_Monitoring_ListMonitoredResourceDescriptorsResponse
+ */
+ public function listProjectsMonitoredResourceDescriptors($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Monitoring_ListMonitoredResourceDescriptorsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php
new file mode 100644
index 00000000..8a1252d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Resource/ProjectsTimeSeries.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "timeSeries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $monitoringService = new Google_Service_Monitoring(...);
+ * $timeSeries = $monitoringService->timeSeries;
+ * </code>
+ */
+class Google_Service_Monitoring_Resource_ProjectsTimeSeries extends Google_Service_Resource
+{
+ /**
+ * Creates or adds data to one or more time series. The response is empty if all
+ * time series in the request were written. If any time series could not be
+ * written, a corresponding failure message is included in the error response.
+ * (timeSeries.create)
+ *
+ * @param string $name The project on which to execute the request. The format
+ * is "projects/{project_id_or_number}".
+ * @param Google_Service_Monitoring_CreateTimeSeriesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Monitoring_MonitoringEmpty
+ */
+ public function create($name, Google_Service_Monitoring_CreateTimeSeriesRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Monitoring_MonitoringEmpty");
+ }
+ /**
+ * Lists time series that match a filter. This method does not require a
+ * Stackdriver account. (timeSeries.listProjectsTimeSeries)
+ *
+ * @param string $name The project on which to execute the request. The format
+ * is "projects/{project_id_or_number}".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string aggregation.crossSeriesReducer The approach to be used to
+ * combine time series. Not all reducer functions may be applied to all time
+ * series, depending on the metric type and the value type of the original time
+ * series. Reduction may change the metric type of value type of the time
+ * series.Time series data must be aligned in order to perform cross-time series
+ * reduction. If crossSeriesReducer is specified, then perSeriesAligner must be
+ * specified and not equal ALIGN_NONE and alignmentPeriod must be specified;
+ * otherwise, an error is returned.
+ * @opt_param string filter A monitoring filter that specifies which time series
+ * should be returned. The filter must specify a single metric type, and can
+ * additionally specify metric labels and other information. For example:
+ * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
+ * metric.label.instance_name = "my-instance-name"
+ * @opt_param string aggregation.perSeriesAligner The approach to be used to
+ * align individual time series. Not all alignment functions may be applied to
+ * all time series, depending on the metric type and value type of the original
+ * time series. Alignment may change the metric type or the value type of the
+ * time series.Time series data must be aligned in order to perform cross-time
+ * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
+ * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
+ * specified; otherwise, an error is returned.
+ * @opt_param string pageToken If this field is not empty then it must contain
+ * the nextPageToken value returned by a previous call to this method. Using
+ * this field causes the method to return additional results from the previous
+ * method call.
+ * @opt_param string interval.startTime Optional. The beginning of the time
+ * interval. The default value for the start time is the end time. The start
+ * time must not be later than the end time.
+ * @opt_param string view Specifies which information is returned about the time
+ * series.
+ * @opt_param string aggregation.groupByFields The set of fields to preserve
+ * when crossSeriesReducer is specified. The groupByFields determine how the
+ * time series are partitioned into subsets prior to applying the aggregation
+ * function. Each subset contains time series that have the same value for each
+ * of the grouping fields. Each individual time series is a member of exactly
+ * one subset. The crossSeriesReducer is applied to each subset of time series.
+ * It is not possible to reduce across different resource types, so this field
+ * implicitly contains resource.type. Fields not specified in groupByFields are
+ * aggregated away. If groupByFields is not specified and all the time series
+ * have the same resource type, then the time series are aggregated into a
+ * single output time series. If crossSeriesReducer is not defined, this field
+ * is ignored.
+ * @opt_param string interval.endTime Required. The end of the time interval.
+ * @opt_param string aggregation.alignmentPeriod The alignment period for per-
+ * time series alignment. If present, alignmentPeriod must be at least 60
+ * seconds. After per-time series alignment, each time series will contain data
+ * points only on the period boundaries. If perSeriesAligner is not specified or
+ * equals ALIGN_NONE, then this field is ignored. If perSeriesAligner is
+ * specified and does not equal ALIGN_NONE, then this field must be defined;
+ * otherwise an error is returned.
+ * @opt_param int pageSize A positive number that is the maximum number of
+ * results to return. When view field sets to FULL, it limits the number of
+ * Points server will return; if view field is HEADERS, it limits the number of
+ * TimeSeries server will return.
+ * @opt_param string orderBy Specifies the order in which the points of the time
+ * series should be returned. By default, results are not ordered. Currently,
+ * this field must be left blank.
+ * @return Google_Service_Monitoring_ListTimeSeriesResponse
+ */
+ public function listProjectsTimeSeries($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Monitoring_ListTimeSeriesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/SourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/SourceContext.php
new file mode 100644
index 00000000..ecad7a77
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/SourceContext.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_SourceContext extends Google_Model
+{
+ public $fileName;
+
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeInterval.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeInterval.php
new file mode 100644
index 00000000..0c3305cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeInterval.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_TimeInterval extends Google_Model
+{
+ public $endTime;
+ public $startTime;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeSeries.php
new file mode 100644
index 00000000..898a1dda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TimeSeries.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_TimeSeries extends Google_Collection
+{
+ protected $collection_key = 'points';
+ protected $metricType = 'Google_Service_Monitoring_Metric';
+ protected $metricDataType = '';
+ public $metricKind;
+ protected $pointsType = 'Google_Service_Monitoring_Point';
+ protected $pointsDataType = 'array';
+ protected $resourceType = 'Google_Service_Monitoring_MonitoredResource';
+ protected $resourceDataType = '';
+ public $valueType;
+
+ public function setMetric(Google_Service_Monitoring_Metric $metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+ public function setMetricKind($metricKind)
+ {
+ $this->metricKind = $metricKind;
+ }
+ public function getMetricKind()
+ {
+ return $this->metricKind;
+ }
+ public function setPoints($points)
+ {
+ $this->points = $points;
+ }
+ public function getPoints()
+ {
+ return $this->points;
+ }
+ public function setResource(Google_Service_Monitoring_MonitoredResource $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Type.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Type.php
new file mode 100644
index 00000000..79eda5e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/Type.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_Type extends Google_Collection
+{
+ protected $collection_key = 'options';
+ protected $fieldsType = 'Google_Service_Monitoring_Field';
+ protected $fieldsDataType = 'array';
+ public $name;
+ public $oneofs;
+ protected $optionsType = 'Google_Service_Monitoring_Option';
+ protected $optionsDataType = 'array';
+ protected $sourceContextType = 'Google_Service_Monitoring_SourceContext';
+ protected $sourceContextDataType = '';
+ public $syntax;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOneofs($oneofs)
+ {
+ $this->oneofs = $oneofs;
+ }
+ public function getOneofs()
+ {
+ return $this->oneofs;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSourceContext(Google_Service_Monitoring_SourceContext $sourceContext)
+ {
+ $this->sourceContext = $sourceContext;
+ }
+ public function getSourceContext()
+ {
+ return $this->sourceContext;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TypedValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TypedValue.php
new file mode 100644
index 00000000..58f9edfa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Monitoring/TypedValue.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Monitoring_TypedValue extends Google_Model
+{
+ public $boolValue;
+ protected $distributionValueType = 'Google_Service_Monitoring_Distribution';
+ protected $distributionValueDataType = '';
+ public $doubleValue;
+ public $int64Value;
+ public $stringValue;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setDistributionValue(Google_Service_Monitoring_Distribution $distributionValue)
+ {
+ $this->distributionValue = $distributionValue;
+ }
+ public function getDistributionValue()
+ {
+ return $this->distributionValue;
+ }
+ public function setDoubleValue($doubleValue)
+ {
+ $this->doubleValue = $doubleValue;
+ }
+ public function getDoubleValue()
+ {
+ return $this->doubleValue;
+ }
+ public function setInt64Value($int64Value)
+ {
+ $this->int64Value = $int64Value;
+ }
+ public function getInt64Value()
+ {
+ return $this->int64Value;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2.php
new file mode 100644
index 00000000..142f111e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2.php
@@ -0,0 +1,150 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Oauth2 (v2).
+ *
+ * <p>
+ * Obtains end-user authorization grants for use with other Google APIs.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/accounts/docs/OAuth2" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Oauth2 extends Google_Service
+{
+ /** Know the list of people in your circles, your age range, and language. */
+ const PLUS_LOGIN =
+ "https://www.googleapis.com/auth/plus.login";
+ /** Know who you are on Google. */
+ const PLUS_ME =
+ "https://www.googleapis.com/auth/plus.me";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+ /** View your basic profile info. */
+ const USERINFO_PROFILE =
+ "https://www.googleapis.com/auth/userinfo.profile";
+
+ public $userinfo;
+ public $userinfo_v2_me;
+ private $base_methods;
+ /**
+ * Constructs the internal representation of the Oauth2 service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v2';
+ $this->serviceName = 'oauth2';
+
+ $this->userinfo = new Google_Service_Oauth2_Resource_Userinfo(
+ $this,
+ $this->serviceName,
+ 'userinfo',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'oauth2/v2/userinfo',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->userinfo_v2_me = new Google_Service_Oauth2_Resource_UserinfoV2Me(
+ $this,
+ $this->serviceName,
+ 'me',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'userinfo/v2/me',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->base_methods = new Google_Service_Resource(
+ $this,
+ $this->serviceName,
+ '',
+ array(
+ 'methods' => array(
+ 'getCertForOpenIdConnect' => array(
+ 'path' => 'oauth2/v2/certs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'tokeninfo' => array(
+ 'path' => 'oauth2/v2/tokeninfo',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'access_token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id_token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'token_handle' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+ /**
+ * (getCertForOpenIdConnect)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Oauth2_Jwk
+ */
+ public function getCertForOpenIdConnect($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->base_methods->call('getCertForOpenIdConnect', array($params), "Google_Service_Oauth2_Jwk");
+ }
+ /**
+ * (tokeninfo)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string access_token
+ * @opt_param string id_token
+ * @opt_param string token_handle
+ * @return Google_Service_Oauth2_Tokeninfo
+ */
+ public function tokeninfo($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->base_methods->call('tokeninfo', array($params), "Google_Service_Oauth2_Tokeninfo");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Jwk.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Jwk.php
new file mode 100644
index 00000000..18cf6e05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Jwk.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Oauth2_Jwk extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $keysType = 'Google_Service_Oauth2_JwkKeys';
+ protected $keysDataType = 'array';
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/JwkKeys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/JwkKeys.php
new file mode 100644
index 00000000..1bfb5bd8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/JwkKeys.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Oauth2_JwkKeys extends Google_Model
+{
+ public $alg;
+ public $e;
+ public $kid;
+ public $kty;
+ public $n;
+ public $use;
+
+ public function setAlg($alg)
+ {
+ $this->alg = $alg;
+ }
+ public function getAlg()
+ {
+ return $this->alg;
+ }
+ public function setE($e)
+ {
+ $this->e = $e;
+ }
+ public function getE()
+ {
+ return $this->e;
+ }
+ public function setKid($kid)
+ {
+ $this->kid = $kid;
+ }
+ public function getKid()
+ {
+ return $this->kid;
+ }
+ public function setKty($kty)
+ {
+ $this->kty = $kty;
+ }
+ public function getKty()
+ {
+ return $this->kty;
+ }
+ public function setN($n)
+ {
+ $this->n = $n;
+ }
+ public function getN()
+ {
+ return $this->n;
+ }
+ public function setUse($use)
+ {
+ $this->use = $use;
+ }
+ public function getUse()
+ {
+ return $this->use;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/Userinfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/Userinfo.php
new file mode 100644
index 00000000..6cba0256
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/Userinfo.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userinfo" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $oauth2Service = new Google_Service_Oauth2(...);
+ * $userinfo = $oauth2Service->userinfo;
+ * </code>
+ */
+class Google_Service_Oauth2_Resource_Userinfo extends Google_Service_Resource
+{
+ /**
+ * (userinfo.get)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Oauth2_Userinfoplus
+ */
+ public function get($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2.php
new file mode 100644
index 00000000..1ca820ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "v2" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $oauth2Service = new Google_Service_Oauth2(...);
+ * $v2 = $oauth2Service->v2;
+ * </code>
+ */
+class Google_Service_Oauth2_Resource_UserinfoV2 extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2Me.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2Me.php
new file mode 100644
index 00000000..b73b78e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Resource/UserinfoV2Me.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "me" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $oauth2Service = new Google_Service_Oauth2(...);
+ * $me = $oauth2Service->me;
+ * </code>
+ */
+class Google_Service_Oauth2_Resource_UserinfoV2Me extends Google_Service_Resource
+{
+ /**
+ * (me.get)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Oauth2_Userinfoplus
+ */
+ public function get($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Tokeninfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Tokeninfo.php
new file mode 100644
index 00000000..6632a24a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Tokeninfo.php
@@ -0,0 +1,110 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Oauth2_Tokeninfo extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "accessType" => "access_type",
+ "expiresIn" => "expires_in",
+ "issuedTo" => "issued_to",
+ "tokenHandle" => "token_handle",
+ "userId" => "user_id",
+ "verifiedEmail" => "verified_email",
+ );
+ public $accessType;
+ public $audience;
+ public $email;
+ public $expiresIn;
+ public $issuedTo;
+ public $scope;
+ public $tokenHandle;
+ public $userId;
+ public $verifiedEmail;
+
+ public function setAccessType($accessType)
+ {
+ $this->accessType = $accessType;
+ }
+ public function getAccessType()
+ {
+ return $this->accessType;
+ }
+ public function setAudience($audience)
+ {
+ $this->audience = $audience;
+ }
+ public function getAudience()
+ {
+ return $this->audience;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setExpiresIn($expiresIn)
+ {
+ $this->expiresIn = $expiresIn;
+ }
+ public function getExpiresIn()
+ {
+ return $this->expiresIn;
+ }
+ public function setIssuedTo($issuedTo)
+ {
+ $this->issuedTo = $issuedTo;
+ }
+ public function getIssuedTo()
+ {
+ return $this->issuedTo;
+ }
+ public function setScope($scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+ public function setTokenHandle($tokenHandle)
+ {
+ $this->tokenHandle = $tokenHandle;
+ }
+ public function getTokenHandle()
+ {
+ return $this->tokenHandle;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+ public function setVerifiedEmail($verifiedEmail)
+ {
+ $this->verifiedEmail = $verifiedEmail;
+ }
+ public function getVerifiedEmail()
+ {
+ return $this->verifiedEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Userinfoplus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Userinfoplus.php
new file mode 100644
index 00000000..1d76dfd9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Oauth2/Userinfoplus.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Oauth2_Userinfoplus extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "familyName" => "family_name",
+ "givenName" => "given_name",
+ "verifiedEmail" => "verified_email",
+ );
+ public $email;
+ public $familyName;
+ public $gender;
+ public $givenName;
+ public $hd;
+ public $id;
+ public $link;
+ public $locale;
+ public $name;
+ public $picture;
+ public $verifiedEmail;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGender($gender)
+ {
+ $this->gender = $gender;
+ }
+ public function getGender()
+ {
+ return $this->gender;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+ public function setHd($hd)
+ {
+ $this->hd = $hd;
+ }
+ public function getHd()
+ {
+ return $this->hd;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPicture($picture)
+ {
+ $this->picture = $picture;
+ }
+ public function getPicture()
+ {
+ return $this->picture;
+ }
+ public function setVerifiedEmail($verifiedEmail)
+ {
+ $this->verifiedEmail = $verifiedEmail;
+ }
+ public function getVerifiedEmail()
+ {
+ return $this->verifiedEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline.php
new file mode 100644
index 00000000..f3459b60
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Pagespeedonline (v2).
+ *
+ * <p>
+ * Analyzes the performance of a web page and provides tailored suggestions to
+ * make that page faster.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/speed/docs/insights/v2/getting-started" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Pagespeedonline extends Google_Service
+{
+
+
+ public $pagespeedapi;
+
+ /**
+ * Constructs the internal representation of the Pagespeedonline service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'pagespeedonline/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'pagespeedonline';
+
+ $this->pagespeedapi = new Google_Service_Pagespeedonline_Resource_Pagespeedapi(
+ $this,
+ $this->serviceName,
+ 'pagespeedapi',
+ array(
+ 'methods' => array(
+ 'runpagespeed' => array(
+ 'path' => 'runPagespeed',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'url' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter_third_party_resources' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'rule' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'screenshot' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'strategy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2.php
new file mode 100644
index 00000000..2c375993
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 extends Google_Collection
+{
+ protected $collection_key = 'args';
+ protected $argsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args';
+ protected $argsDataType = 'array';
+ public $format;
+
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2Args.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2Args.php
new file mode 100644
index 00000000..c1179e70
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2Args.php
@@ -0,0 +1,72 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args extends Google_Collection
+{
+ protected $collection_key = 'secondary_rects';
+ protected $internal_gapi_mappings = array(
+ "secondaryRects" => "secondary_rects",
+ );
+ public $key;
+ protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects';
+ protected $rectsDataType = 'array';
+ protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects';
+ protected $secondaryRectsDataType = 'array';
+ public $type;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setRects($rects)
+ {
+ $this->rects = $rects;
+ }
+ public function getRects()
+ {
+ return $this->rects;
+ }
+ public function setSecondaryRects($secondaryRects)
+ {
+ $this->secondaryRects = $secondaryRects;
+ }
+ public function getSecondaryRects()
+ {
+ return $this->secondaryRects;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsRects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsRects.php
new file mode 100644
index 00000000..a11240cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsRects.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects extends Google_Model
+{
+ public $height;
+ public $left;
+ public $top;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsSecondaryRects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsSecondaryRects.php
new file mode 100644
index 00000000..556a5fdb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiFormatStringV2ArgsSecondaryRects.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects extends Google_Model
+{
+ public $height;
+ public $left;
+ public $top;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2.php
new file mode 100644
index 00000000..3768fb4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_PagespeedApiImageV2 extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "mimeType" => "mime_type",
+ "pageRect" => "page_rect",
+ );
+ public $data;
+ public $height;
+ public $key;
+ public $mimeType;
+ protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect';
+ protected $pageRectDataType = '';
+ public $width;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect)
+ {
+ $this->pageRect = $pageRect;
+ }
+ public function getPageRect()
+ {
+ return $this->pageRect;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2PageRect.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2PageRect.php
new file mode 100644
index 00000000..4adc16bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/PagespeedApiImageV2PageRect.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect extends Google_Model
+{
+ public $height;
+ public $left;
+ public $top;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php
new file mode 100644
index 00000000..bea52f24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Resource/Pagespeedapi.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "pagespeedapi" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $pagespeedonlineService = new Google_Service_Pagespeedonline(...);
+ * $pagespeedapi = $pagespeedonlineService->pagespeedapi;
+ * </code>
+ */
+class Google_Service_Pagespeedonline_Resource_Pagespeedapi extends Google_Service_Resource
+{
+ /**
+ * Runs PageSpeed analysis on the page at the specified URL, and returns
+ * PageSpeed scores, a list of suggestions to make that page faster, and other
+ * information. (pagespeedapi.runpagespeed)
+ *
+ * @param string $url The URL to fetch and analyze
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool filter_third_party_resources Indicates if third party
+ * resources should be filtered out before PageSpeed analysis.
+ * @opt_param string locale The locale used to localize formatted results
+ * @opt_param string rule A PageSpeed rule to run; if none are given, all rules
+ * are run
+ * @opt_param bool screenshot Indicates if binary data containing a screenshot
+ * should be included
+ * @opt_param string strategy The analysis strategy to use
+ * @return Google_Service_Pagespeedonline_Result
+ */
+ public function runpagespeed($url, $optParams = array())
+ {
+ $params = array('url' => $url);
+ $params = array_merge($params, $optParams);
+ return $this->call('runpagespeed', array($params), "Google_Service_Pagespeedonline_Result");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Result.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Result.php
new file mode 100644
index 00000000..b9aa3342
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/Result.php
@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_Result extends Google_Collection
+{
+ protected $collection_key = 'invalidRules';
+ protected $formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults';
+ protected $formattedResultsDataType = '';
+ public $id;
+ public $invalidRules;
+ public $kind;
+ protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats';
+ protected $pageStatsDataType = '';
+ public $responseCode;
+ protected $ruleGroupsType = 'Google_Service_Pagespeedonline_ResultRuleGroupsElement';
+ protected $ruleGroupsDataType = 'map';
+ protected $screenshotType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2';
+ protected $screenshotDataType = '';
+ public $title;
+ protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion';
+ protected $versionDataType = '';
+
+ public function setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults $formattedResults)
+ {
+ $this->formattedResults = $formattedResults;
+ }
+ public function getFormattedResults()
+ {
+ return $this->formattedResults;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInvalidRules($invalidRules)
+ {
+ $this->invalidRules = $invalidRules;
+ }
+ public function getInvalidRules()
+ {
+ return $this->invalidRules;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pageStats)
+ {
+ $this->pageStats = $pageStats;
+ }
+ public function getPageStats()
+ {
+ return $this->pageStats;
+ }
+ public function setResponseCode($responseCode)
+ {
+ $this->responseCode = $responseCode;
+ }
+ public function getResponseCode()
+ {
+ return $this->responseCode;
+ }
+ public function setRuleGroups($ruleGroups)
+ {
+ $this->ruleGroups = $ruleGroups;
+ }
+ public function getRuleGroups()
+ {
+ return $this->ruleGroups;
+ }
+ public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $screenshot)
+ {
+ $this->screenshot = $screenshot;
+ }
+ public function getScreenshot()
+ {
+ return $this->screenshot;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setVersion(Google_Service_Pagespeedonline_ResultVersion $version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResults.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResults.php
new file mode 100644
index 00000000..bf4ef288
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResults.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_ResultFormattedResults extends Google_Model
+{
+ public $locale;
+ protected $ruleResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement';
+ protected $ruleResultsDataType = 'map';
+
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setRuleResults($ruleResults)
+ {
+ $this->ruleResults = $ruleResults;
+ }
+ public function getRuleResults()
+ {
+ return $this->ruleResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElement.php
new file mode 100644
index 00000000..ef3d1874
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElement.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement extends Google_Collection
+{
+ protected $collection_key = 'urlBlocks';
+ public $groups;
+ public $localizedRuleName;
+ public $ruleImpact;
+ protected $summaryType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
+ protected $summaryDataType = '';
+ protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks';
+ protected $urlBlocksDataType = 'array';
+
+ public function setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ public function setLocalizedRuleName($localizedRuleName)
+ {
+ $this->localizedRuleName = $localizedRuleName;
+ }
+ public function getLocalizedRuleName()
+ {
+ return $this->localizedRuleName;
+ }
+ public function setRuleImpact($ruleImpact)
+ {
+ $this->ruleImpact = $ruleImpact;
+ }
+ public function getRuleImpact()
+ {
+ return $this->ruleImpact;
+ }
+ public function setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+ public function setUrlBlocks($urlBlocks)
+ {
+ $this->urlBlocks = $urlBlocks;
+ }
+ public function getUrlBlocks()
+ {
+ return $this->urlBlocks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocks.php
new file mode 100644
index 00000000..d60e2f3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocks.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks extends Google_Collection
+{
+ protected $collection_key = 'urls';
+ protected $headerType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
+ protected $headerDataType = '';
+ protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls';
+ protected $urlsDataType = 'array';
+
+ public function setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $header)
+ {
+ $this->header = $header;
+ }
+ public function getHeader()
+ {
+ return $this->header;
+ }
+ public function setUrls($urls)
+ {
+ $this->urls = $urls;
+ }
+ public function getUrls()
+ {
+ return $this->urls;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocksUrls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocksUrls.php
new file mode 100644
index 00000000..e6685217
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultFormattedResultsRuleResultsElementUrlBlocksUrls.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection
+{
+ protected $collection_key = 'details';
+ protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
+ protected $detailsDataType = 'array';
+ protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
+ protected $resultDataType = '';
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultPageStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultPageStats.php
new file mode 100644
index 00000000..e1c152f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultPageStats.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model
+{
+ public $cssResponseBytes;
+ public $flashResponseBytes;
+ public $htmlResponseBytes;
+ public $imageResponseBytes;
+ public $javascriptResponseBytes;
+ public $numberCssResources;
+ public $numberHosts;
+ public $numberJsResources;
+ public $numberResources;
+ public $numberStaticResources;
+ public $otherResponseBytes;
+ public $textResponseBytes;
+ public $totalRequestBytes;
+
+ public function setCssResponseBytes($cssResponseBytes)
+ {
+ $this->cssResponseBytes = $cssResponseBytes;
+ }
+ public function getCssResponseBytes()
+ {
+ return $this->cssResponseBytes;
+ }
+ public function setFlashResponseBytes($flashResponseBytes)
+ {
+ $this->flashResponseBytes = $flashResponseBytes;
+ }
+ public function getFlashResponseBytes()
+ {
+ return $this->flashResponseBytes;
+ }
+ public function setHtmlResponseBytes($htmlResponseBytes)
+ {
+ $this->htmlResponseBytes = $htmlResponseBytes;
+ }
+ public function getHtmlResponseBytes()
+ {
+ return $this->htmlResponseBytes;
+ }
+ public function setImageResponseBytes($imageResponseBytes)
+ {
+ $this->imageResponseBytes = $imageResponseBytes;
+ }
+ public function getImageResponseBytes()
+ {
+ return $this->imageResponseBytes;
+ }
+ public function setJavascriptResponseBytes($javascriptResponseBytes)
+ {
+ $this->javascriptResponseBytes = $javascriptResponseBytes;
+ }
+ public function getJavascriptResponseBytes()
+ {
+ return $this->javascriptResponseBytes;
+ }
+ public function setNumberCssResources($numberCssResources)
+ {
+ $this->numberCssResources = $numberCssResources;
+ }
+ public function getNumberCssResources()
+ {
+ return $this->numberCssResources;
+ }
+ public function setNumberHosts($numberHosts)
+ {
+ $this->numberHosts = $numberHosts;
+ }
+ public function getNumberHosts()
+ {
+ return $this->numberHosts;
+ }
+ public function setNumberJsResources($numberJsResources)
+ {
+ $this->numberJsResources = $numberJsResources;
+ }
+ public function getNumberJsResources()
+ {
+ return $this->numberJsResources;
+ }
+ public function setNumberResources($numberResources)
+ {
+ $this->numberResources = $numberResources;
+ }
+ public function getNumberResources()
+ {
+ return $this->numberResources;
+ }
+ public function setNumberStaticResources($numberStaticResources)
+ {
+ $this->numberStaticResources = $numberStaticResources;
+ }
+ public function getNumberStaticResources()
+ {
+ return $this->numberStaticResources;
+ }
+ public function setOtherResponseBytes($otherResponseBytes)
+ {
+ $this->otherResponseBytes = $otherResponseBytes;
+ }
+ public function getOtherResponseBytes()
+ {
+ return $this->otherResponseBytes;
+ }
+ public function setTextResponseBytes($textResponseBytes)
+ {
+ $this->textResponseBytes = $textResponseBytes;
+ }
+ public function getTextResponseBytes()
+ {
+ return $this->textResponseBytes;
+ }
+ public function setTotalRequestBytes($totalRequestBytes)
+ {
+ $this->totalRequestBytes = $totalRequestBytes;
+ }
+ public function getTotalRequestBytes()
+ {
+ return $this->totalRequestBytes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultRuleGroupsElement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultRuleGroupsElement.php
new file mode 100644
index 00000000..6972a1c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultRuleGroupsElement.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_ResultRuleGroupsElement extends Google_Model
+{
+ public $score;
+
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultVersion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultVersion.php
new file mode 100644
index 00000000..b7fbee9e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pagespeedonline/ResultVersion.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pagespeedonline_ResultVersion extends Google_Model
+{
+ public $major;
+ public $minor;
+
+ public function setMajor($major)
+ {
+ $this->major = $major;
+ }
+ public function getMajor()
+ {
+ return $this->major;
+ }
+ public function setMinor($minor)
+ {
+ $this->minor = $minor;
+ }
+ public function getMinor()
+ {
+ return $this->minor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners.php
new file mode 100644
index 00000000..d6f23312
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners.php
@@ -0,0 +1,877 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Partners (v2).
+ *
+ * <p>
+ * Searches certified companies and creates contact leads with them, and also
+ * audits the usage of clients.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/partners/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Partners extends Google_Service
+{
+
+
+ public $analytics;
+ public $clientMessages;
+ public $companies;
+ public $companies_leads;
+ public $exams;
+ public $leads;
+ public $offers;
+ public $offers_history;
+ public $userEvents;
+ public $userStates;
+ public $users;
+ public $v2;
+
+ /**
+ * Constructs the internal representation of the Partners service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://partners.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v2';
+ $this->serviceName = 'partners';
+
+ $this->analytics = new Google_Service_Partners_Resource_Analytics(
+ $this,
+ $this->serviceName,
+ 'analytics',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/analytics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->clientMessages = new Google_Service_Partners_Resource_ClientMessages(
+ $this,
+ $this->serviceName,
+ 'clientMessages',
+ array(
+ 'methods' => array(
+ 'log' => array(
+ 'path' => 'v2/clientMessages:log',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->companies = new Google_Service_Partners_Resource_Companies(
+ $this,
+ $this->serviceName,
+ 'companies',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v2/companies/{companyId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'companyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'currencyCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'address' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v2/companies',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'companyName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'industries' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'websiteUrl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'gpsMotivations' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'languageCodes' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'specializations' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxMonthlyBudget.currencyCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'minMonthlyBudget.currencyCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'address' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'minMonthlyBudget.units' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxMonthlyBudget.nanos' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'services' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'maxMonthlyBudget.units' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'minMonthlyBudget.nanos' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->companies_leads = new Google_Service_Partners_Resource_CompaniesLeads(
+ $this,
+ $this->serviceName,
+ 'leads',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v2/companies/{companyId}/leads',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'companyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->exams = new Google_Service_Partners_Resource_Exams(
+ $this,
+ $this->serviceName,
+ 'exams',
+ array(
+ 'methods' => array(
+ 'getToken' => array(
+ 'path' => 'v2/exams/{examType}/token',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'examType' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->leads = new Google_Service_Partners_Resource_Leads(
+ $this,
+ $this->serviceName,
+ 'leads',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/leads',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->offers = new Google_Service_Partners_Resource_Offers(
+ $this,
+ $this->serviceName,
+ 'offers',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/offers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->offers_history = new Google_Service_Partners_Resource_OffersHistory(
+ $this,
+ $this->serviceName,
+ 'history',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/offers/history',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'entireCompany' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userEvents = new Google_Service_Partners_Resource_UserEvents(
+ $this,
+ $this->serviceName,
+ 'userEvents',
+ array(
+ 'methods' => array(
+ 'log' => array(
+ 'path' => 'v2/userEvents:log',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->userStates = new Google_Service_Partners_Resource_UserStates(
+ $this,
+ $this->serviceName,
+ 'userStates',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/userStates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users = new Google_Service_Partners_Resource_Users(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'createCompanyRelation' => array(
+ 'path' => 'v2/users/{userId}/companyRelation',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'deleteCompanyRelation' => array(
+ 'path' => 'v2/users/{userId}/companyRelation',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v2/users/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'userView' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'updateProfile' => array(
+ 'path' => 'v2/users/profile',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->v2 = new Google_Service_Partners_Resource_V2(
+ $this,
+ $this->serviceName,
+ 'v2',
+ array(
+ 'methods' => array(
+ 'getPartnersstatus' => array(
+ 'path' => 'v2/partnersstatus',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'updateCompanies' => array(
+ 'path' => 'v2/companies',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'updateLeads' => array(
+ 'path' => 'v2/leads',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'requestMetadata.trafficSource.trafficSourceId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.ipAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'updateMask' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.experimentIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'requestMetadata.trafficSource.trafficSubId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.partnersSessionId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMetadata.userOverrides.userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AdWordsManagerAccountInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AdWordsManagerAccountInfo.php
new file mode 100644
index 00000000..2141b58f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AdWordsManagerAccountInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_AdWordsManagerAccountInfo extends Google_Model
+{
+ public $customerName;
+ public $id;
+
+ public function setCustomerName($customerName)
+ {
+ $this->customerName = $customerName;
+ }
+ public function getCustomerName()
+ {
+ return $this->customerName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Analytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Analytics.php
new file mode 100644
index 00000000..e2ba118f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Analytics.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Analytics extends Google_Model
+{
+ protected $contactsType = 'Google_Service_Partners_AnalyticsDataPoint';
+ protected $contactsDataType = '';
+ protected $eventDateType = 'Google_Service_Partners_Date';
+ protected $eventDateDataType = '';
+ protected $profileViewsType = 'Google_Service_Partners_AnalyticsDataPoint';
+ protected $profileViewsDataType = '';
+ protected $searchViewsType = 'Google_Service_Partners_AnalyticsDataPoint';
+ protected $searchViewsDataType = '';
+
+ public function setContacts(Google_Service_Partners_AnalyticsDataPoint $contacts)
+ {
+ $this->contacts = $contacts;
+ }
+ public function getContacts()
+ {
+ return $this->contacts;
+ }
+ public function setEventDate(Google_Service_Partners_Date $eventDate)
+ {
+ $this->eventDate = $eventDate;
+ }
+ public function getEventDate()
+ {
+ return $this->eventDate;
+ }
+ public function setProfileViews(Google_Service_Partners_AnalyticsDataPoint $profileViews)
+ {
+ $this->profileViews = $profileViews;
+ }
+ public function getProfileViews()
+ {
+ return $this->profileViews;
+ }
+ public function setSearchViews(Google_Service_Partners_AnalyticsDataPoint $searchViews)
+ {
+ $this->searchViews = $searchViews;
+ }
+ public function getSearchViews()
+ {
+ return $this->searchViews;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsDataPoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsDataPoint.php
new file mode 100644
index 00000000..f3bca347
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsDataPoint.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_AnalyticsDataPoint extends Google_Collection
+{
+ protected $collection_key = 'eventLocations';
+ public $eventCount;
+ protected $eventLocationsType = 'Google_Service_Partners_LatLng';
+ protected $eventLocationsDataType = 'array';
+
+ public function setEventCount($eventCount)
+ {
+ $this->eventCount = $eventCount;
+ }
+ public function getEventCount()
+ {
+ return $this->eventCount;
+ }
+ public function setEventLocations($eventLocations)
+ {
+ $this->eventLocations = $eventLocations;
+ }
+ public function getEventLocations()
+ {
+ return $this->eventLocations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsSummary.php
new file mode 100644
index 00000000..798a62b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AnalyticsSummary.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_AnalyticsSummary extends Google_Model
+{
+ public $contactsCount;
+ public $profileViewsCount;
+ public $searchViewsCount;
+
+ public function setContactsCount($contactsCount)
+ {
+ $this->contactsCount = $contactsCount;
+ }
+ public function getContactsCount()
+ {
+ return $this->contactsCount;
+ }
+ public function setProfileViewsCount($profileViewsCount)
+ {
+ $this->profileViewsCount = $profileViewsCount;
+ }
+ public function getProfileViewsCount()
+ {
+ return $this->profileViewsCount;
+ }
+ public function setSearchViewsCount($searchViewsCount)
+ {
+ $this->searchViewsCount = $searchViewsCount;
+ }
+ public function getSearchViewsCount()
+ {
+ return $this->searchViewsCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AvailableOffer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AvailableOffer.php
new file mode 100644
index 00000000..257a83f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/AvailableOffer.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_AvailableOffer extends Google_Collection
+{
+ protected $collection_key = 'qualifiedCustomer';
+ public $available;
+ protected $countryOfferInfosType = 'Google_Service_Partners_CountryOfferInfo';
+ protected $countryOfferInfosDataType = 'array';
+ public $description;
+ public $id;
+ public $maxAccountAge;
+ public $name;
+ public $offerLevel;
+ public $offerType;
+ protected $qualifiedCustomerType = 'Google_Service_Partners_OfferCustomer';
+ protected $qualifiedCustomerDataType = 'array';
+ public $qualifiedCustomersComplete;
+ public $showSpecialOfferCopy;
+ public $terms;
+
+ public function setAvailable($available)
+ {
+ $this->available = $available;
+ }
+ public function getAvailable()
+ {
+ return $this->available;
+ }
+ public function setCountryOfferInfos($countryOfferInfos)
+ {
+ $this->countryOfferInfos = $countryOfferInfos;
+ }
+ public function getCountryOfferInfos()
+ {
+ return $this->countryOfferInfos;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMaxAccountAge($maxAccountAge)
+ {
+ $this->maxAccountAge = $maxAccountAge;
+ }
+ public function getMaxAccountAge()
+ {
+ return $this->maxAccountAge;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOfferLevel($offerLevel)
+ {
+ $this->offerLevel = $offerLevel;
+ }
+ public function getOfferLevel()
+ {
+ return $this->offerLevel;
+ }
+ public function setOfferType($offerType)
+ {
+ $this->offerType = $offerType;
+ }
+ public function getOfferType()
+ {
+ return $this->offerType;
+ }
+ public function setQualifiedCustomer($qualifiedCustomer)
+ {
+ $this->qualifiedCustomer = $qualifiedCustomer;
+ }
+ public function getQualifiedCustomer()
+ {
+ return $this->qualifiedCustomer;
+ }
+ public function setQualifiedCustomersComplete($qualifiedCustomersComplete)
+ {
+ $this->qualifiedCustomersComplete = $qualifiedCustomersComplete;
+ }
+ public function getQualifiedCustomersComplete()
+ {
+ return $this->qualifiedCustomersComplete;
+ }
+ public function setShowSpecialOfferCopy($showSpecialOfferCopy)
+ {
+ $this->showSpecialOfferCopy = $showSpecialOfferCopy;
+ }
+ public function getShowSpecialOfferCopy()
+ {
+ return $this->showSpecialOfferCopy;
+ }
+ public function setTerms($terms)
+ {
+ $this->terms = $terms;
+ }
+ public function getTerms()
+ {
+ return $this->terms;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Certification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Certification.php
new file mode 100644
index 00000000..0fb5a5f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Certification.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Certification extends Google_Model
+{
+ public $achieved;
+ public $certificationType;
+ public $expiration;
+ public $lastAchieved;
+ public $warning;
+
+ public function setAchieved($achieved)
+ {
+ $this->achieved = $achieved;
+ }
+ public function getAchieved()
+ {
+ return $this->achieved;
+ }
+ public function setCertificationType($certificationType)
+ {
+ $this->certificationType = $certificationType;
+ }
+ public function getCertificationType()
+ {
+ return $this->certificationType;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setLastAchieved($lastAchieved)
+ {
+ $this->lastAchieved = $lastAchieved;
+ }
+ public function getLastAchieved()
+ {
+ return $this->lastAchieved;
+ }
+ public function setWarning($warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationExamStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationExamStatus.php
new file mode 100644
index 00000000..fe7eb599
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationExamStatus.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_CertificationExamStatus extends Google_Model
+{
+ public $numberUsersPass;
+ public $type;
+
+ public function setNumberUsersPass($numberUsersPass)
+ {
+ $this->numberUsersPass = $numberUsersPass;
+ }
+ public function getNumberUsersPass()
+ {
+ return $this->numberUsersPass;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationStatus.php
new file mode 100644
index 00000000..7cc575b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CertificationStatus.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_CertificationStatus extends Google_Collection
+{
+ protected $collection_key = 'examStatuses';
+ protected $examStatusesType = 'Google_Service_Partners_CertificationExamStatus';
+ protected $examStatusesDataType = 'array';
+ public $isCertified;
+ public $type;
+ public $userCount;
+
+ public function setExamStatuses($examStatuses)
+ {
+ $this->examStatuses = $examStatuses;
+ }
+ public function getExamStatuses()
+ {
+ return $this->examStatuses;
+ }
+ public function setIsCertified($isCertified)
+ {
+ $this->isCertified = $isCertified;
+ }
+ public function getIsCertified()
+ {
+ return $this->isCertified;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUserCount($userCount)
+ {
+ $this->userCount = $userCount;
+ }
+ public function getUserCount()
+ {
+ return $this->userCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Company.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Company.php
new file mode 100644
index 00000000..8b276dc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Company.php
@@ -0,0 +1,220 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Company extends Google_Collection
+{
+ protected $collection_key = 'specializationStatus';
+ public $additionalWebsites;
+ public $autoApprovalEmailDomains;
+ public $badgeTier;
+ protected $certificationStatusesType = 'Google_Service_Partners_CertificationStatus';
+ protected $certificationStatusesDataType = 'array';
+ public $companyTypes;
+ protected $convertedMinMonthlyBudgetType = 'Google_Service_Partners_Money';
+ protected $convertedMinMonthlyBudgetDataType = '';
+ public $id;
+ public $industries;
+ protected $localizedInfosType = 'Google_Service_Partners_LocalizedCompanyInfo';
+ protected $localizedInfosDataType = 'array';
+ protected $locationsType = 'Google_Service_Partners_Location';
+ protected $locationsDataType = 'array';
+ public $name;
+ protected $originalMinMonthlyBudgetType = 'Google_Service_Partners_Money';
+ protected $originalMinMonthlyBudgetDataType = '';
+ public $primaryAdwordsManagerAccountId;
+ public $primaryLanguageCode;
+ protected $primaryLocationType = 'Google_Service_Partners_Location';
+ protected $primaryLocationDataType = '';
+ public $profileStatus;
+ protected $publicProfileType = 'Google_Service_Partners_PublicProfile';
+ protected $publicProfileDataType = '';
+ protected $ranksType = 'Google_Service_Partners_Rank';
+ protected $ranksDataType = 'array';
+ public $services;
+ protected $specializationStatusType = 'Google_Service_Partners_SpecializationStatus';
+ protected $specializationStatusDataType = 'array';
+ public $websiteUrl;
+
+ public function setAdditionalWebsites($additionalWebsites)
+ {
+ $this->additionalWebsites = $additionalWebsites;
+ }
+ public function getAdditionalWebsites()
+ {
+ return $this->additionalWebsites;
+ }
+ public function setAutoApprovalEmailDomains($autoApprovalEmailDomains)
+ {
+ $this->autoApprovalEmailDomains = $autoApprovalEmailDomains;
+ }
+ public function getAutoApprovalEmailDomains()
+ {
+ return $this->autoApprovalEmailDomains;
+ }
+ public function setBadgeTier($badgeTier)
+ {
+ $this->badgeTier = $badgeTier;
+ }
+ public function getBadgeTier()
+ {
+ return $this->badgeTier;
+ }
+ public function setCertificationStatuses($certificationStatuses)
+ {
+ $this->certificationStatuses = $certificationStatuses;
+ }
+ public function getCertificationStatuses()
+ {
+ return $this->certificationStatuses;
+ }
+ public function setCompanyTypes($companyTypes)
+ {
+ $this->companyTypes = $companyTypes;
+ }
+ public function getCompanyTypes()
+ {
+ return $this->companyTypes;
+ }
+ public function setConvertedMinMonthlyBudget(Google_Service_Partners_Money $convertedMinMonthlyBudget)
+ {
+ $this->convertedMinMonthlyBudget = $convertedMinMonthlyBudget;
+ }
+ public function getConvertedMinMonthlyBudget()
+ {
+ return $this->convertedMinMonthlyBudget;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIndustries($industries)
+ {
+ $this->industries = $industries;
+ }
+ public function getIndustries()
+ {
+ return $this->industries;
+ }
+ public function setLocalizedInfos($localizedInfos)
+ {
+ $this->localizedInfos = $localizedInfos;
+ }
+ public function getLocalizedInfos()
+ {
+ return $this->localizedInfos;
+ }
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginalMinMonthlyBudget(Google_Service_Partners_Money $originalMinMonthlyBudget)
+ {
+ $this->originalMinMonthlyBudget = $originalMinMonthlyBudget;
+ }
+ public function getOriginalMinMonthlyBudget()
+ {
+ return $this->originalMinMonthlyBudget;
+ }
+ public function setPrimaryAdwordsManagerAccountId($primaryAdwordsManagerAccountId)
+ {
+ $this->primaryAdwordsManagerAccountId = $primaryAdwordsManagerAccountId;
+ }
+ public function getPrimaryAdwordsManagerAccountId()
+ {
+ return $this->primaryAdwordsManagerAccountId;
+ }
+ public function setPrimaryLanguageCode($primaryLanguageCode)
+ {
+ $this->primaryLanguageCode = $primaryLanguageCode;
+ }
+ public function getPrimaryLanguageCode()
+ {
+ return $this->primaryLanguageCode;
+ }
+ public function setPrimaryLocation(Google_Service_Partners_Location $primaryLocation)
+ {
+ $this->primaryLocation = $primaryLocation;
+ }
+ public function getPrimaryLocation()
+ {
+ return $this->primaryLocation;
+ }
+ public function setProfileStatus($profileStatus)
+ {
+ $this->profileStatus = $profileStatus;
+ }
+ public function getProfileStatus()
+ {
+ return $this->profileStatus;
+ }
+ public function setPublicProfile(Google_Service_Partners_PublicProfile $publicProfile)
+ {
+ $this->publicProfile = $publicProfile;
+ }
+ public function getPublicProfile()
+ {
+ return $this->publicProfile;
+ }
+ public function setRanks($ranks)
+ {
+ $this->ranks = $ranks;
+ }
+ public function getRanks()
+ {
+ return $this->ranks;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+ public function setSpecializationStatus($specializationStatus)
+ {
+ $this->specializationStatus = $specializationStatus;
+ }
+ public function getSpecializationStatus()
+ {
+ return $this->specializationStatus;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CompanyRelation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CompanyRelation.php
new file mode 100644
index 00000000..abc07b63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CompanyRelation.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_CompanyRelation extends Google_Collection
+{
+ protected $collection_key = 'specializationStatus';
+ public $address;
+ public $badgeTier;
+ public $companyAdmin;
+ public $companyId;
+ public $creationTime;
+ public $isPending;
+ public $logoUrl;
+ public $managerAccount;
+ public $name;
+ public $phoneNumber;
+ public $resolvedTimestamp;
+ public $segment;
+ protected $specializationStatusType = 'Google_Service_Partners_SpecializationStatus';
+ protected $specializationStatusDataType = 'array';
+ public $state;
+ public $website;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setBadgeTier($badgeTier)
+ {
+ $this->badgeTier = $badgeTier;
+ }
+ public function getBadgeTier()
+ {
+ return $this->badgeTier;
+ }
+ public function setCompanyAdmin($companyAdmin)
+ {
+ $this->companyAdmin = $companyAdmin;
+ }
+ public function getCompanyAdmin()
+ {
+ return $this->companyAdmin;
+ }
+ public function setCompanyId($companyId)
+ {
+ $this->companyId = $companyId;
+ }
+ public function getCompanyId()
+ {
+ return $this->companyId;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setIsPending($isPending)
+ {
+ $this->isPending = $isPending;
+ }
+ public function getIsPending()
+ {
+ return $this->isPending;
+ }
+ public function setLogoUrl($logoUrl)
+ {
+ $this->logoUrl = $logoUrl;
+ }
+ public function getLogoUrl()
+ {
+ return $this->logoUrl;
+ }
+ public function setManagerAccount($managerAccount)
+ {
+ $this->managerAccount = $managerAccount;
+ }
+ public function getManagerAccount()
+ {
+ return $this->managerAccount;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+ public function setResolvedTimestamp($resolvedTimestamp)
+ {
+ $this->resolvedTimestamp = $resolvedTimestamp;
+ }
+ public function getResolvedTimestamp()
+ {
+ return $this->resolvedTimestamp;
+ }
+ public function setSegment($segment)
+ {
+ $this->segment = $segment;
+ }
+ public function getSegment()
+ {
+ return $this->segment;
+ }
+ public function setSpecializationStatus($specializationStatus)
+ {
+ $this->specializationStatus = $specializationStatus;
+ }
+ public function getSpecializationStatus()
+ {
+ return $this->specializationStatus;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setWebsite($website)
+ {
+ $this->website = $website;
+ }
+ public function getWebsite()
+ {
+ return $this->website;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CountryOfferInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CountryOfferInfo.php
new file mode 100644
index 00000000..5707192e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CountryOfferInfo.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_CountryOfferInfo extends Google_Model
+{
+ public $getYAmount;
+ public $offerCountryCode;
+ public $offerType;
+ public $spendXAmount;
+
+ public function setGetYAmount($getYAmount)
+ {
+ $this->getYAmount = $getYAmount;
+ }
+ public function getGetYAmount()
+ {
+ return $this->getYAmount;
+ }
+ public function setOfferCountryCode($offerCountryCode)
+ {
+ $this->offerCountryCode = $offerCountryCode;
+ }
+ public function getOfferCountryCode()
+ {
+ return $this->offerCountryCode;
+ }
+ public function setOfferType($offerType)
+ {
+ $this->offerType = $offerType;
+ }
+ public function getOfferType()
+ {
+ return $this->offerType;
+ }
+ public function setSpendXAmount($spendXAmount)
+ {
+ $this->spendXAmount = $spendXAmount;
+ }
+ public function getSpendXAmount()
+ {
+ return $this->spendXAmount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadRequest.php
new file mode 100644
index 00000000..8d500808
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadRequest.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_CreateLeadRequest extends Google_Model
+{
+ protected $leadType = 'Google_Service_Partners_Lead';
+ protected $leadDataType = '';
+ protected $recaptchaChallengeType = 'Google_Service_Partners_RecaptchaChallenge';
+ protected $recaptchaChallengeDataType = '';
+ protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata';
+ protected $requestMetadataDataType = '';
+
+ public function setLead(Google_Service_Partners_Lead $lead)
+ {
+ $this->lead = $lead;
+ }
+ public function getLead()
+ {
+ return $this->lead;
+ }
+ public function setRecaptchaChallenge(Google_Service_Partners_RecaptchaChallenge $recaptchaChallenge)
+ {
+ $this->recaptchaChallenge = $recaptchaChallenge;
+ }
+ public function getRecaptchaChallenge()
+ {
+ return $this->recaptchaChallenge;
+ }
+ public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata)
+ {
+ $this->requestMetadata = $requestMetadata;
+ }
+ public function getRequestMetadata()
+ {
+ return $this->requestMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadResponse.php
new file mode 100644
index 00000000..6a435771
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/CreateLeadResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_CreateLeadResponse extends Google_Model
+{
+ protected $leadType = 'Google_Service_Partners_Lead';
+ protected $leadDataType = '';
+ public $recaptchaStatus;
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setLead(Google_Service_Partners_Lead $lead)
+ {
+ $this->lead = $lead;
+ }
+ public function getLead()
+ {
+ return $this->lead;
+ }
+ public function setRecaptchaStatus($recaptchaStatus)
+ {
+ $this->recaptchaStatus = $recaptchaStatus;
+ }
+ public function getRecaptchaStatus()
+ {
+ return $this->recaptchaStatus;
+ }
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Date.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Date.php
new file mode 100644
index 00000000..3ad8c9db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Date.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Date extends Google_Model
+{
+ public $day;
+ public $month;
+ public $year;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth($month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+ public function setYear($year)
+ {
+ $this->year = $year;
+ }
+ public function getYear()
+ {
+ return $this->year;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/DebugInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/DebugInfo.php
new file mode 100644
index 00000000..279e34a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/DebugInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_DebugInfo extends Google_Model
+{
+ public $serverInfo;
+ public $serverTraceInfo;
+ public $serviceUrl;
+
+ public function setServerInfo($serverInfo)
+ {
+ $this->serverInfo = $serverInfo;
+ }
+ public function getServerInfo()
+ {
+ return $this->serverInfo;
+ }
+ public function setServerTraceInfo($serverTraceInfo)
+ {
+ $this->serverTraceInfo = $serverTraceInfo;
+ }
+ public function getServerTraceInfo()
+ {
+ return $this->serverTraceInfo;
+ }
+ public function setServiceUrl($serviceUrl)
+ {
+ $this->serviceUrl = $serviceUrl;
+ }
+ public function getServiceUrl()
+ {
+ return $this->serviceUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/EventData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/EventData.php
new file mode 100644
index 00000000..6acac885
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/EventData.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_EventData extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $key;
+ public $values;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamStatus.php
new file mode 100644
index 00000000..ddc524e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamStatus.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ExamStatus extends Google_Model
+{
+ public $examType;
+ public $expiration;
+ public $lastPassed;
+ public $passed;
+ public $taken;
+ public $warning;
+
+ public function setExamType($examType)
+ {
+ $this->examType = $examType;
+ }
+ public function getExamType()
+ {
+ return $this->examType;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setLastPassed($lastPassed)
+ {
+ $this->lastPassed = $lastPassed;
+ }
+ public function getLastPassed()
+ {
+ return $this->lastPassed;
+ }
+ public function setPassed($passed)
+ {
+ $this->passed = $passed;
+ }
+ public function getPassed()
+ {
+ return $this->passed;
+ }
+ public function setTaken($taken)
+ {
+ $this->taken = $taken;
+ }
+ public function getTaken()
+ {
+ return $this->taken;
+ }
+ public function setWarning($warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamToken.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamToken.php
new file mode 100644
index 00000000..6f9e2b65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ExamToken.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ExamToken extends Google_Model
+{
+ public $examId;
+ public $examType;
+ public $token;
+
+ public function setExamId($examId)
+ {
+ $this->examId = $examId;
+ }
+ public function getExamId()
+ {
+ return $this->examId;
+ }
+ public function setExamType($examType)
+ {
+ $this->examType = $examType;
+ }
+ public function getExamType()
+ {
+ return $this->examType;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetCompanyResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetCompanyResponse.php
new file mode 100644
index 00000000..d16fae2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetCompanyResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_GetCompanyResponse extends Google_Model
+{
+ protected $companyType = 'Google_Service_Partners_Company';
+ protected $companyDataType = '';
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setCompany(Google_Service_Partners_Company $company)
+ {
+ $this->company = $company;
+ }
+ public function getCompany()
+ {
+ return $this->company;
+ }
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetPartnersStatusResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetPartnersStatusResponse.php
new file mode 100644
index 00000000..c505c2e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/GetPartnersStatusResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_GetPartnersStatusResponse extends Google_Model
+{
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/HistoricalOffer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/HistoricalOffer.php
new file mode 100644
index 00000000..652ba5bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/HistoricalOffer.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_HistoricalOffer extends Google_Model
+{
+ public $adwordsUrl;
+ public $clientEmail;
+ public $clientId;
+ public $clientName;
+ public $creationTime;
+ public $expirationTime;
+ public $lastModifiedTime;
+ public $offerCode;
+ public $offerCountryCode;
+ public $offerType;
+ public $senderName;
+ public $status;
+
+ public function setAdwordsUrl($adwordsUrl)
+ {
+ $this->adwordsUrl = $adwordsUrl;
+ }
+ public function getAdwordsUrl()
+ {
+ return $this->adwordsUrl;
+ }
+ public function setClientEmail($clientEmail)
+ {
+ $this->clientEmail = $clientEmail;
+ }
+ public function getClientEmail()
+ {
+ return $this->clientEmail;
+ }
+ public function setClientId($clientId)
+ {
+ $this->clientId = $clientId;
+ }
+ public function getClientId()
+ {
+ return $this->clientId;
+ }
+ public function setClientName($clientName)
+ {
+ $this->clientName = $clientName;
+ }
+ public function getClientName()
+ {
+ return $this->clientName;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ public function setLastModifiedTime($lastModifiedTime)
+ {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime()
+ {
+ return $this->lastModifiedTime;
+ }
+ public function setOfferCode($offerCode)
+ {
+ $this->offerCode = $offerCode;
+ }
+ public function getOfferCode()
+ {
+ return $this->offerCode;
+ }
+ public function setOfferCountryCode($offerCountryCode)
+ {
+ $this->offerCountryCode = $offerCountryCode;
+ }
+ public function getOfferCountryCode()
+ {
+ return $this->offerCountryCode;
+ }
+ public function setOfferType($offerType)
+ {
+ $this->offerType = $offerType;
+ }
+ public function getOfferType()
+ {
+ return $this->offerType;
+ }
+ public function setSenderName($senderName)
+ {
+ $this->senderName = $senderName;
+ }
+ public function getSenderName()
+ {
+ return $this->senderName;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LatLng.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LatLng.php
new file mode 100644
index 00000000..70435aa1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LatLng.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_LatLng extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Lead.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Lead.php
new file mode 100644
index 00000000..ad72ed40
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Lead.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Lead extends Google_Collection
+{
+ protected $collection_key = 'gpsMotivations';
+ public $adwordsCustomerId;
+ public $comments;
+ public $createTime;
+ public $email;
+ public $familyName;
+ public $givenName;
+ public $gpsMotivations;
+ public $id;
+ public $languageCode;
+ public $marketingOptIn;
+ protected $minMonthlyBudgetType = 'Google_Service_Partners_Money';
+ protected $minMonthlyBudgetDataType = '';
+ public $phoneNumber;
+ public $state;
+ public $type;
+ public $websiteUrl;
+
+ public function setAdwordsCustomerId($adwordsCustomerId)
+ {
+ $this->adwordsCustomerId = $adwordsCustomerId;
+ }
+ public function getAdwordsCustomerId()
+ {
+ return $this->adwordsCustomerId;
+ }
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+ public function setGpsMotivations($gpsMotivations)
+ {
+ $this->gpsMotivations = $gpsMotivations;
+ }
+ public function getGpsMotivations()
+ {
+ return $this->gpsMotivations;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+ public function setMarketingOptIn($marketingOptIn)
+ {
+ $this->marketingOptIn = $marketingOptIn;
+ }
+ public function getMarketingOptIn()
+ {
+ return $this->marketingOptIn;
+ }
+ public function setMinMonthlyBudget(Google_Service_Partners_Money $minMonthlyBudget)
+ {
+ $this->minMonthlyBudget = $minMonthlyBudget;
+ }
+ public function getMinMonthlyBudget()
+ {
+ return $this->minMonthlyBudget;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListAnalyticsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListAnalyticsResponse.php
new file mode 100644
index 00000000..4299a5de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListAnalyticsResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ListAnalyticsResponse extends Google_Collection
+{
+ protected $collection_key = 'analytics';
+ protected $analyticsType = 'Google_Service_Partners_Analytics';
+ protected $analyticsDataType = 'array';
+ protected $analyticsSummaryType = 'Google_Service_Partners_AnalyticsSummary';
+ protected $analyticsSummaryDataType = '';
+ public $nextPageToken;
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setAnalytics($analytics)
+ {
+ $this->analytics = $analytics;
+ }
+ public function getAnalytics()
+ {
+ return $this->analytics;
+ }
+ public function setAnalyticsSummary(Google_Service_Partners_AnalyticsSummary $analyticsSummary)
+ {
+ $this->analyticsSummary = $analyticsSummary;
+ }
+ public function getAnalyticsSummary()
+ {
+ return $this->analyticsSummary;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListCompaniesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListCompaniesResponse.php
new file mode 100644
index 00000000..bed980c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListCompaniesResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ListCompaniesResponse extends Google_Collection
+{
+ protected $collection_key = 'companies';
+ protected $companiesType = 'Google_Service_Partners_Company';
+ protected $companiesDataType = 'array';
+ public $nextPageToken;
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setCompanies($companies)
+ {
+ $this->companies = $companies;
+ }
+ public function getCompanies()
+ {
+ return $this->companies;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListLeadsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListLeadsResponse.php
new file mode 100644
index 00000000..c48ea416
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListLeadsResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ListLeadsResponse extends Google_Collection
+{
+ protected $collection_key = 'leads';
+ protected $leadsType = 'Google_Service_Partners_Lead';
+ protected $leadsDataType = 'array';
+ public $nextPageToken;
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+ public $totalSize;
+
+ public function setLeads($leads)
+ {
+ $this->leads = $leads;
+ }
+ public function getLeads()
+ {
+ return $this->leads;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersHistoryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersHistoryResponse.php
new file mode 100644
index 00000000..382321ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersHistoryResponse.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ListOffersHistoryResponse extends Google_Collection
+{
+ protected $collection_key = 'offers';
+ public $canShowEntireCompany;
+ public $nextPageToken;
+ protected $offersType = 'Google_Service_Partners_HistoricalOffer';
+ protected $offersDataType = 'array';
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+ public $showingEntireCompany;
+ public $totalResults;
+
+ public function setCanShowEntireCompany($canShowEntireCompany)
+ {
+ $this->canShowEntireCompany = $canShowEntireCompany;
+ }
+ public function getCanShowEntireCompany()
+ {
+ return $this->canShowEntireCompany;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOffers($offers)
+ {
+ $this->offers = $offers;
+ }
+ public function getOffers()
+ {
+ return $this->offers;
+ }
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+ public function setShowingEntireCompany($showingEntireCompany)
+ {
+ $this->showingEntireCompany = $showingEntireCompany;
+ }
+ public function getShowingEntireCompany()
+ {
+ return $this->showingEntireCompany;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersResponse.php
new file mode 100644
index 00000000..b538076b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListOffersResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ListOffersResponse extends Google_Collection
+{
+ protected $collection_key = 'availableOffers';
+ protected $availableOffersType = 'Google_Service_Partners_AvailableOffer';
+ protected $availableOffersDataType = 'array';
+ public $noOfferReason;
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setAvailableOffers($availableOffers)
+ {
+ $this->availableOffers = $availableOffers;
+ }
+ public function getAvailableOffers()
+ {
+ return $this->availableOffers;
+ }
+ public function setNoOfferReason($noOfferReason)
+ {
+ $this->noOfferReason = $noOfferReason;
+ }
+ public function getNoOfferReason()
+ {
+ return $this->noOfferReason;
+ }
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListUserStatesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListUserStatesResponse.php
new file mode 100644
index 00000000..18dda569
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ListUserStatesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ListUserStatesResponse extends Google_Collection
+{
+ protected $collection_key = 'userStates';
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+ public $userStates;
+
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+ public function setUserStates($userStates)
+ {
+ $this->userStates = $userStates;
+ }
+ public function getUserStates()
+ {
+ return $this->userStates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LocalizedCompanyInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LocalizedCompanyInfo.php
new file mode 100644
index 00000000..aad12cc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LocalizedCompanyInfo.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_LocalizedCompanyInfo extends Google_Collection
+{
+ protected $collection_key = 'countryCodes';
+ public $countryCodes;
+ public $displayName;
+ public $languageCode;
+ public $overview;
+
+ public function setCountryCodes($countryCodes)
+ {
+ $this->countryCodes = $countryCodes;
+ }
+ public function getCountryCodes()
+ {
+ return $this->countryCodes;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+ public function setOverview($overview)
+ {
+ $this->overview = $overview;
+ }
+ public function getOverview()
+ {
+ return $this->overview;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Location.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Location.php
new file mode 100644
index 00000000..4acd0420
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Location.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Location extends Google_Collection
+{
+ protected $collection_key = 'addressLine';
+ public $address;
+ public $addressLine;
+ public $administrativeArea;
+ public $dependentLocality;
+ public $languageCode;
+ protected $latLngType = 'Google_Service_Partners_LatLng';
+ protected $latLngDataType = '';
+ public $locality;
+ public $postalCode;
+ public $regionCode;
+ public $sortingCode;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setAddressLine($addressLine)
+ {
+ $this->addressLine = $addressLine;
+ }
+ public function getAddressLine()
+ {
+ return $this->addressLine;
+ }
+ public function setAdministrativeArea($administrativeArea)
+ {
+ $this->administrativeArea = $administrativeArea;
+ }
+ public function getAdministrativeArea()
+ {
+ return $this->administrativeArea;
+ }
+ public function setDependentLocality($dependentLocality)
+ {
+ $this->dependentLocality = $dependentLocality;
+ }
+ public function getDependentLocality()
+ {
+ return $this->dependentLocality;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+ public function setLatLng(Google_Service_Partners_LatLng $latLng)
+ {
+ $this->latLng = $latLng;
+ }
+ public function getLatLng()
+ {
+ return $this->latLng;
+ }
+ public function setLocality($locality)
+ {
+ $this->locality = $locality;
+ }
+ public function getLocality()
+ {
+ return $this->locality;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setRegionCode($regionCode)
+ {
+ $this->regionCode = $regionCode;
+ }
+ public function getRegionCode()
+ {
+ return $this->regionCode;
+ }
+ public function setSortingCode($sortingCode)
+ {
+ $this->sortingCode = $sortingCode;
+ }
+ public function getSortingCode()
+ {
+ return $this->sortingCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageRequest.php
new file mode 100644
index 00000000..19f76180
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_LogMessageRequest extends Google_Model
+{
+ public $clientInfo;
+ public $details;
+ public $level;
+ protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata';
+ protected $requestMetadataDataType = '';
+
+ public function setClientInfo($clientInfo)
+ {
+ $this->clientInfo = $clientInfo;
+ }
+ public function getClientInfo()
+ {
+ return $this->clientInfo;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setLevel($level)
+ {
+ $this->level = $level;
+ }
+ public function getLevel()
+ {
+ return $this->level;
+ }
+ public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata)
+ {
+ $this->requestMetadata = $requestMetadata;
+ }
+ public function getRequestMetadata()
+ {
+ return $this->requestMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageResponse.php
new file mode 100644
index 00000000..e29a824b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogMessageResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_LogMessageResponse extends Google_Model
+{
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventRequest.php
new file mode 100644
index 00000000..c374c91a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventRequest.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_LogUserEventRequest extends Google_Collection
+{
+ protected $collection_key = 'eventDatas';
+ public $eventAction;
+ public $eventCategory;
+ protected $eventDatasType = 'Google_Service_Partners_EventData';
+ protected $eventDatasDataType = 'array';
+ public $eventScope;
+ protected $leadType = 'Google_Service_Partners_Lead';
+ protected $leadDataType = '';
+ protected $requestMetadataType = 'Google_Service_Partners_RequestMetadata';
+ protected $requestMetadataDataType = '';
+ public $url;
+
+ public function setEventAction($eventAction)
+ {
+ $this->eventAction = $eventAction;
+ }
+ public function getEventAction()
+ {
+ return $this->eventAction;
+ }
+ public function setEventCategory($eventCategory)
+ {
+ $this->eventCategory = $eventCategory;
+ }
+ public function getEventCategory()
+ {
+ return $this->eventCategory;
+ }
+ public function setEventDatas($eventDatas)
+ {
+ $this->eventDatas = $eventDatas;
+ }
+ public function getEventDatas()
+ {
+ return $this->eventDatas;
+ }
+ public function setEventScope($eventScope)
+ {
+ $this->eventScope = $eventScope;
+ }
+ public function getEventScope()
+ {
+ return $this->eventScope;
+ }
+ public function setLead(Google_Service_Partners_Lead $lead)
+ {
+ $this->lead = $lead;
+ }
+ public function getLead()
+ {
+ return $this->lead;
+ }
+ public function setRequestMetadata(Google_Service_Partners_RequestMetadata $requestMetadata)
+ {
+ $this->requestMetadata = $requestMetadata;
+ }
+ public function getRequestMetadata()
+ {
+ return $this->requestMetadata;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventResponse.php
new file mode 100644
index 00000000..3584f2bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/LogUserEventResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_LogUserEventResponse extends Google_Model
+{
+ protected $responseMetadataType = 'Google_Service_Partners_ResponseMetadata';
+ protected $responseMetadataDataType = '';
+
+ public function setResponseMetadata(Google_Service_Partners_ResponseMetadata $responseMetadata)
+ {
+ $this->responseMetadata = $responseMetadata;
+ }
+ public function getResponseMetadata()
+ {
+ return $this->responseMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Money.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Money.php
new file mode 100644
index 00000000..60d94e63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Money.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Money extends Google_Model
+{
+ public $currencyCode;
+ public $nanos;
+ public $units;
+
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+ public function setUnits($units)
+ {
+ $this->units = $units;
+ }
+ public function getUnits()
+ {
+ return $this->units;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OfferCustomer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OfferCustomer.php
new file mode 100644
index 00000000..29c52631
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OfferCustomer.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_OfferCustomer extends Google_Model
+{
+ public $adwordsUrl;
+ public $countryCode;
+ public $creationTime;
+ public $eligibilityDaysLeft;
+ public $externalCid;
+ public $getYAmount;
+ public $name;
+ public $offerType;
+ public $spendXAmount;
+
+ public function setAdwordsUrl($adwordsUrl)
+ {
+ $this->adwordsUrl = $adwordsUrl;
+ }
+ public function getAdwordsUrl()
+ {
+ return $this->adwordsUrl;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setEligibilityDaysLeft($eligibilityDaysLeft)
+ {
+ $this->eligibilityDaysLeft = $eligibilityDaysLeft;
+ }
+ public function getEligibilityDaysLeft()
+ {
+ return $this->eligibilityDaysLeft;
+ }
+ public function setExternalCid($externalCid)
+ {
+ $this->externalCid = $externalCid;
+ }
+ public function getExternalCid()
+ {
+ return $this->externalCid;
+ }
+ public function setGetYAmount($getYAmount)
+ {
+ $this->getYAmount = $getYAmount;
+ }
+ public function getGetYAmount()
+ {
+ return $this->getYAmount;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOfferType($offerType)
+ {
+ $this->offerType = $offerType;
+ }
+ public function getOfferType()
+ {
+ return $this->offerType;
+ }
+ public function setSpendXAmount($spendXAmount)
+ {
+ $this->spendXAmount = $spendXAmount;
+ }
+ public function getSpendXAmount()
+ {
+ return $this->spendXAmount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OptIns.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OptIns.php
new file mode 100644
index 00000000..2553eb65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/OptIns.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_OptIns extends Google_Model
+{
+ public $marketComm;
+ public $performanceSuggestions;
+ public $phoneContact;
+ public $physicalMail;
+ public $specialOffers;
+
+ public function setMarketComm($marketComm)
+ {
+ $this->marketComm = $marketComm;
+ }
+ public function getMarketComm()
+ {
+ return $this->marketComm;
+ }
+ public function setPerformanceSuggestions($performanceSuggestions)
+ {
+ $this->performanceSuggestions = $performanceSuggestions;
+ }
+ public function getPerformanceSuggestions()
+ {
+ return $this->performanceSuggestions;
+ }
+ public function setPhoneContact($phoneContact)
+ {
+ $this->phoneContact = $phoneContact;
+ }
+ public function getPhoneContact()
+ {
+ return $this->phoneContact;
+ }
+ public function setPhysicalMail($physicalMail)
+ {
+ $this->physicalMail = $physicalMail;
+ }
+ public function getPhysicalMail()
+ {
+ return $this->physicalMail;
+ }
+ public function setSpecialOffers($specialOffers)
+ {
+ $this->specialOffers = $specialOffers;
+ }
+ public function getSpecialOffers()
+ {
+ return $this->specialOffers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PartnersEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PartnersEmpty.php
new file mode 100644
index 00000000..a960b04f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PartnersEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_PartnersEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PublicProfile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PublicProfile.php
new file mode 100644
index 00000000..cc829c15
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/PublicProfile.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_PublicProfile extends Google_Model
+{
+ public $displayImageUrl;
+ public $displayName;
+ public $id;
+ public $profileImage;
+ public $url;
+
+ public function setDisplayImageUrl($displayImageUrl)
+ {
+ $this->displayImageUrl = $displayImageUrl;
+ }
+ public function getDisplayImageUrl()
+ {
+ return $this->displayImageUrl;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setProfileImage($profileImage)
+ {
+ $this->profileImage = $profileImage;
+ }
+ public function getProfileImage()
+ {
+ return $this->profileImage;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Rank.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Rank.php
new file mode 100644
index 00000000..c011abaa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Rank.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_Rank extends Google_Model
+{
+ public $type;
+ public $value;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RecaptchaChallenge.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RecaptchaChallenge.php
new file mode 100644
index 00000000..f66445d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RecaptchaChallenge.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_RecaptchaChallenge extends Google_Model
+{
+ public $id;
+ public $response;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RequestMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RequestMetadata.php
new file mode 100644
index 00000000..9801c731
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/RequestMetadata.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_RequestMetadata extends Google_Collection
+{
+ protected $collection_key = 'experimentIds';
+ public $experimentIds;
+ public $locale;
+ public $partnersSessionId;
+ protected $trafficSourceType = 'Google_Service_Partners_TrafficSource';
+ protected $trafficSourceDataType = '';
+ protected $userOverridesType = 'Google_Service_Partners_UserOverrides';
+ protected $userOverridesDataType = '';
+
+ public function setExperimentIds($experimentIds)
+ {
+ $this->experimentIds = $experimentIds;
+ }
+ public function getExperimentIds()
+ {
+ return $this->experimentIds;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setPartnersSessionId($partnersSessionId)
+ {
+ $this->partnersSessionId = $partnersSessionId;
+ }
+ public function getPartnersSessionId()
+ {
+ return $this->partnersSessionId;
+ }
+ public function setTrafficSource(Google_Service_Partners_TrafficSource $trafficSource)
+ {
+ $this->trafficSource = $trafficSource;
+ }
+ public function getTrafficSource()
+ {
+ return $this->trafficSource;
+ }
+ public function setUserOverrides(Google_Service_Partners_UserOverrides $userOverrides)
+ {
+ $this->userOverrides = $userOverrides;
+ }
+ public function getUserOverrides()
+ {
+ return $this->userOverrides;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Analytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Analytics.php
new file mode 100644
index 00000000..f319c215
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Analytics.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "analytics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $analytics = $partnersService->analytics;
+ * </code>
+ */
+class Google_Service_Partners_Resource_Analytics extends Google_Service_Resource
+{
+ /**
+ * Lists analytics data for a user's associated company. Should only be called
+ * within the context of an authorized logged in user. (analytics.listAnalytics)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string pageToken A token identifying a page of results that the
+ * server returns. Typically, this is the value of
+ * `ListAnalyticsResponse.next_page_token` returned from the previous call to
+ * ListAnalytics. Will be a date string in `YYYY-MM-DD` format representing the
+ * end date of the date range of results to return. If unspecified or set to "",
+ * default value is the current date.
+ * @opt_param int pageSize Requested page size. Server may return fewer
+ * analytics than requested. If unspecified or set to 0, default value is 30.
+ * Specifies the number of days in the date range when querying analytics. The
+ * `page_token` represents the end date of the date range and the start date is
+ * calculated using the `page_size` as the number of days BEFORE the end date.
+ * Must be a non-negative integer.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @return Google_Service_Partners_ListAnalyticsResponse
+ */
+ public function listAnalytics($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Partners_ListAnalyticsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/ClientMessages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/ClientMessages.php
new file mode 100644
index 00000000..22d6813f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/ClientMessages.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "clientMessages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $clientMessages = $partnersService->clientMessages;
+ * </code>
+ */
+class Google_Service_Partners_Resource_ClientMessages extends Google_Service_Resource
+{
+ /**
+ * Logs a generic message from the client, such as `Failed to render component`,
+ * `Profile page is running slow`, `More than 500 users have accessed this
+ * result.`, etc. (clientMessages.log)
+ *
+ * @param Google_Service_Partners_LogMessageRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Partners_LogMessageResponse
+ */
+ public function log(Google_Service_Partners_LogMessageRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('log', array($params), "Google_Service_Partners_LogMessageResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php
new file mode 100644
index 00000000..570eeb49
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Companies.php
@@ -0,0 +1,150 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "companies" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $companies = $partnersService->companies;
+ * </code>
+ */
+class Google_Service_Partners_Resource_Companies extends Google_Service_Resource
+{
+ /**
+ * Gets a company. (companies.get)
+ *
+ * @param string $companyId The ID of the company to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string currencyCode If the company's budget is in a different
+ * currency code than this one, then the converted budget is converted to this
+ * currency code.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string orderBy How to order addresses within the returned company.
+ * Currently, only `address` and `address desc` is supported which will sorted
+ * by closest to farthest in distance from given address and farthest to closest
+ * distance from given address respectively.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string view The view of `Company` resource to be returned. This
+ * must not be `COMPANY_VIEW_UNSPECIFIED`.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string address The address to use for sorting the company's
+ * addresses by proximity. If not given, the geo-located address of the request
+ * is used. Used when order_by is set.
+ * @return Google_Service_Partners_GetCompanyResponse
+ */
+ public function get($companyId, $optParams = array())
+ {
+ $params = array('companyId' => $companyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Partners_GetCompanyResponse");
+ }
+ /**
+ * Lists companies. (companies.listCompanies)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string companyName Company name to search for.
+ * @opt_param string pageToken A token identifying a page of results that the
+ * server returns. Typically, this is the value of
+ * `ListCompaniesResponse.next_page_token` returned from the previous call to
+ * ListCompanies.
+ * @opt_param string industries List of industries the company can help with.
+ * @opt_param string websiteUrl Website URL that will help to find a better
+ * matched company. .
+ * @opt_param string gpsMotivations List of reasons for using Google Partner
+ * Search to get companies.
+ * @opt_param string languageCodes List of language codes that company can
+ * support. Only primary language subtags are accepted as defined by BCP 47
+ * (IETF BCP 47, "Tags for Identifying Languages").
+ * @opt_param int pageSize Requested page size. Server may return fewer
+ * companies than requested. If unspecified, server picks an appropriate
+ * default.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string orderBy How to order addresses within the returned
+ * companies. Currently, only `address` and `address desc` is supported which
+ * will sorted by closest to farthest in distance from given address and
+ * farthest to closest distance from given address respectively.
+ * @opt_param string specializations List of specializations that the returned
+ * agencies should provide. If this is not empty, any returned agency must have
+ * at least one of these specializations, or one of the services in the
+ * "services" field.
+ * @opt_param string maxMonthlyBudget.currencyCode The 3-letter currency code
+ * defined in ISO 4217.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string minMonthlyBudget.currencyCode The 3-letter currency code
+ * defined in ISO 4217.
+ * @opt_param string view The view of the `Company` resource to be returned.
+ * This must not be `COMPANY_VIEW_UNSPECIFIED`.
+ * @opt_param string address The address to use when searching for companies. If
+ * not given, the geo-located address of the request is used.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string minMonthlyBudget.units The whole units of the amount. For
+ * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
+ * @opt_param int maxMonthlyBudget.nanos Number of nano (10^-9) units of the
+ * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If
+ * `units` is positive, `nanos` must be positive or zero. If `units` is zero,
+ * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos`
+ * must be negative or zero. For example $-1.75 is represented as `units`=-1 and
+ * `nanos`=-750,000,000.
+ * @opt_param string services List of services that the returned agencies should
+ * provide. If this is not empty, any returned agency must have at least one of
+ * these services, or one of the specializations in the "specializations" field.
+ * @opt_param string maxMonthlyBudget.units The whole units of the amount. For
+ * example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param int minMonthlyBudget.nanos Number of nano (10^-9) units of the
+ * amount. The value must be between -999,999,999 and +999,999,999 inclusive. If
+ * `units` is positive, `nanos` must be positive or zero. If `units` is zero,
+ * `nanos` can be positive, zero, or negative. If `units` is negative, `nanos`
+ * must be negative or zero. For example $-1.75 is represented as `units`=-1 and
+ * `nanos`=-750,000,000.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @return Google_Service_Partners_ListCompaniesResponse
+ */
+ public function listCompanies($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Partners_ListCompaniesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/CompaniesLeads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/CompaniesLeads.php
new file mode 100644
index 00000000..50a36c22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/CompaniesLeads.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "leads" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $leads = $partnersService->leads;
+ * </code>
+ */
+class Google_Service_Partners_Resource_CompaniesLeads extends Google_Service_Resource
+{
+ /**
+ * Creates an advertiser lead for the given company ID. (leads.create)
+ *
+ * @param string $companyId The ID of the company to contact.
+ * @param Google_Service_Partners_CreateLeadRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Partners_CreateLeadResponse
+ */
+ public function create($companyId, Google_Service_Partners_CreateLeadRequest $postBody, $optParams = array())
+ {
+ $params = array('companyId' => $companyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Partners_CreateLeadResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Exams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Exams.php
new file mode 100644
index 00000000..13536183
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Exams.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "exams" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $exams = $partnersService->exams;
+ * </code>
+ */
+class Google_Service_Partners_Resource_Exams extends Google_Service_Resource
+{
+ /**
+ * Gets an Exam Token for a Partner's user to take an exam in the Exams System
+ * (exams.getToken)
+ *
+ * @param string $examType The exam type we are requesting a token for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @return Google_Service_Partners_ExamToken
+ */
+ public function getToken($examType, $optParams = array())
+ {
+ $params = array('examType' => $examType);
+ $params = array_merge($params, $optParams);
+ return $this->call('getToken', array($params), "Google_Service_Partners_ExamToken");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php
new file mode 100644
index 00000000..1ad2cf6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Leads.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "leads" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $leads = $partnersService->leads;
+ * </code>
+ */
+class Google_Service_Partners_Resource_Leads extends Google_Service_Resource
+{
+ /**
+ * Lists advertiser leads for a user's associated company. Should only be called
+ * within the context of an authorized logged in user. (leads.listLeads)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken A token identifying a page of results that the
+ * server returns. Typically, this is the value of
+ * `ListLeadsResponse.next_page_token` returned from the previous call to
+ * ListLeads.
+ * @opt_param int pageSize Requested page size. Server may return fewer leads
+ * than requested. If unspecified, server picks an appropriate default.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string orderBy How to order Leads. Currently, only `create_time`
+ * and `create_time desc` are supported
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @return Google_Service_Partners_ListLeadsResponse
+ */
+ public function listLeads($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Partners_ListLeadsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Offers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Offers.php
new file mode 100644
index 00000000..cc2622c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Offers.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "offers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $offers = $partnersService->offers;
+ * </code>
+ */
+class Google_Service_Partners_Resource_Offers extends Google_Service_Resource
+{
+ /**
+ * Lists the Offers available for the current user (offers.listOffers)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @return Google_Service_Partners_ListOffersResponse
+ */
+ public function listOffers($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Partners_ListOffersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php
new file mode 100644
index 00000000..5cd7a8f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/OffersHistory.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "history" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $history = $partnersService->history;
+ * </code>
+ */
+class Google_Service_Partners_Resource_OffersHistory extends Google_Service_Resource
+{
+ /**
+ * Lists the Historical Offers for the current user (or user's entire company)
+ * (history.listOffersHistory)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Token to retrieve a specific page.
+ * @opt_param int pageSize Maximum number of rows to return per page.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param bool entireCompany if true, show history for the entire company.
+ * Requires user to be admin.
+ * @opt_param string orderBy Comma-separated list of fields to order by, e.g.:
+ * "foo,bar,baz". Use "foo desc" to sort descending. List of valid field names
+ * is: name, offer_code, expiration_time, status, last_modified_time,
+ * sender_name, creation_time, country_code, offer_type.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @return Google_Service_Partners_ListOffersHistoryResponse
+ */
+ public function listOffersHistory($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Partners_ListOffersHistoryResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserEvents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserEvents.php
new file mode 100644
index 00000000..552082ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserEvents.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userEvents" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $userEvents = $partnersService->userEvents;
+ * </code>
+ */
+class Google_Service_Partners_Resource_UserEvents extends Google_Service_Resource
+{
+ /**
+ * Logs a user event. (userEvents.log)
+ *
+ * @param Google_Service_Partners_LogUserEventRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Partners_LogUserEventResponse
+ */
+ public function log(Google_Service_Partners_LogUserEventRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('log', array($params), "Google_Service_Partners_LogUserEventResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php
new file mode 100644
index 00000000..6b1c2cf0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/UserStates.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userStates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $userStates = $partnersService->userStates;
+ * </code>
+ */
+class Google_Service_Partners_Resource_UserStates extends Google_Service_Resource
+{
+ /**
+ * Lists states for current user. (userStates.listUserStates)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @return Google_Service_Partners_ListUserStatesResponse
+ */
+ public function listUserStates($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Partners_ListUserStatesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php
new file mode 100644
index 00000000..11cd10e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/Users.php
@@ -0,0 +1,157 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $users = $partnersService->users;
+ * </code>
+ */
+class Google_Service_Partners_Resource_Users extends Google_Service_Resource
+{
+ /**
+ * Creates a user's company relation. Affiliates the user to a company.
+ * (users.createCompanyRelation)
+ *
+ * @param string $userId The ID of the user. Can be set to me to mean the
+ * currently authenticated user.
+ * @param Google_Service_Partners_CompanyRelation $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @return Google_Service_Partners_CompanyRelation
+ */
+ public function createCompanyRelation($userId, Google_Service_Partners_CompanyRelation $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createCompanyRelation', array($params), "Google_Service_Partners_CompanyRelation");
+ }
+ /**
+ * Deletes a user's company relation. Unaffiliaites the user from a company.
+ * (users.deleteCompanyRelation)
+ *
+ * @param string $userId The ID of the user. Can be set to me to mean the
+ * currently authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @return Google_Service_Partners_PartnersEmpty
+ */
+ public function deleteCompanyRelation($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteCompanyRelation', array($params), "Google_Service_Partners_PartnersEmpty");
+ }
+ /**
+ * Gets a user. (users.get)
+ *
+ * @param string $userId Identifier of the user. Can be set to me to mean the
+ * currently authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string userView Specifies what parts of the user information to
+ * return.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @return Google_Service_Partners_User
+ */
+ public function get($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Partners_User");
+ }
+ /**
+ * Updates a user's profile. A user can only update their own profile and should
+ * only be called within the context of a logged in user. (users.updateProfile)
+ *
+ * @param Google_Service_Partners_UserProfile $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @return Google_Service_Partners_UserProfile
+ */
+ public function updateProfile(Google_Service_Partners_UserProfile $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateProfile', array($params), "Google_Service_Partners_UserProfile");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php
new file mode 100644
index 00000000..27d02f80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/Resource/V2.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "v2" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $partnersService = new Google_Service_Partners(...);
+ * $v2 = $partnersService->v2;
+ * </code>
+ */
+class Google_Service_Partners_Resource_V2 extends Google_Service_Resource
+{
+ /**
+ * Gets Partners Status of the logged in user's agency. Should only be called if
+ * the logged in user is the admin of the agency. (v2.getPartnersstatus)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @return Google_Service_Partners_GetPartnersStatusResponse
+ */
+ public function getPartnersstatus($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getPartnersstatus', array($params), "Google_Service_Partners_GetPartnersStatusResponse");
+ }
+ /**
+ * Update company. Should only be called within the context of an authorized
+ * logged in user. (v2.updateCompanies)
+ *
+ * @param Google_Service_Partners_Company $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string updateMask Standard field mask for the set of fields to be
+ * updated. Required with at least 1 value in FieldMask's paths.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @return Google_Service_Partners_Company
+ */
+ public function updateCompanies(Google_Service_Partners_Company $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateCompanies', array($params), "Google_Service_Partners_Company");
+ }
+ /**
+ * Updates the specified lead. (v2.updateLeads)
+ *
+ * @param Google_Service_Partners_Lead $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMetadata.trafficSource.trafficSourceId Identifier to
+ * indicate where the traffic comes from. An identifier has multiple letters
+ * created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.locale Locale to use for the current
+ * request.
+ * @opt_param string requestMetadata.userOverrides.ipAddress IP address to use
+ * instead of the user's geo-located IP address.
+ * @opt_param string updateMask Standard field mask for the set of fields to be
+ * updated. Required with at least 1 value in FieldMask's paths. Only `state`
+ * and `adwords_customer_id` are currently supported.
+ * @opt_param string requestMetadata.experimentIds Experiment IDs the current
+ * request belongs to.
+ * @opt_param string requestMetadata.trafficSource.trafficSubId Second level
+ * identifier to indicate where the traffic comes from. An identifier has
+ * multiple letters created by a team which redirected the traffic to us.
+ * @opt_param string requestMetadata.partnersSessionId Google Partners session
+ * ID.
+ * @opt_param string requestMetadata.userOverrides.userId Logged-in user ID to
+ * impersonate instead of the user's ID.
+ * @return Google_Service_Partners_Lead
+ */
+ public function updateLeads(Google_Service_Partners_Lead $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateLeads', array($params), "Google_Service_Partners_Lead");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ResponseMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ResponseMetadata.php
new file mode 100644
index 00000000..bc4f72e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/ResponseMetadata.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_ResponseMetadata extends Google_Model
+{
+ protected $debugInfoType = 'Google_Service_Partners_DebugInfo';
+ protected $debugInfoDataType = '';
+
+ public function setDebugInfo(Google_Service_Partners_DebugInfo $debugInfo)
+ {
+ $this->debugInfo = $debugInfo;
+ }
+ public function getDebugInfo()
+ {
+ return $this->debugInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/SpecializationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/SpecializationStatus.php
new file mode 100644
index 00000000..234b1ef6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/SpecializationStatus.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_SpecializationStatus extends Google_Model
+{
+ public $badgeSpecialization;
+ public $badgeSpecializationState;
+
+ public function setBadgeSpecialization($badgeSpecialization)
+ {
+ $this->badgeSpecialization = $badgeSpecialization;
+ }
+ public function getBadgeSpecialization()
+ {
+ return $this->badgeSpecialization;
+ }
+ public function setBadgeSpecializationState($badgeSpecializationState)
+ {
+ $this->badgeSpecializationState = $badgeSpecializationState;
+ }
+ public function getBadgeSpecializationState()
+ {
+ return $this->badgeSpecializationState;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/TrafficSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/TrafficSource.php
new file mode 100644
index 00000000..14e34a59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/TrafficSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_TrafficSource extends Google_Model
+{
+ public $trafficSourceId;
+ public $trafficSubId;
+
+ public function setTrafficSourceId($trafficSourceId)
+ {
+ $this->trafficSourceId = $trafficSourceId;
+ }
+ public function getTrafficSourceId()
+ {
+ return $this->trafficSourceId;
+ }
+ public function setTrafficSubId($trafficSubId)
+ {
+ $this->trafficSubId = $trafficSubId;
+ }
+ public function getTrafficSubId()
+ {
+ return $this->trafficSubId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/User.php
new file mode 100644
index 00000000..83dabff5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/User.php
@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_User extends Google_Collection
+{
+ protected $collection_key = 'primaryEmails';
+ protected $availableAdwordsManagerAccountsType = 'Google_Service_Partners_AdWordsManagerAccountInfo';
+ protected $availableAdwordsManagerAccountsDataType = 'array';
+ protected $certificationStatusType = 'Google_Service_Partners_Certification';
+ protected $certificationStatusDataType = 'array';
+ protected $companyType = 'Google_Service_Partners_CompanyRelation';
+ protected $companyDataType = '';
+ public $companyVerificationEmail;
+ protected $examStatusType = 'Google_Service_Partners_ExamStatus';
+ protected $examStatusDataType = 'array';
+ public $id;
+ public $lastAccessTime;
+ public $primaryEmails;
+ protected $profileType = 'Google_Service_Partners_UserProfile';
+ protected $profileDataType = '';
+ protected $publicProfileType = 'Google_Service_Partners_PublicProfile';
+ protected $publicProfileDataType = '';
+
+ public function setAvailableAdwordsManagerAccounts($availableAdwordsManagerAccounts)
+ {
+ $this->availableAdwordsManagerAccounts = $availableAdwordsManagerAccounts;
+ }
+ public function getAvailableAdwordsManagerAccounts()
+ {
+ return $this->availableAdwordsManagerAccounts;
+ }
+ public function setCertificationStatus($certificationStatus)
+ {
+ $this->certificationStatus = $certificationStatus;
+ }
+ public function getCertificationStatus()
+ {
+ return $this->certificationStatus;
+ }
+ public function setCompany(Google_Service_Partners_CompanyRelation $company)
+ {
+ $this->company = $company;
+ }
+ public function getCompany()
+ {
+ return $this->company;
+ }
+ public function setCompanyVerificationEmail($companyVerificationEmail)
+ {
+ $this->companyVerificationEmail = $companyVerificationEmail;
+ }
+ public function getCompanyVerificationEmail()
+ {
+ return $this->companyVerificationEmail;
+ }
+ public function setExamStatus($examStatus)
+ {
+ $this->examStatus = $examStatus;
+ }
+ public function getExamStatus()
+ {
+ return $this->examStatus;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLastAccessTime($lastAccessTime)
+ {
+ $this->lastAccessTime = $lastAccessTime;
+ }
+ public function getLastAccessTime()
+ {
+ return $this->lastAccessTime;
+ }
+ public function setPrimaryEmails($primaryEmails)
+ {
+ $this->primaryEmails = $primaryEmails;
+ }
+ public function getPrimaryEmails()
+ {
+ return $this->primaryEmails;
+ }
+ public function setProfile(Google_Service_Partners_UserProfile $profile)
+ {
+ $this->profile = $profile;
+ }
+ public function getProfile()
+ {
+ return $this->profile;
+ }
+ public function setPublicProfile(Google_Service_Partners_PublicProfile $publicProfile)
+ {
+ $this->publicProfile = $publicProfile;
+ }
+ public function getPublicProfile()
+ {
+ return $this->publicProfile;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserOverrides.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserOverrides.php
new file mode 100644
index 00000000..12c9e9e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserOverrides.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_UserOverrides extends Google_Model
+{
+ public $ipAddress;
+ public $userId;
+
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserProfile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserProfile.php
new file mode 100644
index 00000000..bd23cb25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Partners/UserProfile.php
@@ -0,0 +1,150 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Partners_UserProfile extends Google_Collection
+{
+ protected $collection_key = 'markets';
+ protected $addressType = 'Google_Service_Partners_Location';
+ protected $addressDataType = '';
+ public $adwordsManagerAccount;
+ public $channels;
+ public $emailAddress;
+ protected $emailOptInsType = 'Google_Service_Partners_OptIns';
+ protected $emailOptInsDataType = '';
+ public $familyName;
+ public $givenName;
+ public $industries;
+ public $jobFunctions;
+ public $languages;
+ public $markets;
+ public $phoneNumber;
+ public $primaryCountryCode;
+ public $profilePublic;
+
+ public function setAddress(Google_Service_Partners_Location $address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setAdwordsManagerAccount($adwordsManagerAccount)
+ {
+ $this->adwordsManagerAccount = $adwordsManagerAccount;
+ }
+ public function getAdwordsManagerAccount()
+ {
+ return $this->adwordsManagerAccount;
+ }
+ public function setChannels($channels)
+ {
+ $this->channels = $channels;
+ }
+ public function getChannels()
+ {
+ return $this->channels;
+ }
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setEmailOptIns(Google_Service_Partners_OptIns $emailOptIns)
+ {
+ $this->emailOptIns = $emailOptIns;
+ }
+ public function getEmailOptIns()
+ {
+ return $this->emailOptIns;
+ }
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+ public function setIndustries($industries)
+ {
+ $this->industries = $industries;
+ }
+ public function getIndustries()
+ {
+ return $this->industries;
+ }
+ public function setJobFunctions($jobFunctions)
+ {
+ $this->jobFunctions = $jobFunctions;
+ }
+ public function getJobFunctions()
+ {
+ return $this->jobFunctions;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+ public function setMarkets($markets)
+ {
+ $this->markets = $markets;
+ }
+ public function getMarkets()
+ {
+ return $this->markets;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+ public function setPrimaryCountryCode($primaryCountryCode)
+ {
+ $this->primaryCountryCode = $primaryCountryCode;
+ }
+ public function getPrimaryCountryCode()
+ {
+ return $this->primaryCountryCode;
+ }
+ public function setProfilePublic($profilePublic)
+ {
+ $this->profilePublic = $profilePublic;
+ }
+ public function getProfilePublic()
+ {
+ return $this->profilePublic;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People.php
new file mode 100644
index 00000000..30c0f795
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People.php
@@ -0,0 +1,160 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for People (v1).
+ *
+ * <p>
+ * Provides access to information about profiles and contacts.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/people/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_People extends Google_Service
+{
+ /** Manage your contacts. */
+ const CONTACTS =
+ "https://www.googleapis.com/auth/contacts";
+ /** View your contacts. */
+ const CONTACTS_READONLY =
+ "https://www.googleapis.com/auth/contacts.readonly";
+ /** Know the list of people in your circles, your age range, and language. */
+ const PLUS_LOGIN =
+ "https://www.googleapis.com/auth/plus.login";
+ /** View your street addresses. */
+ const USER_ADDRESSES_READ =
+ "https://www.googleapis.com/auth/user.addresses.read";
+ /** View your complete date of birth. */
+ const USER_BIRTHDAY_READ =
+ "https://www.googleapis.com/auth/user.birthday.read";
+ /** View your email addresses. */
+ const USER_EMAILS_READ =
+ "https://www.googleapis.com/auth/user.emails.read";
+ /** View your phone numbers. */
+ const USER_PHONENUMBERS_READ =
+ "https://www.googleapis.com/auth/user.phonenumbers.read";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+ /** View your basic profile info. */
+ const USERINFO_PROFILE =
+ "https://www.googleapis.com/auth/userinfo.profile";
+
+ public $people;
+ public $people_connections;
+
+ /**
+ * Constructs the internal representation of the People service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://people.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'people';
+
+ $this->people = new Google_Service_People_Resource_People(
+ $this,
+ $this->serviceName,
+ 'people',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+resourceName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resourceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestMask.includeField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getBatchGet' => array(
+ 'path' => 'v1/people:batchGet',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'requestMask.includeField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'resourceNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->people_connections = new Google_Service_People_Resource_PeopleConnections(
+ $this,
+ $this->serviceName,
+ 'connections',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/{+resourceName}/connections',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resourceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestSyncToken' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'requestMask.includeField' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'syncToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Address.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Address.php
new file mode 100644
index 00000000..2c0569df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Address.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Address extends Google_Model
+{
+ public $city;
+ public $country;
+ public $countryCode;
+ public $extendedAddress;
+ public $formattedType;
+ public $formattedValue;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $poBox;
+ public $postalCode;
+ public $region;
+ public $streetAddress;
+ public $type;
+
+ public function setCity($city)
+ {
+ $this->city = $city;
+ }
+ public function getCity()
+ {
+ return $this->city;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setExtendedAddress($extendedAddress)
+ {
+ $this->extendedAddress = $extendedAddress;
+ }
+ public function getExtendedAddress()
+ {
+ return $this->extendedAddress;
+ }
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setFormattedValue($formattedValue)
+ {
+ $this->formattedValue = $formattedValue;
+ }
+ public function getFormattedValue()
+ {
+ return $this->formattedValue;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setPoBox($poBox)
+ {
+ $this->poBox = $poBox;
+ }
+ public function getPoBox()
+ {
+ return $this->poBox;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setStreetAddress($streetAddress)
+ {
+ $this->streetAddress = $streetAddress;
+ }
+ public function getStreetAddress()
+ {
+ return $this->streetAddress;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/AgeRangeType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/AgeRangeType.php
new file mode 100644
index 00000000..96ed2b8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/AgeRangeType.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_AgeRangeType extends Google_Model
+{
+ public $ageRange;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+
+ public function setAgeRange($ageRange)
+ {
+ $this->ageRange = $ageRange;
+ }
+ public function getAgeRange()
+ {
+ return $this->ageRange;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Biography.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Biography.php
new file mode 100644
index 00000000..5b1676a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Biography.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Biography extends Google_Model
+{
+ public $contentType;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Birthday.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Birthday.php
new file mode 100644
index 00000000..f00a7b1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Birthday.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Birthday extends Google_Model
+{
+ protected $dateType = 'Google_Service_People_Date';
+ protected $dateDataType = '';
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $text;
+
+ public function setDate(Google_Service_People_Date $date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/BraggingRights.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/BraggingRights.php
new file mode 100644
index 00000000..45f4668f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/BraggingRights.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_BraggingRights extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ContactGroupMembership.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ContactGroupMembership.php
new file mode 100644
index 00000000..79e27575
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ContactGroupMembership.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_ContactGroupMembership extends Google_Model
+{
+ public $contactGroupId;
+
+ public function setContactGroupId($contactGroupId)
+ {
+ $this->contactGroupId = $contactGroupId;
+ }
+ public function getContactGroupId()
+ {
+ return $this->contactGroupId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/CoverPhoto.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/CoverPhoto.php
new file mode 100644
index 00000000..b48da3ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/CoverPhoto.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_CoverPhoto extends Google_Model
+{
+ public $default;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $url;
+
+ public function setDefault($default)
+ {
+ $this->default = $default;
+ }
+ public function getDefault()
+ {
+ return $this->default;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Date.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Date.php
new file mode 100644
index 00000000..247bdf02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Date.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Date extends Google_Model
+{
+ public $day;
+ public $month;
+ public $year;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth($month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+ public function setYear($year)
+ {
+ $this->year = $year;
+ }
+ public function getYear()
+ {
+ return $this->year;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/DomainMembership.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/DomainMembership.php
new file mode 100644
index 00000000..8956e35e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/DomainMembership.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_DomainMembership extends Google_Model
+{
+ public $inViewerDomain;
+
+ public function setInViewerDomain($inViewerDomain)
+ {
+ $this->inViewerDomain = $inViewerDomain;
+ }
+ public function getInViewerDomain()
+ {
+ return $this->inViewerDomain;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/EmailAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/EmailAddress.php
new file mode 100644
index 00000000..ea3bbe40
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/EmailAddress.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_EmailAddress extends Google_Model
+{
+ public $displayName;
+ public $formattedType;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $type;
+ public $value;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Event.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Event.php
new file mode 100644
index 00000000..2b6311bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Event.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Event extends Google_Model
+{
+ protected $dateType = 'Google_Service_People_Date';
+ protected $dateDataType = '';
+ public $formattedType;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $type;
+
+ public function setDate(Google_Service_People_Date $date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/FieldMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/FieldMetadata.php
new file mode 100644
index 00000000..752c9f12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/FieldMetadata.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_FieldMetadata extends Google_Model
+{
+ public $primary;
+ protected $sourceType = 'Google_Service_People_Source';
+ protected $sourceDataType = '';
+ public $verified;
+
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setSource(Google_Service_People_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setVerified($verified)
+ {
+ $this->verified = $verified;
+ }
+ public function getVerified()
+ {
+ return $this->verified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Gender.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Gender.php
new file mode 100644
index 00000000..6dc82630
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Gender.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Gender extends Google_Model
+{
+ public $formattedValue;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setFormattedValue($formattedValue)
+ {
+ $this->formattedValue = $formattedValue;
+ }
+ public function getFormattedValue()
+ {
+ return $this->formattedValue;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/GetPeopleResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/GetPeopleResponse.php
new file mode 100644
index 00000000..9c6a16fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/GetPeopleResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_GetPeopleResponse extends Google_Collection
+{
+ protected $collection_key = 'responses';
+ protected $responsesType = 'Google_Service_People_PersonResponse';
+ protected $responsesDataType = 'array';
+
+ public function setResponses($responses)
+ {
+ $this->responses = $responses;
+ }
+ public function getResponses()
+ {
+ return $this->responses;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ImClient.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ImClient.php
new file mode 100644
index 00000000..cad9a438
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ImClient.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_ImClient extends Google_Model
+{
+ public $formattedProtocol;
+ public $formattedType;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $protocol;
+ public $type;
+ public $username;
+
+ public function setFormattedProtocol($formattedProtocol)
+ {
+ $this->formattedProtocol = $formattedProtocol;
+ }
+ public function getFormattedProtocol()
+ {
+ return $this->formattedProtocol;
+ }
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setProtocol($protocol)
+ {
+ $this->protocol = $protocol;
+ }
+ public function getProtocol()
+ {
+ return $this->protocol;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Interest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Interest.php
new file mode 100644
index 00000000..2cfa15f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Interest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Interest extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ListConnectionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ListConnectionsResponse.php
new file mode 100644
index 00000000..c94f140b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ListConnectionsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_ListConnectionsResponse extends Google_Collection
+{
+ protected $collection_key = 'connections';
+ protected $connectionsType = 'Google_Service_People_Person';
+ protected $connectionsDataType = 'array';
+ public $nextPageToken;
+ public $nextSyncToken;
+
+ public function setConnections($connections)
+ {
+ $this->connections = $connections;
+ }
+ public function getConnections()
+ {
+ return $this->connections;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setNextSyncToken($nextSyncToken)
+ {
+ $this->nextSyncToken = $nextSyncToken;
+ }
+ public function getNextSyncToken()
+ {
+ return $this->nextSyncToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Locale.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Locale.php
new file mode 100644
index 00000000..ace1c251
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Locale.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Locale extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Membership.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Membership.php
new file mode 100644
index 00000000..dcba8d52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Membership.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Membership extends Google_Model
+{
+ protected $contactGroupMembershipType = 'Google_Service_People_ContactGroupMembership';
+ protected $contactGroupMembershipDataType = '';
+ protected $domainMembershipType = 'Google_Service_People_DomainMembership';
+ protected $domainMembershipDataType = '';
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+
+ public function setContactGroupMembership(Google_Service_People_ContactGroupMembership $contactGroupMembership)
+ {
+ $this->contactGroupMembership = $contactGroupMembership;
+ }
+ public function getContactGroupMembership()
+ {
+ return $this->contactGroupMembership;
+ }
+ public function setDomainMembership(Google_Service_People_DomainMembership $domainMembership)
+ {
+ $this->domainMembership = $domainMembership;
+ }
+ public function getDomainMembership()
+ {
+ return $this->domainMembership;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Name.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Name.php
new file mode 100644
index 00000000..76f2f80a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Name.php
@@ -0,0 +1,148 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Name extends Google_Model
+{
+ public $displayName;
+ public $displayNameLastFirst;
+ public $familyName;
+ public $givenName;
+ public $honorificPrefix;
+ public $honorificSuffix;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $middleName;
+ public $phoneticFamilyName;
+ public $phoneticFullName;
+ public $phoneticGivenName;
+ public $phoneticHonorificPrefix;
+ public $phoneticHonorificSuffix;
+ public $phoneticMiddleName;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setDisplayNameLastFirst($displayNameLastFirst)
+ {
+ $this->displayNameLastFirst = $displayNameLastFirst;
+ }
+ public function getDisplayNameLastFirst()
+ {
+ return $this->displayNameLastFirst;
+ }
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+ public function setHonorificPrefix($honorificPrefix)
+ {
+ $this->honorificPrefix = $honorificPrefix;
+ }
+ public function getHonorificPrefix()
+ {
+ return $this->honorificPrefix;
+ }
+ public function setHonorificSuffix($honorificSuffix)
+ {
+ $this->honorificSuffix = $honorificSuffix;
+ }
+ public function getHonorificSuffix()
+ {
+ return $this->honorificSuffix;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setMiddleName($middleName)
+ {
+ $this->middleName = $middleName;
+ }
+ public function getMiddleName()
+ {
+ return $this->middleName;
+ }
+ public function setPhoneticFamilyName($phoneticFamilyName)
+ {
+ $this->phoneticFamilyName = $phoneticFamilyName;
+ }
+ public function getPhoneticFamilyName()
+ {
+ return $this->phoneticFamilyName;
+ }
+ public function setPhoneticFullName($phoneticFullName)
+ {
+ $this->phoneticFullName = $phoneticFullName;
+ }
+ public function getPhoneticFullName()
+ {
+ return $this->phoneticFullName;
+ }
+ public function setPhoneticGivenName($phoneticGivenName)
+ {
+ $this->phoneticGivenName = $phoneticGivenName;
+ }
+ public function getPhoneticGivenName()
+ {
+ return $this->phoneticGivenName;
+ }
+ public function setPhoneticHonorificPrefix($phoneticHonorificPrefix)
+ {
+ $this->phoneticHonorificPrefix = $phoneticHonorificPrefix;
+ }
+ public function getPhoneticHonorificPrefix()
+ {
+ return $this->phoneticHonorificPrefix;
+ }
+ public function setPhoneticHonorificSuffix($phoneticHonorificSuffix)
+ {
+ $this->phoneticHonorificSuffix = $phoneticHonorificSuffix;
+ }
+ public function getPhoneticHonorificSuffix()
+ {
+ return $this->phoneticHonorificSuffix;
+ }
+ public function setPhoneticMiddleName($phoneticMiddleName)
+ {
+ $this->phoneticMiddleName = $phoneticMiddleName;
+ }
+ public function getPhoneticMiddleName()
+ {
+ return $this->phoneticMiddleName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Nickname.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Nickname.php
new file mode 100644
index 00000000..dd152314
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Nickname.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Nickname extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $type;
+ public $value;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Occupation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Occupation.php
new file mode 100644
index 00000000..0bb869ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Occupation.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Occupation extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Organization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Organization.php
new file mode 100644
index 00000000..aa507534
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Organization.php
@@ -0,0 +1,150 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Organization extends Google_Model
+{
+ public $current;
+ public $department;
+ public $domain;
+ protected $endDateType = 'Google_Service_People_Date';
+ protected $endDateDataType = '';
+ public $formattedType;
+ public $jobDescription;
+ public $location;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $name;
+ public $phoneticName;
+ protected $startDateType = 'Google_Service_People_Date';
+ protected $startDateDataType = '';
+ public $symbol;
+ public $title;
+ public $type;
+
+ public function setCurrent($current)
+ {
+ $this->current = $current;
+ }
+ public function getCurrent()
+ {
+ return $this->current;
+ }
+ public function setDepartment($department)
+ {
+ $this->department = $department;
+ }
+ public function getDepartment()
+ {
+ return $this->department;
+ }
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setEndDate(Google_Service_People_Date $endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setJobDescription($jobDescription)
+ {
+ $this->jobDescription = $jobDescription;
+ }
+ public function getJobDescription()
+ {
+ return $this->jobDescription;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPhoneticName($phoneticName)
+ {
+ $this->phoneticName = $phoneticName;
+ }
+ public function getPhoneticName()
+ {
+ return $this->phoneticName;
+ }
+ public function setStartDate(Google_Service_People_Date $startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setSymbol($symbol)
+ {
+ $this->symbol = $symbol;
+ }
+ public function getSymbol()
+ {
+ return $this->symbol;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Person.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Person.php
new file mode 100644
index 00000000..206e5280
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Person.php
@@ -0,0 +1,319 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Person extends Google_Collection
+{
+ protected $collection_key = 'urls';
+ protected $addressesType = 'Google_Service_People_Address';
+ protected $addressesDataType = 'array';
+ public $ageRange;
+ protected $ageRangesType = 'Google_Service_People_AgeRangeType';
+ protected $ageRangesDataType = 'array';
+ protected $biographiesType = 'Google_Service_People_Biography';
+ protected $biographiesDataType = 'array';
+ protected $birthdaysType = 'Google_Service_People_Birthday';
+ protected $birthdaysDataType = 'array';
+ protected $braggingRightsType = 'Google_Service_People_BraggingRights';
+ protected $braggingRightsDataType = 'array';
+ protected $coverPhotosType = 'Google_Service_People_CoverPhoto';
+ protected $coverPhotosDataType = 'array';
+ protected $emailAddressesType = 'Google_Service_People_EmailAddress';
+ protected $emailAddressesDataType = 'array';
+ public $etag;
+ protected $eventsType = 'Google_Service_People_Event';
+ protected $eventsDataType = 'array';
+ protected $gendersType = 'Google_Service_People_Gender';
+ protected $gendersDataType = 'array';
+ protected $imClientsType = 'Google_Service_People_ImClient';
+ protected $imClientsDataType = 'array';
+ protected $interestsType = 'Google_Service_People_Interest';
+ protected $interestsDataType = 'array';
+ protected $localesType = 'Google_Service_People_Locale';
+ protected $localesDataType = 'array';
+ protected $membershipsType = 'Google_Service_People_Membership';
+ protected $membershipsDataType = 'array';
+ protected $metadataType = 'Google_Service_People_PersonMetadata';
+ protected $metadataDataType = '';
+ protected $namesType = 'Google_Service_People_Name';
+ protected $namesDataType = 'array';
+ protected $nicknamesType = 'Google_Service_People_Nickname';
+ protected $nicknamesDataType = 'array';
+ protected $occupationsType = 'Google_Service_People_Occupation';
+ protected $occupationsDataType = 'array';
+ protected $organizationsType = 'Google_Service_People_Organization';
+ protected $organizationsDataType = 'array';
+ protected $phoneNumbersType = 'Google_Service_People_PhoneNumber';
+ protected $phoneNumbersDataType = 'array';
+ protected $photosType = 'Google_Service_People_Photo';
+ protected $photosDataType = 'array';
+ protected $relationsType = 'Google_Service_People_Relation';
+ protected $relationsDataType = 'array';
+ protected $relationshipInterestsType = 'Google_Service_People_RelationshipInterest';
+ protected $relationshipInterestsDataType = 'array';
+ protected $relationshipStatusesType = 'Google_Service_People_RelationshipStatus';
+ protected $relationshipStatusesDataType = 'array';
+ protected $residencesType = 'Google_Service_People_Residence';
+ protected $residencesDataType = 'array';
+ public $resourceName;
+ protected $skillsType = 'Google_Service_People_Skill';
+ protected $skillsDataType = 'array';
+ protected $taglinesType = 'Google_Service_People_Tagline';
+ protected $taglinesDataType = 'array';
+ protected $urlsType = 'Google_Service_People_Url';
+ protected $urlsDataType = 'array';
+
+ public function setAddresses($addresses)
+ {
+ $this->addresses = $addresses;
+ }
+ public function getAddresses()
+ {
+ return $this->addresses;
+ }
+ public function setAgeRange($ageRange)
+ {
+ $this->ageRange = $ageRange;
+ }
+ public function getAgeRange()
+ {
+ return $this->ageRange;
+ }
+ public function setAgeRanges($ageRanges)
+ {
+ $this->ageRanges = $ageRanges;
+ }
+ public function getAgeRanges()
+ {
+ return $this->ageRanges;
+ }
+ public function setBiographies($biographies)
+ {
+ $this->biographies = $biographies;
+ }
+ public function getBiographies()
+ {
+ return $this->biographies;
+ }
+ public function setBirthdays($birthdays)
+ {
+ $this->birthdays = $birthdays;
+ }
+ public function getBirthdays()
+ {
+ return $this->birthdays;
+ }
+ public function setBraggingRights($braggingRights)
+ {
+ $this->braggingRights = $braggingRights;
+ }
+ public function getBraggingRights()
+ {
+ return $this->braggingRights;
+ }
+ public function setCoverPhotos($coverPhotos)
+ {
+ $this->coverPhotos = $coverPhotos;
+ }
+ public function getCoverPhotos()
+ {
+ return $this->coverPhotos;
+ }
+ public function setEmailAddresses($emailAddresses)
+ {
+ $this->emailAddresses = $emailAddresses;
+ }
+ public function getEmailAddresses()
+ {
+ return $this->emailAddresses;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEvents($events)
+ {
+ $this->events = $events;
+ }
+ public function getEvents()
+ {
+ return $this->events;
+ }
+ public function setGenders($genders)
+ {
+ $this->genders = $genders;
+ }
+ public function getGenders()
+ {
+ return $this->genders;
+ }
+ public function setImClients($imClients)
+ {
+ $this->imClients = $imClients;
+ }
+ public function getImClients()
+ {
+ return $this->imClients;
+ }
+ public function setInterests($interests)
+ {
+ $this->interests = $interests;
+ }
+ public function getInterests()
+ {
+ return $this->interests;
+ }
+ public function setLocales($locales)
+ {
+ $this->locales = $locales;
+ }
+ public function getLocales()
+ {
+ return $this->locales;
+ }
+ public function setMemberships($memberships)
+ {
+ $this->memberships = $memberships;
+ }
+ public function getMemberships()
+ {
+ return $this->memberships;
+ }
+ public function setMetadata(Google_Service_People_PersonMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setNames($names)
+ {
+ $this->names = $names;
+ }
+ public function getNames()
+ {
+ return $this->names;
+ }
+ public function setNicknames($nicknames)
+ {
+ $this->nicknames = $nicknames;
+ }
+ public function getNicknames()
+ {
+ return $this->nicknames;
+ }
+ public function setOccupations($occupations)
+ {
+ $this->occupations = $occupations;
+ }
+ public function getOccupations()
+ {
+ return $this->occupations;
+ }
+ public function setOrganizations($organizations)
+ {
+ $this->organizations = $organizations;
+ }
+ public function getOrganizations()
+ {
+ return $this->organizations;
+ }
+ public function setPhoneNumbers($phoneNumbers)
+ {
+ $this->phoneNumbers = $phoneNumbers;
+ }
+ public function getPhoneNumbers()
+ {
+ return $this->phoneNumbers;
+ }
+ public function setPhotos($photos)
+ {
+ $this->photos = $photos;
+ }
+ public function getPhotos()
+ {
+ return $this->photos;
+ }
+ public function setRelations($relations)
+ {
+ $this->relations = $relations;
+ }
+ public function getRelations()
+ {
+ return $this->relations;
+ }
+ public function setRelationshipInterests($relationshipInterests)
+ {
+ $this->relationshipInterests = $relationshipInterests;
+ }
+ public function getRelationshipInterests()
+ {
+ return $this->relationshipInterests;
+ }
+ public function setRelationshipStatuses($relationshipStatuses)
+ {
+ $this->relationshipStatuses = $relationshipStatuses;
+ }
+ public function getRelationshipStatuses()
+ {
+ return $this->relationshipStatuses;
+ }
+ public function setResidences($residences)
+ {
+ $this->residences = $residences;
+ }
+ public function getResidences()
+ {
+ return $this->residences;
+ }
+ public function setResourceName($resourceName)
+ {
+ $this->resourceName = $resourceName;
+ }
+ public function getResourceName()
+ {
+ return $this->resourceName;
+ }
+ public function setSkills($skills)
+ {
+ $this->skills = $skills;
+ }
+ public function getSkills()
+ {
+ return $this->skills;
+ }
+ public function setTaglines($taglines)
+ {
+ $this->taglines = $taglines;
+ }
+ public function getTaglines()
+ {
+ return $this->taglines;
+ }
+ public function setUrls($urls)
+ {
+ $this->urls = $urls;
+ }
+ public function getUrls()
+ {
+ return $this->urls;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonMetadata.php
new file mode 100644
index 00000000..013d40bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonMetadata.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_PersonMetadata extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ public $deleted;
+ public $linkedPeopleResourceNames;
+ public $objectType;
+ public $previousResourceNames;
+ protected $sourcesType = 'Google_Service_People_Source';
+ protected $sourcesDataType = 'array';
+
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setLinkedPeopleResourceNames($linkedPeopleResourceNames)
+ {
+ $this->linkedPeopleResourceNames = $linkedPeopleResourceNames;
+ }
+ public function getLinkedPeopleResourceNames()
+ {
+ return $this->linkedPeopleResourceNames;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setPreviousResourceNames($previousResourceNames)
+ {
+ $this->previousResourceNames = $previousResourceNames;
+ }
+ public function getPreviousResourceNames()
+ {
+ return $this->previousResourceNames;
+ }
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonResponse.php
new file mode 100644
index 00000000..98f6bb54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PersonResponse.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_PersonResponse extends Google_Model
+{
+ public $httpStatusCode;
+ protected $personType = 'Google_Service_People_Person';
+ protected $personDataType = '';
+ public $requestedResourceName;
+
+ public function setHttpStatusCode($httpStatusCode)
+ {
+ $this->httpStatusCode = $httpStatusCode;
+ }
+ public function getHttpStatusCode()
+ {
+ return $this->httpStatusCode;
+ }
+ public function setPerson(Google_Service_People_Person $person)
+ {
+ $this->person = $person;
+ }
+ public function getPerson()
+ {
+ return $this->person;
+ }
+ public function setRequestedResourceName($requestedResourceName)
+ {
+ $this->requestedResourceName = $requestedResourceName;
+ }
+ public function getRequestedResourceName()
+ {
+ return $this->requestedResourceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PhoneNumber.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PhoneNumber.php
new file mode 100644
index 00000000..c71b0541
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/PhoneNumber.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_PhoneNumber extends Google_Model
+{
+ public $canonicalForm;
+ public $formattedType;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $type;
+ public $value;
+
+ public function setCanonicalForm($canonicalForm)
+ {
+ $this->canonicalForm = $canonicalForm;
+ }
+ public function getCanonicalForm()
+ {
+ return $this->canonicalForm;
+ }
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Photo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Photo.php
new file mode 100644
index 00000000..749ab890
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Photo.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Photo extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $url;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ProfileMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ProfileMetadata.php
new file mode 100644
index 00000000..9421febf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/ProfileMetadata.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_ProfileMetadata extends Google_Model
+{
+ public $objectType;
+
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Relation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Relation.php
new file mode 100644
index 00000000..406ec117
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Relation.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Relation extends Google_Model
+{
+ public $formattedType;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $person;
+ public $type;
+
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setPerson($person)
+ {
+ $this->person = $person;
+ }
+ public function getPerson()
+ {
+ return $this->person;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipInterest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipInterest.php
new file mode 100644
index 00000000..c8f2551b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipInterest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_RelationshipInterest extends Google_Model
+{
+ public $formattedValue;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setFormattedValue($formattedValue)
+ {
+ $this->formattedValue = $formattedValue;
+ }
+ public function getFormattedValue()
+ {
+ return $this->formattedValue;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipStatus.php
new file mode 100644
index 00000000..bb81e569
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/RelationshipStatus.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_RelationshipStatus extends Google_Model
+{
+ public $formattedValue;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setFormattedValue($formattedValue)
+ {
+ $this->formattedValue = $formattedValue;
+ }
+ public function getFormattedValue()
+ {
+ return $this->formattedValue;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Residence.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Residence.php
new file mode 100644
index 00000000..8a056f7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Residence.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Residence extends Google_Model
+{
+ public $current;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setCurrent($current)
+ {
+ $this->current = $current;
+ }
+ public function getCurrent()
+ {
+ return $this->current;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/People.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/People.php
new file mode 100644
index 00000000..201b8ec6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/People.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "people" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $peopleService = new Google_Service_People(...);
+ * $people = $peopleService->people;
+ * </code>
+ */
+class Google_Service_People_Resource_People extends Google_Service_Resource
+{
+ /**
+ * Provides information about a person resource for a resource name. Use
+ * `people/me` to indicate the authenticated user. (people.get)
+ *
+ * @param string $resourceName The resource name of the person to provide
+ * information about.
+ *
+ * - To get information about the authenticated user, specify `people/me`. - To
+ * get information about any user, specify the resource name that identifies
+ * the user, such as the resource names returned by
+ * [`people.connections.list`](/people/api/rest/v1/people.connections/list).
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMask.includeField Comma-separated list of fields to
+ * be included in the response. Omitting this field will include all fields
+ * except for connections.list requests, which have a default mask that includes
+ * common fields like metadata, name, photo, and profile url. Each path should
+ * start with `person.`: for example, `person.names` or `person.photos`.
+ * @return Google_Service_People_Person
+ */
+ public function get($resourceName, $optParams = array())
+ {
+ $params = array('resourceName' => $resourceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_People_Person");
+ }
+ /**
+ * Provides information about a list of specific people by specifying a list of
+ * requested resource names. Use `people/me` to indicate the authenticated user.
+ * (people.getBatchGet)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestMask.includeField Comma-separated list of fields to
+ * be included in the response. Omitting this field will include all fields
+ * except for connections.list requests, which have a default mask that includes
+ * common fields like metadata, name, photo, and profile url. Each path should
+ * start with `person.`: for example, `person.names` or `person.photos`.
+ * @opt_param string resourceNames The resource name, such as one returned by
+ * [`people.connections.list`](/people/api/rest/v1/people.connections/list), of
+ * one of the people to provide information about. You can include this
+ * parameter up to 50 times in one request.
+ * @return Google_Service_People_GetPeopleResponse
+ */
+ public function getBatchGet($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getBatchGet', array($params), "Google_Service_People_GetPeopleResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/PeopleConnections.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/PeopleConnections.php
new file mode 100644
index 00000000..447af7c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Resource/PeopleConnections.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "connections" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $peopleService = new Google_Service_People(...);
+ * $connections = $peopleService->connections;
+ * </code>
+ */
+class Google_Service_People_Resource_PeopleConnections extends Google_Service_Resource
+{
+ /**
+ * Provides a list of the authenticated user's contacts merged with any linked
+ * profiles. (connections.listPeopleConnections)
+ *
+ * @param string $resourceName The resource name to return connections for. Only
+ * `people/me` is valid.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool requestSyncToken Whether the response should include a sync
+ * token, which can be used to get all changes since the last request.
+ * @opt_param string pageToken The token of the page to be returned.
+ * @opt_param string requestMask.includeField Comma-separated list of fields to
+ * be included in the response. Omitting this field will include all fields
+ * except for connections.list requests, which have a default mask that includes
+ * common fields like metadata, name, photo, and profile url. Each path should
+ * start with `person.`: for example, `person.names` or `person.photos`.
+ * @opt_param int pageSize The number of connections to include in the response.
+ * Valid values are between 1 and 500, inclusive. Defaults to 100.
+ * @opt_param string syncToken A sync token, returned by a previous call to
+ * `people.connections.list`. Only resources changed since the sync token was
+ * created will be returned.
+ * @opt_param string sortOrder The order in which the connections should be
+ * sorted. Defaults to `LAST_MODIFIED_ASCENDING`.
+ * @return Google_Service_People_ListConnectionsResponse
+ */
+ public function listPeopleConnections($resourceName, $optParams = array())
+ {
+ $params = array('resourceName' => $resourceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_People_ListConnectionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Skill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Skill.php
new file mode 100644
index 00000000..a54584d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Skill.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Skill extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Source.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Source.php
new file mode 100644
index 00000000..190b0fc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Source.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Source extends Google_Model
+{
+ public $etag;
+ public $id;
+ protected $profileMetadataType = 'Google_Service_People_ProfileMetadata';
+ protected $profileMetadataDataType = '';
+ public $type;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setProfileMetadata(Google_Service_People_ProfileMetadata $profileMetadata)
+ {
+ $this->profileMetadata = $profileMetadata;
+ }
+ public function getProfileMetadata()
+ {
+ return $this->profileMetadata;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Tagline.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Tagline.php
new file mode 100644
index 00000000..f17c7e39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Tagline.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Tagline extends Google_Model
+{
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $value;
+
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Url.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Url.php
new file mode 100644
index 00000000..fb42d674
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/People/Url.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_People_Url extends Google_Model
+{
+ public $formattedType;
+ protected $metadataType = 'Google_Service_People_FieldMetadata';
+ protected $metadataDataType = '';
+ public $type;
+ public $value;
+
+ public function setFormattedType($formattedType)
+ {
+ $this->formattedType = $formattedType;
+ }
+ public function getFormattedType()
+ {
+ return $this->formattedType;
+ }
+ public function setMetadata(Google_Service_People_FieldMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies.php
new file mode 100644
index 00000000..b6632567
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies.php
@@ -0,0 +1,299 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for PlayMovies (v1).
+ *
+ * <p>
+ * Gets the delivery status of titles for Google Play Movies Partners.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/playmoviespartner/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_PlayMovies extends Google_Service
+{
+ /** View the digital assets you publish on Google Play Movies and TV. */
+ const PLAYMOVIES_PARTNER_READONLY =
+ "https://www.googleapis.com/auth/playmovies_partner.readonly";
+
+ public $accounts_avails;
+ public $accounts_orders;
+ public $accounts_storeInfos;
+ public $accounts_storeInfos_country;
+
+ /**
+ * Constructs the internal representation of the PlayMovies service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://playmoviespartner.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'playmoviespartner';
+
+ $this->accounts_avails = new Google_Service_PlayMovies_Resource_AccountsAvails(
+ $this,
+ $this->serviceName,
+ 'avails',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/accounts/{accountId}/avails/{availId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'availId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/accounts/{accountId}/avails',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'title' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'altIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pphNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'altId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'studioNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'territories' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_orders = new Google_Service_PlayMovies_Resource_AccountsOrders(
+ $this,
+ $this->serviceName,
+ 'orders',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/accounts/{accountId}/orders/{orderId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/accounts/{accountId}/orders',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'customId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pphNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'studioNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_storeInfos = new Google_Service_PlayMovies_Resource_AccountsStoreInfos(
+ $this,
+ $this->serviceName,
+ 'storeInfos',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/accounts/{accountId}/storeInfos',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'studioNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'seasonIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'pphNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'countries' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_storeInfos_country = new Google_Service_PlayMovies_Resource_AccountsStoreInfosCountry(
+ $this,
+ $this->serviceName,
+ 'country',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'videoId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'country' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Avail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Avail.php
new file mode 100644
index 00000000..2486e4e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Avail.php
@@ -0,0 +1,319 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_Avail extends Google_Collection
+{
+ protected $collection_key = 'pphNames';
+ public $altId;
+ public $availId;
+ public $captionExemption;
+ public $captionIncluded;
+ public $contentId;
+ public $displayName;
+ public $encodeId;
+ public $end;
+ public $episodeAltId;
+ public $episodeNumber;
+ public $episodeTitleInternalAlias;
+ public $formatProfile;
+ public $licenseType;
+ public $pphNames;
+ public $priceType;
+ public $priceValue;
+ public $productId;
+ public $ratingReason;
+ public $ratingSystem;
+ public $ratingValue;
+ public $releaseDate;
+ public $seasonAltId;
+ public $seasonNumber;
+ public $seasonTitleInternalAlias;
+ public $seriesAltId;
+ public $seriesTitleInternalAlias;
+ public $start;
+ public $storeLanguage;
+ public $suppressionLiftDate;
+ public $territory;
+ public $titleInternalAlias;
+ public $videoId;
+ public $workType;
+
+ public function setAltId($altId)
+ {
+ $this->altId = $altId;
+ }
+ public function getAltId()
+ {
+ return $this->altId;
+ }
+ public function setAvailId($availId)
+ {
+ $this->availId = $availId;
+ }
+ public function getAvailId()
+ {
+ return $this->availId;
+ }
+ public function setCaptionExemption($captionExemption)
+ {
+ $this->captionExemption = $captionExemption;
+ }
+ public function getCaptionExemption()
+ {
+ return $this->captionExemption;
+ }
+ public function setCaptionIncluded($captionIncluded)
+ {
+ $this->captionIncluded = $captionIncluded;
+ }
+ public function getCaptionIncluded()
+ {
+ return $this->captionIncluded;
+ }
+ public function setContentId($contentId)
+ {
+ $this->contentId = $contentId;
+ }
+ public function getContentId()
+ {
+ return $this->contentId;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEncodeId($encodeId)
+ {
+ $this->encodeId = $encodeId;
+ }
+ public function getEncodeId()
+ {
+ return $this->encodeId;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setEpisodeAltId($episodeAltId)
+ {
+ $this->episodeAltId = $episodeAltId;
+ }
+ public function getEpisodeAltId()
+ {
+ return $this->episodeAltId;
+ }
+ public function setEpisodeNumber($episodeNumber)
+ {
+ $this->episodeNumber = $episodeNumber;
+ }
+ public function getEpisodeNumber()
+ {
+ return $this->episodeNumber;
+ }
+ public function setEpisodeTitleInternalAlias($episodeTitleInternalAlias)
+ {
+ $this->episodeTitleInternalAlias = $episodeTitleInternalAlias;
+ }
+ public function getEpisodeTitleInternalAlias()
+ {
+ return $this->episodeTitleInternalAlias;
+ }
+ public function setFormatProfile($formatProfile)
+ {
+ $this->formatProfile = $formatProfile;
+ }
+ public function getFormatProfile()
+ {
+ return $this->formatProfile;
+ }
+ public function setLicenseType($licenseType)
+ {
+ $this->licenseType = $licenseType;
+ }
+ public function getLicenseType()
+ {
+ return $this->licenseType;
+ }
+ public function setPphNames($pphNames)
+ {
+ $this->pphNames = $pphNames;
+ }
+ public function getPphNames()
+ {
+ return $this->pphNames;
+ }
+ public function setPriceType($priceType)
+ {
+ $this->priceType = $priceType;
+ }
+ public function getPriceType()
+ {
+ return $this->priceType;
+ }
+ public function setPriceValue($priceValue)
+ {
+ $this->priceValue = $priceValue;
+ }
+ public function getPriceValue()
+ {
+ return $this->priceValue;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setRatingReason($ratingReason)
+ {
+ $this->ratingReason = $ratingReason;
+ }
+ public function getRatingReason()
+ {
+ return $this->ratingReason;
+ }
+ public function setRatingSystem($ratingSystem)
+ {
+ $this->ratingSystem = $ratingSystem;
+ }
+ public function getRatingSystem()
+ {
+ return $this->ratingSystem;
+ }
+ public function setRatingValue($ratingValue)
+ {
+ $this->ratingValue = $ratingValue;
+ }
+ public function getRatingValue()
+ {
+ return $this->ratingValue;
+ }
+ public function setReleaseDate($releaseDate)
+ {
+ $this->releaseDate = $releaseDate;
+ }
+ public function getReleaseDate()
+ {
+ return $this->releaseDate;
+ }
+ public function setSeasonAltId($seasonAltId)
+ {
+ $this->seasonAltId = $seasonAltId;
+ }
+ public function getSeasonAltId()
+ {
+ return $this->seasonAltId;
+ }
+ public function setSeasonNumber($seasonNumber)
+ {
+ $this->seasonNumber = $seasonNumber;
+ }
+ public function getSeasonNumber()
+ {
+ return $this->seasonNumber;
+ }
+ public function setSeasonTitleInternalAlias($seasonTitleInternalAlias)
+ {
+ $this->seasonTitleInternalAlias = $seasonTitleInternalAlias;
+ }
+ public function getSeasonTitleInternalAlias()
+ {
+ return $this->seasonTitleInternalAlias;
+ }
+ public function setSeriesAltId($seriesAltId)
+ {
+ $this->seriesAltId = $seriesAltId;
+ }
+ public function getSeriesAltId()
+ {
+ return $this->seriesAltId;
+ }
+ public function setSeriesTitleInternalAlias($seriesTitleInternalAlias)
+ {
+ $this->seriesTitleInternalAlias = $seriesTitleInternalAlias;
+ }
+ public function getSeriesTitleInternalAlias()
+ {
+ return $this->seriesTitleInternalAlias;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setStoreLanguage($storeLanguage)
+ {
+ $this->storeLanguage = $storeLanguage;
+ }
+ public function getStoreLanguage()
+ {
+ return $this->storeLanguage;
+ }
+ public function setSuppressionLiftDate($suppressionLiftDate)
+ {
+ $this->suppressionLiftDate = $suppressionLiftDate;
+ }
+ public function getSuppressionLiftDate()
+ {
+ return $this->suppressionLiftDate;
+ }
+ public function setTerritory($territory)
+ {
+ $this->territory = $territory;
+ }
+ public function getTerritory()
+ {
+ return $this->territory;
+ }
+ public function setTitleInternalAlias($titleInternalAlias)
+ {
+ $this->titleInternalAlias = $titleInternalAlias;
+ }
+ public function getTitleInternalAlias()
+ {
+ return $this->titleInternalAlias;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+ public function setWorkType($workType)
+ {
+ $this->workType = $workType;
+ }
+ public function getWorkType()
+ {
+ return $this->workType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Component.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Component.php
new file mode 100644
index 00000000..18254d25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Component.php
@@ -0,0 +1,220 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_Component extends Google_Collection
+{
+ protected $collection_key = 'titleLevelEidrs';
+ public $altCutIds;
+ public $approvedTime;
+ public $componentDetailType;
+ public $componentId;
+ public $customIds;
+ public $editLevelEidrs;
+ public $elIds;
+ public $filename;
+ public $language;
+ public $name;
+ public $normalizedPriority;
+ public $playableUnitType;
+ public $pphName;
+ public $priority;
+ public $processingErrors;
+ public $receivedTime;
+ public $rejectionNote;
+ public $status;
+ public $statusDetail;
+ public $studioName;
+ public $titleLevelEidrs;
+ public $type;
+
+ public function setAltCutIds($altCutIds)
+ {
+ $this->altCutIds = $altCutIds;
+ }
+ public function getAltCutIds()
+ {
+ return $this->altCutIds;
+ }
+ public function setApprovedTime($approvedTime)
+ {
+ $this->approvedTime = $approvedTime;
+ }
+ public function getApprovedTime()
+ {
+ return $this->approvedTime;
+ }
+ public function setComponentDetailType($componentDetailType)
+ {
+ $this->componentDetailType = $componentDetailType;
+ }
+ public function getComponentDetailType()
+ {
+ return $this->componentDetailType;
+ }
+ public function setComponentId($componentId)
+ {
+ $this->componentId = $componentId;
+ }
+ public function getComponentId()
+ {
+ return $this->componentId;
+ }
+ public function setCustomIds($customIds)
+ {
+ $this->customIds = $customIds;
+ }
+ public function getCustomIds()
+ {
+ return $this->customIds;
+ }
+ public function setEditLevelEidrs($editLevelEidrs)
+ {
+ $this->editLevelEidrs = $editLevelEidrs;
+ }
+ public function getEditLevelEidrs()
+ {
+ return $this->editLevelEidrs;
+ }
+ public function setElIds($elIds)
+ {
+ $this->elIds = $elIds;
+ }
+ public function getElIds()
+ {
+ return $this->elIds;
+ }
+ public function setFilename($filename)
+ {
+ $this->filename = $filename;
+ }
+ public function getFilename()
+ {
+ return $this->filename;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNormalizedPriority($normalizedPriority)
+ {
+ $this->normalizedPriority = $normalizedPriority;
+ }
+ public function getNormalizedPriority()
+ {
+ return $this->normalizedPriority;
+ }
+ public function setPlayableUnitType($playableUnitType)
+ {
+ $this->playableUnitType = $playableUnitType;
+ }
+ public function getPlayableUnitType()
+ {
+ return $this->playableUnitType;
+ }
+ public function setPphName($pphName)
+ {
+ $this->pphName = $pphName;
+ }
+ public function getPphName()
+ {
+ return $this->pphName;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setProcessingErrors($processingErrors)
+ {
+ $this->processingErrors = $processingErrors;
+ }
+ public function getProcessingErrors()
+ {
+ return $this->processingErrors;
+ }
+ public function setReceivedTime($receivedTime)
+ {
+ $this->receivedTime = $receivedTime;
+ }
+ public function getReceivedTime()
+ {
+ return $this->receivedTime;
+ }
+ public function setRejectionNote($rejectionNote)
+ {
+ $this->rejectionNote = $rejectionNote;
+ }
+ public function getRejectionNote()
+ {
+ return $this->rejectionNote;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusDetail($statusDetail)
+ {
+ $this->statusDetail = $statusDetail;
+ }
+ public function getStatusDetail()
+ {
+ return $this->statusDetail;
+ }
+ public function setStudioName($studioName)
+ {
+ $this->studioName = $studioName;
+ }
+ public function getStudioName()
+ {
+ return $this->studioName;
+ }
+ public function setTitleLevelEidrs($titleLevelEidrs)
+ {
+ $this->titleLevelEidrs = $titleLevelEidrs;
+ }
+ public function getTitleLevelEidrs()
+ {
+ return $this->titleLevelEidrs;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ExperienceLocale.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ExperienceLocale.php
new file mode 100644
index 00000000..5be5eb00
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ExperienceLocale.php
@@ -0,0 +1,229 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_ExperienceLocale extends Google_Collection
+{
+ protected $collection_key = 'pphNames';
+ public $altCutId;
+ public $approvedTime;
+ public $channelId;
+ public $country;
+ public $createdTime;
+ public $customIds;
+ public $earliestAvailStartTime;
+ public $editLevelEidr;
+ public $elId;
+ public $inventoryId;
+ public $language;
+ public $name;
+ public $normalizedPriority;
+ public $playableSequenceId;
+ public $pphNames;
+ public $presentationId;
+ public $priority;
+ public $status;
+ public $studioName;
+ public $titleLevelEidr;
+ public $trailerId;
+ public $type;
+ public $videoId;
+
+ public function setAltCutId($altCutId)
+ {
+ $this->altCutId = $altCutId;
+ }
+ public function getAltCutId()
+ {
+ return $this->altCutId;
+ }
+ public function setApprovedTime($approvedTime)
+ {
+ $this->approvedTime = $approvedTime;
+ }
+ public function getApprovedTime()
+ {
+ return $this->approvedTime;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setCreatedTime($createdTime)
+ {
+ $this->createdTime = $createdTime;
+ }
+ public function getCreatedTime()
+ {
+ return $this->createdTime;
+ }
+ public function setCustomIds($customIds)
+ {
+ $this->customIds = $customIds;
+ }
+ public function getCustomIds()
+ {
+ return $this->customIds;
+ }
+ public function setEarliestAvailStartTime($earliestAvailStartTime)
+ {
+ $this->earliestAvailStartTime = $earliestAvailStartTime;
+ }
+ public function getEarliestAvailStartTime()
+ {
+ return $this->earliestAvailStartTime;
+ }
+ public function setEditLevelEidr($editLevelEidr)
+ {
+ $this->editLevelEidr = $editLevelEidr;
+ }
+ public function getEditLevelEidr()
+ {
+ return $this->editLevelEidr;
+ }
+ public function setElId($elId)
+ {
+ $this->elId = $elId;
+ }
+ public function getElId()
+ {
+ return $this->elId;
+ }
+ public function setInventoryId($inventoryId)
+ {
+ $this->inventoryId = $inventoryId;
+ }
+ public function getInventoryId()
+ {
+ return $this->inventoryId;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNormalizedPriority($normalizedPriority)
+ {
+ $this->normalizedPriority = $normalizedPriority;
+ }
+ public function getNormalizedPriority()
+ {
+ return $this->normalizedPriority;
+ }
+ public function setPlayableSequenceId($playableSequenceId)
+ {
+ $this->playableSequenceId = $playableSequenceId;
+ }
+ public function getPlayableSequenceId()
+ {
+ return $this->playableSequenceId;
+ }
+ public function setPphNames($pphNames)
+ {
+ $this->pphNames = $pphNames;
+ }
+ public function getPphNames()
+ {
+ return $this->pphNames;
+ }
+ public function setPresentationId($presentationId)
+ {
+ $this->presentationId = $presentationId;
+ }
+ public function getPresentationId()
+ {
+ return $this->presentationId;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStudioName($studioName)
+ {
+ $this->studioName = $studioName;
+ }
+ public function getStudioName()
+ {
+ return $this->studioName;
+ }
+ public function setTitleLevelEidr($titleLevelEidr)
+ {
+ $this->titleLevelEidr = $titleLevelEidr;
+ }
+ public function getTitleLevelEidr()
+ {
+ return $this->titleLevelEidr;
+ }
+ public function setTrailerId($trailerId)
+ {
+ $this->trailerId = $trailerId;
+ }
+ public function getTrailerId()
+ {
+ return $this->trailerId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListAvailsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListAvailsResponse.php
new file mode 100644
index 00000000..d9d0b024
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListAvailsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_ListAvailsResponse extends Google_Collection
+{
+ protected $collection_key = 'avails';
+ protected $availsType = 'Google_Service_PlayMovies_Avail';
+ protected $availsDataType = 'array';
+ public $nextPageToken;
+ public $totalSize;
+
+ public function setAvails($avails)
+ {
+ $this->avails = $avails;
+ }
+ public function getAvails()
+ {
+ return $this->avails;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListComponentsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListComponentsResponse.php
new file mode 100644
index 00000000..0b7d6d1d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListComponentsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_ListComponentsResponse extends Google_Collection
+{
+ protected $collection_key = 'components';
+ protected $componentsType = 'Google_Service_PlayMovies_Component';
+ protected $componentsDataType = 'array';
+ public $nextPageToken;
+ public $totalSize;
+
+ public function setComponents($components)
+ {
+ $this->components = $components;
+ }
+ public function getComponents()
+ {
+ return $this->components;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListExperienceLocalesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListExperienceLocalesResponse.php
new file mode 100644
index 00000000..759d168a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListExperienceLocalesResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_ListExperienceLocalesResponse extends Google_Collection
+{
+ protected $collection_key = 'experienceLocales';
+ protected $experienceLocalesType = 'Google_Service_PlayMovies_ExperienceLocale';
+ protected $experienceLocalesDataType = 'array';
+ public $nextPageToken;
+ public $totalSize;
+
+ public function setExperienceLocales($experienceLocales)
+ {
+ $this->experienceLocales = $experienceLocales;
+ }
+ public function getExperienceLocales()
+ {
+ return $this->experienceLocales;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListOrdersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListOrdersResponse.php
new file mode 100644
index 00000000..4310ffa8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListOrdersResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_ListOrdersResponse extends Google_Collection
+{
+ protected $collection_key = 'orders';
+ public $nextPageToken;
+ protected $ordersType = 'Google_Service_PlayMovies_Order';
+ protected $ordersDataType = 'array';
+ public $totalSize;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOrders($orders)
+ {
+ $this->orders = $orders;
+ }
+ public function getOrders()
+ {
+ return $this->orders;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListStoreInfosResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListStoreInfosResponse.php
new file mode 100644
index 00000000..cf6ee714
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/ListStoreInfosResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_ListStoreInfosResponse extends Google_Collection
+{
+ protected $collection_key = 'storeInfos';
+ public $nextPageToken;
+ protected $storeInfosType = 'Google_Service_PlayMovies_StoreInfo';
+ protected $storeInfosDataType = 'array';
+ public $totalSize;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setStoreInfos($storeInfos)
+ {
+ $this->storeInfos = $storeInfos;
+ }
+ public function getStoreInfos()
+ {
+ return $this->storeInfos;
+ }
+ public function setTotalSize($totalSize)
+ {
+ $this->totalSize = $totalSize;
+ }
+ public function getTotalSize()
+ {
+ return $this->totalSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Order.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Order.php
new file mode 100644
index 00000000..9566397d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Order.php
@@ -0,0 +1,229 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_Order extends Google_Collection
+{
+ protected $collection_key = 'countries';
+ public $approvedTime;
+ public $channelId;
+ public $channelName;
+ public $countries;
+ public $customId;
+ public $earliestAvailStartTime;
+ public $episodeName;
+ public $legacyPriority;
+ public $name;
+ public $normalizedPriority;
+ public $orderId;
+ public $orderedTime;
+ public $pphName;
+ public $priority;
+ public $receivedTime;
+ public $rejectionNote;
+ public $seasonName;
+ public $showName;
+ public $status;
+ public $statusDetail;
+ public $studioName;
+ public $type;
+ public $videoId;
+
+ public function setApprovedTime($approvedTime)
+ {
+ $this->approvedTime = $approvedTime;
+ }
+ public function getApprovedTime()
+ {
+ return $this->approvedTime;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelName($channelName)
+ {
+ $this->channelName = $channelName;
+ }
+ public function getChannelName()
+ {
+ return $this->channelName;
+ }
+ public function setCountries($countries)
+ {
+ $this->countries = $countries;
+ }
+ public function getCountries()
+ {
+ return $this->countries;
+ }
+ public function setCustomId($customId)
+ {
+ $this->customId = $customId;
+ }
+ public function getCustomId()
+ {
+ return $this->customId;
+ }
+ public function setEarliestAvailStartTime($earliestAvailStartTime)
+ {
+ $this->earliestAvailStartTime = $earliestAvailStartTime;
+ }
+ public function getEarliestAvailStartTime()
+ {
+ return $this->earliestAvailStartTime;
+ }
+ public function setEpisodeName($episodeName)
+ {
+ $this->episodeName = $episodeName;
+ }
+ public function getEpisodeName()
+ {
+ return $this->episodeName;
+ }
+ public function setLegacyPriority($legacyPriority)
+ {
+ $this->legacyPriority = $legacyPriority;
+ }
+ public function getLegacyPriority()
+ {
+ return $this->legacyPriority;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNormalizedPriority($normalizedPriority)
+ {
+ $this->normalizedPriority = $normalizedPriority;
+ }
+ public function getNormalizedPriority()
+ {
+ return $this->normalizedPriority;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+ public function setOrderedTime($orderedTime)
+ {
+ $this->orderedTime = $orderedTime;
+ }
+ public function getOrderedTime()
+ {
+ return $this->orderedTime;
+ }
+ public function setPphName($pphName)
+ {
+ $this->pphName = $pphName;
+ }
+ public function getPphName()
+ {
+ return $this->pphName;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setReceivedTime($receivedTime)
+ {
+ $this->receivedTime = $receivedTime;
+ }
+ public function getReceivedTime()
+ {
+ return $this->receivedTime;
+ }
+ public function setRejectionNote($rejectionNote)
+ {
+ $this->rejectionNote = $rejectionNote;
+ }
+ public function getRejectionNote()
+ {
+ return $this->rejectionNote;
+ }
+ public function setSeasonName($seasonName)
+ {
+ $this->seasonName = $seasonName;
+ }
+ public function getSeasonName()
+ {
+ return $this->seasonName;
+ }
+ public function setShowName($showName)
+ {
+ $this->showName = $showName;
+ }
+ public function getShowName()
+ {
+ return $this->showName;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusDetail($statusDetail)
+ {
+ $this->statusDetail = $statusDetail;
+ }
+ public function getStatusDetail()
+ {
+ return $this->statusDetail;
+ }
+ public function setStudioName($studioName)
+ {
+ $this->studioName = $studioName;
+ }
+ public function getStudioName()
+ {
+ return $this->studioName;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/Accounts.php
new file mode 100644
index 00000000..cdae3bf1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/Accounts.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $accounts = $playmoviespartnerService->accounts;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_Accounts extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsAvails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsAvails.php
new file mode 100644
index 00000000..36e258c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsAvails.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "avails" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $avails = $playmoviespartnerService->avails;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_AccountsAvails extends Google_Service_Resource
+{
+ /**
+ * Get an Avail given its avail group id and avail id. (avails.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $availId REQUIRED. Avail ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlayMovies_Avail
+ */
+ public function get($accountId, $availId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'availId' => $availId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlayMovies_Avail");
+ }
+ /**
+ * List Avails owned or managed by the partner.
+ *
+ * See _Authentication and Authorization rules_ and _List methods rules_ for
+ * more information about this method. (avails.listAccountsAvails)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string title Filter that matches Avails with a
+ * `title_internal_alias`, `series_title_internal_alias`,
+ * `season_title_internal_alias`, or `episode_title_internal_alias` that
+ * contains the given case-insensitive title.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string videoIds Filter Avails that match any of the given
+ * `video_id`s.
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string altIds Filter Avails that match (case-insensitive) any of
+ * the given partner-specific custom ids.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string altId Filter Avails that match a case-insensitive, partner-
+ * specific custom id. NOTE: this field is deprecated and will be removed on V2;
+ * `alt_ids` should be used instead.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string territories Filter Avails that match (case-insensitive) any
+ * of the given country codes, using the "ISO 3166-1 alpha-2" format (examples:
+ * "US", "us", "Us").
+ * @return Google_Service_PlayMovies_ListAvailsResponse
+ */
+ public function listAccountsAvails($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlayMovies_ListAvailsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponents.php
new file mode 100644
index 00000000..1dcd25fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponents.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "components" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $components = $playmoviespartnerService->components;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_AccountsComponents extends Google_Service_Resource
+{
+ /**
+ * List Components owned or managed by the partner. See _Authentication and
+ * Authorization rules_ and _List methods rules_ for more information about this
+ * method. (components.listAccountsComponents)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string titleLevelEidr Filter Components that match a given title-
+ * level EIDR.
+ * @opt_param string editLevelEidr Filter Components that match a given edit-
+ * level EIDR.
+ * @opt_param string status Filter Components that match one of the given
+ * status.
+ * @opt_param string customId Filter Components that match a case-insensitive
+ * partner-specific custom id.
+ * @opt_param string inventoryId InventoryID available in Common Manifest.
+ * @opt_param string presentationId PresentationID available in Common Manifest.
+ * @opt_param string playableSequenceId PlayableSequenceID available in Common
+ * Manifest.
+ * @opt_param string elId Experience ID, as defined by Google.
+ * @opt_param string altCutId Filter Components that match a case-insensitive,
+ * partner-specific Alternative Cut ID.
+ * @opt_param string filename Filter Components that match a case-insensitive
+ * substring of the physical name of the delivered file.
+ * @return Google_Service_PlayMovies_ListComponentsResponse
+ */
+ public function listAccountsComponents($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlayMovies_ListComponentsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponentsType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponentsType.php
new file mode 100644
index 00000000..e19aa37d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsComponentsType.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "type" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $type = $playmoviespartnerService->type;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_AccountsComponentsType extends Google_Service_Resource
+{
+ /**
+ * Get a Component given its id. (type.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $componentId REQUIRED. Component ID.
+ * @param string $type REQUIRED. Component Type.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlayMovies_Component
+ */
+ public function get($accountId, $componentId, $type, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'componentId' => $componentId, 'type' => $type);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlayMovies_Component");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsExperienceLocales.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsExperienceLocales.php
new file mode 100644
index 00000000..5100b158
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsExperienceLocales.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "experienceLocales" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $experienceLocales = $playmoviespartnerService->experienceLocales;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_AccountsExperienceLocales extends Google_Service_Resource
+{
+ /**
+ * Get an ExperienceLocale given its id. See _Authentication and Authorization
+ * rules_ and _Get methods rules_ for more information about this method.
+ * (experienceLocales.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $elId REQUIRED. ExperienceLocale ID, as defined by Google.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlayMovies_ExperienceLocale
+ */
+ public function get($accountId, $elId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'elId' => $elId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlayMovies_ExperienceLocale");
+ }
+ /**
+ * List ExperienceLocales owned or managed by the partner. See _Authentication
+ * and Authorization rules_ and _List methods rules_ for more information about
+ * this method. (experienceLocales.listAccountsExperienceLocales)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string titleLevelEidr Filter ExperienceLocales that match a given
+ * title-level EIDR.
+ * @opt_param string editLevelEidr Filter ExperienceLocales that match a given
+ * edit-level EIDR.
+ * @opt_param string status Filter ExperienceLocales that match one of the given
+ * status.
+ * @opt_param string customId Filter ExperienceLocales that match a case-
+ * insensitive, partner-specific custom id.
+ * @opt_param string altCutId Filter ExperienceLocales that match a case-
+ * insensitive, partner-specific Alternative Cut ID.
+ * @return Google_Service_PlayMovies_ListExperienceLocalesResponse
+ */
+ public function listAccountsExperienceLocales($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlayMovies_ListExperienceLocalesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsOrders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsOrders.php
new file mode 100644
index 00000000..0909ddd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsOrders.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "orders" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $orders = $playmoviespartnerService->orders;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_AccountsOrders extends Google_Service_Resource
+{
+ /**
+ * Get an Order given its id.
+ *
+ * See _Authentication and Authorization rules_ and _Get methods rules_ for more
+ * information about this method. (orders.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $orderId REQUIRED. Order ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlayMovies_Order
+ */
+ public function get($accountId, $orderId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'orderId' => $orderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlayMovies_Order");
+ }
+ /**
+ * List Orders owned or managed by the partner.
+ *
+ * See _Authentication and Authorization rules_ and _List methods rules_ for
+ * more information about this method. (orders.listAccountsOrders)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string videoIds Filter Orders that match any of the given
+ * `video_id`s.
+ * @opt_param string customId Filter Orders that match a case-insensitive,
+ * partner-specific custom id.
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string status Filter Orders that match one of the given status.
+ * @opt_param string name Filter that matches Orders with a `name`, `show`,
+ * `season` or `episode` that contains the given case-insensitive name.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @return Google_Service_PlayMovies_ListOrdersResponse
+ */
+ public function listAccountsOrders($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlayMovies_ListOrdersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfos.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfos.php
new file mode 100644
index 00000000..69754099
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfos.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "storeInfos" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $storeInfos = $playmoviespartnerService->storeInfos;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_AccountsStoreInfos extends Google_Service_Resource
+{
+ /**
+ * List StoreInfos owned or managed by the partner.
+ *
+ * See _Authentication and Authorization rules_ and _List methods rules_ for
+ * more information about this method. (storeInfos.listAccountsStoreInfos)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string name Filter that matches StoreInfos with a `name` or
+ * `show_name` that contains the given case-insensitive name.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string seasonIds Filter StoreInfos that match any of the given
+ * `season_id`s.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string videoId Filter StoreInfos that match a given `video_id`.
+ * NOTE: this field is deprecated and will be removed on V2; `video_ids` should
+ * be used instead.
+ * @opt_param string videoIds Filter StoreInfos that match any of the given
+ * `video_id`s.
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string mids Filter StoreInfos that match any of the given `mid`s.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string countries Filter StoreInfos that match (case-insensitive)
+ * any of the given country codes, using the "ISO 3166-1 alpha-2" format
+ * (examples: "US", "us", "Us").
+ * @return Google_Service_PlayMovies_ListStoreInfosResponse
+ */
+ public function listAccountsStoreInfos($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlayMovies_ListStoreInfosResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfosCountry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfosCountry.php
new file mode 100644
index 00000000..9d1c8686
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/Resource/AccountsStoreInfosCountry.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "country" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_PlayMovies(...);
+ * $country = $playmoviespartnerService->country;
+ * </code>
+ */
+class Google_Service_PlayMovies_Resource_AccountsStoreInfosCountry extends Google_Service_Resource
+{
+ /**
+ * Get a StoreInfo given its video id and country.
+ *
+ * See _Authentication and Authorization rules_ and _Get methods rules_ for more
+ * information about this method. (country.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $videoId REQUIRED. Video ID.
+ * @param string $country REQUIRED. Edit country.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlayMovies_StoreInfo
+ */
+ public function get($accountId, $videoId, $country, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'videoId' => $videoId, 'country' => $country);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlayMovies_StoreInfo");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/StoreInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/StoreInfo.php
new file mode 100644
index 00000000..2f254506
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlayMovies/StoreInfo.php
@@ -0,0 +1,247 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlayMovies_StoreInfo extends Google_Collection
+{
+ protected $collection_key = 'subtitles';
+ public $audioTracks;
+ public $country;
+ public $editLevelEidr;
+ public $episodeNumber;
+ public $hasAudio51;
+ public $hasEstOffer;
+ public $hasHdOffer;
+ public $hasInfoCards;
+ public $hasSdOffer;
+ public $hasVodOffer;
+ public $liveTime;
+ public $mid;
+ public $name;
+ public $pphNames;
+ public $seasonId;
+ public $seasonName;
+ public $seasonNumber;
+ public $showId;
+ public $showName;
+ public $studioName;
+ public $subtitles;
+ public $titleLevelEidr;
+ public $trailerId;
+ public $type;
+ public $videoId;
+
+ public function setAudioTracks($audioTracks)
+ {
+ $this->audioTracks = $audioTracks;
+ }
+ public function getAudioTracks()
+ {
+ return $this->audioTracks;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setEditLevelEidr($editLevelEidr)
+ {
+ $this->editLevelEidr = $editLevelEidr;
+ }
+ public function getEditLevelEidr()
+ {
+ return $this->editLevelEidr;
+ }
+ public function setEpisodeNumber($episodeNumber)
+ {
+ $this->episodeNumber = $episodeNumber;
+ }
+ public function getEpisodeNumber()
+ {
+ return $this->episodeNumber;
+ }
+ public function setHasAudio51($hasAudio51)
+ {
+ $this->hasAudio51 = $hasAudio51;
+ }
+ public function getHasAudio51()
+ {
+ return $this->hasAudio51;
+ }
+ public function setHasEstOffer($hasEstOffer)
+ {
+ $this->hasEstOffer = $hasEstOffer;
+ }
+ public function getHasEstOffer()
+ {
+ return $this->hasEstOffer;
+ }
+ public function setHasHdOffer($hasHdOffer)
+ {
+ $this->hasHdOffer = $hasHdOffer;
+ }
+ public function getHasHdOffer()
+ {
+ return $this->hasHdOffer;
+ }
+ public function setHasInfoCards($hasInfoCards)
+ {
+ $this->hasInfoCards = $hasInfoCards;
+ }
+ public function getHasInfoCards()
+ {
+ return $this->hasInfoCards;
+ }
+ public function setHasSdOffer($hasSdOffer)
+ {
+ $this->hasSdOffer = $hasSdOffer;
+ }
+ public function getHasSdOffer()
+ {
+ return $this->hasSdOffer;
+ }
+ public function setHasVodOffer($hasVodOffer)
+ {
+ $this->hasVodOffer = $hasVodOffer;
+ }
+ public function getHasVodOffer()
+ {
+ return $this->hasVodOffer;
+ }
+ public function setLiveTime($liveTime)
+ {
+ $this->liveTime = $liveTime;
+ }
+ public function getLiveTime()
+ {
+ return $this->liveTime;
+ }
+ public function setMid($mid)
+ {
+ $this->mid = $mid;
+ }
+ public function getMid()
+ {
+ return $this->mid;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPphNames($pphNames)
+ {
+ $this->pphNames = $pphNames;
+ }
+ public function getPphNames()
+ {
+ return $this->pphNames;
+ }
+ public function setSeasonId($seasonId)
+ {
+ $this->seasonId = $seasonId;
+ }
+ public function getSeasonId()
+ {
+ return $this->seasonId;
+ }
+ public function setSeasonName($seasonName)
+ {
+ $this->seasonName = $seasonName;
+ }
+ public function getSeasonName()
+ {
+ return $this->seasonName;
+ }
+ public function setSeasonNumber($seasonNumber)
+ {
+ $this->seasonNumber = $seasonNumber;
+ }
+ public function getSeasonNumber()
+ {
+ return $this->seasonNumber;
+ }
+ public function setShowId($showId)
+ {
+ $this->showId = $showId;
+ }
+ public function getShowId()
+ {
+ return $this->showId;
+ }
+ public function setShowName($showName)
+ {
+ $this->showName = $showName;
+ }
+ public function getShowName()
+ {
+ return $this->showName;
+ }
+ public function setStudioName($studioName)
+ {
+ $this->studioName = $studioName;
+ }
+ public function getStudioName()
+ {
+ return $this->studioName;
+ }
+ public function setSubtitles($subtitles)
+ {
+ $this->subtitles = $subtitles;
+ }
+ public function getSubtitles()
+ {
+ return $this->subtitles;
+ }
+ public function setTitleLevelEidr($titleLevelEidr)
+ {
+ $this->titleLevelEidr = $titleLevelEidr;
+ }
+ public function getTitleLevelEidr()
+ {
+ return $this->titleLevelEidr;
+ }
+ public function setTrailerId($trailerId)
+ {
+ $this->trailerId = $trailerId;
+ }
+ public function getTrailerId()
+ {
+ return $this->trailerId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner.php
new file mode 100644
index 00000000..d86c8263
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner.php
@@ -0,0 +1,339 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Playmoviespartner (v1).
+ *
+ * <p>
+ * Lets Google Play Movies Partners get the delivery status of their titles.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/playmoviespartner/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Playmoviespartner extends Google_Service
+{
+ /** View the digital assets you publish on Google Play Movies and TV. */
+ const PLAYMOVIES_PARTNER_READONLY =
+ "https://www.googleapis.com/auth/playmovies_partner.readonly";
+
+ public $accounts_avails;
+ public $accounts_experienceLocales;
+ public $accounts_orders;
+ public $accounts_storeInfos;
+ public $accounts_storeInfos_country;
+
+ /**
+ * Constructs the internal representation of the Playmoviespartner service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://playmoviespartner.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'playmoviespartner';
+
+ $this->accounts_avails = new Google_Service_Playmoviespartner_AccountsAvailsResource(
+ $this,
+ $this->serviceName,
+ 'avails',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/accounts/{accountId}/avails',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pphNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'studioNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'title' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'territories' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'altId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_experienceLocales = new Google_Service_Playmoviespartner_AccountsExperienceLocalesResource(
+ $this,
+ $this->serviceName,
+ 'experienceLocales',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/accounts/{accountId}/experienceLocales/{elId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'elId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/accounts/{accountId}/experienceLocales',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pphNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'studioNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'titleLevelEidr' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'editLevelEidr' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'customId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'altCutId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_orders = new Google_Service_Playmoviespartner_AccountsOrdersResource(
+ $this,
+ $this->serviceName,
+ 'orders',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/accounts/{accountId}/orders/{orderId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/accounts/{accountId}/orders',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pphNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'studioNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'status' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'customId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_storeInfos = new Google_Service_Playmoviespartner_AccountsStoreInfosResource(
+ $this,
+ $this->serviceName,
+ 'storeInfos',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/accounts/{accountId}/storeInfos',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pphNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'studioNames' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'videoId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'countries' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoIds' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_storeInfos_country = new Google_Service_Playmoviespartner_AccountsStoreInfosCountryResource(
+ $this,
+ $this->serviceName,
+ 'country',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'videoId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'country' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsAvailsResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsAvailsResource.php
new file mode 100644
index 00000000..24be08df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsAvailsResource.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "avails" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_Playmoviespartner(...);
+ * $avails = $playmoviespartnerService->avails;
+ * </code>
+ */
+class Google_Service_Playmoviespartner_AccountsAvailsResource extends Google_Service_Resource
+{
+ /**
+ * List Avails owned or managed by the partner. See _Authentication and
+ * Authorization rules_ and _List methods rules_ for more information about this
+ * method. (avails.listAccountsAvails)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string title Filter Avails that match a case-insensitive substring
+ * of the default Title name.
+ * @opt_param string territories Filter Avails that match (case-insensitive) any
+ * of the given country codes, using the "ISO 3166-1 alpha-2" format (examples:
+ * "US", "us", "Us").
+ * @opt_param string altId Filter Avails that match a case-insensitive, partner-
+ * specific custom id.
+ * @opt_param string videoIds Filter Avails that match any of the given
+ * `video_id`s.
+ * @return Google_Service_Playmoviespartner_ListAvailsResponse
+ */
+ public function listAccountsAvails($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListAvailsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsExperienceLocalesResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsExperienceLocalesResource.php
new file mode 100644
index 00000000..8173afa1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsExperienceLocalesResource.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "experienceLocales" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_Playmoviespartner(...);
+ * $experienceLocales = $playmoviespartnerService->experienceLocales;
+ * </code>
+ */
+class Google_Service_Playmoviespartner_AccountsExperienceLocalesResource extends Google_Service_Resource
+{
+ /**
+ * Get an ExperienceLocale given its id. See _Authentication and Authorization
+ * rules_ and _Get methods rules_ for more information about this method.
+ * (experienceLocales.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $elId REQUIRED. ExperienceLocale ID, as defined by Google.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Playmoviespartner_ExperienceLocale
+ */
+ public function get($accountId, $elId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'elId' => $elId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Playmoviespartner_ExperienceLocale");
+ }
+ /**
+ * List ExperienceLocales owned or managed by the partner. See _Authentication
+ * and Authorization rules_ and _List methods rules_ for more information about
+ * this method. (experienceLocales.listAccountsExperienceLocales)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string titleLevelEidr Filter ExperienceLocales that match a given
+ * title-level EIDR.
+ * @opt_param string editLevelEidr Filter ExperienceLocales that match a given
+ * edit-level EIDR.
+ * @opt_param string status Filter ExperienceLocales that match one of the given
+ * status.
+ * @opt_param string customId Filter ExperienceLocales that match a case-
+ * insensitive, partner-specific custom id.
+ * @opt_param string altCutId Filter ExperienceLocales that match a case-
+ * insensitive, partner-specific Alternative Cut ID.
+ * @return Google_Service_Playmoviespartner_ListExperienceLocalesResponse
+ */
+ public function listAccountsExperienceLocales($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListExperienceLocalesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsOrdersResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsOrdersResource.php
new file mode 100644
index 00000000..b1012d14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsOrdersResource.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "orders" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_Playmoviespartner(...);
+ * $orders = $playmoviespartnerService->orders;
+ * </code>
+ */
+class Google_Service_Playmoviespartner_AccountsOrdersResource extends Google_Service_Resource
+{
+ /**
+ * Get an Order given its id. See _Authentication and Authorization rules_ and
+ * _Get methods rules_ for more information about this method. (orders.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $orderId REQUIRED. Order ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Playmoviespartner_Order
+ */
+ public function get($accountId, $orderId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'orderId' => $orderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Playmoviespartner_Order");
+ }
+ /**
+ * List Orders owned or managed by the partner. See _Authentication and
+ * Authorization rules_ and _List methods rules_ for more information about this
+ * method. (orders.listAccountsOrders)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string name Filter Orders that match a title name (case-
+ * insensitive, sub-string match).
+ * @opt_param string status Filter Orders that match one of the given status.
+ * @opt_param string customId Filter Orders that match a case-insensitive,
+ * partner-specific custom id.
+ * @return Google_Service_Playmoviespartner_ListOrdersResponse
+ */
+ public function listAccountsOrders($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListOrdersResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsResource.php
new file mode 100644
index 00000000..36f65d25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsResource.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_Playmoviespartner(...);
+ * $accounts = $playmoviespartnerService->accounts;
+ * </code>
+ */
+class Google_Service_Playmoviespartner_AccountsResource extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosCountryResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosCountryResource.php
new file mode 100644
index 00000000..f49667a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosCountryResource.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "country" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_Playmoviespartner(...);
+ * $country = $playmoviespartnerService->country;
+ * </code>
+ */
+class Google_Service_Playmoviespartner_AccountsStoreInfosCountryResource extends Google_Service_Resource
+{
+ /**
+ * Get a StoreInfo given its video id and country. See _Authentication and
+ * Authorization rules_ and _Get methods rules_ for more information about this
+ * method. (country.get)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param string $videoId REQUIRED. Video ID.
+ * @param string $country REQUIRED. Edit country.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Playmoviespartner_StoreInfo
+ */
+ public function get($accountId, $videoId, $country, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'videoId' => $videoId, 'country' => $country);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Playmoviespartner_StoreInfo");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosResource.php
new file mode 100644
index 00000000..2cb9fcd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/AccountsStoreInfosResource.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "storeInfos" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $playmoviespartnerService = new Google_Service_Playmoviespartner(...);
+ * $storeInfos = $playmoviespartnerService->storeInfos;
+ * </code>
+ */
+class Google_Service_Playmoviespartner_AccountsStoreInfosResource extends Google_Service_Resource
+{
+ /**
+ * List StoreInfos owned or managed by the partner. See _Authentication and
+ * Authorization rules_ and _List methods rules_ for more information about this
+ * method. (storeInfos.listAccountsStoreInfos)
+ *
+ * @param string $accountId REQUIRED. See _General rules_ for more information
+ * about this field.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize See _List methods rules_ for info about this field.
+ * @opt_param string pageToken See _List methods rules_ for info about this
+ * field.
+ * @opt_param string pphNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string studioNames See _List methods rules_ for info about this
+ * field.
+ * @opt_param string videoId Filter StoreInfos that match a given `video_id`.
+ * NOTE: this field is deprecated and will be removed on V2; `video_ids` should
+ * be used instead.
+ * @opt_param string countries Filter StoreInfos that match (case-insensitive)
+ * any of the given country codes, using the "ISO 3166-1 alpha-2" format
+ * (examples: "US", "us", "Us").
+ * @opt_param string name Filter StoreInfos that match a case-insensitive
+ * substring of the default name.
+ * @opt_param string videoIds Filter StoreInfos that match any of the given
+ * `video_id`s.
+ * @return Google_Service_Playmoviespartner_ListStoreInfosResponse
+ */
+ public function listAccountsStoreInfos($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Playmoviespartner_ListStoreInfosResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Avail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Avail.php
new file mode 100644
index 00000000..b17a5623
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Avail.php
@@ -0,0 +1,310 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_Avail extends Google_Collection
+{
+ protected $collection_key = 'pphNames';
+ public $altId;
+ public $captionExemption;
+ public $captionIncluded;
+ public $contentId;
+ public $displayName;
+ public $encodeId;
+ public $end;
+ public $episodeAltId;
+ public $episodeNumber;
+ public $episodeTitleInternalAlias;
+ public $formatProfile;
+ public $licenseType;
+ public $pphNames;
+ public $priceType;
+ public $priceValue;
+ public $productId;
+ public $ratingReason;
+ public $ratingSystem;
+ public $ratingValue;
+ public $releaseDate;
+ public $seasonAltId;
+ public $seasonNumber;
+ public $seasonTitleInternalAlias;
+ public $seriesAltId;
+ public $seriesTitleInternalAlias;
+ public $start;
+ public $storeLanguage;
+ public $suppressionLiftDate;
+ public $territory;
+ public $titleInternalAlias;
+ public $videoId;
+ public $workType;
+
+ public function setAltId($altId)
+ {
+ $this->altId = $altId;
+ }
+ public function getAltId()
+ {
+ return $this->altId;
+ }
+ public function setCaptionExemption($captionExemption)
+ {
+ $this->captionExemption = $captionExemption;
+ }
+ public function getCaptionExemption()
+ {
+ return $this->captionExemption;
+ }
+ public function setCaptionIncluded($captionIncluded)
+ {
+ $this->captionIncluded = $captionIncluded;
+ }
+ public function getCaptionIncluded()
+ {
+ return $this->captionIncluded;
+ }
+ public function setContentId($contentId)
+ {
+ $this->contentId = $contentId;
+ }
+ public function getContentId()
+ {
+ return $this->contentId;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEncodeId($encodeId)
+ {
+ $this->encodeId = $encodeId;
+ }
+ public function getEncodeId()
+ {
+ return $this->encodeId;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setEpisodeAltId($episodeAltId)
+ {
+ $this->episodeAltId = $episodeAltId;
+ }
+ public function getEpisodeAltId()
+ {
+ return $this->episodeAltId;
+ }
+ public function setEpisodeNumber($episodeNumber)
+ {
+ $this->episodeNumber = $episodeNumber;
+ }
+ public function getEpisodeNumber()
+ {
+ return $this->episodeNumber;
+ }
+ public function setEpisodeTitleInternalAlias($episodeTitleInternalAlias)
+ {
+ $this->episodeTitleInternalAlias = $episodeTitleInternalAlias;
+ }
+ public function getEpisodeTitleInternalAlias()
+ {
+ return $this->episodeTitleInternalAlias;
+ }
+ public function setFormatProfile($formatProfile)
+ {
+ $this->formatProfile = $formatProfile;
+ }
+ public function getFormatProfile()
+ {
+ return $this->formatProfile;
+ }
+ public function setLicenseType($licenseType)
+ {
+ $this->licenseType = $licenseType;
+ }
+ public function getLicenseType()
+ {
+ return $this->licenseType;
+ }
+ public function setPphNames($pphNames)
+ {
+ $this->pphNames = $pphNames;
+ }
+ public function getPphNames()
+ {
+ return $this->pphNames;
+ }
+ public function setPriceType($priceType)
+ {
+ $this->priceType = $priceType;
+ }
+ public function getPriceType()
+ {
+ return $this->priceType;
+ }
+ public function setPriceValue($priceValue)
+ {
+ $this->priceValue = $priceValue;
+ }
+ public function getPriceValue()
+ {
+ return $this->priceValue;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setRatingReason($ratingReason)
+ {
+ $this->ratingReason = $ratingReason;
+ }
+ public function getRatingReason()
+ {
+ return $this->ratingReason;
+ }
+ public function setRatingSystem($ratingSystem)
+ {
+ $this->ratingSystem = $ratingSystem;
+ }
+ public function getRatingSystem()
+ {
+ return $this->ratingSystem;
+ }
+ public function setRatingValue($ratingValue)
+ {
+ $this->ratingValue = $ratingValue;
+ }
+ public function getRatingValue()
+ {
+ return $this->ratingValue;
+ }
+ public function setReleaseDate($releaseDate)
+ {
+ $this->releaseDate = $releaseDate;
+ }
+ public function getReleaseDate()
+ {
+ return $this->releaseDate;
+ }
+ public function setSeasonAltId($seasonAltId)
+ {
+ $this->seasonAltId = $seasonAltId;
+ }
+ public function getSeasonAltId()
+ {
+ return $this->seasonAltId;
+ }
+ public function setSeasonNumber($seasonNumber)
+ {
+ $this->seasonNumber = $seasonNumber;
+ }
+ public function getSeasonNumber()
+ {
+ return $this->seasonNumber;
+ }
+ public function setSeasonTitleInternalAlias($seasonTitleInternalAlias)
+ {
+ $this->seasonTitleInternalAlias = $seasonTitleInternalAlias;
+ }
+ public function getSeasonTitleInternalAlias()
+ {
+ return $this->seasonTitleInternalAlias;
+ }
+ public function setSeriesAltId($seriesAltId)
+ {
+ $this->seriesAltId = $seriesAltId;
+ }
+ public function getSeriesAltId()
+ {
+ return $this->seriesAltId;
+ }
+ public function setSeriesTitleInternalAlias($seriesTitleInternalAlias)
+ {
+ $this->seriesTitleInternalAlias = $seriesTitleInternalAlias;
+ }
+ public function getSeriesTitleInternalAlias()
+ {
+ return $this->seriesTitleInternalAlias;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setStoreLanguage($storeLanguage)
+ {
+ $this->storeLanguage = $storeLanguage;
+ }
+ public function getStoreLanguage()
+ {
+ return $this->storeLanguage;
+ }
+ public function setSuppressionLiftDate($suppressionLiftDate)
+ {
+ $this->suppressionLiftDate = $suppressionLiftDate;
+ }
+ public function getSuppressionLiftDate()
+ {
+ return $this->suppressionLiftDate;
+ }
+ public function setTerritory($territory)
+ {
+ $this->territory = $territory;
+ }
+ public function getTerritory()
+ {
+ return $this->territory;
+ }
+ public function setTitleInternalAlias($titleInternalAlias)
+ {
+ $this->titleInternalAlias = $titleInternalAlias;
+ }
+ public function getTitleInternalAlias()
+ {
+ return $this->titleInternalAlias;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+ public function setWorkType($workType)
+ {
+ $this->workType = $workType;
+ }
+ public function getWorkType()
+ {
+ return $this->workType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ExperienceLocale.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ExperienceLocale.php
new file mode 100644
index 00000000..d9219b51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ExperienceLocale.php
@@ -0,0 +1,229 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_ExperienceLocale extends Google_Collection
+{
+ protected $collection_key = 'pphNames';
+ public $altCutId;
+ public $approvedTime;
+ public $channelId;
+ public $country;
+ public $createdTime;
+ public $customIds;
+ public $earliestAvailStartTime;
+ public $editLevelEidr;
+ public $elId;
+ public $inventoryId;
+ public $language;
+ public $name;
+ public $normalizedPriority;
+ public $playableSequenceId;
+ public $pphNames;
+ public $presentationId;
+ public $priority;
+ public $status;
+ public $studioName;
+ public $titleLevelEidr;
+ public $trailerId;
+ public $type;
+ public $videoId;
+
+ public function setAltCutId($altCutId)
+ {
+ $this->altCutId = $altCutId;
+ }
+ public function getAltCutId()
+ {
+ return $this->altCutId;
+ }
+ public function setApprovedTime($approvedTime)
+ {
+ $this->approvedTime = $approvedTime;
+ }
+ public function getApprovedTime()
+ {
+ return $this->approvedTime;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setCreatedTime($createdTime)
+ {
+ $this->createdTime = $createdTime;
+ }
+ public function getCreatedTime()
+ {
+ return $this->createdTime;
+ }
+ public function setCustomIds($customIds)
+ {
+ $this->customIds = $customIds;
+ }
+ public function getCustomIds()
+ {
+ return $this->customIds;
+ }
+ public function setEarliestAvailStartTime($earliestAvailStartTime)
+ {
+ $this->earliestAvailStartTime = $earliestAvailStartTime;
+ }
+ public function getEarliestAvailStartTime()
+ {
+ return $this->earliestAvailStartTime;
+ }
+ public function setEditLevelEidr($editLevelEidr)
+ {
+ $this->editLevelEidr = $editLevelEidr;
+ }
+ public function getEditLevelEidr()
+ {
+ return $this->editLevelEidr;
+ }
+ public function setElId($elId)
+ {
+ $this->elId = $elId;
+ }
+ public function getElId()
+ {
+ return $this->elId;
+ }
+ public function setInventoryId($inventoryId)
+ {
+ $this->inventoryId = $inventoryId;
+ }
+ public function getInventoryId()
+ {
+ return $this->inventoryId;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNormalizedPriority($normalizedPriority)
+ {
+ $this->normalizedPriority = $normalizedPriority;
+ }
+ public function getNormalizedPriority()
+ {
+ return $this->normalizedPriority;
+ }
+ public function setPlayableSequenceId($playableSequenceId)
+ {
+ $this->playableSequenceId = $playableSequenceId;
+ }
+ public function getPlayableSequenceId()
+ {
+ return $this->playableSequenceId;
+ }
+ public function setPphNames($pphNames)
+ {
+ $this->pphNames = $pphNames;
+ }
+ public function getPphNames()
+ {
+ return $this->pphNames;
+ }
+ public function setPresentationId($presentationId)
+ {
+ $this->presentationId = $presentationId;
+ }
+ public function getPresentationId()
+ {
+ return $this->presentationId;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStudioName($studioName)
+ {
+ $this->studioName = $studioName;
+ }
+ public function getStudioName()
+ {
+ return $this->studioName;
+ }
+ public function setTitleLevelEidr($titleLevelEidr)
+ {
+ $this->titleLevelEidr = $titleLevelEidr;
+ }
+ public function getTitleLevelEidr()
+ {
+ return $this->titleLevelEidr;
+ }
+ public function setTrailerId($trailerId)
+ {
+ $this->trailerId = $trailerId;
+ }
+ public function getTrailerId()
+ {
+ return $this->trailerId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListAvailsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListAvailsResponse.php
new file mode 100644
index 00000000..a20847e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListAvailsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_ListAvailsResponse extends Google_Collection
+{
+ protected $collection_key = 'avails';
+ protected $availsType = 'Google_Service_Playmoviespartner_Avail';
+ protected $availsDataType = 'array';
+ public $nextPageToken;
+
+ public function setAvails($avails)
+ {
+ $this->avails = $avails;
+ }
+ public function getAvails()
+ {
+ return $this->avails;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListExperienceLocalesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListExperienceLocalesResponse.php
new file mode 100644
index 00000000..3c3a475c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListExperienceLocalesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_ListExperienceLocalesResponse extends Google_Collection
+{
+ protected $collection_key = 'experienceLocales';
+ protected $experienceLocalesType = 'Google_Service_Playmoviespartner_ExperienceLocale';
+ protected $experienceLocalesDataType = 'array';
+ public $nextPageToken;
+
+ public function setExperienceLocales($experienceLocales)
+ {
+ $this->experienceLocales = $experienceLocales;
+ }
+ public function getExperienceLocales()
+ {
+ return $this->experienceLocales;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListOrdersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListOrdersResponse.php
new file mode 100644
index 00000000..dc39cb36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListOrdersResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_ListOrdersResponse extends Google_Collection
+{
+ protected $collection_key = 'orders';
+ public $nextPageToken;
+ protected $ordersType = 'Google_Service_Playmoviespartner_Order';
+ protected $ordersDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOrders($orders)
+ {
+ $this->orders = $orders;
+ }
+ public function getOrders()
+ {
+ return $this->orders;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListStoreInfosResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListStoreInfosResponse.php
new file mode 100644
index 00000000..bc953255
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/ListStoreInfosResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_ListStoreInfosResponse extends Google_Collection
+{
+ protected $collection_key = 'storeInfos';
+ public $nextPageToken;
+ protected $storeInfosType = 'Google_Service_Playmoviespartner_StoreInfo';
+ protected $storeInfosDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setStoreInfos($storeInfos)
+ {
+ $this->storeInfos = $storeInfos;
+ }
+ public function getStoreInfos()
+ {
+ return $this->storeInfos;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Order.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Order.php
new file mode 100644
index 00000000..44664f20
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/Order.php
@@ -0,0 +1,229 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_Order extends Google_Collection
+{
+ protected $collection_key = 'countries';
+ public $approvedTime;
+ public $channelId;
+ public $channelName;
+ public $countries;
+ public $customId;
+ public $earliestAvailStartTime;
+ public $episodeName;
+ public $legacyPriority;
+ public $name;
+ public $normalizedPriority;
+ public $orderId;
+ public $orderedTime;
+ public $pphName;
+ public $priority;
+ public $receivedTime;
+ public $rejectionNote;
+ public $seasonName;
+ public $showName;
+ public $status;
+ public $statusDetail;
+ public $studioName;
+ public $type;
+ public $videoId;
+
+ public function setApprovedTime($approvedTime)
+ {
+ $this->approvedTime = $approvedTime;
+ }
+ public function getApprovedTime()
+ {
+ return $this->approvedTime;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelName($channelName)
+ {
+ $this->channelName = $channelName;
+ }
+ public function getChannelName()
+ {
+ return $this->channelName;
+ }
+ public function setCountries($countries)
+ {
+ $this->countries = $countries;
+ }
+ public function getCountries()
+ {
+ return $this->countries;
+ }
+ public function setCustomId($customId)
+ {
+ $this->customId = $customId;
+ }
+ public function getCustomId()
+ {
+ return $this->customId;
+ }
+ public function setEarliestAvailStartTime($earliestAvailStartTime)
+ {
+ $this->earliestAvailStartTime = $earliestAvailStartTime;
+ }
+ public function getEarliestAvailStartTime()
+ {
+ return $this->earliestAvailStartTime;
+ }
+ public function setEpisodeName($episodeName)
+ {
+ $this->episodeName = $episodeName;
+ }
+ public function getEpisodeName()
+ {
+ return $this->episodeName;
+ }
+ public function setLegacyPriority($legacyPriority)
+ {
+ $this->legacyPriority = $legacyPriority;
+ }
+ public function getLegacyPriority()
+ {
+ return $this->legacyPriority;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNormalizedPriority($normalizedPriority)
+ {
+ $this->normalizedPriority = $normalizedPriority;
+ }
+ public function getNormalizedPriority()
+ {
+ return $this->normalizedPriority;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+ public function setOrderedTime($orderedTime)
+ {
+ $this->orderedTime = $orderedTime;
+ }
+ public function getOrderedTime()
+ {
+ return $this->orderedTime;
+ }
+ public function setPphName($pphName)
+ {
+ $this->pphName = $pphName;
+ }
+ public function getPphName()
+ {
+ return $this->pphName;
+ }
+ public function setPriority($priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setReceivedTime($receivedTime)
+ {
+ $this->receivedTime = $receivedTime;
+ }
+ public function getReceivedTime()
+ {
+ return $this->receivedTime;
+ }
+ public function setRejectionNote($rejectionNote)
+ {
+ $this->rejectionNote = $rejectionNote;
+ }
+ public function getRejectionNote()
+ {
+ return $this->rejectionNote;
+ }
+ public function setSeasonName($seasonName)
+ {
+ $this->seasonName = $seasonName;
+ }
+ public function getSeasonName()
+ {
+ return $this->seasonName;
+ }
+ public function setShowName($showName)
+ {
+ $this->showName = $showName;
+ }
+ public function getShowName()
+ {
+ return $this->showName;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusDetail($statusDetail)
+ {
+ $this->statusDetail = $statusDetail;
+ }
+ public function getStatusDetail()
+ {
+ return $this->statusDetail;
+ }
+ public function setStudioName($studioName)
+ {
+ $this->studioName = $studioName;
+ }
+ public function getStudioName()
+ {
+ return $this->studioName;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/StoreInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/StoreInfo.php
new file mode 100644
index 00000000..ac24337b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Playmoviespartner/StoreInfo.php
@@ -0,0 +1,247 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Playmoviespartner_StoreInfo extends Google_Collection
+{
+ protected $collection_key = 'subtitles';
+ public $audioTracks;
+ public $country;
+ public $editLevelEidr;
+ public $episodeNumber;
+ public $hasAudio51;
+ public $hasEstOffer;
+ public $hasHdOffer;
+ public $hasInfoCards;
+ public $hasSdOffer;
+ public $hasVodOffer;
+ public $liveTime;
+ public $mid;
+ public $name;
+ public $pphNames;
+ public $seasonId;
+ public $seasonName;
+ public $seasonNumber;
+ public $showId;
+ public $showName;
+ public $studioName;
+ public $subtitles;
+ public $titleLevelEidr;
+ public $trailerId;
+ public $type;
+ public $videoId;
+
+ public function setAudioTracks($audioTracks)
+ {
+ $this->audioTracks = $audioTracks;
+ }
+ public function getAudioTracks()
+ {
+ return $this->audioTracks;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setEditLevelEidr($editLevelEidr)
+ {
+ $this->editLevelEidr = $editLevelEidr;
+ }
+ public function getEditLevelEidr()
+ {
+ return $this->editLevelEidr;
+ }
+ public function setEpisodeNumber($episodeNumber)
+ {
+ $this->episodeNumber = $episodeNumber;
+ }
+ public function getEpisodeNumber()
+ {
+ return $this->episodeNumber;
+ }
+ public function setHasAudio51($hasAudio51)
+ {
+ $this->hasAudio51 = $hasAudio51;
+ }
+ public function getHasAudio51()
+ {
+ return $this->hasAudio51;
+ }
+ public function setHasEstOffer($hasEstOffer)
+ {
+ $this->hasEstOffer = $hasEstOffer;
+ }
+ public function getHasEstOffer()
+ {
+ return $this->hasEstOffer;
+ }
+ public function setHasHdOffer($hasHdOffer)
+ {
+ $this->hasHdOffer = $hasHdOffer;
+ }
+ public function getHasHdOffer()
+ {
+ return $this->hasHdOffer;
+ }
+ public function setHasInfoCards($hasInfoCards)
+ {
+ $this->hasInfoCards = $hasInfoCards;
+ }
+ public function getHasInfoCards()
+ {
+ return $this->hasInfoCards;
+ }
+ public function setHasSdOffer($hasSdOffer)
+ {
+ $this->hasSdOffer = $hasSdOffer;
+ }
+ public function getHasSdOffer()
+ {
+ return $this->hasSdOffer;
+ }
+ public function setHasVodOffer($hasVodOffer)
+ {
+ $this->hasVodOffer = $hasVodOffer;
+ }
+ public function getHasVodOffer()
+ {
+ return $this->hasVodOffer;
+ }
+ public function setLiveTime($liveTime)
+ {
+ $this->liveTime = $liveTime;
+ }
+ public function getLiveTime()
+ {
+ return $this->liveTime;
+ }
+ public function setMid($mid)
+ {
+ $this->mid = $mid;
+ }
+ public function getMid()
+ {
+ return $this->mid;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPphNames($pphNames)
+ {
+ $this->pphNames = $pphNames;
+ }
+ public function getPphNames()
+ {
+ return $this->pphNames;
+ }
+ public function setSeasonId($seasonId)
+ {
+ $this->seasonId = $seasonId;
+ }
+ public function getSeasonId()
+ {
+ return $this->seasonId;
+ }
+ public function setSeasonName($seasonName)
+ {
+ $this->seasonName = $seasonName;
+ }
+ public function getSeasonName()
+ {
+ return $this->seasonName;
+ }
+ public function setSeasonNumber($seasonNumber)
+ {
+ $this->seasonNumber = $seasonNumber;
+ }
+ public function getSeasonNumber()
+ {
+ return $this->seasonNumber;
+ }
+ public function setShowId($showId)
+ {
+ $this->showId = $showId;
+ }
+ public function getShowId()
+ {
+ return $this->showId;
+ }
+ public function setShowName($showName)
+ {
+ $this->showName = $showName;
+ }
+ public function getShowName()
+ {
+ return $this->showName;
+ }
+ public function setStudioName($studioName)
+ {
+ $this->studioName = $studioName;
+ }
+ public function getStudioName()
+ {
+ return $this->studioName;
+ }
+ public function setSubtitles($subtitles)
+ {
+ $this->subtitles = $subtitles;
+ }
+ public function getSubtitles()
+ {
+ return $this->subtitles;
+ }
+ public function setTitleLevelEidr($titleLevelEidr)
+ {
+ $this->titleLevelEidr = $titleLevelEidr;
+ }
+ public function getTitleLevelEidr()
+ {
+ return $this->titleLevelEidr;
+ }
+ public function setTrailerId($trailerId)
+ {
+ $this->trailerId = $trailerId;
+ }
+ public function getTrailerId()
+ {
+ return $this->trailerId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus.php
new file mode 100644
index 00000000..df3e8029
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus.php
@@ -0,0 +1,267 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Plus (v1).
+ *
+ * <p>
+ * Builds on top of the Google+ platform.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/+/api/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Plus extends Google_Service
+{
+ /** Know the list of people in your circles, your age range, and language. */
+ const PLUS_LOGIN =
+ "https://www.googleapis.com/auth/plus.login";
+ /** Know who you are on Google. */
+ const PLUS_ME =
+ "https://www.googleapis.com/auth/plus.me";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+ /** View your basic profile info. */
+ const USERINFO_PROFILE =
+ "https://www.googleapis.com/auth/userinfo.profile";
+
+ public $activities;
+ public $comments;
+ public $people;
+
+ /**
+ * Constructs the internal representation of the Plus service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'plus/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'plus';
+
+ $this->activities = new Google_Service_Plus_Resource_Activities(
+ $this,
+ $this->serviceName,
+ 'activities',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'activities/{activityId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'activityId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'people/{userId}/activities/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'activities',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->comments = new Google_Service_Plus_Resource_Comments(
+ $this,
+ $this->serviceName,
+ 'comments',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'comments/{commentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'activities/{activityId}/comments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'activityId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->people = new Google_Service_Plus_Resource_People(
+ $this,
+ $this->serviceName,
+ 'people',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'people/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'people/{userId}/people/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listByActivity' => array(
+ 'path' => 'activities/{activityId}/people/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'activityId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'search' => array(
+ 'path' => 'people',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'query' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'language' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Acl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Acl.php
new file mode 100644
index 00000000..642ecf05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Acl.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_Acl extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $description;
+ protected $itemsType = 'Google_Service_Plus_PlusAclentryResource';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Activity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Activity.php
new file mode 100644
index 00000000..c375517b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Activity.php
@@ -0,0 +1,206 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_Activity extends Google_Model
+{
+ protected $accessType = 'Google_Service_Plus_Acl';
+ protected $accessDataType = '';
+ protected $actorType = 'Google_Service_Plus_ActivityActor';
+ protected $actorDataType = '';
+ public $address;
+ public $annotation;
+ public $crosspostSource;
+ public $etag;
+ public $geocode;
+ public $id;
+ public $kind;
+ protected $locationType = 'Google_Service_Plus_Place';
+ protected $locationDataType = '';
+ protected $objectType = 'Google_Service_Plus_ActivityObject';
+ protected $objectDataType = '';
+ public $placeId;
+ public $placeName;
+ protected $providerType = 'Google_Service_Plus_ActivityProvider';
+ protected $providerDataType = '';
+ public $published;
+ public $radius;
+ public $title;
+ public $updated;
+ public $url;
+ public $verb;
+
+ public function setAccess(Google_Service_Plus_Acl $access)
+ {
+ $this->access = $access;
+ }
+ public function getAccess()
+ {
+ return $this->access;
+ }
+ public function setActor(Google_Service_Plus_ActivityActor $actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setAnnotation($annotation)
+ {
+ $this->annotation = $annotation;
+ }
+ public function getAnnotation()
+ {
+ return $this->annotation;
+ }
+ public function setCrosspostSource($crosspostSource)
+ {
+ $this->crosspostSource = $crosspostSource;
+ }
+ public function getCrosspostSource()
+ {
+ return $this->crosspostSource;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGeocode($geocode)
+ {
+ $this->geocode = $geocode;
+ }
+ public function getGeocode()
+ {
+ return $this->geocode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation(Google_Service_Plus_Place $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setObject(Google_Service_Plus_ActivityObject $object)
+ {
+ $this->object = $object;
+ }
+ public function getObject()
+ {
+ return $this->object;
+ }
+ public function setPlaceId($placeId)
+ {
+ $this->placeId = $placeId;
+ }
+ public function getPlaceId()
+ {
+ return $this->placeId;
+ }
+ public function setPlaceName($placeName)
+ {
+ $this->placeName = $placeName;
+ }
+ public function getPlaceName()
+ {
+ return $this->placeName;
+ }
+ public function setProvider(Google_Service_Plus_ActivityProvider $provider)
+ {
+ $this->provider = $provider;
+ }
+ public function getProvider()
+ {
+ return $this->provider;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setRadius($radius)
+ {
+ $this->radius = $radius;
+ }
+ public function getRadius()
+ {
+ return $this->radius;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerb($verb)
+ {
+ $this->verb = $verb;
+ }
+ public function getVerb()
+ {
+ return $this->verb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActor.php
new file mode 100644
index 00000000..68514e9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActor.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityActor extends Google_Model
+{
+ protected $clientSpecificActorInfoType = 'Google_Service_Plus_ActivityActorClientSpecificActorInfo';
+ protected $clientSpecificActorInfoDataType = '';
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_Plus_ActivityActorImage';
+ protected $imageDataType = '';
+ protected $nameType = 'Google_Service_Plus_ActivityActorName';
+ protected $nameDataType = '';
+ public $url;
+ protected $verificationType = 'Google_Service_Plus_ActivityActorVerification';
+ protected $verificationDataType = '';
+
+ public function setClientSpecificActorInfo(Google_Service_Plus_ActivityActorClientSpecificActorInfo $clientSpecificActorInfo)
+ {
+ $this->clientSpecificActorInfo = $clientSpecificActorInfo;
+ }
+ public function getClientSpecificActorInfo()
+ {
+ return $this->clientSpecificActorInfo;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Plus_ActivityActorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setName(Google_Service_Plus_ActivityActorName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerification(Google_Service_Plus_ActivityActorVerification $verification)
+ {
+ $this->verification = $verification;
+ }
+ public function getVerification()
+ {
+ return $this->verification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfo.php
new file mode 100644
index 00000000..22c5caa1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityActorClientSpecificActorInfo extends Google_Model
+{
+ protected $youtubeActorInfoType = 'Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo';
+ protected $youtubeActorInfoDataType = '';
+
+ public function setYoutubeActorInfo(Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo)
+ {
+ $this->youtubeActorInfo = $youtubeActorInfo;
+ }
+ public function getYoutubeActorInfo()
+ {
+ return $this->youtubeActorInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php
new file mode 100644
index 00000000..0de9b6f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model
+{
+ public $channelId;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorImage.php
new file mode 100644
index 00000000..ace967fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityActorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorName.php
new file mode 100644
index 00000000..d589ea52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorName.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityActorName extends Google_Model
+{
+ public $familyName;
+ public $givenName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorVerification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorVerification.php
new file mode 100644
index 00000000..72226325
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityActorVerification.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityActorVerification extends Google_Model
+{
+ public $adHocVerified;
+
+ public function setAdHocVerified($adHocVerified)
+ {
+ $this->adHocVerified = $adHocVerified;
+ }
+ public function getAdHocVerified()
+ {
+ return $this->adHocVerified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityFeed.php
new file mode 100644
index 00000000..81bf62e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityFeed.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $id;
+ protected $itemsType = 'Google_Service_Plus_Activity';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ public $title;
+ public $updated;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObject.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObject.php
new file mode 100644
index 00000000..aa682d09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObject.php
@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObject extends Google_Collection
+{
+ protected $collection_key = 'attachments';
+ protected $actorType = 'Google_Service_Plus_ActivityObjectActor';
+ protected $actorDataType = '';
+ protected $attachmentsType = 'Google_Service_Plus_ActivityObjectAttachments';
+ protected $attachmentsDataType = 'array';
+ public $content;
+ public $id;
+ public $objectType;
+ public $originalContent;
+ protected $plusonersType = 'Google_Service_Plus_ActivityObjectPlusoners';
+ protected $plusonersDataType = '';
+ protected $repliesType = 'Google_Service_Plus_ActivityObjectReplies';
+ protected $repliesDataType = '';
+ protected $resharersType = 'Google_Service_Plus_ActivityObjectResharers';
+ protected $resharersDataType = '';
+ public $url;
+
+ public function setActor(Google_Service_Plus_ActivityObjectActor $actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setAttachments($attachments)
+ {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments()
+ {
+ return $this->attachments;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setOriginalContent($originalContent)
+ {
+ $this->originalContent = $originalContent;
+ }
+ public function getOriginalContent()
+ {
+ return $this->originalContent;
+ }
+ public function setPlusoners(Google_Service_Plus_ActivityObjectPlusoners $plusoners)
+ {
+ $this->plusoners = $plusoners;
+ }
+ public function getPlusoners()
+ {
+ return $this->plusoners;
+ }
+ public function setReplies(Google_Service_Plus_ActivityObjectReplies $replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+ public function setResharers(Google_Service_Plus_ActivityObjectResharers $resharers)
+ {
+ $this->resharers = $resharers;
+ }
+ public function getResharers()
+ {
+ return $this->resharers;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActor.php
new file mode 100644
index 00000000..786d35d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActor.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectActor extends Google_Model
+{
+ protected $clientSpecificActorInfoType = 'Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo';
+ protected $clientSpecificActorInfoDataType = '';
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_Plus_ActivityObjectActorImage';
+ protected $imageDataType = '';
+ public $url;
+ protected $verificationType = 'Google_Service_Plus_ActivityObjectActorVerification';
+ protected $verificationDataType = '';
+
+ public function setClientSpecificActorInfo(Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo $clientSpecificActorInfo)
+ {
+ $this->clientSpecificActorInfo = $clientSpecificActorInfo;
+ }
+ public function getClientSpecificActorInfo()
+ {
+ return $this->clientSpecificActorInfo;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Plus_ActivityObjectActorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerification(Google_Service_Plus_ActivityObjectActorVerification $verification)
+ {
+ $this->verification = $verification;
+ }
+ public function getVerification()
+ {
+ return $this->verification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfo.php
new file mode 100644
index 00000000..0c8c8069
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectActorClientSpecificActorInfo extends Google_Model
+{
+ protected $youtubeActorInfoType = 'Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo';
+ protected $youtubeActorInfoDataType = '';
+
+ public function setYoutubeActorInfo(Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo)
+ {
+ $this->youtubeActorInfo = $youtubeActorInfo;
+ }
+ public function getYoutubeActorInfo()
+ {
+ return $this->youtubeActorInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php
new file mode 100644
index 00000000..991c6d73
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model
+{
+ public $channelId;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorImage.php
new file mode 100644
index 00000000..bf949aad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectActorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorVerification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorVerification.php
new file mode 100644
index 00000000..fe27d647
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectActorVerification.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectActorVerification extends Google_Model
+{
+ public $adHocVerified;
+
+ public function setAdHocVerified($adHocVerified)
+ {
+ $this->adHocVerified = $adHocVerified;
+ }
+ public function getAdHocVerified()
+ {
+ return $this->adHocVerified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachments.php
new file mode 100644
index 00000000..2e284160
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachments.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectAttachments extends Google_Collection
+{
+ protected $collection_key = 'thumbnails';
+ public $content;
+ public $displayName;
+ protected $embedType = 'Google_Service_Plus_ActivityObjectAttachmentsEmbed';
+ protected $embedDataType = '';
+ protected $fullImageType = 'Google_Service_Plus_ActivityObjectAttachmentsFullImage';
+ protected $fullImageDataType = '';
+ public $id;
+ protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsImage';
+ protected $imageDataType = '';
+ public $objectType;
+ protected $thumbnailsType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnails';
+ protected $thumbnailsDataType = 'array';
+ public $url;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmbed(Google_Service_Plus_ActivityObjectAttachmentsEmbed $embed)
+ {
+ $this->embed = $embed;
+ }
+ public function getEmbed()
+ {
+ return $this->embed;
+ }
+ public function setFullImage(Google_Service_Plus_ActivityObjectAttachmentsFullImage $fullImage)
+ {
+ $this->fullImage = $fullImage;
+ }
+ public function getFullImage()
+ {
+ return $this->fullImage;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Plus_ActivityObjectAttachmentsImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setThumbnails($thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsEmbed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsEmbed.php
new file mode 100644
index 00000000..56317771
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsEmbed.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectAttachmentsEmbed extends Google_Model
+{
+ public $type;
+ public $url;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsFullImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsFullImage.php
new file mode 100644
index 00000000..b7fb28f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsFullImage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectAttachmentsFullImage extends Google_Model
+{
+ public $height;
+ public $type;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsImage.php
new file mode 100644
index 00000000..728c15df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsImage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectAttachmentsImage extends Google_Model
+{
+ public $height;
+ public $type;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnails.php
new file mode 100644
index 00000000..b0024f02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnails.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectAttachmentsThumbnails extends Google_Model
+{
+ public $description;
+ protected $imageType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage';
+ protected $imageDataType = '';
+ public $url;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setImage(Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnailsImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnailsImage.php
new file mode 100644
index 00000000..b2355287
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectAttachmentsThumbnailsImage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model
+{
+ public $height;
+ public $type;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectPlusoners.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectPlusoners.php
new file mode 100644
index 00000000..9f6dae2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectPlusoners.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectPlusoners extends Google_Model
+{
+ public $selfLink;
+ public $totalItems;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectReplies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectReplies.php
new file mode 100644
index 00000000..9c85fdd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectReplies.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectReplies extends Google_Model
+{
+ public $selfLink;
+ public $totalItems;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectResharers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectResharers.php
new file mode 100644
index 00000000..1f87e81b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityObjectResharers.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityObjectResharers extends Google_Model
+{
+ public $selfLink;
+ public $totalItems;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityProvider.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityProvider.php
new file mode 100644
index 00000000..cf192a33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/ActivityProvider.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_ActivityProvider extends Google_Model
+{
+ public $title;
+
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Comment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Comment.php
new file mode 100644
index 00000000..fa5c0f1c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Comment.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_Comment extends Google_Collection
+{
+ protected $collection_key = 'inReplyTo';
+ protected $actorType = 'Google_Service_Plus_CommentActor';
+ protected $actorDataType = '';
+ public $etag;
+ public $id;
+ protected $inReplyToType = 'Google_Service_Plus_CommentInReplyTo';
+ protected $inReplyToDataType = 'array';
+ public $kind;
+ protected $objectType = 'Google_Service_Plus_CommentObject';
+ protected $objectDataType = '';
+ protected $plusonersType = 'Google_Service_Plus_CommentPlusoners';
+ protected $plusonersDataType = '';
+ public $published;
+ public $selfLink;
+ public $updated;
+ public $verb;
+
+ public function setActor(Google_Service_Plus_CommentActor $actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInReplyTo($inReplyTo)
+ {
+ $this->inReplyTo = $inReplyTo;
+ }
+ public function getInReplyTo()
+ {
+ return $this->inReplyTo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setObject(Google_Service_Plus_CommentObject $object)
+ {
+ $this->object = $object;
+ }
+ public function getObject()
+ {
+ return $this->object;
+ }
+ public function setPlusoners(Google_Service_Plus_CommentPlusoners $plusoners)
+ {
+ $this->plusoners = $plusoners;
+ }
+ public function getPlusoners()
+ {
+ return $this->plusoners;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVerb($verb)
+ {
+ $this->verb = $verb;
+ }
+ public function getVerb()
+ {
+ return $this->verb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActor.php
new file mode 100644
index 00000000..e73f3bf3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActor.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentActor extends Google_Model
+{
+ protected $clientSpecificActorInfoType = 'Google_Service_Plus_CommentActorClientSpecificActorInfo';
+ protected $clientSpecificActorInfoDataType = '';
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_Plus_CommentActorImage';
+ protected $imageDataType = '';
+ public $url;
+ protected $verificationType = 'Google_Service_Plus_CommentActorVerification';
+ protected $verificationDataType = '';
+
+ public function setClientSpecificActorInfo(Google_Service_Plus_CommentActorClientSpecificActorInfo $clientSpecificActorInfo)
+ {
+ $this->clientSpecificActorInfo = $clientSpecificActorInfo;
+ }
+ public function getClientSpecificActorInfo()
+ {
+ return $this->clientSpecificActorInfo;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Plus_CommentActorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerification(Google_Service_Plus_CommentActorVerification $verification)
+ {
+ $this->verification = $verification;
+ }
+ public function getVerification()
+ {
+ return $this->verification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfo.php
new file mode 100644
index 00000000..836950ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentActorClientSpecificActorInfo extends Google_Model
+{
+ protected $youtubeActorInfoType = 'Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo';
+ protected $youtubeActorInfoDataType = '';
+
+ public function setYoutubeActorInfo(Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo)
+ {
+ $this->youtubeActorInfo = $youtubeActorInfo;
+ }
+ public function getYoutubeActorInfo()
+ {
+ return $this->youtubeActorInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfoYoutubeActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfoYoutubeActorInfo.php
new file mode 100644
index 00000000..bd055736
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorClientSpecificActorInfoYoutubeActorInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model
+{
+ public $channelId;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorImage.php
new file mode 100644
index 00000000..484506cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentActorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorVerification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorVerification.php
new file mode 100644
index 00000000..43436d9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentActorVerification.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentActorVerification extends Google_Model
+{
+ public $adHocVerified;
+
+ public function setAdHocVerified($adHocVerified)
+ {
+ $this->adHocVerified = $adHocVerified;
+ }
+ public function getAdHocVerified()
+ {
+ return $this->adHocVerified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentFeed.php
new file mode 100644
index 00000000..e5a94f51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentFeed.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $id;
+ protected $itemsType = 'Google_Service_Plus_Comment';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $title;
+ public $updated;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentInReplyTo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentInReplyTo.php
new file mode 100644
index 00000000..8181cdf6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentInReplyTo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentInReplyTo extends Google_Model
+{
+ public $id;
+ public $url;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentObject.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentObject.php
new file mode 100644
index 00000000..89773d4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentObject.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentObject extends Google_Model
+{
+ public $content;
+ public $objectType;
+ public $originalContent;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setOriginalContent($originalContent)
+ {
+ $this->originalContent = $originalContent;
+ }
+ public function getOriginalContent()
+ {
+ return $this->originalContent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentPlusoners.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentPlusoners.php
new file mode 100644
index 00000000..2ab1ded9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/CommentPlusoners.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_CommentPlusoners extends Google_Model
+{
+ public $totalItems;
+
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PeopleFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PeopleFeed.php
new file mode 100644
index 00000000..dcf19fc6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PeopleFeed.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PeopleFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Plus_Person';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+ public $title;
+ public $totalItems;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Person.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Person.php
new file mode 100644
index 00000000..32592e12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Person.php
@@ -0,0 +1,300 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_Person extends Google_Collection
+{
+ protected $collection_key = 'urls';
+ public $aboutMe;
+ protected $ageRangeType = 'Google_Service_Plus_PersonAgeRange';
+ protected $ageRangeDataType = '';
+ public $birthday;
+ public $braggingRights;
+ public $circledByCount;
+ protected $coverType = 'Google_Service_Plus_PersonCover';
+ protected $coverDataType = '';
+ public $currentLocation;
+ public $displayName;
+ public $domain;
+ protected $emailsType = 'Google_Service_Plus_PersonEmails';
+ protected $emailsDataType = 'array';
+ public $etag;
+ public $gender;
+ public $id;
+ protected $imageType = 'Google_Service_Plus_PersonImage';
+ protected $imageDataType = '';
+ public $isPlusUser;
+ public $kind;
+ public $language;
+ protected $nameType = 'Google_Service_Plus_PersonName';
+ protected $nameDataType = '';
+ public $nickname;
+ public $objectType;
+ public $occupation;
+ protected $organizationsType = 'Google_Service_Plus_PersonOrganizations';
+ protected $organizationsDataType = 'array';
+ protected $placesLivedType = 'Google_Service_Plus_PersonPlacesLived';
+ protected $placesLivedDataType = 'array';
+ public $plusOneCount;
+ public $relationshipStatus;
+ public $skills;
+ public $tagline;
+ public $url;
+ protected $urlsType = 'Google_Service_Plus_PersonUrls';
+ protected $urlsDataType = 'array';
+ public $verified;
+
+ public function setAboutMe($aboutMe)
+ {
+ $this->aboutMe = $aboutMe;
+ }
+ public function getAboutMe()
+ {
+ return $this->aboutMe;
+ }
+ public function setAgeRange(Google_Service_Plus_PersonAgeRange $ageRange)
+ {
+ $this->ageRange = $ageRange;
+ }
+ public function getAgeRange()
+ {
+ return $this->ageRange;
+ }
+ public function setBirthday($birthday)
+ {
+ $this->birthday = $birthday;
+ }
+ public function getBirthday()
+ {
+ return $this->birthday;
+ }
+ public function setBraggingRights($braggingRights)
+ {
+ $this->braggingRights = $braggingRights;
+ }
+ public function getBraggingRights()
+ {
+ return $this->braggingRights;
+ }
+ public function setCircledByCount($circledByCount)
+ {
+ $this->circledByCount = $circledByCount;
+ }
+ public function getCircledByCount()
+ {
+ return $this->circledByCount;
+ }
+ public function setCover(Google_Service_Plus_PersonCover $cover)
+ {
+ $this->cover = $cover;
+ }
+ public function getCover()
+ {
+ return $this->cover;
+ }
+ public function setCurrentLocation($currentLocation)
+ {
+ $this->currentLocation = $currentLocation;
+ }
+ public function getCurrentLocation()
+ {
+ return $this->currentLocation;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setEmails($emails)
+ {
+ $this->emails = $emails;
+ }
+ public function getEmails()
+ {
+ return $this->emails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGender($gender)
+ {
+ $this->gender = $gender;
+ }
+ public function getGender()
+ {
+ return $this->gender;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Plus_PersonImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setIsPlusUser($isPlusUser)
+ {
+ $this->isPlusUser = $isPlusUser;
+ }
+ public function getIsPlusUser()
+ {
+ return $this->isPlusUser;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setName(Google_Service_Plus_PersonName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNickname($nickname)
+ {
+ $this->nickname = $nickname;
+ }
+ public function getNickname()
+ {
+ return $this->nickname;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setOccupation($occupation)
+ {
+ $this->occupation = $occupation;
+ }
+ public function getOccupation()
+ {
+ return $this->occupation;
+ }
+ public function setOrganizations($organizations)
+ {
+ $this->organizations = $organizations;
+ }
+ public function getOrganizations()
+ {
+ return $this->organizations;
+ }
+ public function setPlacesLived($placesLived)
+ {
+ $this->placesLived = $placesLived;
+ }
+ public function getPlacesLived()
+ {
+ return $this->placesLived;
+ }
+ public function setPlusOneCount($plusOneCount)
+ {
+ $this->plusOneCount = $plusOneCount;
+ }
+ public function getPlusOneCount()
+ {
+ return $this->plusOneCount;
+ }
+ public function setRelationshipStatus($relationshipStatus)
+ {
+ $this->relationshipStatus = $relationshipStatus;
+ }
+ public function getRelationshipStatus()
+ {
+ return $this->relationshipStatus;
+ }
+ public function setSkills($skills)
+ {
+ $this->skills = $skills;
+ }
+ public function getSkills()
+ {
+ return $this->skills;
+ }
+ public function setTagline($tagline)
+ {
+ $this->tagline = $tagline;
+ }
+ public function getTagline()
+ {
+ return $this->tagline;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setUrls($urls)
+ {
+ $this->urls = $urls;
+ }
+ public function getUrls()
+ {
+ return $this->urls;
+ }
+ public function setVerified($verified)
+ {
+ $this->verified = $verified;
+ }
+ public function getVerified()
+ {
+ return $this->verified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonAgeRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonAgeRange.php
new file mode 100644
index 00000000..e4a00a23
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonAgeRange.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonAgeRange extends Google_Model
+{
+ public $max;
+ public $min;
+
+ public function setMax($max)
+ {
+ $this->max = $max;
+ }
+ public function getMax()
+ {
+ return $this->max;
+ }
+ public function setMin($min)
+ {
+ $this->min = $min;
+ }
+ public function getMin()
+ {
+ return $this->min;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCover.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCover.php
new file mode 100644
index 00000000..c8a53e7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCover.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonCover extends Google_Model
+{
+ protected $coverInfoType = 'Google_Service_Plus_PersonCoverCoverInfo';
+ protected $coverInfoDataType = '';
+ protected $coverPhotoType = 'Google_Service_Plus_PersonCoverCoverPhoto';
+ protected $coverPhotoDataType = '';
+ public $layout;
+
+ public function setCoverInfo(Google_Service_Plus_PersonCoverCoverInfo $coverInfo)
+ {
+ $this->coverInfo = $coverInfo;
+ }
+ public function getCoverInfo()
+ {
+ return $this->coverInfo;
+ }
+ public function setCoverPhoto(Google_Service_Plus_PersonCoverCoverPhoto $coverPhoto)
+ {
+ $this->coverPhoto = $coverPhoto;
+ }
+ public function getCoverPhoto()
+ {
+ return $this->coverPhoto;
+ }
+ public function setLayout($layout)
+ {
+ $this->layout = $layout;
+ }
+ public function getLayout()
+ {
+ return $this->layout;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverInfo.php
new file mode 100644
index 00000000..d5b55da1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonCoverCoverInfo extends Google_Model
+{
+ public $leftImageOffset;
+ public $topImageOffset;
+
+ public function setLeftImageOffset($leftImageOffset)
+ {
+ $this->leftImageOffset = $leftImageOffset;
+ }
+ public function getLeftImageOffset()
+ {
+ return $this->leftImageOffset;
+ }
+ public function setTopImageOffset($topImageOffset)
+ {
+ $this->topImageOffset = $topImageOffset;
+ }
+ public function getTopImageOffset()
+ {
+ return $this->topImageOffset;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverPhoto.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverPhoto.php
new file mode 100644
index 00000000..b22a93d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonCoverCoverPhoto.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonCoverCoverPhoto extends Google_Model
+{
+ public $height;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonEmails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonEmails.php
new file mode 100644
index 00000000..b1141224
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonEmails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonEmails extends Google_Model
+{
+ public $type;
+ public $value;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonImage.php
new file mode 100644
index 00000000..cf086abe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonImage.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonImage extends Google_Model
+{
+ public $isDefault;
+ public $url;
+
+ public function setIsDefault($isDefault)
+ {
+ $this->isDefault = $isDefault;
+ }
+ public function getIsDefault()
+ {
+ return $this->isDefault;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonName.php
new file mode 100644
index 00000000..a8a4067d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonName.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonName extends Google_Model
+{
+ public $familyName;
+ public $formatted;
+ public $givenName;
+ public $honorificPrefix;
+ public $honorificSuffix;
+ public $middleName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setFormatted($formatted)
+ {
+ $this->formatted = $formatted;
+ }
+ public function getFormatted()
+ {
+ return $this->formatted;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+ public function setHonorificPrefix($honorificPrefix)
+ {
+ $this->honorificPrefix = $honorificPrefix;
+ }
+ public function getHonorificPrefix()
+ {
+ return $this->honorificPrefix;
+ }
+ public function setHonorificSuffix($honorificSuffix)
+ {
+ $this->honorificSuffix = $honorificSuffix;
+ }
+ public function getHonorificSuffix()
+ {
+ return $this->honorificSuffix;
+ }
+ public function setMiddleName($middleName)
+ {
+ $this->middleName = $middleName;
+ }
+ public function getMiddleName()
+ {
+ return $this->middleName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonOrganizations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonOrganizations.php
new file mode 100644
index 00000000..a0a6f12c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonOrganizations.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonOrganizations extends Google_Model
+{
+ public $department;
+ public $description;
+ public $endDate;
+ public $location;
+ public $name;
+ public $primary;
+ public $startDate;
+ public $title;
+ public $type;
+
+ public function setDepartment($department)
+ {
+ $this->department = $department;
+ }
+ public function getDepartment()
+ {
+ return $this->department;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonPlacesLived.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonPlacesLived.php
new file mode 100644
index 00000000..1055e4c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonPlacesLived.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonPlacesLived extends Google_Model
+{
+ public $primary;
+ public $value;
+
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonUrls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonUrls.php
new file mode 100644
index 00000000..aa028e79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PersonUrls.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PersonUrls extends Google_Model
+{
+ public $label;
+ public $type;
+ public $value;
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Place.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Place.php
new file mode 100644
index 00000000..978bc414
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Place.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_Place extends Google_Model
+{
+ protected $addressType = 'Google_Service_Plus_PlaceAddress';
+ protected $addressDataType = '';
+ public $displayName;
+ public $id;
+ public $kind;
+ protected $positionType = 'Google_Service_Plus_PlacePosition';
+ protected $positionDataType = '';
+
+ public function setAddress(Google_Service_Plus_PlaceAddress $address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPosition(Google_Service_Plus_PlacePosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlaceAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlaceAddress.php
new file mode 100644
index 00000000..78c4beac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlaceAddress.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PlaceAddress extends Google_Model
+{
+ public $formatted;
+
+ public function setFormatted($formatted)
+ {
+ $this->formatted = $formatted;
+ }
+ public function getFormatted()
+ {
+ return $this->formatted;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlacePosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlacePosition.php
new file mode 100644
index 00000000..29ef840e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlacePosition.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PlacePosition extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlusAclentryResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlusAclentryResource.php
new file mode 100644
index 00000000..40c07d21
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/PlusAclentryResource.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Plus_PlusAclentryResource extends Google_Model
+{
+ public $displayName;
+ public $id;
+ public $type;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Activities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Activities.php
new file mode 100644
index 00000000..db22c401
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Activities.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "activities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusService = new Google_Service_Plus(...);
+ * $activities = $plusService->activities;
+ * </code>
+ */
+class Google_Service_Plus_Resource_Activities extends Google_Service_Resource
+{
+ /**
+ * Get an activity. (activities.get)
+ *
+ * @param string $activityId The ID of the activity to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Plus_Activity
+ */
+ public function get($activityId, $optParams = array())
+ {
+ $params = array('activityId' => $activityId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Plus_Activity");
+ }
+ /**
+ * List all of the activities in the specified collection for a particular user.
+ * (activities.listActivities)
+ *
+ * @param string $userId The ID of the user to get activities for. The special
+ * value "me" can be used to indicate the authenticated user.
+ * @param string $collection The collection of activities to list.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of activities to include in
+ * the response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_Plus_ActivityFeed
+ */
+ public function listActivities($userId, $collection, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Plus_ActivityFeed");
+ }
+ /**
+ * Search public activities. (activities.search)
+ *
+ * @param string $query Full-text search query string.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language Specify the preferred language to search with. See
+ * search language codes for available values.
+ * @opt_param string maxResults The maximum number of activities to include in
+ * the response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string orderBy Specifies how to order search results.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response. This
+ * token can be of any length.
+ * @return Google_Service_Plus_ActivityFeed
+ */
+ public function search($query, $optParams = array())
+ {
+ $params = array('query' => $query);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Plus_ActivityFeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Comments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Comments.php
new file mode 100644
index 00000000..ca93d62a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/Comments.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusService = new Google_Service_Plus(...);
+ * $comments = $plusService->comments;
+ * </code>
+ */
+class Google_Service_Plus_Resource_Comments extends Google_Service_Resource
+{
+ /**
+ * Get a comment. (comments.get)
+ *
+ * @param string $commentId The ID of the comment to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Plus_Comment
+ */
+ public function get($commentId, $optParams = array())
+ {
+ $params = array('commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Plus_Comment");
+ }
+ /**
+ * List all of the comments for an activity. (comments.listComments)
+ *
+ * @param string $activityId The ID of the activity to get comments for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of comments to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @opt_param string sortOrder The order in which to sort the list of comments.
+ * @return Google_Service_Plus_CommentFeed
+ */
+ public function listComments($activityId, $optParams = array())
+ {
+ $params = array('activityId' => $activityId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Plus_CommentFeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/People.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/People.php
new file mode 100644
index 00000000..0874bb8a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Plus/Resource/People.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "people" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusService = new Google_Service_Plus(...);
+ * $people = $plusService->people;
+ * </code>
+ */
+class Google_Service_Plus_Resource_People extends Google_Service_Resource
+{
+ /**
+ * Get a person's profile. If your app uses scope
+ * https://www.googleapis.com/auth/plus.login, this method is guaranteed to
+ * return ageRange and language. (people.get)
+ *
+ * @param string $userId The ID of the person to get the profile for. The
+ * special value "me" can be used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Plus_Person
+ */
+ public function get($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Plus_Person");
+ }
+ /**
+ * List all of the people in the specified collection. (people.listPeople)
+ *
+ * @param string $userId Get the collection of people for the person identified.
+ * Use "me" to indicate the authenticated user.
+ * @param string $collection The collection of people to list.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of people to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string orderBy The order to return people in.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_Plus_PeopleFeed
+ */
+ public function listPeople($userId, $collection, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Plus_PeopleFeed");
+ }
+ /**
+ * List all of the people in the specified collection for a particular activity.
+ * (people.listByActivity)
+ *
+ * @param string $activityId The ID of the activity to get the list of people
+ * for.
+ * @param string $collection The collection of people to list.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of people to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_Plus_PeopleFeed
+ */
+ public function listByActivity($activityId, $collection, $optParams = array())
+ {
+ $params = array('activityId' => $activityId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('listByActivity', array($params), "Google_Service_Plus_PeopleFeed");
+ }
+ /**
+ * Search all public profiles. (people.search)
+ *
+ * @param string $query Specify a query string for full text search of public
+ * text in all profiles.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language Specify the preferred language to search with. See
+ * search language codes for available values.
+ * @opt_param string maxResults The maximum number of people to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response. This
+ * token can be of any length.
+ * @return Google_Service_Plus_PeopleFeed
+ */
+ public function search($query, $optParams = array())
+ {
+ $params = array('query' => $query);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Plus_PeopleFeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains.php
new file mode 100644
index 00000000..0b7ed0bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains.php
@@ -0,0 +1,453 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for PlusDomains (v1).
+ *
+ * <p>
+ * Builds on top of the Google+ platform for Google Apps Domains.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/+/domains/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_PlusDomains extends Google_Service
+{
+ /** View your circles and the people and pages in them. */
+ const PLUS_CIRCLES_READ =
+ "https://www.googleapis.com/auth/plus.circles.read";
+ /** Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.. */
+ const PLUS_CIRCLES_WRITE =
+ "https://www.googleapis.com/auth/plus.circles.write";
+ /** Know the list of people in your circles, your age range, and language. */
+ const PLUS_LOGIN =
+ "https://www.googleapis.com/auth/plus.login";
+ /** Know who you are on Google. */
+ const PLUS_ME =
+ "https://www.googleapis.com/auth/plus.me";
+ /** Send your photos and videos to Google+. */
+ const PLUS_MEDIA_UPLOAD =
+ "https://www.googleapis.com/auth/plus.media.upload";
+ /** View your own Google+ profile and profiles visible to you. */
+ const PLUS_PROFILES_READ =
+ "https://www.googleapis.com/auth/plus.profiles.read";
+ /** View your Google+ posts, comments, and stream. */
+ const PLUS_STREAM_READ =
+ "https://www.googleapis.com/auth/plus.stream.read";
+ /** Manage your Google+ posts, comments, and stream. */
+ const PLUS_STREAM_WRITE =
+ "https://www.googleapis.com/auth/plus.stream.write";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+ /** View your basic profile info. */
+ const USERINFO_PROFILE =
+ "https://www.googleapis.com/auth/userinfo.profile";
+
+ public $activities;
+ public $audiences;
+ public $circles;
+ public $comments;
+ public $media;
+ public $people;
+
+ /**
+ * Constructs the internal representation of the PlusDomains service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'plusDomains/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'plusDomains';
+
+ $this->activities = new Google_Service_PlusDomains_Resource_Activities(
+ $this,
+ $this->serviceName,
+ 'activities',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'activities/{activityId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'activityId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'people/{userId}/activities',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'preview' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'people/{userId}/activities/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->audiences = new Google_Service_PlusDomains_Resource_Audiences(
+ $this,
+ $this->serviceName,
+ 'audiences',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'people/{userId}/audiences',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->circles = new Google_Service_PlusDomains_Resource_Circles(
+ $this,
+ $this->serviceName,
+ 'circles',
+ array(
+ 'methods' => array(
+ 'addPeople' => array(
+ 'path' => 'circles/{circleId}/people',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'circleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'email' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'circles/{circleId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'circleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'people/{userId}/circles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'people/{userId}/circles',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'circles/{circleId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'circleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'remove' => array(
+ 'path' => 'circles/{circleId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'circleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'removePeople' => array(
+ 'path' => 'circles/{circleId}/people',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'circleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'email' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'userId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'circles/{circleId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'circleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->comments = new Google_Service_PlusDomains_Resource_Comments(
+ $this,
+ $this->serviceName,
+ 'comments',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'comments/{commentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'commentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'activities/{activityId}/comments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'activityId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'activities/{activityId}/comments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'activityId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sortOrder' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->media = new Google_Service_PlusDomains_Resource_Media(
+ $this,
+ $this->serviceName,
+ 'media',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'people/{userId}/media/{collection}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->people = new Google_Service_PlusDomains_Resource_People(
+ $this,
+ $this->serviceName,
+ 'people',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'people/{userId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'people/{userId}/people/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listByActivity' => array(
+ 'path' => 'activities/{activityId}/people/{collection}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'activityId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'collection' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listByCircle' => array(
+ 'path' => 'circles/{circleId}/people',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'circleId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Acl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Acl.php
new file mode 100644
index 00000000..b60f0c80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Acl.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Acl extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $description;
+ public $domainRestricted;
+ protected $itemsType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDomainRestricted($domainRestricted)
+ {
+ $this->domainRestricted = $domainRestricted;
+ }
+ public function getDomainRestricted()
+ {
+ return $this->domainRestricted;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Activity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Activity.php
new file mode 100644
index 00000000..1f2df37e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Activity.php
@@ -0,0 +1,206 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Activity extends Google_Model
+{
+ protected $accessType = 'Google_Service_PlusDomains_Acl';
+ protected $accessDataType = '';
+ protected $actorType = 'Google_Service_PlusDomains_ActivityActor';
+ protected $actorDataType = '';
+ public $address;
+ public $annotation;
+ public $crosspostSource;
+ public $etag;
+ public $geocode;
+ public $id;
+ public $kind;
+ protected $locationType = 'Google_Service_PlusDomains_Place';
+ protected $locationDataType = '';
+ protected $objectType = 'Google_Service_PlusDomains_ActivityObject';
+ protected $objectDataType = '';
+ public $placeId;
+ public $placeName;
+ protected $providerType = 'Google_Service_PlusDomains_ActivityProvider';
+ protected $providerDataType = '';
+ public $published;
+ public $radius;
+ public $title;
+ public $updated;
+ public $url;
+ public $verb;
+
+ public function setAccess(Google_Service_PlusDomains_Acl $access)
+ {
+ $this->access = $access;
+ }
+ public function getAccess()
+ {
+ return $this->access;
+ }
+ public function setActor(Google_Service_PlusDomains_ActivityActor $actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setAnnotation($annotation)
+ {
+ $this->annotation = $annotation;
+ }
+ public function getAnnotation()
+ {
+ return $this->annotation;
+ }
+ public function setCrosspostSource($crosspostSource)
+ {
+ $this->crosspostSource = $crosspostSource;
+ }
+ public function getCrosspostSource()
+ {
+ return $this->crosspostSource;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGeocode($geocode)
+ {
+ $this->geocode = $geocode;
+ }
+ public function getGeocode()
+ {
+ return $this->geocode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation(Google_Service_PlusDomains_Place $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setObject(Google_Service_PlusDomains_ActivityObject $object)
+ {
+ $this->object = $object;
+ }
+ public function getObject()
+ {
+ return $this->object;
+ }
+ public function setPlaceId($placeId)
+ {
+ $this->placeId = $placeId;
+ }
+ public function getPlaceId()
+ {
+ return $this->placeId;
+ }
+ public function setPlaceName($placeName)
+ {
+ $this->placeName = $placeName;
+ }
+ public function getPlaceName()
+ {
+ return $this->placeName;
+ }
+ public function setProvider(Google_Service_PlusDomains_ActivityProvider $provider)
+ {
+ $this->provider = $provider;
+ }
+ public function getProvider()
+ {
+ return $this->provider;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setRadius($radius)
+ {
+ $this->radius = $radius;
+ }
+ public function getRadius()
+ {
+ return $this->radius;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerb($verb)
+ {
+ $this->verb = $verb;
+ }
+ public function getVerb()
+ {
+ return $this->verb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActor.php
new file mode 100644
index 00000000..97e58265
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActor.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityActor extends Google_Model
+{
+ protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo';
+ protected $clientSpecificActorInfoDataType = '';
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_PlusDomains_ActivityActorImage';
+ protected $imageDataType = '';
+ protected $nameType = 'Google_Service_PlusDomains_ActivityActorName';
+ protected $nameDataType = '';
+ public $url;
+ protected $verificationType = 'Google_Service_PlusDomains_ActivityActorVerification';
+ protected $verificationDataType = '';
+
+ public function setClientSpecificActorInfo(Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo $clientSpecificActorInfo)
+ {
+ $this->clientSpecificActorInfo = $clientSpecificActorInfo;
+ }
+ public function getClientSpecificActorInfo()
+ {
+ return $this->clientSpecificActorInfo;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_PlusDomains_ActivityActorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setName(Google_Service_PlusDomains_ActivityActorName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerification(Google_Service_PlusDomains_ActivityActorVerification $verification)
+ {
+ $this->verification = $verification;
+ }
+ public function getVerification()
+ {
+ return $this->verification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfo.php
new file mode 100644
index 00000000..bba5a0dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityActorClientSpecificActorInfo extends Google_Model
+{
+ protected $youtubeActorInfoType = 'Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo';
+ protected $youtubeActorInfoDataType = '';
+
+ public function setYoutubeActorInfo(Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo)
+ {
+ $this->youtubeActorInfo = $youtubeActorInfo;
+ }
+ public function getYoutubeActorInfo()
+ {
+ return $this->youtubeActorInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php
new file mode 100644
index 00000000..1d255ac4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorClientSpecificActorInfoYoutubeActorInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model
+{
+ public $channelId;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorImage.php
new file mode 100644
index 00000000..a752b05d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityActorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorName.php
new file mode 100644
index 00000000..ed035fea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorName.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityActorName extends Google_Model
+{
+ public $familyName;
+ public $givenName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorVerification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorVerification.php
new file mode 100644
index 00000000..db86d0b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityActorVerification.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityActorVerification extends Google_Model
+{
+ public $adHocVerified;
+
+ public function setAdHocVerified($adHocVerified)
+ {
+ $this->adHocVerified = $adHocVerified;
+ }
+ public function getAdHocVerified()
+ {
+ return $this->adHocVerified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityFeed.php
new file mode 100644
index 00000000..9b163b44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityFeed.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $id;
+ protected $itemsType = 'Google_Service_PlusDomains_Activity';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ public $title;
+ public $updated;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObject.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObject.php
new file mode 100644
index 00000000..a8bc9b86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObject.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObject extends Google_Collection
+{
+ protected $collection_key = 'attachments';
+ protected $actorType = 'Google_Service_PlusDomains_ActivityObjectActor';
+ protected $actorDataType = '';
+ protected $attachmentsType = 'Google_Service_PlusDomains_ActivityObjectAttachments';
+ protected $attachmentsDataType = 'array';
+ public $content;
+ public $id;
+ public $objectType;
+ public $originalContent;
+ protected $plusonersType = 'Google_Service_PlusDomains_ActivityObjectPlusoners';
+ protected $plusonersDataType = '';
+ protected $repliesType = 'Google_Service_PlusDomains_ActivityObjectReplies';
+ protected $repliesDataType = '';
+ protected $resharersType = 'Google_Service_PlusDomains_ActivityObjectResharers';
+ protected $resharersDataType = '';
+ protected $statusForViewerType = 'Google_Service_PlusDomains_ActivityObjectStatusForViewer';
+ protected $statusForViewerDataType = '';
+ public $url;
+
+ public function setActor(Google_Service_PlusDomains_ActivityObjectActor $actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setAttachments($attachments)
+ {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments()
+ {
+ return $this->attachments;
+ }
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setOriginalContent($originalContent)
+ {
+ $this->originalContent = $originalContent;
+ }
+ public function getOriginalContent()
+ {
+ return $this->originalContent;
+ }
+ public function setPlusoners(Google_Service_PlusDomains_ActivityObjectPlusoners $plusoners)
+ {
+ $this->plusoners = $plusoners;
+ }
+ public function getPlusoners()
+ {
+ return $this->plusoners;
+ }
+ public function setReplies(Google_Service_PlusDomains_ActivityObjectReplies $replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+ public function setResharers(Google_Service_PlusDomains_ActivityObjectResharers $resharers)
+ {
+ $this->resharers = $resharers;
+ }
+ public function getResharers()
+ {
+ return $this->resharers;
+ }
+ public function setStatusForViewer(Google_Service_PlusDomains_ActivityObjectStatusForViewer $statusForViewer)
+ {
+ $this->statusForViewer = $statusForViewer;
+ }
+ public function getStatusForViewer()
+ {
+ return $this->statusForViewer;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActor.php
new file mode 100644
index 00000000..9376ad40
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActor.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectActor extends Google_Model
+{
+ protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo';
+ protected $clientSpecificActorInfoDataType = '';
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_PlusDomains_ActivityObjectActorImage';
+ protected $imageDataType = '';
+ public $url;
+ protected $verificationType = 'Google_Service_PlusDomains_ActivityObjectActorVerification';
+ protected $verificationDataType = '';
+
+ public function setClientSpecificActorInfo(Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo $clientSpecificActorInfo)
+ {
+ $this->clientSpecificActorInfo = $clientSpecificActorInfo;
+ }
+ public function getClientSpecificActorInfo()
+ {
+ return $this->clientSpecificActorInfo;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_PlusDomains_ActivityObjectActorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerification(Google_Service_PlusDomains_ActivityObjectActorVerification $verification)
+ {
+ $this->verification = $verification;
+ }
+ public function getVerification()
+ {
+ return $this->verification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfo.php
new file mode 100644
index 00000000..0188e502
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfo extends Google_Model
+{
+ protected $youtubeActorInfoType = 'Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo';
+ protected $youtubeActorInfoDataType = '';
+
+ public function setYoutubeActorInfo(Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo)
+ {
+ $this->youtubeActorInfo = $youtubeActorInfo;
+ }
+ public function getYoutubeActorInfo()
+ {
+ return $this->youtubeActorInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php
new file mode 100644
index 00000000..1105e125
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model
+{
+ public $channelId;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorImage.php
new file mode 100644
index 00000000..f0ff502c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectActorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorVerification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorVerification.php
new file mode 100644
index 00000000..e1586982
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectActorVerification.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectActorVerification extends Google_Model
+{
+ public $adHocVerified;
+
+ public function setAdHocVerified($adHocVerified)
+ {
+ $this->adHocVerified = $adHocVerified;
+ }
+ public function getAdHocVerified()
+ {
+ return $this->adHocVerified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachments.php
new file mode 100644
index 00000000..3a0e9ebd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachments.php
@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectAttachments extends Google_Collection
+{
+ protected $collection_key = 'thumbnails';
+ public $content;
+ public $displayName;
+ protected $embedType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed';
+ protected $embedDataType = '';
+ protected $fullImageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage';
+ protected $fullImageDataType = '';
+ public $id;
+ protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsImage';
+ protected $imageDataType = '';
+ public $objectType;
+ protected $previewThumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails';
+ protected $previewThumbnailsDataType = 'array';
+ protected $thumbnailsType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails';
+ protected $thumbnailsDataType = 'array';
+ public $url;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEmbed(Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed $embed)
+ {
+ $this->embed = $embed;
+ }
+ public function getEmbed()
+ {
+ return $this->embed;
+ }
+ public function setFullImage(Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage $fullImage)
+ {
+ $this->fullImage = $fullImage;
+ }
+ public function getFullImage()
+ {
+ return $this->fullImage;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setPreviewThumbnails($previewThumbnails)
+ {
+ $this->previewThumbnails = $previewThumbnails;
+ }
+ public function getPreviewThumbnails()
+ {
+ return $this->previewThumbnails;
+ }
+ public function setThumbnails($thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsEmbed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsEmbed.php
new file mode 100644
index 00000000..c2c0c591
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsEmbed.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectAttachmentsEmbed extends Google_Model
+{
+ public $type;
+ public $url;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsFullImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsFullImage.php
new file mode 100644
index 00000000..f06394f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsFullImage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectAttachmentsFullImage extends Google_Model
+{
+ public $height;
+ public $type;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsImage.php
new file mode 100644
index 00000000..60ece099
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsImage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectAttachmentsImage extends Google_Model
+{
+ public $height;
+ public $type;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsPreviewThumbnails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsPreviewThumbnails.php
new file mode 100644
index 00000000..f67f0f5b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsPreviewThumbnails.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectAttachmentsPreviewThumbnails extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnails.php
new file mode 100644
index 00000000..3196e4d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnails.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnails extends Google_Model
+{
+ public $description;
+ protected $imageType = 'Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage';
+ protected $imageDataType = '';
+ public $url;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setImage(Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnailsImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnailsImage.php
new file mode 100644
index 00000000..70e1c5de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectAttachmentsThumbnailsImage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectAttachmentsThumbnailsImage extends Google_Model
+{
+ public $height;
+ public $type;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectPlusoners.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectPlusoners.php
new file mode 100644
index 00000000..62b2ebfd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectPlusoners.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectPlusoners extends Google_Model
+{
+ public $selfLink;
+ public $totalItems;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectReplies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectReplies.php
new file mode 100644
index 00000000..d4cbbe49
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectReplies.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectReplies extends Google_Model
+{
+ public $selfLink;
+ public $totalItems;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectResharers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectResharers.php
new file mode 100644
index 00000000..afc2a9e3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectResharers.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectResharers extends Google_Model
+{
+ public $selfLink;
+ public $totalItems;
+
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectStatusForViewer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectStatusForViewer.php
new file mode 100644
index 00000000..8401d62b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityObjectStatusForViewer.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityObjectStatusForViewer extends Google_Model
+{
+ public $canComment;
+ public $canPlusone;
+ public $canUpdate;
+ public $isPlusOned;
+ public $resharingDisabled;
+
+ public function setCanComment($canComment)
+ {
+ $this->canComment = $canComment;
+ }
+ public function getCanComment()
+ {
+ return $this->canComment;
+ }
+ public function setCanPlusone($canPlusone)
+ {
+ $this->canPlusone = $canPlusone;
+ }
+ public function getCanPlusone()
+ {
+ return $this->canPlusone;
+ }
+ public function setCanUpdate($canUpdate)
+ {
+ $this->canUpdate = $canUpdate;
+ }
+ public function getCanUpdate()
+ {
+ return $this->canUpdate;
+ }
+ public function setIsPlusOned($isPlusOned)
+ {
+ $this->isPlusOned = $isPlusOned;
+ }
+ public function getIsPlusOned()
+ {
+ return $this->isPlusOned;
+ }
+ public function setResharingDisabled($resharingDisabled)
+ {
+ $this->resharingDisabled = $resharingDisabled;
+ }
+ public function getResharingDisabled()
+ {
+ return $this->resharingDisabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityProvider.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityProvider.php
new file mode 100644
index 00000000..bab95e6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/ActivityProvider.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_ActivityProvider extends Google_Model
+{
+ public $title;
+
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Audience.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Audience.php
new file mode 100644
index 00000000..7298be84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Audience.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Audience extends Google_Model
+{
+ public $etag;
+ protected $itemType = 'Google_Service_PlusDomains_PlusDomainsAclentryResource';
+ protected $itemDataType = '';
+ public $kind;
+ public $memberCount;
+ public $visibility;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItem(Google_Service_PlusDomains_PlusDomainsAclentryResource $item)
+ {
+ $this->item = $item;
+ }
+ public function getItem()
+ {
+ return $this->item;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMemberCount($memberCount)
+ {
+ $this->memberCount = $memberCount;
+ }
+ public function getMemberCount()
+ {
+ return $this->memberCount;
+ }
+ public function setVisibility($visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/AudiencesFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/AudiencesFeed.php
new file mode 100644
index 00000000..65a3ec45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/AudiencesFeed.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_AudiencesFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_PlusDomains_Audience';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Circle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Circle.php
new file mode 100644
index 00000000..c21061aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Circle.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Circle extends Google_Model
+{
+ public $description;
+ public $displayName;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $peopleType = 'Google_Service_PlusDomains_CirclePeople';
+ protected $peopleDataType = '';
+ public $selfLink;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPeople(Google_Service_PlusDomains_CirclePeople $people)
+ {
+ $this->people = $people;
+ }
+ public function getPeople()
+ {
+ return $this->people;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CircleFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CircleFeed.php
new file mode 100644
index 00000000..78eb2af4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CircleFeed.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CircleFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_PlusDomains_Circle';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ public $title;
+ public $totalItems;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CirclePeople.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CirclePeople.php
new file mode 100644
index 00000000..1d3c63c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CirclePeople.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CirclePeople extends Google_Model
+{
+ public $totalItems;
+
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Comment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Comment.php
new file mode 100644
index 00000000..8795db8c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Comment.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Comment extends Google_Collection
+{
+ protected $collection_key = 'inReplyTo';
+ protected $actorType = 'Google_Service_PlusDomains_CommentActor';
+ protected $actorDataType = '';
+ public $etag;
+ public $id;
+ protected $inReplyToType = 'Google_Service_PlusDomains_CommentInReplyTo';
+ protected $inReplyToDataType = 'array';
+ public $kind;
+ protected $objectType = 'Google_Service_PlusDomains_CommentObject';
+ protected $objectDataType = '';
+ protected $plusonersType = 'Google_Service_PlusDomains_CommentPlusoners';
+ protected $plusonersDataType = '';
+ public $published;
+ public $selfLink;
+ public $updated;
+ public $verb;
+
+ public function setActor(Google_Service_PlusDomains_CommentActor $actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInReplyTo($inReplyTo)
+ {
+ $this->inReplyTo = $inReplyTo;
+ }
+ public function getInReplyTo()
+ {
+ return $this->inReplyTo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setObject(Google_Service_PlusDomains_CommentObject $object)
+ {
+ $this->object = $object;
+ }
+ public function getObject()
+ {
+ return $this->object;
+ }
+ public function setPlusoners(Google_Service_PlusDomains_CommentPlusoners $plusoners)
+ {
+ $this->plusoners = $plusoners;
+ }
+ public function getPlusoners()
+ {
+ return $this->plusoners;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVerb($verb)
+ {
+ $this->verb = $verb;
+ }
+ public function getVerb()
+ {
+ return $this->verb;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActor.php
new file mode 100644
index 00000000..3477f1f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActor.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentActor extends Google_Model
+{
+ protected $clientSpecificActorInfoType = 'Google_Service_PlusDomains_CommentActorClientSpecificActorInfo';
+ protected $clientSpecificActorInfoDataType = '';
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_PlusDomains_CommentActorImage';
+ protected $imageDataType = '';
+ public $url;
+ protected $verificationType = 'Google_Service_PlusDomains_CommentActorVerification';
+ protected $verificationDataType = '';
+
+ public function setClientSpecificActorInfo(Google_Service_PlusDomains_CommentActorClientSpecificActorInfo $clientSpecificActorInfo)
+ {
+ $this->clientSpecificActorInfo = $clientSpecificActorInfo;
+ }
+ public function getClientSpecificActorInfo()
+ {
+ return $this->clientSpecificActorInfo;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_PlusDomains_CommentActorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVerification(Google_Service_PlusDomains_CommentActorVerification $verification)
+ {
+ $this->verification = $verification;
+ }
+ public function getVerification()
+ {
+ return $this->verification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfo.php
new file mode 100644
index 00000000..b09cab3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentActorClientSpecificActorInfo extends Google_Model
+{
+ protected $youtubeActorInfoType = 'Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo';
+ protected $youtubeActorInfoDataType = '';
+
+ public function setYoutubeActorInfo(Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo $youtubeActorInfo)
+ {
+ $this->youtubeActorInfo = $youtubeActorInfo;
+ }
+ public function getYoutubeActorInfo()
+ {
+ return $this->youtubeActorInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfoYoutubeActorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfoYoutubeActorInfo.php
new file mode 100644
index 00000000..6e1652e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorClientSpecificActorInfoYoutubeActorInfo.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentActorClientSpecificActorInfoYoutubeActorInfo extends Google_Model
+{
+ public $channelId;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorImage.php
new file mode 100644
index 00000000..478f9d4c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentActorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorVerification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorVerification.php
new file mode 100644
index 00000000..ebd23118
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentActorVerification.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentActorVerification extends Google_Model
+{
+ public $adHocVerified;
+
+ public function setAdHocVerified($adHocVerified)
+ {
+ $this->adHocVerified = $adHocVerified;
+ }
+ public function getAdHocVerified()
+ {
+ return $this->adHocVerified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentFeed.php
new file mode 100644
index 00000000..2ca7cf06
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentFeed.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $id;
+ protected $itemsType = 'Google_Service_PlusDomains_Comment';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $title;
+ public $updated;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentInReplyTo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentInReplyTo.php
new file mode 100644
index 00000000..5d37cbeb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentInReplyTo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentInReplyTo extends Google_Model
+{
+ public $id;
+ public $url;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentObject.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentObject.php
new file mode 100644
index 00000000..dc3b3e48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentObject.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentObject extends Google_Model
+{
+ public $content;
+ public $objectType;
+ public $originalContent;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setOriginalContent($originalContent)
+ {
+ $this->originalContent = $originalContent;
+ }
+ public function getOriginalContent()
+ {
+ return $this->originalContent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentPlusoners.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentPlusoners.php
new file mode 100644
index 00000000..e428e5d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/CommentPlusoners.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_CommentPlusoners extends Google_Model
+{
+ public $totalItems;
+
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Media.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Media.php
new file mode 100644
index 00000000..f4ba8f9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Media.php
@@ -0,0 +1,187 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Media extends Google_Collection
+{
+ protected $collection_key = 'streams';
+ protected $authorType = 'Google_Service_PlusDomains_MediaAuthor';
+ protected $authorDataType = '';
+ public $displayName;
+ public $etag;
+ protected $exifType = 'Google_Service_PlusDomains_MediaExif';
+ protected $exifDataType = '';
+ public $height;
+ public $id;
+ public $kind;
+ public $mediaCreatedTime;
+ public $mediaUrl;
+ public $published;
+ public $sizeBytes;
+ protected $streamsType = 'Google_Service_PlusDomains_Videostream';
+ protected $streamsDataType = 'array';
+ public $summary;
+ public $updated;
+ public $url;
+ public $videoDuration;
+ public $videoStatus;
+ public $width;
+
+ public function setAuthor(Google_Service_PlusDomains_MediaAuthor $author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setExif(Google_Service_PlusDomains_MediaExif $exif)
+ {
+ $this->exif = $exif;
+ }
+ public function getExif()
+ {
+ return $this->exif;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMediaCreatedTime($mediaCreatedTime)
+ {
+ $this->mediaCreatedTime = $mediaCreatedTime;
+ }
+ public function getMediaCreatedTime()
+ {
+ return $this->mediaCreatedTime;
+ }
+ public function setMediaUrl($mediaUrl)
+ {
+ $this->mediaUrl = $mediaUrl;
+ }
+ public function getMediaUrl()
+ {
+ return $this->mediaUrl;
+ }
+ public function setPublished($published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setSizeBytes($sizeBytes)
+ {
+ $this->sizeBytes = $sizeBytes;
+ }
+ public function getSizeBytes()
+ {
+ return $this->sizeBytes;
+ }
+ public function setStreams($streams)
+ {
+ $this->streams = $streams;
+ }
+ public function getStreams()
+ {
+ return $this->streams;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVideoDuration($videoDuration)
+ {
+ $this->videoDuration = $videoDuration;
+ }
+ public function getVideoDuration()
+ {
+ return $this->videoDuration;
+ }
+ public function setVideoStatus($videoStatus)
+ {
+ $this->videoStatus = $videoStatus;
+ }
+ public function getVideoStatus()
+ {
+ return $this->videoStatus;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthor.php
new file mode 100644
index 00000000..26edbf06
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthor.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_MediaAuthor extends Google_Model
+{
+ public $displayName;
+ public $id;
+ protected $imageType = 'Google_Service_PlusDomains_MediaAuthorImage';
+ protected $imageDataType = '';
+ public $url;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_PlusDomains_MediaAuthorImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthorImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthorImage.php
new file mode 100644
index 00000000..03ee3257
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaAuthorImage.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_MediaAuthorImage extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaExif.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaExif.php
new file mode 100644
index 00000000..71480985
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/MediaExif.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_MediaExif extends Google_Model
+{
+ public $time;
+
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PeopleFeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PeopleFeed.php
new file mode 100644
index 00000000..f944a30e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PeopleFeed.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PeopleFeed extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_PlusDomains_Person';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+ public $title;
+ public $totalItems;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Person.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Person.php
new file mode 100644
index 00000000..f1f0fa78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Person.php
@@ -0,0 +1,281 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Person extends Google_Collection
+{
+ protected $collection_key = 'urls';
+ public $aboutMe;
+ public $birthday;
+ public $braggingRights;
+ public $circledByCount;
+ protected $coverType = 'Google_Service_PlusDomains_PersonCover';
+ protected $coverDataType = '';
+ public $currentLocation;
+ public $displayName;
+ public $domain;
+ protected $emailsType = 'Google_Service_PlusDomains_PersonEmails';
+ protected $emailsDataType = 'array';
+ public $etag;
+ public $gender;
+ public $id;
+ protected $imageType = 'Google_Service_PlusDomains_PersonImage';
+ protected $imageDataType = '';
+ public $isPlusUser;
+ public $kind;
+ protected $nameType = 'Google_Service_PlusDomains_PersonName';
+ protected $nameDataType = '';
+ public $nickname;
+ public $objectType;
+ public $occupation;
+ protected $organizationsType = 'Google_Service_PlusDomains_PersonOrganizations';
+ protected $organizationsDataType = 'array';
+ protected $placesLivedType = 'Google_Service_PlusDomains_PersonPlacesLived';
+ protected $placesLivedDataType = 'array';
+ public $plusOneCount;
+ public $relationshipStatus;
+ public $skills;
+ public $tagline;
+ public $url;
+ protected $urlsType = 'Google_Service_PlusDomains_PersonUrls';
+ protected $urlsDataType = 'array';
+ public $verified;
+
+ public function setAboutMe($aboutMe)
+ {
+ $this->aboutMe = $aboutMe;
+ }
+ public function getAboutMe()
+ {
+ return $this->aboutMe;
+ }
+ public function setBirthday($birthday)
+ {
+ $this->birthday = $birthday;
+ }
+ public function getBirthday()
+ {
+ return $this->birthday;
+ }
+ public function setBraggingRights($braggingRights)
+ {
+ $this->braggingRights = $braggingRights;
+ }
+ public function getBraggingRights()
+ {
+ return $this->braggingRights;
+ }
+ public function setCircledByCount($circledByCount)
+ {
+ $this->circledByCount = $circledByCount;
+ }
+ public function getCircledByCount()
+ {
+ return $this->circledByCount;
+ }
+ public function setCover(Google_Service_PlusDomains_PersonCover $cover)
+ {
+ $this->cover = $cover;
+ }
+ public function getCover()
+ {
+ return $this->cover;
+ }
+ public function setCurrentLocation($currentLocation)
+ {
+ $this->currentLocation = $currentLocation;
+ }
+ public function getCurrentLocation()
+ {
+ return $this->currentLocation;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setEmails($emails)
+ {
+ $this->emails = $emails;
+ }
+ public function getEmails()
+ {
+ return $this->emails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGender($gender)
+ {
+ $this->gender = $gender;
+ }
+ public function getGender()
+ {
+ return $this->gender;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImage(Google_Service_PlusDomains_PersonImage $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setIsPlusUser($isPlusUser)
+ {
+ $this->isPlusUser = $isPlusUser;
+ }
+ public function getIsPlusUser()
+ {
+ return $this->isPlusUser;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName(Google_Service_PlusDomains_PersonName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNickname($nickname)
+ {
+ $this->nickname = $nickname;
+ }
+ public function getNickname()
+ {
+ return $this->nickname;
+ }
+ public function setObjectType($objectType)
+ {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType()
+ {
+ return $this->objectType;
+ }
+ public function setOccupation($occupation)
+ {
+ $this->occupation = $occupation;
+ }
+ public function getOccupation()
+ {
+ return $this->occupation;
+ }
+ public function setOrganizations($organizations)
+ {
+ $this->organizations = $organizations;
+ }
+ public function getOrganizations()
+ {
+ return $this->organizations;
+ }
+ public function setPlacesLived($placesLived)
+ {
+ $this->placesLived = $placesLived;
+ }
+ public function getPlacesLived()
+ {
+ return $this->placesLived;
+ }
+ public function setPlusOneCount($plusOneCount)
+ {
+ $this->plusOneCount = $plusOneCount;
+ }
+ public function getPlusOneCount()
+ {
+ return $this->plusOneCount;
+ }
+ public function setRelationshipStatus($relationshipStatus)
+ {
+ $this->relationshipStatus = $relationshipStatus;
+ }
+ public function getRelationshipStatus()
+ {
+ return $this->relationshipStatus;
+ }
+ public function setSkills($skills)
+ {
+ $this->skills = $skills;
+ }
+ public function getSkills()
+ {
+ return $this->skills;
+ }
+ public function setTagline($tagline)
+ {
+ $this->tagline = $tagline;
+ }
+ public function getTagline()
+ {
+ return $this->tagline;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setUrls($urls)
+ {
+ $this->urls = $urls;
+ }
+ public function getUrls()
+ {
+ return $this->urls;
+ }
+ public function setVerified($verified)
+ {
+ $this->verified = $verified;
+ }
+ public function getVerified()
+ {
+ return $this->verified;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCover.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCover.php
new file mode 100644
index 00000000..a309e77b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCover.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonCover extends Google_Model
+{
+ protected $coverInfoType = 'Google_Service_PlusDomains_PersonCoverCoverInfo';
+ protected $coverInfoDataType = '';
+ protected $coverPhotoType = 'Google_Service_PlusDomains_PersonCoverCoverPhoto';
+ protected $coverPhotoDataType = '';
+ public $layout;
+
+ public function setCoverInfo(Google_Service_PlusDomains_PersonCoverCoverInfo $coverInfo)
+ {
+ $this->coverInfo = $coverInfo;
+ }
+ public function getCoverInfo()
+ {
+ return $this->coverInfo;
+ }
+ public function setCoverPhoto(Google_Service_PlusDomains_PersonCoverCoverPhoto $coverPhoto)
+ {
+ $this->coverPhoto = $coverPhoto;
+ }
+ public function getCoverPhoto()
+ {
+ return $this->coverPhoto;
+ }
+ public function setLayout($layout)
+ {
+ $this->layout = $layout;
+ }
+ public function getLayout()
+ {
+ return $this->layout;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverInfo.php
new file mode 100644
index 00000000..f034e41e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonCoverCoverInfo extends Google_Model
+{
+ public $leftImageOffset;
+ public $topImageOffset;
+
+ public function setLeftImageOffset($leftImageOffset)
+ {
+ $this->leftImageOffset = $leftImageOffset;
+ }
+ public function getLeftImageOffset()
+ {
+ return $this->leftImageOffset;
+ }
+ public function setTopImageOffset($topImageOffset)
+ {
+ $this->topImageOffset = $topImageOffset;
+ }
+ public function getTopImageOffset()
+ {
+ return $this->topImageOffset;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverPhoto.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverPhoto.php
new file mode 100644
index 00000000..28cf9f63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonCoverCoverPhoto.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonCoverCoverPhoto extends Google_Model
+{
+ public $height;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonEmails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonEmails.php
new file mode 100644
index 00000000..b399be36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonEmails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonEmails extends Google_Model
+{
+ public $type;
+ public $value;
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonImage.php
new file mode 100644
index 00000000..fa6e6924
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonImage.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonImage extends Google_Model
+{
+ public $isDefault;
+ public $url;
+
+ public function setIsDefault($isDefault)
+ {
+ $this->isDefault = $isDefault;
+ }
+ public function getIsDefault()
+ {
+ return $this->isDefault;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonName.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonName.php
new file mode 100644
index 00000000..8878b219
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonName.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonName extends Google_Model
+{
+ public $familyName;
+ public $formatted;
+ public $givenName;
+ public $honorificPrefix;
+ public $honorificSuffix;
+ public $middleName;
+
+ public function setFamilyName($familyName)
+ {
+ $this->familyName = $familyName;
+ }
+ public function getFamilyName()
+ {
+ return $this->familyName;
+ }
+ public function setFormatted($formatted)
+ {
+ $this->formatted = $formatted;
+ }
+ public function getFormatted()
+ {
+ return $this->formatted;
+ }
+ public function setGivenName($givenName)
+ {
+ $this->givenName = $givenName;
+ }
+ public function getGivenName()
+ {
+ return $this->givenName;
+ }
+ public function setHonorificPrefix($honorificPrefix)
+ {
+ $this->honorificPrefix = $honorificPrefix;
+ }
+ public function getHonorificPrefix()
+ {
+ return $this->honorificPrefix;
+ }
+ public function setHonorificSuffix($honorificSuffix)
+ {
+ $this->honorificSuffix = $honorificSuffix;
+ }
+ public function getHonorificSuffix()
+ {
+ return $this->honorificSuffix;
+ }
+ public function setMiddleName($middleName)
+ {
+ $this->middleName = $middleName;
+ }
+ public function getMiddleName()
+ {
+ return $this->middleName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonOrganizations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonOrganizations.php
new file mode 100644
index 00000000..29273b0a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonOrganizations.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonOrganizations extends Google_Model
+{
+ public $department;
+ public $description;
+ public $endDate;
+ public $location;
+ public $name;
+ public $primary;
+ public $startDate;
+ public $title;
+ public $type;
+
+ public function setDepartment($department)
+ {
+ $this->department = $department;
+ }
+ public function getDepartment()
+ {
+ return $this->department;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonPlacesLived.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonPlacesLived.php
new file mode 100644
index 00000000..fbebea3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonPlacesLived.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonPlacesLived extends Google_Model
+{
+ public $primary;
+ public $value;
+
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonUrls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonUrls.php
new file mode 100644
index 00000000..8956a68f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PersonUrls.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PersonUrls extends Google_Model
+{
+ public $label;
+ public $type;
+ public $value;
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Place.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Place.php
new file mode 100644
index 00000000..3fba69fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Place.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Place extends Google_Model
+{
+ protected $addressType = 'Google_Service_PlusDomains_PlaceAddress';
+ protected $addressDataType = '';
+ public $displayName;
+ public $id;
+ public $kind;
+ protected $positionType = 'Google_Service_PlusDomains_PlacePosition';
+ protected $positionDataType = '';
+
+ public function setAddress(Google_Service_PlusDomains_PlaceAddress $address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPosition(Google_Service_PlusDomains_PlacePosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlaceAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlaceAddress.php
new file mode 100644
index 00000000..e5cff510
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlaceAddress.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PlaceAddress extends Google_Model
+{
+ public $formatted;
+
+ public function setFormatted($formatted)
+ {
+ $this->formatted = $formatted;
+ }
+ public function getFormatted()
+ {
+ return $this->formatted;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlacePosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlacePosition.php
new file mode 100644
index 00000000..d7136cb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlacePosition.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PlacePosition extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlusDomainsAclentryResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlusDomainsAclentryResource.php
new file mode 100644
index 00000000..81f48db6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/PlusDomainsAclentryResource.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_PlusDomainsAclentryResource extends Google_Model
+{
+ public $displayName;
+ public $id;
+ public $type;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Activities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Activities.php
new file mode 100644
index 00000000..59205632
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Activities.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "activities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusDomainsService = new Google_Service_PlusDomains(...);
+ * $activities = $plusDomainsService->activities;
+ * </code>
+ */
+class Google_Service_PlusDomains_Resource_Activities extends Google_Service_Resource
+{
+ /**
+ * Get an activity. (activities.get)
+ *
+ * @param string $activityId The ID of the activity to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Activity
+ */
+ public function get($activityId, $optParams = array())
+ {
+ $params = array('activityId' => $activityId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlusDomains_Activity");
+ }
+ /**
+ * Create a new activity for the authenticated user. (activities.insert)
+ *
+ * @param string $userId The ID of the user to create the activity on behalf of.
+ * Its value should be "me", to indicate the authenticated user.
+ * @param Google_Service_PlusDomains_Activity $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool preview If "true", extract the potential media attachments
+ * for a URL. The response will include all possible attachments for a URL,
+ * including video, photos, and articles based on the content of the page.
+ * @return Google_Service_PlusDomains_Activity
+ */
+ public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_PlusDomains_Activity");
+ }
+ /**
+ * List all of the activities in the specified collection for a particular user.
+ * (activities.listActivities)
+ *
+ * @param string $userId The ID of the user to get activities for. The special
+ * value "me" can be used to indicate the authenticated user.
+ * @param string $collection The collection of activities to list.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of activities to include in
+ * the response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_PlusDomains_ActivityFeed
+ */
+ public function listActivities($userId, $collection, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlusDomains_ActivityFeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Audiences.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Audiences.php
new file mode 100644
index 00000000..39f164f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Audiences.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "audiences" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusDomainsService = new Google_Service_PlusDomains(...);
+ * $audiences = $plusDomainsService->audiences;
+ * </code>
+ */
+class Google_Service_PlusDomains_Resource_Audiences extends Google_Service_Resource
+{
+ /**
+ * List all of the audiences to which a user can share.
+ * (audiences.listAudiences)
+ *
+ * @param string $userId The ID of the user to get audiences for. The special
+ * value "me" can be used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of circles to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_PlusDomains_AudiencesFeed
+ */
+ public function listAudiences($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlusDomains_AudiencesFeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Circles.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Circles.php
new file mode 100644
index 00000000..2272cb01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Circles.php
@@ -0,0 +1,154 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "circles" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusDomainsService = new Google_Service_PlusDomains(...);
+ * $circles = $plusDomainsService->circles;
+ * </code>
+ */
+class Google_Service_PlusDomains_Resource_Circles extends Google_Service_Resource
+{
+ /**
+ * Add a person to a circle. Google+ limits certain circle operations, including
+ * the number of circle adds. Learn More. (circles.addPeople)
+ *
+ * @param string $circleId The ID of the circle to add the person to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string email Email of the people to add to the circle. Optional,
+ * can be repeated.
+ * @opt_param string userId IDs of the people to add to the circle. Optional,
+ * can be repeated.
+ * @return Google_Service_PlusDomains_Circle
+ */
+ public function addPeople($circleId, $optParams = array())
+ {
+ $params = array('circleId' => $circleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('addPeople', array($params), "Google_Service_PlusDomains_Circle");
+ }
+ /**
+ * Get a circle. (circles.get)
+ *
+ * @param string $circleId The ID of the circle to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Circle
+ */
+ public function get($circleId, $optParams = array())
+ {
+ $params = array('circleId' => $circleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlusDomains_Circle");
+ }
+ /**
+ * Create a new circle for the authenticated user. (circles.insert)
+ *
+ * @param string $userId The ID of the user to create the circle on behalf of.
+ * The value "me" can be used to indicate the authenticated user.
+ * @param Google_Service_PlusDomains_Circle $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Circle
+ */
+ public function insert($userId, Google_Service_PlusDomains_Circle $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_PlusDomains_Circle");
+ }
+ /**
+ * List all of the circles for a user. (circles.listCircles)
+ *
+ * @param string $userId The ID of the user to get circles for. The special
+ * value "me" can be used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of circles to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_PlusDomains_CircleFeed
+ */
+ public function listCircles($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlusDomains_CircleFeed");
+ }
+ /**
+ * Update a circle's description. This method supports patch semantics.
+ * (circles.patch)
+ *
+ * @param string $circleId The ID of the circle to update.
+ * @param Google_Service_PlusDomains_Circle $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Circle
+ */
+ public function patch($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array())
+ {
+ $params = array('circleId' => $circleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_PlusDomains_Circle");
+ }
+ /**
+ * Delete a circle. (circles.remove)
+ *
+ * @param string $circleId The ID of the circle to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function remove($circleId, $optParams = array())
+ {
+ $params = array('circleId' => $circleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('remove', array($params));
+ }
+ /**
+ * Remove a person from a circle. (circles.removePeople)
+ *
+ * @param string $circleId The ID of the circle to remove the person from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string email Email of the people to add to the circle. Optional,
+ * can be repeated.
+ * @opt_param string userId IDs of the people to remove from the circle.
+ * Optional, can be repeated.
+ */
+ public function removePeople($circleId, $optParams = array())
+ {
+ $params = array('circleId' => $circleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('removePeople', array($params));
+ }
+ /**
+ * Update a circle's description. (circles.update)
+ *
+ * @param string $circleId The ID of the circle to update.
+ * @param Google_Service_PlusDomains_Circle $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Circle
+ */
+ public function update($circleId, Google_Service_PlusDomains_Circle $postBody, $optParams = array())
+ {
+ $params = array('circleId' => $circleId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_PlusDomains_Circle");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Comments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Comments.php
new file mode 100644
index 00000000..0ef70efb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Comments.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusDomainsService = new Google_Service_PlusDomains(...);
+ * $comments = $plusDomainsService->comments;
+ * </code>
+ */
+class Google_Service_PlusDomains_Resource_Comments extends Google_Service_Resource
+{
+ /**
+ * Get a comment. (comments.get)
+ *
+ * @param string $commentId The ID of the comment to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Comment
+ */
+ public function get($commentId, $optParams = array())
+ {
+ $params = array('commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlusDomains_Comment");
+ }
+ /**
+ * Create a new comment in reply to an activity. (comments.insert)
+ *
+ * @param string $activityId The ID of the activity to reply to.
+ * @param Google_Service_PlusDomains_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Comment
+ */
+ public function insert($activityId, Google_Service_PlusDomains_Comment $postBody, $optParams = array())
+ {
+ $params = array('activityId' => $activityId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_PlusDomains_Comment");
+ }
+ /**
+ * List all of the comments for an activity. (comments.listComments)
+ *
+ * @param string $activityId The ID of the activity to get comments for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of comments to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @opt_param string sortOrder The order in which to sort the list of comments.
+ * @return Google_Service_PlusDomains_CommentFeed
+ */
+ public function listComments($activityId, $optParams = array())
+ {
+ $params = array('activityId' => $activityId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlusDomains_CommentFeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Media.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Media.php
new file mode 100644
index 00000000..1cf7b0a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/Media.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "media" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusDomainsService = new Google_Service_PlusDomains(...);
+ * $media = $plusDomainsService->media;
+ * </code>
+ */
+class Google_Service_PlusDomains_Resource_Media extends Google_Service_Resource
+{
+ /**
+ * Add a new media item to an album. The current upload size limitations are
+ * 36MB for a photo and 1GB for a video. Uploads do not count against quota if
+ * photos are less than 2048 pixels on their longest side or videos are less
+ * than 15 minutes in length. (media.insert)
+ *
+ * @param string $userId The ID of the user to create the activity on behalf of.
+ * @param string $collection
+ * @param Google_Service_PlusDomains_Media $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Media
+ */
+ public function insert($userId, $collection, Google_Service_PlusDomains_Media $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'collection' => $collection, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_PlusDomains_Media");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/People.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/People.php
new file mode 100644
index 00000000..d58575c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Resource/People.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "people" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $plusDomainsService = new Google_Service_PlusDomains(...);
+ * $people = $plusDomainsService->people;
+ * </code>
+ */
+class Google_Service_PlusDomains_Resource_People extends Google_Service_Resource
+{
+ /**
+ * Get a person's profile. (people.get)
+ *
+ * @param string $userId The ID of the person to get the profile for. The
+ * special value "me" can be used to indicate the authenticated user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_PlusDomains_Person
+ */
+ public function get($userId, $optParams = array())
+ {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_PlusDomains_Person");
+ }
+ /**
+ * List all of the people in the specified collection. (people.listPeople)
+ *
+ * @param string $userId Get the collection of people for the person identified.
+ * Use "me" to indicate the authenticated user.
+ * @param string $collection The collection of people to list.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of people to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string orderBy The order to return people in.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_PlusDomains_PeopleFeed
+ */
+ public function listPeople($userId, $collection, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_PlusDomains_PeopleFeed");
+ }
+ /**
+ * List all of the people in the specified collection for a particular activity.
+ * (people.listByActivity)
+ *
+ * @param string $activityId The ID of the activity to get the list of people
+ * for.
+ * @param string $collection The collection of people to list.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of people to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_PlusDomains_PeopleFeed
+ */
+ public function listByActivity($activityId, $collection, $optParams = array())
+ {
+ $params = array('activityId' => $activityId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ return $this->call('listByActivity', array($params), "Google_Service_PlusDomains_PeopleFeed");
+ }
+ /**
+ * List all of the people who are members of a circle. (people.listByCircle)
+ *
+ * @param string $circleId The ID of the circle to get the members of.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of people to include in the
+ * response, which is used for paging. For any response, the actual number
+ * returned might be less than the specified maxResults.
+ * @opt_param string pageToken The continuation token, which is used to page
+ * through large result sets. To get the next page of results, set this
+ * parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_PlusDomains_PeopleFeed
+ */
+ public function listByCircle($circleId, $optParams = array())
+ {
+ $params = array('circleId' => $circleId);
+ $params = array_merge($params, $optParams);
+ return $this->call('listByCircle', array($params), "Google_Service_PlusDomains_PeopleFeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Videostream.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Videostream.php
new file mode 100644
index 00000000..e618d7c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/PlusDomains/Videostream.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_PlusDomains_Videostream extends Google_Model
+{
+ public $height;
+ public $type;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction.php
new file mode 100644
index 00000000..871465d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction.php
@@ -0,0 +1,205 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Prediction (v1.6).
+ *
+ * <p>
+ * Lets you access a cloud hosted machine learning service that makes it easy to
+ * build smart apps</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/prediction/docs/developer-guide" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Prediction extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Manage your data and permissions in Google Cloud Storage. */
+ const DEVSTORAGE_FULL_CONTROL =
+ "https://www.googleapis.com/auth/devstorage.full_control";
+ /** View your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_ONLY =
+ "https://www.googleapis.com/auth/devstorage.read_only";
+ /** Manage your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_WRITE =
+ "https://www.googleapis.com/auth/devstorage.read_write";
+ /** Manage your data in the Google Prediction API. */
+ const PREDICTION =
+ "https://www.googleapis.com/auth/prediction";
+
+ public $hostedmodels;
+ public $trainedmodels;
+
+ /**
+ * Constructs the internal representation of the Prediction service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'prediction/v1.6/projects/';
+ $this->version = 'v1.6';
+ $this->serviceName = 'prediction';
+
+ $this->hostedmodels = new Google_Service_Prediction_Resource_Hostedmodels(
+ $this,
+ $this->serviceName,
+ 'hostedmodels',
+ array(
+ 'methods' => array(
+ 'predict' => array(
+ 'path' => '{project}/hostedmodels/{hostedModelName}/predict',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hostedModelName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->trainedmodels = new Google_Service_Prediction_Resource_Trainedmodels(
+ $this,
+ $this->serviceName,
+ 'trainedmodels',
+ array(
+ 'methods' => array(
+ 'analyze' => array(
+ 'path' => '{project}/trainedmodels/{id}/analyze',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/trainedmodels/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/trainedmodels/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/trainedmodels',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/trainedmodels/list',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'predict' => array(
+ 'path' => '{project}/trainedmodels/{id}/predict',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/trainedmodels/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Analyze.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Analyze.php
new file mode 100644
index 00000000..42bb79b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Analyze.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_Analyze extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription';
+ protected $dataDescriptionDataType = '';
+ public $errors;
+ public $id;
+ public $kind;
+ protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription';
+ protected $modelDescriptionDataType = '';
+ public $selfLink;
+
+ public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription)
+ {
+ $this->dataDescription = $dataDescription;
+ }
+ public function getDataDescription()
+ {
+ return $this->dataDescription;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription)
+ {
+ $this->modelDescription = $modelDescription;
+ }
+ public function getModelDescription()
+ {
+ return $this->modelDescription;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescription.php
new file mode 100644
index 00000000..85d3265e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescription.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection
+{
+ protected $collection_key = 'features';
+ protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures';
+ protected $featuresDataType = 'array';
+ protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature';
+ protected $outputFeatureDataType = '';
+
+ public function setFeatures($features)
+ {
+ $this->features = $features;
+ }
+ public function getFeatures()
+ {
+ return $this->features;
+ }
+ public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature)
+ {
+ $this->outputFeature = $outputFeature;
+ }
+ public function getOutputFeature()
+ {
+ return $this->outputFeature;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeatures.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeatures.php
new file mode 100644
index 00000000..046c980b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeatures.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model
+{
+ protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical';
+ protected $categoricalDataType = '';
+ public $index;
+ protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric';
+ protected $numericDataType = '';
+ protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText';
+ protected $textDataType = '';
+
+ public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical)
+ {
+ $this->categorical = $categorical;
+ }
+ public function getCategorical()
+ {
+ return $this->categorical;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric)
+ {
+ $this->numeric = $numeric;
+ }
+ public function getNumeric()
+ {
+ return $this->numeric;
+ }
+ public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategorical.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategorical.php
new file mode 100644
index 00000000..e8f738cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategorical.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $count;
+ protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues';
+ protected $valuesDataType = 'array';
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategoricalValues.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategoricalValues.php
new file mode 100644
index 00000000..d3ba6872
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesCategoricalValues.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model
+{
+ public $count;
+ public $value;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesNumeric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesNumeric.php
new file mode 100644
index 00000000..a2448a81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesNumeric.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model
+{
+ public $count;
+ public $mean;
+ public $variance;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setMean($mean)
+ {
+ $this->mean = $mean;
+ }
+ public function getMean()
+ {
+ return $this->mean;
+ }
+ public function setVariance($variance)
+ {
+ $this->variance = $variance;
+ }
+ public function getVariance()
+ {
+ return $this->variance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesText.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesText.php
new file mode 100644
index 00000000..bb594ac5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionFeaturesText.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model
+{
+ public $count;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeature.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeature.php
new file mode 100644
index 00000000..b048fa2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeature.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection
+{
+ protected $collection_key = 'text';
+ protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric';
+ protected $numericDataType = '';
+ protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText';
+ protected $textDataType = 'array';
+
+ public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric)
+ {
+ $this->numeric = $numeric;
+ }
+ public function getNumeric()
+ {
+ return $this->numeric;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureNumeric.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureNumeric.php
new file mode 100644
index 00000000..9d9859c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureNumeric.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model
+{
+ public $count;
+ public $mean;
+ public $variance;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setMean($mean)
+ {
+ $this->mean = $mean;
+ }
+ public function getMean()
+ {
+ return $this->mean;
+ }
+ public function setVariance($variance)
+ {
+ $this->variance = $variance;
+ }
+ public function getVariance()
+ {
+ return $this->variance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureText.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureText.php
new file mode 100644
index 00000000..19db685b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeDataDescriptionOutputFeatureText.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model
+{
+ public $count;
+ public $value;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeModelDescription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeModelDescription.php
new file mode 100644
index 00000000..fbce5f6b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/AnalyzeModelDescription.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model
+{
+ public $confusionMatrix;
+ public $confusionMatrixRowTotals;
+ protected $modelinfoType = 'Google_Service_Prediction_Insert2';
+ protected $modelinfoDataType = '';
+
+ public function setConfusionMatrix($confusionMatrix)
+ {
+ $this->confusionMatrix = $confusionMatrix;
+ }
+ public function getConfusionMatrix()
+ {
+ return $this->confusionMatrix;
+ }
+ public function setConfusionMatrixRowTotals($confusionMatrixRowTotals)
+ {
+ $this->confusionMatrixRowTotals = $confusionMatrixRowTotals;
+ }
+ public function getConfusionMatrixRowTotals()
+ {
+ return $this->confusionMatrixRowTotals;
+ }
+ public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo)
+ {
+ $this->modelinfo = $modelinfo;
+ }
+ public function getModelinfo()
+ {
+ return $this->modelinfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Input.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Input.php
new file mode 100644
index 00000000..ee7e6293
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Input.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_Input extends Google_Model
+{
+ protected $inputType = 'Google_Service_Prediction_InputInput';
+ protected $inputDataType = '';
+
+ public function setInput(Google_Service_Prediction_InputInput $input)
+ {
+ $this->input = $input;
+ }
+ public function getInput()
+ {
+ return $this->input;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InputInput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InputInput.php
new file mode 100644
index 00000000..e4235be7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InputInput.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_InputInput extends Google_Collection
+{
+ protected $collection_key = 'csvInstance';
+ public $csvInstance;
+
+ public function setCsvInstance($csvInstance)
+ {
+ $this->csvInstance = $csvInstance;
+ }
+ public function getCsvInstance()
+ {
+ return $this->csvInstance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert.php
new file mode 100644
index 00000000..fdf985d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_Insert extends Google_Collection
+{
+ protected $collection_key = 'utility';
+ public $id;
+ public $modelType;
+ public $sourceModel;
+ public $storageDataLocation;
+ public $storagePMMLLocation;
+ public $storagePMMLModelLocation;
+ protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances';
+ protected $trainingInstancesDataType = 'array';
+ public $utility;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setModelType($modelType)
+ {
+ $this->modelType = $modelType;
+ }
+ public function getModelType()
+ {
+ return $this->modelType;
+ }
+ public function setSourceModel($sourceModel)
+ {
+ $this->sourceModel = $sourceModel;
+ }
+ public function getSourceModel()
+ {
+ return $this->sourceModel;
+ }
+ public function setStorageDataLocation($storageDataLocation)
+ {
+ $this->storageDataLocation = $storageDataLocation;
+ }
+ public function getStorageDataLocation()
+ {
+ return $this->storageDataLocation;
+ }
+ public function setStoragePMMLLocation($storagePMMLLocation)
+ {
+ $this->storagePMMLLocation = $storagePMMLLocation;
+ }
+ public function getStoragePMMLLocation()
+ {
+ return $this->storagePMMLLocation;
+ }
+ public function setStoragePMMLModelLocation($storagePMMLModelLocation)
+ {
+ $this->storagePMMLModelLocation = $storagePMMLModelLocation;
+ }
+ public function getStoragePMMLModelLocation()
+ {
+ return $this->storagePMMLModelLocation;
+ }
+ public function setTrainingInstances($trainingInstances)
+ {
+ $this->trainingInstances = $trainingInstances;
+ }
+ public function getTrainingInstances()
+ {
+ return $this->trainingInstances;
+ }
+ public function setUtility($utility)
+ {
+ $this->utility = $utility;
+ }
+ public function getUtility()
+ {
+ return $this->utility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2.php
new file mode 100644
index 00000000..8bc3b4d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_Insert2 extends Google_Model
+{
+ public $created;
+ public $id;
+ public $kind;
+ protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo';
+ protected $modelInfoDataType = '';
+ public $modelType;
+ public $selfLink;
+ public $storageDataLocation;
+ public $storagePMMLLocation;
+ public $storagePMMLModelLocation;
+ public $trainingComplete;
+ public $trainingStatus;
+
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo)
+ {
+ $this->modelInfo = $modelInfo;
+ }
+ public function getModelInfo()
+ {
+ return $this->modelInfo;
+ }
+ public function setModelType($modelType)
+ {
+ $this->modelType = $modelType;
+ }
+ public function getModelType()
+ {
+ return $this->modelType;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStorageDataLocation($storageDataLocation)
+ {
+ $this->storageDataLocation = $storageDataLocation;
+ }
+ public function getStorageDataLocation()
+ {
+ return $this->storageDataLocation;
+ }
+ public function setStoragePMMLLocation($storagePMMLLocation)
+ {
+ $this->storagePMMLLocation = $storagePMMLLocation;
+ }
+ public function getStoragePMMLLocation()
+ {
+ return $this->storagePMMLLocation;
+ }
+ public function setStoragePMMLModelLocation($storagePMMLModelLocation)
+ {
+ $this->storagePMMLModelLocation = $storagePMMLModelLocation;
+ }
+ public function getStoragePMMLModelLocation()
+ {
+ return $this->storagePMMLModelLocation;
+ }
+ public function setTrainingComplete($trainingComplete)
+ {
+ $this->trainingComplete = $trainingComplete;
+ }
+ public function getTrainingComplete()
+ {
+ return $this->trainingComplete;
+ }
+ public function setTrainingStatus($trainingStatus)
+ {
+ $this->trainingStatus = $trainingStatus;
+ }
+ public function getTrainingStatus()
+ {
+ return $this->trainingStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2ModelInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2ModelInfo.php
new file mode 100644
index 00000000..38651648
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Insert2ModelInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_Insert2ModelInfo extends Google_Model
+{
+ public $classWeightedAccuracy;
+ public $classificationAccuracy;
+ public $meanSquaredError;
+ public $modelType;
+ public $numberInstances;
+ public $numberLabels;
+
+ public function setClassWeightedAccuracy($classWeightedAccuracy)
+ {
+ $this->classWeightedAccuracy = $classWeightedAccuracy;
+ }
+ public function getClassWeightedAccuracy()
+ {
+ return $this->classWeightedAccuracy;
+ }
+ public function setClassificationAccuracy($classificationAccuracy)
+ {
+ $this->classificationAccuracy = $classificationAccuracy;
+ }
+ public function getClassificationAccuracy()
+ {
+ return $this->classificationAccuracy;
+ }
+ public function setMeanSquaredError($meanSquaredError)
+ {
+ $this->meanSquaredError = $meanSquaredError;
+ }
+ public function getMeanSquaredError()
+ {
+ return $this->meanSquaredError;
+ }
+ public function setModelType($modelType)
+ {
+ $this->modelType = $modelType;
+ }
+ public function getModelType()
+ {
+ return $this->modelType;
+ }
+ public function setNumberInstances($numberInstances)
+ {
+ $this->numberInstances = $numberInstances;
+ }
+ public function getNumberInstances()
+ {
+ return $this->numberInstances;
+ }
+ public function setNumberLabels($numberLabels)
+ {
+ $this->numberLabels = $numberLabels;
+ }
+ public function getNumberLabels()
+ {
+ return $this->numberLabels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InsertTrainingInstances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InsertTrainingInstances.php
new file mode 100644
index 00000000..98b46c50
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/InsertTrainingInstances.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection
+{
+ protected $collection_key = 'csvInstance';
+ public $csvInstance;
+ public $output;
+
+ public function setCsvInstance($csvInstance)
+ {
+ $this->csvInstance = $csvInstance;
+ }
+ public function getCsvInstance()
+ {
+ return $this->csvInstance;
+ }
+ public function setOutput($output)
+ {
+ $this->output = $output;
+ }
+ public function getOutput()
+ {
+ return $this->output;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Output.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Output.php
new file mode 100644
index 00000000..caf2136b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Output.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_Output extends Google_Collection
+{
+ protected $collection_key = 'outputMulti';
+ public $id;
+ public $kind;
+ public $outputLabel;
+ protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti';
+ protected $outputMultiDataType = 'array';
+ public $outputValue;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOutputLabel($outputLabel)
+ {
+ $this->outputLabel = $outputLabel;
+ }
+ public function getOutputLabel()
+ {
+ return $this->outputLabel;
+ }
+ public function setOutputMulti($outputMulti)
+ {
+ $this->outputMulti = $outputMulti;
+ }
+ public function getOutputMulti()
+ {
+ return $this->outputMulti;
+ }
+ public function setOutputValue($outputValue)
+ {
+ $this->outputValue = $outputValue;
+ }
+ public function getOutputValue()
+ {
+ return $this->outputValue;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/OutputOutputMulti.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/OutputOutputMulti.php
new file mode 100644
index 00000000..cbeee94d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/OutputOutputMulti.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_OutputOutputMulti extends Google_Model
+{
+ public $label;
+ public $score;
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/PredictionList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/PredictionList.php
new file mode 100644
index 00000000..177cb7d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/PredictionList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_PredictionList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Prediction_Insert2';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Hostedmodels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Hostedmodels.php
new file mode 100644
index 00000000..57ce7fae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Hostedmodels.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "hostedmodels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $predictionService = new Google_Service_Prediction(...);
+ * $hostedmodels = $predictionService->hostedmodels;
+ * </code>
+ */
+class Google_Service_Prediction_Resource_Hostedmodels extends Google_Service_Resource
+{
+ /**
+ * Submit input and request an output against a hosted model.
+ * (hostedmodels.predict)
+ *
+ * @param string $project The project associated with the model.
+ * @param string $hostedModelName The name of a hosted model.
+ * @param Google_Service_Prediction_Input $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Output
+ */
+ public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('predict', array($params), "Google_Service_Prediction_Output");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Trainedmodels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Trainedmodels.php
new file mode 100644
index 00000000..a7de1b7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Resource/Trainedmodels.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "trainedmodels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $predictionService = new Google_Service_Prediction(...);
+ * $trainedmodels = $predictionService->trainedmodels;
+ * </code>
+ */
+class Google_Service_Prediction_Resource_Trainedmodels extends Google_Service_Resource
+{
+ /**
+ * Get analysis of the model and the data the model was trained on.
+ * (trainedmodels.analyze)
+ *
+ * @param string $project The project associated with the model.
+ * @param string $id The unique name for the predictive model.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Analyze
+ */
+ public function analyze($project, $id, $optParams = array())
+ {
+ $params = array('project' => $project, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze");
+ }
+ /**
+ * Delete a trained model. (trainedmodels.delete)
+ *
+ * @param string $project The project associated with the model.
+ * @param string $id The unique name for the predictive model.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $id, $optParams = array())
+ {
+ $params = array('project' => $project, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Check training status of your model. (trainedmodels.get)
+ *
+ * @param string $project The project associated with the model.
+ * @param string $id The unique name for the predictive model.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Insert2
+ */
+ public function get($project, $id, $optParams = array())
+ {
+ $params = array('project' => $project, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Prediction_Insert2");
+ }
+ /**
+ * Train a Prediction API model. (trainedmodels.insert)
+ *
+ * @param string $project The project associated with the model.
+ * @param Google_Service_Prediction_Insert $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Insert2
+ */
+ public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Prediction_Insert2");
+ }
+ /**
+ * List available models. (trainedmodels.listTrainedmodels)
+ *
+ * @param string $project The project associated with the model.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return.
+ * @opt_param string pageToken Pagination token.
+ * @return Google_Service_Prediction_PredictionList
+ */
+ public function listTrainedmodels($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Prediction_PredictionList");
+ }
+ /**
+ * Submit model id and request a prediction. (trainedmodels.predict)
+ *
+ * @param string $project The project associated with the model.
+ * @param string $id The unique name for the predictive model.
+ * @param Google_Service_Prediction_Input $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Output
+ */
+ public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('predict', array($params), "Google_Service_Prediction_Output");
+ }
+ /**
+ * Add new data to a trained model. (trainedmodels.update)
+ *
+ * @param string $project The project associated with the model.
+ * @param string $id The unique name for the predictive model.
+ * @param Google_Service_Prediction_Update $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Insert2
+ */
+ public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Prediction_Insert2");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Update.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Update.php
new file mode 100644
index 00000000..db3f867e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Prediction/Update.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Prediction_Update extends Google_Collection
+{
+ protected $collection_key = 'csvInstance';
+ public $csvInstance;
+ public $output;
+
+ public function setCsvInstance($csvInstance)
+ {
+ $this->csvInstance = $csvInstance;
+ }
+ public function getCsvInstance()
+ {
+ return $this->csvInstance;
+ }
+ public function setOutput($output)
+ {
+ $this->output = $output;
+ }
+ public function getOutput()
+ {
+ return $this->output;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon.php
new file mode 100644
index 00000000..81638c22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon.php
@@ -0,0 +1,353 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Proximitybeacon (v1beta1).
+ *
+ * <p>
+ * Registers, manages, indexes, and searches beacons.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/beacons/proximity/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Proximitybeacon extends Google_Service
+{
+ /** View and modify your beacons. */
+ const USERLOCATION_BEACON_REGISTRY =
+ "https://www.googleapis.com/auth/userlocation.beacon.registry";
+
+ public $beaconinfo;
+ public $beacons;
+ public $beacons_attachments;
+ public $beacons_diagnostics;
+ public $namespaces;
+ public $v1beta1;
+
+ /**
+ * Constructs the internal representation of the Proximitybeacon service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://proximitybeacon.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1beta1';
+ $this->serviceName = 'proximitybeacon';
+
+ $this->beaconinfo = new Google_Service_Proximitybeacon_Resource_Beaconinfo(
+ $this,
+ $this->serviceName,
+ 'beaconinfo',
+ array(
+ 'methods' => array(
+ 'getforobserved' => array(
+ 'path' => 'v1beta1/beaconinfo:getforobserved',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->beacons = new Google_Service_Proximitybeacon_Resource_Beacons(
+ $this,
+ $this->serviceName,
+ 'beacons',
+ array(
+ 'methods' => array(
+ 'activate' => array(
+ 'path' => 'v1beta1/{+beaconName}:activate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'deactivate' => array(
+ 'path' => 'v1beta1/{+beaconName}:deactivate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'decommission' => array(
+ 'path' => 'v1beta1/{+beaconName}:decommission',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta1/{+beaconName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta1/{+beaconName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/beacons',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'register' => array(
+ 'path' => 'v1beta1/beacons:register',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1beta1/{+beaconName}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->beacons_attachments = new Google_Service_Proximitybeacon_Resource_BeaconsAttachments(
+ $this,
+ $this->serviceName,
+ 'attachments',
+ array(
+ 'methods' => array(
+ 'batchDelete' => array(
+ 'path' => 'v1beta1/{+beaconName}/attachments:batchDelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'namespacedType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1beta1/{+beaconName}/attachments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta1/{+attachmentName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'attachmentName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/{+beaconName}/attachments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'namespacedType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->beacons_diagnostics = new Google_Service_Proximitybeacon_Resource_BeaconsDiagnostics(
+ $this,
+ $this->serviceName,
+ 'diagnostics',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1beta1/{+beaconName}/diagnostics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'beaconName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'alertFilter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->namespaces = new Google_Service_Proximitybeacon_Resource_Namespaces(
+ $this,
+ $this->serviceName,
+ 'namespaces',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1beta1/namespaces',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v1beta1/{+namespaceName}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'namespaceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->v1beta1 = new Google_Service_Proximitybeacon_Resource_V1beta1(
+ $this,
+ $this->serviceName,
+ 'v1beta1',
+ array(
+ 'methods' => array(
+ 'getEidparams' => array(
+ 'path' => 'v1beta1/eidparams',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AdvertisedId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AdvertisedId.php
new file mode 100644
index 00000000..de73fa61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AdvertisedId.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_AdvertisedId extends Google_Model
+{
+ public $id;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AttachmentInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AttachmentInfo.php
new file mode 100644
index 00000000..88213c41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/AttachmentInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_AttachmentInfo extends Google_Model
+{
+ public $data;
+ public $namespacedType;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setNamespacedType($namespacedType)
+ {
+ $this->namespacedType = $namespacedType;
+ }
+ public function getNamespacedType()
+ {
+ return $this->namespacedType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Beacon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Beacon.php
new file mode 100644
index 00000000..e2713f2e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Beacon.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_Beacon extends Google_Model
+{
+ protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId';
+ protected $advertisedIdDataType = '';
+ public $beaconName;
+ public $description;
+ protected $ephemeralIdRegistrationType = 'Google_Service_Proximitybeacon_EphemeralIdRegistration';
+ protected $ephemeralIdRegistrationDataType = '';
+ public $expectedStability;
+ protected $indoorLevelType = 'Google_Service_Proximitybeacon_IndoorLevel';
+ protected $indoorLevelDataType = '';
+ protected $latLngType = 'Google_Service_Proximitybeacon_LatLng';
+ protected $latLngDataType = '';
+ public $placeId;
+ public $properties;
+ public $provisioningKey;
+ public $status;
+
+ public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId)
+ {
+ $this->advertisedId = $advertisedId;
+ }
+ public function getAdvertisedId()
+ {
+ return $this->advertisedId;
+ }
+ public function setBeaconName($beaconName)
+ {
+ $this->beaconName = $beaconName;
+ }
+ public function getBeaconName()
+ {
+ return $this->beaconName;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEphemeralIdRegistration(Google_Service_Proximitybeacon_EphemeralIdRegistration $ephemeralIdRegistration)
+ {
+ $this->ephemeralIdRegistration = $ephemeralIdRegistration;
+ }
+ public function getEphemeralIdRegistration()
+ {
+ return $this->ephemeralIdRegistration;
+ }
+ public function setExpectedStability($expectedStability)
+ {
+ $this->expectedStability = $expectedStability;
+ }
+ public function getExpectedStability()
+ {
+ return $this->expectedStability;
+ }
+ public function setIndoorLevel(Google_Service_Proximitybeacon_IndoorLevel $indoorLevel)
+ {
+ $this->indoorLevel = $indoorLevel;
+ }
+ public function getIndoorLevel()
+ {
+ return $this->indoorLevel;
+ }
+ public function setLatLng(Google_Service_Proximitybeacon_LatLng $latLng)
+ {
+ $this->latLng = $latLng;
+ }
+ public function getLatLng()
+ {
+ return $this->latLng;
+ }
+ public function setPlaceId($placeId)
+ {
+ $this->placeId = $placeId;
+ }
+ public function getPlaceId()
+ {
+ return $this->placeId;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setProvisioningKey($provisioningKey)
+ {
+ $this->provisioningKey = $provisioningKey;
+ }
+ public function getProvisioningKey()
+ {
+ return $this->provisioningKey;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconAttachment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconAttachment.php
new file mode 100644
index 00000000..05d76e8c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconAttachment.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_BeaconAttachment extends Google_Model
+{
+ public $attachmentName;
+ public $creationTimeMs;
+ public $data;
+ public $namespacedType;
+
+ public function setAttachmentName($attachmentName)
+ {
+ $this->attachmentName = $attachmentName;
+ }
+ public function getAttachmentName()
+ {
+ return $this->attachmentName;
+ }
+ public function setCreationTimeMs($creationTimeMs)
+ {
+ $this->creationTimeMs = $creationTimeMs;
+ }
+ public function getCreationTimeMs()
+ {
+ return $this->creationTimeMs;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setNamespacedType($namespacedType)
+ {
+ $this->namespacedType = $namespacedType;
+ }
+ public function getNamespacedType()
+ {
+ return $this->namespacedType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconInfo.php
new file mode 100644
index 00000000..cd360398
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/BeaconInfo.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_BeaconInfo extends Google_Collection
+{
+ protected $collection_key = 'attachments';
+ protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId';
+ protected $advertisedIdDataType = '';
+ protected $attachmentsType = 'Google_Service_Proximitybeacon_AttachmentInfo';
+ protected $attachmentsDataType = 'array';
+ public $beaconName;
+
+ public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId)
+ {
+ $this->advertisedId = $advertisedId;
+ }
+ public function getAdvertisedId()
+ {
+ return $this->advertisedId;
+ }
+ public function setAttachments($attachments)
+ {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments()
+ {
+ return $this->attachments;
+ }
+ public function setBeaconName($beaconName)
+ {
+ $this->beaconName = $beaconName;
+ }
+ public function getBeaconName()
+ {
+ return $this->beaconName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Date.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Date.php
new file mode 100644
index 00000000..14b2ebbc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Date.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_Date extends Google_Model
+{
+ public $day;
+ public $month;
+ public $year;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth($month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+ public function setYear($year)
+ {
+ $this->year = $year;
+ }
+ public function getYear()
+ {
+ return $this->year;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/DeleteAttachmentsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/DeleteAttachmentsResponse.php
new file mode 100644
index 00000000..edccbfbd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/DeleteAttachmentsResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_DeleteAttachmentsResponse extends Google_Model
+{
+ public $numDeleted;
+
+ public function setNumDeleted($numDeleted)
+ {
+ $this->numDeleted = $numDeleted;
+ }
+ public function getNumDeleted()
+ {
+ return $this->numDeleted;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Diagnostics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Diagnostics.php
new file mode 100644
index 00000000..6294b534
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Diagnostics.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_Diagnostics extends Google_Collection
+{
+ protected $collection_key = 'alerts';
+ public $alerts;
+ public $beaconName;
+ protected $estimatedLowBatteryDateType = 'Google_Service_Proximitybeacon_Date';
+ protected $estimatedLowBatteryDateDataType = '';
+
+ public function setAlerts($alerts)
+ {
+ $this->alerts = $alerts;
+ }
+ public function getAlerts()
+ {
+ return $this->alerts;
+ }
+ public function setBeaconName($beaconName)
+ {
+ $this->beaconName = $beaconName;
+ }
+ public function getBeaconName()
+ {
+ return $this->beaconName;
+ }
+ public function setEstimatedLowBatteryDate(Google_Service_Proximitybeacon_Date $estimatedLowBatteryDate)
+ {
+ $this->estimatedLowBatteryDate = $estimatedLowBatteryDate;
+ }
+ public function getEstimatedLowBatteryDate()
+ {
+ return $this->estimatedLowBatteryDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistration.php
new file mode 100644
index 00000000..0859c14b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistration.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_EphemeralIdRegistration extends Google_Model
+{
+ public $beaconEcdhPublicKey;
+ public $beaconIdentityKey;
+ public $initialClockValue;
+ public $initialEid;
+ public $rotationPeriodExponent;
+ public $serviceEcdhPublicKey;
+
+ public function setBeaconEcdhPublicKey($beaconEcdhPublicKey)
+ {
+ $this->beaconEcdhPublicKey = $beaconEcdhPublicKey;
+ }
+ public function getBeaconEcdhPublicKey()
+ {
+ return $this->beaconEcdhPublicKey;
+ }
+ public function setBeaconIdentityKey($beaconIdentityKey)
+ {
+ $this->beaconIdentityKey = $beaconIdentityKey;
+ }
+ public function getBeaconIdentityKey()
+ {
+ return $this->beaconIdentityKey;
+ }
+ public function setInitialClockValue($initialClockValue)
+ {
+ $this->initialClockValue = $initialClockValue;
+ }
+ public function getInitialClockValue()
+ {
+ return $this->initialClockValue;
+ }
+ public function setInitialEid($initialEid)
+ {
+ $this->initialEid = $initialEid;
+ }
+ public function getInitialEid()
+ {
+ return $this->initialEid;
+ }
+ public function setRotationPeriodExponent($rotationPeriodExponent)
+ {
+ $this->rotationPeriodExponent = $rotationPeriodExponent;
+ }
+ public function getRotationPeriodExponent()
+ {
+ return $this->rotationPeriodExponent;
+ }
+ public function setServiceEcdhPublicKey($serviceEcdhPublicKey)
+ {
+ $this->serviceEcdhPublicKey = $serviceEcdhPublicKey;
+ }
+ public function getServiceEcdhPublicKey()
+ {
+ return $this->serviceEcdhPublicKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistrationParams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistrationParams.php
new file mode 100644
index 00000000..38577f17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/EphemeralIdRegistrationParams.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_EphemeralIdRegistrationParams extends Google_Model
+{
+ public $maxRotationPeriodExponent;
+ public $minRotationPeriodExponent;
+ public $serviceEcdhPublicKey;
+
+ public function setMaxRotationPeriodExponent($maxRotationPeriodExponent)
+ {
+ $this->maxRotationPeriodExponent = $maxRotationPeriodExponent;
+ }
+ public function getMaxRotationPeriodExponent()
+ {
+ return $this->maxRotationPeriodExponent;
+ }
+ public function setMinRotationPeriodExponent($minRotationPeriodExponent)
+ {
+ $this->minRotationPeriodExponent = $minRotationPeriodExponent;
+ }
+ public function getMinRotationPeriodExponent()
+ {
+ return $this->minRotationPeriodExponent;
+ }
+ public function setServiceEcdhPublicKey($serviceEcdhPublicKey)
+ {
+ $this->serviceEcdhPublicKey = $serviceEcdhPublicKey;
+ }
+ public function getServiceEcdhPublicKey()
+ {
+ return $this->serviceEcdhPublicKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsRequest.php
new file mode 100644
index 00000000..e530615a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_GetInfoForObservedBeaconsRequest extends Google_Collection
+{
+ protected $collection_key = 'observations';
+ public $namespacedTypes;
+ protected $observationsType = 'Google_Service_Proximitybeacon_Observation';
+ protected $observationsDataType = 'array';
+
+ public function setNamespacedTypes($namespacedTypes)
+ {
+ $this->namespacedTypes = $namespacedTypes;
+ }
+ public function getNamespacedTypes()
+ {
+ return $this->namespacedTypes;
+ }
+ public function setObservations($observations)
+ {
+ $this->observations = $observations;
+ }
+ public function getObservations()
+ {
+ return $this->observations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsResponse.php
new file mode 100644
index 00000000..8522a546
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/GetInfoForObservedBeaconsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse extends Google_Collection
+{
+ protected $collection_key = 'beacons';
+ protected $beaconsType = 'Google_Service_Proximitybeacon_BeaconInfo';
+ protected $beaconsDataType = 'array';
+
+ public function setBeacons($beacons)
+ {
+ $this->beacons = $beacons;
+ }
+ public function getBeacons()
+ {
+ return $this->beacons;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/IndoorLevel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/IndoorLevel.php
new file mode 100644
index 00000000..a2506345
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/IndoorLevel.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_IndoorLevel extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/LatLng.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/LatLng.php
new file mode 100644
index 00000000..e79bdeb5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/LatLng.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_LatLng extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconAttachmentsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconAttachmentsResponse.php
new file mode 100644
index 00000000..bd04678e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconAttachmentsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse extends Google_Collection
+{
+ protected $collection_key = 'attachments';
+ protected $attachmentsType = 'Google_Service_Proximitybeacon_BeaconAttachment';
+ protected $attachmentsDataType = 'array';
+
+ public function setAttachments($attachments)
+ {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments()
+ {
+ return $this->attachments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconsResponse.php
new file mode 100644
index 00000000..3a9d6eaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListBeaconsResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_ListBeaconsResponse extends Google_Collection
+{
+ protected $collection_key = 'beacons';
+ protected $beaconsType = 'Google_Service_Proximitybeacon_Beacon';
+ protected $beaconsDataType = 'array';
+ public $nextPageToken;
+ public $totalCount;
+
+ public function setBeacons($beacons)
+ {
+ $this->beacons = $beacons;
+ }
+ public function getBeacons()
+ {
+ return $this->beacons;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalCount($totalCount)
+ {
+ $this->totalCount = $totalCount;
+ }
+ public function getTotalCount()
+ {
+ return $this->totalCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListDiagnosticsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListDiagnosticsResponse.php
new file mode 100644
index 00000000..e60e49f7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListDiagnosticsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_ListDiagnosticsResponse extends Google_Collection
+{
+ protected $collection_key = 'diagnostics';
+ protected $diagnosticsType = 'Google_Service_Proximitybeacon_Diagnostics';
+ protected $diagnosticsDataType = 'array';
+ public $nextPageToken;
+
+ public function setDiagnostics($diagnostics)
+ {
+ $this->diagnostics = $diagnostics;
+ }
+ public function getDiagnostics()
+ {
+ return $this->diagnostics;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListNamespacesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListNamespacesResponse.php
new file mode 100644
index 00000000..2fc56989
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ListNamespacesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_ListNamespacesResponse extends Google_Collection
+{
+ protected $collection_key = 'namespaces';
+ protected $namespacesType = 'Google_Service_Proximitybeacon_ProximitybeaconNamespace';
+ protected $namespacesDataType = 'array';
+
+ public function setNamespaces($namespaces)
+ {
+ $this->namespaces = $namespaces;
+ }
+ public function getNamespaces()
+ {
+ return $this->namespaces;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Observation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Observation.php
new file mode 100644
index 00000000..d8095521
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Observation.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_Observation extends Google_Model
+{
+ protected $advertisedIdType = 'Google_Service_Proximitybeacon_AdvertisedId';
+ protected $advertisedIdDataType = '';
+ public $telemetry;
+ public $timestampMs;
+
+ public function setAdvertisedId(Google_Service_Proximitybeacon_AdvertisedId $advertisedId)
+ {
+ $this->advertisedId = $advertisedId;
+ }
+ public function getAdvertisedId()
+ {
+ return $this->advertisedId;
+ }
+ public function setTelemetry($telemetry)
+ {
+ $this->telemetry = $telemetry;
+ }
+ public function getTelemetry()
+ {
+ return $this->telemetry;
+ }
+ public function setTimestampMs($timestampMs)
+ {
+ $this->timestampMs = $timestampMs;
+ }
+ public function getTimestampMs()
+ {
+ return $this->timestampMs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconEmpty.php
new file mode 100644
index 00000000..5bcf3afb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_ProximitybeaconEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconNamespace.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconNamespace.php
new file mode 100644
index 00000000..ff46682a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/ProximitybeaconNamespace.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Proximitybeacon_ProximitybeaconNamespace extends Google_Model
+{
+ public $namespaceName;
+ public $servingVisibility;
+
+ public function setNamespaceName($namespaceName)
+ {
+ $this->namespaceName = $namespaceName;
+ }
+ public function getNamespaceName()
+ {
+ return $this->namespaceName;
+ }
+ public function setServingVisibility($servingVisibility)
+ {
+ $this->servingVisibility = $servingVisibility;
+ }
+ public function getServingVisibility()
+ {
+ return $this->servingVisibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beaconinfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beaconinfo.php
new file mode 100644
index 00000000..0208cc15
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beaconinfo.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "beaconinfo" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $proximitybeaconService = new Google_Service_Proximitybeacon(...);
+ * $beaconinfo = $proximitybeaconService->beaconinfo;
+ * </code>
+ */
+class Google_Service_Proximitybeacon_Resource_Beaconinfo extends Google_Service_Resource
+{
+ /**
+ * Given one or more beacon observations, returns any beacon information and
+ * attachments accessible to your application. Authorize by using the [API
+ * key](https://developers.google.com/beacons/proximity/how-
+ * tos/authorizing#APIKey) for the application. (beaconinfo.getforobserved)
+ *
+ * @param Google_Service_Proximitybeacon_GetInfoForObservedBeaconsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse
+ */
+ public function getforobserved(Google_Service_Proximitybeacon_GetInfoForObservedBeaconsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getforobserved', array($params), "Google_Service_Proximitybeacon_GetInfoForObservedBeaconsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php
new file mode 100644
index 00000000..1600280c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Beacons.php
@@ -0,0 +1,316 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "beacons" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $proximitybeaconService = new Google_Service_Proximitybeacon(...);
+ * $beacons = $proximitybeaconService->beacons;
+ * </code>
+ */
+class Google_Service_Proximitybeacon_Resource_Beacons extends Google_Service_Resource
+{
+ /**
+ * Activates a beacon. A beacon that is active will return information and
+ * attachment data when queried via `beaconinfo.getforobserved`. Calling this
+ * method on an already active beacon will do nothing (but will return a
+ * successful response code).
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (beacons.activate)
+ *
+ * @param string $beaconName Beacon that should be activated. A beacon name has
+ * the format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
+ * by the beacon and N is a code for the beacon's type. Possible values are `3`
+ * for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for
+ * AltBeacon. For Eddystone-EID beacons, you may use either the current EID or
+ * the beacon's "stable" UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the beacon to activate. If the
+ * project id is not specified then the project making the request is used. The
+ * project id must match the project that owns the beacon. Optional.
+ * @return Google_Service_Proximitybeacon_ProximitybeaconEmpty
+ */
+ public function activate($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('activate', array($params), "Google_Service_Proximitybeacon_ProximitybeaconEmpty");
+ }
+ /**
+ * Deactivates a beacon. Once deactivated, the API will not return information
+ * nor attachment data for the beacon when queried via
+ * `beaconinfo.getforobserved`. Calling this method on an already inactive
+ * beacon will do nothing (but will return a successful response code).
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (beacons.deactivate)
+ *
+ * @param string $beaconName Beacon that should be deactivated. A beacon name
+ * has the format "beacons/N!beaconId" where the beaconId is the base16 ID
+ * broadcast by the beacon and N is a code for the beacon's type. Possible
+ * values are `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or
+ * `5` for AltBeacon. For Eddystone-EID beacons, you may use either the current
+ * EID or the beacon's "stable" UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the beacon to deactivate. If
+ * the project id is not specified then the project making the request is used.
+ * The project id must match the project that owns the beacon. Optional.
+ * @return Google_Service_Proximitybeacon_ProximitybeaconEmpty
+ */
+ public function deactivate($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('deactivate', array($params), "Google_Service_Proximitybeacon_ProximitybeaconEmpty");
+ }
+ /**
+ * Decommissions the specified beacon in the service. This beacon will no longer
+ * be returned from `beaconinfo.getforobserved`. This operation is permanent --
+ * you will not be able to re-register a beacon with this ID again.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (beacons.decommission)
+ *
+ * @param string $beaconName Beacon that should be decommissioned. A beacon name
+ * has the format "beacons/N!beaconId" where the beaconId is the base16 ID
+ * broadcast by the beacon and N is a code for the beacon's type. Possible
+ * values are `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or
+ * `5` for AltBeacon. For Eddystone-EID beacons, you may use either the current
+ * EID of the beacon's "stable" UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the beacon to decommission. If
+ * the project id is not specified then the project making the request is used.
+ * The project id must match the project that owns the beacon. Optional.
+ * @return Google_Service_Proximitybeacon_ProximitybeaconEmpty
+ */
+ public function decommission($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('decommission', array($params), "Google_Service_Proximitybeacon_ProximitybeaconEmpty");
+ }
+ /**
+ * Deletes the specified beacon including all diagnostics data for the beacon as
+ * well as any attachments on the beacon (including those belonging to other
+ * projects). This operation cannot be undone.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (beacons.delete)
+ *
+ * @param string $beaconName Beacon that should be deleted. A beacon name has
+ * the format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
+ * by the beacon and N is a code for the beacon's type. Possible values are `3`
+ * for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for
+ * AltBeacon. For Eddystone-EID beacons, you may use either the current EID or
+ * the beacon's "stable" UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the beacon to delete. If not
+ * provided, the project that is making the request is used. Optional.
+ * @return Google_Service_Proximitybeacon_ProximitybeaconEmpty
+ */
+ public function delete($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Proximitybeacon_ProximitybeaconEmpty");
+ }
+ /**
+ * Returns detailed information about the specified beacon.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **viewer**, **Is owner** or **Can edit** permissions in
+ * the Google Developers Console project.
+ *
+ * Requests may supply an Eddystone-EID beacon name in the form:
+ * `beacons/4!beaconId` where the `beaconId` is the base16 ephemeral ID
+ * broadcast by the beacon. The returned `Beacon` object will contain the
+ * beacon's stable Eddystone-UID. Clients not authorized to resolve the beacon's
+ * ephemeral Eddystone-EID broadcast will receive an error. (beacons.get)
+ *
+ * @param string $beaconName Resource name of this beacon. A beacon name has the
+ * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
+ * the beacon and N is a code for the beacon's type. Possible values are `3` for
+ * Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon.
+ * For Eddystone-EID beacons, you may use either the current EID or the beacon's
+ * "stable" UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the beacon to request. If the
+ * project id is not specified then the project making the request is used. The
+ * project id must match the project that owns the beacon. Optional.
+ * @return Google_Service_Proximitybeacon_Beacon
+ */
+ public function get($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Proximitybeacon_Beacon");
+ }
+ /**
+ * Searches the beacon registry for beacons that match the given search
+ * criteria. Only those beacons that the client has permission to list will be
+ * returned.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **viewer**, **Is owner** or **Can edit** permissions in
+ * the Google Developers Console project. (beacons.listBeacons)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string q Filter query string that supports the following field
+ * filters:
+ *
+ * * **description:`""`** For example: **description:"Room 3"** Returns
+ * beacons whose description matches tokens in the string "Room 3" (not
+ * necessarily that exact string). The string must be double-quoted. *
+ * **status:``** For example: **status:active** Returns beacons whose status
+ * matches the given value. Values must be one of the Beacon.Status enum
+ * values (case insensitive). Accepts multiple filters which will be combined
+ * with OR logic. * **stability:``** For example: **stability:mobile**
+ * Returns beacons whose expected stability matches the given value. Values
+ * must be one of the Beacon.Stability enum values (case insensitive). Accepts
+ * multiple filters which will be combined with OR logic. * **place\_id:`""`**
+ * For example: **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="** Returns beacons
+ * explicitly registered at the given place, expressed as a Place ID obtained
+ * from [Google Places API](/places/place-id). Does not match places inside
+ * the given place. Does not consider the beacon's actual location (which may
+ * be different from its registered place). Accepts multiple filters that will
+ * be combined with OR logic. The place ID must be double-quoted. *
+ * **registration\_time`[<|>|<=|>=]`** For example:
+ * **registration\_time>=1433116800** Returns beacons whose registration time
+ * matches the given filter. Supports the operators: <, >, <=, and >=.
+ * Timestamp must be expressed as an integer number of seconds since midnight
+ * January 1, 1970 UTC. Accepts at most two filters that will be combined with
+ * AND logic, to support "between" semantics. If more than two are supplied,
+ * the latter ones are ignored. * **lat:` lng: radius:`** For example:
+ * **lat:51.1232343 lng:-1.093852 radius:1000** Returns beacons whose
+ * registered location is within the given circle. When any of these fields
+ * are given, all are required. Latitude and longitude must be decimal degrees
+ * between -90.0 and 90.0 and between -180.0 and 180.0 respectively. Radius
+ * must be an integer number of meters between 10 and 1,000,000 (1000 km). *
+ * **property:`"="`** For example: **property:"battery-type=CR2032"**
+ * Returns beacons which have a property of the given name and value. Supports
+ * multiple filters which will be combined with OR logic. The entire
+ * name=value string must be double-quoted as one string. *
+ * **attachment\_type:`""`** For example: **attachment_type:"my-namespace/my-
+ * type"** Returns beacons having at least one attachment of the given
+ * namespaced type. Supports "any within this namespace" via the partial
+ * wildcard syntax: "my-namespace". Supports multiple filters which will be
+ * combined with OR logic. The string must be double-quoted. *
+ * **indoor\_level:`""`** For example: **indoor\_level:"1"** Returns beacons
+ * which are located on the given indoor level. Accepts multiple filters that
+ * will be combined with OR logic.
+ *
+ * Multiple filters on the same field are combined with OR logic (except
+ * registration_time which is combined with AND logic). Multiple filters on
+ * different fields are combined with AND logic. Filters should be separated by
+ * spaces.
+ *
+ * As with any HTTP query string parameter, the whole filter expression must be
+ * URL-encoded.
+ *
+ * Example REST request: `GET
+ * /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000`
+ * @opt_param int pageSize The maximum number of records to return for this
+ * request, up to a server-defined upper limit.
+ * @opt_param string pageToken A pagination token obtained from a previous
+ * request to list beacons.
+ * @opt_param string projectId The project id to list beacons under. If not
+ * present then the project credential that made the request is used as the
+ * project. Optional.
+ * @return Google_Service_Proximitybeacon_ListBeaconsResponse
+ */
+ public function listBeacons($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListBeaconsResponse");
+ }
+ /**
+ * Registers a previously unregistered beacon given its `advertisedId`. These
+ * IDs are unique within the system. An ID can be registered only once.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (beacons.register)
+ *
+ * @param Google_Service_Proximitybeacon_Beacon $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the project the beacon will be
+ * registered to. If the project id is not specified then the project making the
+ * request is used. Optional.
+ * @return Google_Service_Proximitybeacon_Beacon
+ */
+ public function register(Google_Service_Proximitybeacon_Beacon $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('register', array($params), "Google_Service_Proximitybeacon_Beacon");
+ }
+ /**
+ * Updates the information about the specified beacon. **Any field that you do
+ * not populate in the submitted beacon will be permanently erased**, so you
+ * should follow the "read, modify, write" pattern to avoid inadvertently
+ * destroying data.
+ *
+ * Changes to the beacon status via this method will be silently ignored. To
+ * update beacon status, use the separate methods on this API for activation,
+ * deactivation, and decommissioning. Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (beacons.update)
+ *
+ * @param string $beaconName Resource name of this beacon. A beacon name has the
+ * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by
+ * the beacon and N is a code for the beacon's type. Possible values are `3` for
+ * Eddystone, `1` for iBeacon, or `5` for AltBeacon.
+ *
+ * This field must be left empty when registering. After reading a beacon,
+ * clients can use the name for future operations.
+ * @param Google_Service_Proximitybeacon_Beacon $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the beacon to update. If the
+ * project id is not specified then the project making the request is used. The
+ * project id must match the project that owns the beacon. Optional.
+ * @return Google_Service_Proximitybeacon_Beacon
+ */
+ public function update($beaconName, Google_Service_Proximitybeacon_Beacon $postBody, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Proximitybeacon_Beacon");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php
new file mode 100644
index 00000000..694d74d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsAttachments.php
@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "attachments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $proximitybeaconService = new Google_Service_Proximitybeacon(...);
+ * $attachments = $proximitybeaconService->attachments;
+ * </code>
+ */
+class Google_Service_Proximitybeacon_Resource_BeaconsAttachments extends Google_Service_Resource
+{
+ /**
+ * Deletes multiple attachments on a given beacon. This operation is permanent
+ * and cannot be undone.
+ *
+ * You can optionally specify `namespacedType` to choose which attachments
+ * should be deleted. If you do not specify `namespacedType`, all your
+ * attachments on the given beacon will be deleted. You also may explicitly
+ * specify `*` to delete all.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (attachments.batchDelete)
+ *
+ * @param string $beaconName The beacon whose attachments should be deleted. A
+ * beacon name has the format "beacons/N!beaconId" where the beaconId is the
+ * base16 ID broadcast by the beacon and N is a code for the beacon's type.
+ * Possible values are `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for
+ * iBeacon, or `5` for AltBeacon. For Eddystone-EID beacons, you may use either
+ * the current EID or the beacon's "stable" UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string namespacedType Specifies the namespace and type of
+ * attachments to delete in `namespace/type` format. Accepts `*` to specify "all
+ * types in all namespaces". Optional.
+ * @opt_param string projectId The project id to delete beacon attachments
+ * under. This field can be used when "*" is specified to mean all attachment
+ * namespaces. Projects may have multiple attachments with multiple namespaces.
+ * If "*" is specified and the projectId string is empty, then the project
+ * making the request is used. Optional.
+ * @return Google_Service_Proximitybeacon_DeleteAttachmentsResponse
+ */
+ public function batchDelete($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchDelete', array($params), "Google_Service_Proximitybeacon_DeleteAttachmentsResponse");
+ }
+ /**
+ * Associates the given data with the specified beacon. Attachment data must
+ * contain two parts:
+ *
+ * A namespaced type. The actual attachment data itself.
+ *
+ * The namespaced type consists of two parts, the namespace and the type. The
+ * namespace must be one of the values returned by the `namespaces` endpoint,
+ * while the type can be a string of any characters except for the forward slash
+ * (`/`) up to 100 characters in length.
+ *
+ * Attachment data can be up to 1024 bytes long.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (attachments.create)
+ *
+ * @param string $beaconName Beacon on which the attachment should be created. A
+ * beacon name has the format "beacons/N!beaconId" where the beaconId is the
+ * base16 ID broadcast by the beacon and N is a code for the beacon's type.
+ * Possible values are `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for
+ * iBeacon, or `5` for AltBeacon. For Eddystone-EID beacons, you may use either
+ * the current EID or the beacon's "stable" UID. Required.
+ * @param Google_Service_Proximitybeacon_BeaconAttachment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the project the attachment will
+ * belong to. If the project id is not specified then the project making the
+ * request is used. Optional.
+ * @return Google_Service_Proximitybeacon_BeaconAttachment
+ */
+ public function create($beaconName, Google_Service_Proximitybeacon_BeaconAttachment $postBody, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Proximitybeacon_BeaconAttachment");
+ }
+ /**
+ * Deletes the specified attachment for the given beacon. Each attachment has a
+ * unique attachment name (`attachmentName`) which is returned when you fetch
+ * the attachment data via this API. You specify this with the delete request to
+ * control which attachment is removed. This operation cannot be undone.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **Is owner** or **Can edit** permissions in the Google
+ * Developers Console project. (attachments.delete)
+ *
+ * @param string $attachmentName The attachment name (`attachmentName`) of the
+ * attachment to remove. For example:
+ * `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For
+ * Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the
+ * beacon's current EID, or its "stable" Eddystone-UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the attachment to delete. If
+ * not provided, the project that is making the request is used. Optional.
+ * @return Google_Service_Proximitybeacon_ProximitybeaconEmpty
+ */
+ public function delete($attachmentName, $optParams = array())
+ {
+ $params = array('attachmentName' => $attachmentName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Proximitybeacon_ProximitybeaconEmpty");
+ }
+ /**
+ * Returns the attachments for the specified beacon that match the specified
+ * namespaced-type pattern.
+ *
+ * To control which namespaced types are returned, you add the `namespacedType`
+ * query parameter to the request. You must either use `*`, to return all
+ * attachments, or the namespace must be one of the ones returned from the
+ * `namespaces` endpoint.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **viewer**, **Is owner** or **Can edit** permissions in
+ * the Google Developers Console project. (attachments.listBeaconsAttachments)
+ *
+ * @param string $beaconName Beacon whose attachments should be fetched. A
+ * beacon name has the format "beacons/N!beaconId" where the beaconId is the
+ * base16 ID broadcast by the beacon and N is a code for the beacon's type.
+ * Possible values are `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for
+ * iBeacon, or `5` for AltBeacon. For Eddystone-EID beacons, you may use either
+ * the current EID or the beacon's "stable" UID. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string namespacedType Specifies the namespace and type of
+ * attachment to include in response in namespace/type format. Accepts `*` to
+ * specify "all types in all namespaces".
+ * @opt_param string projectId The project id to list beacon attachments under.
+ * This field can be used when "*" is specified to mean all attachment
+ * namespaces. Projects may have multiple attachments with multiple namespaces.
+ * If "*" is specified and the projectId string is empty, then the project
+ * making the request is used. Optional.
+ * @return Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse
+ */
+ public function listBeaconsAttachments($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListBeaconAttachmentsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsDiagnostics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsDiagnostics.php
new file mode 100644
index 00000000..de301528
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/BeaconsDiagnostics.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "diagnostics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $proximitybeaconService = new Google_Service_Proximitybeacon(...);
+ * $diagnostics = $proximitybeaconService->diagnostics;
+ * </code>
+ */
+class Google_Service_Proximitybeacon_Resource_BeaconsDiagnostics extends Google_Service_Resource
+{
+ /**
+ * List the diagnostics for a single beacon. You can also list diagnostics for
+ * all the beacons owned by your Google Developers Console project by using the
+ * beacon name `beacons/-`.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **viewer**, **Is owner** or **Can edit** permissions in
+ * the Google Developers Console project. (diagnostics.listBeaconsDiagnostics)
+ *
+ * @param string $beaconName Beacon that the diagnostics are for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Specifies the maximum number of results to return.
+ * Defaults to 10. Maximum 1000. Optional.
+ * @opt_param string alertFilter Requests only beacons that have the given
+ * alert. For example, to find beacons that have low batteries use
+ * `alert_filter=LOW_BATTERY`.
+ * @opt_param string pageToken Requests results that occur after the
+ * `page_token`, obtained from the response to a previous request. Optional.
+ * @opt_param string projectId Requests only diagnostic records for the given
+ * project id. If not set, then the project making the request will be used for
+ * looking up diagnostic records. Optional.
+ * @return Google_Service_Proximitybeacon_ListDiagnosticsResponse
+ */
+ public function listBeaconsDiagnostics($beaconName, $optParams = array())
+ {
+ $params = array('beaconName' => $beaconName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListDiagnosticsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Namespaces.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Namespaces.php
new file mode 100644
index 00000000..545a574d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/Namespaces.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "namespaces" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $proximitybeaconService = new Google_Service_Proximitybeacon(...);
+ * $namespaces = $proximitybeaconService->namespaces;
+ * </code>
+ */
+class Google_Service_Proximitybeacon_Resource_Namespaces extends Google_Service_Resource
+{
+ /**
+ * Lists all attachment namespaces owned by your Google Developers Console
+ * project. Attachment data associated with a beacon must include a namespaced
+ * type, and the namespace must be owned by your project.
+ *
+ * Authenticate using an [OAuth access
+ * token](https://developers.google.com/identity/protocols/OAuth2) from a
+ * signed-in user with **viewer**, **Is owner** or **Can edit** permissions in
+ * the Google Developers Console project. (namespaces.listNamespaces)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id to list namespaces under.
+ * Optional.
+ * @return Google_Service_Proximitybeacon_ListNamespacesResponse
+ */
+ public function listNamespaces($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListNamespacesResponse");
+ }
+ /**
+ * Updates the information about the specified namespace. Only the namespace
+ * visibility can be updated. (namespaces.update)
+ *
+ * @param string $namespaceName Resource name of this namespace. Namespaces
+ * names have the format: namespaces/namespace.
+ * @param Google_Service_Proximitybeacon_ProximitybeaconNamespace $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The project id of the namespace to update. If the
+ * project id is not specified then the project making the request is used. The
+ * project id must match the project that owns the beacon. Optional.
+ * @return Google_Service_Proximitybeacon_ProximitybeaconNamespace
+ */
+ public function update($namespaceName, Google_Service_Proximitybeacon_ProximitybeaconNamespace $postBody, $optParams = array())
+ {
+ $params = array('namespaceName' => $namespaceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Proximitybeacon_ProximitybeaconNamespace");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/V1beta1.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/V1beta1.php
new file mode 100644
index 00000000..2d1b40be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Proximitybeacon/Resource/V1beta1.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "v1beta1" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $proximitybeaconService = new Google_Service_Proximitybeacon(...);
+ * $v1beta1 = $proximitybeaconService->v1beta1;
+ * </code>
+ */
+class Google_Service_Proximitybeacon_Resource_V1beta1 extends Google_Service_Resource
+{
+ /**
+ * Gets the Proximity Beacon API's current public key and associated parameters
+ * used to initiate the Diffie-Hellman key exchange required to register a
+ * beacon that broadcasts the Eddystone-EID format. This key changes
+ * periodically; clients may cache it and re-use the same public key to
+ * provision and register multiple beacons. However, clients should be prepared
+ * to refresh this key when they encounter an error registering an Eddystone-EID
+ * beacon. (v1beta1.getEidparams)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Proximitybeacon_EphemeralIdRegistrationParams
+ */
+ public function getEidparams($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getEidparams', array($params), "Google_Service_Proximitybeacon_EphemeralIdRegistrationParams");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub.php
new file mode 100644
index 00000000..d6b15be1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub.php
@@ -0,0 +1,353 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Pubsub (v1).
+ *
+ * <p>
+ * Provides reliable, many-to-many, asynchronous messaging between applications.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/pubsub/docs" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Pubsub extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View and manage Pub/Sub topics and subscriptions. */
+ const PUBSUB =
+ "https://www.googleapis.com/auth/pubsub";
+
+ public $projects_snapshots;
+ public $projects_subscriptions;
+ public $projects_topics;
+ public $projects_topics_subscriptions;
+
+ /**
+ * Constructs the internal representation of the Pubsub service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://pubsub.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'pubsub';
+
+ $this->projects_snapshots = new Google_Service_Pubsub_Resource_ProjectsSnapshots(
+ $this,
+ $this->serviceName,
+ 'snapshots',
+ array(
+ 'methods' => array(
+ 'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_subscriptions = new Google_Service_Pubsub_Resource_ProjectsSubscriptions(
+ $this,
+ $this->serviceName,
+ 'subscriptions',
+ array(
+ 'methods' => array(
+ 'acknowledge' => array(
+ 'path' => 'v1/{+subscription}:acknowledge',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'subscription' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+subscription}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'subscription' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+subscription}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'subscription' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+project}/subscriptions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'modifyAckDeadline' => array(
+ 'path' => 'v1/{+subscription}:modifyAckDeadline',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'subscription' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'modifyPushConfig' => array(
+ 'path' => 'v1/{+subscription}:modifyPushConfig',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'subscription' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'pull' => array(
+ 'path' => 'v1/{+subscription}:pull',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'subscription' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_topics = new Google_Service_Pubsub_Resource_ProjectsTopics(
+ $this,
+ $this->serviceName,
+ 'topics',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+topic}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'topic' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+topic}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'topic' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+project}/topics',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'publish' => array(
+ 'path' => 'v1/{+topic}:publish',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'topic' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_topics_subscriptions = new Google_Service_Pubsub_Resource_ProjectsTopicsSubscriptions(
+ $this,
+ $this->serviceName,
+ 'subscriptions',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/{+topic}/subscriptions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'topic' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/AcknowledgeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/AcknowledgeRequest.php
new file mode 100644
index 00000000..7b00a19f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/AcknowledgeRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection
+{
+ protected $collection_key = 'ackIds';
+ public $ackIds;
+
+ public function setAckIds($ackIds)
+ {
+ $this->ackIds = $ackIds;
+ }
+ public function getAckIds()
+ {
+ return $this->ackIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Binding.php
new file mode 100644
index 00000000..4d35ba89
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListSubscriptionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListSubscriptionsResponse.php
new file mode 100644
index 00000000..278c9796
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListSubscriptionsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection
+{
+ protected $collection_key = 'subscriptions';
+ public $nextPageToken;
+ protected $subscriptionsType = 'Google_Service_Pubsub_Subscription';
+ protected $subscriptionsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSubscriptions($subscriptions)
+ {
+ $this->subscriptions = $subscriptions;
+ }
+ public function getSubscriptions()
+ {
+ return $this->subscriptions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicSubscriptionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicSubscriptionsResponse.php
new file mode 100644
index 00000000..d600e582
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicSubscriptionsResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection
+{
+ protected $collection_key = 'subscriptions';
+ public $nextPageToken;
+ public $subscriptions;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSubscriptions($subscriptions)
+ {
+ $this->subscriptions = $subscriptions;
+ }
+ public function getSubscriptions()
+ {
+ return $this->subscriptions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicsResponse.php
new file mode 100644
index 00000000..a39b544f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ListTopicsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection
+{
+ protected $collection_key = 'topics';
+ public $nextPageToken;
+ protected $topicsType = 'Google_Service_Pubsub_Topic';
+ protected $topicsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTopics($topics)
+ {
+ $this->topics = $topics;
+ }
+ public function getTopics()
+ {
+ return $this->topics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyAckDeadlineRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyAckDeadlineRequest.php
new file mode 100644
index 00000000..05277801
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyAckDeadlineRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection
+{
+ protected $collection_key = 'ackIds';
+ public $ackDeadlineSeconds;
+ public $ackIds;
+
+ public function setAckDeadlineSeconds($ackDeadlineSeconds)
+ {
+ $this->ackDeadlineSeconds = $ackDeadlineSeconds;
+ }
+ public function getAckDeadlineSeconds()
+ {
+ return $this->ackDeadlineSeconds;
+ }
+ public function setAckIds($ackIds)
+ {
+ $this->ackIds = $ackIds;
+ }
+ public function getAckIds()
+ {
+ return $this->ackIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyPushConfigRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyPushConfigRequest.php
new file mode 100644
index 00000000..738bf73c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ModifyPushConfigRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model
+{
+ protected $pushConfigType = 'Google_Service_Pubsub_PushConfig';
+ protected $pushConfigDataType = '';
+
+ public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig)
+ {
+ $this->pushConfig = $pushConfig;
+ }
+ public function getPushConfig()
+ {
+ return $this->pushConfig;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Policy.php
new file mode 100644
index 00000000..556af7b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Policy.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_Policy extends Google_Collection
+{
+ protected $collection_key = 'bindings';
+ protected $bindingsType = 'Google_Service_Pubsub_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $version;
+
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishRequest.php
new file mode 100644
index 00000000..a3a8db7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_PublishRequest extends Google_Collection
+{
+ protected $collection_key = 'messages';
+ protected $messagesType = 'Google_Service_Pubsub_PubsubMessage';
+ protected $messagesDataType = 'array';
+
+ public function setMessages($messages)
+ {
+ $this->messages = $messages;
+ }
+ public function getMessages()
+ {
+ return $this->messages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishResponse.php
new file mode 100644
index 00000000..c639c407
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PublishResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_PublishResponse extends Google_Collection
+{
+ protected $collection_key = 'messageIds';
+ public $messageIds;
+
+ public function setMessageIds($messageIds)
+ {
+ $this->messageIds = $messageIds;
+ }
+ public function getMessageIds()
+ {
+ return $this->messageIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubEmpty.php
new file mode 100644
index 00000000..07f94691
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_PubsubEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubMessage.php
new file mode 100644
index 00000000..f5207ff8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PubsubMessage.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_PubsubMessage extends Google_Model
+{
+ public $attributes;
+ public $data;
+ public $messageId;
+ public $publishTime;
+
+ public function setAttributes($attributes)
+ {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessageId($messageId)
+ {
+ $this->messageId = $messageId;
+ }
+ public function getMessageId()
+ {
+ return $this->messageId;
+ }
+ public function setPublishTime($publishTime)
+ {
+ $this->publishTime = $publishTime;
+ }
+ public function getPublishTime()
+ {
+ return $this->publishTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullRequest.php
new file mode 100644
index 00000000..9d2e7afd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_PullRequest extends Google_Model
+{
+ public $maxMessages;
+ public $returnImmediately;
+
+ public function setMaxMessages($maxMessages)
+ {
+ $this->maxMessages = $maxMessages;
+ }
+ public function getMaxMessages()
+ {
+ return $this->maxMessages;
+ }
+ public function setReturnImmediately($returnImmediately)
+ {
+ $this->returnImmediately = $returnImmediately;
+ }
+ public function getReturnImmediately()
+ {
+ return $this->returnImmediately;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullResponse.php
new file mode 100644
index 00000000..c7476cde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PullResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_PullResponse extends Google_Collection
+{
+ protected $collection_key = 'receivedMessages';
+ protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage';
+ protected $receivedMessagesDataType = 'array';
+
+ public function setReceivedMessages($receivedMessages)
+ {
+ $this->receivedMessages = $receivedMessages;
+ }
+ public function getReceivedMessages()
+ {
+ return $this->receivedMessages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PushConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PushConfig.php
new file mode 100644
index 00000000..80c68a02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/PushConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_PushConfig extends Google_Model
+{
+ public $attributes;
+ public $pushEndpoint;
+
+ public function setAttributes($attributes)
+ {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+ public function setPushEndpoint($pushEndpoint)
+ {
+ $this->pushEndpoint = $pushEndpoint;
+ }
+ public function getPushEndpoint()
+ {
+ return $this->pushEndpoint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ReceivedMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ReceivedMessage.php
new file mode 100644
index 00000000..cd3dc87f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/ReceivedMessage.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_ReceivedMessage extends Google_Model
+{
+ public $ackId;
+ protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
+ protected $messageDataType = '';
+
+ public function setAckId($ackId)
+ {
+ $this->ackId = $ackId;
+ }
+ public function getAckId()
+ {
+ return $this->ackId;
+ }
+ public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/Projects.php
new file mode 100644
index 00000000..6b637693
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $pubsubService = new Google_Service_Pubsub(...);
+ * $projects = $pubsubService->projects;
+ * </code>
+ */
+class Google_Service_Pubsub_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php
new file mode 100644
index 00000000..738b18c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSnapshots.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "snapshots" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $pubsubService = new Google_Service_Pubsub(...);
+ * $snapshots = $pubsubService->snapshots;
+ * </code>
+ */
+class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Resource
+{
+ /**
+ * Gets the access control policy for a resource. Returns an empty policy if the
+ * resource exists and does not have a policy set. (snapshots.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Policy
+ */
+ public function getIamPolicy($resource, $optParams = array())
+ {
+ $params = array('resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (snapshots.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param Google_Service_Pubsub_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the
+ * resource does not exist, this will return an empty set of permissions, not a
+ * NOT_FOUND error.
+ *
+ * Note: This operation is designed to be used for building permission-aware UIs
+ * and command-line tools, not for authorization checking. This operation may
+ * "fail open" without warning. (snapshots.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. `resource` is usually specified as a path. For example, a
+ * Project resource is specified as `projects/{project}`.
+ * @param Google_Service_Pubsub_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php
new file mode 100644
index 00000000..f649aecc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsSubscriptions.php
@@ -0,0 +1,243 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $pubsubService = new Google_Service_Pubsub(...);
+ * $subscriptions = $pubsubService->subscriptions;
+ * </code>
+ */
+class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Service_Resource
+{
+ /**
+ * Acknowledges the messages associated with the `ack_ids` in the
+ * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
+ * from the subscription.
+ *
+ * Acknowledging a message whose ack deadline has expired may succeed, but such
+ * a message may be redelivered later. Acknowledging a message more than once
+ * will not result in an error. (subscriptions.acknowledge)
+ *
+ * @param string $subscription The subscription whose message is being
+ * acknowledged. Format is `projects/{project}/subscriptions/{sub}`.
+ * @param Google_Service_Pubsub_AcknowledgeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PubsubEmpty
+ */
+ public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array())
+ {
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('acknowledge', array($params), "Google_Service_Pubsub_PubsubEmpty");
+ }
+ /**
+ * Creates a subscription to a given topic. If the subscription already exists,
+ * returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns
+ * `NOT_FOUND`.
+ *
+ * If the name is not provided in the request, the server will assign a random
+ * name for this subscription on the same project as the topic, conforming to
+ * the [resource name
+ * format](https://cloud.google.com/pubsub/docs/overview#names). The generated
+ * name is populated in the returned Subscription object. Note that for REST API
+ * requests, you must specify a name in the request. (subscriptions.create)
+ *
+ * @param string $name The name of the subscription. It must have the format
+ * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
+ * start with a letter, and contain only letters (`[A-Za-z]`), numbers
+ * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus
+ * (`+`) or percent signs (`%`). It must be between 3 and 255 characters in
+ * length, and it must not start with `"goog"`.
+ * @param Google_Service_Pubsub_Subscription $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Subscription
+ */
+ public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Pubsub_Subscription");
+ }
+ /**
+ * Deletes an existing subscription. All messages retained in the subscription
+ * are immediately dropped. Calls to `Pull` after deletion will return
+ * `NOT_FOUND`. After a subscription is deleted, a new one may be created with
+ * the same name, but the new one has no association with the old subscription
+ * or its topic unless the same topic is specified. (subscriptions.delete)
+ *
+ * @param string $subscription The subscription to delete. Format is
+ * `projects/{project}/subscriptions/{sub}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PubsubEmpty
+ */
+ public function delete($subscription, $optParams = array())
+ {
+ $params = array('subscription' => $subscription);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Pubsub_PubsubEmpty");
+ }
+ /**
+ * Gets the configuration details of a subscription. (subscriptions.get)
+ *
+ * @param string $subscription The name of the subscription to get. Format is
+ * `projects/{project}/subscriptions/{sub}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Subscription
+ */
+ public function get($subscription, $optParams = array())
+ {
+ $params = array('subscription' => $subscription);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Pubsub_Subscription");
+ }
+ /**
+ * Gets the access control policy for a resource. Returns an empty policy if the
+ * resource exists and does not have a policy set. (subscriptions.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Policy
+ */
+ public function getIamPolicy($resource, $optParams = array())
+ {
+ $params = array('resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy");
+ }
+ /**
+ * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions)
+ *
+ * @param string $project The name of the cloud project that subscriptions
+ * belong to. Format is `projects/{project}`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The value returned by the last
+ * `ListSubscriptionsResponse`; indicates that this is a continuation of a prior
+ * `ListSubscriptions` call, and that the system should return the next page of
+ * data.
+ * @opt_param int pageSize Maximum number of subscriptions to return.
+ * @return Google_Service_Pubsub_ListSubscriptionsResponse
+ */
+ public function listProjectsSubscriptions($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse");
+ }
+ /**
+ * Modifies the ack deadline for a specific message. This method is useful to
+ * indicate that more time is needed to process a message by the subscriber, or
+ * to make the message available for redelivery if the processing was
+ * interrupted. Note that this does not modify the subscription-level
+ * `ackDeadlineSeconds` used for subsequent messages.
+ * (subscriptions.modifyAckDeadline)
+ *
+ * @param string $subscription The name of the subscription. Format is
+ * `projects/{project}/subscriptions/{sub}`.
+ * @param Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PubsubEmpty
+ */
+ public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array())
+ {
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_PubsubEmpty");
+ }
+ /**
+ * Modifies the `PushConfig` for a specified subscription.
+ *
+ * This may be used to change a push subscription to a pull one (signified by an
+ * empty `PushConfig`) or vice versa, or change the endpoint URL and other
+ * attributes of a push subscription. Messages will accumulate for delivery
+ * continuously through the call regardless of changes to the `PushConfig`.
+ * (subscriptions.modifyPushConfig)
+ *
+ * @param string $subscription The name of the subscription. Format is
+ * `projects/{project}/subscriptions/{sub}`.
+ * @param Google_Service_Pubsub_ModifyPushConfigRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PubsubEmpty
+ */
+ public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array())
+ {
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_PubsubEmpty");
+ }
+ /**
+ * Pulls messages from the server. Returns an empty list if there are no
+ * messages available in the backlog. The server may return `UNAVAILABLE` if
+ * there are too many concurrent pull requests pending for the given
+ * subscription. (subscriptions.pull)
+ *
+ * @param string $subscription The subscription from which messages should be
+ * pulled. Format is `projects/{project}/subscriptions/{sub}`.
+ * @param Google_Service_Pubsub_PullRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PullResponse
+ */
+ public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array())
+ {
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (subscriptions.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param Google_Service_Pubsub_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the
+ * resource does not exist, this will return an empty set of permissions, not a
+ * NOT_FOUND error.
+ *
+ * Note: This operation is designed to be used for building permission-aware UIs
+ * and command-line tools, not for authorization checking. This operation may
+ * "fail open" without warning. (subscriptions.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. `resource` is usually specified as a path. For example, a
+ * Project resource is specified as `projects/{project}`.
+ * @param Google_Service_Pubsub_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php
new file mode 100644
index 00000000..66c123ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopics.php
@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "topics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $pubsubService = new Google_Service_Pubsub(...);
+ * $topics = $pubsubService->topics;
+ * </code>
+ */
+class Google_Service_Pubsub_Resource_ProjectsTopics extends Google_Service_Resource
+{
+ /**
+ * Creates the given topic with the given name. (topics.create)
+ *
+ * @param string $name The name of the topic. It must have the format
+ * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
+ * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
+ * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs
+ * (`%`). It must be between 3 and 255 characters in length, and it must not
+ * start with `"goog"`.
+ * @param Google_Service_Pubsub_Topic $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Topic
+ */
+ public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Pubsub_Topic");
+ }
+ /**
+ * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does
+ * not exist. After a topic is deleted, a new topic may be created with the same
+ * name; this is an entirely new topic with none of the old configuration or
+ * subscriptions. Existing subscriptions to this topic are not deleted, but
+ * their `topic` field is set to `_deleted-topic_`. (topics.delete)
+ *
+ * @param string $topic Name of the topic to delete. Format is
+ * `projects/{project}/topics/{topic}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PubsubEmpty
+ */
+ public function delete($topic, $optParams = array())
+ {
+ $params = array('topic' => $topic);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Pubsub_PubsubEmpty");
+ }
+ /**
+ * Gets the configuration of a topic. (topics.get)
+ *
+ * @param string $topic The name of the topic to get. Format is
+ * `projects/{project}/topics/{topic}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Topic
+ */
+ public function get($topic, $optParams = array())
+ {
+ $params = array('topic' => $topic);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Pubsub_Topic");
+ }
+ /**
+ * Gets the access control policy for a resource. Returns an empty policy if the
+ * resource exists and does not have a policy set. (topics.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Policy
+ */
+ public function getIamPolicy($resource, $optParams = array())
+ {
+ $params = array('resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy");
+ }
+ /**
+ * Lists matching topics. (topics.listProjectsTopics)
+ *
+ * @param string $project The name of the cloud project that topics belong to.
+ * Format is `projects/{project}`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize Maximum number of topics to return.
+ * @opt_param string pageToken The value returned by the last
+ * `ListTopicsResponse`; indicates that this is a continuation of a prior
+ * `ListTopics` call, and that the system should return the next page of data.
+ * @return Google_Service_Pubsub_ListTopicsResponse
+ */
+ public function listProjectsTopics($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse");
+ }
+ /**
+ * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
+ * not exist. The message payload must not be empty; it must contain either a
+ * non-empty data field, or at least one attribute. (topics.publish)
+ *
+ * @param string $topic The messages in the request will be published on this
+ * topic. Format is `projects/{project}/topics/{topic}`.
+ * @param Google_Service_Pubsub_PublishRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PublishResponse
+ */
+ public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array())
+ {
+ $params = array('topic' => $topic, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (topics.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. `resource` is usually specified as a path. For example, a Project
+ * resource is specified as `projects/{project}`.
+ * @param Google_Service_Pubsub_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the
+ * resource does not exist, this will return an empty set of permissions, not a
+ * NOT_FOUND error.
+ *
+ * Note: This operation is designed to be used for building permission-aware UIs
+ * and command-line tools, not for authorization checking. This operation may
+ * "fail open" without warning. (topics.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. `resource` is usually specified as a path. For example, a
+ * Project resource is specified as `projects/{project}`.
+ * @param Google_Service_Pubsub_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php
new file mode 100644
index 00000000..6a1e5cc4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Resource/ProjectsTopicsSubscriptions.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $pubsubService = new Google_Service_Pubsub(...);
+ * $subscriptions = $pubsubService->subscriptions;
+ * </code>
+ */
+class Google_Service_Pubsub_Resource_ProjectsTopicsSubscriptions extends Google_Service_Resource
+{
+ /**
+ * Lists the name of the subscriptions for this topic.
+ * (subscriptions.listProjectsTopicsSubscriptions)
+ *
+ * @param string $topic The name of the topic that subscriptions are attached
+ * to. Format is `projects/{project}/topics/{topic}`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The value returned by the last
+ * `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a
+ * prior `ListTopicSubscriptions` call, and that the system should return the
+ * next page of data.
+ * @opt_param int pageSize Maximum number of subscription names to return.
+ * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse
+ */
+ public function listProjectsTopicsSubscriptions($topic, $optParams = array())
+ {
+ $params = array('topic' => $topic);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/SetIamPolicyRequest.php
new file mode 100644
index 00000000..3c577a95
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/SetIamPolicyRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_Pubsub_Policy';
+ protected $policyDataType = '';
+
+ public function setPolicy(Google_Service_Pubsub_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php
new file mode 100644
index 00000000..78a3681b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Subscription.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_Subscription extends Google_Model
+{
+ public $ackDeadlineSeconds;
+ public $name;
+ protected $pushConfigType = 'Google_Service_Pubsub_PushConfig';
+ protected $pushConfigDataType = '';
+ public $topic;
+
+ public function setAckDeadlineSeconds($ackDeadlineSeconds)
+ {
+ $this->ackDeadlineSeconds = $ackDeadlineSeconds;
+ }
+ public function getAckDeadlineSeconds()
+ {
+ return $this->ackDeadlineSeconds;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig)
+ {
+ $this->pushConfig = $pushConfig;
+ }
+ public function getPushConfig()
+ {
+ return $this->pushConfig;
+ }
+ public function setTopic($topic)
+ {
+ $this->topic = $topic;
+ }
+ public function getTopic()
+ {
+ return $this->topic;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..10bd3323
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..f9a096a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Topic.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Topic.php
new file mode 100644
index 00000000..14b6f60b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Pubsub/Topic.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Pubsub_Topic extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress.php
new file mode 100644
index 00000000..7ab9a25e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for QPXExpress (v1).
+ *
+ * <p>
+ * Finds the least expensive flights between an origin and a destination.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="http://developers.google.com/qpx-express" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_QPXExpress extends Google_Service
+{
+
+
+ public $trips;
+
+ /**
+ * Constructs the internal representation of the QPXExpress service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'qpxExpress/v1/trips/';
+ $this->version = 'v1';
+ $this->serviceName = 'qpxExpress';
+
+ $this->trips = new Google_Service_QPXExpress_Resource_Trips(
+ $this,
+ $this->serviceName,
+ 'trips',
+ array(
+ 'methods' => array(
+ 'search' => array(
+ 'path' => 'search',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AircraftData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AircraftData.php
new file mode 100644
index 00000000..1e554287
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AircraftData.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_AircraftData extends Google_Model
+{
+ public $code;
+ public $kind;
+ public $name;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AirportData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AirportData.php
new file mode 100644
index 00000000..1c7cf3f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/AirportData.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_AirportData extends Google_Model
+{
+ public $city;
+ public $code;
+ public $kind;
+ public $name;
+
+ public function setCity($city)
+ {
+ $this->city = $city;
+ }
+ public function getCity()
+ {
+ return $this->city;
+ }
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/BagDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/BagDescriptor.php
new file mode 100644
index 00000000..b5b72b09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/BagDescriptor.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_BagDescriptor extends Google_Collection
+{
+ protected $collection_key = 'description';
+ public $commercialName;
+ public $count;
+ public $description;
+ public $kind;
+ public $subcode;
+
+ public function setCommercialName($commercialName)
+ {
+ $this->commercialName = $commercialName;
+ }
+ public function getCommercialName()
+ {
+ return $this->commercialName;
+ }
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSubcode($subcode)
+ {
+ $this->subcode = $subcode;
+ }
+ public function getSubcode()
+ {
+ return $this->subcode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CarrierData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CarrierData.php
new file mode 100644
index 00000000..42b54f7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CarrierData.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_CarrierData extends Google_Model
+{
+ public $code;
+ public $kind;
+ public $name;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CityData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CityData.php
new file mode 100644
index 00000000..131cf424
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/CityData.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_CityData extends Google_Model
+{
+ public $code;
+ public $country;
+ public $kind;
+ public $name;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Data.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Data.php
new file mode 100644
index 00000000..a707205a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Data.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_Data extends Google_Collection
+{
+ protected $collection_key = 'tax';
+ protected $aircraftType = 'Google_Service_QPXExpress_AircraftData';
+ protected $aircraftDataType = 'array';
+ protected $airportType = 'Google_Service_QPXExpress_AirportData';
+ protected $airportDataType = 'array';
+ protected $carrierType = 'Google_Service_QPXExpress_CarrierData';
+ protected $carrierDataType = 'array';
+ protected $cityType = 'Google_Service_QPXExpress_CityData';
+ protected $cityDataType = 'array';
+ public $kind;
+ protected $taxType = 'Google_Service_QPXExpress_TaxData';
+ protected $taxDataType = 'array';
+
+ public function setAircraft($aircraft)
+ {
+ $this->aircraft = $aircraft;
+ }
+ public function getAircraft()
+ {
+ return $this->aircraft;
+ }
+ public function setAirport($airport)
+ {
+ $this->airport = $airport;
+ }
+ public function getAirport()
+ {
+ return $this->airport;
+ }
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setCity($city)
+ {
+ $this->city = $city;
+ }
+ public function getCity()
+ {
+ return $this->city;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTax($tax)
+ {
+ $this->tax = $tax;
+ }
+ public function getTax()
+ {
+ return $this->tax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FareInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FareInfo.php
new file mode 100644
index 00000000..169cef34
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FareInfo.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_FareInfo extends Google_Model
+{
+ public $basisCode;
+ public $carrier;
+ public $destination;
+ public $id;
+ public $kind;
+ public $origin;
+ public $private;
+
+ public function setBasisCode($basisCode)
+ {
+ $this->basisCode = $basisCode;
+ }
+ public function getBasisCode()
+ {
+ return $this->basisCode;
+ }
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setDestination($destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+ public function setPrivate($private)
+ {
+ $this->private = $private;
+ }
+ public function getPrivate()
+ {
+ return $this->private;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FlightInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FlightInfo.php
new file mode 100644
index 00000000..9406e4a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FlightInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_FlightInfo extends Google_Model
+{
+ public $carrier;
+ public $number;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FreeBaggageAllowance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FreeBaggageAllowance.php
new file mode 100644
index 00000000..937192cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/FreeBaggageAllowance.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_FreeBaggageAllowance extends Google_Collection
+{
+ protected $collection_key = 'bagDescriptor';
+ protected $bagDescriptorType = 'Google_Service_QPXExpress_BagDescriptor';
+ protected $bagDescriptorDataType = 'array';
+ public $kilos;
+ public $kilosPerPiece;
+ public $kind;
+ public $pieces;
+ public $pounds;
+
+ public function setBagDescriptor($bagDescriptor)
+ {
+ $this->bagDescriptor = $bagDescriptor;
+ }
+ public function getBagDescriptor()
+ {
+ return $this->bagDescriptor;
+ }
+ public function setKilos($kilos)
+ {
+ $this->kilos = $kilos;
+ }
+ public function getKilos()
+ {
+ return $this->kilos;
+ }
+ public function setKilosPerPiece($kilosPerPiece)
+ {
+ $this->kilosPerPiece = $kilosPerPiece;
+ }
+ public function getKilosPerPiece()
+ {
+ return $this->kilosPerPiece;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPieces($pieces)
+ {
+ $this->pieces = $pieces;
+ }
+ public function getPieces()
+ {
+ return $this->pieces;
+ }
+ public function setPounds($pounds)
+ {
+ $this->pounds = $pounds;
+ }
+ public function getPounds()
+ {
+ return $this->pounds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/LegInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/LegInfo.php
new file mode 100644
index 00000000..5236889a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/LegInfo.php
@@ -0,0 +1,174 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_LegInfo extends Google_Model
+{
+ public $aircraft;
+ public $arrivalTime;
+ public $changePlane;
+ public $connectionDuration;
+ public $departureTime;
+ public $destination;
+ public $destinationTerminal;
+ public $duration;
+ public $id;
+ public $kind;
+ public $meal;
+ public $mileage;
+ public $onTimePerformance;
+ public $operatingDisclosure;
+ public $origin;
+ public $originTerminal;
+ public $secure;
+
+ public function setAircraft($aircraft)
+ {
+ $this->aircraft = $aircraft;
+ }
+ public function getAircraft()
+ {
+ return $this->aircraft;
+ }
+ public function setArrivalTime($arrivalTime)
+ {
+ $this->arrivalTime = $arrivalTime;
+ }
+ public function getArrivalTime()
+ {
+ return $this->arrivalTime;
+ }
+ public function setChangePlane($changePlane)
+ {
+ $this->changePlane = $changePlane;
+ }
+ public function getChangePlane()
+ {
+ return $this->changePlane;
+ }
+ public function setConnectionDuration($connectionDuration)
+ {
+ $this->connectionDuration = $connectionDuration;
+ }
+ public function getConnectionDuration()
+ {
+ return $this->connectionDuration;
+ }
+ public function setDepartureTime($departureTime)
+ {
+ $this->departureTime = $departureTime;
+ }
+ public function getDepartureTime()
+ {
+ return $this->departureTime;
+ }
+ public function setDestination($destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setDestinationTerminal($destinationTerminal)
+ {
+ $this->destinationTerminal = $destinationTerminal;
+ }
+ public function getDestinationTerminal()
+ {
+ return $this->destinationTerminal;
+ }
+ public function setDuration($duration)
+ {
+ $this->duration = $duration;
+ }
+ public function getDuration()
+ {
+ return $this->duration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMeal($meal)
+ {
+ $this->meal = $meal;
+ }
+ public function getMeal()
+ {
+ return $this->meal;
+ }
+ public function setMileage($mileage)
+ {
+ $this->mileage = $mileage;
+ }
+ public function getMileage()
+ {
+ return $this->mileage;
+ }
+ public function setOnTimePerformance($onTimePerformance)
+ {
+ $this->onTimePerformance = $onTimePerformance;
+ }
+ public function getOnTimePerformance()
+ {
+ return $this->onTimePerformance;
+ }
+ public function setOperatingDisclosure($operatingDisclosure)
+ {
+ $this->operatingDisclosure = $operatingDisclosure;
+ }
+ public function getOperatingDisclosure()
+ {
+ return $this->operatingDisclosure;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+ public function setOriginTerminal($originTerminal)
+ {
+ $this->originTerminal = $originTerminal;
+ }
+ public function getOriginTerminal()
+ {
+ return $this->originTerminal;
+ }
+ public function setSecure($secure)
+ {
+ $this->secure = $secure;
+ }
+ public function getSecure()
+ {
+ return $this->secure;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PassengerCounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PassengerCounts.php
new file mode 100644
index 00000000..02cc8a83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PassengerCounts.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_PassengerCounts extends Google_Model
+{
+ public $adultCount;
+ public $childCount;
+ public $infantInLapCount;
+ public $infantInSeatCount;
+ public $kind;
+ public $seniorCount;
+
+ public function setAdultCount($adultCount)
+ {
+ $this->adultCount = $adultCount;
+ }
+ public function getAdultCount()
+ {
+ return $this->adultCount;
+ }
+ public function setChildCount($childCount)
+ {
+ $this->childCount = $childCount;
+ }
+ public function getChildCount()
+ {
+ return $this->childCount;
+ }
+ public function setInfantInLapCount($infantInLapCount)
+ {
+ $this->infantInLapCount = $infantInLapCount;
+ }
+ public function getInfantInLapCount()
+ {
+ return $this->infantInLapCount;
+ }
+ public function setInfantInSeatCount($infantInSeatCount)
+ {
+ $this->infantInSeatCount = $infantInSeatCount;
+ }
+ public function getInfantInSeatCount()
+ {
+ return $this->infantInSeatCount;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSeniorCount($seniorCount)
+ {
+ $this->seniorCount = $seniorCount;
+ }
+ public function getSeniorCount()
+ {
+ return $this->seniorCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PricingInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PricingInfo.php
new file mode 100644
index 00000000..2f2aed3b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/PricingInfo.php
@@ -0,0 +1,143 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_PricingInfo extends Google_Collection
+{
+ protected $collection_key = 'tax';
+ public $baseFareTotal;
+ protected $fareType = 'Google_Service_QPXExpress_FareInfo';
+ protected $fareDataType = 'array';
+ public $fareCalculation;
+ public $kind;
+ public $latestTicketingTime;
+ protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts';
+ protected $passengersDataType = '';
+ public $ptc;
+ public $refundable;
+ public $saleFareTotal;
+ public $saleTaxTotal;
+ public $saleTotal;
+ protected $segmentPricingType = 'Google_Service_QPXExpress_SegmentPricing';
+ protected $segmentPricingDataType = 'array';
+ protected $taxType = 'Google_Service_QPXExpress_TaxInfo';
+ protected $taxDataType = 'array';
+
+ public function setBaseFareTotal($baseFareTotal)
+ {
+ $this->baseFareTotal = $baseFareTotal;
+ }
+ public function getBaseFareTotal()
+ {
+ return $this->baseFareTotal;
+ }
+ public function setFare($fare)
+ {
+ $this->fare = $fare;
+ }
+ public function getFare()
+ {
+ return $this->fare;
+ }
+ public function setFareCalculation($fareCalculation)
+ {
+ $this->fareCalculation = $fareCalculation;
+ }
+ public function getFareCalculation()
+ {
+ return $this->fareCalculation;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLatestTicketingTime($latestTicketingTime)
+ {
+ $this->latestTicketingTime = $latestTicketingTime;
+ }
+ public function getLatestTicketingTime()
+ {
+ return $this->latestTicketingTime;
+ }
+ public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers)
+ {
+ $this->passengers = $passengers;
+ }
+ public function getPassengers()
+ {
+ return $this->passengers;
+ }
+ public function setPtc($ptc)
+ {
+ $this->ptc = $ptc;
+ }
+ public function getPtc()
+ {
+ return $this->ptc;
+ }
+ public function setRefundable($refundable)
+ {
+ $this->refundable = $refundable;
+ }
+ public function getRefundable()
+ {
+ return $this->refundable;
+ }
+ public function setSaleFareTotal($saleFareTotal)
+ {
+ $this->saleFareTotal = $saleFareTotal;
+ }
+ public function getSaleFareTotal()
+ {
+ return $this->saleFareTotal;
+ }
+ public function setSaleTaxTotal($saleTaxTotal)
+ {
+ $this->saleTaxTotal = $saleTaxTotal;
+ }
+ public function getSaleTaxTotal()
+ {
+ return $this->saleTaxTotal;
+ }
+ public function setSaleTotal($saleTotal)
+ {
+ $this->saleTotal = $saleTotal;
+ }
+ public function getSaleTotal()
+ {
+ return $this->saleTotal;
+ }
+ public function setSegmentPricing($segmentPricing)
+ {
+ $this->segmentPricing = $segmentPricing;
+ }
+ public function getSegmentPricing()
+ {
+ return $this->segmentPricing;
+ }
+ public function setTax($tax)
+ {
+ $this->tax = $tax;
+ }
+ public function getTax()
+ {
+ return $this->tax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Resource/Trips.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Resource/Trips.php
new file mode 100644
index 00000000..ad988c59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/Resource/Trips.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "trips" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $qpxExpressService = new Google_Service_QPXExpress(...);
+ * $trips = $qpxExpressService->trips;
+ * </code>
+ */
+class Google_Service_QPXExpress_Resource_Trips extends Google_Service_Resource
+{
+ /**
+ * Returns a list of flights. (trips.search)
+ *
+ * @param Google_Service_QPXExpress_TripsSearchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_QPXExpress_TripsSearchResponse
+ */
+ public function search(Google_Service_QPXExpress_TripsSearchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_QPXExpress_TripsSearchResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentInfo.php
new file mode 100644
index 00000000..e27a7af6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentInfo.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_SegmentInfo extends Google_Collection
+{
+ protected $collection_key = 'leg';
+ public $bookingCode;
+ public $bookingCodeCount;
+ public $cabin;
+ public $connectionDuration;
+ public $duration;
+ protected $flightType = 'Google_Service_QPXExpress_FlightInfo';
+ protected $flightDataType = '';
+ public $id;
+ public $kind;
+ protected $legType = 'Google_Service_QPXExpress_LegInfo';
+ protected $legDataType = 'array';
+ public $marriedSegmentGroup;
+ public $subjectToGovernmentApproval;
+
+ public function setBookingCode($bookingCode)
+ {
+ $this->bookingCode = $bookingCode;
+ }
+ public function getBookingCode()
+ {
+ return $this->bookingCode;
+ }
+ public function setBookingCodeCount($bookingCodeCount)
+ {
+ $this->bookingCodeCount = $bookingCodeCount;
+ }
+ public function getBookingCodeCount()
+ {
+ return $this->bookingCodeCount;
+ }
+ public function setCabin($cabin)
+ {
+ $this->cabin = $cabin;
+ }
+ public function getCabin()
+ {
+ return $this->cabin;
+ }
+ public function setConnectionDuration($connectionDuration)
+ {
+ $this->connectionDuration = $connectionDuration;
+ }
+ public function getConnectionDuration()
+ {
+ return $this->connectionDuration;
+ }
+ public function setDuration($duration)
+ {
+ $this->duration = $duration;
+ }
+ public function getDuration()
+ {
+ return $this->duration;
+ }
+ public function setFlight(Google_Service_QPXExpress_FlightInfo $flight)
+ {
+ $this->flight = $flight;
+ }
+ public function getFlight()
+ {
+ return $this->flight;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeg($leg)
+ {
+ $this->leg = $leg;
+ }
+ public function getLeg()
+ {
+ return $this->leg;
+ }
+ public function setMarriedSegmentGroup($marriedSegmentGroup)
+ {
+ $this->marriedSegmentGroup = $marriedSegmentGroup;
+ }
+ public function getMarriedSegmentGroup()
+ {
+ return $this->marriedSegmentGroup;
+ }
+ public function setSubjectToGovernmentApproval($subjectToGovernmentApproval)
+ {
+ $this->subjectToGovernmentApproval = $subjectToGovernmentApproval;
+ }
+ public function getSubjectToGovernmentApproval()
+ {
+ return $this->subjectToGovernmentApproval;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentPricing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentPricing.php
new file mode 100644
index 00000000..5c9e3a1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SegmentPricing.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_SegmentPricing extends Google_Collection
+{
+ protected $collection_key = 'freeBaggageOption';
+ public $fareId;
+ protected $freeBaggageOptionType = 'Google_Service_QPXExpress_FreeBaggageAllowance';
+ protected $freeBaggageOptionDataType = 'array';
+ public $kind;
+ public $segmentId;
+
+ public function setFareId($fareId)
+ {
+ $this->fareId = $fareId;
+ }
+ public function getFareId()
+ {
+ return $this->fareId;
+ }
+ public function setFreeBaggageOption($freeBaggageOption)
+ {
+ $this->freeBaggageOption = $freeBaggageOption;
+ }
+ public function getFreeBaggageOption()
+ {
+ return $this->freeBaggageOption;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSegmentId($segmentId)
+ {
+ $this->segmentId = $segmentId;
+ }
+ public function getSegmentId()
+ {
+ return $this->segmentId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInfo.php
new file mode 100644
index 00000000..ea1ebe76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInfo.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_SliceInfo extends Google_Collection
+{
+ protected $collection_key = 'segment';
+ public $duration;
+ public $kind;
+ protected $segmentType = 'Google_Service_QPXExpress_SegmentInfo';
+ protected $segmentDataType = 'array';
+
+ public function setDuration($duration)
+ {
+ $this->duration = $duration;
+ }
+ public function getDuration()
+ {
+ return $this->duration;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSegment($segment)
+ {
+ $this->segment = $segment;
+ }
+ public function getSegment()
+ {
+ return $this->segment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInput.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInput.php
new file mode 100644
index 00000000..ec918b4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/SliceInput.php
@@ -0,0 +1,122 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_SliceInput extends Google_Collection
+{
+ protected $collection_key = 'prohibitedCarrier';
+ public $alliance;
+ public $date;
+ public $destination;
+ public $kind;
+ public $maxConnectionDuration;
+ public $maxStops;
+ public $origin;
+ public $permittedCarrier;
+ protected $permittedDepartureTimeType = 'Google_Service_QPXExpress_TimeOfDayRange';
+ protected $permittedDepartureTimeDataType = '';
+ public $preferredCabin;
+ public $prohibitedCarrier;
+
+ public function setAlliance($alliance)
+ {
+ $this->alliance = $alliance;
+ }
+ public function getAlliance()
+ {
+ return $this->alliance;
+ }
+ public function setDate($date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setDestination($destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxConnectionDuration($maxConnectionDuration)
+ {
+ $this->maxConnectionDuration = $maxConnectionDuration;
+ }
+ public function getMaxConnectionDuration()
+ {
+ return $this->maxConnectionDuration;
+ }
+ public function setMaxStops($maxStops)
+ {
+ $this->maxStops = $maxStops;
+ }
+ public function getMaxStops()
+ {
+ return $this->maxStops;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+ public function setPermittedCarrier($permittedCarrier)
+ {
+ $this->permittedCarrier = $permittedCarrier;
+ }
+ public function getPermittedCarrier()
+ {
+ return $this->permittedCarrier;
+ }
+ public function setPermittedDepartureTime(Google_Service_QPXExpress_TimeOfDayRange $permittedDepartureTime)
+ {
+ $this->permittedDepartureTime = $permittedDepartureTime;
+ }
+ public function getPermittedDepartureTime()
+ {
+ return $this->permittedDepartureTime;
+ }
+ public function setPreferredCabin($preferredCabin)
+ {
+ $this->preferredCabin = $preferredCabin;
+ }
+ public function getPreferredCabin()
+ {
+ return $this->preferredCabin;
+ }
+ public function setProhibitedCarrier($prohibitedCarrier)
+ {
+ $this->prohibitedCarrier = $prohibitedCarrier;
+ }
+ public function getProhibitedCarrier()
+ {
+ return $this->prohibitedCarrier;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxData.php
new file mode 100644
index 00000000..dfcf9af2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxData.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TaxData extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxInfo.php
new file mode 100644
index 00000000..c030e34e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TaxInfo.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TaxInfo extends Google_Model
+{
+ public $chargeType;
+ public $code;
+ public $country;
+ public $id;
+ public $kind;
+ public $salePrice;
+
+ public function setChargeType($chargeType)
+ {
+ $this->chargeType = $chargeType;
+ }
+ public function getChargeType()
+ {
+ return $this->chargeType;
+ }
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSalePrice($salePrice)
+ {
+ $this->salePrice = $salePrice;
+ }
+ public function getSalePrice()
+ {
+ return $this->salePrice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TimeOfDayRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TimeOfDayRange.php
new file mode 100644
index 00000000..1b802bbc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TimeOfDayRange.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TimeOfDayRange extends Google_Model
+{
+ public $earliestTime;
+ public $kind;
+ public $latestTime;
+
+ public function setEarliestTime($earliestTime)
+ {
+ $this->earliestTime = $earliestTime;
+ }
+ public function getEarliestTime()
+ {
+ return $this->earliestTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLatestTime($latestTime)
+ {
+ $this->latestTime = $latestTime;
+ }
+ public function getLatestTime()
+ {
+ return $this->latestTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOption.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOption.php
new file mode 100644
index 00000000..2e70e788
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOption.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TripOption extends Google_Collection
+{
+ protected $collection_key = 'slice';
+ public $id;
+ public $kind;
+ protected $pricingType = 'Google_Service_QPXExpress_PricingInfo';
+ protected $pricingDataType = 'array';
+ public $saleTotal;
+ protected $sliceType = 'Google_Service_QPXExpress_SliceInfo';
+ protected $sliceDataType = 'array';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPricing($pricing)
+ {
+ $this->pricing = $pricing;
+ }
+ public function getPricing()
+ {
+ return $this->pricing;
+ }
+ public function setSaleTotal($saleTotal)
+ {
+ $this->saleTotal = $saleTotal;
+ }
+ public function getSaleTotal()
+ {
+ return $this->saleTotal;
+ }
+ public function setSlice($slice)
+ {
+ $this->slice = $slice;
+ }
+ public function getSlice()
+ {
+ return $this->slice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsRequest.php
new file mode 100644
index 00000000..efdd2f6c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsRequest.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TripOptionsRequest extends Google_Collection
+{
+ protected $collection_key = 'slice';
+ public $maxPrice;
+ protected $passengersType = 'Google_Service_QPXExpress_PassengerCounts';
+ protected $passengersDataType = '';
+ public $refundable;
+ public $saleCountry;
+ protected $sliceType = 'Google_Service_QPXExpress_SliceInput';
+ protected $sliceDataType = 'array';
+ public $solutions;
+ public $ticketingCountry;
+
+ public function setMaxPrice($maxPrice)
+ {
+ $this->maxPrice = $maxPrice;
+ }
+ public function getMaxPrice()
+ {
+ return $this->maxPrice;
+ }
+ public function setPassengers(Google_Service_QPXExpress_PassengerCounts $passengers)
+ {
+ $this->passengers = $passengers;
+ }
+ public function getPassengers()
+ {
+ return $this->passengers;
+ }
+ public function setRefundable($refundable)
+ {
+ $this->refundable = $refundable;
+ }
+ public function getRefundable()
+ {
+ return $this->refundable;
+ }
+ public function setSaleCountry($saleCountry)
+ {
+ $this->saleCountry = $saleCountry;
+ }
+ public function getSaleCountry()
+ {
+ return $this->saleCountry;
+ }
+ public function setSlice($slice)
+ {
+ $this->slice = $slice;
+ }
+ public function getSlice()
+ {
+ return $this->slice;
+ }
+ public function setSolutions($solutions)
+ {
+ $this->solutions = $solutions;
+ }
+ public function getSolutions()
+ {
+ return $this->solutions;
+ }
+ public function setTicketingCountry($ticketingCountry)
+ {
+ $this->ticketingCountry = $ticketingCountry;
+ }
+ public function getTicketingCountry()
+ {
+ return $this->ticketingCountry;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsResponse.php
new file mode 100644
index 00000000..aec30743
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripOptionsResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TripOptionsResponse extends Google_Collection
+{
+ protected $collection_key = 'tripOption';
+ protected $dataType = 'Google_Service_QPXExpress_Data';
+ protected $dataDataType = '';
+ public $kind;
+ public $requestId;
+ protected $tripOptionType = 'Google_Service_QPXExpress_TripOption';
+ protected $tripOptionDataType = 'array';
+
+ public function setData(Google_Service_QPXExpress_Data $data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setTripOption($tripOption)
+ {
+ $this->tripOption = $tripOption;
+ }
+ public function getTripOption()
+ {
+ return $this->tripOption;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchRequest.php
new file mode 100644
index 00000000..c6cdd3ff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TripsSearchRequest extends Google_Model
+{
+ protected $requestType = 'Google_Service_QPXExpress_TripOptionsRequest';
+ protected $requestDataType = '';
+
+ public function setRequest(Google_Service_QPXExpress_TripOptionsRequest $request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchResponse.php
new file mode 100644
index 00000000..43f2fcce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/QPXExpress/TripsSearchResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_QPXExpress_TripsSearchResponse extends Google_Model
+{
+ public $kind;
+ protected $tripsType = 'Google_Service_QPXExpress_TripOptionsResponse';
+ protected $tripsDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTrips(Google_Service_QPXExpress_TripOptionsResponse $trips)
+ {
+ $this->trips = $trips;
+ }
+ public function getTrips()
+ {
+ return $this->trips;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool.php
new file mode 100644
index 00000000..866b294d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool.php
@@ -0,0 +1,343 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Replicapool (v1beta2).
+ *
+ * <p>
+ * [Deprecated. Please use Instance Group Manager in Compute API] Provides
+ * groups of homogenous Compute Engine instances.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/compute/docs/instance-groups/manager/v1beta2" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Replicapool extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** View and manage your Google Compute Engine resources. */
+ const COMPUTE =
+ "https://www.googleapis.com/auth/compute";
+ /** View your Google Compute Engine resources. */
+ const COMPUTE_READONLY =
+ "https://www.googleapis.com/auth/compute.readonly";
+
+ public $instanceGroupManagers;
+ public $zoneOperations;
+
+ /**
+ * Constructs the internal representation of the Replicapool service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'replicapool/v1beta2/projects/';
+ $this->version = 'v1beta2';
+ $this->serviceName = 'replicapool';
+
+ $this->instanceGroupManagers = new Google_Service_Replicapool_Resource_InstanceGroupManagers(
+ $this,
+ $this->serviceName,
+ 'instanceGroupManagers',
+ array(
+ 'methods' => array(
+ 'abandonInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'deleteInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'size' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'recreateInstances' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resize' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'size' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'setInstanceTemplate' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setTargetPools' => array(
+ 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instanceGroupManager' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->zoneOperations = new Google_Service_Replicapool_Resource_ZoneOperations(
+ $this,
+ $this->serviceName,
+ 'zoneOperations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/zones/{zone}/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManager.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManager.php
new file mode 100644
index 00000000..b7b2c01e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManager.php
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection
+{
+ protected $collection_key = 'targetPools';
+ protected $autoHealingPoliciesType = 'Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy';
+ protected $autoHealingPoliciesDataType = 'array';
+ public $baseInstanceName;
+ public $creationTimestamp;
+ public $currentSize;
+ public $description;
+ public $fingerprint;
+ public $group;
+ public $id;
+ public $instanceTemplate;
+ public $kind;
+ public $name;
+ public $selfLink;
+ public $targetPools;
+ public $targetSize;
+
+ public function setAutoHealingPolicies($autoHealingPolicies)
+ {
+ $this->autoHealingPolicies = $autoHealingPolicies;
+ }
+ public function getAutoHealingPolicies()
+ {
+ return $this->autoHealingPolicies;
+ }
+ public function setBaseInstanceName($baseInstanceName)
+ {
+ $this->baseInstanceName = $baseInstanceName;
+ }
+ public function getBaseInstanceName()
+ {
+ return $this->baseInstanceName;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setCurrentSize($currentSize)
+ {
+ $this->currentSize = $currentSize;
+ }
+ public function getCurrentSize()
+ {
+ return $this->currentSize;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setGroup($group)
+ {
+ $this->group = $group;
+ }
+ public function getGroup()
+ {
+ return $this->group;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstanceTemplate($instanceTemplate)
+ {
+ $this->instanceTemplate = $instanceTemplate;
+ }
+ public function getInstanceTemplate()
+ {
+ return $this->instanceTemplate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTargetPools($targetPools)
+ {
+ $this->targetPools = $targetPools;
+ }
+ public function getTargetPools()
+ {
+ return $this->targetPools;
+ }
+ public function setTargetSize($targetSize)
+ {
+ $this->targetSize = $targetSize;
+ }
+ public function getTargetSize()
+ {
+ return $this->targetSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagerList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagerList.php
new file mode 100644
index 00000000..bfeb29da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagerList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_InstanceGroupManagerList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Replicapool_InstanceGroupManager';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersAbandonInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersAbandonInstancesRequest.php
new file mode 100644
index 00000000..92679f67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersAbandonInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersDeleteInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersDeleteInstancesRequest.php
new file mode 100644
index 00000000..d5433358
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersDeleteInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersRecreateInstancesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersRecreateInstancesRequest.php
new file mode 100644
index 00000000..9df7b3e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersRecreateInstancesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ public $instances;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetInstanceTemplateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetInstanceTemplateRequest.php
new file mode 100644
index 00000000..84e88d8e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetInstanceTemplateRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model
+{
+ public $instanceTemplate;
+
+ public function setInstanceTemplate($instanceTemplate)
+ {
+ $this->instanceTemplate = $instanceTemplate;
+ }
+ public function getInstanceTemplate()
+ {
+ return $this->instanceTemplate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetTargetPoolsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetTargetPoolsRequest.php
new file mode 100644
index 00000000..c17e5fc0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/InstanceGroupManagersSetTargetPoolsRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest extends Google_Collection
+{
+ protected $collection_key = 'targetPools';
+ public $fingerprint;
+ public $targetPools;
+
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setTargetPools($targetPools)
+ {
+ $this->targetPools = $targetPools;
+ }
+ public function getTargetPools()
+ {
+ return $this->targetPools;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Operation.php
new file mode 100644
index 00000000..ba8bb13e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Operation.php
@@ -0,0 +1,222 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_Replicapool_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_Replicapool_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_Replicapool_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationError.php
new file mode 100644
index 00000000..e7445cc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Replicapool_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationErrorErrors.php
new file mode 100644
index 00000000..8827f7a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationList.php
new file mode 100644
index 00000000..79651b5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Replicapool_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarnings.php
new file mode 100644
index 00000000..251dd0be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Replicapool_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarningsData.php
new file mode 100644
index 00000000..1f9d0913
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/ReplicaPoolAutoHealingPolicy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/ReplicaPoolAutoHealingPolicy.php
new file mode 100644
index 00000000..c21ebf01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/ReplicaPoolAutoHealingPolicy.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Model
+{
+ public $actionType;
+ public $healthCheck;
+
+ public function setActionType($actionType)
+ {
+ $this->actionType = $actionType;
+ }
+ public function getActionType()
+ {
+ return $this->actionType;
+ }
+ public function setHealthCheck($healthCheck)
+ {
+ $this->healthCheck = $healthCheck;
+ }
+ public function getHealthCheck()
+ {
+ return $this->healthCheck;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/InstanceGroupManagers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/InstanceGroupManagers.php
new file mode 100644
index 00000000..de735d41
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/InstanceGroupManagers.php
@@ -0,0 +1,223 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instanceGroupManagers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $replicapoolService = new Google_Service_Replicapool(...);
+ * $instanceGroupManagers = $replicapoolService->instanceGroupManagers;
+ * </code>
+ */
+class Google_Service_Replicapool_Resource_InstanceGroupManagers extends Google_Service_Resource
+{
+ /**
+ * Removes the specified instances from the managed instance group, and from any
+ * target pools of which they were members, without deleting the instances.
+ * (instanceGroupManagers.abandonInstances)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager The name of the instance group manager.
+ * @param Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function abandonInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('abandonInstances', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Deletes the instance group manager and all instances contained within. If
+ * you'd like to delete the manager without deleting the instances, you must
+ * first abandon the instances to remove them from the group.
+ * (instanceGroupManagers.delete)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager Name of the Instance Group Manager
+ * resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function delete($project, $zone, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Deletes the specified instances. The instances are deleted, then removed from
+ * the instance group and any target pools of which they were a member. The
+ * targetSize of the instance group manager is reduced by the number of
+ * instances deleted. (instanceGroupManagers.deleteInstances)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager The name of the instance group manager.
+ * @param Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function deleteInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('deleteInstances', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Returns the specified Instance Group Manager resource.
+ * (instanceGroupManagers.get)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager Name of the instance resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_InstanceGroupManager
+ */
+ public function get($project, $zone, $instanceGroupManager, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Replicapool_InstanceGroupManager");
+ }
+ /**
+ * Creates an instance group manager, as well as the instance group and the
+ * specified number of instances. (instanceGroupManagers.insert)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param int $size Number of instances that should exist.
+ * @param Google_Service_Replicapool_InstanceGroupManager $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function insert($project, $zone, $size, Google_Service_Replicapool_InstanceGroupManager $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'size' => $size, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Retrieves the list of Instance Group Manager resources contained within the
+ * specified zone. (instanceGroupManagers.listInstanceGroupManagers)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Replicapool_InstanceGroupManagerList
+ */
+ public function listInstanceGroupManagers($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Replicapool_InstanceGroupManagerList");
+ }
+ /**
+ * Recreates the specified instances. The instances are deleted, then recreated
+ * using the instance group manager's current instance template.
+ * (instanceGroupManagers.recreateInstances)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager The name of the instance group manager.
+ * @param Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function recreateInstances($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('recreateInstances', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Resizes the managed instance group up or down. If resized up, new instances
+ * are created using the current instance template. If resized down, instances
+ * are removed in the order outlined in Resizing a managed instance group.
+ * (instanceGroupManagers.resize)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager The name of the instance group manager.
+ * @param int $size Number of instances that should exist in this Instance Group
+ * Manager.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function resize($project, $zone, $instanceGroupManager, $size, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'size' => $size);
+ $params = array_merge($params, $optParams);
+ return $this->call('resize', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Sets the instance template to use when creating new instances in this group.
+ * Existing instances are not affected.
+ * (instanceGroupManagers.setInstanceTemplate)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager The name of the instance group manager.
+ * @param Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function setInstanceTemplate($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setInstanceTemplate', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Modifies the target pools to which all new instances in this group are
+ * assigned. Existing instances in the group are not affected.
+ * (instanceGroupManagers.setTargetPools)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the instance group manager
+ * resides.
+ * @param string $instanceGroupManager The name of the instance group manager.
+ * @param Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function setTargetPools($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setTargetPools', array($params), "Google_Service_Replicapool_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/ZoneOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/ZoneOperations.php
new file mode 100644
index 00000000..8f13f026
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapool/Resource/ZoneOperations.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zoneOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $replicapoolService = new Google_Service_Replicapool(...);
+ * $zoneOperations = $replicapoolService->zoneOperations;
+ * </code>
+ */
+class Google_Service_Replicapool_Resource_ZoneOperations extends Google_Service_Resource
+{
+ /**
+ * Retrieves the specified zone-specific operation resource.
+ * (zoneOperations.get)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $operation Name of the operation resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapool_Operation
+ */
+ public function get($project, $zone, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Replicapool_Operation");
+ }
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * zone. (zoneOperations.listZoneOperations)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Replicapool_OperationList
+ */
+ public function listZoneOperations($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Replicapool_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater.php
new file mode 100644
index 00000000..909d9a8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater.php
@@ -0,0 +1,306 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Replicapoolupdater (v1beta1).
+ *
+ * <p>
+ * [Deprecated. Please use compute.instanceGroupManagers.update method.
+ * replicapoolupdater API will be disabled after December 30th, 2016] Updates
+ * groups of Compute Engine instances.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Replicapoolupdater extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** View and manage replica pools. */
+ const REPLICAPOOL =
+ "https://www.googleapis.com/auth/replicapool";
+ /** View replica pools. */
+ const REPLICAPOOL_READONLY =
+ "https://www.googleapis.com/auth/replicapool.readonly";
+
+ public $rollingUpdates;
+ public $zoneOperations;
+
+ /**
+ * Constructs the internal representation of the Replicapoolupdater service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'replicapoolupdater/v1beta1/projects/';
+ $this->version = 'v1beta1';
+ $this->serviceName = 'replicapoolupdater';
+
+ $this->rollingUpdates = new Google_Service_Replicapoolupdater_Resource_RollingUpdates(
+ $this,
+ $this->serviceName,
+ 'rollingUpdates',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rollingUpdate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rollingUpdate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listInstanceUpdates' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rollingUpdate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'pause' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rollingUpdate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resume' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rollingUpdate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'rollback' => array(
+ 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rollingUpdate' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->zoneOperations = new Google_Service_Replicapoolupdater_Resource_ZoneOperations(
+ $this,
+ $this->serviceName,
+ 'zoneOperations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/zones/{zone}/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdate.php
new file mode 100644
index 00000000..bd05a8b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdate.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model
+{
+ protected $errorType = 'Google_Service_Replicapoolupdater_InstanceUpdateError';
+ protected $errorDataType = '';
+ public $instance;
+ public $status;
+
+ public function setError(Google_Service_Replicapoolupdater_InstanceUpdateError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateError.php
new file mode 100644
index 00000000..22184541
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_InstanceUpdateError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateErrorErrors.php
new file mode 100644
index 00000000..f2ab73f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateList.php
new file mode 100644
index 00000000..15e0df5b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/InstanceUpdateList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_InstanceUpdateList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Replicapoolupdater_InstanceUpdate';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Operation.php
new file mode 100644
index 00000000..5db33d80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Operation.php
@@ -0,0 +1,222 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_Replicapoolupdater_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_Replicapoolupdater_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_Replicapoolupdater_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationError.php
new file mode 100644
index 00000000..b22a03f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Replicapoolupdater_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationErrorErrors.php
new file mode 100644
index 00000000..3f2719f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationList.php
new file mode 100644
index 00000000..3383b680
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Replicapoolupdater_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarnings.php
new file mode 100644
index 00000000..20745152
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Replicapoolupdater_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarningsData.php
new file mode 100644
index 00000000..b5dd229a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/RollingUpdates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/RollingUpdates.php
new file mode 100644
index 00000000..2899ab75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/RollingUpdates.php
@@ -0,0 +1,177 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "rollingUpdates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...);
+ * $rollingUpdates = $replicapoolupdaterService->rollingUpdates;
+ * </code>
+ */
+class Google_Service_Replicapoolupdater_Resource_RollingUpdates extends Google_Service_Resource
+{
+ /**
+ * Cancels an update. The update must be PAUSED before it can be cancelled. This
+ * has no effect if the update is already CANCELLED. (rollingUpdates.cancel)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param string $rollingUpdate The name of the update.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_Operation
+ */
+ public function cancel($project, $zone, $rollingUpdate, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Replicapoolupdater_Operation");
+ }
+ /**
+ * Returns information about an update. (rollingUpdates.get)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param string $rollingUpdate The name of the update.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_RollingUpdate
+ */
+ public function get($project, $zone, $rollingUpdate, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Replicapoolupdater_RollingUpdate");
+ }
+ /**
+ * Inserts and starts a new update. (rollingUpdates.insert)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param Google_Service_Replicapoolupdater_RollingUpdate $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_Operation
+ */
+ public function insert($project, $zone, Google_Service_Replicapoolupdater_RollingUpdate $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_Operation");
+ }
+ /**
+ * Lists recent updates for a given managed instance group, in reverse
+ * chronological order and paginated format. (rollingUpdates.listRollingUpdates)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Replicapoolupdater_RollingUpdateList
+ */
+ public function listRollingUpdates($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Replicapoolupdater_RollingUpdateList");
+ }
+ /**
+ * Lists the current status for each instance within a given update.
+ * (rollingUpdates.listInstanceUpdates)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param string $rollingUpdate The name of the update.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Replicapoolupdater_InstanceUpdateList
+ */
+ public function listInstanceUpdates($project, $zone, $rollingUpdate, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
+ $params = array_merge($params, $optParams);
+ return $this->call('listInstanceUpdates', array($params), "Google_Service_Replicapoolupdater_InstanceUpdateList");
+ }
+ /**
+ * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no
+ * effect if invoked when the state of the update is PAUSED.
+ * (rollingUpdates.pause)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param string $rollingUpdate The name of the update.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_Operation
+ */
+ public function pause($project, $zone, $rollingUpdate, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
+ $params = array_merge($params, $optParams);
+ return $this->call('pause', array($params), "Google_Service_Replicapoolupdater_Operation");
+ }
+ /**
+ * Continues an update in PAUSED state. Has no effect if invoked when the state
+ * of the update is ROLLED_OUT. (rollingUpdates.resume)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param string $rollingUpdate The name of the update.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_Operation
+ */
+ public function resume($project, $zone, $rollingUpdate, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
+ $params = array_merge($params, $optParams);
+ return $this->call('resume', array($params), "Google_Service_Replicapoolupdater_Operation");
+ }
+ /**
+ * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect
+ * if invoked when the state of the update is ROLLED_BACK.
+ * (rollingUpdates.rollback)
+ *
+ * @param string $project The Google Developers Console project name.
+ * @param string $zone The name of the zone in which the update's target
+ * resides.
+ * @param string $rollingUpdate The name of the update.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_Operation
+ */
+ public function rollback($project, $zone, $rollingUpdate, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
+ $params = array_merge($params, $optParams);
+ return $this->call('rollback', array($params), "Google_Service_Replicapoolupdater_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/ZoneOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/ZoneOperations.php
new file mode 100644
index 00000000..5f8a13fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/Resource/ZoneOperations.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zoneOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...);
+ * $zoneOperations = $replicapoolupdaterService->zoneOperations;
+ * </code>
+ */
+class Google_Service_Replicapoolupdater_Resource_ZoneOperations extends Google_Service_Resource
+{
+ /**
+ * Retrieves the specified zone-specific operation resource.
+ * (zoneOperations.get)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $operation Name of the operation resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_Operation
+ */
+ public function get($project, $zone, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Operation");
+ }
+ /**
+ * Retrieves the list of Operation resources contained within the specified
+ * zone. (zoneOperations.listZoneOperations)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Replicapoolupdater_OperationList
+ */
+ public function listZoneOperations($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Replicapoolupdater_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdate.php
new file mode 100644
index 00000000..ad7ca9d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdate.php
@@ -0,0 +1,167 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model
+{
+ public $actionType;
+ public $creationTimestamp;
+ public $description;
+ protected $errorType = 'Google_Service_Replicapoolupdater_RollingUpdateError';
+ protected $errorDataType = '';
+ public $id;
+ public $instanceGroup;
+ public $instanceGroupManager;
+ public $instanceTemplate;
+ public $kind;
+ public $oldInstanceTemplate;
+ protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy';
+ protected $policyDataType = '';
+ public $progress;
+ public $selfLink;
+ public $status;
+ public $statusMessage;
+ public $user;
+
+ public function setActionType($actionType)
+ {
+ $this->actionType = $actionType;
+ }
+ public function getActionType()
+ {
+ return $this->actionType;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setError(Google_Service_Replicapoolupdater_RollingUpdateError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstanceGroup($instanceGroup)
+ {
+ $this->instanceGroup = $instanceGroup;
+ }
+ public function getInstanceGroup()
+ {
+ return $this->instanceGroup;
+ }
+ public function setInstanceGroupManager($instanceGroupManager)
+ {
+ $this->instanceGroupManager = $instanceGroupManager;
+ }
+ public function getInstanceGroupManager()
+ {
+ return $this->instanceGroupManager;
+ }
+ public function setInstanceTemplate($instanceTemplate)
+ {
+ $this->instanceTemplate = $instanceTemplate;
+ }
+ public function getInstanceTemplate()
+ {
+ return $this->instanceTemplate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOldInstanceTemplate($oldInstanceTemplate)
+ {
+ $this->oldInstanceTemplate = $oldInstanceTemplate;
+ }
+ public function getOldInstanceTemplate()
+ {
+ return $this->oldInstanceTemplate;
+ }
+ public function setPolicy(Google_Service_Replicapoolupdater_RollingUpdatePolicy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateError.php
new file mode 100644
index 00000000..9138b3ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_RollingUpdateError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Replicapoolupdater_RollingUpdateErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateErrorErrors.php
new file mode 100644
index 00000000..7763a026
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_RollingUpdateErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateList.php
new file mode 100644
index 00000000..e16cb6d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdateList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_RollingUpdateList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Replicapoolupdater_RollingUpdate';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdatePolicy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdatePolicy.php
new file mode 100644
index 00000000..257cd67d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Replicapoolupdater/RollingUpdatePolicy.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Replicapoolupdater_RollingUpdatePolicy extends Google_Model
+{
+ public $autoPauseAfterInstances;
+ public $instanceStartupTimeoutSec;
+ public $maxNumConcurrentInstances;
+ public $maxNumFailedInstances;
+ public $minInstanceUpdateTimeSec;
+
+ public function setAutoPauseAfterInstances($autoPauseAfterInstances)
+ {
+ $this->autoPauseAfterInstances = $autoPauseAfterInstances;
+ }
+ public function getAutoPauseAfterInstances()
+ {
+ return $this->autoPauseAfterInstances;
+ }
+ public function setInstanceStartupTimeoutSec($instanceStartupTimeoutSec)
+ {
+ $this->instanceStartupTimeoutSec = $instanceStartupTimeoutSec;
+ }
+ public function getInstanceStartupTimeoutSec()
+ {
+ return $this->instanceStartupTimeoutSec;
+ }
+ public function setMaxNumConcurrentInstances($maxNumConcurrentInstances)
+ {
+ $this->maxNumConcurrentInstances = $maxNumConcurrentInstances;
+ }
+ public function getMaxNumConcurrentInstances()
+ {
+ return $this->maxNumConcurrentInstances;
+ }
+ public function setMaxNumFailedInstances($maxNumFailedInstances)
+ {
+ $this->maxNumFailedInstances = $maxNumFailedInstances;
+ }
+ public function getMaxNumFailedInstances()
+ {
+ return $this->maxNumFailedInstances;
+ }
+ public function setMinInstanceUpdateTimeSec($minInstanceUpdateTimeSec)
+ {
+ $this->minInstanceUpdateTimeSec = $minInstanceUpdateTimeSec;
+ }
+ public function getMinInstanceUpdateTimeSec()
+ {
+ return $this->minInstanceUpdateTimeSec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports.php
new file mode 100644
index 00000000..f068d386
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports.php
@@ -0,0 +1,255 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Reports (reports_v1).
+ *
+ * <p>
+ * Fetches reports for the administrators of Google Apps customers about the
+ * usage, collaboration, security, and risk for their users.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/admin-sdk/reports/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Reports extends Google_Service
+{
+ /** View audit reports for your G Suite domain. */
+ const ADMIN_REPORTS_AUDIT_READONLY =
+ "https://www.googleapis.com/auth/admin.reports.audit.readonly";
+ /** View usage reports for your G Suite domain. */
+ const ADMIN_REPORTS_USAGE_READONLY =
+ "https://www.googleapis.com/auth/admin.reports.usage.readonly";
+
+ public $activities;
+ public $channels;
+ public $customerUsageReports;
+ public $userUsageReport;
+
+ /**
+ * Constructs the internal representation of the Reports service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'admin/reports/v1/';
+ $this->version = 'reports_v1';
+ $this->serviceName = 'admin';
+
+ $this->activities = new Google_Service_Reports_Resource_Activities(
+ $this,
+ $this->serviceName,
+ 'activities',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'activity/users/{userKey}/applications/{applicationName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'applicationName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'actorIpAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'eventName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'watch' => array(
+ 'path' => 'activity/users/{userKey}/applications/{applicationName}/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'applicationName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'actorIpAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'eventName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channels = new Google_Service_Reports_Resource_Channels(
+ $this,
+ $this->serviceName,
+ 'channels',
+ array(
+ 'methods' => array(
+ 'stop' => array(
+ 'path' => '/admin/reports_v1/channels/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->customerUsageReports = new Google_Service_Reports_Resource_CustomerUsageReports(
+ $this,
+ $this->serviceName,
+ 'customerUsageReports',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'usage/dates/{date}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'date' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'parameters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->userUsageReport = new Google_Service_Reports_Resource_UserUsageReport(
+ $this,
+ $this->serviceName,
+ 'userUsageReport',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'usage/users/{userKey}/dates/{date}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'userKey' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'date' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'parameters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activities.php
new file mode 100644
index 00000000..fd2ec9f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activities.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_Activities extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Reports_Activity';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activity.php
new file mode 100644
index 00000000..608bc02d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Activity.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_Activity extends Google_Collection
+{
+ protected $collection_key = 'events';
+ protected $actorType = 'Google_Service_Reports_ActivityActor';
+ protected $actorDataType = '';
+ public $etag;
+ protected $eventsType = 'Google_Service_Reports_ActivityEvents';
+ protected $eventsDataType = 'array';
+ protected $idType = 'Google_Service_Reports_ActivityId';
+ protected $idDataType = '';
+ public $ipAddress;
+ public $kind;
+ public $ownerDomain;
+
+ public function setActor(Google_Service_Reports_ActivityActor $actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEvents($events)
+ {
+ $this->events = $events;
+ }
+ public function getEvents()
+ {
+ return $this->events;
+ }
+ public function setId(Google_Service_Reports_ActivityId $id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOwnerDomain($ownerDomain)
+ {
+ $this->ownerDomain = $ownerDomain;
+ }
+ public function getOwnerDomain()
+ {
+ return $this->ownerDomain;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityActor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityActor.php
new file mode 100644
index 00000000..311fc13f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityActor.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_ActivityActor extends Google_Model
+{
+ public $callerType;
+ public $email;
+ public $key;
+ public $profileId;
+
+ public function setCallerType($callerType)
+ {
+ $this->callerType = $callerType;
+ }
+ public function getCallerType()
+ {
+ return $this->callerType;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEvents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEvents.php
new file mode 100644
index 00000000..93e9be92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEvents.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_ActivityEvents extends Google_Collection
+{
+ protected $collection_key = 'parameters';
+ public $name;
+ protected $parametersType = 'Google_Service_Reports_ActivityEventsParameters';
+ protected $parametersDataType = 'array';
+ public $type;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEventsParameters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEventsParameters.php
new file mode 100644
index 00000000..33ff073f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityEventsParameters.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_ActivityEventsParameters extends Google_Collection
+{
+ protected $collection_key = 'multiValue';
+ public $boolValue;
+ public $intValue;
+ public $multiIntValue;
+ public $multiValue;
+ public $name;
+ public $value;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setIntValue($intValue)
+ {
+ $this->intValue = $intValue;
+ }
+ public function getIntValue()
+ {
+ return $this->intValue;
+ }
+ public function setMultiIntValue($multiIntValue)
+ {
+ $this->multiIntValue = $multiIntValue;
+ }
+ public function getMultiIntValue()
+ {
+ return $this->multiIntValue;
+ }
+ public function setMultiValue($multiValue)
+ {
+ $this->multiValue = $multiValue;
+ }
+ public function getMultiValue()
+ {
+ return $this->multiValue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityId.php
new file mode 100644
index 00000000..5db0ed64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/ActivityId.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_ActivityId extends Google_Model
+{
+ public $applicationName;
+ public $customerId;
+ public $time;
+ public $uniqueQualifier;
+
+ public function setApplicationName($applicationName)
+ {
+ $this->applicationName = $applicationName;
+ }
+ public function getApplicationName()
+ {
+ return $this->applicationName;
+ }
+ public function setCustomerId($customerId)
+ {
+ $this->customerId = $customerId;
+ }
+ public function getCustomerId()
+ {
+ return $this->customerId;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+ public function setUniqueQualifier($uniqueQualifier)
+ {
+ $this->uniqueQualifier = $uniqueQualifier;
+ }
+ public function getUniqueQualifier()
+ {
+ return $this->uniqueQualifier;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Channel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Channel.php
new file mode 100644
index 00000000..96c0702e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Channel.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_Channel extends Google_Model
+{
+ public $address;
+ public $expiration;
+ public $id;
+ public $kind;
+ public $params;
+ public $payload;
+ public $resourceId;
+ public $resourceUri;
+ public $token;
+ public $type;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setResourceUri($resourceUri)
+ {
+ $this->resourceUri = $resourceUri;
+ }
+ public function getResourceUri()
+ {
+ return $this->resourceUri;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php
new file mode 100644
index 00000000..f87b1e4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Activities.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "activities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Reports(...);
+ * $activities = $adminService->activities;
+ * </code>
+ */
+class Google_Service_Reports_Resource_Activities extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of activities for a specific customer and application.
+ * (activities.listActivities)
+ *
+ * @param string $userKey Represents the profile id or the user email for which
+ * the data should be filtered. When 'all' is specified as the userKey, it
+ * returns usageReports for all users.
+ * @param string $applicationName Application name for which the events are to
+ * be retrieved.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string actorIpAddress IP Address of host where the event was
+ * performed. Supports both IPv4 and IPv6 addresses.
+ * @opt_param string customerId Represents the customer for which the data is to
+ * be fetched.
+ * @opt_param string endTime Return events which occured at or before this time.
+ * @opt_param string eventName Name of the event being queried.
+ * @opt_param string filters Event parameters in the form [parameter1
+ * name][operator][parameter1 value],[parameter2 name][operator][parameter2
+ * value],...
+ * @opt_param int maxResults Number of activity records to be shown in each
+ * page.
+ * @opt_param string pageToken Token to specify next page.
+ * @opt_param string startTime Return events which occured at or after this
+ * time.
+ * @return Google_Service_Reports_Activities
+ */
+ public function listActivities($userKey, $applicationName, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'applicationName' => $applicationName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Reports_Activities");
+ }
+ /**
+ * Push changes to activities (activities.watch)
+ *
+ * @param string $userKey Represents the profile id or the user email for which
+ * the data should be filtered. When 'all' is specified as the userKey, it
+ * returns usageReports for all users.
+ * @param string $applicationName Application name for which the events are to
+ * be retrieved.
+ * @param Google_Service_Reports_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string actorIpAddress IP Address of host where the event was
+ * performed. Supports both IPv4 and IPv6 addresses.
+ * @opt_param string customerId Represents the customer for which the data is to
+ * be fetched.
+ * @opt_param string endTime Return events which occured at or before this time.
+ * @opt_param string eventName Name of the event being queried.
+ * @opt_param string filters Event parameters in the form [parameter1
+ * name][operator][parameter1 value],[parameter2 name][operator][parameter2
+ * value],...
+ * @opt_param int maxResults Number of activity records to be shown in each
+ * page.
+ * @opt_param string pageToken Token to specify next page.
+ * @opt_param string startTime Return events which occured at or after this
+ * time.
+ * @return Google_Service_Reports_Channel
+ */
+ public function watch($userKey, $applicationName, Google_Service_Reports_Channel $postBody, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'applicationName' => $applicationName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watch', array($params), "Google_Service_Reports_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Channels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Channels.php
new file mode 100644
index 00000000..819cb561
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/Channels.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Reports(...);
+ * $channels = $adminService->channels;
+ * </code>
+ */
+class Google_Service_Reports_Resource_Channels extends Google_Service_Resource
+{
+ /**
+ * Stop watching resources through this channel (channels.stop)
+ *
+ * @param Google_Service_Reports_Channel $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function stop(Google_Service_Reports_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/CustomerUsageReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/CustomerUsageReports.php
new file mode 100644
index 00000000..f8b8959d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/CustomerUsageReports.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customerUsageReports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Reports(...);
+ * $customerUsageReports = $adminService->customerUsageReports;
+ * </code>
+ */
+class Google_Service_Reports_Resource_CustomerUsageReports extends Google_Service_Resource
+{
+ /**
+ * Retrieves a report which is a collection of properties / statistics for a
+ * specific customer. (customerUsageReports.get)
+ *
+ * @param string $date Represents the date in yyyy-mm-dd format for which the
+ * data is to be fetched.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerId Represents the customer for which the data is to
+ * be fetched.
+ * @opt_param string pageToken Token to specify next page.
+ * @opt_param string parameters Represents the application name, parameter name
+ * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
+ * @return Google_Service_Reports_UsageReports
+ */
+ public function get($date, $optParams = array())
+ {
+ $params = array('date' => $date);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Reports_UsageReports");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php
new file mode 100644
index 00000000..1ec4ab96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/Resource/UserUsageReport.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "userUsageReport" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $adminService = new Google_Service_Reports(...);
+ * $userUsageReport = $adminService->userUsageReport;
+ * </code>
+ */
+class Google_Service_Reports_Resource_UserUsageReport extends Google_Service_Resource
+{
+ /**
+ * Retrieves a report which is a collection of properties / statistics for a set
+ * of users. (userUsageReport.get)
+ *
+ * @param string $userKey Represents the profile id or the user email for which
+ * the data should be filtered.
+ * @param string $date Represents the date in yyyy-mm-dd format for which the
+ * data is to be fetched.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerId Represents the customer for which the data is to
+ * be fetched.
+ * @opt_param string filters Represents the set of filters including parameter
+ * operator value.
+ * @opt_param string maxResults Maximum number of results to return. Maximum
+ * allowed is 1000
+ * @opt_param string pageToken Token to specify next page.
+ * @opt_param string parameters Represents the application name, parameter name
+ * pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
+ * @return Google_Service_Reports_UsageReports
+ */
+ public function get($userKey, $date, $optParams = array())
+ {
+ $params = array('userKey' => $userKey, 'date' => $date);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Reports_UsageReports");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReport.php
new file mode 100644
index 00000000..69971b6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReport.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_UsageReport extends Google_Collection
+{
+ protected $collection_key = 'parameters';
+ public $date;
+ protected $entityType = 'Google_Service_Reports_UsageReportEntity';
+ protected $entityDataType = '';
+ public $etag;
+ public $kind;
+ protected $parametersType = 'Google_Service_Reports_UsageReportParameters';
+ protected $parametersDataType = 'array';
+
+ public function setDate($date)
+ {
+ $this->date = $date;
+ }
+ public function getDate()
+ {
+ return $this->date;
+ }
+ public function setEntity(Google_Service_Reports_UsageReportEntity $entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportEntity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportEntity.php
new file mode 100644
index 00000000..ee9299cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportEntity.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_UsageReportEntity extends Google_Model
+{
+ public $customerId;
+ public $profileId;
+ public $type;
+ public $userEmail;
+
+ public function setCustomerId($customerId)
+ {
+ $this->customerId = $customerId;
+ }
+ public function getCustomerId()
+ {
+ return $this->customerId;
+ }
+ public function setProfileId($profileId)
+ {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId()
+ {
+ return $this->profileId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUserEmail($userEmail)
+ {
+ $this->userEmail = $userEmail;
+ }
+ public function getUserEmail()
+ {
+ return $this->userEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportParameters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportParameters.php
new file mode 100644
index 00000000..81b85c15
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportParameters.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_UsageReportParameters extends Google_Collection
+{
+ protected $collection_key = 'msgValue';
+ public $boolValue;
+ public $datetimeValue;
+ public $intValue;
+ public $msgValue;
+ public $name;
+ public $stringValue;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setDatetimeValue($datetimeValue)
+ {
+ $this->datetimeValue = $datetimeValue;
+ }
+ public function getDatetimeValue()
+ {
+ return $this->datetimeValue;
+ }
+ public function setIntValue($intValue)
+ {
+ $this->intValue = $intValue;
+ }
+ public function getIntValue()
+ {
+ return $this->intValue;
+ }
+ public function setMsgValue($msgValue)
+ {
+ $this->msgValue = $msgValue;
+ }
+ public function getMsgValue()
+ {
+ return $this->msgValue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReports.php
new file mode 100644
index 00000000..bd19a0c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReports.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_UsageReports extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+ protected $usageReportsType = 'Google_Service_Reports_UsageReport';
+ protected $usageReportsDataType = 'array';
+ protected $warningsType = 'Google_Service_Reports_UsageReportsWarnings';
+ protected $warningsDataType = 'array';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setUsageReports($usageReports)
+ {
+ $this->usageReports = $usageReports;
+ }
+ public function getUsageReports()
+ {
+ return $this->usageReports;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarnings.php
new file mode 100644
index 00000000..397f357a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_UsageReportsWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Reports_UsageReportsWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarningsData.php
new file mode 100644
index 00000000..2db80258
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reports/UsageReportsWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reports_UsageReportsWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller.php
new file mode 100644
index 00000000..66a94051
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller.php
@@ -0,0 +1,313 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Reseller (v1).
+ *
+ * <p>
+ * Creates and manages your customers and their subscriptions.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/google-apps/reseller/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Reseller extends Google_Service
+{
+ /** Manage users on your domain. */
+ const APPS_ORDER =
+ "https://www.googleapis.com/auth/apps.order";
+ /** Manage users on your domain. */
+ const APPS_ORDER_READONLY =
+ "https://www.googleapis.com/auth/apps.order.readonly";
+
+ public $customers;
+ public $resellernotify;
+ public $subscriptions;
+
+ /**
+ * Constructs the internal representation of the Reseller service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'apps/reseller/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'reseller';
+
+ $this->customers = new Google_Service_Reseller_Resource_Customers(
+ $this,
+ $this->serviceName,
+ 'customers',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'customers/{customerId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerAuthToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'customers/{customerId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'customers/{customerId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->resellernotify = new Google_Service_Reseller_Resource_Resellernotify(
+ $this,
+ $this->serviceName,
+ 'resellernotify',
+ array(
+ 'methods' => array(
+ 'getwatchdetails' => array(
+ 'path' => 'resellernotify/getwatchdetails',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'register' => array(
+ 'path' => 'resellernotify/register',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceAccountEmailAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'unregister' => array(
+ 'path' => 'resellernotify/unregister',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceAccountEmailAddress' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->subscriptions = new Google_Service_Reseller_Resource_Subscriptions(
+ $this,
+ $this->serviceName,
+ 'subscriptions',
+ array(
+ 'methods' => array(
+ 'activate' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/activate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'changePlan' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changePlan',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'changeRenewalSettings' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'changeSeats' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/changeSeats',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'deletionType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'customers/{customerId}/subscriptions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'customerAuthToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'subscriptions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'customerAuthToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'customerNamePrefix' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'startPaidService' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/startPaidService',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'suspend' => array(
+ 'path' => 'customers/{customerId}/subscriptions/{subscriptionId}/suspend',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'customerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'subscriptionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Address.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Address.php
new file mode 100644
index 00000000..47d9a7d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Address.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_Address extends Google_Model
+{
+ public $addressLine1;
+ public $addressLine2;
+ public $addressLine3;
+ public $contactName;
+ public $countryCode;
+ public $kind;
+ public $locality;
+ public $organizationName;
+ public $postalCode;
+ public $region;
+
+ public function setAddressLine1($addressLine1)
+ {
+ $this->addressLine1 = $addressLine1;
+ }
+ public function getAddressLine1()
+ {
+ return $this->addressLine1;
+ }
+ public function setAddressLine2($addressLine2)
+ {
+ $this->addressLine2 = $addressLine2;
+ }
+ public function getAddressLine2()
+ {
+ return $this->addressLine2;
+ }
+ public function setAddressLine3($addressLine3)
+ {
+ $this->addressLine3 = $addressLine3;
+ }
+ public function getAddressLine3()
+ {
+ return $this->addressLine3;
+ }
+ public function setContactName($contactName)
+ {
+ $this->contactName = $contactName;
+ }
+ public function getContactName()
+ {
+ return $this->contactName;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocality($locality)
+ {
+ $this->locality = $locality;
+ }
+ public function getLocality()
+ {
+ return $this->locality;
+ }
+ public function setOrganizationName($organizationName)
+ {
+ $this->organizationName = $organizationName;
+ }
+ public function getOrganizationName()
+ {
+ return $this->organizationName;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ChangePlanRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ChangePlanRequest.php
new file mode 100644
index 00000000..f757f0ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ChangePlanRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_ChangePlanRequest extends Google_Model
+{
+ public $dealCode;
+ public $kind;
+ public $planName;
+ public $purchaseOrderId;
+ protected $seatsType = 'Google_Service_Reseller_Seats';
+ protected $seatsDataType = '';
+
+ public function setDealCode($dealCode)
+ {
+ $this->dealCode = $dealCode;
+ }
+ public function getDealCode()
+ {
+ return $this->dealCode;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlanName($planName)
+ {
+ $this->planName = $planName;
+ }
+ public function getPlanName()
+ {
+ return $this->planName;
+ }
+ public function setPurchaseOrderId($purchaseOrderId)
+ {
+ $this->purchaseOrderId = $purchaseOrderId;
+ }
+ public function getPurchaseOrderId()
+ {
+ return $this->purchaseOrderId;
+ }
+ public function setSeats(Google_Service_Reseller_Seats $seats)
+ {
+ $this->seats = $seats;
+ }
+ public function getSeats()
+ {
+ return $this->seats;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Customer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Customer.php
new file mode 100644
index 00000000..7328be2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Customer.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_Customer extends Google_Model
+{
+ public $alternateEmail;
+ public $customerDomain;
+ public $customerDomainVerified;
+ public $customerId;
+ public $kind;
+ public $phoneNumber;
+ protected $postalAddressType = 'Google_Service_Reseller_Address';
+ protected $postalAddressDataType = '';
+ public $resourceUiUrl;
+
+ public function setAlternateEmail($alternateEmail)
+ {
+ $this->alternateEmail = $alternateEmail;
+ }
+ public function getAlternateEmail()
+ {
+ return $this->alternateEmail;
+ }
+ public function setCustomerDomain($customerDomain)
+ {
+ $this->customerDomain = $customerDomain;
+ }
+ public function getCustomerDomain()
+ {
+ return $this->customerDomain;
+ }
+ public function setCustomerDomainVerified($customerDomainVerified)
+ {
+ $this->customerDomainVerified = $customerDomainVerified;
+ }
+ public function getCustomerDomainVerified()
+ {
+ return $this->customerDomainVerified;
+ }
+ public function setCustomerId($customerId)
+ {
+ $this->customerId = $customerId;
+ }
+ public function getCustomerId()
+ {
+ return $this->customerId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+ public function setPostalAddress(Google_Service_Reseller_Address $postalAddress)
+ {
+ $this->postalAddress = $postalAddress;
+ }
+ public function getPostalAddress()
+ {
+ return $this->postalAddress;
+ }
+ public function setResourceUiUrl($resourceUiUrl)
+ {
+ $this->resourceUiUrl = $resourceUiUrl;
+ }
+ public function getResourceUiUrl()
+ {
+ return $this->resourceUiUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/RenewalSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/RenewalSettings.php
new file mode 100644
index 00000000..2e820233
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/RenewalSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_RenewalSettings extends Google_Model
+{
+ public $kind;
+ public $renewalType;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRenewalType($renewalType)
+ {
+ $this->renewalType = $renewalType;
+ }
+ public function getRenewalType()
+ {
+ return $this->renewalType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyGetwatchdetailsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyGetwatchdetailsResponse.php
new file mode 100644
index 00000000..d617842e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyGetwatchdetailsResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_ResellernotifyGetwatchdetailsResponse extends Google_Collection
+{
+ protected $collection_key = 'serviceAccountEmailAddresses';
+ public $serviceAccountEmailAddresses;
+ public $topicName;
+
+ public function setServiceAccountEmailAddresses($serviceAccountEmailAddresses)
+ {
+ $this->serviceAccountEmailAddresses = $serviceAccountEmailAddresses;
+ }
+ public function getServiceAccountEmailAddresses()
+ {
+ return $this->serviceAccountEmailAddresses;
+ }
+ public function setTopicName($topicName)
+ {
+ $this->topicName = $topicName;
+ }
+ public function getTopicName()
+ {
+ return $this->topicName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyResource.php
new file mode 100644
index 00000000..5124167e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/ResellernotifyResource.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_ResellernotifyResource extends Google_Model
+{
+ public $topicName;
+
+ public function setTopicName($topicName)
+ {
+ $this->topicName = $topicName;
+ }
+ public function getTopicName()
+ {
+ return $this->topicName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Customers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Customers.php
new file mode 100644
index 00000000..2d87a3b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Customers.php
@@ -0,0 +1,99 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "customers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $resellerService = new Google_Service_Reseller(...);
+ * $customers = $resellerService->customers;
+ * </code>
+ */
+class Google_Service_Reseller_Resource_Customers extends Google_Service_Resource
+{
+ /**
+ * Get a customer account. (customers.get)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Customer
+ */
+ public function get($customerId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Reseller_Customer");
+ }
+ /**
+ * Order a new customer's account. (customers.insert)
+ *
+ * @param Google_Service_Reseller_Customer $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerAuthToken The customerAuthToken query string is
+ * required when creating a resold account that transfers a direct customer's
+ * subscription or transfers another reseller customer's subscription to your
+ * reseller management. This is a hexadecimal authentication token needed to
+ * complete the subscription transfer. For more information, see the
+ * administrator help center.
+ * @return Google_Service_Reseller_Customer
+ */
+ public function insert(Google_Service_Reseller_Customer $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Reseller_Customer");
+ }
+ /**
+ * Update a customer account's settings. This method supports patch semantics.
+ * (customers.patch)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param Google_Service_Reseller_Customer $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Customer
+ */
+ public function patch($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Reseller_Customer");
+ }
+ /**
+ * Update a customer account's settings. (customers.update)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param Google_Service_Reseller_Customer $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Customer
+ */
+ public function update($customerId, Google_Service_Reseller_Customer $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Reseller_Customer");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Resellernotify.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Resellernotify.php
new file mode 100644
index 00000000..6bfc10fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Resellernotify.php
@@ -0,0 +1,72 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "resellernotify" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $resellerService = new Google_Service_Reseller(...);
+ * $resellernotify = $resellerService->resellernotify;
+ * </code>
+ */
+class Google_Service_Reseller_Resource_Resellernotify extends Google_Service_Resource
+{
+ /**
+ * Returns all the details of the watch corresponding to the reseller.
+ * (resellernotify.getwatchdetails)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_ResellernotifyGetwatchdetailsResponse
+ */
+ public function getwatchdetails($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getwatchdetails', array($params), "Google_Service_Reseller_ResellernotifyGetwatchdetailsResponse");
+ }
+ /**
+ * Registers a Reseller for receiving notifications. (resellernotify.register)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string serviceAccountEmailAddress The service account which will
+ * own the created Cloud-PubSub topic.
+ * @return Google_Service_Reseller_ResellernotifyResource
+ */
+ public function register($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('register', array($params), "Google_Service_Reseller_ResellernotifyResource");
+ }
+ /**
+ * Unregisters a Reseller for receiving notifications.
+ * (resellernotify.unregister)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string serviceAccountEmailAddress The service account which owns
+ * the Cloud-PubSub topic.
+ * @return Google_Service_Reseller_ResellernotifyResource
+ */
+ public function unregister($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('unregister', array($params), "Google_Service_Reseller_ResellernotifyResource");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php
new file mode 100644
index 00000000..3a8b81fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Resource/Subscriptions.php
@@ -0,0 +1,265 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $resellerService = new Google_Service_Reseller(...);
+ * $subscriptions = $resellerService->subscriptions;
+ * </code>
+ */
+class Google_Service_Reseller_Resource_Subscriptions extends Google_Service_Resource
+{
+ /**
+ * Activates a subscription previously suspended by the reseller
+ * (subscriptions.activate)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function activate($customerId, $subscriptionId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('activate', array($params), "Google_Service_Reseller_Subscription");
+ }
+ /**
+ * Update a subscription plan. Use this method to update a plan for a 30-day
+ * trial or a flexible plan subscription to an annual commitment plan with
+ * monthly or yearly payments. (subscriptions.changePlan)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param Google_Service_Reseller_ChangePlanRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function changePlan($customerId, $subscriptionId, Google_Service_Reseller_ChangePlanRequest $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('changePlan', array($params), "Google_Service_Reseller_Subscription");
+ }
+ /**
+ * Update a user license's renewal settings. This is applicable for accounts
+ * with annual commitment plans only. (subscriptions.changeRenewalSettings)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param Google_Service_Reseller_RenewalSettings $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function changeRenewalSettings($customerId, $subscriptionId, Google_Service_Reseller_RenewalSettings $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('changeRenewalSettings', array($params), "Google_Service_Reseller_Subscription");
+ }
+ /**
+ * Update a subscription's user license settings. (subscriptions.changeSeats)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param Google_Service_Reseller_Seats $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function changeSeats($customerId, $subscriptionId, Google_Service_Reseller_Seats $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('changeSeats', array($params), "Google_Service_Reseller_Subscription");
+ }
+ /**
+ * Cancel, suspend or transfer a subscription to direct. (subscriptions.delete)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param string $deletionType The deletionType query string enables the
+ * cancellation, downgrade, or suspension of a subscription.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customerId, $subscriptionId, $deletionType, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Get a specific subscription. (subscriptions.get)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function get($customerId, $subscriptionId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Reseller_Subscription");
+ }
+ /**
+ * Create or transfer a subscription. (subscriptions.insert)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param Google_Service_Reseller_Subscription $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerAuthToken The customerAuthToken query string is
+ * required when creating a resold account that transfers a direct customer's
+ * subscription or transfers another reseller customer's subscription to your
+ * reseller management. This is a hexadecimal authentication token needed to
+ * complete the subscription transfer. For more information, see the
+ * administrator help center.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function insert($customerId, Google_Service_Reseller_Subscription $postBody, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Reseller_Subscription");
+ }
+ /**
+ * List of subscriptions managed by the reseller. The list can be all
+ * subscriptions, all of a customer's subscriptions, or all of a customer's
+ * transferable subscriptions. (subscriptions.listSubscriptions)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerAuthToken The customerAuthToken query string is
+ * required when creating a resold account that transfers a direct customer's
+ * subscription or transfers another reseller customer's subscription to your
+ * reseller management. This is a hexadecimal authentication token needed to
+ * complete the subscription transfer. For more information, see the
+ * administrator help center.
+ * @opt_param string customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @opt_param string customerNamePrefix When retrieving all of your
+ * subscriptions and filtering for specific customers, you can enter a prefix
+ * for a customer name. Using an example customer group that includes exam.com,
+ * example20.com and example.com: - exa -- Returns all customer names that start
+ * with 'exa' which could include exam.com, example20.com, and example.com. A
+ * name prefix is similar to using a regular expression's asterisk, exa*. -
+ * example -- Returns example20.com and example.com.
+ * @opt_param string maxResults When retrieving a large list, the maxResults is
+ * the maximum number of results per page. The nextPageToken value takes you to
+ * the next page. The default is 20.
+ * @opt_param string pageToken Token to specify next page in the list
+ * @return Google_Service_Reseller_Subscriptions
+ */
+ public function listSubscriptions($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Reseller_Subscriptions");
+ }
+ /**
+ * Immediately move a 30-day free trial subscription to a paid service
+ * subscription. (subscriptions.startPaidService)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function startPaidService($customerId, $subscriptionId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('startPaidService', array($params), "Google_Service_Reseller_Subscription");
+ }
+ /**
+ * Suspends an active subscription. (subscriptions.suspend)
+ *
+ * @param string $customerId Either the customer's primary domain name or the
+ * customer's unique identifier. If using the domain name, we do not recommend
+ * using a customerId as a key for persistent data. If the domain name for a
+ * customerId is changed, the Google system automatically updates.
+ * @param string $subscriptionId This is a required property. The subscriptionId
+ * is the subscription identifier and is unique for each customer. Since a
+ * subscriptionId changes when a subscription is updated, we recommend to not
+ * use this ID as a key for persistent data. And the subscriptionId can be found
+ * using the retrieve all reseller subscriptions method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function suspend($customerId, $subscriptionId, $optParams = array())
+ {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('suspend', array($params), "Google_Service_Reseller_Subscription");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Seats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Seats.php
new file mode 100644
index 00000000..5847a2ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Seats.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_Seats extends Google_Model
+{
+ public $kind;
+ public $licensedNumberOfSeats;
+ public $maximumNumberOfSeats;
+ public $numberOfSeats;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLicensedNumberOfSeats($licensedNumberOfSeats)
+ {
+ $this->licensedNumberOfSeats = $licensedNumberOfSeats;
+ }
+ public function getLicensedNumberOfSeats()
+ {
+ return $this->licensedNumberOfSeats;
+ }
+ public function setMaximumNumberOfSeats($maximumNumberOfSeats)
+ {
+ $this->maximumNumberOfSeats = $maximumNumberOfSeats;
+ }
+ public function getMaximumNumberOfSeats()
+ {
+ return $this->maximumNumberOfSeats;
+ }
+ public function setNumberOfSeats($numberOfSeats)
+ {
+ $this->numberOfSeats = $numberOfSeats;
+ }
+ public function getNumberOfSeats()
+ {
+ return $this->numberOfSeats;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscription.php
new file mode 100644
index 00000000..ab62a7ef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscription.php
@@ -0,0 +1,189 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_Subscription extends Google_Collection
+{
+ protected $collection_key = 'suspensionReasons';
+ public $billingMethod;
+ public $creationTime;
+ public $customerDomain;
+ public $customerId;
+ public $dealCode;
+ public $kind;
+ protected $planType = 'Google_Service_Reseller_SubscriptionPlan';
+ protected $planDataType = '';
+ public $purchaseOrderId;
+ protected $renewalSettingsType = 'Google_Service_Reseller_RenewalSettings';
+ protected $renewalSettingsDataType = '';
+ public $resourceUiUrl;
+ protected $seatsType = 'Google_Service_Reseller_Seats';
+ protected $seatsDataType = '';
+ public $skuId;
+ public $skuName;
+ public $status;
+ public $subscriptionId;
+ public $suspensionReasons;
+ protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo';
+ protected $transferInfoDataType = '';
+ protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings';
+ protected $trialSettingsDataType = '';
+
+ public function setBillingMethod($billingMethod)
+ {
+ $this->billingMethod = $billingMethod;
+ }
+ public function getBillingMethod()
+ {
+ return $this->billingMethod;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setCustomerDomain($customerDomain)
+ {
+ $this->customerDomain = $customerDomain;
+ }
+ public function getCustomerDomain()
+ {
+ return $this->customerDomain;
+ }
+ public function setCustomerId($customerId)
+ {
+ $this->customerId = $customerId;
+ }
+ public function getCustomerId()
+ {
+ return $this->customerId;
+ }
+ public function setDealCode($dealCode)
+ {
+ $this->dealCode = $dealCode;
+ }
+ public function getDealCode()
+ {
+ return $this->dealCode;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlan(Google_Service_Reseller_SubscriptionPlan $plan)
+ {
+ $this->plan = $plan;
+ }
+ public function getPlan()
+ {
+ return $this->plan;
+ }
+ public function setPurchaseOrderId($purchaseOrderId)
+ {
+ $this->purchaseOrderId = $purchaseOrderId;
+ }
+ public function getPurchaseOrderId()
+ {
+ return $this->purchaseOrderId;
+ }
+ public function setRenewalSettings(Google_Service_Reseller_RenewalSettings $renewalSettings)
+ {
+ $this->renewalSettings = $renewalSettings;
+ }
+ public function getRenewalSettings()
+ {
+ return $this->renewalSettings;
+ }
+ public function setResourceUiUrl($resourceUiUrl)
+ {
+ $this->resourceUiUrl = $resourceUiUrl;
+ }
+ public function getResourceUiUrl()
+ {
+ return $this->resourceUiUrl;
+ }
+ public function setSeats(Google_Service_Reseller_Seats $seats)
+ {
+ $this->seats = $seats;
+ }
+ public function getSeats()
+ {
+ return $this->seats;
+ }
+ public function setSkuId($skuId)
+ {
+ $this->skuId = $skuId;
+ }
+ public function getSkuId()
+ {
+ return $this->skuId;
+ }
+ public function setSkuName($skuName)
+ {
+ $this->skuName = $skuName;
+ }
+ public function getSkuName()
+ {
+ return $this->skuName;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSubscriptionId($subscriptionId)
+ {
+ $this->subscriptionId = $subscriptionId;
+ }
+ public function getSubscriptionId()
+ {
+ return $this->subscriptionId;
+ }
+ public function setSuspensionReasons($suspensionReasons)
+ {
+ $this->suspensionReasons = $suspensionReasons;
+ }
+ public function getSuspensionReasons()
+ {
+ return $this->suspensionReasons;
+ }
+ public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo)
+ {
+ $this->transferInfo = $transferInfo;
+ }
+ public function getTransferInfo()
+ {
+ return $this->transferInfo;
+ }
+ public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettings $trialSettings)
+ {
+ $this->trialSettings = $trialSettings;
+ }
+ public function getTrialSettings()
+ {
+ return $this->trialSettings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlan.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlan.php
new file mode 100644
index 00000000..e3ee1d79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlan.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_SubscriptionPlan extends Google_Model
+{
+ protected $commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval';
+ protected $commitmentIntervalDataType = '';
+ public $isCommitmentPlan;
+ public $planName;
+
+ public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval $commitmentInterval)
+ {
+ $this->commitmentInterval = $commitmentInterval;
+ }
+ public function getCommitmentInterval()
+ {
+ return $this->commitmentInterval;
+ }
+ public function setIsCommitmentPlan($isCommitmentPlan)
+ {
+ $this->isCommitmentPlan = $isCommitmentPlan;
+ }
+ public function getIsCommitmentPlan()
+ {
+ return $this->isCommitmentPlan;
+ }
+ public function setPlanName($planName)
+ {
+ $this->planName = $planName;
+ }
+ public function getPlanName()
+ {
+ return $this->planName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlanCommitmentInterval.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlanCommitmentInterval.php
new file mode 100644
index 00000000..69f2bccd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionPlanCommitmentInterval.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_SubscriptionPlanCommitmentInterval extends Google_Model
+{
+ public $endTime;
+ public $startTime;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTransferInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTransferInfo.php
new file mode 100644
index 00000000..75f6cfb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTransferInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_SubscriptionTransferInfo extends Google_Model
+{
+ public $minimumTransferableSeats;
+ public $transferabilityExpirationTime;
+
+ public function setMinimumTransferableSeats($minimumTransferableSeats)
+ {
+ $this->minimumTransferableSeats = $minimumTransferableSeats;
+ }
+ public function getMinimumTransferableSeats()
+ {
+ return $this->minimumTransferableSeats;
+ }
+ public function setTransferabilityExpirationTime($transferabilityExpirationTime)
+ {
+ $this->transferabilityExpirationTime = $transferabilityExpirationTime;
+ }
+ public function getTransferabilityExpirationTime()
+ {
+ return $this->transferabilityExpirationTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTrialSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTrialSettings.php
new file mode 100644
index 00000000..a16afb49
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/SubscriptionTrialSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_SubscriptionTrialSettings extends Google_Model
+{
+ public $isInTrial;
+ public $trialEndTime;
+
+ public function setIsInTrial($isInTrial)
+ {
+ $this->isInTrial = $isInTrial;
+ }
+ public function getIsInTrial()
+ {
+ return $this->isInTrial;
+ }
+ public function setTrialEndTime($trialEndTime)
+ {
+ $this->trialEndTime = $trialEndTime;
+ }
+ public function getTrialEndTime()
+ {
+ return $this->trialEndTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscriptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscriptions.php
new file mode 100644
index 00000000..708fb5ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Reseller/Subscriptions.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Reseller_Subscriptions extends Google_Collection
+{
+ protected $collection_key = 'subscriptions';
+ public $kind;
+ public $nextPageToken;
+ protected $subscriptionsType = 'Google_Service_Reseller_Subscription';
+ protected $subscriptionsDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSubscriptions($subscriptions)
+ {
+ $this->subscriptions = $subscriptions;
+ }
+ public function getSubscriptions()
+ {
+ return $this->subscriptions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews.php
new file mode 100644
index 00000000..80d3bd3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews.php
@@ -0,0 +1,339 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Resourceviews (v1beta2).
+ *
+ * <p>
+ * The Resource View API allows users to create and manage logical sets of
+ * Google Compute Engine instances.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/compute/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Resourceviews extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** View and manage your Google Compute Engine resources. */
+ const COMPUTE =
+ "https://www.googleapis.com/auth/compute";
+ /** View your Google Compute Engine resources. */
+ const COMPUTE_READONLY =
+ "https://www.googleapis.com/auth/compute.readonly";
+ /** View and manage your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN =
+ "https://www.googleapis.com/auth/ndev.cloudman";
+ /** View your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN_READONLY =
+ "https://www.googleapis.com/auth/ndev.cloudman.readonly";
+
+ public $zoneOperations;
+ public $zoneViews;
+
+ /**
+ * Constructs the internal representation of the Resourceviews service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'resourceviews/v1beta2/projects/';
+ $this->version = 'v1beta2';
+ $this->serviceName = 'resourceviews';
+
+ $this->zoneOperations = new Google_Service_Resourceviews_Resource_ZoneOperations(
+ $this,
+ $this->serviceName,
+ 'zoneOperations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/zones/{zone}/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->zoneViews = new Google_Service_Resourceviews_Resource_ZoneViews(
+ $this,
+ $this->serviceName,
+ 'zoneViews',
+ array(
+ 'methods' => array(
+ 'addResources' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/addResources',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceView' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceView' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceView' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getService' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/getService',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceView' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listResources' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/resources',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceView' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'listState' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'serviceName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'removeResources' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceView' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setService' => array(
+ 'path' => '{project}/zones/{zone}/resourceViews/{resourceView}/setService',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'zone' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'resourceView' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Label.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Label.php
new file mode 100644
index 00000000..a6fdc018
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Label.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_Label extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ListResourceResponseItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ListResourceResponseItem.php
new file mode 100644
index 00000000..6a6ad8ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ListResourceResponseItem.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ListResourceResponseItem extends Google_Model
+{
+ public $endpoints;
+ public $resource;
+
+ public function setEndpoints($endpoints)
+ {
+ $this->endpoints = $endpoints;
+ }
+ public function getEndpoints()
+ {
+ return $this->endpoints;
+ }
+ public function setResource($resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Operation.php
new file mode 100644
index 00000000..78207f62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Operation.php
@@ -0,0 +1,222 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_Resourceviews_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_Resourceviews_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_Resourceviews_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationError.php
new file mode 100644
index 00000000..5aea2113
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_Resourceviews_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationErrorErrors.php
new file mode 100644
index 00000000..bcbc36ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationList.php
new file mode 100644
index 00000000..e1bc4b6e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationList.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_Resourceviews_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarnings.php
new file mode 100644
index 00000000..0ba5ef48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_Resourceviews_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarningsData.php
new file mode 100644
index 00000000..0c5fd964
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneOperations.php
new file mode 100644
index 00000000..7bc6bb65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneOperations.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zoneOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $resourceviewsService = new Google_Service_Resourceviews(...);
+ * $zoneOperations = $resourceviewsService->zoneOperations;
+ * </code>
+ */
+class Google_Service_Resourceviews_Resource_ZoneOperations extends Google_Service_Resource
+{
+ /**
+ * Retrieves the specified zone-specific operation resource.
+ * (zoneOperations.get)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $operation Name of the operation resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Resourceviews_Operation
+ */
+ public function get($project, $zone, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Resourceviews_Operation");
+ }
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * zone. (zoneOperations.listZoneOperations)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Resourceviews_OperationList
+ */
+ public function listZoneOperations($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Resourceviews_OperationList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneViews.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneViews.php
new file mode 100644
index 00000000..fc4aeade
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/Resource/ZoneViews.php
@@ -0,0 +1,190 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "zoneViews" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $resourceviewsService = new Google_Service_Resourceviews(...);
+ * $zoneViews = $resourceviewsService->zoneViews;
+ * </code>
+ */
+class Google_Service_Resourceviews_Resource_ZoneViews extends Google_Service_Resource
+{
+ /**
+ * Add resources to the view. (zoneViews.addResources)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param string $resourceView The name of the resource view.
+ * @param Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Resourceviews_Operation
+ */
+ public function addResources($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addResources', array($params), "Google_Service_Resourceviews_Operation");
+ }
+ /**
+ * Delete a resource view. (zoneViews.delete)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param string $resourceView The name of the resource view.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Resourceviews_Operation
+ */
+ public function delete($project, $zone, $resourceView, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Resourceviews_Operation");
+ }
+ /**
+ * Get the information of a zonal resource view. (zoneViews.get)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param string $resourceView The name of the resource view.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Resourceviews_ResourceView
+ */
+ public function get($project, $zone, $resourceView, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Resourceviews_ResourceView");
+ }
+ /**
+ * Get the service information of a resource view or a resource.
+ * (zoneViews.getService)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param string $resourceView The name of the resource view.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string resourceName The name of the resource if user wants to get
+ * the service information of the resource.
+ * @return Google_Service_Resourceviews_ZoneViewsGetServiceResponse
+ */
+ public function getService($project, $zone, $resourceView, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView);
+ $params = array_merge($params, $optParams);
+ return $this->call('getService', array($params), "Google_Service_Resourceviews_ZoneViewsGetServiceResponse");
+ }
+ /**
+ * Create a resource view. (zoneViews.insert)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param Google_Service_Resourceviews_ResourceView $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Resourceviews_Operation
+ */
+ public function insert($project, $zone, Google_Service_Resourceviews_ResourceView $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Resourceviews_Operation");
+ }
+ /**
+ * List resource views. (zoneViews.listZoneViews)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum count of results to be returned. Acceptable
+ * values are 0 to 5000, inclusive. (Default: 5000)
+ * @opt_param string pageToken Specifies a nextPageToken returned by a previous
+ * list request. This token can be used to request the next page of results from
+ * a previous list request.
+ * @return Google_Service_Resourceviews_ZoneViewsList
+ */
+ public function listZoneViews($project, $zone, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Resourceviews_ZoneViewsList");
+ }
+ /**
+ * List the resources of the resource view. (zoneViews.listResources)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param string $resourceView The name of the resource view.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string format The requested format of the return value. It can be
+ * URL or URL_PORT. A JSON object will be included in the response based on the
+ * format. The default format is NONE, which results in no JSON in the response.
+ * @opt_param string listState The state of the instance to list. By default, it
+ * lists all instances.
+ * @opt_param int maxResults Maximum count of results to be returned. Acceptable
+ * values are 0 to 5000, inclusive. (Default: 5000)
+ * @opt_param string pageToken Specifies a nextPageToken returned by a previous
+ * list request. This token can be used to request the next page of results from
+ * a previous list request.
+ * @opt_param string serviceName The service name to return in the response. It
+ * is optional and if it is not set, all the service end points will be
+ * returned.
+ * @return Google_Service_Resourceviews_ZoneViewsListResourcesResponse
+ */
+ public function listResources($project, $zone, $resourceView, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView);
+ $params = array_merge($params, $optParams);
+ return $this->call('listResources', array($params), "Google_Service_Resourceviews_ZoneViewsListResourcesResponse");
+ }
+ /**
+ * Remove resources from the view. (zoneViews.removeResources)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param string $resourceView The name of the resource view.
+ * @param Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Resourceviews_Operation
+ */
+ public function removeResources($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeResources', array($params), "Google_Service_Resourceviews_Operation");
+ }
+ /**
+ * Update the service information of a resource view or a resource.
+ * (zoneViews.setService)
+ *
+ * @param string $project The project name of the resource view.
+ * @param string $zone The zone name of the resource view.
+ * @param string $resourceView The name of the resource view.
+ * @param Google_Service_Resourceviews_ZoneViewsSetServiceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Resourceviews_Operation
+ */
+ public function setService($project, $zone, $resourceView, Google_Service_Resourceviews_ZoneViewsSetServiceRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'resourceView' => $resourceView, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setService', array($params), "Google_Service_Resourceviews_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ResourceView.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ResourceView.php
new file mode 100644
index 00000000..d0767580
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ResourceView.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ResourceView extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $creationTimestamp;
+ public $description;
+ protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint';
+ protected $endpointsDataType = 'array';
+ public $fingerprint;
+ public $id;
+ public $kind;
+ protected $labelsType = 'Google_Service_Resourceviews_Label';
+ protected $labelsDataType = 'array';
+ public $name;
+ public $network;
+ public $resources;
+ public $selfLink;
+ public $size;
+
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndpoints($endpoints)
+ {
+ $this->endpoints = $endpoints;
+ }
+ public function getEndpoints()
+ {
+ return $this->endpoints;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ServiceEndpoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ServiceEndpoint.php
new file mode 100644
index 00000000..8c8aeabb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ServiceEndpoint.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ServiceEndpoint extends Google_Model
+{
+ public $name;
+ public $port;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsAddResourcesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsAddResourcesRequest.php
new file mode 100644
index 00000000..20e615e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsAddResourcesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ZoneViewsAddResourcesRequest extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $resources;
+
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsGetServiceResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsGetServiceResponse.php
new file mode 100644
index 00000000..b5a61984
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsGetServiceResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ZoneViewsGetServiceResponse extends Google_Collection
+{
+ protected $collection_key = 'endpoints';
+ protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint';
+ protected $endpointsDataType = 'array';
+ public $fingerprint;
+
+ public function setEndpoints($endpoints)
+ {
+ $this->endpoints = $endpoints;
+ }
+ public function getEndpoints()
+ {
+ return $this->endpoints;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsList.php
new file mode 100644
index 00000000..c2a62314
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsList.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ZoneViewsList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Resourceviews_ResourceView';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsListResourcesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsListResourcesResponse.php
new file mode 100644
index 00000000..299c85ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsListResourcesResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ZoneViewsListResourcesResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Resourceviews_ListResourceResponseItem';
+ protected $itemsDataType = 'array';
+ public $network;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setNetwork($network)
+ {
+ $this->network = $network;
+ }
+ public function getNetwork()
+ {
+ return $this->network;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsRemoveResourcesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsRemoveResourcesRequest.php
new file mode 100644
index 00000000..ccaa19bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsRemoveResourcesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $resources;
+
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsSetServiceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsSetServiceRequest.php
new file mode 100644
index 00000000..184c8170
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Resourceviews/ZoneViewsSetServiceRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Resourceviews_ZoneViewsSetServiceRequest extends Google_Collection
+{
+ protected $collection_key = 'endpoints';
+ protected $endpointsType = 'Google_Service_Resourceviews_ServiceEndpoint';
+ protected $endpointsDataType = 'array';
+ public $fingerprint;
+ public $resourceName;
+
+ public function setEndpoints($endpoints)
+ {
+ $this->endpoints = $endpoints;
+ }
+ public function getEndpoints()
+ {
+ return $this->endpoints;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setResourceName($resourceName)
+ {
+ $this->resourceName = $resourceName;
+ }
+ public function getResourceName()
+ {
+ return $this->resourceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin.php
new file mode 100644
index 00000000..a70911dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin.php
@@ -0,0 +1,811 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for SQLAdmin (v1beta4).
+ *
+ * <p>
+ * Creates and configures Cloud SQL instances, which provide fully-managed MySQL
+ * databases.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/sql/docs/reference/latest" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_SQLAdmin extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Manage your Google SQL Service instances. */
+ const SQLSERVICE_ADMIN =
+ "https://www.googleapis.com/auth/sqlservice.admin";
+
+ public $backupRuns;
+ public $databases;
+ public $flags;
+ public $instances;
+ public $operations;
+ public $sslCerts;
+ public $tiers;
+ public $users;
+
+ /**
+ * Constructs the internal representation of the SQLAdmin service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'sql/v1beta4/';
+ $this->version = 'v1beta4';
+ $this->serviceName = 'sqladmin';
+
+ $this->backupRuns = new Google_Service_SQLAdmin_Resource_BackupRuns(
+ $this,
+ $this->serviceName,
+ 'backupRuns',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{project}/instances/{instance}/backupRuns',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{project}/instances/{instance}/backupRuns',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->databases = new Google_Service_SQLAdmin_Resource_Databases(
+ $this,
+ $this->serviceName,
+ 'databases',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{project}/instances/{instance}/databases',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{project}/instances/{instance}/databases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'projects/{project}/instances/{instance}/databases/{database}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->flags = new Google_Service_SQLAdmin_Resource_Flags(
+ $this,
+ $this->serviceName,
+ 'flags',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'flags',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'databaseVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->instances = new Google_Service_SQLAdmin_Resource_Instances(
+ $this,
+ $this->serviceName,
+ 'instances',
+ array(
+ 'methods' => array(
+ 'clone' => array(
+ 'path' => 'projects/{project}/instances/{instance}/clone',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'projects/{project}/instances/{instance}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'export' => array(
+ 'path' => 'projects/{project}/instances/{instance}/export',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'failover' => array(
+ 'path' => 'projects/{project}/instances/{instance}/failover',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{project}/instances/{instance}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'import' => array(
+ 'path' => 'projects/{project}/instances/{instance}/import',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{project}/instances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{project}/instances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'projects/{project}/instances/{instance}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'promoteReplica' => array(
+ 'path' => 'projects/{project}/instances/{instance}/promoteReplica',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resetSslConfig' => array(
+ 'path' => 'projects/{project}/instances/{instance}/resetSslConfig',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'restart' => array(
+ 'path' => 'projects/{project}/instances/{instance}/restart',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'restoreBackup' => array(
+ 'path' => 'projects/{project}/instances/{instance}/restoreBackup',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'startReplica' => array(
+ 'path' => 'projects/{project}/instances/{instance}/startReplica',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'stopReplica' => array(
+ 'path' => 'projects/{project}/instances/{instance}/stopReplica',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'truncateLog' => array(
+ 'path' => 'projects/{project}/instances/{instance}/truncateLog',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'projects/{project}/instances/{instance}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->operations = new Google_Service_SQLAdmin_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'projects/{project}/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{project}/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sslCerts = new Google_Service_SQLAdmin_Resource_SslCerts(
+ $this,
+ $this->serviceName,
+ 'sslCerts',
+ array(
+ 'methods' => array(
+ 'createEphemeral' => array(
+ 'path' => 'projects/{project}/instances/{instance}/createEphemeral',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sha1Fingerprint' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sha1Fingerprint' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->tiers = new Google_Service_SQLAdmin_Resource_Tiers(
+ $this,
+ $this->serviceName,
+ 'tiers',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'projects/{project}/tiers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->users = new Google_Service_SQLAdmin_Resource_Users(
+ $this,
+ $this->serviceName,
+ 'users',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'projects/{project}/instances/{instance}/users',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'host' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'projects/{project}/instances/{instance}/users',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'projects/{project}/instances/{instance}/users',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'projects/{project}/instances/{instance}/users',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'instance' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'host' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/AclEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/AclEntry.php
new file mode 100644
index 00000000..33dbb082
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/AclEntry.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_AclEntry extends Google_Model
+{
+ public $expirationTime;
+ public $kind;
+ public $name;
+ public $value;
+
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupConfiguration.php
new file mode 100644
index 00000000..0b53bd18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupConfiguration.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model
+{
+ public $binaryLogEnabled;
+ public $enabled;
+ public $kind;
+ public $startTime;
+
+ public function setBinaryLogEnabled($binaryLogEnabled)
+ {
+ $this->binaryLogEnabled = $binaryLogEnabled;
+ }
+ public function getBinaryLogEnabled()
+ {
+ return $this->binaryLogEnabled;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRun.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRun.php
new file mode 100644
index 00000000..86ab90cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRun.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_BackupRun extends Google_Model
+{
+ public $description;
+ public $endTime;
+ public $enqueuedTime;
+ protected $errorType = 'Google_Service_SQLAdmin_OperationError';
+ protected $errorDataType = '';
+ public $id;
+ public $instance;
+ public $kind;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $type;
+ public $windowStartTime;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setEnqueuedTime($enqueuedTime)
+ {
+ $this->enqueuedTime = $enqueuedTime;
+ }
+ public function getEnqueuedTime()
+ {
+ return $this->enqueuedTime;
+ }
+ public function setError(Google_Service_SQLAdmin_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setWindowStartTime($windowStartTime)
+ {
+ $this->windowStartTime = $windowStartTime;
+ }
+ public function getWindowStartTime()
+ {
+ return $this->windowStartTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRunsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRunsListResponse.php
new file mode 100644
index 00000000..7e71cd40
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BackupRunsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_BackupRun';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BinLogCoordinates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BinLogCoordinates.php
new file mode 100644
index 00000000..e6d92e32
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/BinLogCoordinates.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_BinLogCoordinates extends Google_Model
+{
+ public $binLogFileName;
+ public $binLogPosition;
+ public $kind;
+
+ public function setBinLogFileName($binLogFileName)
+ {
+ $this->binLogFileName = $binLogFileName;
+ }
+ public function getBinLogFileName()
+ {
+ return $this->binLogFileName;
+ }
+ public function setBinLogPosition($binLogPosition)
+ {
+ $this->binLogPosition = $binLogPosition;
+ }
+ public function getBinLogPosition()
+ {
+ return $this->binLogPosition;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/CloneContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/CloneContext.php
new file mode 100644
index 00000000..d2f6ddc0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/CloneContext.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_CloneContext extends Google_Model
+{
+ protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates';
+ protected $binLogCoordinatesDataType = '';
+ public $destinationInstanceName;
+ public $kind;
+
+ public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates)
+ {
+ $this->binLogCoordinates = $binLogCoordinates;
+ }
+ public function getBinLogCoordinates()
+ {
+ return $this->binLogCoordinates;
+ }
+ public function setDestinationInstanceName($destinationInstanceName)
+ {
+ $this->destinationInstanceName = $destinationInstanceName;
+ }
+ public function getDestinationInstanceName()
+ {
+ return $this->destinationInstanceName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Database.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Database.php
new file mode 100644
index 00000000..d9d0070b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Database.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_Database extends Google_Model
+{
+ public $charset;
+ public $collation;
+ public $etag;
+ public $instance;
+ public $kind;
+ public $name;
+ public $project;
+ public $selfLink;
+
+ public function setCharset($charset)
+ {
+ $this->charset = $charset;
+ }
+ public function getCharset()
+ {
+ return $this->charset;
+ }
+ public function setCollation($collation)
+ {
+ $this->collation = $collation;
+ }
+ public function getCollation()
+ {
+ return $this->collation;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseFlags.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseFlags.php
new file mode 100644
index 00000000..f56052f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseFlags.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_DatabaseFlags extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstance.php
new file mode 100644
index 00000000..292b7229
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstance.php
@@ -0,0 +1,244 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection
+{
+ protected $collection_key = 'suspensionReason';
+ public $backendType;
+ public $connectionName;
+ public $currentDiskSize;
+ public $databaseVersion;
+ public $etag;
+ protected $failoverReplicaType = 'Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica';
+ protected $failoverReplicaDataType = '';
+ public $instanceType;
+ protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping';
+ protected $ipAddressesDataType = 'array';
+ public $ipv6Address;
+ public $kind;
+ public $masterInstanceName;
+ public $maxDiskSize;
+ public $name;
+ protected $onPremisesConfigurationType = 'Google_Service_SQLAdmin_OnPremisesConfiguration';
+ protected $onPremisesConfigurationDataType = '';
+ public $project;
+ public $region;
+ protected $replicaConfigurationType = 'Google_Service_SQLAdmin_ReplicaConfiguration';
+ protected $replicaConfigurationDataType = '';
+ public $replicaNames;
+ public $selfLink;
+ protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
+ protected $serverCaCertDataType = '';
+ public $serviceAccountEmailAddress;
+ protected $settingsType = 'Google_Service_SQLAdmin_Settings';
+ protected $settingsDataType = '';
+ public $state;
+ public $suspensionReason;
+
+ public function setBackendType($backendType)
+ {
+ $this->backendType = $backendType;
+ }
+ public function getBackendType()
+ {
+ return $this->backendType;
+ }
+ public function setConnectionName($connectionName)
+ {
+ $this->connectionName = $connectionName;
+ }
+ public function getConnectionName()
+ {
+ return $this->connectionName;
+ }
+ public function setCurrentDiskSize($currentDiskSize)
+ {
+ $this->currentDiskSize = $currentDiskSize;
+ }
+ public function getCurrentDiskSize()
+ {
+ return $this->currentDiskSize;
+ }
+ public function setDatabaseVersion($databaseVersion)
+ {
+ $this->databaseVersion = $databaseVersion;
+ }
+ public function getDatabaseVersion()
+ {
+ return $this->databaseVersion;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFailoverReplica(Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica $failoverReplica)
+ {
+ $this->failoverReplica = $failoverReplica;
+ }
+ public function getFailoverReplica()
+ {
+ return $this->failoverReplica;
+ }
+ public function setInstanceType($instanceType)
+ {
+ $this->instanceType = $instanceType;
+ }
+ public function getInstanceType()
+ {
+ return $this->instanceType;
+ }
+ public function setIpAddresses($ipAddresses)
+ {
+ $this->ipAddresses = $ipAddresses;
+ }
+ public function getIpAddresses()
+ {
+ return $this->ipAddresses;
+ }
+ public function setIpv6Address($ipv6Address)
+ {
+ $this->ipv6Address = $ipv6Address;
+ }
+ public function getIpv6Address()
+ {
+ return $this->ipv6Address;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMasterInstanceName($masterInstanceName)
+ {
+ $this->masterInstanceName = $masterInstanceName;
+ }
+ public function getMasterInstanceName()
+ {
+ return $this->masterInstanceName;
+ }
+ public function setMaxDiskSize($maxDiskSize)
+ {
+ $this->maxDiskSize = $maxDiskSize;
+ }
+ public function getMaxDiskSize()
+ {
+ return $this->maxDiskSize;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOnPremisesConfiguration(Google_Service_SQLAdmin_OnPremisesConfiguration $onPremisesConfiguration)
+ {
+ $this->onPremisesConfiguration = $onPremisesConfiguration;
+ }
+ public function getOnPremisesConfiguration()
+ {
+ return $this->onPremisesConfiguration;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setReplicaConfiguration(Google_Service_SQLAdmin_ReplicaConfiguration $replicaConfiguration)
+ {
+ $this->replicaConfiguration = $replicaConfiguration;
+ }
+ public function getReplicaConfiguration()
+ {
+ return $this->replicaConfiguration;
+ }
+ public function setReplicaNames($replicaNames)
+ {
+ $this->replicaNames = $replicaNames;
+ }
+ public function getReplicaNames()
+ {
+ return $this->replicaNames;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
+ {
+ $this->serverCaCert = $serverCaCert;
+ }
+ public function getServerCaCert()
+ {
+ return $this->serverCaCert;
+ }
+ public function setServiceAccountEmailAddress($serviceAccountEmailAddress)
+ {
+ $this->serviceAccountEmailAddress = $serviceAccountEmailAddress;
+ }
+ public function getServiceAccountEmailAddress()
+ {
+ return $this->serviceAccountEmailAddress;
+ }
+ public function setSettings(Google_Service_SQLAdmin_Settings $settings)
+ {
+ $this->settings = $settings;
+ }
+ public function getSettings()
+ {
+ return $this->settings;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setSuspensionReason($suspensionReason)
+ {
+ $this->suspensionReason = $suspensionReason;
+ }
+ public function getSuspensionReason()
+ {
+ return $this->suspensionReason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstanceFailoverReplica.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstanceFailoverReplica.php
new file mode 100644
index 00000000..f9a22dc0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabaseInstanceFailoverReplica.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_DatabaseInstanceFailoverReplica extends Google_Model
+{
+ public $available;
+ public $name;
+
+ public function setAvailable($available)
+ {
+ $this->available = $available;
+ }
+ public function getAvailable()
+ {
+ return $this->available;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabasesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabasesListResponse.php
new file mode 100644
index 00000000..b74a7010
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/DatabasesListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_Database';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContext.php
new file mode 100644
index 00000000..fd64961d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContext.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_ExportContext extends Google_Collection
+{
+ protected $collection_key = 'databases';
+ protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions';
+ protected $csvExportOptionsDataType = '';
+ public $databases;
+ public $fileType;
+ public $kind;
+ protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions';
+ protected $sqlExportOptionsDataType = '';
+ public $uri;
+
+ public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions)
+ {
+ $this->csvExportOptions = $csvExportOptions;
+ }
+ public function getCsvExportOptions()
+ {
+ return $this->csvExportOptions;
+ }
+ public function setDatabases($databases)
+ {
+ $this->databases = $databases;
+ }
+ public function getDatabases()
+ {
+ return $this->databases;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions)
+ {
+ $this->sqlExportOptions = $sqlExportOptions;
+ }
+ public function getSqlExportOptions()
+ {
+ return $this->sqlExportOptions;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextCsvExportOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextCsvExportOptions.php
new file mode 100644
index 00000000..0e4a21ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextCsvExportOptions.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model
+{
+ public $selectQuery;
+
+ public function setSelectQuery($selectQuery)
+ {
+ $this->selectQuery = $selectQuery;
+ }
+ public function getSelectQuery()
+ {
+ return $this->selectQuery;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php
new file mode 100644
index 00000000..8b78affe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ExportContextSqlExportOptions.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection
+{
+ protected $collection_key = 'tables';
+ public $schemaOnly;
+ public $tables;
+
+ public function setSchemaOnly($schemaOnly)
+ {
+ $this->schemaOnly = $schemaOnly;
+ }
+ public function getSchemaOnly()
+ {
+ return $this->schemaOnly;
+ }
+ public function setTables($tables)
+ {
+ $this->tables = $tables;
+ }
+ public function getTables()
+ {
+ return $this->tables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FailoverContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FailoverContext.php
new file mode 100644
index 00000000..07de18a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FailoverContext.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_FailoverContext extends Google_Model
+{
+ public $kind;
+ public $settingsVersion;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSettingsVersion($settingsVersion)
+ {
+ $this->settingsVersion = $settingsVersion;
+ }
+ public function getSettingsVersion()
+ {
+ return $this->settingsVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php
new file mode 100644
index 00000000..ebe43c2f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Flag.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_Flag extends Google_Collection
+{
+ protected $collection_key = 'appliesTo';
+ public $allowedStringValues;
+ public $appliesTo;
+ public $kind;
+ public $maxValue;
+ public $minValue;
+ public $name;
+ public $requiresRestart;
+ public $type;
+
+ public function setAllowedStringValues($allowedStringValues)
+ {
+ $this->allowedStringValues = $allowedStringValues;
+ }
+ public function getAllowedStringValues()
+ {
+ return $this->allowedStringValues;
+ }
+ public function setAppliesTo($appliesTo)
+ {
+ $this->appliesTo = $appliesTo;
+ }
+ public function getAppliesTo()
+ {
+ return $this->appliesTo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxValue($maxValue)
+ {
+ $this->maxValue = $maxValue;
+ }
+ public function getMaxValue()
+ {
+ return $this->maxValue;
+ }
+ public function setMinValue($minValue)
+ {
+ $this->minValue = $minValue;
+ }
+ public function getMinValue()
+ {
+ return $this->minValue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRequiresRestart($requiresRestart)
+ {
+ $this->requiresRestart = $requiresRestart;
+ }
+ public function getRequiresRestart()
+ {
+ return $this->requiresRestart;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FlagsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FlagsListResponse.php
new file mode 100644
index 00000000..c5616917
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/FlagsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_Flag';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContext.php
new file mode 100644
index 00000000..a81111c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContext.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_ImportContext extends Google_Model
+{
+ protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions';
+ protected $csvImportOptionsDataType = '';
+ public $database;
+ public $fileType;
+ public $kind;
+ public $uri;
+
+ public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions)
+ {
+ $this->csvImportOptions = $csvImportOptions;
+ }
+ public function getCsvImportOptions()
+ {
+ return $this->csvImportOptions;
+ }
+ public function setDatabase($database)
+ {
+ $this->database = $database;
+ }
+ public function getDatabase()
+ {
+ return $this->database;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContextCsvImportOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContextCsvImportOptions.php
new file mode 100644
index 00000000..e0bfd089
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ImportContextCsvImportOptions.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection
+{
+ protected $collection_key = 'columns';
+ public $columns;
+ public $table;
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setTable($table)
+ {
+ $this->table = $table;
+ }
+ public function getTable()
+ {
+ return $this->table;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesCloneRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesCloneRequest.php
new file mode 100644
index 00000000..8a8e5754
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesCloneRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model
+{
+ protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext';
+ protected $cloneContextDataType = '';
+
+ public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext)
+ {
+ $this->cloneContext = $cloneContext;
+ }
+ public function getCloneContext()
+ {
+ return $this->cloneContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesExportRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesExportRequest.php
new file mode 100644
index 00000000..0b00dda6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesExportRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model
+{
+ protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
+ protected $exportContextDataType = '';
+
+ public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
+ {
+ $this->exportContext = $exportContext;
+ }
+ public function getExportContext()
+ {
+ return $this->exportContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesFailoverRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesFailoverRequest.php
new file mode 100644
index 00000000..c003108a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesFailoverRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_InstancesFailoverRequest extends Google_Model
+{
+ protected $failoverContextType = 'Google_Service_SQLAdmin_FailoverContext';
+ protected $failoverContextDataType = '';
+
+ public function setFailoverContext(Google_Service_SQLAdmin_FailoverContext $failoverContext)
+ {
+ $this->failoverContext = $failoverContext;
+ }
+ public function getFailoverContext()
+ {
+ return $this->failoverContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesImportRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesImportRequest.php
new file mode 100644
index 00000000..cdbf3d39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesImportRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model
+{
+ protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
+ protected $importContextDataType = '';
+
+ public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
+ {
+ $this->importContext = $importContext;
+ }
+ public function getImportContext()
+ {
+ return $this->importContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php
new file mode 100644
index 00000000..31fbb1ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesRestoreBackupRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesRestoreBackupRequest.php
new file mode 100644
index 00000000..23cbfd5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesRestoreBackupRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model
+{
+ protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext';
+ protected $restoreBackupContextDataType = '';
+
+ public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext)
+ {
+ $this->restoreBackupContext = $restoreBackupContext;
+ }
+ public function getRestoreBackupContext()
+ {
+ return $this->restoreBackupContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesTruncateLogRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesTruncateLogRequest.php
new file mode 100644
index 00000000..fb5e9910
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/InstancesTruncateLogRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_InstancesTruncateLogRequest extends Google_Model
+{
+ protected $truncateLogContextType = 'Google_Service_SQLAdmin_TruncateLogContext';
+ protected $truncateLogContextDataType = '';
+
+ public function setTruncateLogContext(Google_Service_SQLAdmin_TruncateLogContext $truncateLogContext)
+ {
+ $this->truncateLogContext = $truncateLogContext;
+ }
+ public function getTruncateLogContext()
+ {
+ return $this->truncateLogContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php
new file mode 100644
index 00000000..bf6dcdac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpConfiguration.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection
+{
+ protected $collection_key = 'authorizedNetworks';
+ protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry';
+ protected $authorizedNetworksDataType = 'array';
+ public $ipv4Enabled;
+ public $requireSsl;
+
+ public function setAuthorizedNetworks($authorizedNetworks)
+ {
+ $this->authorizedNetworks = $authorizedNetworks;
+ }
+ public function getAuthorizedNetworks()
+ {
+ return $this->authorizedNetworks;
+ }
+ public function setIpv4Enabled($ipv4Enabled)
+ {
+ $this->ipv4Enabled = $ipv4Enabled;
+ }
+ public function getIpv4Enabled()
+ {
+ return $this->ipv4Enabled;
+ }
+ public function setRequireSsl($requireSsl)
+ {
+ $this->requireSsl = $requireSsl;
+ }
+ public function getRequireSsl()
+ {
+ return $this->requireSsl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpMapping.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpMapping.php
new file mode 100644
index 00000000..e63e278a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/IpMapping.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_IpMapping extends Google_Model
+{
+ public $ipAddress;
+ public $timeToRetire;
+ public $type;
+
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setTimeToRetire($timeToRetire)
+ {
+ $this->timeToRetire = $timeToRetire;
+ }
+ public function getTimeToRetire()
+ {
+ return $this->timeToRetire;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Labels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Labels.php
new file mode 100644
index 00000000..b3653abb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Labels.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_Labels extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/LocationPreference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/LocationPreference.php
new file mode 100644
index 00000000..9a81e1d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/LocationPreference.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_LocationPreference extends Google_Model
+{
+ public $followGaeApplication;
+ public $kind;
+ public $zone;
+
+ public function setFollowGaeApplication($followGaeApplication)
+ {
+ $this->followGaeApplication = $followGaeApplication;
+ }
+ public function getFollowGaeApplication()
+ {
+ return $this->followGaeApplication;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MaintenanceWindow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MaintenanceWindow.php
new file mode 100644
index 00000000..970da198
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MaintenanceWindow.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_MaintenanceWindow extends Google_Model
+{
+ public $day;
+ public $hour;
+ public $kind;
+ public $updateTrack;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setHour($hour)
+ {
+ $this->hour = $hour;
+ }
+ public function getHour()
+ {
+ return $this->hour;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUpdateTrack($updateTrack)
+ {
+ $this->updateTrack = $updateTrack;
+ }
+ public function getUpdateTrack()
+ {
+ return $this->updateTrack;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MySqlReplicaConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MySqlReplicaConfiguration.php
new file mode 100644
index 00000000..f4a1e515
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/MySqlReplicaConfiguration.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_MySqlReplicaConfiguration extends Google_Model
+{
+ public $caCertificate;
+ public $clientCertificate;
+ public $clientKey;
+ public $connectRetryInterval;
+ public $dumpFilePath;
+ public $kind;
+ public $masterHeartbeatPeriod;
+ public $password;
+ public $sslCipher;
+ public $username;
+ public $verifyServerCertificate;
+
+ public function setCaCertificate($caCertificate)
+ {
+ $this->caCertificate = $caCertificate;
+ }
+ public function getCaCertificate()
+ {
+ return $this->caCertificate;
+ }
+ public function setClientCertificate($clientCertificate)
+ {
+ $this->clientCertificate = $clientCertificate;
+ }
+ public function getClientCertificate()
+ {
+ return $this->clientCertificate;
+ }
+ public function setClientKey($clientKey)
+ {
+ $this->clientKey = $clientKey;
+ }
+ public function getClientKey()
+ {
+ return $this->clientKey;
+ }
+ public function setConnectRetryInterval($connectRetryInterval)
+ {
+ $this->connectRetryInterval = $connectRetryInterval;
+ }
+ public function getConnectRetryInterval()
+ {
+ return $this->connectRetryInterval;
+ }
+ public function setDumpFilePath($dumpFilePath)
+ {
+ $this->dumpFilePath = $dumpFilePath;
+ }
+ public function getDumpFilePath()
+ {
+ return $this->dumpFilePath;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMasterHeartbeatPeriod($masterHeartbeatPeriod)
+ {
+ $this->masterHeartbeatPeriod = $masterHeartbeatPeriod;
+ }
+ public function getMasterHeartbeatPeriod()
+ {
+ return $this->masterHeartbeatPeriod;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setSslCipher($sslCipher)
+ {
+ $this->sslCipher = $sslCipher;
+ }
+ public function getSslCipher()
+ {
+ return $this->sslCipher;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+ public function setVerifyServerCertificate($verifyServerCertificate)
+ {
+ $this->verifyServerCertificate = $verifyServerCertificate;
+ }
+ public function getVerifyServerCertificate()
+ {
+ return $this->verifyServerCertificate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OnPremisesConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OnPremisesConfiguration.php
new file mode 100644
index 00000000..962c8ba2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OnPremisesConfiguration.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_OnPremisesConfiguration extends Google_Model
+{
+ public $hostPort;
+ public $kind;
+
+ public function setHostPort($hostPort)
+ {
+ $this->hostPort = $hostPort;
+ }
+ public function getHostPort()
+ {
+ return $this->hostPort;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Operation.php
new file mode 100644
index 00000000..ab7797db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Operation.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_Operation extends Google_Model
+{
+ public $endTime;
+ protected $errorType = 'Google_Service_SQLAdmin_OperationErrors';
+ protected $errorDataType = '';
+ protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
+ protected $exportContextDataType = '';
+ protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
+ protected $importContextDataType = '';
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $targetId;
+ public $targetLink;
+ public $targetProject;
+ public $user;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_SQLAdmin_OperationErrors $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
+ {
+ $this->exportContext = $exportContext;
+ }
+ public function getExportContext()
+ {
+ return $this->exportContext;
+ }
+ public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
+ {
+ $this->importContext = $importContext;
+ }
+ public function getImportContext()
+ {
+ return $this->importContext;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setTargetProject($targetProject)
+ {
+ $this->targetProject = $targetProject;
+ }
+ public function getTargetProject()
+ {
+ return $this->targetProject;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationError.php
new file mode 100644
index 00000000..431da35b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationError.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_OperationError extends Google_Model
+{
+ public $code;
+ public $kind;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationErrors.php
new file mode 100644
index 00000000..8bcbec4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationErrors.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_OperationErrors extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_SQLAdmin_OperationError';
+ protected $errorsDataType = 'array';
+ public $kind;
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationsListResponse.php
new file mode 100644
index 00000000..d8d9eed6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/OperationsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ReplicaConfiguration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ReplicaConfiguration.php
new file mode 100644
index 00000000..105758b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/ReplicaConfiguration.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_ReplicaConfiguration extends Google_Model
+{
+ public $failoverTarget;
+ public $kind;
+ protected $mysqlReplicaConfigurationType = 'Google_Service_SQLAdmin_MySqlReplicaConfiguration';
+ protected $mysqlReplicaConfigurationDataType = '';
+
+ public function setFailoverTarget($failoverTarget)
+ {
+ $this->failoverTarget = $failoverTarget;
+ }
+ public function getFailoverTarget()
+ {
+ return $this->failoverTarget;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMysqlReplicaConfiguration(Google_Service_SQLAdmin_MySqlReplicaConfiguration $mysqlReplicaConfiguration)
+ {
+ $this->mysqlReplicaConfiguration = $mysqlReplicaConfiguration;
+ }
+ public function getMysqlReplicaConfiguration()
+ {
+ return $this->mysqlReplicaConfiguration;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php
new file mode 100644
index 00000000..f6a5fb17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/BackupRuns.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "backupRuns" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $backupRuns = $sqladminService->backupRuns;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_BackupRuns extends Google_Service_Resource
+{
+ /**
+ * Deletes the backup taken by a backup run. (backupRuns.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param string $id The ID of the Backup Run to delete. To find a Backup Run
+ * ID, use the list method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $id, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Retrieves a resource containing information about a backup run.
+ * (backupRuns.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param string $id The ID of this Backup Run.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_BackupRun
+ */
+ public function get($project, $instance, $id, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun");
+ }
+ /**
+ * Creates a new backup run on demand. This method is applicable only to Second
+ * Generation instances. (backupRuns.insert)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_BackupRun $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_BackupRun $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Lists all backup runs associated with a given instance and configuration in
+ * the reverse chronological order of the enqueued time.
+ * (backupRuns.listBackupRuns)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of backup runs per response.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @return Google_Service_SQLAdmin_BackupRunsListResponse
+ */
+ public function listBackupRuns($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php
new file mode 100644
index 00000000..3893b526
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Databases.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "databases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $databases = $sqladminService->databases;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_Databases extends Google_Service_Resource
+{
+ /**
+ * Deletes a database from a Cloud SQL instance. (databases.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be deleted in the instance.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $database, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Retrieves a resource containing information about a database inside a Cloud
+ * SQL instance. (databases.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database in the instance.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Database
+ */
+ public function get($project, $instance, $database, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_Database");
+ }
+ /**
+ * Inserts a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.insert)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Lists databases in the specified Cloud SQL instance.
+ * (databases.listDatabases)
+ *
+ * @param string $project Project ID of the project for which to list Cloud SQL
+ * instances.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_DatabasesListResponse
+ */
+ public function listDatabases($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse");
+ }
+ /**
+ * Updates a resource containing information about a database inside a Cloud SQL
+ * instance. This method supports patch semantics. (databases.patch)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be updated in the instance.
+ * @param Google_Service_SQLAdmin_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Updates a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be updated in the instance.
+ * @param Google_Service_SQLAdmin_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php
new file mode 100644
index 00000000..c1a886e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Flags.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "flags" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $flags = $sqladminService->flags;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_Flags extends Google_Service_Resource
+{
+ /**
+ * List all available database flags for Google Cloud SQL instances.
+ * (flags.listFlags)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string databaseVersion Database version for flag retrieval. Flags
+ * are specific to the database version.
+ * @return Google_Service_SQLAdmin_FlagsListResponse
+ */
+ public function listFlags($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php
new file mode 100644
index 00000000..4aa20919
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Instances.php
@@ -0,0 +1,311 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instances" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $instances = $sqladminService->instances;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_Instances extends Google_Service_Resource
+{
+ /**
+ * Creates a Cloud SQL instance as a clone of the source instance. The API is
+ * not ready for Second Generation instances yet. (instances.cloneInstances)
+ *
+ * @param string $project Project ID of the source as well as the clone Cloud
+ * SQL instance.
+ * @param string $instance The ID of the Cloud SQL instance to be cloned
+ * (source). This does not include the project ID.
+ * @param Google_Service_SQLAdmin_InstancesCloneRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Deletes a Cloud SQL instance. (instances.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be deleted.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
+ * MySQL dump file. (instances.export)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be exported.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_InstancesExportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Failover the instance to its failover replica instance. (instances.failover)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_InstancesFailoverRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function failover($project, $instance, Google_Service_SQLAdmin_InstancesFailoverRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('failover', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Retrieves a resource containing information about a Cloud SQL instance.
+ * (instances.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_DatabaseInstance
+ */
+ public function get($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance");
+ }
+ /**
+ * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud
+ * Storage. (instances.import)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_InstancesImportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Creates a new Cloud SQL instance. (instances.insert)
+ *
+ * @param string $project Project ID of the project to which the newly created
+ * Cloud SQL instances should belong.
+ * @param Google_Service_SQLAdmin_DatabaseInstance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Lists instances under a given project in the alphabetical order of the
+ * instance name. (instances.listInstances)
+ *
+ * @param string $project Project ID of the project for which to list Cloud SQL
+ * instances.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter A filter expression for filtering listed instances.
+ * @opt_param string maxResults The maximum number of results to return per
+ * response.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @return Google_Service_SQLAdmin_InstancesListResponse
+ */
+ public function listInstances($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse");
+ }
+ /**
+ * Updates settings of a Cloud SQL instance. Caution: This is not a partial
+ * update, so you must include values for all the settings that you want to
+ * retain. For partial updates, use patch.. This method supports patch
+ * semantics. (instances.patch)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_DatabaseInstance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Promotes the read replica instance to be a stand-alone Cloud SQL instance.
+ * (instances.promoteReplica)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function promoteReplica($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Deletes all client certificates and generates a new server SSL certificate
+ * for the instance. The changes will not take effect until the instance is
+ * restarted. Existing instances without a server certificate will need to call
+ * this once to set a server certificate. (instances.resetSslConfig)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function resetSslConfig($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Restarts a Cloud SQL instance. (instances.restart)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be restarted.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function restart($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Restores a backup of a Cloud SQL instance. (instances.restoreBackup)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Starts the replication in the read replica instance. (instances.startReplica)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function startReplica($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Stops the replication in the read replica instance. (instances.stopReplica)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function stopReplica($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Truncate MySQL general and slow query log tables (instances.truncateLog)
+ *
+ * @param string $project Project ID of the Cloud SQL project.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_InstancesTruncateLogRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function truncateLog($project, $instance, Google_Service_SQLAdmin_InstancesTruncateLogRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('truncateLog', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Updates settings of a Cloud SQL instance. Caution: This is not a partial
+ * update, so you must include values for all the settings that you want to
+ * retain. For partial updates, use patch. (instances.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_DatabaseInstance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Operations.php
new file mode 100644
index 00000000..e7f9684a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Operations.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $operations = $sqladminService->operations;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Retrieves an instance operation that has been performed on an instance.
+ * (operations.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $operation Instance operation ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Lists all instance operations that have been performed on the given Cloud SQL
+ * instance in the reverse chronological order of the start time.
+ * (operations.listOperations)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of operations per response.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @return Google_Service_SQLAdmin_OperationsListResponse
+ */
+ public function listOperations($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php
new file mode 100644
index 00000000..be44ef8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/SslCerts.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sslCerts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $sslCerts = $sqladminService->sslCerts;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_SslCerts extends Google_Service_Resource
+{
+ /**
+ * Generates a short-lived X509 certificate containing the provided public key
+ * and signed by a private key specific to the target instance. Users may use
+ * the certificate to authenticate as themselves when connecting to the
+ * database. (sslCerts.createEphemeral)
+ *
+ * @param string $project Project ID of the Cloud SQL project.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_SslCert
+ */
+ public function createEphemeral($project, $instance, Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createEphemeral', array($params), "Google_Service_SQLAdmin_SslCert");
+ }
+ /**
+ * Deletes the SSL certificate. The change will not take effect until the
+ * instance is restarted. (sslCerts.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be deleted.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param string $sha1Fingerprint Sha1 FingerPrint.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $sha1Fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Retrieves a particular SSL certificate. Does not include the private key
+ * (required for usage). The private key must be saved from the response to
+ * initial creation. (sslCerts.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param string $sha1Fingerprint Sha1 FingerPrint.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_SslCert
+ */
+ public function get($project, $instance, $sha1Fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert");
+ }
+ /**
+ * Creates an SSL certificate and returns it along with the private key and
+ * server certificate authority. The new certificate will not be usable until
+ * the instance is restarted. (sslCerts.insert)
+ *
+ * @param string $project Project ID of the project to which the newly created
+ * Cloud SQL instances should belong.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_SslCertsInsertRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_SslCertsInsertResponse
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse");
+ }
+ /**
+ * Lists all of the current SSL certificates for the instance.
+ * (sslCerts.listSslCerts)
+ *
+ * @param string $project Project ID of the project for which to list Cloud SQL
+ * instances.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_SslCertsListResponse
+ */
+ public function listSslCerts($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php
new file mode 100644
index 00000000..fa3d4bd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Tiers.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tiers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $tiers = $sqladminService->tiers;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_Tiers extends Google_Service_Resource
+{
+ /**
+ * Lists all available service tiers for Google Cloud SQL, for example D1, D2.
+ * For related information, see Pricing. (tiers.listTiers)
+ *
+ * @param string $project Project ID of the project for which to list tiers.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_TiersListResponse
+ */
+ public function listTiers($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php
new file mode 100644
index 00000000..29ce3af0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Resource/Users.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $users = $sqladminService->users;
+ * </code>
+ */
+class Google_Service_SQLAdmin_Resource_Users extends Google_Service_Resource
+{
+ /**
+ * Deletes a user from a Cloud SQL instance. (users.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $host Host of the user in the instance.
+ * @param string $name Name of the user in the instance.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $host, $name, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Creates a new user in a Cloud SQL instance. (users.insert)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param Google_Service_SQLAdmin_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+ /**
+ * Lists users in the specified Cloud SQL instance. (users.listUsers)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_UsersListResponse
+ */
+ public function listUsers($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse");
+ }
+ /**
+ * Updates an existing user in a Cloud SQL instance. (users.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $host Host of the user in the instance.
+ * @param string $name Name of the user in the instance.
+ * @param Google_Service_SQLAdmin_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/RestoreBackupContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/RestoreBackupContext.php
new file mode 100644
index 00000000..01c25d7a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/RestoreBackupContext.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model
+{
+ public $backupRunId;
+ public $instanceId;
+ public $kind;
+
+ public function setBackupRunId($backupRunId)
+ {
+ $this->backupRunId = $backupRunId;
+ }
+ public function getBackupRunId()
+ {
+ return $this->backupRunId;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Settings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Settings.php
new file mode 100644
index 00000000..6dd5b864
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Settings.php
@@ -0,0 +1,208 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_Settings extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $activationPolicy;
+ public $authorizedGaeApplications;
+ public $availabilityType;
+ protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration';
+ protected $backupConfigurationDataType = '';
+ public $crashSafeReplicationEnabled;
+ public $dataDiskSizeGb;
+ public $dataDiskType;
+ protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags';
+ protected $databaseFlagsDataType = 'array';
+ public $databaseReplicationEnabled;
+ protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration';
+ protected $ipConfigurationDataType = '';
+ public $kind;
+ protected $labelsType = 'Google_Service_SQLAdmin_Labels';
+ protected $labelsDataType = 'array';
+ protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference';
+ protected $locationPreferenceDataType = '';
+ protected $maintenanceWindowType = 'Google_Service_SQLAdmin_MaintenanceWindow';
+ protected $maintenanceWindowDataType = '';
+ public $pricingPlan;
+ public $replicationType;
+ public $settingsVersion;
+ public $storageAutoResize;
+ public $storageAutoResizeLimit;
+ public $tier;
+
+ public function setActivationPolicy($activationPolicy)
+ {
+ $this->activationPolicy = $activationPolicy;
+ }
+ public function getActivationPolicy()
+ {
+ return $this->activationPolicy;
+ }
+ public function setAuthorizedGaeApplications($authorizedGaeApplications)
+ {
+ $this->authorizedGaeApplications = $authorizedGaeApplications;
+ }
+ public function getAuthorizedGaeApplications()
+ {
+ return $this->authorizedGaeApplications;
+ }
+ public function setAvailabilityType($availabilityType)
+ {
+ $this->availabilityType = $availabilityType;
+ }
+ public function getAvailabilityType()
+ {
+ return $this->availabilityType;
+ }
+ public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration)
+ {
+ $this->backupConfiguration = $backupConfiguration;
+ }
+ public function getBackupConfiguration()
+ {
+ return $this->backupConfiguration;
+ }
+ public function setCrashSafeReplicationEnabled($crashSafeReplicationEnabled)
+ {
+ $this->crashSafeReplicationEnabled = $crashSafeReplicationEnabled;
+ }
+ public function getCrashSafeReplicationEnabled()
+ {
+ return $this->crashSafeReplicationEnabled;
+ }
+ public function setDataDiskSizeGb($dataDiskSizeGb)
+ {
+ $this->dataDiskSizeGb = $dataDiskSizeGb;
+ }
+ public function getDataDiskSizeGb()
+ {
+ return $this->dataDiskSizeGb;
+ }
+ public function setDataDiskType($dataDiskType)
+ {
+ $this->dataDiskType = $dataDiskType;
+ }
+ public function getDataDiskType()
+ {
+ return $this->dataDiskType;
+ }
+ public function setDatabaseFlags($databaseFlags)
+ {
+ $this->databaseFlags = $databaseFlags;
+ }
+ public function getDatabaseFlags()
+ {
+ return $this->databaseFlags;
+ }
+ public function setDatabaseReplicationEnabled($databaseReplicationEnabled)
+ {
+ $this->databaseReplicationEnabled = $databaseReplicationEnabled;
+ }
+ public function getDatabaseReplicationEnabled()
+ {
+ return $this->databaseReplicationEnabled;
+ }
+ public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration)
+ {
+ $this->ipConfiguration = $ipConfiguration;
+ }
+ public function getIpConfiguration()
+ {
+ return $this->ipConfiguration;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference)
+ {
+ $this->locationPreference = $locationPreference;
+ }
+ public function getLocationPreference()
+ {
+ return $this->locationPreference;
+ }
+ public function setMaintenanceWindow(Google_Service_SQLAdmin_MaintenanceWindow $maintenanceWindow)
+ {
+ $this->maintenanceWindow = $maintenanceWindow;
+ }
+ public function getMaintenanceWindow()
+ {
+ return $this->maintenanceWindow;
+ }
+ public function setPricingPlan($pricingPlan)
+ {
+ $this->pricingPlan = $pricingPlan;
+ }
+ public function getPricingPlan()
+ {
+ return $this->pricingPlan;
+ }
+ public function setReplicationType($replicationType)
+ {
+ $this->replicationType = $replicationType;
+ }
+ public function getReplicationType()
+ {
+ return $this->replicationType;
+ }
+ public function setSettingsVersion($settingsVersion)
+ {
+ $this->settingsVersion = $settingsVersion;
+ }
+ public function getSettingsVersion()
+ {
+ return $this->settingsVersion;
+ }
+ public function setStorageAutoResize($storageAutoResize)
+ {
+ $this->storageAutoResize = $storageAutoResize;
+ }
+ public function getStorageAutoResize()
+ {
+ return $this->storageAutoResize;
+ }
+ public function setStorageAutoResizeLimit($storageAutoResizeLimit)
+ {
+ $this->storageAutoResizeLimit = $storageAutoResizeLimit;
+ }
+ public function getStorageAutoResizeLimit()
+ {
+ return $this->storageAutoResizeLimit;
+ }
+ public function setTier($tier)
+ {
+ $this->tier = $tier;
+ }
+ public function getTier()
+ {
+ return $this->tier;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCert.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCert.php
new file mode 100644
index 00000000..bfe016b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCert.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_SslCert extends Google_Model
+{
+ public $cert;
+ public $certSerialNumber;
+ public $commonName;
+ public $createTime;
+ public $expirationTime;
+ public $instance;
+ public $kind;
+ public $selfLink;
+ public $sha1Fingerprint;
+
+ public function setCert($cert)
+ {
+ $this->cert = $cert;
+ }
+ public function getCert()
+ {
+ return $this->cert;
+ }
+ public function setCertSerialNumber($certSerialNumber)
+ {
+ $this->certSerialNumber = $certSerialNumber;
+ }
+ public function getCertSerialNumber()
+ {
+ return $this->certSerialNumber;
+ }
+ public function setCommonName($commonName)
+ {
+ $this->commonName = $commonName;
+ }
+ public function getCommonName()
+ {
+ return $this->commonName;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSha1Fingerprint($sha1Fingerprint)
+ {
+ $this->sha1Fingerprint = $sha1Fingerprint;
+ }
+ public function getSha1Fingerprint()
+ {
+ return $this->sha1Fingerprint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertDetail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertDetail.php
new file mode 100644
index 00000000..8b6caa14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertDetail.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_SslCertDetail extends Google_Model
+{
+ protected $certInfoType = 'Google_Service_SQLAdmin_SslCert';
+ protected $certInfoDataType = '';
+ public $certPrivateKey;
+
+ public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo)
+ {
+ $this->certInfo = $certInfo;
+ }
+ public function getCertInfo()
+ {
+ return $this->certInfo;
+ }
+ public function setCertPrivateKey($certPrivateKey)
+ {
+ $this->certPrivateKey = $certPrivateKey;
+ }
+ public function getCertPrivateKey()
+ {
+ return $this->certPrivateKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsCreateEphemeralRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsCreateEphemeralRequest.php
new file mode 100644
index 00000000..b649ea1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsCreateEphemeralRequest.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_SslCertsCreateEphemeralRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "publicKey" => "public_key",
+ );
+ public $publicKey;
+
+ public function setPublicKey($publicKey)
+ {
+ $this->publicKey = $publicKey;
+ }
+ public function getPublicKey()
+ {
+ return $this->publicKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertRequest.php
new file mode 100644
index 00000000..d3ba4771
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model
+{
+ public $commonName;
+
+ public function setCommonName($commonName)
+ {
+ $this->commonName = $commonName;
+ }
+ public function getCommonName()
+ {
+ return $this->commonName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertResponse.php
new file mode 100644
index 00000000..023a85a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsInsertResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model
+{
+ protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail';
+ protected $clientCertDataType = '';
+ public $kind;
+ protected $operationType = 'Google_Service_SQLAdmin_Operation';
+ protected $operationDataType = '';
+ protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
+ protected $serverCaCertDataType = '';
+
+ public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert)
+ {
+ $this->clientCert = $clientCert;
+ }
+ public function getClientCert()
+ {
+ return $this->clientCert;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOperation(Google_Service_SQLAdmin_Operation $operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
+ {
+ $this->serverCaCert = $serverCaCert;
+ }
+ public function getServerCaCert()
+ {
+ return $this->serverCaCert;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsListResponse.php
new file mode 100644
index 00000000..e5102c1a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/SslCertsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_SslCert';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Tier.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Tier.php
new file mode 100644
index 00000000..c21d761e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/Tier.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_Tier extends Google_Collection
+{
+ protected $collection_key = 'region';
+ protected $internal_gapi_mappings = array(
+ "diskQuota" => "DiskQuota",
+ "rAM" => "RAM",
+ );
+ public $diskQuota;
+ public $rAM;
+ public $kind;
+ public $region;
+ public $tier;
+
+ public function setDiskQuota($diskQuota)
+ {
+ $this->diskQuota = $diskQuota;
+ }
+ public function getDiskQuota()
+ {
+ return $this->diskQuota;
+ }
+ public function setRAM($rAM)
+ {
+ $this->rAM = $rAM;
+ }
+ public function getRAM()
+ {
+ return $this->rAM;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setTier($tier)
+ {
+ $this->tier = $tier;
+ }
+ public function getTier()
+ {
+ return $this->tier;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TiersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TiersListResponse.php
new file mode 100644
index 00000000..eea0512a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TiersListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_Tier';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TruncateLogContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TruncateLogContext.php
new file mode 100644
index 00000000..c90d8f89
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/TruncateLogContext.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_TruncateLogContext extends Google_Model
+{
+ public $kind;
+ public $logType;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLogType($logType)
+ {
+ $this->logType = $logType;
+ }
+ public function getLogType()
+ {
+ return $this->logType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/User.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/User.php
new file mode 100644
index 00000000..90f36436
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/User.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_User extends Google_Model
+{
+ public $etag;
+ public $host;
+ public $instance;
+ public $kind;
+ public $name;
+ public $password;
+ public $project;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/UsersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/UsersListResponse.php
new file mode 100644
index 00000000..d5ec5772
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SQLAdmin/UsersListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SQLAdmin_User';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing.php
new file mode 100644
index 00000000..d4bc5055
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing.php
@@ -0,0 +1,171 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Safebrowsing (v4).
+ *
+ * <p>
+ * The Safe Browsing API is an experimental API that allows client applications
+ * to check URLs against Google's constantly-updated blacklists of suspected
+ * phishing and malware pages. Your client application can use the API to
+ * download an encrypted table for local, client-side lookups of URLs.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/safe-browsing/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Safebrowsing extends Google_Service
+{
+
+
+ public $encodedFullHashes;
+ public $encodedUpdates;
+ public $fullHashes;
+ public $threatListUpdates;
+ public $threatLists;
+ public $threatMatches;
+
+ /**
+ * Constructs the internal representation of the Safebrowsing service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://safebrowsing.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v4';
+ $this->serviceName = 'safebrowsing';
+
+ $this->encodedFullHashes = new Google_Service_Safebrowsing_Resource_EncodedFullHashes(
+ $this,
+ $this->serviceName,
+ 'encodedFullHashes',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v4/encodedFullHashes/{encodedRequest}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'encodedRequest' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'clientVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->encodedUpdates = new Google_Service_Safebrowsing_Resource_EncodedUpdates(
+ $this,
+ $this->serviceName,
+ 'encodedUpdates',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v4/encodedUpdates/{encodedRequest}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'encodedRequest' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'clientId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'clientVersion' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->fullHashes = new Google_Service_Safebrowsing_Resource_FullHashes(
+ $this,
+ $this->serviceName,
+ 'fullHashes',
+ array(
+ 'methods' => array(
+ 'find' => array(
+ 'path' => 'v4/fullHashes:find',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->threatListUpdates = new Google_Service_Safebrowsing_Resource_ThreatListUpdates(
+ $this,
+ $this->serviceName,
+ 'threatListUpdates',
+ array(
+ 'methods' => array(
+ 'fetch' => array(
+ 'path' => 'v4/threatListUpdates:fetch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->threatLists = new Google_Service_Safebrowsing_Resource_ThreatLists(
+ $this,
+ $this->serviceName,
+ 'threatLists',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v4/threatLists',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->threatMatches = new Google_Service_Safebrowsing_Resource_ThreatMatches(
+ $this,
+ $this->serviceName,
+ 'threatMatches',
+ array(
+ 'methods' => array(
+ 'find' => array(
+ 'path' => 'v4/threatMatches:find',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Checksum.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Checksum.php
new file mode 100644
index 00000000..476ec48e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Checksum.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_Checksum extends Google_Model
+{
+ public $sha256;
+
+ public function setSha256($sha256)
+ {
+ $this->sha256 = $sha256;
+ }
+ public function getSha256()
+ {
+ return $this->sha256;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ClientInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ClientInfo.php
new file mode 100644
index 00000000..55e0eb7d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ClientInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ClientInfo extends Google_Model
+{
+ public $clientId;
+ public $clientVersion;
+
+ public function setClientId($clientId)
+ {
+ $this->clientId = $clientId;
+ }
+ public function getClientId()
+ {
+ return $this->clientId;
+ }
+ public function setClientVersion($clientVersion)
+ {
+ $this->clientVersion = $clientVersion;
+ }
+ public function getClientVersion()
+ {
+ return $this->clientVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Constraints.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Constraints.php
new file mode 100644
index 00000000..e4846bc5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Constraints.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_Constraints extends Google_Collection
+{
+ protected $collection_key = 'supportedCompressions';
+ public $maxDatabaseEntries;
+ public $maxUpdateEntries;
+ public $region;
+ public $supportedCompressions;
+
+ public function setMaxDatabaseEntries($maxDatabaseEntries)
+ {
+ $this->maxDatabaseEntries = $maxDatabaseEntries;
+ }
+ public function getMaxDatabaseEntries()
+ {
+ return $this->maxDatabaseEntries;
+ }
+ public function setMaxUpdateEntries($maxUpdateEntries)
+ {
+ $this->maxUpdateEntries = $maxUpdateEntries;
+ }
+ public function getMaxUpdateEntries()
+ {
+ return $this->maxUpdateEntries;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSupportedCompressions($supportedCompressions)
+ {
+ $this->supportedCompressions = $supportedCompressions;
+ }
+ public function getSupportedCompressions()
+ {
+ return $this->supportedCompressions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesRequest.php
new file mode 100644
index 00000000..b414786d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesRequest.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_FetchThreatListUpdatesRequest extends Google_Collection
+{
+ protected $collection_key = 'listUpdateRequests';
+ protected $clientType = 'Google_Service_Safebrowsing_ClientInfo';
+ protected $clientDataType = '';
+ protected $listUpdateRequestsType = 'Google_Service_Safebrowsing_ListUpdateRequest';
+ protected $listUpdateRequestsDataType = 'array';
+
+ public function setClient(Google_Service_Safebrowsing_ClientInfo $client)
+ {
+ $this->client = $client;
+ }
+ public function getClient()
+ {
+ return $this->client;
+ }
+ public function setListUpdateRequests($listUpdateRequests)
+ {
+ $this->listUpdateRequests = $listUpdateRequests;
+ }
+ public function getListUpdateRequests()
+ {
+ return $this->listUpdateRequests;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesResponse.php
new file mode 100644
index 00000000..67db90a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FetchThreatListUpdatesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_FetchThreatListUpdatesResponse extends Google_Collection
+{
+ protected $collection_key = 'listUpdateResponses';
+ protected $listUpdateResponsesType = 'Google_Service_Safebrowsing_ListUpdateResponse';
+ protected $listUpdateResponsesDataType = 'array';
+ public $minimumWaitDuration;
+
+ public function setListUpdateResponses($listUpdateResponses)
+ {
+ $this->listUpdateResponses = $listUpdateResponses;
+ }
+ public function getListUpdateResponses()
+ {
+ return $this->listUpdateResponses;
+ }
+ public function setMinimumWaitDuration($minimumWaitDuration)
+ {
+ $this->minimumWaitDuration = $minimumWaitDuration;
+ }
+ public function getMinimumWaitDuration()
+ {
+ return $this->minimumWaitDuration;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesRequest.php
new file mode 100644
index 00000000..11f4226c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesRequest.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_FindFullHashesRequest extends Google_Collection
+{
+ protected $collection_key = 'clientStates';
+ protected $apiClientType = 'Google_Service_Safebrowsing_ClientInfo';
+ protected $apiClientDataType = '';
+ protected $clientType = 'Google_Service_Safebrowsing_ClientInfo';
+ protected $clientDataType = '';
+ public $clientStates;
+ protected $threatInfoType = 'Google_Service_Safebrowsing_ThreatInfo';
+ protected $threatInfoDataType = '';
+
+ public function setApiClient(Google_Service_Safebrowsing_ClientInfo $apiClient)
+ {
+ $this->apiClient = $apiClient;
+ }
+ public function getApiClient()
+ {
+ return $this->apiClient;
+ }
+ public function setClient(Google_Service_Safebrowsing_ClientInfo $client)
+ {
+ $this->client = $client;
+ }
+ public function getClient()
+ {
+ return $this->client;
+ }
+ public function setClientStates($clientStates)
+ {
+ $this->clientStates = $clientStates;
+ }
+ public function getClientStates()
+ {
+ return $this->clientStates;
+ }
+ public function setThreatInfo(Google_Service_Safebrowsing_ThreatInfo $threatInfo)
+ {
+ $this->threatInfo = $threatInfo;
+ }
+ public function getThreatInfo()
+ {
+ return $this->threatInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesResponse.php
new file mode 100644
index 00000000..e226d21a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindFullHashesResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_FindFullHashesResponse extends Google_Collection
+{
+ protected $collection_key = 'matches';
+ protected $matchesType = 'Google_Service_Safebrowsing_ThreatMatch';
+ protected $matchesDataType = 'array';
+ public $minimumWaitDuration;
+ public $negativeCacheDuration;
+
+ public function setMatches($matches)
+ {
+ $this->matches = $matches;
+ }
+ public function getMatches()
+ {
+ return $this->matches;
+ }
+ public function setMinimumWaitDuration($minimumWaitDuration)
+ {
+ $this->minimumWaitDuration = $minimumWaitDuration;
+ }
+ public function getMinimumWaitDuration()
+ {
+ return $this->minimumWaitDuration;
+ }
+ public function setNegativeCacheDuration($negativeCacheDuration)
+ {
+ $this->negativeCacheDuration = $negativeCacheDuration;
+ }
+ public function getNegativeCacheDuration()
+ {
+ return $this->negativeCacheDuration;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesRequest.php
new file mode 100644
index 00000000..30a1a2d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_FindThreatMatchesRequest extends Google_Model
+{
+ protected $clientType = 'Google_Service_Safebrowsing_ClientInfo';
+ protected $clientDataType = '';
+ protected $threatInfoType = 'Google_Service_Safebrowsing_ThreatInfo';
+ protected $threatInfoDataType = '';
+
+ public function setClient(Google_Service_Safebrowsing_ClientInfo $client)
+ {
+ $this->client = $client;
+ }
+ public function getClient()
+ {
+ return $this->client;
+ }
+ public function setThreatInfo(Google_Service_Safebrowsing_ThreatInfo $threatInfo)
+ {
+ $this->threatInfo = $threatInfo;
+ }
+ public function getThreatInfo()
+ {
+ return $this->threatInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesResponse.php
new file mode 100644
index 00000000..276bdbdd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/FindThreatMatchesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_FindThreatMatchesResponse extends Google_Collection
+{
+ protected $collection_key = 'matches';
+ protected $matchesType = 'Google_Service_Safebrowsing_ThreatMatch';
+ protected $matchesDataType = 'array';
+
+ public function setMatches($matches)
+ {
+ $this->matches = $matches;
+ }
+ public function getMatches()
+ {
+ return $this->matches;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListThreatListsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListThreatListsResponse.php
new file mode 100644
index 00000000..4a3d3f52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListThreatListsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ListThreatListsResponse extends Google_Collection
+{
+ protected $collection_key = 'threatLists';
+ protected $threatListsType = 'Google_Service_Safebrowsing_ThreatListDescriptor';
+ protected $threatListsDataType = 'array';
+
+ public function setThreatLists($threatLists)
+ {
+ $this->threatLists = $threatLists;
+ }
+ public function getThreatLists()
+ {
+ return $this->threatLists;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateRequest.php
new file mode 100644
index 00000000..3d390075
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ListUpdateRequest extends Google_Model
+{
+ protected $constraintsType = 'Google_Service_Safebrowsing_Constraints';
+ protected $constraintsDataType = '';
+ public $platformType;
+ public $state;
+ public $threatEntryType;
+ public $threatType;
+
+ public function setConstraints(Google_Service_Safebrowsing_Constraints $constraints)
+ {
+ $this->constraints = $constraints;
+ }
+ public function getConstraints()
+ {
+ return $this->constraints;
+ }
+ public function setPlatformType($platformType)
+ {
+ $this->platformType = $platformType;
+ }
+ public function getPlatformType()
+ {
+ return $this->platformType;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setThreatEntryType($threatEntryType)
+ {
+ $this->threatEntryType = $threatEntryType;
+ }
+ public function getThreatEntryType()
+ {
+ return $this->threatEntryType;
+ }
+ public function setThreatType($threatType)
+ {
+ $this->threatType = $threatType;
+ }
+ public function getThreatType()
+ {
+ return $this->threatType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateResponse.php
new file mode 100644
index 00000000..9c313bc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ListUpdateResponse.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ListUpdateResponse extends Google_Collection
+{
+ protected $collection_key = 'removals';
+ protected $additionsType = 'Google_Service_Safebrowsing_ThreatEntrySet';
+ protected $additionsDataType = 'array';
+ protected $checksumType = 'Google_Service_Safebrowsing_Checksum';
+ protected $checksumDataType = '';
+ public $newClientState;
+ public $platformType;
+ protected $removalsType = 'Google_Service_Safebrowsing_ThreatEntrySet';
+ protected $removalsDataType = 'array';
+ public $responseType;
+ public $threatEntryType;
+ public $threatType;
+
+ public function setAdditions($additions)
+ {
+ $this->additions = $additions;
+ }
+ public function getAdditions()
+ {
+ return $this->additions;
+ }
+ public function setChecksum(Google_Service_Safebrowsing_Checksum $checksum)
+ {
+ $this->checksum = $checksum;
+ }
+ public function getChecksum()
+ {
+ return $this->checksum;
+ }
+ public function setNewClientState($newClientState)
+ {
+ $this->newClientState = $newClientState;
+ }
+ public function getNewClientState()
+ {
+ return $this->newClientState;
+ }
+ public function setPlatformType($platformType)
+ {
+ $this->platformType = $platformType;
+ }
+ public function getPlatformType()
+ {
+ return $this->platformType;
+ }
+ public function setRemovals($removals)
+ {
+ $this->removals = $removals;
+ }
+ public function getRemovals()
+ {
+ return $this->removals;
+ }
+ public function setResponseType($responseType)
+ {
+ $this->responseType = $responseType;
+ }
+ public function getResponseType()
+ {
+ return $this->responseType;
+ }
+ public function setThreatEntryType($threatEntryType)
+ {
+ $this->threatEntryType = $threatEntryType;
+ }
+ public function getThreatEntryType()
+ {
+ return $this->threatEntryType;
+ }
+ public function setThreatType($threatType)
+ {
+ $this->threatType = $threatType;
+ }
+ public function getThreatType()
+ {
+ return $this->threatType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/MetadataEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/MetadataEntry.php
new file mode 100644
index 00000000..1fbfbcd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/MetadataEntry.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_MetadataEntry extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawHashes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawHashes.php
new file mode 100644
index 00000000..27e50f65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawHashes.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_RawHashes extends Google_Model
+{
+ public $prefixSize;
+ public $rawHashes;
+
+ public function setPrefixSize($prefixSize)
+ {
+ $this->prefixSize = $prefixSize;
+ }
+ public function getPrefixSize()
+ {
+ return $this->prefixSize;
+ }
+ public function setRawHashes($rawHashes)
+ {
+ $this->rawHashes = $rawHashes;
+ }
+ public function getRawHashes()
+ {
+ return $this->rawHashes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawIndices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawIndices.php
new file mode 100644
index 00000000..6254eedd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RawIndices.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_RawIndices extends Google_Collection
+{
+ protected $collection_key = 'indices';
+ public $indices;
+
+ public function setIndices($indices)
+ {
+ $this->indices = $indices;
+ }
+ public function getIndices()
+ {
+ return $this->indices;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php
new file mode 100644
index 00000000..39c514c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedFullHashes.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "encodedFullHashes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $safebrowsingService = new Google_Service_Safebrowsing(...);
+ * $encodedFullHashes = $safebrowsingService->encodedFullHashes;
+ * </code>
+ */
+class Google_Service_Safebrowsing_Resource_EncodedFullHashes extends Google_Service_Resource
+{
+ /**
+ * (encodedFullHashes.get)
+ *
+ * @param string $encodedRequest A serialized FindFullHashesRequest proto.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string clientId A client ID that (hopefully) uniquely identifies
+ * the client implementation of the Safe Browsing API.
+ * @opt_param string clientVersion The version of the client implementation.
+ * @return Google_Service_Safebrowsing_FindFullHashesResponse
+ */
+ public function get($encodedRequest, $optParams = array())
+ {
+ $params = array('encodedRequest' => $encodedRequest);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Safebrowsing_FindFullHashesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedUpdates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedUpdates.php
new file mode 100644
index 00000000..4e6e5b74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/EncodedUpdates.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "encodedUpdates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $safebrowsingService = new Google_Service_Safebrowsing(...);
+ * $encodedUpdates = $safebrowsingService->encodedUpdates;
+ * </code>
+ */
+class Google_Service_Safebrowsing_Resource_EncodedUpdates extends Google_Service_Resource
+{
+ /**
+ * (encodedUpdates.get)
+ *
+ * @param string $encodedRequest A serialized FetchThreatListUpdatesRequest
+ * proto.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string clientId A client ID that uniquely identifies the client
+ * implementation of the Safe Browsing API.
+ * @opt_param string clientVersion The version of the client implementation.
+ * @return Google_Service_Safebrowsing_FetchThreatListUpdatesResponse
+ */
+ public function get($encodedRequest, $optParams = array())
+ {
+ $params = array('encodedRequest' => $encodedRequest);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Safebrowsing_FetchThreatListUpdatesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/FullHashes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/FullHashes.php
new file mode 100644
index 00000000..e50cd33f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/FullHashes.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "fullHashes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $safebrowsingService = new Google_Service_Safebrowsing(...);
+ * $fullHashes = $safebrowsingService->fullHashes;
+ * </code>
+ */
+class Google_Service_Safebrowsing_Resource_FullHashes extends Google_Service_Resource
+{
+ /**
+ * Finds the full hashes that match the requested hash prefixes.
+ * (fullHashes.find)
+ *
+ * @param Google_Service_Safebrowsing_FindFullHashesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Safebrowsing_FindFullHashesResponse
+ */
+ public function find(Google_Service_Safebrowsing_FindFullHashesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('find', array($params), "Google_Service_Safebrowsing_FindFullHashesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatListUpdates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatListUpdates.php
new file mode 100644
index 00000000..3fcfac7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatListUpdates.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "threatListUpdates" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $safebrowsingService = new Google_Service_Safebrowsing(...);
+ * $threatListUpdates = $safebrowsingService->threatListUpdates;
+ * </code>
+ */
+class Google_Service_Safebrowsing_Resource_ThreatListUpdates extends Google_Service_Resource
+{
+ /**
+ * Fetches the most recent threat list updates. A client can request updates for
+ * multiple lists at once. (threatListUpdates.fetch)
+ *
+ * @param Google_Service_Safebrowsing_FetchThreatListUpdatesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Safebrowsing_FetchThreatListUpdatesResponse
+ */
+ public function fetch(Google_Service_Safebrowsing_FetchThreatListUpdatesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('fetch', array($params), "Google_Service_Safebrowsing_FetchThreatListUpdatesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatLists.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatLists.php
new file mode 100644
index 00000000..68315a23
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatLists.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "threatLists" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $safebrowsingService = new Google_Service_Safebrowsing(...);
+ * $threatLists = $safebrowsingService->threatLists;
+ * </code>
+ */
+class Google_Service_Safebrowsing_Resource_ThreatLists extends Google_Service_Resource
+{
+ /**
+ * Lists the Safe Browsing threat lists available for download.
+ * (threatLists.listThreatLists)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Safebrowsing_ListThreatListsResponse
+ */
+ public function listThreatLists($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Safebrowsing_ListThreatListsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatMatches.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatMatches.php
new file mode 100644
index 00000000..13654410
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/Resource/ThreatMatches.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "threatMatches" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $safebrowsingService = new Google_Service_Safebrowsing(...);
+ * $threatMatches = $safebrowsingService->threatMatches;
+ * </code>
+ */
+class Google_Service_Safebrowsing_Resource_ThreatMatches extends Google_Service_Resource
+{
+ /**
+ * Finds the threat entries that match the Safe Browsing lists.
+ * (threatMatches.find)
+ *
+ * @param Google_Service_Safebrowsing_FindThreatMatchesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Safebrowsing_FindThreatMatchesResponse
+ */
+ public function find(Google_Service_Safebrowsing_FindThreatMatchesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('find', array($params), "Google_Service_Safebrowsing_FindThreatMatchesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RiceDeltaEncoding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RiceDeltaEncoding.php
new file mode 100644
index 00000000..43ebb382
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/RiceDeltaEncoding.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_RiceDeltaEncoding extends Google_Model
+{
+ public $encodedData;
+ public $firstValue;
+ public $numEntries;
+ public $riceParameter;
+
+ public function setEncodedData($encodedData)
+ {
+ $this->encodedData = $encodedData;
+ }
+ public function getEncodedData()
+ {
+ return $this->encodedData;
+ }
+ public function setFirstValue($firstValue)
+ {
+ $this->firstValue = $firstValue;
+ }
+ public function getFirstValue()
+ {
+ return $this->firstValue;
+ }
+ public function setNumEntries($numEntries)
+ {
+ $this->numEntries = $numEntries;
+ }
+ public function getNumEntries()
+ {
+ return $this->numEntries;
+ }
+ public function setRiceParameter($riceParameter)
+ {
+ $this->riceParameter = $riceParameter;
+ }
+ public function getRiceParameter()
+ {
+ return $this->riceParameter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntry.php
new file mode 100644
index 00000000..200b81c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntry.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ThreatEntry extends Google_Model
+{
+ public $digest;
+ public $hash;
+ public $url;
+
+ public function setDigest($digest)
+ {
+ $this->digest = $digest;
+ }
+ public function getDigest()
+ {
+ return $this->digest;
+ }
+ public function setHash($hash)
+ {
+ $this->hash = $hash;
+ }
+ public function getHash()
+ {
+ return $this->hash;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntryMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntryMetadata.php
new file mode 100644
index 00000000..280e245f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntryMetadata.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ThreatEntryMetadata extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_Safebrowsing_MetadataEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntrySet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntrySet.php
new file mode 100644
index 00000000..a791aee5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatEntrySet.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ThreatEntrySet extends Google_Model
+{
+ public $compressionType;
+ protected $rawHashesType = 'Google_Service_Safebrowsing_RawHashes';
+ protected $rawHashesDataType = '';
+ protected $rawIndicesType = 'Google_Service_Safebrowsing_RawIndices';
+ protected $rawIndicesDataType = '';
+ protected $riceHashesType = 'Google_Service_Safebrowsing_RiceDeltaEncoding';
+ protected $riceHashesDataType = '';
+ protected $riceIndicesType = 'Google_Service_Safebrowsing_RiceDeltaEncoding';
+ protected $riceIndicesDataType = '';
+
+ public function setCompressionType($compressionType)
+ {
+ $this->compressionType = $compressionType;
+ }
+ public function getCompressionType()
+ {
+ return $this->compressionType;
+ }
+ public function setRawHashes(Google_Service_Safebrowsing_RawHashes $rawHashes)
+ {
+ $this->rawHashes = $rawHashes;
+ }
+ public function getRawHashes()
+ {
+ return $this->rawHashes;
+ }
+ public function setRawIndices(Google_Service_Safebrowsing_RawIndices $rawIndices)
+ {
+ $this->rawIndices = $rawIndices;
+ }
+ public function getRawIndices()
+ {
+ return $this->rawIndices;
+ }
+ public function setRiceHashes(Google_Service_Safebrowsing_RiceDeltaEncoding $riceHashes)
+ {
+ $this->riceHashes = $riceHashes;
+ }
+ public function getRiceHashes()
+ {
+ return $this->riceHashes;
+ }
+ public function setRiceIndices(Google_Service_Safebrowsing_RiceDeltaEncoding $riceIndices)
+ {
+ $this->riceIndices = $riceIndices;
+ }
+ public function getRiceIndices()
+ {
+ return $this->riceIndices;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatInfo.php
new file mode 100644
index 00000000..c570c941
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatInfo.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ThreatInfo extends Google_Collection
+{
+ protected $collection_key = 'threatTypes';
+ public $platformTypes;
+ protected $threatEntriesType = 'Google_Service_Safebrowsing_ThreatEntry';
+ protected $threatEntriesDataType = 'array';
+ public $threatEntryTypes;
+ public $threatTypes;
+
+ public function setPlatformTypes($platformTypes)
+ {
+ $this->platformTypes = $platformTypes;
+ }
+ public function getPlatformTypes()
+ {
+ return $this->platformTypes;
+ }
+ public function setThreatEntries($threatEntries)
+ {
+ $this->threatEntries = $threatEntries;
+ }
+ public function getThreatEntries()
+ {
+ return $this->threatEntries;
+ }
+ public function setThreatEntryTypes($threatEntryTypes)
+ {
+ $this->threatEntryTypes = $threatEntryTypes;
+ }
+ public function getThreatEntryTypes()
+ {
+ return $this->threatEntryTypes;
+ }
+ public function setThreatTypes($threatTypes)
+ {
+ $this->threatTypes = $threatTypes;
+ }
+ public function getThreatTypes()
+ {
+ return $this->threatTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatListDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatListDescriptor.php
new file mode 100644
index 00000000..eb62254d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatListDescriptor.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ThreatListDescriptor extends Google_Model
+{
+ public $platformType;
+ public $threatEntryType;
+ public $threatType;
+
+ public function setPlatformType($platformType)
+ {
+ $this->platformType = $platformType;
+ }
+ public function getPlatformType()
+ {
+ return $this->platformType;
+ }
+ public function setThreatEntryType($threatEntryType)
+ {
+ $this->threatEntryType = $threatEntryType;
+ }
+ public function getThreatEntryType()
+ {
+ return $this->threatEntryType;
+ }
+ public function setThreatType($threatType)
+ {
+ $this->threatType = $threatType;
+ }
+ public function getThreatType()
+ {
+ return $this->threatType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatMatch.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatMatch.php
new file mode 100644
index 00000000..344f1511
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Safebrowsing/ThreatMatch.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Safebrowsing_ThreatMatch extends Google_Model
+{
+ public $cacheDuration;
+ public $platformType;
+ protected $threatDataType = '';
+ protected $threatEntryMetadataType = 'Google_Service_Safebrowsing_ThreatEntryMetadata';
+ protected $threatEntryMetadataDataType = '';
+ public $threatEntryType;
+ public $threatType;
+
+ public function setCacheDuration($cacheDuration)
+ {
+ $this->cacheDuration = $cacheDuration;
+ }
+ public function getCacheDuration()
+ {
+ return $this->cacheDuration;
+ }
+ public function setPlatformType($platformType)
+ {
+ $this->platformType = $platformType;
+ }
+ public function getPlatformType()
+ {
+ return $this->platformType;
+ }
+ public function setThreat(Google_Service_Safebrowsing_ThreatEntry $threat)
+ {
+ $this->threat = $threat;
+ }
+ public function getThreat()
+ {
+ return $this->threat;
+ }
+ public function setThreatEntryMetadata(Google_Service_Safebrowsing_ThreatEntryMetadata $threatEntryMetadata)
+ {
+ $this->threatEntryMetadata = $threatEntryMetadata;
+ }
+ public function getThreatEntryMetadata()
+ {
+ return $this->threatEntryMetadata;
+ }
+ public function setThreatEntryType($threatEntryType)
+ {
+ $this->threatEntryType = $threatEntryType;
+ }
+ public function getThreatEntryType()
+ {
+ return $this->threatEntryType;
+ }
+ public function setThreatType($threatType)
+ {
+ $this->threatType = $threatType;
+ }
+ public function getThreatType()
+ {
+ return $this->threatType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script.php
new file mode 100644
index 00000000..f231790e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Script (v1).
+ *
+ * <p>
+ * Executes Google Apps Script projects.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/apps-script/execution/rest/v1/scripts/run" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Script extends Google_Service
+{
+ /** Read, send, delete, and manage your email. */
+ const MAIL_GOOGLE_COM =
+ "https://mail.google.com/";
+ /** Manage your calendars. */
+ const WWW_GOOGLE_COM_CALENDAR_FEEDS =
+ "https://www.google.com/calendar/feeds";
+ /** Manage your contacts. */
+ const WWW_GOOGLE_COM_M8_FEEDS =
+ "https://www.google.com/m8/feeds";
+ /** View and manage the provisioning of groups on your domain. */
+ const ADMIN_DIRECTORY_GROUP =
+ "https://www.googleapis.com/auth/admin.directory.group";
+ /** View and manage the provisioning of users on your domain. */
+ const ADMIN_DIRECTORY_USER =
+ "https://www.googleapis.com/auth/admin.directory.user";
+ /** View and manage the files in your Google Drive. */
+ const DRIVE =
+ "https://www.googleapis.com/auth/drive";
+ /** View and manage your forms in Google Drive. */
+ const FORMS =
+ "https://www.googleapis.com/auth/forms";
+ /** View and manage forms that this application has been installed in. */
+ const FORMS_CURRENTONLY =
+ "https://www.googleapis.com/auth/forms.currentonly";
+ /** View and manage your Google Groups. */
+ const GROUPS =
+ "https://www.googleapis.com/auth/groups";
+ /** View and manage your spreadsheets in Google Drive. */
+ const SPREADSHEETS =
+ "https://www.googleapis.com/auth/spreadsheets";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+
+ public $scripts;
+
+ /**
+ * Constructs the internal representation of the Script service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://script.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'script';
+
+ $this->scripts = new Google_Service_Script_Resource_Scripts(
+ $this,
+ $this->serviceName,
+ 'scripts',
+ array(
+ 'methods' => array(
+ 'run' => array(
+ 'path' => 'v1/scripts/{scriptId}:run',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'scriptId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionError.php
new file mode 100644
index 00000000..a2c9f400
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionError.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Script_ExecutionError extends Google_Collection
+{
+ protected $collection_key = 'scriptStackTraceElements';
+ public $errorMessage;
+ public $errorType;
+ protected $scriptStackTraceElementsType = 'Google_Service_Script_ScriptStackTraceElement';
+ protected $scriptStackTraceElementsDataType = 'array';
+
+ public function setErrorMessage($errorMessage)
+ {
+ $this->errorMessage = $errorMessage;
+ }
+ public function getErrorMessage()
+ {
+ return $this->errorMessage;
+ }
+ public function setErrorType($errorType)
+ {
+ $this->errorType = $errorType;
+ }
+ public function getErrorType()
+ {
+ return $this->errorType;
+ }
+ public function setScriptStackTraceElements($scriptStackTraceElements)
+ {
+ $this->scriptStackTraceElements = $scriptStackTraceElements;
+ }
+ public function getScriptStackTraceElements()
+ {
+ return $this->scriptStackTraceElements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionRequest.php
new file mode 100644
index 00000000..8f08f9b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Script_ExecutionRequest extends Google_Collection
+{
+ protected $collection_key = 'parameters';
+ public $devMode;
+ public $function;
+ public $parameters;
+ public $sessionState;
+
+ public function setDevMode($devMode)
+ {
+ $this->devMode = $devMode;
+ }
+ public function getDevMode()
+ {
+ return $this->devMode;
+ }
+ public function setFunction($function)
+ {
+ $this->function = $function;
+ }
+ public function getFunction()
+ {
+ return $this->function;
+ }
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+ public function setSessionState($sessionState)
+ {
+ $this->sessionState = $sessionState;
+ }
+ public function getSessionState()
+ {
+ return $this->sessionState;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionResponse.php
new file mode 100644
index 00000000..bdc12a90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ExecutionResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Script_ExecutionResponse extends Google_Model
+{
+ public $result;
+
+ public function setResult($result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Operation.php
new file mode 100644
index 00000000..b818bc11
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Script_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_Script_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_Script_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php
new file mode 100644
index 00000000..80cac1bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Resource/Scripts.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "scripts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $scriptService = new Google_Service_Script(...);
+ * $scripts = $scriptService->scripts;
+ * </code>
+ */
+class Google_Service_Script_Resource_Scripts extends Google_Service_Resource
+{
+ /**
+ * Runs a function in an Apps Script project. The project must be deployed for
+ * use with the Apps Script Execution API.
+ *
+ * This method requires authorization with an OAuth 2.0 token that includes at
+ * least one of the scopes listed in the [Authorization](#authorization)
+ * section; script projects that do not require authorization cannot be executed
+ * through this API. To find the correct scopes to include in the authentication
+ * token, open the project in the script editor, then select **File > Project
+ * properties** and click the **Scopes** tab. (scripts.run)
+ *
+ * @param string $scriptId The project key of the script to be executed. To find
+ * the project key, open the project in the script editor and select **File >
+ * Project properties**.
+ * @param Google_Service_Script_ExecutionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Script_Operation
+ */
+ public function run($scriptId, Google_Service_Script_ExecutionRequest $postBody, $optParams = array())
+ {
+ $params = array('scriptId' => $scriptId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('run', array($params), "Google_Service_Script_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ScriptStackTraceElement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ScriptStackTraceElement.php
new file mode 100644
index 00000000..e2043612
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/ScriptStackTraceElement.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Script_ScriptStackTraceElement extends Google_Model
+{
+ public $function;
+ public $lineNumber;
+
+ public function setFunction($function)
+ {
+ $this->function = $function;
+ }
+ public function getFunction()
+ {
+ return $this->function;
+ }
+ public function setLineNumber($lineNumber)
+ {
+ $this->lineNumber = $lineNumber;
+ }
+ public function getLineNumber()
+ {
+ return $this->lineNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Status.php
new file mode 100644
index 00000000..12bd8803
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Script/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Script_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole.php
new file mode 100644
index 00000000..560a2fed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for SearchConsole (v1).
+ *
+ * <p>
+ * Provides tools for running validation tests against single URLs</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/webmaster-tools/search-console-api/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_SearchConsole extends Google_Service
+{
+
+
+ public $urlTestingTools_mobileFriendlyTest;
+
+ /**
+ * Constructs the internal representation of the SearchConsole service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://searchconsole.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'searchconsole';
+
+ $this->urlTestingTools_mobileFriendlyTest = new Google_Service_SearchConsole_Resource_UrlTestingToolsMobileFriendlyTest(
+ $this,
+ $this->serviceName,
+ 'mobileFriendlyTest',
+ array(
+ 'methods' => array(
+ 'run' => array(
+ 'path' => 'v1/urlTestingTools/mobileFriendlyTest:run',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/BlockedResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/BlockedResource.php
new file mode 100644
index 00000000..bbc71cf7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/BlockedResource.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SearchConsole_BlockedResource extends Google_Model
+{
+ public $url;
+
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Image.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Image.php
new file mode 100644
index 00000000..16601977
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Image.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SearchConsole_Image extends Google_Model
+{
+ public $data;
+ public $mimeType;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/MobileFriendlyIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/MobileFriendlyIssue.php
new file mode 100644
index 00000000..34df5fad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/MobileFriendlyIssue.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SearchConsole_MobileFriendlyIssue extends Google_Model
+{
+ public $rule;
+
+ public function setRule($rule)
+ {
+ $this->rule = $rule;
+ }
+ public function getRule()
+ {
+ return $this->rule;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingTools.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingTools.php
new file mode 100644
index 00000000..3508d9db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingTools.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlTestingTools" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $searchconsoleService = new Google_Service_SearchConsole(...);
+ * $urlTestingTools = $searchconsoleService->urlTestingTools;
+ * </code>
+ */
+class Google_Service_SearchConsole_Resource_UrlTestingTools extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingToolsMobileFriendlyTest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingToolsMobileFriendlyTest.php
new file mode 100644
index 00000000..26544134
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/Resource/UrlTestingToolsMobileFriendlyTest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mobileFriendlyTest" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $searchconsoleService = new Google_Service_SearchConsole(...);
+ * $mobileFriendlyTest = $searchconsoleService->mobileFriendlyTest;
+ * </code>
+ */
+class Google_Service_SearchConsole_Resource_UrlTestingToolsMobileFriendlyTest extends Google_Service_Resource
+{
+ /**
+ * Runs Mobile-Friendly Test for a given URL. (mobileFriendlyTest.run)
+ *
+ * @param Google_Service_SearchConsole_RunMobileFriendlyTestRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SearchConsole_RunMobileFriendlyTestResponse
+ */
+ public function run(Google_Service_SearchConsole_RunMobileFriendlyTestRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('run', array($params), "Google_Service_SearchConsole_RunMobileFriendlyTestResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/ResourceIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/ResourceIssue.php
new file mode 100644
index 00000000..e52db726
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/ResourceIssue.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SearchConsole_ResourceIssue extends Google_Model
+{
+ protected $blockedResourceType = 'Google_Service_SearchConsole_BlockedResource';
+ protected $blockedResourceDataType = '';
+
+ public function setBlockedResource(Google_Service_SearchConsole_BlockedResource $blockedResource)
+ {
+ $this->blockedResource = $blockedResource;
+ }
+ public function getBlockedResource()
+ {
+ return $this->blockedResource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestRequest.php
new file mode 100644
index 00000000..53cfff68
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SearchConsole_RunMobileFriendlyTestRequest extends Google_Model
+{
+ public $requestScreenshot;
+ public $url;
+
+ public function setRequestScreenshot($requestScreenshot)
+ {
+ $this->requestScreenshot = $requestScreenshot;
+ }
+ public function getRequestScreenshot()
+ {
+ return $this->requestScreenshot;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestResponse.php
new file mode 100644
index 00000000..95f64b3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/RunMobileFriendlyTestResponse.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SearchConsole_RunMobileFriendlyTestResponse extends Google_Collection
+{
+ protected $collection_key = 'resourceIssues';
+ public $mobileFriendliness;
+ protected $mobileFriendlyIssuesType = 'Google_Service_SearchConsole_MobileFriendlyIssue';
+ protected $mobileFriendlyIssuesDataType = 'array';
+ protected $resourceIssuesType = 'Google_Service_SearchConsole_ResourceIssue';
+ protected $resourceIssuesDataType = 'array';
+ protected $screenshotType = 'Google_Service_SearchConsole_Image';
+ protected $screenshotDataType = '';
+ protected $testStatusType = 'Google_Service_SearchConsole_TestStatus';
+ protected $testStatusDataType = '';
+
+ public function setMobileFriendliness($mobileFriendliness)
+ {
+ $this->mobileFriendliness = $mobileFriendliness;
+ }
+ public function getMobileFriendliness()
+ {
+ return $this->mobileFriendliness;
+ }
+ public function setMobileFriendlyIssues($mobileFriendlyIssues)
+ {
+ $this->mobileFriendlyIssues = $mobileFriendlyIssues;
+ }
+ public function getMobileFriendlyIssues()
+ {
+ return $this->mobileFriendlyIssues;
+ }
+ public function setResourceIssues($resourceIssues)
+ {
+ $this->resourceIssues = $resourceIssues;
+ }
+ public function getResourceIssues()
+ {
+ return $this->resourceIssues;
+ }
+ public function setScreenshot(Google_Service_SearchConsole_Image $screenshot)
+ {
+ $this->screenshot = $screenshot;
+ }
+ public function getScreenshot()
+ {
+ return $this->screenshot;
+ }
+ public function setTestStatus(Google_Service_SearchConsole_TestStatus $testStatus)
+ {
+ $this->testStatus = $testStatus;
+ }
+ public function getTestStatus()
+ {
+ return $this->testStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/TestStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/TestStatus.php
new file mode 100644
index 00000000..9212ac66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SearchConsole/TestStatus.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SearchConsole_TestStatus extends Google_Model
+{
+ public $details;
+ public $status;
+
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl.php
new file mode 100644
index 00000000..8ab8fc6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ServiceControl (v1).
+ *
+ * <p>
+ * Google Service Control provides control plane functionality to managed
+ * services, such as logging, monitoring, and status checks.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/service-control/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ServiceControl extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Manage your Google Service Control data. */
+ const SERVICECONTROL =
+ "https://www.googleapis.com/auth/servicecontrol";
+
+ public $services;
+
+ /**
+ * Constructs the internal representation of the ServiceControl service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://servicecontrol.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'servicecontrol';
+
+ $this->services = new Google_Service_ServiceControl_Resource_Services(
+ $this,
+ $this->serviceName,
+ 'services',
+ array(
+ 'methods' => array(
+ 'allocateQuota' => array(
+ 'path' => 'v1/services/{serviceName}:allocateQuota',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'check' => array(
+ 'path' => 'v1/services/{serviceName}:check',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'endReconciliation' => array(
+ 'path' => 'v1/services/{serviceName}:endReconciliation',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'releaseQuota' => array(
+ 'path' => 'v1/services/{serviceName}:releaseQuota',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'report' => array(
+ 'path' => 'v1/services/{serviceName}:report',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'startReconciliation' => array(
+ 'path' => 'v1/services/{serviceName}:startReconciliation',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaRequest.php
new file mode 100644
index 00000000..407662e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_AllocateQuotaRequest extends Google_Model
+{
+ protected $allocateOperationType = 'Google_Service_ServiceControl_QuotaOperation';
+ protected $allocateOperationDataType = '';
+ public $allocationMode;
+ public $serviceConfigId;
+
+ public function setAllocateOperation(Google_Service_ServiceControl_QuotaOperation $allocateOperation)
+ {
+ $this->allocateOperation = $allocateOperation;
+ }
+ public function getAllocateOperation()
+ {
+ return $this->allocateOperation;
+ }
+ public function setAllocationMode($allocationMode)
+ {
+ $this->allocationMode = $allocationMode;
+ }
+ public function getAllocationMode()
+ {
+ return $this->allocationMode;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaResponse.php
new file mode 100644
index 00000000..5bd7f566
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AllocateQuotaResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_AllocateQuotaResponse extends Google_Collection
+{
+ protected $collection_key = 'quotaMetrics';
+ protected $allocateErrorsType = 'Google_Service_ServiceControl_QuotaError';
+ protected $allocateErrorsDataType = 'array';
+ public $operationId;
+ protected $quotaMetricsType = 'Google_Service_ServiceControl_MetricValueSet';
+ protected $quotaMetricsDataType = 'array';
+ public $serviceConfigId;
+
+ public function setAllocateErrors($allocateErrors)
+ {
+ $this->allocateErrors = $allocateErrors;
+ }
+ public function getAllocateErrors()
+ {
+ return $this->allocateErrors;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuotaMetrics($quotaMetrics)
+ {
+ $this->quotaMetrics = $quotaMetrics;
+ }
+ public function getQuotaMetrics()
+ {
+ return $this->quotaMetrics;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php
new file mode 100644
index 00000000..c6c25dd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuditLog.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_AuditLog extends Google_Collection
+{
+ protected $collection_key = 'authorizationInfo';
+ protected $authenticationInfoType = 'Google_Service_ServiceControl_AuthenticationInfo';
+ protected $authenticationInfoDataType = '';
+ protected $authorizationInfoType = 'Google_Service_ServiceControl_AuthorizationInfo';
+ protected $authorizationInfoDataType = 'array';
+ public $methodName;
+ public $numResponseItems;
+ public $request;
+ protected $requestMetadataType = 'Google_Service_ServiceControl_RequestMetadata';
+ protected $requestMetadataDataType = '';
+ public $resourceName;
+ public $response;
+ public $serviceData;
+ public $serviceName;
+ protected $statusType = 'Google_Service_ServiceControl_Status';
+ protected $statusDataType = '';
+
+ public function setAuthenticationInfo(Google_Service_ServiceControl_AuthenticationInfo $authenticationInfo)
+ {
+ $this->authenticationInfo = $authenticationInfo;
+ }
+ public function getAuthenticationInfo()
+ {
+ return $this->authenticationInfo;
+ }
+ public function setAuthorizationInfo($authorizationInfo)
+ {
+ $this->authorizationInfo = $authorizationInfo;
+ }
+ public function getAuthorizationInfo()
+ {
+ return $this->authorizationInfo;
+ }
+ public function setMethodName($methodName)
+ {
+ $this->methodName = $methodName;
+ }
+ public function getMethodName()
+ {
+ return $this->methodName;
+ }
+ public function setNumResponseItems($numResponseItems)
+ {
+ $this->numResponseItems = $numResponseItems;
+ }
+ public function getNumResponseItems()
+ {
+ return $this->numResponseItems;
+ }
+ public function setRequest($request)
+ {
+ $this->request = $request;
+ }
+ public function getRequest()
+ {
+ return $this->request;
+ }
+ public function setRequestMetadata(Google_Service_ServiceControl_RequestMetadata $requestMetadata)
+ {
+ $this->requestMetadata = $requestMetadata;
+ }
+ public function getRequestMetadata()
+ {
+ return $this->requestMetadata;
+ }
+ public function setResourceName($resourceName)
+ {
+ $this->resourceName = $resourceName;
+ }
+ public function getResourceName()
+ {
+ return $this->resourceName;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+ public function setServiceData($serviceData)
+ {
+ $this->serviceData = $serviceData;
+ }
+ public function getServiceData()
+ {
+ return $this->serviceData;
+ }
+ public function setServiceName($serviceName)
+ {
+ $this->serviceName = $serviceName;
+ }
+ public function getServiceName()
+ {
+ return $this->serviceName;
+ }
+ public function setStatus(Google_Service_ServiceControl_Status $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php
new file mode 100644
index 00000000..d253b170
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthenticationInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_AuthenticationInfo extends Google_Model
+{
+ public $authoritySelector;
+ public $principalEmail;
+
+ public function setAuthoritySelector($authoritySelector)
+ {
+ $this->authoritySelector = $authoritySelector;
+ }
+ public function getAuthoritySelector()
+ {
+ return $this->authoritySelector;
+ }
+ public function setPrincipalEmail($principalEmail)
+ {
+ $this->principalEmail = $principalEmail;
+ }
+ public function getPrincipalEmail()
+ {
+ return $this->principalEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php
new file mode 100644
index 00000000..91777eff
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/AuthorizationInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_AuthorizationInfo extends Google_Model
+{
+ public $granted;
+ public $permission;
+ public $resource;
+
+ public function setGranted($granted)
+ {
+ $this->granted = $granted;
+ }
+ public function getGranted()
+ {
+ return $this->granted;
+ }
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+ public function setResource($resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php
new file mode 100644
index 00000000..a2382bb5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckError.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_CheckError extends Google_Model
+{
+ public $code;
+ public $detail;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetail($detail)
+ {
+ $this->detail = $detail;
+ }
+ public function getDetail()
+ {
+ return $this->detail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckInfo.php
new file mode 100644
index 00000000..d9f18c8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_CheckInfo extends Google_Collection
+{
+ protected $collection_key = 'unusedArguments';
+ public $unusedArguments;
+
+ public function setUnusedArguments($unusedArguments)
+ {
+ $this->unusedArguments = $unusedArguments;
+ }
+ public function getUnusedArguments()
+ {
+ return $this->unusedArguments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckRequest.php
new file mode 100644
index 00000000..597e6de7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_CheckRequest extends Google_Model
+{
+ protected $operationType = 'Google_Service_ServiceControl_Operation';
+ protected $operationDataType = '';
+ public $requestProjectSettings;
+ public $serviceConfigId;
+ public $skipActivationCheck;
+
+ public function setOperation(Google_Service_ServiceControl_Operation $operation)
+ {
+ $this->operation = $operation;
+ }
+ public function getOperation()
+ {
+ return $this->operation;
+ }
+ public function setRequestProjectSettings($requestProjectSettings)
+ {
+ $this->requestProjectSettings = $requestProjectSettings;
+ }
+ public function getRequestProjectSettings()
+ {
+ return $this->requestProjectSettings;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+ public function setSkipActivationCheck($skipActivationCheck)
+ {
+ $this->skipActivationCheck = $skipActivationCheck;
+ }
+ public function getSkipActivationCheck()
+ {
+ return $this->skipActivationCheck;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckResponse.php
new file mode 100644
index 00000000..c3e496cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/CheckResponse.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_CheckResponse extends Google_Collection
+{
+ protected $collection_key = 'checkErrors';
+ protected $checkErrorsType = 'Google_Service_ServiceControl_CheckError';
+ protected $checkErrorsDataType = 'array';
+ protected $checkInfoType = 'Google_Service_ServiceControl_CheckInfo';
+ protected $checkInfoDataType = '';
+ public $operationId;
+ protected $quotaInfoType = 'Google_Service_ServiceControl_QuotaInfo';
+ protected $quotaInfoDataType = '';
+ public $serviceConfigId;
+
+ public function setCheckErrors($checkErrors)
+ {
+ $this->checkErrors = $checkErrors;
+ }
+ public function getCheckErrors()
+ {
+ return $this->checkErrors;
+ }
+ public function setCheckInfo(Google_Service_ServiceControl_CheckInfo $checkInfo)
+ {
+ $this->checkInfo = $checkInfo;
+ }
+ public function getCheckInfo()
+ {
+ return $this->checkInfo;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuotaInfo(Google_Service_ServiceControl_QuotaInfo $quotaInfo)
+ {
+ $this->quotaInfo = $quotaInfo;
+ }
+ public function getQuotaInfo()
+ {
+ return $this->quotaInfo;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Distribution.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Distribution.php
new file mode 100644
index 00000000..99f45e46
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Distribution.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_Distribution extends Google_Collection
+{
+ protected $collection_key = 'bucketCounts';
+ public $bucketCounts;
+ public $count;
+ protected $explicitBucketsType = 'Google_Service_ServiceControl_ExplicitBuckets';
+ protected $explicitBucketsDataType = '';
+ protected $exponentialBucketsType = 'Google_Service_ServiceControl_ExponentialBuckets';
+ protected $exponentialBucketsDataType = '';
+ protected $linearBucketsType = 'Google_Service_ServiceControl_LinearBuckets';
+ protected $linearBucketsDataType = '';
+ public $maximum;
+ public $mean;
+ public $minimum;
+ public $sumOfSquaredDeviation;
+
+ public function setBucketCounts($bucketCounts)
+ {
+ $this->bucketCounts = $bucketCounts;
+ }
+ public function getBucketCounts()
+ {
+ return $this->bucketCounts;
+ }
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setExplicitBuckets(Google_Service_ServiceControl_ExplicitBuckets $explicitBuckets)
+ {
+ $this->explicitBuckets = $explicitBuckets;
+ }
+ public function getExplicitBuckets()
+ {
+ return $this->explicitBuckets;
+ }
+ public function setExponentialBuckets(Google_Service_ServiceControl_ExponentialBuckets $exponentialBuckets)
+ {
+ $this->exponentialBuckets = $exponentialBuckets;
+ }
+ public function getExponentialBuckets()
+ {
+ return $this->exponentialBuckets;
+ }
+ public function setLinearBuckets(Google_Service_ServiceControl_LinearBuckets $linearBuckets)
+ {
+ $this->linearBuckets = $linearBuckets;
+ }
+ public function getLinearBuckets()
+ {
+ return $this->linearBuckets;
+ }
+ public function setMaximum($maximum)
+ {
+ $this->maximum = $maximum;
+ }
+ public function getMaximum()
+ {
+ return $this->maximum;
+ }
+ public function setMean($mean)
+ {
+ $this->mean = $mean;
+ }
+ public function getMean()
+ {
+ return $this->mean;
+ }
+ public function setMinimum($minimum)
+ {
+ $this->minimum = $minimum;
+ }
+ public function getMinimum()
+ {
+ return $this->minimum;
+ }
+ public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
+ {
+ $this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
+ }
+ public function getSumOfSquaredDeviation()
+ {
+ return $this->sumOfSquaredDeviation;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationRequest.php
new file mode 100644
index 00000000..30e3bd3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_EndReconciliationRequest extends Google_Model
+{
+ protected $reconciliationOperationType = 'Google_Service_ServiceControl_QuotaOperation';
+ protected $reconciliationOperationDataType = '';
+ public $serviceConfigId;
+
+ public function setReconciliationOperation(Google_Service_ServiceControl_QuotaOperation $reconciliationOperation)
+ {
+ $this->reconciliationOperation = $reconciliationOperation;
+ }
+ public function getReconciliationOperation()
+ {
+ return $this->reconciliationOperation;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationResponse.php
new file mode 100644
index 00000000..23145bad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/EndReconciliationResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_EndReconciliationResponse extends Google_Collection
+{
+ protected $collection_key = 'reconciliationErrors';
+ public $operationId;
+ protected $quotaMetricsType = 'Google_Service_ServiceControl_MetricValueSet';
+ protected $quotaMetricsDataType = 'array';
+ protected $reconciliationErrorsType = 'Google_Service_ServiceControl_QuotaError';
+ protected $reconciliationErrorsDataType = 'array';
+ public $serviceConfigId;
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuotaMetrics($quotaMetrics)
+ {
+ $this->quotaMetrics = $quotaMetrics;
+ }
+ public function getQuotaMetrics()
+ {
+ return $this->quotaMetrics;
+ }
+ public function setReconciliationErrors($reconciliationErrors)
+ {
+ $this->reconciliationErrors = $reconciliationErrors;
+ }
+ public function getReconciliationErrors()
+ {
+ return $this->reconciliationErrors;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExplicitBuckets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExplicitBuckets.php
new file mode 100644
index 00000000..aad45478
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExplicitBuckets.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ExplicitBuckets extends Google_Collection
+{
+ protected $collection_key = 'bounds';
+ public $bounds;
+
+ public function setBounds($bounds)
+ {
+ $this->bounds = $bounds;
+ }
+ public function getBounds()
+ {
+ return $this->bounds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExponentialBuckets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExponentialBuckets.php
new file mode 100644
index 00000000..7872fac7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ExponentialBuckets.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ExponentialBuckets extends Google_Model
+{
+ public $growthFactor;
+ public $numFiniteBuckets;
+ public $scale;
+
+ public function setGrowthFactor($growthFactor)
+ {
+ $this->growthFactor = $growthFactor;
+ }
+ public function getGrowthFactor()
+ {
+ return $this->growthFactor;
+ }
+ public function setNumFiniteBuckets($numFiniteBuckets)
+ {
+ $this->numFiniteBuckets = $numFiniteBuckets;
+ }
+ public function getNumFiniteBuckets()
+ {
+ return $this->numFiniteBuckets;
+ }
+ public function setScale($scale)
+ {
+ $this->scale = $scale;
+ }
+ public function getScale()
+ {
+ return $this->scale;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LinearBuckets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LinearBuckets.php
new file mode 100644
index 00000000..8ae7ecd8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LinearBuckets.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_LinearBuckets extends Google_Model
+{
+ public $numFiniteBuckets;
+ public $offset;
+ public $width;
+
+ public function setNumFiniteBuckets($numFiniteBuckets)
+ {
+ $this->numFiniteBuckets = $numFiniteBuckets;
+ }
+ public function getNumFiniteBuckets()
+ {
+ return $this->numFiniteBuckets;
+ }
+ public function setOffset($offset)
+ {
+ $this->offset = $offset;
+ }
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php
new file mode 100644
index 00000000..84a8c511
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/LogEntry.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_LogEntry extends Google_Model
+{
+ public $insertId;
+ public $labels;
+ public $name;
+ public $protoPayload;
+ public $severity;
+ public $structPayload;
+ public $textPayload;
+ public $timestamp;
+
+ public function setInsertId($insertId)
+ {
+ $this->insertId = $insertId;
+ }
+ public function getInsertId()
+ {
+ return $this->insertId;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProtoPayload($protoPayload)
+ {
+ $this->protoPayload = $protoPayload;
+ }
+ public function getProtoPayload()
+ {
+ return $this->protoPayload;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setStructPayload($structPayload)
+ {
+ $this->structPayload = $structPayload;
+ }
+ public function getStructPayload()
+ {
+ return $this->structPayload;
+ }
+ public function setTextPayload($textPayload)
+ {
+ $this->textPayload = $textPayload;
+ }
+ public function getTextPayload()
+ {
+ return $this->textPayload;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValue.php
new file mode 100644
index 00000000..a71b8be3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValue.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_MetricValue extends Google_Model
+{
+ public $boolValue;
+ protected $distributionValueType = 'Google_Service_ServiceControl_Distribution';
+ protected $distributionValueDataType = '';
+ public $doubleValue;
+ public $endTime;
+ public $int64Value;
+ public $labels;
+ protected $moneyValueType = 'Google_Service_ServiceControl_Money';
+ protected $moneyValueDataType = '';
+ public $startTime;
+ public $stringValue;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setDistributionValue(Google_Service_ServiceControl_Distribution $distributionValue)
+ {
+ $this->distributionValue = $distributionValue;
+ }
+ public function getDistributionValue()
+ {
+ return $this->distributionValue;
+ }
+ public function setDoubleValue($doubleValue)
+ {
+ $this->doubleValue = $doubleValue;
+ }
+ public function getDoubleValue()
+ {
+ return $this->doubleValue;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setInt64Value($int64Value)
+ {
+ $this->int64Value = $int64Value;
+ }
+ public function getInt64Value()
+ {
+ return $this->int64Value;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setMoneyValue(Google_Service_ServiceControl_Money $moneyValue)
+ {
+ $this->moneyValue = $moneyValue;
+ }
+ public function getMoneyValue()
+ {
+ return $this->moneyValue;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValueSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValueSet.php
new file mode 100644
index 00000000..7164abf3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/MetricValueSet.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_MetricValueSet extends Google_Collection
+{
+ protected $collection_key = 'metricValues';
+ public $metricName;
+ protected $metricValuesType = 'Google_Service_ServiceControl_MetricValue';
+ protected $metricValuesDataType = 'array';
+
+ public function setMetricName($metricName)
+ {
+ $this->metricName = $metricName;
+ }
+ public function getMetricName()
+ {
+ return $this->metricName;
+ }
+ public function setMetricValues($metricValues)
+ {
+ $this->metricValues = $metricValues;
+ }
+ public function getMetricValues()
+ {
+ return $this->metricValues;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Money.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Money.php
new file mode 100644
index 00000000..55b7874e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Money.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_Money extends Google_Model
+{
+ public $currencyCode;
+ public $nanos;
+ public $units;
+
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+ public function setUnits($units)
+ {
+ $this->units = $units;
+ }
+ public function getUnits()
+ {
+ return $this->units;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Operation.php
new file mode 100644
index 00000000..d58e975a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Operation.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_Operation extends Google_Collection
+{
+ protected $collection_key = 'metricValueSets';
+ public $consumerId;
+ public $endTime;
+ public $importance;
+ public $labels;
+ protected $logEntriesType = 'Google_Service_ServiceControl_LogEntry';
+ protected $logEntriesDataType = 'array';
+ protected $metricValueSetsType = 'Google_Service_ServiceControl_MetricValueSet';
+ protected $metricValueSetsDataType = 'array';
+ public $operationId;
+ public $operationName;
+ protected $quotaPropertiesType = 'Google_Service_ServiceControl_QuotaProperties';
+ protected $quotaPropertiesDataType = '';
+ public $resourceContainer;
+ public $startTime;
+ public $userLabels;
+
+ public function setConsumerId($consumerId)
+ {
+ $this->consumerId = $consumerId;
+ }
+ public function getConsumerId()
+ {
+ return $this->consumerId;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setImportance($importance)
+ {
+ $this->importance = $importance;
+ }
+ public function getImportance()
+ {
+ return $this->importance;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLogEntries($logEntries)
+ {
+ $this->logEntries = $logEntries;
+ }
+ public function getLogEntries()
+ {
+ return $this->logEntries;
+ }
+ public function setMetricValueSets($metricValueSets)
+ {
+ $this->metricValueSets = $metricValueSets;
+ }
+ public function getMetricValueSets()
+ {
+ return $this->metricValueSets;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setOperationName($operationName)
+ {
+ $this->operationName = $operationName;
+ }
+ public function getOperationName()
+ {
+ return $this->operationName;
+ }
+ public function setQuotaProperties(Google_Service_ServiceControl_QuotaProperties $quotaProperties)
+ {
+ $this->quotaProperties = $quotaProperties;
+ }
+ public function getQuotaProperties()
+ {
+ return $this->quotaProperties;
+ }
+ public function setResourceContainer($resourceContainer)
+ {
+ $this->resourceContainer = $resourceContainer;
+ }
+ public function getResourceContainer()
+ {
+ return $this->resourceContainer;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setUserLabels($userLabels)
+ {
+ $this->userLabels = $userLabels;
+ }
+ public function getUserLabels()
+ {
+ return $this->userLabels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaError.php
new file mode 100644
index 00000000..3ab44fb5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaError.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_QuotaError extends Google_Model
+{
+ public $code;
+ public $description;
+ public $subject;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setSubject($subject)
+ {
+ $this->subject = $subject;
+ }
+ public function getSubject()
+ {
+ return $this->subject;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaInfo.php
new file mode 100644
index 00000000..748c2bf9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaInfo.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_QuotaInfo extends Google_Collection
+{
+ protected $collection_key = 'quotaMetrics';
+ public $limitExceeded;
+ public $quotaConsumed;
+ protected $quotaMetricsType = 'Google_Service_ServiceControl_MetricValueSet';
+ protected $quotaMetricsDataType = 'array';
+
+ public function setLimitExceeded($limitExceeded)
+ {
+ $this->limitExceeded = $limitExceeded;
+ }
+ public function getLimitExceeded()
+ {
+ return $this->limitExceeded;
+ }
+ public function setQuotaConsumed($quotaConsumed)
+ {
+ $this->quotaConsumed = $quotaConsumed;
+ }
+ public function getQuotaConsumed()
+ {
+ return $this->quotaConsumed;
+ }
+ public function setQuotaMetrics($quotaMetrics)
+ {
+ $this->quotaMetrics = $quotaMetrics;
+ }
+ public function getQuotaMetrics()
+ {
+ return $this->quotaMetrics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaOperation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaOperation.php
new file mode 100644
index 00000000..37b4144d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaOperation.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_QuotaOperation extends Google_Collection
+{
+ protected $collection_key = 'quotaMetrics';
+ public $consumerId;
+ public $labels;
+ public $methodName;
+ public $operationId;
+ protected $quotaMetricsType = 'Google_Service_ServiceControl_MetricValueSet';
+ protected $quotaMetricsDataType = 'array';
+ public $quotaMode;
+
+ public function setConsumerId($consumerId)
+ {
+ $this->consumerId = $consumerId;
+ }
+ public function getConsumerId()
+ {
+ return $this->consumerId;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setMethodName($methodName)
+ {
+ $this->methodName = $methodName;
+ }
+ public function getMethodName()
+ {
+ return $this->methodName;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuotaMetrics($quotaMetrics)
+ {
+ $this->quotaMetrics = $quotaMetrics;
+ }
+ public function getQuotaMetrics()
+ {
+ return $this->quotaMetrics;
+ }
+ public function setQuotaMode($quotaMode)
+ {
+ $this->quotaMode = $quotaMode;
+ }
+ public function getQuotaMode()
+ {
+ return $this->quotaMode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaProperties.php
new file mode 100644
index 00000000..b8bb2ef2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/QuotaProperties.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_QuotaProperties extends Google_Model
+{
+ public $limitByIds;
+ public $quotaMode;
+
+ public function setLimitByIds($limitByIds)
+ {
+ $this->limitByIds = $limitByIds;
+ }
+ public function getLimitByIds()
+ {
+ return $this->limitByIds;
+ }
+ public function setQuotaMode($quotaMode)
+ {
+ $this->quotaMode = $quotaMode;
+ }
+ public function getQuotaMode()
+ {
+ return $this->quotaMode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaRequest.php
new file mode 100644
index 00000000..d6dd8fa0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ReleaseQuotaRequest extends Google_Model
+{
+ protected $releaseOperationType = 'Google_Service_ServiceControl_QuotaOperation';
+ protected $releaseOperationDataType = '';
+ public $serviceConfigId;
+
+ public function setReleaseOperation(Google_Service_ServiceControl_QuotaOperation $releaseOperation)
+ {
+ $this->releaseOperation = $releaseOperation;
+ }
+ public function getReleaseOperation()
+ {
+ return $this->releaseOperation;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaResponse.php
new file mode 100644
index 00000000..e78b09d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReleaseQuotaResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ReleaseQuotaResponse extends Google_Collection
+{
+ protected $collection_key = 'releaseErrors';
+ public $operationId;
+ protected $quotaMetricsType = 'Google_Service_ServiceControl_MetricValueSet';
+ protected $quotaMetricsDataType = 'array';
+ protected $releaseErrorsType = 'Google_Service_ServiceControl_QuotaError';
+ protected $releaseErrorsDataType = 'array';
+ public $serviceConfigId;
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuotaMetrics($quotaMetrics)
+ {
+ $this->quotaMetrics = $quotaMetrics;
+ }
+ public function getQuotaMetrics()
+ {
+ return $this->quotaMetrics;
+ }
+ public function setReleaseErrors($releaseErrors)
+ {
+ $this->releaseErrors = $releaseErrors;
+ }
+ public function getReleaseErrors()
+ {
+ return $this->releaseErrors;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportError.php
new file mode 100644
index 00000000..d5db0b9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportError.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ReportError extends Google_Model
+{
+ public $operationId;
+ protected $statusType = 'Google_Service_ServiceControl_Status';
+ protected $statusDataType = '';
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setStatus(Google_Service_ServiceControl_Status $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportInfo.php
new file mode 100644
index 00000000..3ff863df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportInfo.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ReportInfo extends Google_Model
+{
+ public $operationId;
+ protected $quotaInfoType = 'Google_Service_ServiceControl_QuotaInfo';
+ protected $quotaInfoDataType = '';
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuotaInfo(Google_Service_ServiceControl_QuotaInfo $quotaInfo)
+ {
+ $this->quotaInfo = $quotaInfo;
+ }
+ public function getQuotaInfo()
+ {
+ return $this->quotaInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportRequest.php
new file mode 100644
index 00000000..5fa09d42
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ReportRequest extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ protected $operationsType = 'Google_Service_ServiceControl_Operation';
+ protected $operationsDataType = 'array';
+ public $serviceConfigId;
+
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportResponse.php
new file mode 100644
index 00000000..a32a1ef9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/ReportResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_ReportResponse extends Google_Collection
+{
+ protected $collection_key = 'reportInfos';
+ protected $reportErrorsType = 'Google_Service_ServiceControl_ReportError';
+ protected $reportErrorsDataType = 'array';
+ protected $reportInfosType = 'Google_Service_ServiceControl_ReportInfo';
+ protected $reportInfosDataType = 'array';
+ public $serviceConfigId;
+
+ public function setReportErrors($reportErrors)
+ {
+ $this->reportErrors = $reportErrors;
+ }
+ public function getReportErrors()
+ {
+ return $this->reportErrors;
+ }
+ public function setReportInfos($reportInfos)
+ {
+ $this->reportInfos = $reportInfos;
+ }
+ public function getReportInfos()
+ {
+ return $this->reportInfos;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php
new file mode 100644
index 00000000..3eac6ed8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/RequestMetadata.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_RequestMetadata extends Google_Model
+{
+ public $callerIp;
+ public $callerSuppliedUserAgent;
+
+ public function setCallerIp($callerIp)
+ {
+ $this->callerIp = $callerIp;
+ }
+ public function getCallerIp()
+ {
+ return $this->callerIp;
+ }
+ public function setCallerSuppliedUserAgent($callerSuppliedUserAgent)
+ {
+ $this->callerSuppliedUserAgent = $callerSuppliedUserAgent;
+ }
+ public function getCallerSuppliedUserAgent()
+ {
+ return $this->callerSuppliedUserAgent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php
new file mode 100644
index 00000000..f88318cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Resource/Services.php
@@ -0,0 +1,191 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "services" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $servicecontrolService = new Google_Service_ServiceControl(...);
+ * $services = $servicecontrolService->services;
+ * </code>
+ */
+class Google_Service_ServiceControl_Resource_Services extends Google_Service_Resource
+{
+ /**
+ * Attempts to allocate quota for the specified consumer. It should be called
+ * before the operation is executed.
+ *
+ * This method requires the `servicemanagement.services.quota` permission on the
+ * specified service. For more information, see [Google Cloud
+ * IAM](https://cloud.google.com/iam). (services.allocateQuota)
+ *
+ * @param string $serviceName Name of the service as specified in the service
+ * configuration. For example, `"pubsub.googleapis.com"`.
+ *
+ * See google.api.Service for the definition of a service name.
+ * @param Google_Service_ServiceControl_AllocateQuotaRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceControl_AllocateQuotaResponse
+ */
+ public function allocateQuota($serviceName, Google_Service_ServiceControl_AllocateQuotaRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('allocateQuota', array($params), "Google_Service_ServiceControl_AllocateQuotaResponse");
+ }
+ /**
+ * Checks an operation with Google Service Control to decide whether the given
+ * operation should proceed. It should be called before the operation is
+ * executed.
+ *
+ * If feasible, the client should cache the check results and reuse them for 60
+ * seconds. In case of server errors, the client can rely on the cached results
+ * for longer time.
+ *
+ * NOTE: the `CheckRequest` has the size limit of 64KB.
+ *
+ * This method requires the `servicemanagement.services.check` permission on the
+ * specified service. For more information, see [Google Cloud
+ * IAM](https://cloud.google.com/iam). (services.check)
+ *
+ * @param string $serviceName The service name as specified in its service
+ * configuration. For example, `"pubsub.googleapis.com"`.
+ *
+ * See google.api.Service for the definition of a service name.
+ * @param Google_Service_ServiceControl_CheckRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceControl_CheckResponse
+ */
+ public function check($serviceName, Google_Service_ServiceControl_CheckRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('check', array($params), "Google_Service_ServiceControl_CheckResponse");
+ }
+ /**
+ * Signals the quota controller that service ends the ongoing usage
+ * reconciliation.
+ *
+ * This method requires the `servicemanagement.services.quota` permission on the
+ * specified service. For more information, see [Google Cloud
+ * IAM](https://cloud.google.com/iam). (services.endReconciliation)
+ *
+ * @param string $serviceName Name of the service as specified in the service
+ * configuration. For example, `"pubsub.googleapis.com"`.
+ *
+ * See google.api.Service for the definition of a service name.
+ * @param Google_Service_ServiceControl_EndReconciliationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceControl_EndReconciliationResponse
+ */
+ public function endReconciliation($serviceName, Google_Service_ServiceControl_EndReconciliationRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('endReconciliation', array($params), "Google_Service_ServiceControl_EndReconciliationResponse");
+ }
+ /**
+ * Releases previously allocated quota done through AllocateQuota method.
+ *
+ * This method requires the `servicemanagement.services.quota` permission on the
+ * specified service. For more information, see [Google Cloud
+ * IAM](https://cloud.google.com/iam). (services.releaseQuota)
+ *
+ * @param string $serviceName Name of the service as specified in the service
+ * configuration. For example, `"pubsub.googleapis.com"`.
+ *
+ * See google.api.Service for the definition of a service name.
+ * @param Google_Service_ServiceControl_ReleaseQuotaRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceControl_ReleaseQuotaResponse
+ */
+ public function releaseQuota($serviceName, Google_Service_ServiceControl_ReleaseQuotaRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('releaseQuota', array($params), "Google_Service_ServiceControl_ReleaseQuotaResponse");
+ }
+ /**
+ * Reports operation results to Google Service Control, such as logs and
+ * metrics. It should be called after an operation is completed.
+ *
+ * If feasible, the client should aggregate reporting data for up to 5 seconds
+ * to reduce API traffic. Limiting aggregation to 5 seconds is to reduce data
+ * loss during client crashes. Clients should carefully choose the aggregation
+ * time window to avoid data loss risk more than 0.01% for business and
+ * compliance reasons.
+ *
+ * NOTE: the `ReportRequest` has the size limit of 1MB.
+ *
+ * This method requires the `servicemanagement.services.report` permission on
+ * the specified service. For more information, see [Google Cloud
+ * IAM](https://cloud.google.com/iam). (services.report)
+ *
+ * @param string $serviceName The service name as specified in its service
+ * configuration. For example, `"pubsub.googleapis.com"`.
+ *
+ * See google.api.Service for the definition of a service name.
+ * @param Google_Service_ServiceControl_ReportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceControl_ReportResponse
+ */
+ public function report($serviceName, Google_Service_ServiceControl_ReportRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('report', array($params), "Google_Service_ServiceControl_ReportResponse");
+ }
+ /**
+ * Unlike rate quota, allocation quota does not get refilled periodically. So,
+ * it is possible that the quota usage as seen by the service differs from what
+ * the One Platform considers the usage is. This is expected to happen only
+ * rarely, but over time this can accumulate. Services can invoke
+ * StartReconciliation and EndReconciliation to correct this usage drift, as
+ * described below: 1. Service sends StartReconciliation with a timestamp in
+ * future for each metric that needs to be reconciled. The timestamp being in
+ * future allows to account for in-flight AllocateQuota and ReleaseQuota
+ * requests for the same metric. 2. One Platform records this timestamp and
+ * starts tracking subsequent AllocateQuota and ReleaseQuota requests until
+ * EndReconciliation is called. 3. At or after the time specified in the
+ * StartReconciliation, service sends EndReconciliation with the usage that
+ * needs to be reconciled to. 4. One Platform adjusts its own record of usage
+ * for that metric to the value specified in EndReconciliation by taking in
+ * to account any allocation or release between StartReconciliation and
+ * EndReconciliation.
+ *
+ * Signals the quota controller that the service wants to perform a usage
+ * reconciliation as specified in the request.
+ *
+ * This method requires the `servicemanagement.services.quota` permission on the
+ * specified service. For more information, see [Google Cloud
+ * IAM](https://cloud.google.com/iam). (services.startReconciliation)
+ *
+ * @param string $serviceName Name of the service as specified in the service
+ * configuration. For example, `"pubsub.googleapis.com"`.
+ *
+ * See google.api.Service for the definition of a service name.
+ * @param Google_Service_ServiceControl_StartReconciliationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceControl_StartReconciliationResponse
+ */
+ public function startReconciliation($serviceName, Google_Service_ServiceControl_StartReconciliationRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('startReconciliation', array($params), "Google_Service_ServiceControl_StartReconciliationResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationRequest.php
new file mode 100644
index 00000000..1bcb79af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_StartReconciliationRequest extends Google_Model
+{
+ protected $reconciliationOperationType = 'Google_Service_ServiceControl_QuotaOperation';
+ protected $reconciliationOperationDataType = '';
+ public $serviceConfigId;
+
+ public function setReconciliationOperation(Google_Service_ServiceControl_QuotaOperation $reconciliationOperation)
+ {
+ $this->reconciliationOperation = $reconciliationOperation;
+ }
+ public function getReconciliationOperation()
+ {
+ return $this->reconciliationOperation;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationResponse.php
new file mode 100644
index 00000000..5c153fd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/StartReconciliationResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_StartReconciliationResponse extends Google_Collection
+{
+ protected $collection_key = 'reconciliationErrors';
+ public $operationId;
+ protected $quotaMetricsType = 'Google_Service_ServiceControl_MetricValueSet';
+ protected $quotaMetricsDataType = 'array';
+ protected $reconciliationErrorsType = 'Google_Service_ServiceControl_QuotaError';
+ protected $reconciliationErrorsDataType = 'array';
+ public $serviceConfigId;
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuotaMetrics($quotaMetrics)
+ {
+ $this->quotaMetrics = $quotaMetrics;
+ }
+ public function getQuotaMetrics()
+ {
+ return $this->quotaMetrics;
+ }
+ public function setReconciliationErrors($reconciliationErrors)
+ {
+ $this->reconciliationErrors = $reconciliationErrors;
+ }
+ public function getReconciliationErrors()
+ {
+ return $this->reconciliationErrors;
+ }
+ public function setServiceConfigId($serviceConfigId)
+ {
+ $this->serviceConfigId = $serviceConfigId;
+ }
+ public function getServiceConfigId()
+ {
+ return $this->serviceConfigId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Status.php
new file mode 100644
index 00000000..98bf6b0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceControl/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceControl_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement.php
new file mode 100644
index 00000000..e87d359f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement.php
@@ -0,0 +1,366 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ServiceManagement (v1).
+ *
+ * <p>
+ * Google Service Management allows service producers to publish their services
+ * on Google Cloud Platform so that they can be discovered and used by service
+ * consumers.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/service-management/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ServiceManagement extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** Manage your Google API service configuration. */
+ const SERVICE_MANAGEMENT =
+ "https://www.googleapis.com/auth/service.management";
+ /** View your Google API service configuration. */
+ const SERVICE_MANAGEMENT_READONLY =
+ "https://www.googleapis.com/auth/service.management.readonly";
+
+ public $operations;
+ public $services;
+ public $services_configs;
+ public $services_rollouts;
+
+ /**
+ * Constructs the internal representation of the ServiceManagement service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://servicemanagement.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'servicemanagement';
+
+ $this->operations = new Google_Service_ServiceManagement_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->services = new Google_Service_ServiceManagement_Resource_Services(
+ $this,
+ $this->serviceName,
+ 'services',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/services',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'delete' => array(
+ 'path' => 'v1/services/{serviceName}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'disable' => array(
+ 'path' => 'v1/services/{serviceName}:disable',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'enable' => array(
+ 'path' => 'v1/services/{serviceName}:enable',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'generateConfigReport' => array(
+ 'path' => 'v1/services:generateConfigReport',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => 'v1/services/{serviceName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getConfig' => array(
+ 'path' => 'v1/services/{serviceName}/config',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'configId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/services',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'consumerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'producerProjectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'undelete' => array(
+ 'path' => 'v1/services/{serviceName}:undelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->services_configs = new Google_Service_ServiceManagement_Resource_ServicesConfigs(
+ $this,
+ $this->serviceName,
+ 'configs',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/services/{serviceName}/configs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/services/{serviceName}/configs/{configId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'configId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'view' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/services/{serviceName}/configs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'submit' => array(
+ 'path' => 'v1/services/{serviceName}/configs:submit',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->services_rollouts = new Google_Service_ServiceManagement_Resource_ServicesRollouts(
+ $this,
+ $this->serviceName,
+ 'rollouts',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/services/{serviceName}/rollouts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/services/{serviceName}/rollouts/{rolloutId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rolloutId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/services/{serviceName}/rollouts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'serviceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Advice.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Advice.php
new file mode 100644
index 00000000..ea85b5d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Advice.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Advice extends Google_Model
+{
+ public $description;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Analytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Analytics.php
new file mode 100644
index 00000000..c1f6fd09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Analytics.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Analytics extends Google_Collection
+{
+ protected $collection_key = 'producerDestinations';
+ protected $producerDestinationsType = 'Google_Service_ServiceManagement_AnalyticsDestination';
+ protected $producerDestinationsDataType = 'array';
+
+ public function setProducerDestinations($producerDestinations)
+ {
+ $this->producerDestinations = $producerDestinations;
+ }
+ public function getProducerDestinations()
+ {
+ return $this->producerDestinations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AnalyticsDestination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AnalyticsDestination.php
new file mode 100644
index 00000000..75172d5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AnalyticsDestination.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_AnalyticsDestination extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ public $metrics;
+ public $monitoredResource;
+
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setMonitoredResource($monitoredResource)
+ {
+ $this->monitoredResource = $monitoredResource;
+ }
+ public function getMonitoredResource()
+ {
+ return $this->monitoredResource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Api.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Api.php
new file mode 100644
index 00000000..029bc79a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Api.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Api extends Google_Collection
+{
+ protected $collection_key = 'options';
+ protected $methodsType = 'Google_Service_ServiceManagement_Method';
+ protected $methodsDataType = 'array';
+ protected $mixinsType = 'Google_Service_ServiceManagement_Mixin';
+ protected $mixinsDataType = 'array';
+ public $name;
+ protected $optionsType = 'Google_Service_ServiceManagement_Option';
+ protected $optionsDataType = 'array';
+ protected $sourceContextType = 'Google_Service_ServiceManagement_SourceContext';
+ protected $sourceContextDataType = '';
+ public $syntax;
+ public $version;
+
+ public function setMethods($methods)
+ {
+ $this->methods = $methods;
+ }
+ public function getMethods()
+ {
+ return $this->methods;
+ }
+ public function setMixins($mixins)
+ {
+ $this->mixins = $mixins;
+ }
+ public function getMixins()
+ {
+ return $this->mixins;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSourceContext(Google_Service_ServiceManagement_SourceContext $sourceContext)
+ {
+ $this->sourceContext = $sourceContext;
+ }
+ public function getSourceContext()
+ {
+ return $this->sourceContext;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditConfig.php
new file mode 100644
index 00000000..4b118b43
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditConfig.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_AuditConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ protected $auditLogConfigsType = 'Google_Service_ServiceManagement_AuditLogConfig';
+ protected $auditLogConfigsDataType = 'array';
+ public $exemptedMembers;
+ public $service;
+
+ public function setAuditLogConfigs($auditLogConfigs)
+ {
+ $this->auditLogConfigs = $auditLogConfigs;
+ }
+ public function getAuditLogConfigs()
+ {
+ return $this->auditLogConfigs;
+ }
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditLogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditLogConfig.php
new file mode 100644
index 00000000..7c83ca3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuditLogConfig.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_AuditLogConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ public $exemptedMembers;
+ public $logType;
+
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setLogType($logType)
+ {
+ $this->logType = $logType;
+ }
+ public function getLogType()
+ {
+ return $this->logType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthProvider.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthProvider.php
new file mode 100644
index 00000000..c88ac099
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthProvider.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_AuthProvider extends Google_Model
+{
+ public $audiences;
+ public $id;
+ public $issuer;
+ public $jwksUri;
+
+ public function setAudiences($audiences)
+ {
+ $this->audiences = $audiences;
+ }
+ public function getAudiences()
+ {
+ return $this->audiences;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIssuer($issuer)
+ {
+ $this->issuer = $issuer;
+ }
+ public function getIssuer()
+ {
+ return $this->issuer;
+ }
+ public function setJwksUri($jwksUri)
+ {
+ $this->jwksUri = $jwksUri;
+ }
+ public function getJwksUri()
+ {
+ return $this->jwksUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthRequirement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthRequirement.php
new file mode 100644
index 00000000..6ab3b963
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthRequirement.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_AuthRequirement extends Google_Model
+{
+ public $audiences;
+ public $providerId;
+
+ public function setAudiences($audiences)
+ {
+ $this->audiences = $audiences;
+ }
+ public function getAudiences()
+ {
+ return $this->audiences;
+ }
+ public function setProviderId($providerId)
+ {
+ $this->providerId = $providerId;
+ }
+ public function getProviderId()
+ {
+ return $this->providerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Authentication.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Authentication.php
new file mode 100644
index 00000000..01962ef2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Authentication.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Authentication extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $providersType = 'Google_Service_ServiceManagement_AuthProvider';
+ protected $providersDataType = 'array';
+ protected $rulesType = 'Google_Service_ServiceManagement_AuthenticationRule';
+ protected $rulesDataType = 'array';
+
+ public function setProviders($providers)
+ {
+ $this->providers = $providers;
+ }
+ public function getProviders()
+ {
+ return $this->providers;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php
new file mode 100644
index 00000000..f24ae16d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthenticationRule.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_AuthenticationRule extends Google_Collection
+{
+ protected $collection_key = 'requirements';
+ public $allowWithoutCredential;
+ protected $oauthType = 'Google_Service_ServiceManagement_OAuthRequirements';
+ protected $oauthDataType = '';
+ protected $requirementsType = 'Google_Service_ServiceManagement_AuthRequirement';
+ protected $requirementsDataType = 'array';
+ public $selector;
+
+ public function setAllowWithoutCredential($allowWithoutCredential)
+ {
+ $this->allowWithoutCredential = $allowWithoutCredential;
+ }
+ public function getAllowWithoutCredential()
+ {
+ return $this->allowWithoutCredential;
+ }
+ public function setOauth(Google_Service_ServiceManagement_OAuthRequirements $oauth)
+ {
+ $this->oauth = $oauth;
+ }
+ public function getOauth()
+ {
+ return $this->oauth;
+ }
+ public function setRequirements($requirements)
+ {
+ $this->requirements = $requirements;
+ }
+ public function getRequirements()
+ {
+ return $this->requirements;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthorizationConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthorizationConfig.php
new file mode 100644
index 00000000..e565cdb9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/AuthorizationConfig.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_AuthorizationConfig extends Google_Model
+{
+ public $provider;
+
+ public function setProvider($provider)
+ {
+ $this->provider = $provider;
+ }
+ public function getProvider()
+ {
+ return $this->provider;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Backend.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Backend.php
new file mode 100644
index 00000000..f472c079
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Backend.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Backend extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceManagement_BackendRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php
new file mode 100644
index 00000000..02b0c65c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/BackendRule.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_BackendRule extends Google_Model
+{
+ public $address;
+ public $deadline;
+ public $selector;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setDeadline($deadline)
+ {
+ $this->deadline = $deadline;
+ }
+ public function getDeadline()
+ {
+ return $this->deadline;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php
new file mode 100644
index 00000000..653a8442
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ChangeReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ChangeReport.php
new file mode 100644
index 00000000..356d282c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ChangeReport.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ChangeReport extends Google_Collection
+{
+ protected $collection_key = 'configChanges';
+ protected $configChangesType = 'Google_Service_ServiceManagement_ConfigChange';
+ protected $configChangesDataType = 'array';
+
+ public function setConfigChanges($configChanges)
+ {
+ $this->configChanges = $configChanges;
+ }
+ public function getConfigChanges()
+ {
+ return $this->configChanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CloudAuditOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CloudAuditOptions.php
new file mode 100644
index 00000000..348d6b83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CloudAuditOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_CloudAuditOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Condition.php
new file mode 100644
index 00000000..594dfe8d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Condition.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Condition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $iam;
+ public $op;
+ public $svc;
+ public $sys;
+ public $value;
+ public $values;
+
+ public function setIam($iam)
+ {
+ $this->iam = $iam;
+ }
+ public function getIam()
+ {
+ return $this->iam;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setSvc($svc)
+ {
+ $this->svc = $svc;
+ }
+ public function getSvc()
+ {
+ return $this->svc;
+ }
+ public function setSys($sys)
+ {
+ $this->sys = $sys;
+ }
+ public function getSys()
+ {
+ return $this->sys;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigChange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigChange.php
new file mode 100644
index 00000000..e360f097
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigChange.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ConfigChange extends Google_Collection
+{
+ protected $collection_key = 'advices';
+ protected $advicesType = 'Google_Service_ServiceManagement_Advice';
+ protected $advicesDataType = 'array';
+ public $changeType;
+ public $element;
+ public $newValue;
+ public $oldValue;
+
+ public function setAdvices($advices)
+ {
+ $this->advices = $advices;
+ }
+ public function getAdvices()
+ {
+ return $this->advices;
+ }
+ public function setChangeType($changeType)
+ {
+ $this->changeType = $changeType;
+ }
+ public function getChangeType()
+ {
+ return $this->changeType;
+ }
+ public function setElement($element)
+ {
+ $this->element = $element;
+ }
+ public function getElement()
+ {
+ return $this->element;
+ }
+ public function setNewValue($newValue)
+ {
+ $this->newValue = $newValue;
+ }
+ public function getNewValue()
+ {
+ return $this->newValue;
+ }
+ public function setOldValue($oldValue)
+ {
+ $this->oldValue = $oldValue;
+ }
+ public function getOldValue()
+ {
+ return $this->oldValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigFile.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigFile.php
new file mode 100644
index 00000000..b34518cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigFile.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ConfigFile extends Google_Model
+{
+ public $fileContents;
+ public $filePath;
+ public $fileType;
+
+ public function setFileContents($fileContents)
+ {
+ $this->fileContents = $fileContents;
+ }
+ public function getFileContents()
+ {
+ return $this->fileContents;
+ }
+ public function setFilePath($filePath)
+ {
+ $this->filePath = $filePath;
+ }
+ public function getFilePath()
+ {
+ return $this->filePath;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigOptions.php
new file mode 100644
index 00000000..53a13c72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ConfigOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigRef.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigRef.php
new file mode 100644
index 00000000..510564d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigRef.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ConfigRef extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigSource.php
new file mode 100644
index 00000000..312da61d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ConfigSource.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ConfigSource extends Google_Collection
+{
+ protected $collection_key = 'files';
+ protected $filesType = 'Google_Service_ServiceManagement_ConfigFile';
+ protected $filesDataType = 'array';
+ public $id;
+
+ public function setFiles($files)
+ {
+ $this->files = $files;
+ }
+ public function getFiles()
+ {
+ return $this->files;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Context.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Context.php
new file mode 100644
index 00000000..d0fb9e36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Context.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Context extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceManagement_ContextRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ContextRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ContextRule.php
new file mode 100644
index 00000000..3d58609d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ContextRule.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ContextRule extends Google_Collection
+{
+ protected $collection_key = 'requested';
+ public $provided;
+ public $requested;
+ public $selector;
+
+ public function setProvided($provided)
+ {
+ $this->provided = $provided;
+ }
+ public function getProvided()
+ {
+ return $this->provided;
+ }
+ public function setRequested($requested)
+ {
+ $this->requested = $requested;
+ }
+ public function getRequested()
+ {
+ return $this->requested;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Control.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Control.php
new file mode 100644
index 00000000..cd384856
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Control.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Control extends Google_Model
+{
+ public $environment;
+
+ public function setEnvironment($environment)
+ {
+ $this->environment = $environment;
+ }
+ public function getEnvironment()
+ {
+ return $this->environment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CounterOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CounterOptions.php
new file mode 100644
index 00000000..e9887b08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CounterOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_CounterOptions extends Google_Model
+{
+ public $field;
+ public $metric;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomError.php
new file mode 100644
index 00000000..3cdf5f1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomError.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_CustomError extends Google_Collection
+{
+ protected $collection_key = 'types';
+ protected $rulesType = 'Google_Service_ServiceManagement_CustomErrorRule';
+ protected $rulesDataType = 'array';
+ public $types;
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomErrorRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomErrorRule.php
new file mode 100644
index 00000000..4335060c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomErrorRule.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_CustomErrorRule extends Google_Model
+{
+ public $isErrorType;
+ public $selector;
+
+ public function setIsErrorType($isErrorType)
+ {
+ $this->isErrorType = $isErrorType;
+ }
+ public function getIsErrorType()
+ {
+ return $this->isErrorType;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomHttpPattern.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomHttpPattern.php
new file mode 100644
index 00000000..864728cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/CustomHttpPattern.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_CustomHttpPattern extends Google_Model
+{
+ public $kind;
+ public $path;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DataAccessOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DataAccessOptions.php
new file mode 100644
index 00000000..e3255d92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DataAccessOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_DataAccessOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DeleteServiceStrategy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DeleteServiceStrategy.php
new file mode 100644
index 00000000..d3175953
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DeleteServiceStrategy.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_DeleteServiceStrategy extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Diagnostic.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Diagnostic.php
new file mode 100644
index 00000000..07049e4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Diagnostic.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Diagnostic extends Google_Model
+{
+ public $kind;
+ public $location;
+ public $message;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DisableServiceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DisableServiceRequest.php
new file mode 100644
index 00000000..642c07dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DisableServiceRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_DisableServiceRequest extends Google_Model
+{
+ public $consumerId;
+
+ public function setConsumerId($consumerId)
+ {
+ $this->consumerId = $consumerId;
+ }
+ public function getConsumerId()
+ {
+ return $this->consumerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Documentation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Documentation.php
new file mode 100644
index 00000000..0815b6b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Documentation.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Documentation extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ public $documentationRootUrl;
+ public $overview;
+ protected $pagesType = 'Google_Service_ServiceManagement_Page';
+ protected $pagesDataType = 'array';
+ protected $rulesType = 'Google_Service_ServiceManagement_DocumentationRule';
+ protected $rulesDataType = 'array';
+ public $summary;
+
+ public function setDocumentationRootUrl($documentationRootUrl)
+ {
+ $this->documentationRootUrl = $documentationRootUrl;
+ }
+ public function getDocumentationRootUrl()
+ {
+ return $this->documentationRootUrl;
+ }
+ public function setOverview($overview)
+ {
+ $this->overview = $overview;
+ }
+ public function getOverview()
+ {
+ return $this->overview;
+ }
+ public function setPages($pages)
+ {
+ $this->pages = $pages;
+ }
+ public function getPages()
+ {
+ return $this->pages;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DocumentationRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DocumentationRule.php
new file mode 100644
index 00000000..be1dddb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/DocumentationRule.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_DocumentationRule extends Google_Model
+{
+ public $deprecationDescription;
+ public $description;
+ public $selector;
+
+ public function setDeprecationDescription($deprecationDescription)
+ {
+ $this->deprecationDescription = $deprecationDescription;
+ }
+ public function getDeprecationDescription()
+ {
+ return $this->deprecationDescription;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnableServiceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnableServiceRequest.php
new file mode 100644
index 00000000..a220199a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnableServiceRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_EnableServiceRequest extends Google_Model
+{
+ public $consumerId;
+
+ public function setConsumerId($consumerId)
+ {
+ $this->consumerId = $consumerId;
+ }
+ public function getConsumerId()
+ {
+ return $this->consumerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Endpoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Endpoint.php
new file mode 100644
index 00000000..428b6e1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Endpoint.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Endpoint extends Google_Collection
+{
+ protected $collection_key = 'features';
+ public $aliases;
+ public $allowCors;
+ public $apis;
+ public $features;
+ public $name;
+
+ public function setAliases($aliases)
+ {
+ $this->aliases = $aliases;
+ }
+ public function getAliases()
+ {
+ return $this->aliases;
+ }
+ public function setAllowCors($allowCors)
+ {
+ $this->allowCors = $allowCors;
+ }
+ public function getAllowCors()
+ {
+ return $this->allowCors;
+ }
+ public function setApis($apis)
+ {
+ $this->apis = $apis;
+ }
+ public function getApis()
+ {
+ return $this->apis;
+ }
+ public function setFeatures($features)
+ {
+ $this->features = $features;
+ }
+ public function getFeatures()
+ {
+ return $this->features;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Enum.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Enum.php
new file mode 100644
index 00000000..2791e8f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Enum.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Enum extends Google_Collection
+{
+ protected $collection_key = 'options';
+ protected $enumvalueType = 'Google_Service_ServiceManagement_EnumValue';
+ protected $enumvalueDataType = 'array';
+ public $name;
+ protected $optionsType = 'Google_Service_ServiceManagement_Option';
+ protected $optionsDataType = 'array';
+ protected $sourceContextType = 'Google_Service_ServiceManagement_SourceContext';
+ protected $sourceContextDataType = '';
+ public $syntax;
+
+ public function setEnumvalue($enumvalue)
+ {
+ $this->enumvalue = $enumvalue;
+ }
+ public function getEnumvalue()
+ {
+ return $this->enumvalue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSourceContext(Google_Service_ServiceManagement_SourceContext $sourceContext)
+ {
+ $this->sourceContext = $sourceContext;
+ }
+ public function getSourceContext()
+ {
+ return $this->sourceContext;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnumValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnumValue.php
new file mode 100644
index 00000000..50d5d481
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/EnumValue.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_EnumValue extends Google_Collection
+{
+ protected $collection_key = 'options';
+ public $name;
+ public $number;
+ protected $optionsType = 'Google_Service_ServiceManagement_Option';
+ protected $optionsDataType = 'array';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Experimental.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Experimental.php
new file mode 100644
index 00000000..cd26e618
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Experimental.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Experimental extends Google_Model
+{
+ protected $authorizationType = 'Google_Service_ServiceManagement_AuthorizationConfig';
+ protected $authorizationDataType = '';
+
+ public function setAuthorization(Google_Service_ServiceManagement_AuthorizationConfig $authorization)
+ {
+ $this->authorization = $authorization;
+ }
+ public function getAuthorization()
+ {
+ return $this->authorization;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Field.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Field.php
new file mode 100644
index 00000000..bb7ba6fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Field.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Field extends Google_Collection
+{
+ protected $collection_key = 'options';
+ public $cardinality;
+ public $defaultValue;
+ public $jsonName;
+ public $kind;
+ public $name;
+ public $number;
+ public $oneofIndex;
+ protected $optionsType = 'Google_Service_ServiceManagement_Option';
+ protected $optionsDataType = 'array';
+ public $packed;
+ public $typeUrl;
+
+ public function setCardinality($cardinality)
+ {
+ $this->cardinality = $cardinality;
+ }
+ public function getCardinality()
+ {
+ return $this->cardinality;
+ }
+ public function setDefaultValue($defaultValue)
+ {
+ $this->defaultValue = $defaultValue;
+ }
+ public function getDefaultValue()
+ {
+ return $this->defaultValue;
+ }
+ public function setJsonName($jsonName)
+ {
+ $this->jsonName = $jsonName;
+ }
+ public function getJsonName()
+ {
+ return $this->jsonName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setOneofIndex($oneofIndex)
+ {
+ $this->oneofIndex = $oneofIndex;
+ }
+ public function getOneofIndex()
+ {
+ return $this->oneofIndex;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setPacked($packed)
+ {
+ $this->packed = $packed;
+ }
+ public function getPacked()
+ {
+ return $this->packed;
+ }
+ public function setTypeUrl($typeUrl)
+ {
+ $this->typeUrl = $typeUrl;
+ }
+ public function getTypeUrl()
+ {
+ return $this->typeUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportRequest.php
new file mode 100644
index 00000000..69b2b040
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_GenerateConfigReportRequest extends Google_Model
+{
+ public $newConfig;
+ public $oldConfig;
+
+ public function setNewConfig($newConfig)
+ {
+ $this->newConfig = $newConfig;
+ }
+ public function getNewConfig()
+ {
+ return $this->newConfig;
+ }
+ public function setOldConfig($oldConfig)
+ {
+ $this->oldConfig = $oldConfig;
+ }
+ public function getOldConfig()
+ {
+ return $this->oldConfig;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportResponse.php
new file mode 100644
index 00000000..29f74874
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GenerateConfigReportResponse.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_GenerateConfigReportResponse extends Google_Collection
+{
+ protected $collection_key = 'diagnostics';
+ protected $changeReportsType = 'Google_Service_ServiceManagement_ChangeReport';
+ protected $changeReportsDataType = 'array';
+ protected $diagnosticsType = 'Google_Service_ServiceManagement_Diagnostic';
+ protected $diagnosticsDataType = 'array';
+ public $id;
+ public $serviceName;
+
+ public function setChangeReports($changeReports)
+ {
+ $this->changeReports = $changeReports;
+ }
+ public function getChangeReports()
+ {
+ return $this->changeReports;
+ }
+ public function setDiagnostics($diagnostics)
+ {
+ $this->diagnostics = $diagnostics;
+ }
+ public function getDiagnostics()
+ {
+ return $this->diagnostics;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setServiceName($serviceName)
+ {
+ $this->serviceName = $serviceName;
+ }
+ public function getServiceName()
+ {
+ return $this->serviceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GetIamPolicyRequest.php
new file mode 100644
index 00000000..9424ea28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/GetIamPolicyRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_GetIamPolicyRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Http.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Http.php
new file mode 100644
index 00000000..52ddbab3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Http.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Http extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceManagement_HttpRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php
new file mode 100644
index 00000000..f020e39c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/HttpRule.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_HttpRule extends Google_Collection
+{
+ protected $collection_key = 'additionalBindings';
+ protected $additionalBindingsType = 'Google_Service_ServiceManagement_HttpRule';
+ protected $additionalBindingsDataType = 'array';
+ public $body;
+ protected $customType = 'Google_Service_ServiceManagement_CustomHttpPattern';
+ protected $customDataType = '';
+ public $delete;
+ public $get;
+ protected $mediaDownloadType = 'Google_Service_ServiceManagement_MediaDownload';
+ protected $mediaDownloadDataType = '';
+ protected $mediaUploadType = 'Google_Service_ServiceManagement_MediaUpload';
+ protected $mediaUploadDataType = '';
+ public $patch;
+ public $post;
+ public $put;
+ public $responseBody;
+ public $selector;
+
+ public function setAdditionalBindings($additionalBindings)
+ {
+ $this->additionalBindings = $additionalBindings;
+ }
+ public function getAdditionalBindings()
+ {
+ return $this->additionalBindings;
+ }
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setCustom(Google_Service_ServiceManagement_CustomHttpPattern $custom)
+ {
+ $this->custom = $custom;
+ }
+ public function getCustom()
+ {
+ return $this->custom;
+ }
+ public function setDelete($delete)
+ {
+ $this->delete = $delete;
+ }
+ public function getDelete()
+ {
+ return $this->delete;
+ }
+ public function setGet($get)
+ {
+ $this->get = $get;
+ }
+ public function getGet()
+ {
+ return $this->get;
+ }
+ public function setMediaDownload(Google_Service_ServiceManagement_MediaDownload $mediaDownload)
+ {
+ $this->mediaDownload = $mediaDownload;
+ }
+ public function getMediaDownload()
+ {
+ return $this->mediaDownload;
+ }
+ public function setMediaUpload(Google_Service_ServiceManagement_MediaUpload $mediaUpload)
+ {
+ $this->mediaUpload = $mediaUpload;
+ }
+ public function getMediaUpload()
+ {
+ return $this->mediaUpload;
+ }
+ public function setPatch($patch)
+ {
+ $this->patch = $patch;
+ }
+ public function getPatch()
+ {
+ return $this->patch;
+ }
+ public function setPost($post)
+ {
+ $this->post = $post;
+ }
+ public function getPost()
+ {
+ return $this->post;
+ }
+ public function setPut($put)
+ {
+ $this->put = $put;
+ }
+ public function getPut()
+ {
+ return $this->put;
+ }
+ public function setResponseBody($responseBody)
+ {
+ $this->responseBody = $responseBody;
+ }
+ public function getResponseBody()
+ {
+ return $this->responseBody;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LabelDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LabelDescriptor.php
new file mode 100644
index 00000000..82d3f600
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LabelDescriptor.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_LabelDescriptor extends Google_Model
+{
+ public $description;
+ public $key;
+ public $valueType;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListOperationsResponse.php
new file mode 100644
index 00000000..0065fb0b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_ServiceManagement_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceConfigsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceConfigsResponse.php
new file mode 100644
index 00000000..cb40067c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceConfigsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ListServiceConfigsResponse extends Google_Collection
+{
+ protected $collection_key = 'serviceConfigs';
+ public $nextPageToken;
+ protected $serviceConfigsType = 'Google_Service_ServiceManagement_Service';
+ protected $serviceConfigsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setServiceConfigs($serviceConfigs)
+ {
+ $this->serviceConfigs = $serviceConfigs;
+ }
+ public function getServiceConfigs()
+ {
+ return $this->serviceConfigs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceRolloutsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceRolloutsResponse.php
new file mode 100644
index 00000000..f3362657
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServiceRolloutsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ListServiceRolloutsResponse extends Google_Collection
+{
+ protected $collection_key = 'rollouts';
+ public $nextPageToken;
+ protected $rolloutsType = 'Google_Service_ServiceManagement_Rollout';
+ protected $rolloutsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setRollouts($rollouts)
+ {
+ $this->rollouts = $rollouts;
+ }
+ public function getRollouts()
+ {
+ return $this->rollouts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServicesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServicesResponse.php
new file mode 100644
index 00000000..d71d5236
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ListServicesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ListServicesResponse extends Google_Collection
+{
+ protected $collection_key = 'services';
+ public $nextPageToken;
+ protected $servicesType = 'Google_Service_ServiceManagement_ManagedService';
+ protected $servicesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogConfig.php
new file mode 100644
index 00000000..e56803a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogConfig.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_LogConfig extends Google_Model
+{
+ protected $cloudAuditType = 'Google_Service_ServiceManagement_CloudAuditOptions';
+ protected $cloudAuditDataType = '';
+ protected $counterType = 'Google_Service_ServiceManagement_CounterOptions';
+ protected $counterDataType = '';
+ protected $dataAccessType = 'Google_Service_ServiceManagement_DataAccessOptions';
+ protected $dataAccessDataType = '';
+
+ public function setCloudAudit(Google_Service_ServiceManagement_CloudAuditOptions $cloudAudit)
+ {
+ $this->cloudAudit = $cloudAudit;
+ }
+ public function getCloudAudit()
+ {
+ return $this->cloudAudit;
+ }
+ public function setCounter(Google_Service_ServiceManagement_CounterOptions $counter)
+ {
+ $this->counter = $counter;
+ }
+ public function getCounter()
+ {
+ return $this->counter;
+ }
+ public function setDataAccess(Google_Service_ServiceManagement_DataAccessOptions $dataAccess)
+ {
+ $this->dataAccess = $dataAccess;
+ }
+ public function getDataAccess()
+ {
+ return $this->dataAccess;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogDescriptor.php
new file mode 100644
index 00000000..6c1f9bac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LogDescriptor.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_LogDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_ServiceManagement_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $name;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Logging.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Logging.php
new file mode 100644
index 00000000..6fb5798a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Logging.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Logging extends Google_Collection
+{
+ protected $collection_key = 'producerDestinations';
+ protected $consumerDestinationsType = 'Google_Service_ServiceManagement_LoggingDestination';
+ protected $consumerDestinationsDataType = 'array';
+ protected $producerDestinationsType = 'Google_Service_ServiceManagement_LoggingDestination';
+ protected $producerDestinationsDataType = 'array';
+
+ public function setConsumerDestinations($consumerDestinations)
+ {
+ $this->consumerDestinations = $consumerDestinations;
+ }
+ public function getConsumerDestinations()
+ {
+ return $this->consumerDestinations;
+ }
+ public function setProducerDestinations($producerDestinations)
+ {
+ $this->producerDestinations = $producerDestinations;
+ }
+ public function getProducerDestinations()
+ {
+ return $this->producerDestinations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LoggingDestination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LoggingDestination.php
new file mode 100644
index 00000000..9a2138c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/LoggingDestination.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_LoggingDestination extends Google_Collection
+{
+ protected $collection_key = 'logs';
+ public $logs;
+ public $monitoredResource;
+
+ public function setLogs($logs)
+ {
+ $this->logs = $logs;
+ }
+ public function getLogs()
+ {
+ return $this->logs;
+ }
+ public function setMonitoredResource($monitoredResource)
+ {
+ $this->monitoredResource = $monitoredResource;
+ }
+ public function getMonitoredResource()
+ {
+ return $this->monitoredResource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ManagedService.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ManagedService.php
new file mode 100644
index 00000000..4f15460e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/ManagedService.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_ManagedService extends Google_Model
+{
+ public $producerProjectId;
+ public $serviceName;
+
+ public function setProducerProjectId($producerProjectId)
+ {
+ $this->producerProjectId = $producerProjectId;
+ }
+ public function getProducerProjectId()
+ {
+ return $this->producerProjectId;
+ }
+ public function setServiceName($serviceName)
+ {
+ $this->serviceName = $serviceName;
+ }
+ public function getServiceName()
+ {
+ return $this->serviceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaDownload.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaDownload.php
new file mode 100644
index 00000000..864a9a78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaDownload.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_MediaDownload extends Google_Model
+{
+ public $downloadService;
+ public $enabled;
+
+ public function setDownloadService($downloadService)
+ {
+ $this->downloadService = $downloadService;
+ }
+ public function getDownloadService()
+ {
+ return $this->downloadService;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaUpload.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaUpload.php
new file mode 100644
index 00000000..467cabef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MediaUpload.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_MediaUpload extends Google_Model
+{
+ public $enabled;
+ public $uploadService;
+
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setUploadService($uploadService)
+ {
+ $this->uploadService = $uploadService;
+ }
+ public function getUploadService()
+ {
+ return $this->uploadService;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Method.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Method.php
new file mode 100644
index 00000000..c1e6a66f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Method.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Method extends Google_Collection
+{
+ protected $collection_key = 'options';
+ public $name;
+ protected $optionsType = 'Google_Service_ServiceManagement_Option';
+ protected $optionsDataType = 'array';
+ public $requestStreaming;
+ public $requestTypeUrl;
+ public $responseStreaming;
+ public $responseTypeUrl;
+ public $syntax;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setRequestStreaming($requestStreaming)
+ {
+ $this->requestStreaming = $requestStreaming;
+ }
+ public function getRequestStreaming()
+ {
+ return $this->requestStreaming;
+ }
+ public function setRequestTypeUrl($requestTypeUrl)
+ {
+ $this->requestTypeUrl = $requestTypeUrl;
+ }
+ public function getRequestTypeUrl()
+ {
+ return $this->requestTypeUrl;
+ }
+ public function setResponseStreaming($responseStreaming)
+ {
+ $this->responseStreaming = $responseStreaming;
+ }
+ public function getResponseStreaming()
+ {
+ return $this->responseStreaming;
+ }
+ public function setResponseTypeUrl($responseTypeUrl)
+ {
+ $this->responseTypeUrl = $responseTypeUrl;
+ }
+ public function getResponseTypeUrl()
+ {
+ return $this->responseTypeUrl;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php
new file mode 100644
index 00000000..c269d902
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MetricDescriptor.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_MetricDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_ServiceManagement_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $metricKind;
+ public $name;
+ public $type;
+ public $unit;
+ public $valueType;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setMetricKind($metricKind)
+ {
+ $this->metricKind = $metricKind;
+ }
+ public function getMetricKind()
+ {
+ return $this->metricKind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Mixin.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Mixin.php
new file mode 100644
index 00000000..fd3ed06d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Mixin.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Mixin extends Google_Model
+{
+ public $name;
+ public $root;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRoot($root)
+ {
+ $this->root = $root;
+ }
+ public function getRoot()
+ {
+ return $this->root;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoredResourceDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoredResourceDescriptor.php
new file mode 100644
index 00000000..8852c0ae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoredResourceDescriptor.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_MonitoredResourceDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_ServiceManagement_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $name;
+ public $type;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Monitoring.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Monitoring.php
new file mode 100644
index 00000000..fab80287
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Monitoring.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Monitoring extends Google_Collection
+{
+ protected $collection_key = 'producerDestinations';
+ protected $consumerDestinationsType = 'Google_Service_ServiceManagement_MonitoringDestination';
+ protected $consumerDestinationsDataType = 'array';
+ protected $producerDestinationsType = 'Google_Service_ServiceManagement_MonitoringDestination';
+ protected $producerDestinationsDataType = 'array';
+
+ public function setConsumerDestinations($consumerDestinations)
+ {
+ $this->consumerDestinations = $consumerDestinations;
+ }
+ public function getConsumerDestinations()
+ {
+ return $this->consumerDestinations;
+ }
+ public function setProducerDestinations($producerDestinations)
+ {
+ $this->producerDestinations = $producerDestinations;
+ }
+ public function getProducerDestinations()
+ {
+ return $this->producerDestinations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoringDestination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoringDestination.php
new file mode 100644
index 00000000..06ee909d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/MonitoringDestination.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_MonitoringDestination extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ public $metrics;
+ public $monitoredResource;
+
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setMonitoredResource($monitoredResource)
+ {
+ $this->monitoredResource = $monitoredResource;
+ }
+ public function getMonitoredResource()
+ {
+ return $this->monitoredResource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OAuthRequirements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OAuthRequirements.php
new file mode 100644
index 00000000..1d75e701
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OAuthRequirements.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_OAuthRequirements extends Google_Model
+{
+ public $canonicalScopes;
+
+ public function setCanonicalScopes($canonicalScopes)
+ {
+ $this->canonicalScopes = $canonicalScopes;
+ }
+ public function getCanonicalScopes()
+ {
+ return $this->canonicalScopes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Operation.php
new file mode 100644
index 00000000..c1e9a914
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_ServiceManagement_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_ServiceManagement_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OperationMetadata.php
new file mode 100644
index 00000000..d77bd9de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/OperationMetadata.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_OperationMetadata extends Google_Collection
+{
+ protected $collection_key = 'steps';
+ public $progressPercentage;
+ public $resourceNames;
+ public $startTime;
+ protected $stepsType = 'Google_Service_ServiceManagement_Step';
+ protected $stepsDataType = 'array';
+
+ public function setProgressPercentage($progressPercentage)
+ {
+ $this->progressPercentage = $progressPercentage;
+ }
+ public function getProgressPercentage()
+ {
+ return $this->progressPercentage;
+ }
+ public function setResourceNames($resourceNames)
+ {
+ $this->resourceNames = $resourceNames;
+ }
+ public function getResourceNames()
+ {
+ return $this->resourceNames;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Option.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Option.php
new file mode 100644
index 00000000..00ad2eb5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Option.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Option extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Page.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Page.php
new file mode 100644
index 00000000..ab37f03c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Page.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Page extends Google_Collection
+{
+ protected $collection_key = 'subpages';
+ public $content;
+ public $name;
+ protected $subpagesType = 'Google_Service_ServiceManagement_Page';
+ protected $subpagesDataType = 'array';
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubpages($subpages)
+ {
+ $this->subpages = $subpages;
+ }
+ public function getSubpages()
+ {
+ return $this->subpages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Policy.php
new file mode 100644
index 00000000..5890f138
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Policy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Policy extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $auditConfigsType = 'Google_Service_ServiceManagement_AuditConfig';
+ protected $auditConfigsDataType = 'array';
+ protected $bindingsType = 'Google_Service_ServiceManagement_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $iamOwned;
+ protected $rulesType = 'Google_Service_ServiceManagement_Rule';
+ protected $rulesDataType = 'array';
+ public $version;
+
+ public function setAuditConfigs($auditConfigs)
+ {
+ $this->auditConfigs = $auditConfigs;
+ }
+ public function getAuditConfigs()
+ {
+ return $this->auditConfigs;
+ }
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIamOwned($iamOwned)
+ {
+ $this->iamOwned = $iamOwned;
+ }
+ public function getIamOwned()
+ {
+ return $this->iamOwned;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Operations.php
new file mode 100644
index 00000000..0ea5492e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Operations.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $servicemanagementService = new Google_Service_ServiceManagement(...);
+ * $operations = $servicemanagementService->operations;
+ * </code>
+ */
+class Google_Service_ServiceManagement_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @return Google_Service_ServiceManagement_ListOperationsResponse
+ */
+ public function listOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ServiceManagement_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php
new file mode 100644
index 00000000..374aeceb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/Services.php
@@ -0,0 +1,265 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "services" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $servicemanagementService = new Google_Service_ServiceManagement(...);
+ * $services = $servicemanagementService->services;
+ * </code>
+ */
+class Google_Service_ServiceManagement_Resource_Services extends Google_Service_Resource
+{
+ /**
+ * Creates a new managed service. Please note one producer project can own no
+ * more than 20 services.
+ *
+ * Operation (services.create)
+ *
+ * @param Google_Service_ServiceManagement_ManagedService $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function create(Google_Service_ServiceManagement_ManagedService $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+ /**
+ * Deletes a managed service. This method will change the service to the `Soft-
+ * Delete` state for 30 days. Within this period, service producers may call
+ * UndeleteService to restore the service. After 30 days, the service will be
+ * permanently deleted.
+ *
+ * Operation (services.delete)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function delete($serviceName, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+ /**
+ * Disables a service for a project, so it can no longer be be used for the
+ * project. It prevents accidental usage that may cause unexpected billing
+ * charges or security leaks.
+ *
+ * Operation (services.disable)
+ *
+ * @param string $serviceName Name of the service to disable. Specifying an
+ * unknown service name will cause the request to fail.
+ * @param Google_Service_ServiceManagement_DisableServiceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function disable($serviceName, Google_Service_ServiceManagement_DisableServiceRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('disable', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+ /**
+ * Enables a service for a project, so it can be used for the project. See
+ * [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for more
+ * information.
+ *
+ * Operation (services.enable)
+ *
+ * @param string $serviceName Name of the service to enable. Specifying an
+ * unknown service name will cause the request to fail.
+ * @param Google_Service_ServiceManagement_EnableServiceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function enable($serviceName, Google_Service_ServiceManagement_EnableServiceRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('enable', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+ /**
+ * Generates and returns a report (errors, warnings and changes from existing
+ * configurations) associated with GenerateConfigReportRequest.new_value
+ *
+ * If GenerateConfigReportRequest.old_value is specified,
+ * GenerateConfigReportRequest will contain a single ChangeReport based on the
+ * comparison between GenerateConfigReportRequest.new_value and
+ * GenerateConfigReportRequest.old_value. If
+ * GenerateConfigReportRequest.old_value is not specified, this method will
+ * compare GenerateConfigReportRequest.new_value with the last pushed service
+ * configuration. (services.generateConfigReport)
+ *
+ * @param Google_Service_ServiceManagement_GenerateConfigReportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_GenerateConfigReportResponse
+ */
+ public function generateConfigReport(Google_Service_ServiceManagement_GenerateConfigReportRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('generateConfigReport', array($params), "Google_Service_ServiceManagement_GenerateConfigReportResponse");
+ }
+ /**
+ * Gets a managed service. Authentication is required unless the service is
+ * public. (services.get)
+ *
+ * @param string $serviceName The name of the service. See the `ServiceManager`
+ * overview for naming requirements. For example: `example.googleapis.com`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_ManagedService
+ */
+ public function get($serviceName, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ServiceManagement_ManagedService");
+ }
+ /**
+ * Gets a service configuration (version) for a managed service.
+ * (services.getConfig)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string configId The id of the service configuration resource.
+ * @opt_param string view Specifies which parts of the Service Config should be
+ * returned in the response.
+ * @return Google_Service_ServiceManagement_Service
+ */
+ public function getConfig($serviceName, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('getConfig', array($params), "Google_Service_ServiceManagement_Service");
+ }
+ /**
+ * Gets the access control policy for a resource. Returns an empty policy if the
+ * resource exists and does not have a policy set. (services.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * requested. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_ServiceManagement_GetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Policy
+ */
+ public function getIamPolicy($resource, Google_Service_ServiceManagement_GetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_ServiceManagement_Policy");
+ }
+ /**
+ * Lists managed services.
+ *
+ * Returns all public services. For authenticated users, also returns all
+ * services the calling user has "servicemanagement.services.get" permission
+ * for.
+ *
+ * **BETA:** If the caller specifies the `consumer_id`, it returns only the
+ * services enabled on the consumer. The `consumer_id` must have the format of
+ * "project:{PROJECT-ID}". (services.listServices)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string consumerId Include services consumed by the specified
+ * consumer.
+ *
+ * The Google Service Management implementation accepts the following forms: -
+ * project:
+ * @opt_param string pageToken Token identifying which result to start with;
+ * returned by a previous list call.
+ * @opt_param int pageSize Requested size of the next page of data.
+ * @opt_param string producerProjectId Include services produced by the
+ * specified project.
+ * @return Google_Service_ServiceManagement_ListServicesResponse
+ */
+ public function listServices($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ServiceManagement_ListServicesResponse");
+ }
+ /**
+ * Sets the access control policy on the specified resource. Replaces any
+ * existing policy. (services.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy is being
+ * specified. See the operation documentation for the appropriate value for this
+ * field.
+ * @param Google_Service_ServiceManagement_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_ServiceManagement_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_ServiceManagement_Policy");
+ }
+ /**
+ * Returns permissions that a caller has on the specified resource. If the
+ * resource does not exist, this will return an empty set of permissions, not a
+ * NOT_FOUND error.
+ *
+ * Note: This operation is designed to be used for building permission-aware UIs
+ * and command-line tools, not for authorization checking. This operation may
+ * "fail open" without warning. (services.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The resource for which the policy detail is
+ * being requested. See the operation documentation for the appropriate value
+ * for this field.
+ * @param Google_Service_ServiceManagement_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_ServiceManagement_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_ServiceManagement_TestIamPermissionsResponse");
+ }
+ /**
+ * Revives a previously deleted managed service. The method restores the service
+ * using the configuration at the time the service was deleted. The target
+ * service must exist and must have been deleted within the last 30 days.
+ *
+ * Operation (services.undelete)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function undelete($serviceName, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('undelete', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php
new file mode 100644
index 00000000..0dac08dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesConfigs.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "configs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $servicemanagementService = new Google_Service_ServiceManagement(...);
+ * $configs = $servicemanagementService->configs;
+ * </code>
+ */
+class Google_Service_ServiceManagement_Resource_ServicesConfigs extends Google_Service_Resource
+{
+ /**
+ * Creates a new service configuration (version) for a managed service. This
+ * method only stores the service configuration. To roll out the service
+ * configuration to backend systems please call CreateServiceRollout.
+ * (configs.create)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param Google_Service_ServiceManagement_Service $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Service
+ */
+ public function create($serviceName, Google_Service_ServiceManagement_Service $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ServiceManagement_Service");
+ }
+ /**
+ * Gets a service configuration (version) for a managed service. (configs.get)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param string $configId The id of the service configuration resource.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view Specifies which parts of the Service Config should be
+ * returned in the response.
+ * @return Google_Service_ServiceManagement_Service
+ */
+ public function get($serviceName, $configId, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'configId' => $configId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ServiceManagement_Service");
+ }
+ /**
+ * Lists the history of the service configuration for a managed service, from
+ * the newest to the oldest. (configs.listServicesConfigs)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The token of the page to retrieve.
+ * @opt_param int pageSize The max number of items to include in the response
+ * list.
+ * @return Google_Service_ServiceManagement_ListServiceConfigsResponse
+ */
+ public function listServicesConfigs($serviceName, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ServiceManagement_ListServiceConfigsResponse");
+ }
+ /**
+ * Creates a new service configuration (version) for a managed service based on
+ * user-supplied configuration source files (for example: OpenAPI
+ * Specification). This method stores the source configurations as well as the
+ * generated service configuration. To rollout the service configuration to
+ * other services, please call CreateServiceRollout.
+ *
+ * Operation (configs.submit)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param Google_Service_ServiceManagement_SubmitConfigSourceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function submit($serviceName, Google_Service_ServiceManagement_SubmitConfigSourceRequest $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('submit', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php
new file mode 100644
index 00000000..c15475d2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Resource/ServicesRollouts.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "rollouts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $servicemanagementService = new Google_Service_ServiceManagement(...);
+ * $rollouts = $servicemanagementService->rollouts;
+ * </code>
+ */
+class Google_Service_ServiceManagement_Resource_ServicesRollouts extends Google_Service_Resource
+{
+ /**
+ * Creates a new service configuration rollout. Based on rollout, the Google
+ * Service Management will roll out the service configurations to different
+ * backend services. For example, the logging configuration will be pushed to
+ * Google Cloud Logging.
+ *
+ * Please note that any previous pending and running Rollouts and associated
+ * Operations will be automatically cancelled so that the latest Rollout will
+ * not be blocked by previous Rollouts.
+ *
+ * Operation (rollouts.create)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param Google_Service_ServiceManagement_Rollout $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Operation
+ */
+ public function create($serviceName, Google_Service_ServiceManagement_Rollout $postBody, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ServiceManagement_Operation");
+ }
+ /**
+ * Gets a service configuration rollout. (rollouts.get)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param string $rolloutId The id of the rollout resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceManagement_Rollout
+ */
+ public function get($serviceName, $rolloutId, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName, 'rolloutId' => $rolloutId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ServiceManagement_Rollout");
+ }
+ /**
+ * Lists the history of the service configuration rollouts for a managed
+ * service, from the newest to the oldest. (rollouts.listServicesRollouts)
+ *
+ * @param string $serviceName The name of the service. See the [overview
+ * ](/service-management/overview) for naming requirements. For example:
+ * `example.googleapis.com`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The token of the page to retrieve.
+ * @opt_param int pageSize The max number of items to include in the response
+ * list.
+ * @return Google_Service_ServiceManagement_ListServiceRolloutsResponse
+ */
+ public function listServicesRollouts($serviceName, $optParams = array())
+ {
+ $params = array('serviceName' => $serviceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ServiceManagement_ListServiceRolloutsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rollout.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rollout.php
new file mode 100644
index 00000000..cd465993
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rollout.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Rollout extends Google_Model
+{
+ public $createTime;
+ public $createdBy;
+ protected $deleteServiceStrategyType = 'Google_Service_ServiceManagement_DeleteServiceStrategy';
+ protected $deleteServiceStrategyDataType = '';
+ public $rolloutId;
+ public $serviceName;
+ public $status;
+ protected $trafficPercentStrategyType = 'Google_Service_ServiceManagement_TrafficPercentStrategy';
+ protected $trafficPercentStrategyDataType = '';
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setCreatedBy($createdBy)
+ {
+ $this->createdBy = $createdBy;
+ }
+ public function getCreatedBy()
+ {
+ return $this->createdBy;
+ }
+ public function setDeleteServiceStrategy(Google_Service_ServiceManagement_DeleteServiceStrategy $deleteServiceStrategy)
+ {
+ $this->deleteServiceStrategy = $deleteServiceStrategy;
+ }
+ public function getDeleteServiceStrategy()
+ {
+ return $this->deleteServiceStrategy;
+ }
+ public function setRolloutId($rolloutId)
+ {
+ $this->rolloutId = $rolloutId;
+ }
+ public function getRolloutId()
+ {
+ return $this->rolloutId;
+ }
+ public function setServiceName($serviceName)
+ {
+ $this->serviceName = $serviceName;
+ }
+ public function getServiceName()
+ {
+ return $this->serviceName;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTrafficPercentStrategy(Google_Service_ServiceManagement_TrafficPercentStrategy $trafficPercentStrategy)
+ {
+ $this->trafficPercentStrategy = $trafficPercentStrategy;
+ }
+ public function getTrafficPercentStrategy()
+ {
+ return $this->trafficPercentStrategy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rule.php
new file mode 100644
index 00000000..e31e5b43
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Rule.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Rule extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $action;
+ protected $conditionsType = 'Google_Service_ServiceManagement_Condition';
+ protected $conditionsDataType = 'array';
+ public $description;
+ public $in;
+ protected $logConfigType = 'Google_Service_ServiceManagement_LogConfig';
+ protected $logConfigDataType = 'array';
+ public $notIn;
+ public $permissions;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIn($in)
+ {
+ $this->in = $in;
+ }
+ public function getIn()
+ {
+ return $this->in;
+ }
+ public function setLogConfig($logConfig)
+ {
+ $this->logConfig = $logConfig;
+ }
+ public function getLogConfig()
+ {
+ return $this->logConfig;
+ }
+ public function setNotIn($notIn)
+ {
+ $this->notIn = $notIn;
+ }
+ public function getNotIn()
+ {
+ return $this->notIn;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Service.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Service.php
new file mode 100644
index 00000000..ee4dfa99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Service.php
@@ -0,0 +1,287 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Service extends Google_Collection
+{
+ protected $collection_key = 'types';
+ protected $apisType = 'Google_Service_ServiceManagement_Api';
+ protected $apisDataType = 'array';
+ protected $authenticationType = 'Google_Service_ServiceManagement_Authentication';
+ protected $authenticationDataType = '';
+ protected $backendType = 'Google_Service_ServiceManagement_Backend';
+ protected $backendDataType = '';
+ public $configVersion;
+ protected $contextType = 'Google_Service_ServiceManagement_Context';
+ protected $contextDataType = '';
+ protected $controlType = 'Google_Service_ServiceManagement_Control';
+ protected $controlDataType = '';
+ protected $customErrorType = 'Google_Service_ServiceManagement_CustomError';
+ protected $customErrorDataType = '';
+ protected $documentationType = 'Google_Service_ServiceManagement_Documentation';
+ protected $documentationDataType = '';
+ protected $endpointsType = 'Google_Service_ServiceManagement_Endpoint';
+ protected $endpointsDataType = 'array';
+ protected $enumsType = 'Google_Service_ServiceManagement_Enum';
+ protected $enumsDataType = 'array';
+ protected $experimentalType = 'Google_Service_ServiceManagement_Experimental';
+ protected $experimentalDataType = '';
+ protected $httpType = 'Google_Service_ServiceManagement_Http';
+ protected $httpDataType = '';
+ public $id;
+ protected $loggingType = 'Google_Service_ServiceManagement_Logging';
+ protected $loggingDataType = '';
+ protected $logsType = 'Google_Service_ServiceManagement_LogDescriptor';
+ protected $logsDataType = 'array';
+ protected $metricsType = 'Google_Service_ServiceManagement_MetricDescriptor';
+ protected $metricsDataType = 'array';
+ protected $monitoredResourcesType = 'Google_Service_ServiceManagement_MonitoredResourceDescriptor';
+ protected $monitoredResourcesDataType = 'array';
+ protected $monitoringType = 'Google_Service_ServiceManagement_Monitoring';
+ protected $monitoringDataType = '';
+ public $name;
+ public $producerProjectId;
+ protected $sourceInfoType = 'Google_Service_ServiceManagement_SourceInfo';
+ protected $sourceInfoDataType = '';
+ protected $systemParametersType = 'Google_Service_ServiceManagement_SystemParameters';
+ protected $systemParametersDataType = '';
+ protected $systemTypesType = 'Google_Service_ServiceManagement_Type';
+ protected $systemTypesDataType = 'array';
+ public $title;
+ protected $typesType = 'Google_Service_ServiceManagement_Type';
+ protected $typesDataType = 'array';
+ protected $usageType = 'Google_Service_ServiceManagement_Usage';
+ protected $usageDataType = '';
+ protected $visibilityType = 'Google_Service_ServiceManagement_Visibility';
+ protected $visibilityDataType = '';
+
+ public function setApis($apis)
+ {
+ $this->apis = $apis;
+ }
+ public function getApis()
+ {
+ return $this->apis;
+ }
+ public function setAuthentication(Google_Service_ServiceManagement_Authentication $authentication)
+ {
+ $this->authentication = $authentication;
+ }
+ public function getAuthentication()
+ {
+ return $this->authentication;
+ }
+ public function setBackend(Google_Service_ServiceManagement_Backend $backend)
+ {
+ $this->backend = $backend;
+ }
+ public function getBackend()
+ {
+ return $this->backend;
+ }
+ public function setConfigVersion($configVersion)
+ {
+ $this->configVersion = $configVersion;
+ }
+ public function getConfigVersion()
+ {
+ return $this->configVersion;
+ }
+ public function setContext(Google_Service_ServiceManagement_Context $context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setControl(Google_Service_ServiceManagement_Control $control)
+ {
+ $this->control = $control;
+ }
+ public function getControl()
+ {
+ return $this->control;
+ }
+ public function setCustomError(Google_Service_ServiceManagement_CustomError $customError)
+ {
+ $this->customError = $customError;
+ }
+ public function getCustomError()
+ {
+ return $this->customError;
+ }
+ public function setDocumentation(Google_Service_ServiceManagement_Documentation $documentation)
+ {
+ $this->documentation = $documentation;
+ }
+ public function getDocumentation()
+ {
+ return $this->documentation;
+ }
+ public function setEndpoints($endpoints)
+ {
+ $this->endpoints = $endpoints;
+ }
+ public function getEndpoints()
+ {
+ return $this->endpoints;
+ }
+ public function setEnums($enums)
+ {
+ $this->enums = $enums;
+ }
+ public function getEnums()
+ {
+ return $this->enums;
+ }
+ public function setExperimental(Google_Service_ServiceManagement_Experimental $experimental)
+ {
+ $this->experimental = $experimental;
+ }
+ public function getExperimental()
+ {
+ return $this->experimental;
+ }
+ public function setHttp(Google_Service_ServiceManagement_Http $http)
+ {
+ $this->http = $http;
+ }
+ public function getHttp()
+ {
+ return $this->http;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLogging(Google_Service_ServiceManagement_Logging $logging)
+ {
+ $this->logging = $logging;
+ }
+ public function getLogging()
+ {
+ return $this->logging;
+ }
+ public function setLogs($logs)
+ {
+ $this->logs = $logs;
+ }
+ public function getLogs()
+ {
+ return $this->logs;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setMonitoredResources($monitoredResources)
+ {
+ $this->monitoredResources = $monitoredResources;
+ }
+ public function getMonitoredResources()
+ {
+ return $this->monitoredResources;
+ }
+ public function setMonitoring(Google_Service_ServiceManagement_Monitoring $monitoring)
+ {
+ $this->monitoring = $monitoring;
+ }
+ public function getMonitoring()
+ {
+ return $this->monitoring;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProducerProjectId($producerProjectId)
+ {
+ $this->producerProjectId = $producerProjectId;
+ }
+ public function getProducerProjectId()
+ {
+ return $this->producerProjectId;
+ }
+ public function setSourceInfo(Google_Service_ServiceManagement_SourceInfo $sourceInfo)
+ {
+ $this->sourceInfo = $sourceInfo;
+ }
+ public function getSourceInfo()
+ {
+ return $this->sourceInfo;
+ }
+ public function setSystemParameters(Google_Service_ServiceManagement_SystemParameters $systemParameters)
+ {
+ $this->systemParameters = $systemParameters;
+ }
+ public function getSystemParameters()
+ {
+ return $this->systemParameters;
+ }
+ public function setSystemTypes($systemTypes)
+ {
+ $this->systemTypes = $systemTypes;
+ }
+ public function getSystemTypes()
+ {
+ return $this->systemTypes;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+ public function setUsage(Google_Service_ServiceManagement_Usage $usage)
+ {
+ $this->usage = $usage;
+ }
+ public function getUsage()
+ {
+ return $this->usage;
+ }
+ public function setVisibility(Google_Service_ServiceManagement_Visibility $visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SetIamPolicyRequest.php
new file mode 100644
index 00000000..fba45ae7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SetIamPolicyRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_ServiceManagement_Policy';
+ protected $policyDataType = '';
+ public $updateMask;
+
+ public function setPolicy(Google_Service_ServiceManagement_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+ public function setUpdateMask($updateMask)
+ {
+ $this->updateMask = $updateMask;
+ }
+ public function getUpdateMask()
+ {
+ return $this->updateMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceContext.php
new file mode 100644
index 00000000..523a21c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceContext.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SourceContext extends Google_Model
+{
+ public $fileName;
+
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceInfo.php
new file mode 100644
index 00000000..8432cf17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SourceInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SourceInfo extends Google_Collection
+{
+ protected $collection_key = 'sourceFiles';
+ public $sourceFiles;
+
+ public function setSourceFiles($sourceFiles)
+ {
+ $this->sourceFiles = $sourceFiles;
+ }
+ public function getSourceFiles()
+ {
+ return $this->sourceFiles;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Status.php
new file mode 100644
index 00000000..11e63b3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Step.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Step.php
new file mode 100644
index 00000000..18687c7e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Step.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Step extends Google_Model
+{
+ public $description;
+ public $status;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceRequest.php
new file mode 100644
index 00000000..e8069c5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SubmitConfigSourceRequest extends Google_Model
+{
+ protected $configSourceType = 'Google_Service_ServiceManagement_ConfigSource';
+ protected $configSourceDataType = '';
+ public $validateOnly;
+
+ public function setConfigSource(Google_Service_ServiceManagement_ConfigSource $configSource)
+ {
+ $this->configSource = $configSource;
+ }
+ public function getConfigSource()
+ {
+ return $this->configSource;
+ }
+ public function setValidateOnly($validateOnly)
+ {
+ $this->validateOnly = $validateOnly;
+ }
+ public function getValidateOnly()
+ {
+ return $this->validateOnly;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceResponse.php
new file mode 100644
index 00000000..8b89f21f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SubmitConfigSourceResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SubmitConfigSourceResponse extends Google_Model
+{
+ protected $serviceConfigType = 'Google_Service_ServiceManagement_Service';
+ protected $serviceConfigDataType = '';
+
+ public function setServiceConfig(Google_Service_ServiceManagement_Service $serviceConfig)
+ {
+ $this->serviceConfig = $serviceConfig;
+ }
+ public function getServiceConfig()
+ {
+ return $this->serviceConfig;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameter.php
new file mode 100644
index 00000000..0c5421c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameter.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SystemParameter extends Google_Model
+{
+ public $httpHeader;
+ public $name;
+ public $urlQueryParameter;
+
+ public function setHttpHeader($httpHeader)
+ {
+ $this->httpHeader = $httpHeader;
+ }
+ public function getHttpHeader()
+ {
+ return $this->httpHeader;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUrlQueryParameter($urlQueryParameter)
+ {
+ $this->urlQueryParameter = $urlQueryParameter;
+ }
+ public function getUrlQueryParameter()
+ {
+ return $this->urlQueryParameter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameterRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameterRule.php
new file mode 100644
index 00000000..7d8b879c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameterRule.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SystemParameterRule extends Google_Collection
+{
+ protected $collection_key = 'parameters';
+ protected $parametersType = 'Google_Service_ServiceManagement_SystemParameter';
+ protected $parametersDataType = 'array';
+ public $selector;
+
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameters.php
new file mode 100644
index 00000000..9e4a8b02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/SystemParameters.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_SystemParameters extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceManagement_SystemParameterRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..c98630ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..26dabfb9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TrafficPercentStrategy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TrafficPercentStrategy.php
new file mode 100644
index 00000000..8dd7f83d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/TrafficPercentStrategy.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_TrafficPercentStrategy extends Google_Model
+{
+ public $percentages;
+
+ public function setPercentages($percentages)
+ {
+ $this->percentages = $percentages;
+ }
+ public function getPercentages()
+ {
+ return $this->percentages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Type.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Type.php
new file mode 100644
index 00000000..7174f5fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Type.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Type extends Google_Collection
+{
+ protected $collection_key = 'options';
+ protected $fieldsType = 'Google_Service_ServiceManagement_Field';
+ protected $fieldsDataType = 'array';
+ public $name;
+ public $oneofs;
+ protected $optionsType = 'Google_Service_ServiceManagement_Option';
+ protected $optionsDataType = 'array';
+ protected $sourceContextType = 'Google_Service_ServiceManagement_SourceContext';
+ protected $sourceContextDataType = '';
+ public $syntax;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOneofs($oneofs)
+ {
+ $this->oneofs = $oneofs;
+ }
+ public function getOneofs()
+ {
+ return $this->oneofs;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSourceContext(Google_Service_ServiceManagement_SourceContext $sourceContext)
+ {
+ $this->sourceContext = $sourceContext;
+ }
+ public function getSourceContext()
+ {
+ return $this->sourceContext;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UndeleteServiceResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UndeleteServiceResponse.php
new file mode 100644
index 00000000..2344c234
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UndeleteServiceResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_UndeleteServiceResponse extends Google_Model
+{
+ protected $serviceType = 'Google_Service_ServiceManagement_ManagedService';
+ protected $serviceDataType = '';
+
+ public function setService(Google_Service_ServiceManagement_ManagedService $service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Usage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Usage.php
new file mode 100644
index 00000000..e2de7ab8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Usage.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Usage extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ public $producerNotificationChannel;
+ public $requirements;
+ protected $rulesType = 'Google_Service_ServiceManagement_UsageRule';
+ protected $rulesDataType = 'array';
+
+ public function setProducerNotificationChannel($producerNotificationChannel)
+ {
+ $this->producerNotificationChannel = $producerNotificationChannel;
+ }
+ public function getProducerNotificationChannel()
+ {
+ return $this->producerNotificationChannel;
+ }
+ public function setRequirements($requirements)
+ {
+ $this->requirements = $requirements;
+ }
+ public function getRequirements()
+ {
+ return $this->requirements;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UsageRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UsageRule.php
new file mode 100644
index 00000000..e87e18bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/UsageRule.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_UsageRule extends Google_Model
+{
+ public $allowUnregisteredCalls;
+ public $selector;
+
+ public function setAllowUnregisteredCalls($allowUnregisteredCalls)
+ {
+ $this->allowUnregisteredCalls = $allowUnregisteredCalls;
+ }
+ public function getAllowUnregisteredCalls()
+ {
+ return $this->allowUnregisteredCalls;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Visibility.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Visibility.php
new file mode 100644
index 00000000..1f34a01b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/Visibility.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_Visibility extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceManagement_VisibilityRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/VisibilityRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/VisibilityRule.php
new file mode 100644
index 00000000..a3838e74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceManagement/VisibilityRule.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceManagement_VisibilityRule extends Google_Model
+{
+ public $restriction;
+ public $selector;
+
+ public function setRestriction($restriction)
+ {
+ $this->restriction = $restriction;
+ }
+ public function getRestriction()
+ {
+ return $this->restriction;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry.php
new file mode 100644
index 00000000..9bd67083
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry.php
@@ -0,0 +1,221 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ServiceRegistry (alpha).
+ *
+ * <p>
+ * Manages service endpoints in Service Registry and provides integration with
+ * DNS for service discovery and name resolution.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/service-registry/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ServiceRegistry extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** View and manage your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN =
+ "https://www.googleapis.com/auth/ndev.cloudman";
+ /** View your Google Cloud Platform management resources and deployment status information. */
+ const NDEV_CLOUDMAN_READONLY =
+ "https://www.googleapis.com/auth/ndev.cloudman.readonly";
+
+ public $endpoints;
+ public $operations;
+
+ /**
+ * Constructs the internal representation of the ServiceRegistry service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'serviceregistry/alpha/projects/';
+ $this->version = 'alpha';
+ $this->serviceName = 'serviceregistry';
+
+ $this->endpoints = new Google_Service_ServiceRegistry_Resource_Endpoints(
+ $this,
+ $this->serviceName,
+ 'endpoints',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/global/endpoints/{endpoint}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endpoint' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/global/endpoints/{endpoint}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endpoint' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/global/endpoints',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/endpoints',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/global/endpoints/{endpoint}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endpoint' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/global/endpoints/{endpoint}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'endpoint' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->operations = new Google_Service_ServiceRegistry_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/global/operations/{operation}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'operation' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/global/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Endpoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Endpoint.php
new file mode 100644
index 00000000..48ebee2c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Endpoint.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_Endpoint extends Google_Model
+{
+ public $address;
+ public $creationTimestamp;
+ public $description;
+ public $fingerprint;
+ public $id;
+ public $name;
+ public $port;
+ public $selfLink;
+ public $state;
+ protected $visibilityType = 'Google_Service_ServiceRegistry_EndpointEndpointVisibility';
+ protected $visibilityDataType = '';
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPort($port)
+ {
+ $this->port = $port;
+ }
+ public function getPort()
+ {
+ return $this->port;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setVisibility(Google_Service_ServiceRegistry_EndpointEndpointVisibility $visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointEndpointVisibility.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointEndpointVisibility.php
new file mode 100644
index 00000000..50460aba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointEndpointVisibility.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_EndpointEndpointVisibility extends Google_Collection
+{
+ protected $collection_key = 'networks';
+ public $internalDnsName;
+ public $networks;
+
+ public function setInternalDnsName($internalDnsName)
+ {
+ $this->internalDnsName = $internalDnsName;
+ }
+ public function getInternalDnsName()
+ {
+ return $this->internalDnsName;
+ }
+ public function setNetworks($networks)
+ {
+ $this->networks = $networks;
+ }
+ public function getNetworks()
+ {
+ return $this->networks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointsListResponse.php
new file mode 100644
index 00000000..c4e2e9d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/EndpointsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_EndpointsListResponse extends Google_Collection
+{
+ protected $collection_key = 'endpoints';
+ protected $endpointsType = 'Google_Service_ServiceRegistry_Endpoint';
+ protected $endpointsDataType = 'array';
+ public $nextPageToken;
+
+ public function setEndpoints($endpoints)
+ {
+ $this->endpoints = $endpoints;
+ }
+ public function getEndpoints()
+ {
+ return $this->endpoints;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Operation.php
new file mode 100644
index 00000000..3548e6e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Operation.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $description;
+ public $endTime;
+ protected $errorType = 'Google_Service_ServiceRegistry_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_ServiceRegistry_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_ServiceRegistry_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationError.php
new file mode 100644
index 00000000..6c39ebeb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationError.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $errorsType = 'Google_Service_ServiceRegistry_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationErrorErrors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationErrorErrors.php
new file mode 100644
index 00000000..d4108f12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationErrorErrors.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_OperationErrorErrors extends Google_Model
+{
+ public $code;
+ public $location;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarnings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarnings.php
new file mode 100644
index 00000000..d377edde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarnings.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ public $code;
+ protected $dataType = 'Google_Service_ServiceRegistry_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarningsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarningsData.php
new file mode 100644
index 00000000..24bf06a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationWarningsData.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_OperationWarningsData extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationsListResponse.php
new file mode 100644
index 00000000..26e3a5f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/OperationsListResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceRegistry_OperationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_ServiceRegistry_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Endpoints.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Endpoints.php
new file mode 100644
index 00000000..c5569668
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Endpoints.php
@@ -0,0 +1,157 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "endpoints" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $serviceregistryService = new Google_Service_ServiceRegistry(...);
+ * $endpoints = $serviceregistryService->endpoints;
+ * </code>
+ */
+class Google_Service_ServiceRegistry_Resource_Endpoints extends Google_Service_Resource
+{
+ /**
+ * Deletes an endpoint. (endpoints.delete)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $endpoint The name of the endpoint for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceRegistry_Operation
+ */
+ public function delete($project, $endpoint, $optParams = array())
+ {
+ $params = array('project' => $project, 'endpoint' => $endpoint);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_ServiceRegistry_Operation");
+ }
+ /**
+ * Gets an endpoint. (endpoints.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $endpoint The name of the endpoint for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceRegistry_Endpoint
+ */
+ public function get($project, $endpoint, $optParams = array())
+ {
+ $params = array('project' => $project, 'endpoint' => $endpoint);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ServiceRegistry_Endpoint");
+ }
+ /**
+ * Creates an endpoint. (endpoints.insert)
+ *
+ * @param string $project The project ID for this request.
+ * @param Google_Service_ServiceRegistry_Endpoint $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceRegistry_Operation
+ */
+ public function insert($project, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ServiceRegistry_Operation");
+ }
+ /**
+ * Lists endpoints for a project. (endpoints.listEndpoints)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * Compute Engine Beta API Only: When filtering in the Beta API, you can also
+ * filter on nested fields. For example, you could filter on instances that have
+ * set the scheduling.automaticRestart field to true. Use filtering on nested
+ * fields to take advantage of labels to organize and search for results based
+ * on label values.
+ *
+ * The Beta API also supports filtering on multiple expressions by providing
+ * each separate expression within parentheses. For example,
+ * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
+ * expressions are treated as AND expressions, meaning that resources must match
+ * all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_ServiceRegistry_EndpointsListResponse
+ */
+ public function listEndpoints($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ServiceRegistry_EndpointsListResponse");
+ }
+ /**
+ * Updates an endpoint. This method supports patch semantics. (endpoints.patch)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $endpoint The name of the endpoint for this request.
+ * @param Google_Service_ServiceRegistry_Endpoint $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceRegistry_Operation
+ */
+ public function patch($project, $endpoint, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'endpoint' => $endpoint, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ServiceRegistry_Operation");
+ }
+ /**
+ * Updates an endpoint. (endpoints.update)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $endpoint The name of the endpoint for this request.
+ * @param Google_Service_ServiceRegistry_Endpoint $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceRegistry_Operation
+ */
+ public function update($project, $endpoint, Google_Service_ServiceRegistry_Endpoint $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'endpoint' => $endpoint, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ServiceRegistry_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Operations.php
new file mode 100644
index 00000000..17467cfa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceRegistry/Resource/Operations.php
@@ -0,0 +1,99 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $serviceregistryService = new Google_Service_ServiceRegistry(...);
+ * $operations = $serviceregistryService->operations;
+ * </code>
+ */
+class Google_Service_ServiceRegistry_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Gets information about a specific operation. (operations.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $operation The name of the operation for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceRegistry_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ServiceRegistry_Operation");
+ }
+ /**
+ * Lists all operations for a project. (operations.listOperations)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must be in the
+ * format: field_name comparison_string literal_string.
+ *
+ * The field_name is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The comparison_string
+ * must be either eq (equals) or ne (not equals). The literal_string is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field you are filtering by (string, number, boolean). For string fields, the
+ * literal value is interpreted as a regular expression using RE2 syntax. The
+ * literal value must match the entire field.
+ *
+ * For example, to filter for instances that do not have a name of example-
+ * instance, you would use filter=name ne example-instance.
+ *
+ * Compute Engine Beta API Only: When filtering in the Beta API, you can also
+ * filter on nested fields. For example, you could filter on instances that have
+ * set the scheduling.automaticRestart field to true. Use filtering on nested
+ * fields to take advantage of labels to organize and search for results based
+ * on label values.
+ *
+ * The Beta API also supports filtering on multiple expressions by providing
+ * each separate expression within parentheses. For example,
+ * (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple
+ * expressions are treated as AND expressions, meaning that resources must match
+ * all expressions to pass the filters.
+ * @opt_param string maxResults The maximum number of results per page that
+ * should be returned. If the number of available results is larger than
+ * maxResults, Compute Engine returns a nextPageToken that can be used to get
+ * the next page of results in subsequent list requests.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Set pageToken to
+ * the nextPageToken returned by a previous list request to get the next page of
+ * results.
+ * @return Google_Service_ServiceRegistry_OperationsListResponse
+ */
+ public function listOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ServiceRegistry_OperationsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser.php
new file mode 100644
index 00000000..cf28a691
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ServiceUser (v1).
+ *
+ * <p>
+ * Enables services that service consumers want to use on Google Cloud Platform,
+ * lists the available or enabled services, or disables services that service
+ * consumers no longer use.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/service-management/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ServiceUser extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** Manage your Google API service configuration. */
+ const SERVICE_MANAGEMENT =
+ "https://www.googleapis.com/auth/service.management";
+
+ public $projects_services;
+ public $services;
+
+ /**
+ * Constructs the internal representation of the ServiceUser service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://serviceuser.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'serviceuser';
+
+ $this->projects_services = new Google_Service_ServiceUser_Resource_ProjectsServices(
+ $this,
+ $this->serviceName,
+ 'services',
+ array(
+ 'methods' => array(
+ 'disable' => array(
+ 'path' => 'v1/{+name}:disable',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'enable' => array(
+ 'path' => 'v1/{+name}:enable',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/services',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->services = new Google_Service_ServiceUser_Resource_Services(
+ $this,
+ $this->serviceName,
+ 'services',
+ array(
+ 'methods' => array(
+ 'search' => array(
+ 'path' => 'v1/services:search',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Api.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Api.php
new file mode 100644
index 00000000..efd6c8af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Api.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Api extends Google_Collection
+{
+ protected $collection_key = 'options';
+ protected $methodsType = 'Google_Service_ServiceUser_Method';
+ protected $methodsDataType = 'array';
+ protected $mixinsType = 'Google_Service_ServiceUser_Mixin';
+ protected $mixinsDataType = 'array';
+ public $name;
+ protected $optionsType = 'Google_Service_ServiceUser_Option';
+ protected $optionsDataType = 'array';
+ protected $sourceContextType = 'Google_Service_ServiceUser_SourceContext';
+ protected $sourceContextDataType = '';
+ public $syntax;
+ public $version;
+
+ public function setMethods($methods)
+ {
+ $this->methods = $methods;
+ }
+ public function getMethods()
+ {
+ return $this->methods;
+ }
+ public function setMixins($mixins)
+ {
+ $this->mixins = $mixins;
+ }
+ public function getMixins()
+ {
+ return $this->mixins;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSourceContext(Google_Service_ServiceUser_SourceContext $sourceContext)
+ {
+ $this->sourceContext = $sourceContext;
+ }
+ public function getSourceContext()
+ {
+ return $this->sourceContext;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthProvider.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthProvider.php
new file mode 100644
index 00000000..75c6e24e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthProvider.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_AuthProvider extends Google_Model
+{
+ public $audiences;
+ public $id;
+ public $issuer;
+ public $jwksUri;
+
+ public function setAudiences($audiences)
+ {
+ $this->audiences = $audiences;
+ }
+ public function getAudiences()
+ {
+ return $this->audiences;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIssuer($issuer)
+ {
+ $this->issuer = $issuer;
+ }
+ public function getIssuer()
+ {
+ return $this->issuer;
+ }
+ public function setJwksUri($jwksUri)
+ {
+ $this->jwksUri = $jwksUri;
+ }
+ public function getJwksUri()
+ {
+ return $this->jwksUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthRequirement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthRequirement.php
new file mode 100644
index 00000000..761a094b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthRequirement.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_AuthRequirement extends Google_Model
+{
+ public $audiences;
+ public $providerId;
+
+ public function setAudiences($audiences)
+ {
+ $this->audiences = $audiences;
+ }
+ public function getAudiences()
+ {
+ return $this->audiences;
+ }
+ public function setProviderId($providerId)
+ {
+ $this->providerId = $providerId;
+ }
+ public function getProviderId()
+ {
+ return $this->providerId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Authentication.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Authentication.php
new file mode 100644
index 00000000..67d4481e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Authentication.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Authentication extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $providersType = 'Google_Service_ServiceUser_AuthProvider';
+ protected $providersDataType = 'array';
+ protected $rulesType = 'Google_Service_ServiceUser_AuthenticationRule';
+ protected $rulesDataType = 'array';
+
+ public function setProviders($providers)
+ {
+ $this->providers = $providers;
+ }
+ public function getProviders()
+ {
+ return $this->providers;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php
new file mode 100644
index 00000000..c0dc5942
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthenticationRule.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_AuthenticationRule extends Google_Collection
+{
+ protected $collection_key = 'requirements';
+ public $allowWithoutCredential;
+ protected $oauthType = 'Google_Service_ServiceUser_OAuthRequirements';
+ protected $oauthDataType = '';
+ protected $requirementsType = 'Google_Service_ServiceUser_AuthRequirement';
+ protected $requirementsDataType = 'array';
+ public $selector;
+
+ public function setAllowWithoutCredential($allowWithoutCredential)
+ {
+ $this->allowWithoutCredential = $allowWithoutCredential;
+ }
+ public function getAllowWithoutCredential()
+ {
+ return $this->allowWithoutCredential;
+ }
+ public function setOauth(Google_Service_ServiceUser_OAuthRequirements $oauth)
+ {
+ $this->oauth = $oauth;
+ }
+ public function getOauth()
+ {
+ return $this->oauth;
+ }
+ public function setRequirements($requirements)
+ {
+ $this->requirements = $requirements;
+ }
+ public function getRequirements()
+ {
+ return $this->requirements;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthorizationConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthorizationConfig.php
new file mode 100644
index 00000000..35f15a00
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/AuthorizationConfig.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_AuthorizationConfig extends Google_Model
+{
+ public $provider;
+
+ public function setProvider($provider)
+ {
+ $this->provider = $provider;
+ }
+ public function getProvider()
+ {
+ return $this->provider;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Backend.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Backend.php
new file mode 100644
index 00000000..b42a27ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Backend.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Backend extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceUser_BackendRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/BackendRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/BackendRule.php
new file mode 100644
index 00000000..ce56a4e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/BackendRule.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_BackendRule extends Google_Model
+{
+ public $address;
+ public $deadline;
+ public $selector;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setDeadline($deadline)
+ {
+ $this->deadline = $deadline;
+ }
+ public function getDeadline()
+ {
+ return $this->deadline;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Context.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Context.php
new file mode 100644
index 00000000..76023810
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Context.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Context extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceUser_ContextRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ContextRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ContextRule.php
new file mode 100644
index 00000000..e6161dae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ContextRule.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_ContextRule extends Google_Collection
+{
+ protected $collection_key = 'requested';
+ public $provided;
+ public $requested;
+ public $selector;
+
+ public function setProvided($provided)
+ {
+ $this->provided = $provided;
+ }
+ public function getProvided()
+ {
+ return $this->provided;
+ }
+ public function setRequested($requested)
+ {
+ $this->requested = $requested;
+ }
+ public function getRequested()
+ {
+ return $this->requested;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Control.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Control.php
new file mode 100644
index 00000000..dd4c3583
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Control.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Control extends Google_Model
+{
+ public $environment;
+
+ public function setEnvironment($environment)
+ {
+ $this->environment = $environment;
+ }
+ public function getEnvironment()
+ {
+ return $this->environment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomError.php
new file mode 100644
index 00000000..17c90f0a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomError.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_CustomError extends Google_Collection
+{
+ protected $collection_key = 'types';
+ protected $rulesType = 'Google_Service_ServiceUser_CustomErrorRule';
+ protected $rulesDataType = 'array';
+ public $types;
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomErrorRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomErrorRule.php
new file mode 100644
index 00000000..ff562edb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomErrorRule.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_CustomErrorRule extends Google_Model
+{
+ public $isErrorType;
+ public $selector;
+
+ public function setIsErrorType($isErrorType)
+ {
+ $this->isErrorType = $isErrorType;
+ }
+ public function getIsErrorType()
+ {
+ return $this->isErrorType;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomHttpPattern.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomHttpPattern.php
new file mode 100644
index 00000000..dc223c90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/CustomHttpPattern.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_CustomHttpPattern extends Google_Model
+{
+ public $kind;
+ public $path;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DisableServiceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DisableServiceRequest.php
new file mode 100644
index 00000000..51d8f336
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DisableServiceRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_DisableServiceRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Documentation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Documentation.php
new file mode 100644
index 00000000..da2139cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Documentation.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Documentation extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ public $documentationRootUrl;
+ public $overview;
+ protected $pagesType = 'Google_Service_ServiceUser_Page';
+ protected $pagesDataType = 'array';
+ protected $rulesType = 'Google_Service_ServiceUser_DocumentationRule';
+ protected $rulesDataType = 'array';
+ public $summary;
+
+ public function setDocumentationRootUrl($documentationRootUrl)
+ {
+ $this->documentationRootUrl = $documentationRootUrl;
+ }
+ public function getDocumentationRootUrl()
+ {
+ return $this->documentationRootUrl;
+ }
+ public function setOverview($overview)
+ {
+ $this->overview = $overview;
+ }
+ public function getOverview()
+ {
+ return $this->overview;
+ }
+ public function setPages($pages)
+ {
+ $this->pages = $pages;
+ }
+ public function getPages()
+ {
+ return $this->pages;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DocumentationRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DocumentationRule.php
new file mode 100644
index 00000000..de4c1a34
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/DocumentationRule.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_DocumentationRule extends Google_Model
+{
+ public $deprecationDescription;
+ public $description;
+ public $selector;
+
+ public function setDeprecationDescription($deprecationDescription)
+ {
+ $this->deprecationDescription = $deprecationDescription;
+ }
+ public function getDeprecationDescription()
+ {
+ return $this->deprecationDescription;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnableServiceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnableServiceRequest.php
new file mode 100644
index 00000000..cfdab0d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnableServiceRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_EnableServiceRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Endpoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Endpoint.php
new file mode 100644
index 00000000..936cc85e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Endpoint.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Endpoint extends Google_Collection
+{
+ protected $collection_key = 'features';
+ public $aliases;
+ public $allowCors;
+ public $apis;
+ public $features;
+ public $name;
+
+ public function setAliases($aliases)
+ {
+ $this->aliases = $aliases;
+ }
+ public function getAliases()
+ {
+ return $this->aliases;
+ }
+ public function setAllowCors($allowCors)
+ {
+ $this->allowCors = $allowCors;
+ }
+ public function getAllowCors()
+ {
+ return $this->allowCors;
+ }
+ public function setApis($apis)
+ {
+ $this->apis = $apis;
+ }
+ public function getApis()
+ {
+ return $this->apis;
+ }
+ public function setFeatures($features)
+ {
+ $this->features = $features;
+ }
+ public function getFeatures()
+ {
+ return $this->features;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Enum.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Enum.php
new file mode 100644
index 00000000..4d89024d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Enum.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Enum extends Google_Collection
+{
+ protected $collection_key = 'options';
+ protected $enumvalueType = 'Google_Service_ServiceUser_EnumValue';
+ protected $enumvalueDataType = 'array';
+ public $name;
+ protected $optionsType = 'Google_Service_ServiceUser_Option';
+ protected $optionsDataType = 'array';
+ protected $sourceContextType = 'Google_Service_ServiceUser_SourceContext';
+ protected $sourceContextDataType = '';
+ public $syntax;
+
+ public function setEnumvalue($enumvalue)
+ {
+ $this->enumvalue = $enumvalue;
+ }
+ public function getEnumvalue()
+ {
+ return $this->enumvalue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSourceContext(Google_Service_ServiceUser_SourceContext $sourceContext)
+ {
+ $this->sourceContext = $sourceContext;
+ }
+ public function getSourceContext()
+ {
+ return $this->sourceContext;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnumValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnumValue.php
new file mode 100644
index 00000000..9c9ad449
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/EnumValue.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_EnumValue extends Google_Collection
+{
+ protected $collection_key = 'options';
+ public $name;
+ public $number;
+ protected $optionsType = 'Google_Service_ServiceUser_Option';
+ protected $optionsDataType = 'array';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Experimental.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Experimental.php
new file mode 100644
index 00000000..93c30ec4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Experimental.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Experimental extends Google_Model
+{
+ protected $authorizationType = 'Google_Service_ServiceUser_AuthorizationConfig';
+ protected $authorizationDataType = '';
+
+ public function setAuthorization(Google_Service_ServiceUser_AuthorizationConfig $authorization)
+ {
+ $this->authorization = $authorization;
+ }
+ public function getAuthorization()
+ {
+ return $this->authorization;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Field.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Field.php
new file mode 100644
index 00000000..6c65173f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Field.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Field extends Google_Collection
+{
+ protected $collection_key = 'options';
+ public $cardinality;
+ public $defaultValue;
+ public $jsonName;
+ public $kind;
+ public $name;
+ public $number;
+ public $oneofIndex;
+ protected $optionsType = 'Google_Service_ServiceUser_Option';
+ protected $optionsDataType = 'array';
+ public $packed;
+ public $typeUrl;
+
+ public function setCardinality($cardinality)
+ {
+ $this->cardinality = $cardinality;
+ }
+ public function getCardinality()
+ {
+ return $this->cardinality;
+ }
+ public function setDefaultValue($defaultValue)
+ {
+ $this->defaultValue = $defaultValue;
+ }
+ public function getDefaultValue()
+ {
+ return $this->defaultValue;
+ }
+ public function setJsonName($jsonName)
+ {
+ $this->jsonName = $jsonName;
+ }
+ public function getJsonName()
+ {
+ return $this->jsonName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setOneofIndex($oneofIndex)
+ {
+ $this->oneofIndex = $oneofIndex;
+ }
+ public function getOneofIndex()
+ {
+ return $this->oneofIndex;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setPacked($packed)
+ {
+ $this->packed = $packed;
+ }
+ public function getPacked()
+ {
+ return $this->packed;
+ }
+ public function setTypeUrl($typeUrl)
+ {
+ $this->typeUrl = $typeUrl;
+ }
+ public function getTypeUrl()
+ {
+ return $this->typeUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Http.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Http.php
new file mode 100644
index 00000000..462d638d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Http.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Http extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceUser_HttpRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php
new file mode 100644
index 00000000..c2355e8f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/HttpRule.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_HttpRule extends Google_Collection
+{
+ protected $collection_key = 'additionalBindings';
+ protected $additionalBindingsType = 'Google_Service_ServiceUser_HttpRule';
+ protected $additionalBindingsDataType = 'array';
+ public $body;
+ protected $customType = 'Google_Service_ServiceUser_CustomHttpPattern';
+ protected $customDataType = '';
+ public $delete;
+ public $get;
+ protected $mediaDownloadType = 'Google_Service_ServiceUser_MediaDownload';
+ protected $mediaDownloadDataType = '';
+ protected $mediaUploadType = 'Google_Service_ServiceUser_MediaUpload';
+ protected $mediaUploadDataType = '';
+ public $patch;
+ public $post;
+ public $put;
+ public $responseBody;
+ public $selector;
+
+ public function setAdditionalBindings($additionalBindings)
+ {
+ $this->additionalBindings = $additionalBindings;
+ }
+ public function getAdditionalBindings()
+ {
+ return $this->additionalBindings;
+ }
+ public function setBody($body)
+ {
+ $this->body = $body;
+ }
+ public function getBody()
+ {
+ return $this->body;
+ }
+ public function setCustom(Google_Service_ServiceUser_CustomHttpPattern $custom)
+ {
+ $this->custom = $custom;
+ }
+ public function getCustom()
+ {
+ return $this->custom;
+ }
+ public function setDelete($delete)
+ {
+ $this->delete = $delete;
+ }
+ public function getDelete()
+ {
+ return $this->delete;
+ }
+ public function setGet($get)
+ {
+ $this->get = $get;
+ }
+ public function getGet()
+ {
+ return $this->get;
+ }
+ public function setMediaDownload(Google_Service_ServiceUser_MediaDownload $mediaDownload)
+ {
+ $this->mediaDownload = $mediaDownload;
+ }
+ public function getMediaDownload()
+ {
+ return $this->mediaDownload;
+ }
+ public function setMediaUpload(Google_Service_ServiceUser_MediaUpload $mediaUpload)
+ {
+ $this->mediaUpload = $mediaUpload;
+ }
+ public function getMediaUpload()
+ {
+ return $this->mediaUpload;
+ }
+ public function setPatch($patch)
+ {
+ $this->patch = $patch;
+ }
+ public function getPatch()
+ {
+ return $this->patch;
+ }
+ public function setPost($post)
+ {
+ $this->post = $post;
+ }
+ public function getPost()
+ {
+ return $this->post;
+ }
+ public function setPut($put)
+ {
+ $this->put = $put;
+ }
+ public function getPut()
+ {
+ return $this->put;
+ }
+ public function setResponseBody($responseBody)
+ {
+ $this->responseBody = $responseBody;
+ }
+ public function getResponseBody()
+ {
+ return $this->responseBody;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LabelDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LabelDescriptor.php
new file mode 100644
index 00000000..f23ef890
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LabelDescriptor.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_LabelDescriptor extends Google_Model
+{
+ public $description;
+ public $key;
+ public $valueType;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ListEnabledServicesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ListEnabledServicesResponse.php
new file mode 100644
index 00000000..4cc52d91
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/ListEnabledServicesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_ListEnabledServicesResponse extends Google_Collection
+{
+ protected $collection_key = 'services';
+ public $nextPageToken;
+ protected $servicesType = 'Google_Service_ServiceUser_PublishedService';
+ protected $servicesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LogDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LogDescriptor.php
new file mode 100644
index 00000000..1d8fdf4c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LogDescriptor.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_LogDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_ServiceUser_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $name;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Logging.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Logging.php
new file mode 100644
index 00000000..ff37b8b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Logging.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Logging extends Google_Collection
+{
+ protected $collection_key = 'producerDestinations';
+ protected $consumerDestinationsType = 'Google_Service_ServiceUser_LoggingDestination';
+ protected $consumerDestinationsDataType = 'array';
+ protected $producerDestinationsType = 'Google_Service_ServiceUser_LoggingDestination';
+ protected $producerDestinationsDataType = 'array';
+
+ public function setConsumerDestinations($consumerDestinations)
+ {
+ $this->consumerDestinations = $consumerDestinations;
+ }
+ public function getConsumerDestinations()
+ {
+ return $this->consumerDestinations;
+ }
+ public function setProducerDestinations($producerDestinations)
+ {
+ $this->producerDestinations = $producerDestinations;
+ }
+ public function getProducerDestinations()
+ {
+ return $this->producerDestinations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LoggingDestination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LoggingDestination.php
new file mode 100644
index 00000000..c2361a14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/LoggingDestination.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_LoggingDestination extends Google_Collection
+{
+ protected $collection_key = 'logs';
+ public $logs;
+ public $monitoredResource;
+
+ public function setLogs($logs)
+ {
+ $this->logs = $logs;
+ }
+ public function getLogs()
+ {
+ return $this->logs;
+ }
+ public function setMonitoredResource($monitoredResource)
+ {
+ $this->monitoredResource = $monitoredResource;
+ }
+ public function getMonitoredResource()
+ {
+ return $this->monitoredResource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaDownload.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaDownload.php
new file mode 100644
index 00000000..bb320f02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaDownload.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_MediaDownload extends Google_Model
+{
+ public $downloadService;
+ public $enabled;
+
+ public function setDownloadService($downloadService)
+ {
+ $this->downloadService = $downloadService;
+ }
+ public function getDownloadService()
+ {
+ return $this->downloadService;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaUpload.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaUpload.php
new file mode 100644
index 00000000..e6a58c91
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MediaUpload.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_MediaUpload extends Google_Model
+{
+ public $enabled;
+ public $uploadService;
+
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ public function setUploadService($uploadService)
+ {
+ $this->uploadService = $uploadService;
+ }
+ public function getUploadService()
+ {
+ return $this->uploadService;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Method.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Method.php
new file mode 100644
index 00000000..dbc2dea2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Method.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Method extends Google_Collection
+{
+ protected $collection_key = 'options';
+ public $name;
+ protected $optionsType = 'Google_Service_ServiceUser_Option';
+ protected $optionsDataType = 'array';
+ public $requestStreaming;
+ public $requestTypeUrl;
+ public $responseStreaming;
+ public $responseTypeUrl;
+ public $syntax;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setRequestStreaming($requestStreaming)
+ {
+ $this->requestStreaming = $requestStreaming;
+ }
+ public function getRequestStreaming()
+ {
+ return $this->requestStreaming;
+ }
+ public function setRequestTypeUrl($requestTypeUrl)
+ {
+ $this->requestTypeUrl = $requestTypeUrl;
+ }
+ public function getRequestTypeUrl()
+ {
+ return $this->requestTypeUrl;
+ }
+ public function setResponseStreaming($responseStreaming)
+ {
+ $this->responseStreaming = $responseStreaming;
+ }
+ public function getResponseStreaming()
+ {
+ return $this->responseStreaming;
+ }
+ public function setResponseTypeUrl($responseTypeUrl)
+ {
+ $this->responseTypeUrl = $responseTypeUrl;
+ }
+ public function getResponseTypeUrl()
+ {
+ return $this->responseTypeUrl;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php
new file mode 100644
index 00000000..7a7e33f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MetricDescriptor.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_MetricDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_ServiceUser_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $metricKind;
+ public $name;
+ public $type;
+ public $unit;
+ public $valueType;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setMetricKind($metricKind)
+ {
+ $this->metricKind = $metricKind;
+ }
+ public function getMetricKind()
+ {
+ return $this->metricKind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValueType($valueType)
+ {
+ $this->valueType = $valueType;
+ }
+ public function getValueType()
+ {
+ return $this->valueType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Mixin.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Mixin.php
new file mode 100644
index 00000000..0489f985
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Mixin.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Mixin extends Google_Model
+{
+ public $name;
+ public $root;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRoot($root)
+ {
+ $this->root = $root;
+ }
+ public function getRoot()
+ {
+ return $this->root;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoredResourceDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoredResourceDescriptor.php
new file mode 100644
index 00000000..fca17b93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoredResourceDescriptor.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_MonitoredResourceDescriptor extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ public $description;
+ public $displayName;
+ protected $labelsType = 'Google_Service_ServiceUser_LabelDescriptor';
+ protected $labelsDataType = 'array';
+ public $name;
+ public $type;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Monitoring.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Monitoring.php
new file mode 100644
index 00000000..37c2c670
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Monitoring.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Monitoring extends Google_Collection
+{
+ protected $collection_key = 'producerDestinations';
+ protected $consumerDestinationsType = 'Google_Service_ServiceUser_MonitoringDestination';
+ protected $consumerDestinationsDataType = 'array';
+ protected $producerDestinationsType = 'Google_Service_ServiceUser_MonitoringDestination';
+ protected $producerDestinationsDataType = 'array';
+
+ public function setConsumerDestinations($consumerDestinations)
+ {
+ $this->consumerDestinations = $consumerDestinations;
+ }
+ public function getConsumerDestinations()
+ {
+ return $this->consumerDestinations;
+ }
+ public function setProducerDestinations($producerDestinations)
+ {
+ $this->producerDestinations = $producerDestinations;
+ }
+ public function getProducerDestinations()
+ {
+ return $this->producerDestinations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoringDestination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoringDestination.php
new file mode 100644
index 00000000..b149e4cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/MonitoringDestination.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_MonitoringDestination extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ public $metrics;
+ public $monitoredResource;
+
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setMonitoredResource($monitoredResource)
+ {
+ $this->monitoredResource = $monitoredResource;
+ }
+ public function getMonitoredResource()
+ {
+ return $this->monitoredResource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OAuthRequirements.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OAuthRequirements.php
new file mode 100644
index 00000000..ce523d55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OAuthRequirements.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_OAuthRequirements extends Google_Model
+{
+ public $canonicalScopes;
+
+ public function setCanonicalScopes($canonicalScopes)
+ {
+ $this->canonicalScopes = $canonicalScopes;
+ }
+ public function getCanonicalScopes()
+ {
+ return $this->canonicalScopes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Operation.php
new file mode 100644
index 00000000..67ef77b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_ServiceUser_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_ServiceUser_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OperationMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OperationMetadata.php
new file mode 100644
index 00000000..fd5081d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/OperationMetadata.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_OperationMetadata extends Google_Collection
+{
+ protected $collection_key = 'steps';
+ public $progressPercentage;
+ public $resourceNames;
+ public $startTime;
+ protected $stepsType = 'Google_Service_ServiceUser_Step';
+ protected $stepsDataType = 'array';
+
+ public function setProgressPercentage($progressPercentage)
+ {
+ $this->progressPercentage = $progressPercentage;
+ }
+ public function getProgressPercentage()
+ {
+ return $this->progressPercentage;
+ }
+ public function setResourceNames($resourceNames)
+ {
+ $this->resourceNames = $resourceNames;
+ }
+ public function getResourceNames()
+ {
+ return $this->resourceNames;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Option.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Option.php
new file mode 100644
index 00000000..f6b448d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Option.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Option extends Google_Model
+{
+ public $name;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Page.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Page.php
new file mode 100644
index 00000000..2b060a36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Page.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Page extends Google_Collection
+{
+ protected $collection_key = 'subpages';
+ public $content;
+ public $name;
+ protected $subpagesType = 'Google_Service_ServiceUser_Page';
+ protected $subpagesDataType = 'array';
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubpages($subpages)
+ {
+ $this->subpages = $subpages;
+ }
+ public function getSubpages()
+ {
+ return $this->subpages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/PublishedService.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/PublishedService.php
new file mode 100644
index 00000000..04e4c4f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/PublishedService.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_PublishedService extends Google_Model
+{
+ public $name;
+ protected $serviceType = 'Google_Service_ServiceUser_Service';
+ protected $serviceDataType = '';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setService(Google_Service_ServiceUser_Service $service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Projects.php
new file mode 100644
index 00000000..b8cd2398
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $serviceuserService = new Google_Service_ServiceUser(...);
+ * $projects = $serviceuserService->projects;
+ * </code>
+ */
+class Google_Service_ServiceUser_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php
new file mode 100644
index 00000000..df3ce1c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/ProjectsServices.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "services" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $serviceuserService = new Google_Service_ServiceUser(...);
+ * $services = $serviceuserService->services;
+ * </code>
+ */
+class Google_Service_ServiceUser_Resource_ProjectsServices extends Google_Service_Resource
+{
+ /**
+ * Disable a service so it can no longer be used with a project. This prevents
+ * unintended usage that may cause unexpected billing charges or security leaks.
+ *
+ * Operation (services.disable)
+ *
+ * @param string $name Name of the consumer and the service to disable for that
+ * consumer.
+ *
+ * The Service User implementation accepts the following forms for consumer: -
+ * "project:"
+ *
+ * A valid path would be: - /v1/projects/my-
+ * project/services/servicemanagement.googleapis.com:disable
+ * @param Google_Service_ServiceUser_DisableServiceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceUser_Operation
+ */
+ public function disable($name, Google_Service_ServiceUser_DisableServiceRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('disable', array($params), "Google_Service_ServiceUser_Operation");
+ }
+ /**
+ * Enable a service so it can be used with a project. See [Cloud Auth
+ * Guide](https://cloud.google.com/docs/authentication) for more information.
+ *
+ * Operation (services.enable)
+ *
+ * @param string $name Name of the consumer and the service to enable for that
+ * consumer.
+ *
+ * A valid path would be: - /v1/projects/my-
+ * project/services/servicemanagement.googleapis.com:enable
+ * @param Google_Service_ServiceUser_EnableServiceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ServiceUser_Operation
+ */
+ public function enable($name, Google_Service_ServiceUser_EnableServiceRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('enable', array($params), "Google_Service_ServiceUser_Operation");
+ }
+ /**
+ * List enabled services for the specified consumer.
+ * (services.listProjectsServices)
+ *
+ * @param string $parent List enabled services for the specified parent.
+ *
+ * An example valid parent would be: - projects/my-project
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Token identifying which result to start with;
+ * returned by a previous list call.
+ * @opt_param int pageSize Requested size of the next page of data.
+ * @return Google_Service_ServiceUser_ListEnabledServicesResponse
+ */
+ public function listProjectsServices($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ServiceUser_ListEnabledServicesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php
new file mode 100644
index 00000000..c3db071f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Resource/Services.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "services" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $serviceuserService = new Google_Service_ServiceUser(...);
+ * $services = $serviceuserService->services;
+ * </code>
+ */
+class Google_Service_ServiceUser_Resource_Services extends Google_Service_Resource
+{
+ /**
+ * Search available services.
+ *
+ * When no filter is specified, returns all accessible services. For
+ * authenticated users, also returns all services the calling user has
+ * "servicemanagement.services.bind" permission for. (services.search)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Token identifying which result to start with;
+ * returned by a previous list call.
+ * @opt_param int pageSize Requested size of the next page of data.
+ * @return Google_Service_ServiceUser_SearchServicesResponse
+ */
+ public function search($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_ServiceUser_SearchServicesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SearchServicesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SearchServicesResponse.php
new file mode 100644
index 00000000..4ce9ad9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SearchServicesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_SearchServicesResponse extends Google_Collection
+{
+ protected $collection_key = 'services';
+ public $nextPageToken;
+ protected $servicesType = 'Google_Service_ServiceUser_PublishedService';
+ protected $servicesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Service.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Service.php
new file mode 100644
index 00000000..1fcc527e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Service.php
@@ -0,0 +1,287 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Service extends Google_Collection
+{
+ protected $collection_key = 'types';
+ protected $apisType = 'Google_Service_ServiceUser_Api';
+ protected $apisDataType = 'array';
+ protected $authenticationType = 'Google_Service_ServiceUser_Authentication';
+ protected $authenticationDataType = '';
+ protected $backendType = 'Google_Service_ServiceUser_Backend';
+ protected $backendDataType = '';
+ public $configVersion;
+ protected $contextType = 'Google_Service_ServiceUser_Context';
+ protected $contextDataType = '';
+ protected $controlType = 'Google_Service_ServiceUser_Control';
+ protected $controlDataType = '';
+ protected $customErrorType = 'Google_Service_ServiceUser_CustomError';
+ protected $customErrorDataType = '';
+ protected $documentationType = 'Google_Service_ServiceUser_Documentation';
+ protected $documentationDataType = '';
+ protected $endpointsType = 'Google_Service_ServiceUser_Endpoint';
+ protected $endpointsDataType = 'array';
+ protected $enumsType = 'Google_Service_ServiceUser_Enum';
+ protected $enumsDataType = 'array';
+ protected $experimentalType = 'Google_Service_ServiceUser_Experimental';
+ protected $experimentalDataType = '';
+ protected $httpType = 'Google_Service_ServiceUser_Http';
+ protected $httpDataType = '';
+ public $id;
+ protected $loggingType = 'Google_Service_ServiceUser_Logging';
+ protected $loggingDataType = '';
+ protected $logsType = 'Google_Service_ServiceUser_LogDescriptor';
+ protected $logsDataType = 'array';
+ protected $metricsType = 'Google_Service_ServiceUser_MetricDescriptor';
+ protected $metricsDataType = 'array';
+ protected $monitoredResourcesType = 'Google_Service_ServiceUser_MonitoredResourceDescriptor';
+ protected $monitoredResourcesDataType = 'array';
+ protected $monitoringType = 'Google_Service_ServiceUser_Monitoring';
+ protected $monitoringDataType = '';
+ public $name;
+ public $producerProjectId;
+ protected $sourceInfoType = 'Google_Service_ServiceUser_SourceInfo';
+ protected $sourceInfoDataType = '';
+ protected $systemParametersType = 'Google_Service_ServiceUser_SystemParameters';
+ protected $systemParametersDataType = '';
+ protected $systemTypesType = 'Google_Service_ServiceUser_Type';
+ protected $systemTypesDataType = 'array';
+ public $title;
+ protected $typesType = 'Google_Service_ServiceUser_Type';
+ protected $typesDataType = 'array';
+ protected $usageType = 'Google_Service_ServiceUser_Usage';
+ protected $usageDataType = '';
+ protected $visibilityType = 'Google_Service_ServiceUser_Visibility';
+ protected $visibilityDataType = '';
+
+ public function setApis($apis)
+ {
+ $this->apis = $apis;
+ }
+ public function getApis()
+ {
+ return $this->apis;
+ }
+ public function setAuthentication(Google_Service_ServiceUser_Authentication $authentication)
+ {
+ $this->authentication = $authentication;
+ }
+ public function getAuthentication()
+ {
+ return $this->authentication;
+ }
+ public function setBackend(Google_Service_ServiceUser_Backend $backend)
+ {
+ $this->backend = $backend;
+ }
+ public function getBackend()
+ {
+ return $this->backend;
+ }
+ public function setConfigVersion($configVersion)
+ {
+ $this->configVersion = $configVersion;
+ }
+ public function getConfigVersion()
+ {
+ return $this->configVersion;
+ }
+ public function setContext(Google_Service_ServiceUser_Context $context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setControl(Google_Service_ServiceUser_Control $control)
+ {
+ $this->control = $control;
+ }
+ public function getControl()
+ {
+ return $this->control;
+ }
+ public function setCustomError(Google_Service_ServiceUser_CustomError $customError)
+ {
+ $this->customError = $customError;
+ }
+ public function getCustomError()
+ {
+ return $this->customError;
+ }
+ public function setDocumentation(Google_Service_ServiceUser_Documentation $documentation)
+ {
+ $this->documentation = $documentation;
+ }
+ public function getDocumentation()
+ {
+ return $this->documentation;
+ }
+ public function setEndpoints($endpoints)
+ {
+ $this->endpoints = $endpoints;
+ }
+ public function getEndpoints()
+ {
+ return $this->endpoints;
+ }
+ public function setEnums($enums)
+ {
+ $this->enums = $enums;
+ }
+ public function getEnums()
+ {
+ return $this->enums;
+ }
+ public function setExperimental(Google_Service_ServiceUser_Experimental $experimental)
+ {
+ $this->experimental = $experimental;
+ }
+ public function getExperimental()
+ {
+ return $this->experimental;
+ }
+ public function setHttp(Google_Service_ServiceUser_Http $http)
+ {
+ $this->http = $http;
+ }
+ public function getHttp()
+ {
+ return $this->http;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLogging(Google_Service_ServiceUser_Logging $logging)
+ {
+ $this->logging = $logging;
+ }
+ public function getLogging()
+ {
+ return $this->logging;
+ }
+ public function setLogs($logs)
+ {
+ $this->logs = $logs;
+ }
+ public function getLogs()
+ {
+ return $this->logs;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setMonitoredResources($monitoredResources)
+ {
+ $this->monitoredResources = $monitoredResources;
+ }
+ public function getMonitoredResources()
+ {
+ return $this->monitoredResources;
+ }
+ public function setMonitoring(Google_Service_ServiceUser_Monitoring $monitoring)
+ {
+ $this->monitoring = $monitoring;
+ }
+ public function getMonitoring()
+ {
+ return $this->monitoring;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProducerProjectId($producerProjectId)
+ {
+ $this->producerProjectId = $producerProjectId;
+ }
+ public function getProducerProjectId()
+ {
+ return $this->producerProjectId;
+ }
+ public function setSourceInfo(Google_Service_ServiceUser_SourceInfo $sourceInfo)
+ {
+ $this->sourceInfo = $sourceInfo;
+ }
+ public function getSourceInfo()
+ {
+ return $this->sourceInfo;
+ }
+ public function setSystemParameters(Google_Service_ServiceUser_SystemParameters $systemParameters)
+ {
+ $this->systemParameters = $systemParameters;
+ }
+ public function getSystemParameters()
+ {
+ return $this->systemParameters;
+ }
+ public function setSystemTypes($systemTypes)
+ {
+ $this->systemTypes = $systemTypes;
+ }
+ public function getSystemTypes()
+ {
+ return $this->systemTypes;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+ public function setUsage(Google_Service_ServiceUser_Usage $usage)
+ {
+ $this->usage = $usage;
+ }
+ public function getUsage()
+ {
+ return $this->usage;
+ }
+ public function setVisibility(Google_Service_ServiceUser_Visibility $visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceContext.php
new file mode 100644
index 00000000..fb1f7993
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceContext.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_SourceContext extends Google_Model
+{
+ public $fileName;
+
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceInfo.php
new file mode 100644
index 00000000..7d77d9e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SourceInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_SourceInfo extends Google_Collection
+{
+ protected $collection_key = 'sourceFiles';
+ public $sourceFiles;
+
+ public function setSourceFiles($sourceFiles)
+ {
+ $this->sourceFiles = $sourceFiles;
+ }
+ public function getSourceFiles()
+ {
+ return $this->sourceFiles;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Status.php
new file mode 100644
index 00000000..2e0b2697
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Step.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Step.php
new file mode 100644
index 00000000..186d1769
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Step.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Step extends Google_Model
+{
+ public $description;
+ public $status;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameter.php
new file mode 100644
index 00000000..80357ba6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameter.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_SystemParameter extends Google_Model
+{
+ public $httpHeader;
+ public $name;
+ public $urlQueryParameter;
+
+ public function setHttpHeader($httpHeader)
+ {
+ $this->httpHeader = $httpHeader;
+ }
+ public function getHttpHeader()
+ {
+ return $this->httpHeader;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUrlQueryParameter($urlQueryParameter)
+ {
+ $this->urlQueryParameter = $urlQueryParameter;
+ }
+ public function getUrlQueryParameter()
+ {
+ return $this->urlQueryParameter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameterRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameterRule.php
new file mode 100644
index 00000000..90eeea36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameterRule.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_SystemParameterRule extends Google_Collection
+{
+ protected $collection_key = 'parameters';
+ protected $parametersType = 'Google_Service_ServiceUser_SystemParameter';
+ protected $parametersDataType = 'array';
+ public $selector;
+
+ public function setParameters($parameters)
+ {
+ $this->parameters = $parameters;
+ }
+ public function getParameters()
+ {
+ return $this->parameters;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameters.php
new file mode 100644
index 00000000..4a7ee021
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameters.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_SystemParameters extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceUser_SystemParameterRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Type.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Type.php
new file mode 100644
index 00000000..b5b6c763
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Type.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Type extends Google_Collection
+{
+ protected $collection_key = 'options';
+ protected $fieldsType = 'Google_Service_ServiceUser_Field';
+ protected $fieldsDataType = 'array';
+ public $name;
+ public $oneofs;
+ protected $optionsType = 'Google_Service_ServiceUser_Option';
+ protected $optionsDataType = 'array';
+ protected $sourceContextType = 'Google_Service_ServiceUser_SourceContext';
+ protected $sourceContextDataType = '';
+ public $syntax;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOneofs($oneofs)
+ {
+ $this->oneofs = $oneofs;
+ }
+ public function getOneofs()
+ {
+ return $this->oneofs;
+ }
+ public function setOptions($options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSourceContext(Google_Service_ServiceUser_SourceContext $sourceContext)
+ {
+ $this->sourceContext = $sourceContext;
+ }
+ public function getSourceContext()
+ {
+ return $this->sourceContext;
+ }
+ public function setSyntax($syntax)
+ {
+ $this->syntax = $syntax;
+ }
+ public function getSyntax()
+ {
+ return $this->syntax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Usage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Usage.php
new file mode 100644
index 00000000..edbba99a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Usage.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Usage extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ public $producerNotificationChannel;
+ public $requirements;
+ protected $rulesType = 'Google_Service_ServiceUser_UsageRule';
+ protected $rulesDataType = 'array';
+
+ public function setProducerNotificationChannel($producerNotificationChannel)
+ {
+ $this->producerNotificationChannel = $producerNotificationChannel;
+ }
+ public function getProducerNotificationChannel()
+ {
+ return $this->producerNotificationChannel;
+ }
+ public function setRequirements($requirements)
+ {
+ $this->requirements = $requirements;
+ }
+ public function getRequirements()
+ {
+ return $this->requirements;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/UsageRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/UsageRule.php
new file mode 100644
index 00000000..488211d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/UsageRule.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_UsageRule extends Google_Model
+{
+ public $allowUnregisteredCalls;
+ public $selector;
+
+ public function setAllowUnregisteredCalls($allowUnregisteredCalls)
+ {
+ $this->allowUnregisteredCalls = $allowUnregisteredCalls;
+ }
+ public function getAllowUnregisteredCalls()
+ {
+ return $this->allowUnregisteredCalls;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Visibility.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Visibility.php
new file mode 100644
index 00000000..02bbd8a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/Visibility.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_Visibility extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $rulesType = 'Google_Service_ServiceUser_VisibilityRule';
+ protected $rulesDataType = 'array';
+
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/VisibilityRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/VisibilityRule.php
new file mode 100644
index 00000000..89c9a4c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ServiceUser/VisibilityRule.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ServiceUser_VisibilityRule extends Google_Model
+{
+ public $restriction;
+ public $selector;
+
+ public function setRestriction($restriction)
+ {
+ $this->restriction = $restriction;
+ }
+ public function getRestriction()
+ {
+ return $this->restriction;
+ }
+ public function setSelector($selector)
+ {
+ $this->selector = $selector;
+ }
+ public function getSelector()
+ {
+ return $this->selector;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets.php
new file mode 100644
index 00000000..61bd238d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets.php
@@ -0,0 +1,297 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Sheets (v4).
+ *
+ * <p>
+ * Reads and writes Google Sheets.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/sheets/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Sheets extends Google_Service
+{
+ /** View and manage the files in your Google Drive. */
+ const DRIVE =
+ "https://www.googleapis.com/auth/drive";
+ /** View the files in your Google Drive. */
+ const DRIVE_READONLY =
+ "https://www.googleapis.com/auth/drive.readonly";
+ /** View and manage your spreadsheets in Google Drive. */
+ const SPREADSHEETS =
+ "https://www.googleapis.com/auth/spreadsheets";
+ /** View your Google Spreadsheets. */
+ const SPREADSHEETS_READONLY =
+ "https://www.googleapis.com/auth/spreadsheets.readonly";
+
+ public $spreadsheets;
+ public $spreadsheets_sheets;
+ public $spreadsheets_values;
+
+ /**
+ * Constructs the internal representation of the Sheets service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://sheets.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v4';
+ $this->serviceName = 'sheets';
+
+ $this->spreadsheets = new Google_Service_Sheets_Resource_Spreadsheets(
+ $this,
+ $this->serviceName,
+ 'spreadsheets',
+ array(
+ 'methods' => array(
+ 'batchUpdate' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}:batchUpdate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v4/spreadsheets',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ranges' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'includeGridData' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->spreadsheets_sheets = new Google_Service_Sheets_Resource_SpreadsheetsSheets(
+ $this,
+ $this->serviceName,
+ 'sheets',
+ array(
+ 'methods' => array(
+ 'copyTo' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sheetId' => array(
+ 'location' => 'path',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->spreadsheets_values = new Google_Service_Sheets_Resource_SpreadsheetsValues(
+ $this,
+ $this->serviceName,
+ 'values',
+ array(
+ 'methods' => array(
+ 'append' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/values/{range}:append',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'range' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeValuesInResponse' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'responseValueRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'insertDataOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'valueInputOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'responseDateTimeRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'batchClear' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/values:batchClear',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'batchGet' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/values:batchGet',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'valueRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dateTimeRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ranges' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'majorDimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'batchUpdate' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'clear' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'range' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/values/{range}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'range' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'valueRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dateTimeRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'majorDimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'v4/spreadsheets/{spreadsheetId}/values/{range}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'spreadsheetId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'range' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'responseValueRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'valueInputOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'responseDateTimeRenderOption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeValuesInResponse' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingRequest.php
new file mode 100644
index 00000000..37ebaab0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddBandingRequest extends Google_Model
+{
+ protected $bandedRangeType = 'Google_Service_Sheets_BandedRange';
+ protected $bandedRangeDataType = '';
+
+ public function setBandedRange(Google_Service_Sheets_BandedRange $bandedRange)
+ {
+ $this->bandedRange = $bandedRange;
+ }
+ public function getBandedRange()
+ {
+ return $this->bandedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingResponse.php
new file mode 100644
index 00000000..113cf126
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddBandingResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddBandingResponse extends Google_Model
+{
+ protected $bandedRangeType = 'Google_Service_Sheets_BandedRange';
+ protected $bandedRangeDataType = '';
+
+ public function setBandedRange(Google_Service_Sheets_BandedRange $bandedRange)
+ {
+ $this->bandedRange = $bandedRange;
+ }
+ public function getBandedRange()
+ {
+ return $this->bandedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartRequest.php
new file mode 100644
index 00000000..2bfa3275
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddChartRequest extends Google_Model
+{
+ protected $chartType = 'Google_Service_Sheets_EmbeddedChart';
+ protected $chartDataType = '';
+
+ public function setChart(Google_Service_Sheets_EmbeddedChart $chart)
+ {
+ $this->chart = $chart;
+ }
+ public function getChart()
+ {
+ return $this->chart;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartResponse.php
new file mode 100644
index 00000000..9d3f1302
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddChartResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddChartResponse extends Google_Model
+{
+ protected $chartType = 'Google_Service_Sheets_EmbeddedChart';
+ protected $chartDataType = '';
+
+ public function setChart(Google_Service_Sheets_EmbeddedChart $chart)
+ {
+ $this->chart = $chart;
+ }
+ public function getChart()
+ {
+ return $this->chart;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddConditionalFormatRuleRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddConditionalFormatRuleRequest.php
new file mode 100644
index 00000000..3a182df3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddConditionalFormatRuleRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddConditionalFormatRuleRequest extends Google_Model
+{
+ public $index;
+ protected $ruleType = 'Google_Service_Sheets_ConditionalFormatRule';
+ protected $ruleDataType = '';
+
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setRule(Google_Service_Sheets_ConditionalFormatRule $rule)
+ {
+ $this->rule = $rule;
+ }
+ public function getRule()
+ {
+ return $this->rule;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewRequest.php
new file mode 100644
index 00000000..6128be09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddFilterViewRequest extends Google_Model
+{
+ protected $filterType = 'Google_Service_Sheets_FilterView';
+ protected $filterDataType = '';
+
+ public function setFilter(Google_Service_Sheets_FilterView $filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewResponse.php
new file mode 100644
index 00000000..590570c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddFilterViewResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddFilterViewResponse extends Google_Model
+{
+ protected $filterType = 'Google_Service_Sheets_FilterView';
+ protected $filterDataType = '';
+
+ public function setFilter(Google_Service_Sheets_FilterView $filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeRequest.php
new file mode 100644
index 00000000..b13259d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddNamedRangeRequest extends Google_Model
+{
+ protected $namedRangeType = 'Google_Service_Sheets_NamedRange';
+ protected $namedRangeDataType = '';
+
+ public function setNamedRange(Google_Service_Sheets_NamedRange $namedRange)
+ {
+ $this->namedRange = $namedRange;
+ }
+ public function getNamedRange()
+ {
+ return $this->namedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeResponse.php
new file mode 100644
index 00000000..67899f1e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddNamedRangeResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddNamedRangeResponse extends Google_Model
+{
+ protected $namedRangeType = 'Google_Service_Sheets_NamedRange';
+ protected $namedRangeDataType = '';
+
+ public function setNamedRange(Google_Service_Sheets_NamedRange $namedRange)
+ {
+ $this->namedRange = $namedRange;
+ }
+ public function getNamedRange()
+ {
+ return $this->namedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeRequest.php
new file mode 100644
index 00000000..09d71864
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddProtectedRangeRequest extends Google_Model
+{
+ protected $protectedRangeType = 'Google_Service_Sheets_ProtectedRange';
+ protected $protectedRangeDataType = '';
+
+ public function setProtectedRange(Google_Service_Sheets_ProtectedRange $protectedRange)
+ {
+ $this->protectedRange = $protectedRange;
+ }
+ public function getProtectedRange()
+ {
+ return $this->protectedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeResponse.php
new file mode 100644
index 00000000..9cae479a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddProtectedRangeResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddProtectedRangeResponse extends Google_Model
+{
+ protected $protectedRangeType = 'Google_Service_Sheets_ProtectedRange';
+ protected $protectedRangeDataType = '';
+
+ public function setProtectedRange(Google_Service_Sheets_ProtectedRange $protectedRange)
+ {
+ $this->protectedRange = $protectedRange;
+ }
+ public function getProtectedRange()
+ {
+ return $this->protectedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetRequest.php
new file mode 100644
index 00000000..fafb3a6c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddSheetRequest extends Google_Model
+{
+ protected $propertiesType = 'Google_Service_Sheets_SheetProperties';
+ protected $propertiesDataType = '';
+
+ public function setProperties(Google_Service_Sheets_SheetProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetResponse.php
new file mode 100644
index 00000000..bf097025
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AddSheetResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AddSheetResponse extends Google_Model
+{
+ protected $propertiesType = 'Google_Service_Sheets_SheetProperties';
+ protected $propertiesDataType = '';
+
+ public function setProperties(Google_Service_Sheets_SheetProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendCellsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendCellsRequest.php
new file mode 100644
index 00000000..b4d917a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendCellsRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AppendCellsRequest extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $fields;
+ protected $rowsType = 'Google_Service_Sheets_RowData';
+ protected $rowsDataType = 'array';
+ public $sheetId;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendDimensionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendDimensionRequest.php
new file mode 100644
index 00000000..0fcf960c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendDimensionRequest.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AppendDimensionRequest extends Google_Model
+{
+ public $dimension;
+ public $length;
+ public $sheetId;
+
+ public function setDimension($dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setLength($length)
+ {
+ $this->length = $length;
+ }
+ public function getLength()
+ {
+ return $this->length;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendValuesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendValuesResponse.php
new file mode 100644
index 00000000..8c88ac22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AppendValuesResponse.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AppendValuesResponse extends Google_Model
+{
+ public $spreadsheetId;
+ public $tableRange;
+ protected $updatesType = 'Google_Service_Sheets_UpdateValuesResponse';
+ protected $updatesDataType = '';
+
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+ public function setTableRange($tableRange)
+ {
+ $this->tableRange = $tableRange;
+ }
+ public function getTableRange()
+ {
+ return $this->tableRange;
+ }
+ public function setUpdates(Google_Service_Sheets_UpdateValuesResponse $updates)
+ {
+ $this->updates = $updates;
+ }
+ public function getUpdates()
+ {
+ return $this->updates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoFillRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoFillRequest.php
new file mode 100644
index 00000000..ef69a642
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoFillRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AutoFillRequest extends Google_Model
+{
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $sourceAndDestinationType = 'Google_Service_Sheets_SourceAndDestination';
+ protected $sourceAndDestinationDataType = '';
+ public $useAlternateSeries;
+
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setSourceAndDestination(Google_Service_Sheets_SourceAndDestination $sourceAndDestination)
+ {
+ $this->sourceAndDestination = $sourceAndDestination;
+ }
+ public function getSourceAndDestination()
+ {
+ return $this->sourceAndDestination;
+ }
+ public function setUseAlternateSeries($useAlternateSeries)
+ {
+ $this->useAlternateSeries = $useAlternateSeries;
+ }
+ public function getUseAlternateSeries()
+ {
+ return $this->useAlternateSeries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoResizeDimensionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoResizeDimensionsRequest.php
new file mode 100644
index 00000000..acd9caec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/AutoResizeDimensionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_AutoResizeDimensionsRequest extends Google_Model
+{
+ protected $dimensionsType = 'Google_Service_Sheets_DimensionRange';
+ protected $dimensionsDataType = '';
+
+ public function setDimensions(Google_Service_Sheets_DimensionRange $dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandedRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandedRange.php
new file mode 100644
index 00000000..c3dfb2f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandedRange.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BandedRange extends Google_Model
+{
+ public $bandedRangeId;
+ protected $columnPropertiesType = 'Google_Service_Sheets_BandingProperties';
+ protected $columnPropertiesDataType = '';
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $rowPropertiesType = 'Google_Service_Sheets_BandingProperties';
+ protected $rowPropertiesDataType = '';
+
+ public function setBandedRangeId($bandedRangeId)
+ {
+ $this->bandedRangeId = $bandedRangeId;
+ }
+ public function getBandedRangeId()
+ {
+ return $this->bandedRangeId;
+ }
+ public function setColumnProperties(Google_Service_Sheets_BandingProperties $columnProperties)
+ {
+ $this->columnProperties = $columnProperties;
+ }
+ public function getColumnProperties()
+ {
+ return $this->columnProperties;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setRowProperties(Google_Service_Sheets_BandingProperties $rowProperties)
+ {
+ $this->rowProperties = $rowProperties;
+ }
+ public function getRowProperties()
+ {
+ return $this->rowProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandingProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandingProperties.php
new file mode 100644
index 00000000..e146ffcb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BandingProperties.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BandingProperties extends Google_Model
+{
+ protected $firstBandColorType = 'Google_Service_Sheets_Color';
+ protected $firstBandColorDataType = '';
+ protected $footerColorType = 'Google_Service_Sheets_Color';
+ protected $footerColorDataType = '';
+ protected $headerColorType = 'Google_Service_Sheets_Color';
+ protected $headerColorDataType = '';
+ protected $secondBandColorType = 'Google_Service_Sheets_Color';
+ protected $secondBandColorDataType = '';
+
+ public function setFirstBandColor(Google_Service_Sheets_Color $firstBandColor)
+ {
+ $this->firstBandColor = $firstBandColor;
+ }
+ public function getFirstBandColor()
+ {
+ return $this->firstBandColor;
+ }
+ public function setFooterColor(Google_Service_Sheets_Color $footerColor)
+ {
+ $this->footerColor = $footerColor;
+ }
+ public function getFooterColor()
+ {
+ return $this->footerColor;
+ }
+ public function setHeaderColor(Google_Service_Sheets_Color $headerColor)
+ {
+ $this->headerColor = $headerColor;
+ }
+ public function getHeaderColor()
+ {
+ return $this->headerColor;
+ }
+ public function setSecondBandColor(Google_Service_Sheets_Color $secondBandColor)
+ {
+ $this->secondBandColor = $secondBandColor;
+ }
+ public function getSecondBandColor()
+ {
+ return $this->secondBandColor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartAxis.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartAxis.php
new file mode 100644
index 00000000..2c2482a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartAxis.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BasicChartAxis extends Google_Model
+{
+ protected $formatType = 'Google_Service_Sheets_TextFormat';
+ protected $formatDataType = '';
+ public $position;
+ public $title;
+
+ public function setFormat(Google_Service_Sheets_TextFormat $format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setPosition($position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartDomain.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartDomain.php
new file mode 100644
index 00000000..4a770999
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartDomain.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BasicChartDomain extends Google_Model
+{
+ protected $domainType = 'Google_Service_Sheets_ChartData';
+ protected $domainDataType = '';
+
+ public function setDomain(Google_Service_Sheets_ChartData $domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSeries.php
new file mode 100644
index 00000000..02080351
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSeries.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BasicChartSeries extends Google_Model
+{
+ protected $seriesType = 'Google_Service_Sheets_ChartData';
+ protected $seriesDataType = '';
+ public $targetAxis;
+ public $type;
+
+ public function setSeries(Google_Service_Sheets_ChartData $series)
+ {
+ $this->series = $series;
+ }
+ public function getSeries()
+ {
+ return $this->series;
+ }
+ public function setTargetAxis($targetAxis)
+ {
+ $this->targetAxis = $targetAxis;
+ }
+ public function getTargetAxis()
+ {
+ return $this->targetAxis;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSpec.php
new file mode 100644
index 00000000..e54738ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicChartSpec.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BasicChartSpec extends Google_Collection
+{
+ protected $collection_key = 'series';
+ protected $axisType = 'Google_Service_Sheets_BasicChartAxis';
+ protected $axisDataType = 'array';
+ public $chartType;
+ protected $domainsType = 'Google_Service_Sheets_BasicChartDomain';
+ protected $domainsDataType = 'array';
+ public $headerCount;
+ public $legendPosition;
+ protected $seriesType = 'Google_Service_Sheets_BasicChartSeries';
+ protected $seriesDataType = 'array';
+
+ public function setAxis($axis)
+ {
+ $this->axis = $axis;
+ }
+ public function getAxis()
+ {
+ return $this->axis;
+ }
+ public function setChartType($chartType)
+ {
+ $this->chartType = $chartType;
+ }
+ public function getChartType()
+ {
+ return $this->chartType;
+ }
+ public function setDomains($domains)
+ {
+ $this->domains = $domains;
+ }
+ public function getDomains()
+ {
+ return $this->domains;
+ }
+ public function setHeaderCount($headerCount)
+ {
+ $this->headerCount = $headerCount;
+ }
+ public function getHeaderCount()
+ {
+ return $this->headerCount;
+ }
+ public function setLegendPosition($legendPosition)
+ {
+ $this->legendPosition = $legendPosition;
+ }
+ public function getLegendPosition()
+ {
+ return $this->legendPosition;
+ }
+ public function setSeries($series)
+ {
+ $this->series = $series;
+ }
+ public function getSeries()
+ {
+ return $this->series;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicFilter.php
new file mode 100644
index 00000000..b6f46494
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BasicFilter.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BasicFilter extends Google_Collection
+{
+ protected $collection_key = 'sortSpecs';
+ protected $criteriaType = 'Google_Service_Sheets_FilterCriteria';
+ protected $criteriaDataType = 'map';
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $sortSpecsType = 'Google_Service_Sheets_SortSpec';
+ protected $sortSpecsDataType = 'array';
+
+ public function setCriteria($criteria)
+ {
+ $this->criteria = $criteria;
+ }
+ public function getCriteria()
+ {
+ return $this->criteria;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setSortSpecs($sortSpecs)
+ {
+ $this->sortSpecs = $sortSpecs;
+ }
+ public function getSortSpecs()
+ {
+ return $this->sortSpecs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesRequest.php
new file mode 100644
index 00000000..aa48408b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BatchClearValuesRequest extends Google_Collection
+{
+ protected $collection_key = 'ranges';
+ public $ranges;
+
+ public function setRanges($ranges)
+ {
+ $this->ranges = $ranges;
+ }
+ public function getRanges()
+ {
+ return $this->ranges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesResponse.php
new file mode 100644
index 00000000..f3d5c571
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchClearValuesResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BatchClearValuesResponse extends Google_Collection
+{
+ protected $collection_key = 'clearedRanges';
+ public $clearedRanges;
+ public $spreadsheetId;
+
+ public function setClearedRanges($clearedRanges)
+ {
+ $this->clearedRanges = $clearedRanges;
+ }
+ public function getClearedRanges()
+ {
+ return $this->clearedRanges;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchGetValuesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchGetValuesResponse.php
new file mode 100644
index 00000000..70da92cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchGetValuesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BatchGetValuesResponse extends Google_Collection
+{
+ protected $collection_key = 'valueRanges';
+ public $spreadsheetId;
+ protected $valueRangesType = 'Google_Service_Sheets_ValueRange';
+ protected $valueRangesDataType = 'array';
+
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+ public function setValueRanges($valueRanges)
+ {
+ $this->valueRanges = $valueRanges;
+ }
+ public function getValueRanges()
+ {
+ return $this->valueRanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetRequest.php
new file mode 100644
index 00000000..a8547419
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetRequest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BatchUpdateSpreadsheetRequest extends Google_Collection
+{
+ protected $collection_key = 'responseRanges';
+ public $includeSpreadsheetInResponse;
+ protected $requestsType = 'Google_Service_Sheets_Request';
+ protected $requestsDataType = 'array';
+ public $responseIncludeGridData;
+ public $responseRanges;
+
+ public function setIncludeSpreadsheetInResponse($includeSpreadsheetInResponse)
+ {
+ $this->includeSpreadsheetInResponse = $includeSpreadsheetInResponse;
+ }
+ public function getIncludeSpreadsheetInResponse()
+ {
+ return $this->includeSpreadsheetInResponse;
+ }
+ public function setRequests($requests)
+ {
+ $this->requests = $requests;
+ }
+ public function getRequests()
+ {
+ return $this->requests;
+ }
+ public function setResponseIncludeGridData($responseIncludeGridData)
+ {
+ $this->responseIncludeGridData = $responseIncludeGridData;
+ }
+ public function getResponseIncludeGridData()
+ {
+ return $this->responseIncludeGridData;
+ }
+ public function setResponseRanges($responseRanges)
+ {
+ $this->responseRanges = $responseRanges;
+ }
+ public function getResponseRanges()
+ {
+ return $this->responseRanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetResponse.php
new file mode 100644
index 00000000..adc77749
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateSpreadsheetResponse.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BatchUpdateSpreadsheetResponse extends Google_Collection
+{
+ protected $collection_key = 'replies';
+ protected $repliesType = 'Google_Service_Sheets_Response';
+ protected $repliesDataType = 'array';
+ public $spreadsheetId;
+ protected $updatedSpreadsheetType = 'Google_Service_Sheets_Spreadsheet';
+ protected $updatedSpreadsheetDataType = '';
+
+ public function setReplies($replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+ public function setUpdatedSpreadsheet(Google_Service_Sheets_Spreadsheet $updatedSpreadsheet)
+ {
+ $this->updatedSpreadsheet = $updatedSpreadsheet;
+ }
+ public function getUpdatedSpreadsheet()
+ {
+ return $this->updatedSpreadsheet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesRequest.php
new file mode 100644
index 00000000..e7052497
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesRequest.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BatchUpdateValuesRequest extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $dataType = 'Google_Service_Sheets_ValueRange';
+ protected $dataDataType = 'array';
+ public $includeValuesInResponse;
+ public $responseDateTimeRenderOption;
+ public $responseValueRenderOption;
+ public $valueInputOption;
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setIncludeValuesInResponse($includeValuesInResponse)
+ {
+ $this->includeValuesInResponse = $includeValuesInResponse;
+ }
+ public function getIncludeValuesInResponse()
+ {
+ return $this->includeValuesInResponse;
+ }
+ public function setResponseDateTimeRenderOption($responseDateTimeRenderOption)
+ {
+ $this->responseDateTimeRenderOption = $responseDateTimeRenderOption;
+ }
+ public function getResponseDateTimeRenderOption()
+ {
+ return $this->responseDateTimeRenderOption;
+ }
+ public function setResponseValueRenderOption($responseValueRenderOption)
+ {
+ $this->responseValueRenderOption = $responseValueRenderOption;
+ }
+ public function getResponseValueRenderOption()
+ {
+ return $this->responseValueRenderOption;
+ }
+ public function setValueInputOption($valueInputOption)
+ {
+ $this->valueInputOption = $valueInputOption;
+ }
+ public function getValueInputOption()
+ {
+ return $this->valueInputOption;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesResponse.php
new file mode 100644
index 00000000..3d9364b4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BatchUpdateValuesResponse.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BatchUpdateValuesResponse extends Google_Collection
+{
+ protected $collection_key = 'responses';
+ protected $responsesType = 'Google_Service_Sheets_UpdateValuesResponse';
+ protected $responsesDataType = 'array';
+ public $spreadsheetId;
+ public $totalUpdatedCells;
+ public $totalUpdatedColumns;
+ public $totalUpdatedRows;
+ public $totalUpdatedSheets;
+
+ public function setResponses($responses)
+ {
+ $this->responses = $responses;
+ }
+ public function getResponses()
+ {
+ return $this->responses;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+ public function setTotalUpdatedCells($totalUpdatedCells)
+ {
+ $this->totalUpdatedCells = $totalUpdatedCells;
+ }
+ public function getTotalUpdatedCells()
+ {
+ return $this->totalUpdatedCells;
+ }
+ public function setTotalUpdatedColumns($totalUpdatedColumns)
+ {
+ $this->totalUpdatedColumns = $totalUpdatedColumns;
+ }
+ public function getTotalUpdatedColumns()
+ {
+ return $this->totalUpdatedColumns;
+ }
+ public function setTotalUpdatedRows($totalUpdatedRows)
+ {
+ $this->totalUpdatedRows = $totalUpdatedRows;
+ }
+ public function getTotalUpdatedRows()
+ {
+ return $this->totalUpdatedRows;
+ }
+ public function setTotalUpdatedSheets($totalUpdatedSheets)
+ {
+ $this->totalUpdatedSheets = $totalUpdatedSheets;
+ }
+ public function getTotalUpdatedSheets()
+ {
+ return $this->totalUpdatedSheets;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanCondition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanCondition.php
new file mode 100644
index 00000000..d180587f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanCondition.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BooleanCondition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $type;
+ protected $valuesType = 'Google_Service_Sheets_ConditionValue';
+ protected $valuesDataType = 'array';
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanRule.php
new file mode 100644
index 00000000..d24200bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/BooleanRule.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_BooleanRule extends Google_Model
+{
+ protected $conditionType = 'Google_Service_Sheets_BooleanCondition';
+ protected $conditionDataType = '';
+ protected $formatType = 'Google_Service_Sheets_CellFormat';
+ protected $formatDataType = '';
+
+ public function setCondition(Google_Service_Sheets_BooleanCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setFormat(Google_Service_Sheets_CellFormat $format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Border.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Border.php
new file mode 100644
index 00000000..9ddbfc0e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Border.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Border extends Google_Model
+{
+ protected $colorType = 'Google_Service_Sheets_Color';
+ protected $colorDataType = '';
+ public $style;
+ public $width;
+
+ public function setColor(Google_Service_Sheets_Color $color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setStyle($style)
+ {
+ $this->style = $style;
+ }
+ public function getStyle()
+ {
+ return $this->style;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Borders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Borders.php
new file mode 100644
index 00000000..46308e90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Borders.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Borders extends Google_Model
+{
+ protected $bottomType = 'Google_Service_Sheets_Border';
+ protected $bottomDataType = '';
+ protected $leftType = 'Google_Service_Sheets_Border';
+ protected $leftDataType = '';
+ protected $rightType = 'Google_Service_Sheets_Border';
+ protected $rightDataType = '';
+ protected $topType = 'Google_Service_Sheets_Border';
+ protected $topDataType = '';
+
+ public function setBottom(Google_Service_Sheets_Border $bottom)
+ {
+ $this->bottom = $bottom;
+ }
+ public function getBottom()
+ {
+ return $this->bottom;
+ }
+ public function setLeft(Google_Service_Sheets_Border $left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setRight(Google_Service_Sheets_Border $right)
+ {
+ $this->right = $right;
+ }
+ public function getRight()
+ {
+ return $this->right;
+ }
+ public function setTop(Google_Service_Sheets_Border $top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellData.php
new file mode 100644
index 00000000..737155c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellData.php
@@ -0,0 +1,119 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_CellData extends Google_Collection
+{
+ protected $collection_key = 'textFormatRuns';
+ protected $dataValidationType = 'Google_Service_Sheets_DataValidationRule';
+ protected $dataValidationDataType = '';
+ protected $effectiveFormatType = 'Google_Service_Sheets_CellFormat';
+ protected $effectiveFormatDataType = '';
+ protected $effectiveValueType = 'Google_Service_Sheets_ExtendedValue';
+ protected $effectiveValueDataType = '';
+ public $formattedValue;
+ public $hyperlink;
+ public $note;
+ protected $pivotTableType = 'Google_Service_Sheets_PivotTable';
+ protected $pivotTableDataType = '';
+ protected $textFormatRunsType = 'Google_Service_Sheets_TextFormatRun';
+ protected $textFormatRunsDataType = 'array';
+ protected $userEnteredFormatType = 'Google_Service_Sheets_CellFormat';
+ protected $userEnteredFormatDataType = '';
+ protected $userEnteredValueType = 'Google_Service_Sheets_ExtendedValue';
+ protected $userEnteredValueDataType = '';
+
+ public function setDataValidation(Google_Service_Sheets_DataValidationRule $dataValidation)
+ {
+ $this->dataValidation = $dataValidation;
+ }
+ public function getDataValidation()
+ {
+ return $this->dataValidation;
+ }
+ public function setEffectiveFormat(Google_Service_Sheets_CellFormat $effectiveFormat)
+ {
+ $this->effectiveFormat = $effectiveFormat;
+ }
+ public function getEffectiveFormat()
+ {
+ return $this->effectiveFormat;
+ }
+ public function setEffectiveValue(Google_Service_Sheets_ExtendedValue $effectiveValue)
+ {
+ $this->effectiveValue = $effectiveValue;
+ }
+ public function getEffectiveValue()
+ {
+ return $this->effectiveValue;
+ }
+ public function setFormattedValue($formattedValue)
+ {
+ $this->formattedValue = $formattedValue;
+ }
+ public function getFormattedValue()
+ {
+ return $this->formattedValue;
+ }
+ public function setHyperlink($hyperlink)
+ {
+ $this->hyperlink = $hyperlink;
+ }
+ public function getHyperlink()
+ {
+ return $this->hyperlink;
+ }
+ public function setNote($note)
+ {
+ $this->note = $note;
+ }
+ public function getNote()
+ {
+ return $this->note;
+ }
+ public function setPivotTable(Google_Service_Sheets_PivotTable $pivotTable)
+ {
+ $this->pivotTable = $pivotTable;
+ }
+ public function getPivotTable()
+ {
+ return $this->pivotTable;
+ }
+ public function setTextFormatRuns($textFormatRuns)
+ {
+ $this->textFormatRuns = $textFormatRuns;
+ }
+ public function getTextFormatRuns()
+ {
+ return $this->textFormatRuns;
+ }
+ public function setUserEnteredFormat(Google_Service_Sheets_CellFormat $userEnteredFormat)
+ {
+ $this->userEnteredFormat = $userEnteredFormat;
+ }
+ public function getUserEnteredFormat()
+ {
+ return $this->userEnteredFormat;
+ }
+ public function setUserEnteredValue(Google_Service_Sheets_ExtendedValue $userEnteredValue)
+ {
+ $this->userEnteredValue = $userEnteredValue;
+ }
+ public function getUserEnteredValue()
+ {
+ return $this->userEnteredValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellFormat.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellFormat.php
new file mode 100644
index 00000000..395fb851
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CellFormat.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_CellFormat extends Google_Model
+{
+ protected $backgroundColorType = 'Google_Service_Sheets_Color';
+ protected $backgroundColorDataType = '';
+ protected $bordersType = 'Google_Service_Sheets_Borders';
+ protected $bordersDataType = '';
+ public $horizontalAlignment;
+ public $hyperlinkDisplayType;
+ protected $numberFormatType = 'Google_Service_Sheets_NumberFormat';
+ protected $numberFormatDataType = '';
+ protected $paddingType = 'Google_Service_Sheets_Padding';
+ protected $paddingDataType = '';
+ public $textDirection;
+ protected $textFormatType = 'Google_Service_Sheets_TextFormat';
+ protected $textFormatDataType = '';
+ protected $textRotationType = 'Google_Service_Sheets_TextRotation';
+ protected $textRotationDataType = '';
+ public $verticalAlignment;
+ public $wrapStrategy;
+
+ public function setBackgroundColor(Google_Service_Sheets_Color $backgroundColor)
+ {
+ $this->backgroundColor = $backgroundColor;
+ }
+ public function getBackgroundColor()
+ {
+ return $this->backgroundColor;
+ }
+ public function setBorders(Google_Service_Sheets_Borders $borders)
+ {
+ $this->borders = $borders;
+ }
+ public function getBorders()
+ {
+ return $this->borders;
+ }
+ public function setHorizontalAlignment($horizontalAlignment)
+ {
+ $this->horizontalAlignment = $horizontalAlignment;
+ }
+ public function getHorizontalAlignment()
+ {
+ return $this->horizontalAlignment;
+ }
+ public function setHyperlinkDisplayType($hyperlinkDisplayType)
+ {
+ $this->hyperlinkDisplayType = $hyperlinkDisplayType;
+ }
+ public function getHyperlinkDisplayType()
+ {
+ return $this->hyperlinkDisplayType;
+ }
+ public function setNumberFormat(Google_Service_Sheets_NumberFormat $numberFormat)
+ {
+ $this->numberFormat = $numberFormat;
+ }
+ public function getNumberFormat()
+ {
+ return $this->numberFormat;
+ }
+ public function setPadding(Google_Service_Sheets_Padding $padding)
+ {
+ $this->padding = $padding;
+ }
+ public function getPadding()
+ {
+ return $this->padding;
+ }
+ public function setTextDirection($textDirection)
+ {
+ $this->textDirection = $textDirection;
+ }
+ public function getTextDirection()
+ {
+ return $this->textDirection;
+ }
+ public function setTextFormat(Google_Service_Sheets_TextFormat $textFormat)
+ {
+ $this->textFormat = $textFormat;
+ }
+ public function getTextFormat()
+ {
+ return $this->textFormat;
+ }
+ public function setTextRotation(Google_Service_Sheets_TextRotation $textRotation)
+ {
+ $this->textRotation = $textRotation;
+ }
+ public function getTextRotation()
+ {
+ return $this->textRotation;
+ }
+ public function setVerticalAlignment($verticalAlignment)
+ {
+ $this->verticalAlignment = $verticalAlignment;
+ }
+ public function getVerticalAlignment()
+ {
+ return $this->verticalAlignment;
+ }
+ public function setWrapStrategy($wrapStrategy)
+ {
+ $this->wrapStrategy = $wrapStrategy;
+ }
+ public function getWrapStrategy()
+ {
+ return $this->wrapStrategy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartData.php
new file mode 100644
index 00000000..c9e96f12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartData.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ChartData extends Google_Model
+{
+ protected $sourceRangeType = 'Google_Service_Sheets_ChartSourceRange';
+ protected $sourceRangeDataType = '';
+
+ public function setSourceRange(Google_Service_Sheets_ChartSourceRange $sourceRange)
+ {
+ $this->sourceRange = $sourceRange;
+ }
+ public function getSourceRange()
+ {
+ return $this->sourceRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSourceRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSourceRange.php
new file mode 100644
index 00000000..b8be07ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSourceRange.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ChartSourceRange extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ protected $sourcesType = 'Google_Service_Sheets_GridRange';
+ protected $sourcesDataType = 'array';
+
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSpec.php
new file mode 100644
index 00000000..44e0e944
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ChartSpec.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ChartSpec extends Google_Model
+{
+ protected $basicChartType = 'Google_Service_Sheets_BasicChartSpec';
+ protected $basicChartDataType = '';
+ public $hiddenDimensionStrategy;
+ protected $pieChartType = 'Google_Service_Sheets_PieChartSpec';
+ protected $pieChartDataType = '';
+ public $title;
+
+ public function setBasicChart(Google_Service_Sheets_BasicChartSpec $basicChart)
+ {
+ $this->basicChart = $basicChart;
+ }
+ public function getBasicChart()
+ {
+ return $this->basicChart;
+ }
+ public function setHiddenDimensionStrategy($hiddenDimensionStrategy)
+ {
+ $this->hiddenDimensionStrategy = $hiddenDimensionStrategy;
+ }
+ public function getHiddenDimensionStrategy()
+ {
+ return $this->hiddenDimensionStrategy;
+ }
+ public function setPieChart(Google_Service_Sheets_PieChartSpec $pieChart)
+ {
+ $this->pieChart = $pieChart;
+ }
+ public function getPieChart()
+ {
+ return $this->pieChart;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearBasicFilterRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearBasicFilterRequest.php
new file mode 100644
index 00000000..e76fd116
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearBasicFilterRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ClearBasicFilterRequest extends Google_Model
+{
+ public $sheetId;
+
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesRequest.php
new file mode 100644
index 00000000..f0d93815
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ClearValuesRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesResponse.php
new file mode 100644
index 00000000..76365b24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ClearValuesResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ClearValuesResponse extends Google_Model
+{
+ public $clearedRange;
+ public $spreadsheetId;
+
+ public function setClearedRange($clearedRange)
+ {
+ $this->clearedRange = $clearedRange;
+ }
+ public function getClearedRange()
+ {
+ return $this->clearedRange;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Color.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Color.php
new file mode 100644
index 00000000..bd8732a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Color.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Color extends Google_Model
+{
+ public $alpha;
+ public $blue;
+ public $green;
+ public $red;
+
+ public function setAlpha($alpha)
+ {
+ $this->alpha = $alpha;
+ }
+ public function getAlpha()
+ {
+ return $this->alpha;
+ }
+ public function setBlue($blue)
+ {
+ $this->blue = $blue;
+ }
+ public function getBlue()
+ {
+ return $this->blue;
+ }
+ public function setGreen($green)
+ {
+ $this->green = $green;
+ }
+ public function getGreen()
+ {
+ return $this->green;
+ }
+ public function setRed($red)
+ {
+ $this->red = $red;
+ }
+ public function getRed()
+ {
+ return $this->red;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionValue.php
new file mode 100644
index 00000000..6979ec2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionValue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ConditionValue extends Google_Model
+{
+ public $relativeDate;
+ public $userEnteredValue;
+
+ public function setRelativeDate($relativeDate)
+ {
+ $this->relativeDate = $relativeDate;
+ }
+ public function getRelativeDate()
+ {
+ return $this->relativeDate;
+ }
+ public function setUserEnteredValue($userEnteredValue)
+ {
+ $this->userEnteredValue = $userEnteredValue;
+ }
+ public function getUserEnteredValue()
+ {
+ return $this->userEnteredValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionalFormatRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionalFormatRule.php
new file mode 100644
index 00000000..965429d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ConditionalFormatRule.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ConditionalFormatRule extends Google_Collection
+{
+ protected $collection_key = 'ranges';
+ protected $booleanRuleType = 'Google_Service_Sheets_BooleanRule';
+ protected $booleanRuleDataType = '';
+ protected $gradientRuleType = 'Google_Service_Sheets_GradientRule';
+ protected $gradientRuleDataType = '';
+ protected $rangesType = 'Google_Service_Sheets_GridRange';
+ protected $rangesDataType = 'array';
+
+ public function setBooleanRule(Google_Service_Sheets_BooleanRule $booleanRule)
+ {
+ $this->booleanRule = $booleanRule;
+ }
+ public function getBooleanRule()
+ {
+ return $this->booleanRule;
+ }
+ public function setGradientRule(Google_Service_Sheets_GradientRule $gradientRule)
+ {
+ $this->gradientRule = $gradientRule;
+ }
+ public function getGradientRule()
+ {
+ return $this->gradientRule;
+ }
+ public function setRanges($ranges)
+ {
+ $this->ranges = $ranges;
+ }
+ public function getRanges()
+ {
+ return $this->ranges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopyPasteRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopyPasteRequest.php
new file mode 100644
index 00000000..a0a890ef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopyPasteRequest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_CopyPasteRequest extends Google_Model
+{
+ protected $destinationType = 'Google_Service_Sheets_GridRange';
+ protected $destinationDataType = '';
+ public $pasteOrientation;
+ public $pasteType;
+ protected $sourceType = 'Google_Service_Sheets_GridRange';
+ protected $sourceDataType = '';
+
+ public function setDestination(Google_Service_Sheets_GridRange $destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setPasteOrientation($pasteOrientation)
+ {
+ $this->pasteOrientation = $pasteOrientation;
+ }
+ public function getPasteOrientation()
+ {
+ return $this->pasteOrientation;
+ }
+ public function setPasteType($pasteType)
+ {
+ $this->pasteType = $pasteType;
+ }
+ public function getPasteType()
+ {
+ return $this->pasteType;
+ }
+ public function setSource(Google_Service_Sheets_GridRange $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopySheetToAnotherSpreadsheetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopySheetToAnotherSpreadsheetRequest.php
new file mode 100644
index 00000000..13a56b1a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CopySheetToAnotherSpreadsheetRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_CopySheetToAnotherSpreadsheetRequest extends Google_Model
+{
+ public $destinationSpreadsheetId;
+
+ public function setDestinationSpreadsheetId($destinationSpreadsheetId)
+ {
+ $this->destinationSpreadsheetId = $destinationSpreadsheetId;
+ }
+ public function getDestinationSpreadsheetId()
+ {
+ return $this->destinationSpreadsheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CutPasteRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CutPasteRequest.php
new file mode 100644
index 00000000..8e3a2e05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/CutPasteRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_CutPasteRequest extends Google_Model
+{
+ protected $destinationType = 'Google_Service_Sheets_GridCoordinate';
+ protected $destinationDataType = '';
+ public $pasteType;
+ protected $sourceType = 'Google_Service_Sheets_GridRange';
+ protected $sourceDataType = '';
+
+ public function setDestination(Google_Service_Sheets_GridCoordinate $destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setPasteType($pasteType)
+ {
+ $this->pasteType = $pasteType;
+ }
+ public function getPasteType()
+ {
+ return $this->pasteType;
+ }
+ public function setSource(Google_Service_Sheets_GridRange $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DataValidationRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DataValidationRule.php
new file mode 100644
index 00000000..35aba97d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DataValidationRule.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DataValidationRule extends Google_Model
+{
+ protected $conditionType = 'Google_Service_Sheets_BooleanCondition';
+ protected $conditionDataType = '';
+ public $inputMessage;
+ public $showCustomUi;
+ public $strict;
+
+ public function setCondition(Google_Service_Sheets_BooleanCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setInputMessage($inputMessage)
+ {
+ $this->inputMessage = $inputMessage;
+ }
+ public function getInputMessage()
+ {
+ return $this->inputMessage;
+ }
+ public function setShowCustomUi($showCustomUi)
+ {
+ $this->showCustomUi = $showCustomUi;
+ }
+ public function getShowCustomUi()
+ {
+ return $this->showCustomUi;
+ }
+ public function setStrict($strict)
+ {
+ $this->strict = $strict;
+ }
+ public function getStrict()
+ {
+ return $this->strict;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteBandingRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteBandingRequest.php
new file mode 100644
index 00000000..71463ac3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteBandingRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteBandingRequest extends Google_Model
+{
+ public $bandedRangeId;
+
+ public function setBandedRangeId($bandedRangeId)
+ {
+ $this->bandedRangeId = $bandedRangeId;
+ }
+ public function getBandedRangeId()
+ {
+ return $this->bandedRangeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleRequest.php
new file mode 100644
index 00000000..971327a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteConditionalFormatRuleRequest extends Google_Model
+{
+ public $index;
+ public $sheetId;
+
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleResponse.php
new file mode 100644
index 00000000..414f9c9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteConditionalFormatRuleResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteConditionalFormatRuleResponse extends Google_Model
+{
+ protected $ruleType = 'Google_Service_Sheets_ConditionalFormatRule';
+ protected $ruleDataType = '';
+
+ public function setRule(Google_Service_Sheets_ConditionalFormatRule $rule)
+ {
+ $this->rule = $rule;
+ }
+ public function getRule()
+ {
+ return $this->rule;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionRequest.php
new file mode 100644
index 00000000..e0c79491
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteDimensionRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteDimensionRequest extends Google_Model
+{
+ protected $rangeType = 'Google_Service_Sheets_DimensionRange';
+ protected $rangeDataType = '';
+
+ public function setRange(Google_Service_Sheets_DimensionRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteEmbeddedObjectRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteEmbeddedObjectRequest.php
new file mode 100644
index 00000000..9a056420
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteEmbeddedObjectRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteEmbeddedObjectRequest extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteFilterViewRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteFilterViewRequest.php
new file mode 100644
index 00000000..0be66871
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteFilterViewRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteFilterViewRequest extends Google_Model
+{
+ public $filterId;
+
+ public function setFilterId($filterId)
+ {
+ $this->filterId = $filterId;
+ }
+ public function getFilterId()
+ {
+ return $this->filterId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteNamedRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteNamedRangeRequest.php
new file mode 100644
index 00000000..1296fbce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteNamedRangeRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteNamedRangeRequest extends Google_Model
+{
+ public $namedRangeId;
+
+ public function setNamedRangeId($namedRangeId)
+ {
+ $this->namedRangeId = $namedRangeId;
+ }
+ public function getNamedRangeId()
+ {
+ return $this->namedRangeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteProtectedRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteProtectedRangeRequest.php
new file mode 100644
index 00000000..cf375b7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteProtectedRangeRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteProtectedRangeRequest extends Google_Model
+{
+ public $protectedRangeId;
+
+ public function setProtectedRangeId($protectedRangeId)
+ {
+ $this->protectedRangeId = $protectedRangeId;
+ }
+ public function getProtectedRangeId()
+ {
+ return $this->protectedRangeId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteRangeRequest.php
new file mode 100644
index 00000000..d90b01da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteRangeRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteRangeRequest extends Google_Model
+{
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ public $shiftDimension;
+
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setShiftDimension($shiftDimension)
+ {
+ $this->shiftDimension = $shiftDimension;
+ }
+ public function getShiftDimension()
+ {
+ return $this->shiftDimension;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteSheetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteSheetRequest.php
new file mode 100644
index 00000000..3ac8ffac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DeleteSheetRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DeleteSheetRequest extends Google_Model
+{
+ public $sheetId;
+
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionProperties.php
new file mode 100644
index 00000000..154eb12e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionProperties.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DimensionProperties extends Google_Model
+{
+ public $hiddenByFilter;
+ public $hiddenByUser;
+ public $pixelSize;
+
+ public function setHiddenByFilter($hiddenByFilter)
+ {
+ $this->hiddenByFilter = $hiddenByFilter;
+ }
+ public function getHiddenByFilter()
+ {
+ return $this->hiddenByFilter;
+ }
+ public function setHiddenByUser($hiddenByUser)
+ {
+ $this->hiddenByUser = $hiddenByUser;
+ }
+ public function getHiddenByUser()
+ {
+ return $this->hiddenByUser;
+ }
+ public function setPixelSize($pixelSize)
+ {
+ $this->pixelSize = $pixelSize;
+ }
+ public function getPixelSize()
+ {
+ return $this->pixelSize;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionRange.php
new file mode 100644
index 00000000..b21351a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DimensionRange.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DimensionRange extends Google_Model
+{
+ public $dimension;
+ public $endIndex;
+ public $sheetId;
+ public $startIndex;
+
+ public function setDimension($dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setEndIndex($endIndex)
+ {
+ $this->endIndex = $endIndex;
+ }
+ public function getEndIndex()
+ {
+ return $this->endIndex;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewRequest.php
new file mode 100644
index 00000000..c9c1366d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DuplicateFilterViewRequest extends Google_Model
+{
+ public $filterId;
+
+ public function setFilterId($filterId)
+ {
+ $this->filterId = $filterId;
+ }
+ public function getFilterId()
+ {
+ return $this->filterId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewResponse.php
new file mode 100644
index 00000000..d220cfa7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateFilterViewResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DuplicateFilterViewResponse extends Google_Model
+{
+ protected $filterType = 'Google_Service_Sheets_FilterView';
+ protected $filterDataType = '';
+
+ public function setFilter(Google_Service_Sheets_FilterView $filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetRequest.php
new file mode 100644
index 00000000..80af6214
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetRequest.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DuplicateSheetRequest extends Google_Model
+{
+ public $insertSheetIndex;
+ public $newSheetId;
+ public $newSheetName;
+ public $sourceSheetId;
+
+ public function setInsertSheetIndex($insertSheetIndex)
+ {
+ $this->insertSheetIndex = $insertSheetIndex;
+ }
+ public function getInsertSheetIndex()
+ {
+ return $this->insertSheetIndex;
+ }
+ public function setNewSheetId($newSheetId)
+ {
+ $this->newSheetId = $newSheetId;
+ }
+ public function getNewSheetId()
+ {
+ return $this->newSheetId;
+ }
+ public function setNewSheetName($newSheetName)
+ {
+ $this->newSheetName = $newSheetName;
+ }
+ public function getNewSheetName()
+ {
+ return $this->newSheetName;
+ }
+ public function setSourceSheetId($sourceSheetId)
+ {
+ $this->sourceSheetId = $sourceSheetId;
+ }
+ public function getSourceSheetId()
+ {
+ return $this->sourceSheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetResponse.php
new file mode 100644
index 00000000..0080c3b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/DuplicateSheetResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_DuplicateSheetResponse extends Google_Model
+{
+ protected $propertiesType = 'Google_Service_Sheets_SheetProperties';
+ protected $propertiesDataType = '';
+
+ public function setProperties(Google_Service_Sheets_SheetProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Editors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Editors.php
new file mode 100644
index 00000000..0fd13e5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Editors.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Editors extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $domainUsersCanEdit;
+ public $groups;
+ public $users;
+
+ public function setDomainUsersCanEdit($domainUsersCanEdit)
+ {
+ $this->domainUsersCanEdit = $domainUsersCanEdit;
+ }
+ public function getDomainUsersCanEdit()
+ {
+ return $this->domainUsersCanEdit;
+ }
+ public function setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedChart.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedChart.php
new file mode 100644
index 00000000..e727fb51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedChart.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_EmbeddedChart extends Google_Model
+{
+ public $chartId;
+ protected $positionType = 'Google_Service_Sheets_EmbeddedObjectPosition';
+ protected $positionDataType = '';
+ protected $specType = 'Google_Service_Sheets_ChartSpec';
+ protected $specDataType = '';
+
+ public function setChartId($chartId)
+ {
+ $this->chartId = $chartId;
+ }
+ public function getChartId()
+ {
+ return $this->chartId;
+ }
+ public function setPosition(Google_Service_Sheets_EmbeddedObjectPosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setSpec(Google_Service_Sheets_ChartSpec $spec)
+ {
+ $this->spec = $spec;
+ }
+ public function getSpec()
+ {
+ return $this->spec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedObjectPosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedObjectPosition.php
new file mode 100644
index 00000000..96363fd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/EmbeddedObjectPosition.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_EmbeddedObjectPosition extends Google_Model
+{
+ public $newSheet;
+ protected $overlayPositionType = 'Google_Service_Sheets_OverlayPosition';
+ protected $overlayPositionDataType = '';
+ public $sheetId;
+
+ public function setNewSheet($newSheet)
+ {
+ $this->newSheet = $newSheet;
+ }
+ public function getNewSheet()
+ {
+ return $this->newSheet;
+ }
+ public function setOverlayPosition(Google_Service_Sheets_OverlayPosition $overlayPosition)
+ {
+ $this->overlayPosition = $overlayPosition;
+ }
+ public function getOverlayPosition()
+ {
+ return $this->overlayPosition;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ErrorValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ErrorValue.php
new file mode 100644
index 00000000..0686b232
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ErrorValue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ErrorValue extends Google_Model
+{
+ public $message;
+ public $type;
+
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ExtendedValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ExtendedValue.php
new file mode 100644
index 00000000..96423d65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ExtendedValue.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ExtendedValue extends Google_Model
+{
+ public $boolValue;
+ protected $errorValueType = 'Google_Service_Sheets_ErrorValue';
+ protected $errorValueDataType = '';
+ public $formulaValue;
+ public $numberValue;
+ public $stringValue;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setErrorValue(Google_Service_Sheets_ErrorValue $errorValue)
+ {
+ $this->errorValue = $errorValue;
+ }
+ public function getErrorValue()
+ {
+ return $this->errorValue;
+ }
+ public function setFormulaValue($formulaValue)
+ {
+ $this->formulaValue = $formulaValue;
+ }
+ public function getFormulaValue()
+ {
+ return $this->formulaValue;
+ }
+ public function setNumberValue($numberValue)
+ {
+ $this->numberValue = $numberValue;
+ }
+ public function getNumberValue()
+ {
+ return $this->numberValue;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterCriteria.php
new file mode 100644
index 00000000..2760f2b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterCriteria.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_FilterCriteria extends Google_Collection
+{
+ protected $collection_key = 'hiddenValues';
+ protected $conditionType = 'Google_Service_Sheets_BooleanCondition';
+ protected $conditionDataType = '';
+ public $hiddenValues;
+
+ public function setCondition(Google_Service_Sheets_BooleanCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setHiddenValues($hiddenValues)
+ {
+ $this->hiddenValues = $hiddenValues;
+ }
+ public function getHiddenValues()
+ {
+ return $this->hiddenValues;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterView.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterView.php
new file mode 100644
index 00000000..0a498f75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FilterView.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_FilterView extends Google_Collection
+{
+ protected $collection_key = 'sortSpecs';
+ protected $criteriaType = 'Google_Service_Sheets_FilterCriteria';
+ protected $criteriaDataType = 'map';
+ public $filterViewId;
+ public $namedRangeId;
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $sortSpecsType = 'Google_Service_Sheets_SortSpec';
+ protected $sortSpecsDataType = 'array';
+ public $title;
+
+ public function setCriteria($criteria)
+ {
+ $this->criteria = $criteria;
+ }
+ public function getCriteria()
+ {
+ return $this->criteria;
+ }
+ public function setFilterViewId($filterViewId)
+ {
+ $this->filterViewId = $filterViewId;
+ }
+ public function getFilterViewId()
+ {
+ return $this->filterViewId;
+ }
+ public function setNamedRangeId($namedRangeId)
+ {
+ $this->namedRangeId = $namedRangeId;
+ }
+ public function getNamedRangeId()
+ {
+ return $this->namedRangeId;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setSortSpecs($sortSpecs)
+ {
+ $this->sortSpecs = $sortSpecs;
+ }
+ public function getSortSpecs()
+ {
+ return $this->sortSpecs;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceRequest.php
new file mode 100644
index 00000000..73202ce6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceRequest.php
@@ -0,0 +1,103 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_FindReplaceRequest extends Google_Model
+{
+ public $allSheets;
+ public $find;
+ public $includeFormulas;
+ public $matchCase;
+ public $matchEntireCell;
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ public $replacement;
+ public $searchByRegex;
+ public $sheetId;
+
+ public function setAllSheets($allSheets)
+ {
+ $this->allSheets = $allSheets;
+ }
+ public function getAllSheets()
+ {
+ return $this->allSheets;
+ }
+ public function setFind($find)
+ {
+ $this->find = $find;
+ }
+ public function getFind()
+ {
+ return $this->find;
+ }
+ public function setIncludeFormulas($includeFormulas)
+ {
+ $this->includeFormulas = $includeFormulas;
+ }
+ public function getIncludeFormulas()
+ {
+ return $this->includeFormulas;
+ }
+ public function setMatchCase($matchCase)
+ {
+ $this->matchCase = $matchCase;
+ }
+ public function getMatchCase()
+ {
+ return $this->matchCase;
+ }
+ public function setMatchEntireCell($matchEntireCell)
+ {
+ $this->matchEntireCell = $matchEntireCell;
+ }
+ public function getMatchEntireCell()
+ {
+ return $this->matchEntireCell;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setReplacement($replacement)
+ {
+ $this->replacement = $replacement;
+ }
+ public function getReplacement()
+ {
+ return $this->replacement;
+ }
+ public function setSearchByRegex($searchByRegex)
+ {
+ $this->searchByRegex = $searchByRegex;
+ }
+ public function getSearchByRegex()
+ {
+ return $this->searchByRegex;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceResponse.php
new file mode 100644
index 00000000..119767fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/FindReplaceResponse.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_FindReplaceResponse extends Google_Model
+{
+ public $formulasChanged;
+ public $occurrencesChanged;
+ public $rowsChanged;
+ public $sheetsChanged;
+ public $valuesChanged;
+
+ public function setFormulasChanged($formulasChanged)
+ {
+ $this->formulasChanged = $formulasChanged;
+ }
+ public function getFormulasChanged()
+ {
+ return $this->formulasChanged;
+ }
+ public function setOccurrencesChanged($occurrencesChanged)
+ {
+ $this->occurrencesChanged = $occurrencesChanged;
+ }
+ public function getOccurrencesChanged()
+ {
+ return $this->occurrencesChanged;
+ }
+ public function setRowsChanged($rowsChanged)
+ {
+ $this->rowsChanged = $rowsChanged;
+ }
+ public function getRowsChanged()
+ {
+ return $this->rowsChanged;
+ }
+ public function setSheetsChanged($sheetsChanged)
+ {
+ $this->sheetsChanged = $sheetsChanged;
+ }
+ public function getSheetsChanged()
+ {
+ return $this->sheetsChanged;
+ }
+ public function setValuesChanged($valuesChanged)
+ {
+ $this->valuesChanged = $valuesChanged;
+ }
+ public function getValuesChanged()
+ {
+ return $this->valuesChanged;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GradientRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GradientRule.php
new file mode 100644
index 00000000..f06f9cc6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GradientRule.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_GradientRule extends Google_Model
+{
+ protected $maxpointType = 'Google_Service_Sheets_InterpolationPoint';
+ protected $maxpointDataType = '';
+ protected $midpointType = 'Google_Service_Sheets_InterpolationPoint';
+ protected $midpointDataType = '';
+ protected $minpointType = 'Google_Service_Sheets_InterpolationPoint';
+ protected $minpointDataType = '';
+
+ public function setMaxpoint(Google_Service_Sheets_InterpolationPoint $maxpoint)
+ {
+ $this->maxpoint = $maxpoint;
+ }
+ public function getMaxpoint()
+ {
+ return $this->maxpoint;
+ }
+ public function setMidpoint(Google_Service_Sheets_InterpolationPoint $midpoint)
+ {
+ $this->midpoint = $midpoint;
+ }
+ public function getMidpoint()
+ {
+ return $this->midpoint;
+ }
+ public function setMinpoint(Google_Service_Sheets_InterpolationPoint $minpoint)
+ {
+ $this->minpoint = $minpoint;
+ }
+ public function getMinpoint()
+ {
+ return $this->minpoint;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridCoordinate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridCoordinate.php
new file mode 100644
index 00000000..c92c07bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridCoordinate.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_GridCoordinate extends Google_Model
+{
+ public $columnIndex;
+ public $rowIndex;
+ public $sheetId;
+
+ public function setColumnIndex($columnIndex)
+ {
+ $this->columnIndex = $columnIndex;
+ }
+ public function getColumnIndex()
+ {
+ return $this->columnIndex;
+ }
+ public function setRowIndex($rowIndex)
+ {
+ $this->rowIndex = $rowIndex;
+ }
+ public function getRowIndex()
+ {
+ return $this->rowIndex;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridData.php
new file mode 100644
index 00000000..dcf624de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridData.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_GridData extends Google_Collection
+{
+ protected $collection_key = 'rowMetadata';
+ protected $columnMetadataType = 'Google_Service_Sheets_DimensionProperties';
+ protected $columnMetadataDataType = 'array';
+ protected $rowDataType = 'Google_Service_Sheets_RowData';
+ protected $rowDataDataType = 'array';
+ protected $rowMetadataType = 'Google_Service_Sheets_DimensionProperties';
+ protected $rowMetadataDataType = 'array';
+ public $startColumn;
+ public $startRow;
+
+ public function setColumnMetadata($columnMetadata)
+ {
+ $this->columnMetadata = $columnMetadata;
+ }
+ public function getColumnMetadata()
+ {
+ return $this->columnMetadata;
+ }
+ public function setRowData($rowData)
+ {
+ $this->rowData = $rowData;
+ }
+ public function getRowData()
+ {
+ return $this->rowData;
+ }
+ public function setRowMetadata($rowMetadata)
+ {
+ $this->rowMetadata = $rowMetadata;
+ }
+ public function getRowMetadata()
+ {
+ return $this->rowMetadata;
+ }
+ public function setStartColumn($startColumn)
+ {
+ $this->startColumn = $startColumn;
+ }
+ public function getStartColumn()
+ {
+ return $this->startColumn;
+ }
+ public function setStartRow($startRow)
+ {
+ $this->startRow = $startRow;
+ }
+ public function getStartRow()
+ {
+ return $this->startRow;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php
new file mode 100644
index 00000000..b6692ba8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridProperties.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_GridProperties extends Google_Model
+{
+ public $columnCount;
+ public $frozenColumnCount;
+ public $frozenRowCount;
+ public $hideGridlines;
+ public $rowCount;
+
+ public function setColumnCount($columnCount)
+ {
+ $this->columnCount = $columnCount;
+ }
+ public function getColumnCount()
+ {
+ return $this->columnCount;
+ }
+ public function setFrozenColumnCount($frozenColumnCount)
+ {
+ $this->frozenColumnCount = $frozenColumnCount;
+ }
+ public function getFrozenColumnCount()
+ {
+ return $this->frozenColumnCount;
+ }
+ public function setFrozenRowCount($frozenRowCount)
+ {
+ $this->frozenRowCount = $frozenRowCount;
+ }
+ public function getFrozenRowCount()
+ {
+ return $this->frozenRowCount;
+ }
+ public function setHideGridlines($hideGridlines)
+ {
+ $this->hideGridlines = $hideGridlines;
+ }
+ public function getHideGridlines()
+ {
+ return $this->hideGridlines;
+ }
+ public function setRowCount($rowCount)
+ {
+ $this->rowCount = $rowCount;
+ }
+ public function getRowCount()
+ {
+ return $this->rowCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridRange.php
new file mode 100644
index 00000000..26c47b5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/GridRange.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_GridRange extends Google_Model
+{
+ public $endColumnIndex;
+ public $endRowIndex;
+ public $sheetId;
+ public $startColumnIndex;
+ public $startRowIndex;
+
+ public function setEndColumnIndex($endColumnIndex)
+ {
+ $this->endColumnIndex = $endColumnIndex;
+ }
+ public function getEndColumnIndex()
+ {
+ return $this->endColumnIndex;
+ }
+ public function setEndRowIndex($endRowIndex)
+ {
+ $this->endRowIndex = $endRowIndex;
+ }
+ public function getEndRowIndex()
+ {
+ return $this->endRowIndex;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+ public function setStartColumnIndex($startColumnIndex)
+ {
+ $this->startColumnIndex = $startColumnIndex;
+ }
+ public function getStartColumnIndex()
+ {
+ return $this->startColumnIndex;
+ }
+ public function setStartRowIndex($startRowIndex)
+ {
+ $this->startRowIndex = $startRowIndex;
+ }
+ public function getStartRowIndex()
+ {
+ return $this->startRowIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertDimensionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertDimensionRequest.php
new file mode 100644
index 00000000..d8c4fb78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertDimensionRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_InsertDimensionRequest extends Google_Model
+{
+ public $inheritFromBefore;
+ protected $rangeType = 'Google_Service_Sheets_DimensionRange';
+ protected $rangeDataType = '';
+
+ public function setInheritFromBefore($inheritFromBefore)
+ {
+ $this->inheritFromBefore = $inheritFromBefore;
+ }
+ public function getInheritFromBefore()
+ {
+ return $this->inheritFromBefore;
+ }
+ public function setRange(Google_Service_Sheets_DimensionRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertRangeRequest.php
new file mode 100644
index 00000000..4dace9db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InsertRangeRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_InsertRangeRequest extends Google_Model
+{
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ public $shiftDimension;
+
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setShiftDimension($shiftDimension)
+ {
+ $this->shiftDimension = $shiftDimension;
+ }
+ public function getShiftDimension()
+ {
+ return $this->shiftDimension;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InterpolationPoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InterpolationPoint.php
new file mode 100644
index 00000000..8468334f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/InterpolationPoint.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_InterpolationPoint extends Google_Model
+{
+ protected $colorType = 'Google_Service_Sheets_Color';
+ protected $colorDataType = '';
+ public $type;
+ public $value;
+
+ public function setColor(Google_Service_Sheets_Color $color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/IterativeCalculationSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/IterativeCalculationSettings.php
new file mode 100644
index 00000000..297a42e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/IterativeCalculationSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_IterativeCalculationSettings extends Google_Model
+{
+ public $convergenceThreshold;
+ public $maxIterations;
+
+ public function setConvergenceThreshold($convergenceThreshold)
+ {
+ $this->convergenceThreshold = $convergenceThreshold;
+ }
+ public function getConvergenceThreshold()
+ {
+ return $this->convergenceThreshold;
+ }
+ public function setMaxIterations($maxIterations)
+ {
+ $this->maxIterations = $maxIterations;
+ }
+ public function getMaxIterations()
+ {
+ return $this->maxIterations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MergeCellsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MergeCellsRequest.php
new file mode 100644
index 00000000..53a18342
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MergeCellsRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_MergeCellsRequest extends Google_Model
+{
+ public $mergeType;
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+
+ public function setMergeType($mergeType)
+ {
+ $this->mergeType = $mergeType;
+ }
+ public function getMergeType()
+ {
+ return $this->mergeType;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MoveDimensionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MoveDimensionRequest.php
new file mode 100644
index 00000000..21b409fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/MoveDimensionRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_MoveDimensionRequest extends Google_Model
+{
+ public $destinationIndex;
+ protected $sourceType = 'Google_Service_Sheets_DimensionRange';
+ protected $sourceDataType = '';
+
+ public function setDestinationIndex($destinationIndex)
+ {
+ $this->destinationIndex = $destinationIndex;
+ }
+ public function getDestinationIndex()
+ {
+ return $this->destinationIndex;
+ }
+ public function setSource(Google_Service_Sheets_DimensionRange $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NamedRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NamedRange.php
new file mode 100644
index 00000000..5239c68f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NamedRange.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_NamedRange extends Google_Model
+{
+ public $name;
+ public $namedRangeId;
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNamedRangeId($namedRangeId)
+ {
+ $this->namedRangeId = $namedRangeId;
+ }
+ public function getNamedRangeId()
+ {
+ return $this->namedRangeId;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NumberFormat.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NumberFormat.php
new file mode 100644
index 00000000..52fcbc96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/NumberFormat.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_NumberFormat extends Google_Model
+{
+ public $pattern;
+ public $type;
+
+ public function setPattern($pattern)
+ {
+ $this->pattern = $pattern;
+ }
+ public function getPattern()
+ {
+ return $this->pattern;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/OverlayPosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/OverlayPosition.php
new file mode 100644
index 00000000..a7916097
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/OverlayPosition.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_OverlayPosition extends Google_Model
+{
+ protected $anchorCellType = 'Google_Service_Sheets_GridCoordinate';
+ protected $anchorCellDataType = '';
+ public $heightPixels;
+ public $offsetXPixels;
+ public $offsetYPixels;
+ public $widthPixels;
+
+ public function setAnchorCell(Google_Service_Sheets_GridCoordinate $anchorCell)
+ {
+ $this->anchorCell = $anchorCell;
+ }
+ public function getAnchorCell()
+ {
+ return $this->anchorCell;
+ }
+ public function setHeightPixels($heightPixels)
+ {
+ $this->heightPixels = $heightPixels;
+ }
+ public function getHeightPixels()
+ {
+ return $this->heightPixels;
+ }
+ public function setOffsetXPixels($offsetXPixels)
+ {
+ $this->offsetXPixels = $offsetXPixels;
+ }
+ public function getOffsetXPixels()
+ {
+ return $this->offsetXPixels;
+ }
+ public function setOffsetYPixels($offsetYPixels)
+ {
+ $this->offsetYPixels = $offsetYPixels;
+ }
+ public function getOffsetYPixels()
+ {
+ return $this->offsetYPixels;
+ }
+ public function setWidthPixels($widthPixels)
+ {
+ $this->widthPixels = $widthPixels;
+ }
+ public function getWidthPixels()
+ {
+ return $this->widthPixels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Padding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Padding.php
new file mode 100644
index 00000000..336a105e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Padding.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Padding extends Google_Model
+{
+ public $bottom;
+ public $left;
+ public $right;
+ public $top;
+
+ public function setBottom($bottom)
+ {
+ $this->bottom = $bottom;
+ }
+ public function getBottom()
+ {
+ return $this->bottom;
+ }
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setRight($right)
+ {
+ $this->right = $right;
+ }
+ public function getRight()
+ {
+ return $this->right;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PasteDataRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PasteDataRequest.php
new file mode 100644
index 00000000..877e6d30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PasteDataRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PasteDataRequest extends Google_Model
+{
+ protected $coordinateType = 'Google_Service_Sheets_GridCoordinate';
+ protected $coordinateDataType = '';
+ public $data;
+ public $delimiter;
+ public $html;
+ public $type;
+
+ public function setCoordinate(Google_Service_Sheets_GridCoordinate $coordinate)
+ {
+ $this->coordinate = $coordinate;
+ }
+ public function getCoordinate()
+ {
+ return $this->coordinate;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setDelimiter($delimiter)
+ {
+ $this->delimiter = $delimiter;
+ }
+ public function getDelimiter()
+ {
+ return $this->delimiter;
+ }
+ public function setHtml($html)
+ {
+ $this->html = $html;
+ }
+ public function getHtml()
+ {
+ return $this->html;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PieChartSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PieChartSpec.php
new file mode 100644
index 00000000..bca13294
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PieChartSpec.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PieChartSpec extends Google_Model
+{
+ protected $domainType = 'Google_Service_Sheets_ChartData';
+ protected $domainDataType = '';
+ public $legendPosition;
+ public $pieHole;
+ protected $seriesType = 'Google_Service_Sheets_ChartData';
+ protected $seriesDataType = '';
+ public $threeDimensional;
+
+ public function setDomain(Google_Service_Sheets_ChartData $domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setLegendPosition($legendPosition)
+ {
+ $this->legendPosition = $legendPosition;
+ }
+ public function getLegendPosition()
+ {
+ return $this->legendPosition;
+ }
+ public function setPieHole($pieHole)
+ {
+ $this->pieHole = $pieHole;
+ }
+ public function getPieHole()
+ {
+ return $this->pieHole;
+ }
+ public function setSeries(Google_Service_Sheets_ChartData $series)
+ {
+ $this->series = $series;
+ }
+ public function getSeries()
+ {
+ return $this->series;
+ }
+ public function setThreeDimensional($threeDimensional)
+ {
+ $this->threeDimensional = $threeDimensional;
+ }
+ public function getThreeDimensional()
+ {
+ return $this->threeDimensional;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotFilterCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotFilterCriteria.php
new file mode 100644
index 00000000..9d5aa1ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotFilterCriteria.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PivotFilterCriteria extends Google_Collection
+{
+ protected $collection_key = 'visibleValues';
+ public $visibleValues;
+
+ public function setVisibleValues($visibleValues)
+ {
+ $this->visibleValues = $visibleValues;
+ }
+ public function getVisibleValues()
+ {
+ return $this->visibleValues;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroup.php
new file mode 100644
index 00000000..9f50fa5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroup.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PivotGroup extends Google_Collection
+{
+ protected $collection_key = 'valueMetadata';
+ public $showTotals;
+ public $sortOrder;
+ public $sourceColumnOffset;
+ protected $valueBucketType = 'Google_Service_Sheets_PivotGroupSortValueBucket';
+ protected $valueBucketDataType = '';
+ protected $valueMetadataType = 'Google_Service_Sheets_PivotGroupValueMetadata';
+ protected $valueMetadataDataType = 'array';
+
+ public function setShowTotals($showTotals)
+ {
+ $this->showTotals = $showTotals;
+ }
+ public function getShowTotals()
+ {
+ return $this->showTotals;
+ }
+ public function setSortOrder($sortOrder)
+ {
+ $this->sortOrder = $sortOrder;
+ }
+ public function getSortOrder()
+ {
+ return $this->sortOrder;
+ }
+ public function setSourceColumnOffset($sourceColumnOffset)
+ {
+ $this->sourceColumnOffset = $sourceColumnOffset;
+ }
+ public function getSourceColumnOffset()
+ {
+ return $this->sourceColumnOffset;
+ }
+ public function setValueBucket(Google_Service_Sheets_PivotGroupSortValueBucket $valueBucket)
+ {
+ $this->valueBucket = $valueBucket;
+ }
+ public function getValueBucket()
+ {
+ return $this->valueBucket;
+ }
+ public function setValueMetadata($valueMetadata)
+ {
+ $this->valueMetadata = $valueMetadata;
+ }
+ public function getValueMetadata()
+ {
+ return $this->valueMetadata;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupSortValueBucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupSortValueBucket.php
new file mode 100644
index 00000000..9d3457e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupSortValueBucket.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PivotGroupSortValueBucket extends Google_Collection
+{
+ protected $collection_key = 'buckets';
+ protected $bucketsType = 'Google_Service_Sheets_ExtendedValue';
+ protected $bucketsDataType = 'array';
+ public $valuesIndex;
+
+ public function setBuckets($buckets)
+ {
+ $this->buckets = $buckets;
+ }
+ public function getBuckets()
+ {
+ return $this->buckets;
+ }
+ public function setValuesIndex($valuesIndex)
+ {
+ $this->valuesIndex = $valuesIndex;
+ }
+ public function getValuesIndex()
+ {
+ return $this->valuesIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupValueMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupValueMetadata.php
new file mode 100644
index 00000000..5b314d29
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotGroupValueMetadata.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PivotGroupValueMetadata extends Google_Model
+{
+ public $collapsed;
+ protected $valueType = 'Google_Service_Sheets_ExtendedValue';
+ protected $valueDataType = '';
+
+ public function setCollapsed($collapsed)
+ {
+ $this->collapsed = $collapsed;
+ }
+ public function getCollapsed()
+ {
+ return $this->collapsed;
+ }
+ public function setValue(Google_Service_Sheets_ExtendedValue $value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotTable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotTable.php
new file mode 100644
index 00000000..3e45f9d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotTable.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PivotTable extends Google_Collection
+{
+ protected $collection_key = 'values';
+ protected $columnsType = 'Google_Service_Sheets_PivotGroup';
+ protected $columnsDataType = 'array';
+ protected $criteriaType = 'Google_Service_Sheets_PivotFilterCriteria';
+ protected $criteriaDataType = 'map';
+ protected $rowsType = 'Google_Service_Sheets_PivotGroup';
+ protected $rowsDataType = 'array';
+ protected $sourceType = 'Google_Service_Sheets_GridRange';
+ protected $sourceDataType = '';
+ public $valueLayout;
+ protected $valuesType = 'Google_Service_Sheets_PivotValue';
+ protected $valuesDataType = 'array';
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setCriteria($criteria)
+ {
+ $this->criteria = $criteria;
+ }
+ public function getCriteria()
+ {
+ return $this->criteria;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setSource(Google_Service_Sheets_GridRange $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setValueLayout($valueLayout)
+ {
+ $this->valueLayout = $valueLayout;
+ }
+ public function getValueLayout()
+ {
+ return $this->valueLayout;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotValue.php
new file mode 100644
index 00000000..2e3312be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/PivotValue.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_PivotValue extends Google_Model
+{
+ public $formula;
+ public $name;
+ public $sourceColumnOffset;
+ public $summarizeFunction;
+
+ public function setFormula($formula)
+ {
+ $this->formula = $formula;
+ }
+ public function getFormula()
+ {
+ return $this->formula;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSourceColumnOffset($sourceColumnOffset)
+ {
+ $this->sourceColumnOffset = $sourceColumnOffset;
+ }
+ public function getSourceColumnOffset()
+ {
+ return $this->sourceColumnOffset;
+ }
+ public function setSummarizeFunction($summarizeFunction)
+ {
+ $this->summarizeFunction = $summarizeFunction;
+ }
+ public function getSummarizeFunction()
+ {
+ return $this->summarizeFunction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ProtectedRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ProtectedRange.php
new file mode 100644
index 00000000..4f3a364f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ProtectedRange.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ProtectedRange extends Google_Collection
+{
+ protected $collection_key = 'unprotectedRanges';
+ public $description;
+ protected $editorsType = 'Google_Service_Sheets_Editors';
+ protected $editorsDataType = '';
+ public $namedRangeId;
+ public $protectedRangeId;
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ public $requestingUserCanEdit;
+ protected $unprotectedRangesType = 'Google_Service_Sheets_GridRange';
+ protected $unprotectedRangesDataType = 'array';
+ public $warningOnly;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEditors(Google_Service_Sheets_Editors $editors)
+ {
+ $this->editors = $editors;
+ }
+ public function getEditors()
+ {
+ return $this->editors;
+ }
+ public function setNamedRangeId($namedRangeId)
+ {
+ $this->namedRangeId = $namedRangeId;
+ }
+ public function getNamedRangeId()
+ {
+ return $this->namedRangeId;
+ }
+ public function setProtectedRangeId($protectedRangeId)
+ {
+ $this->protectedRangeId = $protectedRangeId;
+ }
+ public function getProtectedRangeId()
+ {
+ return $this->protectedRangeId;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setRequestingUserCanEdit($requestingUserCanEdit)
+ {
+ $this->requestingUserCanEdit = $requestingUserCanEdit;
+ }
+ public function getRequestingUserCanEdit()
+ {
+ return $this->requestingUserCanEdit;
+ }
+ public function setUnprotectedRanges($unprotectedRanges)
+ {
+ $this->unprotectedRanges = $unprotectedRanges;
+ }
+ public function getUnprotectedRanges()
+ {
+ return $this->unprotectedRanges;
+ }
+ public function setWarningOnly($warningOnly)
+ {
+ $this->warningOnly = $warningOnly;
+ }
+ public function getWarningOnly()
+ {
+ return $this->warningOnly;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RepeatCellRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RepeatCellRequest.php
new file mode 100644
index 00000000..9552256b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RepeatCellRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_RepeatCellRequest extends Google_Model
+{
+ protected $cellType = 'Google_Service_Sheets_CellData';
+ protected $cellDataType = '';
+ public $fields;
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+
+ public function setCell(Google_Service_Sheets_CellData $cell)
+ {
+ $this->cell = $cell;
+ }
+ public function getCell()
+ {
+ return $this->cell;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Request.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Request.php
new file mode 100644
index 00000000..2165967f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Request.php
@@ -0,0 +1,511 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Request extends Google_Model
+{
+ protected $addBandingType = 'Google_Service_Sheets_AddBandingRequest';
+ protected $addBandingDataType = '';
+ protected $addChartType = 'Google_Service_Sheets_AddChartRequest';
+ protected $addChartDataType = '';
+ protected $addConditionalFormatRuleType = 'Google_Service_Sheets_AddConditionalFormatRuleRequest';
+ protected $addConditionalFormatRuleDataType = '';
+ protected $addFilterViewType = 'Google_Service_Sheets_AddFilterViewRequest';
+ protected $addFilterViewDataType = '';
+ protected $addNamedRangeType = 'Google_Service_Sheets_AddNamedRangeRequest';
+ protected $addNamedRangeDataType = '';
+ protected $addProtectedRangeType = 'Google_Service_Sheets_AddProtectedRangeRequest';
+ protected $addProtectedRangeDataType = '';
+ protected $addSheetType = 'Google_Service_Sheets_AddSheetRequest';
+ protected $addSheetDataType = '';
+ protected $appendCellsType = 'Google_Service_Sheets_AppendCellsRequest';
+ protected $appendCellsDataType = '';
+ protected $appendDimensionType = 'Google_Service_Sheets_AppendDimensionRequest';
+ protected $appendDimensionDataType = '';
+ protected $autoFillType = 'Google_Service_Sheets_AutoFillRequest';
+ protected $autoFillDataType = '';
+ protected $autoResizeDimensionsType = 'Google_Service_Sheets_AutoResizeDimensionsRequest';
+ protected $autoResizeDimensionsDataType = '';
+ protected $clearBasicFilterType = 'Google_Service_Sheets_ClearBasicFilterRequest';
+ protected $clearBasicFilterDataType = '';
+ protected $copyPasteType = 'Google_Service_Sheets_CopyPasteRequest';
+ protected $copyPasteDataType = '';
+ protected $cutPasteType = 'Google_Service_Sheets_CutPasteRequest';
+ protected $cutPasteDataType = '';
+ protected $deleteBandingType = 'Google_Service_Sheets_DeleteBandingRequest';
+ protected $deleteBandingDataType = '';
+ protected $deleteConditionalFormatRuleType = 'Google_Service_Sheets_DeleteConditionalFormatRuleRequest';
+ protected $deleteConditionalFormatRuleDataType = '';
+ protected $deleteDimensionType = 'Google_Service_Sheets_DeleteDimensionRequest';
+ protected $deleteDimensionDataType = '';
+ protected $deleteEmbeddedObjectType = 'Google_Service_Sheets_DeleteEmbeddedObjectRequest';
+ protected $deleteEmbeddedObjectDataType = '';
+ protected $deleteFilterViewType = 'Google_Service_Sheets_DeleteFilterViewRequest';
+ protected $deleteFilterViewDataType = '';
+ protected $deleteNamedRangeType = 'Google_Service_Sheets_DeleteNamedRangeRequest';
+ protected $deleteNamedRangeDataType = '';
+ protected $deleteProtectedRangeType = 'Google_Service_Sheets_DeleteProtectedRangeRequest';
+ protected $deleteProtectedRangeDataType = '';
+ protected $deleteRangeType = 'Google_Service_Sheets_DeleteRangeRequest';
+ protected $deleteRangeDataType = '';
+ protected $deleteSheetType = 'Google_Service_Sheets_DeleteSheetRequest';
+ protected $deleteSheetDataType = '';
+ protected $duplicateFilterViewType = 'Google_Service_Sheets_DuplicateFilterViewRequest';
+ protected $duplicateFilterViewDataType = '';
+ protected $duplicateSheetType = 'Google_Service_Sheets_DuplicateSheetRequest';
+ protected $duplicateSheetDataType = '';
+ protected $findReplaceType = 'Google_Service_Sheets_FindReplaceRequest';
+ protected $findReplaceDataType = '';
+ protected $insertDimensionType = 'Google_Service_Sheets_InsertDimensionRequest';
+ protected $insertDimensionDataType = '';
+ protected $insertRangeType = 'Google_Service_Sheets_InsertRangeRequest';
+ protected $insertRangeDataType = '';
+ protected $mergeCellsType = 'Google_Service_Sheets_MergeCellsRequest';
+ protected $mergeCellsDataType = '';
+ protected $moveDimensionType = 'Google_Service_Sheets_MoveDimensionRequest';
+ protected $moveDimensionDataType = '';
+ protected $pasteDataType = 'Google_Service_Sheets_PasteDataRequest';
+ protected $pasteDataDataType = '';
+ protected $repeatCellType = 'Google_Service_Sheets_RepeatCellRequest';
+ protected $repeatCellDataType = '';
+ protected $setBasicFilterType = 'Google_Service_Sheets_SetBasicFilterRequest';
+ protected $setBasicFilterDataType = '';
+ protected $setDataValidationType = 'Google_Service_Sheets_SetDataValidationRequest';
+ protected $setDataValidationDataType = '';
+ protected $sortRangeType = 'Google_Service_Sheets_SortRangeRequest';
+ protected $sortRangeDataType = '';
+ protected $textToColumnsType = 'Google_Service_Sheets_TextToColumnsRequest';
+ protected $textToColumnsDataType = '';
+ protected $unmergeCellsType = 'Google_Service_Sheets_UnmergeCellsRequest';
+ protected $unmergeCellsDataType = '';
+ protected $updateBandingType = 'Google_Service_Sheets_UpdateBandingRequest';
+ protected $updateBandingDataType = '';
+ protected $updateBordersType = 'Google_Service_Sheets_UpdateBordersRequest';
+ protected $updateBordersDataType = '';
+ protected $updateCellsType = 'Google_Service_Sheets_UpdateCellsRequest';
+ protected $updateCellsDataType = '';
+ protected $updateChartSpecType = 'Google_Service_Sheets_UpdateChartSpecRequest';
+ protected $updateChartSpecDataType = '';
+ protected $updateConditionalFormatRuleType = 'Google_Service_Sheets_UpdateConditionalFormatRuleRequest';
+ protected $updateConditionalFormatRuleDataType = '';
+ protected $updateDimensionPropertiesType = 'Google_Service_Sheets_UpdateDimensionPropertiesRequest';
+ protected $updateDimensionPropertiesDataType = '';
+ protected $updateEmbeddedObjectPositionType = 'Google_Service_Sheets_UpdateEmbeddedObjectPositionRequest';
+ protected $updateEmbeddedObjectPositionDataType = '';
+ protected $updateFilterViewType = 'Google_Service_Sheets_UpdateFilterViewRequest';
+ protected $updateFilterViewDataType = '';
+ protected $updateNamedRangeType = 'Google_Service_Sheets_UpdateNamedRangeRequest';
+ protected $updateNamedRangeDataType = '';
+ protected $updateProtectedRangeType = 'Google_Service_Sheets_UpdateProtectedRangeRequest';
+ protected $updateProtectedRangeDataType = '';
+ protected $updateSheetPropertiesType = 'Google_Service_Sheets_UpdateSheetPropertiesRequest';
+ protected $updateSheetPropertiesDataType = '';
+ protected $updateSpreadsheetPropertiesType = 'Google_Service_Sheets_UpdateSpreadsheetPropertiesRequest';
+ protected $updateSpreadsheetPropertiesDataType = '';
+
+ public function setAddBanding(Google_Service_Sheets_AddBandingRequest $addBanding)
+ {
+ $this->addBanding = $addBanding;
+ }
+ public function getAddBanding()
+ {
+ return $this->addBanding;
+ }
+ public function setAddChart(Google_Service_Sheets_AddChartRequest $addChart)
+ {
+ $this->addChart = $addChart;
+ }
+ public function getAddChart()
+ {
+ return $this->addChart;
+ }
+ public function setAddConditionalFormatRule(Google_Service_Sheets_AddConditionalFormatRuleRequest $addConditionalFormatRule)
+ {
+ $this->addConditionalFormatRule = $addConditionalFormatRule;
+ }
+ public function getAddConditionalFormatRule()
+ {
+ return $this->addConditionalFormatRule;
+ }
+ public function setAddFilterView(Google_Service_Sheets_AddFilterViewRequest $addFilterView)
+ {
+ $this->addFilterView = $addFilterView;
+ }
+ public function getAddFilterView()
+ {
+ return $this->addFilterView;
+ }
+ public function setAddNamedRange(Google_Service_Sheets_AddNamedRangeRequest $addNamedRange)
+ {
+ $this->addNamedRange = $addNamedRange;
+ }
+ public function getAddNamedRange()
+ {
+ return $this->addNamedRange;
+ }
+ public function setAddProtectedRange(Google_Service_Sheets_AddProtectedRangeRequest $addProtectedRange)
+ {
+ $this->addProtectedRange = $addProtectedRange;
+ }
+ public function getAddProtectedRange()
+ {
+ return $this->addProtectedRange;
+ }
+ public function setAddSheet(Google_Service_Sheets_AddSheetRequest $addSheet)
+ {
+ $this->addSheet = $addSheet;
+ }
+ public function getAddSheet()
+ {
+ return $this->addSheet;
+ }
+ public function setAppendCells(Google_Service_Sheets_AppendCellsRequest $appendCells)
+ {
+ $this->appendCells = $appendCells;
+ }
+ public function getAppendCells()
+ {
+ return $this->appendCells;
+ }
+ public function setAppendDimension(Google_Service_Sheets_AppendDimensionRequest $appendDimension)
+ {
+ $this->appendDimension = $appendDimension;
+ }
+ public function getAppendDimension()
+ {
+ return $this->appendDimension;
+ }
+ public function setAutoFill(Google_Service_Sheets_AutoFillRequest $autoFill)
+ {
+ $this->autoFill = $autoFill;
+ }
+ public function getAutoFill()
+ {
+ return $this->autoFill;
+ }
+ public function setAutoResizeDimensions(Google_Service_Sheets_AutoResizeDimensionsRequest $autoResizeDimensions)
+ {
+ $this->autoResizeDimensions = $autoResizeDimensions;
+ }
+ public function getAutoResizeDimensions()
+ {
+ return $this->autoResizeDimensions;
+ }
+ public function setClearBasicFilter(Google_Service_Sheets_ClearBasicFilterRequest $clearBasicFilter)
+ {
+ $this->clearBasicFilter = $clearBasicFilter;
+ }
+ public function getClearBasicFilter()
+ {
+ return $this->clearBasicFilter;
+ }
+ public function setCopyPaste(Google_Service_Sheets_CopyPasteRequest $copyPaste)
+ {
+ $this->copyPaste = $copyPaste;
+ }
+ public function getCopyPaste()
+ {
+ return $this->copyPaste;
+ }
+ public function setCutPaste(Google_Service_Sheets_CutPasteRequest $cutPaste)
+ {
+ $this->cutPaste = $cutPaste;
+ }
+ public function getCutPaste()
+ {
+ return $this->cutPaste;
+ }
+ public function setDeleteBanding(Google_Service_Sheets_DeleteBandingRequest $deleteBanding)
+ {
+ $this->deleteBanding = $deleteBanding;
+ }
+ public function getDeleteBanding()
+ {
+ return $this->deleteBanding;
+ }
+ public function setDeleteConditionalFormatRule(Google_Service_Sheets_DeleteConditionalFormatRuleRequest $deleteConditionalFormatRule)
+ {
+ $this->deleteConditionalFormatRule = $deleteConditionalFormatRule;
+ }
+ public function getDeleteConditionalFormatRule()
+ {
+ return $this->deleteConditionalFormatRule;
+ }
+ public function setDeleteDimension(Google_Service_Sheets_DeleteDimensionRequest $deleteDimension)
+ {
+ $this->deleteDimension = $deleteDimension;
+ }
+ public function getDeleteDimension()
+ {
+ return $this->deleteDimension;
+ }
+ public function setDeleteEmbeddedObject(Google_Service_Sheets_DeleteEmbeddedObjectRequest $deleteEmbeddedObject)
+ {
+ $this->deleteEmbeddedObject = $deleteEmbeddedObject;
+ }
+ public function getDeleteEmbeddedObject()
+ {
+ return $this->deleteEmbeddedObject;
+ }
+ public function setDeleteFilterView(Google_Service_Sheets_DeleteFilterViewRequest $deleteFilterView)
+ {
+ $this->deleteFilterView = $deleteFilterView;
+ }
+ public function getDeleteFilterView()
+ {
+ return $this->deleteFilterView;
+ }
+ public function setDeleteNamedRange(Google_Service_Sheets_DeleteNamedRangeRequest $deleteNamedRange)
+ {
+ $this->deleteNamedRange = $deleteNamedRange;
+ }
+ public function getDeleteNamedRange()
+ {
+ return $this->deleteNamedRange;
+ }
+ public function setDeleteProtectedRange(Google_Service_Sheets_DeleteProtectedRangeRequest $deleteProtectedRange)
+ {
+ $this->deleteProtectedRange = $deleteProtectedRange;
+ }
+ public function getDeleteProtectedRange()
+ {
+ return $this->deleteProtectedRange;
+ }
+ public function setDeleteRange(Google_Service_Sheets_DeleteRangeRequest $deleteRange)
+ {
+ $this->deleteRange = $deleteRange;
+ }
+ public function getDeleteRange()
+ {
+ return $this->deleteRange;
+ }
+ public function setDeleteSheet(Google_Service_Sheets_DeleteSheetRequest $deleteSheet)
+ {
+ $this->deleteSheet = $deleteSheet;
+ }
+ public function getDeleteSheet()
+ {
+ return $this->deleteSheet;
+ }
+ public function setDuplicateFilterView(Google_Service_Sheets_DuplicateFilterViewRequest $duplicateFilterView)
+ {
+ $this->duplicateFilterView = $duplicateFilterView;
+ }
+ public function getDuplicateFilterView()
+ {
+ return $this->duplicateFilterView;
+ }
+ public function setDuplicateSheet(Google_Service_Sheets_DuplicateSheetRequest $duplicateSheet)
+ {
+ $this->duplicateSheet = $duplicateSheet;
+ }
+ public function getDuplicateSheet()
+ {
+ return $this->duplicateSheet;
+ }
+ public function setFindReplace(Google_Service_Sheets_FindReplaceRequest $findReplace)
+ {
+ $this->findReplace = $findReplace;
+ }
+ public function getFindReplace()
+ {
+ return $this->findReplace;
+ }
+ public function setInsertDimension(Google_Service_Sheets_InsertDimensionRequest $insertDimension)
+ {
+ $this->insertDimension = $insertDimension;
+ }
+ public function getInsertDimension()
+ {
+ return $this->insertDimension;
+ }
+ public function setInsertRange(Google_Service_Sheets_InsertRangeRequest $insertRange)
+ {
+ $this->insertRange = $insertRange;
+ }
+ public function getInsertRange()
+ {
+ return $this->insertRange;
+ }
+ public function setMergeCells(Google_Service_Sheets_MergeCellsRequest $mergeCells)
+ {
+ $this->mergeCells = $mergeCells;
+ }
+ public function getMergeCells()
+ {
+ return $this->mergeCells;
+ }
+ public function setMoveDimension(Google_Service_Sheets_MoveDimensionRequest $moveDimension)
+ {
+ $this->moveDimension = $moveDimension;
+ }
+ public function getMoveDimension()
+ {
+ return $this->moveDimension;
+ }
+ public function setPasteData(Google_Service_Sheets_PasteDataRequest $pasteData)
+ {
+ $this->pasteData = $pasteData;
+ }
+ public function getPasteData()
+ {
+ return $this->pasteData;
+ }
+ public function setRepeatCell(Google_Service_Sheets_RepeatCellRequest $repeatCell)
+ {
+ $this->repeatCell = $repeatCell;
+ }
+ public function getRepeatCell()
+ {
+ return $this->repeatCell;
+ }
+ public function setSetBasicFilter(Google_Service_Sheets_SetBasicFilterRequest $setBasicFilter)
+ {
+ $this->setBasicFilter = $setBasicFilter;
+ }
+ public function getSetBasicFilter()
+ {
+ return $this->setBasicFilter;
+ }
+ public function setSetDataValidation(Google_Service_Sheets_SetDataValidationRequest $setDataValidation)
+ {
+ $this->setDataValidation = $setDataValidation;
+ }
+ public function getSetDataValidation()
+ {
+ return $this->setDataValidation;
+ }
+ public function setSortRange(Google_Service_Sheets_SortRangeRequest $sortRange)
+ {
+ $this->sortRange = $sortRange;
+ }
+ public function getSortRange()
+ {
+ return $this->sortRange;
+ }
+ public function setTextToColumns(Google_Service_Sheets_TextToColumnsRequest $textToColumns)
+ {
+ $this->textToColumns = $textToColumns;
+ }
+ public function getTextToColumns()
+ {
+ return $this->textToColumns;
+ }
+ public function setUnmergeCells(Google_Service_Sheets_UnmergeCellsRequest $unmergeCells)
+ {
+ $this->unmergeCells = $unmergeCells;
+ }
+ public function getUnmergeCells()
+ {
+ return $this->unmergeCells;
+ }
+ public function setUpdateBanding(Google_Service_Sheets_UpdateBandingRequest $updateBanding)
+ {
+ $this->updateBanding = $updateBanding;
+ }
+ public function getUpdateBanding()
+ {
+ return $this->updateBanding;
+ }
+ public function setUpdateBorders(Google_Service_Sheets_UpdateBordersRequest $updateBorders)
+ {
+ $this->updateBorders = $updateBorders;
+ }
+ public function getUpdateBorders()
+ {
+ return $this->updateBorders;
+ }
+ public function setUpdateCells(Google_Service_Sheets_UpdateCellsRequest $updateCells)
+ {
+ $this->updateCells = $updateCells;
+ }
+ public function getUpdateCells()
+ {
+ return $this->updateCells;
+ }
+ public function setUpdateChartSpec(Google_Service_Sheets_UpdateChartSpecRequest $updateChartSpec)
+ {
+ $this->updateChartSpec = $updateChartSpec;
+ }
+ public function getUpdateChartSpec()
+ {
+ return $this->updateChartSpec;
+ }
+ public function setUpdateConditionalFormatRule(Google_Service_Sheets_UpdateConditionalFormatRuleRequest $updateConditionalFormatRule)
+ {
+ $this->updateConditionalFormatRule = $updateConditionalFormatRule;
+ }
+ public function getUpdateConditionalFormatRule()
+ {
+ return $this->updateConditionalFormatRule;
+ }
+ public function setUpdateDimensionProperties(Google_Service_Sheets_UpdateDimensionPropertiesRequest $updateDimensionProperties)
+ {
+ $this->updateDimensionProperties = $updateDimensionProperties;
+ }
+ public function getUpdateDimensionProperties()
+ {
+ return $this->updateDimensionProperties;
+ }
+ public function setUpdateEmbeddedObjectPosition(Google_Service_Sheets_UpdateEmbeddedObjectPositionRequest $updateEmbeddedObjectPosition)
+ {
+ $this->updateEmbeddedObjectPosition = $updateEmbeddedObjectPosition;
+ }
+ public function getUpdateEmbeddedObjectPosition()
+ {
+ return $this->updateEmbeddedObjectPosition;
+ }
+ public function setUpdateFilterView(Google_Service_Sheets_UpdateFilterViewRequest $updateFilterView)
+ {
+ $this->updateFilterView = $updateFilterView;
+ }
+ public function getUpdateFilterView()
+ {
+ return $this->updateFilterView;
+ }
+ public function setUpdateNamedRange(Google_Service_Sheets_UpdateNamedRangeRequest $updateNamedRange)
+ {
+ $this->updateNamedRange = $updateNamedRange;
+ }
+ public function getUpdateNamedRange()
+ {
+ return $this->updateNamedRange;
+ }
+ public function setUpdateProtectedRange(Google_Service_Sheets_UpdateProtectedRangeRequest $updateProtectedRange)
+ {
+ $this->updateProtectedRange = $updateProtectedRange;
+ }
+ public function getUpdateProtectedRange()
+ {
+ return $this->updateProtectedRange;
+ }
+ public function setUpdateSheetProperties(Google_Service_Sheets_UpdateSheetPropertiesRequest $updateSheetProperties)
+ {
+ $this->updateSheetProperties = $updateSheetProperties;
+ }
+ public function getUpdateSheetProperties()
+ {
+ return $this->updateSheetProperties;
+ }
+ public function setUpdateSpreadsheetProperties(Google_Service_Sheets_UpdateSpreadsheetPropertiesRequest $updateSpreadsheetProperties)
+ {
+ $this->updateSpreadsheetProperties = $updateSpreadsheetProperties;
+ }
+ public function getUpdateSpreadsheetProperties()
+ {
+ return $this->updateSpreadsheetProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/Spreadsheets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/Spreadsheets.php
new file mode 100644
index 00000000..178f97ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/Spreadsheets.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "spreadsheets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sheetsService = new Google_Service_Sheets(...);
+ * $spreadsheets = $sheetsService->spreadsheets;
+ * </code>
+ */
+class Google_Service_Sheets_Resource_Spreadsheets extends Google_Service_Resource
+{
+ /**
+ * Applies one or more updates to the spreadsheet.
+ *
+ * Each request is validated before being applied. If any request is not valid
+ * then the entire request will fail and nothing will be applied.
+ *
+ * Some requests have replies to give you some information about how they are
+ * applied. The replies will mirror the requests. For example, if you applied 4
+ * updates and the 3rd one had a reply, then the response will have 2 empty
+ * replies, the actual reply, and another empty reply, in that order.
+ *
+ * Due to the collaborative nature of spreadsheets, it is not guaranteed that
+ * the spreadsheet will reflect exactly your changes after this completes,
+ * however it is guaranteed that the updates in the request will be applied
+ * together atomically. Your changes may be altered with respect to collaborator
+ * changes. If there are no collaborators, the spreadsheet should reflect your
+ * changes. (spreadsheets.batchUpdate)
+ *
+ * @param string $spreadsheetId The spreadsheet to apply the updates to.
+ * @param Google_Service_Sheets_BatchUpdateSpreadsheetRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Sheets_BatchUpdateSpreadsheetResponse
+ */
+ public function batchUpdate($spreadsheetId, Google_Service_Sheets_BatchUpdateSpreadsheetRequest $postBody, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchUpdate', array($params), "Google_Service_Sheets_BatchUpdateSpreadsheetResponse");
+ }
+ /**
+ * Creates a spreadsheet, returning the newly created spreadsheet.
+ * (spreadsheets.create)
+ *
+ * @param Google_Service_Sheets_Spreadsheet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Sheets_Spreadsheet
+ */
+ public function create(Google_Service_Sheets_Spreadsheet $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Sheets_Spreadsheet");
+ }
+ /**
+ * Returns the spreadsheet at the given ID. The caller must specify the
+ * spreadsheet ID.
+ *
+ * By default, data within grids will not be returned. You can include grid data
+ * one of two ways:
+ *
+ * * Specify a field mask listing your desired fields using the `fields` URL
+ * parameter in HTTP
+ *
+ * * Set the includeGridData URL parameter to true. If a field mask is set, the
+ * `includeGridData` parameter is ignored
+ *
+ * For large spreadsheets, it is recommended to retrieve only the specific
+ * fields of the spreadsheet that you want.
+ *
+ * To retrieve only subsets of the spreadsheet, use the ranges URL parameter.
+ * Multiple ranges can be specified. Limiting the range will return only the
+ * portions of the spreadsheet that intersect the requested ranges. Ranges are
+ * specified using A1 notation. (spreadsheets.get)
+ *
+ * @param string $spreadsheetId The spreadsheet to request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ranges The ranges to retrieve from the spreadsheet.
+ * @opt_param bool includeGridData True if grid data should be returned. This
+ * parameter is ignored if a field mask was set in the request.
+ * @return Google_Service_Sheets_Spreadsheet
+ */
+ public function get($spreadsheetId, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Sheets_Spreadsheet");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsSheets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsSheets.php
new file mode 100644
index 00000000..5714ae58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsSheets.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sheets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sheetsService = new Google_Service_Sheets(...);
+ * $sheets = $sheetsService->sheets;
+ * </code>
+ */
+class Google_Service_Sheets_Resource_SpreadsheetsSheets extends Google_Service_Resource
+{
+ /**
+ * Copies a single sheet from a spreadsheet to another spreadsheet. Returns the
+ * properties of the newly created sheet. (sheets.copyTo)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet containing the sheet
+ * to copy.
+ * @param int $sheetId The ID of the sheet to copy.
+ * @param Google_Service_Sheets_CopySheetToAnotherSpreadsheetRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Sheets_SheetProperties
+ */
+ public function copyTo($spreadsheetId, $sheetId, Google_Service_Sheets_CopySheetToAnotherSpreadsheetRequest $postBody, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'sheetId' => $sheetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('copyTo', array($params), "Google_Service_Sheets_SheetProperties");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php
new file mode 100644
index 00000000..c3482dd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Resource/SpreadsheetsValues.php
@@ -0,0 +1,203 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "values" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $sheetsService = new Google_Service_Sheets(...);
+ * $values = $sheetsService->values;
+ * </code>
+ */
+class Google_Service_Sheets_Resource_SpreadsheetsValues extends Google_Service_Resource
+{
+ /**
+ * Appends values to a spreadsheet. The input range is used to search for
+ * existing data and find a "table" within that range. Values will be appended
+ * to the next row of the table, starting with the first column of the table.
+ * See the [guide](/sheets/api/guides/values#appending_values) and [sample
+ * code](/sheets/api/samples/writing#append_values) for specific details of how
+ * tables are detected and data is appended.
+ *
+ * The caller must specify the spreadsheet ID, range, and a valueInputOption.
+ * The `valueInputOption` only controls how the input data will be added to the
+ * sheet (column-wise or row-wise), it does not influence what cell the data
+ * starts being written to. (values.append)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet to update.
+ * @param string $range The A1 notation of a range to search for a logical table
+ * of data. Values will be appended after the last row of the table.
+ * @param Google_Service_Sheets_ValueRange $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeValuesInResponse Determines if the update response
+ * should include the values of the cells that were appended. By default,
+ * responses do not include the updated values.
+ * @opt_param string responseValueRenderOption Determines how values in the
+ * response should be rendered. The default render option is
+ * ValueRenderOption.FORMATTED_VALUE.
+ * @opt_param string insertDataOption How the input data should be inserted.
+ * @opt_param string valueInputOption How the input data should be interpreted.
+ * @opt_param string responseDateTimeRenderOption Determines how dates, times,
+ * and durations in the response should be rendered. This is ignored if
+ * response_value_render_option is FORMATTED_VALUE. The default dateTime render
+ * option is [DateTimeRenderOption.SERIAL_NUMBER].
+ * @return Google_Service_Sheets_AppendValuesResponse
+ */
+ public function append($spreadsheetId, $range, Google_Service_Sheets_ValueRange $postBody, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'range' => $range, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('append', array($params), "Google_Service_Sheets_AppendValuesResponse");
+ }
+ /**
+ * Clears one or more ranges of values from a spreadsheet. The caller must
+ * specify the spreadsheet ID and one or more ranges. Only values are cleared --
+ * all other properties of the cell (such as formatting, data validation, etc..)
+ * are kept. (values.batchClear)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet to update.
+ * @param Google_Service_Sheets_BatchClearValuesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Sheets_BatchClearValuesResponse
+ */
+ public function batchClear($spreadsheetId, Google_Service_Sheets_BatchClearValuesRequest $postBody, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchClear', array($params), "Google_Service_Sheets_BatchClearValuesResponse");
+ }
+ /**
+ * Returns one or more ranges of values from a spreadsheet. The caller must
+ * specify the spreadsheet ID and one or more ranges. (values.batchGet)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet to retrieve data from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string valueRenderOption How values should be represented in the
+ * output. The default render option is ValueRenderOption.FORMATTED_VALUE.
+ * @opt_param string dateTimeRenderOption How dates, times, and durations should
+ * be represented in the output. This is ignored if value_render_option is
+ * FORMATTED_VALUE. The default dateTime render option is
+ * [DateTimeRenderOption.SERIAL_NUMBER].
+ * @opt_param string ranges The A1 notation of the values to retrieve.
+ * @opt_param string majorDimension The major dimension that results should use.
+ *
+ * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then
+ * requesting `range=A1:B2,majorDimension=ROWS` will return `[[1,2],[3,4]]`,
+ * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
+ * `[[1,3],[2,4]]`.
+ * @return Google_Service_Sheets_BatchGetValuesResponse
+ */
+ public function batchGet($spreadsheetId, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchGet', array($params), "Google_Service_Sheets_BatchGetValuesResponse");
+ }
+ /**
+ * Sets values in one or more ranges of a spreadsheet. The caller must specify
+ * the spreadsheet ID, a valueInputOption, and one or more ValueRanges.
+ * (values.batchUpdate)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet to update.
+ * @param Google_Service_Sheets_BatchUpdateValuesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Sheets_BatchUpdateValuesResponse
+ */
+ public function batchUpdate($spreadsheetId, Google_Service_Sheets_BatchUpdateValuesRequest $postBody, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchUpdate', array($params), "Google_Service_Sheets_BatchUpdateValuesResponse");
+ }
+ /**
+ * Clears values from a spreadsheet. The caller must specify the spreadsheet ID
+ * and range. Only values are cleared -- all other properties of the cell (such
+ * as formatting, data validation, etc..) are kept. (values.clear)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet to update.
+ * @param string $range The A1 notation of the values to clear.
+ * @param Google_Service_Sheets_ClearValuesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Sheets_ClearValuesResponse
+ */
+ public function clear($spreadsheetId, $range, Google_Service_Sheets_ClearValuesRequest $postBody, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'range' => $range, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('clear', array($params), "Google_Service_Sheets_ClearValuesResponse");
+ }
+ /**
+ * Returns a range of values from a spreadsheet. The caller must specify the
+ * spreadsheet ID and a range. (values.get)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet to retrieve data from.
+ * @param string $range The A1 notation of the values to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string valueRenderOption How values should be represented in the
+ * output. The default render option is ValueRenderOption.FORMATTED_VALUE.
+ * @opt_param string dateTimeRenderOption How dates, times, and durations should
+ * be represented in the output. This is ignored if value_render_option is
+ * FORMATTED_VALUE. The default dateTime render option is
+ * [DateTimeRenderOption.SERIAL_NUMBER].
+ * @opt_param string majorDimension The major dimension that results should use.
+ *
+ * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then
+ * requesting `range=A1:B2,majorDimension=ROWS` will return `[[1,2],[3,4]]`,
+ * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
+ * `[[1,3],[2,4]]`.
+ * @return Google_Service_Sheets_ValueRange
+ */
+ public function get($spreadsheetId, $range, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'range' => $range);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Sheets_ValueRange");
+ }
+ /**
+ * Sets values in a range of a spreadsheet. The caller must specify the
+ * spreadsheet ID, range, and a valueInputOption. (values.update)
+ *
+ * @param string $spreadsheetId The ID of the spreadsheet to update.
+ * @param string $range The A1 notation of the values to update.
+ * @param Google_Service_Sheets_ValueRange $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string responseValueRenderOption Determines how values in the
+ * response should be rendered. The default render option is
+ * ValueRenderOption.FORMATTED_VALUE.
+ * @opt_param string valueInputOption How the input data should be interpreted.
+ * @opt_param string responseDateTimeRenderOption Determines how dates, times,
+ * and durations in the response should be rendered. This is ignored if
+ * response_value_render_option is FORMATTED_VALUE. The default dateTime render
+ * option is [DateTimeRenderOption.SERIAL_NUMBER].
+ * @opt_param bool includeValuesInResponse Determines if the update response
+ * should include the values of the cells that were updated. By default,
+ * responses do not include the updated values. If the range to write was larger
+ * than than the range actually written, the response will include all values in
+ * the requested range (excluding trailing empty rows and columns).
+ * @return Google_Service_Sheets_UpdateValuesResponse
+ */
+ public function update($spreadsheetId, $range, Google_Service_Sheets_ValueRange $postBody, $optParams = array())
+ {
+ $params = array('spreadsheetId' => $spreadsheetId, 'range' => $range, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Sheets_UpdateValuesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Response.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Response.php
new file mode 100644
index 00000000..2b0e0733
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Response.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Response extends Google_Model
+{
+ protected $addBandingType = 'Google_Service_Sheets_AddBandingResponse';
+ protected $addBandingDataType = '';
+ protected $addChartType = 'Google_Service_Sheets_AddChartResponse';
+ protected $addChartDataType = '';
+ protected $addFilterViewType = 'Google_Service_Sheets_AddFilterViewResponse';
+ protected $addFilterViewDataType = '';
+ protected $addNamedRangeType = 'Google_Service_Sheets_AddNamedRangeResponse';
+ protected $addNamedRangeDataType = '';
+ protected $addProtectedRangeType = 'Google_Service_Sheets_AddProtectedRangeResponse';
+ protected $addProtectedRangeDataType = '';
+ protected $addSheetType = 'Google_Service_Sheets_AddSheetResponse';
+ protected $addSheetDataType = '';
+ protected $deleteConditionalFormatRuleType = 'Google_Service_Sheets_DeleteConditionalFormatRuleResponse';
+ protected $deleteConditionalFormatRuleDataType = '';
+ protected $duplicateFilterViewType = 'Google_Service_Sheets_DuplicateFilterViewResponse';
+ protected $duplicateFilterViewDataType = '';
+ protected $duplicateSheetType = 'Google_Service_Sheets_DuplicateSheetResponse';
+ protected $duplicateSheetDataType = '';
+ protected $findReplaceType = 'Google_Service_Sheets_FindReplaceResponse';
+ protected $findReplaceDataType = '';
+ protected $updateConditionalFormatRuleType = 'Google_Service_Sheets_UpdateConditionalFormatRuleResponse';
+ protected $updateConditionalFormatRuleDataType = '';
+ protected $updateEmbeddedObjectPositionType = 'Google_Service_Sheets_UpdateEmbeddedObjectPositionResponse';
+ protected $updateEmbeddedObjectPositionDataType = '';
+
+ public function setAddBanding(Google_Service_Sheets_AddBandingResponse $addBanding)
+ {
+ $this->addBanding = $addBanding;
+ }
+ public function getAddBanding()
+ {
+ return $this->addBanding;
+ }
+ public function setAddChart(Google_Service_Sheets_AddChartResponse $addChart)
+ {
+ $this->addChart = $addChart;
+ }
+ public function getAddChart()
+ {
+ return $this->addChart;
+ }
+ public function setAddFilterView(Google_Service_Sheets_AddFilterViewResponse $addFilterView)
+ {
+ $this->addFilterView = $addFilterView;
+ }
+ public function getAddFilterView()
+ {
+ return $this->addFilterView;
+ }
+ public function setAddNamedRange(Google_Service_Sheets_AddNamedRangeResponse $addNamedRange)
+ {
+ $this->addNamedRange = $addNamedRange;
+ }
+ public function getAddNamedRange()
+ {
+ return $this->addNamedRange;
+ }
+ public function setAddProtectedRange(Google_Service_Sheets_AddProtectedRangeResponse $addProtectedRange)
+ {
+ $this->addProtectedRange = $addProtectedRange;
+ }
+ public function getAddProtectedRange()
+ {
+ return $this->addProtectedRange;
+ }
+ public function setAddSheet(Google_Service_Sheets_AddSheetResponse $addSheet)
+ {
+ $this->addSheet = $addSheet;
+ }
+ public function getAddSheet()
+ {
+ return $this->addSheet;
+ }
+ public function setDeleteConditionalFormatRule(Google_Service_Sheets_DeleteConditionalFormatRuleResponse $deleteConditionalFormatRule)
+ {
+ $this->deleteConditionalFormatRule = $deleteConditionalFormatRule;
+ }
+ public function getDeleteConditionalFormatRule()
+ {
+ return $this->deleteConditionalFormatRule;
+ }
+ public function setDuplicateFilterView(Google_Service_Sheets_DuplicateFilterViewResponse $duplicateFilterView)
+ {
+ $this->duplicateFilterView = $duplicateFilterView;
+ }
+ public function getDuplicateFilterView()
+ {
+ return $this->duplicateFilterView;
+ }
+ public function setDuplicateSheet(Google_Service_Sheets_DuplicateSheetResponse $duplicateSheet)
+ {
+ $this->duplicateSheet = $duplicateSheet;
+ }
+ public function getDuplicateSheet()
+ {
+ return $this->duplicateSheet;
+ }
+ public function setFindReplace(Google_Service_Sheets_FindReplaceResponse $findReplace)
+ {
+ $this->findReplace = $findReplace;
+ }
+ public function getFindReplace()
+ {
+ return $this->findReplace;
+ }
+ public function setUpdateConditionalFormatRule(Google_Service_Sheets_UpdateConditionalFormatRuleResponse $updateConditionalFormatRule)
+ {
+ $this->updateConditionalFormatRule = $updateConditionalFormatRule;
+ }
+ public function getUpdateConditionalFormatRule()
+ {
+ return $this->updateConditionalFormatRule;
+ }
+ public function setUpdateEmbeddedObjectPosition(Google_Service_Sheets_UpdateEmbeddedObjectPositionResponse $updateEmbeddedObjectPosition)
+ {
+ $this->updateEmbeddedObjectPosition = $updateEmbeddedObjectPosition;
+ }
+ public function getUpdateEmbeddedObjectPosition()
+ {
+ return $this->updateEmbeddedObjectPosition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RowData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RowData.php
new file mode 100644
index 00000000..63a44c67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/RowData.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_RowData extends Google_Collection
+{
+ protected $collection_key = 'values';
+ protected $valuesType = 'Google_Service_Sheets_CellData';
+ protected $valuesDataType = 'array';
+
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetBasicFilterRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetBasicFilterRequest.php
new file mode 100644
index 00000000..86178726
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetBasicFilterRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_SetBasicFilterRequest extends Google_Model
+{
+ protected $filterType = 'Google_Service_Sheets_BasicFilter';
+ protected $filterDataType = '';
+
+ public function setFilter(Google_Service_Sheets_BasicFilter $filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetDataValidationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetDataValidationRequest.php
new file mode 100644
index 00000000..d1264bcc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SetDataValidationRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_SetDataValidationRequest extends Google_Model
+{
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $ruleType = 'Google_Service_Sheets_DataValidationRule';
+ protected $ruleDataType = '';
+
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setRule(Google_Service_Sheets_DataValidationRule $rule)
+ {
+ $this->rule = $rule;
+ }
+ public function getRule()
+ {
+ return $this->rule;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Sheet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Sheet.php
new file mode 100644
index 00000000..8f6c92a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Sheet.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Sheet extends Google_Collection
+{
+ protected $collection_key = 'protectedRanges';
+ protected $bandedRangesType = 'Google_Service_Sheets_BandedRange';
+ protected $bandedRangesDataType = 'array';
+ protected $basicFilterType = 'Google_Service_Sheets_BasicFilter';
+ protected $basicFilterDataType = '';
+ protected $chartsType = 'Google_Service_Sheets_EmbeddedChart';
+ protected $chartsDataType = 'array';
+ protected $conditionalFormatsType = 'Google_Service_Sheets_ConditionalFormatRule';
+ protected $conditionalFormatsDataType = 'array';
+ protected $dataType = 'Google_Service_Sheets_GridData';
+ protected $dataDataType = 'array';
+ protected $filterViewsType = 'Google_Service_Sheets_FilterView';
+ protected $filterViewsDataType = 'array';
+ protected $mergesType = 'Google_Service_Sheets_GridRange';
+ protected $mergesDataType = 'array';
+ protected $propertiesType = 'Google_Service_Sheets_SheetProperties';
+ protected $propertiesDataType = '';
+ protected $protectedRangesType = 'Google_Service_Sheets_ProtectedRange';
+ protected $protectedRangesDataType = 'array';
+
+ public function setBandedRanges($bandedRanges)
+ {
+ $this->bandedRanges = $bandedRanges;
+ }
+ public function getBandedRanges()
+ {
+ return $this->bandedRanges;
+ }
+ public function setBasicFilter(Google_Service_Sheets_BasicFilter $basicFilter)
+ {
+ $this->basicFilter = $basicFilter;
+ }
+ public function getBasicFilter()
+ {
+ return $this->basicFilter;
+ }
+ public function setCharts($charts)
+ {
+ $this->charts = $charts;
+ }
+ public function getCharts()
+ {
+ return $this->charts;
+ }
+ public function setConditionalFormats($conditionalFormats)
+ {
+ $this->conditionalFormats = $conditionalFormats;
+ }
+ public function getConditionalFormats()
+ {
+ return $this->conditionalFormats;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setFilterViews($filterViews)
+ {
+ $this->filterViews = $filterViews;
+ }
+ public function getFilterViews()
+ {
+ return $this->filterViews;
+ }
+ public function setMerges($merges)
+ {
+ $this->merges = $merges;
+ }
+ public function getMerges()
+ {
+ return $this->merges;
+ }
+ public function setProperties(Google_Service_Sheets_SheetProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setProtectedRanges($protectedRanges)
+ {
+ $this->protectedRanges = $protectedRanges;
+ }
+ public function getProtectedRanges()
+ {
+ return $this->protectedRanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SheetProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SheetProperties.php
new file mode 100644
index 00000000..e885b969
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SheetProperties.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_SheetProperties extends Google_Model
+{
+ protected $gridPropertiesType = 'Google_Service_Sheets_GridProperties';
+ protected $gridPropertiesDataType = '';
+ public $hidden;
+ public $index;
+ public $rightToLeft;
+ public $sheetId;
+ public $sheetType;
+ protected $tabColorType = 'Google_Service_Sheets_Color';
+ protected $tabColorDataType = '';
+ public $title;
+
+ public function setGridProperties(Google_Service_Sheets_GridProperties $gridProperties)
+ {
+ $this->gridProperties = $gridProperties;
+ }
+ public function getGridProperties()
+ {
+ return $this->gridProperties;
+ }
+ public function setHidden($hidden)
+ {
+ $this->hidden = $hidden;
+ }
+ public function getHidden()
+ {
+ return $this->hidden;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setRightToLeft($rightToLeft)
+ {
+ $this->rightToLeft = $rightToLeft;
+ }
+ public function getRightToLeft()
+ {
+ return $this->rightToLeft;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+ public function setSheetType($sheetType)
+ {
+ $this->sheetType = $sheetType;
+ }
+ public function getSheetType()
+ {
+ return $this->sheetType;
+ }
+ public function setTabColor(Google_Service_Sheets_Color $tabColor)
+ {
+ $this->tabColor = $tabColor;
+ }
+ public function getTabColor()
+ {
+ return $this->tabColor;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortRangeRequest.php
new file mode 100644
index 00000000..672ac463
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortRangeRequest.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_SortRangeRequest extends Google_Collection
+{
+ protected $collection_key = 'sortSpecs';
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $sortSpecsType = 'Google_Service_Sheets_SortSpec';
+ protected $sortSpecsDataType = 'array';
+
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setSortSpecs($sortSpecs)
+ {
+ $this->sortSpecs = $sortSpecs;
+ }
+ public function getSortSpecs()
+ {
+ return $this->sortSpecs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortSpec.php
new file mode 100644
index 00000000..23ca6643
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SortSpec.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_SortSpec extends Google_Model
+{
+ public $dimensionIndex;
+ public $sortOrder;
+
+ public function setDimensionIndex($dimensionIndex)
+ {
+ $this->dimensionIndex = $dimensionIndex;
+ }
+ public function getDimensionIndex()
+ {
+ return $this->dimensionIndex;
+ }
+ public function setSortOrder($sortOrder)
+ {
+ $this->sortOrder = $sortOrder;
+ }
+ public function getSortOrder()
+ {
+ return $this->sortOrder;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SourceAndDestination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SourceAndDestination.php
new file mode 100644
index 00000000..cc8ba7cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SourceAndDestination.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_SourceAndDestination extends Google_Model
+{
+ public $dimension;
+ public $fillLength;
+ protected $sourceType = 'Google_Service_Sheets_GridRange';
+ protected $sourceDataType = '';
+
+ public function setDimension($dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setFillLength($fillLength)
+ {
+ $this->fillLength = $fillLength;
+ }
+ public function getFillLength()
+ {
+ return $this->fillLength;
+ }
+ public function setSource(Google_Service_Sheets_GridRange $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Spreadsheet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Spreadsheet.php
new file mode 100644
index 00000000..deb06fce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/Spreadsheet.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_Spreadsheet extends Google_Collection
+{
+ protected $collection_key = 'sheets';
+ protected $namedRangesType = 'Google_Service_Sheets_NamedRange';
+ protected $namedRangesDataType = 'array';
+ protected $propertiesType = 'Google_Service_Sheets_SpreadsheetProperties';
+ protected $propertiesDataType = '';
+ protected $sheetsType = 'Google_Service_Sheets_Sheet';
+ protected $sheetsDataType = 'array';
+ public $spreadsheetId;
+ public $spreadsheetUrl;
+
+ public function setNamedRanges($namedRanges)
+ {
+ $this->namedRanges = $namedRanges;
+ }
+ public function getNamedRanges()
+ {
+ return $this->namedRanges;
+ }
+ public function setProperties(Google_Service_Sheets_SpreadsheetProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setSheets($sheets)
+ {
+ $this->sheets = $sheets;
+ }
+ public function getSheets()
+ {
+ return $this->sheets;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+ public function setSpreadsheetUrl($spreadsheetUrl)
+ {
+ $this->spreadsheetUrl = $spreadsheetUrl;
+ }
+ public function getSpreadsheetUrl()
+ {
+ return $this->spreadsheetUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SpreadsheetProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SpreadsheetProperties.php
new file mode 100644
index 00000000..2b33c488
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/SpreadsheetProperties.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_SpreadsheetProperties extends Google_Model
+{
+ public $autoRecalc;
+ protected $defaultFormatType = 'Google_Service_Sheets_CellFormat';
+ protected $defaultFormatDataType = '';
+ protected $iterativeCalculationSettingsType = 'Google_Service_Sheets_IterativeCalculationSettings';
+ protected $iterativeCalculationSettingsDataType = '';
+ public $locale;
+ public $timeZone;
+ public $title;
+
+ public function setAutoRecalc($autoRecalc)
+ {
+ $this->autoRecalc = $autoRecalc;
+ }
+ public function getAutoRecalc()
+ {
+ return $this->autoRecalc;
+ }
+ public function setDefaultFormat(Google_Service_Sheets_CellFormat $defaultFormat)
+ {
+ $this->defaultFormat = $defaultFormat;
+ }
+ public function getDefaultFormat()
+ {
+ return $this->defaultFormat;
+ }
+ public function setIterativeCalculationSettings(Google_Service_Sheets_IterativeCalculationSettings $iterativeCalculationSettings)
+ {
+ $this->iterativeCalculationSettings = $iterativeCalculationSettings;
+ }
+ public function getIterativeCalculationSettings()
+ {
+ return $this->iterativeCalculationSettings;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormat.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormat.php
new file mode 100644
index 00000000..c51a1828
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormat.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_TextFormat extends Google_Model
+{
+ public $bold;
+ public $fontFamily;
+ public $fontSize;
+ protected $foregroundColorType = 'Google_Service_Sheets_Color';
+ protected $foregroundColorDataType = '';
+ public $italic;
+ public $strikethrough;
+ public $underline;
+
+ public function setBold($bold)
+ {
+ $this->bold = $bold;
+ }
+ public function getBold()
+ {
+ return $this->bold;
+ }
+ public function setFontFamily($fontFamily)
+ {
+ $this->fontFamily = $fontFamily;
+ }
+ public function getFontFamily()
+ {
+ return $this->fontFamily;
+ }
+ public function setFontSize($fontSize)
+ {
+ $this->fontSize = $fontSize;
+ }
+ public function getFontSize()
+ {
+ return $this->fontSize;
+ }
+ public function setForegroundColor(Google_Service_Sheets_Color $foregroundColor)
+ {
+ $this->foregroundColor = $foregroundColor;
+ }
+ public function getForegroundColor()
+ {
+ return $this->foregroundColor;
+ }
+ public function setItalic($italic)
+ {
+ $this->italic = $italic;
+ }
+ public function getItalic()
+ {
+ return $this->italic;
+ }
+ public function setStrikethrough($strikethrough)
+ {
+ $this->strikethrough = $strikethrough;
+ }
+ public function getStrikethrough()
+ {
+ return $this->strikethrough;
+ }
+ public function setUnderline($underline)
+ {
+ $this->underline = $underline;
+ }
+ public function getUnderline()
+ {
+ return $this->underline;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormatRun.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormatRun.php
new file mode 100644
index 00000000..7ee1c236
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextFormatRun.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_TextFormatRun extends Google_Model
+{
+ protected $formatType = 'Google_Service_Sheets_TextFormat';
+ protected $formatDataType = '';
+ public $startIndex;
+
+ public function setFormat(Google_Service_Sheets_TextFormat $format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextRotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextRotation.php
new file mode 100644
index 00000000..55f8902f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextRotation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_TextRotation extends Google_Model
+{
+ public $angle;
+ public $vertical;
+
+ public function setAngle($angle)
+ {
+ $this->angle = $angle;
+ }
+ public function getAngle()
+ {
+ return $this->angle;
+ }
+ public function setVertical($vertical)
+ {
+ $this->vertical = $vertical;
+ }
+ public function getVertical()
+ {
+ return $this->vertical;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextToColumnsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextToColumnsRequest.php
new file mode 100644
index 00000000..4229cdc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/TextToColumnsRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_TextToColumnsRequest extends Google_Model
+{
+ public $delimiter;
+ public $delimiterType;
+ protected $sourceType = 'Google_Service_Sheets_GridRange';
+ protected $sourceDataType = '';
+
+ public function setDelimiter($delimiter)
+ {
+ $this->delimiter = $delimiter;
+ }
+ public function getDelimiter()
+ {
+ return $this->delimiter;
+ }
+ public function setDelimiterType($delimiterType)
+ {
+ $this->delimiterType = $delimiterType;
+ }
+ public function getDelimiterType()
+ {
+ return $this->delimiterType;
+ }
+ public function setSource(Google_Service_Sheets_GridRange $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UnmergeCellsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UnmergeCellsRequest.php
new file mode 100644
index 00000000..c83ddb28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UnmergeCellsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UnmergeCellsRequest extends Google_Model
+{
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBandingRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBandingRequest.php
new file mode 100644
index 00000000..f4cea769
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBandingRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateBandingRequest extends Google_Model
+{
+ protected $bandedRangeType = 'Google_Service_Sheets_BandedRange';
+ protected $bandedRangeDataType = '';
+ public $fields;
+
+ public function setBandedRange(Google_Service_Sheets_BandedRange $bandedRange)
+ {
+ $this->bandedRange = $bandedRange;
+ }
+ public function getBandedRange()
+ {
+ return $this->bandedRange;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBordersRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBordersRequest.php
new file mode 100644
index 00000000..18b53b3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateBordersRequest.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateBordersRequest extends Google_Model
+{
+ protected $bottomType = 'Google_Service_Sheets_Border';
+ protected $bottomDataType = '';
+ protected $innerHorizontalType = 'Google_Service_Sheets_Border';
+ protected $innerHorizontalDataType = '';
+ protected $innerVerticalType = 'Google_Service_Sheets_Border';
+ protected $innerVerticalDataType = '';
+ protected $leftType = 'Google_Service_Sheets_Border';
+ protected $leftDataType = '';
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $rightType = 'Google_Service_Sheets_Border';
+ protected $rightDataType = '';
+ protected $topType = 'Google_Service_Sheets_Border';
+ protected $topDataType = '';
+
+ public function setBottom(Google_Service_Sheets_Border $bottom)
+ {
+ $this->bottom = $bottom;
+ }
+ public function getBottom()
+ {
+ return $this->bottom;
+ }
+ public function setInnerHorizontal(Google_Service_Sheets_Border $innerHorizontal)
+ {
+ $this->innerHorizontal = $innerHorizontal;
+ }
+ public function getInnerHorizontal()
+ {
+ return $this->innerHorizontal;
+ }
+ public function setInnerVertical(Google_Service_Sheets_Border $innerVertical)
+ {
+ $this->innerVertical = $innerVertical;
+ }
+ public function getInnerVertical()
+ {
+ return $this->innerVertical;
+ }
+ public function setLeft(Google_Service_Sheets_Border $left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setRight(Google_Service_Sheets_Border $right)
+ {
+ $this->right = $right;
+ }
+ public function getRight()
+ {
+ return $this->right;
+ }
+ public function setTop(Google_Service_Sheets_Border $top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateCellsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateCellsRequest.php
new file mode 100644
index 00000000..6d629d30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateCellsRequest.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateCellsRequest extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $fields;
+ protected $rangeType = 'Google_Service_Sheets_GridRange';
+ protected $rangeDataType = '';
+ protected $rowsType = 'Google_Service_Sheets_RowData';
+ protected $rowsDataType = 'array';
+ protected $startType = 'Google_Service_Sheets_GridCoordinate';
+ protected $startDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setRange(Google_Service_Sheets_GridRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setStart(Google_Service_Sheets_GridCoordinate $start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateChartSpecRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateChartSpecRequest.php
new file mode 100644
index 00000000..c40fd3fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateChartSpecRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateChartSpecRequest extends Google_Model
+{
+ public $chartId;
+ protected $specType = 'Google_Service_Sheets_ChartSpec';
+ protected $specDataType = '';
+
+ public function setChartId($chartId)
+ {
+ $this->chartId = $chartId;
+ }
+ public function getChartId()
+ {
+ return $this->chartId;
+ }
+ public function setSpec(Google_Service_Sheets_ChartSpec $spec)
+ {
+ $this->spec = $spec;
+ }
+ public function getSpec()
+ {
+ return $this->spec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleRequest.php
new file mode 100644
index 00000000..10aefd7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateConditionalFormatRuleRequest extends Google_Model
+{
+ public $index;
+ public $newIndex;
+ protected $ruleType = 'Google_Service_Sheets_ConditionalFormatRule';
+ protected $ruleDataType = '';
+ public $sheetId;
+
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setNewIndex($newIndex)
+ {
+ $this->newIndex = $newIndex;
+ }
+ public function getNewIndex()
+ {
+ return $this->newIndex;
+ }
+ public function setRule(Google_Service_Sheets_ConditionalFormatRule $rule)
+ {
+ $this->rule = $rule;
+ }
+ public function getRule()
+ {
+ return $this->rule;
+ }
+ public function setSheetId($sheetId)
+ {
+ $this->sheetId = $sheetId;
+ }
+ public function getSheetId()
+ {
+ return $this->sheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleResponse.php
new file mode 100644
index 00000000..3313cdc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateConditionalFormatRuleResponse.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateConditionalFormatRuleResponse extends Google_Model
+{
+ public $newIndex;
+ protected $newRuleType = 'Google_Service_Sheets_ConditionalFormatRule';
+ protected $newRuleDataType = '';
+ public $oldIndex;
+ protected $oldRuleType = 'Google_Service_Sheets_ConditionalFormatRule';
+ protected $oldRuleDataType = '';
+
+ public function setNewIndex($newIndex)
+ {
+ $this->newIndex = $newIndex;
+ }
+ public function getNewIndex()
+ {
+ return $this->newIndex;
+ }
+ public function setNewRule(Google_Service_Sheets_ConditionalFormatRule $newRule)
+ {
+ $this->newRule = $newRule;
+ }
+ public function getNewRule()
+ {
+ return $this->newRule;
+ }
+ public function setOldIndex($oldIndex)
+ {
+ $this->oldIndex = $oldIndex;
+ }
+ public function getOldIndex()
+ {
+ return $this->oldIndex;
+ }
+ public function setOldRule(Google_Service_Sheets_ConditionalFormatRule $oldRule)
+ {
+ $this->oldRule = $oldRule;
+ }
+ public function getOldRule()
+ {
+ return $this->oldRule;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateDimensionPropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateDimensionPropertiesRequest.php
new file mode 100644
index 00000000..b96c8ff0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateDimensionPropertiesRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateDimensionPropertiesRequest extends Google_Model
+{
+ public $fields;
+ protected $propertiesType = 'Google_Service_Sheets_DimensionProperties';
+ protected $propertiesDataType = '';
+ protected $rangeType = 'Google_Service_Sheets_DimensionRange';
+ protected $rangeDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setProperties(Google_Service_Sheets_DimensionProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setRange(Google_Service_Sheets_DimensionRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionRequest.php
new file mode 100644
index 00000000..153dccec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateEmbeddedObjectPositionRequest extends Google_Model
+{
+ public $fields;
+ protected $newPositionType = 'Google_Service_Sheets_EmbeddedObjectPosition';
+ protected $newPositionDataType = '';
+ public $objectId;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setNewPosition(Google_Service_Sheets_EmbeddedObjectPosition $newPosition)
+ {
+ $this->newPosition = $newPosition;
+ }
+ public function getNewPosition()
+ {
+ return $this->newPosition;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionResponse.php
new file mode 100644
index 00000000..e5bbd48d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateEmbeddedObjectPositionResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateEmbeddedObjectPositionResponse extends Google_Model
+{
+ protected $positionType = 'Google_Service_Sheets_EmbeddedObjectPosition';
+ protected $positionDataType = '';
+
+ public function setPosition(Google_Service_Sheets_EmbeddedObjectPosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateFilterViewRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateFilterViewRequest.php
new file mode 100644
index 00000000..7fe57b56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateFilterViewRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateFilterViewRequest extends Google_Model
+{
+ public $fields;
+ protected $filterType = 'Google_Service_Sheets_FilterView';
+ protected $filterDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setFilter(Google_Service_Sheets_FilterView $filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateNamedRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateNamedRangeRequest.php
new file mode 100644
index 00000000..7d9d8890
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateNamedRangeRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateNamedRangeRequest extends Google_Model
+{
+ public $fields;
+ protected $namedRangeType = 'Google_Service_Sheets_NamedRange';
+ protected $namedRangeDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setNamedRange(Google_Service_Sheets_NamedRange $namedRange)
+ {
+ $this->namedRange = $namedRange;
+ }
+ public function getNamedRange()
+ {
+ return $this->namedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateProtectedRangeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateProtectedRangeRequest.php
new file mode 100644
index 00000000..6f5b8327
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateProtectedRangeRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateProtectedRangeRequest extends Google_Model
+{
+ public $fields;
+ protected $protectedRangeType = 'Google_Service_Sheets_ProtectedRange';
+ protected $protectedRangeDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setProtectedRange(Google_Service_Sheets_ProtectedRange $protectedRange)
+ {
+ $this->protectedRange = $protectedRange;
+ }
+ public function getProtectedRange()
+ {
+ return $this->protectedRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSheetPropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSheetPropertiesRequest.php
new file mode 100644
index 00000000..c14acfc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSheetPropertiesRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateSheetPropertiesRequest extends Google_Model
+{
+ public $fields;
+ protected $propertiesType = 'Google_Service_Sheets_SheetProperties';
+ protected $propertiesDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setProperties(Google_Service_Sheets_SheetProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSpreadsheetPropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSpreadsheetPropertiesRequest.php
new file mode 100644
index 00000000..1bcea29e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateSpreadsheetPropertiesRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateSpreadsheetPropertiesRequest extends Google_Model
+{
+ public $fields;
+ protected $propertiesType = 'Google_Service_Sheets_SpreadsheetProperties';
+ protected $propertiesDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setProperties(Google_Service_Sheets_SpreadsheetProperties $properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateValuesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateValuesResponse.php
new file mode 100644
index 00000000..46dc85f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/UpdateValuesResponse.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_UpdateValuesResponse extends Google_Model
+{
+ public $spreadsheetId;
+ public $updatedCells;
+ public $updatedColumns;
+ protected $updatedDataType = 'Google_Service_Sheets_ValueRange';
+ protected $updatedDataDataType = '';
+ public $updatedRange;
+ public $updatedRows;
+
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+ public function setUpdatedCells($updatedCells)
+ {
+ $this->updatedCells = $updatedCells;
+ }
+ public function getUpdatedCells()
+ {
+ return $this->updatedCells;
+ }
+ public function setUpdatedColumns($updatedColumns)
+ {
+ $this->updatedColumns = $updatedColumns;
+ }
+ public function getUpdatedColumns()
+ {
+ return $this->updatedColumns;
+ }
+ public function setUpdatedData(Google_Service_Sheets_ValueRange $updatedData)
+ {
+ $this->updatedData = $updatedData;
+ }
+ public function getUpdatedData()
+ {
+ return $this->updatedData;
+ }
+ public function setUpdatedRange($updatedRange)
+ {
+ $this->updatedRange = $updatedRange;
+ }
+ public function getUpdatedRange()
+ {
+ return $this->updatedRange;
+ }
+ public function setUpdatedRows($updatedRows)
+ {
+ $this->updatedRows = $updatedRows;
+ }
+ public function getUpdatedRows()
+ {
+ return $this->updatedRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ValueRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ValueRange.php
new file mode 100644
index 00000000..3bc7a4b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Sheets/ValueRange.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Sheets_ValueRange extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $majorDimension;
+ public $range;
+ public $values;
+
+ public function setMajorDimension($majorDimension)
+ {
+ $this->majorDimension = $majorDimension;
+ }
+ public function getMajorDimension()
+ {
+ return $this->majorDimension;
+ }
+ public function setRange($range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent.php
new file mode 100644
index 00000000..16f60c56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent.php
@@ -0,0 +1,1114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ShoppingContent (v2).
+ *
+ * <p>
+ * Manages product items, inventory, and Merchant Center accounts for Google
+ * Shopping.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/shopping-content" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ShoppingContent extends Google_Service
+{
+ /** Manage your product listings and accounts for Google Shopping. */
+ const CONTENT =
+ "https://www.googleapis.com/auth/content";
+
+ public $accounts;
+ public $accountshipping;
+ public $accountstatuses;
+ public $accounttax;
+ public $datafeeds;
+ public $datafeedstatuses;
+ public $inventory;
+ public $orders;
+ public $products;
+ public $productstatuses;
+ public $shippingsettings;
+
+ /**
+ * Constructs the internal representation of the ShoppingContent service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'content/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'content';
+
+ $this->accounts = new Google_Service_ShoppingContent_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'authinfo' => array(
+ 'path' => 'accounts/authinfo',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'custombatch' => array(
+ 'path' => 'accounts/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{merchantId}/accounts/{accountId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{merchantId}/accounts/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{merchantId}/accounts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{merchantId}/accounts/{accountId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{merchantId}/accounts/{accountId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accountshipping = new Google_Service_ShoppingContent_Resource_Accountshipping(
+ $this,
+ $this->serviceName,
+ 'accountshipping',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'accountshipping/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{merchantId}/accountshipping/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/accountshipping',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{merchantId}/accountshipping/{accountId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{merchantId}/accountshipping/{accountId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accountstatuses = new Google_Service_ShoppingContent_Resource_Accountstatuses(
+ $this,
+ $this->serviceName,
+ 'accountstatuses',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'accountstatuses/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => '{merchantId}/accountstatuses/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/accountstatuses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounttax = new Google_Service_ShoppingContent_Resource_Accounttax(
+ $this,
+ $this->serviceName,
+ 'accounttax',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'accounttax/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{merchantId}/accounttax/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/accounttax',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{merchantId}/accounttax/{accountId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{merchantId}/accounttax/{accountId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->datafeeds = new Google_Service_ShoppingContent_Resource_Datafeeds(
+ $this,
+ $this->serviceName,
+ 'datafeeds',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'datafeeds/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{merchantId}/datafeeds/{datafeedId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datafeedId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{merchantId}/datafeeds/{datafeedId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datafeedId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{merchantId}/datafeeds',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/datafeeds',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{merchantId}/datafeeds/{datafeedId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datafeedId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{merchantId}/datafeeds/{datafeedId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datafeedId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->datafeedstatuses = new Google_Service_ShoppingContent_Resource_Datafeedstatuses(
+ $this,
+ $this->serviceName,
+ 'datafeedstatuses',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'datafeedstatuses/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => '{merchantId}/datafeedstatuses/{datafeedId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'datafeedId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/datafeedstatuses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->inventory = new Google_Service_ShoppingContent_Resource_Inventory(
+ $this,
+ $this->serviceName,
+ 'inventory',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'inventory/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'set' => array(
+ 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'storeCode' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->orders = new Google_Service_ShoppingContent_Resource_Orders(
+ $this,
+ $this->serviceName,
+ 'orders',
+ array(
+ 'methods' => array(
+ 'acknowledge' => array(
+ 'path' => '{merchantId}/orders/{orderId}/acknowledge',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'advancetestorder' => array(
+ 'path' => '{merchantId}/testorders/{orderId}/advance',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'cancel' => array(
+ 'path' => '{merchantId}/orders/{orderId}/cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'cancellineitem' => array(
+ 'path' => '{merchantId}/orders/{orderId}/cancelLineItem',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'createtestorder' => array(
+ 'path' => '{merchantId}/testorders',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'custombatch' => array(
+ 'path' => 'orders/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => '{merchantId}/orders/{orderId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getbymerchantorderid' => array(
+ 'path' => '{merchantId}/ordersbymerchantid/{merchantOrderId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'merchantOrderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'gettestordertemplate' => array(
+ 'path' => '{merchantId}/testordertemplates/{templateName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'templateName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/orders',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'acknowledged' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'placedDateEnd' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'placedDateStart' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'statuses' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),'refund' => array(
+ 'path' => '{merchantId}/orders/{orderId}/refund',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'returnlineitem' => array(
+ 'path' => '{merchantId}/orders/{orderId}/returnLineItem',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'shiplineitems' => array(
+ 'path' => '{merchantId}/orders/{orderId}/shipLineItems',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updatemerchantorderid' => array(
+ 'path' => '{merchantId}/orders/{orderId}/updateMerchantOrderId',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updateshipment' => array(
+ 'path' => '{merchantId}/orders/{orderId}/updateShipment',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'orderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->products = new Google_Service_ShoppingContent_Resource_Products(
+ $this,
+ $this->serviceName,
+ 'products',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'products/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => '{merchantId}/products/{productId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{merchantId}/products/{productId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{merchantId}/products',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/products',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeInvalidInsertedItems' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->productstatuses = new Google_Service_ShoppingContent_Resource_Productstatuses(
+ $this,
+ $this->serviceName,
+ 'productstatuses',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'productstatuses/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => '{merchantId}/productstatuses/{productId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'productId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/productstatuses',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'includeInvalidInsertedItems' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->shippingsettings = new Google_Service_ShoppingContent_Resource_Shippingsettings(
+ $this,
+ $this->serviceName,
+ 'shippingsettings',
+ array(
+ 'methods' => array(
+ 'custombatch' => array(
+ 'path' => 'shippingsettings/batch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{merchantId}/shippingsettings/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getsupportedcarriers' => array(
+ 'path' => '{merchantId}/supportedCarriers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{merchantId}/shippingsettings',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{merchantId}/shippingsettings/{accountId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{merchantId}/shippingsettings/{accountId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'merchantId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'dryRun' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php
new file mode 100644
index 00000000..818b624f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Account.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Account extends Google_Collection
+{
+ protected $collection_key = 'users';
+ public $adultContent;
+ protected $adwordsLinksType = 'Google_Service_ShoppingContent_AccountAdwordsLink';
+ protected $adwordsLinksDataType = 'array';
+ public $id;
+ public $kind;
+ public $name;
+ public $reviewsUrl;
+ public $sellerId;
+ protected $usersType = 'Google_Service_ShoppingContent_AccountUser';
+ protected $usersDataType = 'array';
+ public $websiteUrl;
+
+ public function setAdultContent($adultContent)
+ {
+ $this->adultContent = $adultContent;
+ }
+ public function getAdultContent()
+ {
+ return $this->adultContent;
+ }
+ public function setAdwordsLinks($adwordsLinks)
+ {
+ $this->adwordsLinks = $adwordsLinks;
+ }
+ public function getAdwordsLinks()
+ {
+ return $this->adwordsLinks;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReviewsUrl($reviewsUrl)
+ {
+ $this->reviewsUrl = $reviewsUrl;
+ }
+ public function getReviewsUrl()
+ {
+ return $this->reviewsUrl;
+ }
+ public function setSellerId($sellerId)
+ {
+ $this->sellerId = $sellerId;
+ }
+ public function getSellerId()
+ {
+ return $this->sellerId;
+ }
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdwordsLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdwordsLink.php
new file mode 100644
index 00000000..7545618e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountAdwordsLink.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model
+{
+ public $adwordsId;
+ public $status;
+
+ public function setAdwordsId($adwordsId)
+ {
+ $this->adwordsId = $adwordsId;
+ }
+ public function getAdwordsId()
+ {
+ return $this->adwordsId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountIdentifier.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountIdentifier.php
new file mode 100644
index 00000000..79b5ecfb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountIdentifier.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountIdentifier extends Google_Model
+{
+ public $aggregatorId;
+ public $merchantId;
+
+ public function setAggregatorId($aggregatorId)
+ {
+ $this->aggregatorId = $aggregatorId;
+ }
+ public function getAggregatorId()
+ {
+ return $this->aggregatorId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShipping.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShipping.php
new file mode 100644
index 00000000..bd5cceb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShipping.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShipping extends Google_Collection
+{
+ protected $collection_key = 'services';
+ public $accountId;
+ protected $carrierRatesType = 'Google_Service_ShoppingContent_AccountShippingCarrierRate';
+ protected $carrierRatesDataType = 'array';
+ public $kind;
+ protected $locationGroupsType = 'Google_Service_ShoppingContent_AccountShippingLocationGroup';
+ protected $locationGroupsDataType = 'array';
+ protected $rateTablesType = 'Google_Service_ShoppingContent_AccountShippingRateTable';
+ protected $rateTablesDataType = 'array';
+ protected $servicesType = 'Google_Service_ShoppingContent_AccountShippingShippingService';
+ protected $servicesDataType = 'array';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCarrierRates($carrierRates)
+ {
+ $this->carrierRates = $carrierRates;
+ }
+ public function getCarrierRates()
+ {
+ return $this->carrierRates;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocationGroups($locationGroups)
+ {
+ $this->locationGroups = $locationGroups;
+ }
+ public function getLocationGroups()
+ {
+ return $this->locationGroups;
+ }
+ public function setRateTables($rateTables)
+ {
+ $this->rateTables = $rateTables;
+ }
+ public function getRateTables()
+ {
+ return $this->rateTables;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCarrierRate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCarrierRate.php
new file mode 100644
index 00000000..e3019122
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCarrierRate.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingCarrierRate extends Google_Model
+{
+ public $carrier;
+ public $carrierService;
+ protected $modifierFlatRateType = 'Google_Service_ShoppingContent_Price';
+ protected $modifierFlatRateDataType = '';
+ public $modifierPercent;
+ public $name;
+ public $saleCountry;
+ public $shippingOrigin;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setCarrierService($carrierService)
+ {
+ $this->carrierService = $carrierService;
+ }
+ public function getCarrierService()
+ {
+ return $this->carrierService;
+ }
+ public function setModifierFlatRate(Google_Service_ShoppingContent_Price $modifierFlatRate)
+ {
+ $this->modifierFlatRate = $modifierFlatRate;
+ }
+ public function getModifierFlatRate()
+ {
+ return $this->modifierFlatRate;
+ }
+ public function setModifierPercent($modifierPercent)
+ {
+ $this->modifierPercent = $modifierPercent;
+ }
+ public function getModifierPercent()
+ {
+ return $this->modifierPercent;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSaleCountry($saleCountry)
+ {
+ $this->saleCountry = $saleCountry;
+ }
+ public function getSaleCountry()
+ {
+ return $this->saleCountry;
+ }
+ public function setShippingOrigin($shippingOrigin)
+ {
+ $this->shippingOrigin = $shippingOrigin;
+ }
+ public function getShippingOrigin()
+ {
+ return $this->shippingOrigin;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCondition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCondition.php
new file mode 100644
index 00000000..9bd68b91
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingCondition.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Model
+{
+ public $deliveryLocationGroup;
+ public $deliveryLocationId;
+ public $deliveryPostalCode;
+ protected $deliveryPostalCodeRangeType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange';
+ protected $deliveryPostalCodeRangeDataType = '';
+ protected $priceMaxType = 'Google_Service_ShoppingContent_Price';
+ protected $priceMaxDataType = '';
+ public $shippingLabel;
+ protected $weightMaxType = 'Google_Service_ShoppingContent_Weight';
+ protected $weightMaxDataType = '';
+
+ public function setDeliveryLocationGroup($deliveryLocationGroup)
+ {
+ $this->deliveryLocationGroup = $deliveryLocationGroup;
+ }
+ public function getDeliveryLocationGroup()
+ {
+ return $this->deliveryLocationGroup;
+ }
+ public function setDeliveryLocationId($deliveryLocationId)
+ {
+ $this->deliveryLocationId = $deliveryLocationId;
+ }
+ public function getDeliveryLocationId()
+ {
+ return $this->deliveryLocationId;
+ }
+ public function setDeliveryPostalCode($deliveryPostalCode)
+ {
+ $this->deliveryPostalCode = $deliveryPostalCode;
+ }
+ public function getDeliveryPostalCode()
+ {
+ return $this->deliveryPostalCode;
+ }
+ public function setDeliveryPostalCodeRange(Google_Service_ShoppingContent_AccountShippingPostalCodeRange $deliveryPostalCodeRange)
+ {
+ $this->deliveryPostalCodeRange = $deliveryPostalCodeRange;
+ }
+ public function getDeliveryPostalCodeRange()
+ {
+ return $this->deliveryPostalCodeRange;
+ }
+ public function setPriceMax(Google_Service_ShoppingContent_Price $priceMax)
+ {
+ $this->priceMax = $priceMax;
+ }
+ public function getPriceMax()
+ {
+ return $this->priceMax;
+ }
+ public function setShippingLabel($shippingLabel)
+ {
+ $this->shippingLabel = $shippingLabel;
+ }
+ public function getShippingLabel()
+ {
+ return $this->shippingLabel;
+ }
+ public function setWeightMax(Google_Service_ShoppingContent_Weight $weightMax)
+ {
+ $this->weightMax = $weightMax;
+ }
+ public function getWeightMax()
+ {
+ return $this->weightMax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingLocationGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingLocationGroup.php
new file mode 100644
index 00000000..5e0ca75f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingLocationGroup.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google_Collection
+{
+ protected $collection_key = 'postalCodes';
+ public $country;
+ public $locationIds;
+ public $name;
+ protected $postalCodeRangesType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange';
+ protected $postalCodeRangesDataType = 'array';
+ public $postalCodes;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLocationIds($locationIds)
+ {
+ $this->locationIds = $locationIds;
+ }
+ public function getLocationIds()
+ {
+ return $this->locationIds;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPostalCodeRanges($postalCodeRanges)
+ {
+ $this->postalCodeRanges = $postalCodeRanges;
+ }
+ public function getPostalCodeRanges()
+ {
+ return $this->postalCodeRanges;
+ }
+ public function setPostalCodes($postalCodes)
+ {
+ $this->postalCodes = $postalCodes;
+ }
+ public function getPostalCodes()
+ {
+ return $this->postalCodes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingPostalCodeRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingPostalCodeRange.php
new file mode 100644
index 00000000..d2151ace
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingPostalCodeRange.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingPostalCodeRange extends Google_Model
+{
+ public $end;
+ public $start;
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTable.php
new file mode 100644
index 00000000..c8b0e177
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTable.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection
+{
+ protected $collection_key = 'content';
+ protected $contentType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell';
+ protected $contentDataType = 'array';
+ public $name;
+ public $saleCountry;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSaleCountry($saleCountry)
+ {
+ $this->saleCountry = $saleCountry;
+ }
+ public function getSaleCountry()
+ {
+ return $this->saleCountry;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTableCell.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTableCell.php
new file mode 100644
index 00000000..543395d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingRateTableCell.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingRateTableCell extends Google_Model
+{
+ protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition';
+ protected $conditionDataType = '';
+ protected $rateType = 'Google_Service_ShoppingContent_Price';
+ protected $rateDataType = '';
+
+ public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setRate(Google_Service_ShoppingContent_Price $rate)
+ {
+ $this->rate = $rate;
+ }
+ public function getRate()
+ {
+ return $this->rate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingService.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingService.php
new file mode 100644
index 00000000..555ef16e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingService.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingShippingService extends Google_Model
+{
+ public $active;
+ protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod';
+ protected $calculationMethodDataType = '';
+ protected $costRuleTreeType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule';
+ protected $costRuleTreeDataType = '';
+ public $maxDaysInTransit;
+ public $minDaysInTransit;
+ public $name;
+ public $saleCountry;
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod)
+ {
+ $this->calculationMethod = $calculationMethod;
+ }
+ public function getCalculationMethod()
+ {
+ return $this->calculationMethod;
+ }
+ public function setCostRuleTree(Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule $costRuleTree)
+ {
+ $this->costRuleTree = $costRuleTree;
+ }
+ public function getCostRuleTree()
+ {
+ return $this->costRuleTree;
+ }
+ public function setMaxDaysInTransit($maxDaysInTransit)
+ {
+ $this->maxDaysInTransit = $maxDaysInTransit;
+ }
+ public function getMaxDaysInTransit()
+ {
+ return $this->maxDaysInTransit;
+ }
+ public function setMinDaysInTransit($minDaysInTransit)
+ {
+ $this->minDaysInTransit = $minDaysInTransit;
+ }
+ public function getMinDaysInTransit()
+ {
+ return $this->minDaysInTransit;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSaleCountry($saleCountry)
+ {
+ $this->saleCountry = $saleCountry;
+ }
+ public function getSaleCountry()
+ {
+ return $this->saleCountry;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCalculationMethod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCalculationMethod.php
new file mode 100644
index 00000000..3540f418
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCalculationMethod.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod extends Google_Model
+{
+ public $carrierRate;
+ public $excluded;
+ protected $flatRateType = 'Google_Service_ShoppingContent_Price';
+ protected $flatRateDataType = '';
+ public $percentageRate;
+ public $rateTable;
+
+ public function setCarrierRate($carrierRate)
+ {
+ $this->carrierRate = $carrierRate;
+ }
+ public function getCarrierRate()
+ {
+ return $this->carrierRate;
+ }
+ public function setExcluded($excluded)
+ {
+ $this->excluded = $excluded;
+ }
+ public function getExcluded()
+ {
+ return $this->excluded;
+ }
+ public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate)
+ {
+ $this->flatRate = $flatRate;
+ }
+ public function getFlatRate()
+ {
+ return $this->flatRate;
+ }
+ public function setPercentageRate($percentageRate)
+ {
+ $this->percentageRate = $percentageRate;
+ }
+ public function getPercentageRate()
+ {
+ return $this->percentageRate;
+ }
+ public function setRateTable($rateTable)
+ {
+ $this->rateTable = $rateTable;
+ }
+ public function getRateTable()
+ {
+ return $this->rateTable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCostRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCostRule.php
new file mode 100644
index 00000000..cef52308
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountShippingShippingServiceCostRule.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule extends Google_Collection
+{
+ protected $collection_key = 'children';
+ protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod';
+ protected $calculationMethodDataType = '';
+ protected $childrenType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule';
+ protected $childrenDataType = 'array';
+ protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition';
+ protected $conditionDataType = '';
+
+ public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod)
+ {
+ $this->calculationMethod = $calculationMethod;
+ }
+ public function getCalculationMethod()
+ {
+ return $this->calculationMethod;
+ }
+ public function setChildren($children)
+ {
+ $this->children = $children;
+ }
+ public function getChildren()
+ {
+ return $this->children;
+ }
+ public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php
new file mode 100644
index 00000000..36fbb5d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatus.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountStatus extends Google_Collection
+{
+ protected $collection_key = 'dataQualityIssues';
+ public $accountId;
+ protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue';
+ protected $dataQualityIssuesDataType = 'array';
+ public $kind;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setDataQualityIssues($dataQualityIssues)
+ {
+ $this->dataQualityIssues = $dataQualityIssues;
+ }
+ public function getDataQualityIssues()
+ {
+ return $this->dataQualityIssues;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusDataQualityIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusDataQualityIssue.php
new file mode 100644
index 00000000..300fd262
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusDataQualityIssue.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection
+{
+ protected $collection_key = 'exampleItems';
+ public $country;
+ public $detail;
+ public $displayedValue;
+ protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem';
+ protected $exampleItemsDataType = 'array';
+ public $id;
+ public $lastChecked;
+ public $location;
+ public $numItems;
+ public $severity;
+ public $submittedValue;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setDetail($detail)
+ {
+ $this->detail = $detail;
+ }
+ public function getDetail()
+ {
+ return $this->detail;
+ }
+ public function setDisplayedValue($displayedValue)
+ {
+ $this->displayedValue = $displayedValue;
+ }
+ public function getDisplayedValue()
+ {
+ return $this->displayedValue;
+ }
+ public function setExampleItems($exampleItems)
+ {
+ $this->exampleItems = $exampleItems;
+ }
+ public function getExampleItems()
+ {
+ return $this->exampleItems;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLastChecked($lastChecked)
+ {
+ $this->lastChecked = $lastChecked;
+ }
+ public function getLastChecked()
+ {
+ return $this->lastChecked;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setNumItems($numItems)
+ {
+ $this->numItems = $numItems;
+ }
+ public function getNumItems()
+ {
+ return $this->numItems;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setSubmittedValue($submittedValue)
+ {
+ $this->submittedValue = $submittedValue;
+ }
+ public function getSubmittedValue()
+ {
+ return $this->submittedValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusExampleItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusExampleItem.php
new file mode 100644
index 00000000..f8a5b560
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountStatusExampleItem.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model
+{
+ public $itemId;
+ public $link;
+ public $submittedValue;
+ public $title;
+ public $valueOnLandingPage;
+
+ public function setItemId($itemId)
+ {
+ $this->itemId = $itemId;
+ }
+ public function getItemId()
+ {
+ return $this->itemId;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setSubmittedValue($submittedValue)
+ {
+ $this->submittedValue = $submittedValue;
+ }
+ public function getSubmittedValue()
+ {
+ return $this->submittedValue;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setValueOnLandingPage($valueOnLandingPage)
+ {
+ $this->valueOnLandingPage = $valueOnLandingPage;
+ }
+ public function getValueOnLandingPage()
+ {
+ return $this->valueOnLandingPage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTax.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTax.php
new file mode 100644
index 00000000..a1fd005c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTax.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountTax extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ public $accountId;
+ public $kind;
+ protected $rulesType = 'Google_Service_ShoppingContent_AccountTaxTaxRule';
+ protected $rulesDataType = 'array';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTaxTaxRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTaxTaxRule.php
new file mode 100644
index 00000000..96392bc5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountTaxTaxRule.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountTaxTaxRule extends Google_Model
+{
+ public $country;
+ public $locationId;
+ public $ratePercent;
+ public $shippingTaxed;
+ public $useGlobalRate;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setRatePercent($ratePercent)
+ {
+ $this->ratePercent = $ratePercent;
+ }
+ public function getRatePercent()
+ {
+ return $this->ratePercent;
+ }
+ public function setShippingTaxed($shippingTaxed)
+ {
+ $this->shippingTaxed = $shippingTaxed;
+ }
+ public function getShippingTaxed()
+ {
+ return $this->shippingTaxed;
+ }
+ public function setUseGlobalRate($useGlobalRate)
+ {
+ $this->useGlobalRate = $useGlobalRate;
+ }
+ public function getUseGlobalRate()
+ {
+ return $this->useGlobalRate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php
new file mode 100644
index 00000000..362063b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountUser.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountUser extends Google_Model
+{
+ public $admin;
+ public $emailAddress;
+
+ public function setAdmin($admin)
+ {
+ $this->admin = $admin;
+ }
+ public function getAdmin()
+ {
+ return $this->admin;
+ }
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsAuthInfoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsAuthInfoResponse.php
new file mode 100644
index 00000000..e3584f51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsAuthInfoResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountsAuthInfoResponse extends Google_Collection
+{
+ protected $collection_key = 'accountIdentifiers';
+ protected $accountIdentifiersType = 'Google_Service_ShoppingContent_AccountIdentifier';
+ protected $accountIdentifiersDataType = 'array';
+ public $kind;
+
+ public function setAccountIdentifiers($accountIdentifiers)
+ {
+ $this->accountIdentifiers = $accountIdentifiers;
+ }
+ public function getAccountIdentifiers()
+ {
+ return $this->accountIdentifiers;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequest.php
new file mode 100644
index 00000000..ab20c936
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php
new file mode 100644
index 00000000..3dc1d680
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchRequestEntry.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model
+{
+ protected $accountType = 'Google_Service_ShoppingContent_Account';
+ protected $accountDataType = '';
+ public $accountId;
+ public $batchId;
+ public $merchantId;
+ public $method;
+
+ public function setAccount(Google_Service_ShoppingContent_Account $account)
+ {
+ $this->account = $account;
+ }
+ public function getAccount()
+ {
+ return $this->account;
+ }
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponse.php
new file mode 100644
index 00000000..80a842b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponseEntry.php
new file mode 100644
index 00000000..13bf5d7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsCustomBatchResponseEntry.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model
+{
+ protected $accountType = 'Google_Service_ShoppingContent_Account';
+ protected $accountDataType = '';
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+
+ public function setAccount(Google_Service_ShoppingContent_Account $account)
+ {
+ $this->account = $account;
+ }
+ public function getAccount()
+ {
+ return $this->account;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsListResponse.php
new file mode 100644
index 00000000..bdc618f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_Account';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequest.php
new file mode 100644
index 00000000..41af4e86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountshippingCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequestEntry.php
new file mode 100644
index 00000000..c0848ec0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchRequestEntry.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry extends Google_Model
+{
+ public $accountId;
+ protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping';
+ protected $accountShippingDataType = '';
+ public $batchId;
+ public $merchantId;
+ public $method;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping)
+ {
+ $this->accountShipping = $accountShipping;
+ }
+ public function getAccountShipping()
+ {
+ return $this->accountShipping;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponse.php
new file mode 100644
index 00000000..62d66179
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountshippingCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponseEntry.php
new file mode 100644
index 00000000..b0528ddf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingCustomBatchResponseEntry.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry extends Google_Model
+{
+ protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping';
+ protected $accountShippingDataType = '';
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+
+ public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping)
+ {
+ $this->accountShipping = $accountShipping;
+ }
+ public function getAccountShipping()
+ {
+ return $this->accountShipping;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingListResponse.php
new file mode 100644
index 00000000..bb9a7bf0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountshippingListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountshippingListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_AccountShipping';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequest.php
new file mode 100644
index 00000000..543f2a22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequestEntry.php
new file mode 100644
index 00000000..5d81ce10
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchRequestEntry.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model
+{
+ public $accountId;
+ public $batchId;
+ public $merchantId;
+ public $method;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponse.php
new file mode 100644
index 00000000..122ad14c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponseEntry.php
new file mode 100644
index 00000000..9b9b81d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesCustomBatchResponseEntry.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model
+{
+ protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus';
+ protected $accountStatusDataType = '';
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+
+ public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus)
+ {
+ $this->accountStatus = $accountStatus;
+ }
+ public function getAccountStatus()
+ {
+ return $this->accountStatus;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesListResponse.php
new file mode 100644
index 00000000..2ee02e44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccountstatusesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequest.php
new file mode 100644
index 00000000..74d5621f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccounttaxCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequestEntry.php
new file mode 100644
index 00000000..4daddcf6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchRequestEntry.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry extends Google_Model
+{
+ public $accountId;
+ protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax';
+ protected $accountTaxDataType = '';
+ public $batchId;
+ public $merchantId;
+ public $method;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax)
+ {
+ $this->accountTax = $accountTax;
+ }
+ public function getAccountTax()
+ {
+ return $this->accountTax;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponse.php
new file mode 100644
index 00000000..af6cf096
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccounttaxCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponseEntry.php
new file mode 100644
index 00000000..47fde886
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxCustomBatchResponseEntry.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry extends Google_Model
+{
+ protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax';
+ protected $accountTaxDataType = '';
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+
+ public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax)
+ {
+ $this->accountTax = $accountTax;
+ }
+ public function getAccountTax()
+ {
+ return $this->accountTax;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxListResponse.php
new file mode 100644
index 00000000..e066451e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/AccounttaxListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_AccounttaxListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_AccountTax';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarrierRate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarrierRate.php
new file mode 100644
index 00000000..fdcd0ba2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarrierRate.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_CarrierRate extends Google_Model
+{
+ public $carrierName;
+ public $carrierService;
+ protected $flatAdjustmentType = 'Google_Service_ShoppingContent_Price';
+ protected $flatAdjustmentDataType = '';
+ public $name;
+ public $originPostalCode;
+ public $percentageAdjustment;
+
+ public function setCarrierName($carrierName)
+ {
+ $this->carrierName = $carrierName;
+ }
+ public function getCarrierName()
+ {
+ return $this->carrierName;
+ }
+ public function setCarrierService($carrierService)
+ {
+ $this->carrierService = $carrierService;
+ }
+ public function getCarrierService()
+ {
+ return $this->carrierService;
+ }
+ public function setFlatAdjustment(Google_Service_ShoppingContent_Price $flatAdjustment)
+ {
+ $this->flatAdjustment = $flatAdjustment;
+ }
+ public function getFlatAdjustment()
+ {
+ return $this->flatAdjustment;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOriginPostalCode($originPostalCode)
+ {
+ $this->originPostalCode = $originPostalCode;
+ }
+ public function getOriginPostalCode()
+ {
+ return $this->originPostalCode;
+ }
+ public function setPercentageAdjustment($percentageAdjustment)
+ {
+ $this->percentageAdjustment = $percentageAdjustment;
+ }
+ public function getPercentageAdjustment()
+ {
+ return $this->percentageAdjustment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarriersCarrier.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarriersCarrier.php
new file mode 100644
index 00000000..1bcec7f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/CarriersCarrier.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_CarriersCarrier extends Google_Collection
+{
+ protected $collection_key = 'services';
+ public $country;
+ public $name;
+ public $services;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php
new file mode 100644
index 00000000..0666c0d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Datafeed.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Datafeed extends Google_Collection
+{
+ protected $collection_key = 'intendedDestinations';
+ public $attributeLanguage;
+ public $contentLanguage;
+ public $contentType;
+ protected $fetchScheduleType = 'Google_Service_ShoppingContent_DatafeedFetchSchedule';
+ protected $fetchScheduleDataType = '';
+ public $fileName;
+ protected $formatType = 'Google_Service_ShoppingContent_DatafeedFormat';
+ protected $formatDataType = '';
+ public $id;
+ public $intendedDestinations;
+ public $kind;
+ public $name;
+ public $targetCountry;
+
+ public function setAttributeLanguage($attributeLanguage)
+ {
+ $this->attributeLanguage = $attributeLanguage;
+ }
+ public function getAttributeLanguage()
+ {
+ return $this->attributeLanguage;
+ }
+ public function setContentLanguage($contentLanguage)
+ {
+ $this->contentLanguage = $contentLanguage;
+ }
+ public function getContentLanguage()
+ {
+ return $this->contentLanguage;
+ }
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setFetchSchedule(Google_Service_ShoppingContent_DatafeedFetchSchedule $fetchSchedule)
+ {
+ $this->fetchSchedule = $fetchSchedule;
+ }
+ public function getFetchSchedule()
+ {
+ return $this->fetchSchedule;
+ }
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+ public function setFormat(Google_Service_ShoppingContent_DatafeedFormat $format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIntendedDestinations($intendedDestinations)
+ {
+ $this->intendedDestinations = $intendedDestinations;
+ }
+ public function getIntendedDestinations()
+ {
+ return $this->intendedDestinations;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTargetCountry($targetCountry)
+ {
+ $this->targetCountry = $targetCountry;
+ }
+ public function getTargetCountry()
+ {
+ return $this->targetCountry;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFetchSchedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFetchSchedule.php
new file mode 100644
index 00000000..289db369
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFetchSchedule.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedFetchSchedule extends Google_Model
+{
+ public $dayOfMonth;
+ public $fetchUrl;
+ public $hour;
+ public $minuteOfHour;
+ public $password;
+ public $timeZone;
+ public $username;
+ public $weekday;
+
+ public function setDayOfMonth($dayOfMonth)
+ {
+ $this->dayOfMonth = $dayOfMonth;
+ }
+ public function getDayOfMonth()
+ {
+ return $this->dayOfMonth;
+ }
+ public function setFetchUrl($fetchUrl)
+ {
+ $this->fetchUrl = $fetchUrl;
+ }
+ public function getFetchUrl()
+ {
+ return $this->fetchUrl;
+ }
+ public function setHour($hour)
+ {
+ $this->hour = $hour;
+ }
+ public function getHour()
+ {
+ return $this->hour;
+ }
+ public function setMinuteOfHour($minuteOfHour)
+ {
+ $this->minuteOfHour = $minuteOfHour;
+ }
+ public function getMinuteOfHour()
+ {
+ return $this->minuteOfHour;
+ }
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setTimeZone($timeZone)
+ {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone()
+ {
+ return $this->timeZone;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+ public function setWeekday($weekday)
+ {
+ $this->weekday = $weekday;
+ }
+ public function getWeekday()
+ {
+ return $this->weekday;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFormat.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFormat.php
new file mode 100644
index 00000000..e3f55163
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedFormat.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedFormat extends Google_Model
+{
+ public $columnDelimiter;
+ public $fileEncoding;
+ public $quotingMode;
+
+ public function setColumnDelimiter($columnDelimiter)
+ {
+ $this->columnDelimiter = $columnDelimiter;
+ }
+ public function getColumnDelimiter()
+ {
+ return $this->columnDelimiter;
+ }
+ public function setFileEncoding($fileEncoding)
+ {
+ $this->fileEncoding = $fileEncoding;
+ }
+ public function getFileEncoding()
+ {
+ return $this->fileEncoding;
+ }
+ public function setQuotingMode($quotingMode)
+ {
+ $this->quotingMode = $quotingMode;
+ }
+ public function getQuotingMode()
+ {
+ return $this->quotingMode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatus.php
new file mode 100644
index 00000000..c563297e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatus.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $datafeedId;
+ protected $errorsType = 'Google_Service_ShoppingContent_DatafeedStatusError';
+ protected $errorsDataType = 'array';
+ public $itemsTotal;
+ public $itemsValid;
+ public $kind;
+ public $lastUploadDate;
+ public $processingStatus;
+ protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError';
+ protected $warningsDataType = 'array';
+
+ public function setDatafeedId($datafeedId)
+ {
+ $this->datafeedId = $datafeedId;
+ }
+ public function getDatafeedId()
+ {
+ return $this->datafeedId;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setItemsTotal($itemsTotal)
+ {
+ $this->itemsTotal = $itemsTotal;
+ }
+ public function getItemsTotal()
+ {
+ return $this->itemsTotal;
+ }
+ public function setItemsValid($itemsValid)
+ {
+ $this->itemsValid = $itemsValid;
+ }
+ public function getItemsValid()
+ {
+ return $this->itemsValid;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUploadDate($lastUploadDate)
+ {
+ $this->lastUploadDate = $lastUploadDate;
+ }
+ public function getLastUploadDate()
+ {
+ return $this->lastUploadDate;
+ }
+ public function setProcessingStatus($processingStatus)
+ {
+ $this->processingStatus = $processingStatus;
+ }
+ public function getProcessingStatus()
+ {
+ return $this->processingStatus;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusError.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusError.php
new file mode 100644
index 00000000..3f276d27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusError.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedStatusError extends Google_Collection
+{
+ protected $collection_key = 'examples';
+ public $code;
+ public $count;
+ protected $examplesType = 'Google_Service_ShoppingContent_DatafeedStatusExample';
+ protected $examplesDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setExamples($examples)
+ {
+ $this->examples = $examples;
+ }
+ public function getExamples()
+ {
+ return $this->examples;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusExample.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusExample.php
new file mode 100644
index 00000000..cfbeb268
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedStatusExample.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedStatusExample extends Google_Model
+{
+ public $itemId;
+ public $lineNumber;
+ public $value;
+
+ public function setItemId($itemId)
+ {
+ $this->itemId = $itemId;
+ }
+ public function getItemId()
+ {
+ return $this->itemId;
+ }
+ public function setLineNumber($lineNumber)
+ {
+ $this->lineNumber = $lineNumber;
+ }
+ public function getLineNumber()
+ {
+ return $this->lineNumber;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequest.php
new file mode 100644
index 00000000..d0432f0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedsCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequestEntry.php
new file mode 100644
index 00000000..8d537c30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchRequestEntry.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedsCustomBatchRequestEntry extends Google_Model
+{
+ public $batchId;
+ protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed';
+ protected $datafeedDataType = '';
+ public $datafeedId;
+ public $merchantId;
+ public $method;
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed)
+ {
+ $this->datafeed = $datafeed;
+ }
+ public function getDatafeed()
+ {
+ return $this->datafeed;
+ }
+ public function setDatafeedId($datafeedId)
+ {
+ $this->datafeedId = $datafeedId;
+ }
+ public function getDatafeedId()
+ {
+ return $this->datafeedId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponse.php
new file mode 100644
index 00000000..85898c9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedsCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponseEntry.php
new file mode 100644
index 00000000..42e0b206
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsCustomBatchResponseEntry.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedsCustomBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $datafeedType = 'Google_Service_ShoppingContent_Datafeed';
+ protected $datafeedDataType = '';
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setDatafeed(Google_Service_ShoppingContent_Datafeed $datafeed)
+ {
+ $this->datafeed = $datafeed;
+ }
+ public function getDatafeed()
+ {
+ return $this->datafeed;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsListResponse.php
new file mode 100644
index 00000000..0092ece7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_Datafeed';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequest.php
new file mode 100644
index 00000000..808ad5a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequestEntry.php
new file mode 100644
index 00000000..58457c5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchRequestEntry.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequestEntry extends Google_Model
+{
+ public $batchId;
+ public $datafeedId;
+ public $merchantId;
+ public $method;
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setDatafeedId($datafeedId)
+ {
+ $this->datafeedId = $datafeedId;
+ }
+ public function getDatafeedId()
+ {
+ return $this->datafeedId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponse.php
new file mode 100644
index 00000000..b85a0bc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponseEntry.php
new file mode 100644
index 00000000..7244943a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesCustomBatchResponseEntry.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $datafeedStatusType = 'Google_Service_ShoppingContent_DatafeedStatus';
+ protected $datafeedStatusDataType = '';
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setDatafeedStatus(Google_Service_ShoppingContent_DatafeedStatus $datafeedStatus)
+ {
+ $this->datafeedStatus = $datafeedStatus;
+ }
+ public function getDatafeedStatus()
+ {
+ return $this->datafeedStatus;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesListResponse.php
new file mode 100644
index 00000000..0f272931
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DatafeedstatusesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DatafeedstatusesListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_DatafeedStatus';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php
new file mode 100644
index 00000000..fd69f4bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/DeliveryTime.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_DeliveryTime extends Google_Model
+{
+ public $maxTransitTimeInDays;
+ public $minTransitTimeInDays;
+
+ public function setMaxTransitTimeInDays($maxTransitTimeInDays)
+ {
+ $this->maxTransitTimeInDays = $maxTransitTimeInDays;
+ }
+ public function getMaxTransitTimeInDays()
+ {
+ return $this->maxTransitTimeInDays;
+ }
+ public function setMinTransitTimeInDays($minTransitTimeInDays)
+ {
+ $this->minTransitTimeInDays = $minTransitTimeInDays;
+ }
+ public function getMinTransitTimeInDays()
+ {
+ return $this->minTransitTimeInDays;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Error.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Error.php
new file mode 100644
index 00000000..0166ea57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Error.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Error extends Google_Model
+{
+ public $domain;
+ public $message;
+ public $reason;
+
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Errors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Errors.php
new file mode 100644
index 00000000..751c741e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Errors.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Errors extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ public $code;
+ protected $errorsType = 'Google_Service_ShoppingContent_Error';
+ protected $errorsDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Headers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Headers.php
new file mode 100644
index 00000000..8d41b365
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Headers.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Headers extends Google_Collection
+{
+ protected $collection_key = 'weights';
+ protected $locationsType = 'Google_Service_ShoppingContent_LocationIdSet';
+ protected $locationsDataType = 'array';
+ public $numberOfItems;
+ public $postalCodeGroupNames;
+ protected $pricesType = 'Google_Service_ShoppingContent_Price';
+ protected $pricesDataType = 'array';
+ protected $weightsType = 'Google_Service_ShoppingContent_Weight';
+ protected $weightsDataType = 'array';
+
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setNumberOfItems($numberOfItems)
+ {
+ $this->numberOfItems = $numberOfItems;
+ }
+ public function getNumberOfItems()
+ {
+ return $this->numberOfItems;
+ }
+ public function setPostalCodeGroupNames($postalCodeGroupNames)
+ {
+ $this->postalCodeGroupNames = $postalCodeGroupNames;
+ }
+ public function getPostalCodeGroupNames()
+ {
+ return $this->postalCodeGroupNames;
+ }
+ public function setPrices($prices)
+ {
+ $this->prices = $prices;
+ }
+ public function getPrices()
+ {
+ return $this->prices;
+ }
+ public function setWeights($weights)
+ {
+ $this->weights = $weights;
+ }
+ public function getWeights()
+ {
+ return $this->weights;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Installment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Installment.php
new file mode 100644
index 00000000..8444cb75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Installment.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Installment extends Google_Model
+{
+ protected $amountType = 'Google_Service_ShoppingContent_Price';
+ protected $amountDataType = '';
+ public $months;
+
+ public function setAmount(Google_Service_ShoppingContent_Price $amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setMonths($months)
+ {
+ $this->months = $months;
+ }
+ public function getMonths()
+ {
+ return $this->months;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Inventory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Inventory.php
new file mode 100644
index 00000000..026be0d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Inventory.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Inventory extends Google_Model
+{
+ public $availability;
+ protected $installmentType = 'Google_Service_ShoppingContent_Installment';
+ protected $installmentDataType = '';
+ public $kind;
+ protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints';
+ protected $loyaltyPointsDataType = '';
+ protected $pickupType = 'Google_Service_ShoppingContent_InventoryPickup';
+ protected $pickupDataType = '';
+ protected $priceType = 'Google_Service_ShoppingContent_Price';
+ protected $priceDataType = '';
+ public $quantity;
+ protected $salePriceType = 'Google_Service_ShoppingContent_Price';
+ protected $salePriceDataType = '';
+ public $salePriceEffectiveDate;
+ public $sellOnGoogleQuantity;
+
+ public function setAvailability($availability)
+ {
+ $this->availability = $availability;
+ }
+ public function getAvailability()
+ {
+ return $this->availability;
+ }
+ public function setInstallment(Google_Service_ShoppingContent_Installment $installment)
+ {
+ $this->installment = $installment;
+ }
+ public function getInstallment()
+ {
+ return $this->installment;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints)
+ {
+ $this->loyaltyPoints = $loyaltyPoints;
+ }
+ public function getLoyaltyPoints()
+ {
+ return $this->loyaltyPoints;
+ }
+ public function setPickup(Google_Service_ShoppingContent_InventoryPickup $pickup)
+ {
+ $this->pickup = $pickup;
+ }
+ public function getPickup()
+ {
+ return $this->pickup;
+ }
+ public function setPrice(Google_Service_ShoppingContent_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice)
+ {
+ $this->salePrice = $salePrice;
+ }
+ public function getSalePrice()
+ {
+ return $this->salePrice;
+ }
+ public function setSalePriceEffectiveDate($salePriceEffectiveDate)
+ {
+ $this->salePriceEffectiveDate = $salePriceEffectiveDate;
+ }
+ public function getSalePriceEffectiveDate()
+ {
+ return $this->salePriceEffectiveDate;
+ }
+ public function setSellOnGoogleQuantity($sellOnGoogleQuantity)
+ {
+ $this->sellOnGoogleQuantity = $sellOnGoogleQuantity;
+ }
+ public function getSellOnGoogleQuantity()
+ {
+ return $this->sellOnGoogleQuantity;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequest.php
new file mode 100644
index 00000000..301966b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_InventoryCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequestEntry.php
new file mode 100644
index 00000000..672359fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchRequestEntry.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_InventoryCustomBatchRequestEntry extends Google_Model
+{
+ public $batchId;
+ protected $inventoryType = 'Google_Service_ShoppingContent_Inventory';
+ protected $inventoryDataType = '';
+ public $merchantId;
+ public $productId;
+ public $storeCode;
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setInventory(Google_Service_ShoppingContent_Inventory $inventory)
+ {
+ $this->inventory = $inventory;
+ }
+ public function getInventory()
+ {
+ return $this->inventory;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setStoreCode($storeCode)
+ {
+ $this->storeCode = $storeCode;
+ }
+ public function getStoreCode()
+ {
+ return $this->storeCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponse.php
new file mode 100644
index 00000000..be3550cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_InventoryCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponseEntry.php
new file mode 100644
index 00000000..4daae555
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryCustomBatchResponseEntry.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_InventoryCustomBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryPickup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryPickup.php
new file mode 100644
index 00000000..18ef3b0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventoryPickup.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_InventoryPickup extends Google_Model
+{
+ public $pickupMethod;
+ public $pickupSla;
+
+ public function setPickupMethod($pickupMethod)
+ {
+ $this->pickupMethod = $pickupMethod;
+ }
+ public function getPickupMethod()
+ {
+ return $this->pickupMethod;
+ }
+ public function setPickupSla($pickupSla)
+ {
+ $this->pickupSla = $pickupSla;
+ }
+ public function getPickupSla()
+ {
+ return $this->pickupSla;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetRequest.php
new file mode 100644
index 00000000..2f178e29
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetRequest.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_InventorySetRequest extends Google_Model
+{
+ public $availability;
+ protected $installmentType = 'Google_Service_ShoppingContent_Installment';
+ protected $installmentDataType = '';
+ protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints';
+ protected $loyaltyPointsDataType = '';
+ protected $pickupType = 'Google_Service_ShoppingContent_InventoryPickup';
+ protected $pickupDataType = '';
+ protected $priceType = 'Google_Service_ShoppingContent_Price';
+ protected $priceDataType = '';
+ public $quantity;
+ protected $salePriceType = 'Google_Service_ShoppingContent_Price';
+ protected $salePriceDataType = '';
+ public $salePriceEffectiveDate;
+ public $sellOnGoogleQuantity;
+
+ public function setAvailability($availability)
+ {
+ $this->availability = $availability;
+ }
+ public function getAvailability()
+ {
+ return $this->availability;
+ }
+ public function setInstallment(Google_Service_ShoppingContent_Installment $installment)
+ {
+ $this->installment = $installment;
+ }
+ public function getInstallment()
+ {
+ return $this->installment;
+ }
+ public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints)
+ {
+ $this->loyaltyPoints = $loyaltyPoints;
+ }
+ public function getLoyaltyPoints()
+ {
+ return $this->loyaltyPoints;
+ }
+ public function setPickup(Google_Service_ShoppingContent_InventoryPickup $pickup)
+ {
+ $this->pickup = $pickup;
+ }
+ public function getPickup()
+ {
+ return $this->pickup;
+ }
+ public function setPrice(Google_Service_ShoppingContent_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice)
+ {
+ $this->salePrice = $salePrice;
+ }
+ public function getSalePrice()
+ {
+ return $this->salePrice;
+ }
+ public function setSalePriceEffectiveDate($salePriceEffectiveDate)
+ {
+ $this->salePriceEffectiveDate = $salePriceEffectiveDate;
+ }
+ public function getSalePriceEffectiveDate()
+ {
+ return $this->salePriceEffectiveDate;
+ }
+ public function setSellOnGoogleQuantity($sellOnGoogleQuantity)
+ {
+ $this->sellOnGoogleQuantity = $sellOnGoogleQuantity;
+ }
+ public function getSellOnGoogleQuantity()
+ {
+ return $this->sellOnGoogleQuantity;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetResponse.php
new file mode 100644
index 00000000..d96ea0d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/InventorySetResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_InventorySetResponse extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LocationIdSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LocationIdSet.php
new file mode 100644
index 00000000..b4e5fd8c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LocationIdSet.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_LocationIdSet extends Google_Collection
+{
+ protected $collection_key = 'locationIds';
+ public $locationIds;
+
+ public function setLocationIds($locationIds)
+ {
+ $this->locationIds = $locationIds;
+ }
+ public function getLocationIds()
+ {
+ return $this->locationIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LoyaltyPoints.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LoyaltyPoints.php
new file mode 100644
index 00000000..4a7efdda
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/LoyaltyPoints.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_LoyaltyPoints extends Google_Model
+{
+ public $name;
+ public $pointsValue;
+ public $ratio;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPointsValue($pointsValue)
+ {
+ $this->pointsValue = $pointsValue;
+ }
+ public function getPointsValue()
+ {
+ return $this->pointsValue;
+ }
+ public function setRatio($ratio)
+ {
+ $this->ratio = $ratio;
+ }
+ public function getRatio()
+ {
+ return $this->ratio;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php
new file mode 100644
index 00000000..d728d6c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Order.php
@@ -0,0 +1,212 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Order extends Google_Collection
+{
+ protected $collection_key = 'shipments';
+ public $acknowledged;
+ public $channelType;
+ protected $customerType = 'Google_Service_ShoppingContent_OrderCustomer';
+ protected $customerDataType = '';
+ protected $deliveryDetailsType = 'Google_Service_ShoppingContent_OrderDeliveryDetails';
+ protected $deliveryDetailsDataType = '';
+ public $id;
+ public $kind;
+ protected $lineItemsType = 'Google_Service_ShoppingContent_OrderLineItem';
+ protected $lineItemsDataType = 'array';
+ public $merchantId;
+ public $merchantOrderId;
+ protected $netAmountType = 'Google_Service_ShoppingContent_Price';
+ protected $netAmountDataType = '';
+ protected $paymentMethodType = 'Google_Service_ShoppingContent_OrderPaymentMethod';
+ protected $paymentMethodDataType = '';
+ public $paymentStatus;
+ public $placedDate;
+ protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion';
+ protected $promotionsDataType = 'array';
+ protected $refundsType = 'Google_Service_ShoppingContent_OrderRefund';
+ protected $refundsDataType = 'array';
+ protected $shipmentsType = 'Google_Service_ShoppingContent_OrderShipment';
+ protected $shipmentsDataType = 'array';
+ protected $shippingCostType = 'Google_Service_ShoppingContent_Price';
+ protected $shippingCostDataType = '';
+ protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price';
+ protected $shippingCostTaxDataType = '';
+ public $shippingOption;
+ public $status;
+
+ public function setAcknowledged($acknowledged)
+ {
+ $this->acknowledged = $acknowledged;
+ }
+ public function getAcknowledged()
+ {
+ return $this->acknowledged;
+ }
+ public function setChannelType($channelType)
+ {
+ $this->channelType = $channelType;
+ }
+ public function getChannelType()
+ {
+ return $this->channelType;
+ }
+ public function setCustomer(Google_Service_ShoppingContent_OrderCustomer $customer)
+ {
+ $this->customer = $customer;
+ }
+ public function getCustomer()
+ {
+ return $this->customer;
+ }
+ public function setDeliveryDetails(Google_Service_ShoppingContent_OrderDeliveryDetails $deliveryDetails)
+ {
+ $this->deliveryDetails = $deliveryDetails;
+ }
+ public function getDeliveryDetails()
+ {
+ return $this->deliveryDetails;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMerchantOrderId($merchantOrderId)
+ {
+ $this->merchantOrderId = $merchantOrderId;
+ }
+ public function getMerchantOrderId()
+ {
+ return $this->merchantOrderId;
+ }
+ public function setNetAmount(Google_Service_ShoppingContent_Price $netAmount)
+ {
+ $this->netAmount = $netAmount;
+ }
+ public function getNetAmount()
+ {
+ return $this->netAmount;
+ }
+ public function setPaymentMethod(Google_Service_ShoppingContent_OrderPaymentMethod $paymentMethod)
+ {
+ $this->paymentMethod = $paymentMethod;
+ }
+ public function getPaymentMethod()
+ {
+ return $this->paymentMethod;
+ }
+ public function setPaymentStatus($paymentStatus)
+ {
+ $this->paymentStatus = $paymentStatus;
+ }
+ public function getPaymentStatus()
+ {
+ return $this->paymentStatus;
+ }
+ public function setPlacedDate($placedDate)
+ {
+ $this->placedDate = $placedDate;
+ }
+ public function getPlacedDate()
+ {
+ return $this->placedDate;
+ }
+ public function setPromotions($promotions)
+ {
+ $this->promotions = $promotions;
+ }
+ public function getPromotions()
+ {
+ return $this->promotions;
+ }
+ public function setRefunds($refunds)
+ {
+ $this->refunds = $refunds;
+ }
+ public function getRefunds()
+ {
+ return $this->refunds;
+ }
+ public function setShipments($shipments)
+ {
+ $this->shipments = $shipments;
+ }
+ public function getShipments()
+ {
+ return $this->shipments;
+ }
+ public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost)
+ {
+ $this->shippingCost = $shippingCost;
+ }
+ public function getShippingCost()
+ {
+ return $this->shippingCost;
+ }
+ public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax)
+ {
+ $this->shippingCostTax = $shippingCostTax;
+ }
+ public function getShippingCostTax()
+ {
+ return $this->shippingCostTax;
+ }
+ public function setShippingOption($shippingOption)
+ {
+ $this->shippingOption = $shippingOption;
+ }
+ public function getShippingOption()
+ {
+ return $this->shippingOption;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderAddress.php
new file mode 100644
index 00000000..f563025a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderAddress.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderAddress extends Google_Collection
+{
+ protected $collection_key = 'streetAddress';
+ public $country;
+ public $fullAddress;
+ public $isPostOfficeBox;
+ public $locality;
+ public $postalCode;
+ public $recipientName;
+ public $region;
+ public $streetAddress;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setFullAddress($fullAddress)
+ {
+ $this->fullAddress = $fullAddress;
+ }
+ public function getFullAddress()
+ {
+ return $this->fullAddress;
+ }
+ public function setIsPostOfficeBox($isPostOfficeBox)
+ {
+ $this->isPostOfficeBox = $isPostOfficeBox;
+ }
+ public function getIsPostOfficeBox()
+ {
+ return $this->isPostOfficeBox;
+ }
+ public function setLocality($locality)
+ {
+ $this->locality = $locality;
+ }
+ public function getLocality()
+ {
+ return $this->locality;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setRecipientName($recipientName)
+ {
+ $this->recipientName = $recipientName;
+ }
+ public function getRecipientName()
+ {
+ return $this->recipientName;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setStreetAddress($streetAddress)
+ {
+ $this->streetAddress = $streetAddress;
+ }
+ public function getStreetAddress()
+ {
+ return $this->streetAddress;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCancellation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCancellation.php
new file mode 100644
index 00000000..7811b102
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCancellation.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderCancellation extends Google_Model
+{
+ public $actor;
+ public $creationDate;
+ public $quantity;
+ public $reason;
+ public $reasonText;
+
+ public function setActor($actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setCreationDate($creationDate)
+ {
+ $this->creationDate = $creationDate;
+ }
+ public function getCreationDate()
+ {
+ return $this->creationDate;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php
new file mode 100644
index 00000000..08bf0aa9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderCustomer.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderCustomer extends Google_Model
+{
+ public $email;
+ public $explicitMarketingPreference;
+ public $fullName;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setExplicitMarketingPreference($explicitMarketingPreference)
+ {
+ $this->explicitMarketingPreference = $explicitMarketingPreference;
+ }
+ public function getExplicitMarketingPreference()
+ {
+ return $this->explicitMarketingPreference;
+ }
+ public function setFullName($fullName)
+ {
+ $this->fullName = $fullName;
+ }
+ public function getFullName()
+ {
+ return $this->fullName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderDeliveryDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderDeliveryDetails.php
new file mode 100644
index 00000000..0952f787
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderDeliveryDetails.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderDeliveryDetails extends Google_Model
+{
+ protected $addressType = 'Google_Service_ShoppingContent_OrderAddress';
+ protected $addressDataType = '';
+ public $phoneNumber;
+
+ public function setAddress(Google_Service_ShoppingContent_OrderAddress $address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItem.php
new file mode 100644
index 00000000..1e71e8a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItem.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderLineItem extends Google_Collection
+{
+ protected $collection_key = 'returns';
+ protected $cancellationsType = 'Google_Service_ShoppingContent_OrderCancellation';
+ protected $cancellationsDataType = 'array';
+ public $id;
+ protected $priceType = 'Google_Service_ShoppingContent_Price';
+ protected $priceDataType = '';
+ protected $productType = 'Google_Service_ShoppingContent_OrderLineItemProduct';
+ protected $productDataType = '';
+ public $quantityCanceled;
+ public $quantityDelivered;
+ public $quantityOrdered;
+ public $quantityPending;
+ public $quantityReturned;
+ public $quantityShipped;
+ protected $returnInfoType = 'Google_Service_ShoppingContent_OrderLineItemReturnInfo';
+ protected $returnInfoDataType = '';
+ protected $returnsType = 'Google_Service_ShoppingContent_OrderReturn';
+ protected $returnsDataType = 'array';
+ protected $shippingDetailsType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetails';
+ protected $shippingDetailsDataType = '';
+ protected $taxType = 'Google_Service_ShoppingContent_Price';
+ protected $taxDataType = '';
+
+ public function setCancellations($cancellations)
+ {
+ $this->cancellations = $cancellations;
+ }
+ public function getCancellations()
+ {
+ return $this->cancellations;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setPrice(Google_Service_ShoppingContent_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setProduct(Google_Service_ShoppingContent_OrderLineItemProduct $product)
+ {
+ $this->product = $product;
+ }
+ public function getProduct()
+ {
+ return $this->product;
+ }
+ public function setQuantityCanceled($quantityCanceled)
+ {
+ $this->quantityCanceled = $quantityCanceled;
+ }
+ public function getQuantityCanceled()
+ {
+ return $this->quantityCanceled;
+ }
+ public function setQuantityDelivered($quantityDelivered)
+ {
+ $this->quantityDelivered = $quantityDelivered;
+ }
+ public function getQuantityDelivered()
+ {
+ return $this->quantityDelivered;
+ }
+ public function setQuantityOrdered($quantityOrdered)
+ {
+ $this->quantityOrdered = $quantityOrdered;
+ }
+ public function getQuantityOrdered()
+ {
+ return $this->quantityOrdered;
+ }
+ public function setQuantityPending($quantityPending)
+ {
+ $this->quantityPending = $quantityPending;
+ }
+ public function getQuantityPending()
+ {
+ return $this->quantityPending;
+ }
+ public function setQuantityReturned($quantityReturned)
+ {
+ $this->quantityReturned = $quantityReturned;
+ }
+ public function getQuantityReturned()
+ {
+ return $this->quantityReturned;
+ }
+ public function setQuantityShipped($quantityShipped)
+ {
+ $this->quantityShipped = $quantityShipped;
+ }
+ public function getQuantityShipped()
+ {
+ return $this->quantityShipped;
+ }
+ public function setReturnInfo(Google_Service_ShoppingContent_OrderLineItemReturnInfo $returnInfo)
+ {
+ $this->returnInfo = $returnInfo;
+ }
+ public function getReturnInfo()
+ {
+ return $this->returnInfo;
+ }
+ public function setReturns($returns)
+ {
+ $this->returns = $returns;
+ }
+ public function getReturns()
+ {
+ return $this->returns;
+ }
+ public function setShippingDetails(Google_Service_ShoppingContent_OrderLineItemShippingDetails $shippingDetails)
+ {
+ $this->shippingDetails = $shippingDetails;
+ }
+ public function getShippingDetails()
+ {
+ return $this->shippingDetails;
+ }
+ public function setTax(Google_Service_ShoppingContent_Price $tax)
+ {
+ $this->tax = $tax;
+ }
+ public function getTax()
+ {
+ return $this->tax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php
new file mode 100644
index 00000000..bcea3e5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProduct.php
@@ -0,0 +1,159 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderLineItemProduct extends Google_Collection
+{
+ protected $collection_key = 'variantAttributes';
+ public $brand;
+ public $channel;
+ public $condition;
+ public $contentLanguage;
+ public $gtin;
+ public $id;
+ public $imageLink;
+ public $itemGroupId;
+ public $mpn;
+ public $offerId;
+ protected $priceType = 'Google_Service_ShoppingContent_Price';
+ protected $priceDataType = '';
+ public $shownImage;
+ public $targetCountry;
+ public $title;
+ protected $variantAttributesType = 'Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute';
+ protected $variantAttributesDataType = 'array';
+
+ public function setBrand($brand)
+ {
+ $this->brand = $brand;
+ }
+ public function getBrand()
+ {
+ return $this->brand;
+ }
+ public function setChannel($channel)
+ {
+ $this->channel = $channel;
+ }
+ public function getChannel()
+ {
+ return $this->channel;
+ }
+ public function setCondition($condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setContentLanguage($contentLanguage)
+ {
+ $this->contentLanguage = $contentLanguage;
+ }
+ public function getContentLanguage()
+ {
+ return $this->contentLanguage;
+ }
+ public function setGtin($gtin)
+ {
+ $this->gtin = $gtin;
+ }
+ public function getGtin()
+ {
+ return $this->gtin;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImageLink($imageLink)
+ {
+ $this->imageLink = $imageLink;
+ }
+ public function getImageLink()
+ {
+ return $this->imageLink;
+ }
+ public function setItemGroupId($itemGroupId)
+ {
+ $this->itemGroupId = $itemGroupId;
+ }
+ public function getItemGroupId()
+ {
+ return $this->itemGroupId;
+ }
+ public function setMpn($mpn)
+ {
+ $this->mpn = $mpn;
+ }
+ public function getMpn()
+ {
+ return $this->mpn;
+ }
+ public function setOfferId($offerId)
+ {
+ $this->offerId = $offerId;
+ }
+ public function getOfferId()
+ {
+ return $this->offerId;
+ }
+ public function setPrice(Google_Service_ShoppingContent_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setShownImage($shownImage)
+ {
+ $this->shownImage = $shownImage;
+ }
+ public function getShownImage()
+ {
+ return $this->shownImage;
+ }
+ public function setTargetCountry($targetCountry)
+ {
+ $this->targetCountry = $targetCountry;
+ }
+ public function getTargetCountry()
+ {
+ return $this->targetCountry;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setVariantAttributes($variantAttributes)
+ {
+ $this->variantAttributes = $variantAttributes;
+ }
+ public function getVariantAttributes()
+ {
+ return $this->variantAttributes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProductVariantAttribute.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProductVariantAttribute.php
new file mode 100644
index 00000000..683abc5a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemProductVariantAttribute.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute extends Google_Model
+{
+ public $dimension;
+ public $value;
+
+ public function setDimension($dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemReturnInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemReturnInfo.php
new file mode 100644
index 00000000..9a6751be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemReturnInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderLineItemReturnInfo extends Google_Model
+{
+ public $daysToReturn;
+ public $isReturnable;
+ public $policyUrl;
+
+ public function setDaysToReturn($daysToReturn)
+ {
+ $this->daysToReturn = $daysToReturn;
+ }
+ public function getDaysToReturn()
+ {
+ return $this->daysToReturn;
+ }
+ public function setIsReturnable($isReturnable)
+ {
+ $this->isReturnable = $isReturnable;
+ }
+ public function getIsReturnable()
+ {
+ return $this->isReturnable;
+ }
+ public function setPolicyUrl($policyUrl)
+ {
+ $this->policyUrl = $policyUrl;
+ }
+ public function getPolicyUrl()
+ {
+ return $this->policyUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetails.php
new file mode 100644
index 00000000..06835aae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetails.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderLineItemShippingDetails extends Google_Model
+{
+ public $deliverByDate;
+ protected $methodType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod';
+ protected $methodDataType = '';
+ public $shipByDate;
+
+ public function setDeliverByDate($deliverByDate)
+ {
+ $this->deliverByDate = $deliverByDate;
+ }
+ public function getDeliverByDate()
+ {
+ return $this->deliverByDate;
+ }
+ public function setMethod(Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod $method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setShipByDate($shipByDate)
+ {
+ $this->shipByDate = $shipByDate;
+ }
+ public function getShipByDate()
+ {
+ return $this->shipByDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetailsMethod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetailsMethod.php
new file mode 100644
index 00000000..d118b871
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderLineItemShippingDetailsMethod.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderLineItemShippingDetailsMethod extends Google_Model
+{
+ public $carrier;
+ public $maxDaysInTransit;
+ public $methodName;
+ public $minDaysInTransit;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setMaxDaysInTransit($maxDaysInTransit)
+ {
+ $this->maxDaysInTransit = $maxDaysInTransit;
+ }
+ public function getMaxDaysInTransit()
+ {
+ return $this->maxDaysInTransit;
+ }
+ public function setMethodName($methodName)
+ {
+ $this->methodName = $methodName;
+ }
+ public function getMethodName()
+ {
+ return $this->methodName;
+ }
+ public function setMinDaysInTransit($minDaysInTransit)
+ {
+ $this->minDaysInTransit = $minDaysInTransit;
+ }
+ public function getMinDaysInTransit()
+ {
+ return $this->minDaysInTransit;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPaymentMethod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPaymentMethod.php
new file mode 100644
index 00000000..cdcc1a33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPaymentMethod.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderPaymentMethod extends Google_Model
+{
+ protected $billingAddressType = 'Google_Service_ShoppingContent_OrderAddress';
+ protected $billingAddressDataType = '';
+ public $expirationMonth;
+ public $expirationYear;
+ public $lastFourDigits;
+ public $phoneNumber;
+ public $type;
+
+ public function setBillingAddress(Google_Service_ShoppingContent_OrderAddress $billingAddress)
+ {
+ $this->billingAddress = $billingAddress;
+ }
+ public function getBillingAddress()
+ {
+ return $this->billingAddress;
+ }
+ public function setExpirationMonth($expirationMonth)
+ {
+ $this->expirationMonth = $expirationMonth;
+ }
+ public function getExpirationMonth()
+ {
+ return $this->expirationMonth;
+ }
+ public function setExpirationYear($expirationYear)
+ {
+ $this->expirationYear = $expirationYear;
+ }
+ public function getExpirationYear()
+ {
+ return $this->expirationYear;
+ }
+ public function setLastFourDigits($lastFourDigits)
+ {
+ $this->lastFourDigits = $lastFourDigits;
+ }
+ public function getLastFourDigits()
+ {
+ return $this->lastFourDigits;
+ }
+ public function setPhoneNumber($phoneNumber)
+ {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber()
+ {
+ return $this->phoneNumber;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php
new file mode 100644
index 00000000..f694ac57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotion.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderPromotion extends Google_Collection
+{
+ protected $collection_key = 'benefits';
+ protected $benefitsType = 'Google_Service_ShoppingContent_OrderPromotionBenefit';
+ protected $benefitsDataType = 'array';
+ public $effectiveDates;
+ public $genericRedemptionCode;
+ public $id;
+ public $longTitle;
+ public $productApplicability;
+ public $redemptionChannel;
+
+ public function setBenefits($benefits)
+ {
+ $this->benefits = $benefits;
+ }
+ public function getBenefits()
+ {
+ return $this->benefits;
+ }
+ public function setEffectiveDates($effectiveDates)
+ {
+ $this->effectiveDates = $effectiveDates;
+ }
+ public function getEffectiveDates()
+ {
+ return $this->effectiveDates;
+ }
+ public function setGenericRedemptionCode($genericRedemptionCode)
+ {
+ $this->genericRedemptionCode = $genericRedemptionCode;
+ }
+ public function getGenericRedemptionCode()
+ {
+ return $this->genericRedemptionCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLongTitle($longTitle)
+ {
+ $this->longTitle = $longTitle;
+ }
+ public function getLongTitle()
+ {
+ return $this->longTitle;
+ }
+ public function setProductApplicability($productApplicability)
+ {
+ $this->productApplicability = $productApplicability;
+ }
+ public function getProductApplicability()
+ {
+ return $this->productApplicability;
+ }
+ public function setRedemptionChannel($redemptionChannel)
+ {
+ $this->redemptionChannel = $redemptionChannel;
+ }
+ public function getRedemptionChannel()
+ {
+ return $this->redemptionChannel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionBenefit.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionBenefit.php
new file mode 100644
index 00000000..285932e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderPromotionBenefit.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderPromotionBenefit extends Google_Collection
+{
+ protected $collection_key = 'offerIds';
+ protected $discountType = 'Google_Service_ShoppingContent_Price';
+ protected $discountDataType = '';
+ public $offerIds;
+ public $subType;
+ protected $taxImpactType = 'Google_Service_ShoppingContent_Price';
+ protected $taxImpactDataType = '';
+ public $type;
+
+ public function setDiscount(Google_Service_ShoppingContent_Price $discount)
+ {
+ $this->discount = $discount;
+ }
+ public function getDiscount()
+ {
+ return $this->discount;
+ }
+ public function setOfferIds($offerIds)
+ {
+ $this->offerIds = $offerIds;
+ }
+ public function getOfferIds()
+ {
+ return $this->offerIds;
+ }
+ public function setSubType($subType)
+ {
+ $this->subType = $subType;
+ }
+ public function getSubType()
+ {
+ return $this->subType;
+ }
+ public function setTaxImpact(Google_Service_ShoppingContent_Price $taxImpact)
+ {
+ $this->taxImpact = $taxImpact;
+ }
+ public function getTaxImpact()
+ {
+ return $this->taxImpact;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderRefund.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderRefund.php
new file mode 100644
index 00000000..b277b5d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderRefund.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderRefund extends Google_Model
+{
+ public $actor;
+ protected $amountType = 'Google_Service_ShoppingContent_Price';
+ protected $amountDataType = '';
+ public $creationDate;
+ public $reason;
+ public $reasonText;
+
+ public function setActor($actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setAmount(Google_Service_ShoppingContent_Price $amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setCreationDate($creationDate)
+ {
+ $this->creationDate = $creationDate;
+ }
+ public function getCreationDate()
+ {
+ return $this->creationDate;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReturn.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReturn.php
new file mode 100644
index 00000000..7af5e517
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderReturn.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderReturn extends Google_Model
+{
+ public $actor;
+ public $creationDate;
+ public $quantity;
+ public $reason;
+ public $reasonText;
+
+ public function setActor($actor)
+ {
+ $this->actor = $actor;
+ }
+ public function getActor()
+ {
+ return $this->actor;
+ }
+ public function setCreationDate($creationDate)
+ {
+ $this->creationDate = $creationDate;
+ }
+ public function getCreationDate()
+ {
+ return $this->creationDate;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipment.php
new file mode 100644
index 00000000..0b2aab78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipment.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderShipment extends Google_Collection
+{
+ protected $collection_key = 'lineItems';
+ public $carrier;
+ public $creationDate;
+ public $deliveryDate;
+ public $id;
+ protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment';
+ protected $lineItemsDataType = 'array';
+ public $status;
+ public $trackingId;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setCreationDate($creationDate)
+ {
+ $this->creationDate = $creationDate;
+ }
+ public function getCreationDate()
+ {
+ return $this->creationDate;
+ }
+ public function setDeliveryDate($deliveryDate)
+ {
+ $this->deliveryDate = $deliveryDate;
+ }
+ public function getDeliveryDate()
+ {
+ return $this->deliveryDate;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTrackingId($trackingId)
+ {
+ $this->trackingId = $trackingId;
+ }
+ public function getTrackingId()
+ {
+ return $this->trackingId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipmentLineItemShipment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipmentLineItemShipment.php
new file mode 100644
index 00000000..7173efc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrderShipmentLineItemShipment.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrderShipmentLineItemShipment extends Google_Model
+{
+ public $lineItemId;
+ public $quantity;
+
+ public function setLineItemId($lineItemId)
+ {
+ $this->lineItemId = $lineItemId;
+ }
+ public function getLineItemId()
+ {
+ return $this->lineItemId;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeRequest.php
new file mode 100644
index 00000000..ccbae30c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersAcknowledgeRequest extends Google_Model
+{
+ public $operationId;
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeResponse.php
new file mode 100644
index 00000000..2d586e78
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAcknowledgeResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersAcknowledgeResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAdvanceTestOrderResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAdvanceTestOrderResponse.php
new file mode 100644
index 00000000..b430fd5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersAdvanceTestOrderResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse extends Google_Model
+{
+ public $kind;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php
new file mode 100644
index 00000000..489b773f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemRequest.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCancelLineItemRequest extends Google_Model
+{
+ protected $amountType = 'Google_Service_ShoppingContent_Price';
+ protected $amountDataType = '';
+ public $lineItemId;
+ public $operationId;
+ public $quantity;
+ public $reason;
+ public $reasonText;
+
+ public function setAmount(Google_Service_ShoppingContent_Price $amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setLineItemId($lineItemId)
+ {
+ $this->lineItemId = $lineItemId;
+ }
+ public function getLineItemId()
+ {
+ return $this->lineItemId;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemResponse.php
new file mode 100644
index 00000000..30842da8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelLineItemResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCancelLineItemResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelRequest.php
new file mode 100644
index 00000000..13dce6d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelRequest.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCancelRequest extends Google_Model
+{
+ public $operationId;
+ public $reason;
+ public $reasonText;
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelResponse.php
new file mode 100644
index 00000000..125b5247
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCancelResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCancelResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php
new file mode 100644
index 00000000..318781df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCreateTestOrderRequest extends Google_Model
+{
+ public $templateName;
+ protected $testOrderType = 'Google_Service_ShoppingContent_TestOrder';
+ protected $testOrderDataType = '';
+
+ public function setTemplateName($templateName)
+ {
+ $this->templateName = $templateName;
+ }
+ public function getTemplateName()
+ {
+ return $this->templateName;
+ }
+ public function setTestOrder(Google_Service_ShoppingContent_TestOrder $testOrder)
+ {
+ $this->testOrder = $testOrder;
+ }
+ public function getTestOrder()
+ {
+ return $this->testOrder;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderResponse.php
new file mode 100644
index 00000000..87d8ac84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCreateTestOrderResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCreateTestOrderResponse extends Google_Model
+{
+ public $kind;
+ public $orderId;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequest.php
new file mode 100644
index 00000000..2af01536
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntry.php
new file mode 100644
index 00000000..6b6e91bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntry.php
@@ -0,0 +1,135 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntry extends Google_Model
+{
+ public $batchId;
+ protected $cancelType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel';
+ protected $cancelDataType = '';
+ protected $cancelLineItemType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem';
+ protected $cancelLineItemDataType = '';
+ public $merchantId;
+ public $merchantOrderId;
+ public $method;
+ public $operationId;
+ public $orderId;
+ protected $refundType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund';
+ protected $refundDataType = '';
+ protected $returnLineItemType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem';
+ protected $returnLineItemDataType = '';
+ protected $shipLineItemsType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems';
+ protected $shipLineItemsDataType = '';
+ protected $updateShipmentType = 'Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment';
+ protected $updateShipmentDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setCancel(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel $cancel)
+ {
+ $this->cancel = $cancel;
+ }
+ public function getCancel()
+ {
+ return $this->cancel;
+ }
+ public function setCancelLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem $cancelLineItem)
+ {
+ $this->cancelLineItem = $cancelLineItem;
+ }
+ public function getCancelLineItem()
+ {
+ return $this->cancelLineItem;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMerchantOrderId($merchantOrderId)
+ {
+ $this->merchantOrderId = $merchantOrderId;
+ }
+ public function getMerchantOrderId()
+ {
+ return $this->merchantOrderId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+ public function setRefund(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund $refund)
+ {
+ $this->refund = $refund;
+ }
+ public function getRefund()
+ {
+ return $this->refund;
+ }
+ public function setReturnLineItem(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem $returnLineItem)
+ {
+ $this->returnLineItem = $returnLineItem;
+ }
+ public function getReturnLineItem()
+ {
+ return $this->returnLineItem;
+ }
+ public function setShipLineItems(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems $shipLineItems)
+ {
+ $this->shipLineItems = $shipLineItems;
+ }
+ public function getShipLineItems()
+ {
+ return $this->shipLineItems;
+ }
+ public function setUpdateShipment(Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment $updateShipment)
+ {
+ $this->updateShipment = $updateShipment;
+ }
+ public function getUpdateShipment()
+ {
+ return $this->updateShipment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancel.php
new file mode 100644
index 00000000..742b2ab8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancel.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancel extends Google_Model
+{
+ public $reason;
+ public $reasonText;
+
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancelLineItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancelLineItem.php
new file mode 100644
index 00000000..09d00aca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryCancelLineItem.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryCancelLineItem extends Google_Model
+{
+ protected $amountType = 'Google_Service_ShoppingContent_Price';
+ protected $amountDataType = '';
+ public $lineItemId;
+ public $quantity;
+ public $reason;
+ public $reasonText;
+
+ public function setAmount(Google_Service_ShoppingContent_Price $amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setLineItemId($lineItemId)
+ {
+ $this->lineItemId = $lineItemId;
+ }
+ public function getLineItemId()
+ {
+ return $this->lineItemId;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRefund.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRefund.php
new file mode 100644
index 00000000..5ba294a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryRefund.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryRefund extends Google_Model
+{
+ protected $amountType = 'Google_Service_ShoppingContent_Price';
+ protected $amountDataType = '';
+ public $reason;
+ public $reasonText;
+
+ public function setAmount(Google_Service_ShoppingContent_Price $amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnLineItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnLineItem.php
new file mode 100644
index 00000000..81051113
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryReturnLineItem.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryReturnLineItem extends Google_Model
+{
+ public $lineItemId;
+ public $quantity;
+ public $reason;
+ public $reasonText;
+
+ public function setLineItemId($lineItemId)
+ {
+ $this->lineItemId = $lineItemId;
+ }
+ public function getLineItemId()
+ {
+ return $this->lineItemId;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryShipLineItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryShipLineItems.php
new file mode 100644
index 00000000..70078c3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryShipLineItems.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryShipLineItems extends Google_Collection
+{
+ protected $collection_key = 'lineItems';
+ public $carrier;
+ protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment';
+ protected $lineItemsDataType = 'array';
+ public $shipmentId;
+ public $trackingId;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+ public function setShipmentId($shipmentId)
+ {
+ $this->shipmentId = $shipmentId;
+ }
+ public function getShipmentId()
+ {
+ return $this->shipmentId;
+ }
+ public function setTrackingId($trackingId)
+ {
+ $this->trackingId = $trackingId;
+ }
+ public function getTrackingId()
+ {
+ return $this->trackingId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateShipment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateShipment.php
new file mode 100644
index 00000000..5e60cda8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchRequestEntryUpdateShipment.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment extends Google_Model
+{
+ public $carrier;
+ public $shipmentId;
+ public $status;
+ public $trackingId;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setShipmentId($shipmentId)
+ {
+ $this->shipmentId = $shipmentId;
+ }
+ public function getShipmentId()
+ {
+ return $this->shipmentId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTrackingId($trackingId)
+ {
+ $this->trackingId = $trackingId;
+ }
+ public function getTrackingId()
+ {
+ return $this->trackingId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponse.php
new file mode 100644
index 00000000..14ce89c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponseEntry.php
new file mode 100644
index 00000000..789f6fdd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersCustomBatchResponseEntry.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersCustomBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $executionStatus;
+ public $kind;
+ protected $orderType = 'Google_Service_ShoppingContent_Order';
+ protected $orderDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOrder(Google_Service_ShoppingContent_Order $order)
+ {
+ $this->order = $order;
+ }
+ public function getOrder()
+ {
+ return $this->order;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetByMerchantOrderIdResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetByMerchantOrderIdResponse.php
new file mode 100644
index 00000000..b0259ccb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetByMerchantOrderIdResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse extends Google_Model
+{
+ public $kind;
+ protected $orderType = 'Google_Service_ShoppingContent_Order';
+ protected $orderDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOrder(Google_Service_ShoppingContent_Order $order)
+ {
+ $this->order = $order;
+ }
+ public function getOrder()
+ {
+ return $this->order;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetTestOrderTemplateResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetTestOrderTemplateResponse.php
new file mode 100644
index 00000000..a4f79521
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersGetTestOrderTemplateResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse extends Google_Model
+{
+ public $kind;
+ protected $templateType = 'Google_Service_ShoppingContent_TestOrder';
+ protected $templateDataType = '';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTemplate(Google_Service_ShoppingContent_TestOrder $template)
+ {
+ $this->template = $template;
+ }
+ public function getTemplate()
+ {
+ return $this->template;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersListResponse.php
new file mode 100644
index 00000000..37d40dec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_Order';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundRequest.php
new file mode 100644
index 00000000..cc240840
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersRefundRequest extends Google_Model
+{
+ protected $amountType = 'Google_Service_ShoppingContent_Price';
+ protected $amountDataType = '';
+ public $operationId;
+ public $reason;
+ public $reasonText;
+
+ public function setAmount(Google_Service_ShoppingContent_Price $amount)
+ {
+ $this->amount = $amount;
+ }
+ public function getAmount()
+ {
+ return $this->amount;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundResponse.php
new file mode 100644
index 00000000..8c961600
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersRefundResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersRefundResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemRequest.php
new file mode 100644
index 00000000..27ed6e67
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemRequest.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersReturnLineItemRequest extends Google_Model
+{
+ public $lineItemId;
+ public $operationId;
+ public $quantity;
+ public $reason;
+ public $reasonText;
+
+ public function setLineItemId($lineItemId)
+ {
+ $this->lineItemId = $lineItemId;
+ }
+ public function getLineItemId()
+ {
+ return $this->lineItemId;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setQuantity($quantity)
+ {
+ $this->quantity = $quantity;
+ }
+ public function getQuantity()
+ {
+ return $this->quantity;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setReasonText($reasonText)
+ {
+ $this->reasonText = $reasonText;
+ }
+ public function getReasonText()
+ {
+ return $this->reasonText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemResponse.php
new file mode 100644
index 00000000..4178a38f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersReturnLineItemResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersReturnLineItemResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php
new file mode 100644
index 00000000..287aa028
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsRequest.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersShipLineItemsRequest extends Google_Collection
+{
+ protected $collection_key = 'lineItems';
+ public $carrier;
+ protected $lineItemsType = 'Google_Service_ShoppingContent_OrderShipmentLineItemShipment';
+ protected $lineItemsDataType = 'array';
+ public $operationId;
+ public $shipmentId;
+ public $trackingId;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setShipmentId($shipmentId)
+ {
+ $this->shipmentId = $shipmentId;
+ }
+ public function getShipmentId()
+ {
+ return $this->shipmentId;
+ }
+ public function setTrackingId($trackingId)
+ {
+ $this->trackingId = $trackingId;
+ }
+ public function getTrackingId()
+ {
+ return $this->trackingId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsResponse.php
new file mode 100644
index 00000000..a5240168
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersShipLineItemsResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersShipLineItemsResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdRequest.php
new file mode 100644
index 00000000..b2d27871
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdRequest extends Google_Model
+{
+ public $merchantOrderId;
+ public $operationId;
+
+ public function setMerchantOrderId($merchantOrderId)
+ {
+ $this->merchantOrderId = $merchantOrderId;
+ }
+ public function getMerchantOrderId()
+ {
+ return $this->merchantOrderId;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdResponse.php
new file mode 100644
index 00000000..56e0290b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateMerchantOrderIdResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php
new file mode 100644
index 00000000..07359f4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentRequest.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersUpdateShipmentRequest extends Google_Model
+{
+ public $carrier;
+ public $operationId;
+ public $shipmentId;
+ public $status;
+ public $trackingId;
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setShipmentId($shipmentId)
+ {
+ $this->shipmentId = $shipmentId;
+ }
+ public function getShipmentId()
+ {
+ return $this->shipmentId;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTrackingId($trackingId)
+ {
+ $this->trackingId = $trackingId;
+ }
+ public function getTrackingId()
+ {
+ return $this->trackingId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentResponse.php
new file mode 100644
index 00000000..871098e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/OrdersUpdateShipmentResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_OrdersUpdateShipmentResponse extends Google_Model
+{
+ public $executionStatus;
+ public $kind;
+
+ public function setExecutionStatus($executionStatus)
+ {
+ $this->executionStatus = $executionStatus;
+ }
+ public function getExecutionStatus()
+ {
+ return $this->executionStatus;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeGroup.php
new file mode 100644
index 00000000..e5497fc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeGroup.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_PostalCodeGroup extends Google_Collection
+{
+ protected $collection_key = 'postalCodeRanges';
+ public $country;
+ public $name;
+ protected $postalCodeRangesType = 'Google_Service_ShoppingContent_PostalCodeRange';
+ protected $postalCodeRangesDataType = 'array';
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPostalCodeRanges($postalCodeRanges)
+ {
+ $this->postalCodeRanges = $postalCodeRanges;
+ }
+ public function getPostalCodeRanges()
+ {
+ return $this->postalCodeRanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeRange.php
new file mode 100644
index 00000000..70692f31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/PostalCodeRange.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_PostalCodeRange extends Google_Model
+{
+ public $postalCodeRangeBegin;
+ public $postalCodeRangeEnd;
+
+ public function setPostalCodeRangeBegin($postalCodeRangeBegin)
+ {
+ $this->postalCodeRangeBegin = $postalCodeRangeBegin;
+ }
+ public function getPostalCodeRangeBegin()
+ {
+ return $this->postalCodeRangeBegin;
+ }
+ public function setPostalCodeRangeEnd($postalCodeRangeEnd)
+ {
+ $this->postalCodeRangeEnd = $postalCodeRangeEnd;
+ }
+ public function getPostalCodeRangeEnd()
+ {
+ return $this->postalCodeRangeEnd;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Price.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Price.php
new file mode 100644
index 00000000..8132f85c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Price.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Price extends Google_Model
+{
+ public $currency;
+ public $value;
+
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php
new file mode 100644
index 00000000..f2dd0c92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Product.php
@@ -0,0 +1,687 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Product extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ public $additionalImageLinks;
+ public $additionalProductTypes;
+ public $adult;
+ public $adwordsGrouping;
+ public $adwordsLabels;
+ public $adwordsRedirect;
+ public $ageGroup;
+ protected $aspectsType = 'Google_Service_ShoppingContent_ProductAspect';
+ protected $aspectsDataType = 'array';
+ public $availability;
+ public $availabilityDate;
+ public $brand;
+ public $channel;
+ public $color;
+ public $condition;
+ public $contentLanguage;
+ protected $customAttributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute';
+ protected $customAttributesDataType = 'array';
+ protected $customGroupsType = 'Google_Service_ShoppingContent_ProductCustomGroup';
+ protected $customGroupsDataType = 'array';
+ public $customLabel0;
+ public $customLabel1;
+ public $customLabel2;
+ public $customLabel3;
+ public $customLabel4;
+ public $description;
+ protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination';
+ protected $destinationsDataType = 'array';
+ public $displayAdsId;
+ public $displayAdsLink;
+ public $displayAdsSimilarIds;
+ public $displayAdsTitle;
+ public $displayAdsValue;
+ public $energyEfficiencyClass;
+ public $expirationDate;
+ public $gender;
+ public $googleProductCategory;
+ public $gtin;
+ public $id;
+ public $identifierExists;
+ public $imageLink;
+ protected $installmentType = 'Google_Service_ShoppingContent_Installment';
+ protected $installmentDataType = '';
+ public $isBundle;
+ public $itemGroupId;
+ public $kind;
+ public $link;
+ protected $loyaltyPointsType = 'Google_Service_ShoppingContent_LoyaltyPoints';
+ protected $loyaltyPointsDataType = '';
+ public $material;
+ public $mobileLink;
+ public $mpn;
+ public $multipack;
+ public $offerId;
+ public $onlineOnly;
+ public $pattern;
+ protected $priceType = 'Google_Service_ShoppingContent_Price';
+ protected $priceDataType = '';
+ public $productType;
+ public $promotionIds;
+ protected $salePriceType = 'Google_Service_ShoppingContent_Price';
+ protected $salePriceDataType = '';
+ public $salePriceEffectiveDate;
+ public $sellOnGoogleQuantity;
+ protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping';
+ protected $shippingDataType = 'array';
+ protected $shippingHeightType = 'Google_Service_ShoppingContent_ProductShippingDimension';
+ protected $shippingHeightDataType = '';
+ public $shippingLabel;
+ protected $shippingLengthType = 'Google_Service_ShoppingContent_ProductShippingDimension';
+ protected $shippingLengthDataType = '';
+ protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight';
+ protected $shippingWeightDataType = '';
+ protected $shippingWidthType = 'Google_Service_ShoppingContent_ProductShippingDimension';
+ protected $shippingWidthDataType = '';
+ public $sizeSystem;
+ public $sizeType;
+ public $sizes;
+ public $targetCountry;
+ protected $taxesType = 'Google_Service_ShoppingContent_ProductTax';
+ protected $taxesDataType = 'array';
+ public $title;
+ protected $unitPricingBaseMeasureType = 'Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure';
+ protected $unitPricingBaseMeasureDataType = '';
+ protected $unitPricingMeasureType = 'Google_Service_ShoppingContent_ProductUnitPricingMeasure';
+ protected $unitPricingMeasureDataType = '';
+ public $validatedDestinations;
+ protected $warningsType = 'Google_Service_ShoppingContent_Error';
+ protected $warningsDataType = 'array';
+
+ public function setAdditionalImageLinks($additionalImageLinks)
+ {
+ $this->additionalImageLinks = $additionalImageLinks;
+ }
+ public function getAdditionalImageLinks()
+ {
+ return $this->additionalImageLinks;
+ }
+ public function setAdditionalProductTypes($additionalProductTypes)
+ {
+ $this->additionalProductTypes = $additionalProductTypes;
+ }
+ public function getAdditionalProductTypes()
+ {
+ return $this->additionalProductTypes;
+ }
+ public function setAdult($adult)
+ {
+ $this->adult = $adult;
+ }
+ public function getAdult()
+ {
+ return $this->adult;
+ }
+ public function setAdwordsGrouping($adwordsGrouping)
+ {
+ $this->adwordsGrouping = $adwordsGrouping;
+ }
+ public function getAdwordsGrouping()
+ {
+ return $this->adwordsGrouping;
+ }
+ public function setAdwordsLabels($adwordsLabels)
+ {
+ $this->adwordsLabels = $adwordsLabels;
+ }
+ public function getAdwordsLabels()
+ {
+ return $this->adwordsLabels;
+ }
+ public function setAdwordsRedirect($adwordsRedirect)
+ {
+ $this->adwordsRedirect = $adwordsRedirect;
+ }
+ public function getAdwordsRedirect()
+ {
+ return $this->adwordsRedirect;
+ }
+ public function setAgeGroup($ageGroup)
+ {
+ $this->ageGroup = $ageGroup;
+ }
+ public function getAgeGroup()
+ {
+ return $this->ageGroup;
+ }
+ public function setAspects($aspects)
+ {
+ $this->aspects = $aspects;
+ }
+ public function getAspects()
+ {
+ return $this->aspects;
+ }
+ public function setAvailability($availability)
+ {
+ $this->availability = $availability;
+ }
+ public function getAvailability()
+ {
+ return $this->availability;
+ }
+ public function setAvailabilityDate($availabilityDate)
+ {
+ $this->availabilityDate = $availabilityDate;
+ }
+ public function getAvailabilityDate()
+ {
+ return $this->availabilityDate;
+ }
+ public function setBrand($brand)
+ {
+ $this->brand = $brand;
+ }
+ public function getBrand()
+ {
+ return $this->brand;
+ }
+ public function setChannel($channel)
+ {
+ $this->channel = $channel;
+ }
+ public function getChannel()
+ {
+ return $this->channel;
+ }
+ public function setColor($color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setCondition($condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setContentLanguage($contentLanguage)
+ {
+ $this->contentLanguage = $contentLanguage;
+ }
+ public function getContentLanguage()
+ {
+ return $this->contentLanguage;
+ }
+ public function setCustomAttributes($customAttributes)
+ {
+ $this->customAttributes = $customAttributes;
+ }
+ public function getCustomAttributes()
+ {
+ return $this->customAttributes;
+ }
+ public function setCustomGroups($customGroups)
+ {
+ $this->customGroups = $customGroups;
+ }
+ public function getCustomGroups()
+ {
+ return $this->customGroups;
+ }
+ public function setCustomLabel0($customLabel0)
+ {
+ $this->customLabel0 = $customLabel0;
+ }
+ public function getCustomLabel0()
+ {
+ return $this->customLabel0;
+ }
+ public function setCustomLabel1($customLabel1)
+ {
+ $this->customLabel1 = $customLabel1;
+ }
+ public function getCustomLabel1()
+ {
+ return $this->customLabel1;
+ }
+ public function setCustomLabel2($customLabel2)
+ {
+ $this->customLabel2 = $customLabel2;
+ }
+ public function getCustomLabel2()
+ {
+ return $this->customLabel2;
+ }
+ public function setCustomLabel3($customLabel3)
+ {
+ $this->customLabel3 = $customLabel3;
+ }
+ public function getCustomLabel3()
+ {
+ return $this->customLabel3;
+ }
+ public function setCustomLabel4($customLabel4)
+ {
+ $this->customLabel4 = $customLabel4;
+ }
+ public function getCustomLabel4()
+ {
+ return $this->customLabel4;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDestinations($destinations)
+ {
+ $this->destinations = $destinations;
+ }
+ public function getDestinations()
+ {
+ return $this->destinations;
+ }
+ public function setDisplayAdsId($displayAdsId)
+ {
+ $this->displayAdsId = $displayAdsId;
+ }
+ public function getDisplayAdsId()
+ {
+ return $this->displayAdsId;
+ }
+ public function setDisplayAdsLink($displayAdsLink)
+ {
+ $this->displayAdsLink = $displayAdsLink;
+ }
+ public function getDisplayAdsLink()
+ {
+ return $this->displayAdsLink;
+ }
+ public function setDisplayAdsSimilarIds($displayAdsSimilarIds)
+ {
+ $this->displayAdsSimilarIds = $displayAdsSimilarIds;
+ }
+ public function getDisplayAdsSimilarIds()
+ {
+ return $this->displayAdsSimilarIds;
+ }
+ public function setDisplayAdsTitle($displayAdsTitle)
+ {
+ $this->displayAdsTitle = $displayAdsTitle;
+ }
+ public function getDisplayAdsTitle()
+ {
+ return $this->displayAdsTitle;
+ }
+ public function setDisplayAdsValue($displayAdsValue)
+ {
+ $this->displayAdsValue = $displayAdsValue;
+ }
+ public function getDisplayAdsValue()
+ {
+ return $this->displayAdsValue;
+ }
+ public function setEnergyEfficiencyClass($energyEfficiencyClass)
+ {
+ $this->energyEfficiencyClass = $energyEfficiencyClass;
+ }
+ public function getEnergyEfficiencyClass()
+ {
+ return $this->energyEfficiencyClass;
+ }
+ public function setExpirationDate($expirationDate)
+ {
+ $this->expirationDate = $expirationDate;
+ }
+ public function getExpirationDate()
+ {
+ return $this->expirationDate;
+ }
+ public function setGender($gender)
+ {
+ $this->gender = $gender;
+ }
+ public function getGender()
+ {
+ return $this->gender;
+ }
+ public function setGoogleProductCategory($googleProductCategory)
+ {
+ $this->googleProductCategory = $googleProductCategory;
+ }
+ public function getGoogleProductCategory()
+ {
+ return $this->googleProductCategory;
+ }
+ public function setGtin($gtin)
+ {
+ $this->gtin = $gtin;
+ }
+ public function getGtin()
+ {
+ return $this->gtin;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdentifierExists($identifierExists)
+ {
+ $this->identifierExists = $identifierExists;
+ }
+ public function getIdentifierExists()
+ {
+ return $this->identifierExists;
+ }
+ public function setImageLink($imageLink)
+ {
+ $this->imageLink = $imageLink;
+ }
+ public function getImageLink()
+ {
+ return $this->imageLink;
+ }
+ public function setInstallment(Google_Service_ShoppingContent_Installment $installment)
+ {
+ $this->installment = $installment;
+ }
+ public function getInstallment()
+ {
+ return $this->installment;
+ }
+ public function setIsBundle($isBundle)
+ {
+ $this->isBundle = $isBundle;
+ }
+ public function getIsBundle()
+ {
+ return $this->isBundle;
+ }
+ public function setItemGroupId($itemGroupId)
+ {
+ $this->itemGroupId = $itemGroupId;
+ }
+ public function getItemGroupId()
+ {
+ return $this->itemGroupId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setLoyaltyPoints(Google_Service_ShoppingContent_LoyaltyPoints $loyaltyPoints)
+ {
+ $this->loyaltyPoints = $loyaltyPoints;
+ }
+ public function getLoyaltyPoints()
+ {
+ return $this->loyaltyPoints;
+ }
+ public function setMaterial($material)
+ {
+ $this->material = $material;
+ }
+ public function getMaterial()
+ {
+ return $this->material;
+ }
+ public function setMobileLink($mobileLink)
+ {
+ $this->mobileLink = $mobileLink;
+ }
+ public function getMobileLink()
+ {
+ return $this->mobileLink;
+ }
+ public function setMpn($mpn)
+ {
+ $this->mpn = $mpn;
+ }
+ public function getMpn()
+ {
+ return $this->mpn;
+ }
+ public function setMultipack($multipack)
+ {
+ $this->multipack = $multipack;
+ }
+ public function getMultipack()
+ {
+ return $this->multipack;
+ }
+ public function setOfferId($offerId)
+ {
+ $this->offerId = $offerId;
+ }
+ public function getOfferId()
+ {
+ return $this->offerId;
+ }
+ public function setOnlineOnly($onlineOnly)
+ {
+ $this->onlineOnly = $onlineOnly;
+ }
+ public function getOnlineOnly()
+ {
+ return $this->onlineOnly;
+ }
+ public function setPattern($pattern)
+ {
+ $this->pattern = $pattern;
+ }
+ public function getPattern()
+ {
+ return $this->pattern;
+ }
+ public function setPrice(Google_Service_ShoppingContent_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setProductType($productType)
+ {
+ $this->productType = $productType;
+ }
+ public function getProductType()
+ {
+ return $this->productType;
+ }
+ public function setPromotionIds($promotionIds)
+ {
+ $this->promotionIds = $promotionIds;
+ }
+ public function getPromotionIds()
+ {
+ return $this->promotionIds;
+ }
+ public function setSalePrice(Google_Service_ShoppingContent_Price $salePrice)
+ {
+ $this->salePrice = $salePrice;
+ }
+ public function getSalePrice()
+ {
+ return $this->salePrice;
+ }
+ public function setSalePriceEffectiveDate($salePriceEffectiveDate)
+ {
+ $this->salePriceEffectiveDate = $salePriceEffectiveDate;
+ }
+ public function getSalePriceEffectiveDate()
+ {
+ return $this->salePriceEffectiveDate;
+ }
+ public function setSellOnGoogleQuantity($sellOnGoogleQuantity)
+ {
+ $this->sellOnGoogleQuantity = $sellOnGoogleQuantity;
+ }
+ public function getSellOnGoogleQuantity()
+ {
+ return $this->sellOnGoogleQuantity;
+ }
+ public function setShipping($shipping)
+ {
+ $this->shipping = $shipping;
+ }
+ public function getShipping()
+ {
+ return $this->shipping;
+ }
+ public function setShippingHeight(Google_Service_ShoppingContent_ProductShippingDimension $shippingHeight)
+ {
+ $this->shippingHeight = $shippingHeight;
+ }
+ public function getShippingHeight()
+ {
+ return $this->shippingHeight;
+ }
+ public function setShippingLabel($shippingLabel)
+ {
+ $this->shippingLabel = $shippingLabel;
+ }
+ public function getShippingLabel()
+ {
+ return $this->shippingLabel;
+ }
+ public function setShippingLength(Google_Service_ShoppingContent_ProductShippingDimension $shippingLength)
+ {
+ $this->shippingLength = $shippingLength;
+ }
+ public function getShippingLength()
+ {
+ return $this->shippingLength;
+ }
+ public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight)
+ {
+ $this->shippingWeight = $shippingWeight;
+ }
+ public function getShippingWeight()
+ {
+ return $this->shippingWeight;
+ }
+ public function setShippingWidth(Google_Service_ShoppingContent_ProductShippingDimension $shippingWidth)
+ {
+ $this->shippingWidth = $shippingWidth;
+ }
+ public function getShippingWidth()
+ {
+ return $this->shippingWidth;
+ }
+ public function setSizeSystem($sizeSystem)
+ {
+ $this->sizeSystem = $sizeSystem;
+ }
+ public function getSizeSystem()
+ {
+ return $this->sizeSystem;
+ }
+ public function setSizeType($sizeType)
+ {
+ $this->sizeType = $sizeType;
+ }
+ public function getSizeType()
+ {
+ return $this->sizeType;
+ }
+ public function setSizes($sizes)
+ {
+ $this->sizes = $sizes;
+ }
+ public function getSizes()
+ {
+ return $this->sizes;
+ }
+ public function setTargetCountry($targetCountry)
+ {
+ $this->targetCountry = $targetCountry;
+ }
+ public function getTargetCountry()
+ {
+ return $this->targetCountry;
+ }
+ public function setTaxes($taxes)
+ {
+ $this->taxes = $taxes;
+ }
+ public function getTaxes()
+ {
+ return $this->taxes;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUnitPricingBaseMeasure(Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure $unitPricingBaseMeasure)
+ {
+ $this->unitPricingBaseMeasure = $unitPricingBaseMeasure;
+ }
+ public function getUnitPricingBaseMeasure()
+ {
+ return $this->unitPricingBaseMeasure;
+ }
+ public function setUnitPricingMeasure(Google_Service_ShoppingContent_ProductUnitPricingMeasure $unitPricingMeasure)
+ {
+ $this->unitPricingMeasure = $unitPricingMeasure;
+ }
+ public function getUnitPricingMeasure()
+ {
+ return $this->unitPricingMeasure;
+ }
+ public function setValidatedDestinations($validatedDestinations)
+ {
+ $this->validatedDestinations = $validatedDestinations;
+ }
+ public function getValidatedDestinations()
+ {
+ return $this->validatedDestinations;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAspect.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAspect.php
new file mode 100644
index 00000000..6f1f84ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductAspect.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductAspect extends Google_Model
+{
+ public $aspectName;
+ public $destinationName;
+ public $intention;
+
+ public function setAspectName($aspectName)
+ {
+ $this->aspectName = $aspectName;
+ }
+ public function getAspectName()
+ {
+ return $this->aspectName;
+ }
+ public function setDestinationName($destinationName)
+ {
+ $this->destinationName = $destinationName;
+ }
+ public function getDestinationName()
+ {
+ return $this->destinationName;
+ }
+ public function setIntention($intention)
+ {
+ $this->intention = $intention;
+ }
+ public function getIntention()
+ {
+ return $this->intention;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomAttribute.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomAttribute.php
new file mode 100644
index 00000000..f7e46d66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomAttribute.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model
+{
+ public $name;
+ public $type;
+ public $unit;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomGroup.php
new file mode 100644
index 00000000..f8e683c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductCustomGroup.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductCustomGroup extends Google_Collection
+{
+ protected $collection_key = 'attributes';
+ protected $attributesType = 'Google_Service_ShoppingContent_ProductCustomAttribute';
+ protected $attributesDataType = 'array';
+ public $name;
+
+ public function setAttributes($attributes)
+ {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductDestination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductDestination.php
new file mode 100644
index 00000000..82394cac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductDestination.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductDestination extends Google_Model
+{
+ public $destinationName;
+ public $intention;
+
+ public function setDestinationName($destinationName)
+ {
+ $this->destinationName = $destinationName;
+ }
+ public function getDestinationName()
+ {
+ return $this->destinationName;
+ }
+ public function setIntention($intention)
+ {
+ $this->intention = $intention;
+ }
+ public function getIntention()
+ {
+ return $this->intention;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShipping.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShipping.php
new file mode 100644
index 00000000..9dfe3259
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShipping.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductShipping extends Google_Model
+{
+ public $country;
+ public $locationGroupName;
+ public $locationId;
+ public $postalCode;
+ protected $priceType = 'Google_Service_ShoppingContent_Price';
+ protected $priceDataType = '';
+ public $region;
+ public $service;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLocationGroupName($locationGroupName)
+ {
+ $this->locationGroupName = $locationGroupName;
+ }
+ public function getLocationGroupName()
+ {
+ return $this->locationGroupName;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setPrice(Google_Service_ShoppingContent_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingDimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingDimension.php
new file mode 100644
index 00000000..5800f56d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingDimension.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductShippingDimension extends Google_Model
+{
+ public $unit;
+ public $value;
+
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingWeight.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingWeight.php
new file mode 100644
index 00000000..843311e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductShippingWeight.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model
+{
+ public $unit;
+ public $value;
+
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php
new file mode 100644
index 00000000..fffe96bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatus.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductStatus extends Google_Collection
+{
+ protected $collection_key = 'destinationStatuses';
+ public $creationDate;
+ protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue';
+ protected $dataQualityIssuesDataType = 'array';
+ protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus';
+ protected $destinationStatusesDataType = 'array';
+ public $googleExpirationDate;
+ public $kind;
+ public $lastUpdateDate;
+ public $link;
+ public $productId;
+ public $title;
+
+ public function setCreationDate($creationDate)
+ {
+ $this->creationDate = $creationDate;
+ }
+ public function getCreationDate()
+ {
+ return $this->creationDate;
+ }
+ public function setDataQualityIssues($dataQualityIssues)
+ {
+ $this->dataQualityIssues = $dataQualityIssues;
+ }
+ public function getDataQualityIssues()
+ {
+ return $this->dataQualityIssues;
+ }
+ public function setDestinationStatuses($destinationStatuses)
+ {
+ $this->destinationStatuses = $destinationStatuses;
+ }
+ public function getDestinationStatuses()
+ {
+ return $this->destinationStatuses;
+ }
+ public function setGoogleExpirationDate($googleExpirationDate)
+ {
+ $this->googleExpirationDate = $googleExpirationDate;
+ }
+ public function getGoogleExpirationDate()
+ {
+ return $this->googleExpirationDate;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastUpdateDate($lastUpdateDate)
+ {
+ $this->lastUpdateDate = $lastUpdateDate;
+ }
+ public function getLastUpdateDate()
+ {
+ return $this->lastUpdateDate;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDataQualityIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDataQualityIssue.php
new file mode 100644
index 00000000..9ed656ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDataQualityIssue.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Google_Model
+{
+ public $detail;
+ public $fetchStatus;
+ public $id;
+ public $location;
+ public $severity;
+ public $timestamp;
+ public $valueOnLandingPage;
+ public $valueProvided;
+
+ public function setDetail($detail)
+ {
+ $this->detail = $detail;
+ }
+ public function getDetail()
+ {
+ return $this->detail;
+ }
+ public function setFetchStatus($fetchStatus)
+ {
+ $this->fetchStatus = $fetchStatus;
+ }
+ public function getFetchStatus()
+ {
+ return $this->fetchStatus;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setValueOnLandingPage($valueOnLandingPage)
+ {
+ $this->valueOnLandingPage = $valueOnLandingPage;
+ }
+ public function getValueOnLandingPage()
+ {
+ return $this->valueOnLandingPage;
+ }
+ public function setValueProvided($valueProvided)
+ {
+ $this->valueProvided = $valueProvided;
+ }
+ public function getValueProvided()
+ {
+ return $this->valueProvided;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php
new file mode 100644
index 00000000..bf226817
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductStatusDestinationStatus.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductStatusDestinationStatus extends Google_Model
+{
+ public $approvalStatus;
+ public $destination;
+ public $intention;
+
+ public function setApprovalStatus($approvalStatus)
+ {
+ $this->approvalStatus = $approvalStatus;
+ }
+ public function getApprovalStatus()
+ {
+ return $this->approvalStatus;
+ }
+ public function setDestination($destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setIntention($intention)
+ {
+ $this->intention = $intention;
+ }
+ public function getIntention()
+ {
+ return $this->intention;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductTax.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductTax.php
new file mode 100644
index 00000000..9fc29aa8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductTax.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductTax extends Google_Model
+{
+ public $country;
+ public $locationId;
+ public $postalCode;
+ public $rate;
+ public $region;
+ public $taxShip;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setPostalCode($postalCode)
+ {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode()
+ {
+ return $this->postalCode;
+ }
+ public function setRate($rate)
+ {
+ $this->rate = $rate;
+ }
+ public function getRate()
+ {
+ return $this->rate;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setTaxShip($taxShip)
+ {
+ $this->taxShip = $taxShip;
+ }
+ public function getTaxShip()
+ {
+ return $this->taxShip;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingBaseMeasure.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingBaseMeasure.php
new file mode 100644
index 00000000..dc01d044
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingBaseMeasure.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductUnitPricingBaseMeasure extends Google_Model
+{
+ public $unit;
+ public $value;
+
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingMeasure.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingMeasure.php
new file mode 100644
index 00000000..b0ec16cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductUnitPricingMeasure.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductUnitPricingMeasure extends Google_Model
+{
+ public $unit;
+ public $value;
+
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequest.php
new file mode 100644
index 00000000..f165a303
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductsCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequestEntry.php
new file mode 100644
index 00000000..958cefed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchRequestEntry.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductsCustomBatchRequestEntry extends Google_Model
+{
+ public $batchId;
+ public $merchantId;
+ public $method;
+ protected $productType = 'Google_Service_ShoppingContent_Product';
+ protected $productDataType = '';
+ public $productId;
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setProduct(Google_Service_ShoppingContent_Product $product)
+ {
+ $this->product = $product;
+ }
+ public function getProduct()
+ {
+ return $this->product;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponse.php
new file mode 100644
index 00000000..163b8781
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductsCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponseEntry.php
new file mode 100644
index 00000000..728e45fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsCustomBatchResponseEntry.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductsCustomBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+ protected $productType = 'Google_Service_ShoppingContent_Product';
+ protected $productDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProduct(Google_Service_ShoppingContent_Product $product)
+ {
+ $this->product = $product;
+ }
+ public function getProduct()
+ {
+ return $this->product;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsListResponse.php
new file mode 100644
index 00000000..e8d91dbf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_Product';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequest.php
new file mode 100644
index 00000000..8be0fb9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequestEntry.php
new file mode 100644
index 00000000..5ae900a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchRequestEntry.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductstatusesCustomBatchRequestEntry extends Google_Model
+{
+ public $batchId;
+ public $merchantId;
+ public $method;
+ public $productId;
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponse.php
new file mode 100644
index 00000000..869f3f80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponseEntry.php
new file mode 100644
index 00000000..0e0f46fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesCustomBatchResponseEntry.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductstatusesCustomBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+ protected $productStatusType = 'Google_Service_ShoppingContent_ProductStatus';
+ protected $productStatusDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProductStatus(Google_Service_ShoppingContent_ProductStatus $productStatus)
+ {
+ $this->productStatus = $productStatus;
+ }
+ public function getProductStatus()
+ {
+ return $this->productStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesListResponse.php
new file mode 100644
index 00000000..0461a4bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ProductstatusesListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_ProductStatus';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php
new file mode 100644
index 00000000..ff8e04c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/RateGroup.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_RateGroup extends Google_Collection
+{
+ protected $collection_key = 'subtables';
+ public $applicableShippingLabels;
+ protected $carrierRatesType = 'Google_Service_ShoppingContent_CarrierRate';
+ protected $carrierRatesDataType = 'array';
+ protected $mainTableType = 'Google_Service_ShoppingContent_Table';
+ protected $mainTableDataType = '';
+ protected $singleValueType = 'Google_Service_ShoppingContent_Value';
+ protected $singleValueDataType = '';
+ protected $subtablesType = 'Google_Service_ShoppingContent_Table';
+ protected $subtablesDataType = 'array';
+
+ public function setApplicableShippingLabels($applicableShippingLabels)
+ {
+ $this->applicableShippingLabels = $applicableShippingLabels;
+ }
+ public function getApplicableShippingLabels()
+ {
+ return $this->applicableShippingLabels;
+ }
+ public function setCarrierRates($carrierRates)
+ {
+ $this->carrierRates = $carrierRates;
+ }
+ public function getCarrierRates()
+ {
+ return $this->carrierRates;
+ }
+ public function setMainTable(Google_Service_ShoppingContent_Table $mainTable)
+ {
+ $this->mainTable = $mainTable;
+ }
+ public function getMainTable()
+ {
+ return $this->mainTable;
+ }
+ public function setSingleValue(Google_Service_ShoppingContent_Value $singleValue)
+ {
+ $this->singleValue = $singleValue;
+ }
+ public function getSingleValue()
+ {
+ return $this->singleValue;
+ }
+ public function setSubtables($subtables)
+ {
+ $this->subtables = $subtables;
+ }
+ public function getSubtables()
+ {
+ return $this->subtables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php
new file mode 100644
index 00000000..65ef757b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounts.php
@@ -0,0 +1,164 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $accounts = $contentService->accounts;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Returns information about the authenticated user. (accounts.authinfo)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountsAuthInfoResponse
+ */
+ public function authinfo($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('authinfo', array($params), "Google_Service_ShoppingContent_AccountsAuthInfoResponse");
+ }
+ /**
+ * Retrieves, inserts, updates, and deletes multiple Merchant Center
+ * (sub-)accounts in a single request. (accounts.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse");
+ }
+ /**
+ * Deletes a Merchant Center sub-account. This method can only be called for
+ * multi-client accounts. (accounts.delete)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ */
+ public function delete($merchantId, $accountId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a Merchant Center account. This method can only be called for
+ * accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. (accounts.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_Account
+ */
+ public function get($merchantId, $accountId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_Account");
+ }
+ /**
+ * Creates a Merchant Center sub-account. This method can only be called for
+ * multi-client accounts. (accounts.insert)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param Google_Service_ShoppingContent_Account $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_Account
+ */
+ public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account");
+ }
+ /**
+ * Lists the sub-accounts in your Merchant Center account. This method can only
+ * be called for multi-client accounts. (accounts.listAccounts)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of accounts to return in the
+ * response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_AccountsListResponse
+ */
+ public function listAccounts($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse");
+ }
+ /**
+ * Updates a Merchant Center account. This method can only be called for
+ * accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. This method supports patch semantics. (accounts.patch)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account.
+ * @param Google_Service_ShoppingContent_Account $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_Account
+ */
+ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account");
+ }
+ /**
+ * Updates a Merchant Center account. This method can only be called for
+ * accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. (accounts.update)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account.
+ * @param Google_Service_ShoppingContent_Account $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_Account
+ */
+ public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ShoppingContent_Account");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountshipping.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountshipping.php
new file mode 100644
index 00000000..a28f530a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountshipping.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountshipping" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $accountshipping = $contentService->accountshipping;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Accountshipping extends Google_Service_Resource
+{
+ /**
+ * Retrieves and updates the shipping settings of multiple accounts in a single
+ * request. (accountshipping.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse");
+ }
+ /**
+ * Retrieves the shipping settings of the account. This method can only be
+ * called for accounts to which the managing account has access: either the
+ * managing account itself or sub-accounts if the managing account is a multi-
+ * client account. (accountshipping.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account shipping settings.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountShipping
+ */
+ public function get($merchantId, $accountId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping");
+ }
+ /**
+ * Lists the shipping settings of the sub-accounts in your Merchant Center
+ * account. This method can only be called for multi-client accounts.
+ * (accountshipping.listAccountshipping)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of shipping settings to
+ * return in the response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_AccountshippingListResponse
+ */
+ public function listAccountshipping($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse");
+ }
+ /**
+ * Updates the shipping settings of the account. This method can only be called
+ * for accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. This method supports patch semantics. (accountshipping.patch)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account shipping settings.
+ * @param Google_Service_ShoppingContent_AccountShipping $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_AccountShipping
+ */
+ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping");
+ }
+ /**
+ * Updates the shipping settings of the account. This method can only be called
+ * for accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. (accountshipping.update)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account shipping settings.
+ * @param Google_Service_ShoppingContent_AccountShipping $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_AccountShipping
+ */
+ public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php
new file mode 100644
index 00000000..2abf0d9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accountstatuses.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accountstatuses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $accountstatuses = $contentService->accountstatuses;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Accountstatuses extends Google_Service_Resource
+{
+ /**
+ * (accountstatuses.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse");
+ }
+ /**
+ * Retrieves the status of a Merchant Center account. This method can only be
+ * called for accounts to which the managing account has access: either the
+ * managing account itself or sub-accounts if the managing account is a multi-
+ * client account. (accountstatuses.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountStatus
+ */
+ public function get($merchantId, $accountId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus");
+ }
+ /**
+ * Lists the statuses of the sub-accounts in your Merchant Center account. This
+ * method can only be called for multi-client accounts.
+ * (accountstatuses.listAccountstatuses)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of account statuses to return
+ * in the response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_AccountstatusesListResponse
+ */
+ public function listAccountstatuses($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php
new file mode 100644
index 00000000..79ee23e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Accounttax.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounttax" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $accounttax = $contentService->accounttax;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Accounttax extends Google_Service_Resource
+{
+ /**
+ * Retrieves and updates tax settings of multiple accounts in a single request.
+ * (accounttax.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccounttaxCustomBatchResponse");
+ }
+ /**
+ * Retrieves the tax settings of the account. This method can only be called for
+ * accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. (accounttax.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account tax settings.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountTax
+ */
+ public function get($merchantId, $accountId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountTax");
+ }
+ /**
+ * Lists the tax settings of the sub-accounts in your Merchant Center account.
+ * This method can only be called for multi-client accounts.
+ * (accounttax.listAccounttax)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of tax settings to return in
+ * the response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_AccounttaxListResponse
+ */
+ public function listAccounttax($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse");
+ }
+ /**
+ * Updates the tax settings of the account. This method can only be called for
+ * accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. This method supports patch semantics. (accounttax.patch)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account tax settings.
+ * @param Google_Service_ShoppingContent_AccountTax $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_AccountTax
+ */
+ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax");
+ }
+ /**
+ * Updates the tax settings of the account. This method can only be called for
+ * accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. (accounttax.update)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account tax settings.
+ * @param Google_Service_ShoppingContent_AccountTax $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_AccountTax
+ */
+ public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountTax");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php
new file mode 100644
index 00000000..4f1c058b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeeds.php
@@ -0,0 +1,146 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "datafeeds" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $datafeeds = $contentService->datafeeds;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Datafeeds extends Google_Service_Resource
+{
+ /**
+ * (datafeeds.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse");
+ }
+ /**
+ * Deletes a datafeed from your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. (datafeeds.delete)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ */
+ public function delete($merchantId, $datafeedId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a datafeed from your Merchant Center account. This method can only
+ * be called for non-multi-client accounts. (datafeeds.get)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_Datafeed
+ */
+ public function get($merchantId, $datafeedId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed");
+ }
+ /**
+ * Registers a datafeed with your Merchant Center account. This method can only
+ * be called for non-multi-client accounts. (datafeeds.insert)
+ *
+ * @param string $merchantId
+ * @param Google_Service_ShoppingContent_Datafeed $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_Datafeed
+ */
+ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed");
+ }
+ /**
+ * Lists the datafeeds in your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. (datafeeds.listDatafeeds)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of products to return in the
+ * response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_DatafeedsListResponse
+ */
+ public function listDatafeeds($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse");
+ }
+ /**
+ * Updates a datafeed of your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. This method supports patch semantics.
+ * (datafeeds.patch)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
+ * @param Google_Service_ShoppingContent_Datafeed $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_Datafeed
+ */
+ public function patch($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ShoppingContent_Datafeed");
+ }
+ /**
+ * Updates a datafeed of your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. (datafeeds.update)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
+ * @param Google_Service_ShoppingContent_Datafeed $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_Datafeed
+ */
+ public function update($merchantId, $datafeedId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ShoppingContent_Datafeed");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeedstatuses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeedstatuses.php
new file mode 100644
index 00000000..520fc0fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Datafeedstatuses.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "datafeedstatuses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $datafeedstatuses = $contentService->datafeedstatuses;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Datafeedstatuses extends Google_Service_Resource
+{
+ /**
+ * (datafeedstatuses.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_DatafeedstatusesCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedstatusesCustomBatchResponse");
+ }
+ /**
+ * Retrieves the status of a datafeed from your Merchant Center account. This
+ * method can only be called for non-multi-client accounts.
+ * (datafeedstatuses.get)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_DatafeedStatus
+ */
+ public function get($merchantId, $datafeedId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_DatafeedStatus");
+ }
+ /**
+ * Lists the statuses of the datafeeds in your Merchant Center account. This
+ * method can only be called for non-multi-client accounts.
+ * (datafeedstatuses.listDatafeedstatuses)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of products to return in the
+ * response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_DatafeedstatusesListResponse
+ */
+ public function listDatafeedstatuses($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedstatusesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Inventory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Inventory.php
new file mode 100644
index 00000000..1b5e80cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Inventory.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "inventory" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $inventory = $contentService->inventory;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Inventory extends Google_Service_Resource
+{
+ /**
+ * Updates price and availability for multiple products or stores in a single
+ * request. This operation does not update the expiration date of the products.
+ * This method can only be called for non-multi-client accounts.
+ * (inventory.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse");
+ }
+ /**
+ * Updates price and availability of a product in your Merchant Center account.
+ * This operation does not update the expiration date of the product. This
+ * method can only be called for non-multi-client accounts. (inventory.set)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $storeCode The code of the store for which to update price and
+ * availability. Use online to update price and availability of an online
+ * product.
+ * @param string $productId The ID of the product for which to update price and
+ * availability.
+ * @param Google_Service_ShoppingContent_InventorySetRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_InventorySetResponse
+ */
+ public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('set', array($params), "Google_Service_ShoppingContent_InventorySetResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php
new file mode 100644
index 00000000..962c1646
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Orders.php
@@ -0,0 +1,287 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "orders" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $orders = $contentService->orders;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Orders extends Google_Service_Resource
+{
+ /**
+ * Marks an order as acknowledged. This method can only be called for non-multi-
+ * client accounts. (orders.acknowledge)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order.
+ * @param Google_Service_ShoppingContent_OrdersAcknowledgeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersAcknowledgeResponse
+ */
+ public function acknowledge($merchantId, $orderId, Google_Service_ShoppingContent_OrdersAcknowledgeRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('acknowledge', array($params), "Google_Service_ShoppingContent_OrdersAcknowledgeResponse");
+ }
+ /**
+ * Sandbox only. Moves a test order from state "inProgress" to state
+ * "pendingShipment". This method can only be called for non-multi-client
+ * accounts. (orders.advancetestorder)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the test order to modify.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse
+ */
+ public function advancetestorder($merchantId, $orderId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('advancetestorder', array($params), "Google_Service_ShoppingContent_OrdersAdvanceTestOrderResponse");
+ }
+ /**
+ * Cancels all line items in an order. This method can only be called for non-
+ * multi-client accounts. (orders.cancel)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order to cancel.
+ * @param Google_Service_ShoppingContent_OrdersCancelRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersCancelResponse
+ */
+ public function cancel($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCancelRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_ShoppingContent_OrdersCancelResponse");
+ }
+ /**
+ * Cancels a line item. This method can only be called for non-multi-client
+ * accounts. (orders.cancellineitem)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order.
+ * @param Google_Service_ShoppingContent_OrdersCancelLineItemRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersCancelLineItemResponse
+ */
+ public function cancellineitem($merchantId, $orderId, Google_Service_ShoppingContent_OrdersCancelLineItemRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancellineitem', array($params), "Google_Service_ShoppingContent_OrdersCancelLineItemResponse");
+ }
+ /**
+ * Sandbox only. Creates a test order. This method can only be called for non-
+ * multi-client accounts. (orders.createtestorder)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param Google_Service_ShoppingContent_OrdersCreateTestOrderRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersCreateTestOrderResponse
+ */
+ public function createtestorder($merchantId, Google_Service_ShoppingContent_OrdersCreateTestOrderRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('createtestorder', array($params), "Google_Service_ShoppingContent_OrdersCreateTestOrderResponse");
+ }
+ /**
+ * Retrieves or modifies multiple orders in a single request. This method can
+ * only be called for non-multi-client accounts. (orders.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_OrdersCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_OrdersCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_OrdersCustomBatchResponse");
+ }
+ /**
+ * Retrieves an order from your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. (orders.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_Order
+ */
+ public function get($merchantId, $orderId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_Order");
+ }
+ /**
+ * Retrieves an order using merchant order id. This method can only be called
+ * for non-multi-client accounts. (orders.getbymerchantorderid)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $merchantOrderId The merchant order id to be looked for.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse
+ */
+ public function getbymerchantorderid($merchantId, $merchantOrderId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'merchantOrderId' => $merchantOrderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getbymerchantorderid', array($params), "Google_Service_ShoppingContent_OrdersGetByMerchantOrderIdResponse");
+ }
+ /**
+ * Sandbox only. Retrieves an order template that can be used to quickly create
+ * a new order in sandbox. This method can only be called for non-multi-client
+ * accounts. (orders.gettestordertemplate)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $templateName The name of the template to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse
+ */
+ public function gettestordertemplate($merchantId, $templateName, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'templateName' => $templateName);
+ $params = array_merge($params, $optParams);
+ return $this->call('gettestordertemplate', array($params), "Google_Service_ShoppingContent_OrdersGetTestOrderTemplateResponse");
+ }
+ /**
+ * Lists the orders in your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. (orders.listOrders)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool acknowledged Obtains orders that match the acknowledgement
+ * status. When set to true, obtains orders that have been acknowledged. When
+ * false, obtains orders that have not been acknowledged. We recommend using
+ * this filter set to false, in conjunction with the acknowledge call, such that
+ * only un-acknowledged orders are returned.
+ * @opt_param string maxResults The maximum number of orders to return in the
+ * response, used for paging. The default value is 25 orders per page, and the
+ * maximum allowed value is 250 orders per page. Known issue: All List calls
+ * will return all Orders without limit regardless of the value of this field.
+ * @opt_param string orderBy The ordering of the returned list. The only
+ * supported value are placedDate desc and placedDate asc for now, which returns
+ * orders sorted by placement date. "placedDate desc" stands for listing orders
+ * by placement date, from oldest to most recent. "placedDate asc" stands for
+ * listing orders by placement date, from most recent to oldest. In future
+ * releases we'll support other sorting criteria.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param string placedDateEnd Obtains orders placed before this date
+ * (exclusively), in ISO 8601 format.
+ * @opt_param string placedDateStart Obtains orders placed after this date
+ * (inclusively), in ISO 8601 format.
+ * @opt_param string statuses Obtains orders that match any of the specified
+ * statuses. Multiple values can be specified with comma separation.
+ * Additionally, please note that active is a shortcut for pendingShipment and
+ * partiallyShipped, and completed is a shortcut for shipped ,
+ * partiallyDelivered, delivered, partiallyReturned, returned, and canceled.
+ * @return Google_Service_ShoppingContent_OrdersListResponse
+ */
+ public function listOrders($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_OrdersListResponse");
+ }
+ /**
+ * Refund a portion of the order, up to the full amount paid. This method can
+ * only be called for non-multi-client accounts. (orders.refund)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order to refund.
+ * @param Google_Service_ShoppingContent_OrdersRefundRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersRefundResponse
+ */
+ public function refund($merchantId, $orderId, Google_Service_ShoppingContent_OrdersRefundRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('refund', array($params), "Google_Service_ShoppingContent_OrdersRefundResponse");
+ }
+ /**
+ * Returns a line item. This method can only be called for non-multi-client
+ * accounts. (orders.returnlineitem)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order.
+ * @param Google_Service_ShoppingContent_OrdersReturnLineItemRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersReturnLineItemResponse
+ */
+ public function returnlineitem($merchantId, $orderId, Google_Service_ShoppingContent_OrdersReturnLineItemRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('returnlineitem', array($params), "Google_Service_ShoppingContent_OrdersReturnLineItemResponse");
+ }
+ /**
+ * Marks line item(s) as shipped. This method can only be called for non-multi-
+ * client accounts. (orders.shiplineitems)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order.
+ * @param Google_Service_ShoppingContent_OrdersShipLineItemsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersShipLineItemsResponse
+ */
+ public function shiplineitems($merchantId, $orderId, Google_Service_ShoppingContent_OrdersShipLineItemsRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('shiplineitems', array($params), "Google_Service_ShoppingContent_OrdersShipLineItemsResponse");
+ }
+ /**
+ * Updates the merchant order ID for a given order. This method can only be
+ * called for non-multi-client accounts. (orders.updatemerchantorderid)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order.
+ * @param Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse
+ */
+ public function updatemerchantorderid($merchantId, $orderId, Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updatemerchantorderid', array($params), "Google_Service_ShoppingContent_OrdersUpdateMerchantOrderIdResponse");
+ }
+ /**
+ * Updates a shipment's status, carrier, and/or tracking ID. This method can
+ * only be called for non-multi-client accounts. (orders.updateshipment)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $orderId The ID of the order.
+ * @param Google_Service_ShoppingContent_OrdersUpdateShipmentRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_OrdersUpdateShipmentResponse
+ */
+ public function updateshipment($merchantId, $orderId, Google_Service_ShoppingContent_OrdersUpdateShipmentRequest $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateshipment', array($params), "Google_Service_ShoppingContent_OrdersUpdateShipmentResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php
new file mode 100644
index 00000000..1ff1e43c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Products.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "products" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $products = $contentService->products;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Products extends Google_Service_Resource
+{
+ /**
+ * Retrieves, inserts, and deletes multiple products in a single request. This
+ * method can only be called for non-multi-client accounts.
+ * (products.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_ProductsCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_ProductsCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductsCustomBatchResponse");
+ }
+ /**
+ * Deletes a product from your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. (products.delete)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ */
+ public function delete($merchantId, $productId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves a product from your Merchant Center account. This method can only
+ * be called for non-multi-client accounts. (products.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_Product
+ */
+ public function get($merchantId, $productId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_Product");
+ }
+ /**
+ * Uploads a product to your Merchant Center account. If an item with the same
+ * channel, contentLanguage, offerId, and targetCountry already exists, this
+ * method updates that entry. This method can only be called for non-multi-
+ * client accounts. (products.insert)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param Google_Service_ShoppingContent_Product $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_Product
+ */
+ public function insert($merchantId, Google_Service_ShoppingContent_Product $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ShoppingContent_Product");
+ }
+ /**
+ * Lists the products in your Merchant Center account. This method can only be
+ * called for non-multi-client accounts. (products.listProducts)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInvalidInsertedItems Flag to include the invalid
+ * inserted items in the result of the list request. By default the invalid
+ * items are not shown (the default value is false).
+ * @opt_param string maxResults The maximum number of products to return in the
+ * response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_ProductsListResponse
+ */
+ public function listProducts($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php
new file mode 100644
index 00000000..5e1ab09e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Productstatuses.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "productstatuses" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $productstatuses = $contentService->productstatuses;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Productstatuses extends Google_Service_Resource
+{
+ /**
+ * Gets the statuses of multiple products in a single request. This method can
+ * only be called for non-multi-client accounts. (productstatuses.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse");
+ }
+ /**
+ * Gets the status of a product from your Merchant Center account. This method
+ * can only be called for non-multi-client accounts. (productstatuses.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_ProductStatus
+ */
+ public function get($merchantId, $productId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_ProductStatus");
+ }
+ /**
+ * Lists the statuses of the products in your Merchant Center account. This
+ * method can only be called for non-multi-client accounts.
+ * (productstatuses.listProductstatuses)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInvalidInsertedItems Flag to include the invalid
+ * inserted items in the result of the list request. By default the invalid
+ * items are not shown (the default value is false).
+ * @opt_param string maxResults The maximum number of product statuses to return
+ * in the response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_ProductstatusesListResponse
+ */
+ public function listProductstatuses($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductstatusesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php
new file mode 100644
index 00000000..5bb94aa9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Resource/Shippingsettings.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "shippingsettings" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $shippingsettings = $contentService->shippingsettings;
+ * </code>
+ */
+class Google_Service_ShoppingContent_Resource_Shippingsettings extends Google_Service_Resource
+{
+ /**
+ * Retrieves and updates the shipping settings of multiple accounts in a single
+ * request. (shippingsettings.custombatch)
+ *
+ * @param Google_Service_ShoppingContent_ShippingsettingsCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_ShippingsettingsCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_ShippingsettingsCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ShippingsettingsCustomBatchResponse");
+ }
+ /**
+ * Retrieves the shipping settings of the account. This method can only be
+ * called for accounts to which the managing account has access: either the
+ * managing account itself or sub-accounts if the managing account is a multi-
+ * client account. (shippingsettings.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * shipping settings.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_ShippingSettings
+ */
+ public function get($merchantId, $accountId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_ShippingSettings");
+ }
+ /**
+ * Retrieves supported carriers and carrier services for an account.
+ * (shippingsettings.getsupportedcarriers)
+ *
+ * @param string $merchantId The ID of the account for which to retrieve the
+ * supported carriers.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_ShippingsettingsGetSupportedCarriersResponse
+ */
+ public function getsupportedcarriers($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getsupportedcarriers', array($params), "Google_Service_ShoppingContent_ShippingsettingsGetSupportedCarriersResponse");
+ }
+ /**
+ * Lists the shipping settings of the sub-accounts in your Merchant Center
+ * account. This method can only be called for multi-client accounts.
+ * (shippingsettings.listShippingsettings)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of shipping settings to
+ * return in the response, used for paging.
+ * @opt_param string pageToken The token returned by the previous request.
+ * @return Google_Service_ShoppingContent_ShippingsettingsListResponse
+ */
+ public function listShippingsettings($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_ShippingsettingsListResponse");
+ }
+ /**
+ * Updates the shipping settings of the account. This method can only be called
+ * for accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. This method supports patch semantics. (shippingsettings.patch)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * shipping settings.
+ * @param Google_Service_ShoppingContent_ShippingSettings $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_ShippingSettings
+ */
+ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_ShippingSettings $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ShoppingContent_ShippingSettings");
+ }
+ /**
+ * Updates the shipping settings of the account. This method can only be called
+ * for accounts to which the managing account has access: either the managing
+ * account itself or sub-accounts if the managing account is a multi-client
+ * account. (shippingsettings.update)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * shipping settings.
+ * @param Google_Service_ShoppingContent_ShippingSettings $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool dryRun Flag to run the request in dry-run mode.
+ * @return Google_Service_ShoppingContent_ShippingSettings
+ */
+ public function update($merchantId, $accountId, Google_Service_ShoppingContent_ShippingSettings $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ShoppingContent_ShippingSettings");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Row.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Row.php
new file mode 100644
index 00000000..911cc870
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Row.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Row extends Google_Collection
+{
+ protected $collection_key = 'cells';
+ protected $cellsType = 'Google_Service_ShoppingContent_Value';
+ protected $cellsDataType = 'array';
+
+ public function setCells($cells)
+ {
+ $this->cells = $cells;
+ }
+ public function getCells()
+ {
+ return $this->cells;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Service.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Service.php
new file mode 100644
index 00000000..ba428e9e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Service.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Service extends Google_Collection
+{
+ protected $collection_key = 'rateGroups';
+ public $active;
+ public $currency;
+ public $deliveryCountry;
+ protected $deliveryTimeType = 'Google_Service_ShoppingContent_DeliveryTime';
+ protected $deliveryTimeDataType = '';
+ public $name;
+ protected $rateGroupsType = 'Google_Service_ShoppingContent_RateGroup';
+ protected $rateGroupsDataType = 'array';
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setDeliveryCountry($deliveryCountry)
+ {
+ $this->deliveryCountry = $deliveryCountry;
+ }
+ public function getDeliveryCountry()
+ {
+ return $this->deliveryCountry;
+ }
+ public function setDeliveryTime(Google_Service_ShoppingContent_DeliveryTime $deliveryTime)
+ {
+ $this->deliveryTime = $deliveryTime;
+ }
+ public function getDeliveryTime()
+ {
+ return $this->deliveryTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRateGroups($rateGroups)
+ {
+ $this->rateGroups = $rateGroups;
+ }
+ public function getRateGroups()
+ {
+ return $this->rateGroups;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingSettings.php
new file mode 100644
index 00000000..8e63dfa0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingSettings.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ShippingSettings extends Google_Collection
+{
+ protected $collection_key = 'services';
+ public $accountId;
+ protected $postalCodeGroupsType = 'Google_Service_ShoppingContent_PostalCodeGroup';
+ protected $postalCodeGroupsDataType = 'array';
+ protected $servicesType = 'Google_Service_ShoppingContent_Service';
+ protected $servicesDataType = 'array';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setPostalCodeGroups($postalCodeGroups)
+ {
+ $this->postalCodeGroups = $postalCodeGroups;
+ }
+ public function getPostalCodeGroups()
+ {
+ return $this->postalCodeGroups;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequest.php
new file mode 100644
index 00000000..e77b003b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ShippingsettingsCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_ShippingsettingsCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequestEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequestEntry.php
new file mode 100644
index 00000000..b27d568a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchRequestEntry.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ShippingsettingsCustomBatchRequestEntry extends Google_Model
+{
+ public $accountId;
+ public $batchId;
+ public $merchantId;
+ public $method;
+ protected $shippingSettingsType = 'Google_Service_ShoppingContent_ShippingSettings';
+ protected $shippingSettingsDataType = '';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setShippingSettings(Google_Service_ShoppingContent_ShippingSettings $shippingSettings)
+ {
+ $this->shippingSettings = $shippingSettings;
+ }
+ public function getShippingSettings()
+ {
+ return $this->shippingSettings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponse.php
new file mode 100644
index 00000000..97ef6d22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ShippingsettingsCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $entriesType = 'Google_Service_ShoppingContent_ShippingsettingsCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponseEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponseEntry.php
new file mode 100644
index 00000000..b9690e96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsCustomBatchResponseEntry.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ShippingsettingsCustomBatchResponseEntry extends Google_Model
+{
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+ protected $shippingSettingsType = 'Google_Service_ShoppingContent_ShippingSettings';
+ protected $shippingSettingsDataType = '';
+
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setShippingSettings(Google_Service_ShoppingContent_ShippingSettings $shippingSettings)
+ {
+ $this->shippingSettings = $shippingSettings;
+ }
+ public function getShippingSettings()
+ {
+ return $this->shippingSettings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsGetSupportedCarriersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsGetSupportedCarriersResponse.php
new file mode 100644
index 00000000..470c0e5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsGetSupportedCarriersResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ShippingsettingsGetSupportedCarriersResponse extends Google_Collection
+{
+ protected $collection_key = 'carriers';
+ protected $carriersType = 'Google_Service_ShoppingContent_CarriersCarrier';
+ protected $carriersDataType = 'array';
+ public $kind;
+
+ public function setCarriers($carriers)
+ {
+ $this->carriers = $carriers;
+ }
+ public function getCarriers()
+ {
+ return $this->carriers;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsListResponse.php
new file mode 100644
index 00000000..0f09f051
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/ShippingsettingsListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_ShippingsettingsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_ShippingSettings';
+ protected $resourcesDataType = 'array';
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Table.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Table.php
new file mode 100644
index 00000000..ef4a1114
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Table.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Table extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $columnHeadersType = 'Google_Service_ShoppingContent_Headers';
+ protected $columnHeadersDataType = '';
+ public $name;
+ protected $rowHeadersType = 'Google_Service_ShoppingContent_Headers';
+ protected $rowHeadersDataType = '';
+ protected $rowsType = 'Google_Service_ShoppingContent_Row';
+ protected $rowsDataType = 'array';
+
+ public function setColumnHeaders(Google_Service_ShoppingContent_Headers $columnHeaders)
+ {
+ $this->columnHeaders = $columnHeaders;
+ }
+ public function getColumnHeaders()
+ {
+ return $this->columnHeaders;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRowHeaders(Google_Service_ShoppingContent_Headers $rowHeaders)
+ {
+ $this->rowHeaders = $rowHeaders;
+ }
+ public function getRowHeaders()
+ {
+ return $this->rowHeaders;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php
new file mode 100644
index 00000000..cb4ff108
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrder.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_TestOrder extends Google_Collection
+{
+ protected $collection_key = 'promotions';
+ protected $customerType = 'Google_Service_ShoppingContent_TestOrderCustomer';
+ protected $customerDataType = '';
+ public $kind;
+ protected $lineItemsType = 'Google_Service_ShoppingContent_TestOrderLineItem';
+ protected $lineItemsDataType = 'array';
+ protected $paymentMethodType = 'Google_Service_ShoppingContent_TestOrderPaymentMethod';
+ protected $paymentMethodDataType = '';
+ public $predefinedDeliveryAddress;
+ protected $promotionsType = 'Google_Service_ShoppingContent_OrderPromotion';
+ protected $promotionsDataType = 'array';
+ protected $shippingCostType = 'Google_Service_ShoppingContent_Price';
+ protected $shippingCostDataType = '';
+ protected $shippingCostTaxType = 'Google_Service_ShoppingContent_Price';
+ protected $shippingCostTaxDataType = '';
+ public $shippingOption;
+
+ public function setCustomer(Google_Service_ShoppingContent_TestOrderCustomer $customer)
+ {
+ $this->customer = $customer;
+ }
+ public function getCustomer()
+ {
+ return $this->customer;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLineItems($lineItems)
+ {
+ $this->lineItems = $lineItems;
+ }
+ public function getLineItems()
+ {
+ return $this->lineItems;
+ }
+ public function setPaymentMethod(Google_Service_ShoppingContent_TestOrderPaymentMethod $paymentMethod)
+ {
+ $this->paymentMethod = $paymentMethod;
+ }
+ public function getPaymentMethod()
+ {
+ return $this->paymentMethod;
+ }
+ public function setPredefinedDeliveryAddress($predefinedDeliveryAddress)
+ {
+ $this->predefinedDeliveryAddress = $predefinedDeliveryAddress;
+ }
+ public function getPredefinedDeliveryAddress()
+ {
+ return $this->predefinedDeliveryAddress;
+ }
+ public function setPromotions($promotions)
+ {
+ $this->promotions = $promotions;
+ }
+ public function getPromotions()
+ {
+ return $this->promotions;
+ }
+ public function setShippingCost(Google_Service_ShoppingContent_Price $shippingCost)
+ {
+ $this->shippingCost = $shippingCost;
+ }
+ public function getShippingCost()
+ {
+ return $this->shippingCost;
+ }
+ public function setShippingCostTax(Google_Service_ShoppingContent_Price $shippingCostTax)
+ {
+ $this->shippingCostTax = $shippingCostTax;
+ }
+ public function getShippingCostTax()
+ {
+ return $this->shippingCostTax;
+ }
+ public function setShippingOption($shippingOption)
+ {
+ $this->shippingOption = $shippingOption;
+ }
+ public function getShippingOption()
+ {
+ return $this->shippingOption;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php
new file mode 100644
index 00000000..23a1bae8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderCustomer.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_TestOrderCustomer extends Google_Model
+{
+ public $email;
+ public $explicitMarketingPreference;
+ public $fullName;
+
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setExplicitMarketingPreference($explicitMarketingPreference)
+ {
+ $this->explicitMarketingPreference = $explicitMarketingPreference;
+ }
+ public function getExplicitMarketingPreference()
+ {
+ return $this->explicitMarketingPreference;
+ }
+ public function setFullName($fullName)
+ {
+ $this->fullName = $fullName;
+ }
+ public function getFullName()
+ {
+ return $this->fullName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php
new file mode 100644
index 00000000..cacf4f6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItem.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_TestOrderLineItem extends Google_Model
+{
+ protected $productType = 'Google_Service_ShoppingContent_TestOrderLineItemProduct';
+ protected $productDataType = '';
+ public $quantityOrdered;
+ protected $returnInfoType = 'Google_Service_ShoppingContent_OrderLineItemReturnInfo';
+ protected $returnInfoDataType = '';
+ protected $shippingDetailsType = 'Google_Service_ShoppingContent_OrderLineItemShippingDetails';
+ protected $shippingDetailsDataType = '';
+ protected $unitTaxType = 'Google_Service_ShoppingContent_Price';
+ protected $unitTaxDataType = '';
+
+ public function setProduct(Google_Service_ShoppingContent_TestOrderLineItemProduct $product)
+ {
+ $this->product = $product;
+ }
+ public function getProduct()
+ {
+ return $this->product;
+ }
+ public function setQuantityOrdered($quantityOrdered)
+ {
+ $this->quantityOrdered = $quantityOrdered;
+ }
+ public function getQuantityOrdered()
+ {
+ return $this->quantityOrdered;
+ }
+ public function setReturnInfo(Google_Service_ShoppingContent_OrderLineItemReturnInfo $returnInfo)
+ {
+ $this->returnInfo = $returnInfo;
+ }
+ public function getReturnInfo()
+ {
+ return $this->returnInfo;
+ }
+ public function setShippingDetails(Google_Service_ShoppingContent_OrderLineItemShippingDetails $shippingDetails)
+ {
+ $this->shippingDetails = $shippingDetails;
+ }
+ public function getShippingDetails()
+ {
+ return $this->shippingDetails;
+ }
+ public function setUnitTax(Google_Service_ShoppingContent_Price $unitTax)
+ {
+ $this->unitTax = $unitTax;
+ }
+ public function getUnitTax()
+ {
+ return $this->unitTax;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItemProduct.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItemProduct.php
new file mode 100644
index 00000000..ed3d0cbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderLineItemProduct.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_TestOrderLineItemProduct extends Google_Collection
+{
+ protected $collection_key = 'variantAttributes';
+ public $brand;
+ public $channel;
+ public $condition;
+ public $contentLanguage;
+ public $gtin;
+ public $imageLink;
+ public $itemGroupId;
+ public $mpn;
+ public $offerId;
+ protected $priceType = 'Google_Service_ShoppingContent_Price';
+ protected $priceDataType = '';
+ public $targetCountry;
+ public $title;
+ protected $variantAttributesType = 'Google_Service_ShoppingContent_OrderLineItemProductVariantAttribute';
+ protected $variantAttributesDataType = 'array';
+
+ public function setBrand($brand)
+ {
+ $this->brand = $brand;
+ }
+ public function getBrand()
+ {
+ return $this->brand;
+ }
+ public function setChannel($channel)
+ {
+ $this->channel = $channel;
+ }
+ public function getChannel()
+ {
+ return $this->channel;
+ }
+ public function setCondition($condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setContentLanguage($contentLanguage)
+ {
+ $this->contentLanguage = $contentLanguage;
+ }
+ public function getContentLanguage()
+ {
+ return $this->contentLanguage;
+ }
+ public function setGtin($gtin)
+ {
+ $this->gtin = $gtin;
+ }
+ public function getGtin()
+ {
+ return $this->gtin;
+ }
+ public function setImageLink($imageLink)
+ {
+ $this->imageLink = $imageLink;
+ }
+ public function getImageLink()
+ {
+ return $this->imageLink;
+ }
+ public function setItemGroupId($itemGroupId)
+ {
+ $this->itemGroupId = $itemGroupId;
+ }
+ public function getItemGroupId()
+ {
+ return $this->itemGroupId;
+ }
+ public function setMpn($mpn)
+ {
+ $this->mpn = $mpn;
+ }
+ public function getMpn()
+ {
+ return $this->mpn;
+ }
+ public function setOfferId($offerId)
+ {
+ $this->offerId = $offerId;
+ }
+ public function getOfferId()
+ {
+ return $this->offerId;
+ }
+ public function setPrice(Google_Service_ShoppingContent_Price $price)
+ {
+ $this->price = $price;
+ }
+ public function getPrice()
+ {
+ return $this->price;
+ }
+ public function setTargetCountry($targetCountry)
+ {
+ $this->targetCountry = $targetCountry;
+ }
+ public function getTargetCountry()
+ {
+ return $this->targetCountry;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setVariantAttributes($variantAttributes)
+ {
+ $this->variantAttributes = $variantAttributes;
+ }
+ public function getVariantAttributes()
+ {
+ return $this->variantAttributes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderPaymentMethod.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderPaymentMethod.php
new file mode 100644
index 00000000..e63041f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/TestOrderPaymentMethod.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_TestOrderPaymentMethod extends Google_Model
+{
+ public $expirationMonth;
+ public $expirationYear;
+ public $lastFourDigits;
+ public $predefinedBillingAddress;
+ public $type;
+
+ public function setExpirationMonth($expirationMonth)
+ {
+ $this->expirationMonth = $expirationMonth;
+ }
+ public function getExpirationMonth()
+ {
+ return $this->expirationMonth;
+ }
+ public function setExpirationYear($expirationYear)
+ {
+ $this->expirationYear = $expirationYear;
+ }
+ public function getExpirationYear()
+ {
+ return $this->expirationYear;
+ }
+ public function setLastFourDigits($lastFourDigits)
+ {
+ $this->lastFourDigits = $lastFourDigits;
+ }
+ public function getLastFourDigits()
+ {
+ return $this->lastFourDigits;
+ }
+ public function setPredefinedBillingAddress($predefinedBillingAddress)
+ {
+ $this->predefinedBillingAddress = $predefinedBillingAddress;
+ }
+ public function getPredefinedBillingAddress()
+ {
+ return $this->predefinedBillingAddress;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Value.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Value.php
new file mode 100644
index 00000000..a3f550d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Value.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Value extends Google_Model
+{
+ public $carrierRateName;
+ protected $flatRateType = 'Google_Service_ShoppingContent_Price';
+ protected $flatRateDataType = '';
+ public $noShipping;
+ public $pricePercentage;
+ public $subtableName;
+
+ public function setCarrierRateName($carrierRateName)
+ {
+ $this->carrierRateName = $carrierRateName;
+ }
+ public function getCarrierRateName()
+ {
+ return $this->carrierRateName;
+ }
+ public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate)
+ {
+ $this->flatRate = $flatRate;
+ }
+ public function getFlatRate()
+ {
+ return $this->flatRate;
+ }
+ public function setNoShipping($noShipping)
+ {
+ $this->noShipping = $noShipping;
+ }
+ public function getNoShipping()
+ {
+ return $this->noShipping;
+ }
+ public function setPricePercentage($pricePercentage)
+ {
+ $this->pricePercentage = $pricePercentage;
+ }
+ public function getPricePercentage()
+ {
+ return $this->pricePercentage;
+ }
+ public function setSubtableName($subtableName)
+ {
+ $this->subtableName = $subtableName;
+ }
+ public function getSubtableName()
+ {
+ return $this->subtableName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Weight.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Weight.php
new file mode 100644
index 00000000..16ef3e6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ShoppingContent/Weight.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ShoppingContent_Weight extends Google_Model
+{
+ public $unit;
+ public $value;
+
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification.php
new file mode 100644
index 00000000..f9c0fac0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for SiteVerification (v1).
+ *
+ * <p>
+ * Verifies ownership of websites or domains with Google.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/site-verification/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_SiteVerification extends Google_Service
+{
+ /** Manage the list of sites and domains you control. */
+ const SITEVERIFICATION =
+ "https://www.googleapis.com/auth/siteverification";
+ /** Manage your new site verifications with Google. */
+ const SITEVERIFICATION_VERIFY_ONLY =
+ "https://www.googleapis.com/auth/siteverification.verify_only";
+
+ public $webResource;
+
+ /**
+ * Constructs the internal representation of the SiteVerification service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'siteVerification/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'siteVerification';
+
+ $this->webResource = new Google_Service_SiteVerification_Resource_WebResource(
+ $this,
+ $this->serviceName,
+ 'webResource',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'webResource/{id}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'webResource/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getToken' => array(
+ 'path' => 'token',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'insert' => array(
+ 'path' => 'webResource',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'verificationMethod' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'webResource',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'patch' => array(
+ 'path' => 'webResource/{id}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'webResource/{id}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/Resource/WebResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/Resource/WebResource.php
new file mode 100644
index 00000000..f931e68f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/Resource/WebResource.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "webResource" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $siteVerificationService = new Google_Service_SiteVerification(...);
+ * $webResource = $siteVerificationService->webResource;
+ * </code>
+ */
+class Google_Service_SiteVerification_Resource_WebResource extends Google_Service_Resource
+{
+ /**
+ * Relinquish ownership of a website or domain. (webResource.delete)
+ *
+ * @param string $id The id of a verified site or domain.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Get the most current data for a website or domain. (webResource.get)
+ *
+ * @param string $id The id of a verified site or domain.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
+ */
+ public function get($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
+ }
+ /**
+ * Get a verification token for placing on a website or domain.
+ * (webResource.getToken)
+ *
+ * @param Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse
+ */
+ public function getToken(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getToken', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse");
+ }
+ /**
+ * Attempt verification of a website or domain. (webResource.insert)
+ *
+ * @param string $verificationMethod The method to use for verifying a site or
+ * domain.
+ * @param Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
+ */
+ public function insert($verificationMethod, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
+ {
+ $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
+ }
+ /**
+ * Get the list of your verified websites and domains.
+ * (webResource.listWebResource)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse
+ */
+ public function listWebResource($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse");
+ }
+ /**
+ * Modify the list of owners for your website or domain. This method supports
+ * patch semantics. (webResource.patch)
+ *
+ * @param string $id The id of a verified site or domain.
+ * @param Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
+ */
+ public function patch($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
+ }
+ /**
+ * Modify the list of owners for your website or domain. (webResource.update)
+ *
+ * @param string $id The id of a verified site or domain.
+ * @param Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
+ */
+ public function update($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
+ {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequest.php
new file mode 100644
index 00000000..3c3f8f1e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model
+{
+ protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite';
+ protected $siteDataType = '';
+ public $verificationMethod;
+
+ public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite $site)
+ {
+ $this->site = $site;
+ }
+ public function getSite()
+ {
+ return $this->site;
+ }
+ public function setVerificationMethod($verificationMethod)
+ {
+ $this->verificationMethod = $verificationMethod;
+ }
+ public function getVerificationMethod()
+ {
+ return $this->verificationMethod;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequestSite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequestSite.php
new file mode 100644
index 00000000..2f6a965c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenRequestSite.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model
+{
+ public $identifier;
+ public $type;
+
+ public function setIdentifier($identifier)
+ {
+ $this->identifier = $identifier;
+ }
+ public function getIdentifier()
+ {
+ return $this->identifier;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenResponse.php
new file mode 100644
index 00000000..10f7f616
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceGettokenResponse.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model
+{
+ public $method;
+ public $token;
+
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceListResponse.php
new file mode 100644
index 00000000..437c6dcb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource';
+ protected $itemsDataType = 'array';
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResource.php
new file mode 100644
index 00000000..431bc171
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResource.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection
+{
+ protected $collection_key = 'owners';
+ public $id;
+ public $owners;
+ protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite';
+ protected $siteDataType = '';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setOwners($owners)
+ {
+ $this->owners = $owners;
+ }
+ public function getOwners()
+ {
+ return $this->owners;
+ }
+ public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite $site)
+ {
+ $this->site = $site;
+ }
+ public function getSite()
+ {
+ return $this->site;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResourceSite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResourceSite.php
new file mode 100644
index 00000000..12cd103f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/SiteVerification/SiteVerificationWebResourceResourceSite.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model
+{
+ public $identifier;
+ public $type;
+
+ public function setIdentifier($identifier)
+ {
+ $this->identifier = $identifier;
+ }
+ public function getIdentifier()
+ {
+ return $this->identifier;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides.php
new file mode 100644
index 00000000..4b3b3eb7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides.php
@@ -0,0 +1,128 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Slides (v1).
+ *
+ * <p>
+ * An API for creating and editing Google Slides presentations.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/slides/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Slides extends Google_Service
+{
+ /** View and manage the files in your Google Drive. */
+ const DRIVE =
+ "https://www.googleapis.com/auth/drive";
+ /** View the files in your Google Drive. */
+ const DRIVE_READONLY =
+ "https://www.googleapis.com/auth/drive.readonly";
+ /** View and manage your Google Slides presentations. */
+ const PRESENTATIONS =
+ "https://www.googleapis.com/auth/presentations";
+ /** View your Google Slides presentations. */
+ const PRESENTATIONS_READONLY =
+ "https://www.googleapis.com/auth/presentations.readonly";
+ /** View and manage your spreadsheets in Google Drive. */
+ const SPREADSHEETS =
+ "https://www.googleapis.com/auth/spreadsheets";
+ /** View your Google Spreadsheets. */
+ const SPREADSHEETS_READONLY =
+ "https://www.googleapis.com/auth/spreadsheets.readonly";
+
+ public $presentations;
+ public $presentations_pages;
+
+ /**
+ * Constructs the internal representation of the Slides service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://slides.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'slides';
+
+ $this->presentations = new Google_Service_Slides_Resource_Presentations(
+ $this,
+ $this->serviceName,
+ 'presentations',
+ array(
+ 'methods' => array(
+ 'batchUpdate' => array(
+ 'path' => 'v1/presentations/{presentationId}:batchUpdate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'presentationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1/presentations',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => 'v1/presentations/{+presentationId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'presentationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->presentations_pages = new Google_Service_Slides_Resource_PresentationsPages(
+ $this,
+ $this->serviceName,
+ 'pages',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/presentations/{presentationId}/pages/{pageObjectId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'presentationId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageObjectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AffineTransform.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AffineTransform.php
new file mode 100644
index 00000000..519770d4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AffineTransform.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_AffineTransform extends Google_Model
+{
+ public $scaleX;
+ public $scaleY;
+ public $shearX;
+ public $shearY;
+ public $translateX;
+ public $translateY;
+ public $unit;
+
+ public function setScaleX($scaleX)
+ {
+ $this->scaleX = $scaleX;
+ }
+ public function getScaleX()
+ {
+ return $this->scaleX;
+ }
+ public function setScaleY($scaleY)
+ {
+ $this->scaleY = $scaleY;
+ }
+ public function getScaleY()
+ {
+ return $this->scaleY;
+ }
+ public function setShearX($shearX)
+ {
+ $this->shearX = $shearX;
+ }
+ public function getShearX()
+ {
+ return $this->shearX;
+ }
+ public function setShearY($shearY)
+ {
+ $this->shearY = $shearY;
+ }
+ public function getShearY()
+ {
+ return $this->shearY;
+ }
+ public function setTranslateX($translateX)
+ {
+ $this->translateX = $translateX;
+ }
+ public function getTranslateX()
+ {
+ return $this->translateX;
+ }
+ public function setTranslateY($translateY)
+ {
+ $this->translateY = $translateY;
+ }
+ public function getTranslateY()
+ {
+ return $this->translateY;
+ }
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AutoText.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AutoText.php
new file mode 100644
index 00000000..c27ca0d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/AutoText.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_AutoText extends Google_Model
+{
+ public $content;
+ protected $styleType = 'Google_Service_Slides_TextStyle';
+ protected $styleDataType = '';
+ public $type;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setStyle(Google_Service_Slides_TextStyle $style)
+ {
+ $this->style = $style;
+ }
+ public function getStyle()
+ {
+ return $this->style;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationRequest.php
new file mode 100644
index 00000000..cc885add
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationRequest.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_BatchUpdatePresentationRequest extends Google_Collection
+{
+ protected $collection_key = 'requests';
+ protected $requestsType = 'Google_Service_Slides_Request';
+ protected $requestsDataType = 'array';
+ protected $writeControlType = 'Google_Service_Slides_WriteControl';
+ protected $writeControlDataType = '';
+
+ public function setRequests($requests)
+ {
+ $this->requests = $requests;
+ }
+ public function getRequests()
+ {
+ return $this->requests;
+ }
+ public function setWriteControl(Google_Service_Slides_WriteControl $writeControl)
+ {
+ $this->writeControl = $writeControl;
+ }
+ public function getWriteControl()
+ {
+ return $this->writeControl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationResponse.php
new file mode 100644
index 00000000..08185adf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/BatchUpdatePresentationResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_BatchUpdatePresentationResponse extends Google_Collection
+{
+ protected $collection_key = 'replies';
+ public $presentationId;
+ protected $repliesType = 'Google_Service_Slides_Response';
+ protected $repliesDataType = 'array';
+
+ public function setPresentationId($presentationId)
+ {
+ $this->presentationId = $presentationId;
+ }
+ public function getPresentationId()
+ {
+ return $this->presentationId;
+ }
+ public function setReplies($replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Bullet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Bullet.php
new file mode 100644
index 00000000..b7464996
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Bullet.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Bullet extends Google_Model
+{
+ protected $bulletStyleType = 'Google_Service_Slides_TextStyle';
+ protected $bulletStyleDataType = '';
+ public $glyph;
+ public $listId;
+ public $nestingLevel;
+
+ public function setBulletStyle(Google_Service_Slides_TextStyle $bulletStyle)
+ {
+ $this->bulletStyle = $bulletStyle;
+ }
+ public function getBulletStyle()
+ {
+ return $this->bulletStyle;
+ }
+ public function setGlyph($glyph)
+ {
+ $this->glyph = $glyph;
+ }
+ public function getGlyph()
+ {
+ return $this->glyph;
+ }
+ public function setListId($listId)
+ {
+ $this->listId = $listId;
+ }
+ public function getListId()
+ {
+ return $this->listId;
+ }
+ public function setNestingLevel($nestingLevel)
+ {
+ $this->nestingLevel = $nestingLevel;
+ }
+ public function getNestingLevel()
+ {
+ return $this->nestingLevel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorScheme.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorScheme.php
new file mode 100644
index 00000000..85e2c00f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorScheme.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ColorScheme extends Google_Collection
+{
+ protected $collection_key = 'colors';
+ protected $colorsType = 'Google_Service_Slides_ThemeColorPair';
+ protected $colorsDataType = 'array';
+
+ public function setColors($colors)
+ {
+ $this->colors = $colors;
+ }
+ public function getColors()
+ {
+ return $this->colors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorStop.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorStop.php
new file mode 100644
index 00000000..fe032c79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ColorStop.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ColorStop extends Google_Model
+{
+ public $alpha;
+ protected $colorType = 'Google_Service_Slides_OpaqueColor';
+ protected $colorDataType = '';
+ public $position;
+
+ public function setAlpha($alpha)
+ {
+ $this->alpha = $alpha;
+ }
+ public function getAlpha()
+ {
+ return $this->alpha;
+ }
+ public function setColor(Google_Service_Slides_OpaqueColor $color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setPosition($position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageRequest.php
new file mode 100644
index 00000000..d582ce7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateImageRequest extends Google_Model
+{
+ protected $elementPropertiesType = 'Google_Service_Slides_PageElementProperties';
+ protected $elementPropertiesDataType = '';
+ public $objectId;
+ public $url;
+
+ public function setElementProperties(Google_Service_Slides_PageElementProperties $elementProperties)
+ {
+ $this->elementProperties = $elementProperties;
+ }
+ public function getElementProperties()
+ {
+ return $this->elementProperties;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageResponse.php
new file mode 100644
index 00000000..90db1eb7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateImageResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateImageResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php
new file mode 100644
index 00000000..67a88d06
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateLineRequest extends Google_Model
+{
+ protected $elementPropertiesType = 'Google_Service_Slides_PageElementProperties';
+ protected $elementPropertiesDataType = '';
+ public $lineCategory;
+ public $objectId;
+
+ public function setElementProperties(Google_Service_Slides_PageElementProperties $elementProperties)
+ {
+ $this->elementProperties = $elementProperties;
+ }
+ public function getElementProperties()
+ {
+ return $this->elementProperties;
+ }
+ public function setLineCategory($lineCategory)
+ {
+ $this->lineCategory = $lineCategory;
+ }
+ public function getLineCategory()
+ {
+ return $this->lineCategory;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineResponse.php
new file mode 100644
index 00000000..8083b38a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateLineResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateLineResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateParagraphBulletsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateParagraphBulletsRequest.php
new file mode 100644
index 00000000..cc6654cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateParagraphBulletsRequest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateParagraphBulletsRequest extends Google_Model
+{
+ public $bulletPreset;
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $objectId;
+ protected $textRangeType = 'Google_Service_Slides_Range';
+ protected $textRangeDataType = '';
+
+ public function setBulletPreset($bulletPreset)
+ {
+ $this->bulletPreset = $bulletPreset;
+ }
+ public function getBulletPreset()
+ {
+ return $this->bulletPreset;
+ }
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setTextRange(Google_Service_Slides_Range $textRange)
+ {
+ $this->textRange = $textRange;
+ }
+ public function getTextRange()
+ {
+ return $this->textRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeRequest.php
new file mode 100644
index 00000000..099a48b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateShapeRequest extends Google_Model
+{
+ protected $elementPropertiesType = 'Google_Service_Slides_PageElementProperties';
+ protected $elementPropertiesDataType = '';
+ public $objectId;
+ public $shapeType;
+
+ public function setElementProperties(Google_Service_Slides_PageElementProperties $elementProperties)
+ {
+ $this->elementProperties = $elementProperties;
+ }
+ public function getElementProperties()
+ {
+ return $this->elementProperties;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setShapeType($shapeType)
+ {
+ $this->shapeType = $shapeType;
+ }
+ public function getShapeType()
+ {
+ return $this->shapeType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeResponse.php
new file mode 100644
index 00000000..7f4d17d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateShapeResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateShapeResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartRequest.php
new file mode 100644
index 00000000..1bdf5b74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartRequest.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateSheetsChartRequest extends Google_Model
+{
+ public $chartId;
+ protected $elementPropertiesType = 'Google_Service_Slides_PageElementProperties';
+ protected $elementPropertiesDataType = '';
+ public $linkingMode;
+ public $objectId;
+ public $spreadsheetId;
+
+ public function setChartId($chartId)
+ {
+ $this->chartId = $chartId;
+ }
+ public function getChartId()
+ {
+ return $this->chartId;
+ }
+ public function setElementProperties(Google_Service_Slides_PageElementProperties $elementProperties)
+ {
+ $this->elementProperties = $elementProperties;
+ }
+ public function getElementProperties()
+ {
+ return $this->elementProperties;
+ }
+ public function setLinkingMode($linkingMode)
+ {
+ $this->linkingMode = $linkingMode;
+ }
+ public function getLinkingMode()
+ {
+ return $this->linkingMode;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartResponse.php
new file mode 100644
index 00000000..5397c6cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSheetsChartResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateSheetsChartResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideRequest.php
new file mode 100644
index 00000000..a494cdc5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideRequest.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateSlideRequest extends Google_Collection
+{
+ protected $collection_key = 'placeholderIdMappings';
+ public $insertionIndex;
+ public $objectId;
+ protected $placeholderIdMappingsType = 'Google_Service_Slides_LayoutPlaceholderIdMapping';
+ protected $placeholderIdMappingsDataType = 'array';
+ protected $slideLayoutReferenceType = 'Google_Service_Slides_LayoutReference';
+ protected $slideLayoutReferenceDataType = '';
+
+ public function setInsertionIndex($insertionIndex)
+ {
+ $this->insertionIndex = $insertionIndex;
+ }
+ public function getInsertionIndex()
+ {
+ return $this->insertionIndex;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setPlaceholderIdMappings($placeholderIdMappings)
+ {
+ $this->placeholderIdMappings = $placeholderIdMappings;
+ }
+ public function getPlaceholderIdMappings()
+ {
+ return $this->placeholderIdMappings;
+ }
+ public function setSlideLayoutReference(Google_Service_Slides_LayoutReference $slideLayoutReference)
+ {
+ $this->slideLayoutReference = $slideLayoutReference;
+ }
+ public function getSlideLayoutReference()
+ {
+ return $this->slideLayoutReference;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideResponse.php
new file mode 100644
index 00000000..b307975b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateSlideResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateSlideResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableRequest.php
new file mode 100644
index 00000000..4136352e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateTableRequest extends Google_Model
+{
+ public $columns;
+ protected $elementPropertiesType = 'Google_Service_Slides_PageElementProperties';
+ protected $elementPropertiesDataType = '';
+ public $objectId;
+ public $rows;
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setElementProperties(Google_Service_Slides_PageElementProperties $elementProperties)
+ {
+ $this->elementProperties = $elementProperties;
+ }
+ public function getElementProperties()
+ {
+ return $this->elementProperties;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableResponse.php
new file mode 100644
index 00000000..b5d4f977
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateTableResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateTableResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoRequest.php
new file mode 100644
index 00000000..9a417d9e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateVideoRequest extends Google_Model
+{
+ protected $elementPropertiesType = 'Google_Service_Slides_PageElementProperties';
+ protected $elementPropertiesDataType = '';
+ public $id;
+ public $objectId;
+ public $source;
+
+ public function setElementProperties(Google_Service_Slides_PageElementProperties $elementProperties)
+ {
+ $this->elementProperties = $elementProperties;
+ }
+ public function getElementProperties()
+ {
+ return $this->elementProperties;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoResponse.php
new file mode 100644
index 00000000..d8b3ada6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CreateVideoResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CreateVideoResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CropProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CropProperties.php
new file mode 100644
index 00000000..4a403a2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/CropProperties.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_CropProperties extends Google_Model
+{
+ public $angle;
+ public $bottomOffset;
+ public $leftOffset;
+ public $rightOffset;
+ public $topOffset;
+
+ public function setAngle($angle)
+ {
+ $this->angle = $angle;
+ }
+ public function getAngle()
+ {
+ return $this->angle;
+ }
+ public function setBottomOffset($bottomOffset)
+ {
+ $this->bottomOffset = $bottomOffset;
+ }
+ public function getBottomOffset()
+ {
+ return $this->bottomOffset;
+ }
+ public function setLeftOffset($leftOffset)
+ {
+ $this->leftOffset = $leftOffset;
+ }
+ public function getLeftOffset()
+ {
+ return $this->leftOffset;
+ }
+ public function setRightOffset($rightOffset)
+ {
+ $this->rightOffset = $rightOffset;
+ }
+ public function getRightOffset()
+ {
+ return $this->rightOffset;
+ }
+ public function setTopOffset($topOffset)
+ {
+ $this->topOffset = $topOffset;
+ }
+ public function getTopOffset()
+ {
+ return $this->topOffset;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteObjectRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteObjectRequest.php
new file mode 100644
index 00000000..2a738e5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteObjectRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_DeleteObjectRequest extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteParagraphBulletsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteParagraphBulletsRequest.php
new file mode 100644
index 00000000..66e8adbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteParagraphBulletsRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_DeleteParagraphBulletsRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $objectId;
+ protected $textRangeType = 'Google_Service_Slides_Range';
+ protected $textRangeDataType = '';
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setTextRange(Google_Service_Slides_Range $textRange)
+ {
+ $this->textRange = $textRange;
+ }
+ public function getTextRange()
+ {
+ return $this->textRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableColumnRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableColumnRequest.php
new file mode 100644
index 00000000..d9486046
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableColumnRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_DeleteTableColumnRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $tableObjectId;
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setTableObjectId($tableObjectId)
+ {
+ $this->tableObjectId = $tableObjectId;
+ }
+ public function getTableObjectId()
+ {
+ return $this->tableObjectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableRowRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableRowRequest.php
new file mode 100644
index 00000000..da99eee1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTableRowRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_DeleteTableRowRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $tableObjectId;
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setTableObjectId($tableObjectId)
+ {
+ $this->tableObjectId = $tableObjectId;
+ }
+ public function getTableObjectId()
+ {
+ return $this->tableObjectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTextRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTextRequest.php
new file mode 100644
index 00000000..3c3cce85
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DeleteTextRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_DeleteTextRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $objectId;
+ protected $textRangeType = 'Google_Service_Slides_Range';
+ protected $textRangeDataType = '';
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setTextRange(Google_Service_Slides_Range $textRange)
+ {
+ $this->textRange = $textRange;
+ }
+ public function getTextRange()
+ {
+ return $this->textRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Dimension.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Dimension.php
new file mode 100644
index 00000000..255e1c33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Dimension.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Dimension extends Google_Model
+{
+ public $magnitude;
+ public $unit;
+
+ public function setMagnitude($magnitude)
+ {
+ $this->magnitude = $magnitude;
+ }
+ public function getMagnitude()
+ {
+ return $this->magnitude;
+ }
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectRequest.php
new file mode 100644
index 00000000..0b40d75a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectRequest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_DuplicateObjectRequest extends Google_Model
+{
+ public $objectId;
+ public $objectIds;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setObjectIds($objectIds)
+ {
+ $this->objectIds = $objectIds;
+ }
+ public function getObjectIds()
+ {
+ return $this->objectIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectResponse.php
new file mode 100644
index 00000000..8088d345
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/DuplicateObjectResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_DuplicateObjectResponse extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Group.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Group.php
new file mode 100644
index 00000000..3e304f09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Group.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Group extends Google_Collection
+{
+ protected $collection_key = 'children';
+ protected $childrenType = 'Google_Service_Slides_PageElement';
+ protected $childrenDataType = 'array';
+
+ public function setChildren($children)
+ {
+ $this->children = $children;
+ }
+ public function getChildren()
+ {
+ return $this->children;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Image.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Image.php
new file mode 100644
index 00000000..a6bef02e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Image.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Image extends Google_Model
+{
+ public $contentUrl;
+ protected $imagePropertiesType = 'Google_Service_Slides_ImageProperties';
+ protected $imagePropertiesDataType = '';
+
+ public function setContentUrl($contentUrl)
+ {
+ $this->contentUrl = $contentUrl;
+ }
+ public function getContentUrl()
+ {
+ return $this->contentUrl;
+ }
+ public function setImageProperties(Google_Service_Slides_ImageProperties $imageProperties)
+ {
+ $this->imageProperties = $imageProperties;
+ }
+ public function getImageProperties()
+ {
+ return $this->imageProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ImageProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ImageProperties.php
new file mode 100644
index 00000000..a4e58c21
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ImageProperties.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ImageProperties extends Google_Model
+{
+ public $brightness;
+ public $contrast;
+ protected $cropPropertiesType = 'Google_Service_Slides_CropProperties';
+ protected $cropPropertiesDataType = '';
+ protected $linkType = 'Google_Service_Slides_Link';
+ protected $linkDataType = '';
+ protected $outlineType = 'Google_Service_Slides_Outline';
+ protected $outlineDataType = '';
+ protected $recolorType = 'Google_Service_Slides_Recolor';
+ protected $recolorDataType = '';
+ protected $shadowType = 'Google_Service_Slides_Shadow';
+ protected $shadowDataType = '';
+ public $transparency;
+
+ public function setBrightness($brightness)
+ {
+ $this->brightness = $brightness;
+ }
+ public function getBrightness()
+ {
+ return $this->brightness;
+ }
+ public function setContrast($contrast)
+ {
+ $this->contrast = $contrast;
+ }
+ public function getContrast()
+ {
+ return $this->contrast;
+ }
+ public function setCropProperties(Google_Service_Slides_CropProperties $cropProperties)
+ {
+ $this->cropProperties = $cropProperties;
+ }
+ public function getCropProperties()
+ {
+ return $this->cropProperties;
+ }
+ public function setLink(Google_Service_Slides_Link $link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setOutline(Google_Service_Slides_Outline $outline)
+ {
+ $this->outline = $outline;
+ }
+ public function getOutline()
+ {
+ return $this->outline;
+ }
+ public function setRecolor(Google_Service_Slides_Recolor $recolor)
+ {
+ $this->recolor = $recolor;
+ }
+ public function getRecolor()
+ {
+ return $this->recolor;
+ }
+ public function setShadow(Google_Service_Slides_Shadow $shadow)
+ {
+ $this->shadow = $shadow;
+ }
+ public function getShadow()
+ {
+ return $this->shadow;
+ }
+ public function setTransparency($transparency)
+ {
+ $this->transparency = $transparency;
+ }
+ public function getTransparency()
+ {
+ return $this->transparency;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableColumnsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableColumnsRequest.php
new file mode 100644
index 00000000..d4203744
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableColumnsRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_InsertTableColumnsRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $insertRight;
+ public $number;
+ public $tableObjectId;
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setInsertRight($insertRight)
+ {
+ $this->insertRight = $insertRight;
+ }
+ public function getInsertRight()
+ {
+ return $this->insertRight;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setTableObjectId($tableObjectId)
+ {
+ $this->tableObjectId = $tableObjectId;
+ }
+ public function getTableObjectId()
+ {
+ return $this->tableObjectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableRowsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableRowsRequest.php
new file mode 100644
index 00000000..2926ed4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTableRowsRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_InsertTableRowsRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $insertBelow;
+ public $number;
+ public $tableObjectId;
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setInsertBelow($insertBelow)
+ {
+ $this->insertBelow = $insertBelow;
+ }
+ public function getInsertBelow()
+ {
+ return $this->insertBelow;
+ }
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+ public function setTableObjectId($tableObjectId)
+ {
+ $this->tableObjectId = $tableObjectId;
+ }
+ public function getTableObjectId()
+ {
+ return $this->tableObjectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTextRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTextRequest.php
new file mode 100644
index 00000000..c5722029
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/InsertTextRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_InsertTextRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $insertionIndex;
+ public $objectId;
+ public $text;
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setInsertionIndex($insertionIndex)
+ {
+ $this->insertionIndex = $insertionIndex;
+ }
+ public function getInsertionIndex()
+ {
+ return $this->insertionIndex;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutPlaceholderIdMapping.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutPlaceholderIdMapping.php
new file mode 100644
index 00000000..454f305b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutPlaceholderIdMapping.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_LayoutPlaceholderIdMapping extends Google_Model
+{
+ protected $layoutPlaceholderType = 'Google_Service_Slides_Placeholder';
+ protected $layoutPlaceholderDataType = '';
+ public $layoutPlaceholderObjectId;
+ public $objectId;
+
+ public function setLayoutPlaceholder(Google_Service_Slides_Placeholder $layoutPlaceholder)
+ {
+ $this->layoutPlaceholder = $layoutPlaceholder;
+ }
+ public function getLayoutPlaceholder()
+ {
+ return $this->layoutPlaceholder;
+ }
+ public function setLayoutPlaceholderObjectId($layoutPlaceholderObjectId)
+ {
+ $this->layoutPlaceholderObjectId = $layoutPlaceholderObjectId;
+ }
+ public function getLayoutPlaceholderObjectId()
+ {
+ return $this->layoutPlaceholderObjectId;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutProperties.php
new file mode 100644
index 00000000..92a9dcae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutProperties.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_LayoutProperties extends Google_Model
+{
+ public $displayName;
+ public $masterObjectId;
+ public $name;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setMasterObjectId($masterObjectId)
+ {
+ $this->masterObjectId = $masterObjectId;
+ }
+ public function getMasterObjectId()
+ {
+ return $this->masterObjectId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutReference.php
new file mode 100644
index 00000000..f616d7f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LayoutReference.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_LayoutReference extends Google_Model
+{
+ public $layoutId;
+ public $predefinedLayout;
+
+ public function setLayoutId($layoutId)
+ {
+ $this->layoutId = $layoutId;
+ }
+ public function getLayoutId()
+ {
+ return $this->layoutId;
+ }
+ public function setPredefinedLayout($predefinedLayout)
+ {
+ $this->predefinedLayout = $predefinedLayout;
+ }
+ public function getPredefinedLayout()
+ {
+ return $this->predefinedLayout;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Line.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Line.php
new file mode 100644
index 00000000..4f97653f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Line.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Line extends Google_Model
+{
+ protected $linePropertiesType = 'Google_Service_Slides_LineProperties';
+ protected $linePropertiesDataType = '';
+ public $lineType;
+
+ public function setLineProperties(Google_Service_Slides_LineProperties $lineProperties)
+ {
+ $this->lineProperties = $lineProperties;
+ }
+ public function getLineProperties()
+ {
+ return $this->lineProperties;
+ }
+ public function setLineType($lineType)
+ {
+ $this->lineType = $lineType;
+ }
+ public function getLineType()
+ {
+ return $this->lineType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineFill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineFill.php
new file mode 100644
index 00000000..5095de44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineFill.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_LineFill extends Google_Model
+{
+ protected $solidFillType = 'Google_Service_Slides_SolidFill';
+ protected $solidFillDataType = '';
+
+ public function setSolidFill(Google_Service_Slides_SolidFill $solidFill)
+ {
+ $this->solidFill = $solidFill;
+ }
+ public function getSolidFill()
+ {
+ return $this->solidFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineProperties.php
new file mode 100644
index 00000000..e9f2fdd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/LineProperties.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_LineProperties extends Google_Model
+{
+ public $dashStyle;
+ public $endArrow;
+ protected $lineFillType = 'Google_Service_Slides_LineFill';
+ protected $lineFillDataType = '';
+ protected $linkType = 'Google_Service_Slides_Link';
+ protected $linkDataType = '';
+ public $startArrow;
+ protected $weightType = 'Google_Service_Slides_Dimension';
+ protected $weightDataType = '';
+
+ public function setDashStyle($dashStyle)
+ {
+ $this->dashStyle = $dashStyle;
+ }
+ public function getDashStyle()
+ {
+ return $this->dashStyle;
+ }
+ public function setEndArrow($endArrow)
+ {
+ $this->endArrow = $endArrow;
+ }
+ public function getEndArrow()
+ {
+ return $this->endArrow;
+ }
+ public function setLineFill(Google_Service_Slides_LineFill $lineFill)
+ {
+ $this->lineFill = $lineFill;
+ }
+ public function getLineFill()
+ {
+ return $this->lineFill;
+ }
+ public function setLink(Google_Service_Slides_Link $link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setStartArrow($startArrow)
+ {
+ $this->startArrow = $startArrow;
+ }
+ public function getStartArrow()
+ {
+ return $this->startArrow;
+ }
+ public function setWeight(Google_Service_Slides_Dimension $weight)
+ {
+ $this->weight = $weight;
+ }
+ public function getWeight()
+ {
+ return $this->weight;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Link.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Link.php
new file mode 100644
index 00000000..18aab419
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Link.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Link extends Google_Model
+{
+ public $pageObjectId;
+ public $relativeLink;
+ public $slideIndex;
+ public $url;
+
+ public function setPageObjectId($pageObjectId)
+ {
+ $this->pageObjectId = $pageObjectId;
+ }
+ public function getPageObjectId()
+ {
+ return $this->pageObjectId;
+ }
+ public function setRelativeLink($relativeLink)
+ {
+ $this->relativeLink = $relativeLink;
+ }
+ public function getRelativeLink()
+ {
+ return $this->relativeLink;
+ }
+ public function setSlideIndex($slideIndex)
+ {
+ $this->slideIndex = $slideIndex;
+ }
+ public function getSlideIndex()
+ {
+ return $this->slideIndex;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NestingLevel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NestingLevel.php
new file mode 100644
index 00000000..01d97773
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NestingLevel.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_NestingLevel extends Google_Model
+{
+ protected $bulletStyleType = 'Google_Service_Slides_TextStyle';
+ protected $bulletStyleDataType = '';
+
+ public function setBulletStyle(Google_Service_Slides_TextStyle $bulletStyle)
+ {
+ $this->bulletStyle = $bulletStyle;
+ }
+ public function getBulletStyle()
+ {
+ return $this->bulletStyle;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NotesProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NotesProperties.php
new file mode 100644
index 00000000..60fa69df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/NotesProperties.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_NotesProperties extends Google_Model
+{
+ public $speakerNotesObjectId;
+
+ public function setSpeakerNotesObjectId($speakerNotesObjectId)
+ {
+ $this->speakerNotesObjectId = $speakerNotesObjectId;
+ }
+ public function getSpeakerNotesObjectId()
+ {
+ return $this->speakerNotesObjectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OpaqueColor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OpaqueColor.php
new file mode 100644
index 00000000..f24dda55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OpaqueColor.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_OpaqueColor extends Google_Model
+{
+ protected $rgbColorType = 'Google_Service_Slides_RgbColor';
+ protected $rgbColorDataType = '';
+ public $themeColor;
+
+ public function setRgbColor(Google_Service_Slides_RgbColor $rgbColor)
+ {
+ $this->rgbColor = $rgbColor;
+ }
+ public function getRgbColor()
+ {
+ return $this->rgbColor;
+ }
+ public function setThemeColor($themeColor)
+ {
+ $this->themeColor = $themeColor;
+ }
+ public function getThemeColor()
+ {
+ return $this->themeColor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OptionalColor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OptionalColor.php
new file mode 100644
index 00000000..2be9bdfc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OptionalColor.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_OptionalColor extends Google_Model
+{
+ protected $opaqueColorType = 'Google_Service_Slides_OpaqueColor';
+ protected $opaqueColorDataType = '';
+
+ public function setOpaqueColor(Google_Service_Slides_OpaqueColor $opaqueColor)
+ {
+ $this->opaqueColor = $opaqueColor;
+ }
+ public function getOpaqueColor()
+ {
+ return $this->opaqueColor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Outline.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Outline.php
new file mode 100644
index 00000000..b8c1bb6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Outline.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Outline extends Google_Model
+{
+ public $dashStyle;
+ protected $outlineFillType = 'Google_Service_Slides_OutlineFill';
+ protected $outlineFillDataType = '';
+ public $propertyState;
+ protected $weightType = 'Google_Service_Slides_Dimension';
+ protected $weightDataType = '';
+
+ public function setDashStyle($dashStyle)
+ {
+ $this->dashStyle = $dashStyle;
+ }
+ public function getDashStyle()
+ {
+ return $this->dashStyle;
+ }
+ public function setOutlineFill(Google_Service_Slides_OutlineFill $outlineFill)
+ {
+ $this->outlineFill = $outlineFill;
+ }
+ public function getOutlineFill()
+ {
+ return $this->outlineFill;
+ }
+ public function setPropertyState($propertyState)
+ {
+ $this->propertyState = $propertyState;
+ }
+ public function getPropertyState()
+ {
+ return $this->propertyState;
+ }
+ public function setWeight(Google_Service_Slides_Dimension $weight)
+ {
+ $this->weight = $weight;
+ }
+ public function getWeight()
+ {
+ return $this->weight;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OutlineFill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OutlineFill.php
new file mode 100644
index 00000000..f881e82b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/OutlineFill.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_OutlineFill extends Google_Model
+{
+ protected $solidFillType = 'Google_Service_Slides_SolidFill';
+ protected $solidFillDataType = '';
+
+ public function setSolidFill(Google_Service_Slides_SolidFill $solidFill)
+ {
+ $this->solidFill = $solidFill;
+ }
+ public function getSolidFill()
+ {
+ return $this->solidFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Page.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Page.php
new file mode 100644
index 00000000..bf060dca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Page.php
@@ -0,0 +1,99 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Page extends Google_Collection
+{
+ protected $collection_key = 'pageElements';
+ protected $layoutPropertiesType = 'Google_Service_Slides_LayoutProperties';
+ protected $layoutPropertiesDataType = '';
+ protected $notesPropertiesType = 'Google_Service_Slides_NotesProperties';
+ protected $notesPropertiesDataType = '';
+ public $objectId;
+ protected $pageElementsType = 'Google_Service_Slides_PageElement';
+ protected $pageElementsDataType = 'array';
+ protected $pagePropertiesType = 'Google_Service_Slides_PageProperties';
+ protected $pagePropertiesDataType = '';
+ public $pageType;
+ public $revisionId;
+ protected $slidePropertiesType = 'Google_Service_Slides_SlideProperties';
+ protected $slidePropertiesDataType = '';
+
+ public function setLayoutProperties(Google_Service_Slides_LayoutProperties $layoutProperties)
+ {
+ $this->layoutProperties = $layoutProperties;
+ }
+ public function getLayoutProperties()
+ {
+ return $this->layoutProperties;
+ }
+ public function setNotesProperties(Google_Service_Slides_NotesProperties $notesProperties)
+ {
+ $this->notesProperties = $notesProperties;
+ }
+ public function getNotesProperties()
+ {
+ return $this->notesProperties;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setPageElements($pageElements)
+ {
+ $this->pageElements = $pageElements;
+ }
+ public function getPageElements()
+ {
+ return $this->pageElements;
+ }
+ public function setPageProperties(Google_Service_Slides_PageProperties $pageProperties)
+ {
+ $this->pageProperties = $pageProperties;
+ }
+ public function getPageProperties()
+ {
+ return $this->pageProperties;
+ }
+ public function setPageType($pageType)
+ {
+ $this->pageType = $pageType;
+ }
+ public function getPageType()
+ {
+ return $this->pageType;
+ }
+ public function setRevisionId($revisionId)
+ {
+ $this->revisionId = $revisionId;
+ }
+ public function getRevisionId()
+ {
+ return $this->revisionId;
+ }
+ public function setSlideProperties(Google_Service_Slides_SlideProperties $slideProperties)
+ {
+ $this->slideProperties = $slideProperties;
+ }
+ public function getSlideProperties()
+ {
+ return $this->slideProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageBackgroundFill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageBackgroundFill.php
new file mode 100644
index 00000000..83ea0530
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageBackgroundFill.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_PageBackgroundFill extends Google_Model
+{
+ public $propertyState;
+ protected $solidFillType = 'Google_Service_Slides_SolidFill';
+ protected $solidFillDataType = '';
+ protected $stretchedPictureFillType = 'Google_Service_Slides_StretchedPictureFill';
+ protected $stretchedPictureFillDataType = '';
+
+ public function setPropertyState($propertyState)
+ {
+ $this->propertyState = $propertyState;
+ }
+ public function getPropertyState()
+ {
+ return $this->propertyState;
+ }
+ public function setSolidFill(Google_Service_Slides_SolidFill $solidFill)
+ {
+ $this->solidFill = $solidFill;
+ }
+ public function getSolidFill()
+ {
+ return $this->solidFill;
+ }
+ public function setStretchedPictureFill(Google_Service_Slides_StretchedPictureFill $stretchedPictureFill)
+ {
+ $this->stretchedPictureFill = $stretchedPictureFill;
+ }
+ public function getStretchedPictureFill()
+ {
+ return $this->stretchedPictureFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElement.php
new file mode 100644
index 00000000..de293ebc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElement.php
@@ -0,0 +1,148 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_PageElement extends Google_Model
+{
+ public $description;
+ protected $elementGroupType = 'Google_Service_Slides_Group';
+ protected $elementGroupDataType = '';
+ protected $imageType = 'Google_Service_Slides_Image';
+ protected $imageDataType = '';
+ protected $lineType = 'Google_Service_Slides_Line';
+ protected $lineDataType = '';
+ public $objectId;
+ protected $shapeType = 'Google_Service_Slides_Shape';
+ protected $shapeDataType = '';
+ protected $sheetsChartType = 'Google_Service_Slides_SheetsChart';
+ protected $sheetsChartDataType = '';
+ protected $sizeType = 'Google_Service_Slides_Size';
+ protected $sizeDataType = '';
+ protected $tableType = 'Google_Service_Slides_Table';
+ protected $tableDataType = '';
+ public $title;
+ protected $transformType = 'Google_Service_Slides_AffineTransform';
+ protected $transformDataType = '';
+ protected $videoType = 'Google_Service_Slides_Video';
+ protected $videoDataType = '';
+ protected $wordArtType = 'Google_Service_Slides_WordArt';
+ protected $wordArtDataType = '';
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setElementGroup(Google_Service_Slides_Group $elementGroup)
+ {
+ $this->elementGroup = $elementGroup;
+ }
+ public function getElementGroup()
+ {
+ return $this->elementGroup;
+ }
+ public function setImage(Google_Service_Slides_Image $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setLine(Google_Service_Slides_Line $line)
+ {
+ $this->line = $line;
+ }
+ public function getLine()
+ {
+ return $this->line;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setShape(Google_Service_Slides_Shape $shape)
+ {
+ $this->shape = $shape;
+ }
+ public function getShape()
+ {
+ return $this->shape;
+ }
+ public function setSheetsChart(Google_Service_Slides_SheetsChart $sheetsChart)
+ {
+ $this->sheetsChart = $sheetsChart;
+ }
+ public function getSheetsChart()
+ {
+ return $this->sheetsChart;
+ }
+ public function setSize(Google_Service_Slides_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setTable(Google_Service_Slides_Table $table)
+ {
+ $this->table = $table;
+ }
+ public function getTable()
+ {
+ return $this->table;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTransform(Google_Service_Slides_AffineTransform $transform)
+ {
+ $this->transform = $transform;
+ }
+ public function getTransform()
+ {
+ return $this->transform;
+ }
+ public function setVideo(Google_Service_Slides_Video $video)
+ {
+ $this->video = $video;
+ }
+ public function getVideo()
+ {
+ return $this->video;
+ }
+ public function setWordArt(Google_Service_Slides_WordArt $wordArt)
+ {
+ $this->wordArt = $wordArt;
+ }
+ public function getWordArt()
+ {
+ return $this->wordArt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElementProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElementProperties.php
new file mode 100644
index 00000000..4cc2b53b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageElementProperties.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_PageElementProperties extends Google_Model
+{
+ public $pageObjectId;
+ protected $sizeType = 'Google_Service_Slides_Size';
+ protected $sizeDataType = '';
+ protected $transformType = 'Google_Service_Slides_AffineTransform';
+ protected $transformDataType = '';
+
+ public function setPageObjectId($pageObjectId)
+ {
+ $this->pageObjectId = $pageObjectId;
+ }
+ public function getPageObjectId()
+ {
+ return $this->pageObjectId;
+ }
+ public function setSize(Google_Service_Slides_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setTransform(Google_Service_Slides_AffineTransform $transform)
+ {
+ $this->transform = $transform;
+ }
+ public function getTransform()
+ {
+ return $this->transform;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageProperties.php
new file mode 100644
index 00000000..944402ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/PageProperties.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_PageProperties extends Google_Model
+{
+ protected $colorSchemeType = 'Google_Service_Slides_ColorScheme';
+ protected $colorSchemeDataType = '';
+ protected $pageBackgroundFillType = 'Google_Service_Slides_PageBackgroundFill';
+ protected $pageBackgroundFillDataType = '';
+
+ public function setColorScheme(Google_Service_Slides_ColorScheme $colorScheme)
+ {
+ $this->colorScheme = $colorScheme;
+ }
+ public function getColorScheme()
+ {
+ return $this->colorScheme;
+ }
+ public function setPageBackgroundFill(Google_Service_Slides_PageBackgroundFill $pageBackgroundFill)
+ {
+ $this->pageBackgroundFill = $pageBackgroundFill;
+ }
+ public function getPageBackgroundFill()
+ {
+ return $this->pageBackgroundFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphMarker.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphMarker.php
new file mode 100644
index 00000000..4076c623
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphMarker.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ParagraphMarker extends Google_Model
+{
+ protected $bulletType = 'Google_Service_Slides_Bullet';
+ protected $bulletDataType = '';
+ protected $styleType = 'Google_Service_Slides_ParagraphStyle';
+ protected $styleDataType = '';
+
+ public function setBullet(Google_Service_Slides_Bullet $bullet)
+ {
+ $this->bullet = $bullet;
+ }
+ public function getBullet()
+ {
+ return $this->bullet;
+ }
+ public function setStyle(Google_Service_Slides_ParagraphStyle $style)
+ {
+ $this->style = $style;
+ }
+ public function getStyle()
+ {
+ return $this->style;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphStyle.php
new file mode 100644
index 00000000..b34c6fc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ParagraphStyle.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ParagraphStyle extends Google_Model
+{
+ public $alignment;
+ public $direction;
+ protected $indentEndType = 'Google_Service_Slides_Dimension';
+ protected $indentEndDataType = '';
+ protected $indentFirstLineType = 'Google_Service_Slides_Dimension';
+ protected $indentFirstLineDataType = '';
+ protected $indentStartType = 'Google_Service_Slides_Dimension';
+ protected $indentStartDataType = '';
+ public $lineSpacing;
+ protected $spaceAboveType = 'Google_Service_Slides_Dimension';
+ protected $spaceAboveDataType = '';
+ protected $spaceBelowType = 'Google_Service_Slides_Dimension';
+ protected $spaceBelowDataType = '';
+ public $spacingMode;
+
+ public function setAlignment($alignment)
+ {
+ $this->alignment = $alignment;
+ }
+ public function getAlignment()
+ {
+ return $this->alignment;
+ }
+ public function setDirection($direction)
+ {
+ $this->direction = $direction;
+ }
+ public function getDirection()
+ {
+ return $this->direction;
+ }
+ public function setIndentEnd(Google_Service_Slides_Dimension $indentEnd)
+ {
+ $this->indentEnd = $indentEnd;
+ }
+ public function getIndentEnd()
+ {
+ return $this->indentEnd;
+ }
+ public function setIndentFirstLine(Google_Service_Slides_Dimension $indentFirstLine)
+ {
+ $this->indentFirstLine = $indentFirstLine;
+ }
+ public function getIndentFirstLine()
+ {
+ return $this->indentFirstLine;
+ }
+ public function setIndentStart(Google_Service_Slides_Dimension $indentStart)
+ {
+ $this->indentStart = $indentStart;
+ }
+ public function getIndentStart()
+ {
+ return $this->indentStart;
+ }
+ public function setLineSpacing($lineSpacing)
+ {
+ $this->lineSpacing = $lineSpacing;
+ }
+ public function getLineSpacing()
+ {
+ return $this->lineSpacing;
+ }
+ public function setSpaceAbove(Google_Service_Slides_Dimension $spaceAbove)
+ {
+ $this->spaceAbove = $spaceAbove;
+ }
+ public function getSpaceAbove()
+ {
+ return $this->spaceAbove;
+ }
+ public function setSpaceBelow(Google_Service_Slides_Dimension $spaceBelow)
+ {
+ $this->spaceBelow = $spaceBelow;
+ }
+ public function getSpaceBelow()
+ {
+ return $this->spaceBelow;
+ }
+ public function setSpacingMode($spacingMode)
+ {
+ $this->spacingMode = $spacingMode;
+ }
+ public function getSpacingMode()
+ {
+ return $this->spacingMode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Placeholder.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Placeholder.php
new file mode 100644
index 00000000..e11f04aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Placeholder.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Placeholder extends Google_Model
+{
+ public $index;
+ public $parentObjectId;
+ public $type;
+
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setParentObjectId($parentObjectId)
+ {
+ $this->parentObjectId = $parentObjectId;
+ }
+ public function getParentObjectId()
+ {
+ return $this->parentObjectId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Presentation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Presentation.php
new file mode 100644
index 00000000..186fe3b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Presentation.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Presentation extends Google_Collection
+{
+ protected $collection_key = 'slides';
+ protected $layoutsType = 'Google_Service_Slides_Page';
+ protected $layoutsDataType = 'array';
+ public $locale;
+ protected $mastersType = 'Google_Service_Slides_Page';
+ protected $mastersDataType = 'array';
+ protected $notesMasterType = 'Google_Service_Slides_Page';
+ protected $notesMasterDataType = '';
+ protected $pageSizeType = 'Google_Service_Slides_Size';
+ protected $pageSizeDataType = '';
+ public $presentationId;
+ public $revisionId;
+ protected $slidesType = 'Google_Service_Slides_Page';
+ protected $slidesDataType = 'array';
+ public $title;
+
+ public function setLayouts($layouts)
+ {
+ $this->layouts = $layouts;
+ }
+ public function getLayouts()
+ {
+ return $this->layouts;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setMasters($masters)
+ {
+ $this->masters = $masters;
+ }
+ public function getMasters()
+ {
+ return $this->masters;
+ }
+ public function setNotesMaster(Google_Service_Slides_Page $notesMaster)
+ {
+ $this->notesMaster = $notesMaster;
+ }
+ public function getNotesMaster()
+ {
+ return $this->notesMaster;
+ }
+ public function setPageSize(Google_Service_Slides_Size $pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPresentationId($presentationId)
+ {
+ $this->presentationId = $presentationId;
+ }
+ public function getPresentationId()
+ {
+ return $this->presentationId;
+ }
+ public function setRevisionId($revisionId)
+ {
+ $this->revisionId = $revisionId;
+ }
+ public function getRevisionId()
+ {
+ return $this->revisionId;
+ }
+ public function setSlides($slides)
+ {
+ $this->slides = $slides;
+ }
+ public function getSlides()
+ {
+ return $this->slides;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Range.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Range.php
new file mode 100644
index 00000000..8c12ca83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Range.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Range extends Google_Model
+{
+ public $endIndex;
+ public $startIndex;
+ public $type;
+
+ public function setEndIndex($endIndex)
+ {
+ $this->endIndex = $endIndex;
+ }
+ public function getEndIndex()
+ {
+ return $this->endIndex;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Recolor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Recolor.php
new file mode 100644
index 00000000..d824fd01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Recolor.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Recolor extends Google_Collection
+{
+ protected $collection_key = 'recolorStops';
+ public $name;
+ protected $recolorStopsType = 'Google_Service_Slides_ColorStop';
+ protected $recolorStopsDataType = 'array';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setRecolorStops($recolorStops)
+ {
+ $this->recolorStops = $recolorStops;
+ }
+ public function getRecolorStops()
+ {
+ return $this->recolorStops;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RefreshSheetsChartRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RefreshSheetsChartRequest.php
new file mode 100644
index 00000000..5fba9e4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RefreshSheetsChartRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_RefreshSheetsChartRequest extends Google_Model
+{
+ public $objectId;
+
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageRequest.php
new file mode 100644
index 00000000..4ef20027
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ReplaceAllShapesWithImageRequest extends Google_Model
+{
+ protected $containsTextType = 'Google_Service_Slides_SubstringMatchCriteria';
+ protected $containsTextDataType = '';
+ public $imageUrl;
+ public $replaceMethod;
+
+ public function setContainsText(Google_Service_Slides_SubstringMatchCriteria $containsText)
+ {
+ $this->containsText = $containsText;
+ }
+ public function getContainsText()
+ {
+ return $this->containsText;
+ }
+ public function setImageUrl($imageUrl)
+ {
+ $this->imageUrl = $imageUrl;
+ }
+ public function getImageUrl()
+ {
+ return $this->imageUrl;
+ }
+ public function setReplaceMethod($replaceMethod)
+ {
+ $this->replaceMethod = $replaceMethod;
+ }
+ public function getReplaceMethod()
+ {
+ return $this->replaceMethod;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageResponse.php
new file mode 100644
index 00000000..78a538ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithImageResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ReplaceAllShapesWithImageResponse extends Google_Model
+{
+ public $occurrencesChanged;
+
+ public function setOccurrencesChanged($occurrencesChanged)
+ {
+ $this->occurrencesChanged = $occurrencesChanged;
+ }
+ public function getOccurrencesChanged()
+ {
+ return $this->occurrencesChanged;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartRequest.php
new file mode 100644
index 00000000..4cef0ae4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartRequest.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ReplaceAllShapesWithSheetsChartRequest extends Google_Model
+{
+ public $chartId;
+ protected $containsTextType = 'Google_Service_Slides_SubstringMatchCriteria';
+ protected $containsTextDataType = '';
+ public $linkingMode;
+ public $spreadsheetId;
+
+ public function setChartId($chartId)
+ {
+ $this->chartId = $chartId;
+ }
+ public function getChartId()
+ {
+ return $this->chartId;
+ }
+ public function setContainsText(Google_Service_Slides_SubstringMatchCriteria $containsText)
+ {
+ $this->containsText = $containsText;
+ }
+ public function getContainsText()
+ {
+ return $this->containsText;
+ }
+ public function setLinkingMode($linkingMode)
+ {
+ $this->linkingMode = $linkingMode;
+ }
+ public function getLinkingMode()
+ {
+ return $this->linkingMode;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartResponse.php
new file mode 100644
index 00000000..2a0add5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllShapesWithSheetsChartResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ReplaceAllShapesWithSheetsChartResponse extends Google_Model
+{
+ public $occurrencesChanged;
+
+ public function setOccurrencesChanged($occurrencesChanged)
+ {
+ $this->occurrencesChanged = $occurrencesChanged;
+ }
+ public function getOccurrencesChanged()
+ {
+ return $this->occurrencesChanged;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextRequest.php
new file mode 100644
index 00000000..76e3819f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ReplaceAllTextRequest extends Google_Model
+{
+ protected $containsTextType = 'Google_Service_Slides_SubstringMatchCriteria';
+ protected $containsTextDataType = '';
+ public $replaceText;
+
+ public function setContainsText(Google_Service_Slides_SubstringMatchCriteria $containsText)
+ {
+ $this->containsText = $containsText;
+ }
+ public function getContainsText()
+ {
+ return $this->containsText;
+ }
+ public function setReplaceText($replaceText)
+ {
+ $this->replaceText = $replaceText;
+ }
+ public function getReplaceText()
+ {
+ return $this->replaceText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextResponse.php
new file mode 100644
index 00000000..fa431f9d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ReplaceAllTextResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ReplaceAllTextResponse extends Google_Model
+{
+ public $occurrencesChanged;
+
+ public function setOccurrencesChanged($occurrencesChanged)
+ {
+ $this->occurrencesChanged = $occurrencesChanged;
+ }
+ public function getOccurrencesChanged()
+ {
+ return $this->occurrencesChanged;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Request.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Request.php
new file mode 100644
index 00000000..caa28e2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Request.php
@@ -0,0 +1,331 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Request extends Google_Model
+{
+ protected $createImageType = 'Google_Service_Slides_CreateImageRequest';
+ protected $createImageDataType = '';
+ protected $createLineType = 'Google_Service_Slides_CreateLineRequest';
+ protected $createLineDataType = '';
+ protected $createParagraphBulletsType = 'Google_Service_Slides_CreateParagraphBulletsRequest';
+ protected $createParagraphBulletsDataType = '';
+ protected $createShapeType = 'Google_Service_Slides_CreateShapeRequest';
+ protected $createShapeDataType = '';
+ protected $createSheetsChartType = 'Google_Service_Slides_CreateSheetsChartRequest';
+ protected $createSheetsChartDataType = '';
+ protected $createSlideType = 'Google_Service_Slides_CreateSlideRequest';
+ protected $createSlideDataType = '';
+ protected $createTableType = 'Google_Service_Slides_CreateTableRequest';
+ protected $createTableDataType = '';
+ protected $createVideoType = 'Google_Service_Slides_CreateVideoRequest';
+ protected $createVideoDataType = '';
+ protected $deleteObjectType = 'Google_Service_Slides_DeleteObjectRequest';
+ protected $deleteObjectDataType = '';
+ protected $deleteParagraphBulletsType = 'Google_Service_Slides_DeleteParagraphBulletsRequest';
+ protected $deleteParagraphBulletsDataType = '';
+ protected $deleteTableColumnType = 'Google_Service_Slides_DeleteTableColumnRequest';
+ protected $deleteTableColumnDataType = '';
+ protected $deleteTableRowType = 'Google_Service_Slides_DeleteTableRowRequest';
+ protected $deleteTableRowDataType = '';
+ protected $deleteTextType = 'Google_Service_Slides_DeleteTextRequest';
+ protected $deleteTextDataType = '';
+ protected $duplicateObjectType = 'Google_Service_Slides_DuplicateObjectRequest';
+ protected $duplicateObjectDataType = '';
+ protected $insertTableColumnsType = 'Google_Service_Slides_InsertTableColumnsRequest';
+ protected $insertTableColumnsDataType = '';
+ protected $insertTableRowsType = 'Google_Service_Slides_InsertTableRowsRequest';
+ protected $insertTableRowsDataType = '';
+ protected $insertTextType = 'Google_Service_Slides_InsertTextRequest';
+ protected $insertTextDataType = '';
+ protected $refreshSheetsChartType = 'Google_Service_Slides_RefreshSheetsChartRequest';
+ protected $refreshSheetsChartDataType = '';
+ protected $replaceAllShapesWithImageType = 'Google_Service_Slides_ReplaceAllShapesWithImageRequest';
+ protected $replaceAllShapesWithImageDataType = '';
+ protected $replaceAllShapesWithSheetsChartType = 'Google_Service_Slides_ReplaceAllShapesWithSheetsChartRequest';
+ protected $replaceAllShapesWithSheetsChartDataType = '';
+ protected $replaceAllTextType = 'Google_Service_Slides_ReplaceAllTextRequest';
+ protected $replaceAllTextDataType = '';
+ protected $updateImagePropertiesType = 'Google_Service_Slides_UpdateImagePropertiesRequest';
+ protected $updateImagePropertiesDataType = '';
+ protected $updateLinePropertiesType = 'Google_Service_Slides_UpdateLinePropertiesRequest';
+ protected $updateLinePropertiesDataType = '';
+ protected $updatePageElementTransformType = 'Google_Service_Slides_UpdatePageElementTransformRequest';
+ protected $updatePageElementTransformDataType = '';
+ protected $updatePagePropertiesType = 'Google_Service_Slides_UpdatePagePropertiesRequest';
+ protected $updatePagePropertiesDataType = '';
+ protected $updateParagraphStyleType = 'Google_Service_Slides_UpdateParagraphStyleRequest';
+ protected $updateParagraphStyleDataType = '';
+ protected $updateShapePropertiesType = 'Google_Service_Slides_UpdateShapePropertiesRequest';
+ protected $updateShapePropertiesDataType = '';
+ protected $updateSlidesPositionType = 'Google_Service_Slides_UpdateSlidesPositionRequest';
+ protected $updateSlidesPositionDataType = '';
+ protected $updateTableCellPropertiesType = 'Google_Service_Slides_UpdateTableCellPropertiesRequest';
+ protected $updateTableCellPropertiesDataType = '';
+ protected $updateTextStyleType = 'Google_Service_Slides_UpdateTextStyleRequest';
+ protected $updateTextStyleDataType = '';
+ protected $updateVideoPropertiesType = 'Google_Service_Slides_UpdateVideoPropertiesRequest';
+ protected $updateVideoPropertiesDataType = '';
+
+ public function setCreateImage(Google_Service_Slides_CreateImageRequest $createImage)
+ {
+ $this->createImage = $createImage;
+ }
+ public function getCreateImage()
+ {
+ return $this->createImage;
+ }
+ public function setCreateLine(Google_Service_Slides_CreateLineRequest $createLine)
+ {
+ $this->createLine = $createLine;
+ }
+ public function getCreateLine()
+ {
+ return $this->createLine;
+ }
+ public function setCreateParagraphBullets(Google_Service_Slides_CreateParagraphBulletsRequest $createParagraphBullets)
+ {
+ $this->createParagraphBullets = $createParagraphBullets;
+ }
+ public function getCreateParagraphBullets()
+ {
+ return $this->createParagraphBullets;
+ }
+ public function setCreateShape(Google_Service_Slides_CreateShapeRequest $createShape)
+ {
+ $this->createShape = $createShape;
+ }
+ public function getCreateShape()
+ {
+ return $this->createShape;
+ }
+ public function setCreateSheetsChart(Google_Service_Slides_CreateSheetsChartRequest $createSheetsChart)
+ {
+ $this->createSheetsChart = $createSheetsChart;
+ }
+ public function getCreateSheetsChart()
+ {
+ return $this->createSheetsChart;
+ }
+ public function setCreateSlide(Google_Service_Slides_CreateSlideRequest $createSlide)
+ {
+ $this->createSlide = $createSlide;
+ }
+ public function getCreateSlide()
+ {
+ return $this->createSlide;
+ }
+ public function setCreateTable(Google_Service_Slides_CreateTableRequest $createTable)
+ {
+ $this->createTable = $createTable;
+ }
+ public function getCreateTable()
+ {
+ return $this->createTable;
+ }
+ public function setCreateVideo(Google_Service_Slides_CreateVideoRequest $createVideo)
+ {
+ $this->createVideo = $createVideo;
+ }
+ public function getCreateVideo()
+ {
+ return $this->createVideo;
+ }
+ public function setDeleteObject(Google_Service_Slides_DeleteObjectRequest $deleteObject)
+ {
+ $this->deleteObject = $deleteObject;
+ }
+ public function getDeleteObject()
+ {
+ return $this->deleteObject;
+ }
+ public function setDeleteParagraphBullets(Google_Service_Slides_DeleteParagraphBulletsRequest $deleteParagraphBullets)
+ {
+ $this->deleteParagraphBullets = $deleteParagraphBullets;
+ }
+ public function getDeleteParagraphBullets()
+ {
+ return $this->deleteParagraphBullets;
+ }
+ public function setDeleteTableColumn(Google_Service_Slides_DeleteTableColumnRequest $deleteTableColumn)
+ {
+ $this->deleteTableColumn = $deleteTableColumn;
+ }
+ public function getDeleteTableColumn()
+ {
+ return $this->deleteTableColumn;
+ }
+ public function setDeleteTableRow(Google_Service_Slides_DeleteTableRowRequest $deleteTableRow)
+ {
+ $this->deleteTableRow = $deleteTableRow;
+ }
+ public function getDeleteTableRow()
+ {
+ return $this->deleteTableRow;
+ }
+ public function setDeleteText(Google_Service_Slides_DeleteTextRequest $deleteText)
+ {
+ $this->deleteText = $deleteText;
+ }
+ public function getDeleteText()
+ {
+ return $this->deleteText;
+ }
+ public function setDuplicateObject(Google_Service_Slides_DuplicateObjectRequest $duplicateObject)
+ {
+ $this->duplicateObject = $duplicateObject;
+ }
+ public function getDuplicateObject()
+ {
+ return $this->duplicateObject;
+ }
+ public function setInsertTableColumns(Google_Service_Slides_InsertTableColumnsRequest $insertTableColumns)
+ {
+ $this->insertTableColumns = $insertTableColumns;
+ }
+ public function getInsertTableColumns()
+ {
+ return $this->insertTableColumns;
+ }
+ public function setInsertTableRows(Google_Service_Slides_InsertTableRowsRequest $insertTableRows)
+ {
+ $this->insertTableRows = $insertTableRows;
+ }
+ public function getInsertTableRows()
+ {
+ return $this->insertTableRows;
+ }
+ public function setInsertText(Google_Service_Slides_InsertTextRequest $insertText)
+ {
+ $this->insertText = $insertText;
+ }
+ public function getInsertText()
+ {
+ return $this->insertText;
+ }
+ public function setRefreshSheetsChart(Google_Service_Slides_RefreshSheetsChartRequest $refreshSheetsChart)
+ {
+ $this->refreshSheetsChart = $refreshSheetsChart;
+ }
+ public function getRefreshSheetsChart()
+ {
+ return $this->refreshSheetsChart;
+ }
+ public function setReplaceAllShapesWithImage(Google_Service_Slides_ReplaceAllShapesWithImageRequest $replaceAllShapesWithImage)
+ {
+ $this->replaceAllShapesWithImage = $replaceAllShapesWithImage;
+ }
+ public function getReplaceAllShapesWithImage()
+ {
+ return $this->replaceAllShapesWithImage;
+ }
+ public function setReplaceAllShapesWithSheetsChart(Google_Service_Slides_ReplaceAllShapesWithSheetsChartRequest $replaceAllShapesWithSheetsChart)
+ {
+ $this->replaceAllShapesWithSheetsChart = $replaceAllShapesWithSheetsChart;
+ }
+ public function getReplaceAllShapesWithSheetsChart()
+ {
+ return $this->replaceAllShapesWithSheetsChart;
+ }
+ public function setReplaceAllText(Google_Service_Slides_ReplaceAllTextRequest $replaceAllText)
+ {
+ $this->replaceAllText = $replaceAllText;
+ }
+ public function getReplaceAllText()
+ {
+ return $this->replaceAllText;
+ }
+ public function setUpdateImageProperties(Google_Service_Slides_UpdateImagePropertiesRequest $updateImageProperties)
+ {
+ $this->updateImageProperties = $updateImageProperties;
+ }
+ public function getUpdateImageProperties()
+ {
+ return $this->updateImageProperties;
+ }
+ public function setUpdateLineProperties(Google_Service_Slides_UpdateLinePropertiesRequest $updateLineProperties)
+ {
+ $this->updateLineProperties = $updateLineProperties;
+ }
+ public function getUpdateLineProperties()
+ {
+ return $this->updateLineProperties;
+ }
+ public function setUpdatePageElementTransform(Google_Service_Slides_UpdatePageElementTransformRequest $updatePageElementTransform)
+ {
+ $this->updatePageElementTransform = $updatePageElementTransform;
+ }
+ public function getUpdatePageElementTransform()
+ {
+ return $this->updatePageElementTransform;
+ }
+ public function setUpdatePageProperties(Google_Service_Slides_UpdatePagePropertiesRequest $updatePageProperties)
+ {
+ $this->updatePageProperties = $updatePageProperties;
+ }
+ public function getUpdatePageProperties()
+ {
+ return $this->updatePageProperties;
+ }
+ public function setUpdateParagraphStyle(Google_Service_Slides_UpdateParagraphStyleRequest $updateParagraphStyle)
+ {
+ $this->updateParagraphStyle = $updateParagraphStyle;
+ }
+ public function getUpdateParagraphStyle()
+ {
+ return $this->updateParagraphStyle;
+ }
+ public function setUpdateShapeProperties(Google_Service_Slides_UpdateShapePropertiesRequest $updateShapeProperties)
+ {
+ $this->updateShapeProperties = $updateShapeProperties;
+ }
+ public function getUpdateShapeProperties()
+ {
+ return $this->updateShapeProperties;
+ }
+ public function setUpdateSlidesPosition(Google_Service_Slides_UpdateSlidesPositionRequest $updateSlidesPosition)
+ {
+ $this->updateSlidesPosition = $updateSlidesPosition;
+ }
+ public function getUpdateSlidesPosition()
+ {
+ return $this->updateSlidesPosition;
+ }
+ public function setUpdateTableCellProperties(Google_Service_Slides_UpdateTableCellPropertiesRequest $updateTableCellProperties)
+ {
+ $this->updateTableCellProperties = $updateTableCellProperties;
+ }
+ public function getUpdateTableCellProperties()
+ {
+ return $this->updateTableCellProperties;
+ }
+ public function setUpdateTextStyle(Google_Service_Slides_UpdateTextStyleRequest $updateTextStyle)
+ {
+ $this->updateTextStyle = $updateTextStyle;
+ }
+ public function getUpdateTextStyle()
+ {
+ return $this->updateTextStyle;
+ }
+ public function setUpdateVideoProperties(Google_Service_Slides_UpdateVideoPropertiesRequest $updateVideoProperties)
+ {
+ $this->updateVideoProperties = $updateVideoProperties;
+ }
+ public function getUpdateVideoProperties()
+ {
+ return $this->updateVideoProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php
new file mode 100644
index 00000000..4aea9973
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/Presentations.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "presentations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $slidesService = new Google_Service_Slides(...);
+ * $presentations = $slidesService->presentations;
+ * </code>
+ */
+class Google_Service_Slides_Resource_Presentations extends Google_Service_Resource
+{
+ /**
+ * Applies one or more updates to the presentation.
+ *
+ * Each request is validated before being applied. If any request is not valid,
+ * then the entire request will fail and nothing will be applied.
+ *
+ * Some requests have replies to give you some information about how they are
+ * applied. Other requests do not need to return information; these each return
+ * an empty reply. The order of replies matches that of the requests.
+ *
+ * For example, suppose you call batchUpdate with four updates, and only the
+ * third one returns information. The response would have two empty replies: the
+ * reply to the third request, and another empty reply, in that order.
+ *
+ * Because other users may be editing the presentation, the presentation might
+ * not exactly reflect your changes: your changes may be altered with respect to
+ * collaborator changes. If there are no collaborators, the presentation should
+ * reflect your changes. In any case, the updates in your request are guaranteed
+ * to be applied together atomically. (presentations.batchUpdate)
+ *
+ * @param string $presentationId The presentation to apply the updates to.
+ * @param Google_Service_Slides_BatchUpdatePresentationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Slides_BatchUpdatePresentationResponse
+ */
+ public function batchUpdate($presentationId, Google_Service_Slides_BatchUpdatePresentationRequest $postBody, $optParams = array())
+ {
+ $params = array('presentationId' => $presentationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchUpdate', array($params), "Google_Service_Slides_BatchUpdatePresentationResponse");
+ }
+ /**
+ * Creates a new presentation using the title given in the request. Other fields
+ * in the request are ignored. Returns the created presentation.
+ * (presentations.create)
+ *
+ * @param Google_Service_Slides_Presentation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Slides_Presentation
+ */
+ public function create(Google_Service_Slides_Presentation $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Slides_Presentation");
+ }
+ /**
+ * Gets the latest version of the specified presentation. (presentations.get)
+ *
+ * @param string $presentationId The ID of the presentation to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Slides_Presentation
+ */
+ public function get($presentationId, $optParams = array())
+ {
+ $params = array('presentationId' => $presentationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Slides_Presentation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/PresentationsPages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/PresentationsPages.php
new file mode 100644
index 00000000..8e54b516
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Resource/PresentationsPages.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "pages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $slidesService = new Google_Service_Slides(...);
+ * $pages = $slidesService->pages;
+ * </code>
+ */
+class Google_Service_Slides_Resource_PresentationsPages extends Google_Service_Resource
+{
+ /**
+ * Gets the latest version of the specified page in the presentation.
+ * (pages.get)
+ *
+ * @param string $presentationId The ID of the presentation to retrieve.
+ * @param string $pageObjectId The object ID of the page to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Slides_Page
+ */
+ public function get($presentationId, $pageObjectId, $optParams = array())
+ {
+ $params = array('presentationId' => $presentationId, 'pageObjectId' => $pageObjectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Slides_Page");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Response.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Response.php
new file mode 100644
index 00000000..eea62550
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Response.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Response extends Google_Model
+{
+ protected $createImageType = 'Google_Service_Slides_CreateImageResponse';
+ protected $createImageDataType = '';
+ protected $createLineType = 'Google_Service_Slides_CreateLineResponse';
+ protected $createLineDataType = '';
+ protected $createShapeType = 'Google_Service_Slides_CreateShapeResponse';
+ protected $createShapeDataType = '';
+ protected $createSheetsChartType = 'Google_Service_Slides_CreateSheetsChartResponse';
+ protected $createSheetsChartDataType = '';
+ protected $createSlideType = 'Google_Service_Slides_CreateSlideResponse';
+ protected $createSlideDataType = '';
+ protected $createTableType = 'Google_Service_Slides_CreateTableResponse';
+ protected $createTableDataType = '';
+ protected $createVideoType = 'Google_Service_Slides_CreateVideoResponse';
+ protected $createVideoDataType = '';
+ protected $duplicateObjectType = 'Google_Service_Slides_DuplicateObjectResponse';
+ protected $duplicateObjectDataType = '';
+ protected $replaceAllShapesWithImageType = 'Google_Service_Slides_ReplaceAllShapesWithImageResponse';
+ protected $replaceAllShapesWithImageDataType = '';
+ protected $replaceAllShapesWithSheetsChartType = 'Google_Service_Slides_ReplaceAllShapesWithSheetsChartResponse';
+ protected $replaceAllShapesWithSheetsChartDataType = '';
+ protected $replaceAllTextType = 'Google_Service_Slides_ReplaceAllTextResponse';
+ protected $replaceAllTextDataType = '';
+
+ public function setCreateImage(Google_Service_Slides_CreateImageResponse $createImage)
+ {
+ $this->createImage = $createImage;
+ }
+ public function getCreateImage()
+ {
+ return $this->createImage;
+ }
+ public function setCreateLine(Google_Service_Slides_CreateLineResponse $createLine)
+ {
+ $this->createLine = $createLine;
+ }
+ public function getCreateLine()
+ {
+ return $this->createLine;
+ }
+ public function setCreateShape(Google_Service_Slides_CreateShapeResponse $createShape)
+ {
+ $this->createShape = $createShape;
+ }
+ public function getCreateShape()
+ {
+ return $this->createShape;
+ }
+ public function setCreateSheetsChart(Google_Service_Slides_CreateSheetsChartResponse $createSheetsChart)
+ {
+ $this->createSheetsChart = $createSheetsChart;
+ }
+ public function getCreateSheetsChart()
+ {
+ return $this->createSheetsChart;
+ }
+ public function setCreateSlide(Google_Service_Slides_CreateSlideResponse $createSlide)
+ {
+ $this->createSlide = $createSlide;
+ }
+ public function getCreateSlide()
+ {
+ return $this->createSlide;
+ }
+ public function setCreateTable(Google_Service_Slides_CreateTableResponse $createTable)
+ {
+ $this->createTable = $createTable;
+ }
+ public function getCreateTable()
+ {
+ return $this->createTable;
+ }
+ public function setCreateVideo(Google_Service_Slides_CreateVideoResponse $createVideo)
+ {
+ $this->createVideo = $createVideo;
+ }
+ public function getCreateVideo()
+ {
+ return $this->createVideo;
+ }
+ public function setDuplicateObject(Google_Service_Slides_DuplicateObjectResponse $duplicateObject)
+ {
+ $this->duplicateObject = $duplicateObject;
+ }
+ public function getDuplicateObject()
+ {
+ return $this->duplicateObject;
+ }
+ public function setReplaceAllShapesWithImage(Google_Service_Slides_ReplaceAllShapesWithImageResponse $replaceAllShapesWithImage)
+ {
+ $this->replaceAllShapesWithImage = $replaceAllShapesWithImage;
+ }
+ public function getReplaceAllShapesWithImage()
+ {
+ return $this->replaceAllShapesWithImage;
+ }
+ public function setReplaceAllShapesWithSheetsChart(Google_Service_Slides_ReplaceAllShapesWithSheetsChartResponse $replaceAllShapesWithSheetsChart)
+ {
+ $this->replaceAllShapesWithSheetsChart = $replaceAllShapesWithSheetsChart;
+ }
+ public function getReplaceAllShapesWithSheetsChart()
+ {
+ return $this->replaceAllShapesWithSheetsChart;
+ }
+ public function setReplaceAllText(Google_Service_Slides_ReplaceAllTextResponse $replaceAllText)
+ {
+ $this->replaceAllText = $replaceAllText;
+ }
+ public function getReplaceAllText()
+ {
+ return $this->replaceAllText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RgbColor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RgbColor.php
new file mode 100644
index 00000000..80d7d24b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/RgbColor.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_RgbColor extends Google_Model
+{
+ public $blue;
+ public $green;
+ public $red;
+
+ public function setBlue($blue)
+ {
+ $this->blue = $blue;
+ }
+ public function getBlue()
+ {
+ return $this->blue;
+ }
+ public function setGreen($green)
+ {
+ $this->green = $green;
+ }
+ public function getGreen()
+ {
+ return $this->green;
+ }
+ public function setRed($red)
+ {
+ $this->red = $red;
+ }
+ public function getRed()
+ {
+ return $this->red;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shadow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shadow.php
new file mode 100644
index 00000000..2d0aa486
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shadow.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Shadow extends Google_Model
+{
+ public $alignment;
+ public $alpha;
+ protected $blurRadiusType = 'Google_Service_Slides_Dimension';
+ protected $blurRadiusDataType = '';
+ protected $colorType = 'Google_Service_Slides_OpaqueColor';
+ protected $colorDataType = '';
+ public $propertyState;
+ public $rotateWithShape;
+ protected $transformType = 'Google_Service_Slides_AffineTransform';
+ protected $transformDataType = '';
+ public $type;
+
+ public function setAlignment($alignment)
+ {
+ $this->alignment = $alignment;
+ }
+ public function getAlignment()
+ {
+ return $this->alignment;
+ }
+ public function setAlpha($alpha)
+ {
+ $this->alpha = $alpha;
+ }
+ public function getAlpha()
+ {
+ return $this->alpha;
+ }
+ public function setBlurRadius(Google_Service_Slides_Dimension $blurRadius)
+ {
+ $this->blurRadius = $blurRadius;
+ }
+ public function getBlurRadius()
+ {
+ return $this->blurRadius;
+ }
+ public function setColor(Google_Service_Slides_OpaqueColor $color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setPropertyState($propertyState)
+ {
+ $this->propertyState = $propertyState;
+ }
+ public function getPropertyState()
+ {
+ return $this->propertyState;
+ }
+ public function setRotateWithShape($rotateWithShape)
+ {
+ $this->rotateWithShape = $rotateWithShape;
+ }
+ public function getRotateWithShape()
+ {
+ return $this->rotateWithShape;
+ }
+ public function setTransform(Google_Service_Slides_AffineTransform $transform)
+ {
+ $this->transform = $transform;
+ }
+ public function getTransform()
+ {
+ return $this->transform;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shape.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shape.php
new file mode 100644
index 00000000..46ed9fa9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Shape.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Shape extends Google_Model
+{
+ protected $placeholderType = 'Google_Service_Slides_Placeholder';
+ protected $placeholderDataType = '';
+ protected $shapePropertiesType = 'Google_Service_Slides_ShapeProperties';
+ protected $shapePropertiesDataType = '';
+ public $shapeType;
+ protected $textType = 'Google_Service_Slides_TextContent';
+ protected $textDataType = '';
+
+ public function setPlaceholder(Google_Service_Slides_Placeholder $placeholder)
+ {
+ $this->placeholder = $placeholder;
+ }
+ public function getPlaceholder()
+ {
+ return $this->placeholder;
+ }
+ public function setShapeProperties(Google_Service_Slides_ShapeProperties $shapeProperties)
+ {
+ $this->shapeProperties = $shapeProperties;
+ }
+ public function getShapeProperties()
+ {
+ return $this->shapeProperties;
+ }
+ public function setShapeType($shapeType)
+ {
+ $this->shapeType = $shapeType;
+ }
+ public function getShapeType()
+ {
+ return $this->shapeType;
+ }
+ public function setText(Google_Service_Slides_TextContent $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeBackgroundFill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeBackgroundFill.php
new file mode 100644
index 00000000..a40878c4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeBackgroundFill.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ShapeBackgroundFill extends Google_Model
+{
+ public $propertyState;
+ protected $solidFillType = 'Google_Service_Slides_SolidFill';
+ protected $solidFillDataType = '';
+
+ public function setPropertyState($propertyState)
+ {
+ $this->propertyState = $propertyState;
+ }
+ public function getPropertyState()
+ {
+ return $this->propertyState;
+ }
+ public function setSolidFill(Google_Service_Slides_SolidFill $solidFill)
+ {
+ $this->solidFill = $solidFill;
+ }
+ public function getSolidFill()
+ {
+ return $this->solidFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeProperties.php
new file mode 100644
index 00000000..6eeaf915
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ShapeProperties.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ShapeProperties extends Google_Model
+{
+ protected $linkType = 'Google_Service_Slides_Link';
+ protected $linkDataType = '';
+ protected $outlineType = 'Google_Service_Slides_Outline';
+ protected $outlineDataType = '';
+ protected $shadowType = 'Google_Service_Slides_Shadow';
+ protected $shadowDataType = '';
+ protected $shapeBackgroundFillType = 'Google_Service_Slides_ShapeBackgroundFill';
+ protected $shapeBackgroundFillDataType = '';
+
+ public function setLink(Google_Service_Slides_Link $link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setOutline(Google_Service_Slides_Outline $outline)
+ {
+ $this->outline = $outline;
+ }
+ public function getOutline()
+ {
+ return $this->outline;
+ }
+ public function setShadow(Google_Service_Slides_Shadow $shadow)
+ {
+ $this->shadow = $shadow;
+ }
+ public function getShadow()
+ {
+ return $this->shadow;
+ }
+ public function setShapeBackgroundFill(Google_Service_Slides_ShapeBackgroundFill $shapeBackgroundFill)
+ {
+ $this->shapeBackgroundFill = $shapeBackgroundFill;
+ }
+ public function getShapeBackgroundFill()
+ {
+ return $this->shapeBackgroundFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChart.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChart.php
new file mode 100644
index 00000000..9117844e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChart.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_SheetsChart extends Google_Model
+{
+ public $chartId;
+ public $contentUrl;
+ protected $sheetsChartPropertiesType = 'Google_Service_Slides_SheetsChartProperties';
+ protected $sheetsChartPropertiesDataType = '';
+ public $spreadsheetId;
+
+ public function setChartId($chartId)
+ {
+ $this->chartId = $chartId;
+ }
+ public function getChartId()
+ {
+ return $this->chartId;
+ }
+ public function setContentUrl($contentUrl)
+ {
+ $this->contentUrl = $contentUrl;
+ }
+ public function getContentUrl()
+ {
+ return $this->contentUrl;
+ }
+ public function setSheetsChartProperties(Google_Service_Slides_SheetsChartProperties $sheetsChartProperties)
+ {
+ $this->sheetsChartProperties = $sheetsChartProperties;
+ }
+ public function getSheetsChartProperties()
+ {
+ return $this->sheetsChartProperties;
+ }
+ public function setSpreadsheetId($spreadsheetId)
+ {
+ $this->spreadsheetId = $spreadsheetId;
+ }
+ public function getSpreadsheetId()
+ {
+ return $this->spreadsheetId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChartProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChartProperties.php
new file mode 100644
index 00000000..3953ab5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SheetsChartProperties.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_SheetsChartProperties extends Google_Model
+{
+ protected $chartImagePropertiesType = 'Google_Service_Slides_ImageProperties';
+ protected $chartImagePropertiesDataType = '';
+
+ public function setChartImageProperties(Google_Service_Slides_ImageProperties $chartImageProperties)
+ {
+ $this->chartImageProperties = $chartImageProperties;
+ }
+ public function getChartImageProperties()
+ {
+ return $this->chartImageProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Size.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Size.php
new file mode 100644
index 00000000..baba3854
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Size.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Size extends Google_Model
+{
+ protected $heightType = 'Google_Service_Slides_Dimension';
+ protected $heightDataType = '';
+ protected $widthType = 'Google_Service_Slides_Dimension';
+ protected $widthDataType = '';
+
+ public function setHeight(Google_Service_Slides_Dimension $height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setWidth(Google_Service_Slides_Dimension $width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlideProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlideProperties.php
new file mode 100644
index 00000000..dc9b5986
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlideProperties.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_SlideProperties extends Google_Model
+{
+ public $layoutObjectId;
+ public $masterObjectId;
+ protected $notesPageType = 'Google_Service_Slides_Page';
+ protected $notesPageDataType = '';
+
+ public function setLayoutObjectId($layoutObjectId)
+ {
+ $this->layoutObjectId = $layoutObjectId;
+ }
+ public function getLayoutObjectId()
+ {
+ return $this->layoutObjectId;
+ }
+ public function setMasterObjectId($masterObjectId)
+ {
+ $this->masterObjectId = $masterObjectId;
+ }
+ public function getMasterObjectId()
+ {
+ return $this->masterObjectId;
+ }
+ public function setNotesPage(Google_Service_Slides_Page $notesPage)
+ {
+ $this->notesPage = $notesPage;
+ }
+ public function getNotesPage()
+ {
+ return $this->notesPage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlidesList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlidesList.php
new file mode 100644
index 00000000..cf360406
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SlidesList.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_SlidesList extends Google_Model
+{
+ public $listId;
+ protected $nestingLevelType = 'Google_Service_Slides_NestingLevel';
+ protected $nestingLevelDataType = 'map';
+
+ public function setListId($listId)
+ {
+ $this->listId = $listId;
+ }
+ public function getListId()
+ {
+ return $this->listId;
+ }
+ public function setNestingLevel($nestingLevel)
+ {
+ $this->nestingLevel = $nestingLevel;
+ }
+ public function getNestingLevel()
+ {
+ return $this->nestingLevel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SolidFill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SolidFill.php
new file mode 100644
index 00000000..beaff228
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SolidFill.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_SolidFill extends Google_Model
+{
+ public $alpha;
+ protected $colorType = 'Google_Service_Slides_OpaqueColor';
+ protected $colorDataType = '';
+
+ public function setAlpha($alpha)
+ {
+ $this->alpha = $alpha;
+ }
+ public function getAlpha()
+ {
+ return $this->alpha;
+ }
+ public function setColor(Google_Service_Slides_OpaqueColor $color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/StretchedPictureFill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/StretchedPictureFill.php
new file mode 100644
index 00000000..a85cda4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/StretchedPictureFill.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_StretchedPictureFill extends Google_Model
+{
+ public $contentUrl;
+ protected $sizeType = 'Google_Service_Slides_Size';
+ protected $sizeDataType = '';
+
+ public function setContentUrl($contentUrl)
+ {
+ $this->contentUrl = $contentUrl;
+ }
+ public function getContentUrl()
+ {
+ return $this->contentUrl;
+ }
+ public function setSize(Google_Service_Slides_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SubstringMatchCriteria.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SubstringMatchCriteria.php
new file mode 100644
index 00000000..7afce04f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/SubstringMatchCriteria.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_SubstringMatchCriteria extends Google_Model
+{
+ public $matchCase;
+ public $text;
+
+ public function setMatchCase($matchCase)
+ {
+ $this->matchCase = $matchCase;
+ }
+ public function getMatchCase()
+ {
+ return $this->matchCase;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Table.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Table.php
new file mode 100644
index 00000000..fd3d7cd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Table.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Table extends Google_Collection
+{
+ protected $collection_key = 'tableRows';
+ public $columns;
+ public $rows;
+ protected $tableColumnsType = 'Google_Service_Slides_TableColumnProperties';
+ protected $tableColumnsDataType = 'array';
+ protected $tableRowsType = 'Google_Service_Slides_TableRow';
+ protected $tableRowsDataType = 'array';
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setTableColumns($tableColumns)
+ {
+ $this->tableColumns = $tableColumns;
+ }
+ public function getTableColumns()
+ {
+ return $this->tableColumns;
+ }
+ public function setTableRows($tableRows)
+ {
+ $this->tableRows = $tableRows;
+ }
+ public function getTableRows()
+ {
+ return $this->tableRows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCell.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCell.php
new file mode 100644
index 00000000..69a431c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCell.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TableCell extends Google_Model
+{
+ public $columnSpan;
+ protected $locationType = 'Google_Service_Slides_TableCellLocation';
+ protected $locationDataType = '';
+ public $rowSpan;
+ protected $tableCellPropertiesType = 'Google_Service_Slides_TableCellProperties';
+ protected $tableCellPropertiesDataType = '';
+ protected $textType = 'Google_Service_Slides_TextContent';
+ protected $textDataType = '';
+
+ public function setColumnSpan($columnSpan)
+ {
+ $this->columnSpan = $columnSpan;
+ }
+ public function getColumnSpan()
+ {
+ return $this->columnSpan;
+ }
+ public function setLocation(Google_Service_Slides_TableCellLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setRowSpan($rowSpan)
+ {
+ $this->rowSpan = $rowSpan;
+ }
+ public function getRowSpan()
+ {
+ return $this->rowSpan;
+ }
+ public function setTableCellProperties(Google_Service_Slides_TableCellProperties $tableCellProperties)
+ {
+ $this->tableCellProperties = $tableCellProperties;
+ }
+ public function getTableCellProperties()
+ {
+ return $this->tableCellProperties;
+ }
+ public function setText(Google_Service_Slides_TextContent $text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellBackgroundFill.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellBackgroundFill.php
new file mode 100644
index 00000000..38ec818b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellBackgroundFill.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TableCellBackgroundFill extends Google_Model
+{
+ public $propertyState;
+ protected $solidFillType = 'Google_Service_Slides_SolidFill';
+ protected $solidFillDataType = '';
+
+ public function setPropertyState($propertyState)
+ {
+ $this->propertyState = $propertyState;
+ }
+ public function getPropertyState()
+ {
+ return $this->propertyState;
+ }
+ public function setSolidFill(Google_Service_Slides_SolidFill $solidFill)
+ {
+ $this->solidFill = $solidFill;
+ }
+ public function getSolidFill()
+ {
+ return $this->solidFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellLocation.php
new file mode 100644
index 00000000..fd111081
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellLocation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TableCellLocation extends Google_Model
+{
+ public $columnIndex;
+ public $rowIndex;
+
+ public function setColumnIndex($columnIndex)
+ {
+ $this->columnIndex = $columnIndex;
+ }
+ public function getColumnIndex()
+ {
+ return $this->columnIndex;
+ }
+ public function setRowIndex($rowIndex)
+ {
+ $this->rowIndex = $rowIndex;
+ }
+ public function getRowIndex()
+ {
+ return $this->rowIndex;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellProperties.php
new file mode 100644
index 00000000..59e6e639
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableCellProperties.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TableCellProperties extends Google_Model
+{
+ protected $tableCellBackgroundFillType = 'Google_Service_Slides_TableCellBackgroundFill';
+ protected $tableCellBackgroundFillDataType = '';
+
+ public function setTableCellBackgroundFill(Google_Service_Slides_TableCellBackgroundFill $tableCellBackgroundFill)
+ {
+ $this->tableCellBackgroundFill = $tableCellBackgroundFill;
+ }
+ public function getTableCellBackgroundFill()
+ {
+ return $this->tableCellBackgroundFill;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableColumnProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableColumnProperties.php
new file mode 100644
index 00000000..99d2f10c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableColumnProperties.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TableColumnProperties extends Google_Model
+{
+ protected $columnWidthType = 'Google_Service_Slides_Dimension';
+ protected $columnWidthDataType = '';
+
+ public function setColumnWidth(Google_Service_Slides_Dimension $columnWidth)
+ {
+ $this->columnWidth = $columnWidth;
+ }
+ public function getColumnWidth()
+ {
+ return $this->columnWidth;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRange.php
new file mode 100644
index 00000000..bc451847
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRange.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TableRange extends Google_Model
+{
+ public $columnSpan;
+ protected $locationType = 'Google_Service_Slides_TableCellLocation';
+ protected $locationDataType = '';
+ public $rowSpan;
+
+ public function setColumnSpan($columnSpan)
+ {
+ $this->columnSpan = $columnSpan;
+ }
+ public function getColumnSpan()
+ {
+ return $this->columnSpan;
+ }
+ public function setLocation(Google_Service_Slides_TableCellLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setRowSpan($rowSpan)
+ {
+ $this->rowSpan = $rowSpan;
+ }
+ public function getRowSpan()
+ {
+ return $this->rowSpan;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRow.php
new file mode 100644
index 00000000..41bce0f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TableRow.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TableRow extends Google_Collection
+{
+ protected $collection_key = 'tableCells';
+ protected $rowHeightType = 'Google_Service_Slides_Dimension';
+ protected $rowHeightDataType = '';
+ protected $tableCellsType = 'Google_Service_Slides_TableCell';
+ protected $tableCellsDataType = 'array';
+
+ public function setRowHeight(Google_Service_Slides_Dimension $rowHeight)
+ {
+ $this->rowHeight = $rowHeight;
+ }
+ public function getRowHeight()
+ {
+ return $this->rowHeight;
+ }
+ public function setTableCells($tableCells)
+ {
+ $this->tableCells = $tableCells;
+ }
+ public function getTableCells()
+ {
+ return $this->tableCells;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextContent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextContent.php
new file mode 100644
index 00000000..e4ec285d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextContent.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TextContent extends Google_Collection
+{
+ protected $collection_key = 'textElements';
+ protected $listsType = 'Google_Service_Slides_SlidesList';
+ protected $listsDataType = 'map';
+ protected $textElementsType = 'Google_Service_Slides_TextElement';
+ protected $textElementsDataType = 'array';
+
+ public function setLists($lists)
+ {
+ $this->lists = $lists;
+ }
+ public function getLists()
+ {
+ return $this->lists;
+ }
+ public function setTextElements($textElements)
+ {
+ $this->textElements = $textElements;
+ }
+ public function getTextElements()
+ {
+ return $this->textElements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextElement.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextElement.php
new file mode 100644
index 00000000..30b5c9bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextElement.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TextElement extends Google_Model
+{
+ protected $autoTextType = 'Google_Service_Slides_AutoText';
+ protected $autoTextDataType = '';
+ public $endIndex;
+ protected $paragraphMarkerType = 'Google_Service_Slides_ParagraphMarker';
+ protected $paragraphMarkerDataType = '';
+ public $startIndex;
+ protected $textRunType = 'Google_Service_Slides_TextRun';
+ protected $textRunDataType = '';
+
+ public function setAutoText(Google_Service_Slides_AutoText $autoText)
+ {
+ $this->autoText = $autoText;
+ }
+ public function getAutoText()
+ {
+ return $this->autoText;
+ }
+ public function setEndIndex($endIndex)
+ {
+ $this->endIndex = $endIndex;
+ }
+ public function getEndIndex()
+ {
+ return $this->endIndex;
+ }
+ public function setParagraphMarker(Google_Service_Slides_ParagraphMarker $paragraphMarker)
+ {
+ $this->paragraphMarker = $paragraphMarker;
+ }
+ public function getParagraphMarker()
+ {
+ return $this->paragraphMarker;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTextRun(Google_Service_Slides_TextRun $textRun)
+ {
+ $this->textRun = $textRun;
+ }
+ public function getTextRun()
+ {
+ return $this->textRun;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextRun.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextRun.php
new file mode 100644
index 00000000..979318fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextRun.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TextRun extends Google_Model
+{
+ public $content;
+ protected $styleType = 'Google_Service_Slides_TextStyle';
+ protected $styleDataType = '';
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setStyle(Google_Service_Slides_TextStyle $style)
+ {
+ $this->style = $style;
+ }
+ public function getStyle()
+ {
+ return $this->style;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextStyle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextStyle.php
new file mode 100644
index 00000000..407fe489
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/TextStyle.php
@@ -0,0 +1,134 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_TextStyle extends Google_Model
+{
+ protected $backgroundColorType = 'Google_Service_Slides_OptionalColor';
+ protected $backgroundColorDataType = '';
+ public $baselineOffset;
+ public $bold;
+ public $fontFamily;
+ protected $fontSizeType = 'Google_Service_Slides_Dimension';
+ protected $fontSizeDataType = '';
+ protected $foregroundColorType = 'Google_Service_Slides_OptionalColor';
+ protected $foregroundColorDataType = '';
+ public $italic;
+ protected $linkType = 'Google_Service_Slides_Link';
+ protected $linkDataType = '';
+ public $smallCaps;
+ public $strikethrough;
+ public $underline;
+ protected $weightedFontFamilyType = 'Google_Service_Slides_WeightedFontFamily';
+ protected $weightedFontFamilyDataType = '';
+
+ public function setBackgroundColor(Google_Service_Slides_OptionalColor $backgroundColor)
+ {
+ $this->backgroundColor = $backgroundColor;
+ }
+ public function getBackgroundColor()
+ {
+ return $this->backgroundColor;
+ }
+ public function setBaselineOffset($baselineOffset)
+ {
+ $this->baselineOffset = $baselineOffset;
+ }
+ public function getBaselineOffset()
+ {
+ return $this->baselineOffset;
+ }
+ public function setBold($bold)
+ {
+ $this->bold = $bold;
+ }
+ public function getBold()
+ {
+ return $this->bold;
+ }
+ public function setFontFamily($fontFamily)
+ {
+ $this->fontFamily = $fontFamily;
+ }
+ public function getFontFamily()
+ {
+ return $this->fontFamily;
+ }
+ public function setFontSize(Google_Service_Slides_Dimension $fontSize)
+ {
+ $this->fontSize = $fontSize;
+ }
+ public function getFontSize()
+ {
+ return $this->fontSize;
+ }
+ public function setForegroundColor(Google_Service_Slides_OptionalColor $foregroundColor)
+ {
+ $this->foregroundColor = $foregroundColor;
+ }
+ public function getForegroundColor()
+ {
+ return $this->foregroundColor;
+ }
+ public function setItalic($italic)
+ {
+ $this->italic = $italic;
+ }
+ public function getItalic()
+ {
+ return $this->italic;
+ }
+ public function setLink(Google_Service_Slides_Link $link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setSmallCaps($smallCaps)
+ {
+ $this->smallCaps = $smallCaps;
+ }
+ public function getSmallCaps()
+ {
+ return $this->smallCaps;
+ }
+ public function setStrikethrough($strikethrough)
+ {
+ $this->strikethrough = $strikethrough;
+ }
+ public function getStrikethrough()
+ {
+ return $this->strikethrough;
+ }
+ public function setUnderline($underline)
+ {
+ $this->underline = $underline;
+ }
+ public function getUnderline()
+ {
+ return $this->underline;
+ }
+ public function setWeightedFontFamily(Google_Service_Slides_WeightedFontFamily $weightedFontFamily)
+ {
+ $this->weightedFontFamily = $weightedFontFamily;
+ }
+ public function getWeightedFontFamily()
+ {
+ return $this->weightedFontFamily;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ThemeColorPair.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ThemeColorPair.php
new file mode 100644
index 00000000..8424997a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/ThemeColorPair.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_ThemeColorPair extends Google_Model
+{
+ protected $colorType = 'Google_Service_Slides_RgbColor';
+ protected $colorDataType = '';
+ public $type;
+
+ public function setColor(Google_Service_Slides_RgbColor $color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateImagePropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateImagePropertiesRequest.php
new file mode 100644
index 00000000..d4fc99d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateImagePropertiesRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateImagePropertiesRequest extends Google_Model
+{
+ public $fields;
+ protected $imagePropertiesType = 'Google_Service_Slides_ImageProperties';
+ protected $imagePropertiesDataType = '';
+ public $objectId;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setImageProperties(Google_Service_Slides_ImageProperties $imageProperties)
+ {
+ $this->imageProperties = $imageProperties;
+ }
+ public function getImageProperties()
+ {
+ return $this->imageProperties;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateLinePropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateLinePropertiesRequest.php
new file mode 100644
index 00000000..92c56e2c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateLinePropertiesRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateLinePropertiesRequest extends Google_Model
+{
+ public $fields;
+ protected $linePropertiesType = 'Google_Service_Slides_LineProperties';
+ protected $linePropertiesDataType = '';
+ public $objectId;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setLineProperties(Google_Service_Slides_LineProperties $lineProperties)
+ {
+ $this->lineProperties = $lineProperties;
+ }
+ public function getLineProperties()
+ {
+ return $this->lineProperties;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePageElementTransformRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePageElementTransformRequest.php
new file mode 100644
index 00000000..b4ec320e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePageElementTransformRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdatePageElementTransformRequest extends Google_Model
+{
+ public $applyMode;
+ public $objectId;
+ protected $transformType = 'Google_Service_Slides_AffineTransform';
+ protected $transformDataType = '';
+
+ public function setApplyMode($applyMode)
+ {
+ $this->applyMode = $applyMode;
+ }
+ public function getApplyMode()
+ {
+ return $this->applyMode;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setTransform(Google_Service_Slides_AffineTransform $transform)
+ {
+ $this->transform = $transform;
+ }
+ public function getTransform()
+ {
+ return $this->transform;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePagePropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePagePropertiesRequest.php
new file mode 100644
index 00000000..a4c33639
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdatePagePropertiesRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdatePagePropertiesRequest extends Google_Model
+{
+ public $fields;
+ public $objectId;
+ protected $pagePropertiesType = 'Google_Service_Slides_PageProperties';
+ protected $pagePropertiesDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setPageProperties(Google_Service_Slides_PageProperties $pageProperties)
+ {
+ $this->pageProperties = $pageProperties;
+ }
+ public function getPageProperties()
+ {
+ return $this->pageProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateParagraphStyleRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateParagraphStyleRequest.php
new file mode 100644
index 00000000..b0720d00
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateParagraphStyleRequest.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateParagraphStyleRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $fields;
+ public $objectId;
+ protected $styleType = 'Google_Service_Slides_ParagraphStyle';
+ protected $styleDataType = '';
+ protected $textRangeType = 'Google_Service_Slides_Range';
+ protected $textRangeDataType = '';
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setStyle(Google_Service_Slides_ParagraphStyle $style)
+ {
+ $this->style = $style;
+ }
+ public function getStyle()
+ {
+ return $this->style;
+ }
+ public function setTextRange(Google_Service_Slides_Range $textRange)
+ {
+ $this->textRange = $textRange;
+ }
+ public function getTextRange()
+ {
+ return $this->textRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateShapePropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateShapePropertiesRequest.php
new file mode 100644
index 00000000..bb3a3af5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateShapePropertiesRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateShapePropertiesRequest extends Google_Model
+{
+ public $fields;
+ public $objectId;
+ protected $shapePropertiesType = 'Google_Service_Slides_ShapeProperties';
+ protected $shapePropertiesDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setShapeProperties(Google_Service_Slides_ShapeProperties $shapeProperties)
+ {
+ $this->shapeProperties = $shapeProperties;
+ }
+ public function getShapeProperties()
+ {
+ return $this->shapeProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateSlidesPositionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateSlidesPositionRequest.php
new file mode 100644
index 00000000..b0f278d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateSlidesPositionRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateSlidesPositionRequest extends Google_Collection
+{
+ protected $collection_key = 'slideObjectIds';
+ public $insertionIndex;
+ public $slideObjectIds;
+
+ public function setInsertionIndex($insertionIndex)
+ {
+ $this->insertionIndex = $insertionIndex;
+ }
+ public function getInsertionIndex()
+ {
+ return $this->insertionIndex;
+ }
+ public function setSlideObjectIds($slideObjectIds)
+ {
+ $this->slideObjectIds = $slideObjectIds;
+ }
+ public function getSlideObjectIds()
+ {
+ return $this->slideObjectIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTableCellPropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTableCellPropertiesRequest.php
new file mode 100644
index 00000000..bf5d71fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTableCellPropertiesRequest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateTableCellPropertiesRequest extends Google_Model
+{
+ public $fields;
+ public $objectId;
+ protected $tableCellPropertiesType = 'Google_Service_Slides_TableCellProperties';
+ protected $tableCellPropertiesDataType = '';
+ protected $tableRangeType = 'Google_Service_Slides_TableRange';
+ protected $tableRangeDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setTableCellProperties(Google_Service_Slides_TableCellProperties $tableCellProperties)
+ {
+ $this->tableCellProperties = $tableCellProperties;
+ }
+ public function getTableCellProperties()
+ {
+ return $this->tableCellProperties;
+ }
+ public function setTableRange(Google_Service_Slides_TableRange $tableRange)
+ {
+ $this->tableRange = $tableRange;
+ }
+ public function getTableRange()
+ {
+ return $this->tableRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTextStyleRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTextStyleRequest.php
new file mode 100644
index 00000000..fb1995d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateTextStyleRequest.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateTextStyleRequest extends Google_Model
+{
+ protected $cellLocationType = 'Google_Service_Slides_TableCellLocation';
+ protected $cellLocationDataType = '';
+ public $fields;
+ public $objectId;
+ protected $styleType = 'Google_Service_Slides_TextStyle';
+ protected $styleDataType = '';
+ protected $textRangeType = 'Google_Service_Slides_Range';
+ protected $textRangeDataType = '';
+
+ public function setCellLocation(Google_Service_Slides_TableCellLocation $cellLocation)
+ {
+ $this->cellLocation = $cellLocation;
+ }
+ public function getCellLocation()
+ {
+ return $this->cellLocation;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setStyle(Google_Service_Slides_TextStyle $style)
+ {
+ $this->style = $style;
+ }
+ public function getStyle()
+ {
+ return $this->style;
+ }
+ public function setTextRange(Google_Service_Slides_Range $textRange)
+ {
+ $this->textRange = $textRange;
+ }
+ public function getTextRange()
+ {
+ return $this->textRange;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateVideoPropertiesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateVideoPropertiesRequest.php
new file mode 100644
index 00000000..3a0199b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/UpdateVideoPropertiesRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_UpdateVideoPropertiesRequest extends Google_Model
+{
+ public $fields;
+ public $objectId;
+ protected $videoPropertiesType = 'Google_Service_Slides_VideoProperties';
+ protected $videoPropertiesDataType = '';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setObjectId($objectId)
+ {
+ $this->objectId = $objectId;
+ }
+ public function getObjectId()
+ {
+ return $this->objectId;
+ }
+ public function setVideoProperties(Google_Service_Slides_VideoProperties $videoProperties)
+ {
+ $this->videoProperties = $videoProperties;
+ }
+ public function getVideoProperties()
+ {
+ return $this->videoProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Video.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Video.php
new file mode 100644
index 00000000..66d976c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/Video.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_Video extends Google_Model
+{
+ public $id;
+ public $source;
+ public $url;
+ protected $videoPropertiesType = 'Google_Service_Slides_VideoProperties';
+ protected $videoPropertiesDataType = '';
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSource($source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setVideoProperties(Google_Service_Slides_VideoProperties $videoProperties)
+ {
+ $this->videoProperties = $videoProperties;
+ }
+ public function getVideoProperties()
+ {
+ return $this->videoProperties;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/VideoProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/VideoProperties.php
new file mode 100644
index 00000000..9f75bcba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/VideoProperties.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_VideoProperties extends Google_Model
+{
+ protected $outlineType = 'Google_Service_Slides_Outline';
+ protected $outlineDataType = '';
+
+ public function setOutline(Google_Service_Slides_Outline $outline)
+ {
+ $this->outline = $outline;
+ }
+ public function getOutline()
+ {
+ return $this->outline;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WeightedFontFamily.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WeightedFontFamily.php
new file mode 100644
index 00000000..324142ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WeightedFontFamily.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_WeightedFontFamily extends Google_Model
+{
+ public $fontFamily;
+ public $weight;
+
+ public function setFontFamily($fontFamily)
+ {
+ $this->fontFamily = $fontFamily;
+ }
+ public function getFontFamily()
+ {
+ return $this->fontFamily;
+ }
+ public function setWeight($weight)
+ {
+ $this->weight = $weight;
+ }
+ public function getWeight()
+ {
+ return $this->weight;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WordArt.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WordArt.php
new file mode 100644
index 00000000..52f84ddb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WordArt.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_WordArt extends Google_Model
+{
+ public $renderedText;
+
+ public function setRenderedText($renderedText)
+ {
+ $this->renderedText = $renderedText;
+ }
+ public function getRenderedText()
+ {
+ return $this->renderedText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WriteControl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WriteControl.php
new file mode 100644
index 00000000..f3d55588
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Slides/WriteControl.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Slides_WriteControl extends Google_Model
+{
+ public $requiredRevisionId;
+
+ public function setRequiredRevisionId($requiredRevisionId)
+ {
+ $this->requiredRevisionId = $requiredRevisionId;
+ }
+ public function getRequiredRevisionId()
+ {
+ return $this->requiredRevisionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner.php
new file mode 100644
index 00000000..66750806
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner.php
@@ -0,0 +1,541 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Spanner (v1).
+ *
+ * <p>
+ * Cloud Spanner is a managed, mission-critical, globally consistent and
+ * scalable relational database service.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/spanner/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Spanner extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects_instanceConfigs;
+ public $projects_instances;
+ public $projects_instances_databases;
+ public $projects_instances_databases_operations;
+ public $projects_instances_databases_sessions;
+ public $projects_instances_operations;
+
+ /**
+ * Constructs the internal representation of the Spanner service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://spanner.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'spanner';
+
+ $this->projects_instanceConfigs = new Google_Service_Spanner_Resource_ProjectsInstanceConfigs(
+ $this,
+ $this->serviceName,
+ 'instanceConfigs',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/instanceConfigs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_instances = new Google_Service_Spanner_Resource_ProjectsInstances(
+ $this,
+ $this->serviceName,
+ 'instances',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/instances',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/instances',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_instances_databases = new Google_Service_Spanner_Resource_ProjectsInstancesDatabases(
+ $this,
+ $this->serviceName,
+ 'databases',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/{+parent}/databases',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'dropDatabase' => array(
+ 'path' => 'v1/{+database}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getDdl' => array(
+ 'path' => 'v1/{+database}/ddl',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'v1/{+resource}:getIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/databases',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'v1/{+resource}:setIamPolicy',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'v1/{+resource}:testIamPermissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resource' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'updateDdl' => array(
+ 'path' => 'v1/{+database}/ddl',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_instances_databases_operations = new Google_Service_Spanner_Resource_ProjectsInstancesDatabasesOperations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_instances_databases_sessions = new Google_Service_Spanner_Resource_ProjectsInstancesDatabasesSessions(
+ $this,
+ $this->serviceName,
+ 'sessions',
+ array(
+ 'methods' => array(
+ 'beginTransaction' => array(
+ 'path' => 'v1/{+session}:beginTransaction',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'session' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'commit' => array(
+ 'path' => 'v1/{+session}:commit',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'session' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'create' => array(
+ 'path' => 'v1/{+database}/sessions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'database' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'executeSql' => array(
+ 'path' => 'v1/{+session}:executeSql',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'session' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'executeStreamingSql' => array(
+ 'path' => 'v1/{+session}:executeStreamingSql',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'session' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'read' => array(
+ 'path' => 'v1/{+session}:read',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'session' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'rollback' => array(
+ 'path' => 'v1/{+session}:rollback',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'session' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'streamingRead' => array(
+ 'path' => 'v1/{+session}:streamingRead',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'session' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_instances_operations = new Google_Service_Spanner_Resource_ProjectsInstancesOperations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditConfig.php
new file mode 100644
index 00000000..ce1f192d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditConfig.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_AuditConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ protected $auditLogConfigsType = 'Google_Service_Spanner_AuditLogConfig';
+ protected $auditLogConfigsDataType = 'array';
+ public $exemptedMembers;
+ public $service;
+
+ public function setAuditLogConfigs($auditLogConfigs)
+ {
+ $this->auditLogConfigs = $auditLogConfigs;
+ }
+ public function getAuditLogConfigs()
+ {
+ return $this->auditLogConfigs;
+ }
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditLogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditLogConfig.php
new file mode 100644
index 00000000..78d7a059
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/AuditLogConfig.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_AuditLogConfig extends Google_Collection
+{
+ protected $collection_key = 'exemptedMembers';
+ public $exemptedMembers;
+ public $logType;
+
+ public function setExemptedMembers($exemptedMembers)
+ {
+ $this->exemptedMembers = $exemptedMembers;
+ }
+ public function getExemptedMembers()
+ {
+ return $this->exemptedMembers;
+ }
+ public function setLogType($logType)
+ {
+ $this->logType = $logType;
+ }
+ public function getLogType()
+ {
+ return $this->logType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/BeginTransactionRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/BeginTransactionRequest.php
new file mode 100644
index 00000000..ceb465a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/BeginTransactionRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_BeginTransactionRequest extends Google_Model
+{
+ protected $optionsType = 'Google_Service_Spanner_TransactionOptions';
+ protected $optionsDataType = '';
+
+ public function setOptions(Google_Service_Spanner_TransactionOptions $options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Binding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Binding.php
new file mode 100644
index 00000000..ad108a2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Binding.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Binding extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ChildLink.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ChildLink.php
new file mode 100644
index 00000000..5a9025c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ChildLink.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ChildLink extends Google_Model
+{
+ public $childIndex;
+ public $type;
+ public $variable;
+
+ public function setChildIndex($childIndex)
+ {
+ $this->childIndex = $childIndex;
+ }
+ public function getChildIndex()
+ {
+ return $this->childIndex;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVariable($variable)
+ {
+ $this->variable = $variable;
+ }
+ public function getVariable()
+ {
+ return $this->variable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CloudAuditOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CloudAuditOptions.php
new file mode 100644
index 00000000..b68c441a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CloudAuditOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CloudAuditOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitRequest.php
new file mode 100644
index 00000000..f8c5e48e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitRequest.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CommitRequest extends Google_Collection
+{
+ protected $collection_key = 'mutations';
+ protected $mutationsType = 'Google_Service_Spanner_Mutation';
+ protected $mutationsDataType = 'array';
+ protected $singleUseTransactionType = 'Google_Service_Spanner_TransactionOptions';
+ protected $singleUseTransactionDataType = '';
+ public $transactionId;
+
+ public function setMutations($mutations)
+ {
+ $this->mutations = $mutations;
+ }
+ public function getMutations()
+ {
+ return $this->mutations;
+ }
+ public function setSingleUseTransaction(Google_Service_Spanner_TransactionOptions $singleUseTransaction)
+ {
+ $this->singleUseTransaction = $singleUseTransaction;
+ }
+ public function getSingleUseTransaction()
+ {
+ return $this->singleUseTransaction;
+ }
+ public function setTransactionId($transactionId)
+ {
+ $this->transactionId = $transactionId;
+ }
+ public function getTransactionId()
+ {
+ return $this->transactionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitResponse.php
new file mode 100644
index 00000000..43b27026
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CommitResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CommitResponse extends Google_Model
+{
+ public $commitTimestamp;
+
+ public function setCommitTimestamp($commitTimestamp)
+ {
+ $this->commitTimestamp = $commitTimestamp;
+ }
+ public function getCommitTimestamp()
+ {
+ return $this->commitTimestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Condition.php
new file mode 100644
index 00000000..a191309b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Condition.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Condition extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $iam;
+ public $op;
+ public $svc;
+ public $sys;
+ public $value;
+ public $values;
+
+ public function setIam($iam)
+ {
+ $this->iam = $iam;
+ }
+ public function getIam()
+ {
+ return $this->iam;
+ }
+ public function setOp($op)
+ {
+ $this->op = $op;
+ }
+ public function getOp()
+ {
+ return $this->op;
+ }
+ public function setSvc($svc)
+ {
+ $this->svc = $svc;
+ }
+ public function getSvc()
+ {
+ return $this->svc;
+ }
+ public function setSys($sys)
+ {
+ $this->sys = $sys;
+ }
+ public function getSys()
+ {
+ return $this->sys;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CounterOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CounterOptions.php
new file mode 100644
index 00000000..8a66d6de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CounterOptions.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CounterOptions extends Google_Model
+{
+ public $field;
+ public $metric;
+
+ public function setField($field)
+ {
+ $this->field = $field;
+ }
+ public function getField()
+ {
+ return $this->field;
+ }
+ public function setMetric($metric)
+ {
+ $this->metric = $metric;
+ }
+ public function getMetric()
+ {
+ return $this->metric;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseMetadata.php
new file mode 100644
index 00000000..8d2b3796
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseMetadata.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CreateDatabaseMetadata extends Google_Model
+{
+ public $database;
+
+ public function setDatabase($database)
+ {
+ $this->database = $database;
+ }
+ public function getDatabase()
+ {
+ return $this->database;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseRequest.php
new file mode 100644
index 00000000..829a77a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateDatabaseRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CreateDatabaseRequest extends Google_Collection
+{
+ protected $collection_key = 'extraStatements';
+ public $createStatement;
+ public $extraStatements;
+
+ public function setCreateStatement($createStatement)
+ {
+ $this->createStatement = $createStatement;
+ }
+ public function getCreateStatement()
+ {
+ return $this->createStatement;
+ }
+ public function setExtraStatements($extraStatements)
+ {
+ $this->extraStatements = $extraStatements;
+ }
+ public function getExtraStatements()
+ {
+ return $this->extraStatements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceMetadata.php
new file mode 100644
index 00000000..85aa65c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceMetadata.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CreateInstanceMetadata extends Google_Model
+{
+ public $cancelTime;
+ public $endTime;
+ protected $instanceType = 'Google_Service_Spanner_Instance';
+ protected $instanceDataType = '';
+ public $startTime;
+
+ public function setCancelTime($cancelTime)
+ {
+ $this->cancelTime = $cancelTime;
+ }
+ public function getCancelTime()
+ {
+ return $this->cancelTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setInstance(Google_Service_Spanner_Instance $instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceRequest.php
new file mode 100644
index 00000000..5d4ea1bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/CreateInstanceRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_CreateInstanceRequest extends Google_Model
+{
+ protected $instanceType = 'Google_Service_Spanner_Instance';
+ protected $instanceDataType = '';
+ public $instanceId;
+
+ public function setInstance(Google_Service_Spanner_Instance $instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setInstanceId($instanceId)
+ {
+ $this->instanceId = $instanceId;
+ }
+ public function getInstanceId()
+ {
+ return $this->instanceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/DataAccessOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/DataAccessOptions.php
new file mode 100644
index 00000000..a5d279c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/DataAccessOptions.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_DataAccessOptions extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Database.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Database.php
new file mode 100644
index 00000000..f1737e52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Database.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Database extends Google_Model
+{
+ public $name;
+ public $state;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Delete.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Delete.php
new file mode 100644
index 00000000..be3a760c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Delete.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Delete extends Google_Model
+{
+ protected $keySetType = 'Google_Service_Spanner_KeySet';
+ protected $keySetDataType = '';
+ public $table;
+
+ public function setKeySet(Google_Service_Spanner_KeySet $keySet)
+ {
+ $this->keySet = $keySet;
+ }
+ public function getKeySet()
+ {
+ return $this->keySet;
+ }
+ public function setTable($table)
+ {
+ $this->table = $table;
+ }
+ public function getTable()
+ {
+ return $this->table;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php
new file mode 100644
index 00000000..c3840061
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ExecuteSqlRequest.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ExecuteSqlRequest extends Google_Model
+{
+ protected $paramTypesType = 'Google_Service_Spanner_Type';
+ protected $paramTypesDataType = 'map';
+ public $params;
+ public $queryMode;
+ public $resumeToken;
+ public $sql;
+ protected $transactionType = 'Google_Service_Spanner_TransactionSelector';
+ protected $transactionDataType = '';
+
+ public function setParamTypes($paramTypes)
+ {
+ $this->paramTypes = $paramTypes;
+ }
+ public function getParamTypes()
+ {
+ return $this->paramTypes;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+ public function setQueryMode($queryMode)
+ {
+ $this->queryMode = $queryMode;
+ }
+ public function getQueryMode()
+ {
+ return $this->queryMode;
+ }
+ public function setResumeToken($resumeToken)
+ {
+ $this->resumeToken = $resumeToken;
+ }
+ public function getResumeToken()
+ {
+ return $this->resumeToken;
+ }
+ public function setSql($sql)
+ {
+ $this->sql = $sql;
+ }
+ public function getSql()
+ {
+ return $this->sql;
+ }
+ public function setTransaction(Google_Service_Spanner_TransactionSelector $transaction)
+ {
+ $this->transaction = $transaction;
+ }
+ public function getTransaction()
+ {
+ return $this->transaction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Field.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Field.php
new file mode 100644
index 00000000..5e45b3c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Field.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Field extends Google_Model
+{
+ public $name;
+ protected $typeType = 'Google_Service_Spanner_Type';
+ protected $typeDataType = '';
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType(Google_Service_Spanner_Type $type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetDatabaseDdlResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetDatabaseDdlResponse.php
new file mode 100644
index 00000000..1870d1f0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetDatabaseDdlResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_GetDatabaseDdlResponse extends Google_Collection
+{
+ protected $collection_key = 'statements';
+ public $statements;
+
+ public function setStatements($statements)
+ {
+ $this->statements = $statements;
+ }
+ public function getStatements()
+ {
+ return $this->statements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetIamPolicyRequest.php
new file mode 100644
index 00000000..f8dbbcc8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/GetIamPolicyRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_GetIamPolicyRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Instance.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Instance.php
new file mode 100644
index 00000000..7550ee39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Instance.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Instance extends Google_Model
+{
+ public $config;
+ public $displayName;
+ public $labels;
+ public $name;
+ public $nodeCount;
+ public $state;
+
+ public function setConfig($config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNodeCount($nodeCount)
+ {
+ $this->nodeCount = $nodeCount;
+ }
+ public function getNodeCount()
+ {
+ return $this->nodeCount;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/InstanceConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/InstanceConfig.php
new file mode 100644
index 00000000..38c5d9e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/InstanceConfig.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_InstanceConfig extends Google_Model
+{
+ public $displayName;
+ public $name;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeyRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeyRange.php
new file mode 100644
index 00000000..6b74eee7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeyRange.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_KeyRange extends Google_Collection
+{
+ protected $collection_key = 'startOpen';
+ public $endClosed;
+ public $endOpen;
+ public $startClosed;
+ public $startOpen;
+
+ public function setEndClosed($endClosed)
+ {
+ $this->endClosed = $endClosed;
+ }
+ public function getEndClosed()
+ {
+ return $this->endClosed;
+ }
+ public function setEndOpen($endOpen)
+ {
+ $this->endOpen = $endOpen;
+ }
+ public function getEndOpen()
+ {
+ return $this->endOpen;
+ }
+ public function setStartClosed($startClosed)
+ {
+ $this->startClosed = $startClosed;
+ }
+ public function getStartClosed()
+ {
+ return $this->startClosed;
+ }
+ public function setStartOpen($startOpen)
+ {
+ $this->startOpen = $startOpen;
+ }
+ public function getStartOpen()
+ {
+ return $this->startOpen;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeySet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeySet.php
new file mode 100644
index 00000000..9970900a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/KeySet.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_KeySet extends Google_Collection
+{
+ protected $collection_key = 'ranges';
+ public $all;
+ public $keys;
+ protected $rangesType = 'Google_Service_Spanner_KeyRange';
+ protected $rangesDataType = 'array';
+
+ public function setAll($all)
+ {
+ $this->all = $all;
+ }
+ public function getAll()
+ {
+ return $this->all;
+ }
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+ public function setRanges($ranges)
+ {
+ $this->ranges = $ranges;
+ }
+ public function getRanges()
+ {
+ return $this->ranges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListDatabasesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListDatabasesResponse.php
new file mode 100644
index 00000000..fc955dac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListDatabasesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ListDatabasesResponse extends Google_Collection
+{
+ protected $collection_key = 'databases';
+ protected $databasesType = 'Google_Service_Spanner_Database';
+ protected $databasesDataType = 'array';
+ public $nextPageToken;
+
+ public function setDatabases($databases)
+ {
+ $this->databases = $databases;
+ }
+ public function getDatabases()
+ {
+ return $this->databases;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstanceConfigsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstanceConfigsResponse.php
new file mode 100644
index 00000000..6900bb7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstanceConfigsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ListInstanceConfigsResponse extends Google_Collection
+{
+ protected $collection_key = 'instanceConfigs';
+ protected $instanceConfigsType = 'Google_Service_Spanner_InstanceConfig';
+ protected $instanceConfigsDataType = 'array';
+ public $nextPageToken;
+
+ public function setInstanceConfigs($instanceConfigs)
+ {
+ $this->instanceConfigs = $instanceConfigs;
+ }
+ public function getInstanceConfigs()
+ {
+ return $this->instanceConfigs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstancesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstancesResponse.php
new file mode 100644
index 00000000..89771c18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListInstancesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ListInstancesResponse extends Google_Collection
+{
+ protected $collection_key = 'instances';
+ protected $instancesType = 'Google_Service_Spanner_Instance';
+ protected $instancesDataType = 'array';
+ public $nextPageToken;
+
+ public function setInstances($instances)
+ {
+ $this->instances = $instances;
+ }
+ public function getInstances()
+ {
+ return $this->instances;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListOperationsResponse.php
new file mode 100644
index 00000000..60967570
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_Spanner_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/LogConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/LogConfig.php
new file mode 100644
index 00000000..cef56047
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/LogConfig.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_LogConfig extends Google_Model
+{
+ protected $cloudAuditType = 'Google_Service_Spanner_CloudAuditOptions';
+ protected $cloudAuditDataType = '';
+ protected $counterType = 'Google_Service_Spanner_CounterOptions';
+ protected $counterDataType = '';
+ protected $dataAccessType = 'Google_Service_Spanner_DataAccessOptions';
+ protected $dataAccessDataType = '';
+
+ public function setCloudAudit(Google_Service_Spanner_CloudAuditOptions $cloudAudit)
+ {
+ $this->cloudAudit = $cloudAudit;
+ }
+ public function getCloudAudit()
+ {
+ return $this->cloudAudit;
+ }
+ public function setCounter(Google_Service_Spanner_CounterOptions $counter)
+ {
+ $this->counter = $counter;
+ }
+ public function getCounter()
+ {
+ return $this->counter;
+ }
+ public function setDataAccess(Google_Service_Spanner_DataAccessOptions $dataAccess)
+ {
+ $this->dataAccess = $dataAccess;
+ }
+ public function getDataAccess()
+ {
+ return $this->dataAccess;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Mutation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Mutation.php
new file mode 100644
index 00000000..41c618c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Mutation.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Mutation extends Google_Model
+{
+ protected $deleteType = 'Google_Service_Spanner_Delete';
+ protected $deleteDataType = '';
+ protected $insertType = 'Google_Service_Spanner_Write';
+ protected $insertDataType = '';
+ protected $insertOrUpdateType = 'Google_Service_Spanner_Write';
+ protected $insertOrUpdateDataType = '';
+ protected $replaceType = 'Google_Service_Spanner_Write';
+ protected $replaceDataType = '';
+ protected $updateType = 'Google_Service_Spanner_Write';
+ protected $updateDataType = '';
+
+ public function setDelete(Google_Service_Spanner_Delete $delete)
+ {
+ $this->delete = $delete;
+ }
+ public function getDelete()
+ {
+ return $this->delete;
+ }
+ public function setInsert(Google_Service_Spanner_Write $insert)
+ {
+ $this->insert = $insert;
+ }
+ public function getInsert()
+ {
+ return $this->insert;
+ }
+ public function setInsertOrUpdate(Google_Service_Spanner_Write $insertOrUpdate)
+ {
+ $this->insertOrUpdate = $insertOrUpdate;
+ }
+ public function getInsertOrUpdate()
+ {
+ return $this->insertOrUpdate;
+ }
+ public function setReplace(Google_Service_Spanner_Write $replace)
+ {
+ $this->replace = $replace;
+ }
+ public function getReplace()
+ {
+ return $this->replace;
+ }
+ public function setUpdate(Google_Service_Spanner_Write $update)
+ {
+ $this->update = $update;
+ }
+ public function getUpdate()
+ {
+ return $this->update;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Operation.php
new file mode 100644
index 00000000..fb5b8812
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_Spanner_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_Spanner_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PartialResultSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PartialResultSet.php
new file mode 100644
index 00000000..61904c58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PartialResultSet.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_PartialResultSet extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $chunkedValue;
+ protected $metadataType = 'Google_Service_Spanner_ResultSetMetadata';
+ protected $metadataDataType = '';
+ public $resumeToken;
+ protected $statsType = 'Google_Service_Spanner_ResultSetStats';
+ protected $statsDataType = '';
+ public $values;
+
+ public function setChunkedValue($chunkedValue)
+ {
+ $this->chunkedValue = $chunkedValue;
+ }
+ public function getChunkedValue()
+ {
+ return $this->chunkedValue;
+ }
+ public function setMetadata(Google_Service_Spanner_ResultSetMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setResumeToken($resumeToken)
+ {
+ $this->resumeToken = $resumeToken;
+ }
+ public function getResumeToken()
+ {
+ return $this->resumeToken;
+ }
+ public function setStats(Google_Service_Spanner_ResultSetStats $stats)
+ {
+ $this->stats = $stats;
+ }
+ public function getStats()
+ {
+ return $this->stats;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PlanNode.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PlanNode.php
new file mode 100644
index 00000000..a4d08dd2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/PlanNode.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_PlanNode extends Google_Collection
+{
+ protected $collection_key = 'childLinks';
+ protected $childLinksType = 'Google_Service_Spanner_ChildLink';
+ protected $childLinksDataType = 'array';
+ public $displayName;
+ public $executionStats;
+ public $index;
+ public $kind;
+ public $metadata;
+ protected $shortRepresentationType = 'Google_Service_Spanner_ShortRepresentation';
+ protected $shortRepresentationDataType = '';
+
+ public function setChildLinks($childLinks)
+ {
+ $this->childLinks = $childLinks;
+ }
+ public function getChildLinks()
+ {
+ return $this->childLinks;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setExecutionStats($executionStats)
+ {
+ $this->executionStats = $executionStats;
+ }
+ public function getExecutionStats()
+ {
+ return $this->executionStats;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setShortRepresentation(Google_Service_Spanner_ShortRepresentation $shortRepresentation)
+ {
+ $this->shortRepresentation = $shortRepresentation;
+ }
+ public function getShortRepresentation()
+ {
+ return $this->shortRepresentation;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Policy.php
new file mode 100644
index 00000000..4e851430
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Policy.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Policy extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $auditConfigsType = 'Google_Service_Spanner_AuditConfig';
+ protected $auditConfigsDataType = 'array';
+ protected $bindingsType = 'Google_Service_Spanner_Binding';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $iamOwned;
+ protected $rulesType = 'Google_Service_Spanner_Rule';
+ protected $rulesDataType = 'array';
+ public $version;
+
+ public function setAuditConfigs($auditConfigs)
+ {
+ $this->auditConfigs = $auditConfigs;
+ }
+ public function getAuditConfigs()
+ {
+ return $this->auditConfigs;
+ }
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setIamOwned($iamOwned)
+ {
+ $this->iamOwned = $iamOwned;
+ }
+ public function getIamOwned()
+ {
+ return $this->iamOwned;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/QueryPlan.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/QueryPlan.php
new file mode 100644
index 00000000..4f6868ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/QueryPlan.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_QueryPlan extends Google_Collection
+{
+ protected $collection_key = 'planNodes';
+ protected $planNodesType = 'Google_Service_Spanner_PlanNode';
+ protected $planNodesDataType = 'array';
+
+ public function setPlanNodes($planNodes)
+ {
+ $this->planNodes = $planNodes;
+ }
+ public function getPlanNodes()
+ {
+ return $this->planNodes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadOnly.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadOnly.php
new file mode 100644
index 00000000..1e770c88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadOnly.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ReadOnly extends Google_Model
+{
+ public $exactStaleness;
+ public $maxStaleness;
+ public $minReadTimestamp;
+ public $readTimestamp;
+ public $returnReadTimestamp;
+ public $strong;
+
+ public function setExactStaleness($exactStaleness)
+ {
+ $this->exactStaleness = $exactStaleness;
+ }
+ public function getExactStaleness()
+ {
+ return $this->exactStaleness;
+ }
+ public function setMaxStaleness($maxStaleness)
+ {
+ $this->maxStaleness = $maxStaleness;
+ }
+ public function getMaxStaleness()
+ {
+ return $this->maxStaleness;
+ }
+ public function setMinReadTimestamp($minReadTimestamp)
+ {
+ $this->minReadTimestamp = $minReadTimestamp;
+ }
+ public function getMinReadTimestamp()
+ {
+ return $this->minReadTimestamp;
+ }
+ public function setReadTimestamp($readTimestamp)
+ {
+ $this->readTimestamp = $readTimestamp;
+ }
+ public function getReadTimestamp()
+ {
+ return $this->readTimestamp;
+ }
+ public function setReturnReadTimestamp($returnReadTimestamp)
+ {
+ $this->returnReadTimestamp = $returnReadTimestamp;
+ }
+ public function getReturnReadTimestamp()
+ {
+ return $this->returnReadTimestamp;
+ }
+ public function setStrong($strong)
+ {
+ $this->strong = $strong;
+ }
+ public function getStrong()
+ {
+ return $this->strong;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadRequest.php
new file mode 100644
index 00000000..a79cb037
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadRequest.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ReadRequest extends Google_Collection
+{
+ protected $collection_key = 'columns';
+ public $columns;
+ public $index;
+ protected $keySetType = 'Google_Service_Spanner_KeySet';
+ protected $keySetDataType = '';
+ public $limit;
+ public $resumeToken;
+ public $table;
+ protected $transactionType = 'Google_Service_Spanner_TransactionSelector';
+ protected $transactionDataType = '';
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setKeySet(Google_Service_Spanner_KeySet $keySet)
+ {
+ $this->keySet = $keySet;
+ }
+ public function getKeySet()
+ {
+ return $this->keySet;
+ }
+ public function setLimit($limit)
+ {
+ $this->limit = $limit;
+ }
+ public function getLimit()
+ {
+ return $this->limit;
+ }
+ public function setResumeToken($resumeToken)
+ {
+ $this->resumeToken = $resumeToken;
+ }
+ public function getResumeToken()
+ {
+ return $this->resumeToken;
+ }
+ public function setTable($table)
+ {
+ $this->table = $table;
+ }
+ public function getTable()
+ {
+ return $this->table;
+ }
+ public function setTransaction(Google_Service_Spanner_TransactionSelector $transaction)
+ {
+ $this->transaction = $transaction;
+ }
+ public function getTransaction()
+ {
+ return $this->transaction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadWrite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadWrite.php
new file mode 100644
index 00000000..f051fa5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ReadWrite.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ReadWrite extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/Projects.php
new file mode 100644
index 00000000..0c4686f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spannerService = new Google_Service_Spanner(...);
+ * $projects = $spannerService->projects;
+ * </code>
+ */
+class Google_Service_Spanner_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstanceConfigs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstanceConfigs.php
new file mode 100644
index 00000000..f385289d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstanceConfigs.php
@@ -0,0 +1,65 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instanceConfigs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spannerService = new Google_Service_Spanner(...);
+ * $instanceConfigs = $spannerService->instanceConfigs;
+ * </code>
+ */
+class Google_Service_Spanner_Resource_ProjectsInstanceConfigs extends Google_Service_Resource
+{
+ /**
+ * Gets information about a particular instance configuration.
+ * (instanceConfigs.get)
+ *
+ * @param string $name Required. The name of the requested instance
+ * configuration. Values are of the form `projects//instanceConfigs/`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_InstanceConfig
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Spanner_InstanceConfig");
+ }
+ /**
+ * Lists the supported instance configurations for a given project.
+ * (instanceConfigs.listProjectsInstanceConfigs)
+ *
+ * @param string $parent Required. The name of the project for which a list of
+ * supported instance configurations is requested. Values are of the form
+ * `projects/`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken If non-empty, `page_token` should contain a
+ * next_page_token from a previous ListInstanceConfigsResponse.
+ * @opt_param int pageSize Number of instance configurations to be returned in
+ * the response. If 0 or less, defaults to the server's maximum allowed page
+ * size.
+ * @return Google_Service_Spanner_ListInstanceConfigsResponse
+ */
+ public function listProjectsInstanceConfigs($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Spanner_ListInstanceConfigsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstances.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstances.php
new file mode 100644
index 00000000..6e11f52a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstances.php
@@ -0,0 +1,253 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "instances" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spannerService = new Google_Service_Spanner(...);
+ * $instances = $spannerService->instances;
+ * </code>
+ */
+class Google_Service_Spanner_Resource_ProjectsInstances extends Google_Service_Resource
+{
+ /**
+ * Creates an instance and begins preparing it to begin serving. The returned
+ * long-running operation can be used to track the progress of preparing the new
+ * instance. The instance name is assigned by the caller. If the named instance
+ * already exists, `CreateInstance` returns `ALREADY_EXISTS`.
+ *
+ * Immediately upon completion of this request:
+ *
+ * * The instance is readable via the API, with all requested attributes
+ * but no allocated resources. Its state is `CREATING`.
+ *
+ * Until completion of the returned operation:
+ *
+ * * Cancelling the operation renders the instance immediately unreadable
+ * via the API. * The instance can be deleted. * All other attempts to
+ * modify the instance are rejected.
+ *
+ * Upon completion of the returned operation:
+ *
+ * * Billing for all successfully-allocated resources begins (some types
+ * may have lower than the requested levels). * Databases can be created in
+ * the instance. * The instance's allocated resource levels are readable via
+ * the API. * The instance's state becomes `READY`.
+ *
+ * The returned long-running operation will have a name of the format
+ * `/operations/` and can be used to track creation of the instance. The
+ * metadata field type is CreateInstanceMetadata. The response field type is
+ * Instance, if successful. (instances.create)
+ *
+ * @param string $parent Required. The name of the project in which to create
+ * the instance. Values are of the form `projects/`.
+ * @param Google_Service_Spanner_CreateInstanceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Operation
+ */
+ public function create($parent, Google_Service_Spanner_CreateInstanceRequest $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Spanner_Operation");
+ }
+ /**
+ * Deletes an instance.
+ *
+ * Immediately upon completion of the request:
+ *
+ * * Billing ceases for all of the instance's reserved resources.
+ *
+ * Soon afterward:
+ *
+ * * The instance and *all of its databases* immediately and irrevocably
+ * disappear from the API. All data in the databases is permanently deleted.
+ * (instances.delete)
+ *
+ * @param string $name Required. The name of the instance to be deleted. Values
+ * are of the form `projects//instances/`
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Gets information about a particular instance. (instances.get)
+ *
+ * @param string $name Required. The name of the requested instance. Values are
+ * of the form `projects//instances/`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Instance
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Spanner_Instance");
+ }
+ /**
+ * Gets the access control policy for an instance resource. Returns an empty
+ * policy if an instance exists but does not have a policy set.
+ *
+ * Authorization requires `spanner.instances.getIamPolicy` on resource.
+ * (instances.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The Cloud Spanner resource for which the
+ * policy is being retrieved. The format is `projects//instances/` for instance
+ * resources and `projects//instances//databases/` for database resources.
+ * @param Google_Service_Spanner_GetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Policy
+ */
+ public function getIamPolicy($resource, Google_Service_Spanner_GetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Spanner_Policy");
+ }
+ /**
+ * Lists all instances in the given project. (instances.listProjectsInstances)
+ *
+ * @param string $parent Required. The name of the project for which a list of
+ * instances is requested. Values are of the form `projects/`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken If non-empty, `page_token` should contain a
+ * next_page_token from a previous ListInstancesResponse.
+ * @opt_param int pageSize Number of instances to be returned in the response.
+ * If 0 or less, defaults to the server's maximum allowed page size.
+ * @opt_param string filter An expression for filtering the results of the
+ * request. Filter rules are case insensitive. The fields eligible for filtering
+ * are:
+ *
+ * * name * display_name * labels.key where key is the name of a label
+ *
+ * Some examples of using filters are:
+ *
+ * * name:* --> The instance has a name. * name:Howl --> The instance's name
+ * contains the string "howl". * name:HOWL --> Equivalent to above. *
+ * NAME:howl --> Equivalent to above. * labels.env:* --> The instance has the
+ * label "env". * labels.env:dev --> The instance has the label "env" and the
+ * value of the label contains the string "dev". *
+ * name:howl labels.env:dev --> The instance's name contains "howl" and
+ * it has the label "env" with its value
+ * containing "dev".
+ * @return Google_Service_Spanner_ListInstancesResponse
+ */
+ public function listProjectsInstances($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Spanner_ListInstancesResponse");
+ }
+ /**
+ * Updates an instance, and begins allocating or releasing resources as
+ * requested. The returned long-running operation can be used to track the
+ * progress of updating the instance. If the named instance does not exist,
+ * returns `NOT_FOUND`.
+ *
+ * Immediately upon completion of this request:
+ *
+ * * For resource types for which a decrease in the instance's allocation
+ * has been requested, billing is based on the newly-requested level.
+ *
+ * Until completion of the returned operation:
+ *
+ * * Cancelling the operation sets its metadata's cancel_time, and begins
+ * restoring resources to their pre-request values. The operation is
+ * guaranteed to succeed at undoing all resource changes, after which point
+ * it terminates with a `CANCELLED` status. * All other attempts to modify the
+ * instance are rejected. * Reading the instance via the API continues to give
+ * the pre-request resource levels.
+ *
+ * Upon completion of the returned operation:
+ *
+ * * Billing begins for all successfully-allocated resources (some types
+ * may have lower than the requested levels). * All newly-reserved resources
+ * are available for serving the instance's tables. * The instance's new
+ * resource levels are readable via the API.
+ *
+ * The returned long-running operation will have a name of the format
+ * `/operations/` and can be used to track the instance modification. The
+ * metadata field type is UpdateInstanceMetadata. The response field type is
+ * Instance, if successful.
+ *
+ * Authorization requires `spanner.instances.update` permission on resource
+ * name. (instances.patch)
+ *
+ * @param string $name Required. A unique identifier for the instance, which
+ * cannot be changed after the instance is created. Values are of the form
+ * `projects//instances/a-z*[a-z0-9]`. The final segment of the name must be
+ * between 6 and 30 characters in length.
+ * @param Google_Service_Spanner_UpdateInstanceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Operation
+ */
+ public function patch($name, Google_Service_Spanner_UpdateInstanceRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Spanner_Operation");
+ }
+ /**
+ * Sets the access control policy on an instance resource. Replaces any existing
+ * policy.
+ *
+ * Authorization requires `spanner.instances.setIamPolicy` on resource.
+ * (instances.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The Cloud Spanner resource for which the
+ * policy is being set. The format is `projects//instances/` for instance
+ * resources and `projects//instances//databases/` for databases resources.
+ * @param Google_Service_Spanner_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_Spanner_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Spanner_Policy");
+ }
+ /**
+ * Returns permissions that the caller has on the specified instance resource.
+ *
+ * Attempting this RPC on a non-existent Cloud Spanner instance resource will
+ * result in a NOT_FOUND error if the user has `spanner.instances.list`
+ * permission on the containing Google Cloud Project. Otherwise returns an empty
+ * set of permissions. (instances.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The Cloud Spanner resource for which
+ * permissions are being tested. The format is `projects//instances/` for
+ * instance resources and `projects//instances//databases/` for database
+ * resources.
+ * @param Google_Service_Spanner_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_Spanner_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Spanner_TestIamPermissionsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabases.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabases.php
new file mode 100644
index 00000000..c74a4fe4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabases.php
@@ -0,0 +1,188 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "databases" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spannerService = new Google_Service_Spanner(...);
+ * $databases = $spannerService->databases;
+ * </code>
+ */
+class Google_Service_Spanner_Resource_ProjectsInstancesDatabases extends Google_Service_Resource
+{
+ /**
+ * Creates a new Cloud Spanner database and starts to prepare it for serving.
+ * The returned long-running operation will have a name of the format
+ * `/operations/` and can be used to track preparation of the database. The
+ * metadata field type is CreateDatabaseMetadata. The response field type is
+ * Database, if successful. (databases.create)
+ *
+ * @param string $parent Required. The name of the instance that will serve the
+ * new database. Values are of the form `projects//instances/`.
+ * @param Google_Service_Spanner_CreateDatabaseRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Operation
+ */
+ public function create($parent, Google_Service_Spanner_CreateDatabaseRequest $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Spanner_Operation");
+ }
+ /**
+ * Drops (aka deletes) a Cloud Spanner database. (databases.dropDatabase)
+ *
+ * @param string $database Required. The database to be dropped.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function dropDatabase($database, $optParams = array())
+ {
+ $params = array('database' => $database);
+ $params = array_merge($params, $optParams);
+ return $this->call('dropDatabase', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Gets the state of a Cloud Spanner database. (databases.get)
+ *
+ * @param string $name Required. The name of the requested database. Values are
+ * of the form `projects//instances//databases/`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Database
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Spanner_Database");
+ }
+ /**
+ * Returns the schema of a Cloud Spanner database as a list of formatted DDL
+ * statements. This method does not show pending schema updates, those may be
+ * queried using the Operations API. (databases.getDdl)
+ *
+ * @param string $database Required. The database whose schema we wish to get.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_GetDatabaseDdlResponse
+ */
+ public function getDdl($database, $optParams = array())
+ {
+ $params = array('database' => $database);
+ $params = array_merge($params, $optParams);
+ return $this->call('getDdl', array($params), "Google_Service_Spanner_GetDatabaseDdlResponse");
+ }
+ /**
+ * Gets the access control policy for a database resource. Returns an empty
+ * policy if a database exists but does not have a policy set.
+ *
+ * Authorization requires `spanner.databases.getIamPolicy` permission on
+ * resource. (databases.getIamPolicy)
+ *
+ * @param string $resource REQUIRED: The Cloud Spanner resource for which the
+ * policy is being retrieved. The format is `projects//instances/` for instance
+ * resources and `projects//instances//databases/` for database resources.
+ * @param Google_Service_Spanner_GetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Policy
+ */
+ public function getIamPolicy($resource, Google_Service_Spanner_GetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Spanner_Policy");
+ }
+ /**
+ * Lists Cloud Spanner databases. (databases.listProjectsInstancesDatabases)
+ *
+ * @param string $parent Required. The instance whose databases should be
+ * listed. Values are of the form `projects//instances/`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken If non-empty, `page_token` should contain a
+ * next_page_token from a previous ListDatabasesResponse.
+ * @opt_param int pageSize Number of databases to be returned in the response.
+ * If 0 or less, defaults to the server's maximum allowed page size.
+ * @return Google_Service_Spanner_ListDatabasesResponse
+ */
+ public function listProjectsInstancesDatabases($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Spanner_ListDatabasesResponse");
+ }
+ /**
+ * Sets the access control policy on a database resource. Replaces any existing
+ * policy.
+ *
+ * Authorization requires `spanner.databases.setIamPolicy` permission on
+ * resource. (databases.setIamPolicy)
+ *
+ * @param string $resource REQUIRED: The Cloud Spanner resource for which the
+ * policy is being set. The format is `projects//instances/` for instance
+ * resources and `projects//instances//databases/` for databases resources.
+ * @param Google_Service_Spanner_SetIamPolicyRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Policy
+ */
+ public function setIamPolicy($resource, Google_Service_Spanner_SetIamPolicyRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Spanner_Policy");
+ }
+ /**
+ * Returns permissions that the caller has on the specified database resource.
+ *
+ * Attempting this RPC on a non-existent Cloud Spanner database will result in a
+ * NOT_FOUND error if the user has `spanner.databases.list` permission on the
+ * containing Cloud Spanner instance. Otherwise returns an empty set of
+ * permissions. (databases.testIamPermissions)
+ *
+ * @param string $resource REQUIRED: The Cloud Spanner resource for which
+ * permissions are being tested. The format is `projects//instances/` for
+ * instance resources and `projects//instances//databases/` for database
+ * resources.
+ * @param Google_Service_Spanner_TestIamPermissionsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($resource, Google_Service_Spanner_TestIamPermissionsRequest $postBody, $optParams = array())
+ {
+ $params = array('resource' => $resource, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Spanner_TestIamPermissionsResponse");
+ }
+ /**
+ * Updates the schema of a Cloud Spanner database by creating/altering/dropping
+ * tables, columns, indexes, etc. The returned long-running operation will have
+ * a name of the format `/operations/` and can be used to track execution of the
+ * schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The
+ * operation has no response. (databases.updateDdl)
+ *
+ * @param string $database Required. The database to update.
+ * @param Google_Service_Spanner_UpdateDatabaseDdlRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Operation
+ */
+ public function updateDdl($database, Google_Service_Spanner_UpdateDatabaseDdlRequest $postBody, $optParams = array())
+ {
+ $params = array('database' => $database, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateDdl', array($params), "Google_Service_Spanner_Operation");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php
new file mode 100644
index 00000000..1e4b6955
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesOperations.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spannerService = new Google_Service_Spanner(...);
+ * $operations = $spannerService->operations;
+ * </code>
+ */
+class Google_Service_Spanner_Resource_ProjectsInstancesDatabasesOperations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function cancel($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Spanner_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listProjectsInstancesDatabasesOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string filter The standard list filter.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_Spanner_ListOperationsResponse
+ */
+ public function listProjectsInstancesDatabasesOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Spanner_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php
new file mode 100644
index 00000000..67959e0a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesDatabasesSessions.php
@@ -0,0 +1,231 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sessions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spannerService = new Google_Service_Spanner(...);
+ * $sessions = $spannerService->sessions;
+ * </code>
+ */
+class Google_Service_Spanner_Resource_ProjectsInstancesDatabasesSessions extends Google_Service_Resource
+{
+ /**
+ * Begins a new transaction. This step can often be skipped: Read, ExecuteSql
+ * and Commit can begin a new transaction as a side-effect.
+ * (sessions.beginTransaction)
+ *
+ * @param string $session Required. The session in which the transaction runs.
+ * @param Google_Service_Spanner_BeginTransactionRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Transaction
+ */
+ public function beginTransaction($session, Google_Service_Spanner_BeginTransactionRequest $postBody, $optParams = array())
+ {
+ $params = array('session' => $session, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('beginTransaction', array($params), "Google_Service_Spanner_Transaction");
+ }
+ /**
+ * Commits a transaction. The request includes the mutations to be applied to
+ * rows in the database.
+ *
+ * `Commit` might return an `ABORTED` error. This can occur at any time;
+ * commonly, the cause is conflicts with concurrent transactions. However, it
+ * can also happen for a variety of other reasons. If `Commit` returns
+ * `ABORTED`, the caller should re-attempt the transaction from the beginning,
+ * re-using the same session. (sessions.commit)
+ *
+ * @param string $session Required. The session in which the transaction to be
+ * committed is running.
+ * @param Google_Service_Spanner_CommitRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_CommitResponse
+ */
+ public function commit($session, Google_Service_Spanner_CommitRequest $postBody, $optParams = array())
+ {
+ $params = array('session' => $session, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('commit', array($params), "Google_Service_Spanner_CommitResponse");
+ }
+ /**
+ * Creates a new session. A session can be used to perform transactions that
+ * read and/or modify data in a Cloud Spanner database. Sessions are meant to be
+ * reused for many consecutive transactions.
+ *
+ * Sessions can only execute one transaction at a time. To execute multiple
+ * concurrent read-write/write-only transactions, create multiple sessions. Note
+ * that standalone reads and queries use a transaction internally, and count
+ * toward the one transaction limit.
+ *
+ * Cloud Spanner limits the number of sessions that can exist at any given time;
+ * thus, it is a good idea to delete idle and/or unneeded sessions. Aside from
+ * explicit deletes, Cloud Spanner can delete sessions for which no operations
+ * are sent for more than an hour, or due to internal errors. If a session is
+ * deleted, requests to it return `NOT_FOUND`.
+ *
+ * Idle sessions can be kept alive by sending a trivial SQL query periodically,
+ * e.g., `"SELECT 1"`. (sessions.create)
+ *
+ * @param string $database Required. The database in which the new session is
+ * created.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Session
+ */
+ public function create($database, $optParams = array())
+ {
+ $params = array('database' => $database);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Spanner_Session");
+ }
+ /**
+ * Ends a session, releasing server resources associated with it.
+ * (sessions.delete)
+ *
+ * @param string $name Required. The name of the session to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Executes an SQL query, returning all rows in a single reply. This method
+ * cannot be used to return a result set larger than 10 MiB; if the query yields
+ * more data than that, the query fails with a `FAILED_PRECONDITION` error.
+ *
+ * Queries inside read-write transactions might return `ABORTED`. If this
+ * occurs, the application should restart the transaction from the beginning.
+ * See Transaction for more details.
+ *
+ * Larger result sets can be fetched in streaming fashion by calling
+ * ExecuteStreamingSql instead. (sessions.executeSql)
+ *
+ * @param string $session Required. The session in which the SQL query should be
+ * performed.
+ * @param Google_Service_Spanner_ExecuteSqlRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_ResultSet
+ */
+ public function executeSql($session, Google_Service_Spanner_ExecuteSqlRequest $postBody, $optParams = array())
+ {
+ $params = array('session' => $session, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('executeSql', array($params), "Google_Service_Spanner_ResultSet");
+ }
+ /**
+ * Like ExecuteSql, except returns the result set as a stream. Unlike
+ * ExecuteSql, there is no limit on the size of the returned result set.
+ * However, no individual row in the result set can exceed 100 MiB, and no
+ * column value can exceed 10 MiB. (sessions.executeStreamingSql)
+ *
+ * @param string $session Required. The session in which the SQL query should be
+ * performed.
+ * @param Google_Service_Spanner_ExecuteSqlRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_PartialResultSet
+ */
+ public function executeStreamingSql($session, Google_Service_Spanner_ExecuteSqlRequest $postBody, $optParams = array())
+ {
+ $params = array('session' => $session, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('executeStreamingSql', array($params), "Google_Service_Spanner_PartialResultSet");
+ }
+ /**
+ * Gets a session. Returns `NOT_FOUND` if the session does not exist. This is
+ * mainly useful for determining whether a session is still alive.
+ * (sessions.get)
+ *
+ * @param string $name Required. The name of the session to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Session
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Spanner_Session");
+ }
+ /**
+ * Reads rows from the database using key lookups and scans, as a simple
+ * key/value style alternative to ExecuteSql. This method cannot be used to
+ * return a result set larger than 10 MiB; if the read matches more data than
+ * that, the read fails with a `FAILED_PRECONDITION` error.
+ *
+ * Reads inside read-write transactions might return `ABORTED`. If this occurs,
+ * the application should restart the transaction from the beginning. See
+ * Transaction for more details.
+ *
+ * Larger result sets can be yielded in streaming fashion by calling
+ * StreamingRead instead. (sessions.read)
+ *
+ * @param string $session Required. The session in which the read should be
+ * performed.
+ * @param Google_Service_Spanner_ReadRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_ResultSet
+ */
+ public function read($session, Google_Service_Spanner_ReadRequest $postBody, $optParams = array())
+ {
+ $params = array('session' => $session, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('read', array($params), "Google_Service_Spanner_ResultSet");
+ }
+ /**
+ * Rolls back a transaction, releasing any locks it holds. It is a good idea to
+ * call this for any transaction that includes one or more Read or ExecuteSql
+ * requests and ultimately decides not to commit.
+ *
+ * `Rollback` returns `OK` if it successfully aborts the transaction, the
+ * transaction was already aborted, or the transaction is not found. `Rollback`
+ * never returns `ABORTED`. (sessions.rollback)
+ *
+ * @param string $session Required. The session in which the transaction to roll
+ * back is running.
+ * @param Google_Service_Spanner_RollbackRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function rollback($session, Google_Service_Spanner_RollbackRequest $postBody, $optParams = array())
+ {
+ $params = array('session' => $session, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('rollback', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Like Read, except returns the result set as a stream. Unlike Read, there is
+ * no limit on the size of the returned result set. However, no individual row
+ * in the result set can exceed 100 MiB, and no column value can exceed 10 MiB.
+ * (sessions.streamingRead)
+ *
+ * @param string $session Required. The session in which the read should be
+ * performed.
+ * @param Google_Service_Spanner_ReadRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_PartialResultSet
+ */
+ public function streamingRead($session, Google_Service_Spanner_ReadRequest $postBody, $optParams = array())
+ {
+ $params = array('session' => $session, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('streamingRead', array($params), "Google_Service_Spanner_PartialResultSet");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesOperations.php
new file mode 100644
index 00000000..420aff65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Resource/ProjectsInstancesOperations.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spannerService = new Google_Service_Spanner(...);
+ * $operations = $spannerService->operations;
+ * </code>
+ */
+class Google_Service_Spanner_Resource_ProjectsInstancesOperations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function cancel($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_SpannerEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Spanner_SpannerEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spanner_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Spanner_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listProjectsInstancesOperations)
+ *
+ * @param string $name The name of the operation collection.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @return Google_Service_Spanner_ListOperationsResponse
+ */
+ public function listProjectsInstancesOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Spanner_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSet.php
new file mode 100644
index 00000000..3a9b8f5a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSet.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ResultSet extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $metadataType = 'Google_Service_Spanner_ResultSetMetadata';
+ protected $metadataDataType = '';
+ public $rows;
+ protected $statsType = 'Google_Service_Spanner_ResultSetStats';
+ protected $statsDataType = '';
+
+ public function setMetadata(Google_Service_Spanner_ResultSetMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+ public function setStats(Google_Service_Spanner_ResultSetStats $stats)
+ {
+ $this->stats = $stats;
+ }
+ public function getStats()
+ {
+ return $this->stats;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetMetadata.php
new file mode 100644
index 00000000..11420c85
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetMetadata.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ResultSetMetadata extends Google_Model
+{
+ protected $rowTypeType = 'Google_Service_Spanner_StructType';
+ protected $rowTypeDataType = '';
+ protected $transactionType = 'Google_Service_Spanner_Transaction';
+ protected $transactionDataType = '';
+
+ public function setRowType(Google_Service_Spanner_StructType $rowType)
+ {
+ $this->rowType = $rowType;
+ }
+ public function getRowType()
+ {
+ return $this->rowType;
+ }
+ public function setTransaction(Google_Service_Spanner_Transaction $transaction)
+ {
+ $this->transaction = $transaction;
+ }
+ public function getTransaction()
+ {
+ return $this->transaction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php
new file mode 100644
index 00000000..a73f1f74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ResultSetStats.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ResultSetStats extends Google_Model
+{
+ protected $queryPlanType = 'Google_Service_Spanner_QueryPlan';
+ protected $queryPlanDataType = '';
+ public $queryStats;
+
+ public function setQueryPlan(Google_Service_Spanner_QueryPlan $queryPlan)
+ {
+ $this->queryPlan = $queryPlan;
+ }
+ public function getQueryPlan()
+ {
+ return $this->queryPlan;
+ }
+ public function setQueryStats($queryStats)
+ {
+ $this->queryStats = $queryStats;
+ }
+ public function getQueryStats()
+ {
+ return $this->queryStats;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/RollbackRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/RollbackRequest.php
new file mode 100644
index 00000000..0be0fb94
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/RollbackRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_RollbackRequest extends Google_Model
+{
+ public $transactionId;
+
+ public function setTransactionId($transactionId)
+ {
+ $this->transactionId = $transactionId;
+ }
+ public function getTransactionId()
+ {
+ return $this->transactionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Rule.php
new file mode 100644
index 00000000..f18b4535
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Rule.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Rule extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $action;
+ protected $conditionsType = 'Google_Service_Spanner_Condition';
+ protected $conditionsDataType = 'array';
+ public $description;
+ public $in;
+ protected $logConfigType = 'Google_Service_Spanner_LogConfig';
+ protected $logConfigDataType = 'array';
+ public $notIn;
+ public $permissions;
+
+ public function setAction($action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIn($in)
+ {
+ $this->in = $in;
+ }
+ public function getIn()
+ {
+ return $this->in;
+ }
+ public function setLogConfig($logConfig)
+ {
+ $this->logConfig = $logConfig;
+ }
+ public function getLogConfig()
+ {
+ return $this->logConfig;
+ }
+ public function setNotIn($notIn)
+ {
+ $this->notIn = $notIn;
+ }
+ public function getNotIn()
+ {
+ return $this->notIn;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Session.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Session.php
new file mode 100644
index 00000000..db026987
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Session.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Session extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SetIamPolicyRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SetIamPolicyRequest.php
new file mode 100644
index 00000000..81e0e7d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SetIamPolicyRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_SetIamPolicyRequest extends Google_Model
+{
+ protected $policyType = 'Google_Service_Spanner_Policy';
+ protected $policyDataType = '';
+ public $updateMask;
+
+ public function setPolicy(Google_Service_Spanner_Policy $policy)
+ {
+ $this->policy = $policy;
+ }
+ public function getPolicy()
+ {
+ return $this->policy;
+ }
+ public function setUpdateMask($updateMask)
+ {
+ $this->updateMask = $updateMask;
+ }
+ public function getUpdateMask()
+ {
+ return $this->updateMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ShortRepresentation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ShortRepresentation.php
new file mode 100644
index 00000000..7237aa9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/ShortRepresentation.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_ShortRepresentation extends Google_Model
+{
+ public $description;
+ public $subqueries;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setSubqueries($subqueries)
+ {
+ $this->subqueries = $subqueries;
+ }
+ public function getSubqueries()
+ {
+ return $this->subqueries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SpannerEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SpannerEmpty.php
new file mode 100644
index 00000000..5971dd81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/SpannerEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_SpannerEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Status.php
new file mode 100644
index 00000000..81f68f10
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/StructType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/StructType.php
new file mode 100644
index 00000000..23b6ba38
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/StructType.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_StructType extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ protected $fieldsType = 'Google_Service_Spanner_Field';
+ protected $fieldsDataType = 'array';
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsRequest.php
new file mode 100644
index 00000000..c2e7ecf0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_TestIamPermissionsRequest extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..c8448717
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TestIamPermissionsResponse.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $permissions;
+
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Transaction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Transaction.php
new file mode 100644
index 00000000..3b099486
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Transaction.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Transaction extends Google_Model
+{
+ public $id;
+ public $readTimestamp;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setReadTimestamp($readTimestamp)
+ {
+ $this->readTimestamp = $readTimestamp;
+ }
+ public function getReadTimestamp()
+ {
+ return $this->readTimestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php
new file mode 100644
index 00000000..67996659
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionOptions.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_TransactionOptions extends Google_Model
+{
+ protected $readOnlyType = 'Google_Service_Spanner_ReadOnly';
+ protected $readOnlyDataType = '';
+ protected $readWriteType = 'Google_Service_Spanner_ReadWrite';
+ protected $readWriteDataType = '';
+
+ public function setReadOnly(Google_Service_Spanner_ReadOnly $readOnly)
+ {
+ $this->readOnly = $readOnly;
+ }
+ public function getReadOnly()
+ {
+ return $this->readOnly;
+ }
+ public function setReadWrite(Google_Service_Spanner_ReadWrite $readWrite)
+ {
+ $this->readWrite = $readWrite;
+ }
+ public function getReadWrite()
+ {
+ return $this->readWrite;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionSelector.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionSelector.php
new file mode 100644
index 00000000..17021fce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/TransactionSelector.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_TransactionSelector extends Google_Model
+{
+ protected $beginType = 'Google_Service_Spanner_TransactionOptions';
+ protected $beginDataType = '';
+ public $id;
+ protected $singleUseType = 'Google_Service_Spanner_TransactionOptions';
+ protected $singleUseDataType = '';
+
+ public function setBegin(Google_Service_Spanner_TransactionOptions $begin)
+ {
+ $this->begin = $begin;
+ }
+ public function getBegin()
+ {
+ return $this->begin;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSingleUse(Google_Service_Spanner_TransactionOptions $singleUse)
+ {
+ $this->singleUse = $singleUse;
+ }
+ public function getSingleUse()
+ {
+ return $this->singleUse;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Type.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Type.php
new file mode 100644
index 00000000..92ae0313
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Type.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Type extends Google_Model
+{
+ protected $arrayElementTypeType = 'Google_Service_Spanner_Type';
+ protected $arrayElementTypeDataType = '';
+ public $code;
+ protected $structTypeType = 'Google_Service_Spanner_StructType';
+ protected $structTypeDataType = '';
+
+ public function setArrayElementType(Google_Service_Spanner_Type $arrayElementType)
+ {
+ $this->arrayElementType = $arrayElementType;
+ }
+ public function getArrayElementType()
+ {
+ return $this->arrayElementType;
+ }
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setStructType(Google_Service_Spanner_StructType $structType)
+ {
+ $this->structType = $structType;
+ }
+ public function getStructType()
+ {
+ return $this->structType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlMetadata.php
new file mode 100644
index 00000000..0c848dbe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlMetadata.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_UpdateDatabaseDdlMetadata extends Google_Collection
+{
+ protected $collection_key = 'statements';
+ public $commitTimestamps;
+ public $database;
+ public $statements;
+
+ public function setCommitTimestamps($commitTimestamps)
+ {
+ $this->commitTimestamps = $commitTimestamps;
+ }
+ public function getCommitTimestamps()
+ {
+ return $this->commitTimestamps;
+ }
+ public function setDatabase($database)
+ {
+ $this->database = $database;
+ }
+ public function getDatabase()
+ {
+ return $this->database;
+ }
+ public function setStatements($statements)
+ {
+ $this->statements = $statements;
+ }
+ public function getStatements()
+ {
+ return $this->statements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlRequest.php
new file mode 100644
index 00000000..9bbe073f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateDatabaseDdlRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_UpdateDatabaseDdlRequest extends Google_Collection
+{
+ protected $collection_key = 'statements';
+ public $operationId;
+ public $statements;
+
+ public function setOperationId($operationId)
+ {
+ $this->operationId = $operationId;
+ }
+ public function getOperationId()
+ {
+ return $this->operationId;
+ }
+ public function setStatements($statements)
+ {
+ $this->statements = $statements;
+ }
+ public function getStatements()
+ {
+ return $this->statements;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceMetadata.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceMetadata.php
new file mode 100644
index 00000000..6a909d33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceMetadata.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_UpdateInstanceMetadata extends Google_Model
+{
+ public $cancelTime;
+ public $endTime;
+ protected $instanceType = 'Google_Service_Spanner_Instance';
+ protected $instanceDataType = '';
+ public $startTime;
+
+ public function setCancelTime($cancelTime)
+ {
+ $this->cancelTime = $cancelTime;
+ }
+ public function getCancelTime()
+ {
+ return $this->cancelTime;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setInstance(Google_Service_Spanner_Instance $instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceRequest.php
new file mode 100644
index 00000000..d3dc0068
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/UpdateInstanceRequest.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_UpdateInstanceRequest extends Google_Model
+{
+ public $fieldMask;
+ protected $instanceType = 'Google_Service_Spanner_Instance';
+ protected $instanceDataType = '';
+
+ public function setFieldMask($fieldMask)
+ {
+ $this->fieldMask = $fieldMask;
+ }
+ public function getFieldMask()
+ {
+ return $this->fieldMask;
+ }
+ public function setInstance(Google_Service_Spanner_Instance $instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Write.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Write.php
new file mode 100644
index 00000000..c4fcfe07
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spanner/Write.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spanner_Write extends Google_Collection
+{
+ protected $collection_key = 'values';
+ public $columns;
+ public $table;
+ public $values;
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setTable($table)
+ {
+ $this->table = $table;
+ }
+ public function getTable()
+ {
+ return $this->table;
+ }
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum.php
new file mode 100644
index 00000000..7109a61b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Spectrum (v1explorer).
+ *
+ * <p>
+ * API for spectrum-management functions.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="http://developers.google.com/spectrum" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Spectrum extends Google_Service
+{
+
+
+ public $paws;
+
+ /**
+ * Constructs the internal representation of the Spectrum service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'spectrum/v1explorer/paws/';
+ $this->version = 'v1explorer';
+ $this->serviceName = 'spectrum';
+
+ $this->paws = new Google_Service_Spectrum_Resource_Paws(
+ $this,
+ $this->serviceName,
+ 'paws',
+ array(
+ 'methods' => array(
+ 'getSpectrum' => array(
+ 'path' => 'getSpectrum',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'getSpectrumBatch' => array(
+ 'path' => 'getSpectrumBatch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'init' => array(
+ 'path' => 'init',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'notifySpectrumUse' => array(
+ 'path' => 'notifySpectrumUse',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'register' => array(
+ 'path' => 'register',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'verifyDevice' => array(
+ 'path' => 'verifyDevice',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/AntennaCharacteristics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/AntennaCharacteristics.php
new file mode 100644
index 00000000..ac4f9651
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/AntennaCharacteristics.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_AntennaCharacteristics extends Google_Model
+{
+ public $height;
+ public $heightType;
+ public $heightUncertainty;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setHeightType($heightType)
+ {
+ $this->heightType = $heightType;
+ }
+ public function getHeightType()
+ {
+ return $this->heightType;
+ }
+ public function setHeightUncertainty($heightUncertainty)
+ {
+ $this->heightUncertainty = $heightUncertainty;
+ }
+ public function getHeightUncertainty()
+ {
+ return $this->heightUncertainty;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DatabaseSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DatabaseSpec.php
new file mode 100644
index 00000000..eaead15d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DatabaseSpec.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_DatabaseSpec extends Google_Model
+{
+ public $name;
+ public $uri;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DbUpdateSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DbUpdateSpec.php
new file mode 100644
index 00000000..7252bc2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DbUpdateSpec.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_DbUpdateSpec extends Google_Collection
+{
+ protected $collection_key = 'databases';
+ protected $databasesType = 'Google_Service_Spectrum_DatabaseSpec';
+ protected $databasesDataType = 'array';
+
+ public function setDatabases($databases)
+ {
+ $this->databases = $databases;
+ }
+ public function getDatabases()
+ {
+ return $this->databases;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceCapabilities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceCapabilities.php
new file mode 100644
index 00000000..3039fc9a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceCapabilities.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_DeviceCapabilities extends Google_Collection
+{
+ protected $collection_key = 'frequencyRanges';
+ protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange';
+ protected $frequencyRangesDataType = 'array';
+
+ public function setFrequencyRanges($frequencyRanges)
+ {
+ $this->frequencyRanges = $frequencyRanges;
+ }
+ public function getFrequencyRanges()
+ {
+ return $this->frequencyRanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceDescriptor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceDescriptor.php
new file mode 100644
index 00000000..555d9df1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceDescriptor.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_DeviceDescriptor extends Google_Collection
+{
+ protected $collection_key = 'rulesetIds';
+ public $etsiEnDeviceCategory;
+ public $etsiEnDeviceEmissionsClass;
+ public $etsiEnDeviceType;
+ public $etsiEnTechnologyId;
+ public $fccId;
+ public $fccTvbdDeviceType;
+ public $manufacturerId;
+ public $modelId;
+ public $rulesetIds;
+ public $serialNumber;
+
+ public function setEtsiEnDeviceCategory($etsiEnDeviceCategory)
+ {
+ $this->etsiEnDeviceCategory = $etsiEnDeviceCategory;
+ }
+ public function getEtsiEnDeviceCategory()
+ {
+ return $this->etsiEnDeviceCategory;
+ }
+ public function setEtsiEnDeviceEmissionsClass($etsiEnDeviceEmissionsClass)
+ {
+ $this->etsiEnDeviceEmissionsClass = $etsiEnDeviceEmissionsClass;
+ }
+ public function getEtsiEnDeviceEmissionsClass()
+ {
+ return $this->etsiEnDeviceEmissionsClass;
+ }
+ public function setEtsiEnDeviceType($etsiEnDeviceType)
+ {
+ $this->etsiEnDeviceType = $etsiEnDeviceType;
+ }
+ public function getEtsiEnDeviceType()
+ {
+ return $this->etsiEnDeviceType;
+ }
+ public function setEtsiEnTechnologyId($etsiEnTechnologyId)
+ {
+ $this->etsiEnTechnologyId = $etsiEnTechnologyId;
+ }
+ public function getEtsiEnTechnologyId()
+ {
+ return $this->etsiEnTechnologyId;
+ }
+ public function setFccId($fccId)
+ {
+ $this->fccId = $fccId;
+ }
+ public function getFccId()
+ {
+ return $this->fccId;
+ }
+ public function setFccTvbdDeviceType($fccTvbdDeviceType)
+ {
+ $this->fccTvbdDeviceType = $fccTvbdDeviceType;
+ }
+ public function getFccTvbdDeviceType()
+ {
+ return $this->fccTvbdDeviceType;
+ }
+ public function setManufacturerId($manufacturerId)
+ {
+ $this->manufacturerId = $manufacturerId;
+ }
+ public function getManufacturerId()
+ {
+ return $this->manufacturerId;
+ }
+ public function setModelId($modelId)
+ {
+ $this->modelId = $modelId;
+ }
+ public function getModelId()
+ {
+ return $this->modelId;
+ }
+ public function setRulesetIds($rulesetIds)
+ {
+ $this->rulesetIds = $rulesetIds;
+ }
+ public function getRulesetIds()
+ {
+ return $this->rulesetIds;
+ }
+ public function setSerialNumber($serialNumber)
+ {
+ $this->serialNumber = $serialNumber;
+ }
+ public function getSerialNumber()
+ {
+ return $this->serialNumber;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceOwner.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceOwner.php
new file mode 100644
index 00000000..9e15e502
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceOwner.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_DeviceOwner extends Google_Model
+{
+ protected $operatorType = 'Google_Service_Spectrum_Vcard';
+ protected $operatorDataType = '';
+ protected $ownerType = 'Google_Service_Spectrum_Vcard';
+ protected $ownerDataType = '';
+
+ public function setOperator(Google_Service_Spectrum_Vcard $operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+ public function setOwner(Google_Service_Spectrum_Vcard $owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceValidity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceValidity.php
new file mode 100644
index 00000000..763d9b27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/DeviceValidity.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_DeviceValidity extends Google_Model
+{
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ public $isValid;
+ public $reason;
+
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setIsValid($isValid)
+ {
+ $this->isValid = $isValid;
+ }
+ public function getIsValid()
+ {
+ return $this->isValid;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/EventTime.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/EventTime.php
new file mode 100644
index 00000000..16835fb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/EventTime.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_EventTime extends Google_Model
+{
+ public $startTime;
+ public $stopTime;
+
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStopTime($stopTime)
+ {
+ $this->stopTime = $stopTime;
+ }
+ public function getStopTime()
+ {
+ return $this->stopTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/FrequencyRange.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/FrequencyRange.php
new file mode 100644
index 00000000..1c92156f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/FrequencyRange.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_FrequencyRange extends Google_Model
+{
+ public $channelId;
+ public $maxPowerDBm;
+ public $startHz;
+ public $stopHz;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setMaxPowerDBm($maxPowerDBm)
+ {
+ $this->maxPowerDBm = $maxPowerDBm;
+ }
+ public function getMaxPowerDBm()
+ {
+ return $this->maxPowerDBm;
+ }
+ public function setStartHz($startHz)
+ {
+ $this->startHz = $startHz;
+ }
+ public function getStartHz()
+ {
+ return $this->startHz;
+ }
+ public function setStopHz($stopHz)
+ {
+ $this->stopHz = $stopHz;
+ }
+ public function getStopHz()
+ {
+ return $this->stopHz;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocation.php
new file mode 100644
index 00000000..4b6d0026
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocation.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_GeoLocation extends Google_Model
+{
+ public $confidence;
+ protected $pointType = 'Google_Service_Spectrum_GeoLocationEllipse';
+ protected $pointDataType = '';
+ protected $regionType = 'Google_Service_Spectrum_GeoLocationPolygon';
+ protected $regionDataType = '';
+
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setPoint(Google_Service_Spectrum_GeoLocationEllipse $point)
+ {
+ $this->point = $point;
+ }
+ public function getPoint()
+ {
+ return $this->point;
+ }
+ public function setRegion(Google_Service_Spectrum_GeoLocationPolygon $region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationEllipse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationEllipse.php
new file mode 100644
index 00000000..ab7f4346
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationEllipse.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_GeoLocationEllipse extends Google_Model
+{
+ protected $centerType = 'Google_Service_Spectrum_GeoLocationPoint';
+ protected $centerDataType = '';
+ public $orientation;
+ public $semiMajorAxis;
+ public $semiMinorAxis;
+
+ public function setCenter(Google_Service_Spectrum_GeoLocationPoint $center)
+ {
+ $this->center = $center;
+ }
+ public function getCenter()
+ {
+ return $this->center;
+ }
+ public function setOrientation($orientation)
+ {
+ $this->orientation = $orientation;
+ }
+ public function getOrientation()
+ {
+ return $this->orientation;
+ }
+ public function setSemiMajorAxis($semiMajorAxis)
+ {
+ $this->semiMajorAxis = $semiMajorAxis;
+ }
+ public function getSemiMajorAxis()
+ {
+ return $this->semiMajorAxis;
+ }
+ public function setSemiMinorAxis($semiMinorAxis)
+ {
+ $this->semiMinorAxis = $semiMinorAxis;
+ }
+ public function getSemiMinorAxis()
+ {
+ return $this->semiMinorAxis;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPoint.php
new file mode 100644
index 00000000..3d87cf7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPoint.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_GeoLocationPoint extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPolygon.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPolygon.php
new file mode 100644
index 00000000..01c3e30c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoLocationPolygon.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_GeoLocationPolygon extends Google_Collection
+{
+ protected $collection_key = 'exterior';
+ protected $exteriorType = 'Google_Service_Spectrum_GeoLocationPoint';
+ protected $exteriorDataType = 'array';
+
+ public function setExterior($exterior)
+ {
+ $this->exterior = $exterior;
+ }
+ public function getExterior()
+ {
+ return $this->exterior;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoSpectrumSchedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoSpectrumSchedule.php
new file mode 100644
index 00000000..b8babd80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/GeoSpectrumSchedule.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_GeoSpectrumSchedule extends Google_Collection
+{
+ protected $collection_key = 'spectrumSchedules';
+ protected $locationType = 'Google_Service_Spectrum_GeoLocation';
+ protected $locationDataType = '';
+ protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule';
+ protected $spectrumSchedulesDataType = 'array';
+
+ public function setLocation(Google_Service_Spectrum_GeoLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setSpectrumSchedules($spectrumSchedules)
+ {
+ $this->spectrumSchedules = $spectrumSchedules;
+ }
+ public function getSpectrumSchedules()
+ {
+ return $this->spectrumSchedules;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchRequest.php
new file mode 100644
index 00000000..ca0529f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchRequest.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsGetSpectrumBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'locations';
+ protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics';
+ protected $antennaDataType = '';
+ protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities';
+ protected $capabilitiesDataType = '';
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ protected $locationsType = 'Google_Service_Spectrum_GeoLocation';
+ protected $locationsDataType = 'array';
+ protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $masterDeviceDescDataType = '';
+ protected $ownerType = 'Google_Service_Spectrum_DeviceOwner';
+ protected $ownerDataType = '';
+ public $requestType;
+ public $type;
+ public $version;
+
+ public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna)
+ {
+ $this->antenna = $antenna;
+ }
+ public function getAntenna()
+ {
+ return $this->antenna;
+ }
+ public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities)
+ {
+ $this->capabilities = $capabilities;
+ }
+ public function getCapabilities()
+ {
+ return $this->capabilities;
+ }
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc)
+ {
+ $this->masterDeviceDesc = $masterDeviceDesc;
+ }
+ public function getMasterDeviceDesc()
+ {
+ return $this->masterDeviceDesc;
+ }
+ public function setOwner(Google_Service_Spectrum_DeviceOwner $owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setRequestType($requestType)
+ {
+ $this->requestType = $requestType;
+ }
+ public function getRequestType()
+ {
+ return $this->requestType;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchResponse.php
new file mode 100644
index 00000000..b0215fc9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumBatchResponse.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsGetSpectrumBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'geoSpectrumSchedules';
+ protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec';
+ protected $databaseChangeDataType = '';
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ protected $geoSpectrumSchedulesType = 'Google_Service_Spectrum_GeoSpectrumSchedule';
+ protected $geoSpectrumSchedulesDataType = 'array';
+ public $kind;
+ public $maxContiguousBwHz;
+ public $maxTotalBwHz;
+ public $needsSpectrumReport;
+ protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo';
+ protected $rulesetInfoDataType = '';
+ public $timestamp;
+ public $type;
+ public $version;
+
+ public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange)
+ {
+ $this->databaseChange = $databaseChange;
+ }
+ public function getDatabaseChange()
+ {
+ return $this->databaseChange;
+ }
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setGeoSpectrumSchedules($geoSpectrumSchedules)
+ {
+ $this->geoSpectrumSchedules = $geoSpectrumSchedules;
+ }
+ public function getGeoSpectrumSchedules()
+ {
+ return $this->geoSpectrumSchedules;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxContiguousBwHz($maxContiguousBwHz)
+ {
+ $this->maxContiguousBwHz = $maxContiguousBwHz;
+ }
+ public function getMaxContiguousBwHz()
+ {
+ return $this->maxContiguousBwHz;
+ }
+ public function setMaxTotalBwHz($maxTotalBwHz)
+ {
+ $this->maxTotalBwHz = $maxTotalBwHz;
+ }
+ public function getMaxTotalBwHz()
+ {
+ return $this->maxTotalBwHz;
+ }
+ public function setNeedsSpectrumReport($needsSpectrumReport)
+ {
+ $this->needsSpectrumReport = $needsSpectrumReport;
+ }
+ public function getNeedsSpectrumReport()
+ {
+ return $this->needsSpectrumReport;
+ }
+ public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo)
+ {
+ $this->rulesetInfo = $rulesetInfo;
+ }
+ public function getRulesetInfo()
+ {
+ return $this->rulesetInfo;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumRequest.php
new file mode 100644
index 00000000..5c12166d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumRequest.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsGetSpectrumRequest extends Google_Model
+{
+ protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics';
+ protected $antennaDataType = '';
+ protected $capabilitiesType = 'Google_Service_Spectrum_DeviceCapabilities';
+ protected $capabilitiesDataType = '';
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ protected $locationType = 'Google_Service_Spectrum_GeoLocation';
+ protected $locationDataType = '';
+ protected $masterDeviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $masterDeviceDescDataType = '';
+ protected $ownerType = 'Google_Service_Spectrum_DeviceOwner';
+ protected $ownerDataType = '';
+ public $requestType;
+ public $type;
+ public $version;
+
+ public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna)
+ {
+ $this->antenna = $antenna;
+ }
+ public function getAntenna()
+ {
+ return $this->antenna;
+ }
+ public function setCapabilities(Google_Service_Spectrum_DeviceCapabilities $capabilities)
+ {
+ $this->capabilities = $capabilities;
+ }
+ public function getCapabilities()
+ {
+ return $this->capabilities;
+ }
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setLocation(Google_Service_Spectrum_GeoLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMasterDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $masterDeviceDesc)
+ {
+ $this->masterDeviceDesc = $masterDeviceDesc;
+ }
+ public function getMasterDeviceDesc()
+ {
+ return $this->masterDeviceDesc;
+ }
+ public function setOwner(Google_Service_Spectrum_DeviceOwner $owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setRequestType($requestType)
+ {
+ $this->requestType = $requestType;
+ }
+ public function getRequestType()
+ {
+ return $this->requestType;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumResponse.php
new file mode 100644
index 00000000..a8ee0869
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsGetSpectrumResponse.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsGetSpectrumResponse extends Google_Collection
+{
+ protected $collection_key = 'spectrumSchedules';
+ protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec';
+ protected $databaseChangeDataType = '';
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ public $kind;
+ public $maxContiguousBwHz;
+ public $maxTotalBwHz;
+ public $needsSpectrumReport;
+ protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo';
+ protected $rulesetInfoDataType = '';
+ protected $spectrumSchedulesType = 'Google_Service_Spectrum_SpectrumSchedule';
+ protected $spectrumSchedulesDataType = 'array';
+ public $timestamp;
+ public $type;
+ public $version;
+
+ public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange)
+ {
+ $this->databaseChange = $databaseChange;
+ }
+ public function getDatabaseChange()
+ {
+ return $this->databaseChange;
+ }
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxContiguousBwHz($maxContiguousBwHz)
+ {
+ $this->maxContiguousBwHz = $maxContiguousBwHz;
+ }
+ public function getMaxContiguousBwHz()
+ {
+ return $this->maxContiguousBwHz;
+ }
+ public function setMaxTotalBwHz($maxTotalBwHz)
+ {
+ $this->maxTotalBwHz = $maxTotalBwHz;
+ }
+ public function getMaxTotalBwHz()
+ {
+ return $this->maxTotalBwHz;
+ }
+ public function setNeedsSpectrumReport($needsSpectrumReport)
+ {
+ $this->needsSpectrumReport = $needsSpectrumReport;
+ }
+ public function getNeedsSpectrumReport()
+ {
+ return $this->needsSpectrumReport;
+ }
+ public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo)
+ {
+ $this->rulesetInfo = $rulesetInfo;
+ }
+ public function getRulesetInfo()
+ {
+ return $this->rulesetInfo;
+ }
+ public function setSpectrumSchedules($spectrumSchedules)
+ {
+ $this->spectrumSchedules = $spectrumSchedules;
+ }
+ public function getSpectrumSchedules()
+ {
+ return $this->spectrumSchedules;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitRequest.php
new file mode 100644
index 00000000..ceb20f80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitRequest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsInitRequest extends Google_Model
+{
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ protected $locationType = 'Google_Service_Spectrum_GeoLocation';
+ protected $locationDataType = '';
+ public $type;
+ public $version;
+
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setLocation(Google_Service_Spectrum_GeoLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitResponse.php
new file mode 100644
index 00000000..444b11ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsInitResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsInitResponse extends Google_Model
+{
+ protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec';
+ protected $databaseChangeDataType = '';
+ public $kind;
+ protected $rulesetInfoType = 'Google_Service_Spectrum_RulesetInfo';
+ protected $rulesetInfoDataType = '';
+ public $type;
+ public $version;
+
+ public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange)
+ {
+ $this->databaseChange = $databaseChange;
+ }
+ public function getDatabaseChange()
+ {
+ return $this->databaseChange;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRulesetInfo(Google_Service_Spectrum_RulesetInfo $rulesetInfo)
+ {
+ $this->rulesetInfo = $rulesetInfo;
+ }
+ public function getRulesetInfo()
+ {
+ return $this->rulesetInfo;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseRequest.php
new file mode 100644
index 00000000..5d3dcf15
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseRequest.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsNotifySpectrumUseRequest extends Google_Collection
+{
+ protected $collection_key = 'spectra';
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ protected $locationType = 'Google_Service_Spectrum_GeoLocation';
+ protected $locationDataType = '';
+ protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage';
+ protected $spectraDataType = 'array';
+ public $type;
+ public $version;
+
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setLocation(Google_Service_Spectrum_GeoLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setSpectra($spectra)
+ {
+ $this->spectra = $spectra;
+ }
+ public function getSpectra()
+ {
+ return $this->spectra;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseResponse.php
new file mode 100644
index 00000000..e4480b4d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsNotifySpectrumUseResponse.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsNotifySpectrumUseResponse extends Google_Model
+{
+ public $kind;
+ public $type;
+ public $version;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterRequest.php
new file mode 100644
index 00000000..b6a1f9d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterRequest.php
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsRegisterRequest extends Google_Model
+{
+ protected $antennaType = 'Google_Service_Spectrum_AntennaCharacteristics';
+ protected $antennaDataType = '';
+ protected $deviceDescType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescDataType = '';
+ protected $deviceOwnerType = 'Google_Service_Spectrum_DeviceOwner';
+ protected $deviceOwnerDataType = '';
+ protected $locationType = 'Google_Service_Spectrum_GeoLocation';
+ protected $locationDataType = '';
+ public $type;
+ public $version;
+
+ public function setAntenna(Google_Service_Spectrum_AntennaCharacteristics $antenna)
+ {
+ $this->antenna = $antenna;
+ }
+ public function getAntenna()
+ {
+ return $this->antenna;
+ }
+ public function setDeviceDesc(Google_Service_Spectrum_DeviceDescriptor $deviceDesc)
+ {
+ $this->deviceDesc = $deviceDesc;
+ }
+ public function getDeviceDesc()
+ {
+ return $this->deviceDesc;
+ }
+ public function setDeviceOwner(Google_Service_Spectrum_DeviceOwner $deviceOwner)
+ {
+ $this->deviceOwner = $deviceOwner;
+ }
+ public function getDeviceOwner()
+ {
+ return $this->deviceOwner;
+ }
+ public function setLocation(Google_Service_Spectrum_GeoLocation $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterResponse.php
new file mode 100644
index 00000000..99e8d08c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsRegisterResponse.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsRegisterResponse extends Google_Model
+{
+ protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec';
+ protected $databaseChangeDataType = '';
+ public $kind;
+ public $type;
+ public $version;
+
+ public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange)
+ {
+ $this->databaseChange = $databaseChange;
+ }
+ public function getDatabaseChange()
+ {
+ return $this->databaseChange;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceRequest.php
new file mode 100644
index 00000000..93d1ef35
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceRequest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsVerifyDeviceRequest extends Google_Collection
+{
+ protected $collection_key = 'deviceDescs';
+ protected $deviceDescsType = 'Google_Service_Spectrum_DeviceDescriptor';
+ protected $deviceDescsDataType = 'array';
+ public $type;
+ public $version;
+
+ public function setDeviceDescs($deviceDescs)
+ {
+ $this->deviceDescs = $deviceDescs;
+ }
+ public function getDeviceDescs()
+ {
+ return $this->deviceDescs;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceResponse.php
new file mode 100644
index 00000000..2ad6777e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/PawsVerifyDeviceResponse.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_PawsVerifyDeviceResponse extends Google_Collection
+{
+ protected $collection_key = 'deviceValidities';
+ protected $databaseChangeType = 'Google_Service_Spectrum_DbUpdateSpec';
+ protected $databaseChangeDataType = '';
+ protected $deviceValiditiesType = 'Google_Service_Spectrum_DeviceValidity';
+ protected $deviceValiditiesDataType = 'array';
+ public $kind;
+ public $type;
+ public $version;
+
+ public function setDatabaseChange(Google_Service_Spectrum_DbUpdateSpec $databaseChange)
+ {
+ $this->databaseChange = $databaseChange;
+ }
+ public function getDatabaseChange()
+ {
+ return $this->databaseChange;
+ }
+ public function setDeviceValidities($deviceValidities)
+ {
+ $this->deviceValidities = $deviceValidities;
+ }
+ public function getDeviceValidities()
+ {
+ return $this->deviceValidities;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Resource/Paws.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Resource/Paws.php
new file mode 100644
index 00000000..f7e30223
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Resource/Paws.php
@@ -0,0 +1,117 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "paws" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $spectrumService = new Google_Service_Spectrum(...);
+ * $paws = $spectrumService->paws;
+ * </code>
+ */
+class Google_Service_Spectrum_Resource_Paws extends Google_Service_Resource
+{
+ /**
+ * Requests information about the available spectrum for a device at a location.
+ * Requests from a fixed-mode device must include owner information so the
+ * device can be registered with the database. (paws.getSpectrum)
+ *
+ * @param Google_Service_Spectrum_PawsGetSpectrumRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spectrum_PawsGetSpectrumResponse
+ */
+ public function getSpectrum(Google_Service_Spectrum_PawsGetSpectrumRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getSpectrum', array($params), "Google_Service_Spectrum_PawsGetSpectrumResponse");
+ }
+ /**
+ * The Google Spectrum Database does not support batch requests, so this method
+ * always yields an UNIMPLEMENTED error. (paws.getSpectrumBatch)
+ *
+ * @param Google_Service_Spectrum_PawsGetSpectrumBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spectrum_PawsGetSpectrumBatchResponse
+ */
+ public function getSpectrumBatch(Google_Service_Spectrum_PawsGetSpectrumBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('getSpectrumBatch', array($params), "Google_Service_Spectrum_PawsGetSpectrumBatchResponse");
+ }
+ /**
+ * Initializes the connection between a white space device and the database.
+ * (paws.init)
+ *
+ * @param Google_Service_Spectrum_PawsInitRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spectrum_PawsInitResponse
+ */
+ public function init(Google_Service_Spectrum_PawsInitRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('init', array($params), "Google_Service_Spectrum_PawsInitResponse");
+ }
+ /**
+ * Notifies the database that the device has selected certain frequency ranges
+ * for transmission. Only to be invoked when required by the regulator. The
+ * Google Spectrum Database does not operate in domains that require
+ * notification, so this always yields an UNIMPLEMENTED error.
+ * (paws.notifySpectrumUse)
+ *
+ * @param Google_Service_Spectrum_PawsNotifySpectrumUseRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spectrum_PawsNotifySpectrumUseResponse
+ */
+ public function notifySpectrumUse(Google_Service_Spectrum_PawsNotifySpectrumUseRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('notifySpectrumUse', array($params), "Google_Service_Spectrum_PawsNotifySpectrumUseResponse");
+ }
+ /**
+ * The Google Spectrum Database implements registration in the getSpectrum
+ * method. As such this always returns an UNIMPLEMENTED error. (paws.register)
+ *
+ * @param Google_Service_Spectrum_PawsRegisterRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spectrum_PawsRegisterResponse
+ */
+ public function register(Google_Service_Spectrum_PawsRegisterRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('register', array($params), "Google_Service_Spectrum_PawsRegisterResponse");
+ }
+ /**
+ * Validates a device for white space use in accordance with regulatory rules.
+ * The Google Spectrum Database does not support master/slave configurations, so
+ * this always yields an UNIMPLEMENTED error. (paws.verifyDevice)
+ *
+ * @param Google_Service_Spectrum_PawsVerifyDeviceRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Spectrum_PawsVerifyDeviceResponse
+ */
+ public function verifyDevice(Google_Service_Spectrum_PawsVerifyDeviceRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('verifyDevice', array($params), "Google_Service_Spectrum_PawsVerifyDeviceResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/RulesetInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/RulesetInfo.php
new file mode 100644
index 00000000..89f01215
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/RulesetInfo.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_RulesetInfo extends Google_Collection
+{
+ protected $collection_key = 'rulesetIds';
+ public $authority;
+ public $maxLocationChange;
+ public $maxPollingSecs;
+ public $rulesetIds;
+
+ public function setAuthority($authority)
+ {
+ $this->authority = $authority;
+ }
+ public function getAuthority()
+ {
+ return $this->authority;
+ }
+ public function setMaxLocationChange($maxLocationChange)
+ {
+ $this->maxLocationChange = $maxLocationChange;
+ }
+ public function getMaxLocationChange()
+ {
+ return $this->maxLocationChange;
+ }
+ public function setMaxPollingSecs($maxPollingSecs)
+ {
+ $this->maxPollingSecs = $maxPollingSecs;
+ }
+ public function getMaxPollingSecs()
+ {
+ return $this->maxPollingSecs;
+ }
+ public function setRulesetIds($rulesetIds)
+ {
+ $this->rulesetIds = $rulesetIds;
+ }
+ public function getRulesetIds()
+ {
+ return $this->rulesetIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumMessage.php
new file mode 100644
index 00000000..a1cb27b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumMessage.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_SpectrumMessage extends Google_Collection
+{
+ protected $collection_key = 'frequencyRanges';
+ public $bandwidth;
+ protected $frequencyRangesType = 'Google_Service_Spectrum_FrequencyRange';
+ protected $frequencyRangesDataType = 'array';
+
+ public function setBandwidth($bandwidth)
+ {
+ $this->bandwidth = $bandwidth;
+ }
+ public function getBandwidth()
+ {
+ return $this->bandwidth;
+ }
+ public function setFrequencyRanges($frequencyRanges)
+ {
+ $this->frequencyRanges = $frequencyRanges;
+ }
+ public function getFrequencyRanges()
+ {
+ return $this->frequencyRanges;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumSchedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumSchedule.php
new file mode 100644
index 00000000..f8085aba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/SpectrumSchedule.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_SpectrumSchedule extends Google_Collection
+{
+ protected $collection_key = 'spectra';
+ protected $eventTimeType = 'Google_Service_Spectrum_EventTime';
+ protected $eventTimeDataType = '';
+ protected $spectraType = 'Google_Service_Spectrum_SpectrumMessage';
+ protected $spectraDataType = 'array';
+
+ public function setEventTime(Google_Service_Spectrum_EventTime $eventTime)
+ {
+ $this->eventTime = $eventTime;
+ }
+ public function getEventTime()
+ {
+ return $this->eventTime;
+ }
+ public function setSpectra($spectra)
+ {
+ $this->spectra = $spectra;
+ }
+ public function getSpectra()
+ {
+ return $this->spectra;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Vcard.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Vcard.php
new file mode 100644
index 00000000..896bebc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/Vcard.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_Vcard extends Google_Model
+{
+ protected $adrType = 'Google_Service_Spectrum_VcardAddress';
+ protected $adrDataType = '';
+ protected $emailType = 'Google_Service_Spectrum_VcardTypedText';
+ protected $emailDataType = '';
+ public $fn;
+ protected $orgType = 'Google_Service_Spectrum_VcardTypedText';
+ protected $orgDataType = '';
+ protected $telType = 'Google_Service_Spectrum_VcardTelephone';
+ protected $telDataType = '';
+
+ public function setAdr(Google_Service_Spectrum_VcardAddress $adr)
+ {
+ $this->adr = $adr;
+ }
+ public function getAdr()
+ {
+ return $this->adr;
+ }
+ public function setEmail(Google_Service_Spectrum_VcardTypedText $email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setFn($fn)
+ {
+ $this->fn = $fn;
+ }
+ public function getFn()
+ {
+ return $this->fn;
+ }
+ public function setOrg(Google_Service_Spectrum_VcardTypedText $org)
+ {
+ $this->org = $org;
+ }
+ public function getOrg()
+ {
+ return $this->org;
+ }
+ public function setTel(Google_Service_Spectrum_VcardTelephone $tel)
+ {
+ $this->tel = $tel;
+ }
+ public function getTel()
+ {
+ return $this->tel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardAddress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardAddress.php
new file mode 100644
index 00000000..fde77cc2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardAddress.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_VcardAddress extends Google_Model
+{
+ public $code;
+ public $country;
+ public $locality;
+ public $pobox;
+ public $region;
+ public $street;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLocality($locality)
+ {
+ $this->locality = $locality;
+ }
+ public function getLocality()
+ {
+ return $this->locality;
+ }
+ public function setPobox($pobox)
+ {
+ $this->pobox = $pobox;
+ }
+ public function getPobox()
+ {
+ return $this->pobox;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setStreet($street)
+ {
+ $this->street = $street;
+ }
+ public function getStreet()
+ {
+ return $this->street;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTelephone.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTelephone.php
new file mode 100644
index 00000000..afe4b5c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTelephone.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_VcardTelephone extends Google_Model
+{
+ public $uri;
+
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTypedText.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTypedText.php
new file mode 100644
index 00000000..f21f0a29
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Spectrum/VcardTypedText.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Spectrum_VcardTypedText extends Google_Model
+{
+ public $text;
+
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech.php
new file mode 100644
index 00000000..ce174d0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech.php
@@ -0,0 +1,133 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Speech (v1beta1).
+ *
+ * <p>
+ * Google Cloud Speech API.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/speech/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Speech extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $operations;
+ public $speech;
+
+ /**
+ * Constructs the internal representation of the Speech service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://speech.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1beta1';
+ $this->serviceName = 'speech';
+
+ $this->operations = new Google_Service_Speech_Resource_Operations(
+ $this,
+ $this->serviceName,
+ 'operations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1beta1/operations/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1beta1/operations/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1beta1/operations/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1beta1/operations',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->speech = new Google_Service_Speech_Resource_Speech(
+ $this,
+ $this->serviceName,
+ 'speech',
+ array(
+ 'methods' => array(
+ 'asyncrecognize' => array(
+ 'path' => 'v1beta1/speech:asyncrecognize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'syncrecognize' => array(
+ 'path' => 'v1beta1/speech:syncrecognize',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/AsyncRecognizeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/AsyncRecognizeRequest.php
new file mode 100644
index 00000000..cdbfae6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/AsyncRecognizeRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_AsyncRecognizeRequest extends Google_Model
+{
+ protected $audioType = 'Google_Service_Speech_RecognitionAudio';
+ protected $audioDataType = '';
+ protected $configType = 'Google_Service_Speech_RecognitionConfig';
+ protected $configDataType = '';
+
+ public function setAudio(Google_Service_Speech_RecognitionAudio $audio)
+ {
+ $this->audio = $audio;
+ }
+ public function getAudio()
+ {
+ return $this->audio;
+ }
+ public function setConfig(Google_Service_Speech_RecognitionConfig $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/CancelOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/CancelOperationRequest.php
new file mode 100644
index 00000000..f4692945
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/CancelOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_CancelOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/ListOperationsResponse.php
new file mode 100644
index 00000000..35514492
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_Speech_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Operation.php
new file mode 100644
index 00000000..f413dadd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_Speech_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_Speech_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionAudio.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionAudio.php
new file mode 100644
index 00000000..511a2425
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionAudio.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_RecognitionAudio extends Google_Model
+{
+ public $content;
+ public $uri;
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php
new file mode 100644
index 00000000..03faa829
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/RecognitionConfig.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_RecognitionConfig extends Google_Model
+{
+ public $encoding;
+ public $languageCode;
+ public $maxAlternatives;
+ public $profanityFilter;
+ public $sampleRate;
+ protected $speechContextType = 'Google_Service_Speech_SpeechContext';
+ protected $speechContextDataType = '';
+
+ public function setEncoding($encoding)
+ {
+ $this->encoding = $encoding;
+ }
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+ public function setMaxAlternatives($maxAlternatives)
+ {
+ $this->maxAlternatives = $maxAlternatives;
+ }
+ public function getMaxAlternatives()
+ {
+ return $this->maxAlternatives;
+ }
+ public function setProfanityFilter($profanityFilter)
+ {
+ $this->profanityFilter = $profanityFilter;
+ }
+ public function getProfanityFilter()
+ {
+ return $this->profanityFilter;
+ }
+ public function setSampleRate($sampleRate)
+ {
+ $this->sampleRate = $sampleRate;
+ }
+ public function getSampleRate()
+ {
+ return $this->sampleRate;
+ }
+ public function setSpeechContext(Google_Service_Speech_SpeechContext $speechContext)
+ {
+ $this->speechContext = $speechContext;
+ }
+ public function getSpeechContext()
+ {
+ return $this->speechContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php
new file mode 100644
index 00000000..b8adab7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Operations.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $speechService = new Google_Service_Speech(...);
+ * $operations = $speechService->operations;
+ * </code>
+ */
+class Google_Service_Speech_Resource_Operations extends Google_Service_Resource
+{
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server
+ * makes a best effort to cancel the operation, but success is not guaranteed.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
+ * other methods to check whether the cancellation succeeded or whether the
+ * operation completed despite cancellation. On successful cancellation, the
+ * operation is not deleted; instead, it becomes an operation with an
+ * Operation.error value with a google.rpc.Status.code of 1, corresponding to
+ * `Code.CANCELLED`. (operations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Speech_SpeechEmpty
+ */
+ public function cancel($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Speech_SpeechEmpty");
+ }
+ /**
+ * Deletes a long-running operation. This method indicates that the client is no
+ * longer interested in the operation result. It does not cancel the operation.
+ * If the server doesn't support this method, it returns
+ * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Speech_SpeechEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Speech_SpeechEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (operations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Speech_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Speech_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`.
+ *
+ * NOTE: the `name` binding below allows API services to override the binding to
+ * use different resource name schemes, such as `users/operations`.
+ * (operations.listOperations)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param string name The name of the operation collection.
+ * @opt_param string pageToken The standard list page token.
+ * @opt_param int pageSize The standard list page size.
+ * @return Google_Service_Speech_ListOperationsResponse
+ */
+ public function listOperations($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Speech_ListOperationsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Speech.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Speech.php
new file mode 100644
index 00000000..17ebda33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Resource/Speech.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "speech" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $speechService = new Google_Service_Speech(...);
+ * $speech = $speechService->speech;
+ * </code>
+ */
+class Google_Service_Speech_Resource_Speech extends Google_Service_Resource
+{
+ /**
+ * Performs asynchronous speech recognition: receive results via the
+ * [google.longrunning.Operations]
+ * (/speech/reference/rest/v1beta1/operations#Operation) interface. Returns
+ * either an `Operation.error` or an `Operation.response` which contains an
+ * `AsyncRecognizeResponse` message. (speech.asyncrecognize)
+ *
+ * @param Google_Service_Speech_AsyncRecognizeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Speech_Operation
+ */
+ public function asyncrecognize(Google_Service_Speech_AsyncRecognizeRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('asyncrecognize', array($params), "Google_Service_Speech_Operation");
+ }
+ /**
+ * Performs synchronous speech recognition: receive results after all audio has
+ * been sent and processed. (speech.syncrecognize)
+ *
+ * @param Google_Service_Speech_SyncRecognizeRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Speech_SyncRecognizeResponse
+ */
+ public function syncrecognize(Google_Service_Speech_SyncRecognizeRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('syncrecognize', array($params), "Google_Service_Speech_SyncRecognizeResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechContext.php
new file mode 100644
index 00000000..3069cfc7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechContext.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_SpeechContext extends Google_Collection
+{
+ protected $collection_key = 'phrases';
+ public $phrases;
+
+ public function setPhrases($phrases)
+ {
+ $this->phrases = $phrases;
+ }
+ public function getPhrases()
+ {
+ return $this->phrases;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechEmpty.php
new file mode 100644
index 00000000..53008888
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_SpeechEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionAlternative.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionAlternative.php
new file mode 100644
index 00000000..e70c8725
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionAlternative.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_SpeechRecognitionAlternative extends Google_Model
+{
+ public $confidence;
+ public $transcript;
+
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setTranscript($transcript)
+ {
+ $this->transcript = $transcript;
+ }
+ public function getTranscript()
+ {
+ return $this->transcript;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php
new file mode 100644
index 00000000..28e9723f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SpeechRecognitionResult.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_SpeechRecognitionResult extends Google_Collection
+{
+ protected $collection_key = 'alternatives';
+ protected $alternativesType = 'Google_Service_Speech_SpeechRecognitionAlternative';
+ protected $alternativesDataType = 'array';
+
+ public function setAlternatives($alternatives)
+ {
+ $this->alternatives = $alternatives;
+ }
+ public function getAlternatives()
+ {
+ return $this->alternatives;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Status.php
new file mode 100644
index 00000000..af62f982
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeRequest.php
new file mode 100644
index 00000000..e88be3e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeRequest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_SyncRecognizeRequest extends Google_Model
+{
+ protected $audioType = 'Google_Service_Speech_RecognitionAudio';
+ protected $audioDataType = '';
+ protected $configType = 'Google_Service_Speech_RecognitionConfig';
+ protected $configDataType = '';
+
+ public function setAudio(Google_Service_Speech_RecognitionAudio $audio)
+ {
+ $this->audio = $audio;
+ }
+ public function getAudio()
+ {
+ return $this->audio;
+ }
+ public function setConfig(Google_Service_Speech_RecognitionConfig $config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeResponse.php
new file mode 100644
index 00000000..9a6c348a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Speech/SyncRecognizeResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Speech_SyncRecognizeResponse extends Google_Collection
+{
+ protected $collection_key = 'results';
+ protected $resultsType = 'Google_Service_Speech_SpeechRecognitionResult';
+ protected $resultsDataType = 'array';
+
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage.php
new file mode 100644
index 00000000..9e5c8349
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage.php
@@ -0,0 +1,1126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Storage (v1).
+ *
+ * <p>
+ * Stores and retrieves potentially large, immutable data objects.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Storage extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** View your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM_READ_ONLY =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /** Manage your data and permissions in Google Cloud Storage. */
+ const DEVSTORAGE_FULL_CONTROL =
+ "https://www.googleapis.com/auth/devstorage.full_control";
+ /** View your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_ONLY =
+ "https://www.googleapis.com/auth/devstorage.read_only";
+ /** Manage your data in Google Cloud Storage. */
+ const DEVSTORAGE_READ_WRITE =
+ "https://www.googleapis.com/auth/devstorage.read_write";
+
+ public $bucketAccessControls;
+ public $buckets;
+ public $channels;
+ public $defaultObjectAccessControls;
+ public $objectAccessControls;
+ public $objects;
+
+ /**
+ * Constructs the internal representation of the Storage service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'storage/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'storage';
+
+ $this->bucketAccessControls = new Google_Service_Storage_Resource_BucketAccessControls(
+ $this,
+ $this->serviceName,
+ 'bucketAccessControls',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'b/{bucket}/acl/{entity}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'b/{bucket}/acl/{entity}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'b/{bucket}/acl',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'b/{bucket}/acl',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'b/{bucket}/acl/{entity}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'b/{bucket}/acl/{entity}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->buckets = new Google_Service_Storage_Resource_Buckets(
+ $this,
+ $this->serviceName,
+ 'buckets',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'b/{bucket}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'b/{bucket}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'b/{bucket}/iam',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'b',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'predefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedDefaultObjectAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'b',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'prefix' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'b/{bucket}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedDefaultObjectAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'b/{bucket}/iam',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'b/{bucket}/iam/testPermissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissions' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'b/{bucket}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedDefaultObjectAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channels = new Google_Service_Storage_Resource_Channels(
+ $this,
+ $this->serviceName,
+ 'channels',
+ array(
+ 'methods' => array(
+ 'stop' => array(
+ 'path' => 'channels/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->defaultObjectAccessControls = new Google_Service_Storage_Resource_DefaultObjectAccessControls(
+ $this,
+ $this->serviceName,
+ 'defaultObjectAccessControls',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'b/{bucket}/defaultObjectAcl',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'b/{bucket}/defaultObjectAcl',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->objectAccessControls = new Google_Service_Storage_Resource_ObjectAccessControls(
+ $this,
+ $this->serviceName,
+ 'objectAccessControls',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'b/{bucket}/o/{object}/acl',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'b/{bucket}/o/{object}/acl',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'entity' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->objects = new Google_Service_Storage_Resource_Objects(
+ $this,
+ $this->serviceName,
+ 'objects',
+ array(
+ 'methods' => array(
+ 'compose' => array(
+ 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'destinationBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationObject' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationPredefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'copy' => array(
+ 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'sourceBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sourceObject' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationObject' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationPredefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sourceGeneration' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'b/{bucket}/o/{object}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'b/{bucket}/o/{object}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getIamPolicy' => array(
+ 'path' => 'b/{bucket}/o/{object}/iam',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'b/{bucket}/o',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'contentEncoding' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'name' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'b/{bucket}/o',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'delimiter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'prefix' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'versions' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'b/{bucket}/o/{object}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'rewrite' => array(
+ 'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'sourceBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sourceObject' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationBucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationObject' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'destinationPredefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifSourceMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxBytesRewrittenPerCall' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'rewriteToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sourceGeneration' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'setIamPolicy' => array(
+ 'path' => 'b/{bucket}/o/{object}/iam',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'testIamPermissions' => array(
+ 'path' => 'b/{bucket}/o/{object}/iam/testPermissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissions' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'b/{bucket}/o/{object}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'object' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'generation' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifGenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'ifMetagenerationNotMatch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'predefinedAcl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'watchAll' => array(
+ 'path' => 'b/{bucket}/o/watch',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'bucket' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'delimiter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'prefix' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'versions' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Bucket.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Bucket.php
new file mode 100644
index 00000000..3aa7a99a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Bucket.php
@@ -0,0 +1,201 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_Bucket extends Google_Collection
+{
+ protected $collection_key = 'defaultObjectAcl';
+ protected $aclType = 'Google_Service_Storage_BucketAccessControl';
+ protected $aclDataType = 'array';
+ protected $corsType = 'Google_Service_Storage_BucketCors';
+ protected $corsDataType = 'array';
+ protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl';
+ protected $defaultObjectAclDataType = 'array';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle';
+ protected $lifecycleDataType = '';
+ public $location;
+ protected $loggingType = 'Google_Service_Storage_BucketLogging';
+ protected $loggingDataType = '';
+ public $metageneration;
+ public $name;
+ protected $ownerType = 'Google_Service_Storage_BucketOwner';
+ protected $ownerDataType = '';
+ public $projectNumber;
+ public $selfLink;
+ public $storageClass;
+ public $timeCreated;
+ public $updated;
+ protected $versioningType = 'Google_Service_Storage_BucketVersioning';
+ protected $versioningDataType = '';
+ protected $websiteType = 'Google_Service_Storage_BucketWebsite';
+ protected $websiteDataType = '';
+
+ public function setAcl($acl)
+ {
+ $this->acl = $acl;
+ }
+ public function getAcl()
+ {
+ return $this->acl;
+ }
+ public function setCors($cors)
+ {
+ $this->cors = $cors;
+ }
+ public function getCors()
+ {
+ return $this->cors;
+ }
+ public function setDefaultObjectAcl($defaultObjectAcl)
+ {
+ $this->defaultObjectAcl = $defaultObjectAcl;
+ }
+ public function getDefaultObjectAcl()
+ {
+ return $this->defaultObjectAcl;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle)
+ {
+ $this->lifecycle = $lifecycle;
+ }
+ public function getLifecycle()
+ {
+ return $this->lifecycle;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setLogging(Google_Service_Storage_BucketLogging $logging)
+ {
+ $this->logging = $logging;
+ }
+ public function getLogging()
+ {
+ return $this->logging;
+ }
+ public function setMetageneration($metageneration)
+ {
+ $this->metageneration = $metageneration;
+ }
+ public function getMetageneration()
+ {
+ return $this->metageneration;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwner(Google_Service_Storage_BucketOwner $owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setProjectNumber($projectNumber)
+ {
+ $this->projectNumber = $projectNumber;
+ }
+ public function getProjectNumber()
+ {
+ return $this->projectNumber;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStorageClass($storageClass)
+ {
+ $this->storageClass = $storageClass;
+ }
+ public function getStorageClass()
+ {
+ return $this->storageClass;
+ }
+ public function setTimeCreated($timeCreated)
+ {
+ $this->timeCreated = $timeCreated;
+ }
+ public function getTimeCreated()
+ {
+ return $this->timeCreated;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setVersioning(Google_Service_Storage_BucketVersioning $versioning)
+ {
+ $this->versioning = $versioning;
+ }
+ public function getVersioning()
+ {
+ return $this->versioning;
+ }
+ public function setWebsite(Google_Service_Storage_BucketWebsite $website)
+ {
+ $this->website = $website;
+ }
+ public function getWebsite()
+ {
+ return $this->website;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControl.php
new file mode 100644
index 00000000..ead69b1f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControl.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketAccessControl extends Google_Model
+{
+ public $bucket;
+ public $domain;
+ public $email;
+ public $entity;
+ public $entityId;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam';
+ protected $projectTeamDataType = '';
+ public $role;
+ public $selfLink;
+
+ public function setBucket($bucket)
+ {
+ $this->bucket = $bucket;
+ }
+ public function getBucket()
+ {
+ return $this->bucket;
+ }
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEntity($entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setEntityId($entityId)
+ {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId()
+ {
+ return $this->entityId;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam)
+ {
+ $this->projectTeam = $projectTeam;
+ }
+ public function getProjectTeam()
+ {
+ return $this->projectTeam;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControlProjectTeam.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControlProjectTeam.php
new file mode 100644
index 00000000..bc2c9a81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControlProjectTeam.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model
+{
+ public $projectNumber;
+ public $team;
+
+ public function setProjectNumber($projectNumber)
+ {
+ $this->projectNumber = $projectNumber;
+ }
+ public function getProjectNumber()
+ {
+ return $this->projectNumber;
+ }
+ public function setTeam($team)
+ {
+ $this->team = $team;
+ }
+ public function getTeam()
+ {
+ return $this->team;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControls.php
new file mode 100644
index 00000000..108c4b6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketAccessControls.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketAccessControls extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Storage_BucketAccessControl';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketCors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketCors.php
new file mode 100644
index 00000000..f63800e8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketCors.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketCors extends Google_Collection
+{
+ protected $collection_key = 'responseHeader';
+ public $maxAgeSeconds;
+ public $method;
+ public $origin;
+ public $responseHeader;
+
+ public function setMaxAgeSeconds($maxAgeSeconds)
+ {
+ $this->maxAgeSeconds = $maxAgeSeconds;
+ }
+ public function getMaxAgeSeconds()
+ {
+ return $this->maxAgeSeconds;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+ public function setResponseHeader($responseHeader)
+ {
+ $this->responseHeader = $responseHeader;
+ }
+ public function getResponseHeader()
+ {
+ return $this->responseHeader;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketEncryption.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketEncryption.php
new file mode 100644
index 00000000..dd0cba3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketEncryption.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketEncryption extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "defaultKmsKeyName" => "default_kms_key_name",
+ );
+ public $defaultKmsKeyName;
+
+ public function setDefaultKmsKeyName($defaultKmsKeyName)
+ {
+ $this->defaultKmsKeyName = $defaultKmsKeyName;
+ }
+ public function getDefaultKmsKeyName()
+ {
+ return $this->defaultKmsKeyName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycle.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycle.php
new file mode 100644
index 00000000..1958f36b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycle.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketLifecycle extends Google_Collection
+{
+ protected $collection_key = 'rule';
+ protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule';
+ protected $ruleDataType = 'array';
+
+ public function setRule($rule)
+ {
+ $this->rule = $rule;
+ }
+ public function getRule()
+ {
+ return $this->rule;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRule.php
new file mode 100644
index 00000000..d983ddfb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRule.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketLifecycleRule extends Google_Model
+{
+ protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction';
+ protected $actionDataType = '';
+ protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition';
+ protected $conditionDataType = '';
+
+ public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action)
+ {
+ $this->action = $action;
+ }
+ public function getAction()
+ {
+ return $this->action;
+ }
+ public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleAction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleAction.php
new file mode 100644
index 00000000..869a756d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleAction.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model
+{
+ public $storageClass;
+ public $type;
+
+ public function setStorageClass($storageClass)
+ {
+ $this->storageClass = $storageClass;
+ }
+ public function getStorageClass()
+ {
+ return $this->storageClass;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php
new file mode 100644
index 00000000..90de2837
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLifecycleRuleCondition.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Collection
+{
+ protected $collection_key = 'matchesStorageClass';
+ public $age;
+ public $createdBefore;
+ public $isLive;
+ public $matchesStorageClass;
+ public $numNewerVersions;
+
+ public function setAge($age)
+ {
+ $this->age = $age;
+ }
+ public function getAge()
+ {
+ return $this->age;
+ }
+ public function setCreatedBefore($createdBefore)
+ {
+ $this->createdBefore = $createdBefore;
+ }
+ public function getCreatedBefore()
+ {
+ return $this->createdBefore;
+ }
+ public function setIsLive($isLive)
+ {
+ $this->isLive = $isLive;
+ }
+ public function getIsLive()
+ {
+ return $this->isLive;
+ }
+ public function setMatchesStorageClass($matchesStorageClass)
+ {
+ $this->matchesStorageClass = $matchesStorageClass;
+ }
+ public function getMatchesStorageClass()
+ {
+ return $this->matchesStorageClass;
+ }
+ public function setNumNewerVersions($numNewerVersions)
+ {
+ $this->numNewerVersions = $numNewerVersions;
+ }
+ public function getNumNewerVersions()
+ {
+ return $this->numNewerVersions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLogging.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLogging.php
new file mode 100644
index 00000000..0bda63e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketLogging.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketLogging extends Google_Model
+{
+ public $logBucket;
+ public $logObjectPrefix;
+
+ public function setLogBucket($logBucket)
+ {
+ $this->logBucket = $logBucket;
+ }
+ public function getLogBucket()
+ {
+ return $this->logBucket;
+ }
+ public function setLogObjectPrefix($logObjectPrefix)
+ {
+ $this->logObjectPrefix = $logObjectPrefix;
+ }
+ public function getLogObjectPrefix()
+ {
+ return $this->logObjectPrefix;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketOwner.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketOwner.php
new file mode 100644
index 00000000..c5bfd88c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketOwner.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketOwner extends Google_Model
+{
+ public $entity;
+ public $entityId;
+
+ public function setEntity($entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setEntityId($entityId)
+ {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId()
+ {
+ return $this->entityId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketVersioning.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketVersioning.php
new file mode 100644
index 00000000..10aeb47e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketVersioning.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketVersioning extends Google_Model
+{
+ public $enabled;
+
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketWebsite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketWebsite.php
new file mode 100644
index 00000000..02db8c92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/BucketWebsite.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_BucketWebsite extends Google_Model
+{
+ public $mainPageSuffix;
+ public $notFoundPage;
+
+ public function setMainPageSuffix($mainPageSuffix)
+ {
+ $this->mainPageSuffix = $mainPageSuffix;
+ }
+ public function getMainPageSuffix()
+ {
+ return $this->mainPageSuffix;
+ }
+ public function setNotFoundPage($notFoundPage)
+ {
+ $this->notFoundPage = $notFoundPage;
+ }
+ public function getNotFoundPage()
+ {
+ return $this->notFoundPage;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Buckets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Buckets.php
new file mode 100644
index 00000000..ff4f4054
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Buckets.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_Buckets extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Storage_Bucket';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Channel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Channel.php
new file mode 100644
index 00000000..1efb8034
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Channel.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_Channel extends Google_Model
+{
+ public $address;
+ public $expiration;
+ public $id;
+ public $kind;
+ public $params;
+ public $payload;
+ public $resourceId;
+ public $resourceUri;
+ public $token;
+ public $type;
+
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
+ public function setExpiration($expiration)
+ {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration()
+ {
+ return $this->expiration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setParams($params)
+ {
+ $this->params = $params;
+ }
+ public function getParams()
+ {
+ return $this->params;
+ }
+ public function setPayload($payload)
+ {
+ $this->payload = $payload;
+ }
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setResourceUri($resourceUri)
+ {
+ $this->resourceUri = $resourceUri;
+ }
+ public function getResourceUri()
+ {
+ return $this->resourceUri;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequest.php
new file mode 100644
index 00000000..2564af36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequest.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_ComposeRequest extends Google_Collection
+{
+ protected $collection_key = 'sourceObjects';
+ protected $destinationType = 'Google_Service_Storage_StorageObject';
+ protected $destinationDataType = '';
+ public $kind;
+ protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects';
+ protected $sourceObjectsDataType = 'array';
+
+ public function setDestination(Google_Service_Storage_StorageObject $destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSourceObjects($sourceObjects)
+ {
+ $this->sourceObjects = $sourceObjects;
+ }
+ public function getSourceObjects()
+ {
+ return $this->sourceObjects;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjects.php
new file mode 100644
index 00000000..c9ced2ef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjects.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model
+{
+ public $generation;
+ public $name;
+ protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions';
+ protected $objectPreconditionsDataType = '';
+
+ public function setGeneration($generation)
+ {
+ $this->generation = $generation;
+ }
+ public function getGeneration()
+ {
+ return $this->generation;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions)
+ {
+ $this->objectPreconditions = $objectPreconditions;
+ }
+ public function getObjectPreconditions()
+ {
+ return $this->objectPreconditions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjectsObjectPreconditions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjectsObjectPreconditions.php
new file mode 100644
index 00000000..a471179f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ComposeRequestSourceObjectsObjectPreconditions.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model
+{
+ public $ifGenerationMatch;
+
+ public function setIfGenerationMatch($ifGenerationMatch)
+ {
+ $this->ifGenerationMatch = $ifGenerationMatch;
+ }
+ public function getIfGenerationMatch()
+ {
+ return $this->ifGenerationMatch;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControl.php
new file mode 100644
index 00000000..3dcf3072
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControl.php
@@ -0,0 +1,139 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_ObjectAccessControl extends Google_Model
+{
+ public $bucket;
+ public $domain;
+ public $email;
+ public $entity;
+ public $entityId;
+ public $etag;
+ public $generation;
+ public $id;
+ public $kind;
+ public $object;
+ protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam';
+ protected $projectTeamDataType = '';
+ public $role;
+ public $selfLink;
+
+ public function setBucket($bucket)
+ {
+ $this->bucket = $bucket;
+ }
+ public function getBucket()
+ {
+ return $this->bucket;
+ }
+ public function setDomain($domain)
+ {
+ $this->domain = $domain;
+ }
+ public function getDomain()
+ {
+ return $this->domain;
+ }
+ public function setEmail($email)
+ {
+ $this->email = $email;
+ }
+ public function getEmail()
+ {
+ return $this->email;
+ }
+ public function setEntity($entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setEntityId($entityId)
+ {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId()
+ {
+ return $this->entityId;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGeneration($generation)
+ {
+ $this->generation = $generation;
+ }
+ public function getGeneration()
+ {
+ return $this->generation;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setObject($object)
+ {
+ $this->object = $object;
+ }
+ public function getObject()
+ {
+ return $this->object;
+ }
+ public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam)
+ {
+ $this->projectTeam = $projectTeam;
+ }
+ public function getProjectTeam()
+ {
+ return $this->projectTeam;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControlProjectTeam.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControlProjectTeam.php
new file mode 100644
index 00000000..a4dff126
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControlProjectTeam.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model
+{
+ public $projectNumber;
+ public $team;
+
+ public function setProjectNumber($projectNumber)
+ {
+ $this->projectNumber = $projectNumber;
+ }
+ public function getProjectNumber()
+ {
+ return $this->projectNumber;
+ }
+ public function setTeam($team)
+ {
+ $this->team = $team;
+ }
+ public function getTeam()
+ {
+ return $this->team;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControls.php
new file mode 100644
index 00000000..4007cb35
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/ObjectAccessControls.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_ObjectAccessControls extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Storage_ObjectAccessControl';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Objects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Objects.php
new file mode 100644
index 00000000..e086c248
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Objects.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_Objects extends Google_Collection
+{
+ protected $collection_key = 'prefixes';
+ protected $itemsType = 'Google_Service_Storage_StorageObject';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $prefixes;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPrefixes($prefixes)
+ {
+ $this->prefixes = $prefixes;
+ }
+ public function getPrefixes()
+ {
+ return $this->prefixes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Policy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Policy.php
new file mode 100644
index 00000000..b03c7190
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Policy.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_Policy extends Google_Collection
+{
+ protected $collection_key = 'bindings';
+ protected $bindingsType = 'Google_Service_Storage_PolicyBindings';
+ protected $bindingsDataType = 'array';
+ public $etag;
+ public $kind;
+ public $resourceId;
+
+ public function setBindings($bindings)
+ {
+ $this->bindings = $bindings;
+ }
+ public function getBindings()
+ {
+ return $this->bindings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php
new file mode 100644
index 00000000..158c6bf9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/PolicyBindings.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_PolicyBindings extends Google_Collection
+{
+ protected $collection_key = 'members';
+ public $members;
+ public $role;
+
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setRole($role)
+ {
+ $this->role = $role;
+ }
+ public function getRole()
+ {
+ return $this->role;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/BucketAccessControls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/BucketAccessControls.php
new file mode 100644
index 00000000..3475dbb0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/BucketAccessControls.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "bucketAccessControls" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storageService = new Google_Service_Storage(...);
+ * $bucketAccessControls = $storageService->bucketAccessControls;
+ * </code>
+ */
+class Google_Service_Storage_Resource_BucketAccessControls extends Google_Service_Resource
+{
+ /**
+ * Permanently deletes the ACL entry for the specified entity on the specified
+ * bucket. (bucketAccessControls.delete)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($bucket, $entity, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns the ACL entry for the specified entity on the specified bucket.
+ * (bucketAccessControls.get)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_BucketAccessControl
+ */
+ public function get($bucket, $entity, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl");
+ }
+ /**
+ * Creates a new ACL entry on the specified bucket.
+ * (bucketAccessControls.insert)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param Google_Service_Storage_BucketAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_BucketAccessControl
+ */
+ public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl");
+ }
+ /**
+ * Retrieves ACL entries on the specified bucket.
+ * (bucketAccessControls.listBucketAccessControls)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_BucketAccessControls
+ */
+ public function listBucketAccessControls($bucket, $optParams = array())
+ {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls");
+ }
+ /**
+ * Updates an ACL entry on the specified bucket. This method supports patch
+ * semantics. (bucketAccessControls.patch)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param Google_Service_Storage_BucketAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_BucketAccessControl
+ */
+ public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl");
+ }
+ /**
+ * Updates an ACL entry on the specified bucket. (bucketAccessControls.update)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param Google_Service_Storage_BucketAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_BucketAccessControl
+ */
+ public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php
new file mode 100644
index 00000000..facfb352
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Buckets.php
@@ -0,0 +1,208 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "buckets" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storageService = new Google_Service_Storage(...);
+ * $buckets = $storageService->buckets;
+ * </code>
+ */
+class Google_Service_Storage_Resource_Buckets extends Google_Service_Resource
+{
+ /**
+ * Permanently deletes an empty bucket. (buckets.delete)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ifMetagenerationMatch If set, only deletes the bucket if
+ * its metageneration matches this value.
+ * @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if
+ * its metageneration does not match this value.
+ */
+ public function delete($bucket, $optParams = array())
+ {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns metadata for the specified bucket. (buckets.get)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ifMetagenerationMatch Makes the return of the bucket
+ * metadata conditional on whether the bucket's current metageneration matches
+ * the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
+ * metadata conditional on whether the bucket's current metageneration does not
+ * match the given value.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @return Google_Service_Storage_Bucket
+ */
+ public function get($bucket, $optParams = array())
+ {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storage_Bucket");
+ }
+ /**
+ * Returns an IAM policy for the specified bucket. (buckets.getIamPolicy)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_Policy
+ */
+ public function getIamPolicy($bucket, $optParams = array())
+ {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Storage_Policy");
+ }
+ /**
+ * Creates a new bucket. (buckets.insert)
+ *
+ * @param string $project A valid API project identifier.
+ * @param Google_Service_Storage_Bucket $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string predefinedAcl Apply a predefined set of access controls to
+ * this bucket.
+ * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
+ * default object access controls to this bucket.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl,
+ * unless the bucket resource specifies acl or defaultObjectAcl properties, when
+ * it defaults to full.
+ * @return Google_Service_Storage_Bucket
+ */
+ public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Storage_Bucket");
+ }
+ /**
+ * Retrieves a list of buckets for a given project. (buckets.listBuckets)
+ *
+ * @param string $project A valid API project identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of buckets to return in a single
+ * response. The service will use this parameter or 1,000 items, whichever is
+ * smaller.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @opt_param string prefix Filter results to buckets whose names begin with
+ * this prefix.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @return Google_Service_Storage_Buckets
+ */
+ public function listBuckets($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Storage_Buckets");
+ }
+ /**
+ * Updates a bucket. Changes to the bucket will be readable immediately after
+ * writing, but configuration changes may take time to propagate. This method
+ * supports patch semantics. (buckets.patch)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param Google_Service_Storage_Bucket $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ifMetagenerationMatch Makes the return of the bucket
+ * metadata conditional on whether the bucket's current metageneration matches
+ * the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
+ * metadata conditional on whether the bucket's current metageneration does not
+ * match the given value.
+ * @opt_param string predefinedAcl Apply a predefined set of access controls to
+ * this bucket.
+ * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
+ * default object access controls to this bucket.
+ * @opt_param string projection Set of properties to return. Defaults to full.
+ * @return Google_Service_Storage_Bucket
+ */
+ public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Storage_Bucket");
+ }
+ /**
+ * Updates an IAM policy for the specified bucket. (buckets.setIamPolicy)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param Google_Service_Storage_Policy $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_Policy
+ */
+ public function setIamPolicy($bucket, Google_Service_Storage_Policy $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Storage_Policy");
+ }
+ /**
+ * Tests a set of permissions on the given bucket to see which, if any, are held
+ * by the caller. (buckets.testIamPermissions)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string|array $permissions Permissions to test.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($bucket, $permissions, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'permissions' => $permissions);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Storage_TestIamPermissionsResponse");
+ }
+ /**
+ * Updates a bucket. Changes to the bucket will be readable immediately after
+ * writing, but configuration changes may take time to propagate.
+ * (buckets.update)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param Google_Service_Storage_Bucket $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ifMetagenerationMatch Makes the return of the bucket
+ * metadata conditional on whether the bucket's current metageneration matches
+ * the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
+ * metadata conditional on whether the bucket's current metageneration does not
+ * match the given value.
+ * @opt_param string predefinedAcl Apply a predefined set of access controls to
+ * this bucket.
+ * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
+ * default object access controls to this bucket.
+ * @opt_param string projection Set of properties to return. Defaults to full.
+ * @return Google_Service_Storage_Bucket
+ */
+ public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Storage_Bucket");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Channels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Channels.php
new file mode 100644
index 00000000..8c5a1dc6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Channels.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storageService = new Google_Service_Storage(...);
+ * $channels = $storageService->channels;
+ * </code>
+ */
+class Google_Service_Storage_Resource_Channels extends Google_Service_Resource
+{
+ /**
+ * Stop watching resources through this channel (channels.stop)
+ *
+ * @param Google_Service_Storage_Channel $postBody
+ * @param array $optParams Optional parameters.
+ */
+ public function stop(Google_Service_Storage_Channel $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/DefaultObjectAccessControls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/DefaultObjectAccessControls.php
new file mode 100644
index 00000000..83c6c9ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/DefaultObjectAccessControls.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "defaultObjectAccessControls" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storageService = new Google_Service_Storage(...);
+ * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
+ * </code>
+ */
+class Google_Service_Storage_Resource_DefaultObjectAccessControls extends Google_Service_Resource
+{
+ /**
+ * Permanently deletes the default object ACL entry for the specified entity on
+ * the specified bucket. (defaultObjectAccessControls.delete)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($bucket, $entity, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns the default object ACL entry for the specified entity on the
+ * specified bucket. (defaultObjectAccessControls.get)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function get($bucket, $entity, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+ /**
+ * Creates a new default object ACL entry on the specified bucket.
+ * (defaultObjectAccessControls.insert)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param Google_Service_Storage_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+ /**
+ * Retrieves default object ACL entries on the specified bucket.
+ * (defaultObjectAccessControls.listDefaultObjectAccessControls)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ifMetagenerationMatch If present, only return default ACL
+ * listing if the bucket's current metageneration matches this value.
+ * @opt_param string ifMetagenerationNotMatch If present, only return default
+ * ACL listing if the bucket's current metageneration does not match the given
+ * value.
+ * @return Google_Service_Storage_ObjectAccessControls
+ */
+ public function listDefaultObjectAccessControls($bucket, $optParams = array())
+ {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
+ }
+ /**
+ * Updates a default object ACL entry on the specified bucket. This method
+ * supports patch semantics. (defaultObjectAccessControls.patch)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param Google_Service_Storage_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+ /**
+ * Updates a default object ACL entry on the specified bucket.
+ * (defaultObjectAccessControls.update)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param Google_Service_Storage_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/ObjectAccessControls.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/ObjectAccessControls.php
new file mode 100644
index 00000000..04734a83
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/ObjectAccessControls.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "objectAccessControls" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storageService = new Google_Service_Storage(...);
+ * $objectAccessControls = $storageService->objectAccessControls;
+ * </code>
+ */
+class Google_Service_Storage_Resource_ObjectAccessControls extends Google_Service_Resource
+{
+ /**
+ * Permanently deletes the ACL entry for the specified entity on the specified
+ * object. (objectAccessControls.delete)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ */
+ public function delete($bucket, $object, $entity, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns the ACL entry for the specified entity on the specified object.
+ * (objectAccessControls.get)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function get($bucket, $object, $entity, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+ /**
+ * Creates a new ACL entry on the specified object.
+ * (objectAccessControls.insert)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param Google_Service_Storage_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+ /**
+ * Retrieves ACL entries on the specified object.
+ * (objectAccessControls.listObjectAccessControls)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_ObjectAccessControls
+ */
+ public function listObjectAccessControls($bucket, $object, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
+ }
+ /**
+ * Updates an ACL entry on the specified object. This method supports patch
+ * semantics. (objectAccessControls.patch)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param Google_Service_Storage_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+ /**
+ * Updates an ACL entry on the specified object. (objectAccessControls.update)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param string $entity The entity holding the permission. Can be user-userId,
+ * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
+ * allAuthenticatedUsers.
+ * @param Google_Service_Storage_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php
new file mode 100644
index 00000000..98155f25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/Resource/Objects.php
@@ -0,0 +1,444 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "objects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storageService = new Google_Service_Storage(...);
+ * $objects = $storageService->objects;
+ * </code>
+ */
+class Google_Service_Storage_Resource_Objects extends Google_Service_Resource
+{
+ /**
+ * Concatenates a list of existing objects into a new object in the same bucket.
+ * (objects.compose)
+ *
+ * @param string $destinationBucket Name of the bucket in which to store the new
+ * object.
+ * @param string $destinationObject Name of the new object. For information
+ * about how to URL encode object names to be path safe, see Encoding URI Path
+ * Parts.
+ * @param Google_Service_Storage_ComposeRequest $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string destinationPredefinedAcl Apply a predefined set of access
+ * controls to the destination object.
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the object's current generation matches the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the object's current metageneration matches the given value.
+ * @return Google_Service_Storage_StorageObject
+ */
+ public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array())
+ {
+ $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('compose', array($params), "Google_Service_Storage_StorageObject");
+ }
+ /**
+ * Copies a source object to a destination object. Optionally overrides
+ * metadata. (objects.copy)
+ *
+ * @param string $sourceBucket Name of the bucket in which to find the source
+ * object.
+ * @param string $sourceObject Name of the source object. For information about
+ * how to URL encode object names to be path safe, see Encoding URI Path Parts.
+ * @param string $destinationBucket Name of the bucket in which to store the new
+ * object. Overrides the provided object metadata's bucket value, if any.For
+ * information about how to URL encode object names to be path safe, see
+ * Encoding URI Path Parts.
+ * @param string $destinationObject Name of the new object. Required when the
+ * object metadata is not otherwise provided. Overrides the object metadata's
+ * name value, if any.
+ * @param Google_Service_Storage_StorageObject $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string destinationPredefinedAcl Apply a predefined set of access
+ * controls to the destination object.
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the destination object's current generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on
+ * whether the destination object's current generation does not match the given
+ * value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the destination object's current metageneration matches the given
+ * value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
+ * whether the destination object's current metageneration does not match the
+ * given value.
+ * @opt_param string ifSourceGenerationMatch Makes the operation conditional on
+ * whether the source object's generation matches the given value.
+ * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional
+ * on whether the source object's generation does not match the given value.
+ * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
+ * on whether the source object's current metageneration matches the given
+ * value.
+ * @opt_param string ifSourceMetagenerationNotMatch Makes the operation
+ * conditional on whether the source object's current metageneration does not
+ * match the given value.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl,
+ * unless the object resource specifies the acl property, when it defaults to
+ * full.
+ * @opt_param string sourceGeneration If present, selects a specific revision of
+ * the source object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_StorageObject
+ */
+ public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array())
+ {
+ $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('copy', array($params), "Google_Service_Storage_StorageObject");
+ }
+ /**
+ * Deletes an object and its metadata. Deletions are permanent if versioning is
+ * not enabled for the bucket, or if the generation parameter is used.
+ * (objects.delete)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, permanently deletes a specific
+ * revision of this object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the object's current generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on
+ * whether the object's current generation does not match the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the object's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
+ * whether the object's current metageneration does not match the given value.
+ */
+ public function delete($bucket, $object, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves an object or its metadata. (objects.get)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the object's generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on
+ * whether the object's generation does not match the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the object's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
+ * whether the object's current metageneration does not match the given value.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @return Google_Service_Storage_StorageObject
+ */
+ public function get($bucket, $object, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storage_StorageObject");
+ }
+ /**
+ * Returns an IAM policy for the specified object. (objects.getIamPolicy)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_Policy
+ */
+ public function getIamPolicy($bucket, $object, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object);
+ $params = array_merge($params, $optParams);
+ return $this->call('getIamPolicy', array($params), "Google_Service_Storage_Policy");
+ }
+ /**
+ * Stores a new object and metadata. (objects.insert)
+ *
+ * @param string $bucket Name of the bucket in which to store the new object.
+ * Overrides the provided object metadata's bucket value, if any.
+ * @param Google_Service_Storage_StorageObject $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string contentEncoding If set, sets the contentEncoding property
+ * of the final object to this value. Setting this parameter is equivalent to
+ * setting the contentEncoding metadata property. This can be useful when
+ * uploading an object with uploadType=media to indicate the encoding of the
+ * content being uploaded.
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the object's current generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on
+ * whether the object's current generation does not match the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the object's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
+ * whether the object's current metageneration does not match the given value.
+ * @opt_param string name Name of the object. Required when the object metadata
+ * is not otherwise provided. Overrides the object metadata's name value, if
+ * any. For information about how to URL encode object names to be path safe,
+ * see Encoding URI Path Parts.
+ * @opt_param string predefinedAcl Apply a predefined set of access controls to
+ * this object.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl,
+ * unless the object resource specifies the acl property, when it defaults to
+ * full.
+ * @return Google_Service_Storage_StorageObject
+ */
+ public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Storage_StorageObject");
+ }
+ /**
+ * Retrieves a list of objects matching the criteria. (objects.listObjects)
+ *
+ * @param string $bucket Name of the bucket in which to look for objects.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delimiter Returns results in a directory-like mode. items
+ * will contain only objects whose names, aside from the prefix, do not contain
+ * delimiter. Objects whose names, aside from the prefix, contain delimiter will
+ * have their name, truncated after the delimiter, returned in prefixes.
+ * Duplicate prefixes are omitted.
+ * @opt_param string maxResults Maximum number of items plus prefixes to return
+ * in a single page of responses. As duplicate prefixes are omitted, fewer total
+ * results may be returned than requested. The service will use this parameter
+ * or 1,000 items, whichever is smaller.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @opt_param string prefix Filter results to objects whose names begin with
+ * this prefix.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @opt_param bool versions If true, lists all versions of an object as distinct
+ * results. The default is false. For more information, see Object Versioning.
+ * @return Google_Service_Storage_Objects
+ */
+ public function listObjects($bucket, $optParams = array())
+ {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Storage_Objects");
+ }
+ /**
+ * Updates an object's metadata. This method supports patch semantics.
+ * (objects.patch)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param Google_Service_Storage_StorageObject $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the object's current generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on
+ * whether the object's current generation does not match the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the object's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
+ * whether the object's current metageneration does not match the given value.
+ * @opt_param string predefinedAcl Apply a predefined set of access controls to
+ * this object.
+ * @opt_param string projection Set of properties to return. Defaults to full.
+ * @return Google_Service_Storage_StorageObject
+ */
+ public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Storage_StorageObject");
+ }
+ /**
+ * Rewrites a source object to a destination object. Optionally overrides
+ * metadata. (objects.rewrite)
+ *
+ * @param string $sourceBucket Name of the bucket in which to find the source
+ * object.
+ * @param string $sourceObject Name of the source object. For information about
+ * how to URL encode object names to be path safe, see Encoding URI Path Parts.
+ * @param string $destinationBucket Name of the bucket in which to store the new
+ * object. Overrides the provided object metadata's bucket value, if any.
+ * @param string $destinationObject Name of the new object. Required when the
+ * object metadata is not otherwise provided. Overrides the object metadata's
+ * name value, if any. For information about how to URL encode object names to
+ * be path safe, see Encoding URI Path Parts.
+ * @param Google_Service_Storage_StorageObject $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string destinationPredefinedAcl Apply a predefined set of access
+ * controls to the destination object.
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the destination object's current generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on
+ * whether the destination object's current generation does not match the given
+ * value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the destination object's current metageneration matches the given
+ * value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
+ * whether the destination object's current metageneration does not match the
+ * given value.
+ * @opt_param string ifSourceGenerationMatch Makes the operation conditional on
+ * whether the source object's generation matches the given value.
+ * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional
+ * on whether the source object's generation does not match the given value.
+ * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional
+ * on whether the source object's current metageneration matches the given
+ * value.
+ * @opt_param string ifSourceMetagenerationNotMatch Makes the operation
+ * conditional on whether the source object's current metageneration does not
+ * match the given value.
+ * @opt_param string maxBytesRewrittenPerCall The maximum number of bytes that
+ * will be rewritten per rewrite request. Most callers shouldn't need to specify
+ * this parameter - it is primarily in place to support testing. If specified
+ * the value must be an integral multiple of 1 MiB (1048576). Also, this only
+ * applies to requests where the source and destination span locations and/or
+ * storage classes. Finally, this value must not change across rewrite calls
+ * else you'll get an error that the rewriteToken is invalid.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl,
+ * unless the object resource specifies the acl property, when it defaults to
+ * full.
+ * @opt_param string rewriteToken Include this field (from the previous rewrite
+ * response) on each rewrite request after the first one, until the rewrite
+ * response 'done' flag is true. Calls that provide a rewriteToken can omit all
+ * other request fields, but if included those fields must match the values
+ * provided in the first rewrite request.
+ * @opt_param string sourceGeneration If present, selects a specific revision of
+ * the source object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_RewriteResponse
+ */
+ public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array())
+ {
+ $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('rewrite', array($params), "Google_Service_Storage_RewriteResponse");
+ }
+ /**
+ * Updates an IAM policy for the specified object. (objects.setIamPolicy)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param Google_Service_Storage_Policy $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_Policy
+ */
+ public function setIamPolicy($bucket, $object, Google_Service_Storage_Policy $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setIamPolicy', array($params), "Google_Service_Storage_Policy");
+ }
+ /**
+ * Tests a set of permissions on the given object to see which, if any, are held
+ * by the caller. (objects.testIamPermissions)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param string|array $permissions Permissions to test.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_TestIamPermissionsResponse
+ */
+ public function testIamPermissions($bucket, $object, $permissions, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'permissions' => $permissions);
+ $params = array_merge($params, $optParams);
+ return $this->call('testIamPermissions', array($params), "Google_Service_Storage_TestIamPermissionsResponse");
+ }
+ /**
+ * Updates an object's metadata. (objects.update)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object. For information about how to URL
+ * encode object names to be path safe, see Encoding URI Path Parts.
+ * @param Google_Service_Storage_StorageObject $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this
+ * object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on
+ * whether the object's current generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on
+ * whether the object's current generation does not match the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on
+ * whether the object's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on
+ * whether the object's current metageneration does not match the given value.
+ * @opt_param string predefinedAcl Apply a predefined set of access controls to
+ * this object.
+ * @opt_param string projection Set of properties to return. Defaults to full.
+ * @return Google_Service_Storage_StorageObject
+ */
+ public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Storage_StorageObject");
+ }
+ /**
+ * Watch for changes on all objects in a bucket. (objects.watchAll)
+ *
+ * @param string $bucket Name of the bucket in which to look for objects.
+ * @param Google_Service_Storage_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delimiter Returns results in a directory-like mode. items
+ * will contain only objects whose names, aside from the prefix, do not contain
+ * delimiter. Objects whose names, aside from the prefix, contain delimiter will
+ * have their name, truncated after the delimiter, returned in prefixes.
+ * Duplicate prefixes are omitted.
+ * @opt_param string maxResults Maximum number of items plus prefixes to return
+ * in a single page of responses. As duplicate prefixes are omitted, fewer total
+ * results may be returned than requested. The service will use this parameter
+ * or 1,000 items, whichever is smaller.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @opt_param string prefix Filter results to objects whose names begin with
+ * this prefix.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @opt_param bool versions If true, lists all versions of an object as distinct
+ * results. The default is false. For more information, see Object Versioning.
+ * @return Google_Service_Storage_Channel
+ */
+ public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array())
+ {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('watchAll', array($params), "Google_Service_Storage_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/RewriteResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/RewriteResponse.php
new file mode 100644
index 00000000..aa8f1c65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/RewriteResponse.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_RewriteResponse extends Google_Model
+{
+ public $done;
+ public $kind;
+ public $objectSize;
+ protected $resourceType = 'Google_Service_Storage_StorageObject';
+ protected $resourceDataType = '';
+ public $rewriteToken;
+ public $totalBytesRewritten;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setObjectSize($objectSize)
+ {
+ $this->objectSize = $objectSize;
+ }
+ public function getObjectSize()
+ {
+ return $this->objectSize;
+ }
+ public function setResource(Google_Service_Storage_StorageObject $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+ public function setRewriteToken($rewriteToken)
+ {
+ $this->rewriteToken = $rewriteToken;
+ }
+ public function getRewriteToken()
+ {
+ return $this->rewriteToken;
+ }
+ public function setTotalBytesRewritten($totalBytesRewritten)
+ {
+ $this->totalBytesRewritten = $totalBytesRewritten;
+ }
+ public function getTotalBytesRewritten()
+ {
+ return $this->totalBytesRewritten;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObject.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObject.php
new file mode 100644
index 00000000..4cfb91ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObject.php
@@ -0,0 +1,268 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_StorageObject extends Google_Collection
+{
+ protected $collection_key = 'acl';
+ protected $aclType = 'Google_Service_Storage_ObjectAccessControl';
+ protected $aclDataType = 'array';
+ public $bucket;
+ public $cacheControl;
+ public $componentCount;
+ public $contentDisposition;
+ public $contentEncoding;
+ public $contentLanguage;
+ public $contentType;
+ public $crc32c;
+ protected $customerEncryptionType = 'Google_Service_Storage_StorageObjectCustomerEncryption';
+ protected $customerEncryptionDataType = '';
+ public $etag;
+ public $generation;
+ public $id;
+ public $kind;
+ public $md5Hash;
+ public $mediaLink;
+ public $metadata;
+ public $metageneration;
+ public $name;
+ protected $ownerType = 'Google_Service_Storage_StorageObjectOwner';
+ protected $ownerDataType = '';
+ public $selfLink;
+ public $size;
+ public $storageClass;
+ public $timeCreated;
+ public $timeDeleted;
+ public $timeStorageClassUpdated;
+ public $updated;
+
+ public function setAcl($acl)
+ {
+ $this->acl = $acl;
+ }
+ public function getAcl()
+ {
+ return $this->acl;
+ }
+ public function setBucket($bucket)
+ {
+ $this->bucket = $bucket;
+ }
+ public function getBucket()
+ {
+ return $this->bucket;
+ }
+ public function setCacheControl($cacheControl)
+ {
+ $this->cacheControl = $cacheControl;
+ }
+ public function getCacheControl()
+ {
+ return $this->cacheControl;
+ }
+ public function setComponentCount($componentCount)
+ {
+ $this->componentCount = $componentCount;
+ }
+ public function getComponentCount()
+ {
+ return $this->componentCount;
+ }
+ public function setContentDisposition($contentDisposition)
+ {
+ $this->contentDisposition = $contentDisposition;
+ }
+ public function getContentDisposition()
+ {
+ return $this->contentDisposition;
+ }
+ public function setContentEncoding($contentEncoding)
+ {
+ $this->contentEncoding = $contentEncoding;
+ }
+ public function getContentEncoding()
+ {
+ return $this->contentEncoding;
+ }
+ public function setContentLanguage($contentLanguage)
+ {
+ $this->contentLanguage = $contentLanguage;
+ }
+ public function getContentLanguage()
+ {
+ return $this->contentLanguage;
+ }
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setCrc32c($crc32c)
+ {
+ $this->crc32c = $crc32c;
+ }
+ public function getCrc32c()
+ {
+ return $this->crc32c;
+ }
+ public function setCustomerEncryption(Google_Service_Storage_StorageObjectCustomerEncryption $customerEncryption)
+ {
+ $this->customerEncryption = $customerEncryption;
+ }
+ public function getCustomerEncryption()
+ {
+ return $this->customerEncryption;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGeneration($generation)
+ {
+ $this->generation = $generation;
+ }
+ public function getGeneration()
+ {
+ return $this->generation;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMd5Hash($md5Hash)
+ {
+ $this->md5Hash = $md5Hash;
+ }
+ public function getMd5Hash()
+ {
+ return $this->md5Hash;
+ }
+ public function setMediaLink($mediaLink)
+ {
+ $this->mediaLink = $mediaLink;
+ }
+ public function getMediaLink()
+ {
+ return $this->mediaLink;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setMetageneration($metageneration)
+ {
+ $this->metageneration = $metageneration;
+ }
+ public function getMetageneration()
+ {
+ return $this->metageneration;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwner(Google_Service_Storage_StorageObjectOwner $owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSize($size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setStorageClass($storageClass)
+ {
+ $this->storageClass = $storageClass;
+ }
+ public function getStorageClass()
+ {
+ return $this->storageClass;
+ }
+ public function setTimeCreated($timeCreated)
+ {
+ $this->timeCreated = $timeCreated;
+ }
+ public function getTimeCreated()
+ {
+ return $this->timeCreated;
+ }
+ public function setTimeDeleted($timeDeleted)
+ {
+ $this->timeDeleted = $timeDeleted;
+ }
+ public function getTimeDeleted()
+ {
+ return $this->timeDeleted;
+ }
+ public function setTimeStorageClassUpdated($timeStorageClassUpdated)
+ {
+ $this->timeStorageClassUpdated = $timeStorageClassUpdated;
+ }
+ public function getTimeStorageClassUpdated()
+ {
+ return $this->timeStorageClassUpdated;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectCustomerEncryption.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectCustomerEncryption.php
new file mode 100644
index 00000000..8dc403cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectCustomerEncryption.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_StorageObjectCustomerEncryption extends Google_Model
+{
+ public $encryptionAlgorithm;
+ public $keySha256;
+
+ public function setEncryptionAlgorithm($encryptionAlgorithm)
+ {
+ $this->encryptionAlgorithm = $encryptionAlgorithm;
+ }
+ public function getEncryptionAlgorithm()
+ {
+ return $this->encryptionAlgorithm;
+ }
+ public function setKeySha256($keySha256)
+ {
+ $this->keySha256 = $keySha256;
+ }
+ public function getKeySha256()
+ {
+ return $this->keySha256;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectOwner.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectOwner.php
new file mode 100644
index 00000000..f2bddfab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/StorageObjectOwner.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_StorageObjectOwner extends Google_Model
+{
+ public $entity;
+ public $entityId;
+
+ public function setEntity($entity)
+ {
+ $this->entity = $entity;
+ }
+ public function getEntity()
+ {
+ return $this->entity;
+ }
+ public function setEntityId($entityId)
+ {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId()
+ {
+ return $this->entityId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/TestIamPermissionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/TestIamPermissionsResponse.php
new file mode 100644
index 00000000..54b16af6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storage/TestIamPermissionsResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storage_TestIamPermissionsResponse extends Google_Collection
+{
+ protected $collection_key = 'permissions';
+ public $kind;
+ public $permissions;
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPermissions($permissions)
+ {
+ $this->permissions = $permissions;
+ }
+ public function getPermissions()
+ {
+ return $this->permissions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer.php
new file mode 100644
index 00000000..9c16b470
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer.php
@@ -0,0 +1,233 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Storagetransfer (v1).
+ *
+ * <p>
+ * Transfers data from external data sources to a Google Cloud Storage bucket or
+ * between Google Cloud Storage buckets.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/storage/transfer" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Storagetransfer extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $googleServiceAccounts;
+ public $transferJobs;
+ public $transferOperations;
+ public $v1;
+
+ /**
+ * Constructs the internal representation of the Storagetransfer service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://storagetransfer.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'storagetransfer';
+
+ $this->googleServiceAccounts = new Google_Service_Storagetransfer_Resource_GoogleServiceAccounts(
+ $this,
+ $this->serviceName,
+ 'googleServiceAccounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/googleServiceAccounts/{projectId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->transferJobs = new Google_Service_Storagetransfer_Resource_TransferJobs(
+ $this,
+ $this->serviceName,
+ 'transferJobs',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/transferJobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'get' => array(
+ 'path' => 'v1/{+jobName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'jobName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/transferJobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'v1/{+jobName}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'jobName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->transferOperations = new Google_Service_Storagetransfer_Resource_TransferOperations(
+ $this,
+ $this->serviceName,
+ 'transferOperations',
+ array(
+ 'methods' => array(
+ 'cancel' => array(
+ 'path' => 'v1/{+name}:cancel',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'pause' => array(
+ 'path' => 'v1/{+name}:pause',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'resume' => array(
+ 'path' => 'v1/{+name}:resume',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->v1 = new Google_Service_Storagetransfer_Resource_V1(
+ $this,
+ $this->serviceName,
+ 'v1',
+ array(
+ 'methods' => array(
+ 'getGoogleServiceAccount' => array(
+ 'path' => 'v1:getGoogleServiceAccount',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsAccessKey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsAccessKey.php
new file mode 100644
index 00000000..f04f3abe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsAccessKey.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_AwsAccessKey extends Google_Model
+{
+ public $accessKeyId;
+ public $secretAccessKey;
+
+ public function setAccessKeyId($accessKeyId)
+ {
+ $this->accessKeyId = $accessKeyId;
+ }
+ public function getAccessKeyId()
+ {
+ return $this->accessKeyId;
+ }
+ public function setSecretAccessKey($secretAccessKey)
+ {
+ $this->secretAccessKey = $secretAccessKey;
+ }
+ public function getSecretAccessKey()
+ {
+ return $this->secretAccessKey;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsS3Data.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsS3Data.php
new file mode 100644
index 00000000..8fa56645
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/AwsS3Data.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_AwsS3Data extends Google_Model
+{
+ protected $awsAccessKeyType = 'Google_Service_Storagetransfer_AwsAccessKey';
+ protected $awsAccessKeyDataType = '';
+ public $bucketName;
+
+ public function setAwsAccessKey(Google_Service_Storagetransfer_AwsAccessKey $awsAccessKey)
+ {
+ $this->awsAccessKey = $awsAccessKey;
+ }
+ public function getAwsAccessKey()
+ {
+ return $this->awsAccessKey;
+ }
+ public function setBucketName($bucketName)
+ {
+ $this->bucketName = $bucketName;
+ }
+ public function getBucketName()
+ {
+ return $this->bucketName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Date.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Date.php
new file mode 100644
index 00000000..dd664def
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Date.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_Date extends Google_Model
+{
+ public $day;
+ public $month;
+ public $year;
+
+ public function setDay($day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth($month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+ public function setYear($year)
+ {
+ $this->year = $year;
+ }
+ public function getYear()
+ {
+ return $this->year;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorLogEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorLogEntry.php
new file mode 100644
index 00000000..ceb040c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorLogEntry.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_ErrorLogEntry extends Google_Collection
+{
+ protected $collection_key = 'errorDetails';
+ public $errorDetails;
+ public $url;
+
+ public function setErrorDetails($errorDetails)
+ {
+ $this->errorDetails = $errorDetails;
+ }
+ public function getErrorDetails()
+ {
+ return $this->errorDetails;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorSummary.php
new file mode 100644
index 00000000..2f35fa3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ErrorSummary.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_ErrorSummary extends Google_Collection
+{
+ protected $collection_key = 'errorLogEntries';
+ public $errorCode;
+ public $errorCount;
+ protected $errorLogEntriesType = 'Google_Service_Storagetransfer_ErrorLogEntry';
+ protected $errorLogEntriesDataType = 'array';
+
+ public function setErrorCode($errorCode)
+ {
+ $this->errorCode = $errorCode;
+ }
+ public function getErrorCode()
+ {
+ return $this->errorCode;
+ }
+ public function setErrorCount($errorCount)
+ {
+ $this->errorCount = $errorCount;
+ }
+ public function getErrorCount()
+ {
+ return $this->errorCount;
+ }
+ public function setErrorLogEntries($errorLogEntries)
+ {
+ $this->errorLogEntries = $errorLogEntries;
+ }
+ public function getErrorLogEntries()
+ {
+ return $this->errorLogEntries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GcsData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GcsData.php
new file mode 100644
index 00000000..66c336a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GcsData.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_GcsData extends Google_Model
+{
+ public $bucketName;
+
+ public function setBucketName($bucketName)
+ {
+ $this->bucketName = $bucketName;
+ }
+ public function getBucketName()
+ {
+ return $this->bucketName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GoogleServiceAccount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GoogleServiceAccount.php
new file mode 100644
index 00000000..8bd338f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/GoogleServiceAccount.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_GoogleServiceAccount extends Google_Model
+{
+ public $accountEmail;
+
+ public function setAccountEmail($accountEmail)
+ {
+ $this->accountEmail = $accountEmail;
+ }
+ public function getAccountEmail()
+ {
+ return $this->accountEmail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/HttpData.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/HttpData.php
new file mode 100644
index 00000000..13b56c59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/HttpData.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_HttpData extends Google_Model
+{
+ public $listUrl;
+
+ public function setListUrl($listUrl)
+ {
+ $this->listUrl = $listUrl;
+ }
+ public function getListUrl()
+ {
+ return $this->listUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListOperationsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListOperationsResponse.php
new file mode 100644
index 00000000..fa0562bc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListOperationsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_ListOperationsResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_Storagetransfer_Operation';
+ protected $operationsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListTransferJobsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListTransferJobsResponse.php
new file mode 100644
index 00000000..48a95f7b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ListTransferJobsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_ListTransferJobsResponse extends Google_Collection
+{
+ protected $collection_key = 'transferJobs';
+ public $nextPageToken;
+ protected $transferJobsType = 'Google_Service_Storagetransfer_TransferJob';
+ protected $transferJobsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTransferJobs($transferJobs)
+ {
+ $this->transferJobs = $transferJobs;
+ }
+ public function getTransferJobs()
+ {
+ return $this->transferJobs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ObjectConditions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ObjectConditions.php
new file mode 100644
index 00000000..37bee489
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ObjectConditions.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_ObjectConditions extends Google_Collection
+{
+ protected $collection_key = 'includePrefixes';
+ public $excludePrefixes;
+ public $includePrefixes;
+ public $maxTimeElapsedSinceLastModification;
+ public $minTimeElapsedSinceLastModification;
+
+ public function setExcludePrefixes($excludePrefixes)
+ {
+ $this->excludePrefixes = $excludePrefixes;
+ }
+ public function getExcludePrefixes()
+ {
+ return $this->excludePrefixes;
+ }
+ public function setIncludePrefixes($includePrefixes)
+ {
+ $this->includePrefixes = $includePrefixes;
+ }
+ public function getIncludePrefixes()
+ {
+ return $this->includePrefixes;
+ }
+ public function setMaxTimeElapsedSinceLastModification($maxTimeElapsedSinceLastModification)
+ {
+ $this->maxTimeElapsedSinceLastModification = $maxTimeElapsedSinceLastModification;
+ }
+ public function getMaxTimeElapsedSinceLastModification()
+ {
+ return $this->maxTimeElapsedSinceLastModification;
+ }
+ public function setMinTimeElapsedSinceLastModification($minTimeElapsedSinceLastModification)
+ {
+ $this->minTimeElapsedSinceLastModification = $minTimeElapsedSinceLastModification;
+ }
+ public function getMinTimeElapsedSinceLastModification()
+ {
+ return $this->minTimeElapsedSinceLastModification;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Operation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Operation.php
new file mode 100644
index 00000000..f80fb2a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Operation.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_Operation extends Google_Model
+{
+ public $done;
+ protected $errorType = 'Google_Service_Storagetransfer_Status';
+ protected $errorDataType = '';
+ public $metadata;
+ public $name;
+ public $response;
+
+ public function setDone($done)
+ {
+ $this->done = $done;
+ }
+ public function getDone()
+ {
+ return $this->done;
+ }
+ public function setError(Google_Service_Storagetransfer_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setResponse($response)
+ {
+ $this->response = $response;
+ }
+ public function getResponse()
+ {
+ return $this->response;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/PauseTransferOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/PauseTransferOperationRequest.php
new file mode 100644
index 00000000..f466122e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/PauseTransferOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_PauseTransferOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/GoogleServiceAccounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/GoogleServiceAccounts.php
new file mode 100644
index 00000000..b6cc0102
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/GoogleServiceAccounts.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "googleServiceAccounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storagetransferService = new Google_Service_Storagetransfer(...);
+ * $googleServiceAccounts = $storagetransferService->googleServiceAccounts;
+ * </code>
+ */
+class Google_Service_Storagetransfer_Resource_GoogleServiceAccounts extends Google_Service_Resource
+{
+ /**
+ * Returns the Google service account that is used by Storage Transfer Service
+ * to access buckets in the project where transfers run or in other projects.
+ * Each Google service account is associated with one Google Developers Console
+ * project. Users should add this service account to the Google Cloud Storage
+ * bucket ACLs to grant access to Storage Transfer Service. This service account
+ * is created and owned by Storage Transfer Service and can only be used by
+ * Storage Transfer Service. (googleServiceAccounts.get)
+ *
+ * @param string $projectId The ID of the Google Developers Console project that
+ * the Google service account is associated with. Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_GoogleServiceAccount
+ */
+ public function get($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storagetransfer_GoogleServiceAccount");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php
new file mode 100644
index 00000000..6e910a4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferJobs.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "transferJobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storagetransferService = new Google_Service_Storagetransfer(...);
+ * $transferJobs = $storagetransferService->transferJobs;
+ * </code>
+ */
+class Google_Service_Storagetransfer_Resource_TransferJobs extends Google_Service_Resource
+{
+ /**
+ * Creates a transfer job that runs periodically. (transferJobs.create)
+ *
+ * @param Google_Service_Storagetransfer_TransferJob $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_TransferJob
+ */
+ public function create(Google_Service_Storagetransfer_TransferJob $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Storagetransfer_TransferJob");
+ }
+ /**
+ * Gets a transfer job. (transferJobs.get)
+ *
+ * @param string $jobName The job to get. Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The ID of the Google Developers Console project
+ * that owns the job. Required.
+ * @return Google_Service_Storagetransfer_TransferJob
+ */
+ public function get($jobName, $optParams = array())
+ {
+ $params = array('jobName' => $jobName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storagetransfer_TransferJob");
+ }
+ /**
+ * Lists transfer jobs. (transferJobs.listTransferJobs)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter A list of query parameters specified as JSON text in
+ * the form of {"`project_id`":"my_project_id",
+ * "`job_names`":["jobid1","jobid2",...],
+ * "`job_statuses`":["status1","status2",...]}. Since `job_names` and
+ * `job_statuses` support multiple values, their values must be specified with
+ * array notation. `project_id` is required. `job_names` and `job_statuses` are
+ * optional. The valid values for `job_statuses` are case-insensitive:
+ * `ENABLED`, `DISABLED`, and `DELETED`.
+ * @opt_param int pageSize The list page size. The max allowed value is 256.
+ * @opt_param string pageToken The list page token.
+ * @return Google_Service_Storagetransfer_ListTransferJobsResponse
+ */
+ public function listTransferJobs($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Storagetransfer_ListTransferJobsResponse");
+ }
+ /**
+ * Updates a transfer job. Updating a job's transfer spec does not affect
+ * transfer operations that are running already. Updating the scheduling of a
+ * job is not allowed. (transferJobs.patch)
+ *
+ * @param string $jobName The name of job to update. Required.
+ * @param Google_Service_Storagetransfer_UpdateTransferJobRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_TransferJob
+ */
+ public function patch($jobName, Google_Service_Storagetransfer_UpdateTransferJobRequest $postBody, $optParams = array())
+ {
+ $params = array('jobName' => $jobName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Storagetransfer_TransferJob");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php
new file mode 100644
index 00000000..f1c9cfbd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/TransferOperations.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "transferOperations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storagetransferService = new Google_Service_Storagetransfer(...);
+ * $transferOperations = $storagetransferService->transferOperations;
+ * </code>
+ */
+class Google_Service_Storagetransfer_Resource_TransferOperations extends Google_Service_Resource
+{
+ /**
+ * Cancels a transfer. Use the get method to check whether the cancellation
+ * succeeded or whether the operation completed despite cancellation.
+ * (transferOperations.cancel)
+ *
+ * @param string $name The name of the operation resource to be cancelled.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_StoragetransferEmpty
+ */
+ public function cancel($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('cancel', array($params), "Google_Service_Storagetransfer_StoragetransferEmpty");
+ }
+ /**
+ * This method is not supported and the server returns `UNIMPLEMENTED`.
+ * (transferOperations.delete)
+ *
+ * @param string $name The name of the operation resource to be deleted.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_StoragetransferEmpty
+ */
+ public function delete($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Storagetransfer_StoragetransferEmpty");
+ }
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this
+ * method to poll the operation result at intervals as recommended by the API
+ * service. (transferOperations.get)
+ *
+ * @param string $name The name of the operation resource.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_Operation
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Storagetransfer_Operation");
+ }
+ /**
+ * Lists operations that match the specified filter in the request. If the
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the
+ * `name` binding below allows API services to override the binding to use
+ * different resource name schemes, such as `users/operations`.
+ * (transferOperations.listTransferOperations)
+ *
+ * @param string $name The value `transferOperations`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The standard list filter.
+ * @opt_param int pageSize The standard list page size.
+ * @opt_param string pageToken The standard list page token.
+ * @return Google_Service_Storagetransfer_ListOperationsResponse
+ */
+ public function listTransferOperations($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Storagetransfer_ListOperationsResponse");
+ }
+ /**
+ * Pauses a transfer operation. (transferOperations.pause)
+ *
+ * @param string $name The name of the transfer operation. Required.
+ * @param Google_Service_Storagetransfer_PauseTransferOperationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_StoragetransferEmpty
+ */
+ public function pause($name, Google_Service_Storagetransfer_PauseTransferOperationRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('pause', array($params), "Google_Service_Storagetransfer_StoragetransferEmpty");
+ }
+ /**
+ * Resumes a transfer operation that is paused. (transferOperations.resume)
+ *
+ * @param string $name The name of the transfer operation. Required.
+ * @param Google_Service_Storagetransfer_ResumeTransferOperationRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storagetransfer_StoragetransferEmpty
+ */
+ public function resume($name, Google_Service_Storagetransfer_ResumeTransferOperationRequest $postBody, $optParams = array())
+ {
+ $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('resume', array($params), "Google_Service_Storagetransfer_StoragetransferEmpty");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/V1.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/V1.php
new file mode 100644
index 00000000..9e9a7106
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Resource/V1.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "v1" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $storagetransferService = new Google_Service_Storagetransfer(...);
+ * $v1 = $storagetransferService->v1;
+ * </code>
+ */
+class Google_Service_Storagetransfer_Resource_V1 extends Google_Service_Resource
+{
+ /**
+ * Returns the Google service account that is used by Storage Transfer Service
+ * to access buckets in the project where transfers run or in other projects.
+ * Each Google service account is associated with one Google Developers Console
+ * project. Users should add this service account to the Google Cloud Storage
+ * bucket ACLs to grant access to Storage Transfer Service. This service account
+ * is created and owned by Storage Transfer Service and can only be used by
+ * Storage Transfer Service. (v1.getGoogleServiceAccount)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projectId The ID of the Google Developers Console project
+ * that the Google service account is associated with. Required.
+ * @return Google_Service_Storagetransfer_GoogleServiceAccount
+ */
+ public function getGoogleServiceAccount($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('getGoogleServiceAccount', array($params), "Google_Service_Storagetransfer_GoogleServiceAccount");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ResumeTransferOperationRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ResumeTransferOperationRequest.php
new file mode 100644
index 00000000..517b12bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/ResumeTransferOperationRequest.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_ResumeTransferOperationRequest extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Schedule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Schedule.php
new file mode 100644
index 00000000..6f812e4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Schedule.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_Schedule extends Google_Model
+{
+ protected $scheduleEndDateType = 'Google_Service_Storagetransfer_Date';
+ protected $scheduleEndDateDataType = '';
+ protected $scheduleStartDateType = 'Google_Service_Storagetransfer_Date';
+ protected $scheduleStartDateDataType = '';
+ protected $startTimeOfDayType = 'Google_Service_Storagetransfer_TimeOfDay';
+ protected $startTimeOfDayDataType = '';
+
+ public function setScheduleEndDate(Google_Service_Storagetransfer_Date $scheduleEndDate)
+ {
+ $this->scheduleEndDate = $scheduleEndDate;
+ }
+ public function getScheduleEndDate()
+ {
+ return $this->scheduleEndDate;
+ }
+ public function setScheduleStartDate(Google_Service_Storagetransfer_Date $scheduleStartDate)
+ {
+ $this->scheduleStartDate = $scheduleStartDate;
+ }
+ public function getScheduleStartDate()
+ {
+ return $this->scheduleStartDate;
+ }
+ public function setStartTimeOfDay(Google_Service_Storagetransfer_TimeOfDay $startTimeOfDay)
+ {
+ $this->startTimeOfDay = $startTimeOfDay;
+ }
+ public function getStartTimeOfDay()
+ {
+ return $this->startTimeOfDay;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Status.php
new file mode 100644
index 00000000..fd4e4ba4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/StoragetransferEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/StoragetransferEmpty.php
new file mode 100644
index 00000000..f69378d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/StoragetransferEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_StoragetransferEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TimeOfDay.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TimeOfDay.php
new file mode 100644
index 00000000..a613688b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TimeOfDay.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_TimeOfDay extends Google_Model
+{
+ public $hours;
+ public $minutes;
+ public $nanos;
+ public $seconds;
+
+ public function setHours($hours)
+ {
+ $this->hours = $hours;
+ }
+ public function getHours()
+ {
+ return $this->hours;
+ }
+ public function setMinutes($minutes)
+ {
+ $this->minutes = $minutes;
+ }
+ public function getMinutes()
+ {
+ return $this->minutes;
+ }
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+ public function setSeconds($seconds)
+ {
+ $this->seconds = $seconds;
+ }
+ public function getSeconds()
+ {
+ return $this->seconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferCounters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferCounters.php
new file mode 100644
index 00000000..a948b81b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferCounters.php
@@ -0,0 +1,165 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_TransferCounters extends Google_Model
+{
+ public $bytesCopiedToSink;
+ public $bytesDeletedFromSink;
+ public $bytesDeletedFromSource;
+ public $bytesFailedToDeleteFromSink;
+ public $bytesFoundFromSource;
+ public $bytesFoundOnlyFromSink;
+ public $bytesFromSourceFailed;
+ public $bytesFromSourceSkippedBySync;
+ public $objectsCopiedToSink;
+ public $objectsDeletedFromSink;
+ public $objectsDeletedFromSource;
+ public $objectsFailedToDeleteFromSink;
+ public $objectsFoundFromSource;
+ public $objectsFoundOnlyFromSink;
+ public $objectsFromSourceFailed;
+ public $objectsFromSourceSkippedBySync;
+
+ public function setBytesCopiedToSink($bytesCopiedToSink)
+ {
+ $this->bytesCopiedToSink = $bytesCopiedToSink;
+ }
+ public function getBytesCopiedToSink()
+ {
+ return $this->bytesCopiedToSink;
+ }
+ public function setBytesDeletedFromSink($bytesDeletedFromSink)
+ {
+ $this->bytesDeletedFromSink = $bytesDeletedFromSink;
+ }
+ public function getBytesDeletedFromSink()
+ {
+ return $this->bytesDeletedFromSink;
+ }
+ public function setBytesDeletedFromSource($bytesDeletedFromSource)
+ {
+ $this->bytesDeletedFromSource = $bytesDeletedFromSource;
+ }
+ public function getBytesDeletedFromSource()
+ {
+ return $this->bytesDeletedFromSource;
+ }
+ public function setBytesFailedToDeleteFromSink($bytesFailedToDeleteFromSink)
+ {
+ $this->bytesFailedToDeleteFromSink = $bytesFailedToDeleteFromSink;
+ }
+ public function getBytesFailedToDeleteFromSink()
+ {
+ return $this->bytesFailedToDeleteFromSink;
+ }
+ public function setBytesFoundFromSource($bytesFoundFromSource)
+ {
+ $this->bytesFoundFromSource = $bytesFoundFromSource;
+ }
+ public function getBytesFoundFromSource()
+ {
+ return $this->bytesFoundFromSource;
+ }
+ public function setBytesFoundOnlyFromSink($bytesFoundOnlyFromSink)
+ {
+ $this->bytesFoundOnlyFromSink = $bytesFoundOnlyFromSink;
+ }
+ public function getBytesFoundOnlyFromSink()
+ {
+ return $this->bytesFoundOnlyFromSink;
+ }
+ public function setBytesFromSourceFailed($bytesFromSourceFailed)
+ {
+ $this->bytesFromSourceFailed = $bytesFromSourceFailed;
+ }
+ public function getBytesFromSourceFailed()
+ {
+ return $this->bytesFromSourceFailed;
+ }
+ public function setBytesFromSourceSkippedBySync($bytesFromSourceSkippedBySync)
+ {
+ $this->bytesFromSourceSkippedBySync = $bytesFromSourceSkippedBySync;
+ }
+ public function getBytesFromSourceSkippedBySync()
+ {
+ return $this->bytesFromSourceSkippedBySync;
+ }
+ public function setObjectsCopiedToSink($objectsCopiedToSink)
+ {
+ $this->objectsCopiedToSink = $objectsCopiedToSink;
+ }
+ public function getObjectsCopiedToSink()
+ {
+ return $this->objectsCopiedToSink;
+ }
+ public function setObjectsDeletedFromSink($objectsDeletedFromSink)
+ {
+ $this->objectsDeletedFromSink = $objectsDeletedFromSink;
+ }
+ public function getObjectsDeletedFromSink()
+ {
+ return $this->objectsDeletedFromSink;
+ }
+ public function setObjectsDeletedFromSource($objectsDeletedFromSource)
+ {
+ $this->objectsDeletedFromSource = $objectsDeletedFromSource;
+ }
+ public function getObjectsDeletedFromSource()
+ {
+ return $this->objectsDeletedFromSource;
+ }
+ public function setObjectsFailedToDeleteFromSink($objectsFailedToDeleteFromSink)
+ {
+ $this->objectsFailedToDeleteFromSink = $objectsFailedToDeleteFromSink;
+ }
+ public function getObjectsFailedToDeleteFromSink()
+ {
+ return $this->objectsFailedToDeleteFromSink;
+ }
+ public function setObjectsFoundFromSource($objectsFoundFromSource)
+ {
+ $this->objectsFoundFromSource = $objectsFoundFromSource;
+ }
+ public function getObjectsFoundFromSource()
+ {
+ return $this->objectsFoundFromSource;
+ }
+ public function setObjectsFoundOnlyFromSink($objectsFoundOnlyFromSink)
+ {
+ $this->objectsFoundOnlyFromSink = $objectsFoundOnlyFromSink;
+ }
+ public function getObjectsFoundOnlyFromSink()
+ {
+ return $this->objectsFoundOnlyFromSink;
+ }
+ public function setObjectsFromSourceFailed($objectsFromSourceFailed)
+ {
+ $this->objectsFromSourceFailed = $objectsFromSourceFailed;
+ }
+ public function getObjectsFromSourceFailed()
+ {
+ return $this->objectsFromSourceFailed;
+ }
+ public function setObjectsFromSourceSkippedBySync($objectsFromSourceSkippedBySync)
+ {
+ $this->objectsFromSourceSkippedBySync = $objectsFromSourceSkippedBySync;
+ }
+ public function getObjectsFromSourceSkippedBySync()
+ {
+ return $this->objectsFromSourceSkippedBySync;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferJob.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferJob.php
new file mode 100644
index 00000000..e362fe93
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferJob.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_TransferJob extends Google_Model
+{
+ public $creationTime;
+ public $deletionTime;
+ public $description;
+ public $lastModificationTime;
+ public $name;
+ public $projectId;
+ protected $scheduleType = 'Google_Service_Storagetransfer_Schedule';
+ protected $scheduleDataType = '';
+ public $status;
+ protected $transferSpecType = 'Google_Service_Storagetransfer_TransferSpec';
+ protected $transferSpecDataType = '';
+
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDeletionTime($deletionTime)
+ {
+ $this->deletionTime = $deletionTime;
+ }
+ public function getDeletionTime()
+ {
+ return $this->deletionTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLastModificationTime($lastModificationTime)
+ {
+ $this->lastModificationTime = $lastModificationTime;
+ }
+ public function getLastModificationTime()
+ {
+ return $this->lastModificationTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setSchedule(Google_Service_Storagetransfer_Schedule $schedule)
+ {
+ $this->schedule = $schedule;
+ }
+ public function getSchedule()
+ {
+ return $this->schedule;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTransferSpec(Google_Service_Storagetransfer_TransferSpec $transferSpec)
+ {
+ $this->transferSpec = $transferSpec;
+ }
+ public function getTransferSpec()
+ {
+ return $this->transferSpec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOperation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOperation.php
new file mode 100644
index 00000000..7a93c26b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOperation.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_TransferOperation extends Google_Collection
+{
+ protected $collection_key = 'errorBreakdowns';
+ protected $countersType = 'Google_Service_Storagetransfer_TransferCounters';
+ protected $countersDataType = '';
+ public $endTime;
+ protected $errorBreakdownsType = 'Google_Service_Storagetransfer_ErrorSummary';
+ protected $errorBreakdownsDataType = 'array';
+ public $name;
+ public $projectId;
+ public $startTime;
+ public $status;
+ public $transferJobName;
+ protected $transferSpecType = 'Google_Service_Storagetransfer_TransferSpec';
+ protected $transferSpecDataType = '';
+
+ public function setCounters(Google_Service_Storagetransfer_TransferCounters $counters)
+ {
+ $this->counters = $counters;
+ }
+ public function getCounters()
+ {
+ return $this->counters;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setErrorBreakdowns($errorBreakdowns)
+ {
+ $this->errorBreakdowns = $errorBreakdowns;
+ }
+ public function getErrorBreakdowns()
+ {
+ return $this->errorBreakdowns;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTransferJobName($transferJobName)
+ {
+ $this->transferJobName = $transferJobName;
+ }
+ public function getTransferJobName()
+ {
+ return $this->transferJobName;
+ }
+ public function setTransferSpec(Google_Service_Storagetransfer_TransferSpec $transferSpec)
+ {
+ $this->transferSpec = $transferSpec;
+ }
+ public function getTransferSpec()
+ {
+ return $this->transferSpec;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOptions.php
new file mode 100644
index 00000000..da15ff71
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferOptions.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_TransferOptions extends Google_Model
+{
+ public $deleteObjectsFromSourceAfterTransfer;
+ public $deleteObjectsUniqueInSink;
+ public $overwriteObjectsAlreadyExistingInSink;
+
+ public function setDeleteObjectsFromSourceAfterTransfer($deleteObjectsFromSourceAfterTransfer)
+ {
+ $this->deleteObjectsFromSourceAfterTransfer = $deleteObjectsFromSourceAfterTransfer;
+ }
+ public function getDeleteObjectsFromSourceAfterTransfer()
+ {
+ return $this->deleteObjectsFromSourceAfterTransfer;
+ }
+ public function setDeleteObjectsUniqueInSink($deleteObjectsUniqueInSink)
+ {
+ $this->deleteObjectsUniqueInSink = $deleteObjectsUniqueInSink;
+ }
+ public function getDeleteObjectsUniqueInSink()
+ {
+ return $this->deleteObjectsUniqueInSink;
+ }
+ public function setOverwriteObjectsAlreadyExistingInSink($overwriteObjectsAlreadyExistingInSink)
+ {
+ $this->overwriteObjectsAlreadyExistingInSink = $overwriteObjectsAlreadyExistingInSink;
+ }
+ public function getOverwriteObjectsAlreadyExistingInSink()
+ {
+ return $this->overwriteObjectsAlreadyExistingInSink;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferSpec.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferSpec.php
new file mode 100644
index 00000000..1d9ea626
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/TransferSpec.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_TransferSpec extends Google_Model
+{
+ protected $awsS3DataSourceType = 'Google_Service_Storagetransfer_AwsS3Data';
+ protected $awsS3DataSourceDataType = '';
+ protected $gcsDataSinkType = 'Google_Service_Storagetransfer_GcsData';
+ protected $gcsDataSinkDataType = '';
+ protected $gcsDataSourceType = 'Google_Service_Storagetransfer_GcsData';
+ protected $gcsDataSourceDataType = '';
+ protected $httpDataSourceType = 'Google_Service_Storagetransfer_HttpData';
+ protected $httpDataSourceDataType = '';
+ protected $objectConditionsType = 'Google_Service_Storagetransfer_ObjectConditions';
+ protected $objectConditionsDataType = '';
+ protected $transferOptionsType = 'Google_Service_Storagetransfer_TransferOptions';
+ protected $transferOptionsDataType = '';
+
+ public function setAwsS3DataSource(Google_Service_Storagetransfer_AwsS3Data $awsS3DataSource)
+ {
+ $this->awsS3DataSource = $awsS3DataSource;
+ }
+ public function getAwsS3DataSource()
+ {
+ return $this->awsS3DataSource;
+ }
+ public function setGcsDataSink(Google_Service_Storagetransfer_GcsData $gcsDataSink)
+ {
+ $this->gcsDataSink = $gcsDataSink;
+ }
+ public function getGcsDataSink()
+ {
+ return $this->gcsDataSink;
+ }
+ public function setGcsDataSource(Google_Service_Storagetransfer_GcsData $gcsDataSource)
+ {
+ $this->gcsDataSource = $gcsDataSource;
+ }
+ public function getGcsDataSource()
+ {
+ return $this->gcsDataSource;
+ }
+ public function setHttpDataSource(Google_Service_Storagetransfer_HttpData $httpDataSource)
+ {
+ $this->httpDataSource = $httpDataSource;
+ }
+ public function getHttpDataSource()
+ {
+ return $this->httpDataSource;
+ }
+ public function setObjectConditions(Google_Service_Storagetransfer_ObjectConditions $objectConditions)
+ {
+ $this->objectConditions = $objectConditions;
+ }
+ public function getObjectConditions()
+ {
+ return $this->objectConditions;
+ }
+ public function setTransferOptions(Google_Service_Storagetransfer_TransferOptions $transferOptions)
+ {
+ $this->transferOptions = $transferOptions;
+ }
+ public function getTransferOptions()
+ {
+ return $this->transferOptions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/UpdateTransferJobRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/UpdateTransferJobRequest.php
new file mode 100644
index 00000000..335e299d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Storagetransfer/UpdateTransferJobRequest.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Storagetransfer_UpdateTransferJobRequest extends Google_Model
+{
+ public $projectId;
+ protected $transferJobType = 'Google_Service_Storagetransfer_TransferJob';
+ protected $transferJobDataType = '';
+ public $updateTransferJobFieldMask;
+
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setTransferJob(Google_Service_Storagetransfer_TransferJob $transferJob)
+ {
+ $this->transferJob = $transferJob;
+ }
+ public function getTransferJob()
+ {
+ return $this->transferJob;
+ }
+ public function setUpdateTransferJobFieldMask($updateTransferJobFieldMask)
+ {
+ $this->updateTransferJobFieldMask = $updateTransferJobFieldMask;
+ }
+ public function getUpdateTransferJobFieldMask()
+ {
+ return $this->updateTransferJobFieldMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys.php
new file mode 100644
index 00000000..330337be
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys.php
@@ -0,0 +1,210 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Surveys (v2).
+ *
+ * <p>
+ * Creates and conducts surveys, lists the surveys that an authenticated user
+ * owns, and retrieves survey results and information about specified surveys.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Surveys extends Google_Service
+{
+ /** View and manage your surveys and results. */
+ const SURVEYS =
+ "https://www.googleapis.com/auth/surveys";
+ /** View your surveys and survey results. */
+ const SURVEYS_READONLY =
+ "https://www.googleapis.com/auth/surveys.readonly";
+ /** View your email address. */
+ const USERINFO_EMAIL =
+ "https://www.googleapis.com/auth/userinfo.email";
+
+ public $mobileapppanels;
+ public $results;
+ public $surveys;
+
+ /**
+ * Constructs the internal representation of the Surveys service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'surveys/v2/';
+ $this->version = 'v2';
+ $this->serviceName = 'surveys';
+
+ $this->mobileapppanels = new Google_Service_Surveys_Resource_Mobileapppanels(
+ $this,
+ $this->serviceName,
+ 'mobileapppanels',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'mobileAppPanels/{panelId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'panelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'mobileAppPanels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'mobileAppPanels/{panelId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'panelId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->results = new Google_Service_Surveys_Resource_Results(
+ $this,
+ $this->serviceName,
+ 'results',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'surveys/{surveyUrlId}/results',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->surveys = new Google_Service_Surveys_Resource_Surveys(
+ $this,
+ $this->serviceName,
+ 'surveys',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'surveys/{surveyUrlId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'surveys/{surveyUrlId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'surveys',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'surveys',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'startIndex' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'start' => array(
+ 'path' => 'surveys/{resourceId}/start',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'stop' => array(
+ 'path' => 'surveys/{resourceId}/stop',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'resourceId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'surveys/{surveyUrlId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'surveyUrlId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/FieldMask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/FieldMask.php
new file mode 100644
index 00000000..76062663
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/FieldMask.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_FieldMask extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ protected $fieldsType = 'Google_Service_Surveys_FieldMask';
+ protected $fieldsDataType = 'array';
+ public $id;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanel.php
new file mode 100644
index 00000000..a85b1ed7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanel.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_MobileAppPanel extends Google_Collection
+{
+ protected $collection_key = 'owners';
+ public $country;
+ public $isPublicPanel;
+ public $language;
+ public $mobileAppPanelId;
+ public $name;
+ public $owners;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setIsPublicPanel($isPublicPanel)
+ {
+ $this->isPublicPanel = $isPublicPanel;
+ }
+ public function getIsPublicPanel()
+ {
+ return $this->isPublicPanel;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setMobileAppPanelId($mobileAppPanelId)
+ {
+ $this->mobileAppPanelId = $mobileAppPanelId;
+ }
+ public function getMobileAppPanelId()
+ {
+ return $this->mobileAppPanelId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOwners($owners)
+ {
+ $this->owners = $owners;
+ }
+ public function getOwners()
+ {
+ return $this->owners;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanelsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanelsListResponse.php
new file mode 100644
index 00000000..942bf858
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/MobileAppPanelsListResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_MobileAppPanelsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ protected $pageInfoType = 'Google_Service_Surveys_PageInfo';
+ protected $pageInfoDataType = '';
+ public $requestId;
+ protected $resourcesType = 'Google_Service_Surveys_MobileAppPanel';
+ protected $resourcesDataType = 'array';
+ protected $tokenPaginationType = 'Google_Service_Surveys_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setPageInfo(Google_Service_Surveys_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+ public function setTokenPagination(Google_Service_Surveys_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/PageInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/PageInfo.php
new file mode 100644
index 00000000..bd07806c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/PageInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_PageInfo extends Google_Model
+{
+ public $resultPerPage;
+ public $startIndex;
+ public $totalResults;
+
+ public function setResultPerPage($resultPerPage)
+ {
+ $this->resultPerPage = $resultPerPage;
+ }
+ public function getResultPerPage()
+ {
+ return $this->resultPerPage;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Mobileapppanels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Mobileapppanels.php
new file mode 100644
index 00000000..6e3265d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Mobileapppanels.php
@@ -0,0 +1,74 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "mobileapppanels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $surveysService = new Google_Service_Surveys(...);
+ * $mobileapppanels = $surveysService->mobileapppanels;
+ * </code>
+ */
+class Google_Service_Surveys_Resource_Mobileapppanels extends Google_Service_Resource
+{
+ /**
+ * Retrieves a MobileAppPanel that is available to the authenticated user.
+ * (mobileapppanels.get)
+ *
+ * @param string $panelId External URL ID for the panel.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_MobileAppPanel
+ */
+ public function get($panelId, $optParams = array())
+ {
+ $params = array('panelId' => $panelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Surveys_MobileAppPanel");
+ }
+ /**
+ * Lists the MobileAppPanels available to the authenticated user.
+ * (mobileapppanels.listMobileapppanels)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults
+ * @opt_param string startIndex
+ * @opt_param string token
+ * @return Google_Service_Surveys_MobileAppPanelsListResponse
+ */
+ public function listMobileapppanels($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Surveys_MobileAppPanelsListResponse");
+ }
+ /**
+ * Updates a MobileAppPanel. Currently the only property that can be updated is
+ * the owners property. (mobileapppanels.update)
+ *
+ * @param string $panelId External URL ID for the panel.
+ * @param Google_Service_Surveys_MobileAppPanel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_MobileAppPanel
+ */
+ public function update($panelId, Google_Service_Surveys_MobileAppPanel $postBody, $optParams = array())
+ {
+ $params = array('panelId' => $panelId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Surveys_MobileAppPanel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Results.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Results.php
new file mode 100644
index 00000000..ec6346dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Results.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "results" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $surveysService = new Google_Service_Surveys(...);
+ * $results = $surveysService->results;
+ * </code>
+ */
+class Google_Service_Surveys_Resource_Results extends Google_Service_Resource
+{
+ /**
+ * Retrieves any survey results that have been produced so far. Results are
+ * formatted as an Excel file. You must add "?alt=media" to the URL as an
+ * argument to get results. (results.get)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_SurveyResults
+ */
+ public function get($surveyUrlId, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Surveys_SurveyResults");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Surveys.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Surveys.php
new file mode 100644
index 00000000..86765b01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Resource/Surveys.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "surveys" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $surveysService = new Google_Service_Surveys(...);
+ * $surveys = $surveysService->surveys;
+ * </code>
+ */
+class Google_Service_Surveys_Resource_Surveys extends Google_Service_Resource
+{
+ /**
+ * Removes a survey from view in all user GET requests. (surveys.delete)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_SurveysDeleteResponse
+ */
+ public function delete($surveyUrlId, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Surveys_SurveysDeleteResponse");
+ }
+ /**
+ * Retrieves information about the specified survey. (surveys.get)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_Survey
+ */
+ public function get($surveyUrlId, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Surveys_Survey");
+ }
+ /**
+ * Creates a survey. (surveys.insert)
+ *
+ * @param Google_Service_Surveys_Survey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_Survey
+ */
+ public function insert(Google_Service_Surveys_Survey $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Surveys_Survey");
+ }
+ /**
+ * Lists the surveys owned by the authenticated user. (surveys.listSurveys)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults
+ * @opt_param string startIndex
+ * @opt_param string token
+ * @return Google_Service_Surveys_SurveysListResponse
+ */
+ public function listSurveys($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Surveys_SurveysListResponse");
+ }
+ /**
+ * Begins running a survey. (surveys.start)
+ *
+ * @param string $resourceId
+ * @param Google_Service_Surveys_SurveysStartRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_SurveysStartResponse
+ */
+ public function start($resourceId, Google_Service_Surveys_SurveysStartRequest $postBody, $optParams = array())
+ {
+ $params = array('resourceId' => $resourceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('start', array($params), "Google_Service_Surveys_SurveysStartResponse");
+ }
+ /**
+ * Stops a running survey. (surveys.stop)
+ *
+ * @param string $resourceId
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_SurveysStopResponse
+ */
+ public function stop($resourceId, $optParams = array())
+ {
+ $params = array('resourceId' => $resourceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('stop', array($params), "Google_Service_Surveys_SurveysStopResponse");
+ }
+ /**
+ * Updates a survey. Currently the only property that can be updated is the
+ * owners property. (surveys.update)
+ *
+ * @param string $surveyUrlId External URL ID for the survey.
+ * @param Google_Service_Surveys_Survey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Surveys_Survey
+ */
+ public function update($surveyUrlId, Google_Service_Surveys_Survey $postBody, $optParams = array())
+ {
+ $params = array('surveyUrlId' => $surveyUrlId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Surveys_Survey");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsGetRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsGetRequest.php
new file mode 100644
index 00000000..3d8324e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsGetRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_ResultsGetRequest extends Google_Model
+{
+ protected $resultMaskType = 'Google_Service_Surveys_ResultsMask';
+ protected $resultMaskDataType = '';
+
+ public function setResultMask(Google_Service_Surveys_ResultsMask $resultMask)
+ {
+ $this->resultMask = $resultMask;
+ }
+ public function getResultMask()
+ {
+ return $this->resultMask;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsMask.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsMask.php
new file mode 100644
index 00000000..594b86a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/ResultsMask.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_ResultsMask extends Google_Collection
+{
+ protected $collection_key = 'fields';
+ protected $fieldsType = 'Google_Service_Surveys_FieldMask';
+ protected $fieldsDataType = 'array';
+ public $projection;
+
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setProjection($projection)
+ {
+ $this->projection = $projection;
+ }
+ public function getProjection()
+ {
+ return $this->projection;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Survey.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Survey.php
new file mode 100644
index 00000000..481abf86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/Survey.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_Survey extends Google_Collection
+{
+ protected $collection_key = 'questions';
+ protected $audienceType = 'Google_Service_Surveys_SurveyAudience';
+ protected $audienceDataType = '';
+ protected $costType = 'Google_Service_Surveys_SurveyCost';
+ protected $costDataType = '';
+ public $customerData;
+ public $description;
+ public $owners;
+ protected $questionsType = 'Google_Service_Surveys_SurveyQuestion';
+ protected $questionsDataType = 'array';
+ protected $rejectionReasonType = 'Google_Service_Surveys_SurveyRejection';
+ protected $rejectionReasonDataType = '';
+ public $state;
+ public $surveyUrlId;
+ public $title;
+ public $wantedResponseCount;
+
+ public function setAudience(Google_Service_Surveys_SurveyAudience $audience)
+ {
+ $this->audience = $audience;
+ }
+ public function getAudience()
+ {
+ return $this->audience;
+ }
+ public function setCost(Google_Service_Surveys_SurveyCost $cost)
+ {
+ $this->cost = $cost;
+ }
+ public function getCost()
+ {
+ return $this->cost;
+ }
+ public function setCustomerData($customerData)
+ {
+ $this->customerData = $customerData;
+ }
+ public function getCustomerData()
+ {
+ return $this->customerData;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setOwners($owners)
+ {
+ $this->owners = $owners;
+ }
+ public function getOwners()
+ {
+ return $this->owners;
+ }
+ public function setQuestions($questions)
+ {
+ $this->questions = $questions;
+ }
+ public function getQuestions()
+ {
+ return $this->questions;
+ }
+ public function setRejectionReason(Google_Service_Surveys_SurveyRejection $rejectionReason)
+ {
+ $this->rejectionReason = $rejectionReason;
+ }
+ public function getRejectionReason()
+ {
+ return $this->rejectionReason;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setSurveyUrlId($surveyUrlId)
+ {
+ $this->surveyUrlId = $surveyUrlId;
+ }
+ public function getSurveyUrlId()
+ {
+ return $this->surveyUrlId;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setWantedResponseCount($wantedResponseCount)
+ {
+ $this->wantedResponseCount = $wantedResponseCount;
+ }
+ public function getWantedResponseCount()
+ {
+ return $this->wantedResponseCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php
new file mode 100644
index 00000000..b37f43bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyAudience.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveyAudience extends Google_Collection
+{
+ protected $collection_key = 'languages';
+ public $ages;
+ public $country;
+ public $countrySubdivision;
+ public $gender;
+ public $languages;
+ public $mobileAppPanelId;
+ public $populationSource;
+
+ public function setAges($ages)
+ {
+ $this->ages = $ages;
+ }
+ public function getAges()
+ {
+ return $this->ages;
+ }
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setCountrySubdivision($countrySubdivision)
+ {
+ $this->countrySubdivision = $countrySubdivision;
+ }
+ public function getCountrySubdivision()
+ {
+ return $this->countrySubdivision;
+ }
+ public function setGender($gender)
+ {
+ $this->gender = $gender;
+ }
+ public function getGender()
+ {
+ return $this->gender;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+ public function setMobileAppPanelId($mobileAppPanelId)
+ {
+ $this->mobileAppPanelId = $mobileAppPanelId;
+ }
+ public function getMobileAppPanelId()
+ {
+ return $this->mobileAppPanelId;
+ }
+ public function setPopulationSource($populationSource)
+ {
+ $this->populationSource = $populationSource;
+ }
+ public function getPopulationSource()
+ {
+ return $this->populationSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyCost.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyCost.php
new file mode 100644
index 00000000..bdbd1d71
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyCost.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveyCost extends Google_Model
+{
+ public $costPerResponseNanos;
+ public $currencyCode;
+ public $maxCostPerResponseNanos;
+ public $nanos;
+
+ public function setCostPerResponseNanos($costPerResponseNanos)
+ {
+ $this->costPerResponseNanos = $costPerResponseNanos;
+ }
+ public function getCostPerResponseNanos()
+ {
+ return $this->costPerResponseNanos;
+ }
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setMaxCostPerResponseNanos($maxCostPerResponseNanos)
+ {
+ $this->maxCostPerResponseNanos = $maxCostPerResponseNanos;
+ }
+ public function getMaxCostPerResponseNanos()
+ {
+ return $this->maxCostPerResponseNanos;
+ }
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestion.php
new file mode 100644
index 00000000..c7f60c8a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestion.php
@@ -0,0 +1,185 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveyQuestion extends Google_Collection
+{
+ protected $collection_key = 'thresholdAnswers';
+ public $answerOrder;
+ public $answers;
+ public $hasOther;
+ public $highValueLabel;
+ protected $imagesType = 'Google_Service_Surveys_SurveyQuestionImage';
+ protected $imagesDataType = 'array';
+ public $lastAnswerPositionPinned;
+ public $lowValueLabel;
+ public $mustPickSuggestion;
+ public $numStars;
+ public $openTextPlaceholder;
+ public $openTextSuggestions;
+ public $question;
+ public $sentimentText;
+ public $singleLineResponse;
+ public $thresholdAnswers;
+ public $type;
+ public $unitOfMeasurementLabel;
+ public $videoId;
+
+ public function setAnswerOrder($answerOrder)
+ {
+ $this->answerOrder = $answerOrder;
+ }
+ public function getAnswerOrder()
+ {
+ return $this->answerOrder;
+ }
+ public function setAnswers($answers)
+ {
+ $this->answers = $answers;
+ }
+ public function getAnswers()
+ {
+ return $this->answers;
+ }
+ public function setHasOther($hasOther)
+ {
+ $this->hasOther = $hasOther;
+ }
+ public function getHasOther()
+ {
+ return $this->hasOther;
+ }
+ public function setHighValueLabel($highValueLabel)
+ {
+ $this->highValueLabel = $highValueLabel;
+ }
+ public function getHighValueLabel()
+ {
+ return $this->highValueLabel;
+ }
+ public function setImages($images)
+ {
+ $this->images = $images;
+ }
+ public function getImages()
+ {
+ return $this->images;
+ }
+ public function setLastAnswerPositionPinned($lastAnswerPositionPinned)
+ {
+ $this->lastAnswerPositionPinned = $lastAnswerPositionPinned;
+ }
+ public function getLastAnswerPositionPinned()
+ {
+ return $this->lastAnswerPositionPinned;
+ }
+ public function setLowValueLabel($lowValueLabel)
+ {
+ $this->lowValueLabel = $lowValueLabel;
+ }
+ public function getLowValueLabel()
+ {
+ return $this->lowValueLabel;
+ }
+ public function setMustPickSuggestion($mustPickSuggestion)
+ {
+ $this->mustPickSuggestion = $mustPickSuggestion;
+ }
+ public function getMustPickSuggestion()
+ {
+ return $this->mustPickSuggestion;
+ }
+ public function setNumStars($numStars)
+ {
+ $this->numStars = $numStars;
+ }
+ public function getNumStars()
+ {
+ return $this->numStars;
+ }
+ public function setOpenTextPlaceholder($openTextPlaceholder)
+ {
+ $this->openTextPlaceholder = $openTextPlaceholder;
+ }
+ public function getOpenTextPlaceholder()
+ {
+ return $this->openTextPlaceholder;
+ }
+ public function setOpenTextSuggestions($openTextSuggestions)
+ {
+ $this->openTextSuggestions = $openTextSuggestions;
+ }
+ public function getOpenTextSuggestions()
+ {
+ return $this->openTextSuggestions;
+ }
+ public function setQuestion($question)
+ {
+ $this->question = $question;
+ }
+ public function getQuestion()
+ {
+ return $this->question;
+ }
+ public function setSentimentText($sentimentText)
+ {
+ $this->sentimentText = $sentimentText;
+ }
+ public function getSentimentText()
+ {
+ return $this->sentimentText;
+ }
+ public function setSingleLineResponse($singleLineResponse)
+ {
+ $this->singleLineResponse = $singleLineResponse;
+ }
+ public function getSingleLineResponse()
+ {
+ return $this->singleLineResponse;
+ }
+ public function setThresholdAnswers($thresholdAnswers)
+ {
+ $this->thresholdAnswers = $thresholdAnswers;
+ }
+ public function getThresholdAnswers()
+ {
+ return $this->thresholdAnswers;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnitOfMeasurementLabel($unitOfMeasurementLabel)
+ {
+ $this->unitOfMeasurementLabel = $unitOfMeasurementLabel;
+ }
+ public function getUnitOfMeasurementLabel()
+ {
+ return $this->unitOfMeasurementLabel;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestionImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestionImage.php
new file mode 100644
index 00000000..5249a2f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyQuestionImage.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveyQuestionImage extends Google_Model
+{
+ public $altText;
+ public $data;
+ public $url;
+
+ public function setAltText($altText)
+ {
+ $this->altText = $altText;
+ }
+ public function getAltText()
+ {
+ return $this->altText;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyRejection.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyRejection.php
new file mode 100644
index 00000000..62efd4cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyRejection.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveyRejection extends Google_Model
+{
+ public $explanation;
+ public $type;
+
+ public function setExplanation($explanation)
+ {
+ $this->explanation = $explanation;
+ }
+ public function getExplanation()
+ {
+ return $this->explanation;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyResults.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyResults.php
new file mode 100644
index 00000000..8a03734e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveyResults.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveyResults extends Google_Model
+{
+ public $status;
+ public $surveyUrlId;
+
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSurveyUrlId($surveyUrlId)
+ {
+ $this->surveyUrlId = $surveyUrlId;
+ }
+ public function getSurveyUrlId()
+ {
+ return $this->surveyUrlId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysDeleteResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysDeleteResponse.php
new file mode 100644
index 00000000..66a41e9c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysDeleteResponse.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveysDeleteResponse extends Google_Model
+{
+ public $requestId;
+
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysListResponse.php
new file mode 100644
index 00000000..a1958989
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysListResponse.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveysListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ protected $pageInfoType = 'Google_Service_Surveys_PageInfo';
+ protected $pageInfoDataType = '';
+ public $requestId;
+ protected $resourcesType = 'Google_Service_Surveys_Survey';
+ protected $resourcesDataType = 'array';
+ protected $tokenPaginationType = 'Google_Service_Surveys_TokenPagination';
+ protected $tokenPaginationDataType = '';
+
+ public function setPageInfo(Google_Service_Surveys_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+ public function setTokenPagination(Google_Service_Surveys_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartRequest.php
new file mode 100644
index 00000000..963512ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartRequest.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveysStartRequest extends Google_Model
+{
+ public $maxCostPerResponseNanos;
+
+ public function setMaxCostPerResponseNanos($maxCostPerResponseNanos)
+ {
+ $this->maxCostPerResponseNanos = $maxCostPerResponseNanos;
+ }
+ public function getMaxCostPerResponseNanos()
+ {
+ return $this->maxCostPerResponseNanos;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartResponse.php
new file mode 100644
index 00000000..623c0e4a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStartResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveysStartResponse extends Google_Model
+{
+ public $requestId;
+ protected $resourceType = 'Google_Service_Surveys_Survey';
+ protected $resourceDataType = '';
+
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResource(Google_Service_Surveys_Survey $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStopResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStopResponse.php
new file mode 100644
index 00000000..502cf1c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/SurveysStopResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_SurveysStopResponse extends Google_Model
+{
+ public $requestId;
+ protected $resourceType = 'Google_Service_Surveys_Survey';
+ protected $resourceDataType = '';
+
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+ public function setResource(Google_Service_Surveys_Survey $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/TokenPagination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/TokenPagination.php
new file mode 100644
index 00000000..74208738
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Surveys/TokenPagination.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Surveys_TokenPagination extends Google_Model
+{
+ public $nextPageToken;
+ public $previousPageToken;
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPreviousPageToken($previousPageToken)
+ {
+ $this->previousPageToken = $previousPageToken;
+ }
+ public function getPreviousPageToken()
+ {
+ return $this->previousPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager.php
new file mode 100644
index 00000000..7e03dd5d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager.php
@@ -0,0 +1,1099 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for TagManager (v1).
+ *
+ * <p>
+ * Accesses Tag Manager accounts and containers.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/tag-manager/api/v1/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_TagManager extends Google_Service
+{
+ /** Delete your Google Tag Manager containers. */
+ const TAGMANAGER_DELETE_CONTAINERS =
+ "https://www.googleapis.com/auth/tagmanager.delete.containers";
+ /** Manage your Google Tag Manager container and its subcomponents, excluding versioning and publishing. */
+ const TAGMANAGER_EDIT_CONTAINERS =
+ "https://www.googleapis.com/auth/tagmanager.edit.containers";
+ /** Manage your Google Tag Manager container versions. */
+ const TAGMANAGER_EDIT_CONTAINERVERSIONS =
+ "https://www.googleapis.com/auth/tagmanager.edit.containerversions";
+ /** View and manage your Google Tag Manager accounts. */
+ const TAGMANAGER_MANAGE_ACCOUNTS =
+ "https://www.googleapis.com/auth/tagmanager.manage.accounts";
+ /** Manage user permissions of your Google Tag Manager account and container. */
+ const TAGMANAGER_MANAGE_USERS =
+ "https://www.googleapis.com/auth/tagmanager.manage.users";
+ /** Publish your Google Tag Manager container versions. */
+ const TAGMANAGER_PUBLISH =
+ "https://www.googleapis.com/auth/tagmanager.publish";
+ /** View your Google Tag Manager container and its subcomponents. */
+ const TAGMANAGER_READONLY =
+ "https://www.googleapis.com/auth/tagmanager.readonly";
+
+ public $accounts;
+ public $accounts_containers;
+ public $accounts_containers_environments;
+ public $accounts_containers_folders;
+ public $accounts_containers_folders_entities;
+ public $accounts_containers_move_folders;
+ public $accounts_containers_reauthorize_environments;
+ public $accounts_containers_tags;
+ public $accounts_containers_triggers;
+ public $accounts_containers_variables;
+ public $accounts_containers_versions;
+ public $accounts_permissions;
+
+ /**
+ * Constructs the internal representation of the TagManager service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'tagmanager/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'tagmanager';
+
+ $this->accounts = new Google_Service_TagManager_Resource_Accounts(
+ $this,
+ $this->serviceName,
+ 'accounts',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'accounts/{accountId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers = new Google_Service_TagManager_Resource_AccountsContainers(
+ $this,
+ $this->serviceName,
+ 'containers',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/containers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/containers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_environments = new Google_Service_TagManager_Resource_AccountsContainersEnvironments(
+ $this,
+ $this->serviceName,
+ 'environments',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/environments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'environmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'environmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/environments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'environmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/environments/{environmentId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'environmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_folders = new Google_Service_TagManager_Resource_AccountsContainersFolders(
+ $this,
+ $this->serviceName,
+ 'folders',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/folders',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'folderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'folderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/folders',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'folderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_folders_entities = new Google_Service_TagManager_Resource_AccountsContainersFoldersEntities(
+ $this,
+ $this->serviceName,
+ 'entities',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'folderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_move_folders = new Google_Service_TagManager_Resource_AccountsContainersMoveFolders(
+ $this,
+ $this->serviceName,
+ 'move_folders',
+ array(
+ 'methods' => array(
+ 'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/move_folders/{folderId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'folderId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tagId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'triggerId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'variableId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_reauthorize_environments = new Google_Service_TagManager_Resource_AccountsContainersReauthorizeEnvironments(
+ $this,
+ $this->serviceName,
+ 'reauthorize_environments',
+ array(
+ 'methods' => array(
+ 'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'environmentId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_tags = new Google_Service_TagManager_Resource_AccountsContainersTags(
+ $this,
+ $this->serviceName,
+ 'tags',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/tags',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tagId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tagId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/tags',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/tags/{tagId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'tagId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_triggers = new Google_Service_TagManager_Resource_AccountsContainersTriggers(
+ $this,
+ $this->serviceName,
+ 'triggers',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/triggers',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'triggerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'triggerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/triggers',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/triggers/{triggerId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'triggerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_variables = new Google_Service_TagManager_Resource_AccountsContainersVariables(
+ $this,
+ $this->serviceName,
+ 'variables',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/variables',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'variableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'variableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/variables',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/variables/{variableId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'variableId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_containers_versions = new Google_Service_TagManager_Resource_AccountsContainersVersions(
+ $this,
+ $this->serviceName,
+ 'versions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerVersionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerVersionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'headers' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'includeDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'publish' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerVersionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'restore' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerVersionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'undelete' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerVersionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'containerVersionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'fingerprint' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->accounts_permissions = new Google_Service_TagManager_Resource_AccountsPermissions(
+ $this,
+ $this->serviceName,
+ 'permissions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'accounts/{accountId}/permissions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'accounts/{accountId}/permissions/{permissionId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'accounts/{accountId}/permissions/{permissionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'accounts/{accountId}/permissions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'accounts/{accountId}/permissions/{permissionId}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'accountId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'permissionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Account.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Account.php
new file mode 100644
index 00000000..7f55dd39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Account.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Account extends Google_Model
+{
+ public $accountId;
+ public $fingerprint;
+ public $name;
+ public $shareData;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setShareData($shareData)
+ {
+ $this->shareData = $shareData;
+ }
+ public function getShareData()
+ {
+ return $this->shareData;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/AccountAccess.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/AccountAccess.php
new file mode 100644
index 00000000..7f331b38
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/AccountAccess.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_AccountAccess extends Google_Collection
+{
+ protected $collection_key = 'permission';
+ public $permission;
+
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Condition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Condition.php
new file mode 100644
index 00000000..ae346be9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Condition.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Condition extends Google_Collection
+{
+ protected $collection_key = 'parameter';
+ protected $parameterType = 'Google_Service_TagManager_Parameter';
+ protected $parameterDataType = 'array';
+ public $type;
+
+ public function setParameter($parameter)
+ {
+ $this->parameter = $parameter;
+ }
+ public function getParameter()
+ {
+ return $this->parameter;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Container.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Container.php
new file mode 100644
index 00000000..1b0eac31
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Container.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Container extends Google_Collection
+{
+ protected $collection_key = 'usageContext';
+ public $accountId;
+ public $containerId;
+ public $domainName;
+ public $enabledBuiltInVariable;
+ public $fingerprint;
+ public $name;
+ public $notes;
+ public $publicId;
+ public $timeZoneCountryId;
+ public $timeZoneId;
+ public $usageContext;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setDomainName($domainName)
+ {
+ $this->domainName = $domainName;
+ }
+ public function getDomainName()
+ {
+ return $this->domainName;
+ }
+ public function setEnabledBuiltInVariable($enabledBuiltInVariable)
+ {
+ $this->enabledBuiltInVariable = $enabledBuiltInVariable;
+ }
+ public function getEnabledBuiltInVariable()
+ {
+ return $this->enabledBuiltInVariable;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setPublicId($publicId)
+ {
+ $this->publicId = $publicId;
+ }
+ public function getPublicId()
+ {
+ return $this->publicId;
+ }
+ public function setTimeZoneCountryId($timeZoneCountryId)
+ {
+ $this->timeZoneCountryId = $timeZoneCountryId;
+ }
+ public function getTimeZoneCountryId()
+ {
+ return $this->timeZoneCountryId;
+ }
+ public function setTimeZoneId($timeZoneId)
+ {
+ $this->timeZoneId = $timeZoneId;
+ }
+ public function getTimeZoneId()
+ {
+ return $this->timeZoneId;
+ }
+ public function setUsageContext($usageContext)
+ {
+ $this->usageContext = $usageContext;
+ }
+ public function getUsageContext()
+ {
+ return $this->usageContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerAccess.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerAccess.php
new file mode 100644
index 00000000..14dffc35
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerAccess.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ContainerAccess extends Google_Collection
+{
+ protected $collection_key = 'permission';
+ public $containerId;
+ public $permission;
+
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php
new file mode 100644
index 00000000..ea14afd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersion.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ContainerVersion extends Google_Collection
+{
+ protected $collection_key = 'variable';
+ public $accountId;
+ protected $containerType = 'Google_Service_TagManager_Container';
+ protected $containerDataType = '';
+ public $containerId;
+ public $containerVersionId;
+ public $deleted;
+ public $fingerprint;
+ protected $folderType = 'Google_Service_TagManager_Folder';
+ protected $folderDataType = 'array';
+ protected $macroType = 'Google_Service_TagManager_Macro';
+ protected $macroDataType = 'array';
+ public $name;
+ public $notes;
+ protected $ruleType = 'Google_Service_TagManager_Rule';
+ protected $ruleDataType = 'array';
+ protected $tagType = 'Google_Service_TagManager_Tag';
+ protected $tagDataType = 'array';
+ protected $triggerType = 'Google_Service_TagManager_Trigger';
+ protected $triggerDataType = 'array';
+ protected $variableType = 'Google_Service_TagManager_Variable';
+ protected $variableDataType = 'array';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setContainer(Google_Service_TagManager_Container $container)
+ {
+ $this->container = $container;
+ }
+ public function getContainer()
+ {
+ return $this->container;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setContainerVersionId($containerVersionId)
+ {
+ $this->containerVersionId = $containerVersionId;
+ }
+ public function getContainerVersionId()
+ {
+ return $this->containerVersionId;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setFolder($folder)
+ {
+ $this->folder = $folder;
+ }
+ public function getFolder()
+ {
+ return $this->folder;
+ }
+ public function setMacro($macro)
+ {
+ $this->macro = $macro;
+ }
+ public function getMacro()
+ {
+ return $this->macro;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setRule($rule)
+ {
+ $this->rule = $rule;
+ }
+ public function getRule()
+ {
+ return $this->rule;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+ public function setTrigger($trigger)
+ {
+ $this->trigger = $trigger;
+ }
+ public function getTrigger()
+ {
+ return $this->trigger;
+ }
+ public function setVariable($variable)
+ {
+ $this->variable = $variable;
+ }
+ public function getVariable()
+ {
+ return $this->variable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php
new file mode 100644
index 00000000..44105c90
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ContainerVersionHeader.php
@@ -0,0 +1,111 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ContainerVersionHeader extends Google_Model
+{
+ public $accountId;
+ public $containerId;
+ public $containerVersionId;
+ public $deleted;
+ public $name;
+ public $numMacros;
+ public $numRules;
+ public $numTags;
+ public $numTriggers;
+ public $numVariables;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setContainerVersionId($containerVersionId)
+ {
+ $this->containerVersionId = $containerVersionId;
+ }
+ public function getContainerVersionId()
+ {
+ return $this->containerVersionId;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNumMacros($numMacros)
+ {
+ $this->numMacros = $numMacros;
+ }
+ public function getNumMacros()
+ {
+ return $this->numMacros;
+ }
+ public function setNumRules($numRules)
+ {
+ $this->numRules = $numRules;
+ }
+ public function getNumRules()
+ {
+ return $this->numRules;
+ }
+ public function setNumTags($numTags)
+ {
+ $this->numTags = $numTags;
+ }
+ public function getNumTags()
+ {
+ return $this->numTags;
+ }
+ public function setNumTriggers($numTriggers)
+ {
+ $this->numTriggers = $numTriggers;
+ }
+ public function getNumTriggers()
+ {
+ return $this->numTriggers;
+ }
+ public function setNumVariables($numVariables)
+ {
+ $this->numVariables = $numVariables;
+ }
+ public function getNumVariables()
+ {
+ return $this->numVariables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionRequestVersionOptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionRequestVersionOptions.php
new file mode 100644
index 00000000..46f73525
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionRequestVersionOptions.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_CreateContainerVersionRequestVersionOptions extends Google_Model
+{
+ public $name;
+ public $notes;
+ public $quickPreview;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setQuickPreview($quickPreview)
+ {
+ $this->quickPreview = $quickPreview;
+ }
+ public function getQuickPreview()
+ {
+ return $this->quickPreview;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionResponse.php
new file mode 100644
index 00000000..754eed54
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/CreateContainerVersionResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_CreateContainerVersionResponse extends Google_Model
+{
+ public $compilerError;
+ protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion';
+ protected $containerVersionDataType = '';
+
+ public function setCompilerError($compilerError)
+ {
+ $this->compilerError = $compilerError;
+ }
+ public function getCompilerError()
+ {
+ return $this->compilerError;
+ }
+ public function setContainerVersion(Google_Service_TagManager_ContainerVersion $containerVersion)
+ {
+ $this->containerVersion = $containerVersion;
+ }
+ public function getContainerVersion()
+ {
+ return $this->containerVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Environment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Environment.php
new file mode 100644
index 00000000..b4368183
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Environment.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Environment extends Google_Model
+{
+ public $accountId;
+ public $authorizationCode;
+ public $authorizationTimestampMs;
+ public $containerId;
+ public $containerVersionId;
+ public $description;
+ public $enableDebug;
+ public $environmentId;
+ public $fingerprint;
+ public $name;
+ public $type;
+ public $url;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAuthorizationCode($authorizationCode)
+ {
+ $this->authorizationCode = $authorizationCode;
+ }
+ public function getAuthorizationCode()
+ {
+ return $this->authorizationCode;
+ }
+ public function setAuthorizationTimestampMs($authorizationTimestampMs)
+ {
+ $this->authorizationTimestampMs = $authorizationTimestampMs;
+ }
+ public function getAuthorizationTimestampMs()
+ {
+ return $this->authorizationTimestampMs;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setContainerVersionId($containerVersionId)
+ {
+ $this->containerVersionId = $containerVersionId;
+ }
+ public function getContainerVersionId()
+ {
+ return $this->containerVersionId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEnableDebug($enableDebug)
+ {
+ $this->enableDebug = $enableDebug;
+ }
+ public function getEnableDebug()
+ {
+ return $this->enableDebug;
+ }
+ public function setEnvironmentId($environmentId)
+ {
+ $this->environmentId = $environmentId;
+ }
+ public function getEnvironmentId()
+ {
+ return $this->environmentId;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Folder.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Folder.php
new file mode 100644
index 00000000..c7de2387
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Folder.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Folder extends Google_Model
+{
+ public $accountId;
+ public $containerId;
+ public $fingerprint;
+ public $folderId;
+ public $name;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setFolderId($folderId)
+ {
+ $this->folderId = $folderId;
+ }
+ public function getFolderId()
+ {
+ return $this->folderId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/FolderEntities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/FolderEntities.php
new file mode 100644
index 00000000..e13ba62e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/FolderEntities.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_FolderEntities extends Google_Collection
+{
+ protected $collection_key = 'variable';
+ protected $tagType = 'Google_Service_TagManager_Tag';
+ protected $tagDataType = 'array';
+ protected $triggerType = 'Google_Service_TagManager_Trigger';
+ protected $triggerDataType = 'array';
+ protected $variableType = 'Google_Service_TagManager_Variable';
+ protected $variableDataType = 'array';
+
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+ public function setTrigger($trigger)
+ {
+ $this->trigger = $trigger;
+ }
+ public function getTrigger()
+ {
+ return $this->trigger;
+ }
+ public function setVariable($variable)
+ {
+ $this->variable = $variable;
+ }
+ public function getVariable()
+ {
+ return $this->variable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountUsersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountUsersResponse.php
new file mode 100644
index 00000000..ea3637ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountUsersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListAccountUsersResponse extends Google_Collection
+{
+ protected $collection_key = 'userAccess';
+ protected $userAccessType = 'Google_Service_TagManager_UserAccess';
+ protected $userAccessDataType = 'array';
+
+ public function setUserAccess($userAccess)
+ {
+ $this->userAccess = $userAccess;
+ }
+ public function getUserAccess()
+ {
+ return $this->userAccess;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountsResponse.php
new file mode 100644
index 00000000..0b533124
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListAccountsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListAccountsResponse extends Google_Collection
+{
+ protected $collection_key = 'accounts';
+ protected $accountsType = 'Google_Service_TagManager_Account';
+ protected $accountsDataType = 'array';
+
+ public function setAccounts($accounts)
+ {
+ $this->accounts = $accounts;
+ }
+ public function getAccounts()
+ {
+ return $this->accounts;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainerVersionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainerVersionsResponse.php
new file mode 100644
index 00000000..278de0b8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainerVersionsResponse.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListContainerVersionsResponse extends Google_Collection
+{
+ protected $collection_key = 'containerVersionHeader';
+ protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion';
+ protected $containerVersionDataType = 'array';
+ protected $containerVersionHeaderType = 'Google_Service_TagManager_ContainerVersionHeader';
+ protected $containerVersionHeaderDataType = 'array';
+
+ public function setContainerVersion($containerVersion)
+ {
+ $this->containerVersion = $containerVersion;
+ }
+ public function getContainerVersion()
+ {
+ return $this->containerVersion;
+ }
+ public function setContainerVersionHeader($containerVersionHeader)
+ {
+ $this->containerVersionHeader = $containerVersionHeader;
+ }
+ public function getContainerVersionHeader()
+ {
+ return $this->containerVersionHeader;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainersResponse.php
new file mode 100644
index 00000000..7b4f449a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListContainersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListContainersResponse extends Google_Collection
+{
+ protected $collection_key = 'containers';
+ protected $containersType = 'Google_Service_TagManager_Container';
+ protected $containersDataType = 'array';
+
+ public function setContainers($containers)
+ {
+ $this->containers = $containers;
+ }
+ public function getContainers()
+ {
+ return $this->containers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListEnvironmentsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListEnvironmentsResponse.php
new file mode 100644
index 00000000..581c1892
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListEnvironmentsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListEnvironmentsResponse extends Google_Collection
+{
+ protected $collection_key = 'environments';
+ protected $environmentsType = 'Google_Service_TagManager_Environment';
+ protected $environmentsDataType = 'array';
+
+ public function setEnvironments($environments)
+ {
+ $this->environments = $environments;
+ }
+ public function getEnvironments()
+ {
+ return $this->environments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListFoldersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListFoldersResponse.php
new file mode 100644
index 00000000..8b830d6e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListFoldersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListFoldersResponse extends Google_Collection
+{
+ protected $collection_key = 'folders';
+ protected $foldersType = 'Google_Service_TagManager_Folder';
+ protected $foldersDataType = 'array';
+
+ public function setFolders($folders)
+ {
+ $this->folders = $folders;
+ }
+ public function getFolders()
+ {
+ return $this->folders;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTagsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTagsResponse.php
new file mode 100644
index 00000000..95f29bd2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTagsResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListTagsResponse extends Google_Collection
+{
+ protected $collection_key = 'tags';
+ protected $tagsType = 'Google_Service_TagManager_Tag';
+ protected $tagsDataType = 'array';
+
+ public function setTags($tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTriggersResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTriggersResponse.php
new file mode 100644
index 00000000..fa744c81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListTriggersResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListTriggersResponse extends Google_Collection
+{
+ protected $collection_key = 'triggers';
+ protected $triggersType = 'Google_Service_TagManager_Trigger';
+ protected $triggersDataType = 'array';
+
+ public function setTriggers($triggers)
+ {
+ $this->triggers = $triggers;
+ }
+ public function getTriggers()
+ {
+ return $this->triggers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListVariablesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListVariablesResponse.php
new file mode 100644
index 00000000..e72c1f53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/ListVariablesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_ListVariablesResponse extends Google_Collection
+{
+ protected $collection_key = 'variables';
+ protected $variablesType = 'Google_Service_TagManager_Variable';
+ protected $variablesDataType = 'array';
+
+ public function setVariables($variables)
+ {
+ $this->variables = $variables;
+ }
+ public function getVariables()
+ {
+ return $this->variables;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Macro.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Macro.php
new file mode 100644
index 00000000..b04c2e45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Macro.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Macro extends Google_Collection
+{
+ protected $collection_key = 'parameter';
+ public $accountId;
+ public $containerId;
+ public $disablingRuleId;
+ public $enablingRuleId;
+ public $fingerprint;
+ public $macroId;
+ public $name;
+ public $notes;
+ protected $parameterType = 'Google_Service_TagManager_Parameter';
+ protected $parameterDataType = 'array';
+ public $parentFolderId;
+ public $scheduleEndMs;
+ public $scheduleStartMs;
+ public $type;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setDisablingRuleId($disablingRuleId)
+ {
+ $this->disablingRuleId = $disablingRuleId;
+ }
+ public function getDisablingRuleId()
+ {
+ return $this->disablingRuleId;
+ }
+ public function setEnablingRuleId($enablingRuleId)
+ {
+ $this->enablingRuleId = $enablingRuleId;
+ }
+ public function getEnablingRuleId()
+ {
+ return $this->enablingRuleId;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setMacroId($macroId)
+ {
+ $this->macroId = $macroId;
+ }
+ public function getMacroId()
+ {
+ return $this->macroId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setParameter($parameter)
+ {
+ $this->parameter = $parameter;
+ }
+ public function getParameter()
+ {
+ return $this->parameter;
+ }
+ public function setParentFolderId($parentFolderId)
+ {
+ $this->parentFolderId = $parentFolderId;
+ }
+ public function getParentFolderId()
+ {
+ return $this->parentFolderId;
+ }
+ public function setScheduleEndMs($scheduleEndMs)
+ {
+ $this->scheduleEndMs = $scheduleEndMs;
+ }
+ public function getScheduleEndMs()
+ {
+ return $this->scheduleEndMs;
+ }
+ public function setScheduleStartMs($scheduleStartMs)
+ {
+ $this->scheduleStartMs = $scheduleStartMs;
+ }
+ public function getScheduleStartMs()
+ {
+ return $this->scheduleStartMs;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Parameter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Parameter.php
new file mode 100644
index 00000000..6bb3be77
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Parameter.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Parameter extends Google_Collection
+{
+ protected $collection_key = 'map';
+ public $key;
+ protected $listType = 'Google_Service_TagManager_Parameter';
+ protected $listDataType = 'array';
+ protected $mapType = 'Google_Service_TagManager_Parameter';
+ protected $mapDataType = 'array';
+ public $type;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setList($list)
+ {
+ $this->list = $list;
+ }
+ public function getList()
+ {
+ return $this->list;
+ }
+ public function setMap($map)
+ {
+ $this->map = $map;
+ }
+ public function getMap()
+ {
+ return $this->map;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/PublishContainerVersionResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/PublishContainerVersionResponse.php
new file mode 100644
index 00000000..673ea70c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/PublishContainerVersionResponse.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_PublishContainerVersionResponse extends Google_Model
+{
+ public $compilerError;
+ protected $containerVersionType = 'Google_Service_TagManager_ContainerVersion';
+ protected $containerVersionDataType = '';
+
+ public function setCompilerError($compilerError)
+ {
+ $this->compilerError = $compilerError;
+ }
+ public function getCompilerError()
+ {
+ return $this->compilerError;
+ }
+ public function setContainerVersion(Google_Service_TagManager_ContainerVersion $containerVersion)
+ {
+ $this->containerVersion = $containerVersion;
+ }
+ public function getContainerVersion()
+ {
+ return $this->containerVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/Accounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/Accounts.php
new file mode 100644
index 00000000..1a649394
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/Accounts.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $accounts = $tagmanagerService->accounts;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_Accounts extends Google_Service_Resource
+{
+ /**
+ * Gets a GTM Account. (accounts.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Account
+ */
+ public function get($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_Account");
+ }
+ /**
+ * Lists all GTM Accounts that a user has access to. (accounts.listAccounts)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListAccountsResponse
+ */
+ public function listAccounts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListAccountsResponse");
+ }
+ /**
+ * Updates a GTM Account. (accounts.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param Google_Service_TagManager_Account $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the account in storage.
+ * @return Google_Service_TagManager_Account
+ */
+ public function update($accountId, Google_Service_TagManager_Account $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Account");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainers.php
new file mode 100644
index 00000000..9da840ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainers.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "containers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $containers = $tagmanagerService->containers;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainers extends Google_Service_Resource
+{
+ /**
+ * Creates a Container. (containers.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param Google_Service_TagManager_Container $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Container
+ */
+ public function create($accountId, Google_Service_TagManager_Container $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_Container");
+ }
+ /**
+ * Deletes a Container. (containers.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a Container. (containers.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Container
+ */
+ public function get($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_Container");
+ }
+ /**
+ * Lists all Containers that belongs to a GTM Account.
+ * (containers.listAccountsContainers)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListContainersResponse
+ */
+ public function listAccountsContainers($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListContainersResponse");
+ }
+ /**
+ * Updates a Container. (containers.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param Google_Service_TagManager_Container $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the container in storage.
+ * @return Google_Service_TagManager_Container
+ */
+ public function update($accountId, $containerId, Google_Service_TagManager_Container $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Container");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php
new file mode 100644
index 00000000..368f8a2e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersEnvironments.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "environments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $environments = $tagmanagerService->environments;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersEnvironments extends Google_Service_Resource
+{
+ /**
+ * Creates a GTM Environment. (environments.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param Google_Service_TagManager_Environment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Environment
+ */
+ public function create($accountId, $containerId, Google_Service_TagManager_Environment $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_Environment");
+ }
+ /**
+ * Deletes a GTM Environment. (environments.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $environmentId The GTM Environment ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $containerId, $environmentId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a GTM Environment. (environments.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $environmentId The GTM Environment ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Environment
+ */
+ public function get($accountId, $containerId, $environmentId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_Environment");
+ }
+ /**
+ * Lists all GTM Environments of a GTM Container.
+ * (environments.listAccountsContainersEnvironments)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListEnvironmentsResponse
+ */
+ public function listAccountsContainersEnvironments($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListEnvironmentsResponse");
+ }
+ /**
+ * Updates a GTM Environment. This method supports patch semantics.
+ * (environments.patch)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $environmentId The GTM Environment ID.
+ * @param Google_Service_TagManager_Environment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the environment in storage.
+ * @return Google_Service_TagManager_Environment
+ */
+ public function patch($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_TagManager_Environment");
+ }
+ /**
+ * Updates a GTM Environment. (environments.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $environmentId The GTM Environment ID.
+ * @param Google_Service_TagManager_Environment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the environment in storage.
+ * @return Google_Service_TagManager_Environment
+ */
+ public function update($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Environment");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFolders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFolders.php
new file mode 100644
index 00000000..14dc80ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFolders.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "folders" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $folders = $tagmanagerService->folders;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersFolders extends Google_Service_Resource
+{
+ /**
+ * Creates a GTM Folder. (folders.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param Google_Service_TagManager_Folder $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Folder
+ */
+ public function create($accountId, $containerId, Google_Service_TagManager_Folder $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_Folder");
+ }
+ /**
+ * Deletes a GTM Folder. (folders.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $folderId The GTM Folder ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $containerId, $folderId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a GTM Folder. (folders.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $folderId The GTM Folder ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Folder
+ */
+ public function get($accountId, $containerId, $folderId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_Folder");
+ }
+ /**
+ * Lists all GTM Folders of a Container. (folders.listAccountsContainersFolders)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListFoldersResponse
+ */
+ public function listAccountsContainersFolders($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListFoldersResponse");
+ }
+ /**
+ * Updates a GTM Folder. (folders.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $folderId The GTM Folder ID.
+ * @param Google_Service_TagManager_Folder $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the folder in storage.
+ * @return Google_Service_TagManager_Folder
+ */
+ public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Folder");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFoldersEntities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFoldersEntities.php
new file mode 100644
index 00000000..cc587718
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersFoldersEntities.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "entities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $entities = $tagmanagerService->entities;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersFoldersEntities extends Google_Service_Resource
+{
+ /**
+ * List all entities in a GTM Folder.
+ * (entities.listAccountsContainersFoldersEntities)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $folderId The GTM Folder ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_FolderEntities
+ */
+ public function listAccountsContainersFoldersEntities($accountId, $containerId, $folderId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_FolderEntities");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersMoveFolders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersMoveFolders.php
new file mode 100644
index 00000000..7e18b61c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersMoveFolders.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "move_folders" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $move_folders = $tagmanagerService->move_folders;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersMoveFolders extends Google_Service_Resource
+{
+ /**
+ * Moves entities to a GTM Folder. (move_folders.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $folderId The GTM Folder ID.
+ * @param Google_Service_TagManager_Folder $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string tagId The tags to be moved to the folder.
+ * @opt_param string triggerId The triggers to be moved to the folder.
+ * @opt_param string variableId The variables to be moved to the folder.
+ */
+ public function update($accountId, $containerId, $folderId, Google_Service_TagManager_Folder $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'folderId' => $folderId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersReauthorizeEnvironments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersReauthorizeEnvironments.php
new file mode 100644
index 00000000..7d7be2a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersReauthorizeEnvironments.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reauthorize_environments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $reauthorize_environments = $tagmanagerService->reauthorize_environments;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersReauthorizeEnvironments extends Google_Service_Resource
+{
+ /**
+ * Re-generates the authorization code for a GTM Environment.
+ * (reauthorize_environments.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $environmentId The GTM Environment ID.
+ * @param Google_Service_TagManager_Environment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Environment
+ */
+ public function update($accountId, $containerId, $environmentId, Google_Service_TagManager_Environment $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'environmentId' => $environmentId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Environment");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTags.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTags.php
new file mode 100644
index 00000000..f1ca469e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTags.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tags" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $tags = $tagmanagerService->tags;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersTags extends Google_Service_Resource
+{
+ /**
+ * Creates a GTM Tag. (tags.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param Google_Service_TagManager_Tag $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Tag
+ */
+ public function create($accountId, $containerId, Google_Service_TagManager_Tag $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_Tag");
+ }
+ /**
+ * Deletes a GTM Tag. (tags.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $tagId The GTM Tag ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $containerId, $tagId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a GTM Tag. (tags.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $tagId The GTM Tag ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Tag
+ */
+ public function get($accountId, $containerId, $tagId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_Tag");
+ }
+ /**
+ * Lists all GTM Tags of a Container. (tags.listAccountsContainersTags)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListTagsResponse
+ */
+ public function listAccountsContainersTags($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListTagsResponse");
+ }
+ /**
+ * Updates a GTM Tag. (tags.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $tagId The GTM Tag ID.
+ * @param Google_Service_TagManager_Tag $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the tag in storage.
+ * @return Google_Service_TagManager_Tag
+ */
+ public function update($accountId, $containerId, $tagId, Google_Service_TagManager_Tag $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'tagId' => $tagId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Tag");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTriggers.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTriggers.php
new file mode 100644
index 00000000..bcd55b2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersTriggers.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "triggers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $triggers = $tagmanagerService->triggers;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersTriggers extends Google_Service_Resource
+{
+ /**
+ * Creates a GTM Trigger. (triggers.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param Google_Service_TagManager_Trigger $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Trigger
+ */
+ public function create($accountId, $containerId, Google_Service_TagManager_Trigger $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_Trigger");
+ }
+ /**
+ * Deletes a GTM Trigger. (triggers.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $triggerId The GTM Trigger ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $containerId, $triggerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a GTM Trigger. (triggers.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $triggerId The GTM Trigger ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Trigger
+ */
+ public function get($accountId, $containerId, $triggerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_Trigger");
+ }
+ /**
+ * Lists all GTM Triggers of a Container.
+ * (triggers.listAccountsContainersTriggers)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListTriggersResponse
+ */
+ public function listAccountsContainersTriggers($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListTriggersResponse");
+ }
+ /**
+ * Updates a GTM Trigger. (triggers.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $triggerId The GTM Trigger ID.
+ * @param Google_Service_TagManager_Trigger $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the trigger in storage.
+ * @return Google_Service_TagManager_Trigger
+ */
+ public function update($accountId, $containerId, $triggerId, Google_Service_TagManager_Trigger $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'triggerId' => $triggerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Trigger");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVariables.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVariables.php
new file mode 100644
index 00000000..52a8da84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVariables.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "variables" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $variables = $tagmanagerService->variables;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersVariables extends Google_Service_Resource
+{
+ /**
+ * Creates a GTM Variable. (variables.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param Google_Service_TagManager_Variable $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Variable
+ */
+ public function create($accountId, $containerId, Google_Service_TagManager_Variable $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_Variable");
+ }
+ /**
+ * Deletes a GTM Variable. (variables.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $variableId The GTM Variable ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $containerId, $variableId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a GTM Variable. (variables.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $variableId The GTM Variable ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_Variable
+ */
+ public function get($accountId, $containerId, $variableId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_Variable");
+ }
+ /**
+ * Lists all GTM Variables of a Container.
+ * (variables.listAccountsContainersVariables)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListVariablesResponse
+ */
+ public function listAccountsContainersVariables($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListVariablesResponse");
+ }
+ /**
+ * Updates a GTM Variable. (variables.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $variableId The GTM Variable ID.
+ * @param Google_Service_TagManager_Variable $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the variable in storage.
+ * @return Google_Service_TagManager_Variable
+ */
+ public function update($accountId, $containerId, $variableId, Google_Service_TagManager_Variable $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'variableId' => $variableId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_Variable");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVersions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVersions.php
new file mode 100644
index 00000000..3ed0e924
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsContainersVersions.php
@@ -0,0 +1,162 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "versions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $versions = $tagmanagerService->versions;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsContainersVersions extends Google_Service_Resource
+{
+ /**
+ * Creates a Container Version. (versions.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param Google_Service_TagManager_CreateContainerVersionRequestVersionOptions $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_CreateContainerVersionResponse
+ */
+ public function create($accountId, $containerId, Google_Service_TagManager_CreateContainerVersionRequestVersionOptions $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_CreateContainerVersionResponse");
+ }
+ /**
+ * Deletes a Container Version. (versions.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $containerVersionId The GTM Container Version ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $containerId, $containerVersionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a Container Version. (versions.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $containerVersionId The GTM Container Version ID. Specify
+ * published to retrieve the currently published version.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ContainerVersion
+ */
+ public function get($accountId, $containerId, $containerVersionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_ContainerVersion");
+ }
+ /**
+ * Lists all Container Versions of a GTM Container.
+ * (versions.listAccountsContainersVersions)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool headers Retrieve headers only when true.
+ * @opt_param bool includeDeleted Also retrieve deleted (archived) versions when
+ * true.
+ * @return Google_Service_TagManager_ListContainerVersionsResponse
+ */
+ public function listAccountsContainersVersions($accountId, $containerId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListContainerVersionsResponse");
+ }
+ /**
+ * Publishes a Container Version. (versions.publish)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $containerVersionId The GTM Container Version ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the container version in storage.
+ * @return Google_Service_TagManager_PublishContainerVersionResponse
+ */
+ public function publish($accountId, $containerId, $containerVersionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('publish', array($params), "Google_Service_TagManager_PublishContainerVersionResponse");
+ }
+ /**
+ * Restores a Container Version. This will overwrite the container's current
+ * configuration (including its variables, triggers and tags). The operation
+ * will not have any effect on the version that is being served (i.e. the
+ * published version). (versions.restore)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $containerVersionId The GTM Container Version ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ContainerVersion
+ */
+ public function restore($accountId, $containerId, $containerVersionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('restore', array($params), "Google_Service_TagManager_ContainerVersion");
+ }
+ /**
+ * Undeletes a Container Version. (versions.undelete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $containerVersionId The GTM Container Version ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ContainerVersion
+ */
+ public function undelete($accountId, $containerId, $containerVersionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('undelete', array($params), "Google_Service_TagManager_ContainerVersion");
+ }
+ /**
+ * Updates a Container Version. (versions.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $containerId The GTM Container ID.
+ * @param string $containerVersionId The GTM Container Version ID.
+ * @param Google_Service_TagManager_ContainerVersion $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string fingerprint When provided, this fingerprint must match the
+ * fingerprint of the container version in storage.
+ * @return Google_Service_TagManager_ContainerVersion
+ */
+ public function update($accountId, $containerId, $containerVersionId, Google_Service_TagManager_ContainerVersion $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'containerId' => $containerId, 'containerVersionId' => $containerVersionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_ContainerVersion");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsPermissions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsPermissions.php
new file mode 100644
index 00000000..009a2d65
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Resource/AccountsPermissions.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "permissions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tagmanagerService = new Google_Service_TagManager(...);
+ * $permissions = $tagmanagerService->permissions;
+ * </code>
+ */
+class Google_Service_TagManager_Resource_AccountsPermissions extends Google_Service_Resource
+{
+ /**
+ * Creates a user's Account & Container Permissions. (permissions.create)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param Google_Service_TagManager_UserAccess $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_UserAccess
+ */
+ public function create($accountId, Google_Service_TagManager_UserAccess $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_TagManager_UserAccess");
+ }
+ /**
+ * Removes a user from the account, revoking access to it and all of its
+ * containers. (permissions.delete)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $permissionId The GTM User ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $permissionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'permissionId' => $permissionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Gets a user's Account & Container Permissions. (permissions.get)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $permissionId The GTM User ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_UserAccess
+ */
+ public function get($accountId, $permissionId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'permissionId' => $permissionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_TagManager_UserAccess");
+ }
+ /**
+ * List all users that have access to the account along with Account and
+ * Container Permissions granted to each of them.
+ * (permissions.listAccountsPermissions)
+ *
+ * @param string $accountId The GTM Account ID. @required
+ * tagmanager.accounts.permissions.list
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_ListAccountUsersResponse
+ */
+ public function listAccountsPermissions($accountId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_TagManager_ListAccountUsersResponse");
+ }
+ /**
+ * Updates a user's Account & Container Permissions. (permissions.update)
+ *
+ * @param string $accountId The GTM Account ID.
+ * @param string $permissionId The GTM User ID.
+ * @param Google_Service_TagManager_UserAccess $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_TagManager_UserAccess
+ */
+ public function update($accountId, $permissionId, Google_Service_TagManager_UserAccess $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'permissionId' => $permissionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_TagManager_UserAccess");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Rule.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Rule.php
new file mode 100644
index 00000000..ef38ca26
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Rule.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Rule extends Google_Collection
+{
+ protected $collection_key = 'condition';
+ public $accountId;
+ protected $conditionType = 'Google_Service_TagManager_Condition';
+ protected $conditionDataType = 'array';
+ public $containerId;
+ public $fingerprint;
+ public $name;
+ public $notes;
+ public $ruleId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setCondition($condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setRuleId($ruleId)
+ {
+ $this->ruleId = $ruleId;
+ }
+ public function getRuleId()
+ {
+ return $this->ruleId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/SetupTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/SetupTag.php
new file mode 100644
index 00000000..98c24d66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/SetupTag.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_SetupTag extends Google_Model
+{
+ public $stopOnSetupFailure;
+ public $tagName;
+
+ public function setStopOnSetupFailure($stopOnSetupFailure)
+ {
+ $this->stopOnSetupFailure = $stopOnSetupFailure;
+ }
+ public function getStopOnSetupFailure()
+ {
+ return $this->stopOnSetupFailure;
+ }
+ public function setTagName($tagName)
+ {
+ $this->tagName = $tagName;
+ }
+ public function getTagName()
+ {
+ return $this->tagName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Tag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Tag.php
new file mode 100644
index 00000000..92a18b72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Tag.php
@@ -0,0 +1,206 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Tag extends Google_Collection
+{
+ protected $collection_key = 'teardownTag';
+ public $accountId;
+ public $blockingRuleId;
+ public $blockingTriggerId;
+ public $containerId;
+ public $fingerprint;
+ public $firingRuleId;
+ public $firingTriggerId;
+ public $liveOnly;
+ public $name;
+ public $notes;
+ protected $parameterType = 'Google_Service_TagManager_Parameter';
+ protected $parameterDataType = 'array';
+ public $parentFolderId;
+ protected $priorityType = 'Google_Service_TagManager_Parameter';
+ protected $priorityDataType = '';
+ public $scheduleEndMs;
+ public $scheduleStartMs;
+ protected $setupTagType = 'Google_Service_TagManager_SetupTag';
+ protected $setupTagDataType = 'array';
+ public $tagFiringOption;
+ public $tagId;
+ protected $teardownTagType = 'Google_Service_TagManager_TeardownTag';
+ protected $teardownTagDataType = 'array';
+ public $type;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setBlockingRuleId($blockingRuleId)
+ {
+ $this->blockingRuleId = $blockingRuleId;
+ }
+ public function getBlockingRuleId()
+ {
+ return $this->blockingRuleId;
+ }
+ public function setBlockingTriggerId($blockingTriggerId)
+ {
+ $this->blockingTriggerId = $blockingTriggerId;
+ }
+ public function getBlockingTriggerId()
+ {
+ return $this->blockingTriggerId;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setFiringRuleId($firingRuleId)
+ {
+ $this->firingRuleId = $firingRuleId;
+ }
+ public function getFiringRuleId()
+ {
+ return $this->firingRuleId;
+ }
+ public function setFiringTriggerId($firingTriggerId)
+ {
+ $this->firingTriggerId = $firingTriggerId;
+ }
+ public function getFiringTriggerId()
+ {
+ return $this->firingTriggerId;
+ }
+ public function setLiveOnly($liveOnly)
+ {
+ $this->liveOnly = $liveOnly;
+ }
+ public function getLiveOnly()
+ {
+ return $this->liveOnly;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setParameter($parameter)
+ {
+ $this->parameter = $parameter;
+ }
+ public function getParameter()
+ {
+ return $this->parameter;
+ }
+ public function setParentFolderId($parentFolderId)
+ {
+ $this->parentFolderId = $parentFolderId;
+ }
+ public function getParentFolderId()
+ {
+ return $this->parentFolderId;
+ }
+ public function setPriority(Google_Service_TagManager_Parameter $priority)
+ {
+ $this->priority = $priority;
+ }
+ public function getPriority()
+ {
+ return $this->priority;
+ }
+ public function setScheduleEndMs($scheduleEndMs)
+ {
+ $this->scheduleEndMs = $scheduleEndMs;
+ }
+ public function getScheduleEndMs()
+ {
+ return $this->scheduleEndMs;
+ }
+ public function setScheduleStartMs($scheduleStartMs)
+ {
+ $this->scheduleStartMs = $scheduleStartMs;
+ }
+ public function getScheduleStartMs()
+ {
+ return $this->scheduleStartMs;
+ }
+ public function setSetupTag($setupTag)
+ {
+ $this->setupTag = $setupTag;
+ }
+ public function getSetupTag()
+ {
+ return $this->setupTag;
+ }
+ public function setTagFiringOption($tagFiringOption)
+ {
+ $this->tagFiringOption = $tagFiringOption;
+ }
+ public function getTagFiringOption()
+ {
+ return $this->tagFiringOption;
+ }
+ public function setTagId($tagId)
+ {
+ $this->tagId = $tagId;
+ }
+ public function getTagId()
+ {
+ return $this->tagId;
+ }
+ public function setTeardownTag($teardownTag)
+ {
+ $this->teardownTag = $teardownTag;
+ }
+ public function getTeardownTag()
+ {
+ return $this->teardownTag;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/TeardownTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/TeardownTag.php
new file mode 100644
index 00000000..f0a8e3c2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/TeardownTag.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_TeardownTag extends Google_Model
+{
+ public $stopTeardownOnFailure;
+ public $tagName;
+
+ public function setStopTeardownOnFailure($stopTeardownOnFailure)
+ {
+ $this->stopTeardownOnFailure = $stopTeardownOnFailure;
+ }
+ public function getStopTeardownOnFailure()
+ {
+ return $this->stopTeardownOnFailure;
+ }
+ public function setTagName($tagName)
+ {
+ $this->tagName = $tagName;
+ }
+ public function getTagName()
+ {
+ return $this->tagName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Trigger.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Trigger.php
new file mode 100644
index 00000000..5f8391a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Trigger.php
@@ -0,0 +1,205 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Trigger extends Google_Collection
+{
+ protected $collection_key = 'filter';
+ public $accountId;
+ protected $autoEventFilterType = 'Google_Service_TagManager_Condition';
+ protected $autoEventFilterDataType = 'array';
+ protected $checkValidationType = 'Google_Service_TagManager_Parameter';
+ protected $checkValidationDataType = '';
+ public $containerId;
+ protected $customEventFilterType = 'Google_Service_TagManager_Condition';
+ protected $customEventFilterDataType = 'array';
+ protected $enableAllVideosType = 'Google_Service_TagManager_Parameter';
+ protected $enableAllVideosDataType = '';
+ protected $eventNameType = 'Google_Service_TagManager_Parameter';
+ protected $eventNameDataType = '';
+ protected $filterType = 'Google_Service_TagManager_Condition';
+ protected $filterDataType = 'array';
+ public $fingerprint;
+ protected $intervalType = 'Google_Service_TagManager_Parameter';
+ protected $intervalDataType = '';
+ protected $limitType = 'Google_Service_TagManager_Parameter';
+ protected $limitDataType = '';
+ public $name;
+ public $parentFolderId;
+ public $triggerId;
+ public $type;
+ protected $uniqueTriggerIdType = 'Google_Service_TagManager_Parameter';
+ protected $uniqueTriggerIdDataType = '';
+ protected $videoPercentageListType = 'Google_Service_TagManager_Parameter';
+ protected $videoPercentageListDataType = '';
+ protected $waitForTagsType = 'Google_Service_TagManager_Parameter';
+ protected $waitForTagsDataType = '';
+ protected $waitForTagsTimeoutType = 'Google_Service_TagManager_Parameter';
+ protected $waitForTagsTimeoutDataType = '';
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAutoEventFilter($autoEventFilter)
+ {
+ $this->autoEventFilter = $autoEventFilter;
+ }
+ public function getAutoEventFilter()
+ {
+ return $this->autoEventFilter;
+ }
+ public function setCheckValidation(Google_Service_TagManager_Parameter $checkValidation)
+ {
+ $this->checkValidation = $checkValidation;
+ }
+ public function getCheckValidation()
+ {
+ return $this->checkValidation;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setCustomEventFilter($customEventFilter)
+ {
+ $this->customEventFilter = $customEventFilter;
+ }
+ public function getCustomEventFilter()
+ {
+ return $this->customEventFilter;
+ }
+ public function setEnableAllVideos(Google_Service_TagManager_Parameter $enableAllVideos)
+ {
+ $this->enableAllVideos = $enableAllVideos;
+ }
+ public function getEnableAllVideos()
+ {
+ return $this->enableAllVideos;
+ }
+ public function setEventName(Google_Service_TagManager_Parameter $eventName)
+ {
+ $this->eventName = $eventName;
+ }
+ public function getEventName()
+ {
+ return $this->eventName;
+ }
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setInterval(Google_Service_TagManager_Parameter $interval)
+ {
+ $this->interval = $interval;
+ }
+ public function getInterval()
+ {
+ return $this->interval;
+ }
+ public function setLimit(Google_Service_TagManager_Parameter $limit)
+ {
+ $this->limit = $limit;
+ }
+ public function getLimit()
+ {
+ return $this->limit;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentFolderId($parentFolderId)
+ {
+ $this->parentFolderId = $parentFolderId;
+ }
+ public function getParentFolderId()
+ {
+ return $this->parentFolderId;
+ }
+ public function setTriggerId($triggerId)
+ {
+ $this->triggerId = $triggerId;
+ }
+ public function getTriggerId()
+ {
+ return $this->triggerId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUniqueTriggerId(Google_Service_TagManager_Parameter $uniqueTriggerId)
+ {
+ $this->uniqueTriggerId = $uniqueTriggerId;
+ }
+ public function getUniqueTriggerId()
+ {
+ return $this->uniqueTriggerId;
+ }
+ public function setVideoPercentageList(Google_Service_TagManager_Parameter $videoPercentageList)
+ {
+ $this->videoPercentageList = $videoPercentageList;
+ }
+ public function getVideoPercentageList()
+ {
+ return $this->videoPercentageList;
+ }
+ public function setWaitForTags(Google_Service_TagManager_Parameter $waitForTags)
+ {
+ $this->waitForTags = $waitForTags;
+ }
+ public function getWaitForTags()
+ {
+ return $this->waitForTags;
+ }
+ public function setWaitForTagsTimeout(Google_Service_TagManager_Parameter $waitForTagsTimeout)
+ {
+ $this->waitForTagsTimeout = $waitForTagsTimeout;
+ }
+ public function getWaitForTagsTimeout()
+ {
+ return $this->waitForTagsTimeout;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/UserAccess.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/UserAccess.php
new file mode 100644
index 00000000..267eefeb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/UserAccess.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_UserAccess extends Google_Collection
+{
+ protected $collection_key = 'containerAccess';
+ protected $accountAccessType = 'Google_Service_TagManager_AccountAccess';
+ protected $accountAccessDataType = '';
+ public $accountId;
+ protected $containerAccessType = 'Google_Service_TagManager_ContainerAccess';
+ protected $containerAccessDataType = 'array';
+ public $emailAddress;
+ public $permissionId;
+
+ public function setAccountAccess(Google_Service_TagManager_AccountAccess $accountAccess)
+ {
+ $this->accountAccess = $accountAccess;
+ }
+ public function getAccountAccess()
+ {
+ return $this->accountAccess;
+ }
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setContainerAccess($containerAccess)
+ {
+ $this->containerAccess = $containerAccess;
+ }
+ public function getContainerAccess()
+ {
+ return $this->containerAccess;
+ }
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+ public function setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Variable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Variable.php
new file mode 100644
index 00000000..31558978
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/TagManager/Variable.php
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_TagManager_Variable extends Google_Collection
+{
+ protected $collection_key = 'parameter';
+ public $accountId;
+ public $containerId;
+ public $disablingTriggerId;
+ public $enablingTriggerId;
+ public $fingerprint;
+ public $name;
+ public $notes;
+ protected $parameterType = 'Google_Service_TagManager_Parameter';
+ protected $parameterDataType = 'array';
+ public $parentFolderId;
+ public $scheduleEndMs;
+ public $scheduleStartMs;
+ public $type;
+ public $variableId;
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setContainerId($containerId)
+ {
+ $this->containerId = $containerId;
+ }
+ public function getContainerId()
+ {
+ return $this->containerId;
+ }
+ public function setDisablingTriggerId($disablingTriggerId)
+ {
+ $this->disablingTriggerId = $disablingTriggerId;
+ }
+ public function getDisablingTriggerId()
+ {
+ return $this->disablingTriggerId;
+ }
+ public function setEnablingTriggerId($enablingTriggerId)
+ {
+ $this->enablingTriggerId = $enablingTriggerId;
+ }
+ public function getEnablingTriggerId()
+ {
+ return $this->enablingTriggerId;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setParameter($parameter)
+ {
+ $this->parameter = $parameter;
+ }
+ public function getParameter()
+ {
+ return $this->parameter;
+ }
+ public function setParentFolderId($parentFolderId)
+ {
+ $this->parentFolderId = $parentFolderId;
+ }
+ public function getParentFolderId()
+ {
+ return $this->parentFolderId;
+ }
+ public function setScheduleEndMs($scheduleEndMs)
+ {
+ $this->scheduleEndMs = $scheduleEndMs;
+ }
+ public function getScheduleEndMs()
+ {
+ return $this->scheduleEndMs;
+ }
+ public function setScheduleStartMs($scheduleStartMs)
+ {
+ $this->scheduleStartMs = $scheduleStartMs;
+ }
+ public function getScheduleStartMs()
+ {
+ return $this->scheduleStartMs;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVariableId($variableId)
+ {
+ $this->variableId = $variableId;
+ }
+ public function getVariableId()
+ {
+ return $this->variableId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue.php
new file mode 100644
index 00000000..7f3221d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue.php
@@ -0,0 +1,249 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Taskqueue (v1beta2).
+ *
+ * <p>
+ * Accesses a Google App Engine Pull Task Queue over REST.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/appengine/docs/python/taskqueue/rest" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Taskqueue extends Google_Service
+{
+ /** Manage your Tasks and Taskqueues. */
+ const TASKQUEUE =
+ "https://www.googleapis.com/auth/taskqueue";
+ /** Consume Tasks from your Taskqueues. */
+ const TASKQUEUE_CONSUMER =
+ "https://www.googleapis.com/auth/taskqueue.consumer";
+
+ public $taskqueues;
+ public $tasks;
+
+ /**
+ * Constructs the internal representation of the Taskqueue service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'taskqueue/v1beta2/projects/';
+ $this->version = 'v1beta2';
+ $this->serviceName = 'taskqueue';
+
+ $this->taskqueues = new Google_Service_Taskqueue_Resource_Taskqueues(
+ $this,
+ $this->serviceName,
+ 'taskqueues',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'getStats' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->tasks = new Google_Service_Taskqueue_Resource_Tasks(
+ $this,
+ $this->serviceName,
+ 'tasks',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}/tasks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'lease' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}/tasks/lease',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'numTasks' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'leaseSecs' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ 'groupByTag' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'tag' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}/tasks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'newLeaseSeconds' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'project' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'taskqueue' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'newLeaseSeconds' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Taskqueues.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Taskqueues.php
new file mode 100644
index 00000000..75e6c36f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Taskqueues.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "taskqueues" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $taskqueueService = new Google_Service_Taskqueue(...);
+ * $taskqueues = $taskqueueService->taskqueues;
+ * </code>
+ */
+class Google_Service_Taskqueue_Resource_Taskqueues extends Google_Service_Resource
+{
+ /**
+ * Get detailed information about a TaskQueue. (taskqueues.get)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue The id of the taskqueue to get the properties of.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool getStats Whether to get stats. Optional.
+ * @return Google_Service_Taskqueue_TaskQueue
+ */
+ public function get($project, $taskqueue, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Taskqueue_TaskQueue");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Tasks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Tasks.php
new file mode 100644
index 00000000..79afd4ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Resource/Tasks.php
@@ -0,0 +1,144 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tasks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $taskqueueService = new Google_Service_Taskqueue(...);
+ * $tasks = $taskqueueService->tasks;
+ * </code>
+ */
+class Google_Service_Taskqueue_Resource_Tasks extends Google_Service_Resource
+{
+ /**
+ * Delete a task from a TaskQueue. (tasks.delete)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue The taskqueue to delete a task from.
+ * @param string $task The id of the task to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $taskqueue, $task, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Get a particular task from a TaskQueue. (tasks.get)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue The taskqueue in which the task belongs.
+ * @param string $task The task to get properties of.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Taskqueue_Task
+ */
+ public function get($project, $taskqueue, $task, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Taskqueue_Task");
+ }
+ /**
+ * Insert a new task in a TaskQueue (tasks.insert)
+ *
+ * @param string $project The project under which the queue lies
+ * @param string $taskqueue The taskqueue to insert the task into
+ * @param Google_Service_Taskqueue_Task $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Taskqueue_Task
+ */
+ public function insert($project, $taskqueue, Google_Service_Taskqueue_Task $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Taskqueue_Task");
+ }
+ /**
+ * Lease 1 or more tasks from a TaskQueue. (tasks.lease)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue The taskqueue to lease a task from.
+ * @param int $numTasks The number of tasks to lease.
+ * @param int $leaseSecs The lease in seconds.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool groupByTag When true, all returned tasks will have the same
+ * tag
+ * @opt_param string tag The tag allowed for tasks in the response. Must only be
+ * specified if group_by_tag is true. If group_by_tag is true and tag is not
+ * specified the tag will be that of the oldest task by eta, i.e. the first
+ * available tag
+ * @return Google_Service_Taskqueue_Tasks
+ */
+ public function lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue, 'numTasks' => $numTasks, 'leaseSecs' => $leaseSecs);
+ $params = array_merge($params, $optParams);
+ return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks");
+ }
+ /**
+ * List Tasks in a TaskQueue (tasks.listTasks)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue The id of the taskqueue to list tasks from.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Taskqueue_Tasks2
+ */
+ public function listTasks($project, $taskqueue, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2");
+ }
+ /**
+ * Update tasks that are leased out of a TaskQueue. This method supports patch
+ * semantics. (tasks.patch)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue
+ * @param string $task
+ * @param int $newLeaseSeconds The new lease in seconds.
+ * @param Google_Service_Taskqueue_Task $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Taskqueue_Task
+ */
+ public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Taskqueue_Task");
+ }
+ /**
+ * Update tasks that are leased out of a TaskQueue. (tasks.update)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue
+ * @param string $task
+ * @param int $newLeaseSeconds The new lease in seconds.
+ * @param Google_Service_Taskqueue_Task $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Taskqueue_Task
+ */
+ public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Taskqueue_Task");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Task.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Task.php
new file mode 100644
index 00000000..3807b721
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Task.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Taskqueue_Task extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "retryCount" => "retry_count",
+ );
+ public $enqueueTimestamp;
+ public $id;
+ public $kind;
+ public $leaseTimestamp;
+ public $payloadBase64;
+ public $queueName;
+ public $retryCount;
+ public $tag;
+
+ public function setEnqueueTimestamp($enqueueTimestamp)
+ {
+ $this->enqueueTimestamp = $enqueueTimestamp;
+ }
+ public function getEnqueueTimestamp()
+ {
+ return $this->enqueueTimestamp;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLeaseTimestamp($leaseTimestamp)
+ {
+ $this->leaseTimestamp = $leaseTimestamp;
+ }
+ public function getLeaseTimestamp()
+ {
+ return $this->leaseTimestamp;
+ }
+ public function setPayloadBase64($payloadBase64)
+ {
+ $this->payloadBase64 = $payloadBase64;
+ }
+ public function getPayloadBase64()
+ {
+ return $this->payloadBase64;
+ }
+ public function setQueueName($queueName)
+ {
+ $this->queueName = $queueName;
+ }
+ public function getQueueName()
+ {
+ return $this->queueName;
+ }
+ public function setRetryCount($retryCount)
+ {
+ $this->retryCount = $retryCount;
+ }
+ public function getRetryCount()
+ {
+ return $this->retryCount;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueue.php
new file mode 100644
index 00000000..dc3ea493
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueue.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Taskqueue_TaskQueue extends Google_Model
+{
+ protected $aclType = 'Google_Service_Taskqueue_TaskQueueAcl';
+ protected $aclDataType = '';
+ public $id;
+ public $kind;
+ public $maxLeases;
+ protected $statsType = 'Google_Service_Taskqueue_TaskQueueStats';
+ protected $statsDataType = '';
+
+ public function setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl)
+ {
+ $this->acl = $acl;
+ }
+ public function getAcl()
+ {
+ return $this->acl;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxLeases($maxLeases)
+ {
+ $this->maxLeases = $maxLeases;
+ }
+ public function getMaxLeases()
+ {
+ return $this->maxLeases;
+ }
+ public function setStats(Google_Service_Taskqueue_TaskQueueStats $stats)
+ {
+ $this->stats = $stats;
+ }
+ public function getStats()
+ {
+ return $this->stats;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueAcl.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueAcl.php
new file mode 100644
index 00000000..afbfd590
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueAcl.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Taskqueue_TaskQueueAcl extends Google_Collection
+{
+ protected $collection_key = 'producerEmails';
+ public $adminEmails;
+ public $consumerEmails;
+ public $producerEmails;
+
+ public function setAdminEmails($adminEmails)
+ {
+ $this->adminEmails = $adminEmails;
+ }
+ public function getAdminEmails()
+ {
+ return $this->adminEmails;
+ }
+ public function setConsumerEmails($consumerEmails)
+ {
+ $this->consumerEmails = $consumerEmails;
+ }
+ public function getConsumerEmails()
+ {
+ return $this->consumerEmails;
+ }
+ public function setProducerEmails($producerEmails)
+ {
+ $this->producerEmails = $producerEmails;
+ }
+ public function getProducerEmails()
+ {
+ return $this->producerEmails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueStats.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueStats.php
new file mode 100644
index 00000000..dfba1306
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/TaskQueueStats.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Taskqueue_TaskQueueStats extends Google_Model
+{
+ public $leasedLastHour;
+ public $leasedLastMinute;
+ public $oldestTask;
+ public $totalTasks;
+
+ public function setLeasedLastHour($leasedLastHour)
+ {
+ $this->leasedLastHour = $leasedLastHour;
+ }
+ public function getLeasedLastHour()
+ {
+ return $this->leasedLastHour;
+ }
+ public function setLeasedLastMinute($leasedLastMinute)
+ {
+ $this->leasedLastMinute = $leasedLastMinute;
+ }
+ public function getLeasedLastMinute()
+ {
+ return $this->leasedLastMinute;
+ }
+ public function setOldestTask($oldestTask)
+ {
+ $this->oldestTask = $oldestTask;
+ }
+ public function getOldestTask()
+ {
+ return $this->oldestTask;
+ }
+ public function setTotalTasks($totalTasks)
+ {
+ $this->totalTasks = $totalTasks;
+ }
+ public function getTotalTasks()
+ {
+ return $this->totalTasks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks.php
new file mode 100644
index 00000000..837377e3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Taskqueue_Tasks extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Taskqueue_Task';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks2.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks2.php
new file mode 100644
index 00000000..52843027
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Taskqueue/Tasks2.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Taskqueue_Tasks2 extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Taskqueue_Task';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks.php
new file mode 100644
index 00000000..23380b73
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks.php
@@ -0,0 +1,295 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Tasks (v1).
+ *
+ * <p>
+ * Lets you manage your tasks and task lists.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/google-apps/tasks/firstapp" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Tasks extends Google_Service
+{
+ /** Manage your tasks. */
+ const TASKS =
+ "https://www.googleapis.com/auth/tasks";
+ /** View your tasks. */
+ const TASKS_READONLY =
+ "https://www.googleapis.com/auth/tasks.readonly";
+
+ public $tasklists;
+ public $tasks;
+
+ /**
+ * Constructs the internal representation of the Tasks service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'tasks/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'tasks';
+
+ $this->tasklists = new Google_Service_Tasks_Resource_Tasklists(
+ $this,
+ $this->serviceName,
+ 'tasklists',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'users/@me/lists/{tasklist}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'users/@me/lists/{tasklist}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'users/@me/lists',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'users/@me/lists',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'users/@me/lists/{tasklist}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'users/@me/lists/{tasklist}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->tasks = new Google_Service_Tasks_Resource_Tasks(
+ $this,
+ $this->serviceName,
+ 'tasks',
+ array(
+ 'methods' => array(
+ 'clear' => array(
+ 'path' => 'lists/{tasklist}/clear',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'lists/{tasklist}/tasks/{task}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'lists/{tasklist}/tasks/{task}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'lists/{tasklist}/tasks',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'parent' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'previous' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'lists/{tasklist}/tasks',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'completedMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'completedMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dueMax' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dueMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'showCompleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'showDeleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'showHidden' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'updatedMin' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'move' => array(
+ 'path' => 'lists/{tasklist}/tasks/{task}/move',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'parent' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'previous' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => 'lists/{tasklist}/tasks/{task}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'lists/{tasklist}/tasks/{task}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'tasklist' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'task' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php
new file mode 100644
index 00000000..20d4696a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasklists.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tasklists" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tasksService = new Google_Service_Tasks(...);
+ * $tasklists = $tasksService->tasklists;
+ * </code>
+ */
+class Google_Service_Tasks_Resource_Tasklists extends Google_Service_Resource
+{
+ /**
+ * Deletes the authenticated user's specified task list. (tasklists.delete)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($tasklist, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns the authenticated user's specified task list. (tasklists.get)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_TaskList
+ */
+ public function get($tasklist, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Tasks_TaskList");
+ }
+ /**
+ * Creates a new task list and adds it to the authenticated user's task lists.
+ * (tasklists.insert)
+ *
+ * @param Google_Service_Tasks_TaskList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_TaskList
+ */
+ public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Tasks_TaskList");
+ }
+ /**
+ * Returns all the authenticated user's task lists. (tasklists.listTasklists)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of task lists returned on one
+ * page. Optional. The default is 100.
+ * @opt_param string pageToken Token specifying the result page to return.
+ * Optional.
+ * @return Google_Service_Tasks_TaskLists
+ */
+ public function listTasklists($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Tasks_TaskLists");
+ }
+ /**
+ * Updates the authenticated user's specified task list. This method supports
+ * patch semantics. (tasklists.patch)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param Google_Service_Tasks_TaskList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_TaskList
+ */
+ public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Tasks_TaskList");
+ }
+ /**
+ * Updates the authenticated user's specified task list. (tasklists.update)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param Google_Service_Tasks_TaskList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_TaskList
+ */
+ public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Tasks_TaskList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php
new file mode 100644
index 00000000..d6217020
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Resource/Tasks.php
@@ -0,0 +1,179 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "tasks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tasksService = new Google_Service_Tasks(...);
+ * $tasks = $tasksService->tasks;
+ * </code>
+ */
+class Google_Service_Tasks_Resource_Tasks extends Google_Service_Resource
+{
+ /**
+ * Clears all completed tasks from the specified task list. The affected tasks
+ * will be marked as 'hidden' and no longer be returned by default when
+ * retrieving all tasks for a task list. (tasks.clear)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param array $optParams Optional parameters.
+ */
+ public function clear($tasklist, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist);
+ $params = array_merge($params, $optParams);
+ return $this->call('clear', array($params));
+ }
+ /**
+ * Deletes the specified task from the task list. (tasks.delete)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param string $task Task identifier.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($tasklist, $task, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'task' => $task);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Returns the specified task. (tasks.get)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param string $task Task identifier.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_Task
+ */
+ public function get($tasklist, $task, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'task' => $task);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Tasks_Task");
+ }
+ /**
+ * Creates a new task on the specified task list. (tasks.insert)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param Google_Service_Tasks_Task $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string parent Parent task identifier. If the task is created at
+ * the top level, this parameter is omitted. Optional.
+ * @opt_param string previous Previous sibling task identifier. If the task is
+ * created at the first position among its siblings, this parameter is omitted.
+ * Optional.
+ * @return Google_Service_Tasks_Task
+ */
+ public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Tasks_Task");
+ }
+ /**
+ * Returns all tasks in the specified task list. (tasks.listTasks)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string completedMax Upper bound for a task's completion date (as a
+ * RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
+ * completion date.
+ * @opt_param string completedMin Lower bound for a task's completion date (as a
+ * RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
+ * completion date.
+ * @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339
+ * timestamp) to filter by. Optional. The default is not to filter by due date.
+ * @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339
+ * timestamp) to filter by. Optional. The default is not to filter by due date.
+ * @opt_param string maxResults Maximum number of task lists returned on one
+ * page. Optional. The default is 100.
+ * @opt_param string pageToken Token specifying the result page to return.
+ * Optional.
+ * @opt_param bool showCompleted Flag indicating whether completed tasks are
+ * returned in the result. Optional. The default is True.
+ * @opt_param bool showDeleted Flag indicating whether deleted tasks are
+ * returned in the result. Optional. The default is False.
+ * @opt_param bool showHidden Flag indicating whether hidden tasks are returned
+ * in the result. Optional. The default is False.
+ * @opt_param string updatedMin Lower bound for a task's last modification time
+ * (as a RFC 3339 timestamp) to filter by. Optional. The default is not to
+ * filter by last modification time.
+ * @return Google_Service_Tasks_Tasks
+ */
+ public function listTasks($tasklist, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Tasks_Tasks");
+ }
+ /**
+ * Moves the specified task to another position in the task list. This can
+ * include putting it as a child task under a new parent and/or move it to a
+ * different position among its sibling tasks. (tasks.move)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param string $task Task identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string parent New parent task identifier. If the task is moved to
+ * the top level, this parameter is omitted. Optional.
+ * @opt_param string previous New previous sibling task identifier. If the task
+ * is moved to the first position among its siblings, this parameter is omitted.
+ * Optional.
+ * @return Google_Service_Tasks_Task
+ */
+ public function move($tasklist, $task, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'task' => $task);
+ $params = array_merge($params, $optParams);
+ return $this->call('move', array($params), "Google_Service_Tasks_Task");
+ }
+ /**
+ * Updates the specified task. This method supports patch semantics.
+ * (tasks.patch)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param string $task Task identifier.
+ * @param Google_Service_Tasks_Task $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_Task
+ */
+ public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Tasks_Task");
+ }
+ /**
+ * Updates the specified task. (tasks.update)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param string $task Task identifier.
+ * @param Google_Service_Tasks_Task $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_Task
+ */
+ public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
+ {
+ $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Tasks_Task");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Task.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Task.php
new file mode 100644
index 00000000..9f4742ab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Task.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tasks_Task extends Google_Collection
+{
+ protected $collection_key = 'links';
+ public $completed;
+ public $deleted;
+ public $due;
+ public $etag;
+ public $hidden;
+ public $id;
+ public $kind;
+ protected $linksType = 'Google_Service_Tasks_TaskLinks';
+ protected $linksDataType = 'array';
+ public $notes;
+ public $parent;
+ public $position;
+ public $selfLink;
+ public $status;
+ public $title;
+ public $updated;
+
+ public function setCompleted($completed)
+ {
+ $this->completed = $completed;
+ }
+ public function getCompleted()
+ {
+ return $this->completed;
+ }
+ public function setDeleted($deleted)
+ {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted()
+ {
+ return $this->deleted;
+ }
+ public function setDue($due)
+ {
+ $this->due = $due;
+ }
+ public function getDue()
+ {
+ return $this->due;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setHidden($hidden)
+ {
+ $this->hidden = $hidden;
+ }
+ public function getHidden()
+ {
+ return $this->hidden;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLinks($links)
+ {
+ $this->links = $links;
+ }
+ public function getLinks()
+ {
+ return $this->links;
+ }
+ public function setNotes($notes)
+ {
+ $this->notes = $notes;
+ }
+ public function getNotes()
+ {
+ return $this->notes;
+ }
+ public function setParent($parent)
+ {
+ $this->parent = $parent;
+ }
+ public function getParent()
+ {
+ return $this->parent;
+ }
+ public function setPosition($position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLinks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLinks.php
new file mode 100644
index 00000000..78cffe6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLinks.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tasks_TaskLinks extends Google_Model
+{
+ public $description;
+ public $link;
+ public $type;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskList.php
new file mode 100644
index 00000000..6eef024b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskList.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tasks_TaskList extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ public $selfLink;
+ public $title;
+ public $updated;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLists.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLists.php
new file mode 100644
index 00000000..64e24a36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/TaskLists.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tasks_TaskLists extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Tasks_TaskList';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Tasks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Tasks.php
new file mode 100644
index 00000000..01b5bb79
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tasks/Tasks.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tasks_Tasks extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_Tasks_Task';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults.php
new file mode 100644
index 00000000..3f51b3ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults.php
@@ -0,0 +1,664 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for ToolResults (v1beta3).
+ *
+ * <p>
+ * Reads and publishes results from Firebase Test Lab.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://firebase.google.com/docs/test-lab/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_ToolResults extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $projects;
+ public $projects_histories;
+ public $projects_histories_executions;
+ public $projects_histories_executions_steps;
+ public $projects_histories_executions_steps_perfMetricsSummary;
+ public $projects_histories_executions_steps_perfSampleSeries;
+ public $projects_histories_executions_steps_perfSampleSeries_samples;
+ public $projects_histories_executions_steps_thumbnails;
+
+ /**
+ * Constructs the internal representation of the ToolResults service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'toolresults/v1beta3/projects/';
+ $this->version = 'v1beta3';
+ $this->serviceName = 'toolresults';
+
+ $this->projects = new Google_Service_ToolResults_Resource_Projects(
+ $this,
+ $this->serviceName,
+ 'projects',
+ array(
+ 'methods' => array(
+ 'getSettings' => array(
+ 'path' => '{projectId}/settings',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'initializeSettings' => array(
+ 'path' => '{projectId}:initializeSettings',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_histories = new Google_Service_ToolResults_Resource_ProjectsHistories(
+ $this,
+ $this->serviceName,
+ 'histories',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{projectId}/histories',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{projectId}/histories/{historyId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{projectId}/histories',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filterByName' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_histories_executions = new Google_Service_ToolResults_Resource_ProjectsHistoriesExecutions(
+ $this,
+ $this->serviceName,
+ 'executions',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_histories_executions_steps = new Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsSteps(
+ $this,
+ $this->serviceName,
+ 'steps',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'getPerfMetricsSummary' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'patch' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}',
+ 'httpMethod' => 'PATCH',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'requestId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'publishXunitXmlFiles' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_histories_executions_steps_perfMetricsSummary = new Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfMetricsSummary(
+ $this,
+ $this->serviceName,
+ 'perfMetricsSummary',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_histories_executions_steps_perfSampleSeries = new Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeries(
+ $this,
+ $this->serviceName,
+ 'perfSampleSeries',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sampleSeriesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_histories_executions_steps_perfSampleSeries_samples = new Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples(
+ $this,
+ $this->serviceName,
+ 'samples',
+ array(
+ 'methods' => array(
+ 'batchCreate' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sampleSeriesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sampleSeriesId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->projects_histories_executions_steps_thumbnails = new Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsThumbnails(
+ $this,
+ $this->serviceName,
+ 'thumbnails',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projectId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'historyId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'executionId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'stepId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Any.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Any.php
new file mode 100644
index 00000000..1e9ea9d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Any.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Any extends Google_Model
+{
+ public $typeUrl;
+ public $value;
+
+ public function setTypeUrl($typeUrl)
+ {
+ $this->typeUrl = $typeUrl;
+ }
+ public function getTypeUrl()
+ {
+ return $this->typeUrl;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BasicPerfSampleSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BasicPerfSampleSeries.php
new file mode 100644
index 00000000..74053423
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BasicPerfSampleSeries.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_BasicPerfSampleSeries extends Google_Model
+{
+ public $perfMetricType;
+ public $perfUnit;
+ public $sampleSeriesLabel;
+
+ public function setPerfMetricType($perfMetricType)
+ {
+ $this->perfMetricType = $perfMetricType;
+ }
+ public function getPerfMetricType()
+ {
+ return $this->perfMetricType;
+ }
+ public function setPerfUnit($perfUnit)
+ {
+ $this->perfUnit = $perfUnit;
+ }
+ public function getPerfUnit()
+ {
+ return $this->perfUnit;
+ }
+ public function setSampleSeriesLabel($sampleSeriesLabel)
+ {
+ $this->sampleSeriesLabel = $sampleSeriesLabel;
+ }
+ public function getSampleSeriesLabel()
+ {
+ return $this->sampleSeriesLabel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesRequest.php
new file mode 100644
index 00000000..ecb60fc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_BatchCreatePerfSamplesRequest extends Google_Collection
+{
+ protected $collection_key = 'perfSamples';
+ protected $perfSamplesType = 'Google_Service_ToolResults_PerfSample';
+ protected $perfSamplesDataType = 'array';
+
+ public function setPerfSamples($perfSamples)
+ {
+ $this->perfSamples = $perfSamples;
+ }
+ public function getPerfSamples()
+ {
+ return $this->perfSamples;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesResponse.php
new file mode 100644
index 00000000..cc61e10d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/BatchCreatePerfSamplesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_BatchCreatePerfSamplesResponse extends Google_Collection
+{
+ protected $collection_key = 'perfSamples';
+ protected $perfSamplesType = 'Google_Service_ToolResults_PerfSample';
+ protected $perfSamplesDataType = 'array';
+
+ public function setPerfSamples($perfSamples)
+ {
+ $this->perfSamples = $perfSamples;
+ }
+ public function getPerfSamples()
+ {
+ return $this->perfSamples;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/CPUInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/CPUInfo.php
new file mode 100644
index 00000000..430d7907
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/CPUInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_CPUInfo extends Google_Model
+{
+ public $cpuProcessor;
+ public $cpuSpeedInGhz;
+ public $numberOfCores;
+
+ public function setCpuProcessor($cpuProcessor)
+ {
+ $this->cpuProcessor = $cpuProcessor;
+ }
+ public function getCpuProcessor()
+ {
+ return $this->cpuProcessor;
+ }
+ public function setCpuSpeedInGhz($cpuSpeedInGhz)
+ {
+ $this->cpuSpeedInGhz = $cpuSpeedInGhz;
+ }
+ public function getCpuSpeedInGhz()
+ {
+ return $this->cpuSpeedInGhz;
+ }
+ public function setNumberOfCores($numberOfCores)
+ {
+ $this->numberOfCores = $numberOfCores;
+ }
+ public function getNumberOfCores()
+ {
+ return $this->numberOfCores;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Duration.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Duration.php
new file mode 100644
index 00000000..d6baa1f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Duration.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Duration extends Google_Model
+{
+ public $nanos;
+ public $seconds;
+
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+ public function setSeconds($seconds)
+ {
+ $this->seconds = $seconds;
+ }
+ public function getSeconds()
+ {
+ return $this->seconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Execution.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Execution.php
new file mode 100644
index 00000000..69ebbdd0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Execution.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Execution extends Google_Model
+{
+ protected $completionTimeType = 'Google_Service_ToolResults_Timestamp';
+ protected $completionTimeDataType = '';
+ protected $creationTimeType = 'Google_Service_ToolResults_Timestamp';
+ protected $creationTimeDataType = '';
+ public $executionId;
+ protected $outcomeType = 'Google_Service_ToolResults_Outcome';
+ protected $outcomeDataType = '';
+ public $state;
+ public $testExecutionMatrixId;
+
+ public function setCompletionTime(Google_Service_ToolResults_Timestamp $completionTime)
+ {
+ $this->completionTime = $completionTime;
+ }
+ public function getCompletionTime()
+ {
+ return $this->completionTime;
+ }
+ public function setCreationTime(Google_Service_ToolResults_Timestamp $creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setExecutionId($executionId)
+ {
+ $this->executionId = $executionId;
+ }
+ public function getExecutionId()
+ {
+ return $this->executionId;
+ }
+ public function setOutcome(Google_Service_ToolResults_Outcome $outcome)
+ {
+ $this->outcome = $outcome;
+ }
+ public function getOutcome()
+ {
+ return $this->outcome;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTestExecutionMatrixId($testExecutionMatrixId)
+ {
+ $this->testExecutionMatrixId = $testExecutionMatrixId;
+ }
+ public function getTestExecutionMatrixId()
+ {
+ return $this->testExecutionMatrixId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FailureDetail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FailureDetail.php
new file mode 100644
index 00000000..959f860d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FailureDetail.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_FailureDetail extends Google_Model
+{
+ public $crashed;
+ public $notInstalled;
+ public $otherNativeCrash;
+ public $timedOut;
+ public $unableToCrawl;
+
+ public function setCrashed($crashed)
+ {
+ $this->crashed = $crashed;
+ }
+ public function getCrashed()
+ {
+ return $this->crashed;
+ }
+ public function setNotInstalled($notInstalled)
+ {
+ $this->notInstalled = $notInstalled;
+ }
+ public function getNotInstalled()
+ {
+ return $this->notInstalled;
+ }
+ public function setOtherNativeCrash($otherNativeCrash)
+ {
+ $this->otherNativeCrash = $otherNativeCrash;
+ }
+ public function getOtherNativeCrash()
+ {
+ return $this->otherNativeCrash;
+ }
+ public function setTimedOut($timedOut)
+ {
+ $this->timedOut = $timedOut;
+ }
+ public function getTimedOut()
+ {
+ return $this->timedOut;
+ }
+ public function setUnableToCrawl($unableToCrawl)
+ {
+ $this->unableToCrawl = $unableToCrawl;
+ }
+ public function getUnableToCrawl()
+ {
+ return $this->unableToCrawl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FileReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FileReference.php
new file mode 100644
index 00000000..f54ea1e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/FileReference.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_FileReference extends Google_Model
+{
+ public $fileUri;
+
+ public function setFileUri($fileUri)
+ {
+ $this->fileUri = $fileUri;
+ }
+ public function getFileUri()
+ {
+ return $this->fileUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/History.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/History.php
new file mode 100644
index 00000000..54df1ed0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/History.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_History extends Google_Model
+{
+ public $displayName;
+ public $historyId;
+ public $name;
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Image.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Image.php
new file mode 100644
index 00000000..4d35ed25
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Image.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Image extends Google_Model
+{
+ protected $errorType = 'Google_Service_ToolResults_Status';
+ protected $errorDataType = '';
+ protected $sourceImageType = 'Google_Service_ToolResults_ToolOutputReference';
+ protected $sourceImageDataType = '';
+ public $stepId;
+ protected $thumbnailType = 'Google_Service_ToolResults_Thumbnail';
+ protected $thumbnailDataType = '';
+
+ public function setError(Google_Service_ToolResults_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setSourceImage(Google_Service_ToolResults_ToolOutputReference $sourceImage)
+ {
+ $this->sourceImage = $sourceImage;
+ }
+ public function getSourceImage()
+ {
+ return $this->sourceImage;
+ }
+ public function setStepId($stepId)
+ {
+ $this->stepId = $stepId;
+ }
+ public function getStepId()
+ {
+ return $this->stepId;
+ }
+ public function setThumbnail(Google_Service_ToolResults_Thumbnail $thumbnail)
+ {
+ $this->thumbnail = $thumbnail;
+ }
+ public function getThumbnail()
+ {
+ return $this->thumbnail;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/InconclusiveDetail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/InconclusiveDetail.php
new file mode 100644
index 00000000..b5e888a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/InconclusiveDetail.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_InconclusiveDetail extends Google_Model
+{
+ public $abortedByUser;
+ public $infrastructureFailure;
+
+ public function setAbortedByUser($abortedByUser)
+ {
+ $this->abortedByUser = $abortedByUser;
+ }
+ public function getAbortedByUser()
+ {
+ return $this->abortedByUser;
+ }
+ public function setInfrastructureFailure($infrastructureFailure)
+ {
+ $this->infrastructureFailure = $infrastructureFailure;
+ }
+ public function getInfrastructureFailure()
+ {
+ return $this->infrastructureFailure;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListExecutionsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListExecutionsResponse.php
new file mode 100644
index 00000000..479b644f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListExecutionsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ListExecutionsResponse extends Google_Collection
+{
+ protected $collection_key = 'executions';
+ protected $executionsType = 'Google_Service_ToolResults_Execution';
+ protected $executionsDataType = 'array';
+ public $nextPageToken;
+
+ public function setExecutions($executions)
+ {
+ $this->executions = $executions;
+ }
+ public function getExecutions()
+ {
+ return $this->executions;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListHistoriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListHistoriesResponse.php
new file mode 100644
index 00000000..b4c5b5a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListHistoriesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ListHistoriesResponse extends Google_Collection
+{
+ protected $collection_key = 'histories';
+ protected $historiesType = 'Google_Service_ToolResults_History';
+ protected $historiesDataType = 'array';
+ public $nextPageToken;
+
+ public function setHistories($histories)
+ {
+ $this->histories = $histories;
+ }
+ public function getHistories()
+ {
+ return $this->histories;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSampleSeriesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSampleSeriesResponse.php
new file mode 100644
index 00000000..360b07a7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSampleSeriesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ListPerfSampleSeriesResponse extends Google_Collection
+{
+ protected $collection_key = 'perfSampleSeries';
+ protected $perfSampleSeriesType = 'Google_Service_ToolResults_PerfSampleSeries';
+ protected $perfSampleSeriesDataType = 'array';
+
+ public function setPerfSampleSeries($perfSampleSeries)
+ {
+ $this->perfSampleSeries = $perfSampleSeries;
+ }
+ public function getPerfSampleSeries()
+ {
+ return $this->perfSampleSeries;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSamplesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSamplesResponse.php
new file mode 100644
index 00000000..e6670e1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListPerfSamplesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ListPerfSamplesResponse extends Google_Collection
+{
+ protected $collection_key = 'perfSamples';
+ public $nextPageToken;
+ protected $perfSamplesType = 'Google_Service_ToolResults_PerfSample';
+ protected $perfSamplesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPerfSamples($perfSamples)
+ {
+ $this->perfSamples = $perfSamples;
+ }
+ public function getPerfSamples()
+ {
+ return $this->perfSamples;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepThumbnailsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepThumbnailsResponse.php
new file mode 100644
index 00000000..9ed07d75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepThumbnailsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ListStepThumbnailsResponse extends Google_Collection
+{
+ protected $collection_key = 'thumbnails';
+ public $nextPageToken;
+ protected $thumbnailsType = 'Google_Service_ToolResults_Image';
+ protected $thumbnailsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setThumbnails($thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepsResponse.php
new file mode 100644
index 00000000..96fe5e76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ListStepsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ListStepsResponse extends Google_Collection
+{
+ protected $collection_key = 'steps';
+ public $nextPageToken;
+ protected $stepsType = 'Google_Service_ToolResults_Step';
+ protected $stepsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/MemoryInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/MemoryInfo.php
new file mode 100644
index 00000000..e445bdb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/MemoryInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_MemoryInfo extends Google_Model
+{
+ public $memoryCapInKibibyte;
+ public $memoryTotalInKibibyte;
+
+ public function setMemoryCapInKibibyte($memoryCapInKibibyte)
+ {
+ $this->memoryCapInKibibyte = $memoryCapInKibibyte;
+ }
+ public function getMemoryCapInKibibyte()
+ {
+ return $this->memoryCapInKibibyte;
+ }
+ public function setMemoryTotalInKibibyte($memoryTotalInKibibyte)
+ {
+ $this->memoryTotalInKibibyte = $memoryTotalInKibibyte;
+ }
+ public function getMemoryTotalInKibibyte()
+ {
+ return $this->memoryTotalInKibibyte;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Outcome.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Outcome.php
new file mode 100644
index 00000000..f7bada97
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Outcome.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Outcome extends Google_Model
+{
+ protected $failureDetailType = 'Google_Service_ToolResults_FailureDetail';
+ protected $failureDetailDataType = '';
+ protected $inconclusiveDetailType = 'Google_Service_ToolResults_InconclusiveDetail';
+ protected $inconclusiveDetailDataType = '';
+ protected $skippedDetailType = 'Google_Service_ToolResults_SkippedDetail';
+ protected $skippedDetailDataType = '';
+ protected $successDetailType = 'Google_Service_ToolResults_SuccessDetail';
+ protected $successDetailDataType = '';
+ public $summary;
+
+ public function setFailureDetail(Google_Service_ToolResults_FailureDetail $failureDetail)
+ {
+ $this->failureDetail = $failureDetail;
+ }
+ public function getFailureDetail()
+ {
+ return $this->failureDetail;
+ }
+ public function setInconclusiveDetail(Google_Service_ToolResults_InconclusiveDetail $inconclusiveDetail)
+ {
+ $this->inconclusiveDetail = $inconclusiveDetail;
+ }
+ public function getInconclusiveDetail()
+ {
+ return $this->inconclusiveDetail;
+ }
+ public function setSkippedDetail(Google_Service_ToolResults_SkippedDetail $skippedDetail)
+ {
+ $this->skippedDetail = $skippedDetail;
+ }
+ public function getSkippedDetail()
+ {
+ return $this->skippedDetail;
+ }
+ public function setSuccessDetail(Google_Service_ToolResults_SuccessDetail $successDetail)
+ {
+ $this->successDetail = $successDetail;
+ }
+ public function getSuccessDetail()
+ {
+ return $this->successDetail;
+ }
+ public function setSummary($summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfEnvironment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfEnvironment.php
new file mode 100644
index 00000000..2b5672aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfEnvironment.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_PerfEnvironment extends Google_Model
+{
+ protected $cpuInfoType = 'Google_Service_ToolResults_CPUInfo';
+ protected $cpuInfoDataType = '';
+ protected $memoryInfoType = 'Google_Service_ToolResults_MemoryInfo';
+ protected $memoryInfoDataType = '';
+
+ public function setCpuInfo(Google_Service_ToolResults_CPUInfo $cpuInfo)
+ {
+ $this->cpuInfo = $cpuInfo;
+ }
+ public function getCpuInfo()
+ {
+ return $this->cpuInfo;
+ }
+ public function setMemoryInfo(Google_Service_ToolResults_MemoryInfo $memoryInfo)
+ {
+ $this->memoryInfo = $memoryInfo;
+ }
+ public function getMemoryInfo()
+ {
+ return $this->memoryInfo;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfMetricsSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfMetricsSummary.php
new file mode 100644
index 00000000..03bc72a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfMetricsSummary.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_PerfMetricsSummary extends Google_Collection
+{
+ protected $collection_key = 'perfMetrics';
+ public $executionId;
+ public $historyId;
+ protected $perfEnvironmentType = 'Google_Service_ToolResults_PerfEnvironment';
+ protected $perfEnvironmentDataType = '';
+ public $perfMetrics;
+ public $projectId;
+ public $stepId;
+
+ public function setExecutionId($executionId)
+ {
+ $this->executionId = $executionId;
+ }
+ public function getExecutionId()
+ {
+ return $this->executionId;
+ }
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+ public function setPerfEnvironment(Google_Service_ToolResults_PerfEnvironment $perfEnvironment)
+ {
+ $this->perfEnvironment = $perfEnvironment;
+ }
+ public function getPerfEnvironment()
+ {
+ return $this->perfEnvironment;
+ }
+ public function setPerfMetrics($perfMetrics)
+ {
+ $this->perfMetrics = $perfMetrics;
+ }
+ public function getPerfMetrics()
+ {
+ return $this->perfMetrics;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setStepId($stepId)
+ {
+ $this->stepId = $stepId;
+ }
+ public function getStepId()
+ {
+ return $this->stepId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSample.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSample.php
new file mode 100644
index 00000000..c1ddf723
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSample.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_PerfSample extends Google_Model
+{
+ protected $sampleTimeType = 'Google_Service_ToolResults_Timestamp';
+ protected $sampleTimeDataType = '';
+ public $value;
+
+ public function setSampleTime(Google_Service_ToolResults_Timestamp $sampleTime)
+ {
+ $this->sampleTime = $sampleTime;
+ }
+ public function getSampleTime()
+ {
+ return $this->sampleTime;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSampleSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSampleSeries.php
new file mode 100644
index 00000000..79e0364f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PerfSampleSeries.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_PerfSampleSeries extends Google_Model
+{
+ protected $basicPerfSampleSeriesType = 'Google_Service_ToolResults_BasicPerfSampleSeries';
+ protected $basicPerfSampleSeriesDataType = '';
+ public $executionId;
+ public $historyId;
+ public $projectId;
+ public $sampleSeriesId;
+ public $stepId;
+
+ public function setBasicPerfSampleSeries(Google_Service_ToolResults_BasicPerfSampleSeries $basicPerfSampleSeries)
+ {
+ $this->basicPerfSampleSeries = $basicPerfSampleSeries;
+ }
+ public function getBasicPerfSampleSeries()
+ {
+ return $this->basicPerfSampleSeries;
+ }
+ public function setExecutionId($executionId)
+ {
+ $this->executionId = $executionId;
+ }
+ public function getExecutionId()
+ {
+ return $this->executionId;
+ }
+ public function setHistoryId($historyId)
+ {
+ $this->historyId = $historyId;
+ }
+ public function getHistoryId()
+ {
+ return $this->historyId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setSampleSeriesId($sampleSeriesId)
+ {
+ $this->sampleSeriesId = $sampleSeriesId;
+ }
+ public function getSampleSeriesId()
+ {
+ return $this->sampleSeriesId;
+ }
+ public function setStepId($stepId)
+ {
+ $this->stepId = $stepId;
+ }
+ public function getStepId()
+ {
+ return $this->stepId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ProjectSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ProjectSettings.php
new file mode 100644
index 00000000..c1edd51a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ProjectSettings.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ProjectSettings extends Google_Model
+{
+ public $defaultBucket;
+ public $name;
+
+ public function setDefaultBucket($defaultBucket)
+ {
+ $this->defaultBucket = $defaultBucket;
+ }
+ public function getDefaultBucket()
+ {
+ return $this->defaultBucket;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PublishXunitXmlFilesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PublishXunitXmlFilesRequest.php
new file mode 100644
index 00000000..c9480516
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/PublishXunitXmlFilesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_PublishXunitXmlFilesRequest extends Google_Collection
+{
+ protected $collection_key = 'xunitXmlFiles';
+ protected $xunitXmlFilesType = 'Google_Service_ToolResults_FileReference';
+ protected $xunitXmlFilesDataType = 'array';
+
+ public function setXunitXmlFiles($xunitXmlFiles)
+ {
+ $this->xunitXmlFiles = $xunitXmlFiles;
+ }
+ public function getXunitXmlFiles()
+ {
+ return $this->xunitXmlFiles;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/Projects.php
new file mode 100644
index 00000000..506811c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/Projects.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $projects = $toolresultsService->projects;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_Projects extends Google_Service_Resource
+{
+ /**
+ * Gets the Tool Results settings for a project.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to read from project
+ * (projects.getSettings)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_ProjectSettings
+ */
+ public function getSettings($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getSettings', array($params), "Google_Service_ToolResults_ProjectSettings");
+ }
+ /**
+ * Creates resources for settings which have not yet been set.
+ *
+ * Currently, this creates a single resource: a Google Cloud Storage bucket, to
+ * be used as the default bucket for this project. The bucket is created in the
+ * name of the user calling. Except in rare cases, calling this method in
+ * parallel from multiple clients will only create a single bucket. In order to
+ * avoid unnecessary storage charges, the bucket is configured to automatically
+ * delete objects older than 90 days.
+ *
+ * The bucket is created with the project-private ACL: All project team members
+ * are given permissions to the bucket and objects created within it according
+ * to their roles. Project owners have owners rights, and so on. The default ACL
+ * on objects created in the bucket is project-private as well. See Google Cloud
+ * Storage documentation for more details.
+ *
+ * If there is already a default bucket set and the project can access the
+ * bucket, this call does nothing. However, if the project doesn't have the
+ * permission to access the bucket or the bucket is deteleted, a new bucket will
+ * be created.
+ *
+ * May return any canonical error codes, including the following:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write to project - Any
+ * error code raised by Google Cloud Storage (projects.initializeSettings)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_ProjectSettings
+ */
+ public function initializeSettings($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('initializeSettings', array($params), "Google_Service_ToolResults_ProjectSettings");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistories.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistories.php
new file mode 100644
index 00000000..801a938a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistories.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "histories" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $histories = $toolresultsService->histories;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_ProjectsHistories extends Google_Service_Resource
+{
+ /**
+ * Creates a History.
+ *
+ * The returned History will have the id set.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write to project -
+ * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
+ * containing project does not exist (histories.create)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param Google_Service_ToolResults_History $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId A unique request ID for server to detect
+ * duplicated requests. For example, a UUID.
+ *
+ * Optional, but strongly recommended.
+ * @return Google_Service_ToolResults_History
+ */
+ public function create($projectId, Google_Service_ToolResults_History $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ToolResults_History");
+ }
+ /**
+ * Gets a History.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to read project -
+ * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the History
+ * does not exist (histories.get)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_History
+ */
+ public function get($projectId, $historyId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ToolResults_History");
+ }
+ /**
+ * Lists Histories for a given Project.
+ *
+ * The histories are sorted by modification time in descending order. The
+ * history_id key will be used to order the history with the same modification
+ * time.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to read project -
+ * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the History
+ * does not exist (histories.listProjectsHistories)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filterByName If set, only return histories with the given
+ * name.
+ *
+ * Optional.
+ * @opt_param int pageSize The maximum number of Histories to fetch.
+ *
+ * Default value: 20. The server will use this default if the field is not set
+ * or has a value of 0. Any value greater than 100 will be treated as 100.
+ *
+ * Optional.
+ * @opt_param string pageToken A continuation token to resume the query at the
+ * next item.
+ *
+ * Optional.
+ * @return Google_Service_ToolResults_ListHistoriesResponse
+ */
+ public function listProjectsHistories($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ToolResults_ListHistoriesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php
new file mode 100644
index 00000000..b1641597
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutions.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "executions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $executions = $toolresultsService->executions;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_ProjectsHistoriesExecutions extends Google_Service_Resource
+{
+ /**
+ * Creates an Execution.
+ *
+ * The returned Execution will have the id set.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write to project -
+ * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
+ * containing History does not exist (executions.create)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param Google_Service_ToolResults_Execution $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId A unique request ID for server to detect
+ * duplicated requests. For example, a UUID.
+ *
+ * Optional, but strongly recommended.
+ * @return Google_Service_ToolResults_Execution
+ */
+ public function create($projectId, $historyId, Google_Service_ToolResults_Execution $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ToolResults_Execution");
+ }
+ /**
+ * Gets an Execution.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write to project -
+ * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Execution
+ * does not exist (executions.get)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param string $executionId An Execution id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_Execution
+ */
+ public function get($projectId, $historyId, $executionId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ToolResults_Execution");
+ }
+ /**
+ * Lists Histories for a given Project.
+ *
+ * The executions are sorted by creation_time in descending order. The
+ * execution_id key will be used to order the executions with the same
+ * creation_time.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to read project -
+ * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
+ * containing History does not exist
+ * (executions.listProjectsHistoriesExecutions)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The maximum number of Executions to fetch.
+ *
+ * Default value: 25. The server will use this default if the field is not set
+ * or has a value of 0.
+ *
+ * Optional.
+ * @opt_param string pageToken A continuation token to resume the query at the
+ * next item.
+ *
+ * Optional.
+ * @return Google_Service_ToolResults_ListExecutionsResponse
+ */
+ public function listProjectsHistoriesExecutions($projectId, $historyId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ToolResults_ListExecutionsResponse");
+ }
+ /**
+ * Updates an existing Execution with the supplied partial entity.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write to project -
+ * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
+ * requested state transition is illegal - NOT_FOUND - if the containing History
+ * does not exist (executions.patch)
+ *
+ * @param string $projectId A Project id. Required.
+ * @param string $historyId Required.
+ * @param string $executionId Required.
+ * @param Google_Service_ToolResults_Execution $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId A unique request ID for server to detect
+ * duplicated requests. For example, a UUID.
+ *
+ * Optional, but strongly recommended.
+ * @return Google_Service_ToolResults_Execution
+ */
+ public function patch($projectId, $historyId, $executionId, Google_Service_ToolResults_Execution $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ToolResults_Execution");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsSteps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsSteps.php
new file mode 100644
index 00000000..b7e11095
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsSteps.php
@@ -0,0 +1,228 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "steps" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $steps = $toolresultsService->steps;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsSteps extends Google_Service_Resource
+{
+ /**
+ * Creates a Step.
+ *
+ * The returned Step will have the id set.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write to project -
+ * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
+ * step is too large (more than 10Mib) - NOT_FOUND - if the containing Execution
+ * does not exist (steps.create)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param string $executionId A Execution id.
+ *
+ * Required.
+ * @param Google_Service_ToolResults_Step $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId A unique request ID for server to detect
+ * duplicated requests. For example, a UUID.
+ *
+ * Optional, but strongly recommended.
+ * @return Google_Service_ToolResults_Step
+ */
+ public function create($projectId, $historyId, $executionId, Google_Service_ToolResults_Step $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ToolResults_Step");
+ }
+ /**
+ * Gets a Step.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to read project -
+ * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Step does
+ * not exist (steps.get)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param string $executionId A Execution id.
+ *
+ * Required.
+ * @param string $stepId A Step id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_Step
+ */
+ public function get($projectId, $historyId, $executionId, $stepId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ToolResults_Step");
+ }
+ /**
+ * Retrieves a PerfMetricsSummary.
+ *
+ * May return any of the following error code(s): - NOT_FOUND - The specified
+ * PerfMetricsSummary does not exist (steps.getPerfMetricsSummary)
+ *
+ * @param string $projectId The cloud project
+ * @param string $historyId A tool results history ID.
+ * @param string $executionId A tool results execution ID.
+ * @param string $stepId A tool results step ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_PerfMetricsSummary
+ */
+ public function getPerfMetricsSummary($projectId, $historyId, $executionId, $stepId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getPerfMetricsSummary', array($params), "Google_Service_ToolResults_PerfMetricsSummary");
+ }
+ /**
+ * Lists Steps for a given Execution.
+ *
+ * The steps are sorted by creation_time in descending order. The step_id key
+ * will be used to order the steps with the same creation_time.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to read project -
+ * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if an
+ * argument in the request happens to be invalid; e.g. if an attempt is made to
+ * list the children of a nonexistent Step - NOT_FOUND - if the containing
+ * Execution does not exist (steps.listProjectsHistoriesExecutionsSteps)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param string $executionId A Execution id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The maximum number of Steps to fetch.
+ *
+ * Default value: 25. The server will use this default if the field is not set
+ * or has a value of 0.
+ *
+ * Optional.
+ * @opt_param string pageToken A continuation token to resume the query at the
+ * next item.
+ *
+ * Optional.
+ * @return Google_Service_ToolResults_ListStepsResponse
+ */
+ public function listProjectsHistoriesExecutionsSteps($projectId, $historyId, $executionId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ToolResults_ListStepsResponse");
+ }
+ /**
+ * Updates an existing Step with the supplied partial entity.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write project -
+ * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
+ * requested state transition is illegal (e.g try to upload a duplicate xml
+ * file), if the updated step is too large (more than 10Mib) - NOT_FOUND - if
+ * the containing Execution does not exist (steps.patch)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param string $executionId A Execution id.
+ *
+ * Required.
+ * @param string $stepId A Step id.
+ *
+ * Required.
+ * @param Google_Service_ToolResults_Step $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string requestId A unique request ID for server to detect
+ * duplicated requests. For example, a UUID.
+ *
+ * Optional, but strongly recommended.
+ * @return Google_Service_ToolResults_Step
+ */
+ public function patch($projectId, $historyId, $executionId, $stepId, Google_Service_ToolResults_Step $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ToolResults_Step");
+ }
+ /**
+ * Publish xml files to an existing Step.
+ *
+ * May return any of the following canonical error codes:
+ *
+ * - PERMISSION_DENIED - if the user is not authorized to write project -
+ * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
+ * requested state transition is illegal, e.g try to upload a duplicate xml file
+ * or a file too large. - NOT_FOUND - if the containing Execution does not exist
+ * (steps.publishXunitXmlFiles)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param string $executionId A Execution id.
+ *
+ * Required.
+ * @param string $stepId A Step id. Note: This step must include a
+ * TestExecutionStep.
+ *
+ * Required.
+ * @param Google_Service_ToolResults_PublishXunitXmlFilesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_Step
+ */
+ public function publishXunitXmlFiles($projectId, $historyId, $executionId, $stepId, Google_Service_ToolResults_PublishXunitXmlFilesRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('publishXunitXmlFiles', array($params), "Google_Service_ToolResults_Step");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfMetricsSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfMetricsSummary.php
new file mode 100644
index 00000000..dbde0b5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfMetricsSummary.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "perfMetricsSummary" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $perfMetricsSummary = $toolresultsService->perfMetricsSummary;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfMetricsSummary extends Google_Service_Resource
+{
+ /**
+ * Creates a PerfMetricsSummary resource.
+ *
+ * May return any of the following error code(s): - ALREADY_EXISTS - A
+ * PerfMetricSummary already exists for the given Step - NOT_FOUND - The
+ * containing Step does not exist (perfMetricsSummary.create)
+ *
+ * @param string $projectId The cloud project
+ * @param string $historyId A tool results history ID.
+ * @param string $executionId A tool results execution ID.
+ * @param string $stepId A tool results step ID.
+ * @param Google_Service_ToolResults_PerfMetricsSummary $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_PerfMetricsSummary
+ */
+ public function create($projectId, $historyId, $executionId, $stepId, Google_Service_ToolResults_PerfMetricsSummary $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ToolResults_PerfMetricsSummary");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeries.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeries.php
new file mode 100644
index 00000000..84779a15
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeries.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "perfSampleSeries" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $perfSampleSeries = $toolresultsService->perfSampleSeries;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeries extends Google_Service_Resource
+{
+ /**
+ * Creates a PerfSampleSeries.
+ *
+ * May return any of the following error code(s): - ALREADY_EXISTS -
+ * PerfMetricSummary already exists for the given Step - NOT_FOUND - The
+ * containing Step does not exist (perfSampleSeries.create)
+ *
+ * @param string $projectId The cloud project
+ * @param string $historyId A tool results history ID.
+ * @param string $executionId A tool results execution ID.
+ * @param string $stepId A tool results step ID.
+ * @param Google_Service_ToolResults_PerfSampleSeries $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_PerfSampleSeries
+ */
+ public function create($projectId, $historyId, $executionId, $stepId, Google_Service_ToolResults_PerfSampleSeries $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_ToolResults_PerfSampleSeries");
+ }
+ /**
+ * Gets a PerfSampleSeries.
+ *
+ * May return any of the following error code(s): - NOT_FOUND - The specified
+ * PerfSampleSeries does not exist (perfSampleSeries.get)
+ *
+ * @param string $projectId The cloud project
+ * @param string $historyId A tool results history ID.
+ * @param string $executionId A tool results execution ID.
+ * @param string $stepId A tool results step ID.
+ * @param string $sampleSeriesId A sample series id
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_PerfSampleSeries
+ */
+ public function get($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ToolResults_PerfSampleSeries");
+ }
+ /**
+ * Lists PerfSampleSeries for a given Step.
+ *
+ * The request provides an optional filter which specifies one or more
+ * PerfMetricsType to include in the result; if none returns all. The resulting
+ * PerfSampleSeries are sorted by ids.
+ *
+ * May return any of the following canonical error codes: - NOT_FOUND - The
+ * containing Step does not exist
+ * (perfSampleSeries.listProjectsHistoriesExecutionsStepsPerfSampleSeries)
+ *
+ * @param string $projectId The cloud project
+ * @param string $historyId A tool results history ID.
+ * @param string $executionId A tool results execution ID.
+ * @param string $stepId A tool results step ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Specify one or more PerfMetricType values such as
+ * CPU to filter the result
+ * @return Google_Service_ToolResults_ListPerfSampleSeriesResponse
+ */
+ public function listProjectsHistoriesExecutionsStepsPerfSampleSeries($projectId, $historyId, $executionId, $stepId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ToolResults_ListPerfSampleSeriesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples.php
new file mode 100644
index 00000000..1c4a55b7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples.php
@@ -0,0 +1,87 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "samples" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $samples = $toolresultsService->samples;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples extends Google_Service_Resource
+{
+ /**
+ * Creates a batch of PerfSamples - a client can submit multiple batches of Perf
+ * Samples through repeated calls to this method in order to split up a large
+ * request payload - duplicates and existing timestamp entries will be ignored.
+ * - the batch operation may partially succeed - the set of elements
+ * successfully inserted is returned in the response (omits items which already
+ * existed in the database).
+ *
+ * May return any of the following canonical error codes: - NOT_FOUND - The
+ * containing PerfSampleSeries does not exist (samples.batchCreate)
+ *
+ * @param string $projectId The cloud project
+ * @param string $historyId A tool results history ID.
+ * @param string $executionId A tool results execution ID.
+ * @param string $stepId A tool results step ID.
+ * @param string $sampleSeriesId A sample series id
+ * @param Google_Service_ToolResults_BatchCreatePerfSamplesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ToolResults_BatchCreatePerfSamplesResponse
+ */
+ public function batchCreate($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, Google_Service_ToolResults_BatchCreatePerfSamplesRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchCreate', array($params), "Google_Service_ToolResults_BatchCreatePerfSamplesResponse");
+ }
+ /**
+ * Lists the Performance Samples of a given Sample Series - The list results are
+ * sorted by timestamps ascending - The default page size is 500 samples; and
+ * maximum size allowed 5000 - The response token indicates the last returned
+ * PerfSample timestamp - When the results size exceeds the page size, submit a
+ * subsequent request including the page token to return the rest of the samples
+ * up to the page limit
+ *
+ * May return any of the following canonical error codes: - OUT_OF_RANGE - The
+ * specified request page_token is out of valid range - NOT_FOUND - The
+ * containing PerfSampleSeries does not exist
+ * (samples.listProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples)
+ *
+ * @param string $projectId The cloud project
+ * @param string $historyId A tool results history ID.
+ * @param string $executionId A tool results execution ID.
+ * @param string $stepId A tool results step ID.
+ * @param string $sampleSeriesId A sample series id
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The default page size is 500 samples, and the maximum
+ * size is 5000. If the page_size is greater than 5000, the effective page size
+ * will be 5000
+ * @opt_param string pageToken Optional, the next_page_token returned in the
+ * previous response
+ * @return Google_Service_ToolResults_ListPerfSamplesResponse
+ */
+ public function listProjectsHistoriesExecutionsStepsPerfSampleSeriesSamples($projectId, $historyId, $executionId, $stepId, $sampleSeriesId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId, 'sampleSeriesId' => $sampleSeriesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ToolResults_ListPerfSamplesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsThumbnails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsThumbnails.php
new file mode 100644
index 00000000..c4fdfd74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Resource/ProjectsHistoriesExecutionsStepsThumbnails.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "thumbnails" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $toolresultsService = new Google_Service_ToolResults(...);
+ * $thumbnails = $toolresultsService->thumbnails;
+ * </code>
+ */
+class Google_Service_ToolResults_Resource_ProjectsHistoriesExecutionsStepsThumbnails extends Google_Service_Resource
+{
+ /**
+ * Lists thumbnails of images attached to a step.
+ *
+ * May return any of the following canonical error codes: - PERMISSION_DENIED -
+ * if the user is not authorized to read from the project, or from any of the
+ * images - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
+ * step does not exist, or if any of the images do not exist
+ * (thumbnails.listProjectsHistoriesExecutionsStepsThumbnails)
+ *
+ * @param string $projectId A Project id.
+ *
+ * Required.
+ * @param string $historyId A History id.
+ *
+ * Required.
+ * @param string $executionId An Execution id.
+ *
+ * Required.
+ * @param string $stepId A Step id.
+ *
+ * Required.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The maximum number of thumbnails to fetch.
+ *
+ * Default value: 50. The server will use this default if the field is not set
+ * or has a value of 0.
+ *
+ * Optional.
+ * @opt_param string pageToken A continuation token to resume the query at the
+ * next item.
+ *
+ * Optional.
+ * @return Google_Service_ToolResults_ListStepThumbnailsResponse
+ */
+ public function listProjectsHistoriesExecutionsStepsThumbnails($projectId, $historyId, $executionId, $stepId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'historyId' => $historyId, 'executionId' => $executionId, 'stepId' => $stepId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ToolResults_ListStepThumbnailsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SkippedDetail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SkippedDetail.php
new file mode 100644
index 00000000..eceaab36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SkippedDetail.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_SkippedDetail extends Google_Model
+{
+ public $incompatibleAppVersion;
+ public $incompatibleArchitecture;
+ public $incompatibleDevice;
+
+ public function setIncompatibleAppVersion($incompatibleAppVersion)
+ {
+ $this->incompatibleAppVersion = $incompatibleAppVersion;
+ }
+ public function getIncompatibleAppVersion()
+ {
+ return $this->incompatibleAppVersion;
+ }
+ public function setIncompatibleArchitecture($incompatibleArchitecture)
+ {
+ $this->incompatibleArchitecture = $incompatibleArchitecture;
+ }
+ public function getIncompatibleArchitecture()
+ {
+ return $this->incompatibleArchitecture;
+ }
+ public function setIncompatibleDevice($incompatibleDevice)
+ {
+ $this->incompatibleDevice = $incompatibleDevice;
+ }
+ public function getIncompatibleDevice()
+ {
+ return $this->incompatibleDevice;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php
new file mode 100644
index 00000000..7a86b325
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StackTrace.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_StackTrace extends Google_Model
+{
+ public $exception;
+
+ public function setException($exception)
+ {
+ $this->exception = $exception;
+ }
+ public function getException()
+ {
+ return $this->exception;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Status.php
new file mode 100644
index 00000000..679c1001
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Status.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ protected $detailsType = 'Google_Service_ToolResults_Any';
+ protected $detailsDataType = 'array';
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Step.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Step.php
new file mode 100644
index 00000000..34cf165b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Step.php
@@ -0,0 +1,157 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Step extends Google_Collection
+{
+ protected $collection_key = 'labels';
+ protected $completionTimeType = 'Google_Service_ToolResults_Timestamp';
+ protected $completionTimeDataType = '';
+ protected $creationTimeType = 'Google_Service_ToolResults_Timestamp';
+ protected $creationTimeDataType = '';
+ public $description;
+ protected $deviceUsageDurationType = 'Google_Service_ToolResults_Duration';
+ protected $deviceUsageDurationDataType = '';
+ protected $dimensionValueType = 'Google_Service_ToolResults_StepDimensionValueEntry';
+ protected $dimensionValueDataType = 'array';
+ public $hasImages;
+ protected $labelsType = 'Google_Service_ToolResults_StepLabelsEntry';
+ protected $labelsDataType = 'array';
+ public $name;
+ protected $outcomeType = 'Google_Service_ToolResults_Outcome';
+ protected $outcomeDataType = '';
+ protected $runDurationType = 'Google_Service_ToolResults_Duration';
+ protected $runDurationDataType = '';
+ public $state;
+ public $stepId;
+ protected $testExecutionStepType = 'Google_Service_ToolResults_TestExecutionStep';
+ protected $testExecutionStepDataType = '';
+ protected $toolExecutionStepType = 'Google_Service_ToolResults_ToolExecutionStep';
+ protected $toolExecutionStepDataType = '';
+
+ public function setCompletionTime(Google_Service_ToolResults_Timestamp $completionTime)
+ {
+ $this->completionTime = $completionTime;
+ }
+ public function getCompletionTime()
+ {
+ return $this->completionTime;
+ }
+ public function setCreationTime(Google_Service_ToolResults_Timestamp $creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setDeviceUsageDuration(Google_Service_ToolResults_Duration $deviceUsageDuration)
+ {
+ $this->deviceUsageDuration = $deviceUsageDuration;
+ }
+ public function getDeviceUsageDuration()
+ {
+ return $this->deviceUsageDuration;
+ }
+ public function setDimensionValue($dimensionValue)
+ {
+ $this->dimensionValue = $dimensionValue;
+ }
+ public function getDimensionValue()
+ {
+ return $this->dimensionValue;
+ }
+ public function setHasImages($hasImages)
+ {
+ $this->hasImages = $hasImages;
+ }
+ public function getHasImages()
+ {
+ return $this->hasImages;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOutcome(Google_Service_ToolResults_Outcome $outcome)
+ {
+ $this->outcome = $outcome;
+ }
+ public function getOutcome()
+ {
+ return $this->outcome;
+ }
+ public function setRunDuration(Google_Service_ToolResults_Duration $runDuration)
+ {
+ $this->runDuration = $runDuration;
+ }
+ public function getRunDuration()
+ {
+ return $this->runDuration;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setStepId($stepId)
+ {
+ $this->stepId = $stepId;
+ }
+ public function getStepId()
+ {
+ return $this->stepId;
+ }
+ public function setTestExecutionStep(Google_Service_ToolResults_TestExecutionStep $testExecutionStep)
+ {
+ $this->testExecutionStep = $testExecutionStep;
+ }
+ public function getTestExecutionStep()
+ {
+ return $this->testExecutionStep;
+ }
+ public function setToolExecutionStep(Google_Service_ToolResults_ToolExecutionStep $toolExecutionStep)
+ {
+ $this->toolExecutionStep = $toolExecutionStep;
+ }
+ public function getToolExecutionStep()
+ {
+ return $this->toolExecutionStep;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepDimensionValueEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepDimensionValueEntry.php
new file mode 100644
index 00000000..ea9eaafa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepDimensionValueEntry.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_StepDimensionValueEntry extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepLabelsEntry.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepLabelsEntry.php
new file mode 100644
index 00000000..465e82de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/StepLabelsEntry.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_StepLabelsEntry extends Google_Model
+{
+ public $key;
+ public $value;
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SuccessDetail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SuccessDetail.php
new file mode 100644
index 00000000..40ecfdec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/SuccessDetail.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_SuccessDetail extends Google_Model
+{
+ public $otherNativeCrash;
+
+ public function setOtherNativeCrash($otherNativeCrash)
+ {
+ $this->otherNativeCrash = $otherNativeCrash;
+ }
+ public function getOtherNativeCrash()
+ {
+ return $this->otherNativeCrash;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestCaseReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestCaseReference.php
new file mode 100644
index 00000000..09a02a5a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestCaseReference.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_TestCaseReference extends Google_Model
+{
+ public $className;
+ public $name;
+ public $testSuiteName;
+
+ public function setClassName($className)
+ {
+ $this->className = $className;
+ }
+ public function getClassName()
+ {
+ return $this->className;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setTestSuiteName($testSuiteName)
+ {
+ $this->testSuiteName = $testSuiteName;
+ }
+ public function getTestSuiteName()
+ {
+ return $this->testSuiteName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestExecutionStep.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestExecutionStep.php
new file mode 100644
index 00000000..905c89ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestExecutionStep.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_TestExecutionStep extends Google_Collection
+{
+ protected $collection_key = 'testSuiteOverviews';
+ protected $testIssuesType = 'Google_Service_ToolResults_TestIssue';
+ protected $testIssuesDataType = 'array';
+ protected $testSuiteOverviewsType = 'Google_Service_ToolResults_TestSuiteOverview';
+ protected $testSuiteOverviewsDataType = 'array';
+ protected $testTimingType = 'Google_Service_ToolResults_TestTiming';
+ protected $testTimingDataType = '';
+ protected $toolExecutionType = 'Google_Service_ToolResults_ToolExecution';
+ protected $toolExecutionDataType = '';
+
+ public function setTestIssues($testIssues)
+ {
+ $this->testIssues = $testIssues;
+ }
+ public function getTestIssues()
+ {
+ return $this->testIssues;
+ }
+ public function setTestSuiteOverviews($testSuiteOverviews)
+ {
+ $this->testSuiteOverviews = $testSuiteOverviews;
+ }
+ public function getTestSuiteOverviews()
+ {
+ return $this->testSuiteOverviews;
+ }
+ public function setTestTiming(Google_Service_ToolResults_TestTiming $testTiming)
+ {
+ $this->testTiming = $testTiming;
+ }
+ public function getTestTiming()
+ {
+ return $this->testTiming;
+ }
+ public function setToolExecution(Google_Service_ToolResults_ToolExecution $toolExecution)
+ {
+ $this->toolExecution = $toolExecution;
+ }
+ public function getToolExecution()
+ {
+ return $this->toolExecution;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php
new file mode 100644
index 00000000..249b1401
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestIssue.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_TestIssue extends Google_Model
+{
+ public $errorMessage;
+ protected $stackTraceType = 'Google_Service_ToolResults_StackTrace';
+ protected $stackTraceDataType = '';
+
+ public function setErrorMessage($errorMessage)
+ {
+ $this->errorMessage = $errorMessage;
+ }
+ public function getErrorMessage()
+ {
+ return $this->errorMessage;
+ }
+ public function setStackTrace(Google_Service_ToolResults_StackTrace $stackTrace)
+ {
+ $this->stackTrace = $stackTrace;
+ }
+ public function getStackTrace()
+ {
+ return $this->stackTrace;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestSuiteOverview.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestSuiteOverview.php
new file mode 100644
index 00000000..1d414d48
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestSuiteOverview.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_TestSuiteOverview extends Google_Model
+{
+ public $errorCount;
+ public $failureCount;
+ public $name;
+ public $skippedCount;
+ public $totalCount;
+ protected $xmlSourceType = 'Google_Service_ToolResults_FileReference';
+ protected $xmlSourceDataType = '';
+
+ public function setErrorCount($errorCount)
+ {
+ $this->errorCount = $errorCount;
+ }
+ public function getErrorCount()
+ {
+ return $this->errorCount;
+ }
+ public function setFailureCount($failureCount)
+ {
+ $this->failureCount = $failureCount;
+ }
+ public function getFailureCount()
+ {
+ return $this->failureCount;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSkippedCount($skippedCount)
+ {
+ $this->skippedCount = $skippedCount;
+ }
+ public function getSkippedCount()
+ {
+ return $this->skippedCount;
+ }
+ public function setTotalCount($totalCount)
+ {
+ $this->totalCount = $totalCount;
+ }
+ public function getTotalCount()
+ {
+ return $this->totalCount;
+ }
+ public function setXmlSource(Google_Service_ToolResults_FileReference $xmlSource)
+ {
+ $this->xmlSource = $xmlSource;
+ }
+ public function getXmlSource()
+ {
+ return $this->xmlSource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestTiming.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestTiming.php
new file mode 100644
index 00000000..c423ad0b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/TestTiming.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_TestTiming extends Google_Model
+{
+ protected $testProcessDurationType = 'Google_Service_ToolResults_Duration';
+ protected $testProcessDurationDataType = '';
+
+ public function setTestProcessDuration(Google_Service_ToolResults_Duration $testProcessDuration)
+ {
+ $this->testProcessDuration = $testProcessDuration;
+ }
+ public function getTestProcessDuration()
+ {
+ return $this->testProcessDuration;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Thumbnail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Thumbnail.php
new file mode 100644
index 00000000..d25ce8a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Thumbnail.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Thumbnail extends Google_Model
+{
+ public $contentType;
+ public $data;
+ public $heightPx;
+ public $widthPx;
+
+ public function setContentType($contentType)
+ {
+ $this->contentType = $contentType;
+ }
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setHeightPx($heightPx)
+ {
+ $this->heightPx = $heightPx;
+ }
+ public function getHeightPx()
+ {
+ return $this->heightPx;
+ }
+ public function setWidthPx($widthPx)
+ {
+ $this->widthPx = $widthPx;
+ }
+ public function getWidthPx()
+ {
+ return $this->widthPx;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Timestamp.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Timestamp.php
new file mode 100644
index 00000000..4e329bfe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/Timestamp.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_Timestamp extends Google_Model
+{
+ public $nanos;
+ public $seconds;
+
+ public function setNanos($nanos)
+ {
+ $this->nanos = $nanos;
+ }
+ public function getNanos()
+ {
+ return $this->nanos;
+ }
+ public function setSeconds($seconds)
+ {
+ $this->seconds = $seconds;
+ }
+ public function getSeconds()
+ {
+ return $this->seconds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecution.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecution.php
new file mode 100644
index 00000000..f462f129
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecution.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ToolExecution extends Google_Collection
+{
+ protected $collection_key = 'toolOutputs';
+ public $commandLineArguments;
+ protected $exitCodeType = 'Google_Service_ToolResults_ToolExitCode';
+ protected $exitCodeDataType = '';
+ protected $toolLogsType = 'Google_Service_ToolResults_FileReference';
+ protected $toolLogsDataType = 'array';
+ protected $toolOutputsType = 'Google_Service_ToolResults_ToolOutputReference';
+ protected $toolOutputsDataType = 'array';
+
+ public function setCommandLineArguments($commandLineArguments)
+ {
+ $this->commandLineArguments = $commandLineArguments;
+ }
+ public function getCommandLineArguments()
+ {
+ return $this->commandLineArguments;
+ }
+ public function setExitCode(Google_Service_ToolResults_ToolExitCode $exitCode)
+ {
+ $this->exitCode = $exitCode;
+ }
+ public function getExitCode()
+ {
+ return $this->exitCode;
+ }
+ public function setToolLogs($toolLogs)
+ {
+ $this->toolLogs = $toolLogs;
+ }
+ public function getToolLogs()
+ {
+ return $this->toolLogs;
+ }
+ public function setToolOutputs($toolOutputs)
+ {
+ $this->toolOutputs = $toolOutputs;
+ }
+ public function getToolOutputs()
+ {
+ return $this->toolOutputs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecutionStep.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecutionStep.php
new file mode 100644
index 00000000..32a0e013
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExecutionStep.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ToolExecutionStep extends Google_Model
+{
+ protected $toolExecutionType = 'Google_Service_ToolResults_ToolExecution';
+ protected $toolExecutionDataType = '';
+
+ public function setToolExecution(Google_Service_ToolResults_ToolExecution $toolExecution)
+ {
+ $this->toolExecution = $toolExecution;
+ }
+ public function getToolExecution()
+ {
+ return $this->toolExecution;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExitCode.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExitCode.php
new file mode 100644
index 00000000..8d25d55e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolExitCode.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ToolExitCode extends Google_Model
+{
+ public $number;
+
+ public function setNumber($number)
+ {
+ $this->number = $number;
+ }
+ public function getNumber()
+ {
+ return $this->number;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolOutputReference.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolOutputReference.php
new file mode 100644
index 00000000..4d2f255d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/ToolResults/ToolOutputReference.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_ToolResults_ToolOutputReference extends Google_Model
+{
+ protected $creationTimeType = 'Google_Service_ToolResults_Timestamp';
+ protected $creationTimeDataType = '';
+ protected $outputType = 'Google_Service_ToolResults_FileReference';
+ protected $outputDataType = '';
+ protected $testCaseType = 'Google_Service_ToolResults_TestCaseReference';
+ protected $testCaseDataType = '';
+
+ public function setCreationTime(Google_Service_ToolResults_Timestamp $creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setOutput(Google_Service_ToolResults_FileReference $output)
+ {
+ $this->output = $output;
+ }
+ public function getOutput()
+ {
+ return $this->output;
+ }
+ public function setTestCase(Google_Service_ToolResults_TestCaseReference $testCase)
+ {
+ $this->testCase = $testCase;
+ }
+ public function getTestCase()
+ {
+ return $this->testCase;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing.php
new file mode 100644
index 00000000..75dc0e22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing.php
@@ -0,0 +1,137 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Tracing (v1).
+ *
+ * <p>
+ * Send and retrieve trace data from Google Stackdriver Trace.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/trace" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Tracing extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /** Write Trace data for a project or application. */
+ const TRACE_APPEND =
+ "https://www.googleapis.com/auth/trace.append";
+ /** Read Trace data for a project or application. */
+ const TRACE_READONLY =
+ "https://www.googleapis.com/auth/trace.readonly";
+
+ public $projects_traces;
+
+ /**
+ * Constructs the internal representation of the Tracing service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://tracing.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'tracing';
+
+ $this->projects_traces = new Google_Service_Tracing_Resource_ProjectsTraces(
+ $this,
+ $this->serviceName,
+ 'traces',
+ array(
+ 'methods' => array(
+ 'batchUpdate' => array(
+ 'path' => 'v1/{+parent}/traces:batchUpdate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/{+name}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/{+parent}/traces',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'parent' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'endTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'orderBy' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'listSpans' => array(
+ 'path' => 'v1/{+name}:listSpans',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'name' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Annotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Annotation.php
new file mode 100644
index 00000000..7f13a0fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Annotation.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_Annotation extends Google_Model
+{
+ protected $attributesType = 'Google_Service_Tracing_AttributeValue';
+ protected $attributesDataType = 'map';
+ public $description;
+
+ public function setAttributes($attributes)
+ {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/AttributeValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/AttributeValue.php
new file mode 100644
index 00000000..4f106b2a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/AttributeValue.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_AttributeValue extends Google_Model
+{
+ public $boolValue;
+ public $intValue;
+ public $stringValue;
+
+ public function setBoolValue($boolValue)
+ {
+ $this->boolValue = $boolValue;
+ }
+ public function getBoolValue()
+ {
+ return $this->boolValue;
+ }
+ public function setIntValue($intValue)
+ {
+ $this->intValue = $intValue;
+ }
+ public function getIntValue()
+ {
+ return $this->intValue;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/BatchUpdateSpansRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/BatchUpdateSpansRequest.php
new file mode 100644
index 00000000..35b349f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/BatchUpdateSpansRequest.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_BatchUpdateSpansRequest extends Google_Model
+{
+ protected $spanUpdatesType = 'Google_Service_Tracing_SpanUpdates';
+ protected $spanUpdatesDataType = 'map';
+
+ public function setSpanUpdates($spanUpdates)
+ {
+ $this->spanUpdates = $spanUpdates;
+ }
+ public function getSpanUpdates()
+ {
+ return $this->spanUpdates;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Link.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Link.php
new file mode 100644
index 00000000..0eaad74a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Link.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_Link extends Google_Model
+{
+ public $spanId;
+ public $traceId;
+ public $type;
+
+ public function setSpanId($spanId)
+ {
+ $this->spanId = $spanId;
+ }
+ public function getSpanId()
+ {
+ return $this->spanId;
+ }
+ public function setTraceId($traceId)
+ {
+ $this->traceId = $traceId;
+ }
+ public function getTraceId()
+ {
+ return $this->traceId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListSpansResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListSpansResponse.php
new file mode 100644
index 00000000..70903e55
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListSpansResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_ListSpansResponse extends Google_Collection
+{
+ protected $collection_key = 'spans';
+ public $nextPageToken;
+ protected $spansType = 'Google_Service_Tracing_Span';
+ protected $spansDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setSpans($spans)
+ {
+ $this->spans = $spans;
+ }
+ public function getSpans()
+ {
+ return $this->spans;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListTracesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListTracesResponse.php
new file mode 100644
index 00000000..82b58491
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/ListTracesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_ListTracesResponse extends Google_Collection
+{
+ protected $collection_key = 'traces';
+ public $nextPageToken;
+ protected $tracesType = 'Google_Service_Tracing_Trace';
+ protected $tracesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTraces($traces)
+ {
+ $this->traces = $traces;
+ }
+ public function getTraces()
+ {
+ return $this->traces;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Module.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Module.php
new file mode 100644
index 00000000..88d87b88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Module.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_Module extends Google_Model
+{
+ public $buildId;
+ public $module;
+
+ public function setBuildId($buildId)
+ {
+ $this->buildId = $buildId;
+ }
+ public function getBuildId()
+ {
+ return $this->buildId;
+ }
+ public function setModule($module)
+ {
+ $this->module = $module;
+ }
+ public function getModule()
+ {
+ return $this->module;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/NetworkEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/NetworkEvent.php
new file mode 100644
index 00000000..4c71f090
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/NetworkEvent.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_NetworkEvent extends Google_Model
+{
+ public $kernelTime;
+ public $messageId;
+ public $messageSize;
+ public $type;
+
+ public function setKernelTime($kernelTime)
+ {
+ $this->kernelTime = $kernelTime;
+ }
+ public function getKernelTime()
+ {
+ return $this->kernelTime;
+ }
+ public function setMessageId($messageId)
+ {
+ $this->messageId = $messageId;
+ }
+ public function getMessageId()
+ {
+ return $this->messageId;
+ }
+ public function setMessageSize($messageSize)
+ {
+ $this->messageSize = $messageSize;
+ }
+ public function getMessageSize()
+ {
+ return $this->messageSize;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/Projects.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/Projects.php
new file mode 100644
index 00000000..40f60eaa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/Projects.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tracingService = new Google_Service_Tracing(...);
+ * $projects = $tracingService->projects;
+ * </code>
+ */
+class Google_Service_Tracing_Resource_Projects extends Google_Service_Resource
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/ProjectsTraces.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/ProjectsTraces.php
new file mode 100644
index 00000000..b92f2420
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Resource/ProjectsTraces.php
@@ -0,0 +1,116 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "traces" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $tracingService = new Google_Service_Tracing(...);
+ * $traces = $tracingService->traces;
+ * </code>
+ */
+class Google_Service_Tracing_Resource_ProjectsTraces extends Google_Service_Resource
+{
+ /**
+ * Sends new spans to Stackdriver Trace or updates existing spans. If the name
+ * of a trace that you send matches that of an existing trace, any fields in the
+ * existing trace and its spans are overwritten by the provided values, and any
+ * new fields provided are merged with the existing trace data. If the name does
+ * not match, a new trace is created with given set of spans.
+ * (traces.batchUpdate)
+ *
+ * @param string $parent ID of the Cloud project where the trace data is stored.
+ * @param Google_Service_Tracing_BatchUpdateSpansRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tracing_TracingEmpty
+ */
+ public function batchUpdate($parent, Google_Service_Tracing_BatchUpdateSpansRequest $postBody, $optParams = array())
+ {
+ $params = array('parent' => $parent, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('batchUpdate', array($params), "Google_Service_Tracing_TracingEmpty");
+ }
+ /**
+ * Returns a specific trace. (traces.get)
+ *
+ * @param string $name ID of the trace which is "projects//traces/".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tracing_Trace
+ */
+ public function get($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Tracing_Trace");
+ }
+ /**
+ * Returns of a list of traces that match the specified filter conditions.
+ * (traces.listProjectsTraces)
+ *
+ * @param string $parent ID of the Cloud project where the trace data is stored.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter An optional filter for the request. Example:
+ * "version_label_key:a some_label:some_label_key" returns traces from version a
+ * and has some_label with some_label_key.
+ * @opt_param string endTime End of the time interval (inclusive) during which
+ * the trace data was collected from the application.
+ * @opt_param string pageToken Token identifying the page of results to return.
+ * If provided, use the value of the `next_page_token` field from a previous
+ * request. Optional.
+ * @opt_param string startTime Start of the time interval (inclusive) during
+ * which the trace data was collected from the application.
+ * @opt_param int pageSize Maximum number of traces to return. If not specified
+ * or <= 0, the implementation selects a reasonable value. The implementation
+ * may return fewer traces than the requested page size. Optional.
+ * @opt_param string orderBy Field used to sort the returned traces. Optional.
+ * Can be one of the following:
+ *
+ * * `trace_id` * `name` (`name` field of root span in the trace) *
+ * `duration` (difference between `end_time` and `start_time` fields of the
+ * root span) * `start` (`start_time` field of the root span)
+ *
+ * Descending order can be specified by appending `desc` to the sort field (for
+ * example, `name desc`).
+ *
+ * Only one sort field is permitted.
+ * @return Google_Service_Tracing_ListTracesResponse
+ */
+ public function listProjectsTraces($parent, $optParams = array())
+ {
+ $params = array('parent' => $parent);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Tracing_ListTracesResponse");
+ }
+ /**
+ * Returns a list of spans within a trace. (traces.listSpans)
+ *
+ * @param string $name ID of the span set where is "projects//traces/".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Token identifying the page of results to return.
+ * If provided, use the value of the `page_token` field from a previous request.
+ * Optional.
+ * @return Google_Service_Tracing_ListSpansResponse
+ */
+ public function listSpans($name, $optParams = array())
+ {
+ $params = array('name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('listSpans', array($params), "Google_Service_Tracing_ListSpansResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Span.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Span.php
new file mode 100644
index 00000000..f10fb7ce
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Span.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_Span extends Google_Collection
+{
+ protected $collection_key = 'timeEvents';
+ protected $attributesType = 'Google_Service_Tracing_AttributeValue';
+ protected $attributesDataType = 'map';
+ public $hasRemoteParent;
+ public $id;
+ protected $linksType = 'Google_Service_Tracing_Link';
+ protected $linksDataType = 'array';
+ public $localEndTime;
+ public $localStartTime;
+ public $name;
+ public $parentId;
+ protected $stackTraceType = 'Google_Service_Tracing_StackTrace';
+ protected $stackTraceDataType = '';
+ protected $statusType = 'Google_Service_Tracing_Status';
+ protected $statusDataType = '';
+ protected $timeEventsType = 'Google_Service_Tracing_TimeEvent';
+ protected $timeEventsDataType = 'array';
+
+ public function setAttributes($attributes)
+ {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+ public function setHasRemoteParent($hasRemoteParent)
+ {
+ $this->hasRemoteParent = $hasRemoteParent;
+ }
+ public function getHasRemoteParent()
+ {
+ return $this->hasRemoteParent;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLinks($links)
+ {
+ $this->links = $links;
+ }
+ public function getLinks()
+ {
+ return $this->links;
+ }
+ public function setLocalEndTime($localEndTime)
+ {
+ $this->localEndTime = $localEndTime;
+ }
+ public function getLocalEndTime()
+ {
+ return $this->localEndTime;
+ }
+ public function setLocalStartTime($localStartTime)
+ {
+ $this->localStartTime = $localStartTime;
+ }
+ public function getLocalStartTime()
+ {
+ return $this->localStartTime;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentId($parentId)
+ {
+ $this->parentId = $parentId;
+ }
+ public function getParentId()
+ {
+ return $this->parentId;
+ }
+ public function setStackTrace(Google_Service_Tracing_StackTrace $stackTrace)
+ {
+ $this->stackTrace = $stackTrace;
+ }
+ public function getStackTrace()
+ {
+ return $this->stackTrace;
+ }
+ public function setStatus(Google_Service_Tracing_Status $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTimeEvents($timeEvents)
+ {
+ $this->timeEvents = $timeEvents;
+ }
+ public function getTimeEvents()
+ {
+ return $this->timeEvents;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/SpanUpdates.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/SpanUpdates.php
new file mode 100644
index 00000000..189adbca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/SpanUpdates.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_SpanUpdates extends Google_Collection
+{
+ protected $collection_key = 'spans';
+ protected $spansType = 'Google_Service_Tracing_Span';
+ protected $spansDataType = 'array';
+
+ public function setSpans($spans)
+ {
+ $this->spans = $spans;
+ }
+ public function getSpans()
+ {
+ return $this->spans;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackFrame.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackFrame.php
new file mode 100644
index 00000000..c415bd26
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackFrame.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_StackFrame extends Google_Model
+{
+ public $columnNumber;
+ public $fileName;
+ public $functionName;
+ public $lineNumber;
+ protected $loadModuleType = 'Google_Service_Tracing_Module';
+ protected $loadModuleDataType = '';
+ public $originalFunctionName;
+ public $sourceVersion;
+
+ public function setColumnNumber($columnNumber)
+ {
+ $this->columnNumber = $columnNumber;
+ }
+ public function getColumnNumber()
+ {
+ return $this->columnNumber;
+ }
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+ public function setFunctionName($functionName)
+ {
+ $this->functionName = $functionName;
+ }
+ public function getFunctionName()
+ {
+ return $this->functionName;
+ }
+ public function setLineNumber($lineNumber)
+ {
+ $this->lineNumber = $lineNumber;
+ }
+ public function getLineNumber()
+ {
+ return $this->lineNumber;
+ }
+ public function setLoadModule(Google_Service_Tracing_Module $loadModule)
+ {
+ $this->loadModule = $loadModule;
+ }
+ public function getLoadModule()
+ {
+ return $this->loadModule;
+ }
+ public function setOriginalFunctionName($originalFunctionName)
+ {
+ $this->originalFunctionName = $originalFunctionName;
+ }
+ public function getOriginalFunctionName()
+ {
+ return $this->originalFunctionName;
+ }
+ public function setSourceVersion($sourceVersion)
+ {
+ $this->sourceVersion = $sourceVersion;
+ }
+ public function getSourceVersion()
+ {
+ return $this->sourceVersion;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackTrace.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackTrace.php
new file mode 100644
index 00000000..83e70068
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/StackTrace.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_StackTrace extends Google_Collection
+{
+ protected $collection_key = 'stackFrame';
+ protected $stackFrameType = 'Google_Service_Tracing_StackFrame';
+ protected $stackFrameDataType = 'array';
+ public $stackTraceHashId;
+
+ public function setStackFrame($stackFrame)
+ {
+ $this->stackFrame = $stackFrame;
+ }
+ public function getStackFrame()
+ {
+ return $this->stackFrame;
+ }
+ public function setStackTraceHashId($stackTraceHashId)
+ {
+ $this->stackTraceHashId = $stackTraceHashId;
+ }
+ public function getStackTraceHashId()
+ {
+ return $this->stackTraceHashId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Status.php
new file mode 100644
index 00000000..37d913d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TimeEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TimeEvent.php
new file mode 100644
index 00000000..21c9b2c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TimeEvent.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_TimeEvent extends Google_Model
+{
+ protected $annotationType = 'Google_Service_Tracing_Annotation';
+ protected $annotationDataType = '';
+ public $localTime;
+ protected $networkEventType = 'Google_Service_Tracing_NetworkEvent';
+ protected $networkEventDataType = '';
+
+ public function setAnnotation(Google_Service_Tracing_Annotation $annotation)
+ {
+ $this->annotation = $annotation;
+ }
+ public function getAnnotation()
+ {
+ return $this->annotation;
+ }
+ public function setLocalTime($localTime)
+ {
+ $this->localTime = $localTime;
+ }
+ public function getLocalTime()
+ {
+ return $this->localTime;
+ }
+ public function setNetworkEvent(Google_Service_Tracing_NetworkEvent $networkEvent)
+ {
+ $this->networkEvent = $networkEvent;
+ }
+ public function getNetworkEvent()
+ {
+ return $this->networkEvent;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Trace.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Trace.php
new file mode 100644
index 00000000..732912c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/Trace.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_Trace extends Google_Model
+{
+ public $name;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TracingEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TracingEmpty.php
new file mode 100644
index 00000000..21a5e473
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Tracing/TracingEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Tracing_TracingEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate.php
new file mode 100644
index 00000000..aeca74a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Translate (v2).
+ *
+ * <p>
+ * Translates text from one language to another.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/translate/v2/using_rest" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Translate extends Google_Service
+{
+
+
+ public $detections;
+ public $languages;
+ public $translations;
+
+ /**
+ * Constructs the internal representation of the Translate service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'language/translate/';
+ $this->version = 'v2';
+ $this->serviceName = 'translate';
+
+ $this->detections = new Google_Service_Translate_Resource_Detections(
+ $this,
+ $this->serviceName,
+ 'detections',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/detect',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->languages = new Google_Service_Translate_Resource_Languages(
+ $this,
+ $this->serviceName,
+ 'languages',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2/languages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'target' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->translations = new Google_Service_Translate_Resource_Translations(
+ $this,
+ $this->serviceName,
+ 'translations',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v2',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ 'required' => true,
+ ),
+ 'target' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'cid' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'repeated' => true,
+ ),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'source' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsListResponse.php
new file mode 100644
index 00000000..c336dd68
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Translate_DetectionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'detections';
+ protected $detectionsType = 'Google_Service_Translate_DetectionsResourceItems';
+ protected $detectionsDataType = 'array';
+
+ public function setDetections($detections)
+ {
+ $this->detections = $detections;
+ }
+ public function getDetections()
+ {
+ return $this->detections;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsResourceItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsResourceItems.php
new file mode 100644
index 00000000..c36f65d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/DetectionsResourceItems.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Translate_DetectionsResourceItems extends Google_Model
+{
+ public $confidence;
+ public $isReliable;
+ public $language;
+
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setIsReliable($isReliable)
+ {
+ $this->isReliable = $isReliable;
+ }
+ public function getIsReliable()
+ {
+ return $this->isReliable;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesListResponse.php
new file mode 100644
index 00000000..d884671a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Translate_LanguagesListResponse extends Google_Collection
+{
+ protected $collection_key = 'languages';
+ protected $languagesType = 'Google_Service_Translate_LanguagesResource';
+ protected $languagesDataType = 'array';
+
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesResource.php
new file mode 100644
index 00000000..1b711286
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/LanguagesResource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Translate_LanguagesResource extends Google_Model
+{
+ public $language;
+ public $name;
+
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Detections.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Detections.php
new file mode 100644
index 00000000..9c534293
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Detections.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "detections" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $translateService = new Google_Service_Translate(...);
+ * $detections = $translateService->detections;
+ * </code>
+ */
+class Google_Service_Translate_Resource_Detections extends Google_Service_Resource
+{
+ /**
+ * Detect the language of text. (detections.listDetections)
+ *
+ * @param string|array $q The text to detect
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Translate_DetectionsListResponse
+ */
+ public function listDetections($q, $optParams = array())
+ {
+ $params = array('q' => $q);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Translate_DetectionsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Languages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Languages.php
new file mode 100644
index 00000000..f1ee702a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Languages.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "languages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $translateService = new Google_Service_Translate(...);
+ * $languages = $translateService->languages;
+ * </code>
+ */
+class Google_Service_Translate_Resource_Languages extends Google_Service_Resource
+{
+ /**
+ * List the source/target languages supported by the API
+ * (languages.listLanguages)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string target the language and collation in which the localized
+ * results should be returned
+ * @return Google_Service_Translate_LanguagesListResponse
+ */
+ public function listLanguages($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Translate_LanguagesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Translations.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Translations.php
new file mode 100644
index 00000000..771d576e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/Resource/Translations.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "translations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $translateService = new Google_Service_Translate(...);
+ * $translations = $translateService->translations;
+ * </code>
+ */
+class Google_Service_Translate_Resource_Translations extends Google_Service_Resource
+{
+ /**
+ * Returns text translations from one language to another.
+ * (translations.listTranslations)
+ *
+ * @param string|array $q The text to translate
+ * @param string $target The target language into which the text should be
+ * translated
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string cid The customization id for translate
+ * @opt_param string format The format of the text
+ * @opt_param string source The source language of the text
+ * @return Google_Service_Translate_TranslationsListResponse
+ */
+ public function listTranslations($q, $target, $optParams = array())
+ {
+ $params = array('q' => $q, 'target' => $target);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Translate_TranslationsListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsListResponse.php
new file mode 100644
index 00000000..0a402cc3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Translate_TranslationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'translations';
+ protected $translationsType = 'Google_Service_Translate_TranslationsResource';
+ protected $translationsDataType = 'array';
+
+ public function setTranslations($translations)
+ {
+ $this->translations = $translations;
+ }
+ public function getTranslations()
+ {
+ return $this->translations;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsResource.php
new file mode 100644
index 00000000..f68731f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Translate/TranslationsResource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Translate_TranslationsResource extends Google_Model
+{
+ public $detectedSourceLanguage;
+ public $translatedText;
+
+ public function setDetectedSourceLanguage($detectedSourceLanguage)
+ {
+ $this->detectedSourceLanguage = $detectedSourceLanguage;
+ }
+ public function getDetectedSourceLanguage()
+ {
+ return $this->detectedSourceLanguage;
+ }
+ public function setTranslatedText($translatedText)
+ {
+ $this->translatedText = $translatedText;
+ }
+ public function getTranslatedText()
+ {
+ return $this->translatedText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener.php
new file mode 100644
index 00000000..9780c28d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Urlshortener (v1).
+ *
+ * <p>
+ * Lets you create, inspect, and manage goo.gl short URLs</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/url-shortener/v1/getting_started" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Urlshortener extends Google_Service
+{
+ /** Manage your goo.gl short URLs. */
+ const URLSHORTENER =
+ "https://www.googleapis.com/auth/urlshortener";
+
+ public $url;
+
+ /**
+ * Constructs the internal representation of the Urlshortener service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'urlshortener/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'urlshortener';
+
+ $this->url = new Google_Service_Urlshortener_Resource_Url(
+ $this,
+ $this->serviceName,
+ 'url',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'url',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'shortUrl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'url',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),'list' => array(
+ 'path' => 'url/history',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'projection' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'start-token' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSnapshot.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSnapshot.php
new file mode 100644
index 00000000..fcfa736c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSnapshot.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection
+{
+ protected $collection_key = 'referrers';
+ protected $browsersType = 'Google_Service_Urlshortener_StringCount';
+ protected $browsersDataType = 'array';
+ protected $countriesType = 'Google_Service_Urlshortener_StringCount';
+ protected $countriesDataType = 'array';
+ public $longUrlClicks;
+ protected $platformsType = 'Google_Service_Urlshortener_StringCount';
+ protected $platformsDataType = 'array';
+ protected $referrersType = 'Google_Service_Urlshortener_StringCount';
+ protected $referrersDataType = 'array';
+ public $shortUrlClicks;
+
+ public function setBrowsers($browsers)
+ {
+ $this->browsers = $browsers;
+ }
+ public function getBrowsers()
+ {
+ return $this->browsers;
+ }
+ public function setCountries($countries)
+ {
+ $this->countries = $countries;
+ }
+ public function getCountries()
+ {
+ return $this->countries;
+ }
+ public function setLongUrlClicks($longUrlClicks)
+ {
+ $this->longUrlClicks = $longUrlClicks;
+ }
+ public function getLongUrlClicks()
+ {
+ return $this->longUrlClicks;
+ }
+ public function setPlatforms($platforms)
+ {
+ $this->platforms = $platforms;
+ }
+ public function getPlatforms()
+ {
+ return $this->platforms;
+ }
+ public function setReferrers($referrers)
+ {
+ $this->referrers = $referrers;
+ }
+ public function getReferrers()
+ {
+ return $this->referrers;
+ }
+ public function setShortUrlClicks($shortUrlClicks)
+ {
+ $this->shortUrlClicks = $shortUrlClicks;
+ }
+ public function getShortUrlClicks()
+ {
+ return $this->shortUrlClicks;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSummary.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSummary.php
new file mode 100644
index 00000000..308ba121
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/AnalyticsSummary.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model
+{
+ protected $allTimeType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $allTimeDataType = '';
+ protected $dayType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $dayDataType = '';
+ protected $monthType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $monthDataType = '';
+ protected $twoHoursType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $twoHoursDataType = '';
+ protected $weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $weekDataType = '';
+
+ public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime)
+ {
+ $this->allTime = $allTime;
+ }
+ public function getAllTime()
+ {
+ return $this->allTime;
+ }
+ public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day)
+ {
+ $this->day = $day;
+ }
+ public function getDay()
+ {
+ return $this->day;
+ }
+ public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month)
+ {
+ $this->month = $month;
+ }
+ public function getMonth()
+ {
+ return $this->month;
+ }
+ public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHours)
+ {
+ $this->twoHours = $twoHours;
+ }
+ public function getTwoHours()
+ {
+ return $this->twoHours;
+ }
+ public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week)
+ {
+ $this->week = $week;
+ }
+ public function getWeek()
+ {
+ return $this->week;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Resource/Url.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Resource/Url.php
new file mode 100644
index 00000000..f016a7c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Resource/Url.php
@@ -0,0 +1,72 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "url" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $urlshortenerService = new Google_Service_Urlshortener(...);
+ * $url = $urlshortenerService->url;
+ * </code>
+ */
+class Google_Service_Urlshortener_Resource_Url extends Google_Service_Resource
+{
+ /**
+ * Expands a short URL or gets creation time and analytics. (url.get)
+ *
+ * @param string $shortUrl The short URL, including the protocol.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Additional information to return.
+ * @return Google_Service_Urlshortener_Url
+ */
+ public function get($shortUrl, $optParams = array())
+ {
+ $params = array('shortUrl' => $shortUrl);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Urlshortener_Url");
+ }
+ /**
+ * Creates a new short URL. (url.insert)
+ *
+ * @param Google_Service_Urlshortener_Url $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Urlshortener_Url
+ */
+ public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Urlshortener_Url");
+ }
+ /**
+ * Retrieves a list of URLs shortened by a user. (url.listUrl)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Additional information to return.
+ * @opt_param string start-token Token for requesting successive pages of
+ * results.
+ * @return Google_Service_Urlshortener_UrlHistory
+ */
+ public function listUrl($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Urlshortener_UrlHistory");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/StringCount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/StringCount.php
new file mode 100644
index 00000000..c6284d1b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/StringCount.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Urlshortener_StringCount extends Google_Model
+{
+ public $count;
+ public $id;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Url.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Url.php
new file mode 100644
index 00000000..c70d4972
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/Url.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Urlshortener_Url extends Google_Model
+{
+ protected $analyticsType = 'Google_Service_Urlshortener_AnalyticsSummary';
+ protected $analyticsDataType = '';
+ public $created;
+ public $id;
+ public $kind;
+ public $longUrl;
+ public $status;
+
+ public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics)
+ {
+ $this->analytics = $analytics;
+ }
+ public function getAnalytics()
+ {
+ return $this->analytics;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLongUrl($longUrl)
+ {
+ $this->longUrl = $longUrl;
+ }
+ public function getLongUrl()
+ {
+ return $this->longUrl;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/UrlHistory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/UrlHistory.php
new file mode 100644
index 00000000..e406d4a6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Urlshortener/UrlHistory.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Urlshortener_UrlHistory extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Urlshortener_Url';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems)
+ {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems()
+ {
+ return $this->totalItems;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision.php
new file mode 100644
index 00000000..23613136
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Vision (v1).
+ *
+ * <p>
+ * Integrates Google Vision features, including image labeling, face, logo, and
+ * landmark detection, optical character recognition (OCR), and detection of
+ * explicit content, into applications.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://cloud.google.com/vision/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Vision extends Google_Service
+{
+ /** View and manage your data across Google Cloud Platform services. */
+ const CLOUD_PLATFORM =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ public $images;
+
+ /**
+ * Constructs the internal representation of the Vision service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://vision.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'vision';
+
+ $this->images = new Google_Service_Vision_Resource_Images(
+ $this,
+ $this->serviceName,
+ 'images',
+ array(
+ 'methods' => array(
+ 'annotate' => array(
+ 'path' => 'v1/images:annotate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageRequest.php
new file mode 100644
index 00000000..06d8673a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageRequest.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_AnnotateImageRequest extends Google_Collection
+{
+ protected $collection_key = 'features';
+ protected $featuresType = 'Google_Service_Vision_Feature';
+ protected $featuresDataType = 'array';
+ protected $imageType = 'Google_Service_Vision_Image';
+ protected $imageDataType = '';
+ protected $imageContextType = 'Google_Service_Vision_ImageContext';
+ protected $imageContextDataType = '';
+
+ public function setFeatures($features)
+ {
+ $this->features = $features;
+ }
+ public function getFeatures()
+ {
+ return $this->features;
+ }
+ public function setImage(Google_Service_Vision_Image $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setImageContext(Google_Service_Vision_ImageContext $imageContext)
+ {
+ $this->imageContext = $imageContext;
+ }
+ public function getImageContext()
+ {
+ return $this->imageContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php
new file mode 100644
index 00000000..6c9aa54c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/AnnotateImageResponse.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_AnnotateImageResponse extends Google_Collection
+{
+ protected $collection_key = 'textAnnotations';
+ protected $cropHintsAnnotationType = 'Google_Service_Vision_CropHintsAnnotation';
+ protected $cropHintsAnnotationDataType = '';
+ protected $errorType = 'Google_Service_Vision_Status';
+ protected $errorDataType = '';
+ protected $faceAnnotationsType = 'Google_Service_Vision_FaceAnnotation';
+ protected $faceAnnotationsDataType = 'array';
+ protected $fullTextAnnotationType = 'Google_Service_Vision_TextAnnotation';
+ protected $fullTextAnnotationDataType = '';
+ protected $imagePropertiesAnnotationType = 'Google_Service_Vision_ImageProperties';
+ protected $imagePropertiesAnnotationDataType = '';
+ protected $labelAnnotationsType = 'Google_Service_Vision_EntityAnnotation';
+ protected $labelAnnotationsDataType = 'array';
+ protected $landmarkAnnotationsType = 'Google_Service_Vision_EntityAnnotation';
+ protected $landmarkAnnotationsDataType = 'array';
+ protected $logoAnnotationsType = 'Google_Service_Vision_EntityAnnotation';
+ protected $logoAnnotationsDataType = 'array';
+ protected $safeSearchAnnotationType = 'Google_Service_Vision_SafeSearchAnnotation';
+ protected $safeSearchAnnotationDataType = '';
+ protected $textAnnotationsType = 'Google_Service_Vision_EntityAnnotation';
+ protected $textAnnotationsDataType = 'array';
+ protected $webDetectionType = 'Google_Service_Vision_WebDetection';
+ protected $webDetectionDataType = '';
+
+ public function setCropHintsAnnotation(Google_Service_Vision_CropHintsAnnotation $cropHintsAnnotation)
+ {
+ $this->cropHintsAnnotation = $cropHintsAnnotation;
+ }
+ public function getCropHintsAnnotation()
+ {
+ return $this->cropHintsAnnotation;
+ }
+ public function setError(Google_Service_Vision_Status $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setFaceAnnotations($faceAnnotations)
+ {
+ $this->faceAnnotations = $faceAnnotations;
+ }
+ public function getFaceAnnotations()
+ {
+ return $this->faceAnnotations;
+ }
+ public function setFullTextAnnotation(Google_Service_Vision_TextAnnotation $fullTextAnnotation)
+ {
+ $this->fullTextAnnotation = $fullTextAnnotation;
+ }
+ public function getFullTextAnnotation()
+ {
+ return $this->fullTextAnnotation;
+ }
+ public function setImagePropertiesAnnotation(Google_Service_Vision_ImageProperties $imagePropertiesAnnotation)
+ {
+ $this->imagePropertiesAnnotation = $imagePropertiesAnnotation;
+ }
+ public function getImagePropertiesAnnotation()
+ {
+ return $this->imagePropertiesAnnotation;
+ }
+ public function setLabelAnnotations($labelAnnotations)
+ {
+ $this->labelAnnotations = $labelAnnotations;
+ }
+ public function getLabelAnnotations()
+ {
+ return $this->labelAnnotations;
+ }
+ public function setLandmarkAnnotations($landmarkAnnotations)
+ {
+ $this->landmarkAnnotations = $landmarkAnnotations;
+ }
+ public function getLandmarkAnnotations()
+ {
+ return $this->landmarkAnnotations;
+ }
+ public function setLogoAnnotations($logoAnnotations)
+ {
+ $this->logoAnnotations = $logoAnnotations;
+ }
+ public function getLogoAnnotations()
+ {
+ return $this->logoAnnotations;
+ }
+ public function setSafeSearchAnnotation(Google_Service_Vision_SafeSearchAnnotation $safeSearchAnnotation)
+ {
+ $this->safeSearchAnnotation = $safeSearchAnnotation;
+ }
+ public function getSafeSearchAnnotation()
+ {
+ return $this->safeSearchAnnotation;
+ }
+ public function setTextAnnotations($textAnnotations)
+ {
+ $this->textAnnotations = $textAnnotations;
+ }
+ public function getTextAnnotations()
+ {
+ return $this->textAnnotations;
+ }
+ public function setWebDetection(Google_Service_Vision_WebDetection $webDetection)
+ {
+ $this->webDetection = $webDetection;
+ }
+ public function getWebDetection()
+ {
+ return $this->webDetection;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesRequest.php
new file mode 100644
index 00000000..2ad78a61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesRequest.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_BatchAnnotateImagesRequest extends Google_Collection
+{
+ protected $collection_key = 'requests';
+ protected $requestsType = 'Google_Service_Vision_AnnotateImageRequest';
+ protected $requestsDataType = 'array';
+
+ public function setRequests($requests)
+ {
+ $this->requests = $requests;
+ }
+ public function getRequests()
+ {
+ return $this->requests;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesResponse.php
new file mode 100644
index 00000000..4a7f0222
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BatchAnnotateImagesResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_BatchAnnotateImagesResponse extends Google_Collection
+{
+ protected $collection_key = 'responses';
+ protected $responsesType = 'Google_Service_Vision_AnnotateImageResponse';
+ protected $responsesDataType = 'array';
+
+ public function setResponses($responses)
+ {
+ $this->responses = $responses;
+ }
+ public function getResponses()
+ {
+ return $this->responses;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Block.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Block.php
new file mode 100644
index 00000000..1935aac9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Block.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Block extends Google_Collection
+{
+ protected $collection_key = 'paragraphs';
+ public $blockType;
+ protected $boundingBoxType = 'Google_Service_Vision_BoundingPoly';
+ protected $boundingBoxDataType = '';
+ protected $paragraphsType = 'Google_Service_Vision_Paragraph';
+ protected $paragraphsDataType = 'array';
+ protected $propertyType = 'Google_Service_Vision_TextProperty';
+ protected $propertyDataType = '';
+
+ public function setBlockType($blockType)
+ {
+ $this->blockType = $blockType;
+ }
+ public function getBlockType()
+ {
+ return $this->blockType;
+ }
+ public function setBoundingBox(Google_Service_Vision_BoundingPoly $boundingBox)
+ {
+ $this->boundingBox = $boundingBox;
+ }
+ public function getBoundingBox()
+ {
+ return $this->boundingBox;
+ }
+ public function setParagraphs($paragraphs)
+ {
+ $this->paragraphs = $paragraphs;
+ }
+ public function getParagraphs()
+ {
+ return $this->paragraphs;
+ }
+ public function setProperty(Google_Service_Vision_TextProperty $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php
new file mode 100644
index 00000000..d987d617
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/BoundingPoly.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_BoundingPoly extends Google_Collection
+{
+ protected $collection_key = 'vertices';
+ protected $verticesType = 'Google_Service_Vision_Vertex';
+ protected $verticesDataType = 'array';
+
+ public function setVertices($vertices)
+ {
+ $this->vertices = $vertices;
+ }
+ public function getVertices()
+ {
+ return $this->vertices;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Color.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Color.php
new file mode 100644
index 00000000..b65813bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Color.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Color extends Google_Model
+{
+ public $alpha;
+ public $blue;
+ public $green;
+ public $red;
+
+ public function setAlpha($alpha)
+ {
+ $this->alpha = $alpha;
+ }
+ public function getAlpha()
+ {
+ return $this->alpha;
+ }
+ public function setBlue($blue)
+ {
+ $this->blue = $blue;
+ }
+ public function getBlue()
+ {
+ return $this->blue;
+ }
+ public function setGreen($green)
+ {
+ $this->green = $green;
+ }
+ public function getGreen()
+ {
+ return $this->green;
+ }
+ public function setRed($red)
+ {
+ $this->red = $red;
+ }
+ public function getRed()
+ {
+ return $this->red;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ColorInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ColorInfo.php
new file mode 100644
index 00000000..7add72d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ColorInfo.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_ColorInfo extends Google_Model
+{
+ protected $colorType = 'Google_Service_Vision_Color';
+ protected $colorDataType = '';
+ public $pixelFraction;
+ public $score;
+
+ public function setColor(Google_Service_Vision_Color $color)
+ {
+ $this->color = $color;
+ }
+ public function getColor()
+ {
+ return $this->color;
+ }
+ public function setPixelFraction($pixelFraction)
+ {
+ $this->pixelFraction = $pixelFraction;
+ }
+ public function getPixelFraction()
+ {
+ return $this->pixelFraction;
+ }
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHint.php
new file mode 100644
index 00000000..39bf9f09
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHint.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_CropHint extends Google_Model
+{
+ protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly';
+ protected $boundingPolyDataType = '';
+ public $confidence;
+ public $importanceFraction;
+
+ public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly)
+ {
+ $this->boundingPoly = $boundingPoly;
+ }
+ public function getBoundingPoly()
+ {
+ return $this->boundingPoly;
+ }
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setImportanceFraction($importanceFraction)
+ {
+ $this->importanceFraction = $importanceFraction;
+ }
+ public function getImportanceFraction()
+ {
+ return $this->importanceFraction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsAnnotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsAnnotation.php
new file mode 100644
index 00000000..2d3167b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsAnnotation.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_CropHintsAnnotation extends Google_Collection
+{
+ protected $collection_key = 'cropHints';
+ protected $cropHintsType = 'Google_Service_Vision_CropHint';
+ protected $cropHintsDataType = 'array';
+
+ public function setCropHints($cropHints)
+ {
+ $this->cropHints = $cropHints;
+ }
+ public function getCropHints()
+ {
+ return $this->cropHints;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsParams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsParams.php
new file mode 100644
index 00000000..92844265
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/CropHintsParams.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_CropHintsParams extends Google_Collection
+{
+ protected $collection_key = 'aspectRatios';
+ public $aspectRatios;
+
+ public function setAspectRatios($aspectRatios)
+ {
+ $this->aspectRatios = $aspectRatios;
+ }
+ public function getAspectRatios()
+ {
+ return $this->aspectRatios;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedBreak.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedBreak.php
new file mode 100644
index 00000000..8dae7df7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedBreak.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_DetectedBreak extends Google_Model
+{
+ public $isPrefix;
+ public $type;
+
+ public function setIsPrefix($isPrefix)
+ {
+ $this->isPrefix = $isPrefix;
+ }
+ public function getIsPrefix()
+ {
+ return $this->isPrefix;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedLanguage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedLanguage.php
new file mode 100644
index 00000000..024ed967
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DetectedLanguage.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_DetectedLanguage extends Google_Model
+{
+ public $confidence;
+ public $languageCode;
+
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setLanguageCode($languageCode)
+ {
+ $this->languageCode = $languageCode;
+ }
+ public function getLanguageCode()
+ {
+ return $this->languageCode;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DominantColorsAnnotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DominantColorsAnnotation.php
new file mode 100644
index 00000000..6e7d803b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/DominantColorsAnnotation.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_DominantColorsAnnotation extends Google_Collection
+{
+ protected $collection_key = 'colors';
+ protected $colorsType = 'Google_Service_Vision_ColorInfo';
+ protected $colorsDataType = 'array';
+
+ public function setColors($colors)
+ {
+ $this->colors = $colors;
+ }
+ public function getColors()
+ {
+ return $this->colors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/EntityAnnotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/EntityAnnotation.php
new file mode 100644
index 00000000..19512918
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/EntityAnnotation.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_EntityAnnotation extends Google_Collection
+{
+ protected $collection_key = 'properties';
+ protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly';
+ protected $boundingPolyDataType = '';
+ public $confidence;
+ public $description;
+ public $locale;
+ protected $locationsType = 'Google_Service_Vision_LocationInfo';
+ protected $locationsDataType = 'array';
+ public $mid;
+ protected $propertiesType = 'Google_Service_Vision_Property';
+ protected $propertiesDataType = 'array';
+ public $score;
+ public $topicality;
+
+ public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly)
+ {
+ $this->boundingPoly = $boundingPoly;
+ }
+ public function getBoundingPoly()
+ {
+ return $this->boundingPoly;
+ }
+ public function setConfidence($confidence)
+ {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence()
+ {
+ return $this->confidence;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setLocations($locations)
+ {
+ $this->locations = $locations;
+ }
+ public function getLocations()
+ {
+ return $this->locations;
+ }
+ public function setMid($mid)
+ {
+ $this->mid = $mid;
+ }
+ public function getMid()
+ {
+ return $this->mid;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+ public function setTopicality($topicality)
+ {
+ $this->topicality = $topicality;
+ }
+ public function getTopicality()
+ {
+ return $this->topicality;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/FaceAnnotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/FaceAnnotation.php
new file mode 100644
index 00000000..7a28066b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/FaceAnnotation.php
@@ -0,0 +1,160 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_FaceAnnotation extends Google_Collection
+{
+ protected $collection_key = 'landmarks';
+ public $angerLikelihood;
+ public $blurredLikelihood;
+ protected $boundingPolyType = 'Google_Service_Vision_BoundingPoly';
+ protected $boundingPolyDataType = '';
+ public $detectionConfidence;
+ protected $fdBoundingPolyType = 'Google_Service_Vision_BoundingPoly';
+ protected $fdBoundingPolyDataType = '';
+ public $headwearLikelihood;
+ public $joyLikelihood;
+ public $landmarkingConfidence;
+ protected $landmarksType = 'Google_Service_Vision_Landmark';
+ protected $landmarksDataType = 'array';
+ public $panAngle;
+ public $rollAngle;
+ public $sorrowLikelihood;
+ public $surpriseLikelihood;
+ public $tiltAngle;
+ public $underExposedLikelihood;
+
+ public function setAngerLikelihood($angerLikelihood)
+ {
+ $this->angerLikelihood = $angerLikelihood;
+ }
+ public function getAngerLikelihood()
+ {
+ return $this->angerLikelihood;
+ }
+ public function setBlurredLikelihood($blurredLikelihood)
+ {
+ $this->blurredLikelihood = $blurredLikelihood;
+ }
+ public function getBlurredLikelihood()
+ {
+ return $this->blurredLikelihood;
+ }
+ public function setBoundingPoly(Google_Service_Vision_BoundingPoly $boundingPoly)
+ {
+ $this->boundingPoly = $boundingPoly;
+ }
+ public function getBoundingPoly()
+ {
+ return $this->boundingPoly;
+ }
+ public function setDetectionConfidence($detectionConfidence)
+ {
+ $this->detectionConfidence = $detectionConfidence;
+ }
+ public function getDetectionConfidence()
+ {
+ return $this->detectionConfidence;
+ }
+ public function setFdBoundingPoly(Google_Service_Vision_BoundingPoly $fdBoundingPoly)
+ {
+ $this->fdBoundingPoly = $fdBoundingPoly;
+ }
+ public function getFdBoundingPoly()
+ {
+ return $this->fdBoundingPoly;
+ }
+ public function setHeadwearLikelihood($headwearLikelihood)
+ {
+ $this->headwearLikelihood = $headwearLikelihood;
+ }
+ public function getHeadwearLikelihood()
+ {
+ return $this->headwearLikelihood;
+ }
+ public function setJoyLikelihood($joyLikelihood)
+ {
+ $this->joyLikelihood = $joyLikelihood;
+ }
+ public function getJoyLikelihood()
+ {
+ return $this->joyLikelihood;
+ }
+ public function setLandmarkingConfidence($landmarkingConfidence)
+ {
+ $this->landmarkingConfidence = $landmarkingConfidence;
+ }
+ public function getLandmarkingConfidence()
+ {
+ return $this->landmarkingConfidence;
+ }
+ public function setLandmarks($landmarks)
+ {
+ $this->landmarks = $landmarks;
+ }
+ public function getLandmarks()
+ {
+ return $this->landmarks;
+ }
+ public function setPanAngle($panAngle)
+ {
+ $this->panAngle = $panAngle;
+ }
+ public function getPanAngle()
+ {
+ return $this->panAngle;
+ }
+ public function setRollAngle($rollAngle)
+ {
+ $this->rollAngle = $rollAngle;
+ }
+ public function getRollAngle()
+ {
+ return $this->rollAngle;
+ }
+ public function setSorrowLikelihood($sorrowLikelihood)
+ {
+ $this->sorrowLikelihood = $sorrowLikelihood;
+ }
+ public function getSorrowLikelihood()
+ {
+ return $this->sorrowLikelihood;
+ }
+ public function setSurpriseLikelihood($surpriseLikelihood)
+ {
+ $this->surpriseLikelihood = $surpriseLikelihood;
+ }
+ public function getSurpriseLikelihood()
+ {
+ return $this->surpriseLikelihood;
+ }
+ public function setTiltAngle($tiltAngle)
+ {
+ $this->tiltAngle = $tiltAngle;
+ }
+ public function getTiltAngle()
+ {
+ return $this->tiltAngle;
+ }
+ public function setUnderExposedLikelihood($underExposedLikelihood)
+ {
+ $this->underExposedLikelihood = $underExposedLikelihood;
+ }
+ public function getUnderExposedLikelihood()
+ {
+ return $this->underExposedLikelihood;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Feature.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Feature.php
new file mode 100644
index 00000000..5e65b0fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Feature.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Feature extends Google_Model
+{
+ public $maxResults;
+ public $type;
+
+ public function setMaxResults($maxResults)
+ {
+ $this->maxResults = $maxResults;
+ }
+ public function getMaxResults()
+ {
+ return $this->maxResults;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Image.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Image.php
new file mode 100644
index 00000000..60ed158a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Image.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Image extends Google_Model
+{
+ public $content;
+ protected $sourceType = 'Google_Service_Vision_ImageSource';
+ protected $sourceDataType = '';
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setSource(Google_Service_Vision_ImageSource $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageContext.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageContext.php
new file mode 100644
index 00000000..1949b904
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageContext.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_ImageContext extends Google_Collection
+{
+ protected $collection_key = 'languageHints';
+ protected $cropHintsParamsType = 'Google_Service_Vision_CropHintsParams';
+ protected $cropHintsParamsDataType = '';
+ public $languageHints;
+ protected $latLongRectType = 'Google_Service_Vision_LatLongRect';
+ protected $latLongRectDataType = '';
+
+ public function setCropHintsParams(Google_Service_Vision_CropHintsParams $cropHintsParams)
+ {
+ $this->cropHintsParams = $cropHintsParams;
+ }
+ public function getCropHintsParams()
+ {
+ return $this->cropHintsParams;
+ }
+ public function setLanguageHints($languageHints)
+ {
+ $this->languageHints = $languageHints;
+ }
+ public function getLanguageHints()
+ {
+ return $this->languageHints;
+ }
+ public function setLatLongRect(Google_Service_Vision_LatLongRect $latLongRect)
+ {
+ $this->latLongRect = $latLongRect;
+ }
+ public function getLatLongRect()
+ {
+ return $this->latLongRect;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageProperties.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageProperties.php
new file mode 100644
index 00000000..9b6f1ba2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageProperties.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_ImageProperties extends Google_Model
+{
+ protected $dominantColorsType = 'Google_Service_Vision_DominantColorsAnnotation';
+ protected $dominantColorsDataType = '';
+
+ public function setDominantColors(Google_Service_Vision_DominantColorsAnnotation $dominantColors)
+ {
+ $this->dominantColors = $dominantColors;
+ }
+ public function getDominantColors()
+ {
+ return $this->dominantColors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageSource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageSource.php
new file mode 100644
index 00000000..5d9de3c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/ImageSource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_ImageSource extends Google_Model
+{
+ public $gcsImageUri;
+ public $imageUri;
+
+ public function setGcsImageUri($gcsImageUri)
+ {
+ $this->gcsImageUri = $gcsImageUri;
+ }
+ public function getGcsImageUri()
+ {
+ return $this->gcsImageUri;
+ }
+ public function setImageUri($imageUri)
+ {
+ $this->imageUri = $imageUri;
+ }
+ public function getImageUri()
+ {
+ return $this->imageUri;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Landmark.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Landmark.php
new file mode 100644
index 00000000..b16eb51b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Landmark.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Landmark extends Google_Model
+{
+ protected $positionType = 'Google_Service_Vision_Position';
+ protected $positionDataType = '';
+ public $type;
+
+ public function setPosition(Google_Service_Vision_Position $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLng.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLng.php
new file mode 100644
index 00000000..06911233
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLng.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_LatLng extends Google_Model
+{
+ public $latitude;
+ public $longitude;
+
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLongRect.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLongRect.php
new file mode 100644
index 00000000..f9544a85
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LatLongRect.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_LatLongRect extends Google_Model
+{
+ protected $maxLatLngType = 'Google_Service_Vision_LatLng';
+ protected $maxLatLngDataType = '';
+ protected $minLatLngType = 'Google_Service_Vision_LatLng';
+ protected $minLatLngDataType = '';
+
+ public function setMaxLatLng(Google_Service_Vision_LatLng $maxLatLng)
+ {
+ $this->maxLatLng = $maxLatLng;
+ }
+ public function getMaxLatLng()
+ {
+ return $this->maxLatLng;
+ }
+ public function setMinLatLng(Google_Service_Vision_LatLng $minLatLng)
+ {
+ $this->minLatLng = $minLatLng;
+ }
+ public function getMinLatLng()
+ {
+ return $this->minLatLng;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LocationInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LocationInfo.php
new file mode 100644
index 00000000..1fb3fca9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/LocationInfo.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_LocationInfo extends Google_Model
+{
+ protected $latLngType = 'Google_Service_Vision_LatLng';
+ protected $latLngDataType = '';
+
+ public function setLatLng(Google_Service_Vision_LatLng $latLng)
+ {
+ $this->latLng = $latLng;
+ }
+ public function getLatLng()
+ {
+ return $this->latLng;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Page.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Page.php
new file mode 100644
index 00000000..ccb0c2f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Page.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Page extends Google_Collection
+{
+ protected $collection_key = 'blocks';
+ protected $blocksType = 'Google_Service_Vision_Block';
+ protected $blocksDataType = 'array';
+ public $height;
+ protected $propertyType = 'Google_Service_Vision_TextProperty';
+ protected $propertyDataType = '';
+ public $width;
+
+ public function setBlocks($blocks)
+ {
+ $this->blocks = $blocks;
+ }
+ public function getBlocks()
+ {
+ return $this->blocks;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setProperty(Google_Service_Vision_TextProperty $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Paragraph.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Paragraph.php
new file mode 100644
index 00000000..e045ebf6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Paragraph.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Paragraph extends Google_Collection
+{
+ protected $collection_key = 'words';
+ protected $boundingBoxType = 'Google_Service_Vision_BoundingPoly';
+ protected $boundingBoxDataType = '';
+ protected $propertyType = 'Google_Service_Vision_TextProperty';
+ protected $propertyDataType = '';
+ protected $wordsType = 'Google_Service_Vision_Word';
+ protected $wordsDataType = 'array';
+
+ public function setBoundingBox(Google_Service_Vision_BoundingPoly $boundingBox)
+ {
+ $this->boundingBox = $boundingBox;
+ }
+ public function getBoundingBox()
+ {
+ return $this->boundingBox;
+ }
+ public function setProperty(Google_Service_Vision_TextProperty $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+ public function setWords($words)
+ {
+ $this->words = $words;
+ }
+ public function getWords()
+ {
+ return $this->words;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Position.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Position.php
new file mode 100644
index 00000000..c362b1e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Position.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Position extends Google_Model
+{
+ public $x;
+ public $y;
+ public $z;
+
+ public function setX($x)
+ {
+ $this->x = $x;
+ }
+ public function getX()
+ {
+ return $this->x;
+ }
+ public function setY($y)
+ {
+ $this->y = $y;
+ }
+ public function getY()
+ {
+ return $this->y;
+ }
+ public function setZ($z)
+ {
+ $this->z = $z;
+ }
+ public function getZ()
+ {
+ return $this->z;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Property.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Property.php
new file mode 100644
index 00000000..074a7051
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Property.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Property extends Google_Model
+{
+ public $name;
+ public $uint64Value;
+ public $value;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setUint64Value($uint64Value)
+ {
+ $this->uint64Value = $uint64Value;
+ }
+ public function getUint64Value()
+ {
+ return $this->uint64Value;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Resource/Images.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Resource/Images.php
new file mode 100644
index 00000000..0da6915e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Resource/Images.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "images" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $visionService = new Google_Service_Vision(...);
+ * $images = $visionService->images;
+ * </code>
+ */
+class Google_Service_Vision_Resource_Images extends Google_Service_Resource
+{
+ /**
+ * Run image detection and annotation for a batch of images. (images.annotate)
+ *
+ * @param Google_Service_Vision_BatchAnnotateImagesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Vision_BatchAnnotateImagesResponse
+ */
+ public function annotate(Google_Service_Vision_BatchAnnotateImagesRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('annotate', array($params), "Google_Service_Vision_BatchAnnotateImagesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/SafeSearchAnnotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/SafeSearchAnnotation.php
new file mode 100644
index 00000000..f945252a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/SafeSearchAnnotation.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_SafeSearchAnnotation extends Google_Model
+{
+ public $adult;
+ public $medical;
+ public $spoof;
+ public $violence;
+
+ public function setAdult($adult)
+ {
+ $this->adult = $adult;
+ }
+ public function getAdult()
+ {
+ return $this->adult;
+ }
+ public function setMedical($medical)
+ {
+ $this->medical = $medical;
+ }
+ public function getMedical()
+ {
+ return $this->medical;
+ }
+ public function setSpoof($spoof)
+ {
+ $this->spoof = $spoof;
+ }
+ public function getSpoof()
+ {
+ return $this->spoof;
+ }
+ public function setViolence($violence)
+ {
+ $this->violence = $violence;
+ }
+ public function getViolence()
+ {
+ return $this->violence;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Status.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Status.php
new file mode 100644
index 00000000..d82689fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Status.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ public $code;
+ public $details;
+ public $message;
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Symbol.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Symbol.php
new file mode 100644
index 00000000..0f455035
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Symbol.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Symbol extends Google_Model
+{
+ protected $boundingBoxType = 'Google_Service_Vision_BoundingPoly';
+ protected $boundingBoxDataType = '';
+ protected $propertyType = 'Google_Service_Vision_TextProperty';
+ protected $propertyDataType = '';
+ public $text;
+
+ public function setBoundingBox(Google_Service_Vision_BoundingPoly $boundingBox)
+ {
+ $this->boundingBox = $boundingBox;
+ }
+ public function getBoundingBox()
+ {
+ return $this->boundingBox;
+ }
+ public function setProperty(Google_Service_Vision_TextProperty $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextAnnotation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextAnnotation.php
new file mode 100644
index 00000000..4e8fc461
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextAnnotation.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_TextAnnotation extends Google_Collection
+{
+ protected $collection_key = 'pages';
+ protected $pagesType = 'Google_Service_Vision_Page';
+ protected $pagesDataType = 'array';
+ public $text;
+
+ public function setPages($pages)
+ {
+ $this->pages = $pages;
+ }
+ public function getPages()
+ {
+ return $this->pages;
+ }
+ public function setText($text)
+ {
+ $this->text = $text;
+ }
+ public function getText()
+ {
+ return $this->text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextProperty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextProperty.php
new file mode 100644
index 00000000..0e259339
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/TextProperty.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_TextProperty extends Google_Collection
+{
+ protected $collection_key = 'detectedLanguages';
+ protected $detectedBreakType = 'Google_Service_Vision_DetectedBreak';
+ protected $detectedBreakDataType = '';
+ protected $detectedLanguagesType = 'Google_Service_Vision_DetectedLanguage';
+ protected $detectedLanguagesDataType = 'array';
+
+ public function setDetectedBreak(Google_Service_Vision_DetectedBreak $detectedBreak)
+ {
+ $this->detectedBreak = $detectedBreak;
+ }
+ public function getDetectedBreak()
+ {
+ return $this->detectedBreak;
+ }
+ public function setDetectedLanguages($detectedLanguages)
+ {
+ $this->detectedLanguages = $detectedLanguages;
+ }
+ public function getDetectedLanguages()
+ {
+ return $this->detectedLanguages;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Vertex.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Vertex.php
new file mode 100644
index 00000000..3c03e088
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Vertex.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Vertex extends Google_Model
+{
+ public $x;
+ public $y;
+
+ public function setX($x)
+ {
+ $this->x = $x;
+ }
+ public function getX()
+ {
+ return $this->x;
+ }
+ public function setY($y)
+ {
+ $this->y = $y;
+ }
+ public function getY()
+ {
+ return $this->y;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebDetection.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebDetection.php
new file mode 100644
index 00000000..326c040f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebDetection.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_WebDetection extends Google_Collection
+{
+ protected $collection_key = 'webEntities';
+ protected $fullMatchingImagesType = 'Google_Service_Vision_WebImage';
+ protected $fullMatchingImagesDataType = 'array';
+ protected $pagesWithMatchingImagesType = 'Google_Service_Vision_WebPage';
+ protected $pagesWithMatchingImagesDataType = 'array';
+ protected $partialMatchingImagesType = 'Google_Service_Vision_WebImage';
+ protected $partialMatchingImagesDataType = 'array';
+ protected $webEntitiesType = 'Google_Service_Vision_WebEntity';
+ protected $webEntitiesDataType = 'array';
+
+ public function setFullMatchingImages($fullMatchingImages)
+ {
+ $this->fullMatchingImages = $fullMatchingImages;
+ }
+ public function getFullMatchingImages()
+ {
+ return $this->fullMatchingImages;
+ }
+ public function setPagesWithMatchingImages($pagesWithMatchingImages)
+ {
+ $this->pagesWithMatchingImages = $pagesWithMatchingImages;
+ }
+ public function getPagesWithMatchingImages()
+ {
+ return $this->pagesWithMatchingImages;
+ }
+ public function setPartialMatchingImages($partialMatchingImages)
+ {
+ $this->partialMatchingImages = $partialMatchingImages;
+ }
+ public function getPartialMatchingImages()
+ {
+ return $this->partialMatchingImages;
+ }
+ public function setWebEntities($webEntities)
+ {
+ $this->webEntities = $webEntities;
+ }
+ public function getWebEntities()
+ {
+ return $this->webEntities;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebEntity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebEntity.php
new file mode 100644
index 00000000..fa425fdb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebEntity.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_WebEntity extends Google_Model
+{
+ public $description;
+ public $entityId;
+ public $score;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEntityId($entityId)
+ {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId()
+ {
+ return $this->entityId;
+ }
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebImage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebImage.php
new file mode 100644
index 00000000..a5d06e2c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebImage.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_WebImage extends Google_Model
+{
+ public $score;
+ public $url;
+
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebPage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebPage.php
new file mode 100644
index 00000000..7187e0d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/WebPage.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_WebPage extends Google_Model
+{
+ public $score;
+ public $url;
+
+ public function setScore($score)
+ {
+ $this->score = $score;
+ }
+ public function getScore()
+ {
+ return $this->score;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Word.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Word.php
new file mode 100644
index 00000000..e688655f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Vision/Word.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Vision_Word extends Google_Collection
+{
+ protected $collection_key = 'symbols';
+ protected $boundingBoxType = 'Google_Service_Vision_BoundingPoly';
+ protected $boundingBoxDataType = '';
+ protected $propertyType = 'Google_Service_Vision_TextProperty';
+ protected $propertyDataType = '';
+ protected $symbolsType = 'Google_Service_Vision_Symbol';
+ protected $symbolsDataType = 'array';
+
+ public function setBoundingBox(Google_Service_Vision_BoundingPoly $boundingBox)
+ {
+ $this->boundingBox = $boundingBox;
+ }
+ public function getBoundingBox()
+ {
+ return $this->boundingBox;
+ }
+ public function setProperty(Google_Service_Vision_TextProperty $property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+ public function setSymbols($symbols)
+ {
+ $this->symbols = $symbols;
+ }
+ public function getSymbols()
+ {
+ return $this->symbols;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts.php
new file mode 100644
index 00000000..282c9ace
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts.php
@@ -0,0 +1,72 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Webfonts (v1).
+ *
+ * <p>
+ * Accesses the metadata for all families served by Google Fonts, providing a
+ * list of families currently available (including available styles and a list
+ * of supported script subsets).</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/fonts/docs/developer_api" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Webfonts extends Google_Service
+{
+
+
+ public $webfonts;
+
+ /**
+ * Constructs the internal representation of the Webfonts service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'webfonts/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'webfonts';
+
+ $this->webfonts = new Google_Service_Webfonts_Resource_Webfonts(
+ $this,
+ $this->serviceName,
+ 'webfonts',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'webfonts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Resource/Webfonts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Resource/Webfonts.php
new file mode 100644
index 00000000..e13afa3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Resource/Webfonts.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "webfonts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $webfontsService = new Google_Service_Webfonts(...);
+ * $webfonts = $webfontsService->webfonts;
+ * </code>
+ */
+class Google_Service_Webfonts_Resource_Webfonts extends Google_Service_Resource
+{
+ /**
+ * Retrieves the list of fonts currently served by the Google Fonts Developer
+ * API (webfonts.listWebfonts)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string sort Enables sorting of the list
+ * @return Google_Service_Webfonts_WebfontList
+ */
+ public function listWebfonts($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Webfonts_WebfontList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Webfont.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Webfont.php
new file mode 100644
index 00000000..3168302b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/Webfont.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webfonts_Webfont extends Google_Collection
+{
+ protected $collection_key = 'variants';
+ public $category;
+ public $family;
+ public $files;
+ public $kind;
+ public $lastModified;
+ public $subsets;
+ public $variants;
+ public $version;
+
+ public function setCategory($category)
+ {
+ $this->category = $category;
+ }
+ public function getCategory()
+ {
+ return $this->category;
+ }
+ public function setFamily($family)
+ {
+ $this->family = $family;
+ }
+ public function getFamily()
+ {
+ return $this->family;
+ }
+ public function setFiles($files)
+ {
+ $this->files = $files;
+ }
+ public function getFiles()
+ {
+ return $this->files;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModified($lastModified)
+ {
+ $this->lastModified = $lastModified;
+ }
+ public function getLastModified()
+ {
+ return $this->lastModified;
+ }
+ public function setSubsets($subsets)
+ {
+ $this->subsets = $subsets;
+ }
+ public function getSubsets()
+ {
+ return $this->subsets;
+ }
+ public function setVariants($variants)
+ {
+ $this->variants = $variants;
+ }
+ public function getVariants()
+ {
+ return $this->variants;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/WebfontList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/WebfontList.php
new file mode 100644
index 00000000..59e5b684
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webfonts/WebfontList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webfonts_WebfontList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_Webfonts_Webfont';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters.php
new file mode 100644
index 00000000..936b48a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters.php
@@ -0,0 +1,305 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for Webmasters (v3).
+ *
+ * <p>
+ * View Google Search Console data for your verified sites.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/webmaster-tools/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_Webmasters extends Google_Service
+{
+ /** View and manage Search Console data for your verified sites. */
+ const WEBMASTERS =
+ "https://www.googleapis.com/auth/webmasters";
+ /** View Search Console data for your verified sites. */
+ const WEBMASTERS_READONLY =
+ "https://www.googleapis.com/auth/webmasters.readonly";
+
+ public $searchanalytics;
+ public $sitemaps;
+ public $sites;
+ public $urlcrawlerrorscounts;
+ public $urlcrawlerrorssamples;
+
+ /**
+ * Constructs the internal representation of the Webmasters service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'webmasters/v3/';
+ $this->version = 'v3';
+ $this->serviceName = 'webmasters';
+
+ $this->searchanalytics = new Google_Service_Webmasters_Resource_Searchanalytics(
+ $this,
+ $this->serviceName,
+ 'searchanalytics',
+ array(
+ 'methods' => array(
+ 'query' => array(
+ 'path' => 'sites/{siteUrl}/searchAnalytics/query',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sitemaps = new Google_Service_Webmasters_Resource_Sitemaps(
+ $this,
+ $this->serviceName,
+ 'sitemaps',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'feedpath' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'feedpath' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'sites/{siteUrl}/sitemaps',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'sitemapIndex' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'submit' => array(
+ 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'feedpath' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sites = new Google_Service_Webmasters_Resource_Sites(
+ $this,
+ $this->serviceName,
+ 'sites',
+ array(
+ 'methods' => array(
+ 'add' => array(
+ 'path' => 'sites/{siteUrl}',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'sites/{siteUrl}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'sites/{siteUrl}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'sites',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(),
+ ),
+ )
+ )
+ );
+ $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Resource_Urlcrawlerrorscounts(
+ $this,
+ $this->serviceName,
+ 'urlcrawlerrorscounts',
+ array(
+ 'methods' => array(
+ 'query' => array(
+ 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'category' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'latestCountsOnly' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'platform' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Resource_Urlcrawlerrorssamples(
+ $this,
+ $this->serviceName,
+ 'urlcrawlerrorssamples',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'url' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'category' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'platform' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'category' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'platform' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'markAsFixed' => array(
+ 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'siteUrl' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'url' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'category' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'platform' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDataRow.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDataRow.php
new file mode 100644
index 00000000..869b76c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDataRow.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_ApiDataRow extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ public $clicks;
+ public $ctr;
+ public $impressions;
+ public $keys;
+ public $position;
+
+ public function setClicks($clicks)
+ {
+ $this->clicks = $clicks;
+ }
+ public function getClicks()
+ {
+ return $this->clicks;
+ }
+ public function setCtr($ctr)
+ {
+ $this->ctr = $ctr;
+ }
+ public function getCtr()
+ {
+ return $this->ctr;
+ }
+ public function setImpressions($impressions)
+ {
+ $this->impressions = $impressions;
+ }
+ public function getImpressions()
+ {
+ return $this->impressions;
+ }
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+ public function setPosition($position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilter.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilter.php
new file mode 100644
index 00000000..49e83645
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilter.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_ApiDimensionFilter extends Google_Model
+{
+ public $dimension;
+ public $expression;
+ public $operator;
+
+ public function setDimension($dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setExpression($expression)
+ {
+ $this->expression = $expression;
+ }
+ public function getExpression()
+ {
+ return $this->expression;
+ }
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilterGroup.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilterGroup.php
new file mode 100644
index 00000000..1b18a888
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/ApiDimensionFilterGroup.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_ApiDimensionFilterGroup extends Google_Collection
+{
+ protected $collection_key = 'filters';
+ protected $filtersType = 'Google_Service_Webmasters_ApiDimensionFilter';
+ protected $filtersDataType = 'array';
+ public $groupType;
+
+ public function setFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+ public function getFilters()
+ {
+ return $this->filters;
+ }
+ public function setGroupType($groupType)
+ {
+ $this->groupType = $groupType;
+ }
+ public function getGroupType()
+ {
+ return $this->groupType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Searchanalytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Searchanalytics.php
new file mode 100644
index 00000000..865a404a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Searchanalytics.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "searchanalytics" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $webmastersService = new Google_Service_Webmasters(...);
+ * $searchanalytics = $webmastersService->searchanalytics;
+ * </code>
+ */
+class Google_Service_Webmasters_Resource_Searchanalytics extends Google_Service_Resource
+{
+ /**
+ * Query your data with filters and parameters that you define. Returns zero or
+ * more rows grouped by the row keys that you define. You must define a date
+ * range of one or more days.
+ *
+ * When date is one of the group by values, any days without data are omitted
+ * from the result list. If you need to know which days have data, issue a broad
+ * date range query grouped by date for any metric, and see which day rows are
+ * returned. (searchanalytics.query)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse
+ */
+ public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sitemaps.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sitemaps.php
new file mode 100644
index 00000000..b0e69fdf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sitemaps.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sitemaps" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $webmastersService = new Google_Service_Webmasters(...);
+ * $sitemaps = $webmastersService->sitemaps;
+ * </code>
+ */
+class Google_Service_Webmasters_Resource_Sitemaps extends Google_Service_Resource
+{
+ /**
+ * Deletes a sitemap from this site. (sitemaps.delete)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param string $feedpath The URL of the actual sitemap. For example:
+ * http://www.example.com/sitemap.xml
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($siteUrl, $feedpath, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves information about a specific sitemap. (sitemaps.get)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param string $feedpath The URL of the actual sitemap. For example:
+ * http://www.example.com/sitemap.xml
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Webmasters_WmxSitemap
+ */
+ public function get($siteUrl, $feedpath, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap");
+ }
+ /**
+ * Lists the sitemaps-entries submitted for this site, or included in the
+ * sitemap index file (if sitemapIndex is specified in the request).
+ * (sitemaps.listSitemaps)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string sitemapIndex A URL of a site's sitemap index. For example:
+ * http://www.example.com/sitemapindex.xml
+ * @return Google_Service_Webmasters_SitemapsListResponse
+ */
+ public function listSitemaps($siteUrl, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse");
+ }
+ /**
+ * Submits a sitemap for a site. (sitemaps.submit)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param string $feedpath The URL of the sitemap to add. For example:
+ * http://www.example.com/sitemap.xml
+ * @param array $optParams Optional parameters.
+ */
+ public function submit($siteUrl, $feedpath, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath);
+ $params = array_merge($params, $optParams);
+ return $this->call('submit', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sites.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sites.php
new file mode 100644
index 00000000..7af6cc72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Sites.php
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sites" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $webmastersService = new Google_Service_Webmasters(...);
+ * $sites = $webmastersService->sites;
+ * </code>
+ */
+class Google_Service_Webmasters_Resource_Sites extends Google_Service_Resource
+{
+ /**
+ * Adds a site to the set of the user's sites in Search Console. (sites.add)
+ *
+ * @param string $siteUrl The URL of the site to add.
+ * @param array $optParams Optional parameters.
+ */
+ public function add($siteUrl, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl);
+ $params = array_merge($params, $optParams);
+ return $this->call('add', array($params));
+ }
+ /**
+ * Removes a site from the set of the user's Search Console sites.
+ * (sites.delete)
+ *
+ * @param string $siteUrl The URI of the property as defined in Search Console.
+ * Examples: http://www.example.com/ or android-app://com.example/
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($siteUrl, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves information about specific site. (sites.get)
+ *
+ * @param string $siteUrl The URI of the property as defined in Search Console.
+ * Examples: http://www.example.com/ or android-app://com.example/
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Webmasters_WmxSite
+ */
+ public function get($siteUrl, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite");
+ }
+ /**
+ * Lists the user's Search Console sites. (sites.listSites)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Webmasters_SitesListResponse
+ */
+ public function listSites($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorscounts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorscounts.php
new file mode 100644
index 00000000..c86bd72d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorscounts.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlcrawlerrorscounts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $webmastersService = new Google_Service_Webmasters(...);
+ * $urlcrawlerrorscounts = $webmastersService->urlcrawlerrorscounts;
+ * </code>
+ */
+class Google_Service_Webmasters_Resource_Urlcrawlerrorscounts extends Google_Service_Resource
+{
+ /**
+ * Retrieves a time series of the number of URL crawl errors per error category
+ * and platform. (urlcrawlerrorscounts.query)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string category The crawl error category. For example:
+ * serverError. If not specified, returns results for all categories.
+ * @opt_param bool latestCountsOnly If true, returns only the latest crawl error
+ * counts.
+ * @opt_param string platform The user agent type (platform) that made the
+ * request. For example: web. If not specified, returns results for all
+ * platforms.
+ * @return Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse
+ */
+ public function query($siteUrl, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl);
+ $params = array_merge($params, $optParams);
+ return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorssamples.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorssamples.php
new file mode 100644
index 00000000..647656d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/Resource/Urlcrawlerrorssamples.php
@@ -0,0 +1,92 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "urlcrawlerrorssamples" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $webmastersService = new Google_Service_Webmasters(...);
+ * $urlcrawlerrorssamples = $webmastersService->urlcrawlerrorssamples;
+ * </code>
+ */
+class Google_Service_Webmasters_Resource_Urlcrawlerrorssamples extends Google_Service_Resource
+{
+ /**
+ * Retrieves details about crawl errors for a site's sample URL.
+ * (urlcrawlerrorssamples.get)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param string $url The relative path (without the site) of the sample URL. It
+ * must be one of the URLs returned by list(). For example, for the URL
+ * https://www.example.com/pagename on the site https://www.example.com/, the
+ * url value is pagename
+ * @param string $category The crawl error category. For example:
+ * authPermissions
+ * @param string $platform The user agent type (platform) that made the request.
+ * For example: web
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Webmasters_UrlCrawlErrorsSample
+ */
+ public function get($siteUrl, $url, $category, $platform, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample");
+ }
+ /**
+ * Lists a site's sample URLs for the specified crawl error category and
+ * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param string $category The crawl error category. For example:
+ * authPermissions
+ * @param string $platform The user agent type (platform) that made the request.
+ * For example: web
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse
+ */
+ public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse");
+ }
+ /**
+ * Marks the provided site's sample URL as fixed, and removes it from the
+ * samples list. (urlcrawlerrorssamples.markAsFixed)
+ *
+ * @param string $siteUrl The site's URL, including protocol. For example:
+ * http://www.example.com/
+ * @param string $url The relative path (without the site) of the sample URL. It
+ * must be one of the URLs returned by list(). For example, for the URL
+ * https://www.example.com/pagename on the site https://www.example.com/, the
+ * url value is pagename
+ * @param string $category The crawl error category. For example:
+ * authPermissions
+ * @param string $platform The user agent type (platform) that made the request.
+ * For example: web
+ * @param array $optParams Optional parameters.
+ */
+ public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array())
+ {
+ $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform);
+ $params = array_merge($params, $optParams);
+ return $this->call('markAsFixed', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryRequest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryRequest.php
new file mode 100644
index 00000000..2f12765a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryRequest.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_SearchAnalyticsQueryRequest extends Google_Collection
+{
+ protected $collection_key = 'dimensions';
+ public $aggregationType;
+ protected $dimensionFilterGroupsType = 'Google_Service_Webmasters_ApiDimensionFilterGroup';
+ protected $dimensionFilterGroupsDataType = 'array';
+ public $dimensions;
+ public $endDate;
+ public $rowLimit;
+ public $searchType;
+ public $startDate;
+ public $startRow;
+
+ public function setAggregationType($aggregationType)
+ {
+ $this->aggregationType = $aggregationType;
+ }
+ public function getAggregationType()
+ {
+ return $this->aggregationType;
+ }
+ public function setDimensionFilterGroups($dimensionFilterGroups)
+ {
+ $this->dimensionFilterGroups = $dimensionFilterGroups;
+ }
+ public function getDimensionFilterGroups()
+ {
+ return $this->dimensionFilterGroups;
+ }
+ public function setDimensions($dimensions)
+ {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions()
+ {
+ return $this->dimensions;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setRowLimit($rowLimit)
+ {
+ $this->rowLimit = $rowLimit;
+ }
+ public function getRowLimit()
+ {
+ return $this->rowLimit;
+ }
+ public function setSearchType($searchType)
+ {
+ $this->searchType = $searchType;
+ }
+ public function getSearchType()
+ {
+ return $this->searchType;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setStartRow($startRow)
+ {
+ $this->startRow = $startRow;
+ }
+ public function getStartRow()
+ {
+ return $this->startRow;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryResponse.php
new file mode 100644
index 00000000..1674d175
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SearchAnalyticsQueryResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_SearchAnalyticsQueryResponse extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ public $responseAggregationType;
+ protected $rowsType = 'Google_Service_Webmasters_ApiDataRow';
+ protected $rowsDataType = 'array';
+
+ public function setResponseAggregationType($responseAggregationType)
+ {
+ $this->responseAggregationType = $responseAggregationType;
+ }
+ public function getResponseAggregationType()
+ {
+ return $this->responseAggregationType;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitemapsListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitemapsListResponse.php
new file mode 100644
index 00000000..c458f576
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitemapsListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection
+{
+ protected $collection_key = 'sitemap';
+ protected $sitemapType = 'Google_Service_Webmasters_WmxSitemap';
+ protected $sitemapDataType = 'array';
+
+ public function setSitemap($sitemap)
+ {
+ $this->sitemap = $sitemap;
+ }
+ public function getSitemap()
+ {
+ return $this->sitemap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitesListResponse.php
new file mode 100644
index 00000000..52fdc667
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/SitesListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_SitesListResponse extends Google_Collection
+{
+ protected $collection_key = 'siteEntry';
+ protected $siteEntryType = 'Google_Service_Webmasters_WmxSite';
+ protected $siteEntryDataType = 'array';
+
+ public function setSiteEntry($siteEntry)
+ {
+ $this->siteEntry = $siteEntry;
+ }
+ public function getSiteEntry()
+ {
+ return $this->siteEntry;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCount.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCount.php
new file mode 100644
index 00000000..fd128f94
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCount.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_UrlCrawlErrorCount extends Google_Model
+{
+ public $count;
+ public $timestamp;
+
+ public function setCount($count)
+ {
+ $this->count = $count;
+ }
+ public function getCount()
+ {
+ return $this->count;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCountsPerType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCountsPerType.php
new file mode 100644
index 00000000..57e3e2ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorCountsPerType.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_UrlCrawlErrorCountsPerType extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ public $category;
+ protected $entriesType = 'Google_Service_Webmasters_UrlCrawlErrorCount';
+ protected $entriesDataType = 'array';
+ public $platform;
+
+ public function setCategory($category)
+ {
+ $this->category = $category;
+ }
+ public function getCategory()
+ {
+ return $this->category;
+ }
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setPlatform($platform)
+ {
+ $this->platform = $platform;
+ }
+ public function getPlatform()
+ {
+ return $this->platform;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsCountsQueryResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsCountsQueryResponse.php
new file mode 100644
index 00000000..40590d75
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsCountsQueryResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse extends Google_Collection
+{
+ protected $collection_key = 'countPerTypes';
+ protected $countPerTypesType = 'Google_Service_Webmasters_UrlCrawlErrorCountsPerType';
+ protected $countPerTypesDataType = 'array';
+
+ public function setCountPerTypes($countPerTypes)
+ {
+ $this->countPerTypes = $countPerTypes;
+ }
+ public function getCountPerTypes()
+ {
+ return $this->countPerTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSample.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSample.php
new file mode 100644
index 00000000..5291a57d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSample.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "firstDetected" => "first_detected",
+ "lastCrawled" => "last_crawled",
+ );
+ public $firstDetected;
+ public $lastCrawled;
+ public $pageUrl;
+ public $responseCode;
+ protected $urlDetailsType = 'Google_Service_Webmasters_UrlSampleDetails';
+ protected $urlDetailsDataType = '';
+
+ public function setFirstDetected($firstDetected)
+ {
+ $this->firstDetected = $firstDetected;
+ }
+ public function getFirstDetected()
+ {
+ return $this->firstDetected;
+ }
+ public function setLastCrawled($lastCrawled)
+ {
+ $this->lastCrawled = $lastCrawled;
+ }
+ public function getLastCrawled()
+ {
+ return $this->lastCrawled;
+ }
+ public function setPageUrl($pageUrl)
+ {
+ $this->pageUrl = $pageUrl;
+ }
+ public function getPageUrl()
+ {
+ return $this->pageUrl;
+ }
+ public function setResponseCode($responseCode)
+ {
+ $this->responseCode = $responseCode;
+ }
+ public function getResponseCode()
+ {
+ return $this->responseCode;
+ }
+ public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails)
+ {
+ $this->urlDetails = $urlDetails;
+ }
+ public function getUrlDetails()
+ {
+ return $this->urlDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSamplesListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSamplesListResponse.php
new file mode 100644
index 00000000..5835d3f1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsSamplesListResponse.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse extends Google_Collection
+{
+ protected $collection_key = 'urlCrawlErrorSample';
+ protected $urlCrawlErrorSampleType = 'Google_Service_Webmasters_UrlCrawlErrorsSample';
+ protected $urlCrawlErrorSampleDataType = 'array';
+
+ public function setUrlCrawlErrorSample($urlCrawlErrorSample)
+ {
+ $this->urlCrawlErrorSample = $urlCrawlErrorSample;
+ }
+ public function getUrlCrawlErrorSample()
+ {
+ return $this->urlCrawlErrorSample;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlSampleDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlSampleDetails.php
new file mode 100644
index 00000000..3d50187b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/UrlSampleDetails.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_UrlSampleDetails extends Google_Collection
+{
+ protected $collection_key = 'linkedFromUrls';
+ public $containingSitemaps;
+ public $linkedFromUrls;
+
+ public function setContainingSitemaps($containingSitemaps)
+ {
+ $this->containingSitemaps = $containingSitemaps;
+ }
+ public function getContainingSitemaps()
+ {
+ return $this->containingSitemaps;
+ }
+ public function setLinkedFromUrls($linkedFromUrls)
+ {
+ $this->linkedFromUrls = $linkedFromUrls;
+ }
+ public function getLinkedFromUrls()
+ {
+ return $this->linkedFromUrls;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSite.php
new file mode 100644
index 00000000..6d0dc5f5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSite.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_WmxSite extends Google_Model
+{
+ public $permissionLevel;
+ public $siteUrl;
+
+ public function setPermissionLevel($permissionLevel)
+ {
+ $this->permissionLevel = $permissionLevel;
+ }
+ public function getPermissionLevel()
+ {
+ return $this->permissionLevel;
+ }
+ public function setSiteUrl($siteUrl)
+ {
+ $this->siteUrl = $siteUrl;
+ }
+ public function getSiteUrl()
+ {
+ return $this->siteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemap.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemap.php
new file mode 100644
index 00000000..493bd27c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemap.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_WmxSitemap extends Google_Collection
+{
+ protected $collection_key = 'contents';
+ protected $contentsType = 'Google_Service_Webmasters_WmxSitemapContent';
+ protected $contentsDataType = 'array';
+ public $errors;
+ public $isPending;
+ public $isSitemapsIndex;
+ public $lastDownloaded;
+ public $lastSubmitted;
+ public $path;
+ public $type;
+ public $warnings;
+
+ public function setContents($contents)
+ {
+ $this->contents = $contents;
+ }
+ public function getContents()
+ {
+ return $this->contents;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setIsPending($isPending)
+ {
+ $this->isPending = $isPending;
+ }
+ public function getIsPending()
+ {
+ return $this->isPending;
+ }
+ public function setIsSitemapsIndex($isSitemapsIndex)
+ {
+ $this->isSitemapsIndex = $isSitemapsIndex;
+ }
+ public function getIsSitemapsIndex()
+ {
+ return $this->isSitemapsIndex;
+ }
+ public function setLastDownloaded($lastDownloaded)
+ {
+ $this->lastDownloaded = $lastDownloaded;
+ }
+ public function getLastDownloaded()
+ {
+ return $this->lastDownloaded;
+ }
+ public function setLastSubmitted($lastSubmitted)
+ {
+ $this->lastSubmitted = $lastSubmitted;
+ }
+ public function getLastSubmitted()
+ {
+ return $this->lastSubmitted;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemapContent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemapContent.php
new file mode 100644
index 00000000..904a377c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/Webmasters/WmxSitemapContent.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_Webmasters_WmxSitemapContent extends Google_Model
+{
+ public $indexed;
+ public $submitted;
+ public $type;
+
+ public function setIndexed($indexed)
+ {
+ $this->indexed = $indexed;
+ }
+ public function getIndexed()
+ {
+ return $this->indexed;
+ }
+ public function setSubmitted($submitted)
+ {
+ $this->submitted = $submitted;
+ }
+ public function getSubmitted()
+ {
+ return $this->submitted;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube.php
new file mode 100644
index 00000000..17a45cfd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube.php
@@ -0,0 +1,1944 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for YouTube (v3).
+ *
+ * <p>
+ * Supports core YouTube features, such as uploading videos, creating and
+ * managing playlists, searching for content, and much more.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/youtube/v3" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_YouTube extends Google_Service
+{
+ /** Manage your YouTube account. */
+ const YOUTUBE =
+ "https://www.googleapis.com/auth/youtube";
+ /** Manage your YouTube account. */
+ const YOUTUBE_FORCE_SSL =
+ "https://www.googleapis.com/auth/youtube.force-ssl";
+ /** View your YouTube account. */
+ const YOUTUBE_READONLY =
+ "https://www.googleapis.com/auth/youtube.readonly";
+ /** Manage your YouTube videos. */
+ const YOUTUBE_UPLOAD =
+ "https://www.googleapis.com/auth/youtube.upload";
+ /** View and manage your assets and associated content on YouTube. */
+ const YOUTUBEPARTNER =
+ "https://www.googleapis.com/auth/youtubepartner";
+ /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */
+ const YOUTUBEPARTNER_CHANNEL_AUDIT =
+ "https://www.googleapis.com/auth/youtubepartner-channel-audit";
+
+ public $activities;
+ public $captions;
+ public $channelBanners;
+ public $channelSections;
+ public $channels;
+ public $commentThreads;
+ public $comments;
+ public $fanFundingEvents;
+ public $guideCategories;
+ public $i18nLanguages;
+ public $i18nRegions;
+ public $liveBroadcasts;
+ public $liveChatBans;
+ public $liveChatMessages;
+ public $liveChatModerators;
+ public $liveStreams;
+ public $playlistItems;
+ public $playlists;
+ public $search;
+ public $sponsors;
+ public $subscriptions;
+ public $superChatEvents;
+ public $thumbnails;
+ public $videoAbuseReportReasons;
+ public $videoCategories;
+ public $videos;
+ public $watermarks;
+
+ /**
+ * Constructs the internal representation of the YouTube service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'youtube/v3/';
+ $this->version = 'v3';
+ $this->serviceName = 'youtube';
+
+ $this->activities = new Google_Service_YouTube_Resource_Activities(
+ $this,
+ $this->serviceName,
+ 'activities',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'activities',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'activities',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'home' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'publishedAfter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'publishedBefore' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'regionCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->captions = new Google_Service_YouTube_Resource_Captions(
+ $this,
+ $this->serviceName,
+ 'captions',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'captions',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOf' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'download' => array(
+ 'path' => 'captions/{id}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOf' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'tfmt' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'tlang' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'captions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOf' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sync' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'captions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'videoId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOf' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'captions',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOf' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'sync' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channelBanners = new Google_Service_YouTube_Resource_ChannelBanners(
+ $this,
+ $this->serviceName,
+ 'channelBanners',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'channelBanners/insert',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channelSections = new Google_Service_YouTube_Resource_ChannelSections(
+ $this,
+ $this->serviceName,
+ 'channelSections',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'channelSections',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'channelSections',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'channelSections',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'channelSections',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->channels = new Google_Service_YouTube_Resource_Channels(
+ $this,
+ $this->serviceName,
+ 'channels',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'channels',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'categoryId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'forUsername' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'managedByMe' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'mySubscribers' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'channels',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->commentThreads = new Google_Service_YouTube_Resource_CommentThreads(
+ $this,
+ $this->serviceName,
+ 'commentThreads',
+ array(
+ 'methods' => array(
+ 'insert' => array(
+ 'path' => 'commentThreads',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'commentThreads',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'allThreadsRelatedToChannelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'moderationStatus' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'order' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'searchTerms' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'textFormat' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'commentThreads',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->comments = new Google_Service_YouTube_Resource_Comments(
+ $this,
+ $this->serviceName,
+ 'comments',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'comments',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'comments',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'comments',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'parentId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'textFormat' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'markAsSpam' => array(
+ 'path' => 'comments/markAsSpam',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'setModerationStatus' => array(
+ 'path' => 'comments/setModerationStatus',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'moderationStatus' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'banAuthor' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'comments',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->fanFundingEvents = new Google_Service_YouTube_Resource_FanFundingEvents(
+ $this,
+ $this->serviceName,
+ 'fanFundingEvents',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'fanFundingEvents',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->guideCategories = new Google_Service_YouTube_Resource_GuideCategories(
+ $this,
+ $this->serviceName,
+ 'guideCategories',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'guideCategories',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'regionCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->i18nLanguages = new Google_Service_YouTube_Resource_I18nLanguages(
+ $this,
+ $this->serviceName,
+ 'i18nLanguages',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'i18nLanguages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->i18nRegions = new Google_Service_YouTube_Resource_I18nRegions(
+ $this,
+ $this->serviceName,
+ 'i18nRegions',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'i18nRegions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->liveBroadcasts = new Google_Service_YouTube_Resource_LiveBroadcasts(
+ $this,
+ $this->serviceName,
+ 'liveBroadcasts',
+ array(
+ 'methods' => array(
+ 'bind' => array(
+ 'path' => 'liveBroadcasts/bind',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'streamId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'control' => array(
+ 'path' => 'liveBroadcasts/control',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'displaySlate' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'offsetTimeMs' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'walltime' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'liveBroadcasts',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'liveBroadcasts',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'liveBroadcasts',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'broadcastStatus' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'broadcastType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'transition' => array(
+ 'path' => 'liveBroadcasts/transition',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'broadcastStatus' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'liveBroadcasts',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->liveChatBans = new Google_Service_YouTube_Resource_LiveChatBans(
+ $this,
+ $this->serviceName,
+ 'liveChatBans',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'liveChat/bans',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'liveChat/bans',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->liveChatMessages = new Google_Service_YouTube_Resource_LiveChatMessages(
+ $this,
+ $this->serviceName,
+ 'liveChatMessages',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'liveChat/messages',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'liveChat/messages',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'liveChat/messages',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'liveChatId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'profileImageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->liveChatModerators = new Google_Service_YouTube_Resource_LiveChatModerators(
+ $this,
+ $this->serviceName,
+ 'liveChatModerators',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'liveChat/moderators',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'liveChat/moderators',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'liveChat/moderators',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'liveChatId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->liveStreams = new Google_Service_YouTube_Resource_LiveStreams(
+ $this,
+ $this->serviceName,
+ 'liveStreams',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'liveStreams',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'liveStreams',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'liveStreams',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'liveStreams',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->playlistItems = new Google_Service_YouTube_Resource_PlaylistItems(
+ $this,
+ $this->serviceName,
+ 'playlistItems',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'playlistItems',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'playlistItems',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'playlistItems',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'playlistId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'playlistItems',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->playlists = new Google_Service_YouTube_Resource_Playlists(
+ $this,
+ $this->serviceName,
+ 'playlists',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'playlists',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'playlists',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'playlists',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'playlists',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->search = new Google_Service_YouTube_Resource_Search(
+ $this,
+ $this->serviceName,
+ 'search',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'search',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'channelType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'eventType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'forContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'forDeveloper' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'forMine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'location' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'locationRadius' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'order' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'publishedAfter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'publishedBefore' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'q' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'regionCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'relatedToVideoId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'relevanceLanguage' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'safeSearch' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'topicId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'type' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoCaption' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoCategoryId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoDefinition' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoDimension' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoDuration' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoEmbeddable' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoLicense' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoSyndicated' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoType' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->sponsors = new Google_Service_YouTube_Resource_Sponsors(
+ $this,
+ $this->serviceName,
+ 'sponsors',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'sponsors',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'filter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->subscriptions = new Google_Service_YouTube_Resource_Subscriptions(
+ $this,
+ $this->serviceName,
+ 'subscriptions',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'subscriptions',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'subscriptions',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'subscriptions',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'forChannelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'myRecentSubscribers' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'mySubscribers' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'order' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->superChatEvents = new Google_Service_YouTube_Resource_SuperChatEvents(
+ $this,
+ $this->serviceName,
+ 'superChatEvents',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'superChatEvents',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->thumbnails = new Google_Service_YouTube_Resource_Thumbnails(
+ $this,
+ $this->serviceName,
+ 'thumbnails',
+ array(
+ 'methods' => array(
+ 'set' => array(
+ 'path' => 'thumbnails/set',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'videoId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->videoAbuseReportReasons = new Google_Service_YouTube_Resource_VideoAbuseReportReasons(
+ $this,
+ $this->serviceName,
+ 'videoAbuseReportReasons',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'videoAbuseReportReasons',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->videoCategories = new Google_Service_YouTube_Resource_VideoCategories(
+ $this,
+ $this->serviceName,
+ 'videoCategories',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'videoCategories',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'regionCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->videos = new Google_Service_YouTube_Resource_Videos(
+ $this,
+ $this->serviceName,
+ 'videos',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'videos',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'getRating' => array(
+ 'path' => 'videos/getRating',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'videos',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'autoLevels' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'notifySubscribers' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwnerChannel' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'stabilize' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'videos',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'chart' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'hl' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'locale' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'maxHeight' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'maxWidth' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'myRating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'regionCode' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'videoCategoryId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'rate' => array(
+ 'path' => 'videos/rate',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'rating' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),'reportAbuse' => array(
+ 'path' => 'videos/reportAbuse',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'videos',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'part' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->watermarks = new Google_Service_YouTube_Resource_Watermarks(
+ $this,
+ $this->serviceName,
+ 'watermarks',
+ array(
+ 'methods' => array(
+ 'set' => array(
+ 'path' => 'watermarks/set',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'unset' => array(
+ 'path' => 'watermarks/unset',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'channelId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/AccessPolicy.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/AccessPolicy.php
new file mode 100644
index 00000000..0d0dd350
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/AccessPolicy.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_AccessPolicy extends Google_Collection
+{
+ protected $collection_key = 'exception';
+ public $allowed;
+ public $exception;
+
+ public function setAllowed($allowed)
+ {
+ $this->allowed = $allowed;
+ }
+ public function getAllowed()
+ {
+ return $this->allowed;
+ }
+ public function setException($exception)
+ {
+ $this->exception = $exception;
+ }
+ public function getException()
+ {
+ return $this->exception;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Activity.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Activity.php
new file mode 100644
index 00000000..6fe1f6dc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Activity.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Activity extends Google_Model
+{
+ protected $contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_ActivitySnippet';
+ protected $snippetDataType = '';
+
+ public function setContentDetails(Google_Service_YouTube_ActivityContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_ActivitySnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetails.php
new file mode 100644
index 00000000..58fe8e34
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetails.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetails extends Google_Model
+{
+ protected $bulletinType = 'Google_Service_YouTube_ActivityContentDetailsBulletin';
+ protected $bulletinDataType = '';
+ protected $channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem';
+ protected $channelItemDataType = '';
+ protected $commentType = 'Google_Service_YouTube_ActivityContentDetailsComment';
+ protected $commentDataType = '';
+ protected $favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite';
+ protected $favoriteDataType = '';
+ protected $likeType = 'Google_Service_YouTube_ActivityContentDetailsLike';
+ protected $likeDataType = '';
+ protected $playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem';
+ protected $playlistItemDataType = '';
+ protected $promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem';
+ protected $promotedItemDataType = '';
+ protected $recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation';
+ protected $recommendationDataType = '';
+ protected $socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial';
+ protected $socialDataType = '';
+ protected $subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription';
+ protected $subscriptionDataType = '';
+ protected $uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload';
+ protected $uploadDataType = '';
+
+ public function setBulletin(Google_Service_YouTube_ActivityContentDetailsBulletin $bulletin)
+ {
+ $this->bulletin = $bulletin;
+ }
+ public function getBulletin()
+ {
+ return $this->bulletin;
+ }
+ public function setChannelItem(Google_Service_YouTube_ActivityContentDetailsChannelItem $channelItem)
+ {
+ $this->channelItem = $channelItem;
+ }
+ public function getChannelItem()
+ {
+ return $this->channelItem;
+ }
+ public function setComment(Google_Service_YouTube_ActivityContentDetailsComment $comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setFavorite(Google_Service_YouTube_ActivityContentDetailsFavorite $favorite)
+ {
+ $this->favorite = $favorite;
+ }
+ public function getFavorite()
+ {
+ return $this->favorite;
+ }
+ public function setLike(Google_Service_YouTube_ActivityContentDetailsLike $like)
+ {
+ $this->like = $like;
+ }
+ public function getLike()
+ {
+ return $this->like;
+ }
+ public function setPlaylistItem(Google_Service_YouTube_ActivityContentDetailsPlaylistItem $playlistItem)
+ {
+ $this->playlistItem = $playlistItem;
+ }
+ public function getPlaylistItem()
+ {
+ return $this->playlistItem;
+ }
+ public function setPromotedItem(Google_Service_YouTube_ActivityContentDetailsPromotedItem $promotedItem)
+ {
+ $this->promotedItem = $promotedItem;
+ }
+ public function getPromotedItem()
+ {
+ return $this->promotedItem;
+ }
+ public function setRecommendation(Google_Service_YouTube_ActivityContentDetailsRecommendation $recommendation)
+ {
+ $this->recommendation = $recommendation;
+ }
+ public function getRecommendation()
+ {
+ return $this->recommendation;
+ }
+ public function setSocial(Google_Service_YouTube_ActivityContentDetailsSocial $social)
+ {
+ $this->social = $social;
+ }
+ public function getSocial()
+ {
+ return $this->social;
+ }
+ public function setSubscription(Google_Service_YouTube_ActivityContentDetailsSubscription $subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
+ }
+ public function setUpload(Google_Service_YouTube_ActivityContentDetailsUpload $upload)
+ {
+ $this->upload = $upload;
+ }
+ public function getUpload()
+ {
+ return $this->upload;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsBulletin.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsBulletin.php
new file mode 100644
index 00000000..781ac027
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsBulletin.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsBulletin extends Google_Model
+{
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsChannelItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsChannelItem.php
new file mode 100644
index 00000000..4880bd12
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsChannelItem.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsChannelItem extends Google_Model
+{
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsComment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsComment.php
new file mode 100644
index 00000000..5d3c0f76
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsComment.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsComment extends Google_Model
+{
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsFavorite.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsFavorite.php
new file mode 100644
index 00000000..3a20df97
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsFavorite.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsFavorite extends Google_Model
+{
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsLike.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsLike.php
new file mode 100644
index 00000000..565f74a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsLike.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsLike extends Google_Model
+{
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPlaylistItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPlaylistItem.php
new file mode 100644
index 00000000..ab73188e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPlaylistItem.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsPlaylistItem extends Google_Model
+{
+ public $playlistId;
+ public $playlistItemId;
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setPlaylistId($playlistId)
+ {
+ $this->playlistId = $playlistId;
+ }
+ public function getPlaylistId()
+ {
+ return $this->playlistId;
+ }
+ public function setPlaylistItemId($playlistItemId)
+ {
+ $this->playlistItemId = $playlistItemId;
+ }
+ public function getPlaylistItemId()
+ {
+ return $this->playlistItemId;
+ }
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPromotedItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPromotedItem.php
new file mode 100644
index 00000000..4c385b8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsPromotedItem.php
@@ -0,0 +1,112 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsPromotedItem extends Google_Collection
+{
+ protected $collection_key = 'impressionUrl';
+ public $adTag;
+ public $clickTrackingUrl;
+ public $creativeViewUrl;
+ public $ctaType;
+ public $customCtaButtonText;
+ public $descriptionText;
+ public $destinationUrl;
+ public $forecastingUrl;
+ public $impressionUrl;
+ public $videoId;
+
+ public function setAdTag($adTag)
+ {
+ $this->adTag = $adTag;
+ }
+ public function getAdTag()
+ {
+ return $this->adTag;
+ }
+ public function setClickTrackingUrl($clickTrackingUrl)
+ {
+ $this->clickTrackingUrl = $clickTrackingUrl;
+ }
+ public function getClickTrackingUrl()
+ {
+ return $this->clickTrackingUrl;
+ }
+ public function setCreativeViewUrl($creativeViewUrl)
+ {
+ $this->creativeViewUrl = $creativeViewUrl;
+ }
+ public function getCreativeViewUrl()
+ {
+ return $this->creativeViewUrl;
+ }
+ public function setCtaType($ctaType)
+ {
+ $this->ctaType = $ctaType;
+ }
+ public function getCtaType()
+ {
+ return $this->ctaType;
+ }
+ public function setCustomCtaButtonText($customCtaButtonText)
+ {
+ $this->customCtaButtonText = $customCtaButtonText;
+ }
+ public function getCustomCtaButtonText()
+ {
+ return $this->customCtaButtonText;
+ }
+ public function setDescriptionText($descriptionText)
+ {
+ $this->descriptionText = $descriptionText;
+ }
+ public function getDescriptionText()
+ {
+ return $this->descriptionText;
+ }
+ public function setDestinationUrl($destinationUrl)
+ {
+ $this->destinationUrl = $destinationUrl;
+ }
+ public function getDestinationUrl()
+ {
+ return $this->destinationUrl;
+ }
+ public function setForecastingUrl($forecastingUrl)
+ {
+ $this->forecastingUrl = $forecastingUrl;
+ }
+ public function getForecastingUrl()
+ {
+ return $this->forecastingUrl;
+ }
+ public function setImpressionUrl($impressionUrl)
+ {
+ $this->impressionUrl = $impressionUrl;
+ }
+ public function getImpressionUrl()
+ {
+ return $this->impressionUrl;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsRecommendation.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsRecommendation.php
new file mode 100644
index 00000000..db75327c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsRecommendation.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsRecommendation extends Google_Model
+{
+ public $reason;
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+ protected $seedResourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $seedResourceIdDataType = '';
+
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setSeedResourceId(Google_Service_YouTube_ResourceId $seedResourceId)
+ {
+ $this->seedResourceId = $seedResourceId;
+ }
+ public function getSeedResourceId()
+ {
+ return $this->seedResourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSocial.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSocial.php
new file mode 100644
index 00000000..c2aeb6dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSocial.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsSocial extends Google_Model
+{
+ public $author;
+ public $imageUrl;
+ public $referenceUrl;
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+ public $type;
+
+ public function setAuthor($author)
+ {
+ $this->author = $author;
+ }
+ public function getAuthor()
+ {
+ return $this->author;
+ }
+ public function setImageUrl($imageUrl)
+ {
+ $this->imageUrl = $imageUrl;
+ }
+ public function getImageUrl()
+ {
+ return $this->imageUrl;
+ }
+ public function setReferenceUrl($referenceUrl)
+ {
+ $this->referenceUrl = $referenceUrl;
+ }
+ public function getReferenceUrl()
+ {
+ return $this->referenceUrl;
+ }
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSubscription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSubscription.php
new file mode 100644
index 00000000..d394ef33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsSubscription.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsSubscription extends Google_Model
+{
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsUpload.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsUpload.php
new file mode 100644
index 00000000..c642753d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityContentDetailsUpload.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityContentDetailsUpload extends Google_Model
+{
+ public $videoId;
+
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityListResponse.php
new file mode 100644
index 00000000..4c8f1db2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivityListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivityListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Activity';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivitySnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivitySnippet.php
new file mode 100644
index 00000000..5e67c25e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ActivitySnippet.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ActivitySnippet extends Google_Model
+{
+ public $channelId;
+ public $channelTitle;
+ public $description;
+ public $groupId;
+ public $publishedAt;
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+ public $type;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelTitle($channelTitle)
+ {
+ $this->channelTitle = $channelTitle;
+ }
+ public function getChannelTitle()
+ {
+ return $this->channelTitle;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setGroupId($groupId)
+ {
+ $this->groupId = $groupId;
+ }
+ public function getGroupId()
+ {
+ return $this->groupId;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Caption.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Caption.php
new file mode 100644
index 00000000..9fe9edaa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Caption.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Caption extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_CaptionSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionListResponse.php
new file mode 100644
index 00000000..6d1eba6a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionListResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CaptionListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Caption';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionSnippet.php
new file mode 100644
index 00000000..c37ce942
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CaptionSnippet.php
@@ -0,0 +1,138 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CaptionSnippet extends Google_Model
+{
+ public $audioTrackType;
+ public $failureReason;
+ public $isAutoSynced;
+ public $isCC;
+ public $isDraft;
+ public $isEasyReader;
+ public $isLarge;
+ public $language;
+ public $lastUpdated;
+ public $name;
+ public $status;
+ public $trackKind;
+ public $videoId;
+
+ public function setAudioTrackType($audioTrackType)
+ {
+ $this->audioTrackType = $audioTrackType;
+ }
+ public function getAudioTrackType()
+ {
+ return $this->audioTrackType;
+ }
+ public function setFailureReason($failureReason)
+ {
+ $this->failureReason = $failureReason;
+ }
+ public function getFailureReason()
+ {
+ return $this->failureReason;
+ }
+ public function setIsAutoSynced($isAutoSynced)
+ {
+ $this->isAutoSynced = $isAutoSynced;
+ }
+ public function getIsAutoSynced()
+ {
+ return $this->isAutoSynced;
+ }
+ public function setIsCC($isCC)
+ {
+ $this->isCC = $isCC;
+ }
+ public function getIsCC()
+ {
+ return $this->isCC;
+ }
+ public function setIsDraft($isDraft)
+ {
+ $this->isDraft = $isDraft;
+ }
+ public function getIsDraft()
+ {
+ return $this->isDraft;
+ }
+ public function setIsEasyReader($isEasyReader)
+ {
+ $this->isEasyReader = $isEasyReader;
+ }
+ public function getIsEasyReader()
+ {
+ return $this->isEasyReader;
+ }
+ public function setIsLarge($isLarge)
+ {
+ $this->isLarge = $isLarge;
+ }
+ public function getIsLarge()
+ {
+ return $this->isLarge;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setLastUpdated($lastUpdated)
+ {
+ $this->lastUpdated = $lastUpdated;
+ }
+ public function getLastUpdated()
+ {
+ return $this->lastUpdated;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTrackKind($trackKind)
+ {
+ $this->trackKind = $trackKind;
+ }
+ public function getTrackKind()
+ {
+ return $this->trackKind;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CdnSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CdnSettings.php
new file mode 100644
index 00000000..4c334b35
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CdnSettings.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CdnSettings extends Google_Model
+{
+ public $format;
+ public $frameRate;
+ protected $ingestionInfoType = 'Google_Service_YouTube_IngestionInfo';
+ protected $ingestionInfoDataType = '';
+ public $ingestionType;
+ public $resolution;
+
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setFrameRate($frameRate)
+ {
+ $this->frameRate = $frameRate;
+ }
+ public function getFrameRate()
+ {
+ return $this->frameRate;
+ }
+ public function setIngestionInfo(Google_Service_YouTube_IngestionInfo $ingestionInfo)
+ {
+ $this->ingestionInfo = $ingestionInfo;
+ }
+ public function getIngestionInfo()
+ {
+ return $this->ingestionInfo;
+ }
+ public function setIngestionType($ingestionType)
+ {
+ $this->ingestionType = $ingestionType;
+ }
+ public function getIngestionType()
+ {
+ return $this->ingestionType;
+ }
+ public function setResolution($resolution)
+ {
+ $this->resolution = $resolution;
+ }
+ public function getResolution()
+ {
+ return $this->resolution;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Channel.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Channel.php
new file mode 100644
index 00000000..9800cd59
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Channel.php
@@ -0,0 +1,158 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Channel extends Google_Model
+{
+ protected $auditDetailsType = 'Google_Service_YouTube_ChannelAuditDetails';
+ protected $auditDetailsDataType = '';
+ protected $brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings';
+ protected $brandingSettingsDataType = '';
+ protected $contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails';
+ protected $contentDetailsDataType = '';
+ protected $contentOwnerDetailsType = 'Google_Service_YouTube_ChannelContentOwnerDetails';
+ protected $contentOwnerDetailsDataType = '';
+ protected $conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings';
+ protected $conversionPingsDataType = '';
+ public $etag;
+ public $id;
+ protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion';
+ protected $invideoPromotionDataType = '';
+ public $kind;
+ protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization';
+ protected $localizationsDataType = 'map';
+ protected $snippetType = 'Google_Service_YouTube_ChannelSnippet';
+ protected $snippetDataType = '';
+ protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics';
+ protected $statisticsDataType = '';
+ protected $statusType = 'Google_Service_YouTube_ChannelStatus';
+ protected $statusDataType = '';
+ protected $topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails';
+ protected $topicDetailsDataType = '';
+
+ public function setAuditDetails(Google_Service_YouTube_ChannelAuditDetails $auditDetails)
+ {
+ $this->auditDetails = $auditDetails;
+ }
+ public function getAuditDetails()
+ {
+ return $this->auditDetails;
+ }
+ public function setBrandingSettings(Google_Service_YouTube_ChannelBrandingSettings $brandingSettings)
+ {
+ $this->brandingSettings = $brandingSettings;
+ }
+ public function getBrandingSettings()
+ {
+ return $this->brandingSettings;
+ }
+ public function setContentDetails(Google_Service_YouTube_ChannelContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setContentOwnerDetails(Google_Service_YouTube_ChannelContentOwnerDetails $contentOwnerDetails)
+ {
+ $this->contentOwnerDetails = $contentOwnerDetails;
+ }
+ public function getContentOwnerDetails()
+ {
+ return $this->contentOwnerDetails;
+ }
+ public function setConversionPings(Google_Service_YouTube_ChannelConversionPings $conversionPings)
+ {
+ $this->conversionPings = $conversionPings;
+ }
+ public function getConversionPings()
+ {
+ return $this->conversionPings;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInvideoPromotion(Google_Service_YouTube_InvideoPromotion $invideoPromotion)
+ {
+ $this->invideoPromotion = $invideoPromotion;
+ }
+ public function getInvideoPromotion()
+ {
+ return $this->invideoPromotion;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocalizations($localizations)
+ {
+ $this->localizations = $localizations;
+ }
+ public function getLocalizations()
+ {
+ return $this->localizations;
+ }
+ public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setStatistics(Google_Service_YouTube_ChannelStatistics $statistics)
+ {
+ $this->statistics = $statistics;
+ }
+ public function getStatistics()
+ {
+ return $this->statistics;
+ }
+ public function setStatus(Google_Service_YouTube_ChannelStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTopicDetails(Google_Service_YouTube_ChannelTopicDetails $topicDetails)
+ {
+ $this->topicDetails = $topicDetails;
+ }
+ public function getTopicDetails()
+ {
+ return $this->topicDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php
new file mode 100644
index 00000000..2a6907cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelAuditDetails.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelAuditDetails extends Google_Model
+{
+ public $communityGuidelinesGoodStanding;
+ public $contentIdClaimsGoodStanding;
+ public $copyrightStrikesGoodStanding;
+ public $overallGoodStanding;
+
+ public function setCommunityGuidelinesGoodStanding($communityGuidelinesGoodStanding)
+ {
+ $this->communityGuidelinesGoodStanding = $communityGuidelinesGoodStanding;
+ }
+ public function getCommunityGuidelinesGoodStanding()
+ {
+ return $this->communityGuidelinesGoodStanding;
+ }
+ public function setContentIdClaimsGoodStanding($contentIdClaimsGoodStanding)
+ {
+ $this->contentIdClaimsGoodStanding = $contentIdClaimsGoodStanding;
+ }
+ public function getContentIdClaimsGoodStanding()
+ {
+ return $this->contentIdClaimsGoodStanding;
+ }
+ public function setCopyrightStrikesGoodStanding($copyrightStrikesGoodStanding)
+ {
+ $this->copyrightStrikesGoodStanding = $copyrightStrikesGoodStanding;
+ }
+ public function getCopyrightStrikesGoodStanding()
+ {
+ return $this->copyrightStrikesGoodStanding;
+ }
+ public function setOverallGoodStanding($overallGoodStanding)
+ {
+ $this->overallGoodStanding = $overallGoodStanding;
+ }
+ public function getOverallGoodStanding()
+ {
+ return $this->overallGoodStanding;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBannerResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBannerResource.php
new file mode 100644
index 00000000..58f48d58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBannerResource.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelBannerResource extends Google_Model
+{
+ public $etag;
+ public $kind;
+ public $url;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBrandingSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBrandingSettings.php
new file mode 100644
index 00000000..e2d4a935
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelBrandingSettings.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelBrandingSettings extends Google_Collection
+{
+ protected $collection_key = 'hints';
+ protected $channelType = 'Google_Service_YouTube_ChannelSettings';
+ protected $channelDataType = '';
+ protected $hintsType = 'Google_Service_YouTube_PropertyValue';
+ protected $hintsDataType = 'array';
+ protected $imageType = 'Google_Service_YouTube_ImageSettings';
+ protected $imageDataType = '';
+ protected $watchType = 'Google_Service_YouTube_WatchSettings';
+ protected $watchDataType = '';
+
+ public function setChannel(Google_Service_YouTube_ChannelSettings $channel)
+ {
+ $this->channel = $channel;
+ }
+ public function getChannel()
+ {
+ return $this->channel;
+ }
+ public function setHints($hints)
+ {
+ $this->hints = $hints;
+ }
+ public function getHints()
+ {
+ return $this->hints;
+ }
+ public function setImage(Google_Service_YouTube_ImageSettings $image)
+ {
+ $this->image = $image;
+ }
+ public function getImage()
+ {
+ return $this->image;
+ }
+ public function setWatch(Google_Service_YouTube_WatchSettings $watch)
+ {
+ $this->watch = $watch;
+ }
+ public function getWatch()
+ {
+ return $this->watch;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetails.php
new file mode 100644
index 00000000..d397e718
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetails.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelContentDetails extends Google_Model
+{
+ protected $relatedPlaylistsType = 'Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists';
+ protected $relatedPlaylistsDataType = '';
+
+ public function setRelatedPlaylists(Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists $relatedPlaylists)
+ {
+ $this->relatedPlaylists = $relatedPlaylists;
+ }
+ public function getRelatedPlaylists()
+ {
+ return $this->relatedPlaylists;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetailsRelatedPlaylists.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetailsRelatedPlaylists.php
new file mode 100644
index 00000000..efb14984
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentDetailsRelatedPlaylists.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelContentDetailsRelatedPlaylists extends Google_Model
+{
+ public $favorites;
+ public $likes;
+ public $uploads;
+ public $watchHistory;
+ public $watchLater;
+
+ public function setFavorites($favorites)
+ {
+ $this->favorites = $favorites;
+ }
+ public function getFavorites()
+ {
+ return $this->favorites;
+ }
+ public function setLikes($likes)
+ {
+ $this->likes = $likes;
+ }
+ public function getLikes()
+ {
+ return $this->likes;
+ }
+ public function setUploads($uploads)
+ {
+ $this->uploads = $uploads;
+ }
+ public function getUploads()
+ {
+ return $this->uploads;
+ }
+ public function setWatchHistory($watchHistory)
+ {
+ $this->watchHistory = $watchHistory;
+ }
+ public function getWatchHistory()
+ {
+ return $this->watchHistory;
+ }
+ public function setWatchLater($watchLater)
+ {
+ $this->watchLater = $watchLater;
+ }
+ public function getWatchLater()
+ {
+ return $this->watchLater;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentOwnerDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentOwnerDetails.php
new file mode 100644
index 00000000..0a0bfaf4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelContentOwnerDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelContentOwnerDetails extends Google_Model
+{
+ public $contentOwner;
+ public $timeLinked;
+
+ public function setContentOwner($contentOwner)
+ {
+ $this->contentOwner = $contentOwner;
+ }
+ public function getContentOwner()
+ {
+ return $this->contentOwner;
+ }
+ public function setTimeLinked($timeLinked)
+ {
+ $this->timeLinked = $timeLinked;
+ }
+ public function getTimeLinked()
+ {
+ return $this->timeLinked;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPing.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPing.php
new file mode 100644
index 00000000..16cd26a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPing.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelConversionPing extends Google_Model
+{
+ public $context;
+ public $conversionUrl;
+
+ public function setContext($context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setConversionUrl($conversionUrl)
+ {
+ $this->conversionUrl = $conversionUrl;
+ }
+ public function getConversionUrl()
+ {
+ return $this->conversionUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPings.php
new file mode 100644
index 00000000..801e11bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelConversionPings.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelConversionPings extends Google_Collection
+{
+ protected $collection_key = 'pings';
+ protected $pingsType = 'Google_Service_YouTube_ChannelConversionPing';
+ protected $pingsDataType = 'array';
+
+ public function setPings($pings)
+ {
+ $this->pings = $pings;
+ }
+ public function getPings()
+ {
+ return $this->pings;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelListResponse.php
new file mode 100644
index 00000000..89f9d08d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Channel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelLocalization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelLocalization.php
new file mode 100644
index 00000000..388ed7d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelLocalization.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelLocalization extends Google_Model
+{
+ public $description;
+ public $title;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelProfileDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelProfileDetails.php
new file mode 100644
index 00000000..ec10ae72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelProfileDetails.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelProfileDetails extends Google_Model
+{
+ public $channelId;
+ public $channelUrl;
+ public $displayName;
+ public $profileImageUrl;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelUrl($channelUrl)
+ {
+ $this->channelUrl = $channelUrl;
+ }
+ public function getChannelUrl()
+ {
+ return $this->channelUrl;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setProfileImageUrl($profileImageUrl)
+ {
+ $this->profileImageUrl = $profileImageUrl;
+ }
+ public function getProfileImageUrl()
+ {
+ return $this->profileImageUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSection.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSection.php
new file mode 100644
index 00000000..83218e96
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSection.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSection extends Google_Model
+{
+ protected $contentDetailsType = 'Google_Service_YouTube_ChannelSectionContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization';
+ protected $localizationsDataType = 'map';
+ protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet';
+ protected $snippetDataType = '';
+ protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting';
+ protected $targetingDataType = '';
+
+ public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocalizations($localizations)
+ {
+ $this->localizations = $localizations;
+ }
+ public function getLocalizations()
+ {
+ return $this->localizations;
+ }
+ public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting)
+ {
+ $this->targeting = $targeting;
+ }
+ public function getTargeting()
+ {
+ return $this->targeting;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionContentDetails.php
new file mode 100644
index 00000000..8bcb8e98
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionContentDetails.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection
+{
+ protected $collection_key = 'playlists';
+ public $channels;
+ public $playlists;
+
+ public function setChannels($channels)
+ {
+ $this->channels = $channels;
+ }
+ public function getChannels()
+ {
+ return $this->channels;
+ }
+ public function setPlaylists($playlists)
+ {
+ $this->playlists = $playlists;
+ }
+ public function getPlaylists()
+ {
+ return $this->playlists;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionListResponse.php
new file mode 100644
index 00000000..eccac741
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionListResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_ChannelSection';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionLocalization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionLocalization.php
new file mode 100644
index 00000000..6fb5e23a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionLocalization.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model
+{
+ public $title;
+
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionSnippet.php
new file mode 100644
index 00000000..3209a4c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionSnippet.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model
+{
+ public $channelId;
+ public $defaultLanguage;
+ protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization';
+ protected $localizedDataType = '';
+ public $position;
+ public $style;
+ public $title;
+ public $type;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized)
+ {
+ $this->localized = $localized;
+ }
+ public function getLocalized()
+ {
+ return $this->localized;
+ }
+ public function setPosition($position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setStyle($style)
+ {
+ $this->style = $style;
+ }
+ public function getStyle()
+ {
+ return $this->style;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionTargeting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionTargeting.php
new file mode 100644
index 00000000..f72036bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSectionTargeting.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection
+{
+ protected $collection_key = 'regions';
+ public $countries;
+ public $languages;
+ public $regions;
+
+ public function setCountries($countries)
+ {
+ $this->countries = $countries;
+ }
+ public function getCountries()
+ {
+ return $this->countries;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+ public function setRegions($regions)
+ {
+ $this->regions = $regions;
+ }
+ public function getRegions()
+ {
+ return $this->regions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSettings.php
new file mode 100644
index 00000000..24669344
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSettings.php
@@ -0,0 +1,148 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSettings extends Google_Collection
+{
+ protected $collection_key = 'featuredChannelsUrls';
+ public $country;
+ public $defaultLanguage;
+ public $defaultTab;
+ public $description;
+ public $featuredChannelsTitle;
+ public $featuredChannelsUrls;
+ public $keywords;
+ public $moderateComments;
+ public $profileColor;
+ public $showBrowseView;
+ public $showRelatedChannels;
+ public $title;
+ public $trackingAnalyticsAccountId;
+ public $unsubscribedTrailer;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setDefaultTab($defaultTab)
+ {
+ $this->defaultTab = $defaultTab;
+ }
+ public function getDefaultTab()
+ {
+ return $this->defaultTab;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFeaturedChannelsTitle($featuredChannelsTitle)
+ {
+ $this->featuredChannelsTitle = $featuredChannelsTitle;
+ }
+ public function getFeaturedChannelsTitle()
+ {
+ return $this->featuredChannelsTitle;
+ }
+ public function setFeaturedChannelsUrls($featuredChannelsUrls)
+ {
+ $this->featuredChannelsUrls = $featuredChannelsUrls;
+ }
+ public function getFeaturedChannelsUrls()
+ {
+ return $this->featuredChannelsUrls;
+ }
+ public function setKeywords($keywords)
+ {
+ $this->keywords = $keywords;
+ }
+ public function getKeywords()
+ {
+ return $this->keywords;
+ }
+ public function setModerateComments($moderateComments)
+ {
+ $this->moderateComments = $moderateComments;
+ }
+ public function getModerateComments()
+ {
+ return $this->moderateComments;
+ }
+ public function setProfileColor($profileColor)
+ {
+ $this->profileColor = $profileColor;
+ }
+ public function getProfileColor()
+ {
+ return $this->profileColor;
+ }
+ public function setShowBrowseView($showBrowseView)
+ {
+ $this->showBrowseView = $showBrowseView;
+ }
+ public function getShowBrowseView()
+ {
+ return $this->showBrowseView;
+ }
+ public function setShowRelatedChannels($showRelatedChannels)
+ {
+ $this->showRelatedChannels = $showRelatedChannels;
+ }
+ public function getShowRelatedChannels()
+ {
+ return $this->showRelatedChannels;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setTrackingAnalyticsAccountId($trackingAnalyticsAccountId)
+ {
+ $this->trackingAnalyticsAccountId = $trackingAnalyticsAccountId;
+ }
+ public function getTrackingAnalyticsAccountId()
+ {
+ return $this->trackingAnalyticsAccountId;
+ }
+ public function setUnsubscribedTrailer($unsubscribedTrailer)
+ {
+ $this->unsubscribedTrailer = $unsubscribedTrailer;
+ }
+ public function getUnsubscribedTrailer()
+ {
+ return $this->unsubscribedTrailer;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSnippet.php
new file mode 100644
index 00000000..318d3b45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelSnippet.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelSnippet extends Google_Model
+{
+ public $country;
+ public $customUrl;
+ public $defaultLanguage;
+ public $description;
+ protected $localizedType = 'Google_Service_YouTube_ChannelLocalization';
+ protected $localizedDataType = '';
+ public $publishedAt;
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setCustomUrl($customUrl)
+ {
+ $this->customUrl = $customUrl;
+ }
+ public function getCustomUrl()
+ {
+ return $this->customUrl;
+ }
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized)
+ {
+ $this->localized = $localized;
+ }
+ public function getLocalized()
+ {
+ return $this->localized;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatistics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatistics.php
new file mode 100644
index 00000000..f5c07786
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatistics.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelStatistics extends Google_Model
+{
+ public $commentCount;
+ public $hiddenSubscriberCount;
+ public $subscriberCount;
+ public $videoCount;
+ public $viewCount;
+
+ public function setCommentCount($commentCount)
+ {
+ $this->commentCount = $commentCount;
+ }
+ public function getCommentCount()
+ {
+ return $this->commentCount;
+ }
+ public function setHiddenSubscriberCount($hiddenSubscriberCount)
+ {
+ $this->hiddenSubscriberCount = $hiddenSubscriberCount;
+ }
+ public function getHiddenSubscriberCount()
+ {
+ return $this->hiddenSubscriberCount;
+ }
+ public function setSubscriberCount($subscriberCount)
+ {
+ $this->subscriberCount = $subscriberCount;
+ }
+ public function getSubscriberCount()
+ {
+ return $this->subscriberCount;
+ }
+ public function setVideoCount($videoCount)
+ {
+ $this->videoCount = $videoCount;
+ }
+ public function getVideoCount()
+ {
+ return $this->videoCount;
+ }
+ public function setViewCount($viewCount)
+ {
+ $this->viewCount = $viewCount;
+ }
+ public function getViewCount()
+ {
+ return $this->viewCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatus.php
new file mode 100644
index 00000000..ff4bcaaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelStatus.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelStatus extends Google_Model
+{
+ public $isLinked;
+ public $longUploadsStatus;
+ public $privacyStatus;
+
+ public function setIsLinked($isLinked)
+ {
+ $this->isLinked = $isLinked;
+ }
+ public function getIsLinked()
+ {
+ return $this->isLinked;
+ }
+ public function setLongUploadsStatus($longUploadsStatus)
+ {
+ $this->longUploadsStatus = $longUploadsStatus;
+ }
+ public function getLongUploadsStatus()
+ {
+ return $this->longUploadsStatus;
+ }
+ public function setPrivacyStatus($privacyStatus)
+ {
+ $this->privacyStatus = $privacyStatus;
+ }
+ public function getPrivacyStatus()
+ {
+ return $this->privacyStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelTopicDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelTopicDetails.php
new file mode 100644
index 00000000..8c2b336c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ChannelTopicDetails.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection
+{
+ protected $collection_key = 'topicIds';
+ public $topicCategories;
+ public $topicIds;
+
+ public function setTopicCategories($topicCategories)
+ {
+ $this->topicCategories = $topicCategories;
+ }
+ public function getTopicCategories()
+ {
+ return $this->topicCategories;
+ }
+ public function setTopicIds($topicIds)
+ {
+ $this->topicIds = $topicIds;
+ }
+ public function getTopicIds()
+ {
+ return $this->topicIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Comment.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Comment.php
new file mode 100644
index 00000000..f0bc3332
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Comment.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Comment extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_CommentSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentListResponse.php
new file mode 100644
index 00000000..710a32e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentListResponse.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CommentListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Comment';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentSnippet.php
new file mode 100644
index 00000000..8f44790a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentSnippet.php
@@ -0,0 +1,156 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CommentSnippet extends Google_Model
+{
+ public $authorChannelId;
+ public $authorChannelUrl;
+ public $authorDisplayName;
+ public $authorProfileImageUrl;
+ public $canRate;
+ public $channelId;
+ public $likeCount;
+ public $moderationStatus;
+ public $parentId;
+ public $publishedAt;
+ public $textDisplay;
+ public $textOriginal;
+ public $updatedAt;
+ public $videoId;
+ public $viewerRating;
+
+ public function setAuthorChannelId($authorChannelId)
+ {
+ $this->authorChannelId = $authorChannelId;
+ }
+ public function getAuthorChannelId()
+ {
+ return $this->authorChannelId;
+ }
+ public function setAuthorChannelUrl($authorChannelUrl)
+ {
+ $this->authorChannelUrl = $authorChannelUrl;
+ }
+ public function getAuthorChannelUrl()
+ {
+ return $this->authorChannelUrl;
+ }
+ public function setAuthorDisplayName($authorDisplayName)
+ {
+ $this->authorDisplayName = $authorDisplayName;
+ }
+ public function getAuthorDisplayName()
+ {
+ return $this->authorDisplayName;
+ }
+ public function setAuthorProfileImageUrl($authorProfileImageUrl)
+ {
+ $this->authorProfileImageUrl = $authorProfileImageUrl;
+ }
+ public function getAuthorProfileImageUrl()
+ {
+ return $this->authorProfileImageUrl;
+ }
+ public function setCanRate($canRate)
+ {
+ $this->canRate = $canRate;
+ }
+ public function getCanRate()
+ {
+ return $this->canRate;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setLikeCount($likeCount)
+ {
+ $this->likeCount = $likeCount;
+ }
+ public function getLikeCount()
+ {
+ return $this->likeCount;
+ }
+ public function setModerationStatus($moderationStatus)
+ {
+ $this->moderationStatus = $moderationStatus;
+ }
+ public function getModerationStatus()
+ {
+ return $this->moderationStatus;
+ }
+ public function setParentId($parentId)
+ {
+ $this->parentId = $parentId;
+ }
+ public function getParentId()
+ {
+ return $this->parentId;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setTextDisplay($textDisplay)
+ {
+ $this->textDisplay = $textDisplay;
+ }
+ public function getTextDisplay()
+ {
+ return $this->textDisplay;
+ }
+ public function setTextOriginal($textOriginal)
+ {
+ $this->textOriginal = $textOriginal;
+ }
+ public function getTextOriginal()
+ {
+ return $this->textOriginal;
+ }
+ public function setUpdatedAt($updatedAt)
+ {
+ $this->updatedAt = $updatedAt;
+ }
+ public function getUpdatedAt()
+ {
+ return $this->updatedAt;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+ public function setViewerRating($viewerRating)
+ {
+ $this->viewerRating = $viewerRating;
+ }
+ public function getViewerRating()
+ {
+ return $this->viewerRating;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThread.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThread.php
new file mode 100644
index 00000000..f5e85fae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThread.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CommentThread extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies';
+ protected $repliesDataType = '';
+ protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+ public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadListResponse.php
new file mode 100644
index 00000000..eeab0f03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadListResponse.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_CommentThread';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadReplies.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadReplies.php
new file mode 100644
index 00000000..1077c6b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadReplies.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CommentThreadReplies extends Google_Collection
+{
+ protected $collection_key = 'comments';
+ protected $commentsType = 'Google_Service_YouTube_Comment';
+ protected $commentsDataType = 'array';
+
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadSnippet.php
new file mode 100644
index 00000000..21f22ade
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/CommentThreadSnippet.php
@@ -0,0 +1,76 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_CommentThreadSnippet extends Google_Model
+{
+ public $canReply;
+ public $channelId;
+ public $isPublic;
+ protected $topLevelCommentType = 'Google_Service_YouTube_Comment';
+ protected $topLevelCommentDataType = '';
+ public $totalReplyCount;
+ public $videoId;
+
+ public function setCanReply($canReply)
+ {
+ $this->canReply = $canReply;
+ }
+ public function getCanReply()
+ {
+ return $this->canReply;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setIsPublic($isPublic)
+ {
+ $this->isPublic = $isPublic;
+ }
+ public function getIsPublic()
+ {
+ return $this->isPublic;
+ }
+ public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment)
+ {
+ $this->topLevelComment = $topLevelComment;
+ }
+ public function getTopLevelComment()
+ {
+ return $this->topLevelComment;
+ }
+ public function setTotalReplyCount($totalReplyCount)
+ {
+ $this->totalReplyCount = $totalReplyCount;
+ }
+ public function getTotalReplyCount()
+ {
+ return $this->totalReplyCount;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ContentRating.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ContentRating.php
new file mode 100644
index 00000000..77652392
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ContentRating.php
@@ -0,0 +1,634 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ContentRating extends Google_Collection
+{
+ protected $collection_key = 'fpbRatingReasons';
+ public $acbRating;
+ public $agcomRating;
+ public $anatelRating;
+ public $bbfcRating;
+ public $bfvcRating;
+ public $bmukkRating;
+ public $catvRating;
+ public $catvfrRating;
+ public $cbfcRating;
+ public $cccRating;
+ public $cceRating;
+ public $chfilmRating;
+ public $chvrsRating;
+ public $cicfRating;
+ public $cnaRating;
+ public $cncRating;
+ public $csaRating;
+ public $cscfRating;
+ public $czfilmRating;
+ public $djctqRating;
+ public $djctqRatingReasons;
+ public $ecbmctRating;
+ public $eefilmRating;
+ public $egfilmRating;
+ public $eirinRating;
+ public $fcbmRating;
+ public $fcoRating;
+ public $fmocRating;
+ public $fpbRating;
+ public $fpbRatingReasons;
+ public $fskRating;
+ public $grfilmRating;
+ public $icaaRating;
+ public $ifcoRating;
+ public $ilfilmRating;
+ public $incaaRating;
+ public $kfcbRating;
+ public $kijkwijzerRating;
+ public $kmrbRating;
+ public $lsfRating;
+ public $mccaaRating;
+ public $mccypRating;
+ public $mcstRating;
+ public $mdaRating;
+ public $medietilsynetRating;
+ public $mekuRating;
+ public $mibacRating;
+ public $mocRating;
+ public $moctwRating;
+ public $mpaaRating;
+ public $mtrcbRating;
+ public $nbcRating;
+ public $nbcplRating;
+ public $nfrcRating;
+ public $nfvcbRating;
+ public $nkclvRating;
+ public $oflcRating;
+ public $pefilmRating;
+ public $rcnofRating;
+ public $resorteviolenciaRating;
+ public $rtcRating;
+ public $rteRating;
+ public $russiaRating;
+ public $skfilmRating;
+ public $smaisRating;
+ public $smsaRating;
+ public $tvpgRating;
+ public $ytRating;
+
+ public function setAcbRating($acbRating)
+ {
+ $this->acbRating = $acbRating;
+ }
+ public function getAcbRating()
+ {
+ return $this->acbRating;
+ }
+ public function setAgcomRating($agcomRating)
+ {
+ $this->agcomRating = $agcomRating;
+ }
+ public function getAgcomRating()
+ {
+ return $this->agcomRating;
+ }
+ public function setAnatelRating($anatelRating)
+ {
+ $this->anatelRating = $anatelRating;
+ }
+ public function getAnatelRating()
+ {
+ return $this->anatelRating;
+ }
+ public function setBbfcRating($bbfcRating)
+ {
+ $this->bbfcRating = $bbfcRating;
+ }
+ public function getBbfcRating()
+ {
+ return $this->bbfcRating;
+ }
+ public function setBfvcRating($bfvcRating)
+ {
+ $this->bfvcRating = $bfvcRating;
+ }
+ public function getBfvcRating()
+ {
+ return $this->bfvcRating;
+ }
+ public function setBmukkRating($bmukkRating)
+ {
+ $this->bmukkRating = $bmukkRating;
+ }
+ public function getBmukkRating()
+ {
+ return $this->bmukkRating;
+ }
+ public function setCatvRating($catvRating)
+ {
+ $this->catvRating = $catvRating;
+ }
+ public function getCatvRating()
+ {
+ return $this->catvRating;
+ }
+ public function setCatvfrRating($catvfrRating)
+ {
+ $this->catvfrRating = $catvfrRating;
+ }
+ public function getCatvfrRating()
+ {
+ return $this->catvfrRating;
+ }
+ public function setCbfcRating($cbfcRating)
+ {
+ $this->cbfcRating = $cbfcRating;
+ }
+ public function getCbfcRating()
+ {
+ return $this->cbfcRating;
+ }
+ public function setCccRating($cccRating)
+ {
+ $this->cccRating = $cccRating;
+ }
+ public function getCccRating()
+ {
+ return $this->cccRating;
+ }
+ public function setCceRating($cceRating)
+ {
+ $this->cceRating = $cceRating;
+ }
+ public function getCceRating()
+ {
+ return $this->cceRating;
+ }
+ public function setChfilmRating($chfilmRating)
+ {
+ $this->chfilmRating = $chfilmRating;
+ }
+ public function getChfilmRating()
+ {
+ return $this->chfilmRating;
+ }
+ public function setChvrsRating($chvrsRating)
+ {
+ $this->chvrsRating = $chvrsRating;
+ }
+ public function getChvrsRating()
+ {
+ return $this->chvrsRating;
+ }
+ public function setCicfRating($cicfRating)
+ {
+ $this->cicfRating = $cicfRating;
+ }
+ public function getCicfRating()
+ {
+ return $this->cicfRating;
+ }
+ public function setCnaRating($cnaRating)
+ {
+ $this->cnaRating = $cnaRating;
+ }
+ public function getCnaRating()
+ {
+ return $this->cnaRating;
+ }
+ public function setCncRating($cncRating)
+ {
+ $this->cncRating = $cncRating;
+ }
+ public function getCncRating()
+ {
+ return $this->cncRating;
+ }
+ public function setCsaRating($csaRating)
+ {
+ $this->csaRating = $csaRating;
+ }
+ public function getCsaRating()
+ {
+ return $this->csaRating;
+ }
+ public function setCscfRating($cscfRating)
+ {
+ $this->cscfRating = $cscfRating;
+ }
+ public function getCscfRating()
+ {
+ return $this->cscfRating;
+ }
+ public function setCzfilmRating($czfilmRating)
+ {
+ $this->czfilmRating = $czfilmRating;
+ }
+ public function getCzfilmRating()
+ {
+ return $this->czfilmRating;
+ }
+ public function setDjctqRating($djctqRating)
+ {
+ $this->djctqRating = $djctqRating;
+ }
+ public function getDjctqRating()
+ {
+ return $this->djctqRating;
+ }
+ public function setDjctqRatingReasons($djctqRatingReasons)
+ {
+ $this->djctqRatingReasons = $djctqRatingReasons;
+ }
+ public function getDjctqRatingReasons()
+ {
+ return $this->djctqRatingReasons;
+ }
+ public function setEcbmctRating($ecbmctRating)
+ {
+ $this->ecbmctRating = $ecbmctRating;
+ }
+ public function getEcbmctRating()
+ {
+ return $this->ecbmctRating;
+ }
+ public function setEefilmRating($eefilmRating)
+ {
+ $this->eefilmRating = $eefilmRating;
+ }
+ public function getEefilmRating()
+ {
+ return $this->eefilmRating;
+ }
+ public function setEgfilmRating($egfilmRating)
+ {
+ $this->egfilmRating = $egfilmRating;
+ }
+ public function getEgfilmRating()
+ {
+ return $this->egfilmRating;
+ }
+ public function setEirinRating($eirinRating)
+ {
+ $this->eirinRating = $eirinRating;
+ }
+ public function getEirinRating()
+ {
+ return $this->eirinRating;
+ }
+ public function setFcbmRating($fcbmRating)
+ {
+ $this->fcbmRating = $fcbmRating;
+ }
+ public function getFcbmRating()
+ {
+ return $this->fcbmRating;
+ }
+ public function setFcoRating($fcoRating)
+ {
+ $this->fcoRating = $fcoRating;
+ }
+ public function getFcoRating()
+ {
+ return $this->fcoRating;
+ }
+ public function setFmocRating($fmocRating)
+ {
+ $this->fmocRating = $fmocRating;
+ }
+ public function getFmocRating()
+ {
+ return $this->fmocRating;
+ }
+ public function setFpbRating($fpbRating)
+ {
+ $this->fpbRating = $fpbRating;
+ }
+ public function getFpbRating()
+ {
+ return $this->fpbRating;
+ }
+ public function setFpbRatingReasons($fpbRatingReasons)
+ {
+ $this->fpbRatingReasons = $fpbRatingReasons;
+ }
+ public function getFpbRatingReasons()
+ {
+ return $this->fpbRatingReasons;
+ }
+ public function setFskRating($fskRating)
+ {
+ $this->fskRating = $fskRating;
+ }
+ public function getFskRating()
+ {
+ return $this->fskRating;
+ }
+ public function setGrfilmRating($grfilmRating)
+ {
+ $this->grfilmRating = $grfilmRating;
+ }
+ public function getGrfilmRating()
+ {
+ return $this->grfilmRating;
+ }
+ public function setIcaaRating($icaaRating)
+ {
+ $this->icaaRating = $icaaRating;
+ }
+ public function getIcaaRating()
+ {
+ return $this->icaaRating;
+ }
+ public function setIfcoRating($ifcoRating)
+ {
+ $this->ifcoRating = $ifcoRating;
+ }
+ public function getIfcoRating()
+ {
+ return $this->ifcoRating;
+ }
+ public function setIlfilmRating($ilfilmRating)
+ {
+ $this->ilfilmRating = $ilfilmRating;
+ }
+ public function getIlfilmRating()
+ {
+ return $this->ilfilmRating;
+ }
+ public function setIncaaRating($incaaRating)
+ {
+ $this->incaaRating = $incaaRating;
+ }
+ public function getIncaaRating()
+ {
+ return $this->incaaRating;
+ }
+ public function setKfcbRating($kfcbRating)
+ {
+ $this->kfcbRating = $kfcbRating;
+ }
+ public function getKfcbRating()
+ {
+ return $this->kfcbRating;
+ }
+ public function setKijkwijzerRating($kijkwijzerRating)
+ {
+ $this->kijkwijzerRating = $kijkwijzerRating;
+ }
+ public function getKijkwijzerRating()
+ {
+ return $this->kijkwijzerRating;
+ }
+ public function setKmrbRating($kmrbRating)
+ {
+ $this->kmrbRating = $kmrbRating;
+ }
+ public function getKmrbRating()
+ {
+ return $this->kmrbRating;
+ }
+ public function setLsfRating($lsfRating)
+ {
+ $this->lsfRating = $lsfRating;
+ }
+ public function getLsfRating()
+ {
+ return $this->lsfRating;
+ }
+ public function setMccaaRating($mccaaRating)
+ {
+ $this->mccaaRating = $mccaaRating;
+ }
+ public function getMccaaRating()
+ {
+ return $this->mccaaRating;
+ }
+ public function setMccypRating($mccypRating)
+ {
+ $this->mccypRating = $mccypRating;
+ }
+ public function getMccypRating()
+ {
+ return $this->mccypRating;
+ }
+ public function setMcstRating($mcstRating)
+ {
+ $this->mcstRating = $mcstRating;
+ }
+ public function getMcstRating()
+ {
+ return $this->mcstRating;
+ }
+ public function setMdaRating($mdaRating)
+ {
+ $this->mdaRating = $mdaRating;
+ }
+ public function getMdaRating()
+ {
+ return $this->mdaRating;
+ }
+ public function setMedietilsynetRating($medietilsynetRating)
+ {
+ $this->medietilsynetRating = $medietilsynetRating;
+ }
+ public function getMedietilsynetRating()
+ {
+ return $this->medietilsynetRating;
+ }
+ public function setMekuRating($mekuRating)
+ {
+ $this->mekuRating = $mekuRating;
+ }
+ public function getMekuRating()
+ {
+ return $this->mekuRating;
+ }
+ public function setMibacRating($mibacRating)
+ {
+ $this->mibacRating = $mibacRating;
+ }
+ public function getMibacRating()
+ {
+ return $this->mibacRating;
+ }
+ public function setMocRating($mocRating)
+ {
+ $this->mocRating = $mocRating;
+ }
+ public function getMocRating()
+ {
+ return $this->mocRating;
+ }
+ public function setMoctwRating($moctwRating)
+ {
+ $this->moctwRating = $moctwRating;
+ }
+ public function getMoctwRating()
+ {
+ return $this->moctwRating;
+ }
+ public function setMpaaRating($mpaaRating)
+ {
+ $this->mpaaRating = $mpaaRating;
+ }
+ public function getMpaaRating()
+ {
+ return $this->mpaaRating;
+ }
+ public function setMtrcbRating($mtrcbRating)
+ {
+ $this->mtrcbRating = $mtrcbRating;
+ }
+ public function getMtrcbRating()
+ {
+ return $this->mtrcbRating;
+ }
+ public function setNbcRating($nbcRating)
+ {
+ $this->nbcRating = $nbcRating;
+ }
+ public function getNbcRating()
+ {
+ return $this->nbcRating;
+ }
+ public function setNbcplRating($nbcplRating)
+ {
+ $this->nbcplRating = $nbcplRating;
+ }
+ public function getNbcplRating()
+ {
+ return $this->nbcplRating;
+ }
+ public function setNfrcRating($nfrcRating)
+ {
+ $this->nfrcRating = $nfrcRating;
+ }
+ public function getNfrcRating()
+ {
+ return $this->nfrcRating;
+ }
+ public function setNfvcbRating($nfvcbRating)
+ {
+ $this->nfvcbRating = $nfvcbRating;
+ }
+ public function getNfvcbRating()
+ {
+ return $this->nfvcbRating;
+ }
+ public function setNkclvRating($nkclvRating)
+ {
+ $this->nkclvRating = $nkclvRating;
+ }
+ public function getNkclvRating()
+ {
+ return $this->nkclvRating;
+ }
+ public function setOflcRating($oflcRating)
+ {
+ $this->oflcRating = $oflcRating;
+ }
+ public function getOflcRating()
+ {
+ return $this->oflcRating;
+ }
+ public function setPefilmRating($pefilmRating)
+ {
+ $this->pefilmRating = $pefilmRating;
+ }
+ public function getPefilmRating()
+ {
+ return $this->pefilmRating;
+ }
+ public function setRcnofRating($rcnofRating)
+ {
+ $this->rcnofRating = $rcnofRating;
+ }
+ public function getRcnofRating()
+ {
+ return $this->rcnofRating;
+ }
+ public function setResorteviolenciaRating($resorteviolenciaRating)
+ {
+ $this->resorteviolenciaRating = $resorteviolenciaRating;
+ }
+ public function getResorteviolenciaRating()
+ {
+ return $this->resorteviolenciaRating;
+ }
+ public function setRtcRating($rtcRating)
+ {
+ $this->rtcRating = $rtcRating;
+ }
+ public function getRtcRating()
+ {
+ return $this->rtcRating;
+ }
+ public function setRteRating($rteRating)
+ {
+ $this->rteRating = $rteRating;
+ }
+ public function getRteRating()
+ {
+ return $this->rteRating;
+ }
+ public function setRussiaRating($russiaRating)
+ {
+ $this->russiaRating = $russiaRating;
+ }
+ public function getRussiaRating()
+ {
+ return $this->russiaRating;
+ }
+ public function setSkfilmRating($skfilmRating)
+ {
+ $this->skfilmRating = $skfilmRating;
+ }
+ public function getSkfilmRating()
+ {
+ return $this->skfilmRating;
+ }
+ public function setSmaisRating($smaisRating)
+ {
+ $this->smaisRating = $smaisRating;
+ }
+ public function getSmaisRating()
+ {
+ return $this->smaisRating;
+ }
+ public function setSmsaRating($smsaRating)
+ {
+ $this->smsaRating = $smsaRating;
+ }
+ public function getSmsaRating()
+ {
+ return $this->smsaRating;
+ }
+ public function setTvpgRating($tvpgRating)
+ {
+ $this->tvpgRating = $tvpgRating;
+ }
+ public function getTvpgRating()
+ {
+ return $this->tvpgRating;
+ }
+ public function setYtRating($ytRating)
+ {
+ $this->ytRating = $ytRating;
+ }
+ public function getYtRating()
+ {
+ return $this->ytRating;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEvent.php
new file mode 100644
index 00000000..77d04b03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEvent.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_FanFundingEvent extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_FanFundingEventSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_FanFundingEventSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventListResponse.php
new file mode 100644
index 00000000..46ddef64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventListResponse.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_FanFundingEventListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_FanFundingEvent';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventSnippet.php
new file mode 100644
index 00000000..4006cd74
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/FanFundingEventSnippet.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_FanFundingEventSnippet extends Google_Model
+{
+ public $amountMicros;
+ public $channelId;
+ public $commentText;
+ public $createdAt;
+ public $currency;
+ public $displayString;
+ protected $supporterDetailsType = 'Google_Service_YouTube_ChannelProfileDetails';
+ protected $supporterDetailsDataType = '';
+
+ public function setAmountMicros($amountMicros)
+ {
+ $this->amountMicros = $amountMicros;
+ }
+ public function getAmountMicros()
+ {
+ return $this->amountMicros;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setCommentText($commentText)
+ {
+ $this->commentText = $commentText;
+ }
+ public function getCommentText()
+ {
+ return $this->commentText;
+ }
+ public function setCreatedAt($createdAt)
+ {
+ $this->createdAt = $createdAt;
+ }
+ public function getCreatedAt()
+ {
+ return $this->createdAt;
+ }
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setDisplayString($displayString)
+ {
+ $this->displayString = $displayString;
+ }
+ public function getDisplayString()
+ {
+ return $this->displayString;
+ }
+ public function setSupporterDetails(Google_Service_YouTube_ChannelProfileDetails $supporterDetails)
+ {
+ $this->supporterDetails = $supporterDetails;
+ }
+ public function getSupporterDetails()
+ {
+ return $this->supporterDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GeoPoint.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GeoPoint.php
new file mode 100644
index 00000000..b80b0367
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GeoPoint.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_GeoPoint extends Google_Model
+{
+ public $altitude;
+ public $latitude;
+ public $longitude;
+
+ public function setAltitude($altitude)
+ {
+ $this->altitude = $altitude;
+ }
+ public function getAltitude()
+ {
+ return $this->altitude;
+ }
+ public function setLatitude($latitude)
+ {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude()
+ {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude)
+ {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude()
+ {
+ return $this->longitude;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategory.php
new file mode 100644
index 00000000..e5ab0fa0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategory.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_GuideCategory extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_GuideCategorySnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_GuideCategorySnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategoryListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategoryListResponse.php
new file mode 100644
index 00000000..74b7c53a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategoryListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_GuideCategoryListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_GuideCategory';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategorySnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategorySnippet.php
new file mode 100644
index 00000000..10faecaf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/GuideCategorySnippet.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_GuideCategorySnippet extends Google_Model
+{
+ public $channelId;
+ public $title;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguage.php
new file mode 100644
index 00000000..35d1f4e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguage.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_I18nLanguage extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_I18nLanguageSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_I18nLanguageSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageListResponse.php
new file mode 100644
index 00000000..e6dbeee4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageListResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_I18nLanguageListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_I18nLanguage';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageSnippet.php
new file mode 100644
index 00000000..c3800383
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nLanguageSnippet.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_I18nLanguageSnippet extends Google_Model
+{
+ public $hl;
+ public $name;
+
+ public function setHl($hl)
+ {
+ $this->hl = $hl;
+ }
+ public function getHl()
+ {
+ return $this->hl;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegion.php
new file mode 100644
index 00000000..752e4654
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegion.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_I18nRegion extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_I18nRegionSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_I18nRegionSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionListResponse.php
new file mode 100644
index 00000000..6803eed9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionListResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_I18nRegionListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_I18nRegion';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionSnippet.php
new file mode 100644
index 00000000..8170918e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/I18nRegionSnippet.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_I18nRegionSnippet extends Google_Model
+{
+ public $gl;
+ public $name;
+
+ public function setGl($gl)
+ {
+ $this->gl = $gl;
+ }
+ public function getGl()
+ {
+ return $this->gl;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ImageSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ImageSettings.php
new file mode 100644
index 00000000..c2bfc9c0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ImageSettings.php
@@ -0,0 +1,224 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ImageSettings extends Google_Model
+{
+ protected $backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $backgroundImageUrlDataType = '';
+ public $bannerExternalUrl;
+ public $bannerImageUrl;
+ public $bannerMobileExtraHdImageUrl;
+ public $bannerMobileHdImageUrl;
+ public $bannerMobileImageUrl;
+ public $bannerMobileLowImageUrl;
+ public $bannerMobileMediumHdImageUrl;
+ public $bannerTabletExtraHdImageUrl;
+ public $bannerTabletHdImageUrl;
+ public $bannerTabletImageUrl;
+ public $bannerTabletLowImageUrl;
+ public $bannerTvHighImageUrl;
+ public $bannerTvImageUrl;
+ public $bannerTvLowImageUrl;
+ public $bannerTvMediumImageUrl;
+ protected $largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $largeBrandedBannerImageImapScriptDataType = '';
+ protected $largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $largeBrandedBannerImageUrlDataType = '';
+ protected $smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $smallBrandedBannerImageImapScriptDataType = '';
+ protected $smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $smallBrandedBannerImageUrlDataType = '';
+ public $trackingImageUrl;
+ public $watchIconImageUrl;
+
+ public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty $backgroundImageUrl)
+ {
+ $this->backgroundImageUrl = $backgroundImageUrl;
+ }
+ public function getBackgroundImageUrl()
+ {
+ return $this->backgroundImageUrl;
+ }
+ public function setBannerExternalUrl($bannerExternalUrl)
+ {
+ $this->bannerExternalUrl = $bannerExternalUrl;
+ }
+ public function getBannerExternalUrl()
+ {
+ return $this->bannerExternalUrl;
+ }
+ public function setBannerImageUrl($bannerImageUrl)
+ {
+ $this->bannerImageUrl = $bannerImageUrl;
+ }
+ public function getBannerImageUrl()
+ {
+ return $this->bannerImageUrl;
+ }
+ public function setBannerMobileExtraHdImageUrl($bannerMobileExtraHdImageUrl)
+ {
+ $this->bannerMobileExtraHdImageUrl = $bannerMobileExtraHdImageUrl;
+ }
+ public function getBannerMobileExtraHdImageUrl()
+ {
+ return $this->bannerMobileExtraHdImageUrl;
+ }
+ public function setBannerMobileHdImageUrl($bannerMobileHdImageUrl)
+ {
+ $this->bannerMobileHdImageUrl = $bannerMobileHdImageUrl;
+ }
+ public function getBannerMobileHdImageUrl()
+ {
+ return $this->bannerMobileHdImageUrl;
+ }
+ public function setBannerMobileImageUrl($bannerMobileImageUrl)
+ {
+ $this->bannerMobileImageUrl = $bannerMobileImageUrl;
+ }
+ public function getBannerMobileImageUrl()
+ {
+ return $this->bannerMobileImageUrl;
+ }
+ public function setBannerMobileLowImageUrl($bannerMobileLowImageUrl)
+ {
+ $this->bannerMobileLowImageUrl = $bannerMobileLowImageUrl;
+ }
+ public function getBannerMobileLowImageUrl()
+ {
+ return $this->bannerMobileLowImageUrl;
+ }
+ public function setBannerMobileMediumHdImageUrl($bannerMobileMediumHdImageUrl)
+ {
+ $this->bannerMobileMediumHdImageUrl = $bannerMobileMediumHdImageUrl;
+ }
+ public function getBannerMobileMediumHdImageUrl()
+ {
+ return $this->bannerMobileMediumHdImageUrl;
+ }
+ public function setBannerTabletExtraHdImageUrl($bannerTabletExtraHdImageUrl)
+ {
+ $this->bannerTabletExtraHdImageUrl = $bannerTabletExtraHdImageUrl;
+ }
+ public function getBannerTabletExtraHdImageUrl()
+ {
+ return $this->bannerTabletExtraHdImageUrl;
+ }
+ public function setBannerTabletHdImageUrl($bannerTabletHdImageUrl)
+ {
+ $this->bannerTabletHdImageUrl = $bannerTabletHdImageUrl;
+ }
+ public function getBannerTabletHdImageUrl()
+ {
+ return $this->bannerTabletHdImageUrl;
+ }
+ public function setBannerTabletImageUrl($bannerTabletImageUrl)
+ {
+ $this->bannerTabletImageUrl = $bannerTabletImageUrl;
+ }
+ public function getBannerTabletImageUrl()
+ {
+ return $this->bannerTabletImageUrl;
+ }
+ public function setBannerTabletLowImageUrl($bannerTabletLowImageUrl)
+ {
+ $this->bannerTabletLowImageUrl = $bannerTabletLowImageUrl;
+ }
+ public function getBannerTabletLowImageUrl()
+ {
+ return $this->bannerTabletLowImageUrl;
+ }
+ public function setBannerTvHighImageUrl($bannerTvHighImageUrl)
+ {
+ $this->bannerTvHighImageUrl = $bannerTvHighImageUrl;
+ }
+ public function getBannerTvHighImageUrl()
+ {
+ return $this->bannerTvHighImageUrl;
+ }
+ public function setBannerTvImageUrl($bannerTvImageUrl)
+ {
+ $this->bannerTvImageUrl = $bannerTvImageUrl;
+ }
+ public function getBannerTvImageUrl()
+ {
+ return $this->bannerTvImageUrl;
+ }
+ public function setBannerTvLowImageUrl($bannerTvLowImageUrl)
+ {
+ $this->bannerTvLowImageUrl = $bannerTvLowImageUrl;
+ }
+ public function getBannerTvLowImageUrl()
+ {
+ return $this->bannerTvLowImageUrl;
+ }
+ public function setBannerTvMediumImageUrl($bannerTvMediumImageUrl)
+ {
+ $this->bannerTvMediumImageUrl = $bannerTvMediumImageUrl;
+ }
+ public function getBannerTvMediumImageUrl()
+ {
+ return $this->bannerTvMediumImageUrl;
+ }
+ public function setLargeBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageImapScript)
+ {
+ $this->largeBrandedBannerImageImapScript = $largeBrandedBannerImageImapScript;
+ }
+ public function getLargeBrandedBannerImageImapScript()
+ {
+ return $this->largeBrandedBannerImageImapScript;
+ }
+ public function setLargeBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $largeBrandedBannerImageUrl)
+ {
+ $this->largeBrandedBannerImageUrl = $largeBrandedBannerImageUrl;
+ }
+ public function getLargeBrandedBannerImageUrl()
+ {
+ return $this->largeBrandedBannerImageUrl;
+ }
+ public function setSmallBrandedBannerImageImapScript(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageImapScript)
+ {
+ $this->smallBrandedBannerImageImapScript = $smallBrandedBannerImageImapScript;
+ }
+ public function getSmallBrandedBannerImageImapScript()
+ {
+ return $this->smallBrandedBannerImageImapScript;
+ }
+ public function setSmallBrandedBannerImageUrl(Google_Service_YouTube_LocalizedProperty $smallBrandedBannerImageUrl)
+ {
+ $this->smallBrandedBannerImageUrl = $smallBrandedBannerImageUrl;
+ }
+ public function getSmallBrandedBannerImageUrl()
+ {
+ return $this->smallBrandedBannerImageUrl;
+ }
+ public function setTrackingImageUrl($trackingImageUrl)
+ {
+ $this->trackingImageUrl = $trackingImageUrl;
+ }
+ public function getTrackingImageUrl()
+ {
+ return $this->trackingImageUrl;
+ }
+ public function setWatchIconImageUrl($watchIconImageUrl)
+ {
+ $this->watchIconImageUrl = $watchIconImageUrl;
+ }
+ public function getWatchIconImageUrl()
+ {
+ return $this->watchIconImageUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/IngestionInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/IngestionInfo.php
new file mode 100644
index 00000000..aaac80c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/IngestionInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_IngestionInfo extends Google_Model
+{
+ public $backupIngestionAddress;
+ public $ingestionAddress;
+ public $streamName;
+
+ public function setBackupIngestionAddress($backupIngestionAddress)
+ {
+ $this->backupIngestionAddress = $backupIngestionAddress;
+ }
+ public function getBackupIngestionAddress()
+ {
+ return $this->backupIngestionAddress;
+ }
+ public function setIngestionAddress($ingestionAddress)
+ {
+ $this->ingestionAddress = $ingestionAddress;
+ }
+ public function getIngestionAddress()
+ {
+ return $this->ingestionAddress;
+ }
+ public function setStreamName($streamName)
+ {
+ $this->streamName = $streamName;
+ }
+ public function getStreamName()
+ {
+ return $this->streamName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoBranding.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoBranding.php
new file mode 100644
index 00000000..1fc32ae8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoBranding.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_InvideoBranding extends Google_Model
+{
+ public $imageBytes;
+ public $imageUrl;
+ protected $positionType = 'Google_Service_YouTube_InvideoPosition';
+ protected $positionDataType = '';
+ public $targetChannelId;
+ protected $timingType = 'Google_Service_YouTube_InvideoTiming';
+ protected $timingDataType = '';
+
+ public function setImageBytes($imageBytes)
+ {
+ $this->imageBytes = $imageBytes;
+ }
+ public function getImageBytes()
+ {
+ return $this->imageBytes;
+ }
+ public function setImageUrl($imageUrl)
+ {
+ $this->imageUrl = $imageUrl;
+ }
+ public function getImageUrl()
+ {
+ return $this->imageUrl;
+ }
+ public function setPosition(Google_Service_YouTube_InvideoPosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setTargetChannelId($targetChannelId)
+ {
+ $this->targetChannelId = $targetChannelId;
+ }
+ public function getTargetChannelId()
+ {
+ return $this->targetChannelId;
+ }
+ public function setTiming(Google_Service_YouTube_InvideoTiming $timing)
+ {
+ $this->timing = $timing;
+ }
+ public function getTiming()
+ {
+ return $this->timing;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPosition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPosition.php
new file mode 100644
index 00000000..8ebf440c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPosition.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_InvideoPosition extends Google_Model
+{
+ public $cornerPosition;
+ public $type;
+
+ public function setCornerPosition($cornerPosition)
+ {
+ $this->cornerPosition = $cornerPosition;
+ }
+ public function getCornerPosition()
+ {
+ return $this->cornerPosition;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPromotion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPromotion.php
new file mode 100644
index 00000000..451634d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoPromotion.php
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_InvideoPromotion extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $defaultTimingType = 'Google_Service_YouTube_InvideoTiming';
+ protected $defaultTimingDataType = '';
+ protected $itemsType = 'Google_Service_YouTube_PromotedItem';
+ protected $itemsDataType = 'array';
+ protected $positionType = 'Google_Service_YouTube_InvideoPosition';
+ protected $positionDataType = '';
+ public $useSmartTiming;
+
+ public function setDefaultTiming(Google_Service_YouTube_InvideoTiming $defaultTiming)
+ {
+ $this->defaultTiming = $defaultTiming;
+ }
+ public function getDefaultTiming()
+ {
+ return $this->defaultTiming;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setPosition(Google_Service_YouTube_InvideoPosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setUseSmartTiming($useSmartTiming)
+ {
+ $this->useSmartTiming = $useSmartTiming;
+ }
+ public function getUseSmartTiming()
+ {
+ return $this->useSmartTiming;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoTiming.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoTiming.php
new file mode 100644
index 00000000..d6d99ea9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/InvideoTiming.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_InvideoTiming extends Google_Model
+{
+ public $durationMs;
+ public $offsetMs;
+ public $type;
+
+ public function setDurationMs($durationMs)
+ {
+ $this->durationMs = $durationMs;
+ }
+ public function getDurationMs()
+ {
+ return $this->durationMs;
+ }
+ public function setOffsetMs($offsetMs)
+ {
+ $this->offsetMs = $offsetMs;
+ }
+ public function getOffsetMs()
+ {
+ return $this->offsetMs;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LanguageTag.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LanguageTag.php
new file mode 100644
index 00000000..8f033e3b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LanguageTag.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LanguageTag extends Google_Model
+{
+ public $value;
+
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcast.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcast.php
new file mode 100644
index 00000000..c87763d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcast.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcast extends Google_Model
+{
+ protected $contentDetailsType = 'Google_Service_YouTube_LiveBroadcastContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet';
+ protected $snippetDataType = '';
+ protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics';
+ protected $statisticsDataType = '';
+ protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus';
+ protected $statusDataType = '';
+ protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails';
+ protected $topicDetailsDataType = '';
+
+ public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_LiveBroadcastSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics)
+ {
+ $this->statistics = $statistics;
+ }
+ public function getStatistics()
+ {
+ return $this->statistics;
+ }
+ public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails)
+ {
+ $this->topicDetails = $topicDetails;
+ }
+ public function getTopicDetails()
+ {
+ return $this->topicDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastContentDetails.php
new file mode 100644
index 00000000..ea790e0d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastContentDetails.php
@@ -0,0 +1,130 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model
+{
+ public $boundStreamId;
+ public $boundStreamLastUpdateTimeMs;
+ public $closedCaptionsType;
+ public $enableClosedCaptions;
+ public $enableContentEncryption;
+ public $enableDvr;
+ public $enableEmbed;
+ public $enableLowLatency;
+ protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo';
+ protected $monitorStreamDataType = '';
+ public $projection;
+ public $recordFromStart;
+ public $startWithSlate;
+
+ public function setBoundStreamId($boundStreamId)
+ {
+ $this->boundStreamId = $boundStreamId;
+ }
+ public function getBoundStreamId()
+ {
+ return $this->boundStreamId;
+ }
+ public function setBoundStreamLastUpdateTimeMs($boundStreamLastUpdateTimeMs)
+ {
+ $this->boundStreamLastUpdateTimeMs = $boundStreamLastUpdateTimeMs;
+ }
+ public function getBoundStreamLastUpdateTimeMs()
+ {
+ return $this->boundStreamLastUpdateTimeMs;
+ }
+ public function setClosedCaptionsType($closedCaptionsType)
+ {
+ $this->closedCaptionsType = $closedCaptionsType;
+ }
+ public function getClosedCaptionsType()
+ {
+ return $this->closedCaptionsType;
+ }
+ public function setEnableClosedCaptions($enableClosedCaptions)
+ {
+ $this->enableClosedCaptions = $enableClosedCaptions;
+ }
+ public function getEnableClosedCaptions()
+ {
+ return $this->enableClosedCaptions;
+ }
+ public function setEnableContentEncryption($enableContentEncryption)
+ {
+ $this->enableContentEncryption = $enableContentEncryption;
+ }
+ public function getEnableContentEncryption()
+ {
+ return $this->enableContentEncryption;
+ }
+ public function setEnableDvr($enableDvr)
+ {
+ $this->enableDvr = $enableDvr;
+ }
+ public function getEnableDvr()
+ {
+ return $this->enableDvr;
+ }
+ public function setEnableEmbed($enableEmbed)
+ {
+ $this->enableEmbed = $enableEmbed;
+ }
+ public function getEnableEmbed()
+ {
+ return $this->enableEmbed;
+ }
+ public function setEnableLowLatency($enableLowLatency)
+ {
+ $this->enableLowLatency = $enableLowLatency;
+ }
+ public function getEnableLowLatency()
+ {
+ return $this->enableLowLatency;
+ }
+ public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream)
+ {
+ $this->monitorStream = $monitorStream;
+ }
+ public function getMonitorStream()
+ {
+ return $this->monitorStream;
+ }
+ public function setProjection($projection)
+ {
+ $this->projection = $projection;
+ }
+ public function getProjection()
+ {
+ return $this->projection;
+ }
+ public function setRecordFromStart($recordFromStart)
+ {
+ $this->recordFromStart = $recordFromStart;
+ }
+ public function getRecordFromStart()
+ {
+ return $this->recordFromStart;
+ }
+ public function setStartWithSlate($startWithSlate)
+ {
+ $this->startWithSlate = $startWithSlate;
+ }
+ public function getStartWithSlate()
+ {
+ return $this->startWithSlate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastListResponse.php
new file mode 100644
index 00000000..f3a9725e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_LiveBroadcast';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastSnippet.php
new file mode 100644
index 00000000..950e7776
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastSnippet.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model
+{
+ public $actualEndTime;
+ public $actualStartTime;
+ public $channelId;
+ public $description;
+ public $isDefaultBroadcast;
+ public $liveChatId;
+ public $publishedAt;
+ public $scheduledEndTime;
+ public $scheduledStartTime;
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setActualEndTime($actualEndTime)
+ {
+ $this->actualEndTime = $actualEndTime;
+ }
+ public function getActualEndTime()
+ {
+ return $this->actualEndTime;
+ }
+ public function setActualStartTime($actualStartTime)
+ {
+ $this->actualStartTime = $actualStartTime;
+ }
+ public function getActualStartTime()
+ {
+ return $this->actualStartTime;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIsDefaultBroadcast($isDefaultBroadcast)
+ {
+ $this->isDefaultBroadcast = $isDefaultBroadcast;
+ }
+ public function getIsDefaultBroadcast()
+ {
+ return $this->isDefaultBroadcast;
+ }
+ public function setLiveChatId($liveChatId)
+ {
+ $this->liveChatId = $liveChatId;
+ }
+ public function getLiveChatId()
+ {
+ return $this->liveChatId;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setScheduledEndTime($scheduledEndTime)
+ {
+ $this->scheduledEndTime = $scheduledEndTime;
+ }
+ public function getScheduledEndTime()
+ {
+ return $this->scheduledEndTime;
+ }
+ public function setScheduledStartTime($scheduledStartTime)
+ {
+ $this->scheduledStartTime = $scheduledStartTime;
+ }
+ public function getScheduledStartTime()
+ {
+ return $this->scheduledStartTime;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatistics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatistics.php
new file mode 100644
index 00000000..6a4f8f3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatistics.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastStatistics extends Google_Model
+{
+ public $concurrentViewers;
+ public $totalChatCount;
+
+ public function setConcurrentViewers($concurrentViewers)
+ {
+ $this->concurrentViewers = $concurrentViewers;
+ }
+ public function getConcurrentViewers()
+ {
+ return $this->concurrentViewers;
+ }
+ public function setTotalChatCount($totalChatCount)
+ {
+ $this->totalChatCount = $totalChatCount;
+ }
+ public function getTotalChatCount()
+ {
+ return $this->totalChatCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatus.php
new file mode 100644
index 00000000..74e17468
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastStatus.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model
+{
+ public $lifeCycleStatus;
+ public $liveBroadcastPriority;
+ public $privacyStatus;
+ public $recordingStatus;
+
+ public function setLifeCycleStatus($lifeCycleStatus)
+ {
+ $this->lifeCycleStatus = $lifeCycleStatus;
+ }
+ public function getLifeCycleStatus()
+ {
+ return $this->lifeCycleStatus;
+ }
+ public function setLiveBroadcastPriority($liveBroadcastPriority)
+ {
+ $this->liveBroadcastPriority = $liveBroadcastPriority;
+ }
+ public function getLiveBroadcastPriority()
+ {
+ return $this->liveBroadcastPriority;
+ }
+ public function setPrivacyStatus($privacyStatus)
+ {
+ $this->privacyStatus = $privacyStatus;
+ }
+ public function getPrivacyStatus()
+ {
+ return $this->privacyStatus;
+ }
+ public function setRecordingStatus($recordingStatus)
+ {
+ $this->recordingStatus = $recordingStatus;
+ }
+ public function getRecordingStatus()
+ {
+ return $this->recordingStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopic.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopic.php
new file mode 100644
index 00000000..247b433f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopic.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model
+{
+ protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet';
+ protected $snippetDataType = '';
+ public $type;
+ public $unmatched;
+
+ public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUnmatched($unmatched)
+ {
+ $this->unmatched = $unmatched;
+ }
+ public function getUnmatched()
+ {
+ return $this->unmatched;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicDetails.php
new file mode 100644
index 00000000..8cc4578e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicDetails.php
@@ -0,0 +1,32 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection
+{
+ protected $collection_key = 'topics';
+ protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic';
+ protected $topicsDataType = 'array';
+
+ public function setTopics($topics)
+ {
+ $this->topics = $topics;
+ }
+ public function getTopics()
+ {
+ return $this->topics;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicSnippet.php
new file mode 100644
index 00000000..ad6724ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveBroadcastTopicSnippet.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model
+{
+ public $name;
+ public $releaseDate;
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReleaseDate($releaseDate)
+ {
+ $this->releaseDate = $releaseDate;
+ }
+ public function getReleaseDate()
+ {
+ return $this->releaseDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBan.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBan.php
new file mode 100644
index 00000000..d835437d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBan.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatBan extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_LiveChatBanSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_LiveChatBanSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBanSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBanSnippet.php
new file mode 100644
index 00000000..cc595994
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatBanSnippet.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatBanSnippet extends Google_Model
+{
+ public $banDurationSeconds;
+ protected $bannedUserDetailsType = 'Google_Service_YouTube_ChannelProfileDetails';
+ protected $bannedUserDetailsDataType = '';
+ public $liveChatId;
+ public $type;
+
+ public function setBanDurationSeconds($banDurationSeconds)
+ {
+ $this->banDurationSeconds = $banDurationSeconds;
+ }
+ public function getBanDurationSeconds()
+ {
+ return $this->banDurationSeconds;
+ }
+ public function setBannedUserDetails(Google_Service_YouTube_ChannelProfileDetails $bannedUserDetails)
+ {
+ $this->bannedUserDetails = $bannedUserDetails;
+ }
+ public function getBannedUserDetails()
+ {
+ return $this->bannedUserDetails;
+ }
+ public function setLiveChatId($liveChatId)
+ {
+ $this->liveChatId = $liveChatId;
+ }
+ public function getLiveChatId()
+ {
+ return $this->liveChatId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatFanFundingEventDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatFanFundingEventDetails.php
new file mode 100644
index 00000000..b7f316d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatFanFundingEventDetails.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatFanFundingEventDetails extends Google_Model
+{
+ public $amountDisplayString;
+ public $amountMicros;
+ public $currency;
+ public $userComment;
+
+ public function setAmountDisplayString($amountDisplayString)
+ {
+ $this->amountDisplayString = $amountDisplayString;
+ }
+ public function getAmountDisplayString()
+ {
+ return $this->amountDisplayString;
+ }
+ public function setAmountMicros($amountMicros)
+ {
+ $this->amountMicros = $amountMicros;
+ }
+ public function getAmountMicros()
+ {
+ return $this->amountMicros;
+ }
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setUserComment($userComment)
+ {
+ $this->userComment = $userComment;
+ }
+ public function getUserComment()
+ {
+ return $this->userComment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessage.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessage.php
new file mode 100644
index 00000000..01bf15c7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessage.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatMessage extends Google_Model
+{
+ protected $authorDetailsType = 'Google_Service_YouTube_LiveChatMessageAuthorDetails';
+ protected $authorDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_LiveChatMessageSnippet';
+ protected $snippetDataType = '';
+
+ public function setAuthorDetails(Google_Service_YouTube_LiveChatMessageAuthorDetails $authorDetails)
+ {
+ $this->authorDetails = $authorDetails;
+ }
+ public function getAuthorDetails()
+ {
+ return $this->authorDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_LiveChatMessageSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageAuthorDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageAuthorDetails.php
new file mode 100644
index 00000000..0f77bf66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageAuthorDetails.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatMessageAuthorDetails extends Google_Model
+{
+ public $channelId;
+ public $channelUrl;
+ public $displayName;
+ public $isChatModerator;
+ public $isChatOwner;
+ public $isChatSponsor;
+ public $isVerified;
+ public $profileImageUrl;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelUrl($channelUrl)
+ {
+ $this->channelUrl = $channelUrl;
+ }
+ public function getChannelUrl()
+ {
+ return $this->channelUrl;
+ }
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setIsChatModerator($isChatModerator)
+ {
+ $this->isChatModerator = $isChatModerator;
+ }
+ public function getIsChatModerator()
+ {
+ return $this->isChatModerator;
+ }
+ public function setIsChatOwner($isChatOwner)
+ {
+ $this->isChatOwner = $isChatOwner;
+ }
+ public function getIsChatOwner()
+ {
+ return $this->isChatOwner;
+ }
+ public function setIsChatSponsor($isChatSponsor)
+ {
+ $this->isChatSponsor = $isChatSponsor;
+ }
+ public function getIsChatSponsor()
+ {
+ return $this->isChatSponsor;
+ }
+ public function setIsVerified($isVerified)
+ {
+ $this->isVerified = $isVerified;
+ }
+ public function getIsVerified()
+ {
+ return $this->isVerified;
+ }
+ public function setProfileImageUrl($profileImageUrl)
+ {
+ $this->profileImageUrl = $profileImageUrl;
+ }
+ public function getProfileImageUrl()
+ {
+ return $this->profileImageUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageDeletedDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageDeletedDetails.php
new file mode 100644
index 00000000..8d5b7ecb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageDeletedDetails.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatMessageDeletedDetails extends Google_Model
+{
+ public $deletedMessageId;
+
+ public function setDeletedMessageId($deletedMessageId)
+ {
+ $this->deletedMessageId = $deletedMessageId;
+ }
+ public function getDeletedMessageId()
+ {
+ return $this->deletedMessageId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageListResponse.php
new file mode 100644
index 00000000..c3e5b326
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageListResponse.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatMessageListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_LiveChatMessage';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $offlineAt;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $pollingIntervalMillis;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOfflineAt($offlineAt)
+ {
+ $this->offlineAt = $offlineAt;
+ }
+ public function getOfflineAt()
+ {
+ return $this->offlineAt;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPollingIntervalMillis($pollingIntervalMillis)
+ {
+ $this->pollingIntervalMillis = $pollingIntervalMillis;
+ }
+ public function getPollingIntervalMillis()
+ {
+ return $this->pollingIntervalMillis;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageRetractedDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageRetractedDetails.php
new file mode 100644
index 00000000..9a84f4f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageRetractedDetails.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatMessageRetractedDetails extends Google_Model
+{
+ public $retractedMessageId;
+
+ public function setRetractedMessageId($retractedMessageId)
+ {
+ $this->retractedMessageId = $retractedMessageId;
+ }
+ public function getRetractedMessageId()
+ {
+ return $this->retractedMessageId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php
new file mode 100644
index 00000000..b7f6250b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatMessageSnippet.php
@@ -0,0 +1,175 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatMessageSnippet extends Google_Model
+{
+ public $authorChannelId;
+ public $displayMessage;
+ protected $fanFundingEventDetailsType = 'Google_Service_YouTube_LiveChatFanFundingEventDetails';
+ protected $fanFundingEventDetailsDataType = '';
+ public $hasDisplayContent;
+ public $liveChatId;
+ protected $messageDeletedDetailsType = 'Google_Service_YouTube_LiveChatMessageDeletedDetails';
+ protected $messageDeletedDetailsDataType = '';
+ protected $messageRetractedDetailsType = 'Google_Service_YouTube_LiveChatMessageRetractedDetails';
+ protected $messageRetractedDetailsDataType = '';
+ protected $pollClosedDetailsType = 'Google_Service_YouTube_LiveChatPollClosedDetails';
+ protected $pollClosedDetailsDataType = '';
+ protected $pollEditedDetailsType = 'Google_Service_YouTube_LiveChatPollEditedDetails';
+ protected $pollEditedDetailsDataType = '';
+ protected $pollOpenedDetailsType = 'Google_Service_YouTube_LiveChatPollOpenedDetails';
+ protected $pollOpenedDetailsDataType = '';
+ protected $pollVotedDetailsType = 'Google_Service_YouTube_LiveChatPollVotedDetails';
+ protected $pollVotedDetailsDataType = '';
+ public $publishedAt;
+ protected $superChatDetailsType = 'Google_Service_YouTube_LiveChatSuperChatDetails';
+ protected $superChatDetailsDataType = '';
+ protected $textMessageDetailsType = 'Google_Service_YouTube_LiveChatTextMessageDetails';
+ protected $textMessageDetailsDataType = '';
+ public $type;
+ protected $userBannedDetailsType = 'Google_Service_YouTube_LiveChatUserBannedMessageDetails';
+ protected $userBannedDetailsDataType = '';
+
+ public function setAuthorChannelId($authorChannelId)
+ {
+ $this->authorChannelId = $authorChannelId;
+ }
+ public function getAuthorChannelId()
+ {
+ return $this->authorChannelId;
+ }
+ public function setDisplayMessage($displayMessage)
+ {
+ $this->displayMessage = $displayMessage;
+ }
+ public function getDisplayMessage()
+ {
+ return $this->displayMessage;
+ }
+ public function setFanFundingEventDetails(Google_Service_YouTube_LiveChatFanFundingEventDetails $fanFundingEventDetails)
+ {
+ $this->fanFundingEventDetails = $fanFundingEventDetails;
+ }
+ public function getFanFundingEventDetails()
+ {
+ return $this->fanFundingEventDetails;
+ }
+ public function setHasDisplayContent($hasDisplayContent)
+ {
+ $this->hasDisplayContent = $hasDisplayContent;
+ }
+ public function getHasDisplayContent()
+ {
+ return $this->hasDisplayContent;
+ }
+ public function setLiveChatId($liveChatId)
+ {
+ $this->liveChatId = $liveChatId;
+ }
+ public function getLiveChatId()
+ {
+ return $this->liveChatId;
+ }
+ public function setMessageDeletedDetails(Google_Service_YouTube_LiveChatMessageDeletedDetails $messageDeletedDetails)
+ {
+ $this->messageDeletedDetails = $messageDeletedDetails;
+ }
+ public function getMessageDeletedDetails()
+ {
+ return $this->messageDeletedDetails;
+ }
+ public function setMessageRetractedDetails(Google_Service_YouTube_LiveChatMessageRetractedDetails $messageRetractedDetails)
+ {
+ $this->messageRetractedDetails = $messageRetractedDetails;
+ }
+ public function getMessageRetractedDetails()
+ {
+ return $this->messageRetractedDetails;
+ }
+ public function setPollClosedDetails(Google_Service_YouTube_LiveChatPollClosedDetails $pollClosedDetails)
+ {
+ $this->pollClosedDetails = $pollClosedDetails;
+ }
+ public function getPollClosedDetails()
+ {
+ return $this->pollClosedDetails;
+ }
+ public function setPollEditedDetails(Google_Service_YouTube_LiveChatPollEditedDetails $pollEditedDetails)
+ {
+ $this->pollEditedDetails = $pollEditedDetails;
+ }
+ public function getPollEditedDetails()
+ {
+ return $this->pollEditedDetails;
+ }
+ public function setPollOpenedDetails(Google_Service_YouTube_LiveChatPollOpenedDetails $pollOpenedDetails)
+ {
+ $this->pollOpenedDetails = $pollOpenedDetails;
+ }
+ public function getPollOpenedDetails()
+ {
+ return $this->pollOpenedDetails;
+ }
+ public function setPollVotedDetails(Google_Service_YouTube_LiveChatPollVotedDetails $pollVotedDetails)
+ {
+ $this->pollVotedDetails = $pollVotedDetails;
+ }
+ public function getPollVotedDetails()
+ {
+ return $this->pollVotedDetails;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setSuperChatDetails(Google_Service_YouTube_LiveChatSuperChatDetails $superChatDetails)
+ {
+ $this->superChatDetails = $superChatDetails;
+ }
+ public function getSuperChatDetails()
+ {
+ return $this->superChatDetails;
+ }
+ public function setTextMessageDetails(Google_Service_YouTube_LiveChatTextMessageDetails $textMessageDetails)
+ {
+ $this->textMessageDetails = $textMessageDetails;
+ }
+ public function getTextMessageDetails()
+ {
+ return $this->textMessageDetails;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUserBannedDetails(Google_Service_YouTube_LiveChatUserBannedMessageDetails $userBannedDetails)
+ {
+ $this->userBannedDetails = $userBannedDetails;
+ }
+ public function getUserBannedDetails()
+ {
+ return $this->userBannedDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModerator.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModerator.php
new file mode 100644
index 00000000..29b77e03
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModerator.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatModerator extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_LiveChatModeratorSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_LiveChatModeratorSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorListResponse.php
new file mode 100644
index 00000000..7655eb94
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatModeratorListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_LiveChatModerator';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorSnippet.php
new file mode 100644
index 00000000..b3581c77
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatModeratorSnippet.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatModeratorSnippet extends Google_Model
+{
+ public $liveChatId;
+ protected $moderatorDetailsType = 'Google_Service_YouTube_ChannelProfileDetails';
+ protected $moderatorDetailsDataType = '';
+
+ public function setLiveChatId($liveChatId)
+ {
+ $this->liveChatId = $liveChatId;
+ }
+ public function getLiveChatId()
+ {
+ return $this->liveChatId;
+ }
+ public function setModeratorDetails(Google_Service_YouTube_ChannelProfileDetails $moderatorDetails)
+ {
+ $this->moderatorDetails = $moderatorDetails;
+ }
+ public function getModeratorDetails()
+ {
+ return $this->moderatorDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollClosedDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollClosedDetails.php
new file mode 100644
index 00000000..a720614b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollClosedDetails.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatPollClosedDetails extends Google_Model
+{
+ public $pollId;
+
+ public function setPollId($pollId)
+ {
+ $this->pollId = $pollId;
+ }
+ public function getPollId()
+ {
+ return $this->pollId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollEditedDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollEditedDetails.php
new file mode 100644
index 00000000..d34084fa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollEditedDetails.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatPollEditedDetails extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_YouTube_LiveChatPollItem';
+ protected $itemsDataType = 'array';
+ public $prompt;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setPrompt($prompt)
+ {
+ $this->prompt = $prompt;
+ }
+ public function getPrompt()
+ {
+ return $this->prompt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollItem.php
new file mode 100644
index 00000000..cfc23838
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollItem.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatPollItem extends Google_Model
+{
+ public $description;
+ public $itemId;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setItemId($itemId)
+ {
+ $this->itemId = $itemId;
+ }
+ public function getItemId()
+ {
+ return $this->itemId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollOpenedDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollOpenedDetails.php
new file mode 100644
index 00000000..b63881d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollOpenedDetails.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatPollOpenedDetails extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $id;
+ protected $itemsType = 'Google_Service_YouTube_LiveChatPollItem';
+ protected $itemsDataType = 'array';
+ public $prompt;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setPrompt($prompt)
+ {
+ $this->prompt = $prompt;
+ }
+ public function getPrompt()
+ {
+ return $this->prompt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollVotedDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollVotedDetails.php
new file mode 100644
index 00000000..5ffc4229
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatPollVotedDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatPollVotedDetails extends Google_Model
+{
+ public $itemId;
+ public $pollId;
+
+ public function setItemId($itemId)
+ {
+ $this->itemId = $itemId;
+ }
+ public function getItemId()
+ {
+ return $this->itemId;
+ }
+ public function setPollId($pollId)
+ {
+ $this->pollId = $pollId;
+ }
+ public function getPollId()
+ {
+ return $this->pollId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatSuperChatDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatSuperChatDetails.php
new file mode 100644
index 00000000..0d66d058
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatSuperChatDetails.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatSuperChatDetails extends Google_Model
+{
+ public $amountDisplayString;
+ public $amountMicros;
+ public $currency;
+ public $tier;
+ public $userComment;
+
+ public function setAmountDisplayString($amountDisplayString)
+ {
+ $this->amountDisplayString = $amountDisplayString;
+ }
+ public function getAmountDisplayString()
+ {
+ return $this->amountDisplayString;
+ }
+ public function setAmountMicros($amountMicros)
+ {
+ $this->amountMicros = $amountMicros;
+ }
+ public function getAmountMicros()
+ {
+ return $this->amountMicros;
+ }
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setTier($tier)
+ {
+ $this->tier = $tier;
+ }
+ public function getTier()
+ {
+ return $this->tier;
+ }
+ public function setUserComment($userComment)
+ {
+ $this->userComment = $userComment;
+ }
+ public function getUserComment()
+ {
+ return $this->userComment;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatTextMessageDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatTextMessageDetails.php
new file mode 100644
index 00000000..c3708022
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatTextMessageDetails.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatTextMessageDetails extends Google_Model
+{
+ public $messageText;
+
+ public function setMessageText($messageText)
+ {
+ $this->messageText = $messageText;
+ }
+ public function getMessageText()
+ {
+ return $this->messageText;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatUserBannedMessageDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatUserBannedMessageDetails.php
new file mode 100644
index 00000000..317bcea2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveChatUserBannedMessageDetails.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveChatUserBannedMessageDetails extends Google_Model
+{
+ public $banDurationSeconds;
+ public $banType;
+ protected $bannedUserDetailsType = 'Google_Service_YouTube_ChannelProfileDetails';
+ protected $bannedUserDetailsDataType = '';
+
+ public function setBanDurationSeconds($banDurationSeconds)
+ {
+ $this->banDurationSeconds = $banDurationSeconds;
+ }
+ public function getBanDurationSeconds()
+ {
+ return $this->banDurationSeconds;
+ }
+ public function setBanType($banType)
+ {
+ $this->banType = $banType;
+ }
+ public function getBanType()
+ {
+ return $this->banType;
+ }
+ public function setBannedUserDetails(Google_Service_YouTube_ChannelProfileDetails $bannedUserDetails)
+ {
+ $this->bannedUserDetails = $bannedUserDetails;
+ }
+ public function getBannedUserDetails()
+ {
+ return $this->bannedUserDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStream.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStream.php
new file mode 100644
index 00000000..a768fa85
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStream.php
@@ -0,0 +1,88 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveStream extends Google_Model
+{
+ protected $cdnType = 'Google_Service_YouTube_CdnSettings';
+ protected $cdnDataType = '';
+ protected $contentDetailsType = 'Google_Service_YouTube_LiveStreamContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_LiveStreamSnippet';
+ protected $snippetDataType = '';
+ protected $statusType = 'Google_Service_YouTube_LiveStreamStatus';
+ protected $statusDataType = '';
+
+ public function setCdn(Google_Service_YouTube_CdnSettings $cdn)
+ {
+ $this->cdn = $cdn;
+ }
+ public function getCdn()
+ {
+ return $this->cdn;
+ }
+ public function setContentDetails(Google_Service_YouTube_LiveStreamContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_LiveStreamSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setStatus(Google_Service_YouTube_LiveStreamStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamConfigurationIssue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamConfigurationIssue.php
new file mode 100644
index 00000000..dc8e55aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamConfigurationIssue.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model
+{
+ public $description;
+ public $reason;
+ public $severity;
+ public $type;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamContentDetails.php
new file mode 100644
index 00000000..d6ad34e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamContentDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model
+{
+ public $closedCaptionsIngestionUrl;
+ public $isReusable;
+
+ public function setClosedCaptionsIngestionUrl($closedCaptionsIngestionUrl)
+ {
+ $this->closedCaptionsIngestionUrl = $closedCaptionsIngestionUrl;
+ }
+ public function getClosedCaptionsIngestionUrl()
+ {
+ return $this->closedCaptionsIngestionUrl;
+ }
+ public function setIsReusable($isReusable)
+ {
+ $this->isReusable = $isReusable;
+ }
+ public function getIsReusable()
+ {
+ return $this->isReusable;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamHealthStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamHealthStatus.php
new file mode 100644
index 00000000..5d1f3ae4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamHealthStatus.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection
+{
+ protected $collection_key = 'configurationIssues';
+ protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue';
+ protected $configurationIssuesDataType = 'array';
+ public $lastUpdateTimeSeconds;
+ public $status;
+
+ public function setConfigurationIssues($configurationIssues)
+ {
+ $this->configurationIssues = $configurationIssues;
+ }
+ public function getConfigurationIssues()
+ {
+ return $this->configurationIssues;
+ }
+ public function setLastUpdateTimeSeconds($lastUpdateTimeSeconds)
+ {
+ $this->lastUpdateTimeSeconds = $lastUpdateTimeSeconds;
+ }
+ public function getLastUpdateTimeSeconds()
+ {
+ return $this->lastUpdateTimeSeconds;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamListResponse.php
new file mode 100644
index 00000000..d6b312b5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_LiveStream';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamSnippet.php
new file mode 100644
index 00000000..8b2a2ba0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamSnippet.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveStreamSnippet extends Google_Model
+{
+ public $channelId;
+ public $description;
+ public $isDefaultStream;
+ public $publishedAt;
+ public $title;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIsDefaultStream($isDefaultStream)
+ {
+ $this->isDefaultStream = $isDefaultStream;
+ }
+ public function getIsDefaultStream()
+ {
+ return $this->isDefaultStream;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamStatus.php
new file mode 100644
index 00000000..fe1084a1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LiveStreamStatus.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LiveStreamStatus extends Google_Model
+{
+ protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus';
+ protected $healthStatusDataType = '';
+ public $streamStatus;
+
+ public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus)
+ {
+ $this->healthStatus = $healthStatus;
+ }
+ public function getHealthStatus()
+ {
+ return $this->healthStatus;
+ }
+ public function setStreamStatus($streamStatus)
+ {
+ $this->streamStatus = $streamStatus;
+ }
+ public function getStreamStatus()
+ {
+ return $this->streamStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedProperty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedProperty.php
new file mode 100644
index 00000000..fd69cd81
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedProperty.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LocalizedProperty extends Google_Collection
+{
+ protected $collection_key = 'localized';
+ public $default;
+ protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag';
+ protected $defaultLanguageDataType = '';
+ protected $localizedType = 'Google_Service_YouTube_LocalizedString';
+ protected $localizedDataType = 'array';
+
+ public function setDefault($default)
+ {
+ $this->default = $default;
+ }
+ public function getDefault()
+ {
+ return $this->default;
+ }
+ public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setLocalized($localized)
+ {
+ $this->localized = $localized;
+ }
+ public function getLocalized()
+ {
+ return $this->localized;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedString.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedString.php
new file mode 100644
index 00000000..49c26622
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/LocalizedString.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_LocalizedString extends Google_Model
+{
+ public $language;
+ public $value;
+
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/MonitorStreamInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/MonitorStreamInfo.php
new file mode 100644
index 00000000..abaf875f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/MonitorStreamInfo.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_MonitorStreamInfo extends Google_Model
+{
+ public $broadcastStreamDelayMs;
+ public $embedHtml;
+ public $enableMonitorStream;
+
+ public function setBroadcastStreamDelayMs($broadcastStreamDelayMs)
+ {
+ $this->broadcastStreamDelayMs = $broadcastStreamDelayMs;
+ }
+ public function getBroadcastStreamDelayMs()
+ {
+ return $this->broadcastStreamDelayMs;
+ }
+ public function setEmbedHtml($embedHtml)
+ {
+ $this->embedHtml = $embedHtml;
+ }
+ public function getEmbedHtml()
+ {
+ return $this->embedHtml;
+ }
+ public function setEnableMonitorStream($enableMonitorStream)
+ {
+ $this->enableMonitorStream = $enableMonitorStream;
+ }
+ public function getEnableMonitorStream()
+ {
+ return $this->enableMonitorStream;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PageInfo.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PageInfo.php
new file mode 100644
index 00000000..186195dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PageInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PageInfo extends Google_Model
+{
+ public $resultsPerPage;
+ public $totalResults;
+
+ public function setResultsPerPage($resultsPerPage)
+ {
+ $this->resultsPerPage = $resultsPerPage;
+ }
+ public function getResultsPerPage()
+ {
+ return $this->resultsPerPage;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Playlist.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Playlist.php
new file mode 100644
index 00000000..ae07be22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Playlist.php
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Playlist extends Google_Model
+{
+ protected $contentDetailsType = 'Google_Service_YouTube_PlaylistContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization';
+ protected $localizationsDataType = 'map';
+ protected $playerType = 'Google_Service_YouTube_PlaylistPlayer';
+ protected $playerDataType = '';
+ protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet';
+ protected $snippetDataType = '';
+ protected $statusType = 'Google_Service_YouTube_PlaylistStatus';
+ protected $statusDataType = '';
+
+ public function setContentDetails(Google_Service_YouTube_PlaylistContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocalizations($localizations)
+ {
+ $this->localizations = $localizations;
+ }
+ public function getLocalizations()
+ {
+ return $this->localizations;
+ }
+ public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player)
+ {
+ $this->player = $player;
+ }
+ public function getPlayer()
+ {
+ return $this->player;
+ }
+ public function setSnippet(Google_Service_YouTube_PlaylistSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setStatus(Google_Service_YouTube_PlaylistStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistContentDetails.php
new file mode 100644
index 00000000..bd6ba396
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistContentDetails.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistContentDetails extends Google_Model
+{
+ public $itemCount;
+
+ public function setItemCount($itemCount)
+ {
+ $this->itemCount = $itemCount;
+ }
+ public function getItemCount()
+ {
+ return $this->itemCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItem.php
new file mode 100644
index 00000000..04682ef9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItem.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistItem extends Google_Model
+{
+ protected $contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_PlaylistItemSnippet';
+ protected $snippetDataType = '';
+ protected $statusType = 'Google_Service_YouTube_PlaylistItemStatus';
+ protected $statusDataType = '';
+
+ public function setContentDetails(Google_Service_YouTube_PlaylistItemContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_PlaylistItemSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setStatus(Google_Service_YouTube_PlaylistItemStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemContentDetails.php
new file mode 100644
index 00000000..2799050d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemContentDetails.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistItemContentDetails extends Google_Model
+{
+ public $endAt;
+ public $note;
+ public $startAt;
+ public $videoId;
+ public $videoPublishedAt;
+
+ public function setEndAt($endAt)
+ {
+ $this->endAt = $endAt;
+ }
+ public function getEndAt()
+ {
+ return $this->endAt;
+ }
+ public function setNote($note)
+ {
+ $this->note = $note;
+ }
+ public function getNote()
+ {
+ return $this->note;
+ }
+ public function setStartAt($startAt)
+ {
+ $this->startAt = $startAt;
+ }
+ public function getStartAt()
+ {
+ return $this->startAt;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+ public function setVideoPublishedAt($videoPublishedAt)
+ {
+ $this->videoPublishedAt = $videoPublishedAt;
+ }
+ public function getVideoPublishedAt()
+ {
+ return $this->videoPublishedAt;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemListResponse.php
new file mode 100644
index 00000000..ae601848
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistItemListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_PlaylistItem';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemSnippet.php
new file mode 100644
index 00000000..c837145f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemSnippet.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistItemSnippet extends Google_Model
+{
+ public $channelId;
+ public $channelTitle;
+ public $description;
+ public $playlistId;
+ public $position;
+ public $publishedAt;
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelTitle($channelTitle)
+ {
+ $this->channelTitle = $channelTitle;
+ }
+ public function getChannelTitle()
+ {
+ return $this->channelTitle;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setPlaylistId($playlistId)
+ {
+ $this->playlistId = $playlistId;
+ }
+ public function getPlaylistId()
+ {
+ return $this->playlistId;
+ }
+ public function setPosition($position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemStatus.php
new file mode 100644
index 00000000..369bea1c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistItemStatus.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistItemStatus extends Google_Model
+{
+ public $privacyStatus;
+
+ public function setPrivacyStatus($privacyStatus)
+ {
+ $this->privacyStatus = $privacyStatus;
+ }
+ public function getPrivacyStatus()
+ {
+ return $this->privacyStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistListResponse.php
new file mode 100644
index 00000000..1728d214
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Playlist';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistLocalization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistLocalization.php
new file mode 100644
index 00000000..15dc4243
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistLocalization.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistLocalization extends Google_Model
+{
+ public $description;
+ public $title;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistPlayer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistPlayer.php
new file mode 100644
index 00000000..2689dc13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistPlayer.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistPlayer extends Google_Model
+{
+ public $embedHtml;
+
+ public function setEmbedHtml($embedHtml)
+ {
+ $this->embedHtml = $embedHtml;
+ }
+ public function getEmbedHtml()
+ {
+ return $this->embedHtml;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistSnippet.php
new file mode 100644
index 00000000..89e191cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistSnippet.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistSnippet extends Google_Collection
+{
+ protected $collection_key = 'tags';
+ public $channelId;
+ public $channelTitle;
+ public $defaultLanguage;
+ public $description;
+ protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization';
+ protected $localizedDataType = '';
+ public $publishedAt;
+ public $tags;
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelTitle($channelTitle)
+ {
+ $this->channelTitle = $channelTitle;
+ }
+ public function getChannelTitle()
+ {
+ return $this->channelTitle;
+ }
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized)
+ {
+ $this->localized = $localized;
+ }
+ public function getLocalized()
+ {
+ return $this->localized;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setTags($tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistStatus.php
new file mode 100644
index 00000000..3d9ddb5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PlaylistStatus.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PlaylistStatus extends Google_Model
+{
+ public $privacyStatus;
+
+ public function setPrivacyStatus($privacyStatus)
+ {
+ $this->privacyStatus = $privacyStatus;
+ }
+ public function getPrivacyStatus()
+ {
+ return $this->privacyStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItem.php
new file mode 100644
index 00000000..7d39b65d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItem.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PromotedItem extends Google_Model
+{
+ public $customMessage;
+ protected $idType = 'Google_Service_YouTube_PromotedItemId';
+ protected $idDataType = '';
+ public $promotedByContentOwner;
+ protected $timingType = 'Google_Service_YouTube_InvideoTiming';
+ protected $timingDataType = '';
+
+ public function setCustomMessage($customMessage)
+ {
+ $this->customMessage = $customMessage;
+ }
+ public function getCustomMessage()
+ {
+ return $this->customMessage;
+ }
+ public function setId(Google_Service_YouTube_PromotedItemId $id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setPromotedByContentOwner($promotedByContentOwner)
+ {
+ $this->promotedByContentOwner = $promotedByContentOwner;
+ }
+ public function getPromotedByContentOwner()
+ {
+ return $this->promotedByContentOwner;
+ }
+ public function setTiming(Google_Service_YouTube_InvideoTiming $timing)
+ {
+ $this->timing = $timing;
+ }
+ public function getTiming()
+ {
+ return $this->timing;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItemId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItemId.php
new file mode 100644
index 00000000..64f3b33c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PromotedItemId.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PromotedItemId extends Google_Model
+{
+ public $recentlyUploadedBy;
+ public $type;
+ public $videoId;
+ public $websiteUrl;
+
+ public function setRecentlyUploadedBy($recentlyUploadedBy)
+ {
+ $this->recentlyUploadedBy = $recentlyUploadedBy;
+ }
+ public function getRecentlyUploadedBy()
+ {
+ return $this->recentlyUploadedBy;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+ public function setWebsiteUrl($websiteUrl)
+ {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl()
+ {
+ return $this->websiteUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PropertyValue.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PropertyValue.php
new file mode 100644
index 00000000..23e2a2bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/PropertyValue.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_PropertyValue extends Google_Model
+{
+ public $property;
+ public $value;
+
+ public function setProperty($property)
+ {
+ $this->property = $property;
+ }
+ public function getProperty()
+ {
+ return $this->property;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Activities.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Activities.php
new file mode 100644
index 00000000..eb30ba16
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Activities.php
@@ -0,0 +1,109 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "activities" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $activities = $youtubeService->activities;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Activities extends Google_Service_Resource
+{
+ /**
+ * Posts a bulletin for a specific channel. (The user submitting the request
+ * must be authorized to act on the channel's behalf.)
+ *
+ * Note: Even though an activity resource can contain information about actions
+ * like a user rating a video or marking a video as a favorite, you need to use
+ * other API methods to generate those activity resources. For example, you
+ * would use the API's videos.rate() method to rate a video and the
+ * playlistItems.insert() method to mark a video as a favorite.
+ * (activities.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ * @param Google_Service_YouTube_Activity $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_Activity
+ */
+ public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Activity");
+ }
+ /**
+ * Returns a list of channel activity events that match the request criteria.
+ * For example, you can retrieve events associated with a particular channel,
+ * events associated with the user's subscriptions and Google+ friends, or the
+ * YouTube home page feed, which is customized for each user.
+ * (activities.listActivities)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more activity resource properties that the API response will include.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in an
+ * activity resource, the snippet property contains other properties that
+ * identify the type of activity, a display title for the activity, and so
+ * forth. If you set part=snippet, the API response will also contain all of
+ * those nested properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string channelId The channelId parameter specifies a unique
+ * YouTube channel ID. The API will then return a list of that channel's
+ * activities.
+ * @opt_param bool home Set this parameter's value to true to retrieve the
+ * activity feed that displays on the YouTube home page for the currently
+ * authenticated user.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
+ * the authenticated user's activities.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @opt_param string publishedAfter The publishedAfter parameter specifies the
+ * earliest date and time that an activity could have occurred for that activity
+ * to be included in the API response. If the parameter value specifies a day,
+ * but not a time, then any activities that occurred that day will be included
+ * in the result set. The value is specified in ISO 8601 (YYYY-MM-
+ * DDThh:mm:ss.sZ) format.
+ * @opt_param string publishedBefore The publishedBefore parameter specifies the
+ * date and time before which an activity must have occurred for that activity
+ * to be included in the API response. If the parameter value specifies a day,
+ * but not a time, then any activities that occurred that day will be excluded
+ * from the result set. The value is specified in ISO 8601 (YYYY-MM-
+ * DDThh:mm:ss.sZ) format.
+ * @opt_param string regionCode The regionCode parameter instructs the API to
+ * return results for the specified country. The parameter value is an ISO
+ * 3166-1 alpha-2 country code. YouTube uses this value when the authorized
+ * user's previous activity on YouTube does not provide enough information to
+ * generate the activity feed.
+ * @return Google_Service_YouTube_ActivityListResponse
+ */
+ public function listActivities($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Captions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Captions.php
new file mode 100644
index 00000000..3335b6ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Captions.php
@@ -0,0 +1,215 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "captions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $captions = $youtubeService->captions;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Captions extends Google_Service_Resource
+{
+ /**
+ * Deletes a specified caption track. (captions.delete)
+ *
+ * @param string $id The id parameter identifies the caption track that is being
+ * deleted. The value is a caption track ID as identified by the id property in
+ * a caption resource.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Downloads a caption track. The caption track is returned in its original
+ * format unless the request specifies a value for the tfmt parameter and in its
+ * original language unless the request specifies a value for the tlang
+ * parameter. (captions.download)
+ *
+ * @param string $id The id parameter identifies the caption track that is being
+ * retrieved. The value is a caption track ID as identified by the id property
+ * in a caption resource.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ * @opt_param string tfmt The tfmt parameter specifies that the caption track
+ * should be returned in a specific format. If the parameter is not included in
+ * the request, the track is returned in its original format.
+ * @opt_param string tlang The tlang parameter specifies that the API response
+ * should return a translation of the specified caption track. The parameter
+ * value is an ISO 639-1 two-letter language code that identifies the desired
+ * caption language. The translation is generated by using machine translation,
+ * such as Google Translate.
+ */
+ public function download($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('download', array($params));
+ }
+ /**
+ * Uploads a caption track. (captions.insert)
+ *
+ * @param string $part The part parameter specifies the caption resource parts
+ * that the API response will include. Set the parameter value to snippet.
+ * @param Google_Service_YouTube_Caption $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ * @opt_param bool sync The sync parameter indicates whether YouTube should
+ * automatically synchronize the caption file with the audio track of the video.
+ * If you set the value to true, YouTube will disregard any time codes that are
+ * in the uploaded caption file and generate new time codes for the captions.
+ *
+ * You should set the sync parameter to true if you are uploading a transcript,
+ * which has no time codes, or if you suspect the time codes in your file are
+ * incorrect and want YouTube to try to fix them.
+ * @return Google_Service_YouTube_Caption
+ */
+ public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Caption");
+ }
+ /**
+ * Returns a list of caption tracks that are associated with a specified video.
+ * Note that the API response does not contain the actual captions and that the
+ * captions.download method provides the ability to retrieve a caption track.
+ * (captions.listCaptions)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more caption resource parts that the API response will include. The
+ * part names that you can include in the parameter value are id and snippet.
+ * @param string $videoId The videoId parameter specifies the YouTube video ID
+ * of the video for which the API should return caption tracks.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string id The id parameter specifies a comma-separated list of IDs
+ * that identify the caption resources that should be retrieved. Each ID must
+ * identify a caption track associated with the specified video.
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is on behalf of.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ * @return Google_Service_YouTube_CaptionListResponse
+ */
+ public function listCaptions($part, $videoId, $optParams = array())
+ {
+ $params = array('part' => $part, 'videoId' => $videoId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse");
+ }
+ /**
+ * Updates a caption track. When updating a caption track, you can change the
+ * track's draft status, upload a new caption file for the track, or both.
+ * (captions.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include. Set the property value to
+ * snippet if you are updating the track's draft status. Otherwise, set the
+ * property value to id.
+ * @param Google_Service_YouTube_Caption $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ * @opt_param bool sync Note: The API server only processes the parameter value
+ * if the request contains an updated caption file.
+ *
+ * The sync parameter indicates whether YouTube should automatically synchronize
+ * the caption file with the audio track of the video. If you set the value to
+ * true, YouTube will automatically synchronize the caption track with the audio
+ * track.
+ * @return Google_Service_YouTube_Caption
+ */
+ public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_Caption");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelBanners.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelBanners.php
new file mode 100644
index 00000000..c03b33d0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelBanners.php
@@ -0,0 +1,62 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channelBanners" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $channelBanners = $youtubeService->channelBanners;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_ChannelBanners extends Google_Service_Resource
+{
+ /**
+ * Uploads a channel banner image to YouTube. This method represents the first
+ * two steps in a three-step process to update the banner image for a channel:
+ *
+ * - Call the channelBanners.insert method to upload the binary image data to
+ * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192
+ * pixels. - Extract the url property's value from the response that the API
+ * returns for step 1. - Call the channels.update method to update the channel's
+ * branding settings. Set the brandingSettings.image.bannerExternalUrl
+ * property's value to the URL obtained in step 2. (channelBanners.insert)
+ *
+ * @param Google_Service_YouTube_ChannelBannerResource $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTube_ChannelBannerResource
+ */
+ public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelSections.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelSections.php
new file mode 100644
index 00000000..2ad138f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/ChannelSections.php
@@ -0,0 +1,190 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channelSections" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $channelSections = $youtubeService->channelSections;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_ChannelSections extends Google_Service_Resource
+{
+ /**
+ * Deletes a channelSection. (channelSections.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube channelSection ID
+ * for the resource that is being deleted. In a channelSection resource, the id
+ * property specifies the YouTube channelSection ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a channelSection for the authenticated user's channel.
+ * (channelSections.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part names that you can include in the parameter value are snippet and
+ * contentDetails.
+ * @param Google_Service_YouTube_ChannelSection $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @return Google_Service_YouTube_ChannelSection
+ */
+ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_ChannelSection");
+ }
+ /**
+ * Returns channelSection resources that match the API request criteria.
+ * (channelSections.listChannelSections)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more channelSection resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id,
+ * snippet, and contentDetails.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in a
+ * channelSection resource, the snippet property contains other properties, such
+ * as a display title for the channelSection. If you set part=snippet, the API
+ * response will also contain all of those nested properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string channelId The channelId parameter specifies a YouTube
+ * channel ID. The API will only return that channel's channelSections.
+ * @opt_param string hl The hl parameter indicates that the snippet.localized
+ * property values in the returned channelSection resources should be in the
+ * specified language if localized values for that language are available. For
+ * example, if the API request specifies hl=de, the snippet.localized properties
+ * in the API response will contain German titles if German titles are
+ * available. Channel owners can provide localized channel section titles using
+ * either the channelSections.insert or channelSections.update method.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In
+ * a channelSection resource, the id property specifies the YouTube
+ * channelSection ID.
+ * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
+ * the authenticated user's channelSections.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTube_ChannelSectionListResponse
+ */
+ public function listChannelSections($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_ChannelSectionListResponse");
+ }
+ /**
+ * Update a channelSection. (channelSections.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part names that you can include in the parameter value are snippet and
+ * contentDetails.
+ * @param Google_Service_YouTube_ChannelSection $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTube_ChannelSection
+ */
+ public function update($part, Google_Service_YouTube_ChannelSection $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_ChannelSection");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Channels.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Channels.php
new file mode 100644
index 00000000..cc79713c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Channels.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $channels = $youtubeService->channels;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Channels extends Google_Service_Resource
+{
+ /**
+ * Returns a collection of zero or more channel resources that match the request
+ * criteria. (channels.listChannels)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more channel resource properties that the API response will include.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in a channel
+ * resource, the contentDetails property contains other properties, such as the
+ * uploads properties. As such, if you set part=contentDetails, the API response
+ * will also contain all of those nested properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string categoryId The categoryId parameter specifies a YouTube
+ * guide category, thereby requesting YouTube channels associated with that
+ * category.
+ * @opt_param string forUsername The forUsername parameter specifies a YouTube
+ * username, thereby requesting the channel associated with that username.
+ * @opt_param string hl The hl parameter should be used for filter out the
+ * properties that are not in the given language. Used for the brandingSettings
+ * part.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube channel ID(s) for the resource(s) that are being retrieved. In a
+ * channel resource, the id property specifies the channel's YouTube channel ID.
+ * @opt_param bool managedByMe Note: This parameter is intended exclusively for
+ * YouTube content partners.
+ *
+ * Set this parameter's value to true to instruct the API to only return
+ * channels managed by the content owner that the onBehalfOfContentOwner
+ * parameter specifies. The user must be authenticated as a CMS account linked
+ * to the specified content owner and onBehalfOfContentOwner must be provided.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param bool mine Set this parameter's value to true to instruct the API
+ * to only return channels owned by the authenticated user.
+ * @opt_param bool mySubscribers Use the subscriptions.list method and its
+ * mySubscribers parameter to retrieve a list of subscribers to the
+ * authenticated user's channel.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_ChannelListResponse
+ */
+ public function listChannels($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse");
+ }
+ /**
+ * Updates a channel's metadata. Note that this method currently only supports
+ * updates to the channel resource's brandingSettings and invideoPromotion
+ * objects and their child properties. (channels.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The API currently only allows the parameter value to be set to either
+ * brandingSettings or invideoPromotion. (You cannot update both of those parts
+ * with a single request.)
+ *
+ * Note that this method overrides the existing values for all of the mutable
+ * properties that are contained in any parts that the parameter value
+ * specifies.
+ * @param Google_Service_YouTube_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter
+ * indicates that the authenticated user is acting on behalf of the content
+ * owner specified in the parameter value. This parameter is intended for
+ * YouTube content partners that own and manage many different YouTube channels.
+ * It allows content owners to authenticate once and get access to all their
+ * video and channel data, without having to provide authentication credentials
+ * for each individual channel. The actual CMS account that the user
+ * authenticates with needs to be linked to the specified YouTube content owner.
+ * @return Google_Service_YouTube_Channel
+ */
+ public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_Channel");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/CommentThreads.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/CommentThreads.php
new file mode 100644
index 00000000..4e09a3ad
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/CommentThreads.php
@@ -0,0 +1,121 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "commentThreads" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $commentThreads = $youtubeService->commentThreads;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_CommentThreads extends Google_Service_Resource
+{
+ /**
+ * Creates a new top-level comment. To add a reply to an existing comment, use
+ * the comments.insert method instead. (commentThreads.insert)
+ *
+ * @param string $part The part parameter identifies the properties that the API
+ * response will include. Set the parameter value to snippet. The snippet part
+ * has a quota cost of 2 units.
+ * @param Google_Service_YouTube_CommentThread $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_CommentThread
+ */
+ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread");
+ }
+ /**
+ * Returns a list of comment threads that match the API request parameters.
+ * (commentThreads.listCommentThreads)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more commentThread resource properties that the API response will
+ * include.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string allThreadsRelatedToChannelId The
+ * allThreadsRelatedToChannelId parameter instructs the API to return all
+ * comment threads associated with the specified channel. The response can
+ * include comments about the channel or about the channel's videos.
+ * @opt_param string channelId The channelId parameter instructs the API to
+ * return comment threads containing comments about the specified channel. (The
+ * response will not include comments left on videos that the channel uploaded.)
+ * @opt_param string id The id parameter specifies a comma-separated list of
+ * comment thread IDs for the resources that should be retrieved.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string moderationStatus Set this parameter to limit the returned
+ * comment threads to a particular moderation state.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string order The order parameter specifies the order in which the
+ * API response should list comment threads. Valid values are: - time - Comment
+ * threads are ordered by time. This is the default behavior. - relevance -
+ * Comment threads are ordered by relevance.Note: This parameter is not
+ * supported for use in conjunction with the id parameter.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken property identifies the next page of the result that can be
+ * retrieved.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string searchTerms The searchTerms parameter instructs the API to
+ * limit the API response to only contain comments that contain the specified
+ * search terms.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string textFormat Set this parameter's value to html or plainText
+ * to instruct the API to return the comments left by users in html formatted or
+ * in plain text.
+ * @opt_param string videoId The videoId parameter instructs the API to return
+ * comment threads associated with the specified video ID.
+ * @return Google_Service_YouTube_CommentThreadListResponse
+ */
+ public function listCommentThreads($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse");
+ }
+ /**
+ * Modifies the top-level comment in a comment thread. (commentThreads.update)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * commentThread resource properties that the API response will include. You
+ * must at least include the snippet part in the parameter value since that part
+ * contains all of the properties that the API request can update.
+ * @param Google_Service_YouTube_CommentThread $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_CommentThread
+ */
+ public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_CommentThread");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Comments.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Comments.php
new file mode 100644
index 00000000..44bb7f61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Comments.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $comments = $youtubeService->comments;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Comments extends Google_Service_Resource
+{
+ /**
+ * Deletes a comment. (comments.delete)
+ *
+ * @param string $id The id parameter specifies the comment ID for the resource
+ * that is being deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Creates a reply to an existing comment. Note: To create a top-level comment,
+ * use the commentThreads.insert method. (comments.insert)
+ *
+ * @param string $part The part parameter identifies the properties that the API
+ * response will include. Set the parameter value to snippet. The snippet part
+ * has a quota cost of 2 units.
+ * @param Google_Service_YouTube_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_Comment
+ */
+ public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Comment");
+ }
+ /**
+ * Returns a list of comments that match the API request parameters.
+ * (comments.listComments)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more comment resource properties that the API response will include.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string id The id parameter specifies a comma-separated list of
+ * comment IDs for the resources that are being retrieved. In a comment
+ * resource, the id property specifies the comment's ID.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken property identifies the next page of the result that can be
+ * retrieved.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string parentId The parentId parameter specifies the ID of the
+ * comment for which replies should be retrieved.
+ *
+ * Note: YouTube currently supports replies only for top-level comments.
+ * However, replies to replies may be supported in the future.
+ * @opt_param string textFormat This parameter indicates whether the API should
+ * return comments formatted as HTML or as plain text.
+ * @return Google_Service_YouTube_CommentListResponse
+ */
+ public function listComments($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse");
+ }
+ /**
+ * Expresses the caller's opinion that one or more comments should be flagged as
+ * spam. (comments.markAsSpam)
+ *
+ * @param string $id The id parameter specifies a comma-separated list of IDs of
+ * comments that the caller believes should be classified as spam.
+ * @param array $optParams Optional parameters.
+ */
+ public function markAsSpam($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('markAsSpam', array($params));
+ }
+ /**
+ * Sets the moderation status of one or more comments. The API request must be
+ * authorized by the owner of the channel or video associated with the comments.
+ * (comments.setModerationStatus)
+ *
+ * @param string $id The id parameter specifies a comma-separated list of IDs
+ * that identify the comments for which you are updating the moderation status.
+ * @param string $moderationStatus Identifies the new moderation status of the
+ * specified comments.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you
+ * want to automatically reject any additional comments written by the comment's
+ * author. Set the parameter value to true to ban the author.
+ *
+ * Note: This parameter is only valid if the moderationStatus parameter is also
+ * set to rejected.
+ */
+ public function setModerationStatus($id, $moderationStatus, $optParams = array())
+ {
+ $params = array('id' => $id, 'moderationStatus' => $moderationStatus);
+ $params = array_merge($params, $optParams);
+ return $this->call('setModerationStatus', array($params));
+ }
+ /**
+ * Modifies a comment. (comments.update)
+ *
+ * @param string $part The part parameter identifies the properties that the API
+ * response will include. You must at least include the snippet part in the
+ * parameter value since that part contains all of the properties that the API
+ * request can update.
+ * @param Google_Service_YouTube_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_Comment
+ */
+ public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_Comment");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/FanFundingEvents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/FanFundingEvents.php
new file mode 100644
index 00000000..1a52421b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/FanFundingEvents.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "fanFundingEvents" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $fanFundingEvents = $youtubeService->fanFundingEvents;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_FanFundingEvents extends Google_Service_Resource
+{
+ /**
+ * Lists fan funding events for a channel.
+ * (fanFundingEvents.listFanFundingEvents)
+ *
+ * @param string $part The part parameter specifies the fanFundingEvent resource
+ * parts that the API response will include. Supported values are id and
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter instructs the API to retrieve localized
+ * resource metadata for a specific application language that the YouTube
+ * website supports. The parameter value must be a language code included in the
+ * list returned by the i18nLanguages.list method.
+ *
+ * If localized resource details are available in that language, the resource's
+ * snippet.localized object will contain the localized values. However, if
+ * localized details are not available, the snippet.localized object will
+ * contain resource details in the resource's default language.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_FanFundingEventListResponse
+ */
+ public function listFanFundingEvents($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_FanFundingEventListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/GuideCategories.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/GuideCategories.php
new file mode 100644
index 00000000..6ca0020c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/GuideCategories.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "guideCategories" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $guideCategories = $youtubeService->guideCategories;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_GuideCategories extends Google_Service_Resource
+{
+ /**
+ * Returns a list of categories that can be associated with YouTube channels.
+ * (guideCategories.listGuideCategories)
+ *
+ * @param string $part The part parameter specifies the guideCategory resource
+ * properties that the API response will include. Set the parameter value to
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that will be
+ * used for text values in the API response.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube channel category ID(s) for the resource(s) that are being retrieved.
+ * In a guideCategory resource, the id property specifies the YouTube channel
+ * category ID.
+ * @opt_param string regionCode The regionCode parameter instructs the API to
+ * return the list of guide categories available in the specified country. The
+ * parameter value is an ISO 3166-1 alpha-2 country code.
+ * @return Google_Service_YouTube_GuideCategoryListResponse
+ */
+ public function listGuideCategories($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nLanguages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nLanguages.php
new file mode 100644
index 00000000..d6b11761
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nLanguages.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "i18nLanguages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $i18nLanguages = $youtubeService->i18nLanguages;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_I18nLanguages extends Google_Service_Resource
+{
+ /**
+ * Returns a list of application languages that the YouTube website supports.
+ * (i18nLanguages.listI18nLanguages)
+ *
+ * @param string $part The part parameter specifies the i18nLanguage resource
+ * properties that the API response will include. Set the parameter value to
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that should be
+ * used for text values in the API response.
+ * @return Google_Service_YouTube_I18nLanguageListResponse
+ */
+ public function listI18nLanguages($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nRegions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nRegions.php
new file mode 100644
index 00000000..107f39fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/I18nRegions.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "i18nRegions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $i18nRegions = $youtubeService->i18nRegions;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_I18nRegions extends Google_Service_Resource
+{
+ /**
+ * Returns a list of content regions that the YouTube website supports.
+ * (i18nRegions.listI18nRegions)
+ *
+ * @param string $part The part parameter specifies the i18nRegion resource
+ * properties that the API response will include. Set the parameter value to
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that should be
+ * used for text values in the API response.
+ * @return Google_Service_YouTube_I18nRegionListResponse
+ */
+ public function listI18nRegions($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveBroadcasts.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveBroadcasts.php
new file mode 100644
index 00000000..ae19831b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveBroadcasts.php
@@ -0,0 +1,438 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "liveBroadcasts" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $liveBroadcasts = $youtubeService->liveBroadcasts;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_LiveBroadcasts extends Google_Service_Resource
+{
+ /**
+ * Binds a YouTube broadcast to a stream or removes an existing binding between
+ * a broadcast and a stream. A broadcast can only be bound to one video stream,
+ * though a video stream may be bound to more than one broadcast.
+ * (liveBroadcasts.bind)
+ *
+ * @param string $id The id parameter specifies the unique ID of the broadcast
+ * that is being bound to a video stream.
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more liveBroadcast resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id,
+ * snippet, contentDetails, and status.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @opt_param string streamId The streamId parameter specifies the unique ID of
+ * the video stream that is being bound to a broadcast. If this parameter is
+ * omitted, the API will remove any existing binding between the broadcast and a
+ * video stream.
+ * @return Google_Service_YouTube_LiveBroadcast
+ */
+ public function bind($id, $part, $optParams = array())
+ {
+ $params = array('id' => $id, 'part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('bind', array($params), "Google_Service_YouTube_LiveBroadcast");
+ }
+ /**
+ * Controls the settings for a slate that can be displayed in the broadcast
+ * stream. (liveBroadcasts.control)
+ *
+ * @param string $id The id parameter specifies the YouTube live broadcast ID
+ * that uniquely identifies the broadcast in which the slate is being updated.
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more liveBroadcast resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id,
+ * snippet, contentDetails, and status.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool displaySlate The displaySlate parameter specifies whether the
+ * slate is being enabled or disabled.
+ * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a
+ * positive time offset when the specified slate change will occur. The value is
+ * measured in milliseconds from the beginning of the broadcast's monitor
+ * stream, which is the time that the testing phase for the broadcast began.
+ * Even though it is specified in milliseconds, the value is actually an
+ * approximation, and YouTube completes the requested action as closely as
+ * possible to that time.
+ *
+ * If you do not specify a value for this parameter, then YouTube performs the
+ * action as soon as possible. See the Getting started guide for more details.
+ *
+ * Important: You should only specify a value for this parameter if your
+ * broadcast stream is delayed.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @opt_param string walltime The walltime parameter specifies the wall clock
+ * time at which the specified slate change will occur. The value is specified
+ * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.
+ * @return Google_Service_YouTube_LiveBroadcast
+ */
+ public function control($id, $part, $optParams = array())
+ {
+ $params = array('id' => $id, 'part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('control', array($params), "Google_Service_YouTube_LiveBroadcast");
+ }
+ /**
+ * Deletes a broadcast. (liveBroadcasts.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube live broadcast ID
+ * for the resource that is being deleted.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Creates a broadcast. (liveBroadcasts.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part properties that you can include in the parameter value are id,
+ * snippet, contentDetails, and status.
+ * @param Google_Service_YouTube_LiveBroadcast $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @return Google_Service_YouTube_LiveBroadcast
+ */
+ public function insert($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_LiveBroadcast");
+ }
+ /**
+ * Returns a list of YouTube broadcasts that match the API request parameters.
+ * (liveBroadcasts.listLiveBroadcasts)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more liveBroadcast resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id,
+ * snippet, contentDetails, and status.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string broadcastStatus The broadcastStatus parameter filters the
+ * API response to only include broadcasts with the specified status.
+ * @opt_param string broadcastType The broadcastType parameter filters the API
+ * response to only include broadcasts with the specified type. This is only
+ * compatible with the mine filter for now.
+ * @opt_param string id The id parameter specifies a comma-separated list of
+ * YouTube broadcast IDs that identify the broadcasts being retrieved. In a
+ * liveBroadcast resource, the id property specifies the broadcast's ID.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param bool mine The mine parameter can be used to instruct the API to
+ * only return broadcasts owned by the authenticated user. Set the parameter
+ * value to true to only retrieve your own broadcasts.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_LiveBroadcastListResponse
+ */
+ public function listLiveBroadcasts($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_LiveBroadcastListResponse");
+ }
+ /**
+ * Changes the status of a YouTube live broadcast and initiates any processes
+ * associated with the new status. For example, when you transition a
+ * broadcast's status to testing, YouTube starts to transmit video to that
+ * broadcast's monitor stream. Before calling this method, you should confirm
+ * that the value of the status.streamStatus property for the stream bound to
+ * your broadcast is active. (liveBroadcasts.transition)
+ *
+ * @param string $broadcastStatus The broadcastStatus parameter identifies the
+ * state to which the broadcast is changing. Note that to transition a broadcast
+ * to either the testing or live state, the status.streamStatus must be active
+ * for the stream that the broadcast is bound to.
+ * @param string $id The id parameter specifies the unique ID of the broadcast
+ * that is transitioning to another status.
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more liveBroadcast resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id,
+ * snippet, contentDetails, and status.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @return Google_Service_YouTube_LiveBroadcast
+ */
+ public function transition($broadcastStatus, $id, $part, $optParams = array())
+ {
+ $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('transition', array($params), "Google_Service_YouTube_LiveBroadcast");
+ }
+ /**
+ * Updates a broadcast. For example, you could modify the broadcast settings
+ * defined in the liveBroadcast resource's contentDetails object.
+ * (liveBroadcasts.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part properties that you can include in the parameter value are id,
+ * snippet, contentDetails, and status.
+ *
+ * Note that this method will override the existing values for all of the
+ * mutable properties that are contained in any parts that the parameter value
+ * specifies. For example, a broadcast's privacy status is defined in the status
+ * part. As such, if your request is updating a private or unlisted broadcast,
+ * and the request's part parameter value includes the status part, the
+ * broadcast's privacy setting will be updated to whatever value the request
+ * body specifies. If the request body does not specify a value, the existing
+ * privacy setting will be removed and the broadcast will revert to the default
+ * privacy setting.
+ * @param Google_Service_YouTube_LiveBroadcast $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @return Google_Service_YouTube_LiveBroadcast
+ */
+ public function update($part, Google_Service_YouTube_LiveBroadcast $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_LiveBroadcast");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatBans.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatBans.php
new file mode 100644
index 00000000..629393a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatBans.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "liveChatBans" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $liveChatBans = $youtubeService->liveChatBans;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_LiveChatBans extends Google_Service_Resource
+{
+ /**
+ * Removes a chat ban. (liveChatBans.delete)
+ *
+ * @param string $id The id parameter identifies the chat ban to remove. The
+ * value uniquely identifies both the ban and the chat.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a new ban to the chat. (liveChatBans.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response returns. Set the parameter value to snippet.
+ * @param Google_Service_YouTube_LiveChatBan $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_LiveChatBan
+ */
+ public function insert($part, Google_Service_YouTube_LiveChatBan $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatBan");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatMessages.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatMessages.php
new file mode 100644
index 00000000..46033d51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatMessages.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "liveChatMessages" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $liveChatMessages = $youtubeService->liveChatMessages;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_LiveChatMessages extends Google_Service_Resource
+{
+ /**
+ * Deletes a chat message. (liveChatMessages.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube chat message ID of
+ * the resource that is being deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a message to a live chat. (liveChatMessages.insert)
+ *
+ * @param string $part The part parameter serves two purposes. It identifies the
+ * properties that the write operation will set as well as the properties that
+ * the API response will include. Set the parameter value to snippet.
+ * @param Google_Service_YouTube_LiveChatMessage $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_LiveChatMessage
+ */
+ public function insert($part, Google_Service_YouTube_LiveChatMessage $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatMessage");
+ }
+ /**
+ * Lists live chat messages for a specific chat.
+ * (liveChatMessages.listLiveChatMessages)
+ *
+ * @param string $liveChatId The liveChatId parameter specifies the ID of the
+ * chat whose messages will be returned.
+ * @param string $part The part parameter specifies the liveChatComment resource
+ * parts that the API response will include. Supported values are id and
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter instructs the API to retrieve localized
+ * resource metadata for a specific application language that the YouTube
+ * website supports. The parameter value must be a language code included in the
+ * list returned by the i18nLanguages.list method.
+ *
+ * If localized resource details are available in that language, the resource's
+ * snippet.localized object will contain the localized values. However, if
+ * localized details are not available, the snippet.localized object will
+ * contain resource details in the resource's default language.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of messages that should be returned in the result set.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken property identify other pages that could be retrieved.
+ * @opt_param string profileImageSize The profileImageSize parameter specifies
+ * the size of the user profile pictures that should be returned in the result
+ * set. Default: 88.
+ * @return Google_Service_YouTube_LiveChatMessageListResponse
+ */
+ public function listLiveChatMessages($liveChatId, $part, $optParams = array())
+ {
+ $params = array('liveChatId' => $liveChatId, 'part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_LiveChatMessageListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatModerators.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatModerators.php
new file mode 100644
index 00000000..e9bd09f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveChatModerators.php
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "liveChatModerators" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $liveChatModerators = $youtubeService->liveChatModerators;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_LiveChatModerators extends Google_Service_Resource
+{
+ /**
+ * Removes a chat moderator. (liveChatModerators.delete)
+ *
+ * @param string $id The id parameter identifies the chat moderator to remove.
+ * The value uniquely identifies both the moderator and the chat.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a new moderator for the chat. (liveChatModerators.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response returns. Set the parameter value to snippet.
+ * @param Google_Service_YouTube_LiveChatModerator $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_LiveChatModerator
+ */
+ public function insert($part, Google_Service_YouTube_LiveChatModerator $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_LiveChatModerator");
+ }
+ /**
+ * Lists moderators for a live chat. (liveChatModerators.listLiveChatModerators)
+ *
+ * @param string $liveChatId The liveChatId parameter specifies the YouTube live
+ * chat for which the API should return moderators.
+ * @param string $part The part parameter specifies the liveChatModerator
+ * resource parts that the API response will include. Supported values are id
+ * and snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_LiveChatModeratorListResponse
+ */
+ public function listLiveChatModerators($liveChatId, $part, $optParams = array())
+ {
+ $params = array('liveChatId' => $liveChatId, 'part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_LiveChatModeratorListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveStreams.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveStreams.php
new file mode 100644
index 00000000..002da409
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/LiveStreams.php
@@ -0,0 +1,244 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "liveStreams" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $liveStreams = $youtubeService->liveStreams;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_LiveStreams extends Google_Service_Resource
+{
+ /**
+ * Deletes a video stream. (liveStreams.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube live stream ID for
+ * the resource that is being deleted.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Creates a video stream. The stream enables you to send your video to YouTube,
+ * which can then broadcast the video to your audience. (liveStreams.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part properties that you can include in the parameter value are id,
+ * snippet, cdn, and status.
+ * @param Google_Service_YouTube_LiveStream $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @return Google_Service_YouTube_LiveStream
+ */
+ public function insert($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_LiveStream");
+ }
+ /**
+ * Returns a list of video streams that match the API request parameters.
+ * (liveStreams.listLiveStreams)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more liveStream resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id,
+ * snippet, cdn, and status.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string id The id parameter specifies a comma-separated list of
+ * YouTube stream IDs that identify the streams being retrieved. In a liveStream
+ * resource, the id property specifies the stream's ID.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param bool mine The mine parameter can be used to instruct the API to
+ * only return streams owned by the authenticated user. Set the parameter value
+ * to true to only retrieve your own streams.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_LiveStreamListResponse
+ */
+ public function listLiveStreams($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_LiveStreamListResponse");
+ }
+ /**
+ * Updates a video stream. If the properties that you want to change cannot be
+ * updated, then you need to create a new stream with the proper settings.
+ * (liveStreams.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part properties that you can include in the parameter value are id,
+ * snippet, cdn, and status.
+ *
+ * Note that this method will override the existing values for all of the
+ * mutable properties that are contained in any parts that the parameter value
+ * specifies. If the request body does not specify a value for a mutable
+ * property, the existing value for that property will be removed.
+ * @param Google_Service_YouTube_LiveStream $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @return Google_Service_YouTube_LiveStream
+ */
+ public function update($part, Google_Service_YouTube_LiveStream $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_LiveStream");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/PlaylistItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/PlaylistItems.php
new file mode 100644
index 00000000..1b2cc29d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/PlaylistItems.php
@@ -0,0 +1,178 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "playlistItems" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $playlistItems = $youtubeService->playlistItems;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_PlaylistItems extends Google_Service_Resource
+{
+ /**
+ * Deletes a playlist item. (playlistItems.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube playlist item ID for
+ * the playlist item that is being deleted. In a playlistItem resource, the id
+ * property specifies the playlist item's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a resource to a playlist. (playlistItems.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ * @param Google_Service_YouTube_PlaylistItem $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTube_PlaylistItem
+ */
+ public function insert($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_PlaylistItem");
+ }
+ /**
+ * Returns a collection of playlist items that match the API request parameters.
+ * You can retrieve all of the playlist items in a specified playlist or
+ * retrieve one or more playlist items by their unique IDs.
+ * (playlistItems.listPlaylistItems)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more playlistItem resource properties that the API response will
+ * include.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in a
+ * playlistItem resource, the snippet property contains numerous fields,
+ * including the title, description, position, and resourceId properties. As
+ * such, if you set part=snippet, the API response will contain all of those
+ * properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string id The id parameter specifies a comma-separated list of one
+ * or more unique playlist item IDs.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @opt_param string playlistId The playlistId parameter specifies the unique ID
+ * of the playlist for which you want to retrieve playlist items. Note that even
+ * though this is an optional parameter, every request to retrieve playlist
+ * items must specify a value for either the id parameter or the playlistId
+ * parameter.
+ * @opt_param string videoId The videoId parameter specifies that the request
+ * should return only the playlist items that contain the specified video.
+ * @return Google_Service_YouTube_PlaylistItemListResponse
+ */
+ public function listPlaylistItems($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_PlaylistItemListResponse");
+ }
+ /**
+ * Modifies a playlist item. For example, you could update the item's position
+ * in the playlist. (playlistItems.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * Note that this method will override the existing values for all of the
+ * mutable properties that are contained in any parts that the parameter value
+ * specifies. For example, a playlist item can specify a start time and end
+ * time, which identify the times portion of the video that should play when
+ * users watch the video in the playlist. If your request is updating a playlist
+ * item that sets these values, and the request's part parameter value includes
+ * the contentDetails part, the playlist item's start and end times will be
+ * updated to whatever value the request body specifies. If the request body
+ * does not specify values, the existing start and end times will be removed and
+ * replaced with the default settings.
+ * @param Google_Service_YouTube_PlaylistItem $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTube_PlaylistItem
+ */
+ public function update($part, Google_Service_YouTube_PlaylistItem $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_PlaylistItem");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Playlists.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Playlists.php
new file mode 100644
index 00000000..cba9b15a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Playlists.php
@@ -0,0 +1,211 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "playlists" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $playlists = $youtubeService->playlists;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Playlists extends Google_Service_Resource
+{
+ /**
+ * Deletes a playlist. (playlists.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube playlist ID for the
+ * playlist that is being deleted. In a playlist resource, the id property
+ * specifies the playlist's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Creates a playlist. (playlists.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ * @param Google_Service_YouTube_Playlist $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @return Google_Service_YouTube_Playlist
+ */
+ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Playlist");
+ }
+ /**
+ * Returns a collection of playlists that match the API request parameters. For
+ * example, you can retrieve all playlists that the authenticated user owns, or
+ * you can retrieve one or more playlists by their unique IDs.
+ * (playlists.listPlaylists)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more playlist resource properties that the API response will include.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in a playlist
+ * resource, the snippet property contains properties like author, title,
+ * description, tags, and timeCreated. As such, if you set part=snippet, the API
+ * response will contain all of those properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string channelId This value indicates that the API should only
+ * return the specified channel's playlists.
+ * @opt_param string hl The hl parameter should be used for filter out the
+ * properties that are not in the given language. Used for the snippet part.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a
+ * playlist resource, the id property specifies the playlist's YouTube playlist
+ * ID.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param bool mine Set this parameter's value to true to instruct the API
+ * to only return playlists owned by the authenticated user.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_PlaylistListResponse
+ */
+ public function listPlaylists($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_PlaylistListResponse");
+ }
+ /**
+ * Modifies a playlist. For example, you could change a playlist's title,
+ * description, or privacy status. (playlists.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * Note that this method will override the existing values for mutable
+ * properties that are contained in any parts that the request body specifies.
+ * For example, a playlist's description is contained in the snippet part, which
+ * must be included in the request body. If the request does not specify a value
+ * for the snippet.description property, the playlist's existing description
+ * will be deleted.
+ * @param Google_Service_YouTube_Playlist $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTube_Playlist
+ */
+ public function update($part, Google_Service_YouTube_Playlist $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_Playlist");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Search.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Search.php
new file mode 100644
index 00000000..aa7dd4de
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Search.php
@@ -0,0 +1,185 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "search" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $search = $youtubeService->search;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Search extends Google_Service_Resource
+{
+ /**
+ * Returns a collection of search results that match the query parameters
+ * specified in the API request. By default, a search result set identifies
+ * matching video, channel, and playlist resources, but you can also configure
+ * queries to only retrieve a specific type of resource. (search.listSearch)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more search resource properties that the API response will include.
+ * Set the parameter value to snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string channelId The channelId parameter indicates that the API
+ * response should only contain resources created by the channel
+ * @opt_param string channelType The channelType parameter lets you restrict a
+ * search to a particular type of channel.
+ * @opt_param string eventType The eventType parameter restricts a search to
+ * broadcast events. If you specify a value for this parameter, you must also
+ * set the type parameter's value to video.
+ * @opt_param bool forContentOwner Note: This parameter is intended exclusively
+ * for YouTube content partners.
+ *
+ * The forContentOwner parameter restricts the search to only retrieve resources
+ * owned by the content owner specified by the onBehalfOfContentOwner parameter.
+ * The user must be authenticated using a CMS account linked to the specified
+ * content owner and onBehalfOfContentOwner must be provided.
+ * @opt_param bool forDeveloper The forDeveloper parameter restricts the search
+ * to only retrieve videos uploaded via the developer's application or website.
+ * The API server uses the request's authorization credentials to identify the
+ * developer. Therefore, a developer can restrict results to videos uploaded
+ * through the developer's own app or website but not to videos uploaded through
+ * other apps or sites.
+ * @opt_param bool forMine The forMine parameter restricts the search to only
+ * retrieve videos owned by the authenticated user. If you set this parameter to
+ * true, then the type parameter's value must also be set to video.
+ * @opt_param string location The location parameter, in conjunction with the
+ * locationRadius parameter, defines a circular geographic area and also
+ * restricts a search to videos that specify, in their metadata, a geographic
+ * location that falls within that area. The parameter value is a string that
+ * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427).
+ *
+ * - The location parameter value identifies the point at the center of the
+ * area. - The locationRadius parameter specifies the maximum distance that the
+ * location associated with a video can be from that point for the video to
+ * still be included in the search results.The API returns an error if your
+ * request specifies a value for the location parameter but does not also
+ * specify a value for the locationRadius parameter.
+ * @opt_param string locationRadius The locationRadius parameter, in conjunction
+ * with the location parameter, defines a circular geographic area.
+ *
+ * The parameter value must be a floating point number followed by a measurement
+ * unit. Valid measurement units are m, km, ft, and mi. For example, valid
+ * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not
+ * support locationRadius parameter values larger than 1000 kilometers.
+ *
+ * Note: See the definition of the location parameter for more information.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string order The order parameter specifies the method that will be
+ * used to order resources in the API response.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @opt_param string publishedAfter The publishedAfter parameter indicates that
+ * the API response should only contain resources created after the specified
+ * time. The value is an RFC 3339 formatted date-time value
+ * (1970-01-01T00:00:00Z).
+ * @opt_param string publishedBefore The publishedBefore parameter indicates
+ * that the API response should only contain resources created before the
+ * specified time. The value is an RFC 3339 formatted date-time value
+ * (1970-01-01T00:00:00Z).
+ * @opt_param string q The q parameter specifies the query term to search for.
+ *
+ * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude
+ * videos or to find videos that are associated with one of several search
+ * terms. For example, to search for videos matching either "boating" or
+ * "sailing", set the q parameter value to boating|sailing. Similarly, to search
+ * for videos matching either "boating" or "sailing" but not "fishing", set the
+ * q parameter value to boating|sailing -fishing. Note that the pipe character
+ * must be URL-escaped when it is sent in your API request. The URL-escaped
+ * value for the pipe character is %7C.
+ * @opt_param string regionCode The regionCode parameter instructs the API to
+ * return search results for the specified country. The parameter value is an
+ * ISO 3166-1 alpha-2 country code.
+ * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a
+ * list of videos that are related to the video that the parameter value
+ * identifies. The parameter value must be set to a YouTube video ID and, if you
+ * are using this parameter, the type parameter must be set to video.
+ * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs
+ * the API to return search results that are most relevant to the specified
+ * language. The parameter value is typically an ISO 639-1 two-letter language
+ * code. However, you should use the values zh-Hans for simplified Chinese and
+ * zh-Hant for traditional Chinese. Please note that results in other languages
+ * will still be returned if they are highly relevant to the search query term.
+ * @opt_param string safeSearch The safeSearch parameter indicates whether the
+ * search results should include restricted content as well as standard content.
+ * @opt_param string topicId The topicId parameter indicates that the API
+ * response should only contain resources associated with the specified topic.
+ * The value identifies a Freebase topic ID.
+ * @opt_param string type The type parameter restricts a search query to only
+ * retrieve a particular type of resource. The value is a comma-separated list
+ * of resource types.
+ * @opt_param string videoCaption The videoCaption parameter indicates whether
+ * the API should filter video search results based on whether they have
+ * captions. If you specify a value for this parameter, you must also set the
+ * type parameter's value to video.
+ * @opt_param string videoCategoryId The videoCategoryId parameter filters video
+ * search results based on their category. If you specify a value for this
+ * parameter, you must also set the type parameter's value to video.
+ * @opt_param string videoDefinition The videoDefinition parameter lets you
+ * restrict a search to only include either high definition (HD) or standard
+ * definition (SD) videos. HD videos are available for playback in at least
+ * 720p, though higher resolutions, like 1080p, might also be available. If you
+ * specify a value for this parameter, you must also set the type parameter's
+ * value to video.
+ * @opt_param string videoDimension The videoDimension parameter lets you
+ * restrict a search to only retrieve 2D or 3D videos. If you specify a value
+ * for this parameter, you must also set the type parameter's value to video.
+ * @opt_param string videoDuration The videoDuration parameter filters video
+ * search results based on their duration. If you specify a value for this
+ * parameter, you must also set the type parameter's value to video.
+ * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to
+ * restrict a search to only videos that can be embedded into a webpage. If you
+ * specify a value for this parameter, you must also set the type parameter's
+ * value to video.
+ * @opt_param string videoLicense The videoLicense parameter filters search
+ * results to only include videos with a particular license. YouTube lets video
+ * uploaders choose to attach either the Creative Commons license or the
+ * standard YouTube license to each of their videos. If you specify a value for
+ * this parameter, you must also set the type parameter's value to video.
+ * @opt_param string videoSyndicated The videoSyndicated parameter lets you to
+ * restrict a search to only videos that can be played outside youtube.com. If
+ * you specify a value for this parameter, you must also set the type
+ * parameter's value to video.
+ * @opt_param string videoType The videoType parameter lets you restrict a
+ * search to a particular type of videos. If you specify a value for this
+ * parameter, you must also set the type parameter's value to video.
+ * @return Google_Service_YouTube_SearchListResponse
+ */
+ public function listSearch($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_SearchListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Sponsors.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Sponsors.php
new file mode 100644
index 00000000..50590de3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Sponsors.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "sponsors" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $sponsors = $youtubeService->sponsors;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Sponsors extends Google_Service_Resource
+{
+ /**
+ * Lists sponsors for a channel. (sponsors.listSponsors)
+ *
+ * @param string $part The part parameter specifies the sponsor resource parts
+ * that the API response will include. Supported values are id and snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter The filter parameter specifies which channel
+ * sponsors to return.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_SponsorListResponse
+ */
+ public function listSponsors($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_SponsorListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Subscriptions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Subscriptions.php
new file mode 100644
index 00000000..712ad99b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Subscriptions.php
@@ -0,0 +1,136 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $subscriptions = $youtubeService->subscriptions;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Subscriptions extends Google_Service_Resource
+{
+ /**
+ * Deletes a subscription. (subscriptions.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube subscription ID for
+ * the resource that is being deleted. In a subscription resource, the id
+ * property specifies the YouTube subscription ID.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Adds a subscription for the authenticated user's channel.
+ * (subscriptions.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ * @param Google_Service_YouTube_Subscription $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_Subscription
+ */
+ public function insert($part, Google_Service_YouTube_Subscription $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Subscription");
+ }
+ /**
+ * Returns subscription resources that match the API request criteria.
+ * (subscriptions.listSubscriptions)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more subscription resource properties that the API response will
+ * include.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in a
+ * subscription resource, the snippet property contains other properties, such
+ * as a display title for the subscription. If you set part=snippet, the API
+ * response will also contain all of those nested properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string channelId The channelId parameter specifies a YouTube
+ * channel ID. The API will only return that channel's subscriptions.
+ * @opt_param string forChannelId The forChannelId parameter specifies a comma-
+ * separated list of channel IDs. The API response will then only contain
+ * subscriptions matching those channels.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube subscription ID(s) for the resource(s) that are being retrieved. In a
+ * subscription resource, the id property specifies the YouTube subscription ID.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
+ * the authenticated user's subscriptions.
+ * @opt_param bool myRecentSubscribers Set this parameter's value to true to
+ * retrieve a feed of the subscribers of the authenticated user in reverse
+ * chronological order (newest first).
+ * @opt_param bool mySubscribers Set this parameter's value to true to retrieve
+ * a feed of the subscribers of the authenticated user in no particular order.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @opt_param string order The order parameter specifies the method that will be
+ * used to sort resources in the API response.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_SubscriptionListResponse
+ */
+ public function listSubscriptions($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_SubscriptionListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/SuperChatEvents.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/SuperChatEvents.php
new file mode 100644
index 00000000..1e796c30
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/SuperChatEvents.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "superChatEvents" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $superChatEvents = $youtubeService->superChatEvents;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_SuperChatEvents extends Google_Service_Resource
+{
+ /**
+ * Lists Super Chat events for a channel. (superChatEvents.listSuperChatEvents)
+ *
+ * @param string $part The part parameter specifies the superChatEvent resource
+ * parts that the API response will include. Supported values are id and
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter instructs the API to retrieve localized
+ * resource metadata for a specific application language that the YouTube
+ * website supports. The parameter value must be a language code included in the
+ * list returned by the i18nLanguages.list method.
+ *
+ * If localized resource details are available in that language, the resource's
+ * snippet.localized object will contain the localized values. However, if
+ * localized details are not available, the snippet.localized object will
+ * contain resource details in the resource's default language.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ * @return Google_Service_YouTube_SuperChatEventListResponse
+ */
+ public function listSuperChatEvents($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_SuperChatEventListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Thumbnails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Thumbnails.php
new file mode 100644
index 00000000..774ca9da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Thumbnails.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "thumbnails" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $thumbnails = $youtubeService->thumbnails;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Thumbnails extends Google_Service_Resource
+{
+ /**
+ * Uploads a custom video thumbnail to YouTube and sets it for a video.
+ * (thumbnails.set)
+ *
+ * @param string $videoId The videoId parameter specifies a YouTube video ID for
+ * which the custom video thumbnail is being provided.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ * @return Google_Service_YouTube_ThumbnailSetResponse
+ */
+ public function set($videoId, $optParams = array())
+ {
+ $params = array('videoId' => $videoId);
+ $params = array_merge($params, $optParams);
+ return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoAbuseReportReasons.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoAbuseReportReasons.php
new file mode 100644
index 00000000..234c1122
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoAbuseReportReasons.php
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "videoAbuseReportReasons" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_VideoAbuseReportReasons extends Google_Service_Resource
+{
+ /**
+ * Returns a list of abuse reasons that can be used for reporting abusive
+ * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons)
+ *
+ * @param string $part The part parameter specifies the videoCategory resource
+ * parts that the API response will include. Supported values are id and
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that should be
+ * used for text values in the API response.
+ * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse
+ */
+ public function listVideoAbuseReportReasons($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoCategories.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoCategories.php
new file mode 100644
index 00000000..fe46542a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/VideoCategories.php
@@ -0,0 +1,52 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "videoCategories" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $videoCategories = $youtubeService->videoCategories;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_VideoCategories extends Google_Service_Resource
+{
+ /**
+ * Returns a list of categories that can be associated with YouTube videos.
+ * (videoCategories.listVideoCategories)
+ *
+ * @param string $part The part parameter specifies the videoCategory resource
+ * properties that the API response will include. Set the parameter value to
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that should be
+ * used for text values in the API response.
+ * @opt_param string id The id parameter specifies a comma-separated list of
+ * video category IDs for the resources that you are retrieving.
+ * @opt_param string regionCode The regionCode parameter instructs the API to
+ * return the list of video categories available in the specified country. The
+ * parameter value is an ISO 3166-1 alpha-2 country code.
+ * @return Google_Service_YouTube_VideoCategoryListResponse
+ */
+ public function listVideoCategories($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Videos.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Videos.php
new file mode 100644
index 00000000..69b02890
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Videos.php
@@ -0,0 +1,315 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "videos" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $videos = $youtubeService->videos;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Videos extends Google_Service_Resource
+{
+ /**
+ * Deletes a YouTube video. (videos.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube video ID for the
+ * resource that is being deleted. In a video resource, the id property
+ * specifies the video's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Retrieves the ratings that the authorized user gave to a list of specified
+ * videos. (videos.getRating)
+ *
+ * @param string $id The id parameter specifies a comma-separated list of the
+ * YouTube video ID(s) for the resource(s) for which you are retrieving rating
+ * data. In a video resource, the id property specifies the video's ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTube_VideoGetRatingResponse
+ */
+ public function getRating($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('getRating', array($params), "Google_Service_YouTube_VideoGetRatingResponse");
+ }
+ /**
+ * Uploads a video to YouTube and optionally sets the video's metadata.
+ * (videos.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * Note that not all parts contain properties that can be set when inserting or
+ * updating a video. For example, the statistics object encapsulates statistics
+ * that YouTube calculates for a video and does not contain values that you can
+ * set or modify. If the parameter value specifies a part that does not contain
+ * mutable values, that part will still be included in the API response.
+ * @param Google_Service_YouTube_Video $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube
+ * should automatically enhance the video's lighting and color.
+ * @opt_param bool notifySubscribers The notifySubscribers parameter indicates
+ * whether YouTube should send a notification about the new video to users who
+ * subscribe to the video's channel. A parameter value of True indicates that
+ * subscribers will be notified of newly uploaded videos. However, a channel
+ * owner who is uploading many videos might prefer to set the value to False to
+ * avoid sending a notification about each new video to the channel's
+ * subscribers.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
+ * used in a properly authorized request. Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID
+ * of the channel to which a video is being added. This parameter is required
+ * when a request specifies a value for the onBehalfOfContentOwner parameter,
+ * and it can only be used in conjunction with that parameter. In addition, the
+ * request must be authorized using a CMS account that is linked to the content
+ * owner that the onBehalfOfContentOwner parameter specifies. Finally, the
+ * channel that the onBehalfOfContentOwnerChannel parameter value specifies must
+ * be linked to the content owner that the onBehalfOfContentOwner parameter
+ * specifies.
+ *
+ * This parameter is intended for YouTube content partners that own and manage
+ * many different YouTube channels. It allows content owners to authenticate
+ * once and perform actions on behalf of the channel specified in the parameter
+ * value, without having to provide authentication credentials for each separate
+ * channel.
+ * @opt_param bool stabilize The stabilize parameter indicates whether YouTube
+ * should adjust the video to remove shaky camera motions.
+ * @return Google_Service_YouTube_Video
+ */
+ public function insert($part, Google_Service_YouTube_Video $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Video");
+ }
+ /**
+ * Returns a list of videos that match the API request parameters.
+ * (videos.listVideos)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more video resource properties that the API response will include.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in a video
+ * resource, the snippet property contains the channelId, title, description,
+ * tags, and categoryId properties. As such, if you set part=snippet, the API
+ * response will contain all of those properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string chart The chart parameter identifies the chart that you
+ * want to retrieve.
+ * @opt_param string hl The hl parameter instructs the API to retrieve localized
+ * resource metadata for a specific application language that the YouTube
+ * website supports. The parameter value must be a language code included in the
+ * list returned by the i18nLanguages.list method.
+ *
+ * If localized resource details are available in that language, the resource's
+ * snippet.localized object will contain the localized values. However, if
+ * localized details are not available, the snippet.localized object will
+ * contain resource details in the resource's default language.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube video ID(s) for the resource(s) that are being retrieved. In a video
+ * resource, the id property specifies the video's ID.
+ * @opt_param string locale DEPRECATED
+ * @opt_param string maxHeight The maxHeight parameter specifies a maximum
+ * height of the embedded player. If maxWidth is provided, maxHeight may not be
+ * reached in order to not violate the width request.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ *
+ * Note: This parameter is supported for use in conjunction with the myRating
+ * and chart parameters, but it is not supported for use in conjunction with the
+ * id parameter.
+ * @opt_param string maxWidth The maxWidth parameter specifies a maximum width
+ * of the embedded player. If maxHeight is provided, maxWidth may not be reached
+ * in order to not violate the height request.
+ * @opt_param string myRating Set this parameter's value to like or dislike to
+ * instruct the API to only return videos liked or disliked by the authenticated
+ * user.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken and prevPageToken properties identify other pages that could be
+ * retrieved.
+ *
+ * Note: This parameter is supported for use in conjunction with the myRating
+ * and chart parameters, but it is not supported for use in conjunction with the
+ * id parameter.
+ * @opt_param string regionCode The regionCode parameter instructs the API to
+ * select a video chart available in the specified region. This parameter can
+ * only be used in conjunction with the chart parameter. The parameter value is
+ * an ISO 3166-1 alpha-2 country code.
+ * @opt_param string videoCategoryId The videoCategoryId parameter identifies
+ * the video category for which the chart should be retrieved. This parameter
+ * can only be used in conjunction with the chart parameter. By default, charts
+ * are not restricted to a particular category.
+ * @return Google_Service_YouTube_VideoListResponse
+ */
+ public function listVideos($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_VideoListResponse");
+ }
+ /**
+ * Add a like or dislike rating to a video or remove a rating from a video.
+ * (videos.rate)
+ *
+ * @param string $id The id parameter specifies the YouTube video ID of the
+ * video that is being rated or having its rating removed.
+ * @param string $rating Specifies the rating to record.
+ * @param array $optParams Optional parameters.
+ */
+ public function rate($id, $rating, $optParams = array())
+ {
+ $params = array('id' => $id, 'rating' => $rating);
+ $params = array_merge($params, $optParams);
+ return $this->call('rate', array($params));
+ }
+ /**
+ * Report abuse for a video. (videos.reportAbuse)
+ *
+ * @param Google_Service_YouTube_VideoAbuseReport $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reportAbuse', array($params));
+ }
+ /**
+ * Updates a video's metadata. (videos.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * Note that this method will override the existing values for all of the
+ * mutable properties that are contained in any parts that the parameter value
+ * specifies. For example, a video's privacy setting is contained in the status
+ * part. As such, if your request is updating a private video, and the request's
+ * part parameter value includes the status part, the video's privacy setting
+ * will be updated to whatever value the request body specifies. If the request
+ * body does not specify a value, the existing privacy setting will be removed
+ * and the video will revert to the default privacy setting.
+ *
+ * In addition, not all parts contain properties that can be set when inserting
+ * or updating a video. For example, the statistics object encapsulates
+ * statistics that YouTube calculates for a video and does not contain values
+ * that you can set or modify. If the parameter value specifies a part that does
+ * not contain mutable values, that part will still be included in the API
+ * response.
+ * @param Google_Service_YouTube_Video $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The actual CMS
+ * account that the user authenticates with must be linked to the specified
+ * YouTube content owner.
+ * @return Google_Service_YouTube_Video
+ */
+ public function update($part, Google_Service_YouTube_Video $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_Video");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Watermarks.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Watermarks.php
new file mode 100644
index 00000000..2f7735ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Resource/Watermarks.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "watermarks" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $watermarks = $youtubeService->watermarks;
+ * </code>
+ */
+class Google_Service_YouTube_Resource_Watermarks extends Google_Service_Resource
+{
+ /**
+ * Uploads a watermark image to YouTube and sets it for a channel.
+ * (watermarks.set)
+ *
+ * @param string $channelId The channelId parameter specifies the YouTube
+ * channel ID for which the watermark is being provided.
+ * @param Google_Service_YouTube_InvideoBranding $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array())
+ {
+ $params = array('channelId' => $channelId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('set', array($params));
+ }
+ /**
+ * Deletes a channel's watermark image. (watermarks.unsetWatermarks)
+ *
+ * @param string $channelId The channelId parameter specifies the YouTube
+ * channel ID for which the watermark is being unset.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function unsetWatermarks($channelId, $optParams = array())
+ {
+ $params = array('channelId' => $channelId);
+ $params = array_merge($params, $optParams);
+ return $this->call('unset', array($params));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ResourceId.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ResourceId.php
new file mode 100644
index 00000000..0e924c88
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ResourceId.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ResourceId extends Google_Model
+{
+ public $channelId;
+ public $kind;
+ public $playlistId;
+ public $videoId;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlaylistId($playlistId)
+ {
+ $this->playlistId = $playlistId;
+ }
+ public function getPlaylistId()
+ {
+ return $this->playlistId;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchListResponse.php
new file mode 100644
index 00000000..61a69ed2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchListResponse.php
@@ -0,0 +1,115 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SearchListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_SearchResult';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ public $regionCode;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setRegionCode($regionCode)
+ {
+ $this->regionCode = $regionCode;
+ }
+ public function getRegionCode()
+ {
+ return $this->regionCode;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResult.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResult.php
new file mode 100644
index 00000000..35e8a2b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResult.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SearchResult extends Google_Model
+{
+ public $etag;
+ protected $idType = 'Google_Service_YouTube_ResourceId';
+ protected $idDataType = '';
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_SearchResultSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId(Google_Service_YouTube_ResourceId $id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_SearchResultSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResultSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResultSnippet.php
new file mode 100644
index 00000000..f40562e4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SearchResultSnippet.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SearchResultSnippet extends Google_Model
+{
+ public $channelId;
+ public $channelTitle;
+ public $description;
+ public $liveBroadcastContent;
+ public $publishedAt;
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelTitle($channelTitle)
+ {
+ $this->channelTitle = $channelTitle;
+ }
+ public function getChannelTitle()
+ {
+ return $this->channelTitle;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLiveBroadcastContent($liveBroadcastContent)
+ {
+ $this->liveBroadcastContent = $liveBroadcastContent;
+ }
+ public function getLiveBroadcastContent()
+ {
+ return $this->liveBroadcastContent;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php
new file mode 100644
index 00000000..7c91fd2d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Sponsor.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Sponsor extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_SponsorSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_SponsorSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorListResponse.php
new file mode 100644
index 00000000..f85333f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorListResponse.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SponsorListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Sponsor';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorSnippet.php
new file mode 100644
index 00000000..3cbdfd56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SponsorSnippet.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SponsorSnippet extends Google_Model
+{
+ public $channelId;
+ protected $sponsorDetailsType = 'Google_Service_YouTube_ChannelProfileDetails';
+ protected $sponsorDetailsDataType = '';
+ public $sponsorSince;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setSponsorDetails(Google_Service_YouTube_ChannelProfileDetails $sponsorDetails)
+ {
+ $this->sponsorDetails = $sponsorDetails;
+ }
+ public function getSponsorDetails()
+ {
+ return $this->sponsorDetails;
+ }
+ public function setSponsorSince($sponsorSince)
+ {
+ $this->sponsorSince = $sponsorSince;
+ }
+ public function getSponsorSince()
+ {
+ return $this->sponsorSince;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Subscription.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Subscription.php
new file mode 100644
index 00000000..6a299f57
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Subscription.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Subscription extends Google_Model
+{
+ protected $contentDetailsType = 'Google_Service_YouTube_SubscriptionContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_SubscriptionSnippet';
+ protected $snippetDataType = '';
+ protected $subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet';
+ protected $subscriberSnippetDataType = '';
+
+ public function setContentDetails(Google_Service_YouTube_SubscriptionContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_SubscriptionSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setSubscriberSnippet(Google_Service_YouTube_SubscriptionSubscriberSnippet $subscriberSnippet)
+ {
+ $this->subscriberSnippet = $subscriberSnippet;
+ }
+ public function getSubscriberSnippet()
+ {
+ return $this->subscriberSnippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionContentDetails.php
new file mode 100644
index 00000000..09d5d830
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionContentDetails.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SubscriptionContentDetails extends Google_Model
+{
+ public $activityType;
+ public $newItemCount;
+ public $totalItemCount;
+
+ public function setActivityType($activityType)
+ {
+ $this->activityType = $activityType;
+ }
+ public function getActivityType()
+ {
+ return $this->activityType;
+ }
+ public function setNewItemCount($newItemCount)
+ {
+ $this->newItemCount = $newItemCount;
+ }
+ public function getNewItemCount()
+ {
+ return $this->newItemCount;
+ }
+ public function setTotalItemCount($totalItemCount)
+ {
+ $this->totalItemCount = $totalItemCount;
+ }
+ public function getTotalItemCount()
+ {
+ return $this->totalItemCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionListResponse.php
new file mode 100644
index 00000000..83af0cae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SubscriptionListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Subscription';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSnippet.php
new file mode 100644
index 00000000..87981a18
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSnippet.php
@@ -0,0 +1,86 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SubscriptionSnippet extends Google_Model
+{
+ public $channelId;
+ public $channelTitle;
+ public $description;
+ public $publishedAt;
+ protected $resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $resourceIdDataType = '';
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelTitle($channelTitle)
+ {
+ $this->channelTitle = $channelTitle;
+ }
+ public function getChannelTitle()
+ {
+ return $this->channelTitle;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setResourceId(Google_Service_YouTube_ResourceId $resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSubscriberSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSubscriberSnippet.php
new file mode 100644
index 00000000..131f6901
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SubscriptionSubscriberSnippet.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SubscriptionSubscriberSnippet extends Google_Model
+{
+ public $channelId;
+ public $description;
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEvent.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEvent.php
new file mode 100644
index 00000000..efba5c14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEvent.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SuperChatEvent extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_SuperChatEventSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_SuperChatEventSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventListResponse.php
new file mode 100644
index 00000000..b5119dab
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventListResponse.php
@@ -0,0 +1,97 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SuperChatEventListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_SuperChatEvent';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php
new file mode 100644
index 00000000..466aec3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/SuperChatEventSnippet.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_SuperChatEventSnippet extends Google_Model
+{
+ public $amountMicros;
+ public $channelId;
+ public $commentText;
+ public $createdAt;
+ public $currency;
+ public $displayString;
+ public $messageType;
+ protected $supporterDetailsType = 'Google_Service_YouTube_ChannelProfileDetails';
+ protected $supporterDetailsDataType = '';
+
+ public function setAmountMicros($amountMicros)
+ {
+ $this->amountMicros = $amountMicros;
+ }
+ public function getAmountMicros()
+ {
+ return $this->amountMicros;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setCommentText($commentText)
+ {
+ $this->commentText = $commentText;
+ }
+ public function getCommentText()
+ {
+ return $this->commentText;
+ }
+ public function setCreatedAt($createdAt)
+ {
+ $this->createdAt = $createdAt;
+ }
+ public function getCreatedAt()
+ {
+ return $this->createdAt;
+ }
+ public function setCurrency($currency)
+ {
+ $this->currency = $currency;
+ }
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+ public function setDisplayString($displayString)
+ {
+ $this->displayString = $displayString;
+ }
+ public function getDisplayString()
+ {
+ return $this->displayString;
+ }
+ public function setMessageType($messageType)
+ {
+ $this->messageType = $messageType;
+ }
+ public function getMessageType()
+ {
+ return $this->messageType;
+ }
+ public function setSupporterDetails(Google_Service_YouTube_ChannelProfileDetails $supporterDetails)
+ {
+ $this->supporterDetails = $supporterDetails;
+ }
+ public function getSupporterDetails()
+ {
+ return $this->supporterDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Thumbnail.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Thumbnail.php
new file mode 100644
index 00000000..ce02b03e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Thumbnail.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Thumbnail extends Google_Model
+{
+ public $height;
+ public $url;
+ public $width;
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailDetails.php
new file mode 100644
index 00000000..2c391af5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailDetails.php
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ThumbnailDetails extends Google_Model
+{
+ protected $defaultType = 'Google_Service_YouTube_Thumbnail';
+ protected $defaultDataType = '';
+ protected $highType = 'Google_Service_YouTube_Thumbnail';
+ protected $highDataType = '';
+ protected $maxresType = 'Google_Service_YouTube_Thumbnail';
+ protected $maxresDataType = '';
+ protected $mediumType = 'Google_Service_YouTube_Thumbnail';
+ protected $mediumDataType = '';
+ protected $standardType = 'Google_Service_YouTube_Thumbnail';
+ protected $standardDataType = '';
+
+ public function setDefault(Google_Service_YouTube_Thumbnail $default)
+ {
+ $this->default = $default;
+ }
+ public function getDefault()
+ {
+ return $this->default;
+ }
+ public function setHigh(Google_Service_YouTube_Thumbnail $high)
+ {
+ $this->high = $high;
+ }
+ public function getHigh()
+ {
+ return $this->high;
+ }
+ public function setMaxres(Google_Service_YouTube_Thumbnail $maxres)
+ {
+ $this->maxres = $maxres;
+ }
+ public function getMaxres()
+ {
+ return $this->maxres;
+ }
+ public function setMedium(Google_Service_YouTube_Thumbnail $medium)
+ {
+ $this->medium = $medium;
+ }
+ public function getMedium()
+ {
+ return $this->medium;
+ }
+ public function setStandard(Google_Service_YouTube_Thumbnail $standard)
+ {
+ $this->standard = $standard;
+ }
+ public function getStandard()
+ {
+ return $this->standard;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailSetResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailSetResponse.php
new file mode 100644
index 00000000..0c7893a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/ThumbnailSetResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_ThumbnailSetResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/TokenPagination.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/TokenPagination.php
new file mode 100644
index 00000000..ead77041
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/TokenPagination.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_TokenPagination extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Video.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Video.php
new file mode 100644
index 00000000..ece1e072
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/Video.php
@@ -0,0 +1,198 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_Video extends Google_Model
+{
+ protected $ageGatingType = 'Google_Service_YouTube_VideoAgeGating';
+ protected $ageGatingDataType = '';
+ protected $contentDetailsType = 'Google_Service_YouTube_VideoContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ protected $fileDetailsType = 'Google_Service_YouTube_VideoFileDetails';
+ protected $fileDetailsDataType = '';
+ public $id;
+ public $kind;
+ protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails';
+ protected $liveStreamingDetailsDataType = '';
+ protected $localizationsType = 'Google_Service_YouTube_VideoLocalization';
+ protected $localizationsDataType = 'map';
+ protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails';
+ protected $monetizationDetailsDataType = '';
+ protected $playerType = 'Google_Service_YouTube_VideoPlayer';
+ protected $playerDataType = '';
+ protected $processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails';
+ protected $processingDetailsDataType = '';
+ protected $projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails';
+ protected $projectDetailsDataType = '';
+ protected $recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails';
+ protected $recordingDetailsDataType = '';
+ protected $snippetType = 'Google_Service_YouTube_VideoSnippet';
+ protected $snippetDataType = '';
+ protected $statisticsType = 'Google_Service_YouTube_VideoStatistics';
+ protected $statisticsDataType = '';
+ protected $statusType = 'Google_Service_YouTube_VideoStatus';
+ protected $statusDataType = '';
+ protected $suggestionsType = 'Google_Service_YouTube_VideoSuggestions';
+ protected $suggestionsDataType = '';
+ protected $topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails';
+ protected $topicDetailsDataType = '';
+
+ public function setAgeGating(Google_Service_YouTube_VideoAgeGating $ageGating)
+ {
+ $this->ageGating = $ageGating;
+ }
+ public function getAgeGating()
+ {
+ return $this->ageGating;
+ }
+ public function setContentDetails(Google_Service_YouTube_VideoContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setFileDetails(Google_Service_YouTube_VideoFileDetails $fileDetails)
+ {
+ $this->fileDetails = $fileDetails;
+ }
+ public function getFileDetails()
+ {
+ return $this->fileDetails;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLiveStreamingDetails(Google_Service_YouTube_VideoLiveStreamingDetails $liveStreamingDetails)
+ {
+ $this->liveStreamingDetails = $liveStreamingDetails;
+ }
+ public function getLiveStreamingDetails()
+ {
+ return $this->liveStreamingDetails;
+ }
+ public function setLocalizations($localizations)
+ {
+ $this->localizations = $localizations;
+ }
+ public function getLocalizations()
+ {
+ return $this->localizations;
+ }
+ public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails)
+ {
+ $this->monetizationDetails = $monetizationDetails;
+ }
+ public function getMonetizationDetails()
+ {
+ return $this->monetizationDetails;
+ }
+ public function setPlayer(Google_Service_YouTube_VideoPlayer $player)
+ {
+ $this->player = $player;
+ }
+ public function getPlayer()
+ {
+ return $this->player;
+ }
+ public function setProcessingDetails(Google_Service_YouTube_VideoProcessingDetails $processingDetails)
+ {
+ $this->processingDetails = $processingDetails;
+ }
+ public function getProcessingDetails()
+ {
+ return $this->processingDetails;
+ }
+ public function setProjectDetails(Google_Service_YouTube_VideoProjectDetails $projectDetails)
+ {
+ $this->projectDetails = $projectDetails;
+ }
+ public function getProjectDetails()
+ {
+ return $this->projectDetails;
+ }
+ public function setRecordingDetails(Google_Service_YouTube_VideoRecordingDetails $recordingDetails)
+ {
+ $this->recordingDetails = $recordingDetails;
+ }
+ public function getRecordingDetails()
+ {
+ return $this->recordingDetails;
+ }
+ public function setSnippet(Google_Service_YouTube_VideoSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+ public function setStatistics(Google_Service_YouTube_VideoStatistics $statistics)
+ {
+ $this->statistics = $statistics;
+ }
+ public function getStatistics()
+ {
+ return $this->statistics;
+ }
+ public function setStatus(Google_Service_YouTube_VideoStatus $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setSuggestions(Google_Service_YouTube_VideoSuggestions $suggestions)
+ {
+ $this->suggestions = $suggestions;
+ }
+ public function getSuggestions()
+ {
+ return $this->suggestions;
+ }
+ public function setTopicDetails(Google_Service_YouTube_VideoTopicDetails $topicDetails)
+ {
+ $this->topicDetails = $topicDetails;
+ }
+ public function getTopicDetails()
+ {
+ return $this->topicDetails;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReport.php
new file mode 100644
index 00000000..d8c36670
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReport.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoAbuseReport extends Google_Model
+{
+ public $comments;
+ public $language;
+ public $reasonId;
+ public $secondaryReasonId;
+ public $videoId;
+
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setReasonId($reasonId)
+ {
+ $this->reasonId = $reasonId;
+ }
+ public function getReasonId()
+ {
+ return $this->reasonId;
+ }
+ public function setSecondaryReasonId($secondaryReasonId)
+ {
+ $this->secondaryReasonId = $secondaryReasonId;
+ }
+ public function getSecondaryReasonId()
+ {
+ return $this->secondaryReasonId;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReason.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReason.php
new file mode 100644
index 00000000..50007d7c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReason.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonListResponse.php
new file mode 100644
index 00000000..cb3b8acd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonListResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonSnippet.php
new file mode 100644
index 00000000..ae0e2c0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportReasonSnippet.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection
+{
+ protected $collection_key = 'secondaryReasons';
+ public $label;
+ protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason';
+ protected $secondaryReasonsDataType = 'array';
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setSecondaryReasons($secondaryReasons)
+ {
+ $this->secondaryReasons = $secondaryReasons;
+ }
+ public function getSecondaryReasons()
+ {
+ return $this->secondaryReasons;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportSecondaryReason.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportSecondaryReason.php
new file mode 100644
index 00000000..03cff4ef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAbuseReportSecondaryReason.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model
+{
+ public $id;
+ public $label;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAgeGating.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAgeGating.php
new file mode 100644
index 00000000..51994787
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoAgeGating.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoAgeGating extends Google_Model
+{
+ public $alcoholContent;
+ public $restricted;
+ public $videoGameRating;
+
+ public function setAlcoholContent($alcoholContent)
+ {
+ $this->alcoholContent = $alcoholContent;
+ }
+ public function getAlcoholContent()
+ {
+ return $this->alcoholContent;
+ }
+ public function setRestricted($restricted)
+ {
+ $this->restricted = $restricted;
+ }
+ public function getRestricted()
+ {
+ return $this->restricted;
+ }
+ public function setVideoGameRating($videoGameRating)
+ {
+ $this->videoGameRating = $videoGameRating;
+ }
+ public function getVideoGameRating()
+ {
+ return $this->videoGameRating;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategory.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategory.php
new file mode 100644
index 00000000..e909d75e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategory.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoCategory extends Google_Model
+{
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_VideoCategorySnippet';
+ protected $snippetDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTube_VideoCategorySnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategoryListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategoryListResponse.php
new file mode 100644
index 00000000..6759c9a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategoryListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoCategoryListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_VideoCategory';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategorySnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategorySnippet.php
new file mode 100644
index 00000000..09452e13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoCategorySnippet.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoCategorySnippet extends Google_Model
+{
+ public $assignable;
+ public $channelId;
+ public $title;
+
+ public function setAssignable($assignable)
+ {
+ $this->assignable = $assignable;
+ }
+ public function getAssignable()
+ {
+ return $this->assignable;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetails.php
new file mode 100644
index 00000000..52c0a1a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetails.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoContentDetails extends Google_Model
+{
+ public $caption;
+ protected $contentRatingType = 'Google_Service_YouTube_ContentRating';
+ protected $contentRatingDataType = '';
+ protected $countryRestrictionType = 'Google_Service_YouTube_AccessPolicy';
+ protected $countryRestrictionDataType = '';
+ public $definition;
+ public $dimension;
+ public $duration;
+ public $hasCustomThumbnail;
+ public $licensedContent;
+ public $projection;
+ protected $regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction';
+ protected $regionRestrictionDataType = '';
+
+ public function setCaption($caption)
+ {
+ $this->caption = $caption;
+ }
+ public function getCaption()
+ {
+ return $this->caption;
+ }
+ public function setContentRating(Google_Service_YouTube_ContentRating $contentRating)
+ {
+ $this->contentRating = $contentRating;
+ }
+ public function getContentRating()
+ {
+ return $this->contentRating;
+ }
+ public function setCountryRestriction(Google_Service_YouTube_AccessPolicy $countryRestriction)
+ {
+ $this->countryRestriction = $countryRestriction;
+ }
+ public function getCountryRestriction()
+ {
+ return $this->countryRestriction;
+ }
+ public function setDefinition($definition)
+ {
+ $this->definition = $definition;
+ }
+ public function getDefinition()
+ {
+ return $this->definition;
+ }
+ public function setDimension($dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setDuration($duration)
+ {
+ $this->duration = $duration;
+ }
+ public function getDuration()
+ {
+ return $this->duration;
+ }
+ public function setHasCustomThumbnail($hasCustomThumbnail)
+ {
+ $this->hasCustomThumbnail = $hasCustomThumbnail;
+ }
+ public function getHasCustomThumbnail()
+ {
+ return $this->hasCustomThumbnail;
+ }
+ public function setLicensedContent($licensedContent)
+ {
+ $this->licensedContent = $licensedContent;
+ }
+ public function getLicensedContent()
+ {
+ return $this->licensedContent;
+ }
+ public function setProjection($projection)
+ {
+ $this->projection = $projection;
+ }
+ public function getProjection()
+ {
+ return $this->projection;
+ }
+ public function setRegionRestriction(Google_Service_YouTube_VideoContentDetailsRegionRestriction $regionRestriction)
+ {
+ $this->regionRestriction = $regionRestriction;
+ }
+ public function getRegionRestriction()
+ {
+ return $this->regionRestriction;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetailsRegionRestriction.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetailsRegionRestriction.php
new file mode 100644
index 00000000..8a276d01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoContentDetailsRegionRestriction.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoContentDetailsRegionRestriction extends Google_Collection
+{
+ protected $collection_key = 'blocked';
+ public $allowed;
+ public $blocked;
+
+ public function setAllowed($allowed)
+ {
+ $this->allowed = $allowed;
+ }
+ public function getAllowed()
+ {
+ return $this->allowed;
+ }
+ public function setBlocked($blocked)
+ {
+ $this->blocked = $blocked;
+ }
+ public function getBlocked()
+ {
+ return $this->blocked;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetails.php
new file mode 100644
index 00000000..eb04edf2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetails.php
@@ -0,0 +1,105 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoFileDetails extends Google_Collection
+{
+ protected $collection_key = 'videoStreams';
+ protected $audioStreamsType = 'Google_Service_YouTube_VideoFileDetailsAudioStream';
+ protected $audioStreamsDataType = 'array';
+ public $bitrateBps;
+ public $container;
+ public $creationTime;
+ public $durationMs;
+ public $fileName;
+ public $fileSize;
+ public $fileType;
+ protected $videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream';
+ protected $videoStreamsDataType = 'array';
+
+ public function setAudioStreams($audioStreams)
+ {
+ $this->audioStreams = $audioStreams;
+ }
+ public function getAudioStreams()
+ {
+ return $this->audioStreams;
+ }
+ public function setBitrateBps($bitrateBps)
+ {
+ $this->bitrateBps = $bitrateBps;
+ }
+ public function getBitrateBps()
+ {
+ return $this->bitrateBps;
+ }
+ public function setContainer($container)
+ {
+ $this->container = $container;
+ }
+ public function getContainer()
+ {
+ return $this->container;
+ }
+ public function setCreationTime($creationTime)
+ {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime()
+ {
+ return $this->creationTime;
+ }
+ public function setDurationMs($durationMs)
+ {
+ $this->durationMs = $durationMs;
+ }
+ public function getDurationMs()
+ {
+ return $this->durationMs;
+ }
+ public function setFileName($fileName)
+ {
+ $this->fileName = $fileName;
+ }
+ public function getFileName()
+ {
+ return $this->fileName;
+ }
+ public function setFileSize($fileSize)
+ {
+ $this->fileSize = $fileSize;
+ }
+ public function getFileSize()
+ {
+ return $this->fileSize;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+ public function setVideoStreams($videoStreams)
+ {
+ $this->videoStreams = $videoStreams;
+ }
+ public function getVideoStreams()
+ {
+ return $this->videoStreams;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsAudioStream.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsAudioStream.php
new file mode 100644
index 00000000..3220b52e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsAudioStream.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoFileDetailsAudioStream extends Google_Model
+{
+ public $bitrateBps;
+ public $channelCount;
+ public $codec;
+ public $vendor;
+
+ public function setBitrateBps($bitrateBps)
+ {
+ $this->bitrateBps = $bitrateBps;
+ }
+ public function getBitrateBps()
+ {
+ return $this->bitrateBps;
+ }
+ public function setChannelCount($channelCount)
+ {
+ $this->channelCount = $channelCount;
+ }
+ public function getChannelCount()
+ {
+ return $this->channelCount;
+ }
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setVendor($vendor)
+ {
+ $this->vendor = $vendor;
+ }
+ public function getVendor()
+ {
+ return $this->vendor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsVideoStream.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsVideoStream.php
new file mode 100644
index 00000000..89a88237
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoFileDetailsVideoStream.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoFileDetailsVideoStream extends Google_Model
+{
+ public $aspectRatio;
+ public $bitrateBps;
+ public $codec;
+ public $frameRateFps;
+ public $heightPixels;
+ public $rotation;
+ public $vendor;
+ public $widthPixels;
+
+ public function setAspectRatio($aspectRatio)
+ {
+ $this->aspectRatio = $aspectRatio;
+ }
+ public function getAspectRatio()
+ {
+ return $this->aspectRatio;
+ }
+ public function setBitrateBps($bitrateBps)
+ {
+ $this->bitrateBps = $bitrateBps;
+ }
+ public function getBitrateBps()
+ {
+ return $this->bitrateBps;
+ }
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setFrameRateFps($frameRateFps)
+ {
+ $this->frameRateFps = $frameRateFps;
+ }
+ public function getFrameRateFps()
+ {
+ return $this->frameRateFps;
+ }
+ public function setHeightPixels($heightPixels)
+ {
+ $this->heightPixels = $heightPixels;
+ }
+ public function getHeightPixels()
+ {
+ return $this->heightPixels;
+ }
+ public function setRotation($rotation)
+ {
+ $this->rotation = $rotation;
+ }
+ public function getRotation()
+ {
+ return $this->rotation;
+ }
+ public function setVendor($vendor)
+ {
+ $this->vendor = $vendor;
+ }
+ public function getVendor()
+ {
+ return $this->vendor;
+ }
+ public function setWidthPixels($widthPixels)
+ {
+ $this->widthPixels = $widthPixels;
+ }
+ public function getWidthPixels()
+ {
+ return $this->widthPixels;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoGetRatingResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoGetRatingResponse.php
new file mode 100644
index 00000000..d8d9f033
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoGetRatingResponse.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoGetRatingResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_VideoRating';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoListResponse.php
new file mode 100644
index 00000000..2f1f4df0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoListResponse.php
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Video';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ public $prevPageToken;
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setPrevPageToken($prevPageToken)
+ {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken()
+ {
+ return $this->prevPageToken;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLiveStreamingDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLiveStreamingDetails.php
new file mode 100644
index 00000000..14de20da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLiveStreamingDetails.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model
+{
+ public $activeLiveChatId;
+ public $actualEndTime;
+ public $actualStartTime;
+ public $concurrentViewers;
+ public $scheduledEndTime;
+ public $scheduledStartTime;
+
+ public function setActiveLiveChatId($activeLiveChatId)
+ {
+ $this->activeLiveChatId = $activeLiveChatId;
+ }
+ public function getActiveLiveChatId()
+ {
+ return $this->activeLiveChatId;
+ }
+ public function setActualEndTime($actualEndTime)
+ {
+ $this->actualEndTime = $actualEndTime;
+ }
+ public function getActualEndTime()
+ {
+ return $this->actualEndTime;
+ }
+ public function setActualStartTime($actualStartTime)
+ {
+ $this->actualStartTime = $actualStartTime;
+ }
+ public function getActualStartTime()
+ {
+ return $this->actualStartTime;
+ }
+ public function setConcurrentViewers($concurrentViewers)
+ {
+ $this->concurrentViewers = $concurrentViewers;
+ }
+ public function getConcurrentViewers()
+ {
+ return $this->concurrentViewers;
+ }
+ public function setScheduledEndTime($scheduledEndTime)
+ {
+ $this->scheduledEndTime = $scheduledEndTime;
+ }
+ public function getScheduledEndTime()
+ {
+ return $this->scheduledEndTime;
+ }
+ public function setScheduledStartTime($scheduledStartTime)
+ {
+ $this->scheduledStartTime = $scheduledStartTime;
+ }
+ public function getScheduledStartTime()
+ {
+ return $this->scheduledStartTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLocalization.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLocalization.php
new file mode 100644
index 00000000..6947da5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoLocalization.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoLocalization extends Google_Model
+{
+ public $description;
+ public $title;
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoMonetizationDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoMonetizationDetails.php
new file mode 100644
index 00000000..8352fcb6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoMonetizationDetails.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model
+{
+ protected $accessType = 'Google_Service_YouTube_AccessPolicy';
+ protected $accessDataType = '';
+
+ public function setAccess(Google_Service_YouTube_AccessPolicy $access)
+ {
+ $this->access = $access;
+ }
+ public function getAccess()
+ {
+ return $this->access;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoPlayer.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoPlayer.php
new file mode 100644
index 00000000..025dbadf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoPlayer.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoPlayer extends Google_Model
+{
+ public $embedHeight;
+ public $embedHtml;
+ public $embedWidth;
+
+ public function setEmbedHeight($embedHeight)
+ {
+ $this->embedHeight = $embedHeight;
+ }
+ public function getEmbedHeight()
+ {
+ return $this->embedHeight;
+ }
+ public function setEmbedHtml($embedHtml)
+ {
+ $this->embedHtml = $embedHtml;
+ }
+ public function getEmbedHtml()
+ {
+ return $this->embedHtml;
+ }
+ public function setEmbedWidth($embedWidth)
+ {
+ $this->embedWidth = $embedWidth;
+ }
+ public function getEmbedWidth()
+ {
+ return $this->embedWidth;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetails.php
new file mode 100644
index 00000000..1db7f2a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetails.php
@@ -0,0 +1,94 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoProcessingDetails extends Google_Model
+{
+ public $editorSuggestionsAvailability;
+ public $fileDetailsAvailability;
+ public $processingFailureReason;
+ public $processingIssuesAvailability;
+ protected $processingProgressType = 'Google_Service_YouTube_VideoProcessingDetailsProcessingProgress';
+ protected $processingProgressDataType = '';
+ public $processingStatus;
+ public $tagSuggestionsAvailability;
+ public $thumbnailsAvailability;
+
+ public function setEditorSuggestionsAvailability($editorSuggestionsAvailability)
+ {
+ $this->editorSuggestionsAvailability = $editorSuggestionsAvailability;
+ }
+ public function getEditorSuggestionsAvailability()
+ {
+ return $this->editorSuggestionsAvailability;
+ }
+ public function setFileDetailsAvailability($fileDetailsAvailability)
+ {
+ $this->fileDetailsAvailability = $fileDetailsAvailability;
+ }
+ public function getFileDetailsAvailability()
+ {
+ return $this->fileDetailsAvailability;
+ }
+ public function setProcessingFailureReason($processingFailureReason)
+ {
+ $this->processingFailureReason = $processingFailureReason;
+ }
+ public function getProcessingFailureReason()
+ {
+ return $this->processingFailureReason;
+ }
+ public function setProcessingIssuesAvailability($processingIssuesAvailability)
+ {
+ $this->processingIssuesAvailability = $processingIssuesAvailability;
+ }
+ public function getProcessingIssuesAvailability()
+ {
+ return $this->processingIssuesAvailability;
+ }
+ public function setProcessingProgress(Google_Service_YouTube_VideoProcessingDetailsProcessingProgress $processingProgress)
+ {
+ $this->processingProgress = $processingProgress;
+ }
+ public function getProcessingProgress()
+ {
+ return $this->processingProgress;
+ }
+ public function setProcessingStatus($processingStatus)
+ {
+ $this->processingStatus = $processingStatus;
+ }
+ public function getProcessingStatus()
+ {
+ return $this->processingStatus;
+ }
+ public function setTagSuggestionsAvailability($tagSuggestionsAvailability)
+ {
+ $this->tagSuggestionsAvailability = $tagSuggestionsAvailability;
+ }
+ public function getTagSuggestionsAvailability()
+ {
+ return $this->tagSuggestionsAvailability;
+ }
+ public function setThumbnailsAvailability($thumbnailsAvailability)
+ {
+ $this->thumbnailsAvailability = $thumbnailsAvailability;
+ }
+ public function getThumbnailsAvailability()
+ {
+ return $this->thumbnailsAvailability;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetailsProcessingProgress.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetailsProcessingProgress.php
new file mode 100644
index 00000000..0a93151d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProcessingDetailsProcessingProgress.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoProcessingDetailsProcessingProgress extends Google_Model
+{
+ public $partsProcessed;
+ public $partsTotal;
+ public $timeLeftMs;
+
+ public function setPartsProcessed($partsProcessed)
+ {
+ $this->partsProcessed = $partsProcessed;
+ }
+ public function getPartsProcessed()
+ {
+ return $this->partsProcessed;
+ }
+ public function setPartsTotal($partsTotal)
+ {
+ $this->partsTotal = $partsTotal;
+ }
+ public function getPartsTotal()
+ {
+ return $this->partsTotal;
+ }
+ public function setTimeLeftMs($timeLeftMs)
+ {
+ $this->timeLeftMs = $timeLeftMs;
+ }
+ public function getTimeLeftMs()
+ {
+ return $this->timeLeftMs;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProjectDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProjectDetails.php
new file mode 100644
index 00000000..22e5f1ef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoProjectDetails.php
@@ -0,0 +1,31 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoProjectDetails extends Google_Collection
+{
+ protected $collection_key = 'tags';
+ public $tags;
+
+ public function setTags($tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRating.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRating.php
new file mode 100644
index 00000000..b396f6b3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRating.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoRating extends Google_Model
+{
+ public $rating;
+ public $videoId;
+
+ public function setRating($rating)
+ {
+ $this->rating = $rating;
+ }
+ public function getRating()
+ {
+ return $this->rating;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRecordingDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRecordingDetails.php
new file mode 100644
index 00000000..eda99ea0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoRecordingDetails.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoRecordingDetails extends Google_Model
+{
+ protected $locationType = 'Google_Service_YouTube_GeoPoint';
+ protected $locationDataType = '';
+ public $locationDescription;
+ public $recordingDate;
+
+ public function setLocation(Google_Service_YouTube_GeoPoint $location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setLocationDescription($locationDescription)
+ {
+ $this->locationDescription = $locationDescription;
+ }
+ public function getLocationDescription()
+ {
+ return $this->locationDescription;
+ }
+ public function setRecordingDate($recordingDate)
+ {
+ $this->recordingDate = $recordingDate;
+ }
+ public function getRecordingDate()
+ {
+ return $this->recordingDate;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSnippet.php
new file mode 100644
index 00000000..67e33d45
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSnippet.php
@@ -0,0 +1,132 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoSnippet extends Google_Collection
+{
+ protected $collection_key = 'tags';
+ public $categoryId;
+ public $channelId;
+ public $channelTitle;
+ public $defaultAudioLanguage;
+ public $defaultLanguage;
+ public $description;
+ public $liveBroadcastContent;
+ protected $localizedType = 'Google_Service_YouTube_VideoLocalization';
+ protected $localizedDataType = '';
+ public $publishedAt;
+ public $tags;
+ protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $thumbnailsDataType = '';
+ public $title;
+
+ public function setCategoryId($categoryId)
+ {
+ $this->categoryId = $categoryId;
+ }
+ public function getCategoryId()
+ {
+ return $this->categoryId;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setChannelTitle($channelTitle)
+ {
+ $this->channelTitle = $channelTitle;
+ }
+ public function getChannelTitle()
+ {
+ return $this->channelTitle;
+ }
+ public function setDefaultAudioLanguage($defaultAudioLanguage)
+ {
+ $this->defaultAudioLanguage = $defaultAudioLanguage;
+ }
+ public function getDefaultAudioLanguage()
+ {
+ return $this->defaultAudioLanguage;
+ }
+ public function setDefaultLanguage($defaultLanguage)
+ {
+ $this->defaultLanguage = $defaultLanguage;
+ }
+ public function getDefaultLanguage()
+ {
+ return $this->defaultLanguage;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setLiveBroadcastContent($liveBroadcastContent)
+ {
+ $this->liveBroadcastContent = $liveBroadcastContent;
+ }
+ public function getLiveBroadcastContent()
+ {
+ return $this->liveBroadcastContent;
+ }
+ public function setLocalized(Google_Service_YouTube_VideoLocalization $localized)
+ {
+ $this->localized = $localized;
+ }
+ public function getLocalized()
+ {
+ return $this->localized;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setTags($tags)
+ {
+ $this->tags = $tags;
+ }
+ public function getTags()
+ {
+ return $this->tags;
+ }
+ public function setThumbnails(Google_Service_YouTube_ThumbnailDetails $thumbnails)
+ {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails()
+ {
+ return $this->thumbnails;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatistics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatistics.php
new file mode 100644
index 00000000..18c20900
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatistics.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoStatistics extends Google_Model
+{
+ public $commentCount;
+ public $dislikeCount;
+ public $favoriteCount;
+ public $likeCount;
+ public $viewCount;
+
+ public function setCommentCount($commentCount)
+ {
+ $this->commentCount = $commentCount;
+ }
+ public function getCommentCount()
+ {
+ return $this->commentCount;
+ }
+ public function setDislikeCount($dislikeCount)
+ {
+ $this->dislikeCount = $dislikeCount;
+ }
+ public function getDislikeCount()
+ {
+ return $this->dislikeCount;
+ }
+ public function setFavoriteCount($favoriteCount)
+ {
+ $this->favoriteCount = $favoriteCount;
+ }
+ public function getFavoriteCount()
+ {
+ return $this->favoriteCount;
+ }
+ public function setLikeCount($likeCount)
+ {
+ $this->likeCount = $likeCount;
+ }
+ public function getLikeCount()
+ {
+ return $this->likeCount;
+ }
+ public function setViewCount($viewCount)
+ {
+ $this->viewCount = $viewCount;
+ }
+ public function getViewCount()
+ {
+ return $this->viewCount;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatus.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatus.php
new file mode 100644
index 00000000..d367f3c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoStatus.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoStatus extends Google_Model
+{
+ public $embeddable;
+ public $failureReason;
+ public $license;
+ public $privacyStatus;
+ public $publicStatsViewable;
+ public $publishAt;
+ public $rejectionReason;
+ public $uploadStatus;
+
+ public function setEmbeddable($embeddable)
+ {
+ $this->embeddable = $embeddable;
+ }
+ public function getEmbeddable()
+ {
+ return $this->embeddable;
+ }
+ public function setFailureReason($failureReason)
+ {
+ $this->failureReason = $failureReason;
+ }
+ public function getFailureReason()
+ {
+ return $this->failureReason;
+ }
+ public function setLicense($license)
+ {
+ $this->license = $license;
+ }
+ public function getLicense()
+ {
+ return $this->license;
+ }
+ public function setPrivacyStatus($privacyStatus)
+ {
+ $this->privacyStatus = $privacyStatus;
+ }
+ public function getPrivacyStatus()
+ {
+ return $this->privacyStatus;
+ }
+ public function setPublicStatsViewable($publicStatsViewable)
+ {
+ $this->publicStatsViewable = $publicStatsViewable;
+ }
+ public function getPublicStatsViewable()
+ {
+ return $this->publicStatsViewable;
+ }
+ public function setPublishAt($publishAt)
+ {
+ $this->publishAt = $publishAt;
+ }
+ public function getPublishAt()
+ {
+ return $this->publishAt;
+ }
+ public function setRejectionReason($rejectionReason)
+ {
+ $this->rejectionReason = $rejectionReason;
+ }
+ public function getRejectionReason()
+ {
+ return $this->rejectionReason;
+ }
+ public function setUploadStatus($uploadStatus)
+ {
+ $this->uploadStatus = $uploadStatus;
+ }
+ public function getUploadStatus()
+ {
+ return $this->uploadStatus;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestions.php
new file mode 100644
index 00000000..e2b96d8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestions.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoSuggestions extends Google_Collection
+{
+ protected $collection_key = 'tagSuggestions';
+ public $editorSuggestions;
+ public $processingErrors;
+ public $processingHints;
+ public $processingWarnings;
+ protected $tagSuggestionsType = 'Google_Service_YouTube_VideoSuggestionsTagSuggestion';
+ protected $tagSuggestionsDataType = 'array';
+
+ public function setEditorSuggestions($editorSuggestions)
+ {
+ $this->editorSuggestions = $editorSuggestions;
+ }
+ public function getEditorSuggestions()
+ {
+ return $this->editorSuggestions;
+ }
+ public function setProcessingErrors($processingErrors)
+ {
+ $this->processingErrors = $processingErrors;
+ }
+ public function getProcessingErrors()
+ {
+ return $this->processingErrors;
+ }
+ public function setProcessingHints($processingHints)
+ {
+ $this->processingHints = $processingHints;
+ }
+ public function getProcessingHints()
+ {
+ return $this->processingHints;
+ }
+ public function setProcessingWarnings($processingWarnings)
+ {
+ $this->processingWarnings = $processingWarnings;
+ }
+ public function getProcessingWarnings()
+ {
+ return $this->processingWarnings;
+ }
+ public function setTagSuggestions($tagSuggestions)
+ {
+ $this->tagSuggestions = $tagSuggestions;
+ }
+ public function getTagSuggestions()
+ {
+ return $this->tagSuggestions;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestionsTagSuggestion.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestionsTagSuggestion.php
new file mode 100644
index 00000000..fef8bfbd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoSuggestionsTagSuggestion.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoSuggestionsTagSuggestion extends Google_Collection
+{
+ protected $collection_key = 'categoryRestricts';
+ public $categoryRestricts;
+ public $tag;
+
+ public function setCategoryRestricts($categoryRestricts)
+ {
+ $this->categoryRestricts = $categoryRestricts;
+ }
+ public function getCategoryRestricts()
+ {
+ return $this->categoryRestricts;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoTopicDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoTopicDetails.php
new file mode 100644
index 00000000..f2f2fec0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/VideoTopicDetails.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_VideoTopicDetails extends Google_Collection
+{
+ protected $collection_key = 'topicIds';
+ public $relevantTopicIds;
+ public $topicCategories;
+ public $topicIds;
+
+ public function setRelevantTopicIds($relevantTopicIds)
+ {
+ $this->relevantTopicIds = $relevantTopicIds;
+ }
+ public function getRelevantTopicIds()
+ {
+ return $this->relevantTopicIds;
+ }
+ public function setTopicCategories($topicCategories)
+ {
+ $this->topicCategories = $topicCategories;
+ }
+ public function getTopicCategories()
+ {
+ return $this->topicCategories;
+ }
+ public function setTopicIds($topicIds)
+ {
+ $this->topicIds = $topicIds;
+ }
+ public function getTopicIds()
+ {
+ return $this->topicIds;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/WatchSettings.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/WatchSettings.php
new file mode 100644
index 00000000..bfc29521
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTube/WatchSettings.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTube_WatchSettings extends Google_Model
+{
+ public $backgroundColor;
+ public $featuredPlaylistId;
+ public $textColor;
+
+ public function setBackgroundColor($backgroundColor)
+ {
+ $this->backgroundColor = $backgroundColor;
+ }
+ public function getBackgroundColor()
+ {
+ return $this->backgroundColor;
+ }
+ public function setFeaturedPlaylistId($featuredPlaylistId)
+ {
+ $this->featuredPlaylistId = $featuredPlaylistId;
+ }
+ public function getFeaturedPlaylistId()
+ {
+ return $this->featuredPlaylistId;
+ }
+ public function setTextColor($textColor)
+ {
+ $this->textColor = $textColor;
+ }
+ public function getTextColor()
+ {
+ return $this->textColor;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php
new file mode 100644
index 00000000..9d30f156
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics.php
@@ -0,0 +1,240 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for YouTubeAnalytics (v1).
+ *
+ * <p>
+ * Retrieves your YouTube Analytics data.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="http://developers.google.com/youtube/analytics/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_YouTubeAnalytics extends Google_Service
+{
+ /** Manage your YouTube account. */
+ const YOUTUBE =
+ "https://www.googleapis.com/auth/youtube";
+ /** View your YouTube account. */
+ const YOUTUBE_READONLY =
+ "https://www.googleapis.com/auth/youtube.readonly";
+ /** View and manage your assets and associated content on YouTube. */
+ const YOUTUBEPARTNER =
+ "https://www.googleapis.com/auth/youtubepartner";
+ /** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */
+ const YT_ANALYTICS_MONETARY_READONLY =
+ "https://www.googleapis.com/auth/yt-analytics-monetary.readonly";
+ /** View YouTube Analytics reports for your YouTube content. */
+ const YT_ANALYTICS_READONLY =
+ "https://www.googleapis.com/auth/yt-analytics.readonly";
+
+ public $groupItems;
+ public $groups;
+ public $reports;
+
+ /**
+ * Constructs the internal representation of the YouTubeAnalytics service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://www.googleapis.com/';
+ $this->servicePath = 'youtube/analytics/v1/';
+ $this->version = 'v1';
+ $this->serviceName = 'youtubeAnalytics';
+
+ $this->groupItems = new Google_Service_YouTubeAnalytics_Resource_GroupItems(
+ $this,
+ $this->serviceName,
+ 'groupItems',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'groupItems',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'groupItems',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'groupItems',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'groupId' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->groups = new Google_Service_YouTubeAnalytics_Resource_Groups(
+ $this,
+ $this->serviceName,
+ 'groups',
+ array(
+ 'methods' => array(
+ 'delete' => array(
+ 'path' => 'groups',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'insert' => array(
+ 'path' => 'groups',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'groups',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'id' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'mine' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'update' => array(
+ 'path' => 'groups',
+ 'httpMethod' => 'PUT',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reports = new Google_Service_YouTubeAnalytics_Resource_Reports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'query' => array(
+ 'path' => 'reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'ids' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'start-date' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'end-date' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'metrics' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'currency' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'dimensions' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'filters' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'include-historical-channel-data' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'max-results' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'sort' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'start-index' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReport.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReport.php
new file mode 100644
index 00000000..d0193100
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReport.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_BatchReport extends Google_Collection
+{
+ protected $collection_key = 'outputs';
+ public $id;
+ public $kind;
+ protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportOutputs';
+ protected $outputsDataType = 'array';
+ public $reportId;
+ protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTimeSpan';
+ protected $timeSpanDataType = '';
+ public $timeUpdated;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOutputs($outputs)
+ {
+ $this->outputs = $outputs;
+ }
+ public function getOutputs()
+ {
+ return $this->outputs;
+ }
+ public function setReportId($reportId)
+ {
+ $this->reportId = $reportId;
+ }
+ public function getReportId()
+ {
+ return $this->reportId;
+ }
+ public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTimeSpan $timeSpan)
+ {
+ $this->timeSpan = $timeSpan;
+ }
+ public function getTimeSpan()
+ {
+ return $this->timeSpan;
+ }
+ public function setTimeUpdated($timeUpdated)
+ {
+ $this->timeUpdated = $timeUpdated;
+ }
+ public function getTimeUpdated()
+ {
+ return $this->timeUpdated;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinition.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinition.php
new file mode 100644
index 00000000..233b2560
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinition.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_BatchReportDefinition extends Google_Model
+{
+ public $id;
+ public $kind;
+ public $name;
+ public $status;
+ public $type;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinitionList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinitionList.php
new file mode 100644
index 00000000..116f141b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportDefinitionList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinition';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportList.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportList.php
new file mode 100644
index 00000000..5119337b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportList.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReport';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportOutputs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportOutputs.php
new file mode 100644
index 00000000..9d95f26e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportOutputs.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_BatchReportOutputs extends Google_Model
+{
+ public $downloadUrl;
+ public $format;
+ public $type;
+
+ public function setDownloadUrl($downloadUrl)
+ {
+ $this->downloadUrl = $downloadUrl;
+ }
+ public function getDownloadUrl()
+ {
+ return $this->downloadUrl;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportTimeSpan.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportTimeSpan.php
new file mode 100644
index 00000000..33a952a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/BatchReportTimeSpan.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_BatchReportTimeSpan extends Google_Model
+{
+ public $endTime;
+ public $startTime;
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Group.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Group.php
new file mode 100644
index 00000000..4f767bd3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Group.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_Group extends Google_Model
+{
+ protected $contentDetailsType = 'Google_Service_YouTubeAnalytics_GroupContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTubeAnalytics_GroupSnippet';
+ protected $snippetDataType = '';
+
+ public function setContentDetails(Google_Service_YouTubeAnalytics_GroupContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSnippet(Google_Service_YouTubeAnalytics_GroupSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupContentDetails.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupContentDetails.php
new file mode 100644
index 00000000..acb50c3f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupContentDetails.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_GroupContentDetails extends Google_Model
+{
+ public $itemCount;
+ public $itemType;
+
+ public function setItemCount($itemCount)
+ {
+ $this->itemCount = $itemCount;
+ }
+ public function getItemCount()
+ {
+ return $this->itemCount;
+ }
+ public function setItemType($itemType)
+ {
+ $this->itemType = $itemType;
+ }
+ public function getItemType()
+ {
+ return $this->itemType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItem.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItem.php
new file mode 100644
index 00000000..988c6206
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItem.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_GroupItem extends Google_Model
+{
+ public $etag;
+ public $groupId;
+ public $id;
+ public $kind;
+ protected $resourceType = 'Google_Service_YouTubeAnalytics_GroupItemResource';
+ protected $resourceDataType = '';
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGroupId($groupId)
+ {
+ $this->groupId = $groupId;
+ }
+ public function getGroupId()
+ {
+ return $this->groupId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResource(Google_Service_YouTubeAnalytics_GroupItemResource $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemListResponse.php
new file mode 100644
index 00000000..5fd9f6e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemListResponse.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_GroupItemListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_YouTubeAnalytics_GroupItem';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemResource.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemResource.php
new file mode 100644
index 00000000..2e5c220b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupItemResource.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_GroupItemResource extends Google_Model
+{
+ public $id;
+ public $kind;
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupListResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupListResponse.php
new file mode 100644
index 00000000..dfdf12fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupListResponse.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_GroupListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ public $etag;
+ protected $itemsType = 'Google_Service_YouTubeAnalytics_Group';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupSnippet.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupSnippet.php
new file mode 100644
index 00000000..46e9b765
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/GroupSnippet.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_GroupSnippet extends Google_Model
+{
+ public $publishedAt;
+ public $title;
+
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReportDefinitions.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReportDefinitions.php
new file mode 100644
index 00000000..08a95a72
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReportDefinitions.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "batchReportDefinitions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
+ * $batchReportDefinitions = $youtubeAnalyticsService->batchReportDefinitions;
+ * </code>
+ */
+class Google_Service_YouTubeAnalytics_Resource_BatchReportDefinitions extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of available batch report definitions.
+ * (batchReportDefinitions.listBatchReportDefinitions)
+ *
+ * @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter
+ * identifies the content owner that the user is acting on behalf of.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTubeAnalytics_BatchReportDefinitionList
+ */
+ public function listBatchReportDefinitions($onBehalfOfContentOwner, $optParams = array())
+ {
+ $params = array('onBehalfOfContentOwner' => $onBehalfOfContentOwner);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportDefinitionList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReports.php
new file mode 100644
index 00000000..852ae2c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/BatchReports.php
@@ -0,0 +1,45 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "batchReports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
+ * $batchReports = $youtubeAnalyticsService->batchReports;
+ * </code>
+ */
+class Google_Service_YouTubeAnalytics_Resource_BatchReports extends Google_Service_Resource
+{
+ /**
+ * Retrieves a list of processed batch reports. (batchReports.listBatchReports)
+ *
+ * @param string $batchReportDefinitionId The batchReportDefinitionId parameter
+ * specifies the ID of the batch reportort definition for which you are
+ * retrieving reports.
+ * @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter
+ * identifies the content owner that the user is acting on behalf of.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTubeAnalytics_BatchReportList
+ */
+ public function listBatchReports($batchReportDefinitionId, $onBehalfOfContentOwner, $optParams = array())
+ {
+ $params = array('batchReportDefinitionId' => $batchReportDefinitionId, 'onBehalfOfContentOwner' => $onBehalfOfContentOwner);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportList");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/GroupItems.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/GroupItems.php
new file mode 100644
index 00000000..a0302c62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/GroupItems.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groupItems" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
+ * $groupItems = $youtubeAnalyticsService->groupItems;
+ * </code>
+ */
+class Google_Service_YouTubeAnalytics_Resource_GroupItems extends Google_Service_Resource
+{
+ /**
+ * Removes an item from a group. (groupItems.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube group item ID for
+ * the group that is being deleted.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Creates a group item. (groupItems.insert)
+ *
+ * @param Google_Service_YouTubeAnalytics_GroupItem $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_GroupItem
+ */
+ public function insert(Google_Service_YouTubeAnalytics_GroupItem $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_GroupItem");
+ }
+ /**
+ * Returns a collection of group items that match the API request parameters.
+ * (groupItems.listGroupItems)
+ *
+ * @param string $groupId The id parameter specifies the unique ID of the group
+ * for which you want to retrieve group items.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_GroupItemListResponse
+ */
+ public function listGroupItems($groupId, $optParams = array())
+ {
+ $params = array('groupId' => $groupId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupItemListResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php
new file mode 100644
index 00000000..9c983ba5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Groups.php
@@ -0,0 +1,142 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
+ * $groups = $youtubeAnalyticsService->groups;
+ * </code>
+ */
+class Google_Service_YouTubeAnalytics_Resource_Groups extends Google_Service_Resource
+{
+ /**
+ * Deletes a group. (groups.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube group ID for the
+ * group that is being deleted.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+ /**
+ * Creates a group. (groups.insert)
+ *
+ * @param Google_Service_YouTubeAnalytics_Group $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_Group
+ */
+ public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_Group");
+ }
+ /**
+ * Returns a collection of groups that match the API request parameters. For
+ * example, you can retrieve all groups that the authenticated user owns, or you
+ * can retrieve one or more groups by their unique IDs. (groups.listGroups)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube group ID(s) for the resource(s) that are being retrieved. In a group
+ * resource, the id property specifies the group's YouTube group ID.
+ * @opt_param bool mine Set this parameter's value to true to instruct the API
+ * to only return groups owned by the authenticated user.
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken property identifies the next page that can be retrieved.
+ * @return Google_Service_YouTubeAnalytics_GroupListResponse
+ */
+ public function listGroups($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupListResponse");
+ }
+ /**
+ * Modifies a group. For example, you could change a group's title.
+ * (groups.update)
+ *
+ * @param Google_Service_YouTubeAnalytics_Group $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_Group
+ */
+ public function update(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTubeAnalytics_Group");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Reports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Reports.php
new file mode 100644
index 00000000..6f6f116f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/Resource/Reports.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
+ * $reports = $youtubeAnalyticsService->reports;
+ * </code>
+ */
+class Google_Service_YouTubeAnalytics_Resource_Reports extends Google_Service_Resource
+{
+ /**
+ * Retrieve your YouTube Analytics reports. (reports.query)
+ *
+ * @param string $ids Identifies the YouTube channel or content owner for which
+ * you are retrieving YouTube Analytics data. - To request data for a YouTube
+ * user, set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID
+ * specifies the unique YouTube channel ID. - To request data for a YouTube CMS
+ * content owner, set the ids parameter value to contentOwner==OWNER_NAME, where
+ * OWNER_NAME is the CMS name of the content owner.
+ * @param string $startDate The start date for fetching YouTube Analytics data.
+ * The value should be in YYYY-MM-DD format.
+ * @param string $endDate The end date for fetching YouTube Analytics data. The
+ * value should be in YYYY-MM-DD format.
+ * @param string $metrics A comma-separated list of YouTube Analytics metrics,
+ * such as views or likes,dislikes. See the Available Reports document for a
+ * list of the reports that you can retrieve and the metrics available in each
+ * report, and see the Metrics document for definitions of those metrics.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string currency The currency to which financial metrics should be
+ * converted. The default is US Dollar (USD). If the result contains no
+ * financial metrics, this flag will be ignored. Responds with an error if the
+ * specified currency is not recognized.
+ * @opt_param string dimensions A comma-separated list of YouTube Analytics
+ * dimensions, such as views or ageGroup,gender. See the Available Reports
+ * document for a list of the reports that you can retrieve and the dimensions
+ * used for those reports. Also see the Dimensions document for definitions of
+ * those dimensions.
+ * @opt_param string filters A list of filters that should be applied when
+ * retrieving YouTube Analytics data. The Available Reports document identifies
+ * the dimensions that can be used to filter each report, and the Dimensions
+ * document defines those dimensions. If a request uses multiple filters, join
+ * them together with a semicolon (;), and the returned result table will
+ * satisfy both filters. For example, a filters parameter value of
+ * video==dMH0bHeiRNg;country==IT restricts the result set to include data for
+ * the given video in Italy.
+ * @opt_param bool include-historical-channel-data If set to true historical
+ * data (i.e. channel data from before the linking of the channel to the content
+ * owner) will be retrieved.
+ * @opt_param int max-results The maximum number of rows to include in the
+ * response.
+ * @opt_param string sort A comma-separated list of dimensions or metrics that
+ * determine the sort order for YouTube Analytics data. By default the sort
+ * order is ascending. The '-' prefix causes descending sort order.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter
+ * (one-based, inclusive).
+ * @return Google_Service_YouTubeAnalytics_ResultTable
+ */
+ public function query($ids, $startDate, $endDate, $metrics, $optParams = array())
+ {
+ $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
+ $params = array_merge($params, $optParams);
+ return $this->call('query', array($params), "Google_Service_YouTubeAnalytics_ResultTable");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTable.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTable.php
new file mode 100644
index 00000000..0accde01
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTable.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection
+{
+ protected $collection_key = 'rows';
+ protected $columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders';
+ protected $columnHeadersDataType = 'array';
+ public $kind;
+ public $rows;
+
+ public function setColumnHeaders($columnHeaders)
+ {
+ $this->columnHeaders = $columnHeaders;
+ }
+ public function getColumnHeaders()
+ {
+ return $this->columnHeaders;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRows($rows)
+ {
+ $this->rows = $rows;
+ }
+ public function getRows()
+ {
+ return $this->rows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTableColumnHeaders.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTableColumnHeaders.php
new file mode 100644
index 00000000..1798672a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeAnalytics/ResultTableColumnHeaders.php
@@ -0,0 +1,48 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Model
+{
+ public $columnType;
+ public $dataType;
+ public $name;
+
+ public function setColumnType($columnType)
+ {
+ $this->columnType = $columnType;
+ }
+ public function getColumnType()
+ {
+ return $this->columnType;
+ }
+ public function setDataType($dataType)
+ {
+ $this->dataType = $dataType;
+ }
+ public function getDataType()
+ {
+ return $this->dataType;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting.php
new file mode 100644
index 00000000..f7932338
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting.php
@@ -0,0 +1,242 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Service definition for YouTubeReporting (v1).
+ *
+ * <p>
+ * Schedules reporting jobs containing your YouTube Analytics data and downloads
+ * the resulting bulk data reports in the form of CSV files.</p>
+ *
+ * <p>
+ * For more information about this service, see the API
+ * <a href="https://developers.google.com/youtube/reporting/v1/reports/" target="_blank">Documentation</a>
+ * </p>
+ *
+ * @author Google, Inc.
+ */
+class Google_Service_YouTubeReporting extends Google_Service
+{
+ /** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */
+ const YT_ANALYTICS_MONETARY_READONLY =
+ "https://www.googleapis.com/auth/yt-analytics-monetary.readonly";
+ /** View YouTube Analytics reports for your YouTube content. */
+ const YT_ANALYTICS_READONLY =
+ "https://www.googleapis.com/auth/yt-analytics.readonly";
+
+ public $jobs;
+ public $jobs_reports;
+ public $media;
+ public $reportTypes;
+
+ /**
+ * Constructs the internal representation of the YouTubeReporting service.
+ *
+ * @param Google_Client $client
+ */
+ public function __construct(Google_Client $client)
+ {
+ parent::__construct($client);
+ $this->rootUrl = 'https://youtubereporting.googleapis.com/';
+ $this->servicePath = '';
+ $this->version = 'v1';
+ $this->serviceName = 'youtubereporting';
+
+ $this->jobs = new Google_Service_YouTubeReporting_Resource_Jobs(
+ $this,
+ $this->serviceName,
+ 'jobs',
+ array(
+ 'methods' => array(
+ 'create' => array(
+ 'path' => 'v1/jobs',
+ 'httpMethod' => 'POST',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'delete' => array(
+ 'path' => 'v1/jobs/{jobId}',
+ 'httpMethod' => 'DELETE',
+ 'parameters' => array(
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'get' => array(
+ 'path' => 'v1/jobs/{jobId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/jobs',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeSystemManaged' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->jobs_reports = new Google_Service_YouTubeReporting_Resource_JobsReports(
+ $this,
+ $this->serviceName,
+ 'reports',
+ array(
+ 'methods' => array(
+ 'get' => array(
+ 'path' => 'v1/jobs/{jobId}/reports/{reportId}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'reportId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ ),
+ ),'list' => array(
+ 'path' => 'v1/jobs/{jobId}/reports',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'jobId' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTimeBefore' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'createdAfter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'startTimeAtOrAfter' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->media = new Google_Service_YouTubeReporting_Resource_Media(
+ $this,
+ $this->serviceName,
+ 'media',
+ array(
+ 'methods' => array(
+ 'download' => array(
+ 'path' => 'v1/media/{+resourceName}',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'resourceName' => array(
+ 'location' => 'path',
+ 'type' => 'string',
+ 'required' => true,
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ $this->reportTypes = new Google_Service_YouTubeReporting_Resource_ReportTypes(
+ $this,
+ $this->serviceName,
+ 'reportTypes',
+ array(
+ 'methods' => array(
+ 'list' => array(
+ 'path' => 'v1/reportTypes',
+ 'httpMethod' => 'GET',
+ 'parameters' => array(
+ 'onBehalfOfContentOwner' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
+ 'includeSystemManaged' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
+ 'pageSize' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ ),
+ ),
+ )
+ )
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Job.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Job.php
new file mode 100644
index 00000000..290613fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Job.php
@@ -0,0 +1,75 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_Job extends Google_Model
+{
+ public $createTime;
+ public $expireTime;
+ public $id;
+ public $name;
+ public $reportTypeId;
+ public $systemManaged;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setExpireTime($expireTime)
+ {
+ $this->expireTime = $expireTime;
+ }
+ public function getExpireTime()
+ {
+ return $this->expireTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReportTypeId($reportTypeId)
+ {
+ $this->reportTypeId = $reportTypeId;
+ }
+ public function getReportTypeId()
+ {
+ return $this->reportTypeId;
+ }
+ public function setSystemManaged($systemManaged)
+ {
+ $this->systemManaged = $systemManaged;
+ }
+ public function getSystemManaged()
+ {
+ return $this->systemManaged;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListJobsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListJobsResponse.php
new file mode 100644
index 00000000..e5052171
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListJobsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_ListJobsResponse extends Google_Collection
+{
+ protected $collection_key = 'jobs';
+ protected $jobsType = 'Google_Service_YouTubeReporting_Job';
+ protected $jobsDataType = 'array';
+ public $nextPageToken;
+
+ public function setJobs($jobs)
+ {
+ $this->jobs = $jobs;
+ }
+ public function getJobs()
+ {
+ return $this->jobs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportTypesResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportTypesResponse.php
new file mode 100644
index 00000000..08d87d71
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportTypesResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_ListReportTypesResponse extends Google_Collection
+{
+ protected $collection_key = 'reportTypes';
+ public $nextPageToken;
+ protected $reportTypesType = 'Google_Service_YouTubeReporting_ReportType';
+ protected $reportTypesDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setReportTypes($reportTypes)
+ {
+ $this->reportTypes = $reportTypes;
+ }
+ public function getReportTypes()
+ {
+ return $this->reportTypes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportsResponse.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportsResponse.php
new file mode 100644
index 00000000..d5c66055
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ListReportsResponse.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_ListReportsResponse extends Google_Collection
+{
+ protected $collection_key = 'reports';
+ public $nextPageToken;
+ protected $reportsType = 'Google_Service_YouTubeReporting_Report';
+ protected $reportsDataType = 'array';
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setReports($reports)
+ {
+ $this->reports = $reports;
+ }
+ public function getReports()
+ {
+ return $this->reports;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Media.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Media.php
new file mode 100644
index 00000000..2035d8bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Media.php
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_Media extends Google_Model
+{
+ public $resourceName;
+
+ public function setResourceName($resourceName)
+ {
+ $this->resourceName = $resourceName;
+ }
+ public function getResourceName()
+ {
+ return $this->resourceName;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Report.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Report.php
new file mode 100644
index 00000000..60f26843
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Report.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_Report extends Google_Model
+{
+ public $createTime;
+ public $downloadUrl;
+ public $endTime;
+ public $id;
+ public $jobExpireTime;
+ public $jobId;
+ public $startTime;
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setDownloadUrl($downloadUrl)
+ {
+ $this->downloadUrl = $downloadUrl;
+ }
+ public function getDownloadUrl()
+ {
+ return $this->downloadUrl;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setJobExpireTime($jobExpireTime)
+ {
+ $this->jobExpireTime = $jobExpireTime;
+ }
+ public function getJobExpireTime()
+ {
+ return $this->jobExpireTime;
+ }
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
+ {
+ return $this->jobId;
+ }
+ public function setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ReportType.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ReportType.php
new file mode 100644
index 00000000..6c027afe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/ReportType.php
@@ -0,0 +1,57 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_ReportType extends Google_Model
+{
+ public $deprecateTime;
+ public $id;
+ public $name;
+ public $systemManaged;
+
+ public function setDeprecateTime($deprecateTime)
+ {
+ $this->deprecateTime = $deprecateTime;
+ }
+ public function getDeprecateTime()
+ {
+ return $this->deprecateTime;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSystemManaged($systemManaged)
+ {
+ $this->systemManaged = $systemManaged;
+ }
+ public function getSystemManaged()
+ {
+ return $this->systemManaged;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php
new file mode 100644
index 00000000..f8707f9b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Jobs.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubereportingService = new Google_Service_YouTubeReporting(...);
+ * $jobs = $youtubereportingService->jobs;
+ * </code>
+ */
+class Google_Service_YouTubeReporting_Resource_Jobs extends Google_Service_Resource
+{
+ /**
+ * Creates a job and returns it. (jobs.create)
+ *
+ * @param Google_Service_YouTubeReporting_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The content owner's external ID on
+ * which behalf the user is acting on. If not set, the user is acting for
+ * himself (his own channel).
+ * @return Google_Service_YouTubeReporting_Job
+ */
+ public function create(Google_Service_YouTubeReporting_Job $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_YouTubeReporting_Job");
+ }
+ /**
+ * Deletes a job. (jobs.delete)
+ *
+ * @param string $jobId The ID of the job to delete.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The content owner's external ID on
+ * which behalf the user is acting on. If not set, the user is acting for
+ * himself (his own channel).
+ * @return Google_Service_YouTubeReporting_YoutubereportingEmpty
+ */
+ public function delete($jobId, $optParams = array())
+ {
+ $params = array('jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_YouTubeReporting_YoutubereportingEmpty");
+ }
+ /**
+ * Gets a job. (jobs.get)
+ *
+ * @param string $jobId The ID of the job to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The content owner's external ID on
+ * which behalf the user is acting on. If not set, the user is acting for
+ * himself (his own channel).
+ * @return Google_Service_YouTubeReporting_Job
+ */
+ public function get($jobId, $optParams = array())
+ {
+ $params = array('jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_YouTubeReporting_Job");
+ }
+ /**
+ * Lists jobs. (jobs.listJobs)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The content owner's external ID on
+ * which behalf the user is acting on. If not set, the user is acting for
+ * himself (his own channel).
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListReportTypesResponse.next_page_token returned in response to the previous
+ * call to the `ListJobs` method.
+ * @opt_param bool includeSystemManaged If set to true, also system-managed jobs
+ * will be returned; otherwise only user-created jobs will be returned. System-
+ * managed jobs can neither be modified nor deleted.
+ * @opt_param int pageSize Requested page size. Server may return fewer jobs
+ * than requested. If unspecified, server will pick an appropriate default.
+ * @return Google_Service_YouTubeReporting_ListJobsResponse
+ */
+ public function listJobs($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListJobsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php
new file mode 100644
index 00000000..27b92a2c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/JobsReports.php
@@ -0,0 +1,77 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubereportingService = new Google_Service_YouTubeReporting(...);
+ * $reports = $youtubereportingService->reports;
+ * </code>
+ */
+class Google_Service_YouTubeReporting_Resource_JobsReports extends Google_Service_Resource
+{
+ /**
+ * Gets the metadata of a specific report. (reports.get)
+ *
+ * @param string $jobId The ID of the job.
+ * @param string $reportId The ID of the report to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The content owner's external ID on
+ * which behalf the user is acting on. If not set, the user is acting for
+ * himself (his own channel).
+ * @return Google_Service_YouTubeReporting_Report
+ */
+ public function get($jobId, $reportId, $optParams = array())
+ {
+ $params = array('jobId' => $jobId, 'reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_YouTubeReporting_Report");
+ }
+ /**
+ * Lists reports created by a specific job. Returns NOT_FOUND if the job does
+ * not exist. (reports.listJobsReports)
+ *
+ * @param string $jobId The ID of the job.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The content owner's external ID on
+ * which behalf the user is acting on. If not set, the user is acting for
+ * himself (his own channel).
+ * @opt_param string startTimeBefore If set, only reports whose start time is
+ * smaller than the specified date/time are returned.
+ * @opt_param string createdAfter If set, only reports created after the
+ * specified date/time are returned.
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListReportsResponse.next_page_token returned in response to the previous call
+ * to the `ListReports` method.
+ * @opt_param string startTimeAtOrAfter If set, only reports whose start time is
+ * greater than or equal the specified date/time are returned.
+ * @opt_param int pageSize Requested page size. Server may return fewer report
+ * types than requested. If unspecified, server will pick an appropriate
+ * default.
+ * @return Google_Service_YouTubeReporting_ListReportsResponse
+ */
+ public function listJobsReports($jobId, $optParams = array())
+ {
+ $params = array('jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportsResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Media.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Media.php
new file mode 100644
index 00000000..9c9a947e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/Media.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "media" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubereportingService = new Google_Service_YouTubeReporting(...);
+ * $media = $youtubereportingService->media;
+ * </code>
+ */
+class Google_Service_YouTubeReporting_Resource_Media extends Google_Service_Resource
+{
+ /**
+ * Method for media download. Download is supported on the URI
+ * `/v1/media/{+name}?alt=media`. (media.download)
+ *
+ * @param string $resourceName Name of the media that is being downloaded. See
+ * ReadRequest.resource_name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTubeReporting_Media
+ */
+ public function download($resourceName, $optParams = array())
+ {
+ $params = array('resourceName' => $resourceName);
+ $params = array_merge($params, $optParams);
+ return $this->call('download', array($params), "Google_Service_YouTubeReporting_Media");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php
new file mode 100644
index 00000000..724db661
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/Resource/ReportTypes.php
@@ -0,0 +1,54 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * The "reportTypes" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $youtubereportingService = new Google_Service_YouTubeReporting(...);
+ * $reportTypes = $youtubereportingService->reportTypes;
+ * </code>
+ */
+class Google_Service_YouTubeReporting_Resource_ReportTypes extends Google_Service_Resource
+{
+ /**
+ * Lists report types. (reportTypes.listReportTypes)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner The content owner's external ID on
+ * which behalf the user is acting on. If not set, the user is acting for
+ * himself (his own channel).
+ * @opt_param string pageToken A token identifying a page of results the server
+ * should return. Typically, this is the value of
+ * ListReportTypesResponse.next_page_token returned in response to the previous
+ * call to the `ListReportTypes` method.
+ * @opt_param bool includeSystemManaged If set to true, also system-managed
+ * report types will be returned; otherwise only the report types that can be
+ * used to create new reporting jobs will be returned.
+ * @opt_param int pageSize Requested page size. Server may return fewer report
+ * types than requested. If unspecified, server will pick an appropriate
+ * default.
+ * @return Google_Service_YouTubeReporting_ListReportTypesResponse
+ */
+ public function listReportTypes($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeReporting_ListReportTypesResponse");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/YoutubereportingEmpty.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/YoutubereportingEmpty.php
new file mode 100644
index 00000000..9ca9fbbe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/src/Google/Service/YouTubeReporting/YoutubereportingEmpty.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+class Google_Service_YouTubeReporting_YoutubereportingEmpty extends Google_Model
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/ServiceTest.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/ServiceTest.php
new file mode 100644
index 00000000..67f2a6aa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/ServiceTest.php
@@ -0,0 +1,61 @@
+<?php
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+require_once __DIR__ . '/../vendor/autoload.php';
+
+class Google_Service_ServiceTest extends PHPUnit_Framework_TestCase
+{
+ public function setUp()
+ {
+ // ensure dependent classes exist
+ $this->getMock('Google_Service');
+ $this->getMock('Google_Model');
+ $this->getMock('Google_Collection');
+ $this->getMock('Google_Service_Resource');
+ }
+ /**
+ * @dataProvider serviceProvider
+ */
+ public function testIncludes($class)
+ {
+ $this->assertTrue(
+ class_exists($class),
+ sprintf('Failed asserting class %s exists.', $class)
+ );
+ }
+
+ public function serviceProvider()
+ {
+ $classes = array();
+ $path = __DIR__ . '/../src/Google/Service/';
+ foreach (glob($path . "*.php") as $file) {
+ $service = basename($file, '.php');
+ $classes[] = array('Google_Service_' . $service);
+ foreach (glob($path . "{$service}/*.php") as $file) {
+ $classes[] = array("Google_Service_{$service}_" . basename($file, '.php'));
+ }
+ foreach (glob($path . "{$service}/Resource/*.php") as $file) {
+ $classes[] = array("Google_Service_{$service}_Resource_" . basename($file, '.php'));
+ }
+ }
+
+ return $classes;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/bootstrap.php b/mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/bootstrap.php
new file mode 100644
index 00000000..e15933af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient-services/tests/bootstrap.php
@@ -0,0 +1,3 @@
+<?php
+
+require_once __DIR__ .'/../vendor/autoload.php'; \ No newline at end of file
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/.gitattributes b/mayor-orig/www/include/share/googleapi/google/apiclient/.gitattributes
new file mode 100644
index 00000000..d4e9c251
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/.gitattributes
@@ -0,0 +1,9 @@
+/.github export-ignore
+/.gitignore export-ignore
+/.travis.yml export-ignore
+/CONTRIBUTING.md export-ignore
+/examples export-ignore
+/phpunit.xml.dist export-ignore
+/style export-ignore
+/tests export-ignore
+/UPGRADING.md export-ignore
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/LICENSE b/mayor-orig/www/include/share/googleapi/google/apiclient/LICENSE
new file mode 100644
index 00000000..a148ba56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/LICENSE
@@ -0,0 +1,203 @@
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction,
+and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by
+the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all
+other entities that control, are controlled by, or are under common
+control with that entity. For the purposes of this definition,
+"control" means (i) the power, direct or indirect, to cause the
+direction or management of such entity, whether by contract or
+otherwise, or (ii) ownership of fifty percent (50%) or more of the
+outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity
+exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation
+source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical
+transformation or translation of a Source form, including but
+not limited to compiled object code, generated documentation,
+and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or
+Object form, made available under the License, as indicated by a
+copyright notice that is included in or attached to the work
+(an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object
+form, that is based on (or derived from) the Work and for which the
+editorial revisions, annotations, elaborations, or other modifications
+represent, as a whole, an original work of authorship. For the purposes
+of this License, Derivative Works shall not include works that remain
+separable from, or merely link (or bind by name) to the interfaces of,
+the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including
+the original version of the Work and any modifications or additions
+to that Work or Derivative Works thereof, that is intentionally
+submitted to Licensor for inclusion in the Work by the copyright owner
+or by an individual or Legal Entity authorized to submit on behalf of
+the copyright owner. For the purposes of this definition, "submitted"
+means any form of electronic, verbal, or written communication sent
+to the Licensor or its representatives, including but not limited to
+communication on electronic mailing lists, source code control systems,
+and issue tracking systems that are managed by, or on behalf of, the
+Licensor for the purpose of discussing and improving the Work, but
+excluding communication that is conspicuously marked or otherwise
+designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity
+on behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of,
+publicly display, publicly perform, sublicense, and distribute the
+Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made,
+use, offer to sell, sell, import, and otherwise transfer the Work,
+where such license applies only to those patent claims licensable
+by such Contributor that are necessarily infringed by their
+Contribution(s) alone or by combination of their Contribution(s)
+with the Work to which such Contribution(s) was submitted. If You
+institute patent litigation against any entity (including a
+cross-claim or counterclaim in a lawsuit) alleging that the Work
+or a Contribution incorporated within the Work constitutes direct
+or contributory patent infringement, then any patent licenses
+granted to You under this License for that Work shall terminate
+as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+Work or Derivative Works thereof in any medium, with or without
+modifications, and in Source or Object form, provided that You
+meet the following conditions:
+
+(a) You must give any other recipients of the Work or
+Derivative Works a copy of this License; and
+
+(b) You must cause any modified files to carry prominent notices
+stating that You changed the files; and
+
+(c) You must retain, in the Source form of any Derivative Works
+that You distribute, all copyright, patent, trademark, and
+attribution notices from the Source form of the Work,
+excluding those notices that do not pertain to any part of
+the Derivative Works; and
+
+(d) If the Work includes a "NOTICE" text file as part of its
+distribution, then any Derivative Works that You distribute must
+include a readable copy of the attribution notices contained
+within such NOTICE file, excluding those notices that do not
+pertain to any part of the Derivative Works, in at least one
+of the following places: within a NOTICE text file distributed
+as part of the Derivative Works; within the Source form or
+documentation, if provided along with the Derivative Works; or,
+within a display generated by the Derivative Works, if and
+wherever such third-party notices normally appear. The contents
+of the NOTICE file are for informational purposes only and
+do not modify the License. You may add Your own attribution
+notices within Derivative Works that You distribute, alongside
+or as an addendum to the NOTICE text from the Work, provided
+that such additional attribution notices cannot be construed
+as modifying the License.
+
+You may add Your own copyright statement to Your modifications and
+may provide additional or different license terms and conditions
+for use, reproduction, or distribution of Your modifications, or
+for any such Derivative Works as a whole, provided Your use,
+reproduction, and distribution of the Work otherwise complies with
+the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+any Contribution intentionally submitted for inclusion in the Work
+by You to the Licensor shall be under the terms and conditions of
+this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify
+the terms of any separate license agreement you may have executed
+with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+names, trademarks, service marks, or product names of the Licensor,
+except as required for reasonable and customary use in describing the
+origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+agreed to in writing, Licensor provides the Work (and each
+Contributor provides its Contributions) on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+implied, including, without limitation, any warranties or conditions
+of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+PARTICULAR PURPOSE. You are solely responsible for determining the
+appropriateness of using or redistributing the Work and assume any
+risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+whether in tort (including negligence), contract, or otherwise,
+unless required by applicable law (such as deliberate and grossly
+negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a
+result of this License or out of the use or inability to use the
+Work (including but not limited to damages for loss of goodwill,
+work stoppage, computer failure or malfunction, or any and all
+other commercial damages or losses), even if such Contributor
+has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+the Work or Derivative Works thereof, You may choose to offer,
+and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this
+License. However, in accepting such obligations, You may act only
+on Your own behalf and on Your sole responsibility, not on behalf
+of any other Contributor, and only if You agree to indemnify,
+defend, and hold each Contributor harmless for any liability
+incurred by, or claims asserted against, such Contributor by reason
+of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+To apply the Apache License to your work, attach the following
+boilerplate notice, with the fields enclosed by brackets "[]"
+replaced with your own identifying information. (Don't include
+the brackets!) The text should be enclosed in the appropriate
+comment syntax for the file format. We also recommend that a
+file or class name and description of purpose be included on the
+same "printed page" as the copyright notice for easier
+identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/README.md b/mayor-orig/www/include/share/googleapi/google/apiclient/README.md
new file mode 100644
index 00000000..e2d6eb85
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/README.md
@@ -0,0 +1,366 @@
+[![Build Status](https://travis-ci.org/google/google-api-php-client.svg?branch=master)](https://travis-ci.org/google/google-api-php-client)
+
+# Google APIs Client Library for PHP #
+
+## Description ##
+The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server.
+
+## Beta ##
+This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes.
+
+## Requirements ##
+* [PHP 5.4.0 or higher](http://www.php.net/)
+
+## Google Cloud Platform APIs
+If you're looking to call the **Google Cloud Platform** APIs, you will want to use the [Google Cloud PHP](https://github.com/googlecloudplatform/google-cloud-php) library instead of this one.
+
+## Developer Documentation ##
+http://developers.google.com/api-client-library/php
+
+## Installation ##
+
+You can use **Composer** or simply **Download the Release**
+
+### Composer
+
+The preferred method is via [composer](https://getcomposer.org). Follow the
+[installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have
+composer installed.
+
+Once composer is installed, execute the following command in your project root to install this library:
+
+```sh
+composer require google/apiclient:^2.0
+```
+
+Finally, be sure to include the autoloader:
+
+```php
+require_once '/path/to/your-project/vendor/autoload.php';
+```
+
+### Download the Release
+
+If you abhor using composer, you can download the package in its entirety. The [Releases](https://github.com/google/google-api-php-client/releases) page lists all stable versions. Download any file
+with the name `google-api-php-client-[RELEASE_NAME].zip` for a package including this library and its dependencies.
+
+Uncompress the zip file you download, and include the autoloader in your project:
+
+```php
+require_once '/path/to/google-api-php-client/vendor/autoload.php';
+```
+
+For additional installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation).
+
+## Examples ##
+See the [`examples/`](examples) directory for examples of the key client features. You can
+view them in your browser by running the php built-in web server.
+
+```
+$ php -S localhost:8000 -t examples/
+```
+
+And then browsing to the host and port you specified
+(in the above example, `http://localhost:8000`).
+
+### Basic Example ###
+
+```php
+// include your composer dependencies
+require_once 'vendor/autoload.php';
+
+$client = new Google_Client();
+$client->setApplicationName("Client_Library_Examples");
+$client->setDeveloperKey("YOUR_APP_KEY");
+
+$service = new Google_Service_Books($client);
+$optParams = array('filter' => 'free-ebooks');
+$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
+
+foreach ($results as $item) {
+ echo $item['volumeInfo']['title'], "<br /> \n";
+}
+```
+
+### Authentication with OAuth ###
+
+> An example of this can be seen in [`examples/simple-file-upload.php`](examples/simple-file-upload.php).
+
+1. Follow the instructions to [Create Web Application Credentials](https://developers.google.com/api-client-library/php/auth/web-app#creatingcred)
+1. Download the JSON credentials
+1. Set the path to these credentials using `Google_Client::setAuthConfig`:
+
+ ```php
+ $client = new Google_Client();
+ $client->setAuthConfig('/path/to/client_credentials.json');
+ ```
+
+1. Set the scopes required for the API you are going to call
+
+ ```php
+ $client->addScope(Google_Service_Drive::DRIVE);
+ ```
+
+1. Set your application's redirect URI
+
+ ```php
+ // Your redirect URI can be any registered URI, but in this example
+ // we redirect back to this same page
+ $redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
+ $client->setRedirectUri($redirect_uri);
+ ```
+
+1. In the script handling the redirect URI, exchange the authorization code for an access token:
+
+ ```php
+ if (isset($_GET['code'])) {
+ $token = $client->fetchAccessTokenWithAuthCode($_GET['code']);
+ $client->setAccessToken($token);
+ }
+ ```
+
+### Authentication with Service Accounts ###
+
+> An example of this can be seen in [`examples/service-account.php`](examples/service-account.php).
+
+1. Follow the instructions to [Create a Service Account](https://developers.google.com/api-client-library/php/auth/service-accounts#creatinganaccount)
+1. Download the JSON credentials
+1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable:
+
+ ```php
+ putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json');
+ ```
+
+1. Tell the Google client to use your service account credentials to authenticate:
+
+ ```php
+ $client = new Google_Client();
+ $client->useApplicationDefaultCredentials();
+ ```
+
+1. Set the scopes required for the API you are going to call
+
+ ```php
+ $client->addScope(Google_Service_Drive::DRIVE);
+ ```
+
+1. If you have delegated domain-wide access to the service account and you want to impersonate a user account, specify the email address of the user account using the method setSubject:
+
+ ```php
+ $client->setSubject($user_to_impersonate);
+ ```
+
+### Making Requests ###
+
+The classes used to call the API in [google-api-php-client-services](https://github.com/Google/google-api-php-client-services) are autogenerated. They map directly to the JSON requests and responses found in the [APIs Explorer](https://developers.google.com/apis-explorer/#p/).
+
+A JSON request to the [Datastore API](https://developers.google.com/apis-explorer/#p/datastore/v1beta3/datastore.projects.runQuery) would look like this:
+
+```json
+POST https://datastore.googleapis.com/v1beta3/projects/YOUR_PROJECT_ID:runQuery?key=YOUR_API_KEY
+
+{
+ "query": {
+ "kind": [{
+ "name": "Book"
+ }],
+ "order": [{
+ "property": {
+ "name": "title"
+ },
+ "direction": "descending"
+ }],
+ "limit": 10
+ }
+}
+```
+
+Using this library, the same call would look something like this:
+
+```php
+// create the datastore service class
+$datastore = new Google_Service_Datastore($client);
+
+// build the query - this maps directly to the JSON
+$query = new Google_Service_Datastore_Query([
+ 'kind' => [
+ [
+ 'name' => 'Book',
+ ],
+ ],
+ 'order' => [
+ 'property' => [
+ 'name' => 'title',
+ ],
+ 'direction' => 'descending',
+ ],
+ 'limit' => 10,
+]);
+
+// build the request and response
+$request = new Google_Service_Datastore_RunQueryRequest(['query' => $query]);
+$response = $datastore->projects->runQuery('YOUR_DATASET_ID', $request);
+```
+
+However, as each property of the JSON API has a corresponding generated class, the above code could also be written like this:
+
+```php
+// create the datastore service class
+$datastore = new Google_Service_Datastore($client);
+
+// build the query
+$request = new Google_Service_Datastore_RunQueryRequest();
+$query = new Google_Service_Datastore_Query();
+// - set the order
+$order = new Google_Service_Datastore_PropertyOrder();
+$order->setDirection('descending');
+$property = new Google_Service_Datastore_PropertyReference();
+$property->setName('title');
+$order->setProperty($property);
+$query->setOrder([$order]);
+// - set the kinds
+$kind = new Google_Service_Datastore_KindExpression();
+$kind->setName('Book');
+$query->setKinds([$kind]);
+// - set the limit
+$query->setLimit(10);
+
+// add the query to the request and make the request
+$request->setQuery($query);
+$response = $datastore->projects->runQuery('YOUR_DATASET_ID', $request);
+```
+
+The method used is a matter of preference, but *it will be very difficult to use this library without first understanding the JSON syntax for the API*, so it is recommended to look at the [APIs Explorer](https://developers.google.com/apis-explorer/#p/) before using any of the services here.
+
+### Making HTTP Requests Directly ###
+
+If Google Authentication is desired for external applications, or a Google API is not available yet in this library, HTTP requests can be made directly.
+
+The `authorize` method returns an authorized [Guzzle Client](http://docs.guzzlephp.org/), so any request made using the client will contain the corresponding authorization.
+
+```php
+// create the Google client
+$client = new Google_Client();
+
+/**
+ * Set your method for authentication. Depending on the API, This could be
+ * directly with an access token, API key, or (recommended) using
+ * Application Default Credentials.
+ */
+$client->useApplicationDefaultCredentials();
+$client->addScope(Google_Service_Plus::PLUS_ME);
+
+// returns a Guzzle HTTP Client
+$httpClient = $client->authorize();
+
+// make an HTTP request
+$response = $httpClient->get('https://www.googleapis.com/plus/v1/people/me');
+```
+
+### Caching ###
+
+It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible library to the client:
+
+```php
+$cache = new Stash\Pool(new Stash\Driver\FileSystem);
+$client->setCache($cache);
+```
+
+In this example we use [StashPHP](http://www.stashphp.com/). Add this to your project with composer:
+
+```
+composer require tedivm/stash
+```
+
+### Updating Tokens ###
+
+When using [Refresh Tokens](https://developers.google.com/identity/protocols/OAuth2InstalledApp#refresh) or [Service Account Credentials](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#overview), it may be useful to perform some action when a new access token is granted. To do this, pass a callable to the `setTokenCallback` method on the client:
+
+```php
+$logger = new Monolog\Logger;
+$tokenCallback = function ($cacheKey, $accessToken) use ($logger) {
+ $logger->debug(sprintf('new access token received at cache key %s', $cacheKey));
+};
+$client->setTokenCallback($tokenCallback);
+```
+
+### Debugging Your HTTP Request using Charles ###
+
+It is often very useful to debug your API calls by viewing the raw HTTP request. This library supports the use of [Charles Web Proxy](https://www.charlesproxy.com/documentation/getting-started/). Download and run Charles, and then capture all HTTP traffic through Charles with the following code:
+
+```php
+// FOR DEBUGGING ONLY
+$httpClient = new GuzzleHttp\Client([
+ 'proxy' => 'localhost:8888', // by default, Charles runs on localhost port 8888
+ 'verify' => false, // otherwise HTTPS requests will fail.
+]);
+
+$client = new Google_Client();
+$client->setHttpClient($httpClient);
+```
+
+Now all calls made by this library will appear in the Charles UI.
+
+One additional step is required in Charles to view SSL requests. Go to **Charles > Proxy > SSL Proxying Settings** and add the domain you'd like captured. In the case of the Google APIs, this is usually `*.googleapis.com`.
+
+### Service Specific Examples ###
+
+YouTube: https://github.com/youtube/api-samples/tree/master/php
+
+## How Do I Contribute? ##
+
+Please see the [contributing](CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the [contributor license agreement](https://developers.google.com/api-client-library/php/contribute).
+
+## Frequently Asked Questions ##
+
+### What do I do if something isn't working? ###
+
+For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: http://stackoverflow.com/questions/tagged/google-api-php-client
+
+If there is a specific bug with the library, please [file a issue](https://github.com/google/google-api-php-client/issues) in the Github issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address.
+
+### I want an example of X! ###
+
+If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs - our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above!
+
+### Why do you still support 5.2? ###
+
+When we started working on the 1.0.0 branch we knew there were several fundamental issues to fix with the 0.6 releases of the library. At that time we looked at the usage of the library, and other related projects, and determined that there was still a large and active base of PHP 5.2 installs. You can see this in statistics such as the PHP versions chart in the WordPress stats: http://wordpress.org/about/stats/. We will keep looking at the types of usage we see, and try to take advantage of newer PHP features where possible.
+
+### Why does Google_..._Service have weird names? ###
+
+The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes.
+
+### How do I deal with non-JSON response types? ###
+
+Some services return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an 'alt' argument to optional params that is normally the last argument to a method call:
+
+```
+$opt_params = array(
+ 'alt' => "json"
+);
+```
+
+### How do I set a field to null? ###
+
+The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialized properties. To work around this, set the field you want to null to `Google_Model::NULL_VALUE`. This is a placeholder that will be replaced with a true null when sent over the wire.
+
+## Code Quality ##
+
+Run the PHPUnit tests with PHPUnit. You can configure an API key and token in BaseTest.php to run all calls, but this will require some setup on the Google Developer Console.
+
+ phpunit tests/
+
+### Coding Style
+
+To check for coding style violations, run
+
+```
+vendor/bin/phpcs src --standard=style/ruleset.xml -np
+```
+
+To automatically fix (fixable) coding style violations, run
+
+```
+vendor/bin/phpcbf src --standard=style/ruleset.xml
+```
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/composer.json b/mayor-orig/www/include/share/googleapi/google/apiclient/composer.json
new file mode 100644
index 00000000..3f0619c1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/composer.json
@@ -0,0 +1,41 @@
+{
+ "name": "google/apiclient",
+ "type": "library",
+ "description": "Client library for Google APIs",
+ "keywords": ["google"],
+ "homepage": "http://developers.google.com/api-client-library/php",
+ "license": "Apache-2.0",
+ "require": {
+ "php": ">=5.4",
+ "google/auth": "^0.11",
+ "google/apiclient-services": "^0.11",
+ "firebase/php-jwt": "~2.0|~3.0|~4.0",
+ "monolog/monolog": "^1.17",
+ "phpseclib/phpseclib": "~0.3.10|~2.0",
+ "guzzlehttp/guzzle": "~5.2|~6.0",
+ "guzzlehttp/psr7": "^1.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4",
+ "squizlabs/php_codesniffer": "~2.3",
+ "symfony/dom-crawler": "~2.1",
+ "symfony/css-selector": "~2.1",
+ "cache/filesystem-adapter": "^0.3.2"
+ },
+ "suggest": {
+ "cache/filesystem-adapter": "For caching certs and tokens (using Google_Client::setCache)"
+ },
+ "autoload": {
+ "psr-0": {
+ "Google_": "src/"
+ },
+ "classmap": [
+ "src/Google/Service/"
+ ]
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.x-dev"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Revoke.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Revoke.php
new file mode 100644
index 00000000..29eb3fb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Revoke.php
@@ -0,0 +1,78 @@
+<?php
+
+/*
+ * Copyright 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+use GuzzleHttp\ClientInterface;
+use GuzzleHttp\Psr7;
+use GuzzleHttp\Psr7\Request;
+
+/**
+ * Wrapper around Google Access Tokens which provides convenience functions
+ *
+ */
+class Google_AccessToken_Revoke
+{
+ /**
+ * @var GuzzleHttp\ClientInterface The http client
+ */
+ private $http;
+
+ /**
+ * Instantiates the class, but does not initiate the login flow, leaving it
+ * to the discretion of the caller.
+ */
+ public function __construct(ClientInterface $http = null)
+ {
+ $this->http = $http;
+ }
+
+ /**
+ * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
+ * token, if a token isn't provided.
+ *
+ * @param string|array $token The token (access token or a refresh token) that should be revoked.
+ * @return boolean Returns True if the revocation was successful, otherwise False.
+ */
+ public function revokeToken($token)
+ {
+ if (is_array($token)) {
+ if (isset($token['refresh_token'])) {
+ $token = $token['refresh_token'];
+ } else {
+ $token = $token['access_token'];
+ }
+ }
+
+ $body = Psr7\stream_for(http_build_query(array('token' => $token)));
+ $request = new Request(
+ 'POST',
+ Google_Client::OAUTH2_REVOKE_URI,
+ [
+ 'Cache-Control' => 'no-store',
+ 'Content-Type' => 'application/x-www-form-urlencoded',
+ ],
+ $body
+ );
+
+ $httpHandler = HttpHandlerFactory::build($this->http);
+
+ $response = $httpHandler($request);
+
+ return $response->getStatusCode() == 200;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Verify.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Verify.php
new file mode 100644
index 00000000..748aa3df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AccessToken/Verify.php
@@ -0,0 +1,269 @@
+<?php
+
+/*
+ * Copyright 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use Firebase\JWT\ExpiredException as ExpiredExceptionV3;
+use GuzzleHttp\Client;
+use GuzzleHttp\ClientInterface;
+use Psr\Cache\CacheItemPoolInterface;
+use Google\Auth\Cache\MemoryCacheItemPool;
+use Stash\Driver\FileSystem;
+use Stash\Pool;
+
+/**
+ * Wrapper around Google Access Tokens which provides convenience functions
+ *
+ */
+class Google_AccessToken_Verify
+{
+ const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs';
+ const OAUTH2_ISSUER = 'accounts.google.com';
+ const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com';
+
+ /**
+ * @var GuzzleHttp\ClientInterface The http client
+ */
+ private $http;
+
+ /**
+ * @var Psr\Cache\CacheItemPoolInterface cache class
+ */
+ private $cache;
+
+ /**
+ * Instantiates the class, but does not initiate the login flow, leaving it
+ * to the discretion of the caller.
+ */
+ public function __construct(
+ ClientInterface $http = null,
+ CacheItemPoolInterface $cache = null,
+ $jwt = null
+ ) {
+ if (null === $http) {
+ $http = new Client();
+ }
+
+ if (null === $cache) {
+ $cache = new MemoryCacheItemPool;
+ }
+
+ $this->http = $http;
+ $this->cache = $cache;
+ $this->jwt = $jwt ?: $this->getJwtService();
+ }
+
+ /**
+ * Verifies an id token and returns the authenticated apiLoginTicket.
+ * Throws an exception if the id token is not valid.
+ * The audience parameter can be used to control which id tokens are
+ * accepted. By default, the id token must have been issued to this OAuth2 client.
+ *
+ * @param $audience
+ * @return array the token payload, if successful
+ */
+ public function verifyIdToken($idToken, $audience = null)
+ {
+ if (empty($idToken)) {
+ throw new LogicException('id_token cannot be null');
+ }
+
+ // set phpseclib constants if applicable
+ $this->setPhpsecConstants();
+
+ // Check signature
+ $certs = $this->getFederatedSignOnCerts();
+ foreach ($certs as $cert) {
+ $bigIntClass = $this->getBigIntClass();
+ $rsaClass = $this->getRsaClass();
+ $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256);
+ $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256);
+
+ $rsa = new $rsaClass();
+ $rsa->loadKey(array('n' => $modulus, 'e' => $exponent));
+
+ try {
+ $payload = $this->jwt->decode(
+ $idToken,
+ $rsa->getPublicKey(),
+ array('RS256')
+ );
+
+ if (property_exists($payload, 'aud')) {
+ if ($audience && $payload->aud != $audience) {
+ return false;
+ }
+ }
+
+ // support HTTP and HTTPS issuers
+ // @see https://developers.google.com/identity/sign-in/web/backend-auth
+ $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS);
+ if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) {
+ return false;
+ }
+
+ return (array) $payload;
+ } catch (ExpiredException $e) {
+ return false;
+ } catch (ExpiredExceptionV3 $e) {
+ return false;
+ } catch (DomainException $e) {
+ // continue
+ }
+ }
+
+ return false;
+ }
+
+ private function getCache()
+ {
+ return $this->cache;
+ }
+
+ /**
+ * Retrieve and cache a certificates file.
+ *
+ * @param $url string location
+ * @throws Google_Exception
+ * @return array certificates
+ */
+ private function retrieveCertsFromLocation($url)
+ {
+ // If we're retrieving a local file, just grab it.
+ if (0 !== strpos($url, 'http')) {
+ if (!$file = file_get_contents($url)) {
+ throw new Google_Exception(
+ "Failed to retrieve verification certificates: '" .
+ $url . "'."
+ );
+ }
+
+ return json_decode($file, true);
+ }
+
+ $response = $this->http->get($url);
+
+ if ($response->getStatusCode() == 200) {
+ return json_decode((string) $response->getBody(), true);
+ }
+ throw new Google_Exception(
+ sprintf(
+ 'Failed to retrieve verification certificates: "%s".',
+ $response->getBody()->getContents()
+ ),
+ $response->getStatusCode()
+ );
+ }
+
+ // Gets federated sign-on certificates to use for verifying identity tokens.
+ // Returns certs as array structure, where keys are key ids, and values
+ // are PEM encoded certificates.
+ private function getFederatedSignOnCerts()
+ {
+ $certs = null;
+ if ($cache = $this->getCache()) {
+ $cacheItem = $cache->getItem('federated_signon_certs_v3', 3600);
+ $certs = $cacheItem->get();
+ }
+
+
+ if (!$certs) {
+ $certs = $this->retrieveCertsFromLocation(
+ self::FEDERATED_SIGNON_CERT_URL
+ );
+
+ if ($cache) {
+ $cacheItem->set($certs);
+ $cache->save($cacheItem);
+ }
+ }
+
+ if (!isset($certs['keys'])) {
+ throw new InvalidArgumentException(
+ 'federated sign-on certs expects "keys" to be set'
+ );
+ }
+
+ return $certs['keys'];
+ }
+
+ private function getJwtService()
+ {
+ $jwtClass = 'JWT';
+ if (class_exists('\Firebase\JWT\JWT')) {
+ $jwtClass = 'Firebase\JWT\JWT';
+ }
+
+ if (property_exists($jwtClass, 'leeway')) {
+ // adds 1 second to JWT leeway
+ // @see https://github.com/google/google-api-php-client/issues/827
+ $jwtClass::$leeway = 1;
+ }
+
+ return new $jwtClass;
+ }
+
+ private function getRsaClass()
+ {
+ if (class_exists('phpseclib\Crypt\RSA')) {
+ return 'phpseclib\Crypt\RSA';
+ }
+
+ return 'Crypt_RSA';
+ }
+
+ private function getBigIntClass()
+ {
+ if (class_exists('phpseclib\Math\BigInteger')) {
+ return 'phpseclib\Math\BigInteger';
+ }
+
+ return 'Math_BigInteger';
+ }
+
+ private function getOpenSslConstant()
+ {
+ if (class_exists('phpseclib\Crypt\RSA')) {
+ return 'phpseclib\Crypt\RSA::MODE_OPENSSL';
+ }
+
+ if (class_exists('Crypt_RSA')) {
+ return 'CRYPT_RSA_MODE_OPENSSL';
+ }
+
+ throw new \Exception('Cannot find RSA class');
+ }
+
+ /**
+ * phpseclib calls "phpinfo" by default, which requires special
+ * whitelisting in the AppEngine VM environment. This function
+ * sets constants to bypass the need for phpseclib to check phpinfo
+ *
+ * @see phpseclib/Math/BigInteger
+ * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85
+ */
+ private function setPhpsecConstants()
+ {
+ if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) {
+ if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) {
+ define('MATH_BIGINTEGER_OPENSSL_ENABLED', true);
+ }
+ if (!defined('CRYPT_RSA_MODE')) {
+ define('CRYPT_RSA_MODE', constant($this->getOpenSslConstant()));
+ }
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php
new file mode 100644
index 00000000..f1a3229a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php
@@ -0,0 +1,42 @@
+<?php
+/**
+ * Copyright 2015 Google Inc. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use GuzzleHttp\Client;
+use GuzzleHttp\ClientInterface;
+
+class Google_AuthHandler_AuthHandlerFactory
+{
+ /**
+ * Builds out a default http handler for the installed version of guzzle.
+ *
+ * @return Google_AuthHandler_Guzzle5AuthHandler|Google_AuthHandler_Guzzle6AuthHandler
+ * @throws Exception
+ */
+ public static function build($cache = null, array $cacheConfig = [])
+ {
+ $version = ClientInterface::VERSION;
+
+ switch ($version[0]) {
+ case '5':
+ return new Google_AuthHandler_Guzzle5AuthHandler($cache, $cacheConfig);
+ case '6':
+ return new Google_AuthHandler_Guzzle6AuthHandler($cache, $cacheConfig);
+ default:
+ throw new Exception('Version not supported');
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php
new file mode 100644
index 00000000..4e4a8d68
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php
@@ -0,0 +1,99 @@
+<?php
+
+use Google\Auth\CredentialsLoader;
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+use Google\Auth\FetchAuthTokenCache;
+use Google\Auth\Subscriber\AuthTokenSubscriber;
+use Google\Auth\Subscriber\ScopedAccessTokenSubscriber;
+use Google\Auth\Subscriber\SimpleSubscriber;
+use GuzzleHttp\Client;
+use GuzzleHttp\ClientInterface;
+use Psr\Cache\CacheItemPoolInterface;
+
+/**
+*
+*/
+class Google_AuthHandler_Guzzle5AuthHandler
+{
+ protected $cache;
+ protected $cacheConfig;
+
+ public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = [])
+ {
+ $this->cache = $cache;
+ $this->cacheConfig = $cacheConfig;
+ }
+
+ public function attachCredentials(
+ ClientInterface $http,
+ CredentialsLoader $credentials,
+ callable $tokenCallback = null
+ ) {
+ // use the provided cache
+ if ($this->cache) {
+ $credentials = new FetchAuthTokenCache(
+ $credentials,
+ $this->cacheConfig,
+ $this->cache
+ );
+ }
+ // if we end up needing to make an HTTP request to retrieve credentials, we
+ // can use our existing one, but we need to throw exceptions so the error
+ // bubbles up.
+ $authHttp = $this->createAuthHttp($http);
+ $authHttpHandler = HttpHandlerFactory::build($authHttp);
+ $subscriber = new AuthTokenSubscriber(
+ $credentials,
+ $authHttpHandler,
+ $tokenCallback
+ );
+
+ $http->setDefaultOption('auth', 'google_auth');
+ $http->getEmitter()->attach($subscriber);
+
+ return $http;
+ }
+
+ public function attachToken(ClientInterface $http, array $token, array $scopes)
+ {
+ $tokenFunc = function ($scopes) use ($token) {
+ return $token['access_token'];
+ };
+
+ $subscriber = new ScopedAccessTokenSubscriber(
+ $tokenFunc,
+ $scopes,
+ $this->cacheConfig,
+ $this->cache
+ );
+
+ $http->setDefaultOption('auth', 'scoped');
+ $http->getEmitter()->attach($subscriber);
+
+ return $http;
+ }
+
+ public function attachKey(ClientInterface $http, $key)
+ {
+ $subscriber = new SimpleSubscriber(['key' => $key]);
+
+ $http->setDefaultOption('auth', 'simple');
+ $http->getEmitter()->attach($subscriber);
+
+ return $http;
+ }
+
+ private function createAuthHttp(ClientInterface $http)
+ {
+ return new Client(
+ [
+ 'base_url' => $http->getBaseUrl(),
+ 'defaults' => [
+ 'exceptions' => true,
+ 'verify' => $http->getDefaultOption('verify'),
+ 'proxy' => $http->getDefaultOption('proxy'),
+ ]
+ ]
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php
new file mode 100644
index 00000000..fcdfb3b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php
@@ -0,0 +1,106 @@
+<?php
+
+use Google\Auth\CredentialsLoader;
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+use Google\Auth\FetchAuthTokenCache;
+use Google\Auth\Middleware\AuthTokenMiddleware;
+use Google\Auth\Middleware\ScopedAccessTokenMiddleware;
+use Google\Auth\Middleware\SimpleMiddleware;
+use GuzzleHttp\Client;
+use GuzzleHttp\ClientInterface;
+use Psr\Cache\CacheItemPoolInterface;
+
+/**
+*
+*/
+class Google_AuthHandler_Guzzle6AuthHandler
+{
+ protected $cache;
+ protected $cacheConfig;
+
+ public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = [])
+ {
+ $this->cache = $cache;
+ $this->cacheConfig = $cacheConfig;
+ }
+
+ public function attachCredentials(
+ ClientInterface $http,
+ CredentialsLoader $credentials,
+ callable $tokenCallback = null
+ ) {
+ // use the provided cache
+ if ($this->cache) {
+ $credentials = new FetchAuthTokenCache(
+ $credentials,
+ $this->cacheConfig,
+ $this->cache
+ );
+ }
+ // if we end up needing to make an HTTP request to retrieve credentials, we
+ // can use our existing one, but we need to throw exceptions so the error
+ // bubbles up.
+ $authHttp = $this->createAuthHttp($http);
+ $authHttpHandler = HttpHandlerFactory::build($authHttp);
+ $middleware = new AuthTokenMiddleware(
+ $credentials,
+ $authHttpHandler,
+ $tokenCallback
+ );
+
+ $config = $http->getConfig();
+ $config['handler']->remove('google_auth');
+ $config['handler']->push($middleware, 'google_auth');
+ $config['auth'] = 'google_auth';
+ $http = new Client($config);
+
+ return $http;
+ }
+
+ public function attachToken(ClientInterface $http, array $token, array $scopes)
+ {
+ $tokenFunc = function ($scopes) use ($token) {
+ return $token['access_token'];
+ };
+
+ $middleware = new ScopedAccessTokenMiddleware(
+ $tokenFunc,
+ $scopes,
+ $this->cacheConfig,
+ $this->cache
+ );
+
+ $config = $http->getConfig();
+ $config['handler']->remove('google_auth');
+ $config['handler']->push($middleware, 'google_auth');
+ $config['auth'] = 'scoped';
+ $http = new Client($config);
+
+ return $http;
+ }
+
+ public function attachKey(ClientInterface $http, $key)
+ {
+ $middleware = new SimpleMiddleware(['key' => $key]);
+
+ $config = $http->getConfig();
+ $config['handler']->remove('google_auth');
+ $config['handler']->push($middleware, 'google_auth');
+ $config['auth'] = 'simple';
+ $http = new Client($config);
+
+ return $http;
+ }
+
+ private function createAuthHttp(ClientInterface $http)
+ {
+ return new Client(
+ [
+ 'base_uri' => $http->getConfig('base_uri'),
+ 'exceptions' => true,
+ 'verify' => $http->getConfig('verify'),
+ 'proxy' => $http->getConfig('proxy'),
+ ]
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Client.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Client.php
new file mode 100644
index 00000000..2fb29578
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Client.php
@@ -0,0 +1,1118 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use Google\Auth\ApplicationDefaultCredentials;
+use Google\Auth\Cache\MemoryCacheItemPool;
+use Google\Auth\CredentialsLoader;
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+use Google\Auth\OAuth2;
+use Google\Auth\Credentials\ServiceAccountCredentials;
+use Google\Auth\Credentials\UserRefreshCredentials;
+use GuzzleHttp\Client;
+use GuzzleHttp\ClientInterface;
+use GuzzleHttp\Ring\Client\StreamHandler;
+use GuzzleHttp\Psr7;
+use Psr\Cache\CacheItemPoolInterface;
+use Psr\Http\Message\RequestInterface;
+use Psr\Log\LoggerInterface;
+use Monolog\Logger;
+use Monolog\Handler\StreamHandler as MonologStreamHandler;
+use Monolog\Handler\SyslogHandler as MonologSyslogHandler;
+
+/**
+ * The Google API Client
+ * https://github.com/google/google-api-php-client
+ */
+class Google_Client
+{
+ const LIBVER = "2.1.2";
+ const USER_AGENT_SUFFIX = "google-api-php-client/";
+ const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
+ const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token';
+ const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth';
+ const API_BASE_PATH = 'https://www.googleapis.com';
+
+ /**
+ * @var Google\Auth\OAuth2 $auth
+ */
+ private $auth;
+
+ /**
+ * @var GuzzleHttp\ClientInterface $http
+ */
+ private $http;
+
+ /**
+ * @var Psr\Cache\CacheItemPoolInterface $cache
+ */
+ private $cache;
+
+ /**
+ * @var array access token
+ */
+ private $token;
+
+ /**
+ * @var array $config
+ */
+ private $config;
+
+ /**
+ * @var Google_Logger_Abstract $logger
+ */
+ private $logger;
+
+ /**
+ * @var boolean $deferExecution
+ */
+ private $deferExecution = false;
+
+ /** @var array $scopes */
+ // Scopes requested by the client
+ protected $requestedScopes = [];
+
+ /**
+ * Construct the Google Client.
+ *
+ * @param array $config
+ */
+ public function __construct(array $config = array())
+ {
+ $this->config = array_merge(
+ [
+ 'application_name' => '',
+
+ // Don't change these unless you're working against a special development
+ // or testing environment.
+ 'base_path' => self::API_BASE_PATH,
+
+ // https://developers.google.com/console
+ 'client_id' => '',
+ 'client_secret' => '',
+ 'redirect_uri' => null,
+ 'state' => null,
+
+ // Simple API access key, also from the API console. Ensure you get
+ // a Server key, and not a Browser key.
+ 'developer_key' => '',
+
+ // For use with Google Cloud Platform
+ // fetch the ApplicationDefaultCredentials, if applicable
+ // @see https://developers.google.com/identity/protocols/application-default-credentials
+ 'use_application_default_credentials' => false,
+ 'signing_key' => null,
+ 'signing_algorithm' => null,
+ 'subject' => null,
+
+ // Other OAuth2 parameters.
+ 'hd' => '',
+ 'prompt' => '',
+ 'openid.realm' => '',
+ 'include_granted_scopes' => null,
+ 'login_hint' => '',
+ 'request_visible_actions' => '',
+ 'access_type' => 'online',
+ 'approval_prompt' => 'auto',
+
+ // Task Runner retry configuration
+ // @see Google_Task_Runner
+ 'retry' => array(),
+
+ // cache config for downstream auth caching
+ 'cache_config' => [],
+
+ // function to be called when an access token is fetched
+ // follows the signature function ($cacheKey, $accessToken)
+ 'token_callback' => null,
+
+ // Service class used in Google_Client::verifyIdToken.
+ // Explicitly pass this in to avoid setting JWT::$leeway
+ 'jwt' => null,
+ ],
+ $config
+ );
+ }
+
+ /**
+ * Get a string containing the version of the library.
+ *
+ * @return string
+ */
+ public function getLibraryVersion()
+ {
+ return self::LIBVER;
+ }
+
+ /**
+ * For backwards compatibility
+ * alias for fetchAccessTokenWithAuthCode
+ *
+ * @param $code string code from accounts.google.com
+ * @return array access token
+ * @deprecated
+ */
+ public function authenticate($code)
+ {
+ return $this->fetchAccessTokenWithAuthCode($code);
+ }
+
+ /**
+ * Attempt to exchange a code for an valid authentication token.
+ * Helper wrapped around the OAuth 2.0 implementation.
+ *
+ * @param $code string code from accounts.google.com
+ * @return array access token
+ */
+ public function fetchAccessTokenWithAuthCode($code)
+ {
+ if (strlen($code) == 0) {
+ throw new InvalidArgumentException("Invalid code");
+ }
+
+ $auth = $this->getOAuth2Service();
+ $auth->setCode($code);
+ $auth->setRedirectUri($this->getRedirectUri());
+
+ $httpHandler = HttpHandlerFactory::build($this->getHttpClient());
+ $creds = $auth->fetchAuthToken($httpHandler);
+ if ($creds && isset($creds['access_token'])) {
+ $creds['created'] = time();
+ $this->setAccessToken($creds);
+ }
+
+ return $creds;
+ }
+
+ /**
+ * For backwards compatibility
+ * alias for fetchAccessTokenWithAssertion
+ *
+ * @return array access token
+ * @deprecated
+ */
+ public function refreshTokenWithAssertion()
+ {
+ return $this->fetchAccessTokenWithAssertion();
+ }
+
+ /**
+ * Fetches a fresh access token with a given assertion token.
+ * @param $assertionCredentials optional.
+ * @return array access token
+ */
+ public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null)
+ {
+ if (!$this->isUsingApplicationDefaultCredentials()) {
+ throw new DomainException(
+ 'set the JSON service account credentials using'
+ . ' Google_Client::setAuthConfig or set the path to your JSON file'
+ . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable'
+ . ' and call Google_Client::useApplicationDefaultCredentials to'
+ . ' refresh a token with assertion.'
+ );
+ }
+
+ $this->getLogger()->log(
+ 'info',
+ 'OAuth2 access token refresh with Signed JWT assertion grants.'
+ );
+
+ $credentials = $this->createApplicationDefaultCredentials();
+
+ $httpHandler = HttpHandlerFactory::build($authHttp);
+ $creds = $credentials->fetchAuthToken($httpHandler);
+ if ($creds && isset($creds['access_token'])) {
+ $creds['created'] = time();
+ $this->setAccessToken($creds);
+ }
+
+ return $creds;
+ }
+
+ /**
+ * For backwards compatibility
+ * alias for fetchAccessTokenWithRefreshToken
+ *
+ * @param string $refreshToken
+ * @return array access token
+ */
+ public function refreshToken($refreshToken)
+ {
+ return $this->fetchAccessTokenWithRefreshToken($refreshToken);
+ }
+
+ /**
+ * Fetches a fresh OAuth 2.0 access token with the given refresh token.
+ * @param string $refreshToken
+ * @return array access token
+ */
+ public function fetchAccessTokenWithRefreshToken($refreshToken = null)
+ {
+ if (null === $refreshToken) {
+ if (!isset($this->token['refresh_token'])) {
+ throw new LogicException(
+ 'refresh token must be passed in or set as part of setAccessToken'
+ );
+ }
+ $refreshToken = $this->token['refresh_token'];
+ }
+ $this->getLogger()->info('OAuth2 access token refresh');
+ $auth = $this->getOAuth2Service();
+ $auth->setRefreshToken($refreshToken);
+
+ $httpHandler = HttpHandlerFactory::build($this->getHttpClient());
+ $creds = $auth->fetchAuthToken($httpHandler);
+ if ($creds && isset($creds['access_token'])) {
+ $creds['created'] = time();
+ if (!isset($creds['refresh_token'])) {
+ $creds['refresh_token'] = $refreshToken;
+ }
+ $this->setAccessToken($creds);
+ }
+
+ return $creds;
+ }
+
+ /**
+ * Create a URL to obtain user authorization.
+ * The authorization endpoint allows the user to first
+ * authenticate, and then grant/deny the access request.
+ * @param string|array $scope The scope is expressed as an array or list of space-delimited strings.
+ * @return string
+ */
+ public function createAuthUrl($scope = null)
+ {
+ if (empty($scope)) {
+ $scope = $this->prepareScopes();
+ }
+ if (is_array($scope)) {
+ $scope = implode(' ', $scope);
+ }
+
+ // only accept one of prompt or approval_prompt
+ $approvalPrompt = $this->config['prompt']
+ ? null
+ : $this->config['approval_prompt'];
+
+ // include_granted_scopes should be string "true", string "false", or null
+ $includeGrantedScopes = $this->config['include_granted_scopes'] === null
+ ? null
+ : var_export($this->config['include_granted_scopes'], true);
+
+ $params = array_filter(
+ [
+ 'access_type' => $this->config['access_type'],
+ 'approval_prompt' => $approvalPrompt,
+ 'hd' => $this->config['hd'],
+ 'include_granted_scopes' => $includeGrantedScopes,
+ 'login_hint' => $this->config['login_hint'],
+ 'openid.realm' => $this->config['openid.realm'],
+ 'prompt' => $this->config['prompt'],
+ 'response_type' => 'code',
+ 'scope' => $scope,
+ 'state' => $this->config['state'],
+ ]
+ );
+
+ // If the list of scopes contains plus.login, add request_visible_actions
+ // to auth URL.
+ $rva = $this->config['request_visible_actions'];
+ if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) {
+ $params['request_visible_actions'] = $rva;
+ }
+
+ $auth = $this->getOAuth2Service();
+
+ return (string) $auth->buildFullAuthorizationUri($params);
+ }
+
+ /**
+ * Adds auth listeners to the HTTP client based on the credentials
+ * set in the Google API Client object
+ *
+ * @param GuzzleHttp\ClientInterface $http the http client object.
+ * @return GuzzleHttp\ClientInterface the http client object
+ */
+ public function authorize(ClientInterface $http = null)
+ {
+ $credentials = null;
+ $token = null;
+ $scopes = null;
+ if (null === $http) {
+ $http = $this->getHttpClient();
+ }
+
+ // These conditionals represent the decision tree for authentication
+ // 1. Check for Application Default Credentials
+ // 2. Check for API Key
+ // 3a. Check for an Access Token
+ // 3b. If access token exists but is expired, try to refresh it
+ if ($this->isUsingApplicationDefaultCredentials()) {
+ $credentials = $this->createApplicationDefaultCredentials();
+ } elseif ($token = $this->getAccessToken()) {
+ $scopes = $this->prepareScopes();
+ // add refresh subscriber to request a new token
+ if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) {
+ $credentials = $this->createUserRefreshCredentials(
+ $scopes,
+ $token['refresh_token']
+ );
+ }
+ }
+
+ $authHandler = $this->getAuthHandler();
+
+ if ($credentials) {
+ $callback = $this->config['token_callback'];
+ $http = $authHandler->attachCredentials($http, $credentials, $callback);
+ } elseif ($token) {
+ $http = $authHandler->attachToken($http, $token, (array) $scopes);
+ } elseif ($key = $this->config['developer_key']) {
+ $http = $authHandler->attachKey($http, $key);
+ }
+
+ return $http;
+ }
+
+ /**
+ * Set the configuration to use application default credentials for
+ * authentication
+ *
+ * @see https://developers.google.com/identity/protocols/application-default-credentials
+ * @param boolean $useAppCreds
+ */
+ public function useApplicationDefaultCredentials($useAppCreds = true)
+ {
+ $this->config['use_application_default_credentials'] = $useAppCreds;
+ }
+
+ /**
+ * To prevent useApplicationDefaultCredentials from inappropriately being
+ * called in a conditional
+ *
+ * @see https://developers.google.com/identity/protocols/application-default-credentials
+ */
+ public function isUsingApplicationDefaultCredentials()
+ {
+ return $this->config['use_application_default_credentials'];
+ }
+
+ /**
+ * @param string|array $token
+ * @throws InvalidArgumentException
+ */
+ public function setAccessToken($token)
+ {
+ if (is_string($token)) {
+ if ($json = json_decode($token, true)) {
+ $token = $json;
+ } else {
+ // assume $token is just the token string
+ $token = array(
+ 'access_token' => $token,
+ );
+ }
+ }
+ if ($token == null) {
+ throw new InvalidArgumentException('invalid json token');
+ }
+ if (!isset($token['access_token'])) {
+ throw new InvalidArgumentException("Invalid token format");
+ }
+ $this->token = $token;
+ }
+
+ public function getAccessToken()
+ {
+ return $this->token;
+ }
+
+ public function getRefreshToken()
+ {
+ if (isset($this->token['refresh_token'])) {
+ return $this->token['refresh_token'];
+ }
+ }
+
+ /**
+ * Returns if the access_token is expired.
+ * @return bool Returns True if the access_token is expired.
+ */
+ public function isAccessTokenExpired()
+ {
+ if (!$this->token) {
+ return true;
+ }
+
+ $created = 0;
+ if (isset($this->token['created'])) {
+ $created = $this->token['created'];
+ } elseif (isset($this->token['id_token'])) {
+ // check the ID token for "iat"
+ // signature verification is not required here, as we are just
+ // using this for convenience to save a round trip request
+ // to the Google API server
+ $idToken = $this->token['id_token'];
+ if (substr_count($idToken, '.') == 2) {
+ $parts = explode('.', $idToken);
+ $payload = json_decode(base64_decode($parts[1]), true);
+ if ($payload && isset($payload['iat'])) {
+ $created = $payload['iat'];
+ }
+ }
+ }
+
+ // If the token is set to expire in the next 30 seconds.
+ return ($created + ($this->token['expires_in'] - 30)) < time();
+ }
+
+ public function getAuth()
+ {
+ throw new BadMethodCallException(
+ 'This function no longer exists. See UPGRADING.md for more information'
+ );
+ }
+
+ public function setAuth($auth)
+ {
+ throw new BadMethodCallException(
+ 'This function no longer exists. See UPGRADING.md for more information'
+ );
+ }
+
+ /**
+ * Set the OAuth 2.0 Client ID.
+ * @param string $clientId
+ */
+ public function setClientId($clientId)
+ {
+ $this->config['client_id'] = $clientId;
+ }
+
+ public function getClientId()
+ {
+ return $this->config['client_id'];
+ }
+
+ /**
+ * Set the OAuth 2.0 Client Secret.
+ * @param string $clientSecret
+ */
+ public function setClientSecret($clientSecret)
+ {
+ $this->config['client_secret'] = $clientSecret;
+ }
+
+ public function getClientSecret()
+ {
+ return $this->config['client_secret'];
+ }
+
+ /**
+ * Set the OAuth 2.0 Redirect URI.
+ * @param string $redirectUri
+ */
+ public function setRedirectUri($redirectUri)
+ {
+ $this->config['redirect_uri'] = $redirectUri;
+ }
+
+ public function getRedirectUri()
+ {
+ return $this->config['redirect_uri'];
+ }
+
+ /**
+ * Set OAuth 2.0 "state" parameter to achieve per-request customization.
+ * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2
+ * @param string $state
+ */
+ public function setState($state)
+ {
+ $this->config['state'] = $state;
+ }
+
+ /**
+ * @param string $accessType Possible values for access_type include:
+ * {@code "offline"} to request offline access from the user.
+ * {@code "online"} to request online access from the user.
+ */
+ public function setAccessType($accessType)
+ {
+ $this->config['access_type'] = $accessType;
+ }
+
+ /**
+ * @param string $approvalPrompt Possible values for approval_prompt include:
+ * {@code "force"} to force the approval UI to appear.
+ * {@code "auto"} to request auto-approval when possible. (This is the default value)
+ */
+ public function setApprovalPrompt($approvalPrompt)
+ {
+ $this->config['approval_prompt'] = $approvalPrompt;
+ }
+
+ /**
+ * Set the login hint, email address or sub id.
+ * @param string $loginHint
+ */
+ public function setLoginHint($loginHint)
+ {
+ $this->config['login_hint'] = $loginHint;
+ }
+
+ /**
+ * Set the application name, this is included in the User-Agent HTTP header.
+ * @param string $applicationName
+ */
+ public function setApplicationName($applicationName)
+ {
+ $this->config['application_name'] = $applicationName;
+ }
+
+ /**
+ * If 'plus.login' is included in the list of requested scopes, you can use
+ * this method to define types of app activities that your app will write.
+ * You can find a list of available types here:
+ * @link https://developers.google.com/+/api/moment-types
+ *
+ * @param array $requestVisibleActions Array of app activity types
+ */
+ public function setRequestVisibleActions($requestVisibleActions)
+ {
+ if (is_array($requestVisibleActions)) {
+ $requestVisibleActions = implode(" ", $requestVisibleActions);
+ }
+ $this->config['request_visible_actions'] = $requestVisibleActions;
+ }
+
+ /**
+ * Set the developer key to use, these are obtained through the API Console.
+ * @see http://code.google.com/apis/console-help/#generatingdevkeys
+ * @param string $developerKey
+ */
+ public function setDeveloperKey($developerKey)
+ {
+ $this->config['developer_key'] = $developerKey;
+ }
+
+ /**
+ * Set the hd (hosted domain) parameter streamlines the login process for
+ * Google Apps hosted accounts. By including the domain of the user, you
+ * restrict sign-in to accounts at that domain.
+ * @param $hd string - the domain to use.
+ */
+ public function setHostedDomain($hd)
+ {
+ $this->config['hd'] = $hd;
+ }
+
+ /**
+ * Set the prompt hint. Valid values are none, consent and select_account.
+ * If no value is specified and the user has not previously authorized
+ * access, then the user is shown a consent screen.
+ * @param $prompt string
+ */
+ public function setPrompt($prompt)
+ {
+ $this->config['prompt'] = $prompt;
+ }
+
+ /**
+ * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth
+ * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which
+ * an authentication request is valid.
+ * @param $realm string - the URL-space to use.
+ */
+ public function setOpenidRealm($realm)
+ {
+ $this->config['openid.realm'] = $realm;
+ }
+
+ /**
+ * If this is provided with the value true, and the authorization request is
+ * granted, the authorization will include any previous authorizations
+ * granted to this user/application combination for other scopes.
+ * @param $include boolean - the URL-space to use.
+ */
+ public function setIncludeGrantedScopes($include)
+ {
+ $this->config['include_granted_scopes'] = $include;
+ }
+
+ /**
+ * sets function to be called when an access token is fetched
+ * @param callable $tokenCallback - function ($cacheKey, $accessToken)
+ */
+ public function setTokenCallback(callable $tokenCallback)
+ {
+ $this->config['token_callback'] = $tokenCallback;
+ }
+
+ /**
+ * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
+ * token, if a token isn't provided.
+ *
+ * @param string|null $token The token (access token or a refresh token) that should be revoked.
+ * @return boolean Returns True if the revocation was successful, otherwise False.
+ */
+ public function revokeToken($token = null)
+ {
+ $tokenRevoker = new Google_AccessToken_Revoke(
+ $this->getHttpClient()
+ );
+
+ return $tokenRevoker->revokeToken($token ?: $this->getAccessToken());
+ }
+
+ /**
+ * Verify an id_token. This method will verify the current id_token, if one
+ * isn't provided.
+ *
+ * @throws LogicException
+ * @param string|null $idToken The token (id_token) that should be verified.
+ * @return array|false Returns the token payload as an array if the verification was
+ * successful, false otherwise.
+ */
+ public function verifyIdToken($idToken = null)
+ {
+ $tokenVerifier = new Google_AccessToken_Verify(
+ $this->getHttpClient(),
+ $this->getCache(),
+ $this->config['jwt']
+ );
+
+ if (null === $idToken) {
+ $token = $this->getAccessToken();
+ if (!isset($token['id_token'])) {
+ throw new LogicException(
+ 'id_token must be passed in or set as part of setAccessToken'
+ );
+ }
+ $idToken = $token['id_token'];
+ }
+
+ return $tokenVerifier->verifyIdToken(
+ $idToken,
+ $this->getClientId()
+ );
+ }
+
+ /**
+ * Set the scopes to be requested. Must be called before createAuthUrl().
+ * Will remove any previously configured scopes.
+ * @param array $scopes, ie: array('https://www.googleapis.com/auth/plus.login',
+ * 'https://www.googleapis.com/auth/moderator')
+ */
+ public function setScopes($scopes)
+ {
+ $this->requestedScopes = array();
+ $this->addScope($scopes);
+ }
+
+ /**
+ * This functions adds a scope to be requested as part of the OAuth2.0 flow.
+ * Will append any scopes not previously requested to the scope parameter.
+ * A single string will be treated as a scope to request. An array of strings
+ * will each be appended.
+ * @param $scope_or_scopes string|array e.g. "profile"
+ */
+ public function addScope($scope_or_scopes)
+ {
+ if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) {
+ $this->requestedScopes[] = $scope_or_scopes;
+ } else if (is_array($scope_or_scopes)) {
+ foreach ($scope_or_scopes as $scope) {
+ $this->addScope($scope);
+ }
+ }
+ }
+
+ /**
+ * Returns the list of scopes requested by the client
+ * @return array the list of scopes
+ *
+ */
+ public function getScopes()
+ {
+ return $this->requestedScopes;
+ }
+
+ /**
+ * @return array
+ * @visible For Testing
+ */
+ public function prepareScopes()
+ {
+ if (empty($this->requestedScopes)) {
+ return null;
+ }
+
+ return implode(' ', $this->requestedScopes);
+ }
+
+ /**
+ * Helper method to execute deferred HTTP requests.
+ *
+ * @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch
+ * @throws Google_Exception
+ * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface.
+ */
+ public function execute(RequestInterface $request, $expectedClass = null)
+ {
+ $request = $request->withHeader(
+ 'User-Agent',
+ $this->config['application_name']
+ . " " . self::USER_AGENT_SUFFIX
+ . $this->getLibraryVersion()
+ );
+
+ // call the authorize method
+ // this is where most of the grunt work is done
+ $http = $this->authorize();
+
+ return Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry']);
+ }
+
+ /**
+ * Declare whether batch calls should be used. This may increase throughput
+ * by making multiple requests in one connection.
+ *
+ * @param boolean $useBatch True if the batch support should
+ * be enabled. Defaults to False.
+ */
+ public function setUseBatch($useBatch)
+ {
+ // This is actually an alias for setDefer.
+ $this->setDefer($useBatch);
+ }
+
+ /**
+ * Are we running in Google AppEngine?
+ * return bool
+ */
+ public function isAppEngine()
+ {
+ return (isset($_SERVER['SERVER_SOFTWARE']) &&
+ strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false);
+ }
+
+ public function setConfig($name, $value)
+ {
+ $this->config[$name] = $value;
+ }
+
+ public function getConfig($name, $default = null)
+ {
+ return isset($this->config[$name]) ? $this->config[$name] : $default;
+ }
+
+ /**
+ * For backwards compatibility
+ * alias for setAuthConfig
+ *
+ * @param string $file the configuration file
+ * @throws Google_Exception
+ * @deprecated
+ */
+ public function setAuthConfigFile($file)
+ {
+ $this->setAuthConfig($file);
+ }
+
+ /**
+ * Set the auth config from new or deprecated JSON config.
+ * This structure should match the file downloaded from
+ * the "Download JSON" button on in the Google Developer
+ * Console.
+ * @param string|array $config the configuration json
+ * @throws Google_Exception
+ */
+ public function setAuthConfig($config)
+ {
+ if (is_string($config)) {
+ if (!file_exists($config)) {
+ throw new InvalidArgumentException('file does not exist');
+ }
+
+ $json = file_get_contents($config);
+
+ if (!$config = json_decode($json, true)) {
+ throw new LogicException('invalid json for auth config');
+ }
+ }
+
+ $key = isset($config['installed']) ? 'installed' : 'web';
+ if (isset($config['type']) && $config['type'] == 'service_account') {
+ // application default credentials
+ $this->useApplicationDefaultCredentials();
+
+ // set the information from the config
+ $this->setClientId($config['client_id']);
+ $this->config['client_email'] = $config['client_email'];
+ $this->config['signing_key'] = $config['private_key'];
+ $this->config['signing_algorithm'] = 'HS256';
+ } elseif (isset($config[$key])) {
+ // old-style
+ $this->setClientId($config[$key]['client_id']);
+ $this->setClientSecret($config[$key]['client_secret']);
+ if (isset($config[$key]['redirect_uris'])) {
+ $this->setRedirectUri($config[$key]['redirect_uris'][0]);
+ }
+ } else {
+ // new-style
+ $this->setClientId($config['client_id']);
+ $this->setClientSecret($config['client_secret']);
+ if (isset($config['redirect_uris'])) {
+ $this->setRedirectUri($config['redirect_uris'][0]);
+ }
+ }
+ }
+
+ /**
+ * Use when the service account has been delegated domain wide access.
+ *
+ * @param string subject an email address account to impersonate
+ */
+ public function setSubject($subject)
+ {
+ $this->config['subject'] = $subject;
+ }
+
+ /**
+ * Declare whether making API calls should make the call immediately, or
+ * return a request which can be called with ->execute();
+ *
+ * @param boolean $defer True if calls should not be executed right away.
+ */
+ public function setDefer($defer)
+ {
+ $this->deferExecution = $defer;
+ }
+
+ /**
+ * Whether or not to return raw requests
+ * @return boolean
+ */
+ public function shouldDefer()
+ {
+ return $this->deferExecution;
+ }
+
+ /**
+ * @return Google\Auth\OAuth2 implementation
+ */
+ public function getOAuth2Service()
+ {
+ if (!isset($this->auth)) {
+ $this->auth = $this->createOAuth2Service();
+ }
+
+ return $this->auth;
+ }
+
+ /**
+ * create a default google auth object
+ */
+ protected function createOAuth2Service()
+ {
+ $auth = new OAuth2(
+ [
+ 'clientId' => $this->getClientId(),
+ 'clientSecret' => $this->getClientSecret(),
+ 'authorizationUri' => self::OAUTH2_AUTH_URL,
+ 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI,
+ 'redirectUri' => $this->getRedirectUri(),
+ 'issuer' => $this->config['client_id'],
+ 'signingKey' => $this->config['signing_key'],
+ 'signingAlgorithm' => $this->config['signing_algorithm'],
+ ]
+ );
+
+ return $auth;
+ }
+
+ /**
+ * Set the Cache object
+ * @param Psr\Cache\CacheItemPoolInterface $cache
+ */
+ public function setCache(CacheItemPoolInterface $cache)
+ {
+ $this->cache = $cache;
+ }
+
+ /**
+ * @return Psr\Cache\CacheItemPoolInterface Cache implementation
+ */
+ public function getCache()
+ {
+ if (!$this->cache) {
+ $this->cache = $this->createDefaultCache();
+ }
+
+ return $this->cache;
+ }
+
+ /**
+ * @return Google\Auth\CacheInterface Cache implementation
+ */
+ public function setCacheConfig(array $cacheConfig)
+ {
+ $this->config['cache_config'] = $cacheConfig;
+ }
+
+ /**
+ * Set the Logger object
+ * @param Psr\Log\LoggerInterface $logger
+ */
+ public function setLogger(LoggerInterface $logger)
+ {
+ $this->logger = $logger;
+ }
+
+ /**
+ * @return Psr\Log\LoggerInterface implementation
+ */
+ public function getLogger()
+ {
+ if (!isset($this->logger)) {
+ $this->logger = $this->createDefaultLogger();
+ }
+
+ return $this->logger;
+ }
+
+ protected function createDefaultLogger()
+ {
+ $logger = new Logger('google-api-php-client');
+ if ($this->isAppEngine()) {
+ $handler = new MonologSyslogHandler('app', LOG_USER, Logger::NOTICE);
+ } else {
+ $handler = new MonologStreamHandler('php://stderr', Logger::NOTICE);
+ }
+ $logger->pushHandler($handler);
+
+ return $logger;
+ }
+
+ protected function createDefaultCache()
+ {
+ return new MemoryCacheItemPool;
+ }
+
+ /**
+ * Set the Http Client object
+ * @param GuzzleHttp\ClientInterface $http
+ */
+ public function setHttpClient(ClientInterface $http)
+ {
+ $this->http = $http;
+ }
+
+ /**
+ * @return GuzzleHttp\ClientInterface implementation
+ */
+ public function getHttpClient()
+ {
+ if (null === $this->http) {
+ $this->http = $this->createDefaultHttpClient();
+ }
+
+ return $this->http;
+ }
+
+ protected function createDefaultHttpClient()
+ {
+ $options = ['exceptions' => false];
+
+ $version = ClientInterface::VERSION;
+ if ('5' === $version[0]) {
+ $options = [
+ 'base_url' => $this->config['base_path'],
+ 'defaults' => $options,
+ ];
+ if ($this->isAppEngine()) {
+ // set StreamHandler on AppEngine by default
+ $options['handler'] = new StreamHandler();
+ $options['defaults']['verify'] = '/etc/ca-certificates.crt';
+ }
+ } else {
+ // guzzle 6
+ $options['base_uri'] = $this->config['base_path'];
+ }
+
+ return new Client($options);
+ }
+
+ private function createApplicationDefaultCredentials()
+ {
+ $scopes = $this->prepareScopes();
+ $sub = $this->config['subject'];
+ $signingKey = $this->config['signing_key'];
+
+ // create credentials using values supplied in setAuthConfig
+ if ($signingKey) {
+ $serviceAccountCredentials = array(
+ 'client_id' => $this->config['client_id'],
+ 'client_email' => $this->config['client_email'],
+ 'private_key' => $signingKey,
+ 'type' => 'service_account',
+ );
+ $credentials = CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials);
+ } else {
+ $credentials = ApplicationDefaultCredentials::getCredentials($scopes);
+ }
+
+ // for service account domain-wide authority (impersonating a user)
+ // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount
+ if ($sub) {
+ if (!$credentials instanceof ServiceAccountCredentials) {
+ throw new DomainException('domain-wide authority requires service account credentials');
+ }
+
+ $credentials->setSub($sub);
+ }
+
+ return $credentials;
+ }
+
+ protected function getAuthHandler()
+ {
+ // Be very careful using the cache, as the underlying auth library's cache
+ // implementation is naive, and the cache keys do not account for user
+ // sessions.
+ //
+ // @see https://github.com/google/google-api-php-client/issues/821
+ return Google_AuthHandler_AuthHandlerFactory::build(
+ $this->getCache(),
+ $this->config['cache_config']
+ );
+ }
+
+ private function createUserRefreshCredentials($scope, $refreshToken)
+ {
+ $creds = array_filter(
+ array(
+ 'client_id' => $this->getClientId(),
+ 'client_secret' => $this->getClientSecret(),
+ 'refresh_token' => $refreshToken,
+ )
+ );
+
+ return new UserRefreshCredentials($scope, $creds);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Collection.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Collection.php
new file mode 100644
index 00000000..7c478bc0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Collection.php
@@ -0,0 +1,101 @@
+<?php
+
+if (!class_exists('Google_Client')) {
+ require_once __DIR__ . '/autoload.php';
+}
+
+/**
+ * Extension to the regular Google_Model that automatically
+ * exposes the items array for iteration, so you can just
+ * iterate over the object rather than a reference inside.
+ */
+class Google_Collection extends Google_Model implements Iterator, Countable
+{
+ protected $collection_key = 'items';
+
+ public function rewind()
+ {
+ if (isset($this->modelData[$this->collection_key])
+ && is_array($this->modelData[$this->collection_key])) {
+ reset($this->modelData[$this->collection_key]);
+ }
+ }
+
+ public function current()
+ {
+ $this->coerceType($this->key());
+ if (is_array($this->modelData[$this->collection_key])) {
+ return current($this->modelData[$this->collection_key]);
+ }
+ }
+
+ public function key()
+ {
+ if (isset($this->modelData[$this->collection_key])
+ && is_array($this->modelData[$this->collection_key])) {
+ return key($this->modelData[$this->collection_key]);
+ }
+ }
+
+ public function next()
+ {
+ return next($this->modelData[$this->collection_key]);
+ }
+
+ public function valid()
+ {
+ $key = $this->key();
+ return $key !== null && $key !== false;
+ }
+
+ public function count()
+ {
+ if (!isset($this->modelData[$this->collection_key])) {
+ return 0;
+ }
+ return count($this->modelData[$this->collection_key]);
+ }
+
+ public function offsetExists($offset)
+ {
+ if (!is_numeric($offset)) {
+ return parent::offsetExists($offset);
+ }
+ return isset($this->modelData[$this->collection_key][$offset]);
+ }
+
+ public function offsetGet($offset)
+ {
+ if (!is_numeric($offset)) {
+ return parent::offsetGet($offset);
+ }
+ $this->coerceType($offset);
+ return $this->modelData[$this->collection_key][$offset];
+ }
+
+ public function offsetSet($offset, $value)
+ {
+ if (!is_numeric($offset)) {
+ return parent::offsetSet($offset, $value);
+ }
+ $this->modelData[$this->collection_key][$offset] = $value;
+ }
+
+ public function offsetUnset($offset)
+ {
+ if (!is_numeric($offset)) {
+ return parent::offsetUnset($offset);
+ }
+ unset($this->modelData[$this->collection_key][$offset]);
+ }
+
+ private function coerceType($offset)
+ {
+ $typeKey = $this->keyType($this->collection_key);
+ if (isset($this->$typeKey) && !is_object($this->modelData[$this->collection_key][$offset])) {
+ $type = $this->$typeKey;
+ $this->modelData[$this->collection_key][$offset] =
+ new $type($this->modelData[$this->collection_key][$offset]);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Exception.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Exception.php
new file mode 100644
index 00000000..af802697
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Exception.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+class Google_Exception extends Exception
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/Batch.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/Batch.php
new file mode 100644
index 00000000..4c486848
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/Batch.php
@@ -0,0 +1,249 @@
+<?php
+/*
+ * Copyright 2012 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use GuzzleHttp\Psr7;
+use GuzzleHttp\Psr7\Request;
+use GuzzleHttp\Psr7\Response;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * Class to handle batched requests to the Google API service.
+ */
+class Google_Http_Batch
+{
+ const BATCH_PATH = 'batch';
+
+ private static $CONNECTION_ESTABLISHED_HEADERS = array(
+ "HTTP/1.0 200 Connection established\r\n\r\n",
+ "HTTP/1.1 200 Connection established\r\n\r\n",
+ );
+
+ /** @var string Multipart Boundary. */
+ private $boundary;
+
+ /** @var array service requests to be executed. */
+ private $requests = array();
+
+ /** @var Google_Client */
+ private $client;
+
+ private $rootUrl;
+
+ private $batchPath;
+
+ public function __construct(
+ Google_Client $client,
+ $boundary = false,
+ $rootUrl = null,
+ $batchPath = null
+ ) {
+ $this->client = $client;
+ $this->boundary = $boundary ?: mt_rand();
+ $this->rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/');
+ $this->batchPath = $batchPath ?: self::BATCH_PATH;
+ }
+
+ public function add(RequestInterface $request, $key = false)
+ {
+ if (false == $key) {
+ $key = mt_rand();
+ }
+
+ $this->requests[$key] = $request;
+ }
+
+ public function execute()
+ {
+ $body = '';
+ $classes = array();
+ $batchHttpTemplate = <<<EOF
+--%s
+Content-Type: application/http
+Content-Transfer-Encoding: binary
+MIME-Version: 1.0
+Content-ID: %s
+
+%s
+%s%s
+
+
+EOF;
+
+ /** @var Google_Http_Request $req */
+ foreach ($this->requests as $key => $request) {
+ $firstLine = sprintf(
+ '%s %s HTTP/%s',
+ $request->getMethod(),
+ $request->getRequestTarget(),
+ $request->getProtocolVersion()
+ );
+
+ $content = (string) $request->getBody();
+
+ $headers = '';
+ foreach ($request->getHeaders() as $name => $values) {
+ $headers .= sprintf("%s:%s\r\n", $name, implode(', ', $values));
+ }
+
+ $body .= sprintf(
+ $batchHttpTemplate,
+ $this->boundary,
+ $key,
+ $firstLine,
+ $headers,
+ $content ? "\n".$content : ''
+ );
+
+ $classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class');
+ }
+
+ $body .= "--{$this->boundary}--";
+ $body = trim($body);
+ $url = $this->rootUrl . '/' . $this->batchPath;
+ $headers = array(
+ 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary),
+ 'Content-Length' => strlen($body),
+ );
+
+ $request = new Request(
+ 'POST',
+ $url,
+ $headers,
+ $body
+ );
+
+ $response = $this->client->execute($request);
+
+ return $this->parseResponse($response, $classes);
+ }
+
+ public function parseResponse(ResponseInterface $response, $classes = array())
+ {
+ $contentType = $response->getHeaderLine('content-type');
+ $contentType = explode(';', $contentType);
+ $boundary = false;
+ foreach ($contentType as $part) {
+ $part = explode('=', $part, 2);
+ if (isset($part[0]) && 'boundary' == trim($part[0])) {
+ $boundary = $part[1];
+ }
+ }
+
+ $body = (string) $response->getBody();
+ if (!empty($body)) {
+ $body = str_replace("--$boundary--", "--$boundary", $body);
+ $parts = explode("--$boundary", $body);
+ $responses = array();
+ $requests = array_values($this->requests);
+
+ foreach ($parts as $i => $part) {
+ $part = trim($part);
+ if (!empty($part)) {
+ list($rawHeaders, $part) = explode("\r\n\r\n", $part, 2);
+ $headers = $this->parseRawHeaders($rawHeaders);
+
+ $status = substr($part, 0, strpos($part, "\n"));
+ $status = explode(" ", $status);
+ $status = $status[1];
+
+ list($partHeaders, $partBody) = $this->parseHttpResponse($part, false);
+ $response = new Response(
+ $status,
+ $partHeaders,
+ Psr7\stream_for($partBody)
+ );
+
+ // Need content id.
+ $key = $headers['content-id'];
+
+ try {
+ $response = Google_Http_REST::decodeHttpResponse($response, $requests[$i-1]);
+ } catch (Google_Service_Exception $e) {
+ // Store the exception as the response, so successful responses
+ // can be processed.
+ $response = $e;
+ }
+
+ $responses[$key] = $response;
+ }
+ }
+
+ return $responses;
+ }
+
+ return null;
+ }
+
+ private function parseRawHeaders($rawHeaders)
+ {
+ $headers = array();
+ $responseHeaderLines = explode("\r\n", $rawHeaders);
+ foreach ($responseHeaderLines as $headerLine) {
+ if ($headerLine && strpos($headerLine, ':') !== false) {
+ list($header, $value) = explode(': ', $headerLine, 2);
+ $header = strtolower($header);
+ if (isset($headers[$header])) {
+ $headers[$header] .= "\n" . $value;
+ } else {
+ $headers[$header] = $value;
+ }
+ }
+ }
+ return $headers;
+ }
+
+ /**
+ * Used by the IO lib and also the batch processing.
+ *
+ * @param $respData
+ * @param $headerSize
+ * @return array
+ */
+ private function parseHttpResponse($respData, $headerSize)
+ {
+ // check proxy header
+ foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) {
+ if (stripos($respData, $established_header) !== false) {
+ // existed, remove it
+ $respData = str_ireplace($established_header, '', $respData);
+ // Subtract the proxy header size unless the cURL bug prior to 7.30.0
+ // is present which prevented the proxy header size from being taken into
+ // account.
+ // @TODO look into this
+ // if (!$this->needsQuirk()) {
+ // $headerSize -= strlen($established_header);
+ // }
+ break;
+ }
+ }
+
+ if ($headerSize) {
+ $responseBody = substr($respData, $headerSize);
+ $responseHeaders = substr($respData, 0, $headerSize);
+ } else {
+ $responseSegments = explode("\r\n\r\n", $respData, 2);
+ $responseHeaders = $responseSegments[0];
+ $responseBody = isset($responseSegments[1]) ? $responseSegments[1] :
+ null;
+ }
+
+ $responseHeaders = $this->parseRawHeaders($responseHeaders);
+
+ return array($responseHeaders, $responseBody);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/MediaFileUpload.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/MediaFileUpload.php
new file mode 100644
index 00000000..bd38a71b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/MediaFileUpload.php
@@ -0,0 +1,348 @@
+<?php
+/**
+ * Copyright 2012 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use GuzzleHttp\Psr7;
+use GuzzleHttp\Psr7\Request;
+use GuzzleHttp\Psr7\Uri;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * Manage large file uploads, which may be media but can be any type
+ * of sizable data.
+ */
+class Google_Http_MediaFileUpload
+{
+ const UPLOAD_MEDIA_TYPE = 'media';
+ const UPLOAD_MULTIPART_TYPE = 'multipart';
+ const UPLOAD_RESUMABLE_TYPE = 'resumable';
+
+ /** @var string $mimeType */
+ private $mimeType;
+
+ /** @var string $data */
+ private $data;
+
+ /** @var bool $resumable */
+ private $resumable;
+
+ /** @var int $chunkSize */
+ private $chunkSize;
+
+ /** @var int $size */
+ private $size;
+
+ /** @var string $resumeUri */
+ private $resumeUri;
+
+ /** @var int $progress */
+ private $progress;
+
+ /** @var Google_Client */
+ private $client;
+
+ /** @var Psr\Http\Message\RequestInterface */
+ private $request;
+
+ /** @var string */
+ private $boundary;
+
+ /**
+ * Result code from last HTTP call
+ * @var int
+ */
+ private $httpResultCode;
+
+ /**
+ * @param $mimeType string
+ * @param $data string The bytes you want to upload.
+ * @param $resumable bool
+ * @param bool $chunkSize File will be uploaded in chunks of this many bytes.
+ * only used if resumable=True
+ */
+ public function __construct(
+ Google_Client $client,
+ RequestInterface $request,
+ $mimeType,
+ $data,
+ $resumable = false,
+ $chunkSize = false
+ ) {
+ $this->client = $client;
+ $this->request = $request;
+ $this->mimeType = $mimeType;
+ $this->data = $data;
+ $this->resumable = $resumable;
+ $this->chunkSize = $chunkSize;
+ $this->progress = 0;
+
+ $this->process();
+ }
+
+ /**
+ * Set the size of the file that is being uploaded.
+ * @param $size - int file size in bytes
+ */
+ public function setFileSize($size)
+ {
+ $this->size = $size;
+ }
+
+ /**
+ * Return the progress on the upload
+ * @return int progress in bytes uploaded.
+ */
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+
+ /**
+ * Send the next part of the file to upload.
+ * @param [$chunk] the next set of bytes to send. If false will used $data passed
+ * at construct time.
+ */
+ public function nextChunk($chunk = false)
+ {
+ $resumeUri = $this->getResumeUri();
+
+ if (false == $chunk) {
+ $chunk = substr($this->data, $this->progress, $this->chunkSize);
+ }
+
+ $lastBytePos = $this->progress + strlen($chunk) - 1;
+ $headers = array(
+ 'content-range' => "bytes $this->progress-$lastBytePos/$this->size",
+ 'content-length' => strlen($chunk),
+ 'expect' => '',
+ );
+
+ $request = new Request(
+ 'PUT',
+ $resumeUri,
+ $headers,
+ Psr7\stream_for($chunk)
+ );
+
+ return $this->makePutRequest($request);
+ }
+
+ /**
+ * Return the HTTP result code from the last call made.
+ * @return int code
+ */
+ public function getHttpResultCode()
+ {
+ return $this->httpResultCode;
+ }
+
+ /**
+ * Sends a PUT-Request to google drive and parses the response,
+ * setting the appropiate variables from the response()
+ *
+ * @param Google_Http_Request $httpRequest the Reuqest which will be send
+ *
+ * @return false|mixed false when the upload is unfinished or the decoded http response
+ *
+ */
+ private function makePutRequest(RequestInterface $request)
+ {
+ $response = $this->client->execute($request);
+ $this->httpResultCode = $response->getStatusCode();
+
+ if (308 == $this->httpResultCode) {
+ // Track the amount uploaded.
+ $range = explode('-', $response->getHeaderLine('range'));
+ $this->progress = $range[1] + 1;
+
+ // Allow for changing upload URLs.
+ $location = $response->getHeaderLine('location');
+ if ($location) {
+ $this->resumeUri = $location;
+ }
+
+ // No problems, but upload not complete.
+ return false;
+ }
+
+ return Google_Http_REST::decodeHttpResponse($response, $this->request);
+ }
+
+ /**
+ * Resume a previously unfinished upload
+ * @param $resumeUri the resume-URI of the unfinished, resumable upload.
+ */
+ public function resume($resumeUri)
+ {
+ $this->resumeUri = $resumeUri;
+ $headers = array(
+ 'content-range' => "bytes */$this->size",
+ 'content-length' => 0,
+ );
+ $httpRequest = new Request(
+ 'PUT',
+ $this->resumeUri,
+ $headers
+ );
+
+ return $this->makePutRequest($httpRequest);
+ }
+
+ /**
+ * @return Psr\Http\Message\RequestInterface $request
+ * @visible for testing
+ */
+ private function process()
+ {
+ $this->transformToUploadUrl();
+ $request = $this->request;
+
+ $postBody = '';
+ $contentType = false;
+
+ $meta = (string) $request->getBody();
+ $meta = is_string($meta) ? json_decode($meta, true) : $meta;
+
+ $uploadType = $this->getUploadType($meta);
+ $request = $request->withUri(
+ Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType)
+ );
+
+ $mimeType = $this->mimeType ?: $request->getHeaderLine('content-type');
+
+ if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) {
+ $contentType = $mimeType;
+ $postBody = is_string($meta) ? $meta : json_encode($meta);
+ } else if (self::UPLOAD_MEDIA_TYPE == $uploadType) {
+ $contentType = $mimeType;
+ $postBody = $this->data;
+ } else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) {
+ // This is a multipart/related upload.
+ $boundary = $this->boundary ?: mt_rand();
+ $boundary = str_replace('"', '', $boundary);
+ $contentType = 'multipart/related; boundary=' . $boundary;
+ $related = "--$boundary\r\n";
+ $related .= "Content-Type: application/json; charset=UTF-8\r\n";
+ $related .= "\r\n" . json_encode($meta) . "\r\n";
+ $related .= "--$boundary\r\n";
+ $related .= "Content-Type: $mimeType\r\n";
+ $related .= "Content-Transfer-Encoding: base64\r\n";
+ $related .= "\r\n" . base64_encode($this->data) . "\r\n";
+ $related .= "--$boundary--";
+ $postBody = $related;
+ }
+
+ $request = $request->withBody(Psr7\stream_for($postBody));
+
+ if (isset($contentType) && $contentType) {
+ $request = $request->withHeader('content-type', $contentType);
+ }
+
+ return $this->request = $request;
+ }
+
+ /**
+ * Valid upload types:
+ * - resumable (UPLOAD_RESUMABLE_TYPE)
+ * - media (UPLOAD_MEDIA_TYPE)
+ * - multipart (UPLOAD_MULTIPART_TYPE)
+ * @param $meta
+ * @return string
+ * @visible for testing
+ */
+ public function getUploadType($meta)
+ {
+ if ($this->resumable) {
+ return self::UPLOAD_RESUMABLE_TYPE;
+ }
+
+ if (false == $meta && $this->data) {
+ return self::UPLOAD_MEDIA_TYPE;
+ }
+
+ return self::UPLOAD_MULTIPART_TYPE;
+ }
+
+ public function getResumeUri()
+ {
+ if (null === $this->resumeUri) {
+ $this->resumeUri = $this->fetchResumeUri();
+ }
+
+ return $this->resumeUri;
+ }
+
+ private function fetchResumeUri()
+ {
+ $body = $this->request->getBody();
+ if ($body) {
+ $headers = array(
+ 'content-type' => 'application/json; charset=UTF-8',
+ 'content-length' => $body->getSize(),
+ 'x-upload-content-type' => $this->mimeType,
+ 'x-upload-content-length' => $this->size,
+ 'expect' => '',
+ );
+ foreach ($headers as $key => $value) {
+ $this->request = $this->request->withHeader($key, $value);
+ }
+ }
+
+ $response = $this->client->execute($this->request, false);
+ $location = $response->getHeaderLine('location');
+ $code = $response->getStatusCode();
+
+ if (200 == $code && true == $location) {
+ return $location;
+ }
+
+ $message = $code;
+ $body = json_decode((string) $this->request->getBody(), true);
+ if (isset($body['error']['errors'])) {
+ $message .= ': ';
+ foreach ($body['error']['errors'] as $error) {
+ $message .= "{$error[domain]}, {$error[message]};";
+ }
+ $message = rtrim($message, ';');
+ }
+
+ $error = "Failed to start the resumable upload (HTTP {$message})";
+ $this->client->getLogger()->error($error);
+
+ throw new Google_Exception($error);
+ }
+
+ private function transformToUploadUrl()
+ {
+ $parts = parse_url((string) $this->request->getUri());
+ if (!isset($parts['path'])) {
+ $parts['path'] = '';
+ }
+ $parts['path'] = '/upload' . $parts['path'];
+ $uri = Uri::fromParts($parts);
+ $this->request = $this->request->withUri($uri);
+ }
+
+ public function setChunkSize($chunkSize)
+ {
+ $this->chunkSize = $chunkSize;
+ }
+
+ public function getRequest()
+ {
+ return $this->request;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/REST.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/REST.php
new file mode 100644
index 00000000..c2156a2e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Http/REST.php
@@ -0,0 +1,182 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+use GuzzleHttp\ClientInterface;
+use GuzzleHttp\Exception\RequestException;
+use GuzzleHttp\Psr7\Response;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * This class implements the RESTful transport of apiServiceRequest()'s
+ */
+class Google_Http_REST
+{
+ /**
+ * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries
+ * when errors occur.
+ *
+ * @param Google_Client $client
+ * @param Psr\Http\Message\RequestInterface $req
+ * @return array decoded result
+ * @throws Google_Service_Exception on server side error (ie: not authenticated,
+ * invalid or malformed post body, invalid url)
+ */
+ public static function execute(
+ ClientInterface $client,
+ RequestInterface $request,
+ $expectedClass = null,
+ $config = array(),
+ $retryMap = null
+ ) {
+ $runner = new Google_Task_Runner(
+ $config,
+ sprintf('%s %s', $request->getMethod(), (string) $request->getUri()),
+ array(get_class(), 'doExecute'),
+ array($client, $request, $expectedClass)
+ );
+
+ if (null !== $retryMap) {
+ $runner->setRetryMap($retryMap);
+ }
+
+ return $runner->run();
+ }
+
+ /**
+ * Executes a Psr\Http\Message\RequestInterface
+ *
+ * @param Google_Client $client
+ * @param Psr\Http\Message\RequestInterface $request
+ * @return array decoded result
+ * @throws Google_Service_Exception on server side error (ie: not authenticated,
+ * invalid or malformed post body, invalid url)
+ */
+ public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null)
+ {
+ try {
+ $httpHandler = HttpHandlerFactory::build($client);
+ $response = $httpHandler($request);
+ } catch (RequestException $e) {
+ // if Guzzle throws an exception, catch it and handle the response
+ if (!$e->hasResponse()) {
+ throw $e;
+ }
+
+ $response = $e->getResponse();
+ // specific checking for Guzzle 5: convert to PSR7 response
+ if ($response instanceof \GuzzleHttp\Message\ResponseInterface) {
+ $response = new Response(
+ $response->getStatusCode(),
+ $response->getHeaders() ?: [],
+ $response->getBody(),
+ $response->getProtocolVersion(),
+ $response->getReasonPhrase()
+ );
+ }
+ }
+
+ return self::decodeHttpResponse($response, $request, $expectedClass);
+ }
+
+ /**
+ * Decode an HTTP Response.
+ * @static
+ * @throws Google_Service_Exception
+ * @param Psr\Http\Message\RequestInterface $response The http response to be decoded.
+ * @param Psr\Http\Message\ResponseInterface $response
+ * @return mixed|null
+ */
+ public static function decodeHttpResponse(
+ ResponseInterface $response,
+ RequestInterface $request = null,
+ $expectedClass = null
+ ) {
+ $code = $response->getStatusCode();
+
+ // retry strategy
+ if (intVal($code) >= 400) {
+ // if we errored out, it should be safe to grab the response body
+ $body = (string) $response->getBody();
+
+ // Check if we received errors, and add those to the Exception for convenience
+ throw new Google_Service_Exception($body, $code, null, self::getResponseErrors($body));
+ }
+
+ // Ensure we only pull the entire body into memory if the request is not
+ // of media type
+ $body = self::decodeBody($response, $request);
+
+ if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) {
+ $json = json_decode($body, true);
+
+ return new $expectedClass($json);
+ }
+
+ return $response;
+ }
+
+ private static function decodeBody(ResponseInterface $response, RequestInterface $request = null)
+ {
+ if (self::isAltMedia($request)) {
+ // don't decode the body, it's probably a really long string
+ return '';
+ }
+
+ return (string) $response->getBody();
+ }
+
+ private static function determineExpectedClass($expectedClass, RequestInterface $request = null)
+ {
+ // "false" is used to explicitly prevent an expected class from being returned
+ if (false === $expectedClass) {
+ return null;
+ }
+
+ // if we don't have a request, we just use what's passed in
+ if (null === $request) {
+ return $expectedClass;
+ }
+
+ // return what we have in the request header if one was not supplied
+ return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class');
+ }
+
+ private static function getResponseErrors($body)
+ {
+ $json = json_decode($body, true);
+
+ if (isset($json['error']['errors'])) {
+ return $json['error']['errors'];
+ }
+
+ return null;
+ }
+
+ private static function isAltMedia(RequestInterface $request = null)
+ {
+ if ($request && $qs = $request->getUri()->getQuery()) {
+ parse_str($qs, $query);
+ if (isset($query['alt']) && $query['alt'] == 'media') {
+ return true;
+ }
+ }
+
+ return false;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Model.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Model.php
new file mode 100644
index 00000000..cd50c9a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Model.php
@@ -0,0 +1,307 @@
+<?php
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * This class defines attributes, valid values, and usage which is generated
+ * from a given json schema.
+ * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5
+ *
+ */
+class Google_Model implements ArrayAccess
+{
+ /**
+ * If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE
+ * instead - it will be replaced when converting to JSON with a real null.
+ */
+ const NULL_VALUE = "{}gapi-php-null";
+ protected $internal_gapi_mappings = array();
+ protected $modelData = array();
+ protected $processed = array();
+
+ /**
+ * Polymorphic - accepts a variable number of arguments dependent
+ * on the type of the model subclass.
+ */
+ final public function __construct()
+ {
+ if (func_num_args() == 1 && is_array(func_get_arg(0))) {
+ // Initialize the model with the array's contents.
+ $array = func_get_arg(0);
+ $this->mapTypes($array);
+ }
+ $this->gapiInit();
+ }
+
+ /**
+ * Getter that handles passthrough access to the data array, and lazy object creation.
+ * @param string $key Property name.
+ * @return mixed The value if any, or null.
+ */
+ public function __get($key)
+ {
+ $keyTypeName = $this->keyType($key);
+ $keyDataType = $this->dataType($key);
+ if (isset($this->$keyTypeName) && !isset($this->processed[$key])) {
+ if (isset($this->modelData[$key])) {
+ $val = $this->modelData[$key];
+ } else if (isset($this->$keyDataType) &&
+ ($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) {
+ $val = array();
+ } else {
+ $val = null;
+ }
+
+ if ($this->isAssociativeArray($val)) {
+ if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) {
+ foreach ($val as $arrayKey => $arrayItem) {
+ $this->modelData[$key][$arrayKey] =
+ $this->createObjectFromName($keyTypeName, $arrayItem);
+ }
+ } else {
+ $this->modelData[$key] = $this->createObjectFromName($keyTypeName, $val);
+ }
+ } else if (is_array($val)) {
+ $arrayObject = array();
+ foreach ($val as $arrayIndex => $arrayItem) {
+ $arrayObject[$arrayIndex] =
+ $this->createObjectFromName($keyTypeName, $arrayItem);
+ }
+ $this->modelData[$key] = $arrayObject;
+ }
+ $this->processed[$key] = true;
+ }
+
+ return isset($this->modelData[$key]) ? $this->modelData[$key] : null;
+ }
+
+ /**
+ * Initialize this object's properties from an array.
+ *
+ * @param array $array Used to seed this object's properties.
+ * @return void
+ */
+ protected function mapTypes($array)
+ {
+ // Hard initialise simple types, lazy load more complex ones.
+ foreach ($array as $key => $val) {
+ if ( !property_exists($this, $this->keyType($key)) &&
+ property_exists($this, $key)) {
+ $this->$key = $val;
+ unset($array[$key]);
+ } elseif (property_exists($this, $camelKey = $this->camelCase($key))) {
+ // This checks if property exists as camelCase, leaving it in array as snake_case
+ // in case of backwards compatibility issues.
+ $this->$camelKey = $val;
+ }
+ }
+ $this->modelData = $array;
+ }
+
+ /**
+ * Blank initialiser to be used in subclasses to do post-construction initialisation - this
+ * avoids the need for subclasses to have to implement the variadics handling in their
+ * constructors.
+ */
+ protected function gapiInit()
+ {
+ return;
+ }
+
+ /**
+ * Create a simplified object suitable for straightforward
+ * conversion to JSON. This is relatively expensive
+ * due to the usage of reflection, but shouldn't be called
+ * a whole lot, and is the most straightforward way to filter.
+ */
+ public function toSimpleObject()
+ {
+ $object = new stdClass();
+
+ // Process all other data.
+ foreach ($this->modelData as $key => $val) {
+ $result = $this->getSimpleValue($val);
+ if ($result !== null) {
+ $object->$key = $this->nullPlaceholderCheck($result);
+ }
+ }
+
+ // Process all public properties.
+ $reflect = new ReflectionObject($this);
+ $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC);
+ foreach ($props as $member) {
+ $name = $member->getName();
+ $result = $this->getSimpleValue($this->$name);
+ if ($result !== null) {
+ $name = $this->getMappedName($name);
+ $object->$name = $this->nullPlaceholderCheck($result);
+ }
+ }
+
+ return $object;
+ }
+
+ /**
+ * Handle different types of values, primarily
+ * other objects and map and array data types.
+ */
+ private function getSimpleValue($value)
+ {
+ if ($value instanceof Google_Model) {
+ return $value->toSimpleObject();
+ } else if (is_array($value)) {
+ $return = array();
+ foreach ($value as $key => $a_value) {
+ $a_value = $this->getSimpleValue($a_value);
+ if ($a_value !== null) {
+ $key = $this->getMappedName($key);
+ $return[$key] = $this->nullPlaceholderCheck($a_value);
+ }
+ }
+ return $return;
+ }
+ return $value;
+ }
+
+ /**
+ * Check whether the value is the null placeholder and return true null.
+ */
+ private function nullPlaceholderCheck($value)
+ {
+ if ($value === self::NULL_VALUE) {
+ return null;
+ }
+ return $value;
+ }
+
+ /**
+ * If there is an internal name mapping, use that.
+ */
+ private function getMappedName($key)
+ {
+ if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) {
+ $key = $this->internal_gapi_mappings[$key];
+ }
+ return $key;
+ }
+
+ /**
+ * Returns true only if the array is associative.
+ * @param array $array
+ * @return bool True if the array is associative.
+ */
+ protected function isAssociativeArray($array)
+ {
+ if (!is_array($array)) {
+ return false;
+ }
+ $keys = array_keys($array);
+ foreach ($keys as $key) {
+ if (is_string($key)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Given a variable name, discover its type.
+ *
+ * @param $name
+ * @param $item
+ * @return object The object from the item.
+ */
+ private function createObjectFromName($name, $item)
+ {
+ $type = $this->$name;
+ return new $type($item);
+ }
+
+ /**
+ * Verify if $obj is an array.
+ * @throws Google_Exception Thrown if $obj isn't an array.
+ * @param array $obj Items that should be validated.
+ * @param string $method Method expecting an array as an argument.
+ */
+ public function assertIsArray($obj, $method)
+ {
+ if ($obj && !is_array($obj)) {
+ throw new Google_Exception(
+ "Incorrect parameter type passed to $method(). Expected an array."
+ );
+ }
+ }
+
+ public function offsetExists($offset)
+ {
+ return isset($this->$offset) || isset($this->modelData[$offset]);
+ }
+
+ public function offsetGet($offset)
+ {
+ return isset($this->$offset) ?
+ $this->$offset :
+ $this->__get($offset);
+ }
+
+ public function offsetSet($offset, $value)
+ {
+ if (property_exists($this, $offset)) {
+ $this->$offset = $value;
+ } else {
+ $this->modelData[$offset] = $value;
+ $this->processed[$offset] = true;
+ }
+ }
+
+ public function offsetUnset($offset)
+ {
+ unset($this->modelData[$offset]);
+ }
+
+ protected function keyType($key)
+ {
+ return $key . "Type";
+ }
+
+ protected function dataType($key)
+ {
+ return $key . "DataType";
+ }
+
+ public function __isset($key)
+ {
+ return isset($this->modelData[$key]);
+ }
+
+ public function __unset($key)
+ {
+ unset($this->modelData[$key]);
+ }
+
+ /**
+ * Convert a string to camelCase
+ * @param string $value
+ * @return string
+ */
+ private function camelCase($value)
+ {
+ $value = ucwords(str_replace(array('-', '_'), ' ', $value));
+ $value = str_replace(' ', '', $value);
+ $value[0] = strtolower($value[0]);
+ return $value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service.php
new file mode 100644
index 00000000..d3fd3b49
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service.php
@@ -0,0 +1,56 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+class Google_Service
+{
+ public $batchPath;
+ public $rootUrl;
+ public $version;
+ public $servicePath;
+ public $availableScopes;
+ public $resource;
+ private $client;
+
+ public function __construct(Google_Client $client)
+ {
+ $this->client = $client;
+ }
+
+ /**
+ * Return the associated Google_Client class.
+ * @return Google_Client
+ */
+ public function getClient()
+ {
+ return $this->client;
+ }
+
+ /**
+ * Create a new HTTP Batch handler for this service
+ *
+ * @return Google_Http_Batch
+ */
+ public function createBatch()
+ {
+ return new Google_Http_Batch(
+ $this->client,
+ false,
+ $this->rootUrl,
+ $this->batchPath
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Exception.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Exception.php
new file mode 100644
index 00000000..abfd3f7f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Exception.php
@@ -0,0 +1,68 @@
+<?php
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+class Google_Service_Exception extends Google_Exception
+{
+ /**
+ * Optional list of errors returned in a JSON body of an HTTP error response.
+ */
+ protected $errors = array();
+
+ /**
+ * Override default constructor to add the ability to set $errors and a retry
+ * map.
+ *
+ * @param string $message
+ * @param int $code
+ * @param Exception|null $previous
+ * @param [{string, string}] errors List of errors returned in an HTTP
+ * response. Defaults to [].
+ * @param array|null $retryMap Map of errors with retry counts.
+ */
+ public function __construct(
+ $message,
+ $code = 0,
+ Exception $previous = null,
+ $errors = array()
+ ) {
+ if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
+ parent::__construct($message, $code, $previous);
+ } else {
+ parent::__construct($message, $code);
+ }
+
+ $this->errors = $errors;
+ }
+
+ /**
+ * An example of the possible errors returned.
+ *
+ * {
+ * "domain": "global",
+ * "reason": "authError",
+ * "message": "Invalid Credentials",
+ * "locationType": "header",
+ * "location": "Authorization",
+ * }
+ *
+ * @return [{string, string}] List of errors return in an HTTP response or [].
+ */
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/README.md b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/README.md
new file mode 100644
index 00000000..0de48620
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/README.md
@@ -0,0 +1,5 @@
+# Google API Client Services
+
+Google API Client Service classes have been moved to the
+[google-api-php-client-services](https://github.com/google/google-api-php-client-services)
+repository.
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Resource.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Resource.php
new file mode 100644
index 00000000..a3c57ee2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Service/Resource.php
@@ -0,0 +1,296 @@
+<?php
+/**
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+use GuzzleHttp\Psr7\Request;
+
+/**
+ * Implements the actual methods/resources of the discovered Google API using magic function
+ * calling overloading (__call()), which on call will see if the method name (plus.activities.list)
+ * is available in this service, and if so construct an apiHttpRequest representing it.
+ *
+ */
+class Google_Service_Resource
+{
+ // Valid query parameters that work, but don't appear in discovery.
+ private $stackParameters = array(
+ 'alt' => array('type' => 'string', 'location' => 'query'),
+ 'fields' => array('type' => 'string', 'location' => 'query'),
+ 'trace' => array('type' => 'string', 'location' => 'query'),
+ 'userIp' => array('type' => 'string', 'location' => 'query'),
+ 'quotaUser' => array('type' => 'string', 'location' => 'query'),
+ 'data' => array('type' => 'string', 'location' => 'body'),
+ 'mimeType' => array('type' => 'string', 'location' => 'header'),
+ 'uploadType' => array('type' => 'string', 'location' => 'query'),
+ 'mediaUpload' => array('type' => 'complex', 'location' => 'query'),
+ 'prettyPrint' => array('type' => 'string', 'location' => 'query'),
+ );
+
+ /** @var string $rootUrl */
+ private $rootUrl;
+
+ /** @var Google_Client $client */
+ private $client;
+
+ /** @var string $serviceName */
+ private $serviceName;
+
+ /** @var string $servicePath */
+ private $servicePath;
+
+ /** @var string $resourceName */
+ private $resourceName;
+
+ /** @var array $methods */
+ private $methods;
+
+ public function __construct($service, $serviceName, $resourceName, $resource)
+ {
+ $this->rootUrl = $service->rootUrl;
+ $this->client = $service->getClient();
+ $this->servicePath = $service->servicePath;
+ $this->serviceName = $serviceName;
+ $this->resourceName = $resourceName;
+ $this->methods = is_array($resource) && isset($resource['methods']) ?
+ $resource['methods'] :
+ array($resourceName => $resource);
+ }
+
+ /**
+ * TODO: This function needs simplifying.
+ * @param $name
+ * @param $arguments
+ * @param $expectedClass - optional, the expected class name
+ * @return Google_Http_Request|expectedClass
+ * @throws Google_Exception
+ */
+ public function call($name, $arguments, $expectedClass = null)
+ {
+ if (! isset($this->methods[$name])) {
+ $this->client->getLogger()->error(
+ 'Service method unknown',
+ array(
+ 'service' => $this->serviceName,
+ 'resource' => $this->resourceName,
+ 'method' => $name
+ )
+ );
+
+ throw new Google_Exception(
+ "Unknown function: " .
+ "{$this->serviceName}->{$this->resourceName}->{$name}()"
+ );
+ }
+ $method = $this->methods[$name];
+ $parameters = $arguments[0];
+
+ // postBody is a special case since it's not defined in the discovery
+ // document as parameter, but we abuse the param entry for storing it.
+ $postBody = null;
+ if (isset($parameters['postBody'])) {
+ if ($parameters['postBody'] instanceof Google_Model) {
+ // In the cases the post body is an existing object, we want
+ // to use the smart method to create a simple object for
+ // for JSONification.
+ $parameters['postBody'] = $parameters['postBody']->toSimpleObject();
+ } else if (is_object($parameters['postBody'])) {
+ // If the post body is another kind of object, we will try and
+ // wrangle it into a sensible format.
+ $parameters['postBody'] =
+ $this->convertToArrayAndStripNulls($parameters['postBody']);
+ }
+ $postBody = (array) $parameters['postBody'];
+ unset($parameters['postBody']);
+ }
+
+ // TODO: optParams here probably should have been
+ // handled already - this may well be redundant code.
+ if (isset($parameters['optParams'])) {
+ $optParams = $parameters['optParams'];
+ unset($parameters['optParams']);
+ $parameters = array_merge($parameters, $optParams);
+ }
+
+ if (!isset($method['parameters'])) {
+ $method['parameters'] = array();
+ }
+
+ $method['parameters'] = array_merge(
+ $this->stackParameters,
+ $method['parameters']
+ );
+
+ foreach ($parameters as $key => $val) {
+ if ($key != 'postBody' && ! isset($method['parameters'][$key])) {
+ $this->client->getLogger()->error(
+ 'Service parameter unknown',
+ array(
+ 'service' => $this->serviceName,
+ 'resource' => $this->resourceName,
+ 'method' => $name,
+ 'parameter' => $key
+ )
+ );
+ throw new Google_Exception("($name) unknown parameter: '$key'");
+ }
+ }
+
+ foreach ($method['parameters'] as $paramName => $paramSpec) {
+ if (isset($paramSpec['required']) &&
+ $paramSpec['required'] &&
+ ! isset($parameters[$paramName])
+ ) {
+ $this->client->getLogger()->error(
+ 'Service parameter missing',
+ array(
+ 'service' => $this->serviceName,
+ 'resource' => $this->resourceName,
+ 'method' => $name,
+ 'parameter' => $paramName
+ )
+ );
+ throw new Google_Exception("($name) missing required param: '$paramName'");
+ }
+ if (isset($parameters[$paramName])) {
+ $value = $parameters[$paramName];
+ $parameters[$paramName] = $paramSpec;
+ $parameters[$paramName]['value'] = $value;
+ unset($parameters[$paramName]['required']);
+ } else {
+ // Ensure we don't pass nulls.
+ unset($parameters[$paramName]);
+ }
+ }
+
+ $this->client->getLogger()->info(
+ 'Service Call',
+ array(
+ 'service' => $this->serviceName,
+ 'resource' => $this->resourceName,
+ 'method' => $name,
+ 'arguments' => $parameters,
+ )
+ );
+
+ // build the service uri
+ $url = $this->createRequestUri(
+ $method['path'],
+ $parameters
+ );
+
+ // NOTE: because we're creating the request by hand,
+ // and because the service has a rootUrl property
+ // the "base_uri" of the Http Client is not accounted for
+ $request = new Request(
+ $method['httpMethod'],
+ $url,
+ ['content-type' => 'application/json'],
+ $postBody ? json_encode($postBody) : ''
+ );
+
+ // support uploads
+ if (isset($parameters['data'])) {
+ $mimeType = isset($parameters['mimeType'])
+ ? $parameters['mimeType']['value']
+ : 'application/octet-stream';
+ $data = $parameters['data']['value'];
+ $upload = new Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data);
+
+ // pull down the modified request
+ $request = $upload->getRequest();
+ }
+
+ // if this is a media type, we will return the raw response
+ // rather than using an expected class
+ if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') {
+ $expectedClass = null;
+ }
+
+ // if the client is marked for deferring, rather than
+ // execute the request, return the response
+ if ($this->client->shouldDefer()) {
+ // @TODO find a better way to do this
+ $request = $request
+ ->withHeader('X-Php-Expected-Class', $expectedClass);
+
+ return $request;
+ }
+
+ return $this->client->execute($request, $expectedClass);
+ }
+
+ protected function convertToArrayAndStripNulls($o)
+ {
+ $o = (array) $o;
+ foreach ($o as $k => $v) {
+ if ($v === null) {
+ unset($o[$k]);
+ } elseif (is_object($v) || is_array($v)) {
+ $o[$k] = $this->convertToArrayAndStripNulls($o[$k]);
+ }
+ }
+ return $o;
+ }
+
+ /**
+ * Parse/expand request parameters and create a fully qualified
+ * request uri.
+ * @static
+ * @param string $restPath
+ * @param array $params
+ * @return string $requestUrl
+ */
+ public function createRequestUri($restPath, $params)
+ {
+ // code for leading slash
+ $requestUrl = $this->servicePath . $restPath;
+ if ($this->rootUrl) {
+ if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) {
+ $requestUrl = '/' . $requestUrl;
+ }
+ $requestUrl = $this->rootUrl . $requestUrl;
+ }
+ $uriTemplateVars = array();
+ $queryVars = array();
+ foreach ($params as $paramName => $paramSpec) {
+ if ($paramSpec['type'] == 'boolean') {
+ $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false';
+ }
+ if ($paramSpec['location'] == 'path') {
+ $uriTemplateVars[$paramName] = $paramSpec['value'];
+ } else if ($paramSpec['location'] == 'query') {
+ if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) {
+ foreach ($paramSpec['value'] as $value) {
+ $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value));
+ }
+ } else {
+ $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value']));
+ }
+ }
+ }
+
+ if (count($uriTemplateVars)) {
+ $uriTemplateParser = new Google_Utils_UriTemplate();
+ $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars);
+ }
+
+ if (count($queryVars)) {
+ $requestUrl .= '?' . implode($queryVars, '&');
+ }
+
+ return $requestUrl;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Exception.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Exception.php
new file mode 100644
index 00000000..5422e6fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Exception.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+class Google_Task_Exception extends Google_Exception
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Retryable.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Retryable.php
new file mode 100644
index 00000000..19aa4ddc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Retryable.php
@@ -0,0 +1,24 @@
+<?php
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Interface for checking how many times a given task can be retried following
+ * a failure.
+ */
+interface Google_Task_Retryable
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Runner.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Runner.php
new file mode 100644
index 00000000..2f25e990
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Task/Runner.php
@@ -0,0 +1,281 @@
+<?php
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * A task runner with exponential backoff support.
+ *
+ * @see https://developers.google.com/drive/web/handle-errors#implementing_exponential_backoff
+ */
+class Google_Task_Runner
+{
+ const TASK_RETRY_NEVER = 0;
+ const TASK_RETRY_ONCE = 1;
+ const TASK_RETRY_ALWAYS = -1;
+
+ /**
+ * @var integer $maxDelay The max time (in seconds) to wait before a retry.
+ */
+ private $maxDelay = 60;
+ /**
+ * @var integer $delay The previous delay from which the next is calculated.
+ */
+ private $delay = 1;
+
+ /**
+ * @var integer $factor The base number for the exponential back off.
+ */
+ private $factor = 2;
+ /**
+ * @var float $jitter A random number between -$jitter and $jitter will be
+ * added to $factor on each iteration to allow for a better distribution of
+ * retries.
+ */
+ private $jitter = 0.5;
+
+ /**
+ * @var integer $attempts The number of attempts that have been tried so far.
+ */
+ private $attempts = 0;
+ /**
+ * @var integer $maxAttempts The max number of attempts allowed.
+ */
+ private $maxAttempts = 1;
+
+ /**
+ * @var callable $action The task to run and possibly retry.
+ */
+ private $action;
+ /**
+ * @var array $arguments The task arguments.
+ */
+ private $arguments;
+
+ /**
+ * @var array $retryMap Map of errors with retry counts.
+ */
+ protected $retryMap = [
+ '500' => self::TASK_RETRY_ALWAYS,
+ '503' => self::TASK_RETRY_ALWAYS,
+ 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS,
+ 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS,
+ 6 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_RESOLVE_HOST
+ 7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT
+ 28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED
+ 35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR
+ 52 => self::TASK_RETRY_ALWAYS // CURLE_GOT_NOTHING
+ ];
+
+ /**
+ * Creates a new task runner with exponential backoff support.
+ *
+ * @param array $config The task runner config
+ * @param string $name The name of the current task (used for logging)
+ * @param callable $action The task to run and possibly retry
+ * @param array $arguments The task arguments
+ * @throws Google_Task_Exception when misconfigured
+ */
+ public function __construct(
+ $config,
+ $name,
+ $action,
+ array $arguments = array()
+ ) {
+ if (isset($config['initial_delay'])) {
+ if ($config['initial_delay'] < 0) {
+ throw new Google_Task_Exception(
+ 'Task configuration `initial_delay` must not be negative.'
+ );
+ }
+
+ $this->delay = $config['initial_delay'];
+ }
+
+ if (isset($config['max_delay'])) {
+ if ($config['max_delay'] <= 0) {
+ throw new Google_Task_Exception(
+ 'Task configuration `max_delay` must be greater than 0.'
+ );
+ }
+
+ $this->maxDelay = $config['max_delay'];
+ }
+
+ if (isset($config['factor'])) {
+ if ($config['factor'] <= 0) {
+ throw new Google_Task_Exception(
+ 'Task configuration `factor` must be greater than 0.'
+ );
+ }
+
+ $this->factor = $config['factor'];
+ }
+
+ if (isset($config['jitter'])) {
+ if ($config['jitter'] <= 0) {
+ throw new Google_Task_Exception(
+ 'Task configuration `jitter` must be greater than 0.'
+ );
+ }
+
+ $this->jitter = $config['jitter'];
+ }
+
+ if (isset($config['retries'])) {
+ if ($config['retries'] < 0) {
+ throw new Google_Task_Exception(
+ 'Task configuration `retries` must not be negative.'
+ );
+ }
+ $this->maxAttempts += $config['retries'];
+ }
+
+ if (!is_callable($action)) {
+ throw new Google_Task_Exception(
+ 'Task argument `$action` must be a valid callable.'
+ );
+ }
+
+ $this->action = $action;
+ $this->arguments = $arguments;
+ }
+
+ /**
+ * Checks if a retry can be attempted.
+ *
+ * @return boolean
+ */
+ public function canAttempt()
+ {
+ return $this->attempts < $this->maxAttempts;
+ }
+
+ /**
+ * Runs the task and (if applicable) automatically retries when errors occur.
+ *
+ * @return mixed
+ * @throws Google_Task_Retryable on failure when no retries are available.
+ */
+ public function run()
+ {
+ while ($this->attempt()) {
+ try {
+ return call_user_func_array($this->action, $this->arguments);
+ } catch (Google_Service_Exception $exception) {
+ $allowedRetries = $this->allowedRetries(
+ $exception->getCode(),
+ $exception->getErrors()
+ );
+
+ if (!$this->canAttempt() || !$allowedRetries) {
+ throw $exception;
+ }
+
+ if ($allowedRetries > 0) {
+ $this->maxAttempts = min(
+ $this->maxAttempts,
+ $this->attempts + $allowedRetries
+ );
+ }
+ }
+ }
+ }
+
+ /**
+ * Runs a task once, if possible. This is useful for bypassing the `run()`
+ * loop.
+ *
+ * NOTE: If this is not the first attempt, this function will sleep in
+ * accordance to the backoff configurations before running the task.
+ *
+ * @return boolean
+ */
+ public function attempt()
+ {
+ if (!$this->canAttempt()) {
+ return false;
+ }
+
+ if ($this->attempts > 0) {
+ $this->backOff();
+ }
+
+ $this->attempts++;
+ return true;
+ }
+
+ /**
+ * Sleeps in accordance to the backoff configurations.
+ */
+ private function backOff()
+ {
+ $delay = $this->getDelay();
+
+ usleep($delay * 1000000);
+ }
+
+ /**
+ * Gets the delay (in seconds) for the current backoff period.
+ *
+ * @return float
+ */
+ private function getDelay()
+ {
+ $jitter = $this->getJitter();
+ $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter);
+
+ return $this->delay = min($this->maxDelay, $this->delay * $factor);
+ }
+
+ /**
+ * Gets the current jitter (random number between -$this->jitter and
+ * $this->jitter).
+ *
+ * @return float
+ */
+ private function getJitter()
+ {
+ return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter;
+ }
+
+ /**
+ * Gets the number of times the associated task can be retried.
+ *
+ * NOTE: -1 is returned if the task can be retried indefinitely
+ *
+ * @return integer
+ */
+ public function allowedRetries($code, $errors = array())
+ {
+ if (isset($this->retryMap[$code])) {
+ return $this->retryMap[$code];
+ }
+
+ if (
+ !empty($errors) &&
+ isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']])
+ ) {
+ return $this->retryMap[$errors[0]['reason']];
+ }
+
+ return 0;
+ }
+
+ public function setRetryMap($retryMap)
+ {
+ $this->retryMap = $retryMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Utils/UriTemplate.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Utils/UriTemplate.php
new file mode 100644
index 00000000..e59fe9f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/Utils/UriTemplate.php
@@ -0,0 +1,333 @@
+<?php
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Implementation of levels 1-3 of the URI Template spec.
+ * @see http://tools.ietf.org/html/rfc6570
+ */
+class Google_Utils_UriTemplate
+{
+ const TYPE_MAP = "1";
+ const TYPE_LIST = "2";
+ const TYPE_SCALAR = "4";
+
+ /**
+ * @var $operators array
+ * These are valid at the start of a template block to
+ * modify the way in which the variables inside are
+ * processed.
+ */
+ private $operators = array(
+ "+" => "reserved",
+ "/" => "segments",
+ "." => "dotprefix",
+ "#" => "fragment",
+ ";" => "semicolon",
+ "?" => "form",
+ "&" => "continuation"
+ );
+
+ /**
+ * @var reserved array
+ * These are the characters which should not be URL encoded in reserved
+ * strings.
+ */
+ private $reserved = array(
+ "=", ",", "!", "@", "|", ":", "/", "?", "#",
+ "[", "]",'$', "&", "'", "(", ")", "*", "+", ";"
+ );
+ private $reservedEncoded = array(
+ "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F",
+ "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29",
+ "%2A", "%2B", "%3B"
+ );
+
+ public function parse($string, array $parameters)
+ {
+ return $this->resolveNextSection($string, $parameters);
+ }
+
+ /**
+ * This function finds the first matching {...} block and
+ * executes the replacement. It then calls itself to find
+ * subsequent blocks, if any.
+ */
+ private function resolveNextSection($string, $parameters)
+ {
+ $start = strpos($string, "{");
+ if ($start === false) {
+ return $string;
+ }
+ $end = strpos($string, "}");
+ if ($end === false) {
+ return $string;
+ }
+ $string = $this->replace($string, $start, $end, $parameters);
+ return $this->resolveNextSection($string, $parameters);
+ }
+
+ private function replace($string, $start, $end, $parameters)
+ {
+ // We know a data block will have {} round it, so we can strip that.
+ $data = substr($string, $start + 1, $end - $start - 1);
+
+ // If the first character is one of the reserved operators, it effects
+ // the processing of the stream.
+ if (isset($this->operators[$data[0]])) {
+ $op = $this->operators[$data[0]];
+ $data = substr($data, 1);
+ $prefix = "";
+ $prefix_on_missing = false;
+
+ switch ($op) {
+ case "reserved":
+ // Reserved means certain characters should not be URL encoded
+ $data = $this->replaceVars($data, $parameters, ",", null, true);
+ break;
+ case "fragment":
+ // Comma separated with fragment prefix. Bare values only.
+ $prefix = "#";
+ $prefix_on_missing = true;
+ $data = $this->replaceVars($data, $parameters, ",", null, true);
+ break;
+ case "segments":
+ // Slash separated data. Bare values only.
+ $prefix = "/";
+ $data =$this->replaceVars($data, $parameters, "/");
+ break;
+ case "dotprefix":
+ // Dot separated data. Bare values only.
+ $prefix = ".";
+ $prefix_on_missing = true;
+ $data = $this->replaceVars($data, $parameters, ".");
+ break;
+ case "semicolon":
+ // Semicolon prefixed and separated. Uses the key name
+ $prefix = ";";
+ $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false);
+ break;
+ case "form":
+ // Standard URL format. Uses the key name
+ $prefix = "?";
+ $data = $this->replaceVars($data, $parameters, "&", "=");
+ break;
+ case "continuation":
+ // Standard URL, but with leading ampersand. Uses key name.
+ $prefix = "&";
+ $data = $this->replaceVars($data, $parameters, "&", "=");
+ break;
+ }
+
+ // Add the initial prefix character if data is valid.
+ if ($data || ($data !== false && $prefix_on_missing)) {
+ $data = $prefix . $data;
+ }
+
+ } else {
+ // If no operator we replace with the defaults.
+ $data = $this->replaceVars($data, $parameters);
+ }
+ // This is chops out the {...} and replaces with the new section.
+ return substr($string, 0, $start) . $data . substr($string, $end + 1);
+ }
+
+ private function replaceVars(
+ $section,
+ $parameters,
+ $sep = ",",
+ $combine = null,
+ $reserved = false,
+ $tag_empty = false,
+ $combine_on_empty = true
+ ) {
+ if (strpos($section, ",") === false) {
+ // If we only have a single value, we can immediately process.
+ return $this->combine(
+ $section,
+ $parameters,
+ $sep,
+ $combine,
+ $reserved,
+ $tag_empty,
+ $combine_on_empty
+ );
+ } else {
+ // If we have multiple values, we need to split and loop over them.
+ // Each is treated individually, then glued together with the
+ // separator character.
+ $vars = explode(",", $section);
+ return $this->combineList(
+ $vars,
+ $sep,
+ $parameters,
+ $combine,
+ $reserved,
+ false, // Never emit empty strings in multi-param replacements
+ $combine_on_empty
+ );
+ }
+ }
+
+ public function combine(
+ $key,
+ $parameters,
+ $sep,
+ $combine,
+ $reserved,
+ $tag_empty,
+ $combine_on_empty
+ ) {
+ $length = false;
+ $explode = false;
+ $skip_final_combine = false;
+ $value = false;
+
+ // Check for length restriction.
+ if (strpos($key, ":") !== false) {
+ list($key, $length) = explode(":", $key);
+ }
+
+ // Check for explode parameter.
+ if ($key[strlen($key) - 1] == "*") {
+ $explode = true;
+ $key = substr($key, 0, -1);
+ $skip_final_combine = true;
+ }
+
+ // Define the list separator.
+ $list_sep = $explode ? $sep : ",";
+
+ if (isset($parameters[$key])) {
+ $data_type = $this->getDataType($parameters[$key]);
+ switch ($data_type) {
+ case self::TYPE_SCALAR:
+ $value = $this->getValue($parameters[$key], $length);
+ break;
+ case self::TYPE_LIST:
+ $values = array();
+ foreach ($parameters[$key] as $pkey => $pvalue) {
+ $pvalue = $this->getValue($pvalue, $length);
+ if ($combine && $explode) {
+ $values[$pkey] = $key . $combine . $pvalue;
+ } else {
+ $values[$pkey] = $pvalue;
+ }
+ }
+ $value = implode($list_sep, $values);
+ if ($value == '') {
+ return '';
+ }
+ break;
+ case self::TYPE_MAP:
+ $values = array();
+ foreach ($parameters[$key] as $pkey => $pvalue) {
+ $pvalue = $this->getValue($pvalue, $length);
+ if ($explode) {
+ $pkey = $this->getValue($pkey, $length);
+ $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine.
+ } else {
+ $values[] = $pkey;
+ $values[] = $pvalue;
+ }
+ }
+ $value = implode($list_sep, $values);
+ if ($value == '') {
+ return false;
+ }
+ break;
+ }
+ } else if ($tag_empty) {
+ // If we are just indicating empty values with their key name, return that.
+ return $key;
+ } else {
+ // Otherwise we can skip this variable due to not being defined.
+ return false;
+ }
+
+ if ($reserved) {
+ $value = str_replace($this->reservedEncoded, $this->reserved, $value);
+ }
+
+ // If we do not need to include the key name, we just return the raw
+ // value.
+ if (!$combine || $skip_final_combine) {
+ return $value;
+ }
+
+ // Else we combine the key name: foo=bar, if value is not the empty string.
+ return $key . ($value != '' || $combine_on_empty ? $combine . $value : '');
+ }
+
+ /**
+ * Return the type of a passed in value
+ */
+ private function getDataType($data)
+ {
+ if (is_array($data)) {
+ reset($data);
+ if (key($data) !== 0) {
+ return self::TYPE_MAP;
+ }
+ return self::TYPE_LIST;
+ }
+ return self::TYPE_SCALAR;
+ }
+
+ /**
+ * Utility function that merges multiple combine calls
+ * for multi-key templates.
+ */
+ private function combineList(
+ $vars,
+ $sep,
+ $parameters,
+ $combine,
+ $reserved,
+ $tag_empty,
+ $combine_on_empty
+ ) {
+ $ret = array();
+ foreach ($vars as $var) {
+ $response = $this->combine(
+ $var,
+ $parameters,
+ $sep,
+ $combine,
+ $reserved,
+ $tag_empty,
+ $combine_on_empty
+ );
+ if ($response === false) {
+ continue;
+ }
+ $ret[] = $response;
+ }
+ return implode($sep, $ret);
+ }
+
+ /**
+ * Utility function to encode and trim values
+ */
+ private function getValue($value, $length)
+ {
+ if ($length) {
+ $value = substr($value, 0, $length);
+ }
+ $value = rawurlencode($value);
+ return $value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/autoload.php b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/autoload.php
new file mode 100644
index 00000000..8b493010
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/apiclient/src/Google/autoload.php
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * THIS FILE IS FOR BACKWARDS COMPATIBLITY ONLY
+ *
+ * If you were not already including this file in your project, please ignore it
+ */
+
+$file = __DIR__ . '/../../vendor/autoload.php';
+
+if (!file_exists($file)) {
+ $exception = 'This library must be installed via composer or by downloading the full package.';
+ $exception .= ' See the instructions at https://github.com/google/google-api-php-client#installation.';
+ throw new Exception($exception);
+}
+
+$error = 'google-api-php-client\'s autoloader was moved to vendor/autoload.php in 2.0.0. This ';
+$error .= 'redirect will be removed in 2.1. Please adjust your code to use the new location.';
+trigger_error($error, E_USER_DEPRECATED);
+
+require_once $file;
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/.editorconfig b/mayor-orig/www/include/share/googleapi/google/auth/.editorconfig
new file mode 100644
index 00000000..6bc23e62
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/.editorconfig
@@ -0,0 +1,18 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+charset = utf-8
+
+# Get rid of whitespace to avoid diffs with a bunch of EOL changes
+trim_trailing_whitespace = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+
+# PHP-Files
+[*.php]
+indent_style = space
+indent_size = 4
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/.gitignore b/mayor-orig/www/include/share/googleapi/google/auth/.gitignore
new file mode 100644
index 00000000..1cb030a2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/.gitignore
@@ -0,0 +1,3 @@
+*~
+vendor
+composer.lock
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/.php_cs b/mayor-orig/www/include/share/googleapi/google/auth/.php_cs
new file mode 100644
index 00000000..d5d4f5a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/.php_cs
@@ -0,0 +1,54 @@
+<?php
+/**
+ * This file represents the configuration for Code Sniffing PSR-2-related
+ * automatic checks of coding guidelines
+ * Install @fabpot's great php-cs-fixer tool via
+ *
+ * $ composer global require fabpot/php-cs-fixer
+ *
+ * And then simply run
+ *
+ * $ php-cs-fixer fix --config-file .php_cs
+ *
+ * inside the root directory.
+ *
+ * http://www.php-fig.org/psr/psr-2/
+ * http://cs.sensiolabs.org
+ */
+
+if (PHP_SAPI !== 'cli') {
+ die('This script supports command line usage only. Please check your command.');
+}
+// Define in which folders to search and which folders to exclude
+// Exclude some directories that are excluded by Git anyways to speed up the sniffing
+$finder = Symfony\CS\Finder\DefaultFinder::create()
+ ->exclude('vendor')
+ ->in(__DIR__);
+
+// Return a Code Sniffing configuration using
+// all sniffers needed for PSR-2
+// and additionally:
+// - Remove leading slashes in use clauses.
+// - PHP single-line arrays should not have trailing comma.
+// - Single-line whitespace before closing semicolon are prohibited.
+// - Remove unused use statements in the PHP source code
+// - Ensure Concatenation to have at least one whitespace around
+// - Remove trailing whitespace at the end of blank lines.
+return Symfony\CS\Config\Config::create()
+ ->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
+ ->fixers([
+ 'remove_leading_slash_use',
+ 'single_array_no_trailing_comma',
+ 'spaces_before_semicolon',
+ 'unused_use',
+ 'concat_with_spaces',
+ 'whitespacy_lines',
+ 'ordered_use',
+ 'single_quote',
+ 'duplicate_semicolon',
+ 'extra_empty_lines',
+ 'phpdoc_no_package',
+ 'phpdoc_scalar',
+ 'no_empty_lines_after_phpdocs'
+ ])
+ ->finder($finder);
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/.travis.yml b/mayor-orig/www/include/share/googleapi/google/auth/.travis.yml
new file mode 100644
index 00000000..c51e2c33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/.travis.yml
@@ -0,0 +1,31 @@
+language: php
+
+branches:
+ only: [master]
+
+sudo: false
+
+php:
+ - 5.4
+ - 5.5
+ - 5.6
+ - 7.0
+ - hhvm
+
+env:
+ - COMPOSER_CMD="composer install"
+ - COMPOSER_CMD="composer update --prefer-lowest"
+matrix:
+ include:
+ - php: "7.0"
+ env: RUN_CS_FIXER=true COMPOSER_CMD="composer install"
+
+before_script:
+ - $(echo $COMPOSER_CMD)
+
+script:
+ - if [ "${RUN_CS_FIXER}" = "true" ]; then
+ vendor/bin/php-cs-fixer fix --dry-run --diff --config-file=.php_cs .;
+ else
+ vendor/bin/phpunit;
+ fi
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/CHANGELOG.md b/mayor-orig/www/include/share/googleapi/google/auth/CHANGELOG.md
new file mode 100644
index 00000000..1628dc51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/CHANGELOG.md
@@ -0,0 +1,8 @@
+## 0.4.0 (23/04/2015)
+
+### Changes
+
+* Export callback function to update auth metadata ([@stanley-cheung][])
+* Adds an implementation of User Refresh Token auth ([@stanley-cheung][])
+
+[@stanley-cheung]: https://github.com/stanley-cheung
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/CONTRIBUTING.md b/mayor-orig/www/include/share/googleapi/google/auth/CONTRIBUTING.md
new file mode 100644
index 00000000..0cfb74b6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/CONTRIBUTING.md
@@ -0,0 +1,73 @@
+# How to become a contributor and submit your own code
+
+## Contributor License Agreements
+
+We'd love to accept your sample apps and patches! Before we can take them, we
+have to jump a couple of legal hurdles.
+
+Please fill out either the individual or corporate Contributor License Agreement
+(CLA).
+
+ * If you are an individual writing original source code and you're sure you
+ own the intellectual property, then you'll need to sign an [individual CLA]
+ (http://code.google.com/legal/individual-cla-v1.0.html).
+ * If you work for a company that wants to allow you to contribute your work,
+ then you'll need to sign a [corporate CLA]
+ (http://code.google.com/legal/corporate-cla-v1.0.html).
+
+Follow either of the two links above to access the appropriate CLA and
+instructions for how to sign and return it. Once we receive it, we'll be able to
+accept your pull requests.
+
+## Issue reporting
+
+* Check that the issue has not already been reported.
+* Check that the issue has not already been fixed in the latest code
+ (a.k.a. `master`).
+* Be clear, concise and precise in your description of the problem.
+* Open an issue with a descriptive title and a summary in grammatically correct,
+ complete sentences.
+* Include any relevant code to the issue summary.
+
+## Pull requests
+
+* Read [how to properly contribute to open source projects on Github][2].
+* Fork the project.
+* Use a topic/feature branch to easily amend a pull request later, if necessary.
+* Write [good commit messages][3].
+* Use the same coding conventions as the rest of the project.
+* Commit and push until you are happy with your contribution.
+* Make sure to add tests for it. This is important so I don't break it
+ in a future version unintentionally.
+* Add an entry to the [Changelog](CHANGELOG.md) accordingly. See [changelog entry format](#changelog-entry-format).
+* Please try not to mess with the Rakefile, version, or history. If you want to
+ have your own version, or is otherwise necessary, that is fine, but please
+ isolate to its own commit so I can cherry-pick around it.
+* Make sure the test suite is passing and the code you wrote doesn't produce
+ phpunit or phplint offenses.
+* [Squash related commits together][5].
+* Open a [pull request][4] that relates to *only* one subject with a clear title
+ and description in grammatically correct, complete sentences.
+
+### Changelog entry format
+
+Here are a few examples:
+
+```
+* ADC Support for User Refresh Tokens (@tbetbetbe[])
+* [#16](https://github.com/google/google-auth-library-php/issues/16): ADC Support for User Refresh Tokens ([@tbetbetbe][])
+```
+
+* Mark it up in [Markdown syntax][6].
+* The entry line should start with `* ` (an asterisk and a space).
+* If the change has a related GitHub issue (e.g. a bug fix for a reported issue), put a link to the issue as `[#16](https://github.com/google/google-auth-library-php/issues/16): `.
+* Describe the brief of the change. The sentence should end with a punctuation.
+* At the end of the entry, add an implicit link to your GitHub user page as `([@username][])`.
+* If this is your first contribution to google-auth-library-php project, add a link definition for the implicit link to the bottom of the changelog as `[@username]: https://github.com/username`.
+
+[1]: https://github.com/google/google-auth-php-library/issues
+[2]: http://gun.io/blog/how-to-github-fork-branch-and-pull-request
+[3]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
+[4]: https://help.github.com/articles/using-pull-requests
+[5]: http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
+[6]: http://daringfireball.net/projects/markdown/syntax
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/COPYING b/mayor-orig/www/include/share/googleapi/google/auth/COPYING
new file mode 100644
index 00000000..b5d5055a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/COPYING
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2015 Google Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/LICENSE b/mayor-orig/www/include/share/googleapi/google/auth/LICENSE
new file mode 100644
index 00000000..a148ba56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/LICENSE
@@ -0,0 +1,203 @@
+Apache License
+Version 2.0, January 2004
+http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction,
+and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by
+the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all
+other entities that control, are controlled by, or are under common
+control with that entity. For the purposes of this definition,
+"control" means (i) the power, direct or indirect, to cause the
+direction or management of such entity, whether by contract or
+otherwise, or (ii) ownership of fifty percent (50%) or more of the
+outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity
+exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation
+source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical
+transformation or translation of a Source form, including but
+not limited to compiled object code, generated documentation,
+and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or
+Object form, made available under the License, as indicated by a
+copyright notice that is included in or attached to the work
+(an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object
+form, that is based on (or derived from) the Work and for which the
+editorial revisions, annotations, elaborations, or other modifications
+represent, as a whole, an original work of authorship. For the purposes
+of this License, Derivative Works shall not include works that remain
+separable from, or merely link (or bind by name) to the interfaces of,
+the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including
+the original version of the Work and any modifications or additions
+to that Work or Derivative Works thereof, that is intentionally
+submitted to Licensor for inclusion in the Work by the copyright owner
+or by an individual or Legal Entity authorized to submit on behalf of
+the copyright owner. For the purposes of this definition, "submitted"
+means any form of electronic, verbal, or written communication sent
+to the Licensor or its representatives, including but not limited to
+communication on electronic mailing lists, source code control systems,
+and issue tracking systems that are managed by, or on behalf of, the
+Licensor for the purpose of discussing and improving the Work, but
+excluding communication that is conspicuously marked or otherwise
+designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity
+on behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of,
+publicly display, publicly perform, sublicense, and distribute the
+Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made,
+use, offer to sell, sell, import, and otherwise transfer the Work,
+where such license applies only to those patent claims licensable
+by such Contributor that are necessarily infringed by their
+Contribution(s) alone or by combination of their Contribution(s)
+with the Work to which such Contribution(s) was submitted. If You
+institute patent litigation against any entity (including a
+cross-claim or counterclaim in a lawsuit) alleging that the Work
+or a Contribution incorporated within the Work constitutes direct
+or contributory patent infringement, then any patent licenses
+granted to You under this License for that Work shall terminate
+as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+Work or Derivative Works thereof in any medium, with or without
+modifications, and in Source or Object form, provided that You
+meet the following conditions:
+
+(a) You must give any other recipients of the Work or
+Derivative Works a copy of this License; and
+
+(b) You must cause any modified files to carry prominent notices
+stating that You changed the files; and
+
+(c) You must retain, in the Source form of any Derivative Works
+that You distribute, all copyright, patent, trademark, and
+attribution notices from the Source form of the Work,
+excluding those notices that do not pertain to any part of
+the Derivative Works; and
+
+(d) If the Work includes a "NOTICE" text file as part of its
+distribution, then any Derivative Works that You distribute must
+include a readable copy of the attribution notices contained
+within such NOTICE file, excluding those notices that do not
+pertain to any part of the Derivative Works, in at least one
+of the following places: within a NOTICE text file distributed
+as part of the Derivative Works; within the Source form or
+documentation, if provided along with the Derivative Works; or,
+within a display generated by the Derivative Works, if and
+wherever such third-party notices normally appear. The contents
+of the NOTICE file are for informational purposes only and
+do not modify the License. You may add Your own attribution
+notices within Derivative Works that You distribute, alongside
+or as an addendum to the NOTICE text from the Work, provided
+that such additional attribution notices cannot be construed
+as modifying the License.
+
+You may add Your own copyright statement to Your modifications and
+may provide additional or different license terms and conditions
+for use, reproduction, or distribution of Your modifications, or
+for any such Derivative Works as a whole, provided Your use,
+reproduction, and distribution of the Work otherwise complies with
+the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+any Contribution intentionally submitted for inclusion in the Work
+by You to the Licensor shall be under the terms and conditions of
+this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify
+the terms of any separate license agreement you may have executed
+with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+names, trademarks, service marks, or product names of the Licensor,
+except as required for reasonable and customary use in describing the
+origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+agreed to in writing, Licensor provides the Work (and each
+Contributor provides its Contributions) on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+implied, including, without limitation, any warranties or conditions
+of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+PARTICULAR PURPOSE. You are solely responsible for determining the
+appropriateness of using or redistributing the Work and assume any
+risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+whether in tort (including negligence), contract, or otherwise,
+unless required by applicable law (such as deliberate and grossly
+negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a
+result of this License or out of the use or inability to use the
+Work (including but not limited to damages for loss of goodwill,
+work stoppage, computer failure or malfunction, or any and all
+other commercial damages or losses), even if such Contributor
+has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+the Work or Derivative Works thereof, You may choose to offer,
+and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this
+License. However, in accepting such obligations, You may act only
+on Your own behalf and on Your sole responsibility, not on behalf
+of any other Contributor, and only if You agree to indemnify,
+defend, and hold each Contributor harmless for any liability
+incurred by, or claims asserted against, such Contributor by reason
+of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+To apply the Apache License to your work, attach the following
+boilerplate notice, with the fields enclosed by brackets "[]"
+replaced with your own identifying information. (Don't include
+the brackets!) The text should be enclosed in the appropriate
+comment syntax for the file format. We also recommend that a
+file or class name and description of purpose be included on the
+same "printed page" as the copyright notice for easier
+identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/README.md b/mayor-orig/www/include/share/googleapi/google/auth/README.md
new file mode 100644
index 00000000..05265f71
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/README.md
@@ -0,0 +1,150 @@
+# Google Auth Library for PHP
+
+<dl>
+ <dt>Homepage</dt><dd><a href="http://www.github.com/google/google-auth-library-php">http://www.github.com/google/google-auth-library-php</a></dd>
+ <dt>Authors</dt>
+ <dd><a href="mailto:temiola@google.com">Tim Emiola</a></dd>
+ <dd><a href="mailto:stanleycheung@google.com">Stanley Cheung</a></dd>
+ <dd><a href="mailto:betterbrent@google.com">Brent Shaffer</a></dd>
+ <dt>Copyright</dt><dd>Copyright © 2015 Google, Inc.</dd>
+ <dt>License</dt><dd>Apache 2.0</dd>
+</dl>
+
+## Description
+
+This is Google's officially supported PHP client library for using OAuth 2.0
+authorization and authentication with Google APIs.
+
+### Installing via Composer
+
+The recommended way to install the google auth library is through
+[Composer](http://getcomposer.org).
+
+```bash
+# Install Composer
+curl -sS https://getcomposer.org/installer | php
+```
+
+Next, run the Composer command to install the latest stable version:
+
+```bash
+composer.phar require google/auth
+```
+
+## Application Default Credentials
+
+This library provides an implementation of
+[application default credentials][application default credentials] for PHP.
+
+The Application Default Credentials provide a simple way to get authorization
+credentials for use in calling Google APIs.
+
+They are best suited for cases when the call needs to have the same identity
+and authorization level for the application independent of the user. This is
+the recommended approach to authorize calls to Cloud APIs, particularly when
+you're building an application that uses Google Compute Engine.
+
+#### Download your Service Account Credentials JSON file
+
+To use `Application Default Credentials`, You first need to download a set of
+JSON credentials for your project. Go to **APIs & Auth** > **Credentials** in
+the [Google Developers Console][developer console] and select
+**Service account** from the **Add credentials** dropdown.
+
+> This file is your *only copy* of these credentials. It should never be
+> committed with your source code, and should be stored securely.
+
+Once downloaded, store the path to this file in the
+`GOOGLE_APPLICATION_CREDENTIALS` environment variable.
+
+```php
+putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/my/credentials.json');
+```
+
+> PHP's `putenv` function is just one way to set an environment variable.
+> Consider using `.htaccess` or apache configuration files as well.
+
+#### Enable the API you want to use
+
+Before making your API call, you must be sure the API you're calling has been
+enabled. Go to **APIs & Auth** > **APIs** in the
+[Google Developers Console][developer console] and enable the APIs you'd like to
+call. For the example below, you must enable the `Drive API`.
+
+#### Call the APIs
+
+As long as you update the environment variable below to point to *your* JSON
+credentials file, the following code should output a list of your Drive files.
+
+```php
+use Google\Auth\ApplicationDefaultCredentials;
+use GuzzleHttp\Client;
+use GuzzleHttp\HandlerStack;
+
+// specify the path to your application credentials
+putenv('GOOGLE_APPLICATION_CREDENTIALS=/path/to/my/credentials.json');
+
+// define the scopes for your API call
+$scopes = ['https://www.googleapis.com/auth/drive.readonly'];
+
+// create middleware
+$middleware = ApplicationDefaultCredentials::getMiddleware($scopes);
+$stack = HandlerStack::create();
+$stack->push($middleware);
+
+// create the HTTP client
+$client = new Client([
+ 'handler' => $stack,
+ 'base_url' => 'https://www.googleapis.com',
+ 'auth' => 'google_auth' // authorize all requests
+]);
+
+// make the request
+$response = $client->get('drive/v2/files');
+
+// show the result!
+print_r((string) $response->getBody());
+```
+
+##### Guzzle 5 Compatibility
+
+If you are using [Guzzle 5][Guzzle 5], replace the `create middleware` and
+`create the HTTP Client` steps with the following:
+
+```php
+// create the HTTP client
+$client = new Client([
+ 'base_url' => 'https://www.googleapis.com',
+ 'auth' => 'google_auth' // authorize all requests
+]);
+
+// create subscriber
+$subscriber = ApplicationDefaultCredentials::getSubscriber($scopes);
+$client->getEmitter()->attach($subscriber);
+
+```
+
+## License
+
+This library is licensed under Apache 2.0. Full license text is
+available in [COPYING][copying].
+
+## Contributing
+
+See [CONTRIBUTING][contributing].
+
+## Support
+
+Please
+[report bugs at the project on Github](https://github.com/google/google-auth-library-php/issues). Don't
+hesitate to
+[ask questions](http://stackoverflow.com/questions/tagged/google-auth-library-php)
+about the client or APIs on [StackOverflow](http://stackoverflow.com).
+
+[google-apis-php-client]: https://github.com/google/google-api-php-client
+[application default credentials]: https://developers.google.com/accounts/docs/application-default-credentials
+[contributing]: https://github.com/google/google-auth-library-php/tree/master/CONTRIBUTING.md
+[copying]: https://github.com/google/google-auth-library-php/tree/master/COPYING
+[Guzzle]: https://github.com/guzzle/guzzle
+[Guzzle 5]: http://docs.guzzlephp.org/en/5.3
+[developer console]: https://console.developers.google.com
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/autoload.php b/mayor-orig/www/include/share/googleapi/google/auth/autoload.php
new file mode 100644
index 00000000..f5473378
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/autoload.php
@@ -0,0 +1,34 @@
+<?php
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+function oauth2client_php_autoload($className)
+{
+ $classPath = explode('_', $className);
+ if ($classPath[0] != 'Google') {
+ return;
+ }
+ if (count($classPath) > 3) {
+ // Maximum class file path depth in this project is 3.
+ $classPath = array_slice($classPath, 0, 3);
+ }
+ $filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php';
+ if (file_exists($filePath)) {
+ require_once $filePath;
+ }
+}
+
+spl_autoload_register('oauth2client_php_autoload');
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/composer.json b/mayor-orig/www/include/share/googleapi/google/auth/composer.json
new file mode 100644
index 00000000..c528ada1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/composer.json
@@ -0,0 +1,28 @@
+{
+ "name": "google/auth",
+ "type": "library",
+ "description": "Google Auth Library for PHP",
+ "keywords": ["google", "oauth2", "authentication"],
+ "homepage": "http://github.com/google/google-auth-library-php",
+ "license": "Apache-2.0",
+ "require": {
+ "php": ">=5.4",
+ "firebase/php-jwt": "~2.0|~3.0|~4.0",
+ "guzzlehttp/guzzle": "~5.3|~6.0",
+ "guzzlehttp/psr7": "~1.2",
+ "psr/http-message": "^1.0",
+ "psr/cache": "^1.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "3.7.*",
+ "friendsofphp/php-cs-fixer": "^1.11"
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ],
+ "psr-4": {
+ "Google\\Auth\\": "src"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/phpunit.xml.dist b/mayor-orig/www/include/share/googleapi/google/auth/phpunit.xml.dist
new file mode 100644
index 00000000..bace58bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/phpunit.xml.dist
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit bootstrap="tests/bootstrap.php" colors="true">
+ <testsuites>
+ <testsuite name="google-auth-tests">
+ <directory suffix="Test.php">tests</directory>
+ </testsuite>
+ </testsuites>
+ <filter>
+ <whitelist>
+ <directory suffix=".php">src</directory>
+ <exclude>
+ <directory suffix="Interface.php">src/</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+</phpunit>
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/ApplicationDefaultCredentials.php b/mayor-orig/www/include/share/googleapi/google/auth/src/ApplicationDefaultCredentials.php
new file mode 100644
index 00000000..5d944db9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/ApplicationDefaultCredentials.php
@@ -0,0 +1,173 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth;
+
+use DomainException;
+use Google\Auth\Credentials\AppIdentityCredentials;
+use Google\Auth\Credentials\GCECredentials;
+use Google\Auth\Middleware\AuthTokenMiddleware;
+use Google\Auth\Subscriber\AuthTokenSubscriber;
+use Psr\Cache\CacheItemPoolInterface;
+
+/**
+ * ApplicationDefaultCredentials obtains the default credentials for
+ * authorizing a request to a Google service.
+ *
+ * Application Default Credentials are described here:
+ * https://developers.google.com/accounts/docs/application-default-credentials
+ *
+ * This class implements the search for the application default credentials as
+ * described in the link.
+ *
+ * It provides three factory methods:
+ * - #get returns the computed credentials object
+ * - #getSubscriber returns an AuthTokenSubscriber built from the credentials object
+ * - #getMiddleware returns an AuthTokenMiddleware built from the credentials object
+ *
+ * This allows it to be used as follows with GuzzleHttp\Client:
+ *
+ * use Google\Auth\ApplicationDefaultCredentials;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
+ *
+ * $middleware = ApplicationDefaultCredentials::getMiddleware(
+ * 'https://www.googleapis.com/auth/taskqueue'
+ * );
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
+ *
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
+ * 'auth' => 'google_auth' // authorize all requests
+ * ]);
+ *
+ * $res = $client->get('myproject/taskqueues/myqueue');
+ */
+class ApplicationDefaultCredentials
+{
+ /**
+ * Obtains an AuthTokenSubscriber that uses the default FetchAuthTokenInterface
+ * implementation to use in this environment.
+ *
+ * If supplied, $scope is used to in creating the credentials instance if
+ * this does not fallback to the compute engine defaults.
+ *
+ * @param string|array scope the scope of the access request, expressed
+ * either as an Array or as a space-delimited String.
+ * @param callable $httpHandler callback which delivers psr7 request
+ * @param array $cacheConfig configuration for the cache when it's present
+ * @param CacheItemPoolInterface $cache an implementation of CacheItemPoolInterface
+ *
+ * @return AuthTokenSubscriber
+ *
+ * @throws DomainException if no implementation can be obtained.
+ */
+ public static function getSubscriber(
+ $scope = null,
+ callable $httpHandler = null,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache = null
+ ) {
+ $creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache);
+
+ return new AuthTokenSubscriber($creds, $cacheConfig);
+ }
+
+ /**
+ * Obtains an AuthTokenMiddleware that uses the default FetchAuthTokenInterface
+ * implementation to use in this environment.
+ *
+ * If supplied, $scope is used to in creating the credentials instance if
+ * this does not fallback to the compute engine defaults.
+ *
+ * @param string|array scope the scope of the access request, expressed
+ * either as an Array or as a space-delimited String.
+ * @param callable $httpHandler callback which delivers psr7 request
+ * @param array $cacheConfig configuration for the cache when it's present
+ * @param CacheItemPoolInterface $cache
+ *
+ * @return AuthTokenMiddleware
+ *
+ * @throws DomainException if no implementation can be obtained.
+ */
+ public static function getMiddleware(
+ $scope = null,
+ callable $httpHandler = null,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache = null
+ ) {
+ $creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache);
+
+ return new AuthTokenMiddleware($creds, $cacheConfig);
+ }
+
+ /**
+ * Obtains the default FetchAuthTokenInterface implementation to use
+ * in this environment.
+ *
+ * If supplied, $scope is used to in creating the credentials instance if
+ * this does not fallback to the Compute Engine defaults.
+ *
+ * @param string|array scope the scope of the access request, expressed
+ * either as an Array or as a space-delimited String.
+ * @param callable $httpHandler callback which delivers psr7 request
+ * @param array $cacheConfig configuration for the cache when it's present
+ * @param CacheItemPoolInterface $cache
+ *
+ * @return CredentialsLoader
+ *
+ * @throws DomainException if no implementation can be obtained.
+ */
+ public static function getCredentials(
+ $scope = null,
+ callable $httpHandler = null,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache = null
+ ) {
+ $creds = null;
+ $jsonKey = CredentialsLoader::fromEnv()
+ ?: CredentialsLoader::fromWellKnownFile();
+
+ if (!is_null($jsonKey)) {
+ $creds = CredentialsLoader::makeCredentials($scope, $jsonKey);
+ } elseif (AppIdentityCredentials::onAppEngine() && !GCECredentials::onAppEngineFlexible()) {
+ $creds = new AppIdentityCredentials($scope);
+ } elseif (GCECredentials::onGce($httpHandler)) {
+ $creds = new GCECredentials();
+ }
+
+ if (is_null($creds)) {
+ throw new \DomainException(self::notFound());
+ }
+ if (!is_null($cache)) {
+ $creds = new FetchAuthTokenCache($creds, $cacheConfig, $cache);
+ }
+ return $creds;
+ }
+
+ private static function notFound()
+ {
+ $msg = 'Could not load the default credentials. Browse to ';
+ $msg .= 'https://developers.google.com';
+ $msg .= '/accounts/docs/application-default-credentials';
+ $msg .= ' for more information';
+
+ return $msg;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/InvalidArgumentException.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/InvalidArgumentException.php
new file mode 100644
index 00000000..331e5611
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/InvalidArgumentException.php
@@ -0,0 +1,24 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Cache;
+
+use Psr\Cache\InvalidArgumentException as PsrInvalidArgumentException;
+
+class InvalidArgumentException extends \InvalidArgumentException implements PsrInvalidArgumentException
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/Item.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/Item.php
new file mode 100644
index 00000000..cebc93cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/Item.php
@@ -0,0 +1,185 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Cache;
+
+use Psr\Cache\CacheItemInterface;
+
+/**
+ * A cache item.
+ */
+final class Item implements CacheItemInterface
+{
+ /**
+ * @var string
+ */
+ private $key;
+
+ /**
+ * @var mixed
+ */
+ private $value;
+
+ /**
+ * @var \DateTime
+ */
+ private $expiration;
+
+ /**
+ * @var bool
+ */
+ private $isHit = false;
+
+ /**
+ * @param string $key
+ */
+ public function __construct($key)
+ {
+ $this->key = $key;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getKey()
+ {
+ return $this->key;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function get()
+ {
+ return $this->isHit() ? $this->value : null;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function isHit()
+ {
+ if (!$this->isHit) {
+ return false;
+ }
+
+ if ($this->expiration === null) {
+ return true;
+ }
+
+ return new \DateTime() < $this->expiration;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function set($value)
+ {
+ $this->isHit = true;
+ $this->value = $value;
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function expiresAt($expiration)
+ {
+ if ($this->isValidExpiration($expiration)) {
+ $this->expiration = $expiration;
+
+ return $this;
+ }
+
+ $implementationMessage = interface_exists('DateTimeInterface')
+ ? 'implement interface DateTimeInterface'
+ : 'be an instance of DateTime';
+
+ $error = sprintf(
+ 'Argument 1 passed to %s::expiresAt() must %s, %s given',
+ get_class($this),
+ $implementationMessage,
+ gettype($expiration)
+ );
+
+ $this->handleError($error);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function expiresAfter($time)
+ {
+ if (is_int($time)) {
+ $this->expiration = new \DateTime("now + $time seconds");
+ } elseif ($time instanceof \DateInterval) {
+ $this->expiration = (new \DateTime())->add($time);
+ } elseif ($time === null) {
+ $this->expiration = $time;
+ } else {
+ $message = 'Argument 1 passed to %s::expiresAfter() must be an ' .
+ 'instance of DateInterval or of the type integer, %s given';
+ $error = sprintf($message, get_class($this), gettype($expiration));
+
+ $this->handleError($error);
+ }
+
+ return $this;
+ }
+
+ /**
+ * Handles an error.
+ *
+ * @param string $error
+ * @throws \TypeError
+ */
+ private function handleError($error)
+ {
+ if (class_exists('TypeError')) {
+ throw new \TypeError($error);
+ }
+
+ trigger_error($error, E_USER_ERROR);
+ }
+
+ /**
+ * Determines if an expiration is valid based on the rules defined by PSR6.
+ *
+ * @param mixed $expiration
+ * @return bool
+ */
+ private function isValidExpiration($expiration)
+ {
+ if ($expiration === null) {
+ return true;
+ }
+
+ // We test for two types here due to the fact the DateTimeInterface
+ // was not introduced until PHP 5.5. Checking for the DateTime type as
+ // well allows us to support 5.4.
+ if ($expiration instanceof \DateTimeInterface) {
+ return true;
+ }
+
+ if ($expiration instanceof \DateTime) {
+ return true;
+ }
+
+ return false;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/MemoryCacheItemPool.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/MemoryCacheItemPool.php
new file mode 100644
index 00000000..9533c2cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Cache/MemoryCacheItemPool.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Cache;
+
+use Psr\Cache\CacheItemInterface;
+use Psr\Cache\CacheItemPoolInterface;
+
+/**
+ * Simple in-memory cache implementation.
+ */
+final class MemoryCacheItemPool implements CacheItemPoolInterface
+{
+ /**
+ * @var CacheItemInterface[]
+ */
+ private $items;
+
+ /**
+ * @var CacheItemInterface[]
+ */
+ private $deferredItems;
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getItem($key)
+ {
+ return current($this->getItems([$key]));
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getItems(array $keys = [])
+ {
+ $items = [];
+
+ foreach ($keys as $key) {
+ $this->isValidKey($key);
+ $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new Item($key);
+ }
+
+ return $items;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function hasItem($key)
+ {
+ $this->isValidKey($key);
+
+ return isset($this->items[$key]) && $this->items[$key]->isHit();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function clear()
+ {
+ $this->items = [];
+ $this->deferred = [];
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function deleteItem($key)
+ {
+ return $this->deleteItems([$key]);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function deleteItems(array $keys)
+ {
+ array_walk($keys, [$this, 'isValidKey']);
+
+ foreach ($keys as $key) {
+ unset($this->items[$key]);
+ }
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function save(CacheItemInterface $item)
+ {
+ $this->items[$item->getKey()] = $item;
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function saveDeferred(CacheItemInterface $item)
+ {
+ $this->deferredItems[$item->getKey()] = $item;
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function commit()
+ {
+ foreach ($this->deferredItems as $item) {
+ $this->save($item);
+ }
+
+ $this->deferredItems = [];
+
+ return true;
+ }
+
+ /**
+ * Determines if the provided key is valid.
+ *
+ * @param string $key
+ * @return bool
+ * @throws InvalidArgumentException
+ */
+ private function isValidKey($key)
+ {
+ $invalidCharacters = '{}()/\\\\@:';
+
+ if (!is_string($key) || preg_match("#[$invalidCharacters]#", $key)) {
+ throw new InvalidArgumentException('The provided key is not valid: ' . var_export($key, true));
+ }
+
+ return true;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/CacheTrait.php b/mayor-orig/www/include/share/googleapi/google/auth/src/CacheTrait.php
new file mode 100644
index 00000000..02b4b923
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/CacheTrait.php
@@ -0,0 +1,72 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth;
+
+trait CacheTrait
+{
+ /**
+ * Gets the cached value if it is present in the cache when that is
+ * available.
+ */
+ private function getCachedValue($k)
+ {
+ if (is_null($this->cache)) {
+ return;
+ }
+
+ $key = $this->getFullCacheKey($k);
+ if (is_null($key)) {
+ return;
+ }
+
+ $cacheItem = $this->cache->getItem($key);
+ return $cacheItem->get();
+ }
+
+ /**
+ * Saves the value in the cache when that is available.
+ */
+ private function setCachedValue($k, $v)
+ {
+ if (is_null($this->cache)) {
+ return;
+ }
+
+ $key = $this->getFullCacheKey($k);
+ if (is_null($key)) {
+ return;
+ }
+
+ $cacheItem = $this->cache->getItem($key);
+ $cacheItem->set($v);
+ $cacheItem->expiresAfter($this->cacheConfig['lifetime']);
+ return $this->cache->save($cacheItem);
+ }
+
+ private function getFullCacheKey($key)
+ {
+ if (is_null($key)) {
+ return;
+ }
+
+ $key = $this->cacheConfig['prefix'] . $key;
+
+ // ensure we do not have illegal characters
+ return preg_replace('|[^a-zA-Z0-9_\.!]|', '', $key);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/AppIdentityCredentials.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/AppIdentityCredentials.php
new file mode 100644
index 00000000..661c64c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/AppIdentityCredentials.php
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Credentials;
+
+/*
+ * The AppIdentityService class is automatically defined on App Engine,
+ * so including this dependency is not necessary, and will result in a
+ * PHP fatal error in the App Engine environment.
+ */
+use google\appengine\api\app_identity\AppIdentityService;
+use Google\Auth\CredentialsLoader;
+
+/**
+ * AppIdentityCredentials supports authorization on Google App Engine.
+ *
+ * It can be used to authorize requests using the AuthTokenMiddleware or
+ * AuthTokenSubscriber, but will only succeed if being run on App Engine:
+ *
+ * use Google\Auth\Credentials\AppIdentityCredentials;
+ * use Google\Auth\Middleware\AuthTokenMiddleware;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
+ *
+ * $gae = new AppIdentityCredentials('https://www.googleapis.com/auth/books');
+ * $middleware = new AuthTokenMiddleware($gae);
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
+ *
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_uri' => 'https://www.googleapis.com/books/v1',
+ * 'auth' => 'google_auth'
+ * ]);
+ *
+ * $res = $client->get('volumes?q=Henry+David+Thoreau&country=US');
+ */
+class AppIdentityCredentials extends CredentialsLoader
+{
+ /**
+ * Result of fetchAuthToken.
+ *
+ * @array
+ */
+ protected $lastReceivedToken;
+
+ /**
+ * Array of OAuth2 scopes to be requested.
+ */
+ private $scope;
+
+ public function __construct($scope = array())
+ {
+ $this->scope = $scope;
+ }
+
+ /**
+ * Determines if this an App Engine instance, by accessing the SERVER_SOFTWARE
+ * environment variable.
+ *
+ * @return true if this an App Engine Instance, false otherwise
+ */
+ public static function onAppEngine()
+ {
+ return isset($_SERVER['SERVER_SOFTWARE']) &&
+ strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false;
+ }
+
+ /**
+ * Implements FetchAuthTokenInterface#fetchAuthToken.
+ *
+ * Fetches the auth tokens using the AppIdentityService if available.
+ * As the AppIdentityService uses protobufs to fetch the access token,
+ * the GuzzleHttp\ClientInterface instance passed in will not be used.
+ *
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array the auth metadata:
+ * array(2) {
+ * ["access_token"]=>
+ * string(3) "xyz"
+ * ["expiration_time"]=>
+ * string(10) "1444339905"
+ * }
+ *
+ * @throws \Exception
+ */
+ public function fetchAuthToken(callable $httpHandler = null)
+ {
+ if (!self::onAppEngine()) {
+ return array();
+ }
+
+ if (!class_exists('google\appengine\api\app_identity\AppIdentityService')) {
+ throw new \Exception(
+ 'This class must be run in App Engine, or you must include the AppIdentityService '
+ . 'mock class defined in tests/mocks/AppIdentityService.php'
+ );
+ }
+
+ // AppIdentityService expects an array when multiple scopes are supplied
+ $scope = is_array($this->scope) ? $this->scope : explode(' ', $this->scope);
+
+ $token = AppIdentityService::getAccessToken($scope);
+ $this->lastReceivedToken = $token;
+
+ return $token;
+ }
+
+ /**
+ * @return array|null
+ */
+ public function getLastReceivedToken()
+ {
+ if ($this->lastReceivedToken) {
+ return [
+ 'access_token' => $this->lastReceivedToken['access_token'],
+ 'expires_at' => $this->lastReceivedToken['expiration_time'],
+ ];
+ }
+
+ return null;
+ }
+
+ /**
+ * Caching is handled by the underlying AppIdentityService, return empty string
+ * to prevent caching.
+ *
+ * @return string
+ */
+ public function getCacheKey()
+ {
+ return '';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/GCECredentials.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/GCECredentials.php
new file mode 100644
index 00000000..43115290
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/GCECredentials.php
@@ -0,0 +1,219 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Credentials;
+
+use Google\Auth\CredentialsLoader;
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+use GuzzleHttp\Exception\ClientException;
+use GuzzleHttp\Exception\RequestException;
+use GuzzleHttp\Exception\ServerException;
+use GuzzleHttp\Psr7\Request;
+
+/**
+ * GCECredentials supports authorization on Google Compute Engine.
+ *
+ * It can be used to authorize requests using the AuthTokenMiddleware, but will
+ * only succeed if being run on GCE:
+ *
+ * use Google\Auth\Credentials\GCECredentials;
+ * use Google\Auth\Middleware\AuthTokenMiddleware;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
+ *
+ * $gce = new GCECredentials();
+ * $middleware = new AuthTokenMiddleware($gce);
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
+ *
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
+ * 'auth' => 'google_auth'
+ * ]);
+ *
+ * $res = $client->get('myproject/taskqueues/myqueue');
+ */
+class GCECredentials extends CredentialsLoader
+{
+ const cacheKey = 'GOOGLE_AUTH_PHP_GCE';
+ /**
+ * The metadata IP address on appengine instances.
+ *
+ * The IP is used instead of the domain 'metadata' to avoid slow responses
+ * when not on Compute Engine.
+ */
+ const METADATA_IP = '169.254.169.254';
+
+ /**
+ * The metadata path of the default token.
+ */
+ const TOKEN_URI_PATH = 'v1/instance/service-accounts/default/token';
+
+ /**
+ * The header whose presence indicates GCE presence.
+ */
+ const FLAVOR_HEADER = 'Metadata-Flavor';
+
+ /**
+ * Flag used to ensure that the onGCE test is only done once;.
+ *
+ * @var bool
+ */
+ private $hasCheckedOnGce = false;
+
+ /**
+ * Flag that stores the value of the onGCE check.
+ *
+ * @var bool
+ */
+ private $isOnGce = false;
+
+ /**
+ * Result of fetchAuthToken.
+ */
+ protected $lastReceivedToken;
+
+ /**
+ * The full uri for accessing the default token.
+ *
+ * @return string
+ */
+ public static function getTokenUri()
+ {
+ $base = 'http://' . self::METADATA_IP . '/computeMetadata/';
+
+ return $base . self::TOKEN_URI_PATH;
+ }
+
+ /**
+ * Determines if this an App Engine Flexible instance, by accessing the
+ * GAE_VM environment variable.
+ *
+ * @return true if this an App Engine Flexible Instance, false otherwise
+ */
+ public static function onAppEngineFlexible()
+ {
+ return isset($_SERVER['GAE_VM']) && 'true' === $_SERVER['GAE_VM'];
+ }
+
+ /**
+ * Determines if this a GCE instance, by accessing the expected metadata
+ * host.
+ * If $httpHandler is not specified a the default HttpHandler is used.
+ *
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return true if this a GCEInstance false otherwise
+ */
+ public static function onGce(callable $httpHandler = null)
+ {
+ if (is_null($httpHandler)) {
+ $httpHandler = HttpHandlerFactory::build();
+ }
+ $checkUri = 'http://' . self::METADATA_IP;
+ try {
+ // Comment from: oauth2client/client.py
+ //
+ // Note: the explicit `timeout` below is a workaround. The underlying
+ // issue is that resolving an unknown host on some networks will take
+ // 20-30 seconds; making this timeout short fixes the issue, but
+ // could lead to false negatives in the event that we are on GCE, but
+ // the metadata resolution was particularly slow. The latter case is
+ // "unlikely".
+ $resp = $httpHandler(
+ new Request('GET', $checkUri),
+ ['timeout' => 0.3]
+ );
+
+ return $resp->getHeaderLine(self::FLAVOR_HEADER) == 'Google';
+ } catch (ClientException $e) {
+ return false;
+ } catch (ServerException $e) {
+ return false;
+ } catch (RequestException $e) {
+ return false;
+ }
+ }
+
+ /**
+ * Implements FetchAuthTokenInterface#fetchAuthToken.
+ *
+ * Fetches the auth tokens from the GCE metadata host if it is available.
+ * If $httpHandler is not specified a the default HttpHandler is used.
+ *
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array the response
+ *
+ * @throws \Exception
+ */
+ public function fetchAuthToken(callable $httpHandler = null)
+ {
+ if (is_null($httpHandler)) {
+ $httpHandler = HttpHandlerFactory::build();
+ }
+ if (!$this->hasCheckedOnGce) {
+ $this->isOnGce = self::onGce($httpHandler);
+ }
+ if (!$this->isOnGce) {
+ return array(); // return an empty array with no access token
+ }
+ $resp = $httpHandler(
+ new Request(
+ 'GET',
+ self::getTokenUri(),
+ [self::FLAVOR_HEADER => 'Google']
+ )
+ );
+ $body = (string)$resp->getBody();
+
+ // Assume it's JSON; if it's not throw an exception
+ if (null === $json = json_decode($body, true)) {
+ throw new \Exception('Invalid JSON response');
+ }
+
+ // store this so we can retrieve it later
+ $this->lastReceivedToken = $json;
+ $this->lastReceivedToken['expires_at'] = time() + $json['expires_in'];
+
+ return $json;
+ }
+
+ /**
+ * @return string
+ */
+ public function getCacheKey()
+ {
+ return self::cacheKey;
+ }
+
+ /**
+ * @return array|null
+ */
+ public function getLastReceivedToken()
+ {
+ if ($this->lastReceivedToken) {
+ return [
+ 'access_token' => $this->lastReceivedToken['access_token'],
+ 'expires_at' => $this->lastReceivedToken['expires_at'],
+ ];
+ }
+
+ return null;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/IAMCredentials.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/IAMCredentials.php
new file mode 100644
index 00000000..0d2a37d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/IAMCredentials.php
@@ -0,0 +1,89 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Credentials;
+
+/**
+ * Authenticates requests using IAM credentials.
+ */
+class IAMCredentials
+{
+ const SELECTOR_KEY = 'x-goog-iam-authority-selector';
+ const TOKEN_KEY = 'x-goog-iam-authorization-token';
+
+ /**
+ * @var string
+ */
+ private $selector;
+
+ /**
+ * @var string
+ */
+ private $token;
+
+ /**
+ * @param $selector string the IAM selector
+ * @param $token string the IAM token
+ */
+ public function __construct($selector, $token)
+ {
+ if (!is_string($selector)) {
+ throw new \InvalidArgumentException(
+ 'selector must be a string');
+ }
+ if (!is_string($token)) {
+ throw new \InvalidArgumentException(
+ 'token must be a string');
+ }
+
+ $this->selector = $selector;
+ $this->token = $token;
+ }
+
+ /**
+ * export a callback function which updates runtime metadata.
+ *
+ * @return array updateMetadata function
+ */
+ public function getUpdateMetadataFunc()
+ {
+ return array($this, 'updateMetadata');
+ }
+
+ /**
+ * Updates metadata with the appropriate header metadata.
+ *
+ * @param array $metadata metadata hashmap
+ * @param string $unusedAuthUri optional auth uri
+ * @param callable $httpHandler callback which delivers psr7 request
+ * Note: this param is unused here, only included here for
+ * consistency with other credentials class
+ *
+ * @return array updated metadata hashmap
+ */
+ public function updateMetadata(
+ $metadata,
+ $unusedAuthUri = null,
+ callable $httpHandler = null
+ ) {
+ $metadata_copy = $metadata;
+ $metadata_copy[self::SELECTOR_KEY] = $this->selector;
+ $metadata_copy[self::TOKEN_KEY] = $this->token;
+
+ return $metadata_copy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountCredentials.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountCredentials.php
new file mode 100644
index 00000000..db391ecf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountCredentials.php
@@ -0,0 +1,177 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Credentials;
+
+use Google\Auth\CredentialsLoader;
+use Google\Auth\OAuth2;
+
+/**
+ * ServiceAccountCredentials supports authorization using a Google service
+ * account.
+ *
+ * (cf https://developers.google.com/accounts/docs/OAuth2ServiceAccount)
+ *
+ * It's initialized using the json key file that's downloadable from developer
+ * console, which should contain a private_key and client_email fields that it
+ * uses.
+ *
+ * Use it with AuthTokenMiddleware to authorize http requests:
+ *
+ * use Google\Auth\Credentials\ServiceAccountCredentials;
+ * use Google\Auth\Middleware\AuthTokenMiddleware;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
+ *
+ * $sa = new ServiceAccountCredentials(
+ * 'https://www.googleapis.com/auth/taskqueue',
+ * '/path/to/your/json/key_file.json'
+ * );
+ * $middleware = new AuthTokenMiddleware($sa);
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
+ *
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
+ * 'auth' => 'google_auth' // authorize all requests
+ * ]);
+ *
+ * $res = $client->get('myproject/taskqueues/myqueue');
+ */
+class ServiceAccountCredentials extends CredentialsLoader
+{
+ /**
+ * The OAuth2 instance used to conduct authorization.
+ *
+ * @var OAuth2
+ */
+ protected $auth;
+
+ /**
+ * Create a new ServiceAccountCredentials.
+ *
+ * @param string|array $scope the scope of the access request, expressed
+ * either as an Array or as a space-delimited String.
+ * @param string|array $jsonKey JSON credential file path or JSON credentials
+ * as an associative array
+ * @param string $sub an email address account to impersonate, in situations when
+ * the service account has been delegated domain wide access.
+ */
+ public function __construct(
+ $scope,
+ $jsonKey,
+ $sub = null
+ ) {
+ if (is_string($jsonKey)) {
+ if (!file_exists($jsonKey)) {
+ throw new \InvalidArgumentException('file does not exist');
+ }
+ $jsonKeyStream = file_get_contents($jsonKey);
+ if (!$jsonKey = json_decode($jsonKeyStream, true)) {
+ throw new \LogicException('invalid json for auth config');
+ }
+ }
+ if (!array_key_exists('client_email', $jsonKey)) {
+ throw new \InvalidArgumentException(
+ 'json key is missing the client_email field');
+ }
+ if (!array_key_exists('private_key', $jsonKey)) {
+ throw new \InvalidArgumentException(
+ 'json key is missing the private_key field');
+ }
+ $this->auth = new OAuth2([
+ 'audience' => self::TOKEN_CREDENTIAL_URI,
+ 'issuer' => $jsonKey['client_email'],
+ 'scope' => $scope,
+ 'signingAlgorithm' => 'RS256',
+ 'signingKey' => $jsonKey['private_key'],
+ 'sub' => $sub,
+ 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI,
+ ]);
+ }
+
+ /**
+ * @param callable $httpHandler
+ *
+ * @return array
+ */
+ public function fetchAuthToken(callable $httpHandler = null)
+ {
+ return $this->auth->fetchAuthToken($httpHandler);
+ }
+
+ /**
+ * @return string
+ */
+ public function getCacheKey()
+ {
+ $key = $this->auth->getIssuer() . ':' . $this->auth->getCacheKey();
+ if ($sub = $this->auth->getSub()) {
+ $key .= ':' . $sub;
+ }
+
+ return $key;
+ }
+
+ /**
+ * @return array
+ */
+ public function getLastReceivedToken()
+ {
+ return $this->auth->getLastReceivedToken();
+ }
+
+ /**
+ * Updates metadata with the authorization token.
+ *
+ * @param array $metadata metadata hashmap
+ * @param string $authUri optional auth uri
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array updated metadata hashmap
+ */
+ public function updateMetadata(
+ $metadata,
+ $authUri = null,
+ callable $httpHandler = null
+ ) {
+ // scope exists. use oauth implementation
+ $scope = $this->auth->getScope();
+ if (!is_null($scope)) {
+ return parent::updateMetadata($metadata, $authUri, $httpHandler);
+ }
+
+ // no scope found. create jwt with the auth uri
+ $credJson = array(
+ 'private_key' => $this->auth->getSigningKey(),
+ 'client_email' => $this->auth->getIssuer(),
+ );
+ $jwtCreds = new ServiceAccountJwtAccessCredentials($credJson);
+
+ return $jwtCreds->updateMetadata($metadata, $authUri, $httpHandler);
+ }
+
+ /**
+ * @param string $sub an email address account to impersonate, in situations when
+ * the service account has been delegated domain wide access.
+ */
+ public function setSub($sub)
+ {
+ $this->auth->setSub($sub);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php
new file mode 100644
index 00000000..28cc7096
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php
@@ -0,0 +1,131 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Credentials;
+
+use Google\Auth\CredentialsLoader;
+use Google\Auth\OAuth2;
+
+/**
+ * Authenticates requests using Google's Service Account credentials via
+ * JWT Access.
+ *
+ * This class allows authorizing requests for service accounts directly
+ * from credentials from a json key file downloaded from the developer
+ * console (via 'Generate new Json Key'). It is not part of any OAuth2
+ * flow, rather it creates a JWT and sends that as a credential.
+ */
+class ServiceAccountJwtAccessCredentials extends CredentialsLoader
+{
+ /**
+ * The OAuth2 instance used to conduct authorization.
+ *
+ * @var OAuth2
+ */
+ protected $auth;
+
+ /**
+ * Create a new ServiceAccountJwtAccessCredentials.
+ *
+ * @param string|array $jsonKey JSON credential file path or JSON credentials
+ * as an associative array
+ */
+ public function __construct($jsonKey)
+ {
+ if (is_string($jsonKey)) {
+ if (!file_exists($jsonKey)) {
+ throw new \InvalidArgumentException('file does not exist');
+ }
+ $jsonKeyStream = file_get_contents($jsonKey);
+ if (!$jsonKey = json_decode($jsonKeyStream, true)) {
+ throw new \LogicException('invalid json for auth config');
+ }
+ }
+ if (!array_key_exists('client_email', $jsonKey)) {
+ throw new \InvalidArgumentException(
+ 'json key is missing the client_email field');
+ }
+ if (!array_key_exists('private_key', $jsonKey)) {
+ throw new \InvalidArgumentException(
+ 'json key is missing the private_key field');
+ }
+ $this->auth = new OAuth2([
+ 'issuer' => $jsonKey['client_email'],
+ 'sub' => $jsonKey['client_email'],
+ 'signingAlgorithm' => 'RS256',
+ 'signingKey' => $jsonKey['private_key'],
+ ]);
+ }
+
+ /**
+ * Updates metadata with the authorization token.
+ *
+ * @param array $metadata metadata hashmap
+ * @param string $authUri optional auth uri
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array updated metadata hashmap
+ */
+ public function updateMetadata(
+ $metadata,
+ $authUri = null,
+ callable $httpHandler = null
+ ) {
+ if (empty($authUri)) {
+ return $metadata;
+ }
+
+ $this->auth->setAudience($authUri);
+
+ return parent::updateMetadata($metadata, $authUri, $httpHandler);
+ }
+
+ /**
+ * Implements FetchAuthTokenInterface#fetchAuthToken.
+ *
+ * @param callable $httpHandler
+ *
+ * @return array|void
+ */
+ public function fetchAuthToken(callable $httpHandler = null)
+ {
+ $audience = $this->auth->getAudience();
+ if (empty($audience)) {
+ return null;
+ }
+
+ $access_token = $this->auth->toJwt();
+
+ return array('access_token' => $access_token);
+ }
+
+ /**
+ * @return string
+ */
+ public function getCacheKey()
+ {
+ return $this->auth->getCacheKey();
+ }
+
+ /**
+ * @return array
+ */
+ public function getLastReceivedToken()
+ {
+ return $this->auth->getLastReceivedToken();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/UserRefreshCredentials.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/UserRefreshCredentials.php
new file mode 100644
index 00000000..6c7e5cfa
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Credentials/UserRefreshCredentials.php
@@ -0,0 +1,110 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Credentials;
+
+use Google\Auth\CredentialsLoader;
+use Google\Auth\OAuth2;
+
+/**
+ * Authenticates requests using User Refresh credentials.
+ *
+ * This class allows authorizing requests from user refresh tokens.
+ *
+ * This the end of the result of a 3LO flow. E.g, the end result of
+ * 'gcloud auth login' saves a file with these contents in well known
+ * location
+ *
+ * @see [Application Default Credentials](http://goo.gl/mkAHpZ)
+ */
+class UserRefreshCredentials extends CredentialsLoader
+{
+ /**
+ * The OAuth2 instance used to conduct authorization.
+ *
+ * @var OAuth2
+ */
+ protected $auth;
+
+ /**
+ * Create a new UserRefreshCredentials.
+ *
+ * @param string|array $scope the scope of the access request, expressed
+ * either as an Array or as a space-delimited String.
+ * @param string|array $jsonKey JSON credential file path or JSON credentials
+ * as an associative array
+ */
+ public function __construct(
+ $scope,
+ $jsonKey
+ ) {
+ if (is_string($jsonKey)) {
+ if (!file_exists($jsonKey)) {
+ throw new \InvalidArgumentException('file does not exist');
+ }
+ $jsonKeyStream = file_get_contents($jsonKey);
+ if (!$jsonKey = json_decode($jsonKeyStream, true)) {
+ throw new \LogicException('invalid json for auth config');
+ }
+ }
+ if (!array_key_exists('client_id', $jsonKey)) {
+ throw new \InvalidArgumentException(
+ 'json key is missing the client_id field');
+ }
+ if (!array_key_exists('client_secret', $jsonKey)) {
+ throw new \InvalidArgumentException(
+ 'json key is missing the client_secret field');
+ }
+ if (!array_key_exists('refresh_token', $jsonKey)) {
+ throw new \InvalidArgumentException(
+ 'json key is missing the refresh_token field');
+ }
+ $this->auth = new OAuth2([
+ 'clientId' => $jsonKey['client_id'],
+ 'clientSecret' => $jsonKey['client_secret'],
+ 'refresh_token' => $jsonKey['refresh_token'],
+ 'scope' => $scope,
+ 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI,
+ ]);
+ }
+
+ /**
+ * @param callable $httpHandler
+ *
+ * @return array
+ */
+ public function fetchAuthToken(callable $httpHandler = null)
+ {
+ return $this->auth->fetchAuthToken($httpHandler);
+ }
+
+ /**
+ * @return string
+ */
+ public function getCacheKey()
+ {
+ return $this->auth->getClientId() . ':' . $this->auth->getCacheKey();
+ }
+
+ /**
+ * @return array
+ */
+ public function getLastReceivedToken()
+ {
+ return $this->auth->getLastReceivedToken();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/CredentialsLoader.php b/mayor-orig/www/include/share/googleapi/google/auth/src/CredentialsLoader.php
new file mode 100644
index 00000000..5ddeda5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/CredentialsLoader.php
@@ -0,0 +1,163 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth;
+
+use Google\Auth\Credentials\ServiceAccountCredentials;
+use Google\Auth\Credentials\UserRefreshCredentials;
+
+/**
+ * CredentialsLoader contains the behaviour used to locate and find default
+ * credentials files on the file system.
+ */
+abstract class CredentialsLoader implements FetchAuthTokenInterface
+{
+ const TOKEN_CREDENTIAL_URI = 'https://www.googleapis.com/oauth2/v4/token';
+ const ENV_VAR = 'GOOGLE_APPLICATION_CREDENTIALS';
+ const WELL_KNOWN_PATH = 'gcloud/application_default_credentials.json';
+ const NON_WINDOWS_WELL_KNOWN_PATH_BASE = '.config';
+ const AUTH_METADATA_KEY = 'Authorization';
+
+ /**
+ * @param string $cause
+ * @return string
+ */
+ private static function unableToReadEnv($cause)
+ {
+ $msg = 'Unable to read the credential file specified by ';
+ $msg .= ' GOOGLE_APPLICATION_CREDENTIALS: ';
+ $msg .= $cause;
+
+ return $msg;
+ }
+
+ /**
+ * @return bool
+ */
+ private static function isOnWindows()
+ {
+ return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
+ }
+
+ /**
+ * Load a JSON key from the path specified in the environment.
+ *
+ * Load a JSON key from the path specified in the environment
+ * variable GOOGLE_APPLICATION_CREDENTIALS. Return null if
+ * GOOGLE_APPLICATION_CREDENTIALS is not specified.
+ *
+ * @return array JSON key | null
+ */
+ public static function fromEnv()
+ {
+ $path = getenv(self::ENV_VAR);
+ if (empty($path)) {
+ return;
+ }
+ if (!file_exists($path)) {
+ $cause = 'file ' . $path . ' does not exist';
+ throw new \DomainException(self::unableToReadEnv($cause));
+ }
+ $jsonKey = file_get_contents($path);
+ return json_decode($jsonKey, true);
+ }
+
+ /**
+ * Load a JSON key from a well known path.
+ *
+ * The well known path is OS dependent:
+ * - windows: %APPDATA%/gcloud/application_default_credentials.json
+ * - others: $HOME/.config/gcloud/application_default_credentials.json
+ *
+ * If the file does not exists, this returns null.
+ *
+ * @return array JSON key | null
+ */
+ public static function fromWellKnownFile()
+ {
+ $rootEnv = self::isOnWindows() ? 'APPDATA' : 'HOME';
+ $path = [getenv($rootEnv)];
+ if (!self::isOnWindows()) {
+ $path[] = self::NON_WINDOWS_WELL_KNOWN_PATH_BASE;
+ }
+ $path[] = self::WELL_KNOWN_PATH;
+ $path = implode(DIRECTORY_SEPARATOR, $path);
+ if (!file_exists($path)) {
+ return;
+ }
+ $jsonKey = file_get_contents($path);
+ return json_decode($jsonKey, true);
+ }
+
+ /**
+ * Create a new Credentials instance.
+ *
+ * @param string|array scope the scope of the access request, expressed
+ * either as an Array or as a space-delimited String.
+ * @param array $jsonKey the JSON credentials.
+ *
+ * @return ServiceAccountCredentials|UserRefreshCredentials
+ */
+ public static function makeCredentials($scope, array $jsonKey)
+ {
+ if (!array_key_exists('type', $jsonKey)) {
+ throw new \InvalidArgumentException('json key is missing the type field');
+ }
+
+ if ($jsonKey['type'] == 'service_account') {
+ return new ServiceAccountCredentials($scope, $jsonKey);
+ } elseif ($jsonKey['type'] == 'authorized_user') {
+ return new UserRefreshCredentials($scope, $jsonKey);
+ } else {
+ throw new \InvalidArgumentException('invalid value in the type field');
+ }
+ }
+
+ /**
+ * export a callback function which updates runtime metadata.
+ *
+ * @return array updateMetadata function
+ */
+ public function getUpdateMetadataFunc()
+ {
+ return array($this, 'updateMetadata');
+ }
+
+ /**
+ * Updates metadata with the authorization token.
+ *
+ * @param array $metadata metadata hashmap
+ * @param string $authUri optional auth uri
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array updated metadata hashmap
+ */
+ public function updateMetadata(
+ $metadata,
+ $authUri = null,
+ callable $httpHandler = null
+ ) {
+ $result = $this->fetchAuthToken($httpHandler);
+ if (!isset($result['access_token'])) {
+ return $metadata;
+ }
+ $metadata_copy = $metadata;
+ $metadata_copy[self::AUTH_METADATA_KEY] = array('Bearer ' . $result['access_token']);
+
+ return $metadata_copy;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenCache.php b/mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenCache.php
new file mode 100644
index 00000000..5b8e01b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenCache.php
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth;
+
+use Psr\Cache\CacheItemPoolInterface;
+
+/**
+ * A class to implement caching for any object implementing
+ * FetchAuthTokenInterface
+ */
+class FetchAuthTokenCache implements FetchAuthTokenInterface
+{
+ use CacheTrait;
+
+ /**
+ * @var FetchAuthTokenInterface
+ */
+ private $fetcher;
+
+ /**
+ * @var array
+ */
+ private $cacheConfig;
+
+ /**
+ * @var CacheItemPoolInterface
+ */
+ private $cache;
+
+ public function __construct(
+ FetchAuthTokenInterface $fetcher,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache
+ ) {
+ $this->fetcher = $fetcher;
+ $this->cache = $cache;
+ $this->cacheConfig = array_merge([
+ 'lifetime' => 1500,
+ 'prefix' => '',
+ ], (array) $cacheConfig);
+ }
+
+ /**
+ * Implements FetchAuthTokenInterface#fetchAuthToken.
+ *
+ * Checks the cache for a valid auth token and fetches the auth tokens
+ * from the supplied fetcher.
+ *
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array the response
+ *
+ * @throws \Exception
+ */
+ public function fetchAuthToken(callable $httpHandler = null)
+ {
+ // Use the cached value if its available.
+ //
+ // TODO: correct caching; update the call to setCachedValue to set the expiry
+ // to the value returned with the auth token.
+ //
+ // TODO: correct caching; enable the cache to be cleared.
+ $cacheKey = $this->fetcher->getCacheKey();
+ $cached = $this->getCachedValue($cacheKey);
+ if (!empty($cached)) {
+ return ['access_token' => $cached];
+ }
+
+ $auth_token = $this->fetcher->fetchAuthToken($httpHandler);
+
+ if (isset($auth_token['access_token'])) {
+ $this->setCachedValue($cacheKey, $auth_token['access_token']);
+ }
+
+ return $auth_token;
+ }
+
+ /**
+ * @return string
+ */
+ public function getCacheKey()
+ {
+ return $this->getFullCacheKey($this->fetcher->getCacheKey());
+ }
+
+ /**
+ * @return array|null
+ */
+ public function getLastReceivedToken()
+ {
+ return $this->fetcher->getLastReceivedToken();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenInterface.php b/mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenInterface.php
new file mode 100644
index 00000000..e3d8d28b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/FetchAuthTokenInterface.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth;
+
+/**
+ * An interface implemented by objects that can fetch auth tokens.
+ */
+interface FetchAuthTokenInterface
+{
+ /**
+ * Fetches the auth tokens based on the current state.
+ *
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array a hash of auth tokens
+ */
+ public function fetchAuthToken(callable $httpHandler = null);
+
+ /**
+ * Obtains a key that can used to cache the results of #fetchAuthToken.
+ *
+ * If the value is empty, the auth token is not cached.
+ *
+ * @return string a key that may be used to cache the auth token.
+ */
+ public function getCacheKey();
+
+ /**
+ * Returns an associative array with the token and
+ * expiration time.
+ *
+ * @return null|array {
+ * The last received access token.
+ *
+ * @var string $access_token The access token string.
+ * @var int $expires_at The time the token expires as a UNIX timestamp.
+ * }
+ */
+ public function getLastReceivedToken();
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle5HttpHandler.php b/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle5HttpHandler.php
new file mode 100644
index 00000000..7ef647c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle5HttpHandler.php
@@ -0,0 +1,68 @@
+<?php
+/**
+ * Copyright 2015 Google Inc. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace Google\Auth\HttpHandler;
+
+use GuzzleHttp\ClientInterface;
+use GuzzleHttp\Psr7\Response;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+class Guzzle5HttpHandler
+{
+ /**
+ * @var ClientInterface
+ */
+ private $client;
+
+ /**
+ * @param ClientInterface $client
+ */
+ public function __construct(ClientInterface $client)
+ {
+ $this->client = $client;
+ }
+
+ /**
+ * Accepts a PSR-7 Request and an array of options and returns a PSR-7 response.
+ *
+ * @param RequestInterface $request
+ * @param array $options
+ *
+ * @return ResponseInterface
+ */
+ public function __invoke(RequestInterface $request, array $options = [])
+ {
+ $request = $this->client->createRequest(
+ $request->getMethod(),
+ $request->getUri(),
+ array_merge([
+ 'headers' => $request->getHeaders(),
+ 'body' => $request->getBody(),
+ ], $options)
+ );
+
+ $response = $this->client->send($request);
+
+ return new Response(
+ $response->getStatusCode(),
+ $response->getHeaders() ?: [],
+ $response->getBody(),
+ $response->getProtocolVersion(),
+ $response->getReasonPhrase()
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle6HttpHandler.php b/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle6HttpHandler.php
new file mode 100644
index 00000000..79cc7954
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/Guzzle6HttpHandler.php
@@ -0,0 +1,36 @@
+<?php
+
+namespace Google\Auth\HttpHandler;
+
+use GuzzleHttp\ClientInterface;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+class Guzzle6HttpHandler
+{
+ /**
+ * @var ClientInterface
+ */
+ private $client;
+
+ /**
+ * @param ClientInterface $client
+ */
+ public function __construct(ClientInterface $client)
+ {
+ $this->client = $client;
+ }
+
+ /**
+ * Accepts a PSR-7 request and an array of options and returns a PSR-7 response.
+ *
+ * @param RequestInterface $request
+ * @param array $options
+ *
+ * @return ResponseInterface
+ */
+ public function __invoke(RequestInterface $request, array $options = [])
+ {
+ return $this->client->send($request, $options);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/HttpHandlerFactory.php b/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/HttpHandlerFactory.php
new file mode 100644
index 00000000..1ede7982
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/HttpHandler/HttpHandlerFactory.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Copyright 2015 Google Inc. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+namespace Google\Auth\HttpHandler;
+
+use GuzzleHttp\Client;
+use GuzzleHttp\ClientInterface;
+
+class HttpHandlerFactory
+{
+ /**
+ * Builds out a default http handler for the installed version of guzzle.
+ *
+ * @param ClientInterface $client
+ *
+ * @return Guzzle5HttpHandler|Guzzle6HttpHandler
+ *
+ * @throws \Exception
+ */
+ public static function build(ClientInterface $client = null)
+ {
+ $version = ClientInterface::VERSION;
+ $client = $client ?: new Client();
+
+ switch ($version[0]) {
+ case '5':
+ return new Guzzle5HttpHandler($client);
+ case '6':
+ return new Guzzle6HttpHandler($client);
+ default:
+ throw new \Exception('Version not supported');
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/AuthTokenMiddleware.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/AuthTokenMiddleware.php
new file mode 100644
index 00000000..6d4da69d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/AuthTokenMiddleware.php
@@ -0,0 +1,126 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Middleware;
+
+use Google\Auth\FetchAuthTokenInterface;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * AuthTokenMiddleware is a Guzzle Middleware that adds an Authorization header
+ * provided by an object implementing FetchAuthTokenInterface.
+ *
+ * The FetchAuthTokenInterface#fetchAuthToken is used to obtain a hash; one of
+ * the values value in that hash is added as the authorization header.
+ *
+ * Requests will be accessed with the authorization header:
+ *
+ * 'Authorization' 'Bearer <value of auth_token>'
+ */
+class AuthTokenMiddleware
+{
+ /**
+ * @var callback
+ */
+ private $httpHandler;
+
+ /**
+ * @var FetchAuthTokenInterface
+ */
+ private $fetcher;
+
+ /**
+ * @var callable
+ */
+ private $tokenCallback;
+
+ /**
+ * Creates a new AuthTokenMiddleware.
+ *
+ * @param FetchAuthTokenInterface $fetcher is used to fetch the auth token
+ * @param callable $httpHandler (optional) callback which delivers psr7 request
+ * @param callable $tokenCallback (optional) function to be called when a new token is fetched.
+ */
+ public function __construct(
+ FetchAuthTokenInterface $fetcher,
+ callable $httpHandler = null,
+ callable $tokenCallback = null
+ ) {
+ $this->fetcher = $fetcher;
+ $this->httpHandler = $httpHandler;
+ $this->tokenCallback = $tokenCallback;
+ }
+
+ /**
+ * Updates the request with an Authorization header when auth is 'google_auth'.
+ *
+ * use Google\Auth\Middleware\AuthTokenMiddleware;
+ * use Google\Auth\OAuth2;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
+ *
+ * $config = [..<oauth config param>.];
+ * $oauth2 = new OAuth2($config)
+ * $middleware = new AuthTokenMiddleware($oauth2);
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
+ *
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
+ * 'auth' => 'google_auth' // authorize all requests
+ * ]);
+ *
+ * $res = $client->get('myproject/taskqueues/myqueue');
+ *
+ * @param callable $handler
+ *
+ * @return \Closure
+ */
+ public function __invoke(callable $handler)
+ {
+ return function (RequestInterface $request, array $options) use ($handler) {
+ // Requests using "auth"="google_auth" will be authorized.
+ if (!isset($options['auth']) || $options['auth'] !== 'google_auth') {
+ return $handler($request, $options);
+ }
+
+ $request = $request->withHeader('Authorization', 'Bearer ' . $this->fetchToken());
+
+ return $handler($request, $options);
+ };
+ }
+
+ /**
+ * Call fetcher to fetch the token.
+ *
+ * @return string
+ */
+ private function fetchToken()
+ {
+ $auth_tokens = $this->fetcher->fetchAuthToken($this->httpHandler);
+
+ if (array_key_exists('access_token', $auth_tokens)) {
+ // notify the callback if applicable
+ if ($this->tokenCallback) {
+ call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']);
+ }
+
+ return $auth_tokens['access_token'];
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php
new file mode 100644
index 00000000..f0d533cf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php
@@ -0,0 +1,175 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Middleware;
+
+use Google\Auth\CacheTrait;
+use Psr\Cache\CacheItemPoolInterface;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * ScopedAccessTokenMiddleware is a Guzzle Middleware that adds an Authorization
+ * header provided by a closure.
+ *
+ * The closure returns an access token, taking the scope, either a single
+ * string or an array of strings, as its value. If provided, a cache will be
+ * used to preserve the access token for a given lifetime.
+ *
+ * Requests will be accessed with the authorization header:
+ *
+ * 'Authorization' 'Bearer <value of auth_token>'
+ */
+class ScopedAccessTokenMiddleware
+{
+ use CacheTrait;
+
+ const DEFAULT_CACHE_LIFETIME = 1500;
+
+ /**
+ * @var CacheItemPoolInterface
+ */
+ private $cache;
+
+ /**
+ * @var array configuration
+ */
+ private $cacheConfig;
+
+ /**
+ * @var callable
+ */
+ private $tokenFunc;
+
+ /**
+ * @var array|string
+ */
+ private $scopes;
+
+ /**
+ * Creates a new ScopedAccessTokenMiddleware.
+ *
+ * @param callable $tokenFunc a token generator function
+ * @param array|string $scopes the token authentication scopes
+ * @param array $cacheConfig configuration for the cache when it's present
+ * @param CacheItemPoolInterface $cache an implementation of CacheItemPoolInterface
+ */
+ public function __construct(
+ callable $tokenFunc,
+ $scopes,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache = null
+ ) {
+ $this->tokenFunc = $tokenFunc;
+ if (!(is_string($scopes) || is_array($scopes))) {
+ throw new \InvalidArgumentException(
+ 'wants scope should be string or array');
+ }
+ $this->scopes = $scopes;
+
+ if (!is_null($cache)) {
+ $this->cache = $cache;
+ $this->cacheConfig = array_merge([
+ 'lifetime' => self::DEFAULT_CACHE_LIFETIME,
+ 'prefix' => '',
+ ], $cacheConfig);
+ }
+ }
+
+ /**
+ * Updates the request with an Authorization header when auth is 'scoped'.
+ *
+ * E.g this could be used to authenticate using the AppEngine
+ * AppIdentityService.
+ *
+ * use google\appengine\api\app_identity\AppIdentityService;
+ * use Google\Auth\Middleware\ScopedAccessTokenMiddleware;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
+ *
+ * $scope = 'https://www.googleapis.com/auth/taskqueue'
+ * $middleware = new ScopedAccessTokenMiddleware(
+ * 'AppIdentityService::getAccessToken',
+ * $scope,
+ * [ 'prefix' => 'Google\Auth\ScopedAccessToken::' ],
+ * $cache = new Memcache()
+ * );
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
+ *
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_url' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
+ * 'auth' => 'google_auth' // authorize all requests
+ * ]);
+ *
+ * $res = $client->get('myproject/taskqueues/myqueue');
+ *
+ * @param callable $handler
+ *
+ * @return \Closure
+ */
+ public function __invoke(callable $handler)
+ {
+ return function (RequestInterface $request, array $options) use ($handler) {
+ // Requests using "auth"="scoped" will be authorized.
+ if (!isset($options['auth']) || $options['auth'] !== 'scoped') {
+ return $handler($request, $options);
+ }
+
+ $request = $request->withHeader('Authorization', 'Bearer ' . $this->fetchToken());
+
+ return $handler($request, $options);
+ };
+ }
+
+ /**
+ * @return string
+ */
+ private function getCacheKey()
+ {
+ $key = null;
+
+ if (is_string($this->scopes)) {
+ $key .= $this->scopes;
+ } elseif (is_array($this->scopes)) {
+ $key .= implode(':', $this->scopes);
+ }
+
+ return $key;
+ }
+
+ /**
+ * Determine if token is available in the cache, if not call tokenFunc to
+ * fetch it.
+ *
+ * @return string
+ */
+ private function fetchToken()
+ {
+ $cacheKey = $this->getCacheKey();
+ $cached = $this->getCachedValue($cacheKey);
+
+ if (!empty($cached)) {
+ return $cached;
+ }
+
+ $token = call_user_func($this->tokenFunc, $this->scopes);
+ $this->setCachedValue($cacheKey, $token);
+
+ return $token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/SimpleMiddleware.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/SimpleMiddleware.php
new file mode 100644
index 00000000..c31fc657
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Middleware/SimpleMiddleware.php
@@ -0,0 +1,93 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Middleware;
+
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * SimpleMiddleware is a Guzzle Middleware that implements Google's Simple API
+ * access.
+ *
+ * Requests are accessed using the Simple API access developer key.
+ */
+class SimpleMiddleware
+{
+ /**
+ * @var array
+ */
+ private $config;
+
+ /**
+ * Create a new Simple plugin.
+ *
+ * The configuration array expects one option
+ * - key: required, otherwise InvalidArgumentException is thrown
+ *
+ * @param array $config Configuration array
+ */
+ public function __construct(array $config)
+ {
+ if (!isset($config['key'])) {
+ throw new \InvalidArgumentException('requires a key to have been set');
+ }
+
+ $this->config = array_merge(['key' => null], $config);
+ }
+
+ /**
+ * Updates the request query with the developer key if auth is set to simple.
+ *
+ * use Google\Auth\Middleware\SimpleMiddleware;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
+ *
+ * $my_key = 'is not the same as yours';
+ * $middleware = new SimpleMiddleware(['key' => $my_key]);
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
+ *
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_uri' => 'https://www.googleapis.com/discovery/v1/',
+ * 'auth' => 'simple'
+ * ]);
+ *
+ * $res = $client->get('drive/v2/rest');
+ *
+ * @param callable $handler
+ *
+ * @return \Closure
+ */
+ public function __invoke(callable $handler)
+ {
+ return function (RequestInterface $request, array $options) use ($handler) {
+ // Requests using "auth"="scoped" will be authorized.
+ if (!isset($options['auth']) || $options['auth'] !== 'simple') {
+ return $handler($request, $options);
+ }
+
+ $query = Psr7\parse_query($request->getUri()->getQuery());
+ $params = array_merge($query, $this->config);
+ $uri = $request->getUri()->withQuery(Psr7\build_query($params));
+ $request = $request->withUri($uri);
+
+ return $handler($request, $options);
+ };
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/OAuth2.php b/mayor-orig/www/include/share/googleapi/google/auth/src/OAuth2.php
new file mode 100644
index 00000000..d5378239
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/OAuth2.php
@@ -0,0 +1,1306 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth;
+
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+use GuzzleHttp\Psr7;
+use GuzzleHttp\Psr7\Request;
+use InvalidArgumentException;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\UriInterface;
+
+/**
+ * OAuth2 supports authentication by OAuth2 2-legged flows.
+ *
+ * It primary supports
+ * - service account authorization
+ * - authorization where a user already has an access token
+ */
+class OAuth2 implements FetchAuthTokenInterface
+{
+ const DEFAULT_EXPIRY_SECONDS = 3600; // 1 hour
+ const DEFAULT_SKEW_SECONDS = 60; // 1 minute
+ const JWT_URN = 'urn:ietf:params:oauth:grant-type:jwt-bearer';
+
+ /**
+ * TODO: determine known methods from the keys of JWT::methods.
+ */
+ public static $knownSigningAlgorithms = array(
+ 'HS256',
+ 'HS512',
+ 'HS384',
+ 'RS256',
+ );
+
+ /**
+ * The well known grant types.
+ *
+ * @var array
+ */
+ public static $knownGrantTypes = array(
+ 'authorization_code',
+ 'refresh_token',
+ 'password',
+ 'client_credentials',
+ );
+
+ /**
+ * - authorizationUri
+ * The authorization server's HTTP endpoint capable of
+ * authenticating the end-user and obtaining authorization.
+ *
+ * @var UriInterface
+ */
+ private $authorizationUri;
+
+ /**
+ * - tokenCredentialUri
+ * The authorization server's HTTP endpoint capable of issuing
+ * tokens and refreshing expired tokens.
+ *
+ * @var UriInterface
+ */
+ private $tokenCredentialUri;
+
+ /**
+ * The redirection URI used in the initial request.
+ *
+ * @var string
+ */
+ private $redirectUri;
+
+ /**
+ * A unique identifier issued to the client to identify itself to the
+ * authorization server.
+ *
+ * @var string
+ */
+ private $clientId;
+
+ /**
+ * A shared symmetric secret issued by the authorization server, which is
+ * used to authenticate the client.
+ *
+ * @var string
+ */
+ private $clientSecret;
+
+ /**
+ * The resource owner's username.
+ *
+ * @var string
+ */
+ private $username;
+
+ /**
+ * The resource owner's password.
+ *
+ * @var string
+ */
+ private $password;
+
+ /**
+ * The scope of the access request, expressed either as an Array or as a
+ * space-delimited string.
+ *
+ * @var string
+ */
+ private $scope;
+
+ /**
+ * An arbitrary string designed to allow the client to maintain state.
+ *
+ * @var string
+ */
+ private $state;
+
+ /**
+ * The authorization code issued to this client.
+ *
+ * Only used by the authorization code access grant type.
+ *
+ * @var string
+ */
+ private $code;
+
+ /**
+ * The issuer ID when using assertion profile.
+ *
+ * @var string
+ */
+ private $issuer;
+
+ /**
+ * The target audience for assertions.
+ *
+ * @var string
+ */
+ private $audience;
+
+ /**
+ * The target sub when issuing assertions.
+ *
+ * @var string
+ */
+ private $sub;
+
+ /**
+ * The number of seconds assertions are valid for.
+ *
+ * @var int
+ */
+ private $expiry;
+
+ /**
+ * The signing key when using assertion profile.
+ *
+ * @var string
+ */
+ private $signingKey;
+
+ /**
+ * The signing algorithm when using an assertion profile.
+ *
+ * @var string
+ */
+ private $signingAlgorithm;
+
+ /**
+ * The refresh token associated with the access token to be refreshed.
+ *
+ * @var string
+ */
+ private $refreshToken;
+
+ /**
+ * The current access token.
+ *
+ * @var string
+ */
+ private $accessToken;
+
+ /**
+ * The current ID token.
+ *
+ * @var string
+ */
+ private $idToken;
+
+ /**
+ * The lifetime in seconds of the current access token.
+ *
+ * @var int
+ */
+ private $expiresIn;
+
+ /**
+ * The expiration time of the access token as a number of seconds since the
+ * unix epoch.
+ *
+ * @var int
+ */
+ private $expiresAt;
+
+ /**
+ * The issue time of the access token as a number of seconds since the unix
+ * epoch.
+ *
+ * @var int
+ */
+ private $issuedAt;
+
+ /**
+ * The current grant type.
+ *
+ * @var string
+ */
+ private $grantType;
+
+ /**
+ * When using an extension grant type, this is the set of parameters used by
+ * that extension.
+ */
+ private $extensionParams;
+
+ /**
+ * Create a new OAuthCredentials.
+ *
+ * The configuration array accepts various options
+ *
+ * - authorizationUri
+ * The authorization server's HTTP endpoint capable of
+ * authenticating the end-user and obtaining authorization.
+ *
+ * - tokenCredentialUri
+ * The authorization server's HTTP endpoint capable of issuing
+ * tokens and refreshing expired tokens.
+ *
+ * - clientId
+ * A unique identifier issued to the client to identify itself to the
+ * authorization server.
+ *
+ * - clientSecret
+ * A shared symmetric secret issued by the authorization server,
+ * which is used to authenticate the client.
+ *
+ * - scope
+ * The scope of the access request, expressed either as an Array
+ * or as a space-delimited String.
+ *
+ * - state
+ * An arbitrary string designed to allow the client to maintain state.
+ *
+ * - redirectUri
+ * The redirection URI used in the initial request.
+ *
+ * - username
+ * The resource owner's username.
+ *
+ * - password
+ * The resource owner's password.
+ *
+ * - issuer
+ * Issuer ID when using assertion profile
+ *
+ * - audience
+ * Target audience for assertions
+ *
+ * - expiry
+ * Number of seconds assertions are valid for
+ *
+ * - signingKey
+ * Signing key when using assertion profile
+ *
+ * - refreshToken
+ * The refresh token associated with the access token
+ * to be refreshed.
+ *
+ * - accessToken
+ * The current access token for this client.
+ *
+ * - idToken
+ * The current ID token for this client.
+ *
+ * - extensionParams
+ * When using an extension grant type, this is the set of parameters used
+ * by that extension.
+ *
+ * @param array $config Configuration array
+ */
+ public function __construct(array $config)
+ {
+ $opts = array_merge([
+ 'expiry' => self::DEFAULT_EXPIRY_SECONDS,
+ 'extensionParams' => [],
+ 'authorizationUri' => null,
+ 'redirectUri' => null,
+ 'tokenCredentialUri' => null,
+ 'state' => null,
+ 'username' => null,
+ 'password' => null,
+ 'clientId' => null,
+ 'clientSecret' => null,
+ 'issuer' => null,
+ 'sub' => null,
+ 'audience' => null,
+ 'signingKey' => null,
+ 'signingAlgorithm' => null,
+ 'scope' => null,
+ ], $config);
+
+ $this->setAuthorizationUri($opts['authorizationUri']);
+ $this->setRedirectUri($opts['redirectUri']);
+ $this->setTokenCredentialUri($opts['tokenCredentialUri']);
+ $this->setState($opts['state']);
+ $this->setUsername($opts['username']);
+ $this->setPassword($opts['password']);
+ $this->setClientId($opts['clientId']);
+ $this->setClientSecret($opts['clientSecret']);
+ $this->setIssuer($opts['issuer']);
+ $this->setSub($opts['sub']);
+ $this->setExpiry($opts['expiry']);
+ $this->setAudience($opts['audience']);
+ $this->setSigningKey($opts['signingKey']);
+ $this->setSigningAlgorithm($opts['signingAlgorithm']);
+ $this->setScope($opts['scope']);
+ $this->setExtensionParams($opts['extensionParams']);
+ $this->updateToken($opts);
+ }
+
+ /**
+ * Verifies the idToken if present.
+ *
+ * - if none is present, return null
+ * - if present, but invalid, raises DomainException.
+ * - otherwise returns the payload in the idtoken as a PHP object.
+ *
+ * if $publicKey is null, the key is decoded without being verified.
+ *
+ * @param string $publicKey The public key to use to authenticate the token
+ * @param array $allowed_algs List of supported verification algorithms
+ *
+ * @return null|object
+ */
+ public function verifyIdToken($publicKey = null, $allowed_algs = array())
+ {
+ $idToken = $this->getIdToken();
+ if (is_null($idToken)) {
+ return null;
+ }
+
+ $resp = $this->jwtDecode($idToken, $publicKey, $allowed_algs);
+ if (!property_exists($resp, 'aud')) {
+ throw new \DomainException('No audience found the id token');
+ }
+ if ($resp->aud != $this->getAudience()) {
+ throw new \DomainException('Wrong audience present in the id token');
+ }
+
+ return $resp;
+ }
+
+ /**
+ * Obtains the encoded jwt from the instance data.
+ *
+ * @param array $config array optional configuration parameters
+ *
+ * @return string
+ */
+ public function toJwt(array $config = [])
+ {
+ if (is_null($this->getSigningKey())) {
+ throw new \DomainException('No signing key available');
+ }
+ if (is_null($this->getSigningAlgorithm())) {
+ throw new \DomainException('No signing algorithm specified');
+ }
+ $now = time();
+
+ $opts = array_merge([
+ 'skew' => self::DEFAULT_SKEW_SECONDS,
+ ], $config);
+
+ $assertion = [
+ 'iss' => $this->getIssuer(),
+ 'aud' => $this->getAudience(),
+ 'exp' => ($now + $this->getExpiry()),
+ 'iat' => ($now - $opts['skew']),
+ ];
+ foreach ($assertion as $k => $v) {
+ if (is_null($v)) {
+ throw new \DomainException($k . ' should not be null');
+ }
+ }
+ if (!(is_null($this->getScope()))) {
+ $assertion['scope'] = $this->getScope();
+ }
+ if (!(is_null($this->getSub()))) {
+ $assertion['sub'] = $this->getSub();
+ }
+
+ return $this->jwtEncode($assertion, $this->getSigningKey(),
+ $this->getSigningAlgorithm());
+ }
+
+ /**
+ * Generates a request for token credentials.
+ *
+ * @return RequestInterface the authorization Url.
+ */
+ public function generateCredentialsRequest()
+ {
+ $uri = $this->getTokenCredentialUri();
+ if (is_null($uri)) {
+ throw new \DomainException('No token credential URI was set.');
+ }
+
+ $grantType = $this->getGrantType();
+ $params = array('grant_type' => $grantType);
+ switch ($grantType) {
+ case 'authorization_code':
+ $params['code'] = $this->getCode();
+ $params['redirect_uri'] = $this->getRedirectUri();
+ $this->addClientCredentials($params);
+ break;
+ case 'password':
+ $params['username'] = $this->getUsername();
+ $params['password'] = $this->getPassword();
+ $this->addClientCredentials($params);
+ break;
+ case 'refresh_token':
+ $params['refresh_token'] = $this->getRefreshToken();
+ $this->addClientCredentials($params);
+ break;
+ case self::JWT_URN:
+ $params['assertion'] = $this->toJwt();
+ break;
+ default:
+ if (!is_null($this->getRedirectUri())) {
+ # Grant type was supposed to be 'authorization_code', as there
+ # is a redirect URI.
+ throw new \DomainException('Missing authorization code');
+ }
+ unset($params['grant_type']);
+ if (!is_null($grantType)) {
+ $params['grant_type'] = $grantType;
+ }
+ $params = array_merge($params, $this->getExtensionParams());
+ }
+
+ $headers = [
+ 'Cache-Control' => 'no-store',
+ 'Content-Type' => 'application/x-www-form-urlencoded',
+ ];
+
+ return new Request(
+ 'POST',
+ $uri,
+ $headers,
+ Psr7\build_query($params)
+ );
+ }
+
+ /**
+ * Fetches the auth tokens based on the current state.
+ *
+ * @param callable $httpHandler callback which delivers psr7 request
+ *
+ * @return array the response
+ */
+ public function fetchAuthToken(callable $httpHandler = null)
+ {
+ if (is_null($httpHandler)) {
+ $httpHandler = HttpHandlerFactory::build();
+ }
+
+ $response = $httpHandler($this->generateCredentialsRequest());
+ $credentials = $this->parseTokenResponse($response);
+ $this->updateToken($credentials);
+
+ return $credentials;
+ }
+
+ /**
+ * Obtains a key that can used to cache the results of #fetchAuthToken.
+ *
+ * The key is derived from the scopes.
+ *
+ * @return string a key that may be used to cache the auth token.
+ */
+ public function getCacheKey()
+ {
+ if (is_string($this->scope)) {
+ return $this->scope;
+ } elseif (is_array($this->scope)) {
+ return implode(':', $this->scope);
+ }
+
+ // If scope has not set, return null to indicate no caching.
+ return null;
+ }
+
+ /**
+ * Parses the fetched tokens.
+ *
+ * @param ResponseInterface $resp the response.
+ *
+ * @return array the tokens parsed from the response body.
+ *
+ * @throws \Exception
+ */
+ public function parseTokenResponse(ResponseInterface $resp)
+ {
+ $body = (string)$resp->getBody();
+ if ($resp->hasHeader('Content-Type') &&
+ $resp->getHeaderLine('Content-Type') == 'application/x-www-form-urlencoded'
+ ) {
+ $res = array();
+ parse_str($body, $res);
+
+ return $res;
+ } else {
+ // Assume it's JSON; if it's not throw an exception
+ if (null === $res = json_decode($body, true)) {
+ throw new \Exception('Invalid JSON response');
+ }
+
+ return $res;
+ }
+ }
+
+ /**
+ * Updates an OAuth 2.0 client.
+ *
+ * @example
+ * client.updateToken([
+ * 'refresh_token' => 'n4E9O119d',
+ * 'access_token' => 'FJQbwq9',
+ * 'expires_in' => 3600
+ * ])
+ *
+ * @param array $config
+ * The configuration parameters related to the token.
+ *
+ * - refresh_token
+ * The refresh token associated with the access token
+ * to be refreshed.
+ *
+ * - access_token
+ * The current access token for this client.
+ *
+ * - id_token
+ * The current ID token for this client.
+ *
+ * - expires_in
+ * The time in seconds until access token expiration.
+ *
+ * - expires_at
+ * The time as an integer number of seconds since the Epoch
+ *
+ * - issued_at
+ * The timestamp that the token was issued at.
+ */
+ public function updateToken(array $config)
+ {
+ $opts = array_merge([
+ 'extensionParams' => [],
+ 'access_token' => null,
+ 'id_token' => null,
+ 'expires_in' => null,
+ 'expires_at' => null,
+ 'issued_at' => null,
+ ], $config);
+
+ $this->setExpiresAt($opts['expires_at']);
+ $this->setExpiresIn($opts['expires_in']);
+ // By default, the token is issued at `Time.now` when `expiresIn` is set,
+ // but this can be used to supply a more precise time.
+ if (!is_null($opts['issued_at'])) {
+ $this->setIssuedAt($opts['issued_at']);
+ }
+
+ $this->setAccessToken($opts['access_token']);
+ $this->setIdToken($opts['id_token']);
+ // The refresh token should only be updated if a value is explicitly
+ // passed in, as some access token responses do not include a refresh
+ // token.
+ if (array_key_exists('refresh_token', $opts)) {
+ $this->setRefreshToken($opts['refresh_token']);
+ }
+ }
+
+ /**
+ * Builds the authorization Uri that the user should be redirected to.
+ *
+ * @param array $config configuration options that customize the return url
+ *
+ * @return UriInterface the authorization Url.
+ *
+ * @throws InvalidArgumentException
+ */
+ public function buildFullAuthorizationUri(array $config = [])
+ {
+ if (is_null($this->getAuthorizationUri())) {
+ throw new InvalidArgumentException(
+ 'requires an authorizationUri to have been set');
+ }
+
+ $params = array_merge([
+ 'response_type' => 'code',
+ 'access_type' => 'offline',
+ 'client_id' => $this->clientId,
+ 'redirect_uri' => $this->redirectUri,
+ 'state' => $this->state,
+ 'scope' => $this->getScope(),
+ ], $config);
+
+ // Validate the auth_params
+ if (is_null($params['client_id'])) {
+ throw new InvalidArgumentException(
+ 'missing the required client identifier');
+ }
+ if (is_null($params['redirect_uri'])) {
+ throw new InvalidArgumentException('missing the required redirect URI');
+ }
+ if (!empty($params['prompt']) && !empty($params['approval_prompt'])) {
+ throw new InvalidArgumentException(
+ 'prompt and approval_prompt are mutually exclusive');
+ }
+
+ // Construct the uri object; return it if it is valid.
+ $result = clone $this->authorizationUri;
+ $existingParams = Psr7\parse_query($result->getQuery());
+
+ $result = $result->withQuery(
+ Psr7\build_query(array_merge($existingParams, $params))
+ );
+
+ if ($result->getScheme() != 'https') {
+ throw new InvalidArgumentException(
+ 'Authorization endpoint must be protected by TLS');
+ }
+
+ return $result;
+ }
+
+ /**
+ * Sets the authorization server's HTTP endpoint capable of authenticating
+ * the end-user and obtaining authorization.
+ *
+ * @param string $uri
+ */
+ public function setAuthorizationUri($uri)
+ {
+ $this->authorizationUri = $this->coerceUri($uri);
+ }
+
+ /**
+ * Gets the authorization server's HTTP endpoint capable of authenticating
+ * the end-user and obtaining authorization.
+ *
+ * @return UriInterface
+ */
+ public function getAuthorizationUri()
+ {
+ return $this->authorizationUri;
+ }
+
+ /**
+ * Gets the authorization server's HTTP endpoint capable of issuing tokens
+ * and refreshing expired tokens.
+ *
+ * @return string
+ */
+ public function getTokenCredentialUri()
+ {
+ return $this->tokenCredentialUri;
+ }
+
+ /**
+ * Sets the authorization server's HTTP endpoint capable of issuing tokens
+ * and refreshing expired tokens.
+ *
+ * @param string $uri
+ */
+ public function setTokenCredentialUri($uri)
+ {
+ $this->tokenCredentialUri = $this->coerceUri($uri);
+ }
+
+ /**
+ * Gets the redirection URI used in the initial request.
+ *
+ * @return string
+ */
+ public function getRedirectUri()
+ {
+ return $this->redirectUri;
+ }
+
+ /**
+ * Sets the redirection URI used in the initial request.
+ *
+ * @param string $uri
+ */
+ public function setRedirectUri($uri)
+ {
+ if (is_null($uri)) {
+ $this->redirectUri = null;
+
+ return;
+ }
+ // redirect URI must be absolute
+ if (!$this->isAbsoluteUri($uri)) {
+ // "postmessage" is a reserved URI string in Google-land
+ // @see https://developers.google.com/identity/sign-in/web/server-side-flow
+ if ('postmessage' !== (string)$uri) {
+ throw new InvalidArgumentException(
+ 'Redirect URI must be absolute');
+ }
+ }
+ $this->redirectUri = (string)$uri;
+ }
+
+ /**
+ * Gets the scope of the access requests as a space-delimited String.
+ *
+ * @return string
+ */
+ public function getScope()
+ {
+ if (is_null($this->scope)) {
+ return $this->scope;
+ }
+
+ return implode(' ', $this->scope);
+ }
+
+ /**
+ * Sets the scope of the access request, expressed either as an Array or as
+ * a space-delimited String.
+ *
+ * @param string|array $scope
+ *
+ * @throws InvalidArgumentException
+ */
+ public function setScope($scope)
+ {
+ if (is_null($scope)) {
+ $this->scope = null;
+ } elseif (is_string($scope)) {
+ $this->scope = explode(' ', $scope);
+ } elseif (is_array($scope)) {
+ foreach ($scope as $s) {
+ $pos = strpos($s, ' ');
+ if ($pos !== false) {
+ throw new InvalidArgumentException(
+ 'array scope values should not contain spaces');
+ }
+ }
+ $this->scope = $scope;
+ } else {
+ throw new InvalidArgumentException(
+ 'scopes should be a string or array of strings');
+ }
+ }
+
+ /**
+ * Gets the current grant type.
+ *
+ * @return string
+ */
+ public function getGrantType()
+ {
+ if (!is_null($this->grantType)) {
+ return $this->grantType;
+ }
+
+ // Returns the inferred grant type, based on the current object instance
+ // state.
+ if (!is_null($this->code)) {
+ return 'authorization_code';
+ } elseif (!is_null($this->refreshToken)) {
+ return 'refresh_token';
+ } elseif (!is_null($this->username) && !is_null($this->password)) {
+ return 'password';
+ } elseif (!is_null($this->issuer) && !is_null($this->signingKey)) {
+ return self::JWT_URN;
+ } else {
+ return null;
+ }
+ }
+
+ /**
+ * Sets the current grant type.
+ *
+ * @param $grantType
+ *
+ * @throws InvalidArgumentException
+ */
+ public function setGrantType($grantType)
+ {
+ if (in_array($grantType, self::$knownGrantTypes)) {
+ $this->grantType = $grantType;
+ } else {
+ // validate URI
+ if (!$this->isAbsoluteUri($grantType)) {
+ throw new InvalidArgumentException(
+ 'invalid grant type');
+ }
+ $this->grantType = (string)$grantType;
+ }
+ }
+
+ /**
+ * Gets an arbitrary string designed to allow the client to maintain state.
+ *
+ * @return string
+ */
+ public function getState()
+ {
+ return $this->state;
+ }
+
+ /**
+ * Sets an arbitrary string designed to allow the client to maintain state.
+ *
+ * @param string $state
+ */
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+
+ /**
+ * Gets the authorization code issued to this client.
+ */
+ public function getCode()
+ {
+ return $this->code;
+ }
+
+ /**
+ * Sets the authorization code issued to this client.
+ *
+ * @param string $code
+ */
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+
+ /**
+ * Gets the resource owner's username.
+ */
+ public function getUsername()
+ {
+ return $this->username;
+ }
+
+ /**
+ * Sets the resource owner's username.
+ *
+ * @param string $username
+ */
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+
+ /**
+ * Gets the resource owner's password.
+ */
+ public function getPassword()
+ {
+ return $this->password;
+ }
+
+ /**
+ * Sets the resource owner's password.
+ *
+ * @param $password
+ */
+ public function setPassword($password)
+ {
+ $this->password = $password;
+ }
+
+ /**
+ * Sets a unique identifier issued to the client to identify itself to the
+ * authorization server.
+ */
+ public function getClientId()
+ {
+ return $this->clientId;
+ }
+
+ /**
+ * Sets a unique identifier issued to the client to identify itself to the
+ * authorization server.
+ *
+ * @param $clientId
+ */
+ public function setClientId($clientId)
+ {
+ $this->clientId = $clientId;
+ }
+
+ /**
+ * Gets a shared symmetric secret issued by the authorization server, which
+ * is used to authenticate the client.
+ */
+ public function getClientSecret()
+ {
+ return $this->clientSecret;
+ }
+
+ /**
+ * Sets a shared symmetric secret issued by the authorization server, which
+ * is used to authenticate the client.
+ *
+ * @param $clientSecret
+ */
+ public function setClientSecret($clientSecret)
+ {
+ $this->clientSecret = $clientSecret;
+ }
+
+ /**
+ * Gets the Issuer ID when using assertion profile.
+ */
+ public function getIssuer()
+ {
+ return $this->issuer;
+ }
+
+ /**
+ * Sets the Issuer ID when using assertion profile.
+ *
+ * @param string $issuer
+ */
+ public function setIssuer($issuer)
+ {
+ $this->issuer = $issuer;
+ }
+
+ /**
+ * Gets the target sub when issuing assertions.
+ */
+ public function getSub()
+ {
+ return $this->sub;
+ }
+
+ /**
+ * Sets the target sub when issuing assertions.
+ *
+ * @param string $sub
+ */
+ public function setSub($sub)
+ {
+ $this->sub = $sub;
+ }
+
+ /**
+ * Gets the target audience when issuing assertions.
+ */
+ public function getAudience()
+ {
+ return $this->audience;
+ }
+
+ /**
+ * Sets the target audience when issuing assertions.
+ *
+ * @param string $audience
+ */
+ public function setAudience($audience)
+ {
+ $this->audience = $audience;
+ }
+
+ /**
+ * Gets the signing key when using an assertion profile.
+ */
+ public function getSigningKey()
+ {
+ return $this->signingKey;
+ }
+
+ /**
+ * Sets the signing key when using an assertion profile.
+ *
+ * @param string $signingKey
+ */
+ public function setSigningKey($signingKey)
+ {
+ $this->signingKey = $signingKey;
+ }
+
+ /**
+ * Gets the signing algorithm when using an assertion profile.
+ *
+ * @return string
+ */
+ public function getSigningAlgorithm()
+ {
+ return $this->signingAlgorithm;
+ }
+
+ /**
+ * Sets the signing algorithm when using an assertion profile.
+ *
+ * @param string $signingAlgorithm
+ */
+ public function setSigningAlgorithm($signingAlgorithm)
+ {
+ if (is_null($signingAlgorithm)) {
+ $this->signingAlgorithm = null;
+ } elseif (!in_array($signingAlgorithm, self::$knownSigningAlgorithms)) {
+ throw new InvalidArgumentException('unknown signing algorithm');
+ } else {
+ $this->signingAlgorithm = $signingAlgorithm;
+ }
+ }
+
+ /**
+ * Gets the set of parameters used by extension when using an extension
+ * grant type.
+ */
+ public function getExtensionParams()
+ {
+ return $this->extensionParams;
+ }
+
+ /**
+ * Sets the set of parameters used by extension when using an extension
+ * grant type.
+ *
+ * @param $extensionParams
+ */
+ public function setExtensionParams($extensionParams)
+ {
+ $this->extensionParams = $extensionParams;
+ }
+
+ /**
+ * Gets the number of seconds assertions are valid for.
+ */
+ public function getExpiry()
+ {
+ return $this->expiry;
+ }
+
+ /**
+ * Sets the number of seconds assertions are valid for.
+ *
+ * @param int $expiry
+ */
+ public function setExpiry($expiry)
+ {
+ $this->expiry = $expiry;
+ }
+
+ /**
+ * Gets the lifetime of the access token in seconds.
+ */
+ public function getExpiresIn()
+ {
+ return $this->expiresIn;
+ }
+
+ /**
+ * Sets the lifetime of the access token in seconds.
+ *
+ * @param int $expiresIn
+ */
+ public function setExpiresIn($expiresIn)
+ {
+ if (is_null($expiresIn)) {
+ $this->expiresIn = null;
+ $this->issuedAt = null;
+ } else {
+ $this->issuedAt = time();
+ $this->expiresIn = (int)$expiresIn;
+ }
+ }
+
+ /**
+ * Gets the time the current access token expires at.
+ *
+ * @return int
+ */
+ public function getExpiresAt()
+ {
+ if (!is_null($this->expiresAt)) {
+ return $this->expiresAt;
+ } elseif (!is_null($this->issuedAt) && !is_null($this->expiresIn)) {
+ return $this->issuedAt + $this->expiresIn;
+ }
+
+ return null;
+ }
+
+ /**
+ * Returns true if the acccess token has expired.
+ *
+ * @return bool
+ */
+ public function isExpired()
+ {
+ $expiration = $this->getExpiresAt();
+ $now = time();
+
+ return !is_null($expiration) && $now >= $expiration;
+ }
+
+ /**
+ * Sets the time the current access token expires at.
+ *
+ * @param int $expiresAt
+ */
+ public function setExpiresAt($expiresAt)
+ {
+ $this->expiresAt = $expiresAt;
+ }
+
+ /**
+ * Gets the time the current access token was issued at.
+ */
+ public function getIssuedAt()
+ {
+ return $this->issuedAt;
+ }
+
+ /**
+ * Sets the time the current access token was issued at.
+ *
+ * @param int $issuedAt
+ */
+ public function setIssuedAt($issuedAt)
+ {
+ $this->issuedAt = $issuedAt;
+ }
+
+ /**
+ * Gets the current access token.
+ */
+ public function getAccessToken()
+ {
+ return $this->accessToken;
+ }
+
+ /**
+ * Sets the current access token.
+ *
+ * @param string $accessToken
+ */
+ public function setAccessToken($accessToken)
+ {
+ $this->accessToken = $accessToken;
+ }
+
+ /**
+ * Gets the current ID token.
+ */
+ public function getIdToken()
+ {
+ return $this->idToken;
+ }
+
+ /**
+ * Sets the current ID token.
+ *
+ * @param $idToken
+ */
+ public function setIdToken($idToken)
+ {
+ $this->idToken = $idToken;
+ }
+
+ /**
+ * Gets the refresh token associated with the current access token.
+ */
+ public function getRefreshToken()
+ {
+ return $this->refreshToken;
+ }
+
+ /**
+ * Sets the refresh token associated with the current access token.
+ *
+ * @param $refreshToken
+ */
+ public function setRefreshToken($refreshToken)
+ {
+ $this->refreshToken = $refreshToken;
+ }
+
+ /**
+ * The expiration of the last received token.
+ *
+ * @return array
+ */
+ public function getLastReceivedToken()
+ {
+ if ($token = $this->getAccessToken()) {
+ return [
+ 'access_token' => $token,
+ 'expires_at' => $this->getExpiresAt(),
+ ];
+ }
+
+ return null;
+ }
+
+ /**
+ * @todo handle uri as array
+ *
+ * @param string $uri
+ *
+ * @return null|UriInterface
+ */
+ private function coerceUri($uri)
+ {
+ if (is_null($uri)) {
+ return;
+ }
+
+ return Psr7\uri_for($uri);
+ }
+
+ /**
+ * @param string $idToken
+ * @param string|array|null $publicKey
+ * @param array $allowedAlgs
+ *
+ * @return object
+ */
+ private function jwtDecode($idToken, $publicKey, $allowedAlgs)
+ {
+ if (class_exists('Firebase\JWT\JWT')) {
+ return \Firebase\JWT\JWT::decode($idToken, $publicKey, $allowedAlgs);
+ }
+
+ return \JWT::decode($idToken, $publicKey, $allowedAlgs);
+ }
+
+ private function jwtEncode($assertion, $signingKey, $signingAlgorithm)
+ {
+ if (class_exists('Firebase\JWT\JWT')) {
+ return \Firebase\JWT\JWT::encode($assertion, $signingKey,
+ $signingAlgorithm);
+ }
+
+ return \JWT::encode($assertion, $signingKey, $signingAlgorithm);
+ }
+
+ /**
+ * Determines if the URI is absolute based on its scheme and host or path
+ * (RFC 3986).
+ *
+ * @param string $uri
+ *
+ * @return bool
+ */
+ private function isAbsoluteUri($uri)
+ {
+ $uri = $this->coerceUri($uri);
+
+ return $uri->getScheme() && ($uri->getHost() || $uri->getPath());
+ }
+
+ /**
+ * @param array $params
+ *
+ * @return array
+ */
+ private function addClientCredentials(&$params)
+ {
+ $clientId = $this->getClientId();
+ $clientSecret = $this->getClientSecret();
+
+ if ($clientId && $clientSecret) {
+ $params['client_id'] = $clientId;
+ $params['client_secret'] = $clientSecret;
+ }
+
+ return $params;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/AuthTokenSubscriber.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/AuthTokenSubscriber.php
new file mode 100644
index 00000000..0df8027f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/AuthTokenSubscriber.php
@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Subscriber;
+
+use Google\Auth\FetchAuthTokenInterface;
+use GuzzleHttp\Event\BeforeEvent;
+use GuzzleHttp\Event\RequestEvents;
+use GuzzleHttp\Event\SubscriberInterface;
+
+/**
+ * AuthTokenSubscriber is a Guzzle Subscriber that adds an Authorization header
+ * provided by an object implementing FetchAuthTokenInterface.
+ *
+ * The FetchAuthTokenInterface#fetchAuthToken is used to obtain a hash; one of
+ * the values value in that hash is added as the authorization header.
+ *
+ * Requests will be accessed with the authorization header:
+ *
+ * 'Authorization' 'Bearer <value of auth_token>'
+ */
+class AuthTokenSubscriber implements SubscriberInterface
+{
+ /**
+ * @var callable
+ */
+ private $httpHandler;
+
+ /**
+ * @var FetchAuthTokenInterface
+ */
+ private $fetcher;
+
+ /**
+ * @var callable
+ */
+ private $tokenCallback;
+
+ /**
+ * Creates a new AuthTokenSubscriber.
+ *
+ * @param FetchAuthTokenInterface $fetcher is used to fetch the auth token
+ * @param callable $httpHandler (optional) http client to fetch the token.
+ * @param callable $tokenCallback (optional) function to be called when a new token is fetched.
+ */
+ public function __construct(
+ FetchAuthTokenInterface $fetcher,
+ callable $httpHandler = null,
+ callable $tokenCallback = null
+ ) {
+ $this->fetcher = $fetcher;
+ $this->httpHandler = $httpHandler;
+ $this->tokenCallback = $tokenCallback;
+ }
+
+ /**
+ * @return array
+ */
+ public function getEvents()
+ {
+ return ['before' => ['onBefore', RequestEvents::SIGN_REQUEST]];
+ }
+
+ /**
+ * Updates the request with an Authorization header when auth is 'fetched_auth_token'.
+ *
+ * use GuzzleHttp\Client;
+ * use Google\Auth\OAuth2;
+ * use Google\Auth\Subscriber\AuthTokenSubscriber;
+ *
+ * $config = [..<oauth config param>.];
+ * $oauth2 = new OAuth2($config)
+ * $subscriber = new AuthTokenSubscriber($oauth2);
+ *
+ * $client = new Client([
+ * 'base_url' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
+ * 'defaults' => ['auth' => 'google_auth']
+ * ]);
+ * $client->getEmitter()->attach($subscriber);
+ *
+ * $res = $client->get('myproject/taskqueues/myqueue');
+ *
+ * @param BeforeEvent $event
+ */
+ public function onBefore(BeforeEvent $event)
+ {
+ // Requests using "auth"="google_auth" will be authorized.
+ $request = $event->getRequest();
+ if ($request->getConfig()['auth'] != 'google_auth') {
+ return;
+ }
+
+ // Fetch the auth token.
+ $auth_tokens = $this->fetcher->fetchAuthToken($this->httpHandler);
+ if (array_key_exists('access_token', $auth_tokens)) {
+ $request->setHeader('Authorization', 'Bearer ' . $auth_tokens['access_token']);
+
+ // notify the callback if applicable
+ if ($this->tokenCallback) {
+ call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']);
+ }
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php
new file mode 100644
index 00000000..ad744ead
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php
@@ -0,0 +1,177 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Subscriber;
+
+use Google\Auth\CacheTrait;
+use GuzzleHttp\Event\BeforeEvent;
+use GuzzleHttp\Event\RequestEvents;
+use GuzzleHttp\Event\SubscriberInterface;
+use Psr\Cache\CacheItemPoolInterface;
+
+/**
+ * ScopedAccessTokenSubscriber is a Guzzle Subscriber that adds an Authorization
+ * header provided by a closure.
+ *
+ * The closure returns an access token, taking the scope, either a single
+ * string or an array of strings, as its value. If provided, a cache will be
+ * used to preserve the access token for a given lifetime.
+ *
+ * Requests will be accessed with the authorization header:
+ *
+ * 'Authorization' 'Bearer <access token obtained from the closure>'
+ */
+class ScopedAccessTokenSubscriber implements SubscriberInterface
+{
+ use CacheTrait;
+
+ const DEFAULT_CACHE_LIFETIME = 1500;
+
+ /**
+ * @var CacheItemPoolInterface
+ */
+ private $cache;
+
+ /**
+ * @var callable The access token generator function
+ */
+ private $tokenFunc;
+
+ /**
+ * @var array|string The scopes used to generate the token
+ */
+ private $scopes;
+
+ /**
+ * @var array
+ */
+ private $cacheConfig;
+
+ /**
+ * Creates a new ScopedAccessTokenSubscriber.
+ *
+ * @param callable $tokenFunc a token generator function
+ * @param array|string $scopes the token authentication scopes
+ * @param array $cacheConfig configuration for the cache when it's present
+ * @param CacheItemPoolInterface $cache an implementation of CacheItemPoolInterface
+ */
+ public function __construct(
+ callable $tokenFunc,
+ $scopes,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache = null
+ ) {
+ $this->tokenFunc = $tokenFunc;
+ if (!(is_string($scopes) || is_array($scopes))) {
+ throw new \InvalidArgumentException(
+ 'wants scope should be string or array');
+ }
+ $this->scopes = $scopes;
+
+ if (!is_null($cache)) {
+ $this->cache = $cache;
+ $this->cacheConfig = array_merge([
+ 'lifetime' => self::DEFAULT_CACHE_LIFETIME,
+ 'prefix' => '',
+ ], $cacheConfig);
+ }
+ }
+
+ /**
+ * @return array
+ */
+ public function getEvents()
+ {
+ return ['before' => ['onBefore', RequestEvents::SIGN_REQUEST]];
+ }
+
+ /**
+ * Updates the request with an Authorization header when auth is 'scoped'.
+ *
+ * E.g this could be used to authenticate using the AppEngine
+ * AppIdentityService.
+ *
+ * use google\appengine\api\app_identity\AppIdentityService;
+ * use Google\Auth\Subscriber\ScopedAccessTokenSubscriber;
+ * use GuzzleHttp\Client;
+ *
+ * $scope = 'https://www.googleapis.com/auth/taskqueue'
+ * $subscriber = new ScopedAccessToken(
+ * 'AppIdentityService::getAccessToken',
+ * $scope,
+ * ['prefix' => 'Google\Auth\ScopedAccessToken::'],
+ * $cache = new Memcache()
+ * );
+ *
+ * $client = new Client([
+ * 'base_url' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
+ * 'defaults' => ['auth' => 'scoped']
+ * ]);
+ * $client->getEmitter()->attach($subscriber);
+ *
+ * $res = $client->get('myproject/taskqueues/myqueue');
+ *
+ * @param BeforeEvent $event
+ */
+ public function onBefore(BeforeEvent $event)
+ {
+ // Requests using "auth"="scoped" will be authorized.
+ $request = $event->getRequest();
+ if ($request->getConfig()['auth'] != 'scoped') {
+ return;
+ }
+ $auth_header = 'Bearer ' . $this->fetchToken();
+ $request->setHeader('Authorization', $auth_header);
+ }
+
+ /**
+ * @return string
+ */
+ private function getCacheKey()
+ {
+ $key = null;
+
+ if (is_string($this->scopes)) {
+ $key .= $this->scopes;
+ } elseif (is_array($this->scopes)) {
+ $key .= implode(':', $this->scopes);
+ }
+
+ return $key;
+ }
+
+ /**
+ * Determine if token is available in the cache, if not call tokenFunc to
+ * fetch it.
+ *
+ * @return string
+ */
+ private function fetchToken()
+ {
+ $cacheKey = $this->getCacheKey();
+ $cached = $this->getCachedValue($cacheKey);
+
+ if (!empty($cached)) {
+ return $cached;
+ }
+
+ $token = call_user_func($this->tokenFunc, $this->scopes);
+ $this->setCachedValue($cacheKey, $token);
+
+ return $token;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/SimpleSubscriber.php b/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/SimpleSubscriber.php
new file mode 100644
index 00000000..0c567313
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/src/Subscriber/SimpleSubscriber.php
@@ -0,0 +1,90 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Subscriber;
+
+use GuzzleHttp\Event\BeforeEvent;
+use GuzzleHttp\Event\RequestEvents;
+use GuzzleHttp\Event\SubscriberInterface;
+
+/**
+ * SimpleSubscriber is a Guzzle Subscriber that implements Google's Simple API
+ * access.
+ *
+ * Requests are accessed using the Simple API access developer key.
+ */
+class SimpleSubscriber implements SubscriberInterface
+{
+ /**
+ * @var array
+ */
+ private $config;
+
+ /**
+ * Create a new Simple plugin.
+ *
+ * The configuration array expects one option
+ * - key: required, otherwise InvalidArgumentException is thrown
+ *
+ * @param array $config Configuration array
+ */
+ public function __construct(array $config)
+ {
+ if (!isset($config['key'])) {
+ throw new \InvalidArgumentException('requires a key to have been set');
+ }
+
+ $this->config = array_merge([], $config);
+ }
+
+ /**
+ * @return array
+ */
+ public function getEvents()
+ {
+ return ['before' => ['onBefore', RequestEvents::SIGN_REQUEST]];
+ }
+
+ /**
+ * Updates the request query with the developer key if auth is set to simple.
+ *
+ * use Google\Auth\Subscriber\SimpleSubscriber;
+ * use GuzzleHttp\Client;
+ *
+ * $my_key = 'is not the same as yours';
+ * $subscriber = new SimpleSubscriber(['key' => $my_key]);
+ *
+ * $client = new Client([
+ * 'base_url' => 'https://www.googleapis.com/discovery/v1/',
+ * 'defaults' => ['auth' => 'simple']
+ * ]);
+ * $client->getEmitter()->attach($subscriber);
+ *
+ * $res = $client->get('drive/v2/rest');
+ *
+ * @param BeforeEvent $event
+ */
+ public function onBefore(BeforeEvent $event)
+ {
+ // Requests using "auth"="simple" with the developer key.
+ $request = $event->getRequest();
+ if ($request->getConfig()['auth'] != 'simple') {
+ return;
+ }
+ $request->getQuery()->overwriteWith($this->config);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/ApplicationDefaultCredentialsTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/ApplicationDefaultCredentialsTest.php
new file mode 100644
index 00000000..b7cda07e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/ApplicationDefaultCredentialsTest.php
@@ -0,0 +1,299 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\ApplicationDefaultCredentials;
+use Google\Auth\Credentials\GCECredentials;
+use Google\Auth\Credentials\ServiceAccountCredentials;
+use GuzzleHttp\Psr7;
+
+class ADCGetTest extends \PHPUnit_Framework_TestCase
+{
+ private $originalHome;
+
+ protected function setUp()
+ {
+ $this->originalHome = getenv('HOME');
+ }
+
+ protected function tearDown()
+ {
+ if ($this->originalHome != getenv('HOME')) {
+ putenv('HOME=' . $this->originalHome);
+ }
+ putenv(ServiceAccountCredentials::ENV_VAR); // removes it from
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testIsFailsEnvSpecifiesNonExistentFile()
+ {
+ $keyFile = __DIR__ . '/fixtures' . '/does-not-exist-private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ ApplicationDefaultCredentials::getCredentials('a scope');
+ }
+
+ public function testLoadsOKIfEnvSpecifiedIsValid()
+ {
+ $keyFile = __DIR__ . '/fixtures' . '/private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ $this->assertNotNull(
+ ApplicationDefaultCredentials::getCredentials('a scope')
+ );
+ }
+
+ public function testLoadsDefaultFileIfPresentAndEnvVarIsNotSet()
+ {
+ putenv('HOME=' . __DIR__ . '/fixtures');
+ $this->assertNotNull(
+ ApplicationDefaultCredentials::getCredentials('a scope')
+ );
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfNotOnGceAndNoDefaultFileFound()
+ {
+ putenv('HOME=' . __DIR__ . '/not_exist_fixtures');
+ // simulate not being GCE by return 500
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+
+ ApplicationDefaultCredentials::getCredentials('a scope', $httpHandler);
+ }
+
+ public function testSuccedsIfNoDefaultFilesButIsOnGCE()
+ {
+ $wantedTokens = [
+ 'access_token' => '1/abdef1234567890',
+ 'expires_in' => '57',
+ 'token_type' => 'Bearer',
+ ];
+ $jsonTokens = json_encode($wantedTokens);
+
+ // simulate the response from GCE.
+ $httpHandler = getHandler([
+ buildResponse(200, [GCECredentials::FLAVOR_HEADER => 'Google']),
+ buildResponse(200, [], Psr7\stream_for($jsonTokens)),
+ ]);
+
+ $this->assertNotNull(
+ ApplicationDefaultCredentials::getCredentials('a scope', $httpHandler)
+ );
+ }
+}
+
+class ADCGetMiddlewareTest extends \PHPUnit_Framework_TestCase
+{
+ private $originalHome;
+
+ protected function setUp()
+ {
+ $this->originalHome = getenv('HOME');
+ }
+
+ protected function tearDown()
+ {
+ if ($this->originalHome != getenv('HOME')) {
+ putenv('HOME=' . $this->originalHome);
+ }
+ putenv(ServiceAccountCredentials::ENV_VAR); // removes it if assigned
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testIsFailsEnvSpecifiesNonExistentFile()
+ {
+ $keyFile = __DIR__ . '/fixtures' . '/does-not-exist-private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ ApplicationDefaultCredentials::getMiddleware('a scope');
+ }
+
+ public function testLoadsOKIfEnvSpecifiedIsValid()
+ {
+ $keyFile = __DIR__ . '/fixtures' . '/private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ $this->assertNotNull(ApplicationDefaultCredentials::getMiddleware('a scope'));
+ }
+
+ public function testLoadsDefaultFileIfPresentAndEnvVarIsNotSet()
+ {
+ putenv('HOME=' . __DIR__ . '/fixtures');
+ $this->assertNotNull(ApplicationDefaultCredentials::getMiddleware('a scope'));
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfNotOnGceAndNoDefaultFileFound()
+ {
+ putenv('HOME=' . __DIR__ . '/not_exist_fixtures');
+
+ // simulate not being GCE by return 500
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+
+ ApplicationDefaultCredentials::getMiddleware('a scope', $httpHandler);
+ }
+
+ public function testSuccedsIfNoDefaultFilesButIsOnGCE()
+ {
+ $wantedTokens = [
+ 'access_token' => '1/abdef1234567890',
+ 'expires_in' => '57',
+ 'token_type' => 'Bearer',
+ ];
+ $jsonTokens = json_encode($wantedTokens);
+
+ // simulate the response from GCE.
+ $httpHandler = getHandler([
+ buildResponse(200, [GCECredentials::FLAVOR_HEADER => 'Google']),
+ buildResponse(200, [], Psr7\stream_for($jsonTokens)),
+ ]);
+
+ $this->assertNotNull(ApplicationDefaultCredentials::getMiddleware('a scope', $httpHandler));
+ }
+}
+
+class ADCGetCredentialsAppEngineTest extends BaseTest
+{
+ private $originalHome;
+ private $originalServiceAccount;
+
+ protected function setUp()
+ {
+ // set home to be somewhere else
+ $this->originalHome = getenv('HOME');
+ putenv('HOME=' . __DIR__ . '/not_exist_fixtures');
+
+ // remove service account path
+ $this->originalServiceAccount = getenv(ServiceAccountCredentials::ENV_VAR);
+ putenv(ServiceAccountCredentials::ENV_VAR);
+ }
+
+ protected function tearDown()
+ {
+ // removes it if assigned
+ putenv('HOME=' . $this->originalHome);
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $this->originalServiceAccount);
+ }
+
+ public function testAppEngineStandard()
+ {
+ $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine';
+ $this->assertInstanceOf(
+ 'Google\Auth\Credentials\AppIdentityCredentials',
+ ApplicationDefaultCredentials::getCredentials()
+ );
+ }
+
+ public function testAppEngineFlexible()
+ {
+ $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine';
+ $_SERVER['GAE_VM'] = 'true';
+ $httpHandler = getHandler([
+ buildResponse(200, [GCECredentials::FLAVOR_HEADER => 'Google']),
+ ]);
+ $this->assertInstanceOf(
+ 'Google\Auth\Credentials\GCECredentials',
+ ApplicationDefaultCredentials::getCredentials(null, $httpHandler)
+ );
+ }
+}
+
+// @todo consider a way to DRY this and above class up
+class ADCGetSubscriberTest extends BaseTest
+{
+ private $originalHome;
+
+ protected function setUp()
+ {
+ $this->onlyGuzzle5();
+
+ $this->originalHome = getenv('HOME');
+ }
+
+ protected function tearDown()
+ {
+ if ($this->originalHome != getenv('HOME')) {
+ putenv('HOME=' . $this->originalHome);
+ }
+ putenv(ServiceAccountCredentials::ENV_VAR); // removes it if assigned
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testIsFailsEnvSpecifiesNonExistentFile()
+ {
+ $keyFile = __DIR__ . '/fixtures' . '/does-not-exist-private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ ApplicationDefaultCredentials::getSubscriber('a scope');
+ }
+
+ public function testLoadsOKIfEnvSpecifiedIsValid()
+ {
+ $keyFile = __DIR__ . '/fixtures' . '/private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ $this->assertNotNull(ApplicationDefaultCredentials::getSubscriber('a scope'));
+ }
+
+ public function testLoadsDefaultFileIfPresentAndEnvVarIsNotSet()
+ {
+ putenv('HOME=' . __DIR__ . '/fixtures');
+ $this->assertNotNull(ApplicationDefaultCredentials::getSubscriber('a scope'));
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfNotOnGceAndNoDefaultFileFound()
+ {
+ putenv('HOME=' . __DIR__ . '/not_exist_fixtures');
+
+ // simulate not being GCE by return 500
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+
+ ApplicationDefaultCredentials::getSubscriber('a scope', $httpHandler);
+ }
+
+ public function testSuccedsIfNoDefaultFilesButIsOnGCE()
+ {
+ $wantedTokens = [
+ 'access_token' => '1/abdef1234567890',
+ 'expires_in' => '57',
+ 'token_type' => 'Bearer',
+ ];
+ $jsonTokens = json_encode($wantedTokens);
+
+ // simulate the response from GCE.
+ $httpHandler = getHandler([
+ buildResponse(200, [GCECredentials::FLAVOR_HEADER => 'Google']),
+ buildResponse(200, [], Psr7\stream_for($jsonTokens)),
+ ]);
+
+ $this->assertNotNull(ApplicationDefaultCredentials::getSubscriber('a scope', $httpHandler));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/BaseTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/BaseTest.php
new file mode 100644
index 00000000..b005e341
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/BaseTest.php
@@ -0,0 +1,32 @@
+<?php
+
+namespace Google\Auth\tests;
+
+use GuzzleHttp\ClientInterface;
+
+abstract class BaseTest extends \PHPUnit_Framework_TestCase
+{
+ public function onlyGuzzle6()
+ {
+ $version = ClientInterface::VERSION;
+ if ('6' !== $version[0]) {
+ $this->markTestSkipped('Guzzle 6 only');
+ }
+ }
+
+ public function onlyGuzzle5()
+ {
+ $version = ClientInterface::VERSION;
+ if ('5' !== $version[0]) {
+ $this->markTestSkipped('Guzzle 5 only');
+ }
+ }
+
+ /**
+ * @see Google\Auth\$this->getValidKeyName
+ */
+ public function getValidKeyName($key)
+ {
+ return preg_replace('|[^a-zA-Z0-9_\.! ]|', '', $key);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/ItemTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/ItemTest.php
new file mode 100644
index 00000000..2d00f36c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/ItemTest.php
@@ -0,0 +1,125 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\Cache\Item;
+
+class ItemTest extends \PHPUnit_Framework_TestCase
+{
+ public function getItem($key)
+ {
+ return new Item($key);
+ }
+
+ public function testGetsKey()
+ {
+ $key = 'item';
+
+ $this->assertEquals($key, $this->getItem($key)->getKey());
+ }
+
+ public function testGetsNull()
+ {
+ $item = $this->getItem('item');
+
+ $this->assertNull($item->get());
+ $this->assertFalse($item->isHit());
+ }
+
+ public function testGetsValue()
+ {
+ $value = 'value';
+ $item = $this->getItem('item');
+ $item->set($value);
+
+ $this->assertEquals('value', $item->get());
+ }
+
+ /**
+ * @dataProvider values
+ */
+ public function testSetsValue($value)
+ {
+ $item = $this->getItem('item');
+ $item->set($value);
+
+ $this->assertEquals($value, $item->get());
+ }
+
+ public function values()
+ {
+ return [
+ [1],
+ [1.5],
+ [true],
+ [null],
+ [new \DateTime()],
+ [['test']],
+ ['value']
+ ];
+ }
+
+ public function testIsHit()
+ {
+ $item = $this->getItem('item');
+
+ $this->assertFalse($item->isHit());
+
+ $item->set('value');
+
+ $this->assertTrue($item->isHit());
+ }
+
+ public function testExpiresAt()
+ {
+ $item = $this->getItem('item');
+ $item->set('value');
+ $item->expiresAt(new \DateTime('now + 1 hour'));
+
+ $this->assertTrue($item->isHit());
+
+ $item->expiresAt(null);
+
+ $this->assertTrue($item->isHit());
+
+ $item->expiresAt(new \DateTime('yesterday'));
+
+ $this->assertFalse($item->isHit());
+ }
+
+ public function testExpiresAfter()
+ {
+ $item = $this->getItem('item');
+ $item->set('value');
+ $item->expiresAfter(30);
+
+ $this->assertTrue($item->isHit());
+
+ $item->expiresAfter(0);
+
+ $this->assertFalse($item->isHit());
+
+ $item->expiresAfter(new \DateInterval('PT30S'));
+
+ $this->assertTrue($item->isHit());
+
+ $item->expiresAfter(null);
+
+ $this->assertTrue($item->isHit());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/MemoryCacheItemPoolTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/MemoryCacheItemPoolTest.php
new file mode 100644
index 00000000..950d614a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Cache/MemoryCacheItemPoolTest.php
@@ -0,0 +1,189 @@
+<?php
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\Cache\MemoryCacheItemPool;
+use Psr\Cache\InvalidArgumentException;
+
+class MemoryCacheItemPoolTest extends \PHPUnit_Framework_TestCase
+{
+ private $pool;
+
+ public function setUp()
+ {
+ $this->pool = new MemoryCacheItemPool();
+ }
+
+ public function saveItem($key, $value)
+ {
+ $item = $this->pool->getItem($key);
+ $item->set($value);
+ $this->assertTrue($this->pool->save($item));
+
+ return $item;
+ }
+
+ public function testGetsFreshItem()
+ {
+ $item = $this->pool->getItem('item');
+
+ $this->assertInstanceOf('Google\Auth\Cache\Item', $item);
+ $this->assertNull($item->get());
+ $this->assertFalse($item->isHit());
+ }
+
+ public function testGetsExistingItem()
+ {
+ $key = 'item';
+ $value = 'value';
+ $this->saveItem($key, $value);
+ $item = $this->pool->getItem($key);
+
+ $this->assertInstanceOf('Google\Auth\Cache\Item', $item);
+ $this->assertEquals($value, $item->get());
+ $this->assertTrue($item->isHit());
+ }
+
+ public function testGetsMultipleItems()
+ {
+ $keys = ['item1', 'item2'];
+ $items = $this->pool->getItems($keys);
+
+ $this->assertEquals($keys, array_keys($items));
+ $this->assertContainsOnlyInstancesOf('Google\Auth\Cache\Item', $items);
+ }
+
+ public function testHasItem()
+ {
+ $existsKey = 'does-exist';
+ $this->saveItem($existsKey, 'value');
+
+ $this->assertTrue($this->pool->hasItem($existsKey));
+ $this->assertFalse($this->pool->hasItem('does-not-exist'));
+ }
+
+ public function testClear()
+ {
+ $key = 'item';
+ $this->saveItem($key, 'value');
+
+ $this->assertTrue($this->pool->hasItem($key));
+ $this->assertTrue($this->pool->clear());
+ $this->assertFalse($this->pool->hasItem($key));
+ }
+
+ public function testDeletesItem()
+ {
+ $key = 'item';
+ $this->saveItem($key, 'value');
+
+ $this->assertTrue($this->pool->deleteItem($key));
+ $this->assertFalse($this->pool->hasItem($key));
+ }
+
+ public function testDeletesItems()
+ {
+ $keys = ['item1', 'item2'];
+
+ foreach ($keys as $key) {
+ $this->saveItem($key, 'value');
+ }
+
+ $this->assertTrue($this->pool->deleteItems($keys));
+ $this->assertFalse($this->pool->hasItem($keys[0]));
+ $this->assertFalse($this->pool->hasItem($keys[1]));
+ }
+
+ public function testDoesNotDeleteItemsWithInvalidKey()
+ {
+ $keys = ['item1', '{item2}', 'item3'];
+ $value = 'value';
+ $this->saveItem($keys[0], $value);
+ $this->saveItem($keys[2], $value);
+
+ try {
+ $this->pool->deleteItems($keys);
+ } catch (InvalidArgumentException $ex) {
+ // continue execution
+ }
+
+ $this->assertTrue($this->pool->hasItem($keys[0]));
+ $this->assertTrue($this->pool->hasItem($keys[2]));
+ }
+
+ public function testSavesItem()
+ {
+ $key = 'item';
+ $this->saveItem($key, 'value');
+
+ $this->assertTrue($this->pool->hasItem($key));
+ }
+
+ public function testSavesDeferredItem()
+ {
+ $item = $this->pool->getItem('item');
+ $this->assertTrue($this->pool->saveDeferred($item));
+ }
+
+ public function testCommitsDeferredItems()
+ {
+ $keys = ['item1', 'item2'];
+
+ foreach ($keys as $key) {
+ $item = $this->pool->getItem($key);
+ $item->set('value');
+ $this->pool->saveDeferred($item);
+ }
+
+ $this->assertTrue($this->pool->commit());
+ $this->assertTrue($this->pool->hasItem($keys[0]));
+ $this->assertTrue($this->pool->hasItem($keys[1]));
+ }
+
+ /**
+ * @expectedException \Psr\Cache\InvalidArgumentException
+ * @dataProvider invalidKeys
+ */
+ public function testCheckInvalidKeys($key)
+ {
+ $this->pool->getItem($key);
+ $this->pool->getItems([$key]);
+ $this->pool->hasItem($key);
+ $this->pool->deleteItem($key);
+ $this->pool->deleteItems([$key]);
+ }
+
+ public function invalidKeys()
+ {
+ return [
+ [1],
+ [true],
+ [null],
+ [new \DateTime()],
+ ['{'],
+ ['}'],
+ ['('],
+ [')'],
+ ['/'],
+ ['\\'],
+ ['@'],
+ [':'],
+ [[]]
+ ];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/CacheTraitTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/CacheTraitTest.php
new file mode 100644
index 00000000..6946cdbe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/CacheTraitTest.php
@@ -0,0 +1,151 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\CacheTrait;
+
+class CacheTraitTest extends \PHPUnit_Framework_TestCase
+{
+ private $mockFetcher;
+ private $mockCacheItem;
+ private $mockCache;
+
+ public function setUp()
+ {
+ $this->mockFetcher =
+ $this
+ ->getMockBuilder('Google\Auth\FetchAuthTokenInterface')
+ ->getMock();
+ $this->mockCacheItem =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemInterface')
+ ->getMock();
+ $this->mockCache =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemPoolInterface')
+ ->getMock();
+ }
+
+ public function testSuccessfullyPullsFromCache()
+ {
+ $expectedValue = '1234';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($expectedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->will($this->returnValue($this->mockCacheItem));
+
+ $implementation = new CacheTraitImplementation([
+ 'cache' => $this->mockCache,
+ ]);
+
+ $cachedValue = $implementation->gCachedValue();
+ $this->assertEquals($expectedValue, $cachedValue);
+ }
+
+ public function testFailsPullFromCacheWithNoCache()
+ {
+ $implementation = new CacheTraitImplementation();
+
+ $cachedValue = $implementation->gCachedValue();
+ $this->assertEquals(null, $cachedValue);
+ }
+
+ public function testFailsPullFromCacheWithoutKey()
+ {
+ $implementation = new CacheTraitImplementation([
+ 'cache' => $this->mockCache,
+ 'key' => null,
+ ]);
+
+ $cachedValue = $implementation->gCachedValue();
+ }
+
+ public function testSuccessfullySetsToCache()
+ {
+ $value = '1234';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($value);
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo('key'))
+ ->will($this->returnValue($this->mockCacheItem));
+
+ $implementation = new CacheTraitImplementation([
+ 'cache' => $this->mockCache,
+ ]);
+
+ $implementation->sCachedValue($value);
+ }
+
+ public function testFailsSetToCacheWithNoCache()
+ {
+ $implementation = new CacheTraitImplementation();
+
+ $implementation->sCachedValue('1234');
+
+ $cachedValue = $implementation->sCachedValue('1234');
+ $this->assertNull($cachedValue);
+ }
+
+ public function testFailsSetToCacheWithoutKey()
+ {
+ $implementation = new CacheTraitImplementation([
+ 'cache' => $this->mockCache,
+ 'key' => null,
+ ]);
+
+ $cachedValue = $implementation->sCachedValue('1234');
+ $this->assertNull($cachedValue);
+ }
+}
+
+class CacheTraitImplementation
+{
+ use CacheTrait;
+
+ private $cache;
+ private $cacheConfig;
+
+ public function __construct(array $config = [])
+ {
+ $this->key = array_key_exists('key', $config) ? $config['key'] : 'key';
+ $this->cache = isset($config['cache']) ? $config['cache'] : null;
+ $this->cacheConfig = [
+ 'prefix' => '',
+ 'lifetime' => 1000,
+ ];
+ }
+
+ // allows us to keep trait methods private
+ public function gCachedValue()
+ {
+ return $this->getCachedValue($this->key);
+ }
+
+ public function sCachedValue($v)
+ {
+ $this->setCachedValue($this->key, $v);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/AppIndentityCredentialsTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/AppIndentityCredentialsTest.php
new file mode 100644
index 00000000..a47db8d3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/AppIndentityCredentialsTest.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use google\appengine\api\app_identity\AppIdentityService;
+// included from tests\mocks\AppIdentityService.php
+use Google\Auth\Credentials\AppIdentityCredentials;
+
+class AppIdentityCredentialsOnAppEngineTest extends \PHPUnit_Framework_TestCase
+{
+ public function testIsFalseByDefault()
+ {
+ $this->assertFalse(AppIdentityCredentials::onAppEngine());
+ }
+
+ public function testIsTrueWhenServerSoftwareIsGoogleAppEngine()
+ {
+ $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine';
+ $this->assertTrue(AppIdentityCredentials::onAppEngine());
+ }
+}
+
+class AppIdentityCredentialsGetCacheKeyTest extends \PHPUnit_Framework_TestCase
+{
+ public function testShouldBeEmpty()
+ {
+ $g = new AppIdentityCredentials();
+ $this->assertEmpty($g->getCacheKey());
+ }
+}
+
+class AppIdentityCredentialsFetchAuthTokenTest extends \PHPUnit_Framework_TestCase
+{
+ public function testShouldBeEmptyIfNotOnAppEngine()
+ {
+ $g = new AppIdentityCredentials();
+ $this->assertEquals(array(), $g->fetchAuthToken());
+ }
+
+ /* @expectedException */
+ public function testThrowsExceptionIfClassDoesntExist()
+ {
+ $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine';
+ $g = new AppIdentityCredentials();
+ }
+
+ public function testReturnsExpectedToken()
+ {
+ // include the mock AppIdentityService class
+ require_once __DIR__ . '/../mocks/AppIdentityService.php';
+
+ $wantedToken = [
+ 'access_token' => '1/abdef1234567890',
+ 'expires_in' => '57',
+ 'token_type' => 'Bearer',
+ ];
+
+ AppIdentityService::$accessToken = $wantedToken;
+
+ $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine';
+
+ $g = new AppIdentityCredentials();
+ $this->assertEquals($wantedToken, $g->fetchAuthToken());
+ }
+
+ public function testScopeIsAlwaysArray()
+ {
+ // include the mock AppIdentityService class
+ require_once __DIR__ . '/../mocks/AppIdentityService.php';
+
+ $scope1 = ['scopeA', 'scopeB'];
+ $scope2 = 'scopeA scopeB';
+ $scope3 = 'scopeA';
+
+ $_SERVER['SERVER_SOFTWARE'] = 'Google App Engine';
+
+ $g = new AppIdentityCredentials($scope1);
+ $g->fetchAuthToken();
+ $this->assertEquals($scope1, AppIdentityService::$scope);
+
+ $g = new AppIdentityCredentials($scope2);
+ $g->fetchAuthToken();
+ $this->assertEquals(explode(' ', $scope2), AppIdentityService::$scope);
+
+ $g = new AppIdentityCredentials($scope3);
+ $g->fetchAuthToken();
+ $this->assertEquals([$scope3], AppIdentityService::$scope);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/GCECredentialsTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/GCECredentialsTest.php
new file mode 100644
index 00000000..fe2bb25a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/GCECredentialsTest.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\Credentials\GCECredentials;
+use GuzzleHttp\Psr7;
+use GuzzleHttp\Psr7\Response;
+
+class GCECredentialsOnGCETest extends \PHPUnit_Framework_TestCase
+{
+ public function testIsFalseOnClientErrorStatus()
+ {
+ $httpHandler = getHandler([
+ buildResponse(400),
+ ]);
+ $this->assertFalse(GCECredentials::onGCE($httpHandler));
+ }
+
+ public function testIsFalseOnServerErrorStatus()
+ {
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+ $this->assertFalse(GCECredentials::onGCE($httpHandler));
+ }
+
+ public function testIsFalseOnOkStatusWithoutExpectedHeader()
+ {
+ $httpHandler = getHandler([
+ buildResponse(200),
+ ]);
+ $this->assertFalse(GCECredentials::onGCE($httpHandler));
+ }
+
+ public function testIsOkIfGoogleIsTheFlavor()
+ {
+ $httpHandler = getHandler([
+ buildResponse(200, [GCECredentials::FLAVOR_HEADER => 'Google']),
+ ]);
+ $this->assertTrue(GCECredentials::onGCE($httpHandler));
+ }
+}
+
+class GCECredentialsOnAppEngineFlexibleTest extends \PHPUnit_Framework_TestCase
+{
+ public function testIsFalseByDefault()
+ {
+ $this->assertFalse(GCECredentials::onAppEngineFlexible());
+ }
+
+ public function testIsTrueWhenGaeVmIsTrue()
+ {
+ $_SERVER['GAE_VM'] = 'true';
+ $this->assertTrue(GCECredentials::onAppEngineFlexible());
+ }
+}
+
+class GCECredentialsGetCacheKeyTest extends \PHPUnit_Framework_TestCase
+{
+ public function testShouldNotBeEmpty()
+ {
+ $g = new GCECredentials();
+ $this->assertNotEmpty($g->getCacheKey());
+ }
+}
+
+class GCECredentialsFetchAuthTokenTest extends \PHPUnit_Framework_TestCase
+{
+ public function testShouldBeEmptyIfNotOnGCE()
+ {
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+ $g = new GCECredentials();
+ $this->assertEquals(array(), $g->fetchAuthToken($httpHandler));
+ }
+
+ /**
+ * @expectedException Exception
+ * @expectedExceptionMessage Invalid JSON response
+ */
+ public function testShouldFailIfResponseIsNotJson()
+ {
+ $notJson = '{"foo": , this is cannot be passed as json" "bar"}';
+ $httpHandler = getHandler([
+ buildResponse(200, [GCECredentials::FLAVOR_HEADER => 'Google']),
+ buildResponse(200, [], $notJson),
+ ]);
+ $g = new GCECredentials();
+ $g->fetchAuthToken($httpHandler);
+ }
+
+ public function testShouldReturnTokenInfo()
+ {
+ $wantedTokens = [
+ 'access_token' => '1/abdef1234567890',
+ 'expires_in' => '57',
+ 'token_type' => 'Bearer',
+ ];
+ $jsonTokens = json_encode($wantedTokens);
+ $httpHandler = getHandler([
+ buildResponse(200, [GCECredentials::FLAVOR_HEADER => 'Google']),
+ buildResponse(200, [], Psr7\stream_for($jsonTokens)),
+ ]);
+ $g = new GCECredentials();
+ $this->assertEquals($wantedTokens, $g->fetchAuthToken($httpHandler));
+ $this->assertEquals(time() + 57, $g->getLastReceivedToken()['expires_at']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/IAMCredentialsTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/IAMCredentialsTest.php
new file mode 100644
index 00000000..fc9c8650
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/IAMCredentialsTest.php
@@ -0,0 +1,83 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\Credentials\IAMCredentials;
+
+class IAMConstructorTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfSelectorIsNotString()
+ {
+ $notAString = new \stdClass();
+ $iam = new IAMCredentials(
+ $notAString,
+ ''
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfTokenIsNotString()
+ {
+ $notAString = new \stdClass();
+ $iam = new IAMCredentials(
+ '',
+ $notAString
+ );
+ }
+
+ public function testInitializeSuccess()
+ {
+ $this->assertNotNull(
+ new IAMCredentials('iam-selector', 'iam-token')
+ );
+ }
+}
+
+class IAMUpdateMetadataCallbackTest extends \PHPUnit_Framework_TestCase
+{
+ public function testUpdateMetadataFunc()
+ {
+ $selector = 'iam-selector';
+ $token = 'iam-token';
+ $iam = new IAMCredentials(
+ $selector,
+ $token
+ );
+
+ $update_metadata = $iam->getUpdateMetadataFunc();
+ $this->assertTrue(is_callable($update_metadata));
+
+ $actual_metadata = call_user_func($update_metadata,
+ $metadata = array('foo' => 'bar'));
+ $this->assertTrue(
+ isset($actual_metadata[IAMCredentials::SELECTOR_KEY]));
+ $this->assertEquals(
+ $actual_metadata[IAMCredentials::SELECTOR_KEY],
+ $selector);
+ $this->assertTrue(
+ isset($actual_metadata[IAMCredentials::TOKEN_KEY]));
+ $this->assertEquals(
+ $actual_metadata[IAMCredentials::TOKEN_KEY],
+ $token);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/ServiceAccountCredentialsTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/ServiceAccountCredentialsTest.php
new file mode 100644
index 00000000..d7066dac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/ServiceAccountCredentialsTest.php
@@ -0,0 +1,508 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\ApplicationDefaultCredentials;
+use Google\Auth\Credentials\ServiceAccountCredentials;
+use Google\Auth\Credentials\ServiceAccountJwtAccessCredentials;
+use Google\Auth\CredentialsLoader;
+use Google\Auth\OAuth2;
+use GuzzleHttp\Psr7;
+
+// Creates a standard JSON auth object for testing.
+function createTestJson()
+{
+ return [
+ 'private_key_id' => 'key123',
+ 'private_key' => 'privatekey',
+ 'client_email' => 'test@example.com',
+ 'client_id' => 'client123',
+ 'type' => 'service_account',
+ ];
+}
+
+class SACGetCacheKeyTest extends \PHPUnit_Framework_TestCase
+{
+ public function testShouldBeTheSameAsOAuth2WithTheSameScope()
+ {
+ $testJson = createTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson);
+ $o = new OAuth2(['scope' => $scope]);
+ $this->assertSame(
+ $testJson['client_email'] . ':' . $o->getCacheKey(),
+ $sa->getCacheKey()
+ );
+ }
+
+ public function testShouldBeTheSameAsOAuth2WithTheSameScopeWithSub()
+ {
+ $testJson = createTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $sub = 'sub123';
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson,
+ $sub);
+ $o = new OAuth2(['scope' => $scope]);
+ $this->assertSame(
+ $testJson['client_email'] . ':' . $o->getCacheKey() . ':' . $sub,
+ $sa->getCacheKey()
+ );
+ }
+
+ public function testShouldBeTheSameAsOAuth2WithTheSameScopeWithSubAddedLater()
+ {
+ $testJson = createTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $sub = 'sub123';
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson,
+ null);
+ $sa->setSub($sub);
+
+ $o = new OAuth2(['scope' => $scope]);
+ $this->assertSame(
+ $testJson['client_email'] . ':' . $o->getCacheKey() . ':' . $sub,
+ $sa->getCacheKey()
+ );
+ }
+}
+
+class SACConstructorTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfScopeIsNotAValidType()
+ {
+ $testJson = createTestJson();
+ $notAnArrayOrString = new \stdClass();
+ $sa = new ServiceAccountCredentials(
+ $notAnArrayOrString,
+ $testJson
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfJsonDoesNotHaveClientEmail()
+ {
+ $testJson = createTestJson();
+ unset($testJson['client_email']);
+ $scope = ['scope/1', 'scope/2'];
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfJsonDoesNotHavePrivateKey()
+ {
+ $testJson = createTestJson();
+ unset($testJson['private_key']);
+ $scope = ['scope/1', 'scope/2'];
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testFailsToInitalizeFromANonExistentFile()
+ {
+ $keyFile = __DIR__ . '/../fixtures' . '/does-not-exist-private.json';
+ new ServiceAccountCredentials('scope/1', $keyFile);
+ }
+
+ public function testInitalizeFromAFile()
+ {
+ $keyFile = __DIR__ . '/../fixtures' . '/private.json';
+ $this->assertNotNull(
+ new ServiceAccountCredentials('scope/1', $keyFile)
+ );
+ }
+}
+
+class SACFromEnvTest extends \PHPUnit_Framework_TestCase
+{
+ protected function tearDown()
+ {
+ putenv(ServiceAccountCredentials::ENV_VAR); // removes it from
+ }
+
+ public function testIsNullIfEnvVarIsNotSet()
+ {
+ $this->assertNull(ServiceAccountCredentials::fromEnv());
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfEnvSpecifiesNonExistentFile()
+ {
+ $keyFile = __DIR__ . '/../fixtures' . '/does-not-exist-private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ ApplicationDefaultCredentials::getCredentials('a scope');
+ }
+
+ public function testSucceedIfFileExists()
+ {
+ $keyFile = __DIR__ . '/../fixtures' . '/private.json';
+ putenv(ServiceAccountCredentials::ENV_VAR . '=' . $keyFile);
+ $this->assertNotNull(ApplicationDefaultCredentials::getCredentials('a scope'));
+ }
+}
+
+class SACFromWellKnownFileTest extends \PHPUnit_Framework_TestCase
+{
+ private $originalHome;
+
+ protected function setUp()
+ {
+ $this->originalHome = getenv('HOME');
+ }
+
+ protected function tearDown()
+ {
+ if ($this->originalHome != getenv('HOME')) {
+ putenv('HOME=' . $this->originalHome);
+ }
+ }
+
+ public function testIsNullIfFileDoesNotExist()
+ {
+ putenv('HOME=' . __DIR__ . '/../not_exists_fixtures');
+ $this->assertNull(
+ ServiceAccountCredentials::fromWellKnownFile()
+ );
+ }
+
+ public function testSucceedIfFileIsPresent()
+ {
+ putenv('HOME=' . __DIR__ . '/../fixtures');
+ $this->assertNotNull(
+ ApplicationDefaultCredentials::getCredentials('a scope')
+ );
+ }
+}
+
+class SACFetchAuthTokenTest extends \PHPUnit_Framework_TestCase
+{
+ private $privateKey;
+
+ public function setUp()
+ {
+ $this->privateKey =
+ file_get_contents(__DIR__ . '/../fixtures' . '/private.pem');
+ }
+
+ private function createTestJson()
+ {
+ $testJson = createTestJson();
+ $testJson['private_key'] = $this->privateKey;
+
+ return $testJson;
+ }
+
+ /**
+ * @expectedException GuzzleHttp\Exception\ClientException
+ */
+ public function testFailsOnClientErrors()
+ {
+ $testJson = $this->createTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $httpHandler = getHandler([
+ buildResponse(400),
+ ]);
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ $sa->fetchAuthToken($httpHandler);
+ }
+
+ /**
+ * @expectedException GuzzleHttp\Exception\ServerException
+ */
+ public function testFailsOnServerErrors()
+ {
+ $testJson = $this->createTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ $sa->fetchAuthToken($httpHandler);
+ }
+
+ public function testCanFetchCredsOK()
+ {
+ $testJson = $this->createTestJson();
+ $testJsonText = json_encode($testJson);
+ $scope = ['scope/1', 'scope/2'];
+ $httpHandler = getHandler([
+ buildResponse(200, [], Psr7\stream_for($testJsonText)),
+ ]);
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ $tokens = $sa->fetchAuthToken($httpHandler);
+ $this->assertEquals($testJson, $tokens);
+ }
+
+ public function testUpdateMetadataFunc()
+ {
+ $testJson = $this->createTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $access_token = 'accessToken123';
+ $responseText = json_encode(array('access_token' => $access_token));
+ $httpHandler = getHandler([
+ buildResponse(200, [], Psr7\stream_for($responseText)),
+ ]);
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ $update_metadata = $sa->getUpdateMetadataFunc();
+ $this->assertTrue(is_callable($update_metadata));
+
+ $actual_metadata = call_user_func($update_metadata,
+ $metadata = array('foo' => 'bar'),
+ $authUri = null,
+ $httpHandler);
+ $this->assertTrue(
+ isset($actual_metadata[CredentialsLoader::AUTH_METADATA_KEY]));
+ $this->assertEquals(
+ $actual_metadata[CredentialsLoader::AUTH_METADATA_KEY],
+ array('Bearer ' . $access_token));
+ }
+}
+
+class SACJwtAccessTest extends \PHPUnit_Framework_TestCase
+{
+ private $privateKey;
+
+ public function setUp()
+ {
+ $this->privateKey =
+ file_get_contents(__DIR__ . '/../fixtures' . '/private.pem');
+ }
+
+ private function createTestJson()
+ {
+ $testJson = createTestJson();
+ $testJson['private_key'] = $this->privateKey;
+
+ return $testJson;
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testFailsOnMissingClientEmail()
+ {
+ $testJson = $this->createTestJson();
+ unset($testJson['client_email']);
+ $sa = new ServiceAccountJwtAccessCredentials(
+ $testJson
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testFailsOnMissingPrivateKey()
+ {
+ $testJson = $this->createTestJson();
+ unset($testJson['private_key']);
+ $sa = new ServiceAccountJwtAccessCredentials(
+ $testJson
+ );
+ }
+
+ public function testCanInitializeFromJson()
+ {
+ $testJson = $this->createTestJson();
+ $sa = new ServiceAccountJwtAccessCredentials(
+ $testJson
+ );
+ $this->assertNotNull($sa);
+ }
+
+ public function testNoOpOnFetchAuthToken()
+ {
+ $testJson = $this->createTestJson();
+ $sa = new ServiceAccountJwtAccessCredentials(
+ $testJson
+ );
+ $this->assertNotNull($sa);
+
+ $httpHandler = getHandler([
+ buildResponse(200),
+ ]);
+ $result = $sa->fetchAuthToken($httpHandler); // authUri has not been set
+ $this->assertNull($result);
+ }
+
+ public function testAuthUriIsNotSet()
+ {
+ $testJson = $this->createTestJson();
+ $sa = new ServiceAccountJwtAccessCredentials(
+ $testJson
+ );
+ $this->assertNotNull($sa);
+
+ $update_metadata = $sa->getUpdateMetadataFunc();
+ $this->assertTrue(is_callable($update_metadata));
+
+ $actual_metadata = call_user_func($update_metadata,
+ $metadata = array('foo' => 'bar'),
+ $authUri = null);
+ $this->assertTrue(
+ !isset($actual_metadata[CredentialsLoader::AUTH_METADATA_KEY]));
+ }
+
+ public function testUpdateMetadataFunc()
+ {
+ $testJson = $this->createTestJson();
+ $sa = new ServiceAccountJwtAccessCredentials(
+ $testJson
+ );
+ $this->assertNotNull($sa);
+
+ $update_metadata = $sa->getUpdateMetadataFunc();
+ $this->assertTrue(is_callable($update_metadata));
+
+ $actual_metadata = call_user_func($update_metadata,
+ $metadata = array('foo' => 'bar'),
+ $authUri = 'https://example.com/service');
+ $this->assertTrue(
+ isset($actual_metadata[CredentialsLoader::AUTH_METADATA_KEY]));
+
+ $authorization = $actual_metadata[CredentialsLoader::AUTH_METADATA_KEY];
+ $this->assertTrue(is_array($authorization));
+
+ $bearer_token = current($authorization);
+ $this->assertTrue(is_string($bearer_token));
+ $this->assertTrue(strpos($bearer_token, 'Bearer ') == 0);
+ $this->assertTrue(strlen($bearer_token) > 30);
+
+ $actual_metadata2 = call_user_func($update_metadata,
+ $metadata = array('foo' => 'bar'),
+ $authUri = 'https://example.com/anotherService');
+ $this->assertTrue(
+ isset($actual_metadata2[CredentialsLoader::AUTH_METADATA_KEY]));
+
+ $authorization2 = $actual_metadata2[CredentialsLoader::AUTH_METADATA_KEY];
+ $this->assertTrue(is_array($authorization2));
+
+ $bearer_token2 = current($authorization2);
+ $this->assertTrue(is_string($bearer_token2));
+ $this->assertTrue(strpos($bearer_token2, 'Bearer ') == 0);
+ $this->assertTrue(strlen($bearer_token2) > 30);
+ $this->assertTrue($bearer_token != $bearer_token2);
+ }
+}
+
+class SACJwtAccessComboTest extends \PHPUnit_Framework_TestCase
+{
+ private $privateKey;
+
+ public function setUp()
+ {
+ $this->privateKey =
+ file_get_contents(__DIR__ . '/../fixtures' . '/private.pem');
+ }
+
+ private function createTestJson()
+ {
+ $testJson = createTestJson();
+ $testJson['private_key'] = $this->privateKey;
+
+ return $testJson;
+ }
+
+ public function testNoScopeUseJwtAccess()
+ {
+ $testJson = $this->createTestJson();
+ // no scope, jwt access should be used, no outbound
+ // call should be made
+ $scope = null;
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ $this->assertNotNull($sa);
+
+ $update_metadata = $sa->getUpdateMetadataFunc();
+ $this->assertTrue(is_callable($update_metadata));
+
+ $actual_metadata = call_user_func($update_metadata,
+ $metadata = array('foo' => 'bar'),
+ $authUri = 'https://example.com/service');
+ $this->assertTrue(
+ isset($actual_metadata[CredentialsLoader::AUTH_METADATA_KEY]));
+
+ $authorization = $actual_metadata[CredentialsLoader::AUTH_METADATA_KEY];
+ $this->assertTrue(is_array($authorization));
+
+ $bearer_token = current($authorization);
+ $this->assertTrue(is_string($bearer_token));
+ $this->assertTrue(strpos($bearer_token, 'Bearer ') == 0);
+ $this->assertTrue(strlen($bearer_token) > 30);
+ }
+
+ public function testNoScopeAndNoAuthUri()
+ {
+ $testJson = $this->createTestJson();
+ // no scope, jwt access should be used, no outbound
+ // call should be made
+ $scope = null;
+ $sa = new ServiceAccountCredentials(
+ $scope,
+ $testJson
+ );
+ $this->assertNotNull($sa);
+
+ $update_metadata = $sa->getUpdateMetadataFunc();
+ $this->assertTrue(is_callable($update_metadata));
+
+ $actual_metadata = call_user_func($update_metadata,
+ $metadata = array('foo' => 'bar'),
+ $authUri = null);
+ // no access_token is added to the metadata hash
+ // but also, no error should be thrown
+ $this->assertTrue(is_array($actual_metadata));
+ $this->assertTrue(
+ !isset($actual_metadata[CredentialsLoader::AUTH_METADATA_KEY]));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/UserRefreshCredentialsTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/UserRefreshCredentialsTest.php
new file mode 100644
index 00000000..accf448d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Credentials/UserRefreshCredentialsTest.php
@@ -0,0 +1,228 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\ApplicationDefaultCredentials;
+use Google\Auth\Credentials\UserRefreshCredentials;
+use Google\Auth\OAuth2;
+use GuzzleHttp\Psr7;
+
+// Creates a standard JSON auth object for testing.
+function createURCTestJson()
+{
+ return [
+ 'client_id' => 'client123',
+ 'client_secret' => 'clientSecret123',
+ 'refresh_token' => 'refreshToken123',
+ 'type' => 'authorized_user',
+ ];
+}
+
+class URCGetCacheKeyTest extends \PHPUnit_Framework_TestCase
+{
+ public function testShouldBeTheSameAsOAuth2WithTheSameScope()
+ {
+ $testJson = createURCTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $sa = new UserRefreshCredentials(
+ $scope,
+ $testJson);
+ $o = new OAuth2(['scope' => $scope]);
+ $this->assertSame(
+ $testJson['client_id'] . ':' . $o->getCacheKey(),
+ $sa->getCacheKey()
+ );
+ }
+}
+
+class URCConstructorTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfScopeIsNotAValidType()
+ {
+ $testJson = createURCTestJson();
+ $notAnArrayOrString = new \stdClass();
+ $sa = new UserRefreshCredentials(
+ $notAnArrayOrString,
+ $testJson
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfJsonDoesNotHaveClientSecret()
+ {
+ $testJson = createURCTestJson();
+ unset($testJson['client_secret']);
+ $scope = ['scope/1', 'scope/2'];
+ $sa = new UserRefreshCredentials(
+ $scope,
+ $testJson
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testShouldFailIfJsonDoesNotHaveRefreshToken()
+ {
+ $testJson = createURCTestJson();
+ unset($testJson['refresh_token']);
+ $scope = ['scope/1', 'scope/2'];
+ $sa = new UserRefreshCredentials(
+ $scope,
+ $testJson
+ );
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testFailsToInitalizeFromANonExistentFile()
+ {
+ $keyFile = __DIR__ . '/../fixtures' . '/does-not-exist-private.json';
+ new UserRefreshCredentials('scope/1', $keyFile);
+ }
+
+ public function testInitalizeFromAFile()
+ {
+ $keyFile = __DIR__ . '/../fixtures2' . '/private.json';
+ $this->assertNotNull(
+ new UserRefreshCredentials('scope/1', $keyFile)
+ );
+ }
+}
+
+class URCFromEnvTest extends \PHPUnit_Framework_TestCase
+{
+ protected function tearDown()
+ {
+ putenv(UserRefreshCredentials::ENV_VAR); // removes it from
+ }
+
+ public function testIsNullIfEnvVarIsNotSet()
+ {
+ $this->assertNull(UserRefreshCredentials::fromEnv('a scope'));
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfEnvSpecifiesNonExistentFile()
+ {
+ $keyFile = __DIR__ . '/../fixtures' . '/does-not-exist-private.json';
+ putenv(UserRefreshCredentials::ENV_VAR . '=' . $keyFile);
+ UserRefreshCredentials::fromEnv('a scope');
+ }
+
+ public function testSucceedIfFileExists()
+ {
+ $keyFile = __DIR__ . '/../fixtures2' . '/private.json';
+ putenv(UserRefreshCredentials::ENV_VAR . '=' . $keyFile);
+ $this->assertNotNull(ApplicationDefaultCredentials::getCredentials('a scope'));
+ }
+}
+
+class URCFromWellKnownFileTest extends \PHPUnit_Framework_TestCase
+{
+ private $originalHome;
+
+ protected function setUp()
+ {
+ $this->originalHome = getenv('HOME');
+ }
+
+ protected function tearDown()
+ {
+ if ($this->originalHome != getenv('HOME')) {
+ putenv('HOME=' . $this->originalHome);
+ }
+ }
+
+ public function testIsNullIfFileDoesNotExist()
+ {
+ putenv('HOME=' . __DIR__ . '/../not_exist_fixtures');
+ $this->assertNull(
+ UserRefreshCredentials::fromWellKnownFile('a scope')
+ );
+ }
+
+ public function testSucceedIfFileIsPresent()
+ {
+ putenv('HOME=' . __DIR__ . '/../fixtures2');
+ $this->assertNotNull(
+ ApplicationDefaultCredentials::getCredentials('a scope')
+ );
+ }
+}
+
+class URCFetchAuthTokenTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @expectedException GuzzleHttp\Exception\ClientException
+ */
+ public function testFailsOnClientErrors()
+ {
+ $testJson = createURCTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $httpHandler = getHandler([
+ buildResponse(400),
+ ]);
+ $sa = new UserRefreshCredentials(
+ $scope,
+ $testJson
+ );
+ $sa->fetchAuthToken($httpHandler);
+ }
+
+ /**
+ * @expectedException GuzzleHttp\Exception\ServerException
+ */
+ public function testFailsOnServerErrors()
+ {
+ $testJson = createURCTestJson();
+ $scope = ['scope/1', 'scope/2'];
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+ $sa = new UserRefreshCredentials(
+ $scope,
+ $testJson
+ );
+ $sa->fetchAuthToken($httpHandler);
+ }
+
+ public function testCanFetchCredsOK()
+ {
+ $testJson = createURCTestJson();
+ $testJsonText = json_encode($testJson);
+ $scope = ['scope/1', 'scope/2'];
+ $httpHandler = getHandler([
+ buildResponse(200, [], Psr7\stream_for($testJsonText)),
+ ]);
+ $sa = new UserRefreshCredentials(
+ $scope,
+ $testJson
+ );
+ $tokens = $sa->fetchAuthToken($httpHandler);
+ $this->assertEquals($testJson, $tokens);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenCacheTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenCacheTest.php
new file mode 100644
index 00000000..359094a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenCacheTest.php
@@ -0,0 +1,146 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\tests;
+
+use Google\Auth\FetchAuthTokenCache;
+
+class FetchAuthTokenCacheTest extends BaseTest
+{
+ protected function setUp()
+ {
+ $this->mockFetcher =
+ $this
+ ->getMockBuilder('Google\Auth\FetchAuthTokenInterface')
+ ->getMock();
+ $this->mockCacheItem =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemInterface')
+ ->getMock();
+ $this->mockCache =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemPoolInterface')
+ ->getMock();
+ }
+
+ public function testUsesCachedAuthToken()
+ {
+ $cacheKey = 'myKey';
+ $cachedValue = '2/abcdef1234567890';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->never())
+ ->method('fetchAuthToken');
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+
+ // Run the test.
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ null,
+ $this->mockCache
+ );
+ $accessToken = $cachedFetcher->fetchAuthToken();
+ $this->assertEquals($accessToken, ['access_token' => $cachedValue]);
+ }
+
+ public function testGetsCachedAuthTokenUsingCachePrefix()
+ {
+ $prefix = 'test_prefix_';
+ $cacheKey = 'myKey';
+ $cachedValue = '2/abcdef1234567890';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->never())
+ ->method('fetchAuthToken');
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+
+ // Run the test
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix],
+ $this->mockCache
+ );
+ $accessToken = $cachedFetcher->fetchAuthToken();
+ $this->assertEquals($accessToken, ['access_token' => $cachedValue]);
+ }
+
+ public function testShouldSaveValueInCacheWithCacheOptions()
+ {
+ $prefix = 'test_prefix_';
+ $lifetime = '70707';
+ $cacheKey = 'myKey';
+ $token = '1/abcdef1234567890';
+ $authResult = ['access_token' => $token];
+ $this->mockCacheItem
+ ->expects($this->any())
+ ->method('get')
+ ->will($this->returnValue(null));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($this->equalTo($token))
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('expiresAfter')
+ ->with($this->equalTo($lifetime));
+ $this->mockCache
+ ->expects($this->exactly(2))
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+
+ // Run the test
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix, 'lifetime' => $lifetime],
+ $this->mockCache
+ );
+ $accessToken = $cachedFetcher->fetchAuthToken();
+ $this->assertEquals($accessToken, ['access_token' => $token]);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenTest.php
new file mode 100644
index 00000000..8616993b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/FetchAuthTokenTest.php
@@ -0,0 +1,170 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\tests;
+
+use Google\Auth\Credentials\AppIdentityCredentials;
+use Google\Auth\Credentials\GCECredentials;
+use Google\Auth\Credentials\ServiceAccountCredentials;
+use Google\Auth\Credentials\ServiceAccountJwtAccessCredentials;
+use Google\Auth\Credentials\UserRefreshCredentials;
+use Google\Auth\CredentialsLoader;
+use Google\Auth\FetchAuthTokenInterface;
+use Google\Auth\OAuth2;
+
+class FetchAuthTokenTest extends BaseTest
+{
+ /** @dataProvider provideAuthTokenFetcher */
+ public function testGetLastReceivedToken(FetchAuthTokenInterface $fetcher)
+ {
+ $accessToken = $fetcher->getLastReceivedToken();
+
+ $this->assertNotNull($accessToken);
+ $this->assertArrayHasKey('access_token', $accessToken);
+ $this->assertArrayHasKey('expires_at', $accessToken);
+
+ $this->assertEquals('xyz', $accessToken['access_token']);
+ $this->assertEquals(strtotime('2001'), $accessToken['expires_at']);
+ }
+
+ public function provideAuthTokenFetcher()
+ {
+ $scopes = ['https://www.googleapis.com/auth/drive.readonly'];
+ $jsonPath = sprintf(
+ '%s/fixtures/.config/%s',
+ __DIR__,
+ CredentialsLoader::WELL_KNOWN_PATH
+ );
+ $jsonPath2 = sprintf(
+ '%s/fixtures2/.config/%s',
+ __DIR__,
+ CredentialsLoader::WELL_KNOWN_PATH
+ );
+
+ return [
+ [$this->getAppIdentityCredentials()],
+ [$this->getGCECredentials()],
+ [$this->getServiceAccountCredentials($scopes, $jsonPath)],
+ [$this->getServiceAccountJwtAccessCredentials($jsonPath)],
+ [$this->getUserRefreshCredentials($scopes, $jsonPath2)],
+ [$this->getOAuth2()],
+ ];
+ }
+
+ private function getAppIdentityCredentials()
+ {
+ $class = new \ReflectionClass(
+ 'Google\Auth\Credentials\AppIdentityCredentials'
+ );
+ $property = $class->getProperty('lastReceivedToken');
+ $property->setAccessible(true);
+
+ $credentials = new AppIdentityCredentials();
+ $property->setValue($credentials, [
+ 'access_token' => 'xyz',
+ 'expiration_time' => strtotime('2001'),
+ ]);
+
+ return $credentials;
+ }
+
+ private function getGCECredentials()
+ {
+ $class = new \ReflectionClass(
+ 'Google\Auth\Credentials\GCECredentials'
+ );
+ $property = $class->getProperty('lastReceivedToken');
+ $property->setAccessible(true);
+
+ $credentials = new GCECredentials();
+ $property->setValue($credentials, [
+ 'access_token' => 'xyz',
+ 'expires_at' => strtotime('2001'),
+ ]);
+
+ return $credentials;
+ }
+
+ private function getServiceAccountCredentials($scopes, $jsonPath)
+ {
+ $class = new \ReflectionClass(
+ 'Google\Auth\Credentials\ServiceAccountCredentials'
+ );
+ $property = $class->getProperty('auth');
+ $property->setAccessible(true);
+
+ $credentials = new ServiceAccountCredentials($scopes, $jsonPath);
+ $property->setValue($credentials, $this->getOAuth2Mock());
+
+ return $credentials;
+ }
+
+ private function getServiceAccountJwtAccessCredentials($jsonPath)
+ {
+ $class = new \ReflectionClass(
+ 'Google\Auth\Credentials\ServiceAccountJwtAccessCredentials'
+ );
+ $property = $class->getProperty('auth');
+ $property->setAccessible(true);
+
+ $credentials = new ServiceAccountJwtAccessCredentials($jsonPath);
+ $property->setValue($credentials, $this->getOAuth2Mock());
+
+ return $credentials;
+ }
+
+ private function getUserRefreshCredentials($scopes, $jsonPath)
+ {
+ $class = new \ReflectionClass(
+ 'Google\Auth\Credentials\UserRefreshCredentials'
+ );
+ $property = $class->getProperty('auth');
+ $property->setAccessible(true);
+
+ $credentials = new UserRefreshCredentials($scopes, $jsonPath);
+ $property->setValue($credentials, $this->getOAuth2Mock());
+
+ return $credentials;
+ }
+
+ private function getOAuth2()
+ {
+ $oauth = new OAuth2([
+ 'access_token' => 'xyz',
+ 'expires_at' => strtotime('2001'),
+ ]);
+
+ return $oauth;
+ }
+
+ private function getOAuth2Mock()
+ {
+ $mock = $this->getMockBuilder('Google\Auth\OAuth2')
+ ->disableOriginalConstructor()
+ ->getMock();
+
+ $mock
+ ->expects($this->once())
+ ->method('getLastReceivedToken')
+ ->will($this->returnValue([
+ 'access_token' => 'xyz',
+ 'expires_at' => strtotime('2001'),
+ ]));
+
+ return $mock;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle5HttpHandlerTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle5HttpHandlerTest.php
new file mode 100644
index 00000000..f8560b17
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle5HttpHandlerTest.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\HttpHandler\Guzzle5HttpHandler;
+use GuzzleHttp\Message\Response;
+
+class Guzzle5HttpHandlerTest extends BaseTest
+{
+ public function setUp()
+ {
+ $this->onlyGuzzle5();
+
+ $this->mockPsr7Request =
+ $this
+ ->getMockBuilder('Psr\Http\Message\RequestInterface')
+ ->getMock();
+ $this->mockRequest =
+ $this
+ ->getMockBuilder('GuzzleHttp\Message\RequestInterface')
+ ->getMock();
+ $this->mockClient =
+ $this
+ ->getMockBuilder('GuzzleHttp\Client')
+ ->disableOriginalConstructor()
+ ->getMock();
+ }
+
+ public function testSuccessfullySendsRequest()
+ {
+ $this->mockClient
+ ->expects($this->any())
+ ->method('send')
+ ->will($this->returnValue(new Response(200)));
+ $this->mockClient
+ ->expects($this->any())
+ ->method('createRequest')
+ ->will($this->returnValue($this->mockRequest));
+
+ $handler = new Guzzle5HttpHandler($this->mockClient);
+ $response = $handler($this->mockPsr7Request);
+ $this->assertInstanceOf('Psr\Http\Message\ResponseInterface', $response);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle6HttpHandlerTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle6HttpHandlerTest.php
new file mode 100644
index 00000000..dfd90db9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/Guzzle6HttpHandlerTest.php
@@ -0,0 +1,50 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\HttpHandler\Guzzle6HttpHandler;
+use GuzzleHttp\Psr7\Response;
+
+class Guzzle6HttpHandlerTest extends BaseTest
+{
+ public function setUp()
+ {
+ $this->onlyGuzzle6();
+
+ $this->mockRequest =
+ $this
+ ->getMockBuilder('Psr\Http\Message\RequestInterface')
+ ->getMock();
+ $this->mockClient =
+ $this
+ ->getMockBuilder('GuzzleHttp\Client')
+ ->getMock();
+ }
+
+ public function testSuccessfullySendsRequest()
+ {
+ $this->mockClient
+ ->expects($this->any())
+ ->method('send')
+ ->will($this->returnValue(new Response(200)));
+
+ $handler = new Guzzle6HttpHandler($this->mockClient);
+ $response = $handler($this->mockRequest);
+ $this->assertInstanceOf('Psr\Http\Message\ResponseInterface', $response);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/HttpHandlerFactoryTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/HttpHandlerFactoryTest.php
new file mode 100644
index 00000000..73126e60
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/HttpHandler/HttpHandlerFactoryTest.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\HttpHandler\HttpHandlerFactory;
+
+class HttpHandlerFactoryTest extends BaseTest
+{
+ public function testBuildsGuzzle5Handler()
+ {
+ $this->onlyGuzzle5();
+
+ $handler = HttpHandlerFactory::build();
+ $this->assertInstanceOf('Google\Auth\HttpHandler\Guzzle5HttpHandler', $handler);
+ }
+
+ public function testBuildsGuzzle6Handler()
+ {
+ $this->onlyGuzzle6();
+
+ $handler = HttpHandlerFactory::build();
+ $this->assertInstanceOf('Google\Auth\HttpHandler\Guzzle6HttpHandler', $handler);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/AuthTokenMiddlewareTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/AuthTokenMiddlewareTest.php
new file mode 100644
index 00000000..43f03705
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/AuthTokenMiddlewareTest.php
@@ -0,0 +1,336 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\FetchAuthTokenCache;
+use Google\Auth\Middleware\AuthTokenMiddleware;
+use GuzzleHttp\Handler\MockHandler;
+use GuzzleHttp\Psr7\Response;
+
+class AuthTokenMiddlewareTest extends BaseTest
+{
+ private $mockFetcher;
+ private $mockCacheItem;
+ private $mockCache;
+ private $mockRequest;
+
+ protected function setUp()
+ {
+ $this->onlyGuzzle6();
+
+ $this->mockFetcher =
+ $this
+ ->getMockBuilder('Google\Auth\FetchAuthTokenInterface')
+ ->getMock();
+ $this->mockCacheItem =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemInterface')
+ ->getMock();
+ $this->mockCache =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemPoolInterface')
+ ->getMock();
+ $this->mockRequest =
+ $this
+ ->getMockBuilder('GuzzleHttp\Psr7\Request')
+ ->disableOriginalConstructor()
+ ->getMock();
+ }
+
+ public function testOnlyTouchesWhenAuthConfigScoped()
+ {
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue([]));
+ $this->mockRequest
+ ->expects($this->never())
+ ->method('withHeader');
+
+ $middleware = new AuthTokenMiddleware($this->mockFetcher);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'not_google_auth']);
+ }
+
+ public function testAddsTheTokenAsAnAuthorizationHeader()
+ {
+ $authResult = ['access_token' => '1/abcdef1234567890'];
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $authResult['access_token'])
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test.
+ $middleware = new AuthTokenMiddleware($this->mockFetcher);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'google_auth']);
+ }
+
+ public function testDoesNotAddAnAuthorizationHeaderOnNoAccessToken()
+ {
+ $authResult = ['not_access_token' => '1/abcdef1234567890'];
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ')
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test.
+ $middleware = new AuthTokenMiddleware($this->mockFetcher);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'google_auth']);
+ }
+
+ public function testUsesCachedAuthToken()
+ {
+ $cacheKey = 'myKey';
+ $cachedValue = '2/abcdef1234567890';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->never())
+ ->method('fetchAuthToken');
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $cachedValue)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test.
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ null,
+ $this->mockCache
+ );
+ $middleware = new AuthTokenMiddleware($cachedFetcher);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'google_auth']);
+ }
+
+ public function testGetsCachedAuthTokenUsingCacheOptions()
+ {
+ $prefix = 'test_prefix_';
+ $cacheKey = 'myKey';
+ $cachedValue = '2/abcdef1234567890';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->never())
+ ->method('fetchAuthToken');
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $cachedValue)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test.
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix],
+ $this->mockCache
+ );
+ $middleware = new AuthTokenMiddleware($cachedFetcher);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'google_auth']);
+ }
+
+ public function testShouldSaveValueInCacheWithSpecifiedPrefix()
+ {
+ $prefix = 'test_prefix_';
+ $lifetime = '70707';
+ $cacheKey = 'myKey';
+ $token = '1/abcdef1234567890';
+ $authResult = ['access_token' => $token];
+ $this->mockCacheItem
+ ->expects($this->any())
+ ->method('get')
+ ->will($this->returnValue(null));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($this->equalTo($token))
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('expiresAfter')
+ ->with($this->equalTo($lifetime));
+ $this->mockCache
+ ->expects($this->any())
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $token)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test.
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix, 'lifetime' => $lifetime],
+ $this->mockCache
+ );
+ $middleware = new AuthTokenMiddleware($cachedFetcher);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'google_auth']);
+ }
+
+ /** @dataProvider provideShouldNotifyTokenCallback */
+ public function testShouldNotifyTokenCallback(callable $tokenCallback)
+ {
+ $prefix = 'test_prefix_';
+ $cacheKey = 'myKey';
+ $token = '1/abcdef1234567890';
+ $authResult = ['access_token' => $token];
+ $this->mockCacheItem
+ ->expects($this->any())
+ ->method('get')
+ ->will($this->returnValue(null));
+ $this->mockCache
+ ->expects($this->any())
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->will($this->returnValue($this->mockRequest));
+
+ MiddlewareCallback::$expectedKey = $this->getValidKeyName($prefix . $cacheKey);
+ MiddlewareCallback::$expectedValue = $token;
+ MiddlewareCallback::$called = false;
+
+ // Run the test.
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix],
+ $this->mockCache
+ );
+ $middleware = new AuthTokenMiddleware(
+ $cachedFetcher,
+ null,
+ $tokenCallback
+ );
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'google_auth']);
+ $this->assertTrue(MiddlewareCallback::$called);
+ }
+
+ public function provideShouldNotifyTokenCallback()
+ {
+ MiddlewareCallback::$phpunit = $this;
+ $anonymousFunc = function ($key, $value) {
+ MiddlewareCallback::staticInvoke($key, $value);
+ };
+ return [
+ ['Google\Auth\Tests\MiddlewareCallbackFunction'],
+ ['Google\Auth\Tests\MiddlewareCallback::staticInvoke'],
+ [['Google\Auth\Tests\MiddlewareCallback', 'staticInvoke']],
+ [$anonymousFunc],
+ [[new MiddlewareCallback, 'staticInvoke']],
+ [[new MiddlewareCallback, 'methodInvoke']],
+ [new MiddlewareCallback],
+ ];
+ }
+}
+
+class MiddlewareCallback
+{
+ public static $phpunit;
+ public static $expectedKey;
+ public static $expectedValue;
+ public static $called = false;
+
+ public function __invoke($key, $value)
+ {
+ self::$phpunit->assertEquals(self::$expectedKey, $key);
+ self::$phpunit->assertEquals(self::$expectedValue, $value);
+ self::$called = true;
+ }
+
+ public function methodInvoke($key, $value)
+ {
+ return $this($key, $value);
+ }
+
+ public static function staticInvoke($key, $value)
+ {
+ $instance = new self();
+ return $instance($key, $value);
+ }
+}
+
+function MiddlewareCallbackFunction($key, $value)
+{
+ return MiddlewareCallback::staticInvoke($key, $value);
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/ScopedAccessTokenMiddlewareTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/ScopedAccessTokenMiddlewareTest.php
new file mode 100644
index 00000000..27182e0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/ScopedAccessTokenMiddlewareTest.php
@@ -0,0 +1,245 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\Middleware\ScopedAccessTokenMiddleware;
+use GuzzleHttp\Handler\MockHandler;
+use GuzzleHttp\Psr7\Response;
+
+class ScopedAccessTokenMiddlewareTest extends BaseTest
+{
+ const TEST_SCOPE = 'https://www.googleapis.com/auth/cloud-taskqueue';
+
+ private $mockCacheItem;
+ private $mockCache;
+ private $mockRequest;
+
+ protected function setUp()
+ {
+ $this->onlyGuzzle6();
+
+ $this->mockCacheItem =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemInterface')
+ ->getMock();
+ $this->mockCache =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemPoolInterface')
+ ->getMock();
+ $this->mockRequest =
+ $this
+ ->getMockBuilder('GuzzleHttp\Psr7\Request')
+ ->disableOriginalConstructor()
+ ->getMock();
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testRequiresScopeAsAStringOrArray()
+ {
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '1/abcdef1234567890';
+ };
+ new ScopedAccessTokenMiddleware($fakeAuthFunc, new \stdClass());
+ }
+
+ public function testAddsTheTokenAsAnAuthorizationHeader()
+ {
+ $token = '1/abcdef1234567890';
+ $fakeAuthFunc = function ($unused_scopes) use ($token) {
+ return $token;
+ };
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $token)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test
+ $middleware = new ScopedAccessTokenMiddleware($fakeAuthFunc, self::TEST_SCOPE);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'scoped']);
+ }
+
+ public function testUsesCachedAuthToken()
+ {
+ $cachedValue = '2/abcdef1234567890';
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '';
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($this->getValidKeyName(self::TEST_SCOPE)))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $cachedValue)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test
+ $middleware = new ScopedAccessTokenMiddleware(
+ $fakeAuthFunc,
+ self::TEST_SCOPE,
+ [],
+ $this->mockCache
+ );
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'scoped']);
+ }
+
+ public function testGetsCachedAuthTokenUsingCachePrefix()
+ {
+ $prefix = 'test_prefix_';
+ $cachedValue = '2/abcdef1234567890';
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '';
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $this->getValidKeyName(self::TEST_SCOPE)))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $cachedValue)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test
+ $middleware = new ScopedAccessTokenMiddleware(
+ $fakeAuthFunc,
+ self::TEST_SCOPE,
+ ['prefix' => $prefix],
+ $this->mockCache
+ );
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'scoped']);
+ }
+
+ public function testShouldSaveValueInCache()
+ {
+ $token = '2/abcdef1234567890';
+ $fakeAuthFunc = function ($unused_scopes) use ($token) {
+ return $token;
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($this->equalTo($token))
+ ->will($this->returnValue(false));
+ $this->mockCache
+ ->expects($this->exactly(2))
+ ->method('getItem')
+ ->with($this->equalTo($this->getValidKeyName(self::TEST_SCOPE)))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $token)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test
+ $middleware = new ScopedAccessTokenMiddleware(
+ $fakeAuthFunc,
+ self::TEST_SCOPE,
+ [],
+ $this->mockCache
+ );
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'scoped']);
+ }
+
+ public function testShouldSaveValueInCacheWithCacheOptions()
+ {
+ $token = '2/abcdef1234567890';
+ $prefix = 'test_prefix_';
+ $lifetime = '70707';
+ $fakeAuthFunc = function ($unused_scopes) use ($token) {
+ return $token;
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($this->equalTo($token))
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('expiresAfter')
+ ->with($this->equalTo($lifetime));
+ $this->mockCache
+ ->expects($this->exactly(2))
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $this->getValidKeyName(self::TEST_SCOPE)))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockRequest
+ ->expects($this->once())
+ ->method('withHeader')
+ ->with('Authorization', 'Bearer ' . $token)
+ ->will($this->returnValue($this->mockRequest));
+
+ // Run the test
+ $middleware = new ScopedAccessTokenMiddleware(
+ $fakeAuthFunc,
+ self::TEST_SCOPE,
+ ['prefix' => $prefix, 'lifetime' => $lifetime],
+ $this->mockCache
+ );
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'scoped']);
+ }
+
+ public function testOnlyTouchesWhenAuthConfigScoped()
+ {
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '1/abcdef1234567890';
+ };
+ $this->mockRequest
+ ->expects($this->never())
+ ->method('withHeader');
+
+ // Run the test
+ $middleware = new ScopedAccessTokenMiddleware($fakeAuthFunc, self::TEST_SCOPE);
+ $mock = new MockHandler([new Response(200)]);
+ $callable = $middleware($mock);
+ $callable($this->mockRequest, ['auth' => 'not_scoped']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/SimpleMiddlewareTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/SimpleMiddlewareTest.php
new file mode 100644
index 00000000..61807aa5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Middleware/SimpleMiddlewareTest.php
@@ -0,0 +1,41 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+class SimpleMiddlewareTest extends BaseTest
+{
+ private $mockRequest;
+
+ /**
+ * @todo finish
+ */
+ protected function setUp()
+ {
+ $this->onlyGuzzle6();
+
+ $this->mockRequest =
+ $this
+ ->getMockBuilder('GuzzleHttp\Psr7\Request')
+ ->disableOriginalConstructor()
+ ->getMock();
+ }
+
+ public function testTest()
+ {
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/OAuth2Test.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/OAuth2Test.php
new file mode 100644
index 00000000..59492986
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/OAuth2Test.php
@@ -0,0 +1,858 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\OAuth2;
+use GuzzleHttp\Psr7;
+use GuzzleHttp\Psr7\Response;
+
+class OAuth2AuthorizationUriTest extends \PHPUnit_Framework_TestCase
+{
+ private $minimal = [
+ 'authorizationUri' => 'https://accounts.test.org/insecure/url',
+ 'redirectUri' => 'https://accounts.test.org/redirect/url',
+ 'clientId' => 'aClientID',
+ ];
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testIsNullIfAuthorizationUriIsNull()
+ {
+ $o = new OAuth2([]);
+ $this->assertNull($o->buildFullAuthorizationUri());
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testRequiresTheClientId()
+ {
+ $o = new OAuth2([
+ 'authorizationUri' => 'https://accounts.test.org/auth/url',
+ 'redirectUri' => 'https://accounts.test.org/redirect/url',
+ ]);
+ $o->buildFullAuthorizationUri();
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testRequiresTheRedirectUri()
+ {
+ $o = new OAuth2([
+ 'authorizationUri' => 'https://accounts.test.org/auth/url',
+ 'clientId' => 'aClientID',
+ ]);
+ $o->buildFullAuthorizationUri();
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testCannotHavePromptAndApprovalPrompt()
+ {
+ $o = new OAuth2([
+ 'authorizationUri' => 'https://accounts.test.org/auth/url',
+ 'clientId' => 'aClientID',
+ ]);
+ $o->buildFullAuthorizationUri([
+ 'approval_prompt' => 'an approval prompt',
+ 'prompt' => 'a prompt',
+ ]);
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testCannotHaveInsecureAuthorizationUri()
+ {
+ $o = new OAuth2([
+ 'authorizationUri' => 'http://accounts.test.org/insecure/url',
+ 'redirectUri' => 'https://accounts.test.org/redirect/url',
+ 'clientId' => 'aClientID',
+ ]);
+ $o->buildFullAuthorizationUri();
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testCannotHaveRelativeRedirectUri()
+ {
+ $o = new OAuth2([
+ 'authorizationUri' => 'http://accounts.test.org/insecure/url',
+ 'redirectUri' => '/redirect/url',
+ 'clientId' => 'aClientID',
+ ]);
+ $o->buildFullAuthorizationUri();
+ }
+
+ public function testHasDefaultXXXTypeParams()
+ {
+ $o = new OAuth2($this->minimal);
+ $q = Psr7\parse_query($o->buildFullAuthorizationUri()->getQuery());
+ $this->assertEquals('code', $q['response_type']);
+ $this->assertEquals('offline', $q['access_type']);
+ }
+
+ public function testCanBeUrlObject()
+ {
+ $config = array_merge($this->minimal, [
+ 'authorizationUri' => Psr7\uri_for('https://another/uri'),
+ ]);
+ $o = new OAuth2($config);
+ $this->assertEquals('/uri', $o->buildFullAuthorizationUri()->getPath());
+ }
+
+ public function testCanOverrideParams()
+ {
+ $overrides = [
+ 'access_type' => 'o_access_type',
+ 'client_id' => 'o_client_id',
+ 'redirect_uri' => 'o_redirect_uri',
+ 'response_type' => 'o_response_type',
+ 'state' => 'o_state',
+ ];
+ $config = array_merge($this->minimal, ['state' => 'the_state']);
+ $o = new OAuth2($config);
+ $q = Psr7\parse_query($o->buildFullAuthorizationUri($overrides)->getQuery());
+ $this->assertEquals('o_access_type', $q['access_type']);
+ $this->assertEquals('o_client_id', $q['client_id']);
+ $this->assertEquals('o_redirect_uri', $q['redirect_uri']);
+ $this->assertEquals('o_response_type', $q['response_type']);
+ $this->assertEquals('o_state', $q['state']);
+ }
+
+ public function testIncludesTheScope()
+ {
+ $with_strings = array_merge($this->minimal, ['scope' => 'scope1 scope2']);
+ $o = new OAuth2($with_strings);
+ $q = Psr7\parse_query($o->buildFullAuthorizationUri()->getQuery());
+ $this->assertEquals('scope1 scope2', $q['scope']);
+
+ $with_array = array_merge($this->minimal, [
+ 'scope' => ['scope1', 'scope2'],
+ ]);
+ $o = new OAuth2($with_array);
+ $q = Psr7\parse_query($o->buildFullAuthorizationUri()->getQuery());
+ $this->assertEquals('scope1 scope2', $q['scope']);
+ }
+
+ public function testRedirectUriPostmessageIsAllowed()
+ {
+ $o = new OAuth2([
+ 'authorizationUri' => 'https://accounts.test.org/insecure/url',
+ 'redirectUri' => 'postmessage',
+ 'clientId' => 'aClientID',
+ ]);
+ $this->assertEquals('postmessage', $o->getRedirectUri());
+ $url = $o->buildFullAuthorizationUri();
+ $parts = parse_url((string)$url);
+ parse_str($parts['query'], $query);
+ $this->assertArrayHasKey('redirect_uri', $query);
+ $this->assertEquals('postmessage', $query['redirect_uri']);
+ }
+}
+
+class OAuth2GrantTypeTest extends \PHPUnit_Framework_TestCase
+{
+ private $minimal = [
+ 'authorizationUri' => 'https://accounts.test.org/insecure/url',
+ 'redirectUri' => 'https://accounts.test.org/redirect/url',
+ 'clientId' => 'aClientID',
+ ];
+
+ public function testReturnsNullIfCannotBeInferred()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertNull($o->getGrantType());
+ }
+
+ public function testInfersAuthorizationCode()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setCode('an auth code');
+ $this->assertEquals('authorization_code', $o->getGrantType());
+ }
+
+ public function testInfersRefreshToken()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setRefreshToken('a refresh token');
+ $this->assertEquals('refresh_token', $o->getGrantType());
+ }
+
+ public function testInfersPassword()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setPassword('a password');
+ $o->setUsername('a username');
+ $this->assertEquals('password', $o->getGrantType());
+ }
+
+ public function testInfersJwtBearer()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setIssuer('an issuer');
+ $o->setSigningKey('a key');
+ $this->assertEquals('urn:ietf:params:oauth:grant-type:jwt-bearer',
+ $o->getGrantType());
+ }
+
+ public function testSetsKnownTypes()
+ {
+ $o = new OAuth2($this->minimal);
+ foreach (OAuth2::$knownGrantTypes as $t) {
+ $o->setGrantType($t);
+ $this->assertEquals($t, $o->getGrantType());
+ }
+ }
+
+ public function testSetsUrlAsGrantType()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setGrantType('http://a/grant/url');
+ $this->assertEquals('http://a/grant/url', $o->getGrantType());
+ }
+}
+
+class OAuth2GetCacheKeyTest extends \PHPUnit_Framework_TestCase
+{
+ private $minimal = [
+ 'clientID' => 'aClientID',
+ ];
+
+ public function testIsNullWithNoScopes()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertNull($o->getCacheKey());
+ }
+
+ public function testIsScopeIfSingleScope()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setScope('test/scope/1');
+ $this->assertEquals('test/scope/1', $o->getCacheKey());
+ }
+
+ public function testIsAllScopesWhenScopeIsArray()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setScope(['test/scope/1', 'test/scope/2']);
+ $this->assertEquals('test/scope/1:test/scope/2', $o->getCacheKey());
+ }
+}
+
+class OAuth2TimingTest extends \PHPUnit_Framework_TestCase
+{
+ private $minimal = [
+ 'authorizationUri' => 'https://accounts.test.org/insecure/url',
+ 'redirectUri' => 'https://accounts.test.org/redirect/url',
+ 'clientId' => 'aClientID',
+ ];
+
+ public function testIssuedAtDefaultsToNull()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertNull($o->getIssuedAt());
+ }
+
+ public function testExpiresAtDefaultsToNull()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertNull($o->getExpiresAt());
+ }
+
+ public function testExpiresInDefaultsToNull()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertNull($o->getExpiresIn());
+ }
+
+ public function testSettingExpiresInSetsIssuedAt()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertNull($o->getIssuedAt());
+ $aShortWhile = 5;
+ $o->setExpiresIn($aShortWhile);
+ $this->assertEquals($aShortWhile, $o->getExpiresIn());
+ $this->assertNotNull($o->getIssuedAt());
+ }
+
+ public function testSettingExpiresInSetsExpireAt()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertNull($o->getExpiresAt());
+ $aShortWhile = 5;
+ $o->setExpiresIn($aShortWhile);
+ $this->assertNotNull($o->getExpiresAt());
+ $this->assertEquals($aShortWhile, $o->getExpiresAt() - $o->getIssuedAt());
+ }
+
+ public function testIsNotExpiredByDefault()
+ {
+ $o = new OAuth2($this->minimal);
+ $this->assertFalse($o->isExpired());
+ }
+
+ public function testIsNotExpiredIfExpiresAtIsOld()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setExpiresAt(time() - 2);
+ $this->assertTrue($o->isExpired());
+ }
+}
+
+class OAuth2GeneralTest extends \PHPUnit_Framework_TestCase
+{
+ private $minimal = [
+ 'authorizationUri' => 'https://accounts.test.org/insecure/url',
+ 'redirectUri' => 'https://accounts.test.org/redirect/url',
+ 'clientId' => 'aClientID',
+ ];
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testFailsOnUnknownSigningAlgorithm()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setSigningAlgorithm('this is definitely not an algorithm name');
+ }
+
+ public function testAllowsKnownSigningAlgorithms()
+ {
+ $o = new OAuth2($this->minimal);
+ foreach (OAuth2::$knownSigningAlgorithms as $a) {
+ $o->setSigningAlgorithm($a);
+ $this->assertEquals($a, $o->getSigningAlgorithm());
+ }
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testFailsOnRelativeRedirectUri()
+ {
+ $o = new OAuth2($this->minimal);
+ $o->setRedirectUri('/relative/url');
+ }
+
+ public function testAllowsUrnRedirectUri()
+ {
+ $urn = 'urn:ietf:wg:oauth:2.0:oob';
+ $o = new OAuth2($this->minimal);
+ $o->setRedirectUri($urn);
+ $this->assertEquals($urn, $o->getRedirectUri());
+ }
+}
+
+class OAuth2JwtTest extends \PHPUnit_Framework_TestCase
+{
+ private $signingMinimal = [
+ 'signingKey' => 'example_key',
+ 'signingAlgorithm' => 'HS256',
+ 'scope' => 'https://www.googleapis.com/auth/userinfo.profile',
+ 'issuer' => 'app@example.com',
+ 'audience' => 'accounts.google.com',
+ 'clientId' => 'aClientID',
+ ];
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsWithMissingAudience()
+ {
+ $testConfig = $this->signingMinimal;
+ unset($testConfig['audience']);
+ $o = new OAuth2($testConfig);
+ $o->toJwt();
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsWithMissingIssuer()
+ {
+ $testConfig = $this->signingMinimal;
+ unset($testConfig['issuer']);
+ $o = new OAuth2($testConfig);
+ $o->toJwt();
+ }
+
+ /**
+ */
+ public function testCanHaveNoScope()
+ {
+ $testConfig = $this->signingMinimal;
+ unset($testConfig['scope']);
+ $o = new OAuth2($testConfig);
+ $o->toJwt();
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsWithMissingSigningKey()
+ {
+ $testConfig = $this->signingMinimal;
+ unset($testConfig['signingKey']);
+ $o = new OAuth2($testConfig);
+ $o->toJwt();
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsWithMissingSigningAlgorithm()
+ {
+ $testConfig = $this->signingMinimal;
+ unset($testConfig['signingAlgorithm']);
+ $o = new OAuth2($testConfig);
+ $o->toJwt();
+ }
+
+ public function testCanHS256EncodeAValidPayload()
+ {
+ $testConfig = $this->signingMinimal;
+ $o = new OAuth2($testConfig);
+ $payload = $o->toJwt();
+ $roundTrip = $this->jwtDecode($payload, $testConfig['signingKey'], array('HS256'));
+ $this->assertEquals($roundTrip->iss, $testConfig['issuer']);
+ $this->assertEquals($roundTrip->aud, $testConfig['audience']);
+ $this->assertEquals($roundTrip->scope, $testConfig['scope']);
+ }
+
+ public function testCanRS256EncodeAValidPayload()
+ {
+ $publicKey = file_get_contents(__DIR__ . '/fixtures' . '/public.pem');
+ $privateKey = file_get_contents(__DIR__ . '/fixtures' . '/private.pem');
+ $testConfig = $this->signingMinimal;
+ $o = new OAuth2($testConfig);
+ $o->setSigningAlgorithm('RS256');
+ $o->setSigningKey($privateKey);
+ $payload = $o->toJwt();
+ $roundTrip = $this->jwtDecode($payload, $publicKey, array('RS256'));
+ $this->assertEquals($roundTrip->iss, $testConfig['issuer']);
+ $this->assertEquals($roundTrip->aud, $testConfig['audience']);
+ $this->assertEquals($roundTrip->scope, $testConfig['scope']);
+ }
+
+ private function jwtDecode()
+ {
+ $args = func_get_args();
+ $class = 'JWT';
+ if (class_exists('Firebase\JWT\JWT')) {
+ $class = 'Firebase\JWT\JWT';
+ }
+
+ return call_user_func_array("$class::decode", $args);
+ }
+}
+
+class OAuth2GenerateAccessTokenRequestTest extends \PHPUnit_Framework_TestCase
+{
+ private $tokenRequestMinimal = [
+ 'tokenCredentialUri' => 'https://tokens_r_us/test',
+ 'scope' => 'https://www.googleapis.com/auth/userinfo.profile',
+ 'issuer' => 'app@example.com',
+ 'audience' => 'accounts.google.com',
+ 'clientId' => 'aClientID',
+ ];
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfNoTokenCredentialUri()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ unset($testConfig['tokenCredentialUri']);
+ $o = new OAuth2($testConfig);
+ $o->generateCredentialsRequest();
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfAuthorizationCodeIsMissing()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $testConfig['redirectUri'] = 'https://has/redirect/uri';
+ $o = new OAuth2($testConfig);
+ $o->generateCredentialsRequest();
+ }
+
+ public function testGeneratesAuthorizationCodeRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $testConfig['redirectUri'] = 'https://has/redirect/uri';
+ $o = new OAuth2($testConfig);
+ $o->setCode('an_auth_code');
+
+ // Generate the request and confirm that it's correct.
+ $req = $o->generateCredentialsRequest();
+ $this->assertInstanceOf('Psr\Http\Message\RequestInterface', $req);
+ $this->assertEquals('POST', $req->getMethod());
+ $fields = Psr7\parse_query((string)$req->getBody());
+ $this->assertEquals('authorization_code', $fields['grant_type']);
+ $this->assertEquals('an_auth_code', $fields['code']);
+ }
+
+ public function testGeneratesPasswordRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $o = new OAuth2($testConfig);
+ $o->setUsername('a_username');
+ $o->setPassword('a_password');
+
+ // Generate the request and confirm that it's correct.
+ $req = $o->generateCredentialsRequest();
+ $this->assertInstanceOf('Psr\Http\Message\RequestInterface', $req);
+ $this->assertEquals('POST', $req->getMethod());
+ $fields = Psr7\parse_query((string)$req->getBody());
+ $this->assertEquals('password', $fields['grant_type']);
+ $this->assertEquals('a_password', $fields['password']);
+ $this->assertEquals('a_username', $fields['username']);
+ }
+
+ public function testGeneratesRefreshTokenRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $o = new OAuth2($testConfig);
+ $o->setRefreshToken('a_refresh_token');
+
+ // Generate the request and confirm that it's correct.
+ $req = $o->generateCredentialsRequest();
+ $this->assertInstanceOf('Psr\Http\Message\RequestInterface', $req);
+ $this->assertEquals('POST', $req->getMethod());
+ $fields = Psr7\parse_query((string)$req->getBody());
+ $this->assertEquals('refresh_token', $fields['grant_type']);
+ $this->assertEquals('a_refresh_token', $fields['refresh_token']);
+ }
+
+ public function testClientSecretAddedIfSetForAuthorizationCodeRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $testConfig['clientSecret'] = 'a_client_secret';
+ $testConfig['redirectUri'] = 'https://has/redirect/uri';
+ $o = new OAuth2($testConfig);
+ $o->setCode('an_auth_code');
+ $request = $o->generateCredentialsRequest();
+ $fields = Psr7\parse_query((string)$request->getBody());
+ $this->assertEquals('a_client_secret', $fields['client_secret']);
+ }
+
+ public function testClientSecretAddedIfSetForRefreshTokenRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $testConfig['clientSecret'] = 'a_client_secret';
+ $o = new OAuth2($testConfig);
+ $o->setRefreshToken('a_refresh_token');
+ $request = $o->generateCredentialsRequest();
+ $fields = Psr7\parse_query((string)$request->getBody());
+ $this->assertEquals('a_client_secret', $fields['client_secret']);
+ }
+
+ public function testClientSecretAddedIfSetForPasswordRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $testConfig['clientSecret'] = 'a_client_secret';
+ $o = new OAuth2($testConfig);
+ $o->setUsername('a_username');
+ $o->setPassword('a_password');
+ $request = $o->generateCredentialsRequest();
+ $fields = Psr7\parse_query((string)$request->getBody());
+ $this->assertEquals('a_client_secret', $fields['client_secret']);
+ }
+
+ public function testGeneratesAssertionRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $o = new OAuth2($testConfig);
+ $o->setSigningKey('a_key');
+ $o->setSigningAlgorithm('HS256');
+
+ // Generate the request and confirm that it's correct.
+ $req = $o->generateCredentialsRequest();
+ $this->assertInstanceOf('Psr\Http\Message\RequestInterface', $req);
+ $this->assertEquals('POST', $req->getMethod());
+ $fields = Psr7\parse_query((string)$req->getBody());
+ $this->assertEquals(OAuth2::JWT_URN, $fields['grant_type']);
+ $this->assertTrue(array_key_exists('assertion', $fields));
+ }
+
+ public function testGeneratesExtendedRequests()
+ {
+ $testConfig = $this->tokenRequestMinimal;
+ $o = new OAuth2($testConfig);
+ $o->setGrantType('urn:my_test_grant_type');
+ $o->setExtensionParams(['my_param' => 'my_value']);
+
+ // Generate the request and confirm that it's correct.
+ $req = $o->generateCredentialsRequest();
+ $this->assertInstanceOf('Psr\Http\Message\RequestInterface', $req);
+ $this->assertEquals('POST', $req->getMethod());
+ $fields = Psr7\parse_query((string)$req->getBody());
+ $this->assertEquals('my_value', $fields['my_param']);
+ $this->assertEquals('urn:my_test_grant_type', $fields['grant_type']);
+ }
+}
+
+class OAuth2FetchAuthTokenTest extends \PHPUnit_Framework_TestCase
+{
+ private $fetchAuthTokenMinimal = [
+ 'tokenCredentialUri' => 'https://tokens_r_us/test',
+ 'scope' => 'https://www.googleapis.com/auth/userinfo.profile',
+ 'signingKey' => 'example_key',
+ 'signingAlgorithm' => 'HS256',
+ 'issuer' => 'app@example.com',
+ 'audience' => 'accounts.google.com',
+ 'clientId' => 'aClientID',
+ ];
+
+ /**
+ * @expectedException GuzzleHttp\Exception\ClientException
+ */
+ public function testFailsOn400()
+ {
+ $testConfig = $this->fetchAuthTokenMinimal;
+ $httpHandler = getHandler([
+ buildResponse(400),
+ ]);
+ $o = new OAuth2($testConfig);
+ $o->fetchAuthToken($httpHandler);
+ }
+
+ /**
+ * @expectedException GuzzleHttp\Exception\ServerException
+ */
+ public function testFailsOn500()
+ {
+ $testConfig = $this->fetchAuthTokenMinimal;
+ $httpHandler = getHandler([
+ buildResponse(500),
+ ]);
+ $o = new OAuth2($testConfig);
+ $o->fetchAuthToken($httpHandler);
+ }
+
+ /**
+ * @expectedException Exception
+ * @expectedExceptionMessage Invalid JSON response
+ */
+ public function testFailsOnNoContentTypeIfResponseIsNotJSON()
+ {
+ $testConfig = $this->fetchAuthTokenMinimal;
+ $notJson = '{"foo": , this is cannot be passed as json" "bar"}';
+ $httpHandler = getHandler([
+ buildResponse(200, [], Psr7\stream_for($notJson)),
+ ]);
+ $o = new OAuth2($testConfig);
+ $o->fetchAuthToken($httpHandler);
+ }
+
+ public function testFetchesJsonResponseOnNoContentTypeOK()
+ {
+ $testConfig = $this->fetchAuthTokenMinimal;
+ $json = '{"foo": "bar"}';
+ $httpHandler = getHandler([
+ buildResponse(200, [], Psr7\stream_for($json)),
+ ]);
+ $o = new OAuth2($testConfig);
+ $tokens = $o->fetchAuthToken($httpHandler);
+ $this->assertEquals($tokens['foo'], 'bar');
+ }
+
+ public function testFetchesFromFormEncodedResponseOK()
+ {
+ $testConfig = $this->fetchAuthTokenMinimal;
+ $json = 'foo=bar&spice=nice';
+ $httpHandler = getHandler([
+ buildResponse(
+ 200,
+ ['Content-Type' => 'application/x-www-form-urlencoded'],
+ Psr7\stream_for($json)
+ ),
+ ]);
+ $o = new OAuth2($testConfig);
+ $tokens = $o->fetchAuthToken($httpHandler);
+ $this->assertEquals($tokens['foo'], 'bar');
+ $this->assertEquals($tokens['spice'], 'nice');
+ }
+
+ public function testUpdatesTokenFieldsOnFetch()
+ {
+ $testConfig = $this->fetchAuthTokenMinimal;
+ $wanted_updates = [
+ 'expires_at' => '1',
+ 'expires_in' => '57',
+ 'issued_at' => '2',
+ 'access_token' => 'an_access_token',
+ 'id_token' => 'an_id_token',
+ 'refresh_token' => 'a_refresh_token',
+ ];
+ $json = json_encode($wanted_updates);
+ $httpHandler = getHandler([
+ buildResponse(200, [], Psr7\stream_for($json)),
+ ]);
+ $o = new OAuth2($testConfig);
+ $this->assertNull($o->getExpiresAt());
+ $this->assertNull($o->getExpiresIn());
+ $this->assertNull($o->getIssuedAt());
+ $this->assertNull($o->getAccessToken());
+ $this->assertNull($o->getIdToken());
+ $this->assertNull($o->getRefreshToken());
+ $tokens = $o->fetchAuthToken($httpHandler);
+ $this->assertEquals(1, $o->getExpiresAt());
+ $this->assertEquals(57, $o->getExpiresIn());
+ $this->assertEquals(2, $o->getIssuedAt());
+ $this->assertEquals('an_access_token', $o->getAccessToken());
+ $this->assertEquals('an_id_token', $o->getIdToken());
+ $this->assertEquals('a_refresh_token', $o->getRefreshToken());
+ }
+
+ public function testUpdatesTokenFieldsOnFetchMissingRefreshToken()
+ {
+ $testConfig = $this->fetchAuthTokenMinimal;
+ $testConfig['refresh_token'] = 'a_refresh_token';
+ $wanted_updates = [
+ 'expires_at' => '1',
+ 'expires_in' => '57',
+ 'issued_at' => '2',
+ 'access_token' => 'an_access_token',
+ 'id_token' => 'an_id_token',
+ ];
+ $json = json_encode($wanted_updates);
+ $httpHandler = getHandler([
+ buildResponse(200, [], Psr7\stream_for($json)),
+ ]);
+ $o = new OAuth2($testConfig);
+ $this->assertNull($o->getExpiresAt());
+ $this->assertNull($o->getExpiresIn());
+ $this->assertNull($o->getIssuedAt());
+ $this->assertNull($o->getAccessToken());
+ $this->assertNull($o->getIdToken());
+ $this->assertEquals('a_refresh_token', $o->getRefreshToken());
+ $tokens = $o->fetchAuthToken($httpHandler);
+ $this->assertEquals(1, $o->getExpiresAt());
+ $this->assertEquals(57, $o->getExpiresIn());
+ $this->assertEquals(2, $o->getIssuedAt());
+ $this->assertEquals('an_access_token', $o->getAccessToken());
+ $this->assertEquals('an_id_token', $o->getIdToken());
+ $this->assertEquals('a_refresh_token', $o->getRefreshToken());
+ }
+}
+
+class OAuth2VerifyIdTokenTest extends \PHPUnit_Framework_TestCase
+{
+ private $publicKey;
+ private $privateKey;
+ private $verifyIdTokenMinimal = [
+ 'scope' => 'https://www.googleapis.com/auth/userinfo.profile',
+ 'audience' => 'myaccount.on.host.issuer.com',
+ 'issuer' => 'an.issuer.com',
+ 'clientId' => 'myaccount.on.host.issuer.com',
+ ];
+
+ public function setUp()
+ {
+ $this->publicKey =
+ file_get_contents(__DIR__ . '/fixtures' . '/public.pem');
+ $this->privateKey =
+ file_get_contents(__DIR__ . '/fixtures' . '/private.pem');
+ }
+
+ /**
+ * @expectedException UnexpectedValueException
+ */
+ public function testFailsIfIdTokenIsInvalid()
+ {
+ $testConfig = $this->verifyIdTokenMinimal;
+ $not_a_jwt = 'not a jot';
+ $o = new OAuth2($testConfig);
+ $o->setIdToken($not_a_jwt);
+ $o->verifyIdToken($this->publicKey);
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfAudienceIsMissing()
+ {
+ $testConfig = $this->verifyIdTokenMinimal;
+ $now = time();
+ $origIdToken = [
+ 'issuer' => $testConfig['issuer'],
+ 'exp' => $now + 65, // arbitrary
+ 'iat' => $now,
+ ];
+ $o = new OAuth2($testConfig);
+ $jwtIdToken = $this->jwtEncode($origIdToken, $this->privateKey, 'RS256');
+ $o->setIdToken($jwtIdToken);
+ $o->verifyIdToken($this->publicKey, ['RS256']);
+ }
+
+ /**
+ * @expectedException DomainException
+ */
+ public function testFailsIfAudienceIsWrong()
+ {
+ $now = time();
+ $testConfig = $this->verifyIdTokenMinimal;
+ $origIdToken = [
+ 'aud' => 'a different audience',
+ 'iss' => $testConfig['issuer'],
+ 'exp' => $now + 65, // arbitrary
+ 'iat' => $now,
+ ];
+ $o = new OAuth2($testConfig);
+ $jwtIdToken = $this->jwtEncode($origIdToken, $this->privateKey, 'RS256');
+ $o->setIdToken($jwtIdToken);
+ $o->verifyIdToken($this->publicKey, ['RS256']);
+ }
+
+ public function testShouldReturnAValidIdToken()
+ {
+ $testConfig = $this->verifyIdTokenMinimal;
+ $now = time();
+ $origIdToken = [
+ 'aud' => $testConfig['audience'],
+ 'iss' => $testConfig['issuer'],
+ 'exp' => $now + 65, // arbitrary
+ 'iat' => $now,
+ ];
+ $o = new OAuth2($testConfig);
+ $alg = 'RS256';
+ $jwtIdToken = $this->jwtEncode($origIdToken, $this->privateKey, $alg);
+ $o->setIdToken($jwtIdToken);
+ $roundTrip = $o->verifyIdToken($this->publicKey, array($alg));
+ $this->assertEquals($origIdToken['aud'], $roundTrip->aud);
+ }
+
+ private function jwtEncode()
+ {
+ $args = func_get_args();
+ $class = 'JWT';
+ if (class_exists('Firebase\JWT\JWT')) {
+ $class = 'Firebase\JWT\JWT';
+ }
+
+ return call_user_func_array("$class::encode", $args);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/AuthTokenSubscriberTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/AuthTokenSubscriberTest.php
new file mode 100644
index 00000000..287692b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/AuthTokenSubscriberTest.php
@@ -0,0 +1,325 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\FetchAuthTokenCache;
+use Google\Auth\Subscriber\AuthTokenSubscriber;
+use GuzzleHttp\Client;
+use GuzzleHttp\Event\BeforeEvent;
+use GuzzleHttp\Transaction;
+
+class AuthTokenSubscriberTest extends BaseTest
+{
+ private $mockFetcher;
+ private $mockCacheItem;
+ private $mockCache;
+
+ protected function setUp()
+ {
+ $this->onlyGuzzle5();
+
+ $this->mockFetcher =
+ $this
+ ->getMockBuilder('Google\Auth\FetchAuthTokenInterface')
+ ->getMock();
+ $this->mockCacheItem =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemInterface')
+ ->getMock();
+ $this->mockCache =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemPoolInterface')
+ ->getMock();
+ }
+
+ public function testSubscribesToEvents()
+ {
+ $a = new AuthTokenSubscriber($this->mockFetcher);
+ $this->assertArrayHasKey('before', $a->getEvents());
+ }
+
+ public function testOnlyTouchesWhenAuthConfigScoped()
+ {
+ $s = new AuthTokenSubscriber($this->mockFetcher);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'not_google_auth']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertSame($request->getHeader('Authorization'), '');
+ }
+
+ public function testAddsTheTokenAsAnAuthorizationHeader()
+ {
+ $authResult = ['access_token' => '1/abcdef1234567890'];
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+
+ // Run the test.
+ $a = new AuthTokenSubscriber($this->mockFetcher);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'google_auth']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $a->onBefore($before);
+ $this->assertSame($request->getHeader('Authorization'),
+ 'Bearer 1/abcdef1234567890');
+ }
+
+ public function testDoesNotAddAnAuthorizationHeaderOnNoAccessToken()
+ {
+ $authResult = ['not_access_token' => '1/abcdef1234567890'];
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+
+ // Run the test.
+ $a = new AuthTokenSubscriber($this->mockFetcher);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'google_auth']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $a->onBefore($before);
+ $this->assertSame($request->getHeader('Authorization'), '');
+ }
+
+ public function testUsesCachedAuthToken()
+ {
+ $cacheKey = 'myKey';
+ $cachedValue = '2/abcdef1234567890';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->never())
+ ->method('fetchAuthToken');
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+
+ // Run the test.
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ null,
+ $this->mockCache
+ );
+ $a = new AuthTokenSubscriber($cachedFetcher);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'google_auth']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $a->onBefore($before);
+ $this->assertSame($request->getHeader('Authorization'),
+ 'Bearer 2/abcdef1234567890');
+ }
+
+ public function testGetsCachedAuthTokenUsingCachePrefix()
+ {
+ $prefix = 'test_prefix_';
+ $cacheKey = 'myKey';
+ $cachedValue = '2/abcdef1234567890';
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->never())
+ ->method('fetchAuthToken');
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+
+ // Run the test
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix],
+ $this->mockCache
+ );
+ $a = new AuthTokenSubscriber($cachedFetcher);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'google_auth']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $a->onBefore($before);
+ $this->assertSame($request->getHeader('Authorization'),
+ 'Bearer 2/abcdef1234567890');
+ }
+
+ public function testShouldSaveValueInCacheWithCacheOptions()
+ {
+ $prefix = 'test_prefix_';
+ $lifetime = '70707';
+ $cacheKey = 'myKey';
+ $token = '1/abcdef1234567890';
+ $authResult = ['access_token' => $token];
+ $this->mockCacheItem
+ ->expects($this->any())
+ ->method('get')
+ ->will($this->returnValue(null));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($this->equalTo($token))
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('expiresAfter')
+ ->with($this->equalTo($lifetime));
+ $this->mockCache
+ ->expects($this->exactly(2))
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+
+ // Run the test
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix, 'lifetime' => $lifetime],
+ $this->mockCache
+ );
+ $a = new AuthTokenSubscriber($cachedFetcher);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'google_auth']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $a->onBefore($before);
+ $this->assertSame($request->getHeader('Authorization'),
+ 'Bearer 1/abcdef1234567890');
+ }
+
+ /** @dataProvider provideShouldNotifyTokenCallback */
+ public function testShouldNotifyTokenCallback(callable $tokenCallback)
+ {
+ $prefix = 'test_prefix_';
+ $cacheKey = 'myKey';
+ $token = '1/abcdef1234567890';
+ $authResult = ['access_token' => $token];
+ $this->mockCacheItem
+ ->expects($this->any())
+ ->method('get')
+ ->will($this->returnValue(null));
+ $this->mockCache
+ ->expects($this->any())
+ ->method('getItem')
+ ->with($this->equalTo($prefix . $cacheKey))
+ ->will($this->returnValue($this->mockCacheItem));
+ $this->mockFetcher
+ ->expects($this->any())
+ ->method('getCacheKey')
+ ->will($this->returnValue($cacheKey));
+ $this->mockFetcher
+ ->expects($this->once())
+ ->method('fetchAuthToken')
+ ->will($this->returnValue($authResult));
+
+ SubscriberCallback::$expectedKey = $this->getValidKeyName($prefix . $cacheKey);
+ SubscriberCallback::$expectedValue = $token;
+ SubscriberCallback::$called = false;
+
+ // Run the test
+ $cachedFetcher = new FetchAuthTokenCache(
+ $this->mockFetcher,
+ ['prefix' => $prefix],
+ $this->mockCache
+ );
+ $a = new AuthTokenSubscriber(
+ $cachedFetcher,
+ null,
+ $tokenCallback
+ );
+
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'google_auth']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $a->onBefore($before);
+ $this->assertTrue(SubscriberCallback::$called);
+ }
+
+ public function provideShouldNotifyTokenCallback()
+ {
+ SubscriberCallback::$phpunit = $this;
+ $anonymousFunc = function ($key, $value) {
+ SubscriberCallback::staticInvoke($key, $value);
+ };
+ return [
+ ['Google\Auth\Tests\SubscriberCallbackFunction'],
+ ['Google\Auth\Tests\SubscriberCallback::staticInvoke'],
+ [['Google\Auth\Tests\SubscriberCallback', 'staticInvoke']],
+ [$anonymousFunc],
+ [[new SubscriberCallback, 'staticInvoke']],
+ [[new SubscriberCallback, 'methodInvoke']],
+ [new SubscriberCallback],
+ ];
+ }
+}
+
+class SubscriberCallback
+{
+ public static $phpunit;
+ public static $expectedKey;
+ public static $expectedValue;
+ public static $called = false;
+
+ public function __invoke($key, $value)
+ {
+ self::$phpunit->assertEquals(self::$expectedKey, $key);
+ self::$phpunit->assertEquals(self::$expectedValue, $value);
+ self::$called = true;
+ }
+
+ public function methodInvoke($key, $value)
+ {
+ return $this($key, $value);
+ }
+
+ public static function staticInvoke($key, $value)
+ {
+ $instance = new self();
+ return $instance($key, $value);
+ }
+}
+
+function SubscriberCallbackFunction($key, $value)
+{
+ return SubscriberCallback::staticInvoke($key, $value);
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/ScopedAccessTokenSubscriberTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/ScopedAccessTokenSubscriberTest.php
new file mode 100644
index 00000000..b85dda56
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/ScopedAccessTokenSubscriberTest.php
@@ -0,0 +1,238 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\Subscriber\ScopedAccessTokenSubscriber;
+use GuzzleHttp\Client;
+use GuzzleHttp\Event\BeforeEvent;
+use GuzzleHttp\Transaction;
+
+class ScopedAccessTokenSubscriberTest extends BaseTest
+{
+ const TEST_SCOPE = 'https://www.googleapis.com/auth/cloud-taskqueue';
+
+ private $mockCacheItem;
+ private $mockCache;
+ private $mockRequest;
+
+ protected function setUp()
+ {
+ $this->onlyGuzzle5();
+
+ $this->mockCacheItem =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemInterface')
+ ->getMock();
+ $this->mockCache =
+ $this
+ ->getMockBuilder('Psr\Cache\CacheItemPoolInterface')
+ ->getMock();
+ $this->mockRequest =
+ $this
+ ->getMockBuilder('GuzzleHttp\Psr7\Request')
+ ->disableOriginalConstructor()
+ ->getMock();
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testRequiresScopeAsAStringOrArray()
+ {
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '1/abcdef1234567890';
+ };
+ new ScopedAccessTokenSubscriber($fakeAuthFunc, new \stdClass(), array());
+ }
+
+ public function testSubscribesToEvents()
+ {
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '1/abcdef1234567890';
+ };
+ $s = new ScopedAccessTokenSubscriber($fakeAuthFunc, self::TEST_SCOPE, array());
+ $this->assertArrayHasKey('before', $s->getEvents());
+ }
+
+ public function testAddsTheTokenAsAnAuthorizationHeader()
+ {
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '1/abcdef1234567890';
+ };
+ $s = new ScopedAccessTokenSubscriber($fakeAuthFunc, self::TEST_SCOPE, array());
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'scoped']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertSame(
+ 'Bearer 1/abcdef1234567890',
+ $request->getHeader('Authorization')
+ );
+ }
+
+ public function testUsesCachedAuthToken()
+ {
+ $cachedValue = '2/abcdef1234567890';
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '';
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($this->getValidKeyName(self::TEST_SCOPE))
+ ->will($this->returnValue($this->mockCacheItem));
+
+ // Run the test
+ $s = new ScopedAccessTokenSubscriber($fakeAuthFunc, self::TEST_SCOPE, array(),
+ $this->mockCache);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'scoped']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertSame(
+ 'Bearer 2/abcdef1234567890',
+ $request->getHeader('Authorization')
+ );
+ }
+
+ public function testGetsCachedAuthTokenUsingCachePrefix()
+ {
+ $prefix = 'test_prefix_';
+ $cachedValue = '2/abcdef1234567890';
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '';
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue($cachedValue));
+ $this->mockCache
+ ->expects($this->once())
+ ->method('getItem')
+ ->with($prefix . $this->getValidKeyName(self::TEST_SCOPE))
+ ->will($this->returnValue($this->mockCacheItem));
+
+ // Run the test
+ $s = new ScopedAccessTokenSubscriber($fakeAuthFunc, self::TEST_SCOPE,
+ ['prefix' => $prefix],
+ $this->mockCache);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'scoped']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertSame(
+ 'Bearer 2/abcdef1234567890',
+ $request->getHeader('Authorization')
+ );
+ }
+
+ public function testShouldSaveValueInCache()
+ {
+ $token = '2/abcdef1234567890';
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '2/abcdef1234567890';
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($this->equalTo($token))
+ ->will($this->returnValue(false));
+ $this->mockCache
+ ->expects($this->exactly(2))
+ ->method('getItem')
+ ->with($this->getValidKeyName(self::TEST_SCOPE))
+ ->will($this->returnValue($this->mockCacheItem));
+ $s = new ScopedAccessTokenSubscriber($fakeAuthFunc, self::TEST_SCOPE, array(),
+ $this->mockCache);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'scoped']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertSame(
+ 'Bearer 2/abcdef1234567890',
+ $request->getHeader('Authorization')
+ );
+ }
+
+ public function testShouldSaveValueInCacheWithCacheOptions()
+ {
+ $token = '2/abcdef1234567890';
+ $prefix = 'test_prefix_';
+ $lifetime = '70707';
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '2/abcdef1234567890';
+ };
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('get')
+ ->will($this->returnValue(false));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('set')
+ ->with($this->equalTo($token));
+ $this->mockCacheItem
+ ->expects($this->once())
+ ->method('expiresAfter')
+ ->with($this->equalTo($lifetime));
+ $this->mockCache
+ ->expects($this->exactly(2))
+ ->method('getItem')
+ ->with($prefix . $this->getValidKeyName(self::TEST_SCOPE))
+ ->will($this->returnValue($this->mockCacheItem));
+
+ // Run the test
+ $s = new ScopedAccessTokenSubscriber($fakeAuthFunc, self::TEST_SCOPE,
+ ['prefix' => $prefix, 'lifetime' => $lifetime],
+ $this->mockCache);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'scoped']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertSame(
+ 'Bearer 2/abcdef1234567890',
+ $request->getHeader('Authorization')
+ );
+ }
+
+ public function testOnlyTouchesWhenAuthConfigScoped()
+ {
+ $fakeAuthFunc = function ($unused_scopes) {
+ return '1/abcdef1234567890';
+ };
+ $s = new ScopedAccessTokenSubscriber($fakeAuthFunc, self::TEST_SCOPE, array());
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'notscoped']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertSame('', $request->getHeader('Authorization'));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/SimpleSubscriberTest.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/SimpleSubscriberTest.php
new file mode 100644
index 00000000..6c392e66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/Subscriber/SimpleSubscriberTest.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Google\Auth\Tests;
+
+use Google\Auth\Subscriber\SimpleSubscriber;
+use GuzzleHttp\Client;
+use GuzzleHttp\Event\BeforeEvent;
+use GuzzleHttp\Transaction;
+
+class SimpleSubscriberTest extends BaseTest
+{
+ protected function setUp()
+ {
+ $this->onlyGuzzle5();
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testRequiresADeveloperKey()
+ {
+ new SimpleSubscriber(['not_key' => 'a test key']);
+ }
+
+ public function testSubscribesToEvents()
+ {
+ $events = (new SimpleSubscriber(['key' => 'a test key']))->getEvents();
+ $this->assertArrayHasKey('before', $events);
+ }
+
+ public function testAddsTheKeyToTheQuery()
+ {
+ $s = new SimpleSubscriber(['key' => 'test_key']);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'simple']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertCount(1, $request->getQuery());
+ $this->assertTrue($request->getQuery()->hasKey('key'));
+ $this->assertSame($request->getQuery()->get('key'), 'test_key');
+ }
+
+ public function testOnlyTouchesWhenAuthConfigIsSimple()
+ {
+ $s = new SimpleSubscriber(['key' => 'test_key']);
+ $client = new Client();
+ $request = $client->createRequest('GET', 'http://testing.org',
+ ['auth' => 'notsimple']);
+ $before = new BeforeEvent(new Transaction($client, $request));
+ $s->onBefore($before);
+ $this->assertCount(0, $request->getQuery());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/bootstrap.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/bootstrap.php
new file mode 100644
index 00000000..6e7b7d5f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/bootstrap.php
@@ -0,0 +1,55 @@
+<?php
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+error_reporting(E_ALL | E_STRICT);
+require dirname(__DIR__) . '/vendor/autoload.php';
+date_default_timezone_set('UTC');
+
+// autoload base test
+require_once __DIR__ . '/BaseTest.php';
+
+function buildResponse($code, array $headers = [], $body = null)
+{
+ if (class_exists('GuzzleHttp\HandlerStack')) {
+ return new \GuzzleHttp\Psr7\Response($code, $headers, $body);
+ }
+
+ return new \GuzzleHttp\Message\Response(
+ $code,
+ $headers,
+ \GuzzleHttp\Stream\Stream::factory((string)$body)
+ );
+}
+
+function getHandler(array $mockResponses = [])
+{
+ if (class_exists('GuzzleHttp\HandlerStack')) {
+ $mock = new \GuzzleHttp\Handler\MockHandler($mockResponses);
+
+ $handler = \GuzzleHttp\HandlerStack::create($mock);
+ $client = new \GuzzleHttp\Client(['handler' => $handler]);
+
+ return new \Google\Auth\HttpHandler\Guzzle6HttpHandler($client);
+ }
+
+ $client = new \GuzzleHttp\Client();
+ $client->getEmitter()->attach(
+ new \GuzzleHttp\Subscriber\Mock($mockResponses)
+ );
+
+ return new \Google\Auth\HttpHandler\Guzzle5HttpHandler($client);
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/.config/gcloud/application_default_credentials.json b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/.config/gcloud/application_default_credentials.json
new file mode 100644
index 00000000..608d325c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/.config/gcloud/application_default_credentials.json
@@ -0,0 +1,7 @@
+{
+ "private_key_id": "key123",
+ "private_key": "privatekey",
+ "client_email": "hello@youarecool.com",
+ "client_id": "client123",
+ "type": "service_account"
+} \ No newline at end of file
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.json b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.json
new file mode 100644
index 00000000..608d325c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.json
@@ -0,0 +1,7 @@
+{
+ "private_key_id": "key123",
+ "private_key": "privatekey",
+ "client_email": "hello@youarecool.com",
+ "client_id": "client123",
+ "type": "service_account"
+} \ No newline at end of file
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.pem b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.pem
new file mode 100644
index 00000000..00a658fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/private.pem
@@ -0,0 +1,15 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXQIBAAKBgQDzU+jLTzW6154Joezxrd2+5pCNYP0HcaMoYqEyXfNRpkNE7wrQ
+UEG830o4Qcaae2BhqZoujwSW7RkR6h0Fkd0WTR8h5J8rSGNHv/1jJoUUjP9iZ/5S
+FAyIIyEYfDPqtnA4iF1QWO2lXWlEFSuZjwM/8jBmeGzoiw17akNThIw8NwIDAQAB
+AoGATpboVloEAY/IdFX/QGOmfhTb1T3hG3lheBa695iOkO2BRo9qT7PMN6NqxlbA
+PX7ht0lfCfCZS+HSOg4CR50/6WXHMSmwlvcjGuDIDKWjviQTTYE77MlVBQHw9WzY
+PfiRBbtouyPGQtO4rk42zkIILC6exBZ1vKpRPOmTAnxrjCECQQD+56r6hYcS6GNp
+NOWyv0eVFMBX4iNWAsRf9JVVvGDz2rVuhnkNiN73vfffDWvSXkCydL1jFmalgdQD
+gm77UZQHAkEA9F+CauU0aZsJ1SthQ6H0sDQ+eNRUgnz4itnkSC2C20fZ3DaSpCMC
+0go81CcZOhftNO730ILqiS67C3d3rqLqUQJBAP10ROHMmz4Fq7MUUcClyPtHIuk/
+hXskTTZL76DMKmrN8NDxDLSUf38+eJRkt+z4osPOp/E6eN3gdXr32nox50kCQCl8
+hXGMU+eR0IuF/88xkY7Qb8KnmWlFuhQohZ7TSyHbAttl0GNZJkNuRYFm2duI8FZK
+M3wMnbCIZGy/7WuScOECQQCV+0yrf5dL1M2GHjJfwuTb00wRKalKQEH1v/kvE5vS
+FmdN7BPK5Ra50MaecMNoYqu9rmtyWRBn93dcvKrL57nY
+-----END RSA PRIVATE KEY-----
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/public.pem b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/public.pem
new file mode 100644
index 00000000..00a8f7af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures/public.pem
@@ -0,0 +1,6 @@
+-----BEGIN PUBLIC KEY-----
+MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDzU+jLTzW6154Joezxrd2+5pCN
+YP0HcaMoYqEyXfNRpkNE7wrQUEG830o4Qcaae2BhqZoujwSW7RkR6h0Fkd0WTR8h
+5J8rSGNHv/1jJoUUjP9iZ/5SFAyIIyEYfDPqtnA4iF1QWO2lXWlEFSuZjwM/8jBm
+eGzoiw17akNThIw8NwIDAQAB
+-----END PUBLIC KEY-----
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/.config/gcloud/application_default_credentials.json b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/.config/gcloud/application_default_credentials.json
new file mode 100644
index 00000000..5b5063d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/.config/gcloud/application_default_credentials.json
@@ -0,0 +1,6 @@
+{
+ "client_id": "client123",
+ "client_secret": "clientSecret123",
+ "refresh_token": "refreshToken123",
+ "type": "authorized_user"
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/private.json b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/private.json
new file mode 100644
index 00000000..5b5063d8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/fixtures2/private.json
@@ -0,0 +1,6 @@
+{
+ "client_id": "client123",
+ "client_secret": "clientSecret123",
+ "refresh_token": "refreshToken123",
+ "type": "authorized_user"
+}
diff --git a/mayor-orig/www/include/share/googleapi/google/auth/tests/mocks/AppIdentityService.php b/mayor-orig/www/include/share/googleapi/google/auth/tests/mocks/AppIdentityService.php
new file mode 100644
index 00000000..324292a9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/google/auth/tests/mocks/AppIdentityService.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace google\appengine\api\app_identity;
+
+class AppIdentityService
+{
+ public static $scope;
+ public static $accessToken = array(
+ 'access_token' => 'xyz',
+ 'expiration_time' => '2147483646',
+ );
+
+ public static function getAccessToken($scope)
+ {
+ self::$scope = $scope;
+
+ return self::$accessToken;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/CHANGELOG.md b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/CHANGELOG.md
new file mode 100644
index 00000000..b265cbcd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/CHANGELOG.md
@@ -0,0 +1,1264 @@
+# CHANGELOG
+
+## 6.3.0 - 2017-06-22
+
+* Feature: force IP resolution (ipv4 or ipv6) [#1608](https://github.com/guzzle/guzzle/pull/1608), [#1659](https://github.com/guzzle/guzzle/pull/1659)
+* Improvement: Don't include summary in exception message when body is empty [#1621](https://github.com/guzzle/guzzle/pull/1621)
+* Improvement: Handle `on_headers` option in MockHandler [#1580](https://github.com/guzzle/guzzle/pull/1580)
+* Improvement: Added SUSE Linux CA path [#1609](https://github.com/guzzle/guzzle/issues/1609)
+* Improvement: Use class reference for getting the name of the class instead of using hardcoded strings [#1641](https://github.com/guzzle/guzzle/pull/1641)
+* Feature: Added `read_timeout` option [#1611](https://github.com/guzzle/guzzle/pull/1611)
+* Bug fix: PHP 7.x fixes [#1685](https://github.com/guzzle/guzzle/pull/1685), [#1686](https://github.com/guzzle/guzzle/pull/1686), [#1811](https://github.com/guzzle/guzzle/pull/1811)
+* Deprecation: BadResponseException instantiation without a response [#1642](https://github.com/guzzle/guzzle/pull/1642)
+* Feature: Added NTLM auth [#1569](https://github.com/guzzle/guzzle/pull/1569)
+* Feature: Track redirect HTTP status codes [#1711](https://github.com/guzzle/guzzle/pull/1711)
+* Improvement: Check handler type during construction [#1745](https://github.com/guzzle/guzzle/pull/1745)
+* Improvement: Always include the Content-Length if there's a body [#1721](https://github.com/guzzle/guzzle/pull/1721)
+* Feature: Added convenience method to access a cookie by name [#1318](https://github.com/guzzle/guzzle/pull/1318)
+* Bug fix: Fill `CURLOPT_CAPATH` and `CURLOPT_CAINFO` properly [#1684](https://github.com/guzzle/guzzle/pull/1684)
+* Improvement: Use `\GuzzleHttp\Promise\rejection_for` function instead of object init [#1827](https://github.com/guzzle/guzzle/pull/1827)
+
+
++ Minor code cleanups, documentation fixes and clarifications.
+
+## 6.2.3 - 2017-02-28
+
+* Fix deprecations with guzzle/psr7 version 1.4
+
+## 6.2.2 - 2016-10-08
+
+* Allow to pass nullable Response to delay callable
+* Only add scheme when host is present
+* Fix drain case where content-length is the literal string zero
+* Obfuscate in-URL credentials in exceptions
+
+## 6.2.1 - 2016-07-18
+
+* Address HTTP_PROXY security vulnerability, CVE-2016-5385:
+ https://httpoxy.org/
+* Fixing timeout bug with StreamHandler:
+ https://github.com/guzzle/guzzle/pull/1488
+* Only read up to `Content-Length` in PHP StreamHandler to avoid timeouts when
+ a server does not honor `Connection: close`.
+* Ignore URI fragment when sending requests.
+
+## 6.2.0 - 2016-03-21
+
+* Feature: added `GuzzleHttp\json_encode` and `GuzzleHttp\json_decode`.
+ https://github.com/guzzle/guzzle/pull/1389
+* Bug fix: Fix sleep calculation when waiting for delayed requests.
+ https://github.com/guzzle/guzzle/pull/1324
+* Feature: More flexible history containers.
+ https://github.com/guzzle/guzzle/pull/1373
+* Bug fix: defer sink stream opening in StreamHandler.
+ https://github.com/guzzle/guzzle/pull/1377
+* Bug fix: do not attempt to escape cookie values.
+ https://github.com/guzzle/guzzle/pull/1406
+* Feature: report original content encoding and length on decoded responses.
+ https://github.com/guzzle/guzzle/pull/1409
+* Bug fix: rewind seekable request bodies before dispatching to cURL.
+ https://github.com/guzzle/guzzle/pull/1422
+* Bug fix: provide an empty string to `http_build_query` for HHVM workaround.
+ https://github.com/guzzle/guzzle/pull/1367
+
+## 6.1.1 - 2015-11-22
+
+* Bug fix: Proxy::wrapSync() now correctly proxies to the appropriate handler
+ https://github.com/guzzle/guzzle/commit/911bcbc8b434adce64e223a6d1d14e9a8f63e4e4
+* Feature: HandlerStack is now more generic.
+ https://github.com/guzzle/guzzle/commit/f2102941331cda544745eedd97fc8fd46e1ee33e
+* Bug fix: setting verify to false in the StreamHandler now disables peer
+ verification. https://github.com/guzzle/guzzle/issues/1256
+* Feature: Middleware now uses an exception factory, including more error
+ context. https://github.com/guzzle/guzzle/pull/1282
+* Feature: better support for disabled functions.
+ https://github.com/guzzle/guzzle/pull/1287
+* Bug fix: fixed regression where MockHandler was not using `sink`.
+ https://github.com/guzzle/guzzle/pull/1292
+
+## 6.1.0 - 2015-09-08
+
+* Feature: Added the `on_stats` request option to provide access to transfer
+ statistics for requests. https://github.com/guzzle/guzzle/pull/1202
+* Feature: Added the ability to persist session cookies in CookieJars.
+ https://github.com/guzzle/guzzle/pull/1195
+* Feature: Some compatibility updates for Google APP Engine
+ https://github.com/guzzle/guzzle/pull/1216
+* Feature: Added support for NO_PROXY to prevent the use of a proxy based on
+ a simple set of rules. https://github.com/guzzle/guzzle/pull/1197
+* Feature: Cookies can now contain square brackets.
+ https://github.com/guzzle/guzzle/pull/1237
+* Bug fix: Now correctly parsing `=` inside of quotes in Cookies.
+ https://github.com/guzzle/guzzle/pull/1232
+* Bug fix: Cusotm cURL options now correctly override curl options of the
+ same name. https://github.com/guzzle/guzzle/pull/1221
+* Bug fix: Content-Type header is now added when using an explicitly provided
+ multipart body. https://github.com/guzzle/guzzle/pull/1218
+* Bug fix: Now ignoring Set-Cookie headers that have no name.
+* Bug fix: Reason phrase is no longer cast to an int in some cases in the
+ cURL handler. https://github.com/guzzle/guzzle/pull/1187
+* Bug fix: Remove the Authorization header when redirecting if the Host
+ header changes. https://github.com/guzzle/guzzle/pull/1207
+* Bug fix: Cookie path matching fixes
+ https://github.com/guzzle/guzzle/issues/1129
+* Bug fix: Fixing the cURL `body_as_string` setting
+ https://github.com/guzzle/guzzle/pull/1201
+* Bug fix: quotes are no longer stripped when parsing cookies.
+ https://github.com/guzzle/guzzle/issues/1172
+* Bug fix: `form_params` and `query` now always uses the `&` separator.
+ https://github.com/guzzle/guzzle/pull/1163
+* Bug fix: Adding a Content-Length to PHP stream wrapper requests if not set.
+ https://github.com/guzzle/guzzle/pull/1189
+
+## 6.0.2 - 2015-07-04
+
+* Fixed a memory leak in the curl handlers in which references to callbacks
+ were not being removed by `curl_reset`.
+* Cookies are now extracted properly before redirects.
+* Cookies now allow more character ranges.
+* Decoded Content-Encoding responses are now modified to correctly reflect
+ their state if the encoding was automatically removed by a handler. This
+ means that the `Content-Encoding` header may be removed an the
+ `Content-Length` modified to reflect the message size after removing the
+ encoding.
+* Added a more explicit error message when trying to use `form_params` and
+ `multipart` in the same request.
+* Several fixes for HHVM support.
+* Functions are now conditionally required using an additional level of
+ indirection to help with global Composer installations.
+
+## 6.0.1 - 2015-05-27
+
+* Fixed a bug with serializing the `query` request option where the `&`
+ separator was missing.
+* Added a better error message for when `body` is provided as an array. Please
+ use `form_params` or `multipart` instead.
+* Various doc fixes.
+
+## 6.0.0 - 2015-05-26
+
+* See the UPGRADING.md document for more information.
+* Added `multipart` and `form_params` request options.
+* Added `synchronous` request option.
+* Added the `on_headers` request option.
+* Fixed `expect` handling.
+* No longer adding default middlewares in the client ctor. These need to be
+ present on the provided handler in order to work.
+* Requests are no longer initiated when sending async requests with the
+ CurlMultiHandler. This prevents unexpected recursion from requests completing
+ while ticking the cURL loop.
+* Removed the semantics of setting `default` to `true`. This is no longer
+ required now that the cURL loop is not ticked for async requests.
+* Added request and response logging middleware.
+* No longer allowing self signed certificates when using the StreamHandler.
+* Ensuring that `sink` is valid if saving to a file.
+* Request exceptions now include a "handler context" which provides handler
+ specific contextual information.
+* Added `GuzzleHttp\RequestOptions` to allow request options to be applied
+ using constants.
+* `$maxHandles` has been removed from CurlMultiHandler.
+* `MultipartPostBody` is now part of the `guzzlehttp/psr7` package.
+
+## 5.3.0 - 2015-05-19
+
+* Mock now supports `save_to`
+* Marked `AbstractRequestEvent::getTransaction()` as public.
+* Fixed a bug in which multiple headers using different casing would overwrite
+ previous headers in the associative array.
+* Added `Utils::getDefaultHandler()`
+* Marked `GuzzleHttp\Client::getDefaultUserAgent` as deprecated.
+* URL scheme is now always lowercased.
+
+## 6.0.0-beta.1
+
+* Requires PHP >= 5.5
+* Updated to use PSR-7
+ * Requires immutable messages, which basically means an event based system
+ owned by a request instance is no longer possible.
+ * Utilizing the [Guzzle PSR-7 package](https://github.com/guzzle/psr7).
+ * Removed the dependency on `guzzlehttp/streams`. These stream abstractions
+ are available in the `guzzlehttp/psr7` package under the `GuzzleHttp\Psr7`
+ namespace.
+* Added middleware and handler system
+ * Replaced the Guzzle event and subscriber system with a middleware system.
+ * No longer depends on RingPHP, but rather places the HTTP handlers directly
+ in Guzzle, operating on PSR-7 messages.
+ * Retry logic is now encapsulated in `GuzzleHttp\Middleware::retry`, which
+ means the `guzzlehttp/retry-subscriber` is now obsolete.
+ * Mocking responses is now handled using `GuzzleHttp\Handler\MockHandler`.
+* Asynchronous responses
+ * No longer supports the `future` request option to send an async request.
+ Instead, use one of the `*Async` methods of a client (e.g., `requestAsync`,
+ `getAsync`, etc.).
+ * Utilizing `GuzzleHttp\Promise` instead of React's promise library to avoid
+ recursion required by chaining and forwarding react promises. See
+ https://github.com/guzzle/promises
+ * Added `requestAsync` and `sendAsync` to send request asynchronously.
+ * Added magic methods for `getAsync()`, `postAsync()`, etc. to send requests
+ asynchronously.
+* Request options
+ * POST and form updates
+ * Added the `form_fields` and `form_files` request options.
+ * Removed the `GuzzleHttp\Post` namespace.
+ * The `body` request option no longer accepts an array for POST requests.
+ * The `exceptions` request option has been deprecated in favor of the
+ `http_errors` request options.
+ * The `save_to` request option has been deprecated in favor of `sink` request
+ option.
+* Clients no longer accept an array of URI template string and variables for
+ URI variables. You will need to expand URI templates before passing them
+ into a client constructor or request method.
+* Client methods `get()`, `post()`, `put()`, `patch()`, `options()`, etc. are
+ now magic methods that will send synchronous requests.
+* Replaced `Utils.php` with plain functions in `functions.php`.
+* Removed `GuzzleHttp\Collection`.
+* Removed `GuzzleHttp\BatchResults`. Batched pool results are now returned as
+ an array.
+* Removed `GuzzleHttp\Query`. Query string handling is now handled using an
+ associative array passed into the `query` request option. The query string
+ is serialized using PHP's `http_build_query`. If you need more control, you
+ can pass the query string in as a string.
+* `GuzzleHttp\QueryParser` has been replaced with the
+ `GuzzleHttp\Psr7\parse_query`.
+
+## 5.2.0 - 2015-01-27
+
+* Added `AppliesHeadersInterface` to make applying headers to a request based
+ on the body more generic and not specific to `PostBodyInterface`.
+* Reduced the number of stack frames needed to send requests.
+* Nested futures are now resolved in the client rather than the RequestFsm
+* Finishing state transitions is now handled in the RequestFsm rather than the
+ RingBridge.
+* Added a guard in the Pool class to not use recursion for request retries.
+
+## 5.1.0 - 2014-12-19
+
+* Pool class no longer uses recursion when a request is intercepted.
+* The size of a Pool can now be dynamically adjusted using a callback.
+ See https://github.com/guzzle/guzzle/pull/943.
+* Setting a request option to `null` when creating a request with a client will
+ ensure that the option is not set. This allows you to overwrite default
+ request options on a per-request basis.
+ See https://github.com/guzzle/guzzle/pull/937.
+* Added the ability to limit which protocols are allowed for redirects by
+ specifying a `protocols` array in the `allow_redirects` request option.
+* Nested futures due to retries are now resolved when waiting for synchronous
+ responses. See https://github.com/guzzle/guzzle/pull/947.
+* `"0"` is now an allowed URI path. See
+ https://github.com/guzzle/guzzle/pull/935.
+* `Query` no longer typehints on the `$query` argument in the constructor,
+ allowing for strings and arrays.
+* Exceptions thrown in the `end` event are now correctly wrapped with Guzzle
+ specific exceptions if necessary.
+
+## 5.0.3 - 2014-11-03
+
+This change updates query strings so that they are treated as un-encoded values
+by default where the value represents an un-encoded value to send over the
+wire. A Query object then encodes the value before sending over the wire. This
+means that even value query string values (e.g., ":") are url encoded. This
+makes the Query class match PHP's http_build_query function. However, if you
+want to send requests over the wire using valid query string characters that do
+not need to be encoded, then you can provide a string to Url::setQuery() and
+pass true as the second argument to specify that the query string is a raw
+string that should not be parsed or encoded (unless a call to getQuery() is
+subsequently made, forcing the query-string to be converted into a Query
+object).
+
+## 5.0.2 - 2014-10-30
+
+* Added a trailing `\r\n` to multipart/form-data payloads. See
+ https://github.com/guzzle/guzzle/pull/871
+* Added a `GuzzleHttp\Pool::send()` convenience method to match the docs.
+* Status codes are now returned as integers. See
+ https://github.com/guzzle/guzzle/issues/881
+* No longer overwriting an existing `application/x-www-form-urlencoded` header
+ when sending POST requests, allowing for customized headers. See
+ https://github.com/guzzle/guzzle/issues/877
+* Improved path URL serialization.
+
+ * No longer double percent-encoding characters in the path or query string if
+ they are already encoded.
+ * Now properly encoding the supplied path to a URL object, instead of only
+ encoding ' ' and '?'.
+ * Note: This has been changed in 5.0.3 to now encode query string values by
+ default unless the `rawString` argument is provided when setting the query
+ string on a URL: Now allowing many more characters to be present in the
+ query string without being percent encoded. See http://tools.ietf.org/html/rfc3986#appendix-A
+
+## 5.0.1 - 2014-10-16
+
+Bugfix release.
+
+* Fixed an issue where connection errors still returned response object in
+ error and end events event though the response is unusable. This has been
+ corrected so that a response is not returned in the `getResponse` method of
+ these events if the response did not complete. https://github.com/guzzle/guzzle/issues/867
+* Fixed an issue where transfer statistics were not being populated in the
+ RingBridge. https://github.com/guzzle/guzzle/issues/866
+
+## 5.0.0 - 2014-10-12
+
+Adding support for non-blocking responses and some minor API cleanup.
+
+### New Features
+
+* Added support for non-blocking responses based on `guzzlehttp/guzzle-ring`.
+* Added a public API for creating a default HTTP adapter.
+* Updated the redirect plugin to be non-blocking so that redirects are sent
+ concurrently. Other plugins like this can now be updated to be non-blocking.
+* Added a "progress" event so that you can get upload and download progress
+ events.
+* Added `GuzzleHttp\Pool` which implements FutureInterface and transfers
+ requests concurrently using a capped pool size as efficiently as possible.
+* Added `hasListeners()` to EmitterInterface.
+* Removed `GuzzleHttp\ClientInterface::sendAll` and marked
+ `GuzzleHttp\Client::sendAll` as deprecated (it's still there, just not the
+ recommended way).
+
+### Breaking changes
+
+The breaking changes in this release are relatively minor. The biggest thing to
+look out for is that request and response objects no longer implement fluent
+interfaces.
+
+* Removed the fluent interfaces (i.e., `return $this`) from requests,
+ responses, `GuzzleHttp\Collection`, `GuzzleHttp\Url`,
+ `GuzzleHttp\Query`, `GuzzleHttp\Post\PostBody`, and
+ `GuzzleHttp\Cookie\SetCookie`. This blog post provides a good outline of
+ why I did this: http://ocramius.github.io/blog/fluent-interfaces-are-evil/.
+ This also makes the Guzzle message interfaces compatible with the current
+ PSR-7 message proposal.
+* Removed "functions.php", so that Guzzle is truly PSR-4 compliant. Except
+ for the HTTP request functions from function.php, these functions are now
+ implemented in `GuzzleHttp\Utils` using camelCase. `GuzzleHttp\json_decode`
+ moved to `GuzzleHttp\Utils::jsonDecode`. `GuzzleHttp\get_path` moved to
+ `GuzzleHttp\Utils::getPath`. `GuzzleHttp\set_path` moved to
+ `GuzzleHttp\Utils::setPath`. `GuzzleHttp\batch` should now be
+ `GuzzleHttp\Pool::batch`, which returns an `objectStorage`. Using functions.php
+ caused problems for many users: they aren't PSR-4 compliant, require an
+ explicit include, and needed an if-guard to ensure that the functions are not
+ declared multiple times.
+* Rewrote adapter layer.
+ * Removing all classes from `GuzzleHttp\Adapter`, these are now
+ implemented as callables that are stored in `GuzzleHttp\Ring\Client`.
+ * Removed the concept of "parallel adapters". Sending requests serially or
+ concurrently is now handled using a single adapter.
+ * Moved `GuzzleHttp\Adapter\Transaction` to `GuzzleHttp\Transaction`. The
+ Transaction object now exposes the request, response, and client as public
+ properties. The getters and setters have been removed.
+* Removed the "headers" event. This event was only useful for changing the
+ body a response once the headers of the response were known. You can implement
+ a similar behavior in a number of ways. One example might be to use a
+ FnStream that has access to the transaction being sent. For example, when the
+ first byte is written, you could check if the response headers match your
+ expectations, and if so, change the actual stream body that is being
+ written to.
+* Removed the `asArray` parameter from
+ `GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header
+ value as an array, then use the newly added `getHeaderAsArray()` method of
+ `MessageInterface`. This change makes the Guzzle interfaces compatible with
+ the PSR-7 interfaces.
+* `GuzzleHttp\Message\MessageFactory` no longer allows subclasses to add
+ custom request options using double-dispatch (this was an implementation
+ detail). Instead, you should now provide an associative array to the
+ constructor which is a mapping of the request option name mapping to a
+ function that applies the option value to a request.
+* Removed the concept of "throwImmediately" from exceptions and error events.
+ This control mechanism was used to stop a transfer of concurrent requests
+ from completing. This can now be handled by throwing the exception or by
+ cancelling a pool of requests or each outstanding future request individually.
+* Updated to "GuzzleHttp\Streams" 3.0.
+ * `GuzzleHttp\Stream\StreamInterface::getContents()` no longer accepts a
+ `maxLen` parameter. This update makes the Guzzle streams project
+ compatible with the current PSR-7 proposal.
+ * `GuzzleHttp\Stream\Stream::__construct`,
+ `GuzzleHttp\Stream\Stream::factory`, and
+ `GuzzleHttp\Stream\Utils::create` no longer accept a size in the second
+ argument. They now accept an associative array of options, including the
+ "size" key and "metadata" key which can be used to provide custom metadata.
+
+## 4.2.2 - 2014-09-08
+
+* Fixed a memory leak in the CurlAdapter when reusing cURL handles.
+* No longer using `request_fulluri` in stream adapter proxies.
+* Relative redirects are now based on the last response, not the first response.
+
+## 4.2.1 - 2014-08-19
+
+* Ensuring that the StreamAdapter does not always add a Content-Type header
+* Adding automated github releases with a phar and zip
+
+## 4.2.0 - 2014-08-17
+
+* Now merging in default options using a case-insensitive comparison.
+ Closes https://github.com/guzzle/guzzle/issues/767
+* Added the ability to automatically decode `Content-Encoding` response bodies
+ using the `decode_content` request option. This is set to `true` by default
+ to decode the response body if it comes over the wire with a
+ `Content-Encoding`. Set this value to `false` to disable decoding the
+ response content, and pass a string to provide a request `Accept-Encoding`
+ header and turn on automatic response decoding. This feature now allows you
+ to pass an `Accept-Encoding` header in the headers of a request but still
+ disable automatic response decoding.
+ Closes https://github.com/guzzle/guzzle/issues/764
+* Added the ability to throw an exception immediately when transferring
+ requests in parallel. Closes https://github.com/guzzle/guzzle/issues/760
+* Updating guzzlehttp/streams dependency to ~2.1
+* No longer utilizing the now deprecated namespaced methods from the stream
+ package.
+
+## 4.1.8 - 2014-08-14
+
+* Fixed an issue in the CurlFactory that caused setting the `stream=false`
+ request option to throw an exception.
+ See: https://github.com/guzzle/guzzle/issues/769
+* TransactionIterator now calls rewind on the inner iterator.
+ See: https://github.com/guzzle/guzzle/pull/765
+* You can now set the `Content-Type` header to `multipart/form-data`
+ when creating POST requests to force multipart bodies.
+ See https://github.com/guzzle/guzzle/issues/768
+
+## 4.1.7 - 2014-08-07
+
+* Fixed an error in the HistoryPlugin that caused the same request and response
+ to be logged multiple times when an HTTP protocol error occurs.
+* Ensuring that cURL does not add a default Content-Type when no Content-Type
+ has been supplied by the user. This prevents the adapter layer from modifying
+ the request that is sent over the wire after any listeners may have already
+ put the request in a desired state (e.g., signed the request).
+* Throwing an exception when you attempt to send requests that have the
+ "stream" set to true in parallel using the MultiAdapter.
+* Only calling curl_multi_select when there are active cURL handles. This was
+ previously changed and caused performance problems on some systems due to PHP
+ always selecting until the maximum select timeout.
+* Fixed a bug where multipart/form-data POST fields were not correctly
+ aggregated (e.g., values with "&").
+
+## 4.1.6 - 2014-08-03
+
+* Added helper methods to make it easier to represent messages as strings,
+ including getting the start line and getting headers as a string.
+
+## 4.1.5 - 2014-08-02
+
+* Automatically retrying cURL "Connection died, retrying a fresh connect"
+ errors when possible.
+* cURL implementation cleanup
+* Allowing multiple event subscriber listeners to be registered per event by
+ passing an array of arrays of listener configuration.
+
+## 4.1.4 - 2014-07-22
+
+* Fixed a bug that caused multi-part POST requests with more than one field to
+ serialize incorrectly.
+* Paths can now be set to "0"
+* `ResponseInterface::xml` now accepts a `libxml_options` option and added a
+ missing default argument that was required when parsing XML response bodies.
+* A `save_to` stream is now created lazily, which means that files are not
+ created on disk unless a request succeeds.
+
+## 4.1.3 - 2014-07-15
+
+* Various fixes to multipart/form-data POST uploads
+* Wrapping function.php in an if-statement to ensure Guzzle can be used
+ globally and in a Composer install
+* Fixed an issue with generating and merging in events to an event array
+* POST headers are only applied before sending a request to allow you to change
+ the query aggregator used before uploading
+* Added much more robust query string parsing
+* Fixed various parsing and normalization issues with URLs
+* Fixing an issue where multi-valued headers were not being utilized correctly
+ in the StreamAdapter
+
+## 4.1.2 - 2014-06-18
+
+* Added support for sending payloads with GET requests
+
+## 4.1.1 - 2014-06-08
+
+* Fixed an issue related to using custom message factory options in subclasses
+* Fixed an issue with nested form fields in a multi-part POST
+* Fixed an issue with using the `json` request option for POST requests
+* Added `ToArrayInterface` to `GuzzleHttp\Cookie\CookieJar`
+
+## 4.1.0 - 2014-05-27
+
+* Added a `json` request option to easily serialize JSON payloads.
+* Added a `GuzzleHttp\json_decode()` wrapper to safely parse JSON.
+* Added `setPort()` and `getPort()` to `GuzzleHttp\Message\RequestInterface`.
+* Added the ability to provide an emitter to a client in the client constructor.
+* Added the ability to persist a cookie session using $_SESSION.
+* Added a trait that can be used to add event listeners to an iterator.
+* Removed request method constants from RequestInterface.
+* Fixed warning when invalid request start-lines are received.
+* Updated MessageFactory to work with custom request option methods.
+* Updated cacert bundle to latest build.
+
+4.0.2 (2014-04-16)
+------------------
+
+* Proxy requests using the StreamAdapter now properly use request_fulluri (#632)
+* Added the ability to set scalars as POST fields (#628)
+
+## 4.0.1 - 2014-04-04
+
+* The HTTP status code of a response is now set as the exception code of
+ RequestException objects.
+* 303 redirects will now correctly switch from POST to GET requests.
+* The default parallel adapter of a client now correctly uses the MultiAdapter.
+* HasDataTrait now initializes the internal data array as an empty array so
+ that the toArray() method always returns an array.
+
+## 4.0.0 - 2014-03-29
+
+* For more information on the 4.0 transition, see:
+ http://mtdowling.com/blog/2014/03/15/guzzle-4-rc/
+* For information on changes and upgrading, see:
+ https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40
+* Added `GuzzleHttp\batch()` as a convenience function for sending requests in
+ parallel without needing to write asynchronous code.
+* Restructured how events are added to `GuzzleHttp\ClientInterface::sendAll()`.
+ You can now pass a callable or an array of associative arrays where each
+ associative array contains the "fn", "priority", and "once" keys.
+
+## 4.0.0.rc-2 - 2014-03-25
+
+* Removed `getConfig()` and `setConfig()` from clients to avoid confusion
+ around whether things like base_url, message_factory, etc. should be able to
+ be retrieved or modified.
+* Added `getDefaultOption()` and `setDefaultOption()` to ClientInterface
+* functions.php functions were renamed using snake_case to match PHP idioms
+* Added support for `HTTP_PROXY`, `HTTPS_PROXY`, and
+ `GUZZLE_CURL_SELECT_TIMEOUT` environment variables
+* Added the ability to specify custom `sendAll()` event priorities
+* Added the ability to specify custom stream context options to the stream
+ adapter.
+* Added a functions.php function for `get_path()` and `set_path()`
+* CurlAdapter and MultiAdapter now use a callable to generate curl resources
+* MockAdapter now properly reads a body and emits a `headers` event
+* Updated Url class to check if a scheme and host are set before adding ":"
+ and "//". This allows empty Url (e.g., "") to be serialized as "".
+* Parsing invalid XML no longer emits warnings
+* Curl classes now properly throw AdapterExceptions
+* Various performance optimizations
+* Streams are created with the faster `Stream\create()` function
+* Marked deprecation_proxy() as internal
+* Test server is now a collection of static methods on a class
+
+## 4.0.0-rc.1 - 2014-03-15
+
+* See https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#3x-to-40
+
+## 3.8.1 - 2014-01-28
+
+* Bug: Always using GET requests when redirecting from a 303 response
+* Bug: CURLOPT_SSL_VERIFYHOST is now correctly set to false when setting `$certificateAuthority` to false in
+ `Guzzle\Http\ClientInterface::setSslVerification()`
+* Bug: RedirectPlugin now uses strict RFC 3986 compliance when combining a base URL with a relative URL
+* Bug: The body of a request can now be set to `"0"`
+* Sending PHP stream requests no longer forces `HTTP/1.0`
+* Adding more information to ExceptionCollection exceptions so that users have more context, including a stack trace of
+ each sub-exception
+* Updated the `$ref` attribute in service descriptions to merge over any existing parameters of a schema (rather than
+ clobbering everything).
+* Merging URLs will now use the query string object from the relative URL (thus allowing custom query aggregators)
+* Query strings are now parsed in a way that they do no convert empty keys with no value to have a dangling `=`.
+ For example `foo&bar=baz` is now correctly parsed and recognized as `foo&bar=baz` rather than `foo=&bar=baz`.
+* Now properly escaping the regular expression delimiter when matching Cookie domains.
+* Network access is now disabled when loading XML documents
+
+## 3.8.0 - 2013-12-05
+
+* Added the ability to define a POST name for a file
+* JSON response parsing now properly walks additionalProperties
+* cURL error code 18 is now retried automatically in the BackoffPlugin
+* Fixed a cURL error when URLs contain fragments
+* Fixed an issue in the BackoffPlugin retry event where it was trying to access all exceptions as if they were
+ CurlExceptions
+* CURLOPT_PROGRESS function fix for PHP 5.5 (69fcc1e)
+* Added the ability for Guzzle to work with older versions of cURL that do not support `CURLOPT_TIMEOUT_MS`
+* Fixed a bug that was encountered when parsing empty header parameters
+* UriTemplate now has a `setRegex()` method to match the docs
+* The `debug` request parameter now checks if it is truthy rather than if it exists
+* Setting the `debug` request parameter to true shows verbose cURL output instead of using the LogPlugin
+* Added the ability to combine URLs using strict RFC 3986 compliance
+* Command objects can now return the validation errors encountered by the command
+* Various fixes to cache revalidation (#437 and 29797e5)
+* Various fixes to the AsyncPlugin
+* Cleaned up build scripts
+
+## 3.7.4 - 2013-10-02
+
+* Bug fix: 0 is now an allowed value in a description parameter that has a default value (#430)
+* Bug fix: SchemaFormatter now returns an integer when formatting to a Unix timestamp
+ (see https://github.com/aws/aws-sdk-php/issues/147)
+* Bug fix: Cleaned up and fixed URL dot segment removal to properly resolve internal dots
+* Minimum PHP version is now properly specified as 5.3.3 (up from 5.3.2) (#420)
+* Updated the bundled cacert.pem (#419)
+* OauthPlugin now supports adding authentication to headers or query string (#425)
+
+## 3.7.3 - 2013-09-08
+
+* Added the ability to get the exception associated with a request/command when using `MultiTransferException` and
+ `CommandTransferException`.
+* Setting `additionalParameters` of a response to false is now honored when parsing responses with a service description
+* Schemas are only injected into response models when explicitly configured.
+* No longer guessing Content-Type based on the path of a request. Content-Type is now only guessed based on the path of
+ an EntityBody.
+* Bug fix: ChunkedIterator can now properly chunk a \Traversable as well as an \Iterator.
+* Bug fix: FilterIterator now relies on `\Iterator` instead of `\Traversable`.
+* Bug fix: Gracefully handling malformed responses in RequestMediator::writeResponseBody()
+* Bug fix: Replaced call to canCache with canCacheRequest in the CallbackCanCacheStrategy of the CachePlugin
+* Bug fix: Visiting XML attributes first before visiting XML children when serializing requests
+* Bug fix: Properly parsing headers that contain commas contained in quotes
+* Bug fix: mimetype guessing based on a filename is now case-insensitive
+
+## 3.7.2 - 2013-08-02
+
+* Bug fix: Properly URL encoding paths when using the PHP-only version of the UriTemplate expander
+ See https://github.com/guzzle/guzzle/issues/371
+* Bug fix: Cookie domains are now matched correctly according to RFC 6265
+ See https://github.com/guzzle/guzzle/issues/377
+* Bug fix: GET parameters are now used when calculating an OAuth signature
+* Bug fix: Fixed an issue with cache revalidation where the If-None-Match header was being double quoted
+* `Guzzle\Common\AbstractHasDispatcher::dispatch()` now returns the event that was dispatched
+* `Guzzle\Http\QueryString::factory()` now guesses the most appropriate query aggregator to used based on the input.
+ See https://github.com/guzzle/guzzle/issues/379
+* Added a way to add custom domain objects to service description parsing using the `operation.parse_class` event. See
+ https://github.com/guzzle/guzzle/pull/380
+* cURL multi cleanup and optimizations
+
+## 3.7.1 - 2013-07-05
+
+* Bug fix: Setting default options on a client now works
+* Bug fix: Setting options on HEAD requests now works. See #352
+* Bug fix: Moving stream factory before send event to before building the stream. See #353
+* Bug fix: Cookies no longer match on IP addresses per RFC 6265
+* Bug fix: Correctly parsing header parameters that are in `<>` and quotes
+* Added `cert` and `ssl_key` as request options
+* `Host` header can now diverge from the host part of a URL if the header is set manually
+* `Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor` was rewritten to change from using SimpleXML to XMLWriter
+* OAuth parameters are only added via the plugin if they aren't already set
+* Exceptions are now thrown when a URL cannot be parsed
+* Returning `false` if `Guzzle\Http\EntityBody::getContentMd5()` fails
+* Not setting a `Content-MD5` on a command if calculating the Content-MD5 fails via the CommandContentMd5Plugin
+
+## 3.7.0 - 2013-06-10
+
+* See UPGRADING.md for more information on how to upgrade.
+* Requests now support the ability to specify an array of $options when creating a request to more easily modify a
+ request. You can pass a 'request.options' configuration setting to a client to apply default request options to
+ every request created by a client (e.g. default query string variables, headers, curl options, etc.).
+* Added a static facade class that allows you to use Guzzle with static methods and mount the class to `\Guzzle`.
+ See `Guzzle\Http\StaticClient::mount`.
+* Added `command.request_options` to `Guzzle\Service\Command\AbstractCommand` to pass request options to requests
+ created by a command (e.g. custom headers, query string variables, timeout settings, etc.).
+* Stream size in `Guzzle\Stream\PhpStreamRequestFactory` will now be set if Content-Length is returned in the
+ headers of a response
+* Added `Guzzle\Common\Collection::setPath($path, $value)` to set a value into an array using a nested key
+ (e.g. `$collection->setPath('foo/baz/bar', 'test'); echo $collection['foo']['bar']['bar'];`)
+* ServiceBuilders now support storing and retrieving arbitrary data
+* CachePlugin can now purge all resources for a given URI
+* CachePlugin can automatically purge matching cached items when a non-idempotent request is sent to a resource
+* CachePlugin now uses the Vary header to determine if a resource is a cache hit
+* `Guzzle\Http\Message\Response` now implements `\Serializable`
+* Added `Guzzle\Cache\CacheAdapterFactory::fromCache()` to more easily create cache adapters
+* `Guzzle\Service\ClientInterface::execute()` now accepts an array, single command, or Traversable
+* Fixed a bug in `Guzzle\Http\Message\Header\Link::addLink()`
+* Better handling of calculating the size of a stream in `Guzzle\Stream\Stream` using fstat() and caching the size
+* `Guzzle\Common\Exception\ExceptionCollection` now creates a more readable exception message
+* Fixing BC break: Added back the MonologLogAdapter implementation rather than extending from PsrLog so that older
+ Symfony users can still use the old version of Monolog.
+* Fixing BC break: Added the implementation back in for `Guzzle\Http\Message\AbstractMessage::getTokenizedHeader()`.
+ Now triggering an E_USER_DEPRECATED warning when used. Use `$message->getHeader()->parseParams()`.
+* Several performance improvements to `Guzzle\Common\Collection`
+* Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`:
+ createRequest, head, delete, put, patch, post, options, prepareRequest
+* Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()`
+* Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface`
+* Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to
+ `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a
+ resource, string, or EntityBody into the $options parameter to specify the download location of the response.
+* Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a
+ default `array()`
+* Added `Guzzle\Stream\StreamInterface::isRepeatable`
+* Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use
+ $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or
+ $client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))`.
+* Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use $client->getConfig()->getPath('request.options/headers')`.
+* Removed `Guzzle\Http\ClientInterface::expandTemplate()`
+* Removed `Guzzle\Http\ClientInterface::setRequestFactory()`
+* Removed `Guzzle\Http\ClientInterface::getCurlMulti()`
+* Removed `Guzzle\Http\Message\RequestInterface::canCache`
+* Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`
+* Removed `Guzzle\Http\Message\RequestInterface::isRedirect`
+* Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods.
+* You can now enable E_USER_DEPRECATED warnings to see if you are using a deprecated method by setting
+ `Guzzle\Common\Version::$emitWarnings` to true.
+* Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use
+ `$request->getResponseBody()->isRepeatable()` instead.
+* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use
+ `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead.
+* Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use
+ `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead.
+* Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead.
+* Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead.
+* Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated
+* Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand.
+ These will work through Guzzle 4.0
+* Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use [request.options][params].
+* Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client.
+* Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use $client->getConfig()->getPath('request.options/headers')`.
+* Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use $client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`.
+* Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8.
+* Marked `Guzzle\Common\Collection::inject()` as deprecated.
+* Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest');`
+* CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a
+ CacheStorageInterface. These two objects and interface will be removed in a future version.
+* Always setting X-cache headers on cached responses
+* Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin
+* `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface
+ $request, Response $response);`
+* `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);`
+* `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);`
+* Added `CacheStorageInterface::purge($url)`
+* `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin
+ $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache,
+ CanCacheStrategyInterface $canCache = null)`
+* Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)`
+
+## 3.6.0 - 2013-05-29
+
+* ServiceDescription now implements ToArrayInterface
+* Added command.hidden_params to blacklist certain headers from being treated as additionalParameters
+* Guzzle can now correctly parse incomplete URLs
+* Mixed casing of headers are now forced to be a single consistent casing across all values for that header.
+* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution
+* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader().
+* Specific header implementations can be created for complex headers. When a message creates a header, it uses a
+ HeaderFactory which can map specific headers to specific header classes. There is now a Link header and
+ CacheControl header implementation.
+* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate
+* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti()
+* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in
+ Guzzle\Http\Curl\RequestMediator
+* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string.
+* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface
+* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders()
+* Removed Guzzle\Parser\ParserRegister::get(). Use getParser()
+* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser().
+* All response header helper functions return a string rather than mixing Header objects and strings inconsistently
+* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle
+ directly via interfaces
+* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist
+ but are a no-op until removed.
+* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a
+ `Guzzle\Service\Command\ArrayCommandInterface`.
+* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response
+ on a request while the request is still being transferred
+* The ability to case-insensitively search for header values
+* Guzzle\Http\Message\Header::hasExactHeader
+* Guzzle\Http\Message\Header::raw. Use getAll()
+* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object
+ instead.
+* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess
+* Added the ability to cast Model objects to a string to view debug information.
+
+## 3.5.0 - 2013-05-13
+
+* Bug: Fixed a regression so that request responses are parsed only once per oncomplete event rather than multiple times
+* Bug: Better cleanup of one-time events across the board (when an event is meant to fire once, it will now remove
+ itself from the EventDispatcher)
+* Bug: `Guzzle\Log\MessageFormatter` now properly writes "total_time" and "connect_time" values
+* Bug: Cloning an EntityEnclosingRequest now clones the EntityBody too
+* Bug: Fixed an undefined index error when parsing nested JSON responses with a sentAs parameter that reference a
+ non-existent key
+* Bug: All __call() method arguments are now required (helps with mocking frameworks)
+* Deprecating Response::getRequest() and now using a shallow clone of a request object to remove a circular reference
+ to help with refcount based garbage collection of resources created by sending a request
+* Deprecating ZF1 cache and log adapters. These will be removed in the next major version.
+* Deprecating `Response::getPreviousResponse()` (method signature still exists, but it's deprecated). Use the
+ HistoryPlugin for a history.
+* Added a `responseBody` alias for the `response_body` location
+* Refactored internals to no longer rely on Response::getRequest()
+* HistoryPlugin can now be cast to a string
+* HistoryPlugin now logs transactions rather than requests and responses to more accurately keep track of the requests
+ and responses that are sent over the wire
+* Added `getEffectiveUrl()` and `getRedirectCount()` to Response objects
+
+## 3.4.3 - 2013-04-30
+
+* Bug fix: Fixing bug introduced in 3.4.2 where redirect responses are duplicated on the final redirected response
+* Added a check to re-extract the temp cacert bundle from the phar before sending each request
+
+## 3.4.2 - 2013-04-29
+
+* Bug fix: Stream objects now work correctly with "a" and "a+" modes
+* Bug fix: Removing `Transfer-Encoding: chunked` header when a Content-Length is present
+* Bug fix: AsyncPlugin no longer forces HEAD requests
+* Bug fix: DateTime timezones are now properly handled when using the service description schema formatter
+* Bug fix: CachePlugin now properly handles stale-if-error directives when a request to the origin server fails
+* Setting a response on a request will write to the custom request body from the response body if one is specified
+* LogPlugin now writes to php://output when STDERR is undefined
+* Added the ability to set multiple POST files for the same key in a single call
+* application/x-www-form-urlencoded POSTs now use the utf-8 charset by default
+* Added the ability to queue CurlExceptions to the MockPlugin
+* Cleaned up how manual responses are queued on requests (removed "queued_response" and now using request.before_send)
+* Configuration loading now allows remote files
+
+## 3.4.1 - 2013-04-16
+
+* Large refactoring to how CurlMulti handles work. There is now a proxy that sits in front of a pool of CurlMulti
+ handles. This greatly simplifies the implementation, fixes a couple bugs, and provides a small performance boost.
+* Exceptions are now properly grouped when sending requests in parallel
+* Redirects are now properly aggregated when a multi transaction fails
+* Redirects now set the response on the original object even in the event of a failure
+* Bug fix: Model names are now properly set even when using $refs
+* Added support for PHP 5.5's CurlFile to prevent warnings with the deprecated @ syntax
+* Added support for oauth_callback in OAuth signatures
+* Added support for oauth_verifier in OAuth signatures
+* Added support to attempt to retrieve a command first literally, then ucfirst, the with inflection
+
+## 3.4.0 - 2013-04-11
+
+* Bug fix: URLs are now resolved correctly based on http://tools.ietf.org/html/rfc3986#section-5.2. #289
+* Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289
+* Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263
+* Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264.
+* Bug fix: Added `number` type to service descriptions.
+* Bug fix: empty parameters are removed from an OAuth signature
+* Bug fix: Revalidating a cache entry prefers the Last-Modified over the Date header
+* Bug fix: Fixed "array to string" error when validating a union of types in a service description
+* Bug fix: Removed code that attempted to determine the size of a stream when data is written to the stream
+* Bug fix: Not including an `oauth_token` if the value is null in the OauthPlugin.
+* Bug fix: Now correctly aggregating successful requests and failed requests in CurlMulti when a redirect occurs.
+* The new default CURLOPT_TIMEOUT setting has been increased to 150 seconds so that Guzzle works on poor connections.
+* Added a feature to EntityEnclosingRequest::setBody() that will automatically set the Content-Type of the request if
+ the Content-Type can be determined based on the entity body or the path of the request.
+* Added the ability to overwrite configuration settings in a client when grabbing a throwaway client from a builder.
+* Added support for a PSR-3 LogAdapter.
+* Added a `command.after_prepare` event
+* Added `oauth_callback` parameter to the OauthPlugin
+* Added the ability to create a custom stream class when using a stream factory
+* Added a CachingEntityBody decorator
+* Added support for `additionalParameters` in service descriptions to define how custom parameters are serialized.
+* The bundled SSL certificate is now provided in the phar file and extracted when running Guzzle from a phar.
+* You can now send any EntityEnclosingRequest with POST fields or POST files and cURL will handle creating bodies
+* POST requests using a custom entity body are now treated exactly like PUT requests but with a custom cURL method. This
+ means that the redirect behavior of POST requests with custom bodies will not be the same as POST requests that use
+ POST fields or files (the latter is only used when emulating a form POST in the browser).
+* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest
+
+## 3.3.1 - 2013-03-10
+
+* Added the ability to create PHP streaming responses from HTTP requests
+* Bug fix: Running any filters when parsing response headers with service descriptions
+* Bug fix: OauthPlugin fixes to allow for multi-dimensional array signing, and sorting parameters before signing
+* Bug fix: Removed the adding of default empty arrays and false Booleans to responses in order to be consistent across
+ response location visitors.
+* Bug fix: Removed the possibility of creating configuration files with circular dependencies
+* RequestFactory::create() now uses the key of a POST file when setting the POST file name
+* Added xmlAllowEmpty to serialize an XML body even if no XML specific parameters are set
+
+## 3.3.0 - 2013-03-03
+
+* A large number of performance optimizations have been made
+* Bug fix: Added 'wb' as a valid write mode for streams
+* Bug fix: `Guzzle\Http\Message\Response::json()` now allows scalar values to be returned
+* Bug fix: Fixed bug in `Guzzle\Http\Message\Response` where wrapping quotes were stripped from `getEtag()`
+* BC: Removed `Guzzle\Http\Utils` class
+* BC: Setting a service description on a client will no longer modify the client's command factories.
+* BC: Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using
+ the 'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io'
+* BC: `Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getSteamType()` are no longer converted to
+ lowercase
+* Operation parameter objects are now lazy loaded internally
+* Added ErrorResponsePlugin that can throw errors for responses defined in service description operations' errorResponses
+* Added support for instantiating responseType=class responseClass classes. Classes must implement
+ `Guzzle\Service\Command\ResponseClassInterface`
+* Added support for additionalProperties for top-level parameters in responseType=model responseClasses. These
+ additional properties also support locations and can be used to parse JSON responses where the outermost part of the
+ JSON is an array
+* Added support for nested renaming of JSON models (rename sentAs to name)
+* CachePlugin
+ * Added support for stale-if-error so that the CachePlugin can now serve stale content from the cache on error
+ * Debug headers can now added to cached response in the CachePlugin
+
+## 3.2.0 - 2013-02-14
+
+* CurlMulti is no longer reused globally. A new multi object is created per-client. This helps to isolate clients.
+* URLs with no path no longer contain a "/" by default
+* Guzzle\Http\QueryString does no longer manages the leading "?". This is now handled in Guzzle\Http\Url.
+* BadResponseException no longer includes the full request and response message
+* Adding setData() to Guzzle\Service\Description\ServiceDescriptionInterface
+* Adding getResponseBody() to Guzzle\Http\Message\RequestInterface
+* Various updates to classes to use ServiceDescriptionInterface type hints rather than ServiceDescription
+* Header values can now be normalized into distinct values when multiple headers are combined with a comma separated list
+* xmlEncoding can now be customized for the XML declaration of a XML service description operation
+* Guzzle\Http\QueryString now uses Guzzle\Http\QueryAggregator\QueryAggregatorInterface objects to add custom value
+ aggregation and no longer uses callbacks
+* The URL encoding implementation of Guzzle\Http\QueryString can now be customized
+* Bug fix: Filters were not always invoked for array service description parameters
+* Bug fix: Redirects now use a target response body rather than a temporary response body
+* Bug fix: The default exponential backoff BackoffPlugin was not giving when the request threshold was exceeded
+* Bug fix: Guzzle now takes the first found value when grabbing Cache-Control directives
+
+## 3.1.2 - 2013-01-27
+
+* Refactored how operation responses are parsed. Visitors now include a before() method responsible for parsing the
+ response body. For example, the XmlVisitor now parses the XML response into an array in the before() method.
+* Fixed an issue where cURL would not automatically decompress responses when the Accept-Encoding header was sent
+* CURLOPT_SSL_VERIFYHOST is never set to 1 because it is deprecated (see 5e0ff2ef20f839e19d1eeb298f90ba3598784444)
+* Fixed a bug where redirect responses were not chained correctly using getPreviousResponse()
+* Setting default headers on a client after setting the user-agent will not erase the user-agent setting
+
+## 3.1.1 - 2013-01-20
+
+* Adding wildcard support to Guzzle\Common\Collection::getPath()
+* Adding alias support to ServiceBuilder configs
+* Adding Guzzle\Service\Resource\CompositeResourceIteratorFactory and cleaning up factory interface
+
+## 3.1.0 - 2013-01-12
+
+* BC: CurlException now extends from RequestException rather than BadResponseException
+* BC: Renamed Guzzle\Plugin\Cache\CanCacheStrategyInterface::canCache() to canCacheRequest() and added CanCacheResponse()
+* Added getData to ServiceDescriptionInterface
+* Added context array to RequestInterface::setState()
+* Bug: Removing hard dependency on the BackoffPlugin from Guzzle\Http
+* Bug: Adding required content-type when JSON request visitor adds JSON to a command
+* Bug: Fixing the serialization of a service description with custom data
+* Made it easier to deal with exceptions thrown when transferring commands or requests in parallel by providing
+ an array of successful and failed responses
+* Moved getPath from Guzzle\Service\Resource\Model to Guzzle\Common\Collection
+* Added Guzzle\Http\IoEmittingEntityBody
+* Moved command filtration from validators to location visitors
+* Added `extends` attributes to service description parameters
+* Added getModels to ServiceDescriptionInterface
+
+## 3.0.7 - 2012-12-19
+
+* Fixing phar detection when forcing a cacert to system if null or true
+* Allowing filename to be passed to `Guzzle\Http\Message\Request::setResponseBody()`
+* Cleaning up `Guzzle\Common\Collection::inject` method
+* Adding a response_body location to service descriptions
+
+## 3.0.6 - 2012-12-09
+
+* CurlMulti performance improvements
+* Adding setErrorResponses() to Operation
+* composer.json tweaks
+
+## 3.0.5 - 2012-11-18
+
+* Bug: Fixing an infinite recursion bug caused from revalidating with the CachePlugin
+* Bug: Response body can now be a string containing "0"
+* Bug: Using Guzzle inside of a phar uses system by default but now allows for a custom cacert
+* Bug: QueryString::fromString now properly parses query string parameters that contain equal signs
+* Added support for XML attributes in service description responses
+* DefaultRequestSerializer now supports array URI parameter values for URI template expansion
+* Added better mimetype guessing to requests and post files
+
+## 3.0.4 - 2012-11-11
+
+* Bug: Fixed a bug when adding multiple cookies to a request to use the correct glue value
+* Bug: Cookies can now be added that have a name, domain, or value set to "0"
+* Bug: Using the system cacert bundle when using the Phar
+* Added json and xml methods to Response to make it easier to parse JSON and XML response data into data structures
+* Enhanced cookie jar de-duplication
+* Added the ability to enable strict cookie jars that throw exceptions when invalid cookies are added
+* Added setStream to StreamInterface to actually make it possible to implement custom rewind behavior for entity bodies
+* Added the ability to create any sort of hash for a stream rather than just an MD5 hash
+
+## 3.0.3 - 2012-11-04
+
+* Implementing redirects in PHP rather than cURL
+* Added PECL URI template extension and using as default parser if available
+* Bug: Fixed Content-Length parsing of Response factory
+* Adding rewind() method to entity bodies and streams. Allows for custom rewinding of non-repeatable streams.
+* Adding ToArrayInterface throughout library
+* Fixing OauthPlugin to create unique nonce values per request
+
+## 3.0.2 - 2012-10-25
+
+* Magic methods are enabled by default on clients
+* Magic methods return the result of a command
+* Service clients no longer require a base_url option in the factory
+* Bug: Fixed an issue with URI templates where null template variables were being expanded
+
+## 3.0.1 - 2012-10-22
+
+* Models can now be used like regular collection objects by calling filter, map, etc.
+* Models no longer require a Parameter structure or initial data in the constructor
+* Added a custom AppendIterator to get around a PHP bug with the `\AppendIterator`
+
+## 3.0.0 - 2012-10-15
+
+* Rewrote service description format to be based on Swagger
+ * Now based on JSON schema
+ * Added nested input structures and nested response models
+ * Support for JSON and XML input and output models
+ * Renamed `commands` to `operations`
+ * Removed dot class notation
+ * Removed custom types
+* Broke the project into smaller top-level namespaces to be more component friendly
+* Removed support for XML configs and descriptions. Use arrays or JSON files.
+* Removed the Validation component and Inspector
+* Moved all cookie code to Guzzle\Plugin\Cookie
+* Magic methods on a Guzzle\Service\Client now return the command un-executed.
+* Calling getResult() or getResponse() on a command will lazily execute the command if needed.
+* Now shipping with cURL's CA certs and using it by default
+* Added previousResponse() method to response objects
+* No longer sending Accept and Accept-Encoding headers on every request
+* Only sending an Expect header by default when a payload is greater than 1MB
+* Added/moved client options:
+ * curl.blacklist to curl.option.blacklist
+ * Added ssl.certificate_authority
+* Added a Guzzle\Iterator component
+* Moved plugins from Guzzle\Http\Plugin to Guzzle\Plugin
+* Added a more robust backoff retry strategy (replaced the ExponentialBackoffPlugin)
+* Added a more robust caching plugin
+* Added setBody to response objects
+* Updating LogPlugin to use a more flexible MessageFormatter
+* Added a completely revamped build process
+* Cleaning up Collection class and removing default values from the get method
+* Fixed ZF2 cache adapters
+
+## 2.8.8 - 2012-10-15
+
+* Bug: Fixed a cookie issue that caused dot prefixed domains to not match where popular browsers did
+
+## 2.8.7 - 2012-09-30
+
+* Bug: Fixed config file aliases for JSON includes
+* Bug: Fixed cookie bug on a request object by using CookieParser to parse cookies on requests
+* Bug: Removing the path to a file when sending a Content-Disposition header on a POST upload
+* Bug: Hardening request and response parsing to account for missing parts
+* Bug: Fixed PEAR packaging
+* Bug: Fixed Request::getInfo
+* Bug: Fixed cases where CURLM_CALL_MULTI_PERFORM return codes were causing curl transactions to fail
+* Adding the ability for the namespace Iterator factory to look in multiple directories
+* Added more getters/setters/removers from service descriptions
+* Added the ability to remove POST fields from OAuth signatures
+* OAuth plugin now supports 2-legged OAuth
+
+## 2.8.6 - 2012-09-05
+
+* Added the ability to modify and build service descriptions
+* Added the use of visitors to apply parameters to locations in service descriptions using the dynamic command
+* Added a `json` parameter location
+* Now allowing dot notation for classes in the CacheAdapterFactory
+* Using the union of two arrays rather than an array_merge when extending service builder services and service params
+* Ensuring that a service is a string before doing strpos() checks on it when substituting services for references
+ in service builder config files.
+* Services defined in two different config files that include one another will by default replace the previously
+ defined service, but you can now create services that extend themselves and merge their settings over the previous
+* The JsonLoader now supports aliasing filenames with different filenames. This allows you to alias something like
+ '_default' with a default JSON configuration file.
+
+## 2.8.5 - 2012-08-29
+
+* Bug: Suppressed empty arrays from URI templates
+* Bug: Added the missing $options argument from ServiceDescription::factory to enable caching
+* Added support for HTTP responses that do not contain a reason phrase in the start-line
+* AbstractCommand commands are now invokable
+* Added a way to get the data used when signing an Oauth request before a request is sent
+
+## 2.8.4 - 2012-08-15
+
+* Bug: Custom delay time calculations are no longer ignored in the ExponentialBackoffPlugin
+* Added the ability to transfer entity bodies as a string rather than streamed. This gets around curl error 65. Set `body_as_string` in a request's curl options to enable.
+* Added a StreamInterface, EntityBodyInterface, and added ftell() to Guzzle\Common\Stream
+* Added an AbstractEntityBodyDecorator and a ReadLimitEntityBody decorator to transfer only a subset of a decorated stream
+* Stream and EntityBody objects will now return the file position to the previous position after a read required operation (e.g. getContentMd5())
+* Added additional response status codes
+* Removed SSL information from the default User-Agent header
+* DELETE requests can now send an entity body
+* Added an EventDispatcher to the ExponentialBackoffPlugin and added an ExponentialBackoffLogger to log backoff retries
+* Added the ability of the MockPlugin to consume mocked request bodies
+* LogPlugin now exposes request and response objects in the extras array
+
+## 2.8.3 - 2012-07-30
+
+* Bug: Fixed a case where empty POST requests were sent as GET requests
+* Bug: Fixed a bug in ExponentialBackoffPlugin that caused fatal errors when retrying an EntityEnclosingRequest that does not have a body
+* Bug: Setting the response body of a request to null after completing a request, not when setting the state of a request to new
+* Added multiple inheritance to service description commands
+* Added an ApiCommandInterface and added `getParamNames()` and `hasParam()`
+* Removed the default 2mb size cutoff from the Md5ValidatorPlugin so that it now defaults to validating everything
+* Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles
+
+## 2.8.2 - 2012-07-24
+
+* Bug: Query string values set to 0 are no longer dropped from the query string
+* Bug: A Collection object is no longer created each time a call is made to `Guzzle\Service\Command\AbstractCommand::getRequestHeaders()`
+* Bug: `+` is now treated as an encoded space when parsing query strings
+* QueryString and Collection performance improvements
+* Allowing dot notation for class paths in filters attribute of a service descriptions
+
+## 2.8.1 - 2012-07-16
+
+* Loosening Event Dispatcher dependency
+* POST redirects can now be customized using CURLOPT_POSTREDIR
+
+## 2.8.0 - 2012-07-15
+
+* BC: Guzzle\Http\Query
+ * Query strings with empty variables will always show an equal sign unless the variable is set to QueryString::BLANK (e.g. ?acl= vs ?acl)
+ * Changed isEncodingValues() and isEncodingFields() to isUrlEncoding()
+ * Changed setEncodeValues(bool) and setEncodeFields(bool) to useUrlEncoding(bool)
+ * Changed the aggregation functions of QueryString to be static methods
+ * Can now use fromString() with querystrings that have a leading ?
+* cURL configuration values can be specified in service descriptions using `curl.` prefixed parameters
+* Content-Length is set to 0 before emitting the request.before_send event when sending an empty request body
+* Cookies are no longer URL decoded by default
+* Bug: URI template variables set to null are no longer expanded
+
+## 2.7.2 - 2012-07-02
+
+* BC: Moving things to get ready for subtree splits. Moving Inflection into Common. Moving Guzzle\Http\Parser to Guzzle\Parser.
+* BC: Removing Guzzle\Common\Batch\Batch::count() and replacing it with isEmpty()
+* CachePlugin now allows for a custom request parameter function to check if a request can be cached
+* Bug fix: CachePlugin now only caches GET and HEAD requests by default
+* Bug fix: Using header glue when transferring headers over the wire
+* Allowing deeply nested arrays for composite variables in URI templates
+* Batch divisors can now return iterators or arrays
+
+## 2.7.1 - 2012-06-26
+
+* Minor patch to update version number in UA string
+* Updating build process
+
+## 2.7.0 - 2012-06-25
+
+* BC: Inflection classes moved to Guzzle\Inflection. No longer static methods. Can now inject custom inflectors into classes.
+* BC: Removed magic setX methods from commands
+* BC: Magic methods mapped to service description commands are now inflected in the command factory rather than the client __call() method
+* Verbose cURL options are no longer enabled by default. Set curl.debug to true on a client to enable.
+* Bug: Now allowing colons in a response start-line (e.g. HTTP/1.1 503 Service Unavailable: Back-end server is at capacity)
+* Guzzle\Service\Resource\ResourceIteratorApplyBatched now internally uses the Guzzle\Common\Batch namespace
+* Added Guzzle\Service\Plugin namespace and a PluginCollectionPlugin
+* Added the ability to set POST fields and files in a service description
+* Guzzle\Http\EntityBody::factory() now accepts objects with a __toString() method
+* Adding a command.before_prepare event to clients
+* Added BatchClosureTransfer and BatchClosureDivisor
+* BatchTransferException now includes references to the batch divisor and transfer strategies
+* Fixed some tests so that they pass more reliably
+* Added Guzzle\Common\Log\ArrayLogAdapter
+
+## 2.6.6 - 2012-06-10
+
+* BC: Removing Guzzle\Http\Plugin\BatchQueuePlugin
+* BC: Removing Guzzle\Service\Command\CommandSet
+* Adding generic batching system (replaces the batch queue plugin and command set)
+* Updating ZF cache and log adapters and now using ZF's composer repository
+* Bug: Setting the name of each ApiParam when creating through an ApiCommand
+* Adding result_type, result_doc, deprecated, and doc_url to service descriptions
+* Bug: Changed the default cookie header casing back to 'Cookie'
+
+## 2.6.5 - 2012-06-03
+
+* BC: Renaming Guzzle\Http\Message\RequestInterface::getResourceUri() to getResource()
+* BC: Removing unused AUTH_BASIC and AUTH_DIGEST constants from
+* BC: Guzzle\Http\Cookie is now used to manage Set-Cookie data, not Cookie data
+* BC: Renaming methods in the CookieJarInterface
+* Moving almost all cookie logic out of the CookiePlugin and into the Cookie or CookieJar implementations
+* Making the default glue for HTTP headers ';' instead of ','
+* Adding a removeValue to Guzzle\Http\Message\Header
+* Adding getCookies() to request interface.
+* Making it easier to add event subscribers to HasDispatcherInterface classes. Can now directly call addSubscriber()
+
+## 2.6.4 - 2012-05-30
+
+* BC: Cleaning up how POST files are stored in EntityEnclosingRequest objects. Adding PostFile class.
+* BC: Moving ApiCommand specific functionality from the Inspector and on to the ApiCommand
+* Bug: Fixing magic method command calls on clients
+* Bug: Email constraint only validates strings
+* Bug: Aggregate POST fields when POST files are present in curl handle
+* Bug: Fixing default User-Agent header
+* Bug: Only appending or prepending parameters in commands if they are specified
+* Bug: Not requiring response reason phrases or status codes to match a predefined list of codes
+* Allowing the use of dot notation for class namespaces when using instance_of constraint
+* Added any_match validation constraint
+* Added an AsyncPlugin
+* Passing request object to the calculateWait method of the ExponentialBackoffPlugin
+* Allowing the result of a command object to be changed
+* Parsing location and type sub values when instantiating a service description rather than over and over at runtime
+
+## 2.6.3 - 2012-05-23
+
+* [BC] Guzzle\Common\FromConfigInterface no longer requires any config options.
+* [BC] Refactoring how POST files are stored on an EntityEnclosingRequest. They are now separate from POST fields.
+* You can now use an array of data when creating PUT request bodies in the request factory.
+* Removing the requirement that HTTPS requests needed a Cache-Control: public directive to be cacheable.
+* [Http] Adding support for Content-Type in multipart POST uploads per upload
+* [Http] Added support for uploading multiple files using the same name (foo[0], foo[1])
+* Adding more POST data operations for easier manipulation of POST data.
+* You can now set empty POST fields.
+* The body of a request is only shown on EntityEnclosingRequest objects that do not use POST files.
+* Split the Guzzle\Service\Inspector::validateConfig method into two methods. One to initialize when a command is created, and one to validate.
+* CS updates
+
+## 2.6.2 - 2012-05-19
+
+* [Http] Better handling of nested scope requests in CurlMulti. Requests are now always prepares in the send() method rather than the addRequest() method.
+
+## 2.6.1 - 2012-05-19
+
+* [BC] Removing 'path' support in service descriptions. Use 'uri'.
+* [BC] Guzzle\Service\Inspector::parseDocBlock is now protected. Adding getApiParamsForClass() with cache.
+* [BC] Removing Guzzle\Common\NullObject. Use https://github.com/mtdowling/NullObject if you need it.
+* [BC] Removing Guzzle\Common\XmlElement.
+* All commands, both dynamic and concrete, have ApiCommand objects.
+* Adding a fix for CurlMulti so that if all of the connections encounter some sort of curl error, then the loop exits.
+* Adding checks to EntityEnclosingRequest so that empty POST files and fields are ignored.
+* Making the method signature of Guzzle\Service\Builder\ServiceBuilder::factory more flexible.
+
+## 2.6.0 - 2012-05-15
+
+* [BC] Moving Guzzle\Service\Builder to Guzzle\Service\Builder\ServiceBuilder
+* [BC] Executing a Command returns the result of the command rather than the command
+* [BC] Moving all HTTP parsing logic to Guzzle\Http\Parsers. Allows for faster C implementations if needed.
+* [BC] Changing the Guzzle\Http\Message\Response::setProtocol() method to accept a protocol and version in separate args.
+* [BC] Moving ResourceIterator* to Guzzle\Service\Resource
+* [BC] Completely refactored ResourceIterators to iterate over a cloned command object
+* [BC] Moved Guzzle\Http\UriTemplate to Guzzle\Http\Parser\UriTemplate\UriTemplate
+* [BC] Guzzle\Guzzle is now deprecated
+* Moving Guzzle\Common\Guzzle::inject to Guzzle\Common\Collection::inject
+* Adding Guzzle\Version class to give version information about Guzzle
+* Adding Guzzle\Http\Utils class to provide getDefaultUserAgent() and getHttpDate()
+* Adding Guzzle\Curl\CurlVersion to manage caching curl_version() data
+* ServiceDescription and ServiceBuilder are now cacheable using similar configs
+* Changing the format of XML and JSON service builder configs. Backwards compatible.
+* Cleaned up Cookie parsing
+* Trimming the default Guzzle User-Agent header
+* Adding a setOnComplete() method to Commands that is called when a command completes
+* Keeping track of requests that were mocked in the MockPlugin
+* Fixed a caching bug in the CacheAdapterFactory
+* Inspector objects can be injected into a Command object
+* Refactoring a lot of code and tests to be case insensitive when dealing with headers
+* Adding Guzzle\Http\Message\HeaderComparison for easy comparison of HTTP headers using a DSL
+* Adding the ability to set global option overrides to service builder configs
+* Adding the ability to include other service builder config files from within XML and JSON files
+* Moving the parseQuery method out of Url and on to QueryString::fromString() as a static factory method.
+
+## 2.5.0 - 2012-05-08
+
+* Major performance improvements
+* [BC] Simplifying Guzzle\Common\Collection. Please check to see if you are using features that are now deprecated.
+* [BC] Using a custom validation system that allows a flyweight implementation for much faster validation. No longer using Symfony2 Validation component.
+* [BC] No longer supporting "{{ }}" for injecting into command or UriTemplates. Use "{}"
+* Added the ability to passed parameters to all requests created by a client
+* Added callback functionality to the ExponentialBackoffPlugin
+* Using microtime in ExponentialBackoffPlugin to allow more granular backoff strategies.
+* Rewinding request stream bodies when retrying requests
+* Exception is thrown when JSON response body cannot be decoded
+* Added configurable magic method calls to clients and commands. This is off by default.
+* Fixed a defect that added a hash to every parsed URL part
+* Fixed duplicate none generation for OauthPlugin.
+* Emitting an event each time a client is generated by a ServiceBuilder
+* Using an ApiParams object instead of a Collection for parameters of an ApiCommand
+* cache.* request parameters should be renamed to params.cache.*
+* Added the ability to set arbitrary curl options on requests (disable_wire, progress, etc.). See CurlHandle.
+* Added the ability to disable type validation of service descriptions
+* ServiceDescriptions and ServiceBuilders are now Serializable
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/LICENSE b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/LICENSE
new file mode 100644
index 00000000..ea7f07c5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011-2016 Michael Dowling, https://github.com/mtdowling <mtdowling@gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/README.md b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/README.md
new file mode 100644
index 00000000..2f614d6f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/README.md
@@ -0,0 +1,89 @@
+Guzzle, PHP HTTP client
+=======================
+
+[![Build Status](https://travis-ci.org/guzzle/guzzle.svg?branch=master)](https://travis-ci.org/guzzle/guzzle)
+
+Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and
+trivial to integrate with web services.
+
+- Simple interface for building query strings, POST requests, streaming large
+ uploads, streaming large downloads, using HTTP cookies, uploading JSON data,
+ etc...
+- Can send both synchronous and asynchronous requests using the same interface.
+- Uses PSR-7 interfaces for requests, responses, and streams. This allows you
+ to utilize other PSR-7 compatible libraries with Guzzle.
+- Abstracts away the underlying HTTP transport, allowing you to write
+ environment and transport agnostic code; i.e., no hard dependency on cURL,
+ PHP streams, sockets, or non-blocking event loops.
+- Middleware system allows you to augment and compose client behavior.
+
+```php
+$client = new \GuzzleHttp\Client();
+$res = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle');
+echo $res->getStatusCode();
+// 200
+echo $res->getHeaderLine('content-type');
+// 'application/json; charset=utf8'
+echo $res->getBody();
+// '{"id": 1420053, "name": "guzzle", ...}'
+
+// Send an asynchronous request.
+$request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org');
+$promise = $client->sendAsync($request)->then(function ($response) {
+ echo 'I completed! ' . $response->getBody();
+});
+$promise->wait();
+```
+
+## Help and docs
+
+- [Documentation](http://guzzlephp.org/)
+- [Stack Overflow](http://stackoverflow.com/questions/tagged/guzzle)
+- [Gitter](https://gitter.im/guzzle/guzzle)
+
+
+## Installing Guzzle
+
+The recommended way to install Guzzle is through
+[Composer](http://getcomposer.org).
+
+```bash
+# Install Composer
+curl -sS https://getcomposer.org/installer | php
+```
+
+Next, run the Composer command to install the latest stable version of Guzzle:
+
+```bash
+php composer.phar require guzzlehttp/guzzle
+```
+
+After installing, you need to require Composer's autoloader:
+
+```php
+require 'vendor/autoload.php';
+```
+
+You can then later update Guzzle using composer:
+
+ ```bash
+composer.phar update
+ ```
+
+
+## Version Guidance
+
+| Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version |
+|---------|------------|---------------------|--------------|---------------------|---------------------|-------|-------------|
+| 3.x | EOL | `guzzle/guzzle` | `Guzzle` | [v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >= 5.3.3 |
+| 4.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v4][guzzle-4-repo] | N/A | No | >= 5.4 |
+| 5.x | Maintained | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >= 5.4 |
+| 6.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >= 5.5 |
+
+[guzzle-3-repo]: https://github.com/guzzle/guzzle3
+[guzzle-4-repo]: https://github.com/guzzle/guzzle/tree/4.x
+[guzzle-5-repo]: https://github.com/guzzle/guzzle/tree/5.3
+[guzzle-6-repo]: https://github.com/guzzle/guzzle
+[guzzle-3-docs]: http://guzzle3.readthedocs.org/en/latest/
+[guzzle-5-docs]: http://guzzle.readthedocs.org/en/5.3/
+[guzzle-6-docs]: http://guzzle.readthedocs.org/en/latest/
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/UPGRADING.md b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/UPGRADING.md
new file mode 100644
index 00000000..91d1dcc9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/UPGRADING.md
@@ -0,0 +1,1203 @@
+Guzzle Upgrade Guide
+====================
+
+5.0 to 6.0
+----------
+
+Guzzle now uses [PSR-7](http://www.php-fig.org/psr/psr-7/) for HTTP messages.
+Due to the fact that these messages are immutable, this prompted a refactoring
+of Guzzle to use a middleware based system rather than an event system. Any
+HTTP message interaction (e.g., `GuzzleHttp\Message\Request`) need to be
+updated to work with the new immutable PSR-7 request and response objects. Any
+event listeners or subscribers need to be updated to become middleware
+functions that wrap handlers (or are injected into a
+`GuzzleHttp\HandlerStack`).
+
+- Removed `GuzzleHttp\BatchResults`
+- Removed `GuzzleHttp\Collection`
+- Removed `GuzzleHttp\HasDataTrait`
+- Removed `GuzzleHttp\ToArrayInterface`
+- The `guzzlehttp/streams` dependency has been removed. Stream functionality
+ is now present in the `GuzzleHttp\Psr7` namespace provided by the
+ `guzzlehttp/psr7` package.
+- Guzzle no longer uses ReactPHP promises and now uses the
+ `guzzlehttp/promises` library. We use a custom promise library for three
+ significant reasons:
+ 1. React promises (at the time of writing this) are recursive. Promise
+ chaining and promise resolution will eventually blow the stack. Guzzle
+ promises are not recursive as they use a sort of trampolining technique.
+ Note: there has been movement in the React project to modify promises to
+ no longer utilize recursion.
+ 2. Guzzle needs to have the ability to synchronously block on a promise to
+ wait for a result. Guzzle promises allows this functionality (and does
+ not require the use of recursion).
+ 3. Because we need to be able to wait on a result, doing so using React
+ promises requires wrapping react promises with RingPHP futures. This
+ overhead is no longer needed, reducing stack sizes, reducing complexity,
+ and improving performance.
+- `GuzzleHttp\Mimetypes` has been moved to a function in
+ `GuzzleHttp\Psr7\mimetype_from_extension` and
+ `GuzzleHttp\Psr7\mimetype_from_filename`.
+- `GuzzleHttp\Query` and `GuzzleHttp\QueryParser` have been removed. Query
+ strings must now be passed into request objects as strings, or provided to
+ the `query` request option when creating requests with clients. The `query`
+ option uses PHP's `http_build_query` to convert an array to a string. If you
+ need a different serialization technique, you will need to pass the query
+ string in as a string. There are a couple helper functions that will make
+ working with query strings easier: `GuzzleHttp\Psr7\parse_query` and
+ `GuzzleHttp\Psr7\build_query`.
+- Guzzle no longer has a dependency on RingPHP. Due to the use of a middleware
+ system based on PSR-7, using RingPHP and it's middleware system as well adds
+ more complexity than the benefits it provides. All HTTP handlers that were
+ present in RingPHP have been modified to work directly with PSR-7 messages
+ and placed in the `GuzzleHttp\Handler` namespace. This significantly reduces
+ complexity in Guzzle, removes a dependency, and improves performance. RingPHP
+ will be maintained for Guzzle 5 support, but will no longer be a part of
+ Guzzle 6.
+- As Guzzle now uses a middleware based systems the event system and RingPHP
+ integration has been removed. Note: while the event system has been removed,
+ it is possible to add your own type of event system that is powered by the
+ middleware system.
+ - Removed the `Event` namespace.
+ - Removed the `Subscriber` namespace.
+ - Removed `Transaction` class
+ - Removed `RequestFsm`
+ - Removed `RingBridge`
+ - `GuzzleHttp\Subscriber\Cookie` is now provided by
+ `GuzzleHttp\Middleware::cookies`
+ - `GuzzleHttp\Subscriber\HttpError` is now provided by
+ `GuzzleHttp\Middleware::httpError`
+ - `GuzzleHttp\Subscriber\History` is now provided by
+ `GuzzleHttp\Middleware::history`
+ - `GuzzleHttp\Subscriber\Mock` is now provided by
+ `GuzzleHttp\Handler\MockHandler`
+ - `GuzzleHttp\Subscriber\Prepare` is now provided by
+ `GuzzleHttp\PrepareBodyMiddleware`
+ - `GuzzleHttp\Subscriber\Redirect` is now provided by
+ `GuzzleHttp\RedirectMiddleware`
+- Guzzle now uses `Psr\Http\Message\UriInterface` (implements in
+ `GuzzleHttp\Psr7\Uri`) for URI support. `GuzzleHttp\Url` is now gone.
+- Static functions in `GuzzleHttp\Utils` have been moved to namespaced
+ functions under the `GuzzleHttp` namespace. This requires either a Composer
+ based autoloader or you to include functions.php.
+- `GuzzleHttp\ClientInterface::getDefaultOption` has been renamed to
+ `GuzzleHttp\ClientInterface::getConfig`.
+- `GuzzleHttp\ClientInterface::setDefaultOption` has been removed.
+- The `json` and `xml` methods of response objects has been removed. With the
+ migration to strictly adhering to PSR-7 as the interface for Guzzle messages,
+ adding methods to message interfaces would actually require Guzzle messages
+ to extend from PSR-7 messages rather then work with them directly.
+
+## Migrating to middleware
+
+The change to PSR-7 unfortunately required significant refactoring to Guzzle
+due to the fact that PSR-7 messages are immutable. Guzzle 5 relied on an event
+system from plugins. The event system relied on mutability of HTTP messages and
+side effects in order to work. With immutable messages, you have to change your
+workflow to become more about either returning a value (e.g., functional
+middlewares) or setting a value on an object. Guzzle v6 has chosen the
+functional middleware approach.
+
+Instead of using the event system to listen for things like the `before` event,
+you now create a stack based middleware function that intercepts a request on
+the way in and the promise of the response on the way out. This is a much
+simpler and more predictable approach than the event system and works nicely
+with PSR-7 middleware. Due to the use of promises, the middleware system is
+also asynchronous.
+
+v5:
+
+```php
+use GuzzleHttp\Event\BeforeEvent;
+$client = new GuzzleHttp\Client();
+// Get the emitter and listen to the before event.
+$client->getEmitter()->on('before', function (BeforeEvent $e) {
+ // Guzzle v5 events relied on mutation
+ $e->getRequest()->setHeader('X-Foo', 'Bar');
+});
+```
+
+v6:
+
+In v6, you can modify the request before it is sent using the `mapRequest`
+middleware. The idiomatic way in v6 to modify the request/response lifecycle is
+to setup a handler middleware stack up front and inject the handler into a
+client.
+
+```php
+use GuzzleHttp\Middleware;
+// Create a handler stack that has all of the default middlewares attached
+$handler = GuzzleHttp\HandlerStack::create();
+// Push the handler onto the handler stack
+$handler->push(Middleware::mapRequest(function (RequestInterface $request) {
+ // Notice that we have to return a request object
+ return $request->withHeader('X-Foo', 'Bar');
+}));
+// Inject the handler into the client
+$client = new GuzzleHttp\Client(['handler' => $handler]);
+```
+
+## POST Requests
+
+This version added the [`form_params`](http://guzzle.readthedocs.org/en/latest/request-options.html#form_params)
+and `multipart` request options. `form_params` is an associative array of
+strings or array of strings and is used to serialize an
+`application/x-www-form-urlencoded` POST request. The
+[`multipart`](http://guzzle.readthedocs.org/en/latest/request-options.html#multipart)
+option is now used to send a multipart/form-data POST request.
+
+`GuzzleHttp\Post\PostFile` has been removed. Use the `multipart` option to add
+POST files to a multipart/form-data request.
+
+The `body` option no longer accepts an array to send POST requests. Please use
+`multipart` or `form_params` instead.
+
+The `base_url` option has been renamed to `base_uri`.
+
+4.x to 5.0
+----------
+
+## Rewritten Adapter Layer
+
+Guzzle now uses [RingPHP](http://ringphp.readthedocs.org/en/latest) to send
+HTTP requests. The `adapter` option in a `GuzzleHttp\Client` constructor
+is still supported, but it has now been renamed to `handler`. Instead of
+passing a `GuzzleHttp\Adapter\AdapterInterface`, you must now pass a PHP
+`callable` that follows the RingPHP specification.
+
+## Removed Fluent Interfaces
+
+[Fluent interfaces were removed](http://ocramius.github.io/blog/fluent-interfaces-are-evil)
+from the following classes:
+
+- `GuzzleHttp\Collection`
+- `GuzzleHttp\Url`
+- `GuzzleHttp\Query`
+- `GuzzleHttp\Post\PostBody`
+- `GuzzleHttp\Cookie\SetCookie`
+
+## Removed functions.php
+
+Removed "functions.php", so that Guzzle is truly PSR-4 compliant. The following
+functions can be used as replacements.
+
+- `GuzzleHttp\json_decode` -> `GuzzleHttp\Utils::jsonDecode`
+- `GuzzleHttp\get_path` -> `GuzzleHttp\Utils::getPath`
+- `GuzzleHttp\Utils::setPath` -> `GuzzleHttp\set_path`
+- `GuzzleHttp\Pool::batch` -> `GuzzleHttp\batch`. This function is, however,
+ deprecated in favor of using `GuzzleHttp\Pool::batch()`.
+
+The "procedural" global client has been removed with no replacement (e.g.,
+`GuzzleHttp\get()`, `GuzzleHttp\post()`, etc.). Use a `GuzzleHttp\Client`
+object as a replacement.
+
+## `throwImmediately` has been removed
+
+The concept of "throwImmediately" has been removed from exceptions and error
+events. This control mechanism was used to stop a transfer of concurrent
+requests from completing. This can now be handled by throwing the exception or
+by cancelling a pool of requests or each outstanding future request
+individually.
+
+## headers event has been removed
+
+Removed the "headers" event. This event was only useful for changing the
+body a response once the headers of the response were known. You can implement
+a similar behavior in a number of ways. One example might be to use a
+FnStream that has access to the transaction being sent. For example, when the
+first byte is written, you could check if the response headers match your
+expectations, and if so, change the actual stream body that is being
+written to.
+
+## Updates to HTTP Messages
+
+Removed the `asArray` parameter from
+`GuzzleHttp\Message\MessageInterface::getHeader`. If you want to get a header
+value as an array, then use the newly added `getHeaderAsArray()` method of
+`MessageInterface`. This change makes the Guzzle interfaces compatible with
+the PSR-7 interfaces.
+
+3.x to 4.0
+----------
+
+## Overarching changes:
+
+- Now requires PHP 5.4 or greater.
+- No longer requires cURL to send requests.
+- Guzzle no longer wraps every exception it throws. Only exceptions that are
+ recoverable are now wrapped by Guzzle.
+- Various namespaces have been removed or renamed.
+- No longer requiring the Symfony EventDispatcher. A custom event dispatcher
+ based on the Symfony EventDispatcher is
+ now utilized in `GuzzleHttp\Event\EmitterInterface` (resulting in significant
+ speed and functionality improvements).
+
+Changes per Guzzle 3.x namespace are described below.
+
+## Batch
+
+The `Guzzle\Batch` namespace has been removed. This is best left to
+third-parties to implement on top of Guzzle's core HTTP library.
+
+## Cache
+
+The `Guzzle\Cache` namespace has been removed. (Todo: No suitable replacement
+has been implemented yet, but hoping to utilize a PSR cache interface).
+
+## Common
+
+- Removed all of the wrapped exceptions. It's better to use the standard PHP
+ library for unrecoverable exceptions.
+- `FromConfigInterface` has been removed.
+- `Guzzle\Common\Version` has been removed. The VERSION constant can be found
+ at `GuzzleHttp\ClientInterface::VERSION`.
+
+### Collection
+
+- `getAll` has been removed. Use `toArray` to convert a collection to an array.
+- `inject` has been removed.
+- `keySearch` has been removed.
+- `getPath` no longer supports wildcard expressions. Use something better like
+ JMESPath for this.
+- `setPath` now supports appending to an existing array via the `[]` notation.
+
+### Events
+
+Guzzle no longer requires Symfony's EventDispatcher component. Guzzle now uses
+`GuzzleHttp\Event\Emitter`.
+
+- `Symfony\Component\EventDispatcher\EventDispatcherInterface` is replaced by
+ `GuzzleHttp\Event\EmitterInterface`.
+- `Symfony\Component\EventDispatcher\EventDispatcher` is replaced by
+ `GuzzleHttp\Event\Emitter`.
+- `Symfony\Component\EventDispatcher\Event` is replaced by
+ `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in
+ `GuzzleHttp\Event\EventInterface`.
+- `AbstractHasDispatcher` has moved to a trait, `HasEmitterTrait`, and
+ `HasDispatcherInterface` has moved to `HasEmitterInterface`. Retrieving the
+ event emitter of a request, client, etc. now uses the `getEmitter` method
+ rather than the `getDispatcher` method.
+
+#### Emitter
+
+- Use the `once()` method to add a listener that automatically removes itself
+ the first time it is invoked.
+- Use the `listeners()` method to retrieve a list of event listeners rather than
+ the `getListeners()` method.
+- Use `emit()` instead of `dispatch()` to emit an event from an emitter.
+- Use `attach()` instead of `addSubscriber()` and `detach()` instead of
+ `removeSubscriber()`.
+
+```php
+$mock = new Mock();
+// 3.x
+$request->getEventDispatcher()->addSubscriber($mock);
+$request->getEventDispatcher()->removeSubscriber($mock);
+// 4.x
+$request->getEmitter()->attach($mock);
+$request->getEmitter()->detach($mock);
+```
+
+Use the `on()` method to add a listener rather than the `addListener()` method.
+
+```php
+// 3.x
+$request->getEventDispatcher()->addListener('foo', function (Event $event) { /* ... */ } );
+// 4.x
+$request->getEmitter()->on('foo', function (Event $event, $name) { /* ... */ } );
+```
+
+## Http
+
+### General changes
+
+- The cacert.pem certificate has been moved to `src/cacert.pem`.
+- Added the concept of adapters that are used to transfer requests over the
+ wire.
+- Simplified the event system.
+- Sending requests in parallel is still possible, but batching is no longer a
+ concept of the HTTP layer. Instead, you must use the `complete` and `error`
+ events to asynchronously manage parallel request transfers.
+- `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`.
+- `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`.
+- QueryAggregators have been rewritten so that they are simply callable
+ functions.
+- `GuzzleHttp\StaticClient` has been removed. Use the functions provided in
+ `functions.php` for an easy to use static client instance.
+- Exceptions in `GuzzleHttp\Exception` have been updated to all extend from
+ `GuzzleHttp\Exception\TransferException`.
+
+### Client
+
+Calling methods like `get()`, `post()`, `head()`, etc. no longer create and
+return a request, but rather creates a request, sends the request, and returns
+the response.
+
+```php
+// 3.0
+$request = $client->get('/');
+$response = $request->send();
+
+// 4.0
+$response = $client->get('/');
+
+// or, to mirror the previous behavior
+$request = $client->createRequest('GET', '/');
+$response = $client->send($request);
+```
+
+`GuzzleHttp\ClientInterface` has changed.
+
+- The `send` method no longer accepts more than one request. Use `sendAll` to
+ send multiple requests in parallel.
+- `setUserAgent()` has been removed. Use a default request option instead. You
+ could, for example, do something like:
+ `$client->setConfig('defaults/headers/User-Agent', 'Foo/Bar ' . $client::getDefaultUserAgent())`.
+- `setSslVerification()` has been removed. Use default request options instead,
+ like `$client->setConfig('defaults/verify', true)`.
+
+`GuzzleHttp\Client` has changed.
+
+- The constructor now accepts only an associative array. You can include a
+ `base_url` string or array to use a URI template as the base URL of a client.
+ You can also specify a `defaults` key that is an associative array of default
+ request options. You can pass an `adapter` to use a custom adapter,
+ `batch_adapter` to use a custom adapter for sending requests in parallel, or
+ a `message_factory` to change the factory used to create HTTP requests and
+ responses.
+- The client no longer emits a `client.create_request` event.
+- Creating requests with a client no longer automatically utilize a URI
+ template. You must pass an array into a creational method (e.g.,
+ `createRequest`, `get`, `put`, etc.) in order to expand a URI template.
+
+### Messages
+
+Messages no longer have references to their counterparts (i.e., a request no
+longer has a reference to it's response, and a response no loger has a
+reference to its request). This association is now managed through a
+`GuzzleHttp\Adapter\TransactionInterface` object. You can get references to
+these transaction objects using request events that are emitted over the
+lifecycle of a request.
+
+#### Requests with a body
+
+- `GuzzleHttp\Message\EntityEnclosingRequest` and
+ `GuzzleHttp\Message\EntityEnclosingRequestInterface` have been removed. The
+ separation between requests that contain a body and requests that do not
+ contain a body has been removed, and now `GuzzleHttp\Message\RequestInterface`
+ handles both use cases.
+- Any method that previously accepts a `GuzzleHttp\Response` object now accept a
+ `GuzzleHttp\Message\ResponseInterface`.
+- `GuzzleHttp\Message\RequestFactoryInterface` has been renamed to
+ `GuzzleHttp\Message\MessageFactoryInterface`. This interface is used to create
+ both requests and responses and is implemented in
+ `GuzzleHttp\Message\MessageFactory`.
+- POST field and file methods have been removed from the request object. You
+ must now use the methods made available to `GuzzleHttp\Post\PostBodyInterface`
+ to control the format of a POST body. Requests that are created using a
+ standard `GuzzleHttp\Message\MessageFactoryInterface` will automatically use
+ a `GuzzleHttp\Post\PostBody` body if the body was passed as an array or if
+ the method is POST and no body is provided.
+
+```php
+$request = $client->createRequest('POST', '/');
+$request->getBody()->setField('foo', 'bar');
+$request->getBody()->addFile(new PostFile('file_key', fopen('/path/to/content', 'r')));
+```
+
+#### Headers
+
+- `GuzzleHttp\Message\Header` has been removed. Header values are now simply
+ represented by an array of values or as a string. Header values are returned
+ as a string by default when retrieving a header value from a message. You can
+ pass an optional argument of `true` to retrieve a header value as an array
+ of strings instead of a single concatenated string.
+- `GuzzleHttp\PostFile` and `GuzzleHttp\PostFileInterface` have been moved to
+ `GuzzleHttp\Post`. This interface has been simplified and now allows the
+ addition of arbitrary headers.
+- Custom headers like `GuzzleHttp\Message\Header\Link` have been removed. Most
+ of the custom headers are now handled separately in specific
+ subscribers/plugins, and `GuzzleHttp\Message\HeaderValues::parseParams()` has
+ been updated to properly handle headers that contain parameters (like the
+ `Link` header).
+
+#### Responses
+
+- `GuzzleHttp\Message\Response::getInfo()` and
+ `GuzzleHttp\Message\Response::setInfo()` have been removed. Use the event
+ system to retrieve this type of information.
+- `GuzzleHttp\Message\Response::getRawHeaders()` has been removed.
+- `GuzzleHttp\Message\Response::getMessage()` has been removed.
+- `GuzzleHttp\Message\Response::calculateAge()` and other cache specific
+ methods have moved to the CacheSubscriber.
+- Header specific helper functions like `getContentMd5()` have been removed.
+ Just use `getHeader('Content-MD5')` instead.
+- `GuzzleHttp\Message\Response::setRequest()` and
+ `GuzzleHttp\Message\Response::getRequest()` have been removed. Use the event
+ system to work with request and response objects as a transaction.
+- `GuzzleHttp\Message\Response::getRedirectCount()` has been removed. Use the
+ Redirect subscriber instead.
+- `GuzzleHttp\Message\Response::isSuccessful()` and other related methods have
+ been removed. Use `getStatusCode()` instead.
+
+#### Streaming responses
+
+Streaming requests can now be created by a client directly, returning a
+`GuzzleHttp\Message\ResponseInterface` object that contains a body stream
+referencing an open PHP HTTP stream.
+
+```php
+// 3.0
+use Guzzle\Stream\PhpStreamRequestFactory;
+$request = $client->get('/');
+$factory = new PhpStreamRequestFactory();
+$stream = $factory->fromRequest($request);
+$data = $stream->read(1024);
+
+// 4.0
+$response = $client->get('/', ['stream' => true]);
+// Read some data off of the stream in the response body
+$data = $response->getBody()->read(1024);
+```
+
+#### Redirects
+
+The `configureRedirects()` method has been removed in favor of a
+`allow_redirects` request option.
+
+```php
+// Standard redirects with a default of a max of 5 redirects
+$request = $client->createRequest('GET', '/', ['allow_redirects' => true]);
+
+// Strict redirects with a custom number of redirects
+$request = $client->createRequest('GET', '/', [
+ 'allow_redirects' => ['max' => 5, 'strict' => true]
+]);
+```
+
+#### EntityBody
+
+EntityBody interfaces and classes have been removed or moved to
+`GuzzleHttp\Stream`. All classes and interfaces that once required
+`GuzzleHttp\EntityBodyInterface` now require
+`GuzzleHttp\Stream\StreamInterface`. Creating a new body for a request no
+longer uses `GuzzleHttp\EntityBody::factory` but now uses
+`GuzzleHttp\Stream\Stream::factory` or even better:
+`GuzzleHttp\Stream\create()`.
+
+- `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface`
+- `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream`
+- `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream`
+- `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream`
+- `Guzzle\Http\IoEmittyinEntityBody` has been removed.
+
+#### Request lifecycle events
+
+Requests previously submitted a large number of requests. The number of events
+emitted over the lifecycle of a request has been significantly reduced to make
+it easier to understand how to extend the behavior of a request. All events
+emitted during the lifecycle of a request now emit a custom
+`GuzzleHttp\Event\EventInterface` object that contains context providing
+methods and a way in which to modify the transaction at that specific point in
+time (e.g., intercept the request and set a response on the transaction).
+
+- `request.before_send` has been renamed to `before` and now emits a
+ `GuzzleHttp\Event\BeforeEvent`
+- `request.complete` has been renamed to `complete` and now emits a
+ `GuzzleHttp\Event\CompleteEvent`.
+- `request.sent` has been removed. Use `complete`.
+- `request.success` has been removed. Use `complete`.
+- `error` is now an event that emits a `GuzzleHttp\Event\ErrorEvent`.
+- `request.exception` has been removed. Use `error`.
+- `request.receive.status_line` has been removed.
+- `curl.callback.progress` has been removed. Use a custom `StreamInterface` to
+ maintain a status update.
+- `curl.callback.write` has been removed. Use a custom `StreamInterface` to
+ intercept writes.
+- `curl.callback.read` has been removed. Use a custom `StreamInterface` to
+ intercept reads.
+
+`headers` is a new event that is emitted after the response headers of a
+request have been received before the body of the response is downloaded. This
+event emits a `GuzzleHttp\Event\HeadersEvent`.
+
+You can intercept a request and inject a response using the `intercept()` event
+of a `GuzzleHttp\Event\BeforeEvent`, `GuzzleHttp\Event\CompleteEvent`, and
+`GuzzleHttp\Event\ErrorEvent` event.
+
+See: http://docs.guzzlephp.org/en/latest/events.html
+
+## Inflection
+
+The `Guzzle\Inflection` namespace has been removed. This is not a core concern
+of Guzzle.
+
+## Iterator
+
+The `Guzzle\Iterator` namespace has been removed.
+
+- `Guzzle\Iterator\AppendIterator`, `Guzzle\Iterator\ChunkedIterator`, and
+ `Guzzle\Iterator\MethodProxyIterator` are nice, but not a core requirement of
+ Guzzle itself.
+- `Guzzle\Iterator\FilterIterator` is no longer needed because an equivalent
+ class is shipped with PHP 5.4.
+- `Guzzle\Iterator\MapIterator` is not really needed when using PHP 5.5 because
+ it's easier to just wrap an iterator in a generator that maps values.
+
+For a replacement of these iterators, see https://github.com/nikic/iter
+
+## Log
+
+The LogPlugin has moved to https://github.com/guzzle/log-subscriber. The
+`Guzzle\Log` namespace has been removed. Guzzle now relies on
+`Psr\Log\LoggerInterface` for all logging. The MessageFormatter class has been
+moved to `GuzzleHttp\Subscriber\Log\Formatter`.
+
+## Parser
+
+The `Guzzle\Parser` namespace has been removed. This was previously used to
+make it possible to plug in custom parsers for cookies, messages, URI
+templates, and URLs; however, this level of complexity is not needed in Guzzle
+so it has been removed.
+
+- Cookie: Cookie parsing logic has been moved to
+ `GuzzleHttp\Cookie\SetCookie::fromString`.
+- Message: Message parsing logic for both requests and responses has been moved
+ to `GuzzleHttp\Message\MessageFactory::fromMessage`. Message parsing is only
+ used in debugging or deserializing messages, so it doesn't make sense for
+ Guzzle as a library to add this level of complexity to parsing messages.
+- UriTemplate: URI template parsing has been moved to
+ `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL
+ URI template library if it is installed.
+- Url: URL parsing is now performed in `GuzzleHttp\Url::fromString` (previously
+ it was `Guzzle\Http\Url::factory()`). If custom URL parsing is necessary,
+ then developers are free to subclass `GuzzleHttp\Url`.
+
+## Plugin
+
+The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`.
+Several plugins are shipping with the core Guzzle library under this namespace.
+
+- `GuzzleHttp\Subscriber\Cookie`: Replaces the old CookiePlugin. Cookie jar
+ code has moved to `GuzzleHttp\Cookie`.
+- `GuzzleHttp\Subscriber\History`: Replaces the old HistoryPlugin.
+- `GuzzleHttp\Subscriber\HttpError`: Throws errors when a bad HTTP response is
+ received.
+- `GuzzleHttp\Subscriber\Mock`: Replaces the old MockPlugin.
+- `GuzzleHttp\Subscriber\Prepare`: Prepares the body of a request just before
+ sending. This subscriber is attached to all requests by default.
+- `GuzzleHttp\Subscriber\Redirect`: Replaces the RedirectPlugin.
+
+The following plugins have been removed (third-parties are free to re-implement
+these if needed):
+
+- `GuzzleHttp\Plugin\Async` has been removed.
+- `GuzzleHttp\Plugin\CurlAuth` has been removed.
+- `GuzzleHttp\Plugin\ErrorResponse\ErrorResponsePlugin` has been removed. This
+ functionality should instead be implemented with event listeners that occur
+ after normal response parsing occurs in the guzzle/command package.
+
+The following plugins are not part of the core Guzzle package, but are provided
+in separate repositories:
+
+- `Guzzle\Http\Plugin\BackoffPlugin` has been rewritten to be much simpler
+ to build custom retry policies using simple functions rather than various
+ chained classes. See: https://github.com/guzzle/retry-subscriber
+- `Guzzle\Http\Plugin\Cache\CachePlugin` has moved to
+ https://github.com/guzzle/cache-subscriber
+- `Guzzle\Http\Plugin\Log\LogPlugin` has moved to
+ https://github.com/guzzle/log-subscriber
+- `Guzzle\Http\Plugin\Md5\Md5Plugin` has moved to
+ https://github.com/guzzle/message-integrity-subscriber
+- `Guzzle\Http\Plugin\Mock\MockPlugin` has moved to
+ `GuzzleHttp\Subscriber\MockSubscriber`.
+- `Guzzle\Http\Plugin\Oauth\OauthPlugin` has moved to
+ https://github.com/guzzle/oauth-subscriber
+
+## Service
+
+The service description layer of Guzzle has moved into two separate packages:
+
+- http://github.com/guzzle/command Provides a high level abstraction over web
+ services by representing web service operations using commands.
+- http://github.com/guzzle/guzzle-services Provides an implementation of
+ guzzle/command that provides request serialization and response parsing using
+ Guzzle service descriptions.
+
+## Stream
+
+Stream have moved to a separate package available at
+https://github.com/guzzle/streams.
+
+`Guzzle\Stream\StreamInterface` has been given a large update to cleanly take
+on the responsibilities of `Guzzle\Http\EntityBody` and
+`Guzzle\Http\EntityBodyInterface` now that they have been removed. The number
+of methods implemented by the `StreamInterface` has been drastically reduced to
+allow developers to more easily extend and decorate stream behavior.
+
+## Removed methods from StreamInterface
+
+- `getStream` and `setStream` have been removed to better encapsulate streams.
+- `getMetadata` and `setMetadata` have been removed in favor of
+ `GuzzleHttp\Stream\MetadataStreamInterface`.
+- `getWrapper`, `getWrapperData`, `getStreamType`, and `getUri` have all been
+ removed. This data is accessible when
+ using streams that implement `GuzzleHttp\Stream\MetadataStreamInterface`.
+- `rewind` has been removed. Use `seek(0)` for a similar behavior.
+
+## Renamed methods
+
+- `detachStream` has been renamed to `detach`.
+- `feof` has been renamed to `eof`.
+- `ftell` has been renamed to `tell`.
+- `readLine` has moved from an instance method to a static class method of
+ `GuzzleHttp\Stream\Stream`.
+
+## Metadata streams
+
+`GuzzleHttp\Stream\MetadataStreamInterface` has been added to denote streams
+that contain additional metadata accessible via `getMetadata()`.
+`GuzzleHttp\Stream\StreamInterface::getMetadata` and
+`GuzzleHttp\Stream\StreamInterface::setMetadata` have been removed.
+
+## StreamRequestFactory
+
+The entire concept of the StreamRequestFactory has been removed. The way this
+was used in Guzzle 3 broke the actual interface of sending streaming requests
+(instead of getting back a Response, you got a StreamInterface). Streaming
+PHP requests are now implemented through the `GuzzleHttp\Adapter\StreamAdapter`.
+
+3.6 to 3.7
+----------
+
+### Deprecations
+
+- You can now enable E_USER_DEPRECATED warnings to see if you are using any deprecated methods.:
+
+```php
+\Guzzle\Common\Version::$emitWarnings = true;
+```
+
+The following APIs and options have been marked as deprecated:
+
+- Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->getResponseBody()->isRepeatable()` instead.
+- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead.
+- Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultCanCacheStrategy->canCacheRequest()` instead.
+- Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instead.
+- Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead.
+- Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated
+- Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer be disabled on a Guzzle\Service\Client.
+- Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent encode your UTF-8.
+- Marked `Guzzle\Common\Collection::inject()` as deprecated.
+- Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use
+ `$client->getConfig()->setPath('request.options/auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));` or
+ `$client->setDefaultOption('auth', array('user', 'pass', 'Basic|Digest|NTLM|Any'));`
+
+3.7 introduces `request.options` as a parameter for a client configuration and as an optional argument to all creational
+request methods. When paired with a client's configuration settings, these options allow you to specify default settings
+for various aspects of a request. Because these options make other previous configuration options redundant, several
+configuration options and methods of a client and AbstractCommand have been deprecated.
+
+- Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption('headers')`.
+- Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption('headers/{header_name}', 'value')`.
+- Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('params/{param_name}', 'value')`
+- Marked 'command.headers', 'command.response_body' and 'command.on_complete' as deprecated for AbstractCommand. These will work through Guzzle 4.0
+
+ $command = $client->getCommand('foo', array(
+ 'command.headers' => array('Test' => '123'),
+ 'command.response_body' => '/path/to/file'
+ ));
+
+ // Should be changed to:
+
+ $command = $client->getCommand('foo', array(
+ 'command.request_options' => array(
+ 'headers' => array('Test' => '123'),
+ 'save_as' => '/path/to/file'
+ )
+ ));
+
+### Interface changes
+
+Additions and changes (you will need to update any implementations or subclasses you may have created):
+
+- Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`:
+ createRequest, head, delete, put, patch, post, options, prepareRequest
+- Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::createRequest()`
+- Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface`
+- Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to
+ `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can still pass in a
+ resource, string, or EntityBody into the $options parameter to specify the download location of the response.
+- Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$data` but a
+ default `array()`
+- Added `Guzzle\Stream\StreamInterface::isRepeatable`
+- Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods.
+
+The following methods were removed from interfaces. All of these methods are still available in the concrete classes
+that implement them, but you should update your code to use alternative methods:
+
+- Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use
+ `$client->getConfig()->setPath('request.options/headers/{header_name}', 'value')`. or
+ `$client->getConfig()->setPath('request.options/headers', array('header_name' => 'value'))` or
+ `$client->setDefaultOption('headers/{header_name}', 'value')`. or
+ `$client->setDefaultOption('headers', array('header_name' => 'value'))`.
+- Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('request.options/headers')`.
+- Removed `Guzzle\Http\ClientInterface::expandTemplate()`. This is an implementation detail.
+- Removed `Guzzle\Http\ClientInterface::setRequestFactory()`. This is an implementation detail.
+- Removed `Guzzle\Http\ClientInterface::getCurlMulti()`. This is a very specific implementation detail.
+- Removed `Guzzle\Http\Message\RequestInterface::canCache`. Use the CachePlugin.
+- Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`. Use the HistoryPlugin.
+- Removed `Guzzle\Http\Message\RequestInterface::isRedirect`. Use the HistoryPlugin.
+
+### Cache plugin breaking changes
+
+- CacheKeyProviderInterface and DefaultCacheKeyProvider are no longer used. All of this logic is handled in a
+ CacheStorageInterface. These two objects and interface will be removed in a future version.
+- Always setting X-cache headers on cached responses
+- Default cache TTLs are now handled by the CacheStorageInterface of a CachePlugin
+- `CacheStorageInterface::cache($key, Response $response, $ttl = null)` has changed to `cache(RequestInterface
+ $request, Response $response);`
+- `CacheStorageInterface::fetch($key)` has changed to `fetch(RequestInterface $request);`
+- `CacheStorageInterface::delete($key)` has changed to `delete(RequestInterface $request);`
+- Added `CacheStorageInterface::purge($url)`
+- `DefaultRevalidation::__construct(CacheKeyProviderInterface $cacheKey, CacheStorageInterface $cache, CachePlugin
+ $plugin)` has changed to `DefaultRevalidation::__construct(CacheStorageInterface $cache,
+ CanCacheStrategyInterface $canCache = null)`
+- Added `RevalidationInterface::shouldRevalidate(RequestInterface $request, Response $response)`
+
+3.5 to 3.6
+----------
+
+* Mixed casing of headers are now forced to be a single consistent casing across all values for that header.
+* Messages internally use a HeaderCollection object to delegate handling case-insensitive header resolution
+* Removed the whole changedHeader() function system of messages because all header changes now go through addHeader().
+ For example, setHeader() first removes the header using unset on a HeaderCollection and then calls addHeader().
+ Keeping the Host header and URL host in sync is now handled by overriding the addHeader method in Request.
+* Specific header implementations can be created for complex headers. When a message creates a header, it uses a
+ HeaderFactory which can map specific headers to specific header classes. There is now a Link header and
+ CacheControl header implementation.
+* Moved getLinks() from Response to just be used on a Link header object.
+
+If you previously relied on Guzzle\Http\Message\Header::raw(), then you will need to update your code to use the
+HeaderInterface (e.g. toArray(), getAll(), etc.).
+
+### Interface changes
+
+* Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate
+* Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti()
+* Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in
+ Guzzle\Http\Curl\RequestMediator
+* Removed the optional $asString parameter from MessageInterface::getHeader(). Just cast the header to a string.
+* Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestInterface
+* Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders()
+
+### Removed deprecated functions
+
+* Removed Guzzle\Parser\ParserRegister::get(). Use getParser()
+* Removed Guzzle\Parser\ParserRegister::set(). Use registerParser().
+
+### Deprecations
+
+* The ability to case-insensitively search for header values
+* Guzzle\Http\Message\Header::hasExactHeader
+* Guzzle\Http\Message\Header::raw. Use getAll()
+* Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheControl header object
+ instead.
+
+### Other changes
+
+* All response header helper functions return a string rather than mixing Header objects and strings inconsistently
+* Removed cURL blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle
+ directly via interfaces
+* Removed the injecting of a request object onto a response object. The methods to get and set a request still exist
+ but are a no-op until removed.
+* Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now request a
+ `Guzzle\Service\Command\ArrayCommandInterface`.
+* Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle injecting a response
+ on a request while the request is still being transferred
+* `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess
+
+3.3 to 3.4
+----------
+
+Base URLs of a client now follow the rules of http://tools.ietf.org/html/rfc3986#section-5.2.2 when merging URLs.
+
+3.2 to 3.3
+----------
+
+### Response::getEtag() quote stripping removed
+
+`Guzzle\Http\Message\Response::getEtag()` no longer strips quotes around the ETag response header
+
+### Removed `Guzzle\Http\Utils`
+
+The `Guzzle\Http\Utils` class was removed. This class was only used for testing.
+
+### Stream wrapper and type
+
+`Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getStreamType()` are no longer converted to lowercase.
+
+### curl.emit_io became emit_io
+
+Emitting IO events from a RequestMediator is now a parameter that must be set in a request's curl options using the
+'emit_io' key. This was previously set under a request's parameters using 'curl.emit_io'
+
+3.1 to 3.2
+----------
+
+### CurlMulti is no longer reused globally
+
+Before 3.2, the same CurlMulti object was reused globally for each client. This can cause issue where plugins added
+to a single client can pollute requests dispatched from other clients.
+
+If you still wish to reuse the same CurlMulti object with each client, then you can add a listener to the
+ServiceBuilder's `service_builder.create_client` event to inject a custom CurlMulti object into each client as it is
+created.
+
+```php
+$multi = new Guzzle\Http\Curl\CurlMulti();
+$builder = Guzzle\Service\Builder\ServiceBuilder::factory('/path/to/config.json');
+$builder->addListener('service_builder.create_client', function ($event) use ($multi) {
+ $event['client']->setCurlMulti($multi);
+}
+});
+```
+
+### No default path
+
+URLs no longer have a default path value of '/' if no path was specified.
+
+Before:
+
+```php
+$request = $client->get('http://www.foo.com');
+echo $request->getUrl();
+// >> http://www.foo.com/
+```
+
+After:
+
+```php
+$request = $client->get('http://www.foo.com');
+echo $request->getUrl();
+// >> http://www.foo.com
+```
+
+### Less verbose BadResponseException
+
+The exception message for `Guzzle\Http\Exception\BadResponseException` no longer contains the full HTTP request and
+response information. You can, however, get access to the request and response object by calling `getRequest()` or
+`getResponse()` on the exception object.
+
+### Query parameter aggregation
+
+Multi-valued query parameters are no longer aggregated using a callback function. `Guzzle\Http\Query` now has a
+setAggregator() method that accepts a `Guzzle\Http\QueryAggregator\QueryAggregatorInterface` object. This object is
+responsible for handling the aggregation of multi-valued query string variables into a flattened hash.
+
+2.8 to 3.x
+----------
+
+### Guzzle\Service\Inspector
+
+Change `\Guzzle\Service\Inspector::fromConfig` to `\Guzzle\Common\Collection::fromConfig`
+
+**Before**
+
+```php
+use Guzzle\Service\Inspector;
+
+class YourClient extends \Guzzle\Service\Client
+{
+ public static function factory($config = array())
+ {
+ $default = array();
+ $required = array('base_url', 'username', 'api_key');
+ $config = Inspector::fromConfig($config, $default, $required);
+
+ $client = new self(
+ $config->get('base_url'),
+ $config->get('username'),
+ $config->get('api_key')
+ );
+ $client->setConfig($config);
+
+ $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json'));
+
+ return $client;
+ }
+```
+
+**After**
+
+```php
+use Guzzle\Common\Collection;
+
+class YourClient extends \Guzzle\Service\Client
+{
+ public static function factory($config = array())
+ {
+ $default = array();
+ $required = array('base_url', 'username', 'api_key');
+ $config = Collection::fromConfig($config, $default, $required);
+
+ $client = new self(
+ $config->get('base_url'),
+ $config->get('username'),
+ $config->get('api_key')
+ );
+ $client->setConfig($config);
+
+ $client->setDescription(ServiceDescription::factory(__DIR__ . DIRECTORY_SEPARATOR . 'client.json'));
+
+ return $client;
+ }
+```
+
+### Convert XML Service Descriptions to JSON
+
+**Before**
+
+```xml
+<?xml version="1.0" encoding="UTF-8"?>
+<client>
+ <commands>
+ <!-- Groups -->
+ <command name="list_groups" method="GET" uri="groups.json">
+ <doc>Get a list of groups</doc>
+ </command>
+ <command name="search_groups" method="GET" uri='search.json?query="{{query}} type:group"'>
+ <doc>Uses a search query to get a list of groups</doc>
+ <param name="query" type="string" required="true" />
+ </command>
+ <command name="create_group" method="POST" uri="groups.json">
+ <doc>Create a group</doc>
+ <param name="data" type="array" location="body" filters="json_encode" doc="Group JSON"/>
+ <param name="Content-Type" location="header" static="application/json"/>
+ </command>
+ <command name="delete_group" method="DELETE" uri="groups/{{id}}.json">
+ <doc>Delete a group by ID</doc>
+ <param name="id" type="integer" required="true"/>
+ </command>
+ <command name="get_group" method="GET" uri="groups/{{id}}.json">
+ <param name="id" type="integer" required="true"/>
+ </command>
+ <command name="update_group" method="PUT" uri="groups/{{id}}.json">
+ <doc>Update a group</doc>
+ <param name="id" type="integer" required="true"/>
+ <param name="data" type="array" location="body" filters="json_encode" doc="Group JSON"/>
+ <param name="Content-Type" location="header" static="application/json"/>
+ </command>
+ </commands>
+</client>
+```
+
+**After**
+
+```json
+{
+ "name": "Zendesk REST API v2",
+ "apiVersion": "2012-12-31",
+ "description":"Provides access to Zendesk views, groups, tickets, ticket fields, and users",
+ "operations": {
+ "list_groups": {
+ "httpMethod":"GET",
+ "uri": "groups.json",
+ "summary": "Get a list of groups"
+ },
+ "search_groups":{
+ "httpMethod":"GET",
+ "uri": "search.json?query=\"{query} type:group\"",
+ "summary": "Uses a search query to get a list of groups",
+ "parameters":{
+ "query":{
+ "location": "uri",
+ "description":"Zendesk Search Query",
+ "type": "string",
+ "required": true
+ }
+ }
+ },
+ "create_group": {
+ "httpMethod":"POST",
+ "uri": "groups.json",
+ "summary": "Create a group",
+ "parameters":{
+ "data": {
+ "type": "array",
+ "location": "body",
+ "description":"Group JSON",
+ "filters": "json_encode",
+ "required": true
+ },
+ "Content-Type":{
+ "type": "string",
+ "location":"header",
+ "static": "application/json"
+ }
+ }
+ },
+ "delete_group": {
+ "httpMethod":"DELETE",
+ "uri": "groups/{id}.json",
+ "summary": "Delete a group",
+ "parameters":{
+ "id":{
+ "location": "uri",
+ "description":"Group to delete by ID",
+ "type": "integer",
+ "required": true
+ }
+ }
+ },
+ "get_group": {
+ "httpMethod":"GET",
+ "uri": "groups/{id}.json",
+ "summary": "Get a ticket",
+ "parameters":{
+ "id":{
+ "location": "uri",
+ "description":"Group to get by ID",
+ "type": "integer",
+ "required": true
+ }
+ }
+ },
+ "update_group": {
+ "httpMethod":"PUT",
+ "uri": "groups/{id}.json",
+ "summary": "Update a group",
+ "parameters":{
+ "id": {
+ "location": "uri",
+ "description":"Group to update by ID",
+ "type": "integer",
+ "required": true
+ },
+ "data": {
+ "type": "array",
+ "location": "body",
+ "description":"Group JSON",
+ "filters": "json_encode",
+ "required": true
+ },
+ "Content-Type":{
+ "type": "string",
+ "location":"header",
+ "static": "application/json"
+ }
+ }
+ }
+}
+```
+
+### Guzzle\Service\Description\ServiceDescription
+
+Commands are now called Operations
+
+**Before**
+
+```php
+use Guzzle\Service\Description\ServiceDescription;
+
+$sd = new ServiceDescription();
+$sd->getCommands(); // @returns ApiCommandInterface[]
+$sd->hasCommand($name);
+$sd->getCommand($name); // @returns ApiCommandInterface|null
+$sd->addCommand($command); // @param ApiCommandInterface $command
+```
+
+**After**
+
+```php
+use Guzzle\Service\Description\ServiceDescription;
+
+$sd = new ServiceDescription();
+$sd->getOperations(); // @returns OperationInterface[]
+$sd->hasOperation($name);
+$sd->getOperation($name); // @returns OperationInterface|null
+$sd->addOperation($operation); // @param OperationInterface $operation
+```
+
+### Guzzle\Common\Inflection\Inflector
+
+Namespace is now `Guzzle\Inflection\Inflector`
+
+### Guzzle\Http\Plugin
+
+Namespace is now `Guzzle\Plugin`. Many other changes occur within this namespace and are detailed in their own sections below.
+
+### Guzzle\Http\Plugin\LogPlugin and Guzzle\Common\Log
+
+Now `Guzzle\Plugin\Log\LogPlugin` and `Guzzle\Log` respectively.
+
+**Before**
+
+```php
+use Guzzle\Common\Log\ClosureLogAdapter;
+use Guzzle\Http\Plugin\LogPlugin;
+
+/** @var \Guzzle\Http\Client */
+$client;
+
+// $verbosity is an integer indicating desired message verbosity level
+$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $verbosity = LogPlugin::LOG_VERBOSE);
+```
+
+**After**
+
+```php
+use Guzzle\Log\ClosureLogAdapter;
+use Guzzle\Log\MessageFormatter;
+use Guzzle\Plugin\Log\LogPlugin;
+
+/** @var \Guzzle\Http\Client */
+$client;
+
+// $format is a string indicating desired message format -- @see MessageFormatter
+$client->addSubscriber(new LogPlugin(new ClosureLogAdapter(function($m) { echo $m; }, $format = MessageFormatter::DEBUG_FORMAT);
+```
+
+### Guzzle\Http\Plugin\CurlAuthPlugin
+
+Now `Guzzle\Plugin\CurlAuth\CurlAuthPlugin`.
+
+### Guzzle\Http\Plugin\ExponentialBackoffPlugin
+
+Now `Guzzle\Plugin\Backoff\BackoffPlugin`, and other changes.
+
+**Before**
+
+```php
+use Guzzle\Http\Plugin\ExponentialBackoffPlugin;
+
+$backoffPlugin = new ExponentialBackoffPlugin($maxRetries, array_merge(
+ ExponentialBackoffPlugin::getDefaultFailureCodes(), array(429)
+ ));
+
+$client->addSubscriber($backoffPlugin);
+```
+
+**After**
+
+```php
+use Guzzle\Plugin\Backoff\BackoffPlugin;
+use Guzzle\Plugin\Backoff\HttpBackoffStrategy;
+
+// Use convenient factory method instead -- see implementation for ideas of what
+// you can do with chaining backoff strategies
+$backoffPlugin = BackoffPlugin::getExponentialBackoff($maxRetries, array_merge(
+ HttpBackoffStrategy::getDefaultFailureCodes(), array(429)
+ ));
+$client->addSubscriber($backoffPlugin);
+```
+
+### Known Issues
+
+#### [BUG] Accept-Encoding header behavior changed unintentionally.
+
+(See #217) (Fixed in 09daeb8c666fb44499a0646d655a8ae36456575e)
+
+In version 2.8 setting the `Accept-Encoding` header would set the CURLOPT_ENCODING option, which permitted cURL to
+properly handle gzip/deflate compressed responses from the server. In versions affected by this bug this does not happen.
+See issue #217 for a workaround, or use a version containing the fix.
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/composer.json b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/composer.json
new file mode 100644
index 00000000..65687a58
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/composer.json
@@ -0,0 +1,44 @@
+{
+ "name": "guzzlehttp/guzzle",
+ "type": "library",
+ "description": "Guzzle is a PHP HTTP client library",
+ "keywords": ["framework", "http", "rest", "web service", "curl", "client", "HTTP client"],
+ "homepage": "http://guzzlephp.org/",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ }
+ ],
+ "require": {
+ "php": ">=5.5",
+ "guzzlehttp/psr7": "^1.4",
+ "guzzlehttp/promises": "^1.0"
+ },
+ "require-dev": {
+ "ext-curl": "*",
+ "phpunit/phpunit": "^4.0 || ^5.0",
+ "psr/log": "^1.0"
+ },
+ "autoload": {
+ "files": ["src/functions_include.php"],
+ "psr-4": {
+ "GuzzleHttp\\": "src/"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "GuzzleHttp\\Tests\\": "tests/"
+ }
+ },
+ "suggest": {
+ "psr/log": "Required for using the Log middleware"
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "6.2-dev"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Client.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Client.php
new file mode 100644
index 00000000..de4df8a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Client.php
@@ -0,0 +1,414 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Cookie\CookieJar;
+use GuzzleHttp\Promise;
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\UriInterface;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * @method ResponseInterface get(string|UriInterface $uri, array $options = [])
+ * @method ResponseInterface head(string|UriInterface $uri, array $options = [])
+ * @method ResponseInterface put(string|UriInterface $uri, array $options = [])
+ * @method ResponseInterface post(string|UriInterface $uri, array $options = [])
+ * @method ResponseInterface patch(string|UriInterface $uri, array $options = [])
+ * @method ResponseInterface delete(string|UriInterface $uri, array $options = [])
+ * @method Promise\PromiseInterface getAsync(string|UriInterface $uri, array $options = [])
+ * @method Promise\PromiseInterface headAsync(string|UriInterface $uri, array $options = [])
+ * @method Promise\PromiseInterface putAsync(string|UriInterface $uri, array $options = [])
+ * @method Promise\PromiseInterface postAsync(string|UriInterface $uri, array $options = [])
+ * @method Promise\PromiseInterface patchAsync(string|UriInterface $uri, array $options = [])
+ * @method Promise\PromiseInterface deleteAsync(string|UriInterface $uri, array $options = [])
+ */
+class Client implements ClientInterface
+{
+ /** @var array Default request options */
+ private $config;
+
+ /**
+ * Clients accept an array of constructor parameters.
+ *
+ * Here's an example of creating a client using a base_uri and an array of
+ * default request options to apply to each request:
+ *
+ * $client = new Client([
+ * 'base_uri' => 'http://www.foo.com/1.0/',
+ * 'timeout' => 0,
+ * 'allow_redirects' => false,
+ * 'proxy' => '192.168.16.1:10'
+ * ]);
+ *
+ * Client configuration settings include the following options:
+ *
+ * - handler: (callable) Function that transfers HTTP requests over the
+ * wire. The function is called with a Psr7\Http\Message\RequestInterface
+ * and array of transfer options, and must return a
+ * GuzzleHttp\Promise\PromiseInterface that is fulfilled with a
+ * Psr7\Http\Message\ResponseInterface on success. "handler" is a
+ * constructor only option that cannot be overridden in per/request
+ * options. If no handler is provided, a default handler will be created
+ * that enables all of the request options below by attaching all of the
+ * default middleware to the handler.
+ * - base_uri: (string|UriInterface) Base URI of the client that is merged
+ * into relative URIs. Can be a string or instance of UriInterface.
+ * - **: any request option
+ *
+ * @param array $config Client configuration settings.
+ *
+ * @see \GuzzleHttp\RequestOptions for a list of available request options.
+ */
+ public function __construct(array $config = [])
+ {
+ if (!isset($config['handler'])) {
+ $config['handler'] = HandlerStack::create();
+ } elseif (!is_callable($config['handler'])) {
+ throw new \InvalidArgumentException('handler must be a callable');
+ }
+
+ // Convert the base_uri to a UriInterface
+ if (isset($config['base_uri'])) {
+ $config['base_uri'] = Psr7\uri_for($config['base_uri']);
+ }
+
+ $this->configureDefaults($config);
+ }
+
+ public function __call($method, $args)
+ {
+ if (count($args) < 1) {
+ throw new \InvalidArgumentException('Magic request methods require a URI and optional options array');
+ }
+
+ $uri = $args[0];
+ $opts = isset($args[1]) ? $args[1] : [];
+
+ return substr($method, -5) === 'Async'
+ ? $this->requestAsync(substr($method, 0, -5), $uri, $opts)
+ : $this->request($method, $uri, $opts);
+ }
+
+ public function sendAsync(RequestInterface $request, array $options = [])
+ {
+ // Merge the base URI into the request URI if needed.
+ $options = $this->prepareDefaults($options);
+
+ return $this->transfer(
+ $request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')),
+ $options
+ );
+ }
+
+ public function send(RequestInterface $request, array $options = [])
+ {
+ $options[RequestOptions::SYNCHRONOUS] = true;
+ return $this->sendAsync($request, $options)->wait();
+ }
+
+ public function requestAsync($method, $uri = '', array $options = [])
+ {
+ $options = $this->prepareDefaults($options);
+ // Remove request modifying parameter because it can be done up-front.
+ $headers = isset($options['headers']) ? $options['headers'] : [];
+ $body = isset($options['body']) ? $options['body'] : null;
+ $version = isset($options['version']) ? $options['version'] : '1.1';
+ // Merge the URI into the base URI.
+ $uri = $this->buildUri($uri, $options);
+ if (is_array($body)) {
+ $this->invalidBody();
+ }
+ $request = new Psr7\Request($method, $uri, $headers, $body, $version);
+ // Remove the option so that they are not doubly-applied.
+ unset($options['headers'], $options['body'], $options['version']);
+
+ return $this->transfer($request, $options);
+ }
+
+ public function request($method, $uri = '', array $options = [])
+ {
+ $options[RequestOptions::SYNCHRONOUS] = true;
+ return $this->requestAsync($method, $uri, $options)->wait();
+ }
+
+ public function getConfig($option = null)
+ {
+ return $option === null
+ ? $this->config
+ : (isset($this->config[$option]) ? $this->config[$option] : null);
+ }
+
+ private function buildUri($uri, array $config)
+ {
+ // for BC we accept null which would otherwise fail in uri_for
+ $uri = Psr7\uri_for($uri === null ? '' : $uri);
+
+ if (isset($config['base_uri'])) {
+ $uri = Psr7\UriResolver::resolve(Psr7\uri_for($config['base_uri']), $uri);
+ }
+
+ return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri;
+ }
+
+ /**
+ * Configures the default options for a client.
+ *
+ * @param array $config
+ */
+ private function configureDefaults(array $config)
+ {
+ $defaults = [
+ 'allow_redirects' => RedirectMiddleware::$defaultSettings,
+ 'http_errors' => true,
+ 'decode_content' => true,
+ 'verify' => true,
+ 'cookies' => false
+ ];
+
+ // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set.
+
+ // We can only trust the HTTP_PROXY environment variable in a CLI
+ // process due to the fact that PHP has no reliable mechanism to
+ // get environment variables that start with "HTTP_".
+ if (php_sapi_name() == 'cli' && getenv('HTTP_PROXY')) {
+ $defaults['proxy']['http'] = getenv('HTTP_PROXY');
+ }
+
+ if ($proxy = getenv('HTTPS_PROXY')) {
+ $defaults['proxy']['https'] = $proxy;
+ }
+
+ if ($noProxy = getenv('NO_PROXY')) {
+ $cleanedNoProxy = str_replace(' ', '', $noProxy);
+ $defaults['proxy']['no'] = explode(',', $cleanedNoProxy);
+ }
+
+ $this->config = $config + $defaults;
+
+ if (!empty($config['cookies']) && $config['cookies'] === true) {
+ $this->config['cookies'] = new CookieJar();
+ }
+
+ // Add the default user-agent header.
+ if (!isset($this->config['headers'])) {
+ $this->config['headers'] = ['User-Agent' => default_user_agent()];
+ } else {
+ // Add the User-Agent header if one was not already set.
+ foreach (array_keys($this->config['headers']) as $name) {
+ if (strtolower($name) === 'user-agent') {
+ return;
+ }
+ }
+ $this->config['headers']['User-Agent'] = default_user_agent();
+ }
+ }
+
+ /**
+ * Merges default options into the array.
+ *
+ * @param array $options Options to modify by reference
+ *
+ * @return array
+ */
+ private function prepareDefaults($options)
+ {
+ $defaults = $this->config;
+
+ if (!empty($defaults['headers'])) {
+ // Default headers are only added if they are not present.
+ $defaults['_conditional'] = $defaults['headers'];
+ unset($defaults['headers']);
+ }
+
+ // Special handling for headers is required as they are added as
+ // conditional headers and as headers passed to a request ctor.
+ if (array_key_exists('headers', $options)) {
+ // Allows default headers to be unset.
+ if ($options['headers'] === null) {
+ $defaults['_conditional'] = null;
+ unset($options['headers']);
+ } elseif (!is_array($options['headers'])) {
+ throw new \InvalidArgumentException('headers must be an array');
+ }
+ }
+
+ // Shallow merge defaults underneath options.
+ $result = $options + $defaults;
+
+ // Remove null values.
+ foreach ($result as $k => $v) {
+ if ($v === null) {
+ unset($result[$k]);
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * Transfers the given request and applies request options.
+ *
+ * The URI of the request is not modified and the request options are used
+ * as-is without merging in default options.
+ *
+ * @param RequestInterface $request
+ * @param array $options
+ *
+ * @return Promise\PromiseInterface
+ */
+ private function transfer(RequestInterface $request, array $options)
+ {
+ // save_to -> sink
+ if (isset($options['save_to'])) {
+ $options['sink'] = $options['save_to'];
+ unset($options['save_to']);
+ }
+
+ // exceptions -> http_errors
+ if (isset($options['exceptions'])) {
+ $options['http_errors'] = $options['exceptions'];
+ unset($options['exceptions']);
+ }
+
+ $request = $this->applyOptions($request, $options);
+ $handler = $options['handler'];
+
+ try {
+ return Promise\promise_for($handler($request, $options));
+ } catch (\Exception $e) {
+ return Promise\rejection_for($e);
+ }
+ }
+
+ /**
+ * Applies the array of request options to a request.
+ *
+ * @param RequestInterface $request
+ * @param array $options
+ *
+ * @return RequestInterface
+ */
+ private function applyOptions(RequestInterface $request, array &$options)
+ {
+ $modify = [];
+
+ if (isset($options['form_params'])) {
+ if (isset($options['multipart'])) {
+ throw new \InvalidArgumentException('You cannot use '
+ . 'form_params and multipart at the same time. Use the '
+ . 'form_params option if you want to send application/'
+ . 'x-www-form-urlencoded requests, and the multipart '
+ . 'option to send multipart/form-data requests.');
+ }
+ $options['body'] = http_build_query($options['form_params'], '', '&');
+ unset($options['form_params']);
+ $options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded';
+ }
+
+ if (isset($options['multipart'])) {
+ $options['body'] = new Psr7\MultipartStream($options['multipart']);
+ unset($options['multipart']);
+ }
+
+ if (isset($options['json'])) {
+ $options['body'] = \GuzzleHttp\json_encode($options['json']);
+ unset($options['json']);
+ $options['_conditional']['Content-Type'] = 'application/json';
+ }
+
+ if (!empty($options['decode_content'])
+ && $options['decode_content'] !== true
+ ) {
+ $modify['set_headers']['Accept-Encoding'] = $options['decode_content'];
+ }
+
+ if (isset($options['headers'])) {
+ if (isset($modify['set_headers'])) {
+ $modify['set_headers'] = $options['headers'] + $modify['set_headers'];
+ } else {
+ $modify['set_headers'] = $options['headers'];
+ }
+ unset($options['headers']);
+ }
+
+ if (isset($options['body'])) {
+ if (is_array($options['body'])) {
+ $this->invalidBody();
+ }
+ $modify['body'] = Psr7\stream_for($options['body']);
+ unset($options['body']);
+ }
+
+ if (!empty($options['auth']) && is_array($options['auth'])) {
+ $value = $options['auth'];
+ $type = isset($value[2]) ? strtolower($value[2]) : 'basic';
+ switch ($type) {
+ case 'basic':
+ $modify['set_headers']['Authorization'] = 'Basic '
+ . base64_encode("$value[0]:$value[1]");
+ break;
+ case 'digest':
+ // @todo: Do not rely on curl
+ $options['curl'][CURLOPT_HTTPAUTH] = CURLAUTH_DIGEST;
+ $options['curl'][CURLOPT_USERPWD] = "$value[0]:$value[1]";
+ break;
+ case 'ntlm':
+ $options['curl'][CURLOPT_HTTPAUTH] = CURLAUTH_NTLM;
+ $options['curl'][CURLOPT_USERPWD] = "$value[0]:$value[1]";
+ break;
+ }
+ }
+
+ if (isset($options['query'])) {
+ $value = $options['query'];
+ if (is_array($value)) {
+ $value = http_build_query($value, null, '&', PHP_QUERY_RFC3986);
+ }
+ if (!is_string($value)) {
+ throw new \InvalidArgumentException('query must be a string or array');
+ }
+ $modify['query'] = $value;
+ unset($options['query']);
+ }
+
+ // Ensure that sink is not an invalid value.
+ if (isset($options['sink'])) {
+ // TODO: Add more sink validation?
+ if (is_bool($options['sink'])) {
+ throw new \InvalidArgumentException('sink must not be a boolean');
+ }
+ }
+
+ $request = Psr7\modify_request($request, $modify);
+ if ($request->getBody() instanceof Psr7\MultipartStream) {
+ // Use a multipart/form-data POST if a Content-Type is not set.
+ $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary='
+ . $request->getBody()->getBoundary();
+ }
+
+ // Merge in conditional headers if they are not present.
+ if (isset($options['_conditional'])) {
+ // Build up the changes so it's in a single clone of the message.
+ $modify = [];
+ foreach ($options['_conditional'] as $k => $v) {
+ if (!$request->hasHeader($k)) {
+ $modify['set_headers'][$k] = $v;
+ }
+ }
+ $request = Psr7\modify_request($request, $modify);
+ // Don't pass this internal value along to middleware/handlers.
+ unset($options['_conditional']);
+ }
+
+ return $request;
+ }
+
+ private function invalidBody()
+ {
+ throw new \InvalidArgumentException('Passing in the "body" request '
+ . 'option as an array to send a POST request has been deprecated. '
+ . 'Please use the "form_params" request option to send a '
+ . 'application/x-www-form-urlencoded request, or the "multipart" '
+ . 'request option to send a multipart/form-data request.');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/ClientInterface.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/ClientInterface.php
new file mode 100644
index 00000000..5a67b66b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/ClientInterface.php
@@ -0,0 +1,84 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Promise\PromiseInterface;
+use GuzzleHttp\Exception\GuzzleException;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\UriInterface;
+
+/**
+ * Client interface for sending HTTP requests.
+ */
+interface ClientInterface
+{
+ const VERSION = '6.2.1';
+
+ /**
+ * Send an HTTP request.
+ *
+ * @param RequestInterface $request Request to send
+ * @param array $options Request options to apply to the given
+ * request and to the transfer.
+ *
+ * @return ResponseInterface
+ * @throws GuzzleException
+ */
+ public function send(RequestInterface $request, array $options = []);
+
+ /**
+ * Asynchronously send an HTTP request.
+ *
+ * @param RequestInterface $request Request to send
+ * @param array $options Request options to apply to the given
+ * request and to the transfer.
+ *
+ * @return PromiseInterface
+ */
+ public function sendAsync(RequestInterface $request, array $options = []);
+
+ /**
+ * Create and send an HTTP request.
+ *
+ * Use an absolute path to override the base path of the client, or a
+ * relative path to append to the base path of the client. The URL can
+ * contain the query string as well.
+ *
+ * @param string $method HTTP method.
+ * @param string|UriInterface $uri URI object or string.
+ * @param array $options Request options to apply.
+ *
+ * @return ResponseInterface
+ * @throws GuzzleException
+ */
+ public function request($method, $uri, array $options = []);
+
+ /**
+ * Create and send an asynchronous HTTP request.
+ *
+ * Use an absolute path to override the base path of the client, or a
+ * relative path to append to the base path of the client. The URL can
+ * contain the query string as well. Use an array to provide a URL
+ * template and additional variables to use in the URL template expansion.
+ *
+ * @param string $method HTTP method
+ * @param string|UriInterface $uri URI object or string.
+ * @param array $options Request options to apply.
+ *
+ * @return PromiseInterface
+ */
+ public function requestAsync($method, $uri, array $options = []);
+
+ /**
+ * Get a client configuration option.
+ *
+ * These options include default request options of the client, a "handler"
+ * (if utilized by the concrete client), and a "base_uri" if utilized by
+ * the concrete client.
+ *
+ * @param string|null $option The config option to retrieve.
+ *
+ * @return mixed
+ */
+ public function getConfig($option = null);
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJar.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJar.php
new file mode 100644
index 00000000..1c17b5a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJar.php
@@ -0,0 +1,314 @@
+<?php
+namespace GuzzleHttp\Cookie;
+
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * Cookie jar that stores cookies as an array
+ */
+class CookieJar implements CookieJarInterface
+{
+ /** @var SetCookie[] Loaded cookie data */
+ private $cookies = [];
+
+ /** @var bool */
+ private $strictMode;
+
+ /**
+ * @param bool $strictMode Set to true to throw exceptions when invalid
+ * cookies are added to the cookie jar.
+ * @param array $cookieArray Array of SetCookie objects or a hash of
+ * arrays that can be used with the SetCookie
+ * constructor
+ */
+ public function __construct($strictMode = false, $cookieArray = [])
+ {
+ $this->strictMode = $strictMode;
+
+ foreach ($cookieArray as $cookie) {
+ if (!($cookie instanceof SetCookie)) {
+ $cookie = new SetCookie($cookie);
+ }
+ $this->setCookie($cookie);
+ }
+ }
+
+ /**
+ * Create a new Cookie jar from an associative array and domain.
+ *
+ * @param array $cookies Cookies to create the jar from
+ * @param string $domain Domain to set the cookies to
+ *
+ * @return self
+ */
+ public static function fromArray(array $cookies, $domain)
+ {
+ $cookieJar = new self();
+ foreach ($cookies as $name => $value) {
+ $cookieJar->setCookie(new SetCookie([
+ 'Domain' => $domain,
+ 'Name' => $name,
+ 'Value' => $value,
+ 'Discard' => true
+ ]));
+ }
+
+ return $cookieJar;
+ }
+
+ /**
+ * @deprecated
+ */
+ public static function getCookieValue($value)
+ {
+ return $value;
+ }
+
+ /**
+ * Evaluate if this cookie should be persisted to storage
+ * that survives between requests.
+ *
+ * @param SetCookie $cookie Being evaluated.
+ * @param bool $allowSessionCookies If we should persist session cookies
+ * @return bool
+ */
+ public static function shouldPersist(
+ SetCookie $cookie,
+ $allowSessionCookies = false
+ ) {
+ if ($cookie->getExpires() || $allowSessionCookies) {
+ if (!$cookie->getDiscard()) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Finds and returns the cookie based on the name
+ *
+ * @param string $name cookie name to search for
+ * @return SetCookie|null cookie that was found or null if not found
+ */
+ public function getCookieByName($name)
+ {
+ // don't allow a null name
+ if($name === null) {
+ return null;
+ }
+ foreach($this->cookies as $cookie) {
+ if($cookie->getName() !== null && strcasecmp($cookie->getName(), $name) === 0) {
+ return $cookie;
+ }
+ }
+ }
+
+ public function toArray()
+ {
+ return array_map(function (SetCookie $cookie) {
+ return $cookie->toArray();
+ }, $this->getIterator()->getArrayCopy());
+ }
+
+ public function clear($domain = null, $path = null, $name = null)
+ {
+ if (!$domain) {
+ $this->cookies = [];
+ return;
+ } elseif (!$path) {
+ $this->cookies = array_filter(
+ $this->cookies,
+ function (SetCookie $cookie) use ($path, $domain) {
+ return !$cookie->matchesDomain($domain);
+ }
+ );
+ } elseif (!$name) {
+ $this->cookies = array_filter(
+ $this->cookies,
+ function (SetCookie $cookie) use ($path, $domain) {
+ return !($cookie->matchesPath($path) &&
+ $cookie->matchesDomain($domain));
+ }
+ );
+ } else {
+ $this->cookies = array_filter(
+ $this->cookies,
+ function (SetCookie $cookie) use ($path, $domain, $name) {
+ return !($cookie->getName() == $name &&
+ $cookie->matchesPath($path) &&
+ $cookie->matchesDomain($domain));
+ }
+ );
+ }
+ }
+
+ public function clearSessionCookies()
+ {
+ $this->cookies = array_filter(
+ $this->cookies,
+ function (SetCookie $cookie) {
+ return !$cookie->getDiscard() && $cookie->getExpires();
+ }
+ );
+ }
+
+ public function setCookie(SetCookie $cookie)
+ {
+ // If the name string is empty (but not 0), ignore the set-cookie
+ // string entirely.
+ $name = $cookie->getName();
+ if (!$name && $name !== '0') {
+ return false;
+ }
+
+ // Only allow cookies with set and valid domain, name, value
+ $result = $cookie->validate();
+ if ($result !== true) {
+ if ($this->strictMode) {
+ throw new \RuntimeException('Invalid cookie: ' . $result);
+ } else {
+ $this->removeCookieIfEmpty($cookie);
+ return false;
+ }
+ }
+
+ // Resolve conflicts with previously set cookies
+ foreach ($this->cookies as $i => $c) {
+
+ // Two cookies are identical, when their path, and domain are
+ // identical.
+ if ($c->getPath() != $cookie->getPath() ||
+ $c->getDomain() != $cookie->getDomain() ||
+ $c->getName() != $cookie->getName()
+ ) {
+ continue;
+ }
+
+ // The previously set cookie is a discard cookie and this one is
+ // not so allow the new cookie to be set
+ if (!$cookie->getDiscard() && $c->getDiscard()) {
+ unset($this->cookies[$i]);
+ continue;
+ }
+
+ // If the new cookie's expiration is further into the future, then
+ // replace the old cookie
+ if ($cookie->getExpires() > $c->getExpires()) {
+ unset($this->cookies[$i]);
+ continue;
+ }
+
+ // If the value has changed, we better change it
+ if ($cookie->getValue() !== $c->getValue()) {
+ unset($this->cookies[$i]);
+ continue;
+ }
+
+ // The cookie exists, so no need to continue
+ return false;
+ }
+
+ $this->cookies[] = $cookie;
+
+ return true;
+ }
+
+ public function count()
+ {
+ return count($this->cookies);
+ }
+
+ public function getIterator()
+ {
+ return new \ArrayIterator(array_values($this->cookies));
+ }
+
+ public function extractCookies(
+ RequestInterface $request,
+ ResponseInterface $response
+ ) {
+ if ($cookieHeader = $response->getHeader('Set-Cookie')) {
+ foreach ($cookieHeader as $cookie) {
+ $sc = SetCookie::fromString($cookie);
+ if (!$sc->getDomain()) {
+ $sc->setDomain($request->getUri()->getHost());
+ }
+ if (0 !== strpos($sc->getPath(), '/')) {
+ $sc->setPath($this->getCookiePathFromRequest($request));
+ }
+ $this->setCookie($sc);
+ }
+ }
+ }
+
+ /**
+ * Computes cookie path following RFC 6265 section 5.1.4
+ *
+ * @link https://tools.ietf.org/html/rfc6265#section-5.1.4
+ *
+ * @param RequestInterface $request
+ * @return string
+ */
+ private function getCookiePathFromRequest(RequestInterface $request)
+ {
+ $uriPath = $request->getUri()->getPath();
+ if ('' === $uriPath) {
+ return '/';
+ }
+ if (0 !== strpos($uriPath, '/')) {
+ return '/';
+ }
+ if ('/' === $uriPath) {
+ return '/';
+ }
+ if (0 === $lastSlashPos = strrpos($uriPath, '/')) {
+ return '/';
+ }
+
+ return substr($uriPath, 0, $lastSlashPos);
+ }
+
+ public function withCookieHeader(RequestInterface $request)
+ {
+ $values = [];
+ $uri = $request->getUri();
+ $scheme = $uri->getScheme();
+ $host = $uri->getHost();
+ $path = $uri->getPath() ?: '/';
+
+ foreach ($this->cookies as $cookie) {
+ if ($cookie->matchesPath($path) &&
+ $cookie->matchesDomain($host) &&
+ !$cookie->isExpired() &&
+ (!$cookie->getSecure() || $scheme === 'https')
+ ) {
+ $values[] = $cookie->getName() . '='
+ . $cookie->getValue();
+ }
+ }
+
+ return $values
+ ? $request->withHeader('Cookie', implode('; ', $values))
+ : $request;
+ }
+
+ /**
+ * If a cookie already exists and the server asks to set it again with a
+ * null value, the cookie must be deleted.
+ *
+ * @param SetCookie $cookie
+ */
+ private function removeCookieIfEmpty(SetCookie $cookie)
+ {
+ $cookieValue = $cookie->getValue();
+ if ($cookieValue === null || $cookieValue === '') {
+ $this->clear(
+ $cookie->getDomain(),
+ $cookie->getPath(),
+ $cookie->getName()
+ );
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
new file mode 100644
index 00000000..2cf298a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
@@ -0,0 +1,84 @@
+<?php
+namespace GuzzleHttp\Cookie;
+
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * Stores HTTP cookies.
+ *
+ * It extracts cookies from HTTP requests, and returns them in HTTP responses.
+ * CookieJarInterface instances automatically expire contained cookies when
+ * necessary. Subclasses are also responsible for storing and retrieving
+ * cookies from a file, database, etc.
+ *
+ * @link http://docs.python.org/2/library/cookielib.html Inspiration
+ */
+interface CookieJarInterface extends \Countable, \IteratorAggregate
+{
+ /**
+ * Create a request with added cookie headers.
+ *
+ * If no matching cookies are found in the cookie jar, then no Cookie
+ * header is added to the request and the same request is returned.
+ *
+ * @param RequestInterface $request Request object to modify.
+ *
+ * @return RequestInterface returns the modified request.
+ */
+ public function withCookieHeader(RequestInterface $request);
+
+ /**
+ * Extract cookies from an HTTP response and store them in the CookieJar.
+ *
+ * @param RequestInterface $request Request that was sent
+ * @param ResponseInterface $response Response that was received
+ */
+ public function extractCookies(
+ RequestInterface $request,
+ ResponseInterface $response
+ );
+
+ /**
+ * Sets a cookie in the cookie jar.
+ *
+ * @param SetCookie $cookie Cookie to set.
+ *
+ * @return bool Returns true on success or false on failure
+ */
+ public function setCookie(SetCookie $cookie);
+
+ /**
+ * Remove cookies currently held in the cookie jar.
+ *
+ * Invoking this method without arguments will empty the whole cookie jar.
+ * If given a $domain argument only cookies belonging to that domain will
+ * be removed. If given a $domain and $path argument, cookies belonging to
+ * the specified path within that domain are removed. If given all three
+ * arguments, then the cookie with the specified name, path and domain is
+ * removed.
+ *
+ * @param string $domain Clears cookies matching a domain
+ * @param string $path Clears cookies matching a domain and path
+ * @param string $name Clears cookies matching a domain, path, and name
+ *
+ * @return CookieJarInterface
+ */
+ public function clear($domain = null, $path = null, $name = null);
+
+ /**
+ * Discard all sessions cookies.
+ *
+ * Removes cookies that don't have an expire field or a have a discard
+ * field set to true. To be called when the user agent shuts down according
+ * to RFC 2965.
+ */
+ public function clearSessionCookies();
+
+ /**
+ * Converts the cookie jar to an array.
+ *
+ * @return array
+ */
+ public function toArray();
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php
new file mode 100644
index 00000000..9887c1d5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php
@@ -0,0 +1,90 @@
+<?php
+namespace GuzzleHttp\Cookie;
+
+/**
+ * Persists non-session cookies using a JSON formatted file
+ */
+class FileCookieJar extends CookieJar
+{
+ /** @var string filename */
+ private $filename;
+
+ /** @var bool Control whether to persist session cookies or not. */
+ private $storeSessionCookies;
+
+ /**
+ * Create a new FileCookieJar object
+ *
+ * @param string $cookieFile File to store the cookie data
+ * @param bool $storeSessionCookies Set to true to store session cookies
+ * in the cookie jar.
+ *
+ * @throws \RuntimeException if the file cannot be found or created
+ */
+ public function __construct($cookieFile, $storeSessionCookies = false)
+ {
+ $this->filename = $cookieFile;
+ $this->storeSessionCookies = $storeSessionCookies;
+
+ if (file_exists($cookieFile)) {
+ $this->load($cookieFile);
+ }
+ }
+
+ /**
+ * Saves the file when shutting down
+ */
+ public function __destruct()
+ {
+ $this->save($this->filename);
+ }
+
+ /**
+ * Saves the cookies to a file.
+ *
+ * @param string $filename File to save
+ * @throws \RuntimeException if the file cannot be found or created
+ */
+ public function save($filename)
+ {
+ $json = [];
+ foreach ($this as $cookie) {
+ /** @var SetCookie $cookie */
+ if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) {
+ $json[] = $cookie->toArray();
+ }
+ }
+
+ $jsonStr = \GuzzleHttp\json_encode($json);
+ if (false === file_put_contents($filename, $jsonStr)) {
+ throw new \RuntimeException("Unable to save file {$filename}");
+ }
+ }
+
+ /**
+ * Load cookies from a JSON formatted file.
+ *
+ * Old cookies are kept unless overwritten by newly loaded ones.
+ *
+ * @param string $filename Cookie file to load.
+ * @throws \RuntimeException if the file cannot be loaded.
+ */
+ public function load($filename)
+ {
+ $json = file_get_contents($filename);
+ if (false === $json) {
+ throw new \RuntimeException("Unable to load file {$filename}");
+ } elseif ($json === '') {
+ return;
+ }
+
+ $data = \GuzzleHttp\json_decode($json, true);
+ if (is_array($data)) {
+ foreach (json_decode($json, true) as $cookie) {
+ $this->setCookie(new SetCookie($cookie));
+ }
+ } elseif (strlen($data)) {
+ throw new \RuntimeException("Invalid cookie file: {$filename}");
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php
new file mode 100644
index 00000000..e4bfafd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php
@@ -0,0 +1,71 @@
+<?php
+namespace GuzzleHttp\Cookie;
+
+/**
+ * Persists cookies in the client session
+ */
+class SessionCookieJar extends CookieJar
+{
+ /** @var string session key */
+ private $sessionKey;
+
+ /** @var bool Control whether to persist session cookies or not. */
+ private $storeSessionCookies;
+
+ /**
+ * Create a new SessionCookieJar object
+ *
+ * @param string $sessionKey Session key name to store the cookie
+ * data in session
+ * @param bool $storeSessionCookies Set to true to store session cookies
+ * in the cookie jar.
+ */
+ public function __construct($sessionKey, $storeSessionCookies = false)
+ {
+ $this->sessionKey = $sessionKey;
+ $this->storeSessionCookies = $storeSessionCookies;
+ $this->load();
+ }
+
+ /**
+ * Saves cookies to session when shutting down
+ */
+ public function __destruct()
+ {
+ $this->save();
+ }
+
+ /**
+ * Save cookies to the client session
+ */
+ public function save()
+ {
+ $json = [];
+ foreach ($this as $cookie) {
+ /** @var SetCookie $cookie */
+ if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) {
+ $json[] = $cookie->toArray();
+ }
+ }
+
+ $_SESSION[$this->sessionKey] = json_encode($json);
+ }
+
+ /**
+ * Load the contents of the client session into the data array
+ */
+ protected function load()
+ {
+ if (!isset($_SESSION[$this->sessionKey])) {
+ return;
+ }
+ $data = json_decode($_SESSION[$this->sessionKey], true);
+ if (is_array($data)) {
+ foreach ($data as $cookie) {
+ $this->setCookie(new SetCookie($cookie));
+ }
+ } elseif (strlen($data)) {
+ throw new \RuntimeException("Invalid cookie data");
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SetCookie.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SetCookie.php
new file mode 100644
index 00000000..c911e2a3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Cookie/SetCookie.php
@@ -0,0 +1,404 @@
+<?php
+namespace GuzzleHttp\Cookie;
+
+/**
+ * Set-Cookie object
+ */
+class SetCookie
+{
+ /** @var array */
+ private static $defaults = [
+ 'Name' => null,
+ 'Value' => null,
+ 'Domain' => null,
+ 'Path' => '/',
+ 'Max-Age' => null,
+ 'Expires' => null,
+ 'Secure' => false,
+ 'Discard' => false,
+ 'HttpOnly' => false
+ ];
+
+ /** @var array Cookie data */
+ private $data;
+
+ /**
+ * Create a new SetCookie object from a string
+ *
+ * @param string $cookie Set-Cookie header string
+ *
+ * @return self
+ */
+ public static function fromString($cookie)
+ {
+ // Create the default return array
+ $data = self::$defaults;
+ // Explode the cookie string using a series of semicolons
+ $pieces = array_filter(array_map('trim', explode(';', $cookie)));
+ // The name of the cookie (first kvp) must include an equal sign.
+ if (empty($pieces) || !strpos($pieces[0], '=')) {
+ return new self($data);
+ }
+
+ // Add the cookie pieces into the parsed data array
+ foreach ($pieces as $part) {
+
+ $cookieParts = explode('=', $part, 2);
+ $key = trim($cookieParts[0]);
+ $value = isset($cookieParts[1])
+ ? trim($cookieParts[1], " \n\r\t\0\x0B")
+ : true;
+
+ // Only check for non-cookies when cookies have been found
+ if (empty($data['Name'])) {
+ $data['Name'] = $key;
+ $data['Value'] = $value;
+ } else {
+ foreach (array_keys(self::$defaults) as $search) {
+ if (!strcasecmp($search, $key)) {
+ $data[$search] = $value;
+ continue 2;
+ }
+ }
+ $data[$key] = $value;
+ }
+ }
+
+ return new self($data);
+ }
+
+ /**
+ * @param array $data Array of cookie data provided by a Cookie parser
+ */
+ public function __construct(array $data = [])
+ {
+ $this->data = array_replace(self::$defaults, $data);
+ // Extract the Expires value and turn it into a UNIX timestamp if needed
+ if (!$this->getExpires() && $this->getMaxAge()) {
+ // Calculate the Expires date
+ $this->setExpires(time() + $this->getMaxAge());
+ } elseif ($this->getExpires() && !is_numeric($this->getExpires())) {
+ $this->setExpires($this->getExpires());
+ }
+ }
+
+ public function __toString()
+ {
+ $str = $this->data['Name'] . '=' . $this->data['Value'] . '; ';
+ foreach ($this->data as $k => $v) {
+ if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== false) {
+ if ($k === 'Expires') {
+ $str .= 'Expires=' . gmdate('D, d M Y H:i:s \G\M\T', $v) . '; ';
+ } else {
+ $str .= ($v === true ? $k : "{$k}={$v}") . '; ';
+ }
+ }
+ }
+
+ return rtrim($str, '; ');
+ }
+
+ public function toArray()
+ {
+ return $this->data;
+ }
+
+ /**
+ * Get the cookie name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->data['Name'];
+ }
+
+ /**
+ * Set the cookie name
+ *
+ * @param string $name Cookie name
+ */
+ public function setName($name)
+ {
+ $this->data['Name'] = $name;
+ }
+
+ /**
+ * Get the cookie value
+ *
+ * @return string
+ */
+ public function getValue()
+ {
+ return $this->data['Value'];
+ }
+
+ /**
+ * Set the cookie value
+ *
+ * @param string $value Cookie value
+ */
+ public function setValue($value)
+ {
+ $this->data['Value'] = $value;
+ }
+
+ /**
+ * Get the domain
+ *
+ * @return string|null
+ */
+ public function getDomain()
+ {
+ return $this->data['Domain'];
+ }
+
+ /**
+ * Set the domain of the cookie
+ *
+ * @param string $domain
+ */
+ public function setDomain($domain)
+ {
+ $this->data['Domain'] = $domain;
+ }
+
+ /**
+ * Get the path
+ *
+ * @return string
+ */
+ public function getPath()
+ {
+ return $this->data['Path'];
+ }
+
+ /**
+ * Set the path of the cookie
+ *
+ * @param string $path Path of the cookie
+ */
+ public function setPath($path)
+ {
+ $this->data['Path'] = $path;
+ }
+
+ /**
+ * Maximum lifetime of the cookie in seconds
+ *
+ * @return int|null
+ */
+ public function getMaxAge()
+ {
+ return $this->data['Max-Age'];
+ }
+
+ /**
+ * Set the max-age of the cookie
+ *
+ * @param int $maxAge Max age of the cookie in seconds
+ */
+ public function setMaxAge($maxAge)
+ {
+ $this->data['Max-Age'] = $maxAge;
+ }
+
+ /**
+ * The UNIX timestamp when the cookie Expires
+ *
+ * @return mixed
+ */
+ public function getExpires()
+ {
+ return $this->data['Expires'];
+ }
+
+ /**
+ * Set the unix timestamp for which the cookie will expire
+ *
+ * @param int $timestamp Unix timestamp
+ */
+ public function setExpires($timestamp)
+ {
+ $this->data['Expires'] = is_numeric($timestamp)
+ ? (int) $timestamp
+ : strtotime($timestamp);
+ }
+
+ /**
+ * Get whether or not this is a secure cookie
+ *
+ * @return null|bool
+ */
+ public function getSecure()
+ {
+ return $this->data['Secure'];
+ }
+
+ /**
+ * Set whether or not the cookie is secure
+ *
+ * @param bool $secure Set to true or false if secure
+ */
+ public function setSecure($secure)
+ {
+ $this->data['Secure'] = $secure;
+ }
+
+ /**
+ * Get whether or not this is a session cookie
+ *
+ * @return null|bool
+ */
+ public function getDiscard()
+ {
+ return $this->data['Discard'];
+ }
+
+ /**
+ * Set whether or not this is a session cookie
+ *
+ * @param bool $discard Set to true or false if this is a session cookie
+ */
+ public function setDiscard($discard)
+ {
+ $this->data['Discard'] = $discard;
+ }
+
+ /**
+ * Get whether or not this is an HTTP only cookie
+ *
+ * @return bool
+ */
+ public function getHttpOnly()
+ {
+ return $this->data['HttpOnly'];
+ }
+
+ /**
+ * Set whether or not this is an HTTP only cookie
+ *
+ * @param bool $httpOnly Set to true or false if this is HTTP only
+ */
+ public function setHttpOnly($httpOnly)
+ {
+ $this->data['HttpOnly'] = $httpOnly;
+ }
+
+ /**
+ * Check if the cookie matches a path value.
+ *
+ * A request-path path-matches a given cookie-path if at least one of
+ * the following conditions holds:
+ *
+ * - The cookie-path and the request-path are identical.
+ * - The cookie-path is a prefix of the request-path, and the last
+ * character of the cookie-path is %x2F ("/").
+ * - The cookie-path is a prefix of the request-path, and the first
+ * character of the request-path that is not included in the cookie-
+ * path is a %x2F ("/") character.
+ *
+ * @param string $requestPath Path to check against
+ *
+ * @return bool
+ */
+ public function matchesPath($requestPath)
+ {
+ $cookiePath = $this->getPath();
+
+ // Match on exact matches or when path is the default empty "/"
+ if ($cookiePath === '/' || $cookiePath == $requestPath) {
+ return true;
+ }
+
+ // Ensure that the cookie-path is a prefix of the request path.
+ if (0 !== strpos($requestPath, $cookiePath)) {
+ return false;
+ }
+
+ // Match if the last character of the cookie-path is "/"
+ if (substr($cookiePath, -1, 1) === '/') {
+ return true;
+ }
+
+ // Match if the first character not included in cookie path is "/"
+ return substr($requestPath, strlen($cookiePath), 1) === '/';
+ }
+
+ /**
+ * Check if the cookie matches a domain value
+ *
+ * @param string $domain Domain to check against
+ *
+ * @return bool
+ */
+ public function matchesDomain($domain)
+ {
+ // Remove the leading '.' as per spec in RFC 6265.
+ // http://tools.ietf.org/html/rfc6265#section-5.2.3
+ $cookieDomain = ltrim($this->getDomain(), '.');
+
+ // Domain not set or exact match.
+ if (!$cookieDomain || !strcasecmp($domain, $cookieDomain)) {
+ return true;
+ }
+
+ // Matching the subdomain according to RFC 6265.
+ // http://tools.ietf.org/html/rfc6265#section-5.1.3
+ if (filter_var($domain, FILTER_VALIDATE_IP)) {
+ return false;
+ }
+
+ return (bool) preg_match('/\.' . preg_quote($cookieDomain) . '$/', $domain);
+ }
+
+ /**
+ * Check if the cookie is expired
+ *
+ * @return bool
+ */
+ public function isExpired()
+ {
+ return $this->getExpires() && time() > $this->getExpires();
+ }
+
+ /**
+ * Check if the cookie is valid according to RFC 6265
+ *
+ * @return bool|string Returns true if valid or an error message if invalid
+ */
+ public function validate()
+ {
+ // Names must not be empty, but can be 0
+ $name = $this->getName();
+ if (empty($name) && !is_numeric($name)) {
+ return 'The cookie name must not be empty';
+ }
+
+ // Check if any of the invalid characters are present in the cookie name
+ if (preg_match(
+ '/[\x00-\x20\x22\x28-\x29\x2c\x2f\x3a-\x40\x5c\x7b\x7d\x7f]/',
+ $name)
+ ) {
+ return 'Cookie name must not contain invalid characters: ASCII '
+ . 'Control characters (0-31;127), space, tab and the '
+ . 'following characters: ()<>@,;:\"/?={}';
+ }
+
+ // Value must not be empty, but can be 0
+ $value = $this->getValue();
+ if (empty($value) && !is_numeric($value)) {
+ return 'The cookie value must not be empty';
+ }
+
+ // Domains must not be empty, but can be 0
+ // A "0" is not a valid internet domain, but may be used as server name
+ // in a private network.
+ $domain = $this->getDomain();
+ if (empty($domain) && !is_numeric($domain)) {
+ return 'The cookie domain must not be empty';
+ }
+
+ return true;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/BadResponseException.php
new file mode 100644
index 00000000..427d896f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/BadResponseException.php
@@ -0,0 +1,27 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * Exception when an HTTP error occurs (4xx or 5xx error)
+ */
+class BadResponseException extends RequestException
+{
+ public function __construct(
+ $message,
+ RequestInterface $request,
+ ResponseInterface $response = null,
+ \Exception $previous = null,
+ array $handlerContext = []
+ ) {
+ if (null === $response) {
+ @trigger_error(
+ 'Instantiating the ' . __CLASS__ . ' class without a Response is deprecated since version 6.3 and will be removed in 7.0.',
+ E_USER_DEPRECATED
+ );
+ }
+ parent::__construct($message, $request, $response, $previous, $handlerContext);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ClientException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ClientException.php
new file mode 100644
index 00000000..f95c09f2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ClientException.php
@@ -0,0 +1,7 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+/**
+ * Exception when a client error is encountered (4xx codes)
+ */
+class ClientException extends BadResponseException {}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ConnectException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ConnectException.php
new file mode 100644
index 00000000..d33b0cc1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ConnectException.php
@@ -0,0 +1,37 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * Exception thrown when a connection cannot be established.
+ *
+ * Note that no response is present for a ConnectException
+ */
+class ConnectException extends RequestException
+{
+ public function __construct(
+ $message,
+ RequestInterface $request,
+ \Exception $previous = null,
+ array $handlerContext = []
+ ) {
+ parent::__construct($message, $request, null, $previous, $handlerContext);
+ }
+
+ /**
+ * @return null
+ */
+ public function getResponse()
+ {
+ return null;
+ }
+
+ /**
+ * @return bool
+ */
+ public function hasResponse()
+ {
+ return false;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/GuzzleException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/GuzzleException.php
new file mode 100644
index 00000000..c82998e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/GuzzleException.php
@@ -0,0 +1,4 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+interface GuzzleException {}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/RequestException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/RequestException.php
new file mode 100644
index 00000000..39de327e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/RequestException.php
@@ -0,0 +1,217 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Http\Message\UriInterface;
+
+/**
+ * HTTP Request exception
+ */
+class RequestException extends TransferException
+{
+ /** @var RequestInterface */
+ private $request;
+
+ /** @var ResponseInterface */
+ private $response;
+
+ /** @var array */
+ private $handlerContext;
+
+ public function __construct(
+ $message,
+ RequestInterface $request,
+ ResponseInterface $response = null,
+ \Exception $previous = null,
+ array $handlerContext = []
+ ) {
+ // Set the code of the exception if the response is set and not future.
+ $code = $response && !($response instanceof PromiseInterface)
+ ? $response->getStatusCode()
+ : 0;
+ parent::__construct($message, $code, $previous);
+ $this->request = $request;
+ $this->response = $response;
+ $this->handlerContext = $handlerContext;
+ }
+
+ /**
+ * Wrap non-RequestExceptions with a RequestException
+ *
+ * @param RequestInterface $request
+ * @param \Exception $e
+ *
+ * @return RequestException
+ */
+ public static function wrapException(RequestInterface $request, \Exception $e)
+ {
+ return $e instanceof RequestException
+ ? $e
+ : new RequestException($e->getMessage(), $request, null, $e);
+ }
+
+ /**
+ * Factory method to create a new exception with a normalized error message
+ *
+ * @param RequestInterface $request Request
+ * @param ResponseInterface $response Response received
+ * @param \Exception $previous Previous exception
+ * @param array $ctx Optional handler context.
+ *
+ * @return self
+ */
+ public static function create(
+ RequestInterface $request,
+ ResponseInterface $response = null,
+ \Exception $previous = null,
+ array $ctx = []
+ ) {
+ if (!$response) {
+ return new self(
+ 'Error completing request',
+ $request,
+ null,
+ $previous,
+ $ctx
+ );
+ }
+
+ $level = (int) floor($response->getStatusCode() / 100);
+ if ($level === 4) {
+ $label = 'Client error';
+ $className = ClientException::class;
+ } elseif ($level === 5) {
+ $label = 'Server error';
+ $className = ServerException::class;
+ } else {
+ $label = 'Unsuccessful request';
+ $className = __CLASS__;
+ }
+
+ $uri = $request->getUri();
+ $uri = static::obfuscateUri($uri);
+
+ // Client Error: `GET /` resulted in a `404 Not Found` response:
+ // <html> ... (truncated)
+ $message = sprintf(
+ '%s: `%s %s` resulted in a `%s %s` response',
+ $label,
+ $request->getMethod(),
+ $uri,
+ $response->getStatusCode(),
+ $response->getReasonPhrase()
+ );
+
+ $summary = static::getResponseBodySummary($response);
+
+ if ($summary !== null) {
+ $message .= ":\n{$summary}\n";
+ }
+
+ return new $className($message, $request, $response, $previous, $ctx);
+ }
+
+ /**
+ * Get a short summary of the response
+ *
+ * Will return `null` if the response is not printable.
+ *
+ * @param ResponseInterface $response
+ *
+ * @return string|null
+ */
+ public static function getResponseBodySummary(ResponseInterface $response)
+ {
+ $body = $response->getBody();
+
+ if (!$body->isSeekable()) {
+ return null;
+ }
+
+ $size = $body->getSize();
+
+ if ($size === 0) {
+ return null;
+ }
+
+ $summary = $body->read(120);
+ $body->rewind();
+
+ if ($size > 120) {
+ $summary .= ' (truncated...)';
+ }
+
+ // Matches any printable character, including unicode characters:
+ // letters, marks, numbers, punctuation, spacing, and separators.
+ if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/', $summary)) {
+ return null;
+ }
+
+ return $summary;
+ }
+
+ /**
+ * Obfuscates URI if there is an username and a password present
+ *
+ * @param UriInterface $uri
+ *
+ * @return UriInterface
+ */
+ private static function obfuscateUri($uri)
+ {
+ $userInfo = $uri->getUserInfo();
+
+ if (false !== ($pos = strpos($userInfo, ':'))) {
+ return $uri->withUserInfo(substr($userInfo, 0, $pos), '***');
+ }
+
+ return $uri;
+ }
+
+ /**
+ * Get the request that caused the exception
+ *
+ * @return RequestInterface
+ */
+ public function getRequest()
+ {
+ return $this->request;
+ }
+
+ /**
+ * Get the associated response
+ *
+ * @return ResponseInterface|null
+ */
+ public function getResponse()
+ {
+ return $this->response;
+ }
+
+ /**
+ * Check if a response was received
+ *
+ * @return bool
+ */
+ public function hasResponse()
+ {
+ return $this->response !== null;
+ }
+
+ /**
+ * Get contextual information about the error from the underlying handler.
+ *
+ * The contents of this array will vary depending on which handler you are
+ * using. It may also be just an empty array. Relying on this data will
+ * couple you to a specific handler, but can give more debug information
+ * when needed.
+ *
+ * @return array
+ */
+ public function getHandlerContext()
+ {
+ return $this->handlerContext;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/SeekException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/SeekException.php
new file mode 100644
index 00000000..a77c2892
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/SeekException.php
@@ -0,0 +1,27 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Exception thrown when a seek fails on a stream.
+ */
+class SeekException extends \RuntimeException implements GuzzleException
+{
+ private $stream;
+
+ public function __construct(StreamInterface $stream, $pos = 0, $msg = '')
+ {
+ $this->stream = $stream;
+ $msg = $msg ?: 'Could not seek the stream to position ' . $pos;
+ parent::__construct($msg);
+ }
+
+ /**
+ * @return StreamInterface
+ */
+ public function getStream()
+ {
+ return $this->stream;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ServerException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ServerException.php
new file mode 100644
index 00000000..7cdd3408
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/ServerException.php
@@ -0,0 +1,7 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+/**
+ * Exception when a server error is encountered (5xx codes)
+ */
+class ServerException extends BadResponseException {}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php
new file mode 100644
index 00000000..b60a9678
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php
@@ -0,0 +1,4 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+class TooManyRedirectsException extends RequestException {}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TransferException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TransferException.php
new file mode 100644
index 00000000..b92071ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Exception/TransferException.php
@@ -0,0 +1,4 @@
+<?php
+namespace GuzzleHttp\Exception;
+
+class TransferException extends \RuntimeException implements GuzzleException {}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactory.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactory.php
new file mode 100644
index 00000000..49808e5c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactory.php
@@ -0,0 +1,559 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use GuzzleHttp\Exception\RequestException;
+use GuzzleHttp\Exception\ConnectException;
+use GuzzleHttp\Promise\FulfilledPromise;
+use GuzzleHttp\Promise\RejectedPromise;
+use GuzzleHttp\Psr7;
+use GuzzleHttp\Psr7\LazyOpenStream;
+use GuzzleHttp\TransferStats;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * Creates curl resources from a request
+ */
+class CurlFactory implements CurlFactoryInterface
+{
+ /** @var array */
+ private $handles = [];
+
+ /** @var int Total number of idle handles to keep in cache */
+ private $maxHandles;
+
+ /**
+ * @param int $maxHandles Maximum number of idle handles.
+ */
+ public function __construct($maxHandles)
+ {
+ $this->maxHandles = $maxHandles;
+ }
+
+ public function create(RequestInterface $request, array $options)
+ {
+ if (isset($options['curl']['body_as_string'])) {
+ $options['_body_as_string'] = $options['curl']['body_as_string'];
+ unset($options['curl']['body_as_string']);
+ }
+
+ $easy = new EasyHandle;
+ $easy->request = $request;
+ $easy->options = $options;
+ $conf = $this->getDefaultConf($easy);
+ $this->applyMethod($easy, $conf);
+ $this->applyHandlerOptions($easy, $conf);
+ $this->applyHeaders($easy, $conf);
+ unset($conf['_headers']);
+
+ // Add handler options from the request configuration options
+ if (isset($options['curl'])) {
+ $conf = array_replace($conf, $options['curl']);
+ }
+
+ $conf[CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy);
+ $easy->handle = $this->handles
+ ? array_pop($this->handles)
+ : curl_init();
+ curl_setopt_array($easy->handle, $conf);
+
+ return $easy;
+ }
+
+ public function release(EasyHandle $easy)
+ {
+ $resource = $easy->handle;
+ unset($easy->handle);
+
+ if (count($this->handles) >= $this->maxHandles) {
+ curl_close($resource);
+ } else {
+ // Remove all callback functions as they can hold onto references
+ // and are not cleaned up by curl_reset. Using curl_setopt_array
+ // does not work for some reason, so removing each one
+ // individually.
+ curl_setopt($resource, CURLOPT_HEADERFUNCTION, null);
+ curl_setopt($resource, CURLOPT_READFUNCTION, null);
+ curl_setopt($resource, CURLOPT_WRITEFUNCTION, null);
+ curl_setopt($resource, CURLOPT_PROGRESSFUNCTION, null);
+ curl_reset($resource);
+ $this->handles[] = $resource;
+ }
+ }
+
+ /**
+ * Completes a cURL transaction, either returning a response promise or a
+ * rejected promise.
+ *
+ * @param callable $handler
+ * @param EasyHandle $easy
+ * @param CurlFactoryInterface $factory Dictates how the handle is released
+ *
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public static function finish(
+ callable $handler,
+ EasyHandle $easy,
+ CurlFactoryInterface $factory
+ ) {
+ if (isset($easy->options['on_stats'])) {
+ self::invokeStats($easy);
+ }
+
+ if (!$easy->response || $easy->errno) {
+ return self::finishError($handler, $easy, $factory);
+ }
+
+ // Return the response if it is present and there is no error.
+ $factory->release($easy);
+
+ // Rewind the body of the response if possible.
+ $body = $easy->response->getBody();
+ if ($body->isSeekable()) {
+ $body->rewind();
+ }
+
+ return new FulfilledPromise($easy->response);
+ }
+
+ private static function invokeStats(EasyHandle $easy)
+ {
+ $curlStats = curl_getinfo($easy->handle);
+ $stats = new TransferStats(
+ $easy->request,
+ $easy->response,
+ $curlStats['total_time'],
+ $easy->errno,
+ $curlStats
+ );
+ call_user_func($easy->options['on_stats'], $stats);
+ }
+
+ private static function finishError(
+ callable $handler,
+ EasyHandle $easy,
+ CurlFactoryInterface $factory
+ ) {
+ // Get error information and release the handle to the factory.
+ $ctx = [
+ 'errno' => $easy->errno,
+ 'error' => curl_error($easy->handle),
+ ] + curl_getinfo($easy->handle);
+ $factory->release($easy);
+
+ // Retry when nothing is present or when curl failed to rewind.
+ if (empty($easy->options['_err_message'])
+ && (!$easy->errno || $easy->errno == 65)
+ ) {
+ return self::retryFailedRewind($handler, $easy, $ctx);
+ }
+
+ return self::createRejection($easy, $ctx);
+ }
+
+ private static function createRejection(EasyHandle $easy, array $ctx)
+ {
+ static $connectionErrors = [
+ CURLE_OPERATION_TIMEOUTED => true,
+ CURLE_COULDNT_RESOLVE_HOST => true,
+ CURLE_COULDNT_CONNECT => true,
+ CURLE_SSL_CONNECT_ERROR => true,
+ CURLE_GOT_NOTHING => true,
+ ];
+
+ // If an exception was encountered during the onHeaders event, then
+ // return a rejected promise that wraps that exception.
+ if ($easy->onHeadersException) {
+ return \GuzzleHttp\Promise\rejection_for(
+ new RequestException(
+ 'An error was encountered during the on_headers event',
+ $easy->request,
+ $easy->response,
+ $easy->onHeadersException,
+ $ctx
+ )
+ );
+ }
+
+ $message = sprintf(
+ 'cURL error %s: %s (%s)',
+ $ctx['errno'],
+ $ctx['error'],
+ 'see http://curl.haxx.se/libcurl/c/libcurl-errors.html'
+ );
+
+ // Create a connection exception if it was a specific error code.
+ $error = isset($connectionErrors[$easy->errno])
+ ? new ConnectException($message, $easy->request, null, $ctx)
+ : new RequestException($message, $easy->request, $easy->response, null, $ctx);
+
+ return \GuzzleHttp\Promise\rejection_for($error);
+ }
+
+ private function getDefaultConf(EasyHandle $easy)
+ {
+ $conf = [
+ '_headers' => $easy->request->getHeaders(),
+ CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(),
+ CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''),
+ CURLOPT_RETURNTRANSFER => false,
+ CURLOPT_HEADER => false,
+ CURLOPT_CONNECTTIMEOUT => 150,
+ ];
+
+ if (defined('CURLOPT_PROTOCOLS')) {
+ $conf[CURLOPT_PROTOCOLS] = CURLPROTO_HTTP | CURLPROTO_HTTPS;
+ }
+
+ $version = $easy->request->getProtocolVersion();
+ if ($version == 1.1) {
+ $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_1;
+ } elseif ($version == 2.0) {
+ $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_2_0;
+ } else {
+ $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0;
+ }
+
+ return $conf;
+ }
+
+ private function applyMethod(EasyHandle $easy, array &$conf)
+ {
+ $body = $easy->request->getBody();
+ $size = $body->getSize();
+
+ if ($size === null || $size > 0) {
+ $this->applyBody($easy->request, $easy->options, $conf);
+ return;
+ }
+
+ $method = $easy->request->getMethod();
+ if ($method === 'PUT' || $method === 'POST') {
+ // See http://tools.ietf.org/html/rfc7230#section-3.3.2
+ if (!$easy->request->hasHeader('Content-Length')) {
+ $conf[CURLOPT_HTTPHEADER][] = 'Content-Length: 0';
+ }
+ } elseif ($method === 'HEAD') {
+ $conf[CURLOPT_NOBODY] = true;
+ unset(
+ $conf[CURLOPT_WRITEFUNCTION],
+ $conf[CURLOPT_READFUNCTION],
+ $conf[CURLOPT_FILE],
+ $conf[CURLOPT_INFILE]
+ );
+ }
+ }
+
+ private function applyBody(RequestInterface $request, array $options, array &$conf)
+ {
+ $size = $request->hasHeader('Content-Length')
+ ? (int) $request->getHeaderLine('Content-Length')
+ : null;
+
+ // Send the body as a string if the size is less than 1MB OR if the
+ // [curl][body_as_string] request value is set.
+ if (($size !== null && $size < 1000000) ||
+ !empty($options['_body_as_string'])
+ ) {
+ $conf[CURLOPT_POSTFIELDS] = (string) $request->getBody();
+ // Don't duplicate the Content-Length header
+ $this->removeHeader('Content-Length', $conf);
+ $this->removeHeader('Transfer-Encoding', $conf);
+ } else {
+ $conf[CURLOPT_UPLOAD] = true;
+ if ($size !== null) {
+ $conf[CURLOPT_INFILESIZE] = $size;
+ $this->removeHeader('Content-Length', $conf);
+ }
+ $body = $request->getBody();
+ if ($body->isSeekable()) {
+ $body->rewind();
+ }
+ $conf[CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use ($body) {
+ return $body->read($length);
+ };
+ }
+
+ // If the Expect header is not present, prevent curl from adding it
+ if (!$request->hasHeader('Expect')) {
+ $conf[CURLOPT_HTTPHEADER][] = 'Expect:';
+ }
+
+ // cURL sometimes adds a content-type by default. Prevent this.
+ if (!$request->hasHeader('Content-Type')) {
+ $conf[CURLOPT_HTTPHEADER][] = 'Content-Type:';
+ }
+ }
+
+ private function applyHeaders(EasyHandle $easy, array &$conf)
+ {
+ foreach ($conf['_headers'] as $name => $values) {
+ foreach ($values as $value) {
+ $conf[CURLOPT_HTTPHEADER][] = "$name: $value";
+ }
+ }
+
+ // Remove the Accept header if one was not set
+ if (!$easy->request->hasHeader('Accept')) {
+ $conf[CURLOPT_HTTPHEADER][] = 'Accept:';
+ }
+ }
+
+ /**
+ * Remove a header from the options array.
+ *
+ * @param string $name Case-insensitive header to remove
+ * @param array $options Array of options to modify
+ */
+ private function removeHeader($name, array &$options)
+ {
+ foreach (array_keys($options['_headers']) as $key) {
+ if (!strcasecmp($key, $name)) {
+ unset($options['_headers'][$key]);
+ return;
+ }
+ }
+ }
+
+ private function applyHandlerOptions(EasyHandle $easy, array &$conf)
+ {
+ $options = $easy->options;
+ if (isset($options['verify'])) {
+ if ($options['verify'] === false) {
+ unset($conf[CURLOPT_CAINFO]);
+ $conf[CURLOPT_SSL_VERIFYHOST] = 0;
+ $conf[CURLOPT_SSL_VERIFYPEER] = false;
+ } else {
+ $conf[CURLOPT_SSL_VERIFYHOST] = 2;
+ $conf[CURLOPT_SSL_VERIFYPEER] = true;
+ if (is_string($options['verify'])) {
+ // Throw an error if the file/folder/link path is not valid or doesn't exist.
+ if (!file_exists($options['verify'])) {
+ throw new \InvalidArgumentException(
+ "SSL CA bundle not found: {$options['verify']}"
+ );
+ }
+ // If it's a directory or a link to a directory use CURLOPT_CAPATH.
+ // If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO.
+ if (is_dir($options['verify']) ||
+ (is_link($options['verify']) && is_dir(readlink($options['verify'])))) {
+ $conf[CURLOPT_CAPATH] = $options['verify'];
+ } else {
+ $conf[CURLOPT_CAINFO] = $options['verify'];
+ }
+ }
+ }
+ }
+
+ if (!empty($options['decode_content'])) {
+ $accept = $easy->request->getHeaderLine('Accept-Encoding');
+ if ($accept) {
+ $conf[CURLOPT_ENCODING] = $accept;
+ } else {
+ $conf[CURLOPT_ENCODING] = '';
+ // Don't let curl send the header over the wire
+ $conf[CURLOPT_HTTPHEADER][] = 'Accept-Encoding:';
+ }
+ }
+
+ if (isset($options['sink'])) {
+ $sink = $options['sink'];
+ if (!is_string($sink)) {
+ $sink = \GuzzleHttp\Psr7\stream_for($sink);
+ } elseif (!is_dir(dirname($sink))) {
+ // Ensure that the directory exists before failing in curl.
+ throw new \RuntimeException(sprintf(
+ 'Directory %s does not exist for sink value of %s',
+ dirname($sink),
+ $sink
+ ));
+ } else {
+ $sink = new LazyOpenStream($sink, 'w+');
+ }
+ $easy->sink = $sink;
+ $conf[CURLOPT_WRITEFUNCTION] = function ($ch, $write) use ($sink) {
+ return $sink->write($write);
+ };
+ } else {
+ // Use a default temp stream if no sink was set.
+ $conf[CURLOPT_FILE] = fopen('php://temp', 'w+');
+ $easy->sink = Psr7\stream_for($conf[CURLOPT_FILE]);
+ }
+ $timeoutRequiresNoSignal = false;
+ if (isset($options['timeout'])) {
+ $timeoutRequiresNoSignal |= $options['timeout'] < 1;
+ $conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000;
+ }
+
+ // CURL default value is CURL_IPRESOLVE_WHATEVER
+ if (isset($options['force_ip_resolve'])) {
+ if ('v4' === $options['force_ip_resolve']) {
+ $conf[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V4;
+ } else if ('v6' === $options['force_ip_resolve']) {
+ $conf[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V6;
+ }
+ }
+
+ if (isset($options['connect_timeout'])) {
+ $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1;
+ $conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000;
+ }
+
+ if ($timeoutRequiresNoSignal && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
+ $conf[CURLOPT_NOSIGNAL] = true;
+ }
+
+ if (isset($options['proxy'])) {
+ if (!is_array($options['proxy'])) {
+ $conf[CURLOPT_PROXY] = $options['proxy'];
+ } else {
+ $scheme = $easy->request->getUri()->getScheme();
+ if (isset($options['proxy'][$scheme])) {
+ $host = $easy->request->getUri()->getHost();
+ if (!isset($options['proxy']['no']) ||
+ !\GuzzleHttp\is_host_in_noproxy($host, $options['proxy']['no'])
+ ) {
+ $conf[CURLOPT_PROXY] = $options['proxy'][$scheme];
+ }
+ }
+ }
+ }
+
+ if (isset($options['cert'])) {
+ $cert = $options['cert'];
+ if (is_array($cert)) {
+ $conf[CURLOPT_SSLCERTPASSWD] = $cert[1];
+ $cert = $cert[0];
+ }
+ if (!file_exists($cert)) {
+ throw new \InvalidArgumentException(
+ "SSL certificate not found: {$cert}"
+ );
+ }
+ $conf[CURLOPT_SSLCERT] = $cert;
+ }
+
+ if (isset($options['ssl_key'])) {
+ $sslKey = $options['ssl_key'];
+ if (is_array($sslKey)) {
+ $conf[CURLOPT_SSLKEYPASSWD] = $sslKey[1];
+ $sslKey = $sslKey[0];
+ }
+ if (!file_exists($sslKey)) {
+ throw new \InvalidArgumentException(
+ "SSL private key not found: {$sslKey}"
+ );
+ }
+ $conf[CURLOPT_SSLKEY] = $sslKey;
+ }
+
+ if (isset($options['progress'])) {
+ $progress = $options['progress'];
+ if (!is_callable($progress)) {
+ throw new \InvalidArgumentException(
+ 'progress client option must be callable'
+ );
+ }
+ $conf[CURLOPT_NOPROGRESS] = false;
+ $conf[CURLOPT_PROGRESSFUNCTION] = function () use ($progress) {
+ $args = func_get_args();
+ // PHP 5.5 pushed the handle onto the start of the args
+ if (is_resource($args[0])) {
+ array_shift($args);
+ }
+ call_user_func_array($progress, $args);
+ };
+ }
+
+ if (!empty($options['debug'])) {
+ $conf[CURLOPT_STDERR] = \GuzzleHttp\debug_resource($options['debug']);
+ $conf[CURLOPT_VERBOSE] = true;
+ }
+ }
+
+ /**
+ * This function ensures that a response was set on a transaction. If one
+ * was not set, then the request is retried if possible. This error
+ * typically means you are sending a payload, curl encountered a
+ * "Connection died, retrying a fresh connect" error, tried to rewind the
+ * stream, and then encountered a "necessary data rewind wasn't possible"
+ * error, causing the request to be sent through curl_multi_info_read()
+ * without an error status.
+ */
+ private static function retryFailedRewind(
+ callable $handler,
+ EasyHandle $easy,
+ array $ctx
+ ) {
+ try {
+ // Only rewind if the body has been read from.
+ $body = $easy->request->getBody();
+ if ($body->tell() > 0) {
+ $body->rewind();
+ }
+ } catch (\RuntimeException $e) {
+ $ctx['error'] = 'The connection unexpectedly failed without '
+ . 'providing an error. The request would have been retried, '
+ . 'but attempting to rewind the request body failed. '
+ . 'Exception: ' . $e;
+ return self::createRejection($easy, $ctx);
+ }
+
+ // Retry no more than 3 times before giving up.
+ if (!isset($easy->options['_curl_retries'])) {
+ $easy->options['_curl_retries'] = 1;
+ } elseif ($easy->options['_curl_retries'] == 2) {
+ $ctx['error'] = 'The cURL request was retried 3 times '
+ . 'and did not succeed. The most likely reason for the failure '
+ . 'is that cURL was unable to rewind the body of the request '
+ . 'and subsequent retries resulted in the same error. Turn on '
+ . 'the debug option to see what went wrong. See '
+ . 'https://bugs.php.net/bug.php?id=47204 for more information.';
+ return self::createRejection($easy, $ctx);
+ } else {
+ $easy->options['_curl_retries']++;
+ }
+
+ return $handler($easy->request, $easy->options);
+ }
+
+ private function createHeaderFn(EasyHandle $easy)
+ {
+ if (isset($easy->options['on_headers'])) {
+ $onHeaders = $easy->options['on_headers'];
+
+ if (!is_callable($onHeaders)) {
+ throw new \InvalidArgumentException('on_headers must be callable');
+ }
+ } else {
+ $onHeaders = null;
+ }
+
+ return function ($ch, $h) use (
+ $onHeaders,
+ $easy,
+ &$startingResponse
+ ) {
+ $value = trim($h);
+ if ($value === '') {
+ $startingResponse = true;
+ $easy->createResponse();
+ if ($onHeaders !== null) {
+ try {
+ $onHeaders($easy->response);
+ } catch (\Exception $e) {
+ // Associate the exception with the handle and trigger
+ // a curl header write error by returning 0.
+ $easy->onHeadersException = $e;
+ return -1;
+ }
+ }
+ } elseif ($startingResponse) {
+ $startingResponse = false;
+ $easy->headers = [$value];
+ } else {
+ $easy->headers[] = $value;
+ }
+ return strlen($h);
+ };
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php
new file mode 100644
index 00000000..b0fc2368
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php
@@ -0,0 +1,27 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use Psr\Http\Message\RequestInterface;
+
+interface CurlFactoryInterface
+{
+ /**
+ * Creates a cURL handle resource.
+ *
+ * @param RequestInterface $request Request
+ * @param array $options Transfer options
+ *
+ * @return EasyHandle
+ * @throws \RuntimeException when an option cannot be applied
+ */
+ public function create(RequestInterface $request, array $options);
+
+ /**
+ * Release an easy handle, allowing it to be reused or closed.
+ *
+ * This function must call unset on the easy handle's "handle" property.
+ *
+ * @param EasyHandle $easy
+ */
+ public function release(EasyHandle $easy);
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlHandler.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlHandler.php
new file mode 100644
index 00000000..43577da6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlHandler.php
@@ -0,0 +1,45 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * HTTP handler that uses cURL easy handles as a transport layer.
+ *
+ * When using the CurlHandler, custom curl options can be specified as an
+ * associative array of curl option constants mapping to values in the
+ * **curl** key of the "client" key of the request.
+ */
+class CurlHandler
+{
+ /** @var CurlFactoryInterface */
+ private $factory;
+
+ /**
+ * Accepts an associative array of options:
+ *
+ * - factory: Optional curl factory used to create cURL handles.
+ *
+ * @param array $options Array of options to use with the handler
+ */
+ public function __construct(array $options = [])
+ {
+ $this->factory = isset($options['handle_factory'])
+ ? $options['handle_factory']
+ : new CurlFactory(3);
+ }
+
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ if (isset($options['delay'])) {
+ usleep($options['delay'] * 1000);
+ }
+
+ $easy = $this->factory->create($request, $options);
+ curl_exec($easy->handle);
+ $easy->errno = curl_errno($easy->handle);
+
+ return CurlFactory::finish($this, $easy, $this->factory);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
new file mode 100644
index 00000000..945d06ee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
@@ -0,0 +1,197 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use GuzzleHttp\Promise as P;
+use GuzzleHttp\Promise\Promise;
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * Returns an asynchronous response using curl_multi_* functions.
+ *
+ * When using the CurlMultiHandler, custom curl options can be specified as an
+ * associative array of curl option constants mapping to values in the
+ * **curl** key of the provided request options.
+ *
+ * @property resource $_mh Internal use only. Lazy loaded multi-handle.
+ */
+class CurlMultiHandler
+{
+ /** @var CurlFactoryInterface */
+ private $factory;
+ private $selectTimeout;
+ private $active;
+ private $handles = [];
+ private $delays = [];
+
+ /**
+ * This handler accepts the following options:
+ *
+ * - handle_factory: An optional factory used to create curl handles
+ * - select_timeout: Optional timeout (in seconds) to block before timing
+ * out while selecting curl handles. Defaults to 1 second.
+ *
+ * @param array $options
+ */
+ public function __construct(array $options = [])
+ {
+ $this->factory = isset($options['handle_factory'])
+ ? $options['handle_factory'] : new CurlFactory(50);
+ $this->selectTimeout = isset($options['select_timeout'])
+ ? $options['select_timeout'] : 1;
+ }
+
+ public function __get($name)
+ {
+ if ($name === '_mh') {
+ return $this->_mh = curl_multi_init();
+ }
+
+ throw new \BadMethodCallException();
+ }
+
+ public function __destruct()
+ {
+ if (isset($this->_mh)) {
+ curl_multi_close($this->_mh);
+ unset($this->_mh);
+ }
+ }
+
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ $easy = $this->factory->create($request, $options);
+ $id = (int) $easy->handle;
+
+ $promise = new Promise(
+ [$this, 'execute'],
+ function () use ($id) { return $this->cancel($id); }
+ );
+
+ $this->addRequest(['easy' => $easy, 'deferred' => $promise]);
+
+ return $promise;
+ }
+
+ /**
+ * Ticks the curl event loop.
+ */
+ public function tick()
+ {
+ // Add any delayed handles if needed.
+ if ($this->delays) {
+ $currentTime = microtime(true);
+ foreach ($this->delays as $id => $delay) {
+ if ($currentTime >= $delay) {
+ unset($this->delays[$id]);
+ curl_multi_add_handle(
+ $this->_mh,
+ $this->handles[$id]['easy']->handle
+ );
+ }
+ }
+ }
+
+ // Step through the task queue which may add additional requests.
+ P\queue()->run();
+
+ if ($this->active &&
+ curl_multi_select($this->_mh, $this->selectTimeout) === -1
+ ) {
+ // Perform a usleep if a select returns -1.
+ // See: https://bugs.php.net/bug.php?id=61141
+ usleep(250);
+ }
+
+ while (curl_multi_exec($this->_mh, $this->active) === CURLM_CALL_MULTI_PERFORM);
+
+ $this->processMessages();
+ }
+
+ /**
+ * Runs until all outstanding connections have completed.
+ */
+ public function execute()
+ {
+ $queue = P\queue();
+
+ while ($this->handles || !$queue->isEmpty()) {
+ // If there are no transfers, then sleep for the next delay
+ if (!$this->active && $this->delays) {
+ usleep($this->timeToNext());
+ }
+ $this->tick();
+ }
+ }
+
+ private function addRequest(array $entry)
+ {
+ $easy = $entry['easy'];
+ $id = (int) $easy->handle;
+ $this->handles[$id] = $entry;
+ if (empty($easy->options['delay'])) {
+ curl_multi_add_handle($this->_mh, $easy->handle);
+ } else {
+ $this->delays[$id] = microtime(true) + ($easy->options['delay'] / 1000);
+ }
+ }
+
+ /**
+ * Cancels a handle from sending and removes references to it.
+ *
+ * @param int $id Handle ID to cancel and remove.
+ *
+ * @return bool True on success, false on failure.
+ */
+ private function cancel($id)
+ {
+ // Cannot cancel if it has been processed.
+ if (!isset($this->handles[$id])) {
+ return false;
+ }
+
+ $handle = $this->handles[$id]['easy']->handle;
+ unset($this->delays[$id], $this->handles[$id]);
+ curl_multi_remove_handle($this->_mh, $handle);
+ curl_close($handle);
+
+ return true;
+ }
+
+ private function processMessages()
+ {
+ while ($done = curl_multi_info_read($this->_mh)) {
+ $id = (int) $done['handle'];
+ curl_multi_remove_handle($this->_mh, $done['handle']);
+
+ if (!isset($this->handles[$id])) {
+ // Probably was cancelled.
+ continue;
+ }
+
+ $entry = $this->handles[$id];
+ unset($this->handles[$id], $this->delays[$id]);
+ $entry['easy']->errno = $done['result'];
+ $entry['deferred']->resolve(
+ CurlFactory::finish(
+ $this,
+ $entry['easy'],
+ $this->factory
+ )
+ );
+ }
+ }
+
+ private function timeToNext()
+ {
+ $currentTime = microtime(true);
+ $nextTime = PHP_INT_MAX;
+ foreach ($this->delays as $time) {
+ if ($time < $nextTime) {
+ $nextTime = $time;
+ }
+ }
+
+ return max(0, $nextTime - $currentTime) * 1000000;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/EasyHandle.php
new file mode 100644
index 00000000..7754e911
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/EasyHandle.php
@@ -0,0 +1,92 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use GuzzleHttp\Psr7\Response;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Represents a cURL easy handle and the data it populates.
+ *
+ * @internal
+ */
+final class EasyHandle
+{
+ /** @var resource cURL resource */
+ public $handle;
+
+ /** @var StreamInterface Where data is being written */
+ public $sink;
+
+ /** @var array Received HTTP headers so far */
+ public $headers = [];
+
+ /** @var ResponseInterface Received response (if any) */
+ public $response;
+
+ /** @var RequestInterface Request being sent */
+ public $request;
+
+ /** @var array Request options */
+ public $options = [];
+
+ /** @var int cURL error number (if any) */
+ public $errno = 0;
+
+ /** @var \Exception Exception during on_headers (if any) */
+ public $onHeadersException;
+
+ /**
+ * Attach a response to the easy handle based on the received headers.
+ *
+ * @throws \RuntimeException if no headers have been received.
+ */
+ public function createResponse()
+ {
+ if (empty($this->headers)) {
+ throw new \RuntimeException('No headers have been received');
+ }
+
+ // HTTP-version SP status-code SP reason-phrase
+ $startLine = explode(' ', array_shift($this->headers), 3);
+ $headers = \GuzzleHttp\headers_from_lines($this->headers);
+ $normalizedKeys = \GuzzleHttp\normalize_header_keys($headers);
+
+ if (!empty($this->options['decode_content'])
+ && isset($normalizedKeys['content-encoding'])
+ ) {
+ $headers['x-encoded-content-encoding']
+ = $headers[$normalizedKeys['content-encoding']];
+ unset($headers[$normalizedKeys['content-encoding']]);
+ if (isset($normalizedKeys['content-length'])) {
+ $headers['x-encoded-content-length']
+ = $headers[$normalizedKeys['content-length']];
+
+ $bodyLength = (int) $this->sink->getSize();
+ if ($bodyLength) {
+ $headers[$normalizedKeys['content-length']] = $bodyLength;
+ } else {
+ unset($headers[$normalizedKeys['content-length']]);
+ }
+ }
+ }
+
+ // Attach a response to the easy handle with the parsed headers.
+ $this->response = new Response(
+ $startLine[1],
+ $headers,
+ $this->sink,
+ substr($startLine[0], 5),
+ isset($startLine[2]) ? (string) $startLine[2] : null
+ );
+ }
+
+ public function __get($name)
+ {
+ $msg = $name === 'handle'
+ ? 'The EasyHandle has been released'
+ : 'Invalid property: ' . $name;
+ throw new \BadMethodCallException($msg);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/MockHandler.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/MockHandler.php
new file mode 100644
index 00000000..d892061c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/MockHandler.php
@@ -0,0 +1,189 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use GuzzleHttp\Exception\RequestException;
+use GuzzleHttp\HandlerStack;
+use GuzzleHttp\Promise\PromiseInterface;
+use GuzzleHttp\Promise\RejectedPromise;
+use GuzzleHttp\TransferStats;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * Handler that returns responses or throw exceptions from a queue.
+ */
+class MockHandler implements \Countable
+{
+ private $queue = [];
+ private $lastRequest;
+ private $lastOptions;
+ private $onFulfilled;
+ private $onRejected;
+
+ /**
+ * Creates a new MockHandler that uses the default handler stack list of
+ * middlewares.
+ *
+ * @param array $queue Array of responses, callables, or exceptions.
+ * @param callable $onFulfilled Callback to invoke when the return value is fulfilled.
+ * @param callable $onRejected Callback to invoke when the return value is rejected.
+ *
+ * @return HandlerStack
+ */
+ public static function createWithMiddleware(
+ array $queue = null,
+ callable $onFulfilled = null,
+ callable $onRejected = null
+ ) {
+ return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
+ }
+
+ /**
+ * The passed in value must be an array of
+ * {@see Psr7\Http\Message\ResponseInterface} objects, Exceptions,
+ * callables, or Promises.
+ *
+ * @param array $queue
+ * @param callable $onFulfilled Callback to invoke when the return value is fulfilled.
+ * @param callable $onRejected Callback to invoke when the return value is rejected.
+ */
+ public function __construct(
+ array $queue = null,
+ callable $onFulfilled = null,
+ callable $onRejected = null
+ ) {
+ $this->onFulfilled = $onFulfilled;
+ $this->onRejected = $onRejected;
+
+ if ($queue) {
+ call_user_func_array([$this, 'append'], $queue);
+ }
+ }
+
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ if (!$this->queue) {
+ throw new \OutOfBoundsException('Mock queue is empty');
+ }
+
+ if (isset($options['delay'])) {
+ usleep($options['delay'] * 1000);
+ }
+
+ $this->lastRequest = $request;
+ $this->lastOptions = $options;
+ $response = array_shift($this->queue);
+
+ if (isset($options['on_headers'])) {
+ if (!is_callable($options['on_headers'])) {
+ throw new \InvalidArgumentException('on_headers must be callable');
+ }
+ try {
+ $options['on_headers']($response);
+ } catch (\Exception $e) {
+ $msg = 'An error was encountered during the on_headers event';
+ $response = new RequestException($msg, $request, $response, $e);
+ }
+ }
+
+ if (is_callable($response)) {
+ $response = call_user_func($response, $request, $options);
+ }
+
+ $response = $response instanceof \Exception
+ ? \GuzzleHttp\Promise\rejection_for($response)
+ : \GuzzleHttp\Promise\promise_for($response);
+
+ return $response->then(
+ function ($value) use ($request, $options) {
+ $this->invokeStats($request, $options, $value);
+ if ($this->onFulfilled) {
+ call_user_func($this->onFulfilled, $value);
+ }
+ if (isset($options['sink'])) {
+ $contents = (string) $value->getBody();
+ $sink = $options['sink'];
+
+ if (is_resource($sink)) {
+ fwrite($sink, $contents);
+ } elseif (is_string($sink)) {
+ file_put_contents($sink, $contents);
+ } elseif ($sink instanceof \Psr\Http\Message\StreamInterface) {
+ $sink->write($contents);
+ }
+ }
+
+ return $value;
+ },
+ function ($reason) use ($request, $options) {
+ $this->invokeStats($request, $options, null, $reason);
+ if ($this->onRejected) {
+ call_user_func($this->onRejected, $reason);
+ }
+ return \GuzzleHttp\Promise\rejection_for($reason);
+ }
+ );
+ }
+
+ /**
+ * Adds one or more variadic requests, exceptions, callables, or promises
+ * to the queue.
+ */
+ public function append()
+ {
+ foreach (func_get_args() as $value) {
+ if ($value instanceof ResponseInterface
+ || $value instanceof \Exception
+ || $value instanceof PromiseInterface
+ || is_callable($value)
+ ) {
+ $this->queue[] = $value;
+ } else {
+ throw new \InvalidArgumentException('Expected a response or '
+ . 'exception. Found ' . \GuzzleHttp\describe_type($value));
+ }
+ }
+ }
+
+ /**
+ * Get the last received request.
+ *
+ * @return RequestInterface
+ */
+ public function getLastRequest()
+ {
+ return $this->lastRequest;
+ }
+
+ /**
+ * Get the last received request options.
+ *
+ * @return array
+ */
+ public function getLastOptions()
+ {
+ return $this->lastOptions;
+ }
+
+ /**
+ * Returns the number of remaining items in the queue.
+ *
+ * @return int
+ */
+ public function count()
+ {
+ return count($this->queue);
+ }
+
+ private function invokeStats(
+ RequestInterface $request,
+ array $options,
+ ResponseInterface $response = null,
+ $reason = null
+ ) {
+ if (isset($options['on_stats'])) {
+ $stats = new TransferStats($request, $response, 0, $reason);
+ call_user_func($options['on_stats'], $stats);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/Proxy.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/Proxy.php
new file mode 100644
index 00000000..f8b00be0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/Proxy.php
@@ -0,0 +1,55 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use GuzzleHttp\RequestOptions;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * Provides basic proxies for handlers.
+ */
+class Proxy
+{
+ /**
+ * Sends synchronous requests to a specific handler while sending all other
+ * requests to another handler.
+ *
+ * @param callable $default Handler used for normal responses
+ * @param callable $sync Handler used for synchronous responses.
+ *
+ * @return callable Returns the composed handler.
+ */
+ public static function wrapSync(
+ callable $default,
+ callable $sync
+ ) {
+ return function (RequestInterface $request, array $options) use ($default, $sync) {
+ return empty($options[RequestOptions::SYNCHRONOUS])
+ ? $default($request, $options)
+ : $sync($request, $options);
+ };
+ }
+
+ /**
+ * Sends streaming requests to a streaming compatible handler while sending
+ * all other requests to a default handler.
+ *
+ * This, for example, could be useful for taking advantage of the
+ * performance benefits of curl while still supporting true streaming
+ * through the StreamHandler.
+ *
+ * @param callable $default Handler used for non-streaming responses
+ * @param callable $streaming Handler used for streaming responses
+ *
+ * @return callable Returns the composed handler.
+ */
+ public static function wrapStreaming(
+ callable $default,
+ callable $streaming
+ ) {
+ return function (RequestInterface $request, array $options) use ($default, $streaming) {
+ return empty($options['stream'])
+ ? $default($request, $options)
+ : $streaming($request, $options);
+ };
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/StreamHandler.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/StreamHandler.php
new file mode 100644
index 00000000..b12bfd94
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Handler/StreamHandler.php
@@ -0,0 +1,533 @@
+<?php
+namespace GuzzleHttp\Handler;
+
+use GuzzleHttp\Exception\RequestException;
+use GuzzleHttp\Exception\ConnectException;
+use GuzzleHttp\Promise\FulfilledPromise;
+use GuzzleHttp\Promise\RejectedPromise;
+use GuzzleHttp\Promise\PromiseInterface;
+use GuzzleHttp\Psr7;
+use GuzzleHttp\TransferStats;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * HTTP handler that uses PHP's HTTP stream wrapper.
+ */
+class StreamHandler
+{
+ private $lastHeaders = [];
+
+ /**
+ * Sends an HTTP request.
+ *
+ * @param RequestInterface $request Request to send.
+ * @param array $options Request transfer options.
+ *
+ * @return PromiseInterface
+ */
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ // Sleep if there is a delay specified.
+ if (isset($options['delay'])) {
+ usleep($options['delay'] * 1000);
+ }
+
+ $startTime = isset($options['on_stats']) ? microtime(true) : null;
+
+ try {
+ // Does not support the expect header.
+ $request = $request->withoutHeader('Expect');
+
+ // Append a content-length header if body size is zero to match
+ // cURL's behavior.
+ if (0 === $request->getBody()->getSize()) {
+ $request = $request->withHeader('Content-Length', 0);
+ }
+
+ return $this->createResponse(
+ $request,
+ $options,
+ $this->createStream($request, $options),
+ $startTime
+ );
+ } catch (\InvalidArgumentException $e) {
+ throw $e;
+ } catch (\Exception $e) {
+ // Determine if the error was a networking error.
+ $message = $e->getMessage();
+ // This list can probably get more comprehensive.
+ if (strpos($message, 'getaddrinfo') // DNS lookup failed
+ || strpos($message, 'Connection refused')
+ || strpos($message, "couldn't connect to host") // error on HHVM
+ ) {
+ $e = new ConnectException($e->getMessage(), $request, $e);
+ }
+ $e = RequestException::wrapException($request, $e);
+ $this->invokeStats($options, $request, $startTime, null, $e);
+
+ return \GuzzleHttp\Promise\rejection_for($e);
+ }
+ }
+
+ private function invokeStats(
+ array $options,
+ RequestInterface $request,
+ $startTime,
+ ResponseInterface $response = null,
+ $error = null
+ ) {
+ if (isset($options['on_stats'])) {
+ $stats = new TransferStats(
+ $request,
+ $response,
+ microtime(true) - $startTime,
+ $error,
+ []
+ );
+ call_user_func($options['on_stats'], $stats);
+ }
+ }
+
+ private function createResponse(
+ RequestInterface $request,
+ array $options,
+ $stream,
+ $startTime
+ ) {
+ $hdrs = $this->lastHeaders;
+ $this->lastHeaders = [];
+ $parts = explode(' ', array_shift($hdrs), 3);
+ $ver = explode('/', $parts[0])[1];
+ $status = $parts[1];
+ $reason = isset($parts[2]) ? $parts[2] : null;
+ $headers = \GuzzleHttp\headers_from_lines($hdrs);
+ list ($stream, $headers) = $this->checkDecode($options, $headers, $stream);
+ $stream = Psr7\stream_for($stream);
+ $sink = $stream;
+
+ if (strcasecmp('HEAD', $request->getMethod())) {
+ $sink = $this->createSink($stream, $options);
+ }
+
+ $response = new Psr7\Response($status, $headers, $sink, $ver, $reason);
+
+ if (isset($options['on_headers'])) {
+ try {
+ $options['on_headers']($response);
+ } catch (\Exception $e) {
+ $msg = 'An error was encountered during the on_headers event';
+ $ex = new RequestException($msg, $request, $response, $e);
+ return \GuzzleHttp\Promise\rejection_for($ex);
+ }
+ }
+
+ // Do not drain when the request is a HEAD request because they have
+ // no body.
+ if ($sink !== $stream) {
+ $this->drain(
+ $stream,
+ $sink,
+ $response->getHeaderLine('Content-Length')
+ );
+ }
+
+ $this->invokeStats($options, $request, $startTime, $response, null);
+
+ return new FulfilledPromise($response);
+ }
+
+ private function createSink(StreamInterface $stream, array $options)
+ {
+ if (!empty($options['stream'])) {
+ return $stream;
+ }
+
+ $sink = isset($options['sink'])
+ ? $options['sink']
+ : fopen('php://temp', 'r+');
+
+ return is_string($sink)
+ ? new Psr7\LazyOpenStream($sink, 'w+')
+ : Psr7\stream_for($sink);
+ }
+
+ private function checkDecode(array $options, array $headers, $stream)
+ {
+ // Automatically decode responses when instructed.
+ if (!empty($options['decode_content'])) {
+ $normalizedKeys = \GuzzleHttp\normalize_header_keys($headers);
+ if (isset($normalizedKeys['content-encoding'])) {
+ $encoding = $headers[$normalizedKeys['content-encoding']];
+ if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') {
+ $stream = new Psr7\InflateStream(
+ Psr7\stream_for($stream)
+ );
+ $headers['x-encoded-content-encoding']
+ = $headers[$normalizedKeys['content-encoding']];
+ // Remove content-encoding header
+ unset($headers[$normalizedKeys['content-encoding']]);
+ // Fix content-length header
+ if (isset($normalizedKeys['content-length'])) {
+ $headers['x-encoded-content-length']
+ = $headers[$normalizedKeys['content-length']];
+
+ $length = (int) $stream->getSize();
+ if ($length === 0) {
+ unset($headers[$normalizedKeys['content-length']]);
+ } else {
+ $headers[$normalizedKeys['content-length']] = [$length];
+ }
+ }
+ }
+ }
+ }
+
+ return [$stream, $headers];
+ }
+
+ /**
+ * Drains the source stream into the "sink" client option.
+ *
+ * @param StreamInterface $source
+ * @param StreamInterface $sink
+ * @param string $contentLength Header specifying the amount of
+ * data to read.
+ *
+ * @return StreamInterface
+ * @throws \RuntimeException when the sink option is invalid.
+ */
+ private function drain(
+ StreamInterface $source,
+ StreamInterface $sink,
+ $contentLength
+ ) {
+ // If a content-length header is provided, then stop reading once
+ // that number of bytes has been read. This can prevent infinitely
+ // reading from a stream when dealing with servers that do not honor
+ // Connection: Close headers.
+ Psr7\copy_to_stream(
+ $source,
+ $sink,
+ (strlen($contentLength) > 0 && (int) $contentLength > 0) ? (int) $contentLength : -1
+ );
+
+ $sink->seek(0);
+ $source->close();
+
+ return $sink;
+ }
+
+ /**
+ * Create a resource and check to ensure it was created successfully
+ *
+ * @param callable $callback Callable that returns stream resource
+ *
+ * @return resource
+ * @throws \RuntimeException on error
+ */
+ private function createResource(callable $callback)
+ {
+ $errors = null;
+ set_error_handler(function ($_, $msg, $file, $line) use (&$errors) {
+ $errors[] = [
+ 'message' => $msg,
+ 'file' => $file,
+ 'line' => $line
+ ];
+ return true;
+ });
+
+ $resource = $callback();
+ restore_error_handler();
+
+ if (!$resource) {
+ $message = 'Error creating resource: ';
+ foreach ($errors as $err) {
+ foreach ($err as $key => $value) {
+ $message .= "[$key] $value" . PHP_EOL;
+ }
+ }
+ throw new \RuntimeException(trim($message));
+ }
+
+ return $resource;
+ }
+
+ private function createStream(RequestInterface $request, array $options)
+ {
+ static $methods;
+ if (!$methods) {
+ $methods = array_flip(get_class_methods(__CLASS__));
+ }
+
+ // HTTP/1.1 streams using the PHP stream wrapper require a
+ // Connection: close header
+ if ($request->getProtocolVersion() == '1.1'
+ && !$request->hasHeader('Connection')
+ ) {
+ $request = $request->withHeader('Connection', 'close');
+ }
+
+ // Ensure SSL is verified by default
+ if (!isset($options['verify'])) {
+ $options['verify'] = true;
+ }
+
+ $params = [];
+ $context = $this->getDefaultContext($request, $options);
+
+ if (isset($options['on_headers']) && !is_callable($options['on_headers'])) {
+ throw new \InvalidArgumentException('on_headers must be callable');
+ }
+
+ if (!empty($options)) {
+ foreach ($options as $key => $value) {
+ $method = "add_{$key}";
+ if (isset($methods[$method])) {
+ $this->{$method}($request, $context, $value, $params);
+ }
+ }
+ }
+
+ if (isset($options['stream_context'])) {
+ if (!is_array($options['stream_context'])) {
+ throw new \InvalidArgumentException('stream_context must be an array');
+ }
+ $context = array_replace_recursive(
+ $context,
+ $options['stream_context']
+ );
+ }
+
+ // Microsoft NTLM authentication only supported with curl handler
+ if (isset($options['auth'])
+ && is_array($options['auth'])
+ && isset($options['auth'][2])
+ && 'ntlm' == $options['auth'][2]
+ ) {
+
+ throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler');
+ }
+
+ $uri = $this->resolveHost($request, $options);
+
+ $context = $this->createResource(
+ function () use ($context, $params) {
+ return stream_context_create($context, $params);
+ }
+ );
+
+ return $this->createResource(
+ function () use ($uri, &$http_response_header, $context, $options) {
+ $resource = fopen((string) $uri, 'r', null, $context);
+ $this->lastHeaders = $http_response_header;
+
+ if (isset($options['read_timeout'])) {
+ $readTimeout = $options['read_timeout'];
+ $sec = (int) $readTimeout;
+ $usec = ($readTimeout - $sec) * 100000;
+ stream_set_timeout($resource, $sec, $usec);
+ }
+
+ return $resource;
+ }
+ );
+ }
+
+ private function resolveHost(RequestInterface $request, array $options)
+ {
+ $uri = $request->getUri();
+
+ if (isset($options['force_ip_resolve']) && !filter_var($uri->getHost(), FILTER_VALIDATE_IP)) {
+ if ('v4' === $options['force_ip_resolve']) {
+ $records = dns_get_record($uri->getHost(), DNS_A);
+ if (!isset($records[0]['ip'])) {
+ throw new ConnectException(sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request);
+ }
+ $uri = $uri->withHost($records[0]['ip']);
+ } elseif ('v6' === $options['force_ip_resolve']) {
+ $records = dns_get_record($uri->getHost(), DNS_AAAA);
+ if (!isset($records[0]['ipv6'])) {
+ throw new ConnectException(sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request);
+ }
+ $uri = $uri->withHost('[' . $records[0]['ipv6'] . ']');
+ }
+ }
+
+ return $uri;
+ }
+
+ private function getDefaultContext(RequestInterface $request)
+ {
+ $headers = '';
+ foreach ($request->getHeaders() as $name => $value) {
+ foreach ($value as $val) {
+ $headers .= "$name: $val\r\n";
+ }
+ }
+
+ $context = [
+ 'http' => [
+ 'method' => $request->getMethod(),
+ 'header' => $headers,
+ 'protocol_version' => $request->getProtocolVersion(),
+ 'ignore_errors' => true,
+ 'follow_location' => 0,
+ ],
+ ];
+
+ $body = (string) $request->getBody();
+
+ if (!empty($body)) {
+ $context['http']['content'] = $body;
+ // Prevent the HTTP handler from adding a Content-Type header.
+ if (!$request->hasHeader('Content-Type')) {
+ $context['http']['header'] .= "Content-Type:\r\n";
+ }
+ }
+
+ $context['http']['header'] = rtrim($context['http']['header']);
+
+ return $context;
+ }
+
+ private function add_proxy(RequestInterface $request, &$options, $value, &$params)
+ {
+ if (!is_array($value)) {
+ $options['http']['proxy'] = $value;
+ } else {
+ $scheme = $request->getUri()->getScheme();
+ if (isset($value[$scheme])) {
+ if (!isset($value['no'])
+ || !\GuzzleHttp\is_host_in_noproxy(
+ $request->getUri()->getHost(),
+ $value['no']
+ )
+ ) {
+ $options['http']['proxy'] = $value[$scheme];
+ }
+ }
+ }
+ }
+
+ private function add_timeout(RequestInterface $request, &$options, $value, &$params)
+ {
+ if ($value > 0) {
+ $options['http']['timeout'] = $value;
+ }
+ }
+
+ private function add_verify(RequestInterface $request, &$options, $value, &$params)
+ {
+ if ($value === true) {
+ // PHP 5.6 or greater will find the system cert by default. When
+ // < 5.6, use the Guzzle bundled cacert.
+ if (PHP_VERSION_ID < 50600) {
+ $options['ssl']['cafile'] = \GuzzleHttp\default_ca_bundle();
+ }
+ } elseif (is_string($value)) {
+ $options['ssl']['cafile'] = $value;
+ if (!file_exists($value)) {
+ throw new \RuntimeException("SSL CA bundle not found: $value");
+ }
+ } elseif ($value === false) {
+ $options['ssl']['verify_peer'] = false;
+ $options['ssl']['verify_peer_name'] = false;
+ return;
+ } else {
+ throw new \InvalidArgumentException('Invalid verify request option');
+ }
+
+ $options['ssl']['verify_peer'] = true;
+ $options['ssl']['verify_peer_name'] = true;
+ $options['ssl']['allow_self_signed'] = false;
+ }
+
+ private function add_cert(RequestInterface $request, &$options, $value, &$params)
+ {
+ if (is_array($value)) {
+ $options['ssl']['passphrase'] = $value[1];
+ $value = $value[0];
+ }
+
+ if (!file_exists($value)) {
+ throw new \RuntimeException("SSL certificate not found: {$value}");
+ }
+
+ $options['ssl']['local_cert'] = $value;
+ }
+
+ private function add_progress(RequestInterface $request, &$options, $value, &$params)
+ {
+ $this->addNotification(
+ $params,
+ function ($code, $a, $b, $c, $transferred, $total) use ($value) {
+ if ($code == STREAM_NOTIFY_PROGRESS) {
+ $value($total, $transferred, null, null);
+ }
+ }
+ );
+ }
+
+ private function add_debug(RequestInterface $request, &$options, $value, &$params)
+ {
+ if ($value === false) {
+ return;
+ }
+
+ static $map = [
+ STREAM_NOTIFY_CONNECT => 'CONNECT',
+ STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED',
+ STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT',
+ STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS',
+ STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS',
+ STREAM_NOTIFY_REDIRECTED => 'REDIRECTED',
+ STREAM_NOTIFY_PROGRESS => 'PROGRESS',
+ STREAM_NOTIFY_FAILURE => 'FAILURE',
+ STREAM_NOTIFY_COMPLETED => 'COMPLETED',
+ STREAM_NOTIFY_RESOLVE => 'RESOLVE',
+ ];
+ static $args = ['severity', 'message', 'message_code',
+ 'bytes_transferred', 'bytes_max'];
+
+ $value = \GuzzleHttp\debug_resource($value);
+ $ident = $request->getMethod() . ' ' . $request->getUri()->withFragment('');
+ $this->addNotification(
+ $params,
+ function () use ($ident, $value, $map, $args) {
+ $passed = func_get_args();
+ $code = array_shift($passed);
+ fprintf($value, '<%s> [%s] ', $ident, $map[$code]);
+ foreach (array_filter($passed) as $i => $v) {
+ fwrite($value, $args[$i] . ': "' . $v . '" ');
+ }
+ fwrite($value, "\n");
+ }
+ );
+ }
+
+ private function addNotification(array &$params, callable $notify)
+ {
+ // Wrap the existing function if needed.
+ if (!isset($params['notification'])) {
+ $params['notification'] = $notify;
+ } else {
+ $params['notification'] = $this->callArray([
+ $params['notification'],
+ $notify
+ ]);
+ }
+ }
+
+ private function callArray(array $functions)
+ {
+ return function () use ($functions) {
+ $args = func_get_args();
+ foreach ($functions as $fn) {
+ call_user_func_array($fn, $args);
+ }
+ };
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/HandlerStack.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/HandlerStack.php
new file mode 100644
index 00000000..a72e38a5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/HandlerStack.php
@@ -0,0 +1,273 @@
+<?php
+namespace GuzzleHttp;
+
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * Creates a composed Guzzle handler function by stacking middlewares on top of
+ * an HTTP handler function.
+ */
+class HandlerStack
+{
+ /** @var callable */
+ private $handler;
+
+ /** @var array */
+ private $stack = [];
+
+ /** @var callable|null */
+ private $cached;
+
+ /**
+ * Creates a default handler stack that can be used by clients.
+ *
+ * The returned handler will wrap the provided handler or use the most
+ * appropriate default handler for you system. The returned HandlerStack has
+ * support for cookies, redirects, HTTP error exceptions, and preparing a body
+ * before sending.
+ *
+ * The returned handler stack can be passed to a client in the "handler"
+ * option.
+ *
+ * @param callable $handler HTTP handler function to use with the stack. If no
+ * handler is provided, the best handler for your
+ * system will be utilized.
+ *
+ * @return HandlerStack
+ */
+ public static function create(callable $handler = null)
+ {
+ $stack = new self($handler ?: choose_handler());
+ $stack->push(Middleware::httpErrors(), 'http_errors');
+ $stack->push(Middleware::redirect(), 'allow_redirects');
+ $stack->push(Middleware::cookies(), 'cookies');
+ $stack->push(Middleware::prepareBody(), 'prepare_body');
+
+ return $stack;
+ }
+
+ /**
+ * @param callable $handler Underlying HTTP handler.
+ */
+ public function __construct(callable $handler = null)
+ {
+ $this->handler = $handler;
+ }
+
+ /**
+ * Invokes the handler stack as a composed handler
+ *
+ * @param RequestInterface $request
+ * @param array $options
+ */
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ $handler = $this->resolve();
+
+ return $handler($request, $options);
+ }
+
+ /**
+ * Dumps a string representation of the stack.
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ $depth = 0;
+ $stack = [];
+ if ($this->handler) {
+ $stack[] = "0) Handler: " . $this->debugCallable($this->handler);
+ }
+
+ $result = '';
+ foreach (array_reverse($this->stack) as $tuple) {
+ $depth++;
+ $str = "{$depth}) Name: '{$tuple[1]}', ";
+ $str .= "Function: " . $this->debugCallable($tuple[0]);
+ $result = "> {$str}\n{$result}";
+ $stack[] = $str;
+ }
+
+ foreach (array_keys($stack) as $k) {
+ $result .= "< {$stack[$k]}\n";
+ }
+
+ return $result;
+ }
+
+ /**
+ * Set the HTTP handler that actually returns a promise.
+ *
+ * @param callable $handler Accepts a request and array of options and
+ * returns a Promise.
+ */
+ public function setHandler(callable $handler)
+ {
+ $this->handler = $handler;
+ $this->cached = null;
+ }
+
+ /**
+ * Returns true if the builder has a handler.
+ *
+ * @return bool
+ */
+ public function hasHandler()
+ {
+ return (bool) $this->handler;
+ }
+
+ /**
+ * Unshift a middleware to the bottom of the stack.
+ *
+ * @param callable $middleware Middleware function
+ * @param string $name Name to register for this middleware.
+ */
+ public function unshift(callable $middleware, $name = null)
+ {
+ array_unshift($this->stack, [$middleware, $name]);
+ $this->cached = null;
+ }
+
+ /**
+ * Push a middleware to the top of the stack.
+ *
+ * @param callable $middleware Middleware function
+ * @param string $name Name to register for this middleware.
+ */
+ public function push(callable $middleware, $name = '')
+ {
+ $this->stack[] = [$middleware, $name];
+ $this->cached = null;
+ }
+
+ /**
+ * Add a middleware before another middleware by name.
+ *
+ * @param string $findName Middleware to find
+ * @param callable $middleware Middleware function
+ * @param string $withName Name to register for this middleware.
+ */
+ public function before($findName, callable $middleware, $withName = '')
+ {
+ $this->splice($findName, $withName, $middleware, true);
+ }
+
+ /**
+ * Add a middleware after another middleware by name.
+ *
+ * @param string $findName Middleware to find
+ * @param callable $middleware Middleware function
+ * @param string $withName Name to register for this middleware.
+ */
+ public function after($findName, callable $middleware, $withName = '')
+ {
+ $this->splice($findName, $withName, $middleware, false);
+ }
+
+ /**
+ * Remove a middleware by instance or name from the stack.
+ *
+ * @param callable|string $remove Middleware to remove by instance or name.
+ */
+ public function remove($remove)
+ {
+ $this->cached = null;
+ $idx = is_callable($remove) ? 0 : 1;
+ $this->stack = array_values(array_filter(
+ $this->stack,
+ function ($tuple) use ($idx, $remove) {
+ return $tuple[$idx] !== $remove;
+ }
+ ));
+ }
+
+ /**
+ * Compose the middleware and handler into a single callable function.
+ *
+ * @return callable
+ */
+ public function resolve()
+ {
+ if (!$this->cached) {
+ if (!($prev = $this->handler)) {
+ throw new \LogicException('No handler has been specified');
+ }
+
+ foreach (array_reverse($this->stack) as $fn) {
+ $prev = $fn[0]($prev);
+ }
+
+ $this->cached = $prev;
+ }
+
+ return $this->cached;
+ }
+
+ /**
+ * @param $name
+ * @return int
+ */
+ private function findByName($name)
+ {
+ foreach ($this->stack as $k => $v) {
+ if ($v[1] === $name) {
+ return $k;
+ }
+ }
+
+ throw new \InvalidArgumentException("Middleware not found: $name");
+ }
+
+ /**
+ * Splices a function into the middleware list at a specific position.
+ *
+ * @param $findName
+ * @param $withName
+ * @param callable $middleware
+ * @param $before
+ */
+ private function splice($findName, $withName, callable $middleware, $before)
+ {
+ $this->cached = null;
+ $idx = $this->findByName($findName);
+ $tuple = [$middleware, $withName];
+
+ if ($before) {
+ if ($idx === 0) {
+ array_unshift($this->stack, $tuple);
+ } else {
+ $replacement = [$tuple, $this->stack[$idx]];
+ array_splice($this->stack, $idx, 1, $replacement);
+ }
+ } elseif ($idx === count($this->stack) - 1) {
+ $this->stack[] = $tuple;
+ } else {
+ $replacement = [$this->stack[$idx], $tuple];
+ array_splice($this->stack, $idx, 1, $replacement);
+ }
+ }
+
+ /**
+ * Provides a debug string for a given callable.
+ *
+ * @param array|callable $fn Function to write as a string.
+ *
+ * @return string
+ */
+ private function debugCallable($fn)
+ {
+ if (is_string($fn)) {
+ return "callable({$fn})";
+ }
+
+ if (is_array($fn)) {
+ return is_string($fn[0])
+ ? "callable({$fn[0]}::{$fn[1]})"
+ : "callable(['" . get_class($fn[0]) . "', '{$fn[1]}'])";
+ }
+
+ return 'callable(' . spl_object_hash($fn) . ')';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/MessageFormatter.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/MessageFormatter.php
new file mode 100644
index 00000000..6b090a97
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/MessageFormatter.php
@@ -0,0 +1,182 @@
+<?php
+namespace GuzzleHttp;
+
+use Psr\Http\Message\MessageInterface;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * Formats log messages using variable substitutions for requests, responses,
+ * and other transactional data.
+ *
+ * The following variable substitutions are supported:
+ *
+ * - {request}: Full HTTP request message
+ * - {response}: Full HTTP response message
+ * - {ts}: ISO 8601 date in GMT
+ * - {date_iso_8601} ISO 8601 date in GMT
+ * - {date_common_log} Apache common log date using the configured timezone.
+ * - {host}: Host of the request
+ * - {method}: Method of the request
+ * - {uri}: URI of the request
+ * - {host}: Host of the request
+ * - {version}: Protocol version
+ * - {target}: Request target of the request (path + query + fragment)
+ * - {hostname}: Hostname of the machine that sent the request
+ * - {code}: Status code of the response (if available)
+ * - {phrase}: Reason phrase of the response (if available)
+ * - {error}: Any error messages (if available)
+ * - {req_header_*}: Replace `*` with the lowercased name of a request header to add to the message
+ * - {res_header_*}: Replace `*` with the lowercased name of a response header to add to the message
+ * - {req_headers}: Request headers
+ * - {res_headers}: Response headers
+ * - {req_body}: Request body
+ * - {res_body}: Response body
+ */
+class MessageFormatter
+{
+ /**
+ * Apache Common Log Format.
+ * @link http://httpd.apache.org/docs/2.4/logs.html#common
+ * @var string
+ */
+ const CLF = "{hostname} {req_header_User-Agent} - [{date_common_log}] \"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}";
+ const DEBUG = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}";
+ const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}';
+
+ /** @var string Template used to format log messages */
+ private $template;
+
+ /**
+ * @param string $template Log message template
+ */
+ public function __construct($template = self::CLF)
+ {
+ $this->template = $template ?: self::CLF;
+ }
+
+ /**
+ * Returns a formatted message string.
+ *
+ * @param RequestInterface $request Request that was sent
+ * @param ResponseInterface $response Response that was received
+ * @param \Exception $error Exception that was received
+ *
+ * @return string
+ */
+ public function format(
+ RequestInterface $request,
+ ResponseInterface $response = null,
+ \Exception $error = null
+ ) {
+ $cache = [];
+
+ return preg_replace_callback(
+ '/{\s*([A-Za-z_\-\.0-9]+)\s*}/',
+ function (array $matches) use ($request, $response, $error, &$cache) {
+
+ if (isset($cache[$matches[1]])) {
+ return $cache[$matches[1]];
+ }
+
+ $result = '';
+ switch ($matches[1]) {
+ case 'request':
+ $result = Psr7\str($request);
+ break;
+ case 'response':
+ $result = $response ? Psr7\str($response) : '';
+ break;
+ case 'req_headers':
+ $result = trim($request->getMethod()
+ . ' ' . $request->getRequestTarget())
+ . ' HTTP/' . $request->getProtocolVersion() . "\r\n"
+ . $this->headers($request);
+ break;
+ case 'res_headers':
+ $result = $response ?
+ sprintf(
+ 'HTTP/%s %d %s',
+ $response->getProtocolVersion(),
+ $response->getStatusCode(),
+ $response->getReasonPhrase()
+ ) . "\r\n" . $this->headers($response)
+ : 'NULL';
+ break;
+ case 'req_body':
+ $result = $request->getBody();
+ break;
+ case 'res_body':
+ $result = $response ? $response->getBody() : 'NULL';
+ break;
+ case 'ts':
+ case 'date_iso_8601':
+ $result = gmdate('c');
+ break;
+ case 'date_common_log':
+ $result = date('d/M/Y:H:i:s O');
+ break;
+ case 'method':
+ $result = $request->getMethod();
+ break;
+ case 'version':
+ $result = $request->getProtocolVersion();
+ break;
+ case 'uri':
+ case 'url':
+ $result = $request->getUri();
+ break;
+ case 'target':
+ $result = $request->getRequestTarget();
+ break;
+ case 'req_version':
+ $result = $request->getProtocolVersion();
+ break;
+ case 'res_version':
+ $result = $response
+ ? $response->getProtocolVersion()
+ : 'NULL';
+ break;
+ case 'host':
+ $result = $request->getHeaderLine('Host');
+ break;
+ case 'hostname':
+ $result = gethostname();
+ break;
+ case 'code':
+ $result = $response ? $response->getStatusCode() : 'NULL';
+ break;
+ case 'phrase':
+ $result = $response ? $response->getReasonPhrase() : 'NULL';
+ break;
+ case 'error':
+ $result = $error ? $error->getMessage() : 'NULL';
+ break;
+ default:
+ // handle prefixed dynamic headers
+ if (strpos($matches[1], 'req_header_') === 0) {
+ $result = $request->getHeaderLine(substr($matches[1], 11));
+ } elseif (strpos($matches[1], 'res_header_') === 0) {
+ $result = $response
+ ? $response->getHeaderLine(substr($matches[1], 11))
+ : 'NULL';
+ }
+ }
+
+ $cache[$matches[1]] = $result;
+ return $result;
+ },
+ $this->template
+ );
+ }
+
+ private function headers(MessageInterface $message)
+ {
+ $result = '';
+ foreach ($message->getHeaders() as $name => $values) {
+ $result .= $name . ': ' . implode(', ', $values) . "\r\n";
+ }
+
+ return trim($result);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Middleware.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Middleware.php
new file mode 100644
index 00000000..9d79bd26
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Middleware.php
@@ -0,0 +1,254 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Cookie\CookieJarInterface;
+use GuzzleHttp\Exception\RequestException;
+use GuzzleHttp\Promise\RejectedPromise;
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Log\LoggerInterface;
+use Psr\Log\LogLevel;
+
+/**
+ * Functions used to create and wrap handlers with handler middleware.
+ */
+final class Middleware
+{
+ /**
+ * Middleware that adds cookies to requests.
+ *
+ * The options array must be set to a CookieJarInterface in order to use
+ * cookies. This is typically handled for you by a client.
+ *
+ * @return callable Returns a function that accepts the next handler.
+ */
+ public static function cookies()
+ {
+ return function (callable $handler) {
+ return function ($request, array $options) use ($handler) {
+ if (empty($options['cookies'])) {
+ return $handler($request, $options);
+ } elseif (!($options['cookies'] instanceof CookieJarInterface)) {
+ throw new \InvalidArgumentException('cookies must be an instance of GuzzleHttp\Cookie\CookieJarInterface');
+ }
+ $cookieJar = $options['cookies'];
+ $request = $cookieJar->withCookieHeader($request);
+ return $handler($request, $options)
+ ->then(function ($response) use ($cookieJar, $request) {
+ $cookieJar->extractCookies($request, $response);
+ return $response;
+ }
+ );
+ };
+ };
+ }
+
+ /**
+ * Middleware that throws exceptions for 4xx or 5xx responses when the
+ * "http_error" request option is set to true.
+ *
+ * @return callable Returns a function that accepts the next handler.
+ */
+ public static function httpErrors()
+ {
+ return function (callable $handler) {
+ return function ($request, array $options) use ($handler) {
+ if (empty($options['http_errors'])) {
+ return $handler($request, $options);
+ }
+ return $handler($request, $options)->then(
+ function (ResponseInterface $response) use ($request, $handler) {
+ $code = $response->getStatusCode();
+ if ($code < 400) {
+ return $response;
+ }
+ throw RequestException::create($request, $response);
+ }
+ );
+ };
+ };
+ }
+
+ /**
+ * Middleware that pushes history data to an ArrayAccess container.
+ *
+ * @param array $container Container to hold the history (by reference).
+ *
+ * @return callable Returns a function that accepts the next handler.
+ * @throws \InvalidArgumentException if container is not an array or ArrayAccess.
+ */
+ public static function history(&$container)
+ {
+ if (!is_array($container) && !$container instanceof \ArrayAccess) {
+ throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess');
+ }
+
+ return function (callable $handler) use (&$container) {
+ return function ($request, array $options) use ($handler, &$container) {
+ return $handler($request, $options)->then(
+ function ($value) use ($request, &$container, $options) {
+ $container[] = [
+ 'request' => $request,
+ 'response' => $value,
+ 'error' => null,
+ 'options' => $options
+ ];
+ return $value;
+ },
+ function ($reason) use ($request, &$container, $options) {
+ $container[] = [
+ 'request' => $request,
+ 'response' => null,
+ 'error' => $reason,
+ 'options' => $options
+ ];
+ return \GuzzleHttp\Promise\rejection_for($reason);
+ }
+ );
+ };
+ };
+ }
+
+ /**
+ * Middleware that invokes a callback before and after sending a request.
+ *
+ * The provided listener cannot modify or alter the response. It simply
+ * "taps" into the chain to be notified before returning the promise. The
+ * before listener accepts a request and options array, and the after
+ * listener accepts a request, options array, and response promise.
+ *
+ * @param callable $before Function to invoke before forwarding the request.
+ * @param callable $after Function invoked after forwarding.
+ *
+ * @return callable Returns a function that accepts the next handler.
+ */
+ public static function tap(callable $before = null, callable $after = null)
+ {
+ return function (callable $handler) use ($before, $after) {
+ return function ($request, array $options) use ($handler, $before, $after) {
+ if ($before) {
+ $before($request, $options);
+ }
+ $response = $handler($request, $options);
+ if ($after) {
+ $after($request, $options, $response);
+ }
+ return $response;
+ };
+ };
+ }
+
+ /**
+ * Middleware that handles request redirects.
+ *
+ * @return callable Returns a function that accepts the next handler.
+ */
+ public static function redirect()
+ {
+ return function (callable $handler) {
+ return new RedirectMiddleware($handler);
+ };
+ }
+
+ /**
+ * Middleware that retries requests based on the boolean result of
+ * invoking the provided "decider" function.
+ *
+ * If no delay function is provided, a simple implementation of exponential
+ * backoff will be utilized.
+ *
+ * @param callable $decider Function that accepts the number of retries,
+ * a request, [response], and [exception] and
+ * returns true if the request is to be retried.
+ * @param callable $delay Function that accepts the number of retries and
+ * returns the number of milliseconds to delay.
+ *
+ * @return callable Returns a function that accepts the next handler.
+ */
+ public static function retry(callable $decider, callable $delay = null)
+ {
+ return function (callable $handler) use ($decider, $delay) {
+ return new RetryMiddleware($decider, $handler, $delay);
+ };
+ }
+
+ /**
+ * Middleware that logs requests, responses, and errors using a message
+ * formatter.
+ *
+ * @param LoggerInterface $logger Logs messages.
+ * @param MessageFormatter $formatter Formatter used to create message strings.
+ * @param string $logLevel Level at which to log requests.
+ *
+ * @return callable Returns a function that accepts the next handler.
+ */
+ public static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = LogLevel::INFO)
+ {
+ return function (callable $handler) use ($logger, $formatter, $logLevel) {
+ return function ($request, array $options) use ($handler, $logger, $formatter, $logLevel) {
+ return $handler($request, $options)->then(
+ function ($response) use ($logger, $request, $formatter, $logLevel) {
+ $message = $formatter->format($request, $response);
+ $logger->log($logLevel, $message);
+ return $response;
+ },
+ function ($reason) use ($logger, $request, $formatter) {
+ $response = $reason instanceof RequestException
+ ? $reason->getResponse()
+ : null;
+ $message = $formatter->format($request, $response, $reason);
+ $logger->notice($message);
+ return \GuzzleHttp\Promise\rejection_for($reason);
+ }
+ );
+ };
+ };
+ }
+
+ /**
+ * This middleware adds a default content-type if possible, a default
+ * content-length or transfer-encoding header, and the expect header.
+ *
+ * @return callable
+ */
+ public static function prepareBody()
+ {
+ return function (callable $handler) {
+ return new PrepareBodyMiddleware($handler);
+ };
+ }
+
+ /**
+ * Middleware that applies a map function to the request before passing to
+ * the next handler.
+ *
+ * @param callable $fn Function that accepts a RequestInterface and returns
+ * a RequestInterface.
+ * @return callable
+ */
+ public static function mapRequest(callable $fn)
+ {
+ return function (callable $handler) use ($fn) {
+ return function ($request, array $options) use ($handler, $fn) {
+ return $handler($fn($request), $options);
+ };
+ };
+ }
+
+ /**
+ * Middleware that applies a map function to the resolved promise's
+ * response.
+ *
+ * @param callable $fn Function that accepts a ResponseInterface and
+ * returns a ResponseInterface.
+ * @return callable
+ */
+ public static function mapResponse(callable $fn)
+ {
+ return function (callable $handler) use ($fn) {
+ return function ($request, array $options) use ($handler, $fn) {
+ return $handler($request, $options)->then($fn);
+ };
+ };
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Pool.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Pool.php
new file mode 100644
index 00000000..8f1be33c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/Pool.php
@@ -0,0 +1,123 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Promise\PromisorInterface;
+use Psr\Http\Message\RequestInterface;
+use GuzzleHttp\Promise\EachPromise;
+
+/**
+ * Sends and iterator of requests concurrently using a capped pool size.
+ *
+ * The pool will read from an iterator until it is cancelled or until the
+ * iterator is consumed. When a request is yielded, the request is sent after
+ * applying the "request_options" request options (if provided in the ctor).
+ *
+ * When a function is yielded by the iterator, the function is provided the
+ * "request_options" array that should be merged on top of any existing
+ * options, and the function MUST then return a wait-able promise.
+ */
+class Pool implements PromisorInterface
+{
+ /** @var EachPromise */
+ private $each;
+
+ /**
+ * @param ClientInterface $client Client used to send the requests.
+ * @param array|\Iterator $requests Requests or functions that return
+ * requests to send concurrently.
+ * @param array $config Associative array of options
+ * - concurrency: (int) Maximum number of requests to send concurrently
+ * - options: Array of request options to apply to each request.
+ * - fulfilled: (callable) Function to invoke when a request completes.
+ * - rejected: (callable) Function to invoke when a request is rejected.
+ */
+ public function __construct(
+ ClientInterface $client,
+ $requests,
+ array $config = []
+ ) {
+ // Backwards compatibility.
+ if (isset($config['pool_size'])) {
+ $config['concurrency'] = $config['pool_size'];
+ } elseif (!isset($config['concurrency'])) {
+ $config['concurrency'] = 25;
+ }
+
+ if (isset($config['options'])) {
+ $opts = $config['options'];
+ unset($config['options']);
+ } else {
+ $opts = [];
+ }
+
+ $iterable = \GuzzleHttp\Promise\iter_for($requests);
+ $requests = function () use ($iterable, $client, $opts) {
+ foreach ($iterable as $key => $rfn) {
+ if ($rfn instanceof RequestInterface) {
+ yield $key => $client->sendAsync($rfn, $opts);
+ } elseif (is_callable($rfn)) {
+ yield $key => $rfn($opts);
+ } else {
+ throw new \InvalidArgumentException('Each value yielded by '
+ . 'the iterator must be a Psr7\Http\Message\RequestInterface '
+ . 'or a callable that returns a promise that fulfills '
+ . 'with a Psr7\Message\Http\ResponseInterface object.');
+ }
+ }
+ };
+
+ $this->each = new EachPromise($requests(), $config);
+ }
+
+ public function promise()
+ {
+ return $this->each->promise();
+ }
+
+ /**
+ * Sends multiple requests concurrently and returns an array of responses
+ * and exceptions that uses the same ordering as the provided requests.
+ *
+ * IMPORTANT: This method keeps every request and response in memory, and
+ * as such, is NOT recommended when sending a large number or an
+ * indeterminate number of requests concurrently.
+ *
+ * @param ClientInterface $client Client used to send the requests
+ * @param array|\Iterator $requests Requests to send concurrently.
+ * @param array $options Passes through the options available in
+ * {@see GuzzleHttp\Pool::__construct}
+ *
+ * @return array Returns an array containing the response or an exception
+ * in the same order that the requests were sent.
+ * @throws \InvalidArgumentException if the event format is incorrect.
+ */
+ public static function batch(
+ ClientInterface $client,
+ $requests,
+ array $options = []
+ ) {
+ $res = [];
+ self::cmpCallback($options, 'fulfilled', $res);
+ self::cmpCallback($options, 'rejected', $res);
+ $pool = new static($client, $requests, $options);
+ $pool->promise()->wait();
+ ksort($res);
+
+ return $res;
+ }
+
+ private static function cmpCallback(array &$options, $name, array &$results)
+ {
+ if (!isset($options[$name])) {
+ $options[$name] = function ($v, $k) use (&$results) {
+ $results[$k] = $v;
+ };
+ } else {
+ $currentFn = $options[$name];
+ $options[$name] = function ($v, $k) use (&$results, $currentFn) {
+ $currentFn($v, $k);
+ $results[$k] = $v;
+ };
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
new file mode 100644
index 00000000..2eb95f9b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
@@ -0,0 +1,106 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Promise\PromiseInterface;
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\RequestInterface;
+
+/**
+ * Prepares requests that contain a body, adding the Content-Length,
+ * Content-Type, and Expect headers.
+ */
+class PrepareBodyMiddleware
+{
+ /** @var callable */
+ private $nextHandler;
+
+ /**
+ * @param callable $nextHandler Next handler to invoke.
+ */
+ public function __construct(callable $nextHandler)
+ {
+ $this->nextHandler = $nextHandler;
+ }
+
+ /**
+ * @param RequestInterface $request
+ * @param array $options
+ *
+ * @return PromiseInterface
+ */
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ $fn = $this->nextHandler;
+
+ // Don't do anything if the request has no body.
+ if ($request->getBody()->getSize() === 0) {
+ return $fn($request, $options);
+ }
+
+ $modify = [];
+
+ // Add a default content-type if possible.
+ if (!$request->hasHeader('Content-Type')) {
+ if ($uri = $request->getBody()->getMetadata('uri')) {
+ if ($type = Psr7\mimetype_from_filename($uri)) {
+ $modify['set_headers']['Content-Type'] = $type;
+ }
+ }
+ }
+
+ // Add a default content-length or transfer-encoding header.
+ if (!$request->hasHeader('Content-Length')
+ && !$request->hasHeader('Transfer-Encoding')
+ ) {
+ $size = $request->getBody()->getSize();
+ if ($size !== null) {
+ $modify['set_headers']['Content-Length'] = $size;
+ } else {
+ $modify['set_headers']['Transfer-Encoding'] = 'chunked';
+ }
+ }
+
+ // Add the expect header if needed.
+ $this->addExpectHeader($request, $options, $modify);
+
+ return $fn(Psr7\modify_request($request, $modify), $options);
+ }
+
+ private function addExpectHeader(
+ RequestInterface $request,
+ array $options,
+ array &$modify
+ ) {
+ // Determine if the Expect header should be used
+ if ($request->hasHeader('Expect')) {
+ return;
+ }
+
+ $expect = isset($options['expect']) ? $options['expect'] : null;
+
+ // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0
+ if ($expect === false || $request->getProtocolVersion() < 1.1) {
+ return;
+ }
+
+ // The expect header is unconditionally enabled
+ if ($expect === true) {
+ $modify['set_headers']['Expect'] = '100-Continue';
+ return;
+ }
+
+ // By default, send the expect header when the payload is > 1mb
+ if ($expect === null) {
+ $expect = 1048576;
+ }
+
+ // Always add if the body cannot be rewound, the size cannot be
+ // determined, or the size is greater than the cutoff threshold
+ $body = $request->getBody();
+ $size = $body->getSize();
+
+ if ($size === null || $size >= (int) $expect || !$body->isSeekable()) {
+ $modify['set_headers']['Expect'] = '100-Continue';
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RedirectMiddleware.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RedirectMiddleware.php
new file mode 100644
index 00000000..131b7717
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RedirectMiddleware.php
@@ -0,0 +1,237 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Exception\BadResponseException;
+use GuzzleHttp\Exception\TooManyRedirectsException;
+use GuzzleHttp\Promise\PromiseInterface;
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\UriInterface;
+
+/**
+ * Request redirect middleware.
+ *
+ * Apply this middleware like other middleware using
+ * {@see GuzzleHttp\Middleware::redirect()}.
+ */
+class RedirectMiddleware
+{
+ const HISTORY_HEADER = 'X-Guzzle-Redirect-History';
+
+ const STATUS_HISTORY_HEADER = 'X-Guzzle-Redirect-Status-History';
+
+ public static $defaultSettings = [
+ 'max' => 5,
+ 'protocols' => ['http', 'https'],
+ 'strict' => false,
+ 'referer' => false,
+ 'track_redirects' => false,
+ ];
+
+ /** @var callable */
+ private $nextHandler;
+
+ /**
+ * @param callable $nextHandler Next handler to invoke.
+ */
+ public function __construct(callable $nextHandler)
+ {
+ $this->nextHandler = $nextHandler;
+ }
+
+ /**
+ * @param RequestInterface $request
+ * @param array $options
+ *
+ * @return PromiseInterface
+ */
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ $fn = $this->nextHandler;
+
+ if (empty($options['allow_redirects'])) {
+ return $fn($request, $options);
+ }
+
+ if ($options['allow_redirects'] === true) {
+ $options['allow_redirects'] = self::$defaultSettings;
+ } elseif (!is_array($options['allow_redirects'])) {
+ throw new \InvalidArgumentException('allow_redirects must be true, false, or array');
+ } else {
+ // Merge the default settings with the provided settings
+ $options['allow_redirects'] += self::$defaultSettings;
+ }
+
+ if (empty($options['allow_redirects']['max'])) {
+ return $fn($request, $options);
+ }
+
+ return $fn($request, $options)
+ ->then(function (ResponseInterface $response) use ($request, $options) {
+ return $this->checkRedirect($request, $options, $response);
+ });
+ }
+
+ /**
+ * @param RequestInterface $request
+ * @param array $options
+ * @param ResponseInterface|PromiseInterface $response
+ *
+ * @return ResponseInterface|PromiseInterface
+ */
+ public function checkRedirect(
+ RequestInterface $request,
+ array $options,
+ ResponseInterface $response
+ ) {
+ if (substr($response->getStatusCode(), 0, 1) != '3'
+ || !$response->hasHeader('Location')
+ ) {
+ return $response;
+ }
+
+ $this->guardMax($request, $options);
+ $nextRequest = $this->modifyRequest($request, $options, $response);
+
+ if (isset($options['allow_redirects']['on_redirect'])) {
+ call_user_func(
+ $options['allow_redirects']['on_redirect'],
+ $request,
+ $response,
+ $nextRequest->getUri()
+ );
+ }
+
+ /** @var PromiseInterface|ResponseInterface $promise */
+ $promise = $this($nextRequest, $options);
+
+ // Add headers to be able to track history of redirects.
+ if (!empty($options['allow_redirects']['track_redirects'])) {
+ return $this->withTracking(
+ $promise,
+ (string) $nextRequest->getUri(),
+ $response->getStatusCode()
+ );
+ }
+
+ return $promise;
+ }
+
+ private function withTracking(PromiseInterface $promise, $uri, $statusCode)
+ {
+ return $promise->then(
+ function (ResponseInterface $response) use ($uri, $statusCode) {
+ // Note that we are pushing to the front of the list as this
+ // would be an earlier response than what is currently present
+ // in the history header.
+ $historyHeader = $response->getHeader(self::HISTORY_HEADER);
+ $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
+ array_unshift($historyHeader, $uri);
+ array_unshift($statusHeader, $statusCode);
+ return $response->withHeader(self::HISTORY_HEADER, $historyHeader)
+ ->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader);
+ }
+ );
+ }
+
+ private function guardMax(RequestInterface $request, array &$options)
+ {
+ $current = isset($options['__redirect_count'])
+ ? $options['__redirect_count']
+ : 0;
+ $options['__redirect_count'] = $current + 1;
+ $max = $options['allow_redirects']['max'];
+
+ if ($options['__redirect_count'] > $max) {
+ throw new TooManyRedirectsException(
+ "Will not follow more than {$max} redirects",
+ $request
+ );
+ }
+ }
+
+ /**
+ * @param RequestInterface $request
+ * @param array $options
+ * @param ResponseInterface $response
+ *
+ * @return RequestInterface
+ */
+ public function modifyRequest(
+ RequestInterface $request,
+ array $options,
+ ResponseInterface $response
+ ) {
+ // Request modifications to apply.
+ $modify = [];
+ $protocols = $options['allow_redirects']['protocols'];
+
+ // Use a GET request if this is an entity enclosing request and we are
+ // not forcing RFC compliance, but rather emulating what all browsers
+ // would do.
+ $statusCode = $response->getStatusCode();
+ if ($statusCode == 303 ||
+ ($statusCode <= 302 && $request->getBody() && !$options['allow_redirects']['strict'])
+ ) {
+ $modify['method'] = 'GET';
+ $modify['body'] = '';
+ }
+
+ $modify['uri'] = $this->redirectUri($request, $response, $protocols);
+ Psr7\rewind_body($request);
+
+ // Add the Referer header if it is told to do so and only
+ // add the header if we are not redirecting from https to http.
+ if ($options['allow_redirects']['referer']
+ && $modify['uri']->getScheme() === $request->getUri()->getScheme()
+ ) {
+ $uri = $request->getUri()->withUserInfo('', '');
+ $modify['set_headers']['Referer'] = (string) $uri;
+ } else {
+ $modify['remove_headers'][] = 'Referer';
+ }
+
+ // Remove Authorization header if host is different.
+ if ($request->getUri()->getHost() !== $modify['uri']->getHost()) {
+ $modify['remove_headers'][] = 'Authorization';
+ }
+
+ return Psr7\modify_request($request, $modify);
+ }
+
+ /**
+ * Set the appropriate URL on the request based on the location header
+ *
+ * @param RequestInterface $request
+ * @param ResponseInterface $response
+ * @param array $protocols
+ *
+ * @return UriInterface
+ */
+ private function redirectUri(
+ RequestInterface $request,
+ ResponseInterface $response,
+ array $protocols
+ ) {
+ $location = Psr7\UriResolver::resolve(
+ $request->getUri(),
+ new Psr7\Uri($response->getHeaderLine('Location'))
+ );
+
+ // Ensure that the redirect URI is allowed based on the protocols.
+ if (!in_array($location->getScheme(), $protocols)) {
+ throw new BadResponseException(
+ sprintf(
+ 'Redirect URI, %s, does not use one of the allowed redirect protocols: %s',
+ $location,
+ implode(', ', $protocols)
+ ),
+ $request,
+ $response
+ );
+ }
+
+ return $location;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RequestOptions.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RequestOptions.php
new file mode 100644
index 00000000..c6aacfb1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RequestOptions.php
@@ -0,0 +1,255 @@
+<?php
+namespace GuzzleHttp;
+
+/**
+ * This class contains a list of built-in Guzzle request options.
+ *
+ * More documentation for each option can be found at http://guzzlephp.org/.
+ *
+ * @link http://docs.guzzlephp.org/en/v6/request-options.html
+ */
+final class RequestOptions
+{
+ /**
+ * allow_redirects: (bool|array) Controls redirect behavior. Pass false
+ * to disable redirects, pass true to enable redirects, pass an
+ * associative to provide custom redirect settings. Defaults to "false".
+ * This option only works if your handler has the RedirectMiddleware. When
+ * passing an associative array, you can provide the following key value
+ * pairs:
+ *
+ * - max: (int, default=5) maximum number of allowed redirects.
+ * - strict: (bool, default=false) Set to true to use strict redirects
+ * meaning redirect POST requests with POST requests vs. doing what most
+ * browsers do which is redirect POST requests with GET requests
+ * - referer: (bool, default=true) Set to false to disable the Referer
+ * header.
+ * - protocols: (array, default=['http', 'https']) Allowed redirect
+ * protocols.
+ * - on_redirect: (callable) PHP callable that is invoked when a redirect
+ * is encountered. The callable is invoked with the request, the redirect
+ * response that was received, and the effective URI. Any return value
+ * from the on_redirect function is ignored.
+ */
+ const ALLOW_REDIRECTS = 'allow_redirects';
+
+ /**
+ * auth: (array) Pass an array of HTTP authentication parameters to use
+ * with the request. The array must contain the username in index [0],
+ * the password in index [1], and you can optionally provide a built-in
+ * authentication type in index [2]. Pass null to disable authentication
+ * for a request.
+ */
+ const AUTH = 'auth';
+
+ /**
+ * body: (resource|string|null|int|float|StreamInterface|callable|\Iterator)
+ * Body to send in the request.
+ */
+ const BODY = 'body';
+
+ /**
+ * cert: (string|array) Set to a string to specify the path to a file
+ * containing a PEM formatted SSL client side certificate. If a password
+ * is required, then set cert to an array containing the path to the PEM
+ * file in the first array element followed by the certificate password
+ * in the second array element.
+ */
+ const CERT = 'cert';
+
+ /**
+ * cookies: (bool|GuzzleHttp\Cookie\CookieJarInterface, default=false)
+ * Specifies whether or not cookies are used in a request or what cookie
+ * jar to use or what cookies to send. This option only works if your
+ * handler has the `cookie` middleware. Valid values are `false` and
+ * an instance of {@see GuzzleHttp\Cookie\CookieJarInterface}.
+ */
+ const COOKIES = 'cookies';
+
+ /**
+ * connect_timeout: (float, default=0) Float describing the number of
+ * seconds to wait while trying to connect to a server. Use 0 to wait
+ * indefinitely (the default behavior).
+ */
+ const CONNECT_TIMEOUT = 'connect_timeout';
+
+ /**
+ * debug: (bool|resource) Set to true or set to a PHP stream returned by
+ * fopen() enable debug output with the HTTP handler used to send a
+ * request.
+ */
+ const DEBUG = 'debug';
+
+ /**
+ * decode_content: (bool, default=true) Specify whether or not
+ * Content-Encoding responses (gzip, deflate, etc.) are automatically
+ * decoded.
+ */
+ const DECODE_CONTENT = 'decode_content';
+
+ /**
+ * delay: (int) The amount of time to delay before sending in milliseconds.
+ */
+ const DELAY = 'delay';
+
+ /**
+ * expect: (bool|integer) Controls the behavior of the
+ * "Expect: 100-Continue" header.
+ *
+ * Set to `true` to enable the "Expect: 100-Continue" header for all
+ * requests that sends a body. Set to `false` to disable the
+ * "Expect: 100-Continue" header for all requests. Set to a number so that
+ * the size of the payload must be greater than the number in order to send
+ * the Expect header. Setting to a number will send the Expect header for
+ * all requests in which the size of the payload cannot be determined or
+ * where the body is not rewindable.
+ *
+ * By default, Guzzle will add the "Expect: 100-Continue" header when the
+ * size of the body of a request is greater than 1 MB and a request is
+ * using HTTP/1.1.
+ */
+ const EXPECT = 'expect';
+
+ /**
+ * form_params: (array) Associative array of form field names to values
+ * where each value is a string or array of strings. Sets the Content-Type
+ * header to application/x-www-form-urlencoded when no Content-Type header
+ * is already present.
+ */
+ const FORM_PARAMS = 'form_params';
+
+ /**
+ * headers: (array) Associative array of HTTP headers. Each value MUST be
+ * a string or array of strings.
+ */
+ const HEADERS = 'headers';
+
+ /**
+ * http_errors: (bool, default=true) Set to false to disable exceptions
+ * when a non- successful HTTP response is received. By default,
+ * exceptions will be thrown for 4xx and 5xx responses. This option only
+ * works if your handler has the `httpErrors` middleware.
+ */
+ const HTTP_ERRORS = 'http_errors';
+
+ /**
+ * json: (mixed) Adds JSON data to a request. The provided value is JSON
+ * encoded and a Content-Type header of application/json will be added to
+ * the request if no Content-Type header is already present.
+ */
+ const JSON = 'json';
+
+ /**
+ * multipart: (array) Array of associative arrays, each containing a
+ * required "name" key mapping to the form field, name, a required
+ * "contents" key mapping to a StreamInterface|resource|string, an
+ * optional "headers" associative array of custom headers, and an
+ * optional "filename" key mapping to a string to send as the filename in
+ * the part. If no "filename" key is present, then no "filename" attribute
+ * will be added to the part.
+ */
+ const MULTIPART = 'multipart';
+
+ /**
+ * on_headers: (callable) A callable that is invoked when the HTTP headers
+ * of the response have been received but the body has not yet begun to
+ * download.
+ */
+ const ON_HEADERS = 'on_headers';
+
+ /**
+ * on_stats: (callable) allows you to get access to transfer statistics of
+ * a request and access the lower level transfer details of the handler
+ * associated with your client. ``on_stats`` is a callable that is invoked
+ * when a handler has finished sending a request. The callback is invoked
+ * with transfer statistics about the request, the response received, or
+ * the error encountered. Included in the data is the total amount of time
+ * taken to send the request.
+ */
+ const ON_STATS = 'on_stats';
+
+ /**
+ * progress: (callable) Defines a function to invoke when transfer
+ * progress is made. The function accepts the following positional
+ * arguments: the total number of bytes expected to be downloaded, the
+ * number of bytes downloaded so far, the number of bytes expected to be
+ * uploaded, the number of bytes uploaded so far.
+ */
+ const PROGRESS = 'progress';
+
+ /**
+ * proxy: (string|array) Pass a string to specify an HTTP proxy, or an
+ * array to specify different proxies for different protocols (where the
+ * key is the protocol and the value is a proxy string).
+ */
+ const PROXY = 'proxy';
+
+ /**
+ * query: (array|string) Associative array of query string values to add
+ * to the request. This option uses PHP's http_build_query() to create
+ * the string representation. Pass a string value if you need more
+ * control than what this method provides
+ */
+ const QUERY = 'query';
+
+ /**
+ * sink: (resource|string|StreamInterface) Where the data of the
+ * response is written to. Defaults to a PHP temp stream. Providing a
+ * string will write data to a file by the given name.
+ */
+ const SINK = 'sink';
+
+ /**
+ * synchronous: (bool) Set to true to inform HTTP handlers that you intend
+ * on waiting on the response. This can be useful for optimizations. Note
+ * that a promise is still returned if you are using one of the async
+ * client methods.
+ */
+ const SYNCHRONOUS = 'synchronous';
+
+ /**
+ * ssl_key: (array|string) Specify the path to a file containing a private
+ * SSL key in PEM format. If a password is required, then set to an array
+ * containing the path to the SSL key in the first array element followed
+ * by the password required for the certificate in the second element.
+ */
+ const SSL_KEY = 'ssl_key';
+
+ /**
+ * stream: Set to true to attempt to stream a response rather than
+ * download it all up-front.
+ */
+ const STREAM = 'stream';
+
+ /**
+ * verify: (bool|string, default=true) Describes the SSL certificate
+ * verification behavior of a request. Set to true to enable SSL
+ * certificate verification using the system CA bundle when available
+ * (the default). Set to false to disable certificate verification (this
+ * is insecure!). Set to a string to provide the path to a CA bundle on
+ * disk to enable verification using a custom certificate.
+ */
+ const VERIFY = 'verify';
+
+ /**
+ * timeout: (float, default=0) Float describing the timeout of the
+ * request in seconds. Use 0 to wait indefinitely (the default behavior).
+ */
+ const TIMEOUT = 'timeout';
+
+ /**
+ * read_timeout: (float, default=default_socket_timeout ini setting) Float describing
+ * the body read timeout, for stream requests.
+ */
+ const READ_TIMEOUT = 'read_timeout';
+
+ /**
+ * version: (float) Specifies the HTTP protocol version to attempt to use.
+ */
+ const VERSION = 'version';
+
+ /**
+ * force_ip_resolve: (bool) Force client to use only ipv4 or ipv6 protocol
+ */
+ const FORCE_IP_RESOLVE = 'force_ip_resolve';
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RetryMiddleware.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RetryMiddleware.php
new file mode 100644
index 00000000..f27090fd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/RetryMiddleware.php
@@ -0,0 +1,112 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Promise\PromiseInterface;
+use GuzzleHttp\Promise\RejectedPromise;
+use GuzzleHttp\Psr7;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+/**
+ * Middleware that retries requests based on the boolean result of
+ * invoking the provided "decider" function.
+ */
+class RetryMiddleware
+{
+ /** @var callable */
+ private $nextHandler;
+
+ /** @var callable */
+ private $decider;
+
+ /**
+ * @param callable $decider Function that accepts the number of retries,
+ * a request, [response], and [exception] and
+ * returns true if the request is to be
+ * retried.
+ * @param callable $nextHandler Next handler to invoke.
+ * @param callable $delay Function that accepts the number of retries
+ * and [response] and returns the number of
+ * milliseconds to delay.
+ */
+ public function __construct(
+ callable $decider,
+ callable $nextHandler,
+ callable $delay = null
+ ) {
+ $this->decider = $decider;
+ $this->nextHandler = $nextHandler;
+ $this->delay = $delay ?: __CLASS__ . '::exponentialDelay';
+ }
+
+ /**
+ * Default exponential backoff delay function.
+ *
+ * @param $retries
+ *
+ * @return int
+ */
+ public static function exponentialDelay($retries)
+ {
+ return (int) pow(2, $retries - 1);
+ }
+
+ /**
+ * @param RequestInterface $request
+ * @param array $options
+ *
+ * @return PromiseInterface
+ */
+ public function __invoke(RequestInterface $request, array $options)
+ {
+ if (!isset($options['retries'])) {
+ $options['retries'] = 0;
+ }
+
+ $fn = $this->nextHandler;
+ return $fn($request, $options)
+ ->then(
+ $this->onFulfilled($request, $options),
+ $this->onRejected($request, $options)
+ );
+ }
+
+ private function onFulfilled(RequestInterface $req, array $options)
+ {
+ return function ($value) use ($req, $options) {
+ if (!call_user_func(
+ $this->decider,
+ $options['retries'],
+ $req,
+ $value,
+ null
+ )) {
+ return $value;
+ }
+ return $this->doRetry($req, $options, $value);
+ };
+ }
+
+ private function onRejected(RequestInterface $req, array $options)
+ {
+ return function ($reason) use ($req, $options) {
+ if (!call_user_func(
+ $this->decider,
+ $options['retries'],
+ $req,
+ null,
+ $reason
+ )) {
+ return \GuzzleHttp\Promise\rejection_for($reason);
+ }
+ return $this->doRetry($req, $options);
+ };
+ }
+
+ private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null)
+ {
+ $options['delay'] = call_user_func($this->delay, ++$options['retries'], $response);
+
+ return $this($request, $options);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/TransferStats.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/TransferStats.php
new file mode 100644
index 00000000..15f717e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/TransferStats.php
@@ -0,0 +1,126 @@
+<?php
+namespace GuzzleHttp;
+
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\UriInterface;
+
+/**
+ * Represents data at the point after it was transferred either successfully
+ * or after a network error.
+ */
+final class TransferStats
+{
+ private $request;
+ private $response;
+ private $transferTime;
+ private $handlerStats;
+ private $handlerErrorData;
+
+ /**
+ * @param RequestInterface $request Request that was sent.
+ * @param ResponseInterface $response Response received (if any)
+ * @param null $transferTime Total handler transfer time.
+ * @param mixed $handlerErrorData Handler error data.
+ * @param array $handlerStats Handler specific stats.
+ */
+ public function __construct(
+ RequestInterface $request,
+ ResponseInterface $response = null,
+ $transferTime = null,
+ $handlerErrorData = null,
+ $handlerStats = []
+ ) {
+ $this->request = $request;
+ $this->response = $response;
+ $this->transferTime = $transferTime;
+ $this->handlerErrorData = $handlerErrorData;
+ $this->handlerStats = $handlerStats;
+ }
+
+ /**
+ * @return RequestInterface
+ */
+ public function getRequest()
+ {
+ return $this->request;
+ }
+
+ /**
+ * Returns the response that was received (if any).
+ *
+ * @return ResponseInterface|null
+ */
+ public function getResponse()
+ {
+ return $this->response;
+ }
+
+ /**
+ * Returns true if a response was received.
+ *
+ * @return bool
+ */
+ public function hasResponse()
+ {
+ return $this->response !== null;
+ }
+
+ /**
+ * Gets handler specific error data.
+ *
+ * This might be an exception, a integer representing an error code, or
+ * anything else. Relying on this value assumes that you know what handler
+ * you are using.
+ *
+ * @return mixed
+ */
+ public function getHandlerErrorData()
+ {
+ return $this->handlerErrorData;
+ }
+
+ /**
+ * Get the effective URI the request was sent to.
+ *
+ * @return UriInterface
+ */
+ public function getEffectiveUri()
+ {
+ return $this->request->getUri();
+ }
+
+ /**
+ * Get the estimated time the request was being transferred by the handler.
+ *
+ * @return float Time in seconds.
+ */
+ public function getTransferTime()
+ {
+ return $this->transferTime;
+ }
+
+ /**
+ * Gets an array of all of the handler specific transfer data.
+ *
+ * @return array
+ */
+ public function getHandlerStats()
+ {
+ return $this->handlerStats;
+ }
+
+ /**
+ * Get a specific handler statistic from the handler by name.
+ *
+ * @param string $stat Handler specific transfer stat to retrieve.
+ *
+ * @return mixed|null
+ */
+ public function getHandlerStat($stat)
+ {
+ return isset($this->handlerStats[$stat])
+ ? $this->handlerStats[$stat]
+ : null;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/UriTemplate.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/UriTemplate.php
new file mode 100644
index 00000000..0b1623ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/UriTemplate.php
@@ -0,0 +1,241 @@
+<?php
+namespace GuzzleHttp;
+
+/**
+ * Expands URI templates. Userland implementation of PECL uri_template.
+ *
+ * @link http://tools.ietf.org/html/rfc6570
+ */
+class UriTemplate
+{
+ /** @var string URI template */
+ private $template;
+
+ /** @var array Variables to use in the template expansion */
+ private $variables;
+
+ /** @var array Hash for quick operator lookups */
+ private static $operatorHash = [
+ '' => ['prefix' => '', 'joiner' => ',', 'query' => false],
+ '+' => ['prefix' => '', 'joiner' => ',', 'query' => false],
+ '#' => ['prefix' => '#', 'joiner' => ',', 'query' => false],
+ '.' => ['prefix' => '.', 'joiner' => '.', 'query' => false],
+ '/' => ['prefix' => '/', 'joiner' => '/', 'query' => false],
+ ';' => ['prefix' => ';', 'joiner' => ';', 'query' => true],
+ '?' => ['prefix' => '?', 'joiner' => '&', 'query' => true],
+ '&' => ['prefix' => '&', 'joiner' => '&', 'query' => true]
+ ];
+
+ /** @var array Delimiters */
+ private static $delims = [':', '/', '?', '#', '[', ']', '@', '!', '$',
+ '&', '\'', '(', ')', '*', '+', ',', ';', '='];
+
+ /** @var array Percent encoded delimiters */
+ private static $delimsPct = ['%3A', '%2F', '%3F', '%23', '%5B', '%5D',
+ '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C',
+ '%3B', '%3D'];
+
+ public function expand($template, array $variables)
+ {
+ if (false === strpos($template, '{')) {
+ return $template;
+ }
+
+ $this->template = $template;
+ $this->variables = $variables;
+
+ return preg_replace_callback(
+ '/\{([^\}]+)\}/',
+ [$this, 'expandMatch'],
+ $this->template
+ );
+ }
+
+ /**
+ * Parse an expression into parts
+ *
+ * @param string $expression Expression to parse
+ *
+ * @return array Returns an associative array of parts
+ */
+ private function parseExpression($expression)
+ {
+ $result = [];
+
+ if (isset(self::$operatorHash[$expression[0]])) {
+ $result['operator'] = $expression[0];
+ $expression = substr($expression, 1);
+ } else {
+ $result['operator'] = '';
+ }
+
+ foreach (explode(',', $expression) as $value) {
+ $value = trim($value);
+ $varspec = [];
+ if ($colonPos = strpos($value, ':')) {
+ $varspec['value'] = substr($value, 0, $colonPos);
+ $varspec['modifier'] = ':';
+ $varspec['position'] = (int) substr($value, $colonPos + 1);
+ } elseif (substr($value, -1) === '*') {
+ $varspec['modifier'] = '*';
+ $varspec['value'] = substr($value, 0, -1);
+ } else {
+ $varspec['value'] = (string) $value;
+ $varspec['modifier'] = '';
+ }
+ $result['values'][] = $varspec;
+ }
+
+ return $result;
+ }
+
+ /**
+ * Process an expansion
+ *
+ * @param array $matches Matches met in the preg_replace_callback
+ *
+ * @return string Returns the replacement string
+ */
+ private function expandMatch(array $matches)
+ {
+ static $rfc1738to3986 = ['+' => '%20', '%7e' => '~'];
+
+ $replacements = [];
+ $parsed = self::parseExpression($matches[1]);
+ $prefix = self::$operatorHash[$parsed['operator']]['prefix'];
+ $joiner = self::$operatorHash[$parsed['operator']]['joiner'];
+ $useQuery = self::$operatorHash[$parsed['operator']]['query'];
+
+ foreach ($parsed['values'] as $value) {
+
+ if (!isset($this->variables[$value['value']])) {
+ continue;
+ }
+
+ $variable = $this->variables[$value['value']];
+ $actuallyUseQuery = $useQuery;
+ $expanded = '';
+
+ if (is_array($variable)) {
+
+ $isAssoc = $this->isAssoc($variable);
+ $kvp = [];
+ foreach ($variable as $key => $var) {
+
+ if ($isAssoc) {
+ $key = rawurlencode($key);
+ $isNestedArray = is_array($var);
+ } else {
+ $isNestedArray = false;
+ }
+
+ if (!$isNestedArray) {
+ $var = rawurlencode($var);
+ if ($parsed['operator'] === '+' ||
+ $parsed['operator'] === '#'
+ ) {
+ $var = $this->decodeReserved($var);
+ }
+ }
+
+ if ($value['modifier'] === '*') {
+ if ($isAssoc) {
+ if ($isNestedArray) {
+ // Nested arrays must allow for deeply nested
+ // structures.
+ $var = strtr(
+ http_build_query([$key => $var]),
+ $rfc1738to3986
+ );
+ } else {
+ $var = $key . '=' . $var;
+ }
+ } elseif ($key > 0 && $actuallyUseQuery) {
+ $var = $value['value'] . '=' . $var;
+ }
+ }
+
+ $kvp[$key] = $var;
+ }
+
+ if (empty($variable)) {
+ $actuallyUseQuery = false;
+ } elseif ($value['modifier'] === '*') {
+ $expanded = implode($joiner, $kvp);
+ if ($isAssoc) {
+ // Don't prepend the value name when using the explode
+ // modifier with an associative array.
+ $actuallyUseQuery = false;
+ }
+ } else {
+ if ($isAssoc) {
+ // When an associative array is encountered and the
+ // explode modifier is not set, then the result must be
+ // a comma separated list of keys followed by their
+ // respective values.
+ foreach ($kvp as $k => &$v) {
+ $v = $k . ',' . $v;
+ }
+ }
+ $expanded = implode(',', $kvp);
+ }
+
+ } else {
+ if ($value['modifier'] === ':') {
+ $variable = substr($variable, 0, $value['position']);
+ }
+ $expanded = rawurlencode($variable);
+ if ($parsed['operator'] === '+' || $parsed['operator'] === '#') {
+ $expanded = $this->decodeReserved($expanded);
+ }
+ }
+
+ if ($actuallyUseQuery) {
+ if (!$expanded && $joiner !== '&') {
+ $expanded = $value['value'];
+ } else {
+ $expanded = $value['value'] . '=' . $expanded;
+ }
+ }
+
+ $replacements[] = $expanded;
+ }
+
+ $ret = implode($joiner, $replacements);
+ if ($ret && $prefix) {
+ return $prefix . $ret;
+ }
+
+ return $ret;
+ }
+
+ /**
+ * Determines if an array is associative.
+ *
+ * This makes the assumption that input arrays are sequences or hashes.
+ * This assumption is a tradeoff for accuracy in favor of speed, but it
+ * should work in almost every case where input is supplied for a URI
+ * template.
+ *
+ * @param array $array Array to check
+ *
+ * @return bool
+ */
+ private function isAssoc(array $array)
+ {
+ return $array && array_keys($array)[0] !== 0;
+ }
+
+ /**
+ * Removes percent encoding on reserved characters (used with + and #
+ * modifiers).
+ *
+ * @param string $string String to fix
+ *
+ * @return string
+ */
+ private function decodeReserved($string)
+ {
+ return str_replace(self::$delimsPct, self::$delims, $string);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions.php
new file mode 100644
index 00000000..59e212ed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions.php
@@ -0,0 +1,331 @@
+<?php
+namespace GuzzleHttp;
+
+use GuzzleHttp\Handler\CurlHandler;
+use GuzzleHttp\Handler\CurlMultiHandler;
+use GuzzleHttp\Handler\Proxy;
+use GuzzleHttp\Handler\StreamHandler;
+
+/**
+ * Expands a URI template
+ *
+ * @param string $template URI template
+ * @param array $variables Template variables
+ *
+ * @return string
+ */
+function uri_template($template, array $variables)
+{
+ if (extension_loaded('uri_template')) {
+ // @codeCoverageIgnoreStart
+ return \uri_template($template, $variables);
+ // @codeCoverageIgnoreEnd
+ }
+
+ static $uriTemplate;
+ if (!$uriTemplate) {
+ $uriTemplate = new UriTemplate();
+ }
+
+ return $uriTemplate->expand($template, $variables);
+}
+
+/**
+ * Debug function used to describe the provided value type and class.
+ *
+ * @param mixed $input
+ *
+ * @return string Returns a string containing the type of the variable and
+ * if a class is provided, the class name.
+ */
+function describe_type($input)
+{
+ switch (gettype($input)) {
+ case 'object':
+ return 'object(' . get_class($input) . ')';
+ case 'array':
+ return 'array(' . count($input) . ')';
+ default:
+ ob_start();
+ var_dump($input);
+ // normalize float vs double
+ return str_replace('double(', 'float(', rtrim(ob_get_clean()));
+ }
+}
+
+/**
+ * Parses an array of header lines into an associative array of headers.
+ *
+ * @param array $lines Header lines array of strings in the following
+ * format: "Name: Value"
+ * @return array
+ */
+function headers_from_lines($lines)
+{
+ $headers = [];
+
+ foreach ($lines as $line) {
+ $parts = explode(':', $line, 2);
+ $headers[trim($parts[0])][] = isset($parts[1])
+ ? trim($parts[1])
+ : null;
+ }
+
+ return $headers;
+}
+
+/**
+ * Returns a debug stream based on the provided variable.
+ *
+ * @param mixed $value Optional value
+ *
+ * @return resource
+ */
+function debug_resource($value = null)
+{
+ if (is_resource($value)) {
+ return $value;
+ } elseif (defined('STDOUT')) {
+ return STDOUT;
+ }
+
+ return fopen('php://output', 'w');
+}
+
+/**
+ * Chooses and creates a default handler to use based on the environment.
+ *
+ * The returned handler is not wrapped by any default middlewares.
+ *
+ * @throws \RuntimeException if no viable Handler is available.
+ * @return callable Returns the best handler for the given system.
+ */
+function choose_handler()
+{
+ $handler = null;
+ if (function_exists('curl_multi_exec') && function_exists('curl_exec')) {
+ $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
+ } elseif (function_exists('curl_exec')) {
+ $handler = new CurlHandler();
+ } elseif (function_exists('curl_multi_exec')) {
+ $handler = new CurlMultiHandler();
+ }
+
+ if (ini_get('allow_url_fopen')) {
+ $handler = $handler
+ ? Proxy::wrapStreaming($handler, new StreamHandler())
+ : new StreamHandler();
+ } elseif (!$handler) {
+ throw new \RuntimeException('GuzzleHttp requires cURL, the '
+ . 'allow_url_fopen ini setting, or a custom HTTP handler.');
+ }
+
+ return $handler;
+}
+
+/**
+ * Get the default User-Agent string to use with Guzzle
+ *
+ * @return string
+ */
+function default_user_agent()
+{
+ static $defaultAgent = '';
+
+ if (!$defaultAgent) {
+ $defaultAgent = 'GuzzleHttp/' . Client::VERSION;
+ if (extension_loaded('curl') && function_exists('curl_version')) {
+ $defaultAgent .= ' curl/' . \curl_version()['version'];
+ }
+ $defaultAgent .= ' PHP/' . PHP_VERSION;
+ }
+
+ return $defaultAgent;
+}
+
+/**
+ * Returns the default cacert bundle for the current system.
+ *
+ * First, the openssl.cafile and curl.cainfo php.ini settings are checked.
+ * If those settings are not configured, then the common locations for
+ * bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X
+ * and Windows are checked. If any of these file locations are found on
+ * disk, they will be utilized.
+ *
+ * Note: the result of this function is cached for subsequent calls.
+ *
+ * @return string
+ * @throws \RuntimeException if no bundle can be found.
+ */
+function default_ca_bundle()
+{
+ static $cached = null;
+ static $cafiles = [
+ // Red Hat, CentOS, Fedora (provided by the ca-certificates package)
+ '/etc/pki/tls/certs/ca-bundle.crt',
+ // Ubuntu, Debian (provided by the ca-certificates package)
+ '/etc/ssl/certs/ca-certificates.crt',
+ // FreeBSD (provided by the ca_root_nss package)
+ '/usr/local/share/certs/ca-root-nss.crt',
+ // SLES 12 (provided by the ca-certificates package)
+ '/var/lib/ca-certificates/ca-bundle.pem',
+ // OS X provided by homebrew (using the default path)
+ '/usr/local/etc/openssl/cert.pem',
+ // Google app engine
+ '/etc/ca-certificates.crt',
+ // Windows?
+ 'C:\\windows\\system32\\curl-ca-bundle.crt',
+ 'C:\\windows\\curl-ca-bundle.crt',
+ ];
+
+ if ($cached) {
+ return $cached;
+ }
+
+ if ($ca = ini_get('openssl.cafile')) {
+ return $cached = $ca;
+ }
+
+ if ($ca = ini_get('curl.cainfo')) {
+ return $cached = $ca;
+ }
+
+ foreach ($cafiles as $filename) {
+ if (file_exists($filename)) {
+ return $cached = $filename;
+ }
+ }
+
+ throw new \RuntimeException(<<< EOT
+No system CA bundle could be found in any of the the common system locations.
+PHP versions earlier than 5.6 are not properly configured to use the system's
+CA bundle by default. In order to verify peer certificates, you will need to
+supply the path on disk to a certificate bundle to the 'verify' request
+option: http://docs.guzzlephp.org/en/latest/clients.html#verify. If you do not
+need a specific certificate bundle, then Mozilla provides a commonly used CA
+bundle which can be downloaded here (provided by the maintainer of cURL):
+https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt. Once
+you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP
+ini setting to point to the path to the file, allowing you to omit the 'verify'
+request option. See http://curl.haxx.se/docs/sslcerts.html for more
+information.
+EOT
+ );
+}
+
+/**
+ * Creates an associative array of lowercase header names to the actual
+ * header casing.
+ *
+ * @param array $headers
+ *
+ * @return array
+ */
+function normalize_header_keys(array $headers)
+{
+ $result = [];
+ foreach (array_keys($headers) as $key) {
+ $result[strtolower($key)] = $key;
+ }
+
+ return $result;
+}
+
+/**
+ * Returns true if the provided host matches any of the no proxy areas.
+ *
+ * This method will strip a port from the host if it is present. Each pattern
+ * can be matched with an exact match (e.g., "foo.com" == "foo.com") or a
+ * partial match: (e.g., "foo.com" == "baz.foo.com" and ".foo.com" ==
+ * "baz.foo.com", but ".foo.com" != "foo.com").
+ *
+ * Areas are matched in the following cases:
+ * 1. "*" (without quotes) always matches any hosts.
+ * 2. An exact match.
+ * 3. The area starts with "." and the area is the last part of the host. e.g.
+ * '.mit.edu' will match any host that ends with '.mit.edu'.
+ *
+ * @param string $host Host to check against the patterns.
+ * @param array $noProxyArray An array of host patterns.
+ *
+ * @return bool
+ */
+function is_host_in_noproxy($host, array $noProxyArray)
+{
+ if (strlen($host) === 0) {
+ throw new \InvalidArgumentException('Empty host provided');
+ }
+
+ // Strip port if present.
+ if (strpos($host, ':')) {
+ $host = explode($host, ':', 2)[0];
+ }
+
+ foreach ($noProxyArray as $area) {
+ // Always match on wildcards.
+ if ($area === '*') {
+ return true;
+ } elseif (empty($area)) {
+ // Don't match on empty values.
+ continue;
+ } elseif ($area === $host) {
+ // Exact matches.
+ return true;
+ } else {
+ // Special match if the area when prefixed with ".". Remove any
+ // existing leading "." and add a new leading ".".
+ $area = '.' . ltrim($area, '.');
+ if (substr($host, -(strlen($area))) === $area) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+}
+
+/**
+ * Wrapper for json_decode that throws when an error occurs.
+ *
+ * @param string $json JSON data to parse
+ * @param bool $assoc When true, returned objects will be converted
+ * into associative arrays.
+ * @param int $depth User specified recursion depth.
+ * @param int $options Bitmask of JSON decode options.
+ *
+ * @return mixed
+ * @throws \InvalidArgumentException if the JSON cannot be decoded.
+ * @link http://www.php.net/manual/en/function.json-decode.php
+ */
+function json_decode($json, $assoc = false, $depth = 512, $options = 0)
+{
+ $data = \json_decode($json, $assoc, $depth, $options);
+ if (JSON_ERROR_NONE !== json_last_error()) {
+ throw new \InvalidArgumentException(
+ 'json_decode error: ' . json_last_error_msg());
+ }
+
+ return $data;
+}
+
+/**
+ * Wrapper for JSON encoding that throws when an error occurs.
+ *
+ * @param mixed $value The value being encoded
+ * @param int $options JSON encode option bitmask
+ * @param int $depth Set the maximum depth. Must be greater than zero.
+ *
+ * @return string
+ * @throws \InvalidArgumentException if the JSON cannot be encoded.
+ * @link http://www.php.net/manual/en/function.json-encode.php
+ */
+function json_encode($value, $options = 0, $depth = 512)
+{
+ $json = \json_encode($value, $options, $depth);
+ if (JSON_ERROR_NONE !== json_last_error()) {
+ throw new \InvalidArgumentException(
+ 'json_encode error: ' . json_last_error_msg());
+ }
+
+ return $json;
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions_include.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions_include.php
new file mode 100644
index 00000000..a93393ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/guzzle/src/functions_include.php
@@ -0,0 +1,6 @@
+<?php
+
+// Don't redefine the functions if included multiple times.
+if (!function_exists('GuzzleHttp\uri_template')) {
+ require __DIR__ . '/functions.php';
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/CHANGELOG.md b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/CHANGELOG.md
new file mode 100644
index 00000000..551929f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/CHANGELOG.md
@@ -0,0 +1,65 @@
+# CHANGELOG
+
+
+## 1.3.1 - 2016-12-20
+
+### Fixed
+
+- `wait()` foreign promise compatibility
+
+
+## 1.3.0 - 2016-11-18
+
+### Added
+
+- Adds support for custom task queues.
+
+### Fixed
+
+- Fixed coroutine promise memory leak.
+
+
+## 1.2.0 - 2016-05-18
+
+### Changed
+
+- Update to now catch `\Throwable` on PHP 7+
+
+
+## 1.1.0 - 2016-03-07
+
+### Changed
+
+- Update EachPromise to prevent recurring on a iterator when advancing, as this
+ could trigger fatal generator errors.
+- Update Promise to allow recursive waiting without unwrapping exceptions.
+
+
+## 1.0.3 - 2015-10-15
+
+### Changed
+
+- Update EachPromise to immediately resolve when the underlying promise iterator
+ is empty. Previously, such a promise would throw an exception when its `wait`
+ function was called.
+
+
+## 1.0.2 - 2015-05-15
+
+### Changed
+
+- Conditionally require functions.php.
+
+
+## 1.0.1 - 2015-06-24
+
+### Changed
+
+- Updating EachPromise to call next on the underlying promise iterator as late
+ as possible to ensure that generators that generate new requests based on
+ callbacks are not iterated until after callbacks are invoked.
+
+
+## 1.0.0 - 2015-05-12
+
+- Initial release
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/LICENSE b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/LICENSE
new file mode 100644
index 00000000..67f91a14
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2015-2016 Michael Dowling, https://github.com/mtdowling <mtdowling@gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/Makefile b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/Makefile
new file mode 100644
index 00000000..8d5b3ef9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/Makefile
@@ -0,0 +1,13 @@
+all: clean test
+
+test:
+ vendor/bin/phpunit
+
+coverage:
+ vendor/bin/phpunit --coverage-html=artifacts/coverage
+
+view-coverage:
+ open artifacts/coverage/index.html
+
+clean:
+ rm -rf artifacts/*
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/README.md b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/README.md
new file mode 100644
index 00000000..7b607e28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/README.md
@@ -0,0 +1,504 @@
+# Guzzle Promises
+
+[Promises/A+](https://promisesaplus.com/) implementation that handles promise
+chaining and resolution iteratively, allowing for "infinite" promise chaining
+while keeping the stack size constant. Read [this blog post](https://blog.domenic.me/youre-missing-the-point-of-promises/)
+for a general introduction to promises.
+
+- [Features](#features)
+- [Quick start](#quick-start)
+- [Synchronous wait](#synchronous-wait)
+- [Cancellation](#cancellation)
+- [API](#api)
+ - [Promise](#promise)
+ - [FulfilledPromise](#fulfilledpromise)
+ - [RejectedPromise](#rejectedpromise)
+- [Promise interop](#promise-interop)
+- [Implementation notes](#implementation-notes)
+
+
+# Features
+
+- [Promises/A+](https://promisesaplus.com/) implementation.
+- Promise resolution and chaining is handled iteratively, allowing for
+ "infinite" promise chaining.
+- Promises have a synchronous `wait` method.
+- Promises can be cancelled.
+- Works with any object that has a `then` function.
+- C# style async/await coroutine promises using
+ `GuzzleHttp\Promise\coroutine()`.
+
+
+# Quick start
+
+A *promise* represents the eventual result of an asynchronous operation. The
+primary way of interacting with a promise is through its `then` method, which
+registers callbacks to receive either a promise's eventual value or the reason
+why the promise cannot be fulfilled.
+
+
+## Callbacks
+
+Callbacks are registered with the `then` method by providing an optional
+`$onFulfilled` followed by an optional `$onRejected` function.
+
+
+```php
+use GuzzleHttp\Promise\Promise;
+
+$promise = new Promise();
+$promise->then(
+ // $onFulfilled
+ function ($value) {
+ echo 'The promise was fulfilled.';
+ },
+ // $onRejected
+ function ($reason) {
+ echo 'The promise was rejected.';
+ }
+);
+```
+
+*Resolving* a promise means that you either fulfill a promise with a *value* or
+reject a promise with a *reason*. Resolving a promises triggers callbacks
+registered with the promises's `then` method. These callbacks are triggered
+only once and in the order in which they were added.
+
+
+## Resolving a promise
+
+Promises are fulfilled using the `resolve($value)` method. Resolving a promise
+with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger
+all of the onFulfilled callbacks (resolving a promise with a rejected promise
+will reject the promise and trigger the `$onRejected` callbacks).
+
+```php
+use GuzzleHttp\Promise\Promise;
+
+$promise = new Promise();
+$promise
+ ->then(function ($value) {
+ // Return a value and don't break the chain
+ return "Hello, " . $value;
+ })
+ // This then is executed after the first then and receives the value
+ // returned from the first then.
+ ->then(function ($value) {
+ echo $value;
+ });
+
+// Resolving the promise triggers the $onFulfilled callbacks and outputs
+// "Hello, reader".
+$promise->resolve('reader.');
+```
+
+
+## Promise forwarding
+
+Promises can be chained one after the other. Each then in the chain is a new
+promise. The return value of a promise is what's forwarded to the next
+promise in the chain. Returning a promise in a `then` callback will cause the
+subsequent promises in the chain to only be fulfilled when the returned promise
+has been fulfilled. The next promise in the chain will be invoked with the
+resolved value of the promise.
+
+```php
+use GuzzleHttp\Promise\Promise;
+
+$promise = new Promise();
+$nextPromise = new Promise();
+
+$promise
+ ->then(function ($value) use ($nextPromise) {
+ echo $value;
+ return $nextPromise;
+ })
+ ->then(function ($value) {
+ echo $value;
+ });
+
+// Triggers the first callback and outputs "A"
+$promise->resolve('A');
+// Triggers the second callback and outputs "B"
+$nextPromise->resolve('B');
+```
+
+## Promise rejection
+
+When a promise is rejected, the `$onRejected` callbacks are invoked with the
+rejection reason.
+
+```php
+use GuzzleHttp\Promise\Promise;
+
+$promise = new Promise();
+$promise->then(null, function ($reason) {
+ echo $reason;
+});
+
+$promise->reject('Error!');
+// Outputs "Error!"
+```
+
+## Rejection forwarding
+
+If an exception is thrown in an `$onRejected` callback, subsequent
+`$onRejected` callbacks are invoked with the thrown exception as the reason.
+
+```php
+use GuzzleHttp\Promise\Promise;
+
+$promise = new Promise();
+$promise->then(null, function ($reason) {
+ throw new \Exception($reason);
+})->then(null, function ($reason) {
+ assert($reason->getMessage() === 'Error!');
+});
+
+$promise->reject('Error!');
+```
+
+You can also forward a rejection down the promise chain by returning a
+`GuzzleHttp\Promise\RejectedPromise` in either an `$onFulfilled` or
+`$onRejected` callback.
+
+```php
+use GuzzleHttp\Promise\Promise;
+use GuzzleHttp\Promise\RejectedPromise;
+
+$promise = new Promise();
+$promise->then(null, function ($reason) {
+ return new RejectedPromise($reason);
+})->then(null, function ($reason) {
+ assert($reason === 'Error!');
+});
+
+$promise->reject('Error!');
+```
+
+If an exception is not thrown in a `$onRejected` callback and the callback
+does not return a rejected promise, downstream `$onFulfilled` callbacks are
+invoked using the value returned from the `$onRejected` callback.
+
+```php
+use GuzzleHttp\Promise\Promise;
+use GuzzleHttp\Promise\RejectedPromise;
+
+$promise = new Promise();
+$promise
+ ->then(null, function ($reason) {
+ return "It's ok";
+ })
+ ->then(function ($value) {
+ assert($value === "It's ok");
+ });
+
+$promise->reject('Error!');
+```
+
+# Synchronous wait
+
+You can synchronously force promises to complete using a promise's `wait`
+method. When creating a promise, you can provide a wait function that is used
+to synchronously force a promise to complete. When a wait function is invoked
+it is expected to deliver a value to the promise or reject the promise. If the
+wait function does not deliver a value, then an exception is thrown. The wait
+function provided to a promise constructor is invoked when the `wait` function
+of the promise is called.
+
+```php
+$promise = new Promise(function () use (&$promise) {
+ $promise->resolve('foo');
+});
+
+// Calling wait will return the value of the promise.
+echo $promise->wait(); // outputs "foo"
+```
+
+If an exception is encountered while invoking the wait function of a promise,
+the promise is rejected with the exception and the exception is thrown.
+
+```php
+$promise = new Promise(function () use (&$promise) {
+ throw new \Exception('foo');
+});
+
+$promise->wait(); // throws the exception.
+```
+
+Calling `wait` on a promise that has been fulfilled will not trigger the wait
+function. It will simply return the previously resolved value.
+
+```php
+$promise = new Promise(function () { die('this is not called!'); });
+$promise->resolve('foo');
+echo $promise->wait(); // outputs "foo"
+```
+
+Calling `wait` on a promise that has been rejected will throw an exception. If
+the rejection reason is an instance of `\Exception` the reason is thrown.
+Otherwise, a `GuzzleHttp\Promise\RejectionException` is thrown and the reason
+can be obtained by calling the `getReason` method of the exception.
+
+```php
+$promise = new Promise();
+$promise->reject('foo');
+$promise->wait();
+```
+
+> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo'
+
+
+## Unwrapping a promise
+
+When synchronously waiting on a promise, you are joining the state of the
+promise into the current state of execution (i.e., return the value of the
+promise if it was fulfilled or throw an exception if it was rejected). This is
+called "unwrapping" the promise. Waiting on a promise will by default unwrap
+the promise state.
+
+You can force a promise to resolve and *not* unwrap the state of the promise
+by passing `false` to the first argument of the `wait` function:
+
+```php
+$promise = new Promise();
+$promise->reject('foo');
+// This will not throw an exception. It simply ensures the promise has
+// been resolved.
+$promise->wait(false);
+```
+
+When unwrapping a promise, the resolved value of the promise will be waited
+upon until the unwrapped value is not a promise. This means that if you resolve
+promise A with a promise B and unwrap promise A, the value returned by the
+wait function will be the value delivered to promise B.
+
+**Note**: when you do not unwrap the promise, no value is returned.
+
+
+# Cancellation
+
+You can cancel a promise that has not yet been fulfilled using the `cancel()`
+method of a promise. When creating a promise you can provide an optional
+cancel function that when invoked cancels the action of computing a resolution
+of the promise.
+
+
+# API
+
+
+## Promise
+
+When creating a promise object, you can provide an optional `$waitFn` and
+`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is
+expected to resolve the promise. `$cancelFn` is a function with no arguments
+that is expected to cancel the computation of a promise. It is invoked when the
+`cancel()` method of a promise is called.
+
+```php
+use GuzzleHttp\Promise\Promise;
+
+$promise = new Promise(
+ function () use (&$promise) {
+ $promise->resolve('waited');
+ },
+ function () {
+ // do something that will cancel the promise computation (e.g., close
+ // a socket, cancel a database query, etc...)
+ }
+);
+
+assert('waited' === $promise->wait());
+```
+
+A promise has the following methods:
+
+- `then(callable $onFulfilled, callable $onRejected) : PromiseInterface`
+
+ Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.
+
+- `otherwise(callable $onRejected) : PromiseInterface`
+
+ Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled.
+
+- `wait($unwrap = true) : mixed`
+
+ Synchronously waits on the promise to complete.
+
+ `$unwrap` controls whether or not the value of the promise is returned for a
+ fulfilled promise or if an exception is thrown if the promise is rejected.
+ This is set to `true` by default.
+
+- `cancel()`
+
+ Attempts to cancel the promise if possible. The promise being cancelled and
+ the parent most ancestor that has not yet been resolved will also be
+ cancelled. Any promises waiting on the cancelled promise to resolve will also
+ be cancelled.
+
+- `getState() : string`
+
+ Returns the state of the promise. One of `pending`, `fulfilled`, or
+ `rejected`.
+
+- `resolve($value)`
+
+ Fulfills the promise with the given `$value`.
+
+- `reject($reason)`
+
+ Rejects the promise with the given `$reason`.
+
+
+## FulfilledPromise
+
+A fulfilled promise can be created to represent a promise that has been
+fulfilled.
+
+```php
+use GuzzleHttp\Promise\FulfilledPromise;
+
+$promise = new FulfilledPromise('value');
+
+// Fulfilled callbacks are immediately invoked.
+$promise->then(function ($value) {
+ echo $value;
+});
+```
+
+
+## RejectedPromise
+
+A rejected promise can be created to represent a promise that has been
+rejected.
+
+```php
+use GuzzleHttp\Promise\RejectedPromise;
+
+$promise = new RejectedPromise('Error');
+
+// Rejected callbacks are immediately invoked.
+$promise->then(null, function ($reason) {
+ echo $reason;
+});
+```
+
+
+# Promise interop
+
+This library works with foreign promises that have a `then` method. This means
+you can use Guzzle promises with [React promises](https://github.com/reactphp/promise)
+for example. When a foreign promise is returned inside of a then method
+callback, promise resolution will occur recursively.
+
+```php
+// Create a React promise
+$deferred = new React\Promise\Deferred();
+$reactPromise = $deferred->promise();
+
+// Create a Guzzle promise that is fulfilled with a React promise.
+$guzzlePromise = new \GuzzleHttp\Promise\Promise();
+$guzzlePromise->then(function ($value) use ($reactPromise) {
+ // Do something something with the value...
+ // Return the React promise
+ return $reactPromise;
+});
+```
+
+Please note that wait and cancel chaining is no longer possible when forwarding
+a foreign promise. You will need to wrap a third-party promise with a Guzzle
+promise in order to utilize wait and cancel functions with foreign promises.
+
+
+## Event Loop Integration
+
+In order to keep the stack size constant, Guzzle promises are resolved
+asynchronously using a task queue. When waiting on promises synchronously, the
+task queue will be automatically run to ensure that the blocking promise and
+any forwarded promises are resolved. When using promises asynchronously in an
+event loop, you will need to run the task queue on each tick of the loop. If
+you do not run the task queue, then promises will not be resolved.
+
+You can run the task queue using the `run()` method of the global task queue
+instance.
+
+```php
+// Get the global task queue
+$queue = \GuzzleHttp\Promise\queue();
+$queue->run();
+```
+
+For example, you could use Guzzle promises with React using a periodic timer:
+
+```php
+$loop = React\EventLoop\Factory::create();
+$loop->addPeriodicTimer(0, [$queue, 'run']);
+```
+
+*TODO*: Perhaps adding a `futureTick()` on each tick would be faster?
+
+
+# Implementation notes
+
+
+## Promise resolution and chaining is handled iteratively
+
+By shuffling pending handlers from one owner to another, promises are
+resolved iteratively, allowing for "infinite" then chaining.
+
+```php
+<?php
+require 'vendor/autoload.php';
+
+use GuzzleHttp\Promise\Promise;
+
+$parent = new Promise();
+$p = $parent;
+
+for ($i = 0; $i < 1000; $i++) {
+ $p = $p->then(function ($v) {
+ // The stack size remains constant (a good thing)
+ echo xdebug_get_stack_depth() . ', ';
+ return $v + 1;
+ });
+}
+
+$parent->resolve(0);
+var_dump($p->wait()); // int(1000)
+
+```
+
+When a promise is fulfilled or rejected with a non-promise value, the promise
+then takes ownership of the handlers of each child promise and delivers values
+down the chain without using recursion.
+
+When a promise is resolved with another promise, the original promise transfers
+all of its pending handlers to the new promise. When the new promise is
+eventually resolved, all of the pending handlers are delivered the forwarded
+value.
+
+
+## A promise is the deferred.
+
+Some promise libraries implement promises using a deferred object to represent
+a computation and a promise object to represent the delivery of the result of
+the computation. This is a nice separation of computation and delivery because
+consumers of the promise cannot modify the value that will be eventually
+delivered.
+
+One side effect of being able to implement promise resolution and chaining
+iteratively is that you need to be able for one promise to reach into the state
+of another promise to shuffle around ownership of handlers. In order to achieve
+this without making the handlers of a promise publicly mutable, a promise is
+also the deferred value, allowing promises of the same parent class to reach
+into and modify the private properties of promises of the same type. While this
+does allow consumers of the value to modify the resolution or rejection of the
+deferred, it is a small price to pay for keeping the stack size constant.
+
+```php
+$promise = new Promise();
+$promise->then(function ($value) { echo $value; });
+// The promise is the deferred value, so you can deliver a value to it.
+$promise->resolve('foo');
+// prints "foo"
+```
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/composer.json b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/composer.json
new file mode 100644
index 00000000..ec41a61e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/composer.json
@@ -0,0 +1,34 @@
+{
+ "name": "guzzlehttp/promises",
+ "description": "Guzzle promises library",
+ "keywords": ["promise"],
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ }
+ ],
+ "require": {
+ "php": ">=5.5.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "GuzzleHttp\\Promise\\": "src/"
+ },
+ "files": ["src/functions_include.php"]
+ },
+ "scripts": {
+ "test": "vendor/bin/phpunit",
+ "test-ci": "vendor/bin/phpunit --coverage-text"
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/AggregateException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/AggregateException.php
new file mode 100644
index 00000000..6a5690c3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/AggregateException.php
@@ -0,0 +1,16 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * Exception thrown when too many errors occur in the some() or any() methods.
+ */
+class AggregateException extends RejectionException
+{
+ public function __construct($msg, array $reasons)
+ {
+ parent::__construct(
+ $reasons,
+ sprintf('%s; %d rejected promises', $msg, count($reasons))
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/CancellationException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/CancellationException.php
new file mode 100644
index 00000000..cb360b80
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/CancellationException.php
@@ -0,0 +1,9 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * Exception that is set as the reason for a promise that has been cancelled.
+ */
+class CancellationException extends RejectionException
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Coroutine.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Coroutine.php
new file mode 100644
index 00000000..6aa09587
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Coroutine.php
@@ -0,0 +1,151 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+use Exception;
+use Generator;
+use Throwable;
+
+/**
+ * Creates a promise that is resolved using a generator that yields values or
+ * promises (somewhat similar to C#'s async keyword).
+ *
+ * When called, the coroutine function will start an instance of the generator
+ * and returns a promise that is fulfilled with its final yielded value.
+ *
+ * Control is returned back to the generator when the yielded promise settles.
+ * This can lead to less verbose code when doing lots of sequential async calls
+ * with minimal processing in between.
+ *
+ * use GuzzleHttp\Promise;
+ *
+ * function createPromise($value) {
+ * return new Promise\FulfilledPromise($value);
+ * }
+ *
+ * $promise = Promise\coroutine(function () {
+ * $value = (yield createPromise('a'));
+ * try {
+ * $value = (yield createPromise($value . 'b'));
+ * } catch (\Exception $e) {
+ * // The promise was rejected.
+ * }
+ * yield $value . 'c';
+ * });
+ *
+ * // Outputs "abc"
+ * $promise->then(function ($v) { echo $v; });
+ *
+ * @param callable $generatorFn Generator function to wrap into a promise.
+ *
+ * @return Promise
+ * @link https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration
+ */
+final class Coroutine implements PromiseInterface
+{
+ /**
+ * @var PromiseInterface|null
+ */
+ private $currentPromise;
+
+ /**
+ * @var Generator
+ */
+ private $generator;
+
+ /**
+ * @var Promise
+ */
+ private $result;
+
+ public function __construct(callable $generatorFn)
+ {
+ $this->generator = $generatorFn();
+ $this->result = new Promise(function () {
+ while (isset($this->currentPromise)) {
+ $this->currentPromise->wait();
+ }
+ });
+ $this->nextCoroutine($this->generator->current());
+ }
+
+ public function then(
+ callable $onFulfilled = null,
+ callable $onRejected = null
+ ) {
+ return $this->result->then($onFulfilled, $onRejected);
+ }
+
+ public function otherwise(callable $onRejected)
+ {
+ return $this->result->otherwise($onRejected);
+ }
+
+ public function wait($unwrap = true)
+ {
+ return $this->result->wait($unwrap);
+ }
+
+ public function getState()
+ {
+ return $this->result->getState();
+ }
+
+ public function resolve($value)
+ {
+ $this->result->resolve($value);
+ }
+
+ public function reject($reason)
+ {
+ $this->result->reject($reason);
+ }
+
+ public function cancel()
+ {
+ $this->currentPromise->cancel();
+ $this->result->cancel();
+ }
+
+ private function nextCoroutine($yielded)
+ {
+ $this->currentPromise = promise_for($yielded)
+ ->then([$this, '_handleSuccess'], [$this, '_handleFailure']);
+ }
+
+ /**
+ * @internal
+ */
+ public function _handleSuccess($value)
+ {
+ unset($this->currentPromise);
+ try {
+ $next = $this->generator->send($value);
+ if ($this->generator->valid()) {
+ $this->nextCoroutine($next);
+ } else {
+ $this->result->resolve($value);
+ }
+ } catch (Exception $exception) {
+ $this->result->reject($exception);
+ } catch (Throwable $throwable) {
+ $this->result->reject($throwable);
+ }
+ }
+
+ /**
+ * @internal
+ */
+ public function _handleFailure($reason)
+ {
+ unset($this->currentPromise);
+ try {
+ $nextYield = $this->generator->throw(exception_for($reason));
+ // The throw was caught, so keep iterating on the coroutine
+ $this->nextCoroutine($nextYield);
+ } catch (Exception $exception) {
+ $this->result->reject($exception);
+ } catch (Throwable $throwable) {
+ $this->result->reject($throwable);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/EachPromise.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/EachPromise.php
new file mode 100644
index 00000000..d0ddf603
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/EachPromise.php
@@ -0,0 +1,229 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * Represents a promise that iterates over many promises and invokes
+ * side-effect functions in the process.
+ */
+class EachPromise implements PromisorInterface
+{
+ private $pending = [];
+
+ /** @var \Iterator */
+ private $iterable;
+
+ /** @var callable|int */
+ private $concurrency;
+
+ /** @var callable */
+ private $onFulfilled;
+
+ /** @var callable */
+ private $onRejected;
+
+ /** @var Promise */
+ private $aggregate;
+
+ /** @var bool */
+ private $mutex;
+
+ /**
+ * Configuration hash can include the following key value pairs:
+ *
+ * - fulfilled: (callable) Invoked when a promise fulfills. The function
+ * is invoked with three arguments: the fulfillment value, the index
+ * position from the iterable list of the promise, and the aggregate
+ * promise that manages all of the promises. The aggregate promise may
+ * be resolved from within the callback to short-circuit the promise.
+ * - rejected: (callable) Invoked when a promise is rejected. The
+ * function is invoked with three arguments: the rejection reason, the
+ * index position from the iterable list of the promise, and the
+ * aggregate promise that manages all of the promises. The aggregate
+ * promise may be resolved from within the callback to short-circuit
+ * the promise.
+ * - concurrency: (integer) Pass this configuration option to limit the
+ * allowed number of outstanding concurrently executing promises,
+ * creating a capped pool of promises. There is no limit by default.
+ *
+ * @param mixed $iterable Promises or values to iterate.
+ * @param array $config Configuration options
+ */
+ public function __construct($iterable, array $config = [])
+ {
+ $this->iterable = iter_for($iterable);
+
+ if (isset($config['concurrency'])) {
+ $this->concurrency = $config['concurrency'];
+ }
+
+ if (isset($config['fulfilled'])) {
+ $this->onFulfilled = $config['fulfilled'];
+ }
+
+ if (isset($config['rejected'])) {
+ $this->onRejected = $config['rejected'];
+ }
+ }
+
+ public function promise()
+ {
+ if ($this->aggregate) {
+ return $this->aggregate;
+ }
+
+ try {
+ $this->createPromise();
+ $this->iterable->rewind();
+ $this->refillPending();
+ } catch (\Throwable $e) {
+ $this->aggregate->reject($e);
+ } catch (\Exception $e) {
+ $this->aggregate->reject($e);
+ }
+
+ return $this->aggregate;
+ }
+
+ private function createPromise()
+ {
+ $this->mutex = false;
+ $this->aggregate = new Promise(function () {
+ reset($this->pending);
+ if (empty($this->pending) && !$this->iterable->valid()) {
+ $this->aggregate->resolve(null);
+ return;
+ }
+
+ // Consume a potentially fluctuating list of promises while
+ // ensuring that indexes are maintained (precluding array_shift).
+ while ($promise = current($this->pending)) {
+ next($this->pending);
+ $promise->wait();
+ if ($this->aggregate->getState() !== PromiseInterface::PENDING) {
+ return;
+ }
+ }
+ });
+
+ // Clear the references when the promise is resolved.
+ $clearFn = function () {
+ $this->iterable = $this->concurrency = $this->pending = null;
+ $this->onFulfilled = $this->onRejected = null;
+ };
+
+ $this->aggregate->then($clearFn, $clearFn);
+ }
+
+ private function refillPending()
+ {
+ if (!$this->concurrency) {
+ // Add all pending promises.
+ while ($this->addPending() && $this->advanceIterator());
+ return;
+ }
+
+ // Add only up to N pending promises.
+ $concurrency = is_callable($this->concurrency)
+ ? call_user_func($this->concurrency, count($this->pending))
+ : $this->concurrency;
+ $concurrency = max($concurrency - count($this->pending), 0);
+ // Concurrency may be set to 0 to disallow new promises.
+ if (!$concurrency) {
+ return;
+ }
+ // Add the first pending promise.
+ $this->addPending();
+ // Note this is special handling for concurrency=1 so that we do
+ // not advance the iterator after adding the first promise. This
+ // helps work around issues with generators that might not have the
+ // next value to yield until promise callbacks are called.
+ while (--$concurrency
+ && $this->advanceIterator()
+ && $this->addPending());
+ }
+
+ private function addPending()
+ {
+ if (!$this->iterable || !$this->iterable->valid()) {
+ return false;
+ }
+
+ $promise = promise_for($this->iterable->current());
+ $idx = $this->iterable->key();
+
+ $this->pending[$idx] = $promise->then(
+ function ($value) use ($idx) {
+ if ($this->onFulfilled) {
+ call_user_func(
+ $this->onFulfilled, $value, $idx, $this->aggregate
+ );
+ }
+ $this->step($idx);
+ },
+ function ($reason) use ($idx) {
+ if ($this->onRejected) {
+ call_user_func(
+ $this->onRejected, $reason, $idx, $this->aggregate
+ );
+ }
+ $this->step($idx);
+ }
+ );
+
+ return true;
+ }
+
+ private function advanceIterator()
+ {
+ // Place a lock on the iterator so that we ensure to not recurse,
+ // preventing fatal generator errors.
+ if ($this->mutex) {
+ return false;
+ }
+
+ $this->mutex = true;
+
+ try {
+ $this->iterable->next();
+ $this->mutex = false;
+ return true;
+ } catch (\Throwable $e) {
+ $this->aggregate->reject($e);
+ $this->mutex = false;
+ return false;
+ } catch (\Exception $e) {
+ $this->aggregate->reject($e);
+ $this->mutex = false;
+ return false;
+ }
+ }
+
+ private function step($idx)
+ {
+ // If the promise was already resolved, then ignore this step.
+ if ($this->aggregate->getState() !== PromiseInterface::PENDING) {
+ return;
+ }
+
+ unset($this->pending[$idx]);
+
+ // Only refill pending promises if we are not locked, preventing the
+ // EachPromise to recursively invoke the provided iterator, which
+ // cause a fatal error: "Cannot resume an already running generator"
+ if ($this->advanceIterator() && !$this->checkIfFinished()) {
+ // Add more pending promises if possible.
+ $this->refillPending();
+ }
+ }
+
+ private function checkIfFinished()
+ {
+ if (!$this->pending && !$this->iterable->valid()) {
+ // Resolve the promise if there's nothing left to do.
+ $this->aggregate->resolve(null);
+ return true;
+ }
+
+ return false;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/FulfilledPromise.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/FulfilledPromise.php
new file mode 100644
index 00000000..dbbeeb9f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/FulfilledPromise.php
@@ -0,0 +1,82 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * A promise that has been fulfilled.
+ *
+ * Thenning off of this promise will invoke the onFulfilled callback
+ * immediately and ignore other callbacks.
+ */
+class FulfilledPromise implements PromiseInterface
+{
+ private $value;
+
+ public function __construct($value)
+ {
+ if (method_exists($value, 'then')) {
+ throw new \InvalidArgumentException(
+ 'You cannot create a FulfilledPromise with a promise.');
+ }
+
+ $this->value = $value;
+ }
+
+ public function then(
+ callable $onFulfilled = null,
+ callable $onRejected = null
+ ) {
+ // Return itself if there is no onFulfilled function.
+ if (!$onFulfilled) {
+ return $this;
+ }
+
+ $queue = queue();
+ $p = new Promise([$queue, 'run']);
+ $value = $this->value;
+ $queue->add(static function () use ($p, $value, $onFulfilled) {
+ if ($p->getState() === self::PENDING) {
+ try {
+ $p->resolve($onFulfilled($value));
+ } catch (\Throwable $e) {
+ $p->reject($e);
+ } catch (\Exception $e) {
+ $p->reject($e);
+ }
+ }
+ });
+
+ return $p;
+ }
+
+ public function otherwise(callable $onRejected)
+ {
+ return $this->then(null, $onRejected);
+ }
+
+ public function wait($unwrap = true, $defaultDelivery = null)
+ {
+ return $unwrap ? $this->value : null;
+ }
+
+ public function getState()
+ {
+ return self::FULFILLED;
+ }
+
+ public function resolve($value)
+ {
+ if ($value !== $this->value) {
+ throw new \LogicException("Cannot resolve a fulfilled promise");
+ }
+ }
+
+ public function reject($reason)
+ {
+ throw new \LogicException("Cannot reject a fulfilled promise");
+ }
+
+ public function cancel()
+ {
+ // pass
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Promise.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Promise.php
new file mode 100644
index 00000000..844ada07
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/Promise.php
@@ -0,0 +1,280 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * Promises/A+ implementation that avoids recursion when possible.
+ *
+ * @link https://promisesaplus.com/
+ */
+class Promise implements PromiseInterface
+{
+ private $state = self::PENDING;
+ private $result;
+ private $cancelFn;
+ private $waitFn;
+ private $waitList;
+ private $handlers = [];
+
+ /**
+ * @param callable $waitFn Fn that when invoked resolves the promise.
+ * @param callable $cancelFn Fn that when invoked cancels the promise.
+ */
+ public function __construct(
+ callable $waitFn = null,
+ callable $cancelFn = null
+ ) {
+ $this->waitFn = $waitFn;
+ $this->cancelFn = $cancelFn;
+ }
+
+ public function then(
+ callable $onFulfilled = null,
+ callable $onRejected = null
+ ) {
+ if ($this->state === self::PENDING) {
+ $p = new Promise(null, [$this, 'cancel']);
+ $this->handlers[] = [$p, $onFulfilled, $onRejected];
+ $p->waitList = $this->waitList;
+ $p->waitList[] = $this;
+ return $p;
+ }
+
+ // Return a fulfilled promise and immediately invoke any callbacks.
+ if ($this->state === self::FULFILLED) {
+ return $onFulfilled
+ ? promise_for($this->result)->then($onFulfilled)
+ : promise_for($this->result);
+ }
+
+ // It's either cancelled or rejected, so return a rejected promise
+ // and immediately invoke any callbacks.
+ $rejection = rejection_for($this->result);
+ return $onRejected ? $rejection->then(null, $onRejected) : $rejection;
+ }
+
+ public function otherwise(callable $onRejected)
+ {
+ return $this->then(null, $onRejected);
+ }
+
+ public function wait($unwrap = true)
+ {
+ $this->waitIfPending();
+
+ $inner = $this->result instanceof PromiseInterface
+ ? $this->result->wait($unwrap)
+ : $this->result;
+
+ if ($unwrap) {
+ if ($this->result instanceof PromiseInterface
+ || $this->state === self::FULFILLED
+ ) {
+ return $inner;
+ } else {
+ // It's rejected so "unwrap" and throw an exception.
+ throw exception_for($inner);
+ }
+ }
+ }
+
+ public function getState()
+ {
+ return $this->state;
+ }
+
+ public function cancel()
+ {
+ if ($this->state !== self::PENDING) {
+ return;
+ }
+
+ $this->waitFn = $this->waitList = null;
+
+ if ($this->cancelFn) {
+ $fn = $this->cancelFn;
+ $this->cancelFn = null;
+ try {
+ $fn();
+ } catch (\Throwable $e) {
+ $this->reject($e);
+ } catch (\Exception $e) {
+ $this->reject($e);
+ }
+ }
+
+ // Reject the promise only if it wasn't rejected in a then callback.
+ if ($this->state === self::PENDING) {
+ $this->reject(new CancellationException('Promise has been cancelled'));
+ }
+ }
+
+ public function resolve($value)
+ {
+ $this->settle(self::FULFILLED, $value);
+ }
+
+ public function reject($reason)
+ {
+ $this->settle(self::REJECTED, $reason);
+ }
+
+ private function settle($state, $value)
+ {
+ if ($this->state !== self::PENDING) {
+ // Ignore calls with the same resolution.
+ if ($state === $this->state && $value === $this->result) {
+ return;
+ }
+ throw $this->state === $state
+ ? new \LogicException("The promise is already {$state}.")
+ : new \LogicException("Cannot change a {$this->state} promise to {$state}");
+ }
+
+ if ($value === $this) {
+ throw new \LogicException('Cannot fulfill or reject a promise with itself');
+ }
+
+ // Clear out the state of the promise but stash the handlers.
+ $this->state = $state;
+ $this->result = $value;
+ $handlers = $this->handlers;
+ $this->handlers = null;
+ $this->waitList = $this->waitFn = null;
+ $this->cancelFn = null;
+
+ if (!$handlers) {
+ return;
+ }
+
+ // If the value was not a settled promise or a thenable, then resolve
+ // it in the task queue using the correct ID.
+ if (!method_exists($value, 'then')) {
+ $id = $state === self::FULFILLED ? 1 : 2;
+ // It's a success, so resolve the handlers in the queue.
+ queue()->add(static function () use ($id, $value, $handlers) {
+ foreach ($handlers as $handler) {
+ self::callHandler($id, $value, $handler);
+ }
+ });
+ } elseif ($value instanceof Promise
+ && $value->getState() === self::PENDING
+ ) {
+ // We can just merge our handlers onto the next promise.
+ $value->handlers = array_merge($value->handlers, $handlers);
+ } else {
+ // Resolve the handlers when the forwarded promise is resolved.
+ $value->then(
+ static function ($value) use ($handlers) {
+ foreach ($handlers as $handler) {
+ self::callHandler(1, $value, $handler);
+ }
+ },
+ static function ($reason) use ($handlers) {
+ foreach ($handlers as $handler) {
+ self::callHandler(2, $reason, $handler);
+ }
+ }
+ );
+ }
+ }
+
+ /**
+ * Call a stack of handlers using a specific callback index and value.
+ *
+ * @param int $index 1 (resolve) or 2 (reject).
+ * @param mixed $value Value to pass to the callback.
+ * @param array $handler Array of handler data (promise and callbacks).
+ *
+ * @return array Returns the next group to resolve.
+ */
+ private static function callHandler($index, $value, array $handler)
+ {
+ /** @var PromiseInterface $promise */
+ $promise = $handler[0];
+
+ // The promise may have been cancelled or resolved before placing
+ // this thunk in the queue.
+ if ($promise->getState() !== self::PENDING) {
+ return;
+ }
+
+ try {
+ if (isset($handler[$index])) {
+ $promise->resolve($handler[$index]($value));
+ } elseif ($index === 1) {
+ // Forward resolution values as-is.
+ $promise->resolve($value);
+ } else {
+ // Forward rejections down the chain.
+ $promise->reject($value);
+ }
+ } catch (\Throwable $reason) {
+ $promise->reject($reason);
+ } catch (\Exception $reason) {
+ $promise->reject($reason);
+ }
+ }
+
+ private function waitIfPending()
+ {
+ if ($this->state !== self::PENDING) {
+ return;
+ } elseif ($this->waitFn) {
+ $this->invokeWaitFn();
+ } elseif ($this->waitList) {
+ $this->invokeWaitList();
+ } else {
+ // If there's not wait function, then reject the promise.
+ $this->reject('Cannot wait on a promise that has '
+ . 'no internal wait function. You must provide a wait '
+ . 'function when constructing the promise to be able to '
+ . 'wait on a promise.');
+ }
+
+ queue()->run();
+
+ if ($this->state === self::PENDING) {
+ $this->reject('Invoking the wait callback did not resolve the promise');
+ }
+ }
+
+ private function invokeWaitFn()
+ {
+ try {
+ $wfn = $this->waitFn;
+ $this->waitFn = null;
+ $wfn(true);
+ } catch (\Exception $reason) {
+ if ($this->state === self::PENDING) {
+ // The promise has not been resolved yet, so reject the promise
+ // with the exception.
+ $this->reject($reason);
+ } else {
+ // The promise was already resolved, so there's a problem in
+ // the application.
+ throw $reason;
+ }
+ }
+ }
+
+ private function invokeWaitList()
+ {
+ $waitList = $this->waitList;
+ $this->waitList = null;
+
+ foreach ($waitList as $result) {
+ while (true) {
+ $result->waitIfPending();
+
+ if ($result->result instanceof Promise) {
+ $result = $result->result;
+ } else {
+ if ($result->result instanceof PromiseInterface) {
+ $result->result->wait(false);
+ }
+ break;
+ }
+ }
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromiseInterface.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromiseInterface.php
new file mode 100644
index 00000000..8f5f4b99
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromiseInterface.php
@@ -0,0 +1,93 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * A promise represents the eventual result of an asynchronous operation.
+ *
+ * The primary way of interacting with a promise is through its then method,
+ * which registers callbacks to receive either a promise’s eventual value or
+ * the reason why the promise cannot be fulfilled.
+ *
+ * @link https://promisesaplus.com/
+ */
+interface PromiseInterface
+{
+ const PENDING = 'pending';
+ const FULFILLED = 'fulfilled';
+ const REJECTED = 'rejected';
+
+ /**
+ * Appends fulfillment and rejection handlers to the promise, and returns
+ * a new promise resolving to the return value of the called handler.
+ *
+ * @param callable $onFulfilled Invoked when the promise fulfills.
+ * @param callable $onRejected Invoked when the promise is rejected.
+ *
+ * @return PromiseInterface
+ */
+ public function then(
+ callable $onFulfilled = null,
+ callable $onRejected = null
+ );
+
+ /**
+ * Appends a rejection handler callback to the promise, and returns a new
+ * promise resolving to the return value of the callback if it is called,
+ * or to its original fulfillment value if the promise is instead
+ * fulfilled.
+ *
+ * @param callable $onRejected Invoked when the promise is rejected.
+ *
+ * @return PromiseInterface
+ */
+ public function otherwise(callable $onRejected);
+
+ /**
+ * Get the state of the promise ("pending", "rejected", or "fulfilled").
+ *
+ * The three states can be checked against the constants defined on
+ * PromiseInterface: PENDING, FULFILLED, and REJECTED.
+ *
+ * @return string
+ */
+ public function getState();
+
+ /**
+ * Resolve the promise with the given value.
+ *
+ * @param mixed $value
+ * @throws \RuntimeException if the promise is already resolved.
+ */
+ public function resolve($value);
+
+ /**
+ * Reject the promise with the given reason.
+ *
+ * @param mixed $reason
+ * @throws \RuntimeException if the promise is already resolved.
+ */
+ public function reject($reason);
+
+ /**
+ * Cancels the promise if possible.
+ *
+ * @link https://github.com/promises-aplus/cancellation-spec/issues/7
+ */
+ public function cancel();
+
+ /**
+ * Waits until the promise completes if possible.
+ *
+ * Pass $unwrap as true to unwrap the result of the promise, either
+ * returning the resolved value or throwing the rejected exception.
+ *
+ * If the promise cannot be waited on, then the promise will be rejected.
+ *
+ * @param bool $unwrap
+ *
+ * @return mixed
+ * @throws \LogicException if the promise has no wait function or if the
+ * promise does not settle after waiting.
+ */
+ public function wait($unwrap = true);
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromisorInterface.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromisorInterface.php
new file mode 100644
index 00000000..b07fe32b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/PromisorInterface.php
@@ -0,0 +1,15 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * Interface used with classes that return a promise.
+ */
+interface PromisorInterface
+{
+ /**
+ * Returns a promise.
+ *
+ * @return PromiseInterface
+ */
+ public function promise();
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectedPromise.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectedPromise.php
new file mode 100644
index 00000000..2bc6508e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectedPromise.php
@@ -0,0 +1,87 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * A promise that has been rejected.
+ *
+ * Thenning off of this promise will invoke the onRejected callback
+ * immediately and ignore other callbacks.
+ */
+class RejectedPromise implements PromiseInterface
+{
+ private $reason;
+
+ public function __construct($reason)
+ {
+ if (method_exists($reason, 'then')) {
+ throw new \InvalidArgumentException(
+ 'You cannot create a RejectedPromise with a promise.');
+ }
+
+ $this->reason = $reason;
+ }
+
+ public function then(
+ callable $onFulfilled = null,
+ callable $onRejected = null
+ ) {
+ // If there's no onRejected callback then just return self.
+ if (!$onRejected) {
+ return $this;
+ }
+
+ $queue = queue();
+ $reason = $this->reason;
+ $p = new Promise([$queue, 'run']);
+ $queue->add(static function () use ($p, $reason, $onRejected) {
+ if ($p->getState() === self::PENDING) {
+ try {
+ // Return a resolved promise if onRejected does not throw.
+ $p->resolve($onRejected($reason));
+ } catch (\Throwable $e) {
+ // onRejected threw, so return a rejected promise.
+ $p->reject($e);
+ } catch (\Exception $e) {
+ // onRejected threw, so return a rejected promise.
+ $p->reject($e);
+ }
+ }
+ });
+
+ return $p;
+ }
+
+ public function otherwise(callable $onRejected)
+ {
+ return $this->then(null, $onRejected);
+ }
+
+ public function wait($unwrap = true, $defaultDelivery = null)
+ {
+ if ($unwrap) {
+ throw exception_for($this->reason);
+ }
+ }
+
+ public function getState()
+ {
+ return self::REJECTED;
+ }
+
+ public function resolve($value)
+ {
+ throw new \LogicException("Cannot resolve a rejected promise");
+ }
+
+ public function reject($reason)
+ {
+ if ($reason !== $this->reason) {
+ throw new \LogicException("Cannot reject a rejected promise");
+ }
+ }
+
+ public function cancel()
+ {
+ // pass
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectionException.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectionException.php
new file mode 100644
index 00000000..07c1136d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/RejectionException.php
@@ -0,0 +1,47 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * A special exception that is thrown when waiting on a rejected promise.
+ *
+ * The reason value is available via the getReason() method.
+ */
+class RejectionException extends \RuntimeException
+{
+ /** @var mixed Rejection reason. */
+ private $reason;
+
+ /**
+ * @param mixed $reason Rejection reason.
+ * @param string $description Optional description
+ */
+ public function __construct($reason, $description = null)
+ {
+ $this->reason = $reason;
+
+ $message = 'The promise was rejected';
+
+ if ($description) {
+ $message .= ' with reason: ' . $description;
+ } elseif (is_string($reason)
+ || (is_object($reason) && method_exists($reason, '__toString'))
+ ) {
+ $message .= ' with reason: ' . $this->reason;
+ } elseif ($reason instanceof \JsonSerializable) {
+ $message .= ' with reason: '
+ . json_encode($this->reason, JSON_PRETTY_PRINT);
+ }
+
+ parent::__construct($message);
+ }
+
+ /**
+ * Returns the rejection reason.
+ *
+ * @return mixed
+ */
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueue.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueue.php
new file mode 100644
index 00000000..6e8a2a08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueue.php
@@ -0,0 +1,66 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * A task queue that executes tasks in a FIFO order.
+ *
+ * This task queue class is used to settle promises asynchronously and
+ * maintains a constant stack size. You can use the task queue asynchronously
+ * by calling the `run()` function of the global task queue in an event loop.
+ *
+ * GuzzleHttp\Promise\queue()->run();
+ */
+class TaskQueue implements TaskQueueInterface
+{
+ private $enableShutdown = true;
+ private $queue = [];
+
+ public function __construct($withShutdown = true)
+ {
+ if ($withShutdown) {
+ register_shutdown_function(function () {
+ if ($this->enableShutdown) {
+ // Only run the tasks if an E_ERROR didn't occur.
+ $err = error_get_last();
+ if (!$err || ($err['type'] ^ E_ERROR)) {
+ $this->run();
+ }
+ }
+ });
+ }
+ }
+
+ public function isEmpty()
+ {
+ return !$this->queue;
+ }
+
+ public function add(callable $task)
+ {
+ $this->queue[] = $task;
+ }
+
+ public function run()
+ {
+ /** @var callable $task */
+ while ($task = array_shift($this->queue)) {
+ $task();
+ }
+ }
+
+ /**
+ * The task queue will be run and exhausted by default when the process
+ * exits IFF the exit is not the result of a PHP E_ERROR error.
+ *
+ * You can disable running the automatic shutdown of the queue by calling
+ * this function. If you disable the task queue shutdown process, then you
+ * MUST either run the task queue (as a result of running your event loop
+ * or manually using the run() method) or wait on each outstanding promise.
+ *
+ * Note: This shutdown will occur before any destructors are triggered.
+ */
+ public function disableShutdown()
+ {
+ $this->enableShutdown = false;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueueInterface.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueueInterface.php
new file mode 100644
index 00000000..ac8306e1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/TaskQueueInterface.php
@@ -0,0 +1,25 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+interface TaskQueueInterface
+{
+ /**
+ * Returns true if the queue is empty.
+ *
+ * @return bool
+ */
+ public function isEmpty();
+
+ /**
+ * Adds a task to the queue that will be executed the next time run is
+ * called.
+ *
+ * @param callable $task
+ */
+ public function add(callable $task);
+
+ /**
+ * Execute all of the pending task in the queue.
+ */
+ public function run();
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions.php
new file mode 100644
index 00000000..4e27709a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions.php
@@ -0,0 +1,457 @@
+<?php
+namespace GuzzleHttp\Promise;
+
+/**
+ * Get the global task queue used for promise resolution.
+ *
+ * This task queue MUST be run in an event loop in order for promises to be
+ * settled asynchronously. It will be automatically run when synchronously
+ * waiting on a promise.
+ *
+ * <code>
+ * while ($eventLoop->isRunning()) {
+ * GuzzleHttp\Promise\queue()->run();
+ * }
+ * </code>
+ *
+ * @param TaskQueueInterface $assign Optionally specify a new queue instance.
+ *
+ * @return TaskQueueInterface
+ */
+function queue(TaskQueueInterface $assign = null)
+{
+ static $queue;
+
+ if ($assign) {
+ $queue = $assign;
+ } elseif (!$queue) {
+ $queue = new TaskQueue();
+ }
+
+ return $queue;
+}
+
+/**
+ * Adds a function to run in the task queue when it is next `run()` and returns
+ * a promise that is fulfilled or rejected with the result.
+ *
+ * @param callable $task Task function to run.
+ *
+ * @return PromiseInterface
+ */
+function task(callable $task)
+{
+ $queue = queue();
+ $promise = new Promise([$queue, 'run']);
+ $queue->add(function () use ($task, $promise) {
+ try {
+ $promise->resolve($task());
+ } catch (\Throwable $e) {
+ $promise->reject($e);
+ } catch (\Exception $e) {
+ $promise->reject($e);
+ }
+ });
+
+ return $promise;
+}
+
+/**
+ * Creates a promise for a value if the value is not a promise.
+ *
+ * @param mixed $value Promise or value.
+ *
+ * @return PromiseInterface
+ */
+function promise_for($value)
+{
+ if ($value instanceof PromiseInterface) {
+ return $value;
+ }
+
+ // Return a Guzzle promise that shadows the given promise.
+ if (method_exists($value, 'then')) {
+ $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null;
+ $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null;
+ $promise = new Promise($wfn, $cfn);
+ $value->then([$promise, 'resolve'], [$promise, 'reject']);
+ return $promise;
+ }
+
+ return new FulfilledPromise($value);
+}
+
+/**
+ * Creates a rejected promise for a reason if the reason is not a promise. If
+ * the provided reason is a promise, then it is returned as-is.
+ *
+ * @param mixed $reason Promise or reason.
+ *
+ * @return PromiseInterface
+ */
+function rejection_for($reason)
+{
+ if ($reason instanceof PromiseInterface) {
+ return $reason;
+ }
+
+ return new RejectedPromise($reason);
+}
+
+/**
+ * Create an exception for a rejected promise value.
+ *
+ * @param mixed $reason
+ *
+ * @return \Exception|\Throwable
+ */
+function exception_for($reason)
+{
+ return $reason instanceof \Exception || $reason instanceof \Throwable
+ ? $reason
+ : new RejectionException($reason);
+}
+
+/**
+ * Returns an iterator for the given value.
+ *
+ * @param mixed $value
+ *
+ * @return \Iterator
+ */
+function iter_for($value)
+{
+ if ($value instanceof \Iterator) {
+ return $value;
+ } elseif (is_array($value)) {
+ return new \ArrayIterator($value);
+ } else {
+ return new \ArrayIterator([$value]);
+ }
+}
+
+/**
+ * Synchronously waits on a promise to resolve and returns an inspection state
+ * array.
+ *
+ * Returns a state associative array containing a "state" key mapping to a
+ * valid promise state. If the state of the promise is "fulfilled", the array
+ * will contain a "value" key mapping to the fulfilled value of the promise. If
+ * the promise is rejected, the array will contain a "reason" key mapping to
+ * the rejection reason of the promise.
+ *
+ * @param PromiseInterface $promise Promise or value.
+ *
+ * @return array
+ */
+function inspect(PromiseInterface $promise)
+{
+ try {
+ return [
+ 'state' => PromiseInterface::FULFILLED,
+ 'value' => $promise->wait()
+ ];
+ } catch (RejectionException $e) {
+ return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()];
+ } catch (\Throwable $e) {
+ return ['state' => PromiseInterface::REJECTED, 'reason' => $e];
+ } catch (\Exception $e) {
+ return ['state' => PromiseInterface::REJECTED, 'reason' => $e];
+ }
+}
+
+/**
+ * Waits on all of the provided promises, but does not unwrap rejected promises
+ * as thrown exception.
+ *
+ * Returns an array of inspection state arrays.
+ *
+ * @param PromiseInterface[] $promises Traversable of promises to wait upon.
+ *
+ * @return array
+ * @see GuzzleHttp\Promise\inspect for the inspection state array format.
+ */
+function inspect_all($promises)
+{
+ $results = [];
+ foreach ($promises as $key => $promise) {
+ $results[$key] = inspect($promise);
+ }
+
+ return $results;
+}
+
+/**
+ * Waits on all of the provided promises and returns the fulfilled values.
+ *
+ * Returns an array that contains the value of each promise (in the same order
+ * the promises were provided). An exception is thrown if any of the promises
+ * are rejected.
+ *
+ * @param mixed $promises Iterable of PromiseInterface objects to wait on.
+ *
+ * @return array
+ * @throws \Exception on error
+ * @throws \Throwable on error in PHP >=7
+ */
+function unwrap($promises)
+{
+ $results = [];
+ foreach ($promises as $key => $promise) {
+ $results[$key] = $promise->wait();
+ }
+
+ return $results;
+}
+
+/**
+ * Given an array of promises, return a promise that is fulfilled when all the
+ * items in the array are fulfilled.
+ *
+ * The promise's fulfillment value is an array with fulfillment values at
+ * respective positions to the original array. If any promise in the array
+ * rejects, the returned promise is rejected with the rejection reason.
+ *
+ * @param mixed $promises Promises or values.
+ *
+ * @return PromiseInterface
+ */
+function all($promises)
+{
+ $results = [];
+ return each(
+ $promises,
+ function ($value, $idx) use (&$results) {
+ $results[$idx] = $value;
+ },
+ function ($reason, $idx, Promise $aggregate) {
+ $aggregate->reject($reason);
+ }
+ )->then(function () use (&$results) {
+ ksort($results);
+ return $results;
+ });
+}
+
+/**
+ * Initiate a competitive race between multiple promises or values (values will
+ * become immediately fulfilled promises).
+ *
+ * When count amount of promises have been fulfilled, the returned promise is
+ * fulfilled with an array that contains the fulfillment values of the winners
+ * in order of resolution.
+ *
+ * This prommise is rejected with a {@see GuzzleHttp\Promise\AggregateException}
+ * if the number of fulfilled promises is less than the desired $count.
+ *
+ * @param int $count Total number of promises.
+ * @param mixed $promises Promises or values.
+ *
+ * @return PromiseInterface
+ */
+function some($count, $promises)
+{
+ $results = [];
+ $rejections = [];
+
+ return each(
+ $promises,
+ function ($value, $idx, PromiseInterface $p) use (&$results, $count) {
+ if ($p->getState() !== PromiseInterface::PENDING) {
+ return;
+ }
+ $results[$idx] = $value;
+ if (count($results) >= $count) {
+ $p->resolve(null);
+ }
+ },
+ function ($reason) use (&$rejections) {
+ $rejections[] = $reason;
+ }
+ )->then(
+ function () use (&$results, &$rejections, $count) {
+ if (count($results) !== $count) {
+ throw new AggregateException(
+ 'Not enough promises to fulfill count',
+ $rejections
+ );
+ }
+ ksort($results);
+ return array_values($results);
+ }
+ );
+}
+
+/**
+ * Like some(), with 1 as count. However, if the promise fulfills, the
+ * fulfillment value is not an array of 1 but the value directly.
+ *
+ * @param mixed $promises Promises or values.
+ *
+ * @return PromiseInterface
+ */
+function any($promises)
+{
+ return some(1, $promises)->then(function ($values) { return $values[0]; });
+}
+
+/**
+ * Returns a promise that is fulfilled when all of the provided promises have
+ * been fulfilled or rejected.
+ *
+ * The returned promise is fulfilled with an array of inspection state arrays.
+ *
+ * @param mixed $promises Promises or values.
+ *
+ * @return PromiseInterface
+ * @see GuzzleHttp\Promise\inspect for the inspection state array format.
+ */
+function settle($promises)
+{
+ $results = [];
+
+ return each(
+ $promises,
+ function ($value, $idx) use (&$results) {
+ $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value];
+ },
+ function ($reason, $idx) use (&$results) {
+ $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason];
+ }
+ )->then(function () use (&$results) {
+ ksort($results);
+ return $results;
+ });
+}
+
+/**
+ * Given an iterator that yields promises or values, returns a promise that is
+ * fulfilled with a null value when the iterator has been consumed or the
+ * aggregate promise has been fulfilled or rejected.
+ *
+ * $onFulfilled is a function that accepts the fulfilled value, iterator
+ * index, and the aggregate promise. The callback can invoke any necessary side
+ * effects and choose to resolve or reject the aggregate promise if needed.
+ *
+ * $onRejected is a function that accepts the rejection reason, iterator
+ * index, and the aggregate promise. The callback can invoke any necessary side
+ * effects and choose to resolve or reject the aggregate promise if needed.
+ *
+ * @param mixed $iterable Iterator or array to iterate over.
+ * @param callable $onFulfilled
+ * @param callable $onRejected
+ *
+ * @return PromiseInterface
+ */
+function each(
+ $iterable,
+ callable $onFulfilled = null,
+ callable $onRejected = null
+) {
+ return (new EachPromise($iterable, [
+ 'fulfilled' => $onFulfilled,
+ 'rejected' => $onRejected
+ ]))->promise();
+}
+
+/**
+ * Like each, but only allows a certain number of outstanding promises at any
+ * given time.
+ *
+ * $concurrency may be an integer or a function that accepts the number of
+ * pending promises and returns a numeric concurrency limit value to allow for
+ * dynamic a concurrency size.
+ *
+ * @param mixed $iterable
+ * @param int|callable $concurrency
+ * @param callable $onFulfilled
+ * @param callable $onRejected
+ *
+ * @return PromiseInterface
+ */
+function each_limit(
+ $iterable,
+ $concurrency,
+ callable $onFulfilled = null,
+ callable $onRejected = null
+) {
+ return (new EachPromise($iterable, [
+ 'fulfilled' => $onFulfilled,
+ 'rejected' => $onRejected,
+ 'concurrency' => $concurrency
+ ]))->promise();
+}
+
+/**
+ * Like each_limit, but ensures that no promise in the given $iterable argument
+ * is rejected. If any promise is rejected, then the aggregate promise is
+ * rejected with the encountered rejection.
+ *
+ * @param mixed $iterable
+ * @param int|callable $concurrency
+ * @param callable $onFulfilled
+ *
+ * @return PromiseInterface
+ */
+function each_limit_all(
+ $iterable,
+ $concurrency,
+ callable $onFulfilled = null
+) {
+ return each_limit(
+ $iterable,
+ $concurrency,
+ $onFulfilled,
+ function ($reason, $idx, PromiseInterface $aggregate) {
+ $aggregate->reject($reason);
+ }
+ );
+}
+
+/**
+ * Returns true if a promise is fulfilled.
+ *
+ * @param PromiseInterface $promise
+ *
+ * @return bool
+ */
+function is_fulfilled(PromiseInterface $promise)
+{
+ return $promise->getState() === PromiseInterface::FULFILLED;
+}
+
+/**
+ * Returns true if a promise is rejected.
+ *
+ * @param PromiseInterface $promise
+ *
+ * @return bool
+ */
+function is_rejected(PromiseInterface $promise)
+{
+ return $promise->getState() === PromiseInterface::REJECTED;
+}
+
+/**
+ * Returns true if a promise is fulfilled or rejected.
+ *
+ * @param PromiseInterface $promise
+ *
+ * @return bool
+ */
+function is_settled(PromiseInterface $promise)
+{
+ return $promise->getState() !== PromiseInterface::PENDING;
+}
+
+/**
+ * @see Coroutine
+ *
+ * @param callable $generatorFn
+ *
+ * @return PromiseInterface
+ */
+function coroutine(callable $generatorFn)
+{
+ return new Coroutine($generatorFn);
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions_include.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions_include.php
new file mode 100644
index 00000000..34cd1710
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/promises/src/functions_include.php
@@ -0,0 +1,6 @@
+<?php
+
+// Don't redefine the functions if included multiple times.
+if (!function_exists('GuzzleHttp\Promise\promise_for')) {
+ require __DIR__ . '/functions.php';
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/CHANGELOG.md b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/CHANGELOG.md
new file mode 100644
index 00000000..5c252b3a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/CHANGELOG.md
@@ -0,0 +1,110 @@
+# CHANGELOG
+
+## 1.4.2 - 2017-03-20
+
+* Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing
+ calls to `trigger_error` when deprecated methods are invoked.
+
+## 1.4.1 - 2017-02-27
+
+* Reverted BC break by reintroducing behavior to automagically fix a URI with a
+ relative path and an authority by adding a leading slash to the path. It's only
+ deprecated now.
+* Added triggering of silenced deprecation warnings.
+
+## 1.4.0 - 2017-02-21
+
+* Fix `Stream::read` when length parameter <= 0.
+* `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory.
+* Fix `ServerRequest::getUriFromGlobals` when `Host` header contains port.
+* Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form.
+* Allow `parse_response` to parse a response without delimiting space and reason.
+* Ensure each URI modification results in a valid URI according to PSR-7 discussions.
+ Invalid modifications will throw an exception instead of returning a wrong URI or
+ doing some magic.
+ - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception
+ because the path of a URI with an authority must start with a slash "/" or be empty
+ - `(new Uri())->withScheme('http')` will return `'http://localhost'`
+* Fix compatibility of URIs with `file` scheme and empty host.
+* Added common URI utility methods based on RFC 3986 (see documentation in the readme):
+ - `Uri::isDefaultPort`
+ - `Uri::isAbsolute`
+ - `Uri::isNetworkPathReference`
+ - `Uri::isAbsolutePathReference`
+ - `Uri::isRelativePathReference`
+ - `Uri::isSameDocumentReference`
+ - `Uri::composeComponents`
+ - `UriNormalizer::normalize`
+ - `UriNormalizer::isEquivalent`
+ - `UriResolver::relativize`
+* Deprecated `Uri::resolve` in favor of `UriResolver::resolve`
+* Deprecated `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments`
+
+## 1.3.1 - 2016-06-25
+
+* Fix `Uri::__toString` for network path references, e.g. `//example.org`.
+* Fix missing lowercase normalization for host.
+* Fix handling of URI components in case they are `'0'` in a lot of places,
+ e.g. as a user info password.
+* Fix `Uri::withAddedHeader` to correctly merge headers with different case.
+* Fix trimming of header values in `Uri::withAddedHeader`. Header values may
+ be surrounded by whitespace which should be ignored according to RFC 7230
+ Section 3.2.4. This does not apply to header names.
+* Fix `Uri::withAddedHeader` with an array of header values.
+* Fix `Uri::resolve` when base path has no slash and handling of fragment.
+* Fix handling of encoding in `Uri::with(out)QueryValue` so one can pass the
+ key/value both in encoded as well as decoded form to those methods. This is
+ consistent with withPath, withQuery etc.
+* Fix `ServerRequest::withoutAttribute` when attribute value is null.
+
+## 1.3.0 - 2016-04-13
+
+* Added remaining interfaces needed for full PSR7 compatibility
+ (ServerRequestInterface, UploadedFileInterface, etc.).
+* Added support for stream_for from scalars.
+* Can now extend Uri.
+* Fixed a bug in validating request methods by making it more permissive.
+
+## 1.2.3 - 2016-02-18
+
+* Fixed support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote
+ streams, which can sometimes return fewer bytes than requested with `fread`.
+* Fixed handling of gzipped responses with FNAME headers.
+
+## 1.2.2 - 2016-01-22
+
+* Added support for URIs without any authority.
+* Added support for HTTP 451 'Unavailable For Legal Reasons.'
+* Added support for using '0' as a filename.
+* Added support for including non-standard ports in Host headers.
+
+## 1.2.1 - 2015-11-02
+
+* Now supporting negative offsets when seeking to SEEK_END.
+
+## 1.2.0 - 2015-08-15
+
+* Body as `"0"` is now properly added to a response.
+* Now allowing forward seeking in CachingStream.
+* Now properly parsing HTTP requests that contain proxy targets in
+ `parse_request`.
+* functions.php is now conditionally required.
+* user-info is no longer dropped when resolving URIs.
+
+## 1.1.0 - 2015-06-24
+
+* URIs can now be relative.
+* `multipart/form-data` headers are now overridden case-insensitively.
+* URI paths no longer encode the following characters because they are allowed
+ in URIs: "(", ")", "*", "!", "'"
+* A port is no longer added to a URI when the scheme is missing and no port is
+ present.
+
+## 1.0.0 - 2015-05-19
+
+Initial release.
+
+Currently unsupported:
+
+- `Psr\Http\Message\ServerRequestInterface`
+- `Psr\Http\Message\UploadedFileInterface`
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/LICENSE b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/LICENSE
new file mode 100644
index 00000000..581d95f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2015 Michael Dowling, https://github.com/mtdowling <mtdowling@gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/README.md b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/README.md
new file mode 100644
index 00000000..16499358
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/README.md
@@ -0,0 +1,739 @@
+# PSR-7 Message Implementation
+
+This repository contains a full [PSR-7](http://www.php-fig.org/psr/psr-7/)
+message implementation, several stream decorators, and some helpful
+functionality like query string parsing.
+
+
+[![Build Status](https://travis-ci.org/guzzle/psr7.svg?branch=master)](https://travis-ci.org/guzzle/psr7)
+
+
+# Stream implementation
+
+This package comes with a number of stream implementations and stream
+decorators.
+
+
+## AppendStream
+
+`GuzzleHttp\Psr7\AppendStream`
+
+Reads from multiple streams, one after the other.
+
+```php
+use GuzzleHttp\Psr7;
+
+$a = Psr7\stream_for('abc, ');
+$b = Psr7\stream_for('123.');
+$composed = new Psr7\AppendStream([$a, $b]);
+
+$composed->addStream(Psr7\stream_for(' Above all listen to me'));
+
+echo $composed; // abc, 123. Above all listen to me.
+```
+
+
+## BufferStream
+
+`GuzzleHttp\Psr7\BufferStream`
+
+Provides a buffer stream that can be written to fill a buffer, and read
+from to remove bytes from the buffer.
+
+This stream returns a "hwm" metadata value that tells upstream consumers
+what the configured high water mark of the stream is, or the maximum
+preferred size of the buffer.
+
+```php
+use GuzzleHttp\Psr7;
+
+// When more than 1024 bytes are in the buffer, it will begin returning
+// false to writes. This is an indication that writers should slow down.
+$buffer = new Psr7\BufferStream(1024);
+```
+
+
+## CachingStream
+
+The CachingStream is used to allow seeking over previously read bytes on
+non-seekable streams. This can be useful when transferring a non-seekable
+entity body fails due to needing to rewind the stream (for example, resulting
+from a redirect). Data that is read from the remote stream will be buffered in
+a PHP temp stream so that previously read bytes are cached first in memory,
+then on disk.
+
+```php
+use GuzzleHttp\Psr7;
+
+$original = Psr7\stream_for(fopen('http://www.google.com', 'r'));
+$stream = new Psr7\CachingStream($original);
+
+$stream->read(1024);
+echo $stream->tell();
+// 1024
+
+$stream->seek(0);
+echo $stream->tell();
+// 0
+```
+
+
+## DroppingStream
+
+`GuzzleHttp\Psr7\DroppingStream`
+
+Stream decorator that begins dropping data once the size of the underlying
+stream becomes too full.
+
+```php
+use GuzzleHttp\Psr7;
+
+// Create an empty stream
+$stream = Psr7\stream_for();
+
+// Start dropping data when the stream has more than 10 bytes
+$dropping = new Psr7\DroppingStream($stream, 10);
+
+$dropping->write('01234567890123456789');
+echo $stream; // 0123456789
+```
+
+
+## FnStream
+
+`GuzzleHttp\Psr7\FnStream`
+
+Compose stream implementations based on a hash of functions.
+
+Allows for easy testing and extension of a provided stream without needing
+to create a concrete class for a simple extension point.
+
+```php
+
+use GuzzleHttp\Psr7;
+
+$stream = Psr7\stream_for('hi');
+$fnStream = Psr7\FnStream::decorate($stream, [
+ 'rewind' => function () use ($stream) {
+ echo 'About to rewind - ';
+ $stream->rewind();
+ echo 'rewound!';
+ }
+]);
+
+$fnStream->rewind();
+// Outputs: About to rewind - rewound!
+```
+
+
+## InflateStream
+
+`GuzzleHttp\Psr7\InflateStream`
+
+Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
+
+This stream decorator skips the first 10 bytes of the given stream to remove
+the gzip header, converts the provided stream to a PHP stream resource,
+then appends the zlib.inflate filter. The stream is then converted back
+to a Guzzle stream resource to be used as a Guzzle stream.
+
+
+## LazyOpenStream
+
+`GuzzleHttp\Psr7\LazyOpenStream`
+
+Lazily reads or writes to a file that is opened only after an IO operation
+take place on the stream.
+
+```php
+use GuzzleHttp\Psr7;
+
+$stream = new Psr7\LazyOpenStream('/path/to/file', 'r');
+// The file has not yet been opened...
+
+echo $stream->read(10);
+// The file is opened and read from only when needed.
+```
+
+
+## LimitStream
+
+`GuzzleHttp\Psr7\LimitStream`
+
+LimitStream can be used to read a subset or slice of an existing stream object.
+This can be useful for breaking a large file into smaller pieces to be sent in
+chunks (e.g. Amazon S3's multipart upload API).
+
+```php
+use GuzzleHttp\Psr7;
+
+$original = Psr7\stream_for(fopen('/tmp/test.txt', 'r+'));
+echo $original->getSize();
+// >>> 1048576
+
+// Limit the size of the body to 1024 bytes and start reading from byte 2048
+$stream = new Psr7\LimitStream($original, 1024, 2048);
+echo $stream->getSize();
+// >>> 1024
+echo $stream->tell();
+// >>> 0
+```
+
+
+## MultipartStream
+
+`GuzzleHttp\Psr7\MultipartStream`
+
+Stream that when read returns bytes for a streaming multipart or
+multipart/form-data stream.
+
+
+## NoSeekStream
+
+`GuzzleHttp\Psr7\NoSeekStream`
+
+NoSeekStream wraps a stream and does not allow seeking.
+
+```php
+use GuzzleHttp\Psr7;
+
+$original = Psr7\stream_for('foo');
+$noSeek = new Psr7\NoSeekStream($original);
+
+echo $noSeek->read(3);
+// foo
+var_export($noSeek->isSeekable());
+// false
+$noSeek->seek(0);
+var_export($noSeek->read(3));
+// NULL
+```
+
+
+## PumpStream
+
+`GuzzleHttp\Psr7\PumpStream`
+
+Provides a read only stream that pumps data from a PHP callable.
+
+When invoking the provided callable, the PumpStream will pass the amount of
+data requested to read to the callable. The callable can choose to ignore
+this value and return fewer or more bytes than requested. Any extra data
+returned by the provided callable is buffered internally until drained using
+the read() function of the PumpStream. The provided callable MUST return
+false when there is no more data to read.
+
+
+## Implementing stream decorators
+
+Creating a stream decorator is very easy thanks to the
+`GuzzleHttp\Psr7\StreamDecoratorTrait`. This trait provides methods that
+implement `Psr\Http\Message\StreamInterface` by proxying to an underlying
+stream. Just `use` the `StreamDecoratorTrait` and implement your custom
+methods.
+
+For example, let's say we wanted to call a specific function each time the last
+byte is read from a stream. This could be implemented by overriding the
+`read()` method.
+
+```php
+use Psr\Http\Message\StreamInterface;
+use GuzzleHttp\Psr7\StreamDecoratorTrait;
+
+class EofCallbackStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ private $callback;
+
+ public function __construct(StreamInterface $stream, callable $cb)
+ {
+ $this->stream = $stream;
+ $this->callback = $cb;
+ }
+
+ public function read($length)
+ {
+ $result = $this->stream->read($length);
+
+ // Invoke the callback when EOF is hit.
+ if ($this->eof()) {
+ call_user_func($this->callback);
+ }
+
+ return $result;
+ }
+}
+```
+
+This decorator could be added to any existing stream and used like so:
+
+```php
+use GuzzleHttp\Psr7;
+
+$original = Psr7\stream_for('foo');
+
+$eofStream = new EofCallbackStream($original, function () {
+ echo 'EOF!';
+});
+
+$eofStream->read(2);
+$eofStream->read(1);
+// echoes "EOF!"
+$eofStream->seek(0);
+$eofStream->read(3);
+// echoes "EOF!"
+```
+
+
+## PHP StreamWrapper
+
+You can use the `GuzzleHttp\Psr7\StreamWrapper` class if you need to use a
+PSR-7 stream as a PHP stream resource.
+
+Use the `GuzzleHttp\Psr7\StreamWrapper::getResource()` method to create a PHP
+stream from a PSR-7 stream.
+
+```php
+use GuzzleHttp\Psr7\StreamWrapper;
+
+$stream = GuzzleHttp\Psr7\stream_for('hello!');
+$resource = StreamWrapper::getResource($stream);
+echo fread($resource, 6); // outputs hello!
+```
+
+
+# Function API
+
+There are various functions available under the `GuzzleHttp\Psr7` namespace.
+
+
+## `function str`
+
+`function str(MessageInterface $message)`
+
+Returns the string representation of an HTTP message.
+
+```php
+$request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com');
+echo GuzzleHttp\Psr7\str($request);
+```
+
+
+## `function uri_for`
+
+`function uri_for($uri)`
+
+This function accepts a string or `Psr\Http\Message\UriInterface` and returns a
+UriInterface for the given value. If the value is already a `UriInterface`, it
+is returned as-is.
+
+```php
+$uri = GuzzleHttp\Psr7\uri_for('http://example.com');
+assert($uri === GuzzleHttp\Psr7\uri_for($uri));
+```
+
+
+## `function stream_for`
+
+`function stream_for($resource = '', array $options = [])`
+
+Create a new stream based on the input type.
+
+Options is an associative array that can contain the following keys:
+
+* - metadata: Array of custom metadata.
+* - size: Size of the stream.
+
+This method accepts the following `$resource` types:
+
+- `Psr\Http\Message\StreamInterface`: Returns the value as-is.
+- `string`: Creates a stream object that uses the given string as the contents.
+- `resource`: Creates a stream object that wraps the given PHP stream resource.
+- `Iterator`: If the provided value implements `Iterator`, then a read-only
+ stream object will be created that wraps the given iterable. Each time the
+ stream is read from, data from the iterator will fill a buffer and will be
+ continuously called until the buffer is equal to the requested read size.
+ Subsequent read calls will first read from the buffer and then call `next`
+ on the underlying iterator until it is exhausted.
+- `object` with `__toString()`: If the object has the `__toString()` method,
+ the object will be cast to a string and then a stream will be returned that
+ uses the string value.
+- `NULL`: When `null` is passed, an empty stream object is returned.
+- `callable` When a callable is passed, a read-only stream object will be
+ created that invokes the given callable. The callable is invoked with the
+ number of suggested bytes to read. The callable can return any number of
+ bytes, but MUST return `false` when there is no more data to return. The
+ stream object that wraps the callable will invoke the callable until the
+ number of requested bytes are available. Any additional bytes will be
+ buffered and used in subsequent reads.
+
+```php
+$stream = GuzzleHttp\Psr7\stream_for('foo');
+$stream = GuzzleHttp\Psr7\stream_for(fopen('/path/to/file', 'r'));
+
+$generator function ($bytes) {
+ for ($i = 0; $i < $bytes; $i++) {
+ yield ' ';
+ }
+}
+
+$stream = GuzzleHttp\Psr7\stream_for($generator(100));
+```
+
+
+## `function parse_header`
+
+`function parse_header($header)`
+
+Parse an array of header values containing ";" separated data into an array of
+associative arrays representing the header key value pair data of the header.
+When a parameter does not contain a value, but just contains a key, this
+function will inject a key with a '' string value.
+
+
+## `function normalize_header`
+
+`function normalize_header($header)`
+
+Converts an array of header values that may contain comma separated headers
+into an array of headers with no comma separated values.
+
+
+## `function modify_request`
+
+`function modify_request(RequestInterface $request, array $changes)`
+
+Clone and modify a request with the given changes. This method is useful for
+reducing the number of clones needed to mutate a message.
+
+The changes can be one of:
+
+- method: (string) Changes the HTTP method.
+- set_headers: (array) Sets the given headers.
+- remove_headers: (array) Remove the given headers.
+- body: (mixed) Sets the given body.
+- uri: (UriInterface) Set the URI.
+- query: (string) Set the query string value of the URI.
+- version: (string) Set the protocol version.
+
+
+## `function rewind_body`
+
+`function rewind_body(MessageInterface $message)`
+
+Attempts to rewind a message body and throws an exception on failure. The body
+of the message will only be rewound if a call to `tell()` returns a value other
+than `0`.
+
+
+## `function try_fopen`
+
+`function try_fopen($filename, $mode)`
+
+Safely opens a PHP stream resource using a filename.
+
+When fopen fails, PHP normally raises a warning. This function adds an error
+handler that checks for errors and throws an exception instead.
+
+
+## `function copy_to_string`
+
+`function copy_to_string(StreamInterface $stream, $maxLen = -1)`
+
+Copy the contents of a stream into a string until the given number of bytes
+have been read.
+
+
+## `function copy_to_stream`
+
+`function copy_to_stream(StreamInterface $source, StreamInterface $dest, $maxLen = -1)`
+
+Copy the contents of a stream into another stream until the given number of
+bytes have been read.
+
+
+## `function hash`
+
+`function hash(StreamInterface $stream, $algo, $rawOutput = false)`
+
+Calculate a hash of a Stream. This method reads the entire stream to calculate
+a rolling hash (based on PHP's hash_init functions).
+
+
+## `function readline`
+
+`function readline(StreamInterface $stream, $maxLength = null)`
+
+Read a line from the stream up to the maximum allowed buffer length.
+
+
+## `function parse_request`
+
+`function parse_request($message)`
+
+Parses a request message string into a request object.
+
+
+## `function parse_response`
+
+`function parse_response($message)`
+
+Parses a response message string into a response object.
+
+
+## `function parse_query`
+
+`function parse_query($str, $urlEncoding = true)`
+
+Parse a query string into an associative array.
+
+If multiple values are found for the same key, the value of that key value pair
+will become an array. This function does not parse nested PHP style arrays into
+an associative array (e.g., `foo[a]=1&foo[b]=2` will be parsed into
+`['foo[a]' => '1', 'foo[b]' => '2']`).
+
+
+## `function build_query`
+
+`function build_query(array $params, $encoding = PHP_QUERY_RFC3986)`
+
+Build a query string from an array of key value pairs.
+
+This function can use the return value of parse_query() to build a query string.
+This function does not modify the provided keys when an array is encountered
+(like http_build_query would).
+
+
+## `function mimetype_from_filename`
+
+`function mimetype_from_filename($filename)`
+
+Determines the mimetype of a file by looking at its extension.
+
+
+## `function mimetype_from_extension`
+
+`function mimetype_from_extension($extension)`
+
+Maps a file extensions to a mimetype.
+
+
+# Additional URI Methods
+
+Aside from the standard `Psr\Http\Message\UriInterface` implementation in form of the `GuzzleHttp\Psr7\Uri` class,
+this library also provides additional functionality when working with URIs as static methods.
+
+## URI Types
+
+An instance of `Psr\Http\Message\UriInterface` can either be an absolute URI or a relative reference.
+An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI,
+the base URI. Relative references can be divided into several forms according to
+[RFC 3986 Section 4.2](https://tools.ietf.org/html/rfc3986#section-4.2):
+
+- network-path references, e.g. `//example.com/path`
+- absolute-path references, e.g. `/path`
+- relative-path references, e.g. `subpath`
+
+The following methods can be used to identify the type of the URI.
+
+### `GuzzleHttp\Psr7\Uri::isAbsolute`
+
+`public static function isAbsolute(UriInterface $uri): bool`
+
+Whether the URI is absolute, i.e. it has a scheme.
+
+### `GuzzleHttp\Psr7\Uri::isNetworkPathReference`
+
+`public static function isNetworkPathReference(UriInterface $uri): bool`
+
+Whether the URI is a network-path reference. A relative reference that begins with two slash characters is
+termed an network-path reference.
+
+### `GuzzleHttp\Psr7\Uri::isAbsolutePathReference`
+
+`public static function isAbsolutePathReference(UriInterface $uri): bool`
+
+Whether the URI is a absolute-path reference. A relative reference that begins with a single slash character is
+termed an absolute-path reference.
+
+### `GuzzleHttp\Psr7\Uri::isRelativePathReference`
+
+`public static function isRelativePathReference(UriInterface $uri): bool`
+
+Whether the URI is a relative-path reference. A relative reference that does not begin with a slash character is
+termed a relative-path reference.
+
+### `GuzzleHttp\Psr7\Uri::isSameDocumentReference`
+
+`public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool`
+
+Whether the URI is a same-document reference. A same-document reference refers to a URI that is, aside from its
+fragment component, identical to the base URI. When no base URI is given, only an empty URI reference
+(apart from its fragment) is considered a same-document reference.
+
+## URI Components
+
+Additional methods to work with URI components.
+
+### `GuzzleHttp\Psr7\Uri::isDefaultPort`
+
+`public static function isDefaultPort(UriInterface $uri): bool`
+
+Whether the URI has the default port of the current scheme. `Psr\Http\Message\UriInterface::getPort` may return null
+or the standard port. This method can be used independently of the implementation.
+
+### `GuzzleHttp\Psr7\Uri::composeComponents`
+
+`public static function composeComponents($scheme, $authority, $path, $query, $fragment): string`
+
+Composes a URI reference string from its various components according to
+[RFC 3986 Section 5.3](https://tools.ietf.org/html/rfc3986#section-5.3). Usually this method does not need to be called
+manually but instead is used indirectly via `Psr\Http\Message\UriInterface::__toString`.
+
+### `GuzzleHttp\Psr7\Uri::fromParts`
+
+`public static function fromParts(array $parts): UriInterface`
+
+Creates a URI from a hash of [`parse_url`](http://php.net/manual/en/function.parse-url.php) components.
+
+
+### `GuzzleHttp\Psr7\Uri::withQueryValue`
+
+`public static function withQueryValue(UriInterface $uri, $key, $value): UriInterface`
+
+Creates a new URI with a specific query string value. Any existing query string values that exactly match the
+provided key are removed and replaced with the given key value pair. A value of null will set the query string
+key without a value, e.g. "key" instead of "key=value".
+
+
+### `GuzzleHttp\Psr7\Uri::withoutQueryValue`
+
+`public static function withoutQueryValue(UriInterface $uri, $key): UriInterface`
+
+Creates a new URI with a specific query string value removed. Any existing query string values that exactly match the
+provided key are removed.
+
+## Reference Resolution
+
+`GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base URI according
+to [RFC 3986 Section 5](https://tools.ietf.org/html/rfc3986#section-5). This is for example also what web browsers
+do when resolving a link in a website based on the current request URI.
+
+### `GuzzleHttp\Psr7\UriResolver::resolve`
+
+`public static function resolve(UriInterface $base, UriInterface $rel): UriInterface`
+
+Converts the relative URI into a new URI that is resolved against the base URI.
+
+### `GuzzleHttp\Psr7\UriResolver::removeDotSegments`
+
+`public static function removeDotSegments(string $path): string`
+
+Removes dot segments from a path and returns the new path according to
+[RFC 3986 Section 5.2.4](https://tools.ietf.org/html/rfc3986#section-5.2.4).
+
+### `GuzzleHttp\Psr7\UriResolver::relativize`
+
+`public static function relativize(UriInterface $base, UriInterface $target): UriInterface`
+
+Returns the target URI as a relative reference from the base URI. This method is the counterpart to resolve():
+
+```php
+(string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target))
+```
+
+One use-case is to use the current request URI as base URI and then generate relative links in your documents
+to reduce the document size or offer self-contained downloadable document archives.
+
+```php
+$base = new Uri('http://example.com/a/b/');
+echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'.
+echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'.
+echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'.
+echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'.
+```
+
+## Normalization and Comparison
+
+`GuzzleHttp\Psr7\UriNormalizer` provides methods to normalize and compare URIs according to
+[RFC 3986 Section 6](https://tools.ietf.org/html/rfc3986#section-6).
+
+### `GuzzleHttp\Psr7\UriNormalizer::normalize`
+
+`public static function normalize(UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS): UriInterface`
+
+Returns a normalized URI. The scheme and host component are already normalized to lowercase per PSR-7 UriInterface.
+This methods adds additional normalizations that can be configured with the `$flags` parameter which is a bitmask
+of normalizations to apply. The following normalizations are available:
+
+- `UriNormalizer::PRESERVING_NORMALIZATIONS`
+
+ Default normalizations which only include the ones that preserve semantics.
+
+- `UriNormalizer::CAPITALIZE_PERCENT_ENCODING`
+
+ All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized.
+
+ Example: `http://example.org/a%c2%b1b` → `http://example.org/a%C2%B1b`
+
+- `UriNormalizer::DECODE_UNRESERVED_CHARACTERS`
+
+ Decodes percent-encoded octets of unreserved characters. For consistency, percent-encoded octets in the ranges of
+ ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39), hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should
+ not be created by URI producers and, when found in a URI, should be decoded to their corresponding unreserved
+ characters by URI normalizers.
+
+ Example: `http://example.org/%7Eusern%61me/` → `http://example.org/~username/`
+
+- `UriNormalizer::CONVERT_EMPTY_PATH`
+
+ Converts the empty path to "/" for http and https URIs.
+
+ Example: `http://example.org` → `http://example.org/`
+
+- `UriNormalizer::REMOVE_DEFAULT_HOST`
+
+ Removes the default host of the given URI scheme from the URI. Only the "file" scheme defines the default host
+ "localhost". All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile` are equivalent according to
+ RFC 3986.
+
+ Example: `file://localhost/myfile` → `file:///myfile`
+
+- `UriNormalizer::REMOVE_DEFAULT_PORT`
+
+ Removes the default port of the given URI scheme from the URI.
+
+ Example: `http://example.org:80/` → `http://example.org/`
+
+- `UriNormalizer::REMOVE_DOT_SEGMENTS`
+
+ Removes unnecessary dot-segments. Dot-segments in relative-path references are not removed as it would
+ change the semantics of the URI reference.
+
+ Example: `http://example.org/../a/b/../c/./d.html` → `http://example.org/a/c/d.html`
+
+- `UriNormalizer::REMOVE_DUPLICATE_SLASHES`
+
+ Paths which include two or more adjacent slashes are converted to one. Webservers usually ignore duplicate slashes
+ and treat those URIs equivalent. But in theory those URIs do not need to be equivalent. So this normalization
+ may change the semantics. Encoded slashes (%2F) are not removed.
+
+ Example: `http://example.org//foo///bar.html` → `http://example.org/foo/bar.html`
+
+- `UriNormalizer::SORT_QUERY_PARAMETERS`
+
+ Sort query parameters with their values in alphabetical order. However, the order of parameters in a URI may be
+ significant (this is not defined by the standard). So this normalization is not safe and may change the semantics
+ of the URI.
+
+ Example: `?lang=en&article=fred` → `?article=fred&lang=en`
+
+### `GuzzleHttp\Psr7\UriNormalizer::isEquivalent`
+
+`public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS): bool`
+
+Whether two URIs can be considered equivalent. Both URIs are normalized automatically before comparison with the given
+`$normalizations` bitmask. The method also accepts relative URI references and returns true when they are equivalent.
+This of course assumes they will be resolved against the same base URI. If this is not the case, determination of
+equivalence or difference of relative references does not mean anything.
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/composer.json b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/composer.json
new file mode 100644
index 00000000..b1c5a90b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/composer.json
@@ -0,0 +1,39 @@
+{
+ "name": "guzzlehttp/psr7",
+ "type": "library",
+ "description": "PSR-7 message implementation that also provides common utility methods",
+ "keywords": ["request", "response", "message", "stream", "http", "uri", "url"],
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Michael Dowling",
+ "email": "mtdowling@gmail.com",
+ "homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "Tobias Schultze",
+ "homepage": "https://github.com/Tobion"
+ }
+ ],
+ "require": {
+ "php": ">=5.4.0",
+ "psr/http-message": "~1.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.0"
+ },
+ "provide": {
+ "psr/http-message-implementation": "1.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "GuzzleHttp\\Psr7\\": "src/"
+ },
+ "files": ["src/functions_include.php"]
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/AppendStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/AppendStream.php
new file mode 100644
index 00000000..23039fd7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/AppendStream.php
@@ -0,0 +1,233 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Reads from multiple streams, one after the other.
+ *
+ * This is a read-only stream decorator.
+ */
+class AppendStream implements StreamInterface
+{
+ /** @var StreamInterface[] Streams being decorated */
+ private $streams = [];
+
+ private $seekable = true;
+ private $current = 0;
+ private $pos = 0;
+ private $detached = false;
+
+ /**
+ * @param StreamInterface[] $streams Streams to decorate. Each stream must
+ * be readable.
+ */
+ public function __construct(array $streams = [])
+ {
+ foreach ($streams as $stream) {
+ $this->addStream($stream);
+ }
+ }
+
+ public function __toString()
+ {
+ try {
+ $this->rewind();
+ return $this->getContents();
+ } catch (\Exception $e) {
+ return '';
+ }
+ }
+
+ /**
+ * Add a stream to the AppendStream
+ *
+ * @param StreamInterface $stream Stream to append. Must be readable.
+ *
+ * @throws \InvalidArgumentException if the stream is not readable
+ */
+ public function addStream(StreamInterface $stream)
+ {
+ if (!$stream->isReadable()) {
+ throw new \InvalidArgumentException('Each stream must be readable');
+ }
+
+ // The stream is only seekable if all streams are seekable
+ if (!$stream->isSeekable()) {
+ $this->seekable = false;
+ }
+
+ $this->streams[] = $stream;
+ }
+
+ public function getContents()
+ {
+ return copy_to_string($this);
+ }
+
+ /**
+ * Closes each attached stream.
+ *
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ $this->pos = $this->current = 0;
+
+ foreach ($this->streams as $stream) {
+ $stream->close();
+ }
+
+ $this->streams = [];
+ }
+
+ /**
+ * Detaches each attached stream
+ *
+ * {@inheritdoc}
+ */
+ public function detach()
+ {
+ $this->close();
+ $this->detached = true;
+ }
+
+ public function tell()
+ {
+ return $this->pos;
+ }
+
+ /**
+ * Tries to calculate the size by adding the size of each stream.
+ *
+ * If any of the streams do not return a valid number, then the size of the
+ * append stream cannot be determined and null is returned.
+ *
+ * {@inheritdoc}
+ */
+ public function getSize()
+ {
+ $size = 0;
+
+ foreach ($this->streams as $stream) {
+ $s = $stream->getSize();
+ if ($s === null) {
+ return null;
+ }
+ $size += $s;
+ }
+
+ return $size;
+ }
+
+ public function eof()
+ {
+ return !$this->streams ||
+ ($this->current >= count($this->streams) - 1 &&
+ $this->streams[$this->current]->eof());
+ }
+
+ public function rewind()
+ {
+ $this->seek(0);
+ }
+
+ /**
+ * Attempts to seek to the given position. Only supports SEEK_SET.
+ *
+ * {@inheritdoc}
+ */
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ if (!$this->seekable) {
+ throw new \RuntimeException('This AppendStream is not seekable');
+ } elseif ($whence !== SEEK_SET) {
+ throw new \RuntimeException('The AppendStream can only seek with SEEK_SET');
+ }
+
+ $this->pos = $this->current = 0;
+
+ // Rewind each stream
+ foreach ($this->streams as $i => $stream) {
+ try {
+ $stream->rewind();
+ } catch (\Exception $e) {
+ throw new \RuntimeException('Unable to seek stream '
+ . $i . ' of the AppendStream', 0, $e);
+ }
+ }
+
+ // Seek to the actual position by reading from each stream
+ while ($this->pos < $offset && !$this->eof()) {
+ $result = $this->read(min(8096, $offset - $this->pos));
+ if ($result === '') {
+ break;
+ }
+ }
+ }
+
+ /**
+ * Reads from all of the appended streams until the length is met or EOF.
+ *
+ * {@inheritdoc}
+ */
+ public function read($length)
+ {
+ $buffer = '';
+ $total = count($this->streams) - 1;
+ $remaining = $length;
+ $progressToNext = false;
+
+ while ($remaining > 0) {
+
+ // Progress to the next stream if needed.
+ if ($progressToNext || $this->streams[$this->current]->eof()) {
+ $progressToNext = false;
+ if ($this->current === $total) {
+ break;
+ }
+ $this->current++;
+ }
+
+ $result = $this->streams[$this->current]->read($remaining);
+
+ // Using a loose comparison here to match on '', false, and null
+ if ($result == null) {
+ $progressToNext = true;
+ continue;
+ }
+
+ $buffer .= $result;
+ $remaining = $length - strlen($buffer);
+ }
+
+ $this->pos += strlen($buffer);
+
+ return $buffer;
+ }
+
+ public function isReadable()
+ {
+ return true;
+ }
+
+ public function isWritable()
+ {
+ return false;
+ }
+
+ public function isSeekable()
+ {
+ return $this->seekable;
+ }
+
+ public function write($string)
+ {
+ throw new \RuntimeException('Cannot write to an AppendStream');
+ }
+
+ public function getMetadata($key = null)
+ {
+ return $key ? null : [];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/BufferStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/BufferStream.php
new file mode 100644
index 00000000..af4d4c22
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/BufferStream.php
@@ -0,0 +1,137 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Provides a buffer stream that can be written to to fill a buffer, and read
+ * from to remove bytes from the buffer.
+ *
+ * This stream returns a "hwm" metadata value that tells upstream consumers
+ * what the configured high water mark of the stream is, or the maximum
+ * preferred size of the buffer.
+ */
+class BufferStream implements StreamInterface
+{
+ private $hwm;
+ private $buffer = '';
+
+ /**
+ * @param int $hwm High water mark, representing the preferred maximum
+ * buffer size. If the size of the buffer exceeds the high
+ * water mark, then calls to write will continue to succeed
+ * but will return false to inform writers to slow down
+ * until the buffer has been drained by reading from it.
+ */
+ public function __construct($hwm = 16384)
+ {
+ $this->hwm = $hwm;
+ }
+
+ public function __toString()
+ {
+ return $this->getContents();
+ }
+
+ public function getContents()
+ {
+ $buffer = $this->buffer;
+ $this->buffer = '';
+
+ return $buffer;
+ }
+
+ public function close()
+ {
+ $this->buffer = '';
+ }
+
+ public function detach()
+ {
+ $this->close();
+ }
+
+ public function getSize()
+ {
+ return strlen($this->buffer);
+ }
+
+ public function isReadable()
+ {
+ return true;
+ }
+
+ public function isWritable()
+ {
+ return true;
+ }
+
+ public function isSeekable()
+ {
+ return false;
+ }
+
+ public function rewind()
+ {
+ $this->seek(0);
+ }
+
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ throw new \RuntimeException('Cannot seek a BufferStream');
+ }
+
+ public function eof()
+ {
+ return strlen($this->buffer) === 0;
+ }
+
+ public function tell()
+ {
+ throw new \RuntimeException('Cannot determine the position of a BufferStream');
+ }
+
+ /**
+ * Reads data from the buffer.
+ */
+ public function read($length)
+ {
+ $currentLength = strlen($this->buffer);
+
+ if ($length >= $currentLength) {
+ // No need to slice the buffer because we don't have enough data.
+ $result = $this->buffer;
+ $this->buffer = '';
+ } else {
+ // Slice up the result to provide a subset of the buffer.
+ $result = substr($this->buffer, 0, $length);
+ $this->buffer = substr($this->buffer, $length);
+ }
+
+ return $result;
+ }
+
+ /**
+ * Writes data to the buffer.
+ */
+ public function write($string)
+ {
+ $this->buffer .= $string;
+
+ // TODO: What should happen here?
+ if (strlen($this->buffer) >= $this->hwm) {
+ return false;
+ }
+
+ return strlen($string);
+ }
+
+ public function getMetadata($key = null)
+ {
+ if ($key == 'hwm') {
+ return $this->hwm;
+ }
+
+ return $key ? null : [];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/CachingStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/CachingStream.php
new file mode 100644
index 00000000..ed68f086
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/CachingStream.php
@@ -0,0 +1,138 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Stream decorator that can cache previously read bytes from a sequentially
+ * read stream.
+ */
+class CachingStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ /** @var StreamInterface Stream being wrapped */
+ private $remoteStream;
+
+ /** @var int Number of bytes to skip reading due to a write on the buffer */
+ private $skipReadBytes = 0;
+
+ /**
+ * We will treat the buffer object as the body of the stream
+ *
+ * @param StreamInterface $stream Stream to cache
+ * @param StreamInterface $target Optionally specify where data is cached
+ */
+ public function __construct(
+ StreamInterface $stream,
+ StreamInterface $target = null
+ ) {
+ $this->remoteStream = $stream;
+ $this->stream = $target ?: new Stream(fopen('php://temp', 'r+'));
+ }
+
+ public function getSize()
+ {
+ return max($this->stream->getSize(), $this->remoteStream->getSize());
+ }
+
+ public function rewind()
+ {
+ $this->seek(0);
+ }
+
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ if ($whence == SEEK_SET) {
+ $byte = $offset;
+ } elseif ($whence == SEEK_CUR) {
+ $byte = $offset + $this->tell();
+ } elseif ($whence == SEEK_END) {
+ $size = $this->remoteStream->getSize();
+ if ($size === null) {
+ $size = $this->cacheEntireStream();
+ }
+ $byte = $size + $offset;
+ } else {
+ throw new \InvalidArgumentException('Invalid whence');
+ }
+
+ $diff = $byte - $this->stream->getSize();
+
+ if ($diff > 0) {
+ // Read the remoteStream until we have read in at least the amount
+ // of bytes requested, or we reach the end of the file.
+ while ($diff > 0 && !$this->remoteStream->eof()) {
+ $this->read($diff);
+ $diff = $byte - $this->stream->getSize();
+ }
+ } else {
+ // We can just do a normal seek since we've already seen this byte.
+ $this->stream->seek($byte);
+ }
+ }
+
+ public function read($length)
+ {
+ // Perform a regular read on any previously read data from the buffer
+ $data = $this->stream->read($length);
+ $remaining = $length - strlen($data);
+
+ // More data was requested so read from the remote stream
+ if ($remaining) {
+ // If data was written to the buffer in a position that would have
+ // been filled from the remote stream, then we must skip bytes on
+ // the remote stream to emulate overwriting bytes from that
+ // position. This mimics the behavior of other PHP stream wrappers.
+ $remoteData = $this->remoteStream->read(
+ $remaining + $this->skipReadBytes
+ );
+
+ if ($this->skipReadBytes) {
+ $len = strlen($remoteData);
+ $remoteData = substr($remoteData, $this->skipReadBytes);
+ $this->skipReadBytes = max(0, $this->skipReadBytes - $len);
+ }
+
+ $data .= $remoteData;
+ $this->stream->write($remoteData);
+ }
+
+ return $data;
+ }
+
+ public function write($string)
+ {
+ // When appending to the end of the currently read stream, you'll want
+ // to skip bytes from being read from the remote stream to emulate
+ // other stream wrappers. Basically replacing bytes of data of a fixed
+ // length.
+ $overflow = (strlen($string) + $this->tell()) - $this->remoteStream->tell();
+ if ($overflow > 0) {
+ $this->skipReadBytes += $overflow;
+ }
+
+ return $this->stream->write($string);
+ }
+
+ public function eof()
+ {
+ return $this->stream->eof() && $this->remoteStream->eof();
+ }
+
+ /**
+ * Close both the remote stream and buffer stream
+ */
+ public function close()
+ {
+ $this->remoteStream->close() && $this->stream->close();
+ }
+
+ private function cacheEntireStream()
+ {
+ $target = new FnStream(['write' => 'strlen']);
+ copy_to_stream($this, $target);
+
+ return $this->tell();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/DroppingStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/DroppingStream.php
new file mode 100644
index 00000000..8935c80d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/DroppingStream.php
@@ -0,0 +1,42 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Stream decorator that begins dropping data once the size of the underlying
+ * stream becomes too full.
+ */
+class DroppingStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ private $maxLength;
+
+ /**
+ * @param StreamInterface $stream Underlying stream to decorate.
+ * @param int $maxLength Maximum size before dropping data.
+ */
+ public function __construct(StreamInterface $stream, $maxLength)
+ {
+ $this->stream = $stream;
+ $this->maxLength = $maxLength;
+ }
+
+ public function write($string)
+ {
+ $diff = $this->maxLength - $this->stream->getSize();
+
+ // Begin returning 0 when the underlying stream is too large.
+ if ($diff <= 0) {
+ return 0;
+ }
+
+ // Write the stream or a subset of the stream if needed.
+ if (strlen($string) < $diff) {
+ return $this->stream->write($string);
+ }
+
+ return $this->stream->write(substr($string, 0, $diff));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/FnStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/FnStream.php
new file mode 100644
index 00000000..cc9b4453
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/FnStream.php
@@ -0,0 +1,149 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Compose stream implementations based on a hash of functions.
+ *
+ * Allows for easy testing and extension of a provided stream without needing
+ * to create a concrete class for a simple extension point.
+ */
+class FnStream implements StreamInterface
+{
+ /** @var array */
+ private $methods;
+
+ /** @var array Methods that must be implemented in the given array */
+ private static $slots = ['__toString', 'close', 'detach', 'rewind',
+ 'getSize', 'tell', 'eof', 'isSeekable', 'seek', 'isWritable', 'write',
+ 'isReadable', 'read', 'getContents', 'getMetadata'];
+
+ /**
+ * @param array $methods Hash of method name to a callable.
+ */
+ public function __construct(array $methods)
+ {
+ $this->methods = $methods;
+
+ // Create the functions on the class
+ foreach ($methods as $name => $fn) {
+ $this->{'_fn_' . $name} = $fn;
+ }
+ }
+
+ /**
+ * Lazily determine which methods are not implemented.
+ * @throws \BadMethodCallException
+ */
+ public function __get($name)
+ {
+ throw new \BadMethodCallException(str_replace('_fn_', '', $name)
+ . '() is not implemented in the FnStream');
+ }
+
+ /**
+ * The close method is called on the underlying stream only if possible.
+ */
+ public function __destruct()
+ {
+ if (isset($this->_fn_close)) {
+ call_user_func($this->_fn_close);
+ }
+ }
+
+ /**
+ * Adds custom functionality to an underlying stream by intercepting
+ * specific method calls.
+ *
+ * @param StreamInterface $stream Stream to decorate
+ * @param array $methods Hash of method name to a closure
+ *
+ * @return FnStream
+ */
+ public static function decorate(StreamInterface $stream, array $methods)
+ {
+ // If any of the required methods were not provided, then simply
+ // proxy to the decorated stream.
+ foreach (array_diff(self::$slots, array_keys($methods)) as $diff) {
+ $methods[$diff] = [$stream, $diff];
+ }
+
+ return new self($methods);
+ }
+
+ public function __toString()
+ {
+ return call_user_func($this->_fn___toString);
+ }
+
+ public function close()
+ {
+ return call_user_func($this->_fn_close);
+ }
+
+ public function detach()
+ {
+ return call_user_func($this->_fn_detach);
+ }
+
+ public function getSize()
+ {
+ return call_user_func($this->_fn_getSize);
+ }
+
+ public function tell()
+ {
+ return call_user_func($this->_fn_tell);
+ }
+
+ public function eof()
+ {
+ return call_user_func($this->_fn_eof);
+ }
+
+ public function isSeekable()
+ {
+ return call_user_func($this->_fn_isSeekable);
+ }
+
+ public function rewind()
+ {
+ call_user_func($this->_fn_rewind);
+ }
+
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ call_user_func($this->_fn_seek, $offset, $whence);
+ }
+
+ public function isWritable()
+ {
+ return call_user_func($this->_fn_isWritable);
+ }
+
+ public function write($string)
+ {
+ return call_user_func($this->_fn_write, $string);
+ }
+
+ public function isReadable()
+ {
+ return call_user_func($this->_fn_isReadable);
+ }
+
+ public function read($length)
+ {
+ return call_user_func($this->_fn_read, $length);
+ }
+
+ public function getContents()
+ {
+ return call_user_func($this->_fn_getContents);
+ }
+
+ public function getMetadata($key = null)
+ {
+ return call_user_func($this->_fn_getMetadata, $key);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/InflateStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/InflateStream.php
new file mode 100644
index 00000000..0051d3fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/InflateStream.php
@@ -0,0 +1,52 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
+ *
+ * This stream decorator skips the first 10 bytes of the given stream to remove
+ * the gzip header, converts the provided stream to a PHP stream resource,
+ * then appends the zlib.inflate filter. The stream is then converted back
+ * to a Guzzle stream resource to be used as a Guzzle stream.
+ *
+ * @link http://tools.ietf.org/html/rfc1952
+ * @link http://php.net/manual/en/filters.compression.php
+ */
+class InflateStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ public function __construct(StreamInterface $stream)
+ {
+ // read the first 10 bytes, ie. gzip header
+ $header = $stream->read(10);
+ $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header);
+ // Skip the header, that is 10 + length of filename + 1 (nil) bytes
+ $stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength);
+ $resource = StreamWrapper::getResource($stream);
+ stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ);
+ $this->stream = new Stream($resource);
+ }
+
+ /**
+ * @param StreamInterface $stream
+ * @param $header
+ * @return int
+ */
+ private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header)
+ {
+ $filename_header_length = 0;
+
+ if (substr(bin2hex($header), 6, 2) === '08') {
+ // we have a filename, read until nil
+ $filename_header_length = 1;
+ while ($stream->read(1) !== chr(0)) {
+ $filename_header_length++;
+ }
+ }
+
+ return $filename_header_length;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LazyOpenStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LazyOpenStream.php
new file mode 100644
index 00000000..02cec3af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LazyOpenStream.php
@@ -0,0 +1,39 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Lazily reads or writes to a file that is opened only after an IO operation
+ * take place on the stream.
+ */
+class LazyOpenStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ /** @var string File to open */
+ private $filename;
+
+ /** @var string $mode */
+ private $mode;
+
+ /**
+ * @param string $filename File to lazily open
+ * @param string $mode fopen mode to use when opening the stream
+ */
+ public function __construct($filename, $mode)
+ {
+ $this->filename = $filename;
+ $this->mode = $mode;
+ }
+
+ /**
+ * Creates the underlying stream lazily when required.
+ *
+ * @return StreamInterface
+ */
+ protected function createStream()
+ {
+ return stream_for(try_fopen($this->filename, $this->mode));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LimitStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LimitStream.php
new file mode 100644
index 00000000..3c13d4f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/LimitStream.php
@@ -0,0 +1,155 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+
+/**
+ * Decorator used to return only a subset of a stream
+ */
+class LimitStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ /** @var int Offset to start reading from */
+ private $offset;
+
+ /** @var int Limit the number of bytes that can be read */
+ private $limit;
+
+ /**
+ * @param StreamInterface $stream Stream to wrap
+ * @param int $limit Total number of bytes to allow to be read
+ * from the stream. Pass -1 for no limit.
+ * @param int $offset Position to seek to before reading (only
+ * works on seekable streams).
+ */
+ public function __construct(
+ StreamInterface $stream,
+ $limit = -1,
+ $offset = 0
+ ) {
+ $this->stream = $stream;
+ $this->setLimit($limit);
+ $this->setOffset($offset);
+ }
+
+ public function eof()
+ {
+ // Always return true if the underlying stream is EOF
+ if ($this->stream->eof()) {
+ return true;
+ }
+
+ // No limit and the underlying stream is not at EOF
+ if ($this->limit == -1) {
+ return false;
+ }
+
+ return $this->stream->tell() >= $this->offset + $this->limit;
+ }
+
+ /**
+ * Returns the size of the limited subset of data
+ * {@inheritdoc}
+ */
+ public function getSize()
+ {
+ if (null === ($length = $this->stream->getSize())) {
+ return null;
+ } elseif ($this->limit == -1) {
+ return $length - $this->offset;
+ } else {
+ return min($this->limit, $length - $this->offset);
+ }
+ }
+
+ /**
+ * Allow for a bounded seek on the read limited stream
+ * {@inheritdoc}
+ */
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ if ($whence !== SEEK_SET || $offset < 0) {
+ throw new \RuntimeException(sprintf(
+ 'Cannot seek to offset % with whence %s',
+ $offset,
+ $whence
+ ));
+ }
+
+ $offset += $this->offset;
+
+ if ($this->limit !== -1) {
+ if ($offset > $this->offset + $this->limit) {
+ $offset = $this->offset + $this->limit;
+ }
+ }
+
+ $this->stream->seek($offset);
+ }
+
+ /**
+ * Give a relative tell()
+ * {@inheritdoc}
+ */
+ public function tell()
+ {
+ return $this->stream->tell() - $this->offset;
+ }
+
+ /**
+ * Set the offset to start limiting from
+ *
+ * @param int $offset Offset to seek to and begin byte limiting from
+ *
+ * @throws \RuntimeException if the stream cannot be seeked.
+ */
+ public function setOffset($offset)
+ {
+ $current = $this->stream->tell();
+
+ if ($current !== $offset) {
+ // If the stream cannot seek to the offset position, then read to it
+ if ($this->stream->isSeekable()) {
+ $this->stream->seek($offset);
+ } elseif ($current > $offset) {
+ throw new \RuntimeException("Could not seek to stream offset $offset");
+ } else {
+ $this->stream->read($offset - $current);
+ }
+ }
+
+ $this->offset = $offset;
+ }
+
+ /**
+ * Set the limit of bytes that the decorator allows to be read from the
+ * stream.
+ *
+ * @param int $limit Number of bytes to allow to be read from the stream.
+ * Use -1 for no limit.
+ */
+ public function setLimit($limit)
+ {
+ $this->limit = $limit;
+ }
+
+ public function read($length)
+ {
+ if ($this->limit == -1) {
+ return $this->stream->read($length);
+ }
+
+ // Check if the current position is less than the total allowed
+ // bytes + original offset
+ $remaining = ($this->offset + $this->limit) - $this->stream->tell();
+ if ($remaining > 0) {
+ // Only return the amount of requested data, ensuring that the byte
+ // limit is not exceeded
+ return $this->stream->read(min($remaining, $length));
+ }
+
+ return '';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MessageTrait.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MessageTrait.php
new file mode 100644
index 00000000..1e4da649
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MessageTrait.php
@@ -0,0 +1,183 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Trait implementing functionality common to requests and responses.
+ */
+trait MessageTrait
+{
+ /** @var array Map of all registered headers, as original name => array of values */
+ private $headers = [];
+
+ /** @var array Map of lowercase header name => original name at registration */
+ private $headerNames = [];
+
+ /** @var string */
+ private $protocol = '1.1';
+
+ /** @var StreamInterface */
+ private $stream;
+
+ public function getProtocolVersion()
+ {
+ return $this->protocol;
+ }
+
+ public function withProtocolVersion($version)
+ {
+ if ($this->protocol === $version) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->protocol = $version;
+ return $new;
+ }
+
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+
+ public function hasHeader($header)
+ {
+ return isset($this->headerNames[strtolower($header)]);
+ }
+
+ public function getHeader($header)
+ {
+ $header = strtolower($header);
+
+ if (!isset($this->headerNames[$header])) {
+ return [];
+ }
+
+ $header = $this->headerNames[$header];
+
+ return $this->headers[$header];
+ }
+
+ public function getHeaderLine($header)
+ {
+ return implode(', ', $this->getHeader($header));
+ }
+
+ public function withHeader($header, $value)
+ {
+ if (!is_array($value)) {
+ $value = [$value];
+ }
+
+ $value = $this->trimHeaderValues($value);
+ $normalized = strtolower($header);
+
+ $new = clone $this;
+ if (isset($new->headerNames[$normalized])) {
+ unset($new->headers[$new->headerNames[$normalized]]);
+ }
+ $new->headerNames[$normalized] = $header;
+ $new->headers[$header] = $value;
+
+ return $new;
+ }
+
+ public function withAddedHeader($header, $value)
+ {
+ if (!is_array($value)) {
+ $value = [$value];
+ }
+
+ $value = $this->trimHeaderValues($value);
+ $normalized = strtolower($header);
+
+ $new = clone $this;
+ if (isset($new->headerNames[$normalized])) {
+ $header = $this->headerNames[$normalized];
+ $new->headers[$header] = array_merge($this->headers[$header], $value);
+ } else {
+ $new->headerNames[$normalized] = $header;
+ $new->headers[$header] = $value;
+ }
+
+ return $new;
+ }
+
+ public function withoutHeader($header)
+ {
+ $normalized = strtolower($header);
+
+ if (!isset($this->headerNames[$normalized])) {
+ return $this;
+ }
+
+ $header = $this->headerNames[$normalized];
+
+ $new = clone $this;
+ unset($new->headers[$header], $new->headerNames[$normalized]);
+
+ return $new;
+ }
+
+ public function getBody()
+ {
+ if (!$this->stream) {
+ $this->stream = stream_for('');
+ }
+
+ return $this->stream;
+ }
+
+ public function withBody(StreamInterface $body)
+ {
+ if ($body === $this->stream) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->stream = $body;
+ return $new;
+ }
+
+ private function setHeaders(array $headers)
+ {
+ $this->headerNames = $this->headers = [];
+ foreach ($headers as $header => $value) {
+ if (!is_array($value)) {
+ $value = [$value];
+ }
+
+ $value = $this->trimHeaderValues($value);
+ $normalized = strtolower($header);
+ if (isset($this->headerNames[$normalized])) {
+ $header = $this->headerNames[$normalized];
+ $this->headers[$header] = array_merge($this->headers[$header], $value);
+ } else {
+ $this->headerNames[$normalized] = $header;
+ $this->headers[$header] = $value;
+ }
+ }
+ }
+
+ /**
+ * Trims whitespace from the header values.
+ *
+ * Spaces and tabs ought to be excluded by parsers when extracting the field value from a header field.
+ *
+ * header-field = field-name ":" OWS field-value OWS
+ * OWS = *( SP / HTAB )
+ *
+ * @param string[] $values Header values
+ *
+ * @return string[] Trimmed header values
+ *
+ * @see https://tools.ietf.org/html/rfc7230#section-3.2.4
+ */
+ private function trimHeaderValues(array $values)
+ {
+ return array_map(function ($value) {
+ return trim($value, " \t");
+ }, $values);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MultipartStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MultipartStream.php
new file mode 100644
index 00000000..c0fd584f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/MultipartStream.php
@@ -0,0 +1,153 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Stream that when read returns bytes for a streaming multipart or
+ * multipart/form-data stream.
+ */
+class MultipartStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ private $boundary;
+
+ /**
+ * @param array $elements Array of associative arrays, each containing a
+ * required "name" key mapping to the form field,
+ * name, a required "contents" key mapping to a
+ * StreamInterface/resource/string, an optional
+ * "headers" associative array of custom headers,
+ * and an optional "filename" key mapping to a
+ * string to send as the filename in the part.
+ * @param string $boundary You can optionally provide a specific boundary
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function __construct(array $elements = [], $boundary = null)
+ {
+ $this->boundary = $boundary ?: sha1(uniqid('', true));
+ $this->stream = $this->createStream($elements);
+ }
+
+ /**
+ * Get the boundary
+ *
+ * @return string
+ */
+ public function getBoundary()
+ {
+ return $this->boundary;
+ }
+
+ public function isWritable()
+ {
+ return false;
+ }
+
+ /**
+ * Get the headers needed before transferring the content of a POST file
+ */
+ private function getHeaders(array $headers)
+ {
+ $str = '';
+ foreach ($headers as $key => $value) {
+ $str .= "{$key}: {$value}\r\n";
+ }
+
+ return "--{$this->boundary}\r\n" . trim($str) . "\r\n\r\n";
+ }
+
+ /**
+ * Create the aggregate stream that will be used to upload the POST data
+ */
+ protected function createStream(array $elements)
+ {
+ $stream = new AppendStream();
+
+ foreach ($elements as $element) {
+ $this->addElement($stream, $element);
+ }
+
+ // Add the trailing boundary with CRLF
+ $stream->addStream(stream_for("--{$this->boundary}--\r\n"));
+
+ return $stream;
+ }
+
+ private function addElement(AppendStream $stream, array $element)
+ {
+ foreach (['contents', 'name'] as $key) {
+ if (!array_key_exists($key, $element)) {
+ throw new \InvalidArgumentException("A '{$key}' key is required");
+ }
+ }
+
+ $element['contents'] = stream_for($element['contents']);
+
+ if (empty($element['filename'])) {
+ $uri = $element['contents']->getMetadata('uri');
+ if (substr($uri, 0, 6) !== 'php://') {
+ $element['filename'] = $uri;
+ }
+ }
+
+ list($body, $headers) = $this->createElement(
+ $element['name'],
+ $element['contents'],
+ isset($element['filename']) ? $element['filename'] : null,
+ isset($element['headers']) ? $element['headers'] : []
+ );
+
+ $stream->addStream(stream_for($this->getHeaders($headers)));
+ $stream->addStream($body);
+ $stream->addStream(stream_for("\r\n"));
+ }
+
+ /**
+ * @return array
+ */
+ private function createElement($name, StreamInterface $stream, $filename, array $headers)
+ {
+ // Set a default content-disposition header if one was no provided
+ $disposition = $this->getHeader($headers, 'content-disposition');
+ if (!$disposition) {
+ $headers['Content-Disposition'] = ($filename === '0' || $filename)
+ ? sprintf('form-data; name="%s"; filename="%s"',
+ $name,
+ basename($filename))
+ : "form-data; name=\"{$name}\"";
+ }
+
+ // Set a default content-length header if one was no provided
+ $length = $this->getHeader($headers, 'content-length');
+ if (!$length) {
+ if ($length = $stream->getSize()) {
+ $headers['Content-Length'] = (string) $length;
+ }
+ }
+
+ // Set a default Content-Type if one was not supplied
+ $type = $this->getHeader($headers, 'content-type');
+ if (!$type && ($filename === '0' || $filename)) {
+ if ($type = mimetype_from_filename($filename)) {
+ $headers['Content-Type'] = $type;
+ }
+ }
+
+ return [$stream, $headers];
+ }
+
+ private function getHeader(array $headers, $key)
+ {
+ $lowercaseHeader = strtolower($key);
+ foreach ($headers as $k => $v) {
+ if (strtolower($k) === $lowercaseHeader) {
+ return $v;
+ }
+ }
+
+ return null;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/NoSeekStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/NoSeekStream.php
new file mode 100644
index 00000000..23322180
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/NoSeekStream.php
@@ -0,0 +1,22 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Stream decorator that prevents a stream from being seeked
+ */
+class NoSeekStream implements StreamInterface
+{
+ use StreamDecoratorTrait;
+
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ throw new \RuntimeException('Cannot seek a NoSeekStream');
+ }
+
+ public function isSeekable()
+ {
+ return false;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/PumpStream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/PumpStream.php
new file mode 100644
index 00000000..ffb5440d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/PumpStream.php
@@ -0,0 +1,165 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Provides a read only stream that pumps data from a PHP callable.
+ *
+ * When invoking the provided callable, the PumpStream will pass the amount of
+ * data requested to read to the callable. The callable can choose to ignore
+ * this value and return fewer or more bytes than requested. Any extra data
+ * returned by the provided callable is buffered internally until drained using
+ * the read() function of the PumpStream. The provided callable MUST return
+ * false when there is no more data to read.
+ */
+class PumpStream implements StreamInterface
+{
+ /** @var callable */
+ private $source;
+
+ /** @var int */
+ private $size;
+
+ /** @var int */
+ private $tellPos = 0;
+
+ /** @var array */
+ private $metadata;
+
+ /** @var BufferStream */
+ private $buffer;
+
+ /**
+ * @param callable $source Source of the stream data. The callable MAY
+ * accept an integer argument used to control the
+ * amount of data to return. The callable MUST
+ * return a string when called, or false on error
+ * or EOF.
+ * @param array $options Stream options:
+ * - metadata: Hash of metadata to use with stream.
+ * - size: Size of the stream, if known.
+ */
+ public function __construct(callable $source, array $options = [])
+ {
+ $this->source = $source;
+ $this->size = isset($options['size']) ? $options['size'] : null;
+ $this->metadata = isset($options['metadata']) ? $options['metadata'] : [];
+ $this->buffer = new BufferStream();
+ }
+
+ public function __toString()
+ {
+ try {
+ return copy_to_string($this);
+ } catch (\Exception $e) {
+ return '';
+ }
+ }
+
+ public function close()
+ {
+ $this->detach();
+ }
+
+ public function detach()
+ {
+ $this->tellPos = false;
+ $this->source = null;
+ }
+
+ public function getSize()
+ {
+ return $this->size;
+ }
+
+ public function tell()
+ {
+ return $this->tellPos;
+ }
+
+ public function eof()
+ {
+ return !$this->source;
+ }
+
+ public function isSeekable()
+ {
+ return false;
+ }
+
+ public function rewind()
+ {
+ $this->seek(0);
+ }
+
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ throw new \RuntimeException('Cannot seek a PumpStream');
+ }
+
+ public function isWritable()
+ {
+ return false;
+ }
+
+ public function write($string)
+ {
+ throw new \RuntimeException('Cannot write to a PumpStream');
+ }
+
+ public function isReadable()
+ {
+ return true;
+ }
+
+ public function read($length)
+ {
+ $data = $this->buffer->read($length);
+ $readLen = strlen($data);
+ $this->tellPos += $readLen;
+ $remaining = $length - $readLen;
+
+ if ($remaining) {
+ $this->pump($remaining);
+ $data .= $this->buffer->read($remaining);
+ $this->tellPos += strlen($data) - $readLen;
+ }
+
+ return $data;
+ }
+
+ public function getContents()
+ {
+ $result = '';
+ while (!$this->eof()) {
+ $result .= $this->read(1000000);
+ }
+
+ return $result;
+ }
+
+ public function getMetadata($key = null)
+ {
+ if (!$key) {
+ return $this->metadata;
+ }
+
+ return isset($this->metadata[$key]) ? $this->metadata[$key] : null;
+ }
+
+ private function pump($length)
+ {
+ if ($this->source) {
+ do {
+ $data = call_user_func($this->source, $length);
+ if ($data === false || $data === null) {
+ $this->source = null;
+ return;
+ }
+ $this->buffer->write($data);
+ $length -= strlen($data);
+ } while ($length > 0);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Request.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Request.php
new file mode 100644
index 00000000..08285484
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Request.php
@@ -0,0 +1,142 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use InvalidArgumentException;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\StreamInterface;
+use Psr\Http\Message\UriInterface;
+
+/**
+ * PSR-7 request implementation.
+ */
+class Request implements RequestInterface
+{
+ use MessageTrait;
+
+ /** @var string */
+ private $method;
+
+ /** @var null|string */
+ private $requestTarget;
+
+ /** @var UriInterface */
+ private $uri;
+
+ /**
+ * @param string $method HTTP method
+ * @param string|UriInterface $uri URI
+ * @param array $headers Request headers
+ * @param string|null|resource|StreamInterface $body Request body
+ * @param string $version Protocol version
+ */
+ public function __construct(
+ $method,
+ $uri,
+ array $headers = [],
+ $body = null,
+ $version = '1.1'
+ ) {
+ if (!($uri instanceof UriInterface)) {
+ $uri = new Uri($uri);
+ }
+
+ $this->method = strtoupper($method);
+ $this->uri = $uri;
+ $this->setHeaders($headers);
+ $this->protocol = $version;
+
+ if (!$this->hasHeader('Host')) {
+ $this->updateHostFromUri();
+ }
+
+ if ($body !== '' && $body !== null) {
+ $this->stream = stream_for($body);
+ }
+ }
+
+ public function getRequestTarget()
+ {
+ if ($this->requestTarget !== null) {
+ return $this->requestTarget;
+ }
+
+ $target = $this->uri->getPath();
+ if ($target == '') {
+ $target = '/';
+ }
+ if ($this->uri->getQuery() != '') {
+ $target .= '?' . $this->uri->getQuery();
+ }
+
+ return $target;
+ }
+
+ public function withRequestTarget($requestTarget)
+ {
+ if (preg_match('#\s#', $requestTarget)) {
+ throw new InvalidArgumentException(
+ 'Invalid request target provided; cannot contain whitespace'
+ );
+ }
+
+ $new = clone $this;
+ $new->requestTarget = $requestTarget;
+ return $new;
+ }
+
+ public function getMethod()
+ {
+ return $this->method;
+ }
+
+ public function withMethod($method)
+ {
+ $new = clone $this;
+ $new->method = strtoupper($method);
+ return $new;
+ }
+
+ public function getUri()
+ {
+ return $this->uri;
+ }
+
+ public function withUri(UriInterface $uri, $preserveHost = false)
+ {
+ if ($uri === $this->uri) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->uri = $uri;
+
+ if (!$preserveHost) {
+ $new->updateHostFromUri();
+ }
+
+ return $new;
+ }
+
+ private function updateHostFromUri()
+ {
+ $host = $this->uri->getHost();
+
+ if ($host == '') {
+ return;
+ }
+
+ if (($port = $this->uri->getPort()) !== null) {
+ $host .= ':' . $port;
+ }
+
+ if (isset($this->headerNames['host'])) {
+ $header = $this->headerNames['host'];
+ } else {
+ $header = 'Host';
+ $this->headerNames['host'] = 'Host';
+ }
+ // Ensure Host is the first header.
+ // See: http://tools.ietf.org/html/rfc7230#section-5.4
+ $this->headers = [$header => [$host]] + $this->headers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Response.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Response.php
new file mode 100644
index 00000000..2830c6c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Response.php
@@ -0,0 +1,132 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * PSR-7 response implementation.
+ */
+class Response implements ResponseInterface
+{
+ use MessageTrait;
+
+ /** @var array Map of standard HTTP status code/reason phrases */
+ private static $phrases = [
+ 100 => 'Continue',
+ 101 => 'Switching Protocols',
+ 102 => 'Processing',
+ 200 => 'OK',
+ 201 => 'Created',
+ 202 => 'Accepted',
+ 203 => 'Non-Authoritative Information',
+ 204 => 'No Content',
+ 205 => 'Reset Content',
+ 206 => 'Partial Content',
+ 207 => 'Multi-status',
+ 208 => 'Already Reported',
+ 300 => 'Multiple Choices',
+ 301 => 'Moved Permanently',
+ 302 => 'Found',
+ 303 => 'See Other',
+ 304 => 'Not Modified',
+ 305 => 'Use Proxy',
+ 306 => 'Switch Proxy',
+ 307 => 'Temporary Redirect',
+ 400 => 'Bad Request',
+ 401 => 'Unauthorized',
+ 402 => 'Payment Required',
+ 403 => 'Forbidden',
+ 404 => 'Not Found',
+ 405 => 'Method Not Allowed',
+ 406 => 'Not Acceptable',
+ 407 => 'Proxy Authentication Required',
+ 408 => 'Request Time-out',
+ 409 => 'Conflict',
+ 410 => 'Gone',
+ 411 => 'Length Required',
+ 412 => 'Precondition Failed',
+ 413 => 'Request Entity Too Large',
+ 414 => 'Request-URI Too Large',
+ 415 => 'Unsupported Media Type',
+ 416 => 'Requested range not satisfiable',
+ 417 => 'Expectation Failed',
+ 418 => 'I\'m a teapot',
+ 422 => 'Unprocessable Entity',
+ 423 => 'Locked',
+ 424 => 'Failed Dependency',
+ 425 => 'Unordered Collection',
+ 426 => 'Upgrade Required',
+ 428 => 'Precondition Required',
+ 429 => 'Too Many Requests',
+ 431 => 'Request Header Fields Too Large',
+ 451 => 'Unavailable For Legal Reasons',
+ 500 => 'Internal Server Error',
+ 501 => 'Not Implemented',
+ 502 => 'Bad Gateway',
+ 503 => 'Service Unavailable',
+ 504 => 'Gateway Time-out',
+ 505 => 'HTTP Version not supported',
+ 506 => 'Variant Also Negotiates',
+ 507 => 'Insufficient Storage',
+ 508 => 'Loop Detected',
+ 511 => 'Network Authentication Required',
+ ];
+
+ /** @var string */
+ private $reasonPhrase = '';
+
+ /** @var int */
+ private $statusCode = 200;
+
+ /**
+ * @param int $status Status code
+ * @param array $headers Response headers
+ * @param string|null|resource|StreamInterface $body Response body
+ * @param string $version Protocol version
+ * @param string|null $reason Reason phrase (when empty a default will be used based on the status code)
+ */
+ public function __construct(
+ $status = 200,
+ array $headers = [],
+ $body = null,
+ $version = '1.1',
+ $reason = null
+ ) {
+ $this->statusCode = (int) $status;
+
+ if ($body !== '' && $body !== null) {
+ $this->stream = stream_for($body);
+ }
+
+ $this->setHeaders($headers);
+ if ($reason == '' && isset(self::$phrases[$this->statusCode])) {
+ $this->reasonPhrase = self::$phrases[$this->statusCode];
+ } else {
+ $this->reasonPhrase = (string) $reason;
+ }
+
+ $this->protocol = $version;
+ }
+
+ public function getStatusCode()
+ {
+ return $this->statusCode;
+ }
+
+ public function getReasonPhrase()
+ {
+ return $this->reasonPhrase;
+ }
+
+ public function withStatus($code, $reasonPhrase = '')
+ {
+ $new = clone $this;
+ $new->statusCode = (int) $code;
+ if ($reasonPhrase == '' && isset(self::$phrases[$new->statusCode])) {
+ $reasonPhrase = self::$phrases[$new->statusCode];
+ }
+ $new->reasonPhrase = $reasonPhrase;
+ return $new;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/ServerRequest.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/ServerRequest.php
new file mode 100644
index 00000000..575aab84
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/ServerRequest.php
@@ -0,0 +1,358 @@
+<?php
+
+namespace GuzzleHttp\Psr7;
+
+use InvalidArgumentException;
+use Psr\Http\Message\ServerRequestInterface;
+use Psr\Http\Message\UriInterface;
+use Psr\Http\Message\StreamInterface;
+use Psr\Http\Message\UploadedFileInterface;
+
+/**
+ * Server-side HTTP request
+ *
+ * Extends the Request definition to add methods for accessing incoming data,
+ * specifically server parameters, cookies, matched path parameters, query
+ * string arguments, body parameters, and upload file information.
+ *
+ * "Attributes" are discovered via decomposing the request (and usually
+ * specifically the URI path), and typically will be injected by the application.
+ *
+ * Requests are considered immutable; all methods that might change state are
+ * implemented such that they retain the internal state of the current
+ * message and return a new instance that contains the changed state.
+ */
+class ServerRequest extends Request implements ServerRequestInterface
+{
+ /**
+ * @var array
+ */
+ private $attributes = [];
+
+ /**
+ * @var array
+ */
+ private $cookieParams = [];
+
+ /**
+ * @var null|array|object
+ */
+ private $parsedBody;
+
+ /**
+ * @var array
+ */
+ private $queryParams = [];
+
+ /**
+ * @var array
+ */
+ private $serverParams;
+
+ /**
+ * @var array
+ */
+ private $uploadedFiles = [];
+
+ /**
+ * @param string $method HTTP method
+ * @param string|UriInterface $uri URI
+ * @param array $headers Request headers
+ * @param string|null|resource|StreamInterface $body Request body
+ * @param string $version Protocol version
+ * @param array $serverParams Typically the $_SERVER superglobal
+ */
+ public function __construct(
+ $method,
+ $uri,
+ array $headers = [],
+ $body = null,
+ $version = '1.1',
+ array $serverParams = []
+ ) {
+ $this->serverParams = $serverParams;
+
+ parent::__construct($method, $uri, $headers, $body, $version);
+ }
+
+ /**
+ * Return an UploadedFile instance array.
+ *
+ * @param array $files A array which respect $_FILES structure
+ * @throws InvalidArgumentException for unrecognized values
+ * @return array
+ */
+ public static function normalizeFiles(array $files)
+ {
+ $normalized = [];
+
+ foreach ($files as $key => $value) {
+ if ($value instanceof UploadedFileInterface) {
+ $normalized[$key] = $value;
+ } elseif (is_array($value) && isset($value['tmp_name'])) {
+ $normalized[$key] = self::createUploadedFileFromSpec($value);
+ } elseif (is_array($value)) {
+ $normalized[$key] = self::normalizeFiles($value);
+ continue;
+ } else {
+ throw new InvalidArgumentException('Invalid value in files specification');
+ }
+ }
+
+ return $normalized;
+ }
+
+ /**
+ * Create and return an UploadedFile instance from a $_FILES specification.
+ *
+ * If the specification represents an array of values, this method will
+ * delegate to normalizeNestedFileSpec() and return that return value.
+ *
+ * @param array $value $_FILES struct
+ * @return array|UploadedFileInterface
+ */
+ private static function createUploadedFileFromSpec(array $value)
+ {
+ if (is_array($value['tmp_name'])) {
+ return self::normalizeNestedFileSpec($value);
+ }
+
+ return new UploadedFile(
+ $value['tmp_name'],
+ (int) $value['size'],
+ (int) $value['error'],
+ $value['name'],
+ $value['type']
+ );
+ }
+
+ /**
+ * Normalize an array of file specifications.
+ *
+ * Loops through all nested files and returns a normalized array of
+ * UploadedFileInterface instances.
+ *
+ * @param array $files
+ * @return UploadedFileInterface[]
+ */
+ private static function normalizeNestedFileSpec(array $files = [])
+ {
+ $normalizedFiles = [];
+
+ foreach (array_keys($files['tmp_name']) as $key) {
+ $spec = [
+ 'tmp_name' => $files['tmp_name'][$key],
+ 'size' => $files['size'][$key],
+ 'error' => $files['error'][$key],
+ 'name' => $files['name'][$key],
+ 'type' => $files['type'][$key],
+ ];
+ $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec);
+ }
+
+ return $normalizedFiles;
+ }
+
+ /**
+ * Return a ServerRequest populated with superglobals:
+ * $_GET
+ * $_POST
+ * $_COOKIE
+ * $_FILES
+ * $_SERVER
+ *
+ * @return ServerRequestInterface
+ */
+ public static function fromGlobals()
+ {
+ $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : 'GET';
+ $headers = function_exists('getallheaders') ? getallheaders() : [];
+ $uri = self::getUriFromGlobals();
+ $body = new LazyOpenStream('php://input', 'r+');
+ $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1';
+
+ $serverRequest = new ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER);
+
+ return $serverRequest
+ ->withCookieParams($_COOKIE)
+ ->withQueryParams($_GET)
+ ->withParsedBody($_POST)
+ ->withUploadedFiles(self::normalizeFiles($_FILES));
+ }
+
+ /**
+ * Get a Uri populated with values from $_SERVER.
+ *
+ * @return UriInterface
+ */
+ public static function getUriFromGlobals() {
+ $uri = new Uri('');
+
+ $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http');
+
+ $hasPort = false;
+ if (isset($_SERVER['HTTP_HOST'])) {
+ $hostHeaderParts = explode(':', $_SERVER['HTTP_HOST']);
+ $uri = $uri->withHost($hostHeaderParts[0]);
+ if (isset($hostHeaderParts[1])) {
+ $hasPort = true;
+ $uri = $uri->withPort($hostHeaderParts[1]);
+ }
+ } elseif (isset($_SERVER['SERVER_NAME'])) {
+ $uri = $uri->withHost($_SERVER['SERVER_NAME']);
+ } elseif (isset($_SERVER['SERVER_ADDR'])) {
+ $uri = $uri->withHost($_SERVER['SERVER_ADDR']);
+ }
+
+ if (!$hasPort && isset($_SERVER['SERVER_PORT'])) {
+ $uri = $uri->withPort($_SERVER['SERVER_PORT']);
+ }
+
+ $hasQuery = false;
+ if (isset($_SERVER['REQUEST_URI'])) {
+ $requestUriParts = explode('?', $_SERVER['REQUEST_URI']);
+ $uri = $uri->withPath($requestUriParts[0]);
+ if (isset($requestUriParts[1])) {
+ $hasQuery = true;
+ $uri = $uri->withQuery($requestUriParts[1]);
+ }
+ }
+
+ if (!$hasQuery && isset($_SERVER['QUERY_STRING'])) {
+ $uri = $uri->withQuery($_SERVER['QUERY_STRING']);
+ }
+
+ return $uri;
+ }
+
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getServerParams()
+ {
+ return $this->serverParams;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getUploadedFiles()
+ {
+ return $this->uploadedFiles;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function withUploadedFiles(array $uploadedFiles)
+ {
+ $new = clone $this;
+ $new->uploadedFiles = $uploadedFiles;
+
+ return $new;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getCookieParams()
+ {
+ return $this->cookieParams;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function withCookieParams(array $cookies)
+ {
+ $new = clone $this;
+ $new->cookieParams = $cookies;
+
+ return $new;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getQueryParams()
+ {
+ return $this->queryParams;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function withQueryParams(array $query)
+ {
+ $new = clone $this;
+ $new->queryParams = $query;
+
+ return $new;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getParsedBody()
+ {
+ return $this->parsedBody;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function withParsedBody($data)
+ {
+ $new = clone $this;
+ $new->parsedBody = $data;
+
+ return $new;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getAttributes()
+ {
+ return $this->attributes;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getAttribute($attribute, $default = null)
+ {
+ if (false === array_key_exists($attribute, $this->attributes)) {
+ return $default;
+ }
+
+ return $this->attributes[$attribute];
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function withAttribute($attribute, $value)
+ {
+ $new = clone $this;
+ $new->attributes[$attribute] = $value;
+
+ return $new;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function withoutAttribute($attribute)
+ {
+ if (false === array_key_exists($attribute, $this->attributes)) {
+ return $this;
+ }
+
+ $new = clone $this;
+ unset($new->attributes[$attribute]);
+
+ return $new;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Stream.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Stream.php
new file mode 100644
index 00000000..e3366287
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Stream.php
@@ -0,0 +1,257 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * PHP stream implementation.
+ *
+ * @var $stream
+ */
+class Stream implements StreamInterface
+{
+ private $stream;
+ private $size;
+ private $seekable;
+ private $readable;
+ private $writable;
+ private $uri;
+ private $customMetadata;
+
+ /** @var array Hash of readable and writable stream types */
+ private static $readWriteHash = [
+ 'read' => [
+ 'r' => true, 'w+' => true, 'r+' => true, 'x+' => true, 'c+' => true,
+ 'rb' => true, 'w+b' => true, 'r+b' => true, 'x+b' => true,
+ 'c+b' => true, 'rt' => true, 'w+t' => true, 'r+t' => true,
+ 'x+t' => true, 'c+t' => true, 'a+' => true
+ ],
+ 'write' => [
+ 'w' => true, 'w+' => true, 'rw' => true, 'r+' => true, 'x+' => true,
+ 'c+' => true, 'wb' => true, 'w+b' => true, 'r+b' => true,
+ 'x+b' => true, 'c+b' => true, 'w+t' => true, 'r+t' => true,
+ 'x+t' => true, 'c+t' => true, 'a' => true, 'a+' => true
+ ]
+ ];
+
+ /**
+ * This constructor accepts an associative array of options.
+ *
+ * - size: (int) If a read stream would otherwise have an indeterminate
+ * size, but the size is known due to foreknowledge, then you can
+ * provide that size, in bytes.
+ * - metadata: (array) Any additional metadata to return when the metadata
+ * of the stream is accessed.
+ *
+ * @param resource $stream Stream resource to wrap.
+ * @param array $options Associative array of options.
+ *
+ * @throws \InvalidArgumentException if the stream is not a stream resource
+ */
+ public function __construct($stream, $options = [])
+ {
+ if (!is_resource($stream)) {
+ throw new \InvalidArgumentException('Stream must be a resource');
+ }
+
+ if (isset($options['size'])) {
+ $this->size = $options['size'];
+ }
+
+ $this->customMetadata = isset($options['metadata'])
+ ? $options['metadata']
+ : [];
+
+ $this->stream = $stream;
+ $meta = stream_get_meta_data($this->stream);
+ $this->seekable = $meta['seekable'];
+ $this->readable = isset(self::$readWriteHash['read'][$meta['mode']]);
+ $this->writable = isset(self::$readWriteHash['write'][$meta['mode']]);
+ $this->uri = $this->getMetadata('uri');
+ }
+
+ public function __get($name)
+ {
+ if ($name == 'stream') {
+ throw new \RuntimeException('The stream is detached');
+ }
+
+ throw new \BadMethodCallException('No value for ' . $name);
+ }
+
+ /**
+ * Closes the stream when the destructed
+ */
+ public function __destruct()
+ {
+ $this->close();
+ }
+
+ public function __toString()
+ {
+ try {
+ $this->seek(0);
+ return (string) stream_get_contents($this->stream);
+ } catch (\Exception $e) {
+ return '';
+ }
+ }
+
+ public function getContents()
+ {
+ $contents = stream_get_contents($this->stream);
+
+ if ($contents === false) {
+ throw new \RuntimeException('Unable to read stream contents');
+ }
+
+ return $contents;
+ }
+
+ public function close()
+ {
+ if (isset($this->stream)) {
+ if (is_resource($this->stream)) {
+ fclose($this->stream);
+ }
+ $this->detach();
+ }
+ }
+
+ public function detach()
+ {
+ if (!isset($this->stream)) {
+ return null;
+ }
+
+ $result = $this->stream;
+ unset($this->stream);
+ $this->size = $this->uri = null;
+ $this->readable = $this->writable = $this->seekable = false;
+
+ return $result;
+ }
+
+ public function getSize()
+ {
+ if ($this->size !== null) {
+ return $this->size;
+ }
+
+ if (!isset($this->stream)) {
+ return null;
+ }
+
+ // Clear the stat cache if the stream has a URI
+ if ($this->uri) {
+ clearstatcache(true, $this->uri);
+ }
+
+ $stats = fstat($this->stream);
+ if (isset($stats['size'])) {
+ $this->size = $stats['size'];
+ return $this->size;
+ }
+
+ return null;
+ }
+
+ public function isReadable()
+ {
+ return $this->readable;
+ }
+
+ public function isWritable()
+ {
+ return $this->writable;
+ }
+
+ public function isSeekable()
+ {
+ return $this->seekable;
+ }
+
+ public function eof()
+ {
+ return !$this->stream || feof($this->stream);
+ }
+
+ public function tell()
+ {
+ $result = ftell($this->stream);
+
+ if ($result === false) {
+ throw new \RuntimeException('Unable to determine stream position');
+ }
+
+ return $result;
+ }
+
+ public function rewind()
+ {
+ $this->seek(0);
+ }
+
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ if (!$this->seekable) {
+ throw new \RuntimeException('Stream is not seekable');
+ } elseif (fseek($this->stream, $offset, $whence) === -1) {
+ throw new \RuntimeException('Unable to seek to stream position '
+ . $offset . ' with whence ' . var_export($whence, true));
+ }
+ }
+
+ public function read($length)
+ {
+ if (!$this->readable) {
+ throw new \RuntimeException('Cannot read from non-readable stream');
+ }
+ if ($length < 0) {
+ throw new \RuntimeException('Length parameter cannot be negative');
+ }
+
+ if (0 === $length) {
+ return '';
+ }
+
+ $string = fread($this->stream, $length);
+ if (false === $string) {
+ throw new \RuntimeException('Unable to read from stream');
+ }
+
+ return $string;
+ }
+
+ public function write($string)
+ {
+ if (!$this->writable) {
+ throw new \RuntimeException('Cannot write to a non-writable stream');
+ }
+
+ // We can't know the size after writing anything
+ $this->size = null;
+ $result = fwrite($this->stream, $string);
+
+ if ($result === false) {
+ throw new \RuntimeException('Unable to write to stream');
+ }
+
+ return $result;
+ }
+
+ public function getMetadata($key = null)
+ {
+ if (!isset($this->stream)) {
+ return $key ? null : [];
+ } elseif (!$key) {
+ return $this->customMetadata + stream_get_meta_data($this->stream);
+ } elseif (isset($this->customMetadata[$key])) {
+ return $this->customMetadata[$key];
+ }
+
+ $meta = stream_get_meta_data($this->stream);
+
+ return isset($meta[$key]) ? $meta[$key] : null;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamDecoratorTrait.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamDecoratorTrait.php
new file mode 100644
index 00000000..daec6f52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamDecoratorTrait.php
@@ -0,0 +1,149 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Stream decorator trait
+ * @property StreamInterface stream
+ */
+trait StreamDecoratorTrait
+{
+ /**
+ * @param StreamInterface $stream Stream to decorate
+ */
+ public function __construct(StreamInterface $stream)
+ {
+ $this->stream = $stream;
+ }
+
+ /**
+ * Magic method used to create a new stream if streams are not added in
+ * the constructor of a decorator (e.g., LazyOpenStream).
+ *
+ * @param string $name Name of the property (allows "stream" only).
+ *
+ * @return StreamInterface
+ */
+ public function __get($name)
+ {
+ if ($name == 'stream') {
+ $this->stream = $this->createStream();
+ return $this->stream;
+ }
+
+ throw new \UnexpectedValueException("$name not found on class");
+ }
+
+ public function __toString()
+ {
+ try {
+ if ($this->isSeekable()) {
+ $this->seek(0);
+ }
+ return $this->getContents();
+ } catch (\Exception $e) {
+ // Really, PHP? https://bugs.php.net/bug.php?id=53648
+ trigger_error('StreamDecorator::__toString exception: '
+ . (string) $e, E_USER_ERROR);
+ return '';
+ }
+ }
+
+ public function getContents()
+ {
+ return copy_to_string($this);
+ }
+
+ /**
+ * Allow decorators to implement custom methods
+ *
+ * @param string $method Missing method name
+ * @param array $args Method arguments
+ *
+ * @return mixed
+ */
+ public function __call($method, array $args)
+ {
+ $result = call_user_func_array([$this->stream, $method], $args);
+
+ // Always return the wrapped object if the result is a return $this
+ return $result === $this->stream ? $this : $result;
+ }
+
+ public function close()
+ {
+ $this->stream->close();
+ }
+
+ public function getMetadata($key = null)
+ {
+ return $this->stream->getMetadata($key);
+ }
+
+ public function detach()
+ {
+ return $this->stream->detach();
+ }
+
+ public function getSize()
+ {
+ return $this->stream->getSize();
+ }
+
+ public function eof()
+ {
+ return $this->stream->eof();
+ }
+
+ public function tell()
+ {
+ return $this->stream->tell();
+ }
+
+ public function isReadable()
+ {
+ return $this->stream->isReadable();
+ }
+
+ public function isWritable()
+ {
+ return $this->stream->isWritable();
+ }
+
+ public function isSeekable()
+ {
+ return $this->stream->isSeekable();
+ }
+
+ public function rewind()
+ {
+ $this->seek(0);
+ }
+
+ public function seek($offset, $whence = SEEK_SET)
+ {
+ $this->stream->seek($offset, $whence);
+ }
+
+ public function read($length)
+ {
+ return $this->stream->read($length);
+ }
+
+ public function write($string)
+ {
+ return $this->stream->write($string);
+ }
+
+ /**
+ * Implement in subclasses to dynamically create streams when requested.
+ *
+ * @return StreamInterface
+ * @throws \BadMethodCallException
+ */
+ protected function createStream()
+ {
+ throw new \BadMethodCallException('Not implemented');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamWrapper.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamWrapper.php
new file mode 100644
index 00000000..cf7b2232
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/StreamWrapper.php
@@ -0,0 +1,121 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\StreamInterface;
+
+/**
+ * Converts Guzzle streams into PHP stream resources.
+ */
+class StreamWrapper
+{
+ /** @var resource */
+ public $context;
+
+ /** @var StreamInterface */
+ private $stream;
+
+ /** @var string r, r+, or w */
+ private $mode;
+
+ /**
+ * Returns a resource representing the stream.
+ *
+ * @param StreamInterface $stream The stream to get a resource for
+ *
+ * @return resource
+ * @throws \InvalidArgumentException if stream is not readable or writable
+ */
+ public static function getResource(StreamInterface $stream)
+ {
+ self::register();
+
+ if ($stream->isReadable()) {
+ $mode = $stream->isWritable() ? 'r+' : 'r';
+ } elseif ($stream->isWritable()) {
+ $mode = 'w';
+ } else {
+ throw new \InvalidArgumentException('The stream must be readable, '
+ . 'writable, or both.');
+ }
+
+ return fopen('guzzle://stream', $mode, null, stream_context_create([
+ 'guzzle' => ['stream' => $stream]
+ ]));
+ }
+
+ /**
+ * Registers the stream wrapper if needed
+ */
+ public static function register()
+ {
+ if (!in_array('guzzle', stream_get_wrappers())) {
+ stream_wrapper_register('guzzle', __CLASS__);
+ }
+ }
+
+ public function stream_open($path, $mode, $options, &$opened_path)
+ {
+ $options = stream_context_get_options($this->context);
+
+ if (!isset($options['guzzle']['stream'])) {
+ return false;
+ }
+
+ $this->mode = $mode;
+ $this->stream = $options['guzzle']['stream'];
+
+ return true;
+ }
+
+ public function stream_read($count)
+ {
+ return $this->stream->read($count);
+ }
+
+ public function stream_write($data)
+ {
+ return (int) $this->stream->write($data);
+ }
+
+ public function stream_tell()
+ {
+ return $this->stream->tell();
+ }
+
+ public function stream_eof()
+ {
+ return $this->stream->eof();
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ $this->stream->seek($offset, $whence);
+
+ return true;
+ }
+
+ public function stream_stat()
+ {
+ static $modeMap = [
+ 'r' => 33060,
+ 'r+' => 33206,
+ 'w' => 33188
+ ];
+
+ return [
+ 'dev' => 0,
+ 'ino' => 0,
+ 'mode' => $modeMap[$this->mode],
+ 'nlink' => 0,
+ 'uid' => 0,
+ 'gid' => 0,
+ 'rdev' => 0,
+ 'size' => $this->stream->getSize() ?: 0,
+ 'atime' => 0,
+ 'mtime' => 0,
+ 'ctime' => 0,
+ 'blksize' => 0,
+ 'blocks' => 0
+ ];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UploadedFile.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UploadedFile.php
new file mode 100644
index 00000000..e62bd5c8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UploadedFile.php
@@ -0,0 +1,316 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use InvalidArgumentException;
+use Psr\Http\Message\StreamInterface;
+use Psr\Http\Message\UploadedFileInterface;
+use RuntimeException;
+
+class UploadedFile implements UploadedFileInterface
+{
+ /**
+ * @var int[]
+ */
+ private static $errors = [
+ UPLOAD_ERR_OK,
+ UPLOAD_ERR_INI_SIZE,
+ UPLOAD_ERR_FORM_SIZE,
+ UPLOAD_ERR_PARTIAL,
+ UPLOAD_ERR_NO_FILE,
+ UPLOAD_ERR_NO_TMP_DIR,
+ UPLOAD_ERR_CANT_WRITE,
+ UPLOAD_ERR_EXTENSION,
+ ];
+
+ /**
+ * @var string
+ */
+ private $clientFilename;
+
+ /**
+ * @var string
+ */
+ private $clientMediaType;
+
+ /**
+ * @var int
+ */
+ private $error;
+
+ /**
+ * @var null|string
+ */
+ private $file;
+
+ /**
+ * @var bool
+ */
+ private $moved = false;
+
+ /**
+ * @var int
+ */
+ private $size;
+
+ /**
+ * @var StreamInterface|null
+ */
+ private $stream;
+
+ /**
+ * @param StreamInterface|string|resource $streamOrFile
+ * @param int $size
+ * @param int $errorStatus
+ * @param string|null $clientFilename
+ * @param string|null $clientMediaType
+ */
+ public function __construct(
+ $streamOrFile,
+ $size,
+ $errorStatus,
+ $clientFilename = null,
+ $clientMediaType = null
+ ) {
+ $this->setError($errorStatus);
+ $this->setSize($size);
+ $this->setClientFilename($clientFilename);
+ $this->setClientMediaType($clientMediaType);
+
+ if ($this->isOk()) {
+ $this->setStreamOrFile($streamOrFile);
+ }
+ }
+
+ /**
+ * Depending on the value set file or stream variable
+ *
+ * @param mixed $streamOrFile
+ * @throws InvalidArgumentException
+ */
+ private function setStreamOrFile($streamOrFile)
+ {
+ if (is_string($streamOrFile)) {
+ $this->file = $streamOrFile;
+ } elseif (is_resource($streamOrFile)) {
+ $this->stream = new Stream($streamOrFile);
+ } elseif ($streamOrFile instanceof StreamInterface) {
+ $this->stream = $streamOrFile;
+ } else {
+ throw new InvalidArgumentException(
+ 'Invalid stream or file provided for UploadedFile'
+ );
+ }
+ }
+
+ /**
+ * @param int $error
+ * @throws InvalidArgumentException
+ */
+ private function setError($error)
+ {
+ if (false === is_int($error)) {
+ throw new InvalidArgumentException(
+ 'Upload file error status must be an integer'
+ );
+ }
+
+ if (false === in_array($error, UploadedFile::$errors)) {
+ throw new InvalidArgumentException(
+ 'Invalid error status for UploadedFile'
+ );
+ }
+
+ $this->error = $error;
+ }
+
+ /**
+ * @param int $size
+ * @throws InvalidArgumentException
+ */
+ private function setSize($size)
+ {
+ if (false === is_int($size)) {
+ throw new InvalidArgumentException(
+ 'Upload file size must be an integer'
+ );
+ }
+
+ $this->size = $size;
+ }
+
+ /**
+ * @param mixed $param
+ * @return boolean
+ */
+ private function isStringOrNull($param)
+ {
+ return in_array(gettype($param), ['string', 'NULL']);
+ }
+
+ /**
+ * @param mixed $param
+ * @return boolean
+ */
+ private function isStringNotEmpty($param)
+ {
+ return is_string($param) && false === empty($param);
+ }
+
+ /**
+ * @param string|null $clientFilename
+ * @throws InvalidArgumentException
+ */
+ private function setClientFilename($clientFilename)
+ {
+ if (false === $this->isStringOrNull($clientFilename)) {
+ throw new InvalidArgumentException(
+ 'Upload file client filename must be a string or null'
+ );
+ }
+
+ $this->clientFilename = $clientFilename;
+ }
+
+ /**
+ * @param string|null $clientMediaType
+ * @throws InvalidArgumentException
+ */
+ private function setClientMediaType($clientMediaType)
+ {
+ if (false === $this->isStringOrNull($clientMediaType)) {
+ throw new InvalidArgumentException(
+ 'Upload file client media type must be a string or null'
+ );
+ }
+
+ $this->clientMediaType = $clientMediaType;
+ }
+
+ /**
+ * Return true if there is no upload error
+ *
+ * @return boolean
+ */
+ private function isOk()
+ {
+ return $this->error === UPLOAD_ERR_OK;
+ }
+
+ /**
+ * @return boolean
+ */
+ public function isMoved()
+ {
+ return $this->moved;
+ }
+
+ /**
+ * @throws RuntimeException if is moved or not ok
+ */
+ private function validateActive()
+ {
+ if (false === $this->isOk()) {
+ throw new RuntimeException('Cannot retrieve stream due to upload error');
+ }
+
+ if ($this->isMoved()) {
+ throw new RuntimeException('Cannot retrieve stream after it has already been moved');
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ * @throws RuntimeException if the upload was not successful.
+ */
+ public function getStream()
+ {
+ $this->validateActive();
+
+ if ($this->stream instanceof StreamInterface) {
+ return $this->stream;
+ }
+
+ return new LazyOpenStream($this->file, 'r+');
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @see http://php.net/is_uploaded_file
+ * @see http://php.net/move_uploaded_file
+ * @param string $targetPath Path to which to move the uploaded file.
+ * @throws RuntimeException if the upload was not successful.
+ * @throws InvalidArgumentException if the $path specified is invalid.
+ * @throws RuntimeException on any error during the move operation, or on
+ * the second or subsequent call to the method.
+ */
+ public function moveTo($targetPath)
+ {
+ $this->validateActive();
+
+ if (false === $this->isStringNotEmpty($targetPath)) {
+ throw new InvalidArgumentException(
+ 'Invalid path provided for move operation; must be a non-empty string'
+ );
+ }
+
+ if ($this->file) {
+ $this->moved = php_sapi_name() == 'cli'
+ ? rename($this->file, $targetPath)
+ : move_uploaded_file($this->file, $targetPath);
+ } else {
+ copy_to_stream(
+ $this->getStream(),
+ new LazyOpenStream($targetPath, 'w')
+ );
+
+ $this->moved = true;
+ }
+
+ if (false === $this->moved) {
+ throw new RuntimeException(
+ sprintf('Uploaded file could not be moved to %s', $targetPath)
+ );
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @return int|null The file size in bytes or null if unknown.
+ */
+ public function getSize()
+ {
+ return $this->size;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @see http://php.net/manual/en/features.file-upload.errors.php
+ * @return int One of PHP's UPLOAD_ERR_XXX constants.
+ */
+ public function getError()
+ {
+ return $this->error;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @return string|null The filename sent by the client or null if none
+ * was provided.
+ */
+ public function getClientFilename()
+ {
+ return $this->clientFilename;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getClientMediaType()
+ {
+ return $this->clientMediaType;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Uri.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Uri.php
new file mode 100644
index 00000000..f46c1db9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/Uri.php
@@ -0,0 +1,702 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\UriInterface;
+
+/**
+ * PSR-7 URI implementation.
+ *
+ * @author Michael Dowling
+ * @author Tobias Schultze
+ * @author Matthew Weier O'Phinney
+ */
+class Uri implements UriInterface
+{
+ /**
+ * Absolute http and https URIs require a host per RFC 7230 Section 2.7
+ * but in generic URIs the host can be empty. So for http(s) URIs
+ * we apply this default host when no host is given yet to form a
+ * valid URI.
+ */
+ const HTTP_DEFAULT_HOST = 'localhost';
+
+ private static $defaultPorts = [
+ 'http' => 80,
+ 'https' => 443,
+ 'ftp' => 21,
+ 'gopher' => 70,
+ 'nntp' => 119,
+ 'news' => 119,
+ 'telnet' => 23,
+ 'tn3270' => 23,
+ 'imap' => 143,
+ 'pop' => 110,
+ 'ldap' => 389,
+ ];
+
+ private static $charUnreserved = 'a-zA-Z0-9_\-\.~';
+ private static $charSubDelims = '!\$&\'\(\)\*\+,;=';
+ private static $replaceQuery = ['=' => '%3D', '&' => '%26'];
+
+ /** @var string Uri scheme. */
+ private $scheme = '';
+
+ /** @var string Uri user info. */
+ private $userInfo = '';
+
+ /** @var string Uri host. */
+ private $host = '';
+
+ /** @var int|null Uri port. */
+ private $port;
+
+ /** @var string Uri path. */
+ private $path = '';
+
+ /** @var string Uri query string. */
+ private $query = '';
+
+ /** @var string Uri fragment. */
+ private $fragment = '';
+
+ /**
+ * @param string $uri URI to parse
+ */
+ public function __construct($uri = '')
+ {
+ // weak type check to also accept null until we can add scalar type hints
+ if ($uri != '') {
+ $parts = parse_url($uri);
+ if ($parts === false) {
+ throw new \InvalidArgumentException("Unable to parse URI: $uri");
+ }
+ $this->applyParts($parts);
+ }
+ }
+
+ public function __toString()
+ {
+ return self::composeComponents(
+ $this->scheme,
+ $this->getAuthority(),
+ $this->path,
+ $this->query,
+ $this->fragment
+ );
+ }
+
+ /**
+ * Composes a URI reference string from its various components.
+ *
+ * Usually this method does not need to be called manually but instead is used indirectly via
+ * `Psr\Http\Message\UriInterface::__toString`.
+ *
+ * PSR-7 UriInterface treats an empty component the same as a missing component as
+ * getQuery(), getFragment() etc. always return a string. This explains the slight
+ * difference to RFC 3986 Section 5.3.
+ *
+ * Another adjustment is that the authority separator is added even when the authority is missing/empty
+ * for the "file" scheme. This is because PHP stream functions like `file_get_contents` only work with
+ * `file:///myfile` but not with `file:/myfile` although they are equivalent according to RFC 3986. But
+ * `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to
+ * that format).
+ *
+ * @param string $scheme
+ * @param string $authority
+ * @param string $path
+ * @param string $query
+ * @param string $fragment
+ *
+ * @return string
+ *
+ * @link https://tools.ietf.org/html/rfc3986#section-5.3
+ */
+ public static function composeComponents($scheme, $authority, $path, $query, $fragment)
+ {
+ $uri = '';
+
+ // weak type checks to also accept null until we can add scalar type hints
+ if ($scheme != '') {
+ $uri .= $scheme . ':';
+ }
+
+ if ($authority != ''|| $scheme === 'file') {
+ $uri .= '//' . $authority;
+ }
+
+ $uri .= $path;
+
+ if ($query != '') {
+ $uri .= '?' . $query;
+ }
+
+ if ($fragment != '') {
+ $uri .= '#' . $fragment;
+ }
+
+ return $uri;
+ }
+
+ /**
+ * Whether the URI has the default port of the current scheme.
+ *
+ * `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used
+ * independently of the implementation.
+ *
+ * @param UriInterface $uri
+ *
+ * @return bool
+ */
+ public static function isDefaultPort(UriInterface $uri)
+ {
+ return $uri->getPort() === null
+ || (isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]);
+ }
+
+ /**
+ * Whether the URI is absolute, i.e. it has a scheme.
+ *
+ * An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true
+ * if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative
+ * to another URI, the base URI. Relative references can be divided into several forms:
+ * - network-path references, e.g. '//example.com/path'
+ * - absolute-path references, e.g. '/path'
+ * - relative-path references, e.g. 'subpath'
+ *
+ * @param UriInterface $uri
+ *
+ * @return bool
+ * @see Uri::isNetworkPathReference
+ * @see Uri::isAbsolutePathReference
+ * @see Uri::isRelativePathReference
+ * @link https://tools.ietf.org/html/rfc3986#section-4
+ */
+ public static function isAbsolute(UriInterface $uri)
+ {
+ return $uri->getScheme() !== '';
+ }
+
+ /**
+ * Whether the URI is a network-path reference.
+ *
+ * A relative reference that begins with two slash characters is termed an network-path reference.
+ *
+ * @param UriInterface $uri
+ *
+ * @return bool
+ * @link https://tools.ietf.org/html/rfc3986#section-4.2
+ */
+ public static function isNetworkPathReference(UriInterface $uri)
+ {
+ return $uri->getScheme() === '' && $uri->getAuthority() !== '';
+ }
+
+ /**
+ * Whether the URI is a absolute-path reference.
+ *
+ * A relative reference that begins with a single slash character is termed an absolute-path reference.
+ *
+ * @param UriInterface $uri
+ *
+ * @return bool
+ * @link https://tools.ietf.org/html/rfc3986#section-4.2
+ */
+ public static function isAbsolutePathReference(UriInterface $uri)
+ {
+ return $uri->getScheme() === ''
+ && $uri->getAuthority() === ''
+ && isset($uri->getPath()[0])
+ && $uri->getPath()[0] === '/';
+ }
+
+ /**
+ * Whether the URI is a relative-path reference.
+ *
+ * A relative reference that does not begin with a slash character is termed a relative-path reference.
+ *
+ * @param UriInterface $uri
+ *
+ * @return bool
+ * @link https://tools.ietf.org/html/rfc3986#section-4.2
+ */
+ public static function isRelativePathReference(UriInterface $uri)
+ {
+ return $uri->getScheme() === ''
+ && $uri->getAuthority() === ''
+ && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/');
+ }
+
+ /**
+ * Whether the URI is a same-document reference.
+ *
+ * A same-document reference refers to a URI that is, aside from its fragment
+ * component, identical to the base URI. When no base URI is given, only an empty
+ * URI reference (apart from its fragment) is considered a same-document reference.
+ *
+ * @param UriInterface $uri The URI to check
+ * @param UriInterface|null $base An optional base URI to compare against
+ *
+ * @return bool
+ * @link https://tools.ietf.org/html/rfc3986#section-4.4
+ */
+ public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null)
+ {
+ if ($base !== null) {
+ $uri = UriResolver::resolve($base, $uri);
+
+ return ($uri->getScheme() === $base->getScheme())
+ && ($uri->getAuthority() === $base->getAuthority())
+ && ($uri->getPath() === $base->getPath())
+ && ($uri->getQuery() === $base->getQuery());
+ }
+
+ return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === '';
+ }
+
+ /**
+ * Removes dot segments from a path and returns the new path.
+ *
+ * @param string $path
+ *
+ * @return string
+ *
+ * @deprecated since version 1.4. Use UriResolver::removeDotSegments instead.
+ * @see UriResolver::removeDotSegments
+ */
+ public static function removeDotSegments($path)
+ {
+ return UriResolver::removeDotSegments($path);
+ }
+
+ /**
+ * Converts the relative URI into a new URI that is resolved against the base URI.
+ *
+ * @param UriInterface $base Base URI
+ * @param string|UriInterface $rel Relative URI
+ *
+ * @return UriInterface
+ *
+ * @deprecated since version 1.4. Use UriResolver::resolve instead.
+ * @see UriResolver::resolve
+ */
+ public static function resolve(UriInterface $base, $rel)
+ {
+ if (!($rel instanceof UriInterface)) {
+ $rel = new self($rel);
+ }
+
+ return UriResolver::resolve($base, $rel);
+ }
+
+ /**
+ * Creates a new URI with a specific query string value removed.
+ *
+ * Any existing query string values that exactly match the provided key are
+ * removed.
+ *
+ * @param UriInterface $uri URI to use as a base.
+ * @param string $key Query string key to remove.
+ *
+ * @return UriInterface
+ */
+ public static function withoutQueryValue(UriInterface $uri, $key)
+ {
+ $current = $uri->getQuery();
+ if ($current === '') {
+ return $uri;
+ }
+
+ $decodedKey = rawurldecode($key);
+ $result = array_filter(explode('&', $current), function ($part) use ($decodedKey) {
+ return rawurldecode(explode('=', $part)[0]) !== $decodedKey;
+ });
+
+ return $uri->withQuery(implode('&', $result));
+ }
+
+ /**
+ * Creates a new URI with a specific query string value.
+ *
+ * Any existing query string values that exactly match the provided key are
+ * removed and replaced with the given key value pair.
+ *
+ * A value of null will set the query string key without a value, e.g. "key"
+ * instead of "key=value".
+ *
+ * @param UriInterface $uri URI to use as a base.
+ * @param string $key Key to set.
+ * @param string|null $value Value to set
+ *
+ * @return UriInterface
+ */
+ public static function withQueryValue(UriInterface $uri, $key, $value)
+ {
+ $current = $uri->getQuery();
+
+ if ($current === '') {
+ $result = [];
+ } else {
+ $decodedKey = rawurldecode($key);
+ $result = array_filter(explode('&', $current), function ($part) use ($decodedKey) {
+ return rawurldecode(explode('=', $part)[0]) !== $decodedKey;
+ });
+ }
+
+ // Query string separators ("=", "&") within the key or value need to be encoded
+ // (while preventing double-encoding) before setting the query string. All other
+ // chars that need percent-encoding will be encoded by withQuery().
+ $key = strtr($key, self::$replaceQuery);
+
+ if ($value !== null) {
+ $result[] = $key . '=' . strtr($value, self::$replaceQuery);
+ } else {
+ $result[] = $key;
+ }
+
+ return $uri->withQuery(implode('&', $result));
+ }
+
+ /**
+ * Creates a URI from a hash of `parse_url` components.
+ *
+ * @param array $parts
+ *
+ * @return UriInterface
+ * @link http://php.net/manual/en/function.parse-url.php
+ *
+ * @throws \InvalidArgumentException If the components do not form a valid URI.
+ */
+ public static function fromParts(array $parts)
+ {
+ $uri = new self();
+ $uri->applyParts($parts);
+ $uri->validateState();
+
+ return $uri;
+ }
+
+ public function getScheme()
+ {
+ return $this->scheme;
+ }
+
+ public function getAuthority()
+ {
+ $authority = $this->host;
+ if ($this->userInfo !== '') {
+ $authority = $this->userInfo . '@' . $authority;
+ }
+
+ if ($this->port !== null) {
+ $authority .= ':' . $this->port;
+ }
+
+ return $authority;
+ }
+
+ public function getUserInfo()
+ {
+ return $this->userInfo;
+ }
+
+ public function getHost()
+ {
+ return $this->host;
+ }
+
+ public function getPort()
+ {
+ return $this->port;
+ }
+
+ public function getPath()
+ {
+ return $this->path;
+ }
+
+ public function getQuery()
+ {
+ return $this->query;
+ }
+
+ public function getFragment()
+ {
+ return $this->fragment;
+ }
+
+ public function withScheme($scheme)
+ {
+ $scheme = $this->filterScheme($scheme);
+
+ if ($this->scheme === $scheme) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->scheme = $scheme;
+ $new->removeDefaultPort();
+ $new->validateState();
+
+ return $new;
+ }
+
+ public function withUserInfo($user, $password = null)
+ {
+ $info = $user;
+ if ($password != '') {
+ $info .= ':' . $password;
+ }
+
+ if ($this->userInfo === $info) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->userInfo = $info;
+ $new->validateState();
+
+ return $new;
+ }
+
+ public function withHost($host)
+ {
+ $host = $this->filterHost($host);
+
+ if ($this->host === $host) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->host = $host;
+ $new->validateState();
+
+ return $new;
+ }
+
+ public function withPort($port)
+ {
+ $port = $this->filterPort($port);
+
+ if ($this->port === $port) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->port = $port;
+ $new->removeDefaultPort();
+ $new->validateState();
+
+ return $new;
+ }
+
+ public function withPath($path)
+ {
+ $path = $this->filterPath($path);
+
+ if ($this->path === $path) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->path = $path;
+ $new->validateState();
+
+ return $new;
+ }
+
+ public function withQuery($query)
+ {
+ $query = $this->filterQueryAndFragment($query);
+
+ if ($this->query === $query) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->query = $query;
+
+ return $new;
+ }
+
+ public function withFragment($fragment)
+ {
+ $fragment = $this->filterQueryAndFragment($fragment);
+
+ if ($this->fragment === $fragment) {
+ return $this;
+ }
+
+ $new = clone $this;
+ $new->fragment = $fragment;
+
+ return $new;
+ }
+
+ /**
+ * Apply parse_url parts to a URI.
+ *
+ * @param array $parts Array of parse_url parts to apply.
+ */
+ private function applyParts(array $parts)
+ {
+ $this->scheme = isset($parts['scheme'])
+ ? $this->filterScheme($parts['scheme'])
+ : '';
+ $this->userInfo = isset($parts['user']) ? $parts['user'] : '';
+ $this->host = isset($parts['host'])
+ ? $this->filterHost($parts['host'])
+ : '';
+ $this->port = isset($parts['port'])
+ ? $this->filterPort($parts['port'])
+ : null;
+ $this->path = isset($parts['path'])
+ ? $this->filterPath($parts['path'])
+ : '';
+ $this->query = isset($parts['query'])
+ ? $this->filterQueryAndFragment($parts['query'])
+ : '';
+ $this->fragment = isset($parts['fragment'])
+ ? $this->filterQueryAndFragment($parts['fragment'])
+ : '';
+ if (isset($parts['pass'])) {
+ $this->userInfo .= ':' . $parts['pass'];
+ }
+
+ $this->removeDefaultPort();
+ }
+
+ /**
+ * @param string $scheme
+ *
+ * @return string
+ *
+ * @throws \InvalidArgumentException If the scheme is invalid.
+ */
+ private function filterScheme($scheme)
+ {
+ if (!is_string($scheme)) {
+ throw new \InvalidArgumentException('Scheme must be a string');
+ }
+
+ return strtolower($scheme);
+ }
+
+ /**
+ * @param string $host
+ *
+ * @return string
+ *
+ * @throws \InvalidArgumentException If the host is invalid.
+ */
+ private function filterHost($host)
+ {
+ if (!is_string($host)) {
+ throw new \InvalidArgumentException('Host must be a string');
+ }
+
+ return strtolower($host);
+ }
+
+ /**
+ * @param int|null $port
+ *
+ * @return int|null
+ *
+ * @throws \InvalidArgumentException If the port is invalid.
+ */
+ private function filterPort($port)
+ {
+ if ($port === null) {
+ return null;
+ }
+
+ $port = (int) $port;
+ if (1 > $port || 0xffff < $port) {
+ throw new \InvalidArgumentException(
+ sprintf('Invalid port: %d. Must be between 1 and 65535', $port)
+ );
+ }
+
+ return $port;
+ }
+
+ private function removeDefaultPort()
+ {
+ if ($this->port !== null && self::isDefaultPort($this)) {
+ $this->port = null;
+ }
+ }
+
+ /**
+ * Filters the path of a URI
+ *
+ * @param string $path
+ *
+ * @return string
+ *
+ * @throws \InvalidArgumentException If the path is invalid.
+ */
+ private function filterPath($path)
+ {
+ if (!is_string($path)) {
+ throw new \InvalidArgumentException('Path must be a string');
+ }
+
+ return preg_replace_callback(
+ '/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/',
+ [$this, 'rawurlencodeMatchZero'],
+ $path
+ );
+ }
+
+ /**
+ * Filters the query string or fragment of a URI.
+ *
+ * @param string $str
+ *
+ * @return string
+ *
+ * @throws \InvalidArgumentException If the query or fragment is invalid.
+ */
+ private function filterQueryAndFragment($str)
+ {
+ if (!is_string($str)) {
+ throw new \InvalidArgumentException('Query and fragment must be a string');
+ }
+
+ return preg_replace_callback(
+ '/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/',
+ [$this, 'rawurlencodeMatchZero'],
+ $str
+ );
+ }
+
+ private function rawurlencodeMatchZero(array $match)
+ {
+ return rawurlencode($match[0]);
+ }
+
+ private function validateState()
+ {
+ if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) {
+ $this->host = self::HTTP_DEFAULT_HOST;
+ }
+
+ if ($this->getAuthority() === '') {
+ if (0 === strpos($this->path, '//')) {
+ throw new \InvalidArgumentException('The path of a URI without an authority must not start with two slashes "//"');
+ }
+ if ($this->scheme === '' && false !== strpos(explode('/', $this->path, 2)[0], ':')) {
+ throw new \InvalidArgumentException('A relative URI must not have a path beginning with a segment containing a colon');
+ }
+ } elseif (isset($this->path[0]) && $this->path[0] !== '/') {
+ @trigger_error(
+ 'The path of a URI with an authority must start with a slash "/" or be empty. Automagically fixing the URI ' .
+ 'by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead.',
+ E_USER_DEPRECATED
+ );
+ $this->path = '/'. $this->path;
+ //throw new \InvalidArgumentException('The path of a URI with an authority must start with a slash "/" or be empty');
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriNormalizer.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriNormalizer.php
new file mode 100644
index 00000000..384c29e5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriNormalizer.php
@@ -0,0 +1,216 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\UriInterface;
+
+/**
+ * Provides methods to normalize and compare URIs.
+ *
+ * @author Tobias Schultze
+ *
+ * @link https://tools.ietf.org/html/rfc3986#section-6
+ */
+final class UriNormalizer
+{
+ /**
+ * Default normalizations which only include the ones that preserve semantics.
+ *
+ * self::CAPITALIZE_PERCENT_ENCODING | self::DECODE_UNRESERVED_CHARACTERS | self::CONVERT_EMPTY_PATH |
+ * self::REMOVE_DEFAULT_HOST | self::REMOVE_DEFAULT_PORT | self::REMOVE_DOT_SEGMENTS
+ */
+ const PRESERVING_NORMALIZATIONS = 63;
+
+ /**
+ * All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be capitalized.
+ *
+ * Example: http://example.org/a%c2%b1b → http://example.org/a%C2%B1b
+ */
+ const CAPITALIZE_PERCENT_ENCODING = 1;
+
+ /**
+ * Decodes percent-encoded octets of unreserved characters.
+ *
+ * For consistency, percent-encoded octets in the ranges of ALPHA (%41–%5A and %61–%7A), DIGIT (%30–%39),
+ * hyphen (%2D), period (%2E), underscore (%5F), or tilde (%7E) should not be created by URI producers and,
+ * when found in a URI, should be decoded to their corresponding unreserved characters by URI normalizers.
+ *
+ * Example: http://example.org/%7Eusern%61me/ → http://example.org/~username/
+ */
+ const DECODE_UNRESERVED_CHARACTERS = 2;
+
+ /**
+ * Converts the empty path to "/" for http and https URIs.
+ *
+ * Example: http://example.org → http://example.org/
+ */
+ const CONVERT_EMPTY_PATH = 4;
+
+ /**
+ * Removes the default host of the given URI scheme from the URI.
+ *
+ * Only the "file" scheme defines the default host "localhost".
+ * All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile`
+ * are equivalent according to RFC 3986. The first format is not accepted
+ * by PHPs stream functions and thus already normalized implicitly to the
+ * second format in the Uri class. See `GuzzleHttp\Psr7\Uri::composeComponents`.
+ *
+ * Example: file://localhost/myfile → file:///myfile
+ */
+ const REMOVE_DEFAULT_HOST = 8;
+
+ /**
+ * Removes the default port of the given URI scheme from the URI.
+ *
+ * Example: http://example.org:80/ → http://example.org/
+ */
+ const REMOVE_DEFAULT_PORT = 16;
+
+ /**
+ * Removes unnecessary dot-segments.
+ *
+ * Dot-segments in relative-path references are not removed as it would
+ * change the semantics of the URI reference.
+ *
+ * Example: http://example.org/../a/b/../c/./d.html → http://example.org/a/c/d.html
+ */
+ const REMOVE_DOT_SEGMENTS = 32;
+
+ /**
+ * Paths which include two or more adjacent slashes are converted to one.
+ *
+ * Webservers usually ignore duplicate slashes and treat those URIs equivalent.
+ * But in theory those URIs do not need to be equivalent. So this normalization
+ * may change the semantics. Encoded slashes (%2F) are not removed.
+ *
+ * Example: http://example.org//foo///bar.html → http://example.org/foo/bar.html
+ */
+ const REMOVE_DUPLICATE_SLASHES = 64;
+
+ /**
+ * Sort query parameters with their values in alphabetical order.
+ *
+ * However, the order of parameters in a URI may be significant (this is not defined by the standard).
+ * So this normalization is not safe and may change the semantics of the URI.
+ *
+ * Example: ?lang=en&article=fred → ?article=fred&lang=en
+ *
+ * Note: The sorting is neither locale nor Unicode aware (the URI query does not get decoded at all) as the
+ * purpose is to be able to compare URIs in a reproducible way, not to have the params sorted perfectly.
+ */
+ const SORT_QUERY_PARAMETERS = 128;
+
+ /**
+ * Returns a normalized URI.
+ *
+ * The scheme and host component are already normalized to lowercase per PSR-7 UriInterface.
+ * This methods adds additional normalizations that can be configured with the $flags parameter.
+ *
+ * PSR-7 UriInterface cannot distinguish between an empty component and a missing component as
+ * getQuery(), getFragment() etc. always return a string. This means the URIs "/?#" and "/" are
+ * treated equivalent which is not necessarily true according to RFC 3986. But that difference
+ * is highly uncommon in reality. So this potential normalization is implied in PSR-7 as well.
+ *
+ * @param UriInterface $uri The URI to normalize
+ * @param int $flags A bitmask of normalizations to apply, see constants
+ *
+ * @return UriInterface The normalized URI
+ * @link https://tools.ietf.org/html/rfc3986#section-6.2
+ */
+ public static function normalize(UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS)
+ {
+ if ($flags & self::CAPITALIZE_PERCENT_ENCODING) {
+ $uri = self::capitalizePercentEncoding($uri);
+ }
+
+ if ($flags & self::DECODE_UNRESERVED_CHARACTERS) {
+ $uri = self::decodeUnreservedCharacters($uri);
+ }
+
+ if ($flags & self::CONVERT_EMPTY_PATH && $uri->getPath() === '' &&
+ ($uri->getScheme() === 'http' || $uri->getScheme() === 'https')
+ ) {
+ $uri = $uri->withPath('/');
+ }
+
+ if ($flags & self::REMOVE_DEFAULT_HOST && $uri->getScheme() === 'file' && $uri->getHost() === 'localhost') {
+ $uri = $uri->withHost('');
+ }
+
+ if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && Uri::isDefaultPort($uri)) {
+ $uri = $uri->withPort(null);
+ }
+
+ if ($flags & self::REMOVE_DOT_SEGMENTS && !Uri::isRelativePathReference($uri)) {
+ $uri = $uri->withPath(UriResolver::removeDotSegments($uri->getPath()));
+ }
+
+ if ($flags & self::REMOVE_DUPLICATE_SLASHES) {
+ $uri = $uri->withPath(preg_replace('#//++#', '/', $uri->getPath()));
+ }
+
+ if ($flags & self::SORT_QUERY_PARAMETERS && $uri->getQuery() !== '') {
+ $queryKeyValues = explode('&', $uri->getQuery());
+ sort($queryKeyValues);
+ $uri = $uri->withQuery(implode('&', $queryKeyValues));
+ }
+
+ return $uri;
+ }
+
+ /**
+ * Whether two URIs can be considered equivalent.
+ *
+ * Both URIs are normalized automatically before comparison with the given $normalizations bitmask. The method also
+ * accepts relative URI references and returns true when they are equivalent. This of course assumes they will be
+ * resolved against the same base URI. If this is not the case, determination of equivalence or difference of
+ * relative references does not mean anything.
+ *
+ * @param UriInterface $uri1 An URI to compare
+ * @param UriInterface $uri2 An URI to compare
+ * @param int $normalizations A bitmask of normalizations to apply, see constants
+ *
+ * @return bool
+ * @link https://tools.ietf.org/html/rfc3986#section-6.1
+ */
+ public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS)
+ {
+ return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations);
+ }
+
+ private static function capitalizePercentEncoding(UriInterface $uri)
+ {
+ $regex = '/(?:%[A-Fa-f0-9]{2})++/';
+
+ $callback = function (array $match) {
+ return strtoupper($match[0]);
+ };
+
+ return
+ $uri->withPath(
+ preg_replace_callback($regex, $callback, $uri->getPath())
+ )->withQuery(
+ preg_replace_callback($regex, $callback, $uri->getQuery())
+ );
+ }
+
+ private static function decodeUnreservedCharacters(UriInterface $uri)
+ {
+ $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i';
+
+ $callback = function (array $match) {
+ return rawurldecode($match[0]);
+ };
+
+ return
+ $uri->withPath(
+ preg_replace_callback($regex, $callback, $uri->getPath())
+ )->withQuery(
+ preg_replace_callback($regex, $callback, $uri->getQuery())
+ );
+ }
+
+ private function __construct()
+ {
+ // cannot be instantiated
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriResolver.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriResolver.php
new file mode 100644
index 00000000..c1cb8a27
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/UriResolver.php
@@ -0,0 +1,219 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\UriInterface;
+
+/**
+ * Resolves a URI reference in the context of a base URI and the opposite way.
+ *
+ * @author Tobias Schultze
+ *
+ * @link https://tools.ietf.org/html/rfc3986#section-5
+ */
+final class UriResolver
+{
+ /**
+ * Removes dot segments from a path and returns the new path.
+ *
+ * @param string $path
+ *
+ * @return string
+ * @link http://tools.ietf.org/html/rfc3986#section-5.2.4
+ */
+ public static function removeDotSegments($path)
+ {
+ if ($path === '' || $path === '/') {
+ return $path;
+ }
+
+ $results = [];
+ $segments = explode('/', $path);
+ foreach ($segments as $segment) {
+ if ($segment === '..') {
+ array_pop($results);
+ } elseif ($segment !== '.') {
+ $results[] = $segment;
+ }
+ }
+
+ $newPath = implode('/', $results);
+
+ if ($path[0] === '/' && (!isset($newPath[0]) || $newPath[0] !== '/')) {
+ // Re-add the leading slash if necessary for cases like "/.."
+ $newPath = '/' . $newPath;
+ } elseif ($newPath !== '' && ($segment === '.' || $segment === '..')) {
+ // Add the trailing slash if necessary
+ // If newPath is not empty, then $segment must be set and is the last segment from the foreach
+ $newPath .= '/';
+ }
+
+ return $newPath;
+ }
+
+ /**
+ * Converts the relative URI into a new URI that is resolved against the base URI.
+ *
+ * @param UriInterface $base Base URI
+ * @param UriInterface $rel Relative URI
+ *
+ * @return UriInterface
+ * @link http://tools.ietf.org/html/rfc3986#section-5.2
+ */
+ public static function resolve(UriInterface $base, UriInterface $rel)
+ {
+ if ((string) $rel === '') {
+ // we can simply return the same base URI instance for this same-document reference
+ return $base;
+ }
+
+ if ($rel->getScheme() != '') {
+ return $rel->withPath(self::removeDotSegments($rel->getPath()));
+ }
+
+ if ($rel->getAuthority() != '') {
+ $targetAuthority = $rel->getAuthority();
+ $targetPath = self::removeDotSegments($rel->getPath());
+ $targetQuery = $rel->getQuery();
+ } else {
+ $targetAuthority = $base->getAuthority();
+ if ($rel->getPath() === '') {
+ $targetPath = $base->getPath();
+ $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery();
+ } else {
+ if ($rel->getPath()[0] === '/') {
+ $targetPath = $rel->getPath();
+ } else {
+ if ($targetAuthority != '' && $base->getPath() === '') {
+ $targetPath = '/' . $rel->getPath();
+ } else {
+ $lastSlashPos = strrpos($base->getPath(), '/');
+ if ($lastSlashPos === false) {
+ $targetPath = $rel->getPath();
+ } else {
+ $targetPath = substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath();
+ }
+ }
+ }
+ $targetPath = self::removeDotSegments($targetPath);
+ $targetQuery = $rel->getQuery();
+ }
+ }
+
+ return new Uri(Uri::composeComponents(
+ $base->getScheme(),
+ $targetAuthority,
+ $targetPath,
+ $targetQuery,
+ $rel->getFragment()
+ ));
+ }
+
+ /**
+ * Returns the target URI as a relative reference from the base URI.
+ *
+ * This method is the counterpart to resolve():
+ *
+ * (string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target))
+ *
+ * One use-case is to use the current request URI as base URI and then generate relative links in your documents
+ * to reduce the document size or offer self-contained downloadable document archives.
+ *
+ * $base = new Uri('http://example.com/a/b/');
+ * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'.
+ * echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'.
+ * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'.
+ * echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'.
+ *
+ * This method also accepts a target that is already relative and will try to relativize it further. Only a
+ * relative-path reference will be returned as-is.
+ *
+ * echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well
+ *
+ * @param UriInterface $base Base URI
+ * @param UriInterface $target Target URI
+ *
+ * @return UriInterface The relative URI reference
+ */
+ public static function relativize(UriInterface $base, UriInterface $target)
+ {
+ if ($target->getScheme() !== '' &&
+ ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')
+ ) {
+ return $target;
+ }
+
+ if (Uri::isRelativePathReference($target)) {
+ // As the target is already highly relative we return it as-is. It would be possible to resolve
+ // the target with `$target = self::resolve($base, $target);` and then try make it more relative
+ // by removing a duplicate query. But let's not do that automatically.
+ return $target;
+ }
+
+ if ($target->getAuthority() !== '' && $base->getAuthority() !== $target->getAuthority()) {
+ return $target->withScheme('');
+ }
+
+ // We must remove the path before removing the authority because if the path starts with two slashes, the URI
+ // would turn invalid. And we also cannot set a relative path before removing the authority, as that is also
+ // invalid.
+ $emptyPathUri = $target->withScheme('')->withPath('')->withUserInfo('')->withPort(null)->withHost('');
+
+ if ($base->getPath() !== $target->getPath()) {
+ return $emptyPathUri->withPath(self::getRelativePath($base, $target));
+ }
+
+ if ($base->getQuery() === $target->getQuery()) {
+ // Only the target fragment is left. And it must be returned even if base and target fragment are the same.
+ return $emptyPathUri->withQuery('');
+ }
+
+ // If the base URI has a query but the target has none, we cannot return an empty path reference as it would
+ // inherit the base query component when resolving.
+ if ($target->getQuery() === '') {
+ $segments = explode('/', $target->getPath());
+ $lastSegment = end($segments);
+
+ return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment);
+ }
+
+ return $emptyPathUri;
+ }
+
+ private static function getRelativePath(UriInterface $base, UriInterface $target)
+ {
+ $sourceSegments = explode('/', $base->getPath());
+ $targetSegments = explode('/', $target->getPath());
+ array_pop($sourceSegments);
+ $targetLastSegment = array_pop($targetSegments);
+ foreach ($sourceSegments as $i => $segment) {
+ if (isset($targetSegments[$i]) && $segment === $targetSegments[$i]) {
+ unset($sourceSegments[$i], $targetSegments[$i]);
+ } else {
+ break;
+ }
+ }
+ $targetSegments[] = $targetLastSegment;
+ $relativePath = str_repeat('../', count($sourceSegments)) . implode('/', $targetSegments);
+
+ // A reference to am empty last segment or an empty first sub-segment must be prefixed with "./".
+ // This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used
+ // as the first segment of a relative-path reference, as it would be mistaken for a scheme name.
+ if ('' === $relativePath || false !== strpos(explode('/', $relativePath, 2)[0], ':')) {
+ $relativePath = "./$relativePath";
+ } elseif ('/' === $relativePath[0]) {
+ if ($base->getAuthority() != '' && $base->getPath() === '') {
+ // In this case an extra slash is added by resolve() automatically. So we must not add one here.
+ $relativePath = ".$relativePath";
+ } else {
+ $relativePath = "./$relativePath";
+ }
+ }
+
+ return $relativePath;
+ }
+
+ private function __construct()
+ {
+ // cannot be instantiated
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions.php
new file mode 100644
index 00000000..e40348d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions.php
@@ -0,0 +1,828 @@
+<?php
+namespace GuzzleHttp\Psr7;
+
+use Psr\Http\Message\MessageInterface;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
+use Psr\Http\Message\StreamInterface;
+use Psr\Http\Message\UriInterface;
+
+/**
+ * Returns the string representation of an HTTP message.
+ *
+ * @param MessageInterface $message Message to convert to a string.
+ *
+ * @return string
+ */
+function str(MessageInterface $message)
+{
+ if ($message instanceof RequestInterface) {
+ $msg = trim($message->getMethod() . ' '
+ . $message->getRequestTarget())
+ . ' HTTP/' . $message->getProtocolVersion();
+ if (!$message->hasHeader('host')) {
+ $msg .= "\r\nHost: " . $message->getUri()->getHost();
+ }
+ } elseif ($message instanceof ResponseInterface) {
+ $msg = 'HTTP/' . $message->getProtocolVersion() . ' '
+ . $message->getStatusCode() . ' '
+ . $message->getReasonPhrase();
+ } else {
+ throw new \InvalidArgumentException('Unknown message type');
+ }
+
+ foreach ($message->getHeaders() as $name => $values) {
+ $msg .= "\r\n{$name}: " . implode(', ', $values);
+ }
+
+ return "{$msg}\r\n\r\n" . $message->getBody();
+}
+
+/**
+ * Returns a UriInterface for the given value.
+ *
+ * This function accepts a string or {@see Psr\Http\Message\UriInterface} and
+ * returns a UriInterface for the given value. If the value is already a
+ * `UriInterface`, it is returned as-is.
+ *
+ * @param string|UriInterface $uri
+ *
+ * @return UriInterface
+ * @throws \InvalidArgumentException
+ */
+function uri_for($uri)
+{
+ if ($uri instanceof UriInterface) {
+ return $uri;
+ } elseif (is_string($uri)) {
+ return new Uri($uri);
+ }
+
+ throw new \InvalidArgumentException('URI must be a string or UriInterface');
+}
+
+/**
+ * Create a new stream based on the input type.
+ *
+ * Options is an associative array that can contain the following keys:
+ * - metadata: Array of custom metadata.
+ * - size: Size of the stream.
+ *
+ * @param resource|string|null|int|float|bool|StreamInterface|callable $resource Entity body data
+ * @param array $options Additional options
+ *
+ * @return Stream
+ * @throws \InvalidArgumentException if the $resource arg is not valid.
+ */
+function stream_for($resource = '', array $options = [])
+{
+ if (is_scalar($resource)) {
+ $stream = fopen('php://temp', 'r+');
+ if ($resource !== '') {
+ fwrite($stream, $resource);
+ fseek($stream, 0);
+ }
+ return new Stream($stream, $options);
+ }
+
+ switch (gettype($resource)) {
+ case 'resource':
+ return new Stream($resource, $options);
+ case 'object':
+ if ($resource instanceof StreamInterface) {
+ return $resource;
+ } elseif ($resource instanceof \Iterator) {
+ return new PumpStream(function () use ($resource) {
+ if (!$resource->valid()) {
+ return false;
+ }
+ $result = $resource->current();
+ $resource->next();
+ return $result;
+ }, $options);
+ } elseif (method_exists($resource, '__toString')) {
+ return stream_for((string) $resource, $options);
+ }
+ break;
+ case 'NULL':
+ return new Stream(fopen('php://temp', 'r+'), $options);
+ }
+
+ if (is_callable($resource)) {
+ return new PumpStream($resource, $options);
+ }
+
+ throw new \InvalidArgumentException('Invalid resource type: ' . gettype($resource));
+}
+
+/**
+ * Parse an array of header values containing ";" separated data into an
+ * array of associative arrays representing the header key value pair
+ * data of the header. When a parameter does not contain a value, but just
+ * contains a key, this function will inject a key with a '' string value.
+ *
+ * @param string|array $header Header to parse into components.
+ *
+ * @return array Returns the parsed header values.
+ */
+function parse_header($header)
+{
+ static $trimmed = "\"' \n\t\r";
+ $params = $matches = [];
+
+ foreach (normalize_header($header) as $val) {
+ $part = [];
+ foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) {
+ if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) {
+ $m = $matches[0];
+ if (isset($m[1])) {
+ $part[trim($m[0], $trimmed)] = trim($m[1], $trimmed);
+ } else {
+ $part[] = trim($m[0], $trimmed);
+ }
+ }
+ }
+ if ($part) {
+ $params[] = $part;
+ }
+ }
+
+ return $params;
+}
+
+/**
+ * Converts an array of header values that may contain comma separated
+ * headers into an array of headers with no comma separated values.
+ *
+ * @param string|array $header Header to normalize.
+ *
+ * @return array Returns the normalized header field values.
+ */
+function normalize_header($header)
+{
+ if (!is_array($header)) {
+ return array_map('trim', explode(',', $header));
+ }
+
+ $result = [];
+ foreach ($header as $value) {
+ foreach ((array) $value as $v) {
+ if (strpos($v, ',') === false) {
+ $result[] = $v;
+ continue;
+ }
+ foreach (preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $v) as $vv) {
+ $result[] = trim($vv);
+ }
+ }
+ }
+
+ return $result;
+}
+
+/**
+ * Clone and modify a request with the given changes.
+ *
+ * The changes can be one of:
+ * - method: (string) Changes the HTTP method.
+ * - set_headers: (array) Sets the given headers.
+ * - remove_headers: (array) Remove the given headers.
+ * - body: (mixed) Sets the given body.
+ * - uri: (UriInterface) Set the URI.
+ * - query: (string) Set the query string value of the URI.
+ * - version: (string) Set the protocol version.
+ *
+ * @param RequestInterface $request Request to clone and modify.
+ * @param array $changes Changes to apply.
+ *
+ * @return RequestInterface
+ */
+function modify_request(RequestInterface $request, array $changes)
+{
+ if (!$changes) {
+ return $request;
+ }
+
+ $headers = $request->getHeaders();
+
+ if (!isset($changes['uri'])) {
+ $uri = $request->getUri();
+ } else {
+ // Remove the host header if one is on the URI
+ if ($host = $changes['uri']->getHost()) {
+ $changes['set_headers']['Host'] = $host;
+
+ if ($port = $changes['uri']->getPort()) {
+ $standardPorts = ['http' => 80, 'https' => 443];
+ $scheme = $changes['uri']->getScheme();
+ if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) {
+ $changes['set_headers']['Host'] .= ':'.$port;
+ }
+ }
+ }
+ $uri = $changes['uri'];
+ }
+
+ if (!empty($changes['remove_headers'])) {
+ $headers = _caseless_remove($changes['remove_headers'], $headers);
+ }
+
+ if (!empty($changes['set_headers'])) {
+ $headers = _caseless_remove(array_keys($changes['set_headers']), $headers);
+ $headers = $changes['set_headers'] + $headers;
+ }
+
+ if (isset($changes['query'])) {
+ $uri = $uri->withQuery($changes['query']);
+ }
+
+ if ($request instanceof ServerRequestInterface) {
+ return new ServerRequest(
+ isset($changes['method']) ? $changes['method'] : $request->getMethod(),
+ $uri,
+ $headers,
+ isset($changes['body']) ? $changes['body'] : $request->getBody(),
+ isset($changes['version'])
+ ? $changes['version']
+ : $request->getProtocolVersion(),
+ $request->getServerParams()
+ );
+ }
+
+ return new Request(
+ isset($changes['method']) ? $changes['method'] : $request->getMethod(),
+ $uri,
+ $headers,
+ isset($changes['body']) ? $changes['body'] : $request->getBody(),
+ isset($changes['version'])
+ ? $changes['version']
+ : $request->getProtocolVersion()
+ );
+}
+
+/**
+ * Attempts to rewind a message body and throws an exception on failure.
+ *
+ * The body of the message will only be rewound if a call to `tell()` returns a
+ * value other than `0`.
+ *
+ * @param MessageInterface $message Message to rewind
+ *
+ * @throws \RuntimeException
+ */
+function rewind_body(MessageInterface $message)
+{
+ $body = $message->getBody();
+
+ if ($body->tell()) {
+ $body->rewind();
+ }
+}
+
+/**
+ * Safely opens a PHP stream resource using a filename.
+ *
+ * When fopen fails, PHP normally raises a warning. This function adds an
+ * error handler that checks for errors and throws an exception instead.
+ *
+ * @param string $filename File to open
+ * @param string $mode Mode used to open the file
+ *
+ * @return resource
+ * @throws \RuntimeException if the file cannot be opened
+ */
+function try_fopen($filename, $mode)
+{
+ $ex = null;
+ set_error_handler(function () use ($filename, $mode, &$ex) {
+ $ex = new \RuntimeException(sprintf(
+ 'Unable to open %s using mode %s: %s',
+ $filename,
+ $mode,
+ func_get_args()[1]
+ ));
+ });
+
+ $handle = fopen($filename, $mode);
+ restore_error_handler();
+
+ if ($ex) {
+ /** @var $ex \RuntimeException */
+ throw $ex;
+ }
+
+ return $handle;
+}
+
+/**
+ * Copy the contents of a stream into a string until the given number of
+ * bytes have been read.
+ *
+ * @param StreamInterface $stream Stream to read
+ * @param int $maxLen Maximum number of bytes to read. Pass -1
+ * to read the entire stream.
+ * @return string
+ * @throws \RuntimeException on error.
+ */
+function copy_to_string(StreamInterface $stream, $maxLen = -1)
+{
+ $buffer = '';
+
+ if ($maxLen === -1) {
+ while (!$stream->eof()) {
+ $buf = $stream->read(1048576);
+ // Using a loose equality here to match on '' and false.
+ if ($buf == null) {
+ break;
+ }
+ $buffer .= $buf;
+ }
+ return $buffer;
+ }
+
+ $len = 0;
+ while (!$stream->eof() && $len < $maxLen) {
+ $buf = $stream->read($maxLen - $len);
+ // Using a loose equality here to match on '' and false.
+ if ($buf == null) {
+ break;
+ }
+ $buffer .= $buf;
+ $len = strlen($buffer);
+ }
+
+ return $buffer;
+}
+
+/**
+ * Copy the contents of a stream into another stream until the given number
+ * of bytes have been read.
+ *
+ * @param StreamInterface $source Stream to read from
+ * @param StreamInterface $dest Stream to write to
+ * @param int $maxLen Maximum number of bytes to read. Pass -1
+ * to read the entire stream.
+ *
+ * @throws \RuntimeException on error.
+ */
+function copy_to_stream(
+ StreamInterface $source,
+ StreamInterface $dest,
+ $maxLen = -1
+) {
+ $bufferSize = 8192;
+
+ if ($maxLen === -1) {
+ while (!$source->eof()) {
+ if (!$dest->write($source->read($bufferSize))) {
+ break;
+ }
+ }
+ } else {
+ $remaining = $maxLen;
+ while ($remaining > 0 && !$source->eof()) {
+ $buf = $source->read(min($bufferSize, $remaining));
+ $len = strlen($buf);
+ if (!$len) {
+ break;
+ }
+ $remaining -= $len;
+ $dest->write($buf);
+ }
+ }
+}
+
+/**
+ * Calculate a hash of a Stream
+ *
+ * @param StreamInterface $stream Stream to calculate the hash for
+ * @param string $algo Hash algorithm (e.g. md5, crc32, etc)
+ * @param bool $rawOutput Whether or not to use raw output
+ *
+ * @return string Returns the hash of the stream
+ * @throws \RuntimeException on error.
+ */
+function hash(
+ StreamInterface $stream,
+ $algo,
+ $rawOutput = false
+) {
+ $pos = $stream->tell();
+
+ if ($pos > 0) {
+ $stream->rewind();
+ }
+
+ $ctx = hash_init($algo);
+ while (!$stream->eof()) {
+ hash_update($ctx, $stream->read(1048576));
+ }
+
+ $out = hash_final($ctx, (bool) $rawOutput);
+ $stream->seek($pos);
+
+ return $out;
+}
+
+/**
+ * Read a line from the stream up to the maximum allowed buffer length
+ *
+ * @param StreamInterface $stream Stream to read from
+ * @param int $maxLength Maximum buffer length
+ *
+ * @return string|bool
+ */
+function readline(StreamInterface $stream, $maxLength = null)
+{
+ $buffer = '';
+ $size = 0;
+
+ while (!$stream->eof()) {
+ // Using a loose equality here to match on '' and false.
+ if (null == ($byte = $stream->read(1))) {
+ return $buffer;
+ }
+ $buffer .= $byte;
+ // Break when a new line is found or the max length - 1 is reached
+ if ($byte === "\n" || ++$size === $maxLength - 1) {
+ break;
+ }
+ }
+
+ return $buffer;
+}
+
+/**
+ * Parses a request message string into a request object.
+ *
+ * @param string $message Request message string.
+ *
+ * @return Request
+ */
+function parse_request($message)
+{
+ $data = _parse_message($message);
+ $matches = [];
+ if (!preg_match('/^[\S]+\s+([a-zA-Z]+:\/\/|\/).*/', $data['start-line'], $matches)) {
+ throw new \InvalidArgumentException('Invalid request string');
+ }
+ $parts = explode(' ', $data['start-line'], 3);
+ $version = isset($parts[2]) ? explode('/', $parts[2])[1] : '1.1';
+
+ $request = new Request(
+ $parts[0],
+ $matches[1] === '/' ? _parse_request_uri($parts[1], $data['headers']) : $parts[1],
+ $data['headers'],
+ $data['body'],
+ $version
+ );
+
+ return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]);
+}
+
+/**
+ * Parses a response message string into a response object.
+ *
+ * @param string $message Response message string.
+ *
+ * @return Response
+ */
+function parse_response($message)
+{
+ $data = _parse_message($message);
+ // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space
+ // between status-code and reason-phrase is required. But browsers accept
+ // responses without space and reason as well.
+ if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) {
+ throw new \InvalidArgumentException('Invalid response string');
+ }
+ $parts = explode(' ', $data['start-line'], 3);
+
+ return new Response(
+ $parts[1],
+ $data['headers'],
+ $data['body'],
+ explode('/', $parts[0])[1],
+ isset($parts[2]) ? $parts[2] : null
+ );
+}
+
+/**
+ * Parse a query string into an associative array.
+ *
+ * If multiple values are found for the same key, the value of that key
+ * value pair will become an array. This function does not parse nested
+ * PHP style arrays into an associative array (e.g., foo[a]=1&foo[b]=2 will
+ * be parsed into ['foo[a]' => '1', 'foo[b]' => '2']).
+ *
+ * @param string $str Query string to parse
+ * @param bool|string $urlEncoding How the query string is encoded
+ *
+ * @return array
+ */
+function parse_query($str, $urlEncoding = true)
+{
+ $result = [];
+
+ if ($str === '') {
+ return $result;
+ }
+
+ if ($urlEncoding === true) {
+ $decoder = function ($value) {
+ return rawurldecode(str_replace('+', ' ', $value));
+ };
+ } elseif ($urlEncoding == PHP_QUERY_RFC3986) {
+ $decoder = 'rawurldecode';
+ } elseif ($urlEncoding == PHP_QUERY_RFC1738) {
+ $decoder = 'urldecode';
+ } else {
+ $decoder = function ($str) { return $str; };
+ }
+
+ foreach (explode('&', $str) as $kvp) {
+ $parts = explode('=', $kvp, 2);
+ $key = $decoder($parts[0]);
+ $value = isset($parts[1]) ? $decoder($parts[1]) : null;
+ if (!isset($result[$key])) {
+ $result[$key] = $value;
+ } else {
+ if (!is_array($result[$key])) {
+ $result[$key] = [$result[$key]];
+ }
+ $result[$key][] = $value;
+ }
+ }
+
+ return $result;
+}
+
+/**
+ * Build a query string from an array of key value pairs.
+ *
+ * This function can use the return value of parse_query() to build a query
+ * string. This function does not modify the provided keys when an array is
+ * encountered (like http_build_query would).
+ *
+ * @param array $params Query string parameters.
+ * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986
+ * to encode using RFC3986, or PHP_QUERY_RFC1738
+ * to encode using RFC1738.
+ * @return string
+ */
+function build_query(array $params, $encoding = PHP_QUERY_RFC3986)
+{
+ if (!$params) {
+ return '';
+ }
+
+ if ($encoding === false) {
+ $encoder = function ($str) { return $str; };
+ } elseif ($encoding === PHP_QUERY_RFC3986) {
+ $encoder = 'rawurlencode';
+ } elseif ($encoding === PHP_QUERY_RFC1738) {
+ $encoder = 'urlencode';
+ } else {
+ throw new \InvalidArgumentException('Invalid type');
+ }
+
+ $qs = '';
+ foreach ($params as $k => $v) {
+ $k = $encoder($k);
+ if (!is_array($v)) {
+ $qs .= $k;
+ if ($v !== null) {
+ $qs .= '=' . $encoder($v);
+ }
+ $qs .= '&';
+ } else {
+ foreach ($v as $vv) {
+ $qs .= $k;
+ if ($vv !== null) {
+ $qs .= '=' . $encoder($vv);
+ }
+ $qs .= '&';
+ }
+ }
+ }
+
+ return $qs ? (string) substr($qs, 0, -1) : '';
+}
+
+/**
+ * Determines the mimetype of a file by looking at its extension.
+ *
+ * @param $filename
+ *
+ * @return null|string
+ */
+function mimetype_from_filename($filename)
+{
+ return mimetype_from_extension(pathinfo($filename, PATHINFO_EXTENSION));
+}
+
+/**
+ * Maps a file extensions to a mimetype.
+ *
+ * @param $extension string The file extension.
+ *
+ * @return string|null
+ * @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types
+ */
+function mimetype_from_extension($extension)
+{
+ static $mimetypes = [
+ '7z' => 'application/x-7z-compressed',
+ 'aac' => 'audio/x-aac',
+ 'ai' => 'application/postscript',
+ 'aif' => 'audio/x-aiff',
+ 'asc' => 'text/plain',
+ 'asf' => 'video/x-ms-asf',
+ 'atom' => 'application/atom+xml',
+ 'avi' => 'video/x-msvideo',
+ 'bmp' => 'image/bmp',
+ 'bz2' => 'application/x-bzip2',
+ 'cer' => 'application/pkix-cert',
+ 'crl' => 'application/pkix-crl',
+ 'crt' => 'application/x-x509-ca-cert',
+ 'css' => 'text/css',
+ 'csv' => 'text/csv',
+ 'cu' => 'application/cu-seeme',
+ 'deb' => 'application/x-debian-package',
+ 'doc' => 'application/msword',
+ 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
+ 'dvi' => 'application/x-dvi',
+ 'eot' => 'application/vnd.ms-fontobject',
+ 'eps' => 'application/postscript',
+ 'epub' => 'application/epub+zip',
+ 'etx' => 'text/x-setext',
+ 'flac' => 'audio/flac',
+ 'flv' => 'video/x-flv',
+ 'gif' => 'image/gif',
+ 'gz' => 'application/gzip',
+ 'htm' => 'text/html',
+ 'html' => 'text/html',
+ 'ico' => 'image/x-icon',
+ 'ics' => 'text/calendar',
+ 'ini' => 'text/plain',
+ 'iso' => 'application/x-iso9660-image',
+ 'jar' => 'application/java-archive',
+ 'jpe' => 'image/jpeg',
+ 'jpeg' => 'image/jpeg',
+ 'jpg' => 'image/jpeg',
+ 'js' => 'text/javascript',
+ 'json' => 'application/json',
+ 'latex' => 'application/x-latex',
+ 'log' => 'text/plain',
+ 'm4a' => 'audio/mp4',
+ 'm4v' => 'video/mp4',
+ 'mid' => 'audio/midi',
+ 'midi' => 'audio/midi',
+ 'mov' => 'video/quicktime',
+ 'mp3' => 'audio/mpeg',
+ 'mp4' => 'video/mp4',
+ 'mp4a' => 'audio/mp4',
+ 'mp4v' => 'video/mp4',
+ 'mpe' => 'video/mpeg',
+ 'mpeg' => 'video/mpeg',
+ 'mpg' => 'video/mpeg',
+ 'mpg4' => 'video/mp4',
+ 'oga' => 'audio/ogg',
+ 'ogg' => 'audio/ogg',
+ 'ogv' => 'video/ogg',
+ 'ogx' => 'application/ogg',
+ 'pbm' => 'image/x-portable-bitmap',
+ 'pdf' => 'application/pdf',
+ 'pgm' => 'image/x-portable-graymap',
+ 'png' => 'image/png',
+ 'pnm' => 'image/x-portable-anymap',
+ 'ppm' => 'image/x-portable-pixmap',
+ 'ppt' => 'application/vnd.ms-powerpoint',
+ 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
+ 'ps' => 'application/postscript',
+ 'qt' => 'video/quicktime',
+ 'rar' => 'application/x-rar-compressed',
+ 'ras' => 'image/x-cmu-raster',
+ 'rss' => 'application/rss+xml',
+ 'rtf' => 'application/rtf',
+ 'sgm' => 'text/sgml',
+ 'sgml' => 'text/sgml',
+ 'svg' => 'image/svg+xml',
+ 'swf' => 'application/x-shockwave-flash',
+ 'tar' => 'application/x-tar',
+ 'tif' => 'image/tiff',
+ 'tiff' => 'image/tiff',
+ 'torrent' => 'application/x-bittorrent',
+ 'ttf' => 'application/x-font-ttf',
+ 'txt' => 'text/plain',
+ 'wav' => 'audio/x-wav',
+ 'webm' => 'video/webm',
+ 'wma' => 'audio/x-ms-wma',
+ 'wmv' => 'video/x-ms-wmv',
+ 'woff' => 'application/x-font-woff',
+ 'wsdl' => 'application/wsdl+xml',
+ 'xbm' => 'image/x-xbitmap',
+ 'xls' => 'application/vnd.ms-excel',
+ 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
+ 'xml' => 'application/xml',
+ 'xpm' => 'image/x-xpixmap',
+ 'xwd' => 'image/x-xwindowdump',
+ 'yaml' => 'text/yaml',
+ 'yml' => 'text/yaml',
+ 'zip' => 'application/zip',
+ ];
+
+ $extension = strtolower($extension);
+
+ return isset($mimetypes[$extension])
+ ? $mimetypes[$extension]
+ : null;
+}
+
+/**
+ * Parses an HTTP message into an associative array.
+ *
+ * The array contains the "start-line" key containing the start line of
+ * the message, "headers" key containing an associative array of header
+ * array values, and a "body" key containing the body of the message.
+ *
+ * @param string $message HTTP request or response to parse.
+ *
+ * @return array
+ * @internal
+ */
+function _parse_message($message)
+{
+ if (!$message) {
+ throw new \InvalidArgumentException('Invalid message');
+ }
+
+ // Iterate over each line in the message, accounting for line endings
+ $lines = preg_split('/(\\r?\\n)/', $message, -1, PREG_SPLIT_DELIM_CAPTURE);
+ $result = ['start-line' => array_shift($lines), 'headers' => [], 'body' => ''];
+ array_shift($lines);
+
+ for ($i = 0, $totalLines = count($lines); $i < $totalLines; $i += 2) {
+ $line = $lines[$i];
+ // If two line breaks were encountered, then this is the end of body
+ if (empty($line)) {
+ if ($i < $totalLines - 1) {
+ $result['body'] = implode('', array_slice($lines, $i + 2));
+ }
+ break;
+ }
+ if (strpos($line, ':')) {
+ $parts = explode(':', $line, 2);
+ $key = trim($parts[0]);
+ $value = isset($parts[1]) ? trim($parts[1]) : '';
+ $result['headers'][$key][] = $value;
+ }
+ }
+
+ return $result;
+}
+
+/**
+ * Constructs a URI for an HTTP request message.
+ *
+ * @param string $path Path from the start-line
+ * @param array $headers Array of headers (each value an array).
+ *
+ * @return string
+ * @internal
+ */
+function _parse_request_uri($path, array $headers)
+{
+ $hostKey = array_filter(array_keys($headers), function ($k) {
+ return strtolower($k) === 'host';
+ });
+
+ // If no host is found, then a full URI cannot be constructed.
+ if (!$hostKey) {
+ return $path;
+ }
+
+ $host = $headers[reset($hostKey)][0];
+ $scheme = substr($host, -4) === ':443' ? 'https' : 'http';
+
+ return $scheme . '://' . $host . '/' . ltrim($path, '/');
+}
+
+/** @internal */
+function _caseless_remove($keys, array $data)
+{
+ $result = [];
+
+ foreach ($keys as &$key) {
+ $key = strtolower($key);
+ }
+
+ foreach ($data as $k => $v) {
+ if (!in_array(strtolower($k), $keys)) {
+ $result[$k] = $v;
+ }
+ }
+
+ return $result;
+}
diff --git a/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions_include.php b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions_include.php
new file mode 100644
index 00000000..96a4a83a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/guzzlehttp/psr7/src/functions_include.php
@@ -0,0 +1,6 @@
+<?php
+
+// Don't redefine the functions if included multiple times.
+if (!function_exists('GuzzleHttp\Psr7\str')) {
+ require __DIR__ . '/functions.php';
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/.php_cs b/mayor-orig/www/include/share/googleapi/monolog/monolog/.php_cs
new file mode 100644
index 00000000..366ccd08
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/.php_cs
@@ -0,0 +1,59 @@
+<?php
+
+$header = <<<EOF
+This file is part of the Monolog package.
+
+(c) Jordi Boggiano <j.boggiano@seld.be>
+
+For the full copyright and license information, please view the LICENSE
+file that was distributed with this source code.
+EOF;
+
+$finder = Symfony\CS\Finder::create()
+ ->files()
+ ->name('*.php')
+ ->exclude('Fixtures')
+ ->in(__DIR__.'/src')
+ ->in(__DIR__.'/tests')
+;
+
+return Symfony\CS\Config::create()
+ ->setUsingCache(true)
+ //->setUsingLinter(false)
+ ->setRiskyAllowed(true)
+ ->setRules(array(
+ '@PSR2' => true,
+ 'binary_operator_spaces' => true,
+ 'blank_line_before_return' => true,
+ 'header_comment' => array('header' => $header),
+ 'include' => true,
+ 'long_array_syntax' => true,
+ 'method_separation' => true,
+ 'no_blank_lines_after_class_opening' => true,
+ 'no_blank_lines_after_phpdoc' => true,
+ 'no_blank_lines_between_uses' => true,
+ 'no_duplicate_semicolons' => true,
+ 'no_extra_consecutive_blank_lines' => true,
+ 'no_leading_import_slash' => true,
+ 'no_leading_namespace_whitespace' => true,
+ 'no_trailing_comma_in_singleline_array' => true,
+ 'no_unused_imports' => true,
+ 'object_operator_without_whitespace' => true,
+ 'phpdoc_align' => true,
+ 'phpdoc_indent' => true,
+ 'phpdoc_no_access' => true,
+ 'phpdoc_no_package' => true,
+ 'phpdoc_order' => true,
+ 'phpdoc_scalar' => true,
+ 'phpdoc_trim' => true,
+ 'phpdoc_type_to_var' => true,
+ 'psr0' => true,
+ 'single_blank_line_before_namespace' => true,
+ 'spaces_cast' => true,
+ 'standardize_not_equals' => true,
+ 'ternary_operator_spaces' => true,
+ 'trailing_comma_in_multiline_array' => true,
+ 'whitespacy_lines' => true,
+ ))
+ ->finder($finder)
+;
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/CHANGELOG.md b/mayor-orig/www/include/share/googleapi/monolog/monolog/CHANGELOG.md
new file mode 100644
index 00000000..cd1142d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/CHANGELOG.md
@@ -0,0 +1,342 @@
+### 1.23.0 (2017-06-19)
+
+ * Improved SyslogUdpHandler's support for RFC5424 and added optional `$ident` argument
+ * Fixed GelfHandler truncation to be per field and not per message
+ * Fixed compatibility issue with PHP <5.3.6
+ * Fixed support for headless Chrome in ChromePHPHandler
+ * Fixed support for latest Aws SDK in DynamoDbHandler
+ * Fixed support for SwiftMailer 6.0+ in SwiftMailerHandler
+
+### 1.22.1 (2017-03-13)
+
+ * Fixed lots of minor issues in the new Slack integrations
+ * Fixed support for allowInlineLineBreaks in LineFormatter when formatting exception backtraces
+
+### 1.22.0 (2016-11-26)
+
+ * Added SlackbotHandler and SlackWebhookHandler to set up Slack integration more easily
+ * Added MercurialProcessor to add mercurial revision and branch names to log records
+ * Added support for AWS SDK v3 in DynamoDbHandler
+ * Fixed fatal errors occuring when normalizing generators that have been fully consumed
+ * Fixed RollbarHandler to include a level (rollbar level), monolog_level (original name), channel and datetime (unix)
+ * Fixed RollbarHandler not flushing records automatically, calling close() explicitly is not necessary anymore
+ * Fixed SyslogUdpHandler to avoid sending empty frames
+ * Fixed a few PHP 7.0 and 7.1 compatibility issues
+
+### 1.21.0 (2016-07-29)
+
+ * Break: Reverted the addition of $context when the ErrorHandler handles regular php errors from 1.20.0 as it was causing issues
+ * Added support for more formats in RotatingFileHandler::setFilenameFormat as long as they have Y, m and d in order
+ * Added ability to format the main line of text the SlackHandler sends by explictly setting a formatter on the handler
+ * Added information about SoapFault instances in NormalizerFormatter
+ * Added $handleOnlyReportedErrors option on ErrorHandler::registerErrorHandler (default true) to allow logging of all errors no matter the error_reporting level
+
+### 1.20.0 (2016-07-02)
+
+ * Added FingersCrossedHandler::activate() to manually trigger the handler regardless of the activation policy
+ * Added StreamHandler::getUrl to retrieve the stream's URL
+ * Added ability to override addRow/addTitle in HtmlFormatter
+ * Added the $context to context information when the ErrorHandler handles a regular php error
+ * Deprecated RotatingFileHandler::setFilenameFormat to only support 3 formats: Y, Y-m and Y-m-d
+ * Fixed WhatFailureGroupHandler to work with PHP7 throwables
+ * Fixed a few minor bugs
+
+### 1.19.0 (2016-04-12)
+
+ * Break: StreamHandler will not close streams automatically that it does not own. If you pass in a stream (not a path/url), then it will not close it for you. You can retrieve those using getStream() if needed
+ * Added DeduplicationHandler to remove duplicate records from notifications across multiple requests, useful for email or other notifications on errors
+ * Added ability to use `%message%` and other LineFormatter replacements in the subject line of emails sent with NativeMailHandler and SwiftMailerHandler
+ * Fixed HipChatHandler handling of long messages
+
+### 1.18.2 (2016-04-02)
+
+ * Fixed ElasticaFormatter to use more precise dates
+ * Fixed GelfMessageFormatter sending too long messages
+
+### 1.18.1 (2016-03-13)
+
+ * Fixed SlackHandler bug where slack dropped messages randomly
+ * Fixed RedisHandler issue when using with the PHPRedis extension
+ * Fixed AmqpHandler content-type being incorrectly set when using with the AMQP extension
+ * Fixed BrowserConsoleHandler regression
+
+### 1.18.0 (2016-03-01)
+
+ * Added optional reduction of timestamp precision via `Logger->useMicrosecondTimestamps(false)`, disabling it gets you a bit of performance boost but reduces the precision to the second instead of microsecond
+ * Added possibility to skip some extra stack frames in IntrospectionProcessor if you have some library wrapping Monolog that is always adding frames
+ * Added `Logger->withName` to clone a logger (keeping all handlers) with a new name
+ * Added FluentdFormatter for the Fluentd unix socket protocol
+ * Added HandlerWrapper base class to ease the creation of handler wrappers, just extend it and override as needed
+ * Added support for replacing context sub-keys using `%context.*%` in LineFormatter
+ * Added support for `payload` context value in RollbarHandler
+ * Added setRelease to RavenHandler to describe the application version, sent with every log
+ * Added support for `fingerprint` context value in RavenHandler
+ * Fixed JSON encoding errors that would gobble up the whole log record, we now handle those more gracefully by dropping chars as needed
+ * Fixed write timeouts in SocketHandler and derivatives, set to 10sec by default, lower it with `setWritingTimeout()`
+ * Fixed PHP7 compatibility with regard to Exception/Throwable handling in a few places
+
+### 1.17.2 (2015-10-14)
+
+ * Fixed ErrorHandler compatibility with non-Monolog PSR-3 loggers
+ * Fixed SlackHandler handling to use slack functionalities better
+ * Fixed SwiftMailerHandler bug when sending multiple emails they all had the same id
+ * Fixed 5.3 compatibility regression
+
+### 1.17.1 (2015-08-31)
+
+ * Fixed RollbarHandler triggering PHP notices
+
+### 1.17.0 (2015-08-30)
+
+ * Added support for `checksum` and `release` context/extra values in RavenHandler
+ * Added better support for exceptions in RollbarHandler
+ * Added UidProcessor::getUid
+ * Added support for showing the resource type in NormalizedFormatter
+ * Fixed IntrospectionProcessor triggering PHP notices
+
+### 1.16.0 (2015-08-09)
+
+ * Added IFTTTHandler to notify ifttt.com triggers
+ * Added Logger::setHandlers() to allow setting/replacing all handlers
+ * Added $capSize in RedisHandler to cap the log size
+ * Fixed StreamHandler creation of directory to only trigger when the first log write happens
+ * Fixed bug in the handling of curl failures
+ * Fixed duplicate logging of fatal errors when both error and fatal error handlers are registered in monolog's ErrorHandler
+ * Fixed missing fatal errors records with handlers that need to be closed to flush log records
+ * Fixed TagProcessor::addTags support for associative arrays
+
+### 1.15.0 (2015-07-12)
+
+ * Added addTags and setTags methods to change a TagProcessor
+ * Added automatic creation of directories if they are missing for a StreamHandler to open a log file
+ * Added retry functionality to Loggly, Cube and Mandrill handlers so they retry up to 5 times in case of network failure
+ * Fixed process exit code being incorrectly reset to 0 if ErrorHandler::registerExceptionHandler was used
+ * Fixed HTML/JS escaping in BrowserConsoleHandler
+ * Fixed JSON encoding errors being silently suppressed (PHP 5.5+ only)
+
+### 1.14.0 (2015-06-19)
+
+ * Added PHPConsoleHandler to send record to Chrome's PHP Console extension and library
+ * Added support for objects implementing __toString in the NormalizerFormatter
+ * Added support for HipChat's v2 API in HipChatHandler
+ * Added Logger::setTimezone() to initialize the timezone monolog should use in case date.timezone isn't correct for your app
+ * Added an option to send formatted message instead of the raw record on PushoverHandler via ->useFormattedMessage(true)
+ * Fixed curl errors being silently suppressed
+
+### 1.13.1 (2015-03-09)
+
+ * Fixed regression in HipChat requiring a new token to be created
+
+### 1.13.0 (2015-03-05)
+
+ * Added Registry::hasLogger to check for the presence of a logger instance
+ * Added context.user support to RavenHandler
+ * Added HipChat API v2 support in the HipChatHandler
+ * Added NativeMailerHandler::addParameter to pass params to the mail() process
+ * Added context data to SlackHandler when $includeContextAndExtra is true
+ * Added ability to customize the Swift_Message per-email in SwiftMailerHandler
+ * Fixed SwiftMailerHandler to lazily create message instances if a callback is provided
+ * Fixed serialization of INF and NaN values in Normalizer and LineFormatter
+
+### 1.12.0 (2014-12-29)
+
+ * Break: HandlerInterface::isHandling now receives a partial record containing only a level key. This was always the intent and does not break any Monolog handler but is strictly speaking a BC break and you should check if you relied on any other field in your own handlers.
+ * Added PsrHandler to forward records to another PSR-3 logger
+ * Added SamplingHandler to wrap around a handler and include only every Nth record
+ * Added MongoDBFormatter to support better storage with MongoDBHandler (it must be enabled manually for now)
+ * Added exception codes in the output of most formatters
+ * Added LineFormatter::includeStacktraces to enable exception stack traces in logs (uses more than one line)
+ * Added $useShortAttachment to SlackHandler to minify attachment size and $includeExtra to append extra data
+ * Added $host to HipChatHandler for users of private instances
+ * Added $transactionName to NewRelicHandler and support for a transaction_name context value
+ * Fixed MandrillHandler to avoid outputing API call responses
+ * Fixed some non-standard behaviors in SyslogUdpHandler
+
+### 1.11.0 (2014-09-30)
+
+ * Break: The NewRelicHandler extra and context data are now prefixed with extra_ and context_ to avoid clashes. Watch out if you have scripts reading those from the API and rely on names
+ * Added WhatFailureGroupHandler to suppress any exception coming from the wrapped handlers and avoid chain failures if a logging service fails
+ * Added MandrillHandler to send emails via the Mandrillapp.com API
+ * Added SlackHandler to log records to a Slack.com account
+ * Added FleepHookHandler to log records to a Fleep.io account
+ * Added LogglyHandler::addTag to allow adding tags to an existing handler
+ * Added $ignoreEmptyContextAndExtra to LineFormatter to avoid empty [] at the end
+ * Added $useLocking to StreamHandler and RotatingFileHandler to enable flock() while writing
+ * Added support for PhpAmqpLib in the AmqpHandler
+ * Added FingersCrossedHandler::clear and BufferHandler::clear to reset them between batches in long running jobs
+ * Added support for adding extra fields from $_SERVER in the WebProcessor
+ * Fixed support for non-string values in PrsLogMessageProcessor
+ * Fixed SwiftMailer messages being sent with the wrong date in long running scripts
+ * Fixed minor PHP 5.6 compatibility issues
+ * Fixed BufferHandler::close being called twice
+
+### 1.10.0 (2014-06-04)
+
+ * Added Logger::getHandlers() and Logger::getProcessors() methods
+ * Added $passthruLevel argument to FingersCrossedHandler to let it always pass some records through even if the trigger level is not reached
+ * Added support for extra data in NewRelicHandler
+ * Added $expandNewlines flag to the ErrorLogHandler to create multiple log entries when a message has multiple lines
+
+### 1.9.1 (2014-04-24)
+
+ * Fixed regression in RotatingFileHandler file permissions
+ * Fixed initialization of the BufferHandler to make sure it gets flushed after receiving records
+ * Fixed ChromePHPHandler and FirePHPHandler's activation strategies to be more conservative
+
+### 1.9.0 (2014-04-20)
+
+ * Added LogEntriesHandler to send logs to a LogEntries account
+ * Added $filePermissions to tweak file mode on StreamHandler and RotatingFileHandler
+ * Added $useFormatting flag to MemoryProcessor to make it send raw data in bytes
+ * Added support for table formatting in FirePHPHandler via the table context key
+ * Added a TagProcessor to add tags to records, and support for tags in RavenHandler
+ * Added $appendNewline flag to the JsonFormatter to enable using it when logging to files
+ * Added sound support to the PushoverHandler
+ * Fixed multi-threading support in StreamHandler
+ * Fixed empty headers issue when ChromePHPHandler received no records
+ * Fixed default format of the ErrorLogHandler
+
+### 1.8.0 (2014-03-23)
+
+ * Break: the LineFormatter now strips newlines by default because this was a bug, set $allowInlineLineBreaks to true if you need them
+ * Added BrowserConsoleHandler to send logs to any browser's console via console.log() injection in the output
+ * Added FilterHandler to filter records and only allow those of a given list of levels through to the wrapped handler
+ * Added FlowdockHandler to send logs to a Flowdock account
+ * Added RollbarHandler to send logs to a Rollbar account
+ * Added HtmlFormatter to send prettier log emails with colors for each log level
+ * Added GitProcessor to add the current branch/commit to extra record data
+ * Added a Monolog\Registry class to allow easier global access to pre-configured loggers
+ * Added support for the new official graylog2/gelf-php lib for GelfHandler, upgrade if you can by replacing the mlehner/gelf-php requirement
+ * Added support for HHVM
+ * Added support for Loggly batch uploads
+ * Added support for tweaking the content type and encoding in NativeMailerHandler
+ * Added $skipClassesPartials to tweak the ignored classes in the IntrospectionProcessor
+ * Fixed batch request support in GelfHandler
+
+### 1.7.0 (2013-11-14)
+
+ * Added ElasticSearchHandler to send logs to an Elastic Search server
+ * Added DynamoDbHandler and ScalarFormatter to send logs to Amazon's Dynamo DB
+ * Added SyslogUdpHandler to send logs to a remote syslogd server
+ * Added LogglyHandler to send logs to a Loggly account
+ * Added $level to IntrospectionProcessor so it only adds backtraces when needed
+ * Added $version to LogstashFormatter to allow using the new v1 Logstash format
+ * Added $appName to NewRelicHandler
+ * Added configuration of Pushover notification retries/expiry
+ * Added $maxColumnWidth to NativeMailerHandler to change the 70 chars default
+ * Added chainability to most setters for all handlers
+ * Fixed RavenHandler batch processing so it takes the message from the record with highest priority
+ * Fixed HipChatHandler batch processing so it sends all messages at once
+ * Fixed issues with eAccelerator
+ * Fixed and improved many small things
+
+### 1.6.0 (2013-07-29)
+
+ * Added HipChatHandler to send logs to a HipChat chat room
+ * Added ErrorLogHandler to send logs to PHP's error_log function
+ * Added NewRelicHandler to send logs to NewRelic's service
+ * Added Monolog\ErrorHandler helper class to register a Logger as exception/error/fatal handler
+ * Added ChannelLevelActivationStrategy for the FingersCrossedHandler to customize levels by channel
+ * Added stack traces output when normalizing exceptions (json output & co)
+ * Added Monolog\Logger::API constant (currently 1)
+ * Added support for ChromePHP's v4.0 extension
+ * Added support for message priorities in PushoverHandler, see $highPriorityLevel and $emergencyLevel
+ * Added support for sending messages to multiple users at once with the PushoverHandler
+ * Fixed RavenHandler's support for batch sending of messages (when behind a Buffer or FingersCrossedHandler)
+ * Fixed normalization of Traversables with very large data sets, only the first 1000 items are shown now
+ * Fixed issue in RotatingFileHandler when an open_basedir restriction is active
+ * Fixed minor issues in RavenHandler and bumped the API to Raven 0.5.0
+ * Fixed SyslogHandler issue when many were used concurrently with different facilities
+
+### 1.5.0 (2013-04-23)
+
+ * Added ProcessIdProcessor to inject the PID in log records
+ * Added UidProcessor to inject a unique identifier to all log records of one request/run
+ * Added support for previous exceptions in the LineFormatter exception serialization
+ * Added Monolog\Logger::getLevels() to get all available levels
+ * Fixed ChromePHPHandler so it avoids sending headers larger than Chrome can handle
+
+### 1.4.1 (2013-04-01)
+
+ * Fixed exception formatting in the LineFormatter to be more minimalistic
+ * Fixed RavenHandler's handling of context/extra data, requires Raven client >0.1.0
+ * Fixed log rotation in RotatingFileHandler to work with long running scripts spanning multiple days
+ * Fixed WebProcessor array access so it checks for data presence
+ * Fixed Buffer, Group and FingersCrossed handlers to make use of their processors
+
+### 1.4.0 (2013-02-13)
+
+ * Added RedisHandler to log to Redis via the Predis library or the phpredis extension
+ * Added ZendMonitorHandler to log to the Zend Server monitor
+ * Added the possibility to pass arrays of handlers and processors directly in the Logger constructor
+ * Added `$useSSL` option to the PushoverHandler which is enabled by default
+ * Fixed ChromePHPHandler and FirePHPHandler issue when multiple instances are used simultaneously
+ * Fixed header injection capability in the NativeMailHandler
+
+### 1.3.1 (2013-01-11)
+
+ * Fixed LogstashFormatter to be usable with stream handlers
+ * Fixed GelfMessageFormatter levels on Windows
+
+### 1.3.0 (2013-01-08)
+
+ * Added PSR-3 compliance, the `Monolog\Logger` class is now an instance of `Psr\Log\LoggerInterface`
+ * Added PsrLogMessageProcessor that you can selectively enable for full PSR-3 compliance
+ * Added LogstashFormatter (combine with SocketHandler or StreamHandler to send logs to Logstash)
+ * Added PushoverHandler to send mobile notifications
+ * Added CouchDBHandler and DoctrineCouchDBHandler
+ * Added RavenHandler to send data to Sentry servers
+ * Added support for the new MongoClient class in MongoDBHandler
+ * Added microsecond precision to log records' timestamps
+ * Added `$flushOnOverflow` param to BufferHandler to flush by batches instead of losing
+ the oldest entries
+ * Fixed normalization of objects with cyclic references
+
+### 1.2.1 (2012-08-29)
+
+ * Added new $logopts arg to SyslogHandler to provide custom openlog options
+ * Fixed fatal error in SyslogHandler
+
+### 1.2.0 (2012-08-18)
+
+ * Added AmqpHandler (for use with AMQP servers)
+ * Added CubeHandler
+ * Added NativeMailerHandler::addHeader() to send custom headers in mails
+ * Added the possibility to specify more than one recipient in NativeMailerHandler
+ * Added the possibility to specify float timeouts in SocketHandler
+ * Added NOTICE and EMERGENCY levels to conform with RFC 5424
+ * Fixed the log records to use the php default timezone instead of UTC
+ * Fixed BufferHandler not being flushed properly on PHP fatal errors
+ * Fixed normalization of exotic resource types
+ * Fixed the default format of the SyslogHandler to avoid duplicating datetimes in syslog
+
+### 1.1.0 (2012-04-23)
+
+ * Added Monolog\Logger::isHandling() to check if a handler will
+ handle the given log level
+ * Added ChromePHPHandler
+ * Added MongoDBHandler
+ * Added GelfHandler (for use with Graylog2 servers)
+ * Added SocketHandler (for use with syslog-ng for example)
+ * Added NormalizerFormatter
+ * Added the possibility to change the activation strategy of the FingersCrossedHandler
+ * Added possibility to show microseconds in logs
+ * Added `server` and `referer` to WebProcessor output
+
+### 1.0.2 (2011-10-24)
+
+ * Fixed bug in IE with large response headers and FirePHPHandler
+
+### 1.0.1 (2011-08-25)
+
+ * Added MemoryPeakUsageProcessor and MemoryUsageProcessor
+ * Added Monolog\Logger::getName() to get a logger's channel name
+
+### 1.0.0 (2011-07-06)
+
+ * Added IntrospectionProcessor to get info from where the logger was called
+ * Fixed WebProcessor in CLI
+
+### 1.0.0-RC1 (2011-07-01)
+
+ * Initial release
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/LICENSE b/mayor-orig/www/include/share/googleapi/monolog/monolog/LICENSE
new file mode 100644
index 00000000..16473219
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011-2016 Jordi Boggiano
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/README.md b/mayor-orig/www/include/share/googleapi/monolog/monolog/README.md
new file mode 100644
index 00000000..7d8ade52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/README.md
@@ -0,0 +1,95 @@
+# Monolog - Logging for PHP [![Build Status](https://img.shields.io/travis/Seldaek/monolog.svg)](https://travis-ci.org/Seldaek/monolog)
+
+[![Total Downloads](https://img.shields.io/packagist/dt/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog)
+[![Latest Stable Version](https://img.shields.io/packagist/v/monolog/monolog.svg)](https://packagist.org/packages/monolog/monolog)
+[![Reference Status](https://www.versioneye.com/php/monolog:monolog/reference_badge.svg)](https://www.versioneye.com/php/monolog:monolog/references)
+
+
+Monolog sends your logs to files, sockets, inboxes, databases and various
+web services. See the complete list of handlers below. Special handlers
+allow you to build advanced logging strategies.
+
+This library implements the [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
+interface that you can type-hint against in your own libraries to keep
+a maximum of interoperability. You can also use it in your applications to
+make sure you can always use another compatible logger at a later time.
+As of 1.11.0 Monolog public APIs will also accept PSR-3 log levels.
+Internally Monolog still uses its own level scheme since it predates PSR-3.
+
+## Installation
+
+Install the latest version with
+
+```bash
+$ composer require monolog/monolog
+```
+
+## Basic Usage
+
+```php
+<?php
+
+use Monolog\Logger;
+use Monolog\Handler\StreamHandler;
+
+// create a log channel
+$log = new Logger('name');
+$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
+
+// add records to the log
+$log->addWarning('Foo');
+$log->addError('Bar');
+```
+
+## Documentation
+
+- [Usage Instructions](doc/01-usage.md)
+- [Handlers, Formatters and Processors](doc/02-handlers-formatters-processors.md)
+- [Utility classes](doc/03-utilities.md)
+- [Extending Monolog](doc/04-extending.md)
+
+## Third Party Packages
+
+Third party handlers, formatters and processors are
+[listed in the wiki](https://github.com/Seldaek/monolog/wiki/Third-Party-Packages). You
+can also add your own there if you publish one.
+
+## About
+
+### Requirements
+
+- Monolog works with PHP 5.3 or above, and is also tested to work with HHVM.
+
+### Submitting bugs and feature requests
+
+Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/monolog/issues)
+
+### Framework Integrations
+
+- Frameworks and libraries using [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
+ can be used very easily with Monolog since it implements the interface.
+- [Symfony2](http://symfony.com) comes out of the box with Monolog.
+- [Silex](http://silex.sensiolabs.org/) comes out of the box with Monolog.
+- [Laravel 4 & 5](http://laravel.com/) come out of the box with Monolog.
+- [Lumen](http://lumen.laravel.com/) comes out of the box with Monolog.
+- [PPI](http://www.ppi.io/) comes out of the box with Monolog.
+- [CakePHP](http://cakephp.org/) is usable with Monolog via the [cakephp-monolog](https://github.com/jadb/cakephp-monolog) plugin.
+- [Slim](http://www.slimframework.com/) is usable with Monolog via the [Slim-Monolog](https://github.com/Flynsarmy/Slim-Monolog) log writer.
+- [XOOPS 2.6](http://xoops.org/) comes out of the box with Monolog.
+- [Aura.Web_Project](https://github.com/auraphp/Aura.Web_Project) comes out of the box with Monolog.
+- [Nette Framework](http://nette.org/en/) can be used with Monolog via [Kdyby/Monolog](https://github.com/Kdyby/Monolog) extension.
+- [Proton Micro Framework](https://github.com/alexbilbie/Proton) comes out of the box with Monolog.
+
+### Author
+
+Jordi Boggiano - <j.boggiano@seld.be> - <http://twitter.com/seldaek><br />
+See also the list of [contributors](https://github.com/Seldaek/monolog/contributors) which participated in this project.
+
+### License
+
+Monolog is licensed under the MIT License - see the `LICENSE` file for details
+
+### Acknowledgements
+
+This library is heavily inspired by Python's [Logbook](http://packages.python.org/Logbook/)
+library, although most concepts have been adjusted to fit to the PHP world.
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/composer.json b/mayor-orig/www/include/share/googleapi/monolog/monolog/composer.json
new file mode 100644
index 00000000..3b0c8805
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/composer.json
@@ -0,0 +1,66 @@
+{
+ "name": "monolog/monolog",
+ "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
+ "keywords": ["log", "logging", "psr-3"],
+ "homepage": "http://github.com/Seldaek/monolog",
+ "type": "library",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.0",
+ "psr/log": "~1.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.5",
+ "graylog2/gelf-php": "~1.0",
+ "sentry/sentry": "^0.13",
+ "ruflin/elastica": ">=0.90 <3.0",
+ "doctrine/couchdb": "~1.0@dev",
+ "aws/aws-sdk-php": "^2.4.9 || ^3.0",
+ "php-amqplib/php-amqplib": "~2.4",
+ "swiftmailer/swiftmailer": "^5.3|^6.0",
+ "php-console/php-console": "^3.1.3",
+ "phpunit/phpunit-mock-objects": "2.3.0",
+ "jakub-onderka/php-parallel-lint": "0.9"
+ },
+ "_": "phpunit/phpunit-mock-objects required in 2.3.0 due to https://github.com/sebastianbergmann/phpunit-mock-objects/issues/223 - needs hhvm 3.8+ on travis",
+ "suggest": {
+ "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
+ "sentry/sentry": "Allow sending log messages to a Sentry server",
+ "doctrine/couchdb": "Allow sending log messages to a CouchDB server",
+ "ruflin/elastica": "Allow sending log messages to an Elastic Search server",
+ "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",
+ "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
+ "ext-mongo": "Allow sending log messages to a MongoDB server",
+ "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver",
+ "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
+ "rollbar/rollbar": "Allow sending log messages to Rollbar",
+ "php-console/php-console": "Allow sending log messages to Google Chrome"
+ },
+ "autoload": {
+ "psr-4": {"Monolog\\": "src/Monolog"}
+ },
+ "autoload-dev": {
+ "psr-4": {"Monolog\\": "tests/Monolog"}
+ },
+ "provide": {
+ "psr/log-implementation": "1.0.0"
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "scripts": {
+ "test": [
+ "parallel-lint . --exclude vendor",
+ "phpunit"
+ ]
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/01-usage.md b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/01-usage.md
new file mode 100644
index 00000000..8e2551f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/01-usage.md
@@ -0,0 +1,231 @@
+# Using Monolog
+
+- [Installation](#installation)
+- [Core Concepts](#core-concepts)
+- [Log Levels](#log-levels)
+- [Configuring a logger](#configuring-a-logger)
+- [Adding extra data in the records](#adding-extra-data-in-the-records)
+- [Leveraging channels](#leveraging-channels)
+- [Customizing the log format](#customizing-the-log-format)
+
+## Installation
+
+Monolog is available on Packagist ([monolog/monolog](http://packagist.org/packages/monolog/monolog))
+and as such installable via [Composer](http://getcomposer.org/).
+
+```bash
+composer require monolog/monolog
+```
+
+If you do not use Composer, you can grab the code from GitHub, and use any
+PSR-0 compatible autoloader (e.g. the [Symfony2 ClassLoader component](https://github.com/symfony/ClassLoader))
+to load Monolog classes.
+
+## Core Concepts
+
+Every `Logger` instance has a channel (name) and a stack of handlers. Whenever
+you add a record to the logger, it traverses the handler stack. Each handler
+decides whether it fully handled the record, and if so, the propagation of the
+record ends there.
+
+This allows for flexible logging setups, for example having a `StreamHandler` at
+the bottom of the stack that will log anything to disk, and on top of that add
+a `MailHandler` that will send emails only when an error message is logged.
+Handlers also have a `$bubble` property which defines whether they block the
+record or not if they handled it. In this example, setting the `MailHandler`'s
+`$bubble` argument to false means that records handled by the `MailHandler` will
+not propagate to the `StreamHandler` anymore.
+
+You can create many `Logger`s, each defining a channel (e.g.: db, request,
+router, ..) and each of them combining various handlers, which can be shared
+or not. The channel is reflected in the logs and allows you to easily see or
+filter records.
+
+Each Handler also has a Formatter, a default one with settings that make sense
+will be created if you don't set one. The formatters normalize and format
+incoming records so that they can be used by the handlers to output useful
+information.
+
+Custom severity levels are not available. Only the eight
+[RFC 5424](http://tools.ietf.org/html/rfc5424) levels (debug, info, notice,
+warning, error, critical, alert, emergency) are present for basic filtering
+purposes, but for sorting and other use cases that would require
+flexibility, you should add Processors to the Logger that can add extra
+information (tags, user ip, ..) to the records before they are handled.
+
+## Log Levels
+
+Monolog supports the logging levels described by [RFC 5424](http://tools.ietf.org/html/rfc5424).
+
+- **DEBUG** (100): Detailed debug information.
+
+- **INFO** (200): Interesting events. Examples: User logs in, SQL logs.
+
+- **NOTICE** (250): Normal but significant events.
+
+- **WARNING** (300): Exceptional occurrences that are not errors. Examples:
+ Use of deprecated APIs, poor use of an API, undesirable things that are not
+ necessarily wrong.
+
+- **ERROR** (400): Runtime errors that do not require immediate action but
+ should typically be logged and monitored.
+
+- **CRITICAL** (500): Critical conditions. Example: Application component
+ unavailable, unexpected exception.
+
+- **ALERT** (550): Action must be taken immediately. Example: Entire website
+ down, database unavailable, etc. This should trigger the SMS alerts and wake
+ you up.
+
+- **EMERGENCY** (600): Emergency: system is unusable.
+
+## Configuring a logger
+
+Here is a basic setup to log to a file and to firephp on the DEBUG level:
+
+```php
+<?php
+
+use Monolog\Logger;
+use Monolog\Handler\StreamHandler;
+use Monolog\Handler\FirePHPHandler;
+
+// Create the logger
+$logger = new Logger('my_logger');
+// Now add some handlers
+$logger->pushHandler(new StreamHandler(__DIR__.'/my_app.log', Logger::DEBUG));
+$logger->pushHandler(new FirePHPHandler());
+
+// You can now use your logger
+$logger->addInfo('My logger is now ready');
+```
+
+Let's explain it. The first step is to create the logger instance which will
+be used in your code. The argument is a channel name, which is useful when
+you use several loggers (see below for more details about it).
+
+The logger itself does not know how to handle a record. It delegates it to
+some handlers. The code above registers two handlers in the stack to allow
+handling records in two different ways.
+
+Note that the FirePHPHandler is called first as it is added on top of the
+stack. This allows you to temporarily add a logger with bubbling disabled if
+you want to override other configured loggers.
+
+> If you use Monolog standalone and are looking for an easy way to
+> configure many handlers, the [theorchard/monolog-cascade](https://github.com/theorchard/monolog-cascade)
+> can help you build complex logging configs via PHP arrays, yaml or json configs.
+
+## Adding extra data in the records
+
+Monolog provides two different ways to add extra informations along the simple
+textual message.
+
+### Using the logging context
+
+The first way is the context, allowing to pass an array of data along the
+record:
+
+```php
+<?php
+
+$logger->addInfo('Adding a new user', array('username' => 'Seldaek'));
+```
+
+Simple handlers (like the StreamHandler for instance) will simply format
+the array to a string but richer handlers can take advantage of the context
+(FirePHP is able to display arrays in pretty way for instance).
+
+### Using processors
+
+The second way is to add extra data for all records by using a processor.
+Processors can be any callable. They will get the record as parameter and
+must return it after having eventually changed the `extra` part of it. Let's
+write a processor adding some dummy data in the record:
+
+```php
+<?php
+
+$logger->pushProcessor(function ($record) {
+ $record['extra']['dummy'] = 'Hello world!';
+
+ return $record;
+});
+```
+
+Monolog provides some built-in processors that can be used in your project.
+Look at the [dedicated chapter](https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md#processors) for the list.
+
+> Tip: processors can also be registered on a specific handler instead of
+ the logger to apply only for this handler.
+
+## Leveraging channels
+
+Channels are a great way to identify to which part of the application a record
+is related. This is useful in big applications (and is leveraged by
+MonologBundle in Symfony2).
+
+Picture two loggers sharing a handler that writes to a single log file.
+Channels would allow you to identify the logger that issued every record.
+You can easily grep through the log files filtering this or that channel.
+
+```php
+<?php
+
+use Monolog\Logger;
+use Monolog\Handler\StreamHandler;
+use Monolog\Handler\FirePHPHandler;
+
+// Create some handlers
+$stream = new StreamHandler(__DIR__.'/my_app.log', Logger::DEBUG);
+$firephp = new FirePHPHandler();
+
+// Create the main logger of the app
+$logger = new Logger('my_logger');
+$logger->pushHandler($stream);
+$logger->pushHandler($firephp);
+
+// Create a logger for the security-related stuff with a different channel
+$securityLogger = new Logger('security');
+$securityLogger->pushHandler($stream);
+$securityLogger->pushHandler($firephp);
+
+// Or clone the first one to only change the channel
+$securityLogger = $logger->withName('security');
+```
+
+## Customizing the log format
+
+In Monolog it's easy to customize the format of the logs written into files,
+sockets, mails, databases and other handlers. Most of the handlers use the
+
+```php
+$record['formatted']
+```
+
+value to be automatically put into the log device. This value depends on the
+formatter settings. You can choose between predefined formatter classes or
+write your own (e.g. a multiline text file for human-readable output).
+
+To configure a predefined formatter class, just set it as the handler's field:
+
+```php
+// the default date format is "Y-m-d H:i:s"
+$dateFormat = "Y n j, g:i a";
+// the default output format is "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"
+$output = "%datetime% > %level_name% > %message% %context% %extra%\n";
+// finally, create a formatter
+$formatter = new LineFormatter($output, $dateFormat);
+
+// Create a handler
+$stream = new StreamHandler(__DIR__.'/my_app.log', Logger::DEBUG);
+$stream->setFormatter($formatter);
+// bind it to a logger object
+$securityLogger = new Logger('security');
+$securityLogger->pushHandler($stream);
+```
+
+You may also reuse the same formatter between multiple handlers and share those
+handlers between multiple loggers.
+
+[Handlers, Formatters and Processors](02-handlers-formatters-processors.md) &rarr;
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/02-handlers-formatters-processors.md b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/02-handlers-formatters-processors.md
new file mode 100644
index 00000000..bea968ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/02-handlers-formatters-processors.md
@@ -0,0 +1,157 @@
+# Handlers, Formatters and Processors
+
+- [Handlers](#handlers)
+ - [Log to files and syslog](#log-to-files-and-syslog)
+ - [Send alerts and emails](#send-alerts-and-emails)
+ - [Log specific servers and networked logging](#log-specific-servers-and-networked-logging)
+ - [Logging in development](#logging-in-development)
+ - [Log to databases](#log-to-databases)
+ - [Wrappers / Special Handlers](#wrappers--special-handlers)
+- [Formatters](#formatters)
+- [Processors](#processors)
+- [Third Party Packages](#third-party-packages)
+
+## Handlers
+
+### Log to files and syslog
+
+- _StreamHandler_: Logs records into any PHP stream, use this for log files.
+- _RotatingFileHandler_: Logs records to a file and creates one logfile per day.
+ It will also delete files older than `$maxFiles`. You should use
+ [logrotate](http://linuxcommand.org/man_pages/logrotate8.html) for high profile
+ setups though, this is just meant as a quick and dirty solution.
+- _SyslogHandler_: Logs records to the syslog.
+- _ErrorLogHandler_: Logs records to PHP's
+ [`error_log()`](http://docs.php.net/manual/en/function.error-log.php) function.
+
+### Send alerts and emails
+
+- _NativeMailerHandler_: Sends emails using PHP's
+ [`mail()`](http://php.net/manual/en/function.mail.php) function.
+- _SwiftMailerHandler_: Sends emails using a [`Swift_Mailer`](http://swiftmailer.org/) instance.
+- _PushoverHandler_: Sends mobile notifications via the [Pushover](https://www.pushover.net/) API.
+- _HipChatHandler_: Logs records to a [HipChat](http://hipchat.com) chat room using its API.
+- _FlowdockHandler_: Logs records to a [Flowdock](https://www.flowdock.com/) account.
+- _SlackHandler_: Logs records to a [Slack](https://www.slack.com/) account using the Slack API.
+- _SlackbotHandler_: Logs records to a [Slack](https://www.slack.com/) account using the Slackbot incoming hook.
+- _SlackWebhookHandler_: Logs records to a [Slack](https://www.slack.com/) account using Slack Webhooks.
+- _MandrillHandler_: Sends emails via the Mandrill API using a [`Swift_Message`](http://swiftmailer.org/) instance.
+- _FleepHookHandler_: Logs records to a [Fleep](https://fleep.io/) conversation using Webhooks.
+- _IFTTTHandler_: Notifies an [IFTTT](https://ifttt.com/maker) trigger with the log channel, level name and message.
+
+### Log specific servers and networked logging
+
+- _SocketHandler_: Logs records to [sockets](http://php.net/fsockopen), use this
+ for UNIX and TCP sockets. See an [example](sockets.md).
+- _AmqpHandler_: Logs records to an [amqp](http://www.amqp.org/) compatible
+ server. Requires the [php-amqp](http://pecl.php.net/package/amqp) extension (1.0+).
+- _GelfHandler_: Logs records to a [Graylog2](http://www.graylog2.org) server.
+- _CubeHandler_: Logs records to a [Cube](http://square.github.com/cube/) server.
+- _RavenHandler_: Logs records to a [Sentry](http://getsentry.com/) server using
+ [raven](https://packagist.org/packages/raven/raven).
+- _ZendMonitorHandler_: Logs records to the Zend Monitor present in Zend Server.
+- _NewRelicHandler_: Logs records to a [NewRelic](http://newrelic.com/) application.
+- _LogglyHandler_: Logs records to a [Loggly](http://www.loggly.com/) account.
+- _RollbarHandler_: Logs records to a [Rollbar](https://rollbar.com/) account.
+- _SyslogUdpHandler_: Logs records to a remote [Syslogd](http://www.rsyslog.com/) server.
+- _LogEntriesHandler_: Logs records to a [LogEntries](http://logentries.com/) account.
+
+### Logging in development
+
+- _FirePHPHandler_: Handler for [FirePHP](http://www.firephp.org/), providing
+ inline `console` messages within [FireBug](http://getfirebug.com/).
+- _ChromePHPHandler_: Handler for [ChromePHP](http://www.chromephp.com/), providing
+ inline `console` messages within Chrome.
+- _BrowserConsoleHandler_: Handler to send logs to browser's Javascript `console` with
+ no browser extension required. Most browsers supporting `console` API are supported.
+- _PHPConsoleHandler_: Handler for [PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef), providing
+ inline `console` and notification popup messages within Chrome.
+
+### Log to databases
+
+- _RedisHandler_: Logs records to a [redis](http://redis.io) server.
+- _MongoDBHandler_: Handler to write records in MongoDB via a
+ [Mongo](http://pecl.php.net/package/mongo) extension connection.
+- _CouchDBHandler_: Logs records to a CouchDB server.
+- _DoctrineCouchDBHandler_: Logs records to a CouchDB server via the Doctrine CouchDB ODM.
+- _ElasticSearchHandler_: Logs records to an Elastic Search server.
+- _DynamoDbHandler_: Logs records to a DynamoDB table with the [AWS SDK](https://github.com/aws/aws-sdk-php).
+
+### Wrappers / Special Handlers
+
+- _FingersCrossedHandler_: A very interesting wrapper. It takes a logger as
+ parameter and will accumulate log records of all levels until a record
+ exceeds the defined severity level. At which point it delivers all records,
+ including those of lower severity, to the handler it wraps. This means that
+ until an error actually happens you will not see anything in your logs, but
+ when it happens you will have the full information, including debug and info
+ records. This provides you with all the information you need, but only when
+ you need it.
+- _DeduplicationHandler_: Useful if you are sending notifications or emails
+ when critical errors occur. It takes a logger as parameter and will
+ accumulate log records of all levels until the end of the request (or
+ `flush()` is called). At that point it delivers all records to the handler
+ it wraps, but only if the records are unique over a given time period
+ (60seconds by default). If the records are duplicates they are simply
+ discarded. The main use of this is in case of critical failure like if your
+ database is unreachable for example all your requests will fail and that
+ can result in a lot of notifications being sent. Adding this handler reduces
+ the amount of notifications to a manageable level.
+- _WhatFailureGroupHandler_: This handler extends the _GroupHandler_ ignoring
+ exceptions raised by each child handler. This allows you to ignore issues
+ where a remote tcp connection may have died but you do not want your entire
+ application to crash and may wish to continue to log to other handlers.
+- _BufferHandler_: This handler will buffer all the log records it receives
+ until `close()` is called at which point it will call `handleBatch()` on the
+ handler it wraps with all the log messages at once. This is very useful to
+ send an email with all records at once for example instead of having one mail
+ for every log record.
+- _GroupHandler_: This handler groups other handlers. Every record received is
+ sent to all the handlers it is configured with.
+- _FilterHandler_: This handler only lets records of the given levels through
+ to the wrapped handler.
+- _SamplingHandler_: Wraps around another handler and lets you sample records
+ if you only want to store some of them.
+- _NullHandler_: Any record it can handle will be thrown away. This can be used
+ to put on top of an existing handler stack to disable it temporarily.
+- _PsrHandler_: Can be used to forward log records to an existing PSR-3 logger
+- _TestHandler_: Used for testing, it records everything that is sent to it and
+ has accessors to read out the information.
+- _HandlerWrapper_: A simple handler wrapper you can inherit from to create
+ your own wrappers easily.
+
+## Formatters
+
+- _LineFormatter_: Formats a log record into a one-line string.
+- _HtmlFormatter_: Used to format log records into a human readable html table, mainly suitable for emails.
+- _NormalizerFormatter_: Normalizes objects/resources down to strings so a record can easily be serialized/encoded.
+- _ScalarFormatter_: Used to format log records into an associative array of scalar values.
+- _JsonFormatter_: Encodes a log record into json.
+- _WildfireFormatter_: Used to format log records into the Wildfire/FirePHP protocol, only useful for the FirePHPHandler.
+- _ChromePHPFormatter_: Used to format log records into the ChromePHP format, only useful for the ChromePHPHandler.
+- _GelfMessageFormatter_: Used to format log records into Gelf message instances, only useful for the GelfHandler.
+- _LogstashFormatter_: Used to format log records into [logstash](http://logstash.net/) event json, useful for any handler listed under inputs [here](http://logstash.net/docs/latest).
+- _ElasticaFormatter_: Used to format log records into an Elastica\Document object, only useful for the ElasticSearchHandler.
+- _LogglyFormatter_: Used to format log records into Loggly messages, only useful for the LogglyHandler.
+- _FlowdockFormatter_: Used to format log records into Flowdock messages, only useful for the FlowdockHandler.
+- _MongoDBFormatter_: Converts \DateTime instances to \MongoDate and objects recursively to arrays, only useful with the MongoDBHandler.
+
+## Processors
+
+- _PsrLogMessageProcessor_: Processes a log record's message according to PSR-3 rules, replacing `{foo}` with the value from `$context['foo']`.
+- _IntrospectionProcessor_: Adds the line/file/class/method from which the log call originated.
+- _WebProcessor_: Adds the current request URI, request method and client IP to a log record.
+- _MemoryUsageProcessor_: Adds the current memory usage to a log record.
+- _MemoryPeakUsageProcessor_: Adds the peak memory usage to a log record.
+- _ProcessIdProcessor_: Adds the process id to a log record.
+- _UidProcessor_: Adds a unique identifier to a log record.
+- _GitProcessor_: Adds the current git branch and commit to a log record.
+- _TagProcessor_: Adds an array of predefined tags to a log record.
+
+## Third Party Packages
+
+Third party handlers, formatters and processors are
+[listed in the wiki](https://github.com/Seldaek/monolog/wiki/Third-Party-Packages). You
+can also add your own there if you publish one.
+
+&larr; [Usage](01-usage.md) | [Utility classes](03-utilities.md) &rarr;
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/03-utilities.md b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/03-utilities.md
new file mode 100644
index 00000000..c62aa416
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/03-utilities.md
@@ -0,0 +1,13 @@
+# Utilities
+
+- _Registry_: The `Monolog\Registry` class lets you configure global loggers that you
+ can then statically access from anywhere. It is not really a best practice but can
+ help in some older codebases or for ease of use.
+- _ErrorHandler_: The `Monolog\ErrorHandler` class allows you to easily register
+ a Logger instance as an exception handler, error handler or fatal error handler.
+- _ErrorLevelActivationStrategy_: Activates a FingersCrossedHandler when a certain log
+ level is reached.
+- _ChannelLevelActivationStrategy_: Activates a FingersCrossedHandler when a certain
+ log level is reached, depending on which channel received the log record.
+
+&larr; [Handlers, Formatters and Processors](02-handlers-formatters-processors.md) | [Extending Monolog](04-extending.md) &rarr;
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/04-extending.md b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/04-extending.md
new file mode 100644
index 00000000..ebd9104d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/04-extending.md
@@ -0,0 +1,76 @@
+# Extending Monolog
+
+Monolog is fully extensible, allowing you to adapt your logger to your needs.
+
+## Writing your own handler
+
+Monolog provides many built-in handlers. But if the one you need does not
+exist, you can write it and use it in your logger. The only requirement is
+to implement `Monolog\Handler\HandlerInterface`.
+
+Let's write a PDOHandler to log records to a database. We will extend the
+abstract class provided by Monolog to keep things DRY.
+
+```php
+<?php
+
+use Monolog\Logger;
+use Monolog\Handler\AbstractProcessingHandler;
+
+class PDOHandler extends AbstractProcessingHandler
+{
+ private $initialized = false;
+ private $pdo;
+ private $statement;
+
+ public function __construct(PDO $pdo, $level = Logger::DEBUG, $bubble = true)
+ {
+ $this->pdo = $pdo;
+ parent::__construct($level, $bubble);
+ }
+
+ protected function write(array $record)
+ {
+ if (!$this->initialized) {
+ $this->initialize();
+ }
+
+ $this->statement->execute(array(
+ 'channel' => $record['channel'],
+ 'level' => $record['level'],
+ 'message' => $record['formatted'],
+ 'time' => $record['datetime']->format('U'),
+ ));
+ }
+
+ private function initialize()
+ {
+ $this->pdo->exec(
+ 'CREATE TABLE IF NOT EXISTS monolog '
+ .'(channel VARCHAR(255), level INTEGER, message LONGTEXT, time INTEGER UNSIGNED)'
+ );
+ $this->statement = $this->pdo->prepare(
+ 'INSERT INTO monolog (channel, level, message, time) VALUES (:channel, :level, :message, :time)'
+ );
+
+ $this->initialized = true;
+ }
+}
+```
+
+You can now use this handler in your logger:
+
+```php
+<?php
+
+$logger->pushHandler(new PDOHandler(new PDO('sqlite:logs.sqlite')));
+
+// You can now use your logger
+$logger->addInfo('My logger is now ready');
+```
+
+The `Monolog\Handler\AbstractProcessingHandler` class provides most of the
+logic needed for the handler, including the use of processors and the formatting
+of the record (which is why we use ``$record['formatted']`` instead of ``$record['message']``).
+
+&larr; [Utility classes](03-utilities.md)
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/sockets.md b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/sockets.md
new file mode 100644
index 00000000..ea9cf0ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/doc/sockets.md
@@ -0,0 +1,39 @@
+Sockets Handler
+===============
+
+This handler allows you to write your logs to sockets using [fsockopen](http://php.net/fsockopen)
+or [pfsockopen](http://php.net/pfsockopen).
+
+Persistent sockets are mainly useful in web environments where you gain some performance not closing/opening
+the connections between requests.
+
+You can use a `unix://` prefix to access unix sockets and `udp://` to open UDP sockets instead of the default TCP.
+
+Basic Example
+-------------
+
+```php
+<?php
+
+use Monolog\Logger;
+use Monolog\Handler\SocketHandler;
+
+// Create the logger
+$logger = new Logger('my_logger');
+
+// Create the handler
+$handler = new SocketHandler('unix:///var/log/httpd_app_log.socket');
+$handler->setPersistent(true);
+
+// Now add the handler
+$logger->pushHandler($handler, Logger::DEBUG);
+
+// You can now use your logger
+$logger->addInfo('My logger is now ready');
+
+```
+
+In this example, using syslog-ng, you should see the log on the log server:
+
+ cweb1 [2012-02-26 00:12:03] my_logger.INFO: My logger is now ready [] []
+
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/phpunit.xml.dist b/mayor-orig/www/include/share/googleapi/monolog/monolog/phpunit.xml.dist
new file mode 100644
index 00000000..20d82b63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/phpunit.xml.dist
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit bootstrap="vendor/autoload.php" colors="true">
+ <testsuites>
+ <testsuite name="Monolog Test Suite">
+ <directory>tests/Monolog/</directory>
+ </testsuite>
+ </testsuites>
+
+ <filter>
+ <whitelist>
+ <directory suffix=".php">src/Monolog/</directory>
+ </whitelist>
+ </filter>
+
+ <php>
+ <ini name="date.timezone" value="UTC"/>
+ </php>
+</phpunit>
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/ErrorHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/ErrorHandler.php
new file mode 100644
index 00000000..7bfcd833
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/ErrorHandler.php
@@ -0,0 +1,230 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+use Psr\Log\LoggerInterface;
+use Psr\Log\LogLevel;
+use Monolog\Handler\AbstractHandler;
+
+/**
+ * Monolog error handler
+ *
+ * A facility to enable logging of runtime errors, exceptions and fatal errors.
+ *
+ * Quick setup: <code>ErrorHandler::register($logger);</code>
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class ErrorHandler
+{
+ private $logger;
+
+ private $previousExceptionHandler;
+ private $uncaughtExceptionLevel;
+
+ private $previousErrorHandler;
+ private $errorLevelMap;
+ private $handleOnlyReportedErrors;
+
+ private $hasFatalErrorHandler;
+ private $fatalLevel;
+ private $reservedMemory;
+ private static $fatalErrors = array(E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR);
+
+ public function __construct(LoggerInterface $logger)
+ {
+ $this->logger = $logger;
+ }
+
+ /**
+ * Registers a new ErrorHandler for a given Logger
+ *
+ * By default it will handle errors, exceptions and fatal errors
+ *
+ * @param LoggerInterface $logger
+ * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling
+ * @param int|false $exceptionLevel a LogLevel::* constant, or false to disable exception handling
+ * @param int|false $fatalLevel a LogLevel::* constant, or false to disable fatal error handling
+ * @return ErrorHandler
+ */
+ public static function register(LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null)
+ {
+ //Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929
+ class_exists('\\Psr\\Log\\LogLevel', true);
+
+ $handler = new static($logger);
+ if ($errorLevelMap !== false) {
+ $handler->registerErrorHandler($errorLevelMap);
+ }
+ if ($exceptionLevel !== false) {
+ $handler->registerExceptionHandler($exceptionLevel);
+ }
+ if ($fatalLevel !== false) {
+ $handler->registerFatalHandler($fatalLevel);
+ }
+
+ return $handler;
+ }
+
+ public function registerExceptionHandler($level = null, $callPrevious = true)
+ {
+ $prev = set_exception_handler(array($this, 'handleException'));
+ $this->uncaughtExceptionLevel = $level;
+ if ($callPrevious && $prev) {
+ $this->previousExceptionHandler = $prev;
+ }
+ }
+
+ public function registerErrorHandler(array $levelMap = array(), $callPrevious = true, $errorTypes = -1, $handleOnlyReportedErrors = true)
+ {
+ $prev = set_error_handler(array($this, 'handleError'), $errorTypes);
+ $this->errorLevelMap = array_replace($this->defaultErrorLevelMap(), $levelMap);
+ if ($callPrevious) {
+ $this->previousErrorHandler = $prev ?: true;
+ }
+
+ $this->handleOnlyReportedErrors = $handleOnlyReportedErrors;
+ }
+
+ public function registerFatalHandler($level = null, $reservedMemorySize = 20)
+ {
+ register_shutdown_function(array($this, 'handleFatalError'));
+
+ $this->reservedMemory = str_repeat(' ', 1024 * $reservedMemorySize);
+ $this->fatalLevel = $level;
+ $this->hasFatalErrorHandler = true;
+ }
+
+ protected function defaultErrorLevelMap()
+ {
+ return array(
+ E_ERROR => LogLevel::CRITICAL,
+ E_WARNING => LogLevel::WARNING,
+ E_PARSE => LogLevel::ALERT,
+ E_NOTICE => LogLevel::NOTICE,
+ E_CORE_ERROR => LogLevel::CRITICAL,
+ E_CORE_WARNING => LogLevel::WARNING,
+ E_COMPILE_ERROR => LogLevel::ALERT,
+ E_COMPILE_WARNING => LogLevel::WARNING,
+ E_USER_ERROR => LogLevel::ERROR,
+ E_USER_WARNING => LogLevel::WARNING,
+ E_USER_NOTICE => LogLevel::NOTICE,
+ E_STRICT => LogLevel::NOTICE,
+ E_RECOVERABLE_ERROR => LogLevel::ERROR,
+ E_DEPRECATED => LogLevel::NOTICE,
+ E_USER_DEPRECATED => LogLevel::NOTICE,
+ );
+ }
+
+ /**
+ * @private
+ */
+ public function handleException($e)
+ {
+ $this->logger->log(
+ $this->uncaughtExceptionLevel === null ? LogLevel::ERROR : $this->uncaughtExceptionLevel,
+ sprintf('Uncaught Exception %s: "%s" at %s line %s', get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()),
+ array('exception' => $e)
+ );
+
+ if ($this->previousExceptionHandler) {
+ call_user_func($this->previousExceptionHandler, $e);
+ }
+
+ exit(255);
+ }
+
+ /**
+ * @private
+ */
+ public function handleError($code, $message, $file = '', $line = 0, $context = array())
+ {
+ if ($this->handleOnlyReportedErrors && !(error_reporting() & $code)) {
+ return;
+ }
+
+ // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries
+ if (!$this->hasFatalErrorHandler || !in_array($code, self::$fatalErrors, true)) {
+ $level = isset($this->errorLevelMap[$code]) ? $this->errorLevelMap[$code] : LogLevel::CRITICAL;
+ $this->logger->log($level, self::codeToString($code).': '.$message, array('code' => $code, 'message' => $message, 'file' => $file, 'line' => $line));
+ }
+
+ if ($this->previousErrorHandler === true) {
+ return false;
+ } elseif ($this->previousErrorHandler) {
+ return call_user_func($this->previousErrorHandler, $code, $message, $file, $line, $context);
+ }
+ }
+
+ /**
+ * @private
+ */
+ public function handleFatalError()
+ {
+ $this->reservedMemory = null;
+
+ $lastError = error_get_last();
+ if ($lastError && in_array($lastError['type'], self::$fatalErrors, true)) {
+ $this->logger->log(
+ $this->fatalLevel === null ? LogLevel::ALERT : $this->fatalLevel,
+ 'Fatal Error ('.self::codeToString($lastError['type']).'): '.$lastError['message'],
+ array('code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'])
+ );
+
+ if ($this->logger instanceof Logger) {
+ foreach ($this->logger->getHandlers() as $handler) {
+ if ($handler instanceof AbstractHandler) {
+ $handler->close();
+ }
+ }
+ }
+ }
+ }
+
+ private static function codeToString($code)
+ {
+ switch ($code) {
+ case E_ERROR:
+ return 'E_ERROR';
+ case E_WARNING:
+ return 'E_WARNING';
+ case E_PARSE:
+ return 'E_PARSE';
+ case E_NOTICE:
+ return 'E_NOTICE';
+ case E_CORE_ERROR:
+ return 'E_CORE_ERROR';
+ case E_CORE_WARNING:
+ return 'E_CORE_WARNING';
+ case E_COMPILE_ERROR:
+ return 'E_COMPILE_ERROR';
+ case E_COMPILE_WARNING:
+ return 'E_COMPILE_WARNING';
+ case E_USER_ERROR:
+ return 'E_USER_ERROR';
+ case E_USER_WARNING:
+ return 'E_USER_WARNING';
+ case E_USER_NOTICE:
+ return 'E_USER_NOTICE';
+ case E_STRICT:
+ return 'E_STRICT';
+ case E_RECOVERABLE_ERROR:
+ return 'E_RECOVERABLE_ERROR';
+ case E_DEPRECATED:
+ return 'E_DEPRECATED';
+ case E_USER_DEPRECATED:
+ return 'E_USER_DEPRECATED';
+ }
+
+ return 'Unknown PHP error';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php
new file mode 100644
index 00000000..9beda1e7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php
@@ -0,0 +1,78 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+/**
+ * Formats a log message according to the ChromePHP array format
+ *
+ * @author Christophe Coevoet <stof@notk.org>
+ */
+class ChromePHPFormatter implements FormatterInterface
+{
+ /**
+ * Translates Monolog log levels to Wildfire levels.
+ */
+ private $logLevels = array(
+ Logger::DEBUG => 'log',
+ Logger::INFO => 'info',
+ Logger::NOTICE => 'info',
+ Logger::WARNING => 'warn',
+ Logger::ERROR => 'error',
+ Logger::CRITICAL => 'error',
+ Logger::ALERT => 'error',
+ Logger::EMERGENCY => 'error',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ // Retrieve the line and file if set and remove them from the formatted extra
+ $backtrace = 'unknown';
+ if (isset($record['extra']['file'], $record['extra']['line'])) {
+ $backtrace = $record['extra']['file'].' : '.$record['extra']['line'];
+ unset($record['extra']['file'], $record['extra']['line']);
+ }
+
+ $message = array('message' => $record['message']);
+ if ($record['context']) {
+ $message['context'] = $record['context'];
+ }
+ if ($record['extra']) {
+ $message['extra'] = $record['extra'];
+ }
+ if (count($message) === 1) {
+ $message = reset($message);
+ }
+
+ return array(
+ $record['channel'],
+ $message,
+ $backtrace,
+ $this->logLevels[$record['level']],
+ );
+ }
+
+ public function formatBatch(array $records)
+ {
+ $formatted = array();
+
+ foreach ($records as $record) {
+ $formatted[] = $this->format($record);
+ }
+
+ return $formatted;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php
new file mode 100644
index 00000000..4c556cf1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php
@@ -0,0 +1,89 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Elastica\Document;
+
+/**
+ * Format a log message into an Elastica Document
+ *
+ * @author Jelle Vink <jelle.vink@gmail.com>
+ */
+class ElasticaFormatter extends NormalizerFormatter
+{
+ /**
+ * @var string Elastic search index name
+ */
+ protected $index;
+
+ /**
+ * @var string Elastic search document type
+ */
+ protected $type;
+
+ /**
+ * @param string $index Elastic Search index name
+ * @param string $type Elastic Search document type
+ */
+ public function __construct($index, $type)
+ {
+ // elasticsearch requires a ISO 8601 format date with optional millisecond precision.
+ parent::__construct('Y-m-d\TH:i:s.uP');
+
+ $this->index = $index;
+ $this->type = $type;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ $record = parent::format($record);
+
+ return $this->getDocument($record);
+ }
+
+ /**
+ * Getter index
+ * @return string
+ */
+ public function getIndex()
+ {
+ return $this->index;
+ }
+
+ /**
+ * Getter type
+ * @return string
+ */
+ public function getType()
+ {
+ return $this->type;
+ }
+
+ /**
+ * Convert a log message into an Elastica Document
+ *
+ * @param array $record Log message
+ * @return Document
+ */
+ protected function getDocument($record)
+ {
+ $document = new Document();
+ $document->setData($record);
+ $document->setType($this->type);
+ $document->setIndex($this->index);
+
+ return $document;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php
new file mode 100644
index 00000000..5094af3c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php
@@ -0,0 +1,116 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * formats the record to be used in the FlowdockHandler
+ *
+ * @author Dominik Liebler <liebler.dominik@gmail.com>
+ */
+class FlowdockFormatter implements FormatterInterface
+{
+ /**
+ * @var string
+ */
+ private $source;
+
+ /**
+ * @var string
+ */
+ private $sourceEmail;
+
+ /**
+ * @param string $source
+ * @param string $sourceEmail
+ */
+ public function __construct($source, $sourceEmail)
+ {
+ $this->source = $source;
+ $this->sourceEmail = $sourceEmail;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ $tags = array(
+ '#logs',
+ '#' . strtolower($record['level_name']),
+ '#' . $record['channel'],
+ );
+
+ foreach ($record['extra'] as $value) {
+ $tags[] = '#' . $value;
+ }
+
+ $subject = sprintf(
+ 'in %s: %s - %s',
+ $this->source,
+ $record['level_name'],
+ $this->getShortMessage($record['message'])
+ );
+
+ $record['flowdock'] = array(
+ 'source' => $this->source,
+ 'from_address' => $this->sourceEmail,
+ 'subject' => $subject,
+ 'content' => $record['message'],
+ 'tags' => $tags,
+ 'project' => $this->source,
+ );
+
+ return $record;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function formatBatch(array $records)
+ {
+ $formatted = array();
+
+ foreach ($records as $record) {
+ $formatted[] = $this->format($record);
+ }
+
+ return $formatted;
+ }
+
+ /**
+ * @param string $message
+ *
+ * @return string
+ */
+ public function getShortMessage($message)
+ {
+ static $hasMbString;
+
+ if (null === $hasMbString) {
+ $hasMbString = function_exists('mb_strlen');
+ }
+
+ $maxLength = 45;
+
+ if ($hasMbString) {
+ if (mb_strlen($message, 'UTF-8') > $maxLength) {
+ $message = mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...';
+ }
+ } else {
+ if (strlen($message) > $maxLength) {
+ $message = substr($message, 0, $maxLength - 4) . ' ...';
+ }
+ }
+
+ return $message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
new file mode 100644
index 00000000..02632bb5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
@@ -0,0 +1,85 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * Class FluentdFormatter
+ *
+ * Serializes a log message to Fluentd unix socket protocol
+ *
+ * Fluentd config:
+ *
+ * <source>
+ * type unix
+ * path /var/run/td-agent/td-agent.sock
+ * </source>
+ *
+ * Monolog setup:
+ *
+ * $logger = new Monolog\Logger('fluent.tag');
+ * $fluentHandler = new Monolog\Handler\SocketHandler('unix:///var/run/td-agent/td-agent.sock');
+ * $fluentHandler->setFormatter(new Monolog\Formatter\FluentdFormatter());
+ * $logger->pushHandler($fluentHandler);
+ *
+ * @author Andrius Putna <fordnox@gmail.com>
+ */
+class FluentdFormatter implements FormatterInterface
+{
+ /**
+ * @var bool $levelTag should message level be a part of the fluentd tag
+ */
+ protected $levelTag = false;
+
+ public function __construct($levelTag = false)
+ {
+ if (!function_exists('json_encode')) {
+ throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s FluentdUnixFormatter');
+ }
+
+ $this->levelTag = (bool) $levelTag;
+ }
+
+ public function isUsingLevelsInTag()
+ {
+ return $this->levelTag;
+ }
+
+ public function format(array $record)
+ {
+ $tag = $record['channel'];
+ if ($this->levelTag) {
+ $tag .= '.' . strtolower($record['level_name']);
+ }
+
+ $message = array(
+ 'message' => $record['message'],
+ 'extra' => $record['extra'],
+ );
+
+ if (!$this->levelTag) {
+ $message['level'] = $record['level'];
+ $message['level_name'] = $record['level_name'];
+ }
+
+ return json_encode(array($tag, $record['datetime']->getTimestamp(), $message));
+ }
+
+ public function formatBatch(array $records)
+ {
+ $message = '';
+ foreach ($records as $record) {
+ $message .= $this->format($record);
+ }
+
+ return $message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php
new file mode 100644
index 00000000..b5de7511
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php
@@ -0,0 +1,36 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * Interface for formatters
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+interface FormatterInterface
+{
+ /**
+ * Formats a log record.
+ *
+ * @param array $record A record to format
+ * @return mixed The formatted record
+ */
+ public function format(array $record);
+
+ /**
+ * Formats a set of log records.
+ *
+ * @param array $records A set of records to format
+ * @return mixed The formatted set of records
+ */
+ public function formatBatch(array $records);
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php
new file mode 100644
index 00000000..2c1b0e86
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php
@@ -0,0 +1,138 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+use Gelf\Message;
+
+/**
+ * Serializes a log message to GELF
+ * @see http://www.graylog2.org/about/gelf
+ *
+ * @author Matt Lehner <mlehner@gmail.com>
+ */
+class GelfMessageFormatter extends NormalizerFormatter
+{
+ const DEFAULT_MAX_LENGTH = 32766;
+
+ /**
+ * @var string the name of the system for the Gelf log message
+ */
+ protected $systemName;
+
+ /**
+ * @var string a prefix for 'extra' fields from the Monolog record (optional)
+ */
+ protected $extraPrefix;
+
+ /**
+ * @var string a prefix for 'context' fields from the Monolog record (optional)
+ */
+ protected $contextPrefix;
+
+ /**
+ * @var int max length per field
+ */
+ protected $maxLength;
+
+ /**
+ * Translates Monolog log levels to Graylog2 log priorities.
+ */
+ private $logLevels = array(
+ Logger::DEBUG => 7,
+ Logger::INFO => 6,
+ Logger::NOTICE => 5,
+ Logger::WARNING => 4,
+ Logger::ERROR => 3,
+ Logger::CRITICAL => 2,
+ Logger::ALERT => 1,
+ Logger::EMERGENCY => 0,
+ );
+
+ public function __construct($systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_', $maxLength = null)
+ {
+ parent::__construct('U.u');
+
+ $this->systemName = $systemName ?: gethostname();
+
+ $this->extraPrefix = $extraPrefix;
+ $this->contextPrefix = $contextPrefix;
+ $this->maxLength = is_null($maxLength) ? self::DEFAULT_MAX_LENGTH : $maxLength;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ $record = parent::format($record);
+
+ if (!isset($record['datetime'], $record['message'], $record['level'])) {
+ throw new \InvalidArgumentException('The record should at least contain datetime, message and level keys, '.var_export($record, true).' given');
+ }
+
+ $message = new Message();
+ $message
+ ->setTimestamp($record['datetime'])
+ ->setShortMessage((string) $record['message'])
+ ->setHost($this->systemName)
+ ->setLevel($this->logLevels[$record['level']]);
+
+ // message length + system name length + 200 for padding / metadata
+ $len = 200 + strlen((string) $record['message']) + strlen($this->systemName);
+
+ if ($len > $this->maxLength) {
+ $message->setShortMessage(substr($record['message'], 0, $this->maxLength));
+ }
+
+ if (isset($record['channel'])) {
+ $message->setFacility($record['channel']);
+ }
+ if (isset($record['extra']['line'])) {
+ $message->setLine($record['extra']['line']);
+ unset($record['extra']['line']);
+ }
+ if (isset($record['extra']['file'])) {
+ $message->setFile($record['extra']['file']);
+ unset($record['extra']['file']);
+ }
+
+ foreach ($record['extra'] as $key => $val) {
+ $val = is_scalar($val) || null === $val ? $val : $this->toJson($val);
+ $len = strlen($this->extraPrefix . $key . $val);
+ if ($len > $this->maxLength) {
+ $message->setAdditional($this->extraPrefix . $key, substr($val, 0, $this->maxLength));
+ break;
+ }
+ $message->setAdditional($this->extraPrefix . $key, $val);
+ }
+
+ foreach ($record['context'] as $key => $val) {
+ $val = is_scalar($val) || null === $val ? $val : $this->toJson($val);
+ $len = strlen($this->contextPrefix . $key . $val);
+ if ($len > $this->maxLength) {
+ $message->setAdditional($this->contextPrefix . $key, substr($val, 0, $this->maxLength));
+ break;
+ }
+ $message->setAdditional($this->contextPrefix . $key, $val);
+ }
+
+ if (null === $message->getFile() && isset($record['context']['exception']['file'])) {
+ if (preg_match("/^(.+):([0-9]+)$/", $record['context']['exception']['file'], $matches)) {
+ $message->setFile($matches[1]);
+ $message->setLine($matches[2]);
+ }
+ }
+
+ return $message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
new file mode 100644
index 00000000..3eec95f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
@@ -0,0 +1,141 @@
+<?php
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+/**
+ * Formats incoming records into an HTML table
+ *
+ * This is especially useful for html email logging
+ *
+ * @author Tiago Brito <tlfbrito@gmail.com>
+ */
+class HtmlFormatter extends NormalizerFormatter
+{
+ /**
+ * Translates Monolog log levels to html color priorities.
+ */
+ protected $logLevels = array(
+ Logger::DEBUG => '#cccccc',
+ Logger::INFO => '#468847',
+ Logger::NOTICE => '#3a87ad',
+ Logger::WARNING => '#c09853',
+ Logger::ERROR => '#f0ad4e',
+ Logger::CRITICAL => '#FF7708',
+ Logger::ALERT => '#C12A19',
+ Logger::EMERGENCY => '#000000',
+ );
+
+ /**
+ * @param string $dateFormat The format of the timestamp: one supported by DateTime::format
+ */
+ public function __construct($dateFormat = null)
+ {
+ parent::__construct($dateFormat);
+ }
+
+ /**
+ * Creates an HTML table row
+ *
+ * @param string $th Row header content
+ * @param string $td Row standard cell content
+ * @param bool $escapeTd false if td content must not be html escaped
+ * @return string
+ */
+ protected function addRow($th, $td = ' ', $escapeTd = true)
+ {
+ $th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8');
+ if ($escapeTd) {
+ $td = '<pre>'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').'</pre>';
+ }
+
+ return "<tr style=\"padding: 4px;spacing: 0;text-align: left;\">\n<th style=\"background: #cccccc\" width=\"100px\">$th:</th>\n<td style=\"padding: 4px;spacing: 0;text-align: left;background: #eeeeee\">".$td."</td>\n</tr>";
+ }
+
+ /**
+ * Create a HTML h1 tag
+ *
+ * @param string $title Text to be in the h1
+ * @param int $level Error level
+ * @return string
+ */
+ protected function addTitle($title, $level)
+ {
+ $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8');
+
+ return '<h1 style="background: '.$this->logLevels[$level].';color: #ffffff;padding: 5px;" class="monolog-output">'.$title.'</h1>';
+ }
+
+ /**
+ * Formats a log record.
+ *
+ * @param array $record A record to format
+ * @return mixed The formatted record
+ */
+ public function format(array $record)
+ {
+ $output = $this->addTitle($record['level_name'], $record['level']);
+ $output .= '<table cellspacing="1" width="100%" class="monolog-output">';
+
+ $output .= $this->addRow('Message', (string) $record['message']);
+ $output .= $this->addRow('Time', $record['datetime']->format($this->dateFormat));
+ $output .= $this->addRow('Channel', $record['channel']);
+ if ($record['context']) {
+ $embeddedTable = '<table cellspacing="1" width="100%">';
+ foreach ($record['context'] as $key => $value) {
+ $embeddedTable .= $this->addRow($key, $this->convertToString($value));
+ }
+ $embeddedTable .= '</table>';
+ $output .= $this->addRow('Context', $embeddedTable, false);
+ }
+ if ($record['extra']) {
+ $embeddedTable = '<table cellspacing="1" width="100%">';
+ foreach ($record['extra'] as $key => $value) {
+ $embeddedTable .= $this->addRow($key, $this->convertToString($value));
+ }
+ $embeddedTable .= '</table>';
+ $output .= $this->addRow('Extra', $embeddedTable, false);
+ }
+
+ return $output.'</table>';
+ }
+
+ /**
+ * Formats a set of log records.
+ *
+ * @param array $records A set of records to format
+ * @return mixed The formatted set of records
+ */
+ public function formatBatch(array $records)
+ {
+ $message = '';
+ foreach ($records as $record) {
+ $message .= $this->format($record);
+ }
+
+ return $message;
+ }
+
+ protected function convertToString($data)
+ {
+ if (null === $data || is_scalar($data)) {
+ return (string) $data;
+ }
+
+ $data = $this->normalize($data);
+ if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ return json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
+ }
+
+ return str_replace('\\/', '/', json_encode($data));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
new file mode 100644
index 00000000..0782f149
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
@@ -0,0 +1,208 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Exception;
+use Throwable;
+
+/**
+ * Encodes whatever record data is passed to it as json
+ *
+ * This can be useful to log to databases or remote APIs
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class JsonFormatter extends NormalizerFormatter
+{
+ const BATCH_MODE_JSON = 1;
+ const BATCH_MODE_NEWLINES = 2;
+
+ protected $batchMode;
+ protected $appendNewline;
+
+ /**
+ * @var bool
+ */
+ protected $includeStacktraces = false;
+
+ /**
+ * @param int $batchMode
+ * @param bool $appendNewline
+ */
+ public function __construct($batchMode = self::BATCH_MODE_JSON, $appendNewline = true)
+ {
+ $this->batchMode = $batchMode;
+ $this->appendNewline = $appendNewline;
+ }
+
+ /**
+ * The batch mode option configures the formatting style for
+ * multiple records. By default, multiple records will be
+ * formatted as a JSON-encoded array. However, for
+ * compatibility with some API endpoints, alternative styles
+ * are available.
+ *
+ * @return int
+ */
+ public function getBatchMode()
+ {
+ return $this->batchMode;
+ }
+
+ /**
+ * True if newlines are appended to every formatted record
+ *
+ * @return bool
+ */
+ public function isAppendingNewlines()
+ {
+ return $this->appendNewline;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ return $this->toJson($this->normalize($record), true) . ($this->appendNewline ? "\n" : '');
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function formatBatch(array $records)
+ {
+ switch ($this->batchMode) {
+ case static::BATCH_MODE_NEWLINES:
+ return $this->formatBatchNewlines($records);
+
+ case static::BATCH_MODE_JSON:
+ default:
+ return $this->formatBatchJson($records);
+ }
+ }
+
+ /**
+ * @param bool $include
+ */
+ public function includeStacktraces($include = true)
+ {
+ $this->includeStacktraces = $include;
+ }
+
+ /**
+ * Return a JSON-encoded array of records.
+ *
+ * @param array $records
+ * @return string
+ */
+ protected function formatBatchJson(array $records)
+ {
+ return $this->toJson($this->normalize($records), true);
+ }
+
+ /**
+ * Use new lines to separate records instead of a
+ * JSON-encoded array.
+ *
+ * @param array $records
+ * @return string
+ */
+ protected function formatBatchNewlines(array $records)
+ {
+ $instance = $this;
+
+ $oldNewline = $this->appendNewline;
+ $this->appendNewline = false;
+ array_walk($records, function (&$value, $key) use ($instance) {
+ $value = $instance->format($value);
+ });
+ $this->appendNewline = $oldNewline;
+
+ return implode("\n", $records);
+ }
+
+ /**
+ * Normalizes given $data.
+ *
+ * @param mixed $data
+ *
+ * @return mixed
+ */
+ protected function normalize($data)
+ {
+ if (is_array($data) || $data instanceof \Traversable) {
+ $normalized = array();
+
+ $count = 1;
+ foreach ($data as $key => $value) {
+ if ($count++ >= 1000) {
+ $normalized['...'] = 'Over 1000 items, aborting normalization';
+ break;
+ }
+ $normalized[$key] = $this->normalize($value);
+ }
+
+ return $normalized;
+ }
+
+ if ($data instanceof Exception || $data instanceof Throwable) {
+ return $this->normalizeException($data);
+ }
+
+ return $data;
+ }
+
+ /**
+ * Normalizes given exception with or without its own stack trace based on
+ * `includeStacktraces` property.
+ *
+ * @param Exception|Throwable $e
+ *
+ * @return array
+ */
+ protected function normalizeException($e)
+ {
+ // TODO 2.0 only check for Throwable
+ if (!$e instanceof Exception && !$e instanceof Throwable) {
+ throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.get_class($e));
+ }
+
+ $data = array(
+ 'class' => get_class($e),
+ 'message' => $e->getMessage(),
+ 'code' => $e->getCode(),
+ 'file' => $e->getFile().':'.$e->getLine(),
+ );
+
+ if ($this->includeStacktraces) {
+ $trace = $e->getTrace();
+ foreach ($trace as $frame) {
+ if (isset($frame['file'])) {
+ $data['trace'][] = $frame['file'].':'.$frame['line'];
+ } elseif (isset($frame['function']) && $frame['function'] === '{closure}') {
+ // We should again normalize the frames, because it might contain invalid items
+ $data['trace'][] = $frame['function'];
+ } else {
+ // We should again normalize the frames, because it might contain invalid items
+ $data['trace'][] = $this->normalize($frame);
+ }
+ }
+ }
+
+ if ($previous = $e->getPrevious()) {
+ $data['previous'] = $this->normalizeException($previous);
+ }
+
+ return $data;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LineFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
new file mode 100644
index 00000000..d3e209e6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
@@ -0,0 +1,179 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * Formats incoming records into a one-line string
+ *
+ * This is especially useful for logging to files
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ * @author Christophe Coevoet <stof@notk.org>
+ */
+class LineFormatter extends NormalizerFormatter
+{
+ const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n";
+
+ protected $format;
+ protected $allowInlineLineBreaks;
+ protected $ignoreEmptyContextAndExtra;
+ protected $includeStacktraces;
+
+ /**
+ * @param string $format The format of the message
+ * @param string $dateFormat The format of the timestamp: one supported by DateTime::format
+ * @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries
+ * @param bool $ignoreEmptyContextAndExtra
+ */
+ public function __construct($format = null, $dateFormat = null, $allowInlineLineBreaks = false, $ignoreEmptyContextAndExtra = false)
+ {
+ $this->format = $format ?: static::SIMPLE_FORMAT;
+ $this->allowInlineLineBreaks = $allowInlineLineBreaks;
+ $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra;
+ parent::__construct($dateFormat);
+ }
+
+ public function includeStacktraces($include = true)
+ {
+ $this->includeStacktraces = $include;
+ if ($this->includeStacktraces) {
+ $this->allowInlineLineBreaks = true;
+ }
+ }
+
+ public function allowInlineLineBreaks($allow = true)
+ {
+ $this->allowInlineLineBreaks = $allow;
+ }
+
+ public function ignoreEmptyContextAndExtra($ignore = true)
+ {
+ $this->ignoreEmptyContextAndExtra = $ignore;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ $vars = parent::format($record);
+
+ $output = $this->format;
+
+ foreach ($vars['extra'] as $var => $val) {
+ if (false !== strpos($output, '%extra.'.$var.'%')) {
+ $output = str_replace('%extra.'.$var.'%', $this->stringify($val), $output);
+ unset($vars['extra'][$var]);
+ }
+ }
+
+
+ foreach ($vars['context'] as $var => $val) {
+ if (false !== strpos($output, '%context.'.$var.'%')) {
+ $output = str_replace('%context.'.$var.'%', $this->stringify($val), $output);
+ unset($vars['context'][$var]);
+ }
+ }
+
+ if ($this->ignoreEmptyContextAndExtra) {
+ if (empty($vars['context'])) {
+ unset($vars['context']);
+ $output = str_replace('%context%', '', $output);
+ }
+
+ if (empty($vars['extra'])) {
+ unset($vars['extra']);
+ $output = str_replace('%extra%', '', $output);
+ }
+ }
+
+ foreach ($vars as $var => $val) {
+ if (false !== strpos($output, '%'.$var.'%')) {
+ $output = str_replace('%'.$var.'%', $this->stringify($val), $output);
+ }
+ }
+
+ // remove leftover %extra.xxx% and %context.xxx% if any
+ if (false !== strpos($output, '%')) {
+ $output = preg_replace('/%(?:extra|context)\..+?%/', '', $output);
+ }
+
+ return $output;
+ }
+
+ public function formatBatch(array $records)
+ {
+ $message = '';
+ foreach ($records as $record) {
+ $message .= $this->format($record);
+ }
+
+ return $message;
+ }
+
+ public function stringify($value)
+ {
+ return $this->replaceNewlines($this->convertToString($value));
+ }
+
+ protected function normalizeException($e)
+ {
+ // TODO 2.0 only check for Throwable
+ if (!$e instanceof \Exception && !$e instanceof \Throwable) {
+ throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.get_class($e));
+ }
+
+ $previousText = '';
+ if ($previous = $e->getPrevious()) {
+ do {
+ $previousText .= ', '.get_class($previous).'(code: '.$previous->getCode().'): '.$previous->getMessage().' at '.$previous->getFile().':'.$previous->getLine();
+ } while ($previous = $previous->getPrevious());
+ }
+
+ $str = '[object] ('.get_class($e).'(code: '.$e->getCode().'): '.$e->getMessage().' at '.$e->getFile().':'.$e->getLine().$previousText.')';
+ if ($this->includeStacktraces) {
+ $str .= "\n[stacktrace]\n".$e->getTraceAsString()."\n";
+ }
+
+ return $str;
+ }
+
+ protected function convertToString($data)
+ {
+ if (null === $data || is_bool($data)) {
+ return var_export($data, true);
+ }
+
+ if (is_scalar($data)) {
+ return (string) $data;
+ }
+
+ if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ return $this->toJson($data, true);
+ }
+
+ return str_replace('\\/', '/', @json_encode($data));
+ }
+
+ protected function replaceNewlines($str)
+ {
+ if ($this->allowInlineLineBreaks) {
+ if (0 === strpos($str, '{')) {
+ return str_replace(array('\r', '\n'), array("\r", "\n"), $str);
+ }
+
+ return $str;
+ }
+
+ return str_replace(array("\r\n", "\r", "\n"), ' ', $str);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php
new file mode 100644
index 00000000..401859bb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php
@@ -0,0 +1,47 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * Encodes message information into JSON in a format compatible with Loggly.
+ *
+ * @author Adam Pancutt <adam@pancutt.com>
+ */
+class LogglyFormatter extends JsonFormatter
+{
+ /**
+ * Overrides the default batch mode to new lines for compatibility with the
+ * Loggly bulk API.
+ *
+ * @param int $batchMode
+ */
+ public function __construct($batchMode = self::BATCH_MODE_NEWLINES, $appendNewline = false)
+ {
+ parent::__construct($batchMode, $appendNewline);
+ }
+
+ /**
+ * Appends the 'timestamp' parameter for indexing by Loggly.
+ *
+ * @see https://www.loggly.com/docs/automated-parsing/#json
+ * @see \Monolog\Formatter\JsonFormatter::format()
+ */
+ public function format(array $record)
+ {
+ if (isset($record["datetime"]) && ($record["datetime"] instanceof \DateTime)) {
+ $record["timestamp"] = $record["datetime"]->format("Y-m-d\TH:i:s.uO");
+ // TODO 2.0 unset the 'datetime' parameter, retained for BC
+ }
+
+ return parent::format($record);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php
new file mode 100644
index 00000000..8f83bec0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php
@@ -0,0 +1,166 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * Serializes a log message to Logstash Event Format
+ *
+ * @see http://logstash.net/
+ * @see https://github.com/logstash/logstash/blob/master/lib/logstash/event.rb
+ *
+ * @author Tim Mower <timothy.mower@gmail.com>
+ */
+class LogstashFormatter extends NormalizerFormatter
+{
+ const V0 = 0;
+ const V1 = 1;
+
+ /**
+ * @var string the name of the system for the Logstash log message, used to fill the @source field
+ */
+ protected $systemName;
+
+ /**
+ * @var string an application name for the Logstash log message, used to fill the @type field
+ */
+ protected $applicationName;
+
+ /**
+ * @var string a prefix for 'extra' fields from the Monolog record (optional)
+ */
+ protected $extraPrefix;
+
+ /**
+ * @var string a prefix for 'context' fields from the Monolog record (optional)
+ */
+ protected $contextPrefix;
+
+ /**
+ * @var int logstash format version to use
+ */
+ protected $version;
+
+ /**
+ * @param string $applicationName the application that sends the data, used as the "type" field of logstash
+ * @param string $systemName the system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine
+ * @param string $extraPrefix prefix for extra keys inside logstash "fields"
+ * @param string $contextPrefix prefix for context keys inside logstash "fields", defaults to ctxt_
+ * @param int $version the logstash format version to use, defaults to 0
+ */
+ public function __construct($applicationName, $systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_', $version = self::V0)
+ {
+ // logstash requires a ISO 8601 format date with optional millisecond precision.
+ parent::__construct('Y-m-d\TH:i:s.uP');
+
+ $this->systemName = $systemName ?: gethostname();
+ $this->applicationName = $applicationName;
+ $this->extraPrefix = $extraPrefix;
+ $this->contextPrefix = $contextPrefix;
+ $this->version = $version;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ $record = parent::format($record);
+
+ if ($this->version === self::V1) {
+ $message = $this->formatV1($record);
+ } else {
+ $message = $this->formatV0($record);
+ }
+
+ return $this->toJson($message) . "\n";
+ }
+
+ protected function formatV0(array $record)
+ {
+ if (empty($record['datetime'])) {
+ $record['datetime'] = gmdate('c');
+ }
+ $message = array(
+ '@timestamp' => $record['datetime'],
+ '@source' => $this->systemName,
+ '@fields' => array(),
+ );
+ if (isset($record['message'])) {
+ $message['@message'] = $record['message'];
+ }
+ if (isset($record['channel'])) {
+ $message['@tags'] = array($record['channel']);
+ $message['@fields']['channel'] = $record['channel'];
+ }
+ if (isset($record['level'])) {
+ $message['@fields']['level'] = $record['level'];
+ }
+ if ($this->applicationName) {
+ $message['@type'] = $this->applicationName;
+ }
+ if (isset($record['extra']['server'])) {
+ $message['@source_host'] = $record['extra']['server'];
+ }
+ if (isset($record['extra']['url'])) {
+ $message['@source_path'] = $record['extra']['url'];
+ }
+ if (!empty($record['extra'])) {
+ foreach ($record['extra'] as $key => $val) {
+ $message['@fields'][$this->extraPrefix . $key] = $val;
+ }
+ }
+ if (!empty($record['context'])) {
+ foreach ($record['context'] as $key => $val) {
+ $message['@fields'][$this->contextPrefix . $key] = $val;
+ }
+ }
+
+ return $message;
+ }
+
+ protected function formatV1(array $record)
+ {
+ if (empty($record['datetime'])) {
+ $record['datetime'] = gmdate('c');
+ }
+ $message = array(
+ '@timestamp' => $record['datetime'],
+ '@version' => 1,
+ 'host' => $this->systemName,
+ );
+ if (isset($record['message'])) {
+ $message['message'] = $record['message'];
+ }
+ if (isset($record['channel'])) {
+ $message['type'] = $record['channel'];
+ $message['channel'] = $record['channel'];
+ }
+ if (isset($record['level_name'])) {
+ $message['level'] = $record['level_name'];
+ }
+ if ($this->applicationName) {
+ $message['type'] = $this->applicationName;
+ }
+ if (!empty($record['extra'])) {
+ foreach ($record['extra'] as $key => $val) {
+ $message[$this->extraPrefix . $key] = $val;
+ }
+ }
+ if (!empty($record['context'])) {
+ foreach ($record['context'] as $key => $val) {
+ $message[$this->contextPrefix . $key] = $val;
+ }
+ }
+
+ return $message;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
new file mode 100644
index 00000000..eb067bb7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
@@ -0,0 +1,105 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * Formats a record for use with the MongoDBHandler.
+ *
+ * @author Florian Plattner <me@florianplattner.de>
+ */
+class MongoDBFormatter implements FormatterInterface
+{
+ private $exceptionTraceAsString;
+ private $maxNestingLevel;
+
+ /**
+ * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record['context'] is 2
+ * @param bool $exceptionTraceAsString set to false to log exception traces as a sub documents instead of strings
+ */
+ public function __construct($maxNestingLevel = 3, $exceptionTraceAsString = true)
+ {
+ $this->maxNestingLevel = max($maxNestingLevel, 0);
+ $this->exceptionTraceAsString = (bool) $exceptionTraceAsString;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function format(array $record)
+ {
+ return $this->formatArray($record);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function formatBatch(array $records)
+ {
+ foreach ($records as $key => $record) {
+ $records[$key] = $this->format($record);
+ }
+
+ return $records;
+ }
+
+ protected function formatArray(array $record, $nestingLevel = 0)
+ {
+ if ($this->maxNestingLevel == 0 || $nestingLevel <= $this->maxNestingLevel) {
+ foreach ($record as $name => $value) {
+ if ($value instanceof \DateTime) {
+ $record[$name] = $this->formatDate($value, $nestingLevel + 1);
+ } elseif ($value instanceof \Exception) {
+ $record[$name] = $this->formatException($value, $nestingLevel + 1);
+ } elseif (is_array($value)) {
+ $record[$name] = $this->formatArray($value, $nestingLevel + 1);
+ } elseif (is_object($value)) {
+ $record[$name] = $this->formatObject($value, $nestingLevel + 1);
+ }
+ }
+ } else {
+ $record = '[...]';
+ }
+
+ return $record;
+ }
+
+ protected function formatObject($value, $nestingLevel)
+ {
+ $objectVars = get_object_vars($value);
+ $objectVars['class'] = get_class($value);
+
+ return $this->formatArray($objectVars, $nestingLevel);
+ }
+
+ protected function formatException(\Exception $exception, $nestingLevel)
+ {
+ $formattedException = array(
+ 'class' => get_class($exception),
+ 'message' => $exception->getMessage(),
+ 'code' => $exception->getCode(),
+ 'file' => $exception->getFile() . ':' . $exception->getLine(),
+ );
+
+ if ($this->exceptionTraceAsString === true) {
+ $formattedException['trace'] = $exception->getTraceAsString();
+ } else {
+ $formattedException['trace'] = $exception->getTrace();
+ }
+
+ return $this->formatArray($formattedException, $nestingLevel);
+ }
+
+ protected function formatDate(\DateTime $value, $nestingLevel)
+ {
+ return new \MongoDate($value->getTimestamp());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
new file mode 100644
index 00000000..d4414882
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
@@ -0,0 +1,297 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Exception;
+
+/**
+ * Normalizes incoming records to remove objects/resources so it's easier to dump to various targets
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class NormalizerFormatter implements FormatterInterface
+{
+ const SIMPLE_DATE = "Y-m-d H:i:s";
+
+ protected $dateFormat;
+
+ /**
+ * @param string $dateFormat The format of the timestamp: one supported by DateTime::format
+ */
+ public function __construct($dateFormat = null)
+ {
+ $this->dateFormat = $dateFormat ?: static::SIMPLE_DATE;
+ if (!function_exists('json_encode')) {
+ throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter');
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ return $this->normalize($record);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function formatBatch(array $records)
+ {
+ foreach ($records as $key => $record) {
+ $records[$key] = $this->format($record);
+ }
+
+ return $records;
+ }
+
+ protected function normalize($data)
+ {
+ if (null === $data || is_scalar($data)) {
+ if (is_float($data)) {
+ if (is_infinite($data)) {
+ return ($data > 0 ? '' : '-') . 'INF';
+ }
+ if (is_nan($data)) {
+ return 'NaN';
+ }
+ }
+
+ return $data;
+ }
+
+ if (is_array($data)) {
+ $normalized = array();
+
+ $count = 1;
+ foreach ($data as $key => $value) {
+ if ($count++ >= 1000) {
+ $normalized['...'] = 'Over 1000 items ('.count($data).' total), aborting normalization';
+ break;
+ }
+ $normalized[$key] = $this->normalize($value);
+ }
+
+ return $normalized;
+ }
+
+ if ($data instanceof \DateTime) {
+ return $data->format($this->dateFormat);
+ }
+
+ if (is_object($data)) {
+ // TODO 2.0 only check for Throwable
+ if ($data instanceof Exception || (PHP_VERSION_ID > 70000 && $data instanceof \Throwable)) {
+ return $this->normalizeException($data);
+ }
+
+ // non-serializable objects that implement __toString stringified
+ if (method_exists($data, '__toString') && !$data instanceof \JsonSerializable) {
+ $value = $data->__toString();
+ } else {
+ // the rest is json-serialized in some way
+ $value = $this->toJson($data, true);
+ }
+
+ return sprintf("[object] (%s: %s)", get_class($data), $value);
+ }
+
+ if (is_resource($data)) {
+ return sprintf('[resource] (%s)', get_resource_type($data));
+ }
+
+ return '[unknown('.gettype($data).')]';
+ }
+
+ protected function normalizeException($e)
+ {
+ // TODO 2.0 only check for Throwable
+ if (!$e instanceof Exception && !$e instanceof \Throwable) {
+ throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.get_class($e));
+ }
+
+ $data = array(
+ 'class' => get_class($e),
+ 'message' => $e->getMessage(),
+ 'code' => $e->getCode(),
+ 'file' => $e->getFile().':'.$e->getLine(),
+ );
+
+ if ($e instanceof \SoapFault) {
+ if (isset($e->faultcode)) {
+ $data['faultcode'] = $e->faultcode;
+ }
+
+ if (isset($e->faultactor)) {
+ $data['faultactor'] = $e->faultactor;
+ }
+
+ if (isset($e->detail)) {
+ $data['detail'] = $e->detail;
+ }
+ }
+
+ $trace = $e->getTrace();
+ foreach ($trace as $frame) {
+ if (isset($frame['file'])) {
+ $data['trace'][] = $frame['file'].':'.$frame['line'];
+ } elseif (isset($frame['function']) && $frame['function'] === '{closure}') {
+ // We should again normalize the frames, because it might contain invalid items
+ $data['trace'][] = $frame['function'];
+ } else {
+ // We should again normalize the frames, because it might contain invalid items
+ $data['trace'][] = $this->toJson($this->normalize($frame), true);
+ }
+ }
+
+ if ($previous = $e->getPrevious()) {
+ $data['previous'] = $this->normalizeException($previous);
+ }
+
+ return $data;
+ }
+
+ /**
+ * Return the JSON representation of a value
+ *
+ * @param mixed $data
+ * @param bool $ignoreErrors
+ * @throws \RuntimeException if encoding fails and errors are not ignored
+ * @return string
+ */
+ protected function toJson($data, $ignoreErrors = false)
+ {
+ // suppress json_encode errors since it's twitchy with some inputs
+ if ($ignoreErrors) {
+ return @$this->jsonEncode($data);
+ }
+
+ $json = $this->jsonEncode($data);
+
+ if ($json === false) {
+ $json = $this->handleJsonError(json_last_error(), $data);
+ }
+
+ return $json;
+ }
+
+ /**
+ * @param mixed $data
+ * @return string JSON encoded data or null on failure
+ */
+ private function jsonEncode($data)
+ {
+ if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
+ }
+
+ return json_encode($data);
+ }
+
+ /**
+ * Handle a json_encode failure.
+ *
+ * If the failure is due to invalid string encoding, try to clean the
+ * input and encode again. If the second encoding attempt fails, the
+ * inital error is not encoding related or the input can't be cleaned then
+ * raise a descriptive exception.
+ *
+ * @param int $code return code of json_last_error function
+ * @param mixed $data data that was meant to be encoded
+ * @throws \RuntimeException if failure can't be corrected
+ * @return string JSON encoded data after error correction
+ */
+ private function handleJsonError($code, $data)
+ {
+ if ($code !== JSON_ERROR_UTF8) {
+ $this->throwEncodeError($code, $data);
+ }
+
+ if (is_string($data)) {
+ $this->detectAndCleanUtf8($data);
+ } elseif (is_array($data)) {
+ array_walk_recursive($data, array($this, 'detectAndCleanUtf8'));
+ } else {
+ $this->throwEncodeError($code, $data);
+ }
+
+ $json = $this->jsonEncode($data);
+
+ if ($json === false) {
+ $this->throwEncodeError(json_last_error(), $data);
+ }
+
+ return $json;
+ }
+
+ /**
+ * Throws an exception according to a given code with a customized message
+ *
+ * @param int $code return code of json_last_error function
+ * @param mixed $data data that was meant to be encoded
+ * @throws \RuntimeException
+ */
+ private function throwEncodeError($code, $data)
+ {
+ switch ($code) {
+ case JSON_ERROR_DEPTH:
+ $msg = 'Maximum stack depth exceeded';
+ break;
+ case JSON_ERROR_STATE_MISMATCH:
+ $msg = 'Underflow or the modes mismatch';
+ break;
+ case JSON_ERROR_CTRL_CHAR:
+ $msg = 'Unexpected control character found';
+ break;
+ case JSON_ERROR_UTF8:
+ $msg = 'Malformed UTF-8 characters, possibly incorrectly encoded';
+ break;
+ default:
+ $msg = 'Unknown error';
+ }
+
+ throw new \RuntimeException('JSON encoding failed: '.$msg.'. Encoding: '.var_export($data, true));
+ }
+
+ /**
+ * Detect invalid UTF-8 string characters and convert to valid UTF-8.
+ *
+ * Valid UTF-8 input will be left unmodified, but strings containing
+ * invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed
+ * original encoding of ISO-8859-15. This conversion may result in
+ * incorrect output if the actual encoding was not ISO-8859-15, but it
+ * will be clean UTF-8 output and will not rely on expensive and fragile
+ * detection algorithms.
+ *
+ * Function converts the input in place in the passed variable so that it
+ * can be used as a callback for array_walk_recursive.
+ *
+ * @param mixed &$data Input to check and convert if needed
+ * @private
+ */
+ public function detectAndCleanUtf8(&$data)
+ {
+ if (is_string($data) && !preg_match('//u', $data)) {
+ $data = preg_replace_callback(
+ '/[\x80-\xFF]+/',
+ function ($m) { return utf8_encode($m[0]); },
+ $data
+ );
+ $data = str_replace(
+ array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'),
+ array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'),
+ $data
+ );
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php
new file mode 100644
index 00000000..5d345d53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php
@@ -0,0 +1,48 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * Formats data into an associative array of scalar values.
+ * Objects and arrays will be JSON encoded.
+ *
+ * @author Andrew Lawson <adlawson@gmail.com>
+ */
+class ScalarFormatter extends NormalizerFormatter
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ foreach ($record as $key => $value) {
+ $record[$key] = $this->normalizeValue($value);
+ }
+
+ return $record;
+ }
+
+ /**
+ * @param mixed $value
+ * @return mixed
+ */
+ protected function normalizeValue($value)
+ {
+ $normalized = $this->normalize($value);
+
+ if (is_array($normalized) || is_object($normalized)) {
+ return $this->toJson($normalized, true);
+ }
+
+ return $normalized;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php
new file mode 100644
index 00000000..654710a8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php
@@ -0,0 +1,113 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+/**
+ * Serializes a log message according to Wildfire's header requirements
+ *
+ * @author Eric Clemmons (@ericclemmons) <eric@uxdriven.com>
+ * @author Christophe Coevoet <stof@notk.org>
+ * @author Kirill chEbba Chebunin <iam@chebba.org>
+ */
+class WildfireFormatter extends NormalizerFormatter
+{
+ const TABLE = 'table';
+
+ /**
+ * Translates Monolog log levels to Wildfire levels.
+ */
+ private $logLevels = array(
+ Logger::DEBUG => 'LOG',
+ Logger::INFO => 'INFO',
+ Logger::NOTICE => 'INFO',
+ Logger::WARNING => 'WARN',
+ Logger::ERROR => 'ERROR',
+ Logger::CRITICAL => 'ERROR',
+ Logger::ALERT => 'ERROR',
+ Logger::EMERGENCY => 'ERROR',
+ );
+
+ /**
+ * {@inheritdoc}
+ */
+ public function format(array $record)
+ {
+ // Retrieve the line and file if set and remove them from the formatted extra
+ $file = $line = '';
+ if (isset($record['extra']['file'])) {
+ $file = $record['extra']['file'];
+ unset($record['extra']['file']);
+ }
+ if (isset($record['extra']['line'])) {
+ $line = $record['extra']['line'];
+ unset($record['extra']['line']);
+ }
+
+ $record = $this->normalize($record);
+ $message = array('message' => $record['message']);
+ $handleError = false;
+ if ($record['context']) {
+ $message['context'] = $record['context'];
+ $handleError = true;
+ }
+ if ($record['extra']) {
+ $message['extra'] = $record['extra'];
+ $handleError = true;
+ }
+ if (count($message) === 1) {
+ $message = reset($message);
+ }
+
+ if (isset($record['context'][self::TABLE])) {
+ $type = 'TABLE';
+ $label = $record['channel'] .': '. $record['message'];
+ $message = $record['context'][self::TABLE];
+ } else {
+ $type = $this->logLevels[$record['level']];
+ $label = $record['channel'];
+ }
+
+ // Create JSON object describing the appearance of the message in the console
+ $json = $this->toJson(array(
+ array(
+ 'Type' => $type,
+ 'File' => $file,
+ 'Line' => $line,
+ 'Label' => $label,
+ ),
+ $message,
+ ), $handleError);
+
+ // The message itself is a serialization of the above JSON object + it's length
+ return sprintf(
+ '%s|%s|',
+ strlen($json),
+ $json
+ );
+ }
+
+ public function formatBatch(array $records)
+ {
+ throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter');
+ }
+
+ protected function normalize($data)
+ {
+ if (is_object($data) && !$data instanceof \DateTime) {
+ return $data;
+ }
+
+ return parent::normalize($data);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractHandler.php
new file mode 100644
index 00000000..758a425c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractHandler.php
@@ -0,0 +1,186 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\FormatterInterface;
+use Monolog\Formatter\LineFormatter;
+
+/**
+ * Base Handler class providing the Handler structure
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+abstract class AbstractHandler implements HandlerInterface
+{
+ protected $level = Logger::DEBUG;
+ protected $bubble = true;
+
+ /**
+ * @var FormatterInterface
+ */
+ protected $formatter;
+ protected $processors = array();
+
+ /**
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($level = Logger::DEBUG, $bubble = true)
+ {
+ $this->setLevel($level);
+ $this->bubble = $bubble;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function isHandling(array $record)
+ {
+ return $record['level'] >= $this->level;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ foreach ($records as $record) {
+ $this->handle($record);
+ }
+ }
+
+ /**
+ * Closes the handler.
+ *
+ * This will be called automatically when the object is destroyed
+ */
+ public function close()
+ {
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function pushProcessor($callback)
+ {
+ if (!is_callable($callback)) {
+ throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given');
+ }
+ array_unshift($this->processors, $callback);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function popProcessor()
+ {
+ if (!$this->processors) {
+ throw new \LogicException('You tried to pop from an empty processor stack.');
+ }
+
+ return array_shift($this->processors);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ $this->formatter = $formatter;
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getFormatter()
+ {
+ if (!$this->formatter) {
+ $this->formatter = $this->getDefaultFormatter();
+ }
+
+ return $this->formatter;
+ }
+
+ /**
+ * Sets minimum logging level at which this handler will be triggered.
+ *
+ * @param int|string $level Level or level name
+ * @return self
+ */
+ public function setLevel($level)
+ {
+ $this->level = Logger::toMonologLevel($level);
+
+ return $this;
+ }
+
+ /**
+ * Gets minimum logging level at which this handler will be triggered.
+ *
+ * @return int
+ */
+ public function getLevel()
+ {
+ return $this->level;
+ }
+
+ /**
+ * Sets the bubbling behavior.
+ *
+ * @param Boolean $bubble true means that this handler allows bubbling.
+ * false means that bubbling is not permitted.
+ * @return self
+ */
+ public function setBubble($bubble)
+ {
+ $this->bubble = $bubble;
+
+ return $this;
+ }
+
+ /**
+ * Gets the bubbling behavior.
+ *
+ * @return Boolean true means that this handler allows bubbling.
+ * false means that bubbling is not permitted.
+ */
+ public function getBubble()
+ {
+ return $this->bubble;
+ }
+
+ public function __destruct()
+ {
+ try {
+ $this->close();
+ } catch (\Exception $e) {
+ // do nothing
+ } catch (\Throwable $e) {
+ // do nothing
+ }
+ }
+
+ /**
+ * Gets the default formatter.
+ *
+ * @return FormatterInterface
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
new file mode 100644
index 00000000..6f18f72e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php
@@ -0,0 +1,66 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+/**
+ * Base Handler class providing the Handler structure
+ *
+ * Classes extending it should (in most cases) only implement write($record)
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ * @author Christophe Coevoet <stof@notk.org>
+ */
+abstract class AbstractProcessingHandler extends AbstractHandler
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ if (!$this->isHandling($record)) {
+ return false;
+ }
+
+ $record = $this->processRecord($record);
+
+ $record['formatted'] = $this->getFormatter()->format($record);
+
+ $this->write($record);
+
+ return false === $this->bubble;
+ }
+
+ /**
+ * Writes the record down to the log of the implementing handler
+ *
+ * @param array $record
+ * @return void
+ */
+ abstract protected function write(array $record);
+
+ /**
+ * Processes a record.
+ *
+ * @param array $record
+ * @return array
+ */
+ protected function processRecord(array $record)
+ {
+ if ($this->processors) {
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+ }
+
+ return $record;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php
new file mode 100644
index 00000000..e2b2832d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php
@@ -0,0 +1,101 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+
+/**
+ * Common syslog functionality
+ */
+abstract class AbstractSyslogHandler extends AbstractProcessingHandler
+{
+ protected $facility;
+
+ /**
+ * Translates Monolog log levels to syslog log priorities.
+ */
+ protected $logLevels = array(
+ Logger::DEBUG => LOG_DEBUG,
+ Logger::INFO => LOG_INFO,
+ Logger::NOTICE => LOG_NOTICE,
+ Logger::WARNING => LOG_WARNING,
+ Logger::ERROR => LOG_ERR,
+ Logger::CRITICAL => LOG_CRIT,
+ Logger::ALERT => LOG_ALERT,
+ Logger::EMERGENCY => LOG_EMERG,
+ );
+
+ /**
+ * List of valid log facility names.
+ */
+ protected $facilities = array(
+ 'auth' => LOG_AUTH,
+ 'authpriv' => LOG_AUTHPRIV,
+ 'cron' => LOG_CRON,
+ 'daemon' => LOG_DAEMON,
+ 'kern' => LOG_KERN,
+ 'lpr' => LOG_LPR,
+ 'mail' => LOG_MAIL,
+ 'news' => LOG_NEWS,
+ 'syslog' => LOG_SYSLOG,
+ 'user' => LOG_USER,
+ 'uucp' => LOG_UUCP,
+ );
+
+ /**
+ * @param mixed $facility
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($facility = LOG_USER, $level = Logger::DEBUG, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+
+ if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
+ $this->facilities['local0'] = LOG_LOCAL0;
+ $this->facilities['local1'] = LOG_LOCAL1;
+ $this->facilities['local2'] = LOG_LOCAL2;
+ $this->facilities['local3'] = LOG_LOCAL3;
+ $this->facilities['local4'] = LOG_LOCAL4;
+ $this->facilities['local5'] = LOG_LOCAL5;
+ $this->facilities['local6'] = LOG_LOCAL6;
+ $this->facilities['local7'] = LOG_LOCAL7;
+ } else {
+ $this->facilities['local0'] = 128; // LOG_LOCAL0
+ $this->facilities['local1'] = 136; // LOG_LOCAL1
+ $this->facilities['local2'] = 144; // LOG_LOCAL2
+ $this->facilities['local3'] = 152; // LOG_LOCAL3
+ $this->facilities['local4'] = 160; // LOG_LOCAL4
+ $this->facilities['local5'] = 168; // LOG_LOCAL5
+ $this->facilities['local6'] = 176; // LOG_LOCAL6
+ $this->facilities['local7'] = 184; // LOG_LOCAL7
+ }
+
+ // convert textual description of facility to syslog constant
+ if (array_key_exists(strtolower($facility), $this->facilities)) {
+ $facility = $this->facilities[strtolower($facility)];
+ } elseif (!in_array($facility, array_values($this->facilities), true)) {
+ throw new \UnexpectedValueException('Unknown facility value "'.$facility.'" given');
+ }
+
+ $this->facility = $facility;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AmqpHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AmqpHandler.php
new file mode 100644
index 00000000..e5a46bc0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/AmqpHandler.php
@@ -0,0 +1,148 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\JsonFormatter;
+use PhpAmqpLib\Message\AMQPMessage;
+use PhpAmqpLib\Channel\AMQPChannel;
+use AMQPExchange;
+
+class AmqpHandler extends AbstractProcessingHandler
+{
+ /**
+ * @var AMQPExchange|AMQPChannel $exchange
+ */
+ protected $exchange;
+
+ /**
+ * @var string
+ */
+ protected $exchangeName;
+
+ /**
+ * @param AMQPExchange|AMQPChannel $exchange AMQPExchange (php AMQP ext) or PHP AMQP lib channel, ready for use
+ * @param string $exchangeName
+ * @param int $level
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($exchange, $exchangeName = 'log', $level = Logger::DEBUG, $bubble = true)
+ {
+ if ($exchange instanceof AMQPExchange) {
+ $exchange->setName($exchangeName);
+ } elseif ($exchange instanceof AMQPChannel) {
+ $this->exchangeName = $exchangeName;
+ } else {
+ throw new \InvalidArgumentException('PhpAmqpLib\Channel\AMQPChannel or AMQPExchange instance required');
+ }
+ $this->exchange = $exchange;
+
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function write(array $record)
+ {
+ $data = $record["formatted"];
+ $routingKey = $this->getRoutingKey($record);
+
+ if ($this->exchange instanceof AMQPExchange) {
+ $this->exchange->publish(
+ $data,
+ $routingKey,
+ 0,
+ array(
+ 'delivery_mode' => 2,
+ 'content_type' => 'application/json',
+ )
+ );
+ } else {
+ $this->exchange->basic_publish(
+ $this->createAmqpMessage($data),
+ $this->exchangeName,
+ $routingKey
+ );
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function handleBatch(array $records)
+ {
+ if ($this->exchange instanceof AMQPExchange) {
+ parent::handleBatch($records);
+
+ return;
+ }
+
+ foreach ($records as $record) {
+ if (!$this->isHandling($record)) {
+ continue;
+ }
+
+ $record = $this->processRecord($record);
+ $data = $this->getFormatter()->format($record);
+
+ $this->exchange->batch_basic_publish(
+ $this->createAmqpMessage($data),
+ $this->exchangeName,
+ $this->getRoutingKey($record)
+ );
+ }
+
+ $this->exchange->publish_batch();
+ }
+
+ /**
+ * Gets the routing key for the AMQP exchange
+ *
+ * @param array $record
+ * @return string
+ */
+ protected function getRoutingKey(array $record)
+ {
+ $routingKey = sprintf(
+ '%s.%s',
+ // TODO 2.0 remove substr call
+ substr($record['level_name'], 0, 4),
+ $record['channel']
+ );
+
+ return strtolower($routingKey);
+ }
+
+ /**
+ * @param string $data
+ * @return AMQPMessage
+ */
+ private function createAmqpMessage($data)
+ {
+ return new AMQPMessage(
+ (string) $data,
+ array(
+ 'delivery_mode' => 2,
+ 'content_type' => 'application/json',
+ )
+ );
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
new file mode 100644
index 00000000..b3a21bd4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
@@ -0,0 +1,230 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\LineFormatter;
+
+/**
+ * Handler sending logs to browser's javascript console with no browser extension required
+ *
+ * @author Olivier Poitrey <rs@dailymotion.com>
+ */
+class BrowserConsoleHandler extends AbstractProcessingHandler
+{
+ protected static $initialized = false;
+ protected static $records = array();
+
+ /**
+ * {@inheritDoc}
+ *
+ * Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format.
+ *
+ * Example of formatted string:
+ *
+ * You can do [[blue text]]{color: blue} or [[green background]]{background-color: green; color: white}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%');
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function write(array $record)
+ {
+ // Accumulate records
+ self::$records[] = $record;
+
+ // Register shutdown handler if not already done
+ if (!self::$initialized) {
+ self::$initialized = true;
+ $this->registerShutdownFunction();
+ }
+ }
+
+ /**
+ * Convert records to javascript console commands and send it to the browser.
+ * This method is automatically called on PHP shutdown if output is HTML or Javascript.
+ */
+ public static function send()
+ {
+ $format = self::getResponseFormat();
+ if ($format === 'unknown') {
+ return;
+ }
+
+ if (count(self::$records)) {
+ if ($format === 'html') {
+ self::writeOutput('<script>' . self::generateScript() . '</script>');
+ } elseif ($format === 'js') {
+ self::writeOutput(self::generateScript());
+ }
+ self::reset();
+ }
+ }
+
+ /**
+ * Forget all logged records
+ */
+ public static function reset()
+ {
+ self::$records = array();
+ }
+
+ /**
+ * Wrapper for register_shutdown_function to allow overriding
+ */
+ protected function registerShutdownFunction()
+ {
+ if (PHP_SAPI !== 'cli') {
+ register_shutdown_function(array('Monolog\Handler\BrowserConsoleHandler', 'send'));
+ }
+ }
+
+ /**
+ * Wrapper for echo to allow overriding
+ *
+ * @param string $str
+ */
+ protected static function writeOutput($str)
+ {
+ echo $str;
+ }
+
+ /**
+ * Checks the format of the response
+ *
+ * If Content-Type is set to application/javascript or text/javascript -> js
+ * If Content-Type is set to text/html, or is unset -> html
+ * If Content-Type is anything else -> unknown
+ *
+ * @return string One of 'js', 'html' or 'unknown'
+ */
+ protected static function getResponseFormat()
+ {
+ // Check content type
+ foreach (headers_list() as $header) {
+ if (stripos($header, 'content-type:') === 0) {
+ // This handler only works with HTML and javascript outputs
+ // text/javascript is obsolete in favour of application/javascript, but still used
+ if (stripos($header, 'application/javascript') !== false || stripos($header, 'text/javascript') !== false) {
+ return 'js';
+ }
+ if (stripos($header, 'text/html') === false) {
+ return 'unknown';
+ }
+ break;
+ }
+ }
+
+ return 'html';
+ }
+
+ private static function generateScript()
+ {
+ $script = array();
+ foreach (self::$records as $record) {
+ $context = self::dump('Context', $record['context']);
+ $extra = self::dump('Extra', $record['extra']);
+
+ if (empty($context) && empty($extra)) {
+ $script[] = self::call_array('log', self::handleStyles($record['formatted']));
+ } else {
+ $script = array_merge($script,
+ array(self::call_array('groupCollapsed', self::handleStyles($record['formatted']))),
+ $context,
+ $extra,
+ array(self::call('groupEnd'))
+ );
+ }
+ }
+
+ return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);";
+ }
+
+ private static function handleStyles($formatted)
+ {
+ $args = array(self::quote('font-weight: normal'));
+ $format = '%c' . $formatted;
+ preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER);
+
+ foreach (array_reverse($matches) as $match) {
+ $args[] = self::quote(self::handleCustomStyles($match[2][0], $match[1][0]));
+ $args[] = '"font-weight: normal"';
+
+ $pos = $match[0][1];
+ $format = substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . substr($format, $pos + strlen($match[0][0]));
+ }
+
+ array_unshift($args, self::quote($format));
+
+ return $args;
+ }
+
+ private static function handleCustomStyles($style, $string)
+ {
+ static $colors = array('blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey');
+ static $labels = array();
+
+ return preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function ($m) use ($string, &$colors, &$labels) {
+ if (trim($m[1]) === 'autolabel') {
+ // Format the string as a label with consistent auto assigned background color
+ if (!isset($labels[$string])) {
+ $labels[$string] = $colors[count($labels) % count($colors)];
+ }
+ $color = $labels[$string];
+
+ return "background-color: $color; color: white; border-radius: 3px; padding: 0 2px 0 2px";
+ }
+
+ return $m[1];
+ }, $style);
+ }
+
+ private static function dump($title, array $dict)
+ {
+ $script = array();
+ $dict = array_filter($dict);
+ if (empty($dict)) {
+ return $script;
+ }
+ $script[] = self::call('log', self::quote('%c%s'), self::quote('font-weight: bold'), self::quote($title));
+ foreach ($dict as $key => $value) {
+ $value = json_encode($value);
+ if (empty($value)) {
+ $value = self::quote('');
+ }
+ $script[] = self::call('log', self::quote('%s: %o'), self::quote($key), $value);
+ }
+
+ return $script;
+ }
+
+ private static function quote($arg)
+ {
+ return '"' . addcslashes($arg, "\"\n\\") . '"';
+ }
+
+ private static function call()
+ {
+ $args = func_get_args();
+ $method = array_shift($args);
+
+ return self::call_array($method, $args);
+ }
+
+ private static function call_array($method, array $args)
+ {
+ return 'c.' . $method . '(' . implode(', ', $args) . ');';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BufferHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BufferHandler.php
new file mode 100644
index 00000000..72f89535
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/BufferHandler.php
@@ -0,0 +1,117 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Buffers all records until closing the handler and then pass them as batch.
+ *
+ * This is useful for a MailHandler to send only one mail per request instead of
+ * sending one per log message.
+ *
+ * @author Christophe Coevoet <stof@notk.org>
+ */
+class BufferHandler extends AbstractHandler
+{
+ protected $handler;
+ protected $bufferSize = 0;
+ protected $bufferLimit;
+ protected $flushOnOverflow;
+ protected $buffer = array();
+ protected $initialized = false;
+
+ /**
+ * @param HandlerInterface $handler Handler.
+ * @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param Boolean $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded
+ */
+ public function __construct(HandlerInterface $handler, $bufferLimit = 0, $level = Logger::DEBUG, $bubble = true, $flushOnOverflow = false)
+ {
+ parent::__construct($level, $bubble);
+ $this->handler = $handler;
+ $this->bufferLimit = (int) $bufferLimit;
+ $this->flushOnOverflow = $flushOnOverflow;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ if ($record['level'] < $this->level) {
+ return false;
+ }
+
+ if (!$this->initialized) {
+ // __destructor() doesn't get called on Fatal errors
+ register_shutdown_function(array($this, 'close'));
+ $this->initialized = true;
+ }
+
+ if ($this->bufferLimit > 0 && $this->bufferSize === $this->bufferLimit) {
+ if ($this->flushOnOverflow) {
+ $this->flush();
+ } else {
+ array_shift($this->buffer);
+ $this->bufferSize--;
+ }
+ }
+
+ if ($this->processors) {
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+ }
+
+ $this->buffer[] = $record;
+ $this->bufferSize++;
+
+ return false === $this->bubble;
+ }
+
+ public function flush()
+ {
+ if ($this->bufferSize === 0) {
+ return;
+ }
+
+ $this->handler->handleBatch($this->buffer);
+ $this->clear();
+ }
+
+ public function __destruct()
+ {
+ // suppress the parent behavior since we already have register_shutdown_function()
+ // to call close(), and the reference contained there will prevent this from being
+ // GC'd until the end of the request
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ $this->flush();
+ }
+
+ /**
+ * Clears the buffer without flushing any messages down to the wrapped handler.
+ */
+ public function clear()
+ {
+ $this->bufferSize = 0;
+ $this->buffer = array();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
new file mode 100644
index 00000000..785cb0c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
@@ -0,0 +1,211 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\ChromePHPFormatter;
+use Monolog\Logger;
+
+/**
+ * Handler sending logs to the ChromePHP extension (http://www.chromephp.com/)
+ *
+ * This also works out of the box with Firefox 43+
+ *
+ * @author Christophe Coevoet <stof@notk.org>
+ */
+class ChromePHPHandler extends AbstractProcessingHandler
+{
+ /**
+ * Version of the extension
+ */
+ const VERSION = '4.0';
+
+ /**
+ * Header name
+ */
+ const HEADER_NAME = 'X-ChromeLogger-Data';
+
+ /**
+ * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+)
+ */
+ const USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}';
+
+ protected static $initialized = false;
+
+ /**
+ * Tracks whether we sent too much data
+ *
+ * Chrome limits the headers to 256KB, so when we sent 240KB we stop sending
+ *
+ * @var Boolean
+ */
+ protected static $overflowed = false;
+
+ protected static $json = array(
+ 'version' => self::VERSION,
+ 'columns' => array('label', 'log', 'backtrace', 'type'),
+ 'rows' => array(),
+ );
+
+ protected static $sendHeaders = true;
+
+ /**
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($level = Logger::DEBUG, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+ if (!function_exists('json_encode')) {
+ throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s ChromePHPHandler');
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ $messages = array();
+
+ foreach ($records as $record) {
+ if ($record['level'] < $this->level) {
+ continue;
+ }
+ $messages[] = $this->processRecord($record);
+ }
+
+ if (!empty($messages)) {
+ $messages = $this->getFormatter()->formatBatch($messages);
+ self::$json['rows'] = array_merge(self::$json['rows'], $messages);
+ $this->send();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new ChromePHPFormatter();
+ }
+
+ /**
+ * Creates & sends header for a record
+ *
+ * @see sendHeader()
+ * @see send()
+ * @param array $record
+ */
+ protected function write(array $record)
+ {
+ self::$json['rows'][] = $record['formatted'];
+
+ $this->send();
+ }
+
+ /**
+ * Sends the log header
+ *
+ * @see sendHeader()
+ */
+ protected function send()
+ {
+ if (self::$overflowed || !self::$sendHeaders) {
+ return;
+ }
+
+ if (!self::$initialized) {
+ self::$initialized = true;
+
+ self::$sendHeaders = $this->headersAccepted();
+ if (!self::$sendHeaders) {
+ return;
+ }
+
+ self::$json['request_uri'] = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
+ }
+
+ $json = @json_encode(self::$json);
+ $data = base64_encode(utf8_encode($json));
+ if (strlen($data) > 240 * 1024) {
+ self::$overflowed = true;
+
+ $record = array(
+ 'message' => 'Incomplete logs, chrome header size limit reached',
+ 'context' => array(),
+ 'level' => Logger::WARNING,
+ 'level_name' => Logger::getLevelName(Logger::WARNING),
+ 'channel' => 'monolog',
+ 'datetime' => new \DateTime(),
+ 'extra' => array(),
+ );
+ self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record);
+ $json = @json_encode(self::$json);
+ $data = base64_encode(utf8_encode($json));
+ }
+
+ if (trim($data) !== '') {
+ $this->sendHeader(self::HEADER_NAME, $data);
+ }
+ }
+
+ /**
+ * Send header string to the client
+ *
+ * @param string $header
+ * @param string $content
+ */
+ protected function sendHeader($header, $content)
+ {
+ if (!headers_sent() && self::$sendHeaders) {
+ header(sprintf('%s: %s', $header, $content));
+ }
+ }
+
+ /**
+ * Verifies if the headers are accepted by the current user agent
+ *
+ * @return Boolean
+ */
+ protected function headersAccepted()
+ {
+ if (empty($_SERVER['HTTP_USER_AGENT'])) {
+ return false;
+ }
+
+ return preg_match(self::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']);
+ }
+
+ /**
+ * BC getter for the sendHeaders property that has been made static
+ */
+ public function __get($property)
+ {
+ if ('sendHeaders' !== $property) {
+ throw new \InvalidArgumentException('Undefined property '.$property);
+ }
+
+ return static::$sendHeaders;
+ }
+
+ /**
+ * BC setter for the sendHeaders property that has been made static
+ */
+ public function __set($property, $value)
+ {
+ if ('sendHeaders' !== $property) {
+ throw new \InvalidArgumentException('Undefined property '.$property);
+ }
+
+ static::$sendHeaders = $value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php
new file mode 100644
index 00000000..cc986971
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php
@@ -0,0 +1,72 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\JsonFormatter;
+use Monolog\Logger;
+
+/**
+ * CouchDB handler
+ *
+ * @author Markus Bachmann <markus.bachmann@bachi.biz>
+ */
+class CouchDBHandler extends AbstractProcessingHandler
+{
+ private $options;
+
+ public function __construct(array $options = array(), $level = Logger::DEBUG, $bubble = true)
+ {
+ $this->options = array_merge(array(
+ 'host' => 'localhost',
+ 'port' => 5984,
+ 'dbname' => 'logger',
+ 'username' => null,
+ 'password' => null,
+ ), $options);
+
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function write(array $record)
+ {
+ $basicAuth = null;
+ if ($this->options['username']) {
+ $basicAuth = sprintf('%s:%s@', $this->options['username'], $this->options['password']);
+ }
+
+ $url = 'http://'.$basicAuth.$this->options['host'].':'.$this->options['port'].'/'.$this->options['dbname'];
+ $context = stream_context_create(array(
+ 'http' => array(
+ 'method' => 'POST',
+ 'content' => $record['formatted'],
+ 'ignore_errors' => true,
+ 'max_redirects' => 0,
+ 'header' => 'Content-type: application/json',
+ ),
+ ));
+
+ if (false === @file_get_contents($url, null, $context)) {
+ throw new \RuntimeException(sprintf('Could not connect to %s', $url));
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CubeHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CubeHandler.php
new file mode 100644
index 00000000..96b3ca0c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/CubeHandler.php
@@ -0,0 +1,151 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Logs to Cube.
+ *
+ * @link http://square.github.com/cube/
+ * @author Wan Chen <kami@kamisama.me>
+ */
+class CubeHandler extends AbstractProcessingHandler
+{
+ private $udpConnection;
+ private $httpConnection;
+ private $scheme;
+ private $host;
+ private $port;
+ private $acceptedSchemes = array('http', 'udp');
+
+ /**
+ * Create a Cube handler
+ *
+ * @throws \UnexpectedValueException when given url is not a valid url.
+ * A valid url must consist of three parts : protocol://host:port
+ * Only valid protocols used by Cube are http and udp
+ */
+ public function __construct($url, $level = Logger::DEBUG, $bubble = true)
+ {
+ $urlInfo = parse_url($url);
+
+ if (!isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) {
+ throw new \UnexpectedValueException('URL "'.$url.'" is not valid');
+ }
+
+ if (!in_array($urlInfo['scheme'], $this->acceptedSchemes)) {
+ throw new \UnexpectedValueException(
+ 'Invalid protocol (' . $urlInfo['scheme'] . ').'
+ . ' Valid options are ' . implode(', ', $this->acceptedSchemes));
+ }
+
+ $this->scheme = $urlInfo['scheme'];
+ $this->host = $urlInfo['host'];
+ $this->port = $urlInfo['port'];
+
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * Establish a connection to an UDP socket
+ *
+ * @throws \LogicException when unable to connect to the socket
+ * @throws MissingExtensionException when there is no socket extension
+ */
+ protected function connectUdp()
+ {
+ if (!extension_loaded('sockets')) {
+ throw new MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler');
+ }
+
+ $this->udpConnection = socket_create(AF_INET, SOCK_DGRAM, 0);
+ if (!$this->udpConnection) {
+ throw new \LogicException('Unable to create a socket');
+ }
+
+ if (!socket_connect($this->udpConnection, $this->host, $this->port)) {
+ throw new \LogicException('Unable to connect to the socket at ' . $this->host . ':' . $this->port);
+ }
+ }
+
+ /**
+ * Establish a connection to a http server
+ * @throws \LogicException when no curl extension
+ */
+ protected function connectHttp()
+ {
+ if (!extension_loaded('curl')) {
+ throw new \LogicException('The curl extension is needed to use http URLs with the CubeHandler');
+ }
+
+ $this->httpConnection = curl_init('http://'.$this->host.':'.$this->port.'/1.0/event/put');
+
+ if (!$this->httpConnection) {
+ throw new \LogicException('Unable to connect to ' . $this->host . ':' . $this->port);
+ }
+
+ curl_setopt($this->httpConnection, CURLOPT_CUSTOMREQUEST, "POST");
+ curl_setopt($this->httpConnection, CURLOPT_RETURNTRANSFER, true);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ $date = $record['datetime'];
+
+ $data = array('time' => $date->format('Y-m-d\TH:i:s.uO'));
+ unset($record['datetime']);
+
+ if (isset($record['context']['type'])) {
+ $data['type'] = $record['context']['type'];
+ unset($record['context']['type']);
+ } else {
+ $data['type'] = $record['channel'];
+ }
+
+ $data['data'] = $record['context'];
+ $data['data']['level'] = $record['level'];
+
+ if ($this->scheme === 'http') {
+ $this->writeHttp(json_encode($data));
+ } else {
+ $this->writeUdp(json_encode($data));
+ }
+ }
+
+ private function writeUdp($data)
+ {
+ if (!$this->udpConnection) {
+ $this->connectUdp();
+ }
+
+ socket_send($this->udpConnection, $data, strlen($data), 0);
+ }
+
+ private function writeHttp($data)
+ {
+ if (!$this->httpConnection) {
+ $this->connectHttp();
+ }
+
+ curl_setopt($this->httpConnection, CURLOPT_POSTFIELDS, '['.$data.']');
+ curl_setopt($this->httpConnection, CURLOPT_HTTPHEADER, array(
+ 'Content-Type: application/json',
+ 'Content-Length: ' . strlen('['.$data.']'),
+ ));
+
+ Curl\Util::execute($this->httpConnection, 5, false);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Curl/Util.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Curl/Util.php
new file mode 100644
index 00000000..48d30b35
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Curl/Util.php
@@ -0,0 +1,57 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler\Curl;
+
+class Util
+{
+ private static $retriableErrorCodes = array(
+ CURLE_COULDNT_RESOLVE_HOST,
+ CURLE_COULDNT_CONNECT,
+ CURLE_HTTP_NOT_FOUND,
+ CURLE_READ_ERROR,
+ CURLE_OPERATION_TIMEOUTED,
+ CURLE_HTTP_POST_ERROR,
+ CURLE_SSL_CONNECT_ERROR,
+ );
+
+ /**
+ * Executes a CURL request with optional retries and exception on failure
+ *
+ * @param resource $ch curl handler
+ * @throws \RuntimeException
+ */
+ public static function execute($ch, $retries = 5, $closeAfterDone = true)
+ {
+ while ($retries--) {
+ if (curl_exec($ch) === false) {
+ $curlErrno = curl_errno($ch);
+
+ if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) {
+ $curlError = curl_error($ch);
+
+ if ($closeAfterDone) {
+ curl_close($ch);
+ }
+
+ throw new \RuntimeException(sprintf('Curl error (code %s): %s', $curlErrno, $curlError));
+ }
+
+ continue;
+ }
+
+ if ($closeAfterDone) {
+ curl_close($ch);
+ }
+ break;
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php
new file mode 100644
index 00000000..7778c22a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php
@@ -0,0 +1,169 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Simple handler wrapper that deduplicates log records across multiple requests
+ *
+ * It also includes the BufferHandler functionality and will buffer
+ * all messages until the end of the request or flush() is called.
+ *
+ * This works by storing all log records' messages above $deduplicationLevel
+ * to the file specified by $deduplicationStore. When further logs come in at the end of the
+ * request (or when flush() is called), all those above $deduplicationLevel are checked
+ * against the existing stored logs. If they match and the timestamps in the stored log is
+ * not older than $time seconds, the new log record is discarded. If no log record is new, the
+ * whole data set is discarded.
+ *
+ * This is mainly useful in combination with Mail handlers or things like Slack or HipChat handlers
+ * that send messages to people, to avoid spamming with the same message over and over in case of
+ * a major component failure like a database server being down which makes all requests fail in the
+ * same way.
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class DeduplicationHandler extends BufferHandler
+{
+ /**
+ * @var string
+ */
+ protected $deduplicationStore;
+
+ /**
+ * @var int
+ */
+ protected $deduplicationLevel;
+
+ /**
+ * @var int
+ */
+ protected $time;
+
+ /**
+ * @var bool
+ */
+ private $gc = false;
+
+ /**
+ * @param HandlerInterface $handler Handler.
+ * @param string $deduplicationStore The file/path where the deduplication log should be kept
+ * @param int $deduplicationLevel The minimum logging level for log records to be looked at for deduplication purposes
+ * @param int $time The period (in seconds) during which duplicate entries should be suppressed after a given log is sent through
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct(HandlerInterface $handler, $deduplicationStore = null, $deduplicationLevel = Logger::ERROR, $time = 60, $bubble = true)
+ {
+ parent::__construct($handler, 0, Logger::DEBUG, $bubble, false);
+
+ $this->deduplicationStore = $deduplicationStore === null ? sys_get_temp_dir() . '/monolog-dedup-' . substr(md5(__FILE__), 0, 20) .'.log' : $deduplicationStore;
+ $this->deduplicationLevel = Logger::toMonologLevel($deduplicationLevel);
+ $this->time = $time;
+ }
+
+ public function flush()
+ {
+ if ($this->bufferSize === 0) {
+ return;
+ }
+
+ $passthru = null;
+
+ foreach ($this->buffer as $record) {
+ if ($record['level'] >= $this->deduplicationLevel) {
+
+ $passthru = $passthru || !$this->isDuplicate($record);
+ if ($passthru) {
+ $this->appendRecord($record);
+ }
+ }
+ }
+
+ // default of null is valid as well as if no record matches duplicationLevel we just pass through
+ if ($passthru === true || $passthru === null) {
+ $this->handler->handleBatch($this->buffer);
+ }
+
+ $this->clear();
+
+ if ($this->gc) {
+ $this->collectLogs();
+ }
+ }
+
+ private function isDuplicate(array $record)
+ {
+ if (!file_exists($this->deduplicationStore)) {
+ return false;
+ }
+
+ $store = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
+ if (!is_array($store)) {
+ return false;
+ }
+
+ $yesterday = time() - 86400;
+ $timestampValidity = $record['datetime']->getTimestamp() - $this->time;
+ $expectedMessage = preg_replace('{[\r\n].*}', '', $record['message']);
+
+ for ($i = count($store) - 1; $i >= 0; $i--) {
+ list($timestamp, $level, $message) = explode(':', $store[$i], 3);
+
+ if ($level === $record['level_name'] && $message === $expectedMessage && $timestamp > $timestampValidity) {
+ return true;
+ }
+
+ if ($timestamp < $yesterday) {
+ $this->gc = true;
+ }
+ }
+
+ return false;
+ }
+
+ private function collectLogs()
+ {
+ if (!file_exists($this->deduplicationStore)) {
+ return false;
+ }
+
+ $handle = fopen($this->deduplicationStore, 'rw+');
+ flock($handle, LOCK_EX);
+ $validLogs = array();
+
+ $timestampValidity = time() - $this->time;
+
+ while (!feof($handle)) {
+ $log = fgets($handle);
+ if (substr($log, 0, 10) >= $timestampValidity) {
+ $validLogs[] = $log;
+ }
+ }
+
+ ftruncate($handle, 0);
+ rewind($handle);
+ foreach ($validLogs as $log) {
+ fwrite($handle, $log);
+ }
+
+ flock($handle, LOCK_UN);
+ fclose($handle);
+
+ $this->gc = false;
+ }
+
+ private function appendRecord(array $record)
+ {
+ file_put_contents($this->deduplicationStore, $record['datetime']->getTimestamp() . ':' . $record['level_name'] . ':' . preg_replace('{[\r\n].*}', '', $record['message']) . "\n", FILE_APPEND);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php
new file mode 100644
index 00000000..b91ffec9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php
@@ -0,0 +1,45 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\NormalizerFormatter;
+use Doctrine\CouchDB\CouchDBClient;
+
+/**
+ * CouchDB handler for Doctrine CouchDB ODM
+ *
+ * @author Markus Bachmann <markus.bachmann@bachi.biz>
+ */
+class DoctrineCouchDBHandler extends AbstractProcessingHandler
+{
+ private $client;
+
+ public function __construct(CouchDBClient $client, $level = Logger::DEBUG, $bubble = true)
+ {
+ $this->client = $client;
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function write(array $record)
+ {
+ $this->client->postDocument($record['formatted']);
+ }
+
+ protected function getDefaultFormatter()
+ {
+ return new NormalizerFormatter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php
new file mode 100644
index 00000000..237b71f6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php
@@ -0,0 +1,107 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Aws\Sdk;
+use Aws\DynamoDb\DynamoDbClient;
+use Aws\DynamoDb\Marshaler;
+use Monolog\Formatter\ScalarFormatter;
+use Monolog\Logger;
+
+/**
+ * Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/)
+ *
+ * @link https://github.com/aws/aws-sdk-php/
+ * @author Andrew Lawson <adlawson@gmail.com>
+ */
+class DynamoDbHandler extends AbstractProcessingHandler
+{
+ const DATE_FORMAT = 'Y-m-d\TH:i:s.uO';
+
+ /**
+ * @var DynamoDbClient
+ */
+ protected $client;
+
+ /**
+ * @var string
+ */
+ protected $table;
+
+ /**
+ * @var int
+ */
+ protected $version;
+
+ /**
+ * @var Marshaler
+ */
+ protected $marshaler;
+
+ /**
+ * @param DynamoDbClient $client
+ * @param string $table
+ * @param int $level
+ * @param bool $bubble
+ */
+ public function __construct(DynamoDbClient $client, $table, $level = Logger::DEBUG, $bubble = true)
+ {
+ if (defined('Aws\Sdk::VERSION') && version_compare(Sdk::VERSION, '3.0', '>=')) {
+ $this->version = 3;
+ $this->marshaler = new Marshaler;
+ } else {
+ $this->version = 2;
+ }
+
+ $this->client = $client;
+ $this->table = $table;
+
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ $filtered = $this->filterEmptyFields($record['formatted']);
+ if ($this->version === 3) {
+ $formatted = $this->marshaler->marshalItem($filtered);
+ } else {
+ $formatted = $this->client->formatAttributes($filtered);
+ }
+
+ $this->client->putItem(array(
+ 'TableName' => $this->table,
+ 'Item' => $formatted,
+ ));
+ }
+
+ /**
+ * @param array $record
+ * @return array
+ */
+ protected function filterEmptyFields(array $record)
+ {
+ return array_filter($record, function ($value) {
+ return !empty($value) || false === $value || 0 === $value;
+ });
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new ScalarFormatter(self::DATE_FORMAT);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php
new file mode 100644
index 00000000..81967406
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php
@@ -0,0 +1,128 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\FormatterInterface;
+use Monolog\Formatter\ElasticaFormatter;
+use Monolog\Logger;
+use Elastica\Client;
+use Elastica\Exception\ExceptionInterface;
+
+/**
+ * Elastic Search handler
+ *
+ * Usage example:
+ *
+ * $client = new \Elastica\Client();
+ * $options = array(
+ * 'index' => 'elastic_index_name',
+ * 'type' => 'elastic_doc_type',
+ * );
+ * $handler = new ElasticSearchHandler($client, $options);
+ * $log = new Logger('application');
+ * $log->pushHandler($handler);
+ *
+ * @author Jelle Vink <jelle.vink@gmail.com>
+ */
+class ElasticSearchHandler extends AbstractProcessingHandler
+{
+ /**
+ * @var Client
+ */
+ protected $client;
+
+ /**
+ * @var array Handler config options
+ */
+ protected $options = array();
+
+ /**
+ * @param Client $client Elastica Client object
+ * @param array $options Handler configuration
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct(Client $client, array $options = array(), $level = Logger::DEBUG, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+ $this->client = $client;
+ $this->options = array_merge(
+ array(
+ 'index' => 'monolog', // Elastic index name
+ 'type' => 'record', // Elastic document type
+ 'ignore_error' => false, // Suppress Elastica exceptions
+ ),
+ $options
+ );
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function write(array $record)
+ {
+ $this->bulkSend(array($record['formatted']));
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ if ($formatter instanceof ElasticaFormatter) {
+ return parent::setFormatter($formatter);
+ }
+ throw new \InvalidArgumentException('ElasticSearchHandler is only compatible with ElasticaFormatter');
+ }
+
+ /**
+ * Getter options
+ * @return array
+ */
+ public function getOptions()
+ {
+ return $this->options;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new ElasticaFormatter($this->options['index'], $this->options['type']);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ $documents = $this->getFormatter()->formatBatch($records);
+ $this->bulkSend($documents);
+ }
+
+ /**
+ * Use Elasticsearch bulk API to send list of documents
+ * @param array $documents
+ * @throws \RuntimeException
+ */
+ protected function bulkSend(array $documents)
+ {
+ try {
+ $this->client->addDocuments($documents);
+ } catch (ExceptionInterface $e) {
+ if (!$this->options['ignore_error']) {
+ throw new \RuntimeException("Error sending messages to Elasticsearch", 0, $e);
+ }
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php
new file mode 100644
index 00000000..1447a584
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php
@@ -0,0 +1,82 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\LineFormatter;
+use Monolog\Logger;
+
+/**
+ * Stores to PHP error_log() handler.
+ *
+ * @author Elan Ruusamäe <glen@delfi.ee>
+ */
+class ErrorLogHandler extends AbstractProcessingHandler
+{
+ const OPERATING_SYSTEM = 0;
+ const SAPI = 4;
+
+ protected $messageType;
+ protected $expandNewlines;
+
+ /**
+ * @param int $messageType Says where the error should go.
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param Boolean $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries
+ */
+ public function __construct($messageType = self::OPERATING_SYSTEM, $level = Logger::DEBUG, $bubble = true, $expandNewlines = false)
+ {
+ parent::__construct($level, $bubble);
+
+ if (false === in_array($messageType, self::getAvailableTypes())) {
+ $message = sprintf('The given message type "%s" is not supported', print_r($messageType, true));
+ throw new \InvalidArgumentException($message);
+ }
+
+ $this->messageType = $messageType;
+ $this->expandNewlines = $expandNewlines;
+ }
+
+ /**
+ * @return array With all available types
+ */
+ public static function getAvailableTypes()
+ {
+ return array(
+ self::OPERATING_SYSTEM,
+ self::SAPI,
+ );
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%');
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ if ($this->expandNewlines) {
+ $lines = preg_split('{[\r\n]+}', (string) $record['formatted']);
+ foreach ($lines as $line) {
+ error_log($line, $this->messageType);
+ }
+ } else {
+ error_log((string) $record['formatted'], $this->messageType);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FilterHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FilterHandler.php
new file mode 100644
index 00000000..2a0f7fd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FilterHandler.php
@@ -0,0 +1,140 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Simple handler wrapper that filters records based on a list of levels
+ *
+ * It can be configured with an exact list of levels to allow, or a min/max level.
+ *
+ * @author Hennadiy Verkh
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class FilterHandler extends AbstractHandler
+{
+ /**
+ * Handler or factory callable($record, $this)
+ *
+ * @var callable|\Monolog\Handler\HandlerInterface
+ */
+ protected $handler;
+
+ /**
+ * Minimum level for logs that are passed to handler
+ *
+ * @var int[]
+ */
+ protected $acceptedLevels;
+
+ /**
+ * Whether the messages that are handled can bubble up the stack or not
+ *
+ * @var Boolean
+ */
+ protected $bubble;
+
+ /**
+ * @param callable|HandlerInterface $handler Handler or factory callable($record, $this).
+ * @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided
+ * @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($handler, $minLevelOrList = Logger::DEBUG, $maxLevel = Logger::EMERGENCY, $bubble = true)
+ {
+ $this->handler = $handler;
+ $this->bubble = $bubble;
+ $this->setAcceptedLevels($minLevelOrList, $maxLevel);
+
+ if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
+ throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object");
+ }
+ }
+
+ /**
+ * @return array
+ */
+ public function getAcceptedLevels()
+ {
+ return array_flip($this->acceptedLevels);
+ }
+
+ /**
+ * @param int|string|array $minLevelOrList A list of levels to accept or a minimum level or level name if maxLevel is provided
+ * @param int|string $maxLevel Maximum level or level name to accept, only used if $minLevelOrList is not an array
+ */
+ public function setAcceptedLevels($minLevelOrList = Logger::DEBUG, $maxLevel = Logger::EMERGENCY)
+ {
+ if (is_array($minLevelOrList)) {
+ $acceptedLevels = array_map('Monolog\Logger::toMonologLevel', $minLevelOrList);
+ } else {
+ $minLevelOrList = Logger::toMonologLevel($minLevelOrList);
+ $maxLevel = Logger::toMonologLevel($maxLevel);
+ $acceptedLevels = array_values(array_filter(Logger::getLevels(), function ($level) use ($minLevelOrList, $maxLevel) {
+ return $level >= $minLevelOrList && $level <= $maxLevel;
+ }));
+ }
+ $this->acceptedLevels = array_flip($acceptedLevels);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function isHandling(array $record)
+ {
+ return isset($this->acceptedLevels[$record['level']]);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ if (!$this->isHandling($record)) {
+ return false;
+ }
+
+ // The same logic as in FingersCrossedHandler
+ if (!$this->handler instanceof HandlerInterface) {
+ $this->handler = call_user_func($this->handler, $record, $this);
+ if (!$this->handler instanceof HandlerInterface) {
+ throw new \RuntimeException("The factory callable should return a HandlerInterface");
+ }
+ }
+
+ if ($this->processors) {
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+ }
+
+ $this->handler->handle($record);
+
+ return false === $this->bubble;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ $filtered = array();
+ foreach ($records as $record) {
+ if ($this->isHandling($record)) {
+ $filtered[] = $record;
+ }
+ }
+
+ $this->handler->handleBatch($filtered);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php
new file mode 100644
index 00000000..c3e42efe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php
@@ -0,0 +1,28 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler\FingersCrossed;
+
+/**
+ * Interface for activation strategies for the FingersCrossedHandler.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+interface ActivationStrategyInterface
+{
+ /**
+ * Returns whether the given record activates the handler.
+ *
+ * @param array $record
+ * @return Boolean
+ */
+ public function isHandlerActivated(array $record);
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php
new file mode 100644
index 00000000..2a2a64d9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php
@@ -0,0 +1,59 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler\FingersCrossed;
+
+use Monolog\Logger;
+
+/**
+ * Channel and Error level based monolog activation strategy. Allows to trigger activation
+ * based on level per channel. e.g. trigger activation on level 'ERROR' by default, except
+ * for records of the 'sql' channel; those should trigger activation on level 'WARN'.
+ *
+ * Example:
+ *
+ * <code>
+ * $activationStrategy = new ChannelLevelActivationStrategy(
+ * Logger::CRITICAL,
+ * array(
+ * 'request' => Logger::ALERT,
+ * 'sensitive' => Logger::ERROR,
+ * )
+ * );
+ * $handler = new FingersCrossedHandler(new StreamHandler('php://stderr'), $activationStrategy);
+ * </code>
+ *
+ * @author Mike Meessen <netmikey@gmail.com>
+ */
+class ChannelLevelActivationStrategy implements ActivationStrategyInterface
+{
+ private $defaultActionLevel;
+ private $channelToActionLevel;
+
+ /**
+ * @param int $defaultActionLevel The default action level to be used if the record's category doesn't match any
+ * @param array $channelToActionLevel An array that maps channel names to action levels.
+ */
+ public function __construct($defaultActionLevel, $channelToActionLevel = array())
+ {
+ $this->defaultActionLevel = Logger::toMonologLevel($defaultActionLevel);
+ $this->channelToActionLevel = array_map('Monolog\Logger::toMonologLevel', $channelToActionLevel);
+ }
+
+ public function isHandlerActivated(array $record)
+ {
+ if (isset($this->channelToActionLevel[$record['channel']])) {
+ return $record['level'] >= $this->channelToActionLevel[$record['channel']];
+ }
+
+ return $record['level'] >= $this->defaultActionLevel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php
new file mode 100644
index 00000000..6e630852
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php
@@ -0,0 +1,34 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler\FingersCrossed;
+
+use Monolog\Logger;
+
+/**
+ * Error level based activation strategy.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class ErrorLevelActivationStrategy implements ActivationStrategyInterface
+{
+ private $actionLevel;
+
+ public function __construct($actionLevel)
+ {
+ $this->actionLevel = Logger::toMonologLevel($actionLevel);
+ }
+
+ public function isHandlerActivated(array $record)
+ {
+ return $record['level'] >= $this->actionLevel;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
new file mode 100644
index 00000000..d1dcaacf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
@@ -0,0 +1,163 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
+use Monolog\Handler\FingersCrossed\ActivationStrategyInterface;
+use Monolog\Logger;
+
+/**
+ * Buffers all records until a certain level is reached
+ *
+ * The advantage of this approach is that you don't get any clutter in your log files.
+ * Only requests which actually trigger an error (or whatever your actionLevel is) will be
+ * in the logs, but they will contain all records, not only those above the level threshold.
+ *
+ * You can find the various activation strategies in the
+ * Monolog\Handler\FingersCrossed\ namespace.
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class FingersCrossedHandler extends AbstractHandler
+{
+ protected $handler;
+ protected $activationStrategy;
+ protected $buffering = true;
+ protected $bufferSize;
+ protected $buffer = array();
+ protected $stopBuffering;
+ protected $passthruLevel;
+
+ /**
+ * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
+ * @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action
+ * @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param Boolean $stopBuffering Whether the handler should stop buffering after being triggered (default true)
+ * @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered
+ */
+ public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = null)
+ {
+ if (null === $activationStrategy) {
+ $activationStrategy = new ErrorLevelActivationStrategy(Logger::WARNING);
+ }
+
+ // convert simple int activationStrategy to an object
+ if (!$activationStrategy instanceof ActivationStrategyInterface) {
+ $activationStrategy = new ErrorLevelActivationStrategy($activationStrategy);
+ }
+
+ $this->handler = $handler;
+ $this->activationStrategy = $activationStrategy;
+ $this->bufferSize = $bufferSize;
+ $this->bubble = $bubble;
+ $this->stopBuffering = $stopBuffering;
+
+ if ($passthruLevel !== null) {
+ $this->passthruLevel = Logger::toMonologLevel($passthruLevel);
+ }
+
+ if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
+ throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object");
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function isHandling(array $record)
+ {
+ return true;
+ }
+
+ /**
+ * Manually activate this logger regardless of the activation strategy
+ */
+ public function activate()
+ {
+ if ($this->stopBuffering) {
+ $this->buffering = false;
+ }
+ if (!$this->handler instanceof HandlerInterface) {
+ $record = end($this->buffer) ?: null;
+
+ $this->handler = call_user_func($this->handler, $record, $this);
+ if (!$this->handler instanceof HandlerInterface) {
+ throw new \RuntimeException("The factory callable should return a HandlerInterface");
+ }
+ }
+ $this->handler->handleBatch($this->buffer);
+ $this->buffer = array();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ if ($this->processors) {
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+ }
+
+ if ($this->buffering) {
+ $this->buffer[] = $record;
+ if ($this->bufferSize > 0 && count($this->buffer) > $this->bufferSize) {
+ array_shift($this->buffer);
+ }
+ if ($this->activationStrategy->isHandlerActivated($record)) {
+ $this->activate();
+ }
+ } else {
+ $this->handler->handle($record);
+ }
+
+ return false === $this->bubble;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ if (null !== $this->passthruLevel) {
+ $level = $this->passthruLevel;
+ $this->buffer = array_filter($this->buffer, function ($record) use ($level) {
+ return $record['level'] >= $level;
+ });
+ if (count($this->buffer) > 0) {
+ $this->handler->handleBatch($this->buffer);
+ $this->buffer = array();
+ }
+ }
+ }
+
+ /**
+ * Resets the state of the handler. Stops forwarding records to the wrapped handler.
+ */
+ public function reset()
+ {
+ $this->buffering = true;
+ }
+
+ /**
+ * Clears the buffer without flushing any messages down to the wrapped handler.
+ *
+ * It also resets the handler to its initial buffering state.
+ */
+ public function clear()
+ {
+ $this->buffer = array();
+ $this->reset();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php
new file mode 100644
index 00000000..fee47950
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php
@@ -0,0 +1,195 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\WildfireFormatter;
+
+/**
+ * Simple FirePHP Handler (http://www.firephp.org/), which uses the Wildfire protocol.
+ *
+ * @author Eric Clemmons (@ericclemmons) <eric@uxdriven.com>
+ */
+class FirePHPHandler extends AbstractProcessingHandler
+{
+ /**
+ * WildFire JSON header message format
+ */
+ const PROTOCOL_URI = 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2';
+
+ /**
+ * FirePHP structure for parsing messages & their presentation
+ */
+ const STRUCTURE_URI = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1';
+
+ /**
+ * Must reference a "known" plugin, otherwise headers won't display in FirePHP
+ */
+ const PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3';
+
+ /**
+ * Header prefix for Wildfire to recognize & parse headers
+ */
+ const HEADER_PREFIX = 'X-Wf';
+
+ /**
+ * Whether or not Wildfire vendor-specific headers have been generated & sent yet
+ */
+ protected static $initialized = false;
+
+ /**
+ * Shared static message index between potentially multiple handlers
+ * @var int
+ */
+ protected static $messageIndex = 1;
+
+ protected static $sendHeaders = true;
+
+ /**
+ * Base header creation function used by init headers & record headers
+ *
+ * @param array $meta Wildfire Plugin, Protocol & Structure Indexes
+ * @param string $message Log message
+ * @return array Complete header string ready for the client as key and message as value
+ */
+ protected function createHeader(array $meta, $message)
+ {
+ $header = sprintf('%s-%s', self::HEADER_PREFIX, join('-', $meta));
+
+ return array($header => $message);
+ }
+
+ /**
+ * Creates message header from record
+ *
+ * @see createHeader()
+ * @param array $record
+ * @return string
+ */
+ protected function createRecordHeader(array $record)
+ {
+ // Wildfire is extensible to support multiple protocols & plugins in a single request,
+ // but we're not taking advantage of that (yet), so we're using "1" for simplicity's sake.
+ return $this->createHeader(
+ array(1, 1, 1, self::$messageIndex++),
+ $record['formatted']
+ );
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new WildfireFormatter();
+ }
+
+ /**
+ * Wildfire initialization headers to enable message parsing
+ *
+ * @see createHeader()
+ * @see sendHeader()
+ * @return array
+ */
+ protected function getInitHeaders()
+ {
+ // Initial payload consists of required headers for Wildfire
+ return array_merge(
+ $this->createHeader(array('Protocol', 1), self::PROTOCOL_URI),
+ $this->createHeader(array(1, 'Structure', 1), self::STRUCTURE_URI),
+ $this->createHeader(array(1, 'Plugin', 1), self::PLUGIN_URI)
+ );
+ }
+
+ /**
+ * Send header string to the client
+ *
+ * @param string $header
+ * @param string $content
+ */
+ protected function sendHeader($header, $content)
+ {
+ if (!headers_sent() && self::$sendHeaders) {
+ header(sprintf('%s: %s', $header, $content));
+ }
+ }
+
+ /**
+ * Creates & sends header for a record, ensuring init headers have been sent prior
+ *
+ * @see sendHeader()
+ * @see sendInitHeaders()
+ * @param array $record
+ */
+ protected function write(array $record)
+ {
+ if (!self::$sendHeaders) {
+ return;
+ }
+
+ // WildFire-specific headers must be sent prior to any messages
+ if (!self::$initialized) {
+ self::$initialized = true;
+
+ self::$sendHeaders = $this->headersAccepted();
+ if (!self::$sendHeaders) {
+ return;
+ }
+
+ foreach ($this->getInitHeaders() as $header => $content) {
+ $this->sendHeader($header, $content);
+ }
+ }
+
+ $header = $this->createRecordHeader($record);
+ if (trim(current($header)) !== '') {
+ $this->sendHeader(key($header), current($header));
+ }
+ }
+
+ /**
+ * Verifies if the headers are accepted by the current user agent
+ *
+ * @return Boolean
+ */
+ protected function headersAccepted()
+ {
+ if (!empty($_SERVER['HTTP_USER_AGENT']) && preg_match('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT'])) {
+ return true;
+ }
+
+ return isset($_SERVER['HTTP_X_FIREPHP_VERSION']);
+ }
+
+ /**
+ * BC getter for the sendHeaders property that has been made static
+ */
+ public function __get($property)
+ {
+ if ('sendHeaders' !== $property) {
+ throw new \InvalidArgumentException('Undefined property '.$property);
+ }
+
+ return static::$sendHeaders;
+ }
+
+ /**
+ * BC setter for the sendHeaders property that has been made static
+ */
+ public function __set($property, $value)
+ {
+ if ('sendHeaders' !== $property) {
+ throw new \InvalidArgumentException('Undefined property '.$property);
+ }
+
+ static::$sendHeaders = $value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php
new file mode 100644
index 00000000..c43c0134
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php
@@ -0,0 +1,126 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\LineFormatter;
+use Monolog\Logger;
+
+/**
+ * Sends logs to Fleep.io using Webhook integrations
+ *
+ * You'll need a Fleep.io account to use this handler.
+ *
+ * @see https://fleep.io/integrations/webhooks/ Fleep Webhooks Documentation
+ * @author Ando Roots <ando@sqroot.eu>
+ */
+class FleepHookHandler extends SocketHandler
+{
+ const FLEEP_HOST = 'fleep.io';
+
+ const FLEEP_HOOK_URI = '/hook/';
+
+ /**
+ * @var string Webhook token (specifies the conversation where logs are sent)
+ */
+ protected $token;
+
+ /**
+ * Construct a new Fleep.io Handler.
+ *
+ * For instructions on how to create a new web hook in your conversations
+ * see https://fleep.io/integrations/webhooks/
+ *
+ * @param string $token Webhook token
+ * @param bool|int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ * @throws MissingExtensionException
+ */
+ public function __construct($token, $level = Logger::DEBUG, $bubble = true)
+ {
+ if (!extension_loaded('openssl')) {
+ throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FleepHookHandler');
+ }
+
+ $this->token = $token;
+
+ $connectionString = 'ssl://' . self::FLEEP_HOST . ':443';
+ parent::__construct($connectionString, $level, $bubble);
+ }
+
+ /**
+ * Returns the default formatter to use with this handler
+ *
+ * Overloaded to remove empty context and extra arrays from the end of the log message.
+ *
+ * @return LineFormatter
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter(null, null, true, true);
+ }
+
+ /**
+ * Handles a log record
+ *
+ * @param array $record
+ */
+ public function write(array $record)
+ {
+ parent::write($record);
+ $this->closeSocket();
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ * @return string
+ */
+ protected function generateDataStream($record)
+ {
+ $content = $this->buildContent($record);
+
+ return $this->buildHeader($content) . $content;
+ }
+
+ /**
+ * Builds the header of the API Call
+ *
+ * @param string $content
+ * @return string
+ */
+ private function buildHeader($content)
+ {
+ $header = "POST " . self::FLEEP_HOOK_URI . $this->token . " HTTP/1.1\r\n";
+ $header .= "Host: " . self::FLEEP_HOST . "\r\n";
+ $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
+ $header .= "Content-Length: " . strlen($content) . "\r\n";
+ $header .= "\r\n";
+
+ return $header;
+ }
+
+ /**
+ * Builds the body of API call
+ *
+ * @param array $record
+ * @return string
+ */
+ private function buildContent($record)
+ {
+ $dataArray = array(
+ 'message' => $record['formatted'],
+ );
+
+ return http_build_query($dataArray);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
new file mode 100644
index 00000000..dd9a361c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
@@ -0,0 +1,127 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\FlowdockFormatter;
+use Monolog\Formatter\FormatterInterface;
+
+/**
+ * Sends notifications through the Flowdock push API
+ *
+ * This must be configured with a FlowdockFormatter instance via setFormatter()
+ *
+ * Notes:
+ * API token - Flowdock API token
+ *
+ * @author Dominik Liebler <liebler.dominik@gmail.com>
+ * @see https://www.flowdock.com/api/push
+ */
+class FlowdockHandler extends SocketHandler
+{
+ /**
+ * @var string
+ */
+ protected $apiToken;
+
+ /**
+ * @param string $apiToken
+ * @param bool|int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ *
+ * @throws MissingExtensionException if OpenSSL is missing
+ */
+ public function __construct($apiToken, $level = Logger::DEBUG, $bubble = true)
+ {
+ if (!extension_loaded('openssl')) {
+ throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler');
+ }
+
+ parent::__construct('ssl://api.flowdock.com:443', $level, $bubble);
+ $this->apiToken = $apiToken;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ if (!$formatter instanceof FlowdockFormatter) {
+ throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\Formatter\FlowdockFormatter to function correctly');
+ }
+
+ return parent::setFormatter($formatter);
+ }
+
+ /**
+ * Gets the default formatter.
+ *
+ * @return FormatterInterface
+ */
+ protected function getDefaultFormatter()
+ {
+ throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\Formatter\FlowdockFormatter to function correctly');
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ */
+ protected function write(array $record)
+ {
+ parent::write($record);
+
+ $this->closeSocket();
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ * @return string
+ */
+ protected function generateDataStream($record)
+ {
+ $content = $this->buildContent($record);
+
+ return $this->buildHeader($content) . $content;
+ }
+
+ /**
+ * Builds the body of API call
+ *
+ * @param array $record
+ * @return string
+ */
+ private function buildContent($record)
+ {
+ return json_encode($record['formatted']['flowdock']);
+ }
+
+ /**
+ * Builds the header of the API Call
+ *
+ * @param string $content
+ * @return string
+ */
+ private function buildHeader($content)
+ {
+ $header = "POST /v1/messages/team_inbox/" . $this->apiToken . " HTTP/1.1\r\n";
+ $header .= "Host: api.flowdock.com\r\n";
+ $header .= "Content-Type: application/json\r\n";
+ $header .= "Content-Length: " . strlen($content) . "\r\n";
+ $header .= "\r\n";
+
+ return $header;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GelfHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GelfHandler.php
new file mode 100644
index 00000000..d3847d82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GelfHandler.php
@@ -0,0 +1,73 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Gelf\IMessagePublisher;
+use Gelf\PublisherInterface;
+use Gelf\Publisher;
+use InvalidArgumentException;
+use Monolog\Logger;
+use Monolog\Formatter\GelfMessageFormatter;
+
+/**
+ * Handler to send messages to a Graylog2 (http://www.graylog2.org) server
+ *
+ * @author Matt Lehner <mlehner@gmail.com>
+ * @author Benjamin Zikarsky <benjamin@zikarsky.de>
+ */
+class GelfHandler extends AbstractProcessingHandler
+{
+ /**
+ * @var Publisher the publisher object that sends the message to the server
+ */
+ protected $publisher;
+
+ /**
+ * @param PublisherInterface|IMessagePublisher|Publisher $publisher a publisher object
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($publisher, $level = Logger::DEBUG, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+
+ if (!$publisher instanceof Publisher && !$publisher instanceof IMessagePublisher && !$publisher instanceof PublisherInterface) {
+ throw new InvalidArgumentException('Invalid publisher, expected a Gelf\Publisher, Gelf\IMessagePublisher or Gelf\PublisherInterface instance');
+ }
+
+ $this->publisher = $publisher;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ $this->publisher = null;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ $this->publisher->publish($record['formatted']);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new GelfMessageFormatter();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GroupHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GroupHandler.php
new file mode 100644
index 00000000..663f5a92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/GroupHandler.php
@@ -0,0 +1,104 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\FormatterInterface;
+
+/**
+ * Forwards records to multiple handlers
+ *
+ * @author Lenar Lõhmus <lenar@city.ee>
+ */
+class GroupHandler extends AbstractHandler
+{
+ protected $handlers;
+
+ /**
+ * @param array $handlers Array of Handlers.
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct(array $handlers, $bubble = true)
+ {
+ foreach ($handlers as $handler) {
+ if (!$handler instanceof HandlerInterface) {
+ throw new \InvalidArgumentException('The first argument of the GroupHandler must be an array of HandlerInterface instances.');
+ }
+ }
+
+ $this->handlers = $handlers;
+ $this->bubble = $bubble;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function isHandling(array $record)
+ {
+ foreach ($this->handlers as $handler) {
+ if ($handler->isHandling($record)) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ if ($this->processors) {
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+ }
+
+ foreach ($this->handlers as $handler) {
+ $handler->handle($record);
+ }
+
+ return false === $this->bubble;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ if ($this->processors) {
+ $processed = array();
+ foreach ($records as $record) {
+ foreach ($this->processors as $processor) {
+ $processed[] = call_user_func($processor, $record);
+ }
+ }
+ $records = $processed;
+ }
+
+ foreach ($this->handlers as $handler) {
+ $handler->handleBatch($records);
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ foreach ($this->handlers as $handler) {
+ $handler->setFormatter($formatter);
+ }
+
+ return $this;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerInterface.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerInterface.php
new file mode 100644
index 00000000..d920c4ba
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerInterface.php
@@ -0,0 +1,90 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\FormatterInterface;
+
+/**
+ * Interface that all Monolog Handlers must implement
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+interface HandlerInterface
+{
+ /**
+ * Checks whether the given record will be handled by this handler.
+ *
+ * This is mostly done for performance reasons, to avoid calling processors for nothing.
+ *
+ * Handlers should still check the record levels within handle(), returning false in isHandling()
+ * is no guarantee that handle() will not be called, and isHandling() might not be called
+ * for a given record.
+ *
+ * @param array $record Partial log record containing only a level key
+ *
+ * @return Boolean
+ */
+ public function isHandling(array $record);
+
+ /**
+ * Handles a record.
+ *
+ * All records may be passed to this method, and the handler should discard
+ * those that it does not want to handle.
+ *
+ * The return value of this function controls the bubbling process of the handler stack.
+ * Unless the bubbling is interrupted (by returning true), the Logger class will keep on
+ * calling further handlers in the stack with a given log record.
+ *
+ * @param array $record The record to handle
+ * @return Boolean true means that this handler handled the record, and that bubbling is not permitted.
+ * false means the record was either not processed or that this handler allows bubbling.
+ */
+ public function handle(array $record);
+
+ /**
+ * Handles a set of records at once.
+ *
+ * @param array $records The records to handle (an array of record arrays)
+ */
+ public function handleBatch(array $records);
+
+ /**
+ * Adds a processor in the stack.
+ *
+ * @param callable $callback
+ * @return self
+ */
+ public function pushProcessor($callback);
+
+ /**
+ * Removes the processor on top of the stack and returns it.
+ *
+ * @return callable
+ */
+ public function popProcessor();
+
+ /**
+ * Sets the formatter.
+ *
+ * @param FormatterInterface $formatter
+ * @return self
+ */
+ public function setFormatter(FormatterInterface $formatter);
+
+ /**
+ * Gets the formatter.
+ *
+ * @return FormatterInterface
+ */
+ public function getFormatter();
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php
new file mode 100644
index 00000000..e540d80f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php
@@ -0,0 +1,108 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\FormatterInterface;
+
+/**
+ * This simple wrapper class can be used to extend handlers functionality.
+ *
+ * Example: A custom filtering that can be applied to any handler.
+ *
+ * Inherit from this class and override handle() like this:
+ *
+ * public function handle(array $record)
+ * {
+ * if ($record meets certain conditions) {
+ * return false;
+ * }
+ * return $this->handler->handle($record);
+ * }
+ *
+ * @author Alexey Karapetov <alexey@karapetov.com>
+ */
+class HandlerWrapper implements HandlerInterface
+{
+ /**
+ * @var HandlerInterface
+ */
+ protected $handler;
+
+ /**
+ * HandlerWrapper constructor.
+ * @param HandlerInterface $handler
+ */
+ public function __construct(HandlerInterface $handler)
+ {
+ $this->handler = $handler;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function isHandling(array $record)
+ {
+ return $this->handler->isHandling($record);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ return $this->handler->handle($record);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ return $this->handler->handleBatch($records);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function pushProcessor($callback)
+ {
+ $this->handler->pushProcessor($callback);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function popProcessor()
+ {
+ return $this->handler->popProcessor();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ $this->handler->setFormatter($formatter);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getFormatter()
+ {
+ return $this->handler->getFormatter();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HipChatHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HipChatHandler.php
new file mode 100644
index 00000000..73049f36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/HipChatHandler.php
@@ -0,0 +1,350 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Sends notifications through the hipchat api to a hipchat room
+ *
+ * Notes:
+ * API token - HipChat API token
+ * Room - HipChat Room Id or name, where messages are sent
+ * Name - Name used to send the message (from)
+ * notify - Should the message trigger a notification in the clients
+ * version - The API version to use (HipChatHandler::API_V1 | HipChatHandler::API_V2)
+ *
+ * @author Rafael Dohms <rafael@doh.ms>
+ * @see https://www.hipchat.com/docs/api
+ */
+class HipChatHandler extends SocketHandler
+{
+ /**
+ * Use API version 1
+ */
+ const API_V1 = 'v1';
+
+ /**
+ * Use API version v2
+ */
+ const API_V2 = 'v2';
+
+ /**
+ * The maximum allowed length for the name used in the "from" field.
+ */
+ const MAXIMUM_NAME_LENGTH = 15;
+
+ /**
+ * The maximum allowed length for the message.
+ */
+ const MAXIMUM_MESSAGE_LENGTH = 9500;
+
+ /**
+ * @var string
+ */
+ private $token;
+
+ /**
+ * @var string
+ */
+ private $room;
+
+ /**
+ * @var string
+ */
+ private $name;
+
+ /**
+ * @var bool
+ */
+ private $notify;
+
+ /**
+ * @var string
+ */
+ private $format;
+
+ /**
+ * @var string
+ */
+ private $host;
+
+ /**
+ * @var string
+ */
+ private $version;
+
+ /**
+ * @param string $token HipChat API Token
+ * @param string $room The room that should be alerted of the message (Id or Name)
+ * @param string $name Name used in the "from" field.
+ * @param bool $notify Trigger a notification in clients or not
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param bool $useSSL Whether to connect via SSL.
+ * @param string $format The format of the messages (default to text, can be set to html if you have html in the messages)
+ * @param string $host The HipChat server hostname.
+ * @param string $version The HipChat API version (default HipChatHandler::API_V1)
+ */
+ public function __construct($token, $room, $name = 'Monolog', $notify = false, $level = Logger::CRITICAL, $bubble = true, $useSSL = true, $format = 'text', $host = 'api.hipchat.com', $version = self::API_V1)
+ {
+ if ($version == self::API_V1 && !$this->validateStringLength($name, static::MAXIMUM_NAME_LENGTH)) {
+ throw new \InvalidArgumentException('The supplied name is too long. HipChat\'s v1 API supports names up to 15 UTF-8 characters.');
+ }
+
+ $connectionString = $useSSL ? 'ssl://'.$host.':443' : $host.':80';
+ parent::__construct($connectionString, $level, $bubble);
+
+ $this->token = $token;
+ $this->name = $name;
+ $this->notify = $notify;
+ $this->room = $room;
+ $this->format = $format;
+ $this->host = $host;
+ $this->version = $version;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ * @return string
+ */
+ protected function generateDataStream($record)
+ {
+ $content = $this->buildContent($record);
+
+ return $this->buildHeader($content) . $content;
+ }
+
+ /**
+ * Builds the body of API call
+ *
+ * @param array $record
+ * @return string
+ */
+ private function buildContent($record)
+ {
+ $dataArray = array(
+ 'notify' => $this->version == self::API_V1 ?
+ ($this->notify ? 1 : 0) :
+ ($this->notify ? 'true' : 'false'),
+ 'message' => $record['formatted'],
+ 'message_format' => $this->format,
+ 'color' => $this->getAlertColor($record['level']),
+ );
+
+ if (!$this->validateStringLength($dataArray['message'], static::MAXIMUM_MESSAGE_LENGTH)) {
+ if (function_exists('mb_substr')) {
+ $dataArray['message'] = mb_substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH).' [truncated]';
+ } else {
+ $dataArray['message'] = substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH).' [truncated]';
+ }
+ }
+
+ // if we are using the legacy API then we need to send some additional information
+ if ($this->version == self::API_V1) {
+ $dataArray['room_id'] = $this->room;
+ }
+
+ // append the sender name if it is set
+ // always append it if we use the v1 api (it is required in v1)
+ if ($this->version == self::API_V1 || $this->name !== null) {
+ $dataArray['from'] = (string) $this->name;
+ }
+
+ return http_build_query($dataArray);
+ }
+
+ /**
+ * Builds the header of the API Call
+ *
+ * @param string $content
+ * @return string
+ */
+ private function buildHeader($content)
+ {
+ if ($this->version == self::API_V1) {
+ $header = "POST /v1/rooms/message?format=json&auth_token={$this->token} HTTP/1.1\r\n";
+ } else {
+ // needed for rooms with special (spaces, etc) characters in the name
+ $room = rawurlencode($this->room);
+ $header = "POST /v2/room/{$room}/notification?auth_token={$this->token} HTTP/1.1\r\n";
+ }
+
+ $header .= "Host: {$this->host}\r\n";
+ $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
+ $header .= "Content-Length: " . strlen($content) . "\r\n";
+ $header .= "\r\n";
+
+ return $header;
+ }
+
+ /**
+ * Assigns a color to each level of log records.
+ *
+ * @param int $level
+ * @return string
+ */
+ protected function getAlertColor($level)
+ {
+ switch (true) {
+ case $level >= Logger::ERROR:
+ return 'red';
+ case $level >= Logger::WARNING:
+ return 'yellow';
+ case $level >= Logger::INFO:
+ return 'green';
+ case $level == Logger::DEBUG:
+ return 'gray';
+ default:
+ return 'yellow';
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ */
+ protected function write(array $record)
+ {
+ parent::write($record);
+ $this->closeSocket();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ if (count($records) == 0) {
+ return true;
+ }
+
+ $batchRecords = $this->combineRecords($records);
+
+ $handled = false;
+ foreach ($batchRecords as $batchRecord) {
+ if ($this->isHandling($batchRecord)) {
+ $this->write($batchRecord);
+ $handled = true;
+ }
+ }
+
+ if (!$handled) {
+ return false;
+ }
+
+ return false === $this->bubble;
+ }
+
+ /**
+ * Combines multiple records into one. Error level of the combined record
+ * will be the highest level from the given records. Datetime will be taken
+ * from the first record.
+ *
+ * @param $records
+ * @return array
+ */
+ private function combineRecords($records)
+ {
+ $batchRecord = null;
+ $batchRecords = array();
+ $messages = array();
+ $formattedMessages = array();
+ $level = 0;
+ $levelName = null;
+ $datetime = null;
+
+ foreach ($records as $record) {
+ $record = $this->processRecord($record);
+
+ if ($record['level'] > $level) {
+ $level = $record['level'];
+ $levelName = $record['level_name'];
+ }
+
+ if (null === $datetime) {
+ $datetime = $record['datetime'];
+ }
+
+ $messages[] = $record['message'];
+ $messageStr = implode(PHP_EOL, $messages);
+ $formattedMessages[] = $this->getFormatter()->format($record);
+ $formattedMessageStr = implode('', $formattedMessages);
+
+ $batchRecord = array(
+ 'message' => $messageStr,
+ 'formatted' => $formattedMessageStr,
+ 'context' => array(),
+ 'extra' => array(),
+ );
+
+ if (!$this->validateStringLength($batchRecord['formatted'], static::MAXIMUM_MESSAGE_LENGTH)) {
+ // Pop the last message and implode the remaining messages
+ $lastMessage = array_pop($messages);
+ $lastFormattedMessage = array_pop($formattedMessages);
+ $batchRecord['message'] = implode(PHP_EOL, $messages);
+ $batchRecord['formatted'] = implode('', $formattedMessages);
+
+ $batchRecords[] = $batchRecord;
+ $messages = array($lastMessage);
+ $formattedMessages = array($lastFormattedMessage);
+
+ $batchRecord = null;
+ }
+ }
+
+ if (null !== $batchRecord) {
+ $batchRecords[] = $batchRecord;
+ }
+
+ // Set the max level and datetime for all records
+ foreach ($batchRecords as &$batchRecord) {
+ $batchRecord = array_merge(
+ $batchRecord,
+ array(
+ 'level' => $level,
+ 'level_name' => $levelName,
+ 'datetime' => $datetime,
+ )
+ );
+ }
+
+ return $batchRecords;
+ }
+
+ /**
+ * Validates the length of a string.
+ *
+ * If the `mb_strlen()` function is available, it will use that, as HipChat
+ * allows UTF-8 characters. Otherwise, it will fall back to `strlen()`.
+ *
+ * Note that this might cause false failures in the specific case of using
+ * a valid name with less than 16 characters, but 16 or more bytes, on a
+ * system where `mb_strlen()` is unavailable.
+ *
+ * @param string $str
+ * @param int $length
+ *
+ * @return bool
+ */
+ private function validateStringLength($str, $length)
+ {
+ if (function_exists('mb_strlen')) {
+ return (mb_strlen($str) <= $length);
+ }
+
+ return (strlen($str) <= $length);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
new file mode 100644
index 00000000..d60a3c82
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
@@ -0,0 +1,69 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * IFTTTHandler uses cURL to trigger IFTTT Maker actions
+ *
+ * Register a secret key and trigger/event name at https://ifttt.com/maker
+ *
+ * value1 will be the channel from monolog's Logger constructor,
+ * value2 will be the level name (ERROR, WARNING, ..)
+ * value3 will be the log record's message
+ *
+ * @author Nehal Patel <nehal@nehalpatel.me>
+ */
+class IFTTTHandler extends AbstractProcessingHandler
+{
+ private $eventName;
+ private $secretKey;
+
+ /**
+ * @param string $eventName The name of the IFTTT Maker event that should be triggered
+ * @param string $secretKey A valid IFTTT secret key
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($eventName, $secretKey, $level = Logger::ERROR, $bubble = true)
+ {
+ $this->eventName = $eventName;
+ $this->secretKey = $secretKey;
+
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function write(array $record)
+ {
+ $postData = array(
+ "value1" => $record["channel"],
+ "value2" => $record["level_name"],
+ "value3" => $record["message"],
+ );
+ $postString = json_encode($postData);
+
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey);
+ curl_setopt($ch, CURLOPT_POST, true);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array(
+ "Content-Type: application/json",
+ ));
+
+ Curl\Util::execute($ch);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php
new file mode 100644
index 00000000..494c605b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php
@@ -0,0 +1,55 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * @author Robert Kaufmann III <rok3@rok3.me>
+ */
+class LogEntriesHandler extends SocketHandler
+{
+ /**
+ * @var string
+ */
+ protected $logToken;
+
+ /**
+ * @param string $token Log token supplied by LogEntries
+ * @param bool $useSSL Whether or not SSL encryption should be used.
+ * @param int $level The minimum logging level to trigger this handler
+ * @param bool $bubble Whether or not messages that are handled should bubble up the stack.
+ *
+ * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing
+ */
+ public function __construct($token, $useSSL = true, $level = Logger::DEBUG, $bubble = true)
+ {
+ if ($useSSL && !extension_loaded('openssl')) {
+ throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler');
+ }
+
+ $endpoint = $useSSL ? 'ssl://data.logentries.com:443' : 'data.logentries.com:80';
+ parent::__construct($endpoint, $level, $bubble);
+ $this->logToken = $token;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ * @return string
+ */
+ protected function generateDataStream($record)
+ {
+ return $this->logToken . ' ' . $record['formatted'];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogglyHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogglyHandler.php
new file mode 100644
index 00000000..bcd62e1c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/LogglyHandler.php
@@ -0,0 +1,102 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\LogglyFormatter;
+
+/**
+ * Sends errors to Loggly.
+ *
+ * @author Przemek Sobstel <przemek@sobstel.org>
+ * @author Adam Pancutt <adam@pancutt.com>
+ * @author Gregory Barchard <gregory@barchard.net>
+ */
+class LogglyHandler extends AbstractProcessingHandler
+{
+ const HOST = 'logs-01.loggly.com';
+ const ENDPOINT_SINGLE = 'inputs';
+ const ENDPOINT_BATCH = 'bulk';
+
+ protected $token;
+
+ protected $tag = array();
+
+ public function __construct($token, $level = Logger::DEBUG, $bubble = true)
+ {
+ if (!extension_loaded('curl')) {
+ throw new \LogicException('The curl extension is needed to use the LogglyHandler');
+ }
+
+ $this->token = $token;
+
+ parent::__construct($level, $bubble);
+ }
+
+ public function setTag($tag)
+ {
+ $tag = !empty($tag) ? $tag : array();
+ $this->tag = is_array($tag) ? $tag : array($tag);
+ }
+
+ public function addTag($tag)
+ {
+ if (!empty($tag)) {
+ $tag = is_array($tag) ? $tag : array($tag);
+ $this->tag = array_unique(array_merge($this->tag, $tag));
+ }
+ }
+
+ protected function write(array $record)
+ {
+ $this->send($record["formatted"], self::ENDPOINT_SINGLE);
+ }
+
+ public function handleBatch(array $records)
+ {
+ $level = $this->level;
+
+ $records = array_filter($records, function ($record) use ($level) {
+ return ($record['level'] >= $level);
+ });
+
+ if ($records) {
+ $this->send($this->getFormatter()->formatBatch($records), self::ENDPOINT_BATCH);
+ }
+ }
+
+ protected function send($data, $endpoint)
+ {
+ $url = sprintf("https://%s/%s/%s/", self::HOST, $endpoint, $this->token);
+
+ $headers = array('Content-Type: application/json');
+
+ if (!empty($this->tag)) {
+ $headers[] = 'X-LOGGLY-TAG: '.implode(',', $this->tag);
+ }
+
+ $ch = curl_init();
+
+ curl_setopt($ch, CURLOPT_URL, $url);
+ curl_setopt($ch, CURLOPT_POST, true);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+
+ Curl\Util::execute($ch);
+ }
+
+ protected function getDefaultFormatter()
+ {
+ return new LogglyFormatter();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MailHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MailHandler.php
new file mode 100644
index 00000000..9e232838
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MailHandler.php
@@ -0,0 +1,67 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+/**
+ * Base class for all mail handlers
+ *
+ * @author Gyula Sallai
+ */
+abstract class MailHandler extends AbstractProcessingHandler
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ $messages = array();
+
+ foreach ($records as $record) {
+ if ($record['level'] < $this->level) {
+ continue;
+ }
+ $messages[] = $this->processRecord($record);
+ }
+
+ if (!empty($messages)) {
+ $this->send((string) $this->getFormatter()->formatBatch($messages), $messages);
+ }
+ }
+
+ /**
+ * Send a mail with the given content
+ *
+ * @param string $content formatted email body to be sent
+ * @param array $records the array of log records that formed this content
+ */
+ abstract protected function send($content, array $records);
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ $this->send((string) $record['formatted'], array($record));
+ }
+
+ protected function getHighestRecord(array $records)
+ {
+ $highestRecord = null;
+ foreach ($records as $record) {
+ if ($highestRecord === null || $highestRecord['level'] < $record['level']) {
+ $highestRecord = $record;
+ }
+ }
+
+ return $highestRecord;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MandrillHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MandrillHandler.php
new file mode 100644
index 00000000..ab95924f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MandrillHandler.php
@@ -0,0 +1,68 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * MandrillHandler uses cURL to send the emails to the Mandrill API
+ *
+ * @author Adam Nicholson <adamnicholson10@gmail.com>
+ */
+class MandrillHandler extends MailHandler
+{
+ protected $message;
+ protected $apiKey;
+
+ /**
+ * @param string $apiKey A valid Mandrill API key
+ * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($apiKey, $message, $level = Logger::ERROR, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+
+ if (!$message instanceof \Swift_Message && is_callable($message)) {
+ $message = call_user_func($message);
+ }
+ if (!$message instanceof \Swift_Message) {
+ throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callable returning it');
+ }
+ $this->message = $message;
+ $this->apiKey = $apiKey;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function send($content, array $records)
+ {
+ $message = clone $this->message;
+ $message->setBody($content);
+ $message->setDate(time());
+
+ $ch = curl_init();
+
+ curl_setopt($ch, CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json');
+ curl_setopt($ch, CURLOPT_POST, 1);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
+ 'key' => $this->apiKey,
+ 'raw_message' => (string) $message,
+ 'async' => false,
+ )));
+
+ Curl\Util::execute($ch);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php
new file mode 100644
index 00000000..4724a7e2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php
@@ -0,0 +1,21 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+/**
+ * Exception can be thrown if an extension for an handler is missing
+ *
+ * @author Christian Bergau <cbergau86@gmail.com>
+ */
+class MissingExtensionException extends \Exception
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php
new file mode 100644
index 00000000..56fe755b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php
@@ -0,0 +1,59 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\NormalizerFormatter;
+
+/**
+ * Logs to a MongoDB database.
+ *
+ * usage example:
+ *
+ * $log = new Logger('application');
+ * $mongodb = new MongoDBHandler(new \Mongo("mongodb://localhost:27017"), "logs", "prod");
+ * $log->pushHandler($mongodb);
+ *
+ * @author Thomas Tourlourat <thomas@tourlourat.com>
+ */
+class MongoDBHandler extends AbstractProcessingHandler
+{
+ protected $mongoCollection;
+
+ public function __construct($mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true)
+ {
+ if (!($mongo instanceof \MongoClient || $mongo instanceof \Mongo || $mongo instanceof \MongoDB\Client)) {
+ throw new \InvalidArgumentException('MongoClient, Mongo or MongoDB\Client instance required');
+ }
+
+ $this->mongoCollection = $mongo->selectCollection($database, $collection);
+
+ parent::__construct($level, $bubble);
+ }
+
+ protected function write(array $record)
+ {
+ if ($this->mongoCollection instanceof \MongoDB\Collection) {
+ $this->mongoCollection->insertOne($record["formatted"]);
+ } else {
+ $this->mongoCollection->save($record["formatted"]);
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new NormalizerFormatter();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php
new file mode 100644
index 00000000..d7807fd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php
@@ -0,0 +1,185 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+
+/**
+ * NativeMailerHandler uses the mail() function to send the emails
+ *
+ * @author Christophe Coevoet <stof@notk.org>
+ * @author Mark Garrett <mark@moderndeveloperllc.com>
+ */
+class NativeMailerHandler extends MailHandler
+{
+ /**
+ * The email addresses to which the message will be sent
+ * @var array
+ */
+ protected $to;
+
+ /**
+ * The subject of the email
+ * @var string
+ */
+ protected $subject;
+
+ /**
+ * Optional headers for the message
+ * @var array
+ */
+ protected $headers = array();
+
+ /**
+ * Optional parameters for the message
+ * @var array
+ */
+ protected $parameters = array();
+
+ /**
+ * The wordwrap length for the message
+ * @var int
+ */
+ protected $maxColumnWidth;
+
+ /**
+ * The Content-type for the message
+ * @var string
+ */
+ protected $contentType = 'text/plain';
+
+ /**
+ * The encoding for the message
+ * @var string
+ */
+ protected $encoding = 'utf-8';
+
+ /**
+ * @param string|array $to The receiver of the mail
+ * @param string $subject The subject of the mail
+ * @param string $from The sender of the mail
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param int $maxColumnWidth The maximum column width that the message lines will have
+ */
+ public function __construct($to, $subject, $from, $level = Logger::ERROR, $bubble = true, $maxColumnWidth = 70)
+ {
+ parent::__construct($level, $bubble);
+ $this->to = is_array($to) ? $to : array($to);
+ $this->subject = $subject;
+ $this->addHeader(sprintf('From: %s', $from));
+ $this->maxColumnWidth = $maxColumnWidth;
+ }
+
+ /**
+ * Add headers to the message
+ *
+ * @param string|array $headers Custom added headers
+ * @return self
+ */
+ public function addHeader($headers)
+ {
+ foreach ((array) $headers as $header) {
+ if (strpos($header, "\n") !== false || strpos($header, "\r") !== false) {
+ throw new \InvalidArgumentException('Headers can not contain newline characters for security reasons');
+ }
+ $this->headers[] = $header;
+ }
+
+ return $this;
+ }
+
+ /**
+ * Add parameters to the message
+ *
+ * @param string|array $parameters Custom added parameters
+ * @return self
+ */
+ public function addParameter($parameters)
+ {
+ $this->parameters = array_merge($this->parameters, (array) $parameters);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function send($content, array $records)
+ {
+ $content = wordwrap($content, $this->maxColumnWidth);
+ $headers = ltrim(implode("\r\n", $this->headers) . "\r\n", "\r\n");
+ $headers .= 'Content-type: ' . $this->getContentType() . '; charset=' . $this->getEncoding() . "\r\n";
+ if ($this->getContentType() == 'text/html' && false === strpos($headers, 'MIME-Version:')) {
+ $headers .= 'MIME-Version: 1.0' . "\r\n";
+ }
+
+ $subject = $this->subject;
+ if ($records) {
+ $subjectFormatter = new LineFormatter($this->subject);
+ $subject = $subjectFormatter->format($this->getHighestRecord($records));
+ }
+
+ $parameters = implode(' ', $this->parameters);
+ foreach ($this->to as $to) {
+ mail($to, $subject, $content, $headers, $parameters);
+ }
+ }
+
+ /**
+ * @return string $contentType
+ */
+ public function getContentType()
+ {
+ return $this->contentType;
+ }
+
+ /**
+ * @return string $encoding
+ */
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+
+ /**
+ * @param string $contentType The content type of the email - Defaults to text/plain. Use text/html for HTML
+ * messages.
+ * @return self
+ */
+ public function setContentType($contentType)
+ {
+ if (strpos($contentType, "\n") !== false || strpos($contentType, "\r") !== false) {
+ throw new \InvalidArgumentException('The content type can not contain newline characters to prevent email header injection');
+ }
+
+ $this->contentType = $contentType;
+
+ return $this;
+ }
+
+ /**
+ * @param string $encoding
+ * @return self
+ */
+ public function setEncoding($encoding)
+ {
+ if (strpos($encoding, "\n") !== false || strpos($encoding, "\r") !== false) {
+ throw new \InvalidArgumentException('The encoding can not contain newline characters to prevent email header injection');
+ }
+
+ $this->encoding = $encoding;
+
+ return $this;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
new file mode 100644
index 00000000..6718e9e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
@@ -0,0 +1,202 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\NormalizerFormatter;
+
+/**
+ * Class to record a log on a NewRelic application.
+ * Enabling New Relic High Security mode may prevent capture of useful information.
+ *
+ * @see https://docs.newrelic.com/docs/agents/php-agent
+ * @see https://docs.newrelic.com/docs/accounts-partnerships/accounts/security/high-security
+ */
+class NewRelicHandler extends AbstractProcessingHandler
+{
+ /**
+ * Name of the New Relic application that will receive logs from this handler.
+ *
+ * @var string
+ */
+ protected $appName;
+
+ /**
+ * Name of the current transaction
+ *
+ * @var string
+ */
+ protected $transactionName;
+
+ /**
+ * Some context and extra data is passed into the handler as arrays of values. Do we send them as is
+ * (useful if we are using the API), or explode them for display on the NewRelic RPM website?
+ *
+ * @var bool
+ */
+ protected $explodeArrays;
+
+ /**
+ * {@inheritDoc}
+ *
+ * @param string $appName
+ * @param bool $explodeArrays
+ * @param string $transactionName
+ */
+ public function __construct(
+ $level = Logger::ERROR,
+ $bubble = true,
+ $appName = null,
+ $explodeArrays = false,
+ $transactionName = null
+ ) {
+ parent::__construct($level, $bubble);
+
+ $this->appName = $appName;
+ $this->explodeArrays = $explodeArrays;
+ $this->transactionName = $transactionName;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function write(array $record)
+ {
+ if (!$this->isNewRelicEnabled()) {
+ throw new MissingExtensionException('The newrelic PHP extension is required to use the NewRelicHandler');
+ }
+
+ if ($appName = $this->getAppName($record['context'])) {
+ $this->setNewRelicAppName($appName);
+ }
+
+ if ($transactionName = $this->getTransactionName($record['context'])) {
+ $this->setNewRelicTransactionName($transactionName);
+ unset($record['formatted']['context']['transaction_name']);
+ }
+
+ if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) {
+ newrelic_notice_error($record['message'], $record['context']['exception']);
+ unset($record['formatted']['context']['exception']);
+ } else {
+ newrelic_notice_error($record['message']);
+ }
+
+ if (isset($record['formatted']['context']) && is_array($record['formatted']['context'])) {
+ foreach ($record['formatted']['context'] as $key => $parameter) {
+ if (is_array($parameter) && $this->explodeArrays) {
+ foreach ($parameter as $paramKey => $paramValue) {
+ $this->setNewRelicParameter('context_' . $key . '_' . $paramKey, $paramValue);
+ }
+ } else {
+ $this->setNewRelicParameter('context_' . $key, $parameter);
+ }
+ }
+ }
+
+ if (isset($record['formatted']['extra']) && is_array($record['formatted']['extra'])) {
+ foreach ($record['formatted']['extra'] as $key => $parameter) {
+ if (is_array($parameter) && $this->explodeArrays) {
+ foreach ($parameter as $paramKey => $paramValue) {
+ $this->setNewRelicParameter('extra_' . $key . '_' . $paramKey, $paramValue);
+ }
+ } else {
+ $this->setNewRelicParameter('extra_' . $key, $parameter);
+ }
+ }
+ }
+ }
+
+ /**
+ * Checks whether the NewRelic extension is enabled in the system.
+ *
+ * @return bool
+ */
+ protected function isNewRelicEnabled()
+ {
+ return extension_loaded('newrelic');
+ }
+
+ /**
+ * Returns the appname where this log should be sent. Each log can override the default appname, set in this
+ * handler's constructor, by providing the appname in it's context.
+ *
+ * @param array $context
+ * @return null|string
+ */
+ protected function getAppName(array $context)
+ {
+ if (isset($context['appname'])) {
+ return $context['appname'];
+ }
+
+ return $this->appName;
+ }
+
+ /**
+ * Returns the name of the current transaction. Each log can override the default transaction name, set in this
+ * handler's constructor, by providing the transaction_name in it's context
+ *
+ * @param array $context
+ *
+ * @return null|string
+ */
+ protected function getTransactionName(array $context)
+ {
+ if (isset($context['transaction_name'])) {
+ return $context['transaction_name'];
+ }
+
+ return $this->transactionName;
+ }
+
+ /**
+ * Sets the NewRelic application that should receive this log.
+ *
+ * @param string $appName
+ */
+ protected function setNewRelicAppName($appName)
+ {
+ newrelic_set_appname($appName);
+ }
+
+ /**
+ * Overwrites the name of the current transaction
+ *
+ * @param string $transactionName
+ */
+ protected function setNewRelicTransactionName($transactionName)
+ {
+ newrelic_name_transaction($transactionName);
+ }
+
+ /**
+ * @param string $key
+ * @param mixed $value
+ */
+ protected function setNewRelicParameter($key, $value)
+ {
+ if (null === $value || is_scalar($value)) {
+ newrelic_add_custom_parameter($key, $value);
+ } else {
+ newrelic_add_custom_parameter($key, @json_encode($value));
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new NormalizerFormatter();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NullHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NullHandler.php
new file mode 100644
index 00000000..4b845883
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/NullHandler.php
@@ -0,0 +1,45 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Blackhole
+ *
+ * Any record it can handle will be thrown away. This can be used
+ * to put on top of an existing stack to override it temporarily.
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class NullHandler extends AbstractHandler
+{
+ /**
+ * @param int $level The minimum logging level at which this handler will be triggered
+ */
+ public function __construct($level = Logger::DEBUG)
+ {
+ parent::__construct($level, false);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ if ($record['level'] < $this->level) {
+ return false;
+ }
+
+ return true;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
new file mode 100644
index 00000000..1f2076a4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
@@ -0,0 +1,242 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Exception;
+use Monolog\Formatter\LineFormatter;
+use Monolog\Logger;
+use PhpConsole\Connector;
+use PhpConsole\Handler;
+use PhpConsole\Helper;
+
+/**
+ * Monolog handler for Google Chrome extension "PHP Console"
+ *
+ * Display PHP error/debug log messages in Google Chrome console and notification popups, executes PHP code remotely
+ *
+ * Usage:
+ * 1. Install Google Chrome extension https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef
+ * 2. See overview https://github.com/barbushin/php-console#overview
+ * 3. Install PHP Console library https://github.com/barbushin/php-console#installation
+ * 4. Example (result will looks like http://i.hizliresim.com/vg3Pz4.png)
+ *
+ * $logger = new \Monolog\Logger('all', array(new \Monolog\Handler\PHPConsoleHandler()));
+ * \Monolog\ErrorHandler::register($logger);
+ * echo $undefinedVar;
+ * $logger->addDebug('SELECT * FROM users', array('db', 'time' => 0.012));
+ * PC::debug($_SERVER); // PHP Console debugger for any type of vars
+ *
+ * @author Sergey Barbushin https://www.linkedin.com/in/barbushin
+ */
+class PHPConsoleHandler extends AbstractProcessingHandler
+{
+ private $options = array(
+ 'enabled' => true, // bool Is PHP Console server enabled
+ 'classesPartialsTraceIgnore' => array('Monolog\\'), // array Hide calls of classes started with...
+ 'debugTagsKeysInContext' => array(0, 'tag'), // bool Is PHP Console server enabled
+ 'useOwnErrorsHandler' => false, // bool Enable errors handling
+ 'useOwnExceptionsHandler' => false, // bool Enable exceptions handling
+ 'sourcesBasePath' => null, // string Base path of all project sources to strip in errors source paths
+ 'registerHelper' => true, // bool Register PhpConsole\Helper that allows short debug calls like PC::debug($var, 'ta.g.s')
+ 'serverEncoding' => null, // string|null Server internal encoding
+ 'headersLimit' => null, // int|null Set headers size limit for your web-server
+ 'password' => null, // string|null Protect PHP Console connection by password
+ 'enableSslOnlyMode' => false, // bool Force connection by SSL for clients with PHP Console installed
+ 'ipMasks' => array(), // array Set IP masks of clients that will be allowed to connect to PHP Console: array('192.168.*.*', '127.0.0.1')
+ 'enableEvalListener' => false, // bool Enable eval request to be handled by eval dispatcher(if enabled, 'password' option is also required)
+ 'dumperDetectCallbacks' => false, // bool Convert callback items in dumper vars to (callback SomeClass::someMethod) strings
+ 'dumperLevelLimit' => 5, // int Maximum dumped vars array or object nested dump level
+ 'dumperItemsCountLimit' => 100, // int Maximum dumped var same level array items or object properties number
+ 'dumperItemSizeLimit' => 5000, // int Maximum length of any string or dumped array item
+ 'dumperDumpSizeLimit' => 500000, // int Maximum approximate size of dumped vars result formatted in JSON
+ 'detectDumpTraceAndSource' => false, // bool Autodetect and append trace data to debug
+ 'dataStorage' => null, // PhpConsole\Storage|null Fixes problem with custom $_SESSION handler(see http://goo.gl/Ne8juJ)
+ );
+
+ /** @var Connector */
+ private $connector;
+
+ /**
+ * @param array $options See \Monolog\Handler\PHPConsoleHandler::$options for more details
+ * @param Connector|null $connector Instance of \PhpConsole\Connector class (optional)
+ * @param int $level
+ * @param bool $bubble
+ * @throws Exception
+ */
+ public function __construct(array $options = array(), Connector $connector = null, $level = Logger::DEBUG, $bubble = true)
+ {
+ if (!class_exists('PhpConsole\Connector')) {
+ throw new Exception('PHP Console library not found. See https://github.com/barbushin/php-console#installation');
+ }
+ parent::__construct($level, $bubble);
+ $this->options = $this->initOptions($options);
+ $this->connector = $this->initConnector($connector);
+ }
+
+ private function initOptions(array $options)
+ {
+ $wrongOptions = array_diff(array_keys($options), array_keys($this->options));
+ if ($wrongOptions) {
+ throw new Exception('Unknown options: ' . implode(', ', $wrongOptions));
+ }
+
+ return array_replace($this->options, $options);
+ }
+
+ private function initConnector(Connector $connector = null)
+ {
+ if (!$connector) {
+ if ($this->options['dataStorage']) {
+ Connector::setPostponeStorage($this->options['dataStorage']);
+ }
+ $connector = Connector::getInstance();
+ }
+
+ if ($this->options['registerHelper'] && !Helper::isRegistered()) {
+ Helper::register();
+ }
+
+ if ($this->options['enabled'] && $connector->isActiveClient()) {
+ if ($this->options['useOwnErrorsHandler'] || $this->options['useOwnExceptionsHandler']) {
+ $handler = Handler::getInstance();
+ $handler->setHandleErrors($this->options['useOwnErrorsHandler']);
+ $handler->setHandleExceptions($this->options['useOwnExceptionsHandler']);
+ $handler->start();
+ }
+ if ($this->options['sourcesBasePath']) {
+ $connector->setSourcesBasePath($this->options['sourcesBasePath']);
+ }
+ if ($this->options['serverEncoding']) {
+ $connector->setServerEncoding($this->options['serverEncoding']);
+ }
+ if ($this->options['password']) {
+ $connector->setPassword($this->options['password']);
+ }
+ if ($this->options['enableSslOnlyMode']) {
+ $connector->enableSslOnlyMode();
+ }
+ if ($this->options['ipMasks']) {
+ $connector->setAllowedIpMasks($this->options['ipMasks']);
+ }
+ if ($this->options['headersLimit']) {
+ $connector->setHeadersLimit($this->options['headersLimit']);
+ }
+ if ($this->options['detectDumpTraceAndSource']) {
+ $connector->getDebugDispatcher()->detectTraceAndSource = true;
+ }
+ $dumper = $connector->getDumper();
+ $dumper->levelLimit = $this->options['dumperLevelLimit'];
+ $dumper->itemsCountLimit = $this->options['dumperItemsCountLimit'];
+ $dumper->itemSizeLimit = $this->options['dumperItemSizeLimit'];
+ $dumper->dumpSizeLimit = $this->options['dumperDumpSizeLimit'];
+ $dumper->detectCallbacks = $this->options['dumperDetectCallbacks'];
+ if ($this->options['enableEvalListener']) {
+ $connector->startEvalRequestsListener();
+ }
+ }
+
+ return $connector;
+ }
+
+ public function getConnector()
+ {
+ return $this->connector;
+ }
+
+ public function getOptions()
+ {
+ return $this->options;
+ }
+
+ public function handle(array $record)
+ {
+ if ($this->options['enabled'] && $this->connector->isActiveClient()) {
+ return parent::handle($record);
+ }
+
+ return !$this->bubble;
+ }
+
+ /**
+ * Writes the record down to the log of the implementing handler
+ *
+ * @param array $record
+ * @return void
+ */
+ protected function write(array $record)
+ {
+ if ($record['level'] < Logger::NOTICE) {
+ $this->handleDebugRecord($record);
+ } elseif (isset($record['context']['exception']) && $record['context']['exception'] instanceof Exception) {
+ $this->handleExceptionRecord($record);
+ } else {
+ $this->handleErrorRecord($record);
+ }
+ }
+
+ private function handleDebugRecord(array $record)
+ {
+ $tags = $this->getRecordTags($record);
+ $message = $record['message'];
+ if ($record['context']) {
+ $message .= ' ' . json_encode($this->connector->getDumper()->dump(array_filter($record['context'])));
+ }
+ $this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']);
+ }
+
+ private function handleExceptionRecord(array $record)
+ {
+ $this->connector->getErrorsDispatcher()->dispatchException($record['context']['exception']);
+ }
+
+ private function handleErrorRecord(array $record)
+ {
+ $context = $record['context'];
+
+ $this->connector->getErrorsDispatcher()->dispatchError(
+ isset($context['code']) ? $context['code'] : null,
+ isset($context['message']) ? $context['message'] : $record['message'],
+ isset($context['file']) ? $context['file'] : null,
+ isset($context['line']) ? $context['line'] : null,
+ $this->options['classesPartialsTraceIgnore']
+ );
+ }
+
+ private function getRecordTags(array &$record)
+ {
+ $tags = null;
+ if (!empty($record['context'])) {
+ $context = & $record['context'];
+ foreach ($this->options['debugTagsKeysInContext'] as $key) {
+ if (!empty($context[$key])) {
+ $tags = $context[$key];
+ if ($key === 0) {
+ array_shift($context);
+ } else {
+ unset($context[$key]);
+ }
+ break;
+ }
+ }
+ }
+
+ return $tags ?: strtolower($record['level_name']);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter('%message%');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PsrHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PsrHandler.php
new file mode 100644
index 00000000..1ae85845
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PsrHandler.php
@@ -0,0 +1,56 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Psr\Log\LoggerInterface;
+
+/**
+ * Proxies log messages to an existing PSR-3 compliant logger.
+ *
+ * @author Michael Moussa <michael.moussa@gmail.com>
+ */
+class PsrHandler extends AbstractHandler
+{
+ /**
+ * PSR-3 compliant logger
+ *
+ * @var LoggerInterface
+ */
+ protected $logger;
+
+ /**
+ * @param LoggerInterface $logger The underlying PSR-3 compliant logger to which messages will be proxied
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct(LoggerInterface $logger, $level = Logger::DEBUG, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+
+ $this->logger = $logger;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public function handle(array $record)
+ {
+ if (!$this->isHandling($record)) {
+ return false;
+ }
+
+ $this->logger->log(strtolower($record['level_name']), $record['message'], $record['context']);
+
+ return false === $this->bubble;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PushoverHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PushoverHandler.php
new file mode 100644
index 00000000..bba72005
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/PushoverHandler.php
@@ -0,0 +1,185 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Sends notifications through the pushover api to mobile phones
+ *
+ * @author Sebastian Göttschkes <sebastian.goettschkes@googlemail.com>
+ * @see https://www.pushover.net/api
+ */
+class PushoverHandler extends SocketHandler
+{
+ private $token;
+ private $users;
+ private $title;
+ private $user;
+ private $retry;
+ private $expire;
+
+ private $highPriorityLevel;
+ private $emergencyLevel;
+ private $useFormattedMessage = false;
+
+ /**
+ * All parameters that can be sent to Pushover
+ * @see https://pushover.net/api
+ * @var array
+ */
+ private $parameterNames = array(
+ 'token' => true,
+ 'user' => true,
+ 'message' => true,
+ 'device' => true,
+ 'title' => true,
+ 'url' => true,
+ 'url_title' => true,
+ 'priority' => true,
+ 'timestamp' => true,
+ 'sound' => true,
+ 'retry' => true,
+ 'expire' => true,
+ 'callback' => true,
+ );
+
+ /**
+ * Sounds the api supports by default
+ * @see https://pushover.net/api#sounds
+ * @var array
+ */
+ private $sounds = array(
+ 'pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming',
+ 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb',
+ 'persistent', 'echo', 'updown', 'none',
+ );
+
+ /**
+ * @param string $token Pushover api token
+ * @param string|array $users Pushover user id or array of ids the message will be sent to
+ * @param string $title Title sent to the Pushover API
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param Boolean $useSSL Whether to connect via SSL. Required when pushing messages to users that are not
+ * the pushover.net app owner. OpenSSL is required for this option.
+ * @param int $highPriorityLevel The minimum logging level at which this handler will start
+ * sending "high priority" requests to the Pushover API
+ * @param int $emergencyLevel The minimum logging level at which this handler will start
+ * sending "emergency" requests to the Pushover API
+ * @param int $retry The retry parameter specifies how often (in seconds) the Pushover servers will send the same notification to the user.
+ * @param int $expire The expire parameter specifies how many seconds your notification will continue to be retried for (every retry seconds).
+ */
+ public function __construct($token, $users, $title = null, $level = Logger::CRITICAL, $bubble = true, $useSSL = true, $highPriorityLevel = Logger::CRITICAL, $emergencyLevel = Logger::EMERGENCY, $retry = 30, $expire = 25200)
+ {
+ $connectionString = $useSSL ? 'ssl://api.pushover.net:443' : 'api.pushover.net:80';
+ parent::__construct($connectionString, $level, $bubble);
+
+ $this->token = $token;
+ $this->users = (array) $users;
+ $this->title = $title ?: gethostname();
+ $this->highPriorityLevel = Logger::toMonologLevel($highPriorityLevel);
+ $this->emergencyLevel = Logger::toMonologLevel($emergencyLevel);
+ $this->retry = $retry;
+ $this->expire = $expire;
+ }
+
+ protected function generateDataStream($record)
+ {
+ $content = $this->buildContent($record);
+
+ return $this->buildHeader($content) . $content;
+ }
+
+ private function buildContent($record)
+ {
+ // Pushover has a limit of 512 characters on title and message combined.
+ $maxMessageLength = 512 - strlen($this->title);
+
+ $message = ($this->useFormattedMessage) ? $record['formatted'] : $record['message'];
+ $message = substr($message, 0, $maxMessageLength);
+
+ $timestamp = $record['datetime']->getTimestamp();
+
+ $dataArray = array(
+ 'token' => $this->token,
+ 'user' => $this->user,
+ 'message' => $message,
+ 'title' => $this->title,
+ 'timestamp' => $timestamp,
+ );
+
+ if (isset($record['level']) && $record['level'] >= $this->emergencyLevel) {
+ $dataArray['priority'] = 2;
+ $dataArray['retry'] = $this->retry;
+ $dataArray['expire'] = $this->expire;
+ } elseif (isset($record['level']) && $record['level'] >= $this->highPriorityLevel) {
+ $dataArray['priority'] = 1;
+ }
+
+ // First determine the available parameters
+ $context = array_intersect_key($record['context'], $this->parameterNames);
+ $extra = array_intersect_key($record['extra'], $this->parameterNames);
+
+ // Least important info should be merged with subsequent info
+ $dataArray = array_merge($extra, $context, $dataArray);
+
+ // Only pass sounds that are supported by the API
+ if (isset($dataArray['sound']) && !in_array($dataArray['sound'], $this->sounds)) {
+ unset($dataArray['sound']);
+ }
+
+ return http_build_query($dataArray);
+ }
+
+ private function buildHeader($content)
+ {
+ $header = "POST /1/messages.json HTTP/1.1\r\n";
+ $header .= "Host: api.pushover.net\r\n";
+ $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
+ $header .= "Content-Length: " . strlen($content) . "\r\n";
+ $header .= "\r\n";
+
+ return $header;
+ }
+
+ protected function write(array $record)
+ {
+ foreach ($this->users as $user) {
+ $this->user = $user;
+
+ parent::write($record);
+ $this->closeSocket();
+ }
+
+ $this->user = null;
+ }
+
+ public function setHighPriorityLevel($value)
+ {
+ $this->highPriorityLevel = $value;
+ }
+
+ public function setEmergencyLevel($value)
+ {
+ $this->emergencyLevel = $value;
+ }
+
+ /**
+ * Use the formatted message?
+ * @param bool $value
+ */
+ public function useFormattedMessage($value)
+ {
+ $this->useFormattedMessage = (boolean) $value;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RavenHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RavenHandler.php
new file mode 100644
index 00000000..53a8b391
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RavenHandler.php
@@ -0,0 +1,232 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\LineFormatter;
+use Monolog\Formatter\FormatterInterface;
+use Monolog\Logger;
+use Raven_Client;
+
+/**
+ * Handler to send messages to a Sentry (https://github.com/getsentry/sentry) server
+ * using raven-php (https://github.com/getsentry/raven-php)
+ *
+ * @author Marc Abramowitz <marc@marc-abramowitz.com>
+ */
+class RavenHandler extends AbstractProcessingHandler
+{
+ /**
+ * Translates Monolog log levels to Raven log levels.
+ */
+ private $logLevels = array(
+ Logger::DEBUG => Raven_Client::DEBUG,
+ Logger::INFO => Raven_Client::INFO,
+ Logger::NOTICE => Raven_Client::INFO,
+ Logger::WARNING => Raven_Client::WARNING,
+ Logger::ERROR => Raven_Client::ERROR,
+ Logger::CRITICAL => Raven_Client::FATAL,
+ Logger::ALERT => Raven_Client::FATAL,
+ Logger::EMERGENCY => Raven_Client::FATAL,
+ );
+
+ /**
+ * @var string should represent the current version of the calling
+ * software. Can be any string (git commit, version number)
+ */
+ private $release;
+
+ /**
+ * @var Raven_Client the client object that sends the message to the server
+ */
+ protected $ravenClient;
+
+ /**
+ * @var LineFormatter The formatter to use for the logs generated via handleBatch()
+ */
+ protected $batchFormatter;
+
+ /**
+ * @param Raven_Client $ravenClient
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct(Raven_Client $ravenClient, $level = Logger::DEBUG, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+
+ $this->ravenClient = $ravenClient;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ $level = $this->level;
+
+ // filter records based on their level
+ $records = array_filter($records, function ($record) use ($level) {
+ return $record['level'] >= $level;
+ });
+
+ if (!$records) {
+ return;
+ }
+
+ // the record with the highest severity is the "main" one
+ $record = array_reduce($records, function ($highest, $record) {
+ if ($record['level'] > $highest['level']) {
+ return $record;
+ }
+
+ return $highest;
+ });
+
+ // the other ones are added as a context item
+ $logs = array();
+ foreach ($records as $r) {
+ $logs[] = $this->processRecord($r);
+ }
+
+ if ($logs) {
+ $record['context']['logs'] = (string) $this->getBatchFormatter()->formatBatch($logs);
+ }
+
+ $this->handle($record);
+ }
+
+ /**
+ * Sets the formatter for the logs generated by handleBatch().
+ *
+ * @param FormatterInterface $formatter
+ */
+ public function setBatchFormatter(FormatterInterface $formatter)
+ {
+ $this->batchFormatter = $formatter;
+ }
+
+ /**
+ * Gets the formatter for the logs generated by handleBatch().
+ *
+ * @return FormatterInterface
+ */
+ public function getBatchFormatter()
+ {
+ if (!$this->batchFormatter) {
+ $this->batchFormatter = $this->getDefaultBatchFormatter();
+ }
+
+ return $this->batchFormatter;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ $previousUserContext = false;
+ $options = array();
+ $options['level'] = $this->logLevels[$record['level']];
+ $options['tags'] = array();
+ if (!empty($record['extra']['tags'])) {
+ $options['tags'] = array_merge($options['tags'], $record['extra']['tags']);
+ unset($record['extra']['tags']);
+ }
+ if (!empty($record['context']['tags'])) {
+ $options['tags'] = array_merge($options['tags'], $record['context']['tags']);
+ unset($record['context']['tags']);
+ }
+ if (!empty($record['context']['fingerprint'])) {
+ $options['fingerprint'] = $record['context']['fingerprint'];
+ unset($record['context']['fingerprint']);
+ }
+ if (!empty($record['context']['logger'])) {
+ $options['logger'] = $record['context']['logger'];
+ unset($record['context']['logger']);
+ } else {
+ $options['logger'] = $record['channel'];
+ }
+ foreach ($this->getExtraParameters() as $key) {
+ foreach (array('extra', 'context') as $source) {
+ if (!empty($record[$source][$key])) {
+ $options[$key] = $record[$source][$key];
+ unset($record[$source][$key]);
+ }
+ }
+ }
+ if (!empty($record['context'])) {
+ $options['extra']['context'] = $record['context'];
+ if (!empty($record['context']['user'])) {
+ $previousUserContext = $this->ravenClient->context->user;
+ $this->ravenClient->user_context($record['context']['user']);
+ unset($options['extra']['context']['user']);
+ }
+ }
+ if (!empty($record['extra'])) {
+ $options['extra']['extra'] = $record['extra'];
+ }
+
+ if (!empty($this->release) && !isset($options['release'])) {
+ $options['release'] = $this->release;
+ }
+
+ if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || (PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable))) {
+ $options['extra']['message'] = $record['formatted'];
+ $this->ravenClient->captureException($record['context']['exception'], $options);
+ } else {
+ $this->ravenClient->captureMessage($record['formatted'], array(), $options);
+ }
+
+ if ($previousUserContext !== false) {
+ $this->ravenClient->user_context($previousUserContext);
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter('[%channel%] %message%');
+ }
+
+ /**
+ * Gets the default formatter for the logs generated by handleBatch().
+ *
+ * @return FormatterInterface
+ */
+ protected function getDefaultBatchFormatter()
+ {
+ return new LineFormatter();
+ }
+
+ /**
+ * Gets extra parameters supported by Raven that can be found in "extra" and "context"
+ *
+ * @return array
+ */
+ protected function getExtraParameters()
+ {
+ return array('checksum', 'release', 'event_id');
+ }
+
+ /**
+ * @param string $value
+ * @return self
+ */
+ public function setRelease($value)
+ {
+ $this->release = $value;
+
+ return $this;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RedisHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RedisHandler.php
new file mode 100644
index 00000000..590f9965
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RedisHandler.php
@@ -0,0 +1,97 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\LineFormatter;
+use Monolog\Logger;
+
+/**
+ * Logs to a Redis key using rpush
+ *
+ * usage example:
+ *
+ * $log = new Logger('application');
+ * $redis = new RedisHandler(new Predis\Client("tcp://localhost:6379"), "logs", "prod");
+ * $log->pushHandler($redis);
+ *
+ * @author Thomas Tourlourat <thomas@tourlourat.com>
+ */
+class RedisHandler extends AbstractProcessingHandler
+{
+ private $redisClient;
+ private $redisKey;
+ protected $capSize;
+
+ /**
+ * @param \Predis\Client|\Redis $redis The redis instance
+ * @param string $key The key name to push records to
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param int $capSize Number of entries to limit list size to
+ */
+ public function __construct($redis, $key, $level = Logger::DEBUG, $bubble = true, $capSize = false)
+ {
+ if (!(($redis instanceof \Predis\Client) || ($redis instanceof \Redis))) {
+ throw new \InvalidArgumentException('Predis\Client or Redis instance required');
+ }
+
+ $this->redisClient = $redis;
+ $this->redisKey = $key;
+ $this->capSize = $capSize;
+
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function write(array $record)
+ {
+ if ($this->capSize) {
+ $this->writeCapped($record);
+ } else {
+ $this->redisClient->rpush($this->redisKey, $record["formatted"]);
+ }
+ }
+
+ /**
+ * Write and cap the collection
+ * Writes the record to the redis list and caps its
+ *
+ * @param array $record associative record array
+ * @return void
+ */
+ protected function writeCapped(array $record)
+ {
+ if ($this->redisClient instanceof \Redis) {
+ $this->redisClient->multi()
+ ->rpush($this->redisKey, $record["formatted"])
+ ->ltrim($this->redisKey, -$this->capSize, -1)
+ ->exec();
+ } else {
+ $redisKey = $this->redisKey;
+ $capSize = $this->capSize;
+ $this->redisClient->transaction(function ($tx) use ($record, $redisKey, $capSize) {
+ $tx->rpush($redisKey, $record["formatted"]);
+ $tx->ltrim($redisKey, -$capSize, -1);
+ });
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getDefaultFormatter()
+ {
+ return new LineFormatter();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RollbarHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RollbarHandler.php
new file mode 100644
index 00000000..6c8a3e3e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RollbarHandler.php
@@ -0,0 +1,132 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use RollbarNotifier;
+use Exception;
+use Monolog\Logger;
+
+/**
+ * Sends errors to Rollbar
+ *
+ * If the context data contains a `payload` key, that is used as an array
+ * of payload options to RollbarNotifier's report_message/report_exception methods.
+ *
+ * Rollbar's context info will contain the context + extra keys from the log record
+ * merged, and then on top of that a few keys:
+ *
+ * - level (rollbar level name)
+ * - monolog_level (monolog level name, raw level, as rollbar only has 5 but monolog 8)
+ * - channel
+ * - datetime (unix timestamp)
+ *
+ * @author Paul Statezny <paulstatezny@gmail.com>
+ */
+class RollbarHandler extends AbstractProcessingHandler
+{
+ /**
+ * Rollbar notifier
+ *
+ * @var RollbarNotifier
+ */
+ protected $rollbarNotifier;
+
+ protected $levelMap = array(
+ Logger::DEBUG => 'debug',
+ Logger::INFO => 'info',
+ Logger::NOTICE => 'info',
+ Logger::WARNING => 'warning',
+ Logger::ERROR => 'error',
+ Logger::CRITICAL => 'critical',
+ Logger::ALERT => 'critical',
+ Logger::EMERGENCY => 'critical',
+ );
+
+ /**
+ * Records whether any log records have been added since the last flush of the rollbar notifier
+ *
+ * @var bool
+ */
+ private $hasRecords = false;
+
+ protected $initialized = false;
+
+ /**
+ * @param RollbarNotifier $rollbarNotifier RollbarNotifier object constructed with valid token
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct(RollbarNotifier $rollbarNotifier, $level = Logger::ERROR, $bubble = true)
+ {
+ $this->rollbarNotifier = $rollbarNotifier;
+
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ if (!$this->initialized) {
+ // __destructor() doesn't get called on Fatal errors
+ register_shutdown_function(array($this, 'close'));
+ $this->initialized = true;
+ }
+
+ $context = $record['context'];
+ $payload = array();
+ if (isset($context['payload'])) {
+ $payload = $context['payload'];
+ unset($context['payload']);
+ }
+ $context = array_merge($context, $record['extra'], array(
+ 'level' => $this->levelMap[$record['level']],
+ 'monolog_level' => $record['level_name'],
+ 'channel' => $record['channel'],
+ 'datetime' => $record['datetime']->format('U'),
+ ));
+
+ if (isset($context['exception']) && $context['exception'] instanceof Exception) {
+ $payload['level'] = $context['level'];
+ $exception = $context['exception'];
+ unset($context['exception']);
+
+ $this->rollbarNotifier->report_exception($exception, $context, $payload);
+ } else {
+ $this->rollbarNotifier->report_message(
+ $record['message'],
+ $context['level'],
+ $context,
+ $payload
+ );
+ }
+
+ $this->hasRecords = true;
+ }
+
+ public function flush()
+ {
+ if ($this->hasRecords) {
+ $this->rollbarNotifier->flush();
+ $this->hasRecords = false;
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ $this->flush();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
new file mode 100644
index 00000000..3b60b3d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
@@ -0,0 +1,178 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Stores logs to files that are rotated every day and a limited number of files are kept.
+ *
+ * This rotation is only intended to be used as a workaround. Using logrotate to
+ * handle the rotation is strongly encouraged when you can use it.
+ *
+ * @author Christophe Coevoet <stof@notk.org>
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class RotatingFileHandler extends StreamHandler
+{
+ const FILE_PER_DAY = 'Y-m-d';
+ const FILE_PER_MONTH = 'Y-m';
+ const FILE_PER_YEAR = 'Y';
+
+ protected $filename;
+ protected $maxFiles;
+ protected $mustRotate;
+ protected $nextRotation;
+ protected $filenameFormat;
+ protected $dateFormat;
+
+ /**
+ * @param string $filename
+ * @param int $maxFiles The maximal amount of files to keep (0 means unlimited)
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write)
+ * @param Boolean $useLocking Try to lock log file before doing any writes
+ */
+ public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false)
+ {
+ $this->filename = $filename;
+ $this->maxFiles = (int) $maxFiles;
+ $this->nextRotation = new \DateTime('tomorrow');
+ $this->filenameFormat = '{filename}-{date}';
+ $this->dateFormat = 'Y-m-d';
+
+ parent::__construct($this->getTimedFilename(), $level, $bubble, $filePermission, $useLocking);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ parent::close();
+
+ if (true === $this->mustRotate) {
+ $this->rotate();
+ }
+ }
+
+ public function setFilenameFormat($filenameFormat, $dateFormat)
+ {
+ if (!preg_match('{^Y(([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) {
+ trigger_error(
+ 'Invalid date format - format must be one of '.
+ 'RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), RotatingFileHandler::FILE_PER_MONTH ("Y-m") '.
+ 'or RotatingFileHandler::FILE_PER_YEAR ("Y"), or you can set one of the '.
+ 'date formats using slashes, underscores and/or dots instead of dashes.',
+ E_USER_DEPRECATED
+ );
+ }
+ if (substr_count($filenameFormat, '{date}') === 0) {
+ trigger_error(
+ 'Invalid filename format - format should contain at least `{date}`, because otherwise rotating is impossible.',
+ E_USER_DEPRECATED
+ );
+ }
+ $this->filenameFormat = $filenameFormat;
+ $this->dateFormat = $dateFormat;
+ $this->url = $this->getTimedFilename();
+ $this->close();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ // on the first record written, if the log is new, we should rotate (once per day)
+ if (null === $this->mustRotate) {
+ $this->mustRotate = !file_exists($this->url);
+ }
+
+ if ($this->nextRotation < $record['datetime']) {
+ $this->mustRotate = true;
+ $this->close();
+ }
+
+ parent::write($record);
+ }
+
+ /**
+ * Rotates the files.
+ */
+ protected function rotate()
+ {
+ // update filename
+ $this->url = $this->getTimedFilename();
+ $this->nextRotation = new \DateTime('tomorrow');
+
+ // skip GC of old logs if files are unlimited
+ if (0 === $this->maxFiles) {
+ return;
+ }
+
+ $logFiles = glob($this->getGlobPattern());
+ if ($this->maxFiles >= count($logFiles)) {
+ // no files to remove
+ return;
+ }
+
+ // Sorting the files by name to remove the older ones
+ usort($logFiles, function ($a, $b) {
+ return strcmp($b, $a);
+ });
+
+ foreach (array_slice($logFiles, $this->maxFiles) as $file) {
+ if (is_writable($file)) {
+ // suppress errors here as unlink() might fail if two processes
+ // are cleaning up/rotating at the same time
+ set_error_handler(function ($errno, $errstr, $errfile, $errline) {});
+ unlink($file);
+ restore_error_handler();
+ }
+ }
+
+ $this->mustRotate = false;
+ }
+
+ protected function getTimedFilename()
+ {
+ $fileInfo = pathinfo($this->filename);
+ $timedFilename = str_replace(
+ array('{filename}', '{date}'),
+ array($fileInfo['filename'], date($this->dateFormat)),
+ $fileInfo['dirname'] . '/' . $this->filenameFormat
+ );
+
+ if (!empty($fileInfo['extension'])) {
+ $timedFilename .= '.'.$fileInfo['extension'];
+ }
+
+ return $timedFilename;
+ }
+
+ protected function getGlobPattern()
+ {
+ $fileInfo = pathinfo($this->filename);
+ $glob = str_replace(
+ array('{filename}', '{date}'),
+ array($fileInfo['filename'], '*'),
+ $fileInfo['dirname'] . '/' . $this->filenameFormat
+ );
+ if (!empty($fileInfo['extension'])) {
+ $glob .= '.'.$fileInfo['extension'];
+ }
+
+ return $glob;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SamplingHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
new file mode 100644
index 00000000..9509ae37
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
@@ -0,0 +1,82 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+/**
+ * Sampling handler
+ *
+ * A sampled event stream can be useful for logging high frequency events in
+ * a production environment where you only need an idea of what is happening
+ * and are not concerned with capturing every occurrence. Since the decision to
+ * handle or not handle a particular event is determined randomly, the
+ * resulting sampled log is not guaranteed to contain 1/N of the events that
+ * occurred in the application, but based on the Law of large numbers, it will
+ * tend to be close to this ratio with a large number of attempts.
+ *
+ * @author Bryan Davis <bd808@wikimedia.org>
+ * @author Kunal Mehta <legoktm@gmail.com>
+ */
+class SamplingHandler extends AbstractHandler
+{
+ /**
+ * @var callable|HandlerInterface $handler
+ */
+ protected $handler;
+
+ /**
+ * @var int $factor
+ */
+ protected $factor;
+
+ /**
+ * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
+ * @param int $factor Sample factor
+ */
+ public function __construct($handler, $factor)
+ {
+ parent::__construct();
+ $this->handler = $handler;
+ $this->factor = $factor;
+
+ if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
+ throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object");
+ }
+ }
+
+ public function isHandling(array $record)
+ {
+ return $this->handler->isHandling($record);
+ }
+
+ public function handle(array $record)
+ {
+ if ($this->isHandling($record) && mt_rand(1, $this->factor) === 1) {
+ // The same logic as in FingersCrossedHandler
+ if (!$this->handler instanceof HandlerInterface) {
+ $this->handler = call_user_func($this->handler, $record, $this);
+ if (!$this->handler instanceof HandlerInterface) {
+ throw new \RuntimeException("The factory callable should return a HandlerInterface");
+ }
+ }
+
+ if ($this->processors) {
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+ }
+
+ $this->handler->handle($record);
+ }
+
+ return false === $this->bubble;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
new file mode 100644
index 00000000..38bc838a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
@@ -0,0 +1,294 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler\Slack;
+
+use Monolog\Logger;
+use Monolog\Formatter\NormalizerFormatter;
+use Monolog\Formatter\FormatterInterface;
+
+/**
+ * Slack record utility helping to log to Slack webhooks or API.
+ *
+ * @author Greg Kedzierski <greg@gregkedzierski.com>
+ * @author Haralan Dobrev <hkdobrev@gmail.com>
+ * @see https://api.slack.com/incoming-webhooks
+ * @see https://api.slack.com/docs/message-attachments
+ */
+class SlackRecord
+{
+ const COLOR_DANGER = 'danger';
+
+ const COLOR_WARNING = 'warning';
+
+ const COLOR_GOOD = 'good';
+
+ const COLOR_DEFAULT = '#e3e4e6';
+
+ /**
+ * Slack channel (encoded ID or name)
+ * @var string|null
+ */
+ private $channel;
+
+ /**
+ * Name of a bot
+ * @var string|null
+ */
+ private $username;
+
+ /**
+ * User icon e.g. 'ghost', 'http://example.com/user.png'
+ * @var string
+ */
+ private $userIcon;
+
+ /**
+ * Whether the message should be added to Slack as attachment (plain text otherwise)
+ * @var bool
+ */
+ private $useAttachment;
+
+ /**
+ * Whether the the context/extra messages added to Slack as attachments are in a short style
+ * @var bool
+ */
+ private $useShortAttachment;
+
+ /**
+ * Whether the attachment should include context and extra data
+ * @var bool
+ */
+ private $includeContextAndExtra;
+
+ /**
+ * Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2']
+ * @var array
+ */
+ private $excludeFields;
+
+ /**
+ * @var FormatterInterface
+ */
+ private $formatter;
+
+ /**
+ * @var NormalizerFormatter
+ */
+ private $normalizerFormatter;
+
+ public function __construct($channel = null, $username = null, $useAttachment = true, $userIcon = null, $useShortAttachment = false, $includeContextAndExtra = false, array $excludeFields = array(), FormatterInterface $formatter = null)
+ {
+ $this->channel = $channel;
+ $this->username = $username;
+ $this->userIcon = trim($userIcon, ':');
+ $this->useAttachment = $useAttachment;
+ $this->useShortAttachment = $useShortAttachment;
+ $this->includeContextAndExtra = $includeContextAndExtra;
+ $this->excludeFields = $excludeFields;
+ $this->formatter = $formatter;
+
+ if ($this->includeContextAndExtra) {
+ $this->normalizerFormatter = new NormalizerFormatter();
+ }
+ }
+
+ public function getSlackData(array $record)
+ {
+ $dataArray = array();
+ $record = $this->excludeFields($record);
+
+ if ($this->username) {
+ $dataArray['username'] = $this->username;
+ }
+
+ if ($this->channel) {
+ $dataArray['channel'] = $this->channel;
+ }
+
+ if ($this->formatter && !$this->useAttachment) {
+ $message = $this->formatter->format($record);
+ } else {
+ $message = $record['message'];
+ }
+
+ if ($this->useAttachment) {
+ $attachment = array(
+ 'fallback' => $message,
+ 'text' => $message,
+ 'color' => $this->getAttachmentColor($record['level']),
+ 'fields' => array(),
+ 'mrkdwn_in' => array('fields'),
+ 'ts' => $record['datetime']->getTimestamp()
+ );
+
+ if ($this->useShortAttachment) {
+ $attachment['title'] = $record['level_name'];
+ } else {
+ $attachment['title'] = 'Message';
+ $attachment['fields'][] = $this->generateAttachmentField('Level', $record['level_name']);
+ }
+
+
+ if ($this->includeContextAndExtra) {
+ foreach (array('extra', 'context') as $key) {
+ if (empty($record[$key])) {
+ continue;
+ }
+
+ if ($this->useShortAttachment) {
+ $attachment['fields'][] = $this->generateAttachmentField(
+ ucfirst($key),
+ $record[$key]
+ );
+ } else {
+ // Add all extra fields as individual fields in attachment
+ $attachment['fields'] = array_merge(
+ $attachment['fields'],
+ $this->generateAttachmentFields($record[$key])
+ );
+ }
+ }
+ }
+
+ $dataArray['attachments'] = array($attachment);
+ } else {
+ $dataArray['text'] = $message;
+ }
+
+ if ($this->userIcon) {
+ if (filter_var($this->userIcon, FILTER_VALIDATE_URL)) {
+ $dataArray['icon_url'] = $this->userIcon;
+ } else {
+ $dataArray['icon_emoji'] = ":{$this->userIcon}:";
+ }
+ }
+
+ return $dataArray;
+ }
+
+ /**
+ * Returned a Slack message attachment color associated with
+ * provided level.
+ *
+ * @param int $level
+ * @return string
+ */
+ public function getAttachmentColor($level)
+ {
+ switch (true) {
+ case $level >= Logger::ERROR:
+ return self::COLOR_DANGER;
+ case $level >= Logger::WARNING:
+ return self::COLOR_WARNING;
+ case $level >= Logger::INFO:
+ return self::COLOR_GOOD;
+ default:
+ return self::COLOR_DEFAULT;
+ }
+ }
+
+ /**
+ * Stringifies an array of key/value pairs to be used in attachment fields
+ *
+ * @param array $fields
+ *
+ * @return string
+ */
+ public function stringify($fields)
+ {
+ $normalized = $this->normalizerFormatter->format($fields);
+ $prettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128;
+
+ $hasSecondDimension = count(array_filter($normalized, 'is_array'));
+ $hasNonNumericKeys = !count(array_filter(array_keys($normalized), 'is_numeric'));
+
+ return $hasSecondDimension || $hasNonNumericKeys
+ ? json_encode($normalized, $prettyPrintFlag)
+ : json_encode($normalized);
+ }
+
+ /**
+ * Sets the formatter
+ *
+ * @param FormatterInterface $formatter
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ $this->formatter = $formatter;
+ }
+
+ /**
+ * Generates attachment field
+ *
+ * @param string $title
+ * @param string|array $value\
+ *
+ * @return array
+ */
+ private function generateAttachmentField($title, $value)
+ {
+ $value = is_array($value)
+ ? sprintf('```%s```', $this->stringify($value))
+ : $value;
+
+ return array(
+ 'title' => $title,
+ 'value' => $value,
+ 'short' => false
+ );
+ }
+
+ /**
+ * Generates a collection of attachment fields from array
+ *
+ * @param array $data
+ *
+ * @return array
+ */
+ private function generateAttachmentFields(array $data)
+ {
+ $fields = array();
+ foreach ($data as $key => $value) {
+ $fields[] = $this->generateAttachmentField($key, $value);
+ }
+
+ return $fields;
+ }
+
+ /**
+ * Get a copy of record with fields excluded according to $this->excludeFields
+ *
+ * @param array $record
+ *
+ * @return array
+ */
+ private function excludeFields(array $record)
+ {
+ foreach ($this->excludeFields as $field) {
+ $keys = explode('.', $field);
+ $node = &$record;
+ $lastKey = end($keys);
+ foreach ($keys as $key) {
+ if (!isset($node[$key])) {
+ break;
+ }
+ if ($lastKey === $key) {
+ unset($node[$key]);
+ break;
+ }
+ $node = &$node[$key];
+ }
+ }
+
+ return $record;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackHandler.php
new file mode 100644
index 00000000..3ac4d836
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackHandler.php
@@ -0,0 +1,215 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\FormatterInterface;
+use Monolog\Logger;
+use Monolog\Handler\Slack\SlackRecord;
+
+/**
+ * Sends notifications through Slack API
+ *
+ * @author Greg Kedzierski <greg@gregkedzierski.com>
+ * @see https://api.slack.com/
+ */
+class SlackHandler extends SocketHandler
+{
+ /**
+ * Slack API token
+ * @var string
+ */
+ private $token;
+
+ /**
+ * Instance of the SlackRecord util class preparing data for Slack API.
+ * @var SlackRecord
+ */
+ private $slackRecord;
+
+ /**
+ * @param string $token Slack API token
+ * @param string $channel Slack channel (encoded ID or name)
+ * @param string|null $username Name of a bot
+ * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise)
+ * @param string|null $iconEmoji The emoji name to use (or null)
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style
+ * @param bool $includeContextAndExtra Whether the attachment should include context and extra data
+ * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2']
+ * @throws MissingExtensionException If no OpenSSL PHP extension configured
+ */
+ public function __construct($token, $channel, $username = null, $useAttachment = true, $iconEmoji = null, $level = Logger::CRITICAL, $bubble = true, $useShortAttachment = false, $includeContextAndExtra = false, array $excludeFields = array())
+ {
+ if (!extension_loaded('openssl')) {
+ throw new MissingExtensionException('The OpenSSL PHP extension is required to use the SlackHandler');
+ }
+
+ parent::__construct('ssl://slack.com:443', $level, $bubble);
+
+ $this->slackRecord = new SlackRecord(
+ $channel,
+ $username,
+ $useAttachment,
+ $iconEmoji,
+ $useShortAttachment,
+ $includeContextAndExtra,
+ $excludeFields,
+ $this->formatter
+ );
+
+ $this->token = $token;
+ }
+
+ public function getSlackRecord()
+ {
+ return $this->slackRecord;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ * @return string
+ */
+ protected function generateDataStream($record)
+ {
+ $content = $this->buildContent($record);
+
+ return $this->buildHeader($content) . $content;
+ }
+
+ /**
+ * Builds the body of API call
+ *
+ * @param array $record
+ * @return string
+ */
+ private function buildContent($record)
+ {
+ $dataArray = $this->prepareContentData($record);
+
+ return http_build_query($dataArray);
+ }
+
+ /**
+ * Prepares content data
+ *
+ * @param array $record
+ * @return array
+ */
+ protected function prepareContentData($record)
+ {
+ $dataArray = $this->slackRecord->getSlackData($record);
+ $dataArray['token'] = $this->token;
+
+ if (!empty($dataArray['attachments'])) {
+ $dataArray['attachments'] = json_encode($dataArray['attachments']);
+ }
+
+ return $dataArray;
+ }
+
+ /**
+ * Builds the header of the API Call
+ *
+ * @param string $content
+ * @return string
+ */
+ private function buildHeader($content)
+ {
+ $header = "POST /api/chat.postMessage HTTP/1.1\r\n";
+ $header .= "Host: slack.com\r\n";
+ $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
+ $header .= "Content-Length: " . strlen($content) . "\r\n";
+ $header .= "\r\n";
+
+ return $header;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ */
+ protected function write(array $record)
+ {
+ parent::write($record);
+ $this->finalizeWrite();
+ }
+
+ /**
+ * Finalizes the request by reading some bytes and then closing the socket
+ *
+ * If we do not read some but close the socket too early, slack sometimes
+ * drops the request entirely.
+ */
+ protected function finalizeWrite()
+ {
+ $res = $this->getResource();
+ if (is_resource($res)) {
+ @fread($res, 2048);
+ }
+ $this->closeSocket();
+ }
+
+ /**
+ * Returned a Slack message attachment color associated with
+ * provided level.
+ *
+ * @param int $level
+ * @return string
+ * @deprecated Use underlying SlackRecord instead
+ */
+ protected function getAttachmentColor($level)
+ {
+ trigger_error(
+ 'SlackHandler::getAttachmentColor() is deprecated. Use underlying SlackRecord instead.',
+ E_USER_DEPRECATED
+ );
+
+ return $this->slackRecord->getAttachmentColor($level);
+ }
+
+ /**
+ * Stringifies an array of key/value pairs to be used in attachment fields
+ *
+ * @param array $fields
+ * @return string
+ * @deprecated Use underlying SlackRecord instead
+ */
+ protected function stringify($fields)
+ {
+ trigger_error(
+ 'SlackHandler::stringify() is deprecated. Use underlying SlackRecord instead.',
+ E_USER_DEPRECATED
+ );
+
+ return $this->slackRecord->stringify($fields);
+ }
+
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ parent::setFormatter($formatter);
+ $this->slackRecord->setFormatter($formatter);
+
+ return $this;
+ }
+
+ public function getFormatter()
+ {
+ $formatter = parent::getFormatter();
+ $this->slackRecord->setFormatter($formatter);
+
+ return $formatter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
new file mode 100644
index 00000000..9a1bbb44
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
@@ -0,0 +1,115 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\FormatterInterface;
+use Monolog\Logger;
+use Monolog\Handler\Slack\SlackRecord;
+
+/**
+ * Sends notifications through Slack Webhooks
+ *
+ * @author Haralan Dobrev <hkdobrev@gmail.com>
+ * @see https://api.slack.com/incoming-webhooks
+ */
+class SlackWebhookHandler extends AbstractProcessingHandler
+{
+ /**
+ * Slack Webhook token
+ * @var string
+ */
+ private $webhookUrl;
+
+ /**
+ * Instance of the SlackRecord util class preparing data for Slack API.
+ * @var SlackRecord
+ */
+ private $slackRecord;
+
+ /**
+ * @param string $webhookUrl Slack Webhook URL
+ * @param string|null $channel Slack channel (encoded ID or name)
+ * @param string|null $username Name of a bot
+ * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise)
+ * @param string|null $iconEmoji The emoji name to use (or null)
+ * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style
+ * @param bool $includeContextAndExtra Whether the attachment should include context and extra data
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2']
+ */
+ public function __construct($webhookUrl, $channel = null, $username = null, $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeContextAndExtra = false, $level = Logger::CRITICAL, $bubble = true, array $excludeFields = array())
+ {
+ parent::__construct($level, $bubble);
+
+ $this->webhookUrl = $webhookUrl;
+
+ $this->slackRecord = new SlackRecord(
+ $channel,
+ $username,
+ $useAttachment,
+ $iconEmoji,
+ $useShortAttachment,
+ $includeContextAndExtra,
+ $excludeFields,
+ $this->formatter
+ );
+ }
+
+ public function getSlackRecord()
+ {
+ return $this->slackRecord;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ */
+ protected function write(array $record)
+ {
+ $postData = $this->slackRecord->getSlackData($record);
+ $postString = json_encode($postData);
+
+ $ch = curl_init();
+ $options = array(
+ CURLOPT_URL => $this->webhookUrl,
+ CURLOPT_POST => true,
+ CURLOPT_RETURNTRANSFER => true,
+ CURLOPT_HTTPHEADER => array('Content-type: application/json'),
+ CURLOPT_POSTFIELDS => $postString
+ );
+ if (defined('CURLOPT_SAFE_UPLOAD')) {
+ $options[CURLOPT_SAFE_UPLOAD] = true;
+ }
+
+ curl_setopt_array($ch, $options);
+
+ Curl\Util::execute($ch);
+ }
+
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ parent::setFormatter($formatter);
+ $this->slackRecord->setFormatter($formatter);
+
+ return $this;
+ }
+
+ public function getFormatter()
+ {
+ $formatter = parent::getFormatter();
+ $this->slackRecord->setFormatter($formatter);
+
+ return $formatter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php
new file mode 100644
index 00000000..baead525
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php
@@ -0,0 +1,80 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Sends notifications through Slack's Slackbot
+ *
+ * @author Haralan Dobrev <hkdobrev@gmail.com>
+ * @see https://slack.com/apps/A0F81R8ET-slackbot
+ */
+class SlackbotHandler extends AbstractProcessingHandler
+{
+ /**
+ * The slug of the Slack team
+ * @var string
+ */
+ private $slackTeam;
+
+ /**
+ * Slackbot token
+ * @var string
+ */
+ private $token;
+
+ /**
+ * Slack channel name
+ * @var string
+ */
+ private $channel;
+
+ /**
+ * @param string $slackTeam Slack team slug
+ * @param string $token Slackbot token
+ * @param string $channel Slack channel (encoded ID or name)
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param bool $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($slackTeam, $token, $channel, $level = Logger::CRITICAL, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+
+ $this->slackTeam = $slackTeam;
+ $this->token = $token;
+ $this->channel = $channel;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param array $record
+ */
+ protected function write(array $record)
+ {
+ $slackbotUrl = sprintf(
+ 'https://%s.slack.com/services/hooks/slackbot?token=%s&channel=%s',
+ $this->slackTeam,
+ $this->token,
+ $this->channel
+ );
+
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_URL, $slackbotUrl);
+ curl_setopt($ch, CURLOPT_POST, true);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $record['message']);
+
+ Curl\Util::execute($ch);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SocketHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SocketHandler.php
new file mode 100644
index 00000000..7a61bf4e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SocketHandler.php
@@ -0,0 +1,346 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Stores to any socket - uses fsockopen() or pfsockopen().
+ *
+ * @author Pablo de Leon Belloc <pablolb@gmail.com>
+ * @see http://php.net/manual/en/function.fsockopen.php
+ */
+class SocketHandler extends AbstractProcessingHandler
+{
+ private $connectionString;
+ private $connectionTimeout;
+ private $resource;
+ private $timeout = 0;
+ private $writingTimeout = 10;
+ private $lastSentBytes = null;
+ private $persistent = false;
+ private $errno;
+ private $errstr;
+ private $lastWritingAt;
+
+ /**
+ * @param string $connectionString Socket connection string
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct($connectionString, $level = Logger::DEBUG, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+ $this->connectionString = $connectionString;
+ $this->connectionTimeout = (float) ini_get('default_socket_timeout');
+ }
+
+ /**
+ * Connect (if necessary) and write to the socket
+ *
+ * @param array $record
+ *
+ * @throws \UnexpectedValueException
+ * @throws \RuntimeException
+ */
+ protected function write(array $record)
+ {
+ $this->connectIfNotConnected();
+ $data = $this->generateDataStream($record);
+ $this->writeToSocket($data);
+ }
+
+ /**
+ * We will not close a PersistentSocket instance so it can be reused in other requests.
+ */
+ public function close()
+ {
+ if (!$this->isPersistent()) {
+ $this->closeSocket();
+ }
+ }
+
+ /**
+ * Close socket, if open
+ */
+ public function closeSocket()
+ {
+ if (is_resource($this->resource)) {
+ fclose($this->resource);
+ $this->resource = null;
+ }
+ }
+
+ /**
+ * Set socket connection to nbe persistent. It only has effect before the connection is initiated.
+ *
+ * @param bool $persistent
+ */
+ public function setPersistent($persistent)
+ {
+ $this->persistent = (boolean) $persistent;
+ }
+
+ /**
+ * Set connection timeout. Only has effect before we connect.
+ *
+ * @param float $seconds
+ *
+ * @see http://php.net/manual/en/function.fsockopen.php
+ */
+ public function setConnectionTimeout($seconds)
+ {
+ $this->validateTimeout($seconds);
+ $this->connectionTimeout = (float) $seconds;
+ }
+
+ /**
+ * Set write timeout. Only has effect before we connect.
+ *
+ * @param float $seconds
+ *
+ * @see http://php.net/manual/en/function.stream-set-timeout.php
+ */
+ public function setTimeout($seconds)
+ {
+ $this->validateTimeout($seconds);
+ $this->timeout = (float) $seconds;
+ }
+
+ /**
+ * Set writing timeout. Only has effect during connection in the writing cycle.
+ *
+ * @param float $seconds 0 for no timeout
+ */
+ public function setWritingTimeout($seconds)
+ {
+ $this->validateTimeout($seconds);
+ $this->writingTimeout = (float) $seconds;
+ }
+
+ /**
+ * Get current connection string
+ *
+ * @return string
+ */
+ public function getConnectionString()
+ {
+ return $this->connectionString;
+ }
+
+ /**
+ * Get persistent setting
+ *
+ * @return bool
+ */
+ public function isPersistent()
+ {
+ return $this->persistent;
+ }
+
+ /**
+ * Get current connection timeout setting
+ *
+ * @return float
+ */
+ public function getConnectionTimeout()
+ {
+ return $this->connectionTimeout;
+ }
+
+ /**
+ * Get current in-transfer timeout
+ *
+ * @return float
+ */
+ public function getTimeout()
+ {
+ return $this->timeout;
+ }
+
+ /**
+ * Get current local writing timeout
+ *
+ * @return float
+ */
+ public function getWritingTimeout()
+ {
+ return $this->writingTimeout;
+ }
+
+ /**
+ * Check to see if the socket is currently available.
+ *
+ * UDP might appear to be connected but might fail when writing. See http://php.net/fsockopen for details.
+ *
+ * @return bool
+ */
+ public function isConnected()
+ {
+ return is_resource($this->resource)
+ && !feof($this->resource); // on TCP - other party can close connection.
+ }
+
+ /**
+ * Wrapper to allow mocking
+ */
+ protected function pfsockopen()
+ {
+ return @pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout);
+ }
+
+ /**
+ * Wrapper to allow mocking
+ */
+ protected function fsockopen()
+ {
+ return @fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout);
+ }
+
+ /**
+ * Wrapper to allow mocking
+ *
+ * @see http://php.net/manual/en/function.stream-set-timeout.php
+ */
+ protected function streamSetTimeout()
+ {
+ $seconds = floor($this->timeout);
+ $microseconds = round(($this->timeout - $seconds) * 1e6);
+
+ return stream_set_timeout($this->resource, $seconds, $microseconds);
+ }
+
+ /**
+ * Wrapper to allow mocking
+ */
+ protected function fwrite($data)
+ {
+ return @fwrite($this->resource, $data);
+ }
+
+ /**
+ * Wrapper to allow mocking
+ */
+ protected function streamGetMetadata()
+ {
+ return stream_get_meta_data($this->resource);
+ }
+
+ private function validateTimeout($value)
+ {
+ $ok = filter_var($value, FILTER_VALIDATE_FLOAT);
+ if ($ok === false || $value < 0) {
+ throw new \InvalidArgumentException("Timeout must be 0 or a positive float (got $value)");
+ }
+ }
+
+ private function connectIfNotConnected()
+ {
+ if ($this->isConnected()) {
+ return;
+ }
+ $this->connect();
+ }
+
+ protected function generateDataStream($record)
+ {
+ return (string) $record['formatted'];
+ }
+
+ /**
+ * @return resource|null
+ */
+ protected function getResource()
+ {
+ return $this->resource;
+ }
+
+ private function connect()
+ {
+ $this->createSocketResource();
+ $this->setSocketTimeout();
+ }
+
+ private function createSocketResource()
+ {
+ if ($this->isPersistent()) {
+ $resource = $this->pfsockopen();
+ } else {
+ $resource = $this->fsockopen();
+ }
+ if (!$resource) {
+ throw new \UnexpectedValueException("Failed connecting to $this->connectionString ($this->errno: $this->errstr)");
+ }
+ $this->resource = $resource;
+ }
+
+ private function setSocketTimeout()
+ {
+ if (!$this->streamSetTimeout()) {
+ throw new \UnexpectedValueException("Failed setting timeout with stream_set_timeout()");
+ }
+ }
+
+ private function writeToSocket($data)
+ {
+ $length = strlen($data);
+ $sent = 0;
+ $this->lastSentBytes = $sent;
+ while ($this->isConnected() && $sent < $length) {
+ if (0 == $sent) {
+ $chunk = $this->fwrite($data);
+ } else {
+ $chunk = $this->fwrite(substr($data, $sent));
+ }
+ if ($chunk === false) {
+ throw new \RuntimeException("Could not write to socket");
+ }
+ $sent += $chunk;
+ $socketInfo = $this->streamGetMetadata();
+ if ($socketInfo['timed_out']) {
+ throw new \RuntimeException("Write timed-out");
+ }
+
+ if ($this->writingIsTimedOut($sent)) {
+ throw new \RuntimeException("Write timed-out, no data sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent $sent of $length)");
+ }
+ }
+ if (!$this->isConnected() && $sent < $length) {
+ throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent $sent of $length)");
+ }
+ }
+
+ private function writingIsTimedOut($sent)
+ {
+ $writingTimeout = (int) floor($this->writingTimeout);
+ if (0 === $writingTimeout) {
+ return false;
+ }
+
+ if ($sent !== $this->lastSentBytes) {
+ $this->lastWritingAt = time();
+ $this->lastSentBytes = $sent;
+
+ return false;
+ } else {
+ usleep(100);
+ }
+
+ if ((time() - $this->lastWritingAt) >= $writingTimeout) {
+ $this->closeSocket();
+
+ return true;
+ }
+
+ return false;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/StreamHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/StreamHandler.php
new file mode 100644
index 00000000..09a15738
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/StreamHandler.php
@@ -0,0 +1,176 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Stores to any stream resource
+ *
+ * Can be used to store into php://stderr, remote and local files, etc.
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class StreamHandler extends AbstractProcessingHandler
+{
+ protected $stream;
+ protected $url;
+ private $errorMessage;
+ protected $filePermission;
+ protected $useLocking;
+ private $dirCreated;
+
+ /**
+ * @param resource|string $stream
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write)
+ * @param Boolean $useLocking Try to lock log file before doing any writes
+ *
+ * @throws \Exception If a missing directory is not buildable
+ * @throws \InvalidArgumentException If stream is not a resource or string
+ */
+ public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false)
+ {
+ parent::__construct($level, $bubble);
+ if (is_resource($stream)) {
+ $this->stream = $stream;
+ } elseif (is_string($stream)) {
+ $this->url = $stream;
+ } else {
+ throw new \InvalidArgumentException('A stream must either be a resource or a string.');
+ }
+
+ $this->filePermission = $filePermission;
+ $this->useLocking = $useLocking;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ if ($this->url && is_resource($this->stream)) {
+ fclose($this->stream);
+ }
+ $this->stream = null;
+ }
+
+ /**
+ * Return the currently active stream if it is open
+ *
+ * @return resource|null
+ */
+ public function getStream()
+ {
+ return $this->stream;
+ }
+
+ /**
+ * Return the stream URL if it was configured with a URL and not an active resource
+ *
+ * @return string|null
+ */
+ public function getUrl()
+ {
+ return $this->url;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ if (!is_resource($this->stream)) {
+ if (null === $this->url || '' === $this->url) {
+ throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().');
+ }
+ $this->createDir();
+ $this->errorMessage = null;
+ set_error_handler(array($this, 'customErrorHandler'));
+ $this->stream = fopen($this->url, 'a');
+ if ($this->filePermission !== null) {
+ @chmod($this->url, $this->filePermission);
+ }
+ restore_error_handler();
+ if (!is_resource($this->stream)) {
+ $this->stream = null;
+ throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened: '.$this->errorMessage, $this->url));
+ }
+ }
+
+ if ($this->useLocking) {
+ // ignoring errors here, there's not much we can do about them
+ flock($this->stream, LOCK_EX);
+ }
+
+ $this->streamWrite($this->stream, $record);
+
+ if ($this->useLocking) {
+ flock($this->stream, LOCK_UN);
+ }
+ }
+
+ /**
+ * Write to stream
+ * @param resource $stream
+ * @param array $record
+ */
+ protected function streamWrite($stream, array $record)
+ {
+ fwrite($stream, (string) $record['formatted']);
+ }
+
+ private function customErrorHandler($code, $msg)
+ {
+ $this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
+ }
+
+ /**
+ * @param string $stream
+ *
+ * @return null|string
+ */
+ private function getDirFromStream($stream)
+ {
+ $pos = strpos($stream, '://');
+ if ($pos === false) {
+ return dirname($stream);
+ }
+
+ if ('file://' === substr($stream, 0, 7)) {
+ return dirname(substr($stream, 7));
+ }
+
+ return;
+ }
+
+ private function createDir()
+ {
+ // Do not try to create dir if it has already been tried.
+ if ($this->dirCreated) {
+ return;
+ }
+
+ $dir = $this->getDirFromStream($this->url);
+ if (null !== $dir && !is_dir($dir)) {
+ $this->errorMessage = null;
+ set_error_handler(array($this, 'customErrorHandler'));
+ $status = mkdir($dir, 0777, true);
+ restore_error_handler();
+ if (false === $status) {
+ throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and its not buildable: '.$this->errorMessage, $dir));
+ }
+ }
+ $this->dirCreated = true;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php
new file mode 100644
index 00000000..72f44a53
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php
@@ -0,0 +1,99 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+use Swift;
+
+/**
+ * SwiftMailerHandler uses Swift_Mailer to send the emails
+ *
+ * @author Gyula Sallai
+ */
+class SwiftMailerHandler extends MailHandler
+{
+ protected $mailer;
+ private $messageTemplate;
+
+ /**
+ * @param \Swift_Mailer $mailer The mailer to use
+ * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ */
+ public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, $bubble = true)
+ {
+ parent::__construct($level, $bubble);
+
+ $this->mailer = $mailer;
+ $this->messageTemplate = $message;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function send($content, array $records)
+ {
+ $this->mailer->send($this->buildMessage($content, $records));
+ }
+
+ /**
+ * Creates instance of Swift_Message to be sent
+ *
+ * @param string $content formatted email body to be sent
+ * @param array $records Log records that formed the content
+ * @return \Swift_Message
+ */
+ protected function buildMessage($content, array $records)
+ {
+ $message = null;
+ if ($this->messageTemplate instanceof \Swift_Message) {
+ $message = clone $this->messageTemplate;
+ $message->generateId();
+ } elseif (is_callable($this->messageTemplate)) {
+ $message = call_user_func($this->messageTemplate, $content, $records);
+ }
+
+ if (!$message instanceof \Swift_Message) {
+ throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it');
+ }
+
+ if ($records) {
+ $subjectFormatter = new LineFormatter($message->getSubject());
+ $message->setSubject($subjectFormatter->format($this->getHighestRecord($records)));
+ }
+
+ $message->setBody($content);
+ if (version_compare(Swift::VERSION, '6.0.0', '>=')) {
+ $message->setDate(new \DateTimeImmutable());
+ } else {
+ $message->setDate(time());
+ }
+
+ return $message;
+ }
+
+ /**
+ * BC getter, to be removed in 2.0
+ */
+ public function __get($name)
+ {
+ if ($name === 'message') {
+ trigger_error('SwiftMailerHandler->message is deprecated, use ->buildMessage() instead to retrieve the message', E_USER_DEPRECATED);
+
+ return $this->buildMessage(null, array());
+ }
+
+ throw new \InvalidArgumentException('Invalid property '.$name);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogHandler.php
new file mode 100644
index 00000000..376bc3b2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogHandler.php
@@ -0,0 +1,67 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+/**
+ * Logs to syslog service.
+ *
+ * usage example:
+ *
+ * $log = new Logger('application');
+ * $syslog = new SyslogHandler('myfacility', 'local6');
+ * $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%");
+ * $syslog->setFormatter($formatter);
+ * $log->pushHandler($syslog);
+ *
+ * @author Sven Paulus <sven@karlsruhe.org>
+ */
+class SyslogHandler extends AbstractSyslogHandler
+{
+ protected $ident;
+ protected $logopts;
+
+ /**
+ * @param string $ident
+ * @param mixed $facility
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param int $logopts Option flags for the openlog() call, defaults to LOG_PID
+ */
+ public function __construct($ident, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true, $logopts = LOG_PID)
+ {
+ parent::__construct($facility, $level, $bubble);
+
+ $this->ident = $ident;
+ $this->logopts = $logopts;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function close()
+ {
+ closelog();
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ if (!openlog($this->ident, $this->logopts, $this->facility)) {
+ throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"');
+ }
+ syslog($this->logLevels[$record['level']], (string) $record['formatted']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php
new file mode 100644
index 00000000..3bff085b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php
@@ -0,0 +1,56 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler\SyslogUdp;
+
+class UdpSocket
+{
+ const DATAGRAM_MAX_LENGTH = 65023;
+
+ protected $ip;
+ protected $port;
+ protected $socket;
+
+ public function __construct($ip, $port = 514)
+ {
+ $this->ip = $ip;
+ $this->port = $port;
+ $this->socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
+ }
+
+ public function write($line, $header = "")
+ {
+ $this->send($this->assembleMessage($line, $header));
+ }
+
+ public function close()
+ {
+ if (is_resource($this->socket)) {
+ socket_close($this->socket);
+ $this->socket = null;
+ }
+ }
+
+ protected function send($chunk)
+ {
+ if (!is_resource($this->socket)) {
+ throw new \LogicException('The UdpSocket to '.$this->ip.':'.$this->port.' has been closed and can not be written to anymore');
+ }
+ socket_sendto($this->socket, $chunk, strlen($chunk), $flags = 0, $this->ip, $this->port);
+ }
+
+ protected function assembleMessage($line, $header)
+ {
+ $chunkSize = self::DATAGRAM_MAX_LENGTH - strlen($header);
+
+ return $header . substr($line, 0, $chunkSize);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php
new file mode 100644
index 00000000..4718711b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php
@@ -0,0 +1,103 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\Handler\SyslogUdp\UdpSocket;
+
+/**
+ * A Handler for logging to a remote syslogd server.
+ *
+ * @author Jesper Skovgaard Nielsen <nulpunkt@gmail.com>
+ */
+class SyslogUdpHandler extends AbstractSyslogHandler
+{
+ protected $socket;
+ protected $ident;
+
+ /**
+ * @param string $host
+ * @param int $port
+ * @param mixed $facility
+ * @param int $level The minimum logging level at which this handler will be triggered
+ * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+ * @param string $ident Program name or tag for each log message.
+ */
+ public function __construct($host, $port = 514, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true, $ident = 'php')
+ {
+ parent::__construct($facility, $level, $bubble);
+
+ $this->ident = $ident;
+
+ $this->socket = new UdpSocket($host, $port ?: 514);
+ }
+
+ protected function write(array $record)
+ {
+ $lines = $this->splitMessageIntoLines($record['formatted']);
+
+ $header = $this->makeCommonSyslogHeader($this->logLevels[$record['level']]);
+
+ foreach ($lines as $line) {
+ $this->socket->write($line, $header);
+ }
+ }
+
+ public function close()
+ {
+ $this->socket->close();
+ }
+
+ private function splitMessageIntoLines($message)
+ {
+ if (is_array($message)) {
+ $message = implode("\n", $message);
+ }
+
+ return preg_split('/$\R?^/m', $message, -1, PREG_SPLIT_NO_EMPTY);
+ }
+
+ /**
+ * Make common syslog header (see rfc5424)
+ */
+ protected function makeCommonSyslogHeader($severity)
+ {
+ $priority = $severity + $this->facility;
+
+ if (!$pid = getmypid()) {
+ $pid = '-';
+ }
+
+ if (!$hostname = gethostname()) {
+ $hostname = '-';
+ }
+
+ return "<$priority>1 " .
+ $this->getDateTime() . " " .
+ $hostname . " " .
+ $this->ident . " " .
+ $pid . " - - ";
+ }
+
+ protected function getDateTime()
+ {
+ return date(\DateTime::RFC3339);
+ }
+
+ /**
+ * Inject your own socket, mainly used for testing
+ */
+ public function setSocket($socket)
+ {
+ $this->socket = $socket;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/TestHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/TestHandler.php
new file mode 100644
index 00000000..e39cfc66
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/TestHandler.php
@@ -0,0 +1,154 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+/**
+ * Used for testing purposes.
+ *
+ * It records all records and gives you access to them for verification.
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * @method bool hasEmergency($record)
+ * @method bool hasAlert($record)
+ * @method bool hasCritical($record)
+ * @method bool hasError($record)
+ * @method bool hasWarning($record)
+ * @method bool hasNotice($record)
+ * @method bool hasInfo($record)
+ * @method bool hasDebug($record)
+ *
+ * @method bool hasEmergencyRecords()
+ * @method bool hasAlertRecords()
+ * @method bool hasCriticalRecords()
+ * @method bool hasErrorRecords()
+ * @method bool hasWarningRecords()
+ * @method bool hasNoticeRecords()
+ * @method bool hasInfoRecords()
+ * @method bool hasDebugRecords()
+ *
+ * @method bool hasEmergencyThatContains($message)
+ * @method bool hasAlertThatContains($message)
+ * @method bool hasCriticalThatContains($message)
+ * @method bool hasErrorThatContains($message)
+ * @method bool hasWarningThatContains($message)
+ * @method bool hasNoticeThatContains($message)
+ * @method bool hasInfoThatContains($message)
+ * @method bool hasDebugThatContains($message)
+ *
+ * @method bool hasEmergencyThatMatches($message)
+ * @method bool hasAlertThatMatches($message)
+ * @method bool hasCriticalThatMatches($message)
+ * @method bool hasErrorThatMatches($message)
+ * @method bool hasWarningThatMatches($message)
+ * @method bool hasNoticeThatMatches($message)
+ * @method bool hasInfoThatMatches($message)
+ * @method bool hasDebugThatMatches($message)
+ *
+ * @method bool hasEmergencyThatPasses($message)
+ * @method bool hasAlertThatPasses($message)
+ * @method bool hasCriticalThatPasses($message)
+ * @method bool hasErrorThatPasses($message)
+ * @method bool hasWarningThatPasses($message)
+ * @method bool hasNoticeThatPasses($message)
+ * @method bool hasInfoThatPasses($message)
+ * @method bool hasDebugThatPasses($message)
+ */
+class TestHandler extends AbstractProcessingHandler
+{
+ protected $records = array();
+ protected $recordsByLevel = array();
+
+ public function getRecords()
+ {
+ return $this->records;
+ }
+
+ public function clear()
+ {
+ $this->records = array();
+ $this->recordsByLevel = array();
+ }
+
+ public function hasRecords($level)
+ {
+ return isset($this->recordsByLevel[$level]);
+ }
+
+ public function hasRecord($record, $level)
+ {
+ if (is_array($record)) {
+ $record = $record['message'];
+ }
+
+ return $this->hasRecordThatPasses(function ($rec) use ($record) {
+ return $rec['message'] === $record;
+ }, $level);
+ }
+
+ public function hasRecordThatContains($message, $level)
+ {
+ return $this->hasRecordThatPasses(function ($rec) use ($message) {
+ return strpos($rec['message'], $message) !== false;
+ }, $level);
+ }
+
+ public function hasRecordThatMatches($regex, $level)
+ {
+ return $this->hasRecordThatPasses(function ($rec) use ($regex) {
+ return preg_match($regex, $rec['message']) > 0;
+ }, $level);
+ }
+
+ public function hasRecordThatPasses($predicate, $level)
+ {
+ if (!is_callable($predicate)) {
+ throw new \InvalidArgumentException("Expected a callable for hasRecordThatSucceeds");
+ }
+
+ if (!isset($this->recordsByLevel[$level])) {
+ return false;
+ }
+
+ foreach ($this->recordsByLevel[$level] as $i => $rec) {
+ if (call_user_func($predicate, $rec, $i)) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ $this->recordsByLevel[$record['level']][] = $record;
+ $this->records[] = $record;
+ }
+
+ public function __call($method, $args)
+ {
+ if (preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) {
+ $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3];
+ $level = constant('Monolog\Logger::' . strtoupper($matches[2]));
+ if (method_exists($this, $genericMethod)) {
+ $args[] = $level;
+
+ return call_user_func_array(array($this, $genericMethod), $args);
+ }
+ }
+
+ throw new \BadMethodCallException('Call to undefined method ' . get_class($this) . '::' . $method . '()');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php
new file mode 100644
index 00000000..2732ba3d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php
@@ -0,0 +1,61 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+/**
+ * Forwards records to multiple handlers suppressing failures of each handler
+ * and continuing through to give every handler a chance to succeed.
+ *
+ * @author Craig D'Amelio <craig@damelio.ca>
+ */
+class WhatFailureGroupHandler extends GroupHandler
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ if ($this->processors) {
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+ }
+
+ foreach ($this->handlers as $handler) {
+ try {
+ $handler->handle($record);
+ } catch (\Exception $e) {
+ // What failure?
+ } catch (\Throwable $e) {
+ // What failure?
+ }
+ }
+
+ return false === $this->bubble;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function handleBatch(array $records)
+ {
+ foreach ($this->handlers as $handler) {
+ try {
+ $handler->handleBatch($records);
+ } catch (\Exception $e) {
+ // What failure?
+ } catch (\Throwable $e) {
+ // What failure?
+ }
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php
new file mode 100644
index 00000000..f22cf218
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\NormalizerFormatter;
+use Monolog\Logger;
+
+/**
+ * Handler sending logs to Zend Monitor
+ *
+ * @author Christian Bergau <cbergau86@gmail.com>
+ */
+class ZendMonitorHandler extends AbstractProcessingHandler
+{
+ /**
+ * Monolog level / ZendMonitor Custom Event priority map
+ *
+ * @var array
+ */
+ protected $levelMap = array(
+ Logger::DEBUG => 1,
+ Logger::INFO => 2,
+ Logger::NOTICE => 3,
+ Logger::WARNING => 4,
+ Logger::ERROR => 5,
+ Logger::CRITICAL => 6,
+ Logger::ALERT => 7,
+ Logger::EMERGENCY => 0,
+ );
+
+ /**
+ * Construct
+ *
+ * @param int $level
+ * @param bool $bubble
+ * @throws MissingExtensionException
+ */
+ public function __construct($level = Logger::DEBUG, $bubble = true)
+ {
+ if (!function_exists('zend_monitor_custom_event')) {
+ throw new MissingExtensionException('You must have Zend Server installed in order to use this handler');
+ }
+ parent::__construct($level, $bubble);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function write(array $record)
+ {
+ $this->writeZendMonitorCustomEvent(
+ $this->levelMap[$record['level']],
+ $record['message'],
+ $record['formatted']
+ );
+ }
+
+ /**
+ * Write a record to Zend Monitor
+ *
+ * @param int $level
+ * @param string $message
+ * @param array $formatted
+ */
+ protected function writeZendMonitorCustomEvent($level, $message, $formatted)
+ {
+ zend_monitor_custom_event($level, $message, $formatted);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getDefaultFormatter()
+ {
+ return new NormalizerFormatter();
+ }
+
+ /**
+ * Get the level map
+ *
+ * @return array
+ */
+ public function getLevelMap()
+ {
+ return $this->levelMap;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Logger.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Logger.php
new file mode 100644
index 00000000..49d00af1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Logger.php
@@ -0,0 +1,700 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+use Monolog\Handler\HandlerInterface;
+use Monolog\Handler\StreamHandler;
+use Psr\Log\LoggerInterface;
+use Psr\Log\InvalidArgumentException;
+
+/**
+ * Monolog log channel
+ *
+ * It contains a stack of Handlers and a stack of Processors,
+ * and uses them to store records that are added to it.
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class Logger implements LoggerInterface
+{
+ /**
+ * Detailed debug information
+ */
+ const DEBUG = 100;
+
+ /**
+ * Interesting events
+ *
+ * Examples: User logs in, SQL logs.
+ */
+ const INFO = 200;
+
+ /**
+ * Uncommon events
+ */
+ const NOTICE = 250;
+
+ /**
+ * Exceptional occurrences that are not errors
+ *
+ * Examples: Use of deprecated APIs, poor use of an API,
+ * undesirable things that are not necessarily wrong.
+ */
+ const WARNING = 300;
+
+ /**
+ * Runtime errors
+ */
+ const ERROR = 400;
+
+ /**
+ * Critical conditions
+ *
+ * Example: Application component unavailable, unexpected exception.
+ */
+ const CRITICAL = 500;
+
+ /**
+ * Action must be taken immediately
+ *
+ * Example: Entire website down, database unavailable, etc.
+ * This should trigger the SMS alerts and wake you up.
+ */
+ const ALERT = 550;
+
+ /**
+ * Urgent alert.
+ */
+ const EMERGENCY = 600;
+
+ /**
+ * Monolog API version
+ *
+ * This is only bumped when API breaks are done and should
+ * follow the major version of the library
+ *
+ * @var int
+ */
+ const API = 1;
+
+ /**
+ * Logging levels from syslog protocol defined in RFC 5424
+ *
+ * @var array $levels Logging levels
+ */
+ protected static $levels = array(
+ self::DEBUG => 'DEBUG',
+ self::INFO => 'INFO',
+ self::NOTICE => 'NOTICE',
+ self::WARNING => 'WARNING',
+ self::ERROR => 'ERROR',
+ self::CRITICAL => 'CRITICAL',
+ self::ALERT => 'ALERT',
+ self::EMERGENCY => 'EMERGENCY',
+ );
+
+ /**
+ * @var \DateTimeZone
+ */
+ protected static $timezone;
+
+ /**
+ * @var string
+ */
+ protected $name;
+
+ /**
+ * The handler stack
+ *
+ * @var HandlerInterface[]
+ */
+ protected $handlers;
+
+ /**
+ * Processors that will process all log records
+ *
+ * To process records of a single handler instead, add the processor on that specific handler
+ *
+ * @var callable[]
+ */
+ protected $processors;
+
+ /**
+ * @var bool
+ */
+ protected $microsecondTimestamps = true;
+
+ /**
+ * @param string $name The logging channel
+ * @param HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc.
+ * @param callable[] $processors Optional array of processors
+ */
+ public function __construct($name, array $handlers = array(), array $processors = array())
+ {
+ $this->name = $name;
+ $this->handlers = $handlers;
+ $this->processors = $processors;
+ }
+
+ /**
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Return a new cloned instance with the name changed
+ *
+ * @return static
+ */
+ public function withName($name)
+ {
+ $new = clone $this;
+ $new->name = $name;
+
+ return $new;
+ }
+
+ /**
+ * Pushes a handler on to the stack.
+ *
+ * @param HandlerInterface $handler
+ * @return $this
+ */
+ public function pushHandler(HandlerInterface $handler)
+ {
+ array_unshift($this->handlers, $handler);
+
+ return $this;
+ }
+
+ /**
+ * Pops a handler from the stack
+ *
+ * @return HandlerInterface
+ */
+ public function popHandler()
+ {
+ if (!$this->handlers) {
+ throw new \LogicException('You tried to pop from an empty handler stack.');
+ }
+
+ return array_shift($this->handlers);
+ }
+
+ /**
+ * Set handlers, replacing all existing ones.
+ *
+ * If a map is passed, keys will be ignored.
+ *
+ * @param HandlerInterface[] $handlers
+ * @return $this
+ */
+ public function setHandlers(array $handlers)
+ {
+ $this->handlers = array();
+ foreach (array_reverse($handlers) as $handler) {
+ $this->pushHandler($handler);
+ }
+
+ return $this;
+ }
+
+ /**
+ * @return HandlerInterface[]
+ */
+ public function getHandlers()
+ {
+ return $this->handlers;
+ }
+
+ /**
+ * Adds a processor on to the stack.
+ *
+ * @param callable $callback
+ * @return $this
+ */
+ public function pushProcessor($callback)
+ {
+ if (!is_callable($callback)) {
+ throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given');
+ }
+ array_unshift($this->processors, $callback);
+
+ return $this;
+ }
+
+ /**
+ * Removes the processor on top of the stack and returns it.
+ *
+ * @return callable
+ */
+ public function popProcessor()
+ {
+ if (!$this->processors) {
+ throw new \LogicException('You tried to pop from an empty processor stack.');
+ }
+
+ return array_shift($this->processors);
+ }
+
+ /**
+ * @return callable[]
+ */
+ public function getProcessors()
+ {
+ return $this->processors;
+ }
+
+ /**
+ * Control the use of microsecond resolution timestamps in the 'datetime'
+ * member of new records.
+ *
+ * Generating microsecond resolution timestamps by calling
+ * microtime(true), formatting the result via sprintf() and then parsing
+ * the resulting string via \DateTime::createFromFormat() can incur
+ * a measurable runtime overhead vs simple usage of DateTime to capture
+ * a second resolution timestamp in systems which generate a large number
+ * of log events.
+ *
+ * @param bool $micro True to use microtime() to create timestamps
+ */
+ public function useMicrosecondTimestamps($micro)
+ {
+ $this->microsecondTimestamps = (bool) $micro;
+ }
+
+ /**
+ * Adds a log record.
+ *
+ * @param int $level The logging level
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addRecord($level, $message, array $context = array())
+ {
+ if (!$this->handlers) {
+ $this->pushHandler(new StreamHandler('php://stderr', static::DEBUG));
+ }
+
+ $levelName = static::getLevelName($level);
+
+ // check if any handler will handle this message so we can return early and save cycles
+ $handlerKey = null;
+ reset($this->handlers);
+ while ($handler = current($this->handlers)) {
+ if ($handler->isHandling(array('level' => $level))) {
+ $handlerKey = key($this->handlers);
+ break;
+ }
+
+ next($this->handlers);
+ }
+
+ if (null === $handlerKey) {
+ return false;
+ }
+
+ if (!static::$timezone) {
+ static::$timezone = new \DateTimeZone(date_default_timezone_get() ?: 'UTC');
+ }
+
+ // php7.1+ always has microseconds enabled, so we do not need this hack
+ if ($this->microsecondTimestamps && PHP_VERSION_ID < 70100) {
+ $ts = \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true)), static::$timezone);
+ } else {
+ $ts = new \DateTime(null, static::$timezone);
+ }
+ $ts->setTimezone(static::$timezone);
+
+ $record = array(
+ 'message' => (string) $message,
+ 'context' => $context,
+ 'level' => $level,
+ 'level_name' => $levelName,
+ 'channel' => $this->name,
+ 'datetime' => $ts,
+ 'extra' => array(),
+ );
+
+ foreach ($this->processors as $processor) {
+ $record = call_user_func($processor, $record);
+ }
+
+ while ($handler = current($this->handlers)) {
+ if (true === $handler->handle($record)) {
+ break;
+ }
+
+ next($this->handlers);
+ }
+
+ return true;
+ }
+
+ /**
+ * Adds a log record at the DEBUG level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addDebug($message, array $context = array())
+ {
+ return $this->addRecord(static::DEBUG, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the INFO level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addInfo($message, array $context = array())
+ {
+ return $this->addRecord(static::INFO, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the NOTICE level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addNotice($message, array $context = array())
+ {
+ return $this->addRecord(static::NOTICE, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the WARNING level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addWarning($message, array $context = array())
+ {
+ return $this->addRecord(static::WARNING, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the ERROR level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addError($message, array $context = array())
+ {
+ return $this->addRecord(static::ERROR, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the CRITICAL level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addCritical($message, array $context = array())
+ {
+ return $this->addRecord(static::CRITICAL, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the ALERT level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addAlert($message, array $context = array())
+ {
+ return $this->addRecord(static::ALERT, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the EMERGENCY level.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function addEmergency($message, array $context = array())
+ {
+ return $this->addRecord(static::EMERGENCY, $message, $context);
+ }
+
+ /**
+ * Gets all supported logging levels.
+ *
+ * @return array Assoc array with human-readable level names => level codes.
+ */
+ public static function getLevels()
+ {
+ return array_flip(static::$levels);
+ }
+
+ /**
+ * Gets the name of the logging level.
+ *
+ * @param int $level
+ * @return string
+ */
+ public static function getLevelName($level)
+ {
+ if (!isset(static::$levels[$level])) {
+ throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', array_keys(static::$levels)));
+ }
+
+ return static::$levels[$level];
+ }
+
+ /**
+ * Converts PSR-3 levels to Monolog ones if necessary
+ *
+ * @param string|int Level number (monolog) or name (PSR-3)
+ * @return int
+ */
+ public static function toMonologLevel($level)
+ {
+ if (is_string($level) && defined(__CLASS__.'::'.strtoupper($level))) {
+ return constant(__CLASS__.'::'.strtoupper($level));
+ }
+
+ return $level;
+ }
+
+ /**
+ * Checks whether the Logger has a handler that listens on the given level
+ *
+ * @param int $level
+ * @return Boolean
+ */
+ public function isHandling($level)
+ {
+ $record = array(
+ 'level' => $level,
+ );
+
+ foreach ($this->handlers as $handler) {
+ if ($handler->isHandling($record)) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Adds a log record at an arbitrary level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param mixed $level The log level
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function log($level, $message, array $context = array())
+ {
+ $level = static::toMonologLevel($level);
+
+ return $this->addRecord($level, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the DEBUG level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function debug($message, array $context = array())
+ {
+ return $this->addRecord(static::DEBUG, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the INFO level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function info($message, array $context = array())
+ {
+ return $this->addRecord(static::INFO, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the NOTICE level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function notice($message, array $context = array())
+ {
+ return $this->addRecord(static::NOTICE, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the WARNING level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function warn($message, array $context = array())
+ {
+ return $this->addRecord(static::WARNING, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the WARNING level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function warning($message, array $context = array())
+ {
+ return $this->addRecord(static::WARNING, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the ERROR level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function err($message, array $context = array())
+ {
+ return $this->addRecord(static::ERROR, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the ERROR level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function error($message, array $context = array())
+ {
+ return $this->addRecord(static::ERROR, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the CRITICAL level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function crit($message, array $context = array())
+ {
+ return $this->addRecord(static::CRITICAL, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the CRITICAL level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function critical($message, array $context = array())
+ {
+ return $this->addRecord(static::CRITICAL, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the ALERT level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function alert($message, array $context = array())
+ {
+ return $this->addRecord(static::ALERT, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the EMERGENCY level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function emerg($message, array $context = array())
+ {
+ return $this->addRecord(static::EMERGENCY, $message, $context);
+ }
+
+ /**
+ * Adds a log record at the EMERGENCY level.
+ *
+ * This method allows for compatibility with common interfaces.
+ *
+ * @param string $message The log message
+ * @param array $context The log context
+ * @return Boolean Whether the record has been processed
+ */
+ public function emergency($message, array $context = array())
+ {
+ return $this->addRecord(static::EMERGENCY, $message, $context);
+ }
+
+ /**
+ * Set the timezone to be used for the timestamp of log records.
+ *
+ * This is stored globally for all Logger instances
+ *
+ * @param \DateTimeZone $tz Timezone object
+ */
+ public static function setTimezone(\DateTimeZone $tz)
+ {
+ self::$timezone = $tz;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/GitProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/GitProcessor.php
new file mode 100644
index 00000000..1899400d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/GitProcessor.php
@@ -0,0 +1,64 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\Logger;
+
+/**
+ * Injects Git branch and Git commit SHA in all records
+ *
+ * @author Nick Otter
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class GitProcessor
+{
+ private $level;
+ private static $cache;
+
+ public function __construct($level = Logger::DEBUG)
+ {
+ $this->level = Logger::toMonologLevel($level);
+ }
+
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ // return if the level is not high enough
+ if ($record['level'] < $this->level) {
+ return $record;
+ }
+
+ $record['extra']['git'] = self::getGitInfo();
+
+ return $record;
+ }
+
+ private static function getGitInfo()
+ {
+ if (self::$cache) {
+ return self::$cache;
+ }
+
+ $branches = `git branch -v --no-abbrev`;
+ if (preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) {
+ return self::$cache = array(
+ 'branch' => $matches[1],
+ 'commit' => $matches[2],
+ );
+ }
+
+ return self::$cache = array();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php
new file mode 100644
index 00000000..2c07caed
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php
@@ -0,0 +1,112 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\Logger;
+
+/**
+ * Injects line/file:class/function where the log message came from
+ *
+ * Warning: This only works if the handler processes the logs directly.
+ * If you put the processor on a handler that is behind a FingersCrossedHandler
+ * for example, the processor will only be called once the trigger level is reached,
+ * and all the log records will have the same file/line/.. data from the call that
+ * triggered the FingersCrossedHandler.
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class IntrospectionProcessor
+{
+ private $level;
+
+ private $skipClassesPartials;
+
+ private $skipStackFramesCount;
+
+ private $skipFunctions = array(
+ 'call_user_func',
+ 'call_user_func_array',
+ );
+
+ public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array(), $skipStackFramesCount = 0)
+ {
+ $this->level = Logger::toMonologLevel($level);
+ $this->skipClassesPartials = array_merge(array('Monolog\\'), $skipClassesPartials);
+ $this->skipStackFramesCount = $skipStackFramesCount;
+ }
+
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ // return if the level is not high enough
+ if ($record['level'] < $this->level) {
+ return $record;
+ }
+
+ /*
+ * http://php.net/manual/en/function.debug-backtrace.php
+ * As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added.
+ * Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'.
+ */
+ $trace = debug_backtrace((PHP_VERSION_ID < 50306) ? 2 : DEBUG_BACKTRACE_IGNORE_ARGS);
+
+ // skip first since it's always the current method
+ array_shift($trace);
+ // the call_user_func call is also skipped
+ array_shift($trace);
+
+ $i = 0;
+
+ while ($this->isTraceClassOrSkippedFunction($trace, $i)) {
+ if (isset($trace[$i]['class'])) {
+ foreach ($this->skipClassesPartials as $part) {
+ if (strpos($trace[$i]['class'], $part) !== false) {
+ $i++;
+ continue 2;
+ }
+ }
+ } elseif (in_array($trace[$i]['function'], $this->skipFunctions)) {
+ $i++;
+ continue;
+ }
+
+ break;
+ }
+
+ $i += $this->skipStackFramesCount;
+
+ // we should have the call source now
+ $record['extra'] = array_merge(
+ $record['extra'],
+ array(
+ 'file' => isset($trace[$i - 1]['file']) ? $trace[$i - 1]['file'] : null,
+ 'line' => isset($trace[$i - 1]['line']) ? $trace[$i - 1]['line'] : null,
+ 'class' => isset($trace[$i]['class']) ? $trace[$i]['class'] : null,
+ 'function' => isset($trace[$i]['function']) ? $trace[$i]['function'] : null,
+ )
+ );
+
+ return $record;
+ }
+
+ private function isTraceClassOrSkippedFunction(array $trace, $index)
+ {
+ if (!isset($trace[$index])) {
+ return false;
+ }
+
+ return isset($trace[$index]['class']) || in_array($trace[$index]['function'], $this->skipFunctions);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php
new file mode 100644
index 00000000..0543e929
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php
@@ -0,0 +1,35 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Injects memory_get_peak_usage in all records
+ *
+ * @see Monolog\Processor\MemoryProcessor::__construct() for options
+ * @author Rob Jensen
+ */
+class MemoryPeakUsageProcessor extends MemoryProcessor
+{
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ $bytes = memory_get_peak_usage($this->realUsage);
+ $formatted = $this->formatBytes($bytes);
+
+ $record['extra']['memory_peak_usage'] = $formatted;
+
+ return $record;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php
new file mode 100644
index 00000000..85f9dc5e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php
@@ -0,0 +1,63 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Some methods that are common for all memory processors
+ *
+ * @author Rob Jensen
+ */
+abstract class MemoryProcessor
+{
+ /**
+ * @var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported.
+ */
+ protected $realUsage;
+
+ /**
+ * @var bool If true, then format memory size to human readable string (MB, KB, B depending on size)
+ */
+ protected $useFormatting;
+
+ /**
+ * @param bool $realUsage Set this to true to get the real size of memory allocated from system.
+ * @param bool $useFormatting If true, then format memory size to human readable string (MB, KB, B depending on size)
+ */
+ public function __construct($realUsage = true, $useFormatting = true)
+ {
+ $this->realUsage = (boolean) $realUsage;
+ $this->useFormatting = (boolean) $useFormatting;
+ }
+
+ /**
+ * Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is
+ *
+ * @param int $bytes
+ * @return string|int Formatted string if $this->useFormatting is true, otherwise return $bytes as is
+ */
+ protected function formatBytes($bytes)
+ {
+ $bytes = (int) $bytes;
+
+ if (!$this->useFormatting) {
+ return $bytes;
+ }
+
+ if ($bytes > 1024 * 1024) {
+ return round($bytes / 1024 / 1024, 2).' MB';
+ } elseif ($bytes > 1024) {
+ return round($bytes / 1024, 2).' KB';
+ }
+
+ return $bytes . ' B';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php
new file mode 100644
index 00000000..2783d656
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php
@@ -0,0 +1,35 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Injects memory_get_usage in all records
+ *
+ * @see Monolog\Processor\MemoryProcessor::__construct() for options
+ * @author Rob Jensen
+ */
+class MemoryUsageProcessor extends MemoryProcessor
+{
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ $bytes = memory_get_usage($this->realUsage);
+ $formatted = $this->formatBytes($bytes);
+
+ $record['extra']['memory_usage'] = $formatted;
+
+ return $record;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php
new file mode 100644
index 00000000..7c07a7e9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php
@@ -0,0 +1,63 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jonathan A. Schweder <jonathanschweder@gmail.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\Logger;
+
+/**
+ * Injects Hg branch and Hg revision number in all records
+ *
+ * @author Jonathan A. Schweder <jonathanschweder@gmail.com>
+ */
+class MercurialProcessor
+{
+ private $level;
+ private static $cache;
+
+ public function __construct($level = Logger::DEBUG)
+ {
+ $this->level = Logger::toMonologLevel($level);
+ }
+
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ // return if the level is not high enough
+ if ($record['level'] < $this->level) {
+ return $record;
+ }
+
+ $record['extra']['hg'] = self::getMercurialInfo();
+
+ return $record;
+ }
+
+ private static function getMercurialInfo()
+ {
+ if (self::$cache) {
+ return self::$cache;
+ }
+
+ $result = explode(' ', trim(`hg id -nb`));
+ if (count($result) >= 3) {
+ return self::$cache = array(
+ 'branch' => $result[1],
+ 'revision' => $result[2],
+ );
+ }
+
+ return self::$cache = array();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php
new file mode 100644
index 00000000..9d3f5590
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php
@@ -0,0 +1,31 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Adds value of getmypid into records
+ *
+ * @author Andreas Hörnicke
+ */
+class ProcessIdProcessor
+{
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ $record['extra']['process_id'] = getmypid();
+
+ return $record;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
new file mode 100644
index 00000000..c2686ce5
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php
@@ -0,0 +1,48 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Processes a record's message according to PSR-3 rules
+ *
+ * It replaces {foo} with the value from $context['foo']
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class PsrLogMessageProcessor
+{
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ if (false === strpos($record['message'], '{')) {
+ return $record;
+ }
+
+ $replacements = array();
+ foreach ($record['context'] as $key => $val) {
+ if (is_null($val) || is_scalar($val) || (is_object($val) && method_exists($val, "__toString"))) {
+ $replacements['{'.$key.'}'] = $val;
+ } elseif (is_object($val)) {
+ $replacements['{'.$key.'}'] = '[object '.get_class($val).']';
+ } else {
+ $replacements['{'.$key.'}'] = '['.gettype($val).']';
+ }
+ }
+
+ $record['message'] = strtr($record['message'], $replacements);
+
+ return $record;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/TagProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/TagProcessor.php
new file mode 100644
index 00000000..7e2df2ac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/TagProcessor.php
@@ -0,0 +1,44 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Adds a tags array into record
+ *
+ * @author Martijn Riemers
+ */
+class TagProcessor
+{
+ private $tags;
+
+ public function __construct(array $tags = array())
+ {
+ $this->setTags($tags);
+ }
+
+ public function addTags(array $tags = array())
+ {
+ $this->tags = array_merge($this->tags, $tags);
+ }
+
+ public function setTags(array $tags = array())
+ {
+ $this->tags = $tags;
+ }
+
+ public function __invoke(array $record)
+ {
+ $record['extra']['tags'] = $this->tags;
+
+ return $record;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/UidProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/UidProcessor.php
new file mode 100644
index 00000000..812707cd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/UidProcessor.php
@@ -0,0 +1,46 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Adds a unique identifier into records
+ *
+ * @author Simon Mönch <sm@webfactory.de>
+ */
+class UidProcessor
+{
+ private $uid;
+
+ public function __construct($length = 7)
+ {
+ if (!is_int($length) || $length > 32 || $length < 1) {
+ throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32');
+ }
+
+ $this->uid = substr(hash('md5', uniqid('', true)), 0, $length);
+ }
+
+ public function __invoke(array $record)
+ {
+ $record['extra']['uid'] = $this->uid;
+
+ return $record;
+ }
+
+ /**
+ * @return string
+ */
+ public function getUid()
+ {
+ return $this->uid;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/WebProcessor.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/WebProcessor.php
new file mode 100644
index 00000000..ea1d8978
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Processor/WebProcessor.php
@@ -0,0 +1,113 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+/**
+ * Injects url/method and remote IP of the current web request in all records
+ *
+ * @author Jordi Boggiano <j.boggiano@seld.be>
+ */
+class WebProcessor
+{
+ /**
+ * @var array|\ArrayAccess
+ */
+ protected $serverData;
+
+ /**
+ * Default fields
+ *
+ * Array is structured as [key in record.extra => key in $serverData]
+ *
+ * @var array
+ */
+ protected $extraFields = array(
+ 'url' => 'REQUEST_URI',
+ 'ip' => 'REMOTE_ADDR',
+ 'http_method' => 'REQUEST_METHOD',
+ 'server' => 'SERVER_NAME',
+ 'referrer' => 'HTTP_REFERER',
+ );
+
+ /**
+ * @param array|\ArrayAccess $serverData Array or object w/ ArrayAccess that provides access to the $_SERVER data
+ * @param array|null $extraFields Field names and the related key inside $serverData to be added. If not provided it defaults to: url, ip, http_method, server, referrer
+ */
+ public function __construct($serverData = null, array $extraFields = null)
+ {
+ if (null === $serverData) {
+ $this->serverData = &$_SERVER;
+ } elseif (is_array($serverData) || $serverData instanceof \ArrayAccess) {
+ $this->serverData = $serverData;
+ } else {
+ throw new \UnexpectedValueException('$serverData must be an array or object implementing ArrayAccess.');
+ }
+
+ if (null !== $extraFields) {
+ if (isset($extraFields[0])) {
+ foreach (array_keys($this->extraFields) as $fieldName) {
+ if (!in_array($fieldName, $extraFields)) {
+ unset($this->extraFields[$fieldName]);
+ }
+ }
+ } else {
+ $this->extraFields = $extraFields;
+ }
+ }
+ }
+
+ /**
+ * @param array $record
+ * @return array
+ */
+ public function __invoke(array $record)
+ {
+ // skip processing if for some reason request data
+ // is not present (CLI or wonky SAPIs)
+ if (!isset($this->serverData['REQUEST_URI'])) {
+ return $record;
+ }
+
+ $record['extra'] = $this->appendExtraFields($record['extra']);
+
+ return $record;
+ }
+
+ /**
+ * @param string $extraName
+ * @param string $serverName
+ * @return $this
+ */
+ public function addExtraField($extraName, $serverName)
+ {
+ $this->extraFields[$extraName] = $serverName;
+
+ return $this;
+ }
+
+ /**
+ * @param array $extra
+ * @return array
+ */
+ private function appendExtraFields(array $extra)
+ {
+ foreach ($this->extraFields as $extraName => $serverName) {
+ $extra[$extraName] = isset($this->serverData[$serverName]) ? $this->serverData[$serverName] : null;
+ }
+
+ if (isset($this->serverData['UNIQUE_ID'])) {
+ $extra['unique_id'] = $this->serverData['UNIQUE_ID'];
+ }
+
+ return $extra;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Registry.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Registry.php
new file mode 100644
index 00000000..159b751c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/src/Monolog/Registry.php
@@ -0,0 +1,134 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+use InvalidArgumentException;
+
+/**
+ * Monolog log registry
+ *
+ * Allows to get `Logger` instances in the global scope
+ * via static method calls on this class.
+ *
+ * <code>
+ * $application = new Monolog\Logger('application');
+ * $api = new Monolog\Logger('api');
+ *
+ * Monolog\Registry::addLogger($application);
+ * Monolog\Registry::addLogger($api);
+ *
+ * function testLogger()
+ * {
+ * Monolog\Registry::api()->addError('Sent to $api Logger instance');
+ * Monolog\Registry::application()->addError('Sent to $application Logger instance');
+ * }
+ * </code>
+ *
+ * @author Tomas Tatarko <tomas@tatarko.sk>
+ */
+class Registry
+{
+ /**
+ * List of all loggers in the registry (by named indexes)
+ *
+ * @var Logger[]
+ */
+ private static $loggers = array();
+
+ /**
+ * Adds new logging channel to the registry
+ *
+ * @param Logger $logger Instance of the logging channel
+ * @param string|null $name Name of the logging channel ($logger->getName() by default)
+ * @param bool $overwrite Overwrite instance in the registry if the given name already exists?
+ * @throws \InvalidArgumentException If $overwrite set to false and named Logger instance already exists
+ */
+ public static function addLogger(Logger $logger, $name = null, $overwrite = false)
+ {
+ $name = $name ?: $logger->getName();
+
+ if (isset(self::$loggers[$name]) && !$overwrite) {
+ throw new InvalidArgumentException('Logger with the given name already exists');
+ }
+
+ self::$loggers[$name] = $logger;
+ }
+
+ /**
+ * Checks if such logging channel exists by name or instance
+ *
+ * @param string|Logger $logger Name or logger instance
+ */
+ public static function hasLogger($logger)
+ {
+ if ($logger instanceof Logger) {
+ $index = array_search($logger, self::$loggers, true);
+
+ return false !== $index;
+ } else {
+ return isset(self::$loggers[$logger]);
+ }
+ }
+
+ /**
+ * Removes instance from registry by name or instance
+ *
+ * @param string|Logger $logger Name or logger instance
+ */
+ public static function removeLogger($logger)
+ {
+ if ($logger instanceof Logger) {
+ if (false !== ($idx = array_search($logger, self::$loggers, true))) {
+ unset(self::$loggers[$idx]);
+ }
+ } else {
+ unset(self::$loggers[$logger]);
+ }
+ }
+
+ /**
+ * Clears the registry
+ */
+ public static function clear()
+ {
+ self::$loggers = array();
+ }
+
+ /**
+ * Gets Logger instance from the registry
+ *
+ * @param string $name Name of the requested Logger instance
+ * @throws \InvalidArgumentException If named Logger instance is not in the registry
+ * @return Logger Requested instance of Logger
+ */
+ public static function getInstance($name)
+ {
+ if (!isset(self::$loggers[$name])) {
+ throw new InvalidArgumentException(sprintf('Requested "%s" logger instance is not in the registry', $name));
+ }
+
+ return self::$loggers[$name];
+ }
+
+ /**
+ * Gets Logger instance from the registry via static method call
+ *
+ * @param string $name Name of the requested Logger instance
+ * @param array $arguments Arguments passed to static method call
+ * @throws \InvalidArgumentException If named Logger instance is not in the registry
+ * @return Logger Requested instance of Logger
+ */
+ public static function __callStatic($name, $arguments)
+ {
+ return self::getInstance($name);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/ErrorHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/ErrorHandlerTest.php
new file mode 100644
index 00000000..a9a3f301
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/ErrorHandlerTest.php
@@ -0,0 +1,31 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+use Monolog\Handler\TestHandler;
+
+class ErrorHandlerTest extends \PHPUnit_Framework_TestCase
+{
+ public function testHandleError()
+ {
+ $logger = new Logger('test', array($handler = new TestHandler));
+ $errHandler = new ErrorHandler($logger);
+
+ $errHandler->registerErrorHandler(array(E_USER_NOTICE => Logger::EMERGENCY), false);
+ trigger_error('Foo', E_USER_ERROR);
+ $this->assertCount(1, $handler->getRecords());
+ $this->assertTrue($handler->hasErrorRecords());
+ trigger_error('Foo', E_USER_NOTICE);
+ $this->assertCount(2, $handler->getRecords());
+ $this->assertTrue($handler->hasEmergencyRecords());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php
new file mode 100644
index 00000000..71c42046
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ChromePHPFormatterTest.php
@@ -0,0 +1,158 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+class ChromePHPFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @covers Monolog\Formatter\ChromePHPFormatter::format
+ */
+ public function testDefaultFormat()
+ {
+ $formatter = new ChromePHPFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('ip' => '127.0.0.1'),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertEquals(
+ array(
+ 'meh',
+ array(
+ 'message' => 'log',
+ 'context' => array('from' => 'logger'),
+ 'extra' => array('ip' => '127.0.0.1'),
+ ),
+ 'unknown',
+ 'error',
+ ),
+ $message
+ );
+ }
+
+ /**
+ * @covers Monolog\Formatter\ChromePHPFormatter::format
+ */
+ public function testFormatWithFileAndLine()
+ {
+ $formatter = new ChromePHPFormatter();
+ $record = array(
+ 'level' => Logger::CRITICAL,
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('ip' => '127.0.0.1', 'file' => 'test', 'line' => 14),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertEquals(
+ array(
+ 'meh',
+ array(
+ 'message' => 'log',
+ 'context' => array('from' => 'logger'),
+ 'extra' => array('ip' => '127.0.0.1'),
+ ),
+ 'test : 14',
+ 'error',
+ ),
+ $message
+ );
+ }
+
+ /**
+ * @covers Monolog\Formatter\ChromePHPFormatter::format
+ */
+ public function testFormatWithoutContext()
+ {
+ $formatter = new ChromePHPFormatter();
+ $record = array(
+ 'level' => Logger::DEBUG,
+ 'level_name' => 'DEBUG',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertEquals(
+ array(
+ 'meh',
+ 'log',
+ 'unknown',
+ 'log',
+ ),
+ $message
+ );
+ }
+
+ /**
+ * @covers Monolog\Formatter\ChromePHPFormatter::formatBatch
+ */
+ public function testBatchFormatThrowException()
+ {
+ $formatter = new ChromePHPFormatter();
+ $records = array(
+ array(
+ 'level' => Logger::INFO,
+ 'level_name' => 'INFO',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ ),
+ array(
+ 'level' => Logger::WARNING,
+ 'level_name' => 'WARNING',
+ 'channel' => 'foo',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log2',
+ ),
+ );
+
+ $this->assertEquals(
+ array(
+ array(
+ 'meh',
+ 'log',
+ 'unknown',
+ 'info',
+ ),
+ array(
+ 'foo',
+ 'log2',
+ 'unknown',
+ 'warn',
+ ),
+ ),
+ $formatter->formatBatch($records)
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php
new file mode 100644
index 00000000..90cc48dd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ElasticaFormatterTest.php
@@ -0,0 +1,79 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+class ElasticaFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ public function setUp()
+ {
+ if (!class_exists("Elastica\Document")) {
+ $this->markTestSkipped("ruflin/elastica not installed");
+ }
+ }
+
+ /**
+ * @covers Monolog\Formatter\ElasticaFormatter::__construct
+ * @covers Monolog\Formatter\ElasticaFormatter::format
+ * @covers Monolog\Formatter\ElasticaFormatter::getDocument
+ */
+ public function testFormat()
+ {
+ // test log message
+ $msg = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('foo' => 7, 'bar', 'class' => new \stdClass),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ // expected values
+ $expected = $msg;
+ $expected['datetime'] = '1970-01-01T00:00:00.000000+00:00';
+ $expected['context'] = array(
+ 'class' => '[object] (stdClass: {})',
+ 'foo' => 7,
+ 0 => 'bar',
+ );
+
+ // format log message
+ $formatter = new ElasticaFormatter('my_index', 'doc_type');
+ $doc = $formatter->format($msg);
+ $this->assertInstanceOf('Elastica\Document', $doc);
+
+ // Document parameters
+ $params = $doc->getParams();
+ $this->assertEquals('my_index', $params['_index']);
+ $this->assertEquals('doc_type', $params['_type']);
+
+ // Document data values
+ $data = $doc->getData();
+ foreach (array_keys($expected) as $key) {
+ $this->assertEquals($expected[$key], $data[$key]);
+ }
+ }
+
+ /**
+ * @covers Monolog\Formatter\ElasticaFormatter::getIndex
+ * @covers Monolog\Formatter\ElasticaFormatter::getType
+ */
+ public function testGetters()
+ {
+ $formatter = new ElasticaFormatter('my_index', 'doc_type');
+ $this->assertEquals('my_index', $formatter->getIndex());
+ $this->assertEquals('doc_type', $formatter->getType());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php
new file mode 100644
index 00000000..1b2fd97a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FlowdockFormatterTest.php
@@ -0,0 +1,55 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+
+class FlowdockFormatterTest extends TestCase
+{
+ /**
+ * @covers Monolog\Formatter\FlowdockFormatter::format
+ */
+ public function testFormat()
+ {
+ $formatter = new FlowdockFormatter('test_source', 'source@test.com');
+ $record = $this->getRecord();
+
+ $expected = array(
+ 'source' => 'test_source',
+ 'from_address' => 'source@test.com',
+ 'subject' => 'in test_source: WARNING - test',
+ 'content' => 'test',
+ 'tags' => array('#logs', '#warning', '#test'),
+ 'project' => 'test_source',
+ );
+ $formatted = $formatter->format($record);
+
+ $this->assertEquals($expected, $formatted['flowdock']);
+ }
+
+ /**
+ * @ covers Monolog\Formatter\FlowdockFormatter::formatBatch
+ */
+ public function testFormatBatch()
+ {
+ $formatter = new FlowdockFormatter('test_source', 'source@test.com');
+ $records = array(
+ $this->getRecord(Logger::WARNING),
+ $this->getRecord(Logger::DEBUG),
+ );
+ $formatted = $formatter->formatBatch($records);
+
+ $this->assertArrayHasKey('flowdock', $formatted[0]);
+ $this->assertArrayHasKey('flowdock', $formatted[1]);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php
new file mode 100644
index 00000000..622b2bae
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/FluentdFormatterTest.php
@@ -0,0 +1,62 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+
+class FluentdFormatterTest extends TestCase
+{
+ /**
+ * @covers Monolog\Formatter\FluentdFormatter::__construct
+ * @covers Monolog\Formatter\FluentdFormatter::isUsingLevelsInTag
+ */
+ public function testConstruct()
+ {
+ $formatter = new FluentdFormatter();
+ $this->assertEquals(false, $formatter->isUsingLevelsInTag());
+ $formatter = new FluentdFormatter(false);
+ $this->assertEquals(false, $formatter->isUsingLevelsInTag());
+ $formatter = new FluentdFormatter(true);
+ $this->assertEquals(true, $formatter->isUsingLevelsInTag());
+ }
+
+ /**
+ * @covers Monolog\Formatter\FluentdFormatter::format
+ */
+ public function testFormat()
+ {
+ $record = $this->getRecord(Logger::WARNING);
+ $record['datetime'] = new \DateTime("@0");
+
+ $formatter = new FluentdFormatter();
+ $this->assertEquals(
+ '["test",0,{"message":"test","extra":[],"level":300,"level_name":"WARNING"}]',
+ $formatter->format($record)
+ );
+ }
+
+ /**
+ * @covers Monolog\Formatter\FluentdFormatter::format
+ */
+ public function testFormatWithTag()
+ {
+ $record = $this->getRecord(Logger::ERROR);
+ $record['datetime'] = new \DateTime("@0");
+
+ $formatter = new FluentdFormatter(true);
+ $this->assertEquals(
+ '["test.error",0,{"message":"test","extra":[]}]',
+ $formatter->format($record)
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php
new file mode 100644
index 00000000..4a247616
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/GelfMessageFormatterTest.php
@@ -0,0 +1,258 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+class GelfMessageFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ public function setUp()
+ {
+ if (!class_exists('\Gelf\Message')) {
+ $this->markTestSkipped("graylog2/gelf-php or mlehner/gelf-php is not installed");
+ }
+ }
+
+ /**
+ * @covers Monolog\Formatter\GelfMessageFormatter::format
+ */
+ public function testDefaultFormatter()
+ {
+ $formatter = new GelfMessageFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+ $this->assertEquals(0, $message->getTimestamp());
+ $this->assertEquals('log', $message->getShortMessage());
+ $this->assertEquals('meh', $message->getFacility());
+ $this->assertEquals(null, $message->getLine());
+ $this->assertEquals(null, $message->getFile());
+ $this->assertEquals($this->isLegacy() ? 3 : 'error', $message->getLevel());
+ $this->assertNotEmpty($message->getHost());
+
+ $formatter = new GelfMessageFormatter('mysystem');
+
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+ $this->assertEquals('mysystem', $message->getHost());
+ }
+
+ /**
+ * @covers Monolog\Formatter\GelfMessageFormatter::format
+ */
+ public function testFormatWithFileAndLine()
+ {
+ $formatter = new GelfMessageFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('file' => 'test', 'line' => 14),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+ $this->assertEquals('test', $message->getFile());
+ $this->assertEquals(14, $message->getLine());
+ }
+
+ /**
+ * @covers Monolog\Formatter\GelfMessageFormatter::format
+ * @expectedException InvalidArgumentException
+ */
+ public function testFormatInvalidFails()
+ {
+ $formatter = new GelfMessageFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ );
+
+ $formatter->format($record);
+ }
+
+ /**
+ * @covers Monolog\Formatter\GelfMessageFormatter::format
+ */
+ public function testFormatWithContext()
+ {
+ $formatter = new GelfMessageFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+
+ $message_array = $message->toArray();
+
+ $this->assertArrayHasKey('_ctxt_from', $message_array);
+ $this->assertEquals('logger', $message_array['_ctxt_from']);
+
+ // Test with extraPrefix
+ $formatter = new GelfMessageFormatter(null, null, 'CTX');
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+
+ $message_array = $message->toArray();
+
+ $this->assertArrayHasKey('_CTXfrom', $message_array);
+ $this->assertEquals('logger', $message_array['_CTXfrom']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\GelfMessageFormatter::format
+ */
+ public function testFormatWithContextContainingException()
+ {
+ $formatter = new GelfMessageFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger', 'exception' => array(
+ 'class' => '\Exception',
+ 'file' => '/some/file/in/dir.php:56',
+ 'trace' => array('/some/file/1.php:23', '/some/file/2.php:3'),
+ )),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+
+ $this->assertEquals("/some/file/in/dir.php", $message->getFile());
+ $this->assertEquals("56", $message->getLine());
+ }
+
+ /**
+ * @covers Monolog\Formatter\GelfMessageFormatter::format
+ */
+ public function testFormatWithExtra()
+ {
+ $formatter = new GelfMessageFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+
+ $message_array = $message->toArray();
+
+ $this->assertArrayHasKey('_key', $message_array);
+ $this->assertEquals('pair', $message_array['_key']);
+
+ // Test with extraPrefix
+ $formatter = new GelfMessageFormatter(null, 'EXT');
+ $message = $formatter->format($record);
+
+ $this->assertInstanceOf('Gelf\Message', $message);
+
+ $message_array = $message->toArray();
+
+ $this->assertArrayHasKey('_EXTkey', $message_array);
+ $this->assertEquals('pair', $message_array['_EXTkey']);
+ }
+
+ public function testFormatWithLargeData()
+ {
+ $formatter = new GelfMessageFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('exception' => str_repeat(' ', 32767)),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => str_repeat(' ', 32767)),
+ 'message' => 'log'
+ );
+ $message = $formatter->format($record);
+ $messageArray = $message->toArray();
+
+ // 200 for padding + metadata
+ $length = 200;
+
+ foreach ($messageArray as $key => $value) {
+ if (!in_array($key, array('level', 'timestamp'))) {
+ $length += strlen($value);
+ }
+ }
+
+ $this->assertLessThanOrEqual(65792, $length, 'The message length is no longer than the maximum allowed length');
+ }
+
+ public function testFormatWithUnlimitedLength()
+ {
+ $formatter = new GelfMessageFormatter('LONG_SYSTEM_NAME', null, 'ctxt_', PHP_INT_MAX);
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('exception' => str_repeat(' ', 32767 * 2)),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => str_repeat(' ', 32767 * 2)),
+ 'message' => 'log'
+ );
+ $message = $formatter->format($record);
+ $messageArray = $message->toArray();
+
+ // 200 for padding + metadata
+ $length = 200;
+
+ foreach ($messageArray as $key => $value) {
+ if (!in_array($key, array('level', 'timestamp'))) {
+ $length += strlen($value);
+ }
+ }
+
+ $this->assertGreaterThanOrEqual(131289, $length, 'The message should not be truncated');
+ }
+
+ private function isLegacy()
+ {
+ return interface_exists('\Gelf\IMessagePublisher');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php
new file mode 100644
index 00000000..c9445f36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/JsonFormatterTest.php
@@ -0,0 +1,183 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+
+class JsonFormatterTest extends TestCase
+{
+ /**
+ * @covers Monolog\Formatter\JsonFormatter::__construct
+ * @covers Monolog\Formatter\JsonFormatter::getBatchMode
+ * @covers Monolog\Formatter\JsonFormatter::isAppendingNewlines
+ */
+ public function testConstruct()
+ {
+ $formatter = new JsonFormatter();
+ $this->assertEquals(JsonFormatter::BATCH_MODE_JSON, $formatter->getBatchMode());
+ $this->assertEquals(true, $formatter->isAppendingNewlines());
+ $formatter = new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES, false);
+ $this->assertEquals(JsonFormatter::BATCH_MODE_NEWLINES, $formatter->getBatchMode());
+ $this->assertEquals(false, $formatter->isAppendingNewlines());
+ }
+
+ /**
+ * @covers Monolog\Formatter\JsonFormatter::format
+ */
+ public function testFormat()
+ {
+ $formatter = new JsonFormatter();
+ $record = $this->getRecord();
+ $this->assertEquals(json_encode($record)."\n", $formatter->format($record));
+
+ $formatter = new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false);
+ $record = $this->getRecord();
+ $this->assertEquals(json_encode($record), $formatter->format($record));
+ }
+
+ /**
+ * @covers Monolog\Formatter\JsonFormatter::formatBatch
+ * @covers Monolog\Formatter\JsonFormatter::formatBatchJson
+ */
+ public function testFormatBatch()
+ {
+ $formatter = new JsonFormatter();
+ $records = array(
+ $this->getRecord(Logger::WARNING),
+ $this->getRecord(Logger::DEBUG),
+ );
+ $this->assertEquals(json_encode($records), $formatter->formatBatch($records));
+ }
+
+ /**
+ * @covers Monolog\Formatter\JsonFormatter::formatBatch
+ * @covers Monolog\Formatter\JsonFormatter::formatBatchNewlines
+ */
+ public function testFormatBatchNewlines()
+ {
+ $formatter = new JsonFormatter(JsonFormatter::BATCH_MODE_NEWLINES);
+ $records = $expected = array(
+ $this->getRecord(Logger::WARNING),
+ $this->getRecord(Logger::DEBUG),
+ );
+ array_walk($expected, function (&$value, $key) {
+ $value = json_encode($value);
+ });
+ $this->assertEquals(implode("\n", $expected), $formatter->formatBatch($records));
+ }
+
+ public function testDefFormatWithException()
+ {
+ $formatter = new JsonFormatter();
+ $exception = new \RuntimeException('Foo');
+ $formattedException = $this->formatException($exception);
+
+ $message = $this->formatRecordWithExceptionInContext($formatter, $exception);
+
+ $this->assertContextContainsFormattedException($formattedException, $message);
+ }
+
+ public function testDefFormatWithPreviousException()
+ {
+ $formatter = new JsonFormatter();
+ $exception = new \RuntimeException('Foo', 0, new \LogicException('Wut?'));
+ $formattedPrevException = $this->formatException($exception->getPrevious());
+ $formattedException = $this->formatException($exception, $formattedPrevException);
+
+ $message = $this->formatRecordWithExceptionInContext($formatter, $exception);
+
+ $this->assertContextContainsFormattedException($formattedException, $message);
+ }
+
+ public function testDefFormatWithThrowable()
+ {
+ if (!class_exists('Error') || !is_subclass_of('Error', 'Throwable')) {
+ $this->markTestSkipped('Requires PHP >=7');
+ }
+
+ $formatter = new JsonFormatter();
+ $throwable = new \Error('Foo');
+ $formattedThrowable = $this->formatException($throwable);
+
+ $message = $this->formatRecordWithExceptionInContext($formatter, $throwable);
+
+ $this->assertContextContainsFormattedException($formattedThrowable, $message);
+ }
+
+ /**
+ * @param string $expected
+ * @param string $actual
+ *
+ * @internal param string $exception
+ */
+ private function assertContextContainsFormattedException($expected, $actual)
+ {
+ $this->assertEquals(
+ '{"level_name":"CRITICAL","channel":"core","context":{"exception":'.$expected.'},"datetime":null,"extra":[],"message":"foobar"}'."\n",
+ $actual
+ );
+ }
+
+ /**
+ * @param JsonFormatter $formatter
+ * @param \Exception|\Throwable $exception
+ *
+ * @return string
+ */
+ private function formatRecordWithExceptionInContext(JsonFormatter $formatter, $exception)
+ {
+ $message = $formatter->format(array(
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'core',
+ 'context' => array('exception' => $exception),
+ 'datetime' => null,
+ 'extra' => array(),
+ 'message' => 'foobar',
+ ));
+ return $message;
+ }
+
+ /**
+ * @param \Exception|\Throwable $exception
+ *
+ * @return string
+ */
+ private function formatExceptionFilePathWithLine($exception)
+ {
+ $options = 0;
+ if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ $options = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
+ }
+ $path = substr(json_encode($exception->getFile(), $options), 1, -1);
+ return $path . ':' . $exception->getLine();
+ }
+
+ /**
+ * @param \Exception|\Throwable $exception
+ *
+ * @param null|string $previous
+ *
+ * @return string
+ */
+ private function formatException($exception, $previous = null)
+ {
+ $formattedException =
+ '{"class":"' . get_class($exception) .
+ '","message":"' . $exception->getMessage() .
+ '","code":' . $exception->getCode() .
+ ',"file":"' . $this->formatExceptionFilePathWithLine($exception) .
+ ($previous ? '","previous":' . $previous : '"') .
+ '}';
+ return $formattedException;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php
new file mode 100644
index 00000000..310d93ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LineFormatterTest.php
@@ -0,0 +1,222 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * @covers Monolog\Formatter\LineFormatter
+ */
+class LineFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ public function testDefFormatWithString()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $message = $formatter->format(array(
+ 'level_name' => 'WARNING',
+ 'channel' => 'log',
+ 'context' => array(),
+ 'message' => 'foo',
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ ));
+ $this->assertEquals('['.date('Y-m-d').'] log.WARNING: foo [] []'."\n", $message);
+ }
+
+ public function testDefFormatWithArrayContext()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $message = $formatter->format(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'message' => 'foo',
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ 'context' => array(
+ 'foo' => 'bar',
+ 'baz' => 'qux',
+ 'bool' => false,
+ 'null' => null,
+ ),
+ ));
+ $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: foo {"foo":"bar","baz":"qux","bool":false,"null":null} []'."\n", $message);
+ }
+
+ public function testDefFormatExtras()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $message = $formatter->format(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array('ip' => '127.0.0.1'),
+ 'message' => 'log',
+ ));
+ $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: log [] {"ip":"127.0.0.1"}'."\n", $message);
+ }
+
+ public function testFormatExtras()
+ {
+ $formatter = new LineFormatter("[%datetime%] %channel%.%level_name%: %message% %context% %extra.file% %extra%\n", 'Y-m-d');
+ $message = $formatter->format(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array('ip' => '127.0.0.1', 'file' => 'test'),
+ 'message' => 'log',
+ ));
+ $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: log [] test {"ip":"127.0.0.1"}'."\n", $message);
+ }
+
+ public function testContextAndExtraOptionallyNotShownIfEmpty()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d', false, true);
+ $message = $formatter->format(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ 'message' => 'log',
+ ));
+ $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: log '."\n", $message);
+ }
+
+ public function testContextAndExtraReplacement()
+ {
+ $formatter = new LineFormatter('%context.foo% => %extra.foo%');
+ $message = $formatter->format(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('foo' => 'bar'),
+ 'datetime' => new \DateTime,
+ 'extra' => array('foo' => 'xbar'),
+ 'message' => 'log',
+ ));
+ $this->assertEquals('bar => xbar', $message);
+ }
+
+ public function testDefFormatWithObject()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $message = $formatter->format(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array('foo' => new TestFoo, 'bar' => new TestBar, 'baz' => array(), 'res' => fopen('php://memory', 'rb')),
+ 'message' => 'foobar',
+ ));
+
+ $this->assertEquals('['.date('Y-m-d').'] meh.ERROR: foobar [] {"foo":"[object] (Monolog\\\\Formatter\\\\TestFoo: {\\"foo\\":\\"foo\\"})","bar":"[object] (Monolog\\\\Formatter\\\\TestBar: bar)","baz":[],"res":"[resource] (stream)"}'."\n", $message);
+ }
+
+ public function testDefFormatWithException()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $message = $formatter->format(array(
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'core',
+ 'context' => array('exception' => new \RuntimeException('Foo')),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ 'message' => 'foobar',
+ ));
+
+ $path = str_replace('\\/', '/', json_encode(__FILE__));
+
+ $this->assertEquals('['.date('Y-m-d').'] core.CRITICAL: foobar {"exception":"[object] (RuntimeException(code: 0): Foo at '.substr($path, 1, -1).':'.(__LINE__ - 8).')"} []'."\n", $message);
+ }
+
+ public function testDefFormatWithPreviousException()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $previous = new \LogicException('Wut?');
+ $message = $formatter->format(array(
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'core',
+ 'context' => array('exception' => new \RuntimeException('Foo', 0, $previous)),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ 'message' => 'foobar',
+ ));
+
+ $path = str_replace('\\/', '/', json_encode(__FILE__));
+
+ $this->assertEquals('['.date('Y-m-d').'] core.CRITICAL: foobar {"exception":"[object] (RuntimeException(code: 0): Foo at '.substr($path, 1, -1).':'.(__LINE__ - 8).', LogicException(code: 0): Wut? at '.substr($path, 1, -1).':'.(__LINE__ - 12).')"} []'."\n", $message);
+ }
+
+ public function testBatchFormat()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $message = $formatter->formatBatch(array(
+ array(
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'test',
+ 'message' => 'bar',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ ),
+ array(
+ 'level_name' => 'WARNING',
+ 'channel' => 'log',
+ 'message' => 'foo',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ ),
+ ));
+ $this->assertEquals('['.date('Y-m-d').'] test.CRITICAL: bar [] []'."\n".'['.date('Y-m-d').'] log.WARNING: foo [] []'."\n", $message);
+ }
+
+ public function testFormatShouldStripInlineLineBreaks()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d');
+ $message = $formatter->format(
+ array(
+ 'message' => "foo\nbar",
+ 'context' => array(),
+ 'extra' => array(),
+ )
+ );
+
+ $this->assertRegExp('/foo bar/', $message);
+ }
+
+ public function testFormatShouldNotStripInlineLineBreaksWhenFlagIsSet()
+ {
+ $formatter = new LineFormatter(null, 'Y-m-d', true);
+ $message = $formatter->format(
+ array(
+ 'message' => "foo\nbar",
+ 'context' => array(),
+ 'extra' => array(),
+ )
+ );
+
+ $this->assertRegExp('/foo\nbar/', $message);
+ }
+}
+
+class TestFoo
+{
+ public $foo = 'foo';
+}
+
+class TestBar
+{
+ public function __toString()
+ {
+ return 'bar';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php
new file mode 100644
index 00000000..6d59b3f3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogglyFormatterTest.php
@@ -0,0 +1,40 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\TestCase;
+
+class LogglyFormatterTest extends TestCase
+{
+ /**
+ * @covers Monolog\Formatter\LogglyFormatter::__construct
+ */
+ public function testConstruct()
+ {
+ $formatter = new LogglyFormatter();
+ $this->assertEquals(LogglyFormatter::BATCH_MODE_NEWLINES, $formatter->getBatchMode());
+ $formatter = new LogglyFormatter(LogglyFormatter::BATCH_MODE_JSON);
+ $this->assertEquals(LogglyFormatter::BATCH_MODE_JSON, $formatter->getBatchMode());
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogglyFormatter::format
+ */
+ public function testFormat()
+ {
+ $formatter = new LogglyFormatter();
+ $record = $this->getRecord();
+ $formatted_decoded = json_decode($formatter->format($record), true);
+ $this->assertArrayHasKey("timestamp", $formatted_decoded);
+ $this->assertEquals(new \DateTime($formatted_decoded["timestamp"]), $record["datetime"]);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php
new file mode 100644
index 00000000..9f6b1cc4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/LogstashFormatterTest.php
@@ -0,0 +1,333 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+class LogstashFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ public function tearDown()
+ {
+ \PHPUnit_Framework_Error_Warning::$enabled = true;
+
+ return parent::tearDown();
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testDefaultFormatter()
+ {
+ $formatter = new LogstashFormatter('test', 'hostname');
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertEquals("1970-01-01T00:00:00.000000+00:00", $message['@timestamp']);
+ $this->assertEquals('log', $message['@message']);
+ $this->assertEquals('meh', $message['@fields']['channel']);
+ $this->assertContains('meh', $message['@tags']);
+ $this->assertEquals(Logger::ERROR, $message['@fields']['level']);
+ $this->assertEquals('test', $message['@type']);
+ $this->assertEquals('hostname', $message['@source']);
+
+ $formatter = new LogstashFormatter('mysystem');
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertEquals('mysystem', $message['@type']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testFormatWithFileAndLine()
+ {
+ $formatter = new LogstashFormatter('test');
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('file' => 'test', 'line' => 14),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertEquals('test', $message['@fields']['file']);
+ $this->assertEquals(14, $message['@fields']['line']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testFormatWithContext()
+ {
+ $formatter = new LogstashFormatter('test');
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $message_array = $message['@fields'];
+
+ $this->assertArrayHasKey('ctxt_from', $message_array);
+ $this->assertEquals('logger', $message_array['ctxt_from']);
+
+ // Test with extraPrefix
+ $formatter = new LogstashFormatter('test', null, null, 'CTX');
+ $message = json_decode($formatter->format($record), true);
+
+ $message_array = $message['@fields'];
+
+ $this->assertArrayHasKey('CTXfrom', $message_array);
+ $this->assertEquals('logger', $message_array['CTXfrom']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testFormatWithExtra()
+ {
+ $formatter = new LogstashFormatter('test');
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $message_array = $message['@fields'];
+
+ $this->assertArrayHasKey('key', $message_array);
+ $this->assertEquals('pair', $message_array['key']);
+
+ // Test with extraPrefix
+ $formatter = new LogstashFormatter('test', null, 'EXT');
+ $message = json_decode($formatter->format($record), true);
+
+ $message_array = $message['@fields'];
+
+ $this->assertArrayHasKey('EXTkey', $message_array);
+ $this->assertEquals('pair', $message_array['EXTkey']);
+ }
+
+ public function testFormatWithApplicationName()
+ {
+ $formatter = new LogstashFormatter('app', 'test');
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertArrayHasKey('@type', $message);
+ $this->assertEquals('app', $message['@type']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testDefaultFormatterV1()
+ {
+ $formatter = new LogstashFormatter('test', 'hostname', null, 'ctxt_', LogstashFormatter::V1);
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertEquals("1970-01-01T00:00:00.000000+00:00", $message['@timestamp']);
+ $this->assertEquals("1", $message['@version']);
+ $this->assertEquals('log', $message['message']);
+ $this->assertEquals('meh', $message['channel']);
+ $this->assertEquals('ERROR', $message['level']);
+ $this->assertEquals('test', $message['type']);
+ $this->assertEquals('hostname', $message['host']);
+
+ $formatter = new LogstashFormatter('mysystem', null, null, 'ctxt_', LogstashFormatter::V1);
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertEquals('mysystem', $message['type']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testFormatWithFileAndLineV1()
+ {
+ $formatter = new LogstashFormatter('test', null, null, 'ctxt_', LogstashFormatter::V1);
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('file' => 'test', 'line' => 14),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertEquals('test', $message['file']);
+ $this->assertEquals(14, $message['line']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testFormatWithContextV1()
+ {
+ $formatter = new LogstashFormatter('test', null, null, 'ctxt_', LogstashFormatter::V1);
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertArrayHasKey('ctxt_from', $message);
+ $this->assertEquals('logger', $message['ctxt_from']);
+
+ // Test with extraPrefix
+ $formatter = new LogstashFormatter('test', null, null, 'CTX', LogstashFormatter::V1);
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertArrayHasKey('CTXfrom', $message);
+ $this->assertEquals('logger', $message['CTXfrom']);
+ }
+
+ /**
+ * @covers Monolog\Formatter\LogstashFormatter::format
+ */
+ public function testFormatWithExtraV1()
+ {
+ $formatter = new LogstashFormatter('test', null, null, 'ctxt_', LogstashFormatter::V1);
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertArrayHasKey('key', $message);
+ $this->assertEquals('pair', $message['key']);
+
+ // Test with extraPrefix
+ $formatter = new LogstashFormatter('test', null, 'EXT', 'ctxt_', LogstashFormatter::V1);
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertArrayHasKey('EXTkey', $message);
+ $this->assertEquals('pair', $message['EXTkey']);
+ }
+
+ public function testFormatWithApplicationNameV1()
+ {
+ $formatter = new LogstashFormatter('app', 'test', null, 'ctxt_', LogstashFormatter::V1);
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('key' => 'pair'),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertArrayHasKey('type', $message);
+ $this->assertEquals('app', $message['type']);
+ }
+
+ public function testFormatWithLatin9Data()
+ {
+ if (version_compare(PHP_VERSION, '5.5.0', '<')) {
+ // Ignore the warning that will be emitted by PHP <5.5.0
+ \PHPUnit_Framework_Error_Warning::$enabled = false;
+ }
+ $formatter = new LogstashFormatter('test', 'hostname');
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => '¯\_(ツ)_/¯',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(
+ 'user_agent' => "\xD6WN; FBCR/OrangeEspa\xF1a; Vers\xE3o/4.0; F\xE4rist",
+ ),
+ 'message' => 'log',
+ );
+
+ $message = json_decode($formatter->format($record), true);
+
+ $this->assertEquals("1970-01-01T00:00:00.000000+00:00", $message['@timestamp']);
+ $this->assertEquals('log', $message['@message']);
+ $this->assertEquals('¯\_(ツ)_/¯', $message['@fields']['channel']);
+ $this->assertContains('¯\_(ツ)_/¯', $message['@tags']);
+ $this->assertEquals(Logger::ERROR, $message['@fields']['level']);
+ $this->assertEquals('test', $message['@type']);
+ $this->assertEquals('hostname', $message['@source']);
+ if (version_compare(PHP_VERSION, '5.5.0', '>=')) {
+ $this->assertEquals('ÖWN; FBCR/OrangeEspaña; Versão/4.0; Färist', $message['@fields']['user_agent']);
+ } else {
+ // PHP <5.5 does not return false for an element encoding failure,
+ // instead it emits a warning (possibly) and nulls the value.
+ $this->assertEquals(null, $message['@fields']['user_agent']);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php
new file mode 100644
index 00000000..52e699e0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/MongoDBFormatterTest.php
@@ -0,0 +1,262 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+/**
+ * @author Florian Plattner <me@florianplattner.de>
+ */
+class MongoDBFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ public function setUp()
+ {
+ if (!class_exists('MongoDate')) {
+ $this->markTestSkipped('mongo extension not installed');
+ }
+ }
+
+ public function constructArgumentProvider()
+ {
+ return array(
+ array(1, true, 1, true),
+ array(0, false, 0, false),
+ );
+ }
+
+ /**
+ * @param $traceDepth
+ * @param $traceAsString
+ * @param $expectedTraceDepth
+ * @param $expectedTraceAsString
+ *
+ * @dataProvider constructArgumentProvider
+ */
+ public function testConstruct($traceDepth, $traceAsString, $expectedTraceDepth, $expectedTraceAsString)
+ {
+ $formatter = new MongoDBFormatter($traceDepth, $traceAsString);
+
+ $reflTrace = new \ReflectionProperty($formatter, 'exceptionTraceAsString');
+ $reflTrace->setAccessible(true);
+ $this->assertEquals($expectedTraceAsString, $reflTrace->getValue($formatter));
+
+ $reflDepth = new\ReflectionProperty($formatter, 'maxNestingLevel');
+ $reflDepth->setAccessible(true);
+ $this->assertEquals($expectedTraceDepth, $reflDepth->getValue($formatter));
+ }
+
+ public function testSimpleFormat()
+ {
+ $record = array(
+ 'message' => 'some log message',
+ 'context' => array(),
+ 'level' => Logger::WARNING,
+ 'level_name' => Logger::getLevelName(Logger::WARNING),
+ 'channel' => 'test',
+ 'datetime' => new \DateTime('2014-02-01 00:00:00'),
+ 'extra' => array(),
+ );
+
+ $formatter = new MongoDBFormatter();
+ $formattedRecord = $formatter->format($record);
+
+ $this->assertCount(7, $formattedRecord);
+ $this->assertEquals('some log message', $formattedRecord['message']);
+ $this->assertEquals(array(), $formattedRecord['context']);
+ $this->assertEquals(Logger::WARNING, $formattedRecord['level']);
+ $this->assertEquals(Logger::getLevelName(Logger::WARNING), $formattedRecord['level_name']);
+ $this->assertEquals('test', $formattedRecord['channel']);
+ $this->assertInstanceOf('\MongoDate', $formattedRecord['datetime']);
+ $this->assertEquals('0.00000000 1391212800', $formattedRecord['datetime']->__toString());
+ $this->assertEquals(array(), $formattedRecord['extra']);
+ }
+
+ public function testRecursiveFormat()
+ {
+ $someObject = new \stdClass();
+ $someObject->foo = 'something';
+ $someObject->bar = 'stuff';
+
+ $record = array(
+ 'message' => 'some log message',
+ 'context' => array(
+ 'stuff' => new \DateTime('2014-02-01 02:31:33'),
+ 'some_object' => $someObject,
+ 'context_string' => 'some string',
+ 'context_int' => 123456,
+ 'except' => new \Exception('exception message', 987),
+ ),
+ 'level' => Logger::WARNING,
+ 'level_name' => Logger::getLevelName(Logger::WARNING),
+ 'channel' => 'test',
+ 'datetime' => new \DateTime('2014-02-01 00:00:00'),
+ 'extra' => array(),
+ );
+
+ $formatter = new MongoDBFormatter();
+ $formattedRecord = $formatter->format($record);
+
+ $this->assertCount(5, $formattedRecord['context']);
+ $this->assertInstanceOf('\MongoDate', $formattedRecord['context']['stuff']);
+ $this->assertEquals('0.00000000 1391221893', $formattedRecord['context']['stuff']->__toString());
+ $this->assertEquals(
+ array(
+ 'foo' => 'something',
+ 'bar' => 'stuff',
+ 'class' => 'stdClass',
+ ),
+ $formattedRecord['context']['some_object']
+ );
+ $this->assertEquals('some string', $formattedRecord['context']['context_string']);
+ $this->assertEquals(123456, $formattedRecord['context']['context_int']);
+
+ $this->assertCount(5, $formattedRecord['context']['except']);
+ $this->assertEquals('exception message', $formattedRecord['context']['except']['message']);
+ $this->assertEquals(987, $formattedRecord['context']['except']['code']);
+ $this->assertInternalType('string', $formattedRecord['context']['except']['file']);
+ $this->assertInternalType('integer', $formattedRecord['context']['except']['code']);
+ $this->assertInternalType('string', $formattedRecord['context']['except']['trace']);
+ $this->assertEquals('Exception', $formattedRecord['context']['except']['class']);
+ }
+
+ public function testFormatDepthArray()
+ {
+ $record = array(
+ 'message' => 'some log message',
+ 'context' => array(
+ 'nest2' => array(
+ 'property' => 'anything',
+ 'nest3' => array(
+ 'nest4' => 'value',
+ 'property' => 'nothing',
+ ),
+ ),
+ ),
+ 'level' => Logger::WARNING,
+ 'level_name' => Logger::getLevelName(Logger::WARNING),
+ 'channel' => 'test',
+ 'datetime' => new \DateTime('2014-02-01 00:00:00'),
+ 'extra' => array(),
+ );
+
+ $formatter = new MongoDBFormatter(2);
+ $formattedResult = $formatter->format($record);
+
+ $this->assertEquals(
+ array(
+ 'nest2' => array(
+ 'property' => 'anything',
+ 'nest3' => '[...]',
+ ),
+ ),
+ $formattedResult['context']
+ );
+ }
+
+ public function testFormatDepthArrayInfiniteNesting()
+ {
+ $record = array(
+ 'message' => 'some log message',
+ 'context' => array(
+ 'nest2' => array(
+ 'property' => 'something',
+ 'nest3' => array(
+ 'property' => 'anything',
+ 'nest4' => array(
+ 'property' => 'nothing',
+ ),
+ ),
+ ),
+ ),
+ 'level' => Logger::WARNING,
+ 'level_name' => Logger::getLevelName(Logger::WARNING),
+ 'channel' => 'test',
+ 'datetime' => new \DateTime('2014-02-01 00:00:00'),
+ 'extra' => array(),
+ );
+
+ $formatter = new MongoDBFormatter(0);
+ $formattedResult = $formatter->format($record);
+
+ $this->assertEquals(
+ array(
+ 'nest2' => array(
+ 'property' => 'something',
+ 'nest3' => array(
+ 'property' => 'anything',
+ 'nest4' => array(
+ 'property' => 'nothing',
+ ),
+ ),
+ ),
+ ),
+ $formattedResult['context']
+ );
+ }
+
+ public function testFormatDepthObjects()
+ {
+ $someObject = new \stdClass();
+ $someObject->property = 'anything';
+ $someObject->nest3 = new \stdClass();
+ $someObject->nest3->property = 'nothing';
+ $someObject->nest3->nest4 = 'invisible';
+
+ $record = array(
+ 'message' => 'some log message',
+ 'context' => array(
+ 'nest2' => $someObject,
+ ),
+ 'level' => Logger::WARNING,
+ 'level_name' => Logger::getLevelName(Logger::WARNING),
+ 'channel' => 'test',
+ 'datetime' => new \DateTime('2014-02-01 00:00:00'),
+ 'extra' => array(),
+ );
+
+ $formatter = new MongoDBFormatter(2, true);
+ $formattedResult = $formatter->format($record);
+
+ $this->assertEquals(
+ array(
+ 'nest2' => array(
+ 'property' => 'anything',
+ 'nest3' => '[...]',
+ 'class' => 'stdClass',
+ ),
+ ),
+ $formattedResult['context']
+ );
+ }
+
+ public function testFormatDepthException()
+ {
+ $record = array(
+ 'message' => 'some log message',
+ 'context' => array(
+ 'nest2' => new \Exception('exception message', 987),
+ ),
+ 'level' => Logger::WARNING,
+ 'level_name' => Logger::getLevelName(Logger::WARNING),
+ 'channel' => 'test',
+ 'datetime' => new \DateTime('2014-02-01 00:00:00'),
+ 'extra' => array(),
+ );
+
+ $formatter = new MongoDBFormatter(2, false);
+ $formattedRecord = $formatter->format($record);
+
+ $this->assertEquals('exception message', $formattedRecord['context']['nest2']['message']);
+ $this->assertEquals(987, $formattedRecord['context']['nest2']['code']);
+ $this->assertEquals('[...]', $formattedRecord['context']['nest2']['trace']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php
new file mode 100644
index 00000000..57bcdf98
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/NormalizerFormatterTest.php
@@ -0,0 +1,423 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+/**
+ * @covers Monolog\Formatter\NormalizerFormatter
+ */
+class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ public function tearDown()
+ {
+ \PHPUnit_Framework_Error_Warning::$enabled = true;
+
+ return parent::tearDown();
+ }
+
+ public function testFormat()
+ {
+ $formatter = new NormalizerFormatter('Y-m-d');
+ $formatted = $formatter->format(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'message' => 'foo',
+ 'datetime' => new \DateTime,
+ 'extra' => array('foo' => new TestFooNorm, 'bar' => new TestBarNorm, 'baz' => array(), 'res' => fopen('php://memory', 'rb')),
+ 'context' => array(
+ 'foo' => 'bar',
+ 'baz' => 'qux',
+ 'inf' => INF,
+ '-inf' => -INF,
+ 'nan' => acos(4),
+ ),
+ ));
+
+ $this->assertEquals(array(
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'message' => 'foo',
+ 'datetime' => date('Y-m-d'),
+ 'extra' => array(
+ 'foo' => '[object] (Monolog\\Formatter\\TestFooNorm: {"foo":"foo"})',
+ 'bar' => '[object] (Monolog\\Formatter\\TestBarNorm: bar)',
+ 'baz' => array(),
+ 'res' => '[resource] (stream)',
+ ),
+ 'context' => array(
+ 'foo' => 'bar',
+ 'baz' => 'qux',
+ 'inf' => 'INF',
+ '-inf' => '-INF',
+ 'nan' => 'NaN',
+ ),
+ ), $formatted);
+ }
+
+ public function testFormatExceptions()
+ {
+ $formatter = new NormalizerFormatter('Y-m-d');
+ $e = new \LogicException('bar');
+ $e2 = new \RuntimeException('foo', 0, $e);
+ $formatted = $formatter->format(array(
+ 'exception' => $e2,
+ ));
+
+ $this->assertGreaterThan(5, count($formatted['exception']['trace']));
+ $this->assertTrue(isset($formatted['exception']['previous']));
+ unset($formatted['exception']['trace'], $formatted['exception']['previous']);
+
+ $this->assertEquals(array(
+ 'exception' => array(
+ 'class' => get_class($e2),
+ 'message' => $e2->getMessage(),
+ 'code' => $e2->getCode(),
+ 'file' => $e2->getFile().':'.$e2->getLine(),
+ ),
+ ), $formatted);
+ }
+
+ public function testFormatSoapFaultException()
+ {
+ if (!class_exists('SoapFault')) {
+ $this->markTestSkipped('Requires the soap extension');
+ }
+
+ $formatter = new NormalizerFormatter('Y-m-d');
+ $e = new \SoapFault('foo', 'bar', 'hello', 'world');
+ $formatted = $formatter->format(array(
+ 'exception' => $e,
+ ));
+
+ unset($formatted['exception']['trace']);
+
+ $this->assertEquals(array(
+ 'exception' => array(
+ 'class' => 'SoapFault',
+ 'message' => 'bar',
+ 'code' => 0,
+ 'file' => $e->getFile().':'.$e->getLine(),
+ 'faultcode' => 'foo',
+ 'faultactor' => 'hello',
+ 'detail' => 'world',
+ ),
+ ), $formatted);
+ }
+
+ public function testFormatToStringExceptionHandle()
+ {
+ $formatter = new NormalizerFormatter('Y-m-d');
+ $this->setExpectedException('RuntimeException', 'Could not convert to string');
+ $formatter->format(array(
+ 'myObject' => new TestToStringError(),
+ ));
+ }
+
+ public function testBatchFormat()
+ {
+ $formatter = new NormalizerFormatter('Y-m-d');
+ $formatted = $formatter->formatBatch(array(
+ array(
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'test',
+ 'message' => 'bar',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ ),
+ array(
+ 'level_name' => 'WARNING',
+ 'channel' => 'log',
+ 'message' => 'foo',
+ 'context' => array(),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ ),
+ ));
+ $this->assertEquals(array(
+ array(
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'test',
+ 'message' => 'bar',
+ 'context' => array(),
+ 'datetime' => date('Y-m-d'),
+ 'extra' => array(),
+ ),
+ array(
+ 'level_name' => 'WARNING',
+ 'channel' => 'log',
+ 'message' => 'foo',
+ 'context' => array(),
+ 'datetime' => date('Y-m-d'),
+ 'extra' => array(),
+ ),
+ ), $formatted);
+ }
+
+ /**
+ * Test issue #137
+ */
+ public function testIgnoresRecursiveObjectReferences()
+ {
+ // set up the recursion
+ $foo = new \stdClass();
+ $bar = new \stdClass();
+
+ $foo->bar = $bar;
+ $bar->foo = $foo;
+
+ // set an error handler to assert that the error is not raised anymore
+ $that = $this;
+ set_error_handler(function ($level, $message, $file, $line, $context) use ($that) {
+ if (error_reporting() & $level) {
+ restore_error_handler();
+ $that->fail("$message should not be raised");
+ }
+ });
+
+ $formatter = new NormalizerFormatter();
+ $reflMethod = new \ReflectionMethod($formatter, 'toJson');
+ $reflMethod->setAccessible(true);
+ $res = $reflMethod->invoke($formatter, array($foo, $bar), true);
+
+ restore_error_handler();
+
+ $this->assertEquals(@json_encode(array($foo, $bar)), $res);
+ }
+
+ public function testIgnoresInvalidTypes()
+ {
+ // set up the recursion
+ $resource = fopen(__FILE__, 'r');
+
+ // set an error handler to assert that the error is not raised anymore
+ $that = $this;
+ set_error_handler(function ($level, $message, $file, $line, $context) use ($that) {
+ if (error_reporting() & $level) {
+ restore_error_handler();
+ $that->fail("$message should not be raised");
+ }
+ });
+
+ $formatter = new NormalizerFormatter();
+ $reflMethod = new \ReflectionMethod($formatter, 'toJson');
+ $reflMethod->setAccessible(true);
+ $res = $reflMethod->invoke($formatter, array($resource), true);
+
+ restore_error_handler();
+
+ $this->assertEquals(@json_encode(array($resource)), $res);
+ }
+
+ public function testNormalizeHandleLargeArrays()
+ {
+ $formatter = new NormalizerFormatter();
+ $largeArray = range(1, 2000);
+
+ $res = $formatter->format(array(
+ 'level_name' => 'CRITICAL',
+ 'channel' => 'test',
+ 'message' => 'bar',
+ 'context' => array($largeArray),
+ 'datetime' => new \DateTime,
+ 'extra' => array(),
+ ));
+
+ $this->assertCount(1000, $res['context'][0]);
+ $this->assertEquals('Over 1000 items (2000 total), aborting normalization', $res['context'][0]['...']);
+ }
+
+ /**
+ * @expectedException RuntimeException
+ */
+ public function testThrowsOnInvalidEncoding()
+ {
+ if (version_compare(PHP_VERSION, '5.5.0', '<')) {
+ // Ignore the warning that will be emitted by PHP <5.5.0
+ \PHPUnit_Framework_Error_Warning::$enabled = false;
+ }
+ $formatter = new NormalizerFormatter();
+ $reflMethod = new \ReflectionMethod($formatter, 'toJson');
+ $reflMethod->setAccessible(true);
+
+ // send an invalid unicode sequence as a object that can't be cleaned
+ $record = new \stdClass;
+ $record->message = "\xB1\x31";
+ $res = $reflMethod->invoke($formatter, $record);
+ if (PHP_VERSION_ID < 50500 && $res === '{"message":null}') {
+ throw new \RuntimeException('PHP 5.3/5.4 throw a warning and null the value instead of returning false entirely');
+ }
+ }
+
+ public function testConvertsInvalidEncodingAsLatin9()
+ {
+ if (version_compare(PHP_VERSION, '5.5.0', '<')) {
+ // Ignore the warning that will be emitted by PHP <5.5.0
+ \PHPUnit_Framework_Error_Warning::$enabled = false;
+ }
+ $formatter = new NormalizerFormatter();
+ $reflMethod = new \ReflectionMethod($formatter, 'toJson');
+ $reflMethod->setAccessible(true);
+
+ $res = $reflMethod->invoke($formatter, array('message' => "\xA4\xA6\xA8\xB4\xB8\xBC\xBD\xBE"));
+
+ if (version_compare(PHP_VERSION, '5.5.0', '>=')) {
+ $this->assertSame('{"message":"€ŠšŽžŒœŸ"}', $res);
+ } else {
+ // PHP <5.5 does not return false for an element encoding failure,
+ // instead it emits a warning (possibly) and nulls the value.
+ $this->assertSame('{"message":null}', $res);
+ }
+ }
+
+ /**
+ * @param mixed $in Input
+ * @param mixed $expect Expected output
+ * @covers Monolog\Formatter\NormalizerFormatter::detectAndCleanUtf8
+ * @dataProvider providesDetectAndCleanUtf8
+ */
+ public function testDetectAndCleanUtf8($in, $expect)
+ {
+ $formatter = new NormalizerFormatter();
+ $formatter->detectAndCleanUtf8($in);
+ $this->assertSame($expect, $in);
+ }
+
+ public function providesDetectAndCleanUtf8()
+ {
+ $obj = new \stdClass;
+
+ return array(
+ 'null' => array(null, null),
+ 'int' => array(123, 123),
+ 'float' => array(123.45, 123.45),
+ 'bool false' => array(false, false),
+ 'bool true' => array(true, true),
+ 'ascii string' => array('abcdef', 'abcdef'),
+ 'latin9 string' => array("\xB1\x31\xA4\xA6\xA8\xB4\xB8\xBC\xBD\xBE\xFF", '±1€ŠšŽžŒœŸÿ'),
+ 'unicode string' => array('¤¦¨´¸¼½¾€ŠšŽžŒœŸ', '¤¦¨´¸¼½¾€ŠšŽžŒœŸ'),
+ 'empty array' => array(array(), array()),
+ 'array' => array(array('abcdef'), array('abcdef')),
+ 'object' => array($obj, $obj),
+ );
+ }
+
+ /**
+ * @param int $code
+ * @param string $msg
+ * @dataProvider providesHandleJsonErrorFailure
+ */
+ public function testHandleJsonErrorFailure($code, $msg)
+ {
+ $formatter = new NormalizerFormatter();
+ $reflMethod = new \ReflectionMethod($formatter, 'handleJsonError');
+ $reflMethod->setAccessible(true);
+
+ $this->setExpectedException('RuntimeException', $msg);
+ $reflMethod->invoke($formatter, $code, 'faked');
+ }
+
+ public function providesHandleJsonErrorFailure()
+ {
+ return array(
+ 'depth' => array(JSON_ERROR_DEPTH, 'Maximum stack depth exceeded'),
+ 'state' => array(JSON_ERROR_STATE_MISMATCH, 'Underflow or the modes mismatch'),
+ 'ctrl' => array(JSON_ERROR_CTRL_CHAR, 'Unexpected control character found'),
+ 'default' => array(-1, 'Unknown error'),
+ );
+ }
+
+ public function testExceptionTraceWithArgs()
+ {
+ if (defined('HHVM_VERSION')) {
+ $this->markTestSkipped('Not supported in HHVM since it detects errors differently');
+ }
+
+ // This happens i.e. in React promises or Guzzle streams where stream wrappers are registered
+ // and no file or line are included in the trace because it's treated as internal function
+ set_error_handler(function ($errno, $errstr, $errfile, $errline) {
+ throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);
+ });
+
+ try {
+ // This will contain $resource and $wrappedResource as arguments in the trace item
+ $resource = fopen('php://memory', 'rw+');
+ fwrite($resource, 'test_resource');
+ $wrappedResource = new TestFooNorm;
+ $wrappedResource->foo = $resource;
+ // Just do something stupid with a resource/wrapped resource as argument
+ array_keys($wrappedResource);
+ } catch (\Exception $e) {
+ restore_error_handler();
+ }
+
+ $formatter = new NormalizerFormatter();
+ $record = array('context' => array('exception' => $e));
+ $result = $formatter->format($record);
+
+ $this->assertRegExp(
+ '%"resource":"\[resource\] \(stream\)"%',
+ $result['context']['exception']['trace'][0]
+ );
+
+ if (version_compare(PHP_VERSION, '5.5.0', '>=')) {
+ $pattern = '%"wrappedResource":"\[object\] \(Monolog\\\\\\\\Formatter\\\\\\\\TestFooNorm: \)"%';
+ } else {
+ $pattern = '%\\\\"foo\\\\":null%';
+ }
+
+ // Tests that the wrapped resource is ignored while encoding, only works for PHP <= 5.4
+ $this->assertRegExp(
+ $pattern,
+ $result['context']['exception']['trace'][0]
+ );
+ }
+}
+
+class TestFooNorm
+{
+ public $foo = 'foo';
+}
+
+class TestBarNorm
+{
+ public function __toString()
+ {
+ return 'bar';
+ }
+}
+
+class TestStreamFoo
+{
+ public $foo;
+ public $resource;
+
+ public function __construct($resource)
+ {
+ $this->resource = $resource;
+ $this->foo = 'BAR';
+ }
+
+ public function __toString()
+ {
+ fseek($this->resource, 0);
+
+ return $this->foo . ' - ' . (string) stream_get_contents($this->resource);
+ }
+}
+
+class TestToStringError
+{
+ public function __toString()
+ {
+ throw new \RuntimeException('Could not convert to string');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php
new file mode 100644
index 00000000..b1c8fd49
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/ScalarFormatterTest.php
@@ -0,0 +1,110 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ private $formatter;
+
+ public function setUp()
+ {
+ $this->formatter = new ScalarFormatter();
+ }
+
+ public function buildTrace(\Exception $e)
+ {
+ $data = array();
+ $trace = $e->getTrace();
+ foreach ($trace as $frame) {
+ if (isset($frame['file'])) {
+ $data[] = $frame['file'].':'.$frame['line'];
+ } else {
+ $data[] = json_encode($frame);
+ }
+ }
+
+ return $data;
+ }
+
+ public function encodeJson($data)
+ {
+ if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
+ }
+
+ return json_encode($data);
+ }
+
+ public function testFormat()
+ {
+ $exception = new \Exception('foo');
+ $formatted = $this->formatter->format(array(
+ 'foo' => 'string',
+ 'bar' => 1,
+ 'baz' => false,
+ 'bam' => array(1, 2, 3),
+ 'bat' => array('foo' => 'bar'),
+ 'bap' => \DateTime::createFromFormat(\DateTime::ISO8601, '1970-01-01T00:00:00+0000'),
+ 'ban' => $exception,
+ ));
+
+ $this->assertSame(array(
+ 'foo' => 'string',
+ 'bar' => 1,
+ 'baz' => false,
+ 'bam' => $this->encodeJson(array(1, 2, 3)),
+ 'bat' => $this->encodeJson(array('foo' => 'bar')),
+ 'bap' => '1970-01-01 00:00:00',
+ 'ban' => $this->encodeJson(array(
+ 'class' => get_class($exception),
+ 'message' => $exception->getMessage(),
+ 'code' => $exception->getCode(),
+ 'file' => $exception->getFile() . ':' . $exception->getLine(),
+ 'trace' => $this->buildTrace($exception),
+ )),
+ ), $formatted);
+ }
+
+ public function testFormatWithErrorContext()
+ {
+ $context = array('file' => 'foo', 'line' => 1);
+ $formatted = $this->formatter->format(array(
+ 'context' => $context,
+ ));
+
+ $this->assertSame(array(
+ 'context' => $this->encodeJson($context),
+ ), $formatted);
+ }
+
+ public function testFormatWithExceptionContext()
+ {
+ $exception = new \Exception('foo');
+ $formatted = $this->formatter->format(array(
+ 'context' => array(
+ 'exception' => $exception,
+ ),
+ ));
+
+ $this->assertSame(array(
+ 'context' => $this->encodeJson(array(
+ 'exception' => array(
+ 'class' => get_class($exception),
+ 'message' => $exception->getMessage(),
+ 'code' => $exception->getCode(),
+ 'file' => $exception->getFile() . ':' . $exception->getLine(),
+ 'trace' => $this->buildTrace($exception),
+ ),
+ )),
+ ), $formatted);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php
new file mode 100644
index 00000000..52f15a36
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php
@@ -0,0 +1,142 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Formatter;
+
+use Monolog\Logger;
+
+class WildfireFormatterTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @covers Monolog\Formatter\WildfireFormatter::format
+ */
+ public function testDefaultFormat()
+ {
+ $wildfire = new WildfireFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('ip' => '127.0.0.1'),
+ 'message' => 'log',
+ );
+
+ $message = $wildfire->format($record);
+
+ $this->assertEquals(
+ '125|[{"Type":"ERROR","File":"","Line":"","Label":"meh"},'
+ .'{"message":"log","context":{"from":"logger"},"extra":{"ip":"127.0.0.1"}}]|',
+ $message
+ );
+ }
+
+ /**
+ * @covers Monolog\Formatter\WildfireFormatter::format
+ */
+ public function testFormatWithFileAndLine()
+ {
+ $wildfire = new WildfireFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('from' => 'logger'),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array('ip' => '127.0.0.1', 'file' => 'test', 'line' => 14),
+ 'message' => 'log',
+ );
+
+ $message = $wildfire->format($record);
+
+ $this->assertEquals(
+ '129|[{"Type":"ERROR","File":"test","Line":14,"Label":"meh"},'
+ .'{"message":"log","context":{"from":"logger"},"extra":{"ip":"127.0.0.1"}}]|',
+ $message
+ );
+ }
+
+ /**
+ * @covers Monolog\Formatter\WildfireFormatter::format
+ */
+ public function testFormatWithoutContext()
+ {
+ $wildfire = new WildfireFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $message = $wildfire->format($record);
+
+ $this->assertEquals(
+ '58|[{"Type":"ERROR","File":"","Line":"","Label":"meh"},"log"]|',
+ $message
+ );
+ }
+
+ /**
+ * @covers Monolog\Formatter\WildfireFormatter::formatBatch
+ * @expectedException BadMethodCallException
+ */
+ public function testBatchFormatThrowException()
+ {
+ $wildfire = new WildfireFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array(),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $wildfire->formatBatch(array($record));
+ }
+
+ /**
+ * @covers Monolog\Formatter\WildfireFormatter::format
+ */
+ public function testTableFormat()
+ {
+ $wildfire = new WildfireFormatter();
+ $record = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'table-channel',
+ 'context' => array(
+ WildfireFormatter::TABLE => array(
+ array('col1', 'col2', 'col3'),
+ array('val1', 'val2', 'val3'),
+ array('foo1', 'foo2', 'foo3'),
+ array('bar1', 'bar2', 'bar3'),
+ ),
+ ),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'table-message',
+ );
+
+ $message = $wildfire->format($record);
+
+ $this->assertEquals(
+ '171|[{"Type":"TABLE","File":"","Line":"","Label":"table-channel: table-message"},[["col1","col2","col3"],["val1","val2","val3"],["foo1","foo2","foo3"],["bar1","bar2","bar3"]]]|',
+ $message
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php
new file mode 100644
index 00000000..568eb9da
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractHandlerTest.php
@@ -0,0 +1,115 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+use Monolog\Processor\WebProcessor;
+
+class AbstractHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\AbstractHandler::__construct
+ * @covers Monolog\Handler\AbstractHandler::getLevel
+ * @covers Monolog\Handler\AbstractHandler::setLevel
+ * @covers Monolog\Handler\AbstractHandler::getBubble
+ * @covers Monolog\Handler\AbstractHandler::setBubble
+ * @covers Monolog\Handler\AbstractHandler::getFormatter
+ * @covers Monolog\Handler\AbstractHandler::setFormatter
+ */
+ public function testConstructAndGetSet()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler', array(Logger::WARNING, false));
+ $this->assertEquals(Logger::WARNING, $handler->getLevel());
+ $this->assertEquals(false, $handler->getBubble());
+
+ $handler->setLevel(Logger::ERROR);
+ $handler->setBubble(true);
+ $handler->setFormatter($formatter = new LineFormatter);
+ $this->assertEquals(Logger::ERROR, $handler->getLevel());
+ $this->assertEquals(true, $handler->getBubble());
+ $this->assertSame($formatter, $handler->getFormatter());
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractHandler::handleBatch
+ */
+ public function testHandleBatch()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
+ $handler->expects($this->exactly(2))
+ ->method('handle');
+ $handler->handleBatch(array($this->getRecord(), $this->getRecord()));
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractHandler::isHandling
+ */
+ public function testIsHandling()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler', array(Logger::WARNING, false));
+ $this->assertTrue($handler->isHandling($this->getRecord()));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractHandler::__construct
+ */
+ public function testHandlesPsrStyleLevels()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler', array('warning', false));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
+ $handler->setLevel('debug');
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::DEBUG)));
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractHandler::getFormatter
+ * @covers Monolog\Handler\AbstractHandler::getDefaultFormatter
+ */
+ public function testGetFormatterInitializesDefault()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
+ $this->assertInstanceOf('Monolog\Formatter\LineFormatter', $handler->getFormatter());
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractHandler::pushProcessor
+ * @covers Monolog\Handler\AbstractHandler::popProcessor
+ * @expectedException LogicException
+ */
+ public function testPushPopProcessor()
+ {
+ $logger = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
+ $processor1 = new WebProcessor;
+ $processor2 = new WebProcessor;
+
+ $logger->pushProcessor($processor1);
+ $logger->pushProcessor($processor2);
+
+ $this->assertEquals($processor2, $logger->popProcessor());
+ $this->assertEquals($processor1, $logger->popProcessor());
+ $logger->popProcessor();
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractHandler::pushProcessor
+ * @expectedException InvalidArgumentException
+ */
+ public function testPushProcessorWithNonCallable()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractHandler');
+
+ $handler->pushProcessor(new \stdClass());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php
new file mode 100644
index 00000000..24d4f63c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AbstractProcessingHandlerTest.php
@@ -0,0 +1,80 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Processor\WebProcessor;
+
+class AbstractProcessingHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\AbstractProcessingHandler::handle
+ */
+ public function testHandleLowerLevelMessage()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::WARNING, true));
+ $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractProcessingHandler::handle
+ */
+ public function testHandleBubbling()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::DEBUG, true));
+ $this->assertFalse($handler->handle($this->getRecord()));
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractProcessingHandler::handle
+ */
+ public function testHandleNotBubbling()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::DEBUG, false));
+ $this->assertTrue($handler->handle($this->getRecord()));
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractProcessingHandler::handle
+ */
+ public function testHandleIsFalseWhenNotHandled()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler', array(Logger::WARNING, false));
+ $this->assertTrue($handler->handle($this->getRecord()));
+ $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
+ }
+
+ /**
+ * @covers Monolog\Handler\AbstractProcessingHandler::processRecord
+ */
+ public function testProcessRecord()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\Handler\AbstractProcessingHandler');
+ $handler->pushProcessor(new WebProcessor(array(
+ 'REQUEST_URI' => '',
+ 'REQUEST_METHOD' => '',
+ 'REMOTE_ADDR' => '',
+ 'SERVER_NAME' => '',
+ 'UNIQUE_ID' => '',
+ )));
+ $handledRecord = null;
+ $handler->expects($this->once())
+ ->method('write')
+ ->will($this->returnCallback(function ($record) use (&$handledRecord) {
+ $handledRecord = $record;
+ }))
+ ;
+ $handler->handle($this->getRecord());
+ $this->assertEquals(6, count($handledRecord['extra']));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php
new file mode 100644
index 00000000..8e0e7237
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/AmqpHandlerTest.php
@@ -0,0 +1,136 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use PhpAmqpLib\Message\AMQPMessage;
+use PhpAmqpLib\Connection\AMQPConnection;
+
+/**
+ * @covers Monolog\Handler\RotatingFileHandler
+ */
+class AmqpHandlerTest extends TestCase
+{
+ public function testHandleAmqpExt()
+ {
+ if (!class_exists('AMQPConnection') || !class_exists('AMQPExchange')) {
+ $this->markTestSkipped("amqp-php not installed");
+ }
+
+ if (!class_exists('AMQPChannel')) {
+ $this->markTestSkipped("Please update AMQP to version >= 1.0");
+ }
+
+ $messages = array();
+
+ $exchange = $this->getMock('AMQPExchange', array('publish', 'setName'), array(), '', false);
+ $exchange->expects($this->once())
+ ->method('setName')
+ ->with('log')
+ ;
+ $exchange->expects($this->any())
+ ->method('publish')
+ ->will($this->returnCallback(function ($message, $routing_key, $flags = 0, $attributes = array()) use (&$messages) {
+ $messages[] = array($message, $routing_key, $flags, $attributes);
+ }))
+ ;
+
+ $handler = new AmqpHandler($exchange, 'log');
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $expected = array(
+ array(
+ 'message' => 'test',
+ 'context' => array(
+ 'data' => array(),
+ 'foo' => 34,
+ ),
+ 'level' => 300,
+ 'level_name' => 'WARNING',
+ 'channel' => 'test',
+ 'extra' => array(),
+ ),
+ 'warn.test',
+ 0,
+ array(
+ 'delivery_mode' => 2,
+ 'content_type' => 'application/json',
+ ),
+ );
+
+ $handler->handle($record);
+
+ $this->assertCount(1, $messages);
+ $messages[0][0] = json_decode($messages[0][0], true);
+ unset($messages[0][0]['datetime']);
+ $this->assertEquals($expected, $messages[0]);
+ }
+
+ public function testHandlePhpAmqpLib()
+ {
+ if (!class_exists('PhpAmqpLib\Connection\AMQPConnection')) {
+ $this->markTestSkipped("php-amqplib not installed");
+ }
+
+ $messages = array();
+
+ $exchange = $this->getMock('PhpAmqpLib\Channel\AMQPChannel', array('basic_publish', '__destruct'), array(), '', false);
+
+ $exchange->expects($this->any())
+ ->method('basic_publish')
+ ->will($this->returnCallback(function (AMQPMessage $msg, $exchange = "", $routing_key = "", $mandatory = false, $immediate = false, $ticket = null) use (&$messages) {
+ $messages[] = array($msg, $exchange, $routing_key, $mandatory, $immediate, $ticket);
+ }))
+ ;
+
+ $handler = new AmqpHandler($exchange, 'log');
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $expected = array(
+ array(
+ 'message' => 'test',
+ 'context' => array(
+ 'data' => array(),
+ 'foo' => 34,
+ ),
+ 'level' => 300,
+ 'level_name' => 'WARNING',
+ 'channel' => 'test',
+ 'extra' => array(),
+ ),
+ 'log',
+ 'warn.test',
+ false,
+ false,
+ null,
+ array(
+ 'delivery_mode' => 2,
+ 'content_type' => 'application/json',
+ ),
+ );
+
+ $handler->handle($record);
+
+ $this->assertCount(1, $messages);
+
+ /* @var $msg AMQPMessage */
+ $msg = $messages[0][0];
+ $messages[0][0] = json_decode($msg->body, true);
+ $messages[0][] = $msg->get_properties();
+ unset($messages[0][0]['datetime']);
+
+ $this->assertEquals($expected, $messages[0]);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php
new file mode 100644
index 00000000..ffb1d746
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BrowserConsoleHandlerTest.php
@@ -0,0 +1,130 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @covers Monolog\Handler\BrowserConsoleHandlerTest
+ */
+class BrowserConsoleHandlerTest extends TestCase
+{
+ protected function setUp()
+ {
+ BrowserConsoleHandler::reset();
+ }
+
+ protected function generateScript()
+ {
+ $reflMethod = new \ReflectionMethod('Monolog\Handler\BrowserConsoleHandler', 'generateScript');
+ $reflMethod->setAccessible(true);
+
+ return $reflMethod->invoke(null);
+ }
+
+ public function testStyling()
+ {
+ $handler = new BrowserConsoleHandler();
+ $handler->setFormatter($this->getIdentityFormatter());
+
+ $handler->handle($this->getRecord(Logger::DEBUG, 'foo[[bar]]{color: red}'));
+
+ $expected = <<<EOF
+(function (c) {if (c && c.groupCollapsed) {
+c.log("%cfoo%cbar%c", "font-weight: normal", "color: red", "font-weight: normal");
+}})(console);
+EOF;
+
+ $this->assertEquals($expected, $this->generateScript());
+ }
+
+ public function testEscaping()
+ {
+ $handler = new BrowserConsoleHandler();
+ $handler->setFormatter($this->getIdentityFormatter());
+
+ $handler->handle($this->getRecord(Logger::DEBUG, "[foo] [[\"bar\n[baz]\"]]{color: red}"));
+
+ $expected = <<<EOF
+(function (c) {if (c && c.groupCollapsed) {
+c.log("%c[foo] %c\"bar\\n[baz]\"%c", "font-weight: normal", "color: red", "font-weight: normal");
+}})(console);
+EOF;
+
+ $this->assertEquals($expected, $this->generateScript());
+ }
+
+ public function testAutolabel()
+ {
+ $handler = new BrowserConsoleHandler();
+ $handler->setFormatter($this->getIdentityFormatter());
+
+ $handler->handle($this->getRecord(Logger::DEBUG, '[[foo]]{macro: autolabel}'));
+ $handler->handle($this->getRecord(Logger::DEBUG, '[[bar]]{macro: autolabel}'));
+ $handler->handle($this->getRecord(Logger::DEBUG, '[[foo]]{macro: autolabel}'));
+
+ $expected = <<<EOF
+(function (c) {if (c && c.groupCollapsed) {
+c.log("%c%cfoo%c", "font-weight: normal", "background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
+c.log("%c%cbar%c", "font-weight: normal", "background-color: green; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
+c.log("%c%cfoo%c", "font-weight: normal", "background-color: blue; color: white; border-radius: 3px; padding: 0 2px 0 2px", "font-weight: normal");
+}})(console);
+EOF;
+
+ $this->assertEquals($expected, $this->generateScript());
+ }
+
+ public function testContext()
+ {
+ $handler = new BrowserConsoleHandler();
+ $handler->setFormatter($this->getIdentityFormatter());
+
+ $handler->handle($this->getRecord(Logger::DEBUG, 'test', array('foo' => 'bar')));
+
+ $expected = <<<EOF
+(function (c) {if (c && c.groupCollapsed) {
+c.groupCollapsed("%ctest", "font-weight: normal");
+c.log("%c%s", "font-weight: bold", "Context");
+c.log("%s: %o", "foo", "bar");
+c.groupEnd();
+}})(console);
+EOF;
+
+ $this->assertEquals($expected, $this->generateScript());
+ }
+
+ public function testConcurrentHandlers()
+ {
+ $handler1 = new BrowserConsoleHandler();
+ $handler1->setFormatter($this->getIdentityFormatter());
+
+ $handler2 = new BrowserConsoleHandler();
+ $handler2->setFormatter($this->getIdentityFormatter());
+
+ $handler1->handle($this->getRecord(Logger::DEBUG, 'test1'));
+ $handler2->handle($this->getRecord(Logger::DEBUG, 'test2'));
+ $handler1->handle($this->getRecord(Logger::DEBUG, 'test3'));
+ $handler2->handle($this->getRecord(Logger::DEBUG, 'test4'));
+
+ $expected = <<<EOF
+(function (c) {if (c && c.groupCollapsed) {
+c.log("%ctest1", "font-weight: normal");
+c.log("%ctest2", "font-weight: normal");
+c.log("%ctest3", "font-weight: normal");
+c.log("%ctest4", "font-weight: normal");
+}})(console);
+EOF;
+
+ $this->assertEquals($expected, $this->generateScript());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php
new file mode 100644
index 00000000..da8b3c39
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/BufferHandlerTest.php
@@ -0,0 +1,158 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class BufferHandlerTest extends TestCase
+{
+ private $shutdownCheckHandler;
+
+ /**
+ * @covers Monolog\Handler\BufferHandler::__construct
+ * @covers Monolog\Handler\BufferHandler::handle
+ * @covers Monolog\Handler\BufferHandler::close
+ */
+ public function testHandleBuffers()
+ {
+ $test = new TestHandler();
+ $handler = new BufferHandler($test);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertFalse($test->hasDebugRecords());
+ $this->assertFalse($test->hasInfoRecords());
+ $handler->close();
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 2);
+ }
+
+ /**
+ * @covers Monolog\Handler\BufferHandler::close
+ * @covers Monolog\Handler\BufferHandler::flush
+ */
+ public function testPropagatesRecordsAtEndOfRequest()
+ {
+ $test = new TestHandler();
+ $handler = new BufferHandler($test);
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $this->shutdownCheckHandler = $test;
+ register_shutdown_function(array($this, 'checkPropagation'));
+ }
+
+ public function checkPropagation()
+ {
+ if (!$this->shutdownCheckHandler->hasWarningRecords() || !$this->shutdownCheckHandler->hasDebugRecords()) {
+ echo '!!! BufferHandlerTest::testPropagatesRecordsAtEndOfRequest failed to verify that the messages have been propagated' . PHP_EOL;
+ exit(1);
+ }
+ }
+
+ /**
+ * @covers Monolog\Handler\BufferHandler::handle
+ */
+ public function testHandleBufferLimit()
+ {
+ $test = new TestHandler();
+ $handler = new BufferHandler($test, 2);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->close();
+ $this->assertTrue($test->hasWarningRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertFalse($test->hasDebugRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\BufferHandler::handle
+ */
+ public function testHandleBufferLimitWithFlushOnOverflow()
+ {
+ $test = new TestHandler();
+ $handler = new BufferHandler($test, 3, Logger::DEBUG, true, true);
+
+ // send two records
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $this->assertFalse($test->hasDebugRecords());
+ $this->assertCount(0, $test->getRecords());
+
+ // overflow
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertCount(3, $test->getRecords());
+
+ // should buffer again
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertCount(3, $test->getRecords());
+
+ $handler->close();
+ $this->assertCount(5, $test->getRecords());
+ $this->assertTrue($test->hasWarningRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\BufferHandler::handle
+ */
+ public function testHandleLevel()
+ {
+ $test = new TestHandler();
+ $handler = new BufferHandler($test, 0, Logger::INFO);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->close();
+ $this->assertTrue($test->hasWarningRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertFalse($test->hasDebugRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\BufferHandler::flush
+ */
+ public function testFlush()
+ {
+ $test = new TestHandler();
+ $handler = new BufferHandler($test, 0);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->flush();
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertFalse($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\BufferHandler::handle
+ */
+ public function testHandleUsesProcessors()
+ {
+ $test = new TestHandler();
+ $handler = new BufferHandler($test);
+ $handler->pushProcessor(function ($record) {
+ $record['extra']['foo'] = true;
+
+ return $record;
+ });
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->flush();
+ $this->assertTrue($test->hasWarningRecords());
+ $records = $test->getRecords();
+ $this->assertTrue($records[0]['extra']['foo']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php
new file mode 100644
index 00000000..0449f8b1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ChromePHPHandlerTest.php
@@ -0,0 +1,156 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @covers Monolog\Handler\ChromePHPHandler
+ */
+class ChromePHPHandlerTest extends TestCase
+{
+ protected function setUp()
+ {
+ TestChromePHPHandler::reset();
+ $_SERVER['HTTP_USER_AGENT'] = 'Monolog Test; Chrome/1.0';
+ }
+
+ /**
+ * @dataProvider agentsProvider
+ */
+ public function testHeaders($agent)
+ {
+ $_SERVER['HTTP_USER_AGENT'] = $agent;
+
+ $handler = new TestChromePHPHandler();
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::WARNING));
+
+ $expected = array(
+ 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
+ 'version' => ChromePHPHandler::VERSION,
+ 'columns' => array('label', 'log', 'backtrace', 'type'),
+ 'rows' => array(
+ 'test',
+ 'test',
+ ),
+ 'request_uri' => '',
+ )))),
+ );
+
+ $this->assertEquals($expected, $handler->getHeaders());
+ }
+
+ public static function agentsProvider()
+ {
+ return array(
+ array('Monolog Test; Chrome/1.0'),
+ array('Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0'),
+ array('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36'),
+ array('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome Safari/537.36'),
+ );
+ }
+
+ public function testHeadersOverflow()
+ {
+ $handler = new TestChromePHPHandler();
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 150 * 1024)));
+
+ // overflow chrome headers limit
+ $handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 100 * 1024)));
+
+ $expected = array(
+ 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
+ 'version' => ChromePHPHandler::VERSION,
+ 'columns' => array('label', 'log', 'backtrace', 'type'),
+ 'rows' => array(
+ array(
+ 'test',
+ 'test',
+ 'unknown',
+ 'log',
+ ),
+ array(
+ 'test',
+ str_repeat('a', 150 * 1024),
+ 'unknown',
+ 'warn',
+ ),
+ array(
+ 'monolog',
+ 'Incomplete logs, chrome header size limit reached',
+ 'unknown',
+ 'warn',
+ ),
+ ),
+ 'request_uri' => '',
+ )))),
+ );
+
+ $this->assertEquals($expected, $handler->getHeaders());
+ }
+
+ public function testConcurrentHandlers()
+ {
+ $handler = new TestChromePHPHandler();
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::WARNING));
+
+ $handler2 = new TestChromePHPHandler();
+ $handler2->setFormatter($this->getIdentityFormatter());
+ $handler2->handle($this->getRecord(Logger::DEBUG));
+ $handler2->handle($this->getRecord(Logger::WARNING));
+
+ $expected = array(
+ 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
+ 'version' => ChromePHPHandler::VERSION,
+ 'columns' => array('label', 'log', 'backtrace', 'type'),
+ 'rows' => array(
+ 'test',
+ 'test',
+ 'test',
+ 'test',
+ ),
+ 'request_uri' => '',
+ )))),
+ );
+
+ $this->assertEquals($expected, $handler2->getHeaders());
+ }
+}
+
+class TestChromePHPHandler extends ChromePHPHandler
+{
+ protected $headers = array();
+
+ public static function reset()
+ {
+ self::$initialized = false;
+ self::$overflowed = false;
+ self::$sendHeaders = true;
+ self::$json['rows'] = array();
+ }
+
+ protected function sendHeader($header, $content)
+ {
+ $this->headers[$header] = $content;
+ }
+
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php
new file mode 100644
index 00000000..9fc4b388
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php
@@ -0,0 +1,31 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class CouchDBHandlerTest extends TestCase
+{
+ public function testHandle()
+ {
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $handler = new CouchDBHandler();
+
+ try {
+ $handler->handle($record);
+ } catch (\RuntimeException $e) {
+ $this->markTestSkipped('Could not connect to couchdb server on http://localhost:5984');
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php
new file mode 100644
index 00000000..e2aff868
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DeduplicationHandlerTest.php
@@ -0,0 +1,165 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class DeduplicationHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\DeduplicationHandler::flush
+ */
+ public function testFlushPassthruIfAllRecordsUnderTrigger()
+ {
+ $test = new TestHandler();
+ @unlink(sys_get_temp_dir().'/monolog_dedup.log');
+ $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
+
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+
+ $handler->flush();
+
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertFalse($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\DeduplicationHandler::flush
+ * @covers Monolog\Handler\DeduplicationHandler::appendRecord
+ */
+ public function testFlushPassthruIfEmptyLog()
+ {
+ $test = new TestHandler();
+ @unlink(sys_get_temp_dir().'/monolog_dedup.log');
+ $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
+
+ $handler->handle($this->getRecord(Logger::ERROR, 'Foo:bar'));
+ $handler->handle($this->getRecord(Logger::CRITICAL, "Foo\nbar"));
+
+ $handler->flush();
+
+ $this->assertTrue($test->hasErrorRecords());
+ $this->assertTrue($test->hasCriticalRecords());
+ $this->assertFalse($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\DeduplicationHandler::flush
+ * @covers Monolog\Handler\DeduplicationHandler::appendRecord
+ * @covers Monolog\Handler\DeduplicationHandler::isDuplicate
+ * @depends testFlushPassthruIfEmptyLog
+ */
+ public function testFlushSkipsIfLogExists()
+ {
+ $test = new TestHandler();
+ $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
+
+ $handler->handle($this->getRecord(Logger::ERROR, 'Foo:bar'));
+ $handler->handle($this->getRecord(Logger::CRITICAL, "Foo\nbar"));
+
+ $handler->flush();
+
+ $this->assertFalse($test->hasErrorRecords());
+ $this->assertFalse($test->hasCriticalRecords());
+ $this->assertFalse($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\DeduplicationHandler::flush
+ * @covers Monolog\Handler\DeduplicationHandler::appendRecord
+ * @covers Monolog\Handler\DeduplicationHandler::isDuplicate
+ * @depends testFlushPassthruIfEmptyLog
+ */
+ public function testFlushPassthruIfLogTooOld()
+ {
+ $test = new TestHandler();
+ $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
+
+ $record = $this->getRecord(Logger::ERROR);
+ $record['datetime']->modify('+62seconds');
+ $handler->handle($record);
+ $record = $this->getRecord(Logger::CRITICAL);
+ $record['datetime']->modify('+62seconds');
+ $handler->handle($record);
+
+ $handler->flush();
+
+ $this->assertTrue($test->hasErrorRecords());
+ $this->assertTrue($test->hasCriticalRecords());
+ $this->assertFalse($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\DeduplicationHandler::flush
+ * @covers Monolog\Handler\DeduplicationHandler::appendRecord
+ * @covers Monolog\Handler\DeduplicationHandler::isDuplicate
+ * @covers Monolog\Handler\DeduplicationHandler::collectLogs
+ */
+ public function testGcOldLogs()
+ {
+ $test = new TestHandler();
+ @unlink(sys_get_temp_dir().'/monolog_dedup.log');
+ $handler = new DeduplicationHandler($test, sys_get_temp_dir().'/monolog_dedup.log', 0);
+
+ // handle two records from yesterday, and one recent
+ $record = $this->getRecord(Logger::ERROR);
+ $record['datetime']->modify('-1day -10seconds');
+ $handler->handle($record);
+ $record2 = $this->getRecord(Logger::CRITICAL);
+ $record2['datetime']->modify('-1day -10seconds');
+ $handler->handle($record2);
+ $record3 = $this->getRecord(Logger::CRITICAL);
+ $record3['datetime']->modify('-30seconds');
+ $handler->handle($record3);
+
+ // log is written as none of them are duplicate
+ $handler->flush();
+ $this->assertSame(
+ $record['datetime']->getTimestamp() . ":ERROR:test\n" .
+ $record2['datetime']->getTimestamp() . ":CRITICAL:test\n" .
+ $record3['datetime']->getTimestamp() . ":CRITICAL:test\n",
+ file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
+ );
+ $this->assertTrue($test->hasErrorRecords());
+ $this->assertTrue($test->hasCriticalRecords());
+ $this->assertFalse($test->hasWarningRecords());
+
+ // clear test handler
+ $test->clear();
+ $this->assertFalse($test->hasErrorRecords());
+ $this->assertFalse($test->hasCriticalRecords());
+
+ // log new records, duplicate log gets GC'd at the end of this flush call
+ $handler->handle($record = $this->getRecord(Logger::ERROR));
+ $handler->handle($record2 = $this->getRecord(Logger::CRITICAL));
+ $handler->flush();
+
+ // log should now contain the new errors and the previous one that was recent enough
+ $this->assertSame(
+ $record3['datetime']->getTimestamp() . ":CRITICAL:test\n" .
+ $record['datetime']->getTimestamp() . ":ERROR:test\n" .
+ $record2['datetime']->getTimestamp() . ":CRITICAL:test\n",
+ file_get_contents(sys_get_temp_dir() . '/monolog_dedup.log')
+ );
+ $this->assertTrue($test->hasErrorRecords());
+ $this->assertTrue($test->hasCriticalRecords());
+ $this->assertFalse($test->hasWarningRecords());
+ }
+
+ public static function tearDownAfterClass()
+ {
+ @unlink(sys_get_temp_dir().'/monolog_dedup.log');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php
new file mode 100644
index 00000000..d67da90a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php
@@ -0,0 +1,52 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class DoctrineCouchDBHandlerTest extends TestCase
+{
+ protected function setup()
+ {
+ if (!class_exists('Doctrine\CouchDB\CouchDBClient')) {
+ $this->markTestSkipped('The "doctrine/couchdb" package is not installed');
+ }
+ }
+
+ public function testHandle()
+ {
+ $client = $this->getMockBuilder('Doctrine\\CouchDB\\CouchDBClient')
+ ->setMethods(array('postDocument'))
+ ->disableOriginalConstructor()
+ ->getMock();
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $expected = array(
+ 'message' => 'test',
+ 'context' => array('data' => '[object] (stdClass: {})', 'foo' => 34),
+ 'level' => Logger::WARNING,
+ 'level_name' => 'WARNING',
+ 'channel' => 'test',
+ 'datetime' => $record['datetime']->format('Y-m-d H:i:s'),
+ 'extra' => array(),
+ );
+
+ $client->expects($this->once())
+ ->method('postDocument')
+ ->with($expected);
+
+ $handler = new DoctrineCouchDBHandler($client);
+ $handler->handle($record);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php
new file mode 100644
index 00000000..2e6c348d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/DynamoDbHandlerTest.php
@@ -0,0 +1,82 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+
+class DynamoDbHandlerTest extends TestCase
+{
+ private $client;
+
+ public function setUp()
+ {
+ if (!class_exists('Aws\DynamoDb\DynamoDbClient')) {
+ $this->markTestSkipped('aws/aws-sdk-php not installed');
+ }
+
+ $this->client = $this->getMockBuilder('Aws\DynamoDb\DynamoDbClient')
+ ->setMethods(array('formatAttributes', '__call'))
+ ->disableOriginalConstructor()->getMock();
+ }
+
+ public function testConstruct()
+ {
+ $this->assertInstanceOf('Monolog\Handler\DynamoDbHandler', new DynamoDbHandler($this->client, 'foo'));
+ }
+
+ public function testInterface()
+ {
+ $this->assertInstanceOf('Monolog\Handler\HandlerInterface', new DynamoDbHandler($this->client, 'foo'));
+ }
+
+ public function testGetFormatter()
+ {
+ $handler = new DynamoDbHandler($this->client, 'foo');
+ $this->assertInstanceOf('Monolog\Formatter\ScalarFormatter', $handler->getFormatter());
+ }
+
+ public function testHandle()
+ {
+ $record = $this->getRecord();
+ $formatter = $this->getMock('Monolog\Formatter\FormatterInterface');
+ $formatted = array('foo' => 1, 'bar' => 2);
+ $handler = new DynamoDbHandler($this->client, 'foo');
+ $handler->setFormatter($formatter);
+
+ $isV3 = defined('Aws\Sdk::VERSION') && version_compare(\Aws\Sdk::VERSION, '3.0', '>=');
+ if ($isV3) {
+ $expFormatted = array('foo' => array('N' => 1), 'bar' => array('N' => 2));
+ } else {
+ $expFormatted = $formatted;
+ }
+
+ $formatter
+ ->expects($this->once())
+ ->method('format')
+ ->with($record)
+ ->will($this->returnValue($formatted));
+ $this->client
+ ->expects($isV3 ? $this->never() : $this->once())
+ ->method('formatAttributes')
+ ->with($this->isType('array'))
+ ->will($this->returnValue($formatted));
+ $this->client
+ ->expects($this->once())
+ ->method('__call')
+ ->with('putItem', array(array(
+ 'TableName' => 'foo',
+ 'Item' => $expFormatted,
+ )));
+
+ $handler->handle($record);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php
new file mode 100644
index 00000000..1687074b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ElasticSearchHandlerTest.php
@@ -0,0 +1,239 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\ElasticaFormatter;
+use Monolog\Formatter\NormalizerFormatter;
+use Monolog\TestCase;
+use Monolog\Logger;
+use Elastica\Client;
+use Elastica\Request;
+use Elastica\Response;
+
+class ElasticSearchHandlerTest extends TestCase
+{
+ /**
+ * @var Client mock
+ */
+ protected $client;
+
+ /**
+ * @var array Default handler options
+ */
+ protected $options = array(
+ 'index' => 'my_index',
+ 'type' => 'doc_type',
+ );
+
+ public function setUp()
+ {
+ // Elastica lib required
+ if (!class_exists("Elastica\Client")) {
+ $this->markTestSkipped("ruflin/elastica not installed");
+ }
+
+ // base mock Elastica Client object
+ $this->client = $this->getMockBuilder('Elastica\Client')
+ ->setMethods(array('addDocuments'))
+ ->disableOriginalConstructor()
+ ->getMock();
+ }
+
+ /**
+ * @covers Monolog\Handler\ElasticSearchHandler::write
+ * @covers Monolog\Handler\ElasticSearchHandler::handleBatch
+ * @covers Monolog\Handler\ElasticSearchHandler::bulkSend
+ * @covers Monolog\Handler\ElasticSearchHandler::getDefaultFormatter
+ */
+ public function testHandle()
+ {
+ // log message
+ $msg = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('foo' => 7, 'bar', 'class' => new \stdClass),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ // format expected result
+ $formatter = new ElasticaFormatter($this->options['index'], $this->options['type']);
+ $expected = array($formatter->format($msg));
+
+ // setup ES client mock
+ $this->client->expects($this->any())
+ ->method('addDocuments')
+ ->with($expected);
+
+ // perform tests
+ $handler = new ElasticSearchHandler($this->client, $this->options);
+ $handler->handle($msg);
+ $handler->handleBatch(array($msg));
+ }
+
+ /**
+ * @covers Monolog\Handler\ElasticSearchHandler::setFormatter
+ */
+ public function testSetFormatter()
+ {
+ $handler = new ElasticSearchHandler($this->client);
+ $formatter = new ElasticaFormatter('index_new', 'type_new');
+ $handler->setFormatter($formatter);
+ $this->assertInstanceOf('Monolog\Formatter\ElasticaFormatter', $handler->getFormatter());
+ $this->assertEquals('index_new', $handler->getFormatter()->getIndex());
+ $this->assertEquals('type_new', $handler->getFormatter()->getType());
+ }
+
+ /**
+ * @covers Monolog\Handler\ElasticSearchHandler::setFormatter
+ * @expectedException InvalidArgumentException
+ * @expectedExceptionMessage ElasticSearchHandler is only compatible with ElasticaFormatter
+ */
+ public function testSetFormatterInvalid()
+ {
+ $handler = new ElasticSearchHandler($this->client);
+ $formatter = new NormalizerFormatter();
+ $handler->setFormatter($formatter);
+ }
+
+ /**
+ * @covers Monolog\Handler\ElasticSearchHandler::__construct
+ * @covers Monolog\Handler\ElasticSearchHandler::getOptions
+ */
+ public function testOptions()
+ {
+ $expected = array(
+ 'index' => $this->options['index'],
+ 'type' => $this->options['type'],
+ 'ignore_error' => false,
+ );
+ $handler = new ElasticSearchHandler($this->client, $this->options);
+ $this->assertEquals($expected, $handler->getOptions());
+ }
+
+ /**
+ * @covers Monolog\Handler\ElasticSearchHandler::bulkSend
+ * @dataProvider providerTestConnectionErrors
+ */
+ public function testConnectionErrors($ignore, $expectedError)
+ {
+ $clientOpts = array('host' => '127.0.0.1', 'port' => 1);
+ $client = new Client($clientOpts);
+ $handlerOpts = array('ignore_error' => $ignore);
+ $handler = new ElasticSearchHandler($client, $handlerOpts);
+
+ if ($expectedError) {
+ $this->setExpectedException($expectedError[0], $expectedError[1]);
+ $handler->handle($this->getRecord());
+ } else {
+ $this->assertFalse($handler->handle($this->getRecord()));
+ }
+ }
+
+ /**
+ * @return array
+ */
+ public function providerTestConnectionErrors()
+ {
+ return array(
+ array(false, array('RuntimeException', 'Error sending messages to Elasticsearch')),
+ array(true, false),
+ );
+ }
+
+ /**
+ * Integration test using localhost Elastic Search server
+ *
+ * @covers Monolog\Handler\ElasticSearchHandler::__construct
+ * @covers Monolog\Handler\ElasticSearchHandler::handleBatch
+ * @covers Monolog\Handler\ElasticSearchHandler::bulkSend
+ * @covers Monolog\Handler\ElasticSearchHandler::getDefaultFormatter
+ */
+ public function testHandleIntegration()
+ {
+ $msg = array(
+ 'level' => Logger::ERROR,
+ 'level_name' => 'ERROR',
+ 'channel' => 'meh',
+ 'context' => array('foo' => 7, 'bar', 'class' => new \stdClass),
+ 'datetime' => new \DateTime("@0"),
+ 'extra' => array(),
+ 'message' => 'log',
+ );
+
+ $expected = $msg;
+ $expected['datetime'] = $msg['datetime']->format(\DateTime::ISO8601);
+ $expected['context'] = array(
+ 'class' => '[object] (stdClass: {})',
+ 'foo' => 7,
+ 0 => 'bar',
+ );
+
+ $client = new Client();
+ $handler = new ElasticSearchHandler($client, $this->options);
+ try {
+ $handler->handleBatch(array($msg));
+ } catch (\RuntimeException $e) {
+ $this->markTestSkipped("Cannot connect to Elastic Search server on localhost");
+ }
+
+ // check document id from ES server response
+ $documentId = $this->getCreatedDocId($client->getLastResponse());
+ $this->assertNotEmpty($documentId, 'No elastic document id received');
+
+ // retrieve document source from ES and validate
+ $document = $this->getDocSourceFromElastic(
+ $client,
+ $this->options['index'],
+ $this->options['type'],
+ $documentId
+ );
+ $this->assertEquals($expected, $document);
+
+ // remove test index from ES
+ $client->request("/{$this->options['index']}", Request::DELETE);
+ }
+
+ /**
+ * Return last created document id from ES response
+ * @param Response $response Elastica Response object
+ * @return string|null
+ */
+ protected function getCreatedDocId(Response $response)
+ {
+ $data = $response->getData();
+ if (!empty($data['items'][0]['create']['_id'])) {
+ return $data['items'][0]['create']['_id'];
+ }
+ }
+
+ /**
+ * Retrieve document by id from Elasticsearch
+ * @param Client $client Elastica client
+ * @param string $index
+ * @param string $type
+ * @param string $documentId
+ * @return array
+ */
+ protected function getDocSourceFromElastic(Client $client, $index, $type, $documentId)
+ {
+ $resp = $client->request("/{$index}/{$type}/{$documentId}", Request::GET);
+ $data = $resp->getData();
+ if (!empty($data['_source'])) {
+ return $data['_source'];
+ }
+
+ return array();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php
new file mode 100644
index 00000000..99785cbb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php
@@ -0,0 +1,66 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+
+function error_log()
+{
+ $GLOBALS['error_log'][] = func_get_args();
+}
+
+class ErrorLogHandlerTest extends TestCase
+{
+ protected function setUp()
+ {
+ $GLOBALS['error_log'] = array();
+ }
+
+ /**
+ * @covers Monolog\Handler\ErrorLogHandler::__construct
+ * @expectedException InvalidArgumentException
+ * @expectedExceptionMessage The given message type "42" is not supported
+ */
+ public function testShouldNotAcceptAnInvalidTypeOnContructor()
+ {
+ new ErrorLogHandler(42);
+ }
+
+ /**
+ * @covers Monolog\Handler\ErrorLogHandler::write
+ */
+ public function testShouldLogMessagesUsingErrorLogFuncion()
+ {
+ $type = ErrorLogHandler::OPERATING_SYSTEM;
+ $handler = new ErrorLogHandler($type);
+ $handler->setFormatter(new LineFormatter('%channel%.%level_name%: %message% %context% %extra%', null, true));
+ $handler->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
+
+ $this->assertSame("test.ERROR: Foo\nBar\r\n\r\nBaz [] []", $GLOBALS['error_log'][0][0]);
+ $this->assertSame($GLOBALS['error_log'][0][1], $type);
+
+ $handler = new ErrorLogHandler($type, Logger::DEBUG, true, true);
+ $handler->setFormatter(new LineFormatter(null, null, true));
+ $handler->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
+
+ $this->assertStringMatchesFormat('[%s] test.ERROR: Foo', $GLOBALS['error_log'][1][0]);
+ $this->assertSame($GLOBALS['error_log'][1][1], $type);
+
+ $this->assertStringMatchesFormat('Bar', $GLOBALS['error_log'][2][0]);
+ $this->assertSame($GLOBALS['error_log'][2][1], $type);
+
+ $this->assertStringMatchesFormat('Baz [] []', $GLOBALS['error_log'][3][0]);
+ $this->assertSame($GLOBALS['error_log'][3][1], $type);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php
new file mode 100644
index 00000000..31b7686a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FilterHandlerTest.php
@@ -0,0 +1,170 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+
+class FilterHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\FilterHandler::isHandling
+ */
+ public function testIsHandling()
+ {
+ $test = new TestHandler();
+ $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE);
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::INFO)));
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::NOTICE)));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::WARNING)));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::ERROR)));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::CRITICAL)));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::ALERT)));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::EMERGENCY)));
+ }
+
+ /**
+ * @covers Monolog\Handler\FilterHandler::handle
+ * @covers Monolog\Handler\FilterHandler::setAcceptedLevels
+ * @covers Monolog\Handler\FilterHandler::isHandling
+ */
+ public function testHandleProcessOnlyNeededLevels()
+ {
+ $test = new TestHandler();
+ $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE);
+
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $this->assertFalse($test->hasDebugRecords());
+
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertTrue($test->hasInfoRecords());
+ $handler->handle($this->getRecord(Logger::NOTICE));
+ $this->assertTrue($test->hasNoticeRecords());
+
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertFalse($test->hasWarningRecords());
+ $handler->handle($this->getRecord(Logger::ERROR));
+ $this->assertFalse($test->hasErrorRecords());
+ $handler->handle($this->getRecord(Logger::CRITICAL));
+ $this->assertFalse($test->hasCriticalRecords());
+ $handler->handle($this->getRecord(Logger::ALERT));
+ $this->assertFalse($test->hasAlertRecords());
+ $handler->handle($this->getRecord(Logger::EMERGENCY));
+ $this->assertFalse($test->hasEmergencyRecords());
+
+ $test = new TestHandler();
+ $handler = new FilterHandler($test, array(Logger::INFO, Logger::ERROR));
+
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $this->assertFalse($test->hasDebugRecords());
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertTrue($test->hasInfoRecords());
+ $handler->handle($this->getRecord(Logger::NOTICE));
+ $this->assertFalse($test->hasNoticeRecords());
+ $handler->handle($this->getRecord(Logger::ERROR));
+ $this->assertTrue($test->hasErrorRecords());
+ $handler->handle($this->getRecord(Logger::CRITICAL));
+ $this->assertFalse($test->hasCriticalRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FilterHandler::setAcceptedLevels
+ * @covers Monolog\Handler\FilterHandler::getAcceptedLevels
+ */
+ public function testAcceptedLevelApi()
+ {
+ $test = new TestHandler();
+ $handler = new FilterHandler($test);
+
+ $levels = array(Logger::INFO, Logger::ERROR);
+ $handler->setAcceptedLevels($levels);
+ $this->assertSame($levels, $handler->getAcceptedLevels());
+
+ $handler->setAcceptedLevels(array('info', 'error'));
+ $this->assertSame($levels, $handler->getAcceptedLevels());
+
+ $levels = array(Logger::CRITICAL, Logger::ALERT, Logger::EMERGENCY);
+ $handler->setAcceptedLevels(Logger::CRITICAL, Logger::EMERGENCY);
+ $this->assertSame($levels, $handler->getAcceptedLevels());
+
+ $handler->setAcceptedLevels('critical', 'emergency');
+ $this->assertSame($levels, $handler->getAcceptedLevels());
+ }
+
+ /**
+ * @covers Monolog\Handler\FilterHandler::handle
+ */
+ public function testHandleUsesProcessors()
+ {
+ $test = new TestHandler();
+ $handler = new FilterHandler($test, Logger::DEBUG, Logger::EMERGENCY);
+ $handler->pushProcessor(
+ function ($record) {
+ $record['extra']['foo'] = true;
+
+ return $record;
+ }
+ );
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasWarningRecords());
+ $records = $test->getRecords();
+ $this->assertTrue($records[0]['extra']['foo']);
+ }
+
+ /**
+ * @covers Monolog\Handler\FilterHandler::handle
+ */
+ public function testHandleRespectsBubble()
+ {
+ $test = new TestHandler();
+
+ $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE, false);
+ $this->assertTrue($handler->handle($this->getRecord(Logger::INFO)));
+ $this->assertFalse($handler->handle($this->getRecord(Logger::WARNING)));
+
+ $handler = new FilterHandler($test, Logger::INFO, Logger::NOTICE, true);
+ $this->assertFalse($handler->handle($this->getRecord(Logger::INFO)));
+ $this->assertFalse($handler->handle($this->getRecord(Logger::WARNING)));
+ }
+
+ /**
+ * @covers Monolog\Handler\FilterHandler::handle
+ */
+ public function testHandleWithCallback()
+ {
+ $test = new TestHandler();
+ $handler = new FilterHandler(
+ function ($record, $handler) use ($test) {
+ return $test;
+ }, Logger::INFO, Logger::NOTICE, false
+ );
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertFalse($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FilterHandler::handle
+ * @expectedException \RuntimeException
+ */
+ public function testHandleWithBadCallbackThrowsException()
+ {
+ $handler = new FilterHandler(
+ function ($record, $handler) {
+ return 'foo';
+ }
+ );
+ $handler->handle($this->getRecord(Logger::WARNING));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php
new file mode 100644
index 00000000..b92bf437
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FingersCrossedHandlerTest.php
@@ -0,0 +1,279 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
+use Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy;
+use Psr\Log\LogLevel;
+
+class FingersCrossedHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::__construct
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ */
+ public function testHandleBuffers()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertFalse($test->hasDebugRecords());
+ $this->assertFalse($test->hasInfoRecords());
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->close();
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 3);
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ */
+ public function testHandleStopsBufferingAfterTrigger()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test);
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->close();
+ $this->assertTrue($test->hasWarningRecords());
+ $this->assertTrue($test->hasDebugRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ * @covers Monolog\Handler\FingersCrossedHandler::reset
+ */
+ public function testHandleRestartBufferingAfterReset()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test);
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->reset();
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->close();
+ $this->assertTrue($test->hasWarningRecords());
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertFalse($test->hasInfoRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ */
+ public function testHandleRestartBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, Logger::WARNING, 0, false, false);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->close();
+ $this->assertTrue($test->hasWarningRecords());
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertFalse($test->hasInfoRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ */
+ public function testHandleBufferLimit()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, Logger::WARNING, 2);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasWarningRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertFalse($test->hasDebugRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ */
+ public function testHandleWithCallback()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler(function ($record, $handler) use ($test) {
+ return $test;
+ });
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertFalse($test->hasDebugRecords());
+ $this->assertFalse($test->hasInfoRecords());
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 3);
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ * @expectedException RuntimeException
+ */
+ public function testHandleWithBadCallbackThrowsException()
+ {
+ $handler = new FingersCrossedHandler(function ($record, $handler) {
+ return 'foo';
+ });
+ $handler->handle($this->getRecord(Logger::WARNING));
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::isHandling
+ */
+ public function testIsHandlingAlways()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, Logger::ERROR);
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::DEBUG)));
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::__construct
+ * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::__construct
+ * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::isHandlerActivated
+ */
+ public function testErrorLevelActivationStrategy()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy(Logger::WARNING));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $this->assertFalse($test->hasDebugRecords());
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::__construct
+ * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::__construct
+ * @covers Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy::isHandlerActivated
+ */
+ public function testErrorLevelActivationStrategyWithPsrLevel()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy('warning'));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $this->assertFalse($test->hasDebugRecords());
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::__construct
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ */
+ public function testOverrideActivationStrategy()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy('warning'));
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $this->assertFalse($test->hasDebugRecords());
+ $handler->activate();
+ $this->assertTrue($test->hasDebugRecords());
+ $handler->handle($this->getRecord(Logger::INFO));
+ $this->assertTrue($test->hasInfoRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::__construct
+ * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::isHandlerActivated
+ */
+ public function testChannelLevelActivationStrategy()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, new ChannelLevelActivationStrategy(Logger::ERROR, array('othertest' => Logger::DEBUG)));
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertFalse($test->hasWarningRecords());
+ $record = $this->getRecord(Logger::DEBUG);
+ $record['channel'] = 'othertest';
+ $handler->handle($record);
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::__construct
+ * @covers Monolog\Handler\FingersCrossed\ChannelLevelActivationStrategy::isHandlerActivated
+ */
+ public function testChannelLevelActivationStrategyWithPsrLevels()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, new ChannelLevelActivationStrategy('error', array('othertest' => 'debug')));
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertFalse($test->hasWarningRecords());
+ $record = $this->getRecord(Logger::DEBUG);
+ $record['channel'] = 'othertest';
+ $handler->handle($record);
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasWarningRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::handle
+ * @covers Monolog\Handler\FingersCrossedHandler::activate
+ */
+ public function testHandleUsesProcessors()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, Logger::INFO);
+ $handler->pushProcessor(function ($record) {
+ $record['extra']['foo'] = true;
+
+ return $record;
+ });
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasWarningRecords());
+ $records = $test->getRecords();
+ $this->assertTrue($records[0]['extra']['foo']);
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::close
+ */
+ public function testPassthruOnClose()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy(Logger::WARNING), 0, true, true, Logger::INFO);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->close();
+ $this->assertFalse($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\FingersCrossedHandler::close
+ */
+ public function testPsrLevelPassthruOnClose()
+ {
+ $test = new TestHandler();
+ $handler = new FingersCrossedHandler($test, new ErrorLevelActivationStrategy(Logger::WARNING), 0, true, true, LogLevel::INFO);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ $handler->close();
+ $this->assertFalse($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php
new file mode 100644
index 00000000..0eb10a63
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FirePHPHandlerTest.php
@@ -0,0 +1,96 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @covers Monolog\Handler\FirePHPHandler
+ */
+class FirePHPHandlerTest extends TestCase
+{
+ public function setUp()
+ {
+ TestFirePHPHandler::reset();
+ $_SERVER['HTTP_USER_AGENT'] = 'Monolog Test; FirePHP/1.0';
+ }
+
+ public function testHeaders()
+ {
+ $handler = new TestFirePHPHandler;
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::WARNING));
+
+ $expected = array(
+ 'X-Wf-Protocol-1' => 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2',
+ 'X-Wf-1-Structure-1' => 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1',
+ 'X-Wf-1-Plugin-1' => 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3',
+ 'X-Wf-1-1-1-1' => 'test',
+ 'X-Wf-1-1-1-2' => 'test',
+ );
+
+ $this->assertEquals($expected, $handler->getHeaders());
+ }
+
+ public function testConcurrentHandlers()
+ {
+ $handler = new TestFirePHPHandler;
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::WARNING));
+
+ $handler2 = new TestFirePHPHandler;
+ $handler2->setFormatter($this->getIdentityFormatter());
+ $handler2->handle($this->getRecord(Logger::DEBUG));
+ $handler2->handle($this->getRecord(Logger::WARNING));
+
+ $expected = array(
+ 'X-Wf-Protocol-1' => 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2',
+ 'X-Wf-1-Structure-1' => 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1',
+ 'X-Wf-1-Plugin-1' => 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3',
+ 'X-Wf-1-1-1-1' => 'test',
+ 'X-Wf-1-1-1-2' => 'test',
+ );
+
+ $expected2 = array(
+ 'X-Wf-1-1-1-3' => 'test',
+ 'X-Wf-1-1-1-4' => 'test',
+ );
+
+ $this->assertEquals($expected, $handler->getHeaders());
+ $this->assertEquals($expected2, $handler2->getHeaders());
+ }
+}
+
+class TestFirePHPHandler extends FirePHPHandler
+{
+ protected $headers = array();
+
+ public static function reset()
+ {
+ self::$initialized = false;
+ self::$sendHeaders = true;
+ self::$messageIndex = 1;
+ }
+
+ protected function sendHeader($header, $content)
+ {
+ $this->headers[$header] = $content;
+ }
+
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Fixtures/.gitkeep
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php
new file mode 100644
index 00000000..91cdd312
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php
@@ -0,0 +1,85 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\LineFormatter;
+use Monolog\Logger;
+use Monolog\TestCase;
+
+/**
+ * @coversDefaultClass \Monolog\Handler\FleepHookHandler
+ */
+class FleepHookHandlerTest extends TestCase
+{
+ /**
+ * Default token to use in tests
+ */
+ const TOKEN = '123abc';
+
+ /**
+ * @var FleepHookHandler
+ */
+ private $handler;
+
+ public function setUp()
+ {
+ parent::setUp();
+
+ if (!extension_loaded('openssl')) {
+ $this->markTestSkipped('This test requires openssl extension to run');
+ }
+
+ // Create instances of the handler and logger for convenience
+ $this->handler = new FleepHookHandler(self::TOKEN);
+ }
+
+ /**
+ * @covers ::__construct
+ */
+ public function testConstructorSetsExpectedDefaults()
+ {
+ $this->assertEquals(Logger::DEBUG, $this->handler->getLevel());
+ $this->assertEquals(true, $this->handler->getBubble());
+ }
+
+ /**
+ * @covers ::getDefaultFormatter
+ */
+ public function testHandlerUsesLineFormatterWhichIgnoresEmptyArrays()
+ {
+ $record = array(
+ 'message' => 'msg',
+ 'context' => array(),
+ 'level' => Logger::DEBUG,
+ 'level_name' => Logger::getLevelName(Logger::DEBUG),
+ 'channel' => 'channel',
+ 'datetime' => new \DateTime(),
+ 'extra' => array(),
+ );
+
+ $expectedFormatter = new LineFormatter(null, null, true, true);
+ $expected = $expectedFormatter->format($record);
+
+ $handlerFormatter = $this->handler->getFormatter();
+ $actual = $handlerFormatter->format($record);
+
+ $this->assertEquals($expected, $actual, 'Empty context and extra arrays should not be rendered');
+ }
+
+ /**
+ * @covers ::__construct
+ */
+ public function testConnectionStringisConstructedCorrectly()
+ {
+ $this->assertEquals('ssl://' . FleepHookHandler::FLEEP_HOST . ':443', $this->handler->getConnectionString());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php
new file mode 100644
index 00000000..4b120d51
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/FlowdockHandlerTest.php
@@ -0,0 +1,88 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\FlowdockFormatter;
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @author Dominik Liebler <liebler.dominik@gmail.com>
+ * @see https://www.hipchat.com/docs/api
+ */
+class FlowdockHandlerTest extends TestCase
+{
+ /**
+ * @var resource
+ */
+ private $res;
+
+ /**
+ * @var FlowdockHandler
+ */
+ private $handler;
+
+ public function setUp()
+ {
+ if (!extension_loaded('openssl')) {
+ $this->markTestSkipped('This test requires openssl to run');
+ }
+ }
+
+ public function testWriteHeader()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/v1\/messages\/team_inbox\/.* HTTP\/1.1\\r\\nHost: api.flowdock.com\\r\\nContent-Type: application\/json\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+
+ return $content;
+ }
+
+ /**
+ * @depends testWriteHeader
+ */
+ public function testWriteContent($content)
+ {
+ $this->assertRegexp('/"source":"test_source"/', $content);
+ $this->assertRegexp('/"from_address":"source@test\.com"/', $content);
+ }
+
+ private function createHandler($token = 'myToken')
+ {
+ $constructorArgs = array($token, Logger::DEBUG);
+ $this->res = fopen('php://memory', 'a');
+ $this->handler = $this->getMock(
+ '\Monolog\Handler\FlowdockHandler',
+ array('fsockopen', 'streamSetTimeout', 'closeSocket'),
+ $constructorArgs
+ );
+
+ $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
+ $reflectionProperty->setAccessible(true);
+ $reflectionProperty->setValue($this->handler, 'localhost:1234');
+
+ $this->handler->expects($this->any())
+ ->method('fsockopen')
+ ->will($this->returnValue($this->res));
+ $this->handler->expects($this->any())
+ ->method('streamSetTimeout')
+ ->will($this->returnValue(true));
+ $this->handler->expects($this->any())
+ ->method('closeSocket')
+ ->will($this->returnValue(true));
+
+ $this->handler->setFormatter(new FlowdockFormatter('test_source', 'source@test.com'));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php
new file mode 100644
index 00000000..9d007b13
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerLegacyTest.php
@@ -0,0 +1,95 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Gelf\Message;
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\GelfMessageFormatter;
+
+class GelfHandlerLegacyTest extends TestCase
+{
+ public function setUp()
+ {
+ if (!class_exists('Gelf\MessagePublisher') || !class_exists('Gelf\Message')) {
+ $this->markTestSkipped("mlehner/gelf-php not installed");
+ }
+
+ require_once __DIR__ . '/GelfMockMessagePublisher.php';
+ }
+
+ /**
+ * @covers Monolog\Handler\GelfHandler::__construct
+ */
+ public function testConstruct()
+ {
+ $handler = new GelfHandler($this->getMessagePublisher());
+ $this->assertInstanceOf('Monolog\Handler\GelfHandler', $handler);
+ }
+
+ protected function getHandler($messagePublisher)
+ {
+ $handler = new GelfHandler($messagePublisher);
+
+ return $handler;
+ }
+
+ protected function getMessagePublisher()
+ {
+ return new GelfMockMessagePublisher('localhost');
+ }
+
+ public function testDebug()
+ {
+ $messagePublisher = $this->getMessagePublisher();
+ $handler = $this->getHandler($messagePublisher);
+
+ $record = $this->getRecord(Logger::DEBUG, "A test debug message");
+ $handler->handle($record);
+
+ $this->assertEquals(7, $messagePublisher->lastMessage->getLevel());
+ $this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
+ $this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
+ $this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
+ }
+
+ public function testWarning()
+ {
+ $messagePublisher = $this->getMessagePublisher();
+ $handler = $this->getHandler($messagePublisher);
+
+ $record = $this->getRecord(Logger::WARNING, "A test warning message");
+ $handler->handle($record);
+
+ $this->assertEquals(4, $messagePublisher->lastMessage->getLevel());
+ $this->assertEquals('test', $messagePublisher->lastMessage->getFacility());
+ $this->assertEquals($record['message'], $messagePublisher->lastMessage->getShortMessage());
+ $this->assertEquals(null, $messagePublisher->lastMessage->getFullMessage());
+ }
+
+ public function testInjectedGelfMessageFormatter()
+ {
+ $messagePublisher = $this->getMessagePublisher();
+ $handler = $this->getHandler($messagePublisher);
+
+ $handler->setFormatter(new GelfMessageFormatter('mysystem', 'EXT', 'CTX'));
+
+ $record = $this->getRecord(Logger::WARNING, "A test warning message");
+ $record['extra']['blarg'] = 'yep';
+ $record['context']['from'] = 'logger';
+ $handler->handle($record);
+
+ $this->assertEquals('mysystem', $messagePublisher->lastMessage->getHost());
+ $this->assertArrayHasKey('_EXTblarg', $messagePublisher->lastMessage->toArray());
+ $this->assertArrayHasKey('_CTXfrom', $messagePublisher->lastMessage->toArray());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php
new file mode 100644
index 00000000..8cdd64f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfHandlerTest.php
@@ -0,0 +1,117 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Gelf\Message;
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\GelfMessageFormatter;
+
+class GelfHandlerTest extends TestCase
+{
+ public function setUp()
+ {
+ if (!class_exists('Gelf\Publisher') || !class_exists('Gelf\Message')) {
+ $this->markTestSkipped("graylog2/gelf-php not installed");
+ }
+ }
+
+ /**
+ * @covers Monolog\Handler\GelfHandler::__construct
+ */
+ public function testConstruct()
+ {
+ $handler = new GelfHandler($this->getMessagePublisher());
+ $this->assertInstanceOf('Monolog\Handler\GelfHandler', $handler);
+ }
+
+ protected function getHandler($messagePublisher)
+ {
+ $handler = new GelfHandler($messagePublisher);
+
+ return $handler;
+ }
+
+ protected function getMessagePublisher()
+ {
+ return $this->getMock('Gelf\Publisher', array('publish'), array(), '', false);
+ }
+
+ public function testDebug()
+ {
+ $record = $this->getRecord(Logger::DEBUG, "A test debug message");
+ $expectedMessage = new Message();
+ $expectedMessage
+ ->setLevel(7)
+ ->setFacility("test")
+ ->setShortMessage($record['message'])
+ ->setTimestamp($record['datetime'])
+ ;
+
+ $messagePublisher = $this->getMessagePublisher();
+ $messagePublisher->expects($this->once())
+ ->method('publish')
+ ->with($expectedMessage);
+
+ $handler = $this->getHandler($messagePublisher);
+
+ $handler->handle($record);
+ }
+
+ public function testWarning()
+ {
+ $record = $this->getRecord(Logger::WARNING, "A test warning message");
+ $expectedMessage = new Message();
+ $expectedMessage
+ ->setLevel(4)
+ ->setFacility("test")
+ ->setShortMessage($record['message'])
+ ->setTimestamp($record['datetime'])
+ ;
+
+ $messagePublisher = $this->getMessagePublisher();
+ $messagePublisher->expects($this->once())
+ ->method('publish')
+ ->with($expectedMessage);
+
+ $handler = $this->getHandler($messagePublisher);
+
+ $handler->handle($record);
+ }
+
+ public function testInjectedGelfMessageFormatter()
+ {
+ $record = $this->getRecord(Logger::WARNING, "A test warning message");
+ $record['extra']['blarg'] = 'yep';
+ $record['context']['from'] = 'logger';
+
+ $expectedMessage = new Message();
+ $expectedMessage
+ ->setLevel(4)
+ ->setFacility("test")
+ ->setHost("mysystem")
+ ->setShortMessage($record['message'])
+ ->setTimestamp($record['datetime'])
+ ->setAdditional("EXTblarg", 'yep')
+ ->setAdditional("CTXfrom", 'logger')
+ ;
+
+ $messagePublisher = $this->getMessagePublisher();
+ $messagePublisher->expects($this->once())
+ ->method('publish')
+ ->with($expectedMessage);
+
+ $handler = $this->getHandler($messagePublisher);
+ $handler->setFormatter(new GelfMessageFormatter('mysystem', 'EXT', 'CTX'));
+ $handler->handle($record);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php
new file mode 100644
index 00000000..873d92fb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GelfMockMessagePublisher.php
@@ -0,0 +1,25 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Gelf\MessagePublisher;
+use Gelf\Message;
+
+class GelfMockMessagePublisher extends MessagePublisher
+{
+ public function publish(Message $message)
+ {
+ $this->lastMessage = $message;
+ }
+
+ public $lastMessage = null;
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php
new file mode 100644
index 00000000..a1b86176
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/GroupHandlerTest.php
@@ -0,0 +1,112 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class GroupHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\GroupHandler::__construct
+ * @expectedException InvalidArgumentException
+ */
+ public function testConstructorOnlyTakesHandler()
+ {
+ new GroupHandler(array(new TestHandler(), "foo"));
+ }
+
+ /**
+ * @covers Monolog\Handler\GroupHandler::__construct
+ * @covers Monolog\Handler\GroupHandler::handle
+ */
+ public function testHandle()
+ {
+ $testHandlers = array(new TestHandler(), new TestHandler());
+ $handler = new GroupHandler($testHandlers);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ foreach ($testHandlers as $test) {
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 2);
+ }
+ }
+
+ /**
+ * @covers Monolog\Handler\GroupHandler::handleBatch
+ */
+ public function testHandleBatch()
+ {
+ $testHandlers = array(new TestHandler(), new TestHandler());
+ $handler = new GroupHandler($testHandlers);
+ $handler->handleBatch(array($this->getRecord(Logger::DEBUG), $this->getRecord(Logger::INFO)));
+ foreach ($testHandlers as $test) {
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 2);
+ }
+ }
+
+ /**
+ * @covers Monolog\Handler\GroupHandler::isHandling
+ */
+ public function testIsHandling()
+ {
+ $testHandlers = array(new TestHandler(Logger::ERROR), new TestHandler(Logger::WARNING));
+ $handler = new GroupHandler($testHandlers);
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::ERROR)));
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::WARNING)));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
+ }
+
+ /**
+ * @covers Monolog\Handler\GroupHandler::handle
+ */
+ public function testHandleUsesProcessors()
+ {
+ $test = new TestHandler();
+ $handler = new GroupHandler(array($test));
+ $handler->pushProcessor(function ($record) {
+ $record['extra']['foo'] = true;
+
+ return $record;
+ });
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasWarningRecords());
+ $records = $test->getRecords();
+ $this->assertTrue($records[0]['extra']['foo']);
+ }
+
+ /**
+ * @covers Monolog\Handler\GroupHandler::handle
+ */
+ public function testHandleBatchUsesProcessors()
+ {
+ $testHandlers = array(new TestHandler(), new TestHandler());
+ $handler = new GroupHandler($testHandlers);
+ $handler->pushProcessor(function ($record) {
+ $record['extra']['foo'] = true;
+
+ return $record;
+ });
+ $handler->handleBatch(array($this->getRecord(Logger::DEBUG), $this->getRecord(Logger::INFO)));
+ foreach ($testHandlers as $test) {
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 2);
+ $records = $test->getRecords();
+ $this->assertTrue($records[0]['extra']['foo']);
+ $this->assertTrue($records[1]['extra']['foo']);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php
new file mode 100644
index 00000000..d8d0452c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HandlerWrapperTest.php
@@ -0,0 +1,130 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+
+/**
+ * @author Alexey Karapetov <alexey@karapetov.com>
+ */
+class HandlerWrapperTest extends TestCase
+{
+ /**
+ * @var HandlerWrapper
+ */
+ private $wrapper;
+
+ private $handler;
+
+ public function setUp()
+ {
+ parent::setUp();
+ $this->handler = $this->getMock('Monolog\\Handler\\HandlerInterface');
+ $this->wrapper = new HandlerWrapper($this->handler);
+ }
+
+ /**
+ * @return array
+ */
+ public function trueFalseDataProvider()
+ {
+ return array(
+ array(true),
+ array(false),
+ );
+ }
+
+ /**
+ * @param $result
+ * @dataProvider trueFalseDataProvider
+ */
+ public function testIsHandling($result)
+ {
+ $record = $this->getRecord();
+ $this->handler->expects($this->once())
+ ->method('isHandling')
+ ->with($record)
+ ->willReturn($result);
+
+ $this->assertEquals($result, $this->wrapper->isHandling($record));
+ }
+
+ /**
+ * @param $result
+ * @dataProvider trueFalseDataProvider
+ */
+ public function testHandle($result)
+ {
+ $record = $this->getRecord();
+ $this->handler->expects($this->once())
+ ->method('handle')
+ ->with($record)
+ ->willReturn($result);
+
+ $this->assertEquals($result, $this->wrapper->handle($record));
+ }
+
+ /**
+ * @param $result
+ * @dataProvider trueFalseDataProvider
+ */
+ public function testHandleBatch($result)
+ {
+ $records = $this->getMultipleRecords();
+ $this->handler->expects($this->once())
+ ->method('handleBatch')
+ ->with($records)
+ ->willReturn($result);
+
+ $this->assertEquals($result, $this->wrapper->handleBatch($records));
+ }
+
+ public function testPushProcessor()
+ {
+ $processor = function () {};
+ $this->handler->expects($this->once())
+ ->method('pushProcessor')
+ ->with($processor);
+
+ $this->assertEquals($this->wrapper, $this->wrapper->pushProcessor($processor));
+ }
+
+ public function testPopProcessor()
+ {
+ $processor = function () {};
+ $this->handler->expects($this->once())
+ ->method('popProcessor')
+ ->willReturn($processor);
+
+ $this->assertEquals($processor, $this->wrapper->popProcessor());
+ }
+
+ public function testSetFormatter()
+ {
+ $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $this->handler->expects($this->once())
+ ->method('setFormatter')
+ ->with($formatter);
+
+ $this->assertEquals($this->wrapper, $this->wrapper->setFormatter($formatter));
+ }
+
+ public function testGetFormatter()
+ {
+ $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $this->handler->expects($this->once())
+ ->method('getFormatter')
+ ->willReturn($formatter);
+
+ $this->assertEquals($formatter, $this->wrapper->getFormatter());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php
new file mode 100644
index 00000000..52dc9dac
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/HipChatHandlerTest.php
@@ -0,0 +1,279 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @author Rafael Dohms <rafael@doh.ms>
+ * @see https://www.hipchat.com/docs/api
+ */
+class HipChatHandlerTest extends TestCase
+{
+ private $res;
+ /** @var HipChatHandler */
+ private $handler;
+
+ public function testWriteHeader()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/v1\/rooms\/message\?format=json&auth_token=.* HTTP\/1.1\\r\\nHost: api.hipchat.com\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+
+ return $content;
+ }
+
+ public function testWriteCustomHostHeader()
+ {
+ $this->createHandler('myToken', 'room1', 'Monolog', true, 'hipchat.foo.bar');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/v1\/rooms\/message\?format=json&auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+
+ return $content;
+ }
+
+ public function testWriteV2()
+ {
+ $this->createHandler('myToken', 'room1', 'Monolog', false, 'hipchat.foo.bar', 'v2');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/v2\/room\/room1\/notification\?auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+
+ return $content;
+ }
+
+ public function testWriteV2Notify()
+ {
+ $this->createHandler('myToken', 'room1', 'Monolog', true, 'hipchat.foo.bar', 'v2');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/v2\/room\/room1\/notification\?auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+
+ return $content;
+ }
+
+ public function testRoomSpaces()
+ {
+ $this->createHandler('myToken', 'room name', 'Monolog', false, 'hipchat.foo.bar', 'v2');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/v2\/room\/room%20name\/notification\?auth_token=.* HTTP\/1.1\\r\\nHost: hipchat.foo.bar\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+
+ return $content;
+ }
+
+ /**
+ * @depends testWriteHeader
+ */
+ public function testWriteContent($content)
+ {
+ $this->assertRegexp('/notify=0&message=test1&message_format=text&color=red&room_id=room1&from=Monolog$/', $content);
+ }
+
+ public function testWriteContentV1WithoutName()
+ {
+ $this->createHandler('myToken', 'room1', null, false, 'hipchat.foo.bar', 'v1');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/notify=0&message=test1&message_format=text&color=red&room_id=room1&from=$/', $content);
+
+ return $content;
+ }
+
+ /**
+ * @depends testWriteCustomHostHeader
+ */
+ public function testWriteContentNotify($content)
+ {
+ $this->assertRegexp('/notify=1&message=test1&message_format=text&color=red&room_id=room1&from=Monolog$/', $content);
+ }
+
+ /**
+ * @depends testWriteV2
+ */
+ public function testWriteContentV2($content)
+ {
+ $this->assertRegexp('/notify=false&message=test1&message_format=text&color=red&from=Monolog$/', $content);
+ }
+
+ /**
+ * @depends testWriteV2Notify
+ */
+ public function testWriteContentV2Notify($content)
+ {
+ $this->assertRegexp('/notify=true&message=test1&message_format=text&color=red&from=Monolog$/', $content);
+ }
+
+ public function testWriteContentV2WithoutName()
+ {
+ $this->createHandler('myToken', 'room1', null, false, 'hipchat.foo.bar', 'v2');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/notify=false&message=test1&message_format=text&color=red$/', $content);
+
+ return $content;
+ }
+
+ public function testWriteWithComplexMessage()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'Backup of database "example" finished in 16 minutes.'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/message=Backup\+of\+database\+%22example%22\+finished\+in\+16\+minutes\./', $content);
+ }
+
+ public function testWriteTruncatesLongMessage()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, str_repeat('abcde', 2000)));
+ fseek($this->res, 0);
+ $content = fread($this->res, 12000);
+
+ $this->assertRegexp('/message='.str_repeat('abcde', 1900).'\+%5Btruncated%5D/', $content);
+ }
+
+ /**
+ * @dataProvider provideLevelColors
+ */
+ public function testWriteWithErrorLevelsAndColors($level, $expectedColor)
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord($level, 'Backup of database "example" finished in 16 minutes.'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/color='.$expectedColor.'/', $content);
+ }
+
+ public function provideLevelColors()
+ {
+ return array(
+ array(Logger::DEBUG, 'gray'),
+ array(Logger::INFO, 'green'),
+ array(Logger::WARNING, 'yellow'),
+ array(Logger::ERROR, 'red'),
+ array(Logger::CRITICAL, 'red'),
+ array(Logger::ALERT, 'red'),
+ array(Logger::EMERGENCY,'red'),
+ array(Logger::NOTICE, 'green'),
+ );
+ }
+
+ /**
+ * @dataProvider provideBatchRecords
+ */
+ public function testHandleBatch($records, $expectedColor)
+ {
+ $this->createHandler();
+
+ $this->handler->handleBatch($records);
+
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/color='.$expectedColor.'/', $content);
+ }
+
+ public function provideBatchRecords()
+ {
+ return array(
+ array(
+ array(
+ array('level' => Logger::WARNING, 'message' => 'Oh bugger!', 'level_name' => 'warning', 'datetime' => new \DateTime()),
+ array('level' => Logger::NOTICE, 'message' => 'Something noticeable happened.', 'level_name' => 'notice', 'datetime' => new \DateTime()),
+ array('level' => Logger::CRITICAL, 'message' => 'Everything is broken!', 'level_name' => 'critical', 'datetime' => new \DateTime()),
+ ),
+ 'red',
+ ),
+ array(
+ array(
+ array('level' => Logger::WARNING, 'message' => 'Oh bugger!', 'level_name' => 'warning', 'datetime' => new \DateTime()),
+ array('level' => Logger::NOTICE, 'message' => 'Something noticeable happened.', 'level_name' => 'notice', 'datetime' => new \DateTime()),
+ ),
+ 'yellow',
+ ),
+ array(
+ array(
+ array('level' => Logger::DEBUG, 'message' => 'Just debugging.', 'level_name' => 'debug', 'datetime' => new \DateTime()),
+ array('level' => Logger::NOTICE, 'message' => 'Something noticeable happened.', 'level_name' => 'notice', 'datetime' => new \DateTime()),
+ ),
+ 'green',
+ ),
+ array(
+ array(
+ array('level' => Logger::DEBUG, 'message' => 'Just debugging.', 'level_name' => 'debug', 'datetime' => new \DateTime()),
+ ),
+ 'gray',
+ ),
+ );
+ }
+
+ private function createHandler($token = 'myToken', $room = 'room1', $name = 'Monolog', $notify = false, $host = 'api.hipchat.com', $version = 'v1')
+ {
+ $constructorArgs = array($token, $room, $name, $notify, Logger::DEBUG, true, true, 'text', $host, $version);
+ $this->res = fopen('php://memory', 'a');
+ $this->handler = $this->getMock(
+ '\Monolog\Handler\HipChatHandler',
+ array('fsockopen', 'streamSetTimeout', 'closeSocket'),
+ $constructorArgs
+ );
+
+ $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
+ $reflectionProperty->setAccessible(true);
+ $reflectionProperty->setValue($this->handler, 'localhost:1234');
+
+ $this->handler->expects($this->any())
+ ->method('fsockopen')
+ ->will($this->returnValue($this->res));
+ $this->handler->expects($this->any())
+ ->method('streamSetTimeout')
+ ->will($this->returnValue(true));
+ $this->handler->expects($this->any())
+ ->method('closeSocket')
+ ->will($this->returnValue(true));
+
+ $this->handler->setFormatter($this->getIdentityFormatter());
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testCreateWithTooLongName()
+ {
+ $hipChatHandler = new HipChatHandler('token', 'room', 'SixteenCharsHere');
+ }
+
+ public function testCreateWithTooLongNameV2()
+ {
+ // creating a handler with too long of a name but using the v2 api doesn't matter.
+ $hipChatHandler = new HipChatHandler('token', 'room', 'SixteenCharsHere', false, Logger::CRITICAL, true, true, 'test', 'api.hipchat.com', 'v2');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php
new file mode 100644
index 00000000..b2deb40a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/LogEntriesHandlerTest.php
@@ -0,0 +1,84 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @author Robert Kaufmann III <rok3@rok3.me>
+ */
+class LogEntriesHandlerTest extends TestCase
+{
+ /**
+ * @var resource
+ */
+ private $res;
+
+ /**
+ * @var LogEntriesHandler
+ */
+ private $handler;
+
+ public function testWriteContent()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'Critical write test'));
+
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/testToken \[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\] test.CRITICAL: Critical write test/', $content);
+ }
+
+ public function testWriteBatchContent()
+ {
+ $records = array(
+ $this->getRecord(),
+ $this->getRecord(),
+ $this->getRecord(),
+ );
+ $this->createHandler();
+ $this->handler->handleBatch($records);
+
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/(testToken \[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\] .* \[\] \[\]\n){3}/', $content);
+ }
+
+ private function createHandler()
+ {
+ $useSSL = extension_loaded('openssl');
+ $args = array('testToken', $useSSL, Logger::DEBUG, true);
+ $this->res = fopen('php://memory', 'a');
+ $this->handler = $this->getMock(
+ '\Monolog\Handler\LogEntriesHandler',
+ array('fsockopen', 'streamSetTimeout', 'closeSocket'),
+ $args
+ );
+
+ $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
+ $reflectionProperty->setAccessible(true);
+ $reflectionProperty->setValue($this->handler, 'localhost:1234');
+
+ $this->handler->expects($this->any())
+ ->method('fsockopen')
+ ->will($this->returnValue($this->res));
+ $this->handler->expects($this->any())
+ ->method('streamSetTimeout')
+ ->will($this->returnValue(true));
+ $this->handler->expects($this->any())
+ ->method('closeSocket')
+ ->will($this->returnValue(true));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php
new file mode 100644
index 00000000..6754f3d6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MailHandlerTest.php
@@ -0,0 +1,75 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+
+class MailHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\MailHandler::handleBatch
+ */
+ public function testHandleBatch()
+ {
+ $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $formatter->expects($this->once())
+ ->method('formatBatch'); // Each record is formatted
+
+ $handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
+ $handler->expects($this->once())
+ ->method('send');
+ $handler->expects($this->never())
+ ->method('write'); // write is for individual records
+
+ $handler->setFormatter($formatter);
+
+ $handler->handleBatch($this->getMultipleRecords());
+ }
+
+ /**
+ * @covers Monolog\Handler\MailHandler::handleBatch
+ */
+ public function testHandleBatchNotSendsMailIfMessagesAreBelowLevel()
+ {
+ $records = array(
+ $this->getRecord(Logger::DEBUG, 'debug message 1'),
+ $this->getRecord(Logger::DEBUG, 'debug message 2'),
+ $this->getRecord(Logger::INFO, 'information'),
+ );
+
+ $handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
+ $handler->expects($this->never())
+ ->method('send');
+ $handler->setLevel(Logger::ERROR);
+
+ $handler->handleBatch($records);
+ }
+
+ /**
+ * @covers Monolog\Handler\MailHandler::write
+ */
+ public function testHandle()
+ {
+ $handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
+
+ $record = $this->getRecord();
+ $records = array($record);
+ $records[0]['formatted'] = '['.$record['datetime']->format('Y-m-d H:i:s').'] test.WARNING: test [] []'."\n";
+
+ $handler->expects($this->once())
+ ->method('send')
+ ->with($records[0]['formatted'], $records);
+
+ $handler->handle($record);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php
new file mode 100644
index 00000000..a0833225
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MockRavenClient.php
@@ -0,0 +1,27 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Raven_Client;
+
+class MockRavenClient extends Raven_Client
+{
+ public function capture($data, $stack, $vars = null)
+ {
+ $data = array_merge($this->get_user_data(), $data);
+ $this->lastData = $data;
+ $this->lastStack = $stack;
+ }
+
+ public $lastData;
+ public $lastStack;
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php
new file mode 100644
index 00000000..0fdef63a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/MongoDBHandlerTest.php
@@ -0,0 +1,65 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class MongoDBHandlerTest extends TestCase
+{
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testConstructorShouldThrowExceptionForInvalidMongo()
+ {
+ new MongoDBHandler(new \stdClass(), 'DB', 'Collection');
+ }
+
+ public function testHandle()
+ {
+ $mongo = $this->getMock('Mongo', array('selectCollection'), array(), '', false);
+ $collection = $this->getMock('stdClass', array('save'));
+
+ $mongo->expects($this->once())
+ ->method('selectCollection')
+ ->with('DB', 'Collection')
+ ->will($this->returnValue($collection));
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $expected = array(
+ 'message' => 'test',
+ 'context' => array('data' => '[object] (stdClass: {})', 'foo' => 34),
+ 'level' => Logger::WARNING,
+ 'level_name' => 'WARNING',
+ 'channel' => 'test',
+ 'datetime' => $record['datetime']->format('Y-m-d H:i:s'),
+ 'extra' => array(),
+ );
+
+ $collection->expects($this->once())
+ ->method('save')
+ ->with($expected);
+
+ $handler = new MongoDBHandler($mongo, 'DB', 'Collection');
+ $handler->handle($record);
+ }
+}
+
+if (!class_exists('Mongo')) {
+ class Mongo
+ {
+ public function selectCollection()
+ {
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php
new file mode 100644
index 00000000..ddf545db
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php
@@ -0,0 +1,111 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use InvalidArgumentException;
+
+function mail($to, $subject, $message, $additional_headers = null, $additional_parameters = null)
+{
+ $GLOBALS['mail'][] = func_get_args();
+}
+
+class NativeMailerHandlerTest extends TestCase
+{
+ protected function setUp()
+ {
+ $GLOBALS['mail'] = array();
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testConstructorHeaderInjection()
+ {
+ $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', "receiver@example.org\r\nFrom: faked@attacker.org");
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testSetterHeaderInjection()
+ {
+ $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
+ $mailer->addHeader("Content-Type: text/html\r\nFrom: faked@attacker.org");
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testSetterArrayHeaderInjection()
+ {
+ $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
+ $mailer->addHeader(array("Content-Type: text/html\r\nFrom: faked@attacker.org"));
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testSetterContentTypeInjection()
+ {
+ $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
+ $mailer->setContentType("text/html\r\nFrom: faked@attacker.org");
+ }
+
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testSetterEncodingInjection()
+ {
+ $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org');
+ $mailer->setEncoding("utf-8\r\nFrom: faked@attacker.org");
+ }
+
+ public function testSend()
+ {
+ $to = 'spammer@example.org';
+ $subject = 'dear victim';
+ $from = 'receiver@example.org';
+
+ $mailer = new NativeMailerHandler($to, $subject, $from);
+ $mailer->handleBatch(array());
+
+ // batch is empty, nothing sent
+ $this->assertEmpty($GLOBALS['mail']);
+
+ // non-empty batch
+ $mailer->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
+ $this->assertNotEmpty($GLOBALS['mail']);
+ $this->assertInternalType('array', $GLOBALS['mail']);
+ $this->assertArrayHasKey('0', $GLOBALS['mail']);
+ $params = $GLOBALS['mail'][0];
+ $this->assertCount(5, $params);
+ $this->assertSame($to, $params[0]);
+ $this->assertSame($subject, $params[1]);
+ $this->assertStringEndsWith(" test.ERROR: Foo Bar Baz [] []\n", $params[2]);
+ $this->assertSame("From: $from\r\nContent-type: text/plain; charset=utf-8\r\n", $params[3]);
+ $this->assertSame('', $params[4]);
+ }
+
+ public function testMessageSubjectFormatting()
+ {
+ $mailer = new NativeMailerHandler('to@example.org', 'Alert: %level_name% %message%', 'from@example.org');
+ $mailer->handle($this->getRecord(Logger::ERROR, "Foo\nBar\r\n\r\nBaz"));
+ $this->assertNotEmpty($GLOBALS['mail']);
+ $this->assertInternalType('array', $GLOBALS['mail']);
+ $this->assertArrayHasKey('0', $GLOBALS['mail']);
+ $params = $GLOBALS['mail'][0];
+ $this->assertCount(5, $params);
+ $this->assertSame('Alert: ERROR Foo Bar Baz', $params[1]);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php
new file mode 100644
index 00000000..4d3a615f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NewRelicHandlerTest.php
@@ -0,0 +1,200 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Formatter\LineFormatter;
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class NewRelicHandlerTest extends TestCase
+{
+ public static $appname;
+ public static $customParameters;
+ public static $transactionName;
+
+ public function setUp()
+ {
+ self::$appname = null;
+ self::$customParameters = array();
+ self::$transactionName = null;
+ }
+
+ /**
+ * @expectedException Monolog\Handler\MissingExtensionException
+ */
+ public function testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
+ {
+ $handler = new StubNewRelicHandlerWithoutExtension();
+ $handler->handle($this->getRecord(Logger::ERROR));
+ }
+
+ public function testThehandlerCanHandleTheRecord()
+ {
+ $handler = new StubNewRelicHandler();
+ $handler->handle($this->getRecord(Logger::ERROR));
+ }
+
+ public function testThehandlerCanAddContextParamsToTheNewRelicTrace()
+ {
+ $handler = new StubNewRelicHandler();
+ $handler->handle($this->getRecord(Logger::ERROR, 'log message', array('a' => 'b')));
+ $this->assertEquals(array('context_a' => 'b'), self::$customParameters);
+ }
+
+ public function testThehandlerCanAddExplodedContextParamsToTheNewRelicTrace()
+ {
+ $handler = new StubNewRelicHandler(Logger::ERROR, true, self::$appname, true);
+ $handler->handle($this->getRecord(
+ Logger::ERROR,
+ 'log message',
+ array('a' => array('key1' => 'value1', 'key2' => 'value2'))
+ ));
+ $this->assertEquals(
+ array('context_a_key1' => 'value1', 'context_a_key2' => 'value2'),
+ self::$customParameters
+ );
+ }
+
+ public function testThehandlerCanAddExtraParamsToTheNewRelicTrace()
+ {
+ $record = $this->getRecord(Logger::ERROR, 'log message');
+ $record['extra'] = array('c' => 'd');
+
+ $handler = new StubNewRelicHandler();
+ $handler->handle($record);
+
+ $this->assertEquals(array('extra_c' => 'd'), self::$customParameters);
+ }
+
+ public function testThehandlerCanAddExplodedExtraParamsToTheNewRelicTrace()
+ {
+ $record = $this->getRecord(Logger::ERROR, 'log message');
+ $record['extra'] = array('c' => array('key1' => 'value1', 'key2' => 'value2'));
+
+ $handler = new StubNewRelicHandler(Logger::ERROR, true, self::$appname, true);
+ $handler->handle($record);
+
+ $this->assertEquals(
+ array('extra_c_key1' => 'value1', 'extra_c_key2' => 'value2'),
+ self::$customParameters
+ );
+ }
+
+ public function testThehandlerCanAddExtraContextAndParamsToTheNewRelicTrace()
+ {
+ $record = $this->getRecord(Logger::ERROR, 'log message', array('a' => 'b'));
+ $record['extra'] = array('c' => 'd');
+
+ $handler = new StubNewRelicHandler();
+ $handler->handle($record);
+
+ $expected = array(
+ 'context_a' => 'b',
+ 'extra_c' => 'd',
+ );
+
+ $this->assertEquals($expected, self::$customParameters);
+ }
+
+ public function testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter()
+ {
+ $handler = new StubNewRelicHandler();
+ $handler->setFormatter(new LineFormatter());
+ $handler->handle($this->getRecord(Logger::ERROR));
+ }
+
+ public function testTheAppNameIsNullByDefault()
+ {
+ $handler = new StubNewRelicHandler();
+ $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
+
+ $this->assertEquals(null, self::$appname);
+ }
+
+ public function testTheAppNameCanBeInjectedFromtheConstructor()
+ {
+ $handler = new StubNewRelicHandler(Logger::DEBUG, false, 'myAppName');
+ $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
+
+ $this->assertEquals('myAppName', self::$appname);
+ }
+
+ public function testTheAppNameCanBeOverriddenFromEachLog()
+ {
+ $handler = new StubNewRelicHandler(Logger::DEBUG, false, 'myAppName');
+ $handler->handle($this->getRecord(Logger::ERROR, 'log message', array('appname' => 'logAppName')));
+
+ $this->assertEquals('logAppName', self::$appname);
+ }
+
+ public function testTheTransactionNameIsNullByDefault()
+ {
+ $handler = new StubNewRelicHandler();
+ $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
+
+ $this->assertEquals(null, self::$transactionName);
+ }
+
+ public function testTheTransactionNameCanBeInjectedFromTheConstructor()
+ {
+ $handler = new StubNewRelicHandler(Logger::DEBUG, false, null, false, 'myTransaction');
+ $handler->handle($this->getRecord(Logger::ERROR, 'log message'));
+
+ $this->assertEquals('myTransaction', self::$transactionName);
+ }
+
+ public function testTheTransactionNameCanBeOverriddenFromEachLog()
+ {
+ $handler = new StubNewRelicHandler(Logger::DEBUG, false, null, false, 'myTransaction');
+ $handler->handle($this->getRecord(Logger::ERROR, 'log message', array('transaction_name' => 'logTransactName')));
+
+ $this->assertEquals('logTransactName', self::$transactionName);
+ }
+}
+
+class StubNewRelicHandlerWithoutExtension extends NewRelicHandler
+{
+ protected function isNewRelicEnabled()
+ {
+ return false;
+ }
+}
+
+class StubNewRelicHandler extends NewRelicHandler
+{
+ protected function isNewRelicEnabled()
+ {
+ return true;
+ }
+}
+
+function newrelic_notice_error()
+{
+ return true;
+}
+
+function newrelic_set_appname($appname)
+{
+ return NewRelicHandlerTest::$appname = $appname;
+}
+
+function newrelic_name_transaction($transactionName)
+{
+ return NewRelicHandlerTest::$transactionName = $transactionName;
+}
+
+function newrelic_add_custom_parameter($key, $value)
+{
+ NewRelicHandlerTest::$customParameters[$key] = $value;
+
+ return true;
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php
new file mode 100644
index 00000000..292df78c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php
@@ -0,0 +1,33 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @covers Monolog\Handler\NullHandler::handle
+ */
+class NullHandlerTest extends TestCase
+{
+ public function testHandle()
+ {
+ $handler = new NullHandler();
+ $this->assertTrue($handler->handle($this->getRecord()));
+ }
+
+ public function testHandleLowerLevelRecord()
+ {
+ $handler = new NullHandler(Logger::WARNING);
+ $this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php
new file mode 100644
index 00000000..152573ef
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php
@@ -0,0 +1,273 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Exception;
+use Monolog\ErrorHandler;
+use Monolog\Logger;
+use Monolog\TestCase;
+use PhpConsole\Connector;
+use PhpConsole\Dispatcher\Debug as DebugDispatcher;
+use PhpConsole\Dispatcher\Errors as ErrorDispatcher;
+use PhpConsole\Handler;
+use PHPUnit_Framework_MockObject_MockObject;
+
+/**
+ * @covers Monolog\Handler\PHPConsoleHandler
+ * @author Sergey Barbushin https://www.linkedin.com/in/barbushin
+ */
+class PHPConsoleHandlerTest extends TestCase
+{
+ /** @var Connector|PHPUnit_Framework_MockObject_MockObject */
+ protected $connector;
+ /** @var DebugDispatcher|PHPUnit_Framework_MockObject_MockObject */
+ protected $debugDispatcher;
+ /** @var ErrorDispatcher|PHPUnit_Framework_MockObject_MockObject */
+ protected $errorDispatcher;
+
+ protected function setUp()
+ {
+ if (!class_exists('PhpConsole\Connector')) {
+ $this->markTestSkipped('PHP Console library not found. See https://github.com/barbushin/php-console#installation');
+ }
+ $this->connector = $this->initConnectorMock();
+
+ $this->debugDispatcher = $this->initDebugDispatcherMock($this->connector);
+ $this->connector->setDebugDispatcher($this->debugDispatcher);
+
+ $this->errorDispatcher = $this->initErrorDispatcherMock($this->connector);
+ $this->connector->setErrorsDispatcher($this->errorDispatcher);
+ }
+
+ protected function initDebugDispatcherMock(Connector $connector)
+ {
+ return $this->getMockBuilder('PhpConsole\Dispatcher\Debug')
+ ->disableOriginalConstructor()
+ ->setMethods(array('dispatchDebug'))
+ ->setConstructorArgs(array($connector, $connector->getDumper()))
+ ->getMock();
+ }
+
+ protected function initErrorDispatcherMock(Connector $connector)
+ {
+ return $this->getMockBuilder('PhpConsole\Dispatcher\Errors')
+ ->disableOriginalConstructor()
+ ->setMethods(array('dispatchError', 'dispatchException'))
+ ->setConstructorArgs(array($connector, $connector->getDumper()))
+ ->getMock();
+ }
+
+ protected function initConnectorMock()
+ {
+ $connector = $this->getMockBuilder('PhpConsole\Connector')
+ ->disableOriginalConstructor()
+ ->setMethods(array(
+ 'sendMessage',
+ 'onShutDown',
+ 'isActiveClient',
+ 'setSourcesBasePath',
+ 'setServerEncoding',
+ 'setPassword',
+ 'enableSslOnlyMode',
+ 'setAllowedIpMasks',
+ 'setHeadersLimit',
+ 'startEvalRequestsListener',
+ ))
+ ->getMock();
+
+ $connector->expects($this->any())
+ ->method('isActiveClient')
+ ->will($this->returnValue(true));
+
+ return $connector;
+ }
+
+ protected function getHandlerDefaultOption($name)
+ {
+ $handler = new PHPConsoleHandler(array(), $this->connector);
+ $options = $handler->getOptions();
+
+ return $options[$name];
+ }
+
+ protected function initLogger($handlerOptions = array(), $level = Logger::DEBUG)
+ {
+ return new Logger('test', array(
+ new PHPConsoleHandler($handlerOptions, $this->connector, $level),
+ ));
+ }
+
+ public function testInitWithDefaultConnector()
+ {
+ $handler = new PHPConsoleHandler();
+ $this->assertEquals(spl_object_hash(Connector::getInstance()), spl_object_hash($handler->getConnector()));
+ }
+
+ public function testInitWithCustomConnector()
+ {
+ $handler = new PHPConsoleHandler(array(), $this->connector);
+ $this->assertEquals(spl_object_hash($this->connector), spl_object_hash($handler->getConnector()));
+ }
+
+ public function testDebug()
+ {
+ $this->debugDispatcher->expects($this->once())->method('dispatchDebug')->with($this->equalTo('test'));
+ $this->initLogger()->addDebug('test');
+ }
+
+ public function testDebugContextInMessage()
+ {
+ $message = 'test';
+ $tag = 'tag';
+ $context = array($tag, 'custom' => mt_rand());
+ $expectedMessage = $message . ' ' . json_encode(array_slice($context, 1));
+ $this->debugDispatcher->expects($this->once())->method('dispatchDebug')->with(
+ $this->equalTo($expectedMessage),
+ $this->equalTo($tag)
+ );
+ $this->initLogger()->addDebug($message, $context);
+ }
+
+ public function testDebugTags($tagsContextKeys = null)
+ {
+ $expectedTags = mt_rand();
+ $logger = $this->initLogger($tagsContextKeys ? array('debugTagsKeysInContext' => $tagsContextKeys) : array());
+ if (!$tagsContextKeys) {
+ $tagsContextKeys = $this->getHandlerDefaultOption('debugTagsKeysInContext');
+ }
+ foreach ($tagsContextKeys as $key) {
+ $debugDispatcher = $this->initDebugDispatcherMock($this->connector);
+ $debugDispatcher->expects($this->once())->method('dispatchDebug')->with(
+ $this->anything(),
+ $this->equalTo($expectedTags)
+ );
+ $this->connector->setDebugDispatcher($debugDispatcher);
+ $logger->addDebug('test', array($key => $expectedTags));
+ }
+ }
+
+ public function testError($classesPartialsTraceIgnore = null)
+ {
+ $code = E_USER_NOTICE;
+ $message = 'message';
+ $file = __FILE__;
+ $line = __LINE__;
+ $this->errorDispatcher->expects($this->once())->method('dispatchError')->with(
+ $this->equalTo($code),
+ $this->equalTo($message),
+ $this->equalTo($file),
+ $this->equalTo($line),
+ $classesPartialsTraceIgnore ?: $this->equalTo($this->getHandlerDefaultOption('classesPartialsTraceIgnore'))
+ );
+ $errorHandler = ErrorHandler::register($this->initLogger($classesPartialsTraceIgnore ? array('classesPartialsTraceIgnore' => $classesPartialsTraceIgnore) : array()), false);
+ $errorHandler->registerErrorHandler(array(), false, E_USER_WARNING);
+ $errorHandler->handleError($code, $message, $file, $line);
+ }
+
+ public function testException()
+ {
+ $e = new Exception();
+ $this->errorDispatcher->expects($this->once())->method('dispatchException')->with(
+ $this->equalTo($e)
+ );
+ $handler = $this->initLogger();
+ $handler->log(
+ \Psr\Log\LogLevel::ERROR,
+ sprintf('Uncaught Exception %s: "%s" at %s line %s', get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()),
+ array('exception' => $e)
+ );
+ }
+
+ /**
+ * @expectedException Exception
+ */
+ public function testWrongOptionsThrowsException()
+ {
+ new PHPConsoleHandler(array('xxx' => 1));
+ }
+
+ public function testOptionEnabled()
+ {
+ $this->debugDispatcher->expects($this->never())->method('dispatchDebug');
+ $this->initLogger(array('enabled' => false))->addDebug('test');
+ }
+
+ public function testOptionClassesPartialsTraceIgnore()
+ {
+ $this->testError(array('Class', 'Namespace\\'));
+ }
+
+ public function testOptionDebugTagsKeysInContext()
+ {
+ $this->testDebugTags(array('key1', 'key2'));
+ }
+
+ public function testOptionUseOwnErrorsAndExceptionsHandler()
+ {
+ $this->initLogger(array('useOwnErrorsHandler' => true, 'useOwnExceptionsHandler' => true));
+ $this->assertEquals(array(Handler::getInstance(), 'handleError'), set_error_handler(function () {
+ }));
+ $this->assertEquals(array(Handler::getInstance(), 'handleException'), set_exception_handler(function () {
+ }));
+ }
+
+ public static function provideConnectorMethodsOptionsSets()
+ {
+ return array(
+ array('sourcesBasePath', 'setSourcesBasePath', __DIR__),
+ array('serverEncoding', 'setServerEncoding', 'cp1251'),
+ array('password', 'setPassword', '******'),
+ array('enableSslOnlyMode', 'enableSslOnlyMode', true, false),
+ array('ipMasks', 'setAllowedIpMasks', array('127.0.0.*')),
+ array('headersLimit', 'setHeadersLimit', 2500),
+ array('enableEvalListener', 'startEvalRequestsListener', true, false),
+ );
+ }
+
+ /**
+ * @dataProvider provideConnectorMethodsOptionsSets
+ */
+ public function testOptionCallsConnectorMethod($option, $method, $value, $isArgument = true)
+ {
+ $expectCall = $this->connector->expects($this->once())->method($method);
+ if ($isArgument) {
+ $expectCall->with($value);
+ }
+ new PHPConsoleHandler(array($option => $value), $this->connector);
+ }
+
+ public function testOptionDetectDumpTraceAndSource()
+ {
+ new PHPConsoleHandler(array('detectDumpTraceAndSource' => true), $this->connector);
+ $this->assertTrue($this->connector->getDebugDispatcher()->detectTraceAndSource);
+ }
+
+ public static function provideDumperOptionsValues()
+ {
+ return array(
+ array('dumperLevelLimit', 'levelLimit', 1001),
+ array('dumperItemsCountLimit', 'itemsCountLimit', 1002),
+ array('dumperItemSizeLimit', 'itemSizeLimit', 1003),
+ array('dumperDumpSizeLimit', 'dumpSizeLimit', 1004),
+ array('dumperDetectCallbacks', 'detectCallbacks', true),
+ );
+ }
+
+ /**
+ * @dataProvider provideDumperOptionsValues
+ */
+ public function testDumperOptions($option, $dumperProperty, $value)
+ {
+ new PHPConsoleHandler(array($option => $value), $this->connector);
+ $this->assertEquals($value, $this->connector->getDumper()->$dumperProperty);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php
new file mode 100644
index 00000000..64eaab16
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PsrHandlerTest.php
@@ -0,0 +1,50 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @covers Monolog\Handler\PsrHandler::handle
+ */
+class PsrHandlerTest extends TestCase
+{
+ public function logLevelProvider()
+ {
+ $levels = array();
+ $monologLogger = new Logger('');
+
+ foreach ($monologLogger->getLevels() as $levelName => $level) {
+ $levels[] = array($levelName, $level);
+ }
+
+ return $levels;
+ }
+
+ /**
+ * @dataProvider logLevelProvider
+ */
+ public function testHandlesAllLevels($levelName, $level)
+ {
+ $message = 'Hello, world! ' . $level;
+ $context = array('foo' => 'bar', 'level' => $level);
+
+ $psrLogger = $this->getMock('Psr\Log\NullLogger');
+ $psrLogger->expects($this->once())
+ ->method('log')
+ ->with(strtolower($levelName), $message, $context);
+
+ $handler = new PsrHandler($psrLogger);
+ $handler->handle(array('level' => $level, 'level_name' => $levelName, 'message' => $message, 'context' => $context));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php
new file mode 100644
index 00000000..56df474a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/PushoverHandlerTest.php
@@ -0,0 +1,141 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * Almost all examples (expected header, titles, messages) taken from
+ * https://www.pushover.net/api
+ * @author Sebastian Göttschkes <sebastian.goettschkes@googlemail.com>
+ * @see https://www.pushover.net/api
+ */
+class PushoverHandlerTest extends TestCase
+{
+ private $res;
+ private $handler;
+
+ public function testWriteHeader()
+ {
+ $this->createHandler();
+ $this->handler->setHighPriorityLevel(Logger::EMERGENCY); // skip priority notifications
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/1\/messages.json HTTP\/1.1\\r\\nHost: api.pushover.net\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+
+ return $content;
+ }
+
+ /**
+ * @depends testWriteHeader
+ */
+ public function testWriteContent($content)
+ {
+ $this->assertRegexp('/token=myToken&user=myUser&message=test1&title=Monolog&timestamp=\d{10}$/', $content);
+ }
+
+ public function testWriteWithComplexTitle()
+ {
+ $this->createHandler('myToken', 'myUser', 'Backup finished - SQL1');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/title=Backup\+finished\+-\+SQL1/', $content);
+ }
+
+ public function testWriteWithComplexMessage()
+ {
+ $this->createHandler();
+ $this->handler->setHighPriorityLevel(Logger::EMERGENCY); // skip priority notifications
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'Backup of database "example" finished in 16 minutes.'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/message=Backup\+of\+database\+%22example%22\+finished\+in\+16\+minutes\./', $content);
+ }
+
+ public function testWriteWithTooLongMessage()
+ {
+ $message = str_pad('test', 520, 'a');
+ $this->createHandler();
+ $this->handler->setHighPriorityLevel(Logger::EMERGENCY); // skip priority notifications
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, $message));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $expectedMessage = substr($message, 0, 505);
+
+ $this->assertRegexp('/message=' . $expectedMessage . '&title/', $content);
+ }
+
+ public function testWriteWithHighPriority()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/token=myToken&user=myUser&message=test1&title=Monolog&timestamp=\d{10}&priority=1$/', $content);
+ }
+
+ public function testWriteWithEmergencyPriority()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::EMERGENCY, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/token=myToken&user=myUser&message=test1&title=Monolog&timestamp=\d{10}&priority=2&retry=30&expire=25200$/', $content);
+ }
+
+ public function testWriteToMultipleUsers()
+ {
+ $this->createHandler('myToken', array('userA', 'userB'));
+ $this->handler->handle($this->getRecord(Logger::EMERGENCY, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/token=myToken&user=userA&message=test1&title=Monolog&timestamp=\d{10}&priority=2&retry=30&expire=25200POST/', $content);
+ $this->assertRegexp('/token=myToken&user=userB&message=test1&title=Monolog&timestamp=\d{10}&priority=2&retry=30&expire=25200$/', $content);
+ }
+
+ private function createHandler($token = 'myToken', $user = 'myUser', $title = 'Monolog')
+ {
+ $constructorArgs = array($token, $user, $title);
+ $this->res = fopen('php://memory', 'a');
+ $this->handler = $this->getMock(
+ '\Monolog\Handler\PushoverHandler',
+ array('fsockopen', 'streamSetTimeout', 'closeSocket'),
+ $constructorArgs
+ );
+
+ $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
+ $reflectionProperty->setAccessible(true);
+ $reflectionProperty->setValue($this->handler, 'localhost:1234');
+
+ $this->handler->expects($this->any())
+ ->method('fsockopen')
+ ->will($this->returnValue($this->res));
+ $this->handler->expects($this->any())
+ ->method('streamSetTimeout')
+ ->will($this->returnValue(true));
+ $this->handler->expects($this->any())
+ ->method('closeSocket')
+ ->will($this->returnValue(true));
+
+ $this->handler->setFormatter($this->getIdentityFormatter());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php
new file mode 100644
index 00000000..26d212b9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php
@@ -0,0 +1,255 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+
+class RavenHandlerTest extends TestCase
+{
+ public function setUp()
+ {
+ if (!class_exists('Raven_Client')) {
+ $this->markTestSkipped('raven/raven not installed');
+ }
+
+ require_once __DIR__ . '/MockRavenClient.php';
+ }
+
+ /**
+ * @covers Monolog\Handler\RavenHandler::__construct
+ */
+ public function testConstruct()
+ {
+ $handler = new RavenHandler($this->getRavenClient());
+ $this->assertInstanceOf('Monolog\Handler\RavenHandler', $handler);
+ }
+
+ protected function getHandler($ravenClient)
+ {
+ $handler = new RavenHandler($ravenClient);
+
+ return $handler;
+ }
+
+ protected function getRavenClient()
+ {
+ $dsn = 'http://43f6017361224d098402974103bfc53d:a6a0538fc2934ba2bed32e08741b2cd3@marca.python.live.cheggnet.com:9000/1';
+
+ return new MockRavenClient($dsn);
+ }
+
+ public function testDebug()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ $record = $this->getRecord(Logger::DEBUG, 'A test debug message');
+ $handler->handle($record);
+
+ $this->assertEquals($ravenClient::DEBUG, $ravenClient->lastData['level']);
+ $this->assertContains($record['message'], $ravenClient->lastData['message']);
+ }
+
+ public function testWarning()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ $record = $this->getRecord(Logger::WARNING, 'A test warning message');
+ $handler->handle($record);
+
+ $this->assertEquals($ravenClient::WARNING, $ravenClient->lastData['level']);
+ $this->assertContains($record['message'], $ravenClient->lastData['message']);
+ }
+
+ public function testTag()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ $tags = array(1, 2, 'foo');
+ $record = $this->getRecord(Logger::INFO, 'test', array('tags' => $tags));
+ $handler->handle($record);
+
+ $this->assertEquals($tags, $ravenClient->lastData['tags']);
+ }
+
+ public function testExtraParameters()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ $checksum = '098f6bcd4621d373cade4e832627b4f6';
+ $release = '05a671c66aefea124cc08b76ea6d30bb';
+ $eventId = '31423';
+ $record = $this->getRecord(Logger::INFO, 'test', array('checksum' => $checksum, 'release' => $release, 'event_id' => $eventId));
+ $handler->handle($record);
+
+ $this->assertEquals($checksum, $ravenClient->lastData['checksum']);
+ $this->assertEquals($release, $ravenClient->lastData['release']);
+ $this->assertEquals($eventId, $ravenClient->lastData['event_id']);
+ }
+
+ public function testFingerprint()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ $fingerprint = array('{{ default }}', 'other value');
+ $record = $this->getRecord(Logger::INFO, 'test', array('fingerprint' => $fingerprint));
+ $handler->handle($record);
+
+ $this->assertEquals($fingerprint, $ravenClient->lastData['fingerprint']);
+ }
+
+ public function testUserContext()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ $recordWithNoContext = $this->getRecord(Logger::INFO, 'test with default user context');
+ // set user context 'externally'
+
+ $user = array(
+ 'id' => '123',
+ 'email' => 'test@test.com',
+ );
+
+ $recordWithContext = $this->getRecord(Logger::INFO, 'test', array('user' => $user));
+
+ $ravenClient->user_context(array('id' => 'test_user_id'));
+ // handle context
+ $handler->handle($recordWithContext);
+ $this->assertEquals($user, $ravenClient->lastData['user']);
+
+ // check to see if its reset
+ $handler->handle($recordWithNoContext);
+ $this->assertInternalType('array', $ravenClient->context->user);
+ $this->assertSame('test_user_id', $ravenClient->context->user['id']);
+
+ // handle with null context
+ $ravenClient->user_context(null);
+ $handler->handle($recordWithContext);
+ $this->assertEquals($user, $ravenClient->lastData['user']);
+
+ // check to see if its reset
+ $handler->handle($recordWithNoContext);
+ $this->assertNull($ravenClient->context->user);
+ }
+
+ public function testException()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ try {
+ $this->methodThatThrowsAnException();
+ } catch (\Exception $e) {
+ $record = $this->getRecord(Logger::ERROR, $e->getMessage(), array('exception' => $e));
+ $handler->handle($record);
+ }
+
+ $this->assertEquals($record['message'], $ravenClient->lastData['message']);
+ }
+
+ public function testHandleBatch()
+ {
+ $records = $this->getMultipleRecords();
+ $records[] = $this->getRecord(Logger::WARNING, 'warning');
+ $records[] = $this->getRecord(Logger::WARNING, 'warning');
+
+ $logFormatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $logFormatter->expects($this->once())->method('formatBatch');
+
+ $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $formatter->expects($this->once())->method('format')->with($this->callback(function ($record) {
+ return $record['level'] == 400;
+ }));
+
+ $handler = $this->getHandler($this->getRavenClient());
+ $handler->setBatchFormatter($logFormatter);
+ $handler->setFormatter($formatter);
+ $handler->handleBatch($records);
+ }
+
+ public function testHandleBatchDoNothingIfRecordsAreBelowLevel()
+ {
+ $records = array(
+ $this->getRecord(Logger::DEBUG, 'debug message 1'),
+ $this->getRecord(Logger::DEBUG, 'debug message 2'),
+ $this->getRecord(Logger::INFO, 'information'),
+ );
+
+ $handler = $this->getMock('Monolog\Handler\RavenHandler', null, array($this->getRavenClient()));
+ $handler->expects($this->never())->method('handle');
+ $handler->setLevel(Logger::ERROR);
+ $handler->handleBatch($records);
+ }
+
+ public function testHandleBatchPicksProperMessage()
+ {
+ $records = array(
+ $this->getRecord(Logger::DEBUG, 'debug message 1'),
+ $this->getRecord(Logger::DEBUG, 'debug message 2'),
+ $this->getRecord(Logger::INFO, 'information 1'),
+ $this->getRecord(Logger::ERROR, 'error 1'),
+ $this->getRecord(Logger::WARNING, 'warning'),
+ $this->getRecord(Logger::ERROR, 'error 2'),
+ $this->getRecord(Logger::INFO, 'information 2'),
+ );
+
+ $logFormatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $logFormatter->expects($this->once())->method('formatBatch');
+
+ $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $formatter->expects($this->once())->method('format')->with($this->callback(function ($record) use ($records) {
+ return $record['message'] == 'error 1';
+ }));
+
+ $handler = $this->getHandler($this->getRavenClient());
+ $handler->setBatchFormatter($logFormatter);
+ $handler->setFormatter($formatter);
+ $handler->handleBatch($records);
+ }
+
+ public function testGetSetBatchFormatter()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+
+ $handler->setBatchFormatter($formatter = new LineFormatter());
+ $this->assertSame($formatter, $handler->getBatchFormatter());
+ }
+
+ public function testRelease()
+ {
+ $ravenClient = $this->getRavenClient();
+ $handler = $this->getHandler($ravenClient);
+ $release = 'v42.42.42';
+ $handler->setRelease($release);
+ $record = $this->getRecord(Logger::INFO, 'test');
+ $handler->handle($record);
+ $this->assertEquals($release, $ravenClient->lastData['release']);
+
+ $localRelease = 'v41.41.41';
+ $record = $this->getRecord(Logger::INFO, 'test', array('release' => $localRelease));
+ $handler->handle($record);
+ $this->assertEquals($localRelease, $ravenClient->lastData['release']);
+ }
+
+ private function methodThatThrowsAnException()
+ {
+ throw new \Exception('This is an exception');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php
new file mode 100644
index 00000000..689d5278
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php
@@ -0,0 +1,127 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+
+class RedisHandlerTest extends TestCase
+{
+ /**
+ * @expectedException InvalidArgumentException
+ */
+ public function testConstructorShouldThrowExceptionForInvalidRedis()
+ {
+ new RedisHandler(new \stdClass(), 'key');
+ }
+
+ public function testConstructorShouldWorkWithPredis()
+ {
+ $redis = $this->getMock('Predis\Client');
+ $this->assertInstanceof('Monolog\Handler\RedisHandler', new RedisHandler($redis, 'key'));
+ }
+
+ public function testConstructorShouldWorkWithRedis()
+ {
+ $redis = $this->getMock('Redis');
+ $this->assertInstanceof('Monolog\Handler\RedisHandler', new RedisHandler($redis, 'key'));
+ }
+
+ public function testPredisHandle()
+ {
+ $redis = $this->getMock('Predis\Client', array('rpush'));
+
+ // Predis\Client uses rpush
+ $redis->expects($this->once())
+ ->method('rpush')
+ ->with('key', 'test');
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $handler = new RedisHandler($redis, 'key');
+ $handler->setFormatter(new LineFormatter("%message%"));
+ $handler->handle($record);
+ }
+
+ public function testRedisHandle()
+ {
+ $redis = $this->getMock('Redis', array('rpush'));
+
+ // Redis uses rPush
+ $redis->expects($this->once())
+ ->method('rPush')
+ ->with('key', 'test');
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $handler = new RedisHandler($redis, 'key');
+ $handler->setFormatter(new LineFormatter("%message%"));
+ $handler->handle($record);
+ }
+
+ public function testRedisHandleCapped()
+ {
+ $redis = $this->getMock('Redis', array('multi', 'rpush', 'ltrim', 'exec'));
+
+ // Redis uses multi
+ $redis->expects($this->once())
+ ->method('multi')
+ ->will($this->returnSelf());
+
+ $redis->expects($this->once())
+ ->method('rpush')
+ ->will($this->returnSelf());
+
+ $redis->expects($this->once())
+ ->method('ltrim')
+ ->will($this->returnSelf());
+
+ $redis->expects($this->once())
+ ->method('exec')
+ ->will($this->returnSelf());
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $handler = new RedisHandler($redis, 'key', Logger::DEBUG, true, 10);
+ $handler->setFormatter(new LineFormatter("%message%"));
+ $handler->handle($record);
+ }
+
+ public function testPredisHandleCapped()
+ {
+ $redis = $this->getMock('Predis\Client', array('transaction'));
+
+ $redisTransaction = $this->getMock('Predis\Client', array('rpush', 'ltrim'));
+
+ $redisTransaction->expects($this->once())
+ ->method('rpush')
+ ->will($this->returnSelf());
+
+ $redisTransaction->expects($this->once())
+ ->method('ltrim')
+ ->will($this->returnSelf());
+
+ // Redis uses multi
+ $redis->expects($this->once())
+ ->method('transaction')
+ ->will($this->returnCallback(function ($cb) use ($redisTransaction) {
+ $cb($redisTransaction);
+ }));
+
+ $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));
+
+ $handler = new RedisHandler($redis, 'key', Logger::DEBUG, true, 10);
+ $handler->setFormatter(new LineFormatter("%message%"));
+ $handler->handle($record);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RollbarHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RollbarHandlerTest.php
new file mode 100644
index 00000000..f302e917
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RollbarHandlerTest.php
@@ -0,0 +1,84 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Exception;
+use Monolog\TestCase;
+use Monolog\Logger;
+use PHPUnit_Framework_MockObject_MockObject as MockObject;
+
+/**
+ * @author Erik Johansson <erik.pm.johansson@gmail.com>
+ * @see https://rollbar.com/docs/notifier/rollbar-php/
+ *
+ * @coversDefaultClass Monolog\Handler\RollbarHandler
+ */
+class RollbarHandlerTest extends TestCase
+{
+ /**
+ * @var MockObject
+ */
+ private $rollbarNotifier;
+
+ /**
+ * @var array
+ */
+ public $reportedExceptionArguments = null;
+
+ protected function setUp()
+ {
+ parent::setUp();
+
+ $this->setupRollbarNotifierMock();
+ }
+
+ /**
+ * When reporting exceptions to Rollbar the
+ * level has to be set in the payload data
+ */
+ public function testExceptionLogLevel()
+ {
+ $handler = $this->createHandler();
+
+ $handler->handle($this->createExceptionRecord(Logger::DEBUG));
+
+ $this->assertEquals('debug', $this->reportedExceptionArguments['payload']['level']);
+ }
+
+ private function setupRollbarNotifierMock()
+ {
+ $this->rollbarNotifier = $this->getMockBuilder('RollbarNotifier')
+ ->setMethods(array('report_message', 'report_exception', 'flush'))
+ ->getMock();
+
+ $that = $this;
+
+ $this->rollbarNotifier
+ ->expects($this->any())
+ ->method('report_exception')
+ ->willReturnCallback(function ($exception, $context, $payload) use ($that) {
+ $that->reportedExceptionArguments = compact('exception', 'context', 'payload');
+ });
+ }
+
+ private function createHandler()
+ {
+ return new RollbarHandler($this->rollbarNotifier, Logger::DEBUG);
+ }
+
+ private function createExceptionRecord($level = Logger::DEBUG, $message = 'test', $exception = null)
+ {
+ return $this->getRecord($level, $message, array(
+ 'exception' => $exception ?: new Exception()
+ ));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php
new file mode 100644
index 00000000..f1feb228
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/RotatingFileHandlerTest.php
@@ -0,0 +1,211 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use PHPUnit_Framework_Error_Deprecated;
+
+/**
+ * @covers Monolog\Handler\RotatingFileHandler
+ */
+class RotatingFileHandlerTest extends TestCase
+{
+ /**
+ * This var should be private but then the anonymous function
+ * in the `setUp` method won't be able to set it. `$this` cant't
+ * be used in the anonymous function in `setUp` because PHP 5.3
+ * does not support it.
+ */
+ public $lastError;
+
+ public function setUp()
+ {
+ $dir = __DIR__.'/Fixtures';
+ chmod($dir, 0777);
+ if (!is_writable($dir)) {
+ $this->markTestSkipped($dir.' must be writable to test the RotatingFileHandler.');
+ }
+ $this->lastError = null;
+ $self = $this;
+ // workaround with &$self used for PHP 5.3
+ set_error_handler(function($code, $message) use (&$self) {
+ $self->lastError = array(
+ 'code' => $code,
+ 'message' => $message,
+ );
+ });
+ }
+
+ private function assertErrorWasTriggered($code, $message)
+ {
+ if (empty($this->lastError)) {
+ $this->fail(
+ sprintf(
+ 'Failed asserting that error with code `%d` and message `%s` was triggered',
+ $code,
+ $message
+ )
+ );
+ }
+ $this->assertEquals($code, $this->lastError['code'], sprintf('Expected an error with code %d to be triggered, got `%s` instead', $code, $this->lastError['code']));
+ $this->assertEquals($message, $this->lastError['message'], sprintf('Expected an error with message `%d` to be triggered, got `%s` instead', $message, $this->lastError['message']));
+ }
+
+ public function testRotationCreatesNewFile()
+ {
+ touch(__DIR__.'/Fixtures/foo-'.date('Y-m-d', time() - 86400).'.rot');
+
+ $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot');
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->handle($this->getRecord());
+
+ $log = __DIR__.'/Fixtures/foo-'.date('Y-m-d').'.rot';
+ $this->assertTrue(file_exists($log));
+ $this->assertEquals('test', file_get_contents($log));
+ }
+
+ /**
+ * @dataProvider rotationTests
+ */
+ public function testRotation($createFile, $dateFormat, $timeCallback)
+ {
+ touch($old1 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-1)).'.rot');
+ touch($old2 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-2)).'.rot');
+ touch($old3 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-3)).'.rot');
+ touch($old4 = __DIR__.'/Fixtures/foo-'.date($dateFormat, $timeCallback(-4)).'.rot');
+
+ $log = __DIR__.'/Fixtures/foo-'.date($dateFormat).'.rot';
+
+ if ($createFile) {
+ touch($log);
+ }
+
+ $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot', 2);
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->setFilenameFormat('{filename}-{date}', $dateFormat);
+ $handler->handle($this->getRecord());
+
+ $handler->close();
+
+ $this->assertTrue(file_exists($log));
+ $this->assertTrue(file_exists($old1));
+ $this->assertEquals($createFile, file_exists($old2));
+ $this->assertEquals($createFile, file_exists($old3));
+ $this->assertEquals($createFile, file_exists($old4));
+ $this->assertEquals('test', file_get_contents($log));
+ }
+
+ public function rotationTests()
+ {
+ $now = time();
+ $dayCallback = function($ago) use ($now) {
+ return $now + 86400 * $ago;
+ };
+ $monthCallback = function($ago) {
+ return gmmktime(0, 0, 0, date('n') + $ago, 1, date('Y'));
+ };
+ $yearCallback = function($ago) {
+ return gmmktime(0, 0, 0, 1, 1, date('Y') + $ago);
+ };
+
+ return array(
+ 'Rotation is triggered when the file of the current day is not present'
+ => array(true, RotatingFileHandler::FILE_PER_DAY, $dayCallback),
+ 'Rotation is not triggered when the file of the current day is already present'
+ => array(false, RotatingFileHandler::FILE_PER_DAY, $dayCallback),
+
+ 'Rotation is triggered when the file of the current month is not present'
+ => array(true, RotatingFileHandler::FILE_PER_MONTH, $monthCallback),
+ 'Rotation is not triggered when the file of the current month is already present'
+ => array(false, RotatingFileHandler::FILE_PER_MONTH, $monthCallback),
+
+ 'Rotation is triggered when the file of the current year is not present'
+ => array(true, RotatingFileHandler::FILE_PER_YEAR, $yearCallback),
+ 'Rotation is not triggered when the file of the current year is already present'
+ => array(false, RotatingFileHandler::FILE_PER_YEAR, $yearCallback),
+ );
+ }
+
+ /**
+ * @dataProvider dateFormatProvider
+ */
+ public function testAllowOnlyFixedDefinedDateFormats($dateFormat, $valid)
+ {
+ $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot', 2);
+ $handler->setFilenameFormat('{filename}-{date}', $dateFormat);
+ if (!$valid) {
+ $this->assertErrorWasTriggered(
+ E_USER_DEPRECATED,
+ 'Invalid date format - format must be one of RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), '.
+ 'RotatingFileHandler::FILE_PER_MONTH ("Y-m") or RotatingFileHandler::FILE_PER_YEAR ("Y"), '.
+ 'or you can set one of the date formats using slashes, underscores and/or dots instead of dashes.'
+ );
+ }
+ }
+
+ public function dateFormatProvider()
+ {
+ return array(
+ array(RotatingFileHandler::FILE_PER_DAY, true),
+ array(RotatingFileHandler::FILE_PER_MONTH, true),
+ array(RotatingFileHandler::FILE_PER_YEAR, true),
+ array('m-d-Y', false),
+ array('Y-m-d-h-i', false)
+ );
+ }
+
+ /**
+ * @dataProvider filenameFormatProvider
+ */
+ public function testDisallowFilenameFormatsWithoutDate($filenameFormat, $valid)
+ {
+ $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot', 2);
+ $handler->setFilenameFormat($filenameFormat, RotatingFileHandler::FILE_PER_DAY);
+ if (!$valid) {
+ $this->assertErrorWasTriggered(
+ E_USER_DEPRECATED,
+ 'Invalid filename format - format should contain at least `{date}`, because otherwise rotating is impossible.'
+ );
+ }
+ }
+
+ public function filenameFormatProvider()
+ {
+ return array(
+ array('{filename}', false),
+ array('{filename}-{date}', true),
+ array('{date}', true),
+ array('foobar-{date}', true),
+ array('foo-{date}-bar', true),
+ array('{date}-foobar', true),
+ array('foobar', false),
+ );
+ }
+
+ public function testReuseCurrentFile()
+ {
+ $log = __DIR__.'/Fixtures/foo-'.date('Y-m-d').'.rot';
+ file_put_contents($log, "foo");
+ $handler = new RotatingFileHandler(__DIR__.'/Fixtures/foo.rot');
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->handle($this->getRecord());
+ $this->assertEquals('footest', file_get_contents($log));
+ }
+
+ public function tearDown()
+ {
+ foreach (glob(__DIR__.'/Fixtures/*.rot') as $file) {
+ unlink($file);
+ }
+ restore_error_handler();
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php
new file mode 100644
index 00000000..b354cee1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SamplingHandlerTest.php
@@ -0,0 +1,33 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+
+/**
+ * @covers Monolog\Handler\SamplingHandler::handle
+ */
+class SamplingHandlerTest extends TestCase
+{
+ public function testHandle()
+ {
+ $testHandler = new TestHandler();
+ $handler = new SamplingHandler($testHandler, 2);
+ for ($i = 0; $i < 10000; $i++) {
+ $handler->handle($this->getRecord());
+ }
+ $count = count($testHandler->getRecords());
+ // $count should be half of 10k, so between 4k and 6k
+ $this->assertLessThan(6000, $count);
+ $this->assertGreaterThan(4000, $count);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php
new file mode 100644
index 00000000..e1aa96d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/Slack/SlackRecordTest.php
@@ -0,0 +1,387 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler\Slack;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+
+/**
+ * @coversDefaultClass Monolog\Handler\Slack\SlackRecord
+ */
+class SlackRecordTest extends TestCase
+{
+ private $jsonPrettyPrintFlag;
+
+ protected function setUp()
+ {
+ $this->jsonPrettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128;
+ }
+
+ public function dataGetAttachmentColor()
+ {
+ return array(
+ array(Logger::DEBUG, SlackRecord::COLOR_DEFAULT),
+ array(Logger::INFO, SlackRecord::COLOR_GOOD),
+ array(Logger::NOTICE, SlackRecord::COLOR_GOOD),
+ array(Logger::WARNING, SlackRecord::COLOR_WARNING),
+ array(Logger::ERROR, SlackRecord::COLOR_DANGER),
+ array(Logger::CRITICAL, SlackRecord::COLOR_DANGER),
+ array(Logger::ALERT, SlackRecord::COLOR_DANGER),
+ array(Logger::EMERGENCY, SlackRecord::COLOR_DANGER),
+ );
+ }
+
+ /**
+ * @dataProvider dataGetAttachmentColor
+ * @param int $logLevel
+ * @param string $expectedColour RGB hex color or name of Slack color
+ * @covers ::getAttachmentColor
+ */
+ public function testGetAttachmentColor($logLevel, $expectedColour)
+ {
+ $slackRecord = new SlackRecord();
+ $this->assertSame(
+ $expectedColour,
+ $slackRecord->getAttachmentColor($logLevel)
+ );
+ }
+
+ public function testAddsChannel()
+ {
+ $channel = '#test';
+ $record = new SlackRecord($channel);
+ $data = $record->getSlackData($this->getRecord());
+
+ $this->assertArrayHasKey('channel', $data);
+ $this->assertSame($channel, $data['channel']);
+ }
+
+ public function testNoUsernameByDefault()
+ {
+ $record = new SlackRecord();
+ $data = $record->getSlackData($this->getRecord());
+
+ $this->assertArrayNotHasKey('username', $data);
+ }
+
+ /**
+ * @return array
+ */
+ public function dataStringify()
+ {
+ $jsonPrettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128;
+
+ $multipleDimensions = array(array(1, 2));
+ $numericKeys = array('library' => 'monolog');
+ $singleDimension = array(1, 'Hello', 'Jordi');
+
+ return array(
+ array(array(), '[]'),
+ array($multipleDimensions, json_encode($multipleDimensions, $jsonPrettyPrintFlag)),
+ array($numericKeys, json_encode($numericKeys, $jsonPrettyPrintFlag)),
+ array($singleDimension, json_encode($singleDimension))
+ );
+ }
+
+ /**
+ * @dataProvider dataStringify
+ */
+ public function testStringify($fields, $expectedResult)
+ {
+ $slackRecord = new SlackRecord(
+ '#test',
+ 'test',
+ true,
+ null,
+ true,
+ true
+ );
+
+ $this->assertSame($expectedResult, $slackRecord->stringify($fields));
+ }
+
+ public function testAddsCustomUsername()
+ {
+ $username = 'Monolog bot';
+ $record = new SlackRecord(null, $username);
+ $data = $record->getSlackData($this->getRecord());
+
+ $this->assertArrayHasKey('username', $data);
+ $this->assertSame($username, $data['username']);
+ }
+
+ public function testNoIcon()
+ {
+ $record = new SlackRecord();
+ $data = $record->getSlackData($this->getRecord());
+
+ $this->assertArrayNotHasKey('icon_emoji', $data);
+ }
+
+ public function testAddsIcon()
+ {
+ $record = $this->getRecord();
+ $slackRecord = new SlackRecord(null, null, false, 'ghost');
+ $data = $slackRecord->getSlackData($record);
+
+ $slackRecord2 = new SlackRecord(null, null, false, 'http://github.com/Seldaek/monolog');
+ $data2 = $slackRecord2->getSlackData($record);
+
+ $this->assertArrayHasKey('icon_emoji', $data);
+ $this->assertSame(':ghost:', $data['icon_emoji']);
+ $this->assertArrayHasKey('icon_url', $data2);
+ $this->assertSame('http://github.com/Seldaek/monolog', $data2['icon_url']);
+ }
+
+ public function testAttachmentsNotPresentIfNoAttachment()
+ {
+ $record = new SlackRecord(null, null, false);
+ $data = $record->getSlackData($this->getRecord());
+
+ $this->assertArrayNotHasKey('attachments', $data);
+ }
+
+ public function testAddsOneAttachment()
+ {
+ $record = new SlackRecord();
+ $data = $record->getSlackData($this->getRecord());
+
+ $this->assertArrayHasKey('attachments', $data);
+ $this->assertArrayHasKey(0, $data['attachments']);
+ $this->assertInternalType('array', $data['attachments'][0]);
+ }
+
+ public function testTextEqualsMessageIfNoAttachment()
+ {
+ $message = 'Test message';
+ $record = new SlackRecord(null, null, false);
+ $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
+
+ $this->assertArrayHasKey('text', $data);
+ $this->assertSame($message, $data['text']);
+ }
+
+ public function testTextEqualsFormatterOutput()
+ {
+ $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $formatter
+ ->expects($this->any())
+ ->method('format')
+ ->will($this->returnCallback(function ($record) { return $record['message'] . 'test'; }));
+
+ $formatter2 = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $formatter2
+ ->expects($this->any())
+ ->method('format')
+ ->will($this->returnCallback(function ($record) { return $record['message'] . 'test1'; }));
+
+ $message = 'Test message';
+ $record = new SlackRecord(null, null, false, null, false, false, array(), $formatter);
+ $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
+
+ $this->assertArrayHasKey('text', $data);
+ $this->assertSame($message . 'test', $data['text']);
+
+ $record->setFormatter($formatter2);
+ $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
+
+ $this->assertArrayHasKey('text', $data);
+ $this->assertSame($message . 'test1', $data['text']);
+ }
+
+ public function testAddsFallbackAndTextToAttachment()
+ {
+ $message = 'Test message';
+ $record = new SlackRecord(null);
+ $data = $record->getSlackData($this->getRecord(Logger::WARNING, $message));
+
+ $this->assertSame($message, $data['attachments'][0]['text']);
+ $this->assertSame($message, $data['attachments'][0]['fallback']);
+ }
+
+ public function testMapsLevelToColorAttachmentColor()
+ {
+ $record = new SlackRecord(null);
+ $errorLoggerRecord = $this->getRecord(Logger::ERROR);
+ $emergencyLoggerRecord = $this->getRecord(Logger::EMERGENCY);
+ $warningLoggerRecord = $this->getRecord(Logger::WARNING);
+ $infoLoggerRecord = $this->getRecord(Logger::INFO);
+ $debugLoggerRecord = $this->getRecord(Logger::DEBUG);
+
+ $data = $record->getSlackData($errorLoggerRecord);
+ $this->assertSame(SlackRecord::COLOR_DANGER, $data['attachments'][0]['color']);
+
+ $data = $record->getSlackData($emergencyLoggerRecord);
+ $this->assertSame(SlackRecord::COLOR_DANGER, $data['attachments'][0]['color']);
+
+ $data = $record->getSlackData($warningLoggerRecord);
+ $this->assertSame(SlackRecord::COLOR_WARNING, $data['attachments'][0]['color']);
+
+ $data = $record->getSlackData($infoLoggerRecord);
+ $this->assertSame(SlackRecord::COLOR_GOOD, $data['attachments'][0]['color']);
+
+ $data = $record->getSlackData($debugLoggerRecord);
+ $this->assertSame(SlackRecord::COLOR_DEFAULT, $data['attachments'][0]['color']);
+ }
+
+ public function testAddsShortAttachmentWithoutContextAndExtra()
+ {
+ $level = Logger::ERROR;
+ $levelName = Logger::getLevelName($level);
+ $record = new SlackRecord(null, null, true, null, true);
+ $data = $record->getSlackData($this->getRecord($level, 'test', array('test' => 1)));
+
+ $attachment = $data['attachments'][0];
+ $this->assertArrayHasKey('title', $attachment);
+ $this->assertArrayHasKey('fields', $attachment);
+ $this->assertSame($levelName, $attachment['title']);
+ $this->assertSame(array(), $attachment['fields']);
+ }
+
+ public function testAddsShortAttachmentWithContextAndExtra()
+ {
+ $level = Logger::ERROR;
+ $levelName = Logger::getLevelName($level);
+ $context = array('test' => 1);
+ $extra = array('tags' => array('web'));
+ $record = new SlackRecord(null, null, true, null, true, true);
+ $loggerRecord = $this->getRecord($level, 'test', $context);
+ $loggerRecord['extra'] = $extra;
+ $data = $record->getSlackData($loggerRecord);
+
+ $attachment = $data['attachments'][0];
+ $this->assertArrayHasKey('title', $attachment);
+ $this->assertArrayHasKey('fields', $attachment);
+ $this->assertCount(2, $attachment['fields']);
+ $this->assertSame($levelName, $attachment['title']);
+ $this->assertSame(
+ array(
+ array(
+ 'title' => 'Extra',
+ 'value' => sprintf('```%s```', json_encode($extra, $this->jsonPrettyPrintFlag)),
+ 'short' => false
+ ),
+ array(
+ 'title' => 'Context',
+ 'value' => sprintf('```%s```', json_encode($context, $this->jsonPrettyPrintFlag)),
+ 'short' => false
+ )
+ ),
+ $attachment['fields']
+ );
+ }
+
+ public function testAddsLongAttachmentWithoutContextAndExtra()
+ {
+ $level = Logger::ERROR;
+ $levelName = Logger::getLevelName($level);
+ $record = new SlackRecord(null, null, true, null);
+ $data = $record->getSlackData($this->getRecord($level, 'test', array('test' => 1)));
+
+ $attachment = $data['attachments'][0];
+ $this->assertArrayHasKey('title', $attachment);
+ $this->assertArrayHasKey('fields', $attachment);
+ $this->assertCount(1, $attachment['fields']);
+ $this->assertSame('Message', $attachment['title']);
+ $this->assertSame(
+ array(array(
+ 'title' => 'Level',
+ 'value' => $levelName,
+ 'short' => false
+ )),
+ $attachment['fields']
+ );
+ }
+
+ public function testAddsLongAttachmentWithContextAndExtra()
+ {
+ $level = Logger::ERROR;
+ $levelName = Logger::getLevelName($level);
+ $context = array('test' => 1);
+ $extra = array('tags' => array('web'));
+ $record = new SlackRecord(null, null, true, null, false, true);
+ $loggerRecord = $this->getRecord($level, 'test', $context);
+ $loggerRecord['extra'] = $extra;
+ $data = $record->getSlackData($loggerRecord);
+
+ $expectedFields = array(
+ array(
+ 'title' => 'Level',
+ 'value' => $levelName,
+ 'short' => false,
+ ),
+ array(
+ 'title' => 'tags',
+ 'value' => sprintf('```%s```', json_encode($extra['tags'])),
+ 'short' => false
+ ),
+ array(
+ 'title' => 'test',
+ 'value' => $context['test'],
+ 'short' => false
+ )
+ );
+
+ $attachment = $data['attachments'][0];
+ $this->assertArrayHasKey('title', $attachment);
+ $this->assertArrayHasKey('fields', $attachment);
+ $this->assertCount(3, $attachment['fields']);
+ $this->assertSame('Message', $attachment['title']);
+ $this->assertSame(
+ $expectedFields,
+ $attachment['fields']
+ );
+ }
+
+ public function testAddsTimestampToAttachment()
+ {
+ $record = $this->getRecord();
+ $slackRecord = new SlackRecord();
+ $data = $slackRecord->getSlackData($this->getRecord());
+
+ $attachment = $data['attachments'][0];
+ $this->assertArrayHasKey('ts', $attachment);
+ $this->assertSame($record['datetime']->getTimestamp(), $attachment['ts']);
+ }
+
+ public function testExcludeExtraAndContextFields()
+ {
+ $record = $this->getRecord(
+ Logger::WARNING,
+ 'test',
+ array('info' => array('library' => 'monolog', 'author' => 'Jordi'))
+ );
+ $record['extra'] = array('tags' => array('web', 'cli'));
+
+ $slackRecord = new SlackRecord(null, null, true, null, false, true, array('context.info.library', 'extra.tags.1'));
+ $data = $slackRecord->getSlackData($record);
+ $attachment = $data['attachments'][0];
+
+ $expected = array(
+ array(
+ 'title' => 'info',
+ 'value' => sprintf('```%s```', json_encode(array('author' => 'Jordi'), $this->jsonPrettyPrintFlag)),
+ 'short' => false
+ ),
+ array(
+ 'title' => 'tags',
+ 'value' => sprintf('```%s```', json_encode(array('web'))),
+ 'short' => false
+ ),
+ );
+
+ foreach ($expected as $field) {
+ $this->assertNotFalse(array_search($field, $attachment['fields']));
+ break;
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php
new file mode 100644
index 00000000..b12b01f4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackHandlerTest.php
@@ -0,0 +1,155 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+use Monolog\Handler\Slack\SlackRecord;
+
+/**
+ * @author Greg Kedzierski <greg@gregkedzierski.com>
+ * @see https://api.slack.com/
+ */
+class SlackHandlerTest extends TestCase
+{
+ /**
+ * @var resource
+ */
+ private $res;
+
+ /**
+ * @var SlackHandler
+ */
+ private $handler;
+
+ public function setUp()
+ {
+ if (!extension_loaded('openssl')) {
+ $this->markTestSkipped('This test requires openssl to run');
+ }
+ }
+
+ public function testWriteHeader()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/POST \/api\/chat.postMessage HTTP\/1.1\\r\\nHost: slack.com\\r\\nContent-Type: application\/x-www-form-urlencoded\\r\\nContent-Length: \d{2,4}\\r\\n\\r\\n/', $content);
+ }
+
+ public function testWriteContent()
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegExp('/username=Monolog/', $content);
+ $this->assertRegExp('/channel=channel1/', $content);
+ $this->assertRegExp('/token=myToken/', $content);
+ $this->assertRegExp('/attachments/', $content);
+ }
+
+ public function testWriteContentUsesFormatterIfProvided()
+ {
+ $this->createHandler('myToken', 'channel1', 'Monolog', false);
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->createHandler('myToken', 'channel1', 'Monolog', false);
+ $this->handler->setFormatter(new LineFormatter('foo--%message%'));
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test2'));
+ fseek($this->res, 0);
+ $content2 = fread($this->res, 1024);
+
+ $this->assertRegexp('/text=test1/', $content);
+ $this->assertRegexp('/text=foo--test2/', $content2);
+ }
+
+ public function testWriteContentWithEmoji()
+ {
+ $this->createHandler('myToken', 'channel1', 'Monolog', true, 'alien');
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/icon_emoji=%3Aalien%3A/', $content);
+ }
+
+ /**
+ * @dataProvider provideLevelColors
+ */
+ public function testWriteContentWithColors($level, $expectedColor)
+ {
+ $this->createHandler();
+ $this->handler->handle($this->getRecord($level, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/%22color%22%3A%22'.$expectedColor.'/', $content);
+ }
+
+ public function testWriteContentWithPlainTextMessage()
+ {
+ $this->createHandler('myToken', 'channel1', 'Monolog', false);
+ $this->handler->handle($this->getRecord(Logger::CRITICAL, 'test1'));
+ fseek($this->res, 0);
+ $content = fread($this->res, 1024);
+
+ $this->assertRegexp('/text=test1/', $content);
+ }
+
+ public function provideLevelColors()
+ {
+ return array(
+ array(Logger::DEBUG, urlencode(SlackRecord::COLOR_DEFAULT)),
+ array(Logger::INFO, SlackRecord::COLOR_GOOD),
+ array(Logger::NOTICE, SlackRecord::COLOR_GOOD),
+ array(Logger::WARNING, SlackRecord::COLOR_WARNING),
+ array(Logger::ERROR, SlackRecord::COLOR_DANGER),
+ array(Logger::CRITICAL, SlackRecord::COLOR_DANGER),
+ array(Logger::ALERT, SlackRecord::COLOR_DANGER),
+ array(Logger::EMERGENCY,SlackRecord::COLOR_DANGER),
+ );
+ }
+
+ private function createHandler($token = 'myToken', $channel = 'channel1', $username = 'Monolog', $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeExtra = false)
+ {
+ $constructorArgs = array($token, $channel, $username, $useAttachment, $iconEmoji, Logger::DEBUG, true, $useShortAttachment, $includeExtra);
+ $this->res = fopen('php://memory', 'a');
+ $this->handler = $this->getMock(
+ '\Monolog\Handler\SlackHandler',
+ array('fsockopen', 'streamSetTimeout', 'closeSocket'),
+ $constructorArgs
+ );
+
+ $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
+ $reflectionProperty->setAccessible(true);
+ $reflectionProperty->setValue($this->handler, 'localhost:1234');
+
+ $this->handler->expects($this->any())
+ ->method('fsockopen')
+ ->will($this->returnValue($this->res));
+ $this->handler->expects($this->any())
+ ->method('streamSetTimeout')
+ ->will($this->returnValue(true));
+ $this->handler->expects($this->any())
+ ->method('closeSocket')
+ ->will($this->returnValue(true));
+
+ $this->handler->setFormatter($this->getIdentityFormatter());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php
new file mode 100644
index 00000000..c9229e26
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackWebhookHandlerTest.php
@@ -0,0 +1,107 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+use Monolog\Formatter\LineFormatter;
+use Monolog\Handler\Slack\SlackRecord;
+
+/**
+ * @author Haralan Dobrev <hkdobrev@gmail.com>
+ * @see https://api.slack.com/incoming-webhooks
+ * @coversDefaultClass Monolog\Handler\SlackWebhookHandler
+ */
+class SlackWebhookHandlerTest extends TestCase
+{
+ const WEBHOOK_URL = 'https://hooks.slack.com/services/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E';
+
+ /**
+ * @covers ::__construct
+ * @covers ::getSlackRecord
+ */
+ public function testConstructorMinimal()
+ {
+ $handler = new SlackWebhookHandler(self::WEBHOOK_URL);
+ $record = $this->getRecord();
+ $slackRecord = $handler->getSlackRecord();
+ $this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
+ $this->assertEquals(array(
+ 'attachments' => array(
+ array(
+ 'fallback' => 'test',
+ 'text' => 'test',
+ 'color' => SlackRecord::COLOR_WARNING,
+ 'fields' => array(
+ array(
+ 'title' => 'Level',
+ 'value' => 'WARNING',
+ 'short' => false,
+ ),
+ ),
+ 'title' => 'Message',
+ 'mrkdwn_in' => array('fields'),
+ 'ts' => $record['datetime']->getTimestamp(),
+ ),
+ ),
+ ), $slackRecord->getSlackData($record));
+ }
+
+ /**
+ * @covers ::__construct
+ * @covers ::getSlackRecord
+ */
+ public function testConstructorFull()
+ {
+ $handler = new SlackWebhookHandler(
+ self::WEBHOOK_URL,
+ 'test-channel',
+ 'test-username',
+ false,
+ ':ghost:',
+ false,
+ false,
+ Logger::DEBUG,
+ false
+ );
+
+ $slackRecord = $handler->getSlackRecord();
+ $this->assertInstanceOf('Monolog\Handler\Slack\SlackRecord', $slackRecord);
+ $this->assertEquals(array(
+ 'username' => 'test-username',
+ 'text' => 'test',
+ 'channel' => 'test-channel',
+ 'icon_emoji' => ':ghost:',
+ ), $slackRecord->getSlackData($this->getRecord()));
+ }
+
+ /**
+ * @covers ::getFormatter
+ */
+ public function testGetFormatter()
+ {
+ $handler = new SlackWebhookHandler(self::WEBHOOK_URL);
+ $formatter = $handler->getFormatter();
+ $this->assertInstanceOf('Monolog\Formatter\FormatterInterface', $formatter);
+ }
+
+ /**
+ * @covers ::setFormatter
+ */
+ public function testSetFormatter()
+ {
+ $handler = new SlackWebhookHandler(self::WEBHOOK_URL);
+ $formatter = new LineFormatter();
+ $handler->setFormatter($formatter);
+ $this->assertSame($formatter, $handler->getFormatter());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php
new file mode 100644
index 00000000..b1b02bde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SlackbotHandlerTest.php
@@ -0,0 +1,47 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @author Haralan Dobrev <hkdobrev@gmail.com>
+ * @see https://slack.com/apps/A0F81R8ET-slackbot
+ * @coversDefaultClass Monolog\Handler\SlackbotHandler
+ */
+class SlackbotHandlerTest extends TestCase
+{
+ /**
+ * @covers ::__construct
+ */
+ public function testConstructorMinimal()
+ {
+ $handler = new SlackbotHandler('test-team', 'test-token', 'test-channel');
+ $this->assertInstanceOf('Monolog\Handler\AbstractProcessingHandler', $handler);
+ }
+
+ /**
+ * @covers ::__construct
+ */
+ public function testConstructorFull()
+ {
+ $handler = new SlackbotHandler(
+ 'test-team',
+ 'test-token',
+ 'test-channel',
+ Logger::DEBUG,
+ false
+ );
+ $this->assertInstanceOf('Monolog\Handler\AbstractProcessingHandler', $handler);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php
new file mode 100644
index 00000000..1f9c1f28
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SocketHandlerTest.php
@@ -0,0 +1,309 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @author Pablo de Leon Belloc <pablolb@gmail.com>
+ */
+class SocketHandlerTest extends TestCase
+{
+ /**
+ * @var Monolog\Handler\SocketHandler
+ */
+ private $handler;
+
+ /**
+ * @var resource
+ */
+ private $res;
+
+ /**
+ * @expectedException UnexpectedValueException
+ */
+ public function testInvalidHostname()
+ {
+ $this->createHandler('garbage://here');
+ $this->writeRecord('data');
+ }
+
+ /**
+ * @expectedException \InvalidArgumentException
+ */
+ public function testBadConnectionTimeout()
+ {
+ $this->createHandler('localhost:1234');
+ $this->handler->setConnectionTimeout(-1);
+ }
+
+ public function testSetConnectionTimeout()
+ {
+ $this->createHandler('localhost:1234');
+ $this->handler->setConnectionTimeout(10.1);
+ $this->assertEquals(10.1, $this->handler->getConnectionTimeout());
+ }
+
+ /**
+ * @expectedException \InvalidArgumentException
+ */
+ public function testBadTimeout()
+ {
+ $this->createHandler('localhost:1234');
+ $this->handler->setTimeout(-1);
+ }
+
+ public function testSetTimeout()
+ {
+ $this->createHandler('localhost:1234');
+ $this->handler->setTimeout(10.25);
+ $this->assertEquals(10.25, $this->handler->getTimeout());
+ }
+
+ public function testSetWritingTimeout()
+ {
+ $this->createHandler('localhost:1234');
+ $this->handler->setWritingTimeout(10.25);
+ $this->assertEquals(10.25, $this->handler->getWritingTimeout());
+ }
+
+ public function testSetConnectionString()
+ {
+ $this->createHandler('tcp://localhost:9090');
+ $this->assertEquals('tcp://localhost:9090', $this->handler->getConnectionString());
+ }
+
+ /**
+ * @expectedException UnexpectedValueException
+ */
+ public function testExceptionIsThrownOnFsockopenError()
+ {
+ $this->setMockHandler(array('fsockopen'));
+ $this->handler->expects($this->once())
+ ->method('fsockopen')
+ ->will($this->returnValue(false));
+ $this->writeRecord('Hello world');
+ }
+
+ /**
+ * @expectedException UnexpectedValueException
+ */
+ public function testExceptionIsThrownOnPfsockopenError()
+ {
+ $this->setMockHandler(array('pfsockopen'));
+ $this->handler->expects($this->once())
+ ->method('pfsockopen')
+ ->will($this->returnValue(false));
+ $this->handler->setPersistent(true);
+ $this->writeRecord('Hello world');
+ }
+
+ /**
+ * @expectedException UnexpectedValueException
+ */
+ public function testExceptionIsThrownIfCannotSetTimeout()
+ {
+ $this->setMockHandler(array('streamSetTimeout'));
+ $this->handler->expects($this->once())
+ ->method('streamSetTimeout')
+ ->will($this->returnValue(false));
+ $this->writeRecord('Hello world');
+ }
+
+ /**
+ * @expectedException RuntimeException
+ */
+ public function testWriteFailsOnIfFwriteReturnsFalse()
+ {
+ $this->setMockHandler(array('fwrite'));
+
+ $callback = function ($arg) {
+ $map = array(
+ 'Hello world' => 6,
+ 'world' => false,
+ );
+
+ return $map[$arg];
+ };
+
+ $this->handler->expects($this->exactly(2))
+ ->method('fwrite')
+ ->will($this->returnCallback($callback));
+
+ $this->writeRecord('Hello world');
+ }
+
+ /**
+ * @expectedException RuntimeException
+ */
+ public function testWriteFailsIfStreamTimesOut()
+ {
+ $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
+
+ $callback = function ($arg) {
+ $map = array(
+ 'Hello world' => 6,
+ 'world' => 5,
+ );
+
+ return $map[$arg];
+ };
+
+ $this->handler->expects($this->exactly(1))
+ ->method('fwrite')
+ ->will($this->returnCallback($callback));
+ $this->handler->expects($this->exactly(1))
+ ->method('streamGetMetadata')
+ ->will($this->returnValue(array('timed_out' => true)));
+
+ $this->writeRecord('Hello world');
+ }
+
+ /**
+ * @expectedException RuntimeException
+ */
+ public function testWriteFailsOnIncompleteWrite()
+ {
+ $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
+
+ $res = $this->res;
+ $callback = function ($string) use ($res) {
+ fclose($res);
+
+ return strlen('Hello');
+ };
+
+ $this->handler->expects($this->exactly(1))
+ ->method('fwrite')
+ ->will($this->returnCallback($callback));
+ $this->handler->expects($this->exactly(1))
+ ->method('streamGetMetadata')
+ ->will($this->returnValue(array('timed_out' => false)));
+
+ $this->writeRecord('Hello world');
+ }
+
+ public function testWriteWithMemoryFile()
+ {
+ $this->setMockHandler();
+ $this->writeRecord('test1');
+ $this->writeRecord('test2');
+ $this->writeRecord('test3');
+ fseek($this->res, 0);
+ $this->assertEquals('test1test2test3', fread($this->res, 1024));
+ }
+
+ public function testWriteWithMock()
+ {
+ $this->setMockHandler(array('fwrite'));
+
+ $callback = function ($arg) {
+ $map = array(
+ 'Hello world' => 6,
+ 'world' => 5,
+ );
+
+ return $map[$arg];
+ };
+
+ $this->handler->expects($this->exactly(2))
+ ->method('fwrite')
+ ->will($this->returnCallback($callback));
+
+ $this->writeRecord('Hello world');
+ }
+
+ public function testClose()
+ {
+ $this->setMockHandler();
+ $this->writeRecord('Hello world');
+ $this->assertInternalType('resource', $this->res);
+ $this->handler->close();
+ $this->assertFalse(is_resource($this->res), "Expected resource to be closed after closing handler");
+ }
+
+ public function testCloseDoesNotClosePersistentSocket()
+ {
+ $this->setMockHandler();
+ $this->handler->setPersistent(true);
+ $this->writeRecord('Hello world');
+ $this->assertTrue(is_resource($this->res));
+ $this->handler->close();
+ $this->assertTrue(is_resource($this->res));
+ }
+
+ /**
+ * @expectedException \RuntimeException
+ */
+ public function testAvoidInfiniteLoopWhenNoDataIsWrittenForAWritingTimeoutSeconds()
+ {
+ $this->setMockHandler(array('fwrite', 'streamGetMetadata'));
+
+ $this->handler->expects($this->any())
+ ->method('fwrite')
+ ->will($this->returnValue(0));
+
+ $this->handler->expects($this->any())
+ ->method('streamGetMetadata')
+ ->will($this->returnValue(array('timed_out' => false)));
+
+ $this->handler->setWritingTimeout(1);
+
+ $this->writeRecord('Hello world');
+ }
+
+ private function createHandler($connectionString)
+ {
+ $this->handler = new SocketHandler($connectionString);
+ $this->handler->setFormatter($this->getIdentityFormatter());
+ }
+
+ private function writeRecord($string)
+ {
+ $this->handler->handle($this->getRecord(Logger::WARNING, $string));
+ }
+
+ private function setMockHandler(array $methods = array())
+ {
+ $this->res = fopen('php://memory', 'a');
+
+ $defaultMethods = array('fsockopen', 'pfsockopen', 'streamSetTimeout');
+ $newMethods = array_diff($methods, $defaultMethods);
+
+ $finalMethods = array_merge($defaultMethods, $newMethods);
+
+ $this->handler = $this->getMock(
+ '\Monolog\Handler\SocketHandler', $finalMethods, array('localhost:1234')
+ );
+
+ if (!in_array('fsockopen', $methods)) {
+ $this->handler->expects($this->any())
+ ->method('fsockopen')
+ ->will($this->returnValue($this->res));
+ }
+
+ if (!in_array('pfsockopen', $methods)) {
+ $this->handler->expects($this->any())
+ ->method('pfsockopen')
+ ->will($this->returnValue($this->res));
+ }
+
+ if (!in_array('streamSetTimeout', $methods)) {
+ $this->handler->expects($this->any())
+ ->method('streamSetTimeout')
+ ->will($this->returnValue(true));
+ }
+
+ $this->handler->setFormatter($this->getIdentityFormatter());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php
new file mode 100644
index 00000000..487030fe
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/StreamHandlerTest.php
@@ -0,0 +1,184 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class StreamHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWrite()
+ {
+ $handle = fopen('php://memory', 'a+');
+ $handler = new StreamHandler($handle);
+ $handler->setFormatter($this->getIdentityFormatter());
+ $handler->handle($this->getRecord(Logger::WARNING, 'test'));
+ $handler->handle($this->getRecord(Logger::WARNING, 'test2'));
+ $handler->handle($this->getRecord(Logger::WARNING, 'test3'));
+ fseek($handle, 0);
+ $this->assertEquals('testtest2test3', fread($handle, 100));
+ }
+
+ /**
+ * @covers Monolog\Handler\StreamHandler::close
+ */
+ public function testCloseKeepsExternalHandlersOpen()
+ {
+ $handle = fopen('php://memory', 'a+');
+ $handler = new StreamHandler($handle);
+ $this->assertTrue(is_resource($handle));
+ $handler->close();
+ $this->assertTrue(is_resource($handle));
+ }
+
+ /**
+ * @covers Monolog\Handler\StreamHandler::close
+ */
+ public function testClose()
+ {
+ $handler = new StreamHandler('php://memory');
+ $handler->handle($this->getRecord(Logger::WARNING, 'test'));
+ $streamProp = new \ReflectionProperty('Monolog\Handler\StreamHandler', 'stream');
+ $streamProp->setAccessible(true);
+ $handle = $streamProp->getValue($handler);
+
+ $this->assertTrue(is_resource($handle));
+ $handler->close();
+ $this->assertFalse(is_resource($handle));
+ }
+
+ /**
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteCreatesTheStreamResource()
+ {
+ $handler = new StreamHandler('php://memory');
+ $handler->handle($this->getRecord());
+ }
+
+ /**
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteLocking()
+ {
+ $temp = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'monolog_locked_log';
+ $handler = new StreamHandler($temp, Logger::DEBUG, true, null, true);
+ $handler->handle($this->getRecord());
+ }
+
+ /**
+ * @expectedException LogicException
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteMissingResource()
+ {
+ $handler = new StreamHandler(null);
+ $handler->handle($this->getRecord());
+ }
+
+ public function invalidArgumentProvider()
+ {
+ return array(
+ array(1),
+ array(array()),
+ array(array('bogus://url')),
+ );
+ }
+
+ /**
+ * @dataProvider invalidArgumentProvider
+ * @expectedException InvalidArgumentException
+ * @covers Monolog\Handler\StreamHandler::__construct
+ */
+ public function testWriteInvalidArgument($invalidArgument)
+ {
+ $handler = new StreamHandler($invalidArgument);
+ }
+
+ /**
+ * @expectedException UnexpectedValueException
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteInvalidResource()
+ {
+ $handler = new StreamHandler('bogus://url');
+ $handler->handle($this->getRecord());
+ }
+
+ /**
+ * @expectedException UnexpectedValueException
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteNonExistingResource()
+ {
+ $handler = new StreamHandler('ftp://foo/bar/baz/'.rand(0, 10000));
+ $handler->handle($this->getRecord());
+ }
+
+ /**
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteNonExistingPath()
+ {
+ $handler = new StreamHandler(sys_get_temp_dir().'/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
+ $handler->handle($this->getRecord());
+ }
+
+ /**
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteNonExistingFileResource()
+ {
+ $handler = new StreamHandler('file://'.sys_get_temp_dir().'/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
+ $handler->handle($this->getRecord());
+ }
+
+ /**
+ * @expectedException Exception
+ * @expectedExceptionMessageRegExp /There is no existing directory at/
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteNonExistingAndNotCreatablePath()
+ {
+ if (defined('PHP_WINDOWS_VERSION_BUILD')) {
+ $this->markTestSkipped('Permissions checks can not run on windows');
+ }
+ $handler = new StreamHandler('/foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
+ $handler->handle($this->getRecord());
+ }
+
+ /**
+ * @expectedException Exception
+ * @expectedExceptionMessageRegExp /There is no existing directory at/
+ * @covers Monolog\Handler\StreamHandler::__construct
+ * @covers Monolog\Handler\StreamHandler::write
+ */
+ public function testWriteNonExistingAndNotCreatableFileResource()
+ {
+ if (defined('PHP_WINDOWS_VERSION_BUILD')) {
+ $this->markTestSkipped('Permissions checks can not run on windows');
+ }
+ $handler = new StreamHandler('file:///foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
+ $handler->handle($this->getRecord());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php
new file mode 100644
index 00000000..1d62940f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SwiftMailerHandlerTest.php
@@ -0,0 +1,113 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+
+class SwiftMailerHandlerTest extends TestCase
+{
+ /** @var \Swift_Mailer|\PHPUnit_Framework_MockObject_MockObject */
+ private $mailer;
+
+ public function setUp()
+ {
+ $this->mailer = $this
+ ->getMockBuilder('Swift_Mailer')
+ ->disableOriginalConstructor()
+ ->getMock();
+ }
+
+ public function testMessageCreationIsLazyWhenUsingCallback()
+ {
+ $this->mailer->expects($this->never())
+ ->method('send');
+
+ $callback = function () {
+ throw new \RuntimeException('Swift_Message creation callback should not have been called in this test');
+ };
+ $handler = new SwiftMailerHandler($this->mailer, $callback);
+
+ $records = array(
+ $this->getRecord(Logger::DEBUG),
+ $this->getRecord(Logger::INFO),
+ );
+ $handler->handleBatch($records);
+ }
+
+ public function testMessageCanBeCustomizedGivenLoggedData()
+ {
+ // Wire Mailer to expect a specific Swift_Message with a customized Subject
+ $expectedMessage = new \Swift_Message();
+ $this->mailer->expects($this->once())
+ ->method('send')
+ ->with($this->callback(function ($value) use ($expectedMessage) {
+ return $value instanceof \Swift_Message
+ && $value->getSubject() === 'Emergency'
+ && $value === $expectedMessage;
+ }));
+
+ // Callback dynamically changes subject based on number of logged records
+ $callback = function ($content, array $records) use ($expectedMessage) {
+ $subject = count($records) > 0 ? 'Emergency' : 'Normal';
+ $expectedMessage->setSubject($subject);
+
+ return $expectedMessage;
+ };
+ $handler = new SwiftMailerHandler($this->mailer, $callback);
+
+ // Logging 1 record makes this an Emergency
+ $records = array(
+ $this->getRecord(Logger::EMERGENCY),
+ );
+ $handler->handleBatch($records);
+ }
+
+ public function testMessageSubjectFormatting()
+ {
+ // Wire Mailer to expect a specific Swift_Message with a customized Subject
+ $messageTemplate = new \Swift_Message();
+ $messageTemplate->setSubject('Alert: %level_name% %message%');
+ $receivedMessage = null;
+
+ $this->mailer->expects($this->once())
+ ->method('send')
+ ->with($this->callback(function ($value) use (&$receivedMessage) {
+ $receivedMessage = $value;
+ return true;
+ }));
+
+ $handler = new SwiftMailerHandler($this->mailer, $messageTemplate);
+
+ $records = array(
+ $this->getRecord(Logger::EMERGENCY),
+ );
+ $handler->handleBatch($records);
+
+ $this->assertEquals('Alert: EMERGENCY test', $receivedMessage->getSubject());
+ }
+
+ public function testMessageHaveUniqueId()
+ {
+ $messageTemplate = new \Swift_Message();
+ $handler = new SwiftMailerHandler($this->mailer, $messageTemplate);
+
+ $method = new \ReflectionMethod('Monolog\Handler\SwiftMailerHandler', 'buildMessage');
+ $method->setAccessible(true);
+ $method->invokeArgs($handler, array($messageTemplate, array()));
+
+ $builtMessage1 = $method->invoke($handler, $messageTemplate, array());
+ $builtMessage2 = $method->invoke($handler, $messageTemplate, array());
+
+ $this->assertFalse($builtMessage1->getId() === $builtMessage2->getId(), 'Two different messages have the same id');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php
new file mode 100644
index 00000000..8f9e46bf
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogHandlerTest.php
@@ -0,0 +1,44 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\Logger;
+
+class SyslogHandlerTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @covers Monolog\Handler\SyslogHandler::__construct
+ */
+ public function testConstruct()
+ {
+ $handler = new SyslogHandler('test');
+ $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
+
+ $handler = new SyslogHandler('test', LOG_USER);
+ $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
+
+ $handler = new SyslogHandler('test', 'user');
+ $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
+
+ $handler = new SyslogHandler('test', LOG_USER, Logger::DEBUG, true, LOG_PERROR);
+ $this->assertInstanceOf('Monolog\Handler\SyslogHandler', $handler);
+ }
+
+ /**
+ * @covers Monolog\Handler\SyslogHandler::__construct
+ */
+ public function testConstructInvalidFacility()
+ {
+ $this->setExpectedException('UnexpectedValueException');
+ $handler = new SyslogHandler('test', 'unknown');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php
new file mode 100644
index 00000000..7ee8a985
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/SyslogUdpHandlerTest.php
@@ -0,0 +1,76 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+
+/**
+ * @requires extension sockets
+ */
+class SyslogUdpHandlerTest extends TestCase
+{
+ /**
+ * @expectedException UnexpectedValueException
+ */
+ public function testWeValidateFacilities()
+ {
+ $handler = new SyslogUdpHandler("ip", null, "invalidFacility");
+ }
+
+ public function testWeSplitIntoLines()
+ {
+ $time = '2014-01-07T12:34';
+ $pid = getmypid();
+ $host = gethostname();
+
+ $handler = $this->getMockBuilder('\Monolog\Handler\SyslogUdpHandler')
+ ->setConstructorArgs(array("127.0.0.1", 514, "authpriv"))
+ ->setMethods(array('getDateTime'))
+ ->getMock();
+
+ $handler->method('getDateTime')
+ ->willReturn($time);
+
+ $handler->setFormatter(new \Monolog\Formatter\ChromePHPFormatter());
+
+ $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('write'), array('lol', 'lol'));
+ $socket->expects($this->at(0))
+ ->method('write')
+ ->with("lol", "<".(LOG_AUTHPRIV + LOG_WARNING).">1 $time $host php $pid - - ");
+ $socket->expects($this->at(1))
+ ->method('write')
+ ->with("hej", "<".(LOG_AUTHPRIV + LOG_WARNING).">1 $time $host php $pid - - ");
+
+ $handler->setSocket($socket);
+
+ $handler->handle($this->getRecordWithMessage("hej\nlol"));
+ }
+
+ public function testSplitWorksOnEmptyMsg()
+ {
+ $handler = new SyslogUdpHandler("127.0.0.1", 514, "authpriv");
+ $handler->setFormatter($this->getIdentityFormatter());
+
+ $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('write'), array('lol', 'lol'));
+ $socket->expects($this->never())
+ ->method('write');
+
+ $handler->setSocket($socket);
+
+ $handler->handle($this->getRecordWithMessage(null));
+ }
+
+ protected function getRecordWithMessage($msg)
+ {
+ return array('message' => $msg, 'level' => \Monolog\Logger::WARNING, 'context' => null, 'extra' => array(), 'channel' => 'lol');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php
new file mode 100644
index 00000000..bfb8d3df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/TestHandlerTest.php
@@ -0,0 +1,70 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+/**
+ * @covers Monolog\Handler\TestHandler
+ */
+class TestHandlerTest extends TestCase
+{
+ /**
+ * @dataProvider methodProvider
+ */
+ public function testHandler($method, $level)
+ {
+ $handler = new TestHandler;
+ $record = $this->getRecord($level, 'test'.$method);
+ $this->assertFalse($handler->hasRecords($level));
+ $this->assertFalse($handler->hasRecord($record, $level));
+ $this->assertFalse($handler->{'has'.$method}($record), 'has'.$method);
+ $this->assertFalse($handler->{'has'.$method.'ThatContains'}('test'), 'has'.$method.'ThatContains');
+ $this->assertFalse($handler->{'has'.$method.'ThatPasses'}(function ($rec) {
+ return true;
+ }), 'has'.$method.'ThatPasses');
+ $this->assertFalse($handler->{'has'.$method.'ThatMatches'}('/test\w+/'));
+ $this->assertFalse($handler->{'has'.$method.'Records'}(), 'has'.$method.'Records');
+ $handler->handle($record);
+
+ $this->assertFalse($handler->{'has'.$method}('bar'), 'has'.$method);
+ $this->assertTrue($handler->hasRecords($level));
+ $this->assertTrue($handler->hasRecord($record, $level));
+ $this->assertTrue($handler->{'has'.$method}($record), 'has'.$method);
+ $this->assertTrue($handler->{'has'.$method}('test'.$method), 'has'.$method);
+ $this->assertTrue($handler->{'has'.$method.'ThatContains'}('test'), 'has'.$method.'ThatContains');
+ $this->assertTrue($handler->{'has'.$method.'ThatPasses'}(function ($rec) {
+ return true;
+ }), 'has'.$method.'ThatPasses');
+ $this->assertTrue($handler->{'has'.$method.'ThatMatches'}('/test\w+/'));
+ $this->assertTrue($handler->{'has'.$method.'Records'}(), 'has'.$method.'Records');
+
+ $records = $handler->getRecords();
+ unset($records[0]['formatted']);
+ $this->assertEquals(array($record), $records);
+ }
+
+ public function methodProvider()
+ {
+ return array(
+ array('Emergency', Logger::EMERGENCY),
+ array('Alert' , Logger::ALERT),
+ array('Critical' , Logger::CRITICAL),
+ array('Error' , Logger::ERROR),
+ array('Warning' , Logger::WARNING),
+ array('Info' , Logger::INFO),
+ array('Notice' , Logger::NOTICE),
+ array('Debug' , Logger::DEBUG),
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
new file mode 100644
index 00000000..fa524d00
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
@@ -0,0 +1,64 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Handler\SyslogUdp\UdpSocket;
+
+/**
+ * @requires extension sockets
+ */
+class UdpSocketTest extends TestCase
+{
+ public function testWeDoNotTruncateShortMessages()
+ {
+ $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
+
+ $socket->expects($this->at(0))
+ ->method('send')
+ ->with("HEADER: The quick brown fox jumps over the lazy dog");
+
+ $socket->write("The quick brown fox jumps over the lazy dog", "HEADER: ");
+ }
+
+ public function testLongMessagesAreTruncated()
+ {
+ $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
+
+ $truncatedString = str_repeat("derp", 16254).'d';
+
+ $socket->expects($this->exactly(1))
+ ->method('send')
+ ->with("HEADER" . $truncatedString);
+
+ $longString = str_repeat("derp", 20000);
+
+ $socket->write($longString, "HEADER");
+ }
+
+ public function testDoubleCloseDoesNotError()
+ {
+ $socket = new UdpSocket('127.0.0.1', 514);
+ $socket->close();
+ $socket->close();
+ }
+
+ /**
+ * @expectedException LogicException
+ */
+ public function testWriteAfterCloseErrors()
+ {
+ $socket = new UdpSocket('127.0.0.1', 514);
+ $socket->close();
+ $socket->write('foo', "HEADER");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php
new file mode 100644
index 00000000..8d37a1fc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/WhatFailureGroupHandlerTest.php
@@ -0,0 +1,121 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+use Monolog\Logger;
+
+class WhatFailureGroupHandlerTest extends TestCase
+{
+ /**
+ * @covers Monolog\Handler\WhatFailureGroupHandler::__construct
+ * @expectedException InvalidArgumentException
+ */
+ public function testConstructorOnlyTakesHandler()
+ {
+ new WhatFailureGroupHandler(array(new TestHandler(), "foo"));
+ }
+
+ /**
+ * @covers Monolog\Handler\WhatFailureGroupHandler::__construct
+ * @covers Monolog\Handler\WhatFailureGroupHandler::handle
+ */
+ public function testHandle()
+ {
+ $testHandlers = array(new TestHandler(), new TestHandler());
+ $handler = new WhatFailureGroupHandler($testHandlers);
+ $handler->handle($this->getRecord(Logger::DEBUG));
+ $handler->handle($this->getRecord(Logger::INFO));
+ foreach ($testHandlers as $test) {
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 2);
+ }
+ }
+
+ /**
+ * @covers Monolog\Handler\WhatFailureGroupHandler::handleBatch
+ */
+ public function testHandleBatch()
+ {
+ $testHandlers = array(new TestHandler(), new TestHandler());
+ $handler = new WhatFailureGroupHandler($testHandlers);
+ $handler->handleBatch(array($this->getRecord(Logger::DEBUG), $this->getRecord(Logger::INFO)));
+ foreach ($testHandlers as $test) {
+ $this->assertTrue($test->hasDebugRecords());
+ $this->assertTrue($test->hasInfoRecords());
+ $this->assertTrue(count($test->getRecords()) === 2);
+ }
+ }
+
+ /**
+ * @covers Monolog\Handler\WhatFailureGroupHandler::isHandling
+ */
+ public function testIsHandling()
+ {
+ $testHandlers = array(new TestHandler(Logger::ERROR), new TestHandler(Logger::WARNING));
+ $handler = new WhatFailureGroupHandler($testHandlers);
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::ERROR)));
+ $this->assertTrue($handler->isHandling($this->getRecord(Logger::WARNING)));
+ $this->assertFalse($handler->isHandling($this->getRecord(Logger::DEBUG)));
+ }
+
+ /**
+ * @covers Monolog\Handler\WhatFailureGroupHandler::handle
+ */
+ public function testHandleUsesProcessors()
+ {
+ $test = new TestHandler();
+ $handler = new WhatFailureGroupHandler(array($test));
+ $handler->pushProcessor(function ($record) {
+ $record['extra']['foo'] = true;
+
+ return $record;
+ });
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasWarningRecords());
+ $records = $test->getRecords();
+ $this->assertTrue($records[0]['extra']['foo']);
+ }
+
+ /**
+ * @covers Monolog\Handler\WhatFailureGroupHandler::handle
+ */
+ public function testHandleException()
+ {
+ $test = new TestHandler();
+ $exception = new ExceptionTestHandler();
+ $handler = new WhatFailureGroupHandler(array($exception, $test, $exception));
+ $handler->pushProcessor(function ($record) {
+ $record['extra']['foo'] = true;
+
+ return $record;
+ });
+ $handler->handle($this->getRecord(Logger::WARNING));
+ $this->assertTrue($test->hasWarningRecords());
+ $records = $test->getRecords();
+ $this->assertTrue($records[0]['extra']['foo']);
+ }
+}
+
+class ExceptionTestHandler extends TestHandler
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function handle(array $record)
+ {
+ parent::handle($record);
+
+ throw new \Exception("ExceptionTestHandler::handle");
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php
new file mode 100644
index 00000000..69b001ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Handler/ZendMonitorHandlerTest.php
@@ -0,0 +1,69 @@
+<?php
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Handler;
+
+use Monolog\TestCase;
+
+class ZendMonitorHandlerTest extends TestCase
+{
+ protected $zendMonitorHandler;
+
+ public function setUp()
+ {
+ if (!function_exists('zend_monitor_custom_event')) {
+ $this->markTestSkipped('ZendServer is not installed');
+ }
+ }
+
+ /**
+ * @covers Monolog\Handler\ZendMonitorHandler::write
+ */
+ public function testWrite()
+ {
+ $record = $this->getRecord();
+ $formatterResult = array(
+ 'message' => $record['message'],
+ );
+
+ $zendMonitor = $this->getMockBuilder('Monolog\Handler\ZendMonitorHandler')
+ ->setMethods(array('writeZendMonitorCustomEvent', 'getDefaultFormatter'))
+ ->getMock();
+
+ $formatterMock = $this->getMockBuilder('Monolog\Formatter\NormalizerFormatter')
+ ->disableOriginalConstructor()
+ ->getMock();
+
+ $formatterMock->expects($this->once())
+ ->method('format')
+ ->will($this->returnValue($formatterResult));
+
+ $zendMonitor->expects($this->once())
+ ->method('getDefaultFormatter')
+ ->will($this->returnValue($formatterMock));
+
+ $levelMap = $zendMonitor->getLevelMap();
+
+ $zendMonitor->expects($this->once())
+ ->method('writeZendMonitorCustomEvent')
+ ->with($levelMap[$record['level']], $record['message'], $formatterResult);
+
+ $zendMonitor->handle($record);
+ }
+
+ /**
+ * @covers Monolog\Handler\ZendMonitorHandler::getDefaultFormatter
+ */
+ public function testGetDefaultFormatterReturnsNormalizerFormatter()
+ {
+ $zendMonitor = new ZendMonitorHandler();
+ $this->assertInstanceOf('Monolog\Formatter\NormalizerFormatter', $zendMonitor->getDefaultFormatter());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/LoggerTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/LoggerTest.php
new file mode 100644
index 00000000..1ecc34a0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/LoggerTest.php
@@ -0,0 +1,548 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+use Monolog\Processor\WebProcessor;
+use Monolog\Handler\TestHandler;
+
+class LoggerTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @covers Monolog\Logger::getName
+ */
+ public function testGetName()
+ {
+ $logger = new Logger('foo');
+ $this->assertEquals('foo', $logger->getName());
+ }
+
+ /**
+ * @covers Monolog\Logger::getLevelName
+ */
+ public function testGetLevelName()
+ {
+ $this->assertEquals('ERROR', Logger::getLevelName(Logger::ERROR));
+ }
+
+ /**
+ * @covers Monolog\Logger::withName
+ */
+ public function testWithName()
+ {
+ $first = new Logger('first', array($handler = new TestHandler()));
+ $second = $first->withName('second');
+
+ $this->assertSame('first', $first->getName());
+ $this->assertSame('second', $second->getName());
+ $this->assertSame($handler, $second->popHandler());
+ }
+
+ /**
+ * @covers Monolog\Logger::toMonologLevel
+ */
+ public function testConvertPSR3ToMonologLevel()
+ {
+ $this->assertEquals(Logger::toMonologLevel('debug'), 100);
+ $this->assertEquals(Logger::toMonologLevel('info'), 200);
+ $this->assertEquals(Logger::toMonologLevel('notice'), 250);
+ $this->assertEquals(Logger::toMonologLevel('warning'), 300);
+ $this->assertEquals(Logger::toMonologLevel('error'), 400);
+ $this->assertEquals(Logger::toMonologLevel('critical'), 500);
+ $this->assertEquals(Logger::toMonologLevel('alert'), 550);
+ $this->assertEquals(Logger::toMonologLevel('emergency'), 600);
+ }
+
+ /**
+ * @covers Monolog\Logger::getLevelName
+ * @expectedException InvalidArgumentException
+ */
+ public function testGetLevelNameThrows()
+ {
+ Logger::getLevelName(5);
+ }
+
+ /**
+ * @covers Monolog\Logger::__construct
+ */
+ public function testChannel()
+ {
+ $logger = new Logger('foo');
+ $handler = new TestHandler;
+ $logger->pushHandler($handler);
+ $logger->addWarning('test');
+ list($record) = $handler->getRecords();
+ $this->assertEquals('foo', $record['channel']);
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testLog()
+ {
+ $logger = new Logger(__METHOD__);
+
+ $handler = $this->getMock('Monolog\Handler\NullHandler', array('handle'));
+ $handler->expects($this->once())
+ ->method('handle');
+ $logger->pushHandler($handler);
+
+ $this->assertTrue($logger->addWarning('test'));
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testLogNotHandled()
+ {
+ $logger = new Logger(__METHOD__);
+
+ $handler = $this->getMock('Monolog\Handler\NullHandler', array('handle'), array(Logger::ERROR));
+ $handler->expects($this->never())
+ ->method('handle');
+ $logger->pushHandler($handler);
+
+ $this->assertFalse($logger->addWarning('test'));
+ }
+
+ public function testHandlersInCtor()
+ {
+ $handler1 = new TestHandler;
+ $handler2 = new TestHandler;
+ $logger = new Logger(__METHOD__, array($handler1, $handler2));
+
+ $this->assertEquals($handler1, $logger->popHandler());
+ $this->assertEquals($handler2, $logger->popHandler());
+ }
+
+ public function testProcessorsInCtor()
+ {
+ $processor1 = new WebProcessor;
+ $processor2 = new WebProcessor;
+ $logger = new Logger(__METHOD__, array(), array($processor1, $processor2));
+
+ $this->assertEquals($processor1, $logger->popProcessor());
+ $this->assertEquals($processor2, $logger->popProcessor());
+ }
+
+ /**
+ * @covers Monolog\Logger::pushHandler
+ * @covers Monolog\Logger::popHandler
+ * @expectedException LogicException
+ */
+ public function testPushPopHandler()
+ {
+ $logger = new Logger(__METHOD__);
+ $handler1 = new TestHandler;
+ $handler2 = new TestHandler;
+
+ $logger->pushHandler($handler1);
+ $logger->pushHandler($handler2);
+
+ $this->assertEquals($handler2, $logger->popHandler());
+ $this->assertEquals($handler1, $logger->popHandler());
+ $logger->popHandler();
+ }
+
+ /**
+ * @covers Monolog\Logger::setHandlers
+ */
+ public function testSetHandlers()
+ {
+ $logger = new Logger(__METHOD__);
+ $handler1 = new TestHandler;
+ $handler2 = new TestHandler;
+
+ $logger->pushHandler($handler1);
+ $logger->setHandlers(array($handler2));
+
+ // handler1 has been removed
+ $this->assertEquals(array($handler2), $logger->getHandlers());
+
+ $logger->setHandlers(array(
+ "AMapKey" => $handler1,
+ "Woop" => $handler2,
+ ));
+
+ // Keys have been scrubbed
+ $this->assertEquals(array($handler1, $handler2), $logger->getHandlers());
+ }
+
+ /**
+ * @covers Monolog\Logger::pushProcessor
+ * @covers Monolog\Logger::popProcessor
+ * @expectedException LogicException
+ */
+ public function testPushPopProcessor()
+ {
+ $logger = new Logger(__METHOD__);
+ $processor1 = new WebProcessor;
+ $processor2 = new WebProcessor;
+
+ $logger->pushProcessor($processor1);
+ $logger->pushProcessor($processor2);
+
+ $this->assertEquals($processor2, $logger->popProcessor());
+ $this->assertEquals($processor1, $logger->popProcessor());
+ $logger->popProcessor();
+ }
+
+ /**
+ * @covers Monolog\Logger::pushProcessor
+ * @expectedException InvalidArgumentException
+ */
+ public function testPushProcessorWithNonCallable()
+ {
+ $logger = new Logger(__METHOD__);
+
+ $logger->pushProcessor(new \stdClass());
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testProcessorsAreExecuted()
+ {
+ $logger = new Logger(__METHOD__);
+ $handler = new TestHandler;
+ $logger->pushHandler($handler);
+ $logger->pushProcessor(function ($record) {
+ $record['extra']['win'] = true;
+
+ return $record;
+ });
+ $logger->addError('test');
+ list($record) = $handler->getRecords();
+ $this->assertTrue($record['extra']['win']);
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testProcessorsAreCalledOnlyOnce()
+ {
+ $logger = new Logger(__METHOD__);
+ $handler = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler->expects($this->any())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+ $handler->expects($this->any())
+ ->method('handle')
+ ->will($this->returnValue(true))
+ ;
+ $logger->pushHandler($handler);
+
+ $processor = $this->getMockBuilder('Monolog\Processor\WebProcessor')
+ ->disableOriginalConstructor()
+ ->setMethods(array('__invoke'))
+ ->getMock()
+ ;
+ $processor->expects($this->once())
+ ->method('__invoke')
+ ->will($this->returnArgument(0))
+ ;
+ $logger->pushProcessor($processor);
+
+ $logger->addError('test');
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testProcessorsNotCalledWhenNotHandled()
+ {
+ $logger = new Logger(__METHOD__);
+ $handler = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler->expects($this->once())
+ ->method('isHandling')
+ ->will($this->returnValue(false))
+ ;
+ $logger->pushHandler($handler);
+ $that = $this;
+ $logger->pushProcessor(function ($record) use ($that) {
+ $that->fail('The processor should not be called');
+ });
+ $logger->addAlert('test');
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testHandlersNotCalledBeforeFirstHandling()
+ {
+ $logger = new Logger(__METHOD__);
+
+ $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler1->expects($this->never())
+ ->method('isHandling')
+ ->will($this->returnValue(false))
+ ;
+ $handler1->expects($this->once())
+ ->method('handle')
+ ->will($this->returnValue(false))
+ ;
+ $logger->pushHandler($handler1);
+
+ $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler2->expects($this->once())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+ $handler2->expects($this->once())
+ ->method('handle')
+ ->will($this->returnValue(false))
+ ;
+ $logger->pushHandler($handler2);
+
+ $handler3 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler3->expects($this->once())
+ ->method('isHandling')
+ ->will($this->returnValue(false))
+ ;
+ $handler3->expects($this->never())
+ ->method('handle')
+ ;
+ $logger->pushHandler($handler3);
+
+ $logger->debug('test');
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testHandlersNotCalledBeforeFirstHandlingWithAssocArray()
+ {
+ $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler1->expects($this->never())
+ ->method('isHandling')
+ ->will($this->returnValue(false))
+ ;
+ $handler1->expects($this->once())
+ ->method('handle')
+ ->will($this->returnValue(false))
+ ;
+
+ $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler2->expects($this->once())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+ $handler2->expects($this->once())
+ ->method('handle')
+ ->will($this->returnValue(false))
+ ;
+
+ $handler3 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler3->expects($this->once())
+ ->method('isHandling')
+ ->will($this->returnValue(false))
+ ;
+ $handler3->expects($this->never())
+ ->method('handle')
+ ;
+
+ $logger = new Logger(__METHOD__, array('last' => $handler3, 'second' => $handler2, 'first' => $handler1));
+
+ $logger->debug('test');
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testBubblingWhenTheHandlerReturnsFalse()
+ {
+ $logger = new Logger(__METHOD__);
+
+ $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler1->expects($this->any())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+ $handler1->expects($this->once())
+ ->method('handle')
+ ->will($this->returnValue(false))
+ ;
+ $logger->pushHandler($handler1);
+
+ $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler2->expects($this->any())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+ $handler2->expects($this->once())
+ ->method('handle')
+ ->will($this->returnValue(false))
+ ;
+ $logger->pushHandler($handler2);
+
+ $logger->debug('test');
+ }
+
+ /**
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testNotBubblingWhenTheHandlerReturnsTrue()
+ {
+ $logger = new Logger(__METHOD__);
+
+ $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler1->expects($this->any())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+ $handler1->expects($this->never())
+ ->method('handle')
+ ;
+ $logger->pushHandler($handler1);
+
+ $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler2->expects($this->any())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+ $handler2->expects($this->once())
+ ->method('handle')
+ ->will($this->returnValue(true))
+ ;
+ $logger->pushHandler($handler2);
+
+ $logger->debug('test');
+ }
+
+ /**
+ * @covers Monolog\Logger::isHandling
+ */
+ public function testIsHandling()
+ {
+ $logger = new Logger(__METHOD__);
+
+ $handler1 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler1->expects($this->any())
+ ->method('isHandling')
+ ->will($this->returnValue(false))
+ ;
+
+ $logger->pushHandler($handler1);
+ $this->assertFalse($logger->isHandling(Logger::DEBUG));
+
+ $handler2 = $this->getMock('Monolog\Handler\HandlerInterface');
+ $handler2->expects($this->any())
+ ->method('isHandling')
+ ->will($this->returnValue(true))
+ ;
+
+ $logger->pushHandler($handler2);
+ $this->assertTrue($logger->isHandling(Logger::DEBUG));
+ }
+
+ /**
+ * @dataProvider logMethodProvider
+ * @covers Monolog\Logger::addDebug
+ * @covers Monolog\Logger::addInfo
+ * @covers Monolog\Logger::addNotice
+ * @covers Monolog\Logger::addWarning
+ * @covers Monolog\Logger::addError
+ * @covers Monolog\Logger::addCritical
+ * @covers Monolog\Logger::addAlert
+ * @covers Monolog\Logger::addEmergency
+ * @covers Monolog\Logger::debug
+ * @covers Monolog\Logger::info
+ * @covers Monolog\Logger::notice
+ * @covers Monolog\Logger::warn
+ * @covers Monolog\Logger::err
+ * @covers Monolog\Logger::crit
+ * @covers Monolog\Logger::alert
+ * @covers Monolog\Logger::emerg
+ */
+ public function testLogMethods($method, $expectedLevel)
+ {
+ $logger = new Logger('foo');
+ $handler = new TestHandler;
+ $logger->pushHandler($handler);
+ $logger->{$method}('test');
+ list($record) = $handler->getRecords();
+ $this->assertEquals($expectedLevel, $record['level']);
+ }
+
+ public function logMethodProvider()
+ {
+ return array(
+ // monolog methods
+ array('addDebug', Logger::DEBUG),
+ array('addInfo', Logger::INFO),
+ array('addNotice', Logger::NOTICE),
+ array('addWarning', Logger::WARNING),
+ array('addError', Logger::ERROR),
+ array('addCritical', Logger::CRITICAL),
+ array('addAlert', Logger::ALERT),
+ array('addEmergency', Logger::EMERGENCY),
+
+ // ZF/Sf2 compat methods
+ array('debug', Logger::DEBUG),
+ array('info', Logger::INFO),
+ array('notice', Logger::NOTICE),
+ array('warn', Logger::WARNING),
+ array('err', Logger::ERROR),
+ array('crit', Logger::CRITICAL),
+ array('alert', Logger::ALERT),
+ array('emerg', Logger::EMERGENCY),
+ );
+ }
+
+ /**
+ * @dataProvider setTimezoneProvider
+ * @covers Monolog\Logger::setTimezone
+ */
+ public function testSetTimezone($tz)
+ {
+ Logger::setTimezone($tz);
+ $logger = new Logger('foo');
+ $handler = new TestHandler;
+ $logger->pushHandler($handler);
+ $logger->info('test');
+ list($record) = $handler->getRecords();
+ $this->assertEquals($tz, $record['datetime']->getTimezone());
+ }
+
+ public function setTimezoneProvider()
+ {
+ return array_map(
+ function ($tz) { return array(new \DateTimeZone($tz)); },
+ \DateTimeZone::listIdentifiers()
+ );
+ }
+
+ /**
+ * @dataProvider useMicrosecondTimestampsProvider
+ * @covers Monolog\Logger::useMicrosecondTimestamps
+ * @covers Monolog\Logger::addRecord
+ */
+ public function testUseMicrosecondTimestamps($micro, $assert)
+ {
+ $logger = new Logger('foo');
+ $logger->useMicrosecondTimestamps($micro);
+ $handler = new TestHandler;
+ $logger->pushHandler($handler);
+ $logger->info('test');
+ list($record) = $handler->getRecords();
+ $this->{$assert}('000000', $record['datetime']->format('u'));
+ }
+
+ public function useMicrosecondTimestampsProvider()
+ {
+ return array(
+ // this has a very small chance of a false negative (1/10^6)
+ 'with microseconds' => array(true, 'assertNotSame'),
+ 'without microseconds' => array(false, PHP_VERSION_ID >= 70100 ? 'assertNotSame' : 'assertSame'),
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php
new file mode 100644
index 00000000..5adb505d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/GitProcessorTest.php
@@ -0,0 +1,29 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class GitProcessorTest extends TestCase
+{
+ /**
+ * @covers Monolog\Processor\GitProcessor::__invoke
+ */
+ public function testProcessor()
+ {
+ $processor = new GitProcessor();
+ $record = $processor($this->getRecord());
+
+ $this->assertArrayHasKey('git', $record['extra']);
+ $this->assertTrue(!is_array($record['extra']['git']['branch']));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php
new file mode 100644
index 00000000..0dd411d7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/IntrospectionProcessorTest.php
@@ -0,0 +1,123 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Acme;
+
+class Tester
+{
+ public function test($handler, $record)
+ {
+ $handler->handle($record);
+ }
+}
+
+function tester($handler, $record)
+{
+ $handler->handle($record);
+}
+
+namespace Monolog\Processor;
+
+use Monolog\Logger;
+use Monolog\TestCase;
+use Monolog\Handler\TestHandler;
+
+class IntrospectionProcessorTest extends TestCase
+{
+ public function getHandler()
+ {
+ $processor = new IntrospectionProcessor();
+ $handler = new TestHandler();
+ $handler->pushProcessor($processor);
+
+ return $handler;
+ }
+
+ public function testProcessorFromClass()
+ {
+ $handler = $this->getHandler();
+ $tester = new \Acme\Tester;
+ $tester->test($handler, $this->getRecord());
+ list($record) = $handler->getRecords();
+ $this->assertEquals(__FILE__, $record['extra']['file']);
+ $this->assertEquals(18, $record['extra']['line']);
+ $this->assertEquals('Acme\Tester', $record['extra']['class']);
+ $this->assertEquals('test', $record['extra']['function']);
+ }
+
+ public function testProcessorFromFunc()
+ {
+ $handler = $this->getHandler();
+ \Acme\tester($handler, $this->getRecord());
+ list($record) = $handler->getRecords();
+ $this->assertEquals(__FILE__, $record['extra']['file']);
+ $this->assertEquals(24, $record['extra']['line']);
+ $this->assertEquals(null, $record['extra']['class']);
+ $this->assertEquals('Acme\tester', $record['extra']['function']);
+ }
+
+ public function testLevelTooLow()
+ {
+ $input = array(
+ 'level' => Logger::DEBUG,
+ 'extra' => array(),
+ );
+
+ $expected = $input;
+
+ $processor = new IntrospectionProcessor(Logger::CRITICAL);
+ $actual = $processor($input);
+
+ $this->assertEquals($expected, $actual);
+ }
+
+ public function testLevelEqual()
+ {
+ $input = array(
+ 'level' => Logger::CRITICAL,
+ 'extra' => array(),
+ );
+
+ $expected = $input;
+ $expected['extra'] = array(
+ 'file' => null,
+ 'line' => null,
+ 'class' => 'ReflectionMethod',
+ 'function' => 'invokeArgs',
+ );
+
+ $processor = new IntrospectionProcessor(Logger::CRITICAL);
+ $actual = $processor($input);
+
+ $this->assertEquals($expected, $actual);
+ }
+
+ public function testLevelHigher()
+ {
+ $input = array(
+ 'level' => Logger::EMERGENCY,
+ 'extra' => array(),
+ );
+
+ $expected = $input;
+ $expected['extra'] = array(
+ 'file' => null,
+ 'line' => null,
+ 'class' => 'ReflectionMethod',
+ 'function' => 'invokeArgs',
+ );
+
+ $processor = new IntrospectionProcessor(Logger::CRITICAL);
+ $actual = $processor($input);
+
+ $this->assertEquals($expected, $actual);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php
new file mode 100644
index 00000000..eb666144
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryPeakUsageProcessorTest.php
@@ -0,0 +1,42 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class MemoryPeakUsageProcessorTest extends TestCase
+{
+ /**
+ * @covers Monolog\Processor\MemoryPeakUsageProcessor::__invoke
+ * @covers Monolog\Processor\MemoryProcessor::formatBytes
+ */
+ public function testProcessor()
+ {
+ $processor = new MemoryPeakUsageProcessor();
+ $record = $processor($this->getRecord());
+ $this->assertArrayHasKey('memory_peak_usage', $record['extra']);
+ $this->assertRegExp('#[0-9.]+ (M|K)?B$#', $record['extra']['memory_peak_usage']);
+ }
+
+ /**
+ * @covers Monolog\Processor\MemoryPeakUsageProcessor::__invoke
+ * @covers Monolog\Processor\MemoryProcessor::formatBytes
+ */
+ public function testProcessorWithoutFormatting()
+ {
+ $processor = new MemoryPeakUsageProcessor(true, false);
+ $record = $processor($this->getRecord());
+ $this->assertArrayHasKey('memory_peak_usage', $record['extra']);
+ $this->assertInternalType('int', $record['extra']['memory_peak_usage']);
+ $this->assertGreaterThan(0, $record['extra']['memory_peak_usage']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php
new file mode 100644
index 00000000..4692dbfc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MemoryUsageProcessorTest.php
@@ -0,0 +1,42 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class MemoryUsageProcessorTest extends TestCase
+{
+ /**
+ * @covers Monolog\Processor\MemoryUsageProcessor::__invoke
+ * @covers Monolog\Processor\MemoryProcessor::formatBytes
+ */
+ public function testProcessor()
+ {
+ $processor = new MemoryUsageProcessor();
+ $record = $processor($this->getRecord());
+ $this->assertArrayHasKey('memory_usage', $record['extra']);
+ $this->assertRegExp('#[0-9.]+ (M|K)?B$#', $record['extra']['memory_usage']);
+ }
+
+ /**
+ * @covers Monolog\Processor\MemoryUsageProcessor::__invoke
+ * @covers Monolog\Processor\MemoryProcessor::formatBytes
+ */
+ public function testProcessorWithoutFormatting()
+ {
+ $processor = new MemoryUsageProcessor(true, false);
+ $record = $processor($this->getRecord());
+ $this->assertArrayHasKey('memory_usage', $record['extra']);
+ $this->assertInternalType('int', $record['extra']['memory_usage']);
+ $this->assertGreaterThan(0, $record['extra']['memory_usage']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php
new file mode 100644
index 00000000..11f2b35a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/MercurialProcessorTest.php
@@ -0,0 +1,41 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jonathan A. Schweder <jonathanschweder@gmail.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class MercurialProcessorTest extends TestCase
+{
+ /**
+ * @covers Monolog\Processor\MercurialProcessor::__invoke
+ */
+ public function testProcessor()
+ {
+ if (defined('PHP_WINDOWS_VERSION_BUILD')) {
+ exec("where hg 2>NUL", $output, $result);
+ } else {
+ exec("which hg 2>/dev/null >/dev/null", $output, $result);
+ }
+ if ($result != 0) {
+ $this->markTestSkipped('hg is missing');
+ return;
+ }
+
+ `hg init`;
+ $processor = new MercurialProcessor();
+ $record = $processor($this->getRecord());
+
+ $this->assertArrayHasKey('hg', $record['extra']);
+ $this->assertTrue(!is_array($record['extra']['hg']['branch']));
+ $this->assertTrue(!is_array($record['extra']['hg']['revision']));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php
new file mode 100644
index 00000000..458d2a33
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/ProcessIdProcessorTest.php
@@ -0,0 +1,30 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class ProcessIdProcessorTest extends TestCase
+{
+ /**
+ * @covers Monolog\Processor\ProcessIdProcessor::__invoke
+ */
+ public function testProcessor()
+ {
+ $processor = new ProcessIdProcessor();
+ $record = $processor($this->getRecord());
+ $this->assertArrayHasKey('process_id', $record['extra']);
+ $this->assertInternalType('int', $record['extra']['process_id']);
+ $this->assertGreaterThan(0, $record['extra']['process_id']);
+ $this->assertEquals(getmypid(), $record['extra']['process_id']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php
new file mode 100644
index 00000000..029a0c02
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/PsrLogMessageProcessorTest.php
@@ -0,0 +1,43 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+class PsrLogMessageProcessorTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @dataProvider getPairs
+ */
+ public function testReplacement($val, $expected)
+ {
+ $proc = new PsrLogMessageProcessor;
+
+ $message = $proc(array(
+ 'message' => '{foo}',
+ 'context' => array('foo' => $val),
+ ));
+ $this->assertEquals($expected, $message['message']);
+ }
+
+ public function getPairs()
+ {
+ return array(
+ array('foo', 'foo'),
+ array('3', '3'),
+ array(3, '3'),
+ array(null, ''),
+ array(true, '1'),
+ array(false, ''),
+ array(new \stdClass, '[object stdClass]'),
+ array(array(), '[array]'),
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php
new file mode 100644
index 00000000..0d860c61
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/TagProcessorTest.php
@@ -0,0 +1,49 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class TagProcessorTest extends TestCase
+{
+ /**
+ * @covers Monolog\Processor\TagProcessor::__invoke
+ */
+ public function testProcessor()
+ {
+ $tags = array(1, 2, 3);
+ $processor = new TagProcessor($tags);
+ $record = $processor($this->getRecord());
+
+ $this->assertEquals($tags, $record['extra']['tags']);
+ }
+
+ /**
+ * @covers Monolog\Processor\TagProcessor::__invoke
+ */
+ public function testProcessorTagModification()
+ {
+ $tags = array(1, 2, 3);
+ $processor = new TagProcessor($tags);
+
+ $record = $processor($this->getRecord());
+ $this->assertEquals($tags, $record['extra']['tags']);
+
+ $processor->setTags(array('a', 'b'));
+ $record = $processor($this->getRecord());
+ $this->assertEquals(array('a', 'b'), $record['extra']['tags']);
+
+ $processor->addTags(array('a', 'c', 'foo' => 'bar'));
+ $record = $processor($this->getRecord());
+ $this->assertEquals(array('a', 'b', 'a', 'c', 'foo' => 'bar'), $record['extra']['tags']);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php
new file mode 100644
index 00000000..5d13058f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/UidProcessorTest.php
@@ -0,0 +1,33 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class UidProcessorTest extends TestCase
+{
+ /**
+ * @covers Monolog\Processor\UidProcessor::__invoke
+ */
+ public function testProcessor()
+ {
+ $processor = new UidProcessor();
+ $record = $processor($this->getRecord());
+ $this->assertArrayHasKey('uid', $record['extra']);
+ }
+
+ public function testGetUid()
+ {
+ $processor = new UidProcessor(10);
+ $this->assertEquals(10, strlen($processor->getUid()));
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php
new file mode 100644
index 00000000..4105baf7
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/Processor/WebProcessorTest.php
@@ -0,0 +1,113 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog\Processor;
+
+use Monolog\TestCase;
+
+class WebProcessorTest extends TestCase
+{
+ public function testProcessor()
+ {
+ $server = array(
+ 'REQUEST_URI' => 'A',
+ 'REMOTE_ADDR' => 'B',
+ 'REQUEST_METHOD' => 'C',
+ 'HTTP_REFERER' => 'D',
+ 'SERVER_NAME' => 'F',
+ 'UNIQUE_ID' => 'G',
+ );
+
+ $processor = new WebProcessor($server);
+ $record = $processor($this->getRecord());
+ $this->assertEquals($server['REQUEST_URI'], $record['extra']['url']);
+ $this->assertEquals($server['REMOTE_ADDR'], $record['extra']['ip']);
+ $this->assertEquals($server['REQUEST_METHOD'], $record['extra']['http_method']);
+ $this->assertEquals($server['HTTP_REFERER'], $record['extra']['referrer']);
+ $this->assertEquals($server['SERVER_NAME'], $record['extra']['server']);
+ $this->assertEquals($server['UNIQUE_ID'], $record['extra']['unique_id']);
+ }
+
+ public function testProcessorDoNothingIfNoRequestUri()
+ {
+ $server = array(
+ 'REMOTE_ADDR' => 'B',
+ 'REQUEST_METHOD' => 'C',
+ );
+ $processor = new WebProcessor($server);
+ $record = $processor($this->getRecord());
+ $this->assertEmpty($record['extra']);
+ }
+
+ public function testProcessorReturnNullIfNoHttpReferer()
+ {
+ $server = array(
+ 'REQUEST_URI' => 'A',
+ 'REMOTE_ADDR' => 'B',
+ 'REQUEST_METHOD' => 'C',
+ 'SERVER_NAME' => 'F',
+ );
+ $processor = new WebProcessor($server);
+ $record = $processor($this->getRecord());
+ $this->assertNull($record['extra']['referrer']);
+ }
+
+ public function testProcessorDoesNotAddUniqueIdIfNotPresent()
+ {
+ $server = array(
+ 'REQUEST_URI' => 'A',
+ 'REMOTE_ADDR' => 'B',
+ 'REQUEST_METHOD' => 'C',
+ 'SERVER_NAME' => 'F',
+ );
+ $processor = new WebProcessor($server);
+ $record = $processor($this->getRecord());
+ $this->assertFalse(isset($record['extra']['unique_id']));
+ }
+
+ public function testProcessorAddsOnlyRequestedExtraFields()
+ {
+ $server = array(
+ 'REQUEST_URI' => 'A',
+ 'REMOTE_ADDR' => 'B',
+ 'REQUEST_METHOD' => 'C',
+ 'SERVER_NAME' => 'F',
+ );
+
+ $processor = new WebProcessor($server, array('url', 'http_method'));
+ $record = $processor($this->getRecord());
+
+ $this->assertSame(array('url' => 'A', 'http_method' => 'C'), $record['extra']);
+ }
+
+ public function testProcessorConfiguringOfExtraFields()
+ {
+ $server = array(
+ 'REQUEST_URI' => 'A',
+ 'REMOTE_ADDR' => 'B',
+ 'REQUEST_METHOD' => 'C',
+ 'SERVER_NAME' => 'F',
+ );
+
+ $processor = new WebProcessor($server, array('url' => 'REMOTE_ADDR'));
+ $record = $processor($this->getRecord());
+
+ $this->assertSame(array('url' => 'B'), $record['extra']);
+ }
+
+ /**
+ * @expectedException UnexpectedValueException
+ */
+ public function testInvalidData()
+ {
+ new WebProcessor(new \stdClass);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/PsrLogCompatTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/PsrLogCompatTest.php
new file mode 100644
index 00000000..ab899449
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/PsrLogCompatTest.php
@@ -0,0 +1,47 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+use Monolog\Handler\TestHandler;
+use Monolog\Formatter\LineFormatter;
+use Monolog\Processor\PsrLogMessageProcessor;
+use Psr\Log\Test\LoggerInterfaceTest;
+
+class PsrLogCompatTest extends LoggerInterfaceTest
+{
+ private $handler;
+
+ public function getLogger()
+ {
+ $logger = new Logger('foo');
+ $logger->pushHandler($handler = new TestHandler);
+ $logger->pushProcessor(new PsrLogMessageProcessor);
+ $handler->setFormatter(new LineFormatter('%level_name% %message%'));
+
+ $this->handler = $handler;
+
+ return $logger;
+ }
+
+ public function getLogs()
+ {
+ $convert = function ($record) {
+ $lower = function ($match) {
+ return strtolower($match[0]);
+ };
+
+ return preg_replace_callback('{^[A-Z]+}', $lower, $record['formatted']);
+ };
+
+ return array_map($convert, $this->handler->getRecords());
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/RegistryTest.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/RegistryTest.php
new file mode 100644
index 00000000..15fdfbd2
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/RegistryTest.php
@@ -0,0 +1,153 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+class RegistryTest extends \PHPUnit_Framework_TestCase
+{
+ protected function setUp()
+ {
+ Registry::clear();
+ }
+
+ /**
+ * @dataProvider hasLoggerProvider
+ * @covers Monolog\Registry::hasLogger
+ */
+ public function testHasLogger(array $loggersToAdd, array $loggersToCheck, array $expectedResult)
+ {
+ foreach ($loggersToAdd as $loggerToAdd) {
+ Registry::addLogger($loggerToAdd);
+ }
+ foreach ($loggersToCheck as $index => $loggerToCheck) {
+ $this->assertSame($expectedResult[$index], Registry::hasLogger($loggerToCheck));
+ }
+ }
+
+ public function hasLoggerProvider()
+ {
+ $logger1 = new Logger('test1');
+ $logger2 = new Logger('test2');
+ $logger3 = new Logger('test3');
+
+ return array(
+ // only instances
+ array(
+ array($logger1),
+ array($logger1, $logger2),
+ array(true, false),
+ ),
+ // only names
+ array(
+ array($logger1),
+ array('test1', 'test2'),
+ array(true, false),
+ ),
+ // mixed case
+ array(
+ array($logger1, $logger2),
+ array('test1', $logger2, 'test3', $logger3),
+ array(true, true, false, false),
+ ),
+ );
+ }
+
+ /**
+ * @covers Monolog\Registry::clear
+ */
+ public function testClearClears()
+ {
+ Registry::addLogger(new Logger('test1'), 'log');
+ Registry::clear();
+
+ $this->setExpectedException('\InvalidArgumentException');
+ Registry::getInstance('log');
+ }
+
+ /**
+ * @dataProvider removedLoggerProvider
+ * @covers Monolog\Registry::addLogger
+ * @covers Monolog\Registry::removeLogger
+ */
+ public function testRemovesLogger($loggerToAdd, $remove)
+ {
+ Registry::addLogger($loggerToAdd);
+ Registry::removeLogger($remove);
+
+ $this->setExpectedException('\InvalidArgumentException');
+ Registry::getInstance($loggerToAdd->getName());
+ }
+
+ public function removedLoggerProvider()
+ {
+ $logger1 = new Logger('test1');
+
+ return array(
+ array($logger1, $logger1),
+ array($logger1, 'test1'),
+ );
+ }
+
+ /**
+ * @covers Monolog\Registry::addLogger
+ * @covers Monolog\Registry::getInstance
+ * @covers Monolog\Registry::__callStatic
+ */
+ public function testGetsSameLogger()
+ {
+ $logger1 = new Logger('test1');
+ $logger2 = new Logger('test2');
+
+ Registry::addLogger($logger1, 'test1');
+ Registry::addLogger($logger2);
+
+ $this->assertSame($logger1, Registry::getInstance('test1'));
+ $this->assertSame($logger2, Registry::test2());
+ }
+
+ /**
+ * @expectedException \InvalidArgumentException
+ * @covers Monolog\Registry::getInstance
+ */
+ public function testFailsOnNonExistantLogger()
+ {
+ Registry::getInstance('test1');
+ }
+
+ /**
+ * @covers Monolog\Registry::addLogger
+ */
+ public function testReplacesLogger()
+ {
+ $log1 = new Logger('test1');
+ $log2 = new Logger('test2');
+
+ Registry::addLogger($log1, 'log');
+
+ Registry::addLogger($log2, 'log', true);
+
+ $this->assertSame($log2, Registry::getInstance('log'));
+ }
+
+ /**
+ * @expectedException \InvalidArgumentException
+ * @covers Monolog\Registry::addLogger
+ */
+ public function testFailsOnUnspecifiedReplacement()
+ {
+ $log1 = new Logger('test1');
+ $log2 = new Logger('test2');
+
+ Registry::addLogger($log1, 'log');
+
+ Registry::addLogger($log2, 'log');
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/TestCase.php b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/TestCase.php
new file mode 100644
index 00000000..4eb7b4c9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/monolog/monolog/tests/Monolog/TestCase.php
@@ -0,0 +1,58 @@
+<?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Monolog;
+
+class TestCase extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @return array Record
+ */
+ protected function getRecord($level = Logger::WARNING, $message = 'test', $context = array())
+ {
+ return array(
+ 'message' => $message,
+ 'context' => $context,
+ 'level' => $level,
+ 'level_name' => Logger::getLevelName($level),
+ 'channel' => 'test',
+ 'datetime' => \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true))),
+ 'extra' => array(),
+ );
+ }
+
+ /**
+ * @return array
+ */
+ protected function getMultipleRecords()
+ {
+ return array(
+ $this->getRecord(Logger::DEBUG, 'debug message 1'),
+ $this->getRecord(Logger::DEBUG, 'debug message 2'),
+ $this->getRecord(Logger::INFO, 'information'),
+ $this->getRecord(Logger::WARNING, 'warning'),
+ $this->getRecord(Logger::ERROR, 'error'),
+ );
+ }
+
+ /**
+ * @return Monolog\Formatter\FormatterInterface
+ */
+ protected function getIdentityFormatter()
+ {
+ $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
+ $formatter->expects($this->any())
+ ->method('format')
+ ->will($this->returnCallback(function ($record) { return $record['message']; }));
+
+ return $formatter;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/AUTHORS b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/AUTHORS
new file mode 100644
index 00000000..a08b3099
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/AUTHORS
@@ -0,0 +1,6 @@
+phpseclib Lead Developer: TerraFrost (Jim Wigginton)
+
+phpseclib Developers: monnerat (Patrick Monnerat)
+ bantu (Andreas Fischer)
+ petrich (Hans-Jürgen Petrich)
+ GrahamCampbell (Graham Campbell)
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/LICENSE b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/LICENSE
new file mode 100644
index 00000000..a8ec8ebd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/LICENSE
@@ -0,0 +1,21 @@
+Copyright 2007-2016 TerraFrost and other contributors
+http://phpseclib.sourceforge.net/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/README.md b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/README.md
new file mode 100644
index 00000000..89f84c24
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/README.md
@@ -0,0 +1,74 @@
+# phpseclib - PHP Secure Communications Library
+
+[![Build Status](https://travis-ci.org/phpseclib/phpseclib.svg?branch=2.0)](https://travis-ci.org/phpseclib/phpseclib)
+
+MIT-licensed pure-PHP implementations of an arbitrary-precision integer
+arithmetic library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael,
+AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509
+
+* [Browse Git](https://github.com/phpseclib/phpseclib)
+* [Code Coverage Report](https://coverage.phpseclib.org/2.0/latest/)
+
+## Documentation
+
+* [Documentation / Manual](http://phpseclib.sourceforge.net/)
+* [API Documentation](https://api.phpseclib.org/2.0/) (generated by Sami)
+
+## Branches
+
+### master
+
+* Development Branch
+* Unstable API
+* Do not use in production
+
+### 2.0
+
+* Modernized version of 1.0
+* Minimum PHP version: 5.3.3
+* PSR-4 autoloading with namespace rooted at `\phpseclib`
+* Install via Composer: `composer require phpseclib/phpseclib ~2.0`
+
+### 1.0
+
+* Long term support (LTS) release
+* PHP4 compatible
+* Composer compatible (PSR-0 autoloading)
+* Install using Composer: `composer require phpseclib/phpseclib ~1.0`
+* Install using PEAR: See [phpseclib PEAR Channel Documentation](http://phpseclib.sourceforge.net/pear.htm)
+* [Download 1.0.7 as ZIP](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.7.zip/download)
+
+## Support
+
+Need Support?
+
+* [Checkout Questions and Answers on Stack Overflow](http://stackoverflow.com/questions/tagged/phpseclib)
+* [Create a Support Ticket on GitHub](https://github.com/phpseclib/phpseclib/issues/new)
+* [Browse the Support Forum](http://www.frostjedi.com/phpbb/viewforum.php?f=46) (no longer in use)
+
+## Contributing
+
+1. Fork the Project
+
+2. Ensure you have Composer installed (see [Composer Download Instructions](https://getcomposer.org/download/))
+
+3. Install Development Dependencies
+
+ ``` sh
+ composer install
+ ```
+
+4. Create a Feature Branch
+
+5. (Recommended) Run the Test Suite
+
+ ``` sh
+ vendor/bin/phpunit
+ ```
+6. (Recommended) Check whether your code conforms to our Coding Standards by running
+
+ ``` sh
+ vendor/bin/phing -f build/build.xml sniff
+ ```
+
+7. Send us a Pull Request
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.json b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.json
new file mode 100644
index 00000000..4b84b110
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.json
@@ -0,0 +1,76 @@
+{
+ "name": "phpseclib/phpseclib",
+ "type": "library",
+ "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.",
+ "keywords": [
+ "security",
+ "crypto",
+ "cryptography",
+ "encryption",
+ "signature",
+ "signing",
+ "rsa",
+ "aes",
+ "blowfish",
+ "twofish",
+ "ssh",
+ "sftp",
+ "x509",
+ "x.509",
+ "asn1",
+ "asn.1",
+ "BigInteger"
+ ],
+ "homepage": "http://phpseclib.sourceforge.net",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Jim Wigginton",
+ "email": "terrafrost@php.net",
+ "role": "Lead Developer"
+ },
+ {
+ "name": "Patrick Monnerat",
+ "email": "pm@datasphere.ch",
+ "role": "Developer"
+ },
+ {
+ "name": "Andreas Fischer",
+ "email": "bantu@phpbb.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Hans-Jürgen Petrich",
+ "email": "petrich@tronic-media.com",
+ "role": "Developer"
+ },
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com",
+ "role": "Developer"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phing/phing": "~2.7",
+ "phpunit/phpunit": "~4.0",
+ "sami/sami": "~2.0",
+ "squizlabs/php_codesniffer": "~2.0"
+ },
+ "suggest": {
+ "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.",
+ "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations.",
+ "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.",
+ "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations."
+ },
+ "autoload": {
+ "files": [
+ "phpseclib/bootstrap.php"
+ ],
+ "psr-4": {
+ "phpseclib\\": "phpseclib/"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.lock b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.lock
new file mode 100644
index 00000000..beda2d64
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/composer.lock
@@ -0,0 +1,1819 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+ "This file is @generated automatically"
+ ],
+ "hash": "8599992bf6058a9da82372eb8bcae2c2",
+ "content-hash": "fde47c84178c55c06de858a2128e3d07",
+ "packages": [],
+ "packages-dev": [
+ {
+ "name": "doctrine/instantiator",
+ "version": "1.0.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/instantiator.git",
+ "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
+ "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3,<8.0-DEV"
+ },
+ "require-dev": {
+ "athletic/athletic": "~0.1.8",
+ "ext-pdo": "*",
+ "ext-phar": "*",
+ "phpunit/phpunit": "~4.0",
+ "squizlabs/php_codesniffer": "~2.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Marco Pivetta",
+ "email": "ocramius@gmail.com",
+ "homepage": "http://ocramius.github.com/"
+ }
+ ],
+ "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
+ "homepage": "https://github.com/doctrine/instantiator",
+ "keywords": [
+ "constructor",
+ "instantiate"
+ ],
+ "time": "2015-06-14 21:17:01"
+ },
+ {
+ "name": "michelf/php-markdown",
+ "version": "1.6.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/michelf/php-markdown.git",
+ "reference": "156e56ee036505ec637d761ee62dc425d807183c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/michelf/php-markdown/zipball/156e56ee036505ec637d761ee62dc425d807183c",
+ "reference": "156e56ee036505ec637d761ee62dc425d807183c",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-lib": "1.4.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Michelf": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Michel Fortin",
+ "email": "michel.fortin@michelf.ca",
+ "homepage": "https://michelf.ca/",
+ "role": "Developer"
+ },
+ {
+ "name": "John Gruber",
+ "homepage": "https://daringfireball.net/"
+ }
+ ],
+ "description": "PHP Markdown",
+ "homepage": "https://michelf.ca/projects/php-markdown/",
+ "keywords": [
+ "markdown"
+ ],
+ "time": "2015-12-24 01:37:31"
+ },
+ {
+ "name": "nikic/php-parser",
+ "version": "v0.9.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nikic/PHP-Parser.git",
+ "reference": "ef70767475434bdb3615b43c327e2cae17ef12eb"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ef70767475434bdb3615b43c327e2cae17ef12eb",
+ "reference": "ef70767475434bdb3615b43c327e2cae17ef12eb",
+ "shasum": ""
+ },
+ "require": {
+ "ext-tokenizer": "*",
+ "php": ">=5.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.9-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "PHPParser": "lib/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Nikita Popov"
+ }
+ ],
+ "description": "A PHP parser written in PHP",
+ "keywords": [
+ "parser",
+ "php"
+ ],
+ "time": "2014-07-23 18:24:17"
+ },
+ {
+ "name": "phing/phing",
+ "version": "2.14.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phingofficial/phing.git",
+ "reference": "7dd73c83c377623def54b58121f46b4dcb35dd61"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phingofficial/phing/zipball/7dd73c83c377623def54b58121f46b4dcb35dd61",
+ "reference": "7dd73c83c377623def54b58121f46b4dcb35dd61",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.2.0"
+ },
+ "require-dev": {
+ "ext-pdo_sqlite": "*",
+ "lastcraft/simpletest": "@dev",
+ "mikey179/vfsstream": "^1.6",
+ "pdepend/pdepend": "2.x",
+ "pear/archive_tar": "1.4.x",
+ "pear/http_request2": "dev-trunk",
+ "pear/net_growl": "dev-trunk",
+ "pear/pear-core-minimal": "1.10.1",
+ "pear/versioncontrol_git": "@dev",
+ "pear/versioncontrol_svn": "~0.5",
+ "phpdocumentor/phpdocumentor": "2.x",
+ "phploc/phploc": "~2.0.6",
+ "phpmd/phpmd": "~2.2",
+ "phpunit/phpunit": ">=3.7",
+ "sebastian/git": "~1.0",
+ "sebastian/phpcpd": "2.x",
+ "squizlabs/php_codesniffer": "~2.2",
+ "symfony/yaml": "~2.7"
+ },
+ "suggest": {
+ "pdepend/pdepend": "PHP version of JDepend",
+ "pear/archive_tar": "Tar file management class",
+ "pear/versioncontrol_git": "A library that provides OO interface to handle Git repository",
+ "pear/versioncontrol_svn": "A simple OO-style interface for Subversion, the free/open-source version control system",
+ "phpdocumentor/phpdocumentor": "Documentation Generator for PHP",
+ "phploc/phploc": "A tool for quickly measuring the size of a PHP project",
+ "phpmd/phpmd": "PHP version of PMD tool",
+ "phpunit/php-code-coverage": "Library that provides collection, processing, and rendering functionality for PHP code coverage information",
+ "phpunit/phpunit": "The PHP Unit Testing Framework",
+ "sebastian/phpcpd": "Copy/Paste Detector (CPD) for PHP code",
+ "tedivm/jshrink": "Javascript Minifier built in PHP"
+ },
+ "bin": [
+ "bin/phing"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.14.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "classes/phing/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "include-path": [
+ "classes"
+ ],
+ "license": [
+ "LGPL-3.0"
+ ],
+ "authors": [
+ {
+ "name": "Michiel Rook",
+ "email": "mrook@php.net"
+ },
+ {
+ "name": "Phing Community",
+ "homepage": "https://www.phing.info/trac/wiki/Development/Contributors"
+ }
+ ],
+ "description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.",
+ "homepage": "https://www.phing.info/",
+ "keywords": [
+ "build",
+ "phing",
+ "task",
+ "tool"
+ ],
+ "time": "2016-03-10 21:39:23"
+ },
+ {
+ "name": "phpdocumentor/reflection-common",
+ "version": "1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
+ "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c",
+ "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.5"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.6"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": [
+ "src"
+ ]
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jaap van Otterdijk",
+ "email": "opensource@ijaap.nl"
+ }
+ ],
+ "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
+ "homepage": "http://www.phpdoc.org",
+ "keywords": [
+ "FQSEN",
+ "phpDocumentor",
+ "phpdoc",
+ "reflection",
+ "static analysis"
+ ],
+ "time": "2015-12-27 11:43:31"
+ },
+ {
+ "name": "phpdocumentor/reflection-docblock",
+ "version": "3.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
+ "reference": "9270140b940ff02e58ec577c237274e92cd40cdd"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9270140b940ff02e58ec577c237274e92cd40cdd",
+ "reference": "9270140b940ff02e58ec577c237274e92cd40cdd",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.5",
+ "phpdocumentor/reflection-common": "^1.0@dev",
+ "phpdocumentor/type-resolver": "^0.2.0",
+ "webmozart/assert": "^1.0"
+ },
+ "require-dev": {
+ "mockery/mockery": "^0.9.4",
+ "phpunit/phpunit": "^4.4"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": [
+ "src/"
+ ]
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
+ }
+ ],
+ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
+ "time": "2016-06-10 09:48:41"
+ },
+ {
+ "name": "phpdocumentor/type-resolver",
+ "version": "0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/TypeResolver.git",
+ "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b39c7a5b194f9ed7bd0dd345c751007a41862443",
+ "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.5",
+ "phpdocumentor/reflection-common": "^1.0"
+ },
+ "require-dev": {
+ "mockery/mockery": "^0.9.4",
+ "phpunit/phpunit": "^5.2||^4.8.24"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": [
+ "src/"
+ ]
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
+ }
+ ],
+ "time": "2016-06-10 07:14:17"
+ },
+ {
+ "name": "phpspec/prophecy",
+ "version": "v1.6.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpspec/prophecy.git",
+ "reference": "58a8137754bc24b25740d4281399a4a3596058e0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/58a8137754bc24b25740d4281399a4a3596058e0",
+ "reference": "58a8137754bc24b25740d4281399a4a3596058e0",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/instantiator": "^1.0.2",
+ "php": "^5.3|^7.0",
+ "phpdocumentor/reflection-docblock": "^2.0|^3.0.2",
+ "sebastian/comparator": "^1.1",
+ "sebastian/recursion-context": "^1.0"
+ },
+ "require-dev": {
+ "phpspec/phpspec": "^2.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.6.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Prophecy\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Konstantin Kudryashov",
+ "email": "ever.zet@gmail.com",
+ "homepage": "http://everzet.com"
+ },
+ {
+ "name": "Marcello Duarte",
+ "email": "marcello.duarte@gmail.com"
+ }
+ ],
+ "description": "Highly opinionated mocking framework for PHP 5.3+",
+ "homepage": "https://github.com/phpspec/prophecy",
+ "keywords": [
+ "Double",
+ "Dummy",
+ "fake",
+ "mock",
+ "spy",
+ "stub"
+ ],
+ "time": "2016-06-07 08:13:47"
+ },
+ {
+ "name": "phpunit/php-code-coverage",
+ "version": "2.2.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
+ "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
+ "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3",
+ "phpunit/php-file-iterator": "~1.3",
+ "phpunit/php-text-template": "~1.2",
+ "phpunit/php-token-stream": "~1.3",
+ "sebastian/environment": "^1.3.2",
+ "sebastian/version": "~1.0"
+ },
+ "require-dev": {
+ "ext-xdebug": ">=2.1.4",
+ "phpunit/phpunit": "~4"
+ },
+ "suggest": {
+ "ext-dom": "*",
+ "ext-xdebug": ">=2.2.1",
+ "ext-xmlwriter": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.2.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
+ "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
+ "keywords": [
+ "coverage",
+ "testing",
+ "xunit"
+ ],
+ "time": "2015-10-06 15:47:00"
+ },
+ {
+ "name": "phpunit/php-file-iterator",
+ "version": "1.4.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
+ "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
+ "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
+ }
+ ],
+ "description": "FilterIterator implementation that filters files based on a list of suffixes.",
+ "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
+ "keywords": [
+ "filesystem",
+ "iterator"
+ ],
+ "time": "2015-06-21 13:08:43"
+ },
+ {
+ "name": "phpunit/php-text-template",
+ "version": "1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-text-template.git",
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Simple template engine.",
+ "homepage": "https://github.com/sebastianbergmann/php-text-template/",
+ "keywords": [
+ "template"
+ ],
+ "time": "2015-06-21 13:50:34"
+ },
+ {
+ "name": "phpunit/php-timer",
+ "version": "1.0.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-timer.git",
+ "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260",
+ "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4|~5"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Utility class for timing",
+ "homepage": "https://github.com/sebastianbergmann/php-timer/",
+ "keywords": [
+ "timer"
+ ],
+ "time": "2016-05-12 18:03:57"
+ },
+ {
+ "name": "phpunit/php-token-stream",
+ "version": "1.4.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-token-stream.git",
+ "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
+ "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
+ "shasum": ""
+ },
+ "require": {
+ "ext-tokenizer": "*",
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Wrapper around PHP's tokenizer extension.",
+ "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
+ "keywords": [
+ "tokenizer"
+ ],
+ "time": "2015-09-15 10:49:45"
+ },
+ {
+ "name": "phpunit/phpunit",
+ "version": "4.8.26",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/phpunit.git",
+ "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fc1d8cd5b5de11625979125c5639347896ac2c74",
+ "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-json": "*",
+ "ext-pcre": "*",
+ "ext-reflection": "*",
+ "ext-spl": "*",
+ "php": ">=5.3.3",
+ "phpspec/prophecy": "^1.3.1",
+ "phpunit/php-code-coverage": "~2.1",
+ "phpunit/php-file-iterator": "~1.4",
+ "phpunit/php-text-template": "~1.2",
+ "phpunit/php-timer": "^1.0.6",
+ "phpunit/phpunit-mock-objects": "~2.3",
+ "sebastian/comparator": "~1.1",
+ "sebastian/diff": "~1.2",
+ "sebastian/environment": "~1.3",
+ "sebastian/exporter": "~1.2",
+ "sebastian/global-state": "~1.0",
+ "sebastian/version": "~1.0",
+ "symfony/yaml": "~2.1|~3.0"
+ },
+ "suggest": {
+ "phpunit/php-invoker": "~1.1"
+ },
+ "bin": [
+ "phpunit"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.8.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "The PHP Unit Testing framework.",
+ "homepage": "https://phpunit.de/",
+ "keywords": [
+ "phpunit",
+ "testing",
+ "xunit"
+ ],
+ "time": "2016-05-17 03:09:28"
+ },
+ {
+ "name": "phpunit/phpunit-mock-objects",
+ "version": "2.3.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
+ "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
+ "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/instantiator": "^1.0.2",
+ "php": ">=5.3.3",
+ "phpunit/php-text-template": "~1.2",
+ "sebastian/exporter": "~1.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.4"
+ },
+ "suggest": {
+ "ext-soap": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.3.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Mock Object library for PHPUnit",
+ "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
+ "keywords": [
+ "mock",
+ "xunit"
+ ],
+ "time": "2015-10-02 06:51:40"
+ },
+ {
+ "name": "pimple/pimple",
+ "version": "v2.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/silexphp/Pimple.git",
+ "reference": "ea22fb2880faf7b7b0e17c9809c6fe25b071fd76"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/silexphp/Pimple/zipball/ea22fb2880faf7b7b0e17c9809c6fe25b071fd76",
+ "reference": "ea22fb2880faf7b7b0e17c9809c6fe25b071fd76",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Pimple": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ }
+ ],
+ "description": "Pimple is a simple Dependency Injection Container for PHP 5.3",
+ "homepage": "http://pimple.sensiolabs.org",
+ "keywords": [
+ "container",
+ "dependency injection"
+ ],
+ "time": "2014-07-24 07:10:08"
+ },
+ {
+ "name": "sami/sami",
+ "version": "v2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/FriendsOfPHP/Sami.git",
+ "reference": "fa58b324f41aa2aefe21dac4f22d8c98965fc012"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/FriendsOfPHP/Sami/zipball/fa58b324f41aa2aefe21dac4f22d8c98965fc012",
+ "reference": "fa58b324f41aa2aefe21dac4f22d8c98965fc012",
+ "shasum": ""
+ },
+ "require": {
+ "michelf/php-markdown": "~1.3",
+ "nikic/php-parser": "0.9.*",
+ "php": ">=5.3.0",
+ "pimple/pimple": "2.*",
+ "symfony/console": "~2.1",
+ "symfony/filesystem": "~2.1",
+ "symfony/finder": "~2.1",
+ "symfony/process": "~2.1",
+ "symfony/yaml": "~2.1",
+ "twig/twig": "1.*"
+ },
+ "bin": [
+ "sami.php"
+ ],
+ "type": "application",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Sami": "."
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ }
+ ],
+ "description": "Sami, an API documentation generator",
+ "homepage": "http://sami.sensiolabs.org",
+ "keywords": [
+ "phpdoc"
+ ],
+ "time": "2014-06-25 12:05:18"
+ },
+ {
+ "name": "sebastian/comparator",
+ "version": "1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/comparator.git",
+ "reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
+ "reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3",
+ "sebastian/diff": "~1.2",
+ "sebastian/exporter": "~1.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.4"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.2.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@2bepublished.at"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Provides the functionality to compare PHP values for equality",
+ "homepage": "http://www.github.com/sebastianbergmann/comparator",
+ "keywords": [
+ "comparator",
+ "compare",
+ "equality"
+ ],
+ "time": "2015-07-26 15:48:44"
+ },
+ {
+ "name": "sebastian/diff",
+ "version": "1.4.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/diff.git",
+ "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e",
+ "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.8"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Diff implementation",
+ "homepage": "https://github.com/sebastianbergmann/diff",
+ "keywords": [
+ "diff"
+ ],
+ "time": "2015-12-08 07:14:41"
+ },
+ {
+ "name": "sebastian/environment",
+ "version": "1.3.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/environment.git",
+ "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/4e8f0da10ac5802913afc151413bc8c53b6c2716",
+ "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.4"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.3.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Provides functionality to handle HHVM/PHP environments",
+ "homepage": "http://www.github.com/sebastianbergmann/environment",
+ "keywords": [
+ "Xdebug",
+ "environment",
+ "hhvm"
+ ],
+ "time": "2016-05-17 03:18:57"
+ },
+ {
+ "name": "sebastian/exporter",
+ "version": "1.2.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/exporter.git",
+ "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
+ "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3",
+ "sebastian/recursion-context": "~1.0"
+ },
+ "require-dev": {
+ "ext-mbstring": "*",
+ "phpunit/phpunit": "~4.4"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.3.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@2bepublished.at"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ }
+ ],
+ "description": "Provides the functionality to export PHP variables for visualization",
+ "homepage": "http://www.github.com/sebastianbergmann/exporter",
+ "keywords": [
+ "export",
+ "exporter"
+ ],
+ "time": "2016-06-17 09:04:28"
+ },
+ {
+ "name": "sebastian/global-state",
+ "version": "1.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/global-state.git",
+ "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
+ "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.2"
+ },
+ "suggest": {
+ "ext-uopz": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Snapshotting of global state",
+ "homepage": "http://www.github.com/sebastianbergmann/global-state",
+ "keywords": [
+ "global state"
+ ],
+ "time": "2015-10-12 03:26:01"
+ },
+ {
+ "name": "sebastian/recursion-context",
+ "version": "1.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/recursion-context.git",
+ "reference": "913401df809e99e4f47b27cdd781f4a258d58791"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791",
+ "reference": "913401df809e99e4f47b27cdd781f4a258d58791",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.4"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ }
+ ],
+ "description": "Provides functionality to recursively process PHP variables",
+ "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
+ "time": "2015-11-11 19:50:13"
+ },
+ {
+ "name": "sebastian/version",
+ "version": "1.0.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/version.git",
+ "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
+ "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
+ "shasum": ""
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library that helps with managing the version number of Git-hosted PHP projects",
+ "homepage": "https://github.com/sebastianbergmann/version",
+ "time": "2015-06-21 13:59:46"
+ },
+ {
+ "name": "squizlabs/php_codesniffer",
+ "version": "2.6.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
+ "reference": "fb72ed32f8418db5e7770be1653e62e0d6f5dd3d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/fb72ed32f8418db5e7770be1653e62e0d6f5dd3d",
+ "reference": "fb72ed32f8418db5e7770be1653e62e0d6f5dd3d",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": ">=5.1.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.0"
+ },
+ "bin": [
+ "scripts/phpcs",
+ "scripts/phpcbf"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "CodeSniffer.php",
+ "CodeSniffer/CLI.php",
+ "CodeSniffer/Exception.php",
+ "CodeSniffer/File.php",
+ "CodeSniffer/Fixer.php",
+ "CodeSniffer/Report.php",
+ "CodeSniffer/Reporting.php",
+ "CodeSniffer/Sniff.php",
+ "CodeSniffer/Tokens.php",
+ "CodeSniffer/Reports/",
+ "CodeSniffer/Tokenizers/",
+ "CodeSniffer/DocGenerators/",
+ "CodeSniffer/Standards/AbstractPatternSniff.php",
+ "CodeSniffer/Standards/AbstractScopeSniff.php",
+ "CodeSniffer/Standards/AbstractVariableSniff.php",
+ "CodeSniffer/Standards/IncorrectPatternException.php",
+ "CodeSniffer/Standards/Generic/Sniffs/",
+ "CodeSniffer/Standards/MySource/Sniffs/",
+ "CodeSniffer/Standards/PEAR/Sniffs/",
+ "CodeSniffer/Standards/PSR1/Sniffs/",
+ "CodeSniffer/Standards/PSR2/Sniffs/",
+ "CodeSniffer/Standards/Squiz/Sniffs/",
+ "CodeSniffer/Standards/Zend/Sniffs/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Greg Sherwood",
+ "role": "lead"
+ }
+ ],
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
+ "homepage": "http://www.squizlabs.com/php-codesniffer",
+ "keywords": [
+ "phpcs",
+ "standards"
+ ],
+ "time": "2016-05-30 22:24:32"
+ },
+ {
+ "name": "symfony/console",
+ "version": "v2.8.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/console.git",
+ "reference": "5ac8bc9aa77bb2edf06af3a1bb6bc1020d23acd3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/console/zipball/5ac8bc9aa77bb2edf06af3a1bb6bc1020d23acd3",
+ "reference": "5ac8bc9aa77bb2edf06af3a1bb6bc1020d23acd3",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9",
+ "symfony/polyfill-mbstring": "~1.0"
+ },
+ "require-dev": {
+ "psr/log": "~1.0",
+ "symfony/event-dispatcher": "~2.1|~3.0.0",
+ "symfony/process": "~2.1|~3.0.0"
+ },
+ "suggest": {
+ "psr/log": "For using the console logger",
+ "symfony/event-dispatcher": "",
+ "symfony/process": ""
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Console\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Console Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-06-06 15:06:25"
+ },
+ {
+ "name": "symfony/filesystem",
+ "version": "v2.8.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/filesystem.git",
+ "reference": "dee379131dceed90a429e951546b33edfe7dccbb"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/dee379131dceed90a429e951546b33edfe7dccbb",
+ "reference": "dee379131dceed90a429e951546b33edfe7dccbb",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Filesystem\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Filesystem Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-04-12 18:01:21"
+ },
+ {
+ "name": "symfony/finder",
+ "version": "v2.8.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/finder.git",
+ "reference": "3ec095fab1800222732ca522a95dce8fa124007b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/3ec095fab1800222732ca522a95dce8fa124007b",
+ "reference": "3ec095fab1800222732ca522a95dce8fa124007b",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Finder\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Finder Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-06-06 11:11:27"
+ },
+ {
+ "name": "symfony/polyfill-mbstring",
+ "version": "v1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-mbstring.git",
+ "reference": "dff51f72b0706335131b00a7f49606168c582594"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/dff51f72b0706335131b00a7f49606168c582594",
+ "reference": "dff51f72b0706335131b00a7f49606168c582594",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "suggest": {
+ "ext-mbstring": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.2-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Mbstring\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for the Mbstring extension",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "mbstring",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "time": "2016-05-18 14:26:46"
+ },
+ {
+ "name": "symfony/process",
+ "version": "v2.8.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/process.git",
+ "reference": "115347d00c342198cdc52a7bd8bc15b5ab43500c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/process/zipball/115347d00c342198cdc52a7bd8bc15b5ab43500c",
+ "reference": "115347d00c342198cdc52a7bd8bc15b5ab43500c",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Process\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Process Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-06-06 11:11:27"
+ },
+ {
+ "name": "symfony/yaml",
+ "version": "v2.8.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/yaml.git",
+ "reference": "815fabf3f48c7d1df345a69d1ad1a88f59757b34"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/815fabf3f48c7d1df345a69d1ad1a88f59757b34",
+ "reference": "815fabf3f48c7d1df345a69d1ad1a88f59757b34",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.8-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Yaml\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Yaml Component",
+ "homepage": "https://symfony.com",
+ "time": "2016-06-06 11:11:27"
+ },
+ {
+ "name": "twig/twig",
+ "version": "v1.24.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/twigphp/Twig.git",
+ "reference": "3566d311a92aae4deec6e48682dc5a4528c4a512"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/3566d311a92aae4deec6e48682dc5a4528c4a512",
+ "reference": "3566d311a92aae4deec6e48682dc5a4528c4a512",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.2.7"
+ },
+ "require-dev": {
+ "symfony/debug": "~2.7",
+ "symfony/phpunit-bridge": "~2.7"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.24-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Twig_": "lib/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com",
+ "homepage": "http://fabien.potencier.org",
+ "role": "Lead Developer"
+ },
+ {
+ "name": "Armin Ronacher",
+ "email": "armin.ronacher@active-4.com",
+ "role": "Project Founder"
+ },
+ {
+ "name": "Twig Team",
+ "homepage": "http://twig.sensiolabs.org/contributors",
+ "role": "Contributors"
+ }
+ ],
+ "description": "Twig, the flexible, fast, and secure template language for PHP",
+ "homepage": "http://twig.sensiolabs.org",
+ "keywords": [
+ "templating"
+ ],
+ "time": "2016-05-30 09:11:59"
+ },
+ {
+ "name": "webmozart/assert",
+ "version": "1.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/webmozart/assert.git",
+ "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/webmozart/assert/zipball/30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde",
+ "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.6"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Webmozart\\Assert\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@gmail.com"
+ }
+ ],
+ "description": "Assertions to validate method input/output with nice error messages.",
+ "keywords": [
+ "assert",
+ "check",
+ "validate"
+ ],
+ "time": "2015-08-24 13:29:44"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=5.3.3"
+ },
+ "platform-dev": []
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/AES.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/AES.php
new file mode 100644
index 00000000..7d8cb8b0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/AES.php
@@ -0,0 +1,126 @@
+<?php
+
+/**
+ * Pure-PHP implementation of AES.
+ *
+ * Uses mcrypt, if available/possible, and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * NOTE: Since AES.php is (for compatibility and phpseclib-historical reasons) virtually
+ * just a wrapper to Rijndael.php you may consider using Rijndael.php instead of
+ * to save one include_once().
+ *
+ * If {@link self::setKeyLength() setKeyLength()} isn't called, it'll be calculated from
+ * {@link self::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's 136-bits
+ * it'll be null-padded to 192-bits and 192 bits will be the key length until {@link self::setKey() setKey()}
+ * is called, again, at which point, it'll be recalculated.
+ *
+ * Since \phpseclib\Crypt\AES extends \phpseclib\Crypt\Rijndael, some functions are available to be called that, in the context of AES, don't
+ * make a whole lot of sense. {@link self::setBlockLength() setBlockLength()}, for instance. Calling that function,
+ * however possible, won't do anything (AES has a fixed block length whereas Rijndael has a variable one).
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $aes = new \phpseclib\Crypt\AES();
+ *
+ * $aes->setKey('abcdefghijklmnop');
+ *
+ * $size = 10 * 1024;
+ * $plaintext = '';
+ * for ($i = 0; $i < $size; $i++) {
+ * $plaintext.= 'a';
+ * }
+ *
+ * echo $aes->decrypt($aes->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package AES
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2008 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of AES.
+ *
+ * @package AES
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class AES extends Rijndael
+{
+ /**
+ * Dummy function
+ *
+ * Since \phpseclib\Crypt\AES extends \phpseclib\Crypt\Rijndael, this function is, technically, available, but it doesn't do anything.
+ *
+ * @see \phpseclib\Crypt\Rijndael::setBlockLength()
+ * @access public
+ * @param int $length
+ */
+ function setBlockLength($length)
+ {
+ return;
+ }
+
+ /**
+ * Sets the key length
+ *
+ * Valid key lengths are 128, 192, and 256. If the length is less than 128, it will be rounded up to
+ * 128. If the length is greater than 128 and invalid, it will be rounded down to the closest valid amount.
+ *
+ * @see \phpseclib\Crypt\Rijndael:setKeyLength()
+ * @access public
+ * @param int $length
+ */
+ function setKeyLength($length)
+ {
+ switch ($length) {
+ case 160:
+ $length = 192;
+ break;
+ case 224:
+ $length = 256;
+ }
+ parent::setKeyLength($length);
+ }
+
+ /**
+ * Sets the key.
+ *
+ * Rijndael supports five different key lengths, AES only supports three.
+ *
+ * @see \phpseclib\Crypt\Rijndael:setKey()
+ * @see setKeyLength()
+ * @access public
+ * @param string $key
+ */
+ function setKey($key)
+ {
+ parent::setKey($key);
+
+ if (!$this->explicit_key_length) {
+ $length = strlen($key);
+ switch (true) {
+ case $length <= 16:
+ $this->key_length = 16;
+ break;
+ case $length <= 24:
+ $this->key_length = 24;
+ break;
+ default:
+ $this->key_length = 32;
+ }
+ $this->_setEngine();
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Base.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Base.php
new file mode 100644
index 00000000..fd99c44f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Base.php
@@ -0,0 +1,2553 @@
+<?php
+
+/**
+ * Base Class for all \phpseclib\Crypt\* cipher classes
+ *
+ * PHP version 5
+ *
+ * Internally for phpseclib developers:
+ * If you plan to add a new cipher class, please note following rules:
+ *
+ * - The new \phpseclib\Crypt\* cipher class should extend \phpseclib\Crypt\Base
+ *
+ * - Following methods are then required to be overridden/overloaded:
+ *
+ * - _encryptBlock()
+ *
+ * - _decryptBlock()
+ *
+ * - _setupKey()
+ *
+ * - All other methods are optional to be overridden/overloaded
+ *
+ * - Look at the source code of the current ciphers how they extend \phpseclib\Crypt\Base
+ * and take one of them as a start up for the new cipher class.
+ *
+ * - Please read all the other comments/notes/hints here also for each class var/method
+ *
+ * @category Crypt
+ * @package Base
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @author Hans-Juergen Petrich <petrich@tronic-media.com>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Base Class for all \phpseclib\Crypt\* cipher classes
+ *
+ * @package Base
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @author Hans-Juergen Petrich <petrich@tronic-media.com>
+ */
+abstract class Base
+{
+ /**#@+
+ * @access public
+ * @see \phpseclib\Crypt\Base::encrypt()
+ * @see \phpseclib\Crypt\Base::decrypt()
+ */
+ /**
+ * Encrypt / decrypt using the Counter mode.
+ *
+ * Set to -1 since that's what Crypt/Random.php uses to index the CTR mode.
+ *
+ * @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29
+ */
+ const MODE_CTR = -1;
+ /**
+ * Encrypt / decrypt using the Electronic Code Book mode.
+ *
+ * @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Electronic_codebook_.28ECB.29
+ */
+ const MODE_ECB = 1;
+ /**
+ * Encrypt / decrypt using the Code Book Chaining mode.
+ *
+ * @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher-block_chaining_.28CBC.29
+ */
+ const MODE_CBC = 2;
+ /**
+ * Encrypt / decrypt using the Cipher Feedback mode.
+ *
+ * @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher_feedback_.28CFB.29
+ */
+ const MODE_CFB = 3;
+ /**
+ * Encrypt / decrypt using the Output Feedback mode.
+ *
+ * @link http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Output_feedback_.28OFB.29
+ */
+ const MODE_OFB = 4;
+ /**
+ * Encrypt / decrypt using streaming mode.
+ */
+ const MODE_STREAM = 5;
+ /**#@-*/
+
+ /**
+ * Whirlpool available flag
+ *
+ * @see \phpseclib\Crypt\Base::_hashInlineCryptFunction()
+ * @var bool
+ * @access private
+ */
+ static $WHIRLPOOL_AVAILABLE;
+
+ /**#@+
+ * @access private
+ * @see \phpseclib\Crypt\Base::__construct()
+ */
+ /**
+ * Base value for the internal implementation $engine switch
+ */
+ const ENGINE_INTERNAL = 1;
+ /**
+ * Base value for the mcrypt implementation $engine switch
+ */
+ const ENGINE_MCRYPT = 2;
+ /**
+ * Base value for the mcrypt implementation $engine switch
+ */
+ const ENGINE_OPENSSL = 3;
+ /**#@-*/
+
+ /**
+ * The Encryption Mode
+ *
+ * @see self::__construct()
+ * @var int
+ * @access private
+ */
+ var $mode;
+
+ /**
+ * The Block Length of the block cipher
+ *
+ * @var int
+ * @access private
+ */
+ var $block_size = 16;
+
+ /**
+ * The Key
+ *
+ * @see self::setKey()
+ * @var string
+ * @access private
+ */
+ var $key = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
+
+ /**
+ * The Initialization Vector
+ *
+ * @see self::setIV()
+ * @var string
+ * @access private
+ */
+ var $iv;
+
+ /**
+ * A "sliding" Initialization Vector
+ *
+ * @see self::enableContinuousBuffer()
+ * @see self::_clearBuffers()
+ * @var string
+ * @access private
+ */
+ var $encryptIV;
+
+ /**
+ * A "sliding" Initialization Vector
+ *
+ * @see self::enableContinuousBuffer()
+ * @see self::_clearBuffers()
+ * @var string
+ * @access private
+ */
+ var $decryptIV;
+
+ /**
+ * Continuous Buffer status
+ *
+ * @see self::enableContinuousBuffer()
+ * @var bool
+ * @access private
+ */
+ var $continuousBuffer = false;
+
+ /**
+ * Encryption buffer for CTR, OFB and CFB modes
+ *
+ * @see self::encrypt()
+ * @see self::_clearBuffers()
+ * @var array
+ * @access private
+ */
+ var $enbuffer;
+
+ /**
+ * Decryption buffer for CTR, OFB and CFB modes
+ *
+ * @see self::decrypt()
+ * @see self::_clearBuffers()
+ * @var array
+ * @access private
+ */
+ var $debuffer;
+
+ /**
+ * mcrypt resource for encryption
+ *
+ * The mcrypt resource can be recreated every time something needs to be created or it can be created just once.
+ * Since mcrypt operates in continuous mode, by default, it'll need to be recreated when in non-continuous mode.
+ *
+ * @see self::encrypt()
+ * @var resource
+ * @access private
+ */
+ var $enmcrypt;
+
+ /**
+ * mcrypt resource for decryption
+ *
+ * The mcrypt resource can be recreated every time something needs to be created or it can be created just once.
+ * Since mcrypt operates in continuous mode, by default, it'll need to be recreated when in non-continuous mode.
+ *
+ * @see self::decrypt()
+ * @var resource
+ * @access private
+ */
+ var $demcrypt;
+
+ /**
+ * Does the enmcrypt resource need to be (re)initialized?
+ *
+ * @see \phpseclib\Crypt\Twofish::setKey()
+ * @see \phpseclib\Crypt\Twofish::setIV()
+ * @var bool
+ * @access private
+ */
+ var $enchanged = true;
+
+ /**
+ * Does the demcrypt resource need to be (re)initialized?
+ *
+ * @see \phpseclib\Crypt\Twofish::setKey()
+ * @see \phpseclib\Crypt\Twofish::setIV()
+ * @var bool
+ * @access private
+ */
+ var $dechanged = true;
+
+ /**
+ * mcrypt resource for CFB mode
+ *
+ * mcrypt's CFB mode, in (and only in) buffered context,
+ * is broken, so phpseclib implements the CFB mode by it self,
+ * even when the mcrypt php extension is available.
+ *
+ * In order to do the CFB-mode work (fast) phpseclib
+ * use a separate ECB-mode mcrypt resource.
+ *
+ * @link http://phpseclib.sourceforge.net/cfb-demo.phps
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @see self::_setupMcrypt()
+ * @var resource
+ * @access private
+ */
+ var $ecb;
+
+ /**
+ * Optimizing value while CFB-encrypting
+ *
+ * Only relevant if $continuousBuffer enabled
+ * and $engine == self::ENGINE_MCRYPT
+ *
+ * It's faster to re-init $enmcrypt if
+ * $buffer bytes > $cfb_init_len than
+ * using the $ecb resource furthermore.
+ *
+ * This value depends of the chosen cipher
+ * and the time it would be needed for it's
+ * initialization [by mcrypt_generic_init()]
+ * which, typically, depends on the complexity
+ * on its internaly Key-expanding algorithm.
+ *
+ * @see self::encrypt()
+ * @var int
+ * @access private
+ */
+ var $cfb_init_len = 600;
+
+ /**
+ * Does internal cipher state need to be (re)initialized?
+ *
+ * @see self::setKey()
+ * @see self::setIV()
+ * @see self::disableContinuousBuffer()
+ * @var bool
+ * @access private
+ */
+ var $changed = true;
+
+ /**
+ * Padding status
+ *
+ * @see self::enablePadding()
+ * @var bool
+ * @access private
+ */
+ var $padding = true;
+
+ /**
+ * Is the mode one that is paddable?
+ *
+ * @see self::__construct()
+ * @var bool
+ * @access private
+ */
+ var $paddable = false;
+
+ /**
+ * Holds which crypt engine internaly should be use,
+ * which will be determined automatically on __construct()
+ *
+ * Currently available $engines are:
+ * - self::ENGINE_OPENSSL (very fast, php-extension: openssl, extension_loaded('openssl') required)
+ * - self::ENGINE_MCRYPT (fast, php-extension: mcrypt, extension_loaded('mcrypt') required)
+ * - self::ENGINE_INTERNAL (slower, pure php-engine, no php-extension required)
+ *
+ * @see self::_setEngine()
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @var int
+ * @access private
+ */
+ var $engine;
+
+ /**
+ * Holds the preferred crypt engine
+ *
+ * @see self::_setEngine()
+ * @see self::setPreferredEngine()
+ * @var int
+ * @access private
+ */
+ var $preferredEngine;
+
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * Only used if $engine == self::ENGINE_MCRYPT
+ *
+ * @link http://www.php.net/mcrypt_module_open
+ * @link http://www.php.net/mcrypt_list_algorithms
+ * @see self::_setupMcrypt()
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt;
+
+ /**
+ * The openssl specific name of the cipher
+ *
+ * Only used if $engine == self::ENGINE_OPENSSL
+ *
+ * @link http://www.php.net/openssl-get-cipher-methods
+ * @var string
+ * @access private
+ */
+ var $cipher_name_openssl;
+
+ /**
+ * The openssl specific name of the cipher in ECB mode
+ *
+ * If OpenSSL does not support the mode we're trying to use (CTR)
+ * it can still be emulated with ECB mode.
+ *
+ * @link http://www.php.net/openssl-get-cipher-methods
+ * @var string
+ * @access private
+ */
+ var $cipher_name_openssl_ecb;
+
+ /**
+ * The default salt used by setPassword()
+ *
+ * @see self::setPassword()
+ * @var string
+ * @access private
+ */
+ var $password_default_salt = 'phpseclib/salt';
+
+ /**
+ * The name of the performance-optimized callback function
+ *
+ * Used by encrypt() / decrypt()
+ * only if $engine == self::ENGINE_INTERNAL
+ *
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @see self::_setupInlineCrypt()
+ * @see self::$use_inline_crypt
+ * @var Callback
+ * @access private
+ */
+ var $inline_crypt;
+
+ /**
+ * Holds whether performance-optimized $inline_crypt() can/should be used.
+ *
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @see self::inline_crypt
+ * @var mixed
+ * @access private
+ */
+ var $use_inline_crypt;
+
+ /**
+ * If OpenSSL can be used in ECB but not in CTR we can emulate CTR
+ *
+ * @see self::_openssl_ctr_process()
+ * @var bool
+ * @access private
+ */
+ var $openssl_emulate_ctr = false;
+
+ /**
+ * Determines what options are passed to openssl_encrypt/decrypt
+ *
+ * @see self::isValidEngine()
+ * @var mixed
+ * @access private
+ */
+ var $openssl_options;
+
+ /**
+ * Has the key length explicitly been set or should it be derived from the key, itself?
+ *
+ * @see self::setKeyLength()
+ * @var bool
+ * @access private
+ */
+ var $explicit_key_length = false;
+
+ /**
+ * Don't truncate / null pad key
+ *
+ * @see self::_clearBuffers()
+ * @var bool
+ * @access private
+ */
+ var $skip_key_adjustment = false;
+
+ /**
+ * Default Constructor.
+ *
+ * Determines whether or not the mcrypt extension should be used.
+ *
+ * $mode could be:
+ *
+ * - self::MODE_ECB
+ *
+ * - self::MODE_CBC
+ *
+ * - self::MODE_CTR
+ *
+ * - self::MODE_CFB
+ *
+ * - self::MODE_OFB
+ *
+ * If not explicitly set, self::MODE_CBC will be used.
+ *
+ * @param int $mode
+ * @access public
+ */
+ function __construct($mode = self::MODE_CBC)
+ {
+ // $mode dependent settings
+ switch ($mode) {
+ case self::MODE_ECB:
+ $this->paddable = true;
+ $this->mode = self::MODE_ECB;
+ break;
+ case self::MODE_CTR:
+ case self::MODE_CFB:
+ case self::MODE_OFB:
+ case self::MODE_STREAM:
+ $this->mode = $mode;
+ break;
+ case self::MODE_CBC:
+ default:
+ $this->paddable = true;
+ $this->mode = self::MODE_CBC;
+ }
+
+ $this->_setEngine();
+
+ // Determining whether inline crypting can be used by the cipher
+ if ($this->use_inline_crypt !== false && function_exists('create_function')) {
+ $this->use_inline_crypt = true;
+ }
+ }
+
+ /**
+ * Sets the initialization vector. (optional)
+ *
+ * SetIV is not required when self::MODE_ECB (or ie for AES: \phpseclib\Crypt\AES::MODE_ECB) is being used. If not explicitly set, it'll be assumed
+ * to be all zero's.
+ *
+ * @access public
+ * @param string $iv
+ * @internal Can be overwritten by a sub class, but does not have to be
+ */
+ function setIV($iv)
+ {
+ if ($this->mode == self::MODE_ECB) {
+ return;
+ }
+
+ $this->iv = $iv;
+ $this->changed = true;
+ }
+
+ /**
+ * Sets the key length.
+ *
+ * Keys with explicitly set lengths need to be treated accordingly
+ *
+ * @access public
+ * @param int $length
+ */
+ function setKeyLength($length)
+ {
+ $this->explicit_key_length = true;
+ $this->changed = true;
+ $this->_setEngine();
+ }
+
+ /**
+ * Returns the current key length in bits
+ *
+ * @access public
+ * @return int
+ */
+ function getKeyLength()
+ {
+ return $this->key_length << 3;
+ }
+
+ /**
+ * Returns the current block length in bits
+ *
+ * @access public
+ * @return int
+ */
+ function getBlockLength()
+ {
+ return $this->block_size << 3;
+ }
+
+ /**
+ * Sets the key.
+ *
+ * The min/max length(s) of the key depends on the cipher which is used.
+ * If the key not fits the length(s) of the cipher it will paded with null bytes
+ * up to the closest valid key length. If the key is more than max length,
+ * we trim the excess bits.
+ *
+ * If the key is not explicitly set, it'll be assumed to be all null bytes.
+ *
+ * @access public
+ * @param string $key
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function setKey($key)
+ {
+ if (!$this->explicit_key_length) {
+ $this->setKeyLength(strlen($key) << 3);
+ $this->explicit_key_length = false;
+ }
+
+ $this->key = $key;
+ $this->changed = true;
+ $this->_setEngine();
+ }
+
+ /**
+ * Sets the password.
+ *
+ * Depending on what $method is set to, setPassword()'s (optional) parameters are as follows:
+ * {@link http://en.wikipedia.org/wiki/PBKDF2 pbkdf2} or pbkdf1:
+ * $hash, $salt, $count, $dkLen
+ *
+ * Where $hash (default = sha1) currently supports the following hashes: see: Crypt/Hash.php
+ *
+ * @see Crypt/Hash.php
+ * @param string $password
+ * @param string $method
+ * @return bool
+ * @access public
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function setPassword($password, $method = 'pbkdf2')
+ {
+ $key = '';
+
+ switch ($method) {
+ default: // 'pbkdf2' or 'pbkdf1'
+ $func_args = func_get_args();
+
+ // Hash function
+ $hash = isset($func_args[2]) ? $func_args[2] : 'sha1';
+
+ // WPA and WPA2 use the SSID as the salt
+ $salt = isset($func_args[3]) ? $func_args[3] : $this->password_default_salt;
+
+ // RFC2898#section-4.2 uses 1,000 iterations by default
+ // WPA and WPA2 use 4,096.
+ $count = isset($func_args[4]) ? $func_args[4] : 1000;
+
+ // Keylength
+ if (isset($func_args[5])) {
+ $dkLen = $func_args[5];
+ } else {
+ $dkLen = $method == 'pbkdf1' ? 2 * $this->key_length : $this->key_length;
+ }
+
+ switch (true) {
+ case $method == 'pbkdf1':
+ $hashObj = new Hash();
+ $hashObj->setHash($hash);
+ if ($dkLen > $hashObj->getLength()) {
+ user_error('Derived key too long');
+ return false;
+ }
+ $t = $password . $salt;
+ for ($i = 0; $i < $count; ++$i) {
+ $t = $hashObj->hash($t);
+ }
+ $key = substr($t, 0, $dkLen);
+
+ $this->setKey(substr($key, 0, $dkLen >> 1));
+ $this->setIV(substr($key, $dkLen >> 1));
+
+ return true;
+ // Determining if php[>=5.5.0]'s hash_pbkdf2() function avail- and useable
+ case !function_exists('hash_pbkdf2'):
+ case !function_exists('hash_algos'):
+ case !in_array($hash, hash_algos()):
+ $i = 1;
+ while (strlen($key) < $dkLen) {
+ $hmac = new Hash();
+ $hmac->setHash($hash);
+ $hmac->setKey($password);
+ $f = $u = $hmac->hash($salt . pack('N', $i++));
+ for ($j = 2; $j <= $count; ++$j) {
+ $u = $hmac->hash($u);
+ $f^= $u;
+ }
+ $key.= $f;
+ }
+ $key = substr($key, 0, $dkLen);
+ break;
+ default:
+ $key = hash_pbkdf2($hash, $password, $salt, $count, $dkLen, true);
+ }
+ }
+
+ $this->setKey($key);
+
+ return true;
+ }
+
+ /**
+ * Encrypts a message.
+ *
+ * $plaintext will be padded with additional bytes such that it's length is a multiple of the block size. Other cipher
+ * implementations may or may not pad in the same manner. Other common approaches to padding and the reasons why it's
+ * necessary are discussed in the following
+ * URL:
+ *
+ * {@link http://www.di-mgt.com.au/cryptopad.html http://www.di-mgt.com.au/cryptopad.html}
+ *
+ * An alternative to padding is to, separately, send the length of the file. This is what SSH, in fact, does.
+ * strlen($plaintext) will still need to be a multiple of the block size, however, arbitrary values can be added to make it that
+ * length.
+ *
+ * @see self::decrypt()
+ * @access public
+ * @param string $plaintext
+ * @return string $ciphertext
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function encrypt($plaintext)
+ {
+ if ($this->paddable) {
+ $plaintext = $this->_pad($plaintext);
+ }
+
+ if ($this->engine === self::ENGINE_OPENSSL) {
+ if ($this->changed) {
+ $this->_clearBuffers();
+ $this->changed = false;
+ }
+ switch ($this->mode) {
+ case self::MODE_STREAM:
+ return openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, $this->openssl_options);
+ case self::MODE_ECB:
+ $result = openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, $this->openssl_options);
+ return !defined('OPENSSL_RAW_DATA') ? substr($result, 0, -$this->block_size) : $result;
+ case self::MODE_CBC:
+ $result = openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $this->encryptIV);
+ if (!defined('OPENSSL_RAW_DATA')) {
+ $result = substr($result, 0, -$this->block_size);
+ }
+ if ($this->continuousBuffer) {
+ $this->encryptIV = substr($result, -$this->block_size);
+ }
+ return $result;
+ case self::MODE_CTR:
+ return $this->_openssl_ctr_process($plaintext, $this->encryptIV, $this->enbuffer);
+ case self::MODE_CFB:
+ // cfb loosely routines inspired by openssl's:
+ // {@link http://cvs.openssl.org/fileview?f=openssl/crypto/modes/cfb128.c&v=1.3.2.2.2.1}
+ $ciphertext = '';
+ if ($this->continuousBuffer) {
+ $iv = &$this->encryptIV;
+ $pos = &$this->enbuffer['pos'];
+ } else {
+ $iv = $this->encryptIV;
+ $pos = 0;
+ }
+ $len = strlen($plaintext);
+ $i = 0;
+ if ($pos) {
+ $orig_pos = $pos;
+ $max = $this->block_size - $pos;
+ if ($len >= $max) {
+ $i = $max;
+ $len-= $max;
+ $pos = 0;
+ } else {
+ $i = $len;
+ $pos+= $len;
+ $len = 0;
+ }
+ // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $blocksize
+ $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
+ $iv = substr_replace($iv, $ciphertext, $orig_pos, $i);
+ $plaintext = substr($plaintext, $i);
+ }
+
+ $overflow = $len % $this->block_size;
+
+ if ($overflow) {
+ $ciphertext.= openssl_encrypt(substr($plaintext, 0, -$overflow) . str_repeat("\0", $this->block_size), $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);
+ $iv = $this->_string_pop($ciphertext, $this->block_size);
+
+ $size = $len - $overflow;
+ $block = $iv ^ substr($plaintext, -$overflow);
+ $iv = substr_replace($iv, $block, 0, $overflow);
+ $ciphertext.= $block;
+ $pos = $overflow;
+ } elseif ($len) {
+ $ciphertext = openssl_encrypt($plaintext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);
+ $iv = substr($ciphertext, -$this->block_size);
+ }
+
+ return $ciphertext;
+ case self::MODE_OFB:
+ return $this->_openssl_ofb_process($plaintext, $this->encryptIV, $this->enbuffer);
+ }
+ }
+
+ if ($this->engine === self::ENGINE_MCRYPT) {
+ if ($this->changed) {
+ $this->_setupMcrypt();
+ $this->changed = false;
+ }
+ if ($this->enchanged) {
+ @mcrypt_generic_init($this->enmcrypt, $this->key, $this->encryptIV);
+ $this->enchanged = false;
+ }
+
+ // re: {@link http://phpseclib.sourceforge.net/cfb-demo.phps}
+ // using mcrypt's default handing of CFB the above would output two different things. using phpseclib's
+ // rewritten CFB implementation the above outputs the same thing twice.
+ if ($this->mode == self::MODE_CFB && $this->continuousBuffer) {
+ $block_size = $this->block_size;
+ $iv = &$this->encryptIV;
+ $pos = &$this->enbuffer['pos'];
+ $len = strlen($plaintext);
+ $ciphertext = '';
+ $i = 0;
+ if ($pos) {
+ $orig_pos = $pos;
+ $max = $block_size - $pos;
+ if ($len >= $max) {
+ $i = $max;
+ $len-= $max;
+ $pos = 0;
+ } else {
+ $i = $len;
+ $pos+= $len;
+ $len = 0;
+ }
+ $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
+ $iv = substr_replace($iv, $ciphertext, $orig_pos, $i);
+ $this->enbuffer['enmcrypt_init'] = true;
+ }
+ if ($len >= $block_size) {
+ if ($this->enbuffer['enmcrypt_init'] === false || $len > $this->cfb_init_len) {
+ if ($this->enbuffer['enmcrypt_init'] === true) {
+ @mcrypt_generic_init($this->enmcrypt, $this->key, $iv);
+ $this->enbuffer['enmcrypt_init'] = false;
+ }
+ $ciphertext.= @mcrypt_generic($this->enmcrypt, substr($plaintext, $i, $len - $len % $block_size));
+ $iv = substr($ciphertext, -$block_size);
+ $len%= $block_size;
+ } else {
+ while ($len >= $block_size) {
+ $iv = @mcrypt_generic($this->ecb, $iv) ^ substr($plaintext, $i, $block_size);
+ $ciphertext.= $iv;
+ $len-= $block_size;
+ $i+= $block_size;
+ }
+ }
+ }
+
+ if ($len) {
+ $iv = @mcrypt_generic($this->ecb, $iv);
+ $block = $iv ^ substr($plaintext, -$len);
+ $iv = substr_replace($iv, $block, 0, $len);
+ $ciphertext.= $block;
+ $pos = $len;
+ }
+
+ return $ciphertext;
+ }
+
+ $ciphertext = @mcrypt_generic($this->enmcrypt, $plaintext);
+
+ if (!$this->continuousBuffer) {
+ @mcrypt_generic_init($this->enmcrypt, $this->key, $this->encryptIV);
+ }
+
+ return $ciphertext;
+ }
+
+ if ($this->changed) {
+ $this->_setup();
+ $this->changed = false;
+ }
+ if ($this->use_inline_crypt) {
+ $inline = $this->inline_crypt;
+ return $inline('encrypt', $this, $plaintext);
+ }
+
+ $buffer = &$this->enbuffer;
+ $block_size = $this->block_size;
+ $ciphertext = '';
+ switch ($this->mode) {
+ case self::MODE_ECB:
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $ciphertext.= $this->_encryptBlock(substr($plaintext, $i, $block_size));
+ }
+ break;
+ case self::MODE_CBC:
+ $xor = $this->encryptIV;
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $block = substr($plaintext, $i, $block_size);
+ $block = $this->_encryptBlock($block ^ $xor);
+ $xor = $block;
+ $ciphertext.= $block;
+ }
+ if ($this->continuousBuffer) {
+ $this->encryptIV = $xor;
+ }
+ break;
+ case self::MODE_CTR:
+ $xor = $this->encryptIV;
+ if (strlen($buffer['ciphertext'])) {
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $block = substr($plaintext, $i, $block_size);
+ if (strlen($block) > strlen($buffer['ciphertext'])) {
+ $buffer['ciphertext'].= $this->_encryptBlock($xor);
+ }
+ $this->_increment_str($xor);
+ $key = $this->_string_shift($buffer['ciphertext'], $block_size);
+ $ciphertext.= $block ^ $key;
+ }
+ } else {
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $block = substr($plaintext, $i, $block_size);
+ $key = $this->_encryptBlock($xor);
+ $this->_increment_str($xor);
+ $ciphertext.= $block ^ $key;
+ }
+ }
+ if ($this->continuousBuffer) {
+ $this->encryptIV = $xor;
+ if ($start = strlen($plaintext) % $block_size) {
+ $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
+ }
+ }
+ break;
+ case self::MODE_CFB:
+ // cfb loosely routines inspired by openssl's:
+ // {@link http://cvs.openssl.org/fileview?f=openssl/crypto/modes/cfb128.c&v=1.3.2.2.2.1}
+ if ($this->continuousBuffer) {
+ $iv = &$this->encryptIV;
+ $pos = &$buffer['pos'];
+ } else {
+ $iv = $this->encryptIV;
+ $pos = 0;
+ }
+ $len = strlen($plaintext);
+ $i = 0;
+ if ($pos) {
+ $orig_pos = $pos;
+ $max = $block_size - $pos;
+ if ($len >= $max) {
+ $i = $max;
+ $len-= $max;
+ $pos = 0;
+ } else {
+ $i = $len;
+ $pos+= $len;
+ $len = 0;
+ }
+ // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $blocksize
+ $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
+ $iv = substr_replace($iv, $ciphertext, $orig_pos, $i);
+ }
+ while ($len >= $block_size) {
+ $iv = $this->_encryptBlock($iv) ^ substr($plaintext, $i, $block_size);
+ $ciphertext.= $iv;
+ $len-= $block_size;
+ $i+= $block_size;
+ }
+ if ($len) {
+ $iv = $this->_encryptBlock($iv);
+ $block = $iv ^ substr($plaintext, $i);
+ $iv = substr_replace($iv, $block, 0, $len);
+ $ciphertext.= $block;
+ $pos = $len;
+ }
+ break;
+ case self::MODE_OFB:
+ $xor = $this->encryptIV;
+ if (strlen($buffer['xor'])) {
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $block = substr($plaintext, $i, $block_size);
+ if (strlen($block) > strlen($buffer['xor'])) {
+ $xor = $this->_encryptBlock($xor);
+ $buffer['xor'].= $xor;
+ }
+ $key = $this->_string_shift($buffer['xor'], $block_size);
+ $ciphertext.= $block ^ $key;
+ }
+ } else {
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $xor = $this->_encryptBlock($xor);
+ $ciphertext.= substr($plaintext, $i, $block_size) ^ $xor;
+ }
+ $key = $xor;
+ }
+ if ($this->continuousBuffer) {
+ $this->encryptIV = $xor;
+ if ($start = strlen($plaintext) % $block_size) {
+ $buffer['xor'] = substr($key, $start) . $buffer['xor'];
+ }
+ }
+ break;
+ case self::MODE_STREAM:
+ $ciphertext = $this->_encryptBlock($plaintext);
+ break;
+ }
+
+ return $ciphertext;
+ }
+
+ /**
+ * Decrypts a message.
+ *
+ * If strlen($ciphertext) is not a multiple of the block size, null bytes will be added to the end of the string until
+ * it is.
+ *
+ * @see self::encrypt()
+ * @access public
+ * @param string $ciphertext
+ * @return string $plaintext
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function decrypt($ciphertext)
+ {
+ if ($this->paddable) {
+ // we pad with chr(0) since that's what mcrypt_generic does. to quote from {@link http://www.php.net/function.mcrypt-generic}:
+ // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
+ $ciphertext = str_pad($ciphertext, strlen($ciphertext) + ($this->block_size - strlen($ciphertext) % $this->block_size) % $this->block_size, chr(0));
+ }
+
+ if ($this->engine === self::ENGINE_OPENSSL) {
+ if ($this->changed) {
+ $this->_clearBuffers();
+ $this->changed = false;
+ }
+ switch ($this->mode) {
+ case self::MODE_STREAM:
+ $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options);
+ break;
+ case self::MODE_ECB:
+ if (!defined('OPENSSL_RAW_DATA')) {
+ $ciphertext.= openssl_encrypt('', $this->cipher_name_openssl_ecb, $this->key, true);
+ }
+ $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options);
+ break;
+ case self::MODE_CBC:
+ if (!defined('OPENSSL_RAW_DATA')) {
+ $padding = str_repeat(chr($this->block_size), $this->block_size) ^ substr($ciphertext, -$this->block_size);
+ $ciphertext.= substr(openssl_encrypt($padding, $this->cipher_name_openssl_ecb, $this->key, true), 0, $this->block_size);
+ $offset = 2 * $this->block_size;
+ } else {
+ $offset = $this->block_size;
+ }
+ $plaintext = openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $this->decryptIV);
+ if ($this->continuousBuffer) {
+ $this->decryptIV = substr($ciphertext, -$offset, $this->block_size);
+ }
+ break;
+ case self::MODE_CTR:
+ $plaintext = $this->_openssl_ctr_process($ciphertext, $this->decryptIV, $this->debuffer);
+ break;
+ case self::MODE_CFB:
+ // cfb loosely routines inspired by openssl's:
+ // {@link http://cvs.openssl.org/fileview?f=openssl/crypto/modes/cfb128.c&v=1.3.2.2.2.1}
+ $plaintext = '';
+ if ($this->continuousBuffer) {
+ $iv = &$this->decryptIV;
+ $pos = &$this->buffer['pos'];
+ } else {
+ $iv = $this->decryptIV;
+ $pos = 0;
+ }
+ $len = strlen($ciphertext);
+ $i = 0;
+ if ($pos) {
+ $orig_pos = $pos;
+ $max = $this->block_size - $pos;
+ if ($len >= $max) {
+ $i = $max;
+ $len-= $max;
+ $pos = 0;
+ } else {
+ $i = $len;
+ $pos+= $len;
+ $len = 0;
+ }
+ // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $this->blocksize
+ $plaintext = substr($iv, $orig_pos) ^ $ciphertext;
+ $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);
+ $ciphertext = substr($ciphertext, $i);
+ }
+ $overflow = $len % $this->block_size;
+ if ($overflow) {
+ $plaintext.= openssl_decrypt(substr($ciphertext, 0, -$overflow), $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);
+ if ($len - $overflow) {
+ $iv = substr($ciphertext, -$overflow - $this->block_size, -$overflow);
+ }
+ $iv = openssl_encrypt(str_repeat("\0", $this->block_size), $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);
+ $plaintext.= $iv ^ substr($ciphertext, -$overflow);
+ $iv = substr_replace($iv, substr($ciphertext, -$overflow), 0, $overflow);
+ $pos = $overflow;
+ } elseif ($len) {
+ $plaintext.= openssl_decrypt($ciphertext, $this->cipher_name_openssl, $this->key, $this->openssl_options, $iv);
+ $iv = substr($ciphertext, -$this->block_size);
+ }
+ break;
+ case self::MODE_OFB:
+ $plaintext = $this->_openssl_ofb_process($ciphertext, $this->decryptIV, $this->debuffer);
+ }
+
+ return $this->paddable ? $this->_unpad($plaintext) : $plaintext;
+ }
+
+ if ($this->engine === self::ENGINE_MCRYPT) {
+ $block_size = $this->block_size;
+ if ($this->changed) {
+ $this->_setupMcrypt();
+ $this->changed = false;
+ }
+ if ($this->dechanged) {
+ @mcrypt_generic_init($this->demcrypt, $this->key, $this->decryptIV);
+ $this->dechanged = false;
+ }
+
+ if ($this->mode == self::MODE_CFB && $this->continuousBuffer) {
+ $iv = &$this->decryptIV;
+ $pos = &$this->debuffer['pos'];
+ $len = strlen($ciphertext);
+ $plaintext = '';
+ $i = 0;
+ if ($pos) {
+ $orig_pos = $pos;
+ $max = $block_size - $pos;
+ if ($len >= $max) {
+ $i = $max;
+ $len-= $max;
+ $pos = 0;
+ } else {
+ $i = $len;
+ $pos+= $len;
+ $len = 0;
+ }
+ // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $blocksize
+ $plaintext = substr($iv, $orig_pos) ^ $ciphertext;
+ $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);
+ }
+ if ($len >= $block_size) {
+ $cb = substr($ciphertext, $i, $len - $len % $block_size);
+ $plaintext.= @mcrypt_generic($this->ecb, $iv . $cb) ^ $cb;
+ $iv = substr($cb, -$block_size);
+ $len%= $block_size;
+ }
+ if ($len) {
+ $iv = @mcrypt_generic($this->ecb, $iv);
+ $plaintext.= $iv ^ substr($ciphertext, -$len);
+ $iv = substr_replace($iv, substr($ciphertext, -$len), 0, $len);
+ $pos = $len;
+ }
+
+ return $plaintext;
+ }
+
+ $plaintext = @mdecrypt_generic($this->demcrypt, $ciphertext);
+
+ if (!$this->continuousBuffer) {
+ @mcrypt_generic_init($this->demcrypt, $this->key, $this->decryptIV);
+ }
+
+ return $this->paddable ? $this->_unpad($plaintext) : $plaintext;
+ }
+
+ if ($this->changed) {
+ $this->_setup();
+ $this->changed = false;
+ }
+ if ($this->use_inline_crypt) {
+ $inline = $this->inline_crypt;
+ return $inline('decrypt', $this, $ciphertext);
+ }
+
+ $block_size = $this->block_size;
+
+ $buffer = &$this->debuffer;
+ $plaintext = '';
+ switch ($this->mode) {
+ case self::MODE_ECB:
+ for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {
+ $plaintext.= $this->_decryptBlock(substr($ciphertext, $i, $block_size));
+ }
+ break;
+ case self::MODE_CBC:
+ $xor = $this->decryptIV;
+ for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {
+ $block = substr($ciphertext, $i, $block_size);
+ $plaintext.= $this->_decryptBlock($block) ^ $xor;
+ $xor = $block;
+ }
+ if ($this->continuousBuffer) {
+ $this->decryptIV = $xor;
+ }
+ break;
+ case self::MODE_CTR:
+ $xor = $this->decryptIV;
+ if (strlen($buffer['ciphertext'])) {
+ for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {
+ $block = substr($ciphertext, $i, $block_size);
+ if (strlen($block) > strlen($buffer['ciphertext'])) {
+ $buffer['ciphertext'].= $this->_encryptBlock($xor);
+ $this->_increment_str($xor);
+ }
+ $key = $this->_string_shift($buffer['ciphertext'], $block_size);
+ $plaintext.= $block ^ $key;
+ }
+ } else {
+ for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {
+ $block = substr($ciphertext, $i, $block_size);
+ $key = $this->_encryptBlock($xor);
+ $this->_increment_str($xor);
+ $plaintext.= $block ^ $key;
+ }
+ }
+ if ($this->continuousBuffer) {
+ $this->decryptIV = $xor;
+ if ($start = strlen($ciphertext) % $block_size) {
+ $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
+ }
+ }
+ break;
+ case self::MODE_CFB:
+ if ($this->continuousBuffer) {
+ $iv = &$this->decryptIV;
+ $pos = &$buffer['pos'];
+ } else {
+ $iv = $this->decryptIV;
+ $pos = 0;
+ }
+ $len = strlen($ciphertext);
+ $i = 0;
+ if ($pos) {
+ $orig_pos = $pos;
+ $max = $block_size - $pos;
+ if ($len >= $max) {
+ $i = $max;
+ $len-= $max;
+ $pos = 0;
+ } else {
+ $i = $len;
+ $pos+= $len;
+ $len = 0;
+ }
+ // ie. $i = min($max, $len), $len-= $i, $pos+= $i, $pos%= $blocksize
+ $plaintext = substr($iv, $orig_pos) ^ $ciphertext;
+ $iv = substr_replace($iv, substr($ciphertext, 0, $i), $orig_pos, $i);
+ }
+ while ($len >= $block_size) {
+ $iv = $this->_encryptBlock($iv);
+ $cb = substr($ciphertext, $i, $block_size);
+ $plaintext.= $iv ^ $cb;
+ $iv = $cb;
+ $len-= $block_size;
+ $i+= $block_size;
+ }
+ if ($len) {
+ $iv = $this->_encryptBlock($iv);
+ $plaintext.= $iv ^ substr($ciphertext, $i);
+ $iv = substr_replace($iv, substr($ciphertext, $i), 0, $len);
+ $pos = $len;
+ }
+ break;
+ case self::MODE_OFB:
+ $xor = $this->decryptIV;
+ if (strlen($buffer['xor'])) {
+ for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {
+ $block = substr($ciphertext, $i, $block_size);
+ if (strlen($block) > strlen($buffer['xor'])) {
+ $xor = $this->_encryptBlock($xor);
+ $buffer['xor'].= $xor;
+ }
+ $key = $this->_string_shift($buffer['xor'], $block_size);
+ $plaintext.= $block ^ $key;
+ }
+ } else {
+ for ($i = 0; $i < strlen($ciphertext); $i+=$block_size) {
+ $xor = $this->_encryptBlock($xor);
+ $plaintext.= substr($ciphertext, $i, $block_size) ^ $xor;
+ }
+ $key = $xor;
+ }
+ if ($this->continuousBuffer) {
+ $this->decryptIV = $xor;
+ if ($start = strlen($ciphertext) % $block_size) {
+ $buffer['xor'] = substr($key, $start) . $buffer['xor'];
+ }
+ }
+ break;
+ case self::MODE_STREAM:
+ $plaintext = $this->_decryptBlock($ciphertext);
+ break;
+ }
+ return $this->paddable ? $this->_unpad($plaintext) : $plaintext;
+ }
+
+ /**
+ * OpenSSL CTR Processor
+ *
+ * PHP's OpenSSL bindings do not operate in continuous mode so we'll wrap around it. Since the keystream
+ * for CTR is the same for both encrypting and decrypting this function is re-used by both Base::encrypt()
+ * and Base::decrypt(). Also, OpenSSL doesn't implement CTR for all of it's symmetric ciphers so this
+ * function will emulate CTR with ECB when necessary.
+ *
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @param string $plaintext
+ * @param string $encryptIV
+ * @param array $buffer
+ * @return string
+ * @access private
+ */
+ function _openssl_ctr_process($plaintext, &$encryptIV, &$buffer)
+ {
+ $ciphertext = '';
+
+ $block_size = $this->block_size;
+ $key = $this->key;
+
+ if ($this->openssl_emulate_ctr) {
+ $xor = $encryptIV;
+ if (strlen($buffer['ciphertext'])) {
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $block = substr($plaintext, $i, $block_size);
+ if (strlen($block) > strlen($buffer['ciphertext'])) {
+ $result = openssl_encrypt($xor, $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
+ $result = !defined('OPENSSL_RAW_DATA') ? substr($result, 0, -$this->block_size) : $result;
+ $buffer['ciphertext'].= $result;
+ }
+ $this->_increment_str($xor);
+ $otp = $this->_string_shift($buffer['ciphertext'], $block_size);
+ $ciphertext.= $block ^ $otp;
+ }
+ } else {
+ for ($i = 0; $i < strlen($plaintext); $i+=$block_size) {
+ $block = substr($plaintext, $i, $block_size);
+ $otp = openssl_encrypt($xor, $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
+ $otp = !defined('OPENSSL_RAW_DATA') ? substr($otp, 0, -$this->block_size) : $otp;
+ $this->_increment_str($xor);
+ $ciphertext.= $block ^ $otp;
+ }
+ }
+ if ($this->continuousBuffer) {
+ $encryptIV = $xor;
+ if ($start = strlen($plaintext) % $block_size) {
+ $buffer['ciphertext'] = substr($key, $start) . $buffer['ciphertext'];
+ }
+ }
+
+ return $ciphertext;
+ }
+
+ if (strlen($buffer['ciphertext'])) {
+ $ciphertext = $plaintext ^ $this->_string_shift($buffer['ciphertext'], strlen($plaintext));
+ $plaintext = substr($plaintext, strlen($ciphertext));
+
+ if (!strlen($plaintext)) {
+ return $ciphertext;
+ }
+ }
+
+ $overflow = strlen($plaintext) % $block_size;
+ if ($overflow) {
+ $plaintext2 = $this->_string_pop($plaintext, $overflow); // ie. trim $plaintext to a multiple of $block_size and put rest of $plaintext in $plaintext2
+ $encrypted = openssl_encrypt($plaintext . str_repeat("\0", $block_size), $this->cipher_name_openssl, $key, $this->openssl_options, $encryptIV);
+ $temp = $this->_string_pop($encrypted, $block_size);
+ $ciphertext.= $encrypted . ($plaintext2 ^ $temp);
+ if ($this->continuousBuffer) {
+ $buffer['ciphertext'] = substr($temp, $overflow);
+ $encryptIV = $temp;
+ }
+ } elseif (!strlen($buffer['ciphertext'])) {
+ $ciphertext.= openssl_encrypt($plaintext . str_repeat("\0", $block_size), $this->cipher_name_openssl, $key, $this->openssl_options, $encryptIV);
+ $temp = $this->_string_pop($ciphertext, $block_size);
+ if ($this->continuousBuffer) {
+ $encryptIV = $temp;
+ }
+ }
+ if ($this->continuousBuffer) {
+ if (!defined('OPENSSL_RAW_DATA')) {
+ $encryptIV.= openssl_encrypt('', $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
+ }
+ $encryptIV = openssl_decrypt($encryptIV, $this->cipher_name_openssl_ecb, $key, $this->openssl_options);
+ if ($overflow) {
+ $this->_increment_str($encryptIV);
+ }
+ }
+
+ return $ciphertext;
+ }
+
+ /**
+ * OpenSSL OFB Processor
+ *
+ * PHP's OpenSSL bindings do not operate in continuous mode so we'll wrap around it. Since the keystream
+ * for OFB is the same for both encrypting and decrypting this function is re-used by both Base::encrypt()
+ * and Base::decrypt().
+ *
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @param string $plaintext
+ * @param string $encryptIV
+ * @param array $buffer
+ * @return string
+ * @access private
+ */
+ function _openssl_ofb_process($plaintext, &$encryptIV, &$buffer)
+ {
+ if (strlen($buffer['xor'])) {
+ $ciphertext = $plaintext ^ $buffer['xor'];
+ $buffer['xor'] = substr($buffer['xor'], strlen($ciphertext));
+ $plaintext = substr($plaintext, strlen($ciphertext));
+ } else {
+ $ciphertext = '';
+ }
+
+ $block_size = $this->block_size;
+
+ $len = strlen($plaintext);
+ $key = $this->key;
+ $overflow = $len % $block_size;
+
+ if (strlen($plaintext)) {
+ if ($overflow) {
+ $ciphertext.= openssl_encrypt(substr($plaintext, 0, -$overflow) . str_repeat("\0", $block_size), $this->cipher_name_openssl, $key, $this->openssl_options, $encryptIV);
+ $xor = $this->_string_pop($ciphertext, $block_size);
+ if ($this->continuousBuffer) {
+ $encryptIV = $xor;
+ }
+ $ciphertext.= $this->_string_shift($xor, $overflow) ^ substr($plaintext, -$overflow);
+ if ($this->continuousBuffer) {
+ $buffer['xor'] = $xor;
+ }
+ } else {
+ $ciphertext = openssl_encrypt($plaintext, $this->cipher_name_openssl, $key, $this->openssl_options, $encryptIV);
+ if ($this->continuousBuffer) {
+ $encryptIV = substr($ciphertext, -$block_size) ^ substr($plaintext, -$block_size);
+ }
+ }
+ }
+
+ return $ciphertext;
+ }
+
+ /**
+ * phpseclib <-> OpenSSL Mode Mapper
+ *
+ * May need to be overwritten by classes extending this one in some cases
+ *
+ * @return int
+ * @access private
+ */
+ function _openssl_translate_mode()
+ {
+ switch ($this->mode) {
+ case self::MODE_ECB:
+ return 'ecb';
+ case self::MODE_CBC:
+ return 'cbc';
+ case self::MODE_CTR:
+ return 'ctr';
+ case self::MODE_CFB:
+ return 'cfb';
+ case self::MODE_OFB:
+ return 'ofb';
+ }
+ }
+
+ /**
+ * Pad "packets".
+ *
+ * Block ciphers working by encrypting between their specified [$this->]block_size at a time
+ * If you ever need to encrypt or decrypt something that isn't of the proper length, it becomes necessary to
+ * pad the input so that it is of the proper length.
+ *
+ * Padding is enabled by default. Sometimes, however, it is undesirable to pad strings. Such is the case in SSH,
+ * where "packets" are padded with random bytes before being encrypted. Unpad these packets and you risk stripping
+ * away characters that shouldn't be stripped away. (SSH knows how many bytes are added because the length is
+ * transmitted separately)
+ *
+ * @see self::disablePadding()
+ * @access public
+ */
+ function enablePadding()
+ {
+ $this->padding = true;
+ }
+
+ /**
+ * Do not pad packets.
+ *
+ * @see self::enablePadding()
+ * @access public
+ */
+ function disablePadding()
+ {
+ $this->padding = false;
+ }
+
+ /**
+ * Treat consecutive "packets" as if they are a continuous buffer.
+ *
+ * Say you have a 32-byte plaintext $plaintext. Using the default behavior, the two following code snippets
+ * will yield different outputs:
+ *
+ * <code>
+ * echo $rijndael->encrypt(substr($plaintext, 0, 16));
+ * echo $rijndael->encrypt(substr($plaintext, 16, 16));
+ * </code>
+ * <code>
+ * echo $rijndael->encrypt($plaintext);
+ * </code>
+ *
+ * The solution is to enable the continuous buffer. Although this will resolve the above discrepancy, it creates
+ * another, as demonstrated with the following:
+ *
+ * <code>
+ * $rijndael->encrypt(substr($plaintext, 0, 16));
+ * echo $rijndael->decrypt($rijndael->encrypt(substr($plaintext, 16, 16)));
+ * </code>
+ * <code>
+ * echo $rijndael->decrypt($rijndael->encrypt(substr($plaintext, 16, 16)));
+ * </code>
+ *
+ * With the continuous buffer disabled, these would yield the same output. With it enabled, they yield different
+ * outputs. The reason is due to the fact that the initialization vector's change after every encryption /
+ * decryption round when the continuous buffer is enabled. When it's disabled, they remain constant.
+ *
+ * Put another way, when the continuous buffer is enabled, the state of the \phpseclib\Crypt\*() object changes after each
+ * encryption / decryption round, whereas otherwise, it'd remain constant. For this reason, it's recommended that
+ * continuous buffers not be used. They do offer better security and are, in fact, sometimes required (SSH uses them),
+ * however, they are also less intuitive and more likely to cause you problems.
+ *
+ * @see self::disableContinuousBuffer()
+ * @access public
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function enableContinuousBuffer()
+ {
+ if ($this->mode == self::MODE_ECB) {
+ return;
+ }
+
+ $this->continuousBuffer = true;
+
+ $this->_setEngine();
+ }
+
+ /**
+ * Treat consecutive packets as if they are a discontinuous buffer.
+ *
+ * The default behavior.
+ *
+ * @see self::enableContinuousBuffer()
+ * @access public
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function disableContinuousBuffer()
+ {
+ if ($this->mode == self::MODE_ECB) {
+ return;
+ }
+ if (!$this->continuousBuffer) {
+ return;
+ }
+
+ $this->continuousBuffer = false;
+ $this->changed = true;
+
+ $this->_setEngine();
+ }
+
+ /**
+ * Test for engine validity
+ *
+ * @see self::__construct()
+ * @param int $engine
+ * @access public
+ * @return bool
+ */
+ function isValidEngine($engine)
+ {
+ switch ($engine) {
+ case self::ENGINE_OPENSSL:
+ if ($this->mode == self::MODE_STREAM && $this->continuousBuffer) {
+ return false;
+ }
+ $this->openssl_emulate_ctr = false;
+ $result = $this->cipher_name_openssl &&
+ extension_loaded('openssl') &&
+ // PHP 5.3.0 - 5.3.2 did not let you set IV's
+ version_compare(PHP_VERSION, '5.3.3', '>=');
+ if (!$result) {
+ return false;
+ }
+
+ // prior to PHP 5.4.0 OPENSSL_RAW_DATA and OPENSSL_ZERO_PADDING were not defined. instead of expecting an integer
+ // $options openssl_encrypt expected a boolean $raw_data.
+ if (!defined('OPENSSL_RAW_DATA')) {
+ $this->openssl_options = true;
+ } else {
+ $this->openssl_options = OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING;
+ }
+
+ $methods = openssl_get_cipher_methods();
+ if (in_array($this->cipher_name_openssl, $methods)) {
+ return true;
+ }
+ // not all of openssl's symmetric cipher's support ctr. for those
+ // that don't we'll emulate it
+ switch ($this->mode) {
+ case self::MODE_CTR:
+ if (in_array($this->cipher_name_openssl_ecb, $methods)) {
+ $this->openssl_emulate_ctr = true;
+ return true;
+ }
+ }
+ return false;
+ case self::ENGINE_MCRYPT:
+ return $this->cipher_name_mcrypt &&
+ extension_loaded('mcrypt') &&
+ in_array($this->cipher_name_mcrypt, @mcrypt_list_algorithms());
+ case self::ENGINE_INTERNAL:
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Sets the preferred crypt engine
+ *
+ * Currently, $engine could be:
+ *
+ * - \phpseclib\Crypt\Base::ENGINE_OPENSSL [very fast]
+ *
+ * - \phpseclib\Crypt\Base::ENGINE_MCRYPT [fast]
+ *
+ * - \phpseclib\Crypt\Base::ENGINE_INTERNAL [slow]
+ *
+ * If the preferred crypt engine is not available the fastest available one will be used
+ *
+ * @see self::__construct()
+ * @param int $engine
+ * @access public
+ */
+ function setPreferredEngine($engine)
+ {
+ switch ($engine) {
+ //case self::ENGINE_OPENSSL;
+ case self::ENGINE_MCRYPT:
+ case self::ENGINE_INTERNAL:
+ $this->preferredEngine = $engine;
+ break;
+ default:
+ $this->preferredEngine = self::ENGINE_OPENSSL;
+ }
+
+ $this->_setEngine();
+ }
+
+ /**
+ * Returns the engine currently being utilized
+ *
+ * @see self::_setEngine()
+ * @access public
+ */
+ function getEngine()
+ {
+ return $this->engine;
+ }
+
+ /**
+ * Sets the engine as appropriate
+ *
+ * @see self::__construct()
+ * @access private
+ */
+ function _setEngine()
+ {
+ $this->engine = null;
+
+ $candidateEngines = array(
+ $this->preferredEngine,
+ self::ENGINE_OPENSSL,
+ self::ENGINE_MCRYPT
+ );
+ foreach ($candidateEngines as $engine) {
+ if ($this->isValidEngine($engine)) {
+ $this->engine = $engine;
+ break;
+ }
+ }
+ if (!$this->engine) {
+ $this->engine = self::ENGINE_INTERNAL;
+ }
+
+ if ($this->engine != self::ENGINE_MCRYPT && $this->enmcrypt) {
+ // Closing the current mcrypt resource(s). _mcryptSetup() will, if needed,
+ // (re)open them with the module named in $this->cipher_name_mcrypt
+ @mcrypt_module_close($this->enmcrypt);
+ @mcrypt_module_close($this->demcrypt);
+ $this->enmcrypt = null;
+ $this->demcrypt = null;
+
+ if ($this->ecb) {
+ @mcrypt_module_close($this->ecb);
+ $this->ecb = null;
+ }
+ }
+
+ $this->changed = true;
+ }
+
+ /**
+ * Encrypts a block
+ *
+ * Note: Must be extended by the child \phpseclib\Crypt\* class
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ abstract function _encryptBlock($in);
+
+ /**
+ * Decrypts a block
+ *
+ * Note: Must be extended by the child \phpseclib\Crypt\* class
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ abstract function _decryptBlock($in);
+
+ /**
+ * Setup the key (expansion)
+ *
+ * Only used if $engine == self::ENGINE_INTERNAL
+ *
+ * Note: Must extend by the child \phpseclib\Crypt\* class
+ *
+ * @see self::_setup()
+ * @access private
+ */
+ abstract function _setupKey();
+
+ /**
+ * Setup the self::ENGINE_INTERNAL $engine
+ *
+ * (re)init, if necessary, the internal cipher $engine and flush all $buffers
+ * Used (only) if $engine == self::ENGINE_INTERNAL
+ *
+ * _setup() will be called each time if $changed === true
+ * typically this happens when using one or more of following public methods:
+ *
+ * - setKey()
+ *
+ * - setIV()
+ *
+ * - disableContinuousBuffer()
+ *
+ * - First run of encrypt() / decrypt() with no init-settings
+ *
+ * @see self::setKey()
+ * @see self::setIV()
+ * @see self::disableContinuousBuffer()
+ * @access private
+ * @internal _setup() is always called before en/decryption.
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function _setup()
+ {
+ $this->_clearBuffers();
+ $this->_setupKey();
+
+ if ($this->use_inline_crypt) {
+ $this->_setupInlineCrypt();
+ }
+ }
+
+ /**
+ * Setup the self::ENGINE_MCRYPT $engine
+ *
+ * (re)init, if necessary, the (ext)mcrypt resources and flush all $buffers
+ * Used (only) if $engine = self::ENGINE_MCRYPT
+ *
+ * _setupMcrypt() will be called each time if $changed === true
+ * typically this happens when using one or more of following public methods:
+ *
+ * - setKey()
+ *
+ * - setIV()
+ *
+ * - disableContinuousBuffer()
+ *
+ * - First run of encrypt() / decrypt()
+ *
+ * @see self::setKey()
+ * @see self::setIV()
+ * @see self::disableContinuousBuffer()
+ * @access private
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function _setupMcrypt()
+ {
+ $this->_clearBuffers();
+ $this->enchanged = $this->dechanged = true;
+
+ if (!isset($this->enmcrypt)) {
+ static $mcrypt_modes = array(
+ self::MODE_CTR => 'ctr',
+ self::MODE_ECB => MCRYPT_MODE_ECB,
+ self::MODE_CBC => MCRYPT_MODE_CBC,
+ self::MODE_CFB => 'ncfb',
+ self::MODE_OFB => MCRYPT_MODE_NOFB,
+ self::MODE_STREAM => MCRYPT_MODE_STREAM,
+ );
+
+ $this->demcrypt = @mcrypt_module_open($this->cipher_name_mcrypt, '', $mcrypt_modes[$this->mode], '');
+ $this->enmcrypt = @mcrypt_module_open($this->cipher_name_mcrypt, '', $mcrypt_modes[$this->mode], '');
+
+ // we need the $ecb mcrypt resource (only) in MODE_CFB with enableContinuousBuffer()
+ // to workaround mcrypt's broken ncfb implementation in buffered mode
+ // see: {@link http://phpseclib.sourceforge.net/cfb-demo.phps}
+ if ($this->mode == self::MODE_CFB) {
+ $this->ecb = @mcrypt_module_open($this->cipher_name_mcrypt, '', MCRYPT_MODE_ECB, '');
+ }
+ } // else should mcrypt_generic_deinit be called?
+
+ if ($this->mode == self::MODE_CFB) {
+ @mcrypt_generic_init($this->ecb, $this->key, str_repeat("\0", $this->block_size));
+ }
+ }
+
+ /**
+ * Pads a string
+ *
+ * Pads a string using the RSA PKCS padding standards so that its length is a multiple of the blocksize.
+ * $this->block_size - (strlen($text) % $this->block_size) bytes are added, each of which is equal to
+ * chr($this->block_size - (strlen($text) % $this->block_size)
+ *
+ * If padding is disabled and $text is not a multiple of the blocksize, the string will be padded regardless
+ * and padding will, hence forth, be enabled.
+ *
+ * @see self::_unpad()
+ * @param string $text
+ * @access private
+ * @return string
+ */
+ function _pad($text)
+ {
+ $length = strlen($text);
+
+ if (!$this->padding) {
+ if ($length % $this->block_size == 0) {
+ return $text;
+ } else {
+ user_error("The plaintext's length ($length) is not a multiple of the block size ({$this->block_size})");
+ $this->padding = true;
+ }
+ }
+
+ $pad = $this->block_size - ($length % $this->block_size);
+
+ return str_pad($text, $length + $pad, chr($pad));
+ }
+
+ /**
+ * Unpads a string.
+ *
+ * If padding is enabled and the reported padding length is invalid the encryption key will be assumed to be wrong
+ * and false will be returned.
+ *
+ * @see self::_pad()
+ * @param string $text
+ * @access private
+ * @return string
+ */
+ function _unpad($text)
+ {
+ if (!$this->padding) {
+ return $text;
+ }
+
+ $length = ord($text[strlen($text) - 1]);
+
+ if (!$length || $length > $this->block_size) {
+ return false;
+ }
+
+ return substr($text, 0, -$length);
+ }
+
+ /**
+ * Clears internal buffers
+ *
+ * Clearing/resetting the internal buffers is done everytime
+ * after disableContinuousBuffer() or on cipher $engine (re)init
+ * ie after setKey() or setIV()
+ *
+ * @access public
+ * @internal Could, but not must, extend by the child Crypt_* class
+ */
+ function _clearBuffers()
+ {
+ $this->enbuffer = $this->debuffer = array('ciphertext' => '', 'xor' => '', 'pos' => 0, 'enmcrypt_init' => true);
+
+ // mcrypt's handling of invalid's $iv:
+ // $this->encryptIV = $this->decryptIV = strlen($this->iv) == $this->block_size ? $this->iv : str_repeat("\0", $this->block_size);
+ $this->encryptIV = $this->decryptIV = str_pad(substr($this->iv, 0, $this->block_size), $this->block_size, "\0");
+
+ if (!$this->skip_key_adjustment) {
+ $this->key = str_pad(substr($this->key, 0, $this->key_length), $this->key_length, "\0");
+ }
+ }
+
+ /**
+ * String Shift
+ *
+ * Inspired by array_shift
+ *
+ * @param string $string
+ * @param int $index
+ * @access private
+ * @return string
+ */
+ function _string_shift(&$string, $index = 1)
+ {
+ $substr = substr($string, 0, $index);
+ $string = substr($string, $index);
+ return $substr;
+ }
+
+ /**
+ * String Pop
+ *
+ * Inspired by array_pop
+ *
+ * @param string $string
+ * @param int $index
+ * @access private
+ * @return string
+ */
+ function _string_pop(&$string, $index = 1)
+ {
+ $substr = substr($string, -$index);
+ $string = substr($string, 0, -$index);
+ return $substr;
+ }
+
+ /**
+ * Increment the current string
+ *
+ * @see self::decrypt()
+ * @see self::encrypt()
+ * @param string $var
+ * @access private
+ */
+ function _increment_str(&$var)
+ {
+ for ($i = 4; $i <= strlen($var); $i+= 4) {
+ $temp = substr($var, -$i, 4);
+ switch ($temp) {
+ case "\xFF\xFF\xFF\xFF":
+ $var = substr_replace($var, "\x00\x00\x00\x00", -$i, 4);
+ break;
+ case "\x7F\xFF\xFF\xFF":
+ $var = substr_replace($var, "\x80\x00\x00\x00", -$i, 4);
+ return;
+ default:
+ $temp = unpack('Nnum', $temp);
+ $var = substr_replace($var, pack('N', $temp['num'] + 1), -$i, 4);
+ return;
+ }
+ }
+
+ $remainder = strlen($var) % 4;
+
+ if ($remainder == 0) {
+ return;
+ }
+
+ $temp = unpack('Nnum', str_pad(substr($var, 0, $remainder), 4, "\0", STR_PAD_LEFT));
+ $temp = substr(pack('N', $temp['num'] + 1), -$remainder);
+ $var = substr_replace($var, $temp, 0, $remainder);
+ }
+
+ /**
+ * Setup the performance-optimized function for de/encrypt()
+ *
+ * Stores the created (or existing) callback function-name
+ * in $this->inline_crypt
+ *
+ * Internally for phpseclib developers:
+ *
+ * _setupInlineCrypt() would be called only if:
+ *
+ * - $engine == self::ENGINE_INTERNAL and
+ *
+ * - $use_inline_crypt === true
+ *
+ * - each time on _setup(), after(!) _setupKey()
+ *
+ *
+ * This ensures that _setupInlineCrypt() has always a
+ * full ready2go initializated internal cipher $engine state
+ * where, for example, the keys allready expanded,
+ * keys/block_size calculated and such.
+ *
+ * It is, each time if called, the responsibility of _setupInlineCrypt():
+ *
+ * - to set $this->inline_crypt to a valid and fully working callback function
+ * as a (faster) replacement for encrypt() / decrypt()
+ *
+ * - NOT to create unlimited callback functions (for memory reasons!)
+ * no matter how often _setupInlineCrypt() would be called. At some
+ * point of amount they must be generic re-useable.
+ *
+ * - the code of _setupInlineCrypt() it self,
+ * and the generated callback code,
+ * must be, in following order:
+ * - 100% safe
+ * - 100% compatible to encrypt()/decrypt()
+ * - using only php5+ features/lang-constructs/php-extensions if
+ * compatibility (down to php4) or fallback is provided
+ * - readable/maintainable/understandable/commented and... not-cryptic-styled-code :-)
+ * - >= 10% faster than encrypt()/decrypt() [which is, by the way,
+ * the reason for the existence of _setupInlineCrypt() :-)]
+ * - memory-nice
+ * - short (as good as possible)
+ *
+ * Note: - _setupInlineCrypt() is using _createInlineCryptFunction() to create the full callback function code.
+ * - In case of using inline crypting, _setupInlineCrypt() must extend by the child \phpseclib\Crypt\* class.
+ * - The following variable names are reserved:
+ * - $_* (all variable names prefixed with an underscore)
+ * - $self (object reference to it self. Do not use $this, but $self instead)
+ * - $in (the content of $in has to en/decrypt by the generated code)
+ * - The callback function should not use the 'return' statement, but en/decrypt'ing the content of $in only
+ *
+ *
+ * @see self::_setup()
+ * @see self::_createInlineCryptFunction()
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @access private
+ * @internal If a Crypt_* class providing inline crypting it must extend _setupInlineCrypt()
+ */
+ function _setupInlineCrypt()
+ {
+ // If, for any reason, an extending \phpseclib\Crypt\Base() \phpseclib\Crypt\* class
+ // not using inline crypting then it must be ensured that: $this->use_inline_crypt = false
+ // ie in the class var declaration of $use_inline_crypt in general for the \phpseclib\Crypt\* class,
+ // in the constructor at object instance-time
+ // or, if it's runtime-specific, at runtime
+
+ $this->use_inline_crypt = false;
+ }
+
+ /**
+ * Creates the performance-optimized function for en/decrypt()
+ *
+ * Internally for phpseclib developers:
+ *
+ * _createInlineCryptFunction():
+ *
+ * - merge the $cipher_code [setup'ed by _setupInlineCrypt()]
+ * with the current [$this->]mode of operation code
+ *
+ * - create the $inline function, which called by encrypt() / decrypt()
+ * as its replacement to speed up the en/decryption operations.
+ *
+ * - return the name of the created $inline callback function
+ *
+ * - used to speed up en/decryption
+ *
+ *
+ *
+ * The main reason why can speed up things [up to 50%] this way are:
+ *
+ * - using variables more effective then regular.
+ * (ie no use of expensive arrays but integers $k_0, $k_1 ...
+ * or even, for example, the pure $key[] values hardcoded)
+ *
+ * - avoiding 1000's of function calls of ie _encryptBlock()
+ * but inlining the crypt operations.
+ * in the mode of operation for() loop.
+ *
+ * - full loop unroll the (sometimes key-dependent) rounds
+ * avoiding this way ++$i counters and runtime-if's etc...
+ *
+ * The basic code architectur of the generated $inline en/decrypt()
+ * lambda function, in pseudo php, is:
+ *
+ * <code>
+ * +----------------------------------------------------------------------------------------------+
+ * | callback $inline = create_function: |
+ * | lambda_function_0001_crypt_ECB($action, $text) |
+ * | { |
+ * | INSERT PHP CODE OF: |
+ * | $cipher_code['init_crypt']; // general init code. |
+ * | // ie: $sbox'es declarations used for |
+ * | // encrypt and decrypt'ing. |
+ * | |
+ * | switch ($action) { |
+ * | case 'encrypt': |
+ * | INSERT PHP CODE OF: |
+ * | $cipher_code['init_encrypt']; // encrypt sepcific init code. |
+ * | ie: specified $key or $box |
+ * | declarations for encrypt'ing. |
+ * | |
+ * | foreach ($ciphertext) { |
+ * | $in = $block_size of $ciphertext; |
+ * | |
+ * | INSERT PHP CODE OF: |
+ * | $cipher_code['encrypt_block']; // encrypt's (string) $in, which is always: |
+ * | // strlen($in) == $this->block_size |
+ * | // here comes the cipher algorithm in action |
+ * | // for encryption. |
+ * | // $cipher_code['encrypt_block'] has to |
+ * | // encrypt the content of the $in variable |
+ * | |
+ * | $plaintext .= $in; |
+ * | } |
+ * | return $plaintext; |
+ * | |
+ * | case 'decrypt': |
+ * | INSERT PHP CODE OF: |
+ * | $cipher_code['init_decrypt']; // decrypt sepcific init code |
+ * | ie: specified $key or $box |
+ * | declarations for decrypt'ing. |
+ * | foreach ($plaintext) { |
+ * | $in = $block_size of $plaintext; |
+ * | |
+ * | INSERT PHP CODE OF: |
+ * | $cipher_code['decrypt_block']; // decrypt's (string) $in, which is always |
+ * | // strlen($in) == $this->block_size |
+ * | // here comes the cipher algorithm in action |
+ * | // for decryption. |
+ * | // $cipher_code['decrypt_block'] has to |
+ * | // decrypt the content of the $in variable |
+ * | $ciphertext .= $in; |
+ * | } |
+ * | return $ciphertext; |
+ * | } |
+ * | } |
+ * +----------------------------------------------------------------------------------------------+
+ * </code>
+ *
+ * See also the \phpseclib\Crypt\*::_setupInlineCrypt()'s for
+ * productive inline $cipher_code's how they works.
+ *
+ * Structure of:
+ * <code>
+ * $cipher_code = array(
+ * 'init_crypt' => (string) '', // optional
+ * 'init_encrypt' => (string) '', // optional
+ * 'init_decrypt' => (string) '', // optional
+ * 'encrypt_block' => (string) '', // required
+ * 'decrypt_block' => (string) '' // required
+ * );
+ * </code>
+ *
+ * @see self::_setupInlineCrypt()
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @param array $cipher_code
+ * @access private
+ * @return string (the name of the created callback function)
+ */
+ function _createInlineCryptFunction($cipher_code)
+ {
+ $block_size = $this->block_size;
+
+ // optional
+ $init_crypt = isset($cipher_code['init_crypt']) ? $cipher_code['init_crypt'] : '';
+ $init_encrypt = isset($cipher_code['init_encrypt']) ? $cipher_code['init_encrypt'] : '';
+ $init_decrypt = isset($cipher_code['init_decrypt']) ? $cipher_code['init_decrypt'] : '';
+ // required
+ $encrypt_block = $cipher_code['encrypt_block'];
+ $decrypt_block = $cipher_code['decrypt_block'];
+
+ // Generating mode of operation inline code,
+ // merged with the $cipher_code algorithm
+ // for encrypt- and decryption.
+ switch ($this->mode) {
+ case self::MODE_ECB:
+ $encrypt = $init_encrypt . '
+ $_ciphertext = "";
+ $_plaintext_len = strlen($_text);
+
+ for ($_i = 0; $_i < $_plaintext_len; $_i+= '.$block_size.') {
+ $in = substr($_text, $_i, '.$block_size.');
+ '.$encrypt_block.'
+ $_ciphertext.= $in;
+ }
+
+ return $_ciphertext;
+ ';
+
+ $decrypt = $init_decrypt . '
+ $_plaintext = "";
+ $_text = str_pad($_text, strlen($_text) + ('.$block_size.' - strlen($_text) % '.$block_size.') % '.$block_size.', chr(0));
+ $_ciphertext_len = strlen($_text);
+
+ for ($_i = 0; $_i < $_ciphertext_len; $_i+= '.$block_size.') {
+ $in = substr($_text, $_i, '.$block_size.');
+ '.$decrypt_block.'
+ $_plaintext.= $in;
+ }
+
+ return $self->_unpad($_plaintext);
+ ';
+ break;
+ case self::MODE_CTR:
+ $encrypt = $init_encrypt . '
+ $_ciphertext = "";
+ $_plaintext_len = strlen($_text);
+ $_xor = $self->encryptIV;
+ $_buffer = &$self->enbuffer;
+ if (strlen($_buffer["ciphertext"])) {
+ for ($_i = 0; $_i < $_plaintext_len; $_i+= '.$block_size.') {
+ $_block = substr($_text, $_i, '.$block_size.');
+ if (strlen($_block) > strlen($_buffer["ciphertext"])) {
+ $in = $_xor;
+ '.$encrypt_block.'
+ $self->_increment_str($_xor);
+ $_buffer["ciphertext"].= $in;
+ }
+ $_key = $self->_string_shift($_buffer["ciphertext"], '.$block_size.');
+ $_ciphertext.= $_block ^ $_key;
+ }
+ } else {
+ for ($_i = 0; $_i < $_plaintext_len; $_i+= '.$block_size.') {
+ $_block = substr($_text, $_i, '.$block_size.');
+ $in = $_xor;
+ '.$encrypt_block.'
+ $self->_increment_str($_xor);
+ $_key = $in;
+ $_ciphertext.= $_block ^ $_key;
+ }
+ }
+ if ($self->continuousBuffer) {
+ $self->encryptIV = $_xor;
+ if ($_start = $_plaintext_len % '.$block_size.') {
+ $_buffer["ciphertext"] = substr($_key, $_start) . $_buffer["ciphertext"];
+ }
+ }
+
+ return $_ciphertext;
+ ';
+
+ $decrypt = $init_encrypt . '
+ $_plaintext = "";
+ $_ciphertext_len = strlen($_text);
+ $_xor = $self->decryptIV;
+ $_buffer = &$self->debuffer;
+
+ if (strlen($_buffer["ciphertext"])) {
+ for ($_i = 0; $_i < $_ciphertext_len; $_i+= '.$block_size.') {
+ $_block = substr($_text, $_i, '.$block_size.');
+ if (strlen($_block) > strlen($_buffer["ciphertext"])) {
+ $in = $_xor;
+ '.$encrypt_block.'
+ $self->_increment_str($_xor);
+ $_buffer["ciphertext"].= $in;
+ }
+ $_key = $self->_string_shift($_buffer["ciphertext"], '.$block_size.');
+ $_plaintext.= $_block ^ $_key;
+ }
+ } else {
+ for ($_i = 0; $_i < $_ciphertext_len; $_i+= '.$block_size.') {
+ $_block = substr($_text, $_i, '.$block_size.');
+ $in = $_xor;
+ '.$encrypt_block.'
+ $self->_increment_str($_xor);
+ $_key = $in;
+ $_plaintext.= $_block ^ $_key;
+ }
+ }
+ if ($self->continuousBuffer) {
+ $self->decryptIV = $_xor;
+ if ($_start = $_ciphertext_len % '.$block_size.') {
+ $_buffer["ciphertext"] = substr($_key, $_start) . $_buffer["ciphertext"];
+ }
+ }
+
+ return $_plaintext;
+ ';
+ break;
+ case self::MODE_CFB:
+ $encrypt = $init_encrypt . '
+ $_ciphertext = "";
+ $_buffer = &$self->enbuffer;
+
+ if ($self->continuousBuffer) {
+ $_iv = &$self->encryptIV;
+ $_pos = &$_buffer["pos"];
+ } else {
+ $_iv = $self->encryptIV;
+ $_pos = 0;
+ }
+ $_len = strlen($_text);
+ $_i = 0;
+ if ($_pos) {
+ $_orig_pos = $_pos;
+ $_max = '.$block_size.' - $_pos;
+ if ($_len >= $_max) {
+ $_i = $_max;
+ $_len-= $_max;
+ $_pos = 0;
+ } else {
+ $_i = $_len;
+ $_pos+= $_len;
+ $_len = 0;
+ }
+ $_ciphertext = substr($_iv, $_orig_pos) ^ $_text;
+ $_iv = substr_replace($_iv, $_ciphertext, $_orig_pos, $_i);
+ }
+ while ($_len >= '.$block_size.') {
+ $in = $_iv;
+ '.$encrypt_block.';
+ $_iv = $in ^ substr($_text, $_i, '.$block_size.');
+ $_ciphertext.= $_iv;
+ $_len-= '.$block_size.';
+ $_i+= '.$block_size.';
+ }
+ if ($_len) {
+ $in = $_iv;
+ '.$encrypt_block.'
+ $_iv = $in;
+ $_block = $_iv ^ substr($_text, $_i);
+ $_iv = substr_replace($_iv, $_block, 0, $_len);
+ $_ciphertext.= $_block;
+ $_pos = $_len;
+ }
+ return $_ciphertext;
+ ';
+
+ $decrypt = $init_encrypt . '
+ $_plaintext = "";
+ $_buffer = &$self->debuffer;
+
+ if ($self->continuousBuffer) {
+ $_iv = &$self->decryptIV;
+ $_pos = &$_buffer["pos"];
+ } else {
+ $_iv = $self->decryptIV;
+ $_pos = 0;
+ }
+ $_len = strlen($_text);
+ $_i = 0;
+ if ($_pos) {
+ $_orig_pos = $_pos;
+ $_max = '.$block_size.' - $_pos;
+ if ($_len >= $_max) {
+ $_i = $_max;
+ $_len-= $_max;
+ $_pos = 0;
+ } else {
+ $_i = $_len;
+ $_pos+= $_len;
+ $_len = 0;
+ }
+ $_plaintext = substr($_iv, $_orig_pos) ^ $_text;
+ $_iv = substr_replace($_iv, substr($_text, 0, $_i), $_orig_pos, $_i);
+ }
+ while ($_len >= '.$block_size.') {
+ $in = $_iv;
+ '.$encrypt_block.'
+ $_iv = $in;
+ $cb = substr($_text, $_i, '.$block_size.');
+ $_plaintext.= $_iv ^ $cb;
+ $_iv = $cb;
+ $_len-= '.$block_size.';
+ $_i+= '.$block_size.';
+ }
+ if ($_len) {
+ $in = $_iv;
+ '.$encrypt_block.'
+ $_iv = $in;
+ $_plaintext.= $_iv ^ substr($_text, $_i);
+ $_iv = substr_replace($_iv, substr($_text, $_i), 0, $_len);
+ $_pos = $_len;
+ }
+
+ return $_plaintext;
+ ';
+ break;
+ case self::MODE_OFB:
+ $encrypt = $init_encrypt . '
+ $_ciphertext = "";
+ $_plaintext_len = strlen($_text);
+ $_xor = $self->encryptIV;
+ $_buffer = &$self->enbuffer;
+
+ if (strlen($_buffer["xor"])) {
+ for ($_i = 0; $_i < $_plaintext_len; $_i+= '.$block_size.') {
+ $_block = substr($_text, $_i, '.$block_size.');
+ if (strlen($_block) > strlen($_buffer["xor"])) {
+ $in = $_xor;
+ '.$encrypt_block.'
+ $_xor = $in;
+ $_buffer["xor"].= $_xor;
+ }
+ $_key = $self->_string_shift($_buffer["xor"], '.$block_size.');
+ $_ciphertext.= $_block ^ $_key;
+ }
+ } else {
+ for ($_i = 0; $_i < $_plaintext_len; $_i+= '.$block_size.') {
+ $in = $_xor;
+ '.$encrypt_block.'
+ $_xor = $in;
+ $_ciphertext.= substr($_text, $_i, '.$block_size.') ^ $_xor;
+ }
+ $_key = $_xor;
+ }
+ if ($self->continuousBuffer) {
+ $self->encryptIV = $_xor;
+ if ($_start = $_plaintext_len % '.$block_size.') {
+ $_buffer["xor"] = substr($_key, $_start) . $_buffer["xor"];
+ }
+ }
+ return $_ciphertext;
+ ';
+
+ $decrypt = $init_encrypt . '
+ $_plaintext = "";
+ $_ciphertext_len = strlen($_text);
+ $_xor = $self->decryptIV;
+ $_buffer = &$self->debuffer;
+
+ if (strlen($_buffer["xor"])) {
+ for ($_i = 0; $_i < $_ciphertext_len; $_i+= '.$block_size.') {
+ $_block = substr($_text, $_i, '.$block_size.');
+ if (strlen($_block) > strlen($_buffer["xor"])) {
+ $in = $_xor;
+ '.$encrypt_block.'
+ $_xor = $in;
+ $_buffer["xor"].= $_xor;
+ }
+ $_key = $self->_string_shift($_buffer["xor"], '.$block_size.');
+ $_plaintext.= $_block ^ $_key;
+ }
+ } else {
+ for ($_i = 0; $_i < $_ciphertext_len; $_i+= '.$block_size.') {
+ $in = $_xor;
+ '.$encrypt_block.'
+ $_xor = $in;
+ $_plaintext.= substr($_text, $_i, '.$block_size.') ^ $_xor;
+ }
+ $_key = $_xor;
+ }
+ if ($self->continuousBuffer) {
+ $self->decryptIV = $_xor;
+ if ($_start = $_ciphertext_len % '.$block_size.') {
+ $_buffer["xor"] = substr($_key, $_start) . $_buffer["xor"];
+ }
+ }
+ return $_plaintext;
+ ';
+ break;
+ case self::MODE_STREAM:
+ $encrypt = $init_encrypt . '
+ $_ciphertext = "";
+ '.$encrypt_block.'
+ return $_ciphertext;
+ ';
+ $decrypt = $init_decrypt . '
+ $_plaintext = "";
+ '.$decrypt_block.'
+ return $_plaintext;
+ ';
+ break;
+ // case self::MODE_CBC:
+ default:
+ $encrypt = $init_encrypt . '
+ $_ciphertext = "";
+ $_plaintext_len = strlen($_text);
+
+ $in = $self->encryptIV;
+
+ for ($_i = 0; $_i < $_plaintext_len; $_i+= '.$block_size.') {
+ $in = substr($_text, $_i, '.$block_size.') ^ $in;
+ '.$encrypt_block.'
+ $_ciphertext.= $in;
+ }
+
+ if ($self->continuousBuffer) {
+ $self->encryptIV = $in;
+ }
+
+ return $_ciphertext;
+ ';
+
+ $decrypt = $init_decrypt . '
+ $_plaintext = "";
+ $_text = str_pad($_text, strlen($_text) + ('.$block_size.' - strlen($_text) % '.$block_size.') % '.$block_size.', chr(0));
+ $_ciphertext_len = strlen($_text);
+
+ $_iv = $self->decryptIV;
+
+ for ($_i = 0; $_i < $_ciphertext_len; $_i+= '.$block_size.') {
+ $in = $_block = substr($_text, $_i, '.$block_size.');
+ '.$decrypt_block.'
+ $_plaintext.= $in ^ $_iv;
+ $_iv = $_block;
+ }
+
+ if ($self->continuousBuffer) {
+ $self->decryptIV = $_iv;
+ }
+
+ return $self->_unpad($_plaintext);
+ ';
+ break;
+ }
+
+ // Create the $inline function and return its name as string. Ready to run!
+ return create_function('$_action, &$self, $_text', $init_crypt . 'if ($_action == "encrypt") { ' . $encrypt . ' } else { ' . $decrypt . ' }');
+ }
+
+ /**
+ * Holds the lambda_functions table (classwide)
+ *
+ * Each name of the lambda function, created from
+ * _setupInlineCrypt() && _createInlineCryptFunction()
+ * is stored, classwide (!), here for reusing.
+ *
+ * The string-based index of $function is a classwide
+ * unique value representing, at least, the $mode of
+ * operation (or more... depends of the optimizing level)
+ * for which $mode the lambda function was created.
+ *
+ * @access private
+ * @return array &$functions
+ */
+ function &_getLambdaFunctions()
+ {
+ static $functions = array();
+ return $functions;
+ }
+
+ /**
+ * Generates a digest from $bytes
+ *
+ * @see self::_setupInlineCrypt()
+ * @access private
+ * @param $bytes
+ * @return string
+ */
+ function _hashInlineCryptFunction($bytes)
+ {
+ if (!isset(self::$WHIRLPOOL_AVAILABLE)) {
+ self::$WHIRLPOOL_AVAILABLE = extension_loaded('hash') && in_array('whirlpool', hash_algos());
+ }
+
+ $result = '';
+ $hash = $bytes;
+
+ switch (true) {
+ case self::$WHIRLPOOL_AVAILABLE:
+ foreach (str_split($bytes, 64) as $t) {
+ $hash = hash('whirlpool', $hash, true);
+ $result .= $t ^ $hash;
+ }
+ return $result . hash('whirlpool', $hash, true);
+ default:
+ $len = strlen($bytes);
+ for ($i = 0; $i < $len; $i+=20) {
+ $t = substr($bytes, $i, 20);
+ $hash = pack('H*', sha1($hash));
+ $result .= $t ^ $hash;
+ }
+ return $result . pack('H*', sha1($hash));
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php
new file mode 100644
index 00000000..19d0a020
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php
@@ -0,0 +1,577 @@
+<?php
+
+/**
+ * Pure-PHP implementation of Blowfish.
+ *
+ * Uses mcrypt, if available, and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * Useful resources are as follows:
+ *
+ * - {@link http://en.wikipedia.org/wiki/Blowfish_(cipher) Wikipedia description of Blowfish}
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $blowfish = new \phpseclib\Crypt\Blowfish();
+ *
+ * $blowfish->setKey('12345678901234567890123456789012');
+ *
+ * $plaintext = str_repeat('a', 1024);
+ *
+ * echo $blowfish->decrypt($blowfish->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package Blowfish
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @author Hans-Juergen Petrich <petrich@tronic-media.com>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of Blowfish.
+ *
+ * @package Blowfish
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @author Hans-Juergen Petrich <petrich@tronic-media.com>
+ * @access public
+ */
+class Blowfish extends Base
+{
+ /**
+ * Block Length of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::block_size
+ * @var int
+ * @access private
+ */
+ var $block_size = 8;
+
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::cipher_name_mcrypt
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt = 'blowfish';
+
+ /**
+ * Optimizing value while CFB-encrypting
+ *
+ * @see \phpseclib\Crypt\Base::cfb_init_len
+ * @var int
+ * @access private
+ */
+ var $cfb_init_len = 500;
+
+ /**
+ * The fixed subkeys boxes ($sbox0 - $sbox3) with 256 entries each
+ *
+ * S-Box 0
+ *
+ * @access private
+ * @var array
+ */
+ var $sbox0 = array(
+ 0xd1310ba6, 0x98dfb5ac, 0x2ffd72db, 0xd01adfb7, 0xb8e1afed, 0x6a267e96, 0xba7c9045, 0xf12c7f99,
+ 0x24a19947, 0xb3916cf7, 0x0801f2e2, 0x858efc16, 0x636920d8, 0x71574e69, 0xa458fea3, 0xf4933d7e,
+ 0x0d95748f, 0x728eb658, 0x718bcd58, 0x82154aee, 0x7b54a41d, 0xc25a59b5, 0x9c30d539, 0x2af26013,
+ 0xc5d1b023, 0x286085f0, 0xca417918, 0xb8db38ef, 0x8e79dcb0, 0x603a180e, 0x6c9e0e8b, 0xb01e8a3e,
+ 0xd71577c1, 0xbd314b27, 0x78af2fda, 0x55605c60, 0xe65525f3, 0xaa55ab94, 0x57489862, 0x63e81440,
+ 0x55ca396a, 0x2aab10b6, 0xb4cc5c34, 0x1141e8ce, 0xa15486af, 0x7c72e993, 0xb3ee1411, 0x636fbc2a,
+ 0x2ba9c55d, 0x741831f6, 0xce5c3e16, 0x9b87931e, 0xafd6ba33, 0x6c24cf5c, 0x7a325381, 0x28958677,
+ 0x3b8f4898, 0x6b4bb9af, 0xc4bfe81b, 0x66282193, 0x61d809cc, 0xfb21a991, 0x487cac60, 0x5dec8032,
+ 0xef845d5d, 0xe98575b1, 0xdc262302, 0xeb651b88, 0x23893e81, 0xd396acc5, 0x0f6d6ff3, 0x83f44239,
+ 0x2e0b4482, 0xa4842004, 0x69c8f04a, 0x9e1f9b5e, 0x21c66842, 0xf6e96c9a, 0x670c9c61, 0xabd388f0,
+ 0x6a51a0d2, 0xd8542f68, 0x960fa728, 0xab5133a3, 0x6eef0b6c, 0x137a3be4, 0xba3bf050, 0x7efb2a98,
+ 0xa1f1651d, 0x39af0176, 0x66ca593e, 0x82430e88, 0x8cee8619, 0x456f9fb4, 0x7d84a5c3, 0x3b8b5ebe,
+ 0xe06f75d8, 0x85c12073, 0x401a449f, 0x56c16aa6, 0x4ed3aa62, 0x363f7706, 0x1bfedf72, 0x429b023d,
+ 0x37d0d724, 0xd00a1248, 0xdb0fead3, 0x49f1c09b, 0x075372c9, 0x80991b7b, 0x25d479d8, 0xf6e8def7,
+ 0xe3fe501a, 0xb6794c3b, 0x976ce0bd, 0x04c006ba, 0xc1a94fb6, 0x409f60c4, 0x5e5c9ec2, 0x196a2463,
+ 0x68fb6faf, 0x3e6c53b5, 0x1339b2eb, 0x3b52ec6f, 0x6dfc511f, 0x9b30952c, 0xcc814544, 0xaf5ebd09,
+ 0xbee3d004, 0xde334afd, 0x660f2807, 0x192e4bb3, 0xc0cba857, 0x45c8740f, 0xd20b5f39, 0xb9d3fbdb,
+ 0x5579c0bd, 0x1a60320a, 0xd6a100c6, 0x402c7279, 0x679f25fe, 0xfb1fa3cc, 0x8ea5e9f8, 0xdb3222f8,
+ 0x3c7516df, 0xfd616b15, 0x2f501ec8, 0xad0552ab, 0x323db5fa, 0xfd238760, 0x53317b48, 0x3e00df82,
+ 0x9e5c57bb, 0xca6f8ca0, 0x1a87562e, 0xdf1769db, 0xd542a8f6, 0x287effc3, 0xac6732c6, 0x8c4f5573,
+ 0x695b27b0, 0xbbca58c8, 0xe1ffa35d, 0xb8f011a0, 0x10fa3d98, 0xfd2183b8, 0x4afcb56c, 0x2dd1d35b,
+ 0x9a53e479, 0xb6f84565, 0xd28e49bc, 0x4bfb9790, 0xe1ddf2da, 0xa4cb7e33, 0x62fb1341, 0xcee4c6e8,
+ 0xef20cada, 0x36774c01, 0xd07e9efe, 0x2bf11fb4, 0x95dbda4d, 0xae909198, 0xeaad8e71, 0x6b93d5a0,
+ 0xd08ed1d0, 0xafc725e0, 0x8e3c5b2f, 0x8e7594b7, 0x8ff6e2fb, 0xf2122b64, 0x8888b812, 0x900df01c,
+ 0x4fad5ea0, 0x688fc31c, 0xd1cff191, 0xb3a8c1ad, 0x2f2f2218, 0xbe0e1777, 0xea752dfe, 0x8b021fa1,
+ 0xe5a0cc0f, 0xb56f74e8, 0x18acf3d6, 0xce89e299, 0xb4a84fe0, 0xfd13e0b7, 0x7cc43b81, 0xd2ada8d9,
+ 0x165fa266, 0x80957705, 0x93cc7314, 0x211a1477, 0xe6ad2065, 0x77b5fa86, 0xc75442f5, 0xfb9d35cf,
+ 0xebcdaf0c, 0x7b3e89a0, 0xd6411bd3, 0xae1e7e49, 0x00250e2d, 0x2071b35e, 0x226800bb, 0x57b8e0af,
+ 0x2464369b, 0xf009b91e, 0x5563911d, 0x59dfa6aa, 0x78c14389, 0xd95a537f, 0x207d5ba2, 0x02e5b9c5,
+ 0x83260376, 0x6295cfa9, 0x11c81968, 0x4e734a41, 0xb3472dca, 0x7b14a94a, 0x1b510052, 0x9a532915,
+ 0xd60f573f, 0xbc9bc6e4, 0x2b60a476, 0x81e67400, 0x08ba6fb5, 0x571be91f, 0xf296ec6b, 0x2a0dd915,
+ 0xb6636521, 0xe7b9f9b6, 0xff34052e, 0xc5855664, 0x53b02d5d, 0xa99f8fa1, 0x08ba4799, 0x6e85076a
+ );
+
+ /**
+ * S-Box 1
+ *
+ * @access private
+ * @var array
+ */
+ var $sbox1 = array(
+ 0x4b7a70e9, 0xb5b32944, 0xdb75092e, 0xc4192623, 0xad6ea6b0, 0x49a7df7d, 0x9cee60b8, 0x8fedb266,
+ 0xecaa8c71, 0x699a17ff, 0x5664526c, 0xc2b19ee1, 0x193602a5, 0x75094c29, 0xa0591340, 0xe4183a3e,
+ 0x3f54989a, 0x5b429d65, 0x6b8fe4d6, 0x99f73fd6, 0xa1d29c07, 0xefe830f5, 0x4d2d38e6, 0xf0255dc1,
+ 0x4cdd2086, 0x8470eb26, 0x6382e9c6, 0x021ecc5e, 0x09686b3f, 0x3ebaefc9, 0x3c971814, 0x6b6a70a1,
+ 0x687f3584, 0x52a0e286, 0xb79c5305, 0xaa500737, 0x3e07841c, 0x7fdeae5c, 0x8e7d44ec, 0x5716f2b8,
+ 0xb03ada37, 0xf0500c0d, 0xf01c1f04, 0x0200b3ff, 0xae0cf51a, 0x3cb574b2, 0x25837a58, 0xdc0921bd,
+ 0xd19113f9, 0x7ca92ff6, 0x94324773, 0x22f54701, 0x3ae5e581, 0x37c2dadc, 0xc8b57634, 0x9af3dda7,
+ 0xa9446146, 0x0fd0030e, 0xecc8c73e, 0xa4751e41, 0xe238cd99, 0x3bea0e2f, 0x3280bba1, 0x183eb331,
+ 0x4e548b38, 0x4f6db908, 0x6f420d03, 0xf60a04bf, 0x2cb81290, 0x24977c79, 0x5679b072, 0xbcaf89af,
+ 0xde9a771f, 0xd9930810, 0xb38bae12, 0xdccf3f2e, 0x5512721f, 0x2e6b7124, 0x501adde6, 0x9f84cd87,
+ 0x7a584718, 0x7408da17, 0xbc9f9abc, 0xe94b7d8c, 0xec7aec3a, 0xdb851dfa, 0x63094366, 0xc464c3d2,
+ 0xef1c1847, 0x3215d908, 0xdd433b37, 0x24c2ba16, 0x12a14d43, 0x2a65c451, 0x50940002, 0x133ae4dd,
+ 0x71dff89e, 0x10314e55, 0x81ac77d6, 0x5f11199b, 0x043556f1, 0xd7a3c76b, 0x3c11183b, 0x5924a509,
+ 0xf28fe6ed, 0x97f1fbfa, 0x9ebabf2c, 0x1e153c6e, 0x86e34570, 0xeae96fb1, 0x860e5e0a, 0x5a3e2ab3,
+ 0x771fe71c, 0x4e3d06fa, 0x2965dcb9, 0x99e71d0f, 0x803e89d6, 0x5266c825, 0x2e4cc978, 0x9c10b36a,
+ 0xc6150eba, 0x94e2ea78, 0xa5fc3c53, 0x1e0a2df4, 0xf2f74ea7, 0x361d2b3d, 0x1939260f, 0x19c27960,
+ 0x5223a708, 0xf71312b6, 0xebadfe6e, 0xeac31f66, 0xe3bc4595, 0xa67bc883, 0xb17f37d1, 0x018cff28,
+ 0xc332ddef, 0xbe6c5aa5, 0x65582185, 0x68ab9802, 0xeecea50f, 0xdb2f953b, 0x2aef7dad, 0x5b6e2f84,
+ 0x1521b628, 0x29076170, 0xecdd4775, 0x619f1510, 0x13cca830, 0xeb61bd96, 0x0334fe1e, 0xaa0363cf,
+ 0xb5735c90, 0x4c70a239, 0xd59e9e0b, 0xcbaade14, 0xeecc86bc, 0x60622ca7, 0x9cab5cab, 0xb2f3846e,
+ 0x648b1eaf, 0x19bdf0ca, 0xa02369b9, 0x655abb50, 0x40685a32, 0x3c2ab4b3, 0x319ee9d5, 0xc021b8f7,
+ 0x9b540b19, 0x875fa099, 0x95f7997e, 0x623d7da8, 0xf837889a, 0x97e32d77, 0x11ed935f, 0x16681281,
+ 0x0e358829, 0xc7e61fd6, 0x96dedfa1, 0x7858ba99, 0x57f584a5, 0x1b227263, 0x9b83c3ff, 0x1ac24696,
+ 0xcdb30aeb, 0x532e3054, 0x8fd948e4, 0x6dbc3128, 0x58ebf2ef, 0x34c6ffea, 0xfe28ed61, 0xee7c3c73,
+ 0x5d4a14d9, 0xe864b7e3, 0x42105d14, 0x203e13e0, 0x45eee2b6, 0xa3aaabea, 0xdb6c4f15, 0xfacb4fd0,
+ 0xc742f442, 0xef6abbb5, 0x654f3b1d, 0x41cd2105, 0xd81e799e, 0x86854dc7, 0xe44b476a, 0x3d816250,
+ 0xcf62a1f2, 0x5b8d2646, 0xfc8883a0, 0xc1c7b6a3, 0x7f1524c3, 0x69cb7492, 0x47848a0b, 0x5692b285,
+ 0x095bbf00, 0xad19489d, 0x1462b174, 0x23820e00, 0x58428d2a, 0x0c55f5ea, 0x1dadf43e, 0x233f7061,
+ 0x3372f092, 0x8d937e41, 0xd65fecf1, 0x6c223bdb, 0x7cde3759, 0xcbee7460, 0x4085f2a7, 0xce77326e,
+ 0xa6078084, 0x19f8509e, 0xe8efd855, 0x61d99735, 0xa969a7aa, 0xc50c06c2, 0x5a04abfc, 0x800bcadc,
+ 0x9e447a2e, 0xc3453484, 0xfdd56705, 0x0e1e9ec9, 0xdb73dbd3, 0x105588cd, 0x675fda79, 0xe3674340,
+ 0xc5c43465, 0x713e38d8, 0x3d28f89e, 0xf16dff20, 0x153e21e7, 0x8fb03d4a, 0xe6e39f2b, 0xdb83adf7
+ );
+
+ /**
+ * S-Box 2
+ *
+ * @access private
+ * @var array
+ */
+ var $sbox2 = array(
+ 0xe93d5a68, 0x948140f7, 0xf64c261c, 0x94692934, 0x411520f7, 0x7602d4f7, 0xbcf46b2e, 0xd4a20068,
+ 0xd4082471, 0x3320f46a, 0x43b7d4b7, 0x500061af, 0x1e39f62e, 0x97244546, 0x14214f74, 0xbf8b8840,
+ 0x4d95fc1d, 0x96b591af, 0x70f4ddd3, 0x66a02f45, 0xbfbc09ec, 0x03bd9785, 0x7fac6dd0, 0x31cb8504,
+ 0x96eb27b3, 0x55fd3941, 0xda2547e6, 0xabca0a9a, 0x28507825, 0x530429f4, 0x0a2c86da, 0xe9b66dfb,
+ 0x68dc1462, 0xd7486900, 0x680ec0a4, 0x27a18dee, 0x4f3ffea2, 0xe887ad8c, 0xb58ce006, 0x7af4d6b6,
+ 0xaace1e7c, 0xd3375fec, 0xce78a399, 0x406b2a42, 0x20fe9e35, 0xd9f385b9, 0xee39d7ab, 0x3b124e8b,
+ 0x1dc9faf7, 0x4b6d1856, 0x26a36631, 0xeae397b2, 0x3a6efa74, 0xdd5b4332, 0x6841e7f7, 0xca7820fb,
+ 0xfb0af54e, 0xd8feb397, 0x454056ac, 0xba489527, 0x55533a3a, 0x20838d87, 0xfe6ba9b7, 0xd096954b,
+ 0x55a867bc, 0xa1159a58, 0xcca92963, 0x99e1db33, 0xa62a4a56, 0x3f3125f9, 0x5ef47e1c, 0x9029317c,
+ 0xfdf8e802, 0x04272f70, 0x80bb155c, 0x05282ce3, 0x95c11548, 0xe4c66d22, 0x48c1133f, 0xc70f86dc,
+ 0x07f9c9ee, 0x41041f0f, 0x404779a4, 0x5d886e17, 0x325f51eb, 0xd59bc0d1, 0xf2bcc18f, 0x41113564,
+ 0x257b7834, 0x602a9c60, 0xdff8e8a3, 0x1f636c1b, 0x0e12b4c2, 0x02e1329e, 0xaf664fd1, 0xcad18115,
+ 0x6b2395e0, 0x333e92e1, 0x3b240b62, 0xeebeb922, 0x85b2a20e, 0xe6ba0d99, 0xde720c8c, 0x2da2f728,
+ 0xd0127845, 0x95b794fd, 0x647d0862, 0xe7ccf5f0, 0x5449a36f, 0x877d48fa, 0xc39dfd27, 0xf33e8d1e,
+ 0x0a476341, 0x992eff74, 0x3a6f6eab, 0xf4f8fd37, 0xa812dc60, 0xa1ebddf8, 0x991be14c, 0xdb6e6b0d,
+ 0xc67b5510, 0x6d672c37, 0x2765d43b, 0xdcd0e804, 0xf1290dc7, 0xcc00ffa3, 0xb5390f92, 0x690fed0b,
+ 0x667b9ffb, 0xcedb7d9c, 0xa091cf0b, 0xd9155ea3, 0xbb132f88, 0x515bad24, 0x7b9479bf, 0x763bd6eb,
+ 0x37392eb3, 0xcc115979, 0x8026e297, 0xf42e312d, 0x6842ada7, 0xc66a2b3b, 0x12754ccc, 0x782ef11c,
+ 0x6a124237, 0xb79251e7, 0x06a1bbe6, 0x4bfb6350, 0x1a6b1018, 0x11caedfa, 0x3d25bdd8, 0xe2e1c3c9,
+ 0x44421659, 0x0a121386, 0xd90cec6e, 0xd5abea2a, 0x64af674e, 0xda86a85f, 0xbebfe988, 0x64e4c3fe,
+ 0x9dbc8057, 0xf0f7c086, 0x60787bf8, 0x6003604d, 0xd1fd8346, 0xf6381fb0, 0x7745ae04, 0xd736fccc,
+ 0x83426b33, 0xf01eab71, 0xb0804187, 0x3c005e5f, 0x77a057be, 0xbde8ae24, 0x55464299, 0xbf582e61,
+ 0x4e58f48f, 0xf2ddfda2, 0xf474ef38, 0x8789bdc2, 0x5366f9c3, 0xc8b38e74, 0xb475f255, 0x46fcd9b9,
+ 0x7aeb2661, 0x8b1ddf84, 0x846a0e79, 0x915f95e2, 0x466e598e, 0x20b45770, 0x8cd55591, 0xc902de4c,
+ 0xb90bace1, 0xbb8205d0, 0x11a86248, 0x7574a99e, 0xb77f19b6, 0xe0a9dc09, 0x662d09a1, 0xc4324633,
+ 0xe85a1f02, 0x09f0be8c, 0x4a99a025, 0x1d6efe10, 0x1ab93d1d, 0x0ba5a4df, 0xa186f20f, 0x2868f169,
+ 0xdcb7da83, 0x573906fe, 0xa1e2ce9b, 0x4fcd7f52, 0x50115e01, 0xa70683fa, 0xa002b5c4, 0x0de6d027,
+ 0x9af88c27, 0x773f8641, 0xc3604c06, 0x61a806b5, 0xf0177a28, 0xc0f586e0, 0x006058aa, 0x30dc7d62,
+ 0x11e69ed7, 0x2338ea63, 0x53c2dd94, 0xc2c21634, 0xbbcbee56, 0x90bcb6de, 0xebfc7da1, 0xce591d76,
+ 0x6f05e409, 0x4b7c0188, 0x39720a3d, 0x7c927c24, 0x86e3725f, 0x724d9db9, 0x1ac15bb4, 0xd39eb8fc,
+ 0xed545578, 0x08fca5b5, 0xd83d7cd3, 0x4dad0fc4, 0x1e50ef5e, 0xb161e6f8, 0xa28514d9, 0x6c51133c,
+ 0x6fd5c7e7, 0x56e14ec4, 0x362abfce, 0xddc6c837, 0xd79a3234, 0x92638212, 0x670efa8e, 0x406000e0
+ );
+
+ /**
+ * S-Box 3
+ *
+ * @access private
+ * @var array
+ */
+ var $sbox3 = array(
+ 0x3a39ce37, 0xd3faf5cf, 0xabc27737, 0x5ac52d1b, 0x5cb0679e, 0x4fa33742, 0xd3822740, 0x99bc9bbe,
+ 0xd5118e9d, 0xbf0f7315, 0xd62d1c7e, 0xc700c47b, 0xb78c1b6b, 0x21a19045, 0xb26eb1be, 0x6a366eb4,
+ 0x5748ab2f, 0xbc946e79, 0xc6a376d2, 0x6549c2c8, 0x530ff8ee, 0x468dde7d, 0xd5730a1d, 0x4cd04dc6,
+ 0x2939bbdb, 0xa9ba4650, 0xac9526e8, 0xbe5ee304, 0xa1fad5f0, 0x6a2d519a, 0x63ef8ce2, 0x9a86ee22,
+ 0xc089c2b8, 0x43242ef6, 0xa51e03aa, 0x9cf2d0a4, 0x83c061ba, 0x9be96a4d, 0x8fe51550, 0xba645bd6,
+ 0x2826a2f9, 0xa73a3ae1, 0x4ba99586, 0xef5562e9, 0xc72fefd3, 0xf752f7da, 0x3f046f69, 0x77fa0a59,
+ 0x80e4a915, 0x87b08601, 0x9b09e6ad, 0x3b3ee593, 0xe990fd5a, 0x9e34d797, 0x2cf0b7d9, 0x022b8b51,
+ 0x96d5ac3a, 0x017da67d, 0xd1cf3ed6, 0x7c7d2d28, 0x1f9f25cf, 0xadf2b89b, 0x5ad6b472, 0x5a88f54c,
+ 0xe029ac71, 0xe019a5e6, 0x47b0acfd, 0xed93fa9b, 0xe8d3c48d, 0x283b57cc, 0xf8d56629, 0x79132e28,
+ 0x785f0191, 0xed756055, 0xf7960e44, 0xe3d35e8c, 0x15056dd4, 0x88f46dba, 0x03a16125, 0x0564f0bd,
+ 0xc3eb9e15, 0x3c9057a2, 0x97271aec, 0xa93a072a, 0x1b3f6d9b, 0x1e6321f5, 0xf59c66fb, 0x26dcf319,
+ 0x7533d928, 0xb155fdf5, 0x03563482, 0x8aba3cbb, 0x28517711, 0xc20ad9f8, 0xabcc5167, 0xccad925f,
+ 0x4de81751, 0x3830dc8e, 0x379d5862, 0x9320f991, 0xea7a90c2, 0xfb3e7bce, 0x5121ce64, 0x774fbe32,
+ 0xa8b6e37e, 0xc3293d46, 0x48de5369, 0x6413e680, 0xa2ae0810, 0xdd6db224, 0x69852dfd, 0x09072166,
+ 0xb39a460a, 0x6445c0dd, 0x586cdecf, 0x1c20c8ae, 0x5bbef7dd, 0x1b588d40, 0xccd2017f, 0x6bb4e3bb,
+ 0xdda26a7e, 0x3a59ff45, 0x3e350a44, 0xbcb4cdd5, 0x72eacea8, 0xfa6484bb, 0x8d6612ae, 0xbf3c6f47,
+ 0xd29be463, 0x542f5d9e, 0xaec2771b, 0xf64e6370, 0x740e0d8d, 0xe75b1357, 0xf8721671, 0xaf537d5d,
+ 0x4040cb08, 0x4eb4e2cc, 0x34d2466a, 0x0115af84, 0xe1b00428, 0x95983a1d, 0x06b89fb4, 0xce6ea048,
+ 0x6f3f3b82, 0x3520ab82, 0x011a1d4b, 0x277227f8, 0x611560b1, 0xe7933fdc, 0xbb3a792b, 0x344525bd,
+ 0xa08839e1, 0x51ce794b, 0x2f32c9b7, 0xa01fbac9, 0xe01cc87e, 0xbcc7d1f6, 0xcf0111c3, 0xa1e8aac7,
+ 0x1a908749, 0xd44fbd9a, 0xd0dadecb, 0xd50ada38, 0x0339c32a, 0xc6913667, 0x8df9317c, 0xe0b12b4f,
+ 0xf79e59b7, 0x43f5bb3a, 0xf2d519ff, 0x27d9459c, 0xbf97222c, 0x15e6fc2a, 0x0f91fc71, 0x9b941525,
+ 0xfae59361, 0xceb69ceb, 0xc2a86459, 0x12baa8d1, 0xb6c1075e, 0xe3056a0c, 0x10d25065, 0xcb03a442,
+ 0xe0ec6e0e, 0x1698db3b, 0x4c98a0be, 0x3278e964, 0x9f1f9532, 0xe0d392df, 0xd3a0342b, 0x8971f21e,
+ 0x1b0a7441, 0x4ba3348c, 0xc5be7120, 0xc37632d8, 0xdf359f8d, 0x9b992f2e, 0xe60b6f47, 0x0fe3f11d,
+ 0xe54cda54, 0x1edad891, 0xce6279cf, 0xcd3e7e6f, 0x1618b166, 0xfd2c1d05, 0x848fd2c5, 0xf6fb2299,
+ 0xf523f357, 0xa6327623, 0x93a83531, 0x56cccd02, 0xacf08162, 0x5a75ebb5, 0x6e163697, 0x88d273cc,
+ 0xde966292, 0x81b949d0, 0x4c50901b, 0x71c65614, 0xe6c6c7bd, 0x327a140a, 0x45e1d006, 0xc3f27b9a,
+ 0xc9aa53fd, 0x62a80f00, 0xbb25bfe2, 0x35bdd2f6, 0x71126905, 0xb2040222, 0xb6cbcf7c, 0xcd769c2b,
+ 0x53113ec0, 0x1640e3d3, 0x38abbd60, 0x2547adf0, 0xba38209c, 0xf746ce76, 0x77afa1c5, 0x20756060,
+ 0x85cbfe4e, 0x8ae88dd8, 0x7aaaf9b0, 0x4cf9aa7e, 0x1948c25c, 0x02fb8a8c, 0x01c36ae4, 0xd6ebe1f9,
+ 0x90d4f869, 0xa65cdea0, 0x3f09252d, 0xc208e69f, 0xb74e6132, 0xce77e25b, 0x578fdfe3, 0x3ac372e6
+ );
+
+ /**
+ * P-Array consists of 18 32-bit subkeys
+ *
+ * @var array
+ * @access private
+ */
+ var $parray = array(
+ 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822, 0x299f31d0,
+ 0x082efa98, 0xec4e6c89, 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c,
+ 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917, 0x9216d5d9, 0x8979fb1b
+ );
+
+ /**
+ * The BCTX-working Array
+ *
+ * Holds the expanded key [p] and the key-depended s-boxes [sb]
+ *
+ * @var array
+ * @access private
+ */
+ var $bctx;
+
+ /**
+ * Holds the last used key
+ *
+ * @var array
+ * @access private
+ */
+ var $kl;
+
+ /**
+ * The Key Length (in bytes)
+ *
+ * @see \phpseclib\Crypt\Base::setKeyLength()
+ * @var int
+ * @access private
+ * @internal The max value is 256 / 8 = 32, the min value is 128 / 8 = 16. Exists in conjunction with $Nk
+ * because the encryption / decryption / key schedule creation requires this number and not $key_length. We could
+ * derive this from $key_length or vice versa, but that'd mean we'd have to do multiple shift operations, so in lieu
+ * of that, we'll just precompute it once.
+ */
+ var $key_length = 16;
+
+ /**
+ * Sets the key length.
+ *
+ * Key lengths can be between 32 and 448 bits.
+ *
+ * @access public
+ * @param int $length
+ */
+ function setKeyLength($length)
+ {
+ if ($length < 32) {
+ $this->key_length = 7;
+ } elseif ($length > 448) {
+ $this->key_length = 56;
+ } else {
+ $this->key_length = $length >> 3;
+ }
+
+ parent::setKeyLength($length);
+ }
+
+ /**
+ * Test for engine validity
+ *
+ * This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
+ *
+ * @see \phpseclib\Crypt\Base::isValidEngine()
+ * @param int $engine
+ * @access public
+ * @return bool
+ */
+ function isValidEngine($engine)
+ {
+ if ($engine == self::ENGINE_OPENSSL) {
+ if (version_compare(PHP_VERSION, '5.3.7') < 0 && $this->key_length != 16) {
+ return false;
+ }
+ if ($this->key_length < 16) {
+ return false;
+ }
+ $this->cipher_name_openssl_ecb = 'bf-ecb';
+ $this->cipher_name_openssl = 'bf-' . $this->_openssl_translate_mode();
+ }
+
+ return parent::isValidEngine($engine);
+ }
+
+ /**
+ * Setup the key (expansion)
+ *
+ * @see \phpseclib\Crypt\Base::_setupKey()
+ * @access private
+ */
+ function _setupKey()
+ {
+ if (isset($this->kl['key']) && $this->key === $this->kl['key']) {
+ // already expanded
+ return;
+ }
+ $this->kl = array('key' => $this->key);
+
+ /* key-expanding p[] and S-Box building sb[] */
+ $this->bctx = array(
+ 'p' => array(),
+ 'sb' => array(
+ $this->sbox0,
+ $this->sbox1,
+ $this->sbox2,
+ $this->sbox3
+ )
+ );
+
+ // unpack binary string in unsigned chars
+ $key = array_values(unpack('C*', $this->key));
+ $keyl = count($key);
+ for ($j = 0, $i = 0; $i < 18; ++$i) {
+ // xor P1 with the first 32-bits of the key, xor P2 with the second 32-bits ...
+ for ($data = 0, $k = 0; $k < 4; ++$k) {
+ $data = ($data << 8) | $key[$j];
+ if (++$j >= $keyl) {
+ $j = 0;
+ }
+ }
+ $this->bctx['p'][] = $this->parray[$i] ^ $data;
+ }
+
+ // encrypt the zero-string, replace P1 and P2 with the encrypted data,
+ // encrypt P3 and P4 with the new P1 and P2, do it with all P-array and subkeys
+ $data = "\0\0\0\0\0\0\0\0";
+ for ($i = 0; $i < 18; $i += 2) {
+ list($l, $r) = array_values(unpack('N*', $data = $this->_encryptBlock($data)));
+ $this->bctx['p'][$i ] = $l;
+ $this->bctx['p'][$i + 1] = $r;
+ }
+ for ($i = 0; $i < 4; ++$i) {
+ for ($j = 0; $j < 256; $j += 2) {
+ list($l, $r) = array_values(unpack('N*', $data = $this->_encryptBlock($data)));
+ $this->bctx['sb'][$i][$j ] = $l;
+ $this->bctx['sb'][$i][$j + 1] = $r;
+ }
+ }
+ }
+
+ /**
+ * Encrypts a block
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _encryptBlock($in)
+ {
+ $p = $this->bctx["p"];
+ // extract($this->bctx["sb"], EXTR_PREFIX_ALL, "sb"); // slower
+ $sb_0 = $this->bctx["sb"][0];
+ $sb_1 = $this->bctx["sb"][1];
+ $sb_2 = $this->bctx["sb"][2];
+ $sb_3 = $this->bctx["sb"][3];
+
+ $in = unpack("N*", $in);
+ $l = $in[1];
+ $r = $in[2];
+
+ for ($i = 0; $i < 16; $i+= 2) {
+ $l^= $p[$i];
+ $r^= ($sb_0[$l >> 24 & 0xff] +
+ $sb_1[$l >> 16 & 0xff] ^
+ $sb_2[$l >> 8 & 0xff]) +
+ $sb_3[$l & 0xff];
+
+ $r^= $p[$i + 1];
+ $l^= ($sb_0[$r >> 24 & 0xff] +
+ $sb_1[$r >> 16 & 0xff] ^
+ $sb_2[$r >> 8 & 0xff]) +
+ $sb_3[$r & 0xff];
+ }
+ return pack("N*", $r ^ $p[17], $l ^ $p[16]);
+ }
+
+ /**
+ * Decrypts a block
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _decryptBlock($in)
+ {
+ $p = $this->bctx["p"];
+ $sb_0 = $this->bctx["sb"][0];
+ $sb_1 = $this->bctx["sb"][1];
+ $sb_2 = $this->bctx["sb"][2];
+ $sb_3 = $this->bctx["sb"][3];
+
+ $in = unpack("N*", $in);
+ $l = $in[1];
+ $r = $in[2];
+
+ for ($i = 17; $i > 2; $i-= 2) {
+ $l^= $p[$i];
+ $r^= ($sb_0[$l >> 24 & 0xff] +
+ $sb_1[$l >> 16 & 0xff] ^
+ $sb_2[$l >> 8 & 0xff]) +
+ $sb_3[$l & 0xff];
+
+ $r^= $p[$i - 1];
+ $l^= ($sb_0[$r >> 24 & 0xff] +
+ $sb_1[$r >> 16 & 0xff] ^
+ $sb_2[$r >> 8 & 0xff]) +
+ $sb_3[$r & 0xff];
+ }
+ return pack("N*", $r ^ $p[0], $l ^ $p[1]);
+ }
+
+ /**
+ * Setup the performance-optimized function for de/encrypt()
+ *
+ * @see \phpseclib\Crypt\Base::_setupInlineCrypt()
+ * @access private
+ */
+ function _setupInlineCrypt()
+ {
+ $lambda_functions =& self::_getLambdaFunctions();
+
+ // We create max. 10 hi-optimized code for memory reason. Means: For each $key one ultra fast inline-crypt function.
+ // (Currently, for Blowfish, one generated $lambda_function cost on php5.5@32bit ~100kb unfreeable mem and ~180kb on php5.5@64bit)
+ // After that, we'll still create very fast optimized code but not the hi-ultimative code, for each $mode one.
+ $gen_hi_opt_code = (bool)(count($lambda_functions) < 10);
+
+ // Generation of a unique hash for our generated code
+ $code_hash = "Crypt_Blowfish, {$this->mode}";
+ if ($gen_hi_opt_code) {
+ $code_hash = str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key);
+ }
+
+ if (!isset($lambda_functions[$code_hash])) {
+ switch (true) {
+ case $gen_hi_opt_code:
+ $p = $this->bctx['p'];
+ $init_crypt = '
+ static $sb_0, $sb_1, $sb_2, $sb_3;
+ if (!$sb_0) {
+ $sb_0 = $self->bctx["sb"][0];
+ $sb_1 = $self->bctx["sb"][1];
+ $sb_2 = $self->bctx["sb"][2];
+ $sb_3 = $self->bctx["sb"][3];
+ }
+ ';
+ break;
+ default:
+ $p = array();
+ for ($i = 0; $i < 18; ++$i) {
+ $p[] = '$p_' . $i;
+ }
+ $init_crypt = '
+ list($sb_0, $sb_1, $sb_2, $sb_3) = $self->bctx["sb"];
+ list(' . implode(',', $p) . ') = $self->bctx["p"];
+
+ ';
+ }
+
+ // Generating encrypt code:
+ $encrypt_block = '
+ $in = unpack("N*", $in);
+ $l = $in[1];
+ $r = $in[2];
+ ';
+ for ($i = 0; $i < 16; $i+= 2) {
+ $encrypt_block.= '
+ $l^= ' . $p[$i] . ';
+ $r^= ($sb_0[$l >> 24 & 0xff] +
+ $sb_1[$l >> 16 & 0xff] ^
+ $sb_2[$l >> 8 & 0xff]) +
+ $sb_3[$l & 0xff];
+
+ $r^= ' . $p[$i + 1] . ';
+ $l^= ($sb_0[$r >> 24 & 0xff] +
+ $sb_1[$r >> 16 & 0xff] ^
+ $sb_2[$r >> 8 & 0xff]) +
+ $sb_3[$r & 0xff];
+ ';
+ }
+ $encrypt_block.= '
+ $in = pack("N*",
+ $r ^ ' . $p[17] . ',
+ $l ^ ' . $p[16] . '
+ );
+ ';
+
+ // Generating decrypt code:
+ $decrypt_block = '
+ $in = unpack("N*", $in);
+ $l = $in[1];
+ $r = $in[2];
+ ';
+
+ for ($i = 17; $i > 2; $i-= 2) {
+ $decrypt_block.= '
+ $l^= ' . $p[$i] . ';
+ $r^= ($sb_0[$l >> 24 & 0xff] +
+ $sb_1[$l >> 16 & 0xff] ^
+ $sb_2[$l >> 8 & 0xff]) +
+ $sb_3[$l & 0xff];
+
+ $r^= ' . $p[$i - 1] . ';
+ $l^= ($sb_0[$r >> 24 & 0xff] +
+ $sb_1[$r >> 16 & 0xff] ^
+ $sb_2[$r >> 8 & 0xff]) +
+ $sb_3[$r & 0xff];
+ ';
+ }
+
+ $decrypt_block.= '
+ $in = pack("N*",
+ $r ^ ' . $p[0] . ',
+ $l ^ ' . $p[1] . '
+ );
+ ';
+
+ $lambda_functions[$code_hash] = $this->_createInlineCryptFunction(
+ array(
+ 'init_crypt' => $init_crypt,
+ 'init_encrypt' => '',
+ 'init_decrypt' => '',
+ 'encrypt_block' => $encrypt_block,
+ 'decrypt_block' => $decrypt_block
+ )
+ );
+ }
+ $this->inline_crypt = $lambda_functions[$code_hash];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/DES.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/DES.php
new file mode 100644
index 00000000..51220469
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/DES.php
@@ -0,0 +1,1443 @@
+<?php
+
+/**
+ * Pure-PHP implementation of DES.
+ *
+ * Uses mcrypt, if available, and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * Useful resources are as follows:
+ *
+ * - {@link http://en.wikipedia.org/wiki/DES_supplementary_material Wikipedia: DES supplementary material}
+ * - {@link http://www.itl.nist.gov/fipspubs/fip46-2.htm FIPS 46-2 - (DES), Data Encryption Standard}
+ * - {@link http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-DES.html JavaScript DES Example}
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $des = new \phpseclib\Crypt\DES();
+ *
+ * $des->setKey('abcdefgh');
+ *
+ * $size = 10 * 1024;
+ * $plaintext = '';
+ * for ($i = 0; $i < $size; $i++) {
+ * $plaintext.= 'a';
+ * }
+ *
+ * echo $des->decrypt($des->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package DES
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of DES.
+ *
+ * @package DES
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class DES extends Base
+{
+ /**#@+
+ * @access private
+ * @see \phpseclib\Crypt\DES::_setupKey()
+ * @see \phpseclib\Crypt\DES::_processBlock()
+ */
+ /**
+ * Contains $keys[self::ENCRYPT]
+ */
+ const ENCRYPT = 0;
+ /**
+ * Contains $keys[self::DECRYPT]
+ */
+ const DECRYPT = 1;
+ /**#@-*/
+
+ /**
+ * Block Length of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::block_size
+ * @var int
+ * @access private
+ */
+ var $block_size = 8;
+
+ /**
+ * Key Length (in bytes)
+ *
+ * @see \phpseclib\Crypt\Base::setKeyLength()
+ * @var int
+ * @access private
+ */
+ var $key_length = 8;
+
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::cipher_name_mcrypt
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt = 'des';
+
+ /**
+ * The OpenSSL names of the cipher / modes
+ *
+ * @see \phpseclib\Crypt\Base::openssl_mode_names
+ * @var array
+ * @access private
+ */
+ var $openssl_mode_names = array(
+ self::MODE_ECB => 'des-ecb',
+ self::MODE_CBC => 'des-cbc',
+ self::MODE_CFB => 'des-cfb',
+ self::MODE_OFB => 'des-ofb'
+ // self::MODE_CTR is undefined for DES
+ );
+
+ /**
+ * Optimizing value while CFB-encrypting
+ *
+ * @see \phpseclib\Crypt\Base::cfb_init_len
+ * @var int
+ * @access private
+ */
+ var $cfb_init_len = 500;
+
+ /**
+ * Switch for DES/3DES encryption
+ *
+ * Used only if $engine == self::ENGINE_INTERNAL
+ *
+ * @see self::_setupKey()
+ * @see self::_processBlock()
+ * @var int
+ * @access private
+ */
+ var $des_rounds = 1;
+
+ /**
+ * max possible size of $key
+ *
+ * @see self::setKey()
+ * @var string
+ * @access private
+ */
+ var $key_length_max = 8;
+
+ /**
+ * The Key Schedule
+ *
+ * @see self::_setupKey()
+ * @var array
+ * @access private
+ */
+ var $keys;
+
+ /**
+ * Shuffle table.
+ *
+ * For each byte value index, the entry holds an 8-byte string
+ * with each byte containing all bits in the same state as the
+ * corresponding bit in the index value.
+ *
+ * @see self::_processBlock()
+ * @see self::_setupKey()
+ * @var array
+ * @access private
+ */
+ var $shuffle = array(
+ "\x00\x00\x00\x00\x00\x00\x00\x00", "\x00\x00\x00\x00\x00\x00\x00\xFF",
+ "\x00\x00\x00\x00\x00\x00\xFF\x00", "\x00\x00\x00\x00\x00\x00\xFF\xFF",
+ "\x00\x00\x00\x00\x00\xFF\x00\x00", "\x00\x00\x00\x00\x00\xFF\x00\xFF",
+ "\x00\x00\x00\x00\x00\xFF\xFF\x00", "\x00\x00\x00\x00\x00\xFF\xFF\xFF",
+ "\x00\x00\x00\x00\xFF\x00\x00\x00", "\x00\x00\x00\x00\xFF\x00\x00\xFF",
+ "\x00\x00\x00\x00\xFF\x00\xFF\x00", "\x00\x00\x00\x00\xFF\x00\xFF\xFF",
+ "\x00\x00\x00\x00\xFF\xFF\x00\x00", "\x00\x00\x00\x00\xFF\xFF\x00\xFF",
+ "\x00\x00\x00\x00\xFF\xFF\xFF\x00", "\x00\x00\x00\x00\xFF\xFF\xFF\xFF",
+ "\x00\x00\x00\xFF\x00\x00\x00\x00", "\x00\x00\x00\xFF\x00\x00\x00\xFF",
+ "\x00\x00\x00\xFF\x00\x00\xFF\x00", "\x00\x00\x00\xFF\x00\x00\xFF\xFF",
+ "\x00\x00\x00\xFF\x00\xFF\x00\x00", "\x00\x00\x00\xFF\x00\xFF\x00\xFF",
+ "\x00\x00\x00\xFF\x00\xFF\xFF\x00", "\x00\x00\x00\xFF\x00\xFF\xFF\xFF",
+ "\x00\x00\x00\xFF\xFF\x00\x00\x00", "\x00\x00\x00\xFF\xFF\x00\x00\xFF",
+ "\x00\x00\x00\xFF\xFF\x00\xFF\x00", "\x00\x00\x00\xFF\xFF\x00\xFF\xFF",
+ "\x00\x00\x00\xFF\xFF\xFF\x00\x00", "\x00\x00\x00\xFF\xFF\xFF\x00\xFF",
+ "\x00\x00\x00\xFF\xFF\xFF\xFF\x00", "\x00\x00\x00\xFF\xFF\xFF\xFF\xFF",
+ "\x00\x00\xFF\x00\x00\x00\x00\x00", "\x00\x00\xFF\x00\x00\x00\x00\xFF",
+ "\x00\x00\xFF\x00\x00\x00\xFF\x00", "\x00\x00\xFF\x00\x00\x00\xFF\xFF",
+ "\x00\x00\xFF\x00\x00\xFF\x00\x00", "\x00\x00\xFF\x00\x00\xFF\x00\xFF",
+ "\x00\x00\xFF\x00\x00\xFF\xFF\x00", "\x00\x00\xFF\x00\x00\xFF\xFF\xFF",
+ "\x00\x00\xFF\x00\xFF\x00\x00\x00", "\x00\x00\xFF\x00\xFF\x00\x00\xFF",
+ "\x00\x00\xFF\x00\xFF\x00\xFF\x00", "\x00\x00\xFF\x00\xFF\x00\xFF\xFF",
+ "\x00\x00\xFF\x00\xFF\xFF\x00\x00", "\x00\x00\xFF\x00\xFF\xFF\x00\xFF",
+ "\x00\x00\xFF\x00\xFF\xFF\xFF\x00", "\x00\x00\xFF\x00\xFF\xFF\xFF\xFF",
+ "\x00\x00\xFF\xFF\x00\x00\x00\x00", "\x00\x00\xFF\xFF\x00\x00\x00\xFF",
+ "\x00\x00\xFF\xFF\x00\x00\xFF\x00", "\x00\x00\xFF\xFF\x00\x00\xFF\xFF",
+ "\x00\x00\xFF\xFF\x00\xFF\x00\x00", "\x00\x00\xFF\xFF\x00\xFF\x00\xFF",
+ "\x00\x00\xFF\xFF\x00\xFF\xFF\x00", "\x00\x00\xFF\xFF\x00\xFF\xFF\xFF",
+ "\x00\x00\xFF\xFF\xFF\x00\x00\x00", "\x00\x00\xFF\xFF\xFF\x00\x00\xFF",
+ "\x00\x00\xFF\xFF\xFF\x00\xFF\x00", "\x00\x00\xFF\xFF\xFF\x00\xFF\xFF",
+ "\x00\x00\xFF\xFF\xFF\xFF\x00\x00", "\x00\x00\xFF\xFF\xFF\xFF\x00\xFF",
+ "\x00\x00\xFF\xFF\xFF\xFF\xFF\x00", "\x00\x00\xFF\xFF\xFF\xFF\xFF\xFF",
+ "\x00\xFF\x00\x00\x00\x00\x00\x00", "\x00\xFF\x00\x00\x00\x00\x00\xFF",
+ "\x00\xFF\x00\x00\x00\x00\xFF\x00", "\x00\xFF\x00\x00\x00\x00\xFF\xFF",
+ "\x00\xFF\x00\x00\x00\xFF\x00\x00", "\x00\xFF\x00\x00\x00\xFF\x00\xFF",
+ "\x00\xFF\x00\x00\x00\xFF\xFF\x00", "\x00\xFF\x00\x00\x00\xFF\xFF\xFF",
+ "\x00\xFF\x00\x00\xFF\x00\x00\x00", "\x00\xFF\x00\x00\xFF\x00\x00\xFF",
+ "\x00\xFF\x00\x00\xFF\x00\xFF\x00", "\x00\xFF\x00\x00\xFF\x00\xFF\xFF",
+ "\x00\xFF\x00\x00\xFF\xFF\x00\x00", "\x00\xFF\x00\x00\xFF\xFF\x00\xFF",
+ "\x00\xFF\x00\x00\xFF\xFF\xFF\x00", "\x00\xFF\x00\x00\xFF\xFF\xFF\xFF",
+ "\x00\xFF\x00\xFF\x00\x00\x00\x00", "\x00\xFF\x00\xFF\x00\x00\x00\xFF",
+ "\x00\xFF\x00\xFF\x00\x00\xFF\x00", "\x00\xFF\x00\xFF\x00\x00\xFF\xFF",
+ "\x00\xFF\x00\xFF\x00\xFF\x00\x00", "\x00\xFF\x00\xFF\x00\xFF\x00\xFF",
+ "\x00\xFF\x00\xFF\x00\xFF\xFF\x00", "\x00\xFF\x00\xFF\x00\xFF\xFF\xFF",
+ "\x00\xFF\x00\xFF\xFF\x00\x00\x00", "\x00\xFF\x00\xFF\xFF\x00\x00\xFF",
+ "\x00\xFF\x00\xFF\xFF\x00\xFF\x00", "\x00\xFF\x00\xFF\xFF\x00\xFF\xFF",
+ "\x00\xFF\x00\xFF\xFF\xFF\x00\x00", "\x00\xFF\x00\xFF\xFF\xFF\x00\xFF",
+ "\x00\xFF\x00\xFF\xFF\xFF\xFF\x00", "\x00\xFF\x00\xFF\xFF\xFF\xFF\xFF",
+ "\x00\xFF\xFF\x00\x00\x00\x00\x00", "\x00\xFF\xFF\x00\x00\x00\x00\xFF",
+ "\x00\xFF\xFF\x00\x00\x00\xFF\x00", "\x00\xFF\xFF\x00\x00\x00\xFF\xFF",
+ "\x00\xFF\xFF\x00\x00\xFF\x00\x00", "\x00\xFF\xFF\x00\x00\xFF\x00\xFF",
+ "\x00\xFF\xFF\x00\x00\xFF\xFF\x00", "\x00\xFF\xFF\x00\x00\xFF\xFF\xFF",
+ "\x00\xFF\xFF\x00\xFF\x00\x00\x00", "\x00\xFF\xFF\x00\xFF\x00\x00\xFF",
+ "\x00\xFF\xFF\x00\xFF\x00\xFF\x00", "\x00\xFF\xFF\x00\xFF\x00\xFF\xFF",
+ "\x00\xFF\xFF\x00\xFF\xFF\x00\x00", "\x00\xFF\xFF\x00\xFF\xFF\x00\xFF",
+ "\x00\xFF\xFF\x00\xFF\xFF\xFF\x00", "\x00\xFF\xFF\x00\xFF\xFF\xFF\xFF",
+ "\x00\xFF\xFF\xFF\x00\x00\x00\x00", "\x00\xFF\xFF\xFF\x00\x00\x00\xFF",
+ "\x00\xFF\xFF\xFF\x00\x00\xFF\x00", "\x00\xFF\xFF\xFF\x00\x00\xFF\xFF",
+ "\x00\xFF\xFF\xFF\x00\xFF\x00\x00", "\x00\xFF\xFF\xFF\x00\xFF\x00\xFF",
+ "\x00\xFF\xFF\xFF\x00\xFF\xFF\x00", "\x00\xFF\xFF\xFF\x00\xFF\xFF\xFF",
+ "\x00\xFF\xFF\xFF\xFF\x00\x00\x00", "\x00\xFF\xFF\xFF\xFF\x00\x00\xFF",
+ "\x00\xFF\xFF\xFF\xFF\x00\xFF\x00", "\x00\xFF\xFF\xFF\xFF\x00\xFF\xFF",
+ "\x00\xFF\xFF\xFF\xFF\xFF\x00\x00", "\x00\xFF\xFF\xFF\xFF\xFF\x00\xFF",
+ "\x00\xFF\xFF\xFF\xFF\xFF\xFF\x00", "\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF",
+ "\xFF\x00\x00\x00\x00\x00\x00\x00", "\xFF\x00\x00\x00\x00\x00\x00\xFF",
+ "\xFF\x00\x00\x00\x00\x00\xFF\x00", "\xFF\x00\x00\x00\x00\x00\xFF\xFF",
+ "\xFF\x00\x00\x00\x00\xFF\x00\x00", "\xFF\x00\x00\x00\x00\xFF\x00\xFF",
+ "\xFF\x00\x00\x00\x00\xFF\xFF\x00", "\xFF\x00\x00\x00\x00\xFF\xFF\xFF",
+ "\xFF\x00\x00\x00\xFF\x00\x00\x00", "\xFF\x00\x00\x00\xFF\x00\x00\xFF",
+ "\xFF\x00\x00\x00\xFF\x00\xFF\x00", "\xFF\x00\x00\x00\xFF\x00\xFF\xFF",
+ "\xFF\x00\x00\x00\xFF\xFF\x00\x00", "\xFF\x00\x00\x00\xFF\xFF\x00\xFF",
+ "\xFF\x00\x00\x00\xFF\xFF\xFF\x00", "\xFF\x00\x00\x00\xFF\xFF\xFF\xFF",
+ "\xFF\x00\x00\xFF\x00\x00\x00\x00", "\xFF\x00\x00\xFF\x00\x00\x00\xFF",
+ "\xFF\x00\x00\xFF\x00\x00\xFF\x00", "\xFF\x00\x00\xFF\x00\x00\xFF\xFF",
+ "\xFF\x00\x00\xFF\x00\xFF\x00\x00", "\xFF\x00\x00\xFF\x00\xFF\x00\xFF",
+ "\xFF\x00\x00\xFF\x00\xFF\xFF\x00", "\xFF\x00\x00\xFF\x00\xFF\xFF\xFF",
+ "\xFF\x00\x00\xFF\xFF\x00\x00\x00", "\xFF\x00\x00\xFF\xFF\x00\x00\xFF",
+ "\xFF\x00\x00\xFF\xFF\x00\xFF\x00", "\xFF\x00\x00\xFF\xFF\x00\xFF\xFF",
+ "\xFF\x00\x00\xFF\xFF\xFF\x00\x00", "\xFF\x00\x00\xFF\xFF\xFF\x00\xFF",
+ "\xFF\x00\x00\xFF\xFF\xFF\xFF\x00", "\xFF\x00\x00\xFF\xFF\xFF\xFF\xFF",
+ "\xFF\x00\xFF\x00\x00\x00\x00\x00", "\xFF\x00\xFF\x00\x00\x00\x00\xFF",
+ "\xFF\x00\xFF\x00\x00\x00\xFF\x00", "\xFF\x00\xFF\x00\x00\x00\xFF\xFF",
+ "\xFF\x00\xFF\x00\x00\xFF\x00\x00", "\xFF\x00\xFF\x00\x00\xFF\x00\xFF",
+ "\xFF\x00\xFF\x00\x00\xFF\xFF\x00", "\xFF\x00\xFF\x00\x00\xFF\xFF\xFF",
+ "\xFF\x00\xFF\x00\xFF\x00\x00\x00", "\xFF\x00\xFF\x00\xFF\x00\x00\xFF",
+ "\xFF\x00\xFF\x00\xFF\x00\xFF\x00", "\xFF\x00\xFF\x00\xFF\x00\xFF\xFF",
+ "\xFF\x00\xFF\x00\xFF\xFF\x00\x00", "\xFF\x00\xFF\x00\xFF\xFF\x00\xFF",
+ "\xFF\x00\xFF\x00\xFF\xFF\xFF\x00", "\xFF\x00\xFF\x00\xFF\xFF\xFF\xFF",
+ "\xFF\x00\xFF\xFF\x00\x00\x00\x00", "\xFF\x00\xFF\xFF\x00\x00\x00\xFF",
+ "\xFF\x00\xFF\xFF\x00\x00\xFF\x00", "\xFF\x00\xFF\xFF\x00\x00\xFF\xFF",
+ "\xFF\x00\xFF\xFF\x00\xFF\x00\x00", "\xFF\x00\xFF\xFF\x00\xFF\x00\xFF",
+ "\xFF\x00\xFF\xFF\x00\xFF\xFF\x00", "\xFF\x00\xFF\xFF\x00\xFF\xFF\xFF",
+ "\xFF\x00\xFF\xFF\xFF\x00\x00\x00", "\xFF\x00\xFF\xFF\xFF\x00\x00\xFF",
+ "\xFF\x00\xFF\xFF\xFF\x00\xFF\x00", "\xFF\x00\xFF\xFF\xFF\x00\xFF\xFF",
+ "\xFF\x00\xFF\xFF\xFF\xFF\x00\x00", "\xFF\x00\xFF\xFF\xFF\xFF\x00\xFF",
+ "\xFF\x00\xFF\xFF\xFF\xFF\xFF\x00", "\xFF\x00\xFF\xFF\xFF\xFF\xFF\xFF",
+ "\xFF\xFF\x00\x00\x00\x00\x00\x00", "\xFF\xFF\x00\x00\x00\x00\x00\xFF",
+ "\xFF\xFF\x00\x00\x00\x00\xFF\x00", "\xFF\xFF\x00\x00\x00\x00\xFF\xFF",
+ "\xFF\xFF\x00\x00\x00\xFF\x00\x00", "\xFF\xFF\x00\x00\x00\xFF\x00\xFF",
+ "\xFF\xFF\x00\x00\x00\xFF\xFF\x00", "\xFF\xFF\x00\x00\x00\xFF\xFF\xFF",
+ "\xFF\xFF\x00\x00\xFF\x00\x00\x00", "\xFF\xFF\x00\x00\xFF\x00\x00\xFF",
+ "\xFF\xFF\x00\x00\xFF\x00\xFF\x00", "\xFF\xFF\x00\x00\xFF\x00\xFF\xFF",
+ "\xFF\xFF\x00\x00\xFF\xFF\x00\x00", "\xFF\xFF\x00\x00\xFF\xFF\x00\xFF",
+ "\xFF\xFF\x00\x00\xFF\xFF\xFF\x00", "\xFF\xFF\x00\x00\xFF\xFF\xFF\xFF",
+ "\xFF\xFF\x00\xFF\x00\x00\x00\x00", "\xFF\xFF\x00\xFF\x00\x00\x00\xFF",
+ "\xFF\xFF\x00\xFF\x00\x00\xFF\x00", "\xFF\xFF\x00\xFF\x00\x00\xFF\xFF",
+ "\xFF\xFF\x00\xFF\x00\xFF\x00\x00", "\xFF\xFF\x00\xFF\x00\xFF\x00\xFF",
+ "\xFF\xFF\x00\xFF\x00\xFF\xFF\x00", "\xFF\xFF\x00\xFF\x00\xFF\xFF\xFF",
+ "\xFF\xFF\x00\xFF\xFF\x00\x00\x00", "\xFF\xFF\x00\xFF\xFF\x00\x00\xFF",
+ "\xFF\xFF\x00\xFF\xFF\x00\xFF\x00", "\xFF\xFF\x00\xFF\xFF\x00\xFF\xFF",
+ "\xFF\xFF\x00\xFF\xFF\xFF\x00\x00", "\xFF\xFF\x00\xFF\xFF\xFF\x00\xFF",
+ "\xFF\xFF\x00\xFF\xFF\xFF\xFF\x00", "\xFF\xFF\x00\xFF\xFF\xFF\xFF\xFF",
+ "\xFF\xFF\xFF\x00\x00\x00\x00\x00", "\xFF\xFF\xFF\x00\x00\x00\x00\xFF",
+ "\xFF\xFF\xFF\x00\x00\x00\xFF\x00", "\xFF\xFF\xFF\x00\x00\x00\xFF\xFF",
+ "\xFF\xFF\xFF\x00\x00\xFF\x00\x00", "\xFF\xFF\xFF\x00\x00\xFF\x00\xFF",
+ "\xFF\xFF\xFF\x00\x00\xFF\xFF\x00", "\xFF\xFF\xFF\x00\x00\xFF\xFF\xFF",
+ "\xFF\xFF\xFF\x00\xFF\x00\x00\x00", "\xFF\xFF\xFF\x00\xFF\x00\x00\xFF",
+ "\xFF\xFF\xFF\x00\xFF\x00\xFF\x00", "\xFF\xFF\xFF\x00\xFF\x00\xFF\xFF",
+ "\xFF\xFF\xFF\x00\xFF\xFF\x00\x00", "\xFF\xFF\xFF\x00\xFF\xFF\x00\xFF",
+ "\xFF\xFF\xFF\x00\xFF\xFF\xFF\x00", "\xFF\xFF\xFF\x00\xFF\xFF\xFF\xFF",
+ "\xFF\xFF\xFF\xFF\x00\x00\x00\x00", "\xFF\xFF\xFF\xFF\x00\x00\x00\xFF",
+ "\xFF\xFF\xFF\xFF\x00\x00\xFF\x00", "\xFF\xFF\xFF\xFF\x00\x00\xFF\xFF",
+ "\xFF\xFF\xFF\xFF\x00\xFF\x00\x00", "\xFF\xFF\xFF\xFF\x00\xFF\x00\xFF",
+ "\xFF\xFF\xFF\xFF\x00\xFF\xFF\x00", "\xFF\xFF\xFF\xFF\x00\xFF\xFF\xFF",
+ "\xFF\xFF\xFF\xFF\xFF\x00\x00\x00", "\xFF\xFF\xFF\xFF\xFF\x00\x00\xFF",
+ "\xFF\xFF\xFF\xFF\xFF\x00\xFF\x00", "\xFF\xFF\xFF\xFF\xFF\x00\xFF\xFF",
+ "\xFF\xFF\xFF\xFF\xFF\xFF\x00\x00", "\xFF\xFF\xFF\xFF\xFF\xFF\x00\xFF",
+ "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x00", "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
+ );
+
+ /**
+ * IP mapping helper table.
+ *
+ * Indexing this table with each source byte performs the initial bit permutation.
+ *
+ * @var array
+ * @access private
+ */
+ var $ipmap = array(
+ 0x00, 0x10, 0x01, 0x11, 0x20, 0x30, 0x21, 0x31,
+ 0x02, 0x12, 0x03, 0x13, 0x22, 0x32, 0x23, 0x33,
+ 0x40, 0x50, 0x41, 0x51, 0x60, 0x70, 0x61, 0x71,
+ 0x42, 0x52, 0x43, 0x53, 0x62, 0x72, 0x63, 0x73,
+ 0x04, 0x14, 0x05, 0x15, 0x24, 0x34, 0x25, 0x35,
+ 0x06, 0x16, 0x07, 0x17, 0x26, 0x36, 0x27, 0x37,
+ 0x44, 0x54, 0x45, 0x55, 0x64, 0x74, 0x65, 0x75,
+ 0x46, 0x56, 0x47, 0x57, 0x66, 0x76, 0x67, 0x77,
+ 0x80, 0x90, 0x81, 0x91, 0xA0, 0xB0, 0xA1, 0xB1,
+ 0x82, 0x92, 0x83, 0x93, 0xA2, 0xB2, 0xA3, 0xB3,
+ 0xC0, 0xD0, 0xC1, 0xD1, 0xE0, 0xF0, 0xE1, 0xF1,
+ 0xC2, 0xD2, 0xC3, 0xD3, 0xE2, 0xF2, 0xE3, 0xF3,
+ 0x84, 0x94, 0x85, 0x95, 0xA4, 0xB4, 0xA5, 0xB5,
+ 0x86, 0x96, 0x87, 0x97, 0xA6, 0xB6, 0xA7, 0xB7,
+ 0xC4, 0xD4, 0xC5, 0xD5, 0xE4, 0xF4, 0xE5, 0xF5,
+ 0xC6, 0xD6, 0xC7, 0xD7, 0xE6, 0xF6, 0xE7, 0xF7,
+ 0x08, 0x18, 0x09, 0x19, 0x28, 0x38, 0x29, 0x39,
+ 0x0A, 0x1A, 0x0B, 0x1B, 0x2A, 0x3A, 0x2B, 0x3B,
+ 0x48, 0x58, 0x49, 0x59, 0x68, 0x78, 0x69, 0x79,
+ 0x4A, 0x5A, 0x4B, 0x5B, 0x6A, 0x7A, 0x6B, 0x7B,
+ 0x0C, 0x1C, 0x0D, 0x1D, 0x2C, 0x3C, 0x2D, 0x3D,
+ 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
+ 0x4C, 0x5C, 0x4D, 0x5D, 0x6C, 0x7C, 0x6D, 0x7D,
+ 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
+ 0x88, 0x98, 0x89, 0x99, 0xA8, 0xB8, 0xA9, 0xB9,
+ 0x8A, 0x9A, 0x8B, 0x9B, 0xAA, 0xBA, 0xAB, 0xBB,
+ 0xC8, 0xD8, 0xC9, 0xD9, 0xE8, 0xF8, 0xE9, 0xF9,
+ 0xCA, 0xDA, 0xCB, 0xDB, 0xEA, 0xFA, 0xEB, 0xFB,
+ 0x8C, 0x9C, 0x8D, 0x9D, 0xAC, 0xBC, 0xAD, 0xBD,
+ 0x8E, 0x9E, 0x8F, 0x9F, 0xAE, 0xBE, 0xAF, 0xBF,
+ 0xCC, 0xDC, 0xCD, 0xDD, 0xEC, 0xFC, 0xED, 0xFD,
+ 0xCE, 0xDE, 0xCF, 0xDF, 0xEE, 0xFE, 0xEF, 0xFF
+ );
+
+ /**
+ * Inverse IP mapping helper table.
+ * Indexing this table with a byte value reverses the bit order.
+ *
+ * @var array
+ * @access private
+ */
+ var $invipmap = array(
+ 0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0,
+ 0x10, 0x90, 0x50, 0xD0, 0x30, 0xB0, 0x70, 0xF0,
+ 0x08, 0x88, 0x48, 0xC8, 0x28, 0xA8, 0x68, 0xE8,
+ 0x18, 0x98, 0x58, 0xD8, 0x38, 0xB8, 0x78, 0xF8,
+ 0x04, 0x84, 0x44, 0xC4, 0x24, 0xA4, 0x64, 0xE4,
+ 0x14, 0x94, 0x54, 0xD4, 0x34, 0xB4, 0x74, 0xF4,
+ 0x0C, 0x8C, 0x4C, 0xCC, 0x2C, 0xAC, 0x6C, 0xEC,
+ 0x1C, 0x9C, 0x5C, 0xDC, 0x3C, 0xBC, 0x7C, 0xFC,
+ 0x02, 0x82, 0x42, 0xC2, 0x22, 0xA2, 0x62, 0xE2,
+ 0x12, 0x92, 0x52, 0xD2, 0x32, 0xB2, 0x72, 0xF2,
+ 0x0A, 0x8A, 0x4A, 0xCA, 0x2A, 0xAA, 0x6A, 0xEA,
+ 0x1A, 0x9A, 0x5A, 0xDA, 0x3A, 0xBA, 0x7A, 0xFA,
+ 0x06, 0x86, 0x46, 0xC6, 0x26, 0xA6, 0x66, 0xE6,
+ 0x16, 0x96, 0x56, 0xD6, 0x36, 0xB6, 0x76, 0xF6,
+ 0x0E, 0x8E, 0x4E, 0xCE, 0x2E, 0xAE, 0x6E, 0xEE,
+ 0x1E, 0x9E, 0x5E, 0xDE, 0x3E, 0xBE, 0x7E, 0xFE,
+ 0x01, 0x81, 0x41, 0xC1, 0x21, 0xA1, 0x61, 0xE1,
+ 0x11, 0x91, 0x51, 0xD1, 0x31, 0xB1, 0x71, 0xF1,
+ 0x09, 0x89, 0x49, 0xC9, 0x29, 0xA9, 0x69, 0xE9,
+ 0x19, 0x99, 0x59, 0xD9, 0x39, 0xB9, 0x79, 0xF9,
+ 0x05, 0x85, 0x45, 0xC5, 0x25, 0xA5, 0x65, 0xE5,
+ 0x15, 0x95, 0x55, 0xD5, 0x35, 0xB5, 0x75, 0xF5,
+ 0x0D, 0x8D, 0x4D, 0xCD, 0x2D, 0xAD, 0x6D, 0xED,
+ 0x1D, 0x9D, 0x5D, 0xDD, 0x3D, 0xBD, 0x7D, 0xFD,
+ 0x03, 0x83, 0x43, 0xC3, 0x23, 0xA3, 0x63, 0xE3,
+ 0x13, 0x93, 0x53, 0xD3, 0x33, 0xB3, 0x73, 0xF3,
+ 0x0B, 0x8B, 0x4B, 0xCB, 0x2B, 0xAB, 0x6B, 0xEB,
+ 0x1B, 0x9B, 0x5B, 0xDB, 0x3B, 0xBB, 0x7B, 0xFB,
+ 0x07, 0x87, 0x47, 0xC7, 0x27, 0xA7, 0x67, 0xE7,
+ 0x17, 0x97, 0x57, 0xD7, 0x37, 0xB7, 0x77, 0xF7,
+ 0x0F, 0x8F, 0x4F, 0xCF, 0x2F, 0xAF, 0x6F, 0xEF,
+ 0x1F, 0x9F, 0x5F, 0xDF, 0x3F, 0xBF, 0x7F, 0xFF
+ );
+
+ /**
+ * Pre-permuted S-box1
+ *
+ * Each box ($sbox1-$sbox8) has been vectorized, then each value pre-permuted using the
+ * P table: concatenation can then be replaced by exclusive ORs.
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox1 = array(
+ 0x00808200, 0x00000000, 0x00008000, 0x00808202,
+ 0x00808002, 0x00008202, 0x00000002, 0x00008000,
+ 0x00000200, 0x00808200, 0x00808202, 0x00000200,
+ 0x00800202, 0x00808002, 0x00800000, 0x00000002,
+ 0x00000202, 0x00800200, 0x00800200, 0x00008200,
+ 0x00008200, 0x00808000, 0x00808000, 0x00800202,
+ 0x00008002, 0x00800002, 0x00800002, 0x00008002,
+ 0x00000000, 0x00000202, 0x00008202, 0x00800000,
+ 0x00008000, 0x00808202, 0x00000002, 0x00808000,
+ 0x00808200, 0x00800000, 0x00800000, 0x00000200,
+ 0x00808002, 0x00008000, 0x00008200, 0x00800002,
+ 0x00000200, 0x00000002, 0x00800202, 0x00008202,
+ 0x00808202, 0x00008002, 0x00808000, 0x00800202,
+ 0x00800002, 0x00000202, 0x00008202, 0x00808200,
+ 0x00000202, 0x00800200, 0x00800200, 0x00000000,
+ 0x00008002, 0x00008200, 0x00000000, 0x00808002
+ );
+
+ /**
+ * Pre-permuted S-box2
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox2 = array(
+ 0x40084010, 0x40004000, 0x00004000, 0x00084010,
+ 0x00080000, 0x00000010, 0x40080010, 0x40004010,
+ 0x40000010, 0x40084010, 0x40084000, 0x40000000,
+ 0x40004000, 0x00080000, 0x00000010, 0x40080010,
+ 0x00084000, 0x00080010, 0x40004010, 0x00000000,
+ 0x40000000, 0x00004000, 0x00084010, 0x40080000,
+ 0x00080010, 0x40000010, 0x00000000, 0x00084000,
+ 0x00004010, 0x40084000, 0x40080000, 0x00004010,
+ 0x00000000, 0x00084010, 0x40080010, 0x00080000,
+ 0x40004010, 0x40080000, 0x40084000, 0x00004000,
+ 0x40080000, 0x40004000, 0x00000010, 0x40084010,
+ 0x00084010, 0x00000010, 0x00004000, 0x40000000,
+ 0x00004010, 0x40084000, 0x00080000, 0x40000010,
+ 0x00080010, 0x40004010, 0x40000010, 0x00080010,
+ 0x00084000, 0x00000000, 0x40004000, 0x00004010,
+ 0x40000000, 0x40080010, 0x40084010, 0x00084000
+ );
+
+ /**
+ * Pre-permuted S-box3
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox3 = array(
+ 0x00000104, 0x04010100, 0x00000000, 0x04010004,
+ 0x04000100, 0x00000000, 0x00010104, 0x04000100,
+ 0x00010004, 0x04000004, 0x04000004, 0x00010000,
+ 0x04010104, 0x00010004, 0x04010000, 0x00000104,
+ 0x04000000, 0x00000004, 0x04010100, 0x00000100,
+ 0x00010100, 0x04010000, 0x04010004, 0x00010104,
+ 0x04000104, 0x00010100, 0x00010000, 0x04000104,
+ 0x00000004, 0x04010104, 0x00000100, 0x04000000,
+ 0x04010100, 0x04000000, 0x00010004, 0x00000104,
+ 0x00010000, 0x04010100, 0x04000100, 0x00000000,
+ 0x00000100, 0x00010004, 0x04010104, 0x04000100,
+ 0x04000004, 0x00000100, 0x00000000, 0x04010004,
+ 0x04000104, 0x00010000, 0x04000000, 0x04010104,
+ 0x00000004, 0x00010104, 0x00010100, 0x04000004,
+ 0x04010000, 0x04000104, 0x00000104, 0x04010000,
+ 0x00010104, 0x00000004, 0x04010004, 0x00010100
+ );
+
+ /**
+ * Pre-permuted S-box4
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox4 = array(
+ 0x80401000, 0x80001040, 0x80001040, 0x00000040,
+ 0x00401040, 0x80400040, 0x80400000, 0x80001000,
+ 0x00000000, 0x00401000, 0x00401000, 0x80401040,
+ 0x80000040, 0x00000000, 0x00400040, 0x80400000,
+ 0x80000000, 0x00001000, 0x00400000, 0x80401000,
+ 0x00000040, 0x00400000, 0x80001000, 0x00001040,
+ 0x80400040, 0x80000000, 0x00001040, 0x00400040,
+ 0x00001000, 0x00401040, 0x80401040, 0x80000040,
+ 0x00400040, 0x80400000, 0x00401000, 0x80401040,
+ 0x80000040, 0x00000000, 0x00000000, 0x00401000,
+ 0x00001040, 0x00400040, 0x80400040, 0x80000000,
+ 0x80401000, 0x80001040, 0x80001040, 0x00000040,
+ 0x80401040, 0x80000040, 0x80000000, 0x00001000,
+ 0x80400000, 0x80001000, 0x00401040, 0x80400040,
+ 0x80001000, 0x00001040, 0x00400000, 0x80401000,
+ 0x00000040, 0x00400000, 0x00001000, 0x00401040
+ );
+
+ /**
+ * Pre-permuted S-box5
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox5 = array(
+ 0x00000080, 0x01040080, 0x01040000, 0x21000080,
+ 0x00040000, 0x00000080, 0x20000000, 0x01040000,
+ 0x20040080, 0x00040000, 0x01000080, 0x20040080,
+ 0x21000080, 0x21040000, 0x00040080, 0x20000000,
+ 0x01000000, 0x20040000, 0x20040000, 0x00000000,
+ 0x20000080, 0x21040080, 0x21040080, 0x01000080,
+ 0x21040000, 0x20000080, 0x00000000, 0x21000000,
+ 0x01040080, 0x01000000, 0x21000000, 0x00040080,
+ 0x00040000, 0x21000080, 0x00000080, 0x01000000,
+ 0x20000000, 0x01040000, 0x21000080, 0x20040080,
+ 0x01000080, 0x20000000, 0x21040000, 0x01040080,
+ 0x20040080, 0x00000080, 0x01000000, 0x21040000,
+ 0x21040080, 0x00040080, 0x21000000, 0x21040080,
+ 0x01040000, 0x00000000, 0x20040000, 0x21000000,
+ 0x00040080, 0x01000080, 0x20000080, 0x00040000,
+ 0x00000000, 0x20040000, 0x01040080, 0x20000080
+ );
+
+ /**
+ * Pre-permuted S-box6
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox6 = array(
+ 0x10000008, 0x10200000, 0x00002000, 0x10202008,
+ 0x10200000, 0x00000008, 0x10202008, 0x00200000,
+ 0x10002000, 0x00202008, 0x00200000, 0x10000008,
+ 0x00200008, 0x10002000, 0x10000000, 0x00002008,
+ 0x00000000, 0x00200008, 0x10002008, 0x00002000,
+ 0x00202000, 0x10002008, 0x00000008, 0x10200008,
+ 0x10200008, 0x00000000, 0x00202008, 0x10202000,
+ 0x00002008, 0x00202000, 0x10202000, 0x10000000,
+ 0x10002000, 0x00000008, 0x10200008, 0x00202000,
+ 0x10202008, 0x00200000, 0x00002008, 0x10000008,
+ 0x00200000, 0x10002000, 0x10000000, 0x00002008,
+ 0x10000008, 0x10202008, 0x00202000, 0x10200000,
+ 0x00202008, 0x10202000, 0x00000000, 0x10200008,
+ 0x00000008, 0x00002000, 0x10200000, 0x00202008,
+ 0x00002000, 0x00200008, 0x10002008, 0x00000000,
+ 0x10202000, 0x10000000, 0x00200008, 0x10002008
+ );
+
+ /**
+ * Pre-permuted S-box7
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox7 = array(
+ 0x00100000, 0x02100001, 0x02000401, 0x00000000,
+ 0x00000400, 0x02000401, 0x00100401, 0x02100400,
+ 0x02100401, 0x00100000, 0x00000000, 0x02000001,
+ 0x00000001, 0x02000000, 0x02100001, 0x00000401,
+ 0x02000400, 0x00100401, 0x00100001, 0x02000400,
+ 0x02000001, 0x02100000, 0x02100400, 0x00100001,
+ 0x02100000, 0x00000400, 0x00000401, 0x02100401,
+ 0x00100400, 0x00000001, 0x02000000, 0x00100400,
+ 0x02000000, 0x00100400, 0x00100000, 0x02000401,
+ 0x02000401, 0x02100001, 0x02100001, 0x00000001,
+ 0x00100001, 0x02000000, 0x02000400, 0x00100000,
+ 0x02100400, 0x00000401, 0x00100401, 0x02100400,
+ 0x00000401, 0x02000001, 0x02100401, 0x02100000,
+ 0x00100400, 0x00000000, 0x00000001, 0x02100401,
+ 0x00000000, 0x00100401, 0x02100000, 0x00000400,
+ 0x02000001, 0x02000400, 0x00000400, 0x00100001
+ );
+
+ /**
+ * Pre-permuted S-box8
+ *
+ * @var array
+ * @access private
+ */
+ var $sbox8 = array(
+ 0x08000820, 0x00000800, 0x00020000, 0x08020820,
+ 0x08000000, 0x08000820, 0x00000020, 0x08000000,
+ 0x00020020, 0x08020000, 0x08020820, 0x00020800,
+ 0x08020800, 0x00020820, 0x00000800, 0x00000020,
+ 0x08020000, 0x08000020, 0x08000800, 0x00000820,
+ 0x00020800, 0x00020020, 0x08020020, 0x08020800,
+ 0x00000820, 0x00000000, 0x00000000, 0x08020020,
+ 0x08000020, 0x08000800, 0x00020820, 0x00020000,
+ 0x00020820, 0x00020000, 0x08020800, 0x00000800,
+ 0x00000020, 0x08020020, 0x00000800, 0x00020820,
+ 0x08000800, 0x00000020, 0x08000020, 0x08020000,
+ 0x08020020, 0x08000000, 0x00020000, 0x08000820,
+ 0x00000000, 0x08020820, 0x00020020, 0x08000020,
+ 0x08020000, 0x08000800, 0x08000820, 0x00000000,
+ 0x08020820, 0x00020800, 0x00020800, 0x00000820,
+ 0x00000820, 0x00020020, 0x08000000, 0x08020800
+ );
+
+ /**
+ * Test for engine validity
+ *
+ * This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
+ *
+ * @see \phpseclib\Crypt\Base::isValidEngine()
+ * @param int $engine
+ * @access public
+ * @return bool
+ */
+ function isValidEngine($engine)
+ {
+ if ($this->key_length_max == 8) {
+ if ($engine == self::ENGINE_OPENSSL) {
+ $this->cipher_name_openssl_ecb = 'des-ecb';
+ $this->cipher_name_openssl = 'des-' . $this->_openssl_translate_mode();
+ }
+ }
+
+ return parent::isValidEngine($engine);
+ }
+
+ /**
+ * Sets the key.
+ *
+ * Keys can be of any length. DES, itself, uses 64-bit keys (eg. strlen($key) == 8), however, we
+ * only use the first eight, if $key has more then eight characters in it, and pad $key with the
+ * null byte if it is less then eight characters long.
+ *
+ * DES also requires that every eighth bit be a parity bit, however, we'll ignore that.
+ *
+ * If the key is not explicitly set, it'll be assumed to be all zero's.
+ *
+ * @see \phpseclib\Crypt\Base::setKey()
+ * @access public
+ * @param string $key
+ */
+ function setKey($key)
+ {
+ // We check/cut here only up to max length of the key.
+ // Key padding to the proper length will be done in _setupKey()
+ if (strlen($key) > $this->key_length_max) {
+ $key = substr($key, 0, $this->key_length_max);
+ }
+
+ // Sets the key
+ parent::setKey($key);
+ }
+
+ /**
+ * Encrypts a block
+ *
+ * @see \phpseclib\Crypt\Base::_encryptBlock()
+ * @see \phpseclib\Crypt\Base::encrypt()
+ * @see self::encrypt()
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _encryptBlock($in)
+ {
+ return $this->_processBlock($in, self::ENCRYPT);
+ }
+
+ /**
+ * Decrypts a block
+ *
+ * @see \phpseclib\Crypt\Base::_decryptBlock()
+ * @see \phpseclib\Crypt\Base::decrypt()
+ * @see self::decrypt()
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _decryptBlock($in)
+ {
+ return $this->_processBlock($in, self::DECRYPT);
+ }
+
+ /**
+ * Encrypts or decrypts a 64-bit block
+ *
+ * $mode should be either self::ENCRYPT or self::DECRYPT. See
+ * {@link http://en.wikipedia.org/wiki/Image:Feistel.png Feistel.png} to get a general
+ * idea of what this function does.
+ *
+ * @see self::_encryptBlock()
+ * @see self::_decryptBlock()
+ * @access private
+ * @param string $block
+ * @param int $mode
+ * @return string
+ */
+ function _processBlock($block, $mode)
+ {
+ static $sbox1, $sbox2, $sbox3, $sbox4, $sbox5, $sbox6, $sbox7, $sbox8, $shuffleip, $shuffleinvip;
+ if (!$sbox1) {
+ $sbox1 = array_map("intval", $this->sbox1);
+ $sbox2 = array_map("intval", $this->sbox2);
+ $sbox3 = array_map("intval", $this->sbox3);
+ $sbox4 = array_map("intval", $this->sbox4);
+ $sbox5 = array_map("intval", $this->sbox5);
+ $sbox6 = array_map("intval", $this->sbox6);
+ $sbox7 = array_map("intval", $this->sbox7);
+ $sbox8 = array_map("intval", $this->sbox8);
+ /* Merge $shuffle with $[inv]ipmap */
+ for ($i = 0; $i < 256; ++$i) {
+ $shuffleip[] = $this->shuffle[$this->ipmap[$i]];
+ $shuffleinvip[] = $this->shuffle[$this->invipmap[$i]];
+ }
+ }
+
+ $keys = $this->keys[$mode];
+ $ki = -1;
+
+ // Do the initial IP permutation.
+ $t = unpack('Nl/Nr', $block);
+ list($l, $r) = array($t['l'], $t['r']);
+ $block = ($shuffleip[ $r & 0xFF] & "\x80\x80\x80\x80\x80\x80\x80\x80") |
+ ($shuffleip[($r >> 8) & 0xFF] & "\x40\x40\x40\x40\x40\x40\x40\x40") |
+ ($shuffleip[($r >> 16) & 0xFF] & "\x20\x20\x20\x20\x20\x20\x20\x20") |
+ ($shuffleip[($r >> 24) & 0xFF] & "\x10\x10\x10\x10\x10\x10\x10\x10") |
+ ($shuffleip[ $l & 0xFF] & "\x08\x08\x08\x08\x08\x08\x08\x08") |
+ ($shuffleip[($l >> 8) & 0xFF] & "\x04\x04\x04\x04\x04\x04\x04\x04") |
+ ($shuffleip[($l >> 16) & 0xFF] & "\x02\x02\x02\x02\x02\x02\x02\x02") |
+ ($shuffleip[($l >> 24) & 0xFF] & "\x01\x01\x01\x01\x01\x01\x01\x01");
+
+ // Extract L0 and R0.
+ $t = unpack('Nl/Nr', $block);
+ list($l, $r) = array($t['l'], $t['r']);
+
+ for ($des_round = 0; $des_round < $this->des_rounds; ++$des_round) {
+ // Perform the 16 steps.
+ for ($i = 0; $i < 16; $i++) {
+ // start of "the Feistel (F) function" - see the following URL:
+ // http://en.wikipedia.org/wiki/Image:Data_Encryption_Standard_InfoBox_Diagram.png
+ // Merge key schedule.
+ $b1 = (($r >> 3) & 0x1FFFFFFF) ^ ($r << 29) ^ $keys[++$ki];
+ $b2 = (($r >> 31) & 0x00000001) ^ ($r << 1) ^ $keys[++$ki];
+
+ // S-box indexing.
+ $t = $sbox1[($b1 >> 24) & 0x3F] ^ $sbox2[($b2 >> 24) & 0x3F] ^
+ $sbox3[($b1 >> 16) & 0x3F] ^ $sbox4[($b2 >> 16) & 0x3F] ^
+ $sbox5[($b1 >> 8) & 0x3F] ^ $sbox6[($b2 >> 8) & 0x3F] ^
+ $sbox7[ $b1 & 0x3F] ^ $sbox8[ $b2 & 0x3F] ^ $l;
+ // end of "the Feistel (F) function"
+
+ $l = $r;
+ $r = $t;
+ }
+
+ // Last step should not permute L & R.
+ $t = $l;
+ $l = $r;
+ $r = $t;
+ }
+
+ // Perform the inverse IP permutation.
+ return ($shuffleinvip[($r >> 24) & 0xFF] & "\x80\x80\x80\x80\x80\x80\x80\x80") |
+ ($shuffleinvip[($l >> 24) & 0xFF] & "\x40\x40\x40\x40\x40\x40\x40\x40") |
+ ($shuffleinvip[($r >> 16) & 0xFF] & "\x20\x20\x20\x20\x20\x20\x20\x20") |
+ ($shuffleinvip[($l >> 16) & 0xFF] & "\x10\x10\x10\x10\x10\x10\x10\x10") |
+ ($shuffleinvip[($r >> 8) & 0xFF] & "\x08\x08\x08\x08\x08\x08\x08\x08") |
+ ($shuffleinvip[($l >> 8) & 0xFF] & "\x04\x04\x04\x04\x04\x04\x04\x04") |
+ ($shuffleinvip[ $r & 0xFF] & "\x02\x02\x02\x02\x02\x02\x02\x02") |
+ ($shuffleinvip[ $l & 0xFF] & "\x01\x01\x01\x01\x01\x01\x01\x01");
+ }
+
+ /**
+ * Creates the key schedule
+ *
+ * @see \phpseclib\Crypt\Base::_setupKey()
+ * @access private
+ */
+ function _setupKey()
+ {
+ if (isset($this->kl['key']) && $this->key === $this->kl['key'] && $this->des_rounds === $this->kl['des_rounds']) {
+ // already expanded
+ return;
+ }
+ $this->kl = array('key' => $this->key, 'des_rounds' => $this->des_rounds);
+
+ static $shifts = array( // number of key bits shifted per round
+ 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1
+ );
+
+ static $pc1map = array(
+ 0x00, 0x00, 0x08, 0x08, 0x04, 0x04, 0x0C, 0x0C,
+ 0x02, 0x02, 0x0A, 0x0A, 0x06, 0x06, 0x0E, 0x0E,
+ 0x10, 0x10, 0x18, 0x18, 0x14, 0x14, 0x1C, 0x1C,
+ 0x12, 0x12, 0x1A, 0x1A, 0x16, 0x16, 0x1E, 0x1E,
+ 0x20, 0x20, 0x28, 0x28, 0x24, 0x24, 0x2C, 0x2C,
+ 0x22, 0x22, 0x2A, 0x2A, 0x26, 0x26, 0x2E, 0x2E,
+ 0x30, 0x30, 0x38, 0x38, 0x34, 0x34, 0x3C, 0x3C,
+ 0x32, 0x32, 0x3A, 0x3A, 0x36, 0x36, 0x3E, 0x3E,
+ 0x40, 0x40, 0x48, 0x48, 0x44, 0x44, 0x4C, 0x4C,
+ 0x42, 0x42, 0x4A, 0x4A, 0x46, 0x46, 0x4E, 0x4E,
+ 0x50, 0x50, 0x58, 0x58, 0x54, 0x54, 0x5C, 0x5C,
+ 0x52, 0x52, 0x5A, 0x5A, 0x56, 0x56, 0x5E, 0x5E,
+ 0x60, 0x60, 0x68, 0x68, 0x64, 0x64, 0x6C, 0x6C,
+ 0x62, 0x62, 0x6A, 0x6A, 0x66, 0x66, 0x6E, 0x6E,
+ 0x70, 0x70, 0x78, 0x78, 0x74, 0x74, 0x7C, 0x7C,
+ 0x72, 0x72, 0x7A, 0x7A, 0x76, 0x76, 0x7E, 0x7E,
+ 0x80, 0x80, 0x88, 0x88, 0x84, 0x84, 0x8C, 0x8C,
+ 0x82, 0x82, 0x8A, 0x8A, 0x86, 0x86, 0x8E, 0x8E,
+ 0x90, 0x90, 0x98, 0x98, 0x94, 0x94, 0x9C, 0x9C,
+ 0x92, 0x92, 0x9A, 0x9A, 0x96, 0x96, 0x9E, 0x9E,
+ 0xA0, 0xA0, 0xA8, 0xA8, 0xA4, 0xA4, 0xAC, 0xAC,
+ 0xA2, 0xA2, 0xAA, 0xAA, 0xA6, 0xA6, 0xAE, 0xAE,
+ 0xB0, 0xB0, 0xB8, 0xB8, 0xB4, 0xB4, 0xBC, 0xBC,
+ 0xB2, 0xB2, 0xBA, 0xBA, 0xB6, 0xB6, 0xBE, 0xBE,
+ 0xC0, 0xC0, 0xC8, 0xC8, 0xC4, 0xC4, 0xCC, 0xCC,
+ 0xC2, 0xC2, 0xCA, 0xCA, 0xC6, 0xC6, 0xCE, 0xCE,
+ 0xD0, 0xD0, 0xD8, 0xD8, 0xD4, 0xD4, 0xDC, 0xDC,
+ 0xD2, 0xD2, 0xDA, 0xDA, 0xD6, 0xD6, 0xDE, 0xDE,
+ 0xE0, 0xE0, 0xE8, 0xE8, 0xE4, 0xE4, 0xEC, 0xEC,
+ 0xE2, 0xE2, 0xEA, 0xEA, 0xE6, 0xE6, 0xEE, 0xEE,
+ 0xF0, 0xF0, 0xF8, 0xF8, 0xF4, 0xF4, 0xFC, 0xFC,
+ 0xF2, 0xF2, 0xFA, 0xFA, 0xF6, 0xF6, 0xFE, 0xFE
+ );
+
+ // Mapping tables for the PC-2 transformation.
+ static $pc2mapc1 = array(
+ 0x00000000, 0x00000400, 0x00200000, 0x00200400,
+ 0x00000001, 0x00000401, 0x00200001, 0x00200401,
+ 0x02000000, 0x02000400, 0x02200000, 0x02200400,
+ 0x02000001, 0x02000401, 0x02200001, 0x02200401
+ );
+ static $pc2mapc2 = array(
+ 0x00000000, 0x00000800, 0x08000000, 0x08000800,
+ 0x00010000, 0x00010800, 0x08010000, 0x08010800,
+ 0x00000000, 0x00000800, 0x08000000, 0x08000800,
+ 0x00010000, 0x00010800, 0x08010000, 0x08010800,
+ 0x00000100, 0x00000900, 0x08000100, 0x08000900,
+ 0x00010100, 0x00010900, 0x08010100, 0x08010900,
+ 0x00000100, 0x00000900, 0x08000100, 0x08000900,
+ 0x00010100, 0x00010900, 0x08010100, 0x08010900,
+ 0x00000010, 0x00000810, 0x08000010, 0x08000810,
+ 0x00010010, 0x00010810, 0x08010010, 0x08010810,
+ 0x00000010, 0x00000810, 0x08000010, 0x08000810,
+ 0x00010010, 0x00010810, 0x08010010, 0x08010810,
+ 0x00000110, 0x00000910, 0x08000110, 0x08000910,
+ 0x00010110, 0x00010910, 0x08010110, 0x08010910,
+ 0x00000110, 0x00000910, 0x08000110, 0x08000910,
+ 0x00010110, 0x00010910, 0x08010110, 0x08010910,
+ 0x00040000, 0x00040800, 0x08040000, 0x08040800,
+ 0x00050000, 0x00050800, 0x08050000, 0x08050800,
+ 0x00040000, 0x00040800, 0x08040000, 0x08040800,
+ 0x00050000, 0x00050800, 0x08050000, 0x08050800,
+ 0x00040100, 0x00040900, 0x08040100, 0x08040900,
+ 0x00050100, 0x00050900, 0x08050100, 0x08050900,
+ 0x00040100, 0x00040900, 0x08040100, 0x08040900,
+ 0x00050100, 0x00050900, 0x08050100, 0x08050900,
+ 0x00040010, 0x00040810, 0x08040010, 0x08040810,
+ 0x00050010, 0x00050810, 0x08050010, 0x08050810,
+ 0x00040010, 0x00040810, 0x08040010, 0x08040810,
+ 0x00050010, 0x00050810, 0x08050010, 0x08050810,
+ 0x00040110, 0x00040910, 0x08040110, 0x08040910,
+ 0x00050110, 0x00050910, 0x08050110, 0x08050910,
+ 0x00040110, 0x00040910, 0x08040110, 0x08040910,
+ 0x00050110, 0x00050910, 0x08050110, 0x08050910,
+ 0x01000000, 0x01000800, 0x09000000, 0x09000800,
+ 0x01010000, 0x01010800, 0x09010000, 0x09010800,
+ 0x01000000, 0x01000800, 0x09000000, 0x09000800,
+ 0x01010000, 0x01010800, 0x09010000, 0x09010800,
+ 0x01000100, 0x01000900, 0x09000100, 0x09000900,
+ 0x01010100, 0x01010900, 0x09010100, 0x09010900,
+ 0x01000100, 0x01000900, 0x09000100, 0x09000900,
+ 0x01010100, 0x01010900, 0x09010100, 0x09010900,
+ 0x01000010, 0x01000810, 0x09000010, 0x09000810,
+ 0x01010010, 0x01010810, 0x09010010, 0x09010810,
+ 0x01000010, 0x01000810, 0x09000010, 0x09000810,
+ 0x01010010, 0x01010810, 0x09010010, 0x09010810,
+ 0x01000110, 0x01000910, 0x09000110, 0x09000910,
+ 0x01010110, 0x01010910, 0x09010110, 0x09010910,
+ 0x01000110, 0x01000910, 0x09000110, 0x09000910,
+ 0x01010110, 0x01010910, 0x09010110, 0x09010910,
+ 0x01040000, 0x01040800, 0x09040000, 0x09040800,
+ 0x01050000, 0x01050800, 0x09050000, 0x09050800,
+ 0x01040000, 0x01040800, 0x09040000, 0x09040800,
+ 0x01050000, 0x01050800, 0x09050000, 0x09050800,
+ 0x01040100, 0x01040900, 0x09040100, 0x09040900,
+ 0x01050100, 0x01050900, 0x09050100, 0x09050900,
+ 0x01040100, 0x01040900, 0x09040100, 0x09040900,
+ 0x01050100, 0x01050900, 0x09050100, 0x09050900,
+ 0x01040010, 0x01040810, 0x09040010, 0x09040810,
+ 0x01050010, 0x01050810, 0x09050010, 0x09050810,
+ 0x01040010, 0x01040810, 0x09040010, 0x09040810,
+ 0x01050010, 0x01050810, 0x09050010, 0x09050810,
+ 0x01040110, 0x01040910, 0x09040110, 0x09040910,
+ 0x01050110, 0x01050910, 0x09050110, 0x09050910,
+ 0x01040110, 0x01040910, 0x09040110, 0x09040910,
+ 0x01050110, 0x01050910, 0x09050110, 0x09050910
+ );
+ static $pc2mapc3 = array(
+ 0x00000000, 0x00000004, 0x00001000, 0x00001004,
+ 0x00000000, 0x00000004, 0x00001000, 0x00001004,
+ 0x10000000, 0x10000004, 0x10001000, 0x10001004,
+ 0x10000000, 0x10000004, 0x10001000, 0x10001004,
+ 0x00000020, 0x00000024, 0x00001020, 0x00001024,
+ 0x00000020, 0x00000024, 0x00001020, 0x00001024,
+ 0x10000020, 0x10000024, 0x10001020, 0x10001024,
+ 0x10000020, 0x10000024, 0x10001020, 0x10001024,
+ 0x00080000, 0x00080004, 0x00081000, 0x00081004,
+ 0x00080000, 0x00080004, 0x00081000, 0x00081004,
+ 0x10080000, 0x10080004, 0x10081000, 0x10081004,
+ 0x10080000, 0x10080004, 0x10081000, 0x10081004,
+ 0x00080020, 0x00080024, 0x00081020, 0x00081024,
+ 0x00080020, 0x00080024, 0x00081020, 0x00081024,
+ 0x10080020, 0x10080024, 0x10081020, 0x10081024,
+ 0x10080020, 0x10080024, 0x10081020, 0x10081024,
+ 0x20000000, 0x20000004, 0x20001000, 0x20001004,
+ 0x20000000, 0x20000004, 0x20001000, 0x20001004,
+ 0x30000000, 0x30000004, 0x30001000, 0x30001004,
+ 0x30000000, 0x30000004, 0x30001000, 0x30001004,
+ 0x20000020, 0x20000024, 0x20001020, 0x20001024,
+ 0x20000020, 0x20000024, 0x20001020, 0x20001024,
+ 0x30000020, 0x30000024, 0x30001020, 0x30001024,
+ 0x30000020, 0x30000024, 0x30001020, 0x30001024,
+ 0x20080000, 0x20080004, 0x20081000, 0x20081004,
+ 0x20080000, 0x20080004, 0x20081000, 0x20081004,
+ 0x30080000, 0x30080004, 0x30081000, 0x30081004,
+ 0x30080000, 0x30080004, 0x30081000, 0x30081004,
+ 0x20080020, 0x20080024, 0x20081020, 0x20081024,
+ 0x20080020, 0x20080024, 0x20081020, 0x20081024,
+ 0x30080020, 0x30080024, 0x30081020, 0x30081024,
+ 0x30080020, 0x30080024, 0x30081020, 0x30081024,
+ 0x00000002, 0x00000006, 0x00001002, 0x00001006,
+ 0x00000002, 0x00000006, 0x00001002, 0x00001006,
+ 0x10000002, 0x10000006, 0x10001002, 0x10001006,
+ 0x10000002, 0x10000006, 0x10001002, 0x10001006,
+ 0x00000022, 0x00000026, 0x00001022, 0x00001026,
+ 0x00000022, 0x00000026, 0x00001022, 0x00001026,
+ 0x10000022, 0x10000026, 0x10001022, 0x10001026,
+ 0x10000022, 0x10000026, 0x10001022, 0x10001026,
+ 0x00080002, 0x00080006, 0x00081002, 0x00081006,
+ 0x00080002, 0x00080006, 0x00081002, 0x00081006,
+ 0x10080002, 0x10080006, 0x10081002, 0x10081006,
+ 0x10080002, 0x10080006, 0x10081002, 0x10081006,
+ 0x00080022, 0x00080026, 0x00081022, 0x00081026,
+ 0x00080022, 0x00080026, 0x00081022, 0x00081026,
+ 0x10080022, 0x10080026, 0x10081022, 0x10081026,
+ 0x10080022, 0x10080026, 0x10081022, 0x10081026,
+ 0x20000002, 0x20000006, 0x20001002, 0x20001006,
+ 0x20000002, 0x20000006, 0x20001002, 0x20001006,
+ 0x30000002, 0x30000006, 0x30001002, 0x30001006,
+ 0x30000002, 0x30000006, 0x30001002, 0x30001006,
+ 0x20000022, 0x20000026, 0x20001022, 0x20001026,
+ 0x20000022, 0x20000026, 0x20001022, 0x20001026,
+ 0x30000022, 0x30000026, 0x30001022, 0x30001026,
+ 0x30000022, 0x30000026, 0x30001022, 0x30001026,
+ 0x20080002, 0x20080006, 0x20081002, 0x20081006,
+ 0x20080002, 0x20080006, 0x20081002, 0x20081006,
+ 0x30080002, 0x30080006, 0x30081002, 0x30081006,
+ 0x30080002, 0x30080006, 0x30081002, 0x30081006,
+ 0x20080022, 0x20080026, 0x20081022, 0x20081026,
+ 0x20080022, 0x20080026, 0x20081022, 0x20081026,
+ 0x30080022, 0x30080026, 0x30081022, 0x30081026,
+ 0x30080022, 0x30080026, 0x30081022, 0x30081026
+ );
+ static $pc2mapc4 = array(
+ 0x00000000, 0x00100000, 0x00000008, 0x00100008,
+ 0x00000200, 0x00100200, 0x00000208, 0x00100208,
+ 0x00000000, 0x00100000, 0x00000008, 0x00100008,
+ 0x00000200, 0x00100200, 0x00000208, 0x00100208,
+ 0x04000000, 0x04100000, 0x04000008, 0x04100008,
+ 0x04000200, 0x04100200, 0x04000208, 0x04100208,
+ 0x04000000, 0x04100000, 0x04000008, 0x04100008,
+ 0x04000200, 0x04100200, 0x04000208, 0x04100208,
+ 0x00002000, 0x00102000, 0x00002008, 0x00102008,
+ 0x00002200, 0x00102200, 0x00002208, 0x00102208,
+ 0x00002000, 0x00102000, 0x00002008, 0x00102008,
+ 0x00002200, 0x00102200, 0x00002208, 0x00102208,
+ 0x04002000, 0x04102000, 0x04002008, 0x04102008,
+ 0x04002200, 0x04102200, 0x04002208, 0x04102208,
+ 0x04002000, 0x04102000, 0x04002008, 0x04102008,
+ 0x04002200, 0x04102200, 0x04002208, 0x04102208,
+ 0x00000000, 0x00100000, 0x00000008, 0x00100008,
+ 0x00000200, 0x00100200, 0x00000208, 0x00100208,
+ 0x00000000, 0x00100000, 0x00000008, 0x00100008,
+ 0x00000200, 0x00100200, 0x00000208, 0x00100208,
+ 0x04000000, 0x04100000, 0x04000008, 0x04100008,
+ 0x04000200, 0x04100200, 0x04000208, 0x04100208,
+ 0x04000000, 0x04100000, 0x04000008, 0x04100008,
+ 0x04000200, 0x04100200, 0x04000208, 0x04100208,
+ 0x00002000, 0x00102000, 0x00002008, 0x00102008,
+ 0x00002200, 0x00102200, 0x00002208, 0x00102208,
+ 0x00002000, 0x00102000, 0x00002008, 0x00102008,
+ 0x00002200, 0x00102200, 0x00002208, 0x00102208,
+ 0x04002000, 0x04102000, 0x04002008, 0x04102008,
+ 0x04002200, 0x04102200, 0x04002208, 0x04102208,
+ 0x04002000, 0x04102000, 0x04002008, 0x04102008,
+ 0x04002200, 0x04102200, 0x04002208, 0x04102208,
+ 0x00020000, 0x00120000, 0x00020008, 0x00120008,
+ 0x00020200, 0x00120200, 0x00020208, 0x00120208,
+ 0x00020000, 0x00120000, 0x00020008, 0x00120008,
+ 0x00020200, 0x00120200, 0x00020208, 0x00120208,
+ 0x04020000, 0x04120000, 0x04020008, 0x04120008,
+ 0x04020200, 0x04120200, 0x04020208, 0x04120208,
+ 0x04020000, 0x04120000, 0x04020008, 0x04120008,
+ 0x04020200, 0x04120200, 0x04020208, 0x04120208,
+ 0x00022000, 0x00122000, 0x00022008, 0x00122008,
+ 0x00022200, 0x00122200, 0x00022208, 0x00122208,
+ 0x00022000, 0x00122000, 0x00022008, 0x00122008,
+ 0x00022200, 0x00122200, 0x00022208, 0x00122208,
+ 0x04022000, 0x04122000, 0x04022008, 0x04122008,
+ 0x04022200, 0x04122200, 0x04022208, 0x04122208,
+ 0x04022000, 0x04122000, 0x04022008, 0x04122008,
+ 0x04022200, 0x04122200, 0x04022208, 0x04122208,
+ 0x00020000, 0x00120000, 0x00020008, 0x00120008,
+ 0x00020200, 0x00120200, 0x00020208, 0x00120208,
+ 0x00020000, 0x00120000, 0x00020008, 0x00120008,
+ 0x00020200, 0x00120200, 0x00020208, 0x00120208,
+ 0x04020000, 0x04120000, 0x04020008, 0x04120008,
+ 0x04020200, 0x04120200, 0x04020208, 0x04120208,
+ 0x04020000, 0x04120000, 0x04020008, 0x04120008,
+ 0x04020200, 0x04120200, 0x04020208, 0x04120208,
+ 0x00022000, 0x00122000, 0x00022008, 0x00122008,
+ 0x00022200, 0x00122200, 0x00022208, 0x00122208,
+ 0x00022000, 0x00122000, 0x00022008, 0x00122008,
+ 0x00022200, 0x00122200, 0x00022208, 0x00122208,
+ 0x04022000, 0x04122000, 0x04022008, 0x04122008,
+ 0x04022200, 0x04122200, 0x04022208, 0x04122208,
+ 0x04022000, 0x04122000, 0x04022008, 0x04122008,
+ 0x04022200, 0x04122200, 0x04022208, 0x04122208
+ );
+ static $pc2mapd1 = array(
+ 0x00000000, 0x00000001, 0x08000000, 0x08000001,
+ 0x00200000, 0x00200001, 0x08200000, 0x08200001,
+ 0x00000002, 0x00000003, 0x08000002, 0x08000003,
+ 0x00200002, 0x00200003, 0x08200002, 0x08200003
+ );
+ static $pc2mapd2 = array(
+ 0x00000000, 0x00100000, 0x00000800, 0x00100800,
+ 0x00000000, 0x00100000, 0x00000800, 0x00100800,
+ 0x04000000, 0x04100000, 0x04000800, 0x04100800,
+ 0x04000000, 0x04100000, 0x04000800, 0x04100800,
+ 0x00000004, 0x00100004, 0x00000804, 0x00100804,
+ 0x00000004, 0x00100004, 0x00000804, 0x00100804,
+ 0x04000004, 0x04100004, 0x04000804, 0x04100804,
+ 0x04000004, 0x04100004, 0x04000804, 0x04100804,
+ 0x00000000, 0x00100000, 0x00000800, 0x00100800,
+ 0x00000000, 0x00100000, 0x00000800, 0x00100800,
+ 0x04000000, 0x04100000, 0x04000800, 0x04100800,
+ 0x04000000, 0x04100000, 0x04000800, 0x04100800,
+ 0x00000004, 0x00100004, 0x00000804, 0x00100804,
+ 0x00000004, 0x00100004, 0x00000804, 0x00100804,
+ 0x04000004, 0x04100004, 0x04000804, 0x04100804,
+ 0x04000004, 0x04100004, 0x04000804, 0x04100804,
+ 0x00000200, 0x00100200, 0x00000A00, 0x00100A00,
+ 0x00000200, 0x00100200, 0x00000A00, 0x00100A00,
+ 0x04000200, 0x04100200, 0x04000A00, 0x04100A00,
+ 0x04000200, 0x04100200, 0x04000A00, 0x04100A00,
+ 0x00000204, 0x00100204, 0x00000A04, 0x00100A04,
+ 0x00000204, 0x00100204, 0x00000A04, 0x00100A04,
+ 0x04000204, 0x04100204, 0x04000A04, 0x04100A04,
+ 0x04000204, 0x04100204, 0x04000A04, 0x04100A04,
+ 0x00000200, 0x00100200, 0x00000A00, 0x00100A00,
+ 0x00000200, 0x00100200, 0x00000A00, 0x00100A00,
+ 0x04000200, 0x04100200, 0x04000A00, 0x04100A00,
+ 0x04000200, 0x04100200, 0x04000A00, 0x04100A00,
+ 0x00000204, 0x00100204, 0x00000A04, 0x00100A04,
+ 0x00000204, 0x00100204, 0x00000A04, 0x00100A04,
+ 0x04000204, 0x04100204, 0x04000A04, 0x04100A04,
+ 0x04000204, 0x04100204, 0x04000A04, 0x04100A04,
+ 0x00020000, 0x00120000, 0x00020800, 0x00120800,
+ 0x00020000, 0x00120000, 0x00020800, 0x00120800,
+ 0x04020000, 0x04120000, 0x04020800, 0x04120800,
+ 0x04020000, 0x04120000, 0x04020800, 0x04120800,
+ 0x00020004, 0x00120004, 0x00020804, 0x00120804,
+ 0x00020004, 0x00120004, 0x00020804, 0x00120804,
+ 0x04020004, 0x04120004, 0x04020804, 0x04120804,
+ 0x04020004, 0x04120004, 0x04020804, 0x04120804,
+ 0x00020000, 0x00120000, 0x00020800, 0x00120800,
+ 0x00020000, 0x00120000, 0x00020800, 0x00120800,
+ 0x04020000, 0x04120000, 0x04020800, 0x04120800,
+ 0x04020000, 0x04120000, 0x04020800, 0x04120800,
+ 0x00020004, 0x00120004, 0x00020804, 0x00120804,
+ 0x00020004, 0x00120004, 0x00020804, 0x00120804,
+ 0x04020004, 0x04120004, 0x04020804, 0x04120804,
+ 0x04020004, 0x04120004, 0x04020804, 0x04120804,
+ 0x00020200, 0x00120200, 0x00020A00, 0x00120A00,
+ 0x00020200, 0x00120200, 0x00020A00, 0x00120A00,
+ 0x04020200, 0x04120200, 0x04020A00, 0x04120A00,
+ 0x04020200, 0x04120200, 0x04020A00, 0x04120A00,
+ 0x00020204, 0x00120204, 0x00020A04, 0x00120A04,
+ 0x00020204, 0x00120204, 0x00020A04, 0x00120A04,
+ 0x04020204, 0x04120204, 0x04020A04, 0x04120A04,
+ 0x04020204, 0x04120204, 0x04020A04, 0x04120A04,
+ 0x00020200, 0x00120200, 0x00020A00, 0x00120A00,
+ 0x00020200, 0x00120200, 0x00020A00, 0x00120A00,
+ 0x04020200, 0x04120200, 0x04020A00, 0x04120A00,
+ 0x04020200, 0x04120200, 0x04020A00, 0x04120A00,
+ 0x00020204, 0x00120204, 0x00020A04, 0x00120A04,
+ 0x00020204, 0x00120204, 0x00020A04, 0x00120A04,
+ 0x04020204, 0x04120204, 0x04020A04, 0x04120A04,
+ 0x04020204, 0x04120204, 0x04020A04, 0x04120A04
+ );
+ static $pc2mapd3 = array(
+ 0x00000000, 0x00010000, 0x02000000, 0x02010000,
+ 0x00000020, 0x00010020, 0x02000020, 0x02010020,
+ 0x00040000, 0x00050000, 0x02040000, 0x02050000,
+ 0x00040020, 0x00050020, 0x02040020, 0x02050020,
+ 0x00002000, 0x00012000, 0x02002000, 0x02012000,
+ 0x00002020, 0x00012020, 0x02002020, 0x02012020,
+ 0x00042000, 0x00052000, 0x02042000, 0x02052000,
+ 0x00042020, 0x00052020, 0x02042020, 0x02052020,
+ 0x00000000, 0x00010000, 0x02000000, 0x02010000,
+ 0x00000020, 0x00010020, 0x02000020, 0x02010020,
+ 0x00040000, 0x00050000, 0x02040000, 0x02050000,
+ 0x00040020, 0x00050020, 0x02040020, 0x02050020,
+ 0x00002000, 0x00012000, 0x02002000, 0x02012000,
+ 0x00002020, 0x00012020, 0x02002020, 0x02012020,
+ 0x00042000, 0x00052000, 0x02042000, 0x02052000,
+ 0x00042020, 0x00052020, 0x02042020, 0x02052020,
+ 0x00000010, 0x00010010, 0x02000010, 0x02010010,
+ 0x00000030, 0x00010030, 0x02000030, 0x02010030,
+ 0x00040010, 0x00050010, 0x02040010, 0x02050010,
+ 0x00040030, 0x00050030, 0x02040030, 0x02050030,
+ 0x00002010, 0x00012010, 0x02002010, 0x02012010,
+ 0x00002030, 0x00012030, 0x02002030, 0x02012030,
+ 0x00042010, 0x00052010, 0x02042010, 0x02052010,
+ 0x00042030, 0x00052030, 0x02042030, 0x02052030,
+ 0x00000010, 0x00010010, 0x02000010, 0x02010010,
+ 0x00000030, 0x00010030, 0x02000030, 0x02010030,
+ 0x00040010, 0x00050010, 0x02040010, 0x02050010,
+ 0x00040030, 0x00050030, 0x02040030, 0x02050030,
+ 0x00002010, 0x00012010, 0x02002010, 0x02012010,
+ 0x00002030, 0x00012030, 0x02002030, 0x02012030,
+ 0x00042010, 0x00052010, 0x02042010, 0x02052010,
+ 0x00042030, 0x00052030, 0x02042030, 0x02052030,
+ 0x20000000, 0x20010000, 0x22000000, 0x22010000,
+ 0x20000020, 0x20010020, 0x22000020, 0x22010020,
+ 0x20040000, 0x20050000, 0x22040000, 0x22050000,
+ 0x20040020, 0x20050020, 0x22040020, 0x22050020,
+ 0x20002000, 0x20012000, 0x22002000, 0x22012000,
+ 0x20002020, 0x20012020, 0x22002020, 0x22012020,
+ 0x20042000, 0x20052000, 0x22042000, 0x22052000,
+ 0x20042020, 0x20052020, 0x22042020, 0x22052020,
+ 0x20000000, 0x20010000, 0x22000000, 0x22010000,
+ 0x20000020, 0x20010020, 0x22000020, 0x22010020,
+ 0x20040000, 0x20050000, 0x22040000, 0x22050000,
+ 0x20040020, 0x20050020, 0x22040020, 0x22050020,
+ 0x20002000, 0x20012000, 0x22002000, 0x22012000,
+ 0x20002020, 0x20012020, 0x22002020, 0x22012020,
+ 0x20042000, 0x20052000, 0x22042000, 0x22052000,
+ 0x20042020, 0x20052020, 0x22042020, 0x22052020,
+ 0x20000010, 0x20010010, 0x22000010, 0x22010010,
+ 0x20000030, 0x20010030, 0x22000030, 0x22010030,
+ 0x20040010, 0x20050010, 0x22040010, 0x22050010,
+ 0x20040030, 0x20050030, 0x22040030, 0x22050030,
+ 0x20002010, 0x20012010, 0x22002010, 0x22012010,
+ 0x20002030, 0x20012030, 0x22002030, 0x22012030,
+ 0x20042010, 0x20052010, 0x22042010, 0x22052010,
+ 0x20042030, 0x20052030, 0x22042030, 0x22052030,
+ 0x20000010, 0x20010010, 0x22000010, 0x22010010,
+ 0x20000030, 0x20010030, 0x22000030, 0x22010030,
+ 0x20040010, 0x20050010, 0x22040010, 0x22050010,
+ 0x20040030, 0x20050030, 0x22040030, 0x22050030,
+ 0x20002010, 0x20012010, 0x22002010, 0x22012010,
+ 0x20002030, 0x20012030, 0x22002030, 0x22012030,
+ 0x20042010, 0x20052010, 0x22042010, 0x22052010,
+ 0x20042030, 0x20052030, 0x22042030, 0x22052030
+ );
+ static $pc2mapd4 = array(
+ 0x00000000, 0x00000400, 0x01000000, 0x01000400,
+ 0x00000000, 0x00000400, 0x01000000, 0x01000400,
+ 0x00000100, 0x00000500, 0x01000100, 0x01000500,
+ 0x00000100, 0x00000500, 0x01000100, 0x01000500,
+ 0x10000000, 0x10000400, 0x11000000, 0x11000400,
+ 0x10000000, 0x10000400, 0x11000000, 0x11000400,
+ 0x10000100, 0x10000500, 0x11000100, 0x11000500,
+ 0x10000100, 0x10000500, 0x11000100, 0x11000500,
+ 0x00080000, 0x00080400, 0x01080000, 0x01080400,
+ 0x00080000, 0x00080400, 0x01080000, 0x01080400,
+ 0x00080100, 0x00080500, 0x01080100, 0x01080500,
+ 0x00080100, 0x00080500, 0x01080100, 0x01080500,
+ 0x10080000, 0x10080400, 0x11080000, 0x11080400,
+ 0x10080000, 0x10080400, 0x11080000, 0x11080400,
+ 0x10080100, 0x10080500, 0x11080100, 0x11080500,
+ 0x10080100, 0x10080500, 0x11080100, 0x11080500,
+ 0x00000008, 0x00000408, 0x01000008, 0x01000408,
+ 0x00000008, 0x00000408, 0x01000008, 0x01000408,
+ 0x00000108, 0x00000508, 0x01000108, 0x01000508,
+ 0x00000108, 0x00000508, 0x01000108, 0x01000508,
+ 0x10000008, 0x10000408, 0x11000008, 0x11000408,
+ 0x10000008, 0x10000408, 0x11000008, 0x11000408,
+ 0x10000108, 0x10000508, 0x11000108, 0x11000508,
+ 0x10000108, 0x10000508, 0x11000108, 0x11000508,
+ 0x00080008, 0x00080408, 0x01080008, 0x01080408,
+ 0x00080008, 0x00080408, 0x01080008, 0x01080408,
+ 0x00080108, 0x00080508, 0x01080108, 0x01080508,
+ 0x00080108, 0x00080508, 0x01080108, 0x01080508,
+ 0x10080008, 0x10080408, 0x11080008, 0x11080408,
+ 0x10080008, 0x10080408, 0x11080008, 0x11080408,
+ 0x10080108, 0x10080508, 0x11080108, 0x11080508,
+ 0x10080108, 0x10080508, 0x11080108, 0x11080508,
+ 0x00001000, 0x00001400, 0x01001000, 0x01001400,
+ 0x00001000, 0x00001400, 0x01001000, 0x01001400,
+ 0x00001100, 0x00001500, 0x01001100, 0x01001500,
+ 0x00001100, 0x00001500, 0x01001100, 0x01001500,
+ 0x10001000, 0x10001400, 0x11001000, 0x11001400,
+ 0x10001000, 0x10001400, 0x11001000, 0x11001400,
+ 0x10001100, 0x10001500, 0x11001100, 0x11001500,
+ 0x10001100, 0x10001500, 0x11001100, 0x11001500,
+ 0x00081000, 0x00081400, 0x01081000, 0x01081400,
+ 0x00081000, 0x00081400, 0x01081000, 0x01081400,
+ 0x00081100, 0x00081500, 0x01081100, 0x01081500,
+ 0x00081100, 0x00081500, 0x01081100, 0x01081500,
+ 0x10081000, 0x10081400, 0x11081000, 0x11081400,
+ 0x10081000, 0x10081400, 0x11081000, 0x11081400,
+ 0x10081100, 0x10081500, 0x11081100, 0x11081500,
+ 0x10081100, 0x10081500, 0x11081100, 0x11081500,
+ 0x00001008, 0x00001408, 0x01001008, 0x01001408,
+ 0x00001008, 0x00001408, 0x01001008, 0x01001408,
+ 0x00001108, 0x00001508, 0x01001108, 0x01001508,
+ 0x00001108, 0x00001508, 0x01001108, 0x01001508,
+ 0x10001008, 0x10001408, 0x11001008, 0x11001408,
+ 0x10001008, 0x10001408, 0x11001008, 0x11001408,
+ 0x10001108, 0x10001508, 0x11001108, 0x11001508,
+ 0x10001108, 0x10001508, 0x11001108, 0x11001508,
+ 0x00081008, 0x00081408, 0x01081008, 0x01081408,
+ 0x00081008, 0x00081408, 0x01081008, 0x01081408,
+ 0x00081108, 0x00081508, 0x01081108, 0x01081508,
+ 0x00081108, 0x00081508, 0x01081108, 0x01081508,
+ 0x10081008, 0x10081408, 0x11081008, 0x11081408,
+ 0x10081008, 0x10081408, 0x11081008, 0x11081408,
+ 0x10081108, 0x10081508, 0x11081108, 0x11081508,
+ 0x10081108, 0x10081508, 0x11081108, 0x11081508
+ );
+
+ $keys = array();
+ for ($des_round = 0; $des_round < $this->des_rounds; ++$des_round) {
+ // pad the key and remove extra characters as appropriate.
+ $key = str_pad(substr($this->key, $des_round * 8, 8), 8, "\0");
+
+ // Perform the PC/1 transformation and compute C and D.
+ $t = unpack('Nl/Nr', $key);
+ list($l, $r) = array($t['l'], $t['r']);
+ $key = ($this->shuffle[$pc1map[ $r & 0xFF]] & "\x80\x80\x80\x80\x80\x80\x80\x00") |
+ ($this->shuffle[$pc1map[($r >> 8) & 0xFF]] & "\x40\x40\x40\x40\x40\x40\x40\x00") |
+ ($this->shuffle[$pc1map[($r >> 16) & 0xFF]] & "\x20\x20\x20\x20\x20\x20\x20\x00") |
+ ($this->shuffle[$pc1map[($r >> 24) & 0xFF]] & "\x10\x10\x10\x10\x10\x10\x10\x00") |
+ ($this->shuffle[$pc1map[ $l & 0xFF]] & "\x08\x08\x08\x08\x08\x08\x08\x00") |
+ ($this->shuffle[$pc1map[($l >> 8) & 0xFF]] & "\x04\x04\x04\x04\x04\x04\x04\x00") |
+ ($this->shuffle[$pc1map[($l >> 16) & 0xFF]] & "\x02\x02\x02\x02\x02\x02\x02\x00") |
+ ($this->shuffle[$pc1map[($l >> 24) & 0xFF]] & "\x01\x01\x01\x01\x01\x01\x01\x00");
+ $key = unpack('Nc/Nd', $key);
+ $c = ( $key['c'] >> 4) & 0x0FFFFFFF;
+ $d = (($key['d'] >> 4) & 0x0FFFFFF0) | ($key['c'] & 0x0F);
+
+ $keys[$des_round] = array(
+ self::ENCRYPT => array(),
+ self::DECRYPT => array_fill(0, 32, 0)
+ );
+ for ($i = 0, $ki = 31; $i < 16; ++$i, $ki-= 2) {
+ $c <<= $shifts[$i];
+ $c = ($c | ($c >> 28)) & 0x0FFFFFFF;
+ $d <<= $shifts[$i];
+ $d = ($d | ($d >> 28)) & 0x0FFFFFFF;
+
+ // Perform the PC-2 transformation.
+ $cp = $pc2mapc1[ $c >> 24 ] | $pc2mapc2[($c >> 16) & 0xFF] |
+ $pc2mapc3[($c >> 8) & 0xFF] | $pc2mapc4[ $c & 0xFF];
+ $dp = $pc2mapd1[ $d >> 24 ] | $pc2mapd2[($d >> 16) & 0xFF] |
+ $pc2mapd3[($d >> 8) & 0xFF] | $pc2mapd4[ $d & 0xFF];
+
+ // Reorder: odd bytes/even bytes. Push the result in key schedule.
+ $val1 = ( $cp & 0xFF000000) | (($cp << 8) & 0x00FF0000) |
+ (($dp >> 16) & 0x0000FF00) | (($dp >> 8) & 0x000000FF);
+ $val2 = (($cp << 8) & 0xFF000000) | (($cp << 16) & 0x00FF0000) |
+ (($dp >> 8) & 0x0000FF00) | ( $dp & 0x000000FF);
+ $keys[$des_round][self::ENCRYPT][ ] = $val1;
+ $keys[$des_round][self::DECRYPT][$ki - 1] = $val1;
+ $keys[$des_round][self::ENCRYPT][ ] = $val2;
+ $keys[$des_round][self::DECRYPT][$ki ] = $val2;
+ }
+ }
+
+ switch ($this->des_rounds) {
+ case 3: // 3DES keys
+ $this->keys = array(
+ self::ENCRYPT => array_merge(
+ $keys[0][self::ENCRYPT],
+ $keys[1][self::DECRYPT],
+ $keys[2][self::ENCRYPT]
+ ),
+ self::DECRYPT => array_merge(
+ $keys[2][self::DECRYPT],
+ $keys[1][self::ENCRYPT],
+ $keys[0][self::DECRYPT]
+ )
+ );
+ break;
+ // case 1: // DES keys
+ default:
+ $this->keys = array(
+ self::ENCRYPT => $keys[0][self::ENCRYPT],
+ self::DECRYPT => $keys[0][self::DECRYPT]
+ );
+ }
+ }
+
+ /**
+ * Setup the performance-optimized function for de/encrypt()
+ *
+ * @see \phpseclib\Crypt\Base::_setupInlineCrypt()
+ * @access private
+ */
+ function _setupInlineCrypt()
+ {
+ $lambda_functions =& self::_getLambdaFunctions();
+
+ // Engine configuration for:
+ // - DES ($des_rounds == 1) or
+ // - 3DES ($des_rounds == 3)
+ $des_rounds = $this->des_rounds;
+
+ // We create max. 10 hi-optimized code for memory reason. Means: For each $key one ultra fast inline-crypt function.
+ // (Currently, for DES, one generated $lambda_function cost on php5.5@32bit ~135kb unfreeable mem and ~230kb on php5.5@64bit)
+ // (Currently, for TripleDES, one generated $lambda_function cost on php5.5@32bit ~240kb unfreeable mem and ~340kb on php5.5@64bit)
+ // After that, we'll still create very fast optimized code but not the hi-ultimative code, for each $mode one
+ $gen_hi_opt_code = (bool)( count($lambda_functions) < 10 );
+
+ // Generation of a unique hash for our generated code
+ $code_hash = "Crypt_DES, $des_rounds, {$this->mode}";
+ if ($gen_hi_opt_code) {
+ // For hi-optimized code, we create for each combination of
+ // $mode, $des_rounds and $this->key its own encrypt/decrypt function.
+ // After max 10 hi-optimized functions, we create generic
+ // (still very fast.. but not ultra) functions for each $mode/$des_rounds
+ // Currently 2 * 5 generic functions will be then max. possible.
+ $code_hash = str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key);
+ }
+
+ // Is there a re-usable $lambda_functions in there? If not, we have to create it.
+ if (!isset($lambda_functions[$code_hash])) {
+ // Init code for both, encrypt and decrypt.
+ $init_crypt = 'static $sbox1, $sbox2, $sbox3, $sbox4, $sbox5, $sbox6, $sbox7, $sbox8, $shuffleip, $shuffleinvip;
+ if (!$sbox1) {
+ $sbox1 = array_map("intval", $self->sbox1);
+ $sbox2 = array_map("intval", $self->sbox2);
+ $sbox3 = array_map("intval", $self->sbox3);
+ $sbox4 = array_map("intval", $self->sbox4);
+ $sbox5 = array_map("intval", $self->sbox5);
+ $sbox6 = array_map("intval", $self->sbox6);
+ $sbox7 = array_map("intval", $self->sbox7);
+ $sbox8 = array_map("intval", $self->sbox8);'
+ /* Merge $shuffle with $[inv]ipmap */ . '
+ for ($i = 0; $i < 256; ++$i) {
+ $shuffleip[] = $self->shuffle[$self->ipmap[$i]];
+ $shuffleinvip[] = $self->shuffle[$self->invipmap[$i]];
+ }
+ }
+ ';
+
+ switch (true) {
+ case $gen_hi_opt_code:
+ // In Hi-optimized code mode, we use our [3]DES key schedule as hardcoded integers.
+ // No futher initialisation of the $keys schedule is necessary.
+ // That is the extra performance boost.
+ $k = array(
+ self::ENCRYPT => $this->keys[self::ENCRYPT],
+ self::DECRYPT => $this->keys[self::DECRYPT]
+ );
+ $init_encrypt = '';
+ $init_decrypt = '';
+ break;
+ default:
+ // In generic optimized code mode, we have to use, as the best compromise [currently],
+ // our key schedule as $ke/$kd arrays. (with hardcoded indexes...)
+ $k = array(
+ self::ENCRYPT => array(),
+ self::DECRYPT => array()
+ );
+ for ($i = 0, $c = count($this->keys[self::ENCRYPT]); $i < $c; ++$i) {
+ $k[self::ENCRYPT][$i] = '$ke[' . $i . ']';
+ $k[self::DECRYPT][$i] = '$kd[' . $i . ']';
+ }
+ $init_encrypt = '$ke = $self->keys[self::ENCRYPT];';
+ $init_decrypt = '$kd = $self->keys[self::DECRYPT];';
+ break;
+ }
+
+ // Creating code for en- and decryption.
+ $crypt_block = array();
+ foreach (array(self::ENCRYPT, self::DECRYPT) as $c) {
+ /* Do the initial IP permutation. */
+ $crypt_block[$c] = '
+ $in = unpack("N*", $in);
+ $l = $in[1];
+ $r = $in[2];
+ $in = unpack("N*",
+ ($shuffleip[ $r & 0xFF] & "\x80\x80\x80\x80\x80\x80\x80\x80") |
+ ($shuffleip[($r >> 8) & 0xFF] & "\x40\x40\x40\x40\x40\x40\x40\x40") |
+ ($shuffleip[($r >> 16) & 0xFF] & "\x20\x20\x20\x20\x20\x20\x20\x20") |
+ ($shuffleip[($r >> 24) & 0xFF] & "\x10\x10\x10\x10\x10\x10\x10\x10") |
+ ($shuffleip[ $l & 0xFF] & "\x08\x08\x08\x08\x08\x08\x08\x08") |
+ ($shuffleip[($l >> 8) & 0xFF] & "\x04\x04\x04\x04\x04\x04\x04\x04") |
+ ($shuffleip[($l >> 16) & 0xFF] & "\x02\x02\x02\x02\x02\x02\x02\x02") |
+ ($shuffleip[($l >> 24) & 0xFF] & "\x01\x01\x01\x01\x01\x01\x01\x01")
+ );
+ ' . /* Extract L0 and R0 */ '
+ $l = $in[1];
+ $r = $in[2];
+ ';
+
+ $l = '$l';
+ $r = '$r';
+
+ // Perform DES or 3DES.
+ for ($ki = -1, $des_round = 0; $des_round < $des_rounds; ++$des_round) {
+ // Perform the 16 steps.
+ for ($i = 0; $i < 16; ++$i) {
+ // start of "the Feistel (F) function" - see the following URL:
+ // http://en.wikipedia.org/wiki/Image:Data_Encryption_Standard_InfoBox_Diagram.png
+ // Merge key schedule.
+ $crypt_block[$c].= '
+ $b1 = ((' . $r . ' >> 3) & 0x1FFFFFFF) ^ (' . $r . ' << 29) ^ ' . $k[$c][++$ki] . ';
+ $b2 = ((' . $r . ' >> 31) & 0x00000001) ^ (' . $r . ' << 1) ^ ' . $k[$c][++$ki] . ';' .
+ /* S-box indexing. */
+ $l . ' = $sbox1[($b1 >> 24) & 0x3F] ^ $sbox2[($b2 >> 24) & 0x3F] ^
+ $sbox3[($b1 >> 16) & 0x3F] ^ $sbox4[($b2 >> 16) & 0x3F] ^
+ $sbox5[($b1 >> 8) & 0x3F] ^ $sbox6[($b2 >> 8) & 0x3F] ^
+ $sbox7[ $b1 & 0x3F] ^ $sbox8[ $b2 & 0x3F] ^ ' . $l . ';
+ ';
+ // end of "the Feistel (F) function"
+
+ // swap L & R
+ list($l, $r) = array($r, $l);
+ }
+ list($l, $r) = array($r, $l);
+ }
+
+ // Perform the inverse IP permutation.
+ $crypt_block[$c].= '$in =
+ ($shuffleinvip[($l >> 24) & 0xFF] & "\x80\x80\x80\x80\x80\x80\x80\x80") |
+ ($shuffleinvip[($r >> 24) & 0xFF] & "\x40\x40\x40\x40\x40\x40\x40\x40") |
+ ($shuffleinvip[($l >> 16) & 0xFF] & "\x20\x20\x20\x20\x20\x20\x20\x20") |
+ ($shuffleinvip[($r >> 16) & 0xFF] & "\x10\x10\x10\x10\x10\x10\x10\x10") |
+ ($shuffleinvip[($l >> 8) & 0xFF] & "\x08\x08\x08\x08\x08\x08\x08\x08") |
+ ($shuffleinvip[($r >> 8) & 0xFF] & "\x04\x04\x04\x04\x04\x04\x04\x04") |
+ ($shuffleinvip[ $l & 0xFF] & "\x02\x02\x02\x02\x02\x02\x02\x02") |
+ ($shuffleinvip[ $r & 0xFF] & "\x01\x01\x01\x01\x01\x01\x01\x01");
+ ';
+ }
+
+ // Creates the inline-crypt function
+ $lambda_functions[$code_hash] = $this->_createInlineCryptFunction(
+ array(
+ 'init_crypt' => $init_crypt,
+ 'init_encrypt' => $init_encrypt,
+ 'init_decrypt' => $init_decrypt,
+ 'encrypt_block' => $crypt_block[self::ENCRYPT],
+ 'decrypt_block' => $crypt_block[self::DECRYPT]
+ )
+ );
+ }
+
+ // Set the inline-crypt function as callback in: $this->inline_crypt
+ $this->inline_crypt = $lambda_functions[$code_hash];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Hash.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Hash.php
new file mode 100644
index 00000000..07665a16
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Hash.php
@@ -0,0 +1,824 @@
+<?php
+
+/**
+ * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
+ *
+ * Uses hash() or mhash() if available and an internal implementation, otherwise. Currently supports the following:
+ *
+ * md2, md5, md5-96, sha1, sha1-96, sha256, sha256-96, sha384, and sha512, sha512-96
+ *
+ * If {@link self::setKey() setKey()} is called, {@link self::hash() hash()} will return the HMAC as opposed to
+ * the hash. If no valid algorithm is provided, sha1 will be used.
+ *
+ * PHP version 5
+ *
+ * {@internal The variable names are the same as those in
+ * {@link http://tools.ietf.org/html/rfc2104#section-2 RFC2104}.}}
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $hash = new \phpseclib\Crypt\Hash('sha1');
+ *
+ * $hash->setKey('abcdefg');
+ *
+ * echo base64_encode($hash->hash('abcdefg'));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package Hash
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+use phpseclib\Math\BigInteger;
+
+/**
+ * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
+ *
+ * @package Hash
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class Hash
+{
+ /**#@+
+ * @access private
+ * @see \phpseclib\Crypt\Hash::__construct()
+ */
+ /**
+ * Toggles the internal implementation
+ */
+ const MODE_INTERNAL = 1;
+ /**
+ * Toggles the mhash() implementation, which has been deprecated on PHP 5.3.0+.
+ */
+ const MODE_MHASH = 2;
+ /**
+ * Toggles the hash() implementation, which works on PHP 5.1.2+.
+ */
+ const MODE_HASH = 3;
+ /**#@-*/
+
+ /**
+ * Hash Parameter
+ *
+ * @see self::setHash()
+ * @var int
+ * @access private
+ */
+ var $hashParam;
+
+ /**
+ * Byte-length of compression blocks / key (Internal HMAC)
+ *
+ * @see self::setAlgorithm()
+ * @var int
+ * @access private
+ */
+ var $b;
+
+ /**
+ * Byte-length of hash output (Internal HMAC)
+ *
+ * @see self::setHash()
+ * @var int
+ * @access private
+ */
+ var $l = false;
+
+ /**
+ * Hash Algorithm
+ *
+ * @see self::setHash()
+ * @var string
+ * @access private
+ */
+ var $hash;
+
+ /**
+ * Key
+ *
+ * @see self::setKey()
+ * @var string
+ * @access private
+ */
+ var $key = false;
+
+ /**
+ * Outer XOR (Internal HMAC)
+ *
+ * @see self::setKey()
+ * @var string
+ * @access private
+ */
+ var $opad;
+
+ /**
+ * Inner XOR (Internal HMAC)
+ *
+ * @see self::setKey()
+ * @var string
+ * @access private
+ */
+ var $ipad;
+
+ /**
+ * Default Constructor.
+ *
+ * @param string $hash
+ * @return \phpseclib\Crypt\Hash
+ * @access public
+ */
+ function __construct($hash = 'sha1')
+ {
+ if (!defined('CRYPT_HASH_MODE')) {
+ switch (true) {
+ case extension_loaded('hash'):
+ define('CRYPT_HASH_MODE', self::MODE_HASH);
+ break;
+ case extension_loaded('mhash'):
+ define('CRYPT_HASH_MODE', self::MODE_MHASH);
+ break;
+ default:
+ define('CRYPT_HASH_MODE', self::MODE_INTERNAL);
+ }
+ }
+
+ $this->setHash($hash);
+ }
+
+ /**
+ * Sets the key for HMACs
+ *
+ * Keys can be of any length.
+ *
+ * @access public
+ * @param string $key
+ */
+ function setKey($key = false)
+ {
+ $this->key = $key;
+ }
+
+ /**
+ * Gets the hash function.
+ *
+ * As set by the constructor or by the setHash() method.
+ *
+ * @access public
+ * @return string
+ */
+ function getHash()
+ {
+ return $this->hashParam;
+ }
+
+ /**
+ * Sets the hash function.
+ *
+ * @access public
+ * @param string $hash
+ */
+ function setHash($hash)
+ {
+ $this->hashParam = $hash = strtolower($hash);
+ switch ($hash) {
+ case 'md5-96':
+ case 'sha1-96':
+ case 'sha256-96':
+ case 'sha512-96':
+ $hash = substr($hash, 0, -3);
+ $this->l = 12; // 96 / 8 = 12
+ break;
+ case 'md2':
+ case 'md5':
+ $this->l = 16;
+ break;
+ case 'sha1':
+ $this->l = 20;
+ break;
+ case 'sha256':
+ $this->l = 32;
+ break;
+ case 'sha384':
+ $this->l = 48;
+ break;
+ case 'sha512':
+ $this->l = 64;
+ }
+
+ switch ($hash) {
+ case 'md2':
+ $mode = CRYPT_HASH_MODE == self::MODE_HASH && in_array('md2', hash_algos()) ?
+ self::MODE_HASH : self::MODE_INTERNAL;
+ break;
+ case 'sha384':
+ case 'sha512':
+ $mode = CRYPT_HASH_MODE == self::MODE_MHASH ? self::MODE_INTERNAL : CRYPT_HASH_MODE;
+ break;
+ default:
+ $mode = CRYPT_HASH_MODE;
+ }
+
+ switch ($mode) {
+ case self::MODE_MHASH:
+ switch ($hash) {
+ case 'md5':
+ $this->hash = MHASH_MD5;
+ break;
+ case 'sha256':
+ $this->hash = MHASH_SHA256;
+ break;
+ case 'sha1':
+ default:
+ $this->hash = MHASH_SHA1;
+ }
+ return;
+ case self::MODE_HASH:
+ switch ($hash) {
+ case 'md5':
+ $this->hash = 'md5';
+ return;
+ case 'md2':
+ case 'sha256':
+ case 'sha384':
+ case 'sha512':
+ $this->hash = $hash;
+ return;
+ case 'sha1':
+ default:
+ $this->hash = 'sha1';
+ }
+ return;
+ }
+
+ switch ($hash) {
+ case 'md2':
+ $this->b = 16;
+ $this->hash = array($this, '_md2');
+ break;
+ case 'md5':
+ $this->b = 64;
+ $this->hash = array($this, '_md5');
+ break;
+ case 'sha256':
+ $this->b = 64;
+ $this->hash = array($this, '_sha256');
+ break;
+ case 'sha384':
+ case 'sha512':
+ $this->b = 128;
+ $this->hash = array($this, '_sha512');
+ break;
+ case 'sha1':
+ default:
+ $this->b = 64;
+ $this->hash = array($this, '_sha1');
+ }
+
+ $this->ipad = str_repeat(chr(0x36), $this->b);
+ $this->opad = str_repeat(chr(0x5C), $this->b);
+ }
+
+ /**
+ * Compute the HMAC.
+ *
+ * @access public
+ * @param string $text
+ * @return string
+ */
+ function hash($text)
+ {
+ $mode = is_array($this->hash) ? self::MODE_INTERNAL : CRYPT_HASH_MODE;
+
+ if (!empty($this->key) || is_string($this->key)) {
+ switch ($mode) {
+ case self::MODE_MHASH:
+ $output = mhash($this->hash, $text, $this->key);
+ break;
+ case self::MODE_HASH:
+ $output = hash_hmac($this->hash, $text, $this->key, true);
+ break;
+ case self::MODE_INTERNAL:
+ /* "Applications that use keys longer than B bytes will first hash the key using H and then use the
+ resultant L byte string as the actual key to HMAC."
+
+ -- http://tools.ietf.org/html/rfc2104#section-2 */
+ $key = strlen($this->key) > $this->b ? call_user_func($this->hash, $this->key) : $this->key;
+
+ $key = str_pad($key, $this->b, chr(0)); // step 1
+ $temp = $this->ipad ^ $key; // step 2
+ $temp .= $text; // step 3
+ $temp = call_user_func($this->hash, $temp); // step 4
+ $output = $this->opad ^ $key; // step 5
+ $output.= $temp; // step 6
+ $output = call_user_func($this->hash, $output); // step 7
+ }
+ } else {
+ switch ($mode) {
+ case self::MODE_MHASH:
+ $output = mhash($this->hash, $text);
+ break;
+ case self::MODE_HASH:
+ $output = hash($this->hash, $text, true);
+ break;
+ case self::MODE_INTERNAL:
+ $output = call_user_func($this->hash, $text);
+ }
+ }
+
+ return substr($output, 0, $this->l);
+ }
+
+ /**
+ * Returns the hash length (in bytes)
+ *
+ * @access public
+ * @return int
+ */
+ function getLength()
+ {
+ return $this->l;
+ }
+
+ /**
+ * Wrapper for MD5
+ *
+ * @access private
+ * @param string $m
+ */
+ function _md5($m)
+ {
+ return pack('H*', md5($m));
+ }
+
+ /**
+ * Wrapper for SHA1
+ *
+ * @access private
+ * @param string $m
+ */
+ function _sha1($m)
+ {
+ return pack('H*', sha1($m));
+ }
+
+ /**
+ * Pure-PHP implementation of MD2
+ *
+ * See {@link http://tools.ietf.org/html/rfc1319 RFC1319}.
+ *
+ * @access private
+ * @param string $m
+ */
+ function _md2($m)
+ {
+ static $s = array(
+ 41, 46, 67, 201, 162, 216, 124, 1, 61, 54, 84, 161, 236, 240, 6,
+ 19, 98, 167, 5, 243, 192, 199, 115, 140, 152, 147, 43, 217, 188,
+ 76, 130, 202, 30, 155, 87, 60, 253, 212, 224, 22, 103, 66, 111, 24,
+ 138, 23, 229, 18, 190, 78, 196, 214, 218, 158, 222, 73, 160, 251,
+ 245, 142, 187, 47, 238, 122, 169, 104, 121, 145, 21, 178, 7, 63,
+ 148, 194, 16, 137, 11, 34, 95, 33, 128, 127, 93, 154, 90, 144, 50,
+ 39, 53, 62, 204, 231, 191, 247, 151, 3, 255, 25, 48, 179, 72, 165,
+ 181, 209, 215, 94, 146, 42, 172, 86, 170, 198, 79, 184, 56, 210,
+ 150, 164, 125, 182, 118, 252, 107, 226, 156, 116, 4, 241, 69, 157,
+ 112, 89, 100, 113, 135, 32, 134, 91, 207, 101, 230, 45, 168, 2, 27,
+ 96, 37, 173, 174, 176, 185, 246, 28, 70, 97, 105, 52, 64, 126, 15,
+ 85, 71, 163, 35, 221, 81, 175, 58, 195, 92, 249, 206, 186, 197,
+ 234, 38, 44, 83, 13, 110, 133, 40, 132, 9, 211, 223, 205, 244, 65,
+ 129, 77, 82, 106, 220, 55, 200, 108, 193, 171, 250, 36, 225, 123,
+ 8, 12, 189, 177, 74, 120, 136, 149, 139, 227, 99, 232, 109, 233,
+ 203, 213, 254, 59, 0, 29, 57, 242, 239, 183, 14, 102, 88, 208, 228,
+ 166, 119, 114, 248, 235, 117, 75, 10, 49, 68, 80, 180, 143, 237,
+ 31, 26, 219, 153, 141, 51, 159, 17, 131, 20
+ );
+
+ // Step 1. Append Padding Bytes
+ $pad = 16 - (strlen($m) & 0xF);
+ $m.= str_repeat(chr($pad), $pad);
+
+ $length = strlen($m);
+
+ // Step 2. Append Checksum
+ $c = str_repeat(chr(0), 16);
+ $l = chr(0);
+ for ($i = 0; $i < $length; $i+= 16) {
+ for ($j = 0; $j < 16; $j++) {
+ // RFC1319 incorrectly states that C[j] should be set to S[c xor L]
+ //$c[$j] = chr($s[ord($m[$i + $j] ^ $l)]);
+ // per <http://www.rfc-editor.org/errata_search.php?rfc=1319>, however, C[j] should be set to S[c xor L] xor C[j]
+ $c[$j] = chr($s[ord($m[$i + $j] ^ $l)] ^ ord($c[$j]));
+ $l = $c[$j];
+ }
+ }
+ $m.= $c;
+
+ $length+= 16;
+
+ // Step 3. Initialize MD Buffer
+ $x = str_repeat(chr(0), 48);
+
+ // Step 4. Process Message in 16-Byte Blocks
+ for ($i = 0; $i < $length; $i+= 16) {
+ for ($j = 0; $j < 16; $j++) {
+ $x[$j + 16] = $m[$i + $j];
+ $x[$j + 32] = $x[$j + 16] ^ $x[$j];
+ }
+ $t = chr(0);
+ for ($j = 0; $j < 18; $j++) {
+ for ($k = 0; $k < 48; $k++) {
+ $x[$k] = $t = $x[$k] ^ chr($s[ord($t)]);
+ //$t = $x[$k] = $x[$k] ^ chr($s[ord($t)]);
+ }
+ $t = chr(ord($t) + $j);
+ }
+ }
+
+ // Step 5. Output
+ return substr($x, 0, 16);
+ }
+
+ /**
+ * Pure-PHP implementation of SHA256
+ *
+ * See {@link http://en.wikipedia.org/wiki/SHA_hash_functions#SHA-256_.28a_SHA-2_variant.29_pseudocode SHA-256 (a SHA-2 variant) pseudocode - Wikipedia}.
+ *
+ * @access private
+ * @param string $m
+ */
+ function _sha256($m)
+ {
+ if (extension_loaded('suhosin')) {
+ return pack('H*', sha256($m));
+ }
+
+ // Initialize variables
+ $hash = array(
+ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
+ );
+ // Initialize table of round constants
+ // (first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311)
+ static $k = array(
+ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
+ 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
+ 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
+ 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
+ 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
+ 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
+ 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
+ 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
+ );
+
+ // Pre-processing
+ $length = strlen($m);
+ // to round to nearest 56 mod 64, we'll add 64 - (length + (64 - 56)) % 64
+ $m.= str_repeat(chr(0), 64 - (($length + 8) & 0x3F));
+ $m[$length] = chr(0x80);
+ // we don't support hashing strings 512MB long
+ $m.= pack('N2', 0, $length << 3);
+
+ // Process the message in successive 512-bit chunks
+ $chunks = str_split($m, 64);
+ foreach ($chunks as $chunk) {
+ $w = array();
+ for ($i = 0; $i < 16; $i++) {
+ extract(unpack('Ntemp', $this->_string_shift($chunk, 4)));
+ $w[] = $temp;
+ }
+
+ // Extend the sixteen 32-bit words into sixty-four 32-bit words
+ for ($i = 16; $i < 64; $i++) {
+ // @codingStandardsIgnoreStart
+ $s0 = $this->_rightRotate($w[$i - 15], 7) ^
+ $this->_rightRotate($w[$i - 15], 18) ^
+ $this->_rightShift( $w[$i - 15], 3);
+ $s1 = $this->_rightRotate($w[$i - 2], 17) ^
+ $this->_rightRotate($w[$i - 2], 19) ^
+ $this->_rightShift( $w[$i - 2], 10);
+ // @codingStandardsIgnoreEnd
+ $w[$i] = $this->_add($w[$i - 16], $s0, $w[$i - 7], $s1);
+ }
+
+ // Initialize hash value for this chunk
+ list($a, $b, $c, $d, $e, $f, $g, $h) = $hash;
+
+ // Main loop
+ for ($i = 0; $i < 64; $i++) {
+ $s0 = $this->_rightRotate($a, 2) ^
+ $this->_rightRotate($a, 13) ^
+ $this->_rightRotate($a, 22);
+ $maj = ($a & $b) ^
+ ($a & $c) ^
+ ($b & $c);
+ $t2 = $this->_add($s0, $maj);
+
+ $s1 = $this->_rightRotate($e, 6) ^
+ $this->_rightRotate($e, 11) ^
+ $this->_rightRotate($e, 25);
+ $ch = ($e & $f) ^
+ ($this->_not($e) & $g);
+ $t1 = $this->_add($h, $s1, $ch, $k[$i], $w[$i]);
+
+ $h = $g;
+ $g = $f;
+ $f = $e;
+ $e = $this->_add($d, $t1);
+ $d = $c;
+ $c = $b;
+ $b = $a;
+ $a = $this->_add($t1, $t2);
+ }
+
+ // Add this chunk's hash to result so far
+ $hash = array(
+ $this->_add($hash[0], $a),
+ $this->_add($hash[1], $b),
+ $this->_add($hash[2], $c),
+ $this->_add($hash[3], $d),
+ $this->_add($hash[4], $e),
+ $this->_add($hash[5], $f),
+ $this->_add($hash[6], $g),
+ $this->_add($hash[7], $h)
+ );
+ }
+
+ // Produce the final hash value (big-endian)
+ return pack('N8', $hash[0], $hash[1], $hash[2], $hash[3], $hash[4], $hash[5], $hash[6], $hash[7]);
+ }
+
+ /**
+ * Pure-PHP implementation of SHA384 and SHA512
+ *
+ * @access private
+ * @param string $m
+ */
+ function _sha512($m)
+ {
+ static $init384, $init512, $k;
+
+ if (!isset($k)) {
+ // Initialize variables
+ $init384 = array( // initial values for SHA384
+ 'cbbb9d5dc1059ed8', '629a292a367cd507', '9159015a3070dd17', '152fecd8f70e5939',
+ '67332667ffc00b31', '8eb44a8768581511', 'db0c2e0d64f98fa7', '47b5481dbefa4fa4'
+ );
+ $init512 = array( // initial values for SHA512
+ '6a09e667f3bcc908', 'bb67ae8584caa73b', '3c6ef372fe94f82b', 'a54ff53a5f1d36f1',
+ '510e527fade682d1', '9b05688c2b3e6c1f', '1f83d9abfb41bd6b', '5be0cd19137e2179'
+ );
+
+ for ($i = 0; $i < 8; $i++) {
+ $init384[$i] = new BigInteger($init384[$i], 16);
+ $init384[$i]->setPrecision(64);
+ $init512[$i] = new BigInteger($init512[$i], 16);
+ $init512[$i]->setPrecision(64);
+ }
+
+ // Initialize table of round constants
+ // (first 64 bits of the fractional parts of the cube roots of the first 80 primes 2..409)
+ $k = array(
+ '428a2f98d728ae22', '7137449123ef65cd', 'b5c0fbcfec4d3b2f', 'e9b5dba58189dbbc',
+ '3956c25bf348b538', '59f111f1b605d019', '923f82a4af194f9b', 'ab1c5ed5da6d8118',
+ 'd807aa98a3030242', '12835b0145706fbe', '243185be4ee4b28c', '550c7dc3d5ffb4e2',
+ '72be5d74f27b896f', '80deb1fe3b1696b1', '9bdc06a725c71235', 'c19bf174cf692694',
+ 'e49b69c19ef14ad2', 'efbe4786384f25e3', '0fc19dc68b8cd5b5', '240ca1cc77ac9c65',
+ '2de92c6f592b0275', '4a7484aa6ea6e483', '5cb0a9dcbd41fbd4', '76f988da831153b5',
+ '983e5152ee66dfab', 'a831c66d2db43210', 'b00327c898fb213f', 'bf597fc7beef0ee4',
+ 'c6e00bf33da88fc2', 'd5a79147930aa725', '06ca6351e003826f', '142929670a0e6e70',
+ '27b70a8546d22ffc', '2e1b21385c26c926', '4d2c6dfc5ac42aed', '53380d139d95b3df',
+ '650a73548baf63de', '766a0abb3c77b2a8', '81c2c92e47edaee6', '92722c851482353b',
+ 'a2bfe8a14cf10364', 'a81a664bbc423001', 'c24b8b70d0f89791', 'c76c51a30654be30',
+ 'd192e819d6ef5218', 'd69906245565a910', 'f40e35855771202a', '106aa07032bbd1b8',
+ '19a4c116b8d2d0c8', '1e376c085141ab53', '2748774cdf8eeb99', '34b0bcb5e19b48a8',
+ '391c0cb3c5c95a63', '4ed8aa4ae3418acb', '5b9cca4f7763e373', '682e6ff3d6b2b8a3',
+ '748f82ee5defb2fc', '78a5636f43172f60', '84c87814a1f0ab72', '8cc702081a6439ec',
+ '90befffa23631e28', 'a4506cebde82bde9', 'bef9a3f7b2c67915', 'c67178f2e372532b',
+ 'ca273eceea26619c', 'd186b8c721c0c207', 'eada7dd6cde0eb1e', 'f57d4f7fee6ed178',
+ '06f067aa72176fba', '0a637dc5a2c898a6', '113f9804bef90dae', '1b710b35131c471b',
+ '28db77f523047d84', '32caab7b40c72493', '3c9ebe0a15c9bebc', '431d67c49c100d4c',
+ '4cc5d4becb3e42b6', '597f299cfc657e2a', '5fcb6fab3ad6faec', '6c44198c4a475817'
+ );
+
+ for ($i = 0; $i < 80; $i++) {
+ $k[$i] = new BigInteger($k[$i], 16);
+ }
+ }
+
+ $hash = $this->l == 48 ? $init384 : $init512;
+
+ // Pre-processing
+ $length = strlen($m);
+ // to round to nearest 112 mod 128, we'll add 128 - (length + (128 - 112)) % 128
+ $m.= str_repeat(chr(0), 128 - (($length + 16) & 0x7F));
+ $m[$length] = chr(0x80);
+ // we don't support hashing strings 512MB long
+ $m.= pack('N4', 0, 0, 0, $length << 3);
+
+ // Process the message in successive 1024-bit chunks
+ $chunks = str_split($m, 128);
+ foreach ($chunks as $chunk) {
+ $w = array();
+ for ($i = 0; $i < 16; $i++) {
+ $temp = new BigInteger($this->_string_shift($chunk, 8), 256);
+ $temp->setPrecision(64);
+ $w[] = $temp;
+ }
+
+ // Extend the sixteen 32-bit words into eighty 32-bit words
+ for ($i = 16; $i < 80; $i++) {
+ $temp = array(
+ $w[$i - 15]->bitwise_rightRotate(1),
+ $w[$i - 15]->bitwise_rightRotate(8),
+ $w[$i - 15]->bitwise_rightShift(7)
+ );
+ $s0 = $temp[0]->bitwise_xor($temp[1]);
+ $s0 = $s0->bitwise_xor($temp[2]);
+ $temp = array(
+ $w[$i - 2]->bitwise_rightRotate(19),
+ $w[$i - 2]->bitwise_rightRotate(61),
+ $w[$i - 2]->bitwise_rightShift(6)
+ );
+ $s1 = $temp[0]->bitwise_xor($temp[1]);
+ $s1 = $s1->bitwise_xor($temp[2]);
+ $w[$i] = $w[$i - 16]->copy();
+ $w[$i] = $w[$i]->add($s0);
+ $w[$i] = $w[$i]->add($w[$i - 7]);
+ $w[$i] = $w[$i]->add($s1);
+ }
+
+ // Initialize hash value for this chunk
+ $a = $hash[0]->copy();
+ $b = $hash[1]->copy();
+ $c = $hash[2]->copy();
+ $d = $hash[3]->copy();
+ $e = $hash[4]->copy();
+ $f = $hash[5]->copy();
+ $g = $hash[6]->copy();
+ $h = $hash[7]->copy();
+
+ // Main loop
+ for ($i = 0; $i < 80; $i++) {
+ $temp = array(
+ $a->bitwise_rightRotate(28),
+ $a->bitwise_rightRotate(34),
+ $a->bitwise_rightRotate(39)
+ );
+ $s0 = $temp[0]->bitwise_xor($temp[1]);
+ $s0 = $s0->bitwise_xor($temp[2]);
+ $temp = array(
+ $a->bitwise_and($b),
+ $a->bitwise_and($c),
+ $b->bitwise_and($c)
+ );
+ $maj = $temp[0]->bitwise_xor($temp[1]);
+ $maj = $maj->bitwise_xor($temp[2]);
+ $t2 = $s0->add($maj);
+
+ $temp = array(
+ $e->bitwise_rightRotate(14),
+ $e->bitwise_rightRotate(18),
+ $e->bitwise_rightRotate(41)
+ );
+ $s1 = $temp[0]->bitwise_xor($temp[1]);
+ $s1 = $s1->bitwise_xor($temp[2]);
+ $temp = array(
+ $e->bitwise_and($f),
+ $g->bitwise_and($e->bitwise_not())
+ );
+ $ch = $temp[0]->bitwise_xor($temp[1]);
+ $t1 = $h->add($s1);
+ $t1 = $t1->add($ch);
+ $t1 = $t1->add($k[$i]);
+ $t1 = $t1->add($w[$i]);
+
+ $h = $g->copy();
+ $g = $f->copy();
+ $f = $e->copy();
+ $e = $d->add($t1);
+ $d = $c->copy();
+ $c = $b->copy();
+ $b = $a->copy();
+ $a = $t1->add($t2);
+ }
+
+ // Add this chunk's hash to result so far
+ $hash = array(
+ $hash[0]->add($a),
+ $hash[1]->add($b),
+ $hash[2]->add($c),
+ $hash[3]->add($d),
+ $hash[4]->add($e),
+ $hash[5]->add($f),
+ $hash[6]->add($g),
+ $hash[7]->add($h)
+ );
+ }
+
+ // Produce the final hash value (big-endian)
+ // (\phpseclib\Crypt\Hash::hash() trims the output for hashes but not for HMACs. as such, we trim the output here)
+ $temp = $hash[0]->toBytes() . $hash[1]->toBytes() . $hash[2]->toBytes() . $hash[3]->toBytes() .
+ $hash[4]->toBytes() . $hash[5]->toBytes();
+ if ($this->l != 48) {
+ $temp.= $hash[6]->toBytes() . $hash[7]->toBytes();
+ }
+
+ return $temp;
+ }
+
+ /**
+ * Right Rotate
+ *
+ * @access private
+ * @param int $int
+ * @param int $amt
+ * @see self::_sha256()
+ * @return int
+ */
+ function _rightRotate($int, $amt)
+ {
+ $invamt = 32 - $amt;
+ $mask = (1 << $invamt) - 1;
+ return (($int << $invamt) & 0xFFFFFFFF) | (($int >> $amt) & $mask);
+ }
+
+ /**
+ * Right Shift
+ *
+ * @access private
+ * @param int $int
+ * @param int $amt
+ * @see self::_sha256()
+ * @return int
+ */
+ function _rightShift($int, $amt)
+ {
+ $mask = (1 << (32 - $amt)) - 1;
+ return ($int >> $amt) & $mask;
+ }
+
+ /**
+ * Not
+ *
+ * @access private
+ * @param int $int
+ * @see self::_sha256()
+ * @return int
+ */
+ function _not($int)
+ {
+ return ~$int & 0xFFFFFFFF;
+ }
+
+ /**
+ * Add
+ *
+ * _sha256() adds multiple unsigned 32-bit integers. Since PHP doesn't support unsigned integers and since the
+ * possibility of overflow exists, care has to be taken. BigInteger could be used but this should be faster.
+ *
+ * @param int $...
+ * @return int
+ * @see self::_sha256()
+ * @access private
+ */
+ function _add()
+ {
+ static $mod;
+ if (!isset($mod)) {
+ $mod = pow(2, 32);
+ }
+
+ $result = 0;
+ $arguments = func_get_args();
+ foreach ($arguments as $argument) {
+ $result+= $argument < 0 ? ($argument & 0x7FFFFFFF) + 0x80000000 : $argument;
+ }
+
+ return fmod($result, $mod);
+ }
+
+ /**
+ * String Shift
+ *
+ * Inspired by array_shift
+ *
+ * @param string $string
+ * @param int $index
+ * @return string
+ * @access private
+ */
+ function _string_shift(&$string, $index = 1)
+ {
+ $substr = substr($string, 0, $index);
+ $string = substr($string, $index);
+ return $substr;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC2.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC2.php
new file mode 100644
index 00000000..e9cfa3f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC2.php
@@ -0,0 +1,688 @@
+<?php
+
+/**
+ * Pure-PHP implementation of RC2.
+ *
+ * Uses mcrypt, if available, and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * Useful resources are as follows:
+ *
+ * - {@link http://tools.ietf.org/html/rfc2268}
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $rc2 = new \phpseclib\Crypt\RC2();
+ *
+ * $rc2->setKey('abcdefgh');
+ *
+ * $plaintext = str_repeat('a', 1024);
+ *
+ * echo $rc2->decrypt($rc2->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package RC2
+ * @author Patrick Monnerat <pm@datasphere.ch>
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of RC2.
+ *
+ * @package RC2
+ * @access public
+ */
+class RC2 extends Base
+{
+ /**
+ * Block Length of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::block_size
+ * @var int
+ * @access private
+ */
+ var $block_size = 8;
+
+ /**
+ * The Key
+ *
+ * @see \phpseclib\Crypt\Base::key
+ * @see self::setKey()
+ * @var string
+ * @access private
+ */
+ var $key;
+
+ /**
+ * The Original (unpadded) Key
+ *
+ * @see \phpseclib\Crypt\Base::key
+ * @see self::setKey()
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @var string
+ * @access private
+ */
+ var $orig_key;
+
+ /**
+ * Don't truncate / null pad key
+ *
+ * @see \phpseclib\Crypt\Base::_clearBuffers()
+ * @var bool
+ * @access private
+ */
+ var $skip_key_adjustment = true;
+
+ /**
+ * Key Length (in bytes)
+ *
+ * @see \phpseclib\Crypt\RC2::setKeyLength()
+ * @var int
+ * @access private
+ */
+ var $key_length = 16; // = 128 bits
+
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::cipher_name_mcrypt
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt = 'rc2';
+
+ /**
+ * Optimizing value while CFB-encrypting
+ *
+ * @see \phpseclib\Crypt\Base::cfb_init_len
+ * @var int
+ * @access private
+ */
+ var $cfb_init_len = 500;
+
+ /**
+ * The key length in bits.
+ *
+ * @see self::setKeyLength()
+ * @see self::setKey()
+ * @var int
+ * @access private
+ * @internal Should be in range [1..1024].
+ * @internal Changing this value after setting the key has no effect.
+ */
+ var $default_key_length = 1024;
+
+ /**
+ * The key length in bits.
+ *
+ * @see self::isValidEnine()
+ * @see self::setKey()
+ * @var int
+ * @access private
+ * @internal Should be in range [1..1024].
+ */
+ var $current_key_length;
+
+ /**
+ * The Key Schedule
+ *
+ * @see self::_setupKey()
+ * @var array
+ * @access private
+ */
+ var $keys;
+
+ /**
+ * Key expansion randomization table.
+ * Twice the same 256-value sequence to save a modulus in key expansion.
+ *
+ * @see self::setKey()
+ * @var array
+ * @access private
+ */
+ var $pitable = array(
+ 0xD9, 0x78, 0xF9, 0xC4, 0x19, 0xDD, 0xB5, 0xED,
+ 0x28, 0xE9, 0xFD, 0x79, 0x4A, 0xA0, 0xD8, 0x9D,
+ 0xC6, 0x7E, 0x37, 0x83, 0x2B, 0x76, 0x53, 0x8E,
+ 0x62, 0x4C, 0x64, 0x88, 0x44, 0x8B, 0xFB, 0xA2,
+ 0x17, 0x9A, 0x59, 0xF5, 0x87, 0xB3, 0x4F, 0x13,
+ 0x61, 0x45, 0x6D, 0x8D, 0x09, 0x81, 0x7D, 0x32,
+ 0xBD, 0x8F, 0x40, 0xEB, 0x86, 0xB7, 0x7B, 0x0B,
+ 0xF0, 0x95, 0x21, 0x22, 0x5C, 0x6B, 0x4E, 0x82,
+ 0x54, 0xD6, 0x65, 0x93, 0xCE, 0x60, 0xB2, 0x1C,
+ 0x73, 0x56, 0xC0, 0x14, 0xA7, 0x8C, 0xF1, 0xDC,
+ 0x12, 0x75, 0xCA, 0x1F, 0x3B, 0xBE, 0xE4, 0xD1,
+ 0x42, 0x3D, 0xD4, 0x30, 0xA3, 0x3C, 0xB6, 0x26,
+ 0x6F, 0xBF, 0x0E, 0xDA, 0x46, 0x69, 0x07, 0x57,
+ 0x27, 0xF2, 0x1D, 0x9B, 0xBC, 0x94, 0x43, 0x03,
+ 0xF8, 0x11, 0xC7, 0xF6, 0x90, 0xEF, 0x3E, 0xE7,
+ 0x06, 0xC3, 0xD5, 0x2F, 0xC8, 0x66, 0x1E, 0xD7,
+ 0x08, 0xE8, 0xEA, 0xDE, 0x80, 0x52, 0xEE, 0xF7,
+ 0x84, 0xAA, 0x72, 0xAC, 0x35, 0x4D, 0x6A, 0x2A,
+ 0x96, 0x1A, 0xD2, 0x71, 0x5A, 0x15, 0x49, 0x74,
+ 0x4B, 0x9F, 0xD0, 0x5E, 0x04, 0x18, 0xA4, 0xEC,
+ 0xC2, 0xE0, 0x41, 0x6E, 0x0F, 0x51, 0xCB, 0xCC,
+ 0x24, 0x91, 0xAF, 0x50, 0xA1, 0xF4, 0x70, 0x39,
+ 0x99, 0x7C, 0x3A, 0x85, 0x23, 0xB8, 0xB4, 0x7A,
+ 0xFC, 0x02, 0x36, 0x5B, 0x25, 0x55, 0x97, 0x31,
+ 0x2D, 0x5D, 0xFA, 0x98, 0xE3, 0x8A, 0x92, 0xAE,
+ 0x05, 0xDF, 0x29, 0x10, 0x67, 0x6C, 0xBA, 0xC9,
+ 0xD3, 0x00, 0xE6, 0xCF, 0xE1, 0x9E, 0xA8, 0x2C,
+ 0x63, 0x16, 0x01, 0x3F, 0x58, 0xE2, 0x89, 0xA9,
+ 0x0D, 0x38, 0x34, 0x1B, 0xAB, 0x33, 0xFF, 0xB0,
+ 0xBB, 0x48, 0x0C, 0x5F, 0xB9, 0xB1, 0xCD, 0x2E,
+ 0xC5, 0xF3, 0xDB, 0x47, 0xE5, 0xA5, 0x9C, 0x77,
+ 0x0A, 0xA6, 0x20, 0x68, 0xFE, 0x7F, 0xC1, 0xAD,
+ 0xD9, 0x78, 0xF9, 0xC4, 0x19, 0xDD, 0xB5, 0xED,
+ 0x28, 0xE9, 0xFD, 0x79, 0x4A, 0xA0, 0xD8, 0x9D,
+ 0xC6, 0x7E, 0x37, 0x83, 0x2B, 0x76, 0x53, 0x8E,
+ 0x62, 0x4C, 0x64, 0x88, 0x44, 0x8B, 0xFB, 0xA2,
+ 0x17, 0x9A, 0x59, 0xF5, 0x87, 0xB3, 0x4F, 0x13,
+ 0x61, 0x45, 0x6D, 0x8D, 0x09, 0x81, 0x7D, 0x32,
+ 0xBD, 0x8F, 0x40, 0xEB, 0x86, 0xB7, 0x7B, 0x0B,
+ 0xF0, 0x95, 0x21, 0x22, 0x5C, 0x6B, 0x4E, 0x82,
+ 0x54, 0xD6, 0x65, 0x93, 0xCE, 0x60, 0xB2, 0x1C,
+ 0x73, 0x56, 0xC0, 0x14, 0xA7, 0x8C, 0xF1, 0xDC,
+ 0x12, 0x75, 0xCA, 0x1F, 0x3B, 0xBE, 0xE4, 0xD1,
+ 0x42, 0x3D, 0xD4, 0x30, 0xA3, 0x3C, 0xB6, 0x26,
+ 0x6F, 0xBF, 0x0E, 0xDA, 0x46, 0x69, 0x07, 0x57,
+ 0x27, 0xF2, 0x1D, 0x9B, 0xBC, 0x94, 0x43, 0x03,
+ 0xF8, 0x11, 0xC7, 0xF6, 0x90, 0xEF, 0x3E, 0xE7,
+ 0x06, 0xC3, 0xD5, 0x2F, 0xC8, 0x66, 0x1E, 0xD7,
+ 0x08, 0xE8, 0xEA, 0xDE, 0x80, 0x52, 0xEE, 0xF7,
+ 0x84, 0xAA, 0x72, 0xAC, 0x35, 0x4D, 0x6A, 0x2A,
+ 0x96, 0x1A, 0xD2, 0x71, 0x5A, 0x15, 0x49, 0x74,
+ 0x4B, 0x9F, 0xD0, 0x5E, 0x04, 0x18, 0xA4, 0xEC,
+ 0xC2, 0xE0, 0x41, 0x6E, 0x0F, 0x51, 0xCB, 0xCC,
+ 0x24, 0x91, 0xAF, 0x50, 0xA1, 0xF4, 0x70, 0x39,
+ 0x99, 0x7C, 0x3A, 0x85, 0x23, 0xB8, 0xB4, 0x7A,
+ 0xFC, 0x02, 0x36, 0x5B, 0x25, 0x55, 0x97, 0x31,
+ 0x2D, 0x5D, 0xFA, 0x98, 0xE3, 0x8A, 0x92, 0xAE,
+ 0x05, 0xDF, 0x29, 0x10, 0x67, 0x6C, 0xBA, 0xC9,
+ 0xD3, 0x00, 0xE6, 0xCF, 0xE1, 0x9E, 0xA8, 0x2C,
+ 0x63, 0x16, 0x01, 0x3F, 0x58, 0xE2, 0x89, 0xA9,
+ 0x0D, 0x38, 0x34, 0x1B, 0xAB, 0x33, 0xFF, 0xB0,
+ 0xBB, 0x48, 0x0C, 0x5F, 0xB9, 0xB1, 0xCD, 0x2E,
+ 0xC5, 0xF3, 0xDB, 0x47, 0xE5, 0xA5, 0x9C, 0x77,
+ 0x0A, 0xA6, 0x20, 0x68, 0xFE, 0x7F, 0xC1, 0xAD
+ );
+
+ /**
+ * Inverse key expansion randomization table.
+ *
+ * @see self::setKey()
+ * @var array
+ * @access private
+ */
+ var $invpitable = array(
+ 0xD1, 0xDA, 0xB9, 0x6F, 0x9C, 0xC8, 0x78, 0x66,
+ 0x80, 0x2C, 0xF8, 0x37, 0xEA, 0xE0, 0x62, 0xA4,
+ 0xCB, 0x71, 0x50, 0x27, 0x4B, 0x95, 0xD9, 0x20,
+ 0x9D, 0x04, 0x91, 0xE3, 0x47, 0x6A, 0x7E, 0x53,
+ 0xFA, 0x3A, 0x3B, 0xB4, 0xA8, 0xBC, 0x5F, 0x68,
+ 0x08, 0xCA, 0x8F, 0x14, 0xD7, 0xC0, 0xEF, 0x7B,
+ 0x5B, 0xBF, 0x2F, 0xE5, 0xE2, 0x8C, 0xBA, 0x12,
+ 0xE1, 0xAF, 0xB2, 0x54, 0x5D, 0x59, 0x76, 0xDB,
+ 0x32, 0xA2, 0x58, 0x6E, 0x1C, 0x29, 0x64, 0xF3,
+ 0xE9, 0x96, 0x0C, 0x98, 0x19, 0x8D, 0x3E, 0x26,
+ 0xAB, 0xA5, 0x85, 0x16, 0x40, 0xBD, 0x49, 0x67,
+ 0xDC, 0x22, 0x94, 0xBB, 0x3C, 0xC1, 0x9B, 0xEB,
+ 0x45, 0x28, 0x18, 0xD8, 0x1A, 0x42, 0x7D, 0xCC,
+ 0xFB, 0x65, 0x8E, 0x3D, 0xCD, 0x2A, 0xA3, 0x60,
+ 0xAE, 0x93, 0x8A, 0x48, 0x97, 0x51, 0x15, 0xF7,
+ 0x01, 0x0B, 0xB7, 0x36, 0xB1, 0x2E, 0x11, 0xFD,
+ 0x84, 0x2D, 0x3F, 0x13, 0x88, 0xB3, 0x34, 0x24,
+ 0x1B, 0xDE, 0xC5, 0x1D, 0x4D, 0x2B, 0x17, 0x31,
+ 0x74, 0xA9, 0xC6, 0x43, 0x6D, 0x39, 0x90, 0xBE,
+ 0xC3, 0xB0, 0x21, 0x6B, 0xF6, 0x0F, 0xD5, 0x99,
+ 0x0D, 0xAC, 0x1F, 0x5C, 0x9E, 0xF5, 0xF9, 0x4C,
+ 0xD6, 0xDF, 0x89, 0xE4, 0x8B, 0xFF, 0xC7, 0xAA,
+ 0xE7, 0xED, 0x46, 0x25, 0xB6, 0x06, 0x5E, 0x35,
+ 0xB5, 0xEC, 0xCE, 0xE8, 0x6C, 0x30, 0x55, 0x61,
+ 0x4A, 0xFE, 0xA0, 0x79, 0x03, 0xF0, 0x10, 0x72,
+ 0x7C, 0xCF, 0x52, 0xA6, 0xA7, 0xEE, 0x44, 0xD3,
+ 0x9A, 0x57, 0x92, 0xD0, 0x5A, 0x7A, 0x41, 0x7F,
+ 0x0E, 0x00, 0x63, 0xF2, 0x4F, 0x05, 0x83, 0xC9,
+ 0xA1, 0xD4, 0xDD, 0xC4, 0x56, 0xF4, 0xD2, 0x77,
+ 0x81, 0x09, 0x82, 0x33, 0x9F, 0x07, 0x86, 0x75,
+ 0x38, 0x4E, 0x69, 0xF1, 0xAD, 0x23, 0x73, 0x87,
+ 0x70, 0x02, 0xC2, 0x1E, 0xB8, 0x0A, 0xFC, 0xE6
+ );
+
+ /**
+ * Test for engine validity
+ *
+ * This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
+ *
+ * @see \phpseclib\Crypt\Base::__construct()
+ * @param int $engine
+ * @access public
+ * @return bool
+ */
+ function isValidEngine($engine)
+ {
+ switch ($engine) {
+ case self::ENGINE_OPENSSL:
+ if ($this->current_key_length != 128 || strlen($this->orig_key) < 16) {
+ return false;
+ }
+ $this->cipher_name_openssl_ecb = 'rc2-ecb';
+ $this->cipher_name_openssl = 'rc2-' . $this->_openssl_translate_mode();
+ }
+
+ return parent::isValidEngine($engine);
+ }
+
+ /**
+ * Sets the key length.
+ *
+ * Valid key lengths are 8 to 1024.
+ * Calling this function after setting the key has no effect until the next
+ * \phpseclib\Crypt\RC2::setKey() call.
+ *
+ * @access public
+ * @param int $length in bits
+ */
+ function setKeyLength($length)
+ {
+ if ($length < 8) {
+ $this->default_key_length = 8;
+ } elseif ($length > 1024) {
+ $this->default_key_length = 128;
+ } else {
+ $this->default_key_length = $length;
+ }
+ $this->current_key_length = $this->default_key_length;
+
+ parent::setKeyLength($length);
+ }
+
+ /**
+ * Returns the current key length
+ *
+ * @access public
+ * @return int
+ */
+ function getKeyLength()
+ {
+ return $this->current_key_length;
+ }
+
+ /**
+ * Sets the key.
+ *
+ * Keys can be of any length. RC2, itself, uses 8 to 1024 bit keys (eg.
+ * strlen($key) <= 128), however, we only use the first 128 bytes if $key
+ * has more then 128 bytes in it, and set $key to a single null byte if
+ * it is empty.
+ *
+ * If the key is not explicitly set, it'll be assumed to be a single
+ * null byte.
+ *
+ * @see \phpseclib\Crypt\Base::setKey()
+ * @access public
+ * @param string $key
+ * @param int $t1 optional Effective key length in bits.
+ */
+ function setKey($key, $t1 = 0)
+ {
+ $this->orig_key = $key;
+
+ if ($t1 <= 0) {
+ $t1 = $this->default_key_length;
+ } elseif ($t1 > 1024) {
+ $t1 = 1024;
+ }
+ $this->current_key_length = $t1;
+ // Key byte count should be 1..128.
+ $key = strlen($key) ? substr($key, 0, 128) : "\x00";
+ $t = strlen($key);
+
+ // The mcrypt RC2 implementation only supports effective key length
+ // of 1024 bits. It is however possible to handle effective key
+ // lengths in range 1..1024 by expanding the key and applying
+ // inverse pitable mapping to the first byte before submitting it
+ // to mcrypt.
+
+ // Key expansion.
+ $l = array_values(unpack('C*', $key));
+ $t8 = ($t1 + 7) >> 3;
+ $tm = 0xFF >> (8 * $t8 - $t1);
+
+ // Expand key.
+ $pitable = $this->pitable;
+ for ($i = $t; $i < 128; $i++) {
+ $l[$i] = $pitable[$l[$i - 1] + $l[$i - $t]];
+ }
+ $i = 128 - $t8;
+ $l[$i] = $pitable[$l[$i] & $tm];
+ while ($i--) {
+ $l[$i] = $pitable[$l[$i + 1] ^ $l[$i + $t8]];
+ }
+
+ // Prepare the key for mcrypt.
+ $l[0] = $this->invpitable[$l[0]];
+ array_unshift($l, 'C*');
+
+ parent::setKey(call_user_func_array('pack', $l));
+ }
+
+ /**
+ * Encrypts a message.
+ *
+ * Mostly a wrapper for \phpseclib\Crypt\Base::encrypt, with some additional OpenSSL handling code
+ *
+ * @see self::decrypt()
+ * @access public
+ * @param string $plaintext
+ * @return string $ciphertext
+ */
+ function encrypt($plaintext)
+ {
+ if ($this->engine == self::ENGINE_OPENSSL) {
+ $temp = $this->key;
+ $this->key = $this->orig_key;
+ $result = parent::encrypt($plaintext);
+ $this->key = $temp;
+ return $result;
+ }
+
+ return parent::encrypt($plaintext);
+ }
+
+ /**
+ * Decrypts a message.
+ *
+ * Mostly a wrapper for \phpseclib\Crypt\Base::decrypt, with some additional OpenSSL handling code
+ *
+ * @see self::encrypt()
+ * @access public
+ * @param string $ciphertext
+ * @return string $plaintext
+ */
+ function decrypt($ciphertext)
+ {
+ if ($this->engine == self::ENGINE_OPENSSL) {
+ $temp = $this->key;
+ $this->key = $this->orig_key;
+ $result = parent::decrypt($ciphertext);
+ $this->key = $temp;
+ return $result;
+ }
+
+ return parent::decrypt($ciphertext);
+ }
+
+ /**
+ * Encrypts a block
+ *
+ * @see \phpseclib\Crypt\Base::_encryptBlock()
+ * @see \phpseclib\Crypt\Base::encrypt()
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _encryptBlock($in)
+ {
+ list($r0, $r1, $r2, $r3) = array_values(unpack('v*', $in));
+ $keys = $this->keys;
+ $limit = 20;
+ $actions = array($limit => 44, 44 => 64);
+ $j = 0;
+
+ for (;;) {
+ // Mixing round.
+ $r0 = (($r0 + $keys[$j++] + ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF) << 1;
+ $r0 |= $r0 >> 16;
+ $r1 = (($r1 + $keys[$j++] + ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF) << 2;
+ $r1 |= $r1 >> 16;
+ $r2 = (($r2 + $keys[$j++] + ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF) << 3;
+ $r2 |= $r2 >> 16;
+ $r3 = (($r3 + $keys[$j++] + ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF) << 5;
+ $r3 |= $r3 >> 16;
+
+ if ($j === $limit) {
+ if ($limit === 64) {
+ break;
+ }
+
+ // Mashing round.
+ $r0 += $keys[$r3 & 0x3F];
+ $r1 += $keys[$r0 & 0x3F];
+ $r2 += $keys[$r1 & 0x3F];
+ $r3 += $keys[$r2 & 0x3F];
+ $limit = $actions[$limit];
+ }
+ }
+
+ return pack('vvvv', $r0, $r1, $r2, $r3);
+ }
+
+ /**
+ * Decrypts a block
+ *
+ * @see \phpseclib\Crypt\Base::_decryptBlock()
+ * @see \phpseclib\Crypt\Base::decrypt()
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _decryptBlock($in)
+ {
+ list($r0, $r1, $r2, $r3) = array_values(unpack('v*', $in));
+ $keys = $this->keys;
+ $limit = 44;
+ $actions = array($limit => 20, 20 => 0);
+ $j = 64;
+
+ for (;;) {
+ // R-mixing round.
+ $r3 = ($r3 | ($r3 << 16)) >> 5;
+ $r3 = ($r3 - $keys[--$j] - ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF;
+ $r2 = ($r2 | ($r2 << 16)) >> 3;
+ $r2 = ($r2 - $keys[--$j] - ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF;
+ $r1 = ($r1 | ($r1 << 16)) >> 2;
+ $r1 = ($r1 - $keys[--$j] - ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF;
+ $r0 = ($r0 | ($r0 << 16)) >> 1;
+ $r0 = ($r0 - $keys[--$j] - ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF;
+
+ if ($j === $limit) {
+ if ($limit === 0) {
+ break;
+ }
+
+ // R-mashing round.
+ $r3 = ($r3 - $keys[$r2 & 0x3F]) & 0xFFFF;
+ $r2 = ($r2 - $keys[$r1 & 0x3F]) & 0xFFFF;
+ $r1 = ($r1 - $keys[$r0 & 0x3F]) & 0xFFFF;
+ $r0 = ($r0 - $keys[$r3 & 0x3F]) & 0xFFFF;
+ $limit = $actions[$limit];
+ }
+ }
+
+ return pack('vvvv', $r0, $r1, $r2, $r3);
+ }
+
+ /**
+ * Setup the \phpseclib\Crypt\Base::ENGINE_MCRYPT $engine
+ *
+ * @see \phpseclib\Crypt\Base::_setupMcrypt()
+ * @access private
+ */
+ function _setupMcrypt()
+ {
+ if (!isset($this->key)) {
+ $this->setKey('');
+ }
+
+ parent::_setupMcrypt();
+ }
+
+ /**
+ * Creates the key schedule
+ *
+ * @see \phpseclib\Crypt\Base::_setupKey()
+ * @access private
+ */
+ function _setupKey()
+ {
+ if (!isset($this->key)) {
+ $this->setKey('');
+ }
+
+ // Key has already been expanded in \phpseclib\Crypt\RC2::setKey():
+ // Only the first value must be altered.
+ $l = unpack('Ca/Cb/v*', $this->key);
+ array_unshift($l, $this->pitable[$l['a']] | ($l['b'] << 8));
+ unset($l['a']);
+ unset($l['b']);
+ $this->keys = $l;
+ }
+
+ /**
+ * Setup the performance-optimized function for de/encrypt()
+ *
+ * @see \phpseclib\Crypt\Base::_setupInlineCrypt()
+ * @access private
+ */
+ function _setupInlineCrypt()
+ {
+ $lambda_functions =& self::_getLambdaFunctions();
+
+ // The first 10 generated $lambda_functions will use the $keys hardcoded as integers
+ // for the mixing rounds, for better inline crypt performance [~20% faster].
+ // But for memory reason we have to limit those ultra-optimized $lambda_functions to an amount of 10.
+ // (Currently, for Crypt_RC2, one generated $lambda_function cost on php5.5@32bit ~60kb unfreeable mem and ~100kb on php5.5@64bit)
+ $gen_hi_opt_code = (bool)(count($lambda_functions) < 10);
+
+ // Generation of a unique hash for our generated code
+ $code_hash = "Crypt_RC2, {$this->mode}";
+ if ($gen_hi_opt_code) {
+ $code_hash = str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key);
+ }
+
+ // Is there a re-usable $lambda_functions in there?
+ // If not, we have to create it.
+ if (!isset($lambda_functions[$code_hash])) {
+ // Init code for both, encrypt and decrypt.
+ $init_crypt = '$keys = $self->keys;';
+
+ switch (true) {
+ case $gen_hi_opt_code:
+ $keys = $this->keys;
+ default:
+ $keys = array();
+ foreach ($this->keys as $k => $v) {
+ $keys[$k] = '$keys[' . $k . ']';
+ }
+ }
+
+ // $in is the current 8 bytes block which has to be en/decrypt
+ $encrypt_block = $decrypt_block = '
+ $in = unpack("v4", $in);
+ $r0 = $in[1];
+ $r1 = $in[2];
+ $r2 = $in[3];
+ $r3 = $in[4];
+ ';
+
+ // Create code for encryption.
+ $limit = 20;
+ $actions = array($limit => 44, 44 => 64);
+ $j = 0;
+
+ for (;;) {
+ // Mixing round.
+ $encrypt_block .= '
+ $r0 = (($r0 + ' . $keys[$j++] . ' +
+ ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF) << 1;
+ $r0 |= $r0 >> 16;
+ $r1 = (($r1 + ' . $keys[$j++] . ' +
+ ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF) << 2;
+ $r1 |= $r1 >> 16;
+ $r2 = (($r2 + ' . $keys[$j++] . ' +
+ ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF) << 3;
+ $r2 |= $r2 >> 16;
+ $r3 = (($r3 + ' . $keys[$j++] . ' +
+ ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF) << 5;
+ $r3 |= $r3 >> 16;';
+
+ if ($j === $limit) {
+ if ($limit === 64) {
+ break;
+ }
+
+ // Mashing round.
+ $encrypt_block .= '
+ $r0 += $keys[$r3 & 0x3F];
+ $r1 += $keys[$r0 & 0x3F];
+ $r2 += $keys[$r1 & 0x3F];
+ $r3 += $keys[$r2 & 0x3F];';
+ $limit = $actions[$limit];
+ }
+ }
+
+ $encrypt_block .= '$in = pack("v4", $r0, $r1, $r2, $r3);';
+
+ // Create code for decryption.
+ $limit = 44;
+ $actions = array($limit => 20, 20 => 0);
+ $j = 64;
+
+ for (;;) {
+ // R-mixing round.
+ $decrypt_block .= '
+ $r3 = ($r3 | ($r3 << 16)) >> 5;
+ $r3 = ($r3 - ' . $keys[--$j] . ' -
+ ((($r0 ^ $r1) & $r2) ^ $r0)) & 0xFFFF;
+ $r2 = ($r2 | ($r2 << 16)) >> 3;
+ $r2 = ($r2 - ' . $keys[--$j] . ' -
+ ((($r3 ^ $r0) & $r1) ^ $r3)) & 0xFFFF;
+ $r1 = ($r1 | ($r1 << 16)) >> 2;
+ $r1 = ($r1 - ' . $keys[--$j] . ' -
+ ((($r2 ^ $r3) & $r0) ^ $r2)) & 0xFFFF;
+ $r0 = ($r0 | ($r0 << 16)) >> 1;
+ $r0 = ($r0 - ' . $keys[--$j] . ' -
+ ((($r1 ^ $r2) & $r3) ^ $r1)) & 0xFFFF;';
+
+ if ($j === $limit) {
+ if ($limit === 0) {
+ break;
+ }
+
+ // R-mashing round.
+ $decrypt_block .= '
+ $r3 = ($r3 - $keys[$r2 & 0x3F]) & 0xFFFF;
+ $r2 = ($r2 - $keys[$r1 & 0x3F]) & 0xFFFF;
+ $r1 = ($r1 - $keys[$r0 & 0x3F]) & 0xFFFF;
+ $r0 = ($r0 - $keys[$r3 & 0x3F]) & 0xFFFF;';
+ $limit = $actions[$limit];
+ }
+ }
+
+ $decrypt_block .= '$in = pack("v4", $r0, $r1, $r2, $r3);';
+
+ // Creates the inline-crypt function
+ $lambda_functions[$code_hash] = $this->_createInlineCryptFunction(
+ array(
+ 'init_crypt' => $init_crypt,
+ 'encrypt_block' => $encrypt_block,
+ 'decrypt_block' => $decrypt_block
+ )
+ );
+ }
+
+ // Set the inline-crypt function as callback in: $this->inline_crypt
+ $this->inline_crypt = $lambda_functions[$code_hash];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC4.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC4.php
new file mode 100644
index 00000000..4812010c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RC4.php
@@ -0,0 +1,342 @@
+<?php
+
+/**
+ * Pure-PHP implementation of RC4.
+ *
+ * Uses mcrypt, if available, and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * Useful resources are as follows:
+ *
+ * - {@link http://www.mozilla.org/projects/security/pki/nss/draft-kaukonen-cipher-arcfour-03.txt ARCFOUR Algorithm}
+ * - {@link http://en.wikipedia.org/wiki/RC4 - Wikipedia: RC4}
+ *
+ * RC4 is also known as ARCFOUR or ARC4. The reason is elaborated upon at Wikipedia. This class is named RC4 and not
+ * ARCFOUR or ARC4 because RC4 is how it is referred to in the SSH1 specification.
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $rc4 = new \phpseclib\Crypt\RC4();
+ *
+ * $rc4->setKey('abcdefgh');
+ *
+ * $size = 10 * 1024;
+ * $plaintext = '';
+ * for ($i = 0; $i < $size; $i++) {
+ * $plaintext.= 'a';
+ * }
+ *
+ * echo $rc4->decrypt($rc4->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package RC4
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of RC4.
+ *
+ * @package RC4
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class RC4 extends Base
+{
+ /**#@+
+ * @access private
+ * @see \phpseclib\Crypt\RC4::_crypt()
+ */
+ const ENCRYPT = 0;
+ const DECRYPT = 1;
+ /**#@-*/
+
+ /**
+ * Block Length of the cipher
+ *
+ * RC4 is a stream cipher
+ * so we the block_size to 0
+ *
+ * @see \phpseclib\Crypt\Base::block_size
+ * @var int
+ * @access private
+ */
+ var $block_size = 0;
+
+ /**
+ * Key Length (in bytes)
+ *
+ * @see \phpseclib\Crypt\RC4::setKeyLength()
+ * @var int
+ * @access private
+ */
+ var $key_length = 128; // = 1024 bits
+
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::cipher_name_mcrypt
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt = 'arcfour';
+
+ /**
+ * Holds whether performance-optimized $inline_crypt() can/should be used.
+ *
+ * @see \phpseclib\Crypt\Base::inline_crypt
+ * @var mixed
+ * @access private
+ */
+ var $use_inline_crypt = false; // currently not available
+
+ /**
+ * The Key
+ *
+ * @see self::setKey()
+ * @var string
+ * @access private
+ */
+ var $key = "\0";
+
+ /**
+ * The Key Stream for decryption and encryption
+ *
+ * @see self::setKey()
+ * @var array
+ * @access private
+ */
+ var $stream;
+
+ /**
+ * Default Constructor.
+ *
+ * Determines whether or not the mcrypt extension should be used.
+ *
+ * @see \phpseclib\Crypt\Base::__construct()
+ * @return \phpseclib\Crypt\RC4
+ * @access public
+ */
+ function __construct()
+ {
+ parent::__construct(Base::MODE_STREAM);
+ }
+
+ /**
+ * Test for engine validity
+ *
+ * This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
+ *
+ * @see \phpseclib\Crypt\Base::__construct()
+ * @param int $engine
+ * @access public
+ * @return bool
+ */
+ function isValidEngine($engine)
+ {
+ if ($engine == Base::ENGINE_OPENSSL) {
+ if (version_compare(PHP_VERSION, '5.3.7') >= 0) {
+ $this->cipher_name_openssl = 'rc4-40';
+ } else {
+ switch (strlen($this->key)) {
+ case 5:
+ $this->cipher_name_openssl = 'rc4-40';
+ break;
+ case 8:
+ $this->cipher_name_openssl = 'rc4-64';
+ break;
+ case 16:
+ $this->cipher_name_openssl = 'rc4';
+ break;
+ default:
+ return false;
+ }
+ }
+ }
+
+ return parent::isValidEngine($engine);
+ }
+
+ /**
+ * Dummy function.
+ *
+ * Some protocols, such as WEP, prepend an "initialization vector" to the key, effectively creating a new key [1].
+ * If you need to use an initialization vector in this manner, feel free to prepend it to the key, yourself, before
+ * calling setKey().
+ *
+ * [1] WEP's initialization vectors (IV's) are used in a somewhat insecure way. Since, in that protocol,
+ * the IV's are relatively easy to predict, an attack described by
+ * {@link http://www.drizzle.com/~aboba/IEEE/rc4_ksaproc.pdf Scott Fluhrer, Itsik Mantin, and Adi Shamir}
+ * can be used to quickly guess at the rest of the key. The following links elaborate:
+ *
+ * {@link http://www.rsa.com/rsalabs/node.asp?id=2009 http://www.rsa.com/rsalabs/node.asp?id=2009}
+ * {@link http://en.wikipedia.org/wiki/Related_key_attack http://en.wikipedia.org/wiki/Related_key_attack}
+ *
+ * @param string $iv
+ * @see self::setKey()
+ * @access public
+ */
+ function setIV($iv)
+ {
+ }
+
+ /**
+ * Sets the key length
+ *
+ * Keys can be between 1 and 256 bytes long.
+ *
+ * @access public
+ * @param int $length
+ */
+ function setKeyLength($length)
+ {
+ if ($length < 8) {
+ $this->key_length = 1;
+ } elseif ($length > 2048) {
+ $this->key_length = 256;
+ } else {
+ $this->key_length = $length >> 3;
+ }
+
+ parent::setKeyLength($length);
+ }
+
+ /**
+ * Encrypts a message.
+ *
+ * @see \phpseclib\Crypt\Base::decrypt()
+ * @see self::_crypt()
+ * @access public
+ * @param string $plaintext
+ * @return string $ciphertext
+ */
+ function encrypt($plaintext)
+ {
+ if ($this->engine != Base::ENGINE_INTERNAL) {
+ return parent::encrypt($plaintext);
+ }
+ return $this->_crypt($plaintext, self::ENCRYPT);
+ }
+
+ /**
+ * Decrypts a message.
+ *
+ * $this->decrypt($this->encrypt($plaintext)) == $this->encrypt($this->encrypt($plaintext)).
+ * At least if the continuous buffer is disabled.
+ *
+ * @see \phpseclib\Crypt\Base::encrypt()
+ * @see self::_crypt()
+ * @access public
+ * @param string $ciphertext
+ * @return string $plaintext
+ */
+ function decrypt($ciphertext)
+ {
+ if ($this->engine != Base::ENGINE_INTERNAL) {
+ return parent::decrypt($ciphertext);
+ }
+ return $this->_crypt($ciphertext, self::DECRYPT);
+ }
+
+ /**
+ * Encrypts a block
+ *
+ * @access private
+ * @param string $in
+ */
+ function _encryptBlock($in)
+ {
+ // RC4 does not utilize this method
+ }
+
+ /**
+ * Decrypts a block
+ *
+ * @access private
+ * @param string $in
+ */
+ function _decryptBlock($in)
+ {
+ // RC4 does not utilize this method
+ }
+
+ /**
+ * Setup the key (expansion)
+ *
+ * @see \phpseclib\Crypt\Base::_setupKey()
+ * @access private
+ */
+ function _setupKey()
+ {
+ $key = $this->key;
+ $keyLength = strlen($key);
+ $keyStream = range(0, 255);
+ $j = 0;
+ for ($i = 0; $i < 256; $i++) {
+ $j = ($j + $keyStream[$i] + ord($key[$i % $keyLength])) & 255;
+ $temp = $keyStream[$i];
+ $keyStream[$i] = $keyStream[$j];
+ $keyStream[$j] = $temp;
+ }
+
+ $this->stream = array();
+ $this->stream[self::DECRYPT] = $this->stream[self::ENCRYPT] = array(
+ 0, // index $i
+ 0, // index $j
+ $keyStream
+ );
+ }
+
+ /**
+ * Encrypts or decrypts a message.
+ *
+ * @see self::encrypt()
+ * @see self::decrypt()
+ * @access private
+ * @param string $text
+ * @param int $mode
+ * @return string $text
+ */
+ function _crypt($text, $mode)
+ {
+ if ($this->changed) {
+ $this->_setup();
+ $this->changed = false;
+ }
+
+ $stream = &$this->stream[$mode];
+ if ($this->continuousBuffer) {
+ $i = &$stream[0];
+ $j = &$stream[1];
+ $keyStream = &$stream[2];
+ } else {
+ $i = $stream[0];
+ $j = $stream[1];
+ $keyStream = $stream[2];
+ }
+
+ $len = strlen($text);
+ for ($k = 0; $k < $len; ++$k) {
+ $i = ($i + 1) & 255;
+ $ksi = $keyStream[$i];
+ $j = ($j + $ksi) & 255;
+ $ksj = $keyStream[$j];
+
+ $keyStream[$i] = $ksj;
+ $keyStream[$j] = $ksi;
+ $text[$k] = $text[$k] ^ chr($keyStream[($ksj + $ksi) & 255]);
+ }
+
+ return $text;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RSA.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RSA.php
new file mode 100644
index 00000000..9670c01a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/RSA.php
@@ -0,0 +1,3053 @@
+<?php
+
+/**
+ * Pure-PHP PKCS#1 (v2.1) compliant implementation of RSA.
+ *
+ * PHP version 5
+ *
+ * Here's an example of how to encrypt and decrypt text with this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $rsa = new \phpseclib\Crypt\RSA();
+ * extract($rsa->createKey());
+ *
+ * $plaintext = 'terrafrost';
+ *
+ * $rsa->loadKey($privatekey);
+ * $ciphertext = $rsa->encrypt($plaintext);
+ *
+ * $rsa->loadKey($publickey);
+ * echo $rsa->decrypt($ciphertext);
+ * ?>
+ * </code>
+ *
+ * Here's an example of how to create signatures and verify signatures with this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $rsa = new \phpseclib\Crypt\RSA();
+ * extract($rsa->createKey());
+ *
+ * $plaintext = 'terrafrost';
+ *
+ * $rsa->loadKey($privatekey);
+ * $signature = $rsa->sign($plaintext);
+ *
+ * $rsa->loadKey($publickey);
+ * echo $rsa->verify($plaintext, $signature) ? 'verified' : 'unverified';
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package RSA
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2009 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+use phpseclib\Math\BigInteger;
+
+/**
+ * Pure-PHP PKCS#1 compliant implementation of RSA.
+ *
+ * @package RSA
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class RSA
+{
+ /**#@+
+ * @access public
+ * @see self::encrypt()
+ * @see self::decrypt()
+ */
+ /**
+ * Use {@link http://en.wikipedia.org/wiki/Optimal_Asymmetric_Encryption_Padding Optimal Asymmetric Encryption Padding}
+ * (OAEP) for encryption / decryption.
+ *
+ * Uses sha1 by default.
+ *
+ * @see self::setHash()
+ * @see self::setMGFHash()
+ */
+ const ENCRYPTION_OAEP = 1;
+ /**
+ * Use PKCS#1 padding.
+ *
+ * Although self::ENCRYPTION_OAEP offers more security, including PKCS#1 padding is necessary for purposes of backwards
+ * compatibility with protocols (like SSH-1) written before OAEP's introduction.
+ */
+ const ENCRYPTION_PKCS1 = 2;
+ /**
+ * Do not use any padding
+ *
+ * Although this method is not recommended it can none-the-less sometimes be useful if you're trying to decrypt some legacy
+ * stuff, if you're trying to diagnose why an encrypted message isn't decrypting, etc.
+ */
+ const ENCRYPTION_NONE = 3;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see self::sign()
+ * @see self::verify()
+ * @see self::setHash()
+ */
+ /**
+ * Use the Probabilistic Signature Scheme for signing
+ *
+ * Uses sha1 by default.
+ *
+ * @see self::setSaltLength()
+ * @see self::setMGFHash()
+ */
+ const SIGNATURE_PSS = 1;
+ /**
+ * Use the PKCS#1 scheme by default.
+ *
+ * Although self::SIGNATURE_PSS offers more security, including PKCS#1 signing is necessary for purposes of backwards
+ * compatibility with protocols (like SSH-2) written before PSS's introduction.
+ */
+ const SIGNATURE_PKCS1 = 2;
+ /**#@-*/
+
+ /**#@+
+ * @access private
+ * @see \phpseclib\Crypt\RSA::createKey()
+ */
+ /**
+ * ASN1 Integer
+ */
+ const ASN1_INTEGER = 2;
+ /**
+ * ASN1 Bit String
+ */
+ const ASN1_BITSTRING = 3;
+ /**
+ * ASN1 Octet String
+ */
+ const ASN1_OCTETSTRING = 4;
+ /**
+ * ASN1 Object Identifier
+ */
+ const ASN1_OBJECT = 6;
+ /**
+ * ASN1 Sequence (with the constucted bit set)
+ */
+ const ASN1_SEQUENCE = 48;
+ /**#@-*/
+
+ /**#@+
+ * @access private
+ * @see \phpseclib\Crypt\RSA::__construct()
+ */
+ /**
+ * To use the pure-PHP implementation
+ */
+ const MODE_INTERNAL = 1;
+ /**
+ * To use the OpenSSL library
+ *
+ * (if enabled; otherwise, the internal implementation will be used)
+ */
+ const MODE_OPENSSL = 2;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\Crypt\RSA::createKey()
+ * @see \phpseclib\Crypt\RSA::setPrivateKeyFormat()
+ */
+ /**
+ * PKCS#1 formatted private key
+ *
+ * Used by OpenSSH
+ */
+ const PRIVATE_FORMAT_PKCS1 = 0;
+ /**
+ * PuTTY formatted private key
+ */
+ const PRIVATE_FORMAT_PUTTY = 1;
+ /**
+ * XML formatted private key
+ */
+ const PRIVATE_FORMAT_XML = 2;
+ /**
+ * PKCS#8 formatted private key
+ */
+ const PRIVATE_FORMAT_PKCS8 = 8;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\Crypt\RSA::createKey()
+ * @see \phpseclib\Crypt\RSA::setPublicKeyFormat()
+ */
+ /**
+ * Raw public key
+ *
+ * An array containing two \phpseclib\Math\BigInteger objects.
+ *
+ * The exponent can be indexed with any of the following:
+ *
+ * 0, e, exponent, publicExponent
+ *
+ * The modulus can be indexed with any of the following:
+ *
+ * 1, n, modulo, modulus
+ */
+ const PUBLIC_FORMAT_RAW = 3;
+ /**
+ * PKCS#1 formatted public key (raw)
+ *
+ * Used by File/X509.php
+ *
+ * Has the following header:
+ *
+ * -----BEGIN RSA PUBLIC KEY-----
+ *
+ * Analogous to ssh-keygen's pem format (as specified by -m)
+ */
+ const PUBLIC_FORMAT_PKCS1 = 4;
+ const PUBLIC_FORMAT_PKCS1_RAW = 4;
+ /**
+ * XML formatted public key
+ */
+ const PUBLIC_FORMAT_XML = 5;
+ /**
+ * OpenSSH formatted public key
+ *
+ * Place in $HOME/.ssh/authorized_keys
+ */
+ const PUBLIC_FORMAT_OPENSSH = 6;
+ /**
+ * PKCS#1 formatted public key (encapsulated)
+ *
+ * Used by PHP's openssl_public_encrypt() and openssl's rsautl (when -pubin is set)
+ *
+ * Has the following header:
+ *
+ * -----BEGIN PUBLIC KEY-----
+ *
+ * Analogous to ssh-keygen's pkcs8 format (as specified by -m). Although PKCS8
+ * is specific to private keys it's basically creating a DER-encoded wrapper
+ * for keys. This just extends that same concept to public keys (much like ssh-keygen)
+ */
+ const PUBLIC_FORMAT_PKCS8 = 7;
+ /**#@-*/
+
+ /**
+ * Precomputed Zero
+ *
+ * @var \phpseclib\Math\BigInteger
+ * @access private
+ */
+ var $zero;
+
+ /**
+ * Precomputed One
+ *
+ * @var \phpseclib\Math\BigInteger
+ * @access private
+ */
+ var $one;
+
+ /**
+ * Private Key Format
+ *
+ * @var int
+ * @access private
+ */
+ var $privateKeyFormat = self::PRIVATE_FORMAT_PKCS1;
+
+ /**
+ * Public Key Format
+ *
+ * @var int
+ * @access public
+ */
+ var $publicKeyFormat = self::PUBLIC_FORMAT_PKCS8;
+
+ /**
+ * Modulus (ie. n)
+ *
+ * @var \phpseclib\Math\BigInteger
+ * @access private
+ */
+ var $modulus;
+
+ /**
+ * Modulus length
+ *
+ * @var \phpseclib\Math\BigInteger
+ * @access private
+ */
+ var $k;
+
+ /**
+ * Exponent (ie. e or d)
+ *
+ * @var \phpseclib\Math\BigInteger
+ * @access private
+ */
+ var $exponent;
+
+ /**
+ * Primes for Chinese Remainder Theorem (ie. p and q)
+ *
+ * @var array
+ * @access private
+ */
+ var $primes;
+
+ /**
+ * Exponents for Chinese Remainder Theorem (ie. dP and dQ)
+ *
+ * @var array
+ * @access private
+ */
+ var $exponents;
+
+ /**
+ * Coefficients for Chinese Remainder Theorem (ie. qInv)
+ *
+ * @var array
+ * @access private
+ */
+ var $coefficients;
+
+ /**
+ * Hash name
+ *
+ * @var string
+ * @access private
+ */
+ var $hashName;
+
+ /**
+ * Hash function
+ *
+ * @var \phpseclib\Crypt\Hash
+ * @access private
+ */
+ var $hash;
+
+ /**
+ * Length of hash function output
+ *
+ * @var int
+ * @access private
+ */
+ var $hLen;
+
+ /**
+ * Length of salt
+ *
+ * @var int
+ * @access private
+ */
+ var $sLen;
+
+ /**
+ * Hash function for the Mask Generation Function
+ *
+ * @var \phpseclib\Crypt\Hash
+ * @access private
+ */
+ var $mgfHash;
+
+ /**
+ * Length of MGF hash function output
+ *
+ * @var int
+ * @access private
+ */
+ var $mgfHLen;
+
+ /**
+ * Encryption mode
+ *
+ * @var int
+ * @access private
+ */
+ var $encryptionMode = self::ENCRYPTION_OAEP;
+
+ /**
+ * Signature mode
+ *
+ * @var int
+ * @access private
+ */
+ var $signatureMode = self::SIGNATURE_PSS;
+
+ /**
+ * Public Exponent
+ *
+ * @var mixed
+ * @access private
+ */
+ var $publicExponent = false;
+
+ /**
+ * Password
+ *
+ * @var string
+ * @access private
+ */
+ var $password = false;
+
+ /**
+ * Components
+ *
+ * For use with parsing XML formatted keys. PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
+ * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
+ *
+ * @see self::_start_element_handler()
+ * @var array
+ * @access private
+ */
+ var $components = array();
+
+ /**
+ * Current String
+ *
+ * For use with parsing XML formatted keys.
+ *
+ * @see self::_character_handler()
+ * @see self::_stop_element_handler()
+ * @var mixed
+ * @access private
+ */
+ var $current;
+
+ /**
+ * OpenSSL configuration file name.
+ *
+ * Set to null to use system configuration file.
+ * @see self::createKey()
+ * @var mixed
+ * @Access public
+ */
+ var $configFile;
+
+ /**
+ * Public key comment field.
+ *
+ * @var string
+ * @access private
+ */
+ var $comment = 'phpseclib-generated-key';
+
+ /**
+ * The constructor
+ *
+ * If you want to make use of the openssl extension, you'll need to set the mode manually, yourself. The reason
+ * \phpseclib\Crypt\RSA doesn't do it is because OpenSSL doesn't fail gracefully. openssl_pkey_new(), in particular, requires
+ * openssl.cnf be present somewhere and, unfortunately, the only real way to find out is too late.
+ *
+ * @return \phpseclib\Crypt\RSA
+ * @access public
+ */
+ function __construct()
+ {
+ $this->configFile = dirname(__FILE__) . '/../openssl.cnf';
+
+ if (!defined('CRYPT_RSA_MODE')) {
+ switch (true) {
+ // Math/BigInteger's openssl requirements are a little less stringent than Crypt/RSA's. in particular,
+ // Math/BigInteger doesn't require an openssl.cfg file whereas Crypt/RSA does. so if Math/BigInteger
+ // can't use OpenSSL it can be pretty trivially assumed, then, that Crypt/RSA can't either.
+ case defined('MATH_BIGINTEGER_OPENSSL_DISABLE'):
+ define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
+ break;
+ case extension_loaded('openssl') && file_exists($this->configFile):
+ // some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work
+ ob_start();
+ @phpinfo();
+ $content = ob_get_contents();
+ ob_end_clean();
+
+ preg_match_all('#OpenSSL (Header|Library) Version(.*)#im', $content, $matches);
+
+ $versions = array();
+ if (!empty($matches[1])) {
+ for ($i = 0; $i < count($matches[1]); $i++) {
+ $fullVersion = trim(str_replace('=>', '', strip_tags($matches[2][$i])));
+
+ // Remove letter part in OpenSSL version
+ if (!preg_match('/(\d+\.\d+\.\d+)/i', $fullVersion, $m)) {
+ $versions[$matches[1][$i]] = $fullVersion;
+ } else {
+ $versions[$matches[1][$i]] = $m[0];
+ }
+ }
+ }
+
+ // it doesn't appear that OpenSSL versions were reported upon until PHP 5.3+
+ switch (true) {
+ case !isset($versions['Header']):
+ case !isset($versions['Library']):
+ case $versions['Header'] == $versions['Library']:
+ case version_compare($versions['Header'], '1.0.0') >= 0 && version_compare($versions['Library'], '1.0.0') >= 0:
+ define('CRYPT_RSA_MODE', self::MODE_OPENSSL);
+ break;
+ default:
+ define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
+ define('MATH_BIGINTEGER_OPENSSL_DISABLE', true);
+ }
+ break;
+ default:
+ define('CRYPT_RSA_MODE', self::MODE_INTERNAL);
+ }
+ }
+
+ $this->zero = new BigInteger();
+ $this->one = new BigInteger(1);
+
+ $this->hash = new Hash('sha1');
+ $this->hLen = $this->hash->getLength();
+ $this->hashName = 'sha1';
+ $this->mgfHash = new Hash('sha1');
+ $this->mgfHLen = $this->mgfHash->getLength();
+ }
+
+ /**
+ * Create public / private key pair
+ *
+ * Returns an array with the following three elements:
+ * - 'privatekey': The private key.
+ * - 'publickey': The public key.
+ * - 'partialkey': A partially computed key (if the execution time exceeded $timeout).
+ * Will need to be passed back to \phpseclib\Crypt\RSA::createKey() as the third parameter for further processing.
+ *
+ * @access public
+ * @param int $bits
+ * @param int $timeout
+ * @param array $p
+ */
+ function createKey($bits = 1024, $timeout = false, $partial = array())
+ {
+ if (!defined('CRYPT_RSA_EXPONENT')) {
+ // http://en.wikipedia.org/wiki/65537_%28number%29
+ define('CRYPT_RSA_EXPONENT', '65537');
+ }
+ // per <http://cseweb.ucsd.edu/~hovav/dist/survey.pdf#page=5>, this number ought not result in primes smaller
+ // than 256 bits. as a consequence if the key you're trying to create is 1024 bits and you've set CRYPT_RSA_SMALLEST_PRIME
+ // to 384 bits then you're going to get a 384 bit prime and a 640 bit prime (384 + 1024 % 384). at least if
+ // CRYPT_RSA_MODE is set to self::MODE_INTERNAL. if CRYPT_RSA_MODE is set to self::MODE_OPENSSL then
+ // CRYPT_RSA_SMALLEST_PRIME is ignored (ie. multi-prime RSA support is more intended as a way to speed up RSA key
+ // generation when there's a chance neither gmp nor OpenSSL are installed)
+ if (!defined('CRYPT_RSA_SMALLEST_PRIME')) {
+ define('CRYPT_RSA_SMALLEST_PRIME', 4096);
+ }
+
+ // OpenSSL uses 65537 as the exponent and requires RSA keys be 384 bits minimum
+ if (CRYPT_RSA_MODE == self::MODE_OPENSSL && $bits >= 384 && CRYPT_RSA_EXPONENT == 65537) {
+ $config = array();
+ if (isset($this->configFile)) {
+ $config['config'] = $this->configFile;
+ }
+ $rsa = openssl_pkey_new(array('private_key_bits' => $bits) + $config);
+ openssl_pkey_export($rsa, $privatekey, null, $config);
+ $publickey = openssl_pkey_get_details($rsa);
+ $publickey = $publickey['key'];
+
+ $privatekey = call_user_func_array(array($this, '_convertPrivateKey'), array_values($this->_parseKey($privatekey, self::PRIVATE_FORMAT_PKCS1)));
+ $publickey = call_user_func_array(array($this, '_convertPublicKey'), array_values($this->_parseKey($publickey, self::PUBLIC_FORMAT_PKCS1)));
+
+ // clear the buffer of error strings stemming from a minimalistic openssl.cnf
+ while (openssl_error_string() !== false) {
+ }
+
+ return array(
+ 'privatekey' => $privatekey,
+ 'publickey' => $publickey,
+ 'partialkey' => false
+ );
+ }
+
+ static $e;
+ if (!isset($e)) {
+ $e = new BigInteger(CRYPT_RSA_EXPONENT);
+ }
+
+ extract($this->_generateMinMax($bits));
+ $absoluteMin = $min;
+ $temp = $bits >> 1; // divide by two to see how many bits P and Q would be
+ if ($temp > CRYPT_RSA_SMALLEST_PRIME) {
+ $num_primes = floor($bits / CRYPT_RSA_SMALLEST_PRIME);
+ $temp = CRYPT_RSA_SMALLEST_PRIME;
+ } else {
+ $num_primes = 2;
+ }
+ extract($this->_generateMinMax($temp + $bits % $temp));
+ $finalMax = $max;
+ extract($this->_generateMinMax($temp));
+
+ $generator = new BigInteger();
+
+ $n = $this->one->copy();
+ if (!empty($partial)) {
+ extract(unserialize($partial));
+ } else {
+ $exponents = $coefficients = $primes = array();
+ $lcm = array(
+ 'top' => $this->one->copy(),
+ 'bottom' => false
+ );
+ }
+
+ $start = time();
+ $i0 = count($primes) + 1;
+
+ do {
+ for ($i = $i0; $i <= $num_primes; $i++) {
+ if ($timeout !== false) {
+ $timeout-= time() - $start;
+ $start = time();
+ if ($timeout <= 0) {
+ return array(
+ 'privatekey' => '',
+ 'publickey' => '',
+ 'partialkey' => serialize(array(
+ 'primes' => $primes,
+ 'coefficients' => $coefficients,
+ 'lcm' => $lcm,
+ 'exponents' => $exponents
+ ))
+ );
+ }
+ }
+
+ if ($i == $num_primes) {
+ list($min, $temp) = $absoluteMin->divide($n);
+ if (!$temp->equals($this->zero)) {
+ $min = $min->add($this->one); // ie. ceil()
+ }
+ $primes[$i] = $generator->randomPrime($min, $finalMax, $timeout);
+ } else {
+ $primes[$i] = $generator->randomPrime($min, $max, $timeout);
+ }
+
+ if ($primes[$i] === false) { // if we've reached the timeout
+ if (count($primes) > 1) {
+ $partialkey = '';
+ } else {
+ array_pop($primes);
+ $partialkey = serialize(array(
+ 'primes' => $primes,
+ 'coefficients' => $coefficients,
+ 'lcm' => $lcm,
+ 'exponents' => $exponents
+ ));
+ }
+
+ return array(
+ 'privatekey' => '',
+ 'publickey' => '',
+ 'partialkey' => $partialkey
+ );
+ }
+
+ // the first coefficient is calculated differently from the rest
+ // ie. instead of being $primes[1]->modInverse($primes[2]), it's $primes[2]->modInverse($primes[1])
+ if ($i > 2) {
+ $coefficients[$i] = $n->modInverse($primes[$i]);
+ }
+
+ $n = $n->multiply($primes[$i]);
+
+ $temp = $primes[$i]->subtract($this->one);
+
+ // textbook RSA implementations use Euler's totient function instead of the least common multiple.
+ // see http://en.wikipedia.org/wiki/Euler%27s_totient_function
+ $lcm['top'] = $lcm['top']->multiply($temp);
+ $lcm['bottom'] = $lcm['bottom'] === false ? $temp : $lcm['bottom']->gcd($temp);
+
+ $exponents[$i] = $e->modInverse($temp);
+ }
+
+ list($temp) = $lcm['top']->divide($lcm['bottom']);
+ $gcd = $temp->gcd($e);
+ $i0 = 1;
+ } while (!$gcd->equals($this->one));
+
+ $d = $e->modInverse($temp);
+
+ $coefficients[2] = $primes[2]->modInverse($primes[1]);
+
+ // from <http://tools.ietf.org/html/rfc3447#appendix-A.1.2>:
+ // RSAPrivateKey ::= SEQUENCE {
+ // version Version,
+ // modulus INTEGER, -- n
+ // publicExponent INTEGER, -- e
+ // privateExponent INTEGER, -- d
+ // prime1 INTEGER, -- p
+ // prime2 INTEGER, -- q
+ // exponent1 INTEGER, -- d mod (p-1)
+ // exponent2 INTEGER, -- d mod (q-1)
+ // coefficient INTEGER, -- (inverse of q) mod p
+ // otherPrimeInfos OtherPrimeInfos OPTIONAL
+ // }
+
+ return array(
+ 'privatekey' => $this->_convertPrivateKey($n, $e, $d, $primes, $exponents, $coefficients),
+ 'publickey' => $this->_convertPublicKey($n, $e),
+ 'partialkey' => false
+ );
+ }
+
+ /**
+ * Convert a private key to the appropriate format.
+ *
+ * @access private
+ * @see self::setPrivateKeyFormat()
+ * @param string $RSAPrivateKey
+ * @return string
+ */
+ function _convertPrivateKey($n, $e, $d, $primes, $exponents, $coefficients)
+ {
+ $signed = $this->privateKeyFormat != self::PRIVATE_FORMAT_XML;
+ $num_primes = count($primes);
+ $raw = array(
+ 'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi
+ 'modulus' => $n->toBytes($signed),
+ 'publicExponent' => $e->toBytes($signed),
+ 'privateExponent' => $d->toBytes($signed),
+ 'prime1' => $primes[1]->toBytes($signed),
+ 'prime2' => $primes[2]->toBytes($signed),
+ 'exponent1' => $exponents[1]->toBytes($signed),
+ 'exponent2' => $exponents[2]->toBytes($signed),
+ 'coefficient' => $coefficients[2]->toBytes($signed)
+ );
+
+ // if the format in question does not support multi-prime rsa and multi-prime rsa was used,
+ // call _convertPublicKey() instead.
+ switch ($this->privateKeyFormat) {
+ case self::PRIVATE_FORMAT_XML:
+ if ($num_primes != 2) {
+ return false;
+ }
+ return "<RSAKeyValue>\r\n" .
+ ' <Modulus>' . base64_encode($raw['modulus']) . "</Modulus>\r\n" .
+ ' <Exponent>' . base64_encode($raw['publicExponent']) . "</Exponent>\r\n" .
+ ' <P>' . base64_encode($raw['prime1']) . "</P>\r\n" .
+ ' <Q>' . base64_encode($raw['prime2']) . "</Q>\r\n" .
+ ' <DP>' . base64_encode($raw['exponent1']) . "</DP>\r\n" .
+ ' <DQ>' . base64_encode($raw['exponent2']) . "</DQ>\r\n" .
+ ' <InverseQ>' . base64_encode($raw['coefficient']) . "</InverseQ>\r\n" .
+ ' <D>' . base64_encode($raw['privateExponent']) . "</D>\r\n" .
+ '</RSAKeyValue>';
+ break;
+ case self::PRIVATE_FORMAT_PUTTY:
+ if ($num_primes != 2) {
+ return false;
+ }
+ $key = "PuTTY-User-Key-File-2: ssh-rsa\r\nEncryption: ";
+ $encryption = (!empty($this->password) || is_string($this->password)) ? 'aes256-cbc' : 'none';
+ $key.= $encryption;
+ $key.= "\r\nComment: " . $this->comment . "\r\n";
+ $public = pack(
+ 'Na*Na*Na*',
+ strlen('ssh-rsa'),
+ 'ssh-rsa',
+ strlen($raw['publicExponent']),
+ $raw['publicExponent'],
+ strlen($raw['modulus']),
+ $raw['modulus']
+ );
+ $source = pack(
+ 'Na*Na*Na*Na*',
+ strlen('ssh-rsa'),
+ 'ssh-rsa',
+ strlen($encryption),
+ $encryption,
+ strlen($this->comment),
+ $this->comment,
+ strlen($public),
+ $public
+ );
+ $public = base64_encode($public);
+ $key.= "Public-Lines: " . ((strlen($public) + 63) >> 6) . "\r\n";
+ $key.= chunk_split($public, 64);
+ $private = pack(
+ 'Na*Na*Na*Na*',
+ strlen($raw['privateExponent']),
+ $raw['privateExponent'],
+ strlen($raw['prime1']),
+ $raw['prime1'],
+ strlen($raw['prime2']),
+ $raw['prime2'],
+ strlen($raw['coefficient']),
+ $raw['coefficient']
+ );
+ if (empty($this->password) && !is_string($this->password)) {
+ $source.= pack('Na*', strlen($private), $private);
+ $hashkey = 'putty-private-key-file-mac-key';
+ } else {
+ $private.= Random::string(16 - (strlen($private) & 15));
+ $source.= pack('Na*', strlen($private), $private);
+ $sequence = 0;
+ $symkey = '';
+ while (strlen($symkey) < 32) {
+ $temp = pack('Na*', $sequence++, $this->password);
+ $symkey.= pack('H*', sha1($temp));
+ }
+ $symkey = substr($symkey, 0, 32);
+ $crypto = new AES();
+
+ $crypto->setKey($symkey);
+ $crypto->disablePadding();
+ $private = $crypto->encrypt($private);
+ $hashkey = 'putty-private-key-file-mac-key' . $this->password;
+ }
+
+ $private = base64_encode($private);
+ $key.= 'Private-Lines: ' . ((strlen($private) + 63) >> 6) . "\r\n";
+ $key.= chunk_split($private, 64);
+ $hash = new Hash('sha1');
+ $hash->setKey(pack('H*', sha1($hashkey)));
+ $key.= 'Private-MAC: ' . bin2hex($hash->hash($source)) . "\r\n";
+
+ return $key;
+ default: // eg. self::PRIVATE_FORMAT_PKCS1
+ $components = array();
+ foreach ($raw as $name => $value) {
+ $components[$name] = pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($value)), $value);
+ }
+
+ $RSAPrivateKey = implode('', $components);
+
+ if ($num_primes > 2) {
+ $OtherPrimeInfos = '';
+ for ($i = 3; $i <= $num_primes; $i++) {
+ // OtherPrimeInfos ::= SEQUENCE SIZE(1..MAX) OF OtherPrimeInfo
+ //
+ // OtherPrimeInfo ::= SEQUENCE {
+ // prime INTEGER, -- ri
+ // exponent INTEGER, -- di
+ // coefficient INTEGER -- ti
+ // }
+ $OtherPrimeInfo = pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($primes[$i]->toBytes(true))), $primes[$i]->toBytes(true));
+ $OtherPrimeInfo.= pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($exponents[$i]->toBytes(true))), $exponents[$i]->toBytes(true));
+ $OtherPrimeInfo.= pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($coefficients[$i]->toBytes(true))), $coefficients[$i]->toBytes(true));
+ $OtherPrimeInfos.= pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($OtherPrimeInfo)), $OtherPrimeInfo);
+ }
+ $RSAPrivateKey.= pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($OtherPrimeInfos)), $OtherPrimeInfos);
+ }
+
+ $RSAPrivateKey = pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($RSAPrivateKey)), $RSAPrivateKey);
+
+ if ($this->privateKeyFormat == self::PRIVATE_FORMAT_PKCS8) {
+ $rsaOID = pack('H*', '300d06092a864886f70d0101010500'); // hex version of MA0GCSqGSIb3DQEBAQUA
+ $RSAPrivateKey = pack(
+ 'Ca*a*Ca*a*',
+ self::ASN1_INTEGER,
+ "\01\00",
+ $rsaOID,
+ 4,
+ $this->_encodeLength(strlen($RSAPrivateKey)),
+ $RSAPrivateKey
+ );
+ $RSAPrivateKey = pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($RSAPrivateKey)), $RSAPrivateKey);
+ if (!empty($this->password) || is_string($this->password)) {
+ $salt = Random::string(8);
+ $iterationCount = 2048;
+
+ $crypto = new DES();
+ $crypto->setPassword($this->password, 'pbkdf1', 'md5', $salt, $iterationCount);
+ $RSAPrivateKey = $crypto->encrypt($RSAPrivateKey);
+
+ $parameters = pack(
+ 'Ca*a*Ca*N',
+ self::ASN1_OCTETSTRING,
+ $this->_encodeLength(strlen($salt)),
+ $salt,
+ self::ASN1_INTEGER,
+ $this->_encodeLength(4),
+ $iterationCount
+ );
+ $pbeWithMD5AndDES_CBC = "\x2a\x86\x48\x86\xf7\x0d\x01\x05\x03";
+
+ $encryptionAlgorithm = pack(
+ 'Ca*a*Ca*a*',
+ self::ASN1_OBJECT,
+ $this->_encodeLength(strlen($pbeWithMD5AndDES_CBC)),
+ $pbeWithMD5AndDES_CBC,
+ self::ASN1_SEQUENCE,
+ $this->_encodeLength(strlen($parameters)),
+ $parameters
+ );
+
+ $RSAPrivateKey = pack(
+ 'Ca*a*Ca*a*',
+ self::ASN1_SEQUENCE,
+ $this->_encodeLength(strlen($encryptionAlgorithm)),
+ $encryptionAlgorithm,
+ self::ASN1_OCTETSTRING,
+ $this->_encodeLength(strlen($RSAPrivateKey)),
+ $RSAPrivateKey
+ );
+
+ $RSAPrivateKey = pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($RSAPrivateKey)), $RSAPrivateKey);
+
+ $RSAPrivateKey = "-----BEGIN ENCRYPTED PRIVATE KEY-----\r\n" .
+ chunk_split(base64_encode($RSAPrivateKey), 64) .
+ '-----END ENCRYPTED PRIVATE KEY-----';
+ } else {
+ $RSAPrivateKey = "-----BEGIN PRIVATE KEY-----\r\n" .
+ chunk_split(base64_encode($RSAPrivateKey), 64) .
+ '-----END PRIVATE KEY-----';
+ }
+ return $RSAPrivateKey;
+ }
+
+ if (!empty($this->password) || is_string($this->password)) {
+ $iv = Random::string(8);
+ $symkey = pack('H*', md5($this->password . $iv)); // symkey is short for symmetric key
+ $symkey.= substr(pack('H*', md5($symkey . $this->password . $iv)), 0, 8);
+ $des = new TripleDES();
+ $des->setKey($symkey);
+ $des->setIV($iv);
+ $iv = strtoupper(bin2hex($iv));
+ $RSAPrivateKey = "-----BEGIN RSA PRIVATE KEY-----\r\n" .
+ "Proc-Type: 4,ENCRYPTED\r\n" .
+ "DEK-Info: DES-EDE3-CBC,$iv\r\n" .
+ "\r\n" .
+ chunk_split(base64_encode($des->encrypt($RSAPrivateKey)), 64) .
+ '-----END RSA PRIVATE KEY-----';
+ } else {
+ $RSAPrivateKey = "-----BEGIN RSA PRIVATE KEY-----\r\n" .
+ chunk_split(base64_encode($RSAPrivateKey), 64) .
+ '-----END RSA PRIVATE KEY-----';
+ }
+
+ return $RSAPrivateKey;
+ }
+ }
+
+ /**
+ * Convert a public key to the appropriate format
+ *
+ * @access private
+ * @see self::setPublicKeyFormat()
+ * @param string $RSAPrivateKey
+ * @return string
+ */
+ function _convertPublicKey($n, $e)
+ {
+ $signed = $this->publicKeyFormat != self::PUBLIC_FORMAT_XML;
+
+ $modulus = $n->toBytes($signed);
+ $publicExponent = $e->toBytes($signed);
+
+ switch ($this->publicKeyFormat) {
+ case self::PUBLIC_FORMAT_RAW:
+ return array('e' => $e->copy(), 'n' => $n->copy());
+ case self::PUBLIC_FORMAT_XML:
+ return "<RSAKeyValue>\r\n" .
+ ' <Modulus>' . base64_encode($modulus) . "</Modulus>\r\n" .
+ ' <Exponent>' . base64_encode($publicExponent) . "</Exponent>\r\n" .
+ '</RSAKeyValue>';
+ break;
+ case self::PUBLIC_FORMAT_OPENSSH:
+ // from <http://tools.ietf.org/html/rfc4253#page-15>:
+ // string "ssh-rsa"
+ // mpint e
+ // mpint n
+ $RSAPublicKey = pack('Na*Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($publicExponent), $publicExponent, strlen($modulus), $modulus);
+ $RSAPublicKey = 'ssh-rsa ' . base64_encode($RSAPublicKey) . ' ' . $this->comment;
+
+ return $RSAPublicKey;
+ default: // eg. self::PUBLIC_FORMAT_PKCS1_RAW or self::PUBLIC_FORMAT_PKCS1
+ // from <http://tools.ietf.org/html/rfc3447#appendix-A.1.1>:
+ // RSAPublicKey ::= SEQUENCE {
+ // modulus INTEGER, -- n
+ // publicExponent INTEGER -- e
+ // }
+ $components = array(
+ 'modulus' => pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($modulus)), $modulus),
+ 'publicExponent' => pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($publicExponent)), $publicExponent)
+ );
+
+ $RSAPublicKey = pack(
+ 'Ca*a*a*',
+ self::ASN1_SEQUENCE,
+ $this->_encodeLength(strlen($components['modulus']) + strlen($components['publicExponent'])),
+ $components['modulus'],
+ $components['publicExponent']
+ );
+
+ if ($this->publicKeyFormat == self::PUBLIC_FORMAT_PKCS1_RAW) {
+ $RSAPublicKey = "-----BEGIN RSA PUBLIC KEY-----\r\n" .
+ chunk_split(base64_encode($RSAPublicKey), 64) .
+ '-----END RSA PUBLIC KEY-----';
+ } else {
+ // sequence(oid(1.2.840.113549.1.1.1), null)) = rsaEncryption.
+ $rsaOID = pack('H*', '300d06092a864886f70d0101010500'); // hex version of MA0GCSqGSIb3DQEBAQUA
+ $RSAPublicKey = chr(0) . $RSAPublicKey;
+ $RSAPublicKey = chr(3) . $this->_encodeLength(strlen($RSAPublicKey)) . $RSAPublicKey;
+
+ $RSAPublicKey = pack(
+ 'Ca*a*',
+ self::ASN1_SEQUENCE,
+ $this->_encodeLength(strlen($rsaOID . $RSAPublicKey)),
+ $rsaOID . $RSAPublicKey
+ );
+
+ $RSAPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" .
+ chunk_split(base64_encode($RSAPublicKey), 64) .
+ '-----END PUBLIC KEY-----';
+ }
+
+ return $RSAPublicKey;
+ }
+ }
+
+ /**
+ * Break a public or private key down into its constituant components
+ *
+ * @access private
+ * @see self::_convertPublicKey()
+ * @see self::_convertPrivateKey()
+ * @param string $key
+ * @param int $type
+ * @return array
+ */
+ function _parseKey($key, $type)
+ {
+ if ($type != self::PUBLIC_FORMAT_RAW && !is_string($key)) {
+ return false;
+ }
+
+ switch ($type) {
+ case self::PUBLIC_FORMAT_RAW:
+ if (!is_array($key)) {
+ return false;
+ }
+ $components = array();
+ switch (true) {
+ case isset($key['e']):
+ $components['publicExponent'] = $key['e']->copy();
+ break;
+ case isset($key['exponent']):
+ $components['publicExponent'] = $key['exponent']->copy();
+ break;
+ case isset($key['publicExponent']):
+ $components['publicExponent'] = $key['publicExponent']->copy();
+ break;
+ case isset($key[0]):
+ $components['publicExponent'] = $key[0]->copy();
+ }
+ switch (true) {
+ case isset($key['n']):
+ $components['modulus'] = $key['n']->copy();
+ break;
+ case isset($key['modulo']):
+ $components['modulus'] = $key['modulo']->copy();
+ break;
+ case isset($key['modulus']):
+ $components['modulus'] = $key['modulus']->copy();
+ break;
+ case isset($key[1]):
+ $components['modulus'] = $key[1]->copy();
+ }
+ return isset($components['modulus']) && isset($components['publicExponent']) ? $components : false;
+ case self::PRIVATE_FORMAT_PKCS1:
+ case self::PRIVATE_FORMAT_PKCS8:
+ case self::PUBLIC_FORMAT_PKCS1:
+ /* Although PKCS#1 proposes a format that public and private keys can use, encrypting them is
+ "outside the scope" of PKCS#1. PKCS#1 then refers you to PKCS#12 and PKCS#15 if you're wanting to
+ protect private keys, however, that's not what OpenSSL* does. OpenSSL protects private keys by adding
+ two new "fields" to the key - DEK-Info and Proc-Type. These fields are discussed here:
+
+ http://tools.ietf.org/html/rfc1421#section-4.6.1.1
+ http://tools.ietf.org/html/rfc1421#section-4.6.1.3
+
+ DES-EDE3-CBC as an algorithm, however, is not discussed anywhere, near as I can tell.
+ DES-CBC and DES-EDE are discussed in RFC1423, however, DES-EDE3-CBC isn't, nor is its key derivation
+ function. As is, the definitive authority on this encoding scheme isn't the IETF but rather OpenSSL's
+ own implementation. ie. the implementation *is* the standard and any bugs that may exist in that
+ implementation are part of the standard, as well.
+
+ * OpenSSL is the de facto standard. It's utilized by OpenSSH and other projects */
+ if (preg_match('#DEK-Info: (.+),(.+)#', $key, $matches)) {
+ $iv = pack('H*', trim($matches[2]));
+ $symkey = pack('H*', md5($this->password . substr($iv, 0, 8))); // symkey is short for symmetric key
+ $symkey.= pack('H*', md5($symkey . $this->password . substr($iv, 0, 8)));
+ // remove the Proc-Type / DEK-Info sections as they're no longer needed
+ $key = preg_replace('#^(?:Proc-Type|DEK-Info): .*#m', '', $key);
+ $ciphertext = $this->_extractBER($key);
+ if ($ciphertext === false) {
+ $ciphertext = $key;
+ }
+ switch ($matches[1]) {
+ case 'AES-256-CBC':
+ $crypto = new AES();
+ break;
+ case 'AES-128-CBC':
+ $symkey = substr($symkey, 0, 16);
+ $crypto = new AES();
+ break;
+ case 'DES-EDE3-CFB':
+ $crypto = new TripleDES(Base::MODE_CFB);
+ break;
+ case 'DES-EDE3-CBC':
+ $symkey = substr($symkey, 0, 24);
+ $crypto = new TripleDES();
+ break;
+ case 'DES-CBC':
+ $crypto = new DES();
+ break;
+ default:
+ return false;
+ }
+ $crypto->setKey($symkey);
+ $crypto->setIV($iv);
+ $decoded = $crypto->decrypt($ciphertext);
+ } else {
+ $decoded = $this->_extractBER($key);
+ }
+
+ if ($decoded !== false) {
+ $key = $decoded;
+ }
+
+ $components = array();
+
+ if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
+ return false;
+ }
+ if ($this->_decodeLength($key) != strlen($key)) {
+ return false;
+ }
+
+ $tag = ord($this->_string_shift($key));
+ /* intended for keys for which OpenSSL's asn1parse returns the following:
+
+ 0:d=0 hl=4 l= 631 cons: SEQUENCE
+ 4:d=1 hl=2 l= 1 prim: INTEGER :00
+ 7:d=1 hl=2 l= 13 cons: SEQUENCE
+ 9:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption
+ 20:d=2 hl=2 l= 0 prim: NULL
+ 22:d=1 hl=4 l= 609 prim: OCTET STRING
+
+ ie. PKCS8 keys*/
+
+ if ($tag == self::ASN1_INTEGER && substr($key, 0, 3) == "\x01\x00\x30") {
+ $this->_string_shift($key, 3);
+ $tag = self::ASN1_SEQUENCE;
+ }
+
+ if ($tag == self::ASN1_SEQUENCE) {
+ $temp = $this->_string_shift($key, $this->_decodeLength($key));
+ if (ord($this->_string_shift($temp)) != self::ASN1_OBJECT) {
+ return false;
+ }
+ $length = $this->_decodeLength($temp);
+ switch ($this->_string_shift($temp, $length)) {
+ case "\x2a\x86\x48\x86\xf7\x0d\x01\x01\x01": // rsaEncryption
+ break;
+ case "\x2a\x86\x48\x86\xf7\x0d\x01\x05\x03": // pbeWithMD5AndDES-CBC
+ /*
+ PBEParameter ::= SEQUENCE {
+ salt OCTET STRING (SIZE(8)),
+ iterationCount INTEGER }
+ */
+ if (ord($this->_string_shift($temp)) != self::ASN1_SEQUENCE) {
+ return false;
+ }
+ if ($this->_decodeLength($temp) != strlen($temp)) {
+ return false;
+ }
+ $this->_string_shift($temp); // assume it's an octet string
+ $salt = $this->_string_shift($temp, $this->_decodeLength($temp));
+ if (ord($this->_string_shift($temp)) != self::ASN1_INTEGER) {
+ return false;
+ }
+ $this->_decodeLength($temp);
+ list(, $iterationCount) = unpack('N', str_pad($temp, 4, chr(0), STR_PAD_LEFT));
+ $this->_string_shift($key); // assume it's an octet string
+ $length = $this->_decodeLength($key);
+ if (strlen($key) != $length) {
+ return false;
+ }
+
+ $crypto = new DES();
+ $crypto->setPassword($this->password, 'pbkdf1', 'md5', $salt, $iterationCount);
+ $key = $crypto->decrypt($key);
+ if ($key === false) {
+ return false;
+ }
+ return $this->_parseKey($key, self::PRIVATE_FORMAT_PKCS1);
+ default:
+ return false;
+ }
+ /* intended for keys for which OpenSSL's asn1parse returns the following:
+
+ 0:d=0 hl=4 l= 290 cons: SEQUENCE
+ 4:d=1 hl=2 l= 13 cons: SEQUENCE
+ 6:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption
+ 17:d=2 hl=2 l= 0 prim: NULL
+ 19:d=1 hl=4 l= 271 prim: BIT STRING */
+ $tag = ord($this->_string_shift($key)); // skip over the BIT STRING / OCTET STRING tag
+ $this->_decodeLength($key); // skip over the BIT STRING / OCTET STRING length
+ // "The initial octet shall encode, as an unsigned binary integer wtih bit 1 as the least significant bit, the number of
+ // unused bits in the final subsequent octet. The number shall be in the range zero to seven."
+ // -- http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf (section 8.6.2.2)
+ if ($tag == self::ASN1_BITSTRING) {
+ $this->_string_shift($key);
+ }
+ if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
+ return false;
+ }
+ if ($this->_decodeLength($key) != strlen($key)) {
+ return false;
+ }
+ $tag = ord($this->_string_shift($key));
+ }
+ if ($tag != self::ASN1_INTEGER) {
+ return false;
+ }
+
+ $length = $this->_decodeLength($key);
+ $temp = $this->_string_shift($key, $length);
+ if (strlen($temp) != 1 || ord($temp) > 2) {
+ $components['modulus'] = new BigInteger($temp, 256);
+ $this->_string_shift($key); // skip over self::ASN1_INTEGER
+ $length = $this->_decodeLength($key);
+ $components[$type == self::PUBLIC_FORMAT_PKCS1 ? 'publicExponent' : 'privateExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
+
+ return $components;
+ }
+ if (ord($this->_string_shift($key)) != self::ASN1_INTEGER) {
+ return false;
+ }
+ $length = $this->_decodeLength($key);
+ $components['modulus'] = new BigInteger($this->_string_shift($key, $length), 256);
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['publicExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['privateExponent'] = new BigInteger($this->_string_shift($key, $length), 256);
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['primes'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256));
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256);
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['exponents'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256));
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256);
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['coefficients'] = array(2 => new BigInteger($this->_string_shift($key, $length), 256));
+
+ if (!empty($key)) {
+ if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
+ return false;
+ }
+ $this->_decodeLength($key);
+ while (!empty($key)) {
+ if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) {
+ return false;
+ }
+ $this->_decodeLength($key);
+ $key = substr($key, 1);
+ $length = $this->_decodeLength($key);
+ $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256);
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256);
+ $this->_string_shift($key);
+ $length = $this->_decodeLength($key);
+ $components['coefficients'][] = new BigInteger($this->_string_shift($key, $length), 256);
+ }
+ }
+
+ return $components;
+ case self::PUBLIC_FORMAT_OPENSSH:
+ $parts = explode(' ', $key, 3);
+
+ $key = isset($parts[1]) ? base64_decode($parts[1]) : false;
+ if ($key === false) {
+ return false;
+ }
+
+ $comment = isset($parts[2]) ? $parts[2] : false;
+
+ $cleanup = substr($key, 0, 11) == "\0\0\0\7ssh-rsa";
+
+ if (strlen($key) <= 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($key, 4)));
+ $publicExponent = new BigInteger($this->_string_shift($key, $length), -256);
+ if (strlen($key) <= 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($key, 4)));
+ $modulus = new BigInteger($this->_string_shift($key, $length), -256);
+
+ if ($cleanup && strlen($key)) {
+ if (strlen($key) <= 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($key, 4)));
+ $realModulus = new BigInteger($this->_string_shift($key, $length), -256);
+ return strlen($key) ? false : array(
+ 'modulus' => $realModulus,
+ 'publicExponent' => $modulus,
+ 'comment' => $comment
+ );
+ } else {
+ return strlen($key) ? false : array(
+ 'modulus' => $modulus,
+ 'publicExponent' => $publicExponent,
+ 'comment' => $comment
+ );
+ }
+ // http://www.w3.org/TR/xmldsig-core/#sec-RSAKeyValue
+ // http://en.wikipedia.org/wiki/XML_Signature
+ case self::PRIVATE_FORMAT_XML:
+ case self::PUBLIC_FORMAT_XML:
+ $this->components = array();
+
+ $xml = xml_parser_create('UTF-8');
+ xml_set_object($xml, $this);
+ xml_set_element_handler($xml, '_start_element_handler', '_stop_element_handler');
+ xml_set_character_data_handler($xml, '_data_handler');
+ // add <xml></xml> to account for "dangling" tags like <BitStrength>...</BitStrength> that are sometimes added
+ if (!xml_parse($xml, '<xml>' . $key . '</xml>')) {
+ return false;
+ }
+
+ return isset($this->components['modulus']) && isset($this->components['publicExponent']) ? $this->components : false;
+ // from PuTTY's SSHPUBK.C
+ case self::PRIVATE_FORMAT_PUTTY:
+ $components = array();
+ $key = preg_split('#\r\n|\r|\n#', $key);
+ $type = trim(preg_replace('#PuTTY-User-Key-File-2: (.+)#', '$1', $key[0]));
+ if ($type != 'ssh-rsa') {
+ return false;
+ }
+ $encryption = trim(preg_replace('#Encryption: (.+)#', '$1', $key[1]));
+ $comment = trim(preg_replace('#Comment: (.+)#', '$1', $key[2]));
+
+ $publicLength = trim(preg_replace('#Public-Lines: (\d+)#', '$1', $key[3]));
+ $public = base64_decode(implode('', array_map('trim', array_slice($key, 4, $publicLength))));
+ $public = substr($public, 11);
+ extract(unpack('Nlength', $this->_string_shift($public, 4)));
+ $components['publicExponent'] = new BigInteger($this->_string_shift($public, $length), -256);
+ extract(unpack('Nlength', $this->_string_shift($public, 4)));
+ $components['modulus'] = new BigInteger($this->_string_shift($public, $length), -256);
+
+ $privateLength = trim(preg_replace('#Private-Lines: (\d+)#', '$1', $key[$publicLength + 4]));
+ $private = base64_decode(implode('', array_map('trim', array_slice($key, $publicLength + 5, $privateLength))));
+
+ switch ($encryption) {
+ case 'aes256-cbc':
+ $symkey = '';
+ $sequence = 0;
+ while (strlen($symkey) < 32) {
+ $temp = pack('Na*', $sequence++, $this->password);
+ $symkey.= pack('H*', sha1($temp));
+ }
+ $symkey = substr($symkey, 0, 32);
+ $crypto = new AES();
+ }
+
+ if ($encryption != 'none') {
+ $crypto->setKey($symkey);
+ $crypto->disablePadding();
+ $private = $crypto->decrypt($private);
+ if ($private === false) {
+ return false;
+ }
+ }
+
+ extract(unpack('Nlength', $this->_string_shift($private, 4)));
+ if (strlen($private) < $length) {
+ return false;
+ }
+ $components['privateExponent'] = new BigInteger($this->_string_shift($private, $length), -256);
+ extract(unpack('Nlength', $this->_string_shift($private, 4)));
+ if (strlen($private) < $length) {
+ return false;
+ }
+ $components['primes'] = array(1 => new BigInteger($this->_string_shift($private, $length), -256));
+ extract(unpack('Nlength', $this->_string_shift($private, 4)));
+ if (strlen($private) < $length) {
+ return false;
+ }
+ $components['primes'][] = new BigInteger($this->_string_shift($private, $length), -256);
+
+ $temp = $components['primes'][1]->subtract($this->one);
+ $components['exponents'] = array(1 => $components['publicExponent']->modInverse($temp));
+ $temp = $components['primes'][2]->subtract($this->one);
+ $components['exponents'][] = $components['publicExponent']->modInverse($temp);
+
+ extract(unpack('Nlength', $this->_string_shift($private, 4)));
+ if (strlen($private) < $length) {
+ return false;
+ }
+ $components['coefficients'] = array(2 => new BigInteger($this->_string_shift($private, $length), -256));
+
+ return $components;
+ }
+ }
+
+ /**
+ * Returns the key size
+ *
+ * More specifically, this returns the size of the modulo in bits.
+ *
+ * @access public
+ * @return int
+ */
+ function getSize()
+ {
+ return !isset($this->modulus) ? 0 : strlen($this->modulus->toBits());
+ }
+
+ /**
+ * Start Element Handler
+ *
+ * Called by xml_set_element_handler()
+ *
+ * @access private
+ * @param resource $parser
+ * @param string $name
+ * @param array $attribs
+ */
+ function _start_element_handler($parser, $name, $attribs)
+ {
+ //$name = strtoupper($name);
+ switch ($name) {
+ case 'MODULUS':
+ $this->current = &$this->components['modulus'];
+ break;
+ case 'EXPONENT':
+ $this->current = &$this->components['publicExponent'];
+ break;
+ case 'P':
+ $this->current = &$this->components['primes'][1];
+ break;
+ case 'Q':
+ $this->current = &$this->components['primes'][2];
+ break;
+ case 'DP':
+ $this->current = &$this->components['exponents'][1];
+ break;
+ case 'DQ':
+ $this->current = &$this->components['exponents'][2];
+ break;
+ case 'INVERSEQ':
+ $this->current = &$this->components['coefficients'][2];
+ break;
+ case 'D':
+ $this->current = &$this->components['privateExponent'];
+ }
+ $this->current = '';
+ }
+
+ /**
+ * Stop Element Handler
+ *
+ * Called by xml_set_element_handler()
+ *
+ * @access private
+ * @param resource $parser
+ * @param string $name
+ */
+ function _stop_element_handler($parser, $name)
+ {
+ if (isset($this->current)) {
+ $this->current = new BigInteger(base64_decode($this->current), 256);
+ unset($this->current);
+ }
+ }
+
+ /**
+ * Data Handler
+ *
+ * Called by xml_set_character_data_handler()
+ *
+ * @access private
+ * @param resource $parser
+ * @param string $data
+ */
+ function _data_handler($parser, $data)
+ {
+ if (!isset($this->current) || is_object($this->current)) {
+ return;
+ }
+ $this->current.= trim($data);
+ }
+
+ /**
+ * Loads a public or private key
+ *
+ * Returns true on success and false on failure (ie. an incorrect password was provided or the key was malformed)
+ *
+ * @access public
+ * @param string $key
+ * @param int $type optional
+ */
+ function loadKey($key, $type = false)
+ {
+ if ($key instanceof RSA) {
+ $this->privateKeyFormat = $key->privateKeyFormat;
+ $this->publicKeyFormat = $key->publicKeyFormat;
+ $this->k = $key->k;
+ $this->hLen = $key->hLen;
+ $this->sLen = $key->sLen;
+ $this->mgfHLen = $key->mgfHLen;
+ $this->encryptionMode = $key->encryptionMode;
+ $this->signatureMode = $key->signatureMode;
+ $this->password = $key->password;
+ $this->configFile = $key->configFile;
+ $this->comment = $key->comment;
+
+ if (is_object($key->hash)) {
+ $this->hash = new Hash($key->hash->getHash());
+ }
+ if (is_object($key->mgfHash)) {
+ $this->mgfHash = new Hash($key->mgfHash->getHash());
+ }
+
+ if (is_object($key->modulus)) {
+ $this->modulus = $key->modulus->copy();
+ }
+ if (is_object($key->exponent)) {
+ $this->exponent = $key->exponent->copy();
+ }
+ if (is_object($key->publicExponent)) {
+ $this->publicExponent = $key->publicExponent->copy();
+ }
+
+ $this->primes = array();
+ $this->exponents = array();
+ $this->coefficients = array();
+
+ foreach ($this->primes as $prime) {
+ $this->primes[] = $prime->copy();
+ }
+ foreach ($this->exponents as $exponent) {
+ $this->exponents[] = $exponent->copy();
+ }
+ foreach ($this->coefficients as $coefficient) {
+ $this->coefficients[] = $coefficient->copy();
+ }
+
+ return true;
+ }
+
+ if ($type === false) {
+ $types = array(
+ self::PUBLIC_FORMAT_RAW,
+ self::PRIVATE_FORMAT_PKCS1,
+ self::PRIVATE_FORMAT_XML,
+ self::PRIVATE_FORMAT_PUTTY,
+ self::PUBLIC_FORMAT_OPENSSH
+ );
+ foreach ($types as $type) {
+ $components = $this->_parseKey($key, $type);
+ if ($components !== false) {
+ break;
+ }
+ }
+ } else {
+ $components = $this->_parseKey($key, $type);
+ }
+
+ if ($components === false) {
+ $this->comment = null;
+ $this->modulus = null;
+ $this->k = null;
+ $this->exponent = null;
+ $this->primes = null;
+ $this->exponents = null;
+ $this->coefficients = null;
+ $this->publicExponent = null;
+
+ return false;
+ }
+
+ if (isset($components['comment']) && $components['comment'] !== false) {
+ $this->comment = $components['comment'];
+ }
+ $this->modulus = $components['modulus'];
+ $this->k = strlen($this->modulus->toBytes());
+ $this->exponent = isset($components['privateExponent']) ? $components['privateExponent'] : $components['publicExponent'];
+ if (isset($components['primes'])) {
+ $this->primes = $components['primes'];
+ $this->exponents = $components['exponents'];
+ $this->coefficients = $components['coefficients'];
+ $this->publicExponent = $components['publicExponent'];
+ } else {
+ $this->primes = array();
+ $this->exponents = array();
+ $this->coefficients = array();
+ $this->publicExponent = false;
+ }
+
+ switch ($type) {
+ case self::PUBLIC_FORMAT_OPENSSH:
+ case self::PUBLIC_FORMAT_RAW:
+ $this->setPublicKey();
+ break;
+ case self::PRIVATE_FORMAT_PKCS1:
+ switch (true) {
+ case strpos($key, '-BEGIN PUBLIC KEY-') !== false:
+ case strpos($key, '-BEGIN RSA PUBLIC KEY-') !== false:
+ $this->setPublicKey();
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Sets the password
+ *
+ * Private keys can be encrypted with a password. To unset the password, pass in the empty string or false.
+ * Or rather, pass in $password such that empty($password) && !is_string($password) is true.
+ *
+ * @see self::createKey()
+ * @see self::loadKey()
+ * @access public
+ * @param string $password
+ */
+ function setPassword($password = false)
+ {
+ $this->password = $password;
+ }
+
+ /**
+ * Defines the public key
+ *
+ * Some private key formats define the public exponent and some don't. Those that don't define it are problematic when
+ * used in certain contexts. For example, in SSH-2, RSA authentication works by sending the public key along with a
+ * message signed by the private key to the server. The SSH-2 server looks the public key up in an index of public keys
+ * and if it's present then proceeds to verify the signature. Problem is, if your private key doesn't include the public
+ * exponent this won't work unless you manually add the public exponent. phpseclib tries to guess if the key being used
+ * is the public key but in the event that it guesses incorrectly you might still want to explicitly set the key as being
+ * public.
+ *
+ * Do note that when a new key is loaded the index will be cleared.
+ *
+ * Returns true on success, false on failure
+ *
+ * @see self::getPublicKey()
+ * @access public
+ * @param string $key optional
+ * @param int $type optional
+ * @return bool
+ */
+ function setPublicKey($key = false, $type = false)
+ {
+ // if a public key has already been loaded return false
+ if (!empty($this->publicExponent)) {
+ return false;
+ }
+
+ if ($key === false && !empty($this->modulus)) {
+ $this->publicExponent = $this->exponent;
+ return true;
+ }
+
+ if ($type === false) {
+ $types = array(
+ self::PUBLIC_FORMAT_RAW,
+ self::PUBLIC_FORMAT_PKCS1,
+ self::PUBLIC_FORMAT_XML,
+ self::PUBLIC_FORMAT_OPENSSH
+ );
+ foreach ($types as $type) {
+ $components = $this->_parseKey($key, $type);
+ if ($components !== false) {
+ break;
+ }
+ }
+ } else {
+ $components = $this->_parseKey($key, $type);
+ }
+
+ if ($components === false) {
+ return false;
+ }
+
+ if (empty($this->modulus) || !$this->modulus->equals($components['modulus'])) {
+ $this->modulus = $components['modulus'];
+ $this->exponent = $this->publicExponent = $components['publicExponent'];
+ return true;
+ }
+
+ $this->publicExponent = $components['publicExponent'];
+
+ return true;
+ }
+
+ /**
+ * Defines the private key
+ *
+ * If phpseclib guessed a private key was a public key and loaded it as such it might be desirable to force
+ * phpseclib to treat the key as a private key. This function will do that.
+ *
+ * Do note that when a new key is loaded the index will be cleared.
+ *
+ * Returns true on success, false on failure
+ *
+ * @see self::getPublicKey()
+ * @access public
+ * @param string $key optional
+ * @param int $type optional
+ * @return bool
+ */
+ function setPrivateKey($key = false, $type = false)
+ {
+ if ($key === false && !empty($this->publicExponent)) {
+ $this->publicExponent = false;
+ return true;
+ }
+
+ $rsa = new RSA();
+ if (!$rsa->loadKey($key, $type)) {
+ return false;
+ }
+ $rsa->publicExponent = false;
+
+ // don't overwrite the old key if the new key is invalid
+ $this->loadKey($rsa);
+ return true;
+ }
+
+ /**
+ * Returns the public key
+ *
+ * The public key is only returned under two circumstances - if the private key had the public key embedded within it
+ * or if the public key was set via setPublicKey(). If the currently loaded key is supposed to be the public key this
+ * function won't return it since this library, for the most part, doesn't distinguish between public and private keys.
+ *
+ * @see self::getPublicKey()
+ * @access public
+ * @param string $key
+ * @param int $type optional
+ */
+ function getPublicKey($type = self::PUBLIC_FORMAT_PKCS8)
+ {
+ if (empty($this->modulus) || empty($this->publicExponent)) {
+ return false;
+ }
+
+ $oldFormat = $this->publicKeyFormat;
+ $this->publicKeyFormat = $type;
+ $temp = $this->_convertPublicKey($this->modulus, $this->publicExponent);
+ $this->publicKeyFormat = $oldFormat;
+ return $temp;
+ }
+
+ /**
+ * Returns the public key's fingerprint
+ *
+ * The public key's fingerprint is returned, which is equivalent to running `ssh-keygen -lf rsa.pub`. If there is
+ * no public key currently loaded, false is returned.
+ * Example output (md5): "c1:b1:30:29:d7:b8:de:6c:97:77:10:d7:46:41:63:87" (as specified by RFC 4716)
+ *
+ * @access public
+ * @param string $algorithm The hashing algorithm to be used. Valid options are 'md5' and 'sha256'. False is returned
+ * for invalid values.
+ * @return mixed
+ */
+ function getPublicKeyFingerprint($algorithm = 'md5')
+ {
+ if (empty($this->modulus) || empty($this->publicExponent)) {
+ return false;
+ }
+
+ $modulus = $this->modulus->toBytes(true);
+ $publicExponent = $this->publicExponent->toBytes(true);
+
+ $RSAPublicKey = pack('Na*Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($publicExponent), $publicExponent, strlen($modulus), $modulus);
+
+ switch ($algorithm) {
+ case 'sha256':
+ $hash = new Hash('sha256');
+ $base = base64_encode($hash->hash($RSAPublicKey));
+ return substr($base, 0, strlen($base) - 1);
+ case 'md5':
+ return substr(chunk_split(md5($RSAPublicKey), 2, ':'), 0, -1);
+ default:
+ return false;
+ }
+ }
+
+ /**
+ * Returns the private key
+ *
+ * The private key is only returned if the currently loaded key contains the constituent prime numbers.
+ *
+ * @see self::getPublicKey()
+ * @access public
+ * @param string $key
+ * @param int $type optional
+ * @return mixed
+ */
+ function getPrivateKey($type = self::PUBLIC_FORMAT_PKCS1)
+ {
+ if (empty($this->primes)) {
+ return false;
+ }
+
+ $oldFormat = $this->privateKeyFormat;
+ $this->privateKeyFormat = $type;
+ $temp = $this->_convertPrivateKey($this->modulus, $this->publicExponent, $this->exponent, $this->primes, $this->exponents, $this->coefficients);
+ $this->privateKeyFormat = $oldFormat;
+ return $temp;
+ }
+
+ /**
+ * Returns a minimalistic private key
+ *
+ * Returns the private key without the prime number constituants. Structurally identical to a public key that
+ * hasn't been set as the public key
+ *
+ * @see self::getPrivateKey()
+ * @access private
+ * @param string $key
+ * @param int $type optional
+ */
+ function _getPrivatePublicKey($mode = self::PUBLIC_FORMAT_PKCS8)
+ {
+ if (empty($this->modulus) || empty($this->exponent)) {
+ return false;
+ }
+
+ $oldFormat = $this->publicKeyFormat;
+ $this->publicKeyFormat = $mode;
+ $temp = $this->_convertPublicKey($this->modulus, $this->exponent);
+ $this->publicKeyFormat = $oldFormat;
+ return $temp;
+ }
+
+ /**
+ * __toString() magic method
+ *
+ * @access public
+ * @return string
+ */
+ function __toString()
+ {
+ $key = $this->getPrivateKey($this->privateKeyFormat);
+ if ($key !== false) {
+ return $key;
+ }
+ $key = $this->_getPrivatePublicKey($this->publicKeyFormat);
+ return $key !== false ? $key : '';
+ }
+
+ /**
+ * __clone() magic method
+ *
+ * @access public
+ * @return Crypt_RSA
+ */
+ function __clone()
+ {
+ $key = new RSA();
+ $key->loadKey($this);
+ return $key;
+ }
+
+ /**
+ * Generates the smallest and largest numbers requiring $bits bits
+ *
+ * @access private
+ * @param int $bits
+ * @return array
+ */
+ function _generateMinMax($bits)
+ {
+ $bytes = $bits >> 3;
+ $min = str_repeat(chr(0), $bytes);
+ $max = str_repeat(chr(0xFF), $bytes);
+ $msb = $bits & 7;
+ if ($msb) {
+ $min = chr(1 << ($msb - 1)) . $min;
+ $max = chr((1 << $msb) - 1) . $max;
+ } else {
+ $min[0] = chr(0x80);
+ }
+
+ return array(
+ 'min' => new BigInteger($min, 256),
+ 'max' => new BigInteger($max, 256)
+ );
+ }
+
+ /**
+ * DER-decode the length
+ *
+ * DER supports lengths up to (2**8)**127, however, we'll only support lengths up to (2**8)**4. See
+ * {@link http://itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#p=13 X.690 paragraph 8.1.3} for more information.
+ *
+ * @access private
+ * @param string $string
+ * @return int
+ */
+ function _decodeLength(&$string)
+ {
+ $length = ord($this->_string_shift($string));
+ if ($length & 0x80) { // definite length, long form
+ $length&= 0x7F;
+ $temp = $this->_string_shift($string, $length);
+ list(, $length) = unpack('N', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4));
+ }
+ return $length;
+ }
+
+ /**
+ * DER-encode the length
+ *
+ * DER supports lengths up to (2**8)**127, however, we'll only support lengths up to (2**8)**4. See
+ * {@link http://itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#p=13 X.690 paragraph 8.1.3} for more information.
+ *
+ * @access private
+ * @param int $length
+ * @return string
+ */
+ function _encodeLength($length)
+ {
+ if ($length <= 0x7F) {
+ return chr($length);
+ }
+
+ $temp = ltrim(pack('N', $length), chr(0));
+ return pack('Ca*', 0x80 | strlen($temp), $temp);
+ }
+
+ /**
+ * String Shift
+ *
+ * Inspired by array_shift
+ *
+ * @param string $string
+ * @param int $index
+ * @return string
+ * @access private
+ */
+ function _string_shift(&$string, $index = 1)
+ {
+ $substr = substr($string, 0, $index);
+ $string = substr($string, $index);
+ return $substr;
+ }
+
+ /**
+ * Determines the private key format
+ *
+ * @see self::createKey()
+ * @access public
+ * @param int $format
+ */
+ function setPrivateKeyFormat($format)
+ {
+ $this->privateKeyFormat = $format;
+ }
+
+ /**
+ * Determines the public key format
+ *
+ * @see self::createKey()
+ * @access public
+ * @param int $format
+ */
+ function setPublicKeyFormat($format)
+ {
+ $this->publicKeyFormat = $format;
+ }
+
+ /**
+ * Determines which hashing function should be used
+ *
+ * Used with signature production / verification and (if the encryption mode is self::ENCRYPTION_OAEP) encryption and
+ * decryption. If $hash isn't supported, sha1 is used.
+ *
+ * @access public
+ * @param string $hash
+ */
+ function setHash($hash)
+ {
+ // \phpseclib\Crypt\Hash supports algorithms that PKCS#1 doesn't support. md5-96 and sha1-96, for example.
+ switch ($hash) {
+ case 'md2':
+ case 'md5':
+ case 'sha1':
+ case 'sha256':
+ case 'sha384':
+ case 'sha512':
+ $this->hash = new Hash($hash);
+ $this->hashName = $hash;
+ break;
+ default:
+ $this->hash = new Hash('sha1');
+ $this->hashName = 'sha1';
+ }
+ $this->hLen = $this->hash->getLength();
+ }
+
+ /**
+ * Determines which hashing function should be used for the mask generation function
+ *
+ * The mask generation function is used by self::ENCRYPTION_OAEP and self::SIGNATURE_PSS and although it's
+ * best if Hash and MGFHash are set to the same thing this is not a requirement.
+ *
+ * @access public
+ * @param string $hash
+ */
+ function setMGFHash($hash)
+ {
+ // \phpseclib\Crypt\Hash supports algorithms that PKCS#1 doesn't support. md5-96 and sha1-96, for example.
+ switch ($hash) {
+ case 'md2':
+ case 'md5':
+ case 'sha1':
+ case 'sha256':
+ case 'sha384':
+ case 'sha512':
+ $this->mgfHash = new Hash($hash);
+ break;
+ default:
+ $this->mgfHash = new Hash('sha1');
+ }
+ $this->mgfHLen = $this->mgfHash->getLength();
+ }
+
+ /**
+ * Determines the salt length
+ *
+ * To quote from {@link http://tools.ietf.org/html/rfc3447#page-38 RFC3447#page-38}:
+ *
+ * Typical salt lengths in octets are hLen (the length of the output
+ * of the hash function Hash) and 0.
+ *
+ * @access public
+ * @param int $format
+ */
+ function setSaltLength($sLen)
+ {
+ $this->sLen = $sLen;
+ }
+
+ /**
+ * Integer-to-Octet-String primitive
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-4.1 RFC3447#section-4.1}.
+ *
+ * @access private
+ * @param \phpseclib\Math\BigInteger $x
+ * @param int $xLen
+ * @return string
+ */
+ function _i2osp($x, $xLen)
+ {
+ $x = $x->toBytes();
+ if (strlen($x) > $xLen) {
+ user_error('Integer too large');
+ return false;
+ }
+ return str_pad($x, $xLen, chr(0), STR_PAD_LEFT);
+ }
+
+ /**
+ * Octet-String-to-Integer primitive
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-4.2 RFC3447#section-4.2}.
+ *
+ * @access private
+ * @param string $x
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _os2ip($x)
+ {
+ return new BigInteger($x, 256);
+ }
+
+ /**
+ * Exponentiate with or without Chinese Remainder Theorem
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-5.1.1 RFC3447#section-5.1.2}.
+ *
+ * @access private
+ * @param \phpseclib\Math\BigInteger $x
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _exponentiate($x)
+ {
+ switch (true) {
+ case empty($this->primes):
+ case $this->primes[1]->equals($this->zero):
+ case empty($this->coefficients):
+ case $this->coefficients[2]->equals($this->zero):
+ case empty($this->exponents):
+ case $this->exponents[1]->equals($this->zero):
+ return $x->modPow($this->exponent, $this->modulus);
+ }
+
+ $num_primes = count($this->primes);
+
+ if (defined('CRYPT_RSA_DISABLE_BLINDING')) {
+ $m_i = array(
+ 1 => $x->modPow($this->exponents[1], $this->primes[1]),
+ 2 => $x->modPow($this->exponents[2], $this->primes[2])
+ );
+ $h = $m_i[1]->subtract($m_i[2]);
+ $h = $h->multiply($this->coefficients[2]);
+ list(, $h) = $h->divide($this->primes[1]);
+ $m = $m_i[2]->add($h->multiply($this->primes[2]));
+
+ $r = $this->primes[1];
+ for ($i = 3; $i <= $num_primes; $i++) {
+ $m_i = $x->modPow($this->exponents[$i], $this->primes[$i]);
+
+ $r = $r->multiply($this->primes[$i - 1]);
+
+ $h = $m_i->subtract($m);
+ $h = $h->multiply($this->coefficients[$i]);
+ list(, $h) = $h->divide($this->primes[$i]);
+
+ $m = $m->add($r->multiply($h));
+ }
+ } else {
+ $smallest = $this->primes[1];
+ for ($i = 2; $i <= $num_primes; $i++) {
+ if ($smallest->compare($this->primes[$i]) > 0) {
+ $smallest = $this->primes[$i];
+ }
+ }
+
+ $one = new BigInteger(1);
+
+ $r = $one->random($one, $smallest->subtract($one));
+
+ $m_i = array(
+ 1 => $this->_blind($x, $r, 1),
+ 2 => $this->_blind($x, $r, 2)
+ );
+ $h = $m_i[1]->subtract($m_i[2]);
+ $h = $h->multiply($this->coefficients[2]);
+ list(, $h) = $h->divide($this->primes[1]);
+ $m = $m_i[2]->add($h->multiply($this->primes[2]));
+
+ $r = $this->primes[1];
+ for ($i = 3; $i <= $num_primes; $i++) {
+ $m_i = $this->_blind($x, $r, $i);
+
+ $r = $r->multiply($this->primes[$i - 1]);
+
+ $h = $m_i->subtract($m);
+ $h = $h->multiply($this->coefficients[$i]);
+ list(, $h) = $h->divide($this->primes[$i]);
+
+ $m = $m->add($r->multiply($h));
+ }
+ }
+
+ return $m;
+ }
+
+ /**
+ * Performs RSA Blinding
+ *
+ * Protects against timing attacks by employing RSA Blinding.
+ * Returns $x->modPow($this->exponents[$i], $this->primes[$i])
+ *
+ * @access private
+ * @param \phpseclib\Math\BigInteger $x
+ * @param \phpseclib\Math\BigInteger $r
+ * @param int $i
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _blind($x, $r, $i)
+ {
+ $x = $x->multiply($r->modPow($this->publicExponent, $this->primes[$i]));
+ $x = $x->modPow($this->exponents[$i], $this->primes[$i]);
+
+ $r = $r->modInverse($this->primes[$i]);
+ $x = $x->multiply($r);
+ list(, $x) = $x->divide($this->primes[$i]);
+
+ return $x;
+ }
+
+ /**
+ * Performs blinded RSA equality testing
+ *
+ * Protects against a particular type of timing attack described.
+ *
+ * See {@link http://codahale.com/a-lesson-in-timing-attacks/ A Lesson In Timing Attacks (or, Don't use MessageDigest.isEquals)}
+ *
+ * Thanks for the heads up singpolyma!
+ *
+ * @access private
+ * @param string $x
+ * @param string $y
+ * @return bool
+ */
+ function _equals($x, $y)
+ {
+ if (strlen($x) != strlen($y)) {
+ return false;
+ }
+
+ $result = 0;
+ for ($i = 0; $i < strlen($x); $i++) {
+ $result |= ord($x[$i]) ^ ord($y[$i]);
+ }
+
+ return $result == 0;
+ }
+
+ /**
+ * RSAEP
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-5.1.1 RFC3447#section-5.1.1}.
+ *
+ * @access private
+ * @param \phpseclib\Math\BigInteger $m
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _rsaep($m)
+ {
+ if ($m->compare($this->zero) < 0 || $m->compare($this->modulus) > 0) {
+ user_error('Message representative out of range');
+ return false;
+ }
+ return $this->_exponentiate($m);
+ }
+
+ /**
+ * RSADP
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-5.1.2 RFC3447#section-5.1.2}.
+ *
+ * @access private
+ * @param \phpseclib\Math\BigInteger $c
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _rsadp($c)
+ {
+ if ($c->compare($this->zero) < 0 || $c->compare($this->modulus) > 0) {
+ user_error('Ciphertext representative out of range');
+ return false;
+ }
+ return $this->_exponentiate($c);
+ }
+
+ /**
+ * RSASP1
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-5.2.1 RFC3447#section-5.2.1}.
+ *
+ * @access private
+ * @param \phpseclib\Math\BigInteger $m
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _rsasp1($m)
+ {
+ if ($m->compare($this->zero) < 0 || $m->compare($this->modulus) > 0) {
+ user_error('Message representative out of range');
+ return false;
+ }
+ return $this->_exponentiate($m);
+ }
+
+ /**
+ * RSAVP1
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-5.2.2 RFC3447#section-5.2.2}.
+ *
+ * @access private
+ * @param \phpseclib\Math\BigInteger $s
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _rsavp1($s)
+ {
+ if ($s->compare($this->zero) < 0 || $s->compare($this->modulus) > 0) {
+ user_error('Signature representative out of range');
+ return false;
+ }
+ return $this->_exponentiate($s);
+ }
+
+ /**
+ * MGF1
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#appendix-B.2.1 RFC3447#appendix-B.2.1}.
+ *
+ * @access private
+ * @param string $mgfSeed
+ * @param int $mgfLen
+ * @return string
+ */
+ function _mgf1($mgfSeed, $maskLen)
+ {
+ // if $maskLen would yield strings larger than 4GB, PKCS#1 suggests a "Mask too long" error be output.
+
+ $t = '';
+ $count = ceil($maskLen / $this->mgfHLen);
+ for ($i = 0; $i < $count; $i++) {
+ $c = pack('N', $i);
+ $t.= $this->mgfHash->hash($mgfSeed . $c);
+ }
+
+ return substr($t, 0, $maskLen);
+ }
+
+ /**
+ * RSAES-OAEP-ENCRYPT
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-7.1.1 RFC3447#section-7.1.1} and
+ * {http://en.wikipedia.org/wiki/Optimal_Asymmetric_Encryption_Padding OAES}.
+ *
+ * @access private
+ * @param string $m
+ * @param string $l
+ * @return string
+ */
+ function _rsaes_oaep_encrypt($m, $l = '')
+ {
+ $mLen = strlen($m);
+
+ // Length checking
+
+ // if $l is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error
+ // be output.
+
+ if ($mLen > $this->k - 2 * $this->hLen - 2) {
+ user_error('Message too long');
+ return false;
+ }
+
+ // EME-OAEP encoding
+
+ $lHash = $this->hash->hash($l);
+ $ps = str_repeat(chr(0), $this->k - $mLen - 2 * $this->hLen - 2);
+ $db = $lHash . $ps . chr(1) . $m;
+ $seed = Random::string($this->hLen);
+ $dbMask = $this->_mgf1($seed, $this->k - $this->hLen - 1);
+ $maskedDB = $db ^ $dbMask;
+ $seedMask = $this->_mgf1($maskedDB, $this->hLen);
+ $maskedSeed = $seed ^ $seedMask;
+ $em = chr(0) . $maskedSeed . $maskedDB;
+
+ // RSA encryption
+
+ $m = $this->_os2ip($em);
+ $c = $this->_rsaep($m);
+ $c = $this->_i2osp($c, $this->k);
+
+ // Output the ciphertext C
+
+ return $c;
+ }
+
+ /**
+ * RSAES-OAEP-DECRYPT
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-7.1.2 RFC3447#section-7.1.2}. The fact that the error
+ * messages aren't distinguishable from one another hinders debugging, but, to quote from RFC3447#section-7.1.2:
+ *
+ * Note. Care must be taken to ensure that an opponent cannot
+ * distinguish the different error conditions in Step 3.g, whether by
+ * error message or timing, or, more generally, learn partial
+ * information about the encoded message EM. Otherwise an opponent may
+ * be able to obtain useful information about the decryption of the
+ * ciphertext C, leading to a chosen-ciphertext attack such as the one
+ * observed by Manger [36].
+ *
+ * As for $l... to quote from {@link http://tools.ietf.org/html/rfc3447#page-17 RFC3447#page-17}:
+ *
+ * Both the encryption and the decryption operations of RSAES-OAEP take
+ * the value of a label L as input. In this version of PKCS #1, L is
+ * the empty string; other uses of the label are outside the scope of
+ * this document.
+ *
+ * @access private
+ * @param string $c
+ * @param string $l
+ * @return string
+ */
+ function _rsaes_oaep_decrypt($c, $l = '')
+ {
+ // Length checking
+
+ // if $l is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error
+ // be output.
+
+ if (strlen($c) != $this->k || $this->k < 2 * $this->hLen + 2) {
+ user_error('Decryption error');
+ return false;
+ }
+
+ // RSA decryption
+
+ $c = $this->_os2ip($c);
+ $m = $this->_rsadp($c);
+ if ($m === false) {
+ user_error('Decryption error');
+ return false;
+ }
+ $em = $this->_i2osp($m, $this->k);
+
+ // EME-OAEP decoding
+
+ $lHash = $this->hash->hash($l);
+ $y = ord($em[0]);
+ $maskedSeed = substr($em, 1, $this->hLen);
+ $maskedDB = substr($em, $this->hLen + 1);
+ $seedMask = $this->_mgf1($maskedDB, $this->hLen);
+ $seed = $maskedSeed ^ $seedMask;
+ $dbMask = $this->_mgf1($seed, $this->k - $this->hLen - 1);
+ $db = $maskedDB ^ $dbMask;
+ $lHash2 = substr($db, 0, $this->hLen);
+ $m = substr($db, $this->hLen);
+ if ($lHash != $lHash2) {
+ user_error('Decryption error');
+ return false;
+ }
+ $m = ltrim($m, chr(0));
+ if (ord($m[0]) != 1) {
+ user_error('Decryption error');
+ return false;
+ }
+
+ // Output the message M
+
+ return substr($m, 1);
+ }
+
+ /**
+ * Raw Encryption / Decryption
+ *
+ * Doesn't use padding and is not recommended.
+ *
+ * @access private
+ * @param string $m
+ * @return string
+ */
+ function _raw_encrypt($m)
+ {
+ $temp = $this->_os2ip($m);
+ $temp = $this->_rsaep($temp);
+ return $this->_i2osp($temp, $this->k);
+ }
+
+ /**
+ * RSAES-PKCS1-V1_5-ENCRYPT
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-7.2.1 RFC3447#section-7.2.1}.
+ *
+ * @access private
+ * @param string $m
+ * @return string
+ */
+ function _rsaes_pkcs1_v1_5_encrypt($m)
+ {
+ $mLen = strlen($m);
+
+ // Length checking
+
+ if ($mLen > $this->k - 11) {
+ user_error('Message too long');
+ return false;
+ }
+
+ // EME-PKCS1-v1_5 encoding
+
+ $psLen = $this->k - $mLen - 3;
+ $ps = '';
+ while (strlen($ps) != $psLen) {
+ $temp = Random::string($psLen - strlen($ps));
+ $temp = str_replace("\x00", '', $temp);
+ $ps.= $temp;
+ }
+ $type = 2;
+ // see the comments of _rsaes_pkcs1_v1_5_decrypt() to understand why this is being done
+ if (defined('CRYPT_RSA_PKCS15_COMPAT') && (!isset($this->publicExponent) || $this->exponent !== $this->publicExponent)) {
+ $type = 1;
+ // "The padding string PS shall consist of k-3-||D|| octets. ... for block type 01, they shall have value FF"
+ $ps = str_repeat("\xFF", $psLen);
+ }
+ $em = chr(0) . chr($type) . $ps . chr(0) . $m;
+
+ // RSA encryption
+ $m = $this->_os2ip($em);
+ $c = $this->_rsaep($m);
+ $c = $this->_i2osp($c, $this->k);
+
+ // Output the ciphertext C
+
+ return $c;
+ }
+
+ /**
+ * RSAES-PKCS1-V1_5-DECRYPT
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-7.2.2 RFC3447#section-7.2.2}.
+ *
+ * For compatibility purposes, this function departs slightly from the description given in RFC3447.
+ * The reason being that RFC2313#section-8.1 (PKCS#1 v1.5) states that ciphertext's encrypted by the
+ * private key should have the second byte set to either 0 or 1 and that ciphertext's encrypted by the
+ * public key should have the second byte set to 2. In RFC3447 (PKCS#1 v2.1), the second byte is supposed
+ * to be 2 regardless of which key is used. For compatibility purposes, we'll just check to make sure the
+ * second byte is 2 or less. If it is, we'll accept the decrypted string as valid.
+ *
+ * As a consequence of this, a private key encrypted ciphertext produced with \phpseclib\Crypt\RSA may not decrypt
+ * with a strictly PKCS#1 v1.5 compliant RSA implementation. Public key encrypted ciphertext's should but
+ * not private key encrypted ciphertext's.
+ *
+ * @access private
+ * @param string $c
+ * @return string
+ */
+ function _rsaes_pkcs1_v1_5_decrypt($c)
+ {
+ // Length checking
+
+ if (strlen($c) != $this->k) { // or if k < 11
+ user_error('Decryption error');
+ return false;
+ }
+
+ // RSA decryption
+
+ $c = $this->_os2ip($c);
+ $m = $this->_rsadp($c);
+
+ if ($m === false) {
+ user_error('Decryption error');
+ return false;
+ }
+ $em = $this->_i2osp($m, $this->k);
+
+ // EME-PKCS1-v1_5 decoding
+
+ if (ord($em[0]) != 0 || ord($em[1]) > 2) {
+ user_error('Decryption error');
+ return false;
+ }
+
+ $ps = substr($em, 2, strpos($em, chr(0), 2) - 2);
+ $m = substr($em, strlen($ps) + 3);
+
+ if (strlen($ps) < 8) {
+ user_error('Decryption error');
+ return false;
+ }
+
+ // Output M
+
+ return $m;
+ }
+
+ /**
+ * EMSA-PSS-ENCODE
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-9.1.1 RFC3447#section-9.1.1}.
+ *
+ * @access private
+ * @param string $m
+ * @param int $emBits
+ */
+ function _emsa_pss_encode($m, $emBits)
+ {
+ // if $m is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error
+ // be output.
+
+ $emLen = ($emBits + 1) >> 3; // ie. ceil($emBits / 8)
+ $sLen = $this->sLen !== null ? $this->sLen : $this->hLen;
+
+ $mHash = $this->hash->hash($m);
+ if ($emLen < $this->hLen + $sLen + 2) {
+ user_error('Encoding error');
+ return false;
+ }
+
+ $salt = Random::string($sLen);
+ $m2 = "\0\0\0\0\0\0\0\0" . $mHash . $salt;
+ $h = $this->hash->hash($m2);
+ $ps = str_repeat(chr(0), $emLen - $sLen - $this->hLen - 2);
+ $db = $ps . chr(1) . $salt;
+ $dbMask = $this->_mgf1($h, $emLen - $this->hLen - 1);
+ $maskedDB = $db ^ $dbMask;
+ $maskedDB[0] = ~chr(0xFF << ($emBits & 7)) & $maskedDB[0];
+ $em = $maskedDB . $h . chr(0xBC);
+
+ return $em;
+ }
+
+ /**
+ * EMSA-PSS-VERIFY
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-9.1.2 RFC3447#section-9.1.2}.
+ *
+ * @access private
+ * @param string $m
+ * @param string $em
+ * @param int $emBits
+ * @return string
+ */
+ function _emsa_pss_verify($m, $em, $emBits)
+ {
+ // if $m is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error
+ // be output.
+
+ $emLen = ($emBits + 1) >> 3; // ie. ceil($emBits / 8);
+ $sLen = $this->sLen !== null ? $this->sLen : $this->hLen;
+
+ $mHash = $this->hash->hash($m);
+ if ($emLen < $this->hLen + $sLen + 2) {
+ return false;
+ }
+
+ if ($em[strlen($em) - 1] != chr(0xBC)) {
+ return false;
+ }
+
+ $maskedDB = substr($em, 0, -$this->hLen - 1);
+ $h = substr($em, -$this->hLen - 1, $this->hLen);
+ $temp = chr(0xFF << ($emBits & 7));
+ if ((~$maskedDB[0] & $temp) != $temp) {
+ return false;
+ }
+ $dbMask = $this->_mgf1($h, $emLen - $this->hLen - 1);
+ $db = $maskedDB ^ $dbMask;
+ $db[0] = ~chr(0xFF << ($emBits & 7)) & $db[0];
+ $temp = $emLen - $this->hLen - $sLen - 2;
+ if (substr($db, 0, $temp) != str_repeat(chr(0), $temp) || ord($db[$temp]) != 1) {
+ return false;
+ }
+ $salt = substr($db, $temp + 1); // should be $sLen long
+ $m2 = "\0\0\0\0\0\0\0\0" . $mHash . $salt;
+ $h2 = $this->hash->hash($m2);
+ return $this->_equals($h, $h2);
+ }
+
+ /**
+ * RSASSA-PSS-SIGN
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-8.1.1 RFC3447#section-8.1.1}.
+ *
+ * @access private
+ * @param string $m
+ * @return string
+ */
+ function _rsassa_pss_sign($m)
+ {
+ // EMSA-PSS encoding
+
+ $em = $this->_emsa_pss_encode($m, 8 * $this->k - 1);
+
+ // RSA signature
+
+ $m = $this->_os2ip($em);
+ $s = $this->_rsasp1($m);
+ $s = $this->_i2osp($s, $this->k);
+
+ // Output the signature S
+
+ return $s;
+ }
+
+ /**
+ * RSASSA-PSS-VERIFY
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-8.1.2 RFC3447#section-8.1.2}.
+ *
+ * @access private
+ * @param string $m
+ * @param string $s
+ * @return string
+ */
+ function _rsassa_pss_verify($m, $s)
+ {
+ // Length checking
+
+ if (strlen($s) != $this->k) {
+ user_error('Invalid signature');
+ return false;
+ }
+
+ // RSA verification
+
+ $modBits = 8 * $this->k;
+
+ $s2 = $this->_os2ip($s);
+ $m2 = $this->_rsavp1($s2);
+ if ($m2 === false) {
+ user_error('Invalid signature');
+ return false;
+ }
+ $em = $this->_i2osp($m2, $modBits >> 3);
+ if ($em === false) {
+ user_error('Invalid signature');
+ return false;
+ }
+
+ // EMSA-PSS verification
+
+ return $this->_emsa_pss_verify($m, $em, $modBits - 1);
+ }
+
+ /**
+ * EMSA-PKCS1-V1_5-ENCODE
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-9.2 RFC3447#section-9.2}.
+ *
+ * @access private
+ * @param string $m
+ * @param int $emLen
+ * @return string
+ */
+ function _emsa_pkcs1_v1_5_encode($m, $emLen)
+ {
+ $h = $this->hash->hash($m);
+ if ($h === false) {
+ return false;
+ }
+
+ // see http://tools.ietf.org/html/rfc3447#page-43
+ switch ($this->hashName) {
+ case 'md2':
+ $t = pack('H*', '3020300c06082a864886f70d020205000410');
+ break;
+ case 'md5':
+ $t = pack('H*', '3020300c06082a864886f70d020505000410');
+ break;
+ case 'sha1':
+ $t = pack('H*', '3021300906052b0e03021a05000414');
+ break;
+ case 'sha256':
+ $t = pack('H*', '3031300d060960864801650304020105000420');
+ break;
+ case 'sha384':
+ $t = pack('H*', '3041300d060960864801650304020205000430');
+ break;
+ case 'sha512':
+ $t = pack('H*', '3051300d060960864801650304020305000440');
+ }
+ $t.= $h;
+ $tLen = strlen($t);
+
+ if ($emLen < $tLen + 11) {
+ user_error('Intended encoded message length too short');
+ return false;
+ }
+
+ $ps = str_repeat(chr(0xFF), $emLen - $tLen - 3);
+
+ $em = "\0\1$ps\0$t";
+
+ return $em;
+ }
+
+ /**
+ * RSASSA-PKCS1-V1_5-SIGN
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-8.2.1 RFC3447#section-8.2.1}.
+ *
+ * @access private
+ * @param string $m
+ * @return string
+ */
+ function _rsassa_pkcs1_v1_5_sign($m)
+ {
+ // EMSA-PKCS1-v1_5 encoding
+
+ $em = $this->_emsa_pkcs1_v1_5_encode($m, $this->k);
+ if ($em === false) {
+ user_error('RSA modulus too short');
+ return false;
+ }
+
+ // RSA signature
+
+ $m = $this->_os2ip($em);
+ $s = $this->_rsasp1($m);
+ $s = $this->_i2osp($s, $this->k);
+
+ // Output the signature S
+
+ return $s;
+ }
+
+ /**
+ * RSASSA-PKCS1-V1_5-VERIFY
+ *
+ * See {@link http://tools.ietf.org/html/rfc3447#section-8.2.2 RFC3447#section-8.2.2}.
+ *
+ * @access private
+ * @param string $m
+ * @return string
+ */
+ function _rsassa_pkcs1_v1_5_verify($m, $s)
+ {
+ // Length checking
+
+ if (strlen($s) != $this->k) {
+ user_error('Invalid signature');
+ return false;
+ }
+
+ // RSA verification
+
+ $s = $this->_os2ip($s);
+ $m2 = $this->_rsavp1($s);
+ if ($m2 === false) {
+ user_error('Invalid signature');
+ return false;
+ }
+ $em = $this->_i2osp($m2, $this->k);
+ if ($em === false) {
+ user_error('Invalid signature');
+ return false;
+ }
+
+ // EMSA-PKCS1-v1_5 encoding
+
+ $em2 = $this->_emsa_pkcs1_v1_5_encode($m, $this->k);
+ if ($em2 === false) {
+ user_error('RSA modulus too short');
+ return false;
+ }
+
+ // Compare
+ return $this->_equals($em, $em2);
+ }
+
+ /**
+ * Set Encryption Mode
+ *
+ * Valid values include self::ENCRYPTION_OAEP and self::ENCRYPTION_PKCS1.
+ *
+ * @access public
+ * @param int $mode
+ */
+ function setEncryptionMode($mode)
+ {
+ $this->encryptionMode = $mode;
+ }
+
+ /**
+ * Set Signature Mode
+ *
+ * Valid values include self::SIGNATURE_PSS and self::SIGNATURE_PKCS1
+ *
+ * @access public
+ * @param int $mode
+ */
+ function setSignatureMode($mode)
+ {
+ $this->signatureMode = $mode;
+ }
+
+ /**
+ * Set public key comment.
+ *
+ * @access public
+ * @param string $comment
+ */
+ function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+
+ /**
+ * Get public key comment.
+ *
+ * @access public
+ * @return string
+ */
+ function getComment()
+ {
+ return $this->comment;
+ }
+
+ /**
+ * Encryption
+ *
+ * Both self::ENCRYPTION_OAEP and self::ENCRYPTION_PKCS1 both place limits on how long $plaintext can be.
+ * If $plaintext exceeds those limits it will be broken up so that it does and the resultant ciphertext's will
+ * be concatenated together.
+ *
+ * @see self::decrypt()
+ * @access public
+ * @param string $plaintext
+ * @return string
+ */
+ function encrypt($plaintext)
+ {
+ switch ($this->encryptionMode) {
+ case self::ENCRYPTION_NONE:
+ $plaintext = str_split($plaintext, $this->k);
+ $ciphertext = '';
+ foreach ($plaintext as $m) {
+ $ciphertext.= $this->_raw_encrypt($m);
+ }
+ return $ciphertext;
+ case self::ENCRYPTION_PKCS1:
+ $length = $this->k - 11;
+ if ($length <= 0) {
+ return false;
+ }
+
+ $plaintext = str_split($plaintext, $length);
+ $ciphertext = '';
+ foreach ($plaintext as $m) {
+ $ciphertext.= $this->_rsaes_pkcs1_v1_5_encrypt($m);
+ }
+ return $ciphertext;
+ //case self::ENCRYPTION_OAEP:
+ default:
+ $length = $this->k - 2 * $this->hLen - 2;
+ if ($length <= 0) {
+ return false;
+ }
+
+ $plaintext = str_split($plaintext, $length);
+ $ciphertext = '';
+ foreach ($plaintext as $m) {
+ $ciphertext.= $this->_rsaes_oaep_encrypt($m);
+ }
+ return $ciphertext;
+ }
+ }
+
+ /**
+ * Decryption
+ *
+ * @see self::encrypt()
+ * @access public
+ * @param string $plaintext
+ * @return string
+ */
+ function decrypt($ciphertext)
+ {
+ if ($this->k <= 0) {
+ return false;
+ }
+
+ $ciphertext = str_split($ciphertext, $this->k);
+ $ciphertext[count($ciphertext) - 1] = str_pad($ciphertext[count($ciphertext) - 1], $this->k, chr(0), STR_PAD_LEFT);
+
+ $plaintext = '';
+
+ switch ($this->encryptionMode) {
+ case self::ENCRYPTION_NONE:
+ $decrypt = '_raw_encrypt';
+ break;
+ case self::ENCRYPTION_PKCS1:
+ $decrypt = '_rsaes_pkcs1_v1_5_decrypt';
+ break;
+ //case self::ENCRYPTION_OAEP:
+ default:
+ $decrypt = '_rsaes_oaep_decrypt';
+ }
+
+ foreach ($ciphertext as $c) {
+ $temp = $this->$decrypt($c);
+ if ($temp === false) {
+ return false;
+ }
+ $plaintext.= $temp;
+ }
+
+ return $plaintext;
+ }
+
+ /**
+ * Create a signature
+ *
+ * @see self::verify()
+ * @access public
+ * @param string $message
+ * @return string
+ */
+ function sign($message)
+ {
+ if (empty($this->modulus) || empty($this->exponent)) {
+ return false;
+ }
+
+ switch ($this->signatureMode) {
+ case self::SIGNATURE_PKCS1:
+ return $this->_rsassa_pkcs1_v1_5_sign($message);
+ //case self::SIGNATURE_PSS:
+ default:
+ return $this->_rsassa_pss_sign($message);
+ }
+ }
+
+ /**
+ * Verifies a signature
+ *
+ * @see self::sign()
+ * @access public
+ * @param string $message
+ * @param string $signature
+ * @return bool
+ */
+ function verify($message, $signature)
+ {
+ if (empty($this->modulus) || empty($this->exponent)) {
+ return false;
+ }
+
+ switch ($this->signatureMode) {
+ case self::SIGNATURE_PKCS1:
+ return $this->_rsassa_pkcs1_v1_5_verify($message, $signature);
+ //case self::SIGNATURE_PSS:
+ default:
+ return $this->_rsassa_pss_verify($message, $signature);
+ }
+ }
+
+ /**
+ * Extract raw BER from Base64 encoding
+ *
+ * @access private
+ * @param string $str
+ * @return string
+ */
+ function _extractBER($str)
+ {
+ /* X.509 certs are assumed to be base64 encoded but sometimes they'll have additional things in them
+ * above and beyond the ceritificate.
+ * ie. some may have the following preceding the -----BEGIN CERTIFICATE----- line:
+ *
+ * Bag Attributes
+ * localKeyID: 01 00 00 00
+ * subject=/O=organization/OU=org unit/CN=common name
+ * issuer=/O=organization/CN=common name
+ */
+ $temp = preg_replace('#.*?^-+[^-]+-+[\r\n ]*$#ms', '', $str, 1);
+ // remove the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- stuff
+ $temp = preg_replace('#-+[^-]+-+#', '', $temp);
+ // remove new lines
+ $temp = str_replace(array("\r", "\n", ' '), '', $temp);
+ $temp = preg_match('#^[a-zA-Z\d/+]*={0,2}$#', $temp) ? base64_decode($temp) : false;
+ return $temp != false ? $temp : $str;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Random.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Random.php
new file mode 100644
index 00000000..6b29e751
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Random.php
@@ -0,0 +1,270 @@
+<?php
+
+/**
+ * Random Number Generator
+ *
+ * PHP version 5
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * echo bin2hex(\phpseclib\Crypt\Random::string(8));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package Random
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP Random Number Generator
+ *
+ * @package Random
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class Random
+{
+ /**
+ * Generate a random string.
+ *
+ * Although microoptimizations are generally discouraged as they impair readability this function is ripe with
+ * microoptimizations because this function has the potential of being called a huge number of times.
+ * eg. for RSA key generation.
+ *
+ * @param int $length
+ * @return string
+ */
+ static function string($length)
+ {
+ if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
+ try {
+ return \random_bytes($length);
+ } catch (\Throwable $e) {
+ // If a sufficient source of randomness is unavailable, random_bytes() will throw an
+ // object that implements the Throwable interface (Exception, TypeError, Error).
+ // We don't actually need to do anything here. The string() method should just continue
+ // as normal. Note, however, that if we don't have a sufficient source of randomness for
+ // random_bytes(), most of the other calls here will fail too, so we'll end up using
+ // the PHP implementation.
+ }
+ }
+
+ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
+ // method 1. prior to PHP 5.3 this would call rand() on windows hence the function_exists('class_alias') call.
+ // ie. class_alias is a function that was introduced in PHP 5.3
+ if (extension_loaded('mcrypt') && function_exists('class_alias')) {
+ return @mcrypt_create_iv($length);
+ }
+ // method 2. openssl_random_pseudo_bytes was introduced in PHP 5.3.0 but prior to PHP 5.3.4 there was,
+ // to quote <http://php.net/ChangeLog-5.php#5.3.4>, "possible blocking behavior". as of 5.3.4
+ // openssl_random_pseudo_bytes and mcrypt_create_iv do the exact same thing on Windows. ie. they both
+ // call php_win32_get_random_bytes():
+ //
+ // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/openssl/openssl.c#L5008
+ // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1392
+ //
+ // php_win32_get_random_bytes() is defined thusly:
+ //
+ // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/win32/winutil.c#L80
+ //
+ // we're calling it, all the same, in the off chance that the mcrypt extension is not available
+ if (extension_loaded('openssl') && version_compare(PHP_VERSION, '5.3.4', '>=')) {
+ return openssl_random_pseudo_bytes($length);
+ }
+ } else {
+ // method 1. the fastest
+ if (extension_loaded('openssl')) {
+ return openssl_random_pseudo_bytes($length);
+ }
+ // method 2
+ static $fp = true;
+ if ($fp === true) {
+ // warning's will be output unles the error suppression operator is used. errors such as
+ // "open_basedir restriction in effect", "Permission denied", "No such file or directory", etc.
+ $fp = @fopen('/dev/urandom', 'rb');
+ }
+ if ($fp !== true && $fp !== false) { // surprisingly faster than !is_bool() or is_resource()
+ return fread($fp, $length);
+ }
+ // method 3. pretty much does the same thing as method 2 per the following url:
+ // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1391
+ // surprisingly slower than method 2. maybe that's because mcrypt_create_iv does a bunch of error checking that we're
+ // not doing. regardless, this'll only be called if this PHP script couldn't open /dev/urandom due to open_basedir
+ // restrictions or some such
+ if (extension_loaded('mcrypt')) {
+ return @mcrypt_create_iv($length, MCRYPT_DEV_URANDOM);
+ }
+ }
+ // at this point we have no choice but to use a pure-PHP CSPRNG
+
+ // cascade entropy across multiple PHP instances by fixing the session and collecting all
+ // environmental variables, including the previous session data and the current session
+ // data.
+ //
+ // mt_rand seeds itself by looking at the PID and the time, both of which are (relatively)
+ // easy to guess at. linux uses mouse clicks, keyboard timings, etc, as entropy sources, but
+ // PHP isn't low level to be able to use those as sources and on a web server there's not likely
+ // going to be a ton of keyboard or mouse action. web servers do have one thing that we can use
+ // however, a ton of people visiting the website. obviously you don't want to base your seeding
+ // soley on parameters a potential attacker sends but (1) not everything in $_SERVER is controlled
+ // by the user and (2) this isn't just looking at the data sent by the current user - it's based
+ // on the data sent by all users. one user requests the page and a hash of their info is saved.
+ // another user visits the page and the serialization of their data is utilized along with the
+ // server envirnment stuff and a hash of the previous http request data (which itself utilizes
+ // a hash of the session data before that). certainly an attacker should be assumed to have
+ // full control over his own http requests. he, however, is not going to have control over
+ // everyone's http requests.
+ static $crypto = false, $v;
+ if ($crypto === false) {
+ // save old session data
+ $old_session_id = session_id();
+ $old_use_cookies = ini_get('session.use_cookies');
+ $old_session_cache_limiter = session_cache_limiter();
+ $_OLD_SESSION = isset($_SESSION) ? $_SESSION : false;
+ if ($old_session_id != '') {
+ session_write_close();
+ }
+
+ session_id(1);
+ ini_set('session.use_cookies', 0);
+ session_cache_limiter('');
+ session_start();
+
+ $v = $seed = $_SESSION['seed'] = pack('H*', sha1(
+ (isset($_SERVER) ? phpseclib_safe_serialize($_SERVER) : '') .
+ (isset($_POST) ? phpseclib_safe_serialize($_POST) : '') .
+ (isset($_GET) ? phpseclib_safe_serialize($_GET) : '') .
+ (isset($_COOKIE) ? phpseclib_safe_serialize($_COOKIE) : '') .
+ phpseclib_safe_serialize($GLOBALS) .
+ phpseclib_safe_serialize($_SESSION) .
+ phpseclib_safe_serialize($_OLD_SESSION)
+ ));
+ if (!isset($_SESSION['count'])) {
+ $_SESSION['count'] = 0;
+ }
+ $_SESSION['count']++;
+
+ session_write_close();
+
+ // restore old session data
+ if ($old_session_id != '') {
+ session_id($old_session_id);
+ session_start();
+ ini_set('session.use_cookies', $old_use_cookies);
+ session_cache_limiter($old_session_cache_limiter);
+ } else {
+ if ($_OLD_SESSION !== false) {
+ $_SESSION = $_OLD_SESSION;
+ unset($_OLD_SESSION);
+ } else {
+ unset($_SESSION);
+ }
+ }
+
+ // in SSH2 a shared secret and an exchange hash are generated through the key exchange process.
+ // the IV client to server is the hash of that "nonce" with the letter A and for the encryption key it's the letter C.
+ // if the hash doesn't produce enough a key or an IV that's long enough concat successive hashes of the
+ // original hash and the current hash. we'll be emulating that. for more info see the following URL:
+ //
+ // http://tools.ietf.org/html/rfc4253#section-7.2
+ //
+ // see the is_string($crypto) part for an example of how to expand the keys
+ $key = pack('H*', sha1($seed . 'A'));
+ $iv = pack('H*', sha1($seed . 'C'));
+
+ // ciphers are used as per the nist.gov link below. also, see this link:
+ //
+ // http://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator#Designs_based_on_cryptographic_primitives
+ switch (true) {
+ case class_exists('\phpseclib\Crypt\AES'):
+ $crypto = new AES(Base::MODE_CTR);
+ break;
+ case class_exists('\phpseclib\Crypt\Twofish'):
+ $crypto = new Twofish(Base::MODE_CTR);
+ break;
+ case class_exists('\phpseclib\Crypt\Blowfish'):
+ $crypto = new Blowfish(Base::MODE_CTR);
+ break;
+ case class_exists('\phpseclib\Crypt\TripleDES'):
+ $crypto = new TripleDES(Base::MODE_CTR);
+ break;
+ case class_exists('\phpseclib\Crypt\DES'):
+ $crypto = new DES(Base::MODE_CTR);
+ break;
+ case class_exists('\phpseclib\Crypt\RC4'):
+ $crypto = new RC4();
+ break;
+ default:
+ user_error(__CLASS__ . ' requires at least one symmetric cipher be loaded');
+ return false;
+ }
+
+ $crypto->setKey($key);
+ $crypto->setIV($iv);
+ $crypto->enableContinuousBuffer();
+ }
+
+ //return $crypto->encrypt(str_repeat("\0", $length));
+
+ // the following is based off of ANSI X9.31:
+ //
+ // http://csrc.nist.gov/groups/STM/cavp/documents/rng/931rngext.pdf
+ //
+ // OpenSSL uses that same standard for it's random numbers:
+ //
+ // http://www.opensource.apple.com/source/OpenSSL/OpenSSL-38/openssl/fips-1.0/rand/fips_rand.c
+ // (do a search for "ANS X9.31 A.2.4")
+ $result = '';
+ while (strlen($result) < $length) {
+ $i = $crypto->encrypt(microtime()); // strlen(microtime()) == 21
+ $r = $crypto->encrypt($i ^ $v); // strlen($v) == 20
+ $v = $crypto->encrypt($r ^ $i); // strlen($r) == 20
+ $result.= $r;
+ }
+ return substr($result, 0, $length);
+ }
+}
+
+if (!function_exists('phpseclib_safe_serialize')) {
+ /**
+ * Safely serialize variables
+ *
+ * If a class has a private __sleep() method it'll give a fatal error on PHP 5.2 and earlier.
+ * PHP 5.3 will emit a warning.
+ *
+ * @param mixed $arr
+ * @access public
+ */
+ function phpseclib_safe_serialize(&$arr)
+ {
+ if (is_object($arr)) {
+ return '';
+ }
+ if (!is_array($arr)) {
+ return serialize($arr);
+ }
+ // prevent circular array recursion
+ if (isset($arr['__phpseclib_marker'])) {
+ return '';
+ }
+ $safearr = array();
+ $arr['__phpseclib_marker'] = true;
+ foreach (array_keys($arr) as $key) {
+ // do not recurse on the '__phpseclib_marker' key itself, for smaller memory usage
+ if ($key !== '__phpseclib_marker') {
+ $safearr[$key] = phpseclib_safe_serialize($arr[$key]);
+ }
+ }
+ unset($arr['__phpseclib_marker']);
+ return serialize($safearr);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php
new file mode 100644
index 00000000..3648a197
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php
@@ -0,0 +1,936 @@
+<?php
+
+/**
+ * Pure-PHP implementation of Rijndael.
+ *
+ * Uses mcrypt, if available/possible, and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * If {@link self::setBlockLength() setBlockLength()} isn't called, it'll be assumed to be 128 bits. If
+ * {@link self::setKeyLength() setKeyLength()} isn't called, it'll be calculated from
+ * {@link self::setKey() setKey()}. ie. if the key is 128-bits, the key length will be 128-bits. If it's
+ * 136-bits it'll be null-padded to 192-bits and 192 bits will be the key length until
+ * {@link self::setKey() setKey()} is called, again, at which point, it'll be recalculated.
+ *
+ * Not all Rijndael implementations may support 160-bits or 224-bits as the block length / key length. mcrypt, for example,
+ * does not. AES, itself, only supports block lengths of 128 and key lengths of 128, 192, and 256.
+ * {@link http://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf#page=10 Rijndael-ammended.pdf#page=10} defines the
+ * algorithm for block lengths of 192 and 256 but not for block lengths / key lengths of 160 and 224. Indeed, 160 and 224
+ * are first defined as valid key / block lengths in
+ * {@link http://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf#page=44 Rijndael-ammended.pdf#page=44}:
+ * Extensions: Other block and Cipher Key lengths.
+ * Note: Use of 160/224-bit Keys must be explicitly set by setKeyLength(160) respectively setKeyLength(224).
+ *
+ * {@internal The variable names are the same as those in
+ * {@link http://www.csrc.nist.gov/publications/fips/fips197/fips-197.pdf#page=10 fips-197.pdf#page=10}.}}
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $rijndael = new \phpseclib\Crypt\Rijndael();
+ *
+ * $rijndael->setKey('abcdefghijklmnop');
+ *
+ * $size = 10 * 1024;
+ * $plaintext = '';
+ * for ($i = 0; $i < $size; $i++) {
+ * $plaintext.= 'a';
+ * }
+ *
+ * echo $rijndael->decrypt($rijndael->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package Rijndael
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2008 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of Rijndael.
+ *
+ * @package Rijndael
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class Rijndael extends Base
+{
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * Mcrypt is useable for 128/192/256-bit $block_size/$key_length. For 160/224 not.
+ * \phpseclib\Crypt\Rijndael determines automatically whether mcrypt is useable
+ * or not for the current $block_size/$key_length.
+ * In case of, $cipher_name_mcrypt will be set dynamically at run time accordingly.
+ *
+ * @see \phpseclib\Crypt\Base::cipher_name_mcrypt
+ * @see \phpseclib\Crypt\Base::engine
+ * @see self::isValidEngine()
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt = 'rijndael-128';
+
+ /**
+ * The default salt used by setPassword()
+ *
+ * @see \phpseclib\Crypt\Base::password_default_salt
+ * @see \phpseclib\Crypt\Base::setPassword()
+ * @var string
+ * @access private
+ */
+ var $password_default_salt = 'phpseclib';
+
+ /**
+ * The Key Schedule
+ *
+ * @see self::_setup()
+ * @var array
+ * @access private
+ */
+ var $w;
+
+ /**
+ * The Inverse Key Schedule
+ *
+ * @see self::_setup()
+ * @var array
+ * @access private
+ */
+ var $dw;
+
+ /**
+ * The Block Length divided by 32
+ *
+ * @see self::setBlockLength()
+ * @var int
+ * @access private
+ * @internal The max value is 256 / 32 = 8, the min value is 128 / 32 = 4. Exists in conjunction with $block_size
+ * because the encryption / decryption / key schedule creation requires this number and not $block_size. We could
+ * derive this from $block_size or vice versa, but that'd mean we'd have to do multiple shift operations, so in lieu
+ * of that, we'll just precompute it once.
+ */
+ var $Nb = 4;
+
+ /**
+ * The Key Length (in bytes)
+ *
+ * @see self::setKeyLength()
+ * @var int
+ * @access private
+ * @internal The max value is 256 / 8 = 32, the min value is 128 / 8 = 16. Exists in conjunction with $Nk
+ * because the encryption / decryption / key schedule creation requires this number and not $key_length. We could
+ * derive this from $key_length or vice versa, but that'd mean we'd have to do multiple shift operations, so in lieu
+ * of that, we'll just precompute it once.
+ */
+ var $key_length = 16;
+
+ /**
+ * The Key Length divided by 32
+ *
+ * @see self::setKeyLength()
+ * @var int
+ * @access private
+ * @internal The max value is 256 / 32 = 8, the min value is 128 / 32 = 4
+ */
+ var $Nk = 4;
+
+ /**
+ * The Number of Rounds
+ *
+ * @var int
+ * @access private
+ * @internal The max value is 14, the min value is 10.
+ */
+ var $Nr;
+
+ /**
+ * Shift offsets
+ *
+ * @var array
+ * @access private
+ */
+ var $c;
+
+ /**
+ * Holds the last used key- and block_size information
+ *
+ * @var array
+ * @access private
+ */
+ var $kl;
+
+ /**
+ * Sets the key length.
+ *
+ * Valid key lengths are 128, 160, 192, 224, and 256. If the length is less than 128, it will be rounded up to
+ * 128. If the length is greater than 128 and invalid, it will be rounded down to the closest valid amount.
+ *
+ * Note: phpseclib extends Rijndael (and AES) for using 160- and 224-bit keys but they are officially not defined
+ * and the most (if not all) implementations are not able using 160/224-bit keys but round/pad them up to
+ * 192/256 bits as, for example, mcrypt will do.
+ *
+ * That said, if you want be compatible with other Rijndael and AES implementations,
+ * you should not setKeyLength(160) or setKeyLength(224).
+ *
+ * Additional: In case of 160- and 224-bit keys, phpseclib will/can, for that reason, not use
+ * the mcrypt php extension, even if available.
+ * This results then in slower encryption.
+ *
+ * @access public
+ * @param int $length
+ */
+ function setKeyLength($length)
+ {
+ switch (true) {
+ case $length <= 128:
+ $this->key_length = 16;
+ break;
+ case $length <= 160:
+ $this->key_length = 20;
+ break;
+ case $length <= 192:
+ $this->key_length = 24;
+ break;
+ case $length <= 224:
+ $this->key_length = 28;
+ break;
+ default:
+ $this->key_length = 32;
+ }
+
+ parent::setKeyLength($length);
+ }
+
+ /**
+ * Sets the block length
+ *
+ * Valid block lengths are 128, 160, 192, 224, and 256. If the length is less than 128, it will be rounded up to
+ * 128. If the length is greater than 128 and invalid, it will be rounded down to the closest valid amount.
+ *
+ * @access public
+ * @param int $length
+ */
+ function setBlockLength($length)
+ {
+ $length >>= 5;
+ if ($length > 8) {
+ $length = 8;
+ } elseif ($length < 4) {
+ $length = 4;
+ }
+ $this->Nb = $length;
+ $this->block_size = $length << 2;
+ $this->changed = true;
+ $this->_setEngine();
+ }
+
+ /**
+ * Test for engine validity
+ *
+ * This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
+ *
+ * @see \phpseclib\Crypt\Base::__construct()
+ * @param int $engine
+ * @access public
+ * @return bool
+ */
+ function isValidEngine($engine)
+ {
+ switch ($engine) {
+ case self::ENGINE_OPENSSL:
+ if ($this->block_size != 16) {
+ return false;
+ }
+ $this->cipher_name_openssl_ecb = 'aes-' . ($this->key_length << 3) . '-ecb';
+ $this->cipher_name_openssl = 'aes-' . ($this->key_length << 3) . '-' . $this->_openssl_translate_mode();
+ break;
+ case self::ENGINE_MCRYPT:
+ $this->cipher_name_mcrypt = 'rijndael-' . ($this->block_size << 3);
+ if ($this->key_length % 8) { // is it a 160/224-bit key?
+ // mcrypt is not usable for them, only for 128/192/256-bit keys
+ return false;
+ }
+ }
+
+ return parent::isValidEngine($engine);
+ }
+
+ /**
+ * Encrypts a block
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _encryptBlock($in)
+ {
+ static $tables;
+ if (empty($tables)) {
+ $tables = &$this->_getTables();
+ }
+ $t0 = $tables[0];
+ $t1 = $tables[1];
+ $t2 = $tables[2];
+ $t3 = $tables[3];
+ $sbox = $tables[4];
+
+ $state = array();
+ $words = unpack('N*', $in);
+
+ $c = $this->c;
+ $w = $this->w;
+ $Nb = $this->Nb;
+ $Nr = $this->Nr;
+
+ // addRoundKey
+ $wc = $Nb - 1;
+ foreach ($words as $word) {
+ $state[] = $word ^ $w[++$wc];
+ }
+
+ // fips-197.pdf#page=19, "Figure 5. Pseudo Code for the Cipher", states that this loop has four components -
+ // subBytes, shiftRows, mixColumns, and addRoundKey. fips-197.pdf#page=30, "Implementation Suggestions Regarding
+ // Various Platforms" suggests that performs enhanced implementations are described in Rijndael-ammended.pdf.
+ // Rijndael-ammended.pdf#page=20, "Implementation aspects / 32-bit processor", discusses such an optimization.
+ // Unfortunately, the description given there is not quite correct. Per aes.spec.v316.pdf#page=19 [1],
+ // equation (7.4.7) is supposed to use addition instead of subtraction, so we'll do that here, as well.
+
+ // [1] http://fp.gladman.plus.com/cryptography_technology/rijndael/aes.spec.v316.pdf
+ $temp = array();
+ for ($round = 1; $round < $Nr; ++$round) {
+ $i = 0; // $c[0] == 0
+ $j = $c[1];
+ $k = $c[2];
+ $l = $c[3];
+
+ while ($i < $Nb) {
+ $temp[$i] = $t0[$state[$i] >> 24 & 0x000000FF] ^
+ $t1[$state[$j] >> 16 & 0x000000FF] ^
+ $t2[$state[$k] >> 8 & 0x000000FF] ^
+ $t3[$state[$l] & 0x000000FF] ^
+ $w[++$wc];
+ ++$i;
+ $j = ($j + 1) % $Nb;
+ $k = ($k + 1) % $Nb;
+ $l = ($l + 1) % $Nb;
+ }
+ $state = $temp;
+ }
+
+ // subWord
+ for ($i = 0; $i < $Nb; ++$i) {
+ $state[$i] = $sbox[$state[$i] & 0x000000FF] |
+ ($sbox[$state[$i] >> 8 & 0x000000FF] << 8) |
+ ($sbox[$state[$i] >> 16 & 0x000000FF] << 16) |
+ ($sbox[$state[$i] >> 24 & 0x000000FF] << 24);
+ }
+
+ // shiftRows + addRoundKey
+ $i = 0; // $c[0] == 0
+ $j = $c[1];
+ $k = $c[2];
+ $l = $c[3];
+ while ($i < $Nb) {
+ $temp[$i] = ($state[$i] & 0xFF000000) ^
+ ($state[$j] & 0x00FF0000) ^
+ ($state[$k] & 0x0000FF00) ^
+ ($state[$l] & 0x000000FF) ^
+ $w[$i];
+ ++$i;
+ $j = ($j + 1) % $Nb;
+ $k = ($k + 1) % $Nb;
+ $l = ($l + 1) % $Nb;
+ }
+
+ switch ($Nb) {
+ case 8:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6], $temp[7]);
+ case 7:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6]);
+ case 6:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5]);
+ case 5:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4]);
+ default:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3]);
+ }
+ }
+
+ /**
+ * Decrypts a block
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _decryptBlock($in)
+ {
+ static $invtables;
+ if (empty($invtables)) {
+ $invtables = &$this->_getInvTables();
+ }
+ $dt0 = $invtables[0];
+ $dt1 = $invtables[1];
+ $dt2 = $invtables[2];
+ $dt3 = $invtables[3];
+ $isbox = $invtables[4];
+
+ $state = array();
+ $words = unpack('N*', $in);
+
+ $c = $this->c;
+ $dw = $this->dw;
+ $Nb = $this->Nb;
+ $Nr = $this->Nr;
+
+ // addRoundKey
+ $wc = $Nb - 1;
+ foreach ($words as $word) {
+ $state[] = $word ^ $dw[++$wc];
+ }
+
+ $temp = array();
+ for ($round = $Nr - 1; $round > 0; --$round) {
+ $i = 0; // $c[0] == 0
+ $j = $Nb - $c[1];
+ $k = $Nb - $c[2];
+ $l = $Nb - $c[3];
+
+ while ($i < $Nb) {
+ $temp[$i] = $dt0[$state[$i] >> 24 & 0x000000FF] ^
+ $dt1[$state[$j] >> 16 & 0x000000FF] ^
+ $dt2[$state[$k] >> 8 & 0x000000FF] ^
+ $dt3[$state[$l] & 0x000000FF] ^
+ $dw[++$wc];
+ ++$i;
+ $j = ($j + 1) % $Nb;
+ $k = ($k + 1) % $Nb;
+ $l = ($l + 1) % $Nb;
+ }
+ $state = $temp;
+ }
+
+ // invShiftRows + invSubWord + addRoundKey
+ $i = 0; // $c[0] == 0
+ $j = $Nb - $c[1];
+ $k = $Nb - $c[2];
+ $l = $Nb - $c[3];
+
+ while ($i < $Nb) {
+ $word = ($state[$i] & 0xFF000000) |
+ ($state[$j] & 0x00FF0000) |
+ ($state[$k] & 0x0000FF00) |
+ ($state[$l] & 0x000000FF);
+
+ $temp[$i] = $dw[$i] ^ ($isbox[$word & 0x000000FF] |
+ ($isbox[$word >> 8 & 0x000000FF] << 8) |
+ ($isbox[$word >> 16 & 0x000000FF] << 16) |
+ ($isbox[$word >> 24 & 0x000000FF] << 24));
+ ++$i;
+ $j = ($j + 1) % $Nb;
+ $k = ($k + 1) % $Nb;
+ $l = ($l + 1) % $Nb;
+ }
+
+ switch ($Nb) {
+ case 8:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6], $temp[7]);
+ case 7:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6]);
+ case 6:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5]);
+ case 5:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4]);
+ default:
+ return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3]);
+ }
+ }
+
+ /**
+ * Setup the key (expansion)
+ *
+ * @see \phpseclib\Crypt\Base::_setupKey()
+ * @access private
+ */
+ function _setupKey()
+ {
+ // Each number in $rcon is equal to the previous number multiplied by two in Rijndael's finite field.
+ // See http://en.wikipedia.org/wiki/Finite_field_arithmetic#Multiplicative_inverse
+ static $rcon = array(0,
+ 0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000,
+ 0x20000000, 0x40000000, 0x80000000, 0x1B000000, 0x36000000,
+ 0x6C000000, 0xD8000000, 0xAB000000, 0x4D000000, 0x9A000000,
+ 0x2F000000, 0x5E000000, 0xBC000000, 0x63000000, 0xC6000000,
+ 0x97000000, 0x35000000, 0x6A000000, 0xD4000000, 0xB3000000,
+ 0x7D000000, 0xFA000000, 0xEF000000, 0xC5000000, 0x91000000
+ );
+
+ if (isset($this->kl['key']) && $this->key === $this->kl['key'] && $this->key_length === $this->kl['key_length'] && $this->block_size === $this->kl['block_size']) {
+ // already expanded
+ return;
+ }
+ $this->kl = array('key' => $this->key, 'key_length' => $this->key_length, 'block_size' => $this->block_size);
+
+ $this->Nk = $this->key_length >> 2;
+ // see Rijndael-ammended.pdf#page=44
+ $this->Nr = max($this->Nk, $this->Nb) + 6;
+
+ // shift offsets for Nb = 5, 7 are defined in Rijndael-ammended.pdf#page=44,
+ // "Table 8: Shift offsets in Shiftrow for the alternative block lengths"
+ // shift offsets for Nb = 4, 6, 8 are defined in Rijndael-ammended.pdf#page=14,
+ // "Table 2: Shift offsets for different block lengths"
+ switch ($this->Nb) {
+ case 4:
+ case 5:
+ case 6:
+ $this->c = array(0, 1, 2, 3);
+ break;
+ case 7:
+ $this->c = array(0, 1, 2, 4);
+ break;
+ case 8:
+ $this->c = array(0, 1, 3, 4);
+ }
+
+ $w = array_values(unpack('N*words', $this->key));
+
+ $length = $this->Nb * ($this->Nr + 1);
+ for ($i = $this->Nk; $i < $length; $i++) {
+ $temp = $w[$i - 1];
+ if ($i % $this->Nk == 0) {
+ // according to <http://php.net/language.types.integer>, "the size of an integer is platform-dependent".
+ // on a 32-bit machine, it's 32-bits, and on a 64-bit machine, it's 64-bits. on a 32-bit machine,
+ // 0xFFFFFFFF << 8 == 0xFFFFFF00, but on a 64-bit machine, it equals 0xFFFFFFFF00. as such, doing 'and'
+ // with 0xFFFFFFFF (or 0xFFFFFF00) on a 32-bit machine is unnecessary, but on a 64-bit machine, it is.
+ $temp = (($temp << 8) & 0xFFFFFF00) | (($temp >> 24) & 0x000000FF); // rotWord
+ $temp = $this->_subWord($temp) ^ $rcon[$i / $this->Nk];
+ } elseif ($this->Nk > 6 && $i % $this->Nk == 4) {
+ $temp = $this->_subWord($temp);
+ }
+ $w[$i] = $w[$i - $this->Nk] ^ $temp;
+ }
+
+ // convert the key schedule from a vector of $Nb * ($Nr + 1) length to a matrix with $Nr + 1 rows and $Nb columns
+ // and generate the inverse key schedule. more specifically,
+ // according to <http://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf#page=23> (section 5.3.3),
+ // "The key expansion for the Inverse Cipher is defined as follows:
+ // 1. Apply the Key Expansion.
+ // 2. Apply InvMixColumn to all Round Keys except the first and the last one."
+ // also, see fips-197.pdf#page=27, "5.3.5 Equivalent Inverse Cipher"
+ list($dt0, $dt1, $dt2, $dt3) = $this->_getInvTables();
+ $temp = $this->w = $this->dw = array();
+ for ($i = $row = $col = 0; $i < $length; $i++, $col++) {
+ if ($col == $this->Nb) {
+ if ($row == 0) {
+ $this->dw[0] = $this->w[0];
+ } else {
+ // subWord + invMixColumn + invSubWord = invMixColumn
+ $j = 0;
+ while ($j < $this->Nb) {
+ $dw = $this->_subWord($this->w[$row][$j]);
+ $temp[$j] = $dt0[$dw >> 24 & 0x000000FF] ^
+ $dt1[$dw >> 16 & 0x000000FF] ^
+ $dt2[$dw >> 8 & 0x000000FF] ^
+ $dt3[$dw & 0x000000FF];
+ $j++;
+ }
+ $this->dw[$row] = $temp;
+ }
+
+ $col = 0;
+ $row++;
+ }
+ $this->w[$row][$col] = $w[$i];
+ }
+
+ $this->dw[$row] = $this->w[$row];
+
+ // Converting to 1-dim key arrays (both ascending)
+ $this->dw = array_reverse($this->dw);
+ $w = array_pop($this->w);
+ $dw = array_pop($this->dw);
+ foreach ($this->w as $r => $wr) {
+ foreach ($wr as $c => $wc) {
+ $w[] = $wc;
+ $dw[] = $this->dw[$r][$c];
+ }
+ }
+ $this->w = $w;
+ $this->dw = $dw;
+ }
+
+ /**
+ * Performs S-Box substitutions
+ *
+ * @access private
+ * @param int $word
+ */
+ function _subWord($word)
+ {
+ static $sbox;
+ if (empty($sbox)) {
+ list(, , , , $sbox) = $this->_getTables();
+ }
+
+ return $sbox[$word & 0x000000FF] |
+ ($sbox[$word >> 8 & 0x000000FF] << 8) |
+ ($sbox[$word >> 16 & 0x000000FF] << 16) |
+ ($sbox[$word >> 24 & 0x000000FF] << 24);
+ }
+
+ /**
+ * Provides the mixColumns and sboxes tables
+ *
+ * @see self::_encryptBlock()
+ * @see self::_setupInlineCrypt()
+ * @see self::_subWord()
+ * @access private
+ * @return array &$tables
+ */
+ function &_getTables()
+ {
+ static $tables;
+ if (empty($tables)) {
+ // according to <http://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf#page=19> (section 5.2.1),
+ // precomputed tables can be used in the mixColumns phase. in that example, they're assigned t0...t3, so
+ // those are the names we'll use.
+ $t3 = array_map('intval', array(
+ // with array_map('intval', ...) we ensure we have only int's and not
+ // some slower floats converted by php automatically on high values
+ 0x6363A5C6, 0x7C7C84F8, 0x777799EE, 0x7B7B8DF6, 0xF2F20DFF, 0x6B6BBDD6, 0x6F6FB1DE, 0xC5C55491,
+ 0x30305060, 0x01010302, 0x6767A9CE, 0x2B2B7D56, 0xFEFE19E7, 0xD7D762B5, 0xABABE64D, 0x76769AEC,
+ 0xCACA458F, 0x82829D1F, 0xC9C94089, 0x7D7D87FA, 0xFAFA15EF, 0x5959EBB2, 0x4747C98E, 0xF0F00BFB,
+ 0xADADEC41, 0xD4D467B3, 0xA2A2FD5F, 0xAFAFEA45, 0x9C9CBF23, 0xA4A4F753, 0x727296E4, 0xC0C05B9B,
+ 0xB7B7C275, 0xFDFD1CE1, 0x9393AE3D, 0x26266A4C, 0x36365A6C, 0x3F3F417E, 0xF7F702F5, 0xCCCC4F83,
+ 0x34345C68, 0xA5A5F451, 0xE5E534D1, 0xF1F108F9, 0x717193E2, 0xD8D873AB, 0x31315362, 0x15153F2A,
+ 0x04040C08, 0xC7C75295, 0x23236546, 0xC3C35E9D, 0x18182830, 0x9696A137, 0x05050F0A, 0x9A9AB52F,
+ 0x0707090E, 0x12123624, 0x80809B1B, 0xE2E23DDF, 0xEBEB26CD, 0x2727694E, 0xB2B2CD7F, 0x75759FEA,
+ 0x09091B12, 0x83839E1D, 0x2C2C7458, 0x1A1A2E34, 0x1B1B2D36, 0x6E6EB2DC, 0x5A5AEEB4, 0xA0A0FB5B,
+ 0x5252F6A4, 0x3B3B4D76, 0xD6D661B7, 0xB3B3CE7D, 0x29297B52, 0xE3E33EDD, 0x2F2F715E, 0x84849713,
+ 0x5353F5A6, 0xD1D168B9, 0x00000000, 0xEDED2CC1, 0x20206040, 0xFCFC1FE3, 0xB1B1C879, 0x5B5BEDB6,
+ 0x6A6ABED4, 0xCBCB468D, 0xBEBED967, 0x39394B72, 0x4A4ADE94, 0x4C4CD498, 0x5858E8B0, 0xCFCF4A85,
+ 0xD0D06BBB, 0xEFEF2AC5, 0xAAAAE54F, 0xFBFB16ED, 0x4343C586, 0x4D4DD79A, 0x33335566, 0x85859411,
+ 0x4545CF8A, 0xF9F910E9, 0x02020604, 0x7F7F81FE, 0x5050F0A0, 0x3C3C4478, 0x9F9FBA25, 0xA8A8E34B,
+ 0x5151F3A2, 0xA3A3FE5D, 0x4040C080, 0x8F8F8A05, 0x9292AD3F, 0x9D9DBC21, 0x38384870, 0xF5F504F1,
+ 0xBCBCDF63, 0xB6B6C177, 0xDADA75AF, 0x21216342, 0x10103020, 0xFFFF1AE5, 0xF3F30EFD, 0xD2D26DBF,
+ 0xCDCD4C81, 0x0C0C1418, 0x13133526, 0xECEC2FC3, 0x5F5FE1BE, 0x9797A235, 0x4444CC88, 0x1717392E,
+ 0xC4C45793, 0xA7A7F255, 0x7E7E82FC, 0x3D3D477A, 0x6464ACC8, 0x5D5DE7BA, 0x19192B32, 0x737395E6,
+ 0x6060A0C0, 0x81819819, 0x4F4FD19E, 0xDCDC7FA3, 0x22226644, 0x2A2A7E54, 0x9090AB3B, 0x8888830B,
+ 0x4646CA8C, 0xEEEE29C7, 0xB8B8D36B, 0x14143C28, 0xDEDE79A7, 0x5E5EE2BC, 0x0B0B1D16, 0xDBDB76AD,
+ 0xE0E03BDB, 0x32325664, 0x3A3A4E74, 0x0A0A1E14, 0x4949DB92, 0x06060A0C, 0x24246C48, 0x5C5CE4B8,
+ 0xC2C25D9F, 0xD3D36EBD, 0xACACEF43, 0x6262A6C4, 0x9191A839, 0x9595A431, 0xE4E437D3, 0x79798BF2,
+ 0xE7E732D5, 0xC8C8438B, 0x3737596E, 0x6D6DB7DA, 0x8D8D8C01, 0xD5D564B1, 0x4E4ED29C, 0xA9A9E049,
+ 0x6C6CB4D8, 0x5656FAAC, 0xF4F407F3, 0xEAEA25CF, 0x6565AFCA, 0x7A7A8EF4, 0xAEAEE947, 0x08081810,
+ 0xBABAD56F, 0x787888F0, 0x25256F4A, 0x2E2E725C, 0x1C1C2438, 0xA6A6F157, 0xB4B4C773, 0xC6C65197,
+ 0xE8E823CB, 0xDDDD7CA1, 0x74749CE8, 0x1F1F213E, 0x4B4BDD96, 0xBDBDDC61, 0x8B8B860D, 0x8A8A850F,
+ 0x707090E0, 0x3E3E427C, 0xB5B5C471, 0x6666AACC, 0x4848D890, 0x03030506, 0xF6F601F7, 0x0E0E121C,
+ 0x6161A3C2, 0x35355F6A, 0x5757F9AE, 0xB9B9D069, 0x86869117, 0xC1C15899, 0x1D1D273A, 0x9E9EB927,
+ 0xE1E138D9, 0xF8F813EB, 0x9898B32B, 0x11113322, 0x6969BBD2, 0xD9D970A9, 0x8E8E8907, 0x9494A733,
+ 0x9B9BB62D, 0x1E1E223C, 0x87879215, 0xE9E920C9, 0xCECE4987, 0x5555FFAA, 0x28287850, 0xDFDF7AA5,
+ 0x8C8C8F03, 0xA1A1F859, 0x89898009, 0x0D0D171A, 0xBFBFDA65, 0xE6E631D7, 0x4242C684, 0x6868B8D0,
+ 0x4141C382, 0x9999B029, 0x2D2D775A, 0x0F0F111E, 0xB0B0CB7B, 0x5454FCA8, 0xBBBBD66D, 0x16163A2C
+ ));
+
+ foreach ($t3 as $t3i) {
+ $t0[] = (($t3i << 24) & 0xFF000000) | (($t3i >> 8) & 0x00FFFFFF);
+ $t1[] = (($t3i << 16) & 0xFFFF0000) | (($t3i >> 16) & 0x0000FFFF);
+ $t2[] = (($t3i << 8) & 0xFFFFFF00) | (($t3i >> 24) & 0x000000FF);
+ }
+
+ $tables = array(
+ // The Precomputed mixColumns tables t0 - t3
+ $t0,
+ $t1,
+ $t2,
+ $t3,
+ // The SubByte S-Box
+ array(
+ 0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
+ 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0,
+ 0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15,
+ 0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2, 0xEB, 0x27, 0xB2, 0x75,
+ 0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0, 0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84,
+ 0x53, 0xD1, 0x00, 0xED, 0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF,
+ 0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F, 0x50, 0x3C, 0x9F, 0xA8,
+ 0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5, 0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2,
+ 0xCD, 0x0C, 0x13, 0xEC, 0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73,
+ 0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14, 0xDE, 0x5E, 0x0B, 0xDB,
+ 0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C, 0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79,
+ 0xE7, 0xC8, 0x37, 0x6D, 0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08,
+ 0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F, 0x4B, 0xBD, 0x8B, 0x8A,
+ 0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E, 0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E,
+ 0xE1, 0xF8, 0x98, 0x11, 0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF,
+ 0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F, 0xB0, 0x54, 0xBB, 0x16
+ )
+ );
+ }
+ return $tables;
+ }
+
+ /**
+ * Provides the inverse mixColumns and inverse sboxes tables
+ *
+ * @see self::_decryptBlock()
+ * @see self::_setupInlineCrypt()
+ * @see self::_setupKey()
+ * @access private
+ * @return array &$tables
+ */
+ function &_getInvTables()
+ {
+ static $tables;
+ if (empty($tables)) {
+ $dt3 = array_map('intval', array(
+ 0xF4A75051, 0x4165537E, 0x17A4C31A, 0x275E963A, 0xAB6BCB3B, 0x9D45F11F, 0xFA58ABAC, 0xE303934B,
+ 0x30FA5520, 0x766DF6AD, 0xCC769188, 0x024C25F5, 0xE5D7FC4F, 0x2ACBD7C5, 0x35448026, 0x62A38FB5,
+ 0xB15A49DE, 0xBA1B6725, 0xEA0E9845, 0xFEC0E15D, 0x2F7502C3, 0x4CF01281, 0x4697A38D, 0xD3F9C66B,
+ 0x8F5FE703, 0x929C9515, 0x6D7AEBBF, 0x5259DA95, 0xBE832DD4, 0x7421D358, 0xE0692949, 0xC9C8448E,
+ 0xC2896A75, 0x8E7978F4, 0x583E6B99, 0xB971DD27, 0xE14FB6BE, 0x88AD17F0, 0x20AC66C9, 0xCE3AB47D,
+ 0xDF4A1863, 0x1A3182E5, 0x51336097, 0x537F4562, 0x6477E0B1, 0x6BAE84BB, 0x81A01CFE, 0x082B94F9,
+ 0x48685870, 0x45FD198F, 0xDE6C8794, 0x7BF8B752, 0x73D323AB, 0x4B02E272, 0x1F8F57E3, 0x55AB2A66,
+ 0xEB2807B2, 0xB5C2032F, 0xC57B9A86, 0x3708A5D3, 0x2887F230, 0xBFA5B223, 0x036ABA02, 0x16825CED,
+ 0xCF1C2B8A, 0x79B492A7, 0x07F2F0F3, 0x69E2A14E, 0xDAF4CD65, 0x05BED506, 0x34621FD1, 0xA6FE8AC4,
+ 0x2E539D34, 0xF355A0A2, 0x8AE13205, 0xF6EB75A4, 0x83EC390B, 0x60EFAA40, 0x719F065E, 0x6E1051BD,
+ 0x218AF93E, 0xDD063D96, 0x3E05AEDD, 0xE6BD464D, 0x548DB591, 0xC45D0571, 0x06D46F04, 0x5015FF60,
+ 0x98FB2419, 0xBDE997D6, 0x4043CC89, 0xD99E7767, 0xE842BDB0, 0x898B8807, 0x195B38E7, 0xC8EEDB79,
+ 0x7C0A47A1, 0x420FE97C, 0x841EC9F8, 0x00000000, 0x80868309, 0x2BED4832, 0x1170AC1E, 0x5A724E6C,
+ 0x0EFFFBFD, 0x8538560F, 0xAED51E3D, 0x2D392736, 0x0FD9640A, 0x5CA62168, 0x5B54D19B, 0x362E3A24,
+ 0x0A67B10C, 0x57E70F93, 0xEE96D2B4, 0x9B919E1B, 0xC0C54F80, 0xDC20A261, 0x774B695A, 0x121A161C,
+ 0x93BA0AE2, 0xA02AE5C0, 0x22E0433C, 0x1B171D12, 0x090D0B0E, 0x8BC7ADF2, 0xB6A8B92D, 0x1EA9C814,
+ 0xF1198557, 0x75074CAF, 0x99DDBBEE, 0x7F60FDA3, 0x01269FF7, 0x72F5BC5C, 0x663BC544, 0xFB7E345B,
+ 0x4329768B, 0x23C6DCCB, 0xEDFC68B6, 0xE4F163B8, 0x31DCCAD7, 0x63851042, 0x97224013, 0xC6112084,
+ 0x4A247D85, 0xBB3DF8D2, 0xF93211AE, 0x29A16DC7, 0x9E2F4B1D, 0xB230F3DC, 0x8652EC0D, 0xC1E3D077,
+ 0xB3166C2B, 0x70B999A9, 0x9448FA11, 0xE9642247, 0xFC8CC4A8, 0xF03F1AA0, 0x7D2CD856, 0x3390EF22,
+ 0x494EC787, 0x38D1C1D9, 0xCAA2FE8C, 0xD40B3698, 0xF581CFA6, 0x7ADE28A5, 0xB78E26DA, 0xADBFA43F,
+ 0x3A9DE42C, 0x78920D50, 0x5FCC9B6A, 0x7E466254, 0x8D13C2F6, 0xD8B8E890, 0x39F75E2E, 0xC3AFF582,
+ 0x5D80BE9F, 0xD0937C69, 0xD52DA96F, 0x2512B3CF, 0xAC993BC8, 0x187DA710, 0x9C636EE8, 0x3BBB7BDB,
+ 0x267809CD, 0x5918F46E, 0x9AB701EC, 0x4F9AA883, 0x956E65E6, 0xFFE67EAA, 0xBCCF0821, 0x15E8E6EF,
+ 0xE79BD9BA, 0x6F36CE4A, 0x9F09D4EA, 0xB07CD629, 0xA4B2AF31, 0x3F23312A, 0xA59430C6, 0xA266C035,
+ 0x4EBC3774, 0x82CAA6FC, 0x90D0B0E0, 0xA7D81533, 0x04984AF1, 0xECDAF741, 0xCD500E7F, 0x91F62F17,
+ 0x4DD68D76, 0xEFB04D43, 0xAA4D54CC, 0x9604DFE4, 0xD1B5E39E, 0x6A881B4C, 0x2C1FB8C1, 0x65517F46,
+ 0x5EEA049D, 0x8C355D01, 0x877473FA, 0x0B412EFB, 0x671D5AB3, 0xDBD25292, 0x105633E9, 0xD647136D,
+ 0xD7618C9A, 0xA10C7A37, 0xF8148E59, 0x133C89EB, 0xA927EECE, 0x61C935B7, 0x1CE5EDE1, 0x47B13C7A,
+ 0xD2DF599C, 0xF2733F55, 0x14CE7918, 0xC737BF73, 0xF7CDEA53, 0xFDAA5B5F, 0x3D6F14DF, 0x44DB8678,
+ 0xAFF381CA, 0x68C43EB9, 0x24342C38, 0xA3405FC2, 0x1DC37216, 0xE2250CBC, 0x3C498B28, 0x0D9541FF,
+ 0xA8017139, 0x0CB3DE08, 0xB4E49CD8, 0x56C19064, 0xCB84617B, 0x32B670D5, 0x6C5C7448, 0xB85742D0
+ ));
+
+ foreach ($dt3 as $dt3i) {
+ $dt0[] = (($dt3i << 24) & 0xFF000000) | (($dt3i >> 8) & 0x00FFFFFF);
+ $dt1[] = (($dt3i << 16) & 0xFFFF0000) | (($dt3i >> 16) & 0x0000FFFF);
+ $dt2[] = (($dt3i << 8) & 0xFFFFFF00) | (($dt3i >> 24) & 0x000000FF);
+ };
+
+ $tables = array(
+ // The Precomputed inverse mixColumns tables dt0 - dt3
+ $dt0,
+ $dt1,
+ $dt2,
+ $dt3,
+ // The inverse SubByte S-Box
+ array(
+ 0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E, 0x81, 0xF3, 0xD7, 0xFB,
+ 0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87, 0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB,
+ 0x54, 0x7B, 0x94, 0x32, 0xA6, 0xC2, 0x23, 0x3D, 0xEE, 0x4C, 0x95, 0x0B, 0x42, 0xFA, 0xC3, 0x4E,
+ 0x08, 0x2E, 0xA1, 0x66, 0x28, 0xD9, 0x24, 0xB2, 0x76, 0x5B, 0xA2, 0x49, 0x6D, 0x8B, 0xD1, 0x25,
+ 0x72, 0xF8, 0xF6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xD4, 0xA4, 0x5C, 0xCC, 0x5D, 0x65, 0xB6, 0x92,
+ 0x6C, 0x70, 0x48, 0x50, 0xFD, 0xED, 0xB9, 0xDA, 0x5E, 0x15, 0x46, 0x57, 0xA7, 0x8D, 0x9D, 0x84,
+ 0x90, 0xD8, 0xAB, 0x00, 0x8C, 0xBC, 0xD3, 0x0A, 0xF7, 0xE4, 0x58, 0x05, 0xB8, 0xB3, 0x45, 0x06,
+ 0xD0, 0x2C, 0x1E, 0x8F, 0xCA, 0x3F, 0x0F, 0x02, 0xC1, 0xAF, 0xBD, 0x03, 0x01, 0x13, 0x8A, 0x6B,
+ 0x3A, 0x91, 0x11, 0x41, 0x4F, 0x67, 0xDC, 0xEA, 0x97, 0xF2, 0xCF, 0xCE, 0xF0, 0xB4, 0xE6, 0x73,
+ 0x96, 0xAC, 0x74, 0x22, 0xE7, 0xAD, 0x35, 0x85, 0xE2, 0xF9, 0x37, 0xE8, 0x1C, 0x75, 0xDF, 0x6E,
+ 0x47, 0xF1, 0x1A, 0x71, 0x1D, 0x29, 0xC5, 0x89, 0x6F, 0xB7, 0x62, 0x0E, 0xAA, 0x18, 0xBE, 0x1B,
+ 0xFC, 0x56, 0x3E, 0x4B, 0xC6, 0xD2, 0x79, 0x20, 0x9A, 0xDB, 0xC0, 0xFE, 0x78, 0xCD, 0x5A, 0xF4,
+ 0x1F, 0xDD, 0xA8, 0x33, 0x88, 0x07, 0xC7, 0x31, 0xB1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xEC, 0x5F,
+ 0x60, 0x51, 0x7F, 0xA9, 0x19, 0xB5, 0x4A, 0x0D, 0x2D, 0xE5, 0x7A, 0x9F, 0x93, 0xC9, 0x9C, 0xEF,
+ 0xA0, 0xE0, 0x3B, 0x4D, 0xAE, 0x2A, 0xF5, 0xB0, 0xC8, 0xEB, 0xBB, 0x3C, 0x83, 0x53, 0x99, 0x61,
+ 0x17, 0x2B, 0x04, 0x7E, 0xBA, 0x77, 0xD6, 0x26, 0xE1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0C, 0x7D
+ )
+ );
+ }
+ return $tables;
+ }
+
+ /**
+ * Setup the performance-optimized function for de/encrypt()
+ *
+ * @see \phpseclib\Crypt\Base::_setupInlineCrypt()
+ * @access private
+ */
+ function _setupInlineCrypt()
+ {
+ // Note: _setupInlineCrypt() will be called only if $this->changed === true
+ // So here we are'nt under the same heavy timing-stress as we are in _de/encryptBlock() or de/encrypt().
+ // However...the here generated function- $code, stored as php callback in $this->inline_crypt, must work as fast as even possible.
+
+ $lambda_functions =& self::_getLambdaFunctions();
+
+ // We create max. 10 hi-optimized code for memory reason. Means: For each $key one ultra fast inline-crypt function.
+ // (Currently, for Crypt_Rijndael/AES, one generated $lambda_function cost on php5.5@32bit ~80kb unfreeable mem and ~130kb on php5.5@64bit)
+ // After that, we'll still create very fast optimized code but not the hi-ultimative code, for each $mode one.
+ $gen_hi_opt_code = (bool)(count($lambda_functions) < 10);
+
+ // Generation of a uniqe hash for our generated code
+ $code_hash = "Crypt_Rijndael, {$this->mode}, {$this->Nr}, {$this->Nb}";
+ if ($gen_hi_opt_code) {
+ $code_hash = str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key);
+ }
+
+ if (!isset($lambda_functions[$code_hash])) {
+ switch (true) {
+ case $gen_hi_opt_code:
+ // The hi-optimized $lambda_functions will use the key-words hardcoded for better performance.
+ $w = $this->w;
+ $dw = $this->dw;
+ $init_encrypt = '';
+ $init_decrypt = '';
+ break;
+ default:
+ for ($i = 0, $cw = count($this->w); $i < $cw; ++$i) {
+ $w[] = '$w[' . $i . ']';
+ $dw[] = '$dw[' . $i . ']';
+ }
+ $init_encrypt = '$w = $self->w;';
+ $init_decrypt = '$dw = $self->dw;';
+ }
+
+ $Nr = $this->Nr;
+ $Nb = $this->Nb;
+ $c = $this->c;
+
+ // Generating encrypt code:
+ $init_encrypt.= '
+ static $tables;
+ if (empty($tables)) {
+ $tables = &$self->_getTables();
+ }
+ $t0 = $tables[0];
+ $t1 = $tables[1];
+ $t2 = $tables[2];
+ $t3 = $tables[3];
+ $sbox = $tables[4];
+ ';
+
+ $s = 'e';
+ $e = 's';
+ $wc = $Nb - 1;
+
+ // Preround: addRoundKey
+ $encrypt_block = '$in = unpack("N*", $in);'."\n";
+ for ($i = 0; $i < $Nb; ++$i) {
+ $encrypt_block .= '$s'.$i.' = $in['.($i + 1).'] ^ '.$w[++$wc].";\n";
+ }
+
+ // Mainrounds: shiftRows + subWord + mixColumns + addRoundKey
+ for ($round = 1; $round < $Nr; ++$round) {
+ list($s, $e) = array($e, $s);
+ for ($i = 0; $i < $Nb; ++$i) {
+ $encrypt_block.=
+ '$'.$e.$i.' =
+ $t0[($'.$s.$i .' >> 24) & 0xff] ^
+ $t1[($'.$s.(($i + $c[1]) % $Nb).' >> 16) & 0xff] ^
+ $t2[($'.$s.(($i + $c[2]) % $Nb).' >> 8) & 0xff] ^
+ $t3[ $'.$s.(($i + $c[3]) % $Nb).' & 0xff] ^
+ '.$w[++$wc].";\n";
+ }
+ }
+
+ // Finalround: subWord + shiftRows + addRoundKey
+ for ($i = 0; $i < $Nb; ++$i) {
+ $encrypt_block.=
+ '$'.$e.$i.' =
+ $sbox[ $'.$e.$i.' & 0xff] |
+ ($sbox[($'.$e.$i.' >> 8) & 0xff] << 8) |
+ ($sbox[($'.$e.$i.' >> 16) & 0xff] << 16) |
+ ($sbox[($'.$e.$i.' >> 24) & 0xff] << 24);'."\n";
+ }
+ $encrypt_block .= '$in = pack("N*"'."\n";
+ for ($i = 0; $i < $Nb; ++$i) {
+ $encrypt_block.= ',
+ ($'.$e.$i .' & '.((int)0xFF000000).') ^
+ ($'.$e.(($i + $c[1]) % $Nb).' & 0x00FF0000 ) ^
+ ($'.$e.(($i + $c[2]) % $Nb).' & 0x0000FF00 ) ^
+ ($'.$e.(($i + $c[3]) % $Nb).' & 0x000000FF ) ^
+ '.$w[$i]."\n";
+ }
+ $encrypt_block .= ');';
+
+ // Generating decrypt code:
+ $init_decrypt.= '
+ static $invtables;
+ if (empty($invtables)) {
+ $invtables = &$self->_getInvTables();
+ }
+ $dt0 = $invtables[0];
+ $dt1 = $invtables[1];
+ $dt2 = $invtables[2];
+ $dt3 = $invtables[3];
+ $isbox = $invtables[4];
+ ';
+
+ $s = 'e';
+ $e = 's';
+ $wc = $Nb - 1;
+
+ // Preround: addRoundKey
+ $decrypt_block = '$in = unpack("N*", $in);'."\n";
+ for ($i = 0; $i < $Nb; ++$i) {
+ $decrypt_block .= '$s'.$i.' = $in['.($i + 1).'] ^ '.$dw[++$wc].';'."\n";
+ }
+
+ // Mainrounds: shiftRows + subWord + mixColumns + addRoundKey
+ for ($round = 1; $round < $Nr; ++$round) {
+ list($s, $e) = array($e, $s);
+ for ($i = 0; $i < $Nb; ++$i) {
+ $decrypt_block.=
+ '$'.$e.$i.' =
+ $dt0[($'.$s.$i .' >> 24) & 0xff] ^
+ $dt1[($'.$s.(($Nb + $i - $c[1]) % $Nb).' >> 16) & 0xff] ^
+ $dt2[($'.$s.(($Nb + $i - $c[2]) % $Nb).' >> 8) & 0xff] ^
+ $dt3[ $'.$s.(($Nb + $i - $c[3]) % $Nb).' & 0xff] ^
+ '.$dw[++$wc].";\n";
+ }
+ }
+
+ // Finalround: subWord + shiftRows + addRoundKey
+ for ($i = 0; $i < $Nb; ++$i) {
+ $decrypt_block.=
+ '$'.$e.$i.' =
+ $isbox[ $'.$e.$i.' & 0xff] |
+ ($isbox[($'.$e.$i.' >> 8) & 0xff] << 8) |
+ ($isbox[($'.$e.$i.' >> 16) & 0xff] << 16) |
+ ($isbox[($'.$e.$i.' >> 24) & 0xff] << 24);'."\n";
+ }
+ $decrypt_block .= '$in = pack("N*"'."\n";
+ for ($i = 0; $i < $Nb; ++$i) {
+ $decrypt_block.= ',
+ ($'.$e.$i. ' & '.((int)0xFF000000).') ^
+ ($'.$e.(($Nb + $i - $c[1]) % $Nb).' & 0x00FF0000 ) ^
+ ($'.$e.(($Nb + $i - $c[2]) % $Nb).' & 0x0000FF00 ) ^
+ ($'.$e.(($Nb + $i - $c[3]) % $Nb).' & 0x000000FF ) ^
+ '.$dw[$i]."\n";
+ }
+ $decrypt_block .= ');';
+
+ $lambda_functions[$code_hash] = $this->_createInlineCryptFunction(
+ array(
+ 'init_crypt' => '',
+ 'init_encrypt' => $init_encrypt,
+ 'init_decrypt' => $init_decrypt,
+ 'encrypt_block' => $encrypt_block,
+ 'decrypt_block' => $decrypt_block
+ )
+ );
+ }
+ $this->inline_crypt = $lambda_functions[$code_hash];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php
new file mode 100644
index 00000000..a2c41668
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php
@@ -0,0 +1,460 @@
+<?php
+
+/**
+ * Pure-PHP implementation of Triple DES.
+ *
+ * Uses mcrypt, if available, and an internal implementation, otherwise. Operates in the EDE3 mode (encrypt-decrypt-encrypt).
+ *
+ * PHP version 5
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $des = new \phpseclib\Crypt\TripleDES();
+ *
+ * $des->setKey('abcdefghijklmnopqrstuvwx');
+ *
+ * $size = 10 * 1024;
+ * $plaintext = '';
+ * for ($i = 0; $i < $size; $i++) {
+ * $plaintext.= 'a';
+ * }
+ *
+ * echo $des->decrypt($des->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package TripleDES
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of Triple DES.
+ *
+ * @package TripleDES
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class TripleDES extends DES
+{
+ /**
+ * Encrypt / decrypt using inner chaining
+ *
+ * Inner chaining is used by SSH-1 and is generally considered to be less secure then outer chaining (self::MODE_CBC3).
+ */
+ const MODE_3CBC = -2;
+
+ /**
+ * Encrypt / decrypt using outer chaining
+ *
+ * Outer chaining is used by SSH-2 and when the mode is set to \phpseclib\Crypt\Base::MODE_CBC.
+ */
+ const MODE_CBC3 = Base::MODE_CBC;
+
+ /**
+ * Key Length (in bytes)
+ *
+ * @see \phpseclib\Crypt\TripleDES::setKeyLength()
+ * @var int
+ * @access private
+ */
+ var $key_length = 24;
+
+ /**
+ * The default salt used by setPassword()
+ *
+ * @see \phpseclib\Crypt\Base::password_default_salt
+ * @see \phpseclib\Crypt\Base::setPassword()
+ * @var string
+ * @access private
+ */
+ var $password_default_salt = 'phpseclib';
+
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * @see \phpseclib\Crypt\DES::cipher_name_mcrypt
+ * @see \phpseclib\Crypt\Base::cipher_name_mcrypt
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt = 'tripledes';
+
+ /**
+ * Optimizing value while CFB-encrypting
+ *
+ * @see \phpseclib\Crypt\Base::cfb_init_len
+ * @var int
+ * @access private
+ */
+ var $cfb_init_len = 750;
+
+ /**
+ * max possible size of $key
+ *
+ * @see self::setKey()
+ * @see \phpseclib\Crypt\DES::setKey()
+ * @var string
+ * @access private
+ */
+ var $key_length_max = 24;
+
+ /**
+ * Internal flag whether using self::MODE_3CBC or not
+ *
+ * @var bool
+ * @access private
+ */
+ var $mode_3cbc;
+
+ /**
+ * The \phpseclib\Crypt\DES objects
+ *
+ * Used only if $mode_3cbc === true
+ *
+ * @var array
+ * @access private
+ */
+ var $des;
+
+ /**
+ * Default Constructor.
+ *
+ * Determines whether or not the mcrypt extension should be used.
+ *
+ * $mode could be:
+ *
+ * - \phpseclib\Crypt\Base::MODE_ECB
+ *
+ * - \phpseclib\Crypt\Base::MODE_CBC
+ *
+ * - \phpseclib\Crypt\Base::MODE_CTR
+ *
+ * - \phpseclib\Crypt\Base::MODE_CFB
+ *
+ * - \phpseclib\Crypt\Base::MODE_OFB
+ *
+ * - \phpseclib\Crypt\TripleDES::MODE_3CBC
+ *
+ * If not explicitly set, \phpseclib\Crypt\Base::MODE_CBC will be used.
+ *
+ * @see \phpseclib\Crypt\DES::__construct()
+ * @see \phpseclib\Crypt\Base::__construct()
+ * @param int $mode
+ * @access public
+ */
+ function __construct($mode = Base::MODE_CBC)
+ {
+ switch ($mode) {
+ // In case of self::MODE_3CBC, we init as CRYPT_DES_MODE_CBC
+ // and additional flag us internally as 3CBC
+ case self::MODE_3CBC:
+ parent::__construct(Base::MODE_CBC);
+ $this->mode_3cbc = true;
+
+ // This three $des'es will do the 3CBC work (if $key > 64bits)
+ $this->des = array(
+ new DES(Base::MODE_CBC),
+ new DES(Base::MODE_CBC),
+ new DES(Base::MODE_CBC),
+ );
+
+ // we're going to be doing the padding, ourselves, so disable it in the \phpseclib\Crypt\DES objects
+ $this->des[0]->disablePadding();
+ $this->des[1]->disablePadding();
+ $this->des[2]->disablePadding();
+ break;
+ // If not 3CBC, we init as usual
+ default:
+ parent::__construct($mode);
+ }
+ }
+
+ /**
+ * Test for engine validity
+ *
+ * This is mainly just a wrapper to set things up for \phpseclib\Crypt\Base::isValidEngine()
+ *
+ * @see \phpseclib\Crypt\Base::__construct()
+ * @param int $engine
+ * @access public
+ * @return bool
+ */
+ function isValidEngine($engine)
+ {
+ if ($engine == self::ENGINE_OPENSSL) {
+ $this->cipher_name_openssl_ecb = 'des-ede3';
+ $mode = $this->_openssl_translate_mode();
+ $this->cipher_name_openssl = $mode == 'ecb' ? 'des-ede3' : 'des-ede3-' . $mode;
+ }
+
+ return parent::isValidEngine($engine);
+ }
+
+ /**
+ * Sets the initialization vector. (optional)
+ *
+ * SetIV is not required when \phpseclib\Crypt\Base::MODE_ECB is being used. If not explicitly set, it'll be assumed
+ * to be all zero's.
+ *
+ * @see \phpseclib\Crypt\Base::setIV()
+ * @access public
+ * @param string $iv
+ */
+ function setIV($iv)
+ {
+ parent::setIV($iv);
+ if ($this->mode_3cbc) {
+ $this->des[0]->setIV($iv);
+ $this->des[1]->setIV($iv);
+ $this->des[2]->setIV($iv);
+ }
+ }
+
+ /**
+ * Sets the key length.
+ *
+ * Valid key lengths are 64, 128 and 192
+ *
+ * @see \phpseclib\Crypt\Base:setKeyLength()
+ * @access public
+ * @param int $length
+ */
+ function setKeyLength($length)
+ {
+ $length >>= 3;
+ switch (true) {
+ case $length <= 8:
+ $this->key_length = 8;
+ break;
+ case $length <= 16:
+ $this->key_length = 16;
+ break;
+ default:
+ $this->key_length = 24;
+ }
+
+ parent::setKeyLength($length);
+ }
+
+ /**
+ * Sets the key.
+ *
+ * Keys can be of any length. Triple DES, itself, can use 128-bit (eg. strlen($key) == 16) or
+ * 192-bit (eg. strlen($key) == 24) keys. This function pads and truncates $key as appropriate.
+ *
+ * DES also requires that every eighth bit be a parity bit, however, we'll ignore that.
+ *
+ * If the key is not explicitly set, it'll be assumed to be all null bytes.
+ *
+ * @access public
+ * @see \phpseclib\Crypt\DES::setKey()
+ * @see \phpseclib\Crypt\Base::setKey()
+ * @param string $key
+ */
+ function setKey($key)
+ {
+ $length = $this->explicit_key_length ? $this->key_length : strlen($key);
+ if ($length > 8) {
+ $key = str_pad(substr($key, 0, 24), 24, chr(0));
+ // if $key is between 64 and 128-bits, use the first 64-bits as the last, per this:
+ // http://php.net/function.mcrypt-encrypt#47973
+ $key = $length <= 16 ? substr_replace($key, substr($key, 0, 8), 16) : substr($key, 0, 24);
+ } else {
+ $key = str_pad($key, 8, chr(0));
+ }
+ parent::setKey($key);
+
+ // And in case of self::MODE_3CBC:
+ // if key <= 64bits we not need the 3 $des to work,
+ // because we will then act as regular DES-CBC with just a <= 64bit key.
+ // So only if the key > 64bits (> 8 bytes) we will call setKey() for the 3 $des.
+ if ($this->mode_3cbc && $length > 8) {
+ $this->des[0]->setKey(substr($key, 0, 8));
+ $this->des[1]->setKey(substr($key, 8, 8));
+ $this->des[2]->setKey(substr($key, 16, 8));
+ }
+ }
+
+ /**
+ * Encrypts a message.
+ *
+ * @see \phpseclib\Crypt\Base::encrypt()
+ * @access public
+ * @param string $plaintext
+ * @return string $cipertext
+ */
+ function encrypt($plaintext)
+ {
+ // parent::en/decrypt() is able to do all the work for all modes and keylengths,
+ // except for: self::MODE_3CBC (inner chaining CBC) with a key > 64bits
+
+ // if the key is smaller then 8, do what we'd normally do
+ if ($this->mode_3cbc && strlen($this->key) > 8) {
+ return $this->des[2]->encrypt(
+ $this->des[1]->decrypt(
+ $this->des[0]->encrypt(
+ $this->_pad($plaintext)
+ )
+ )
+ );
+ }
+
+ return parent::encrypt($plaintext);
+ }
+
+ /**
+ * Decrypts a message.
+ *
+ * @see \phpseclib\Crypt\Base::decrypt()
+ * @access public
+ * @param string $ciphertext
+ * @return string $plaintext
+ */
+ function decrypt($ciphertext)
+ {
+ if ($this->mode_3cbc && strlen($this->key) > 8) {
+ return $this->_unpad(
+ $this->des[0]->decrypt(
+ $this->des[1]->encrypt(
+ $this->des[2]->decrypt(
+ str_pad($ciphertext, (strlen($ciphertext) + 7) & 0xFFFFFFF8, "\0")
+ )
+ )
+ )
+ );
+ }
+
+ return parent::decrypt($ciphertext);
+ }
+
+ /**
+ * Treat consecutive "packets" as if they are a continuous buffer.
+ *
+ * Say you have a 16-byte plaintext $plaintext. Using the default behavior, the two following code snippets
+ * will yield different outputs:
+ *
+ * <code>
+ * echo $des->encrypt(substr($plaintext, 0, 8));
+ * echo $des->encrypt(substr($plaintext, 8, 8));
+ * </code>
+ * <code>
+ * echo $des->encrypt($plaintext);
+ * </code>
+ *
+ * The solution is to enable the continuous buffer. Although this will resolve the above discrepancy, it creates
+ * another, as demonstrated with the following:
+ *
+ * <code>
+ * $des->encrypt(substr($plaintext, 0, 8));
+ * echo $des->decrypt($des->encrypt(substr($plaintext, 8, 8)));
+ * </code>
+ * <code>
+ * echo $des->decrypt($des->encrypt(substr($plaintext, 8, 8)));
+ * </code>
+ *
+ * With the continuous buffer disabled, these would yield the same output. With it enabled, they yield different
+ * outputs. The reason is due to the fact that the initialization vector's change after every encryption /
+ * decryption round when the continuous buffer is enabled. When it's disabled, they remain constant.
+ *
+ * Put another way, when the continuous buffer is enabled, the state of the \phpseclib\Crypt\DES() object changes after each
+ * encryption / decryption round, whereas otherwise, it'd remain constant. For this reason, it's recommended that
+ * continuous buffers not be used. They do offer better security and are, in fact, sometimes required (SSH uses them),
+ * however, they are also less intuitive and more likely to cause you problems.
+ *
+ * @see \phpseclib\Crypt\Base::enableContinuousBuffer()
+ * @see self::disableContinuousBuffer()
+ * @access public
+ */
+ function enableContinuousBuffer()
+ {
+ parent::enableContinuousBuffer();
+ if ($this->mode_3cbc) {
+ $this->des[0]->enableContinuousBuffer();
+ $this->des[1]->enableContinuousBuffer();
+ $this->des[2]->enableContinuousBuffer();
+ }
+ }
+
+ /**
+ * Treat consecutive packets as if they are a discontinuous buffer.
+ *
+ * The default behavior.
+ *
+ * @see \phpseclib\Crypt\Base::disableContinuousBuffer()
+ * @see self::enableContinuousBuffer()
+ * @access public
+ */
+ function disableContinuousBuffer()
+ {
+ parent::disableContinuousBuffer();
+ if ($this->mode_3cbc) {
+ $this->des[0]->disableContinuousBuffer();
+ $this->des[1]->disableContinuousBuffer();
+ $this->des[2]->disableContinuousBuffer();
+ }
+ }
+
+ /**
+ * Creates the key schedule
+ *
+ * @see \phpseclib\Crypt\DES::_setupKey()
+ * @see \phpseclib\Crypt\Base::_setupKey()
+ * @access private
+ */
+ function _setupKey()
+ {
+ switch (true) {
+ // if $key <= 64bits we configure our internal pure-php cipher engine
+ // to act as regular [1]DES, not as 3DES. mcrypt.so::tripledes does the same.
+ case strlen($this->key) <= 8:
+ $this->des_rounds = 1;
+ break;
+
+ // otherwise, if $key > 64bits, we configure our engine to work as 3DES.
+ default:
+ $this->des_rounds = 3;
+
+ // (only) if 3CBC is used we have, of course, to setup the $des[0-2] keys also separately.
+ if ($this->mode_3cbc) {
+ $this->des[0]->_setupKey();
+ $this->des[1]->_setupKey();
+ $this->des[2]->_setupKey();
+
+ // because $des[0-2] will, now, do all the work we can return here
+ // not need unnecessary stress parent::_setupKey() with our, now unused, $key.
+ return;
+ }
+ }
+ // setup our key
+ parent::_setupKey();
+ }
+
+ /**
+ * Sets the internal crypt engine
+ *
+ * @see \phpseclib\Crypt\Base::__construct()
+ * @see \phpseclib\Crypt\Base::setPreferredEngine()
+ * @param int $engine
+ * @access public
+ * @return int
+ */
+ function setPreferredEngine($engine)
+ {
+ if ($this->mode_3cbc) {
+ $this->des[0]->setPreferredEngine($engine);
+ $this->des[1]->setPreferredEngine($engine);
+ $this->des[2]->setPreferredEngine($engine);
+ }
+
+ return parent::setPreferredEngine($engine);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php
new file mode 100644
index 00000000..3dd4ea1d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php
@@ -0,0 +1,808 @@
+<?php
+
+/**
+ * Pure-PHP implementation of Twofish.
+ *
+ * Uses mcrypt, if available, and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * Useful resources are as follows:
+ *
+ * - {@link http://en.wikipedia.org/wiki/Twofish Wikipedia description of Twofish}
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $twofish = new \phpseclib\Crypt\Twofish();
+ *
+ * $twofish->setKey('12345678901234567890123456789012');
+ *
+ * $plaintext = str_repeat('a', 1024);
+ *
+ * echo $twofish->decrypt($twofish->encrypt($plaintext));
+ * ?>
+ * </code>
+ *
+ * @category Crypt
+ * @package Twofish
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @author Hans-Juergen Petrich <petrich@tronic-media.com>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Crypt;
+
+/**
+ * Pure-PHP implementation of Twofish.
+ *
+ * @package Twofish
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @author Hans-Juergen Petrich <petrich@tronic-media.com>
+ * @access public
+ */
+class Twofish extends Base
+{
+ /**
+ * The mcrypt specific name of the cipher
+ *
+ * @see \phpseclib\Crypt\Base::cipher_name_mcrypt
+ * @var string
+ * @access private
+ */
+ var $cipher_name_mcrypt = 'twofish';
+
+ /**
+ * Optimizing value while CFB-encrypting
+ *
+ * @see \phpseclib\Crypt\Base::cfb_init_len
+ * @var int
+ * @access private
+ */
+ var $cfb_init_len = 800;
+
+ /**
+ * Q-Table
+ *
+ * @var array
+ * @access private
+ */
+ var $q0 = array(
+ 0xA9, 0x67, 0xB3, 0xE8, 0x04, 0xFD, 0xA3, 0x76,
+ 0x9A, 0x92, 0x80, 0x78, 0xE4, 0xDD, 0xD1, 0x38,
+ 0x0D, 0xC6, 0x35, 0x98, 0x18, 0xF7, 0xEC, 0x6C,
+ 0x43, 0x75, 0x37, 0x26, 0xFA, 0x13, 0x94, 0x48,
+ 0xF2, 0xD0, 0x8B, 0x30, 0x84, 0x54, 0xDF, 0x23,
+ 0x19, 0x5B, 0x3D, 0x59, 0xF3, 0xAE, 0xA2, 0x82,
+ 0x63, 0x01, 0x83, 0x2E, 0xD9, 0x51, 0x9B, 0x7C,
+ 0xA6, 0xEB, 0xA5, 0xBE, 0x16, 0x0C, 0xE3, 0x61,
+ 0xC0, 0x8C, 0x3A, 0xF5, 0x73, 0x2C, 0x25, 0x0B,
+ 0xBB, 0x4E, 0x89, 0x6B, 0x53, 0x6A, 0xB4, 0xF1,
+ 0xE1, 0xE6, 0xBD, 0x45, 0xE2, 0xF4, 0xB6, 0x66,
+ 0xCC, 0x95, 0x03, 0x56, 0xD4, 0x1C, 0x1E, 0xD7,
+ 0xFB, 0xC3, 0x8E, 0xB5, 0xE9, 0xCF, 0xBF, 0xBA,
+ 0xEA, 0x77, 0x39, 0xAF, 0x33, 0xC9, 0x62, 0x71,
+ 0x81, 0x79, 0x09, 0xAD, 0x24, 0xCD, 0xF9, 0xD8,
+ 0xE5, 0xC5, 0xB9, 0x4D, 0x44, 0x08, 0x86, 0xE7,
+ 0xA1, 0x1D, 0xAA, 0xED, 0x06, 0x70, 0xB2, 0xD2,
+ 0x41, 0x7B, 0xA0, 0x11, 0x31, 0xC2, 0x27, 0x90,
+ 0x20, 0xF6, 0x60, 0xFF, 0x96, 0x5C, 0xB1, 0xAB,
+ 0x9E, 0x9C, 0x52, 0x1B, 0x5F, 0x93, 0x0A, 0xEF,
+ 0x91, 0x85, 0x49, 0xEE, 0x2D, 0x4F, 0x8F, 0x3B,
+ 0x47, 0x87, 0x6D, 0x46, 0xD6, 0x3E, 0x69, 0x64,
+ 0x2A, 0xCE, 0xCB, 0x2F, 0xFC, 0x97, 0x05, 0x7A,
+ 0xAC, 0x7F, 0xD5, 0x1A, 0x4B, 0x0E, 0xA7, 0x5A,
+ 0x28, 0x14, 0x3F, 0x29, 0x88, 0x3C, 0x4C, 0x02,
+ 0xB8, 0xDA, 0xB0, 0x17, 0x55, 0x1F, 0x8A, 0x7D,
+ 0x57, 0xC7, 0x8D, 0x74, 0xB7, 0xC4, 0x9F, 0x72,
+ 0x7E, 0x15, 0x22, 0x12, 0x58, 0x07, 0x99, 0x34,
+ 0x6E, 0x50, 0xDE, 0x68, 0x65, 0xBC, 0xDB, 0xF8,
+ 0xC8, 0xA8, 0x2B, 0x40, 0xDC, 0xFE, 0x32, 0xA4,
+ 0xCA, 0x10, 0x21, 0xF0, 0xD3, 0x5D, 0x0F, 0x00,
+ 0x6F, 0x9D, 0x36, 0x42, 0x4A, 0x5E, 0xC1, 0xE0
+ );
+
+ /**
+ * Q-Table
+ *
+ * @var array
+ * @access private
+ */
+ var $q1 = array(
+ 0x75, 0xF3, 0xC6, 0xF4, 0xDB, 0x7B, 0xFB, 0xC8,
+ 0x4A, 0xD3, 0xE6, 0x6B, 0x45, 0x7D, 0xE8, 0x4B,
+ 0xD6, 0x32, 0xD8, 0xFD, 0x37, 0x71, 0xF1, 0xE1,
+ 0x30, 0x0F, 0xF8, 0x1B, 0x87, 0xFA, 0x06, 0x3F,
+ 0x5E, 0xBA, 0xAE, 0x5B, 0x8A, 0x00, 0xBC, 0x9D,
+ 0x6D, 0xC1, 0xB1, 0x0E, 0x80, 0x5D, 0xD2, 0xD5,
+ 0xA0, 0x84, 0x07, 0x14, 0xB5, 0x90, 0x2C, 0xA3,
+ 0xB2, 0x73, 0x4C, 0x54, 0x92, 0x74, 0x36, 0x51,
+ 0x38, 0xB0, 0xBD, 0x5A, 0xFC, 0x60, 0x62, 0x96,
+ 0x6C, 0x42, 0xF7, 0x10, 0x7C, 0x28, 0x27, 0x8C,
+ 0x13, 0x95, 0x9C, 0xC7, 0x24, 0x46, 0x3B, 0x70,
+ 0xCA, 0xE3, 0x85, 0xCB, 0x11, 0xD0, 0x93, 0xB8,
+ 0xA6, 0x83, 0x20, 0xFF, 0x9F, 0x77, 0xC3, 0xCC,
+ 0x03, 0x6F, 0x08, 0xBF, 0x40, 0xE7, 0x2B, 0xE2,
+ 0x79, 0x0C, 0xAA, 0x82, 0x41, 0x3A, 0xEA, 0xB9,
+ 0xE4, 0x9A, 0xA4, 0x97, 0x7E, 0xDA, 0x7A, 0x17,
+ 0x66, 0x94, 0xA1, 0x1D, 0x3D, 0xF0, 0xDE, 0xB3,
+ 0x0B, 0x72, 0xA7, 0x1C, 0xEF, 0xD1, 0x53, 0x3E,
+ 0x8F, 0x33, 0x26, 0x5F, 0xEC, 0x76, 0x2A, 0x49,
+ 0x81, 0x88, 0xEE, 0x21, 0xC4, 0x1A, 0xEB, 0xD9,
+ 0xC5, 0x39, 0x99, 0xCD, 0xAD, 0x31, 0x8B, 0x01,
+ 0x18, 0x23, 0xDD, 0x1F, 0x4E, 0x2D, 0xF9, 0x48,
+ 0x4F, 0xF2, 0x65, 0x8E, 0x78, 0x5C, 0x58, 0x19,
+ 0x8D, 0xE5, 0x98, 0x57, 0x67, 0x7F, 0x05, 0x64,
+ 0xAF, 0x63, 0xB6, 0xFE, 0xF5, 0xB7, 0x3C, 0xA5,
+ 0xCE, 0xE9, 0x68, 0x44, 0xE0, 0x4D, 0x43, 0x69,
+ 0x29, 0x2E, 0xAC, 0x15, 0x59, 0xA8, 0x0A, 0x9E,
+ 0x6E, 0x47, 0xDF, 0x34, 0x35, 0x6A, 0xCF, 0xDC,
+ 0x22, 0xC9, 0xC0, 0x9B, 0x89, 0xD4, 0xED, 0xAB,
+ 0x12, 0xA2, 0x0D, 0x52, 0xBB, 0x02, 0x2F, 0xA9,
+ 0xD7, 0x61, 0x1E, 0xB4, 0x50, 0x04, 0xF6, 0xC2,
+ 0x16, 0x25, 0x86, 0x56, 0x55, 0x09, 0xBE, 0x91
+ );
+
+ /**
+ * M-Table
+ *
+ * @var array
+ * @access private
+ */
+ var $m0 = array(
+ 0xBCBC3275, 0xECEC21F3, 0x202043C6, 0xB3B3C9F4, 0xDADA03DB, 0x02028B7B, 0xE2E22BFB, 0x9E9EFAC8,
+ 0xC9C9EC4A, 0xD4D409D3, 0x18186BE6, 0x1E1E9F6B, 0x98980E45, 0xB2B2387D, 0xA6A6D2E8, 0x2626B74B,
+ 0x3C3C57D6, 0x93938A32, 0x8282EED8, 0x525298FD, 0x7B7BD437, 0xBBBB3771, 0x5B5B97F1, 0x474783E1,
+ 0x24243C30, 0x5151E20F, 0xBABAC6F8, 0x4A4AF31B, 0xBFBF4887, 0x0D0D70FA, 0xB0B0B306, 0x7575DE3F,
+ 0xD2D2FD5E, 0x7D7D20BA, 0x666631AE, 0x3A3AA35B, 0x59591C8A, 0x00000000, 0xCDCD93BC, 0x1A1AE09D,
+ 0xAEAE2C6D, 0x7F7FABC1, 0x2B2BC7B1, 0xBEBEB90E, 0xE0E0A080, 0x8A8A105D, 0x3B3B52D2, 0x6464BAD5,
+ 0xD8D888A0, 0xE7E7A584, 0x5F5FE807, 0x1B1B1114, 0x2C2CC2B5, 0xFCFCB490, 0x3131272C, 0x808065A3,
+ 0x73732AB2, 0x0C0C8173, 0x79795F4C, 0x6B6B4154, 0x4B4B0292, 0x53536974, 0x94948F36, 0x83831F51,
+ 0x2A2A3638, 0xC4C49CB0, 0x2222C8BD, 0xD5D5F85A, 0xBDBDC3FC, 0x48487860, 0xFFFFCE62, 0x4C4C0796,
+ 0x4141776C, 0xC7C7E642, 0xEBEB24F7, 0x1C1C1410, 0x5D5D637C, 0x36362228, 0x6767C027, 0xE9E9AF8C,
+ 0x4444F913, 0x1414EA95, 0xF5F5BB9C, 0xCFCF18C7, 0x3F3F2D24, 0xC0C0E346, 0x7272DB3B, 0x54546C70,
+ 0x29294CCA, 0xF0F035E3, 0x0808FE85, 0xC6C617CB, 0xF3F34F11, 0x8C8CE4D0, 0xA4A45993, 0xCACA96B8,
+ 0x68683BA6, 0xB8B84D83, 0x38382820, 0xE5E52EFF, 0xADAD569F, 0x0B0B8477, 0xC8C81DC3, 0x9999FFCC,
+ 0x5858ED03, 0x19199A6F, 0x0E0E0A08, 0x95957EBF, 0x70705040, 0xF7F730E7, 0x6E6ECF2B, 0x1F1F6EE2,
+ 0xB5B53D79, 0x09090F0C, 0x616134AA, 0x57571682, 0x9F9F0B41, 0x9D9D803A, 0x111164EA, 0x2525CDB9,
+ 0xAFAFDDE4, 0x4545089A, 0xDFDF8DA4, 0xA3A35C97, 0xEAEAD57E, 0x353558DA, 0xEDEDD07A, 0x4343FC17,
+ 0xF8F8CB66, 0xFBFBB194, 0x3737D3A1, 0xFAFA401D, 0xC2C2683D, 0xB4B4CCF0, 0x32325DDE, 0x9C9C71B3,
+ 0x5656E70B, 0xE3E3DA72, 0x878760A7, 0x15151B1C, 0xF9F93AEF, 0x6363BFD1, 0x3434A953, 0x9A9A853E,
+ 0xB1B1428F, 0x7C7CD133, 0x88889B26, 0x3D3DA65F, 0xA1A1D7EC, 0xE4E4DF76, 0x8181942A, 0x91910149,
+ 0x0F0FFB81, 0xEEEEAA88, 0x161661EE, 0xD7D77321, 0x9797F5C4, 0xA5A5A81A, 0xFEFE3FEB, 0x6D6DB5D9,
+ 0x7878AEC5, 0xC5C56D39, 0x1D1DE599, 0x7676A4CD, 0x3E3EDCAD, 0xCBCB6731, 0xB6B6478B, 0xEFEF5B01,
+ 0x12121E18, 0x6060C523, 0x6A6AB0DD, 0x4D4DF61F, 0xCECEE94E, 0xDEDE7C2D, 0x55559DF9, 0x7E7E5A48,
+ 0x2121B24F, 0x03037AF2, 0xA0A02665, 0x5E5E198E, 0x5A5A6678, 0x65654B5C, 0x62624E58, 0xFDFD4519,
+ 0x0606F48D, 0x404086E5, 0xF2F2BE98, 0x3333AC57, 0x17179067, 0x05058E7F, 0xE8E85E05, 0x4F4F7D64,
+ 0x89896AAF, 0x10109563, 0x74742FB6, 0x0A0A75FE, 0x5C5C92F5, 0x9B9B74B7, 0x2D2D333C, 0x3030D6A5,
+ 0x2E2E49CE, 0x494989E9, 0x46467268, 0x77775544, 0xA8A8D8E0, 0x9696044D, 0x2828BD43, 0xA9A92969,
+ 0xD9D97929, 0x8686912E, 0xD1D187AC, 0xF4F44A15, 0x8D8D1559, 0xD6D682A8, 0xB9B9BC0A, 0x42420D9E,
+ 0xF6F6C16E, 0x2F2FB847, 0xDDDD06DF, 0x23233934, 0xCCCC6235, 0xF1F1C46A, 0xC1C112CF, 0x8585EBDC,
+ 0x8F8F9E22, 0x7171A1C9, 0x9090F0C0, 0xAAAA539B, 0x0101F189, 0x8B8BE1D4, 0x4E4E8CED, 0x8E8E6FAB,
+ 0xABABA212, 0x6F6F3EA2, 0xE6E6540D, 0xDBDBF252, 0x92927BBB, 0xB7B7B602, 0x6969CA2F, 0x3939D9A9,
+ 0xD3D30CD7, 0xA7A72361, 0xA2A2AD1E, 0xC3C399B4, 0x6C6C4450, 0x07070504, 0x04047FF6, 0x272746C2,
+ 0xACACA716, 0xD0D07625, 0x50501386, 0xDCDCF756, 0x84841A55, 0xE1E15109, 0x7A7A25BE, 0x1313EF91
+ );
+
+ /**
+ * M-Table
+ *
+ * @var array
+ * @access private
+ */
+ var $m1 = array(
+ 0xA9D93939, 0x67901717, 0xB3719C9C, 0xE8D2A6A6, 0x04050707, 0xFD985252, 0xA3658080, 0x76DFE4E4,
+ 0x9A084545, 0x92024B4B, 0x80A0E0E0, 0x78665A5A, 0xE4DDAFAF, 0xDDB06A6A, 0xD1BF6363, 0x38362A2A,
+ 0x0D54E6E6, 0xC6432020, 0x3562CCCC, 0x98BEF2F2, 0x181E1212, 0xF724EBEB, 0xECD7A1A1, 0x6C774141,
+ 0x43BD2828, 0x7532BCBC, 0x37D47B7B, 0x269B8888, 0xFA700D0D, 0x13F94444, 0x94B1FBFB, 0x485A7E7E,
+ 0xF27A0303, 0xD0E48C8C, 0x8B47B6B6, 0x303C2424, 0x84A5E7E7, 0x54416B6B, 0xDF06DDDD, 0x23C56060,
+ 0x1945FDFD, 0x5BA33A3A, 0x3D68C2C2, 0x59158D8D, 0xF321ECEC, 0xAE316666, 0xA23E6F6F, 0x82165757,
+ 0x63951010, 0x015BEFEF, 0x834DB8B8, 0x2E918686, 0xD9B56D6D, 0x511F8383, 0x9B53AAAA, 0x7C635D5D,
+ 0xA63B6868, 0xEB3FFEFE, 0xA5D63030, 0xBE257A7A, 0x16A7ACAC, 0x0C0F0909, 0xE335F0F0, 0x6123A7A7,
+ 0xC0F09090, 0x8CAFE9E9, 0x3A809D9D, 0xF5925C5C, 0x73810C0C, 0x2C273131, 0x2576D0D0, 0x0BE75656,
+ 0xBB7B9292, 0x4EE9CECE, 0x89F10101, 0x6B9F1E1E, 0x53A93434, 0x6AC4F1F1, 0xB499C3C3, 0xF1975B5B,
+ 0xE1834747, 0xE66B1818, 0xBDC82222, 0x450E9898, 0xE26E1F1F, 0xF4C9B3B3, 0xB62F7474, 0x66CBF8F8,
+ 0xCCFF9999, 0x95EA1414, 0x03ED5858, 0x56F7DCDC, 0xD4E18B8B, 0x1C1B1515, 0x1EADA2A2, 0xD70CD3D3,
+ 0xFB2BE2E2, 0xC31DC8C8, 0x8E195E5E, 0xB5C22C2C, 0xE9894949, 0xCF12C1C1, 0xBF7E9595, 0xBA207D7D,
+ 0xEA641111, 0x77840B0B, 0x396DC5C5, 0xAF6A8989, 0x33D17C7C, 0xC9A17171, 0x62CEFFFF, 0x7137BBBB,
+ 0x81FB0F0F, 0x793DB5B5, 0x0951E1E1, 0xADDC3E3E, 0x242D3F3F, 0xCDA47676, 0xF99D5555, 0xD8EE8282,
+ 0xE5864040, 0xC5AE7878, 0xB9CD2525, 0x4D049696, 0x44557777, 0x080A0E0E, 0x86135050, 0xE730F7F7,
+ 0xA1D33737, 0x1D40FAFA, 0xAA346161, 0xED8C4E4E, 0x06B3B0B0, 0x706C5454, 0xB22A7373, 0xD2523B3B,
+ 0x410B9F9F, 0x7B8B0202, 0xA088D8D8, 0x114FF3F3, 0x3167CBCB, 0xC2462727, 0x27C06767, 0x90B4FCFC,
+ 0x20283838, 0xF67F0404, 0x60784848, 0xFF2EE5E5, 0x96074C4C, 0x5C4B6565, 0xB1C72B2B, 0xAB6F8E8E,
+ 0x9E0D4242, 0x9CBBF5F5, 0x52F2DBDB, 0x1BF34A4A, 0x5FA63D3D, 0x9359A4A4, 0x0ABCB9B9, 0xEF3AF9F9,
+ 0x91EF1313, 0x85FE0808, 0x49019191, 0xEE611616, 0x2D7CDEDE, 0x4FB22121, 0x8F42B1B1, 0x3BDB7272,
+ 0x47B82F2F, 0x8748BFBF, 0x6D2CAEAE, 0x46E3C0C0, 0xD6573C3C, 0x3E859A9A, 0x6929A9A9, 0x647D4F4F,
+ 0x2A948181, 0xCE492E2E, 0xCB17C6C6, 0x2FCA6969, 0xFCC3BDBD, 0x975CA3A3, 0x055EE8E8, 0x7AD0EDED,
+ 0xAC87D1D1, 0x7F8E0505, 0xD5BA6464, 0x1AA8A5A5, 0x4BB72626, 0x0EB9BEBE, 0xA7608787, 0x5AF8D5D5,
+ 0x28223636, 0x14111B1B, 0x3FDE7575, 0x2979D9D9, 0x88AAEEEE, 0x3C332D2D, 0x4C5F7979, 0x02B6B7B7,
+ 0xB896CACA, 0xDA583535, 0xB09CC4C4, 0x17FC4343, 0x551A8484, 0x1FF64D4D, 0x8A1C5959, 0x7D38B2B2,
+ 0x57AC3333, 0xC718CFCF, 0x8DF40606, 0x74695353, 0xB7749B9B, 0xC4F59797, 0x9F56ADAD, 0x72DAE3E3,
+ 0x7ED5EAEA, 0x154AF4F4, 0x229E8F8F, 0x12A2ABAB, 0x584E6262, 0x07E85F5F, 0x99E51D1D, 0x34392323,
+ 0x6EC1F6F6, 0x50446C6C, 0xDE5D3232, 0x68724646, 0x6526A0A0, 0xBC93CDCD, 0xDB03DADA, 0xF8C6BABA,
+ 0xC8FA9E9E, 0xA882D6D6, 0x2BCF6E6E, 0x40507070, 0xDCEB8585, 0xFE750A0A, 0x328A9393, 0xA48DDFDF,
+ 0xCA4C2929, 0x10141C1C, 0x2173D7D7, 0xF0CCB4B4, 0xD309D4D4, 0x5D108A8A, 0x0FE25151, 0x00000000,
+ 0x6F9A1919, 0x9DE01A1A, 0x368F9494, 0x42E6C7C7, 0x4AECC9C9, 0x5EFDD2D2, 0xC1AB7F7F, 0xE0D8A8A8
+ );
+
+ /**
+ * M-Table
+ *
+ * @var array
+ * @access private
+ */
+ var $m2 = array(
+ 0xBC75BC32, 0xECF3EC21, 0x20C62043, 0xB3F4B3C9, 0xDADBDA03, 0x027B028B, 0xE2FBE22B, 0x9EC89EFA,
+ 0xC94AC9EC, 0xD4D3D409, 0x18E6186B, 0x1E6B1E9F, 0x9845980E, 0xB27DB238, 0xA6E8A6D2, 0x264B26B7,
+ 0x3CD63C57, 0x9332938A, 0x82D882EE, 0x52FD5298, 0x7B377BD4, 0xBB71BB37, 0x5BF15B97, 0x47E14783,
+ 0x2430243C, 0x510F51E2, 0xBAF8BAC6, 0x4A1B4AF3, 0xBF87BF48, 0x0DFA0D70, 0xB006B0B3, 0x753F75DE,
+ 0xD25ED2FD, 0x7DBA7D20, 0x66AE6631, 0x3A5B3AA3, 0x598A591C, 0x00000000, 0xCDBCCD93, 0x1A9D1AE0,
+ 0xAE6DAE2C, 0x7FC17FAB, 0x2BB12BC7, 0xBE0EBEB9, 0xE080E0A0, 0x8A5D8A10, 0x3BD23B52, 0x64D564BA,
+ 0xD8A0D888, 0xE784E7A5, 0x5F075FE8, 0x1B141B11, 0x2CB52CC2, 0xFC90FCB4, 0x312C3127, 0x80A38065,
+ 0x73B2732A, 0x0C730C81, 0x794C795F, 0x6B546B41, 0x4B924B02, 0x53745369, 0x9436948F, 0x8351831F,
+ 0x2A382A36, 0xC4B0C49C, 0x22BD22C8, 0xD55AD5F8, 0xBDFCBDC3, 0x48604878, 0xFF62FFCE, 0x4C964C07,
+ 0x416C4177, 0xC742C7E6, 0xEBF7EB24, 0x1C101C14, 0x5D7C5D63, 0x36283622, 0x672767C0, 0xE98CE9AF,
+ 0x441344F9, 0x149514EA, 0xF59CF5BB, 0xCFC7CF18, 0x3F243F2D, 0xC046C0E3, 0x723B72DB, 0x5470546C,
+ 0x29CA294C, 0xF0E3F035, 0x088508FE, 0xC6CBC617, 0xF311F34F, 0x8CD08CE4, 0xA493A459, 0xCAB8CA96,
+ 0x68A6683B, 0xB883B84D, 0x38203828, 0xE5FFE52E, 0xAD9FAD56, 0x0B770B84, 0xC8C3C81D, 0x99CC99FF,
+ 0x580358ED, 0x196F199A, 0x0E080E0A, 0x95BF957E, 0x70407050, 0xF7E7F730, 0x6E2B6ECF, 0x1FE21F6E,
+ 0xB579B53D, 0x090C090F, 0x61AA6134, 0x57825716, 0x9F419F0B, 0x9D3A9D80, 0x11EA1164, 0x25B925CD,
+ 0xAFE4AFDD, 0x459A4508, 0xDFA4DF8D, 0xA397A35C, 0xEA7EEAD5, 0x35DA3558, 0xED7AEDD0, 0x431743FC,
+ 0xF866F8CB, 0xFB94FBB1, 0x37A137D3, 0xFA1DFA40, 0xC23DC268, 0xB4F0B4CC, 0x32DE325D, 0x9CB39C71,
+ 0x560B56E7, 0xE372E3DA, 0x87A78760, 0x151C151B, 0xF9EFF93A, 0x63D163BF, 0x345334A9, 0x9A3E9A85,
+ 0xB18FB142, 0x7C337CD1, 0x8826889B, 0x3D5F3DA6, 0xA1ECA1D7, 0xE476E4DF, 0x812A8194, 0x91499101,
+ 0x0F810FFB, 0xEE88EEAA, 0x16EE1661, 0xD721D773, 0x97C497F5, 0xA51AA5A8, 0xFEEBFE3F, 0x6DD96DB5,
+ 0x78C578AE, 0xC539C56D, 0x1D991DE5, 0x76CD76A4, 0x3EAD3EDC, 0xCB31CB67, 0xB68BB647, 0xEF01EF5B,
+ 0x1218121E, 0x602360C5, 0x6ADD6AB0, 0x4D1F4DF6, 0xCE4ECEE9, 0xDE2DDE7C, 0x55F9559D, 0x7E487E5A,
+ 0x214F21B2, 0x03F2037A, 0xA065A026, 0x5E8E5E19, 0x5A785A66, 0x655C654B, 0x6258624E, 0xFD19FD45,
+ 0x068D06F4, 0x40E54086, 0xF298F2BE, 0x335733AC, 0x17671790, 0x057F058E, 0xE805E85E, 0x4F644F7D,
+ 0x89AF896A, 0x10631095, 0x74B6742F, 0x0AFE0A75, 0x5CF55C92, 0x9BB79B74, 0x2D3C2D33, 0x30A530D6,
+ 0x2ECE2E49, 0x49E94989, 0x46684672, 0x77447755, 0xA8E0A8D8, 0x964D9604, 0x284328BD, 0xA969A929,
+ 0xD929D979, 0x862E8691, 0xD1ACD187, 0xF415F44A, 0x8D598D15, 0xD6A8D682, 0xB90AB9BC, 0x429E420D,
+ 0xF66EF6C1, 0x2F472FB8, 0xDDDFDD06, 0x23342339, 0xCC35CC62, 0xF16AF1C4, 0xC1CFC112, 0x85DC85EB,
+ 0x8F228F9E, 0x71C971A1, 0x90C090F0, 0xAA9BAA53, 0x018901F1, 0x8BD48BE1, 0x4EED4E8C, 0x8EAB8E6F,
+ 0xAB12ABA2, 0x6FA26F3E, 0xE60DE654, 0xDB52DBF2, 0x92BB927B, 0xB702B7B6, 0x692F69CA, 0x39A939D9,
+ 0xD3D7D30C, 0xA761A723, 0xA21EA2AD, 0xC3B4C399, 0x6C506C44, 0x07040705, 0x04F6047F, 0x27C22746,
+ 0xAC16ACA7, 0xD025D076, 0x50865013, 0xDC56DCF7, 0x8455841A, 0xE109E151, 0x7ABE7A25, 0x139113EF
+ );
+
+ /**
+ * M-Table
+ *
+ * @var array
+ * @access private
+ */
+ var $m3 = array(
+ 0xD939A9D9, 0x90176790, 0x719CB371, 0xD2A6E8D2, 0x05070405, 0x9852FD98, 0x6580A365, 0xDFE476DF,
+ 0x08459A08, 0x024B9202, 0xA0E080A0, 0x665A7866, 0xDDAFE4DD, 0xB06ADDB0, 0xBF63D1BF, 0x362A3836,
+ 0x54E60D54, 0x4320C643, 0x62CC3562, 0xBEF298BE, 0x1E12181E, 0x24EBF724, 0xD7A1ECD7, 0x77416C77,
+ 0xBD2843BD, 0x32BC7532, 0xD47B37D4, 0x9B88269B, 0x700DFA70, 0xF94413F9, 0xB1FB94B1, 0x5A7E485A,
+ 0x7A03F27A, 0xE48CD0E4, 0x47B68B47, 0x3C24303C, 0xA5E784A5, 0x416B5441, 0x06DDDF06, 0xC56023C5,
+ 0x45FD1945, 0xA33A5BA3, 0x68C23D68, 0x158D5915, 0x21ECF321, 0x3166AE31, 0x3E6FA23E, 0x16578216,
+ 0x95106395, 0x5BEF015B, 0x4DB8834D, 0x91862E91, 0xB56DD9B5, 0x1F83511F, 0x53AA9B53, 0x635D7C63,
+ 0x3B68A63B, 0x3FFEEB3F, 0xD630A5D6, 0x257ABE25, 0xA7AC16A7, 0x0F090C0F, 0x35F0E335, 0x23A76123,
+ 0xF090C0F0, 0xAFE98CAF, 0x809D3A80, 0x925CF592, 0x810C7381, 0x27312C27, 0x76D02576, 0xE7560BE7,
+ 0x7B92BB7B, 0xE9CE4EE9, 0xF10189F1, 0x9F1E6B9F, 0xA93453A9, 0xC4F16AC4, 0x99C3B499, 0x975BF197,
+ 0x8347E183, 0x6B18E66B, 0xC822BDC8, 0x0E98450E, 0x6E1FE26E, 0xC9B3F4C9, 0x2F74B62F, 0xCBF866CB,
+ 0xFF99CCFF, 0xEA1495EA, 0xED5803ED, 0xF7DC56F7, 0xE18BD4E1, 0x1B151C1B, 0xADA21EAD, 0x0CD3D70C,
+ 0x2BE2FB2B, 0x1DC8C31D, 0x195E8E19, 0xC22CB5C2, 0x8949E989, 0x12C1CF12, 0x7E95BF7E, 0x207DBA20,
+ 0x6411EA64, 0x840B7784, 0x6DC5396D, 0x6A89AF6A, 0xD17C33D1, 0xA171C9A1, 0xCEFF62CE, 0x37BB7137,
+ 0xFB0F81FB, 0x3DB5793D, 0x51E10951, 0xDC3EADDC, 0x2D3F242D, 0xA476CDA4, 0x9D55F99D, 0xEE82D8EE,
+ 0x8640E586, 0xAE78C5AE, 0xCD25B9CD, 0x04964D04, 0x55774455, 0x0A0E080A, 0x13508613, 0x30F7E730,
+ 0xD337A1D3, 0x40FA1D40, 0x3461AA34, 0x8C4EED8C, 0xB3B006B3, 0x6C54706C, 0x2A73B22A, 0x523BD252,
+ 0x0B9F410B, 0x8B027B8B, 0x88D8A088, 0x4FF3114F, 0x67CB3167, 0x4627C246, 0xC06727C0, 0xB4FC90B4,
+ 0x28382028, 0x7F04F67F, 0x78486078, 0x2EE5FF2E, 0x074C9607, 0x4B655C4B, 0xC72BB1C7, 0x6F8EAB6F,
+ 0x0D429E0D, 0xBBF59CBB, 0xF2DB52F2, 0xF34A1BF3, 0xA63D5FA6, 0x59A49359, 0xBCB90ABC, 0x3AF9EF3A,
+ 0xEF1391EF, 0xFE0885FE, 0x01914901, 0x6116EE61, 0x7CDE2D7C, 0xB2214FB2, 0x42B18F42, 0xDB723BDB,
+ 0xB82F47B8, 0x48BF8748, 0x2CAE6D2C, 0xE3C046E3, 0x573CD657, 0x859A3E85, 0x29A96929, 0x7D4F647D,
+ 0x94812A94, 0x492ECE49, 0x17C6CB17, 0xCA692FCA, 0xC3BDFCC3, 0x5CA3975C, 0x5EE8055E, 0xD0ED7AD0,
+ 0x87D1AC87, 0x8E057F8E, 0xBA64D5BA, 0xA8A51AA8, 0xB7264BB7, 0xB9BE0EB9, 0x6087A760, 0xF8D55AF8,
+ 0x22362822, 0x111B1411, 0xDE753FDE, 0x79D92979, 0xAAEE88AA, 0x332D3C33, 0x5F794C5F, 0xB6B702B6,
+ 0x96CAB896, 0x5835DA58, 0x9CC4B09C, 0xFC4317FC, 0x1A84551A, 0xF64D1FF6, 0x1C598A1C, 0x38B27D38,
+ 0xAC3357AC, 0x18CFC718, 0xF4068DF4, 0x69537469, 0x749BB774, 0xF597C4F5, 0x56AD9F56, 0xDAE372DA,
+ 0xD5EA7ED5, 0x4AF4154A, 0x9E8F229E, 0xA2AB12A2, 0x4E62584E, 0xE85F07E8, 0xE51D99E5, 0x39233439,
+ 0xC1F66EC1, 0x446C5044, 0x5D32DE5D, 0x72466872, 0x26A06526, 0x93CDBC93, 0x03DADB03, 0xC6BAF8C6,
+ 0xFA9EC8FA, 0x82D6A882, 0xCF6E2BCF, 0x50704050, 0xEB85DCEB, 0x750AFE75, 0x8A93328A, 0x8DDFA48D,
+ 0x4C29CA4C, 0x141C1014, 0x73D72173, 0xCCB4F0CC, 0x09D4D309, 0x108A5D10, 0xE2510FE2, 0x00000000,
+ 0x9A196F9A, 0xE01A9DE0, 0x8F94368F, 0xE6C742E6, 0xECC94AEC, 0xFDD25EFD, 0xAB7FC1AB, 0xD8A8E0D8
+ );
+
+ /**
+ * The Key Schedule Array
+ *
+ * @var array
+ * @access private
+ */
+ var $K = array();
+
+ /**
+ * The Key depended S-Table 0
+ *
+ * @var array
+ * @access private
+ */
+ var $S0 = array();
+
+ /**
+ * The Key depended S-Table 1
+ *
+ * @var array
+ * @access private
+ */
+ var $S1 = array();
+
+ /**
+ * The Key depended S-Table 2
+ *
+ * @var array
+ * @access private
+ */
+ var $S2 = array();
+
+ /**
+ * The Key depended S-Table 3
+ *
+ * @var array
+ * @access private
+ */
+ var $S3 = array();
+
+ /**
+ * Holds the last used key
+ *
+ * @var array
+ * @access private
+ */
+ var $kl;
+
+ /**
+ * The Key Length (in bytes)
+ *
+ * @see Crypt_Twofish::setKeyLength()
+ * @var int
+ * @access private
+ */
+ var $key_length = 16;
+
+ /**
+ * Sets the key length.
+ *
+ * Valid key lengths are 128, 192 or 256 bits
+ *
+ * @access public
+ * @param int $length
+ */
+ function setKeyLength($length)
+ {
+ switch (true) {
+ case $length <= 128:
+ $this->key_length = 16;
+ break;
+ case $length <= 192:
+ $this->key_length = 24;
+ break;
+ default:
+ $this->key_length = 32;
+ }
+
+ parent::setKeyLength($length);
+ }
+
+ /**
+ * Setup the key (expansion)
+ *
+ * @see \phpseclib\Crypt\Base::_setupKey()
+ * @access private
+ */
+ function _setupKey()
+ {
+ if (isset($this->kl['key']) && $this->key === $this->kl['key']) {
+ // already expanded
+ return;
+ }
+ $this->kl = array('key' => $this->key);
+
+ /* Key expanding and generating the key-depended s-boxes */
+ $le_longs = unpack('V*', $this->key);
+ $key = unpack('C*', $this->key);
+ $m0 = $this->m0;
+ $m1 = $this->m1;
+ $m2 = $this->m2;
+ $m3 = $this->m3;
+ $q0 = $this->q0;
+ $q1 = $this->q1;
+
+ $K = $S0 = $S1 = $S2 = $S3 = array();
+
+ switch (strlen($this->key)) {
+ case 16:
+ list($s7, $s6, $s5, $s4) = $this->_mdsrem($le_longs[1], $le_longs[2]);
+ list($s3, $s2, $s1, $s0) = $this->_mdsrem($le_longs[3], $le_longs[4]);
+ for ($i = 0, $j = 1; $i < 40; $i+= 2, $j+= 2) {
+ $A = $m0[$q0[$q0[$i] ^ $key[ 9]] ^ $key[1]] ^
+ $m1[$q0[$q1[$i] ^ $key[10]] ^ $key[2]] ^
+ $m2[$q1[$q0[$i] ^ $key[11]] ^ $key[3]] ^
+ $m3[$q1[$q1[$i] ^ $key[12]] ^ $key[4]];
+ $B = $m0[$q0[$q0[$j] ^ $key[13]] ^ $key[5]] ^
+ $m1[$q0[$q1[$j] ^ $key[14]] ^ $key[6]] ^
+ $m2[$q1[$q0[$j] ^ $key[15]] ^ $key[7]] ^
+ $m3[$q1[$q1[$j] ^ $key[16]] ^ $key[8]];
+ $B = ($B << 8) | ($B >> 24 & 0xff);
+ $K[] = $A+= $B;
+ $K[] = (($A+= $B) << 9 | $A >> 23 & 0x1ff);
+ }
+ for ($i = 0; $i < 256; ++$i) {
+ $S0[$i] = $m0[$q0[$q0[$i] ^ $s4] ^ $s0];
+ $S1[$i] = $m1[$q0[$q1[$i] ^ $s5] ^ $s1];
+ $S2[$i] = $m2[$q1[$q0[$i] ^ $s6] ^ $s2];
+ $S3[$i] = $m3[$q1[$q1[$i] ^ $s7] ^ $s3];
+ }
+ break;
+ case 24:
+ list($sb, $sa, $s9, $s8) = $this->_mdsrem($le_longs[1], $le_longs[2]);
+ list($s7, $s6, $s5, $s4) = $this->_mdsrem($le_longs[3], $le_longs[4]);
+ list($s3, $s2, $s1, $s0) = $this->_mdsrem($le_longs[5], $le_longs[6]);
+ for ($i = 0, $j = 1; $i < 40; $i+= 2, $j+= 2) {
+ $A = $m0[$q0[$q0[$q1[$i] ^ $key[17]] ^ $key[ 9]] ^ $key[1]] ^
+ $m1[$q0[$q1[$q1[$i] ^ $key[18]] ^ $key[10]] ^ $key[2]] ^
+ $m2[$q1[$q0[$q0[$i] ^ $key[19]] ^ $key[11]] ^ $key[3]] ^
+ $m3[$q1[$q1[$q0[$i] ^ $key[20]] ^ $key[12]] ^ $key[4]];
+ $B = $m0[$q0[$q0[$q1[$j] ^ $key[21]] ^ $key[13]] ^ $key[5]] ^
+ $m1[$q0[$q1[$q1[$j] ^ $key[22]] ^ $key[14]] ^ $key[6]] ^
+ $m2[$q1[$q0[$q0[$j] ^ $key[23]] ^ $key[15]] ^ $key[7]] ^
+ $m3[$q1[$q1[$q0[$j] ^ $key[24]] ^ $key[16]] ^ $key[8]];
+ $B = ($B << 8) | ($B >> 24 & 0xff);
+ $K[] = $A+= $B;
+ $K[] = (($A+= $B) << 9 | $A >> 23 & 0x1ff);
+ }
+ for ($i = 0; $i < 256; ++$i) {
+ $S0[$i] = $m0[$q0[$q0[$q1[$i] ^ $s8] ^ $s4] ^ $s0];
+ $S1[$i] = $m1[$q0[$q1[$q1[$i] ^ $s9] ^ $s5] ^ $s1];
+ $S2[$i] = $m2[$q1[$q0[$q0[$i] ^ $sa] ^ $s6] ^ $s2];
+ $S3[$i] = $m3[$q1[$q1[$q0[$i] ^ $sb] ^ $s7] ^ $s3];
+ }
+ break;
+ default: // 32
+ list($sf, $se, $sd, $sc) = $this->_mdsrem($le_longs[1], $le_longs[2]);
+ list($sb, $sa, $s9, $s8) = $this->_mdsrem($le_longs[3], $le_longs[4]);
+ list($s7, $s6, $s5, $s4) = $this->_mdsrem($le_longs[5], $le_longs[6]);
+ list($s3, $s2, $s1, $s0) = $this->_mdsrem($le_longs[7], $le_longs[8]);
+ for ($i = 0, $j = 1; $i < 40; $i+= 2, $j+= 2) {
+ $A = $m0[$q0[$q0[$q1[$q1[$i] ^ $key[25]] ^ $key[17]] ^ $key[ 9]] ^ $key[1]] ^
+ $m1[$q0[$q1[$q1[$q0[$i] ^ $key[26]] ^ $key[18]] ^ $key[10]] ^ $key[2]] ^
+ $m2[$q1[$q0[$q0[$q0[$i] ^ $key[27]] ^ $key[19]] ^ $key[11]] ^ $key[3]] ^
+ $m3[$q1[$q1[$q0[$q1[$i] ^ $key[28]] ^ $key[20]] ^ $key[12]] ^ $key[4]];
+ $B = $m0[$q0[$q0[$q1[$q1[$j] ^ $key[29]] ^ $key[21]] ^ $key[13]] ^ $key[5]] ^
+ $m1[$q0[$q1[$q1[$q0[$j] ^ $key[30]] ^ $key[22]] ^ $key[14]] ^ $key[6]] ^
+ $m2[$q1[$q0[$q0[$q0[$j] ^ $key[31]] ^ $key[23]] ^ $key[15]] ^ $key[7]] ^
+ $m3[$q1[$q1[$q0[$q1[$j] ^ $key[32]] ^ $key[24]] ^ $key[16]] ^ $key[8]];
+ $B = ($B << 8) | ($B >> 24 & 0xff);
+ $K[] = $A+= $B;
+ $K[] = (($A+= $B) << 9 | $A >> 23 & 0x1ff);
+ }
+ for ($i = 0; $i < 256; ++$i) {
+ $S0[$i] = $m0[$q0[$q0[$q1[$q1[$i] ^ $sc] ^ $s8] ^ $s4] ^ $s0];
+ $S1[$i] = $m1[$q0[$q1[$q1[$q0[$i] ^ $sd] ^ $s9] ^ $s5] ^ $s1];
+ $S2[$i] = $m2[$q1[$q0[$q0[$q0[$i] ^ $se] ^ $sa] ^ $s6] ^ $s2];
+ $S3[$i] = $m3[$q1[$q1[$q0[$q1[$i] ^ $sf] ^ $sb] ^ $s7] ^ $s3];
+ }
+ }
+
+ $this->K = $K;
+ $this->S0 = $S0;
+ $this->S1 = $S1;
+ $this->S2 = $S2;
+ $this->S3 = $S3;
+ }
+
+ /**
+ * _mdsrem function using by the twofish cipher algorithm
+ *
+ * @access private
+ * @param string $A
+ * @param string $B
+ * @return array
+ */
+ function _mdsrem($A, $B)
+ {
+ // No gain by unrolling this loop.
+ for ($i = 0; $i < 8; ++$i) {
+ // Get most significant coefficient.
+ $t = 0xff & ($B >> 24);
+
+ // Shift the others up.
+ $B = ($B << 8) | (0xff & ($A >> 24));
+ $A<<= 8;
+
+ $u = $t << 1;
+
+ // Subtract the modular polynomial on overflow.
+ if ($t & 0x80) {
+ $u^= 0x14d;
+ }
+
+ // Remove t * (a * x^2 + 1).
+ $B ^= $t ^ ($u << 16);
+
+ // Form u = a*t + t/a = t*(a + 1/a).
+ $u^= 0x7fffffff & ($t >> 1);
+
+ // Add the modular polynomial on underflow.
+ if ($t & 0x01) {
+ $u^= 0xa6 ;
+ }
+
+ // Remove t * (a + 1/a) * (x^3 + x).
+ $B^= ($u << 24) | ($u << 8);
+ }
+
+ return array(
+ 0xff & $B >> 24,
+ 0xff & $B >> 16,
+ 0xff & $B >> 8,
+ 0xff & $B);
+ }
+
+ /**
+ * Encrypts a block
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _encryptBlock($in)
+ {
+ $S0 = $this->S0;
+ $S1 = $this->S1;
+ $S2 = $this->S2;
+ $S3 = $this->S3;
+ $K = $this->K;
+
+ $in = unpack("V4", $in);
+ $R0 = $K[0] ^ $in[1];
+ $R1 = $K[1] ^ $in[2];
+ $R2 = $K[2] ^ $in[3];
+ $R3 = $K[3] ^ $in[4];
+
+ $ki = 7;
+ while ($ki < 39) {
+ $t0 = $S0[ $R0 & 0xff] ^
+ $S1[($R0 >> 8) & 0xff] ^
+ $S2[($R0 >> 16) & 0xff] ^
+ $S3[($R0 >> 24) & 0xff];
+ $t1 = $S0[($R1 >> 24) & 0xff] ^
+ $S1[ $R1 & 0xff] ^
+ $S2[($R1 >> 8) & 0xff] ^
+ $S3[($R1 >> 16) & 0xff];
+ $R2^= $t0 + $t1 + $K[++$ki];
+ $R2 = ($R2 >> 1 & 0x7fffffff) | ($R2 << 31);
+ $R3 = ((($R3 >> 31) & 1) | ($R3 << 1)) ^ ($t0 + ($t1 << 1) + $K[++$ki]);
+
+ $t0 = $S0[ $R2 & 0xff] ^
+ $S1[($R2 >> 8) & 0xff] ^
+ $S2[($R2 >> 16) & 0xff] ^
+ $S3[($R2 >> 24) & 0xff];
+ $t1 = $S0[($R3 >> 24) & 0xff] ^
+ $S1[ $R3 & 0xff] ^
+ $S2[($R3 >> 8) & 0xff] ^
+ $S3[($R3 >> 16) & 0xff];
+ $R0^= ($t0 + $t1 + $K[++$ki]);
+ $R0 = ($R0 >> 1 & 0x7fffffff) | ($R0 << 31);
+ $R1 = ((($R1 >> 31) & 1) | ($R1 << 1)) ^ ($t0 + ($t1 << 1) + $K[++$ki]);
+ }
+
+ // @codingStandardsIgnoreStart
+ return pack("V4", $K[4] ^ $R2,
+ $K[5] ^ $R3,
+ $K[6] ^ $R0,
+ $K[7] ^ $R1);
+ // @codingStandardsIgnoreEnd
+ }
+
+ /**
+ * Decrypts a block
+ *
+ * @access private
+ * @param string $in
+ * @return string
+ */
+ function _decryptBlock($in)
+ {
+ $S0 = $this->S0;
+ $S1 = $this->S1;
+ $S2 = $this->S2;
+ $S3 = $this->S3;
+ $K = $this->K;
+
+ $in = unpack("V4", $in);
+ $R0 = $K[4] ^ $in[1];
+ $R1 = $K[5] ^ $in[2];
+ $R2 = $K[6] ^ $in[3];
+ $R3 = $K[7] ^ $in[4];
+
+ $ki = 40;
+ while ($ki > 8) {
+ $t0 = $S0[$R0 & 0xff] ^
+ $S1[$R0 >> 8 & 0xff] ^
+ $S2[$R0 >> 16 & 0xff] ^
+ $S3[$R0 >> 24 & 0xff];
+ $t1 = $S0[$R1 >> 24 & 0xff] ^
+ $S1[$R1 & 0xff] ^
+ $S2[$R1 >> 8 & 0xff] ^
+ $S3[$R1 >> 16 & 0xff];
+ $R3^= $t0 + ($t1 << 1) + $K[--$ki];
+ $R3 = $R3 >> 1 & 0x7fffffff | $R3 << 31;
+ $R2 = ($R2 >> 31 & 0x1 | $R2 << 1) ^ ($t0 + $t1 + $K[--$ki]);
+
+ $t0 = $S0[$R2 & 0xff] ^
+ $S1[$R2 >> 8 & 0xff] ^
+ $S2[$R2 >> 16 & 0xff] ^
+ $S3[$R2 >> 24 & 0xff];
+ $t1 = $S0[$R3 >> 24 & 0xff] ^
+ $S1[$R3 & 0xff] ^
+ $S2[$R3 >> 8 & 0xff] ^
+ $S3[$R3 >> 16 & 0xff];
+ $R1^= $t0 + ($t1 << 1) + $K[--$ki];
+ $R1 = $R1 >> 1 & 0x7fffffff | $R1 << 31;
+ $R0 = ($R0 >> 31 & 0x1 | $R0 << 1) ^ ($t0 + $t1 + $K[--$ki]);
+ }
+
+ // @codingStandardsIgnoreStart
+ return pack("V4", $K[0] ^ $R2,
+ $K[1] ^ $R3,
+ $K[2] ^ $R0,
+ $K[3] ^ $R1);
+ // @codingStandardsIgnoreEnd
+ }
+
+ /**
+ * Setup the performance-optimized function for de/encrypt()
+ *
+ * @see \phpseclib\Crypt\Base::_setupInlineCrypt()
+ * @access private
+ */
+ function _setupInlineCrypt()
+ {
+ $lambda_functions =& self::_getLambdaFunctions();
+
+ // Max. 10 Ultra-Hi-optimized inline-crypt functions. After that, we'll (still) create very fast code, but not the ultimate fast one.
+ // (Currently, for Crypt_Twofish, one generated $lambda_function cost on php5.5@32bit ~140kb unfreeable mem and ~240kb on php5.5@64bit)
+ $gen_hi_opt_code = (bool)(count($lambda_functions) < 10);
+
+ // Generation of a unique hash for our generated code
+ $code_hash = "Crypt_Twofish, {$this->mode}";
+ if ($gen_hi_opt_code) {
+ $code_hash = str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key);
+ }
+
+ if (!isset($lambda_functions[$code_hash])) {
+ switch (true) {
+ case $gen_hi_opt_code:
+ $K = $this->K;
+ $init_crypt = '
+ static $S0, $S1, $S2, $S3;
+ if (!$S0) {
+ for ($i = 0; $i < 256; ++$i) {
+ $S0[] = (int)$self->S0[$i];
+ $S1[] = (int)$self->S1[$i];
+ $S2[] = (int)$self->S2[$i];
+ $S3[] = (int)$self->S3[$i];
+ }
+ }
+ ';
+ break;
+ default:
+ $K = array();
+ for ($i = 0; $i < 40; ++$i) {
+ $K[] = '$K_' . $i;
+ }
+ $init_crypt = '
+ $S0 = $self->S0;
+ $S1 = $self->S1;
+ $S2 = $self->S2;
+ $S3 = $self->S3;
+ list(' . implode(',', $K) . ') = $self->K;
+ ';
+ }
+
+ // Generating encrypt code:
+ $encrypt_block = '
+ $in = unpack("V4", $in);
+ $R0 = '.$K[0].' ^ $in[1];
+ $R1 = '.$K[1].' ^ $in[2];
+ $R2 = '.$K[2].' ^ $in[3];
+ $R3 = '.$K[3].' ^ $in[4];
+ ';
+ for ($ki = 7, $i = 0; $i < 8; ++$i) {
+ $encrypt_block.= '
+ $t0 = $S0[ $R0 & 0xff] ^
+ $S1[($R0 >> 8) & 0xff] ^
+ $S2[($R0 >> 16) & 0xff] ^
+ $S3[($R0 >> 24) & 0xff];
+ $t1 = $S0[($R1 >> 24) & 0xff] ^
+ $S1[ $R1 & 0xff] ^
+ $S2[($R1 >> 8) & 0xff] ^
+ $S3[($R1 >> 16) & 0xff];
+ $R2^= ($t0 + $t1 + '.$K[++$ki].');
+ $R2 = ($R2 >> 1 & 0x7fffffff) | ($R2 << 31);
+ $R3 = ((($R3 >> 31) & 1) | ($R3 << 1)) ^ ($t0 + ($t1 << 1) + '.$K[++$ki].');
+
+ $t0 = $S0[ $R2 & 0xff] ^
+ $S1[($R2 >> 8) & 0xff] ^
+ $S2[($R2 >> 16) & 0xff] ^
+ $S3[($R2 >> 24) & 0xff];
+ $t1 = $S0[($R3 >> 24) & 0xff] ^
+ $S1[ $R3 & 0xff] ^
+ $S2[($R3 >> 8) & 0xff] ^
+ $S3[($R3 >> 16) & 0xff];
+ $R0^= ($t0 + $t1 + '.$K[++$ki].');
+ $R0 = ($R0 >> 1 & 0x7fffffff) | ($R0 << 31);
+ $R1 = ((($R1 >> 31) & 1) | ($R1 << 1)) ^ ($t0 + ($t1 << 1) + '.$K[++$ki].');
+ ';
+ }
+ $encrypt_block.= '
+ $in = pack("V4", '.$K[4].' ^ $R2,
+ '.$K[5].' ^ $R3,
+ '.$K[6].' ^ $R0,
+ '.$K[7].' ^ $R1);
+ ';
+
+ // Generating decrypt code:
+ $decrypt_block = '
+ $in = unpack("V4", $in);
+ $R0 = '.$K[4].' ^ $in[1];
+ $R1 = '.$K[5].' ^ $in[2];
+ $R2 = '.$K[6].' ^ $in[3];
+ $R3 = '.$K[7].' ^ $in[4];
+ ';
+ for ($ki = 40, $i = 0; $i < 8; ++$i) {
+ $decrypt_block.= '
+ $t0 = $S0[$R0 & 0xff] ^
+ $S1[$R0 >> 8 & 0xff] ^
+ $S2[$R0 >> 16 & 0xff] ^
+ $S3[$R0 >> 24 & 0xff];
+ $t1 = $S0[$R1 >> 24 & 0xff] ^
+ $S1[$R1 & 0xff] ^
+ $S2[$R1 >> 8 & 0xff] ^
+ $S3[$R1 >> 16 & 0xff];
+ $R3^= $t0 + ($t1 << 1) + '.$K[--$ki].';
+ $R3 = $R3 >> 1 & 0x7fffffff | $R3 << 31;
+ $R2 = ($R2 >> 31 & 0x1 | $R2 << 1) ^ ($t0 + $t1 + '.$K[--$ki].');
+
+ $t0 = $S0[$R2 & 0xff] ^
+ $S1[$R2 >> 8 & 0xff] ^
+ $S2[$R2 >> 16 & 0xff] ^
+ $S3[$R2 >> 24 & 0xff];
+ $t1 = $S0[$R3 >> 24 & 0xff] ^
+ $S1[$R3 & 0xff] ^
+ $S2[$R3 >> 8 & 0xff] ^
+ $S3[$R3 >> 16 & 0xff];
+ $R1^= $t0 + ($t1 << 1) + '.$K[--$ki].';
+ $R1 = $R1 >> 1 & 0x7fffffff | $R1 << 31;
+ $R0 = ($R0 >> 31 & 0x1 | $R0 << 1) ^ ($t0 + $t1 + '.$K[--$ki].');
+ ';
+ }
+ $decrypt_block.= '
+ $in = pack("V4", '.$K[0].' ^ $R2,
+ '.$K[1].' ^ $R3,
+ '.$K[2].' ^ $R0,
+ '.$K[3].' ^ $R1);
+ ';
+
+ $lambda_functions[$code_hash] = $this->_createInlineCryptFunction(
+ array(
+ 'init_crypt' => $init_crypt,
+ 'init_encrypt' => '',
+ 'init_decrypt' => '',
+ 'encrypt_block' => $encrypt_block,
+ 'decrypt_block' => $decrypt_block
+ )
+ );
+ }
+ $this->inline_crypt = $lambda_functions[$code_hash];
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ANSI.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ANSI.php
new file mode 100644
index 00000000..1f3eecb3
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ANSI.php
@@ -0,0 +1,574 @@
+<?php
+
+/**
+ * Pure-PHP ANSI Decoder
+ *
+ * PHP version 5
+ *
+ * If you call read() in \phpseclib\Net\SSH2 you may get {@link http://en.wikipedia.org/wiki/ANSI_escape_code ANSI escape codes} back.
+ * They'd look like chr(0x1B) . '[00m' or whatever (0x1B = ESC). They tell a
+ * {@link http://en.wikipedia.org/wiki/Terminal_emulator terminal emulator} how to format the characters, what
+ * color to display them in, etc. \phpseclib\File\ANSI is a {@link http://en.wikipedia.org/wiki/VT100 VT100} terminal emulator.
+ *
+ * @category File
+ * @package ANSI
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2012 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\File;
+
+/**
+ * Pure-PHP ANSI Decoder
+ *
+ * @package ANSI
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class ANSI
+{
+ /**
+ * Max Width
+ *
+ * @var int
+ * @access private
+ */
+ var $max_x;
+
+ /**
+ * Max Height
+ *
+ * @var int
+ * @access private
+ */
+ var $max_y;
+
+ /**
+ * Max History
+ *
+ * @var int
+ * @access private
+ */
+ var $max_history;
+
+ /**
+ * History
+ *
+ * @var array
+ * @access private
+ */
+ var $history;
+
+ /**
+ * History Attributes
+ *
+ * @var array
+ * @access private
+ */
+ var $history_attrs;
+
+ /**
+ * Current Column
+ *
+ * @var int
+ * @access private
+ */
+ var $x;
+
+ /**
+ * Current Row
+ *
+ * @var int
+ * @access private
+ */
+ var $y;
+
+ /**
+ * Old Column
+ *
+ * @var int
+ * @access private
+ */
+ var $old_x;
+
+ /**
+ * Old Row
+ *
+ * @var int
+ * @access private
+ */
+ var $old_y;
+
+ /**
+ * An empty attribute cell
+ *
+ * @var object
+ * @access private
+ */
+ var $base_attr_cell;
+
+ /**
+ * The current attribute cell
+ *
+ * @var object
+ * @access private
+ */
+ var $attr_cell;
+
+ /**
+ * An empty attribute row
+ *
+ * @var array
+ * @access private
+ */
+ var $attr_row;
+
+ /**
+ * The current screen text
+ *
+ * @var array
+ * @access private
+ */
+ var $screen;
+
+ /**
+ * The current screen attributes
+ *
+ * @var array
+ * @access private
+ */
+ var $attrs;
+
+ /**
+ * Current ANSI code
+ *
+ * @var string
+ * @access private
+ */
+ var $ansi;
+
+ /**
+ * Tokenization
+ *
+ * @var array
+ * @access private
+ */
+ var $tokenization;
+
+ /**
+ * Default Constructor.
+ *
+ * @return \phpseclib\File\ANSI
+ * @access public
+ */
+ function __construct()
+ {
+ $attr_cell = new \stdClass();
+ $attr_cell->bold = false;
+ $attr_cell->underline = false;
+ $attr_cell->blink = false;
+ $attr_cell->background = 'black';
+ $attr_cell->foreground = 'white';
+ $attr_cell->reverse = false;
+ $this->base_attr_cell = clone $attr_cell;
+ $this->attr_cell = clone $attr_cell;
+
+ $this->setHistory(200);
+ $this->setDimensions(80, 24);
+ }
+
+ /**
+ * Set terminal width and height
+ *
+ * Resets the screen as well
+ *
+ * @param int $x
+ * @param int $y
+ * @access public
+ */
+ function setDimensions($x, $y)
+ {
+ $this->max_x = $x - 1;
+ $this->max_y = $y - 1;
+ $this->x = $this->y = 0;
+ $this->history = $this->history_attrs = array();
+ $this->attr_row = array_fill(0, $this->max_x + 2, $this->base_attr_cell);
+ $this->screen = array_fill(0, $this->max_y + 1, '');
+ $this->attrs = array_fill(0, $this->max_y + 1, $this->attr_row);
+ $this->ansi = '';
+ }
+
+ /**
+ * Set the number of lines that should be logged past the terminal height
+ *
+ * @param int $x
+ * @param int $y
+ * @access public
+ */
+ function setHistory($history)
+ {
+ $this->max_history = $history;
+ }
+
+ /**
+ * Load a string
+ *
+ * @param string $source
+ * @access public
+ */
+ function loadString($source)
+ {
+ $this->setDimensions($this->max_x + 1, $this->max_y + 1);
+ $this->appendString($source);
+ }
+
+ /**
+ * Appdend a string
+ *
+ * @param string $source
+ * @access public
+ */
+ function appendString($source)
+ {
+ $this->tokenization = array('');
+ for ($i = 0; $i < strlen($source); $i++) {
+ if (strlen($this->ansi)) {
+ $this->ansi.= $source[$i];
+ $chr = ord($source[$i]);
+ // http://en.wikipedia.org/wiki/ANSI_escape_code#Sequence_elements
+ // single character CSI's not currently supported
+ switch (true) {
+ case $this->ansi == "\x1B=":
+ $this->ansi = '';
+ continue 2;
+ case strlen($this->ansi) == 2 && $chr >= 64 && $chr <= 95 && $chr != ord('['):
+ case strlen($this->ansi) > 2 && $chr >= 64 && $chr <= 126:
+ break;
+ default:
+ continue 2;
+ }
+ $this->tokenization[] = $this->ansi;
+ $this->tokenization[] = '';
+ // http://ascii-table.com/ansi-escape-sequences-vt-100.php
+ switch ($this->ansi) {
+ case "\x1B[H": // Move cursor to upper left corner
+ $this->old_x = $this->x;
+ $this->old_y = $this->y;
+ $this->x = $this->y = 0;
+ break;
+ case "\x1B[J": // Clear screen from cursor down
+ $this->history = array_merge($this->history, array_slice(array_splice($this->screen, $this->y + 1), 0, $this->old_y));
+ $this->screen = array_merge($this->screen, array_fill($this->y, $this->max_y, ''));
+
+ $this->history_attrs = array_merge($this->history_attrs, array_slice(array_splice($this->attrs, $this->y + 1), 0, $this->old_y));
+ $this->attrs = array_merge($this->attrs, array_fill($this->y, $this->max_y, $this->attr_row));
+
+ if (count($this->history) == $this->max_history) {
+ array_shift($this->history);
+ array_shift($this->history_attrs);
+ }
+ case "\x1B[K": // Clear screen from cursor right
+ $this->screen[$this->y] = substr($this->screen[$this->y], 0, $this->x);
+
+ array_splice($this->attrs[$this->y], $this->x + 1, $this->max_x - $this->x, array_fill($this->x, $this->max_x - $this->x - 1, $this->base_attr_cell));
+ break;
+ case "\x1B[2K": // Clear entire line
+ $this->screen[$this->y] = str_repeat(' ', $this->x);
+ $this->attrs[$this->y] = $this->attr_row;
+ break;
+ case "\x1B[?1h": // set cursor key to application
+ case "\x1B[?25h": // show the cursor
+ case "\x1B(B": // set united states g0 character set
+ break;
+ case "\x1BE": // Move to next line
+ $this->_newLine();
+ $this->x = 0;
+ break;
+ default:
+ switch (true) {
+ case preg_match('#\x1B\[(\d+)B#', $this->ansi, $match): // Move cursor down n lines
+ $this->old_y = $this->y;
+ $this->y+= $match[1];
+ break;
+ case preg_match('#\x1B\[(\d+);(\d+)H#', $this->ansi, $match): // Move cursor to screen location v,h
+ $this->old_x = $this->x;
+ $this->old_y = $this->y;
+ $this->x = $match[2] - 1;
+ $this->y = $match[1] - 1;
+ break;
+ case preg_match('#\x1B\[(\d+)C#', $this->ansi, $match): // Move cursor right n lines
+ $this->old_x = $this->x;
+ $this->x+= $match[1];
+ break;
+ case preg_match('#\x1B\[(\d+)D#', $this->ansi, $match): // Move cursor left n lines
+ $this->old_x = $this->x;
+ $this->x-= $match[1];
+ break;
+ case preg_match('#\x1B\[(\d+);(\d+)r#', $this->ansi, $match): // Set top and bottom lines of a window
+ break;
+ case preg_match('#\x1B\[(\d*(?:;\d*)*)m#', $this->ansi, $match): // character attributes
+ $attr_cell = &$this->attr_cell;
+ $mods = explode(';', $match[1]);
+ foreach ($mods as $mod) {
+ switch ($mod) {
+ case 0: // Turn off character attributes
+ $attr_cell = clone $this->base_attr_cell;
+ break;
+ case 1: // Turn bold mode on
+ $attr_cell->bold = true;
+ break;
+ case 4: // Turn underline mode on
+ $attr_cell->underline = true;
+ break;
+ case 5: // Turn blinking mode on
+ $attr_cell->blink = true;
+ break;
+ case 7: // Turn reverse video on
+ $attr_cell->reverse = !$attr_cell->reverse;
+ $temp = $attr_cell->background;
+ $attr_cell->background = $attr_cell->foreground;
+ $attr_cell->foreground = $temp;
+ break;
+ default: // set colors
+ //$front = $attr_cell->reverse ? &$attr_cell->background : &$attr_cell->foreground;
+ $front = &$attr_cell->{ $attr_cell->reverse ? 'background' : 'foreground' };
+ //$back = $attr_cell->reverse ? &$attr_cell->foreground : &$attr_cell->background;
+ $back = &$attr_cell->{ $attr_cell->reverse ? 'foreground' : 'background' };
+ switch ($mod) {
+ // @codingStandardsIgnoreStart
+ case 30: $front = 'black'; break;
+ case 31: $front = 'red'; break;
+ case 32: $front = 'green'; break;
+ case 33: $front = 'yellow'; break;
+ case 34: $front = 'blue'; break;
+ case 35: $front = 'magenta'; break;
+ case 36: $front = 'cyan'; break;
+ case 37: $front = 'white'; break;
+
+ case 40: $back = 'black'; break;
+ case 41: $back = 'red'; break;
+ case 42: $back = 'green'; break;
+ case 43: $back = 'yellow'; break;
+ case 44: $back = 'blue'; break;
+ case 45: $back = 'magenta'; break;
+ case 46: $back = 'cyan'; break;
+ case 47: $back = 'white'; break;
+ // @codingStandardsIgnoreEnd
+
+ default:
+ //user_error('Unsupported attribute: ' . $mod);
+ $this->ansi = '';
+ break 2;
+ }
+ }
+ }
+ break;
+ default:
+ //user_error("{$this->ansi} is unsupported\r\n");
+ }
+ }
+ $this->ansi = '';
+ continue;
+ }
+
+ $this->tokenization[count($this->tokenization) - 1].= $source[$i];
+ switch ($source[$i]) {
+ case "\r":
+ $this->x = 0;
+ break;
+ case "\n":
+ $this->_newLine();
+ break;
+ case "\x08": // backspace
+ if ($this->x) {
+ $this->x--;
+ $this->attrs[$this->y][$this->x] = clone $this->base_attr_cell;
+ $this->screen[$this->y] = substr_replace(
+ $this->screen[$this->y],
+ $source[$i],
+ $this->x,
+ 1
+ );
+ }
+ break;
+ case "\x0F": // shift
+ break;
+ case "\x1B": // start ANSI escape code
+ $this->tokenization[count($this->tokenization) - 1] = substr($this->tokenization[count($this->tokenization) - 1], 0, -1);
+ //if (!strlen($this->tokenization[count($this->tokenization) - 1])) {
+ // array_pop($this->tokenization);
+ //}
+ $this->ansi.= "\x1B";
+ break;
+ default:
+ $this->attrs[$this->y][$this->x] = clone $this->attr_cell;
+ if ($this->x > strlen($this->screen[$this->y])) {
+ $this->screen[$this->y] = str_repeat(' ', $this->x);
+ }
+ $this->screen[$this->y] = substr_replace(
+ $this->screen[$this->y],
+ $source[$i],
+ $this->x,
+ 1
+ );
+
+ if ($this->x > $this->max_x) {
+ $this->x = 0;
+ $this->y++;
+ } else {
+ $this->x++;
+ }
+ }
+ }
+ }
+
+ /**
+ * Add a new line
+ *
+ * Also update the $this->screen and $this->history buffers
+ *
+ * @access private
+ */
+ function _newLine()
+ {
+ //if ($this->y < $this->max_y) {
+ // $this->y++;
+ //}
+
+ while ($this->y >= $this->max_y) {
+ $this->history = array_merge($this->history, array(array_shift($this->screen)));
+ $this->screen[] = '';
+
+ $this->history_attrs = array_merge($this->history_attrs, array(array_shift($this->attrs)));
+ $this->attrs[] = $this->attr_row;
+
+ if (count($this->history) >= $this->max_history) {
+ array_shift($this->history);
+ array_shift($this->history_attrs);
+ }
+
+ $this->y--;
+ }
+ $this->y++;
+ }
+
+ /**
+ * Returns the current coordinate without preformating
+ *
+ * @access private
+ * @return string
+ */
+ function _processCoordinate($last_attr, $cur_attr, $char)
+ {
+ $output = '';
+
+ if ($last_attr != $cur_attr) {
+ $close = $open = '';
+ if ($last_attr->foreground != $cur_attr->foreground) {
+ if ($cur_attr->foreground != 'white') {
+ $open.= '<span style="color: ' . $cur_attr->foreground . '">';
+ }
+ if ($last_attr->foreground != 'white') {
+ $close = '</span>' . $close;
+ }
+ }
+ if ($last_attr->background != $cur_attr->background) {
+ if ($cur_attr->background != 'black') {
+ $open.= '<span style="background: ' . $cur_attr->background . '">';
+ }
+ if ($last_attr->background != 'black') {
+ $close = '</span>' . $close;
+ }
+ }
+ if ($last_attr->bold != $cur_attr->bold) {
+ if ($cur_attr->bold) {
+ $open.= '<b>';
+ } else {
+ $close = '</b>' . $close;
+ }
+ }
+ if ($last_attr->underline != $cur_attr->underline) {
+ if ($cur_attr->underline) {
+ $open.= '<u>';
+ } else {
+ $close = '</u>' . $close;
+ }
+ }
+ if ($last_attr->blink != $cur_attr->blink) {
+ if ($cur_attr->blink) {
+ $open.= '<blink>';
+ } else {
+ $close = '</blink>' . $close;
+ }
+ }
+ $output.= $close . $open;
+ }
+
+ $output.= htmlspecialchars($char);
+
+ return $output;
+ }
+
+ /**
+ * Returns the current screen without preformating
+ *
+ * @access private
+ * @return string
+ */
+ function _getScreen()
+ {
+ $output = '';
+ $last_attr = $this->base_attr_cell;
+ for ($i = 0; $i <= $this->max_y; $i++) {
+ for ($j = 0; $j <= $this->max_x; $j++) {
+ $cur_attr = $this->attrs[$i][$j];
+ $output.= $this->_processCoordinate($last_attr, $cur_attr, isset($this->screen[$i][$j]) ? $this->screen[$i][$j] : '');
+ $last_attr = $this->attrs[$i][$j];
+ }
+ $output.= "\r\n";
+ }
+ $output = substr($output, 0, -2);
+ // close any remaining open tags
+ $output.= $this->_processCoordinate($last_attr, $this->base_attr_cell, '');
+ return rtrim($output);
+ }
+
+ /**
+ * Returns the current screen
+ *
+ * @access public
+ * @return string
+ */
+ function getScreen()
+ {
+ return '<pre width="' . ($this->max_x + 1) . '" style="color: white; background: black">' . $this->_getScreen() . '</pre>';
+ }
+
+ /**
+ * Returns the current screen and the x previous lines
+ *
+ * @access public
+ * @return string
+ */
+ function getHistory()
+ {
+ $scrollback = '';
+ $last_attr = $this->base_attr_cell;
+ for ($i = 0; $i < count($this->history); $i++) {
+ for ($j = 0; $j <= $this->max_x + 1; $j++) {
+ $cur_attr = $this->history_attrs[$i][$j];
+ $scrollback.= $this->_processCoordinate($last_attr, $cur_attr, isset($this->history[$i][$j]) ? $this->history[$i][$j] : '');
+ $last_attr = $this->history_attrs[$i][$j];
+ }
+ $scrollback.= "\r\n";
+ }
+ $base_attr_cell = $this->base_attr_cell;
+ $this->base_attr_cell = $last_attr;
+ $scrollback.= $this->_getScreen();
+ $this->base_attr_cell = $base_attr_cell;
+
+ return '<pre width="' . ($this->max_x + 1) . '" style="color: white; background: black">' . $scrollback . '</span></pre>';
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1.php
new file mode 100644
index 00000000..504dbe8b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1.php
@@ -0,0 +1,1323 @@
+<?php
+
+/**
+ * Pure-PHP ASN.1 Parser
+ *
+ * PHP version 5
+ *
+ * ASN.1 provides the semantics for data encoded using various schemes. The most commonly
+ * utilized scheme is DER or the "Distinguished Encoding Rules". PEM's are base64 encoded
+ * DER blobs.
+ *
+ * \phpseclib\File\ASN1 decodes and encodes DER formatted messages and places them in a semantic context.
+ *
+ * Uses the 1988 ASN.1 syntax.
+ *
+ * @category File
+ * @package ASN1
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2012 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\File;
+
+use phpseclib\File\ASN1\Element;
+use phpseclib\Math\BigInteger;
+
+/**
+ * Pure-PHP ASN.1 Parser
+ *
+ * @package ASN1
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class ASN1
+{
+ /**#@+
+ * Tag Classes
+ *
+ * @access private
+ * @link http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#page=12
+ */
+ const CLASS_UNIVERSAL = 0;
+ const CLASS_APPLICATION = 1;
+ const CLASS_CONTEXT_SPECIFIC = 2;
+ const CLASS_PRIVATE = 3;
+ /**#@-*/
+
+ /**#@+
+ * Tag Classes
+ *
+ * @access private
+ * @link http://www.obj-sys.com/asn1tutorial/node124.html
+ */
+ const TYPE_BOOLEAN = 1;
+ const TYPE_INTEGER = 2;
+ const TYPE_BIT_STRING = 3;
+ const TYPE_OCTET_STRING = 4;
+ const TYPE_NULL = 5;
+ const TYPE_OBJECT_IDENTIFIER = 6;
+ //const TYPE_OBJECT_DESCRIPTOR = 7;
+ //const TYPE_INSTANCE_OF = 8; // EXTERNAL
+ const TYPE_REAL = 9;
+ const TYPE_ENUMERATED = 10;
+ //const TYPE_EMBEDDED = 11;
+ const TYPE_UTF8_STRING = 12;
+ //const TYPE_RELATIVE_OID = 13;
+ const TYPE_SEQUENCE = 16; // SEQUENCE OF
+ const TYPE_SET = 17; // SET OF
+ /**#@-*/
+ /**#@+
+ * More Tag Classes
+ *
+ * @access private
+ * @link http://www.obj-sys.com/asn1tutorial/node10.html
+ */
+ const TYPE_NUMERIC_STRING = 18;
+ const TYPE_PRINTABLE_STRING = 19;
+ const TYPE_TELETEX_STRING = 20; // T61String
+ const TYPE_VIDEOTEX_STRING = 21;
+ const TYPE_IA5_STRING = 22;
+ const TYPE_UTC_TIME = 23;
+ const TYPE_GENERALIZED_TIME = 24;
+ const TYPE_GRAPHIC_STRING = 25;
+ const TYPE_VISIBLE_STRING = 26; // ISO646String
+ const TYPE_GENERAL_STRING = 27;
+ const TYPE_UNIVERSAL_STRING = 28;
+ //const TYPE_CHARACTER_STRING = 29;
+ const TYPE_BMP_STRING = 30;
+ /**#@-*/
+
+ /**#@+
+ * Tag Aliases
+ *
+ * These tags are kinda place holders for other tags.
+ *
+ * @access private
+ */
+ const TYPE_CHOICE = -1;
+ const TYPE_ANY = -2;
+ /**#@-*/
+
+ /**
+ * ASN.1 object identifier
+ *
+ * @var array
+ * @access private
+ * @link http://en.wikipedia.org/wiki/Object_identifier
+ */
+ var $oids = array();
+
+ /**
+ * Default date format
+ *
+ * @var string
+ * @access private
+ * @link http://php.net/class.datetime
+ */
+ var $format = 'D, d M Y H:i:s O';
+
+ /**
+ * Default date format
+ *
+ * @var array
+ * @access private
+ * @see self::setTimeFormat()
+ * @see self::asn1map()
+ * @link http://php.net/class.datetime
+ */
+ var $encoded;
+
+ /**
+ * Filters
+ *
+ * If the mapping type is self::TYPE_ANY what do we actually encode it as?
+ *
+ * @var array
+ * @access private
+ * @see self::_encode_der()
+ */
+ var $filters;
+
+ /**
+ * Type mapping table for the ANY type.
+ *
+ * Structured or unknown types are mapped to a \phpseclib\File\ASN1\Element.
+ * Unambiguous types get the direct mapping (int/real/bool).
+ * Others are mapped as a choice, with an extra indexing level.
+ *
+ * @var array
+ * @access public
+ */
+ var $ANYmap = array(
+ self::TYPE_BOOLEAN => true,
+ self::TYPE_INTEGER => true,
+ self::TYPE_BIT_STRING => 'bitString',
+ self::TYPE_OCTET_STRING => 'octetString',
+ self::TYPE_NULL => 'null',
+ self::TYPE_OBJECT_IDENTIFIER => 'objectIdentifier',
+ self::TYPE_REAL => true,
+ self::TYPE_ENUMERATED => 'enumerated',
+ self::TYPE_UTF8_STRING => 'utf8String',
+ self::TYPE_NUMERIC_STRING => 'numericString',
+ self::TYPE_PRINTABLE_STRING => 'printableString',
+ self::TYPE_TELETEX_STRING => 'teletexString',
+ self::TYPE_VIDEOTEX_STRING => 'videotexString',
+ self::TYPE_IA5_STRING => 'ia5String',
+ self::TYPE_UTC_TIME => 'utcTime',
+ self::TYPE_GENERALIZED_TIME => 'generalTime',
+ self::TYPE_GRAPHIC_STRING => 'graphicString',
+ self::TYPE_VISIBLE_STRING => 'visibleString',
+ self::TYPE_GENERAL_STRING => 'generalString',
+ self::TYPE_UNIVERSAL_STRING => 'universalString',
+ //self::TYPE_CHARACTER_STRING => 'characterString',
+ self::TYPE_BMP_STRING => 'bmpString'
+ );
+
+ /**
+ * String type to character size mapping table.
+ *
+ * Non-convertable types are absent from this table.
+ * size == 0 indicates variable length encoding.
+ *
+ * @var array
+ * @access public
+ */
+ var $stringTypeSize = array(
+ self::TYPE_UTF8_STRING => 0,
+ self::TYPE_BMP_STRING => 2,
+ self::TYPE_UNIVERSAL_STRING => 4,
+ self::TYPE_PRINTABLE_STRING => 1,
+ self::TYPE_TELETEX_STRING => 1,
+ self::TYPE_IA5_STRING => 1,
+ self::TYPE_VISIBLE_STRING => 1,
+ );
+
+ /**
+ * Parse BER-encoding
+ *
+ * Serves a similar purpose to openssl's asn1parse
+ *
+ * @param string $encoded
+ * @return array
+ * @access public
+ */
+ function decodeBER($encoded)
+ {
+ if ($encoded instanceof Element) {
+ $encoded = $encoded->element;
+ }
+
+ $this->encoded = $encoded;
+ // encapsulate in an array for BC with the old decodeBER
+ return array($this->_decode_ber($encoded));
+ }
+
+ /**
+ * Parse BER-encoding (Helper function)
+ *
+ * Sometimes we want to get the BER encoding of a particular tag. $start lets us do that without having to reencode.
+ * $encoded is passed by reference for the recursive calls done for self::TYPE_BIT_STRING and
+ * self::TYPE_OCTET_STRING. In those cases, the indefinite length is used.
+ *
+ * @param string $encoded
+ * @param int $start
+ * @param int $encoded_pos
+ * @return array
+ * @access private
+ */
+ function _decode_ber($encoded, $start = 0, $encoded_pos = 0)
+ {
+ $current = array('start' => $start);
+
+ $type = ord($encoded[$encoded_pos++]);
+ $start++;
+
+ $constructed = ($type >> 5) & 1;
+
+ $tag = $type & 0x1F;
+ if ($tag == 0x1F) {
+ $tag = 0;
+ // process septets (since the eighth bit is ignored, it's not an octet)
+ do {
+ $loop = ord($encoded[0]) >> 7;
+ $tag <<= 7;
+ $tag |= ord($encoded[$encoded_pos++]) & 0x7F;
+ $start++;
+ } while ($loop);
+ }
+
+ // Length, as discussed in paragraph 8.1.3 of X.690-0207.pdf#page=13
+ $length = ord($encoded[$encoded_pos++]);
+ $start++;
+ if ($length == 0x80) { // indefinite length
+ // "[A sender shall] use the indefinite form (see 8.1.3.6) if the encoding is constructed and is not all
+ // immediately available." -- paragraph 8.1.3.2.c
+ $length = strlen($encoded) - $encoded_pos;
+ } elseif ($length & 0x80) { // definite length, long form
+ // technically, the long form of the length can be represented by up to 126 octets (bytes), but we'll only
+ // support it up to four.
+ $length&= 0x7F;
+ $temp = substr($encoded, $encoded_pos, $length);
+ $encoded_pos += $length;
+ // tags of indefinte length don't really have a header length; this length includes the tag
+ $current+= array('headerlength' => $length + 2);
+ $start+= $length;
+ extract(unpack('Nlength', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4)));
+ } else {
+ $current+= array('headerlength' => 2);
+ }
+
+ if ($length > (strlen($encoded) - $encoded_pos)) {
+ return false;
+ }
+
+ $content = substr($encoded, $encoded_pos, $length);
+ $content_pos = 0;
+
+ // at this point $length can be overwritten. it's only accurate for definite length things as is
+
+ /* Class is UNIVERSAL, APPLICATION, PRIVATE, or CONTEXT-SPECIFIC. The UNIVERSAL class is restricted to the ASN.1
+ built-in types. It defines an application-independent data type that must be distinguishable from all other
+ data types. The other three classes are user defined. The APPLICATION class distinguishes data types that
+ have a wide, scattered use within a particular presentation context. PRIVATE distinguishes data types within
+ a particular organization or country. CONTEXT-SPECIFIC distinguishes members of a sequence or set, the
+ alternatives of a CHOICE, or universally tagged set members. Only the class number appears in braces for this
+ data type; the term CONTEXT-SPECIFIC does not appear.
+
+ -- http://www.obj-sys.com/asn1tutorial/node12.html */
+ $class = ($type >> 6) & 3;
+ switch ($class) {
+ case self::CLASS_APPLICATION:
+ case self::CLASS_PRIVATE:
+ case self::CLASS_CONTEXT_SPECIFIC:
+ if (!$constructed) {
+ return array(
+ 'type' => $class,
+ 'constant' => $tag,
+ 'content' => $content,
+ 'length' => $length + $start - $current['start']
+ );
+ }
+
+ $newcontent = array();
+ $remainingLength = $length;
+ while ($remainingLength > 0) {
+ $temp = $this->_decode_ber($content, $start, $content_pos);
+ $length = $temp['length'];
+ // end-of-content octets - see paragraph 8.1.5
+ if (substr($content, $content_pos + $length, 2) == "\0\0") {
+ $length+= 2;
+ $start+= $length;
+ $newcontent[] = $temp;
+ break;
+ }
+ $start+= $length;
+ $remainingLength-= $length;
+ $newcontent[] = $temp;
+ $content_pos += $length;
+ }
+
+ return array(
+ 'type' => $class,
+ 'constant' => $tag,
+ // the array encapsulation is for BC with the old format
+ 'content' => $newcontent,
+ // the only time when $content['headerlength'] isn't defined is when the length is indefinite.
+ // the absence of $content['headerlength'] is how we know if something is indefinite or not.
+ // technically, it could be defined to be 2 and then another indicator could be used but whatever.
+ 'length' => $start - $current['start']
+ ) + $current;
+ }
+
+ $current+= array('type' => $tag);
+
+ // decode UNIVERSAL tags
+ switch ($tag) {
+ case self::TYPE_BOOLEAN:
+ // "The contents octets shall consist of a single octet." -- paragraph 8.2.1
+ //if (strlen($content) != 1) {
+ // return false;
+ //}
+ $current['content'] = (bool) ord($content[$content_pos]);
+ break;
+ case self::TYPE_INTEGER:
+ case self::TYPE_ENUMERATED:
+ $current['content'] = new BigInteger(substr($content, $content_pos), -256);
+ break;
+ case self::TYPE_REAL: // not currently supported
+ return false;
+ case self::TYPE_BIT_STRING:
+ // The initial octet shall encode, as an unsigned binary integer with bit 1 as the least significant bit,
+ // the number of unused bits in the final subsequent octet. The number shall be in the range zero to
+ // seven.
+ if (!$constructed) {
+ $current['content'] = substr($content, $content_pos);
+ } else {
+ $temp = $this->_decode_ber($content, $start, $content_pos);
+ $length-= (strlen($content) - $content_pos);
+ $last = count($temp) - 1;
+ for ($i = 0; $i < $last; $i++) {
+ // all subtags should be bit strings
+ //if ($temp[$i]['type'] != self::TYPE_BIT_STRING) {
+ // return false;
+ //}
+ $current['content'].= substr($temp[$i]['content'], 1);
+ }
+ // all subtags should be bit strings
+ //if ($temp[$last]['type'] != self::TYPE_BIT_STRING) {
+ // return false;
+ //}
+ $current['content'] = $temp[$last]['content'][0] . $current['content'] . substr($temp[$i]['content'], 1);
+ }
+ break;
+ case self::TYPE_OCTET_STRING:
+ if (!$constructed) {
+ $current['content'] = substr($content, $content_pos);
+ } else {
+ $current['content'] = '';
+ $length = 0;
+ while (substr($content, $content_pos, 2) != "\0\0") {
+ $temp = $this->_decode_ber($content, $length + $start, $content_pos);
+ $content_pos += $temp['length'];
+ // all subtags should be octet strings
+ //if ($temp['type'] != self::TYPE_OCTET_STRING) {
+ // return false;
+ //}
+ $current['content'].= $temp['content'];
+ $length+= $temp['length'];
+ }
+ if (substr($content, $content_pos, 2) == "\0\0") {
+ $length+= 2; // +2 for the EOC
+ }
+ }
+ break;
+ case self::TYPE_NULL:
+ // "The contents octets shall not contain any octets." -- paragraph 8.8.2
+ //if (strlen($content)) {
+ // return false;
+ //}
+ break;
+ case self::TYPE_SEQUENCE:
+ case self::TYPE_SET:
+ $offset = 0;
+ $current['content'] = array();
+ $content_len = strlen($content);
+ while ($content_pos < $content_len) {
+ // if indefinite length construction was used and we have an end-of-content string next
+ // see paragraphs 8.1.1.3, 8.1.3.2, 8.1.3.6, 8.1.5, and (for an example) 8.6.4.2
+ if (!isset($current['headerlength']) && substr($content, $content_pos, 2) == "\0\0") {
+ $length = $offset + 2; // +2 for the EOC
+ break 2;
+ }
+ $temp = $this->_decode_ber($content, $start + $offset, $content_pos);
+ $content_pos += $temp['length'];
+ $current['content'][] = $temp;
+ $offset+= $temp['length'];
+ }
+ break;
+ case self::TYPE_OBJECT_IDENTIFIER:
+ $temp = ord($content[$content_pos++]);
+ $current['content'] = sprintf('%d.%d', floor($temp / 40), $temp % 40);
+ $valuen = 0;
+ // process septets
+ $content_len = strlen($content);
+ while ($content_pos < $content_len) {
+ $temp = ord($content[$content_pos++]);
+ $valuen <<= 7;
+ $valuen |= $temp & 0x7F;
+ if (~$temp & 0x80) {
+ $current['content'].= ".$valuen";
+ $valuen = 0;
+ }
+ }
+ // the eighth bit of the last byte should not be 1
+ //if ($temp >> 7) {
+ // return false;
+ //}
+ break;
+ /* Each character string type shall be encoded as if it had been declared:
+ [UNIVERSAL x] IMPLICIT OCTET STRING
+
+ -- X.690-0207.pdf#page=23 (paragraph 8.21.3)
+
+ Per that, we're not going to do any validation. If there are any illegal characters in the string,
+ we don't really care */
+ case self::TYPE_NUMERIC_STRING:
+ // 0,1,2,3,4,5,6,7,8,9, and space
+ case self::TYPE_PRINTABLE_STRING:
+ // Upper and lower case letters, digits, space, apostrophe, left/right parenthesis, plus sign, comma,
+ // hyphen, full stop, solidus, colon, equal sign, question mark
+ case self::TYPE_TELETEX_STRING:
+ // The Teletex character set in CCITT's T61, space, and delete
+ // see http://en.wikipedia.org/wiki/Teletex#Character_sets
+ case self::TYPE_VIDEOTEX_STRING:
+ // The Videotex character set in CCITT's T.100 and T.101, space, and delete
+ case self::TYPE_VISIBLE_STRING:
+ // Printing character sets of international ASCII, and space
+ case self::TYPE_IA5_STRING:
+ // International Alphabet 5 (International ASCII)
+ case self::TYPE_GRAPHIC_STRING:
+ // All registered G sets, and space
+ case self::TYPE_GENERAL_STRING:
+ // All registered C and G sets, space and delete
+ case self::TYPE_UTF8_STRING:
+ // ????
+ case self::TYPE_BMP_STRING:
+ $current['content'] = substr($content, $content_pos);
+ break;
+ case self::TYPE_UTC_TIME:
+ case self::TYPE_GENERALIZED_TIME:
+ $current['content'] = $this->_decodeTime(substr($content, $content_pos), $tag);
+ default:
+ }
+
+ $start+= $length;
+
+ // ie. length is the length of the full TLV encoding - it's not just the length of the value
+ return $current + array('length' => $start - $current['start']);
+ }
+
+ /**
+ * ASN.1 Map
+ *
+ * Provides an ASN.1 semantic mapping ($mapping) from a parsed BER-encoding to a human readable format.
+ *
+ * "Special" mappings may be applied on a per tag-name basis via $special.
+ *
+ * @param array $decoded
+ * @param array $mapping
+ * @param array $special
+ * @return array
+ * @access public
+ */
+ function asn1map($decoded, $mapping, $special = array())
+ {
+ if (isset($mapping['explicit']) && is_array($decoded['content'])) {
+ $decoded = $decoded['content'][0];
+ }
+
+ switch (true) {
+ case $mapping['type'] == self::TYPE_ANY:
+ $intype = $decoded['type'];
+ if (isset($decoded['constant']) || !isset($this->ANYmap[$intype]) || (ord($this->encoded[$decoded['start']]) & 0x20)) {
+ return new Element(substr($this->encoded, $decoded['start'], $decoded['length']));
+ }
+ $inmap = $this->ANYmap[$intype];
+ if (is_string($inmap)) {
+ return array($inmap => $this->asn1map($decoded, array('type' => $intype) + $mapping, $special));
+ }
+ break;
+ case $mapping['type'] == self::TYPE_CHOICE:
+ foreach ($mapping['children'] as $key => $option) {
+ switch (true) {
+ case isset($option['constant']) && $option['constant'] == $decoded['constant']:
+ case !isset($option['constant']) && $option['type'] == $decoded['type']:
+ $value = $this->asn1map($decoded, $option, $special);
+ break;
+ case !isset($option['constant']) && $option['type'] == self::TYPE_CHOICE:
+ $v = $this->asn1map($decoded, $option, $special);
+ if (isset($v)) {
+ $value = $v;
+ }
+ }
+ if (isset($value)) {
+ if (isset($special[$key])) {
+ $value = call_user_func($special[$key], $value);
+ }
+ return array($key => $value);
+ }
+ }
+ return null;
+ case isset($mapping['implicit']):
+ case isset($mapping['explicit']):
+ case $decoded['type'] == $mapping['type']:
+ break;
+ default:
+ // if $decoded['type'] and $mapping['type'] are both strings, but different types of strings,
+ // let it through
+ switch (true) {
+ case $decoded['type'] < 18: // self::TYPE_NUMERIC_STRING == 18
+ case $decoded['type'] > 30: // self::TYPE_BMP_STRING == 30
+ case $mapping['type'] < 18:
+ case $mapping['type'] > 30:
+ return null;
+ }
+ }
+
+ if (isset($mapping['implicit'])) {
+ $decoded['type'] = $mapping['type'];
+ }
+
+ switch ($decoded['type']) {
+ case self::TYPE_SEQUENCE:
+ $map = array();
+
+ // ignore the min and max
+ if (isset($mapping['min']) && isset($mapping['max'])) {
+ $child = $mapping['children'];
+ foreach ($decoded['content'] as $content) {
+ if (($map[] = $this->asn1map($content, $child, $special)) === null) {
+ return null;
+ }
+ }
+
+ return $map;
+ }
+
+ $n = count($decoded['content']);
+ $i = 0;
+
+ foreach ($mapping['children'] as $key => $child) {
+ $maymatch = $i < $n; // Match only existing input.
+ if ($maymatch) {
+ $temp = $decoded['content'][$i];
+
+ if ($child['type'] != self::TYPE_CHOICE) {
+ // Get the mapping and input class & constant.
+ $childClass = $tempClass = self::CLASS_UNIVERSAL;
+ $constant = null;
+ if (isset($temp['constant'])) {
+ $tempClass = isset($temp['class']) ? $temp['class'] : self::CLASS_CONTEXT_SPECIFIC;
+ }
+ if (isset($child['class'])) {
+ $childClass = $child['class'];
+ $constant = $child['cast'];
+ } elseif (isset($child['constant'])) {
+ $childClass = self::CLASS_CONTEXT_SPECIFIC;
+ $constant = $child['constant'];
+ }
+
+ if (isset($constant) && isset($temp['constant'])) {
+ // Can only match if constants and class match.
+ $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
+ } else {
+ // Can only match if no constant expected and type matches or is generic.
+ $maymatch = !isset($child['constant']) && array_search($child['type'], array($temp['type'], self::TYPE_ANY, self::TYPE_CHOICE)) !== false;
+ }
+ }
+ }
+
+ if ($maymatch) {
+ // Attempt submapping.
+ $candidate = $this->asn1map($temp, $child, $special);
+ $maymatch = $candidate !== null;
+ }
+
+ if ($maymatch) {
+ // Got the match: use it.
+ if (isset($special[$key])) {
+ $candidate = call_user_func($special[$key], $candidate);
+ }
+ $map[$key] = $candidate;
+ $i++;
+ } elseif (isset($child['default'])) {
+ $map[$key] = $child['default']; // Use default.
+ } elseif (!isset($child['optional'])) {
+ return null; // Syntax error.
+ }
+ }
+
+ // Fail mapping if all input items have not been consumed.
+ return $i < $n ? null: $map;
+
+ // the main diff between sets and sequences is the encapsulation of the foreach in another for loop
+ case self::TYPE_SET:
+ $map = array();
+
+ // ignore the min and max
+ if (isset($mapping['min']) && isset($mapping['max'])) {
+ $child = $mapping['children'];
+ foreach ($decoded['content'] as $content) {
+ if (($map[] = $this->asn1map($content, $child, $special)) === null) {
+ return null;
+ }
+ }
+
+ return $map;
+ }
+
+ for ($i = 0; $i < count($decoded['content']); $i++) {
+ $temp = $decoded['content'][$i];
+ $tempClass = self::CLASS_UNIVERSAL;
+ if (isset($temp['constant'])) {
+ $tempClass = isset($temp['class']) ? $temp['class'] : self::CLASS_CONTEXT_SPECIFIC;
+ }
+
+ foreach ($mapping['children'] as $key => $child) {
+ if (isset($map[$key])) {
+ continue;
+ }
+ $maymatch = true;
+ if ($child['type'] != self::TYPE_CHOICE) {
+ $childClass = self::CLASS_UNIVERSAL;
+ $constant = null;
+ if (isset($child['class'])) {
+ $childClass = $child['class'];
+ $constant = $child['cast'];
+ } elseif (isset($child['constant'])) {
+ $childClass = self::CLASS_CONTEXT_SPECIFIC;
+ $constant = $child['constant'];
+ }
+
+ if (isset($constant) && isset($temp['constant'])) {
+ // Can only match if constants and class match.
+ $maymatch = $constant == $temp['constant'] && $childClass == $tempClass;
+ } else {
+ // Can only match if no constant expected and type matches or is generic.
+ $maymatch = !isset($child['constant']) && array_search($child['type'], array($temp['type'], self::TYPE_ANY, self::TYPE_CHOICE)) !== false;
+ }
+ }
+
+ if ($maymatch) {
+ // Attempt submapping.
+ $candidate = $this->asn1map($temp, $child, $special);
+ $maymatch = $candidate !== null;
+ }
+
+ if (!$maymatch) {
+ break;
+ }
+
+ // Got the match: use it.
+ if (isset($special[$key])) {
+ $candidate = call_user_func($special[$key], $candidate);
+ }
+ $map[$key] = $candidate;
+ break;
+ }
+ }
+
+ foreach ($mapping['children'] as $key => $child) {
+ if (!isset($map[$key])) {
+ if (isset($child['default'])) {
+ $map[$key] = $child['default'];
+ } elseif (!isset($child['optional'])) {
+ return null;
+ }
+ }
+ }
+ return $map;
+ case self::TYPE_OBJECT_IDENTIFIER:
+ return isset($this->oids[$decoded['content']]) ? $this->oids[$decoded['content']] : $decoded['content'];
+ case self::TYPE_UTC_TIME:
+ case self::TYPE_GENERALIZED_TIME:
+ if (isset($mapping['implicit'])) {
+ $decoded['content'] = $this->_decodeTime($decoded['content'], $decoded['type']);
+ }
+ return @date($this->format, $decoded['content']);
+ case self::TYPE_BIT_STRING:
+ if (isset($mapping['mapping'])) {
+ $offset = ord($decoded['content'][0]);
+ $size = (strlen($decoded['content']) - 1) * 8 - $offset;
+ /*
+ From X.680-0207.pdf#page=46 (21.7):
+
+ "When a "NamedBitList" is used in defining a bitstring type ASN.1 encoding rules are free to add (or remove)
+ arbitrarily any trailing 0 bits to (or from) values that are being encoded or decoded. Application designers should
+ therefore ensure that different semantics are not associated with such values which differ only in the number of trailing
+ 0 bits."
+ */
+ $bits = count($mapping['mapping']) == $size ? array() : array_fill(0, count($mapping['mapping']) - $size, false);
+ for ($i = strlen($decoded['content']) - 1; $i > 0; $i--) {
+ $current = ord($decoded['content'][$i]);
+ for ($j = $offset; $j < 8; $j++) {
+ $bits[] = (bool) ($current & (1 << $j));
+ }
+ $offset = 0;
+ }
+ $values = array();
+ $map = array_reverse($mapping['mapping']);
+ foreach ($map as $i => $value) {
+ if ($bits[$i]) {
+ $values[] = $value;
+ }
+ }
+ return $values;
+ }
+ case self::TYPE_OCTET_STRING:
+ return base64_encode($decoded['content']);
+ case self::TYPE_NULL:
+ return '';
+ case self::TYPE_BOOLEAN:
+ return $decoded['content'];
+ case self::TYPE_NUMERIC_STRING:
+ case self::TYPE_PRINTABLE_STRING:
+ case self::TYPE_TELETEX_STRING:
+ case self::TYPE_VIDEOTEX_STRING:
+ case self::TYPE_IA5_STRING:
+ case self::TYPE_GRAPHIC_STRING:
+ case self::TYPE_VISIBLE_STRING:
+ case self::TYPE_GENERAL_STRING:
+ case self::TYPE_UNIVERSAL_STRING:
+ case self::TYPE_UTF8_STRING:
+ case self::TYPE_BMP_STRING:
+ return $decoded['content'];
+ case self::TYPE_INTEGER:
+ case self::TYPE_ENUMERATED:
+ $temp = $decoded['content'];
+ if (isset($mapping['implicit'])) {
+ $temp = new BigInteger($decoded['content'], -256);
+ }
+ if (isset($mapping['mapping'])) {
+ $temp = (int) $temp->toString();
+ return isset($mapping['mapping'][$temp]) ?
+ $mapping['mapping'][$temp] :
+ false;
+ }
+ return $temp;
+ }
+ }
+
+ /**
+ * ASN.1 Encode
+ *
+ * DER-encodes an ASN.1 semantic mapping ($mapping). Some libraries would probably call this function
+ * an ASN.1 compiler.
+ *
+ * "Special" mappings can be applied via $special.
+ *
+ * @param string $source
+ * @param string $mapping
+ * @param int $idx
+ * @return string
+ * @access public
+ */
+ function encodeDER($source, $mapping, $special = array())
+ {
+ $this->location = array();
+ return $this->_encode_der($source, $mapping, null, $special);
+ }
+
+ /**
+ * ASN.1 Encode (Helper function)
+ *
+ * @param string $source
+ * @param string $mapping
+ * @param int $idx
+ * @return string
+ * @access private
+ */
+ function _encode_der($source, $mapping, $idx = null, $special = array())
+ {
+ if ($source instanceof Element) {
+ return $source->element;
+ }
+
+ // do not encode (implicitly optional) fields with value set to default
+ if (isset($mapping['default']) && $source === $mapping['default']) {
+ return '';
+ }
+
+ if (isset($idx)) {
+ if (isset($special[$idx])) {
+ $source = call_user_func($special[$idx], $source);
+ }
+ $this->location[] = $idx;
+ }
+
+ $tag = $mapping['type'];
+
+ switch ($tag) {
+ case self::TYPE_SET: // Children order is not important, thus process in sequence.
+ case self::TYPE_SEQUENCE:
+ $tag|= 0x20; // set the constructed bit
+
+ // ignore the min and max
+ if (isset($mapping['min']) && isset($mapping['max'])) {
+ $value = array();
+ $child = $mapping['children'];
+
+ foreach ($source as $content) {
+ $temp = $this->_encode_der($content, $child, null, $special);
+ if ($temp === false) {
+ return false;
+ }
+ $value[]= $temp;
+ }
+ /* "The encodings of the component values of a set-of value shall appear in ascending order, the encodings being compared
+ as octet strings with the shorter components being padded at their trailing end with 0-octets.
+ NOTE - The padding octets are for comparison purposes only and do not appear in the encodings."
+
+ -- sec 11.6 of http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf */
+ if ($mapping['type'] == self::TYPE_SET) {
+ sort($value);
+ }
+ $value = implode($value, '');
+ break;
+ }
+
+ $value = '';
+ foreach ($mapping['children'] as $key => $child) {
+ if (!array_key_exists($key, $source)) {
+ if (!isset($child['optional'])) {
+ return false;
+ }
+ continue;
+ }
+
+ $temp = $this->_encode_der($source[$key], $child, $key, $special);
+ if ($temp === false) {
+ return false;
+ }
+
+ // An empty child encoding means it has been optimized out.
+ // Else we should have at least one tag byte.
+ if ($temp === '') {
+ continue;
+ }
+
+ // if isset($child['constant']) is true then isset($child['optional']) should be true as well
+ if (isset($child['constant'])) {
+ /*
+ From X.680-0207.pdf#page=58 (30.6):
+
+ "The tagging construction specifies explicit tagging if any of the following holds:
+ ...
+ c) the "Tag Type" alternative is used and the value of "TagDefault" for the module is IMPLICIT TAGS or
+ AUTOMATIC TAGS, but the type defined by "Type" is an untagged choice type, an untagged open type, or
+ an untagged "DummyReference" (see ITU-T Rec. X.683 | ISO/IEC 8824-4, 8.3)."
+ */
+ if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
+ $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
+ $temp = $subtag . $this->_encodeLength(strlen($temp)) . $temp;
+ } else {
+ $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
+ $temp = $subtag . substr($temp, 1);
+ }
+ }
+ $value.= $temp;
+ }
+ break;
+ case self::TYPE_CHOICE:
+ $temp = false;
+
+ foreach ($mapping['children'] as $key => $child) {
+ if (!isset($source[$key])) {
+ continue;
+ }
+
+ $temp = $this->_encode_der($source[$key], $child, $key, $special);
+ if ($temp === false) {
+ return false;
+ }
+
+ // An empty child encoding means it has been optimized out.
+ // Else we should have at least one tag byte.
+ if ($temp === '') {
+ continue;
+ }
+
+ $tag = ord($temp[0]);
+
+ // if isset($child['constant']) is true then isset($child['optional']) should be true as well
+ if (isset($child['constant'])) {
+ if (isset($child['explicit']) || $child['type'] == self::TYPE_CHOICE) {
+ $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | 0x20 | $child['constant']);
+ $temp = $subtag . $this->_encodeLength(strlen($temp)) . $temp;
+ } else {
+ $subtag = chr((self::CLASS_CONTEXT_SPECIFIC << 6) | (ord($temp[0]) & 0x20) | $child['constant']);
+ $temp = $subtag . substr($temp, 1);
+ }
+ }
+ }
+
+ if (isset($idx)) {
+ array_pop($this->location);
+ }
+
+ if ($temp && isset($mapping['cast'])) {
+ $temp[0] = chr(($mapping['class'] << 6) | ($tag & 0x20) | $mapping['cast']);
+ }
+
+ return $temp;
+ case self::TYPE_INTEGER:
+ case self::TYPE_ENUMERATED:
+ if (!isset($mapping['mapping'])) {
+ if (is_numeric($source)) {
+ $source = new BigInteger($source);
+ }
+ $value = $source->toBytes(true);
+ } else {
+ $value = array_search($source, $mapping['mapping']);
+ if ($value === false) {
+ return false;
+ }
+ $value = new BigInteger($value);
+ $value = $value->toBytes(true);
+ }
+ if (!strlen($value)) {
+ $value = chr(0);
+ }
+ break;
+ case self::TYPE_UTC_TIME:
+ case self::TYPE_GENERALIZED_TIME:
+ $format = $mapping['type'] == self::TYPE_UTC_TIME ? 'y' : 'Y';
+ $format.= 'mdHis';
+ $value = @gmdate($format, strtotime($source)) . 'Z';
+ break;
+ case self::TYPE_BIT_STRING:
+ if (isset($mapping['mapping'])) {
+ $bits = array_fill(0, count($mapping['mapping']), 0);
+ $size = 0;
+ for ($i = 0; $i < count($mapping['mapping']); $i++) {
+ if (in_array($mapping['mapping'][$i], $source)) {
+ $bits[$i] = 1;
+ $size = $i;
+ }
+ }
+
+ if (isset($mapping['min']) && $mapping['min'] >= 1 && $size < $mapping['min']) {
+ $size = $mapping['min'] - 1;
+ }
+
+ $offset = 8 - (($size + 1) & 7);
+ $offset = $offset !== 8 ? $offset : 0;
+
+ $value = chr($offset);
+
+ for ($i = $size + 1; $i < count($mapping['mapping']); $i++) {
+ unset($bits[$i]);
+ }
+
+ $bits = implode('', array_pad($bits, $size + $offset + 1, 0));
+ $bytes = explode(' ', rtrim(chunk_split($bits, 8, ' ')));
+ foreach ($bytes as $byte) {
+ $value.= chr(bindec($byte));
+ }
+
+ break;
+ }
+ case self::TYPE_OCTET_STRING:
+ /* The initial octet shall encode, as an unsigned binary integer with bit 1 as the least significant bit,
+ the number of unused bits in the final subsequent octet. The number shall be in the range zero to seven.
+
+ -- http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#page=16 */
+ $value = base64_decode($source);
+ break;
+ case self::TYPE_OBJECT_IDENTIFIER:
+ $oid = preg_match('#(?:\d+\.)+#', $source) ? $source : array_search($source, $this->oids);
+ if ($oid === false) {
+ user_error('Invalid OID');
+ return false;
+ }
+ $value = '';
+ $parts = explode('.', $oid);
+ $value = chr(40 * $parts[0] + $parts[1]);
+ for ($i = 2; $i < count($parts); $i++) {
+ $temp = '';
+ if (!$parts[$i]) {
+ $temp = "\0";
+ } else {
+ while ($parts[$i]) {
+ $temp = chr(0x80 | ($parts[$i] & 0x7F)) . $temp;
+ $parts[$i] >>= 7;
+ }
+ $temp[strlen($temp) - 1] = $temp[strlen($temp) - 1] & chr(0x7F);
+ }
+ $value.= $temp;
+ }
+ break;
+ case self::TYPE_ANY:
+ $loc = $this->location;
+ if (isset($idx)) {
+ array_pop($this->location);
+ }
+
+ switch (true) {
+ case !isset($source):
+ return $this->_encode_der(null, array('type' => self::TYPE_NULL) + $mapping, null, $special);
+ case is_int($source):
+ case $source instanceof BigInteger:
+ return $this->_encode_der($source, array('type' => self::TYPE_INTEGER) + $mapping, null, $special);
+ case is_float($source):
+ return $this->_encode_der($source, array('type' => self::TYPE_REAL) + $mapping, null, $special);
+ case is_bool($source):
+ return $this->_encode_der($source, array('type' => self::TYPE_BOOLEAN) + $mapping, null, $special);
+ case is_array($source) && count($source) == 1:
+ $typename = implode('', array_keys($source));
+ $outtype = array_search($typename, $this->ANYmap, true);
+ if ($outtype !== false) {
+ return $this->_encode_der($source[$typename], array('type' => $outtype) + $mapping, null, $special);
+ }
+ }
+
+ $filters = $this->filters;
+ foreach ($loc as $part) {
+ if (!isset($filters[$part])) {
+ $filters = false;
+ break;
+ }
+ $filters = $filters[$part];
+ }
+ if ($filters === false) {
+ user_error('No filters defined for ' . implode('/', $loc));
+ return false;
+ }
+ return $this->_encode_der($source, $filters + $mapping, null, $special);
+ case self::TYPE_NULL:
+ $value = '';
+ break;
+ case self::TYPE_NUMERIC_STRING:
+ case self::TYPE_TELETEX_STRING:
+ case self::TYPE_PRINTABLE_STRING:
+ case self::TYPE_UNIVERSAL_STRING:
+ case self::TYPE_UTF8_STRING:
+ case self::TYPE_BMP_STRING:
+ case self::TYPE_IA5_STRING:
+ case self::TYPE_VISIBLE_STRING:
+ case self::TYPE_VIDEOTEX_STRING:
+ case self::TYPE_GRAPHIC_STRING:
+ case self::TYPE_GENERAL_STRING:
+ $value = $source;
+ break;
+ case self::TYPE_BOOLEAN:
+ $value = $source ? "\xFF" : "\x00";
+ break;
+ default:
+ user_error('Mapping provides no type definition for ' . implode('/', $this->location));
+ return false;
+ }
+
+ if (isset($idx)) {
+ array_pop($this->location);
+ }
+
+ if (isset($mapping['cast'])) {
+ if (isset($mapping['explicit']) || $mapping['type'] == self::TYPE_CHOICE) {
+ $value = chr($tag) . $this->_encodeLength(strlen($value)) . $value;
+ $tag = ($mapping['class'] << 6) | 0x20 | $mapping['cast'];
+ } else {
+ $tag = ($mapping['class'] << 6) | (ord($temp[0]) & 0x20) | $mapping['cast'];
+ }
+ }
+
+ return chr($tag) . $this->_encodeLength(strlen($value)) . $value;
+ }
+
+ /**
+ * DER-encode the length
+ *
+ * DER supports lengths up to (2**8)**127, however, we'll only support lengths up to (2**8)**4. See
+ * {@link http://itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#p=13 X.690 paragraph 8.1.3} for more information.
+ *
+ * @access private
+ * @param int $length
+ * @return string
+ */
+ function _encodeLength($length)
+ {
+ if ($length <= 0x7F) {
+ return chr($length);
+ }
+
+ $temp = ltrim(pack('N', $length), chr(0));
+ return pack('Ca*', 0x80 | strlen($temp), $temp);
+ }
+
+ /**
+ * BER-decode the time
+ *
+ * Called by _decode_ber() and in the case of implicit tags asn1map().
+ *
+ * @access private
+ * @param string $content
+ * @param int $tag
+ * @return string
+ */
+ function _decodeTime($content, $tag)
+ {
+ /* UTCTime:
+ http://tools.ietf.org/html/rfc5280#section-4.1.2.5.1
+ http://www.obj-sys.com/asn1tutorial/node15.html
+
+ GeneralizedTime:
+ http://tools.ietf.org/html/rfc5280#section-4.1.2.5.2
+ http://www.obj-sys.com/asn1tutorial/node14.html */
+
+ $pattern = $tag == self::TYPE_UTC_TIME ?
+ '#^(..)(..)(..)(..)(..)(..)?(.*)$#' :
+ '#(....)(..)(..)(..)(..)(..).*([Z+-].*)$#';
+
+ preg_match($pattern, $content, $matches);
+
+ list(, $year, $month, $day, $hour, $minute, $second, $timezone) = $matches;
+
+ if ($tag == self::TYPE_UTC_TIME) {
+ $year = $year >= 50 ? "19$year" : "20$year";
+ }
+
+ if ($timezone == 'Z') {
+ $mktime = 'gmmktime';
+ $timezone = 0;
+ } elseif (preg_match('#([+-])(\d\d)(\d\d)#', $timezone, $matches)) {
+ $mktime = 'gmmktime';
+ $timezone = 60 * $matches[3] + 3600 * $matches[2];
+ if ($matches[1] == '-') {
+ $timezone = -$timezone;
+ }
+ } else {
+ $mktime = 'mktime';
+ $timezone = 0;
+ }
+
+ return @$mktime((int)$hour, (int)$minute, (int)$second, (int)$month, (int)$day, (int)$year) + $timezone;
+ }
+
+ /**
+ * Set the time format
+ *
+ * Sets the time / date format for asn1map().
+ *
+ * @access public
+ * @param string $format
+ */
+ function setTimeFormat($format)
+ {
+ $this->format = $format;
+ }
+
+ /**
+ * Load OIDs
+ *
+ * Load the relevant OIDs for a particular ASN.1 semantic mapping.
+ *
+ * @access public
+ * @param array $oids
+ */
+ function loadOIDs($oids)
+ {
+ $this->oids = $oids;
+ }
+
+ /**
+ * Load filters
+ *
+ * See \phpseclib\File\X509, etc, for an example.
+ *
+ * @access public
+ * @param array $filters
+ */
+ function loadFilters($filters)
+ {
+ $this->filters = $filters;
+ }
+
+ /**
+ * String Shift
+ *
+ * Inspired by array_shift
+ *
+ * @param string $string
+ * @param int $index
+ * @return string
+ * @access private
+ */
+ function _string_shift(&$string, $index = 1)
+ {
+ $substr = substr($string, 0, $index);
+ $string = substr($string, $index);
+ return $substr;
+ }
+
+ /**
+ * String type conversion
+ *
+ * This is a lazy conversion, dealing only with character size.
+ * No real conversion table is used.
+ *
+ * @param string $in
+ * @param int $from
+ * @param int $to
+ * @return string
+ * @access public
+ */
+ function convert($in, $from = self::TYPE_UTF8_STRING, $to = self::TYPE_UTF8_STRING)
+ {
+ if (!isset($this->stringTypeSize[$from]) || !isset($this->stringTypeSize[$to])) {
+ return false;
+ }
+ $insize = $this->stringTypeSize[$from];
+ $outsize = $this->stringTypeSize[$to];
+ $inlength = strlen($in);
+ $out = '';
+
+ for ($i = 0; $i < $inlength;) {
+ if ($inlength - $i < $insize) {
+ return false;
+ }
+
+ // Get an input character as a 32-bit value.
+ $c = ord($in[$i++]);
+ switch (true) {
+ case $insize == 4:
+ $c = ($c << 8) | ord($in[$i++]);
+ $c = ($c << 8) | ord($in[$i++]);
+ case $insize == 2:
+ $c = ($c << 8) | ord($in[$i++]);
+ case $insize == 1:
+ break;
+ case ($c & 0x80) == 0x00:
+ break;
+ case ($c & 0x40) == 0x00:
+ return false;
+ default:
+ $bit = 6;
+ do {
+ if ($bit > 25 || $i >= $inlength || (ord($in[$i]) & 0xC0) != 0x80) {
+ return false;
+ }
+ $c = ($c << 6) | (ord($in[$i++]) & 0x3F);
+ $bit += 5;
+ $mask = 1 << $bit;
+ } while ($c & $bit);
+ $c &= $mask - 1;
+ break;
+ }
+
+ // Convert and append the character to output string.
+ $v = '';
+ switch (true) {
+ case $outsize == 4:
+ $v .= chr($c & 0xFF);
+ $c >>= 8;
+ $v .= chr($c & 0xFF);
+ $c >>= 8;
+ case $outsize == 2:
+ $v .= chr($c & 0xFF);
+ $c >>= 8;
+ case $outsize == 1:
+ $v .= chr($c & 0xFF);
+ $c >>= 8;
+ if ($c) {
+ return false;
+ }
+ break;
+ case ($c & 0x80000000) != 0:
+ return false;
+ case $c >= 0x04000000:
+ $v .= chr(0x80 | ($c & 0x3F));
+ $c = ($c >> 6) | 0x04000000;
+ case $c >= 0x00200000:
+ $v .= chr(0x80 | ($c & 0x3F));
+ $c = ($c >> 6) | 0x00200000;
+ case $c >= 0x00010000:
+ $v .= chr(0x80 | ($c & 0x3F));
+ $c = ($c >> 6) | 0x00010000;
+ case $c >= 0x00000800:
+ $v .= chr(0x80 | ($c & 0x3F));
+ $c = ($c >> 6) | 0x00000800;
+ case $c >= 0x00000080:
+ $v .= chr(0x80 | ($c & 0x3F));
+ $c = ($c >> 6) | 0x000000C0;
+ default:
+ $v .= chr($c);
+ break;
+ }
+ $out .= strrev($v);
+ }
+ return $out;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php
new file mode 100644
index 00000000..68246e2b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Pure-PHP ASN.1 Parser
+ *
+ * PHP version 5
+ *
+ * @category File
+ * @package ASN1
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2012 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\File\ASN1;
+
+/**
+ * ASN.1 Element
+ *
+ * Bypass normal encoding rules in phpseclib\File\ASN1::encodeDER()
+ *
+ * @package ASN1
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class Element
+{
+ /**
+ * Raw element value
+ *
+ * @var string
+ * @access private
+ */
+ var $element;
+
+ /**
+ * Constructor
+ *
+ * @param string $encoded
+ * @return \phpseclib\File\ASN1\Element
+ * @access public
+ */
+ function __construct($encoded)
+ {
+ $this->element = $encoded;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/X509.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/X509.php
new file mode 100644
index 00000000..9a70457b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/File/X509.php
@@ -0,0 +1,4823 @@
+<?php
+
+/**
+ * Pure-PHP X.509 Parser
+ *
+ * PHP version 5
+ *
+ * Encode and decode X.509 certificates.
+ *
+ * The extensions are from {@link http://tools.ietf.org/html/rfc5280 RFC5280} and
+ * {@link http://web.archive.org/web/19961027104704/http://www3.netscape.com/eng/security/cert-exts.html Netscape Certificate Extensions}.
+ *
+ * Note that loading an X.509 certificate and resaving it may invalidate the signature. The reason being that the signature is based on a
+ * portion of the certificate that contains optional parameters with default values. ie. if the parameter isn't there the default value is
+ * used. Problem is, if the parameter is there and it just so happens to have the default value there are two ways that that parameter can
+ * be encoded. It can be encoded explicitly or left out all together. This would effect the signature value and thus may invalidate the
+ * the certificate all together unless the certificate is re-signed.
+ *
+ * @category File
+ * @package X509
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2012 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\File;
+
+use phpseclib\Crypt\Hash;
+use phpseclib\Crypt\Random;
+use phpseclib\Crypt\RSA;
+use phpseclib\File\ASN1\Element;
+use phpseclib\Math\BigInteger;
+
+/**
+ * Pure-PHP X.509 Parser
+ *
+ * @package X509
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class X509
+{
+ /**
+ * Flag to only accept signatures signed by certificate authorities
+ *
+ * Not really used anymore but retained all the same to suppress E_NOTICEs from old installs
+ *
+ * @access public
+ */
+ const VALIDATE_SIGNATURE_BY_CA = 1;
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\File\X509::getDN()
+ */
+ /**
+ * Return internal array representation
+ */
+ const DN_ARRAY = 0;
+ /**
+ * Return string
+ */
+ const DN_STRING = 1;
+ /**
+ * Return ASN.1 name string
+ */
+ const DN_ASN1 = 2;
+ /**
+ * Return OpenSSL compatible array
+ */
+ const DN_OPENSSL = 3;
+ /**
+ * Return canonical ASN.1 RDNs string
+ */
+ const DN_CANON = 4;
+ /**
+ * Return name hash for file indexing
+ */
+ const DN_HASH = 5;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\File\X509::saveX509()
+ * @see \phpseclib\File\X509::saveCSR()
+ * @see \phpseclib\File\X509::saveCRL()
+ */
+ /**
+ * Save as PEM
+ *
+ * ie. a base64-encoded PEM with a header and a footer
+ */
+ const FORMAT_PEM = 0;
+ /**
+ * Save as DER
+ */
+ const FORMAT_DER = 1;
+ /**
+ * Save as a SPKAC
+ *
+ * Only works on CSRs. Not currently supported.
+ */
+ const FORMAT_SPKAC = 2;
+ /**
+ * Auto-detect the format
+ *
+ * Used only by the load*() functions
+ */
+ const FORMAT_AUTO_DETECT = 3;
+ /**#@-*/
+
+ /**
+ * Attribute value disposition.
+ * If disposition is >= 0, this is the index of the target value.
+ */
+ const ATTR_ALL = -1; // All attribute values (array).
+ const ATTR_APPEND = -2; // Add a value.
+ const ATTR_REPLACE = -3; // Clear first, then add a value.
+
+ /**
+ * ASN.1 syntax for X.509 certificates
+ *
+ * @var array
+ * @access private
+ */
+ var $Certificate;
+
+ /**#@+
+ * ASN.1 syntax for various extensions
+ *
+ * @access private
+ */
+ var $DirectoryString;
+ var $PKCS9String;
+ var $AttributeValue;
+ var $Extensions;
+ var $KeyUsage;
+ var $ExtKeyUsageSyntax;
+ var $BasicConstraints;
+ var $KeyIdentifier;
+ var $CRLDistributionPoints;
+ var $AuthorityKeyIdentifier;
+ var $CertificatePolicies;
+ var $AuthorityInfoAccessSyntax;
+ var $SubjectAltName;
+ var $SubjectDirectoryAttributes;
+ var $PrivateKeyUsagePeriod;
+ var $IssuerAltName;
+ var $PolicyMappings;
+ var $NameConstraints;
+
+ var $CPSuri;
+ var $UserNotice;
+
+ var $netscape_cert_type;
+ var $netscape_comment;
+ var $netscape_ca_policy_url;
+
+ var $Name;
+ var $RelativeDistinguishedName;
+ var $CRLNumber;
+ var $CRLReason;
+ var $IssuingDistributionPoint;
+ var $InvalidityDate;
+ var $CertificateIssuer;
+ var $HoldInstructionCode;
+ var $SignedPublicKeyAndChallenge;
+ /**#@-*/
+
+ /**#@+
+ * ASN.1 syntax for various DN attributes
+ *
+ * @access private
+ */
+ var $PostalAddress;
+ /**#@-*/
+
+ /**
+ * ASN.1 syntax for Certificate Signing Requests (RFC2986)
+ *
+ * @var array
+ * @access private
+ */
+ var $CertificationRequest;
+
+ /**
+ * ASN.1 syntax for Certificate Revocation Lists (RFC5280)
+ *
+ * @var array
+ * @access private
+ */
+ var $CertificateList;
+
+ /**
+ * Distinguished Name
+ *
+ * @var array
+ * @access private
+ */
+ var $dn;
+
+ /**
+ * Public key
+ *
+ * @var string
+ * @access private
+ */
+ var $publicKey;
+
+ /**
+ * Private key
+ *
+ * @var string
+ * @access private
+ */
+ var $privateKey;
+
+ /**
+ * Object identifiers for X.509 certificates
+ *
+ * @var array
+ * @access private
+ * @link http://en.wikipedia.org/wiki/Object_identifier
+ */
+ var $oids;
+
+ /**
+ * The certificate authorities
+ *
+ * @var array
+ * @access private
+ */
+ var $CAs;
+
+ /**
+ * The currently loaded certificate
+ *
+ * @var array
+ * @access private
+ */
+ var $currentCert;
+
+ /**
+ * The signature subject
+ *
+ * There's no guarantee \phpseclib\File\X509 is going to re-encode an X.509 cert in the same way it was originally
+ * encoded so we take save the portion of the original cert that the signature would have made for.
+ *
+ * @var string
+ * @access private
+ */
+ var $signatureSubject;
+
+ /**
+ * Certificate Start Date
+ *
+ * @var string
+ * @access private
+ */
+ var $startDate;
+
+ /**
+ * Certificate End Date
+ *
+ * @var string
+ * @access private
+ */
+ var $endDate;
+
+ /**
+ * Serial Number
+ *
+ * @var string
+ * @access private
+ */
+ var $serialNumber;
+
+ /**
+ * Key Identifier
+ *
+ * See {@link http://tools.ietf.org/html/rfc5280#section-4.2.1.1 RFC5280#section-4.2.1.1} and
+ * {@link http://tools.ietf.org/html/rfc5280#section-4.2.1.2 RFC5280#section-4.2.1.2}.
+ *
+ * @var string
+ * @access private
+ */
+ var $currentKeyIdentifier;
+
+ /**
+ * CA Flag
+ *
+ * @var bool
+ * @access private
+ */
+ var $caFlag = false;
+
+ /**
+ * SPKAC Challenge
+ *
+ * @var string
+ * @access private
+ */
+ var $challenge;
+
+ /**
+ * Default Constructor.
+ *
+ * @return \phpseclib\File\X509
+ * @access public
+ */
+ function __construct()
+ {
+ // Explicitly Tagged Module, 1988 Syntax
+ // http://tools.ietf.org/html/rfc5280#appendix-A.1
+
+ $this->DirectoryString = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'teletexString' => array('type' => ASN1::TYPE_TELETEX_STRING),
+ 'printableString' => array('type' => ASN1::TYPE_PRINTABLE_STRING),
+ 'universalString' => array('type' => ASN1::TYPE_UNIVERSAL_STRING),
+ 'utf8String' => array('type' => ASN1::TYPE_UTF8_STRING),
+ 'bmpString' => array('type' => ASN1::TYPE_BMP_STRING)
+ )
+ );
+
+ $this->PKCS9String = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'ia5String' => array('type' => ASN1::TYPE_IA5_STRING),
+ 'directoryString' => $this->DirectoryString
+ )
+ );
+
+ $this->AttributeValue = array('type' => ASN1::TYPE_ANY);
+
+ $AttributeType = array('type' => ASN1::TYPE_OBJECT_IDENTIFIER);
+
+ $AttributeTypeAndValue = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'type' => $AttributeType,
+ 'value'=> $this->AttributeValue
+ )
+ );
+
+ /*
+ In practice, RDNs containing multiple name-value pairs (called "multivalued RDNs") are rare,
+ but they can be useful at times when either there is no unique attribute in the entry or you
+ want to ensure that the entry's DN contains some useful identifying information.
+
+ - https://www.opends.org/wiki/page/DefinitionRelativeDistinguishedName
+ */
+ $this->RelativeDistinguishedName = array(
+ 'type' => ASN1::TYPE_SET,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $AttributeTypeAndValue
+ );
+
+ // http://tools.ietf.org/html/rfc5280#section-4.1.2.4
+ $RDNSequence = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ // RDNSequence does not define a min or a max, which means it doesn't have one
+ 'min' => 0,
+ 'max' => -1,
+ 'children' => $this->RelativeDistinguishedName
+ );
+
+ $this->Name = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'rdnSequence' => $RDNSequence
+ )
+ );
+
+ // http://tools.ietf.org/html/rfc5280#section-4.1.1.2
+ $AlgorithmIdentifier = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'algorithm' => array('type' => ASN1::TYPE_OBJECT_IDENTIFIER),
+ 'parameters' => array(
+ 'type' => ASN1::TYPE_ANY,
+ 'optional' => true
+ )
+ )
+ );
+
+ /*
+ A certificate using system MUST reject the certificate if it encounters
+ a critical extension it does not recognize; however, a non-critical
+ extension may be ignored if it is not recognized.
+
+ http://tools.ietf.org/html/rfc5280#section-4.2
+ */
+ $Extension = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'extnId' => array('type' => ASN1::TYPE_OBJECT_IDENTIFIER),
+ 'critical' => array(
+ 'type' => ASN1::TYPE_BOOLEAN,
+ 'optional' => true,
+ 'default' => false
+ ),
+ 'extnValue' => array('type' => ASN1::TYPE_OCTET_STRING)
+ )
+ );
+
+ $this->Extensions = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ // technically, it's MAX, but we'll assume anything < 0 is MAX
+ 'max' => -1,
+ // if 'children' isn't an array then 'min' and 'max' must be defined
+ 'children' => $Extension
+ );
+
+ $SubjectPublicKeyInfo = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'algorithm' => $AlgorithmIdentifier,
+ 'subjectPublicKey' => array('type' => ASN1::TYPE_BIT_STRING)
+ )
+ );
+
+ $UniqueIdentifier = array('type' => ASN1::TYPE_BIT_STRING);
+
+ $Time = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'utcTime' => array('type' => ASN1::TYPE_UTC_TIME),
+ 'generalTime' => array('type' => ASN1::TYPE_GENERALIZED_TIME)
+ )
+ );
+
+ // http://tools.ietf.org/html/rfc5280#section-4.1.2.5
+ $Validity = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'notBefore' => $Time,
+ 'notAfter' => $Time
+ )
+ );
+
+ $CertificateSerialNumber = array('type' => ASN1::TYPE_INTEGER);
+
+ $Version = array(
+ 'type' => ASN1::TYPE_INTEGER,
+ 'mapping' => array('v1', 'v2', 'v3')
+ );
+
+ // assert($TBSCertificate['children']['signature'] == $Certificate['children']['signatureAlgorithm'])
+ $TBSCertificate = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ // technically, default implies optional, but we'll define it as being optional, none-the-less, just to
+ // reenforce that fact
+ 'version' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'explicit' => true,
+ 'default' => 'v1'
+ ) + $Version,
+ 'serialNumber' => $CertificateSerialNumber,
+ 'signature' => $AlgorithmIdentifier,
+ 'issuer' => $this->Name,
+ 'validity' => $Validity,
+ 'subject' => $this->Name,
+ 'subjectPublicKeyInfo' => $SubjectPublicKeyInfo,
+ // implicit means that the T in the TLV structure is to be rewritten, regardless of the type
+ 'issuerUniqueID' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $UniqueIdentifier,
+ 'subjectUniqueID' => array(
+ 'constant' => 2,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $UniqueIdentifier,
+ // <http://tools.ietf.org/html/rfc2459#page-74> doesn't use the EXPLICIT keyword but if
+ // it's not IMPLICIT, it's EXPLICIT
+ 'extensions' => array(
+ 'constant' => 3,
+ 'optional' => true,
+ 'explicit' => true
+ ) + $this->Extensions
+ )
+ );
+
+ $this->Certificate = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'tbsCertificate' => $TBSCertificate,
+ 'signatureAlgorithm' => $AlgorithmIdentifier,
+ 'signature' => array('type' => ASN1::TYPE_BIT_STRING)
+ )
+ );
+
+ $this->KeyUsage = array(
+ 'type' => ASN1::TYPE_BIT_STRING,
+ 'mapping' => array(
+ 'digitalSignature',
+ 'nonRepudiation',
+ 'keyEncipherment',
+ 'dataEncipherment',
+ 'keyAgreement',
+ 'keyCertSign',
+ 'cRLSign',
+ 'encipherOnly',
+ 'decipherOnly'
+ )
+ );
+
+ $this->BasicConstraints = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'cA' => array(
+ 'type' => ASN1::TYPE_BOOLEAN,
+ 'optional' => true,
+ 'default' => false
+ ),
+ 'pathLenConstraint' => array(
+ 'type' => ASN1::TYPE_INTEGER,
+ 'optional' => true
+ )
+ )
+ );
+
+ $this->KeyIdentifier = array('type' => ASN1::TYPE_OCTET_STRING);
+
+ $OrganizationalUnitNames = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => 4, // ub-organizational-units
+ 'children' => array('type' => ASN1::TYPE_PRINTABLE_STRING)
+ );
+
+ $PersonalName = array(
+ 'type' => ASN1::TYPE_SET,
+ 'children' => array(
+ 'surname' => array(
+ 'type' => ASN1::TYPE_PRINTABLE_STRING,
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'given-name' => array(
+ 'type' => ASN1::TYPE_PRINTABLE_STRING,
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'initials' => array(
+ 'type' => ASN1::TYPE_PRINTABLE_STRING,
+ 'constant' => 2,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'generation-qualifier' => array(
+ 'type' => ASN1::TYPE_PRINTABLE_STRING,
+ 'constant' => 3,
+ 'optional' => true,
+ 'implicit' => true
+ )
+ )
+ );
+
+ $NumericUserIdentifier = array('type' => ASN1::TYPE_NUMERIC_STRING);
+
+ $OrganizationName = array('type' => ASN1::TYPE_PRINTABLE_STRING);
+
+ $PrivateDomainName = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'numeric' => array('type' => ASN1::TYPE_NUMERIC_STRING),
+ 'printable' => array('type' => ASN1::TYPE_PRINTABLE_STRING)
+ )
+ );
+
+ $TerminalIdentifier = array('type' => ASN1::TYPE_PRINTABLE_STRING);
+
+ $NetworkAddress = array('type' => ASN1::TYPE_NUMERIC_STRING);
+
+ $AdministrationDomainName = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ // if class isn't present it's assumed to be \phpseclib\File\ASN1::CLASS_UNIVERSAL or
+ // (if constant is present) \phpseclib\File\ASN1::CLASS_CONTEXT_SPECIFIC
+ 'class' => ASN1::CLASS_APPLICATION,
+ 'cast' => 2,
+ 'children' => array(
+ 'numeric' => array('type' => ASN1::TYPE_NUMERIC_STRING),
+ 'printable' => array('type' => ASN1::TYPE_PRINTABLE_STRING)
+ )
+ );
+
+ $CountryName = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ // if class isn't present it's assumed to be \phpseclib\File\ASN1::CLASS_UNIVERSAL or
+ // (if constant is present) \phpseclib\File\ASN1::CLASS_CONTEXT_SPECIFIC
+ 'class' => ASN1::CLASS_APPLICATION,
+ 'cast' => 1,
+ 'children' => array(
+ 'x121-dcc-code' => array('type' => ASN1::TYPE_NUMERIC_STRING),
+ 'iso-3166-alpha2-code' => array('type' => ASN1::TYPE_PRINTABLE_STRING)
+ )
+ );
+
+ $AnotherName = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'type-id' => array('type' => ASN1::TYPE_OBJECT_IDENTIFIER),
+ 'value' => array(
+ 'type' => ASN1::TYPE_ANY,
+ 'constant' => 0,
+ 'optional' => true,
+ 'explicit' => true
+ )
+ )
+ );
+
+ $ExtensionAttribute = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'extension-attribute-type' => array(
+ 'type' => ASN1::TYPE_PRINTABLE_STRING,
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'extension-attribute-value' => array(
+ 'type' => ASN1::TYPE_ANY,
+ 'constant' => 1,
+ 'optional' => true,
+ 'explicit' => true
+ )
+ )
+ );
+
+ $ExtensionAttributes = array(
+ 'type' => ASN1::TYPE_SET,
+ 'min' => 1,
+ 'max' => 256, // ub-extension-attributes
+ 'children' => $ExtensionAttribute
+ );
+
+ $BuiltInDomainDefinedAttribute = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'type' => array('type' => ASN1::TYPE_PRINTABLE_STRING),
+ 'value' => array('type' => ASN1::TYPE_PRINTABLE_STRING)
+ )
+ );
+
+ $BuiltInDomainDefinedAttributes = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => 4, // ub-domain-defined-attributes
+ 'children' => $BuiltInDomainDefinedAttribute
+ );
+
+ $BuiltInStandardAttributes = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'country-name' => array('optional' => true) + $CountryName,
+ 'administration-domain-name' => array('optional' => true) + $AdministrationDomainName,
+ 'network-address' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $NetworkAddress,
+ 'terminal-identifier' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $TerminalIdentifier,
+ 'private-domain-name' => array(
+ 'constant' => 2,
+ 'optional' => true,
+ 'explicit' => true
+ ) + $PrivateDomainName,
+ 'organization-name' => array(
+ 'constant' => 3,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $OrganizationName,
+ 'numeric-user-identifier' => array(
+ 'constant' => 4,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $NumericUserIdentifier,
+ 'personal-name' => array(
+ 'constant' => 5,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $PersonalName,
+ 'organizational-unit-names' => array(
+ 'constant' => 6,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $OrganizationalUnitNames
+ )
+ );
+
+ $ORAddress = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'built-in-standard-attributes' => $BuiltInStandardAttributes,
+ 'built-in-domain-defined-attributes' => array('optional' => true) + $BuiltInDomainDefinedAttributes,
+ 'extension-attributes' => array('optional' => true) + $ExtensionAttributes
+ )
+ );
+
+ $EDIPartyName = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'nameAssigner' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $this->DirectoryString,
+ // partyName is technically required but \phpseclib\File\ASN1 doesn't currently support non-optional constants and
+ // setting it to optional gets the job done in any event.
+ 'partyName' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $this->DirectoryString
+ )
+ );
+
+ $GeneralName = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'otherName' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $AnotherName,
+ 'rfc822Name' => array(
+ 'type' => ASN1::TYPE_IA5_STRING,
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'dNSName' => array(
+ 'type' => ASN1::TYPE_IA5_STRING,
+ 'constant' => 2,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'x400Address' => array(
+ 'constant' => 3,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $ORAddress,
+ 'directoryName' => array(
+ 'constant' => 4,
+ 'optional' => true,
+ 'explicit' => true
+ ) + $this->Name,
+ 'ediPartyName' => array(
+ 'constant' => 5,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $EDIPartyName,
+ 'uniformResourceIdentifier' => array(
+ 'type' => ASN1::TYPE_IA5_STRING,
+ 'constant' => 6,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'iPAddress' => array(
+ 'type' => ASN1::TYPE_OCTET_STRING,
+ 'constant' => 7,
+ 'optional' => true,
+ 'implicit' => true
+ ),
+ 'registeredID' => array(
+ 'type' => ASN1::TYPE_OBJECT_IDENTIFIER,
+ 'constant' => 8,
+ 'optional' => true,
+ 'implicit' => true
+ )
+ )
+ );
+
+ $GeneralNames = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $GeneralName
+ );
+
+ $this->IssuerAltName = $GeneralNames;
+
+ $ReasonFlags = array(
+ 'type' => ASN1::TYPE_BIT_STRING,
+ 'mapping' => array(
+ 'unused',
+ 'keyCompromise',
+ 'cACompromise',
+ 'affiliationChanged',
+ 'superseded',
+ 'cessationOfOperation',
+ 'certificateHold',
+ 'privilegeWithdrawn',
+ 'aACompromise'
+ )
+ );
+
+ $DistributionPointName = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'fullName' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $GeneralNames,
+ 'nameRelativeToCRLIssuer' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $this->RelativeDistinguishedName
+ )
+ );
+
+ $DistributionPoint = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'distributionPoint' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'explicit' => true
+ ) + $DistributionPointName,
+ 'reasons' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $ReasonFlags,
+ 'cRLIssuer' => array(
+ 'constant' => 2,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $GeneralNames
+ )
+ );
+
+ $this->CRLDistributionPoints = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $DistributionPoint
+ );
+
+ $this->AuthorityKeyIdentifier = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'keyIdentifier' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $this->KeyIdentifier,
+ 'authorityCertIssuer' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $GeneralNames,
+ 'authorityCertSerialNumber' => array(
+ 'constant' => 2,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $CertificateSerialNumber
+ )
+ );
+
+ $PolicyQualifierId = array('type' => ASN1::TYPE_OBJECT_IDENTIFIER);
+
+ $PolicyQualifierInfo = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'policyQualifierId' => $PolicyQualifierId,
+ 'qualifier' => array('type' => ASN1::TYPE_ANY)
+ )
+ );
+
+ $CertPolicyId = array('type' => ASN1::TYPE_OBJECT_IDENTIFIER);
+
+ $PolicyInformation = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'policyIdentifier' => $CertPolicyId,
+ 'policyQualifiers' => array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 0,
+ 'max' => -1,
+ 'optional' => true,
+ 'children' => $PolicyQualifierInfo
+ )
+ )
+ );
+
+ $this->CertificatePolicies = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $PolicyInformation
+ );
+
+ $this->PolicyMappings = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'issuerDomainPolicy' => $CertPolicyId,
+ 'subjectDomainPolicy' => $CertPolicyId
+ )
+ )
+ );
+
+ $KeyPurposeId = array('type' => ASN1::TYPE_OBJECT_IDENTIFIER);
+
+ $this->ExtKeyUsageSyntax = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $KeyPurposeId
+ );
+
+ $AccessDescription = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'accessMethod' => array('type' => ASN1::TYPE_OBJECT_IDENTIFIER),
+ 'accessLocation' => $GeneralName
+ )
+ );
+
+ $this->AuthorityInfoAccessSyntax = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $AccessDescription
+ );
+
+ $this->SubjectAltName = $GeneralNames;
+
+ $this->PrivateKeyUsagePeriod = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'notBefore' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true,
+ 'type' => ASN1::TYPE_GENERALIZED_TIME),
+ 'notAfter' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true,
+ 'type' => ASN1::TYPE_GENERALIZED_TIME)
+ )
+ );
+
+ $BaseDistance = array('type' => ASN1::TYPE_INTEGER);
+
+ $GeneralSubtree = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'base' => $GeneralName,
+ 'minimum' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true,
+ 'default' => new BigInteger(0)
+ ) + $BaseDistance,
+ 'maximum' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true,
+ ) + $BaseDistance
+ )
+ );
+
+ $GeneralSubtrees = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $GeneralSubtree
+ );
+
+ $this->NameConstraints = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'permittedSubtrees' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $GeneralSubtrees,
+ 'excludedSubtrees' => array(
+ 'constant' => 1,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $GeneralSubtrees
+ )
+ );
+
+ $this->CPSuri = array('type' => ASN1::TYPE_IA5_STRING);
+
+ $DisplayText = array(
+ 'type' => ASN1::TYPE_CHOICE,
+ 'children' => array(
+ 'ia5String' => array('type' => ASN1::TYPE_IA5_STRING),
+ 'visibleString' => array('type' => ASN1::TYPE_VISIBLE_STRING),
+ 'bmpString' => array('type' => ASN1::TYPE_BMP_STRING),
+ 'utf8String' => array('type' => ASN1::TYPE_UTF8_STRING)
+ )
+ );
+
+ $NoticeReference = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'organization' => $DisplayText,
+ 'noticeNumbers' => array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => 200,
+ 'children' => array('type' => ASN1::TYPE_INTEGER)
+ )
+ )
+ );
+
+ $this->UserNotice = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'noticeRef' => array(
+ 'optional' => true,
+ 'implicit' => true
+ ) + $NoticeReference,
+ 'explicitText' => array(
+ 'optional' => true,
+ 'implicit' => true
+ ) + $DisplayText
+ )
+ );
+
+ // mapping is from <http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn3.html>
+ $this->netscape_cert_type = array(
+ 'type' => ASN1::TYPE_BIT_STRING,
+ 'mapping' => array(
+ 'SSLClient',
+ 'SSLServer',
+ 'Email',
+ 'ObjectSigning',
+ 'Reserved',
+ 'SSLCA',
+ 'EmailCA',
+ 'ObjectSigningCA'
+ )
+ );
+
+ $this->netscape_comment = array('type' => ASN1::TYPE_IA5_STRING);
+ $this->netscape_ca_policy_url = array('type' => ASN1::TYPE_IA5_STRING);
+
+ // attribute is used in RFC2986 but we're using the RFC5280 definition
+
+ $Attribute = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'type' => $AttributeType,
+ 'value'=> array(
+ 'type' => ASN1::TYPE_SET,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $this->AttributeValue
+ )
+ )
+ );
+
+ $this->SubjectDirectoryAttributes = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $Attribute
+ );
+
+ // adapted from <http://tools.ietf.org/html/rfc2986>
+
+ $Attributes = array(
+ 'type' => ASN1::TYPE_SET,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $Attribute
+ );
+
+ $CertificationRequestInfo = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'version' => array(
+ 'type' => ASN1::TYPE_INTEGER,
+ 'mapping' => array('v1')
+ ),
+ 'subject' => $this->Name,
+ 'subjectPKInfo' => $SubjectPublicKeyInfo,
+ 'attributes' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $Attributes,
+ )
+ );
+
+ $this->CertificationRequest = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'certificationRequestInfo' => $CertificationRequestInfo,
+ 'signatureAlgorithm' => $AlgorithmIdentifier,
+ 'signature' => array('type' => ASN1::TYPE_BIT_STRING)
+ )
+ );
+
+ $RevokedCertificate = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'userCertificate' => $CertificateSerialNumber,
+ 'revocationDate' => $Time,
+ 'crlEntryExtensions' => array(
+ 'optional' => true
+ ) + $this->Extensions
+ )
+ );
+
+ $TBSCertList = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'version' => array(
+ 'optional' => true,
+ 'default' => 'v1'
+ ) + $Version,
+ 'signature' => $AlgorithmIdentifier,
+ 'issuer' => $this->Name,
+ 'thisUpdate' => $Time,
+ 'nextUpdate' => array(
+ 'optional' => true
+ ) + $Time,
+ 'revokedCertificates' => array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'optional' => true,
+ 'min' => 0,
+ 'max' => -1,
+ 'children' => $RevokedCertificate
+ ),
+ 'crlExtensions' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'explicit' => true
+ ) + $this->Extensions
+ )
+ );
+
+ $this->CertificateList = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'tbsCertList' => $TBSCertList,
+ 'signatureAlgorithm' => $AlgorithmIdentifier,
+ 'signature' => array('type' => ASN1::TYPE_BIT_STRING)
+ )
+ );
+
+ $this->CRLNumber = array('type' => ASN1::TYPE_INTEGER);
+
+ $this->CRLReason = array('type' => ASN1::TYPE_ENUMERATED,
+ 'mapping' => array(
+ 'unspecified',
+ 'keyCompromise',
+ 'cACompromise',
+ 'affiliationChanged',
+ 'superseded',
+ 'cessationOfOperation',
+ 'certificateHold',
+ // Value 7 is not used.
+ 8 => 'removeFromCRL',
+ 'privilegeWithdrawn',
+ 'aACompromise'
+ )
+ );
+
+ $this->IssuingDistributionPoint = array('type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'distributionPoint' => array(
+ 'constant' => 0,
+ 'optional' => true,
+ 'explicit' => true
+ ) + $DistributionPointName,
+ 'onlyContainsUserCerts' => array(
+ 'type' => ASN1::TYPE_BOOLEAN,
+ 'constant' => 1,
+ 'optional' => true,
+ 'default' => false,
+ 'implicit' => true
+ ),
+ 'onlyContainsCACerts' => array(
+ 'type' => ASN1::TYPE_BOOLEAN,
+ 'constant' => 2,
+ 'optional' => true,
+ 'default' => false,
+ 'implicit' => true
+ ),
+ 'onlySomeReasons' => array(
+ 'constant' => 3,
+ 'optional' => true,
+ 'implicit' => true
+ ) + $ReasonFlags,
+ 'indirectCRL' => array(
+ 'type' => ASN1::TYPE_BOOLEAN,
+ 'constant' => 4,
+ 'optional' => true,
+ 'default' => false,
+ 'implicit' => true
+ ),
+ 'onlyContainsAttributeCerts' => array(
+ 'type' => ASN1::TYPE_BOOLEAN,
+ 'constant' => 5,
+ 'optional' => true,
+ 'default' => false,
+ 'implicit' => true
+ )
+ )
+ );
+
+ $this->InvalidityDate = array('type' => ASN1::TYPE_GENERALIZED_TIME);
+
+ $this->CertificateIssuer = $GeneralNames;
+
+ $this->HoldInstructionCode = array('type' => ASN1::TYPE_OBJECT_IDENTIFIER);
+
+ $PublicKeyAndChallenge = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'spki' => $SubjectPublicKeyInfo,
+ 'challenge' => array('type' => ASN1::TYPE_IA5_STRING)
+ )
+ );
+
+ $this->SignedPublicKeyAndChallenge = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'children' => array(
+ 'publicKeyAndChallenge' => $PublicKeyAndChallenge,
+ 'signatureAlgorithm' => $AlgorithmIdentifier,
+ 'signature' => array('type' => ASN1::TYPE_BIT_STRING)
+ )
+ );
+
+ $this->PostalAddress = array(
+ 'type' => ASN1::TYPE_SEQUENCE,
+ 'optional' => true,
+ 'min' => 1,
+ 'max' => -1,
+ 'children' => $this->DirectoryString
+ );
+
+ // OIDs from RFC5280 and those RFCs mentioned in RFC5280#section-4.1.1.2
+ $this->oids = array(
+ '1.3.6.1.5.5.7' => 'id-pkix',
+ '1.3.6.1.5.5.7.1' => 'id-pe',
+ '1.3.6.1.5.5.7.2' => 'id-qt',
+ '1.3.6.1.5.5.7.3' => 'id-kp',
+ '1.3.6.1.5.5.7.48' => 'id-ad',
+ '1.3.6.1.5.5.7.2.1' => 'id-qt-cps',
+ '1.3.6.1.5.5.7.2.2' => 'id-qt-unotice',
+ '1.3.6.1.5.5.7.48.1' =>'id-ad-ocsp',
+ '1.3.6.1.5.5.7.48.2' => 'id-ad-caIssuers',
+ '1.3.6.1.5.5.7.48.3' => 'id-ad-timeStamping',
+ '1.3.6.1.5.5.7.48.5' => 'id-ad-caRepository',
+ '2.5.4' => 'id-at',
+ '2.5.4.41' => 'id-at-name',
+ '2.5.4.4' => 'id-at-surname',
+ '2.5.4.42' => 'id-at-givenName',
+ '2.5.4.43' => 'id-at-initials',
+ '2.5.4.44' => 'id-at-generationQualifier',
+ '2.5.4.3' => 'id-at-commonName',
+ '2.5.4.7' => 'id-at-localityName',
+ '2.5.4.8' => 'id-at-stateOrProvinceName',
+ '2.5.4.10' => 'id-at-organizationName',
+ '2.5.4.11' => 'id-at-organizationalUnitName',
+ '2.5.4.12' => 'id-at-title',
+ '2.5.4.13' => 'id-at-description',
+ '2.5.4.46' => 'id-at-dnQualifier',
+ '2.5.4.6' => 'id-at-countryName',
+ '2.5.4.5' => 'id-at-serialNumber',
+ '2.5.4.65' => 'id-at-pseudonym',
+ '2.5.4.17' => 'id-at-postalCode',
+ '2.5.4.9' => 'id-at-streetAddress',
+ '2.5.4.45' => 'id-at-uniqueIdentifier',
+ '2.5.4.72' => 'id-at-role',
+ '2.5.4.16' => 'id-at-postalAddress',
+
+ '0.9.2342.19200300.100.1.25' => 'id-domainComponent',
+ '1.2.840.113549.1.9' => 'pkcs-9',
+ '1.2.840.113549.1.9.1' => 'pkcs-9-at-emailAddress',
+ '2.5.29' => 'id-ce',
+ '2.5.29.35' => 'id-ce-authorityKeyIdentifier',
+ '2.5.29.14' => 'id-ce-subjectKeyIdentifier',
+ '2.5.29.15' => 'id-ce-keyUsage',
+ '2.5.29.16' => 'id-ce-privateKeyUsagePeriod',
+ '2.5.29.32' => 'id-ce-certificatePolicies',
+ '2.5.29.32.0' => 'anyPolicy',
+
+ '2.5.29.33' => 'id-ce-policyMappings',
+ '2.5.29.17' => 'id-ce-subjectAltName',
+ '2.5.29.18' => 'id-ce-issuerAltName',
+ '2.5.29.9' => 'id-ce-subjectDirectoryAttributes',
+ '2.5.29.19' => 'id-ce-basicConstraints',
+ '2.5.29.30' => 'id-ce-nameConstraints',
+ '2.5.29.36' => 'id-ce-policyConstraints',
+ '2.5.29.31' => 'id-ce-cRLDistributionPoints',
+ '2.5.29.37' => 'id-ce-extKeyUsage',
+ '2.5.29.37.0' => 'anyExtendedKeyUsage',
+ '1.3.6.1.5.5.7.3.1' => 'id-kp-serverAuth',
+ '1.3.6.1.5.5.7.3.2' => 'id-kp-clientAuth',
+ '1.3.6.1.5.5.7.3.3' => 'id-kp-codeSigning',
+ '1.3.6.1.5.5.7.3.4' => 'id-kp-emailProtection',
+ '1.3.6.1.5.5.7.3.8' => 'id-kp-timeStamping',
+ '1.3.6.1.5.5.7.3.9' => 'id-kp-OCSPSigning',
+ '2.5.29.54' => 'id-ce-inhibitAnyPolicy',
+ '2.5.29.46' => 'id-ce-freshestCRL',
+ '1.3.6.1.5.5.7.1.1' => 'id-pe-authorityInfoAccess',
+ '1.3.6.1.5.5.7.1.11' => 'id-pe-subjectInfoAccess',
+ '2.5.29.20' => 'id-ce-cRLNumber',
+ '2.5.29.28' => 'id-ce-issuingDistributionPoint',
+ '2.5.29.27' => 'id-ce-deltaCRLIndicator',
+ '2.5.29.21' => 'id-ce-cRLReasons',
+ '2.5.29.29' => 'id-ce-certificateIssuer',
+ '2.5.29.23' => 'id-ce-holdInstructionCode',
+ '1.2.840.10040.2' => 'holdInstruction',
+ '1.2.840.10040.2.1' => 'id-holdinstruction-none',
+ '1.2.840.10040.2.2' => 'id-holdinstruction-callissuer',
+ '1.2.840.10040.2.3' => 'id-holdinstruction-reject',
+ '2.5.29.24' => 'id-ce-invalidityDate',
+
+ '1.2.840.113549.2.2' => 'md2',
+ '1.2.840.113549.2.5' => 'md5',
+ '1.3.14.3.2.26' => 'id-sha1',
+ '1.2.840.10040.4.1' => 'id-dsa',
+ '1.2.840.10040.4.3' => 'id-dsa-with-sha1',
+ '1.2.840.113549.1.1' => 'pkcs-1',
+ '1.2.840.113549.1.1.1' => 'rsaEncryption',
+ '1.2.840.113549.1.1.2' => 'md2WithRSAEncryption',
+ '1.2.840.113549.1.1.4' => 'md5WithRSAEncryption',
+ '1.2.840.113549.1.1.5' => 'sha1WithRSAEncryption',
+ '1.2.840.10046.2.1' => 'dhpublicnumber',
+ '2.16.840.1.101.2.1.1.22' => 'id-keyExchangeAlgorithm',
+ '1.2.840.10045' => 'ansi-X9-62',
+ '1.2.840.10045.4' => 'id-ecSigType',
+ '1.2.840.10045.4.1' => 'ecdsa-with-SHA1',
+ '1.2.840.10045.1' => 'id-fieldType',
+ '1.2.840.10045.1.1' => 'prime-field',
+ '1.2.840.10045.1.2' => 'characteristic-two-field',
+ '1.2.840.10045.1.2.3' => 'id-characteristic-two-basis',
+ '1.2.840.10045.1.2.3.1' => 'gnBasis',
+ '1.2.840.10045.1.2.3.2' => 'tpBasis',
+ '1.2.840.10045.1.2.3.3' => 'ppBasis',
+ '1.2.840.10045.2' => 'id-publicKeyType',
+ '1.2.840.10045.2.1' => 'id-ecPublicKey',
+ '1.2.840.10045.3' => 'ellipticCurve',
+ '1.2.840.10045.3.0' => 'c-TwoCurve',
+ '1.2.840.10045.3.0.1' => 'c2pnb163v1',
+ '1.2.840.10045.3.0.2' => 'c2pnb163v2',
+ '1.2.840.10045.3.0.3' => 'c2pnb163v3',
+ '1.2.840.10045.3.0.4' => 'c2pnb176w1',
+ '1.2.840.10045.3.0.5' => 'c2pnb191v1',
+ '1.2.840.10045.3.0.6' => 'c2pnb191v2',
+ '1.2.840.10045.3.0.7' => 'c2pnb191v3',
+ '1.2.840.10045.3.0.8' => 'c2pnb191v4',
+ '1.2.840.10045.3.0.9' => 'c2pnb191v5',
+ '1.2.840.10045.3.0.10' => 'c2pnb208w1',
+ '1.2.840.10045.3.0.11' => 'c2pnb239v1',
+ '1.2.840.10045.3.0.12' => 'c2pnb239v2',
+ '1.2.840.10045.3.0.13' => 'c2pnb239v3',
+ '1.2.840.10045.3.0.14' => 'c2pnb239v4',
+ '1.2.840.10045.3.0.15' => 'c2pnb239v5',
+ '1.2.840.10045.3.0.16' => 'c2pnb272w1',
+ '1.2.840.10045.3.0.17' => 'c2pnb304w1',
+ '1.2.840.10045.3.0.18' => 'c2pnb359v1',
+ '1.2.840.10045.3.0.19' => 'c2pnb368w1',
+ '1.2.840.10045.3.0.20' => 'c2pnb431r1',
+ '1.2.840.10045.3.1' => 'primeCurve',
+ '1.2.840.10045.3.1.1' => 'prime192v1',
+ '1.2.840.10045.3.1.2' => 'prime192v2',
+ '1.2.840.10045.3.1.3' => 'prime192v3',
+ '1.2.840.10045.3.1.4' => 'prime239v1',
+ '1.2.840.10045.3.1.5' => 'prime239v2',
+ '1.2.840.10045.3.1.6' => 'prime239v3',
+ '1.2.840.10045.3.1.7' => 'prime256v1',
+ '1.2.840.113549.1.1.7' => 'id-RSAES-OAEP',
+ '1.2.840.113549.1.1.9' => 'id-pSpecified',
+ '1.2.840.113549.1.1.10' => 'id-RSASSA-PSS',
+ '1.2.840.113549.1.1.8' => 'id-mgf1',
+ '1.2.840.113549.1.1.14' => 'sha224WithRSAEncryption',
+ '1.2.840.113549.1.1.11' => 'sha256WithRSAEncryption',
+ '1.2.840.113549.1.1.12' => 'sha384WithRSAEncryption',
+ '1.2.840.113549.1.1.13' => 'sha512WithRSAEncryption',
+ '2.16.840.1.101.3.4.2.4' => 'id-sha224',
+ '2.16.840.1.101.3.4.2.1' => 'id-sha256',
+ '2.16.840.1.101.3.4.2.2' => 'id-sha384',
+ '2.16.840.1.101.3.4.2.3' => 'id-sha512',
+ '1.2.643.2.2.4' => 'id-GostR3411-94-with-GostR3410-94',
+ '1.2.643.2.2.3' => 'id-GostR3411-94-with-GostR3410-2001',
+ '1.2.643.2.2.20' => 'id-GostR3410-2001',
+ '1.2.643.2.2.19' => 'id-GostR3410-94',
+ // Netscape Object Identifiers from "Netscape Certificate Extensions"
+ '2.16.840.1.113730' => 'netscape',
+ '2.16.840.1.113730.1' => 'netscape-cert-extension',
+ '2.16.840.1.113730.1.1' => 'netscape-cert-type',
+ '2.16.840.1.113730.1.13' => 'netscape-comment',
+ '2.16.840.1.113730.1.8' => 'netscape-ca-policy-url',
+ // the following are X.509 extensions not supported by phpseclib
+ '1.3.6.1.5.5.7.1.12' => 'id-pe-logotype',
+ '1.2.840.113533.7.65.0' => 'entrustVersInfo',
+ '2.16.840.1.113733.1.6.9' => 'verisignPrivate',
+ // for Certificate Signing Requests
+ // see http://tools.ietf.org/html/rfc2985
+ '1.2.840.113549.1.9.2' => 'pkcs-9-at-unstructuredName', // PKCS #9 unstructured name
+ '1.2.840.113549.1.9.7' => 'pkcs-9-at-challengePassword', // Challenge password for certificate revocations
+ '1.2.840.113549.1.9.14' => 'pkcs-9-at-extensionRequest' // Certificate extension request
+ );
+ }
+
+ /**
+ * Load X.509 certificate
+ *
+ * Returns an associative array describing the X.509 cert or a false if the cert failed to load
+ *
+ * @param string $cert
+ * @param int $mode
+ * @access public
+ * @return mixed
+ */
+ function loadX509($cert, $mode = self::FORMAT_AUTO_DETECT)
+ {
+ if (is_array($cert) && isset($cert['tbsCertificate'])) {
+ unset($this->currentCert);
+ unset($this->currentKeyIdentifier);
+ $this->dn = $cert['tbsCertificate']['subject'];
+ if (!isset($this->dn)) {
+ return false;
+ }
+ $this->currentCert = $cert;
+
+ $currentKeyIdentifier = $this->getExtension('id-ce-subjectKeyIdentifier');
+ $this->currentKeyIdentifier = is_string($currentKeyIdentifier) ? $currentKeyIdentifier : null;
+
+ unset($this->signatureSubject);
+
+ return $cert;
+ }
+
+ $asn1 = new ASN1();
+
+ if ($mode != self::FORMAT_DER) {
+ $newcert = $this->_extractBER($cert);
+ if ($mode == self::FORMAT_PEM && $cert == $newcert) {
+ return false;
+ }
+ $cert = $newcert;
+ }
+
+ if ($cert === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $asn1->loadOIDs($this->oids);
+ $decoded = $asn1->decodeBER($cert);
+
+ if (!empty($decoded)) {
+ $x509 = $asn1->asn1map($decoded[0], $this->Certificate);
+ }
+ if (!isset($x509) || $x509 === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $this->signatureSubject = substr($cert, $decoded[0]['content'][0]['start'], $decoded[0]['content'][0]['length']);
+
+ if ($this->_isSubArrayValid($x509, 'tbsCertificate/extensions')) {
+ $this->_mapInExtensions($x509, 'tbsCertificate/extensions', $asn1);
+ }
+ $this->_mapInDNs($x509, 'tbsCertificate/issuer/rdnSequence', $asn1);
+ $this->_mapInDNs($x509, 'tbsCertificate/subject/rdnSequence', $asn1);
+
+ $key = &$x509['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey'];
+ $key = $this->_reformatKey($x509['tbsCertificate']['subjectPublicKeyInfo']['algorithm']['algorithm'], $key);
+
+ $this->currentCert = $x509;
+ $this->dn = $x509['tbsCertificate']['subject'];
+
+ $currentKeyIdentifier = $this->getExtension('id-ce-subjectKeyIdentifier');
+ $this->currentKeyIdentifier = is_string($currentKeyIdentifier) ? $currentKeyIdentifier : null;
+
+ return $x509;
+ }
+
+ /**
+ * Save X.509 certificate
+ *
+ * @param array $cert
+ * @param int $format optional
+ * @access public
+ * @return string
+ */
+ function saveX509($cert, $format = self::FORMAT_PEM)
+ {
+ if (!is_array($cert) || !isset($cert['tbsCertificate'])) {
+ return false;
+ }
+
+ switch (true) {
+ // "case !$a: case !$b: break; default: whatever();" is the same thing as "if ($a && $b) whatever()"
+ case !($algorithm = $this->_subArray($cert, 'tbsCertificate/subjectPublicKeyInfo/algorithm/algorithm')):
+ case is_object($cert['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey']):
+ break;
+ default:
+ switch ($algorithm) {
+ case 'rsaEncryption':
+ $cert['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey']
+ = base64_encode("\0" . base64_decode(preg_replace('#-.+-|[\r\n]#', '', $cert['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey'])));
+ /* "[For RSA keys] the parameters field MUST have ASN.1 type NULL for this algorithm identifier."
+ -- https://tools.ietf.org/html/rfc3279#section-2.3.1
+
+ given that and the fact that RSA keys appear ot be the only key type for which the parameters field can be blank,
+ it seems like perhaps the ASN.1 description ought not say the parameters field is OPTIONAL, but whatever.
+ */
+ $cert['tbsCertificate']['subjectPublicKeyInfo']['algorithm']['parameters'] = null;
+ // https://tools.ietf.org/html/rfc3279#section-2.2.1
+ $cert['signatureAlgorithm']['parameters'] = null;
+ $cert['tbsCertificate']['signature']['parameters'] = null;
+ }
+ }
+
+ $asn1 = new ASN1();
+ $asn1->loadOIDs($this->oids);
+
+ $filters = array();
+ $type_utf8_string = array('type' => ASN1::TYPE_UTF8_STRING);
+ $filters['tbsCertificate']['signature']['parameters'] = $type_utf8_string;
+ $filters['tbsCertificate']['signature']['issuer']['rdnSequence']['value'] = $type_utf8_string;
+ $filters['tbsCertificate']['issuer']['rdnSequence']['value'] = $type_utf8_string;
+ $filters['tbsCertificate']['subject']['rdnSequence']['value'] = $type_utf8_string;
+ $filters['tbsCertificate']['subjectPublicKeyInfo']['algorithm']['parameters'] = $type_utf8_string;
+ $filters['signatureAlgorithm']['parameters'] = $type_utf8_string;
+ $filters['authorityCertIssuer']['directoryName']['rdnSequence']['value'] = $type_utf8_string;
+ //$filters['policyQualifiers']['qualifier'] = $type_utf8_string;
+ $filters['distributionPoint']['fullName']['directoryName']['rdnSequence']['value'] = $type_utf8_string;
+ $filters['directoryName']['rdnSequence']['value'] = $type_utf8_string;
+
+ /* in the case of policyQualifiers/qualifier, the type has to be \phpseclib\File\ASN1::TYPE_IA5_STRING.
+ \phpseclib\File\ASN1::TYPE_PRINTABLE_STRING will cause OpenSSL's X.509 parser to spit out random
+ characters.
+ */
+ $filters['policyQualifiers']['qualifier']
+ = array('type' => ASN1::TYPE_IA5_STRING);
+
+ $asn1->loadFilters($filters);
+
+ $this->_mapOutExtensions($cert, 'tbsCertificate/extensions', $asn1);
+ $this->_mapOutDNs($cert, 'tbsCertificate/issuer/rdnSequence', $asn1);
+ $this->_mapOutDNs($cert, 'tbsCertificate/subject/rdnSequence', $asn1);
+
+ $cert = $asn1->encodeDER($cert, $this->Certificate);
+
+ switch ($format) {
+ case self::FORMAT_DER:
+ return $cert;
+ // case self::FORMAT_PEM:
+ default:
+ return "-----BEGIN CERTIFICATE-----\r\n" . chunk_split(base64_encode($cert), 64) . '-----END CERTIFICATE-----';
+ }
+ }
+
+ /**
+ * Map extension values from octet string to extension-specific internal
+ * format.
+ *
+ * @param array ref $root
+ * @param string $path
+ * @param object $asn1
+ * @access private
+ */
+ function _mapInExtensions(&$root, $path, $asn1)
+ {
+ $extensions = &$this->_subArrayUnchecked($root, $path);
+
+ if ($extensions) {
+ for ($i = 0; $i < count($extensions); $i++) {
+ $id = $extensions[$i]['extnId'];
+ $value = &$extensions[$i]['extnValue'];
+ $value = base64_decode($value);
+ $decoded = $asn1->decodeBER($value);
+ /* [extnValue] contains the DER encoding of an ASN.1 value
+ corresponding to the extension type identified by extnID */
+ $map = $this->_getMapping($id);
+ if (!is_bool($map)) {
+ $mapped = $asn1->asn1map($decoded[0], $map, array('iPAddress' => array($this, '_decodeIP')));
+ $value = $mapped === false ? $decoded[0] : $mapped;
+
+ if ($id == 'id-ce-certificatePolicies') {
+ for ($j = 0; $j < count($value); $j++) {
+ if (!isset($value[$j]['policyQualifiers'])) {
+ continue;
+ }
+ for ($k = 0; $k < count($value[$j]['policyQualifiers']); $k++) {
+ $subid = $value[$j]['policyQualifiers'][$k]['policyQualifierId'];
+ $map = $this->_getMapping($subid);
+ $subvalue = &$value[$j]['policyQualifiers'][$k]['qualifier'];
+ if ($map !== false) {
+ $decoded = $asn1->decodeBER($subvalue);
+ $mapped = $asn1->asn1map($decoded[0], $map);
+ $subvalue = $mapped === false ? $decoded[0] : $mapped;
+ }
+ }
+ }
+ }
+ } else {
+ $value = base64_encode($value);
+ }
+ }
+ }
+ }
+
+ /**
+ * Map extension values from extension-specific internal format to
+ * octet string.
+ *
+ * @param array ref $root
+ * @param string $path
+ * @param object $asn1
+ * @access private
+ */
+ function _mapOutExtensions(&$root, $path, $asn1)
+ {
+ $extensions = &$this->_subArray($root, $path);
+
+ if (is_array($extensions)) {
+ $size = count($extensions);
+ for ($i = 0; $i < $size; $i++) {
+ if ($extensions[$i] instanceof Element) {
+ continue;
+ }
+
+ $id = $extensions[$i]['extnId'];
+ $value = &$extensions[$i]['extnValue'];
+
+ switch ($id) {
+ case 'id-ce-certificatePolicies':
+ for ($j = 0; $j < count($value); $j++) {
+ if (!isset($value[$j]['policyQualifiers'])) {
+ continue;
+ }
+ for ($k = 0; $k < count($value[$j]['policyQualifiers']); $k++) {
+ $subid = $value[$j]['policyQualifiers'][$k]['policyQualifierId'];
+ $map = $this->_getMapping($subid);
+ $subvalue = &$value[$j]['policyQualifiers'][$k]['qualifier'];
+ if ($map !== false) {
+ // by default \phpseclib\File\ASN1 will try to render qualifier as a \phpseclib\File\ASN1::TYPE_IA5_STRING since it's
+ // actual type is \phpseclib\File\ASN1::TYPE_ANY
+ $subvalue = new Element($asn1->encodeDER($subvalue, $map));
+ }
+ }
+ }
+ break;
+ case 'id-ce-authorityKeyIdentifier': // use 00 as the serial number instead of an empty string
+ if (isset($value['authorityCertSerialNumber'])) {
+ if ($value['authorityCertSerialNumber']->toBytes() == '') {
+ $temp = chr((ASN1::CLASS_CONTEXT_SPECIFIC << 6) | 2) . "\1\0";
+ $value['authorityCertSerialNumber'] = new Element($temp);
+ }
+ }
+ }
+
+ /* [extnValue] contains the DER encoding of an ASN.1 value
+ corresponding to the extension type identified by extnID */
+ $map = $this->_getMapping($id);
+ if (is_bool($map)) {
+ if (!$map) {
+ user_error($id . ' is not a currently supported extension');
+ unset($extensions[$i]);
+ }
+ } else {
+ $temp = $asn1->encodeDER($value, $map, array('iPAddress' => array($this, '_encodeIP')));
+ $value = base64_encode($temp);
+ }
+ }
+ }
+ }
+
+ /**
+ * Map attribute values from ANY type to attribute-specific internal
+ * format.
+ *
+ * @param array ref $root
+ * @param string $path
+ * @param object $asn1
+ * @access private
+ */
+ function _mapInAttributes(&$root, $path, $asn1)
+ {
+ $attributes = &$this->_subArray($root, $path);
+
+ if (is_array($attributes)) {
+ for ($i = 0; $i < count($attributes); $i++) {
+ $id = $attributes[$i]['type'];
+ /* $value contains the DER encoding of an ASN.1 value
+ corresponding to the attribute type identified by type */
+ $map = $this->_getMapping($id);
+ if (is_array($attributes[$i]['value'])) {
+ $values = &$attributes[$i]['value'];
+ for ($j = 0; $j < count($values); $j++) {
+ $value = $asn1->encodeDER($values[$j], $this->AttributeValue);
+ $decoded = $asn1->decodeBER($value);
+ if (!is_bool($map)) {
+ $mapped = $asn1->asn1map($decoded[0], $map);
+ if ($mapped !== false) {
+ $values[$j] = $mapped;
+ }
+ if ($id == 'pkcs-9-at-extensionRequest' && $this->_isSubArrayValid($values, $j)) {
+ $this->_mapInExtensions($values, $j, $asn1);
+ }
+ } elseif ($map) {
+ $values[$j] = base64_encode($value);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Map attribute values from attribute-specific internal format to
+ * ANY type.
+ *
+ * @param array ref $root
+ * @param string $path
+ * @param object $asn1
+ * @access private
+ */
+ function _mapOutAttributes(&$root, $path, $asn1)
+ {
+ $attributes = &$this->_subArray($root, $path);
+
+ if (is_array($attributes)) {
+ $size = count($attributes);
+ for ($i = 0; $i < $size; $i++) {
+ /* [value] contains the DER encoding of an ASN.1 value
+ corresponding to the attribute type identified by type */
+ $id = $attributes[$i]['type'];
+ $map = $this->_getMapping($id);
+ if ($map === false) {
+ user_error($id . ' is not a currently supported attribute', E_USER_NOTICE);
+ unset($attributes[$i]);
+ } elseif (is_array($attributes[$i]['value'])) {
+ $values = &$attributes[$i]['value'];
+ for ($j = 0; $j < count($values); $j++) {
+ switch ($id) {
+ case 'pkcs-9-at-extensionRequest':
+ $this->_mapOutExtensions($values, $j, $asn1);
+ break;
+ }
+
+ if (!is_bool($map)) {
+ $temp = $asn1->encodeDER($values[$j], $map);
+ $decoded = $asn1->decodeBER($temp);
+ $values[$j] = $asn1->asn1map($decoded[0], $this->AttributeValue);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Map DN values from ANY type to DN-specific internal
+ * format.
+ *
+ * @param array ref $root
+ * @param string $path
+ * @param object $asn1
+ * @access private
+ */
+ function _mapInDNs(&$root, $path, $asn1)
+ {
+ $dns = &$this->_subArray($root, $path);
+
+ if (is_array($dns)) {
+ for ($i = 0; $i < count($dns); $i++) {
+ for ($j = 0; $j < count($dns[$i]); $j++) {
+ $type = $dns[$i][$j]['type'];
+ $value = &$dns[$i][$j]['value'];
+ if (is_object($value) && $value instanceof Element) {
+ $map = $this->_getMapping($type);
+ if (!is_bool($map)) {
+ $decoded = $asn1->decodeBER($value);
+ $value = $asn1->asn1map($decoded[0], $map);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Map DN values from DN-specific internal format to
+ * ANY type.
+ *
+ * @param array ref $root
+ * @param string $path
+ * @param object $asn1
+ * @access private
+ */
+ function _mapOutDNs(&$root, $path, $asn1)
+ {
+ $dns = &$this->_subArray($root, $path);
+
+ if (is_array($dns)) {
+ $size = count($dns);
+ for ($i = 0; $i < $size; $i++) {
+ for ($j = 0; $j < count($dns[$i]); $j++) {
+ $type = $dns[$i][$j]['type'];
+ $value = &$dns[$i][$j]['value'];
+ if (is_object($value) && $value instanceof Element) {
+ continue;
+ }
+
+ $map = $this->_getMapping($type);
+ if (!is_bool($map)) {
+ $value = new Element($asn1->encodeDER($value, $map));
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Associate an extension ID to an extension mapping
+ *
+ * @param string $extnId
+ * @access private
+ * @return mixed
+ */
+ function _getMapping($extnId)
+ {
+ if (!is_string($extnId)) { // eg. if it's a \phpseclib\File\ASN1\Element object
+ return true;
+ }
+
+ switch ($extnId) {
+ case 'id-ce-keyUsage':
+ return $this->KeyUsage;
+ case 'id-ce-basicConstraints':
+ return $this->BasicConstraints;
+ case 'id-ce-subjectKeyIdentifier':
+ return $this->KeyIdentifier;
+ case 'id-ce-cRLDistributionPoints':
+ return $this->CRLDistributionPoints;
+ case 'id-ce-authorityKeyIdentifier':
+ return $this->AuthorityKeyIdentifier;
+ case 'id-ce-certificatePolicies':
+ return $this->CertificatePolicies;
+ case 'id-ce-extKeyUsage':
+ return $this->ExtKeyUsageSyntax;
+ case 'id-pe-authorityInfoAccess':
+ return $this->AuthorityInfoAccessSyntax;
+ case 'id-ce-subjectAltName':
+ return $this->SubjectAltName;
+ case 'id-ce-subjectDirectoryAttributes':
+ return $this->SubjectDirectoryAttributes;
+ case 'id-ce-privateKeyUsagePeriod':
+ return $this->PrivateKeyUsagePeriod;
+ case 'id-ce-issuerAltName':
+ return $this->IssuerAltName;
+ case 'id-ce-policyMappings':
+ return $this->PolicyMappings;
+ case 'id-ce-nameConstraints':
+ return $this->NameConstraints;
+
+ case 'netscape-cert-type':
+ return $this->netscape_cert_type;
+ case 'netscape-comment':
+ return $this->netscape_comment;
+ case 'netscape-ca-policy-url':
+ return $this->netscape_ca_policy_url;
+
+ // since id-qt-cps isn't a constructed type it will have already been decoded as a string by the time it gets
+ // back around to asn1map() and we don't want it decoded again.
+ //case 'id-qt-cps':
+ // return $this->CPSuri;
+ case 'id-qt-unotice':
+ return $this->UserNotice;
+
+ // the following OIDs are unsupported but we don't want them to give notices when calling saveX509().
+ case 'id-pe-logotype': // http://www.ietf.org/rfc/rfc3709.txt
+ case 'entrustVersInfo':
+ // http://support.microsoft.com/kb/287547
+ case '1.3.6.1.4.1.311.20.2': // szOID_ENROLL_CERTTYPE_EXTENSION
+ case '1.3.6.1.4.1.311.21.1': // szOID_CERTSRV_CA_VERSION
+ // "SET Secure Electronic Transaction Specification"
+ // http://www.maithean.com/docs/set_bk3.pdf
+ case '2.23.42.7.0': // id-set-hashedRootKey
+ // "Certificate Transparency"
+ // https://tools.ietf.org/html/rfc6962
+ case '1.3.6.1.4.1.11129.2.4.2':
+ return true;
+
+ // CSR attributes
+ case 'pkcs-9-at-unstructuredName':
+ return $this->PKCS9String;
+ case 'pkcs-9-at-challengePassword':
+ return $this->DirectoryString;
+ case 'pkcs-9-at-extensionRequest':
+ return $this->Extensions;
+
+ // CRL extensions.
+ case 'id-ce-cRLNumber':
+ return $this->CRLNumber;
+ case 'id-ce-deltaCRLIndicator':
+ return $this->CRLNumber;
+ case 'id-ce-issuingDistributionPoint':
+ return $this->IssuingDistributionPoint;
+ case 'id-ce-freshestCRL':
+ return $this->CRLDistributionPoints;
+ case 'id-ce-cRLReasons':
+ return $this->CRLReason;
+ case 'id-ce-invalidityDate':
+ return $this->InvalidityDate;
+ case 'id-ce-certificateIssuer':
+ return $this->CertificateIssuer;
+ case 'id-ce-holdInstructionCode':
+ return $this->HoldInstructionCode;
+ case 'id-at-postalAddress':
+ return $this->PostalAddress;
+ }
+
+ return false;
+ }
+
+ /**
+ * Load an X.509 certificate as a certificate authority
+ *
+ * @param string $cert
+ * @access public
+ * @return bool
+ */
+ function loadCA($cert)
+ {
+ $olddn = $this->dn;
+ $oldcert = $this->currentCert;
+ $oldsigsubj = $this->signatureSubject;
+ $oldkeyid = $this->currentKeyIdentifier;
+
+ $cert = $this->loadX509($cert);
+ if (!$cert) {
+ $this->dn = $olddn;
+ $this->currentCert = $oldcert;
+ $this->signatureSubject = $oldsigsubj;
+ $this->currentKeyIdentifier = $oldkeyid;
+
+ return false;
+ }
+
+ /* From RFC5280 "PKIX Certificate and CRL Profile":
+
+ If the keyUsage extension is present, then the subject public key
+ MUST NOT be used to verify signatures on certificates or CRLs unless
+ the corresponding keyCertSign or cRLSign bit is set. */
+ //$keyUsage = $this->getExtension('id-ce-keyUsage');
+ //if ($keyUsage && !in_array('keyCertSign', $keyUsage)) {
+ // return false;
+ //}
+
+ /* From RFC5280 "PKIX Certificate and CRL Profile":
+
+ The cA boolean indicates whether the certified public key may be used
+ to verify certificate signatures. If the cA boolean is not asserted,
+ then the keyCertSign bit in the key usage extension MUST NOT be
+ asserted. If the basic constraints extension is not present in a
+ version 3 certificate, or the extension is present but the cA boolean
+ is not asserted, then the certified public key MUST NOT be used to
+ verify certificate signatures. */
+ //$basicConstraints = $this->getExtension('id-ce-basicConstraints');
+ //if (!$basicConstraints || !$basicConstraints['cA']) {
+ // return false;
+ //}
+
+ $this->CAs[] = $cert;
+
+ $this->dn = $olddn;
+ $this->currentCert = $oldcert;
+ $this->signatureSubject = $oldsigsubj;
+
+ return true;
+ }
+
+ /**
+ * Validate an X.509 certificate against a URL
+ *
+ * From RFC2818 "HTTP over TLS":
+ *
+ * Matching is performed using the matching rules specified by
+ * [RFC2459]. If more than one identity of a given type is present in
+ * the certificate (e.g., more than one dNSName name, a match in any one
+ * of the set is considered acceptable.) Names may contain the wildcard
+ * character * which is considered to match any single domain name
+ * component or component fragment. E.g., *.a.com matches foo.a.com but
+ * not bar.foo.a.com. f*.com matches foo.com but not bar.com.
+ *
+ * @param string $url
+ * @access public
+ * @return bool
+ */
+ function validateURL($url)
+ {
+ if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
+ return false;
+ }
+
+ $components = parse_url($url);
+ if (!isset($components['host'])) {
+ return false;
+ }
+
+ if ($names = $this->getExtension('id-ce-subjectAltName')) {
+ foreach ($names as $key => $value) {
+ $value = str_replace(array('.', '*'), array('\.', '[^.]*'), $value);
+ switch ($key) {
+ case 'dNSName':
+ /* From RFC2818 "HTTP over TLS":
+
+ If a subjectAltName extension of type dNSName is present, that MUST
+ be used as the identity. Otherwise, the (most specific) Common Name
+ field in the Subject field of the certificate MUST be used. Although
+ the use of the Common Name is existing practice, it is deprecated and
+ Certification Authorities are encouraged to use the dNSName instead. */
+ if (preg_match('#^' . $value . '$#', $components['host'])) {
+ return true;
+ }
+ break;
+ case 'iPAddress':
+ /* From RFC2818 "HTTP over TLS":
+
+ In some cases, the URI is specified as an IP address rather than a
+ hostname. In this case, the iPAddress subjectAltName must be present
+ in the certificate and must exactly match the IP in the URI. */
+ if (preg_match('#(?:\d{1-3}\.){4}#', $components['host'] . '.') && preg_match('#^' . $value . '$#', $components['host'])) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ if ($value = $this->getDNProp('id-at-commonName')) {
+ $value = str_replace(array('.', '*'), array('\.', '[^.]*'), $value[0]);
+ return preg_match('#^' . $value . '$#', $components['host']);
+ }
+
+ return false;
+ }
+
+ /**
+ * Validate a date
+ *
+ * If $date isn't defined it is assumed to be the current date.
+ *
+ * @param int $date optional
+ * @access public
+ */
+ function validateDate($date = null)
+ {
+ if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
+ return false;
+ }
+
+ if (!isset($date)) {
+ $date = time();
+ }
+
+ $notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore'];
+ $notBefore = isset($notBefore['generalTime']) ? $notBefore['generalTime'] : $notBefore['utcTime'];
+
+ $notAfter = $this->currentCert['tbsCertificate']['validity']['notAfter'];
+ $notAfter = isset($notAfter['generalTime']) ? $notAfter['generalTime'] : $notAfter['utcTime'];
+
+ switch (true) {
+ case $date < @strtotime($notBefore):
+ case $date > @strtotime($notAfter):
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Validate a signature
+ *
+ * Works on X.509 certs, CSR's and CRL's.
+ * Returns true if the signature is verified, false if it is not correct or null on error
+ *
+ * By default returns false for self-signed certs. Call validateSignature(false) to make this support
+ * self-signed.
+ *
+ * The behavior of this function is inspired by {@link http://php.net/openssl-verify openssl_verify}.
+ *
+ * @param bool $caonly optional
+ * @access public
+ * @return mixed
+ */
+ function validateSignature($caonly = true)
+ {
+ if (!is_array($this->currentCert) || !isset($this->signatureSubject)) {
+ return null;
+ }
+
+ /* TODO:
+ "emailAddress attribute values are not case-sensitive (e.g., "subscriber@example.com" is the same as "SUBSCRIBER@EXAMPLE.COM")."
+ -- http://tools.ietf.org/html/rfc5280#section-4.1.2.6
+
+ implement pathLenConstraint in the id-ce-basicConstraints extension */
+
+ switch (true) {
+ case isset($this->currentCert['tbsCertificate']):
+ // self-signed cert
+ switch (true) {
+ case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertificate']['issuer'] === $this->currentCert['tbsCertificate']['subject']:
+ case defined('FILE_X509_IGNORE_TYPE') && $this->getIssuerDN(self::DN_STRING) === $this->getDN(self::DN_STRING):
+ $authorityKey = $this->getExtension('id-ce-authorityKeyIdentifier');
+ $subjectKeyID = $this->getExtension('id-ce-subjectKeyIdentifier');
+ switch (true) {
+ case !is_array($authorityKey):
+ case is_array($authorityKey) && isset($authorityKey['keyIdentifier']) && $authorityKey['keyIdentifier'] === $subjectKeyID:
+ $signingCert = $this->currentCert; // working cert
+ }
+ }
+
+ if (!empty($this->CAs)) {
+ for ($i = 0; $i < count($this->CAs); $i++) {
+ // even if the cert is a self-signed one we still want to see if it's a CA;
+ // if not, we'll conditionally return an error
+ $ca = $this->CAs[$i];
+ switch (true) {
+ case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertificate']['issuer'] === $ca['tbsCertificate']['subject']:
+ case defined('FILE_X509_IGNORE_TYPE') && $this->getDN(self::DN_STRING, $this->currentCert['tbsCertificate']['issuer']) === $this->getDN(self::DN_STRING, $ca['tbsCertificate']['subject']):
+ $authorityKey = $this->getExtension('id-ce-authorityKeyIdentifier');
+ $subjectKeyID = $this->getExtension('id-ce-subjectKeyIdentifier', $ca);
+ switch (true) {
+ case !is_array($authorityKey):
+ case is_array($authorityKey) && isset($authorityKey['keyIdentifier']) && $authorityKey['keyIdentifier'] === $subjectKeyID:
+ $signingCert = $ca; // working cert
+ break 3;
+ }
+ }
+ }
+ if (count($this->CAs) == $i && $caonly) {
+ return false;
+ }
+ } elseif (!isset($signingCert) || $caonly) {
+ return false;
+ }
+ return $this->_validateSignature(
+ $signingCert['tbsCertificate']['subjectPublicKeyInfo']['algorithm']['algorithm'],
+ $signingCert['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey'],
+ $this->currentCert['signatureAlgorithm']['algorithm'],
+ substr(base64_decode($this->currentCert['signature']), 1),
+ $this->signatureSubject
+ );
+ case isset($this->currentCert['certificationRequestInfo']):
+ return $this->_validateSignature(
+ $this->currentCert['certificationRequestInfo']['subjectPKInfo']['algorithm']['algorithm'],
+ $this->currentCert['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey'],
+ $this->currentCert['signatureAlgorithm']['algorithm'],
+ substr(base64_decode($this->currentCert['signature']), 1),
+ $this->signatureSubject
+ );
+ case isset($this->currentCert['publicKeyAndChallenge']):
+ return $this->_validateSignature(
+ $this->currentCert['publicKeyAndChallenge']['spki']['algorithm']['algorithm'],
+ $this->currentCert['publicKeyAndChallenge']['spki']['subjectPublicKey'],
+ $this->currentCert['signatureAlgorithm']['algorithm'],
+ substr(base64_decode($this->currentCert['signature']), 1),
+ $this->signatureSubject
+ );
+ case isset($this->currentCert['tbsCertList']):
+ if (!empty($this->CAs)) {
+ for ($i = 0; $i < count($this->CAs); $i++) {
+ $ca = $this->CAs[$i];
+ switch (true) {
+ case !defined('FILE_X509_IGNORE_TYPE') && $this->currentCert['tbsCertList']['issuer'] === $ca['tbsCertificate']['subject']:
+ case defined('FILE_X509_IGNORE_TYPE') && $this->getDN(self::DN_STRING, $this->currentCert['tbsCertList']['issuer']) === $this->getDN(self::DN_STRING, $ca['tbsCertificate']['subject']):
+ $authorityKey = $this->getExtension('id-ce-authorityKeyIdentifier');
+ $subjectKeyID = $this->getExtension('id-ce-subjectKeyIdentifier', $ca);
+ switch (true) {
+ case !is_array($authorityKey):
+ case is_array($authorityKey) && isset($authorityKey['keyIdentifier']) && $authorityKey['keyIdentifier'] === $subjectKeyID:
+ $signingCert = $ca; // working cert
+ break 3;
+ }
+ }
+ }
+ }
+ if (!isset($signingCert)) {
+ return false;
+ }
+ return $this->_validateSignature(
+ $signingCert['tbsCertificate']['subjectPublicKeyInfo']['algorithm']['algorithm'],
+ $signingCert['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey'],
+ $this->currentCert['signatureAlgorithm']['algorithm'],
+ substr(base64_decode($this->currentCert['signature']), 1),
+ $this->signatureSubject
+ );
+ default:
+ return false;
+ }
+ }
+
+ /**
+ * Validates a signature
+ *
+ * Returns true if the signature is verified, false if it is not correct or null on error
+ *
+ * @param string $publicKeyAlgorithm
+ * @param string $publicKey
+ * @param string $signatureAlgorithm
+ * @param string $signature
+ * @param string $signatureSubject
+ * @access private
+ * @return int
+ */
+ function _validateSignature($publicKeyAlgorithm, $publicKey, $signatureAlgorithm, $signature, $signatureSubject)
+ {
+ switch ($publicKeyAlgorithm) {
+ case 'rsaEncryption':
+ $rsa = new RSA();
+ $rsa->loadKey($publicKey);
+
+ switch ($signatureAlgorithm) {
+ case 'md2WithRSAEncryption':
+ case 'md5WithRSAEncryption':
+ case 'sha1WithRSAEncryption':
+ case 'sha224WithRSAEncryption':
+ case 'sha256WithRSAEncryption':
+ case 'sha384WithRSAEncryption':
+ case 'sha512WithRSAEncryption':
+ $rsa->setHash(preg_replace('#WithRSAEncryption$#', '', $signatureAlgorithm));
+ $rsa->setSignatureMode(RSA::SIGNATURE_PKCS1);
+ if (!@$rsa->verify($signatureSubject, $signature)) {
+ return false;
+ }
+ break;
+ default:
+ return null;
+ }
+ break;
+ default:
+ return null;
+ }
+
+ return true;
+ }
+
+ /**
+ * Reformat public keys
+ *
+ * Reformats a public key to a format supported by phpseclib (if applicable)
+ *
+ * @param string $algorithm
+ * @param string $key
+ * @access private
+ * @return string
+ */
+ function _reformatKey($algorithm, $key)
+ {
+ switch ($algorithm) {
+ case 'rsaEncryption':
+ return
+ "-----BEGIN RSA PUBLIC KEY-----\r\n" .
+ // subjectPublicKey is stored as a bit string in X.509 certs. the first byte of a bit string represents how many bits
+ // in the last byte should be ignored. the following only supports non-zero stuff but as none of the X.509 certs Firefox
+ // uses as a cert authority actually use a non-zero bit I think it's safe to assume that none do.
+ chunk_split(base64_encode(substr(base64_decode($key), 1)), 64) .
+ '-----END RSA PUBLIC KEY-----';
+ default:
+ return $key;
+ }
+ }
+
+ /**
+ * Decodes an IP address
+ *
+ * Takes in a base64 encoded "blob" and returns a human readable IP address
+ *
+ * @param string $ip
+ * @access private
+ * @return string
+ */
+ function _decodeIP($ip)
+ {
+ return inet_ntop(base64_decode($ip));
+ }
+
+ /**
+ * Encodes an IP address
+ *
+ * Takes a human readable IP address into a base64-encoded "blob"
+ *
+ * @param string $ip
+ * @access private
+ * @return string
+ */
+ function _encodeIP($ip)
+ {
+ return base64_encode(inet_pton($ip));
+ }
+
+ /**
+ * "Normalizes" a Distinguished Name property
+ *
+ * @param string $propName
+ * @access private
+ * @return mixed
+ */
+ function _translateDNProp($propName)
+ {
+ switch (strtolower($propName)) {
+ case 'id-at-countryname':
+ case 'countryname':
+ case 'c':
+ return 'id-at-countryName';
+ case 'id-at-organizationname':
+ case 'organizationname':
+ case 'o':
+ return 'id-at-organizationName';
+ case 'id-at-dnqualifier':
+ case 'dnqualifier':
+ return 'id-at-dnQualifier';
+ case 'id-at-commonname':
+ case 'commonname':
+ case 'cn':
+ return 'id-at-commonName';
+ case 'id-at-stateorprovincename':
+ case 'stateorprovincename':
+ case 'state':
+ case 'province':
+ case 'provincename':
+ case 'st':
+ return 'id-at-stateOrProvinceName';
+ case 'id-at-localityname':
+ case 'localityname':
+ case 'l':
+ return 'id-at-localityName';
+ case 'id-emailaddress':
+ case 'emailaddress':
+ return 'pkcs-9-at-emailAddress';
+ case 'id-at-serialnumber':
+ case 'serialnumber':
+ return 'id-at-serialNumber';
+ case 'id-at-postalcode':
+ case 'postalcode':
+ return 'id-at-postalCode';
+ case 'id-at-streetaddress':
+ case 'streetaddress':
+ return 'id-at-streetAddress';
+ case 'id-at-name':
+ case 'name':
+ return 'id-at-name';
+ case 'id-at-givenname':
+ case 'givenname':
+ return 'id-at-givenName';
+ case 'id-at-surname':
+ case 'surname':
+ case 'sn':
+ return 'id-at-surname';
+ case 'id-at-initials':
+ case 'initials':
+ return 'id-at-initials';
+ case 'id-at-generationqualifier':
+ case 'generationqualifier':
+ return 'id-at-generationQualifier';
+ case 'id-at-organizationalunitname':
+ case 'organizationalunitname':
+ case 'ou':
+ return 'id-at-organizationalUnitName';
+ case 'id-at-pseudonym':
+ case 'pseudonym':
+ return 'id-at-pseudonym';
+ case 'id-at-title':
+ case 'title':
+ return 'id-at-title';
+ case 'id-at-description':
+ case 'description':
+ return 'id-at-description';
+ case 'id-at-role':
+ case 'role':
+ return 'id-at-role';
+ case 'id-at-uniqueidentifier':
+ case 'uniqueidentifier':
+ case 'x500uniqueidentifier':
+ return 'id-at-uniqueIdentifier';
+ case 'postaladdress':
+ case 'id-at-postaladdress':
+ return 'id-at-postalAddress';
+ default:
+ return false;
+ }
+ }
+
+ /**
+ * Set a Distinguished Name property
+ *
+ * @param string $propName
+ * @param mixed $propValue
+ * @param string $type optional
+ * @access public
+ * @return bool
+ */
+ function setDNProp($propName, $propValue, $type = 'utf8String')
+ {
+ if (empty($this->dn)) {
+ $this->dn = array('rdnSequence' => array());
+ }
+
+ if (($propName = $this->_translateDNProp($propName)) === false) {
+ return false;
+ }
+
+ foreach ((array) $propValue as $v) {
+ if (!is_array($v) && isset($type)) {
+ $v = array($type => $v);
+ }
+ $this->dn['rdnSequence'][] = array(
+ array(
+ 'type' => $propName,
+ 'value'=> $v
+ )
+ );
+ }
+
+ return true;
+ }
+
+ /**
+ * Remove Distinguished Name properties
+ *
+ * @param string $propName
+ * @access public
+ */
+ function removeDNProp($propName)
+ {
+ if (empty($this->dn)) {
+ return;
+ }
+
+ if (($propName = $this->_translateDNProp($propName)) === false) {
+ return;
+ }
+
+ $dn = &$this->dn['rdnSequence'];
+ $size = count($dn);
+ for ($i = 0; $i < $size; $i++) {
+ if ($dn[$i][0]['type'] == $propName) {
+ unset($dn[$i]);
+ }
+ }
+
+ $dn = array_values($dn);
+ }
+
+ /**
+ * Get Distinguished Name properties
+ *
+ * @param string $propName
+ * @param array $dn optional
+ * @param bool $withType optional
+ * @return mixed
+ * @access public
+ */
+ function getDNProp($propName, $dn = null, $withType = false)
+ {
+ if (!isset($dn)) {
+ $dn = $this->dn;
+ }
+
+ if (empty($dn)) {
+ return false;
+ }
+
+ if (($propName = $this->_translateDNProp($propName)) === false) {
+ return false;
+ }
+
+ $asn1 = new ASN1();
+ $asn1->loadOIDs($this->oids);
+ $filters = array();
+ $filters['value'] = array('type' => ASN1::TYPE_UTF8_STRING);
+ $asn1->loadFilters($filters);
+ $this->_mapOutDNs($dn, 'rdnSequence', $asn1);
+ $dn = $dn['rdnSequence'];
+ $result = array();
+ for ($i = 0; $i < count($dn); $i++) {
+ if ($dn[$i][0]['type'] == $propName) {
+ $v = $dn[$i][0]['value'];
+ if (!$withType) {
+ if (is_array($v)) {
+ foreach ($v as $type => $s) {
+ $type = array_search($type, $asn1->ANYmap, true);
+ if ($type !== false && isset($asn1->stringTypeSize[$type])) {
+ $s = $asn1->convert($s, $type);
+ if ($s !== false) {
+ $v = $s;
+ break;
+ }
+ }
+ }
+ if (is_array($v)) {
+ $v = array_pop($v); // Always strip data type.
+ }
+ } elseif (is_object($v) && $v instanceof Element) {
+ $map = $this->_getMapping($propName);
+ if (!is_bool($map)) {
+ $decoded = $asn1->decodeBER($v);
+ $v = $asn1->asn1map($decoded[0], $map);
+ }
+ }
+ }
+ $result[] = $v;
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * Set a Distinguished Name
+ *
+ * @param mixed $dn
+ * @param bool $merge optional
+ * @param string $type optional
+ * @access public
+ * @return bool
+ */
+ function setDN($dn, $merge = false, $type = 'utf8String')
+ {
+ if (!$merge) {
+ $this->dn = null;
+ }
+
+ if (is_array($dn)) {
+ if (isset($dn['rdnSequence'])) {
+ $this->dn = $dn; // No merge here.
+ return true;
+ }
+
+ // handles stuff generated by openssl_x509_parse()
+ foreach ($dn as $prop => $value) {
+ if (!$this->setDNProp($prop, $value, $type)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ // handles everything else
+ $results = preg_split('#((?:^|, *|/)(?:C=|O=|OU=|CN=|L=|ST=|SN=|postalCode=|streetAddress=|emailAddress=|serialNumber=|organizationalUnitName=|title=|description=|role=|x500UniqueIdentifier=|postalAddress=))#', $dn, -1, PREG_SPLIT_DELIM_CAPTURE);
+ for ($i = 1; $i < count($results); $i+=2) {
+ $prop = trim($results[$i], ', =/');
+ $value = $results[$i + 1];
+ if (!$this->setDNProp($prop, $value, $type)) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Get the Distinguished Name for a certificates subject
+ *
+ * @param mixed $format optional
+ * @param array $dn optional
+ * @access public
+ * @return bool
+ */
+ function getDN($format = self::DN_ARRAY, $dn = null)
+ {
+ if (!isset($dn)) {
+ $dn = isset($this->currentCert['tbsCertList']) ? $this->currentCert['tbsCertList']['issuer'] : $this->dn;
+ }
+
+ switch ((int) $format) {
+ case self::DN_ARRAY:
+ return $dn;
+ case self::DN_ASN1:
+ $asn1 = new ASN1();
+ $asn1->loadOIDs($this->oids);
+ $filters = array();
+ $filters['rdnSequence']['value'] = array('type' => ASN1::TYPE_UTF8_STRING);
+ $asn1->loadFilters($filters);
+ $this->_mapOutDNs($dn, 'rdnSequence', $asn1);
+ return $asn1->encodeDER($dn, $this->Name);
+ case self::DN_CANON:
+ // No SEQUENCE around RDNs and all string values normalized as
+ // trimmed lowercase UTF-8 with all spacing as one blank.
+ // constructed RDNs will not be canonicalized
+ $asn1 = new ASN1();
+ $asn1->loadOIDs($this->oids);
+ $filters = array();
+ $filters['value'] = array('type' => ASN1::TYPE_UTF8_STRING);
+ $asn1->loadFilters($filters);
+ $result = '';
+ $this->_mapOutDNs($dn, 'rdnSequence', $asn1);
+ foreach ($dn['rdnSequence'] as $rdn) {
+ foreach ($rdn as $i => $attr) {
+ $attr = &$rdn[$i];
+ if (is_array($attr['value'])) {
+ foreach ($attr['value'] as $type => $v) {
+ $type = array_search($type, $asn1->ANYmap, true);
+ if ($type !== false && isset($asn1->stringTypeSize[$type])) {
+ $v = $asn1->convert($v, $type);
+ if ($v !== false) {
+ $v = preg_replace('/\s+/', ' ', $v);
+ $attr['value'] = strtolower(trim($v));
+ break;
+ }
+ }
+ }
+ }
+ }
+ $result .= $asn1->encodeDER($rdn, $this->RelativeDistinguishedName);
+ }
+ return $result;
+ case self::DN_HASH:
+ $dn = $this->getDN(self::DN_CANON, $dn);
+ $hash = new Hash('sha1');
+ $hash = $hash->hash($dn);
+ extract(unpack('Vhash', $hash));
+ return strtolower(bin2hex(pack('N', $hash)));
+ }
+
+ // Default is to return a string.
+ $start = true;
+ $output = '';
+
+ $result = array();
+ $asn1 = new ASN1();
+ $asn1->loadOIDs($this->oids);
+ $filters = array();
+ $filters['rdnSequence']['value'] = array('type' => ASN1::TYPE_UTF8_STRING);
+ $asn1->loadFilters($filters);
+ $this->_mapOutDNs($dn, 'rdnSequence', $asn1);
+
+ foreach ($dn['rdnSequence'] as $field) {
+ $prop = $field[0]['type'];
+ $value = $field[0]['value'];
+
+ $delim = ', ';
+ switch ($prop) {
+ case 'id-at-countryName':
+ $desc = 'C';
+ break;
+ case 'id-at-stateOrProvinceName':
+ $desc = 'ST';
+ break;
+ case 'id-at-organizationName':
+ $desc = 'O';
+ break;
+ case 'id-at-organizationalUnitName':
+ $desc = 'OU';
+ break;
+ case 'id-at-commonName':
+ $desc = 'CN';
+ break;
+ case 'id-at-localityName':
+ $desc = 'L';
+ break;
+ case 'id-at-surname':
+ $desc = 'SN';
+ break;
+ case 'id-at-uniqueIdentifier':
+ $delim = '/';
+ $desc = 'x500UniqueIdentifier';
+ break;
+ case 'id-at-postalAddress':
+ $delim = '/';
+ $desc = 'postalAddress';
+ break;
+ default:
+ $delim = '/';
+ $desc = preg_replace('#.+-([^-]+)$#', '$1', $prop);
+ }
+
+ if (!$start) {
+ $output.= $delim;
+ }
+ if (is_array($value)) {
+ foreach ($value as $type => $v) {
+ $type = array_search($type, $asn1->ANYmap, true);
+ if ($type !== false && isset($asn1->stringTypeSize[$type])) {
+ $v = $asn1->convert($v, $type);
+ if ($v !== false) {
+ $value = $v;
+ break;
+ }
+ }
+ }
+ if (is_array($value)) {
+ $value = array_pop($value); // Always strip data type.
+ }
+ } elseif (is_object($value) && $value instanceof Element) {
+ $callback = create_function('$x', 'return "\x" . bin2hex($x[0]);');
+ $value = strtoupper(preg_replace_callback('#[^\x20-\x7E]#', $callback, $value->element));
+ }
+ $output.= $desc . '=' . $value;
+ $result[$desc] = isset($result[$desc]) ?
+ array_merge((array) $dn[$prop], array($value)) :
+ $value;
+ $start = false;
+ }
+
+ return $format == self::DN_OPENSSL ? $result : $output;
+ }
+
+ /**
+ * Get the Distinguished Name for a certificate/crl issuer
+ *
+ * @param int $format optional
+ * @access public
+ * @return mixed
+ */
+ function getIssuerDN($format = self::DN_ARRAY)
+ {
+ switch (true) {
+ case !isset($this->currentCert) || !is_array($this->currentCert):
+ break;
+ case isset($this->currentCert['tbsCertificate']):
+ return $this->getDN($format, $this->currentCert['tbsCertificate']['issuer']);
+ case isset($this->currentCert['tbsCertList']):
+ return $this->getDN($format, $this->currentCert['tbsCertList']['issuer']);
+ }
+
+ return false;
+ }
+
+ /**
+ * Get the Distinguished Name for a certificate/csr subject
+ * Alias of getDN()
+ *
+ * @param int $format optional
+ * @access public
+ * @return mixed
+ */
+ function getSubjectDN($format = self::DN_ARRAY)
+ {
+ switch (true) {
+ case !empty($this->dn):
+ return $this->getDN($format);
+ case !isset($this->currentCert) || !is_array($this->currentCert):
+ break;
+ case isset($this->currentCert['tbsCertificate']):
+ return $this->getDN($format, $this->currentCert['tbsCertificate']['subject']);
+ case isset($this->currentCert['certificationRequestInfo']):
+ return $this->getDN($format, $this->currentCert['certificationRequestInfo']['subject']);
+ }
+
+ return false;
+ }
+
+ /**
+ * Get an individual Distinguished Name property for a certificate/crl issuer
+ *
+ * @param string $propName
+ * @param bool $withType optional
+ * @access public
+ * @return mixed
+ */
+ function getIssuerDNProp($propName, $withType = false)
+ {
+ switch (true) {
+ case !isset($this->currentCert) || !is_array($this->currentCert):
+ break;
+ case isset($this->currentCert['tbsCertificate']):
+ return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['issuer'], $withType);
+ case isset($this->currentCert['tbsCertList']):
+ return $this->getDNProp($propName, $this->currentCert['tbsCertList']['issuer'], $withType);
+ }
+
+ return false;
+ }
+
+ /**
+ * Get an individual Distinguished Name property for a certificate/csr subject
+ *
+ * @param string $propName
+ * @param bool $withType optional
+ * @access public
+ * @return mixed
+ */
+ function getSubjectDNProp($propName, $withType = false)
+ {
+ switch (true) {
+ case !empty($this->dn):
+ return $this->getDNProp($propName, null, $withType);
+ case !isset($this->currentCert) || !is_array($this->currentCert):
+ break;
+ case isset($this->currentCert['tbsCertificate']):
+ return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['subject'], $withType);
+ case isset($this->currentCert['certificationRequestInfo']):
+ return $this->getDNProp($propName, $this->currentCert['certificationRequestInfo']['subject'], $withType);
+ }
+
+ return false;
+ }
+
+ /**
+ * Get the certificate chain for the current cert
+ *
+ * @access public
+ * @return mixed
+ */
+ function getChain()
+ {
+ $chain = array($this->currentCert);
+
+ if (!is_array($this->currentCert) || !isset($this->currentCert['tbsCertificate'])) {
+ return false;
+ }
+ if (empty($this->CAs)) {
+ return $chain;
+ }
+ while (true) {
+ $currentCert = $chain[count($chain) - 1];
+ for ($i = 0; $i < count($this->CAs); $i++) {
+ $ca = $this->CAs[$i];
+ if ($currentCert['tbsCertificate']['issuer'] === $ca['tbsCertificate']['subject']) {
+ $authorityKey = $this->getExtension('id-ce-authorityKeyIdentifier', $currentCert);
+ $subjectKeyID = $this->getExtension('id-ce-subjectKeyIdentifier', $ca);
+ switch (true) {
+ case !is_array($authorityKey):
+ case is_array($authorityKey) && isset($authorityKey['keyIdentifier']) && $authorityKey['keyIdentifier'] === $subjectKeyID:
+ if ($currentCert === $ca) {
+ break 3;
+ }
+ $chain[] = $ca;
+ break 2;
+ }
+ }
+ }
+ if ($i == count($this->CAs)) {
+ break;
+ }
+ }
+ foreach ($chain as $key => $value) {
+ $chain[$key] = new X509();
+ $chain[$key]->loadX509($value);
+ }
+ return $chain;
+ }
+
+ /**
+ * Set public key
+ *
+ * Key needs to be a \phpseclib\Crypt\RSA object
+ *
+ * @param object $key
+ * @access public
+ * @return bool
+ */
+ function setPublicKey($key)
+ {
+ $key->setPublicKey();
+ $this->publicKey = $key;
+ }
+
+ /**
+ * Set private key
+ *
+ * Key needs to be a \phpseclib\Crypt\RSA object
+ *
+ * @param object $key
+ * @access public
+ */
+ function setPrivateKey($key)
+ {
+ $this->privateKey = $key;
+ }
+
+ /**
+ * Set challenge
+ *
+ * Used for SPKAC CSR's
+ *
+ * @param string $challenge
+ * @access public
+ */
+ function setChallenge($challenge)
+ {
+ $this->challenge = $challenge;
+ }
+
+ /**
+ * Gets the public key
+ *
+ * Returns a \phpseclib\Crypt\RSA object or a false.
+ *
+ * @access public
+ * @return mixed
+ */
+ function getPublicKey()
+ {
+ if (isset($this->publicKey)) {
+ return $this->publicKey;
+ }
+
+ if (isset($this->currentCert) && is_array($this->currentCert)) {
+ foreach (array('tbsCertificate/subjectPublicKeyInfo', 'certificationRequestInfo/subjectPKInfo') as $path) {
+ $keyinfo = $this->_subArray($this->currentCert, $path);
+ if (!empty($keyinfo)) {
+ break;
+ }
+ }
+ }
+ if (empty($keyinfo)) {
+ return false;
+ }
+
+ $key = $keyinfo['subjectPublicKey'];
+
+ switch ($keyinfo['algorithm']['algorithm']) {
+ case 'rsaEncryption':
+ $publicKey = new RSA();
+ $publicKey->loadKey($key);
+ $publicKey->setPublicKey();
+ break;
+ default:
+ return false;
+ }
+
+ return $publicKey;
+ }
+
+ /**
+ * Load a Certificate Signing Request
+ *
+ * @param string $csr
+ * @access public
+ * @return mixed
+ */
+ function loadCSR($csr, $mode = self::FORMAT_AUTO_DETECT)
+ {
+ if (is_array($csr) && isset($csr['certificationRequestInfo'])) {
+ unset($this->currentCert);
+ unset($this->currentKeyIdentifier);
+ unset($this->signatureSubject);
+ $this->dn = $csr['certificationRequestInfo']['subject'];
+ if (!isset($this->dn)) {
+ return false;
+ }
+
+ $this->currentCert = $csr;
+ return $csr;
+ }
+
+ // see http://tools.ietf.org/html/rfc2986
+
+ $asn1 = new ASN1();
+
+ if ($mode != self::FORMAT_DER) {
+ $newcsr = $this->_extractBER($csr);
+ if ($mode == self::FORMAT_PEM && $csr == $newcsr) {
+ return false;
+ }
+ $csr = $newcsr;
+ }
+ $orig = $csr;
+
+ if ($csr === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $asn1->loadOIDs($this->oids);
+ $decoded = $asn1->decodeBER($csr);
+
+ if (empty($decoded)) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $csr = $asn1->asn1map($decoded[0], $this->CertificationRequest);
+ if (!isset($csr) || $csr === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $this->_mapInAttributes($csr, 'certificationRequestInfo/attributes', $asn1);
+ $this->_mapInDNs($csr, 'certificationRequestInfo/subject/rdnSequence', $asn1);
+
+ $this->dn = $csr['certificationRequestInfo']['subject'];
+
+ $this->signatureSubject = substr($orig, $decoded[0]['content'][0]['start'], $decoded[0]['content'][0]['length']);
+
+ $algorithm = &$csr['certificationRequestInfo']['subjectPKInfo']['algorithm']['algorithm'];
+ $key = &$csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey'];
+ $key = $this->_reformatKey($algorithm, $key);
+
+ switch ($algorithm) {
+ case 'rsaEncryption':
+ $this->publicKey = new RSA();
+ $this->publicKey->loadKey($key);
+ $this->publicKey->setPublicKey();
+ break;
+ default:
+ $this->publicKey = null;
+ }
+
+ $this->currentKeyIdentifier = null;
+ $this->currentCert = $csr;
+
+ return $csr;
+ }
+
+ /**
+ * Save CSR request
+ *
+ * @param array $csr
+ * @param int $format optional
+ * @access public
+ * @return string
+ */
+ function saveCSR($csr, $format = self::FORMAT_PEM)
+ {
+ if (!is_array($csr) || !isset($csr['certificationRequestInfo'])) {
+ return false;
+ }
+
+ switch (true) {
+ case !($algorithm = $this->_subArray($csr, 'certificationRequestInfo/subjectPKInfo/algorithm/algorithm')):
+ case is_object($csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']):
+ break;
+ default:
+ switch ($algorithm) {
+ case 'rsaEncryption':
+ $csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']
+ = base64_encode("\0" . base64_decode(preg_replace('#-.+-|[\r\n]#', '', $csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey'])));
+ $csr['certificationRequestInfo']['subjectPKInfo']['algorithm']['parameters'] = null;
+ $csr['signatureAlgorithm']['parameters'] = null;
+ $csr['certificationRequestInfo']['signature']['parameters'] = null;
+ }
+ }
+
+ $asn1 = new ASN1();
+
+ $asn1->loadOIDs($this->oids);
+
+ $filters = array();
+ $filters['certificationRequestInfo']['subject']['rdnSequence']['value']
+ = array('type' => ASN1::TYPE_UTF8_STRING);
+
+ $asn1->loadFilters($filters);
+
+ $this->_mapOutDNs($csr, 'certificationRequestInfo/subject/rdnSequence', $asn1);
+ $this->_mapOutAttributes($csr, 'certificationRequestInfo/attributes', $asn1);
+ $csr = $asn1->encodeDER($csr, $this->CertificationRequest);
+
+ switch ($format) {
+ case self::FORMAT_DER:
+ return $csr;
+ // case self::FORMAT_PEM:
+ default:
+ return "-----BEGIN CERTIFICATE REQUEST-----\r\n" . chunk_split(base64_encode($csr), 64) . '-----END CERTIFICATE REQUEST-----';
+ }
+ }
+
+ /**
+ * Load a SPKAC CSR
+ *
+ * SPKAC's are produced by the HTML5 keygen element:
+ *
+ * https://developer.mozilla.org/en-US/docs/HTML/Element/keygen
+ *
+ * @param string $csr
+ * @access public
+ * @return mixed
+ */
+ function loadSPKAC($spkac)
+ {
+ if (is_array($spkac) && isset($spkac['publicKeyAndChallenge'])) {
+ unset($this->currentCert);
+ unset($this->currentKeyIdentifier);
+ unset($this->signatureSubject);
+ $this->currentCert = $spkac;
+ return $spkac;
+ }
+
+ // see http://www.w3.org/html/wg/drafts/html/master/forms.html#signedpublickeyandchallenge
+
+ $asn1 = new ASN1();
+
+ // OpenSSL produces SPKAC's that are preceded by the string SPKAC=
+ $temp = preg_replace('#(?:SPKAC=)|[ \r\n\\\]#', '', $spkac);
+ $temp = preg_match('#^[a-zA-Z\d/+]*={0,2}$#', $temp) ? base64_decode($temp) : false;
+ if ($temp != false) {
+ $spkac = $temp;
+ }
+ $orig = $spkac;
+
+ if ($spkac === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $asn1->loadOIDs($this->oids);
+ $decoded = $asn1->decodeBER($spkac);
+
+ if (empty($decoded)) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $spkac = $asn1->asn1map($decoded[0], $this->SignedPublicKeyAndChallenge);
+
+ if (!isset($spkac) || $spkac === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $this->signatureSubject = substr($orig, $decoded[0]['content'][0]['start'], $decoded[0]['content'][0]['length']);
+
+ $algorithm = &$spkac['publicKeyAndChallenge']['spki']['algorithm']['algorithm'];
+ $key = &$spkac['publicKeyAndChallenge']['spki']['subjectPublicKey'];
+ $key = $this->_reformatKey($algorithm, $key);
+
+ switch ($algorithm) {
+ case 'rsaEncryption':
+ $this->publicKey = new RSA();
+ $this->publicKey->loadKey($key);
+ $this->publicKey->setPublicKey();
+ break;
+ default:
+ $this->publicKey = null;
+ }
+
+ $this->currentKeyIdentifier = null;
+ $this->currentCert = $spkac;
+
+ return $spkac;
+ }
+
+ /**
+ * Save a SPKAC CSR request
+ *
+ * @param array $csr
+ * @param int $format optional
+ * @access public
+ * @return string
+ */
+ function saveSPKAC($spkac, $format = self::FORMAT_PEM)
+ {
+ if (!is_array($spkac) || !isset($spkac['publicKeyAndChallenge'])) {
+ return false;
+ }
+
+ $algorithm = $this->_subArray($spkac, 'publicKeyAndChallenge/spki/algorithm/algorithm');
+ switch (true) {
+ case !$algorithm:
+ case is_object($spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']):
+ break;
+ default:
+ switch ($algorithm) {
+ case 'rsaEncryption':
+ $spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']
+ = base64_encode("\0" . base64_decode(preg_replace('#-.+-|[\r\n]#', '', $spkac['publicKeyAndChallenge']['spki']['subjectPublicKey'])));
+ }
+ }
+
+ $asn1 = new ASN1();
+
+ $asn1->loadOIDs($this->oids);
+ $spkac = $asn1->encodeDER($spkac, $this->SignedPublicKeyAndChallenge);
+
+ switch ($format) {
+ case self::FORMAT_DER:
+ return $spkac;
+ // case self::FORMAT_PEM:
+ default:
+ // OpenSSL's implementation of SPKAC requires the SPKAC be preceded by SPKAC= and since there are pretty much
+ // no other SPKAC decoders phpseclib will use that same format
+ return 'SPKAC=' . base64_encode($spkac);
+ }
+ }
+
+ /**
+ * Load a Certificate Revocation List
+ *
+ * @param string $crl
+ * @access public
+ * @return mixed
+ */
+ function loadCRL($crl, $mode = self::FORMAT_AUTO_DETECT)
+ {
+ if (is_array($crl) && isset($crl['tbsCertList'])) {
+ $this->currentCert = $crl;
+ unset($this->signatureSubject);
+ return $crl;
+ }
+
+ $asn1 = new ASN1();
+
+ if ($mode != self::FORMAT_DER) {
+ $newcrl = $this->_extractBER($crl);
+ if ($mode == self::FORMAT_PEM && $crl == $newcrl) {
+ return false;
+ }
+ $crl = $newcrl;
+ }
+ $orig = $crl;
+
+ if ($crl === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $asn1->loadOIDs($this->oids);
+ $decoded = $asn1->decodeBER($crl);
+
+ if (empty($decoded)) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $crl = $asn1->asn1map($decoded[0], $this->CertificateList);
+ if (!isset($crl) || $crl === false) {
+ $this->currentCert = false;
+ return false;
+ }
+
+ $this->signatureSubject = substr($orig, $decoded[0]['content'][0]['start'], $decoded[0]['content'][0]['length']);
+
+ $this->_mapInDNs($crl, 'tbsCertList/issuer/rdnSequence', $asn1);
+ if ($this->_isSubArrayValid($crl, 'tbsCertList/crlExtensions')) {
+ $this->_mapInExtensions($crl, 'tbsCertList/crlExtensions', $asn1);
+ }
+ if ($this->_isSubArrayValid($crl, 'tbsCertList/revokedCertificates')) {
+ $rclist_ref = &$this->_subArrayUnchecked($crl, 'tbsCertList/revokedCertificates');
+ if ($rclist_ref) {
+ $rclist = $crl['tbsCertList']['revokedCertificates'];
+ foreach ($rclist as $i => $extension) {
+ if ($this->_isSubArrayValid($rclist, "$i/crlEntryExtensions", $asn1)) {
+ $this->_mapInExtensions($rclist_ref, "$i/crlEntryExtensions", $asn1);
+ }
+ }
+ }
+ }
+
+ $this->currentKeyIdentifier = null;
+ $this->currentCert = $crl;
+
+ return $crl;
+ }
+
+ /**
+ * Save Certificate Revocation List.
+ *
+ * @param array $crl
+ * @param int $format optional
+ * @access public
+ * @return string
+ */
+ function saveCRL($crl, $format = self::FORMAT_PEM)
+ {
+ if (!is_array($crl) || !isset($crl['tbsCertList'])) {
+ return false;
+ }
+
+ $asn1 = new ASN1();
+
+ $asn1->loadOIDs($this->oids);
+
+ $filters = array();
+ $filters['tbsCertList']['issuer']['rdnSequence']['value']
+ = array('type' => ASN1::TYPE_UTF8_STRING);
+ $filters['tbsCertList']['signature']['parameters']
+ = array('type' => ASN1::TYPE_UTF8_STRING);
+ $filters['signatureAlgorithm']['parameters']
+ = array('type' => ASN1::TYPE_UTF8_STRING);
+
+ if (empty($crl['tbsCertList']['signature']['parameters'])) {
+ $filters['tbsCertList']['signature']['parameters']
+ = array('type' => ASN1::TYPE_NULL);
+ }
+
+ if (empty($crl['signatureAlgorithm']['parameters'])) {
+ $filters['signatureAlgorithm']['parameters']
+ = array('type' => ASN1::TYPE_NULL);
+ }
+
+ $asn1->loadFilters($filters);
+
+ $this->_mapOutDNs($crl, 'tbsCertList/issuer/rdnSequence', $asn1);
+ $this->_mapOutExtensions($crl, 'tbsCertList/crlExtensions', $asn1);
+ $rclist = &$this->_subArray($crl, 'tbsCertList/revokedCertificates');
+ if (is_array($rclist)) {
+ foreach ($rclist as $i => $extension) {
+ $this->_mapOutExtensions($rclist, "$i/crlEntryExtensions", $asn1);
+ }
+ }
+
+ $crl = $asn1->encodeDER($crl, $this->CertificateList);
+
+ switch ($format) {
+ case self::FORMAT_DER:
+ return $crl;
+ // case self::FORMAT_PEM:
+ default:
+ return "-----BEGIN X509 CRL-----\r\n" . chunk_split(base64_encode($crl), 64) . '-----END X509 CRL-----';
+ }
+ }
+
+ /**
+ * Helper function to build a time field according to RFC 3280 section
+ * - 4.1.2.5 Validity
+ * - 5.1.2.4 This Update
+ * - 5.1.2.5 Next Update
+ * - 5.1.2.6 Revoked Certificates
+ * by choosing utcTime iff year of date given is before 2050 and generalTime else.
+ *
+ * @param string $date in format date('D, d M Y H:i:s O')
+ * @access private
+ * @return array
+ */
+ function _timeField($date)
+ {
+ $year = @gmdate("Y", @strtotime($date)); // the same way ASN1.php parses this
+ if ($year < 2050) {
+ return array('utcTime' => $date);
+ } else {
+ return array('generalTime' => $date);
+ }
+ }
+
+ /**
+ * Sign an X.509 certificate
+ *
+ * $issuer's private key needs to be loaded.
+ * $subject can be either an existing X.509 cert (if you want to resign it),
+ * a CSR or something with the DN and public key explicitly set.
+ *
+ * @param \phpseclib\File\X509 $issuer
+ * @param \phpseclib\File\X509 $subject
+ * @param string $signatureAlgorithm optional
+ * @access public
+ * @return mixed
+ */
+ function sign($issuer, $subject, $signatureAlgorithm = 'sha1WithRSAEncryption')
+ {
+ if (!is_object($issuer->privateKey) || empty($issuer->dn)) {
+ return false;
+ }
+
+ if (isset($subject->publicKey) && !($subjectPublicKey = $subject->_formatSubjectPublicKey())) {
+ return false;
+ }
+
+ $currentCert = isset($this->currentCert) ? $this->currentCert : null;
+ $signatureSubject = isset($this->signatureSubject) ? $this->signatureSubject: null;
+
+ if (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->currentCert['tbsCertificate'])) {
+ $this->currentCert = $subject->currentCert;
+ $this->currentCert['tbsCertificate']['signature']['algorithm'] = $signatureAlgorithm;
+ $this->currentCert['signatureAlgorithm']['algorithm'] = $signatureAlgorithm;
+
+ if (!empty($this->startDate)) {
+ $this->currentCert['tbsCertificate']['validity']['notBefore'] = $this->_timeField($this->startDate);
+ }
+ if (!empty($this->endDate)) {
+ $this->currentCert['tbsCertificate']['validity']['notAfter'] = $this->_timeField($this->endDate);
+ }
+ if (!empty($this->serialNumber)) {
+ $this->currentCert['tbsCertificate']['serialNumber'] = $this->serialNumber;
+ }
+ if (!empty($subject->dn)) {
+ $this->currentCert['tbsCertificate']['subject'] = $subject->dn;
+ }
+ if (!empty($subject->publicKey)) {
+ $this->currentCert['tbsCertificate']['subjectPublicKeyInfo'] = $subjectPublicKey;
+ }
+ $this->removeExtension('id-ce-authorityKeyIdentifier');
+ if (isset($subject->domains)) {
+ $this->removeExtension('id-ce-subjectAltName');
+ }
+ } elseif (isset($subject->currentCert) && is_array($subject->currentCert) && isset($subject->currentCert['tbsCertList'])) {
+ return false;
+ } else {
+ if (!isset($subject->publicKey)) {
+ return false;
+ }
+
+ $startDate = !empty($this->startDate) ? $this->startDate : @date('D, d M Y H:i:s O');
+ $endDate = !empty($this->endDate) ? $this->endDate : @date('D, d M Y H:i:s O', strtotime('+1 year'));
+ /* "The serial number MUST be a positive integer"
+ "Conforming CAs MUST NOT use serialNumber values longer than 20 octets."
+ -- https://tools.ietf.org/html/rfc5280#section-4.1.2.2
+
+ for the integer to be positive the leading bit needs to be 0 hence the
+ application of a bitmap
+ */
+ $serialNumber = !empty($this->serialNumber) ?
+ $this->serialNumber :
+ new BigInteger(Random::string(20) & ("\x7F" . str_repeat("\xFF", 19)), 256);
+
+ $this->currentCert = array(
+ 'tbsCertificate' =>
+ array(
+ 'version' => 'v3',
+ 'serialNumber' => $serialNumber, // $this->setserialNumber()
+ 'signature' => array('algorithm' => $signatureAlgorithm),
+ 'issuer' => false, // this is going to be overwritten later
+ 'validity' => array(
+ 'notBefore' => $this->_timeField($startDate), // $this->setStartDate()
+ 'notAfter' => $this->_timeField($endDate) // $this->setEndDate()
+ ),
+ 'subject' => $subject->dn,
+ 'subjectPublicKeyInfo' => $subjectPublicKey
+ ),
+ 'signatureAlgorithm' => array('algorithm' => $signatureAlgorithm),
+ 'signature' => false // this is going to be overwritten later
+ );
+
+ // Copy extensions from CSR.
+ $csrexts = $subject->getAttribute('pkcs-9-at-extensionRequest', 0);
+
+ if (!empty($csrexts)) {
+ $this->currentCert['tbsCertificate']['extensions'] = $csrexts;
+ }
+ }
+
+ $this->currentCert['tbsCertificate']['issuer'] = $issuer->dn;
+
+ if (isset($issuer->currentKeyIdentifier)) {
+ $this->setExtension('id-ce-authorityKeyIdentifier', array(
+ //'authorityCertIssuer' => array(
+ // array(
+ // 'directoryName' => $issuer->dn
+ // )
+ //),
+ 'keyIdentifier' => $issuer->currentKeyIdentifier
+ ));
+ //$extensions = &$this->currentCert['tbsCertificate']['extensions'];
+ //if (isset($issuer->serialNumber)) {
+ // $extensions[count($extensions) - 1]['authorityCertSerialNumber'] = $issuer->serialNumber;
+ //}
+ //unset($extensions);
+ }
+
+ if (isset($subject->currentKeyIdentifier)) {
+ $this->setExtension('id-ce-subjectKeyIdentifier', $subject->currentKeyIdentifier);
+ }
+
+ $altName = array();
+
+ if (isset($subject->domains) && count($subject->domains)) {
+ $altName = array_map(array('\phpseclib\File\X509', '_dnsName'), $subject->domains);
+ }
+
+ if (isset($subject->ipAddresses) && count($subject->ipAddresses)) {
+ // should an IP address appear as the CN if no domain name is specified? idk
+ //$ips = count($subject->domains) ? $subject->ipAddresses : array_slice($subject->ipAddresses, 1);
+ $ipAddresses = array();
+ foreach ($subject->ipAddresses as $ipAddress) {
+ $encoded = $subject->_ipAddress($ipAddress);
+ if ($encoded !== false) {
+ $ipAddresses[] = $encoded;
+ }
+ }
+ if (count($ipAddresses)) {
+ $altName = array_merge($altName, $ipAddresses);
+ }
+ }
+
+ if (!empty($altName)) {
+ $this->setExtension('id-ce-subjectAltName', $altName);
+ }
+
+ if ($this->caFlag) {
+ $keyUsage = $this->getExtension('id-ce-keyUsage');
+ if (!$keyUsage) {
+ $keyUsage = array();
+ }
+
+ $this->setExtension(
+ 'id-ce-keyUsage',
+ array_values(array_unique(array_merge($keyUsage, array('cRLSign', 'keyCertSign'))))
+ );
+
+ $basicConstraints = $this->getExtension('id-ce-basicConstraints');
+ if (!$basicConstraints) {
+ $basicConstraints = array();
+ }
+
+ $this->setExtension(
+ 'id-ce-basicConstraints',
+ array_unique(array_merge(array('cA' => true), $basicConstraints)),
+ true
+ );
+
+ if (!isset($subject->currentKeyIdentifier)) {
+ $this->setExtension('id-ce-subjectKeyIdentifier', base64_encode($this->computeKeyIdentifier($this->currentCert)), false, false);
+ }
+ }
+
+ // resync $this->signatureSubject
+ // save $tbsCertificate in case there are any \phpseclib\File\ASN1\Element objects in it
+ $tbsCertificate = $this->currentCert['tbsCertificate'];
+ $this->loadX509($this->saveX509($this->currentCert));
+
+ $result = $this->_sign($issuer->privateKey, $signatureAlgorithm);
+ $result['tbsCertificate'] = $tbsCertificate;
+
+ $this->currentCert = $currentCert;
+ $this->signatureSubject = $signatureSubject;
+
+ return $result;
+ }
+
+ /**
+ * Sign a CSR
+ *
+ * @access public
+ * @return mixed
+ */
+ function signCSR($signatureAlgorithm = 'sha1WithRSAEncryption')
+ {
+ if (!is_object($this->privateKey) || empty($this->dn)) {
+ return false;
+ }
+
+ $origPublicKey = $this->publicKey;
+ $class = get_class($this->privateKey);
+ $this->publicKey = new $class();
+ $this->publicKey->loadKey($this->privateKey->getPublicKey());
+ $this->publicKey->setPublicKey();
+ if (!($publicKey = $this->_formatSubjectPublicKey())) {
+ return false;
+ }
+ $this->publicKey = $origPublicKey;
+
+ $currentCert = isset($this->currentCert) ? $this->currentCert : null;
+ $signatureSubject = isset($this->signatureSubject) ? $this->signatureSubject: null;
+
+ if (isset($this->currentCert) && is_array($this->currentCert) && isset($this->currentCert['certificationRequestInfo'])) {
+ $this->currentCert['signatureAlgorithm']['algorithm'] = $signatureAlgorithm;
+ if (!empty($this->dn)) {
+ $this->currentCert['certificationRequestInfo']['subject'] = $this->dn;
+ }
+ $this->currentCert['certificationRequestInfo']['subjectPKInfo'] = $publicKey;
+ } else {
+ $this->currentCert = array(
+ 'certificationRequestInfo' =>
+ array(
+ 'version' => 'v1',
+ 'subject' => $this->dn,
+ 'subjectPKInfo' => $publicKey
+ ),
+ 'signatureAlgorithm' => array('algorithm' => $signatureAlgorithm),
+ 'signature' => false // this is going to be overwritten later
+ );
+ }
+
+ // resync $this->signatureSubject
+ // save $certificationRequestInfo in case there are any \phpseclib\File\ASN1\Element objects in it
+ $certificationRequestInfo = $this->currentCert['certificationRequestInfo'];
+ $this->loadCSR($this->saveCSR($this->currentCert));
+
+ $result = $this->_sign($this->privateKey, $signatureAlgorithm);
+ $result['certificationRequestInfo'] = $certificationRequestInfo;
+
+ $this->currentCert = $currentCert;
+ $this->signatureSubject = $signatureSubject;
+
+ return $result;
+ }
+
+ /**
+ * Sign a SPKAC
+ *
+ * @access public
+ * @return mixed
+ */
+ function signSPKAC($signatureAlgorithm = 'sha1WithRSAEncryption')
+ {
+ if (!is_object($this->privateKey)) {
+ return false;
+ }
+
+ $origPublicKey = $this->publicKey;
+ $class = get_class($this->privateKey);
+ $this->publicKey = new $class();
+ $this->publicKey->loadKey($this->privateKey->getPublicKey());
+ $this->publicKey->setPublicKey();
+ $publicKey = $this->_formatSubjectPublicKey();
+ if (!$publicKey) {
+ return false;
+ }
+ $this->publicKey = $origPublicKey;
+
+ $currentCert = isset($this->currentCert) ? $this->currentCert : null;
+ $signatureSubject = isset($this->signatureSubject) ? $this->signatureSubject: null;
+
+ // re-signing a SPKAC seems silly but since everything else supports re-signing why not?
+ if (isset($this->currentCert) && is_array($this->currentCert) && isset($this->currentCert['publicKeyAndChallenge'])) {
+ $this->currentCert['signatureAlgorithm']['algorithm'] = $signatureAlgorithm;
+ $this->currentCert['publicKeyAndChallenge']['spki'] = $publicKey;
+ if (!empty($this->challenge)) {
+ // the bitwise AND ensures that the output is a valid IA5String
+ $this->currentCert['publicKeyAndChallenge']['challenge'] = $this->challenge & str_repeat("\x7F", strlen($this->challenge));
+ }
+ } else {
+ $this->currentCert = array(
+ 'publicKeyAndChallenge' =>
+ array(
+ 'spki' => $publicKey,
+ // quoting <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/keygen>,
+ // "A challenge string that is submitted along with the public key. Defaults to an empty string if not specified."
+ // both Firefox and OpenSSL ("openssl spkac -key private.key") behave this way
+ // we could alternatively do this instead if we ignored the specs:
+ // Random::string(8) & str_repeat("\x7F", 8)
+ 'challenge' => !empty($this->challenge) ? $this->challenge : ''
+ ),
+ 'signatureAlgorithm' => array('algorithm' => $signatureAlgorithm),
+ 'signature' => false // this is going to be overwritten later
+ );
+ }
+
+ // resync $this->signatureSubject
+ // save $publicKeyAndChallenge in case there are any \phpseclib\File\ASN1\Element objects in it
+ $publicKeyAndChallenge = $this->currentCert['publicKeyAndChallenge'];
+ $this->loadSPKAC($this->saveSPKAC($this->currentCert));
+
+ $result = $this->_sign($this->privateKey, $signatureAlgorithm);
+ $result['publicKeyAndChallenge'] = $publicKeyAndChallenge;
+
+ $this->currentCert = $currentCert;
+ $this->signatureSubject = $signatureSubject;
+
+ return $result;
+ }
+
+ /**
+ * Sign a CRL
+ *
+ * $issuer's private key needs to be loaded.
+ *
+ * @param \phpseclib\File\X509 $issuer
+ * @param \phpseclib\File\X509 $crl
+ * @param string $signatureAlgorithm optional
+ * @access public
+ * @return mixed
+ */
+ function signCRL($issuer, $crl, $signatureAlgorithm = 'sha1WithRSAEncryption')
+ {
+ if (!is_object($issuer->privateKey) || empty($issuer->dn)) {
+ return false;
+ }
+
+ $currentCert = isset($this->currentCert) ? $this->currentCert : null;
+ $signatureSubject = isset($this->signatureSubject) ? $this->signatureSubject : null;
+ $thisUpdate = !empty($this->startDate) ? $this->startDate : @date('D, d M Y H:i:s O');
+
+ if (isset($crl->currentCert) && is_array($crl->currentCert) && isset($crl->currentCert['tbsCertList'])) {
+ $this->currentCert = $crl->currentCert;
+ $this->currentCert['tbsCertList']['signature']['algorithm'] = $signatureAlgorithm;
+ $this->currentCert['signatureAlgorithm']['algorithm'] = $signatureAlgorithm;
+ } else {
+ $this->currentCert = array(
+ 'tbsCertList' =>
+ array(
+ 'version' => 'v2',
+ 'signature' => array('algorithm' => $signatureAlgorithm),
+ 'issuer' => false, // this is going to be overwritten later
+ 'thisUpdate' => $this->_timeField($thisUpdate) // $this->setStartDate()
+ ),
+ 'signatureAlgorithm' => array('algorithm' => $signatureAlgorithm),
+ 'signature' => false // this is going to be overwritten later
+ );
+ }
+
+ $tbsCertList = &$this->currentCert['tbsCertList'];
+ $tbsCertList['issuer'] = $issuer->dn;
+ $tbsCertList['thisUpdate'] = $this->_timeField($thisUpdate);
+
+ if (!empty($this->endDate)) {
+ $tbsCertList['nextUpdate'] = $this->_timeField($this->endDate); // $this->setEndDate()
+ } else {
+ unset($tbsCertList['nextUpdate']);
+ }
+
+ if (!empty($this->serialNumber)) {
+ $crlNumber = $this->serialNumber;
+ } else {
+ $crlNumber = $this->getExtension('id-ce-cRLNumber');
+ // "The CRL number is a non-critical CRL extension that conveys a
+ // monotonically increasing sequence number for a given CRL scope and
+ // CRL issuer. This extension allows users to easily determine when a
+ // particular CRL supersedes another CRL."
+ // -- https://tools.ietf.org/html/rfc5280#section-5.2.3
+ $crlNumber = $crlNumber !== false ? $crlNumber->add(new BigInteger(1)) : null;
+ }
+
+ $this->removeExtension('id-ce-authorityKeyIdentifier');
+ $this->removeExtension('id-ce-issuerAltName');
+
+ // Be sure version >= v2 if some extension found.
+ $version = isset($tbsCertList['version']) ? $tbsCertList['version'] : 0;
+ if (!$version) {
+ if (!empty($tbsCertList['crlExtensions'])) {
+ $version = 1; // v2.
+ } elseif (!empty($tbsCertList['revokedCertificates'])) {
+ foreach ($tbsCertList['revokedCertificates'] as $cert) {
+ if (!empty($cert['crlEntryExtensions'])) {
+ $version = 1; // v2.
+ }
+ }
+ }
+
+ if ($version) {
+ $tbsCertList['version'] = $version;
+ }
+ }
+
+ // Store additional extensions.
+ if (!empty($tbsCertList['version'])) { // At least v2.
+ if (!empty($crlNumber)) {
+ $this->setExtension('id-ce-cRLNumber', $crlNumber);
+ }
+
+ if (isset($issuer->currentKeyIdentifier)) {
+ $this->setExtension('id-ce-authorityKeyIdentifier', array(
+ //'authorityCertIssuer' => array(
+ // array(
+ // 'directoryName' => $issuer->dn
+ // )
+ //),
+ 'keyIdentifier' => $issuer->currentKeyIdentifier
+ ));
+ //$extensions = &$tbsCertList['crlExtensions'];
+ //if (isset($issuer->serialNumber)) {
+ // $extensions[count($extensions) - 1]['authorityCertSerialNumber'] = $issuer->serialNumber;
+ //}
+ //unset($extensions);
+ }
+
+ $issuerAltName = $this->getExtension('id-ce-subjectAltName', $issuer->currentCert);
+
+ if ($issuerAltName !== false) {
+ $this->setExtension('id-ce-issuerAltName', $issuerAltName);
+ }
+ }
+
+ if (empty($tbsCertList['revokedCertificates'])) {
+ unset($tbsCertList['revokedCertificates']);
+ }
+
+ unset($tbsCertList);
+
+ // resync $this->signatureSubject
+ // save $tbsCertList in case there are any \phpseclib\File\ASN1\Element objects in it
+ $tbsCertList = $this->currentCert['tbsCertList'];
+ $this->loadCRL($this->saveCRL($this->currentCert));
+
+ $result = $this->_sign($issuer->privateKey, $signatureAlgorithm);
+ $result['tbsCertList'] = $tbsCertList;
+
+ $this->currentCert = $currentCert;
+ $this->signatureSubject = $signatureSubject;
+
+ return $result;
+ }
+
+ /**
+ * X.509 certificate signing helper function.
+ *
+ * @param object $key
+ * @param \phpseclib\File\X509 $subject
+ * @param string $signatureAlgorithm
+ * @access public
+ * @return mixed
+ */
+ function _sign($key, $signatureAlgorithm)
+ {
+ if ($key instanceof RSA) {
+ switch ($signatureAlgorithm) {
+ case 'md2WithRSAEncryption':
+ case 'md5WithRSAEncryption':
+ case 'sha1WithRSAEncryption':
+ case 'sha224WithRSAEncryption':
+ case 'sha256WithRSAEncryption':
+ case 'sha384WithRSAEncryption':
+ case 'sha512WithRSAEncryption':
+ $key->setHash(preg_replace('#WithRSAEncryption$#', '', $signatureAlgorithm));
+ $key->setSignatureMode(RSA::SIGNATURE_PKCS1);
+
+ $this->currentCert['signature'] = base64_encode("\0" . $key->sign($this->signatureSubject));
+ return $this->currentCert;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Set certificate start date
+ *
+ * @param string $date
+ * @access public
+ */
+ function setStartDate($date)
+ {
+ $this->startDate = @date('D, d M Y H:i:s O', @strtotime($date));
+ }
+
+ /**
+ * Set certificate end date
+ *
+ * @param string $date
+ * @access public
+ */
+ function setEndDate($date)
+ {
+ /*
+ To indicate that a certificate has no well-defined expiration date,
+ the notAfter SHOULD be assigned the GeneralizedTime value of
+ 99991231235959Z.
+
+ -- http://tools.ietf.org/html/rfc5280#section-4.1.2.5
+ */
+ if (strtolower($date) == 'lifetime') {
+ $temp = '99991231235959Z';
+ $asn1 = new ASN1();
+ $temp = chr(ASN1::TYPE_GENERALIZED_TIME) . $asn1->_encodeLength(strlen($temp)) . $temp;
+ $this->endDate = new Element($temp);
+ } else {
+ $this->endDate = @date('D, d M Y H:i:s O', @strtotime($date));
+ }
+ }
+
+ /**
+ * Set Serial Number
+ *
+ * @param string $serial
+ * @param $base optional
+ * @access public
+ */
+ function setSerialNumber($serial, $base = -256)
+ {
+ $this->serialNumber = new BigInteger($serial, $base);
+ }
+
+ /**
+ * Turns the certificate into a certificate authority
+ *
+ * @access public
+ */
+ function makeCA()
+ {
+ $this->caFlag = true;
+ }
+
+ /**
+ * Check for validity of subarray
+ *
+ * This is intended for use in conjunction with _subArrayUnchecked(),
+ * implementing the checks included in _subArray() but without copying
+ * a potentially large array by passing its reference by-value to is_array().
+ *
+ * @param array $root
+ * @param string $path
+ * @return boolean
+ * @access private
+ */
+ function _isSubArrayValid($root, $path)
+ {
+ if (!is_array($root)) {
+ return false;
+ }
+
+ foreach (explode('/', $path) as $i) {
+ if (!is_array($root)) {
+ return false;
+ }
+
+ if (!isset($root[$i])) {
+ return true;
+ }
+
+ $root = $root[$i];
+ }
+
+ return true;
+ }
+
+ /**
+ * Get a reference to a subarray
+ *
+ * This variant of _subArray() does no is_array() checking,
+ * so $root should be checked with _isSubArrayValid() first.
+ *
+ * This is here for performance reasons:
+ * Passing a reference (i.e. $root) by-value (i.e. to is_array())
+ * creates a copy. If $root is an especially large array, this is expensive.
+ *
+ * @param array $root
+ * @param string $path absolute path with / as component separator
+ * @param bool $create optional
+ * @access private
+ * @return array|false
+ */
+ function &_subArrayUnchecked(&$root, $path, $create = false)
+ {
+ $false = false;
+
+ foreach (explode('/', $path) as $i) {
+ if (!isset($root[$i])) {
+ if (!$create) {
+ return $false;
+ }
+
+ $root[$i] = array();
+ }
+
+ $root = &$root[$i];
+ }
+
+ return $root;
+ }
+
+ /**
+ * Get a reference to a subarray
+ *
+ * @param array $root
+ * @param string $path absolute path with / as component separator
+ * @param bool $create optional
+ * @access private
+ * @return array|false
+ */
+ function &_subArray(&$root, $path, $create = false)
+ {
+ $false = false;
+
+ if (!is_array($root)) {
+ return $false;
+ }
+
+ foreach (explode('/', $path) as $i) {
+ if (!is_array($root)) {
+ return $false;
+ }
+
+ if (!isset($root[$i])) {
+ if (!$create) {
+ return $false;
+ }
+
+ $root[$i] = array();
+ }
+
+ $root = &$root[$i];
+ }
+
+ return $root;
+ }
+
+ /**
+ * Get a reference to an extension subarray
+ *
+ * @param array $root
+ * @param string $path optional absolute path with / as component separator
+ * @param bool $create optional
+ * @access private
+ * @return array|false
+ */
+ function &_extensions(&$root, $path = null, $create = false)
+ {
+ if (!isset($root)) {
+ $root = $this->currentCert;
+ }
+
+ switch (true) {
+ case !empty($path):
+ case !is_array($root):
+ break;
+ case isset($root['tbsCertificate']):
+ $path = 'tbsCertificate/extensions';
+ break;
+ case isset($root['tbsCertList']):
+ $path = 'tbsCertList/crlExtensions';
+ break;
+ case isset($root['certificationRequestInfo']):
+ $pth = 'certificationRequestInfo/attributes';
+ $attributes = &$this->_subArray($root, $pth, $create);
+
+ if (is_array($attributes)) {
+ foreach ($attributes as $key => $value) {
+ if ($value['type'] == 'pkcs-9-at-extensionRequest') {
+ $path = "$pth/$key/value/0";
+ break 2;
+ }
+ }
+ if ($create) {
+ $key = count($attributes);
+ $attributes[] = array('type' => 'pkcs-9-at-extensionRequest', 'value' => array());
+ $path = "$pth/$key/value/0";
+ }
+ }
+ break;
+ }
+
+ $extensions = &$this->_subArray($root, $path, $create);
+
+ if (!is_array($extensions)) {
+ $false = false;
+ return $false;
+ }
+
+ return $extensions;
+ }
+
+ /**
+ * Remove an Extension
+ *
+ * @param string $id
+ * @param string $path optional
+ * @access private
+ * @return bool
+ */
+ function _removeExtension($id, $path = null)
+ {
+ $extensions = &$this->_extensions($this->currentCert, $path);
+
+ if (!is_array($extensions)) {
+ return false;
+ }
+
+ $result = false;
+ foreach ($extensions as $key => $value) {
+ if ($value['extnId'] == $id) {
+ unset($extensions[$key]);
+ $result = true;
+ }
+ }
+
+ $extensions = array_values($extensions);
+ return $result;
+ }
+
+ /**
+ * Get an Extension
+ *
+ * Returns the extension if it exists and false if not
+ *
+ * @param string $id
+ * @param array $cert optional
+ * @param string $path optional
+ * @access private
+ * @return mixed
+ */
+ function _getExtension($id, $cert = null, $path = null)
+ {
+ $extensions = $this->_extensions($cert, $path);
+
+ if (!is_array($extensions)) {
+ return false;
+ }
+
+ foreach ($extensions as $key => $value) {
+ if ($value['extnId'] == $id) {
+ return $value['extnValue'];
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Returns a list of all extensions in use
+ *
+ * @param array $cert optional
+ * @param string $path optional
+ * @access private
+ * @return array
+ */
+ function _getExtensions($cert = null, $path = null)
+ {
+ $exts = $this->_extensions($cert, $path);
+ $extensions = array();
+
+ if (is_array($exts)) {
+ foreach ($exts as $extension) {
+ $extensions[] = $extension['extnId'];
+ }
+ }
+
+ return $extensions;
+ }
+
+ /**
+ * Set an Extension
+ *
+ * @param string $id
+ * @param mixed $value
+ * @param bool $critical optional
+ * @param bool $replace optional
+ * @param string $path optional
+ * @access private
+ * @return bool
+ */
+ function _setExtension($id, $value, $critical = false, $replace = true, $path = null)
+ {
+ $extensions = &$this->_extensions($this->currentCert, $path, true);
+
+ if (!is_array($extensions)) {
+ return false;
+ }
+
+ $newext = array('extnId' => $id, 'critical' => $critical, 'extnValue' => $value);
+
+ foreach ($extensions as $key => $value) {
+ if ($value['extnId'] == $id) {
+ if (!$replace) {
+ return false;
+ }
+
+ $extensions[$key] = $newext;
+ return true;
+ }
+ }
+
+ $extensions[] = $newext;
+ return true;
+ }
+
+ /**
+ * Remove a certificate, CSR or CRL Extension
+ *
+ * @param string $id
+ * @access public
+ * @return bool
+ */
+ function removeExtension($id)
+ {
+ return $this->_removeExtension($id);
+ }
+
+ /**
+ * Get a certificate, CSR or CRL Extension
+ *
+ * Returns the extension if it exists and false if not
+ *
+ * @param string $id
+ * @param array $cert optional
+ * @access public
+ * @return mixed
+ */
+ function getExtension($id, $cert = null)
+ {
+ return $this->_getExtension($id, $cert);
+ }
+
+ /**
+ * Returns a list of all extensions in use in certificate, CSR or CRL
+ *
+ * @param array $cert optional
+ * @access public
+ * @return array
+ */
+ function getExtensions($cert = null)
+ {
+ return $this->_getExtensions($cert);
+ }
+
+ /**
+ * Set a certificate, CSR or CRL Extension
+ *
+ * @param string $id
+ * @param mixed $value
+ * @param bool $critical optional
+ * @param bool $replace optional
+ * @access public
+ * @return bool
+ */
+ function setExtension($id, $value, $critical = false, $replace = true)
+ {
+ return $this->_setExtension($id, $value, $critical, $replace);
+ }
+
+ /**
+ * Remove a CSR attribute.
+ *
+ * @param string $id
+ * @param int $disposition optional
+ * @access public
+ * @return bool
+ */
+ function removeAttribute($id, $disposition = self::ATTR_ALL)
+ {
+ $attributes = &$this->_subArray($this->currentCert, 'certificationRequestInfo/attributes');
+
+ if (!is_array($attributes)) {
+ return false;
+ }
+
+ $result = false;
+ foreach ($attributes as $key => $attribute) {
+ if ($attribute['type'] == $id) {
+ $n = count($attribute['value']);
+ switch (true) {
+ case $disposition == self::ATTR_APPEND:
+ case $disposition == self::ATTR_REPLACE:
+ return false;
+ case $disposition >= $n:
+ $disposition -= $n;
+ break;
+ case $disposition == self::ATTR_ALL:
+ case $n == 1:
+ unset($attributes[$key]);
+ $result = true;
+ break;
+ default:
+ unset($attributes[$key]['value'][$disposition]);
+ $attributes[$key]['value'] = array_values($attributes[$key]['value']);
+ $result = true;
+ break;
+ }
+ if ($result && $disposition != self::ATTR_ALL) {
+ break;
+ }
+ }
+ }
+
+ $attributes = array_values($attributes);
+ return $result;
+ }
+
+ /**
+ * Get a CSR attribute
+ *
+ * Returns the attribute if it exists and false if not
+ *
+ * @param string $id
+ * @param int $disposition optional
+ * @param array $csr optional
+ * @access public
+ * @return mixed
+ */
+ function getAttribute($id, $disposition = self::ATTR_ALL, $csr = null)
+ {
+ if (empty($csr)) {
+ $csr = $this->currentCert;
+ }
+
+ $attributes = $this->_subArray($csr, 'certificationRequestInfo/attributes');
+
+ if (!is_array($attributes)) {
+ return false;
+ }
+
+ foreach ($attributes as $key => $attribute) {
+ if ($attribute['type'] == $id) {
+ $n = count($attribute['value']);
+ switch (true) {
+ case $disposition == self::ATTR_APPEND:
+ case $disposition == self::ATTR_REPLACE:
+ return false;
+ case $disposition == self::ATTR_ALL:
+ return $attribute['value'];
+ case $disposition >= $n:
+ $disposition -= $n;
+ break;
+ default:
+ return $attribute['value'][$disposition];
+ }
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Returns a list of all CSR attributes in use
+ *
+ * @param array $csr optional
+ * @access public
+ * @return array
+ */
+ function getAttributes($csr = null)
+ {
+ if (empty($csr)) {
+ $csr = $this->currentCert;
+ }
+
+ $attributes = $this->_subArray($csr, 'certificationRequestInfo/attributes');
+ $attrs = array();
+
+ if (is_array($attributes)) {
+ foreach ($attributes as $attribute) {
+ $attrs[] = $attribute['type'];
+ }
+ }
+
+ return $attrs;
+ }
+
+ /**
+ * Set a CSR attribute
+ *
+ * @param string $id
+ * @param mixed $value
+ * @param bool $disposition optional
+ * @access public
+ * @return bool
+ */
+ function setAttribute($id, $value, $disposition = self::ATTR_ALL)
+ {
+ $attributes = &$this->_subArray($this->currentCert, 'certificationRequestInfo/attributes', true);
+
+ if (!is_array($attributes)) {
+ return false;
+ }
+
+ switch ($disposition) {
+ case self::ATTR_REPLACE:
+ $disposition = self::ATTR_APPEND;
+ case self::ATTR_ALL:
+ $this->removeAttribute($id);
+ break;
+ }
+
+ foreach ($attributes as $key => $attribute) {
+ if ($attribute['type'] == $id) {
+ $n = count($attribute['value']);
+ switch (true) {
+ case $disposition == self::ATTR_APPEND:
+ $last = $key;
+ break;
+ case $disposition >= $n:
+ $disposition -= $n;
+ break;
+ default:
+ $attributes[$key]['value'][$disposition] = $value;
+ return true;
+ }
+ }
+ }
+
+ switch (true) {
+ case $disposition >= 0:
+ return false;
+ case isset($last):
+ $attributes[$last]['value'][] = $value;
+ break;
+ default:
+ $attributes[] = array('type' => $id, 'value' => $disposition == self::ATTR_ALL ? $value: array($value));
+ break;
+ }
+
+ return true;
+ }
+
+ /**
+ * Sets the subject key identifier
+ *
+ * This is used by the id-ce-authorityKeyIdentifier and the id-ce-subjectKeyIdentifier extensions.
+ *
+ * @param string $value
+ * @access public
+ */
+ function setKeyIdentifier($value)
+ {
+ if (empty($value)) {
+ unset($this->currentKeyIdentifier);
+ } else {
+ $this->currentKeyIdentifier = base64_encode($value);
+ }
+ }
+
+ /**
+ * Compute a public key identifier.
+ *
+ * Although key identifiers may be set to any unique value, this function
+ * computes key identifiers from public key according to the two
+ * recommended methods (4.2.1.2 RFC 3280).
+ * Highly polymorphic: try to accept all possible forms of key:
+ * - Key object
+ * - \phpseclib\File\X509 object with public or private key defined
+ * - Certificate or CSR array
+ * - \phpseclib\File\ASN1\Element object
+ * - PEM or DER string
+ *
+ * @param mixed $key optional
+ * @param int $method optional
+ * @access public
+ * @return string binary key identifier
+ */
+ function computeKeyIdentifier($key = null, $method = 1)
+ {
+ if (is_null($key)) {
+ $key = $this;
+ }
+
+ switch (true) {
+ case is_string($key):
+ break;
+ case is_array($key) && isset($key['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey']):
+ return $this->computeKeyIdentifier($key['tbsCertificate']['subjectPublicKeyInfo']['subjectPublicKey'], $method);
+ case is_array($key) && isset($key['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']):
+ return $this->computeKeyIdentifier($key['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey'], $method);
+ case !is_object($key):
+ return false;
+ case $key instanceof Element:
+ // Assume the element is a bitstring-packed key.
+ $asn1 = new ASN1();
+ $decoded = $asn1->decodeBER($key->element);
+ if (empty($decoded)) {
+ return false;
+ }
+ $raw = $asn1->asn1map($decoded[0], array('type' => ASN1::TYPE_BIT_STRING));
+ if (empty($raw)) {
+ return false;
+ }
+ $raw = base64_decode($raw);
+ // If the key is private, compute identifier from its corresponding public key.
+ $key = new RSA();
+ if (!$key->loadKey($raw)) {
+ return false; // Not an unencrypted RSA key.
+ }
+ if ($key->getPrivateKey() !== false) { // If private.
+ return $this->computeKeyIdentifier($key, $method);
+ }
+ $key = $raw; // Is a public key.
+ break;
+ case $key instanceof X509:
+ if (isset($key->publicKey)) {
+ return $this->computeKeyIdentifier($key->publicKey, $method);
+ }
+ if (isset($key->privateKey)) {
+ return $this->computeKeyIdentifier($key->privateKey, $method);
+ }
+ if (isset($key->currentCert['tbsCertificate']) || isset($key->currentCert['certificationRequestInfo'])) {
+ return $this->computeKeyIdentifier($key->currentCert, $method);
+ }
+ return false;
+ default: // Should be a key object (i.e.: \phpseclib\Crypt\RSA).
+ $key = $key->getPublicKey(RSA::PUBLIC_FORMAT_PKCS1);
+ break;
+ }
+
+ // If in PEM format, convert to binary.
+ $key = $this->_extractBER($key);
+
+ // Now we have the key string: compute its sha-1 sum.
+ $hash = new Hash('sha1');
+ $hash = $hash->hash($key);
+
+ if ($method == 2) {
+ $hash = substr($hash, -8);
+ $hash[0] = chr((ord($hash[0]) & 0x0F) | 0x40);
+ }
+
+ return $hash;
+ }
+
+ /**
+ * Format a public key as appropriate
+ *
+ * @access private
+ * @return array
+ */
+ function _formatSubjectPublicKey()
+ {
+ if ($this->publicKey instanceof RSA) {
+ // the following two return statements do the same thing. i dunno.. i just prefer the later for some reason.
+ // the former is a good example of how to do fuzzing on the public key
+ //return new Element(base64_decode(preg_replace('#-.+-|[\r\n]#', '', $this->publicKey->getPublicKey())));
+ return array(
+ 'algorithm' => array('algorithm' => 'rsaEncryption'),
+ 'subjectPublicKey' => $this->publicKey->getPublicKey(RSA::PUBLIC_FORMAT_PKCS1)
+ );
+ }
+
+ return false;
+ }
+
+ /**
+ * Set the domain name's which the cert is to be valid for
+ *
+ * @access public
+ * @return array
+ */
+ function setDomain()
+ {
+ $this->domains = func_get_args();
+ $this->removeDNProp('id-at-commonName');
+ $this->setDNProp('id-at-commonName', $this->domains[0]);
+ }
+
+ /**
+ * Set the IP Addresses's which the cert is to be valid for
+ *
+ * @access public
+ * @param string $ipAddress optional
+ */
+ function setIPAddress()
+ {
+ $this->ipAddresses = func_get_args();
+ /*
+ if (!isset($this->domains)) {
+ $this->removeDNProp('id-at-commonName');
+ $this->setDNProp('id-at-commonName', $this->ipAddresses[0]);
+ }
+ */
+ }
+
+ /**
+ * Helper function to build domain array
+ *
+ * @access private
+ * @param string $domain
+ * @return array
+ */
+ function _dnsName($domain)
+ {
+ return array('dNSName' => $domain);
+ }
+
+ /**
+ * Helper function to build IP Address array
+ *
+ * (IPv6 is not currently supported)
+ *
+ * @access private
+ * @param string $address
+ * @return array
+ */
+ function _iPAddress($address)
+ {
+ return array('iPAddress' => $address);
+ }
+
+ /**
+ * Get the index of a revoked certificate.
+ *
+ * @param array $rclist
+ * @param string $serial
+ * @param bool $create optional
+ * @access private
+ * @return int|false
+ */
+ function _revokedCertificate(&$rclist, $serial, $create = false)
+ {
+ $serial = new BigInteger($serial);
+
+ foreach ($rclist as $i => $rc) {
+ if (!($serial->compare($rc['userCertificate']))) {
+ return $i;
+ }
+ }
+
+ if (!$create) {
+ return false;
+ }
+
+ $i = count($rclist);
+ $rclist[] = array('userCertificate' => $serial,
+ 'revocationDate' => $this->_timeField(@date('D, d M Y H:i:s O')));
+ return $i;
+ }
+
+ /**
+ * Revoke a certificate.
+ *
+ * @param string $serial
+ * @param string $date optional
+ * @access public
+ * @return bool
+ */
+ function revoke($serial, $date = null)
+ {
+ if (isset($this->currentCert['tbsCertList'])) {
+ if (is_array($rclist = &$this->_subArray($this->currentCert, 'tbsCertList/revokedCertificates', true))) {
+ if ($this->_revokedCertificate($rclist, $serial) === false) { // If not yet revoked
+ if (($i = $this->_revokedCertificate($rclist, $serial, true)) !== false) {
+ if (!empty($date)) {
+ $rclist[$i]['revocationDate'] = $this->_timeField($date);
+ }
+
+ return true;
+ }
+ }
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Unrevoke a certificate.
+ *
+ * @param string $serial
+ * @access public
+ * @return bool
+ */
+ function unrevoke($serial)
+ {
+ if (is_array($rclist = &$this->_subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
+ if (($i = $this->_revokedCertificate($rclist, $serial)) !== false) {
+ unset($rclist[$i]);
+ $rclist = array_values($rclist);
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Get a revoked certificate.
+ *
+ * @param string $serial
+ * @access public
+ * @return mixed
+ */
+ function getRevoked($serial)
+ {
+ if (is_array($rclist = $this->_subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
+ if (($i = $this->_revokedCertificate($rclist, $serial)) !== false) {
+ return $rclist[$i];
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * List revoked certificates
+ *
+ * @param array $crl optional
+ * @access public
+ * @return array
+ */
+ function listRevoked($crl = null)
+ {
+ if (!isset($crl)) {
+ $crl = $this->currentCert;
+ }
+
+ if (!isset($crl['tbsCertList'])) {
+ return false;
+ }
+
+ $result = array();
+
+ if (is_array($rclist = $this->_subArray($crl, 'tbsCertList/revokedCertificates'))) {
+ foreach ($rclist as $rc) {
+ $result[] = $rc['userCertificate']->toString();
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * Remove a Revoked Certificate Extension
+ *
+ * @param string $serial
+ * @param string $id
+ * @access public
+ * @return bool
+ */
+ function removeRevokedCertificateExtension($serial, $id)
+ {
+ if (is_array($rclist = &$this->_subArray($this->currentCert, 'tbsCertList/revokedCertificates'))) {
+ if (($i = $this->_revokedCertificate($rclist, $serial)) !== false) {
+ return $this->_removeExtension($id, "tbsCertList/revokedCertificates/$i/crlEntryExtensions");
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Get a Revoked Certificate Extension
+ *
+ * Returns the extension if it exists and false if not
+ *
+ * @param string $serial
+ * @param string $id
+ * @param array $crl optional
+ * @access public
+ * @return mixed
+ */
+ function getRevokedCertificateExtension($serial, $id, $crl = null)
+ {
+ if (!isset($crl)) {
+ $crl = $this->currentCert;
+ }
+
+ if (is_array($rclist = $this->_subArray($crl, 'tbsCertList/revokedCertificates'))) {
+ if (($i = $this->_revokedCertificate($rclist, $serial)) !== false) {
+ return $this->_getExtension($id, $crl, "tbsCertList/revokedCertificates/$i/crlEntryExtensions");
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Returns a list of all extensions in use for a given revoked certificate
+ *
+ * @param string $serial
+ * @param array $crl optional
+ * @access public
+ * @return array
+ */
+ function getRevokedCertificateExtensions($serial, $crl = null)
+ {
+ if (!isset($crl)) {
+ $crl = $this->currentCert;
+ }
+
+ if (is_array($rclist = $this->_subArray($crl, 'tbsCertList/revokedCertificates'))) {
+ if (($i = $this->_revokedCertificate($rclist, $serial)) !== false) {
+ return $this->_getExtensions($crl, "tbsCertList/revokedCertificates/$i/crlEntryExtensions");
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Set a Revoked Certificate Extension
+ *
+ * @param string $serial
+ * @param string $id
+ * @param mixed $value
+ * @param bool $critical optional
+ * @param bool $replace optional
+ * @access public
+ * @return bool
+ */
+ function setRevokedCertificateExtension($serial, $id, $value, $critical = false, $replace = true)
+ {
+ if (isset($this->currentCert['tbsCertList'])) {
+ if (is_array($rclist = &$this->_subArray($this->currentCert, 'tbsCertList/revokedCertificates', true))) {
+ if (($i = $this->_revokedCertificate($rclist, $serial, true)) !== false) {
+ return $this->_setExtension($id, $value, $critical, $replace, "tbsCertList/revokedCertificates/$i/crlEntryExtensions");
+ }
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Extract raw BER from Base64 encoding
+ *
+ * @access private
+ * @param string $str
+ * @return string
+ */
+ function _extractBER($str)
+ {
+ /* X.509 certs are assumed to be base64 encoded but sometimes they'll have additional things in them
+ * above and beyond the ceritificate.
+ * ie. some may have the following preceding the -----BEGIN CERTIFICATE----- line:
+ *
+ * Bag Attributes
+ * localKeyID: 01 00 00 00
+ * subject=/O=organization/OU=org unit/CN=common name
+ * issuer=/O=organization/CN=common name
+ */
+ $temp = preg_replace('#.*?^-+[^-]+-+[\r\n ]*$#ms', '', $str, 1);
+ // remove the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- stuff
+ $temp = preg_replace('#-+[^-]+-+#', '', $temp);
+ // remove new lines
+ $temp = str_replace(array("\r", "\n", ' '), '', $temp);
+ $temp = preg_match('#^[a-zA-Z\d/+]*={0,2}$#', $temp) ? base64_decode($temp) : false;
+ return $temp != false ? $temp : $str;
+ }
+
+ /**
+ * Returns the OID corresponding to a name
+ *
+ * What's returned in the associative array returned by loadX509() (or load*()) is either a name or an OID if
+ * no OID to name mapping is available. The problem with this is that what may be an unmapped OID in one version
+ * of phpseclib may not be unmapped in the next version, so apps that are looking at this OID may not be able
+ * to work from version to version.
+ *
+ * This method will return the OID if a name is passed to it and if no mapping is avialable it'll assume that
+ * what's being passed to it already is an OID and return that instead. A few examples.
+ *
+ * getOID('2.16.840.1.101.3.4.2.1') == '2.16.840.1.101.3.4.2.1'
+ * getOID('id-sha256') == '2.16.840.1.101.3.4.2.1'
+ * getOID('zzz') == 'zzz'
+ *
+ * @access public
+ * @return string
+ */
+ function getOID($name)
+ {
+ static $reverseMap;
+ if (!isset($reverseMap)) {
+ $reverseMap = array_flip($this->oids);
+ }
+ return isset($reverseMap[$name]) ? $reverseMap[$name] : $name;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Math/BigInteger.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Math/BigInteger.php
new file mode 100644
index 00000000..4b13d7c6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Math/BigInteger.php
@@ -0,0 +1,3755 @@
+<?php
+
+/**
+ * Pure-PHP arbitrary precision integer arithmetic library.
+ *
+ * Supports base-2, base-10, base-16, and base-256 numbers. Uses the GMP or BCMath extensions, if available,
+ * and an internal implementation, otherwise.
+ *
+ * PHP version 5
+ *
+ * {@internal (all DocBlock comments regarding implementation - such as the one that follows - refer to the
+ * {@link self::MODE_INTERNAL self::MODE_INTERNAL} mode)
+ *
+ * BigInteger uses base-2**26 to perform operations such as multiplication and division and
+ * base-2**52 (ie. two base 2**26 digits) to perform addition and subtraction. Because the largest possible
+ * value when multiplying two base-2**26 numbers together is a base-2**52 number, double precision floating
+ * point numbers - numbers that should be supported on most hardware and whose significand is 53 bits - are
+ * used. As a consequence, bitwise operators such as >> and << cannot be used, nor can the modulo operator %,
+ * which only supports integers. Although this fact will slow this library down, the fact that such a high
+ * base is being used should more than compensate.
+ *
+ * Numbers are stored in {@link http://en.wikipedia.org/wiki/Endianness little endian} format. ie.
+ * (new \phpseclib\Math\BigInteger(pow(2, 26)))->value = array(0, 1)
+ *
+ * Useful resources are as follows:
+ *
+ * - {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf Handbook of Applied Cryptography (HAC)}
+ * - {@link http://math.libtomcrypt.com/files/tommath.pdf Multi-Precision Math (MPM)}
+ * - Java's BigInteger classes. See /j2se/src/share/classes/java/math in jdk-1_5_0-src-jrl.zip
+ *
+ * Here's an example of how to use this library:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger(2);
+ * $b = new \phpseclib\Math\BigInteger(3);
+ *
+ * $c = $a->add($b);
+ *
+ * echo $c->toString(); // outputs 5
+ * ?>
+ * </code>
+ *
+ * @category Math
+ * @package BigInteger
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2006 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://pear.php.net/package/Math_BigInteger
+ */
+
+namespace phpseclib\Math;
+
+use phpseclib\Crypt\Random;
+
+/**
+ * Pure-PHP arbitrary precision integer arithmetic library. Supports base-2, base-10, base-16, and base-256
+ * numbers.
+ *
+ * @package BigInteger
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class BigInteger
+{
+ /**#@+
+ * Reduction constants
+ *
+ * @access private
+ * @see BigInteger::_reduce()
+ */
+ /**
+ * @see BigInteger::_montgomery()
+ * @see BigInteger::_prepMontgomery()
+ */
+ const MONTGOMERY = 0;
+ /**
+ * @see BigInteger::_barrett()
+ */
+ const BARRETT = 1;
+ /**
+ * @see BigInteger::_mod2()
+ */
+ const POWEROF2 = 2;
+ /**
+ * @see BigInteger::_remainder()
+ */
+ const CLASSIC = 3;
+ /**
+ * @see BigInteger::__clone()
+ */
+ const NONE = 4;
+ /**#@-*/
+
+ /**#@+
+ * Array constants
+ *
+ * Rather than create a thousands and thousands of new BigInteger objects in repeated function calls to add() and
+ * multiply() or whatever, we'll just work directly on arrays, taking them in as parameters and returning them.
+ *
+ * @access private
+ */
+ /**
+ * $result[self::VALUE] contains the value.
+ */
+ const VALUE = 0;
+ /**
+ * $result[self::SIGN] contains the sign.
+ */
+ const SIGN = 1;
+ /**#@-*/
+
+ /**#@+
+ * @access private
+ * @see BigInteger::_montgomery()
+ * @see BigInteger::_barrett()
+ */
+ /**
+ * Cache constants
+ *
+ * $cache[self::VARIABLE] tells us whether or not the cached data is still valid.
+ */
+ const VARIABLE = 0;
+ /**
+ * $cache[self::DATA] contains the cached data.
+ */
+ const DATA = 1;
+ /**#@-*/
+
+ /**#@+
+ * Mode constants.
+ *
+ * @access private
+ * @see BigInteger::__construct()
+ */
+ /**
+ * To use the pure-PHP implementation
+ */
+ const MODE_INTERNAL = 1;
+ /**
+ * To use the BCMath library
+ *
+ * (if enabled; otherwise, the internal implementation will be used)
+ */
+ const MODE_BCMATH = 2;
+ /**
+ * To use the GMP library
+ *
+ * (if present; otherwise, either the BCMath or the internal implementation will be used)
+ */
+ const MODE_GMP = 3;
+ /**#@-*/
+
+ /**
+ * Karatsuba Cutoff
+ *
+ * At what point do we switch between Karatsuba multiplication and schoolbook long multiplication?
+ *
+ * @access private
+ */
+ const KARATSUBA_CUTOFF = 25;
+
+ /**#@+
+ * Static properties used by the pure-PHP implementation.
+ *
+ * @see __construct()
+ */
+ protected static $base;
+ protected static $baseFull;
+ protected static $maxDigit;
+ protected static $msb;
+
+ /**
+ * $max10 in greatest $max10Len satisfying
+ * $max10 = 10**$max10Len <= 2**$base.
+ */
+ protected static $max10;
+
+ /**
+ * $max10Len in greatest $max10Len satisfying
+ * $max10 = 10**$max10Len <= 2**$base.
+ */
+ protected static $max10Len;
+ protected static $maxDigit2;
+ /**#@-*/
+
+ /**
+ * Holds the BigInteger's value.
+ *
+ * @var array
+ * @access private
+ */
+ var $value;
+
+ /**
+ * Holds the BigInteger's magnitude.
+ *
+ * @var bool
+ * @access private
+ */
+ var $is_negative = false;
+
+ /**
+ * Precision
+ *
+ * @see self::setPrecision()
+ * @access private
+ */
+ var $precision = -1;
+
+ /**
+ * Precision Bitmask
+ *
+ * @see self::setPrecision()
+ * @access private
+ */
+ var $bitmask = false;
+
+ /**
+ * Mode independent value used for serialization.
+ *
+ * If the bcmath or gmp extensions are installed $this->value will be a non-serializable resource, hence the need for
+ * a variable that'll be serializable regardless of whether or not extensions are being used. Unlike $this->value,
+ * however, $this->hex is only calculated when $this->__sleep() is called.
+ *
+ * @see self::__sleep()
+ * @see self::__wakeup()
+ * @var string
+ * @access private
+ */
+ var $hex;
+
+ /**
+ * Converts base-2, base-10, base-16, and binary strings (base-256) to BigIntegers.
+ *
+ * If the second parameter - $base - is negative, then it will be assumed that the number's are encoded using
+ * two's compliment. The sole exception to this is -10, which is treated the same as 10 is.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('0x32', 16); // 50 in base-16
+ *
+ * echo $a->toString(); // outputs 50
+ * ?>
+ * </code>
+ *
+ * @param $x base-10 number or base-$base number if $base set.
+ * @param int $base
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ */
+ function __construct($x = 0, $base = 10)
+ {
+ if (!defined('MATH_BIGINTEGER_MODE')) {
+ switch (true) {
+ case extension_loaded('gmp'):
+ define('MATH_BIGINTEGER_MODE', self::MODE_GMP);
+ break;
+ case extension_loaded('bcmath'):
+ define('MATH_BIGINTEGER_MODE', self::MODE_BCMATH);
+ break;
+ default:
+ define('MATH_BIGINTEGER_MODE', self::MODE_INTERNAL);
+ }
+ }
+
+ if (extension_loaded('openssl') && !defined('MATH_BIGINTEGER_OPENSSL_DISABLE') && !defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) {
+ // some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work
+ ob_start();
+ @phpinfo();
+ $content = ob_get_contents();
+ ob_end_clean();
+
+ preg_match_all('#OpenSSL (Header|Library) Version(.*)#im', $content, $matches);
+
+ $versions = array();
+ if (!empty($matches[1])) {
+ for ($i = 0; $i < count($matches[1]); $i++) {
+ $fullVersion = trim(str_replace('=>', '', strip_tags($matches[2][$i])));
+
+ // Remove letter part in OpenSSL version
+ if (!preg_match('/(\d+\.\d+\.\d+)/i', $fullVersion, $m)) {
+ $versions[$matches[1][$i]] = $fullVersion;
+ } else {
+ $versions[$matches[1][$i]] = $m[0];
+ }
+ }
+ }
+
+ // it doesn't appear that OpenSSL versions were reported upon until PHP 5.3+
+ switch (true) {
+ case !isset($versions['Header']):
+ case !isset($versions['Library']):
+ case $versions['Header'] == $versions['Library']:
+ case version_compare($versions['Header'], '1.0.0') >= 0 && version_compare($versions['Library'], '1.0.0') >= 0:
+ define('MATH_BIGINTEGER_OPENSSL_ENABLED', true);
+ break;
+ default:
+ define('MATH_BIGINTEGER_OPENSSL_DISABLE', true);
+ }
+ }
+
+ if (!defined('PHP_INT_SIZE')) {
+ define('PHP_INT_SIZE', 4);
+ }
+
+ if (empty(self::$base) && MATH_BIGINTEGER_MODE == self::MODE_INTERNAL) {
+ switch (PHP_INT_SIZE) {
+ case 8: // use 64-bit integers if int size is 8 bytes
+ self::$base = 31;
+ self::$baseFull = 0x80000000;
+ self::$maxDigit = 0x7FFFFFFF;
+ self::$msb = 0x40000000;
+ self::$max10 = 1000000000;
+ self::$max10Len = 9;
+ self::$maxDigit2 = pow(2, 62);
+ break;
+ //case 4: // use 64-bit floats if int size is 4 bytes
+ default:
+ self::$base = 26;
+ self::$baseFull = 0x4000000;
+ self::$maxDigit = 0x3FFFFFF;
+ self::$msb = 0x2000000;
+ self::$max10 = 10000000;
+ self::$max10Len = 7;
+ self::$maxDigit2 = pow(2, 52); // pow() prevents truncation
+ }
+ }
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ switch (true) {
+ case is_resource($x) && get_resource_type($x) == 'GMP integer':
+ // PHP 5.6 switched GMP from using resources to objects
+ case $x instanceof \GMP:
+ $this->value = $x;
+ return;
+ }
+ $this->value = gmp_init(0);
+ break;
+ case self::MODE_BCMATH:
+ $this->value = '0';
+ break;
+ default:
+ $this->value = array();
+ }
+
+ // '0' counts as empty() but when the base is 256 '0' is equal to ord('0') or 48
+ // '0' is the only value like this per http://php.net/empty
+ if (empty($x) && (abs($base) != 256 || $x !== '0')) {
+ return;
+ }
+
+ switch ($base) {
+ case -256:
+ if (ord($x[0]) & 0x80) {
+ $x = ~$x;
+ $this->is_negative = true;
+ }
+ case 256:
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $sign = $this->is_negative ? '-' : '';
+ $this->value = gmp_init($sign . '0x' . bin2hex($x));
+ break;
+ case self::MODE_BCMATH:
+ // round $len to the nearest 4 (thanks, DavidMJ!)
+ $len = (strlen($x) + 3) & 0xFFFFFFFC;
+
+ $x = str_pad($x, $len, chr(0), STR_PAD_LEFT);
+
+ for ($i = 0; $i < $len; $i+= 4) {
+ $this->value = bcmul($this->value, '4294967296', 0); // 4294967296 == 2**32
+ $this->value = bcadd($this->value, 0x1000000 * ord($x[$i]) + ((ord($x[$i + 1]) << 16) | (ord($x[$i + 2]) << 8) | ord($x[$i + 3])), 0);
+ }
+
+ if ($this->is_negative) {
+ $this->value = '-' . $this->value;
+ }
+
+ break;
+ // converts a base-2**8 (big endian / msb) number to base-2**26 (little endian / lsb)
+ default:
+ while (strlen($x)) {
+ $this->value[] = $this->_bytes2int($this->_base256_rshift($x, self::$base));
+ }
+ }
+
+ if ($this->is_negative) {
+ if (MATH_BIGINTEGER_MODE != self::MODE_INTERNAL) {
+ $this->is_negative = false;
+ }
+ $temp = $this->add(new static('-1'));
+ $this->value = $temp->value;
+ }
+ break;
+ case 16:
+ case -16:
+ if ($base > 0 && $x[0] == '-') {
+ $this->is_negative = true;
+ $x = substr($x, 1);
+ }
+
+ $x = preg_replace('#^(?:0x)?([A-Fa-f0-9]*).*#', '$1', $x);
+
+ $is_negative = false;
+ if ($base < 0 && hexdec($x[0]) >= 8) {
+ $this->is_negative = $is_negative = true;
+ $x = bin2hex(~pack('H*', $x));
+ }
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = $this->is_negative ? '-0x' . $x : '0x' . $x;
+ $this->value = gmp_init($temp);
+ $this->is_negative = false;
+ break;
+ case self::MODE_BCMATH:
+ $x = (strlen($x) & 1) ? '0' . $x : $x;
+ $temp = new static(pack('H*', $x), 256);
+ $this->value = $this->is_negative ? '-' . $temp->value : $temp->value;
+ $this->is_negative = false;
+ break;
+ default:
+ $x = (strlen($x) & 1) ? '0' . $x : $x;
+ $temp = new static(pack('H*', $x), 256);
+ $this->value = $temp->value;
+ }
+
+ if ($is_negative) {
+ $temp = $this->add(new static('-1'));
+ $this->value = $temp->value;
+ }
+ break;
+ case 10:
+ case -10:
+ // (?<!^)(?:-).*: find any -'s that aren't at the beginning and then any characters that follow that
+ // (?<=^|-)0*: find any 0's that are preceded by the start of the string or by a - (ie. octals)
+ // [^-0-9].*: find any non-numeric characters and then any characters that follow that
+ $x = preg_replace('#(?<!^)(?:-).*|(?<=^|-)0*|[^-0-9].*#', '', $x);
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $this->value = gmp_init($x);
+ break;
+ case self::MODE_BCMATH:
+ // explicitly casting $x to a string is necessary, here, since doing $x[0] on -1 yields different
+ // results then doing it on '-1' does (modInverse does $x[0])
+ $this->value = $x === '-' ? '0' : (string) $x;
+ break;
+ default:
+ $temp = new static();
+
+ $multiplier = new static();
+ $multiplier->value = array(self::$max10);
+
+ if ($x[0] == '-') {
+ $this->is_negative = true;
+ $x = substr($x, 1);
+ }
+
+ $x = str_pad($x, strlen($x) + ((self::$max10Len - 1) * strlen($x)) % self::$max10Len, 0, STR_PAD_LEFT);
+ while (strlen($x)) {
+ $temp = $temp->multiply($multiplier);
+ $temp = $temp->add(new static($this->_int2bytes(substr($x, 0, self::$max10Len)), 256));
+ $x = substr($x, self::$max10Len);
+ }
+
+ $this->value = $temp->value;
+ }
+ break;
+ case 2: // base-2 support originally implemented by Lluis Pamies - thanks!
+ case -2:
+ if ($base > 0 && $x[0] == '-') {
+ $this->is_negative = true;
+ $x = substr($x, 1);
+ }
+
+ $x = preg_replace('#^([01]*).*#', '$1', $x);
+ $x = str_pad($x, strlen($x) + (3 * strlen($x)) % 4, 0, STR_PAD_LEFT);
+
+ $str = '0x';
+ while (strlen($x)) {
+ $part = substr($x, 0, 4);
+ $str.= dechex(bindec($part));
+ $x = substr($x, 4);
+ }
+
+ if ($this->is_negative) {
+ $str = '-' . $str;
+ }
+
+ $temp = new static($str, 8 * $base); // ie. either -16 or +16
+ $this->value = $temp->value;
+ $this->is_negative = $temp->is_negative;
+
+ break;
+ default:
+ // base not supported, so we'll let $this == 0
+ }
+ }
+
+ /**
+ * Converts a BigInteger to a byte string (eg. base-256).
+ *
+ * Negative numbers are saved as positive numbers, unless $twos_compliment is set to true, at which point, they're
+ * saved as two's compliment.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('65');
+ *
+ * echo $a->toBytes(); // outputs chr(65)
+ * ?>
+ * </code>
+ *
+ * @param bool $twos_compliment
+ * @return string
+ * @access public
+ * @internal Converts a base-2**26 number to base-2**8
+ */
+ function toBytes($twos_compliment = false)
+ {
+ if ($twos_compliment) {
+ $comparison = $this->compare(new static());
+ if ($comparison == 0) {
+ return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : '';
+ }
+
+ $temp = $comparison < 0 ? $this->add(new static(1)) : $this->copy();
+ $bytes = $temp->toBytes();
+
+ if (empty($bytes)) { // eg. if the number we're trying to convert is -1
+ $bytes = chr(0);
+ }
+
+ if (ord($bytes[0]) & 0x80) {
+ $bytes = chr(0) . $bytes;
+ }
+
+ return $comparison < 0 ? ~$bytes : $bytes;
+ }
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ if (gmp_cmp($this->value, gmp_init(0)) == 0) {
+ return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : '';
+ }
+
+ $temp = gmp_strval(gmp_abs($this->value), 16);
+ $temp = (strlen($temp) & 1) ? '0' . $temp : $temp;
+ $temp = pack('H*', $temp);
+
+ return $this->precision > 0 ?
+ substr(str_pad($temp, $this->precision >> 3, chr(0), STR_PAD_LEFT), -($this->precision >> 3)) :
+ ltrim($temp, chr(0));
+ case self::MODE_BCMATH:
+ if ($this->value === '0') {
+ return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : '';
+ }
+
+ $value = '';
+ $current = $this->value;
+
+ if ($current[0] == '-') {
+ $current = substr($current, 1);
+ }
+
+ while (bccomp($current, '0', 0) > 0) {
+ $temp = bcmod($current, '16777216');
+ $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
+ $current = bcdiv($current, '16777216', 0);
+ }
+
+ return $this->precision > 0 ?
+ substr(str_pad($value, $this->precision >> 3, chr(0), STR_PAD_LEFT), -($this->precision >> 3)) :
+ ltrim($value, chr(0));
+ }
+
+ if (!count($this->value)) {
+ return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : '';
+ }
+ $result = $this->_int2bytes($this->value[count($this->value) - 1]);
+
+ $temp = $this->copy();
+
+ for ($i = count($temp->value) - 2; $i >= 0; --$i) {
+ $temp->_base256_lshift($result, self::$base);
+ $result = $result | str_pad($temp->_int2bytes($temp->value[$i]), strlen($result), chr(0), STR_PAD_LEFT);
+ }
+
+ return $this->precision > 0 ?
+ str_pad(substr($result, -(($this->precision + 7) >> 3)), ($this->precision + 7) >> 3, chr(0), STR_PAD_LEFT) :
+ $result;
+ }
+
+ /**
+ * Converts a BigInteger to a hex string (eg. base-16)).
+ *
+ * Negative numbers are saved as positive numbers, unless $twos_compliment is set to true, at which point, they're
+ * saved as two's compliment.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('65');
+ *
+ * echo $a->toHex(); // outputs '41'
+ * ?>
+ * </code>
+ *
+ * @param bool $twos_compliment
+ * @return string
+ * @access public
+ * @internal Converts a base-2**26 number to base-2**8
+ */
+ function toHex($twos_compliment = false)
+ {
+ return bin2hex($this->toBytes($twos_compliment));
+ }
+
+ /**
+ * Converts a BigInteger to a bit string (eg. base-2).
+ *
+ * Negative numbers are saved as positive numbers, unless $twos_compliment is set to true, at which point, they're
+ * saved as two's compliment.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('65');
+ *
+ * echo $a->toBits(); // outputs '1000001'
+ * ?>
+ * </code>
+ *
+ * @param bool $twos_compliment
+ * @return string
+ * @access public
+ * @internal Converts a base-2**26 number to base-2**2
+ */
+ function toBits($twos_compliment = false)
+ {
+ $hex = $this->toHex($twos_compliment);
+ $bits = '';
+ for ($i = strlen($hex) - 8, $start = strlen($hex) & 7; $i >= $start; $i-=8) {
+ $bits = str_pad(decbin(hexdec(substr($hex, $i, 8))), 32, '0', STR_PAD_LEFT) . $bits;
+ }
+ if ($start) { // hexdec('') == 0
+ $bits = str_pad(decbin(hexdec(substr($hex, 0, $start))), 8, '0', STR_PAD_LEFT) . $bits;
+ }
+ $result = $this->precision > 0 ? substr($bits, -$this->precision) : ltrim($bits, '0');
+
+ if ($twos_compliment && $this->compare(new static()) > 0 && $this->precision <= 0) {
+ return '0' . $result;
+ }
+
+ return $result;
+ }
+
+ /**
+ * Converts a BigInteger to a base-10 number.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('50');
+ *
+ * echo $a->toString(); // outputs 50
+ * ?>
+ * </code>
+ *
+ * @return string
+ * @access public
+ * @internal Converts a base-2**26 number to base-10**7 (which is pretty much base-10)
+ */
+ function toString()
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ return gmp_strval($this->value);
+ case self::MODE_BCMATH:
+ if ($this->value === '0') {
+ return '0';
+ }
+
+ return ltrim($this->value, '0');
+ }
+
+ if (!count($this->value)) {
+ return '0';
+ }
+
+ $temp = $this->copy();
+ $temp->is_negative = false;
+
+ $divisor = new static();
+ $divisor->value = array(self::$max10);
+ $result = '';
+ while (count($temp->value)) {
+ list($temp, $mod) = $temp->divide($divisor);
+ $result = str_pad(isset($mod->value[0]) ? $mod->value[0] : '', self::$max10Len, '0', STR_PAD_LEFT) . $result;
+ }
+ $result = ltrim($result, '0');
+ if (empty($result)) {
+ $result = '0';
+ }
+
+ if ($this->is_negative) {
+ $result = '-' . $result;
+ }
+
+ return $result;
+ }
+
+ /**
+ * Copy an object
+ *
+ * PHP5 passes objects by reference while PHP4 passes by value. As such, we need a function to guarantee
+ * that all objects are passed by value, when appropriate. More information can be found here:
+ *
+ * {@link http://php.net/language.oop5.basic#51624}
+ *
+ * @access public
+ * @see self::__clone()
+ * @return \phpseclib\Math\BigInteger
+ */
+ function copy()
+ {
+ $temp = new static();
+ $temp->value = $this->value;
+ $temp->is_negative = $this->is_negative;
+ $temp->precision = $this->precision;
+ $temp->bitmask = $this->bitmask;
+ return $temp;
+ }
+
+ /**
+ * __toString() magic method
+ *
+ * Will be called, automatically, if you're supporting just PHP5. If you're supporting PHP4, you'll need to call
+ * toString().
+ *
+ * @access public
+ * @internal Implemented per a suggestion by Techie-Michael - thanks!
+ */
+ function __toString()
+ {
+ return $this->toString();
+ }
+
+ /**
+ * __clone() magic method
+ *
+ * Although you can call BigInteger::__toString() directly in PHP5, you cannot call BigInteger::__clone() directly
+ * in PHP5. You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
+ * only syntax of $y = clone $x. As such, if you're trying to write an application that works on both PHP4 and
+ * PHP5, call BigInteger::copy(), instead.
+ *
+ * @access public
+ * @see self::copy()
+ * @return \phpseclib\Math\BigInteger
+ */
+ function __clone()
+ {
+ return $this->copy();
+ }
+
+ /**
+ * __sleep() magic method
+ *
+ * Will be called, automatically, when serialize() is called on a BigInteger object.
+ *
+ * @see self::__wakeup()
+ * @access public
+ */
+ function __sleep()
+ {
+ $this->hex = $this->toHex(true);
+ $vars = array('hex');
+ if ($this->precision > 0) {
+ $vars[] = 'precision';
+ }
+ return $vars;
+ }
+
+ /**
+ * __wakeup() magic method
+ *
+ * Will be called, automatically, when unserialize() is called on a BigInteger object.
+ *
+ * @see self::__sleep()
+ * @access public
+ */
+ function __wakeup()
+ {
+ $temp = new static($this->hex, -16);
+ $this->value = $temp->value;
+ $this->is_negative = $temp->is_negative;
+ if ($this->precision > 0) {
+ // recalculate $this->bitmask
+ $this->setPrecision($this->precision);
+ }
+ }
+
+ /**
+ * __debugInfo() magic method
+ *
+ * Will be called, automatically, when print_r() or var_dump() are called
+ *
+ * @access public
+ */
+ function __debugInfo()
+ {
+ $opts = array();
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $engine = 'gmp';
+ break;
+ case self::MODE_BCMATH:
+ $engine = 'bcmath';
+ break;
+ case self::MODE_INTERNAL:
+ $engine = 'internal';
+ $opts[] = PHP_INT_SIZE == 8 ? '64-bit' : '32-bit';
+ }
+ if (MATH_BIGINTEGER_MODE != self::MODE_GMP && defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) {
+ $opts[] = 'OpenSSL';
+ }
+ if (!empty($opts)) {
+ $engine.= ' (' . implode($opts, ', ') . ')';
+ }
+ return array(
+ 'value' => '0x' . $this->toHex(true),
+ 'engine' => $engine
+ );
+ }
+
+ /**
+ * Adds two BigIntegers.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('10');
+ * $b = new \phpseclib\Math\BigInteger('20');
+ *
+ * $c = $a->add($b);
+ *
+ * echo $c->toString(); // outputs 30
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $y
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ * @internal Performs base-2**52 addition
+ */
+ function add($y)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = new static();
+ $temp->value = gmp_add($this->value, $y->value);
+
+ return $this->_normalize($temp);
+ case self::MODE_BCMATH:
+ $temp = new static();
+ $temp->value = bcadd($this->value, $y->value, 0);
+
+ return $this->_normalize($temp);
+ }
+
+ $temp = $this->_add($this->value, $this->is_negative, $y->value, $y->is_negative);
+
+ $result = new static();
+ $result->value = $temp[self::VALUE];
+ $result->is_negative = $temp[self::SIGN];
+
+ return $this->_normalize($result);
+ }
+
+ /**
+ * Performs addition.
+ *
+ * @param array $x_value
+ * @param bool $x_negative
+ * @param array $y_value
+ * @param bool $y_negative
+ * @return array
+ * @access private
+ */
+ function _add($x_value, $x_negative, $y_value, $y_negative)
+ {
+ $x_size = count($x_value);
+ $y_size = count($y_value);
+
+ if ($x_size == 0) {
+ return array(
+ self::VALUE => $y_value,
+ self::SIGN => $y_negative
+ );
+ } elseif ($y_size == 0) {
+ return array(
+ self::VALUE => $x_value,
+ self::SIGN => $x_negative
+ );
+ }
+
+ // subtract, if appropriate
+ if ($x_negative != $y_negative) {
+ if ($x_value == $y_value) {
+ return array(
+ self::VALUE => array(),
+ self::SIGN => false
+ );
+ }
+
+ $temp = $this->_subtract($x_value, false, $y_value, false);
+ $temp[self::SIGN] = $this->_compare($x_value, false, $y_value, false) > 0 ?
+ $x_negative : $y_negative;
+
+ return $temp;
+ }
+
+ if ($x_size < $y_size) {
+ $size = $x_size;
+ $value = $y_value;
+ } else {
+ $size = $y_size;
+ $value = $x_value;
+ }
+
+ $value[count($value)] = 0; // just in case the carry adds an extra digit
+
+ $carry = 0;
+ for ($i = 0, $j = 1; $j < $size; $i+=2, $j+=2) {
+ $sum = $x_value[$j] * self::$baseFull + $x_value[$i] + $y_value[$j] * self::$baseFull + $y_value[$i] + $carry;
+ $carry = $sum >= self::$maxDigit2; // eg. floor($sum / 2**52); only possible values (in any base) are 0 and 1
+ $sum = $carry ? $sum - self::$maxDigit2 : $sum;
+
+ $temp = self::$base === 26 ? intval($sum / 0x4000000) : ($sum >> 31);
+
+ $value[$i] = (int) ($sum - self::$baseFull * $temp); // eg. a faster alternative to fmod($sum, 0x4000000)
+ $value[$j] = $temp;
+ }
+
+ if ($j == $size) { // ie. if $y_size is odd
+ $sum = $x_value[$i] + $y_value[$i] + $carry;
+ $carry = $sum >= self::$baseFull;
+ $value[$i] = $carry ? $sum - self::$baseFull : $sum;
+ ++$i; // ie. let $i = $j since we've just done $value[$i]
+ }
+
+ if ($carry) {
+ for (; $value[$i] == self::$maxDigit; ++$i) {
+ $value[$i] = 0;
+ }
+ ++$value[$i];
+ }
+
+ return array(
+ self::VALUE => $this->_trim($value),
+ self::SIGN => $x_negative
+ );
+ }
+
+ /**
+ * Subtracts two BigIntegers.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('10');
+ * $b = new \phpseclib\Math\BigInteger('20');
+ *
+ * $c = $a->subtract($b);
+ *
+ * echo $c->toString(); // outputs -10
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $y
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ * @internal Performs base-2**52 subtraction
+ */
+ function subtract($y)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = new static();
+ $temp->value = gmp_sub($this->value, $y->value);
+
+ return $this->_normalize($temp);
+ case self::MODE_BCMATH:
+ $temp = new static();
+ $temp->value = bcsub($this->value, $y->value, 0);
+
+ return $this->_normalize($temp);
+ }
+
+ $temp = $this->_subtract($this->value, $this->is_negative, $y->value, $y->is_negative);
+
+ $result = new static();
+ $result->value = $temp[self::VALUE];
+ $result->is_negative = $temp[self::SIGN];
+
+ return $this->_normalize($result);
+ }
+
+ /**
+ * Performs subtraction.
+ *
+ * @param array $x_value
+ * @param bool $x_negative
+ * @param array $y_value
+ * @param bool $y_negative
+ * @return array
+ * @access private
+ */
+ function _subtract($x_value, $x_negative, $y_value, $y_negative)
+ {
+ $x_size = count($x_value);
+ $y_size = count($y_value);
+
+ if ($x_size == 0) {
+ return array(
+ self::VALUE => $y_value,
+ self::SIGN => !$y_negative
+ );
+ } elseif ($y_size == 0) {
+ return array(
+ self::VALUE => $x_value,
+ self::SIGN => $x_negative
+ );
+ }
+
+ // add, if appropriate (ie. -$x - +$y or +$x - -$y)
+ if ($x_negative != $y_negative) {
+ $temp = $this->_add($x_value, false, $y_value, false);
+ $temp[self::SIGN] = $x_negative;
+
+ return $temp;
+ }
+
+ $diff = $this->_compare($x_value, $x_negative, $y_value, $y_negative);
+
+ if (!$diff) {
+ return array(
+ self::VALUE => array(),
+ self::SIGN => false
+ );
+ }
+
+ // switch $x and $y around, if appropriate.
+ if ((!$x_negative && $diff < 0) || ($x_negative && $diff > 0)) {
+ $temp = $x_value;
+ $x_value = $y_value;
+ $y_value = $temp;
+
+ $x_negative = !$x_negative;
+
+ $x_size = count($x_value);
+ $y_size = count($y_value);
+ }
+
+ // at this point, $x_value should be at least as big as - if not bigger than - $y_value
+
+ $carry = 0;
+ for ($i = 0, $j = 1; $j < $y_size; $i+=2, $j+=2) {
+ $sum = $x_value[$j] * self::$baseFull + $x_value[$i] - $y_value[$j] * self::$baseFull - $y_value[$i] - $carry;
+ $carry = $sum < 0; // eg. floor($sum / 2**52); only possible values (in any base) are 0 and 1
+ $sum = $carry ? $sum + self::$maxDigit2 : $sum;
+
+ $temp = self::$base === 26 ? intval($sum / 0x4000000) : ($sum >> 31);
+
+ $x_value[$i] = (int) ($sum - self::$baseFull * $temp);
+ $x_value[$j] = $temp;
+ }
+
+ if ($j == $y_size) { // ie. if $y_size is odd
+ $sum = $x_value[$i] - $y_value[$i] - $carry;
+ $carry = $sum < 0;
+ $x_value[$i] = $carry ? $sum + self::$baseFull : $sum;
+ ++$i;
+ }
+
+ if ($carry) {
+ for (; !$x_value[$i]; ++$i) {
+ $x_value[$i] = self::$maxDigit;
+ }
+ --$x_value[$i];
+ }
+
+ return array(
+ self::VALUE => $this->_trim($x_value),
+ self::SIGN => $x_negative
+ );
+ }
+
+ /**
+ * Multiplies two BigIntegers
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('10');
+ * $b = new \phpseclib\Math\BigInteger('20');
+ *
+ * $c = $a->multiply($b);
+ *
+ * echo $c->toString(); // outputs 200
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $x
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ */
+ function multiply($x)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = new static();
+ $temp->value = gmp_mul($this->value, $x->value);
+
+ return $this->_normalize($temp);
+ case self::MODE_BCMATH:
+ $temp = new static();
+ $temp->value = bcmul($this->value, $x->value, 0);
+
+ return $this->_normalize($temp);
+ }
+
+ $temp = $this->_multiply($this->value, $this->is_negative, $x->value, $x->is_negative);
+
+ $product = new static();
+ $product->value = $temp[self::VALUE];
+ $product->is_negative = $temp[self::SIGN];
+
+ return $this->_normalize($product);
+ }
+
+ /**
+ * Performs multiplication.
+ *
+ * @param array $x_value
+ * @param bool $x_negative
+ * @param array $y_value
+ * @param bool $y_negative
+ * @return array
+ * @access private
+ */
+ function _multiply($x_value, $x_negative, $y_value, $y_negative)
+ {
+ //if ( $x_value == $y_value ) {
+ // return array(
+ // self::VALUE => $this->_square($x_value),
+ // self::SIGN => $x_sign != $y_value
+ // );
+ //}
+
+ $x_length = count($x_value);
+ $y_length = count($y_value);
+
+ if (!$x_length || !$y_length) { // a 0 is being multiplied
+ return array(
+ self::VALUE => array(),
+ self::SIGN => false
+ );
+ }
+
+ return array(
+ self::VALUE => min($x_length, $y_length) < 2 * self::KARATSUBA_CUTOFF ?
+ $this->_trim($this->_regularMultiply($x_value, $y_value)) :
+ $this->_trim($this->_karatsuba($x_value, $y_value)),
+ self::SIGN => $x_negative != $y_negative
+ );
+ }
+
+ /**
+ * Performs long multiplication on two BigIntegers
+ *
+ * Modeled after 'multiply' in MutableBigInteger.java.
+ *
+ * @param array $x_value
+ * @param array $y_value
+ * @return array
+ * @access private
+ */
+ function _regularMultiply($x_value, $y_value)
+ {
+ $x_length = count($x_value);
+ $y_length = count($y_value);
+
+ if (!$x_length || !$y_length) { // a 0 is being multiplied
+ return array();
+ }
+
+ if ($x_length < $y_length) {
+ $temp = $x_value;
+ $x_value = $y_value;
+ $y_value = $temp;
+
+ $x_length = count($x_value);
+ $y_length = count($y_value);
+ }
+
+ $product_value = $this->_array_repeat(0, $x_length + $y_length);
+
+ // the following for loop could be removed if the for loop following it
+ // (the one with nested for loops) initially set $i to 0, but
+ // doing so would also make the result in one set of unnecessary adds,
+ // since on the outermost loops first pass, $product->value[$k] is going
+ // to always be 0
+
+ $carry = 0;
+
+ for ($j = 0; $j < $x_length; ++$j) { // ie. $i = 0
+ $temp = $x_value[$j] * $y_value[0] + $carry; // $product_value[$k] == 0
+ $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
+ $product_value[$j] = (int) ($temp - self::$baseFull * $carry);
+ }
+
+ $product_value[$j] = $carry;
+
+ // the above for loop is what the previous comment was talking about. the
+ // following for loop is the "one with nested for loops"
+ for ($i = 1; $i < $y_length; ++$i) {
+ $carry = 0;
+
+ for ($j = 0, $k = $i; $j < $x_length; ++$j, ++$k) {
+ $temp = $product_value[$k] + $x_value[$j] * $y_value[$i] + $carry;
+ $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
+ $product_value[$k] = (int) ($temp - self::$baseFull * $carry);
+ }
+
+ $product_value[$k] = $carry;
+ }
+
+ return $product_value;
+ }
+
+ /**
+ * Performs Karatsuba multiplication on two BigIntegers
+ *
+ * See {@link http://en.wikipedia.org/wiki/Karatsuba_algorithm Karatsuba algorithm} and
+ * {@link http://math.libtomcrypt.com/files/tommath.pdf#page=120 MPM 5.2.3}.
+ *
+ * @param array $x_value
+ * @param array $y_value
+ * @return array
+ * @access private
+ */
+ function _karatsuba($x_value, $y_value)
+ {
+ $m = min(count($x_value) >> 1, count($y_value) >> 1);
+
+ if ($m < self::KARATSUBA_CUTOFF) {
+ return $this->_regularMultiply($x_value, $y_value);
+ }
+
+ $x1 = array_slice($x_value, $m);
+ $x0 = array_slice($x_value, 0, $m);
+ $y1 = array_slice($y_value, $m);
+ $y0 = array_slice($y_value, 0, $m);
+
+ $z2 = $this->_karatsuba($x1, $y1);
+ $z0 = $this->_karatsuba($x0, $y0);
+
+ $z1 = $this->_add($x1, false, $x0, false);
+ $temp = $this->_add($y1, false, $y0, false);
+ $z1 = $this->_karatsuba($z1[self::VALUE], $temp[self::VALUE]);
+ $temp = $this->_add($z2, false, $z0, false);
+ $z1 = $this->_subtract($z1, false, $temp[self::VALUE], false);
+
+ $z2 = array_merge(array_fill(0, 2 * $m, 0), $z2);
+ $z1[self::VALUE] = array_merge(array_fill(0, $m, 0), $z1[self::VALUE]);
+
+ $xy = $this->_add($z2, false, $z1[self::VALUE], $z1[self::SIGN]);
+ $xy = $this->_add($xy[self::VALUE], $xy[self::SIGN], $z0, false);
+
+ return $xy[self::VALUE];
+ }
+
+ /**
+ * Performs squaring
+ *
+ * @param array $x
+ * @return array
+ * @access private
+ */
+ function _square($x = false)
+ {
+ return count($x) < 2 * self::KARATSUBA_CUTOFF ?
+ $this->_trim($this->_baseSquare($x)) :
+ $this->_trim($this->_karatsubaSquare($x));
+ }
+
+ /**
+ * Performs traditional squaring on two BigIntegers
+ *
+ * Squaring can be done faster than multiplying a number by itself can be. See
+ * {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=7 HAC 14.2.4} /
+ * {@link http://math.libtomcrypt.com/files/tommath.pdf#page=141 MPM 5.3} for more information.
+ *
+ * @param array $value
+ * @return array
+ * @access private
+ */
+ function _baseSquare($value)
+ {
+ if (empty($value)) {
+ return array();
+ }
+ $square_value = $this->_array_repeat(0, 2 * count($value));
+
+ for ($i = 0, $max_index = count($value) - 1; $i <= $max_index; ++$i) {
+ $i2 = $i << 1;
+
+ $temp = $square_value[$i2] + $value[$i] * $value[$i];
+ $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
+ $square_value[$i2] = (int) ($temp - self::$baseFull * $carry);
+
+ // note how we start from $i+1 instead of 0 as we do in multiplication.
+ for ($j = $i + 1, $k = $i2 + 1; $j <= $max_index; ++$j, ++$k) {
+ $temp = $square_value[$k] + 2 * $value[$j] * $value[$i] + $carry;
+ $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
+ $square_value[$k] = (int) ($temp - self::$baseFull * $carry);
+ }
+
+ // the following line can yield values larger 2**15. at this point, PHP should switch
+ // over to floats.
+ $square_value[$i + $max_index + 1] = $carry;
+ }
+
+ return $square_value;
+ }
+
+ /**
+ * Performs Karatsuba "squaring" on two BigIntegers
+ *
+ * See {@link http://en.wikipedia.org/wiki/Karatsuba_algorithm Karatsuba algorithm} and
+ * {@link http://math.libtomcrypt.com/files/tommath.pdf#page=151 MPM 5.3.4}.
+ *
+ * @param array $value
+ * @return array
+ * @access private
+ */
+ function _karatsubaSquare($value)
+ {
+ $m = count($value) >> 1;
+
+ if ($m < self::KARATSUBA_CUTOFF) {
+ return $this->_baseSquare($value);
+ }
+
+ $x1 = array_slice($value, $m);
+ $x0 = array_slice($value, 0, $m);
+
+ $z2 = $this->_karatsubaSquare($x1);
+ $z0 = $this->_karatsubaSquare($x0);
+
+ $z1 = $this->_add($x1, false, $x0, false);
+ $z1 = $this->_karatsubaSquare($z1[self::VALUE]);
+ $temp = $this->_add($z2, false, $z0, false);
+ $z1 = $this->_subtract($z1, false, $temp[self::VALUE], false);
+
+ $z2 = array_merge(array_fill(0, 2 * $m, 0), $z2);
+ $z1[self::VALUE] = array_merge(array_fill(0, $m, 0), $z1[self::VALUE]);
+
+ $xx = $this->_add($z2, false, $z1[self::VALUE], $z1[self::SIGN]);
+ $xx = $this->_add($xx[self::VALUE], $xx[self::SIGN], $z0, false);
+
+ return $xx[self::VALUE];
+ }
+
+ /**
+ * Divides two BigIntegers.
+ *
+ * Returns an array whose first element contains the quotient and whose second element contains the
+ * "common residue". If the remainder would be positive, the "common residue" and the remainder are the
+ * same. If the remainder would be negative, the "common residue" is equal to the sum of the remainder
+ * and the divisor (basically, the "common residue" is the first positive modulo).
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('10');
+ * $b = new \phpseclib\Math\BigInteger('20');
+ *
+ * list($quotient, $remainder) = $a->divide($b);
+ *
+ * echo $quotient->toString(); // outputs 0
+ * echo "\r\n";
+ * echo $remainder->toString(); // outputs 10
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $y
+ * @return array
+ * @access public
+ * @internal This function is based off of {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=9 HAC 14.20}.
+ */
+ function divide($y)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $quotient = new static();
+ $remainder = new static();
+
+ list($quotient->value, $remainder->value) = gmp_div_qr($this->value, $y->value);
+
+ if (gmp_sign($remainder->value) < 0) {
+ $remainder->value = gmp_add($remainder->value, gmp_abs($y->value));
+ }
+
+ return array($this->_normalize($quotient), $this->_normalize($remainder));
+ case self::MODE_BCMATH:
+ $quotient = new static();
+ $remainder = new static();
+
+ $quotient->value = bcdiv($this->value, $y->value, 0);
+ $remainder->value = bcmod($this->value, $y->value);
+
+ if ($remainder->value[0] == '-') {
+ $remainder->value = bcadd($remainder->value, $y->value[0] == '-' ? substr($y->value, 1) : $y->value, 0);
+ }
+
+ return array($this->_normalize($quotient), $this->_normalize($remainder));
+ }
+
+ if (count($y->value) == 1) {
+ list($q, $r) = $this->_divide_digit($this->value, $y->value[0]);
+ $quotient = new static();
+ $remainder = new static();
+ $quotient->value = $q;
+ $remainder->value = array($r);
+ $quotient->is_negative = $this->is_negative != $y->is_negative;
+ return array($this->_normalize($quotient), $this->_normalize($remainder));
+ }
+
+ static $zero;
+ if (!isset($zero)) {
+ $zero = new static();
+ }
+
+ $x = $this->copy();
+ $y = $y->copy();
+
+ $x_sign = $x->is_negative;
+ $y_sign = $y->is_negative;
+
+ $x->is_negative = $y->is_negative = false;
+
+ $diff = $x->compare($y);
+
+ if (!$diff) {
+ $temp = new static();
+ $temp->value = array(1);
+ $temp->is_negative = $x_sign != $y_sign;
+ return array($this->_normalize($temp), $this->_normalize(new static()));
+ }
+
+ if ($diff < 0) {
+ // if $x is negative, "add" $y.
+ if ($x_sign) {
+ $x = $y->subtract($x);
+ }
+ return array($this->_normalize(new static()), $this->_normalize($x));
+ }
+
+ // normalize $x and $y as described in HAC 14.23 / 14.24
+ $msb = $y->value[count($y->value) - 1];
+ for ($shift = 0; !($msb & self::$msb); ++$shift) {
+ $msb <<= 1;
+ }
+ $x->_lshift($shift);
+ $y->_lshift($shift);
+ $y_value = &$y->value;
+
+ $x_max = count($x->value) - 1;
+ $y_max = count($y->value) - 1;
+
+ $quotient = new static();
+ $quotient_value = &$quotient->value;
+ $quotient_value = $this->_array_repeat(0, $x_max - $y_max + 1);
+
+ static $temp, $lhs, $rhs;
+ if (!isset($temp)) {
+ $temp = new static();
+ $lhs = new static();
+ $rhs = new static();
+ }
+ $temp_value = &$temp->value;
+ $rhs_value = &$rhs->value;
+
+ // $temp = $y << ($x_max - $y_max-1) in base 2**26
+ $temp_value = array_merge($this->_array_repeat(0, $x_max - $y_max), $y_value);
+
+ while ($x->compare($temp) >= 0) {
+ // calculate the "common residue"
+ ++$quotient_value[$x_max - $y_max];
+ $x = $x->subtract($temp);
+ $x_max = count($x->value) - 1;
+ }
+
+ for ($i = $x_max; $i >= $y_max + 1; --$i) {
+ $x_value = &$x->value;
+ $x_window = array(
+ isset($x_value[$i]) ? $x_value[$i] : 0,
+ isset($x_value[$i - 1]) ? $x_value[$i - 1] : 0,
+ isset($x_value[$i - 2]) ? $x_value[$i - 2] : 0
+ );
+ $y_window = array(
+ $y_value[$y_max],
+ ($y_max > 0) ? $y_value[$y_max - 1] : 0
+ );
+
+ $q_index = $i - $y_max - 1;
+ if ($x_window[0] == $y_window[0]) {
+ $quotient_value[$q_index] = self::$maxDigit;
+ } else {
+ $quotient_value[$q_index] = $this->_safe_divide(
+ $x_window[0] * self::$baseFull + $x_window[1],
+ $y_window[0]
+ );
+ }
+
+ $temp_value = array($y_window[1], $y_window[0]);
+
+ $lhs->value = array($quotient_value[$q_index]);
+ $lhs = $lhs->multiply($temp);
+
+ $rhs_value = array($x_window[2], $x_window[1], $x_window[0]);
+
+ while ($lhs->compare($rhs) > 0) {
+ --$quotient_value[$q_index];
+
+ $lhs->value = array($quotient_value[$q_index]);
+ $lhs = $lhs->multiply($temp);
+ }
+
+ $adjust = $this->_array_repeat(0, $q_index);
+ $temp_value = array($quotient_value[$q_index]);
+ $temp = $temp->multiply($y);
+ $temp_value = &$temp->value;
+ $temp_value = array_merge($adjust, $temp_value);
+
+ $x = $x->subtract($temp);
+
+ if ($x->compare($zero) < 0) {
+ $temp_value = array_merge($adjust, $y_value);
+ $x = $x->add($temp);
+
+ --$quotient_value[$q_index];
+ }
+
+ $x_max = count($x_value) - 1;
+ }
+
+ // unnormalize the remainder
+ $x->_rshift($shift);
+
+ $quotient->is_negative = $x_sign != $y_sign;
+
+ // calculate the "common residue", if appropriate
+ if ($x_sign) {
+ $y->_rshift($shift);
+ $x = $y->subtract($x);
+ }
+
+ return array($this->_normalize($quotient), $this->_normalize($x));
+ }
+
+ /**
+ * Divides a BigInteger by a regular integer
+ *
+ * abc / x = a00 / x + b0 / x + c / x
+ *
+ * @param array $dividend
+ * @param array $divisor
+ * @return array
+ * @access private
+ */
+ function _divide_digit($dividend, $divisor)
+ {
+ $carry = 0;
+ $result = array();
+
+ for ($i = count($dividend) - 1; $i >= 0; --$i) {
+ $temp = self::$baseFull * $carry + $dividend[$i];
+ $result[$i] = $this->_safe_divide($temp, $divisor);
+ $carry = (int) ($temp - $divisor * $result[$i]);
+ }
+
+ return array($result, $carry);
+ }
+
+ /**
+ * Performs modular exponentiation.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger('10');
+ * $b = new \phpseclib\Math\BigInteger('20');
+ * $c = new \phpseclib\Math\BigInteger('30');
+ *
+ * $c = $a->modPow($b, $c);
+ *
+ * echo $c->toString(); // outputs 10
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $e
+ * @param \phpseclib\Math\BigInteger $n
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ * @internal The most naive approach to modular exponentiation has very unreasonable requirements, and
+ * and although the approach involving repeated squaring does vastly better, it, too, is impractical
+ * for our purposes. The reason being that division - by far the most complicated and time-consuming
+ * of the basic operations (eg. +,-,*,/) - occurs multiple times within it.
+ *
+ * Modular reductions resolve this issue. Although an individual modular reduction takes more time
+ * then an individual division, when performed in succession (with the same modulo), they're a lot faster.
+ *
+ * The two most commonly used modular reductions are Barrett and Montgomery reduction. Montgomery reduction,
+ * although faster, only works when the gcd of the modulo and of the base being used is 1. In RSA, when the
+ * base is a power of two, the modulo - a product of two primes - is always going to have a gcd of 1 (because
+ * the product of two odd numbers is odd), but what about when RSA isn't used?
+ *
+ * In contrast, Barrett reduction has no such constraint. As such, some bigint implementations perform a
+ * Barrett reduction after every operation in the modpow function. Others perform Barrett reductions when the
+ * modulo is even and Montgomery reductions when the modulo is odd. BigInteger.java's modPow method, however,
+ * uses a trick involving the Chinese Remainder Theorem to factor the even modulo into two numbers - one odd and
+ * the other, a power of two - and recombine them, later. This is the method that this modPow function uses.
+ * {@link http://islab.oregonstate.edu/papers/j34monex.pdf Montgomery Reduction with Even Modulus} elaborates.
+ */
+ function modPow($e, $n)
+ {
+ $n = $this->bitmask !== false && $this->bitmask->compare($n) < 0 ? $this->bitmask : $n->abs();
+
+ if ($e->compare(new static()) < 0) {
+ $e = $e->abs();
+
+ $temp = $this->modInverse($n);
+ if ($temp === false) {
+ return false;
+ }
+
+ return $this->_normalize($temp->modPow($e, $n));
+ }
+
+ if (MATH_BIGINTEGER_MODE == self::MODE_GMP) {
+ $temp = new static();
+ $temp->value = gmp_powm($this->value, $e->value, $n->value);
+
+ return $this->_normalize($temp);
+ }
+
+ if ($this->compare(new static()) < 0 || $this->compare($n) > 0) {
+ list(, $temp) = $this->divide($n);
+ return $temp->modPow($e, $n);
+ }
+
+ if (defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) {
+ $components = array(
+ 'modulus' => $n->toBytes(true),
+ 'publicExponent' => $e->toBytes(true)
+ );
+
+ $components = array(
+ 'modulus' => pack('Ca*a*', 2, $this->_encodeASN1Length(strlen($components['modulus'])), $components['modulus']),
+ 'publicExponent' => pack('Ca*a*', 2, $this->_encodeASN1Length(strlen($components['publicExponent'])), $components['publicExponent'])
+ );
+
+ $RSAPublicKey = pack(
+ 'Ca*a*a*',
+ 48,
+ $this->_encodeASN1Length(strlen($components['modulus']) + strlen($components['publicExponent'])),
+ $components['modulus'],
+ $components['publicExponent']
+ );
+
+ $rsaOID = pack('H*', '300d06092a864886f70d0101010500'); // hex version of MA0GCSqGSIb3DQEBAQUA
+ $RSAPublicKey = chr(0) . $RSAPublicKey;
+ $RSAPublicKey = chr(3) . $this->_encodeASN1Length(strlen($RSAPublicKey)) . $RSAPublicKey;
+
+ $encapsulated = pack(
+ 'Ca*a*',
+ 48,
+ $this->_encodeASN1Length(strlen($rsaOID . $RSAPublicKey)),
+ $rsaOID . $RSAPublicKey
+ );
+
+ $RSAPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" .
+ chunk_split(base64_encode($encapsulated)) .
+ '-----END PUBLIC KEY-----';
+
+ $plaintext = str_pad($this->toBytes(), strlen($n->toBytes(true)) - 1, "\0", STR_PAD_LEFT);
+
+ if (openssl_public_encrypt($plaintext, $result, $RSAPublicKey, OPENSSL_NO_PADDING)) {
+ return new static($result, 256);
+ }
+ }
+
+ if (MATH_BIGINTEGER_MODE == self::MODE_BCMATH) {
+ $temp = new static();
+ $temp->value = bcpowmod($this->value, $e->value, $n->value, 0);
+
+ return $this->_normalize($temp);
+ }
+
+ if (empty($e->value)) {
+ $temp = new static();
+ $temp->value = array(1);
+ return $this->_normalize($temp);
+ }
+
+ if ($e->value == array(1)) {
+ list(, $temp) = $this->divide($n);
+ return $this->_normalize($temp);
+ }
+
+ if ($e->value == array(2)) {
+ $temp = new static();
+ $temp->value = $this->_square($this->value);
+ list(, $temp) = $temp->divide($n);
+ return $this->_normalize($temp);
+ }
+
+ return $this->_normalize($this->_slidingWindow($e, $n, self::BARRETT));
+
+ // the following code, although not callable, can be run independently of the above code
+ // although the above code performed better in my benchmarks the following could might
+ // perform better under different circumstances. in lieu of deleting it it's just been
+ // made uncallable
+
+ // is the modulo odd?
+ if ($n->value[0] & 1) {
+ return $this->_normalize($this->_slidingWindow($e, $n, self::MONTGOMERY));
+ }
+ // if it's not, it's even
+
+ // find the lowest set bit (eg. the max pow of 2 that divides $n)
+ for ($i = 0; $i < count($n->value); ++$i) {
+ if ($n->value[$i]) {
+ $temp = decbin($n->value[$i]);
+ $j = strlen($temp) - strrpos($temp, '1') - 1;
+ $j+= 26 * $i;
+ break;
+ }
+ }
+ // at this point, 2^$j * $n/(2^$j) == $n
+
+ $mod1 = $n->copy();
+ $mod1->_rshift($j);
+ $mod2 = new static();
+ $mod2->value = array(1);
+ $mod2->_lshift($j);
+
+ $part1 = ($mod1->value != array(1)) ? $this->_slidingWindow($e, $mod1, self::MONTGOMERY) : new static();
+ $part2 = $this->_slidingWindow($e, $mod2, self::POWEROF2);
+
+ $y1 = $mod2->modInverse($mod1);
+ $y2 = $mod1->modInverse($mod2);
+
+ $result = $part1->multiply($mod2);
+ $result = $result->multiply($y1);
+
+ $temp = $part2->multiply($mod1);
+ $temp = $temp->multiply($y2);
+
+ $result = $result->add($temp);
+ list(, $result) = $result->divide($n);
+
+ return $this->_normalize($result);
+ }
+
+ /**
+ * Performs modular exponentiation.
+ *
+ * Alias for modPow().
+ *
+ * @param \phpseclib\Math\BigInteger $e
+ * @param \phpseclib\Math\BigInteger $n
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ */
+ function powMod($e, $n)
+ {
+ return $this->modPow($e, $n);
+ }
+
+ /**
+ * Sliding Window k-ary Modular Exponentiation
+ *
+ * Based on {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=27 HAC 14.85} /
+ * {@link http://math.libtomcrypt.com/files/tommath.pdf#page=210 MPM 7.7}. In a departure from those algorithims,
+ * however, this function performs a modular reduction after every multiplication and squaring operation.
+ * As such, this function has the same preconditions that the reductions being used do.
+ *
+ * @param \phpseclib\Math\BigInteger $e
+ * @param \phpseclib\Math\BigInteger $n
+ * @param int $mode
+ * @return \phpseclib\Math\BigInteger
+ * @access private
+ */
+ function _slidingWindow($e, $n, $mode)
+ {
+ static $window_ranges = array(7, 25, 81, 241, 673, 1793); // from BigInteger.java's oddModPow function
+ //static $window_ranges = array(0, 7, 36, 140, 450, 1303, 3529); // from MPM 7.3.1
+
+ $e_value = $e->value;
+ $e_length = count($e_value) - 1;
+ $e_bits = decbin($e_value[$e_length]);
+ for ($i = $e_length - 1; $i >= 0; --$i) {
+ $e_bits.= str_pad(decbin($e_value[$i]), self::$base, '0', STR_PAD_LEFT);
+ }
+
+ $e_length = strlen($e_bits);
+
+ // calculate the appropriate window size.
+ // $window_size == 3 if $window_ranges is between 25 and 81, for example.
+ for ($i = 0, $window_size = 1; $i < count($window_ranges) && $e_length > $window_ranges[$i]; ++$window_size, ++$i) {
+ }
+
+ $n_value = $n->value;
+
+ // precompute $this^0 through $this^$window_size
+ $powers = array();
+ $powers[1] = $this->_prepareReduce($this->value, $n_value, $mode);
+ $powers[2] = $this->_squareReduce($powers[1], $n_value, $mode);
+
+ // we do every other number since substr($e_bits, $i, $j+1) (see below) is supposed to end
+ // in a 1. ie. it's supposed to be odd.
+ $temp = 1 << ($window_size - 1);
+ for ($i = 1; $i < $temp; ++$i) {
+ $i2 = $i << 1;
+ $powers[$i2 + 1] = $this->_multiplyReduce($powers[$i2 - 1], $powers[2], $n_value, $mode);
+ }
+
+ $result = array(1);
+ $result = $this->_prepareReduce($result, $n_value, $mode);
+
+ for ($i = 0; $i < $e_length;) {
+ if (!$e_bits[$i]) {
+ $result = $this->_squareReduce($result, $n_value, $mode);
+ ++$i;
+ } else {
+ for ($j = $window_size - 1; $j > 0; --$j) {
+ if (!empty($e_bits[$i + $j])) {
+ break;
+ }
+ }
+
+ // eg. the length of substr($e_bits, $i, $j + 1)
+ for ($k = 0; $k <= $j; ++$k) {
+ $result = $this->_squareReduce($result, $n_value, $mode);
+ }
+
+ $result = $this->_multiplyReduce($result, $powers[bindec(substr($e_bits, $i, $j + 1))], $n_value, $mode);
+
+ $i += $j + 1;
+ }
+ }
+
+ $temp = new static();
+ $temp->value = $this->_reduce($result, $n_value, $mode);
+
+ return $temp;
+ }
+
+ /**
+ * Modular reduction
+ *
+ * For most $modes this will return the remainder.
+ *
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $x
+ * @param array $n
+ * @param int $mode
+ * @return array
+ */
+ function _reduce($x, $n, $mode)
+ {
+ switch ($mode) {
+ case self::MONTGOMERY:
+ return $this->_montgomery($x, $n);
+ case self::BARRETT:
+ return $this->_barrett($x, $n);
+ case self::POWEROF2:
+ $lhs = new static();
+ $lhs->value = $x;
+ $rhs = new static();
+ $rhs->value = $n;
+ return $x->_mod2($n);
+ case self::CLASSIC:
+ $lhs = new static();
+ $lhs->value = $x;
+ $rhs = new static();
+ $rhs->value = $n;
+ list(, $temp) = $lhs->divide($rhs);
+ return $temp->value;
+ case self::NONE:
+ return $x;
+ default:
+ // an invalid $mode was provided
+ }
+ }
+
+ /**
+ * Modular reduction preperation
+ *
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $x
+ * @param array $n
+ * @param int $mode
+ * @return array
+ */
+ function _prepareReduce($x, $n, $mode)
+ {
+ if ($mode == self::MONTGOMERY) {
+ return $this->_prepMontgomery($x, $n);
+ }
+ return $this->_reduce($x, $n, $mode);
+ }
+
+ /**
+ * Modular multiply
+ *
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $x
+ * @param array $y
+ * @param array $n
+ * @param int $mode
+ * @return array
+ */
+ function _multiplyReduce($x, $y, $n, $mode)
+ {
+ if ($mode == self::MONTGOMERY) {
+ return $this->_montgomeryMultiply($x, $y, $n);
+ }
+ $temp = $this->_multiply($x, false, $y, false);
+ return $this->_reduce($temp[self::VALUE], $n, $mode);
+ }
+
+ /**
+ * Modular square
+ *
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $x
+ * @param array $n
+ * @param int $mode
+ * @return array
+ */
+ function _squareReduce($x, $n, $mode)
+ {
+ if ($mode == self::MONTGOMERY) {
+ return $this->_montgomeryMultiply($x, $x, $n);
+ }
+ return $this->_reduce($this->_square($x), $n, $mode);
+ }
+
+ /**
+ * Modulos for Powers of Two
+ *
+ * Calculates $x%$n, where $n = 2**$e, for some $e. Since this is basically the same as doing $x & ($n-1),
+ * we'll just use this function as a wrapper for doing that.
+ *
+ * @see self::_slidingWindow()
+ * @access private
+ * @param \phpseclib\Math\BigInteger
+ * @return \phpseclib\Math\BigInteger
+ */
+ function _mod2($n)
+ {
+ $temp = new static();
+ $temp->value = array(1);
+ return $this->bitwise_and($n->subtract($temp));
+ }
+
+ /**
+ * Barrett Modular Reduction
+ *
+ * See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=14 HAC 14.3.3} /
+ * {@link http://math.libtomcrypt.com/files/tommath.pdf#page=165 MPM 6.2.5} for more information. Modified slightly,
+ * so as not to require negative numbers (initially, this script didn't support negative numbers).
+ *
+ * Employs "folding", as described at
+ * {@link http://www.cosic.esat.kuleuven.be/publications/thesis-149.pdf#page=66 thesis-149.pdf#page=66}. To quote from
+ * it, "the idea [behind folding] is to find a value x' such that x (mod m) = x' (mod m), with x' being smaller than x."
+ *
+ * Unfortunately, the "Barrett Reduction with Folding" algorithm described in thesis-149.pdf is not, as written, all that
+ * usable on account of (1) its not using reasonable radix points as discussed in
+ * {@link http://math.libtomcrypt.com/files/tommath.pdf#page=162 MPM 6.2.2} and (2) the fact that, even with reasonable
+ * radix points, it only works when there are an even number of digits in the denominator. The reason for (2) is that
+ * (x >> 1) + (x >> 1) != x / 2 + x / 2. If x is even, they're the same, but if x is odd, they're not. See the in-line
+ * comments for details.
+ *
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $n
+ * @param array $m
+ * @return array
+ */
+ function _barrett($n, $m)
+ {
+ static $cache = array(
+ self::VARIABLE => array(),
+ self::DATA => array()
+ );
+
+ $m_length = count($m);
+
+ // if ($this->_compare($n, $this->_square($m)) >= 0) {
+ if (count($n) > 2 * $m_length) {
+ $lhs = new static();
+ $rhs = new static();
+ $lhs->value = $n;
+ $rhs->value = $m;
+ list(, $temp) = $lhs->divide($rhs);
+ return $temp->value;
+ }
+
+ // if (m.length >> 1) + 2 <= m.length then m is too small and n can't be reduced
+ if ($m_length < 5) {
+ return $this->_regularBarrett($n, $m);
+ }
+
+ // n = 2 * m.length
+
+ if (($key = array_search($m, $cache[self::VARIABLE])) === false) {
+ $key = count($cache[self::VARIABLE]);
+ $cache[self::VARIABLE][] = $m;
+
+ $lhs = new static();
+ $lhs_value = &$lhs->value;
+ $lhs_value = $this->_array_repeat(0, $m_length + ($m_length >> 1));
+ $lhs_value[] = 1;
+ $rhs = new static();
+ $rhs->value = $m;
+
+ list($u, $m1) = $lhs->divide($rhs);
+ $u = $u->value;
+ $m1 = $m1->value;
+
+ $cache[self::DATA][] = array(
+ 'u' => $u, // m.length >> 1 (technically (m.length >> 1) + 1)
+ 'm1'=> $m1 // m.length
+ );
+ } else {
+ extract($cache[self::DATA][$key]);
+ }
+
+ $cutoff = $m_length + ($m_length >> 1);
+ $lsd = array_slice($n, 0, $cutoff); // m.length + (m.length >> 1)
+ $msd = array_slice($n, $cutoff); // m.length >> 1
+ $lsd = $this->_trim($lsd);
+ $temp = $this->_multiply($msd, false, $m1, false);
+ $n = $this->_add($lsd, false, $temp[self::VALUE], false); // m.length + (m.length >> 1) + 1
+
+ if ($m_length & 1) {
+ return $this->_regularBarrett($n[self::VALUE], $m);
+ }
+
+ // (m.length + (m.length >> 1) + 1) - (m.length - 1) == (m.length >> 1) + 2
+ $temp = array_slice($n[self::VALUE], $m_length - 1);
+ // if even: ((m.length >> 1) + 2) + (m.length >> 1) == m.length + 2
+ // if odd: ((m.length >> 1) + 2) + (m.length >> 1) == (m.length - 1) + 2 == m.length + 1
+ $temp = $this->_multiply($temp, false, $u, false);
+ // if even: (m.length + 2) - ((m.length >> 1) + 1) = m.length - (m.length >> 1) + 1
+ // if odd: (m.length + 1) - ((m.length >> 1) + 1) = m.length - (m.length >> 1)
+ $temp = array_slice($temp[self::VALUE], ($m_length >> 1) + 1);
+ // if even: (m.length - (m.length >> 1) + 1) + m.length = 2 * m.length - (m.length >> 1) + 1
+ // if odd: (m.length - (m.length >> 1)) + m.length = 2 * m.length - (m.length >> 1)
+ $temp = $this->_multiply($temp, false, $m, false);
+
+ // at this point, if m had an odd number of digits, we'd be subtracting a 2 * m.length - (m.length >> 1) digit
+ // number from a m.length + (m.length >> 1) + 1 digit number. ie. there'd be an extra digit and the while loop
+ // following this comment would loop a lot (hence our calling _regularBarrett() in that situation).
+
+ $result = $this->_subtract($n[self::VALUE], false, $temp[self::VALUE], false);
+
+ while ($this->_compare($result[self::VALUE], $result[self::SIGN], $m, false) >= 0) {
+ $result = $this->_subtract($result[self::VALUE], $result[self::SIGN], $m, false);
+ }
+
+ return $result[self::VALUE];
+ }
+
+ /**
+ * (Regular) Barrett Modular Reduction
+ *
+ * For numbers with more than four digits BigInteger::_barrett() is faster. The difference between that and this
+ * is that this function does not fold the denominator into a smaller form.
+ *
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $x
+ * @param array $n
+ * @return array
+ */
+ function _regularBarrett($x, $n)
+ {
+ static $cache = array(
+ self::VARIABLE => array(),
+ self::DATA => array()
+ );
+
+ $n_length = count($n);
+
+ if (count($x) > 2 * $n_length) {
+ $lhs = new static();
+ $rhs = new static();
+ $lhs->value = $x;
+ $rhs->value = $n;
+ list(, $temp) = $lhs->divide($rhs);
+ return $temp->value;
+ }
+
+ if (($key = array_search($n, $cache[self::VARIABLE])) === false) {
+ $key = count($cache[self::VARIABLE]);
+ $cache[self::VARIABLE][] = $n;
+ $lhs = new static();
+ $lhs_value = &$lhs->value;
+ $lhs_value = $this->_array_repeat(0, 2 * $n_length);
+ $lhs_value[] = 1;
+ $rhs = new static();
+ $rhs->value = $n;
+ list($temp, ) = $lhs->divide($rhs); // m.length
+ $cache[self::DATA][] = $temp->value;
+ }
+
+ // 2 * m.length - (m.length - 1) = m.length + 1
+ $temp = array_slice($x, $n_length - 1);
+ // (m.length + 1) + m.length = 2 * m.length + 1
+ $temp = $this->_multiply($temp, false, $cache[self::DATA][$key], false);
+ // (2 * m.length + 1) - (m.length - 1) = m.length + 2
+ $temp = array_slice($temp[self::VALUE], $n_length + 1);
+
+ // m.length + 1
+ $result = array_slice($x, 0, $n_length + 1);
+ // m.length + 1
+ $temp = $this->_multiplyLower($temp, false, $n, false, $n_length + 1);
+ // $temp == array_slice($temp->_multiply($temp, false, $n, false)->value, 0, $n_length + 1)
+
+ if ($this->_compare($result, false, $temp[self::VALUE], $temp[self::SIGN]) < 0) {
+ $corrector_value = $this->_array_repeat(0, $n_length + 1);
+ $corrector_value[count($corrector_value)] = 1;
+ $result = $this->_add($result, false, $corrector_value, false);
+ $result = $result[self::VALUE];
+ }
+
+ // at this point, we're subtracting a number with m.length + 1 digits from another number with m.length + 1 digits
+ $result = $this->_subtract($result, false, $temp[self::VALUE], $temp[self::SIGN]);
+ while ($this->_compare($result[self::VALUE], $result[self::SIGN], $n, false) > 0) {
+ $result = $this->_subtract($result[self::VALUE], $result[self::SIGN], $n, false);
+ }
+
+ return $result[self::VALUE];
+ }
+
+ /**
+ * Performs long multiplication up to $stop digits
+ *
+ * If you're going to be doing array_slice($product->value, 0, $stop), some cycles can be saved.
+ *
+ * @see self::_regularBarrett()
+ * @param array $x_value
+ * @param bool $x_negative
+ * @param array $y_value
+ * @param bool $y_negative
+ * @param int $stop
+ * @return array
+ * @access private
+ */
+ function _multiplyLower($x_value, $x_negative, $y_value, $y_negative, $stop)
+ {
+ $x_length = count($x_value);
+ $y_length = count($y_value);
+
+ if (!$x_length || !$y_length) { // a 0 is being multiplied
+ return array(
+ self::VALUE => array(),
+ self::SIGN => false
+ );
+ }
+
+ if ($x_length < $y_length) {
+ $temp = $x_value;
+ $x_value = $y_value;
+ $y_value = $temp;
+
+ $x_length = count($x_value);
+ $y_length = count($y_value);
+ }
+
+ $product_value = $this->_array_repeat(0, $x_length + $y_length);
+
+ // the following for loop could be removed if the for loop following it
+ // (the one with nested for loops) initially set $i to 0, but
+ // doing so would also make the result in one set of unnecessary adds,
+ // since on the outermost loops first pass, $product->value[$k] is going
+ // to always be 0
+
+ $carry = 0;
+
+ for ($j = 0; $j < $x_length; ++$j) { // ie. $i = 0, $k = $i
+ $temp = $x_value[$j] * $y_value[0] + $carry; // $product_value[$k] == 0
+ $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
+ $product_value[$j] = (int) ($temp - self::$baseFull * $carry);
+ }
+
+ if ($j < $stop) {
+ $product_value[$j] = $carry;
+ }
+
+ // the above for loop is what the previous comment was talking about. the
+ // following for loop is the "one with nested for loops"
+
+ for ($i = 1; $i < $y_length; ++$i) {
+ $carry = 0;
+
+ for ($j = 0, $k = $i; $j < $x_length && $k < $stop; ++$j, ++$k) {
+ $temp = $product_value[$k] + $x_value[$j] * $y_value[$i] + $carry;
+ $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
+ $product_value[$k] = (int) ($temp - self::$baseFull * $carry);
+ }
+
+ if ($k < $stop) {
+ $product_value[$k] = $carry;
+ }
+ }
+
+ return array(
+ self::VALUE => $this->_trim($product_value),
+ self::SIGN => $x_negative != $y_negative
+ );
+ }
+
+ /**
+ * Montgomery Modular Reduction
+ *
+ * ($x->_prepMontgomery($n))->_montgomery($n) yields $x % $n.
+ * {@link http://math.libtomcrypt.com/files/tommath.pdf#page=170 MPM 6.3} provides insights on how this can be
+ * improved upon (basically, by using the comba method). gcd($n, 2) must be equal to one for this function
+ * to work correctly.
+ *
+ * @see self::_prepMontgomery()
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $x
+ * @param array $n
+ * @return array
+ */
+ function _montgomery($x, $n)
+ {
+ static $cache = array(
+ self::VARIABLE => array(),
+ self::DATA => array()
+ );
+
+ if (($key = array_search($n, $cache[self::VARIABLE])) === false) {
+ $key = count($cache[self::VARIABLE]);
+ $cache[self::VARIABLE][] = $x;
+ $cache[self::DATA][] = $this->_modInverse67108864($n);
+ }
+
+ $k = count($n);
+
+ $result = array(self::VALUE => $x);
+
+ for ($i = 0; $i < $k; ++$i) {
+ $temp = $result[self::VALUE][$i] * $cache[self::DATA][$key];
+ $temp = $temp - self::$baseFull * (self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31));
+ $temp = $this->_regularMultiply(array($temp), $n);
+ $temp = array_merge($this->_array_repeat(0, $i), $temp);
+ $result = $this->_add($result[self::VALUE], false, $temp, false);
+ }
+
+ $result[self::VALUE] = array_slice($result[self::VALUE], $k);
+
+ if ($this->_compare($result, false, $n, false) >= 0) {
+ $result = $this->_subtract($result[self::VALUE], false, $n, false);
+ }
+
+ return $result[self::VALUE];
+ }
+
+ /**
+ * Montgomery Multiply
+ *
+ * Interleaves the montgomery reduction and long multiplication algorithms together as described in
+ * {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=13 HAC 14.36}
+ *
+ * @see self::_prepMontgomery()
+ * @see self::_montgomery()
+ * @access private
+ * @param array $x
+ * @param array $y
+ * @param array $m
+ * @return array
+ */
+ function _montgomeryMultiply($x, $y, $m)
+ {
+ $temp = $this->_multiply($x, false, $y, false);
+ return $this->_montgomery($temp[self::VALUE], $m);
+
+ // the following code, although not callable, can be run independently of the above code
+ // although the above code performed better in my benchmarks the following could might
+ // perform better under different circumstances. in lieu of deleting it it's just been
+ // made uncallable
+
+ static $cache = array(
+ self::VARIABLE => array(),
+ self::DATA => array()
+ );
+
+ if (($key = array_search($m, $cache[self::VARIABLE])) === false) {
+ $key = count($cache[self::VARIABLE]);
+ $cache[self::VARIABLE][] = $m;
+ $cache[self::DATA][] = $this->_modInverse67108864($m);
+ }
+
+ $n = max(count($x), count($y), count($m));
+ $x = array_pad($x, $n, 0);
+ $y = array_pad($y, $n, 0);
+ $m = array_pad($m, $n, 0);
+ $a = array(self::VALUE => $this->_array_repeat(0, $n + 1));
+ for ($i = 0; $i < $n; ++$i) {
+ $temp = $a[self::VALUE][0] + $x[$i] * $y[0];
+ $temp = $temp - self::$baseFull * (self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31));
+ $temp = $temp * $cache[self::DATA][$key];
+ $temp = $temp - self::$baseFull * (self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31));
+ $temp = $this->_add($this->_regularMultiply(array($x[$i]), $y), false, $this->_regularMultiply(array($temp), $m), false);
+ $a = $this->_add($a[self::VALUE], false, $temp[self::VALUE], false);
+ $a[self::VALUE] = array_slice($a[self::VALUE], 1);
+ }
+ if ($this->_compare($a[self::VALUE], false, $m, false) >= 0) {
+ $a = $this->_subtract($a[self::VALUE], false, $m, false);
+ }
+ return $a[self::VALUE];
+ }
+
+ /**
+ * Prepare a number for use in Montgomery Modular Reductions
+ *
+ * @see self::_montgomery()
+ * @see self::_slidingWindow()
+ * @access private
+ * @param array $x
+ * @param array $n
+ * @return array
+ */
+ function _prepMontgomery($x, $n)
+ {
+ $lhs = new static();
+ $lhs->value = array_merge($this->_array_repeat(0, count($n)), $x);
+ $rhs = new static();
+ $rhs->value = $n;
+
+ list(, $temp) = $lhs->divide($rhs);
+ return $temp->value;
+ }
+
+ /**
+ * Modular Inverse of a number mod 2**26 (eg. 67108864)
+ *
+ * Based off of the bnpInvDigit function implemented and justified in the following URL:
+ *
+ * {@link http://www-cs-students.stanford.edu/~tjw/jsbn/jsbn.js}
+ *
+ * The following URL provides more info:
+ *
+ * {@link http://groups.google.com/group/sci.crypt/msg/7a137205c1be7d85}
+ *
+ * As for why we do all the bitmasking... strange things can happen when converting from floats to ints. For
+ * instance, on some computers, var_dump((int) -4294967297) yields int(-1) and on others, it yields
+ * int(-2147483648). To avoid problems stemming from this, we use bitmasks to guarantee that ints aren't
+ * auto-converted to floats. The outermost bitmask is present because without it, there's no guarantee that
+ * the "residue" returned would be the so-called "common residue". We use fmod, in the last step, because the
+ * maximum possible $x is 26 bits and the maximum $result is 16 bits. Thus, we have to be able to handle up to
+ * 40 bits, which only 64-bit floating points will support.
+ *
+ * Thanks to Pedro Gimeno Fortea for input!
+ *
+ * @see self::_montgomery()
+ * @access private
+ * @param array $x
+ * @return int
+ */
+ function _modInverse67108864($x) // 2**26 == 67,108,864
+ {
+ $x = -$x[0];
+ $result = $x & 0x3; // x**-1 mod 2**2
+ $result = ($result * (2 - $x * $result)) & 0xF; // x**-1 mod 2**4
+ $result = ($result * (2 - ($x & 0xFF) * $result)) & 0xFF; // x**-1 mod 2**8
+ $result = ($result * ((2 - ($x & 0xFFFF) * $result) & 0xFFFF)) & 0xFFFF; // x**-1 mod 2**16
+ $result = fmod($result * (2 - fmod($x * $result, self::$baseFull)), self::$baseFull); // x**-1 mod 2**26
+ return $result & self::$maxDigit;
+ }
+
+ /**
+ * Calculates modular inverses.
+ *
+ * Say you have (30 mod 17 * x mod 17) mod 17 == 1. x can be found using modular inverses.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger(30);
+ * $b = new \phpseclib\Math\BigInteger(17);
+ *
+ * $c = $a->modInverse($b);
+ * echo $c->toString(); // outputs 4
+ *
+ * echo "\r\n";
+ *
+ * $d = $a->multiply($c);
+ * list(, $d) = $d->divide($b);
+ * echo $d; // outputs 1 (as per the definition of modular inverse)
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $n
+ * @return \phpseclib\Math\BigInteger|false
+ * @access public
+ * @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=21 HAC 14.64} for more information.
+ */
+ function modInverse($n)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = new static();
+ $temp->value = gmp_invert($this->value, $n->value);
+
+ return ($temp->value === false) ? false : $this->_normalize($temp);
+ }
+
+ static $zero, $one;
+ if (!isset($zero)) {
+ $zero = new static();
+ $one = new static(1);
+ }
+
+ // $x mod -$n == $x mod $n.
+ $n = $n->abs();
+
+ if ($this->compare($zero) < 0) {
+ $temp = $this->abs();
+ $temp = $temp->modInverse($n);
+ return $this->_normalize($n->subtract($temp));
+ }
+
+ extract($this->extendedGCD($n));
+
+ if (!$gcd->equals($one)) {
+ return false;
+ }
+
+ $x = $x->compare($zero) < 0 ? $x->add($n) : $x;
+
+ return $this->compare($zero) < 0 ? $this->_normalize($n->subtract($x)) : $this->_normalize($x);
+ }
+
+ /**
+ * Calculates the greatest common divisor and Bezout's identity.
+ *
+ * Say you have 693 and 609. The GCD is 21. Bezout's identity states that there exist integers x and y such that
+ * 693*x + 609*y == 21. In point of fact, there are actually an infinite number of x and y combinations and which
+ * combination is returned is dependent upon which mode is in use. See
+ * {@link http://en.wikipedia.org/wiki/B%C3%A9zout%27s_identity Bezout's identity - Wikipedia} for more information.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger(693);
+ * $b = new \phpseclib\Math\BigInteger(609);
+ *
+ * extract($a->extendedGCD($b));
+ *
+ * echo $gcd->toString() . "\r\n"; // outputs 21
+ * echo $a->toString() * $x->toString() + $b->toString() * $y->toString(); // outputs 21
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $n
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ * @internal Calculates the GCD using the binary xGCD algorithim described in
+ * {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf#page=19 HAC 14.61}. As the text above 14.61 notes,
+ * the more traditional algorithim requires "relatively costly multiple-precision divisions".
+ */
+ function extendedGCD($n)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ extract(gmp_gcdext($this->value, $n->value));
+
+ return array(
+ 'gcd' => $this->_normalize(new static($g)),
+ 'x' => $this->_normalize(new static($s)),
+ 'y' => $this->_normalize(new static($t))
+ );
+ case self::MODE_BCMATH:
+ // it might be faster to use the binary xGCD algorithim here, as well, but (1) that algorithim works
+ // best when the base is a power of 2 and (2) i don't think it'd make much difference, anyway. as is,
+ // the basic extended euclidean algorithim is what we're using.
+
+ $u = $this->value;
+ $v = $n->value;
+
+ $a = '1';
+ $b = '0';
+ $c = '0';
+ $d = '1';
+
+ while (bccomp($v, '0', 0) != 0) {
+ $q = bcdiv($u, $v, 0);
+
+ $temp = $u;
+ $u = $v;
+ $v = bcsub($temp, bcmul($v, $q, 0), 0);
+
+ $temp = $a;
+ $a = $c;
+ $c = bcsub($temp, bcmul($a, $q, 0), 0);
+
+ $temp = $b;
+ $b = $d;
+ $d = bcsub($temp, bcmul($b, $q, 0), 0);
+ }
+
+ return array(
+ 'gcd' => $this->_normalize(new static($u)),
+ 'x' => $this->_normalize(new static($a)),
+ 'y' => $this->_normalize(new static($b))
+ );
+ }
+
+ $y = $n->copy();
+ $x = $this->copy();
+ $g = new static();
+ $g->value = array(1);
+
+ while (!(($x->value[0] & 1)|| ($y->value[0] & 1))) {
+ $x->_rshift(1);
+ $y->_rshift(1);
+ $g->_lshift(1);
+ }
+
+ $u = $x->copy();
+ $v = $y->copy();
+
+ $a = new static();
+ $b = new static();
+ $c = new static();
+ $d = new static();
+
+ $a->value = $d->value = $g->value = array(1);
+ $b->value = $c->value = array();
+
+ while (!empty($u->value)) {
+ while (!($u->value[0] & 1)) {
+ $u->_rshift(1);
+ if ((!empty($a->value) && ($a->value[0] & 1)) || (!empty($b->value) && ($b->value[0] & 1))) {
+ $a = $a->add($y);
+ $b = $b->subtract($x);
+ }
+ $a->_rshift(1);
+ $b->_rshift(1);
+ }
+
+ while (!($v->value[0] & 1)) {
+ $v->_rshift(1);
+ if ((!empty($d->value) && ($d->value[0] & 1)) || (!empty($c->value) && ($c->value[0] & 1))) {
+ $c = $c->add($y);
+ $d = $d->subtract($x);
+ }
+ $c->_rshift(1);
+ $d->_rshift(1);
+ }
+
+ if ($u->compare($v) >= 0) {
+ $u = $u->subtract($v);
+ $a = $a->subtract($c);
+ $b = $b->subtract($d);
+ } else {
+ $v = $v->subtract($u);
+ $c = $c->subtract($a);
+ $d = $d->subtract($b);
+ }
+ }
+
+ return array(
+ 'gcd' => $this->_normalize($g->multiply($v)),
+ 'x' => $this->_normalize($c),
+ 'y' => $this->_normalize($d)
+ );
+ }
+
+ /**
+ * Calculates the greatest common divisor
+ *
+ * Say you have 693 and 609. The GCD is 21.
+ *
+ * Here's an example:
+ * <code>
+ * <?php
+ * $a = new \phpseclib\Math\BigInteger(693);
+ * $b = new \phpseclib\Math\BigInteger(609);
+ *
+ * $gcd = a->extendedGCD($b);
+ *
+ * echo $gcd->toString() . "\r\n"; // outputs 21
+ * ?>
+ * </code>
+ *
+ * @param \phpseclib\Math\BigInteger $n
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ */
+ function gcd($n)
+ {
+ extract($this->extendedGCD($n));
+ return $gcd;
+ }
+
+ /**
+ * Absolute value.
+ *
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ */
+ function abs()
+ {
+ $temp = new static();
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp->value = gmp_abs($this->value);
+ break;
+ case self::MODE_BCMATH:
+ $temp->value = (bccomp($this->value, '0', 0) < 0) ? substr($this->value, 1) : $this->value;
+ break;
+ default:
+ $temp->value = $this->value;
+ }
+
+ return $temp;
+ }
+
+ /**
+ * Compares two numbers.
+ *
+ * Although one might think !$x->compare($y) means $x != $y, it, in fact, means the opposite. The reason for this is
+ * demonstrated thusly:
+ *
+ * $x > $y: $x->compare($y) > 0
+ * $x < $y: $x->compare($y) < 0
+ * $x == $y: $x->compare($y) == 0
+ *
+ * Note how the same comparison operator is used. If you want to test for equality, use $x->equals($y).
+ *
+ * @param \phpseclib\Math\BigInteger $y
+ * @return int < 0 if $this is less than $y; > 0 if $this is greater than $y, and 0 if they are equal.
+ * @access public
+ * @see self::equals()
+ * @internal Could return $this->subtract($x), but that's not as fast as what we do do.
+ */
+ function compare($y)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ return gmp_cmp($this->value, $y->value);
+ case self::MODE_BCMATH:
+ return bccomp($this->value, $y->value, 0);
+ }
+
+ return $this->_compare($this->value, $this->is_negative, $y->value, $y->is_negative);
+ }
+
+ /**
+ * Compares two numbers.
+ *
+ * @param array $x_value
+ * @param bool $x_negative
+ * @param array $y_value
+ * @param bool $y_negative
+ * @return int
+ * @see self::compare()
+ * @access private
+ */
+ function _compare($x_value, $x_negative, $y_value, $y_negative)
+ {
+ if ($x_negative != $y_negative) {
+ return (!$x_negative && $y_negative) ? 1 : -1;
+ }
+
+ $result = $x_negative ? -1 : 1;
+
+ if (count($x_value) != count($y_value)) {
+ return (count($x_value) > count($y_value)) ? $result : -$result;
+ }
+ $size = max(count($x_value), count($y_value));
+
+ $x_value = array_pad($x_value, $size, 0);
+ $y_value = array_pad($y_value, $size, 0);
+
+ for ($i = count($x_value) - 1; $i >= 0; --$i) {
+ if ($x_value[$i] != $y_value[$i]) {
+ return ($x_value[$i] > $y_value[$i]) ? $result : -$result;
+ }
+ }
+
+ return 0;
+ }
+
+ /**
+ * Tests the equality of two numbers.
+ *
+ * If you need to see if one number is greater than or less than another number, use BigInteger::compare()
+ *
+ * @param \phpseclib\Math\BigInteger $x
+ * @return bool
+ * @access public
+ * @see self::compare()
+ */
+ function equals($x)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ return gmp_cmp($this->value, $x->value) == 0;
+ default:
+ return $this->value === $x->value && $this->is_negative == $x->is_negative;
+ }
+ }
+
+ /**
+ * Set Precision
+ *
+ * Some bitwise operations give different results depending on the precision being used. Examples include left
+ * shift, not, and rotates.
+ *
+ * @param int $bits
+ * @access public
+ */
+ function setPrecision($bits)
+ {
+ $this->precision = $bits;
+ if (MATH_BIGINTEGER_MODE != self::MODE_BCMATH) {
+ $this->bitmask = new static(chr((1 << ($bits & 0x7)) - 1) . str_repeat(chr(0xFF), $bits >> 3), 256);
+ } else {
+ $this->bitmask = new static(bcpow('2', $bits, 0));
+ }
+
+ $temp = $this->_normalize($this);
+ $this->value = $temp->value;
+ }
+
+ /**
+ * Logical And
+ *
+ * @param \phpseclib\Math\BigInteger $x
+ * @access public
+ * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat>
+ * @return \phpseclib\Math\BigInteger
+ */
+ function bitwise_and($x)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = new static();
+ $temp->value = gmp_and($this->value, $x->value);
+
+ return $this->_normalize($temp);
+ case self::MODE_BCMATH:
+ $left = $this->toBytes();
+ $right = $x->toBytes();
+
+ $length = max(strlen($left), strlen($right));
+
+ $left = str_pad($left, $length, chr(0), STR_PAD_LEFT);
+ $right = str_pad($right, $length, chr(0), STR_PAD_LEFT);
+
+ return $this->_normalize(new static($left & $right, 256));
+ }
+
+ $result = $this->copy();
+
+ $length = min(count($x->value), count($this->value));
+
+ $result->value = array_slice($result->value, 0, $length);
+
+ for ($i = 0; $i < $length; ++$i) {
+ $result->value[$i]&= $x->value[$i];
+ }
+
+ return $this->_normalize($result);
+ }
+
+ /**
+ * Logical Or
+ *
+ * @param \phpseclib\Math\BigInteger $x
+ * @access public
+ * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat>
+ * @return \phpseclib\Math\BigInteger
+ */
+ function bitwise_or($x)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = new static();
+ $temp->value = gmp_or($this->value, $x->value);
+
+ return $this->_normalize($temp);
+ case self::MODE_BCMATH:
+ $left = $this->toBytes();
+ $right = $x->toBytes();
+
+ $length = max(strlen($left), strlen($right));
+
+ $left = str_pad($left, $length, chr(0), STR_PAD_LEFT);
+ $right = str_pad($right, $length, chr(0), STR_PAD_LEFT);
+
+ return $this->_normalize(new static($left | $right, 256));
+ }
+
+ $length = max(count($this->value), count($x->value));
+ $result = $this->copy();
+ $result->value = array_pad($result->value, $length, 0);
+ $x->value = array_pad($x->value, $length, 0);
+
+ for ($i = 0; $i < $length; ++$i) {
+ $result->value[$i]|= $x->value[$i];
+ }
+
+ return $this->_normalize($result);
+ }
+
+ /**
+ * Logical Exclusive-Or
+ *
+ * @param \phpseclib\Math\BigInteger $x
+ * @access public
+ * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat>
+ * @return \phpseclib\Math\BigInteger
+ */
+ function bitwise_xor($x)
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ $temp = new static();
+ $temp->value = gmp_xor($this->value, $x->value);
+
+ return $this->_normalize($temp);
+ case self::MODE_BCMATH:
+ $left = $this->toBytes();
+ $right = $x->toBytes();
+
+ $length = max(strlen($left), strlen($right));
+
+ $left = str_pad($left, $length, chr(0), STR_PAD_LEFT);
+ $right = str_pad($right, $length, chr(0), STR_PAD_LEFT);
+
+ return $this->_normalize(new static($left ^ $right, 256));
+ }
+
+ $length = max(count($this->value), count($x->value));
+ $result = $this->copy();
+ $result->value = array_pad($result->value, $length, 0);
+ $x->value = array_pad($x->value, $length, 0);
+
+ for ($i = 0; $i < $length; ++$i) {
+ $result->value[$i]^= $x->value[$i];
+ }
+
+ return $this->_normalize($result);
+ }
+
+ /**
+ * Logical Not
+ *
+ * @access public
+ * @internal Implemented per a request by Lluis Pamies i Juarez <lluis _a_ pamies.cat>
+ * @return \phpseclib\Math\BigInteger
+ */
+ function bitwise_not()
+ {
+ // calculuate "not" without regard to $this->precision
+ // (will always result in a smaller number. ie. ~1 isn't 1111 1110 - it's 0)
+ $temp = $this->toBytes();
+ if ($temp == '') {
+ return '';
+ }
+ $pre_msb = decbin(ord($temp[0]));
+ $temp = ~$temp;
+ $msb = decbin(ord($temp[0]));
+ if (strlen($msb) == 8) {
+ $msb = substr($msb, strpos($msb, '0'));
+ }
+ $temp[0] = chr(bindec($msb));
+
+ // see if we need to add extra leading 1's
+ $current_bits = strlen($pre_msb) + 8 * strlen($temp) - 8;
+ $new_bits = $this->precision - $current_bits;
+ if ($new_bits <= 0) {
+ return $this->_normalize(new static($temp, 256));
+ }
+
+ // generate as many leading 1's as we need to.
+ $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
+ $this->_base256_lshift($leading_ones, $current_bits);
+
+ $temp = str_pad($temp, strlen($leading_ones), chr(0), STR_PAD_LEFT);
+
+ return $this->_normalize(new static($leading_ones | $temp, 256));
+ }
+
+ /**
+ * Logical Right Shift
+ *
+ * Shifts BigInteger's by $shift bits, effectively dividing by 2**$shift.
+ *
+ * @param int $shift
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ * @internal The only version that yields any speed increases is the internal version.
+ */
+ function bitwise_rightShift($shift)
+ {
+ $temp = new static();
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ static $two;
+
+ if (!isset($two)) {
+ $two = gmp_init('2');
+ }
+
+ $temp->value = gmp_div_q($this->value, gmp_pow($two, $shift));
+
+ break;
+ case self::MODE_BCMATH:
+ $temp->value = bcdiv($this->value, bcpow('2', $shift, 0), 0);
+
+ break;
+ default: // could just replace _lshift with this, but then all _lshift() calls would need to be rewritten
+ // and I don't want to do that...
+ $temp->value = $this->value;
+ $temp->_rshift($shift);
+ }
+
+ return $this->_normalize($temp);
+ }
+
+ /**
+ * Logical Left Shift
+ *
+ * Shifts BigInteger's by $shift bits, effectively multiplying by 2**$shift.
+ *
+ * @param int $shift
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ * @internal The only version that yields any speed increases is the internal version.
+ */
+ function bitwise_leftShift($shift)
+ {
+ $temp = new static();
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ static $two;
+
+ if (!isset($two)) {
+ $two = gmp_init('2');
+ }
+
+ $temp->value = gmp_mul($this->value, gmp_pow($two, $shift));
+
+ break;
+ case self::MODE_BCMATH:
+ $temp->value = bcmul($this->value, bcpow('2', $shift, 0), 0);
+
+ break;
+ default: // could just replace _rshift with this, but then all _lshift() calls would need to be rewritten
+ // and I don't want to do that...
+ $temp->value = $this->value;
+ $temp->_lshift($shift);
+ }
+
+ return $this->_normalize($temp);
+ }
+
+ /**
+ * Logical Left Rotate
+ *
+ * Instead of the top x bits being dropped they're appended to the shifted bit string.
+ *
+ * @param int $shift
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ */
+ function bitwise_leftRotate($shift)
+ {
+ $bits = $this->toBytes();
+
+ if ($this->precision > 0) {
+ $precision = $this->precision;
+ if (MATH_BIGINTEGER_MODE == self::MODE_BCMATH) {
+ $mask = $this->bitmask->subtract(new static(1));
+ $mask = $mask->toBytes();
+ } else {
+ $mask = $this->bitmask->toBytes();
+ }
+ } else {
+ $temp = ord($bits[0]);
+ for ($i = 0; $temp >> $i; ++$i) {
+ }
+ $precision = 8 * strlen($bits) - 8 + $i;
+ $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
+ }
+
+ if ($shift < 0) {
+ $shift+= $precision;
+ }
+ $shift%= $precision;
+
+ if (!$shift) {
+ return $this->copy();
+ }
+
+ $left = $this->bitwise_leftShift($shift);
+ $left = $left->bitwise_and(new static($mask, 256));
+ $right = $this->bitwise_rightShift($precision - $shift);
+ $result = MATH_BIGINTEGER_MODE != self::MODE_BCMATH ? $left->bitwise_or($right) : $left->add($right);
+ return $this->_normalize($result);
+ }
+
+ /**
+ * Logical Right Rotate
+ *
+ * Instead of the bottom x bits being dropped they're prepended to the shifted bit string.
+ *
+ * @param int $shift
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ */
+ function bitwise_rightRotate($shift)
+ {
+ return $this->bitwise_leftRotate(-$shift);
+ }
+
+ /**
+ * Generates a random BigInteger
+ *
+ * Byte length is equal to $length. Uses \phpseclib\Crypt\Random if it's loaded and mt_rand if it's not.
+ *
+ * @param int $length
+ * @return \phpseclib\Math\BigInteger
+ * @access private
+ */
+ function _random_number_helper($size)
+ {
+ if (class_exists('\phpseclib\Crypt\Random')) {
+ $random = Random::string($size);
+ } else {
+ $random = '';
+
+ if ($size & 1) {
+ $random.= chr(mt_rand(0, 255));
+ }
+
+ $blocks = $size >> 1;
+ for ($i = 0; $i < $blocks; ++$i) {
+ // mt_rand(-2147483648, 0x7FFFFFFF) always produces -2147483648 on some systems
+ $random.= pack('n', mt_rand(0, 0xFFFF));
+ }
+ }
+
+ return new static($random, 256);
+ }
+
+ /**
+ * Generate a random number
+ *
+ * Returns a random number between $min and $max where $min and $max
+ * can be defined using one of the two methods:
+ *
+ * $min->random($max)
+ * $max->random($min)
+ *
+ * @param \phpseclib\Math\BigInteger $arg1
+ * @param \phpseclib\Math\BigInteger $arg2
+ * @return \phpseclib\Math\BigInteger
+ * @access public
+ * @internal The API for creating random numbers used to be $a->random($min, $max), where $a was a BigInteger object.
+ * That method is still supported for BC purposes.
+ */
+ function random($arg1, $arg2 = false)
+ {
+ if ($arg1 === false) {
+ return false;
+ }
+
+ if ($arg2 === false) {
+ $max = $arg1;
+ $min = $this;
+ } else {
+ $min = $arg1;
+ $max = $arg2;
+ }
+
+ $compare = $max->compare($min);
+
+ if (!$compare) {
+ return $this->_normalize($min);
+ } elseif ($compare < 0) {
+ // if $min is bigger then $max, swap $min and $max
+ $temp = $max;
+ $max = $min;
+ $min = $temp;
+ }
+
+ static $one;
+ if (!isset($one)) {
+ $one = new static(1);
+ }
+
+ $max = $max->subtract($min->subtract($one));
+ $size = strlen(ltrim($max->toBytes(), chr(0)));
+
+ /*
+ doing $random % $max doesn't work because some numbers will be more likely to occur than others.
+ eg. if $max is 140 and $random's max is 255 then that'd mean both $random = 5 and $random = 145
+ would produce 5 whereas the only value of random that could produce 139 would be 139. ie.
+ not all numbers would be equally likely. some would be more likely than others.
+
+ creating a whole new random number until you find one that is within the range doesn't work
+ because, for sufficiently small ranges, the likelihood that you'd get a number within that range
+ would be pretty small. eg. with $random's max being 255 and if your $max being 1 the probability
+ would be pretty high that $random would be greater than $max.
+
+ phpseclib works around this using the technique described here:
+
+ http://crypto.stackexchange.com/questions/5708/creating-a-small-number-from-a-cryptographically-secure-random-string
+ */
+ $random_max = new static(chr(1) . str_repeat("\0", $size), 256);
+ $random = $this->_random_number_helper($size);
+
+ list($max_multiple) = $random_max->divide($max);
+ $max_multiple = $max_multiple->multiply($max);
+
+ while ($random->compare($max_multiple) >= 0) {
+ $random = $random->subtract($max_multiple);
+ $random_max = $random_max->subtract($max_multiple);
+ $random = $random->bitwise_leftShift(8);
+ $random = $random->add($this->_random_number_helper(1));
+ $random_max = $random_max->bitwise_leftShift(8);
+ list($max_multiple) = $random_max->divide($max);
+ $max_multiple = $max_multiple->multiply($max);
+ }
+ list(, $random) = $random->divide($max);
+
+ return $this->_normalize($random->add($min));
+ }
+
+ /**
+ * Generate a random prime number.
+ *
+ * If there's not a prime within the given range, false will be returned.
+ * If more than $timeout seconds have elapsed, give up and return false.
+ *
+ * @param \phpseclib\Math\BigInteger $arg1
+ * @param \phpseclib\Math\BigInteger $arg2
+ * @param int $timeout
+ * @return Math_BigInteger|false
+ * @access public
+ * @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap4.pdf#page=15 HAC 4.44}.
+ */
+ function randomPrime($arg1, $arg2 = false, $timeout = false)
+ {
+ if ($arg1 === false) {
+ return false;
+ }
+
+ if ($arg2 === false) {
+ $max = $arg1;
+ $min = $this;
+ } else {
+ $min = $arg1;
+ $max = $arg2;
+ }
+
+ $compare = $max->compare($min);
+
+ if (!$compare) {
+ return $min->isPrime() ? $min : false;
+ } elseif ($compare < 0) {
+ // if $min is bigger then $max, swap $min and $max
+ $temp = $max;
+ $max = $min;
+ $min = $temp;
+ }
+
+ static $one, $two;
+ if (!isset($one)) {
+ $one = new static(1);
+ $two = new static(2);
+ }
+
+ $start = time();
+
+ $x = $this->random($min, $max);
+
+ // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
+ if (MATH_BIGINTEGER_MODE == self::MODE_GMP && extension_loaded('gmp')) {
+ $p = new static();
+ $p->value = gmp_nextprime($x->value);
+
+ if ($p->compare($max) <= 0) {
+ return $p;
+ }
+
+ if (!$min->equals($x)) {
+ $x = $x->subtract($one);
+ }
+
+ return $x->randomPrime($min, $x);
+ }
+
+ if ($x->equals($two)) {
+ return $x;
+ }
+
+ $x->_make_odd();
+ if ($x->compare($max) > 0) {
+ // if $x > $max then $max is even and if $min == $max then no prime number exists between the specified range
+ if ($min->equals($max)) {
+ return false;
+ }
+ $x = $min->copy();
+ $x->_make_odd();
+ }
+
+ $initial_x = $x->copy();
+
+ while (true) {
+ if ($timeout !== false && time() - $start > $timeout) {
+ return false;
+ }
+
+ if ($x->isPrime()) {
+ return $x;
+ }
+
+ $x = $x->add($two);
+
+ if ($x->compare($max) > 0) {
+ $x = $min->copy();
+ if ($x->equals($two)) {
+ return $x;
+ }
+ $x->_make_odd();
+ }
+
+ if ($x->equals($initial_x)) {
+ return false;
+ }
+ }
+ }
+
+ /**
+ * Make the current number odd
+ *
+ * If the current number is odd it'll be unchanged. If it's even, one will be added to it.
+ *
+ * @see self::randomPrime()
+ * @access private
+ */
+ function _make_odd()
+ {
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ gmp_setbit($this->value, 0);
+ break;
+ case self::MODE_BCMATH:
+ if ($this->value[strlen($this->value) - 1] % 2 == 0) {
+ $this->value = bcadd($this->value, '1');
+ }
+ break;
+ default:
+ $this->value[0] |= 1;
+ }
+ }
+
+ /**
+ * Checks a numer to see if it's prime
+ *
+ * Assuming the $t parameter is not set, this function has an error rate of 2**-80. The main motivation for the
+ * $t parameter is distributability. BigInteger::randomPrime() can be distributed across multiple pageloads
+ * on a website instead of just one.
+ *
+ * @param \phpseclib\Math\BigInteger $t
+ * @return bool
+ * @access public
+ * @internal Uses the
+ * {@link http://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test Miller-Rabin primality test}. See
+ * {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap4.pdf#page=8 HAC 4.24}.
+ */
+ function isPrime($t = false)
+ {
+ $length = strlen($this->toBytes());
+
+ if (!$t) {
+ // see HAC 4.49 "Note (controlling the error probability)"
+ // @codingStandardsIgnoreStart
+ if ($length >= 163) { $t = 2; } // floor(1300 / 8)
+ else if ($length >= 106) { $t = 3; } // floor( 850 / 8)
+ else if ($length >= 81 ) { $t = 4; } // floor( 650 / 8)
+ else if ($length >= 68 ) { $t = 5; } // floor( 550 / 8)
+ else if ($length >= 56 ) { $t = 6; } // floor( 450 / 8)
+ else if ($length >= 50 ) { $t = 7; } // floor( 400 / 8)
+ else if ($length >= 43 ) { $t = 8; } // floor( 350 / 8)
+ else if ($length >= 37 ) { $t = 9; } // floor( 300 / 8)
+ else if ($length >= 31 ) { $t = 12; } // floor( 250 / 8)
+ else if ($length >= 25 ) { $t = 15; } // floor( 200 / 8)
+ else if ($length >= 18 ) { $t = 18; } // floor( 150 / 8)
+ else { $t = 27; }
+ // @codingStandardsIgnoreEnd
+ }
+
+ // ie. gmp_testbit($this, 0)
+ // ie. isEven() or !isOdd()
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ return gmp_prob_prime($this->value, $t) != 0;
+ case self::MODE_BCMATH:
+ if ($this->value === '2') {
+ return true;
+ }
+ if ($this->value[strlen($this->value) - 1] % 2 == 0) {
+ return false;
+ }
+ break;
+ default:
+ if ($this->value == array(2)) {
+ return true;
+ }
+ if (~$this->value[0] & 1) {
+ return false;
+ }
+ }
+
+ static $primes, $zero, $one, $two;
+
+ if (!isset($primes)) {
+ $primes = array(
+ 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59,
+ 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137,
+ 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227,
+ 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313,
+ 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419,
+ 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509,
+ 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617,
+ 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727,
+ 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829,
+ 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947,
+ 953, 967, 971, 977, 983, 991, 997
+ );
+
+ if (MATH_BIGINTEGER_MODE != self::MODE_INTERNAL) {
+ for ($i = 0; $i < count($primes); ++$i) {
+ $primes[$i] = new static($primes[$i]);
+ }
+ }
+
+ $zero = new static();
+ $one = new static(1);
+ $two = new static(2);
+ }
+
+ if ($this->equals($one)) {
+ return false;
+ }
+
+ // see HAC 4.4.1 "Random search for probable primes"
+ if (MATH_BIGINTEGER_MODE != self::MODE_INTERNAL) {
+ foreach ($primes as $prime) {
+ list(, $r) = $this->divide($prime);
+ if ($r->equals($zero)) {
+ return $this->equals($prime);
+ }
+ }
+ } else {
+ $value = $this->value;
+ foreach ($primes as $prime) {
+ list(, $r) = $this->_divide_digit($value, $prime);
+ if (!$r) {
+ return count($value) == 1 && $value[0] == $prime;
+ }
+ }
+ }
+
+ $n = $this->copy();
+ $n_1 = $n->subtract($one);
+ $n_2 = $n->subtract($two);
+
+ $r = $n_1->copy();
+ $r_value = $r->value;
+ // ie. $s = gmp_scan1($n, 0) and $r = gmp_div_q($n, gmp_pow(gmp_init('2'), $s));
+ if (MATH_BIGINTEGER_MODE == self::MODE_BCMATH) {
+ $s = 0;
+ // if $n was 1, $r would be 0 and this would be an infinite loop, hence our $this->equals($one) check earlier
+ while ($r->value[strlen($r->value) - 1] % 2 == 0) {
+ $r->value = bcdiv($r->value, '2', 0);
+ ++$s;
+ }
+ } else {
+ for ($i = 0, $r_length = count($r_value); $i < $r_length; ++$i) {
+ $temp = ~$r_value[$i] & 0xFFFFFF;
+ for ($j = 1; ($temp >> $j) & 1; ++$j) {
+ }
+ if ($j != 25) {
+ break;
+ }
+ }
+ $s = 26 * $i + $j - 1;
+ $r->_rshift($s);
+ }
+
+ for ($i = 0; $i < $t; ++$i) {
+ $a = $this->random($two, $n_2);
+ $y = $a->modPow($r, $n);
+
+ if (!$y->equals($one) && !$y->equals($n_1)) {
+ for ($j = 1; $j < $s && !$y->equals($n_1); ++$j) {
+ $y = $y->modPow($two, $n);
+ if ($y->equals($one)) {
+ return false;
+ }
+ }
+
+ if (!$y->equals($n_1)) {
+ return false;
+ }
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Logical Left Shift
+ *
+ * Shifts BigInteger's by $shift bits.
+ *
+ * @param int $shift
+ * @access private
+ */
+ function _lshift($shift)
+ {
+ if ($shift == 0) {
+ return;
+ }
+
+ $num_digits = (int) ($shift / self::$base);
+ $shift %= self::$base;
+ $shift = 1 << $shift;
+
+ $carry = 0;
+
+ for ($i = 0; $i < count($this->value); ++$i) {
+ $temp = $this->value[$i] * $shift + $carry;
+ $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
+ $this->value[$i] = (int) ($temp - $carry * self::$baseFull);
+ }
+
+ if ($carry) {
+ $this->value[count($this->value)] = $carry;
+ }
+
+ while ($num_digits--) {
+ array_unshift($this->value, 0);
+ }
+ }
+
+ /**
+ * Logical Right Shift
+ *
+ * Shifts BigInteger's by $shift bits.
+ *
+ * @param int $shift
+ * @access private
+ */
+ function _rshift($shift)
+ {
+ if ($shift == 0) {
+ return;
+ }
+
+ $num_digits = (int) ($shift / self::$base);
+ $shift %= self::$base;
+ $carry_shift = self::$base - $shift;
+ $carry_mask = (1 << $shift) - 1;
+
+ if ($num_digits) {
+ $this->value = array_slice($this->value, $num_digits);
+ }
+
+ $carry = 0;
+
+ for ($i = count($this->value) - 1; $i >= 0; --$i) {
+ $temp = $this->value[$i] >> $shift | $carry;
+ $carry = ($this->value[$i] & $carry_mask) << $carry_shift;
+ $this->value[$i] = $temp;
+ }
+
+ $this->value = $this->_trim($this->value);
+ }
+
+ /**
+ * Normalize
+ *
+ * Removes leading zeros and truncates (if necessary) to maintain the appropriate precision
+ *
+ * @param \phpseclib\Math\BigInteger
+ * @return \phpseclib\Math\BigInteger
+ * @see self::_trim()
+ * @access private
+ */
+ function _normalize($result)
+ {
+ $result->precision = $this->precision;
+ $result->bitmask = $this->bitmask;
+
+ switch (MATH_BIGINTEGER_MODE) {
+ case self::MODE_GMP:
+ if ($this->bitmask !== false) {
+ $result->value = gmp_and($result->value, $result->bitmask->value);
+ }
+
+ return $result;
+ case self::MODE_BCMATH:
+ if (!empty($result->bitmask->value)) {
+ $result->value = bcmod($result->value, $result->bitmask->value);
+ }
+
+ return $result;
+ }
+
+ $value = &$result->value;
+
+ if (!count($value)) {
+ return $result;
+ }
+
+ $value = $this->_trim($value);
+
+ if (!empty($result->bitmask->value)) {
+ $length = min(count($value), count($this->bitmask->value));
+ $value = array_slice($value, 0, $length);
+
+ for ($i = 0; $i < $length; ++$i) {
+ $value[$i] = $value[$i] & $this->bitmask->value[$i];
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * Trim
+ *
+ * Removes leading zeros
+ *
+ * @param array $value
+ * @return \phpseclib\Math\BigInteger
+ * @access private
+ */
+ function _trim($value)
+ {
+ for ($i = count($value) - 1; $i >= 0; --$i) {
+ if ($value[$i]) {
+ break;
+ }
+ unset($value[$i]);
+ }
+
+ return $value;
+ }
+
+ /**
+ * Array Repeat
+ *
+ * @param $input Array
+ * @param $multiplier mixed
+ * @return array
+ * @access private
+ */
+ function _array_repeat($input, $multiplier)
+ {
+ return ($multiplier) ? array_fill(0, $multiplier, $input) : array();
+ }
+
+ /**
+ * Logical Left Shift
+ *
+ * Shifts binary strings $shift bits, essentially multiplying by 2**$shift.
+ *
+ * @param $x String
+ * @param $shift Integer
+ * @return string
+ * @access private
+ */
+ function _base256_lshift(&$x, $shift)
+ {
+ if ($shift == 0) {
+ return;
+ }
+
+ $num_bytes = $shift >> 3; // eg. floor($shift/8)
+ $shift &= 7; // eg. $shift % 8
+
+ $carry = 0;
+ for ($i = strlen($x) - 1; $i >= 0; --$i) {
+ $temp = ord($x[$i]) << $shift | $carry;
+ $x[$i] = chr($temp);
+ $carry = $temp >> 8;
+ }
+ $carry = ($carry != 0) ? chr($carry) : '';
+ $x = $carry . $x . str_repeat(chr(0), $num_bytes);
+ }
+
+ /**
+ * Logical Right Shift
+ *
+ * Shifts binary strings $shift bits, essentially dividing by 2**$shift and returning the remainder.
+ *
+ * @param $x String
+ * @param $shift Integer
+ * @return string
+ * @access private
+ */
+ function _base256_rshift(&$x, $shift)
+ {
+ if ($shift == 0) {
+ $x = ltrim($x, chr(0));
+ return '';
+ }
+
+ $num_bytes = $shift >> 3; // eg. floor($shift/8)
+ $shift &= 7; // eg. $shift % 8
+
+ $remainder = '';
+ if ($num_bytes) {
+ $start = $num_bytes > strlen($x) ? -strlen($x) : -$num_bytes;
+ $remainder = substr($x, $start);
+ $x = substr($x, 0, -$num_bytes);
+ }
+
+ $carry = 0;
+ $carry_shift = 8 - $shift;
+ for ($i = 0; $i < strlen($x); ++$i) {
+ $temp = (ord($x[$i]) >> $shift) | $carry;
+ $carry = (ord($x[$i]) << $carry_shift) & 0xFF;
+ $x[$i] = chr($temp);
+ }
+ $x = ltrim($x, chr(0));
+
+ $remainder = chr($carry >> $carry_shift) . $remainder;
+
+ return ltrim($remainder, chr(0));
+ }
+
+ // one quirk about how the following functions are implemented is that PHP defines N to be an unsigned long
+ // at 32-bits, while java's longs are 64-bits.
+
+ /**
+ * Converts 32-bit integers to bytes.
+ *
+ * @param int $x
+ * @return string
+ * @access private
+ */
+ function _int2bytes($x)
+ {
+ return ltrim(pack('N', $x), chr(0));
+ }
+
+ /**
+ * Converts bytes to 32-bit integers
+ *
+ * @param string $x
+ * @return int
+ * @access private
+ */
+ function _bytes2int($x)
+ {
+ $temp = unpack('Nint', str_pad($x, 4, chr(0), STR_PAD_LEFT));
+ return $temp['int'];
+ }
+
+ /**
+ * DER-encode an integer
+ *
+ * The ability to DER-encode integers is needed to create RSA public keys for use with OpenSSL
+ *
+ * @see self::modPow()
+ * @access private
+ * @param int $length
+ * @return string
+ */
+ function _encodeASN1Length($length)
+ {
+ if ($length <= 0x7F) {
+ return chr($length);
+ }
+
+ $temp = ltrim(pack('N', $length), chr(0));
+ return pack('Ca*', 0x80 | strlen($temp), $temp);
+ }
+
+ /**
+ * Single digit division
+ *
+ * Even if int64 is being used the division operator will return a float64 value
+ * if the dividend is not evenly divisible by the divisor. Since a float64 doesn't
+ * have the precision of int64 this is a problem so, when int64 is being used,
+ * we'll guarantee that the dividend is divisible by first subtracting the remainder.
+ *
+ * @access private
+ * @param int $x
+ * @param int $y
+ * @return int
+ */
+ function _safe_divide($x, $y)
+ {
+ if (self::$base === 26) {
+ return (int) ($x / $y);
+ }
+
+ // self::$base === 31
+ return ($x - ($x % $y)) / $y;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SCP.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SCP.php
new file mode 100644
index 00000000..f95bce6d
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SCP.php
@@ -0,0 +1,337 @@
+<?php
+
+/**
+ * Pure-PHP implementation of SCP.
+ *
+ * PHP version 5
+ *
+ * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $ssh = new \phpseclib\Net\SSH2('www.domain.tld');
+ * if (!$ssh->login('username', 'password')) {
+ * exit('bad login');
+ * }
+ * $scp = new \phpseclib\Net\SCP($ssh);
+ *
+ * $scp->put('abcd', str_repeat('x', 1024*1024));
+ * ?>
+ * </code>
+ *
+ * @category Net
+ * @package SCP
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2010 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Net;
+
+/**
+ * Pure-PHP implementations of SCP.
+ *
+ * @package SCP
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class SCP
+{
+ /**#@+
+ * @access public
+ * @see \phpseclib\Net\SCP::put()
+ */
+ /**
+ * Reads data from a local file.
+ */
+ const SOURCE_LOCAL_FILE = 1;
+ /**
+ * Reads data from a string.
+ */
+ const SOURCE_STRING = 2;
+ /**#@-*/
+
+ /**#@+
+ * @access private
+ * @see \phpseclib\Net\SCP::_send()
+ * @see \phpseclib\Net\SCP::_receive()
+ */
+ /**
+ * SSH1 is being used.
+ */
+ const MODE_SSH1 = 1;
+ /**
+ * SSH2 is being used.
+ */
+ const MODE_SSH2 = 2;
+ /**#@-*/
+
+ /**
+ * SSH Object
+ *
+ * @var object
+ * @access private
+ */
+ var $ssh;
+
+ /**
+ * Packet Size
+ *
+ * @var int
+ * @access private
+ */
+ var $packet_size;
+
+ /**
+ * Mode
+ *
+ * @var int
+ * @access private
+ */
+ var $mode;
+
+ /**
+ * Default Constructor.
+ *
+ * Connects to an SSH server
+ *
+ * @param \phpseclib\Net\SSH1|\phpseclib\Net\SSH2 $ssh
+ * @return \phpseclib\Net\SCP
+ * @access public
+ */
+ function __construct($ssh)
+ {
+ if ($ssh instanceof SSH2) {
+ $this->mode = self::MODE_SSH2;
+ } elseif ($ssh instanceof SSH1) {
+ $this->packet_size = 50000;
+ $this->mode = self::MODE_SSH1;
+ } else {
+ return;
+ }
+
+ $this->ssh = $ssh;
+ }
+
+ /**
+ * Uploads a file to the SCP server.
+ *
+ * By default, \phpseclib\Net\SCP::put() does not read from the local filesystem. $data is dumped directly into $remote_file.
+ * So, for example, if you set $data to 'filename.ext' and then do \phpseclib\Net\SCP::get(), you will get a file, twelve bytes
+ * long, containing 'filename.ext' as its contents.
+ *
+ * Setting $mode to self::SOURCE_LOCAL_FILE will change the above behavior. With self::SOURCE_LOCAL_FILE, $remote_file will
+ * contain as many bytes as filename.ext does on your local filesystem. If your filename.ext is 1MB then that is how
+ * large $remote_file will be, as well.
+ *
+ * Currently, only binary mode is supported. As such, if the line endings need to be adjusted, you will need to take
+ * care of that, yourself.
+ *
+ * @param string $remote_file
+ * @param string $data
+ * @param int $mode
+ * @param callable $callback
+ * @return bool
+ * @access public
+ */
+ function put($remote_file, $data, $mode = self::SOURCE_STRING, $callback = null)
+ {
+ if (!isset($this->ssh)) {
+ return false;
+ }
+
+ if (!$this->ssh->exec('scp -t ' . escapeshellarg($remote_file), false)) { // -t = to
+ return false;
+ }
+
+ $temp = $this->_receive();
+ if ($temp !== chr(0)) {
+ return false;
+ }
+
+ if ($this->mode == self::MODE_SSH2) {
+ $this->packet_size = $this->ssh->packet_size_client_to_server[SSH2::CHANNEL_EXEC] - 4;
+ }
+
+ $remote_file = basename($remote_file);
+
+ if ($mode == self::SOURCE_STRING) {
+ $size = strlen($data);
+ } else {
+ if (!is_file($data)) {
+ user_error("$data is not a valid file", E_USER_NOTICE);
+ return false;
+ }
+
+ $fp = @fopen($data, 'rb');
+ if (!$fp) {
+ return false;
+ }
+ $size = filesize($data);
+ }
+
+ $this->_send('C0644 ' . $size . ' ' . $remote_file . "\n");
+
+ $temp = $this->_receive();
+ if ($temp !== chr(0)) {
+ return false;
+ }
+
+ $sent = 0;
+ while ($sent < $size) {
+ $temp = $mode & self::SOURCE_STRING ? substr($data, $sent, $this->packet_size) : fread($fp, $this->packet_size);
+ $this->_send($temp);
+ $sent+= strlen($temp);
+
+ if (is_callable($callback)) {
+ call_user_func($callback, $sent);
+ }
+ }
+ $this->_close();
+
+ if ($mode != self::SOURCE_STRING) {
+ fclose($fp);
+ }
+
+ return true;
+ }
+
+ /**
+ * Downloads a file from the SCP server.
+ *
+ * Returns a string containing the contents of $remote_file if $local_file is left undefined or a boolean false if
+ * the operation was unsuccessful. If $local_file is defined, returns true or false depending on the success of the
+ * operation
+ *
+ * @param string $remote_file
+ * @param string $local_file
+ * @return mixed
+ * @access public
+ */
+ function get($remote_file, $local_file = false)
+ {
+ if (!isset($this->ssh)) {
+ return false;
+ }
+
+ if (!$this->ssh->exec('scp -f ' . escapeshellarg($remote_file), false)) { // -f = from
+ return false;
+ }
+
+ $this->_send("\0");
+
+ if (!preg_match('#(?<perms>[^ ]+) (?<size>\d+) (?<name>.+)#', rtrim($this->_receive()), $info)) {
+ return false;
+ }
+
+ $this->_send("\0");
+
+ $size = 0;
+
+ if ($local_file !== false) {
+ $fp = @fopen($local_file, 'wb');
+ if (!$fp) {
+ return false;
+ }
+ }
+
+ $content = '';
+ while ($size < $info['size']) {
+ $data = $this->_receive();
+ // SCP usually seems to split stuff out into 16k chunks
+ $size+= strlen($data);
+
+ if ($local_file === false) {
+ $content.= $data;
+ } else {
+ fputs($fp, $data);
+ }
+ }
+
+ $this->_close();
+
+ if ($local_file !== false) {
+ fclose($fp);
+ return true;
+ }
+
+ return $content;
+ }
+
+ /**
+ * Sends a packet to an SSH server
+ *
+ * @param string $data
+ * @access private
+ */
+ function _send($data)
+ {
+ switch ($this->mode) {
+ case self::MODE_SSH2:
+ $this->ssh->_send_channel_packet(SSH2::CHANNEL_EXEC, $data);
+ break;
+ case self::MODE_SSH1:
+ $data = pack('CNa*', NET_SSH1_CMSG_STDIN_DATA, strlen($data), $data);
+ $this->ssh->_send_binary_packet($data);
+ }
+ }
+
+ /**
+ * Receives a packet from an SSH server
+ *
+ * @return string
+ * @access private
+ */
+ function _receive()
+ {
+ switch ($this->mode) {
+ case self::MODE_SSH2:
+ return $this->ssh->_get_channel_packet(SSH2::CHANNEL_EXEC, true);
+ case self::MODE_SSH1:
+ if (!$this->ssh->bitmap) {
+ return false;
+ }
+ while (true) {
+ $response = $this->ssh->_get_binary_packet();
+ switch ($response[SSH1::RESPONSE_TYPE]) {
+ case NET_SSH1_SMSG_STDOUT_DATA:
+ if (strlen($response[SSH1::RESPONSE_DATA]) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $response[SSH1::RESPONSE_DATA]));
+ return $this->ssh->_string_shift($response[SSH1::RESPONSE_DATA], $length);
+ case NET_SSH1_SMSG_STDERR_DATA:
+ break;
+ case NET_SSH1_SMSG_EXITSTATUS:
+ $this->ssh->_send_binary_packet(chr(NET_SSH1_CMSG_EXIT_CONFIRMATION));
+ fclose($this->ssh->fsock);
+ $this->ssh->bitmap = 0;
+ return false;
+ default:
+ user_error('Unknown packet received', E_USER_NOTICE);
+ return false;
+ }
+ }
+ }
+ }
+
+ /**
+ * Closes the connection to an SSH server
+ *
+ * @access private
+ */
+ function _close()
+ {
+ switch ($this->mode) {
+ case self::MODE_SSH2:
+ $this->ssh->_close_channel(SSH2::CHANNEL_EXEC, true);
+ break;
+ case self::MODE_SSH1:
+ $this->ssh->disconnect();
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP.php
new file mode 100644
index 00000000..1421ecb4
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP.php
@@ -0,0 +1,3063 @@
+<?php
+
+/**
+ * Pure-PHP implementation of SFTP.
+ *
+ * PHP version 5
+ *
+ * Currently only supports SFTPv2 and v3, which, according to wikipedia.org, "is the most widely used version,
+ * implemented by the popular OpenSSH SFTP server". If you want SFTPv4/5/6 support, provide me with access
+ * to an SFTPv4/5/6 server.
+ *
+ * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $sftp = new \phpseclib\Net\SFTP('www.domain.tld');
+ * if (!$sftp->login('username', 'password')) {
+ * exit('Login Failed');
+ * }
+ *
+ * echo $sftp->pwd() . "\r\n";
+ * $sftp->put('filename.ext', 'hello, world!');
+ * print_r($sftp->nlist());
+ * ?>
+ * </code>
+ *
+ * @category Net
+ * @package SFTP
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2009 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Net;
+
+/**
+ * Pure-PHP implementations of SFTP.
+ *
+ * @package SFTP
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class SFTP extends SSH2
+{
+ /**
+ * SFTP channel constant
+ *
+ * \phpseclib\Net\SSH2::exec() uses 0 and \phpseclib\Net\SSH2::read() / \phpseclib\Net\SSH2::write() use 1.
+ *
+ * @see \phpseclib\Net\SSH2::_send_channel_packet()
+ * @see \phpseclib\Net\SSH2::_get_channel_packet()
+ * @access private
+ */
+ const CHANNEL = 0x100;
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\Net\SFTP::put()
+ */
+ /**
+ * Reads data from a local file.
+ */
+ const SOURCE_LOCAL_FILE = 1;
+ /**
+ * Reads data from a string.
+ */
+ // this value isn't really used anymore but i'm keeping it reserved for historical reasons
+ const SOURCE_STRING = 2;
+ /**
+ * Reads data from callback:
+ * function callback($length) returns string to proceed, null for EOF
+ */
+ const SOURCE_CALLBACK = 16;
+ /**
+ * Resumes an upload
+ */
+ const RESUME = 4;
+ /**
+ * Append a local file to an already existing remote file
+ */
+ const RESUME_START = 8;
+ /**#@-*/
+
+ /**
+ * Packet Types
+ *
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $packet_types = array();
+
+ /**
+ * Status Codes
+ *
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $status_codes = array();
+
+ /**
+ * The Request ID
+ *
+ * The request ID exists in the off chance that a packet is sent out-of-order. Of course, this library doesn't support
+ * concurrent actions, so it's somewhat academic, here.
+ *
+ * @var int
+ * @see self::_send_sftp_packet()
+ * @access private
+ */
+ var $request_id = false;
+
+ /**
+ * The Packet Type
+ *
+ * The request ID exists in the off chance that a packet is sent out-of-order. Of course, this library doesn't support
+ * concurrent actions, so it's somewhat academic, here.
+ *
+ * @var int
+ * @see self::_get_sftp_packet()
+ * @access private
+ */
+ var $packet_type = -1;
+
+ /**
+ * Packet Buffer
+ *
+ * @var string
+ * @see self::_get_sftp_packet()
+ * @access private
+ */
+ var $packet_buffer = '';
+
+ /**
+ * Extensions supported by the server
+ *
+ * @var array
+ * @see self::_initChannel()
+ * @access private
+ */
+ var $extensions = array();
+
+ /**
+ * Server SFTP version
+ *
+ * @var int
+ * @see self::_initChannel()
+ * @access private
+ */
+ var $version;
+
+ /**
+ * Current working directory
+ *
+ * @var string
+ * @see self::_realpath()
+ * @see self::chdir()
+ * @access private
+ */
+ var $pwd = false;
+
+ /**
+ * Packet Type Log
+ *
+ * @see self::getLog()
+ * @var array
+ * @access private
+ */
+ var $packet_type_log = array();
+
+ /**
+ * Packet Log
+ *
+ * @see self::getLog()
+ * @var array
+ * @access private
+ */
+ var $packet_log = array();
+
+ /**
+ * Error information
+ *
+ * @see self::getSFTPErrors()
+ * @see self::getLastSFTPError()
+ * @var string
+ * @access private
+ */
+ var $sftp_errors = array();
+
+ /**
+ * Stat Cache
+ *
+ * Rather than always having to open a directory and close it immediately there after to see if a file is a directory
+ * we'll cache the results.
+ *
+ * @see self::_update_stat_cache()
+ * @see self::_remove_from_stat_cache()
+ * @see self::_query_stat_cache()
+ * @var array
+ * @access private
+ */
+ var $stat_cache = array();
+
+ /**
+ * Max SFTP Packet Size
+ *
+ * @see self::__construct()
+ * @see self::get()
+ * @var array
+ * @access private
+ */
+ var $max_sftp_packet;
+
+ /**
+ * Stat Cache Flag
+ *
+ * @see self::disableStatCache()
+ * @see self::enableStatCache()
+ * @var bool
+ * @access private
+ */
+ var $use_stat_cache = true;
+
+ /**
+ * Sort Options
+ *
+ * @see self::_comparator()
+ * @see self::setListOrder()
+ * @var array
+ * @access private
+ */
+ var $sortOptions = array();
+
+ /**
+ * Default Constructor.
+ *
+ * Connects to an SFTP server
+ *
+ * @param string $host
+ * @param int $port
+ * @param int $timeout
+ * @return \phpseclib\Net\SFTP
+ * @access public
+ */
+ function __construct($host, $port = 22, $timeout = 10)
+ {
+ parent::__construct($host, $port, $timeout);
+
+ $this->max_sftp_packet = 1 << 15;
+
+ $this->packet_types = array(
+ 1 => 'NET_SFTP_INIT',
+ 2 => 'NET_SFTP_VERSION',
+ /* the format of SSH_FXP_OPEN changed between SFTPv4 and SFTPv5+:
+ SFTPv5+: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.1.1
+ pre-SFTPv5 : http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.3 */
+ 3 => 'NET_SFTP_OPEN',
+ 4 => 'NET_SFTP_CLOSE',
+ 5 => 'NET_SFTP_READ',
+ 6 => 'NET_SFTP_WRITE',
+ 7 => 'NET_SFTP_LSTAT',
+ 9 => 'NET_SFTP_SETSTAT',
+ 11 => 'NET_SFTP_OPENDIR',
+ 12 => 'NET_SFTP_READDIR',
+ 13 => 'NET_SFTP_REMOVE',
+ 14 => 'NET_SFTP_MKDIR',
+ 15 => 'NET_SFTP_RMDIR',
+ 16 => 'NET_SFTP_REALPATH',
+ 17 => 'NET_SFTP_STAT',
+ /* the format of SSH_FXP_RENAME changed between SFTPv4 and SFTPv5+:
+ SFTPv5+: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.3
+ pre-SFTPv5 : http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.5 */
+ 18 => 'NET_SFTP_RENAME',
+ 19 => 'NET_SFTP_READLINK',
+ 20 => 'NET_SFTP_SYMLINK',
+
+ 101=> 'NET_SFTP_STATUS',
+ 102=> 'NET_SFTP_HANDLE',
+ /* the format of SSH_FXP_NAME changed between SFTPv3 and SFTPv4+:
+ SFTPv4+: http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-9.4
+ pre-SFTPv4 : http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-7 */
+ 103=> 'NET_SFTP_DATA',
+ 104=> 'NET_SFTP_NAME',
+ 105=> 'NET_SFTP_ATTRS',
+
+ 200=> 'NET_SFTP_EXTENDED'
+ );
+ $this->status_codes = array(
+ 0 => 'NET_SFTP_STATUS_OK',
+ 1 => 'NET_SFTP_STATUS_EOF',
+ 2 => 'NET_SFTP_STATUS_NO_SUCH_FILE',
+ 3 => 'NET_SFTP_STATUS_PERMISSION_DENIED',
+ 4 => 'NET_SFTP_STATUS_FAILURE',
+ 5 => 'NET_SFTP_STATUS_BAD_MESSAGE',
+ 6 => 'NET_SFTP_STATUS_NO_CONNECTION',
+ 7 => 'NET_SFTP_STATUS_CONNECTION_LOST',
+ 8 => 'NET_SFTP_STATUS_OP_UNSUPPORTED',
+ 9 => 'NET_SFTP_STATUS_INVALID_HANDLE',
+ 10 => 'NET_SFTP_STATUS_NO_SUCH_PATH',
+ 11 => 'NET_SFTP_STATUS_FILE_ALREADY_EXISTS',
+ 12 => 'NET_SFTP_STATUS_WRITE_PROTECT',
+ 13 => 'NET_SFTP_STATUS_NO_MEDIA',
+ 14 => 'NET_SFTP_STATUS_NO_SPACE_ON_FILESYSTEM',
+ 15 => 'NET_SFTP_STATUS_QUOTA_EXCEEDED',
+ 16 => 'NET_SFTP_STATUS_UNKNOWN_PRINCIPAL',
+ 17 => 'NET_SFTP_STATUS_LOCK_CONFLICT',
+ 18 => 'NET_SFTP_STATUS_DIR_NOT_EMPTY',
+ 19 => 'NET_SFTP_STATUS_NOT_A_DIRECTORY',
+ 20 => 'NET_SFTP_STATUS_INVALID_FILENAME',
+ 21 => 'NET_SFTP_STATUS_LINK_LOOP',
+ 22 => 'NET_SFTP_STATUS_CANNOT_DELETE',
+ 23 => 'NET_SFTP_STATUS_INVALID_PARAMETER',
+ 24 => 'NET_SFTP_STATUS_FILE_IS_A_DIRECTORY',
+ 25 => 'NET_SFTP_STATUS_BYTE_RANGE_LOCK_CONFLICT',
+ 26 => 'NET_SFTP_STATUS_BYTE_RANGE_LOCK_REFUSED',
+ 27 => 'NET_SFTP_STATUS_DELETE_PENDING',
+ 28 => 'NET_SFTP_STATUS_FILE_CORRUPT',
+ 29 => 'NET_SFTP_STATUS_OWNER_INVALID',
+ 30 => 'NET_SFTP_STATUS_GROUP_INVALID',
+ 31 => 'NET_SFTP_STATUS_NO_MATCHING_BYTE_RANGE_LOCK'
+ );
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-7.1
+ // the order, in this case, matters quite a lot - see \phpseclib\Net\SFTP::_parseAttributes() to understand why
+ $this->attributes = array(
+ 0x00000001 => 'NET_SFTP_ATTR_SIZE',
+ 0x00000002 => 'NET_SFTP_ATTR_UIDGID', // defined in SFTPv3, removed in SFTPv4+
+ 0x00000004 => 'NET_SFTP_ATTR_PERMISSIONS',
+ 0x00000008 => 'NET_SFTP_ATTR_ACCESSTIME',
+ // 0x80000000 will yield a floating point on 32-bit systems and converting floating points to integers
+ // yields inconsistent behavior depending on how php is compiled. so we left shift -1 (which, in
+ // two's compliment, consists of all 1 bits) by 31. on 64-bit systems this'll yield 0xFFFFFFFF80000000.
+ // that's not a problem, however, and 'anded' and a 32-bit number, as all the leading 1 bits are ignored.
+ -1 << 31 => 'NET_SFTP_ATTR_EXTENDED'
+ );
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.3
+ // the flag definitions change somewhat in SFTPv5+. if SFTPv5+ support is added to this library, maybe name
+ // the array for that $this->open5_flags and similarly alter the constant names.
+ $this->open_flags = array(
+ 0x00000001 => 'NET_SFTP_OPEN_READ',
+ 0x00000002 => 'NET_SFTP_OPEN_WRITE',
+ 0x00000004 => 'NET_SFTP_OPEN_APPEND',
+ 0x00000008 => 'NET_SFTP_OPEN_CREATE',
+ 0x00000010 => 'NET_SFTP_OPEN_TRUNCATE',
+ 0x00000020 => 'NET_SFTP_OPEN_EXCL'
+ );
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-5.2
+ // see \phpseclib\Net\SFTP::_parseLongname() for an explanation
+ $this->file_types = array(
+ 1 => 'NET_SFTP_TYPE_REGULAR',
+ 2 => 'NET_SFTP_TYPE_DIRECTORY',
+ 3 => 'NET_SFTP_TYPE_SYMLINK',
+ 4 => 'NET_SFTP_TYPE_SPECIAL',
+ 5 => 'NET_SFTP_TYPE_UNKNOWN',
+ // the followin types were first defined for use in SFTPv5+
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-05#section-5.2
+ 6 => 'NET_SFTP_TYPE_SOCKET',
+ 7 => 'NET_SFTP_TYPE_CHAR_DEVICE',
+ 8 => 'NET_SFTP_TYPE_BLOCK_DEVICE',
+ 9 => 'NET_SFTP_TYPE_FIFO'
+ );
+ $this->_define_array(
+ $this->packet_types,
+ $this->status_codes,
+ $this->attributes,
+ $this->open_flags,
+ $this->file_types
+ );
+
+ if (!defined('NET_SFTP_QUEUE_SIZE')) {
+ define('NET_SFTP_QUEUE_SIZE', 32);
+ }
+ }
+
+ /**
+ * Login
+ *
+ * @param string $username
+ * @param string $password
+ * @return bool
+ * @access public
+ */
+ function login($username)
+ {
+ $args = func_get_args();
+ if (!call_user_func_array(array(&$this, '_login'), $args)) {
+ return false;
+ }
+
+ $this->window_size_server_to_client[self::CHANNEL] = $this->window_size;
+
+ $packet = pack(
+ 'CNa*N3',
+ NET_SSH2_MSG_CHANNEL_OPEN,
+ strlen('session'),
+ 'session',
+ self::CHANNEL,
+ $this->window_size,
+ 0x4000
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_OPEN;
+
+ $response = $this->_get_channel_packet(self::CHANNEL);
+ if ($response === false) {
+ return false;
+ }
+
+ $packet = pack(
+ 'CNNa*CNa*',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $this->server_channels[self::CHANNEL],
+ strlen('subsystem'),
+ 'subsystem',
+ 1,
+ strlen('sftp'),
+ 'sftp'
+ );
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_REQUEST;
+
+ $response = $this->_get_channel_packet(self::CHANNEL);
+ if ($response === false) {
+ // from PuTTY's psftp.exe
+ $command = "test -x /usr/lib/sftp-server && exec /usr/lib/sftp-server\n" .
+ "test -x /usr/local/lib/sftp-server && exec /usr/local/lib/sftp-server\n" .
+ "exec sftp-server";
+ // we don't do $this->exec($command, false) because exec() operates on a different channel and plus the SSH_MSG_CHANNEL_OPEN that exec() does
+ // is redundant
+ $packet = pack(
+ 'CNNa*CNa*',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $this->server_channels[self::CHANNEL],
+ strlen('exec'),
+ 'exec',
+ 1,
+ strlen($command),
+ $command
+ );
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_REQUEST;
+
+ $response = $this->_get_channel_packet(self::CHANNEL);
+ if ($response === false) {
+ return false;
+ }
+ }
+
+ $this->channel_status[self::CHANNEL] = NET_SSH2_MSG_CHANNEL_DATA;
+
+ if (!$this->_send_sftp_packet(NET_SFTP_INIT, "\0\0\0\3")) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_VERSION) {
+ user_error('Expected SSH_FXP_VERSION');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nversion', $this->_string_shift($response, 4)));
+ $this->version = $version;
+ while (!empty($response)) {
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $key = $this->_string_shift($response, $length);
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $value = $this->_string_shift($response, $length);
+ $this->extensions[$key] = $value;
+ }
+
+ /*
+ SFTPv4+ defines a 'newline' extension. SFTPv3 seems to have unofficial support for it via 'newline@vandyke.com',
+ however, I'm not sure what 'newline@vandyke.com' is supposed to do (the fact that it's unofficial means that it's
+ not in the official SFTPv3 specs) and 'newline@vandyke.com' / 'newline' are likely not drop-in substitutes for
+ one another due to the fact that 'newline' comes with a SSH_FXF_TEXT bitmask whereas it seems unlikely that
+ 'newline@vandyke.com' would.
+ */
+ /*
+ if (isset($this->extensions['newline@vandyke.com'])) {
+ $this->extensions['newline'] = $this->extensions['newline@vandyke.com'];
+ unset($this->extensions['newline@vandyke.com']);
+ }
+ */
+
+ $this->request_id = 1;
+
+ /*
+ A Note on SFTPv4/5/6 support:
+ <http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-5.1> states the following:
+
+ "If the client wishes to interoperate with servers that support noncontiguous version
+ numbers it SHOULD send '3'"
+
+ Given that the server only sends its version number after the client has already done so, the above
+ seems to be suggesting that v3 should be the default version. This makes sense given that v3 is the
+ most popular.
+
+ <http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-5.5> states the following;
+
+ "If the server did not send the "versions" extension, or the version-from-list was not included, the
+ server MAY send a status response describing the failure, but MUST then close the channel without
+ processing any further requests."
+
+ So what do you do if you have a client whose initial SSH_FXP_INIT packet says it implements v3 and
+ a server whose initial SSH_FXP_VERSION reply says it implements v4 and only v4? If it only implements
+ v4, the "versions" extension is likely not going to have been sent so version re-negotiation as discussed
+ in draft-ietf-secsh-filexfer-13 would be quite impossible. As such, what \phpseclib\Net\SFTP would do is close the
+ channel and reopen it with a new and updated SSH_FXP_INIT packet.
+ */
+ switch ($this->version) {
+ case 2:
+ case 3:
+ break;
+ default:
+ return false;
+ }
+
+ $this->pwd = $this->_realpath('.');
+
+ $this->_update_stat_cache($this->pwd, array());
+
+ return true;
+ }
+
+ /**
+ * Disable the stat cache
+ *
+ * @access public
+ */
+ function disableStatCache()
+ {
+ $this->use_stat_cache = false;
+ }
+
+ /**
+ * Enable the stat cache
+ *
+ * @access public
+ */
+ function enableStatCache()
+ {
+ $this->use_stat_cache = true;
+ }
+
+ /**
+ * Clear the stat cache
+ *
+ * @access public
+ */
+ function clearStatCache()
+ {
+ $this->stat_cache = array();
+ }
+
+ /**
+ * Returns the current directory name
+ *
+ * @return mixed
+ * @access public
+ */
+ function pwd()
+ {
+ return $this->pwd;
+ }
+
+ /**
+ * Logs errors
+ *
+ * @param string $response
+ * @param int $status
+ * @access public
+ */
+ function _logError($response, $status = -1)
+ {
+ if ($status == -1) {
+ if (strlen($response) < 4) {
+ return;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ }
+
+ $error = $this->status_codes[$status];
+
+ if ($this->version > 2 || strlen($response) < 4) {
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $this->sftp_errors[] = $error . ': ' . $this->_string_shift($response, $length);
+ } else {
+ $this->sftp_errors[] = $error;
+ }
+ }
+
+ /**
+ * Returns canonicalized absolute pathname
+ *
+ * realpath() expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input
+ * path and returns the canonicalized absolute pathname.
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function realpath($path)
+ {
+ return $this->_realpath($path);
+ }
+
+ /**
+ * Canonicalize the Server-Side Path Name
+ *
+ * SFTP doesn't provide a mechanism by which the current working directory can be changed, so we'll emulate it. Returns
+ * the absolute (canonicalized) path.
+ *
+ * @see self::chdir()
+ * @param string $path
+ * @return mixed
+ * @access private
+ */
+ function _realpath($path)
+ {
+ if ($this->pwd === false) {
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.9
+ if (!$this->_send_sftp_packet(NET_SFTP_REALPATH, pack('Na*', strlen($path), $path))) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_NAME:
+ // although SSH_FXP_NAME is implemented differently in SFTPv3 than it is in SFTPv4+, the following
+ // should work on all SFTP versions since the only part of the SSH_FXP_NAME packet the following looks
+ // at is the first part and that part is defined the same in SFTP versions 3 through 6.
+ $this->_string_shift($response, 4); // skip over the count - it should be 1, anyway
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ return $this->_string_shift($response, $length);
+ case NET_SFTP_STATUS:
+ $this->_logError($response);
+ return false;
+ default:
+ user_error('Expected SSH_FXP_NAME or SSH_FXP_STATUS');
+ return false;
+ }
+ }
+
+ if ($path[0] != '/') {
+ $path = $this->pwd . '/' . $path;
+ }
+
+ $path = explode('/', $path);
+ $new = array();
+ foreach ($path as $dir) {
+ if (!strlen($dir)) {
+ continue;
+ }
+ switch ($dir) {
+ case '..':
+ array_pop($new);
+ case '.':
+ break;
+ default:
+ $new[] = $dir;
+ }
+ }
+
+ return '/' . implode('/', $new);
+ }
+
+ /**
+ * Changes the current directory
+ *
+ * @param string $dir
+ * @return bool
+ * @access public
+ */
+ function chdir($dir)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ // assume current dir if $dir is empty
+ if ($dir === '') {
+ $dir = './';
+ // suffix a slash if needed
+ } elseif ($dir[strlen($dir) - 1] != '/') {
+ $dir.= '/';
+ }
+
+ $dir = $this->_realpath($dir);
+
+ // confirm that $dir is, in fact, a valid directory
+ if ($this->use_stat_cache && is_array($this->_query_stat_cache($dir))) {
+ $this->pwd = $dir;
+ return true;
+ }
+
+ // we could do a stat on the alleged $dir to see if it's a directory but that doesn't tell us
+ // the currently logged in user has the appropriate permissions or not. maybe you could see if
+ // the file's uid / gid match the currently logged in user's uid / gid but how there's no easy
+ // way to get those with SFTP
+
+ if (!$this->_send_sftp_packet(NET_SFTP_OPENDIR, pack('Na*', strlen($dir), $dir))) {
+ return false;
+ }
+
+ // see \phpseclib\Net\SFTP::nlist() for a more thorough explanation of the following
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_HANDLE:
+ $handle = substr($response, 4);
+ break;
+ case NET_SFTP_STATUS:
+ $this->_logError($response);
+ return false;
+ default:
+ user_error('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (!$this->_close_handle($handle)) {
+ return false;
+ }
+
+ $this->_update_stat_cache($dir, array());
+
+ $this->pwd = $dir;
+ return true;
+ }
+
+ /**
+ * Returns a list of files in the given directory
+ *
+ * @param string $dir
+ * @param bool $recursive
+ * @return mixed
+ * @access public
+ */
+ function nlist($dir = '.', $recursive = false)
+ {
+ return $this->_nlist_helper($dir, $recursive, '');
+ }
+
+ /**
+ * Helper method for nlist
+ *
+ * @param string $dir
+ * @param bool $recursive
+ * @param string $relativeDir
+ * @return mixed
+ * @access private
+ */
+ function _nlist_helper($dir, $recursive, $relativeDir)
+ {
+ $files = $this->_list($dir, false);
+
+ if (!$recursive || $files === false) {
+ return $files;
+ }
+
+ $result = array();
+ foreach ($files as $value) {
+ if ($value == '.' || $value == '..') {
+ if ($relativeDir == '') {
+ $result[] = $value;
+ }
+ continue;
+ }
+ if (is_array($this->_query_stat_cache($this->_realpath($dir . '/' . $value)))) {
+ $temp = $this->_nlist_helper($dir . '/' . $value, true, $relativeDir . $value . '/');
+ $result = array_merge($result, $temp);
+ } else {
+ $result[] = $relativeDir . $value;
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * Returns a detailed list of files in the given directory
+ *
+ * @param string $dir
+ * @param bool $recursive
+ * @return mixed
+ * @access public
+ */
+ function rawlist($dir = '.', $recursive = false)
+ {
+ $files = $this->_list($dir, true);
+ if (!$recursive || $files === false) {
+ return $files;
+ }
+
+ static $depth = 0;
+
+ foreach ($files as $key => $value) {
+ if ($depth != 0 && $key == '..') {
+ unset($files[$key]);
+ continue;
+ }
+ if ($key != '.' && $key != '..' && is_array($this->_query_stat_cache($this->_realpath($dir . '/' . $key)))) {
+ $depth++;
+ $files[$key] = $this->rawlist($dir . '/' . $key, true);
+ $depth--;
+ } else {
+ $files[$key] = (object) $value;
+ }
+ }
+
+ return $files;
+ }
+
+ /**
+ * Reads a list, be it detailed or not, of files in the given directory
+ *
+ * @param string $dir
+ * @param bool $raw
+ * @return mixed
+ * @access private
+ */
+ function _list($dir, $raw = true)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $dir = $this->_realpath($dir . '/');
+ if ($dir === false) {
+ return false;
+ }
+
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.1.2
+ if (!$this->_send_sftp_packet(NET_SFTP_OPENDIR, pack('Na*', strlen($dir), $dir))) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_HANDLE:
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-9.2
+ // since 'handle' is the last field in the SSH_FXP_HANDLE packet, we'll just remove the first four bytes that
+ // represent the length of the string and leave it at that
+ $handle = substr($response, 4);
+ break;
+ case NET_SFTP_STATUS:
+ // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED
+ $this->_logError($response);
+ return false;
+ default:
+ user_error('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS');
+ return false;
+ }
+
+ $this->_update_stat_cache($dir, array());
+
+ $contents = array();
+ while (true) {
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.2
+ // why multiple SSH_FXP_READDIR packets would be sent when the response to a single one can span arbitrarily many
+ // SSH_MSG_CHANNEL_DATA messages is not known to me.
+ if (!$this->_send_sftp_packet(NET_SFTP_READDIR, pack('Na*', strlen($handle), $handle))) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_NAME:
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Ncount', $this->_string_shift($response, 4)));
+ for ($i = 0; $i < $count; $i++) {
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $shortname = $this->_string_shift($response, $length);
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $longname = $this->_string_shift($response, $length);
+ $attributes = $this->_parseAttributes($response);
+ if (!isset($attributes['type'])) {
+ $fileType = $this->_parseLongname($longname);
+ if ($fileType) {
+ $attributes['type'] = $fileType;
+ }
+ }
+ $contents[$shortname] = $attributes + array('filename' => $shortname);
+
+ if (isset($attributes['type']) && $attributes['type'] == NET_SFTP_TYPE_DIRECTORY && ($shortname != '.' && $shortname != '..')) {
+ $this->_update_stat_cache($dir . '/' . $shortname, array());
+ } else {
+ if ($shortname == '..') {
+ $temp = $this->_realpath($dir . '/..') . '/.';
+ } else {
+ $temp = $dir . '/' . $shortname;
+ }
+ $this->_update_stat_cache($temp, (object) array('lstat' => $attributes));
+ }
+ // SFTPv6 has an optional boolean end-of-list field, but we'll ignore that, since the
+ // final SSH_FXP_STATUS packet should tell us that, already.
+ }
+ break;
+ case NET_SFTP_STATUS:
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_EOF) {
+ $this->_logError($response, $status);
+ return false;
+ }
+ break 2;
+ default:
+ user_error('Expected SSH_FXP_NAME or SSH_FXP_STATUS');
+ return false;
+ }
+ }
+
+ if (!$this->_close_handle($handle)) {
+ return false;
+ }
+
+ if (count($this->sortOptions)) {
+ uasort($contents, array(&$this, '_comparator'));
+ }
+
+ return $raw ? $contents : array_keys($contents);
+ }
+
+ /**
+ * Compares two rawlist entries using parameters set by setListOrder()
+ *
+ * Intended for use with uasort()
+ *
+ * @param array $a
+ * @param array $b
+ * @return int
+ * @access private
+ */
+ function _comparator($a, $b)
+ {
+ switch (true) {
+ case $a['filename'] === '.' || $b['filename'] === '.':
+ if ($a['filename'] === $b['filename']) {
+ return 0;
+ }
+ return $a['filename'] === '.' ? -1 : 1;
+ case $a['filename'] === '..' || $b['filename'] === '..':
+ if ($a['filename'] === $b['filename']) {
+ return 0;
+ }
+ return $a['filename'] === '..' ? -1 : 1;
+ case isset($a['type']) && $a['type'] === NET_SFTP_TYPE_DIRECTORY:
+ if (!isset($b['type'])) {
+ return 1;
+ }
+ if ($b['type'] !== $a['type']) {
+ return -1;
+ }
+ break;
+ case isset($b['type']) && $b['type'] === NET_SFTP_TYPE_DIRECTORY:
+ return 1;
+ }
+ foreach ($this->sortOptions as $sort => $order) {
+ if (!isset($a[$sort]) || !isset($b[$sort])) {
+ if (isset($a[$sort])) {
+ return -1;
+ }
+ if (isset($b[$sort])) {
+ return 1;
+ }
+ return 0;
+ }
+ switch ($sort) {
+ case 'filename':
+ $result = strcasecmp($a['filename'], $b['filename']);
+ if ($result) {
+ return $order === SORT_DESC ? -$result : $result;
+ }
+ break;
+ case 'permissions':
+ case 'mode':
+ $a[$sort]&= 07777;
+ $b[$sort]&= 07777;
+ default:
+ if ($a[$sort] === $b[$sort]) {
+ break;
+ }
+ return $order === SORT_ASC ? $a[$sort] - $b[$sort] : $b[$sort] - $a[$sort];
+ }
+ }
+ }
+
+ /**
+ * Defines how nlist() and rawlist() will be sorted - if at all.
+ *
+ * If sorting is enabled directories and files will be sorted independently with
+ * directories appearing before files in the resultant array that is returned.
+ *
+ * Any parameter returned by stat is a valid sort parameter for this function.
+ * Filename comparisons are case insensitive.
+ *
+ * Examples:
+ *
+ * $sftp->setListOrder('filename', SORT_ASC);
+ * $sftp->setListOrder('size', SORT_DESC, 'filename', SORT_ASC);
+ * $sftp->setListOrder(true);
+ * Separates directories from files but doesn't do any sorting beyond that
+ * $sftp->setListOrder();
+ * Don't do any sort of sorting
+ *
+ * @access public
+ */
+ function setListOrder()
+ {
+ $this->sortOptions = array();
+ $args = func_get_args();
+ if (empty($args)) {
+ return;
+ }
+ $len = count($args) & 0x7FFFFFFE;
+ for ($i = 0; $i < $len; $i+=2) {
+ $this->sortOptions[$args[$i]] = $args[$i + 1];
+ }
+ if (!count($this->sortOptions)) {
+ $this->sortOptions = array('bogus' => true);
+ }
+ }
+
+ /**
+ * Returns the file size, in bytes, or false, on failure
+ *
+ * Files larger than 4GB will show up as being exactly 4GB.
+ *
+ * @param string $filename
+ * @return mixed
+ * @access public
+ */
+ function size($filename)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $result = $this->stat($filename);
+ if ($result === false) {
+ return false;
+ }
+ return isset($result['size']) ? $result['size'] : -1;
+ }
+
+ /**
+ * Save files / directories to cache
+ *
+ * @param string $path
+ * @param mixed $value
+ * @access private
+ */
+ function _update_stat_cache($path, $value)
+ {
+ if ($this->use_stat_cache === false) {
+ return;
+ }
+
+ // preg_replace('#^/|/(?=/)|/$#', '', $dir) == str_replace('//', '/', trim($path, '/'))
+ $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path));
+
+ $temp = &$this->stat_cache;
+ $max = count($dirs) - 1;
+ foreach ($dirs as $i => $dir) {
+ // if $temp is an object that means one of two things.
+ // 1. a file was deleted and changed to a directory behind phpseclib's back
+ // 2. it's a symlink. when lstat is done it's unclear what it's a symlink to
+ if (is_object($temp)) {
+ $temp = array();
+ }
+ if (!isset($temp[$dir])) {
+ $temp[$dir] = array();
+ }
+ if ($i === $max) {
+ if (is_object($temp[$dir])) {
+ if (!isset($value->stat) && isset($temp[$dir]->stat)) {
+ $value->stat = $temp[$dir]->stat;
+ }
+ if (!isset($value->lstat) && isset($temp[$dir]->lstat)) {
+ $value->lstat = $temp[$dir]->lstat;
+ }
+ }
+ $temp[$dir] = $value;
+ break;
+ }
+ $temp = &$temp[$dir];
+ }
+ }
+
+ /**
+ * Remove files / directories from cache
+ *
+ * @param string $path
+ * @return bool
+ * @access private
+ */
+ function _remove_from_stat_cache($path)
+ {
+ $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path));
+
+ $temp = &$this->stat_cache;
+ $max = count($dirs) - 1;
+ foreach ($dirs as $i => $dir) {
+ if ($i === $max) {
+ unset($temp[$dir]);
+ return true;
+ }
+ if (!isset($temp[$dir])) {
+ return false;
+ }
+ $temp = &$temp[$dir];
+ }
+ }
+
+ /**
+ * Checks cache for path
+ *
+ * Mainly used by file_exists
+ *
+ * @param string $dir
+ * @return mixed
+ * @access private
+ */
+ function _query_stat_cache($path)
+ {
+ $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path));
+
+ $temp = &$this->stat_cache;
+ foreach ($dirs as $dir) {
+ if (!isset($temp[$dir])) {
+ return null;
+ }
+ $temp = &$temp[$dir];
+ }
+ return $temp;
+ }
+
+ /**
+ * Returns general information about a file.
+ *
+ * Returns an array on success and false otherwise.
+ *
+ * @param string $filename
+ * @return mixed
+ * @access public
+ */
+ function stat($filename)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $filename = $this->_realpath($filename);
+ if ($filename === false) {
+ return false;
+ }
+
+ if ($this->use_stat_cache) {
+ $result = $this->_query_stat_cache($filename);
+ if (is_array($result) && isset($result['.']) && isset($result['.']->stat)) {
+ return $result['.']->stat;
+ }
+ if (is_object($result) && isset($result->stat)) {
+ return $result->stat;
+ }
+ }
+
+ $stat = $this->_stat($filename, NET_SFTP_STAT);
+ if ($stat === false) {
+ $this->_remove_from_stat_cache($filename);
+ return false;
+ }
+ if (isset($stat['type'])) {
+ if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) {
+ $filename.= '/.';
+ }
+ $this->_update_stat_cache($filename, (object) array('stat' => $stat));
+ return $stat;
+ }
+
+ $pwd = $this->pwd;
+ $stat['type'] = $this->chdir($filename) ?
+ NET_SFTP_TYPE_DIRECTORY :
+ NET_SFTP_TYPE_REGULAR;
+ $this->pwd = $pwd;
+
+ if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) {
+ $filename.= '/.';
+ }
+ $this->_update_stat_cache($filename, (object) array('stat' => $stat));
+
+ return $stat;
+ }
+
+ /**
+ * Returns general information about a file or symbolic link.
+ *
+ * Returns an array on success and false otherwise.
+ *
+ * @param string $filename
+ * @return mixed
+ * @access public
+ */
+ function lstat($filename)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $filename = $this->_realpath($filename);
+ if ($filename === false) {
+ return false;
+ }
+
+ if ($this->use_stat_cache) {
+ $result = $this->_query_stat_cache($filename);
+ if (is_array($result) && isset($result['.']) && isset($result['.']->lstat)) {
+ return $result['.']->lstat;
+ }
+ if (is_object($result) && isset($result->lstat)) {
+ return $result->lstat;
+ }
+ }
+
+ $lstat = $this->_stat($filename, NET_SFTP_LSTAT);
+ if ($lstat === false) {
+ $this->_remove_from_stat_cache($filename);
+ return false;
+ }
+ if (isset($lstat['type'])) {
+ if ($lstat['type'] == NET_SFTP_TYPE_DIRECTORY) {
+ $filename.= '/.';
+ }
+ $this->_update_stat_cache($filename, (object) array('lstat' => $lstat));
+ return $lstat;
+ }
+
+ $stat = $this->_stat($filename, NET_SFTP_STAT);
+
+ if ($lstat != $stat) {
+ $lstat = array_merge($lstat, array('type' => NET_SFTP_TYPE_SYMLINK));
+ $this->_update_stat_cache($filename, (object) array('lstat' => $lstat));
+ return $stat;
+ }
+
+ $pwd = $this->pwd;
+ $lstat['type'] = $this->chdir($filename) ?
+ NET_SFTP_TYPE_DIRECTORY :
+ NET_SFTP_TYPE_REGULAR;
+ $this->pwd = $pwd;
+
+ if ($lstat['type'] == NET_SFTP_TYPE_DIRECTORY) {
+ $filename.= '/.';
+ }
+ $this->_update_stat_cache($filename, (object) array('lstat' => $lstat));
+
+ return $lstat;
+ }
+
+ /**
+ * Returns general information about a file or symbolic link
+ *
+ * Determines information without calling \phpseclib\Net\SFTP::_realpath().
+ * The second parameter can be either NET_SFTP_STAT or NET_SFTP_LSTAT.
+ *
+ * @param string $filename
+ * @param int $type
+ * @return mixed
+ * @access private
+ */
+ function _stat($filename, $type)
+ {
+ // SFTPv4+ adds an additional 32-bit integer field - flags - to the following:
+ $packet = pack('Na*', strlen($filename), $filename);
+ if (!$this->_send_sftp_packet($type, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_ATTRS:
+ return $this->_parseAttributes($response);
+ case NET_SFTP_STATUS:
+ $this->_logError($response);
+ return false;
+ }
+
+ user_error('Expected SSH_FXP_ATTRS or SSH_FXP_STATUS');
+ return false;
+ }
+
+ /**
+ * Truncates a file to a given length
+ *
+ * @param string $filename
+ * @param int $new_size
+ * @return bool
+ * @access public
+ */
+ function truncate($filename, $new_size)
+ {
+ $attr = pack('N3', NET_SFTP_ATTR_SIZE, $new_size / 4294967296, $new_size); // 4294967296 == 0x100000000 == 1<<32
+
+ return $this->_setstat($filename, $attr, false);
+ }
+
+ /**
+ * Sets access and modification time of file.
+ *
+ * If the file does not exist, it will be created.
+ *
+ * @param string $filename
+ * @param int $time
+ * @param int $atime
+ * @return bool
+ * @access public
+ */
+ function touch($filename, $time = null, $atime = null)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $filename = $this->_realpath($filename);
+ if ($filename === false) {
+ return false;
+ }
+
+ if (!isset($time)) {
+ $time = time();
+ }
+ if (!isset($atime)) {
+ $atime = $time;
+ }
+
+ $flags = NET_SFTP_OPEN_WRITE | NET_SFTP_OPEN_CREATE | NET_SFTP_OPEN_EXCL;
+ $attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $time, $atime);
+ $packet = pack('Na*Na*', strlen($filename), $filename, $flags, $attr);
+ if (!$this->_send_sftp_packet(NET_SFTP_OPEN, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_HANDLE:
+ return $this->_close_handle(substr($response, 4));
+ case NET_SFTP_STATUS:
+ $this->_logError($response);
+ break;
+ default:
+ user_error('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS');
+ return false;
+ }
+
+ return $this->_setstat($filename, $attr, false);
+ }
+
+ /**
+ * Changes file or directory owner
+ *
+ * Returns true on success or false on error.
+ *
+ * @param string $filename
+ * @param int $uid
+ * @param bool $recursive
+ * @return bool
+ * @access public
+ */
+ function chown($filename, $uid, $recursive = false)
+ {
+ // quoting from <http://www.kernel.org/doc/man-pages/online/pages/man2/chown.2.html>,
+ // "if the owner or group is specified as -1, then that ID is not changed"
+ $attr = pack('N3', NET_SFTP_ATTR_UIDGID, $uid, -1);
+
+ return $this->_setstat($filename, $attr, $recursive);
+ }
+
+ /**
+ * Changes file or directory group
+ *
+ * Returns true on success or false on error.
+ *
+ * @param string $filename
+ * @param int $gid
+ * @param bool $recursive
+ * @return bool
+ * @access public
+ */
+ function chgrp($filename, $gid, $recursive = false)
+ {
+ $attr = pack('N3', NET_SFTP_ATTR_UIDGID, -1, $gid);
+
+ return $this->_setstat($filename, $attr, $recursive);
+ }
+
+ /**
+ * Set permissions on a file.
+ *
+ * Returns the new file permissions on success or false on error.
+ * If $recursive is true than this just returns true or false.
+ *
+ * @param int $mode
+ * @param string $filename
+ * @param bool $recursive
+ * @return mixed
+ * @access public
+ */
+ function chmod($mode, $filename, $recursive = false)
+ {
+ if (is_string($mode) && is_int($filename)) {
+ $temp = $mode;
+ $mode = $filename;
+ $filename = $temp;
+ }
+
+ $attr = pack('N2', NET_SFTP_ATTR_PERMISSIONS, $mode & 07777);
+ if (!$this->_setstat($filename, $attr, $recursive)) {
+ return false;
+ }
+ if ($recursive) {
+ return true;
+ }
+
+ $filename = $this->_realPath($filename);
+ // rather than return what the permissions *should* be, we'll return what they actually are. this will also
+ // tell us if the file actually exists.
+ // incidentally, SFTPv4+ adds an additional 32-bit integer field - flags - to the following:
+ $packet = pack('Na*', strlen($filename), $filename);
+ if (!$this->_send_sftp_packet(NET_SFTP_STAT, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_ATTRS:
+ $attrs = $this->_parseAttributes($response);
+ return $attrs['permissions'];
+ case NET_SFTP_STATUS:
+ $this->_logError($response);
+ return false;
+ }
+
+ user_error('Expected SSH_FXP_ATTRS or SSH_FXP_STATUS');
+ return false;
+ }
+
+ /**
+ * Sets information about a file
+ *
+ * @param string $filename
+ * @param string $attr
+ * @param bool $recursive
+ * @return bool
+ * @access private
+ */
+ function _setstat($filename, $attr, $recursive)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $filename = $this->_realpath($filename);
+ if ($filename === false) {
+ return false;
+ }
+
+ $this->_remove_from_stat_cache($filename);
+
+ if ($recursive) {
+ $i = 0;
+ $result = $this->_setstat_recursive($filename, $attr, $i);
+ $this->_read_put_responses($i);
+ return $result;
+ }
+
+ // SFTPv4+ has an additional byte field - type - that would need to be sent, as well. setting it to
+ // SSH_FILEXFER_TYPE_UNKNOWN might work. if not, we'd have to do an SSH_FXP_STAT before doing an SSH_FXP_SETSTAT.
+ if (!$this->_send_sftp_packet(NET_SFTP_SETSTAT, pack('Na*a*', strlen($filename), $filename, $attr))) {
+ return false;
+ }
+
+ /*
+ "Because some systems must use separate system calls to set various attributes, it is possible that a failure
+ response will be returned, but yet some of the attributes may be have been successfully modified. If possible,
+ servers SHOULD avoid this situation; however, clients MUST be aware that this is possible."
+
+ -- http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.6
+ */
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ $this->_logError($response, $status);
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Recursively sets information on directories on the SFTP server
+ *
+ * Minimizes directory lookups and SSH_FXP_STATUS requests for speed.
+ *
+ * @param string $path
+ * @param string $attr
+ * @param int $i
+ * @return bool
+ * @access private
+ */
+ function _setstat_recursive($path, $attr, &$i)
+ {
+ if (!$this->_read_put_responses($i)) {
+ return false;
+ }
+ $i = 0;
+ $entries = $this->_list($path, true);
+
+ if ($entries === false) {
+ return $this->_setstat($path, $attr, false);
+ }
+
+ // normally $entries would have at least . and .. but it might not if the directories
+ // permissions didn't allow reading
+ if (empty($entries)) {
+ return false;
+ }
+
+ unset($entries['.'], $entries['..']);
+ foreach ($entries as $filename => $props) {
+ if (!isset($props['type'])) {
+ return false;
+ }
+
+ $temp = $path . '/' . $filename;
+ if ($props['type'] == NET_SFTP_TYPE_DIRECTORY) {
+ if (!$this->_setstat_recursive($temp, $attr, $i)) {
+ return false;
+ }
+ } else {
+ if (!$this->_send_sftp_packet(NET_SFTP_SETSTAT, pack('Na*a*', strlen($temp), $temp, $attr))) {
+ return false;
+ }
+
+ $i++;
+
+ if ($i >= NET_SFTP_QUEUE_SIZE) {
+ if (!$this->_read_put_responses($i)) {
+ return false;
+ }
+ $i = 0;
+ }
+ }
+ }
+
+ if (!$this->_send_sftp_packet(NET_SFTP_SETSTAT, pack('Na*a*', strlen($path), $path, $attr))) {
+ return false;
+ }
+
+ $i++;
+
+ if ($i >= NET_SFTP_QUEUE_SIZE) {
+ if (!$this->_read_put_responses($i)) {
+ return false;
+ }
+ $i = 0;
+ }
+
+ return true;
+ }
+
+ /**
+ * Return the target of a symbolic link
+ *
+ * @param string $link
+ * @return mixed
+ * @access public
+ */
+ function readlink($link)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $link = $this->_realpath($link);
+
+ if (!$this->_send_sftp_packet(NET_SFTP_READLINK, pack('Na*', strlen($link), $link))) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_NAME:
+ break;
+ case NET_SFTP_STATUS:
+ $this->_logError($response);
+ return false;
+ default:
+ user_error('Expected SSH_FXP_NAME or SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Ncount', $this->_string_shift($response, 4)));
+ // the file isn't a symlink
+ if (!$count) {
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ return $this->_string_shift($response, $length);
+ }
+
+ /**
+ * Create a symlink
+ *
+ * symlink() creates a symbolic link to the existing target with the specified name link.
+ *
+ * @param string $target
+ * @param string $link
+ * @return bool
+ * @access public
+ */
+ function symlink($target, $link)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ //$target = $this->_realpath($target);
+ $link = $this->_realpath($link);
+
+ $packet = pack('Na*Na*', strlen($target), $target, strlen($link), $link);
+ if (!$this->_send_sftp_packet(NET_SFTP_SYMLINK, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ $this->_logError($response, $status);
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Creates a directory.
+ *
+ * @param string $dir
+ * @return bool
+ * @access public
+ */
+ function mkdir($dir, $mode = -1, $recursive = false)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $dir = $this->_realpath($dir);
+ // by not providing any permissions, hopefully the server will use the logged in users umask - their
+ // default permissions.
+ $attr = $mode == -1 ? "\0\0\0\0" : pack('N2', NET_SFTP_ATTR_PERMISSIONS, $mode & 07777);
+
+ if ($recursive) {
+ $dirs = explode('/', preg_replace('#/(?=/)|/$#', '', $dir));
+ if (empty($dirs[0])) {
+ array_shift($dirs);
+ $dirs[0] = '/' . $dirs[0];
+ }
+ for ($i = 0; $i < count($dirs); $i++) {
+ $temp = array_slice($dirs, 0, $i + 1);
+ $temp = implode('/', $temp);
+ $result = $this->_mkdir_helper($temp, $attr);
+ }
+ return $result;
+ }
+
+ return $this->_mkdir_helper($dir, $attr);
+ }
+
+ /**
+ * Helper function for directory creation
+ *
+ * @param string $dir
+ * @return bool
+ * @access private
+ */
+ function _mkdir_helper($dir, $attr)
+ {
+ if (!$this->_send_sftp_packet(NET_SFTP_MKDIR, pack('Na*a*', strlen($dir), $dir, $attr))) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ $this->_logError($response, $status);
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Removes a directory.
+ *
+ * @param string $dir
+ * @return bool
+ * @access public
+ */
+ function rmdir($dir)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $dir = $this->_realpath($dir);
+ if ($dir === false) {
+ return false;
+ }
+
+ if (!$this->_send_sftp_packet(NET_SFTP_RMDIR, pack('Na*', strlen($dir), $dir))) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED?
+ $this->_logError($response, $status);
+ return false;
+ }
+
+ $this->_remove_from_stat_cache($dir);
+ // the following will do a soft delete, which would be useful if you deleted a file
+ // and then tried to do a stat on the deleted file. the above, in contrast, does
+ // a hard delete
+ //$this->_update_stat_cache($dir, false);
+
+ return true;
+ }
+
+ /**
+ * Uploads a file to the SFTP server.
+ *
+ * By default, \phpseclib\Net\SFTP::put() does not read from the local filesystem. $data is dumped directly into $remote_file.
+ * So, for example, if you set $data to 'filename.ext' and then do \phpseclib\Net\SFTP::get(), you will get a file, twelve bytes
+ * long, containing 'filename.ext' as its contents.
+ *
+ * Setting $mode to self::SOURCE_LOCAL_FILE will change the above behavior. With self::SOURCE_LOCAL_FILE, $remote_file will
+ * contain as many bytes as filename.ext does on your local filesystem. If your filename.ext is 1MB then that is how
+ * large $remote_file will be, as well.
+ *
+ * Setting $mode to self::SOURCE_CALLBACK will use $data as callback function, which gets only one parameter -- number of bytes to return, and returns a string if there is some data or null if there is no more data
+ *
+ * If $data is a resource then it'll be used as a resource instead.
+ *
+ * Currently, only binary mode is supported. As such, if the line endings need to be adjusted, you will need to take
+ * care of that, yourself.
+ *
+ * $mode can take an additional two parameters - self::RESUME and self::RESUME_START. These are bitwise AND'd with
+ * $mode. So if you want to resume upload of a 300mb file on the local file system you'd set $mode to the following:
+ *
+ * self::SOURCE_LOCAL_FILE | self::RESUME
+ *
+ * If you wanted to simply append the full contents of a local file to the full contents of a remote file you'd replace
+ * self::RESUME with self::RESUME_START.
+ *
+ * If $mode & (self::RESUME | self::RESUME_START) then self::RESUME_START will be assumed.
+ *
+ * $start and $local_start give you more fine grained control over this process and take precident over self::RESUME
+ * when they're non-negative. ie. $start could let you write at the end of a file (like self::RESUME) or in the middle
+ * of one. $local_start could let you start your reading from the end of a file (like self::RESUME_START) or in the
+ * middle of one.
+ *
+ * Setting $local_start to > 0 or $mode | self::RESUME_START doesn't do anything unless $mode | self::SOURCE_LOCAL_FILE.
+ *
+ * @param string $remote_file
+ * @param string|resource $data
+ * @param int $mode
+ * @param int $start
+ * @param int $local_start
+ * @param callable|null $progressCallback
+ * @return bool
+ * @access public
+ * @internal ASCII mode for SFTPv4/5/6 can be supported by adding a new function - \phpseclib\Net\SFTP::setMode().
+ */
+ function put($remote_file, $data, $mode = self::SOURCE_STRING, $start = -1, $local_start = -1, $progressCallback = null)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $remote_file = $this->_realpath($remote_file);
+ if ($remote_file === false) {
+ return false;
+ }
+
+ $this->_remove_from_stat_cache($remote_file);
+
+ $flags = NET_SFTP_OPEN_WRITE | NET_SFTP_OPEN_CREATE;
+ // according to the SFTP specs, NET_SFTP_OPEN_APPEND should "force all writes to append data at the end of the file."
+ // in practice, it doesn't seem to do that.
+ //$flags|= ($mode & self::RESUME) ? NET_SFTP_OPEN_APPEND : NET_SFTP_OPEN_TRUNCATE;
+
+ if ($start >= 0) {
+ $offset = $start;
+ } elseif ($mode & self::RESUME) {
+ // if NET_SFTP_OPEN_APPEND worked as it should _size() wouldn't need to be called
+ $size = $this->size($remote_file);
+ $offset = $size !== false ? $size : 0;
+ } else {
+ $offset = 0;
+ $flags|= NET_SFTP_OPEN_TRUNCATE;
+ }
+
+ $packet = pack('Na*N2', strlen($remote_file), $remote_file, $flags, 0);
+ if (!$this->_send_sftp_packet(NET_SFTP_OPEN, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_HANDLE:
+ $handle = substr($response, 4);
+ break;
+ case NET_SFTP_STATUS:
+ $this->_logError($response);
+ return false;
+ default:
+ user_error('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS');
+ return false;
+ }
+
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.3
+ $dataCallback = false;
+ switch (true) {
+ case $mode & self::SOURCE_CALLBACK:
+ if (!is_callable($data)) {
+ user_error("\$data should be is_callable() if you specify SOURCE_CALLBACK flag");
+ }
+ $dataCallback = $data;
+ // do nothing
+ break;
+ case is_resource($data):
+ $mode = $mode & ~self::SOURCE_LOCAL_FILE;
+ $info = stream_get_meta_data($data);
+ if ($info['wrapper_type'] == 'PHP' && $info['stream_type'] == 'Input') {
+ $fp = fopen('php://memory', 'w+');
+ stream_copy_to_stream($data, $fp);
+ rewind($fp);
+ } else {
+ $fp = $data;
+ }
+ break;
+ case $mode & self::SOURCE_LOCAL_FILE:
+ if (!is_file($data)) {
+ user_error("$data is not a valid file");
+ return false;
+ }
+ $fp = @fopen($data, 'rb');
+ if (!$fp) {
+ return false;
+ }
+ }
+
+ if (isset($fp)) {
+ $stat = fstat($fp);
+ $size = $stat['size'];
+
+ if ($local_start >= 0) {
+ fseek($fp, $local_start);
+ $size-= $local_start;
+ }
+ } elseif ($dataCallback) {
+ $size = 0;
+ } else {
+ $size = strlen($data);
+ }
+
+ $sent = 0;
+ $size = $size < 0 ? ($size & 0x7FFFFFFF) + 0x80000000 : $size;
+
+ $sftp_packet_size = 4096; // PuTTY uses 4096
+ // make the SFTP packet be exactly 4096 bytes by including the bytes in the NET_SFTP_WRITE packets "header"
+ $sftp_packet_size-= strlen($handle) + 25;
+ $i = 0;
+ while ($dataCallback || ($size === 0 || $sent < $size)) {
+ if ($dataCallback) {
+ $temp = call_user_func($dataCallback, $sftp_packet_size);
+ if (is_null($temp)) {
+ break;
+ }
+ } else {
+ $temp = isset($fp) ? fread($fp, $sftp_packet_size) : substr($data, $sent, $sftp_packet_size);
+ if ($temp === false || $temp === '') {
+ break;
+ }
+ }
+
+ $subtemp = $offset + $sent;
+ $packet = pack('Na*N3a*', strlen($handle), $handle, $subtemp / 4294967296, $subtemp, strlen($temp), $temp);
+ if (!$this->_send_sftp_packet(NET_SFTP_WRITE, $packet)) {
+ if ($mode & self::SOURCE_LOCAL_FILE) {
+ fclose($fp);
+ }
+ return false;
+ }
+ $sent+= strlen($temp);
+ if (is_callable($progressCallback)) {
+ call_user_func($progressCallback, $sent);
+ }
+
+ $i++;
+
+ if ($i == NET_SFTP_QUEUE_SIZE) {
+ if (!$this->_read_put_responses($i)) {
+ $i = 0;
+ break;
+ }
+ $i = 0;
+ }
+ }
+
+ if (!$this->_read_put_responses($i)) {
+ if ($mode & self::SOURCE_LOCAL_FILE) {
+ fclose($fp);
+ }
+ $this->_close_handle($handle);
+ return false;
+ }
+
+ if ($mode & self::SOURCE_LOCAL_FILE) {
+ fclose($fp);
+ }
+
+ return $this->_close_handle($handle);
+ }
+
+ /**
+ * Reads multiple successive SSH_FXP_WRITE responses
+ *
+ * Sending an SSH_FXP_WRITE packet and immediately reading its response isn't as efficient as blindly sending out $i
+ * SSH_FXP_WRITEs, in succession, and then reading $i responses.
+ *
+ * @param int $i
+ * @return bool
+ * @access private
+ */
+ function _read_put_responses($i)
+ {
+ while ($i--) {
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ $this->_logError($response, $status);
+ break;
+ }
+ }
+
+ return $i < 0;
+ }
+
+ /**
+ * Close handle
+ *
+ * @param string $handle
+ * @return bool
+ * @access private
+ */
+ function _close_handle($handle)
+ {
+ if (!$this->_send_sftp_packet(NET_SFTP_CLOSE, pack('Na*', strlen($handle), $handle))) {
+ return false;
+ }
+
+ // "The client MUST release all resources associated with the handle regardless of the status."
+ // -- http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.1.3
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ $this->_logError($response, $status);
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Downloads a file from the SFTP server.
+ *
+ * Returns a string containing the contents of $remote_file if $local_file is left undefined or a boolean false if
+ * the operation was unsuccessful. If $local_file is defined, returns true or false depending on the success of the
+ * operation.
+ *
+ * $offset and $length can be used to download files in chunks.
+ *
+ * @param string $remote_file
+ * @param string $local_file
+ * @param int $offset
+ * @param int $length
+ * @return mixed
+ * @access public
+ */
+ function get($remote_file, $local_file = false, $offset = 0, $length = -1)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $remote_file = $this->_realpath($remote_file);
+ if ($remote_file === false) {
+ return false;
+ }
+
+ $packet = pack('Na*N2', strlen($remote_file), $remote_file, NET_SFTP_OPEN_READ, 0);
+ if (!$this->_send_sftp_packet(NET_SFTP_OPEN, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_HANDLE:
+ $handle = substr($response, 4);
+ break;
+ case NET_SFTP_STATUS: // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED
+ $this->_logError($response);
+ return false;
+ default:
+ user_error('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS');
+ return false;
+ }
+
+ if (is_resource($local_file)) {
+ $fp = $local_file;
+ $stat = fstat($fp);
+ $res_offset = $stat['size'];
+ } else {
+ $res_offset = 0;
+ if ($local_file !== false) {
+ $fp = fopen($local_file, 'wb');
+ if (!$fp) {
+ return false;
+ }
+ } else {
+ $content = '';
+ }
+ }
+
+ $fclose_check = $local_file !== false && !is_resource($local_file);
+
+ $start = $offset;
+ $read = 0;
+ while (true) {
+ $i = 0;
+
+ while ($i < NET_SFTP_QUEUE_SIZE && ($length < 0 || $read < $length)) {
+ $tempoffset = $start + $read;
+
+ $packet_size = $length > 0 ? min($this->max_sftp_packet, $length - $read) : $this->max_sftp_packet;
+
+ $packet = pack('Na*N3', strlen($handle), $handle, $tempoffset / 4294967296, $tempoffset, $packet_size);
+ if (!$this->_send_sftp_packet(NET_SFTP_READ, $packet)) {
+ if ($fclose_check) {
+ fclose($fp);
+ }
+ return false;
+ }
+ $packet = null;
+ $read+= $packet_size;
+ $i++;
+ }
+
+ if (!$i) {
+ break;
+ }
+
+ $clear_responses = false;
+ while ($i > 0) {
+ $i--;
+
+ if ($clear_responses) {
+ $this->_get_sftp_packet();
+ continue;
+ } else {
+ $response = $this->_get_sftp_packet();
+ }
+
+ switch ($this->packet_type) {
+ case NET_SFTP_DATA:
+ $temp = substr($response, 4);
+ $offset+= strlen($temp);
+ if ($local_file === false) {
+ $content.= $temp;
+ } else {
+ fputs($fp, $temp);
+ }
+ $temp = null;
+ break;
+ case NET_SFTP_STATUS:
+ // could, in theory, return false if !strlen($content) but we'll hold off for the time being
+ $this->_logError($response);
+ $clear_responses = true; // don't break out of the loop yet, so we can read the remaining responses
+ break;
+ default:
+ if ($fclose_check) {
+ fclose($fp);
+ }
+ user_error('Expected SSH_FX_DATA or SSH_FXP_STATUS');
+ }
+ $response = null;
+ }
+
+ if ($clear_responses) {
+ break;
+ }
+ }
+
+ if ($length > 0 && $length <= $offset - $start) {
+ if ($local_file === false) {
+ $content = substr($content, 0, $length);
+ } else {
+ ftruncate($fp, $length + $res_offset);
+ }
+ }
+
+ if ($fclose_check) {
+ fclose($fp);
+ }
+
+ if (!$this->_close_handle($handle)) {
+ return false;
+ }
+
+ // if $content isn't set that means a file was written to
+ return isset($content) ? $content : true;
+ }
+
+ /**
+ * Deletes a file on the SFTP server.
+ *
+ * @param string $path
+ * @param bool $recursive
+ * @return bool
+ * @access public
+ */
+ function delete($path, $recursive = true)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ if (is_object($path)) {
+ // It's an object. Cast it as string before we check anything else.
+ $path = (string) $path;
+ }
+
+ if (!is_string($path) || $path == '') {
+ return false;
+ }
+
+ $path = $this->_realpath($path);
+ if ($path === false) {
+ return false;
+ }
+
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.3
+ if (!$this->_send_sftp_packet(NET_SFTP_REMOVE, pack('Na*', strlen($path), $path))) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ // if $status isn't SSH_FX_OK it's probably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ $this->_logError($response, $status);
+ if (!$recursive) {
+ return false;
+ }
+ $i = 0;
+ $result = $this->_delete_recursive($path, $i);
+ $this->_read_put_responses($i);
+ return $result;
+ }
+
+ $this->_remove_from_stat_cache($path);
+
+ return true;
+ }
+
+ /**
+ * Recursively deletes directories on the SFTP server
+ *
+ * Minimizes directory lookups and SSH_FXP_STATUS requests for speed.
+ *
+ * @param string $path
+ * @param int $i
+ * @return bool
+ * @access private
+ */
+ function _delete_recursive($path, &$i)
+ {
+ if (!$this->_read_put_responses($i)) {
+ return false;
+ }
+ $i = 0;
+ $entries = $this->_list($path, true);
+
+ // normally $entries would have at least . and .. but it might not if the directories
+ // permissions didn't allow reading
+ if (empty($entries)) {
+ return false;
+ }
+
+ unset($entries['.'], $entries['..']);
+ foreach ($entries as $filename => $props) {
+ if (!isset($props['type'])) {
+ return false;
+ }
+
+ $temp = $path . '/' . $filename;
+ if ($props['type'] == NET_SFTP_TYPE_DIRECTORY) {
+ if (!$this->_delete_recursive($temp, $i)) {
+ return false;
+ }
+ } else {
+ if (!$this->_send_sftp_packet(NET_SFTP_REMOVE, pack('Na*', strlen($temp), $temp))) {
+ return false;
+ }
+ $this->_remove_from_stat_cache($temp);
+
+ $i++;
+
+ if ($i >= NET_SFTP_QUEUE_SIZE) {
+ if (!$this->_read_put_responses($i)) {
+ return false;
+ }
+ $i = 0;
+ }
+ }
+ }
+
+ if (!$this->_send_sftp_packet(NET_SFTP_RMDIR, pack('Na*', strlen($path), $path))) {
+ return false;
+ }
+ $this->_remove_from_stat_cache($path);
+
+ $i++;
+
+ if ($i >= NET_SFTP_QUEUE_SIZE) {
+ if (!$this->_read_put_responses($i)) {
+ return false;
+ }
+ $i = 0;
+ }
+
+ return true;
+ }
+
+ /**
+ * Checks whether a file or directory exists
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function file_exists($path)
+ {
+ if ($this->use_stat_cache) {
+ $path = $this->_realpath($path);
+
+ $result = $this->_query_stat_cache($path);
+
+ if (isset($result)) {
+ // return true if $result is an array or if it's an stdClass object
+ return $result !== false;
+ }
+ }
+
+ return $this->stat($path) !== false;
+ }
+
+ /**
+ * Tells whether the filename is a directory
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function is_dir($path)
+ {
+ $result = $this->_get_stat_cache_prop($path, 'type');
+ if ($result === false) {
+ return false;
+ }
+ return $result === NET_SFTP_TYPE_DIRECTORY;
+ }
+
+ /**
+ * Tells whether the filename is a regular file
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function is_file($path)
+ {
+ $result = $this->_get_stat_cache_prop($path, 'type');
+ if ($result === false) {
+ return false;
+ }
+ return $result === NET_SFTP_TYPE_REGULAR;
+ }
+
+ /**
+ * Tells whether the filename is a symbolic link
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function is_link($path)
+ {
+ $result = $this->_get_lstat_cache_prop($path, 'type');
+ if ($result === false) {
+ return false;
+ }
+ return $result === NET_SFTP_TYPE_SYMLINK;
+ }
+
+ /**
+ * Tells whether a file exists and is readable
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function is_readable($path)
+ {
+ $path = $this->_realpath($path);
+
+ $packet = pack('Na*N2', strlen($path), $path, NET_SFTP_OPEN_READ, 0);
+ if (!$this->_send_sftp_packet(NET_SFTP_OPEN, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_HANDLE:
+ return true;
+ case NET_SFTP_STATUS: // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED
+ return false;
+ default:
+ user_error('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS');
+ return false;
+ }
+ }
+
+ /**
+ * Tells whether the filename is writable
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function is_writable($path)
+ {
+ $path = $this->_realpath($path);
+
+ $packet = pack('Na*N2', strlen($path), $path, NET_SFTP_OPEN_WRITE, 0);
+ if (!$this->_send_sftp_packet(NET_SFTP_OPEN, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ switch ($this->packet_type) {
+ case NET_SFTP_HANDLE:
+ return true;
+ case NET_SFTP_STATUS: // presumably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED
+ return false;
+ default:
+ user_error('Expected SSH_FXP_HANDLE or SSH_FXP_STATUS');
+ return false;
+ }
+ }
+
+ /**
+ * Tells whether the filename is writeable
+ *
+ * Alias of is_writable
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function is_writeable($path)
+ {
+ return $this->is_writable($path);
+ }
+
+ /**
+ * Gets last access time of file
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function fileatime($path)
+ {
+ return $this->_get_stat_cache_prop($path, 'atime');
+ }
+
+ /**
+ * Gets file modification time
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function filemtime($path)
+ {
+ return $this->_get_stat_cache_prop($path, 'mtime');
+ }
+
+ /**
+ * Gets file permissions
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function fileperms($path)
+ {
+ return $this->_get_stat_cache_prop($path, 'permissions');
+ }
+
+ /**
+ * Gets file owner
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function fileowner($path)
+ {
+ return $this->_get_stat_cache_prop($path, 'uid');
+ }
+
+ /**
+ * Gets file group
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function filegroup($path)
+ {
+ return $this->_get_stat_cache_prop($path, 'gid');
+ }
+
+ /**
+ * Gets file size
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function filesize($path)
+ {
+ return $this->_get_stat_cache_prop($path, 'size');
+ }
+
+ /**
+ * Gets file type
+ *
+ * @param string $path
+ * @return mixed
+ * @access public
+ */
+ function filetype($path)
+ {
+ $type = $this->_get_stat_cache_prop($path, 'type');
+ if ($type === false) {
+ return false;
+ }
+
+ switch ($type) {
+ case NET_SFTP_TYPE_BLOCK_DEVICE:
+ return 'block';
+ case NET_SFTP_TYPE_CHAR_DEVICE:
+ return 'char';
+ case NET_SFTP_TYPE_DIRECTORY:
+ return 'dir';
+ case NET_SFTP_TYPE_FIFO:
+ return 'fifo';
+ case NET_SFTP_TYPE_REGULAR:
+ return 'file';
+ case NET_SFTP_TYPE_SYMLINK:
+ return 'link';
+ default:
+ return false;
+ }
+ }
+
+ /**
+ * Return a stat properity
+ *
+ * Uses cache if appropriate.
+ *
+ * @param string $path
+ * @param string $prop
+ * @return mixed
+ * @access private
+ */
+ function _get_stat_cache_prop($path, $prop)
+ {
+ return $this->_get_xstat_cache_prop($path, $prop, 'stat');
+ }
+
+ /**
+ * Return an lstat properity
+ *
+ * Uses cache if appropriate.
+ *
+ * @param string $path
+ * @param string $prop
+ * @return mixed
+ * @access private
+ */
+ function _get_lstat_cache_prop($path, $prop)
+ {
+ return $this->_get_xstat_cache_prop($path, $prop, 'lstat');
+ }
+
+ /**
+ * Return a stat or lstat properity
+ *
+ * Uses cache if appropriate.
+ *
+ * @param string $path
+ * @param string $prop
+ * @return mixed
+ * @access private
+ */
+ function _get_xstat_cache_prop($path, $prop, $type)
+ {
+ if ($this->use_stat_cache) {
+ $path = $this->_realpath($path);
+
+ $result = $this->_query_stat_cache($path);
+
+ if (is_object($result) && isset($result->$type)) {
+ return $result->{$type}[$prop];
+ }
+ }
+
+ $result = $this->$type($path);
+
+ if ($result === false || !isset($result[$prop])) {
+ return false;
+ }
+
+ return $result[$prop];
+ }
+
+ /**
+ * Renames a file or a directory on the SFTP server
+ *
+ * @param string $oldname
+ * @param string $newname
+ * @return bool
+ * @access public
+ */
+ function rename($oldname, $newname)
+ {
+ if (!($this->bitmap & SSH2::MASK_LOGIN)) {
+ return false;
+ }
+
+ $oldname = $this->_realpath($oldname);
+ $newname = $this->_realpath($newname);
+ if ($oldname === false || $newname === false) {
+ return false;
+ }
+
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.3
+ $packet = pack('Na*Na*', strlen($oldname), $oldname, strlen($newname), $newname);
+ if (!$this->_send_sftp_packet(NET_SFTP_RENAME, $packet)) {
+ return false;
+ }
+
+ $response = $this->_get_sftp_packet();
+ if ($this->packet_type != NET_SFTP_STATUS) {
+ user_error('Expected SSH_FXP_STATUS');
+ return false;
+ }
+
+ // if $status isn't SSH_FX_OK it's probably SSH_FX_NO_SUCH_FILE or SSH_FX_PERMISSION_DENIED
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nstatus', $this->_string_shift($response, 4)));
+ if ($status != NET_SFTP_STATUS_OK) {
+ $this->_logError($response, $status);
+ return false;
+ }
+
+ // don't move the stat cache entry over since this operation could very well change the
+ // atime and mtime attributes
+ //$this->_update_stat_cache($newname, $this->_query_stat_cache($oldname));
+ $this->_remove_from_stat_cache($oldname);
+ $this->_remove_from_stat_cache($newname);
+
+ return true;
+ }
+
+ /**
+ * Parse Attributes
+ *
+ * See '7. File Attributes' of draft-ietf-secsh-filexfer-13 for more info.
+ *
+ * @param string $response
+ * @return array
+ * @access private
+ */
+ function _parseAttributes(&$response)
+ {
+ $attr = array();
+ if (strlen($response) < 4) {
+ user_error('Malformed file attributes');
+ return array();
+ }
+ extract(unpack('Nflags', $this->_string_shift($response, 4)));
+ // SFTPv4+ have a type field (a byte) that follows the above flag field
+ foreach ($this->attributes as $key => $value) {
+ switch ($flags & $key) {
+ case NET_SFTP_ATTR_SIZE: // 0x00000001
+ // The size attribute is defined as an unsigned 64-bit integer.
+ // The following will use floats on 32-bit platforms, if necessary.
+ // As can be seen in the BigInteger class, floats are generally
+ // IEEE 754 binary64 "double precision" on such platforms and
+ // as such can represent integers of at least 2^50 without loss
+ // of precision. Interpreted in filesize, 2^50 bytes = 1024 TiB.
+ $attr['size'] = hexdec(bin2hex($this->_string_shift($response, 8)));
+ break;
+ case NET_SFTP_ATTR_UIDGID: // 0x00000002 (SFTPv3 only)
+ if (strlen($response) < 8) {
+ user_error('Malformed file attributes');
+ return $attr;
+ }
+ $attr+= unpack('Nuid/Ngid', $this->_string_shift($response, 8));
+ break;
+ case NET_SFTP_ATTR_PERMISSIONS: // 0x00000004
+ if (strlen($response) < 4) {
+ user_error('Malformed file attributes');
+ return $attr;
+ }
+ $attr+= unpack('Npermissions', $this->_string_shift($response, 4));
+ // mode == permissions; permissions was the original array key and is retained for bc purposes.
+ // mode was added because that's the more industry standard terminology
+ $attr+= array('mode' => $attr['permissions']);
+ $fileType = $this->_parseMode($attr['permissions']);
+ if ($fileType !== false) {
+ $attr+= array('type' => $fileType);
+ }
+ break;
+ case NET_SFTP_ATTR_ACCESSTIME: // 0x00000008
+ if (strlen($response) < 8) {
+ user_error('Malformed file attributes');
+ return $attr;
+ }
+ $attr+= unpack('Natime/Nmtime', $this->_string_shift($response, 8));
+ break;
+ case NET_SFTP_ATTR_EXTENDED: // 0x80000000
+ if (strlen($response) < 4) {
+ user_error('Malformed file attributes');
+ return $attr;
+ }
+ extract(unpack('Ncount', $this->_string_shift($response, 4)));
+ for ($i = 0; $i < $count; $i++) {
+ if (strlen($response) < 4) {
+ user_error('Malformed file attributes');
+ return $attr;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $key = $this->_string_shift($response, $length);
+ if (strlen($response) < 4) {
+ user_error('Malformed file attributes');
+ return $attr;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $attr[$key] = $this->_string_shift($response, $length);
+ }
+ }
+ }
+ return $attr;
+ }
+
+ /**
+ * Attempt to identify the file type
+ *
+ * Quoting the SFTP RFC, "Implementations MUST NOT send bits that are not defined" but they seem to anyway
+ *
+ * @param int $mode
+ * @return int
+ * @access private
+ */
+ function _parseMode($mode)
+ {
+ // values come from http://lxr.free-electrons.com/source/include/uapi/linux/stat.h#L12
+ // see, also, http://linux.die.net/man/2/stat
+ switch ($mode & 0170000) {// ie. 1111 0000 0000 0000
+ case 0000000: // no file type specified - figure out the file type using alternative means
+ return false;
+ case 0040000:
+ return NET_SFTP_TYPE_DIRECTORY;
+ case 0100000:
+ return NET_SFTP_TYPE_REGULAR;
+ case 0120000:
+ return NET_SFTP_TYPE_SYMLINK;
+ // new types introduced in SFTPv5+
+ // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-05#section-5.2
+ case 0010000: // named pipe (fifo)
+ return NET_SFTP_TYPE_FIFO;
+ case 0020000: // character special
+ return NET_SFTP_TYPE_CHAR_DEVICE;
+ case 0060000: // block special
+ return NET_SFTP_TYPE_BLOCK_DEVICE;
+ case 0140000: // socket
+ return NET_SFTP_TYPE_SOCKET;
+ case 0160000: // whiteout
+ // "SPECIAL should be used for files that are of
+ // a known type which cannot be expressed in the protocol"
+ return NET_SFTP_TYPE_SPECIAL;
+ default:
+ return NET_SFTP_TYPE_UNKNOWN;
+ }
+ }
+
+ /**
+ * Parse Longname
+ *
+ * SFTPv3 doesn't provide any easy way of identifying a file type. You could try to open
+ * a file as a directory and see if an error is returned or you could try to parse the
+ * SFTPv3-specific longname field of the SSH_FXP_NAME packet. That's what this function does.
+ * The result is returned using the
+ * {@link http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-5.2 SFTPv4 type constants}.
+ *
+ * If the longname is in an unrecognized format bool(false) is returned.
+ *
+ * @param string $longname
+ * @return mixed
+ * @access private
+ */
+ function _parseLongname($longname)
+ {
+ // http://en.wikipedia.org/wiki/Unix_file_types
+ // http://en.wikipedia.org/wiki/Filesystem_permissions#Notation_of_traditional_Unix_permissions
+ if (preg_match('#^[^/]([r-][w-][xstST-]){3}#', $longname)) {
+ switch ($longname[0]) {
+ case '-':
+ return NET_SFTP_TYPE_REGULAR;
+ case 'd':
+ return NET_SFTP_TYPE_DIRECTORY;
+ case 'l':
+ return NET_SFTP_TYPE_SYMLINK;
+ default:
+ return NET_SFTP_TYPE_SPECIAL;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Sends SFTP Packets
+ *
+ * See '6. General Packet Format' of draft-ietf-secsh-filexfer-13 for more info.
+ *
+ * @param int $type
+ * @param string $data
+ * @see self::_get_sftp_packet()
+ * @see self::_send_channel_packet()
+ * @return bool
+ * @access private
+ */
+ function _send_sftp_packet($type, $data)
+ {
+ $packet = $this->request_id !== false ?
+ pack('NCNa*', strlen($data) + 5, $type, $this->request_id, $data) :
+ pack('NCa*', strlen($data) + 1, $type, $data);
+
+ $start = strtok(microtime(), ' ') + strtok(''); // http://php.net/microtime#61838
+ $result = $this->_send_channel_packet(self::CHANNEL, $packet);
+ $stop = strtok(microtime(), ' ') + strtok('');
+
+ if (defined('NET_SFTP_LOGGING')) {
+ $packet_type = '-> ' . $this->packet_types[$type] .
+ ' (' . round($stop - $start, 4) . 's)';
+ if (NET_SFTP_LOGGING == self::LOG_REALTIME) {
+ echo "<pre>\r\n" . $this->_format_log(array($data), array($packet_type)) . "\r\n</pre>\r\n";
+ flush();
+ ob_flush();
+ } else {
+ $this->packet_type_log[] = $packet_type;
+ if (NET_SFTP_LOGGING == self::LOG_COMPLEX) {
+ $this->packet_log[] = $data;
+ }
+ }
+ }
+
+ return $result;
+ }
+
+ /**
+ * Receives SFTP Packets
+ *
+ * See '6. General Packet Format' of draft-ietf-secsh-filexfer-13 for more info.
+ *
+ * Incidentally, the number of SSH_MSG_CHANNEL_DATA messages has no bearing on the number of SFTP packets present.
+ * There can be one SSH_MSG_CHANNEL_DATA messages containing two SFTP packets or there can be two SSH_MSG_CHANNEL_DATA
+ * messages containing one SFTP packet.
+ *
+ * @see self::_send_sftp_packet()
+ * @return string
+ * @access private
+ */
+ function _get_sftp_packet()
+ {
+ $this->curTimeout = false;
+
+ $start = strtok(microtime(), ' ') + strtok(''); // http://php.net/microtime#61838
+
+ // SFTP packet length
+ while (strlen($this->packet_buffer) < 4) {
+ $temp = $this->_get_channel_packet(self::CHANNEL);
+ if (is_bool($temp)) {
+ $this->packet_type = false;
+ $this->packet_buffer = '';
+ return false;
+ }
+ $this->packet_buffer.= $temp;
+ }
+ if (strlen($this->packet_buffer) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($this->packet_buffer, 4)));
+ $tempLength = $length;
+ $tempLength-= strlen($this->packet_buffer);
+
+ // SFTP packet type and data payload
+ while ($tempLength > 0) {
+ $temp = $this->_get_channel_packet(self::CHANNEL);
+ if (is_bool($temp)) {
+ $this->packet_type = false;
+ $this->packet_buffer = '';
+ return false;
+ }
+ $this->packet_buffer.= $temp;
+ $tempLength-= strlen($temp);
+ }
+
+ $stop = strtok(microtime(), ' ') + strtok('');
+
+ $this->packet_type = ord($this->_string_shift($this->packet_buffer));
+
+ if ($this->request_id !== false) {
+ $this->_string_shift($this->packet_buffer, 4); // remove the request id
+ $length-= 5; // account for the request id and the packet type
+ } else {
+ $length-= 1; // account for the packet type
+ }
+
+ $packet = $this->_string_shift($this->packet_buffer, $length);
+
+ if (defined('NET_SFTP_LOGGING')) {
+ $packet_type = '<- ' . $this->packet_types[$this->packet_type] .
+ ' (' . round($stop - $start, 4) . 's)';
+ if (NET_SFTP_LOGGING == self::LOG_REALTIME) {
+ echo "<pre>\r\n" . $this->_format_log(array($packet), array($packet_type)) . "\r\n</pre>\r\n";
+ flush();
+ ob_flush();
+ } else {
+ $this->packet_type_log[] = $packet_type;
+ if (NET_SFTP_LOGGING == self::LOG_COMPLEX) {
+ $this->packet_log[] = $packet;
+ }
+ }
+ }
+
+ return $packet;
+ }
+
+ /**
+ * Returns a log of the packets that have been sent and received.
+ *
+ * Returns a string if NET_SFTP_LOGGING == NET_SFTP_LOG_COMPLEX, an array if NET_SFTP_LOGGING == NET_SFTP_LOG_SIMPLE and false if !defined('NET_SFTP_LOGGING')
+ *
+ * @access public
+ * @return string or Array
+ */
+ function getSFTPLog()
+ {
+ if (!defined('NET_SFTP_LOGGING')) {
+ return false;
+ }
+
+ switch (NET_SFTP_LOGGING) {
+ case self::LOG_COMPLEX:
+ return $this->_format_log($this->packet_log, $this->packet_type_log);
+ break;
+ //case self::LOG_SIMPLE:
+ default:
+ return $this->packet_type_log;
+ }
+ }
+
+ /**
+ * Returns all errors
+ *
+ * @return string
+ * @access public
+ */
+ function getSFTPErrors()
+ {
+ return $this->sftp_errors;
+ }
+
+ /**
+ * Returns the last error
+ *
+ * @return string
+ * @access public
+ */
+ function getLastSFTPError()
+ {
+ return count($this->sftp_errors) ? $this->sftp_errors[count($this->sftp_errors) - 1] : '';
+ }
+
+ /**
+ * Get supported SFTP versions
+ *
+ * @return array
+ * @access public
+ */
+ function getSupportedVersions()
+ {
+ $temp = array('version' => $this->version);
+ if (isset($this->extensions['versions'])) {
+ $temp['extensions'] = $this->extensions['versions'];
+ }
+ return $temp;
+ }
+
+ /**
+ * Disconnect
+ *
+ * @param int $reason
+ * @return bool
+ * @access private
+ */
+ function _disconnect($reason)
+ {
+ $this->pwd = false;
+ parent::_disconnect($reason);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php
new file mode 100644
index 00000000..08d726ca
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php
@@ -0,0 +1,795 @@
+<?php
+
+/**
+ * SFTP Stream Wrapper
+ *
+ * Creates an sftp:// protocol handler that can be used with, for example, fopen(), dir(), etc.
+ *
+ * PHP version 5
+ *
+ * @category Net
+ * @package SFTP
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2013 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Net\SFTP;
+
+use phpseclib\Crypt\RSA;
+use phpseclib\Net\SFTP;
+
+/**
+ * SFTP Stream Wrapper
+ *
+ * @package SFTP
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class Stream
+{
+ /**
+ * SFTP instances
+ *
+ * Rather than re-create the connection we re-use instances if possible
+ *
+ * @var array
+ */
+ static $instances;
+
+ /**
+ * SFTP instance
+ *
+ * @var object
+ * @access private
+ */
+ var $sftp;
+
+ /**
+ * Path
+ *
+ * @var string
+ * @access private
+ */
+ var $path;
+
+ /**
+ * Mode
+ *
+ * @var string
+ * @access private
+ */
+ var $mode;
+
+ /**
+ * Position
+ *
+ * @var int
+ * @access private
+ */
+ var $pos;
+
+ /**
+ * Size
+ *
+ * @var int
+ * @access private
+ */
+ var $size;
+
+ /**
+ * Directory entries
+ *
+ * @var array
+ * @access private
+ */
+ var $entries;
+
+ /**
+ * EOF flag
+ *
+ * @var bool
+ * @access private
+ */
+ var $eof;
+
+ /**
+ * Context resource
+ *
+ * Technically this needs to be publically accessible so PHP can set it directly
+ *
+ * @var resource
+ * @access public
+ */
+ var $context;
+
+ /**
+ * Notification callback function
+ *
+ * @var callable
+ * @access public
+ */
+ var $notification;
+
+ /**
+ * Registers this class as a URL wrapper.
+ *
+ * @param string $protocol The wrapper name to be registered.
+ * @return bool True on success, false otherwise.
+ * @access public
+ */
+ static function register($protocol = 'sftp')
+ {
+ if (in_array($protocol, stream_get_wrappers(), true)) {
+ return false;
+ }
+ return stream_wrapper_register($protocol, get_called_class());
+ }
+
+ /**
+ * The Constructor
+ *
+ * @access public
+ */
+ function __construct()
+ {
+ if (defined('NET_SFTP_STREAM_LOGGING')) {
+ echo "__construct()\r\n";
+ }
+ }
+
+ /**
+ * Path Parser
+ *
+ * Extract a path from a URI and actually connect to an SSH server if appropriate
+ *
+ * If "notification" is set as a context parameter the message code for successful login is
+ * NET_SSH2_MSG_USERAUTH_SUCCESS. For a failed login it's NET_SSH2_MSG_USERAUTH_FAILURE.
+ *
+ * @param string $path
+ * @return string
+ * @access private
+ */
+ function _parse_path($path)
+ {
+ $orig = $path;
+ extract(parse_url($path) + array('port' => 22));
+ if (isset($query)) {
+ $path.= '?' . $query;
+ } elseif (preg_match('/(\?|\?#)$/', $orig)) {
+ $path.= '?';
+ }
+ if (isset($fragment)) {
+ $path.= '#' . $fragment;
+ } elseif ($orig[strlen($orig) - 1] == '#') {
+ $path.= '#';
+ }
+
+ if (!isset($host)) {
+ return false;
+ }
+
+ if (isset($this->context)) {
+ $context = stream_context_get_params($this->context);
+ if (isset($context['notification'])) {
+ $this->notification = $context['notification'];
+ }
+ }
+
+ if ($host[0] == '$') {
+ $host = substr($host, 1);
+ global $$host;
+ if (($$host instanceof SFTP) === false) {
+ return false;
+ }
+ $this->sftp = $$host;
+ } else {
+ if (isset($this->context)) {
+ $context = stream_context_get_options($this->context);
+ }
+ if (isset($context[$scheme]['session'])) {
+ $sftp = $context[$scheme]['session'];
+ }
+ if (isset($context[$scheme]['sftp'])) {
+ $sftp = $context[$scheme]['sftp'];
+ }
+ if (isset($sftp) && $sftp instanceof SFTP) {
+ $this->sftp = $sftp;
+ return $path;
+ }
+ if (isset($context[$scheme]['username'])) {
+ $user = $context[$scheme]['username'];
+ }
+ if (isset($context[$scheme]['password'])) {
+ $pass = $context[$scheme]['password'];
+ }
+ if (isset($context[$scheme]['privkey']) && $context[$scheme]['privkey'] instanceof RSA) {
+ $pass = $context[$scheme]['privkey'];
+ }
+
+ if (!isset($user) || !isset($pass)) {
+ return false;
+ }
+
+ // casting $pass to a string is necessary in the event that it's a \phpseclib\Crypt\RSA object
+ if (isset(self::$instances[$host][$port][$user][(string) $pass])) {
+ $this->sftp = self::$instances[$host][$port][$user][(string) $pass];
+ } else {
+ $this->sftp = new SFTP($host, $port);
+ $this->sftp->disableStatCache();
+ if (isset($this->notification) && is_callable($this->notification)) {
+ /* if !is_callable($this->notification) we could do this:
+
+ user_error('fopen(): failed to call user notifier', E_USER_WARNING);
+
+ the ftp wrapper gives errors like that when the notifier isn't callable.
+ i've opted not to do that, however, since the ftp wrapper gives the line
+ on which the fopen occurred as the line number - not the line that the
+ user_error is on.
+ */
+ call_user_func($this->notification, STREAM_NOTIFY_CONNECT, STREAM_NOTIFY_SEVERITY_INFO, '', 0, 0, 0);
+ call_user_func($this->notification, STREAM_NOTIFY_AUTH_REQUIRED, STREAM_NOTIFY_SEVERITY_INFO, '', 0, 0, 0);
+ if (!$this->sftp->login($user, $pass)) {
+ call_user_func($this->notification, STREAM_NOTIFY_AUTH_RESULT, STREAM_NOTIFY_SEVERITY_ERR, 'Login Failure', NET_SSH2_MSG_USERAUTH_FAILURE, 0, 0);
+ return false;
+ }
+ call_user_func($this->notification, STREAM_NOTIFY_AUTH_RESULT, STREAM_NOTIFY_SEVERITY_INFO, 'Login Success', NET_SSH2_MSG_USERAUTH_SUCCESS, 0, 0);
+ } else {
+ if (!$this->sftp->login($user, $pass)) {
+ return false;
+ }
+ }
+ self::$instances[$host][$port][$user][(string) $pass] = $this->sftp;
+ }
+ }
+
+ return $path;
+ }
+
+ /**
+ * Opens file or URL
+ *
+ * @param string $path
+ * @param string $mode
+ * @param int $options
+ * @param string $opened_path
+ * @return bool
+ * @access public
+ */
+ function _stream_open($path, $mode, $options, &$opened_path)
+ {
+ $path = $this->_parse_path($path);
+
+ if ($path === false) {
+ return false;
+ }
+ $this->path = $path;
+
+ $this->size = $this->sftp->size($path);
+ $this->mode = preg_replace('#[bt]$#', '', $mode);
+ $this->eof = false;
+
+ if ($this->size === false) {
+ if ($this->mode[0] == 'r') {
+ return false;
+ } else {
+ $this->sftp->touch($path);
+ $this->size = 0;
+ }
+ } else {
+ switch ($this->mode[0]) {
+ case 'x':
+ return false;
+ case 'w':
+ $this->sftp->truncate($path, 0);
+ $this->size = 0;
+ }
+ }
+
+ $this->pos = $this->mode[0] != 'a' ? 0 : $this->size;
+
+ return true;
+ }
+
+ /**
+ * Read from stream
+ *
+ * @param int $count
+ * @return mixed
+ * @access public
+ */
+ function _stream_read($count)
+ {
+ switch ($this->mode) {
+ case 'w':
+ case 'a':
+ case 'x':
+ case 'c':
+ return false;
+ }
+
+ // commented out because some files - eg. /dev/urandom - will say their size is 0 when in fact it's kinda infinite
+ //if ($this->pos >= $this->size) {
+ // $this->eof = true;
+ // return false;
+ //}
+
+ $result = $this->sftp->get($this->path, false, $this->pos, $count);
+ if (isset($this->notification) && is_callable($this->notification)) {
+ if ($result === false) {
+ call_user_func($this->notification, STREAM_NOTIFY_FAILURE, STREAM_NOTIFY_SEVERITY_ERR, $this->sftp->getLastSFTPError(), NET_SFTP_OPEN, 0, 0);
+ return 0;
+ }
+ // seems that PHP calls stream_read in 8k chunks
+ call_user_func($this->notification, STREAM_NOTIFY_PROGRESS, STREAM_NOTIFY_SEVERITY_INFO, '', 0, strlen($result), $this->size);
+ }
+
+ if (empty($result)) { // ie. false or empty string
+ $this->eof = true;
+ return false;
+ }
+ $this->pos+= strlen($result);
+
+ return $result;
+ }
+
+ /**
+ * Write to stream
+ *
+ * @param string $data
+ * @return mixed
+ * @access public
+ */
+ function _stream_write($data)
+ {
+ switch ($this->mode) {
+ case 'r':
+ return false;
+ }
+
+ $result = $this->sftp->put($this->path, $data, SFTP::SOURCE_STRING, $this->pos);
+ if (isset($this->notification) && is_callable($this->notification)) {
+ if (!$result) {
+ call_user_func($this->notification, STREAM_NOTIFY_FAILURE, STREAM_NOTIFY_SEVERITY_ERR, $this->sftp->getLastSFTPError(), NET_SFTP_OPEN, 0, 0);
+ return 0;
+ }
+ // seems that PHP splits up strings into 8k blocks before calling stream_write
+ call_user_func($this->notification, STREAM_NOTIFY_PROGRESS, STREAM_NOTIFY_SEVERITY_INFO, '', 0, strlen($data), strlen($data));
+ }
+
+ if ($result === false) {
+ return false;
+ }
+ $this->pos+= strlen($data);
+ if ($this->pos > $this->size) {
+ $this->size = $this->pos;
+ }
+ $this->eof = false;
+ return strlen($data);
+ }
+
+ /**
+ * Retrieve the current position of a stream
+ *
+ * @return int
+ * @access public
+ */
+ function _stream_tell()
+ {
+ return $this->pos;
+ }
+
+ /**
+ * Tests for end-of-file on a file pointer
+ *
+ * In my testing there are four classes functions that normally effect the pointer:
+ * fseek, fputs / fwrite, fgets / fread and ftruncate.
+ *
+ * Only fgets / fread, however, results in feof() returning true. do fputs($fp, 'aaa') on a blank file and feof()
+ * will return false. do fread($fp, 1) and feof() will then return true. do fseek($fp, 10) on ablank file and feof()
+ * will return false. do fread($fp, 1) and feof() will then return true.
+ *
+ * @return bool
+ * @access public
+ */
+ function _stream_eof()
+ {
+ return $this->eof;
+ }
+
+ /**
+ * Seeks to specific location in a stream
+ *
+ * @param int $offset
+ * @param int $whence
+ * @return bool
+ * @access public
+ */
+ function _stream_seek($offset, $whence)
+ {
+ switch ($whence) {
+ case SEEK_SET:
+ if ($offset >= $this->size || $offset < 0) {
+ return false;
+ }
+ break;
+ case SEEK_CUR:
+ $offset+= $this->pos;
+ break;
+ case SEEK_END:
+ $offset+= $this->size;
+ }
+
+ $this->pos = $offset;
+ $this->eof = false;
+ return true;
+ }
+
+ /**
+ * Change stream options
+ *
+ * @param string $path
+ * @param int $option
+ * @param mixed $var
+ * @return bool
+ * @access public
+ */
+ function _stream_metadata($path, $option, $var)
+ {
+ $path = $this->_parse_path($path);
+ if ($path === false) {
+ return false;
+ }
+
+ // stream_metadata was introduced in PHP 5.4.0 but as of 5.4.11 the constants haven't been defined
+ // see http://www.php.net/streamwrapper.stream-metadata and https://bugs.php.net/64246
+ // and https://github.com/php/php-src/blob/master/main/php_streams.h#L592
+ switch ($option) {
+ case 1: // PHP_STREAM_META_TOUCH
+ return $this->sftp->touch($path, $var[0], $var[1]);
+ case 2: // PHP_STREAM_OWNER_NAME
+ case 3: // PHP_STREAM_GROUP_NAME
+ return false;
+ case 4: // PHP_STREAM_META_OWNER
+ return $this->sftp->chown($path, $var);
+ case 5: // PHP_STREAM_META_GROUP
+ return $this->sftp->chgrp($path, $var);
+ case 6: // PHP_STREAM_META_ACCESS
+ return $this->sftp->chmod($path, $var) !== false;
+ }
+ }
+
+ /**
+ * Retrieve the underlaying resource
+ *
+ * @param int $cast_as
+ * @return resource
+ * @access public
+ */
+ function _stream_cast($cast_as)
+ {
+ return $this->sftp->fsock;
+ }
+
+ /**
+ * Advisory file locking
+ *
+ * @param int $operation
+ * @return bool
+ * @access public
+ */
+ function _stream_lock($operation)
+ {
+ return false;
+ }
+
+ /**
+ * Renames a file or directory
+ *
+ * Attempts to rename oldname to newname, moving it between directories if necessary.
+ * If newname exists, it will be overwritten. This is a departure from what \phpseclib\Net\SFTP
+ * does.
+ *
+ * @param string $path_from
+ * @param string $path_to
+ * @return bool
+ * @access public
+ */
+ function _rename($path_from, $path_to)
+ {
+ $path1 = parse_url($path_from);
+ $path2 = parse_url($path_to);
+ unset($path1['path'], $path2['path']);
+ if ($path1 != $path2) {
+ return false;
+ }
+
+ $path_from = $this->_parse_path($path_from);
+ $path_to = parse_url($path_to);
+ if ($path_from === false) {
+ return false;
+ }
+
+ $path_to = $path_to['path']; // the $component part of parse_url() was added in PHP 5.1.2
+ // "It is an error if there already exists a file with the name specified by newpath."
+ // -- http://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-6.5
+ if (!$this->sftp->rename($path_from, $path_to)) {
+ if ($this->sftp->stat($path_to)) {
+ return $this->sftp->delete($path_to, true) && $this->sftp->rename($path_from, $path_to);
+ }
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Open directory handle
+ *
+ * The only $options is "whether or not to enforce safe_mode (0x04)". Since safe mode was deprecated in 5.3 and
+ * removed in 5.4 I'm just going to ignore it.
+ *
+ * Also, nlist() is the best that this function is realistically going to be able to do. When an SFTP client
+ * sends a SSH_FXP_READDIR packet you don't generally get info on just one file but on multiple files. Quoting
+ * the SFTP specs:
+ *
+ * The SSH_FXP_NAME response has the following format:
+ *
+ * uint32 id
+ * uint32 count
+ * repeats count times:
+ * string filename
+ * string longname
+ * ATTRS attrs
+ *
+ * @param string $path
+ * @param int $options
+ * @return bool
+ * @access public
+ */
+ function _dir_opendir($path, $options)
+ {
+ $path = $this->_parse_path($path);
+ if ($path === false) {
+ return false;
+ }
+ $this->pos = 0;
+ $this->entries = $this->sftp->nlist($path);
+ return $this->entries !== false;
+ }
+
+ /**
+ * Read entry from directory handle
+ *
+ * @return mixed
+ * @access public
+ */
+ function _dir_readdir()
+ {
+ if (isset($this->entries[$this->pos])) {
+ return $this->entries[$this->pos++];
+ }
+ return false;
+ }
+
+ /**
+ * Rewind directory handle
+ *
+ * @return bool
+ * @access public
+ */
+ function _dir_rewinddir()
+ {
+ $this->pos = 0;
+ return true;
+ }
+
+ /**
+ * Close directory handle
+ *
+ * @return bool
+ * @access public
+ */
+ function _dir_closedir()
+ {
+ return true;
+ }
+
+ /**
+ * Create a directory
+ *
+ * Only valid $options is STREAM_MKDIR_RECURSIVE
+ *
+ * @param string $path
+ * @param int $mode
+ * @param int $options
+ * @return bool
+ * @access public
+ */
+ function _mkdir($path, $mode, $options)
+ {
+ $path = $this->_parse_path($path);
+ if ($path === false) {
+ return false;
+ }
+
+ return $this->sftp->mkdir($path, $mode, $options & STREAM_MKDIR_RECURSIVE);
+ }
+
+ /**
+ * Removes a directory
+ *
+ * Only valid $options is STREAM_MKDIR_RECURSIVE per <http://php.net/streamwrapper.rmdir>, however,
+ * <http://php.net/rmdir> does not have a $recursive parameter as mkdir() does so I don't know how
+ * STREAM_MKDIR_RECURSIVE is supposed to be set. Also, when I try it out with rmdir() I get 8 as
+ * $options. What does 8 correspond to?
+ *
+ * @param string $path
+ * @param int $mode
+ * @param int $options
+ * @return bool
+ * @access public
+ */
+ function _rmdir($path, $options)
+ {
+ $path = $this->_parse_path($path);
+ if ($path === false) {
+ return false;
+ }
+
+ return $this->sftp->rmdir($path);
+ }
+
+ /**
+ * Flushes the output
+ *
+ * See <http://php.net/fflush>. Always returns true because \phpseclib\Net\SFTP doesn't cache stuff before writing
+ *
+ * @return bool
+ * @access public
+ */
+ function _stream_flush()
+ {
+ return true;
+ }
+
+ /**
+ * Retrieve information about a file resource
+ *
+ * @return mixed
+ * @access public
+ */
+ function _stream_stat()
+ {
+ $results = $this->sftp->stat($this->path);
+ if ($results === false) {
+ return false;
+ }
+ return $results;
+ }
+
+ /**
+ * Delete a file
+ *
+ * @param string $path
+ * @return bool
+ * @access public
+ */
+ function _unlink($path)
+ {
+ $path = $this->_parse_path($path);
+ if ($path === false) {
+ return false;
+ }
+
+ return $this->sftp->delete($path, false);
+ }
+
+ /**
+ * Retrieve information about a file
+ *
+ * Ignores the STREAM_URL_STAT_QUIET flag because the entirety of \phpseclib\Net\SFTP\Stream is quiet by default
+ * might be worthwhile to reconstruct bits 12-16 (ie. the file type) if mode doesn't have them but we'll
+ * cross that bridge when and if it's reached
+ *
+ * @param string $path
+ * @param int $flags
+ * @return mixed
+ * @access public
+ */
+ function _url_stat($path, $flags)
+ {
+ $path = $this->_parse_path($path);
+ if ($path === false) {
+ return false;
+ }
+
+ $results = $flags & STREAM_URL_STAT_LINK ? $this->sftp->lstat($path) : $this->sftp->stat($path);
+ if ($results === false) {
+ return false;
+ }
+
+ return $results;
+ }
+
+ /**
+ * Truncate stream
+ *
+ * @param int $new_size
+ * @return bool
+ * @access public
+ */
+ function _stream_truncate($new_size)
+ {
+ if (!$this->sftp->truncate($this->path, $new_size)) {
+ return false;
+ }
+
+ $this->eof = false;
+ $this->size = $new_size;
+
+ return true;
+ }
+
+ /**
+ * Change stream options
+ *
+ * STREAM_OPTION_WRITE_BUFFER isn't supported for the same reason stream_flush isn't.
+ * The other two aren't supported because of limitations in \phpseclib\Net\SFTP.
+ *
+ * @param int $option
+ * @param int $arg1
+ * @param int $arg2
+ * @return bool
+ * @access public
+ */
+ function _stream_set_option($option, $arg1, $arg2)
+ {
+ return false;
+ }
+
+ /**
+ * Close an resource
+ *
+ * @access public
+ */
+ function _stream_close()
+ {
+ }
+
+ /**
+ * __call Magic Method
+ *
+ * When you're utilizing an SFTP stream you're not calling the methods in this class directly - PHP is calling them for you.
+ * Which kinda begs the question... what methods is PHP calling and what parameters is it passing to them? This function
+ * lets you figure that out.
+ *
+ * If NET_SFTP_STREAM_LOGGING is defined all calls will be output on the screen and then (regardless of whether or not
+ * NET_SFTP_STREAM_LOGGING is enabled) the parameters will be passed through to the appropriate method.
+ *
+ * @param string
+ * @param array
+ * @return mixed
+ * @access public
+ */
+ function __call($name, $arguments)
+ {
+ if (defined('NET_SFTP_STREAM_LOGGING')) {
+ echo $name . '(';
+ $last = count($arguments) - 1;
+ foreach ($arguments as $i => $argument) {
+ var_export($argument);
+ if ($i != $last) {
+ echo ',';
+ }
+ }
+ echo ")\r\n";
+ }
+ $name = '_' . $name;
+ if (!method_exists($this, $name)) {
+ return false;
+ }
+ return call_user_func_array(array($this, $name), $arguments);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH1.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH1.php
new file mode 100644
index 00000000..9e608f4b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH1.php
@@ -0,0 +1,1642 @@
+<?php
+
+/**
+ * Pure-PHP implementation of SSHv1.
+ *
+ * PHP version 5
+ *
+ * Here's a short example of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $ssh = new \phpseclib\Net\SSH1('www.domain.tld');
+ * if (!$ssh->login('username', 'password')) {
+ * exit('Login Failed');
+ * }
+ *
+ * echo $ssh->exec('ls -la');
+ * ?>
+ * </code>
+ *
+ * Here's another short example:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $ssh = new \phpseclib\Net\SSH1('www.domain.tld');
+ * if (!$ssh->login('username', 'password')) {
+ * exit('Login Failed');
+ * }
+ *
+ * echo $ssh->read('username@username:~$');
+ * $ssh->write("ls -la\n");
+ * echo $ssh->read('username@username:~$');
+ * ?>
+ * </code>
+ *
+ * More information on the SSHv1 specification can be found by reading
+ * {@link http://www.snailbook.com/docs/protocol-1.5.txt protocol-1.5.txt}.
+ *
+ * @category Net
+ * @package SSH1
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Net;
+
+use phpseclib\Crypt\DES;
+use phpseclib\Crypt\Random;
+use phpseclib\Crypt\TripleDES;
+use phpseclib\Math\BigInteger;
+
+/**
+ * Pure-PHP implementation of SSHv1.
+ *
+ * @package SSH1
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class SSH1
+{
+ /**#@+
+ * Encryption Methods
+ *
+ * @see \phpseclib\Net\SSH1::getSupportedCiphers()
+ * @access public
+ */
+ /**
+ * No encryption
+ *
+ * Not supported.
+ */
+ const CIPHER_NONE = 0;
+ /**
+ * IDEA in CFB mode
+ *
+ * Not supported.
+ */
+ const CIPHER_IDEA = 1;
+ /**
+ * DES in CBC mode
+ */
+ const CIPHER_DES = 2;
+ /**
+ * Triple-DES in CBC mode
+ *
+ * All implementations are required to support this
+ */
+ const CIPHER_3DES = 3;
+ /**
+ * TRI's Simple Stream encryption CBC
+ *
+ * Not supported nor is it defined in the official SSH1 specs. OpenSSH, however, does define it (see cipher.h),
+ * although it doesn't use it (see cipher.c)
+ */
+ const CIPHER_BROKEN_TSS = 4;
+ /**
+ * RC4
+ *
+ * Not supported.
+ *
+ * @internal According to the SSH1 specs:
+ *
+ * "The first 16 bytes of the session key are used as the key for
+ * the server to client direction. The remaining 16 bytes are used
+ * as the key for the client to server direction. This gives
+ * independent 128-bit keys for each direction."
+ *
+ * This library currently only supports encryption when the same key is being used for both directions. This is
+ * because there's only one $crypto object. Two could be added ($encrypt and $decrypt, perhaps).
+ */
+ const CIPHER_RC4 = 5;
+ /**
+ * Blowfish
+ *
+ * Not supported nor is it defined in the official SSH1 specs. OpenSSH, however, defines it (see cipher.h) and
+ * uses it (see cipher.c)
+ */
+ const CIPHER_BLOWFISH = 6;
+ /**#@-*/
+
+ /**#@+
+ * Authentication Methods
+ *
+ * @see \phpseclib\Net\SSH1::getSupportedAuthentications()
+ * @access public
+ */
+ /**
+ * .rhosts or /etc/hosts.equiv
+ */
+ const AUTH_RHOSTS = 1;
+ /**
+ * pure RSA authentication
+ */
+ const AUTH_RSA = 2;
+ /**
+ * password authentication
+ *
+ * This is the only method that is supported by this library.
+ */
+ const AUTH_PASSWORD = 3;
+ /**
+ * .rhosts with RSA host authentication
+ */
+ const AUTH_RHOSTS_RSA = 4;
+ /**#@-*/
+
+ /**#@+
+ * Terminal Modes
+ *
+ * @link http://3sp.com/content/developer/maverick-net/docs/Maverick.SSH.PseudoTerminalModesMembers.html
+ * @access private
+ */
+ const TTY_OP_END = 0;
+ /**#@-*/
+
+ /**
+ * The Response Type
+ *
+ * @see \phpseclib\Net\SSH1::_get_binary_packet()
+ * @access private
+ */
+ const RESPONSE_TYPE = 1;
+
+ /**
+ * The Response Data
+ *
+ * @see \phpseclib\Net\SSH1::_get_binary_packet()
+ * @access private
+ */
+ const RESPONSE_DATA = 2;
+
+ /**#@+
+ * Execution Bitmap Masks
+ *
+ * @see \phpseclib\Net\SSH1::bitmap
+ * @access private
+ */
+ const MASK_CONSTRUCTOR = 0x00000001;
+ const MASK_CONNECTED = 0x00000002;
+ const MASK_LOGIN = 0x00000004;
+ const MASK_SHELL = 0x00000008;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\Net\SSH1::getLog()
+ */
+ /**
+ * Returns the message numbers
+ */
+ const LOG_SIMPLE = 1;
+ /**
+ * Returns the message content
+ */
+ const LOG_COMPLEX = 2;
+ /**
+ * Outputs the content real-time
+ */
+ const LOG_REALTIME = 3;
+ /**
+ * Dumps the content real-time to a file
+ */
+ const LOG_REALTIME_FILE = 4;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\Net\SSH1::read()
+ */
+ /**
+ * Returns when a string matching $expect exactly is found
+ */
+ const READ_SIMPLE = 1;
+ /**
+ * Returns when a string matching the regular expression $expect is found
+ */
+ const READ_REGEX = 2;
+ /**#@-*/
+
+ /**
+ * The SSH identifier
+ *
+ * @var string
+ * @access private
+ */
+ var $identifier = 'SSH-1.5-phpseclib';
+
+ /**
+ * The Socket Object
+ *
+ * @var object
+ * @access private
+ */
+ var $fsock;
+
+ /**
+ * The cryptography object
+ *
+ * @var object
+ * @access private
+ */
+ var $crypto = false;
+
+ /**
+ * Execution Bitmap
+ *
+ * The bits that are set represent functions that have been called already. This is used to determine
+ * if a requisite function has been successfully executed. If not, an error should be thrown.
+ *
+ * @var int
+ * @access private
+ */
+ var $bitmap = 0;
+
+ /**
+ * The Server Key Public Exponent
+ *
+ * Logged for debug purposes
+ *
+ * @see self::getServerKeyPublicExponent()
+ * @var string
+ * @access private
+ */
+ var $server_key_public_exponent;
+
+ /**
+ * The Server Key Public Modulus
+ *
+ * Logged for debug purposes
+ *
+ * @see self::getServerKeyPublicModulus()
+ * @var string
+ * @access private
+ */
+ var $server_key_public_modulus;
+
+ /**
+ * The Host Key Public Exponent
+ *
+ * Logged for debug purposes
+ *
+ * @see self::getHostKeyPublicExponent()
+ * @var string
+ * @access private
+ */
+ var $host_key_public_exponent;
+
+ /**
+ * The Host Key Public Modulus
+ *
+ * Logged for debug purposes
+ *
+ * @see self::getHostKeyPublicModulus()
+ * @var string
+ * @access private
+ */
+ var $host_key_public_modulus;
+
+ /**
+ * Supported Ciphers
+ *
+ * Logged for debug purposes
+ *
+ * @see self::getSupportedCiphers()
+ * @var array
+ * @access private
+ */
+ var $supported_ciphers = array(
+ self::CIPHER_NONE => 'No encryption',
+ self::CIPHER_IDEA => 'IDEA in CFB mode',
+ self::CIPHER_DES => 'DES in CBC mode',
+ self::CIPHER_3DES => 'Triple-DES in CBC mode',
+ self::CIPHER_BROKEN_TSS => 'TRI\'s Simple Stream encryption CBC',
+ self::CIPHER_RC4 => 'RC4',
+ self::CIPHER_BLOWFISH => 'Blowfish'
+ );
+
+ /**
+ * Supported Authentications
+ *
+ * Logged for debug purposes
+ *
+ * @see self::getSupportedAuthentications()
+ * @var array
+ * @access private
+ */
+ var $supported_authentications = array(
+ self::AUTH_RHOSTS => '.rhosts or /etc/hosts.equiv',
+ self::AUTH_RSA => 'pure RSA authentication',
+ self::AUTH_PASSWORD => 'password authentication',
+ self::AUTH_RHOSTS_RSA => '.rhosts with RSA host authentication'
+ );
+
+ /**
+ * Server Identification
+ *
+ * @see self::getServerIdentification()
+ * @var string
+ * @access private
+ */
+ var $server_identification = '';
+
+ /**
+ * Protocol Flags
+ *
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $protocol_flags = array();
+
+ /**
+ * Protocol Flag Log
+ *
+ * @see self::getLog()
+ * @var array
+ * @access private
+ */
+ var $protocol_flag_log = array();
+
+ /**
+ * Message Log
+ *
+ * @see self::getLog()
+ * @var array
+ * @access private
+ */
+ var $message_log = array();
+
+ /**
+ * Real-time log file pointer
+ *
+ * @see self::_append_log()
+ * @var resource
+ * @access private
+ */
+ var $realtime_log_file;
+
+ /**
+ * Real-time log file size
+ *
+ * @see self::_append_log()
+ * @var int
+ * @access private
+ */
+ var $realtime_log_size;
+
+ /**
+ * Real-time log file wrap boolean
+ *
+ * @see self::_append_log()
+ * @var bool
+ * @access private
+ */
+ var $realtime_log_wrap;
+
+ /**
+ * Interactive Buffer
+ *
+ * @see self::read()
+ * @var array
+ * @access private
+ */
+ var $interactiveBuffer = '';
+
+ /**
+ * Timeout
+ *
+ * @see self::setTimeout()
+ * @access private
+ */
+ var $timeout;
+
+ /**
+ * Current Timeout
+ *
+ * @see self::_get_channel_packet()
+ * @access private
+ */
+ var $curTimeout;
+
+ /**
+ * Log Boundary
+ *
+ * @see self::_format_log()
+ * @access private
+ */
+ var $log_boundary = ':';
+
+ /**
+ * Log Long Width
+ *
+ * @see self::_format_log()
+ * @access private
+ */
+ var $log_long_width = 65;
+
+ /**
+ * Log Short Width
+ *
+ * @see self::_format_log()
+ * @access private
+ */
+ var $log_short_width = 16;
+
+ /**
+ * Hostname
+ *
+ * @see self::__construct()
+ * @see self::_connect()
+ * @var string
+ * @access private
+ */
+ var $host;
+
+ /**
+ * Port Number
+ *
+ * @see self::__construct()
+ * @see self::_connect()
+ * @var int
+ * @access private
+ */
+ var $port;
+
+ /**
+ * Timeout for initial connection
+ *
+ * Set by the constructor call. Calling setTimeout() is optional. If it's not called functions like
+ * exec() won't timeout unless some PHP setting forces it too. The timeout specified in the constructor,
+ * however, is non-optional. There will be a timeout, whether or not you set it. If you don't it'll be
+ * 10 seconds. It is used by fsockopen() in that function.
+ *
+ * @see self::__construct()
+ * @see self::_connect()
+ * @var int
+ * @access private
+ */
+ var $connectionTimeout;
+
+ /**
+ * Default cipher
+ *
+ * @see self::__construct()
+ * @see self::_connect()
+ * @var int
+ * @access private
+ */
+ var $cipher;
+
+ /**
+ * Default Constructor.
+ *
+ * Connects to an SSHv1 server
+ *
+ * @param string $host
+ * @param int $port
+ * @param int $timeout
+ * @param int $cipher
+ * @return \phpseclib\Net\SSH1
+ * @access public
+ */
+ function __construct($host, $port = 22, $timeout = 10, $cipher = self::CIPHER_3DES)
+ {
+ $this->protocol_flags = array(
+ 1 => 'NET_SSH1_MSG_DISCONNECT',
+ 2 => 'NET_SSH1_SMSG_PUBLIC_KEY',
+ 3 => 'NET_SSH1_CMSG_SESSION_KEY',
+ 4 => 'NET_SSH1_CMSG_USER',
+ 9 => 'NET_SSH1_CMSG_AUTH_PASSWORD',
+ 10 => 'NET_SSH1_CMSG_REQUEST_PTY',
+ 12 => 'NET_SSH1_CMSG_EXEC_SHELL',
+ 13 => 'NET_SSH1_CMSG_EXEC_CMD',
+ 14 => 'NET_SSH1_SMSG_SUCCESS',
+ 15 => 'NET_SSH1_SMSG_FAILURE',
+ 16 => 'NET_SSH1_CMSG_STDIN_DATA',
+ 17 => 'NET_SSH1_SMSG_STDOUT_DATA',
+ 18 => 'NET_SSH1_SMSG_STDERR_DATA',
+ 19 => 'NET_SSH1_CMSG_EOF',
+ 20 => 'NET_SSH1_SMSG_EXITSTATUS',
+ 33 => 'NET_SSH1_CMSG_EXIT_CONFIRMATION'
+ );
+
+ $this->_define_array($this->protocol_flags);
+
+ $this->host = $host;
+ $this->port = $port;
+ $this->connectionTimeout = $timeout;
+ $this->cipher = $cipher;
+ }
+
+ /**
+ * Connect to an SSHv1 server
+ *
+ * @return bool
+ * @access private
+ */
+ function _connect()
+ {
+ $this->fsock = @fsockopen($this->host, $this->port, $errno, $errstr, $this->connectionTimeout);
+ if (!$this->fsock) {
+ user_error(rtrim("Cannot connect to {$this->host}:{$this->port}. Error $errno. $errstr"));
+ return false;
+ }
+
+ $this->server_identification = $init_line = fgets($this->fsock, 255);
+
+ if (defined('NET_SSH1_LOGGING')) {
+ $this->_append_log('<-', $this->server_identification);
+ $this->_append_log('->', $this->identifier . "\r\n");
+ }
+
+ if (!preg_match('#SSH-([0-9\.]+)-(.+)#', $init_line, $parts)) {
+ user_error('Can only connect to SSH servers');
+ return false;
+ }
+ if ($parts[1][0] != 1) {
+ user_error("Cannot connect to SSH $parts[1] servers");
+ return false;
+ }
+
+ fputs($this->fsock, $this->identifier."\r\n");
+
+ $response = $this->_get_binary_packet();
+ if ($response[self::RESPONSE_TYPE] != NET_SSH1_SMSG_PUBLIC_KEY) {
+ user_error('Expected SSH_SMSG_PUBLIC_KEY');
+ return false;
+ }
+
+ $anti_spoofing_cookie = $this->_string_shift($response[self::RESPONSE_DATA], 8);
+
+ $this->_string_shift($response[self::RESPONSE_DATA], 4);
+
+ if (strlen($response[self::RESPONSE_DATA]) < 2) {
+ return false;
+ }
+ $temp = unpack('nlen', $this->_string_shift($response[self::RESPONSE_DATA], 2));
+ $server_key_public_exponent = new BigInteger($this->_string_shift($response[self::RESPONSE_DATA], ceil($temp['len'] / 8)), 256);
+ $this->server_key_public_exponent = $server_key_public_exponent;
+
+ if (strlen($response[self::RESPONSE_DATA]) < 2) {
+ return false;
+ }
+ $temp = unpack('nlen', $this->_string_shift($response[self::RESPONSE_DATA], 2));
+ $server_key_public_modulus = new BigInteger($this->_string_shift($response[self::RESPONSE_DATA], ceil($temp['len'] / 8)), 256);
+
+ $this->server_key_public_modulus = $server_key_public_modulus;
+
+ $this->_string_shift($response[self::RESPONSE_DATA], 4);
+
+ if (strlen($response[self::RESPONSE_DATA]) < 2) {
+ return false;
+ }
+ $temp = unpack('nlen', $this->_string_shift($response[self::RESPONSE_DATA], 2));
+ $host_key_public_exponent = new BigInteger($this->_string_shift($response[self::RESPONSE_DATA], ceil($temp['len'] / 8)), 256);
+ $this->host_key_public_exponent = $host_key_public_exponent;
+
+ if (strlen($response[self::RESPONSE_DATA]) < 2) {
+ return false;
+ }
+ $temp = unpack('nlen', $this->_string_shift($response[self::RESPONSE_DATA], 2));
+ $host_key_public_modulus = new BigInteger($this->_string_shift($response[self::RESPONSE_DATA], ceil($temp['len'] / 8)), 256);
+
+ $this->host_key_public_modulus = $host_key_public_modulus;
+
+ $this->_string_shift($response[self::RESPONSE_DATA], 4);
+
+ // get a list of the supported ciphers
+ if (strlen($response[self::RESPONSE_DATA]) < 4) {
+ return false;
+ }
+ extract(unpack('Nsupported_ciphers_mask', $this->_string_shift($response[self::RESPONSE_DATA], 4)));
+
+ foreach ($this->supported_ciphers as $mask => $name) {
+ if (($supported_ciphers_mask & (1 << $mask)) == 0) {
+ unset($this->supported_ciphers[$mask]);
+ }
+ }
+
+ // get a list of the supported authentications
+ if (strlen($response[self::RESPONSE_DATA]) < 4) {
+ return false;
+ }
+ extract(unpack('Nsupported_authentications_mask', $this->_string_shift($response[self::RESPONSE_DATA], 4)));
+ foreach ($this->supported_authentications as $mask => $name) {
+ if (($supported_authentications_mask & (1 << $mask)) == 0) {
+ unset($this->supported_authentications[$mask]);
+ }
+ }
+
+ $session_id = pack('H*', md5($host_key_public_modulus->toBytes() . $server_key_public_modulus->toBytes() . $anti_spoofing_cookie));
+
+ $session_key = Random::string(32);
+ $double_encrypted_session_key = $session_key ^ str_pad($session_id, 32, chr(0));
+
+ if ($server_key_public_modulus->compare($host_key_public_modulus) < 0) {
+ $double_encrypted_session_key = $this->_rsa_crypt(
+ $double_encrypted_session_key,
+ array(
+ $server_key_public_exponent,
+ $server_key_public_modulus
+ )
+ );
+ $double_encrypted_session_key = $this->_rsa_crypt(
+ $double_encrypted_session_key,
+ array(
+ $host_key_public_exponent,
+ $host_key_public_modulus
+ )
+ );
+ } else {
+ $double_encrypted_session_key = $this->_rsa_crypt(
+ $double_encrypted_session_key,
+ array(
+ $host_key_public_exponent,
+ $host_key_public_modulus
+ )
+ );
+ $double_encrypted_session_key = $this->_rsa_crypt(
+ $double_encrypted_session_key,
+ array(
+ $server_key_public_exponent,
+ $server_key_public_modulus
+ )
+ );
+ }
+
+ $cipher = isset($this->supported_ciphers[$this->cipher]) ? $this->cipher : self::CIPHER_3DES;
+ $data = pack('C2a*na*N', NET_SSH1_CMSG_SESSION_KEY, $cipher, $anti_spoofing_cookie, 8 * strlen($double_encrypted_session_key), $double_encrypted_session_key, 0);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Error sending SSH_CMSG_SESSION_KEY');
+ return false;
+ }
+
+ switch ($cipher) {
+ //case self::CIPHER_NONE:
+ // $this->crypto = new \phpseclib\Crypt\Null();
+ // break;
+ case self::CIPHER_DES:
+ $this->crypto = new DES();
+ $this->crypto->disablePadding();
+ $this->crypto->enableContinuousBuffer();
+ $this->crypto->setKey(substr($session_key, 0, 8));
+ break;
+ case self::CIPHER_3DES:
+ $this->crypto = new TripleDES(TripleDES::MODE_3CBC);
+ $this->crypto->disablePadding();
+ $this->crypto->enableContinuousBuffer();
+ $this->crypto->setKey(substr($session_key, 0, 24));
+ break;
+ //case self::CIPHER_RC4:
+ // $this->crypto = new RC4();
+ // $this->crypto->enableContinuousBuffer();
+ // $this->crypto->setKey(substr($session_key, 0, 16));
+ // break;
+ }
+
+ $response = $this->_get_binary_packet();
+
+ if ($response[self::RESPONSE_TYPE] != NET_SSH1_SMSG_SUCCESS) {
+ user_error('Expected SSH_SMSG_SUCCESS');
+ return false;
+ }
+
+ $this->bitmap = self::MASK_CONNECTED;
+
+ return true;
+ }
+
+ /**
+ * Login
+ *
+ * @param string $username
+ * @param string $password
+ * @return bool
+ * @access public
+ */
+ function login($username, $password = '')
+ {
+ if (!($this->bitmap & self::MASK_CONSTRUCTOR)) {
+ $this->bitmap |= self::MASK_CONSTRUCTOR;
+ if (!$this->_connect()) {
+ return false;
+ }
+ }
+
+ if (!($this->bitmap & self::MASK_CONNECTED)) {
+ return false;
+ }
+
+ $data = pack('CNa*', NET_SSH1_CMSG_USER, strlen($username), $username);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Error sending SSH_CMSG_USER');
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+
+ if ($response === true) {
+ return false;
+ }
+ if ($response[self::RESPONSE_TYPE] == NET_SSH1_SMSG_SUCCESS) {
+ $this->bitmap |= self::MASK_LOGIN;
+ return true;
+ } elseif ($response[self::RESPONSE_TYPE] != NET_SSH1_SMSG_FAILURE) {
+ user_error('Expected SSH_SMSG_SUCCESS or SSH_SMSG_FAILURE');
+ return false;
+ }
+
+ $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen($password), $password);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Error sending SSH_CMSG_AUTH_PASSWORD');
+ return false;
+ }
+
+ // remove the username and password from the last logged packet
+ if (defined('NET_SSH1_LOGGING') && NET_SSH1_LOGGING == self::LOG_COMPLEX) {
+ $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen('password'), 'password');
+ $this->message_log[count($this->message_log) - 1] = $data;
+ }
+
+ $response = $this->_get_binary_packet();
+
+ if ($response === true) {
+ return false;
+ }
+ if ($response[self::RESPONSE_TYPE] == NET_SSH1_SMSG_SUCCESS) {
+ $this->bitmap |= self::MASK_LOGIN;
+ return true;
+ } elseif ($response[self::RESPONSE_TYPE] == NET_SSH1_SMSG_FAILURE) {
+ return false;
+ } else {
+ user_error('Expected SSH_SMSG_SUCCESS or SSH_SMSG_FAILURE');
+ return false;
+ }
+ }
+
+ /**
+ * Set Timeout
+ *
+ * $ssh->exec('ping 127.0.0.1'); on a Linux host will never return and will run indefinitely. setTimeout() makes it so it'll timeout.
+ * Setting $timeout to false or 0 will mean there is no timeout.
+ *
+ * @param mixed $timeout
+ */
+ function setTimeout($timeout)
+ {
+ $this->timeout = $this->curTimeout = $timeout;
+ }
+
+ /**
+ * Executes a command on a non-interactive shell, returns the output, and quits.
+ *
+ * An SSH1 server will close the connection after a command has been executed on a non-interactive shell. SSH2
+ * servers don't, however, this isn't an SSH2 client. The way this works, on the server, is by initiating a
+ * shell with the -s option, as discussed in the following links:
+ *
+ * {@link http://www.faqs.org/docs/bashman/bashref_65.html http://www.faqs.org/docs/bashman/bashref_65.html}
+ * {@link http://www.faqs.org/docs/bashman/bashref_62.html http://www.faqs.org/docs/bashman/bashref_62.html}
+ *
+ * To execute further commands, a new \phpseclib\Net\SSH1 object will need to be created.
+ *
+ * Returns false on failure and the output, otherwise.
+ *
+ * @see self::interactiveRead()
+ * @see self::interactiveWrite()
+ * @param string $cmd
+ * @return mixed
+ * @access public
+ */
+ function exec($cmd, $block = true)
+ {
+ if (!($this->bitmap & self::MASK_LOGIN)) {
+ user_error('Operation disallowed prior to login()');
+ return false;
+ }
+
+ $data = pack('CNa*', NET_SSH1_CMSG_EXEC_CMD, strlen($cmd), $cmd);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Error sending SSH_CMSG_EXEC_CMD');
+ return false;
+ }
+
+ if (!$block) {
+ return true;
+ }
+
+ $output = '';
+ $response = $this->_get_binary_packet();
+
+ if ($response !== false) {
+ do {
+ $output.= substr($response[self::RESPONSE_DATA], 4);
+ $response = $this->_get_binary_packet();
+ } while (is_array($response) && $response[self::RESPONSE_TYPE] != NET_SSH1_SMSG_EXITSTATUS);
+ }
+
+ $data = pack('C', NET_SSH1_CMSG_EXIT_CONFIRMATION);
+
+ // i don't think it's really all that important if this packet gets sent or not.
+ $this->_send_binary_packet($data);
+
+ fclose($this->fsock);
+
+ // reset the execution bitmap - a new \phpseclib\Net\SSH1 object needs to be created.
+ $this->bitmap = 0;
+
+ return $output;
+ }
+
+ /**
+ * Creates an interactive shell
+ *
+ * @see self::interactiveRead()
+ * @see self::interactiveWrite()
+ * @return bool
+ * @access private
+ */
+ function _initShell()
+ {
+ // connect using the sample parameters in protocol-1.5.txt.
+ // according to wikipedia.org's entry on text terminals, "the fundamental type of application running on a text
+ // terminal is a command line interpreter or shell". thus, opening a terminal session to run the shell.
+ $data = pack('CNa*N4C', NET_SSH1_CMSG_REQUEST_PTY, strlen('vt100'), 'vt100', 24, 80, 0, 0, self::TTY_OP_END);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Error sending SSH_CMSG_REQUEST_PTY');
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+
+ if ($response === true) {
+ return false;
+ }
+ if ($response[self::RESPONSE_TYPE] != NET_SSH1_SMSG_SUCCESS) {
+ user_error('Expected SSH_SMSG_SUCCESS');
+ return false;
+ }
+
+ $data = pack('C', NET_SSH1_CMSG_EXEC_SHELL);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Error sending SSH_CMSG_EXEC_SHELL');
+ return false;
+ }
+
+ $this->bitmap |= self::MASK_SHELL;
+
+ //stream_set_blocking($this->fsock, 0);
+
+ return true;
+ }
+
+ /**
+ * Inputs a command into an interactive shell.
+ *
+ * @see self::interactiveWrite()
+ * @param string $cmd
+ * @return bool
+ * @access public
+ */
+ function write($cmd)
+ {
+ return $this->interactiveWrite($cmd);
+ }
+
+ /**
+ * Returns the output of an interactive shell when there's a match for $expect
+ *
+ * $expect can take the form of a string literal or, if $mode == self::READ__REGEX,
+ * a regular expression.
+ *
+ * @see self::write()
+ * @param string $expect
+ * @param int $mode
+ * @return bool
+ * @access public
+ */
+ function read($expect, $mode = self::READ__SIMPLE)
+ {
+ if (!($this->bitmap & self::MASK_LOGIN)) {
+ user_error('Operation disallowed prior to login()');
+ return false;
+ }
+
+ if (!($this->bitmap & self::MASK_SHELL) && !$this->_initShell()) {
+ user_error('Unable to initiate an interactive shell session');
+ return false;
+ }
+
+ $match = $expect;
+ while (true) {
+ if ($mode == self::READ__REGEX) {
+ preg_match($expect, $this->interactiveBuffer, $matches);
+ $match = isset($matches[0]) ? $matches[0] : '';
+ }
+ $pos = strlen($match) ? strpos($this->interactiveBuffer, $match) : false;
+ if ($pos !== false) {
+ return $this->_string_shift($this->interactiveBuffer, $pos + strlen($match));
+ }
+ $response = $this->_get_binary_packet();
+
+ if ($response === true) {
+ return $this->_string_shift($this->interactiveBuffer, strlen($this->interactiveBuffer));
+ }
+ $this->interactiveBuffer.= substr($response[self::RESPONSE_DATA], 4);
+ }
+ }
+
+ /**
+ * Inputs a command into an interactive shell.
+ *
+ * @see self::interactiveRead()
+ * @param string $cmd
+ * @return bool
+ * @access public
+ */
+ function interactiveWrite($cmd)
+ {
+ if (!($this->bitmap & self::MASK_LOGIN)) {
+ user_error('Operation disallowed prior to login()');
+ return false;
+ }
+
+ if (!($this->bitmap & self::MASK_SHELL) && !$this->_initShell()) {
+ user_error('Unable to initiate an interactive shell session');
+ return false;
+ }
+
+ $data = pack('CNa*', NET_SSH1_CMSG_STDIN_DATA, strlen($cmd), $cmd);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Error sending SSH_CMSG_STDIN');
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Returns the output of an interactive shell when no more output is available.
+ *
+ * Requires PHP 4.3.0 or later due to the use of the stream_select() function. If you see stuff like
+ * "^[[00m", you're seeing ANSI escape codes. According to
+ * {@link http://support.microsoft.com/kb/101875 How to Enable ANSI.SYS in a Command Window}, "Windows NT
+ * does not support ANSI escape sequences in Win32 Console applications", so if you're a Windows user,
+ * there's not going to be much recourse.
+ *
+ * @see self::interactiveRead()
+ * @return string
+ * @access public
+ */
+ function interactiveRead()
+ {
+ if (!($this->bitmap & self::MASK_LOGIN)) {
+ user_error('Operation disallowed prior to login()');
+ return false;
+ }
+
+ if (!($this->bitmap & self::MASK_SHELL) && !$this->_initShell()) {
+ user_error('Unable to initiate an interactive shell session');
+ return false;
+ }
+
+ $read = array($this->fsock);
+ $write = $except = null;
+ if (stream_select($read, $write, $except, 0)) {
+ $response = $this->_get_binary_packet();
+ return substr($response[self::RESPONSE_DATA], 4);
+ } else {
+ return '';
+ }
+ }
+
+ /**
+ * Disconnect
+ *
+ * @access public
+ */
+ function disconnect()
+ {
+ $this->_disconnect();
+ }
+
+ /**
+ * Destructor.
+ *
+ * Will be called, automatically, if you're supporting just PHP5. If you're supporting PHP4, you'll need to call
+ * disconnect().
+ *
+ * @access public
+ */
+ function __destruct()
+ {
+ $this->_disconnect();
+ }
+
+ /**
+ * Disconnect
+ *
+ * @param string $msg
+ * @access private
+ */
+ function _disconnect($msg = 'Client Quit')
+ {
+ if ($this->bitmap) {
+ $data = pack('C', NET_SSH1_CMSG_EOF);
+ $this->_send_binary_packet($data);
+ /*
+ $response = $this->_get_binary_packet();
+ if ($response === true) {
+ $response = array(self::RESPONSE_TYPE => -1);
+ }
+ switch ($response[self::RESPONSE_TYPE]) {
+ case NET_SSH1_SMSG_EXITSTATUS:
+ $data = pack('C', NET_SSH1_CMSG_EXIT_CONFIRMATION);
+ break;
+ default:
+ $data = pack('CNa*', NET_SSH1_MSG_DISCONNECT, strlen($msg), $msg);
+ }
+ */
+ $data = pack('CNa*', NET_SSH1_MSG_DISCONNECT, strlen($msg), $msg);
+
+ $this->_send_binary_packet($data);
+ fclose($this->fsock);
+ $this->bitmap = 0;
+ }
+ }
+
+ /**
+ * Gets Binary Packets
+ *
+ * See 'The Binary Packet Protocol' of protocol-1.5.txt for more info.
+ *
+ * Also, this function could be improved upon by adding detection for the following exploit:
+ * http://www.securiteam.com/securitynews/5LP042K3FY.html
+ *
+ * @see self::_send_binary_packet()
+ * @return array
+ * @access private
+ */
+ function _get_binary_packet()
+ {
+ if (feof($this->fsock)) {
+ //user_error('connection closed prematurely');
+ return false;
+ }
+
+ if ($this->curTimeout) {
+ $read = array($this->fsock);
+ $write = $except = null;
+
+ $start = strtok(microtime(), ' ') + strtok(''); // http://php.net/microtime#61838
+ $sec = floor($this->curTimeout);
+ $usec = 1000000 * ($this->curTimeout - $sec);
+ // on windows this returns a "Warning: Invalid CRT parameters detected" error
+ if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
+ //$this->_disconnect('Timeout');
+ return true;
+ }
+ $elapsed = strtok(microtime(), ' ') + strtok('') - $start;
+ $this->curTimeout-= $elapsed;
+ }
+
+ $start = strtok(microtime(), ' ') + strtok(''); // http://php.net/microtime#61838
+ $data = fread($this->fsock, 4);
+ if (strlen($data) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $data);
+
+ $padding_length = 8 - ($temp['length'] & 7);
+ $length = $temp['length'] + $padding_length;
+ $raw = '';
+
+ while ($length > 0) {
+ $temp = fread($this->fsock, $length);
+ $raw.= $temp;
+ $length-= strlen($temp);
+ }
+ $stop = strtok(microtime(), ' ') + strtok('');
+
+ if (strlen($raw) && $this->crypto !== false) {
+ $raw = $this->crypto->decrypt($raw);
+ }
+
+ $padding = substr($raw, 0, $padding_length);
+ $type = $raw[$padding_length];
+ $data = substr($raw, $padding_length + 1, -4);
+
+ if (strlen($raw) < 4) {
+ return false;
+ }
+ $temp = unpack('Ncrc', substr($raw, -4));
+
+ //if ( $temp['crc'] != $this->_crc($padding . $type . $data) ) {
+ // user_error('Bad CRC in packet from server');
+ // return false;
+ //}
+
+ $type = ord($type);
+
+ if (defined('NET_SSH1_LOGGING')) {
+ $temp = isset($this->protocol_flags[$type]) ? $this->protocol_flags[$type] : 'UNKNOWN';
+ $temp = '<- ' . $temp .
+ ' (' . round($stop - $start, 4) . 's)';
+ $this->_append_log($temp, $data);
+ }
+
+ return array(
+ self::RESPONSE_TYPE => $type,
+ self::RESPONSE_DATA => $data
+ );
+ }
+
+ /**
+ * Sends Binary Packets
+ *
+ * Returns true on success, false on failure.
+ *
+ * @see self::_get_binary_packet()
+ * @param string $data
+ * @return bool
+ * @access private
+ */
+ function _send_binary_packet($data)
+ {
+ if (feof($this->fsock)) {
+ //user_error('connection closed prematurely');
+ return false;
+ }
+
+ $length = strlen($data) + 4;
+
+ $padding = Random::string(8 - ($length & 7));
+
+ $orig = $data;
+ $data = $padding . $data;
+ $data.= pack('N', $this->_crc($data));
+
+ if ($this->crypto !== false) {
+ $data = $this->crypto->encrypt($data);
+ }
+
+ $packet = pack('Na*', $length, $data);
+
+ $start = strtok(microtime(), ' ') + strtok(''); // http://php.net/microtime#61838
+ $result = strlen($packet) == fputs($this->fsock, $packet);
+ $stop = strtok(microtime(), ' ') + strtok('');
+
+ if (defined('NET_SSH1_LOGGING')) {
+ $temp = isset($this->protocol_flags[ord($orig[0])]) ? $this->protocol_flags[ord($orig[0])] : 'UNKNOWN';
+ $temp = '-> ' . $temp .
+ ' (' . round($stop - $start, 4) . 's)';
+ $this->_append_log($temp, $orig);
+ }
+
+ return $result;
+ }
+
+ /**
+ * Cyclic Redundancy Check (CRC)
+ *
+ * PHP's crc32 function is implemented slightly differently than the one that SSH v1 uses, so
+ * we've reimplemented it. A more detailed discussion of the differences can be found after
+ * $crc_lookup_table's initialization.
+ *
+ * @see self::_get_binary_packet()
+ * @see self::_send_binary_packet()
+ * @param string $data
+ * @return int
+ * @access private
+ */
+ function _crc($data)
+ {
+ static $crc_lookup_table = array(
+ 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA,
+ 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
+ 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988,
+ 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91,
+ 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE,
+ 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7,
+ 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
+ 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5,
+ 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172,
+ 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B,
+ 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940,
+ 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59,
+ 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116,
+ 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F,
+ 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924,
+ 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D,
+ 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A,
+ 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433,
+ 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818,
+ 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01,
+ 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E,
+ 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457,
+ 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C,
+ 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65,
+ 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2,
+ 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB,
+ 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0,
+ 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9,
+ 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086,
+ 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F,
+ 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4,
+ 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD,
+ 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A,
+ 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683,
+ 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8,
+ 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1,
+ 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE,
+ 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7,
+ 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC,
+ 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5,
+ 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252,
+ 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B,
+ 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60,
+ 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79,
+ 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236,
+ 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F,
+ 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04,
+ 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D,
+ 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A,
+ 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713,
+ 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38,
+ 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21,
+ 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E,
+ 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777,
+ 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C,
+ 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45,
+ 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2,
+ 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB,
+ 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0,
+ 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9,
+ 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6,
+ 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF,
+ 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94,
+ 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D
+ );
+
+ // For this function to yield the same output as PHP's crc32 function, $crc would have to be
+ // set to 0xFFFFFFFF, initially - not 0x00000000 as it currently is.
+ $crc = 0x00000000;
+ $length = strlen($data);
+
+ for ($i=0; $i<$length; $i++) {
+ // We AND $crc >> 8 with 0x00FFFFFF because we want the eight newly added bits to all
+ // be zero. PHP, unfortunately, doesn't always do this. 0x80000000 >> 8, as an example,
+ // yields 0xFF800000 - not 0x00800000. The following link elaborates:
+ // http://www.php.net/manual/en/language.operators.bitwise.php#57281
+ $crc = (($crc >> 8) & 0x00FFFFFF) ^ $crc_lookup_table[($crc & 0xFF) ^ ord($data[$i])];
+ }
+
+ // In addition to having to set $crc to 0xFFFFFFFF, initially, the return value must be XOR'd with
+ // 0xFFFFFFFF for this function to return the same thing that PHP's crc32 function would.
+ return $crc;
+ }
+
+ /**
+ * String Shift
+ *
+ * Inspired by array_shift
+ *
+ * @param string $string
+ * @param int $index
+ * @return string
+ * @access private
+ */
+ function _string_shift(&$string, $index = 1)
+ {
+ $substr = substr($string, 0, $index);
+ $string = substr($string, $index);
+ return $substr;
+ }
+
+ /**
+ * RSA Encrypt
+ *
+ * Returns mod(pow($m, $e), $n), where $n should be the product of two (large) primes $p and $q and where $e
+ * should be a number with the property that gcd($e, ($p - 1) * ($q - 1)) == 1. Could just make anything that
+ * calls this call modexp, instead, but I think this makes things clearer, maybe...
+ *
+ * @see self::__construct()
+ * @param BigInteger $m
+ * @param array $key
+ * @return BigInteger
+ * @access private
+ */
+ function _rsa_crypt($m, $key)
+ {
+ /*
+ $rsa = new RSA();
+ $rsa->loadKey($key, RSA::PUBLIC_FORMAT_RAW);
+ $rsa->setEncryptionMode(RSA::ENCRYPTION_PKCS1);
+ return $rsa->encrypt($m);
+ */
+
+ // To quote from protocol-1.5.txt:
+ // The most significant byte (which is only partial as the value must be
+ // less than the public modulus, which is never a power of two) is zero.
+ //
+ // The next byte contains the value 2 (which stands for public-key
+ // encrypted data in the PKCS standard [PKCS#1]). Then, there are non-
+ // zero random bytes to fill any unused space, a zero byte, and the data
+ // to be encrypted in the least significant bytes, the last byte of the
+ // data in the least significant byte.
+
+ // Presumably the part of PKCS#1 they're refering to is "Section 7.2.1 Encryption Operation",
+ // under "7.2 RSAES-PKCS1-v1.5" and "7 Encryption schemes" of the following URL:
+ // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf
+ $modulus = $key[1]->toBytes();
+ $length = strlen($modulus) - strlen($m) - 3;
+ $random = '';
+ while (strlen($random) != $length) {
+ $block = Random::string($length - strlen($random));
+ $block = str_replace("\x00", '', $block);
+ $random.= $block;
+ }
+ $temp = chr(0) . chr(2) . $random . chr(0) . $m;
+
+ $m = new BigInteger($temp, 256);
+ $m = $m->modPow($key[0], $key[1]);
+
+ return $m->toBytes();
+ }
+
+ /**
+ * Define Array
+ *
+ * Takes any number of arrays whose indices are integers and whose values are strings and defines a bunch of
+ * named constants from it, using the value as the name of the constant and the index as the value of the constant.
+ * If any of the constants that would be defined already exists, none of the constants will be defined.
+ *
+ * @param array $array
+ * @access private
+ */
+ function _define_array()
+ {
+ $args = func_get_args();
+ foreach ($args as $arg) {
+ foreach ($arg as $key => $value) {
+ if (!defined($value)) {
+ define($value, $key);
+ } else {
+ break 2;
+ }
+ }
+ }
+ }
+
+ /**
+ * Returns a log of the packets that have been sent and received.
+ *
+ * Returns a string if NET_SSH1_LOGGING == self::LOG_COMPLEX, an array if NET_SSH1_LOGGING == self::LOG_SIMPLE and false if !defined('NET_SSH1_LOGGING')
+ *
+ * @access public
+ * @return array|false|string
+ */
+ function getLog()
+ {
+ if (!defined('NET_SSH1_LOGGING')) {
+ return false;
+ }
+
+ switch (NET_SSH1_LOGGING) {
+ case self::LOG_SIMPLE:
+ return $this->message_number_log;
+ break;
+ case self::LOG_COMPLEX:
+ return $this->_format_log($this->message_log, $this->protocol_flags_log);
+ break;
+ default:
+ return false;
+ }
+ }
+
+ /**
+ * Formats a log for printing
+ *
+ * @param array $message_log
+ * @param array $message_number_log
+ * @access private
+ * @return string
+ */
+ function _format_log($message_log, $message_number_log)
+ {
+ $output = '';
+ for ($i = 0; $i < count($message_log); $i++) {
+ $output.= $message_number_log[$i] . "\r\n";
+ $current_log = $message_log[$i];
+ $j = 0;
+ do {
+ if (strlen($current_log)) {
+ $output.= str_pad(dechex($j), 7, '0', STR_PAD_LEFT) . '0 ';
+ }
+ $fragment = $this->_string_shift($current_log, $this->log_short_width);
+ $hex = substr(preg_replace_callback('#.#s', array($this, '_format_log_helper'), $fragment), strlen($this->log_boundary));
+ // replace non ASCII printable characters with dots
+ // http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters
+ // also replace < with a . since < messes up the output on web browsers
+ $raw = preg_replace('#[^\x20-\x7E]|<#', '.', $fragment);
+ $output.= str_pad($hex, $this->log_long_width - $this->log_short_width, ' ') . $raw . "\r\n";
+ $j++;
+ } while (strlen($current_log));
+ $output.= "\r\n";
+ }
+
+ return $output;
+ }
+
+ /**
+ * Helper function for _format_log
+ *
+ * For use with preg_replace_callback()
+ *
+ * @param array $matches
+ * @access private
+ * @return string
+ */
+ function _format_log_helper($matches)
+ {
+ return $this->log_boundary . str_pad(dechex(ord($matches[0])), 2, '0', STR_PAD_LEFT);
+ }
+
+ /**
+ * Return the server key public exponent
+ *
+ * Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
+ * the raw bytes. This behavior is similar to PHP's md5() function.
+ *
+ * @param bool $raw_output
+ * @return string
+ * @access public
+ */
+ function getServerKeyPublicExponent($raw_output = false)
+ {
+ return $raw_output ? $this->server_key_public_exponent->toBytes() : $this->server_key_public_exponent->toString();
+ }
+
+ /**
+ * Return the server key public modulus
+ *
+ * Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
+ * the raw bytes. This behavior is similar to PHP's md5() function.
+ *
+ * @param bool $raw_output
+ * @return string
+ * @access public
+ */
+ function getServerKeyPublicModulus($raw_output = false)
+ {
+ return $raw_output ? $this->server_key_public_modulus->toBytes() : $this->server_key_public_modulus->toString();
+ }
+
+ /**
+ * Return the host key public exponent
+ *
+ * Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
+ * the raw bytes. This behavior is similar to PHP's md5() function.
+ *
+ * @param bool $raw_output
+ * @return string
+ * @access public
+ */
+ function getHostKeyPublicExponent($raw_output = false)
+ {
+ return $raw_output ? $this->host_key_public_exponent->toBytes() : $this->host_key_public_exponent->toString();
+ }
+
+ /**
+ * Return the host key public modulus
+ *
+ * Returns, by default, the base-10 representation. If $raw_output is set to true, returns, instead,
+ * the raw bytes. This behavior is similar to PHP's md5() function.
+ *
+ * @param bool $raw_output
+ * @return string
+ * @access public
+ */
+ function getHostKeyPublicModulus($raw_output = false)
+ {
+ return $raw_output ? $this->host_key_public_modulus->toBytes() : $this->host_key_public_modulus->toString();
+ }
+
+ /**
+ * Return a list of ciphers supported by SSH1 server.
+ *
+ * Just because a cipher is supported by an SSH1 server doesn't mean it's supported by this library. If $raw_output
+ * is set to true, returns, instead, an array of constants. ie. instead of array('Triple-DES in CBC mode'), you'll
+ * get array(self::CIPHER_3DES).
+ *
+ * @param bool $raw_output
+ * @return array
+ * @access public
+ */
+ function getSupportedCiphers($raw_output = false)
+ {
+ return $raw_output ? array_keys($this->supported_ciphers) : array_values($this->supported_ciphers);
+ }
+
+ /**
+ * Return a list of authentications supported by SSH1 server.
+ *
+ * Just because a cipher is supported by an SSH1 server doesn't mean it's supported by this library. If $raw_output
+ * is set to true, returns, instead, an array of constants. ie. instead of array('password authentication'), you'll
+ * get array(self::AUTH_PASSWORD).
+ *
+ * @param bool $raw_output
+ * @return array
+ * @access public
+ */
+ function getSupportedAuthentications($raw_output = false)
+ {
+ return $raw_output ? array_keys($this->supported_authentications) : array_values($this->supported_authentications);
+ }
+
+ /**
+ * Return the server identification.
+ *
+ * @return string
+ * @access public
+ */
+ function getServerIdentification()
+ {
+ return rtrim($this->server_identification);
+ }
+
+ /**
+ * Logs data packets
+ *
+ * Makes sure that only the last 1MB worth of packets will be logged
+ *
+ * @param string $data
+ * @access private
+ */
+ function _append_log($protocol_flags, $message)
+ {
+ switch (NET_SSH1_LOGGING) {
+ // useful for benchmarks
+ case self::LOG_SIMPLE:
+ $this->protocol_flags_log[] = $protocol_flags;
+ break;
+ // the most useful log for SSH1
+ case self::LOG_COMPLEX:
+ $this->protocol_flags_log[] = $protocol_flags;
+ $this->_string_shift($message);
+ $this->log_size+= strlen($message);
+ $this->message_log[] = $message;
+ while ($this->log_size > self::LOG_MAX_SIZE) {
+ $this->log_size-= strlen(array_shift($this->message_log));
+ array_shift($this->protocol_flags_log);
+ }
+ break;
+ // dump the output out realtime; packets may be interspersed with non packets,
+ // passwords won't be filtered out and select other packets may not be correctly
+ // identified
+ case self::LOG_REALTIME:
+ echo "<pre>\r\n" . $this->_format_log(array($message), array($protocol_flags)) . "\r\n</pre>\r\n";
+ @flush();
+ @ob_flush();
+ break;
+ // basically the same thing as self::LOG_REALTIME with the caveat that self::LOG_REALTIME_FILE
+ // needs to be defined and that the resultant log file will be capped out at self::LOG_MAX_SIZE.
+ // the earliest part of the log file is denoted by the first <<< START >>> and is not going to necessarily
+ // at the beginning of the file
+ case self::LOG_REALTIME_FILE:
+ if (!isset($this->realtime_log_file)) {
+ // PHP doesn't seem to like using constants in fopen()
+ $filename = self::LOG_REALTIME_FILE;
+ $fp = fopen($filename, 'w');
+ $this->realtime_log_file = $fp;
+ }
+ if (!is_resource($this->realtime_log_file)) {
+ break;
+ }
+ $entry = $this->_format_log(array($message), array($protocol_flags));
+ if ($this->realtime_log_wrap) {
+ $temp = "<<< START >>>\r\n";
+ $entry.= $temp;
+ fseek($this->realtime_log_file, ftell($this->realtime_log_file) - strlen($temp));
+ }
+ $this->realtime_log_size+= strlen($entry);
+ if ($this->realtime_log_size > self::LOG_MAX_SIZE) {
+ fseek($this->realtime_log_file, 0);
+ $this->realtime_log_size = strlen($entry);
+ $this->realtime_log_wrap = true;
+ }
+ fputs($this->realtime_log_file, $entry);
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH2.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH2.php
new file mode 100644
index 00000000..937c38cc
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/Net/SSH2.php
@@ -0,0 +1,4397 @@
+<?php
+
+/**
+ * Pure-PHP implementation of SSHv2.
+ *
+ * PHP version 5
+ *
+ * Here are some examples of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $ssh = new \phpseclib\Net\SSH2('www.domain.tld');
+ * if (!$ssh->login('username', 'password')) {
+ * exit('Login Failed');
+ * }
+ *
+ * echo $ssh->exec('pwd');
+ * echo $ssh->exec('ls -la');
+ * ?>
+ * </code>
+ *
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $key = new \phpseclib\Crypt\RSA();
+ * //$key->setPassword('whatever');
+ * $key->loadKey(file_get_contents('privatekey'));
+ *
+ * $ssh = new \phpseclib\Net\SSH2('www.domain.tld');
+ * if (!$ssh->login('username', $key)) {
+ * exit('Login Failed');
+ * }
+ *
+ * echo $ssh->read('username@username:~$');
+ * $ssh->write("ls -la\n");
+ * echo $ssh->read('username@username:~$');
+ * ?>
+ * </code>
+ *
+ * @category Net
+ * @package SSH2
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2007 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ */
+
+namespace phpseclib\Net;
+
+use phpseclib\Crypt\Base;
+use phpseclib\Crypt\Blowfish;
+use phpseclib\Crypt\Hash;
+use phpseclib\Crypt\Random;
+use phpseclib\Crypt\RC4;
+use phpseclib\Crypt\Rijndael;
+use phpseclib\Crypt\RSA;
+use phpseclib\Crypt\TripleDES;
+use phpseclib\Crypt\Twofish;
+use phpseclib\Math\BigInteger; // Used to do Diffie-Hellman key exchange and DSA/RSA signature verification.
+use phpseclib\System\SSH\Agent;
+
+/**
+ * Pure-PHP implementation of SSHv2.
+ *
+ * @package SSH2
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access public
+ */
+class SSH2
+{
+ /**#@+
+ * Execution Bitmap Masks
+ *
+ * @see \phpseclib\Net\SSH2::bitmap
+ * @access private
+ */
+ const MASK_CONSTRUCTOR = 0x00000001;
+ const MASK_CONNECTED = 0x00000002;
+ const MASK_LOGIN_REQ = 0x00000004;
+ const MASK_LOGIN = 0x00000008;
+ const MASK_SHELL = 0x00000010;
+ const MASK_WINDOW_ADJUST = 0x00000020;
+ /**#@-*/
+
+ /**#@+
+ * Channel constants
+ *
+ * RFC4254 refers not to client and server channels but rather to sender and recipient channels. we don't refer
+ * to them in that way because RFC4254 toggles the meaning. the client sends a SSH_MSG_CHANNEL_OPEN message with
+ * a sender channel and the server sends a SSH_MSG_CHANNEL_OPEN_CONFIRMATION in response, with a sender and a
+ * recepient channel. at first glance, you might conclude that SSH_MSG_CHANNEL_OPEN_CONFIRMATION's sender channel
+ * would be the same thing as SSH_MSG_CHANNEL_OPEN's sender channel, but it's not, per this snipet:
+ * The 'recipient channel' is the channel number given in the original
+ * open request, and 'sender channel' is the channel number allocated by
+ * the other side.
+ *
+ * @see \phpseclib\Net\SSH2::_send_channel_packet()
+ * @see \phpseclib\Net\SSH2::_get_channel_packet()
+ * @access private
+ */
+ const CHANNEL_EXEC = 0; // PuTTy uses 0x100
+ const CHANNEL_SHELL = 1;
+ const CHANNEL_SUBSYSTEM = 2;
+ const CHANNEL_AGENT_FORWARD = 3;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\Net\SSH2::getLog()
+ */
+ /**
+ * Returns the message numbers
+ */
+ const LOG_SIMPLE = 1;
+ /**
+ * Returns the message content
+ */
+ const LOG_COMPLEX = 2;
+ /**
+ * Outputs the content real-time
+ */
+ const LOG_REALTIME = 3;
+ /**
+ * Dumps the content real-time to a file
+ */
+ const LOG_REALTIME_FILE = 4;
+ /**#@-*/
+
+ /**#@+
+ * @access public
+ * @see \phpseclib\Net\SSH2::read()
+ */
+ /**
+ * Returns when a string matching $expect exactly is found
+ */
+ const READ_SIMPLE = 1;
+ /**
+ * Returns when a string matching the regular expression $expect is found
+ */
+ const READ_REGEX = 2;
+ /**
+ * Make sure that the log never gets larger than this
+ */
+ const LOG_MAX_SIZE = 1048576; // 1024 * 1024
+ /**#@-*/
+
+ /**
+ * The SSH identifier
+ *
+ * @var string
+ * @access private
+ */
+ var $identifier;
+
+ /**
+ * The Socket Object
+ *
+ * @var object
+ * @access private
+ */
+ var $fsock;
+
+ /**
+ * Execution Bitmap
+ *
+ * The bits that are set represent functions that have been called already. This is used to determine
+ * if a requisite function has been successfully executed. If not, an error should be thrown.
+ *
+ * @var int
+ * @access private
+ */
+ var $bitmap = 0;
+
+ /**
+ * Error information
+ *
+ * @see self::getErrors()
+ * @see self::getLastError()
+ * @var string
+ * @access private
+ */
+ var $errors = array();
+
+ /**
+ * Server Identifier
+ *
+ * @see self::getServerIdentification()
+ * @var array|false
+ * @access private
+ */
+ var $server_identifier = false;
+
+ /**
+ * Key Exchange Algorithms
+ *
+ * @see self::getKexAlgorithims()
+ * @var array|false
+ * @access private
+ */
+ var $kex_algorithms = false;
+
+ /**
+ * Minimum Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
+ *
+ * @see self::_key_exchange()
+ * @var int
+ * @access private
+ */
+ var $kex_dh_group_size_min = 1536;
+
+ /**
+ * Preferred Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
+ *
+ * @see self::_key_exchange()
+ * @var int
+ * @access private
+ */
+ var $kex_dh_group_size_preferred = 2048;
+
+ /**
+ * Maximum Diffie-Hellman Group Bit Size in RFC 4419 Key Exchange Methods
+ *
+ * @see self::_key_exchange()
+ * @var int
+ * @access private
+ */
+ var $kex_dh_group_size_max = 4096;
+
+ /**
+ * Server Host Key Algorithms
+ *
+ * @see self::getServerHostKeyAlgorithms()
+ * @var array|false
+ * @access private
+ */
+ var $server_host_key_algorithms = false;
+
+ /**
+ * Encryption Algorithms: Client to Server
+ *
+ * @see self::getEncryptionAlgorithmsClient2Server()
+ * @var array|false
+ * @access private
+ */
+ var $encryption_algorithms_client_to_server = false;
+
+ /**
+ * Encryption Algorithms: Server to Client
+ *
+ * @see self::getEncryptionAlgorithmsServer2Client()
+ * @var array|false
+ * @access private
+ */
+ var $encryption_algorithms_server_to_client = false;
+
+ /**
+ * MAC Algorithms: Client to Server
+ *
+ * @see self::getMACAlgorithmsClient2Server()
+ * @var array|false
+ * @access private
+ */
+ var $mac_algorithms_client_to_server = false;
+
+ /**
+ * MAC Algorithms: Server to Client
+ *
+ * @see self::getMACAlgorithmsServer2Client()
+ * @var array|false
+ * @access private
+ */
+ var $mac_algorithms_server_to_client = false;
+
+ /**
+ * Compression Algorithms: Client to Server
+ *
+ * @see self::getCompressionAlgorithmsClient2Server()
+ * @var array|false
+ * @access private
+ */
+ var $compression_algorithms_client_to_server = false;
+
+ /**
+ * Compression Algorithms: Server to Client
+ *
+ * @see self::getCompressionAlgorithmsServer2Client()
+ * @var array|false
+ * @access private
+ */
+ var $compression_algorithms_server_to_client = false;
+
+ /**
+ * Languages: Server to Client
+ *
+ * @see self::getLanguagesServer2Client()
+ * @var array|false
+ * @access private
+ */
+ var $languages_server_to_client = false;
+
+ /**
+ * Languages: Client to Server
+ *
+ * @see self::getLanguagesClient2Server()
+ * @var array|false
+ * @access private
+ */
+ var $languages_client_to_server = false;
+
+ /**
+ * Block Size for Server to Client Encryption
+ *
+ * "Note that the length of the concatenation of 'packet_length',
+ * 'padding_length', 'payload', and 'random padding' MUST be a multiple
+ * of the cipher block size or 8, whichever is larger. This constraint
+ * MUST be enforced, even when using stream ciphers."
+ *
+ * -- http://tools.ietf.org/html/rfc4253#section-6
+ *
+ * @see self::__construct()
+ * @see self::_send_binary_packet()
+ * @var int
+ * @access private
+ */
+ var $encrypt_block_size = 8;
+
+ /**
+ * Block Size for Client to Server Encryption
+ *
+ * @see self::__construct()
+ * @see self::_get_binary_packet()
+ * @var int
+ * @access private
+ */
+ var $decrypt_block_size = 8;
+
+ /**
+ * Server to Client Encryption Object
+ *
+ * @see self::_get_binary_packet()
+ * @var object
+ * @access private
+ */
+ var $decrypt = false;
+
+ /**
+ * Client to Server Encryption Object
+ *
+ * @see self::_send_binary_packet()
+ * @var object
+ * @access private
+ */
+ var $encrypt = false;
+
+ /**
+ * Client to Server HMAC Object
+ *
+ * @see self::_send_binary_packet()
+ * @var object
+ * @access private
+ */
+ var $hmac_create = false;
+
+ /**
+ * Server to Client HMAC Object
+ *
+ * @see self::_get_binary_packet()
+ * @var object
+ * @access private
+ */
+ var $hmac_check = false;
+
+ /**
+ * Size of server to client HMAC
+ *
+ * We need to know how big the HMAC will be for the server to client direction so that we know how many bytes to read.
+ * For the client to server side, the HMAC object will make the HMAC as long as it needs to be. All we need to do is
+ * append it.
+ *
+ * @see self::_get_binary_packet()
+ * @var int
+ * @access private
+ */
+ var $hmac_size = false;
+
+ /**
+ * Server Public Host Key
+ *
+ * @see self::getServerPublicHostKey()
+ * @var string
+ * @access private
+ */
+ var $server_public_host_key;
+
+ /**
+ * Session identifier
+ *
+ * "The exchange hash H from the first key exchange is additionally
+ * used as the session identifier, which is a unique identifier for
+ * this connection."
+ *
+ * -- http://tools.ietf.org/html/rfc4253#section-7.2
+ *
+ * @see self::_key_exchange()
+ * @var string
+ * @access private
+ */
+ var $session_id = false;
+
+ /**
+ * Exchange hash
+ *
+ * The current exchange hash
+ *
+ * @see self::_key_exchange()
+ * @var string
+ * @access private
+ */
+ var $exchange_hash = false;
+
+ /**
+ * Message Numbers
+ *
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $message_numbers = array();
+
+ /**
+ * Disconnection Message 'reason codes' defined in RFC4253
+ *
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $disconnect_reasons = array();
+
+ /**
+ * SSH_MSG_CHANNEL_OPEN_FAILURE 'reason codes', defined in RFC4254
+ *
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $channel_open_failure_reasons = array();
+
+ /**
+ * Terminal Modes
+ *
+ * @link http://tools.ietf.org/html/rfc4254#section-8
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $terminal_modes = array();
+
+ /**
+ * SSH_MSG_CHANNEL_EXTENDED_DATA's data_type_codes
+ *
+ * @link http://tools.ietf.org/html/rfc4254#section-5.2
+ * @see self::__construct()
+ * @var array
+ * @access private
+ */
+ var $channel_extended_data_type_codes = array();
+
+ /**
+ * Send Sequence Number
+ *
+ * See 'Section 6.4. Data Integrity' of rfc4253 for more info.
+ *
+ * @see self::_send_binary_packet()
+ * @var int
+ * @access private
+ */
+ var $send_seq_no = 0;
+
+ /**
+ * Get Sequence Number
+ *
+ * See 'Section 6.4. Data Integrity' of rfc4253 for more info.
+ *
+ * @see self::_get_binary_packet()
+ * @var int
+ * @access private
+ */
+ var $get_seq_no = 0;
+
+ /**
+ * Server Channels
+ *
+ * Maps client channels to server channels
+ *
+ * @see self::_get_channel_packet()
+ * @see self::exec()
+ * @var array
+ * @access private
+ */
+ var $server_channels = array();
+
+ /**
+ * Channel Buffers
+ *
+ * If a client requests a packet from one channel but receives two packets from another those packets should
+ * be placed in a buffer
+ *
+ * @see self::_get_channel_packet()
+ * @see self::exec()
+ * @var array
+ * @access private
+ */
+ var $channel_buffers = array();
+
+ /**
+ * Channel Status
+ *
+ * Contains the type of the last sent message
+ *
+ * @see self::_get_channel_packet()
+ * @var array
+ * @access private
+ */
+ var $channel_status = array();
+
+ /**
+ * Packet Size
+ *
+ * Maximum packet size indexed by channel
+ *
+ * @see self::_send_channel_packet()
+ * @var array
+ * @access private
+ */
+ var $packet_size_client_to_server = array();
+
+ /**
+ * Message Number Log
+ *
+ * @see self::getLog()
+ * @var array
+ * @access private
+ */
+ var $message_number_log = array();
+
+ /**
+ * Message Log
+ *
+ * @see self::getLog()
+ * @var array
+ * @access private
+ */
+ var $message_log = array();
+
+ /**
+ * The Window Size
+ *
+ * Bytes the other party can send before it must wait for the window to be adjusted (0x7FFFFFFF = 2GB)
+ *
+ * @var int
+ * @see self::_send_channel_packet()
+ * @see self::exec()
+ * @access private
+ */
+ var $window_size = 0x7FFFFFFF;
+
+ /**
+ * Window size, server to client
+ *
+ * Window size indexed by channel
+ *
+ * @see self::_send_channel_packet()
+ * @var array
+ * @access private
+ */
+ var $window_size_server_to_client = array();
+
+ /**
+ * Window size, client to server
+ *
+ * Window size indexed by channel
+ *
+ * @see self::_get_channel_packet()
+ * @var array
+ * @access private
+ */
+ var $window_size_client_to_server = array();
+
+ /**
+ * Server signature
+ *
+ * Verified against $this->session_id
+ *
+ * @see self::getServerPublicHostKey()
+ * @var string
+ * @access private
+ */
+ var $signature = '';
+
+ /**
+ * Server signature format
+ *
+ * ssh-rsa or ssh-dss.
+ *
+ * @see self::getServerPublicHostKey()
+ * @var string
+ * @access private
+ */
+ var $signature_format = '';
+
+ /**
+ * Interactive Buffer
+ *
+ * @see self::read()
+ * @var array
+ * @access private
+ */
+ var $interactiveBuffer = '';
+
+ /**
+ * Current log size
+ *
+ * Should never exceed self::LOG_MAX_SIZE
+ *
+ * @see self::_send_binary_packet()
+ * @see self::_get_binary_packet()
+ * @var int
+ * @access private
+ */
+ var $log_size;
+
+ /**
+ * Timeout
+ *
+ * @see self::setTimeout()
+ * @access private
+ */
+ var $timeout;
+
+ /**
+ * Current Timeout
+ *
+ * @see self::_get_channel_packet()
+ * @access private
+ */
+ var $curTimeout;
+
+ /**
+ * Real-time log file pointer
+ *
+ * @see self::_append_log()
+ * @var resource
+ * @access private
+ */
+ var $realtime_log_file;
+
+ /**
+ * Real-time log file size
+ *
+ * @see self::_append_log()
+ * @var int
+ * @access private
+ */
+ var $realtime_log_size;
+
+ /**
+ * Has the signature been validated?
+ *
+ * @see self::getServerPublicHostKey()
+ * @var bool
+ * @access private
+ */
+ var $signature_validated = false;
+
+ /**
+ * Real-time log file wrap boolean
+ *
+ * @see self::_append_log()
+ * @access private
+ */
+ var $realtime_log_wrap;
+
+ /**
+ * Flag to suppress stderr from output
+ *
+ * @see self::enableQuietMode()
+ * @access private
+ */
+ var $quiet_mode = false;
+
+ /**
+ * Time of first network activity
+ *
+ * @var int
+ * @access private
+ */
+ var $last_packet;
+
+ /**
+ * Exit status returned from ssh if any
+ *
+ * @var int
+ * @access private
+ */
+ var $exit_status;
+
+ /**
+ * Flag to request a PTY when using exec()
+ *
+ * @var bool
+ * @see self::enablePTY()
+ * @access private
+ */
+ var $request_pty = false;
+
+ /**
+ * Flag set while exec() is running when using enablePTY()
+ *
+ * @var bool
+ * @access private
+ */
+ var $in_request_pty_exec = false;
+
+ /**
+ * Flag set after startSubsystem() is called
+ *
+ * @var bool
+ * @access private
+ */
+ var $in_subsystem;
+
+ /**
+ * Contents of stdError
+ *
+ * @var string
+ * @access private
+ */
+ var $stdErrorLog;
+
+ /**
+ * The Last Interactive Response
+ *
+ * @see self::_keyboard_interactive_process()
+ * @var string
+ * @access private
+ */
+ var $last_interactive_response = '';
+
+ /**
+ * Keyboard Interactive Request / Responses
+ *
+ * @see self::_keyboard_interactive_process()
+ * @var array
+ * @access private
+ */
+ var $keyboard_requests_responses = array();
+
+ /**
+ * Banner Message
+ *
+ * Quoting from the RFC, "in some jurisdictions, sending a warning message before
+ * authentication may be relevant for getting legal protection."
+ *
+ * @see self::_filter()
+ * @see self::getBannerMessage()
+ * @var string
+ * @access private
+ */
+ var $banner_message = '';
+
+ /**
+ * Did read() timeout or return normally?
+ *
+ * @see self::isTimeout()
+ * @var bool
+ * @access private
+ */
+ var $is_timeout = false;
+
+ /**
+ * Log Boundary
+ *
+ * @see self::_format_log()
+ * @var string
+ * @access private
+ */
+ var $log_boundary = ':';
+
+ /**
+ * Log Long Width
+ *
+ * @see self::_format_log()
+ * @var int
+ * @access private
+ */
+ var $log_long_width = 65;
+
+ /**
+ * Log Short Width
+ *
+ * @see self::_format_log()
+ * @var int
+ * @access private
+ */
+ var $log_short_width = 16;
+
+ /**
+ * Hostname
+ *
+ * @see self::__construct()
+ * @see self::_connect()
+ * @var string
+ * @access private
+ */
+ var $host;
+
+ /**
+ * Port Number
+ *
+ * @see self::__construct()
+ * @see self::_connect()
+ * @var int
+ * @access private
+ */
+ var $port;
+
+ /**
+ * Number of columns for terminal window size
+ *
+ * @see self::getWindowColumns()
+ * @see self::setWindowColumns()
+ * @see self::setWindowSize()
+ * @var int
+ * @access private
+ */
+ var $windowColumns = 80;
+
+ /**
+ * Number of columns for terminal window size
+ *
+ * @see self::getWindowRows()
+ * @see self::setWindowRows()
+ * @see self::setWindowSize()
+ * @var int
+ * @access private
+ */
+ var $windowRows = 24;
+
+ /**
+ * Crypto Engine
+ *
+ * @see self::setCryptoEngine()
+ * @see self::_key_exchange()
+ * @var int
+ * @access private
+ */
+ var $crypto_engine = false;
+
+ /**
+ * A System_SSH_Agent for use in the SSH2 Agent Forwarding scenario
+ *
+ * @var System_SSH_Agent
+ * @access private
+ */
+ var $agent;
+
+ /**
+ * Default Constructor.
+ *
+ * $host can either be a string, representing the host, or a stream resource.
+ *
+ * @param mixed $host
+ * @param int $port
+ * @param int $timeout
+ * @see self::login()
+ * @return \phpseclib\Net\SSH2
+ * @access public
+ */
+ function __construct($host, $port = 22, $timeout = 10)
+ {
+ $this->message_numbers = array(
+ 1 => 'NET_SSH2_MSG_DISCONNECT',
+ 2 => 'NET_SSH2_MSG_IGNORE',
+ 3 => 'NET_SSH2_MSG_UNIMPLEMENTED',
+ 4 => 'NET_SSH2_MSG_DEBUG',
+ 5 => 'NET_SSH2_MSG_SERVICE_REQUEST',
+ 6 => 'NET_SSH2_MSG_SERVICE_ACCEPT',
+ 20 => 'NET_SSH2_MSG_KEXINIT',
+ 21 => 'NET_SSH2_MSG_NEWKEYS',
+ 30 => 'NET_SSH2_MSG_KEXDH_INIT',
+ 31 => 'NET_SSH2_MSG_KEXDH_REPLY',
+ 50 => 'NET_SSH2_MSG_USERAUTH_REQUEST',
+ 51 => 'NET_SSH2_MSG_USERAUTH_FAILURE',
+ 52 => 'NET_SSH2_MSG_USERAUTH_SUCCESS',
+ 53 => 'NET_SSH2_MSG_USERAUTH_BANNER',
+
+ 80 => 'NET_SSH2_MSG_GLOBAL_REQUEST',
+ 81 => 'NET_SSH2_MSG_REQUEST_SUCCESS',
+ 82 => 'NET_SSH2_MSG_REQUEST_FAILURE',
+ 90 => 'NET_SSH2_MSG_CHANNEL_OPEN',
+ 91 => 'NET_SSH2_MSG_CHANNEL_OPEN_CONFIRMATION',
+ 92 => 'NET_SSH2_MSG_CHANNEL_OPEN_FAILURE',
+ 93 => 'NET_SSH2_MSG_CHANNEL_WINDOW_ADJUST',
+ 94 => 'NET_SSH2_MSG_CHANNEL_DATA',
+ 95 => 'NET_SSH2_MSG_CHANNEL_EXTENDED_DATA',
+ 96 => 'NET_SSH2_MSG_CHANNEL_EOF',
+ 97 => 'NET_SSH2_MSG_CHANNEL_CLOSE',
+ 98 => 'NET_SSH2_MSG_CHANNEL_REQUEST',
+ 99 => 'NET_SSH2_MSG_CHANNEL_SUCCESS',
+ 100 => 'NET_SSH2_MSG_CHANNEL_FAILURE'
+ );
+ $this->disconnect_reasons = array(
+ 1 => 'NET_SSH2_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT',
+ 2 => 'NET_SSH2_DISCONNECT_PROTOCOL_ERROR',
+ 3 => 'NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED',
+ 4 => 'NET_SSH2_DISCONNECT_RESERVED',
+ 5 => 'NET_SSH2_DISCONNECT_MAC_ERROR',
+ 6 => 'NET_SSH2_DISCONNECT_COMPRESSION_ERROR',
+ 7 => 'NET_SSH2_DISCONNECT_SERVICE_NOT_AVAILABLE',
+ 8 => 'NET_SSH2_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED',
+ 9 => 'NET_SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE',
+ 10 => 'NET_SSH2_DISCONNECT_CONNECTION_LOST',
+ 11 => 'NET_SSH2_DISCONNECT_BY_APPLICATION',
+ 12 => 'NET_SSH2_DISCONNECT_TOO_MANY_CONNECTIONS',
+ 13 => 'NET_SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER',
+ 14 => 'NET_SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE',
+ 15 => 'NET_SSH2_DISCONNECT_ILLEGAL_USER_NAME'
+ );
+ $this->channel_open_failure_reasons = array(
+ 1 => 'NET_SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED'
+ );
+ $this->terminal_modes = array(
+ 0 => 'NET_SSH2_TTY_OP_END'
+ );
+ $this->channel_extended_data_type_codes = array(
+ 1 => 'NET_SSH2_EXTENDED_DATA_STDERR'
+ );
+
+ $this->_define_array(
+ $this->message_numbers,
+ $this->disconnect_reasons,
+ $this->channel_open_failure_reasons,
+ $this->terminal_modes,
+ $this->channel_extended_data_type_codes,
+ array(60 => 'NET_SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ'),
+ array(60 => 'NET_SSH2_MSG_USERAUTH_PK_OK'),
+ array(60 => 'NET_SSH2_MSG_USERAUTH_INFO_REQUEST',
+ 61 => 'NET_SSH2_MSG_USERAUTH_INFO_RESPONSE'),
+ // RFC 4419 - diffie-hellman-group-exchange-sha{1,256}
+ array(30 => 'NET_SSH2_MSG_KEXDH_GEX_REQUEST_OLD',
+ 31 => 'NET_SSH2_MSG_KEXDH_GEX_GROUP',
+ 32 => 'NET_SSH2_MSG_KEXDH_GEX_INIT',
+ 33 => 'NET_SSH2_MSG_KEXDH_GEX_REPLY',
+ 34 => 'NET_SSH2_MSG_KEXDH_GEX_REQUEST'),
+ // RFC 5656 - Elliptic Curves (for curve25519-sha256@libssh.org)
+ array(30 => 'NET_SSH2_MSG_KEX_ECDH_INIT',
+ 31 => 'NET_SSH2_MSG_KEX_ECDH_REPLY')
+ );
+
+ if (is_resource($host)) {
+ $this->fsock = $host;
+ return;
+ }
+
+ if (is_string($host)) {
+ $this->host = $host;
+ $this->port = $port;
+ $this->timeout = $timeout;
+ }
+ }
+
+ /**
+ * Set Crypto Engine Mode
+ *
+ * Possible $engine values:
+ * CRYPT_MODE_INTERNAL, CRYPT_MODE_MCRYPT
+ *
+ * @param int $engine
+ * @access private
+ */
+ function setCryptoEngine($engine)
+ {
+ $this->crypto_engine = $engine;
+ }
+
+ /**
+ * Connect to an SSHv2 server
+ *
+ * @return bool
+ * @access private
+ */
+ function _connect()
+ {
+ if ($this->bitmap & self::MASK_CONSTRUCTOR) {
+ return false;
+ }
+
+ $this->bitmap |= self::MASK_CONSTRUCTOR;
+
+ $this->curTimeout = $this->timeout;
+
+ $this->last_packet = microtime(true);
+
+ if (!is_resource($this->fsock)) {
+ $start = microtime(true);
+ // with stream_select a timeout of 0 means that no timeout takes place;
+ // with fsockopen a timeout of 0 means that you instantly timeout
+ // to resolve this incompatibility a timeout of 100,000 will be used for fsockopen if timeout is 0
+ $this->fsock = @fsockopen($this->host, $this->port, $errno, $errstr, $this->curTimeout == 0 ? 100000 : $this->curTimeout);
+ if (!$this->fsock) {
+ $host = $this->host . ':' . $this->port;
+ user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"));
+ return false;
+ }
+ $elapsed = microtime(true) - $start;
+
+ $this->curTimeout-= $elapsed;
+
+ if ($this->curTimeout <= 0) {
+ $this->is_timeout = true;
+ return false;
+ }
+ }
+
+ $this->identifier = $this->_generate_identifier();
+
+ fputs($this->fsock, $this->identifier . "\r\n");
+
+ /* According to the SSH2 specs,
+
+ "The server MAY send other lines of data before sending the version
+ string. Each line SHOULD be terminated by a Carriage Return and Line
+ Feed. Such lines MUST NOT begin with "SSH-", and SHOULD be encoded
+ in ISO-10646 UTF-8 [RFC3629] (language is not specified). Clients
+ MUST be able to process such lines." */
+ $data = '';
+ while (!feof($this->fsock) && !preg_match('#(.*)^(SSH-(\d\.\d+).*)#ms', $data, $matches)) {
+ $line = '';
+ while (true) {
+ if ($this->curTimeout) {
+ if ($this->curTimeout < 0) {
+ $this->is_timeout = true;
+ return false;
+ }
+ $read = array($this->fsock);
+ $write = $except = null;
+ $start = microtime(true);
+ $sec = floor($this->curTimeout);
+ $usec = 1000000 * ($this->curTimeout - $sec);
+ // on windows this returns a "Warning: Invalid CRT parameters detected" error
+ // the !count() is done as a workaround for <https://bugs.php.net/42682>
+ if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
+ $this->is_timeout = true;
+ return false;
+ }
+ $elapsed = microtime(true) - $start;
+ $this->curTimeout-= $elapsed;
+ }
+
+ $temp = stream_get_line($this->fsock, 255, "\n");
+ if (strlen($temp) == 255) {
+ continue;
+ }
+
+ $line.= "$temp\n";
+
+ // quoting RFC4253, "Implementers who wish to maintain
+ // compatibility with older, undocumented versions of this protocol may
+ // want to process the identification string without expecting the
+ // presence of the carriage return character for reasons described in
+ // Section 5 of this document."
+
+ //if (substr($line, -2) == "\r\n") {
+ // break;
+ //}
+
+ break;
+ }
+
+ $data.= $line;
+ }
+
+ if (feof($this->fsock)) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ $extra = $matches[1];
+
+ if (defined('NET_SSH2_LOGGING')) {
+ $this->_append_log('<-', $matches[0]);
+ $this->_append_log('->', $this->identifier . "\r\n");
+ }
+
+ $this->server_identifier = trim($temp, "\r\n");
+ if (strlen($extra)) {
+ $this->errors[] = utf8_decode($data);
+ }
+
+ if ($matches[3] != '1.99' && $matches[3] != '2.0') {
+ user_error("Cannot connect to SSH $matches[3] servers");
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response) || ord($response[0]) != NET_SSH2_MSG_KEXINIT) {
+ user_error('Expected SSH_MSG_KEXINIT');
+ return false;
+ }
+
+ if (!$this->_key_exchange($response)) {
+ return false;
+ }
+
+ $this->bitmap|= self::MASK_CONNECTED;
+
+ return true;
+ }
+
+ /**
+ * Generates the SSH identifier
+ *
+ * You should overwrite this method in your own class if you want to use another identifier
+ *
+ * @access protected
+ * @return string
+ */
+ function _generate_identifier()
+ {
+ $identifier = 'SSH-2.0-phpseclib_2.0';
+
+ $ext = array();
+ if (extension_loaded('libsodium')) {
+ $ext[] = 'libsodium';
+ }
+
+ if (extension_loaded('openssl')) {
+ $ext[] = 'openssl';
+ } elseif (extension_loaded('mcrypt')) {
+ $ext[] = 'mcrypt';
+ }
+
+ if (extension_loaded('gmp')) {
+ $ext[] = 'gmp';
+ } elseif (extension_loaded('bcmath')) {
+ $ext[] = 'bcmath';
+ }
+
+ if (!empty($ext)) {
+ $identifier .= ' (' . implode(', ', $ext) . ')';
+ }
+
+ return $identifier;
+ }
+
+ /**
+ * Key Exchange
+ *
+ * @param string $kexinit_payload_server
+ * @access private
+ */
+ function _key_exchange($kexinit_payload_server)
+ {
+ $kex_algorithms = array(
+ // Elliptic Curve Diffie-Hellman Key Agreement (ECDH) using
+ // Curve25519. See doc/curve25519-sha256@libssh.org.txt in the
+ // libssh repository for more information.
+ 'curve25519-sha256@libssh.org',
+
+ // Diffie-Hellman Key Agreement (DH) using integer modulo prime
+ // groups.
+ 'diffie-hellman-group1-sha1', // REQUIRED
+ 'diffie-hellman-group14-sha1', // REQUIRED
+ 'diffie-hellman-group-exchange-sha1', // RFC 4419
+ 'diffie-hellman-group-exchange-sha256', // RFC 4419
+ );
+ if (!function_exists('\\Sodium\\library_version_major')) {
+ $kex_algorithms = array_diff(
+ $kex_algorithms,
+ array('curve25519-sha256@libssh.org')
+ );
+ }
+
+ $server_host_key_algorithms = array(
+ 'ssh-rsa', // RECOMMENDED sign Raw RSA Key
+ 'ssh-dss' // REQUIRED sign Raw DSS Key
+ );
+
+ $encryption_algorithms = array(
+ // from <http://tools.ietf.org/html/rfc4345#section-4>:
+ 'arcfour256',
+ 'arcfour128',
+
+ //'arcfour', // OPTIONAL the ARCFOUR stream cipher with a 128-bit key
+
+ // CTR modes from <http://tools.ietf.org/html/rfc4344#section-4>:
+ 'aes128-ctr', // RECOMMENDED AES (Rijndael) in SDCTR mode, with 128-bit key
+ 'aes192-ctr', // RECOMMENDED AES with 192-bit key
+ 'aes256-ctr', // RECOMMENDED AES with 256-bit key
+
+ 'twofish128-ctr', // OPTIONAL Twofish in SDCTR mode, with 128-bit key
+ 'twofish192-ctr', // OPTIONAL Twofish with 192-bit key
+ 'twofish256-ctr', // OPTIONAL Twofish with 256-bit key
+
+ 'aes128-cbc', // RECOMMENDED AES with a 128-bit key
+ 'aes192-cbc', // OPTIONAL AES with a 192-bit key
+ 'aes256-cbc', // OPTIONAL AES in CBC mode, with a 256-bit key
+
+ 'twofish128-cbc', // OPTIONAL Twofish with a 128-bit key
+ 'twofish192-cbc', // OPTIONAL Twofish with a 192-bit key
+ 'twofish256-cbc',
+ 'twofish-cbc', // OPTIONAL alias for "twofish256-cbc"
+ // (this is being retained for historical reasons)
+
+ 'blowfish-ctr', // OPTIONAL Blowfish in SDCTR mode
+
+ 'blowfish-cbc', // OPTIONAL Blowfish in CBC mode
+
+ '3des-ctr', // RECOMMENDED Three-key 3DES in SDCTR mode
+
+ '3des-cbc', // REQUIRED three-key 3DES in CBC mode
+ //'none' // OPTIONAL no encryption; NOT RECOMMENDED
+ );
+
+ if (extension_loaded('openssl') && !extension_loaded('mcrypt')) {
+ // OpenSSL does not support arcfour256 in any capacity and arcfour128 / arcfour support is limited to
+ // instances that do not use continuous buffers
+ $encryption_algorithms = array_diff(
+ $encryption_algorithms,
+ array('arcfour256', 'arcfour128', 'arcfour')
+ );
+ }
+
+ if (class_exists('\phpseclib\Crypt\RC4') === false) {
+ $encryption_algorithms = array_diff(
+ $encryption_algorithms,
+ array('arcfour256', 'arcfour128', 'arcfour')
+ );
+ }
+ if (class_exists('\phpseclib\Crypt\Rijndael') === false) {
+ $encryption_algorithms = array_diff(
+ $encryption_algorithms,
+ array('aes128-ctr', 'aes192-ctr', 'aes256-ctr', 'aes128-cbc', 'aes192-cbc', 'aes256-cbc')
+ );
+ }
+ if (class_exists('\phpseclib\Crypt\Twofish') === false) {
+ $encryption_algorithms = array_diff(
+ $encryption_algorithms,
+ array('twofish128-ctr', 'twofish192-ctr', 'twofish256-ctr', 'twofish128-cbc', 'twofish192-cbc', 'twofish256-cbc', 'twofish-cbc')
+ );
+ }
+ if (class_exists('\phpseclib\Crypt\Blowfish') === false) {
+ $encryption_algorithms = array_diff(
+ $encryption_algorithms,
+ array('blowfish-ctr', 'blowfish-cbc')
+ );
+ }
+ if (class_exists('\phpseclib\Crypt\TripleDES') === false) {
+ $encryption_algorithms = array_diff(
+ $encryption_algorithms,
+ array('3des-ctr', '3des-cbc')
+ );
+ }
+ $encryption_algorithms = array_values($encryption_algorithms);
+
+ $mac_algorithms = array(
+ // from <http://www.ietf.org/rfc/rfc6668.txt>:
+ 'hmac-sha2-256',// RECOMMENDED HMAC-SHA256 (digest length = key length = 32)
+
+ 'hmac-sha1-96', // RECOMMENDED first 96 bits of HMAC-SHA1 (digest length = 12, key length = 20)
+ 'hmac-sha1', // REQUIRED HMAC-SHA1 (digest length = key length = 20)
+ 'hmac-md5-96', // OPTIONAL first 96 bits of HMAC-MD5 (digest length = 12, key length = 16)
+ 'hmac-md5', // OPTIONAL HMAC-MD5 (digest length = key length = 16)
+ //'none' // OPTIONAL no MAC; NOT RECOMMENDED
+ );
+
+ $compression_algorithms = array(
+ 'none' // REQUIRED no compression
+ //'zlib' // OPTIONAL ZLIB (LZ77) compression
+ );
+
+ // some SSH servers have buggy implementations of some of the above algorithms
+ switch ($this->server_identifier) {
+ case 'SSH-2.0-SSHD':
+ $mac_algorithms = array_values(array_diff(
+ $mac_algorithms,
+ array('hmac-sha1-96', 'hmac-md5-96')
+ ));
+ }
+
+ $str_kex_algorithms = implode(',', $kex_algorithms);
+ $str_server_host_key_algorithms = implode(',', $server_host_key_algorithms);
+ $encryption_algorithms_server_to_client = $encryption_algorithms_client_to_server = implode(',', $encryption_algorithms);
+ $mac_algorithms_server_to_client = $mac_algorithms_client_to_server = implode(',', $mac_algorithms);
+ $compression_algorithms_server_to_client = $compression_algorithms_client_to_server = implode(',', $compression_algorithms);
+
+ $client_cookie = Random::string(16);
+
+ $response = $kexinit_payload_server;
+ $this->_string_shift($response, 1); // skip past the message number (it should be SSH_MSG_KEXINIT)
+ $server_cookie = $this->_string_shift($response, 16);
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->kex_algorithms = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->server_host_key_algorithms = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->encryption_algorithms_client_to_server = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->encryption_algorithms_server_to_client = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->mac_algorithms_client_to_server = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->mac_algorithms_server_to_client = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->compression_algorithms_client_to_server = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->compression_algorithms_server_to_client = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->languages_client_to_server = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->languages_server_to_client = explode(',', $this->_string_shift($response, $temp['length']));
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Cfirst_kex_packet_follows', $this->_string_shift($response, 1)));
+ $first_kex_packet_follows = $first_kex_packet_follows != 0;
+
+ // the sending of SSH2_MSG_KEXINIT could go in one of two places. this is the second place.
+ $kexinit_payload_client = pack(
+ 'Ca*Na*Na*Na*Na*Na*Na*Na*Na*Na*Na*CN',
+ NET_SSH2_MSG_KEXINIT,
+ $client_cookie,
+ strlen($str_kex_algorithms),
+ $str_kex_algorithms,
+ strlen($str_server_host_key_algorithms),
+ $str_server_host_key_algorithms,
+ strlen($encryption_algorithms_client_to_server),
+ $encryption_algorithms_client_to_server,
+ strlen($encryption_algorithms_server_to_client),
+ $encryption_algorithms_server_to_client,
+ strlen($mac_algorithms_client_to_server),
+ $mac_algorithms_client_to_server,
+ strlen($mac_algorithms_server_to_client),
+ $mac_algorithms_server_to_client,
+ strlen($compression_algorithms_client_to_server),
+ $compression_algorithms_client_to_server,
+ strlen($compression_algorithms_server_to_client),
+ $compression_algorithms_server_to_client,
+ 0,
+ '',
+ 0,
+ '',
+ 0,
+ 0
+ );
+
+ if (!$this->_send_binary_packet($kexinit_payload_client)) {
+ return false;
+ }
+ // here ends the second place.
+
+ // we need to decide upon the symmetric encryption algorithms before we do the diffie-hellman key exchange
+ // we don't initialize any crypto-objects, yet - we do that, later. for now, we need the lengths to make the
+ // diffie-hellman key exchange as fast as possible
+ $decrypt = $this->_array_intersect_first($encryption_algorithms, $this->encryption_algorithms_server_to_client);
+ $decryptKeyLength = $this->_encryption_algorithm_to_key_size($decrypt);
+ if ($decryptKeyLength === null) {
+ user_error('No compatible server to client encryption algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ $encrypt = $this->_array_intersect_first($encryption_algorithms, $this->encryption_algorithms_client_to_server);
+ $encryptKeyLength = $this->_encryption_algorithm_to_key_size($encrypt);
+ if ($encryptKeyLength === null) {
+ user_error('No compatible client to server encryption algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ // through diffie-hellman key exchange a symmetric key is obtained
+ $kex_algorithm = $this->_array_intersect_first($kex_algorithms, $this->kex_algorithms);
+ if ($kex_algorithm === false) {
+ user_error('No compatible key exchange algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ // Only relevant in diffie-hellman-group-exchange-sha{1,256}, otherwise empty.
+ $exchange_hash_rfc4419 = '';
+
+ if ($kex_algorithm === 'curve25519-sha256@libssh.org') {
+ $x = Random::string(32);
+ $eBytes = \Sodium\crypto_box_publickey_from_secretkey($x);
+ $clientKexInitMessage = NET_SSH2_MSG_KEX_ECDH_INIT;
+ $serverKexReplyMessage = NET_SSH2_MSG_KEX_ECDH_REPLY;
+ $kexHash = new Hash('sha256');
+ } else {
+ if (strpos($kex_algorithm, 'diffie-hellman-group-exchange') === 0) {
+ $dh_group_sizes_packed = pack(
+ 'NNN',
+ $this->kex_dh_group_size_min,
+ $this->kex_dh_group_size_preferred,
+ $this->kex_dh_group_size_max
+ );
+ $packet = pack(
+ 'Ca*',
+ NET_SSH2_MSG_KEXDH_GEX_REQUEST,
+ $dh_group_sizes_packed
+ );
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+ if ($type != NET_SSH2_MSG_KEXDH_GEX_GROUP) {
+ user_error('Expected SSH_MSG_KEX_DH_GEX_GROUP');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('NprimeLength', $this->_string_shift($response, 4)));
+ $primeBytes = $this->_string_shift($response, $primeLength);
+ $prime = new BigInteger($primeBytes, -256);
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('NgLength', $this->_string_shift($response, 4)));
+ $gBytes = $this->_string_shift($response, $gLength);
+ $g = new BigInteger($gBytes, -256);
+
+ $exchange_hash_rfc4419 = pack(
+ 'a*Na*Na*',
+ $dh_group_sizes_packed,
+ $primeLength,
+ $primeBytes,
+ $gLength,
+ $gBytes
+ );
+
+ $clientKexInitMessage = NET_SSH2_MSG_KEXDH_GEX_INIT;
+ $serverKexReplyMessage = NET_SSH2_MSG_KEXDH_GEX_REPLY;
+ } else {
+ switch ($kex_algorithm) {
+ // see http://tools.ietf.org/html/rfc2409#section-6.2 and
+ // http://tools.ietf.org/html/rfc2412, appendex E
+ case 'diffie-hellman-group1-sha1':
+ $prime = 'FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74' .
+ '020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F1437' .
+ '4FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED' .
+ 'EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE65381FFFFFFFFFFFFFFFF';
+ break;
+ // see http://tools.ietf.org/html/rfc3526#section-3
+ case 'diffie-hellman-group14-sha1':
+ $prime = 'FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74' .
+ '020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F1437' .
+ '4FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED' .
+ 'EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF05' .
+ '98DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB' .
+ '9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B' .
+ 'E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF695581718' .
+ '3995497CEA956AE515D2261898FA051015728E5A8AACAA68FFFFFFFFFFFFFFFF';
+ break;
+ }
+ // For both diffie-hellman-group1-sha1 and diffie-hellman-group14-sha1
+ // the generator field element is 2 (decimal) and the hash function is sha1.
+ $g = new BigInteger(2);
+ $prime = new BigInteger($prime, 16);
+ $clientKexInitMessage = NET_SSH2_MSG_KEXDH_INIT;
+ $serverKexReplyMessage = NET_SSH2_MSG_KEXDH_REPLY;
+ }
+
+ switch ($kex_algorithm) {
+ case 'diffie-hellman-group-exchange-sha256':
+ $kexHash = new Hash('sha256');
+ break;
+ default:
+ $kexHash = new Hash('sha1');
+ }
+
+ /* To increase the speed of the key exchange, both client and server may
+ reduce the size of their private exponents. It should be at least
+ twice as long as the key material that is generated from the shared
+ secret. For more details, see the paper by van Oorschot and Wiener
+ [VAN-OORSCHOT].
+
+ -- http://tools.ietf.org/html/rfc4419#section-6.2 */
+ $one = new BigInteger(1);
+ $keyLength = min($kexHash->getLength(), max($encryptKeyLength, $decryptKeyLength));
+ $max = $one->bitwise_leftShift(16 * $keyLength); // 2 * 8 * $keyLength
+ $max = $max->subtract($one);
+
+ $x = $one->random($one, $max);
+ $e = $g->modPow($x, $prime);
+
+ $eBytes = $e->toBytes(true);
+ }
+ $data = pack('CNa*', $clientKexInitMessage, strlen($eBytes), $eBytes);
+
+ if (!$this->_send_binary_packet($data)) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ if ($type != $serverKexReplyMessage) {
+ user_error('Expected SSH_MSG_KEXDH_REPLY');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->server_public_host_key = $server_public_host_key = $this->_string_shift($response, $temp['length']);
+
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4));
+ $public_key_format = $this->_string_shift($server_public_host_key, $temp['length']);
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $fBytes = $this->_string_shift($response, $temp['length']);
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($response, 4));
+ $this->signature = $this->_string_shift($response, $temp['length']);
+
+ if (strlen($this->signature) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($this->signature, 4));
+ $this->signature_format = $this->_string_shift($this->signature, $temp['length']);
+
+ if ($kex_algorithm === 'curve25519-sha256@libssh.org') {
+ if (strlen($fBytes) !== 32) {
+ user_error('Received curve25519 public key of invalid length.');
+ return false;
+ }
+ $key = new BigInteger(\Sodium\crypto_scalarmult($x, $fBytes), 256);
+ \Sodium\memzero($x);
+ } else {
+ $f = new BigInteger($fBytes, -256);
+ $key = $f->modPow($x, $prime);
+ }
+ $keyBytes = $key->toBytes(true);
+
+ $this->exchange_hash = pack(
+ 'Na*Na*Na*Na*Na*a*Na*Na*Na*',
+ strlen($this->identifier),
+ $this->identifier,
+ strlen($this->server_identifier),
+ $this->server_identifier,
+ strlen($kexinit_payload_client),
+ $kexinit_payload_client,
+ strlen($kexinit_payload_server),
+ $kexinit_payload_server,
+ strlen($this->server_public_host_key),
+ $this->server_public_host_key,
+ $exchange_hash_rfc4419,
+ strlen($eBytes),
+ $eBytes,
+ strlen($fBytes),
+ $fBytes,
+ strlen($keyBytes),
+ $keyBytes
+ );
+
+ $this->exchange_hash = $kexHash->hash($this->exchange_hash);
+
+ if ($this->session_id === false) {
+ $this->session_id = $this->exchange_hash;
+ }
+
+ $server_host_key_algorithm = $this->_array_intersect_first($server_host_key_algorithms, $this->server_host_key_algorithms);
+ if ($server_host_key_algorithm === false) {
+ user_error('No compatible server host key algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ if ($public_key_format != $server_host_key_algorithm || $this->signature_format != $server_host_key_algorithm) {
+ user_error('Server Host Key Algorithm Mismatch');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ $packet = pack(
+ 'C',
+ NET_SSH2_MSG_NEWKEYS
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ if ($type != NET_SSH2_MSG_NEWKEYS) {
+ user_error('Expected SSH_MSG_NEWKEYS');
+ return false;
+ }
+
+ $keyBytes = pack('Na*', strlen($keyBytes), $keyBytes);
+
+ $this->encrypt = $this->_encryption_algorithm_to_crypt_instance($encrypt);
+ if ($this->encrypt) {
+ if ($this->crypto_engine) {
+ $this->encrypt->setEngine($this->crypto_engine);
+ }
+ if ($this->encrypt->block_size) {
+ $this->encrypt_block_size = $this->encrypt->block_size;
+ }
+ $this->encrypt->enableContinuousBuffer();
+ $this->encrypt->disablePadding();
+
+ $iv = $kexHash->hash($keyBytes . $this->exchange_hash . 'A' . $this->session_id);
+ while ($this->encrypt_block_size > strlen($iv)) {
+ $iv.= $kexHash->hash($keyBytes . $this->exchange_hash . $iv);
+ }
+ $this->encrypt->setIV(substr($iv, 0, $this->encrypt_block_size));
+
+ $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'C' . $this->session_id);
+ while ($encryptKeyLength > strlen($key)) {
+ $key.= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
+ }
+ $this->encrypt->setKey(substr($key, 0, $encryptKeyLength));
+ }
+
+ $this->decrypt = $this->_encryption_algorithm_to_crypt_instance($decrypt);
+ if ($this->decrypt) {
+ if ($this->crypto_engine) {
+ $this->decrypt->setEngine($this->crypto_engine);
+ }
+ if ($this->decrypt->block_size) {
+ $this->decrypt_block_size = $this->decrypt->block_size;
+ }
+ $this->decrypt->enableContinuousBuffer();
+ $this->decrypt->disablePadding();
+
+ $iv = $kexHash->hash($keyBytes . $this->exchange_hash . 'B' . $this->session_id);
+ while ($this->decrypt_block_size > strlen($iv)) {
+ $iv.= $kexHash->hash($keyBytes . $this->exchange_hash . $iv);
+ }
+ $this->decrypt->setIV(substr($iv, 0, $this->decrypt_block_size));
+
+ $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'D' . $this->session_id);
+ while ($decryptKeyLength > strlen($key)) {
+ $key.= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
+ }
+ $this->decrypt->setKey(substr($key, 0, $decryptKeyLength));
+ }
+
+ /* The "arcfour128" algorithm is the RC4 cipher, as described in
+ [SCHNEIER], using a 128-bit key. The first 1536 bytes of keystream
+ generated by the cipher MUST be discarded, and the first byte of the
+ first encrypted packet MUST be encrypted using the 1537th byte of
+ keystream.
+
+ -- http://tools.ietf.org/html/rfc4345#section-4 */
+ if ($encrypt == 'arcfour128' || $encrypt == 'arcfour256') {
+ $this->encrypt->encrypt(str_repeat("\0", 1536));
+ }
+ if ($decrypt == 'arcfour128' || $decrypt == 'arcfour256') {
+ $this->decrypt->decrypt(str_repeat("\0", 1536));
+ }
+
+ $mac_algorithm = $this->_array_intersect_first($mac_algorithms, $this->mac_algorithms_client_to_server);
+ if ($mac_algorithm === false) {
+ user_error('No compatible client to server message authentication algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ $createKeyLength = 0; // ie. $mac_algorithm == 'none'
+ switch ($mac_algorithm) {
+ case 'hmac-sha2-256':
+ $this->hmac_create = new Hash('sha256');
+ $createKeyLength = 32;
+ break;
+ case 'hmac-sha1':
+ $this->hmac_create = new Hash('sha1');
+ $createKeyLength = 20;
+ break;
+ case 'hmac-sha1-96':
+ $this->hmac_create = new Hash('sha1-96');
+ $createKeyLength = 20;
+ break;
+ case 'hmac-md5':
+ $this->hmac_create = new Hash('md5');
+ $createKeyLength = 16;
+ break;
+ case 'hmac-md5-96':
+ $this->hmac_create = new Hash('md5-96');
+ $createKeyLength = 16;
+ }
+
+ $mac_algorithm = $this->_array_intersect_first($mac_algorithms, $this->mac_algorithms_server_to_client);
+ if ($mac_algorithm === false) {
+ user_error('No compatible server to client message authentication algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ $checkKeyLength = 0;
+ $this->hmac_size = 0;
+ switch ($mac_algorithm) {
+ case 'hmac-sha2-256':
+ $this->hmac_check = new Hash('sha256');
+ $checkKeyLength = 32;
+ $this->hmac_size = 32;
+ break;
+ case 'hmac-sha1':
+ $this->hmac_check = new Hash('sha1');
+ $checkKeyLength = 20;
+ $this->hmac_size = 20;
+ break;
+ case 'hmac-sha1-96':
+ $this->hmac_check = new Hash('sha1-96');
+ $checkKeyLength = 20;
+ $this->hmac_size = 12;
+ break;
+ case 'hmac-md5':
+ $this->hmac_check = new Hash('md5');
+ $checkKeyLength = 16;
+ $this->hmac_size = 16;
+ break;
+ case 'hmac-md5-96':
+ $this->hmac_check = new Hash('md5-96');
+ $checkKeyLength = 16;
+ $this->hmac_size = 12;
+ }
+
+ $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'E' . $this->session_id);
+ while ($createKeyLength > strlen($key)) {
+ $key.= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
+ }
+ $this->hmac_create->setKey(substr($key, 0, $createKeyLength));
+
+ $key = $kexHash->hash($keyBytes . $this->exchange_hash . 'F' . $this->session_id);
+ while ($checkKeyLength > strlen($key)) {
+ $key.= $kexHash->hash($keyBytes . $this->exchange_hash . $key);
+ }
+ $this->hmac_check->setKey(substr($key, 0, $checkKeyLength));
+
+ $compression_algorithm = $this->_array_intersect_first($compression_algorithms, $this->compression_algorithms_server_to_client);
+ if ($compression_algorithm === false) {
+ user_error('No compatible server to client compression algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+ $this->decompress = $compression_algorithm == 'zlib';
+
+ $compression_algorithm = $this->_array_intersect_first($compression_algorithms, $this->compression_algorithms_client_to_server);
+ if ($compression_algorithm === false) {
+ user_error('No compatible client to server compression algorithms found');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+ $this->compress = $compression_algorithm == 'zlib';
+
+ return true;
+ }
+
+ /**
+ * Maps an encryption algorithm name to the number of key bytes.
+ *
+ * @param string $algorithm Name of the encryption algorithm
+ * @return int|null Number of bytes as an integer or null for unknown
+ * @access private
+ */
+ function _encryption_algorithm_to_key_size($algorithm)
+ {
+ switch ($algorithm) {
+ case 'none':
+ return 0;
+ case 'aes128-cbc':
+ case 'aes128-ctr':
+ case 'arcfour':
+ case 'arcfour128':
+ case 'blowfish-cbc':
+ case 'blowfish-ctr':
+ case 'twofish128-cbc':
+ case 'twofish128-ctr':
+ return 16;
+ case '3des-cbc':
+ case '3des-ctr':
+ case 'aes192-cbc':
+ case 'aes192-ctr':
+ case 'twofish192-cbc':
+ case 'twofish192-ctr':
+ return 24;
+ case 'aes256-cbc':
+ case 'aes256-ctr':
+ case 'arcfour256':
+ case 'twofish-cbc':
+ case 'twofish256-cbc':
+ case 'twofish256-ctr':
+ return 32;
+ }
+ return null;
+ }
+
+ /**
+ * Maps an encryption algorithm name to an instance of a subclass of
+ * \phpseclib\Crypt\Base.
+ *
+ * @param string $algorithm Name of the encryption algorithm
+ * @return mixed Instance of \phpseclib\Crypt\Base or null for unknown
+ * @access private
+ */
+ function _encryption_algorithm_to_crypt_instance($algorithm)
+ {
+ switch ($algorithm) {
+ case '3des-cbc':
+ return new TripleDES();
+ case '3des-ctr':
+ return new TripleDES(Base::MODE_CTR);
+ case 'aes256-cbc':
+ case 'aes192-cbc':
+ case 'aes128-cbc':
+ return new Rijndael();
+ case 'aes256-ctr':
+ case 'aes192-ctr':
+ case 'aes128-ctr':
+ return new Rijndael(Base::MODE_CTR);
+ case 'blowfish-cbc':
+ return new Blowfish();
+ case 'blowfish-ctr':
+ return new Blowfish(Base::MODE_CTR);
+ case 'twofish128-cbc':
+ case 'twofish192-cbc':
+ case 'twofish256-cbc':
+ case 'twofish-cbc':
+ return new Twofish();
+ case 'twofish128-ctr':
+ case 'twofish192-ctr':
+ case 'twofish256-ctr':
+ return new Twofish(Base::MODE_CTR);
+ case 'arcfour':
+ case 'arcfour128':
+ case 'arcfour256':
+ return new RC4();
+ }
+ return null;
+ }
+
+ /**
+ * Login
+ *
+ * The $password parameter can be a plaintext password, a \phpseclib\Crypt\RSA object or an array
+ *
+ * @param string $username
+ * @param mixed $password
+ * @param mixed $...
+ * @return bool
+ * @see self::_login()
+ * @access public
+ */
+ function login($username)
+ {
+ $args = func_get_args();
+ return call_user_func_array(array(&$this, '_login'), $args);
+ }
+
+ /**
+ * Login Helper
+ *
+ * @param string $username
+ * @param mixed $password
+ * @param mixed $...
+ * @return bool
+ * @see self::_login_helper()
+ * @access private
+ */
+ function _login($username)
+ {
+ if (!($this->bitmap & self::MASK_CONSTRUCTOR)) {
+ if (!$this->_connect()) {
+ return false;
+ }
+ }
+
+ $args = array_slice(func_get_args(), 1);
+ if (empty($args)) {
+ return $this->_login_helper($username);
+ }
+
+ foreach ($args as $arg) {
+ if ($this->_login_helper($username, $arg)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Login Helper
+ *
+ * @param string $username
+ * @param string $password
+ * @return bool
+ * @access private
+ * @internal It might be worthwhile, at some point, to protect against {@link http://tools.ietf.org/html/rfc4251#section-9.3.9 traffic analysis}
+ * by sending dummy SSH_MSG_IGNORE messages.
+ */
+ function _login_helper($username, $password = null)
+ {
+ if (!($this->bitmap & self::MASK_CONNECTED)) {
+ return false;
+ }
+
+ if (!($this->bitmap & self::MASK_LOGIN_REQ)) {
+ $packet = pack(
+ 'CNa*',
+ NET_SSH2_MSG_SERVICE_REQUEST,
+ strlen('ssh-userauth'),
+ 'ssh-userauth'
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ if ($type != NET_SSH2_MSG_SERVICE_ACCEPT) {
+ user_error('Expected SSH_MSG_SERVICE_ACCEPT');
+ return false;
+ }
+ $this->bitmap |= self::MASK_LOGIN_REQ;
+ }
+
+ if (strlen($this->last_interactive_response)) {
+ return !is_string($password) && !is_array($password) ? false : $this->_keyboard_interactive_process($password);
+ }
+
+ if ($password instanceof RSA) {
+ return $this->_privatekey_login($username, $password);
+ } elseif ($password instanceof Agent) {
+ return $this->_ssh_agent_login($username, $password);
+ }
+
+ if (is_array($password)) {
+ if ($this->_keyboard_interactive_login($username, $password)) {
+ $this->bitmap |= self::MASK_LOGIN;
+ return true;
+ }
+ return false;
+ }
+
+ if (!isset($password)) {
+ $packet = pack(
+ 'CNa*Na*Na*',
+ NET_SSH2_MSG_USERAUTH_REQUEST,
+ strlen($username),
+ $username,
+ strlen('ssh-connection'),
+ 'ssh-connection',
+ strlen('none'),
+ 'none'
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ switch ($type) {
+ case NET_SSH2_MSG_USERAUTH_SUCCESS:
+ $this->bitmap |= self::MASK_LOGIN;
+ return true;
+ //case NET_SSH2_MSG_USERAUTH_FAILURE:
+ default:
+ return false;
+ }
+ }
+
+ $packet = pack(
+ 'CNa*Na*Na*CNa*',
+ NET_SSH2_MSG_USERAUTH_REQUEST,
+ strlen($username),
+ $username,
+ strlen('ssh-connection'),
+ 'ssh-connection',
+ strlen('password'),
+ 'password',
+ 0,
+ strlen($password),
+ $password
+ );
+
+ // remove the username and password from the logged packet
+ if (!defined('NET_SSH2_LOGGING')) {
+ $logged = null;
+ } else {
+ $logged = pack(
+ 'CNa*Na*Na*CNa*',
+ NET_SSH2_MSG_USERAUTH_REQUEST,
+ strlen('username'),
+ 'username',
+ strlen('ssh-connection'),
+ 'ssh-connection',
+ strlen('password'),
+ 'password',
+ 0,
+ strlen('password'),
+ 'password'
+ );
+ }
+
+ if (!$this->_send_binary_packet($packet, $logged)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ switch ($type) {
+ case NET_SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ: // in theory, the password can be changed
+ if (defined('NET_SSH2_LOGGING')) {
+ $this->message_number_log[count($this->message_number_log) - 1] = 'NET_SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ';
+ }
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $this->errors[] = 'SSH_MSG_USERAUTH_PASSWD_CHANGEREQ: ' . utf8_decode($this->_string_shift($response, $length));
+ return $this->_disconnect(NET_SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER);
+ case NET_SSH2_MSG_USERAUTH_FAILURE:
+ // can we use keyboard-interactive authentication? if not then either the login is bad or the server employees
+ // multi-factor authentication
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $auth_methods = explode(',', $this->_string_shift($response, $length));
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Cpartial_success', $this->_string_shift($response, 1)));
+ $partial_success = $partial_success != 0;
+
+ if (!$partial_success && in_array('keyboard-interactive', $auth_methods)) {
+ if ($this->_keyboard_interactive_login($username, $password)) {
+ $this->bitmap |= self::MASK_LOGIN;
+ return true;
+ }
+ return false;
+ }
+ return false;
+ case NET_SSH2_MSG_USERAUTH_SUCCESS:
+ $this->bitmap |= self::MASK_LOGIN;
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Login via keyboard-interactive authentication
+ *
+ * See {@link http://tools.ietf.org/html/rfc4256 RFC4256} for details. This is not a full-featured keyboard-interactive authenticator.
+ *
+ * @param string $username
+ * @param string $password
+ * @return bool
+ * @access private
+ */
+ function _keyboard_interactive_login($username, $password)
+ {
+ $packet = pack(
+ 'CNa*Na*Na*Na*Na*',
+ NET_SSH2_MSG_USERAUTH_REQUEST,
+ strlen($username),
+ $username,
+ strlen('ssh-connection'),
+ 'ssh-connection',
+ strlen('keyboard-interactive'),
+ 'keyboard-interactive',
+ 0,
+ '',
+ 0,
+ ''
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ return $this->_keyboard_interactive_process($password);
+ }
+
+ /**
+ * Handle the keyboard-interactive requests / responses.
+ *
+ * @param string $responses...
+ * @return bool
+ * @access private
+ */
+ function _keyboard_interactive_process()
+ {
+ $responses = func_get_args();
+
+ if (strlen($this->last_interactive_response)) {
+ $response = $this->last_interactive_response;
+ } else {
+ $orig = $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ switch ($type) {
+ case NET_SSH2_MSG_USERAUTH_INFO_REQUEST:
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $this->_string_shift($response, $length); // name; may be empty
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $this->_string_shift($response, $length); // instruction; may be empty
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $this->_string_shift($response, $length); // language tag; may be empty
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nnum_prompts', $this->_string_shift($response, 4)));
+
+ for ($i = 0; $i < count($responses); $i++) {
+ if (is_array($responses[$i])) {
+ foreach ($responses[$i] as $key => $value) {
+ $this->keyboard_requests_responses[$key] = $value;
+ }
+ unset($responses[$i]);
+ }
+ }
+ $responses = array_values($responses);
+
+ if (isset($this->keyboard_requests_responses)) {
+ for ($i = 0; $i < $num_prompts; $i++) {
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ // prompt - ie. "Password: "; must not be empty
+ $prompt = $this->_string_shift($response, $length);
+ //$echo = $this->_string_shift($response) != chr(0);
+ foreach ($this->keyboard_requests_responses as $key => $value) {
+ if (substr($prompt, 0, strlen($key)) == $key) {
+ $responses[] = $value;
+ break;
+ }
+ }
+ }
+ }
+
+ // see http://tools.ietf.org/html/rfc4256#section-3.2
+ if (strlen($this->last_interactive_response)) {
+ $this->last_interactive_response = '';
+ } elseif (defined('NET_SSH2_LOGGING')) {
+ $this->message_number_log[count($this->message_number_log) - 1] = str_replace(
+ 'UNKNOWN',
+ 'NET_SSH2_MSG_USERAUTH_INFO_REQUEST',
+ $this->message_number_log[count($this->message_number_log) - 1]
+ );
+ }
+
+ if (!count($responses) && $num_prompts) {
+ $this->last_interactive_response = $orig;
+ return false;
+ }
+
+ /*
+ After obtaining the requested information from the user, the client
+ MUST respond with an SSH_MSG_USERAUTH_INFO_RESPONSE message.
+ */
+ // see http://tools.ietf.org/html/rfc4256#section-3.4
+ $packet = $logged = pack('CN', NET_SSH2_MSG_USERAUTH_INFO_RESPONSE, count($responses));
+ for ($i = 0; $i < count($responses); $i++) {
+ $packet.= pack('Na*', strlen($responses[$i]), $responses[$i]);
+ $logged.= pack('Na*', strlen('dummy-answer'), 'dummy-answer');
+ }
+
+ if (!$this->_send_binary_packet($packet, $logged)) {
+ return false;
+ }
+
+ if (defined('NET_SSH2_LOGGING') && NET_SSH2_LOGGING == self::LOG_COMPLEX) {
+ $this->message_number_log[count($this->message_number_log) - 1] = str_replace(
+ 'UNKNOWN',
+ 'NET_SSH2_MSG_USERAUTH_INFO_RESPONSE',
+ $this->message_number_log[count($this->message_number_log) - 1]
+ );
+ }
+
+ /*
+ After receiving the response, the server MUST send either an
+ SSH_MSG_USERAUTH_SUCCESS, SSH_MSG_USERAUTH_FAILURE, or another
+ SSH_MSG_USERAUTH_INFO_REQUEST message.
+ */
+ // maybe phpseclib should force close the connection after x request / responses? unless something like that is done
+ // there could be an infinite loop of request / responses.
+ return $this->_keyboard_interactive_process();
+ case NET_SSH2_MSG_USERAUTH_SUCCESS:
+ return true;
+ case NET_SSH2_MSG_USERAUTH_FAILURE:
+ return false;
+ }
+
+ return false;
+ }
+
+ /**
+ * Login with an ssh-agent provided key
+ *
+ * @param string $username
+ * @param \phpseclib\System\SSH\Agent $agent
+ * @return bool
+ * @access private
+ */
+ function _ssh_agent_login($username, $agent)
+ {
+ $this->agent = $agent;
+ $keys = $agent->requestIdentities();
+ foreach ($keys as $key) {
+ if ($this->_privatekey_login($username, $key)) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Login with an RSA private key
+ *
+ * @param string $username
+ * @param \phpseclib\Crypt\RSA $password
+ * @return bool
+ * @access private
+ * @internal It might be worthwhile, at some point, to protect against {@link http://tools.ietf.org/html/rfc4251#section-9.3.9 traffic analysis}
+ * by sending dummy SSH_MSG_IGNORE messages.
+ */
+ function _privatekey_login($username, $privatekey)
+ {
+ // see http://tools.ietf.org/html/rfc4253#page-15
+ $publickey = $privatekey->getPublicKey(RSA::PUBLIC_FORMAT_RAW);
+ if ($publickey === false) {
+ return false;
+ }
+
+ $publickey = array(
+ 'e' => $publickey['e']->toBytes(true),
+ 'n' => $publickey['n']->toBytes(true)
+ );
+ $publickey = pack(
+ 'Na*Na*Na*',
+ strlen('ssh-rsa'),
+ 'ssh-rsa',
+ strlen($publickey['e']),
+ $publickey['e'],
+ strlen($publickey['n']),
+ $publickey['n']
+ );
+
+ $part1 = pack(
+ 'CNa*Na*Na*',
+ NET_SSH2_MSG_USERAUTH_REQUEST,
+ strlen($username),
+ $username,
+ strlen('ssh-connection'),
+ 'ssh-connection',
+ strlen('publickey'),
+ 'publickey'
+ );
+ $part2 = pack('Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($publickey), $publickey);
+
+ $packet = $part1 . chr(0) . $part2;
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ switch ($type) {
+ case NET_SSH2_MSG_USERAUTH_FAILURE:
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $this->errors[] = 'SSH_MSG_USERAUTH_FAILURE: ' . $this->_string_shift($response, $length);
+ return false;
+ case NET_SSH2_MSG_USERAUTH_PK_OK:
+ // we'll just take it on faith that the public key blob and the public key algorithm name are as
+ // they should be
+ if (defined('NET_SSH2_LOGGING') && NET_SSH2_LOGGING == self::LOG_COMPLEX) {
+ $this->message_number_log[count($this->message_number_log) - 1] = str_replace(
+ 'UNKNOWN',
+ 'NET_SSH2_MSG_USERAUTH_PK_OK',
+ $this->message_number_log[count($this->message_number_log) - 1]
+ );
+ }
+ }
+
+ $packet = $part1 . chr(1) . $part2;
+ $privatekey->setSignatureMode(RSA::SIGNATURE_PKCS1);
+ $signature = $privatekey->sign(pack('Na*a*', strlen($this->session_id), $this->session_id, $packet));
+ $signature = pack('Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($signature), $signature);
+ $packet.= pack('Na*', strlen($signature), $signature);
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ switch ($type) {
+ case NET_SSH2_MSG_USERAUTH_FAILURE:
+ // either the login is bad or the server employs multi-factor authentication
+ return false;
+ case NET_SSH2_MSG_USERAUTH_SUCCESS:
+ $this->bitmap |= self::MASK_LOGIN;
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Set Timeout
+ *
+ * $ssh->exec('ping 127.0.0.1'); on a Linux host will never return and will run indefinitely. setTimeout() makes it so it'll timeout.
+ * Setting $timeout to false or 0 will mean there is no timeout.
+ *
+ * @param mixed $timeout
+ * @access public
+ */
+ function setTimeout($timeout)
+ {
+ $this->timeout = $this->curTimeout = $timeout;
+ }
+
+ /**
+ * Get the output from stdError
+ *
+ * @access public
+ */
+ function getStdError()
+ {
+ return $this->stdErrorLog;
+ }
+
+ /**
+ * Execute Command
+ *
+ * If $callback is set to false then \phpseclib\Net\SSH2::_get_channel_packet(self::CHANNEL_EXEC) will need to be called manually.
+ * In all likelihood, this is not a feature you want to be taking advantage of.
+ *
+ * @param string $command
+ * @param Callback $callback
+ * @return string
+ * @access public
+ */
+ function exec($command, $callback = null)
+ {
+ $this->curTimeout = $this->timeout;
+ $this->is_timeout = false;
+ $this->stdErrorLog = '';
+
+ if (!$this->isAuthenticated()) {
+ return false;
+ }
+
+ if ($this->in_request_pty_exec) {
+ user_error('If you want to run multiple exec()\'s you will need to disable (and re-enable if appropriate) a PTY for each one.');
+ return false;
+ }
+
+ // RFC4254 defines the (client) window size as "bytes the other party can send before it must wait for the window to
+ // be adjusted". 0x7FFFFFFF is, at 2GB, the max size. technically, it should probably be decremented, but,
+ // honestly, if you're transferring more than 2GB, you probably shouldn't be using phpseclib, anyway.
+ // see http://tools.ietf.org/html/rfc4254#section-5.2 for more info
+ $this->window_size_server_to_client[self::CHANNEL_EXEC] = $this->window_size;
+ // 0x8000 is the maximum max packet size, per http://tools.ietf.org/html/rfc4253#section-6.1, although since PuTTy
+ // uses 0x4000, that's what will be used here, as well.
+ $packet_size = 0x4000;
+
+ $packet = pack(
+ 'CNa*N3',
+ NET_SSH2_MSG_CHANNEL_OPEN,
+ strlen('session'),
+ 'session',
+ self::CHANNEL_EXEC,
+ $this->window_size_server_to_client[self::CHANNEL_EXEC],
+ $packet_size
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_OPEN;
+
+ $response = $this->_get_channel_packet(self::CHANNEL_EXEC);
+ if ($response === false) {
+ return false;
+ }
+
+ if ($this->request_pty === true) {
+ $terminal_modes = pack('C', NET_SSH2_TTY_OP_END);
+ $packet = pack(
+ 'CNNa*CNa*N5a*',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $this->server_channels[self::CHANNEL_EXEC],
+ strlen('pty-req'),
+ 'pty-req',
+ 1,
+ strlen('vt100'),
+ 'vt100',
+ $this->windowColumns,
+ $this->windowRows,
+ 0,
+ 0,
+ strlen($terminal_modes),
+ $terminal_modes
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ list(, $type) = unpack('C', $this->_string_shift($response, 1));
+
+ switch ($type) {
+ case NET_SSH2_MSG_CHANNEL_SUCCESS:
+ break;
+ case NET_SSH2_MSG_CHANNEL_FAILURE:
+ default:
+ user_error('Unable to request pseudo-terminal');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ }
+ $this->in_request_pty_exec = true;
+ }
+
+ // sending a pty-req SSH_MSG_CHANNEL_REQUEST message is unnecessary and, in fact, in most cases, slows things
+ // down. the one place where it might be desirable is if you're doing something like \phpseclib\Net\SSH2::exec('ping localhost &').
+ // with a pty-req SSH_MSG_CHANNEL_REQUEST, exec() will return immediately and the ping process will then
+ // then immediately terminate. without such a request exec() will loop indefinitely. the ping process won't end but
+ // neither will your script.
+
+ // although, in theory, the size of SSH_MSG_CHANNEL_REQUEST could exceed the maximum packet size established by
+ // SSH_MSG_CHANNEL_OPEN_CONFIRMATION, RFC4254#section-5.1 states that the "maximum packet size" refers to the
+ // "maximum size of an individual data packet". ie. SSH_MSG_CHANNEL_DATA. RFC4254#section-5.2 corroborates.
+ $packet = pack(
+ 'CNNa*CNa*',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $this->server_channels[self::CHANNEL_EXEC],
+ strlen('exec'),
+ 'exec',
+ 1,
+ strlen($command),
+ $command
+ );
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_REQUEST;
+
+ $response = $this->_get_channel_packet(self::CHANNEL_EXEC);
+ if ($response === false) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_DATA;
+
+ if ($callback === false || $this->in_request_pty_exec) {
+ return true;
+ }
+
+ $output = '';
+ while (true) {
+ $temp = $this->_get_channel_packet(self::CHANNEL_EXEC);
+ switch (true) {
+ case $temp === true:
+ return is_callable($callback) ? true : $output;
+ case $temp === false:
+ return false;
+ default:
+ if (is_callable($callback)) {
+ if (call_user_func($callback, $temp) === true) {
+ $this->_close_channel(self::CHANNEL_EXEC);
+ return true;
+ }
+ } else {
+ $output.= $temp;
+ }
+ }
+ }
+ }
+
+ /**
+ * Creates an interactive shell
+ *
+ * @see self::read()
+ * @see self::write()
+ * @return bool
+ * @access private
+ */
+ function _initShell()
+ {
+ if ($this->in_request_pty_exec === true) {
+ return true;
+ }
+
+ $this->window_size_server_to_client[self::CHANNEL_SHELL] = $this->window_size;
+ $packet_size = 0x4000;
+
+ $packet = pack(
+ 'CNa*N3',
+ NET_SSH2_MSG_CHANNEL_OPEN,
+ strlen('session'),
+ 'session',
+ self::CHANNEL_SHELL,
+ $this->window_size_server_to_client[self::CHANNEL_SHELL],
+ $packet_size
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_SHELL] = NET_SSH2_MSG_CHANNEL_OPEN;
+
+ $response = $this->_get_channel_packet(self::CHANNEL_SHELL);
+ if ($response === false) {
+ return false;
+ }
+
+ $terminal_modes = pack('C', NET_SSH2_TTY_OP_END);
+ $packet = pack(
+ 'CNNa*CNa*N5a*',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $this->server_channels[self::CHANNEL_SHELL],
+ strlen('pty-req'),
+ 'pty-req',
+ 1,
+ strlen('vt100'),
+ 'vt100',
+ $this->windowColumns,
+ $this->windowRows,
+ 0,
+ 0,
+ strlen($terminal_modes),
+ $terminal_modes
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ list(, $type) = unpack('C', $this->_string_shift($response, 1));
+
+ switch ($type) {
+ case NET_SSH2_MSG_CHANNEL_SUCCESS:
+ // if a pty can't be opened maybe commands can still be executed
+ case NET_SSH2_MSG_CHANNEL_FAILURE:
+ break;
+ default:
+ user_error('Unable to request pseudo-terminal');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ }
+
+ $packet = pack(
+ 'CNNa*C',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $this->server_channels[self::CHANNEL_SHELL],
+ strlen('shell'),
+ 'shell',
+ 1
+ );
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_SHELL] = NET_SSH2_MSG_CHANNEL_REQUEST;
+
+ $response = $this->_get_channel_packet(self::CHANNEL_SHELL);
+ if ($response === false) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_SHELL] = NET_SSH2_MSG_CHANNEL_DATA;
+
+ $this->bitmap |= self::MASK_SHELL;
+
+ return true;
+ }
+
+ /**
+ * Return the channel to be used with read() / write()
+ *
+ * @see self::read()
+ * @see self::write()
+ * @return int
+ * @access public
+ */
+ function _get_interactive_channel()
+ {
+ switch (true) {
+ case $this->in_subsystem:
+ return self::CHANNEL_SUBSYSTEM;
+ case $this->in_request_pty_exec:
+ return self::CHANNEL_EXEC;
+ default:
+ return self::CHANNEL_SHELL;
+ }
+ }
+
+ /**
+ * Return an available open channel
+ *
+ * @return int
+ * @access public
+ */
+ function _get_open_channel()
+ {
+ $channel = self::CHANNEL_EXEC;
+ do {
+ if (isset($this->channel_status[$channel]) && $this->channel_status[$channel] == NET_SSH2_MSG_CHANNEL_OPEN) {
+ return $channel;
+ }
+ } while ($channel++ < self::CHANNEL_SUBSYSTEM);
+
+ return false;
+ }
+
+ /**
+ * Returns the output of an interactive shell
+ *
+ * Returns when there's a match for $expect, which can take the form of a string literal or,
+ * if $mode == self::READ_REGEX, a regular expression.
+ *
+ * @see self::write()
+ * @param string $expect
+ * @param int $mode
+ * @return string
+ * @access public
+ */
+ function read($expect = '', $mode = self::READ_SIMPLE)
+ {
+ $this->curTimeout = $this->timeout;
+ $this->is_timeout = false;
+
+ if (!$this->isAuthenticated()) {
+ user_error('Operation disallowed prior to login()');
+ return false;
+ }
+
+ if (!($this->bitmap & self::MASK_SHELL) && !$this->_initShell()) {
+ user_error('Unable to initiate an interactive shell session');
+ return false;
+ }
+
+ $channel = $this->_get_interactive_channel();
+
+ $match = $expect;
+ while (true) {
+ if ($mode == self::READ_REGEX) {
+ preg_match($expect, substr($this->interactiveBuffer, -1024), $matches);
+ $match = isset($matches[0]) ? $matches[0] : '';
+ }
+ $pos = strlen($match) ? strpos($this->interactiveBuffer, $match) : false;
+ if ($pos !== false) {
+ return $this->_string_shift($this->interactiveBuffer, $pos + strlen($match));
+ }
+ $response = $this->_get_channel_packet($channel);
+ if (is_bool($response)) {
+ $this->in_request_pty_exec = false;
+ return $response ? $this->_string_shift($this->interactiveBuffer, strlen($this->interactiveBuffer)) : false;
+ }
+
+ $this->interactiveBuffer.= $response;
+ }
+ }
+
+ /**
+ * Inputs a command into an interactive shell.
+ *
+ * @see self::read()
+ * @param string $cmd
+ * @return bool
+ * @access public
+ */
+ function write($cmd)
+ {
+ if (!$this->isAuthenticated()) {
+ user_error('Operation disallowed prior to login()');
+ return false;
+ }
+
+ if (!($this->bitmap & self::MASK_SHELL) && !$this->_initShell()) {
+ user_error('Unable to initiate an interactive shell session');
+ return false;
+ }
+
+ return $this->_send_channel_packet($this->_get_interactive_channel(), $cmd);
+ }
+
+ /**
+ * Start a subsystem.
+ *
+ * Right now only one subsystem at a time is supported. To support multiple subsystem's stopSubsystem() could accept
+ * a string that contained the name of the subsystem, but at that point, only one subsystem of each type could be opened.
+ * To support multiple subsystem's of the same name maybe it'd be best if startSubsystem() generated a new channel id and
+ * returns that and then that that was passed into stopSubsystem() but that'll be saved for a future date and implemented
+ * if there's sufficient demand for such a feature.
+ *
+ * @see self::stopSubsystem()
+ * @param string $subsystem
+ * @return bool
+ * @access public
+ */
+ function startSubsystem($subsystem)
+ {
+ $this->window_size_server_to_client[self::CHANNEL_SUBSYSTEM] = $this->window_size;
+
+ $packet = pack(
+ 'CNa*N3',
+ NET_SSH2_MSG_CHANNEL_OPEN,
+ strlen('session'),
+ 'session',
+ self::CHANNEL_SUBSYSTEM,
+ $this->window_size,
+ 0x4000
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_SUBSYSTEM] = NET_SSH2_MSG_CHANNEL_OPEN;
+
+ $response = $this->_get_channel_packet(self::CHANNEL_SUBSYSTEM);
+ if ($response === false) {
+ return false;
+ }
+
+ $packet = pack(
+ 'CNNa*CNa*',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $this->server_channels[self::CHANNEL_SUBSYSTEM],
+ strlen('subsystem'),
+ 'subsystem',
+ 1,
+ strlen($subsystem),
+ $subsystem
+ );
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_SUBSYSTEM] = NET_SSH2_MSG_CHANNEL_REQUEST;
+
+ $response = $this->_get_channel_packet(self::CHANNEL_SUBSYSTEM);
+
+ if ($response === false) {
+ return false;
+ }
+
+ $this->channel_status[self::CHANNEL_SUBSYSTEM] = NET_SSH2_MSG_CHANNEL_DATA;
+
+ $this->bitmap |= self::MASK_SHELL;
+ $this->in_subsystem = true;
+
+ return true;
+ }
+
+ /**
+ * Stops a subsystem.
+ *
+ * @see self::startSubsystem()
+ * @return bool
+ * @access public
+ */
+ function stopSubsystem()
+ {
+ $this->in_subsystem = false;
+ $this->_close_channel(self::CHANNEL_SUBSYSTEM);
+ return true;
+ }
+
+ /**
+ * Closes a channel
+ *
+ * If read() timed out you might want to just close the channel and have it auto-restart on the next read() call
+ *
+ * @access public
+ */
+ function reset()
+ {
+ $this->_close_channel($this->_get_interactive_channel());
+ }
+
+ /**
+ * Is timeout?
+ *
+ * Did exec() or read() return because they timed out or because they encountered the end?
+ *
+ * @access public
+ */
+ function isTimeout()
+ {
+ return $this->is_timeout;
+ }
+
+ /**
+ * Disconnect
+ *
+ * @access public
+ */
+ function disconnect()
+ {
+ $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ if (isset($this->realtime_log_file) && is_resource($this->realtime_log_file)) {
+ fclose($this->realtime_log_file);
+ }
+ }
+
+ /**
+ * Destructor.
+ *
+ * Will be called, automatically, if you're supporting just PHP5. If you're supporting PHP4, you'll need to call
+ * disconnect().
+ *
+ * @access public
+ */
+ function __destruct()
+ {
+ $this->disconnect();
+ }
+
+ /**
+ * Is the connection still active?
+ *
+ * @return bool
+ * @access public
+ */
+ function isConnected()
+ {
+ return (bool) ($this->bitmap & self::MASK_CONNECTED);
+ }
+
+ /**
+ * Have you successfully been logged in?
+ *
+ * @return bool
+ * @access public
+ */
+ function isAuthenticated()
+ {
+ return (bool) ($this->bitmap & self::MASK_LOGIN);
+ }
+
+ /**
+ * Gets Binary Packets
+ *
+ * See '6. Binary Packet Protocol' of rfc4253 for more info.
+ *
+ * @see self::_send_binary_packet()
+ * @return string
+ * @access private
+ */
+ function _get_binary_packet()
+ {
+ if (!is_resource($this->fsock) || feof($this->fsock)) {
+ user_error('Connection closed prematurely');
+ $this->bitmap = 0;
+ return false;
+ }
+
+ $start = microtime(true);
+ $raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
+
+ if (!strlen($raw)) {
+ return '';
+ }
+
+ if ($this->decrypt !== false) {
+ $raw = $this->decrypt->decrypt($raw);
+ }
+ if ($raw === false) {
+ user_error('Unable to decrypt content');
+ return false;
+ }
+
+ if (strlen($raw) < 5) {
+ return false;
+ }
+ extract(unpack('Npacket_length/Cpadding_length', $this->_string_shift($raw, 5)));
+
+ $remaining_length = $packet_length + 4 - $this->decrypt_block_size;
+
+ // quoting <http://tools.ietf.org/html/rfc4253#section-6.1>,
+ // "implementations SHOULD check that the packet length is reasonable"
+ // PuTTY uses 0x9000 as the actual max packet size and so to shall we
+ if ($remaining_length < -$this->decrypt_block_size || $remaining_length > 0x9000 || $remaining_length % $this->decrypt_block_size != 0) {
+ user_error('Invalid size');
+ return false;
+ }
+
+ $buffer = '';
+ while ($remaining_length > 0) {
+ $temp = stream_get_contents($this->fsock, $remaining_length);
+ if ($temp === false || feof($this->fsock)) {
+ user_error('Error reading from socket');
+ $this->bitmap = 0;
+ return false;
+ }
+ $buffer.= $temp;
+ $remaining_length-= strlen($temp);
+ }
+ $stop = microtime(true);
+ if (strlen($buffer)) {
+ $raw.= $this->decrypt !== false ? $this->decrypt->decrypt($buffer) : $buffer;
+ }
+
+ $payload = $this->_string_shift($raw, $packet_length - $padding_length - 1);
+ $padding = $this->_string_shift($raw, $padding_length); // should leave $raw empty
+
+ if ($this->hmac_check !== false) {
+ $hmac = stream_get_contents($this->fsock, $this->hmac_size);
+ if ($hmac === false || strlen($hmac) != $this->hmac_size) {
+ user_error('Error reading socket');
+ $this->bitmap = 0;
+ return false;
+ } elseif ($hmac != $this->hmac_check->hash(pack('NNCa*', $this->get_seq_no, $packet_length, $padding_length, $payload . $padding))) {
+ user_error('Invalid HMAC');
+ return false;
+ }
+ }
+
+ //if ($this->decompress) {
+ // $payload = gzinflate(substr($payload, 2));
+ //}
+
+ $this->get_seq_no++;
+
+ if (defined('NET_SSH2_LOGGING')) {
+ $current = microtime(true);
+ $message_number = isset($this->message_numbers[ord($payload[0])]) ? $this->message_numbers[ord($payload[0])] : 'UNKNOWN (' . ord($payload[0]) . ')';
+ $message_number = '<- ' . $message_number .
+ ' (since last: ' . round($current - $this->last_packet, 4) . ', network: ' . round($stop - $start, 4) . 's)';
+ $this->_append_log($message_number, $payload);
+ $this->last_packet = $current;
+ }
+
+ return $this->_filter($payload);
+ }
+
+ /**
+ * Filter Binary Packets
+ *
+ * Because some binary packets need to be ignored...
+ *
+ * @see self::_get_binary_packet()
+ * @return string
+ * @access private
+ */
+ function _filter($payload)
+ {
+ switch (ord($payload[0])) {
+ case NET_SSH2_MSG_DISCONNECT:
+ $this->_string_shift($payload, 1);
+ if (strlen($payload) < 8) {
+ return false;
+ }
+ extract(unpack('Nreason_code/Nlength', $this->_string_shift($payload, 8)));
+ $this->errors[] = 'SSH_MSG_DISCONNECT: ' . $this->disconnect_reasons[$reason_code] . "\r\n" . utf8_decode($this->_string_shift($payload, $length));
+ $this->bitmap = 0;
+ return false;
+ case NET_SSH2_MSG_IGNORE:
+ $payload = $this->_get_binary_packet();
+ break;
+ case NET_SSH2_MSG_DEBUG:
+ $this->_string_shift($payload, 2);
+ if (strlen($payload) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($payload, 4)));
+ $this->errors[] = 'SSH_MSG_DEBUG: ' . utf8_decode($this->_string_shift($payload, $length));
+ $payload = $this->_get_binary_packet();
+ break;
+ case NET_SSH2_MSG_UNIMPLEMENTED:
+ return false;
+ case NET_SSH2_MSG_KEXINIT:
+ if ($this->session_id !== false) {
+ if (!$this->_key_exchange($payload)) {
+ $this->bitmap = 0;
+ return false;
+ }
+ $payload = $this->_get_binary_packet();
+ }
+ }
+
+ // see http://tools.ietf.org/html/rfc4252#section-5.4; only called when the encryption has been activated and when we haven't already logged in
+ if (($this->bitmap & self::MASK_CONNECTED) && !$this->isAuthenticated() && ord($payload[0]) == NET_SSH2_MSG_USERAUTH_BANNER) {
+ $this->_string_shift($payload, 1);
+ if (strlen($payload) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($payload, 4)));
+ $this->banner_message = utf8_decode($this->_string_shift($payload, $length));
+ $payload = $this->_get_binary_packet();
+ }
+
+ // only called when we've already logged in
+ if (($this->bitmap & self::MASK_CONNECTED) && $this->isAuthenticated()) {
+ switch (ord($payload[0])) {
+ case NET_SSH2_MSG_GLOBAL_REQUEST: // see http://tools.ietf.org/html/rfc4254#section-4
+ if (strlen($payload) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($payload, 4)));
+ $this->errors[] = 'SSH_MSG_GLOBAL_REQUEST: ' . $this->_string_shift($payload, $length);
+
+ if (!$this->_send_binary_packet(pack('C', NET_SSH2_MSG_REQUEST_FAILURE))) {
+ return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ }
+
+ $payload = $this->_get_binary_packet();
+ break;
+ case NET_SSH2_MSG_CHANNEL_OPEN: // see http://tools.ietf.org/html/rfc4254#section-5.1
+ $this->_string_shift($payload, 1);
+ if (strlen($payload) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($payload, 4)));
+ $data = $this->_string_shift($payload, $length);
+ if (strlen($payload) < 4) {
+ return false;
+ }
+ extract(unpack('Nserver_channel', $this->_string_shift($payload, 4)));
+ switch ($data) {
+ case 'auth-agent':
+ case 'auth-agent@openssh.com':
+ if (isset($this->agent)) {
+ $new_channel = self::CHANNEL_AGENT_FORWARD;
+
+ if (strlen($payload) < 8) {
+ return false;
+ }
+ extract(unpack('Nremote_window_size', $this->_string_shift($payload, 4)));
+ extract(unpack('Nremote_maximum_packet_size', $this->_string_shift($payload, 4)));
+
+ $this->packet_size_client_to_server[$new_channel] = $remote_window_size;
+ $this->window_size_server_to_client[$new_channel] = $remote_maximum_packet_size;
+ $this->window_size_client_to_server[$new_channel] = $this->window_size;
+
+ $packet_size = 0x4000;
+
+ $packet = pack(
+ 'CN4',
+ NET_SSH2_MSG_CHANNEL_OPEN_CONFIRMATION,
+ $server_channel,
+ $new_channel,
+ $packet_size,
+ $packet_size
+ );
+
+ $this->server_channels[$new_channel] = $server_channel;
+ $this->channel_status[$new_channel] = NET_SSH2_MSG_CHANNEL_OPEN_CONFIRMATION;
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+ }
+ break;
+ default:
+ $packet = pack(
+ 'CN3a*Na*',
+ NET_SSH2_MSG_REQUEST_FAILURE,
+ $server_channel,
+ NET_SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED,
+ 0,
+ '',
+ 0,
+ ''
+ );
+
+ if (!$this->_send_binary_packet($packet)) {
+ return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ }
+ }
+ $payload = $this->_get_binary_packet();
+ break;
+ case NET_SSH2_MSG_CHANNEL_WINDOW_ADJUST:
+ $this->_string_shift($payload, 1);
+ if (strlen($payload) < 8) {
+ return false;
+ }
+ extract(unpack('Nchannel', $this->_string_shift($payload, 4)));
+ extract(unpack('Nwindow_size', $this->_string_shift($payload, 4)));
+ $this->window_size_client_to_server[$channel]+= $window_size;
+
+ $payload = ($this->bitmap & self::MASK_WINDOW_ADJUST) ? true : $this->_get_binary_packet();
+ }
+ }
+
+ return $payload;
+ }
+
+ /**
+ * Enable Quiet Mode
+ *
+ * Suppress stderr from output
+ *
+ * @access public
+ */
+ function enableQuietMode()
+ {
+ $this->quiet_mode = true;
+ }
+
+ /**
+ * Disable Quiet Mode
+ *
+ * Show stderr in output
+ *
+ * @access public
+ */
+ function disableQuietMode()
+ {
+ $this->quiet_mode = false;
+ }
+
+ /**
+ * Returns whether Quiet Mode is enabled or not
+ *
+ * @see self::enableQuietMode()
+ * @see self::disableQuietMode()
+ * @access public
+ * @return bool
+ */
+ function isQuietModeEnabled()
+ {
+ return $this->quiet_mode;
+ }
+
+ /**
+ * Enable request-pty when using exec()
+ *
+ * @access public
+ */
+ function enablePTY()
+ {
+ $this->request_pty = true;
+ }
+
+ /**
+ * Disable request-pty when using exec()
+ *
+ * @access public
+ */
+ function disablePTY()
+ {
+ if ($this->in_request_pty_exec) {
+ $this->_close_channel(self::CHANNEL_EXEC);
+ $this->in_request_pty_exec = false;
+ }
+ $this->request_pty = false;
+ }
+
+ /**
+ * Returns whether request-pty is enabled or not
+ *
+ * @see self::enablePTY()
+ * @see self::disablePTY()
+ * @access public
+ * @return bool
+ */
+ function isPTYEnabled()
+ {
+ return $this->request_pty;
+ }
+
+ /**
+ * Gets channel data
+ *
+ * Returns the data as a string if it's available and false if not.
+ *
+ * @param $client_channel
+ * @return mixed
+ * @access private
+ */
+ function _get_channel_packet($client_channel, $skip_extended = false)
+ {
+ if (!empty($this->channel_buffers[$client_channel])) {
+ return array_shift($this->channel_buffers[$client_channel]);
+ }
+
+ while (true) {
+ if ($this->curTimeout) {
+ if ($this->curTimeout < 0) {
+ $this->is_timeout = true;
+ return true;
+ }
+
+ $read = array($this->fsock);
+ $write = $except = null;
+
+ $start = microtime(true);
+ $sec = floor($this->curTimeout);
+ $usec = 1000000 * ($this->curTimeout - $sec);
+ // on windows this returns a "Warning: Invalid CRT parameters detected" error
+ if (!@stream_select($read, $write, $except, $sec, $usec) && !count($read)) {
+ $this->is_timeout = true;
+ return true;
+ }
+ $elapsed = microtime(true) - $start;
+ $this->curTimeout-= $elapsed;
+ }
+
+ $response = $this->_get_binary_packet();
+ if ($response === false) {
+ user_error('Connection closed by server');
+ return false;
+ }
+ if ($client_channel == -1 && $response === true) {
+ return true;
+ }
+ if (!strlen($response)) {
+ return '';
+ }
+
+ if (!strlen($response)) {
+ return false;
+ }
+ extract(unpack('Ctype', $this->_string_shift($response, 1)));
+
+ if (strlen($response) < 4) {
+ return false;
+ }
+ if ($type == NET_SSH2_MSG_CHANNEL_OPEN) {
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ } else {
+ extract(unpack('Nchannel', $this->_string_shift($response, 4)));
+ }
+
+ // will not be setup yet on incoming channel open request
+ if (isset($channel) && isset($this->channel_status[$channel]) && isset($this->window_size_server_to_client[$channel])) {
+ $this->window_size_server_to_client[$channel]-= strlen($response);
+
+ // resize the window, if appropriate
+ if ($this->window_size_server_to_client[$channel] < 0) {
+ $packet = pack('CNN', NET_SSH2_MSG_CHANNEL_WINDOW_ADJUST, $this->server_channels[$channel], $this->window_size);
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+ $this->window_size_server_to_client[$channel]+= $this->window_size;
+ }
+
+ switch ($this->channel_status[$channel]) {
+ case NET_SSH2_MSG_CHANNEL_OPEN:
+ switch ($type) {
+ case NET_SSH2_MSG_CHANNEL_OPEN_CONFIRMATION:
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nserver_channel', $this->_string_shift($response, 4)));
+ $this->server_channels[$channel] = $server_channel;
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nwindow_size', $this->_string_shift($response, 4)));
+ if ($window_size < 0) {
+ $window_size&= 0x7FFFFFFF;
+ $window_size+= 0x80000000;
+ }
+ $this->window_size_client_to_server[$channel] = $window_size;
+ if (strlen($response) < 4) {
+ return false;
+ }
+ $temp = unpack('Npacket_size_client_to_server', $this->_string_shift($response, 4));
+ $this->packet_size_client_to_server[$channel] = $temp['packet_size_client_to_server'];
+ $result = $client_channel == $channel ? true : $this->_get_channel_packet($client_channel, $skip_extended);
+ $this->_on_channel_open();
+ return $result;
+ //case NET_SSH2_MSG_CHANNEL_OPEN_FAILURE:
+ default:
+ user_error('Unable to open channel');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ }
+ break;
+ case NET_SSH2_MSG_CHANNEL_REQUEST:
+ switch ($type) {
+ case NET_SSH2_MSG_CHANNEL_SUCCESS:
+ return true;
+ case NET_SSH2_MSG_CHANNEL_FAILURE:
+ return false;
+ default:
+ user_error('Unable to fulfill channel request');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ }
+ case NET_SSH2_MSG_CHANNEL_CLOSE:
+ return $type == NET_SSH2_MSG_CHANNEL_CLOSE ? true : $this->_get_channel_packet($client_channel, $skip_extended);
+ }
+ }
+
+ // ie. $this->channel_status[$channel] == NET_SSH2_MSG_CHANNEL_DATA
+
+ switch ($type) {
+ case NET_SSH2_MSG_CHANNEL_DATA:
+ /*
+ if ($channel == self::CHANNEL_EXEC) {
+ // SCP requires null packets, such as this, be sent. further, in the case of the ssh.com SSH server
+ // this actually seems to make things twice as fast. more to the point, the message right after
+ // SSH_MSG_CHANNEL_DATA (usually SSH_MSG_IGNORE) won't block for as long as it would have otherwise.
+ // in OpenSSH it slows things down but only by a couple thousandths of a second.
+ $this->_send_channel_packet($channel, chr(0));
+ }
+ */
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $data = $this->_string_shift($response, $length);
+
+ if ($channel == self::CHANNEL_AGENT_FORWARD) {
+ $agent_response = $this->agent->_forward_data($data);
+ if (!is_bool($agent_response)) {
+ $this->_send_channel_packet($channel, $agent_response);
+ }
+ break;
+ }
+
+ if ($client_channel == $channel) {
+ return $data;
+ }
+ if (!isset($this->channel_buffers[$channel])) {
+ $this->channel_buffers[$channel] = array();
+ }
+ $this->channel_buffers[$channel][] = $data;
+ break;
+ case NET_SSH2_MSG_CHANNEL_EXTENDED_DATA:
+ /*
+ if ($client_channel == self::CHANNEL_EXEC) {
+ $this->_send_channel_packet($client_channel, chr(0));
+ }
+ */
+ // currently, there's only one possible value for $data_type_code: NET_SSH2_EXTENDED_DATA_STDERR
+ if (strlen($response) < 8) {
+ return false;
+ }
+ extract(unpack('Ndata_type_code/Nlength', $this->_string_shift($response, 8)));
+ $data = $this->_string_shift($response, $length);
+ $this->stdErrorLog.= $data;
+ if ($skip_extended || $this->quiet_mode) {
+ break;
+ }
+ if ($client_channel == $channel) {
+ return $data;
+ }
+ if (!isset($this->channel_buffers[$channel])) {
+ $this->channel_buffers[$channel] = array();
+ }
+ $this->channel_buffers[$channel][] = $data;
+ break;
+ case NET_SSH2_MSG_CHANNEL_REQUEST:
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $value = $this->_string_shift($response, $length);
+ switch ($value) {
+ case 'exit-signal':
+ $this->_string_shift($response, 1);
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ $this->errors[] = 'SSH_MSG_CHANNEL_REQUEST (exit-signal): ' . $this->_string_shift($response, $length);
+ $this->_string_shift($response, 1);
+ if (strlen($response) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($response, 4)));
+ if ($length) {
+ $this->errors[count($this->errors)].= "\r\n" . $this->_string_shift($response, $length);
+ }
+
+ $this->_send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_EOF, $this->server_channels[$client_channel]));
+ $this->_send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_CLOSE, $this->server_channels[$channel]));
+
+ $this->channel_status[$channel] = NET_SSH2_MSG_CHANNEL_EOF;
+
+ break;
+ case 'exit-status':
+ if (strlen($response) < 5) {
+ return false;
+ }
+ extract(unpack('Cfalse/Nexit_status', $this->_string_shift($response, 5)));
+ $this->exit_status = $exit_status;
+
+ // "The client MAY ignore these messages."
+ // -- http://tools.ietf.org/html/rfc4254#section-6.10
+
+ break;
+ default:
+ // "Some systems may not implement signals, in which case they SHOULD ignore this message."
+ // -- http://tools.ietf.org/html/rfc4254#section-6.9
+ break;
+ }
+ break;
+ case NET_SSH2_MSG_CHANNEL_CLOSE:
+ $this->curTimeout = 0;
+
+ if ($this->bitmap & self::MASK_SHELL) {
+ $this->bitmap&= ~self::MASK_SHELL;
+ }
+ if ($this->channel_status[$channel] != NET_SSH2_MSG_CHANNEL_EOF) {
+ $this->_send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_CLOSE, $this->server_channels[$channel]));
+ }
+
+ $this->channel_status[$channel] = NET_SSH2_MSG_CHANNEL_CLOSE;
+ if ($client_channel == $channel) {
+ return true;
+ }
+ case NET_SSH2_MSG_CHANNEL_EOF:
+ break;
+ default:
+ user_error('Error reading channel data');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
+ }
+ }
+ }
+
+ /**
+ * Sends Binary Packets
+ *
+ * See '6. Binary Packet Protocol' of rfc4253 for more info.
+ *
+ * @param string $data
+ * @param string $logged
+ * @see self::_get_binary_packet()
+ * @return bool
+ * @access private
+ */
+ function _send_binary_packet($data, $logged = null)
+ {
+ if (!is_resource($this->fsock) || feof($this->fsock)) {
+ user_error('Connection closed prematurely');
+ $this->bitmap = 0;
+ return false;
+ }
+
+ //if ($this->compress) {
+ // // the -4 removes the checksum:
+ // // http://php.net/function.gzcompress#57710
+ // $data = substr(gzcompress($data), 0, -4);
+ //}
+
+ // 4 (packet length) + 1 (padding length) + 4 (minimal padding amount) == 9
+ $packet_length = strlen($data) + 9;
+ // round up to the nearest $this->encrypt_block_size
+ $packet_length+= (($this->encrypt_block_size - 1) * $packet_length) % $this->encrypt_block_size;
+ // subtracting strlen($data) is obvious - subtracting 5 is necessary because of packet_length and padding_length
+ $padding_length = $packet_length - strlen($data) - 5;
+ $padding = Random::string($padding_length);
+
+ // we subtract 4 from packet_length because the packet_length field isn't supposed to include itself
+ $packet = pack('NCa*', $packet_length - 4, $padding_length, $data . $padding);
+
+ $hmac = $this->hmac_create !== false ? $this->hmac_create->hash(pack('Na*', $this->send_seq_no, $packet)) : '';
+ $this->send_seq_no++;
+
+ if ($this->encrypt !== false) {
+ $packet = $this->encrypt->encrypt($packet);
+ }
+
+ $packet.= $hmac;
+
+ $start = microtime(true);
+ $result = strlen($packet) == fputs($this->fsock, $packet);
+ $stop = microtime(true);
+
+ if (defined('NET_SSH2_LOGGING')) {
+ $current = microtime(true);
+ $message_number = isset($this->message_numbers[ord($data[0])]) ? $this->message_numbers[ord($data[0])] : 'UNKNOWN (' . ord($data[0]) . ')';
+ $message_number = '-> ' . $message_number .
+ ' (since last: ' . round($current - $this->last_packet, 4) . ', network: ' . round($stop - $start, 4) . 's)';
+ $this->_append_log($message_number, isset($logged) ? $logged : $data);
+ $this->last_packet = $current;
+ }
+
+ return $result;
+ }
+
+ /**
+ * Logs data packets
+ *
+ * Makes sure that only the last 1MB worth of packets will be logged
+ *
+ * @param string $data
+ * @access private
+ */
+ function _append_log($message_number, $message)
+ {
+ // remove the byte identifying the message type from all but the first two messages (ie. the identification strings)
+ if (strlen($message_number) > 2) {
+ $this->_string_shift($message);
+ }
+
+ switch (NET_SSH2_LOGGING) {
+ // useful for benchmarks
+ case self::LOG_SIMPLE:
+ $this->message_number_log[] = $message_number;
+ break;
+ // the most useful log for SSH2
+ case self::LOG_COMPLEX:
+ $this->message_number_log[] = $message_number;
+ $this->log_size+= strlen($message);
+ $this->message_log[] = $message;
+ while ($this->log_size > self::LOG_MAX_SIZE) {
+ $this->log_size-= strlen(array_shift($this->message_log));
+ array_shift($this->message_number_log);
+ }
+ break;
+ // dump the output out realtime; packets may be interspersed with non packets,
+ // passwords won't be filtered out and select other packets may not be correctly
+ // identified
+ case self::LOG_REALTIME:
+ switch (PHP_SAPI) {
+ case 'cli':
+ $start = $stop = "\r\n";
+ break;
+ default:
+ $start = '<pre>';
+ $stop = '</pre>';
+ }
+ echo $start . $this->_format_log(array($message), array($message_number)) . $stop;
+ @flush();
+ @ob_flush();
+ break;
+ // basically the same thing as self::LOG_REALTIME with the caveat that self::LOG_REALTIME_FILE
+ // needs to be defined and that the resultant log file will be capped out at self::LOG_MAX_SIZE.
+ // the earliest part of the log file is denoted by the first <<< START >>> and is not going to necessarily
+ // at the beginning of the file
+ case self::LOG_REALTIME_FILE:
+ if (!isset($this->realtime_log_file)) {
+ // PHP doesn't seem to like using constants in fopen()
+ $filename = self::LOG_REALTIME_FILENAME;
+ $fp = fopen($filename, 'w');
+ $this->realtime_log_file = $fp;
+ }
+ if (!is_resource($this->realtime_log_file)) {
+ break;
+ }
+ $entry = $this->_format_log(array($message), array($message_number));
+ if ($this->realtime_log_wrap) {
+ $temp = "<<< START >>>\r\n";
+ $entry.= $temp;
+ fseek($this->realtime_log_file, ftell($this->realtime_log_file) - strlen($temp));
+ }
+ $this->realtime_log_size+= strlen($entry);
+ if ($this->realtime_log_size > self::LOG_MAX_SIZE) {
+ fseek($this->realtime_log_file, 0);
+ $this->realtime_log_size = strlen($entry);
+ $this->realtime_log_wrap = true;
+ }
+ fputs($this->realtime_log_file, $entry);
+ }
+ }
+
+ /**
+ * Sends channel data
+ *
+ * Spans multiple SSH_MSG_CHANNEL_DATAs if appropriate
+ *
+ * @param int $client_channel
+ * @param string $data
+ * @return bool
+ * @access private
+ */
+ function _send_channel_packet($client_channel, $data)
+ {
+ while (strlen($data)) {
+ if (!$this->window_size_client_to_server[$client_channel]) {
+ $this->bitmap^= self::MASK_WINDOW_ADJUST;
+ // using an invalid channel will let the buffers be built up for the valid channels
+ $this->_get_channel_packet(-1);
+ $this->bitmap^= self::MASK_WINDOW_ADJUST;
+ }
+
+ /* The maximum amount of data allowed is determined by the maximum
+ packet size for the channel, and the current window size, whichever
+ is smaller.
+ -- http://tools.ietf.org/html/rfc4254#section-5.2 */
+ $max_size = min(
+ $this->packet_size_client_to_server[$client_channel],
+ $this->window_size_client_to_server[$client_channel]
+ );
+
+ $temp = $this->_string_shift($data, $max_size);
+ $packet = pack(
+ 'CN2a*',
+ NET_SSH2_MSG_CHANNEL_DATA,
+ $this->server_channels[$client_channel],
+ strlen($temp),
+ $temp
+ );
+ $this->window_size_client_to_server[$client_channel]-= strlen($temp);
+ if (!$this->_send_binary_packet($packet)) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Closes and flushes a channel
+ *
+ * \phpseclib\Net\SSH2 doesn't properly close most channels. For exec() channels are normally closed by the server
+ * and for SFTP channels are presumably closed when the client disconnects. This functions is intended
+ * for SCP more than anything.
+ *
+ * @param int $client_channel
+ * @param bool $want_reply
+ * @return bool
+ * @access private
+ */
+ function _close_channel($client_channel, $want_reply = false)
+ {
+ // see http://tools.ietf.org/html/rfc4254#section-5.3
+
+ $this->_send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_EOF, $this->server_channels[$client_channel]));
+
+ if (!$want_reply) {
+ $this->_send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_CLOSE, $this->server_channels[$client_channel]));
+ }
+
+ $this->channel_status[$client_channel] = NET_SSH2_MSG_CHANNEL_CLOSE;
+
+ $this->curTimeout = 0;
+
+ while (!is_bool($this->_get_channel_packet($client_channel))) {
+ }
+
+ if ($want_reply) {
+ $this->_send_binary_packet(pack('CN', NET_SSH2_MSG_CHANNEL_CLOSE, $this->server_channels[$client_channel]));
+ }
+
+ if ($this->bitmap & self::MASK_SHELL) {
+ $this->bitmap&= ~self::MASK_SHELL;
+ }
+ }
+
+ /**
+ * Disconnect
+ *
+ * @param int $reason
+ * @return bool
+ * @access private
+ */
+ function _disconnect($reason)
+ {
+ if ($this->bitmap & self::MASK_CONNECTED) {
+ $data = pack('CNNa*Na*', NET_SSH2_MSG_DISCONNECT, $reason, 0, '', 0, '');
+ $this->_send_binary_packet($data);
+ $this->bitmap = 0;
+ fclose($this->fsock);
+ return false;
+ }
+ }
+
+ /**
+ * String Shift
+ *
+ * Inspired by array_shift
+ *
+ * @param string $string
+ * @param int $index
+ * @return string
+ * @access private
+ */
+ function _string_shift(&$string, $index = 1)
+ {
+ $substr = substr($string, 0, $index);
+ $string = substr($string, $index);
+ return $substr;
+ }
+
+ /**
+ * Define Array
+ *
+ * Takes any number of arrays whose indices are integers and whose values are strings and defines a bunch of
+ * named constants from it, using the value as the name of the constant and the index as the value of the constant.
+ * If any of the constants that would be defined already exists, none of the constants will be defined.
+ *
+ * @param array $array
+ * @access private
+ */
+ function _define_array()
+ {
+ $args = func_get_args();
+ foreach ($args as $arg) {
+ foreach ($arg as $key => $value) {
+ if (!defined($value)) {
+ define($value, $key);
+ } else {
+ break 2;
+ }
+ }
+ }
+ }
+
+ /**
+ * Returns a log of the packets that have been sent and received.
+ *
+ * Returns a string if NET_SSH2_LOGGING == self::LOG_COMPLEX, an array if NET_SSH2_LOGGING == self::LOG_SIMPLE and false if !defined('NET_SSH2_LOGGING')
+ *
+ * @access public
+ * @return array|false|string
+ */
+ function getLog()
+ {
+ if (!defined('NET_SSH2_LOGGING')) {
+ return false;
+ }
+
+ switch (NET_SSH2_LOGGING) {
+ case self::LOG_SIMPLE:
+ return $this->message_number_log;
+ case self::LOG_COMPLEX:
+ $log = $this->_format_log($this->message_log, $this->message_number_log);
+ return PHP_SAPI == 'cli' ? $log : '<pre>' . $log . '</pre>';
+ default:
+ return false;
+ }
+ }
+
+ /**
+ * Formats a log for printing
+ *
+ * @param array $message_log
+ * @param array $message_number_log
+ * @access private
+ * @return string
+ */
+ function _format_log($message_log, $message_number_log)
+ {
+ $output = '';
+ for ($i = 0; $i < count($message_log); $i++) {
+ $output.= $message_number_log[$i] . "\r\n";
+ $current_log = $message_log[$i];
+ $j = 0;
+ do {
+ if (strlen($current_log)) {
+ $output.= str_pad(dechex($j), 7, '0', STR_PAD_LEFT) . '0 ';
+ }
+ $fragment = $this->_string_shift($current_log, $this->log_short_width);
+ $hex = substr(preg_replace_callback('#.#s', array($this, '_format_log_helper'), $fragment), strlen($this->log_boundary));
+ // replace non ASCII printable characters with dots
+ // http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters
+ // also replace < with a . since < messes up the output on web browsers
+ $raw = preg_replace('#[^\x20-\x7E]|<#', '.', $fragment);
+ $output.= str_pad($hex, $this->log_long_width - $this->log_short_width, ' ') . $raw . "\r\n";
+ $j++;
+ } while (strlen($current_log));
+ $output.= "\r\n";
+ }
+
+ return $output;
+ }
+
+ /**
+ * Helper function for _format_log
+ *
+ * For use with preg_replace_callback()
+ *
+ * @param array $matches
+ * @access private
+ * @return string
+ */
+ function _format_log_helper($matches)
+ {
+ return $this->log_boundary . str_pad(dechex(ord($matches[0])), 2, '0', STR_PAD_LEFT);
+ }
+
+ /**
+ * Helper function for agent->_on_channel_open()
+ *
+ * Used when channels are created to inform agent
+ * of said channel opening. Must be called after
+ * channel open confirmation received
+ *
+ * @access private
+ */
+ function _on_channel_open()
+ {
+ if (isset($this->agent)) {
+ $this->agent->_on_channel_open($this);
+ }
+ }
+
+ /**
+ * Returns the first value of the intersection of two arrays or false if
+ * the intersection is empty. The order is defined by the first parameter.
+ *
+ * @param array $array1
+ * @param array $array2
+ * @return mixed False if intersection is empty, else intersected value.
+ * @access private
+ */
+ function _array_intersect_first($array1, $array2)
+ {
+ foreach ($array1 as $value) {
+ if (in_array($value, $array2)) {
+ return $value;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Returns all errors
+ *
+ * @return string[]
+ * @access public
+ */
+ function getErrors()
+ {
+ return $this->errors;
+ }
+
+ /**
+ * Returns the last error
+ *
+ * @return string
+ * @access public
+ */
+ function getLastError()
+ {
+ $count = count($this->errors);
+
+ if ($count > 0) {
+ return $this->errors[$count - 1];
+ }
+ }
+
+ /**
+ * Return the server identification.
+ *
+ * @return string
+ * @access public
+ */
+ function getServerIdentification()
+ {
+ $this->_connect();
+
+ return $this->server_identifier;
+ }
+
+ /**
+ * Return a list of the key exchange algorithms the server supports.
+ *
+ * @return array
+ * @access public
+ */
+ function getKexAlgorithms()
+ {
+ $this->_connect();
+
+ return $this->kex_algorithms;
+ }
+
+ /**
+ * Return a list of the host key (public key) algorithms the server supports.
+ *
+ * @return array
+ * @access public
+ */
+ function getServerHostKeyAlgorithms()
+ {
+ $this->_connect();
+
+ return $this->server_host_key_algorithms;
+ }
+
+ /**
+ * Return a list of the (symmetric key) encryption algorithms the server supports, when receiving stuff from the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getEncryptionAlgorithmsClient2Server()
+ {
+ $this->_connect();
+
+ return $this->encryption_algorithms_client_to_server;
+ }
+
+ /**
+ * Return a list of the (symmetric key) encryption algorithms the server supports, when sending stuff to the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getEncryptionAlgorithmsServer2Client()
+ {
+ $this->_connect();
+
+ return $this->encryption_algorithms_server_to_client;
+ }
+
+ /**
+ * Return a list of the MAC algorithms the server supports, when receiving stuff from the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getMACAlgorithmsClient2Server()
+ {
+ $this->_connect();
+
+ return $this->mac_algorithms_client_to_server;
+ }
+
+ /**
+ * Return a list of the MAC algorithms the server supports, when sending stuff to the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getMACAlgorithmsServer2Client()
+ {
+ $this->_connect();
+
+ return $this->mac_algorithms_server_to_client;
+ }
+
+ /**
+ * Return a list of the compression algorithms the server supports, when receiving stuff from the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getCompressionAlgorithmsClient2Server()
+ {
+ $this->_connect();
+
+ return $this->compression_algorithms_client_to_server;
+ }
+
+ /**
+ * Return a list of the compression algorithms the server supports, when sending stuff to the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getCompressionAlgorithmsServer2Client()
+ {
+ $this->_connect();
+
+ return $this->compression_algorithms_server_to_client;
+ }
+
+ /**
+ * Return a list of the languages the server supports, when sending stuff to the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getLanguagesServer2Client()
+ {
+ $this->_connect();
+
+ return $this->languages_server_to_client;
+ }
+
+ /**
+ * Return a list of the languages the server supports, when receiving stuff from the client.
+ *
+ * @return array
+ * @access public
+ */
+ function getLanguagesClient2Server()
+ {
+ $this->_connect();
+
+ return $this->languages_client_to_server;
+ }
+
+ /**
+ * Returns the banner message.
+ *
+ * Quoting from the RFC, "in some jurisdictions, sending a warning message before
+ * authentication may be relevant for getting legal protection."
+ *
+ * @return string
+ * @access public
+ */
+ function getBannerMessage()
+ {
+ return $this->banner_message;
+ }
+
+ /**
+ * Returns the server public host key.
+ *
+ * Caching this the first time you connect to a server and checking the result on subsequent connections
+ * is recommended. Returns false if the server signature is not signed correctly with the public host key.
+ *
+ * @return mixed
+ * @access public
+ */
+ function getServerPublicHostKey()
+ {
+ if (!($this->bitmap & self::MASK_CONSTRUCTOR)) {
+ if (!$this->_connect()) {
+ return false;
+ }
+ }
+
+ $signature = $this->signature;
+ $server_public_host_key = $this->server_public_host_key;
+
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ extract(unpack('Nlength', $this->_string_shift($server_public_host_key, 4)));
+ $this->_string_shift($server_public_host_key, $length);
+
+ if ($this->signature_validated) {
+ return $this->bitmap ?
+ $this->signature_format . ' ' . base64_encode($this->server_public_host_key) :
+ false;
+ }
+
+ $this->signature_validated = true;
+
+ switch ($this->signature_format) {
+ case 'ssh-dss':
+ $zero = new BigInteger();
+
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4));
+ $p = new BigInteger($this->_string_shift($server_public_host_key, $temp['length']), -256);
+
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4));
+ $q = new BigInteger($this->_string_shift($server_public_host_key, $temp['length']), -256);
+
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4));
+ $g = new BigInteger($this->_string_shift($server_public_host_key, $temp['length']), -256);
+
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4));
+ $y = new BigInteger($this->_string_shift($server_public_host_key, $temp['length']), -256);
+
+ /* The value for 'dss_signature_blob' is encoded as a string containing
+ r, followed by s (which are 160-bit integers, without lengths or
+ padding, unsigned, and in network byte order). */
+ $temp = unpack('Nlength', $this->_string_shift($signature, 4));
+ if ($temp['length'] != 40) {
+ user_error('Invalid signature');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ $r = new BigInteger($this->_string_shift($signature, 20), 256);
+ $s = new BigInteger($this->_string_shift($signature, 20), 256);
+
+ switch (true) {
+ case $r->equals($zero):
+ case $r->compare($q) >= 0:
+ case $s->equals($zero):
+ case $s->compare($q) >= 0:
+ user_error('Invalid signature');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ $w = $s->modInverse($q);
+
+ $u1 = $w->multiply(new BigInteger(sha1($this->exchange_hash), 16));
+ list(, $u1) = $u1->divide($q);
+
+ $u2 = $w->multiply($r);
+ list(, $u2) = $u2->divide($q);
+
+ $g = $g->modPow($u1, $p);
+ $y = $y->modPow($u2, $p);
+
+ $v = $g->multiply($y);
+ list(, $v) = $v->divide($p);
+ list(, $v) = $v->divide($q);
+
+ if (!$v->equals($r)) {
+ user_error('Bad server signature');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE);
+ }
+
+ break;
+ case 'ssh-rsa':
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4));
+ $e = new BigInteger($this->_string_shift($server_public_host_key, $temp['length']), -256);
+
+ if (strlen($server_public_host_key) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4));
+ $rawN = $this->_string_shift($server_public_host_key, $temp['length']);
+ $n = new BigInteger($rawN, -256);
+ $nLength = strlen(ltrim($rawN, "\0"));
+
+ /*
+ if (strlen($signature) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($signature, 4));
+ $signature = $this->_string_shift($signature, $temp['length']);
+
+ $rsa = new RSA();
+ $rsa->setSignatureMode(RSA::SIGNATURE_PKCS1);
+ $rsa->loadKey(array('e' => $e, 'n' => $n), RSA::PUBLIC_FORMAT_RAW);
+ if (!$rsa->verify($this->exchange_hash, $signature)) {
+ user_error('Bad server signature');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE);
+ }
+ */
+
+ if (strlen($signature) < 4) {
+ return false;
+ }
+ $temp = unpack('Nlength', $this->_string_shift($signature, 4));
+ $s = new BigInteger($this->_string_shift($signature, $temp['length']), 256);
+
+ // validate an RSA signature per "8.2 RSASSA-PKCS1-v1_5", "5.2.2 RSAVP1", and "9.1 EMSA-PSS" in the
+ // following URL:
+ // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf
+
+ // also, see SSHRSA.c (rsa2_verifysig) in PuTTy's source.
+
+ if ($s->compare(new BigInteger()) < 0 || $s->compare($n->subtract(new BigInteger(1))) > 0) {
+ user_error('Invalid signature');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
+ }
+
+ $s = $s->modPow($e, $n);
+ $s = $s->toBytes();
+
+ $h = pack('N4H*', 0x00302130, 0x0906052B, 0x0E03021A, 0x05000414, sha1($this->exchange_hash));
+ $h = chr(0x01) . str_repeat(chr(0xFF), $nLength - 2 - strlen($h)) . $h;
+
+ if ($s != $h) {
+ user_error('Bad server signature');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE);
+ }
+ break;
+ default:
+ user_error('Unsupported signature format');
+ return $this->_disconnect(NET_SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE);
+ }
+
+ return $this->signature_format . ' ' . base64_encode($this->server_public_host_key);
+ }
+
+ /**
+ * Returns the exit status of an SSH command or false.
+ *
+ * @return false|int
+ * @access public
+ */
+ function getExitStatus()
+ {
+ if (is_null($this->exit_status)) {
+ return false;
+ }
+ return $this->exit_status;
+ }
+
+ /**
+ * Returns the number of columns for the terminal window size.
+ *
+ * @return int
+ * @access public
+ */
+ function getWindowColumns()
+ {
+ return $this->windowColumns;
+ }
+
+ /**
+ * Returns the number of rows for the terminal window size.
+ *
+ * @return int
+ * @access public
+ */
+ function getWindowRows()
+ {
+ return $this->windowRows;
+ }
+
+ /**
+ * Sets the number of columns for the terminal window size.
+ *
+ * @param int $value
+ * @access public
+ */
+ function setWindowColumns($value)
+ {
+ $this->windowColumns = $value;
+ }
+
+ /**
+ * Sets the number of rows for the terminal window size.
+ *
+ * @param int $value
+ * @access public
+ */
+ function setWindowRows($value)
+ {
+ $this->windowRows = $value;
+ }
+
+ /**
+ * Sets the number of columns and rows for the terminal window size.
+ *
+ * @param int $columns
+ * @param int $rows
+ * @access public
+ */
+ function setWindowSize($columns = 80, $rows = 24)
+ {
+ $this->windowColumns = $columns;
+ $this->windowRows = $rows;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php
new file mode 100644
index 00000000..a4ff0549
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php
@@ -0,0 +1,308 @@
+<?php
+
+/**
+ * Pure-PHP ssh-agent client.
+ *
+ * PHP version 5
+ *
+ * Here are some examples of how to use this library:
+ * <code>
+ * <?php
+ * include 'vendor/autoload.php';
+ *
+ * $agent = new \phpseclib\System\SSH\Agent();
+ *
+ * $ssh = new \phpseclib\Net\SSH2('www.domain.tld');
+ * if (!$ssh->login('username', $agent)) {
+ * exit('Login Failed');
+ * }
+ *
+ * echo $ssh->exec('pwd');
+ * echo $ssh->exec('ls -la');
+ * ?>
+ * </code>
+ *
+ * @category System
+ * @package SSH\Agent
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2014 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ * @internal See http://api.libssh.org/rfc/PROTOCOL.agent
+ */
+
+namespace phpseclib\System\SSH;
+
+use phpseclib\Crypt\RSA;
+use phpseclib\System\SSH\Agent\Identity;
+
+/**
+ * Pure-PHP ssh-agent client identity factory
+ *
+ * requestIdentities() method pumps out \phpseclib\System\SSH\Agent\Identity objects
+ *
+ * @package SSH\Agent
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access internal
+ */
+class Agent
+{
+ /**#@+
+ * Message numbers
+ *
+ * @access private
+ */
+ // to request SSH1 keys you have to use SSH_AGENTC_REQUEST_RSA_IDENTITIES (1)
+ const SSH_AGENTC_REQUEST_IDENTITIES = 11;
+ // this is the SSH2 response; the SSH1 response is SSH_AGENT_RSA_IDENTITIES_ANSWER (2).
+ const SSH_AGENT_IDENTITIES_ANSWER = 12;
+ // the SSH1 request is SSH_AGENTC_RSA_CHALLENGE (3)
+ const SSH_AGENTC_SIGN_REQUEST = 13;
+ // the SSH1 response is SSH_AGENT_RSA_RESPONSE (4)
+ const SSH_AGENT_SIGN_RESPONSE = 14;
+ /**#@-*/
+
+ /**@+
+ * Agent forwarding status
+ *
+ * @access private
+ */
+ // no forwarding requested and not active
+ const FORWARD_NONE = 0;
+ // request agent forwarding when opportune
+ const FORWARD_REQUEST = 1;
+ // forwarding has been request and is active
+ const FORWARD_ACTIVE = 2;
+ /**#@-*/
+
+ /**
+ * Unused
+ */
+ const SSH_AGENT_FAILURE = 5;
+
+ /**
+ * Socket Resource
+ *
+ * @var resource
+ * @access private
+ */
+ var $fsock;
+
+ /**
+ * Agent forwarding status
+ *
+ * @access private
+ */
+ var $forward_status = self::FORWARD_NONE;
+
+ /**
+ * Buffer for accumulating forwarded authentication
+ * agent data arriving on SSH data channel destined
+ * for agent unix socket
+ *
+ * @access private
+ */
+ var $socket_buffer = '';
+
+ /**
+ * Tracking the number of bytes we are expecting
+ * to arrive for the agent socket on the SSH data
+ * channel
+ */
+ var $expected_bytes = 0;
+
+ /**
+ * Default Constructor
+ *
+ * @return \phpseclib\System\SSH\Agent
+ * @access public
+ */
+ function __construct()
+ {
+ switch (true) {
+ case isset($_SERVER['SSH_AUTH_SOCK']):
+ $address = $_SERVER['SSH_AUTH_SOCK'];
+ break;
+ case isset($_ENV['SSH_AUTH_SOCK']):
+ $address = $_ENV['SSH_AUTH_SOCK'];
+ break;
+ default:
+ user_error('SSH_AUTH_SOCK not found');
+ return false;
+ }
+
+ $this->fsock = fsockopen('unix://' . $address, 0, $errno, $errstr);
+ if (!$this->fsock) {
+ user_error("Unable to connect to ssh-agent (Error $errno: $errstr)");
+ }
+ }
+
+ /**
+ * Request Identities
+ *
+ * See "2.5.2 Requesting a list of protocol 2 keys"
+ * Returns an array containing zero or more \phpseclib\System\SSH\Agent\Identity objects
+ *
+ * @return array
+ * @access public
+ */
+ function requestIdentities()
+ {
+ if (!$this->fsock) {
+ return array();
+ }
+
+ $packet = pack('NC', 1, self::SSH_AGENTC_REQUEST_IDENTITIES);
+ if (strlen($packet) != fputs($this->fsock, $packet)) {
+ user_error('Connection closed while requesting identities');
+ }
+
+ $length = current(unpack('N', fread($this->fsock, 4)));
+ $type = ord(fread($this->fsock, 1));
+ if ($type != self::SSH_AGENT_IDENTITIES_ANSWER) {
+ user_error('Unable to request identities');
+ }
+
+ $identities = array();
+ $keyCount = current(unpack('N', fread($this->fsock, 4)));
+ for ($i = 0; $i < $keyCount; $i++) {
+ $length = current(unpack('N', fread($this->fsock, 4)));
+ $key_blob = fread($this->fsock, $length);
+ $key_str = 'ssh-rsa ' . base64_encode($key_blob);
+ $length = current(unpack('N', fread($this->fsock, 4)));
+ if ($length) {
+ $key_str.= ' ' . fread($this->fsock, $length);
+ }
+ $length = current(unpack('N', substr($key_blob, 0, 4)));
+ $key_type = substr($key_blob, 4, $length);
+ switch ($key_type) {
+ case 'ssh-rsa':
+ $key = new RSA();
+ $key->loadKey($key_str);
+ break;
+ case 'ssh-dss':
+ // not currently supported
+ break;
+ }
+ // resources are passed by reference by default
+ if (isset($key)) {
+ $identity = new Identity($this->fsock);
+ $identity->setPublicKey($key);
+ $identity->setPublicKeyBlob($key_blob);
+ $identities[] = $identity;
+ unset($key);
+ }
+ }
+
+ return $identities;
+ }
+
+ /**
+ * Signal that agent forwarding should
+ * be requested when a channel is opened
+ *
+ * @param Net_SSH2 $ssh
+ * @return bool
+ * @access public
+ */
+ function startSSHForwarding($ssh)
+ {
+ if ($this->forward_status == self::FORWARD_NONE) {
+ $this->forward_status = self::FORWARD_REQUEST;
+ }
+ }
+
+ /**
+ * Request agent forwarding of remote server
+ *
+ * @param Net_SSH2 $ssh
+ * @return bool
+ * @access private
+ */
+ function _request_forwarding($ssh)
+ {
+ $request_channel = $ssh->_get_open_channel();
+ if ($request_channel === false) {
+ return false;
+ }
+
+ $packet = pack(
+ 'CNNa*C',
+ NET_SSH2_MSG_CHANNEL_REQUEST,
+ $ssh->server_channels[$request_channel],
+ strlen('auth-agent-req@openssh.com'),
+ 'auth-agent-req@openssh.com',
+ 1
+ );
+
+ $ssh->channel_status[$request_channel] = NET_SSH2_MSG_CHANNEL_REQUEST;
+
+ if (!$ssh->_send_binary_packet($packet)) {
+ return false;
+ }
+
+ $response = $ssh->_get_channel_packet($request_channel);
+ if ($response === false) {
+ return false;
+ }
+
+ $ssh->channel_status[$request_channel] = NET_SSH2_MSG_CHANNEL_OPEN;
+ $this->forward_status = self::FORWARD_ACTIVE;
+
+ return true;
+ }
+
+ /**
+ * On successful channel open
+ *
+ * This method is called upon successful channel
+ * open to give the SSH Agent an opportunity
+ * to take further action. i.e. request agent forwarding
+ *
+ * @param Net_SSH2 $ssh
+ * @access private
+ */
+ function _on_channel_open($ssh)
+ {
+ if ($this->forward_status == self::FORWARD_REQUEST) {
+ $this->_request_forwarding($ssh);
+ }
+ }
+
+ /**
+ * Forward data to SSH Agent and return data reply
+ *
+ * @param string $data
+ * @return data from SSH Agent
+ * @access private
+ */
+ function _forward_data($data)
+ {
+ if ($this->expected_bytes > 0) {
+ $this->socket_buffer.= $data;
+ $this->expected_bytes -= strlen($data);
+ } else {
+ $agent_data_bytes = current(unpack('N', $data));
+ $current_data_bytes = strlen($data);
+ $this->socket_buffer = $data;
+ if ($current_data_bytes != $agent_data_bytes + 4) {
+ $this->expected_bytes = ($agent_data_bytes + 4) - $current_data_bytes;
+ return false;
+ }
+ }
+
+ if (strlen($this->socket_buffer) != fwrite($this->fsock, $this->socket_buffer)) {
+ user_error('Connection closed attempting to forward data to SSH agent');
+ }
+
+ $this->socket_buffer = '';
+ $this->expected_bytes = 0;
+
+ $agent_reply_bytes = current(unpack('N', fread($this->fsock, 4)));
+
+ $agent_reply_data = fread($this->fsock, $agent_reply_bytes);
+ $agent_reply_data = current(unpack('a*', $agent_reply_data));
+
+ return pack('Na*', $agent_reply_bytes, $agent_reply_data);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php
new file mode 100644
index 00000000..b8cc6cde
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php
@@ -0,0 +1,158 @@
+<?php
+/**
+ * Pure-PHP ssh-agent client.
+ *
+ * PHP version 5
+ *
+ * @category System
+ * @package SSH\Agent
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @copyright 2009 Jim Wigginton
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ * @link http://phpseclib.sourceforge.net
+ * @internal See http://api.libssh.org/rfc/PROTOCOL.agent
+ */
+
+namespace phpseclib\System\SSH\Agent;
+
+use phpseclib\System\SSH\Agent;
+
+/**
+ * Pure-PHP ssh-agent client identity object
+ *
+ * Instantiation should only be performed by \phpseclib\System\SSH\Agent class.
+ * This could be thought of as implementing an interface that phpseclib\Crypt\RSA
+ * implements. ie. maybe a Net_SSH_Auth_PublicKey interface or something.
+ * The methods in this interface would be getPublicKey and sign since those are the
+ * methods phpseclib looks for to perform public key authentication.
+ *
+ * @package SSH\Agent
+ * @author Jim Wigginton <terrafrost@php.net>
+ * @access internal
+ */
+class Identity
+{
+ /**
+ * Key Object
+ *
+ * @var \phpseclib\Crypt\RSA
+ * @access private
+ * @see self::getPublicKey()
+ */
+ var $key;
+
+ /**
+ * Key Blob
+ *
+ * @var string
+ * @access private
+ * @see self::sign()
+ */
+ var $key_blob;
+
+ /**
+ * Socket Resource
+ *
+ * @var resource
+ * @access private
+ * @see self::sign()
+ */
+ var $fsock;
+
+ /**
+ * Default Constructor.
+ *
+ * @param resource $fsock
+ * @return \phpseclib\System\SSH\Agent\Identity
+ * @access private
+ */
+ function __construct($fsock)
+ {
+ $this->fsock = $fsock;
+ }
+
+ /**
+ * Set Public Key
+ *
+ * Called by \phpseclib\System\SSH\Agent::requestIdentities()
+ *
+ * @param \phpseclib\Crypt\RSA $key
+ * @access private
+ */
+ function setPublicKey($key)
+ {
+ $this->key = $key;
+ $this->key->setPublicKey();
+ }
+
+ /**
+ * Set Public Key
+ *
+ * Called by \phpseclib\System\SSH\Agent::requestIdentities(). The key blob could be extracted from $this->key
+ * but this saves a small amount of computation.
+ *
+ * @param string $key_blob
+ * @access private
+ */
+ function setPublicKeyBlob($key_blob)
+ {
+ $this->key_blob = $key_blob;
+ }
+
+ /**
+ * Get Public Key
+ *
+ * Wrapper for $this->key->getPublicKey()
+ *
+ * @param int $format optional
+ * @return mixed
+ * @access public
+ */
+ function getPublicKey($format = null)
+ {
+ return !isset($format) ? $this->key->getPublicKey() : $this->key->getPublicKey($format);
+ }
+
+ /**
+ * Set Signature Mode
+ *
+ * Doesn't do anything as ssh-agent doesn't let you pick and choose the signature mode. ie.
+ * ssh-agent's only supported mode is \phpseclib\Crypt\RSA::SIGNATURE_PKCS1
+ *
+ * @param int $mode
+ * @access public
+ */
+ function setSignatureMode($mode)
+ {
+ }
+
+ /**
+ * Create a signature
+ *
+ * See "2.6.2 Protocol 2 private key signature request"
+ *
+ * @param string $message
+ * @return string
+ * @access public
+ */
+ function sign($message)
+ {
+ // the last parameter (currently 0) is for flags and ssh-agent only defines one flag (for ssh-dss): SSH_AGENT_OLD_SIGNATURE
+ $packet = pack('CNa*Na*N', Agent::SSH_AGENTC_SIGN_REQUEST, strlen($this->key_blob), $this->key_blob, strlen($message), $message, 0);
+ $packet = pack('Na*', strlen($packet), $packet);
+ if (strlen($packet) != fputs($this->fsock, $packet)) {
+ user_error('Connection closed during signing');
+ }
+
+ $length = current(unpack('N', fread($this->fsock, 4)));
+ $type = ord(fread($this->fsock, 1));
+ if ($type != Agent::SSH_AGENT_SIGN_RESPONSE) {
+ user_error('Unable to retrieve signature');
+ }
+
+ $signature_blob = fread($this->fsock, $length - 1);
+ // the only other signature format defined - ssh-dss - is the same length as ssh-rsa
+ // the + 12 is for the other various SSH added length fields
+ return substr($signature_blob, strlen('ssh-rsa') + 12);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/bootstrap.php b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/bootstrap.php
new file mode 100644
index 00000000..0da0999f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/bootstrap.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Bootstrapping File for phpseclib
+ *
+ * @license http://www.opensource.org/licenses/mit-license.html MIT License
+ */
+
+if (extension_loaded('mbstring')) {
+ // 2 - MB_OVERLOAD_STRING
+ if (ini_get('mbstring.func_overload') & 2) {
+ throw new \UnexpectedValueException(
+ 'Overloading of string functions using mbstring.func_overload ' .
+ 'is not supported by phpseclib.'
+ );
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/openssl.cnf b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/openssl.cnf
new file mode 100644
index 00000000..2b8b52f9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/phpseclib/phpseclib/phpseclib/openssl.cnf
@@ -0,0 +1,6 @@
+# minimalist openssl.cnf file for use with phpseclib
+
+HOME = .
+RANDFILE = $ENV::HOME/.rnd
+
+[ v3_ca ]
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/CHANGELOG.md b/mayor-orig/www/include/share/googleapi/psr/cache/CHANGELOG.md
new file mode 100644
index 00000000..58ddab05
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/CHANGELOG.md
@@ -0,0 +1,16 @@
+# Changelog
+
+All notable changes to this project will be documented in this file, in reverse chronological order by release.
+
+## 1.0.1 - 2016-08-06
+
+### Fixed
+
+- Make spacing consistent in phpdoc annotations php-fig/cache#9 - chalasr
+- Fix grammar in phpdoc annotations php-fig/cache#10 - chalasr
+- Be more specific in docblocks that `getItems()` and `deleteItems()` take an array of strings (`string[]`) compared to just `array` php-fig/cache#8 - GrahamCampbell
+- For `expiresAt()` and `expiresAfter()` in CacheItemInterface fix docblock to specify null as a valid parameters as well as an implementation of DateTimeInterface php-fig/cache#7 - GrahamCampbell
+
+## 1.0.0 - 2015-12-11
+
+Initial stable release; reflects accepted PSR-6 specification
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/LICENSE.txt b/mayor-orig/www/include/share/googleapi/psr/cache/LICENSE.txt
new file mode 100644
index 00000000..b1c2c97b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/LICENSE.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2015 PHP Framework Interoperability Group
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/README.md b/mayor-orig/www/include/share/googleapi/psr/cache/README.md
new file mode 100644
index 00000000..c8706cee
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/README.md
@@ -0,0 +1,9 @@
+PSR Cache
+=========
+
+This repository holds all interfaces defined by
+[PSR-6](http://www.php-fig.org/psr/psr-6/).
+
+Note that this is not a Cache implementation of its own. It is merely an
+interface that describes a Cache implementation. See the specification for more
+details.
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/composer.json b/mayor-orig/www/include/share/googleapi/psr/cache/composer.json
new file mode 100644
index 00000000..e828fec9
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/composer.json
@@ -0,0 +1,25 @@
+{
+ "name": "psr/cache",
+ "description": "Common interface for caching libraries",
+ "keywords": ["psr", "psr-6", "cache"],
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Cache\\": "src/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheException.php b/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheException.php
new file mode 100644
index 00000000..e27f22f8
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheException.php
@@ -0,0 +1,10 @@
+<?php
+
+namespace Psr\Cache;
+
+/**
+ * Exception interface for all exceptions thrown by an Implementing Library.
+ */
+interface CacheException
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemInterface.php b/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemInterface.php
new file mode 100644
index 00000000..63d05dd1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemInterface.php
@@ -0,0 +1,105 @@
+<?php
+
+namespace Psr\Cache;
+
+/**
+ * CacheItemInterface defines an interface for interacting with objects inside a cache.
+ *
+ * Each Item object MUST be associated with a specific key, which can be set
+ * according to the implementing system and is typically passed by the
+ * Cache\CacheItemPoolInterface object.
+ *
+ * The Cache\CacheItemInterface object encapsulates the storage and retrieval of
+ * cache items. Each Cache\CacheItemInterface is generated by a
+ * Cache\CacheItemPoolInterface object, which is responsible for any required
+ * setup as well as associating the object with a unique Key.
+ * Cache\CacheItemInterface objects MUST be able to store and retrieve any type
+ * of PHP value defined in the Data section of the specification.
+ *
+ * Calling Libraries MUST NOT instantiate Item objects themselves. They may only
+ * be requested from a Pool object via the getItem() method. Calling Libraries
+ * SHOULD NOT assume that an Item created by one Implementing Library is
+ * compatible with a Pool from another Implementing Library.
+ */
+interface CacheItemInterface
+{
+ /**
+ * Returns the key for the current cache item.
+ *
+ * The key is loaded by the Implementing Library, but should be available to
+ * the higher level callers when needed.
+ *
+ * @return string
+ * The key string for this cache item.
+ */
+ public function getKey();
+
+ /**
+ * Retrieves the value of the item from the cache associated with this object's key.
+ *
+ * The value returned must be identical to the value originally stored by set().
+ *
+ * If isHit() returns false, this method MUST return null. Note that null
+ * is a legitimate cached value, so the isHit() method SHOULD be used to
+ * differentiate between "null value was found" and "no value was found."
+ *
+ * @return mixed
+ * The value corresponding to this cache item's key, or null if not found.
+ */
+ public function get();
+
+ /**
+ * Confirms if the cache item lookup resulted in a cache hit.
+ *
+ * Note: This method MUST NOT have a race condition between calling isHit()
+ * and calling get().
+ *
+ * @return bool
+ * True if the request resulted in a cache hit. False otherwise.
+ */
+ public function isHit();
+
+ /**
+ * Sets the value represented by this cache item.
+ *
+ * The $value argument may be any item that can be serialized by PHP,
+ * although the method of serialization is left up to the Implementing
+ * Library.
+ *
+ * @param mixed $value
+ * The serializable value to be stored.
+ *
+ * @return static
+ * The invoked object.
+ */
+ public function set($value);
+
+ /**
+ * Sets the expiration time for this cache item.
+ *
+ * @param \DateTimeInterface|null $expiration
+ * The point in time after which the item MUST be considered expired.
+ * If null is passed explicitly, a default value MAY be used. If none is set,
+ * the value should be stored permanently or for as long as the
+ * implementation allows.
+ *
+ * @return static
+ * The called object.
+ */
+ public function expiresAt($expiration);
+
+ /**
+ * Sets the expiration time for this cache item.
+ *
+ * @param int|\DateInterval|null $time
+ * The period of time from the present after which the item MUST be considered
+ * expired. An integer parameter is understood to be the time in seconds until
+ * expiration. If null is passed explicitly, a default value MAY be used.
+ * If none is set, the value should be stored permanently or for as long as the
+ * implementation allows.
+ *
+ * @return static
+ * The called object.
+ */
+ public function expiresAfter($time);
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemPoolInterface.php b/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemPoolInterface.php
new file mode 100644
index 00000000..03514196
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/src/CacheItemPoolInterface.php
@@ -0,0 +1,138 @@
+<?php
+
+namespace Psr\Cache;
+
+/**
+ * CacheItemPoolInterface generates CacheItemInterface objects.
+ *
+ * The primary purpose of Cache\CacheItemPoolInterface is to accept a key from
+ * the Calling Library and return the associated Cache\CacheItemInterface object.
+ * It is also the primary point of interaction with the entire cache collection.
+ * All configuration and initialization of the Pool is left up to an
+ * Implementing Library.
+ */
+interface CacheItemPoolInterface
+{
+ /**
+ * Returns a Cache Item representing the specified key.
+ *
+ * This method must always return a CacheItemInterface object, even in case of
+ * a cache miss. It MUST NOT return null.
+ *
+ * @param string $key
+ * The key for which to return the corresponding Cache Item.
+ *
+ * @throws InvalidArgumentException
+ * If the $key string is not a legal value a \Psr\Cache\InvalidArgumentException
+ * MUST be thrown.
+ *
+ * @return CacheItemInterface
+ * The corresponding Cache Item.
+ */
+ public function getItem($key);
+
+ /**
+ * Returns a traversable set of cache items.
+ *
+ * @param string[] $keys
+ * An indexed array of keys of items to retrieve.
+ *
+ * @throws InvalidArgumentException
+ * If any of the keys in $keys are not a legal value a \Psr\Cache\InvalidArgumentException
+ * MUST be thrown.
+ *
+ * @return array|\Traversable
+ * A traversable collection of Cache Items keyed by the cache keys of
+ * each item. A Cache item will be returned for each key, even if that
+ * key is not found. However, if no keys are specified then an empty
+ * traversable MUST be returned instead.
+ */
+ public function getItems(array $keys = array());
+
+ /**
+ * Confirms if the cache contains specified cache item.
+ *
+ * Note: This method MAY avoid retrieving the cached value for performance reasons.
+ * This could result in a race condition with CacheItemInterface::get(). To avoid
+ * such situation use CacheItemInterface::isHit() instead.
+ *
+ * @param string $key
+ * The key for which to check existence.
+ *
+ * @throws InvalidArgumentException
+ * If the $key string is not a legal value a \Psr\Cache\InvalidArgumentException
+ * MUST be thrown.
+ *
+ * @return bool
+ * True if item exists in the cache, false otherwise.
+ */
+ public function hasItem($key);
+
+ /**
+ * Deletes all items in the pool.
+ *
+ * @return bool
+ * True if the pool was successfully cleared. False if there was an error.
+ */
+ public function clear();
+
+ /**
+ * Removes the item from the pool.
+ *
+ * @param string $key
+ * The key to delete.
+ *
+ * @throws InvalidArgumentException
+ * If the $key string is not a legal value a \Psr\Cache\InvalidArgumentException
+ * MUST be thrown.
+ *
+ * @return bool
+ * True if the item was successfully removed. False if there was an error.
+ */
+ public function deleteItem($key);
+
+ /**
+ * Removes multiple items from the pool.
+ *
+ * @param string[] $keys
+ * An array of keys that should be removed from the pool.
+
+ * @throws InvalidArgumentException
+ * If any of the keys in $keys are not a legal value a \Psr\Cache\InvalidArgumentException
+ * MUST be thrown.
+ *
+ * @return bool
+ * True if the items were successfully removed. False if there was an error.
+ */
+ public function deleteItems(array $keys);
+
+ /**
+ * Persists a cache item immediately.
+ *
+ * @param CacheItemInterface $item
+ * The cache item to save.
+ *
+ * @return bool
+ * True if the item was successfully persisted. False if there was an error.
+ */
+ public function save(CacheItemInterface $item);
+
+ /**
+ * Sets a cache item to be persisted later.
+ *
+ * @param CacheItemInterface $item
+ * The cache item to save.
+ *
+ * @return bool
+ * False if the item could not be queued or if a commit was attempted and failed. True otherwise.
+ */
+ public function saveDeferred(CacheItemInterface $item);
+
+ /**
+ * Persists any deferred cache items.
+ *
+ * @return bool
+ * True if all not-yet-saved items were successfully saved or there were none. False otherwise.
+ */
+ public function commit();
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/cache/src/InvalidArgumentException.php b/mayor-orig/www/include/share/googleapi/psr/cache/src/InvalidArgumentException.php
new file mode 100644
index 00000000..be7c6fa0
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/cache/src/InvalidArgumentException.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Psr\Cache;
+
+/**
+ * Exception interface for invalid cache arguments.
+ *
+ * Any time an invalid argument is passed into a method it must throw an
+ * exception class which implements Psr\Cache\InvalidArgumentException.
+ */
+interface InvalidArgumentException extends CacheException
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/CHANGELOG.md b/mayor-orig/www/include/share/googleapi/psr/http-message/CHANGELOG.md
new file mode 100644
index 00000000..74b1ef92
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/CHANGELOG.md
@@ -0,0 +1,36 @@
+# Changelog
+
+All notable changes to this project will be documented in this file, in reverse chronological order by release.
+
+## 1.0.1 - 2016-08-06
+
+### Added
+
+- Nothing.
+
+### Deprecated
+
+- Nothing.
+
+### Removed
+
+- Nothing.
+
+### Fixed
+
+- Updated all `@return self` annotation references in interfaces to use
+ `@return static`, which more closelly follows the semantics of the
+ specification.
+- Updated the `MessageInterface::getHeaders()` return annotation to use the
+ value `string[][]`, indicating the format is a nested array of strings.
+- Updated the `@link` annotation for `RequestInterface::withRequestTarget()`
+ to point to the correct section of RFC 7230.
+- Updated the `ServerRequestInterface::withUploadedFiles()` parameter annotation
+ to add the parameter name (`$uploadedFiles`).
+- Updated a `@throws` annotation for the `UploadedFileInterface::moveTo()`
+ method to correctly reference the method parameter (it was referencing an
+ incorrect parameter name previously).
+
+## 1.0.0 - 2016-05-18
+
+Initial stable release; reflects accepted PSR-7 specification.
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/LICENSE b/mayor-orig/www/include/share/googleapi/psr/http-message/LICENSE
new file mode 100644
index 00000000..c2d8e452
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2014 PHP Framework Interoperability Group
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/README.md b/mayor-orig/www/include/share/googleapi/psr/http-message/README.md
new file mode 100644
index 00000000..28185338
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/README.md
@@ -0,0 +1,13 @@
+PSR Http Message
+================
+
+This repository holds all interfaces/classes/traits related to
+[PSR-7](http://www.php-fig.org/psr/psr-7/).
+
+Note that this is not a HTTP message implementation of its own. It is merely an
+interface that describes a HTTP message. See the specification for more details.
+
+Usage
+-----
+
+We'll certainly need some stuff in here. \ No newline at end of file
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/composer.json b/mayor-orig/www/include/share/googleapi/psr/http-message/composer.json
new file mode 100644
index 00000000..b0d2937a
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/composer.json
@@ -0,0 +1,26 @@
+{
+ "name": "psr/http-message",
+ "description": "Common interface for HTTP messages",
+ "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"],
+ "homepage": "https://github.com/php-fig/http-message",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Http\\Message\\": "src/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/src/MessageInterface.php b/mayor-orig/www/include/share/googleapi/psr/http-message/src/MessageInterface.php
new file mode 100644
index 00000000..dd46e5ec
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/src/MessageInterface.php
@@ -0,0 +1,187 @@
+<?php
+
+namespace Psr\Http\Message;
+
+/**
+ * HTTP messages consist of requests from a client to a server and responses
+ * from a server to a client. This interface defines the methods common to
+ * each.
+ *
+ * Messages are considered immutable; all methods that might change state MUST
+ * be implemented such that they retain the internal state of the current
+ * message and return an instance that contains the changed state.
+ *
+ * @link http://www.ietf.org/rfc/rfc7230.txt
+ * @link http://www.ietf.org/rfc/rfc7231.txt
+ */
+interface MessageInterface
+{
+ /**
+ * Retrieves the HTTP protocol version as a string.
+ *
+ * The string MUST contain only the HTTP version number (e.g., "1.1", "1.0").
+ *
+ * @return string HTTP protocol version.
+ */
+ public function getProtocolVersion();
+
+ /**
+ * Return an instance with the specified HTTP protocol version.
+ *
+ * The version string MUST contain only the HTTP version number (e.g.,
+ * "1.1", "1.0").
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * new protocol version.
+ *
+ * @param string $version HTTP protocol version
+ * @return static
+ */
+ public function withProtocolVersion($version);
+
+ /**
+ * Retrieves all message header values.
+ *
+ * The keys represent the header name as it will be sent over the wire, and
+ * each value is an array of strings associated with the header.
+ *
+ * // Represent the headers as a string
+ * foreach ($message->getHeaders() as $name => $values) {
+ * echo $name . ": " . implode(", ", $values);
+ * }
+ *
+ * // Emit headers iteratively:
+ * foreach ($message->getHeaders() as $name => $values) {
+ * foreach ($values as $value) {
+ * header(sprintf('%s: %s', $name, $value), false);
+ * }
+ * }
+ *
+ * While header names are not case-sensitive, getHeaders() will preserve the
+ * exact case in which headers were originally specified.
+ *
+ * @return string[][] Returns an associative array of the message's headers. Each
+ * key MUST be a header name, and each value MUST be an array of strings
+ * for that header.
+ */
+ public function getHeaders();
+
+ /**
+ * Checks if a header exists by the given case-insensitive name.
+ *
+ * @param string $name Case-insensitive header field name.
+ * @return bool Returns true if any header names match the given header
+ * name using a case-insensitive string comparison. Returns false if
+ * no matching header name is found in the message.
+ */
+ public function hasHeader($name);
+
+ /**
+ * Retrieves a message header value by the given case-insensitive name.
+ *
+ * This method returns an array of all the header values of the given
+ * case-insensitive header name.
+ *
+ * If the header does not appear in the message, this method MUST return an
+ * empty array.
+ *
+ * @param string $name Case-insensitive header field name.
+ * @return string[] An array of string values as provided for the given
+ * header. If the header does not appear in the message, this method MUST
+ * return an empty array.
+ */
+ public function getHeader($name);
+
+ /**
+ * Retrieves a comma-separated string of the values for a single header.
+ *
+ * This method returns all of the header values of the given
+ * case-insensitive header name as a string concatenated together using
+ * a comma.
+ *
+ * NOTE: Not all header values may be appropriately represented using
+ * comma concatenation. For such headers, use getHeader() instead
+ * and supply your own delimiter when concatenating.
+ *
+ * If the header does not appear in the message, this method MUST return
+ * an empty string.
+ *
+ * @param string $name Case-insensitive header field name.
+ * @return string A string of values as provided for the given header
+ * concatenated together using a comma. If the header does not appear in
+ * the message, this method MUST return an empty string.
+ */
+ public function getHeaderLine($name);
+
+ /**
+ * Return an instance with the provided value replacing the specified header.
+ *
+ * While header names are case-insensitive, the casing of the header will
+ * be preserved by this function, and returned from getHeaders().
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * new and/or updated header and value.
+ *
+ * @param string $name Case-insensitive header field name.
+ * @param string|string[] $value Header value(s).
+ * @return static
+ * @throws \InvalidArgumentException for invalid header names or values.
+ */
+ public function withHeader($name, $value);
+
+ /**
+ * Return an instance with the specified header appended with the given value.
+ *
+ * Existing values for the specified header will be maintained. The new
+ * value(s) will be appended to the existing list. If the header did not
+ * exist previously, it will be added.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * new header and/or value.
+ *
+ * @param string $name Case-insensitive header field name to add.
+ * @param string|string[] $value Header value(s).
+ * @return static
+ * @throws \InvalidArgumentException for invalid header names or values.
+ */
+ public function withAddedHeader($name, $value);
+
+ /**
+ * Return an instance without the specified header.
+ *
+ * Header resolution MUST be done without case-sensitivity.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that removes
+ * the named header.
+ *
+ * @param string $name Case-insensitive header field name to remove.
+ * @return static
+ */
+ public function withoutHeader($name);
+
+ /**
+ * Gets the body of the message.
+ *
+ * @return StreamInterface Returns the body as a stream.
+ */
+ public function getBody();
+
+ /**
+ * Return an instance with the specified message body.
+ *
+ * The body MUST be a StreamInterface object.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return a new instance that has the
+ * new body stream.
+ *
+ * @param StreamInterface $body Body.
+ * @return static
+ * @throws \InvalidArgumentException When the body is not valid.
+ */
+ public function withBody(StreamInterface $body);
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/src/RequestInterface.php b/mayor-orig/www/include/share/googleapi/psr/http-message/src/RequestInterface.php
new file mode 100644
index 00000000..a96d4fd6
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/src/RequestInterface.php
@@ -0,0 +1,129 @@
+<?php
+
+namespace Psr\Http\Message;
+
+/**
+ * Representation of an outgoing, client-side request.
+ *
+ * Per the HTTP specification, this interface includes properties for
+ * each of the following:
+ *
+ * - Protocol version
+ * - HTTP method
+ * - URI
+ * - Headers
+ * - Message body
+ *
+ * During construction, implementations MUST attempt to set the Host header from
+ * a provided URI if no Host header is provided.
+ *
+ * Requests are considered immutable; all methods that might change state MUST
+ * be implemented such that they retain the internal state of the current
+ * message and return an instance that contains the changed state.
+ */
+interface RequestInterface extends MessageInterface
+{
+ /**
+ * Retrieves the message's request target.
+ *
+ * Retrieves the message's request-target either as it will appear (for
+ * clients), as it appeared at request (for servers), or as it was
+ * specified for the instance (see withRequestTarget()).
+ *
+ * In most cases, this will be the origin-form of the composed URI,
+ * unless a value was provided to the concrete implementation (see
+ * withRequestTarget() below).
+ *
+ * If no URI is available, and no request-target has been specifically
+ * provided, this method MUST return the string "/".
+ *
+ * @return string
+ */
+ public function getRequestTarget();
+
+ /**
+ * Return an instance with the specific request-target.
+ *
+ * If the request needs a non-origin-form request-target — e.g., for
+ * specifying an absolute-form, authority-form, or asterisk-form —
+ * this method may be used to create an instance with the specified
+ * request-target, verbatim.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * changed request target.
+ *
+ * @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
+ * request-target forms allowed in request messages)
+ * @param mixed $requestTarget
+ * @return static
+ */
+ public function withRequestTarget($requestTarget);
+
+ /**
+ * Retrieves the HTTP method of the request.
+ *
+ * @return string Returns the request method.
+ */
+ public function getMethod();
+
+ /**
+ * Return an instance with the provided HTTP method.
+ *
+ * While HTTP method names are typically all uppercase characters, HTTP
+ * method names are case-sensitive and thus implementations SHOULD NOT
+ * modify the given string.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * changed request method.
+ *
+ * @param string $method Case-sensitive method.
+ * @return static
+ * @throws \InvalidArgumentException for invalid HTTP methods.
+ */
+ public function withMethod($method);
+
+ /**
+ * Retrieves the URI instance.
+ *
+ * This method MUST return a UriInterface instance.
+ *
+ * @link http://tools.ietf.org/html/rfc3986#section-4.3
+ * @return UriInterface Returns a UriInterface instance
+ * representing the URI of the request.
+ */
+ public function getUri();
+
+ /**
+ * Returns an instance with the provided URI.
+ *
+ * This method MUST update the Host header of the returned request by
+ * default if the URI contains a host component. If the URI does not
+ * contain a host component, any pre-existing Host header MUST be carried
+ * over to the returned request.
+ *
+ * You can opt-in to preserving the original state of the Host header by
+ * setting `$preserveHost` to `true`. When `$preserveHost` is set to
+ * `true`, this method interacts with the Host header in the following ways:
+ *
+ * - If the Host header is missing or empty, and the new URI contains
+ * a host component, this method MUST update the Host header in the returned
+ * request.
+ * - If the Host header is missing or empty, and the new URI does not contain a
+ * host component, this method MUST NOT update the Host header in the returned
+ * request.
+ * - If a Host header is present and non-empty, this method MUST NOT update
+ * the Host header in the returned request.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * new UriInterface instance.
+ *
+ * @link http://tools.ietf.org/html/rfc3986#section-4.3
+ * @param UriInterface $uri New request URI to use.
+ * @param bool $preserveHost Preserve the original state of the Host header.
+ * @return static
+ */
+ public function withUri(UriInterface $uri, $preserveHost = false);
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/src/ResponseInterface.php b/mayor-orig/www/include/share/googleapi/psr/http-message/src/ResponseInterface.php
new file mode 100644
index 00000000..c306514e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/src/ResponseInterface.php
@@ -0,0 +1,68 @@
+<?php
+
+namespace Psr\Http\Message;
+
+/**
+ * Representation of an outgoing, server-side response.
+ *
+ * Per the HTTP specification, this interface includes properties for
+ * each of the following:
+ *
+ * - Protocol version
+ * - Status code and reason phrase
+ * - Headers
+ * - Message body
+ *
+ * Responses are considered immutable; all methods that might change state MUST
+ * be implemented such that they retain the internal state of the current
+ * message and return an instance that contains the changed state.
+ */
+interface ResponseInterface extends MessageInterface
+{
+ /**
+ * Gets the response status code.
+ *
+ * The status code is a 3-digit integer result code of the server's attempt
+ * to understand and satisfy the request.
+ *
+ * @return int Status code.
+ */
+ public function getStatusCode();
+
+ /**
+ * Return an instance with the specified status code and, optionally, reason phrase.
+ *
+ * If no reason phrase is specified, implementations MAY choose to default
+ * to the RFC 7231 or IANA recommended reason phrase for the response's
+ * status code.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * updated status and reason phrase.
+ *
+ * @link http://tools.ietf.org/html/rfc7231#section-6
+ * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
+ * @param int $code The 3-digit integer result code to set.
+ * @param string $reasonPhrase The reason phrase to use with the
+ * provided status code; if none is provided, implementations MAY
+ * use the defaults as suggested in the HTTP specification.
+ * @return static
+ * @throws \InvalidArgumentException For invalid status code arguments.
+ */
+ public function withStatus($code, $reasonPhrase = '');
+
+ /**
+ * Gets the response reason phrase associated with the status code.
+ *
+ * Because a reason phrase is not a required element in a response
+ * status line, the reason phrase value MAY be null. Implementations MAY
+ * choose to return the default RFC 7231 recommended reason phrase (or those
+ * listed in the IANA HTTP Status Code Registry) for the response's
+ * status code.
+ *
+ * @link http://tools.ietf.org/html/rfc7231#section-6
+ * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
+ * @return string Reason phrase; must return an empty string if none present.
+ */
+ public function getReasonPhrase();
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/src/ServerRequestInterface.php b/mayor-orig/www/include/share/googleapi/psr/http-message/src/ServerRequestInterface.php
new file mode 100644
index 00000000..02512340
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/src/ServerRequestInterface.php
@@ -0,0 +1,261 @@
+<?php
+
+namespace Psr\Http\Message;
+
+/**
+ * Representation of an incoming, server-side HTTP request.
+ *
+ * Per the HTTP specification, this interface includes properties for
+ * each of the following:
+ *
+ * - Protocol version
+ * - HTTP method
+ * - URI
+ * - Headers
+ * - Message body
+ *
+ * Additionally, it encapsulates all data as it has arrived to the
+ * application from the CGI and/or PHP environment, including:
+ *
+ * - The values represented in $_SERVER.
+ * - Any cookies provided (generally via $_COOKIE)
+ * - Query string arguments (generally via $_GET, or as parsed via parse_str())
+ * - Upload files, if any (as represented by $_FILES)
+ * - Deserialized body parameters (generally from $_POST)
+ *
+ * $_SERVER values MUST be treated as immutable, as they represent application
+ * state at the time of request; as such, no methods are provided to allow
+ * modification of those values. The other values provide such methods, as they
+ * can be restored from $_SERVER or the request body, and may need treatment
+ * during the application (e.g., body parameters may be deserialized based on
+ * content type).
+ *
+ * Additionally, this interface recognizes the utility of introspecting a
+ * request to derive and match additional parameters (e.g., via URI path
+ * matching, decrypting cookie values, deserializing non-form-encoded body
+ * content, matching authorization headers to users, etc). These parameters
+ * are stored in an "attributes" property.
+ *
+ * Requests are considered immutable; all methods that might change state MUST
+ * be implemented such that they retain the internal state of the current
+ * message and return an instance that contains the changed state.
+ */
+interface ServerRequestInterface extends RequestInterface
+{
+ /**
+ * Retrieve server parameters.
+ *
+ * Retrieves data related to the incoming request environment,
+ * typically derived from PHP's $_SERVER superglobal. The data IS NOT
+ * REQUIRED to originate from $_SERVER.
+ *
+ * @return array
+ */
+ public function getServerParams();
+
+ /**
+ * Retrieve cookies.
+ *
+ * Retrieves cookies sent by the client to the server.
+ *
+ * The data MUST be compatible with the structure of the $_COOKIE
+ * superglobal.
+ *
+ * @return array
+ */
+ public function getCookieParams();
+
+ /**
+ * Return an instance with the specified cookies.
+ *
+ * The data IS NOT REQUIRED to come from the $_COOKIE superglobal, but MUST
+ * be compatible with the structure of $_COOKIE. Typically, this data will
+ * be injected at instantiation.
+ *
+ * This method MUST NOT update the related Cookie header of the request
+ * instance, nor related values in the server params.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * updated cookie values.
+ *
+ * @param array $cookies Array of key/value pairs representing cookies.
+ * @return static
+ */
+ public function withCookieParams(array $cookies);
+
+ /**
+ * Retrieve query string arguments.
+ *
+ * Retrieves the deserialized query string arguments, if any.
+ *
+ * Note: the query params might not be in sync with the URI or server
+ * params. If you need to ensure you are only getting the original
+ * values, you may need to parse the query string from `getUri()->getQuery()`
+ * or from the `QUERY_STRING` server param.
+ *
+ * @return array
+ */
+ public function getQueryParams();
+
+ /**
+ * Return an instance with the specified query string arguments.
+ *
+ * These values SHOULD remain immutable over the course of the incoming
+ * request. They MAY be injected during instantiation, such as from PHP's
+ * $_GET superglobal, or MAY be derived from some other value such as the
+ * URI. In cases where the arguments are parsed from the URI, the data
+ * MUST be compatible with what PHP's parse_str() would return for
+ * purposes of how duplicate query parameters are handled, and how nested
+ * sets are handled.
+ *
+ * Setting query string arguments MUST NOT change the URI stored by the
+ * request, nor the values in the server params.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * updated query string arguments.
+ *
+ * @param array $query Array of query string arguments, typically from
+ * $_GET.
+ * @return static
+ */
+ public function withQueryParams(array $query);
+
+ /**
+ * Retrieve normalized file upload data.
+ *
+ * This method returns upload metadata in a normalized tree, with each leaf
+ * an instance of Psr\Http\Message\UploadedFileInterface.
+ *
+ * These values MAY be prepared from $_FILES or the message body during
+ * instantiation, or MAY be injected via withUploadedFiles().
+ *
+ * @return array An array tree of UploadedFileInterface instances; an empty
+ * array MUST be returned if no data is present.
+ */
+ public function getUploadedFiles();
+
+ /**
+ * Create a new instance with the specified uploaded files.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * updated body parameters.
+ *
+ * @param array $uploadedFiles An array tree of UploadedFileInterface instances.
+ * @return static
+ * @throws \InvalidArgumentException if an invalid structure is provided.
+ */
+ public function withUploadedFiles(array $uploadedFiles);
+
+ /**
+ * Retrieve any parameters provided in the request body.
+ *
+ * If the request Content-Type is either application/x-www-form-urlencoded
+ * or multipart/form-data, and the request method is POST, this method MUST
+ * return the contents of $_POST.
+ *
+ * Otherwise, this method may return any results of deserializing
+ * the request body content; as parsing returns structured content, the
+ * potential types MUST be arrays or objects only. A null value indicates
+ * the absence of body content.
+ *
+ * @return null|array|object The deserialized body parameters, if any.
+ * These will typically be an array or object.
+ */
+ public function getParsedBody();
+
+ /**
+ * Return an instance with the specified body parameters.
+ *
+ * These MAY be injected during instantiation.
+ *
+ * If the request Content-Type is either application/x-www-form-urlencoded
+ * or multipart/form-data, and the request method is POST, use this method
+ * ONLY to inject the contents of $_POST.
+ *
+ * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of
+ * deserializing the request body content. Deserialization/parsing returns
+ * structured data, and, as such, this method ONLY accepts arrays or objects,
+ * or a null value if nothing was available to parse.
+ *
+ * As an example, if content negotiation determines that the request data
+ * is a JSON payload, this method could be used to create a request
+ * instance with the deserialized parameters.
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * updated body parameters.
+ *
+ * @param null|array|object $data The deserialized body data. This will
+ * typically be in an array or object.
+ * @return static
+ * @throws \InvalidArgumentException if an unsupported argument type is
+ * provided.
+ */
+ public function withParsedBody($data);
+
+ /**
+ * Retrieve attributes derived from the request.
+ *
+ * The request "attributes" may be used to allow injection of any
+ * parameters derived from the request: e.g., the results of path
+ * match operations; the results of decrypting cookies; the results of
+ * deserializing non-form-encoded message bodies; etc. Attributes
+ * will be application and request specific, and CAN be mutable.
+ *
+ * @return array Attributes derived from the request.
+ */
+ public function getAttributes();
+
+ /**
+ * Retrieve a single derived request attribute.
+ *
+ * Retrieves a single derived request attribute as described in
+ * getAttributes(). If the attribute has not been previously set, returns
+ * the default value as provided.
+ *
+ * This method obviates the need for a hasAttribute() method, as it allows
+ * specifying a default value to return if the attribute is not found.
+ *
+ * @see getAttributes()
+ * @param string $name The attribute name.
+ * @param mixed $default Default value to return if the attribute does not exist.
+ * @return mixed
+ */
+ public function getAttribute($name, $default = null);
+
+ /**
+ * Return an instance with the specified derived request attribute.
+ *
+ * This method allows setting a single derived request attribute as
+ * described in getAttributes().
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that has the
+ * updated attribute.
+ *
+ * @see getAttributes()
+ * @param string $name The attribute name.
+ * @param mixed $value The value of the attribute.
+ * @return static
+ */
+ public function withAttribute($name, $value);
+
+ /**
+ * Return an instance that removes the specified derived request attribute.
+ *
+ * This method allows removing a single derived request attribute as
+ * described in getAttributes().
+ *
+ * This method MUST be implemented in such a way as to retain the
+ * immutability of the message, and MUST return an instance that removes
+ * the attribute.
+ *
+ * @see getAttributes()
+ * @param string $name The attribute name.
+ * @return static
+ */
+ public function withoutAttribute($name);
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/src/StreamInterface.php b/mayor-orig/www/include/share/googleapi/psr/http-message/src/StreamInterface.php
new file mode 100644
index 00000000..f68f3912
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/src/StreamInterface.php
@@ -0,0 +1,158 @@
+<?php
+
+namespace Psr\Http\Message;
+
+/**
+ * Describes a data stream.
+ *
+ * Typically, an instance will wrap a PHP stream; this interface provides
+ * a wrapper around the most common operations, including serialization of
+ * the entire stream to a string.
+ */
+interface StreamInterface
+{
+ /**
+ * Reads all data from the stream into a string, from the beginning to end.
+ *
+ * This method MUST attempt to seek to the beginning of the stream before
+ * reading data and read the stream until the end is reached.
+ *
+ * Warning: This could attempt to load a large amount of data into memory.
+ *
+ * This method MUST NOT raise an exception in order to conform with PHP's
+ * string casting operations.
+ *
+ * @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
+ * @return string
+ */
+ public function __toString();
+
+ /**
+ * Closes the stream and any underlying resources.
+ *
+ * @return void
+ */
+ public function close();
+
+ /**
+ * Separates any underlying resources from the stream.
+ *
+ * After the stream has been detached, the stream is in an unusable state.
+ *
+ * @return resource|null Underlying PHP stream, if any
+ */
+ public function detach();
+
+ /**
+ * Get the size of the stream if known.
+ *
+ * @return int|null Returns the size in bytes if known, or null if unknown.
+ */
+ public function getSize();
+
+ /**
+ * Returns the current position of the file read/write pointer
+ *
+ * @return int Position of the file pointer
+ * @throws \RuntimeException on error.
+ */
+ public function tell();
+
+ /**
+ * Returns true if the stream is at the end of the stream.
+ *
+ * @return bool
+ */
+ public function eof();
+
+ /**
+ * Returns whether or not the stream is seekable.
+ *
+ * @return bool
+ */
+ public function isSeekable();
+
+ /**
+ * Seek to a position in the stream.
+ *
+ * @link http://www.php.net/manual/en/function.fseek.php
+ * @param int $offset Stream offset
+ * @param int $whence Specifies how the cursor position will be calculated
+ * based on the seek offset. Valid values are identical to the built-in
+ * PHP $whence values for `fseek()`. SEEK_SET: Set position equal to
+ * offset bytes SEEK_CUR: Set position to current location plus offset
+ * SEEK_END: Set position to end-of-stream plus offset.
+ * @throws \RuntimeException on failure.
+ */
+ public function seek($offset, $whence = SEEK_SET);
+
+ /**
+ * Seek to the beginning of the stream.
+ *
+ * If the stream is not seekable, this method will raise an exception;
+ * otherwise, it will perform a seek(0).
+ *
+ * @see seek()
+ * @link http://www.php.net/manual/en/function.fseek.php
+ * @throws \RuntimeException on failure.
+ */
+ public function rewind();
+
+ /**
+ * Returns whether or not the stream is writable.
+ *
+ * @return bool
+ */
+ public function isWritable();
+
+ /**
+ * Write data to the stream.
+ *
+ * @param string $string The string that is to be written.
+ * @return int Returns the number of bytes written to the stream.
+ * @throws \RuntimeException on failure.
+ */
+ public function write($string);
+
+ /**
+ * Returns whether or not the stream is readable.
+ *
+ * @return bool
+ */
+ public function isReadable();
+
+ /**
+ * Read data from the stream.
+ *
+ * @param int $length Read up to $length bytes from the object and return
+ * them. Fewer than $length bytes may be returned if underlying stream
+ * call returns fewer bytes.
+ * @return string Returns the data read from the stream, or an empty string
+ * if no bytes are available.
+ * @throws \RuntimeException if an error occurs.
+ */
+ public function read($length);
+
+ /**
+ * Returns the remaining contents in a string
+ *
+ * @return string
+ * @throws \RuntimeException if unable to read or an error occurs while
+ * reading.
+ */
+ public function getContents();
+
+ /**
+ * Get stream metadata as an associative array or retrieve a specific key.
+ *
+ * The keys returned are identical to the keys returned from PHP's
+ * stream_get_meta_data() function.
+ *
+ * @link http://php.net/manual/en/function.stream-get-meta-data.php
+ * @param string $key Specific metadata to retrieve.
+ * @return array|mixed|null Returns an associative array if no key is
+ * provided. Returns a specific key value if a key is provided and the
+ * value is found, or null if the key is not found.
+ */
+ public function getMetadata($key = null);
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/src/UploadedFileInterface.php b/mayor-orig/www/include/share/googleapi/psr/http-message/src/UploadedFileInterface.php
new file mode 100644
index 00000000..f8a6901e
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/src/UploadedFileInterface.php
@@ -0,0 +1,123 @@
+<?php
+
+namespace Psr\Http\Message;
+
+/**
+ * Value object representing a file uploaded through an HTTP request.
+ *
+ * Instances of this interface are considered immutable; all methods that
+ * might change state MUST be implemented such that they retain the internal
+ * state of the current instance and return an instance that contains the
+ * changed state.
+ */
+interface UploadedFileInterface
+{
+ /**
+ * Retrieve a stream representing the uploaded file.
+ *
+ * This method MUST return a StreamInterface instance, representing the
+ * uploaded file. The purpose of this method is to allow utilizing native PHP
+ * stream functionality to manipulate the file upload, such as
+ * stream_copy_to_stream() (though the result will need to be decorated in a
+ * native PHP stream wrapper to work with such functions).
+ *
+ * If the moveTo() method has been called previously, this method MUST raise
+ * an exception.
+ *
+ * @return StreamInterface Stream representation of the uploaded file.
+ * @throws \RuntimeException in cases when no stream is available or can be
+ * created.
+ */
+ public function getStream();
+
+ /**
+ * Move the uploaded file to a new location.
+ *
+ * Use this method as an alternative to move_uploaded_file(). This method is
+ * guaranteed to work in both SAPI and non-SAPI environments.
+ * Implementations must determine which environment they are in, and use the
+ * appropriate method (move_uploaded_file(), rename(), or a stream
+ * operation) to perform the operation.
+ *
+ * $targetPath may be an absolute path, or a relative path. If it is a
+ * relative path, resolution should be the same as used by PHP's rename()
+ * function.
+ *
+ * The original file or stream MUST be removed on completion.
+ *
+ * If this method is called more than once, any subsequent calls MUST raise
+ * an exception.
+ *
+ * When used in an SAPI environment where $_FILES is populated, when writing
+ * files via moveTo(), is_uploaded_file() and move_uploaded_file() SHOULD be
+ * used to ensure permissions and upload status are verified correctly.
+ *
+ * If you wish to move to a stream, use getStream(), as SAPI operations
+ * cannot guarantee writing to stream destinations.
+ *
+ * @see http://php.net/is_uploaded_file
+ * @see http://php.net/move_uploaded_file
+ * @param string $targetPath Path to which to move the uploaded file.
+ * @throws \InvalidArgumentException if the $targetPath specified is invalid.
+ * @throws \RuntimeException on any error during the move operation, or on
+ * the second or subsequent call to the method.
+ */
+ public function moveTo($targetPath);
+
+ /**
+ * Retrieve the file size.
+ *
+ * Implementations SHOULD return the value stored in the "size" key of
+ * the file in the $_FILES array if available, as PHP calculates this based
+ * on the actual size transmitted.
+ *
+ * @return int|null The file size in bytes or null if unknown.
+ */
+ public function getSize();
+
+ /**
+ * Retrieve the error associated with the uploaded file.
+ *
+ * The return value MUST be one of PHP's UPLOAD_ERR_XXX constants.
+ *
+ * If the file was uploaded successfully, this method MUST return
+ * UPLOAD_ERR_OK.
+ *
+ * Implementations SHOULD return the value stored in the "error" key of
+ * the file in the $_FILES array.
+ *
+ * @see http://php.net/manual/en/features.file-upload.errors.php
+ * @return int One of PHP's UPLOAD_ERR_XXX constants.
+ */
+ public function getError();
+
+ /**
+ * Retrieve the filename sent by the client.
+ *
+ * Do not trust the value returned by this method. A client could send
+ * a malicious filename with the intention to corrupt or hack your
+ * application.
+ *
+ * Implementations SHOULD return the value stored in the "name" key of
+ * the file in the $_FILES array.
+ *
+ * @return string|null The filename sent by the client or null if none
+ * was provided.
+ */
+ public function getClientFilename();
+
+ /**
+ * Retrieve the media type sent by the client.
+ *
+ * Do not trust the value returned by this method. A client could send
+ * a malicious media type with the intention to corrupt or hack your
+ * application.
+ *
+ * Implementations SHOULD return the value stored in the "type" key of
+ * the file in the $_FILES array.
+ *
+ * @return string|null The media type sent by the client or null if none
+ * was provided.
+ */
+ public function getClientMediaType();
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/http-message/src/UriInterface.php b/mayor-orig/www/include/share/googleapi/psr/http-message/src/UriInterface.php
new file mode 100644
index 00000000..9d7ab9ea
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/http-message/src/UriInterface.php
@@ -0,0 +1,323 @@
+<?php
+namespace Psr\Http\Message;
+
+/**
+ * Value object representing a URI.
+ *
+ * This interface is meant to represent URIs according to RFC 3986 and to
+ * provide methods for most common operations. Additional functionality for
+ * working with URIs can be provided on top of the interface or externally.
+ * Its primary use is for HTTP requests, but may also be used in other
+ * contexts.
+ *
+ * Instances of this interface are considered immutable; all methods that
+ * might change state MUST be implemented such that they retain the internal
+ * state of the current instance and return an instance that contains the
+ * changed state.
+ *
+ * Typically the Host header will be also be present in the request message.
+ * For server-side requests, the scheme will typically be discoverable in the
+ * server parameters.
+ *
+ * @link http://tools.ietf.org/html/rfc3986 (the URI specification)
+ */
+interface UriInterface
+{
+ /**
+ * Retrieve the scheme component of the URI.
+ *
+ * If no scheme is present, this method MUST return an empty string.
+ *
+ * The value returned MUST be normalized to lowercase, per RFC 3986
+ * Section 3.1.
+ *
+ * The trailing ":" character is not part of the scheme and MUST NOT be
+ * added.
+ *
+ * @see https://tools.ietf.org/html/rfc3986#section-3.1
+ * @return string The URI scheme.
+ */
+ public function getScheme();
+
+ /**
+ * Retrieve the authority component of the URI.
+ *
+ * If no authority information is present, this method MUST return an empty
+ * string.
+ *
+ * The authority syntax of the URI is:
+ *
+ * <pre>
+ * [user-info@]host[:port]
+ * </pre>
+ *
+ * If the port component is not set or is the standard port for the current
+ * scheme, it SHOULD NOT be included.
+ *
+ * @see https://tools.ietf.org/html/rfc3986#section-3.2
+ * @return string The URI authority, in "[user-info@]host[:port]" format.
+ */
+ public function getAuthority();
+
+ /**
+ * Retrieve the user information component of the URI.
+ *
+ * If no user information is present, this method MUST return an empty
+ * string.
+ *
+ * If a user is present in the URI, this will return that value;
+ * additionally, if the password is also present, it will be appended to the
+ * user value, with a colon (":") separating the values.
+ *
+ * The trailing "@" character is not part of the user information and MUST
+ * NOT be added.
+ *
+ * @return string The URI user information, in "username[:password]" format.
+ */
+ public function getUserInfo();
+
+ /**
+ * Retrieve the host component of the URI.
+ *
+ * If no host is present, this method MUST return an empty string.
+ *
+ * The value returned MUST be normalized to lowercase, per RFC 3986
+ * Section 3.2.2.
+ *
+ * @see http://tools.ietf.org/html/rfc3986#section-3.2.2
+ * @return string The URI host.
+ */
+ public function getHost();
+
+ /**
+ * Retrieve the port component of the URI.
+ *
+ * If a port is present, and it is non-standard for the current scheme,
+ * this method MUST return it as an integer. If the port is the standard port
+ * used with the current scheme, this method SHOULD return null.
+ *
+ * If no port is present, and no scheme is present, this method MUST return
+ * a null value.
+ *
+ * If no port is present, but a scheme is present, this method MAY return
+ * the standard port for that scheme, but SHOULD return null.
+ *
+ * @return null|int The URI port.
+ */
+ public function getPort();
+
+ /**
+ * Retrieve the path component of the URI.
+ *
+ * The path can either be empty or absolute (starting with a slash) or
+ * rootless (not starting with a slash). Implementations MUST support all
+ * three syntaxes.
+ *
+ * Normally, the empty path "" and absolute path "/" are considered equal as
+ * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically
+ * do this normalization because in contexts with a trimmed base path, e.g.
+ * the front controller, this difference becomes significant. It's the task
+ * of the user to handle both "" and "/".
+ *
+ * The value returned MUST be percent-encoded, but MUST NOT double-encode
+ * any characters. To determine what characters to encode, please refer to
+ * RFC 3986, Sections 2 and 3.3.
+ *
+ * As an example, if the value should include a slash ("/") not intended as
+ * delimiter between path segments, that value MUST be passed in encoded
+ * form (e.g., "%2F") to the instance.
+ *
+ * @see https://tools.ietf.org/html/rfc3986#section-2
+ * @see https://tools.ietf.org/html/rfc3986#section-3.3
+ * @return string The URI path.
+ */
+ public function getPath();
+
+ /**
+ * Retrieve the query string of the URI.
+ *
+ * If no query string is present, this method MUST return an empty string.
+ *
+ * The leading "?" character is not part of the query and MUST NOT be
+ * added.
+ *
+ * The value returned MUST be percent-encoded, but MUST NOT double-encode
+ * any characters. To determine what characters to encode, please refer to
+ * RFC 3986, Sections 2 and 3.4.
+ *
+ * As an example, if a value in a key/value pair of the query string should
+ * include an ampersand ("&") not intended as a delimiter between values,
+ * that value MUST be passed in encoded form (e.g., "%26") to the instance.
+ *
+ * @see https://tools.ietf.org/html/rfc3986#section-2
+ * @see https://tools.ietf.org/html/rfc3986#section-3.4
+ * @return string The URI query string.
+ */
+ public function getQuery();
+
+ /**
+ * Retrieve the fragment component of the URI.
+ *
+ * If no fragment is present, this method MUST return an empty string.
+ *
+ * The leading "#" character is not part of the fragment and MUST NOT be
+ * added.
+ *
+ * The value returned MUST be percent-encoded, but MUST NOT double-encode
+ * any characters. To determine what characters to encode, please refer to
+ * RFC 3986, Sections 2 and 3.5.
+ *
+ * @see https://tools.ietf.org/html/rfc3986#section-2
+ * @see https://tools.ietf.org/html/rfc3986#section-3.5
+ * @return string The URI fragment.
+ */
+ public function getFragment();
+
+ /**
+ * Return an instance with the specified scheme.
+ *
+ * This method MUST retain the state of the current instance, and return
+ * an instance that contains the specified scheme.
+ *
+ * Implementations MUST support the schemes "http" and "https" case
+ * insensitively, and MAY accommodate other schemes if required.
+ *
+ * An empty scheme is equivalent to removing the scheme.
+ *
+ * @param string $scheme The scheme to use with the new instance.
+ * @return static A new instance with the specified scheme.
+ * @throws \InvalidArgumentException for invalid or unsupported schemes.
+ */
+ public function withScheme($scheme);
+
+ /**
+ * Return an instance with the specified user information.
+ *
+ * This method MUST retain the state of the current instance, and return
+ * an instance that contains the specified user information.
+ *
+ * Password is optional, but the user information MUST include the
+ * user; an empty string for the user is equivalent to removing user
+ * information.
+ *
+ * @param string $user The user name to use for authority.
+ * @param null|string $password The password associated with $user.
+ * @return static A new instance with the specified user information.
+ */
+ public function withUserInfo($user, $password = null);
+
+ /**
+ * Return an instance with the specified host.
+ *
+ * This method MUST retain the state of the current instance, and return
+ * an instance that contains the specified host.
+ *
+ * An empty host value is equivalent to removing the host.
+ *
+ * @param string $host The hostname to use with the new instance.
+ * @return static A new instance with the specified host.
+ * @throws \InvalidArgumentException for invalid hostnames.
+ */
+ public function withHost($host);
+
+ /**
+ * Return an instance with the specified port.
+ *
+ * This method MUST retain the state of the current instance, and return
+ * an instance that contains the specified port.
+ *
+ * Implementations MUST raise an exception for ports outside the
+ * established TCP and UDP port ranges.
+ *
+ * A null value provided for the port is equivalent to removing the port
+ * information.
+ *
+ * @param null|int $port The port to use with the new instance; a null value
+ * removes the port information.
+ * @return static A new instance with the specified port.
+ * @throws \InvalidArgumentException for invalid ports.
+ */
+ public function withPort($port);
+
+ /**
+ * Return an instance with the specified path.
+ *
+ * This method MUST retain the state of the current instance, and return
+ * an instance that contains the specified path.
+ *
+ * The path can either be empty or absolute (starting with a slash) or
+ * rootless (not starting with a slash). Implementations MUST support all
+ * three syntaxes.
+ *
+ * If the path is intended to be domain-relative rather than path relative then
+ * it must begin with a slash ("/"). Paths not starting with a slash ("/")
+ * are assumed to be relative to some base path known to the application or
+ * consumer.
+ *
+ * Users can provide both encoded and decoded path characters.
+ * Implementations ensure the correct encoding as outlined in getPath().
+ *
+ * @param string $path The path to use with the new instance.
+ * @return static A new instance with the specified path.
+ * @throws \InvalidArgumentException for invalid paths.
+ */
+ public function withPath($path);
+
+ /**
+ * Return an instance with the specified query string.
+ *
+ * This method MUST retain the state of the current instance, and return
+ * an instance that contains the specified query string.
+ *
+ * Users can provide both encoded and decoded query characters.
+ * Implementations ensure the correct encoding as outlined in getQuery().
+ *
+ * An empty query string value is equivalent to removing the query string.
+ *
+ * @param string $query The query string to use with the new instance.
+ * @return static A new instance with the specified query string.
+ * @throws \InvalidArgumentException for invalid query strings.
+ */
+ public function withQuery($query);
+
+ /**
+ * Return an instance with the specified URI fragment.
+ *
+ * This method MUST retain the state of the current instance, and return
+ * an instance that contains the specified URI fragment.
+ *
+ * Users can provide both encoded and decoded fragment characters.
+ * Implementations ensure the correct encoding as outlined in getFragment().
+ *
+ * An empty fragment value is equivalent to removing the fragment.
+ *
+ * @param string $fragment The fragment to use with the new instance.
+ * @return static A new instance with the specified fragment.
+ */
+ public function withFragment($fragment);
+
+ /**
+ * Return the string representation as a URI reference.
+ *
+ * Depending on which components of the URI are present, the resulting
+ * string is either a full URI or relative reference according to RFC 3986,
+ * Section 4.1. The method concatenates the various components of the URI,
+ * using the appropriate delimiters:
+ *
+ * - If a scheme is present, it MUST be suffixed by ":".
+ * - If an authority is present, it MUST be prefixed by "//".
+ * - The path can be concatenated without delimiters. But there are two
+ * cases where the path has to be adjusted to make the URI reference
+ * valid as PHP does not allow to throw an exception in __toString():
+ * - If the path is rootless and an authority is present, the path MUST
+ * be prefixed by "/".
+ * - If the path is starting with more than one "/" and no authority is
+ * present, the starting slashes MUST be reduced to one.
+ * - If a query is present, it MUST be prefixed by "?".
+ * - If a fragment is present, it MUST be prefixed by "#".
+ *
+ * @see http://tools.ietf.org/html/rfc3986#section-4.1
+ * @return string
+ */
+ public function __toString();
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/.gitignore b/mayor-orig/www/include/share/googleapi/psr/log/.gitignore
new file mode 100644
index 00000000..22d0d82f
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/.gitignore
@@ -0,0 +1 @@
+vendor
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/LICENSE b/mayor-orig/www/include/share/googleapi/psr/log/LICENSE
new file mode 100644
index 00000000..474c952b
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2012 PHP Framework Interoperability Group
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/AbstractLogger.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/AbstractLogger.php
new file mode 100644
index 00000000..90e721af
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/AbstractLogger.php
@@ -0,0 +1,128 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * This is a simple Logger implementation that other Loggers can inherit from.
+ *
+ * It simply delegates all log-level-specific methods to the `log` method to
+ * reduce boilerplate code that a simple Logger that does the same thing with
+ * messages regardless of the error level has to implement.
+ */
+abstract class AbstractLogger implements LoggerInterface
+{
+ /**
+ * System is unusable.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function emergency($message, array $context = array())
+ {
+ $this->log(LogLevel::EMERGENCY, $message, $context);
+ }
+
+ /**
+ * Action must be taken immediately.
+ *
+ * Example: Entire website down, database unavailable, etc. This should
+ * trigger the SMS alerts and wake you up.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function alert($message, array $context = array())
+ {
+ $this->log(LogLevel::ALERT, $message, $context);
+ }
+
+ /**
+ * Critical conditions.
+ *
+ * Example: Application component unavailable, unexpected exception.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function critical($message, array $context = array())
+ {
+ $this->log(LogLevel::CRITICAL, $message, $context);
+ }
+
+ /**
+ * Runtime errors that do not require immediate action but should typically
+ * be logged and monitored.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function error($message, array $context = array())
+ {
+ $this->log(LogLevel::ERROR, $message, $context);
+ }
+
+ /**
+ * Exceptional occurrences that are not errors.
+ *
+ * Example: Use of deprecated APIs, poor use of an API, undesirable things
+ * that are not necessarily wrong.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function warning($message, array $context = array())
+ {
+ $this->log(LogLevel::WARNING, $message, $context);
+ }
+
+ /**
+ * Normal but significant events.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function notice($message, array $context = array())
+ {
+ $this->log(LogLevel::NOTICE, $message, $context);
+ }
+
+ /**
+ * Interesting events.
+ *
+ * Example: User logs in, SQL logs.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function info($message, array $context = array())
+ {
+ $this->log(LogLevel::INFO, $message, $context);
+ }
+
+ /**
+ * Detailed debug information.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function debug($message, array $context = array())
+ {
+ $this->log(LogLevel::DEBUG, $message, $context);
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/InvalidArgumentException.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/InvalidArgumentException.php
new file mode 100644
index 00000000..67f852d1
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/InvalidArgumentException.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Psr\Log;
+
+class InvalidArgumentException extends \InvalidArgumentException
+{
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LogLevel.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LogLevel.php
new file mode 100644
index 00000000..9cebcace
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LogLevel.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * Describes log levels.
+ */
+class LogLevel
+{
+ const EMERGENCY = 'emergency';
+ const ALERT = 'alert';
+ const CRITICAL = 'critical';
+ const ERROR = 'error';
+ const WARNING = 'warning';
+ const NOTICE = 'notice';
+ const INFO = 'info';
+ const DEBUG = 'debug';
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareInterface.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareInterface.php
new file mode 100644
index 00000000..4d64f478
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareInterface.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * Describes a logger-aware instance.
+ */
+interface LoggerAwareInterface
+{
+ /**
+ * Sets a logger instance on the object.
+ *
+ * @param LoggerInterface $logger
+ *
+ * @return void
+ */
+ public function setLogger(LoggerInterface $logger);
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareTrait.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareTrait.php
new file mode 100644
index 00000000..639f79bd
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerAwareTrait.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * Basic Implementation of LoggerAwareInterface.
+ */
+trait LoggerAwareTrait
+{
+ /**
+ * The logger instance.
+ *
+ * @var LoggerInterface
+ */
+ protected $logger;
+
+ /**
+ * Sets a logger.
+ *
+ * @param LoggerInterface $logger
+ */
+ public function setLogger(LoggerInterface $logger)
+ {
+ $this->logger = $logger;
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerInterface.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerInterface.php
new file mode 100644
index 00000000..5ea72438
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerInterface.php
@@ -0,0 +1,123 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * Describes a logger instance.
+ *
+ * The message MUST be a string or object implementing __toString().
+ *
+ * The message MAY contain placeholders in the form: {foo} where foo
+ * will be replaced by the context data in key "foo".
+ *
+ * The context array can contain arbitrary data. The only assumption that
+ * can be made by implementors is that if an Exception instance is given
+ * to produce a stack trace, it MUST be in a key named "exception".
+ *
+ * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
+ * for the full interface specification.
+ */
+interface LoggerInterface
+{
+ /**
+ * System is unusable.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function emergency($message, array $context = array());
+
+ /**
+ * Action must be taken immediately.
+ *
+ * Example: Entire website down, database unavailable, etc. This should
+ * trigger the SMS alerts and wake you up.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function alert($message, array $context = array());
+
+ /**
+ * Critical conditions.
+ *
+ * Example: Application component unavailable, unexpected exception.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function critical($message, array $context = array());
+
+ /**
+ * Runtime errors that do not require immediate action but should typically
+ * be logged and monitored.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function error($message, array $context = array());
+
+ /**
+ * Exceptional occurrences that are not errors.
+ *
+ * Example: Use of deprecated APIs, poor use of an API, undesirable things
+ * that are not necessarily wrong.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function warning($message, array $context = array());
+
+ /**
+ * Normal but significant events.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function notice($message, array $context = array());
+
+ /**
+ * Interesting events.
+ *
+ * Example: User logs in, SQL logs.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function info($message, array $context = array());
+
+ /**
+ * Detailed debug information.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function debug($message, array $context = array());
+
+ /**
+ * Logs with an arbitrary level.
+ *
+ * @param mixed $level
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function log($level, $message, array $context = array());
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerTrait.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerTrait.php
new file mode 100644
index 00000000..867225df
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/LoggerTrait.php
@@ -0,0 +1,140 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * This is a simple Logger trait that classes unable to extend AbstractLogger
+ * (because they extend another class, etc) can include.
+ *
+ * It simply delegates all log-level-specific methods to the `log` method to
+ * reduce boilerplate code that a simple Logger that does the same thing with
+ * messages regardless of the error level has to implement.
+ */
+trait LoggerTrait
+{
+ /**
+ * System is unusable.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function emergency($message, array $context = array())
+ {
+ $this->log(LogLevel::EMERGENCY, $message, $context);
+ }
+
+ /**
+ * Action must be taken immediately.
+ *
+ * Example: Entire website down, database unavailable, etc. This should
+ * trigger the SMS alerts and wake you up.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function alert($message, array $context = array())
+ {
+ $this->log(LogLevel::ALERT, $message, $context);
+ }
+
+ /**
+ * Critical conditions.
+ *
+ * Example: Application component unavailable, unexpected exception.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function critical($message, array $context = array())
+ {
+ $this->log(LogLevel::CRITICAL, $message, $context);
+ }
+
+ /**
+ * Runtime errors that do not require immediate action but should typically
+ * be logged and monitored.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function error($message, array $context = array())
+ {
+ $this->log(LogLevel::ERROR, $message, $context);
+ }
+
+ /**
+ * Exceptional occurrences that are not errors.
+ *
+ * Example: Use of deprecated APIs, poor use of an API, undesirable things
+ * that are not necessarily wrong.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function warning($message, array $context = array())
+ {
+ $this->log(LogLevel::WARNING, $message, $context);
+ }
+
+ /**
+ * Normal but significant events.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function notice($message, array $context = array())
+ {
+ $this->log(LogLevel::NOTICE, $message, $context);
+ }
+
+ /**
+ * Interesting events.
+ *
+ * Example: User logs in, SQL logs.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function info($message, array $context = array())
+ {
+ $this->log(LogLevel::INFO, $message, $context);
+ }
+
+ /**
+ * Detailed debug information.
+ *
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function debug($message, array $context = array())
+ {
+ $this->log(LogLevel::DEBUG, $message, $context);
+ }
+
+ /**
+ * Logs with an arbitrary level.
+ *
+ * @param mixed $level
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ abstract public function log($level, $message, array $context = array());
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/NullLogger.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/NullLogger.php
new file mode 100644
index 00000000..d8cd682c
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/NullLogger.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * This Logger can be used to avoid conditional log calls.
+ *
+ * Logging should always be optional, and if no logger is provided to your
+ * library creating a NullLogger instance to have something to throw logs at
+ * is a good way to avoid littering your code with `if ($this->logger) { }`
+ * blocks.
+ */
+class NullLogger extends AbstractLogger
+{
+ /**
+ * Logs with an arbitrary level.
+ *
+ * @param mixed $level
+ * @param string $message
+ * @param array $context
+ *
+ * @return void
+ */
+ public function log($level, $message, array $context = array())
+ {
+ // noop
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/Test/LoggerInterfaceTest.php b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/Test/LoggerInterfaceTest.php
new file mode 100644
index 00000000..a0391a52
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/Psr/Log/Test/LoggerInterfaceTest.php
@@ -0,0 +1,140 @@
+<?php
+
+namespace Psr\Log\Test;
+
+use Psr\Log\LoggerInterface;
+use Psr\Log\LogLevel;
+
+/**
+ * Provides a base test class for ensuring compliance with the LoggerInterface.
+ *
+ * Implementors can extend the class and implement abstract methods to run this
+ * as part of their test suite.
+ */
+abstract class LoggerInterfaceTest extends \PHPUnit_Framework_TestCase
+{
+ /**
+ * @return LoggerInterface
+ */
+ abstract public function getLogger();
+
+ /**
+ * This must return the log messages in order.
+ *
+ * The simple formatting of the messages is: "<LOG LEVEL> <MESSAGE>".
+ *
+ * Example ->error('Foo') would yield "error Foo".
+ *
+ * @return string[]
+ */
+ abstract public function getLogs();
+
+ public function testImplements()
+ {
+ $this->assertInstanceOf('Psr\Log\LoggerInterface', $this->getLogger());
+ }
+
+ /**
+ * @dataProvider provideLevelsAndMessages
+ */
+ public function testLogsAtAllLevels($level, $message)
+ {
+ $logger = $this->getLogger();
+ $logger->{$level}($message, array('user' => 'Bob'));
+ $logger->log($level, $message, array('user' => 'Bob'));
+
+ $expected = array(
+ $level.' message of level '.$level.' with context: Bob',
+ $level.' message of level '.$level.' with context: Bob',
+ );
+ $this->assertEquals($expected, $this->getLogs());
+ }
+
+ public function provideLevelsAndMessages()
+ {
+ return array(
+ LogLevel::EMERGENCY => array(LogLevel::EMERGENCY, 'message of level emergency with context: {user}'),
+ LogLevel::ALERT => array(LogLevel::ALERT, 'message of level alert with context: {user}'),
+ LogLevel::CRITICAL => array(LogLevel::CRITICAL, 'message of level critical with context: {user}'),
+ LogLevel::ERROR => array(LogLevel::ERROR, 'message of level error with context: {user}'),
+ LogLevel::WARNING => array(LogLevel::WARNING, 'message of level warning with context: {user}'),
+ LogLevel::NOTICE => array(LogLevel::NOTICE, 'message of level notice with context: {user}'),
+ LogLevel::INFO => array(LogLevel::INFO, 'message of level info with context: {user}'),
+ LogLevel::DEBUG => array(LogLevel::DEBUG, 'message of level debug with context: {user}'),
+ );
+ }
+
+ /**
+ * @expectedException \Psr\Log\InvalidArgumentException
+ */
+ public function testThrowsOnInvalidLevel()
+ {
+ $logger = $this->getLogger();
+ $logger->log('invalid level', 'Foo');
+ }
+
+ public function testContextReplacement()
+ {
+ $logger = $this->getLogger();
+ $logger->info('{Message {nothing} {user} {foo.bar} a}', array('user' => 'Bob', 'foo.bar' => 'Bar'));
+
+ $expected = array('info {Message {nothing} Bob Bar a}');
+ $this->assertEquals($expected, $this->getLogs());
+ }
+
+ public function testObjectCastToString()
+ {
+ if (method_exists($this, 'createPartialMock')) {
+ $dummy = $this->createPartialMock('Psr\Log\Test\DummyTest', array('__toString'));
+ } else {
+ $dummy = $this->getMock('Psr\Log\Test\DummyTest', array('__toString'));
+ }
+ $dummy->expects($this->once())
+ ->method('__toString')
+ ->will($this->returnValue('DUMMY'));
+
+ $this->getLogger()->warning($dummy);
+
+ $expected = array('warning DUMMY');
+ $this->assertEquals($expected, $this->getLogs());
+ }
+
+ public function testContextCanContainAnything()
+ {
+ $context = array(
+ 'bool' => true,
+ 'null' => null,
+ 'string' => 'Foo',
+ 'int' => 0,
+ 'float' => 0.5,
+ 'nested' => array('with object' => new DummyTest),
+ 'object' => new \DateTime,
+ 'resource' => fopen('php://memory', 'r'),
+ );
+
+ $this->getLogger()->warning('Crazy context data', $context);
+
+ $expected = array('warning Crazy context data');
+ $this->assertEquals($expected, $this->getLogs());
+ }
+
+ public function testContextExceptionKeyCanBeExceptionOrOtherValues()
+ {
+ $logger = $this->getLogger();
+ $logger->warning('Random message', array('exception' => 'oops'));
+ $logger->critical('Uncaught Exception!', array('exception' => new \LogicException('Fail')));
+
+ $expected = array(
+ 'warning Random message',
+ 'critical Uncaught Exception!'
+ );
+ $this->assertEquals($expected, $this->getLogs());
+ }
+}
+
+class DummyTest
+{
+ public function __toString()
+ {
+ }
+}
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/README.md b/mayor-orig/www/include/share/googleapi/psr/log/README.md
new file mode 100644
index 00000000..574bc1cb
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/README.md
@@ -0,0 +1,45 @@
+PSR Log
+=======
+
+This repository holds all interfaces/classes/traits related to
+[PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).
+
+Note that this is not a logger of its own. It is merely an interface that
+describes a logger. See the specification for more details.
+
+Usage
+-----
+
+If you need a logger, you can use the interface like this:
+
+```php
+<?php
+
+use Psr\Log\LoggerInterface;
+
+class Foo
+{
+ private $logger;
+
+ public function __construct(LoggerInterface $logger = null)
+ {
+ $this->logger = $logger;
+ }
+
+ public function doSomething()
+ {
+ if ($this->logger) {
+ $this->logger->info('Doing work');
+ }
+
+ // do something useful
+ }
+}
+```
+
+You can then pick one of the implementations of the interface to get a logger.
+
+If you want to implement the interface, you can require this package and
+implement `Psr\Log\LoggerInterface` in your code. Please read the
+[specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
+for details.
diff --git a/mayor-orig/www/include/share/googleapi/psr/log/composer.json b/mayor-orig/www/include/share/googleapi/psr/log/composer.json
new file mode 100644
index 00000000..87934d70
--- /dev/null
+++ b/mayor-orig/www/include/share/googleapi/psr/log/composer.json
@@ -0,0 +1,26 @@
+{
+ "name": "psr/log",
+ "description": "Common interface for logging libraries",
+ "keywords": ["psr", "psr-3", "log"],
+ "homepage": "https://github.com/php-fig/log",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Log\\": "Psr/Log/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ }
+}
diff --git a/mayor-orig/www/include/share/net/class.smtp.php b/mayor-orig/www/include/share/net/class.smtp.php
new file mode 100644
index 00000000..81a85d08
--- /dev/null
+++ b/mayor-orig/www/include/share/net/class.smtp.php
@@ -0,0 +1,1152 @@
+<?php
+/**
+ * PHPMailer RFC821 SMTP email transport class.
+ * PHP Version 5
+ * @package PHPMailer
+ * @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
+ * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
+ * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
+ * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
+ * @author Brent R. Matzelle (original founder)
+ * @copyright 2014 Marcus Bointon
+ * @copyright 2010 - 2012 Jim Jagielski
+ * @copyright 2004 - 2009 Andy Prevost
+ * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
+ * @note This program is distributed in the hope that it will be useful - WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * PHPMailer RFC821 SMTP email transport class.
+ * Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
+ * @package PHPMailer
+ * @author Chris Ryan
+ * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
+ */
+class SMTP
+{
+ /**
+ * The PHPMailer SMTP version number.
+ * @type string
+ */
+ const VERSION = '5.2.9';
+
+ /**
+ * SMTP line break constant.
+ * @type string
+ */
+ const CRLF = "\r\n";
+
+ /**
+ * The SMTP port to use if one is not specified.
+ * @type integer
+ */
+ const DEFAULT_SMTP_PORT = 25;
+
+ /**
+ * The maximum line length allowed by RFC 2822 section 2.1.1
+ * @type integer
+ */
+ const MAX_LINE_LENGTH = 998;
+
+ /**
+ * Debug level for no output
+ */
+ const DEBUG_OFF = 0;
+
+ /**
+ * Debug level to show client -> server messages
+ */
+ const DEBUG_CLIENT = 1;
+
+ /**
+ * Debug level to show client -> server and server -> client messages
+ */
+ const DEBUG_SERVER = 2;
+
+ /**
+ * Debug level to show connection status, client -> server and server -> client messages
+ */
+ const DEBUG_CONNECTION = 3;
+
+ /**
+ * Debug level to show all messages
+ */
+ const DEBUG_LOWLEVEL = 4;
+
+ /**
+ * The PHPMailer SMTP Version number.
+ * @type string
+ * @deprecated Use the `VERSION` constant instead
+ * @see SMTP::VERSION
+ */
+ public $Version = '5.2.9';
+
+ /**
+ * SMTP server port number.
+ * @type integer
+ * @deprecated This is only ever used as a default value, so use the `DEFAULT_SMTP_PORT` constant instead
+ * @see SMTP::DEFAULT_SMTP_PORT
+ */
+ public $SMTP_PORT = 25;
+
+ /**
+ * SMTP reply line ending.
+ * @type string
+ * @deprecated Use the `CRLF` constant instead
+ * @see SMTP::CRLF
+ */
+ public $CRLF = "\r\n";
+
+ /**
+ * Debug output level.
+ * Options:
+ * * self::DEBUG_OFF (`0`) No debug output, default
+ * * self::DEBUG_CLIENT (`1`) Client commands
+ * * self::DEBUG_SERVER (`2`) Client commands and server responses
+ * * self::DEBUG_CONNECTION (`3`) As DEBUG_SERVER plus connection status
+ * * self::DEBUG_LOWLEVEL (`4`) Low-level data output, all messages
+ * @type integer
+ */
+ public $do_debug = self::DEBUG_OFF;
+
+ /**
+ * How to handle debug output.
+ * Options:
+ * * `echo` Output plain-text as-is, appropriate for CLI
+ * * `html` Output escaped, line breaks converted to `<br>`, appropriate for browser output
+ * * `error_log` Output to error log as configured in php.ini
+ *
+ * Alternatively, you can provide a callable expecting two params: a message string and the debug level:
+ * <code>
+ * $smtp->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";};
+ * </code>
+ * @type string|callable
+ */
+ public $Debugoutput = 'echo';
+
+ /**
+ * Whether to use VERP.
+ * @link http://en.wikipedia.org/wiki/Variable_envelope_return_path
+ * @link http://www.postfix.org/VERP_README.html Info on VERP
+ * @type boolean
+ */
+ public $do_verp = false;
+
+ /**
+ * The timeout value for connection, in seconds.
+ * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2
+ * This needs to be quite high to function correctly with hosts using greetdelay as an anti-spam measure.
+ * @link http://tools.ietf.org/html/rfc2821#section-4.5.3.2
+ * @type integer
+ */
+ public $Timeout = 300;
+
+ /**
+ * How long to wait for commands to complete, in seconds.
+ * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2
+ * @type integer
+ */
+ public $Timelimit = 300;
+
+ /**
+ * The socket for the server connection.
+ * @type resource
+ */
+ protected $smtp_conn;
+
+ /**
+ * Error information, if any, for the last SMTP command.
+ * @type array
+ */
+ protected $error = array(
+ 'error' => '',
+ 'detail' => '',
+ 'smtp_code' => '',
+ 'smtp_code_ex' => ''
+ );
+
+ /**
+ * The reply the server sent to us for HELO.
+ * If null, no HELO string has yet been received.
+ * @type string|null
+ */
+ protected $helo_rply = null;
+
+ /**
+ * The set of SMTP extensions sent in reply to EHLO command.
+ * Indexes of the array are extension names.
+ * Value at index 'HELO' or 'EHLO' (according to command that was sent)
+ * represents the server name. In case of HELO it is the only element of the array.
+ * Other values can be boolean TRUE or an array containing extension options.
+ * If null, no HELO/EHLO string has yet been received.
+ * @type array|null
+ */
+ protected $server_caps = null;
+
+ /**
+ * The most recent reply received from the server.
+ * @type string
+ */
+ protected $last_reply = '';
+
+ /**
+ * Output debugging info via a user-selected method.
+ * @see SMTP::$Debugoutput
+ * @see SMTP::$do_debug
+ * @param string $str Debug string to output
+ * @param integer $level The debug level of this message; see DEBUG_* constants
+ * @return void
+ */
+ protected function edebug($str, $level = 0)
+ {
+ if ($level > $this->do_debug) {
+ return;
+ }
+ //Avoid clash with built-in function names
+ if (!in_array($this->Debugoutput, array('error_log', 'html', 'echo')) and is_callable($this->Debugoutput)) {
+ call_user_func($this->Debugoutput, $str, $this->do_debug);
+ return;
+ }
+ switch ($this->Debugoutput) {
+ case 'error_log':
+ //Don't output, just log
+ error_log($str);
+ break;
+ case 'html':
+ //Cleans up output a bit for a better looking, HTML-safe output
+ echo htmlentities(
+ preg_replace('/[\r\n]+/', '', $str),
+ ENT_QUOTES,
+ 'UTF-8'
+ )
+ . "<br>\n";
+ break;
+ case 'echo':
+ default:
+ //Normalize line breaks
+ $str = preg_replace('/(\r\n|\r|\n)/ms', "\n", $str);
+ echo gmdate('Y-m-d H:i:s') . "\t" . str_replace(
+ "\n",
+ "\n \t ",
+ trim($str)
+ )."\n";
+ }
+ }
+
+ /**
+ * Connect to an SMTP server.
+ * @param string $host SMTP server IP or host name
+ * @param integer $port The port number to connect to
+ * @param integer $timeout How long to wait for the connection to open
+ * @param array $options An array of options for stream_context_create()
+ * @access public
+ * @return boolean
+ */
+ public function connect($host, $port = null, $timeout = 30, $options = array())
+ {
+ static $streamok;
+ //This is enabled by default since 5.0.0 but some providers disable it
+ //Check this once and cache the result
+ if (is_null($streamok)) {
+ $streamok = function_exists('stream_socket_client');
+ }
+ // Clear errors to avoid confusion
+ $this->setError('');
+ // Make sure we are __not__ connected
+ if ($this->connected()) {
+ // Already connected, generate error
+ $this->setError('Already connected to a server');
+ return false;
+ }
+ if (empty($port)) {
+ $port = self::DEFAULT_SMTP_PORT;
+ }
+ // Connect to the SMTP server
+ $this->edebug(
+ "Connection: opening to $host:$port, t=$timeout, opt=".var_export($options, true),
+ self::DEBUG_CONNECTION
+ );
+ $errno = 0;
+ $errstr = '';
+ if ($streamok) {
+ $socket_context = stream_context_create($options);
+ //Suppress errors; connection failures are handled at a higher level
+ $this->smtp_conn = @stream_socket_client(
+ $host . ":" . $port,
+ $errno,
+ $errstr,
+ $timeout,
+ STREAM_CLIENT_CONNECT,
+ $socket_context
+ );
+ } else {
+ //Fall back to fsockopen which should work in more places, but is missing some features
+ $this->edebug(
+ "Connection: stream_socket_client not available, falling back to fsockopen",
+ self::DEBUG_CONNECTION
+ );
+ $this->smtp_conn = fsockopen(
+ $host,
+ $port,
+ $errno,
+ $errstr,
+ $timeout
+ );
+ }
+ // Verify we connected properly
+ if (!is_resource($this->smtp_conn)) {
+ $this->setError(
+ 'Failed to connect to server',
+ $errno,
+ $errstr
+ );
+ $this->edebug(
+ 'SMTP ERROR: ' . $this->error['error']
+ . ": $errstr ($errno)",
+ self::DEBUG_CLIENT
+ );
+ return false;
+ }
+ $this->edebug('Connection: opened', self::DEBUG_CONNECTION);
+ // SMTP server can take longer to respond, give longer timeout for first read
+ // Windows does not have support for this timeout function
+ if (substr(PHP_OS, 0, 3) != 'WIN') {
+ $max = ini_get('max_execution_time');
+ // Don't bother if unlimited
+ if ($max != 0 && $timeout > $max) {
+ @set_time_limit($timeout);
+ }
+ stream_set_timeout($this->smtp_conn, $timeout, 0);
+ }
+ // Get any announcement
+ $announce = $this->get_lines();
+ $this->edebug('SERVER -> CLIENT: ' . $announce, self::DEBUG_SERVER);
+ return true;
+ }
+
+ /**
+ * Initiate a TLS (encrypted) session.
+ * @access public
+ * @return boolean
+ */
+ public function startTLS()
+ {
+ if (!$this->sendCommand('STARTTLS', 'STARTTLS', 220)) {
+ return false;
+ }
+ // Begin encrypted connection
+ if (!stream_socket_enable_crypto(
+ $this->smtp_conn,
+ true,
+ STREAM_CRYPTO_METHOD_TLS_CLIENT
+ )) {
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Perform SMTP authentication.
+ * Must be run after hello().
+ * @see hello()
+ * @param string $username The user name
+ * @param string $password The password
+ * @param string $authtype The auth type (PLAIN, LOGIN, NTLM, CRAM-MD5)
+ * @param string $realm The auth realm for NTLM
+ * @param string $workstation The auth workstation for NTLM
+ * @access public
+ * @return boolean True if successfully authenticated.
+ */
+ public function authenticate(
+ $username,
+ $password,
+ $authtype = null,
+ $realm = '',
+ $workstation = ''
+ ) {
+ if (!$this->server_caps) {
+ $this->setError('Authentication is not allowed before HELO/EHLO');
+ return false;
+ }
+
+ if (array_key_exists('EHLO', $this->server_caps)) {
+ // SMTP extensions are available. Let's try to find a proper authentication method
+
+ if (!array_key_exists('AUTH', $this->server_caps)) {
+ $this->setError('Authentication is not allowed at this stage');
+ // 'at this stage' means that auth may be allowed after the stage changes
+ // e.g. after STARTTLS
+ return false;
+ }
+
+ self::edebug('Auth method requested: ' . ($authtype ? $authtype : 'UNKNOWN'), self::DEBUG_LOWLEVEL);
+ self::edebug(
+ 'Auth methods available on the server: ' . implode(',', $this->server_caps['AUTH']),
+ self::DEBUG_LOWLEVEL
+ );
+
+ if (empty($authtype)) {
+ foreach (array('LOGIN', 'CRAM-MD5', 'NTLM', 'PLAIN') as $method) {
+ if (in_array($method, $this->server_caps['AUTH'])) {
+ $authtype = $method;
+ break;
+ }
+ }
+ if (empty($authtype)) {
+ $this->setError('No supported authentication methods found');
+ return false;
+ }
+ self::edebug('Auth method selected: '.$authtype, self::DEBUG_LOWLEVEL);
+ }
+
+ if (!in_array($authtype, $this->server_caps['AUTH'])) {
+ $this->setError("The requested authentication method \"$authtype\" is not supported by the server");
+ return false;
+ }
+ } elseif (empty($authtype)) {
+ $authtype = 'LOGIN';
+ }
+ switch ($authtype) {
+ case 'PLAIN':
+ // Start authentication
+ if (!$this->sendCommand('AUTH', 'AUTH PLAIN', 334)) {
+ return false;
+ }
+ // Send encoded username and password
+ if (!$this->sendCommand(
+ 'User & Password',
+ base64_encode("\0" . $username . "\0" . $password),
+ 235
+ )
+ ) {
+ return false;
+ }
+ break;
+ case 'LOGIN':
+ // Start authentication
+ if (!$this->sendCommand('AUTH', 'AUTH LOGIN', 334)) {
+ return false;
+ }
+ if (!$this->sendCommand("Username", base64_encode($username), 334)) {
+ return false;
+ }
+ if (!$this->sendCommand("Password", base64_encode($password), 235)) {
+ return false;
+ }
+ break;
+ case 'NTLM':
+ /*
+ * ntlm_sasl_client.php
+ * Bundled with Permission
+ *
+ * How to telnet in windows:
+ * http://technet.microsoft.com/en-us/library/aa995718%28EXCHG.65%29.aspx
+ * PROTOCOL Docs http://curl.haxx.se/rfc/ntlm.html#ntlmSmtpAuthentication
+ */
+ require_once 'extras/ntlm_sasl_client.php';
+ $temp = new stdClass;
+ $ntlm_client = new ntlm_sasl_client_class;
+ //Check that functions are available
+ if (!$ntlm_client->Initialize($temp)) {
+ $this->setError($temp->error);
+ $this->edebug(
+ 'You need to enable some modules in your php.ini file: '
+ . $this->error['error'],
+ self::DEBUG_CLIENT
+ );
+ return false;
+ }
+ //msg1
+ $msg1 = $ntlm_client->TypeMsg1($realm, $workstation); //msg1
+
+ if (!$this->sendCommand(
+ 'AUTH NTLM',
+ 'AUTH NTLM ' . base64_encode($msg1),
+ 334
+ )
+ ) {
+ return false;
+ }
+ //Though 0 based, there is a white space after the 3 digit number
+ //msg2
+ $challenge = substr($this->last_reply, 3);
+ $challenge = base64_decode($challenge);
+ $ntlm_res = $ntlm_client->NTLMResponse(
+ substr($challenge, 24, 8),
+ $password
+ );
+ //msg3
+ $msg3 = $ntlm_client->TypeMsg3(
+ $ntlm_res,
+ $username,
+ $realm,
+ $workstation
+ );
+ // send encoded username
+ return $this->sendCommand('Username', base64_encode($msg3), 235);
+ case 'CRAM-MD5':
+ // Start authentication
+ if (!$this->sendCommand('AUTH CRAM-MD5', 'AUTH CRAM-MD5', 334)) {
+ return false;
+ }
+ // Get the challenge
+ $challenge = base64_decode(substr($this->last_reply, 4));
+
+ // Build the response
+ $response = $username . ' ' . $this->hmac($challenge, $password);
+
+ // send encoded credentials
+ return $this->sendCommand('Username', base64_encode($response), 235);
+ default:
+ $this->setError("Authentication method \"$authtype\" is not supported");
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Calculate an MD5 HMAC hash.
+ * Works like hash_hmac('md5', $data, $key)
+ * in case that function is not available
+ * @param string $data The data to hash
+ * @param string $key The key to hash with
+ * @access protected
+ * @return string
+ */
+ protected function hmac($data, $key)
+ {
+ if (function_exists('hash_hmac')) {
+ return hash_hmac('md5', $data, $key);
+ }
+
+ // The following borrowed from
+ // http://php.net/manual/en/function.mhash.php#27225
+
+ // RFC 2104 HMAC implementation for php.
+ // Creates an md5 HMAC.
+ // Eliminates the need to install mhash to compute a HMAC
+ // by Lance Rushing
+
+ $bytelen = 64; // byte length for md5
+ if (strlen($key) > $bytelen) {
+ $key = pack('H*', md5($key));
+ }
+ $key = str_pad($key, $bytelen, chr(0x00));
+ $ipad = str_pad('', $bytelen, chr(0x36));
+ $opad = str_pad('', $bytelen, chr(0x5c));
+ $k_ipad = $key ^ $ipad;
+ $k_opad = $key ^ $opad;
+
+ return md5($k_opad . pack('H*', md5($k_ipad . $data)));
+ }
+
+ /**
+ * Check connection state.
+ * @access public
+ * @return boolean True if connected.
+ */
+ public function connected()
+ {
+ if (is_resource($this->smtp_conn)) {
+ $sock_status = stream_get_meta_data($this->smtp_conn);
+ if ($sock_status['eof']) {
+ // The socket is valid but we are not connected
+ $this->edebug(
+ 'SMTP NOTICE: EOF caught while checking if connected',
+ self::DEBUG_CLIENT
+ );
+ $this->close();
+ return false;
+ }
+ return true; // everything looks good
+ }
+ return false;
+ }
+
+ /**
+ * Close the socket and clean up the state of the class.
+ * Don't use this function without first trying to use QUIT.
+ * @see quit()
+ * @access public
+ * @return void
+ */
+ public function close()
+ {
+ $this->setError('');
+ $this->server_caps = null;
+ $this->helo_rply = null;
+ if (is_resource($this->smtp_conn)) {
+ // close the connection and cleanup
+ fclose($this->smtp_conn);
+ $this->smtp_conn = null; //Makes for cleaner serialization
+ $this->edebug('Connection: closed', self::DEBUG_CONNECTION);
+ }
+ }
+
+ /**
+ * Send an SMTP DATA command.
+ * Issues a data command and sends the msg_data to the server,
+ * finializing the mail transaction. $msg_data is the message
+ * that is to be send with the headers. Each header needs to be
+ * on a single line followed by a <CRLF> with the message headers
+ * and the message body being separated by and additional <CRLF>.
+ * Implements rfc 821: DATA <CRLF>
+ * @param string $msg_data Message data to send
+ * @access public
+ * @return boolean
+ */
+ public function data($msg_data)
+ {
+ //This will use the standard timelimit
+ if (!$this->sendCommand('DATA', 'DATA', 354)) {
+ return false;
+ }
+
+ /* The server is ready to accept data!
+ * According to rfc821 we should not send more than 1000 characters on a single line (including the CRLF)
+ * so we will break the data up into lines by \r and/or \n then if needed we will break each of those into
+ * smaller lines to fit within the limit.
+ * We will also look for lines that start with a '.' and prepend an additional '.'.
+ * NOTE: this does not count towards line-length limit.
+ */
+
+ // Normalize line breaks before exploding
+ $lines = explode("\n", str_replace(array("\r\n", "\r"), "\n", $msg_data));
+
+ /* To distinguish between a complete RFC822 message and a plain message body, we check if the first field
+ * of the first line (':' separated) does not contain a space then it _should_ be a header and we will
+ * process all lines before a blank line as headers.
+ */
+
+ $field = substr($lines[0], 0, strpos($lines[0], ':'));
+ $in_headers = false;
+ if (!empty($field) && strpos($field, ' ') === false) {
+ $in_headers = true;
+ }
+
+ foreach ($lines as $line) {
+ $lines_out = array();
+ if ($in_headers and $line == '') {
+ $in_headers = false;
+ }
+ //Break this line up into several smaller lines if it's too long
+ //Micro-optimisation: isset($str[$len]) is faster than (strlen($str) > $len),
+ while (isset($line[self::MAX_LINE_LENGTH])) {
+ //Working backwards, try to find a space within the last MAX_LINE_LENGTH chars of the line to break on
+ //so as to avoid breaking in the middle of a word
+ $pos = strrpos(substr($line, 0, self::MAX_LINE_LENGTH), ' ');
+ //Deliberately matches both false and 0
+ if (!$pos) {
+ //No nice break found, add a hard break
+ $pos = self::MAX_LINE_LENGTH - 1;
+ $lines_out[] = substr($line, 0, $pos);
+ $line = substr($line, $pos);
+ } else {
+ //Break at the found point
+ $lines_out[] = substr($line, 0, $pos);
+ //Move along by the amount we dealt with
+ $line = substr($line, $pos + 1);
+ }
+ //If processing headers add a LWSP-char to the front of new line RFC822 section 3.1.1
+ if ($in_headers) {
+ $line = "\t" . $line;
+ }
+ }
+ $lines_out[] = $line;
+
+ //Send the lines to the server
+ foreach ($lines_out as $line_out) {
+ //RFC2821 section 4.5.2
+ if (!empty($line_out) and $line_out[0] == '.') {
+ $line_out = '.' . $line_out;
+ }
+ $this->client_send($line_out . self::CRLF);
+ }
+ }
+
+ //Message data has been sent, complete the command
+ //Increase timelimit for end of DATA command
+ $savetimelimit = $this->Timelimit;
+ $this->Timelimit = $this->Timelimit * 2;
+ $result = $this->sendCommand('DATA END', '.', 250);
+ //Restore timelimit
+ $this->Timelimit = $savetimelimit;
+ return $result;
+ }
+
+ /**
+ * Send an SMTP HELO or EHLO command.
+ * Used to identify the sending server to the receiving server.
+ * This makes sure that client and server are in a known state.
+ * Implements RFC 821: HELO <SP> <domain> <CRLF>
+ * and RFC 2821 EHLO.
+ * @param string $host The host name or IP to connect to
+ * @access public
+ * @return boolean
+ */
+ public function hello($host = '')
+ {
+ //Try extended hello first (RFC 2821)
+ return (boolean)($this->sendHello('EHLO', $host) or $this->sendHello('HELO', $host));
+ }
+
+ /**
+ * Send an SMTP HELO or EHLO command.
+ * Low-level implementation used by hello()
+ * @see hello()
+ * @param string $hello The HELO string
+ * @param string $host The hostname to say we are
+ * @access protected
+ * @return boolean
+ */
+ protected function sendHello($hello, $host)
+ {
+ $noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250);
+ $this->helo_rply = $this->last_reply;
+ if ($noerror) {
+ $this->parseHelloFields($hello);
+ } else {
+ $this->server_caps = null;
+ }
+ return $noerror;
+ }
+
+ /**
+ * Parse a reply to HELO/EHLO command to discover server extensions.
+ * In case of HELO, the only parameter that can be discovered is a server name.
+ * @access protected
+ * @param string $type - 'HELO' or 'EHLO'
+ */
+ protected function parseHelloFields($type)
+ {
+ $this->server_caps = array();
+ $lines = explode("\n", $this->last_reply);
+ foreach ($lines as $n => $s) {
+ $s = trim(substr($s, 4));
+ if (!$s) {
+ continue;
+ }
+ $fields = explode(' ', $s);
+ if (!empty($fields)) {
+ if (!$n) {
+ $name = $type;
+ $fields = $fields[0];
+ } else {
+ $name = array_shift($fields);
+ if ($name == 'SIZE') {
+ $fields = ($fields) ? $fields[0] : 0;
+ }
+ }
+ $this->server_caps[$name] = ($fields ? $fields : true);
+ }
+ }
+ }
+
+ /**
+ * Send an SMTP MAIL command.
+ * Starts a mail transaction from the email address specified in
+ * $from. Returns true if successful or false otherwise. If True
+ * the mail transaction is started and then one or more recipient
+ * commands may be called followed by a data command.
+ * Implements rfc 821: MAIL <SP> FROM:<reverse-path> <CRLF>
+ * @param string $from Source address of this message
+ * @access public
+ * @return boolean
+ */
+ public function mail($from)
+ {
+ $useVerp = ($this->do_verp ? ' XVERP' : '');
+ return $this->sendCommand(
+ 'MAIL FROM',
+ 'MAIL FROM:<' . $from . '>' . $useVerp,
+ 250
+ );
+ }
+
+ /**
+ * Send an SMTP QUIT command.
+ * Closes the socket if there is no error or the $close_on_error argument is true.
+ * Implements from rfc 821: QUIT <CRLF>
+ * @param boolean $close_on_error Should the connection close if an error occurs?
+ * @access public
+ * @return boolean
+ */
+ public function quit($close_on_error = true)
+ {
+ $noerror = $this->sendCommand('QUIT', 'QUIT', 221);
+ $err = $this->error; //Save any error
+ if ($noerror or $close_on_error) {
+ $this->close();
+ $this->error = $err; //Restore any error from the quit command
+ }
+ return $noerror;
+ }
+
+ /**
+ * Send an SMTP RCPT command.
+ * Sets the TO argument to $toaddr.
+ * Returns true if the recipient was accepted false if it was rejected.
+ * Implements from rfc 821: RCPT <SP> TO:<forward-path> <CRLF>
+ * @param string $toaddr The address the message is being sent to
+ * @access public
+ * @return boolean
+ */
+ public function recipient($toaddr)
+ {
+ return $this->sendCommand(
+ 'RCPT TO',
+ 'RCPT TO:<' . $toaddr . '>',
+ array(250, 251)
+ );
+ }
+
+ /**
+ * Send an SMTP RSET command.
+ * Abort any transaction that is currently in progress.
+ * Implements rfc 821: RSET <CRLF>
+ * @access public
+ * @return boolean True on success.
+ */
+ public function reset()
+ {
+ return $this->sendCommand('RSET', 'RSET', 250);
+ }
+
+ /**
+ * Send a command to an SMTP server and check its return code.
+ * @param string $command The command name - not sent to the server
+ * @param string $commandstring The actual command to send
+ * @param integer|array $expect One or more expected integer success codes
+ * @access protected
+ * @return boolean True on success.
+ */
+ protected function sendCommand($command, $commandstring, $expect)
+ {
+ if (!$this->connected()) {
+ $this->setError("Called $command without being connected");
+ return false;
+ }
+ $this->client_send($commandstring . self::CRLF);
+
+ $this->last_reply = $this->get_lines();
+ // Fetch SMTP code and possible error code explanation
+ $matches = array();
+ if (preg_match("/^([0-9]{3})[ -](?:([0-9]\\.[0-9]\\.[0-9]) )?/", $this->last_reply, $matches)) {
+ $code = $matches[1];
+ $code_ex = (count($matches) > 2 ? $matches[2] : null);
+ // Cut off error code from each response line
+ $detail = preg_replace(
+ "/{$code}[ -]".($code_ex ? str_replace('.', '\\.', $code_ex).' ' : '')."/m",
+ '',
+ $this->last_reply
+ );
+ } else {
+ // Fall back to simple parsing if regex fails
+ $code = substr($this->last_reply, 0, 3);
+ $code_ex = null;
+ $detail = substr($this->last_reply, 4);
+ }
+
+ $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER);
+
+ if (!in_array($code, (array)$expect)) {
+ $this->setError(
+ "$command command failed",
+ $detail,
+ $code,
+ $code_ex
+ );
+ $this->edebug(
+ 'SMTP ERROR: ' . $this->error['error'] . ': ' . $this->last_reply,
+ self::DEBUG_CLIENT
+ );
+ return false;
+ }
+
+ $this->setError('');
+ return true;
+ }
+
+ /**
+ * Send an SMTP SAML command.
+ * Starts a mail transaction from the email address specified in $from.
+ * Returns true if successful or false otherwise. If True
+ * the mail transaction is started and then one or more recipient
+ * commands may be called followed by a data command. This command
+ * will send the message to the users terminal if they are logged
+ * in and send them an email.
+ * Implements rfc 821: SAML <SP> FROM:<reverse-path> <CRLF>
+ * @param string $from The address the message is from
+ * @access public
+ * @return boolean
+ */
+ public function sendAndMail($from)
+ {
+ return $this->sendCommand('SAML', "SAML FROM:$from", 250);
+ }
+
+ /**
+ * Send an SMTP VRFY command.
+ * @param string $name The name to verify
+ * @access public
+ * @return boolean
+ */
+ public function verify($name)
+ {
+ return $this->sendCommand('VRFY', "VRFY $name", array(250, 251));
+ }
+
+ /**
+ * Send an SMTP NOOP command.
+ * Used to keep keep-alives alive, doesn't actually do anything
+ * @access public
+ * @return boolean
+ */
+ public function noop()
+ {
+ return $this->sendCommand('NOOP', 'NOOP', 250);
+ }
+
+ /**
+ * Send an SMTP TURN command.
+ * This is an optional command for SMTP that this class does not support.
+ * This method is here to make the RFC821 Definition complete for this class
+ * and _may_ be implemented in future
+ * Implements from rfc 821: TURN <CRLF>
+ * @access public
+ * @return boolean
+ */
+ public function turn()
+ {
+ $this->setError('The SMTP TURN command is not implemented');
+ $this->edebug('SMTP NOTICE: ' . $this->error['error'], self::DEBUG_CLIENT);
+ return false;
+ }
+
+ /**
+ * Send raw data to the server.
+ * @param string $data The data to send
+ * @access public
+ * @return integer|boolean The number of bytes sent to the server or false on error
+ */
+ public function client_send($data)
+ {
+ $this->edebug("CLIENT -> SERVER: $data", self::DEBUG_CLIENT);
+ return fwrite($this->smtp_conn, $data);
+ }
+
+ /**
+ * Get the latest error.
+ * @access public
+ * @return array
+ */
+ public function getError()
+ {
+ return $this->error;
+ }
+
+ /**
+ * Get SMTP extensions available on the server
+ * @access public
+ * @return array|null
+ */
+ public function getServerExtList()
+ {
+ return $this->server_caps;
+ }
+
+ /**
+ * A multipurpose method
+ * The method works in three ways, dependent on argument value and current state
+ * 1. HELO/EHLO was not sent - returns null and set up $this->error
+ * 2. HELO was sent
+ * $name = 'HELO': returns server name
+ * $name = 'EHLO': returns boolean false
+ * $name = any string: returns null and set up $this->error
+ * 3. EHLO was sent
+ * $name = 'HELO'|'EHLO': returns server name
+ * $name = any string: if extension $name exists, returns boolean True
+ * or its options. Otherwise returns boolean False
+ * In other words, one can use this method to detect 3 conditions:
+ * - null returned: handshake was not or we don't know about ext (refer to $this->error)
+ * - false returned: the requested feature exactly not exists
+ * - positive value returned: the requested feature exists
+ * @param string $name Name of SMTP extension or 'HELO'|'EHLO'
+ * @return mixed
+ */
+ public function getServerExt($name)
+ {
+ if (!$this->server_caps) {
+ $this->setError('No HELO/EHLO was sent');
+ return null;
+ }
+
+ // the tight logic knot ;)
+ if (!array_key_exists($name, $this->server_caps)) {
+ if ($name == 'HELO') {
+ return $this->server_caps['EHLO'];
+ }
+ if ($name == 'EHLO' || array_key_exists('EHLO', $this->server_caps)) {
+ return false;
+ }
+ $this->setError('HELO handshake was used. Client knows nothing about server extensions');
+ return null;
+ }
+
+ return $this->server_caps[$name];
+ }
+
+ /**
+ * Get the last reply from the server.
+ * @access public
+ * @return string
+ */
+ public function getLastReply()
+ {
+ return $this->last_reply;
+ }
+
+ /**
+ * Read the SMTP server's response.
+ * Either before eof or socket timeout occurs on the operation.
+ * With SMTP we can tell if we have more lines to read if the
+ * 4th character is '-' symbol. If it is a space then we don't
+ * need to read anything else.
+ * @access protected
+ * @return string
+ */
+ protected function get_lines()
+ {
+ // If the connection is bad, give up straight away
+ if (!is_resource($this->smtp_conn)) {
+ return '';
+ }
+ $data = '';
+ $endtime = 0;
+ stream_set_timeout($this->smtp_conn, $this->Timeout);
+ if ($this->Timelimit > 0) {
+ $endtime = time() + $this->Timelimit;
+ }
+ while (is_resource($this->smtp_conn) && !feof($this->smtp_conn)) {
+ $str = @fgets($this->smtp_conn, 515);
+ $this->edebug("SMTP -> get_lines(): \$data was \"$data\"", self::DEBUG_LOWLEVEL);
+ $this->edebug("SMTP -> get_lines(): \$str is \"$str\"", self::DEBUG_LOWLEVEL);
+ $data .= $str;
+ $this->edebug("SMTP -> get_lines(): \$data is \"$data\"", self::DEBUG_LOWLEVEL);
+ // If 4th character is a space, we are done reading, break the loop, micro-optimisation over strlen
+ if ((isset($str[3]) and $str[3] == ' ')) {
+ break;
+ }
+ // Timed-out? Log and break
+ $info = stream_get_meta_data($this->smtp_conn);
+ if ($info['timed_out']) {
+ $this->edebug(
+ 'SMTP -> get_lines(): timed-out (' . $this->Timeout . ' sec)',
+ self::DEBUG_LOWLEVEL
+ );
+ break;
+ }
+ // Now check if reads took too long
+ if ($endtime and time() > $endtime) {
+ $this->edebug(
+ 'SMTP -> get_lines(): timelimit reached ('.
+ $this->Timelimit . ' sec)',
+ self::DEBUG_LOWLEVEL
+ );
+ break;
+ }
+ }
+ return $data;
+ }
+
+ /**
+ * Enable or disable VERP address generation.
+ * @param boolean $enabled
+ */
+ public function setVerp($enabled = false)
+ {
+ $this->do_verp = $enabled;
+ }
+
+ /**
+ * Get VERP address generation mode.
+ * @return boolean
+ */
+ public function getVerp()
+ {
+ return $this->do_verp;
+ }
+
+ /**
+ * Set error messages and codes.
+ * @param string $message The error message
+ * @param string $detail Further detail on the error
+ * @param string $smtp_code An associated SMTP error code
+ * @param string $smtp_code_ex Extended SMTP code
+ */
+ protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '')
+ {
+ $this->error = array(
+ 'error' => $message,
+ 'detail' => $detail,
+ 'smtp_code' => $smtp_code,
+ 'smtp_code_ex' => $smtp_code_ex
+ );
+ }
+
+ /**
+ * Set debug output method.
+ * @param string|callable $method The name of the mechanism to use for debugging output, or a callable to handle it.
+ */
+ public function setDebugOutput($method = 'echo')
+ {
+ $this->Debugoutput = $method;
+ }
+
+ /**
+ * Get debug output method.
+ * @return string
+ */
+ public function getDebugOutput()
+ {
+ return $this->Debugoutput;
+ }
+
+ /**
+ * Set debug output level.
+ * @param integer $level
+ */
+ public function setDebugLevel($level = 0)
+ {
+ $this->do_debug = $level;
+ }
+
+ /**
+ * Get debug output level.
+ * @return integer
+ */
+ public function getDebugLevel()
+ {
+ return $this->do_debug;
+ }
+
+ /**
+ * Set SMTP timeout.
+ * @param integer $timeout
+ */
+ public function setTimeout($timeout = 0)
+ {
+ $this->Timeout = $timeout;
+ }
+
+ /**
+ * Get SMTP timeout.
+ * @return integer
+ */
+ public function getTimeout()
+ {
+ return $this->Timeout;
+ }
+}
diff --git a/mayor-orig/www/include/share/net/facebook.php b/mayor-orig/www/include/share/net/facebook.php
new file mode 100644
index 00000000..74721a0a
--- /dev/null
+++ b/mayor-orig/www/include/share/net/facebook.php
@@ -0,0 +1,70 @@
+<?php
+
+//__FBCONNECT_ENABLED===true
+
+function mayorFacebookAuth() {
+
+ if (__FBCONNECT_ENABLED !== true ) return false;
+
+ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+ $_SESSION['alert'][] = 'info::facebook:szerver konfigurációs hiba, legalább 5.4-es php verzió szükséges!';
+ return false;
+ } else {
+ /* facebook login start */
+ require_once ('include/share/facebook/autoload.php');
+ $fb = new Facebook\Facebook(array(
+ 'app_id' => __FB_APP_ID,
+ 'app_secret' => __FB_APP_SECRET,
+ 'default_graph_version' => 'v2.5',
+ ));
+ $helper = $fb->getJavaScriptHelper();
+ try {
+ $accessToken = $helper->getAccessToken();
+ } catch(Facebook\Exceptions\FacebookResponseException $e) {
+ // When Graph returns an error
+ $_SESSION['alert'][] = 'info::facebook gráf hiba: ' . $e->getMessage();
+ } catch(Facebook\Exceptions\FacebookSDKException $e) {
+ // When validation fails or other local issues
+ $_SESSION['alert'][] = 'info::facebook SDK hiba: ' . $e->getMessage();
+ }
+ if (isset($accessToken)) {
+ $_SESSION['facebook_access_token'] = (string) $accessToken;
+ $_SESSION['facebook_access_token_object'] = $accessToken;
+ try {
+ $response = $fb->get('/me?fields=id,name,email',$accessToken);
+ $userNode = $response->getGraphUser();
+ $fbUserId = $userNode->getField('id');
+ //$fbUserCn = $userNode->getField('name');
+ //$fbUserEmail = $userNode->getField('email');
+ } catch (Facebook\Exceptions\FacebookSDKException $e) {
+ $_SESSION['alert'][] = 'info::facebook gráf hiba: ' . $e->getMessage();
+ return false;
+ }
+ /* mayor auth start */
+ $accountInformation=array();
+ $toPolicy = 'public';
+ $data = getUserByFbUserId($fbUserId);
+ if ($data === false) {
+ $_SESSION['alert'][] = 'info:Nincs ilyen user (még) a MaYoR-ral összekötve, kérjük jelentkezz be jelszóval!';
+ } elseif (is_array($data)) {
+ // Ha van, akkor ki az? Mert ő bemehet.
+ return array('userAccount'=>$data['userAccount'],'toPolicy'=>$data['policy'],'fbUserEmail'=>$data['fbUserEmail'],'studyId'=>$data['studyId'],'fbUserCn'=>$data['fbUserCn'],'accessToken'=>$accessToken);
+ }
+ /* mayor auth stop */
+ } else {
+ $_SESSION['alert'][] = 'info::facebook:nem érvényes accessToken';
+ }
+ /* facebook login stop */
+ }
+ return false;
+}
+
+function getUserByFbUserId($fbUserId) {
+ if ($fbUserId=='') return false;
+ $q = "SELECT * FROM facebookConnect WHERE fbUserId='%s' ORDER BY policy LIMIT 1";
+ $v = array('fbUserId'=>$fbUserId);
+ $record = db_query($q,array('fv'=>'getUserByFbUserId','modul'=>'login','result'=>'record','values'=>$v));
+ return $record;
+}
+
+?>
diff --git a/mayor-orig/www/include/share/net/googleapi.php b/mayor-orig/www/include/share/net/googleapi.php
new file mode 100644
index 00000000..bfe3642d
--- /dev/null
+++ b/mayor-orig/www/include/share/net/googleapi.php
@@ -0,0 +1,65 @@
+<?php
+
+//__GOOGLEAPI_ENABLED===true
+
+function mayorGoogleApiAuth() {
+
+ if (__GOOGLEAPI_ENABLED !== true ) return false;
+
+ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+ $_SESSION['alert'][] = 'info::googleapi:szerver konfigurációs hiba, legalább 5.4-es php verzió szükséges!';
+ return false;
+ } else {
+ /* google login start */
+ require_once ('include/share/googleapi/autoload.php');
+
+ $redirect_uri = _BASE_URL.'/index.php?action=googleapilogin';
+ $client = new Google_Client();
+ //$client->setAuthConfig($oauth_credentials);
+ $client->setClientId(__GOOGLEAPI_CLIENT_ID);
+ $client->setClientSecret(__GOOGLEAPI_CLIENT_SECRET);
+ $client->setRedirectUri($redirect_uri);
+ $client->setScopes('email');
+
+ try {
+ $payload = $client->verifyIdToken($_GET['id_token']);
+ } catch(Exception $e) {
+ $_SESSION['alert'][] = 'info::googleapi SDK hiba: ' . $e->getMessage();
+ }
+ if (isset($payload['sub'])) { // subject
+ $_SESSION['googleapi_object'] = $payload;
+ // mayor auth start
+ $accountInformation=array();
+ $toPolicy = 'public';
+ $data = getUserByGoogleSub($payload['sub']); // subject=google user id
+ if ($data === false) {
+ $_SESSION['alert'][] = 'info:Nincs ilyen user (még) a MaYoR-ral összekötve, kérjük jelentkezz be jelszóval!';
+ } elseif (is_array($data)) {
+ // Ha van, akkor ki az? Mert ő bemehet.
+ setGoogleToken($payload['sub'],$_GET['id_token']); // a verifyIdToken igazolja
+ return array('userAccount'=>$data['userAccount'],'toPolicy'=>$data['policy'],'googleUserEmail'=>$data['googleUserEmail'],'studyId'=>$data['studyId'],'googleUserCn'=>$data['googleUserCn'],'accessToken'=>$accessToken);
+ }
+ /* mayor auth stop */
+ } else {
+ $_SESSION['alert'][] = 'info::googleapi:nem érvényes accessToken';
+ }
+ /* googleapi login stop */
+ }
+ return false;
+}
+
+function getUserByGoogleSub($googleSub) {
+ if ($googleSub=='') return false;
+ $q = "SELECT * FROM googleConnect WHERE googleSub='%s' ORDER BY policy LIMIT 1";
+ $v = array($googleSub);
+ $record = db_query($q,array('fv'=>'getUserByGoogleSub','modul'=>'login','result'=>'record','values'=>$v));
+ return $record;
+}
+
+function setGoogleToken($googleSub, $id_token) {
+ if ($googleSub=='') return false;
+ if ($id_token=='') return false;
+ $_SESSION['googleapi_id_token'] = $id_token;
+}
+
+?>
diff --git a/mayor-orig/www/include/share/net/phpmailer.php b/mayor-orig/www/include/share/net/phpmailer.php
new file mode 100644
index 00000000..5bbaec78
--- /dev/null
+++ b/mayor-orig/www/include/share/net/phpmailer.php
@@ -0,0 +1,3552 @@
+<?php
+/**
+ * PHPMailer - PHP email creation and transport class.
+ * PHP Version 5
+ * @package PHPMailer
+ * @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
+ * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
+ * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
+ * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
+ * @author Brent R. Matzelle (original founder)
+ * @copyright 2012 - 2014 Marcus Bointon
+ * @copyright 2010 - 2012 Jim Jagielski
+ * @copyright 2004 - 2009 Andy Prevost
+ * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
+ * @note This program is distributed in the hope that it will be useful - WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+/**
+ * PHPMailer - PHP email creation and transport class.
+ * @package PHPMailer
+ * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
+ * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
+ * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
+ * @author Brent R. Matzelle (original founder)
+ */
+class PHPMailer
+{
+ /**
+ * The PHPMailer Version number.
+ * @type string
+ */
+ public $Version = '5.2.9';
+
+ /**
+ * Email priority.
+ * Options: 1 = High, 3 = Normal, 5 = low.
+ * @type integer
+ */
+ public $Priority = 3;
+
+ /**
+ * The character set of the message.
+ * @type string
+ */
+ public $CharSet = 'utf-8';
+
+ /**
+ * The MIME Content-type of the message.
+ * @type string
+ */
+ public $ContentType = 'text/plain';
+
+ /**
+ * The message encoding.
+ * Options: "8bit", "7bit", "binary", "base64", and "quoted-printable".
+ * @type string
+ */
+ public $Encoding = '8bit';
+
+ /**
+ * Holds the most recent mailer error message.
+ * @type string
+ */
+ public $ErrorInfo = '';
+
+ /**
+ * The From email address for the message.
+ * @type string
+ */
+ public $From = 'root@localhost';
+
+ /**
+ * The From name of the message.
+ * @type string
+ */
+ public $FromName = 'Root User';
+
+ /**
+ * The Sender email (Return-Path) of the message.
+ * If not empty, will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
+ * @type string
+ */
+ public $Sender = '';
+
+ /**
+ * The Return-Path of the message.
+ * If empty, it will be set to either From or Sender.
+ * @type string
+ * @deprecated Email senders should never set a return-path header;
+ * it's the receiver's job (RFC5321 section 4.4), so this no longer does anything.
+ * @link https://tools.ietf.org/html/rfc5321#section-4.4 RFC5321 reference
+ */
+ public $ReturnPath = '';
+
+ /**
+ * The Subject of the message.
+ * @type string
+ */
+ public $Subject = '';
+
+ /**
+ * An HTML or plain text message body.
+ * If HTML then call isHTML(true).
+ * @type string
+ */
+ public $Body = '';
+
+ /**
+ * The plain-text message body.
+ * This body can be read by mail clients that do not have HTML email
+ * capability such as mutt & Eudora.
+ * Clients that can read HTML will view the normal Body.
+ * @type string
+ */
+ public $AltBody = '';
+
+ /**
+ * An iCal message part body.
+ * Only supported in simple alt or alt_inline message types
+ * To generate iCal events, use the bundled extras/EasyPeasyICS.php class or iCalcreator
+ * @link http://sprain.ch/blog/downloads/php-class-easypeasyics-create-ical-files-with-php/
+ * @link http://kigkonsult.se/iCalcreator/
+ * @type string
+ */
+ public $Ical = '';
+
+ /**
+ * The complete compiled MIME message body.
+ * @access protected
+ * @type string
+ */
+ protected $MIMEBody = '';
+
+ /**
+ * The complete compiled MIME message headers.
+ * @type string
+ * @access protected
+ */
+ protected $MIMEHeader = '';
+
+ /**
+ * Extra headers that createHeader() doesn't fold in.
+ * @type string
+ * @access protected
+ */
+ protected $mailHeader = '';
+
+ /**
+ * Word-wrap the message body to this number of chars.
+ * Set to 0 to not wrap. A useful value here is 78, for RFC2822 section 2.1.1 compliance.
+ * @type integer
+ */
+ public $WordWrap = 0;
+
+ /**
+ * Which method to use to send mail.
+ * Options: "mail", "sendmail", or "smtp".
+ * @type string
+ */
+ public $Mailer = 'mail';
+
+ /**
+ * The path to the sendmail program.
+ * @type string
+ */
+ public $Sendmail = '/usr/sbin/sendmail';
+
+ /**
+ * Whether mail() uses a fully sendmail-compatible MTA.
+ * One which supports sendmail's "-oi -f" options.
+ * @type boolean
+ */
+ public $UseSendmailOptions = true;
+
+ /**
+ * Path to PHPMailer plugins.
+ * Useful if the SMTP class is not in the PHP include path.
+ * @type string
+ * @deprecated Should not be needed now there is an autoloader.
+ */
+ public $PluginDir = '';
+
+ /**
+ * The email address that a reading confirmation should be sent to.
+ * @type string
+ */
+ public $ConfirmReadingTo = '';
+
+ /**
+ * The hostname to use in Message-Id and Received headers
+ * and as default HELO string.
+ * If empty, the value returned
+ * by SERVER_NAME is used or 'localhost.localdomain'.
+ * @type string
+ */
+ public $Hostname = '';
+
+ /**
+ * An ID to be used in the Message-Id header.
+ * If empty, a unique id will be generated.
+ * @type string
+ */
+ public $MessageID = '';
+
+ /**
+ * The message Date to be used in the Date header.
+ * If empty, the current date will be added.
+ * @type string
+ */
+ public $MessageDate = '';
+
+ /**
+ * SMTP hosts.
+ * Either a single hostname or multiple semicolon-delimited hostnames.
+ * You can also specify a different port
+ * for each host by using this format: [hostname:port]
+ * (e.g. "smtp1.example.com:25;smtp2.example.com").
+ * You can also specify encryption type, for example:
+ * (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465").
+ * Hosts will be tried in order.
+ * @type string
+ */
+ public $Host = 'localhost';
+
+ /**
+ * The default SMTP server port.
+ * @type integer
+ * @TODO Why is this needed when the SMTP class takes care of it?
+ */
+ public $Port = 25;
+
+ /**
+ * The SMTP HELO of the message.
+ * Default is $Hostname.
+ * @type string
+ * @see PHPMailer::$Hostname
+ */
+ public $Helo = '';
+
+ /**
+ * The secure connection prefix.
+ * Options: "", "ssl" or "tls"
+ * @type string
+ */
+ public $SMTPSecure = '';
+
+ /**
+ * Whether to use SMTP authentication.
+ * Uses the Username and Password properties.
+ * @type boolean
+ * @see PHPMailer::$Username
+ * @see PHPMailer::$Password
+ */
+ public $SMTPAuth = false;
+
+ /**
+ * SMTP username.
+ * @type string
+ */
+ public $Username = '';
+
+ /**
+ * SMTP password.
+ * @type string
+ */
+ public $Password = '';
+
+ /**
+ * SMTP auth type.
+ * Options are LOGIN (default), PLAIN, NTLM, CRAM-MD5
+ * @type string
+ */
+ public $AuthType = '';
+
+ /**
+ * SMTP realm.
+ * Used for NTLM auth
+ * @type string
+ */
+ public $Realm = '';
+
+ /**
+ * SMTP workstation.
+ * Used for NTLM auth
+ * @type string
+ */
+ public $Workstation = '';
+
+ /**
+ * The SMTP server timeout in seconds.
+ * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2
+ * @type integer
+ */
+ public $Timeout = 300;
+
+ /**
+ * SMTP class debug output mode.
+ * Debug output level.
+ * Options:
+ * * `0` No output
+ * * `1` Commands
+ * * `2` Data and commands
+ * * `3` As 2 plus connection status
+ * * `4` Low-level data output
+ * @type integer
+ * @see SMTP::$do_debug
+ */
+ public $SMTPDebug = 0;
+
+ /**
+ * How to handle debug output.
+ * Options:
+ * * `echo` Output plain-text as-is, appropriate for CLI
+ * * `html` Output escaped, line breaks converted to `<br>`, appropriate for browser output
+ * * `error_log` Output to error log as configured in php.ini
+ *
+ * Alternatively, you can provide a callable expecting two params: a message string and the debug level:
+ * <code>
+ * $mail->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";};
+ * </code>
+ * @type string|callable
+ * @see SMTP::$Debugoutput
+ */
+ public $Debugoutput = 'echo';
+
+ /**
+ * Whether to keep SMTP connection open after each message.
+ * If this is set to true then to close the connection
+ * requires an explicit call to smtpClose().
+ * @type boolean
+ */
+ public $SMTPKeepAlive = false;
+
+ /**
+ * Whether to split multiple to addresses into multiple messages
+ * or send them all in one message.
+ * @type boolean
+ */
+ public $SingleTo = false;
+
+ /**
+ * Storage for addresses when SingleTo is enabled.
+ * @type array
+ * @TODO This should really not be public
+ */
+ public $SingleToArray = array();
+
+ /**
+ * Whether to generate VERP addresses on send.
+ * Only applicable when sending via SMTP.
+ * @link http://en.wikipedia.org/wiki/Variable_envelope_return_path
+ * @link http://www.postfix.org/VERP_README.html Postfix VERP info
+ * @type boolean
+ */
+ public $do_verp = false;
+
+ /**
+ * Whether to allow sending messages with an empty body.
+ * @type boolean
+ */
+ public $AllowEmpty = false;
+
+ /**
+ * The default line ending.
+ * @note The default remains "\n". We force CRLF where we know
+ * it must be used via self::CRLF.
+ * @type string
+ */
+ public $LE = "\n";
+
+ /**
+ * DKIM selector.
+ * @type string
+ */
+ public $DKIM_selector = '';
+
+ /**
+ * DKIM Identity.
+ * Usually the email address used as the source of the email
+ * @type string
+ */
+ public $DKIM_identity = '';
+
+ /**
+ * DKIM passphrase.
+ * Used if your key is encrypted.
+ * @type string
+ */
+ public $DKIM_passphrase = '';
+
+ /**
+ * DKIM signing domain name.
+ * @example 'example.com'
+ * @type string
+ */
+ public $DKIM_domain = '';
+
+ /**
+ * DKIM private key file path.
+ * @type string
+ */
+ public $DKIM_private = '';
+
+ /**
+ * Callback Action function name.
+ *
+ * The function that handles the result of the send email action.
+ * It is called out by send() for each email sent.
+ *
+ * Value can be any php callable: http://www.php.net/is_callable
+ *
+ * Parameters:
+ * boolean $result result of the send action
+ * string $to email address of the recipient
+ * string $cc cc email addresses
+ * string $bcc bcc email addresses
+ * string $subject the subject
+ * string $body the email body
+ * string $from email address of sender
+ * @type string
+ */
+ public $action_function = '';
+
+ /**
+ * What to put in the X-Mailer header.
+ * Options: An empty string for PHPMailer default, whitespace for none, or a string to use
+ * @type string
+ */
+ public $XMailer = '';
+
+ /**
+ * An instance of the SMTP sender class.
+ * @type SMTP
+ * @access protected
+ */
+ protected $smtp = null;
+
+ /**
+ * The array of 'to' addresses.
+ * @type array
+ * @access protected
+ */
+ protected $to = array();
+
+ /**
+ * The array of 'cc' addresses.
+ * @type array
+ * @access protected
+ */
+ protected $cc = array();
+
+ /**
+ * The array of 'bcc' addresses.
+ * @type array
+ * @access protected
+ */
+ protected $bcc = array();
+
+ /**
+ * The array of reply-to names and addresses.
+ * @type array
+ * @access protected
+ */
+ protected $ReplyTo = array();
+
+ /**
+ * An array of all kinds of addresses.
+ * Includes all of $to, $cc, $bcc
+ * @type array
+ * @access protected
+ */
+ protected $all_recipients = array();
+
+ /**
+ * The array of attachments.
+ * @type array
+ * @access protected
+ */
+ protected $attachment = array();
+
+ /**
+ * The array of custom headers.
+ * @type array
+ * @access protected
+ */
+ protected $CustomHeader = array();
+
+ /**
+ * The most recent Message-ID (including angular brackets).
+ * @type string
+ * @access protected
+ */
+ protected $lastMessageID = '';
+
+ /**
+ * The message's MIME type.
+ * @type string
+ * @access protected
+ */
+ protected $message_type = '';
+
+ /**
+ * The array of MIME boundary strings.
+ * @type array
+ * @access protected
+ */
+ protected $boundary = array();
+
+ /**
+ * The array of available languages.
+ * @type array
+ * @access protected
+ */
+ protected $language = array();
+
+ /**
+ * The number of errors encountered.
+ * @type integer
+ * @access protected
+ */
+ protected $error_count = 0;
+
+ /**
+ * The S/MIME certificate file path.
+ * @type string
+ * @access protected
+ */
+ protected $sign_cert_file = '';
+
+ /**
+ * The S/MIME key file path.
+ * @type string
+ * @access protected
+ */
+ protected $sign_key_file = '';
+
+ /**
+ * The optional S/MIME extra certificates ("CA Chain") file path.
+ * @type string
+ * @access protected
+ */
+ protected $sign_extracerts_file = '';
+
+ /**
+ * The S/MIME password for the key.
+ * Used only if the key is encrypted.
+ * @type string
+ * @access protected
+ */
+ protected $sign_key_pass = '';
+
+ /**
+ * Whether to throw exceptions for errors.
+ * @type boolean
+ * @access protected
+ */
+ protected $exceptions = false;
+
+ /**
+ * Error severity: message only, continue processing.
+ */
+ const STOP_MESSAGE = 0;
+
+ /**
+ * Error severity: message, likely ok to continue processing.
+ */
+ const STOP_CONTINUE = 1;
+
+ /**
+ * Error severity: message, plus full stop, critical error reached.
+ */
+ const STOP_CRITICAL = 2;
+
+ /**
+ * SMTP RFC standard line ending.
+ */
+ const CRLF = "\r\n";
+
+ /**
+ * Constructor.
+ * @param boolean $exceptions Should we throw external exceptions?
+ */
+ public function __construct($exceptions = false)
+ {
+ $this->exceptions = (boolean)$exceptions;
+ }
+
+ /**
+ * Destructor.
+ */
+ public function __destruct()
+ {
+ //Close any open SMTP connection nicely
+ if ($this->Mailer == 'smtp') {
+ $this->smtpClose();
+ }
+ }
+
+ /**
+ * Call mail() in a safe_mode-aware fashion.
+ * Also, unless sendmail_path points to sendmail (or something that
+ * claims to be sendmail), don't pass params (not a perfect fix,
+ * but it will do)
+ * @param string $to To
+ * @param string $subject Subject
+ * @param string $body Message Body
+ * @param string $header Additional Header(s)
+ * @param string $params Params
+ * @access private
+ * @return boolean
+ */
+ private function mailPassthru($to, $subject, $body, $header, $params)
+ {
+ //Check overloading of mail function to avoid double-encoding
+ if (ini_get('mbstring.func_overload') & 1) {
+ $subject = $this->secureHeader($subject);
+ } else {
+ $subject = $this->encodeHeader($this->secureHeader($subject));
+ }
+ if (ini_get('safe_mode') || !($this->UseSendmailOptions)) {
+ $result = @mail($to, $subject, $body, $header);
+ } else {
+ $result = @mail($to, $subject, $body, $header, $params);
+ }
+ return $result;
+ }
+
+ /**
+ * Output debugging info via user-defined method.
+ * Only generates output if SMTP debug output is enabled (@see SMTP::$do_debug).
+ * @see PHPMailer::$Debugoutput
+ * @see PHPMailer::$SMTPDebug
+ * @param string $str
+ */
+ protected function edebug($str)
+ {
+ if ($this->SMTPDebug <= 0) {
+ return;
+ }
+ //Avoid clash with built-in function names
+ if (!in_array($this->Debugoutput, array('error_log', 'html', 'echo')) and is_callable($this->Debugoutput)) {
+ call_user_func($this->Debugoutput, $str, $this->SMTPDebug);
+ return;
+ }
+ switch ($this->Debugoutput) {
+ case 'error_log':
+ //Don't output, just log
+ error_log($str);
+ break;
+ case 'html':
+ //Cleans up output a bit for a better looking, HTML-safe output
+ echo htmlentities(
+ preg_replace('/[\r\n]+/', '', $str),
+ ENT_QUOTES,
+ 'UTF-8'
+ )
+ . "<br>\n";
+ break;
+ case 'echo':
+ default:
+ //Normalize line breaks
+ $str = preg_replace('/(\r\n|\r|\n)/ms', "\n", $str);
+ echo gmdate('Y-m-d H:i:s') . "\t" . str_replace(
+ "\n",
+ "\n \t ",
+ trim($str)
+ ) . "\n";
+ }
+ }
+
+ /**
+ * Sets message type to HTML or plain.
+ * @param boolean $isHtml True for HTML mode.
+ * @return void
+ */
+ public function isHTML($isHtml = true)
+ {
+ if ($isHtml) {
+ $this->ContentType = 'text/html';
+ } else {
+ $this->ContentType = 'text/plain';
+ }
+ }
+
+ /**
+ * Send messages using SMTP.
+ * @return void
+ */
+ public function isSMTP()
+ {
+ $this->Mailer = 'smtp';
+ }
+
+ /**
+ * Send messages using PHP's mail() function.
+ * @return void
+ */
+ public function isMail()
+ {
+ $this->Mailer = 'mail';
+ }
+
+ /**
+ * Send messages using $Sendmail.
+ * @return void
+ */
+ public function isSendmail()
+ {
+ $ini_sendmail_path = ini_get('sendmail_path');
+
+ if (!stristr($ini_sendmail_path, 'sendmail')) {
+ $this->Sendmail = '/usr/sbin/sendmail';
+ } else {
+ $this->Sendmail = $ini_sendmail_path;
+ }
+ $this->Mailer = 'sendmail';
+ }
+
+ /**
+ * Send messages using qmail.
+ * @return void
+ */
+ public function isQmail()
+ {
+ $ini_sendmail_path = ini_get('sendmail_path');
+
+ if (!stristr($ini_sendmail_path, 'qmail')) {
+ $this->Sendmail = '/var/qmail/bin/qmail-inject';
+ } else {
+ $this->Sendmail = $ini_sendmail_path;
+ }
+ $this->Mailer = 'qmail';
+ }
+
+ /**
+ * Add a "To" address.
+ * @param string $address
+ * @param string $name
+ * @return boolean true on success, false if address already used
+ */
+ public function addAddress($address, $name = '')
+ {
+ return $this->addAnAddress('to', $address, $name);
+ }
+
+ /**
+ * Add a "CC" address.
+ * @note: This function works with the SMTP mailer on win32, not with the "mail" mailer.
+ * @param string $address
+ * @param string $name
+ * @return boolean true on success, false if address already used
+ */
+ public function addCC($address, $name = '')
+ {
+ return $this->addAnAddress('cc', $address, $name);
+ }
+
+ /**
+ * Add a "BCC" address.
+ * @note: This function works with the SMTP mailer on win32, not with the "mail" mailer.
+ * @param string $address
+ * @param string $name
+ * @return boolean true on success, false if address already used
+ */
+ public function addBCC($address, $name = '')
+ {
+ return $this->addAnAddress('bcc', $address, $name);
+ }
+
+ /**
+ * Add a "Reply-to" address.
+ * @param string $address
+ * @param string $name
+ * @return boolean
+ */
+ public function addReplyTo($address, $name = '')
+ {
+ return $this->addAnAddress('Reply-To', $address, $name);
+ }
+
+ /**
+ * Add an address to one of the recipient arrays.
+ * Addresses that have been added already return false, but do not throw exceptions
+ * @param string $kind One of 'to', 'cc', 'bcc', 'ReplyTo'
+ * @param string $address The email address to send to
+ * @param string $name
+ * @throws phpmailerException
+ * @return boolean true on success, false if address already used or invalid in some way
+ * @access protected
+ */
+ protected function addAnAddress($kind, $address, $name = '')
+ {
+ if (!preg_match('/^(to|cc|bcc|Reply-To)$/', $kind)) {
+ $this->setError($this->lang('Invalid recipient array') . ': ' . $kind);
+ $this->edebug($this->lang('Invalid recipient array') . ': ' . $kind);
+ if ($this->exceptions) {
+ throw new phpmailerException('Invalid recipient array: ' . $kind);
+ }
+ return false;
+ }
+ $address = trim($address);
+ $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
+ if (!$this->validateAddress($address)) {
+ $this->setError($this->lang('invalid_address') . ': ' . $address);
+ $this->edebug($this->lang('invalid_address') . ': ' . $address);
+ if ($this->exceptions) {
+ throw new phpmailerException($this->lang('invalid_address') . ': ' . $address);
+ }
+ return false;
+ }
+ if ($kind != 'Reply-To') {
+ if (!isset($this->all_recipients[strtolower($address)])) {
+ array_push($this->$kind, array($address, $name));
+ $this->all_recipients[strtolower($address)] = true;
+ return true;
+ }
+ } else {
+ if (!array_key_exists(strtolower($address), $this->ReplyTo)) {
+ $this->ReplyTo[strtolower($address)] = array($address, $name);
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Set the From and FromName properties.
+ * @param string $address
+ * @param string $name
+ * @param boolean $auto Whether to also set the Sender address, defaults to true
+ * @throws phpmailerException
+ * @return boolean
+ */
+ public function setFrom($address, $name = '', $auto = true)
+ {
+ $address = trim($address);
+ $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
+ if (!$this->validateAddress($address)) {
+ $this->setError($this->lang('invalid_address') . ': ' . $address);
+ $this->edebug($this->lang('invalid_address') . ': ' . $address);
+ if ($this->exceptions) {
+ throw new phpmailerException($this->lang('invalid_address') . ': ' . $address);
+ }
+ return false;
+ }
+ $this->From = $address;
+ $this->FromName = $name;
+ if ($auto) {
+ if (empty($this->Sender)) {
+ $this->Sender = $address;
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Return the Message-ID header of the last email.
+ * Technically this is the value from the last time the headers were created,
+ * but it's also the message ID of the last sent message except in
+ * pathological cases.
+ * @return string
+ */
+ public function getLastMessageID()
+ {
+ return $this->lastMessageID;
+ }
+
+ /**
+ * Check that a string looks like an email address.
+ * @param string $address The email address to check
+ * @param string $patternselect A selector for the validation pattern to use :
+ * * `auto` Pick strictest one automatically;
+ * * `pcre8` Use the squiloople.com pattern, requires PCRE > 8.0, PHP >= 5.3.2, 5.2.14;
+ * * `pcre` Use old PCRE implementation;
+ * * `php` Use PHP built-in FILTER_VALIDATE_EMAIL; same as pcre8 but does not allow 'dotless' domains;
+ * * `html5` Use the pattern given by the HTML5 spec for 'email' type form input elements.
+ * * `noregex` Don't use a regex: super fast, really dumb.
+ * @return boolean
+ * @static
+ * @access public
+ */
+ public static function validateAddress($address, $patternselect = 'auto')
+ {
+ if (!$patternselect or $patternselect == 'auto') {
+ //Check this constant first so it works when extension_loaded() is disabled by safe mode
+ //Constant was added in PHP 5.2.4
+ if (defined('PCRE_VERSION')) {
+ //This pattern can get stuck in a recursive loop in PCRE <= 8.0.2
+ if (version_compare(PCRE_VERSION, '8.0.3') >= 0) {
+ $patternselect = 'pcre8';
+ } else {
+ $patternselect = 'pcre';
+ }
+ } elseif (function_exists('extension_loaded') and extension_loaded('pcre')) {
+ //Fall back to older PCRE
+ $patternselect = 'pcre';
+ } else {
+ //Filter_var appeared in PHP 5.2.0 and does not require the PCRE extension
+ if (version_compare(PHP_VERSION, '5.2.0') >= 0) {
+ $patternselect = 'php';
+ } else {
+ $patternselect = 'noregex';
+ }
+ }
+ }
+ switch ($patternselect) {
+ case 'pcre8':
+ /**
+ * Uses the same RFC5322 regex on which FILTER_VALIDATE_EMAIL is based, but allows dotless domains.
+ * @link http://squiloople.com/2009/12/20/email-address-validation/
+ * @copyright 2009-2010 Michael Rushton
+ * Feel free to use and redistribute this code. But please keep this copyright notice.
+ */
+ return (boolean)preg_match(
+ '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)' .
+ '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)' .
+ '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)' .
+ '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*' .
+ '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)' .
+ '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}' .
+ '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:' .
+ '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}' .
+ '|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD',
+ $address
+ );
+ case 'pcre':
+ //An older regex that doesn't need a recent PCRE
+ return (boolean)preg_match(
+ '/^(?!(?>"?(?>\\\[ -~]|[^"])"?){255,})(?!(?>"?(?>\\\[ -~]|[^"])"?){65,}@)(?>' .
+ '[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*")' .
+ '(?>\.(?>[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*"))*' .
+ '@(?>(?![a-z0-9-]{64,})(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>\.(?![a-z0-9-]{64,})' .
+ '(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)){0,126}|\[(?:(?>IPv6:(?>(?>[a-f0-9]{1,4})(?>:' .
+ '[a-f0-9]{1,4}){7}|(?!(?:.*[a-f0-9][:\]]){8,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?' .
+ '::(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?))|(?>(?>IPv6:(?>[a-f0-9]{1,4}(?>:' .
+ '[a-f0-9]{1,4}){5}:|(?!(?:.*[a-f0-9]:){6,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4})?' .
+ '::(?>(?:[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4}):)?))?(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}' .
+ '|[1-9]?[0-9])(?>\.(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}))\])$/isD',
+ $address
+ );
+ case 'html5':
+ /**
+ * This is the pattern used in the HTML5 spec for validation of 'email' type form input elements.
+ * @link http://www.whatwg.org/specs/web-apps/current-work/#e-mail-state-(type=email)
+ */
+ return (boolean)preg_match(
+ '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}' .
+ '[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/sD',
+ $address
+ );
+ case 'noregex':
+ //No PCRE! Do something _very_ approximate!
+ //Check the address is 3 chars or longer and contains an @ that's not the first or last char
+ return (strlen($address) >= 3
+ and strpos($address, '@') >= 1
+ and strpos($address, '@') != strlen($address) - 1);
+ case 'php':
+ default:
+ return (boolean)filter_var($address, FILTER_VALIDATE_EMAIL);
+ }
+ }
+
+ /**
+ * Create a message and send it.
+ * Uses the sending method specified by $Mailer.
+ * @throws phpmailerException
+ * @return boolean false on error - See the ErrorInfo property for details of the error.
+ */
+ public function send()
+ {
+ try {
+ if (!$this->preSend()) {
+ return false;
+ }
+ return $this->postSend();
+ } catch (phpmailerException $exc) {
+ $this->mailHeader = '';
+ $this->setError($exc->getMessage());
+ if ($this->exceptions) {
+ throw $exc;
+ }
+ return false;
+ }
+ }
+
+ /**
+ * Prepare a message for sending.
+ * @throws phpmailerException
+ * @return boolean
+ */
+ public function preSend()
+ {
+ try {
+ $this->mailHeader = '';
+ if ((count($this->to) + count($this->cc) + count($this->bcc)) < 1) {
+ throw new phpmailerException($this->lang('provide_address'), self::STOP_CRITICAL);
+ }
+
+ // Set whether the message is multipart/alternative
+ if (!empty($this->AltBody)) {
+ $this->ContentType = 'multipart/alternative';
+ }
+
+ $this->error_count = 0; // reset errors
+ $this->setMessageType();
+ // Refuse to send an empty message unless we are specifically allowing it
+ if (!$this->AllowEmpty and empty($this->Body)) {
+ throw new phpmailerException($this->lang('empty_message'), self::STOP_CRITICAL);
+ }
+
+ $this->MIMEHeader = $this->createHeader();
+ $this->MIMEBody = $this->createBody();
+
+ // To capture the complete message when using mail(), create
+ // an extra header list which createHeader() doesn't fold in
+ if ($this->Mailer == 'mail') {
+ if (count($this->to) > 0) {
+ $this->mailHeader .= $this->addrAppend('To', $this->to);
+ } else {
+ $this->mailHeader .= $this->headerLine('To', 'undisclosed-recipients:;');
+ }
+ $this->mailHeader .= $this->headerLine(
+ 'Subject',
+ $this->encodeHeader($this->secureHeader(trim($this->Subject)))
+ );
+ }
+
+ // Sign with DKIM if enabled
+ if (!empty($this->DKIM_domain)
+ && !empty($this->DKIM_private)
+ && !empty($this->DKIM_selector)
+ && file_exists($this->DKIM_private)) {
+ $header_dkim = $this->DKIM_Add(
+ $this->MIMEHeader . $this->mailHeader,
+ $this->encodeHeader($this->secureHeader($this->Subject)),
+ $this->MIMEBody
+ );
+ $this->MIMEHeader = rtrim($this->MIMEHeader, "\r\n ") . self::CRLF .
+ str_replace("\r\n", "\n", $header_dkim) . self::CRLF;
+ }
+ return true;
+ } catch (phpmailerException $exc) {
+ $this->setError($exc->getMessage());
+ if ($this->exceptions) {
+ throw $exc;
+ }
+ return false;
+ }
+ }
+
+ /**
+ * Actually send a message.
+ * Send the email via the selected mechanism
+ * @throws phpmailerException
+ * @return boolean
+ */
+ public function postSend()
+ {
+ try {
+ // Choose the mailer and send through it
+ switch ($this->Mailer) {
+ case 'sendmail':
+ case 'qmail':
+ return $this->sendmailSend($this->MIMEHeader, $this->MIMEBody);
+ case 'smtp':
+ return $this->smtpSend($this->MIMEHeader, $this->MIMEBody);
+ case 'mail':
+ return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
+ default:
+ $sendMethod = $this->Mailer.'Send';
+ if (method_exists($this, $sendMethod)) {
+ return $this->$sendMethod($this->MIMEHeader, $this->MIMEBody);
+ }
+
+ return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
+ }
+ } catch (phpmailerException $exc) {
+ $this->setError($exc->getMessage());
+ $this->edebug($exc->getMessage());
+ if ($this->exceptions) {
+ throw $exc;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Send mail using the $Sendmail program.
+ * @param string $header The message headers
+ * @param string $body The message body
+ * @see PHPMailer::$Sendmail
+ * @throws phpmailerException
+ * @access protected
+ * @return boolean
+ */
+ protected function sendmailSend($header, $body)
+ {
+ if ($this->Sender != '') {
+ if ($this->Mailer == 'qmail') {
+ $sendmail = sprintf('%s -f%s', escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));
+ } else {
+ $sendmail = sprintf('%s -oi -f%s -t', escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));
+ }
+ } else {
+ if ($this->Mailer == 'qmail') {
+ $sendmail = sprintf('%s', escapeshellcmd($this->Sendmail));
+ } else {
+ $sendmail = sprintf('%s -oi -t', escapeshellcmd($this->Sendmail));
+ }
+ }
+ if ($this->SingleTo) {
+ foreach ($this->SingleToArray as $toAddr) {
+ if (!@$mail = popen($sendmail, 'w')) {
+ throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
+ }
+ fputs($mail, 'To: ' . $toAddr . "\n");
+ fputs($mail, $header);
+ fputs($mail, $body);
+ $result = pclose($mail);
+ $this->doCallback(
+ ($result == 0),
+ array($toAddr),
+ $this->cc,
+ $this->bcc,
+ $this->Subject,
+ $body,
+ $this->From
+ );
+ if ($result != 0) {
+ throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
+ }
+ }
+ } else {
+ if (!@$mail = popen($sendmail, 'w')) {
+ throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
+ }
+ fputs($mail, $header);
+ fputs($mail, $body);
+ $result = pclose($mail);
+ $this->doCallback(($result == 0), $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From);
+ if ($result != 0) {
+ throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Send mail using the PHP mail() function.
+ * @param string $header The message headers
+ * @param string $body The message body
+ * @link http://www.php.net/manual/en/book.mail.php
+ * @throws phpmailerException
+ * @access protected
+ * @return boolean
+ */
+ protected function mailSend($header, $body)
+ {
+ $toArr = array();
+ foreach ($this->to as $toaddr) {
+ $toArr[] = $this->addrFormat($toaddr);
+ }
+ $to = implode(', ', $toArr);
+
+ if (empty($this->Sender)) {
+ $params = ' ';
+ } else {
+ $params = sprintf('-f%s', $this->Sender);
+ }
+ if ($this->Sender != '' and !ini_get('safe_mode')) {
+ $old_from = ini_get('sendmail_from');
+ ini_set('sendmail_from', $this->Sender);
+ }
+ $result = false;
+ if ($this->SingleTo && count($toArr) > 1) {
+ foreach ($toArr as $toAddr) {
+ $result = $this->mailPassthru($toAddr, $this->Subject, $body, $header, $params);
+ $this->doCallback($result, array($toAddr), $this->cc, $this->bcc, $this->Subject, $body, $this->From);
+ }
+ } else {
+ $result = $this->mailPassthru($to, $this->Subject, $body, $header, $params);
+ $this->doCallback($result, $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From);
+ }
+ if (isset($old_from)) {
+ ini_set('sendmail_from', $old_from);
+ }
+ if (!$result) {
+ throw new phpmailerException($this->lang('instantiate'), self::STOP_CRITICAL);
+ }
+ return true;
+ }
+
+ /**
+ * Get an instance to use for SMTP operations.
+ * Override this function to load your own SMTP implementation
+ * @return SMTP
+ */
+ public function getSMTPInstance()
+ {
+ if (!is_object($this->smtp)) {
+ $this->smtp = new SMTP;
+ }
+ return $this->smtp;
+ }
+
+ /**
+ * Send mail via SMTP.
+ * Returns false if there is a bad MAIL FROM, RCPT, or DATA input.
+ * Uses the PHPMailerSMTP class by default.
+ * @see PHPMailer::getSMTPInstance() to use a different class.
+ * @param string $header The message headers
+ * @param string $body The message body
+ * @throws phpmailerException
+ * @uses SMTP
+ * @access protected
+ * @return boolean
+ */
+ protected function smtpSend($header, $body)
+ {
+ $bad_rcpt = array();
+ if (!$this->smtpConnect()) {
+ throw new phpmailerException($this->lang('smtp_connect_failed'), self::STOP_CRITICAL);
+ }
+ if ('' == $this->Sender) {
+ $smtp_from = $this->From;
+ } else {
+ $smtp_from = $this->Sender;
+ }
+ if (!$this->smtp->mail($smtp_from)) {
+ $this->setError($this->lang('from_failed') . $smtp_from . ' : ' . implode(',', $this->smtp->getError()));
+ throw new phpmailerException($this->ErrorInfo, self::STOP_CRITICAL);
+ }
+
+ // Attempt to send to all recipients
+ foreach (array($this->to, $this->cc, $this->bcc) as $togroup) {
+ foreach ($togroup as $to) {
+ if (!$this->smtp->recipient($to[0])) {
+ $error = $this->smtp->getError();
+ $bad_rcpt[] = array('to' => $to[0], 'error' => $error['detail']);
+ $isSent = false;
+ } else {
+ $isSent = true;
+ }
+ $this->doCallback($isSent, array($to[0]), array(), array(), $this->Subject, $body, $this->From);
+ }
+ }
+
+ // Only send the DATA command if we have viable recipients
+ if ((count($this->all_recipients) > count($bad_rcpt)) and !$this->smtp->data($header . $body)) {
+ throw new phpmailerException($this->lang('data_not_accepted'), self::STOP_CRITICAL);
+ }
+ if ($this->SMTPKeepAlive) {
+ $this->smtp->reset();
+ } else {
+ $this->smtp->quit();
+ $this->smtp->close();
+ }
+ //Create error message for any bad addresses
+ if (count($bad_rcpt) > 0) {
+ $errstr = '';
+ foreach ($bad_rcpt as $bad) {
+ $errstr .= $bad['to'] . ': ' . $bad['error'];
+ }
+ throw new phpmailerException(
+ $this->lang('recipients_failed') . $errstr,
+ self::STOP_CONTINUE
+ );
+ }
+ return true;
+ }
+
+ /**
+ * Initiate a connection to an SMTP server.
+ * Returns false if the operation failed.
+ * @param array $options An array of options compatible with stream_context_create()
+ * @uses SMTP
+ * @access public
+ * @throws phpmailerException
+ * @return boolean
+ */
+ public function smtpConnect($options = array())
+ {
+ if (is_null($this->smtp)) {
+ $this->smtp = $this->getSMTPInstance();
+ }
+
+ // Already connected?
+ if ($this->smtp->connected()) {
+ return true;
+ }
+
+ $this->smtp->setTimeout($this->Timeout);
+ $this->smtp->setDebugLevel($this->SMTPDebug);
+ $this->smtp->setDebugOutput($this->Debugoutput);
+ $this->smtp->setVerp($this->do_verp);
+ $hosts = explode(';', $this->Host);
+ $lastexception = null;
+
+ foreach ($hosts as $hostentry) {
+ $hostinfo = array();
+ if (!preg_match('/^((ssl|tls):\/\/)*([a-zA-Z0-9\.-]*):?([0-9]*)$/', trim($hostentry), $hostinfo)) {
+ // Not a valid host entry
+ continue;
+ }
+ // $hostinfo[2]: optional ssl or tls prefix
+ // $hostinfo[3]: the hostname
+ // $hostinfo[4]: optional port number
+ // The host string prefix can temporarily override the current setting for SMTPSecure
+ // If it's not specified, the default value is used
+ $prefix = '';
+ $secure = $this->SMTPSecure;
+ $tls = ($this->SMTPSecure == 'tls');
+ if ('ssl' == $hostinfo[2] or ('' == $hostinfo[2] and 'ssl' == $this->SMTPSecure)) {
+ $prefix = 'ssl://';
+ $tls = false; // Can't have SSL and TLS at the same time
+ $secure = 'ssl';
+ } elseif ($hostinfo[2] == 'tls') {
+ $tls = true;
+ // tls doesn't use a prefix
+ $secure = 'tls';
+ }
+ //Do we need the OpenSSL extension?
+ if ('tls' === $secure or 'ssl' === $secure) {
+ //Check for an OpenSSL constant rather than using extension_loaded, which is sometimes disabled
+ if (!defined('OPENSSL_ALGO_SHA1')) {
+ throw new phpmailerException($this->lang('extension_missing').'openssl', self::STOP_CRITICAL);
+ }
+ }
+ $host = $hostinfo[3];
+ $port = $this->Port;
+ $tport = (integer)$hostinfo[4];
+ if ($tport > 0 and $tport < 65536) {
+ $port = $tport;
+ }
+ if ($this->smtp->connect($prefix . $host, $port, $this->Timeout, $options)) {
+ try {
+ if ($this->Helo) {
+ $hello = $this->Helo;
+ } else {
+ $hello = $this->serverHostname();
+ }
+ $this->smtp->hello($hello);
+
+ if ($tls) {
+ if (!$this->smtp->startTLS()) {
+ throw new phpmailerException($this->lang('connect_host'));
+ }
+ // We must resend HELO after tls negotiation
+ $this->smtp->hello($hello);
+ }
+ if ($this->SMTPAuth) {
+ if (!$this->smtp->authenticate(
+ $this->Username,
+ $this->Password,
+ $this->AuthType,
+ $this->Realm,
+ $this->Workstation
+ )
+ ) {
+ throw new phpmailerException($this->lang('authenticate'));
+ }
+ }
+ return true;
+ } catch (phpmailerException $exc) {
+ $lastexception = $exc;
+ $this->edebug($exc->getMessage());
+ // We must have connected, but then failed TLS or Auth, so close connection nicely
+ $this->smtp->quit();
+ }
+ }
+ }
+ // If we get here, all connection attempts have failed, so close connection hard
+ $this->smtp->close();
+ // As we've caught all exceptions, just report whatever the last one was
+ if ($this->exceptions and !is_null($lastexception)) {
+ throw $lastexception;
+ }
+ return false;
+ }
+
+ /**
+ * Close the active SMTP session if one exists.
+ * @return void
+ */
+ public function smtpClose()
+ {
+ if ($this->smtp !== null) {
+ if ($this->smtp->connected()) {
+ $this->smtp->quit();
+ $this->smtp->close();
+ }
+ }
+ }
+
+ /**
+ * Set the language for error messages.
+ * Returns false if it cannot load the language file.
+ * The default language is English.
+ * @param string $langcode ISO 639-1 2-character language code (e.g. French is "fr")
+ * @param string $lang_path Path to the language file directory, with trailing separator (slash)
+ * @return boolean
+ * @access public
+ */
+ public function setLanguage($langcode = 'en', $lang_path = '')
+ {
+ // Define full set of translatable strings in English
+ $PHPMAILER_LANG = array(
+ 'authenticate' => 'SMTP Error: Could not authenticate.',
+ 'connect_host' => 'SMTP Error: Could not connect to SMTP host.',
+ 'data_not_accepted' => 'SMTP Error: data not accepted.',
+ 'empty_message' => 'Message body empty',
+ 'encoding' => 'Unknown encoding: ',
+ 'execute' => 'Could not execute: ',
+ 'file_access' => 'Could not access file: ',
+ 'file_open' => 'File Error: Could not open file: ',
+ 'from_failed' => 'The following From address failed: ',
+ 'instantiate' => 'Could not instantiate mail function.',
+ 'invalid_address' => 'Invalid address',
+ 'mailer_not_supported' => ' mailer is not supported.',
+ 'provide_address' => 'You must provide at least one recipient email address.',
+ 'recipients_failed' => 'SMTP Error: The following recipients failed: ',
+ 'signing' => 'Signing Error: ',
+ 'smtp_connect_failed' => 'SMTP connect() failed.',
+ 'smtp_error' => 'SMTP server error: ',
+ 'variable_set' => 'Cannot set or reset variable: ',
+ 'extension_missing' => 'Extension missing: '
+ );
+ if (empty($lang_path)) {
+ // Calculate an absolute path so it can work if CWD is not here
+ $lang_path = dirname(__FILE__). DIRECTORY_SEPARATOR . 'language'. DIRECTORY_SEPARATOR;
+ }
+ $foundlang = true;
+ $lang_file = $lang_path . 'phpmailer.lang-' . $langcode . '.php';
+ // There is no English translation file
+ if ($langcode != 'en') {
+ // Make sure language file path is readable
+ if (!is_readable($lang_file)) {
+ $foundlang = false;
+ } else {
+ // Overwrite language-specific strings.
+ // This way we'll never have missing translation keys.
+ $foundlang = include $lang_file;
+ }
+ }
+ $this->language = $PHPMAILER_LANG;
+ return (boolean)$foundlang; // Returns false if language not found
+ }
+
+ /**
+ * Get the array of strings for the current language.
+ * @return array
+ */
+ public function getTranslations()
+ {
+ return $this->language;
+ }
+
+ /**
+ * Create recipient headers.
+ * @access public
+ * @param string $type
+ * @param array $addr An array of recipient,
+ * where each recipient is a 2-element indexed array with element 0 containing an address
+ * and element 1 containing a name, like:
+ * array(array('joe@example.com', 'Joe User'), array('zoe@example.com', 'Zoe User'))
+ * @return string
+ */
+ public function addrAppend($type, $addr)
+ {
+ $addresses = array();
+ foreach ($addr as $address) {
+ $addresses[] = $this->addrFormat($address);
+ }
+ return $type . ': ' . implode(', ', $addresses) . $this->LE;
+ }
+
+ /**
+ * Format an address for use in a message header.
+ * @access public
+ * @param array $addr A 2-element indexed array, element 0 containing an address, element 1 containing a name
+ * like array('joe@example.com', 'Joe User')
+ * @return string
+ */
+ public function addrFormat($addr)
+ {
+ if (empty($addr[1])) { // No name provided
+ return $this->secureHeader($addr[0]);
+ } else {
+ return $this->encodeHeader($this->secureHeader($addr[1]), 'phrase') . ' <' . $this->secureHeader(
+ $addr[0]
+ ) . '>';
+ }
+ }
+
+ /**
+ * Word-wrap message.
+ * For use with mailers that do not automatically perform wrapping
+ * and for quoted-printable encoded messages.
+ * Original written by philippe.
+ * @param string $message The message to wrap
+ * @param integer $length The line length to wrap to
+ * @param boolean $qp_mode Whether to run in Quoted-Printable mode
+ * @access public
+ * @return string
+ */
+ public function wrapText($message, $length, $qp_mode = false)
+ {
+ if ($qp_mode) {
+ $soft_break = sprintf(' =%s', $this->LE);
+ } else {
+ $soft_break = $this->LE;
+ }
+ // If utf-8 encoding is used, we will need to make sure we don't
+ // split multibyte characters when we wrap
+ $is_utf8 = (strtolower($this->CharSet) == 'utf-8');
+ $lelen = strlen($this->LE);
+ $crlflen = strlen(self::CRLF);
+
+ $message = $this->fixEOL($message);
+ //Remove a trailing line break
+ if (substr($message, -$lelen) == $this->LE) {
+ $message = substr($message, 0, -$lelen);
+ }
+
+ //Split message into lines
+ $lines = explode($this->LE, $message);
+ //Message will be rebuilt in here
+ $message = '';
+ foreach ($lines as $line) {
+ $words = explode(' ', $line);
+ $buf = '';
+ $firstword = true;
+ foreach ($words as $word) {
+ if ($qp_mode and (strlen($word) > $length)) {
+ $space_left = $length - strlen($buf) - $crlflen;
+ if (!$firstword) {
+ if ($space_left > 20) {
+ $len = $space_left;
+ if ($is_utf8) {
+ $len = $this->utf8CharBoundary($word, $len);
+ } elseif (substr($word, $len - 1, 1) == '=') {
+ $len--;
+ } elseif (substr($word, $len - 2, 1) == '=') {
+ $len -= 2;
+ }
+ $part = substr($word, 0, $len);
+ $word = substr($word, $len);
+ $buf .= ' ' . $part;
+ $message .= $buf . sprintf('=%s', self::CRLF);
+ } else {
+ $message .= $buf . $soft_break;
+ }
+ $buf = '';
+ }
+ while (strlen($word) > 0) {
+ if ($length <= 0) {
+ break;
+ }
+ $len = $length;
+ if ($is_utf8) {
+ $len = $this->utf8CharBoundary($word, $len);
+ } elseif (substr($word, $len - 1, 1) == '=') {
+ $len--;
+ } elseif (substr($word, $len - 2, 1) == '=') {
+ $len -= 2;
+ }
+ $part = substr($word, 0, $len);
+ $word = substr($word, $len);
+
+ if (strlen($word) > 0) {
+ $message .= $part . sprintf('=%s', self::CRLF);
+ } else {
+ $buf = $part;
+ }
+ }
+ } else {
+ $buf_o = $buf;
+ if (!$firstword) {
+ $buf .= ' ';
+ }
+ $buf .= $word;
+
+ if (strlen($buf) > $length and $buf_o != '') {
+ $message .= $buf_o . $soft_break;
+ $buf = $word;
+ }
+ }
+ $firstword = false;
+ }
+ $message .= $buf . self::CRLF;
+ }
+
+ return $message;
+ }
+
+ /**
+ * Find the last character boundary prior to $maxLength in a utf-8
+ * quoted-printable encoded string.
+ * Original written by Colin Brown.
+ * @access public
+ * @param string $encodedText utf-8 QP text
+ * @param integer $maxLength Find the last character boundary prior to this length
+ * @return integer
+ */
+ public function utf8CharBoundary($encodedText, $maxLength)
+ {
+ $foundSplitPos = false;
+ $lookBack = 3;
+ while (!$foundSplitPos) {
+ $lastChunk = substr($encodedText, $maxLength - $lookBack, $lookBack);
+ $encodedCharPos = strpos($lastChunk, '=');
+ if (false !== $encodedCharPos) {
+ // Found start of encoded character byte within $lookBack block.
+ // Check the encoded byte value (the 2 chars after the '=')
+ $hex = substr($encodedText, $maxLength - $lookBack + $encodedCharPos + 1, 2);
+ $dec = hexdec($hex);
+ if ($dec < 128) {
+ // Single byte character.
+ // If the encoded char was found at pos 0, it will fit
+ // otherwise reduce maxLength to start of the encoded char
+ if ($encodedCharPos > 0) {
+ $maxLength = $maxLength - ($lookBack - $encodedCharPos);
+ }
+ $foundSplitPos = true;
+ } elseif ($dec >= 192) {
+ // First byte of a multi byte character
+ // Reduce maxLength to split at start of character
+ $maxLength = $maxLength - ($lookBack - $encodedCharPos);
+ $foundSplitPos = true;
+ } elseif ($dec < 192) {
+ // Middle byte of a multi byte character, look further back
+ $lookBack += 3;
+ }
+ } else {
+ // No encoded character found
+ $foundSplitPos = true;
+ }
+ }
+ return $maxLength;
+ }
+
+ /**
+ * Apply word wrapping to the message body.
+ * Wraps the message body to the number of chars set in the WordWrap property.
+ * You should only do this to plain-text bodies as wrapping HTML tags may break them.
+ * This is called automatically by createBody(), so you don't need to call it yourself.
+ * @access public
+ * @return void
+ */
+ public function setWordWrap()
+ {
+ if ($this->WordWrap < 1) {
+ return;
+ }
+
+ switch ($this->message_type) {
+ case 'alt':
+ case 'alt_inline':
+ case 'alt_attach':
+ case 'alt_inline_attach':
+ $this->AltBody = $this->wrapText($this->AltBody, $this->WordWrap);
+ break;
+ default:
+ $this->Body = $this->wrapText($this->Body, $this->WordWrap);
+ break;
+ }
+ }
+
+ /**
+ * Assemble message headers.
+ * @access public
+ * @return string The assembled headers
+ */
+ public function createHeader()
+ {
+ $result = '';
+
+ // Set the boundaries
+ $uniq_id = md5(uniqid(time()));
+ $this->boundary[1] = 'b1_' . $uniq_id;
+ $this->boundary[2] = 'b2_' . $uniq_id;
+ $this->boundary[3] = 'b3_' . $uniq_id;
+
+ if ($this->MessageDate == '') {
+ $this->MessageDate = self::rfcDate();
+ }
+ $result .= $this->headerLine('Date', $this->MessageDate);
+
+
+ // To be created automatically by mail()
+ if ($this->SingleTo) {
+ if ($this->Mailer != 'mail') {
+ foreach ($this->to as $toaddr) {
+ $this->SingleToArray[] = $this->addrFormat($toaddr);
+ }
+ }
+ } else {
+ if (count($this->to) > 0) {
+ if ($this->Mailer != 'mail') {
+ $result .= $this->addrAppend('To', $this->to);
+ }
+ } elseif (count($this->cc) == 0) {
+ $result .= $this->headerLine('To', 'undisclosed-recipients:;');
+ }
+ }
+
+ $result .= $this->addrAppend('From', array(array(trim($this->From), $this->FromName)));
+
+ // sendmail and mail() extract Cc from the header before sending
+ if (count($this->cc) > 0) {
+ $result .= $this->addrAppend('Cc', $this->cc);
+ }
+
+ // sendmail and mail() extract Bcc from the header before sending
+ if ((
+ $this->Mailer == 'sendmail' or $this->Mailer == 'qmail' or $this->Mailer == 'mail'
+ )
+ and count($this->bcc) > 0
+ ) {
+ $result .= $this->addrAppend('Bcc', $this->bcc);
+ }
+
+ if (count($this->ReplyTo) > 0) {
+ $result .= $this->addrAppend('Reply-To', $this->ReplyTo);
+ }
+
+ // mail() sets the subject itself
+ if ($this->Mailer != 'mail') {
+ $result .= $this->headerLine('Subject', $this->encodeHeader($this->secureHeader($this->Subject)));
+ }
+
+ if ($this->MessageID != '') {
+ $this->lastMessageID = $this->MessageID;
+ } else {
+ $this->lastMessageID = sprintf('<%s@%s>', $uniq_id, $this->ServerHostname());
+ }
+ $result .= $this->headerLine('Message-ID', $this->lastMessageID);
+ $result .= $this->headerLine('X-Priority', $this->Priority);
+ if ($this->XMailer == '') {
+ $result .= $this->headerLine(
+ 'X-Mailer',
+ 'PHPMailer ' . $this->Version . ' (https://github.com/PHPMailer/PHPMailer/)'
+ );
+ } else {
+ $myXmailer = trim($this->XMailer);
+ if ($myXmailer) {
+ $result .= $this->headerLine('X-Mailer', $myXmailer);
+ }
+ }
+
+ if ($this->ConfirmReadingTo != '') {
+ $result .= $this->headerLine('Disposition-Notification-To', '<' . trim($this->ConfirmReadingTo) . '>');
+ }
+
+ // Add custom headers
+ foreach ($this->CustomHeader as $header) {
+ $result .= $this->headerLine(
+ trim($header[0]),
+ $this->encodeHeader(trim($header[1]))
+ );
+ }
+ if (!$this->sign_key_file) {
+ $result .= $this->headerLine('MIME-Version', '1.0');
+ $result .= $this->getMailMIME();
+ }
+
+ return $result;
+ }
+
+ /**
+ * Get the message MIME type headers.
+ * @access public
+ * @return string
+ */
+ public function getMailMIME()
+ {
+ $result = '';
+ $ismultipart = true;
+ switch ($this->message_type) {
+ case 'inline':
+ $result .= $this->headerLine('Content-Type', 'multipart/related;');
+ $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
+ break;
+ case 'attach':
+ case 'inline_attach':
+ case 'alt_attach':
+ case 'alt_inline_attach':
+ $result .= $this->headerLine('Content-Type', 'multipart/mixed;');
+ $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
+ break;
+ case 'alt':
+ case 'alt_inline':
+ $result .= $this->headerLine('Content-Type', 'multipart/alternative;');
+ $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
+ break;
+ default:
+ // Catches case 'plain': and case '':
+ $result .= $this->textLine('Content-Type: ' . $this->ContentType . '; charset=' . $this->CharSet);
+ $ismultipart = false;
+ break;
+ }
+ // RFC1341 part 5 says 7bit is assumed if not specified
+ if ($this->Encoding != '7bit') {
+ // RFC 2045 section 6.4 says multipart MIME parts may only use 7bit, 8bit or binary CTE
+ if ($ismultipart) {
+ if ($this->Encoding == '8bit') {
+ $result .= $this->headerLine('Content-Transfer-Encoding', '8bit');
+ }
+ // The only remaining alternatives are quoted-printable and base64, which are both 7bit compatible
+ } else {
+ $result .= $this->headerLine('Content-Transfer-Encoding', $this->Encoding);
+ }
+ }
+
+ if ($this->Mailer != 'mail') {
+ $result .= $this->LE;
+ }
+
+ return $result;
+ }
+
+ /**
+ * Returns the whole MIME message.
+ * Includes complete headers and body.
+ * Only valid post preSend().
+ * @see PHPMailer::preSend()
+ * @access public
+ * @return string
+ */
+ public function getSentMIMEMessage()
+ {
+ return $this->MIMEHeader . $this->mailHeader . self::CRLF . $this->MIMEBody;
+ }
+
+ /**
+ * Assemble the message body.
+ * Returns an empty string on failure.
+ * @access public
+ * @throws phpmailerException
+ * @return string The assembled message body
+ */
+ public function createBody()
+ {
+ $body = '';
+
+ if ($this->sign_key_file) {
+ $body .= $this->getMailMIME() . $this->LE;
+ }
+
+ $this->setWordWrap();
+
+ $bodyEncoding = $this->Encoding;
+ $bodyCharSet = $this->CharSet;
+ if ($bodyEncoding == '8bit' and !$this->has8bitChars($this->Body)) {
+ $bodyEncoding = '7bit';
+ $bodyCharSet = 'us-ascii';
+ }
+ $altBodyEncoding = $this->Encoding;
+ $altBodyCharSet = $this->CharSet;
+ if ($altBodyEncoding == '8bit' and !$this->has8bitChars($this->AltBody)) {
+ $altBodyEncoding = '7bit';
+ $altBodyCharSet = 'us-ascii';
+ }
+ //Use this as a preamble in all multipart message types
+ $mimepre = "This is a multi-part message in MIME format." . $this->LE . $this->LE;
+ switch ($this->message_type) {
+ case 'inline':
+ $body .= $mimepre;
+ $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->attachAll('inline', $this->boundary[1]);
+ break;
+ case 'attach':
+ $body .= $mimepre;
+ $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->attachAll('attachment', $this->boundary[1]);
+ break;
+ case 'inline_attach':
+ $body .= $mimepre;
+ $body .= $this->textLine('--' . $this->boundary[1]);
+ $body .= $this->headerLine('Content-Type', 'multipart/related;');
+ $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
+ $body .= $this->LE;
+ $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, '', $bodyEncoding);
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->attachAll('inline', $this->boundary[2]);
+ $body .= $this->LE;
+ $body .= $this->attachAll('attachment', $this->boundary[1]);
+ break;
+ case 'alt':
+ $body .= $mimepre;
+ $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
+ $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, 'text/html', $bodyEncoding);
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ $body .= $this->LE . $this->LE;
+ if (!empty($this->Ical)) {
+ $body .= $this->getBoundary($this->boundary[1], '', 'text/calendar; method=REQUEST', '');
+ $body .= $this->encodeString($this->Ical, $this->Encoding);
+ $body .= $this->LE . $this->LE;
+ }
+ $body .= $this->endBoundary($this->boundary[1]);
+ break;
+ case 'alt_inline':
+ $body .= $mimepre;
+ $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
+ $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->textLine('--' . $this->boundary[1]);
+ $body .= $this->headerLine('Content-Type', 'multipart/related;');
+ $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
+ $body .= $this->LE;
+ $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->attachAll('inline', $this->boundary[2]);
+ $body .= $this->LE;
+ $body .= $this->endBoundary($this->boundary[1]);
+ break;
+ case 'alt_attach':
+ $body .= $mimepre;
+ $body .= $this->textLine('--' . $this->boundary[1]);
+ $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
+ $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
+ $body .= $this->LE;
+ $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
+ $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->endBoundary($this->boundary[2]);
+ $body .= $this->LE;
+ $body .= $this->attachAll('attachment', $this->boundary[1]);
+ break;
+ case 'alt_inline_attach':
+ $body .= $mimepre;
+ $body .= $this->textLine('--' . $this->boundary[1]);
+ $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
+ $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
+ $body .= $this->LE;
+ $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
+ $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->textLine('--' . $this->boundary[2]);
+ $body .= $this->headerLine('Content-Type', 'multipart/related;');
+ $body .= $this->textLine("\tboundary=\"" . $this->boundary[3] . '"');
+ $body .= $this->LE;
+ $body .= $this->getBoundary($this->boundary[3], $bodyCharSet, 'text/html', $bodyEncoding);
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ $body .= $this->LE . $this->LE;
+ $body .= $this->attachAll('inline', $this->boundary[3]);
+ $body .= $this->LE;
+ $body .= $this->endBoundary($this->boundary[2]);
+ $body .= $this->LE;
+ $body .= $this->attachAll('attachment', $this->boundary[1]);
+ break;
+ default:
+ // catch case 'plain' and case ''
+ $body .= $this->encodeString($this->Body, $bodyEncoding);
+ break;
+ }
+
+ if ($this->isError()) {
+ $body = '';
+ } elseif ($this->sign_key_file) {
+ try {
+ if (!defined('PKCS7_TEXT')) {
+ throw new phpmailerException($this->lang('extension_missing') . 'openssl');
+ }
+ // @TODO would be nice to use php://temp streams here, but need to wrap for PHP < 5.1
+ $file = tempnam(sys_get_temp_dir(), 'mail');
+ if (false === file_put_contents($file, $body)) {
+ throw new phpmailerException($this->lang('signing') . ' Could not write temp file');
+ }
+ $signed = tempnam(sys_get_temp_dir(), 'signed');
+ //Workaround for PHP bug https://bugs.php.net/bug.php?id=69197
+ if (empty($this->sign_extracerts_file)) {
+ $sign = @openssl_pkcs7_sign(
+ $file,
+ $signed,
+ 'file://' . realpath($this->sign_cert_file),
+ array('file://' . realpath($this->sign_key_file), $this->sign_key_pass),
+ null
+ );
+ } else {
+ $sign = @openssl_pkcs7_sign(
+ $file,
+ $signed,
+ 'file://' . realpath($this->sign_cert_file),
+ array('file://' . realpath($this->sign_key_file), $this->sign_key_pass),
+ null,
+ PKCS7_DETACHED,
+ $this->sign_extracerts_file
+ );
+ }
+ if ($sign) {
+ @unlink($file);
+ $body = file_get_contents($signed);
+ @unlink($signed);
+ //The message returned by openssl contains both headers and body, so need to split them up
+ $parts = explode("\n\n", $body, 2);
+ $this->MIMEHeader .= $parts[0] . $this->LE . $this->LE;
+ $body = $parts[1];
+ } else {
+ @unlink($file);
+ @unlink($signed);
+ throw new phpmailerException($this->lang('signing') . openssl_error_string());
+ }
+ } catch (phpmailerException $exc) {
+ $body = '';
+ if ($this->exceptions) {
+ throw $exc;
+ }
+ }
+ }
+ return $body;
+ }
+
+ /**
+ * Return the start of a message boundary.
+ * @access protected
+ * @param string $boundary
+ * @param string $charSet
+ * @param string $contentType
+ * @param string $encoding
+ * @return string
+ */
+ protected function getBoundary($boundary, $charSet, $contentType, $encoding)
+ {
+ $result = '';
+ if ($charSet == '') {
+ $charSet = $this->CharSet;
+ }
+ if ($contentType == '') {
+ $contentType = $this->ContentType;
+ }
+ if ($encoding == '') {
+ $encoding = $this->Encoding;
+ }
+ $result .= $this->textLine('--' . $boundary);
+ $result .= sprintf('Content-Type: %s; charset=%s', $contentType, $charSet);
+ $result .= $this->LE;
+ // RFC1341 part 5 says 7bit is assumed if not specified
+ if ($encoding != '7bit') {
+ $result .= $this->headerLine('Content-Transfer-Encoding', $encoding);
+ }
+ $result .= $this->LE;
+
+ return $result;
+ }
+
+ /**
+ * Return the end of a message boundary.
+ * @access protected
+ * @param string $boundary
+ * @return string
+ */
+ protected function endBoundary($boundary)
+ {
+ return $this->LE . '--' . $boundary . '--' . $this->LE;
+ }
+
+ /**
+ * Set the message type.
+ * PHPMailer only supports some preset message types,
+ * not arbitrary MIME structures.
+ * @access protected
+ * @return void
+ */
+ protected function setMessageType()
+ {
+ $type = array();
+ if ($this->alternativeExists()) {
+ $type[] = 'alt';
+ }
+ if ($this->inlineImageExists()) {
+ $type[] = 'inline';
+ }
+ if ($this->attachmentExists()) {
+ $type[] = 'attach';
+ }
+ $this->message_type = implode('_', $type);
+ if ($this->message_type == '') {
+ $this->message_type = 'plain';
+ }
+ }
+
+ /**
+ * Format a header line.
+ * @access public
+ * @param string $name
+ * @param string $value
+ * @return string
+ */
+ public function headerLine($name, $value)
+ {
+ return $name . ': ' . $value . $this->LE;
+ }
+
+ /**
+ * Return a formatted mail line.
+ * @access public
+ * @param string $value
+ * @return string
+ */
+ public function textLine($value)
+ {
+ return $value . $this->LE;
+ }
+
+ /**
+ * Add an attachment from a path on the filesystem.
+ * Returns false if the file could not be found or read.
+ * @param string $path Path to the attachment.
+ * @param string $name Overrides the attachment name.
+ * @param string $encoding File encoding (see $Encoding).
+ * @param string $type File extension (MIME) type.
+ * @param string $disposition Disposition to use
+ * @throws phpmailerException
+ * @return boolean
+ */
+ public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
+ {
+ try {
+ if (!@is_file($path)) {
+ throw new phpmailerException($this->lang('file_access') . $path, self::STOP_CONTINUE);
+ }
+
+ // If a MIME type is not specified, try to work it out from the file name
+ if ($type == '') {
+ $type = self::filenameToType($path);
+ }
+
+ $filename = basename($path);
+ if ($name == '') {
+ $name = $filename;
+ }
+
+ $this->attachment[] = array(
+ 0 => $path,
+ 1 => $filename,
+ 2 => $name,
+ 3 => $encoding,
+ 4 => $type,
+ 5 => false, // isStringAttachment
+ 6 => $disposition,
+ 7 => 0
+ );
+
+ } catch (phpmailerException $exc) {
+ $this->setError($exc->getMessage());
+ $this->edebug($exc->getMessage());
+ if ($this->exceptions) {
+ throw $exc;
+ }
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Return the array of attachments.
+ * @return array
+ */
+ public function getAttachments()
+ {
+ return $this->attachment;
+ }
+
+ /**
+ * Attach all file, string, and binary attachments to the message.
+ * Returns an empty string on failure.
+ * @access protected
+ * @param string $disposition_type
+ * @param string $boundary
+ * @return string
+ */
+ protected function attachAll($disposition_type, $boundary)
+ {
+ // Return text of body
+ $mime = array();
+ $cidUniq = array();
+ $incl = array();
+
+ // Add all attachments
+ foreach ($this->attachment as $attachment) {
+ // Check if it is a valid disposition_filter
+ if ($attachment[6] == $disposition_type) {
+ // Check for string attachment
+ $string = '';
+ $path = '';
+ $bString = $attachment[5];
+ if ($bString) {
+ $string = $attachment[0];
+ } else {
+ $path = $attachment[0];
+ }
+
+ $inclhash = md5(serialize($attachment));
+ if (in_array($inclhash, $incl)) {
+ continue;
+ }
+ $incl[] = $inclhash;
+ $name = $attachment[2];
+ $encoding = $attachment[3];
+ $type = $attachment[4];
+ $disposition = $attachment[6];
+ $cid = $attachment[7];
+ if ($disposition == 'inline' && isset($cidUniq[$cid])) {
+ continue;
+ }
+ $cidUniq[$cid] = true;
+
+ $mime[] = sprintf('--%s%s', $boundary, $this->LE);
+ $mime[] = sprintf(
+ 'Content-Type: %s; name="%s"%s',
+ $type,
+ $this->encodeHeader($this->secureHeader($name)),
+ $this->LE
+ );
+ // RFC1341 part 5 says 7bit is assumed if not specified
+ if ($encoding != '7bit') {
+ $mime[] = sprintf('Content-Transfer-Encoding: %s%s', $encoding, $this->LE);
+ }
+
+ if ($disposition == 'inline') {
+ $mime[] = sprintf('Content-ID: <%s>%s', $cid, $this->LE);
+ }
+
+ // If a filename contains any of these chars, it should be quoted,
+ // but not otherwise: RFC2183 & RFC2045 5.1
+ // Fixes a warning in IETF's msglint MIME checker
+ // Allow for bypassing the Content-Disposition header totally
+ if (!(empty($disposition))) {
+ $encoded_name = $this->encodeHeader($this->secureHeader($name));
+ if (preg_match('/[ \(\)<>@,;:\\"\/\[\]\?=]/', $encoded_name)) {
+ $mime[] = sprintf(
+ 'Content-Disposition: %s; filename="%s"%s',
+ $disposition,
+ $encoded_name,
+ $this->LE . $this->LE
+ );
+ } else {
+ $mime[] = sprintf(
+ 'Content-Disposition: %s; filename=%s%s',
+ $disposition,
+ $encoded_name,
+ $this->LE . $this->LE
+ );
+ }
+ } else {
+ $mime[] = $this->LE;
+ }
+
+ // Encode as string attachment
+ if ($bString) {
+ $mime[] = $this->encodeString($string, $encoding);
+ if ($this->isError()) {
+ return '';
+ }
+ $mime[] = $this->LE . $this->LE;
+ } else {
+ $mime[] = $this->encodeFile($path, $encoding);
+ if ($this->isError()) {
+ return '';
+ }
+ $mime[] = $this->LE . $this->LE;
+ }
+ }
+ }
+
+ $mime[] = sprintf('--%s--%s', $boundary, $this->LE);
+
+ return implode('', $mime);
+ }
+
+ /**
+ * Encode a file attachment in requested format.
+ * Returns an empty string on failure.
+ * @param string $path The full path to the file
+ * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
+ * @throws phpmailerException
+ * @see EncodeFile(encodeFile
+ * @access protected
+ * @return string
+ */
+ protected function encodeFile($path, $encoding = 'base64')
+ {
+ try {
+ if (!is_readable($path)) {
+ throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE);
+ }
+ $magic_quotes = get_magic_quotes_runtime();
+ if ($magic_quotes) {
+ if (version_compare(PHP_VERSION, '5.3.0', '<')) {
+ set_magic_quotes_runtime(false);
+ } else {
+ //Doesn't exist in PHP 5.4, but we don't need to check because
+ //get_magic_quotes_runtime always returns false in 5.4+
+ //so it will never get here
+ ini_set('magic_quotes_runtime', false);
+ }
+ }
+ $file_buffer = file_get_contents($path);
+ $file_buffer = $this->encodeString($file_buffer, $encoding);
+ if ($magic_quotes) {
+ if (version_compare(PHP_VERSION, '5.3.0', '<')) {
+ set_magic_quotes_runtime($magic_quotes);
+ } else {
+ ini_set('magic_quotes_runtime', $magic_quotes);
+ }
+ }
+ return $file_buffer;
+ } catch (Exception $exc) {
+ $this->setError($exc->getMessage());
+ return '';
+ }
+ }
+
+ /**
+ * Encode a string in requested format.
+ * Returns an empty string on failure.
+ * @param string $str The text to encode
+ * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
+ * @access public
+ * @return string
+ */
+ public function encodeString($str, $encoding = 'base64')
+ {
+ $encoded = '';
+ switch (strtolower($encoding)) {
+ case 'base64':
+ $encoded = chunk_split(base64_encode($str), 76, $this->LE);
+ break;
+ case '7bit':
+ case '8bit':
+ $encoded = $this->fixEOL($str);
+ // Make sure it ends with a line break
+ if (substr($encoded, -(strlen($this->LE))) != $this->LE) {
+ $encoded .= $this->LE;
+ }
+ break;
+ case 'binary':
+ $encoded = $str;
+ break;
+ case 'quoted-printable':
+ $encoded = $this->encodeQP($str);
+ break;
+ default:
+ $this->setError($this->lang('encoding') . $encoding);
+ break;
+ }
+ return $encoded;
+ }
+
+ /**
+ * Encode a header string optimally.
+ * Picks shortest of Q, B, quoted-printable or none.
+ * @access public
+ * @param string $str
+ * @param string $position
+ * @return string
+ */
+ public function encodeHeader($str, $position = 'text')
+ {
+ $matchcount = 0;
+ switch (strtolower($position)) {
+ case 'phrase':
+ if (!preg_match('/[\200-\377]/', $str)) {
+ // Can't use addslashes as we don't know the value of magic_quotes_sybase
+ $encoded = addcslashes($str, "\0..\37\177\\\"");
+ if (($str == $encoded) && !preg_match('/[^A-Za-z0-9!#$%&\'*+\/=?^_`{|}~ -]/', $str)) {
+ return ($encoded);
+ } else {
+ return ("\"$encoded\"");
+ }
+ }
+ $matchcount = preg_match_all('/[^\040\041\043-\133\135-\176]/', $str, $matches);
+ break;
+ /** @noinspection PhpMissingBreakStatementInspection */
+ case 'comment':
+ $matchcount = preg_match_all('/[()"]/', $str, $matches);
+ // Intentional fall-through
+ case 'text':
+ default:
+ $matchcount += preg_match_all('/[\000-\010\013\014\016-\037\177-\377]/', $str, $matches);
+ break;
+ }
+
+ //There are no chars that need encoding
+ if ($matchcount == 0) {
+ return ($str);
+ }
+
+ $maxlen = 75 - 7 - strlen($this->CharSet);
+ // Try to select the encoding which should produce the shortest output
+ if ($matchcount > strlen($str) / 3) {
+ // More than a third of the content will need encoding, so B encoding will be most efficient
+ $encoding = 'B';
+ if (function_exists('mb_strlen') && $this->hasMultiBytes($str)) {
+ // Use a custom function which correctly encodes and wraps long
+ // multibyte strings without breaking lines within a character
+ $encoded = $this->base64EncodeWrapMB($str, "\n");
+ } else {
+ $encoded = base64_encode($str);
+ $maxlen -= $maxlen % 4;
+ $encoded = trim(chunk_split($encoded, $maxlen, "\n"));
+ }
+ } else {
+ $encoding = 'Q';
+ $encoded = $this->encodeQ($str, $position);
+ $encoded = $this->wrapText($encoded, $maxlen, true);
+ $encoded = str_replace('=' . self::CRLF, "\n", trim($encoded));
+ }
+
+ $encoded = preg_replace('/^(.*)$/m', ' =?' . $this->CharSet . "?$encoding?\\1?=", $encoded);
+ $encoded = trim(str_replace("\n", $this->LE, $encoded));
+
+ return $encoded;
+ }
+
+ /**
+ * Check if a string contains multi-byte characters.
+ * @access public
+ * @param string $str multi-byte text to wrap encode
+ * @return boolean
+ */
+ public function hasMultiBytes($str)
+ {
+ if (function_exists('mb_strlen')) {
+ return (strlen($str) > mb_strlen($str, $this->CharSet));
+ } else { // Assume no multibytes (we can't handle without mbstring functions anyway)
+ return false;
+ }
+ }
+
+ /**
+ * Does a string contain any 8-bit chars (in any charset)?
+ * @param string $text
+ * @return boolean
+ */
+ public function has8bitChars($text)
+ {
+ return (boolean)preg_match('/[\x80-\xFF]/', $text);
+ }
+
+ /**
+ * Encode and wrap long multibyte strings for mail headers
+ * without breaking lines within a character.
+ * Adapted from a function by paravoid
+ * @link http://www.php.net/manual/en/function.mb-encode-mimeheader.php#60283
+ * @access public
+ * @param string $str multi-byte text to wrap encode
+ * @param string $linebreak string to use as linefeed/end-of-line
+ * @return string
+ */
+ public function base64EncodeWrapMB($str, $linebreak = null)
+ {
+ $start = '=?' . $this->CharSet . '?B?';
+ $end = '?=';
+ $encoded = '';
+ if ($linebreak === null) {
+ $linebreak = $this->LE;
+ }
+
+ $mb_length = mb_strlen($str, $this->CharSet);
+ // Each line must have length <= 75, including $start and $end
+ $length = 75 - strlen($start) - strlen($end);
+ // Average multi-byte ratio
+ $ratio = $mb_length / strlen($str);
+ // Base64 has a 4:3 ratio
+ $avgLength = floor($length * $ratio * .75);
+
+ for ($i = 0; $i < $mb_length; $i += $offset) {
+ $lookBack = 0;
+ do {
+ $offset = $avgLength - $lookBack;
+ $chunk = mb_substr($str, $i, $offset, $this->CharSet);
+ $chunk = base64_encode($chunk);
+ $lookBack++;
+ } while (strlen($chunk) > $length);
+ $encoded .= $chunk . $linebreak;
+ }
+
+ // Chomp the last linefeed
+ $encoded = substr($encoded, 0, -strlen($linebreak));
+ return $encoded;
+ }
+
+ /**
+ * Encode a string in quoted-printable format.
+ * According to RFC2045 section 6.7.
+ * @access public
+ * @param string $string The text to encode
+ * @param integer $line_max Number of chars allowed on a line before wrapping
+ * @return string
+ * @link http://www.php.net/manual/en/function.quoted-printable-decode.php#89417 Adapted from this comment
+ */
+ public function encodeQP($string, $line_max = 76)
+ {
+ // Use native function if it's available (>= PHP5.3)
+ if (function_exists('quoted_printable_encode')) {
+ return $this->fixEOL(quoted_printable_encode($string));
+ }
+ // Fall back to a pure PHP implementation
+ $string = str_replace(
+ array('%20', '%0D%0A.', '%0D%0A', '%'),
+ array(' ', "\r\n=2E", "\r\n", '='),
+ rawurlencode($string)
+ );
+ $string = preg_replace('/[^\r\n]{' . ($line_max - 3) . '}[^=\r\n]{2}/', "$0=\r\n", $string);
+ return $this->fixEOL($string);
+ }
+
+ /**
+ * Backward compatibility wrapper for an old QP encoding function that was removed.
+ * @see PHPMailer::encodeQP()
+ * @access public
+ * @param string $string
+ * @param integer $line_max
+ * @param boolean $space_conv
+ * @return string
+ * @deprecated Use encodeQP instead.
+ */
+ public function encodeQPphp(
+ $string,
+ $line_max = 76,
+ /** @noinspection PhpUnusedParameterInspection */ $space_conv = false
+ ) {
+ return $this->encodeQP($string, $line_max);
+ }
+
+ /**
+ * Encode a string using Q encoding.
+ * @link http://tools.ietf.org/html/rfc2047
+ * @param string $str the text to encode
+ * @param string $position Where the text is going to be used, see the RFC for what that means
+ * @access public
+ * @return string
+ */
+ public function encodeQ($str, $position = 'text')
+ {
+ // There should not be any EOL in the string
+ $pattern = '';
+ $encoded = str_replace(array("\r", "\n"), '', $str);
+ switch (strtolower($position)) {
+ case 'phrase':
+ // RFC 2047 section 5.3
+ $pattern = '^A-Za-z0-9!*+\/ -';
+ break;
+ /** @noinspection PhpMissingBreakStatementInspection */
+ case 'comment':
+ // RFC 2047 section 5.2
+ $pattern = '\(\)"';
+ // intentional fall-through
+ // for this reason we build the $pattern without including delimiters and []
+ case 'text':
+ default:
+ // RFC 2047 section 5.1
+ // Replace every high ascii, control, =, ? and _ characters
+ $pattern = '\000-\011\013\014\016-\037\075\077\137\177-\377' . $pattern;
+ break;
+ }
+ $matches = array();
+ if (preg_match_all("/[{$pattern}]/", $encoded, $matches)) {
+ // If the string contains an '=', make sure it's the first thing we replace
+ // so as to avoid double-encoding
+ $eqkey = array_search('=', $matches[0]);
+ if (false !== $eqkey) {
+ unset($matches[0][$eqkey]);
+ array_unshift($matches[0], '=');
+ }
+ foreach (array_unique($matches[0]) as $char) {
+ $encoded = str_replace($char, '=' . sprintf('%02X', ord($char)), $encoded);
+ }
+ }
+ // Replace every spaces to _ (more readable than =20)
+ return str_replace(' ', '_', $encoded);
+ }
+
+
+ /**
+ * Add a string or binary attachment (non-filesystem).
+ * This method can be used to attach ascii or binary data,
+ * such as a BLOB record from a database.
+ * @param string $string String attachment data.
+ * @param string $filename Name of the attachment.
+ * @param string $encoding File encoding (see $Encoding).
+ * @param string $type File extension (MIME) type.
+ * @param string $disposition Disposition to use
+ * @return void
+ */
+ public function addStringAttachment(
+ $string,
+ $filename,
+ $encoding = 'base64',
+ $type = '',
+ $disposition = 'attachment'
+ ) {
+ // If a MIME type is not specified, try to work it out from the file name
+ if ($type == '') {
+ $type = self::filenameToType($filename);
+ }
+ // Append to $attachment array
+ $this->attachment[] = array(
+ 0 => $string,
+ 1 => $filename,
+ 2 => basename($filename),
+ 3 => $encoding,
+ 4 => $type,
+ 5 => true, // isStringAttachment
+ 6 => $disposition,
+ 7 => 0
+ );
+ }
+
+ /**
+ * Add an embedded (inline) attachment from a file.
+ * This can include images, sounds, and just about any other document type.
+ * These differ from 'regular' attachments in that they are intended to be
+ * displayed inline with the message, not just attached for download.
+ * This is used in HTML messages that embed the images
+ * the HTML refers to using the $cid value.
+ * @param string $path Path to the attachment.
+ * @param string $cid Content ID of the attachment; Use this to reference
+ * the content when using an embedded image in HTML.
+ * @param string $name Overrides the attachment name.
+ * @param string $encoding File encoding (see $Encoding).
+ * @param string $type File MIME type.
+ * @param string $disposition Disposition to use
+ * @return boolean True on successfully adding an attachment
+ */
+ public function addEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = '', $disposition = 'inline')
+ {
+ if (!@is_file($path)) {
+ $this->setError($this->lang('file_access') . $path);
+ return false;
+ }
+
+ // If a MIME type is not specified, try to work it out from the file name
+ if ($type == '') {
+ $type = self::filenameToType($path);
+ }
+
+ $filename = basename($path);
+ if ($name == '') {
+ $name = $filename;
+ }
+
+ // Append to $attachment array
+ $this->attachment[] = array(
+ 0 => $path,
+ 1 => $filename,
+ 2 => $name,
+ 3 => $encoding,
+ 4 => $type,
+ 5 => false, // isStringAttachment
+ 6 => $disposition,
+ 7 => $cid
+ );
+ return true;
+ }
+
+ /**
+ * Add an embedded stringified attachment.
+ * This can include images, sounds, and just about any other document type.
+ * Be sure to set the $type to an image type for images:
+ * JPEG images use 'image/jpeg', GIF uses 'image/gif', PNG uses 'image/png'.
+ * @param string $string The attachment binary data.
+ * @param string $cid Content ID of the attachment; Use this to reference
+ * the content when using an embedded image in HTML.
+ * @param string $name
+ * @param string $encoding File encoding (see $Encoding).
+ * @param string $type MIME type.
+ * @param string $disposition Disposition to use
+ * @return boolean True on successfully adding an attachment
+ */
+ public function addStringEmbeddedImage(
+ $string,
+ $cid,
+ $name = '',
+ $encoding = 'base64',
+ $type = '',
+ $disposition = 'inline'
+ ) {
+ // If a MIME type is not specified, try to work it out from the name
+ if ($type == '') {
+ $type = self::filenameToType($name);
+ }
+
+ // Append to $attachment array
+ $this->attachment[] = array(
+ 0 => $string,
+ 1 => $name,
+ 2 => $name,
+ 3 => $encoding,
+ 4 => $type,
+ 5 => true, // isStringAttachment
+ 6 => $disposition,
+ 7 => $cid
+ );
+ return true;
+ }
+
+ /**
+ * Check if an inline attachment is present.
+ * @access public
+ * @return boolean
+ */
+ public function inlineImageExists()
+ {
+ foreach ($this->attachment as $attachment) {
+ if ($attachment[6] == 'inline') {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Check if an attachment (non-inline) is present.
+ * @return boolean
+ */
+ public function attachmentExists()
+ {
+ foreach ($this->attachment as $attachment) {
+ if ($attachment[6] == 'attachment') {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Check if this message has an alternative body set.
+ * @return boolean
+ */
+ public function alternativeExists()
+ {
+ return !empty($this->AltBody);
+ }
+
+ /**
+ * Clear all To recipients.
+ * @return void
+ */
+ public function clearAddresses()
+ {
+ foreach ($this->to as $to) {
+ unset($this->all_recipients[strtolower($to[0])]);
+ }
+ $this->to = array();
+ }
+
+ /**
+ * Clear all CC recipients.
+ * @return void
+ */
+ public function clearCCs()
+ {
+ foreach ($this->cc as $cc) {
+ unset($this->all_recipients[strtolower($cc[0])]);
+ }
+ $this->cc = array();
+ }
+
+ /**
+ * Clear all BCC recipients.
+ * @return void
+ */
+ public function clearBCCs()
+ {
+ foreach ($this->bcc as $bcc) {
+ unset($this->all_recipients[strtolower($bcc[0])]);
+ }
+ $this->bcc = array();
+ }
+
+ /**
+ * Clear all ReplyTo recipients.
+ * @return void
+ */
+ public function clearReplyTos()
+ {
+ $this->ReplyTo = array();
+ }
+
+ /**
+ * Clear all recipient types.
+ * @return void
+ */
+ public function clearAllRecipients()
+ {
+ $this->to = array();
+ $this->cc = array();
+ $this->bcc = array();
+ $this->all_recipients = array();
+ }
+
+ /**
+ * Clear all filesystem, string, and binary attachments.
+ * @return void
+ */
+ public function clearAttachments()
+ {
+ $this->attachment = array();
+ }
+
+ /**
+ * Clear all custom headers.
+ * @return void
+ */
+ public function clearCustomHeaders()
+ {
+ $this->CustomHeader = array();
+ }
+
+ /**
+ * Add an error message to the error container.
+ * @access protected
+ * @param string $msg
+ * @return void
+ */
+ protected function setError($msg)
+ {
+ $this->error_count++;
+ if ($this->Mailer == 'smtp' and !is_null($this->smtp)) {
+ $lasterror = $this->smtp->getError();
+ if (!empty($lasterror['error'])) {
+ $msg .= $this->lang('smtp_error') . $lasterror['error'];
+ if (!empty($lasterror['detail'])) {
+ $msg .= ' Detail: '. $lasterror['detail'];
+ }
+ if (!empty($lasterror['smtp_code'])) {
+ $msg .= ' SMTP code: ' . $lasterror['smtp_code'];
+ }
+ if (!empty($lasterror['smtp_code_ex'])) {
+ $msg .= ' Additional SMTP info: ' . $lasterror['smtp_code_ex'];
+ }
+ }
+ }
+ $this->ErrorInfo = $msg;
+ }
+
+ /**
+ * Return an RFC 822 formatted date.
+ * @access public
+ * @return string
+ * @static
+ */
+ public static function rfcDate()
+ {
+ // Set the time zone to whatever the default is to avoid 500 errors
+ // Will default to UTC if it's not set properly in php.ini
+ date_default_timezone_set(@date_default_timezone_get());
+ return date('D, j M Y H:i:s O');
+ }
+
+ /**
+ * Get the server hostname.
+ * Returns 'localhost.localdomain' if unknown.
+ * @access protected
+ * @return string
+ */
+ protected function serverHostname()
+ {
+ $result = 'localhost.localdomain';
+ if (!empty($this->Hostname)) {
+ $result = $this->Hostname;
+ } elseif (isset($_SERVER) and array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
+ $result = $_SERVER['SERVER_NAME'];
+ } elseif (function_exists('gethostname') && gethostname() !== false) {
+ $result = gethostname();
+ } elseif (php_uname('n') !== false) {
+ $result = php_uname('n');
+ }
+ return $result;
+ }
+
+ /**
+ * Get an error message in the current language.
+ * @access protected
+ * @param string $key
+ * @return string
+ */
+ protected function lang($key)
+ {
+ if (count($this->language) < 1) {
+ $this->setLanguage('en'); // set the default language
+ }
+
+ if (array_key_exists($key, $this->language)) {
+ return $this->language[$key];
+ } else {
+ //Return the key as a fallback
+ return $key;
+ }
+ }
+
+ /**
+ * Check if an error occurred.
+ * @access public
+ * @return boolean True if an error did occur.
+ */
+ public function isError()
+ {
+ return ($this->error_count > 0);
+ }
+
+ /**
+ * Ensure consistent line endings in a string.
+ * Changes every end of line from CRLF, CR or LF to $this->LE.
+ * @access public
+ * @param string $str String to fixEOL
+ * @return string
+ */
+ public function fixEOL($str)
+ {
+ // Normalise to \n
+ $nstr = str_replace(array("\r\n", "\r"), "\n", $str);
+ // Now convert LE as needed
+ if ($this->LE !== "\n") {
+ $nstr = str_replace("\n", $this->LE, $nstr);
+ }
+ return $nstr;
+ }
+
+ /**
+ * Add a custom header.
+ * $name value can be overloaded to contain
+ * both header name and value (name:value)
+ * @access public
+ * @param string $name Custom header name
+ * @param string $value Header value
+ * @return void
+ */
+ public function addCustomHeader($name, $value = null)
+ {
+ if ($value === null) {
+ // Value passed in as name:value
+ $this->CustomHeader[] = explode(':', $name, 2);
+ } else {
+ $this->CustomHeader[] = array($name, $value);
+ }
+ }
+
+ /**
+ * Returns all custom headers
+ *
+ * @return array
+ */
+ public function getCustomHeaders()
+ {
+ return $this->CustomHeader;
+ }
+
+ /**
+ * Create a message from an HTML string.
+ * Automatically makes modifications for inline images and backgrounds
+ * and creates a plain-text version by converting the HTML.
+ * Overwrites any existing values in $this->Body and $this->AltBody
+ * @access public
+ * @param string $message HTML message string
+ * @param string $basedir baseline directory for path
+ * @param boolean|callable $advanced Whether to use the internal HTML to text converter
+ * or your own custom converter @see html2text()
+ * @return string $message
+ */
+ public function msgHTML($message, $basedir = '', $advanced = false)
+ {
+ preg_match_all('/(src|background)=["\'](.*)["\']/Ui', $message, $images);
+ if (isset($images[2])) {
+ foreach ($images[2] as $imgindex => $url) {
+ // Convert data URIs into embedded images
+ if (preg_match('#^data:(image[^;,]*)(;base64)?,#', $url, $match)) {
+ $data = substr($url, strpos($url, ','));
+ if ($match[2]) {
+ $data = base64_decode($data);
+ } else {
+ $data = rawurldecode($data);
+ }
+ $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2
+ if ($this->addStringEmbeddedImage($data, $cid, '', 'base64', $match[1])) {
+ $message = str_replace(
+ $images[0][$imgindex],
+ $images[1][$imgindex] . '="cid:' . $cid . '"',
+ $message
+ );
+ }
+ } elseif (!preg_match('#^[A-z]+://#', $url)) {
+ // Do not change urls for absolute images (thanks to corvuscorax)
+ $filename = basename($url);
+ $directory = dirname($url);
+ if ($directory == '.') {
+ $directory = '';
+ }
+ $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2
+ if (strlen($basedir) > 1 && substr($basedir, -1) != '/') {
+ $basedir .= '/';
+ }
+ if (strlen($directory) > 1 && substr($directory, -1) != '/') {
+ $directory .= '/';
+ }
+ if ($this->addEmbeddedImage(
+ $basedir . $directory . $filename,
+ $cid,
+ $filename,
+ 'base64',
+ self::_mime_types((string)self::mb_pathinfo($filename, PATHINFO_EXTENSION))
+ )
+ ) {
+ $message = preg_replace(
+ '/' . $images[1][$imgindex] . '=["\']' . preg_quote($url, '/') . '["\']/Ui',
+ $images[1][$imgindex] . '="cid:' . $cid . '"',
+ $message
+ );
+ }
+ }
+ }
+ }
+ $this->isHTML(true);
+ // Convert all message body line breaks to CRLF, makes quoted-printable encoding work much better
+ $this->Body = $this->normalizeBreaks($message);
+ $this->AltBody = $this->normalizeBreaks($this->html2text($message, $advanced));
+ if (empty($this->AltBody)) {
+ $this->AltBody = 'To view this email message, open it in a program that understands HTML!' .
+ self::CRLF . self::CRLF;
+ }
+ return $this->Body;
+ }
+
+ /**
+ * Convert an HTML string into plain text.
+ * This is used by msgHTML().
+ * Note - older versions of this function used a bundled advanced converter
+ * which was been removed for license reasons in #232
+ * Example usage:
+ * <code>
+ * // Use default conversion
+ * $plain = $mail->html2text($html);
+ * // Use your own custom converter
+ * $plain = $mail->html2text($html, function($html) {
+ * $converter = new MyHtml2text($html);
+ * return $converter->get_text();
+ * });
+ * </code>
+ * @param string $html The HTML text to convert
+ * @param boolean|callable $advanced Any boolean value to use the internal converter,
+ * or provide your own callable for custom conversion.
+ * @return string
+ */
+ public function html2text($html, $advanced = false)
+ {
+ if (is_callable($advanced)) {
+ return call_user_func($advanced, $html);
+ }
+ return html_entity_decode(
+ trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/si', '', $html))),
+ ENT_QUOTES,
+ $this->CharSet
+ );
+ }
+
+ /**
+ * Get the MIME type for a file extension.
+ * @param string $ext File extension
+ * @access public
+ * @return string MIME type of file.
+ * @static
+ */
+ public static function _mime_types($ext = '')
+ {
+ $mimes = array(
+ 'xl' => 'application/excel',
+ 'js' => 'application/javascript',
+ 'hqx' => 'application/mac-binhex40',
+ 'cpt' => 'application/mac-compactpro',
+ 'bin' => 'application/macbinary',
+ 'doc' => 'application/msword',
+ 'word' => 'application/msword',
+ 'class' => 'application/octet-stream',
+ 'dll' => 'application/octet-stream',
+ 'dms' => 'application/octet-stream',
+ 'exe' => 'application/octet-stream',
+ 'lha' => 'application/octet-stream',
+ 'lzh' => 'application/octet-stream',
+ 'psd' => 'application/octet-stream',
+ 'sea' => 'application/octet-stream',
+ 'so' => 'application/octet-stream',
+ 'oda' => 'application/oda',
+ 'pdf' => 'application/pdf',
+ 'ai' => 'application/postscript',
+ 'eps' => 'application/postscript',
+ 'ps' => 'application/postscript',
+ 'smi' => 'application/smil',
+ 'smil' => 'application/smil',
+ 'mif' => 'application/vnd.mif',
+ 'xls' => 'application/vnd.ms-excel',
+ 'ppt' => 'application/vnd.ms-powerpoint',
+ 'wbxml' => 'application/vnd.wap.wbxml',
+ 'wmlc' => 'application/vnd.wap.wmlc',
+ 'dcr' => 'application/x-director',
+ 'dir' => 'application/x-director',
+ 'dxr' => 'application/x-director',
+ 'dvi' => 'application/x-dvi',
+ 'gtar' => 'application/x-gtar',
+ 'php3' => 'application/x-httpd-php',
+ 'php4' => 'application/x-httpd-php',
+ 'php' => 'application/x-httpd-php',
+ 'phtml' => 'application/x-httpd-php',
+ 'phps' => 'application/x-httpd-php-source',
+ 'swf' => 'application/x-shockwave-flash',
+ 'sit' => 'application/x-stuffit',
+ 'tar' => 'application/x-tar',
+ 'tgz' => 'application/x-tar',
+ 'xht' => 'application/xhtml+xml',
+ 'xhtml' => 'application/xhtml+xml',
+ 'zip' => 'application/zip',
+ 'mid' => 'audio/midi',
+ 'midi' => 'audio/midi',
+ 'mp2' => 'audio/mpeg',
+ 'mp3' => 'audio/mpeg',
+ 'mpga' => 'audio/mpeg',
+ 'aif' => 'audio/x-aiff',
+ 'aifc' => 'audio/x-aiff',
+ 'aiff' => 'audio/x-aiff',
+ 'ram' => 'audio/x-pn-realaudio',
+ 'rm' => 'audio/x-pn-realaudio',
+ 'rpm' => 'audio/x-pn-realaudio-plugin',
+ 'ra' => 'audio/x-realaudio',
+ 'wav' => 'audio/x-wav',
+ 'bmp' => 'image/bmp',
+ 'gif' => 'image/gif',
+ 'jpeg' => 'image/jpeg',
+ 'jpe' => 'image/jpeg',
+ 'jpg' => 'image/jpeg',
+ 'png' => 'image/png',
+ 'tiff' => 'image/tiff',
+ 'tif' => 'image/tiff',
+ 'eml' => 'message/rfc822',
+ 'css' => 'text/css',
+ 'html' => 'text/html',
+ 'htm' => 'text/html',
+ 'shtml' => 'text/html',
+ 'log' => 'text/plain',
+ 'text' => 'text/plain',
+ 'txt' => 'text/plain',
+ 'rtx' => 'text/richtext',
+ 'rtf' => 'text/rtf',
+ 'vcf' => 'text/vcard',
+ 'vcard' => 'text/vcard',
+ 'xml' => 'text/xml',
+ 'xsl' => 'text/xml',
+ 'mpeg' => 'video/mpeg',
+ 'mpe' => 'video/mpeg',
+ 'mpg' => 'video/mpeg',
+ 'mov' => 'video/quicktime',
+ 'qt' => 'video/quicktime',
+ 'rv' => 'video/vnd.rn-realvideo',
+ 'avi' => 'video/x-msvideo',
+ 'movie' => 'video/x-sgi-movie'
+ );
+ if (array_key_exists(strtolower($ext), $mimes)) {
+ return $mimes[strtolower($ext)];
+ }
+ return 'application/octet-stream';
+ }
+
+ /**
+ * Map a file name to a MIME type.
+ * Defaults to 'application/octet-stream', i.e.. arbitrary binary data.
+ * @param string $filename A file name or full path, does not need to exist as a file
+ * @return string
+ * @static
+ */
+ public static function filenameToType($filename)
+ {
+ // In case the path is a URL, strip any query string before getting extension
+ $qpos = strpos($filename, '?');
+ if (false !== $qpos) {
+ $filename = substr($filename, 0, $qpos);
+ }
+ $pathinfo = self::mb_pathinfo($filename);
+ return self::_mime_types($pathinfo['extension']);
+ }
+
+ /**
+ * Multi-byte-safe pathinfo replacement.
+ * Drop-in replacement for pathinfo(), but multibyte-safe, cross-platform-safe, old-version-safe.
+ * Works similarly to the one in PHP >= 5.2.0
+ * @link http://www.php.net/manual/en/function.pathinfo.php#107461
+ * @param string $path A filename or path, does not need to exist as a file
+ * @param integer|string $options Either a PATHINFO_* constant,
+ * or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2
+ * @return string|array
+ * @static
+ */
+ public static function mb_pathinfo($path, $options = null)
+ {
+ $ret = array('dirname' => '', 'basename' => '', 'extension' => '', 'filename' => '');
+ $pathinfo = array();
+ if (preg_match('%^(.*?)[\\\\/]*(([^/\\\\]*?)(\.([^\.\\\\/]+?)|))[\\\\/\.]*$%im', $path, $pathinfo)) {
+ if (array_key_exists(1, $pathinfo)) {
+ $ret['dirname'] = $pathinfo[1];
+ }
+ if (array_key_exists(2, $pathinfo)) {
+ $ret['basename'] = $pathinfo[2];
+ }
+ if (array_key_exists(5, $pathinfo)) {
+ $ret['extension'] = $pathinfo[5];
+ }
+ if (array_key_exists(3, $pathinfo)) {
+ $ret['filename'] = $pathinfo[3];
+ }
+ }
+ switch ($options) {
+ case PATHINFO_DIRNAME:
+ case 'dirname':
+ return $ret['dirname'];
+ case PATHINFO_BASENAME:
+ case 'basename':
+ return $ret['basename'];
+ case PATHINFO_EXTENSION:
+ case 'extension':
+ return $ret['extension'];
+ case PATHINFO_FILENAME:
+ case 'filename':
+ return $ret['filename'];
+ default:
+ return $ret;
+ }
+ }
+
+ /**
+ * Set or reset instance properties.
+ * You should avoid this function - it's more verbose, less efficient, more error-prone and
+ * harder to debug than setting properties directly.
+ * Usage Example:
+ * `$mail->set('SMTPSecure', 'tls');`
+ * is the same as:
+ * `$mail->SMTPSecure = 'tls';`
+ * @access public
+ * @param string $name The property name to set
+ * @param mixed $value The value to set the property to
+ * @return boolean
+ * @TODO Should this not be using the __set() magic function?
+ */
+ public function set($name, $value = '')
+ {
+ if (property_exists($this, $name)) {
+ $this->$name = $value;
+ return true;
+ } else {
+ $this->setError($this->lang('variable_set') . $name);
+ return false;
+ }
+ }
+
+ /**
+ * Strip newlines to prevent header injection.
+ * @access public
+ * @param string $str
+ * @return string
+ */
+ public function secureHeader($str)
+ {
+ return trim(str_replace(array("\r", "\n"), '', $str));
+ }
+
+ /**
+ * Normalize line breaks in a string.
+ * Converts UNIX LF, Mac CR and Windows CRLF line breaks into a single line break format.
+ * Defaults to CRLF (for message bodies) and preserves consecutive breaks.
+ * @param string $text
+ * @param string $breaktype What kind of line break to use, defaults to CRLF
+ * @return string
+ * @access public
+ * @static
+ */
+ public static function normalizeBreaks($text, $breaktype = "\r\n")
+ {
+ return preg_replace('/(\r\n|\r|\n)/ms', $breaktype, $text);
+ }
+
+
+ /**
+ * Set the public and private key files and password for S/MIME signing.
+ * @access public
+ * @param string $cert_filename
+ * @param string $key_filename
+ * @param string $key_pass Password for private key
+ * @param string $extracerts_filename Optional path to chain certificate
+ */
+ public function sign($cert_filename, $key_filename, $key_pass, $extracerts_filename = '')
+ {
+ $this->sign_cert_file = $cert_filename;
+ $this->sign_key_file = $key_filename;
+ $this->sign_key_pass = $key_pass;
+ $this->sign_extracerts_file = $extracerts_filename;
+ }
+
+ /**
+ * Quoted-Printable-encode a DKIM header.
+ * @access public
+ * @param string $txt
+ * @return string
+ */
+ public function DKIM_QP($txt)
+ {
+ $line = '';
+ for ($i = 0; $i < strlen($txt); $i++) {
+ $ord = ord($txt[$i]);
+ if (((0x21 <= $ord) && ($ord <= 0x3A)) || $ord == 0x3C || ((0x3E <= $ord) && ($ord <= 0x7E))) {
+ $line .= $txt[$i];
+ } else {
+ $line .= '=' . sprintf('%02X', $ord);
+ }
+ }
+ return $line;
+ }
+
+ /**
+ * Generate a DKIM signature.
+ * @access public
+ * @param string $signHeader
+ * @throws phpmailerException
+ * @return string
+ */
+ public function DKIM_Sign($signHeader)
+ {
+ if (!defined('PKCS7_TEXT')) {
+ if ($this->exceptions) {
+ throw new phpmailerException($this->lang('extension_missing') . 'openssl');
+ }
+ return '';
+ }
+ $privKeyStr = file_get_contents($this->DKIM_private);
+ if ($this->DKIM_passphrase != '') {
+ $privKey = openssl_pkey_get_private($privKeyStr, $this->DKIM_passphrase);
+ } else {
+ $privKey = $privKeyStr;
+ }
+ if (openssl_sign($signHeader, $signature, $privKey)) {
+ return base64_encode($signature);
+ }
+ return '';
+ }
+
+ /**
+ * Generate a DKIM canonicalization header.
+ * @access public
+ * @param string $signHeader Header
+ * @return string
+ */
+ public function DKIM_HeaderC($signHeader)
+ {
+ $signHeader = preg_replace('/\r\n\s+/', ' ', $signHeader);
+ $lines = explode("\r\n", $signHeader);
+ foreach ($lines as $key => $line) {
+ list($heading, $value) = explode(':', $line, 2);
+ $heading = strtolower($heading);
+ $value = preg_replace('/\s+/', ' ', $value); // Compress useless spaces
+ $lines[$key] = $heading . ':' . trim($value); // Don't forget to remove WSP around the value
+ }
+ $signHeader = implode("\r\n", $lines);
+ return $signHeader;
+ }
+
+ /**
+ * Generate a DKIM canonicalization body.
+ * @access public
+ * @param string $body Message Body
+ * @return string
+ */
+ public function DKIM_BodyC($body)
+ {
+ if ($body == '') {
+ return "\r\n";
+ }
+ // stabilize line endings
+ $body = str_replace("\r\n", "\n", $body);
+ $body = str_replace("\n", "\r\n", $body);
+ // END stabilize line endings
+ while (substr($body, strlen($body) - 4, 4) == "\r\n\r\n") {
+ $body = substr($body, 0, strlen($body) - 2);
+ }
+ return $body;
+ }
+
+ /**
+ * Create the DKIM header and body in a new message header.
+ * @access public
+ * @param string $headers_line Header lines
+ * @param string $subject Subject
+ * @param string $body Body
+ * @return string
+ */
+ public function DKIM_Add($headers_line, $subject, $body)
+ {
+ $DKIMsignatureType = 'rsa-sha1'; // Signature & hash algorithms
+ $DKIMcanonicalization = 'relaxed/simple'; // Canonicalization of header/body
+ $DKIMquery = 'dns/txt'; // Query method
+ $DKIMtime = time(); // Signature Timestamp = seconds since 00:00:00 - Jan 1, 1970 (UTC time zone)
+ $subject_header = "Subject: $subject";
+ $headers = explode($this->LE, $headers_line);
+ $from_header = '';
+ $to_header = '';
+ $current = '';
+ foreach ($headers as $header) {
+ if (strpos($header, 'From:') === 0) {
+ $from_header = $header;
+ $current = 'from_header';
+ } elseif (strpos($header, 'To:') === 0) {
+ $to_header = $header;
+ $current = 'to_header';
+ } else {
+ if (!empty($$current) && strpos($header, ' =?') === 0) {
+ $$current .= $header;
+ } else {
+ $current = '';
+ }
+ }
+ }
+ $from = str_replace('|', '=7C', $this->DKIM_QP($from_header));
+ $to = str_replace('|', '=7C', $this->DKIM_QP($to_header));
+ $subject = str_replace(
+ '|',
+ '=7C',
+ $this->DKIM_QP($subject_header)
+ ); // Copied header fields (dkim-quoted-printable)
+ $body = $this->DKIM_BodyC($body);
+ $DKIMlen = strlen($body); // Length of body
+ $DKIMb64 = base64_encode(pack('H*', sha1($body))); // Base64 of packed binary SHA-1 hash of body
+ if ('' == $this->DKIM_identity) {
+ $ident = '';
+ } else {
+ $ident = ' i=' . $this->DKIM_identity . ';';
+ }
+ $dkimhdrs = 'DKIM-Signature: v=1; a=' .
+ $DKIMsignatureType . '; q=' .
+ $DKIMquery . '; l=' .
+ $DKIMlen . '; s=' .
+ $this->DKIM_selector .
+ ";\r\n" .
+ "\tt=" . $DKIMtime . '; c=' . $DKIMcanonicalization . ";\r\n" .
+ "\th=From:To:Subject;\r\n" .
+ "\td=" . $this->DKIM_domain . ';' . $ident . "\r\n" .
+ "\tz=$from\r\n" .
+ "\t|$to\r\n" .
+ "\t|$subject;\r\n" .
+ "\tbh=" . $DKIMb64 . ";\r\n" .
+ "\tb=";
+ $toSign = $this->DKIM_HeaderC(
+ $from_header . "\r\n" . $to_header . "\r\n" . $subject_header . "\r\n" . $dkimhdrs
+ );
+ $signed = $this->DKIM_Sign($toSign);
+ return $dkimhdrs . $signed . "\r\n";
+ }
+
+ /**
+ * Allows for public read access to 'to' property.
+ * @access public
+ * @return array
+ */
+ public function getToAddresses()
+ {
+ return $this->to;
+ }
+
+ /**
+ * Allows for public read access to 'cc' property.
+ * @access public
+ * @return array
+ */
+ public function getCcAddresses()
+ {
+ return $this->cc;
+ }
+
+ /**
+ * Allows for public read access to 'bcc' property.
+ * @access public
+ * @return array
+ */
+ public function getBccAddresses()
+ {
+ return $this->bcc;
+ }
+
+ /**
+ * Allows for public read access to 'ReplyTo' property.
+ * @access public
+ * @return array
+ */
+ public function getReplyToAddresses()
+ {
+ return $this->ReplyTo;
+ }
+
+ /**
+ * Allows for public read access to 'all_recipients' property.
+ * @access public
+ * @return array
+ */
+ public function getAllRecipientAddresses()
+ {
+ return $this->all_recipients;
+ }
+
+ /**
+ * Perform a callback.
+ * @param boolean $isSent
+ * @param array $to
+ * @param array $cc
+ * @param array $bcc
+ * @param string $subject
+ * @param string $body
+ * @param string $from
+ */
+ protected function doCallback($isSent, $to, $cc, $bcc, $subject, $body, $from)
+ {
+ if (!empty($this->action_function) && is_callable($this->action_function)) {
+ $params = array($isSent, $to, $cc, $bcc, $subject, $body, $from);
+ call_user_func_array($this->action_function, $params);
+ }
+ }
+}
+
+/**
+ * PHPMailer exception handler
+ * @package PHPMailer
+ */
+class phpmailerException extends Exception
+{
+ /**
+ * Prettify error message output
+ * @return string
+ */
+ public function errorMessage()
+ {
+ $errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n";
+ return $errorMsg;
+ }
+}
diff --git a/mayor-orig/www/include/share/net/rest.php b/mayor-orig/www/include/share/net/rest.php
new file mode 100644
index 00000000..beace19a
--- /dev/null
+++ b/mayor-orig/www/include/share/net/rest.php
@@ -0,0 +1,188 @@
+<?php
+
+$HTTP_STATUS = array(
+ 100 => array('txt'=>'Continue', 'class'=>'Informational'),
+ 101 => array('txt'=>'Switching Protocols', 'class'=>'Informational'),
+ 200 => array('txt'=>'OK', 'class'=>'Successful'),
+ 201 => array('txt'=>'Created', 'class'=>'Successful'),
+ 202 => array('txt'=>'Accepted', 'class'=>'Successful'),
+ 203 => array('txt'=>'Non-Authoritative Information', 'class'=>'Successful'),
+ 204 => array('txt'=>'No Content', 'class'=>'Successful'),
+ 205 => array('txt'=>'Reset Content', 'class'=>'Successful'),
+ 206 => array('txt'=>'Partial Content', 'class'=>'Successful'),
+ 300 => array('txt'=>'Multiple Choices', 'class'=>'Redirection'),
+ 301 => array('txt'=>'Moved Permanently', 'class'=>'Redirection'),
+ 302 => array('txt'=>'Found', 'class'=>'Redirection'),
+ 303 => array('txt'=>'See Other', 'class'=>'Redirection'),
+ 304 => array('txt'=>'Not Modified', 'class'=>'Redirection'),
+ 305 => array('txt'=>'Use Proxy', 'class'=>'Redirection'),
+ 306 => array('txt'=>'(Unused)', 'class'=>'Redirection'),
+ 307 => array('txt'=>'Temporary Redirect', 'class'=>'Redirection'),
+ 400 => array('txt'=>'Bad Request', 'class'=>'Client Error'),
+ 401 => array('txt'=>'Unauthorized', 'class'=>'Client Error'),
+ 402 => array('txt'=>'Payment Required', 'class'=>'Client Error'),
+ 403 => array('txt'=>'Forbidden', 'class'=>'Client Error'),
+ 404 => array('txt'=>'Not Found', 'class'=>'Client Error'),
+ 405 => array('txt'=>'Method Not Allowed', 'class'=>'Client Error'),
+ 406 => array('txt'=>'Not Acceptable', 'class'=>'Client Error'),
+ 407 => array('txt'=>'Proxy Authentication Required', 'class'=>'Client Error'),
+ 408 => array('txt'=>'Request Timeout', 'class'=>'Client Error'),
+ 409 => array('txt'=>'Conflict', 'class'=>'Client Error'),
+ 410 => array('txt'=>'Gone', 'class'=>'Client Error'),
+ 411 => array('txt'=>'Length Required', 'class'=>'Client Error'),
+ 412 => array('txt'=>'Precondition Failed', 'class'=>'Client Error'),
+ 413 => array('txt'=>'Request Entity Too Large', 'class'=>'Client Error'),
+ 414 => array('txt'=>'Request-URI Too Long', 'class'=>'Client Error'),
+ 415 => array('txt'=>'Unsupported Media Type', 'class'=>'Client Error'),
+ 416 => array('txt'=>'Requested Range Not Satisfiable', 'class'=>'Client Error'),
+ 417 => array('txt'=>'Expectation Failed', 'class'=>'Client Error'),
+ 500 => array('txt'=>'Internal Server Error', 'class'=>'Server Error'),
+ 501 => array('txt'=>'Not Implemented', 'class'=>'Server Error'),
+ 502 => array('txt'=>'Bad Gateway', 'class'=>'Server Error'),
+ 503 => array('txt'=>'Service Unavailable', 'class'=>'Server Error'),
+ 504 => array('txt'=>'Gateway Timeout', 'class'=>'Server Error'),
+ 505 => array('txt'=>'HTTP Version Not Supported', 'class'=>'Server Error')
+);
+
+/**
+ * REST hívás JSON kódolt adatokkal
+ * $url - a resource azonsosító
+ * $verb - GET (lekérdezés), POST (módosítás), DELETE (törlés)
+ * $params - azátadandó paraméterek asszociatív tömbje
+**/
+
+function restRequest($url, $verb, $params) {
+ $header = array(
+ 'Accept: text/plain',
+ 'Content-Type: application/json',
+ );
+ $params['name'] = 'Naplo';
+ $forcePostParams = ($verb != 'GET'); // A SuliX megvalósítás POST paraméterként (tehát a message body-ban) várja a paramétereket
+ return rest_helper($url, array(json_encode($params, JSON_FORCE_OBJECT)), $verb, 'json', $header, $forcePostParams);
+}
+
+/**
+ * Általános REST hívás megadható metódussal, visszatérési érték:
+ * $ret [http]
+ * [status]
+ * [header][-indexed-]
+ * [result][-asszoc-]
+**/
+function rest_helper($url, $params = null, $verb = 'GET', $format = 'json', $header = array(), $forcePostParams = false) {
+
+ $cparams = array(
+ 'http' => array(
+ 'method' => $verb,
+ 'header' => implode("\r\n", $header),
+ 'ignore_errors' => true
+ )
+ );
+ if ($params !== null) {
+ $params = http_build_query($params);
+ if ($verb == 'POST' || $forcePostParams === true) {
+ $cparams['http']['content'] = $params;
+ } else {
+ $url .= '?' . $params;
+ }
+ }
+
+ $context = stream_context_create($cparams);
+ $fp = fopen($url, 'rb', false, $context);
+
+ if (!$fp) {
+ $res = false;
+ } else {
+ $meta = stream_get_meta_data($fp);
+ $ret['http']['status'] = explode(' ', $meta['wrapper_data'][0])[1];
+ for ($i = 1; $i < count($meta['wrapper_data']); $i++) {
+ $tmp = explode(': ', $meta['wrapper_data'][$i]);
+ $ret['http']['header'][ $tmp[0] ] = $tmp[1];
+ }
+ //var_dump($meta['wrapper_data']);
+ $res = stream_get_contents($fp);
+ }
+
+ if ($res === false) {
+ throw new Exception("$verb $url failed: $php_errormsg");
+ }
+
+ switch ($format) {
+ case 'json':
+ $ret['result'] = json_decode($res, true);
+ if ($ret['result'] === null) {
+ throw new Exception("failed to decode $res as json");
+ }
+ return $ret;
+
+ case 'xml':
+ $ret['result'] = simplexml_load_string($res);
+ if ($ret['result'] === null) {
+ throw new Exception("failed to decode $res as xml");
+ }
+ return $ret;
+ }
+ $ret['result'] = $res;
+ return $ret;
+}
+
+/*
+
+// http://wezfurlong.org/blog/2006/nov/http-post-from-php-without-curl/
+// Az eredeti kód...
+
+function rest_helper($url, $params = null, $verb = 'GET', $format = 'json')
+{
+ $cparams = array(
+ 'http' => array(
+ 'method' => $verb,
+ 'ignore_errors' => true
+ )
+ );
+ if ($params !== null) {
+ $params = http_build_query($params);
+ if ($verb == 'POST') {
+ $cparams['http']['content'] = $params;
+ } else {
+ $url .= '?' . $params;
+ }
+ }
+
+ $context = stream_context_create($cparams);
+ $fp = fopen($url, 'rb', false, $context);
+ if (!$fp) {
+ $res = false;
+ } else {
+ // If you're trying to troubleshoot problems, try uncommenting the
+ // next two lines; it will show you the HTTP response headers across
+ // all the redirects:
+ $meta = stream_get_meta_data($fp);
+ var_dump($meta['wrapper_data'][0]);
+ $res = stream_get_contents($fp);
+ }
+
+ if ($res === false) {
+ throw new Exception("$verb $url failed: $php_errormsg");
+ }
+
+ switch ($format) {
+ case 'json':
+ $r = json_decode($res);
+ if ($r === null) {
+ throw new Exception("failed to decode $res as json");
+ }
+ return $r;
+
+ case 'xml':
+ $r = simplexml_load_string($res);
+ if ($r === null) {
+ throw new Exception("failed to decode $res as xml");
+ }
+ return $r;
+ }
+ return $res;
+}
+
+*/
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/share/net/upload.php b/mayor-orig/www/include/share/net/upload.php
new file mode 100644
index 00000000..a909f6c2
--- /dev/null
+++ b/mayor-orig/www/include/share/net/upload.php
@@ -0,0 +1,58 @@
+<?php
+
+function mayorFileUpload($WHERE) {
+
+try {
+
+ // Undefined | Multiple Files | $_FILES Corruption Attack
+ // If this request falls under any of them, treat it invalid.
+ if (
+ !isset($_FILES['upfile']['error']) ||
+ is_array($_FILES['upfile']['error'])
+ ) {
+ throw new RuntimeException('Paraméter hiba!');
+ }
+
+ // Check $_FILES['upfile']['error'] value.
+ switch ($_FILES['upfile']['error']) {
+ case UPLOAD_ERR_OK:
+ break;
+ case UPLOAD_ERR_NO_FILE:
+ throw new RuntimeException('Nincs megadott file.');
+ case UPLOAD_ERR_INI_SIZE:
+ case UPLOAD_ERR_FORM_SIZE:
+ throw new RuntimeException('FileSize limit hiba!');
+ default:
+ throw new RuntimeException('Valami hiba...');
+ }
+
+ // You should also check filesize here.
+ if ($_FILES['upfile']['size'] > 1000000) {
+ throw new RuntimeException('Túl nagy a file!');
+ }
+
+ $finfo = new finfo(FILEINFO_MIME_TYPE);
+ if (false === $ext = array_search(
+ $finfo->file($_FILES['upfile']['tmp_name']),
+ array(
+ 'jpg' => 'image/jpeg',
+ 'png' => 'image/png',
+ 'gif' => 'image/gif',
+ ),
+ true
+ )) {
+ throw new RuntimeException('Nem kép!');
+ }
+
+ // You should name it uniquely.
+ // DO NOT USE $_FILES['upfile']['name'] WITHOUT ANY VALIDATION !!
+ // On this example, obtain safe unique name from its binary data.
+ if (!move_uploaded_file($_FILES['upfile']['tmp_name'],$WHERE['subdir'].'/'.$WHERE['filename'])) {
+ throw new RuntimeException('Nem tudtuk átmozgatni. Van jogunk írni a célkönyvtárba?');
+ }
+
+ } catch (RuntimeException $e) {
+ $_SESSION['alert'][] = 'info::'.$e->getMessage();
+ }
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/share/print/pdf.php b/mayor-orig/www/include/share/print/pdf.php
new file mode 100644
index 00000000..41fe55c8
--- /dev/null
+++ b/mayor-orig/www/include/share/print/pdf.php
@@ -0,0 +1,270 @@
+<?php
+
+ if(function_exists('exec')==false) {
+ $_SESSION['alert'][] = 'info:php config error:A nyomtatás nem működik. Az exec függvényhívás kikapcsolva!';
+ }
+
+ function fileNameNormal($fileName) {
+ $search = array('&','|','/',' ','\'','"',',','?','!','<','>'); // a . engedélyezett
+ $replace = array('_','_','_','_','_','_','_','_','_','_','_','_');
+ return str_replace($search,$replace,$fileName);
+ }
+
+ function pdfLaTeX($TeX, $fileName) { // Beszúrt képekkel problémája van a pdflatex-nek
+
+ global $policy, $page, $sub, $f;
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'.tex"');
+ return true;
+
+ }
+
+ function pdfLaTeXTwice($TeX, $fileName) { // Pl. longtable miatt kétszer kell futtatni...
+
+ global $policy, $page, $sub, $f;
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'.tex"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'.tex"');
+ return true;
+
+ }
+
+ function pdfLaTeXA4($TeX, $fileName) { // TeX --> DVI --> PS --> PDF - így jók a képek
+
+ global $policy, $page, $sub, $f;
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = @fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'-A4.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+// exec('cd '.$dir.' && pdflatex -output-directory '.$dir.' '.$dir.'/'.$fileName.'-A4.tex');
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && latex "'.$dir.'/'.$fileName.'.tex"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && dvips -R0 -t a4 "'.$dir.'/'.$fileName.'.dvi"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && ps2pdf "'.$dir.'/'.$fileName.'.ps"');
+
+ return true;
+
+ }
+
+ function pdfLaTeXA4Split($TeX, $fileName) { // TeX --> DVI --> PS --> PDF --> pdftk --> zip - lapokra szétvágott
+
+ global $policy, $page, $sub, $f;
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = @fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'-A4.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && latex "'.$dir.'/'.$fileName.'.tex"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && dvips -R0 -t a4 "'.$dir.'/'.$fileName.'.dvi"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && ps2pdf "'.$dir.'/'.$fileName.'.ps"');
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && mkdir -p '.$dir.'/'.$fileName);
+ exec('HOME=/tmp && export HOME && cd '.$dir.'/'.$fileName.' && pdftk ../'.$fileName.'.pdf burst');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && zip -r '.$fileName.'.zip '.$fileName );
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && rm -r '.$dir.'/'.$fileName);
+
+ return true;
+
+ }
+
+
+ function pdfLaTeXA5($TeX, $fileName) {
+
+ global $policy, $page, $sub, $f;
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = fopen($dir.'/'.$fileName.'-A5.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'-A5.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+// exec('cd '.$dir.' && pdflatex -output-directory '.$dir.' '.$dir.'/'.$fileName.'-A5.tex');
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && latex "'.$dir.'/'.$fileName.'-A5.tex"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && dvips -R0 -t a5 "'.$dir.'/'.$fileName.'-A5.dvi"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && ps2pdf "'.$dir.'/'.$fileName.'-A5.ps"');
+
+ $TeX = '\documentclass[a4paper,landscape,10pt]{article}'."\n";
+ $TeX .= '\usepackage[final]{pdfpages}'."\n";
+ $TeX .= '\begin{document}'."\n";
+ $TeX .= '\includepdf[nup=2x1, pages={-}]{'.$dir.'/'.$fileName.'-A5.pdf}'."\n";
+ $TeX .= '\end{document}'."\n";
+
+ $ftex = fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && rm "'.$dir.'/'.$fileName.'.aux"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'.tex"');
+
+ return true;
+
+ }
+
+ function pdfLaTeXA5Booklet($TeX, $fileName) {
+
+ global $policy, $page, $sub, $f;
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = fopen($dir.'/'.$fileName.'-A5.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'-A5.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+// exec('cd '.$dir.' && pdflatex -output-directory '.$dir.' '.$dir.'/'.$fileName.'-A5.tex');
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && latex "'.$dir.'/'.$fileName.'-A5.tex"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && dvips -R0 -t a5 "'.$dir.'/'.$fileName.'-A5.dvi"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && ps2pdf "'.$dir.'/'.$fileName.'-A5.ps"');
+
+ $TeX = '\documentclass[a4paper,landscape,10pt]{article}'."\n";
+ $TeX .= '\usepackage[final]{pdfpages}'."\n";
+ $TeX .= '\begin{document}'."\n";
+ $TeX .= '\includepdf[nup=2x1, pages={-}, signature*=4]{'.$dir.'/'.$fileName.'-A5.pdf}'."\n";
+ $TeX .= '\end{document}'."\n";
+
+ $ftex = fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && rm "'.$dir.'/'.$fileName.'.aux"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'.tex"');
+
+ return true;
+
+ }
+
+ function pdfLaTeXA5Booklets($TeX, $fileName) {
+
+ global $policy, $page, $sub, $f;
+
+ define('__A5BOOKLETSCUTHERE','%%% cut here %%%');
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = fopen($dir.'/'.$fileName.'-A5.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'-A5.tex';
+ return false;
+ }
+ // A forrást szétvágjuk több darabba a "%%% cut here %%%" string mentén
+ $T[] = explode(__A5BOOKLETSCUTHERE, $TeX);
+// Itt tart a félkész fejlesztés... :)
+ fputs($ftex, $TeX);
+ fclose($ftex);
+// exec('cd '.$dir.' && pdflatex -output-directory '.$dir.' '.$dir.'/'.$fileName.'-A5.tex');
+
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && latex "'.$dir.'/'.$fileName.'-A5.tex"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && dvips -R0 -t a5 "'.$dir.'/'.$fileName.'-A5.dvi"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && ps2pdf "'.$dir.'/'.$fileName.'-A5.ps"');
+
+ $TeX = '\documentclass[a4paper,landscape,10pt]{article}'."\n";
+ $TeX .= '\usepackage[final]{pdfpages}'."\n";
+ $TeX .= '\begin{document}'."\n";
+ $TeX .= '\includepdf[nup=2x1, pages={-}, signature*=4]{'.$dir.'/'.$fileName.'-A5.pdf}'."\n";
+ $TeX .= '\end{document}'."\n";
+
+ $ftex = fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && rm "'.$dir.'/'.$fileName.'.aux"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'.tex"');
+
+ return true;
+
+ }
+
+
+
+ function pdfLaTeXA6($TeX, $fileName) {
+
+ global $policy, $page, $sub, $f;
+
+ $dir = _DOWNLOADDIR."/$policy/$page/$sub/$f";
+
+ // könyvtár ellenőrzése
+ $ftex = fopen($dir.'/'.$fileName.'-A6.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'-A6.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'-A6.tex"');
+
+ $TeX = '\documentclass[a4paper,10pt]{article}'."\n";
+ $TeX .= '\usepackage[final]{pdfpages}'."\n";
+ $TeX .= '\begin{document}'."\n";
+ $TeX .= '\includepdf[nup=2x2, pages={-}]{'.$dir.'/'.$fileName.'-A6.pdf}'."\n";
+ $TeX .= '\end{document}'."\n";
+
+ $ftex = fopen($dir.'/'.$fileName.'.tex', 'w');
+ if (!$ftex) {
+ $_SESSION['alert'][] = 'message:file_write_failure:'.$dir.'/'.$fileName.'.tex';
+ return false;
+ }
+ fputs($ftex, $TeX);
+ fclose($ftex);
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && rm "'.$dir.'/'.$fileName.'.aux"');
+ exec('HOME=/tmp && export HOME && cd '.$dir.' && pdflatex -output-directory '.$dir.' "'.$dir.'/'.$fileName.'.tex"');
+
+ return true;
+
+ }
+
+?>
diff --git a/mayor-orig/www/include/share/session/accountInfo.php b/mayor-orig/www/include/share/session/accountInfo.php
new file mode 100644
index 00000000..104416ec
--- /dev/null
+++ b/mayor-orig/www/include/share/session/accountInfo.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ Modules: share/session
+
+ function getAccountInfo($userAccount, $toPolicy = '') {
+ function getUserInfo($userAccount, $toPolicy = '') {
+
+*/
+
+######################################################
+# getAccountInfo - felhasználói információk (backend)
+######################################################
+
+ function getAccountInfo($userAccount, $toPolicy = _POLICY, $SET=array('justThese'=>'*', 'withNewAccounts' => true)) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/accountInfo.php');
+ $func = $AUTH[$toPolicy]['backend'].'GetAccountInfo';
+ return $func($userAccount, $toPolicy, $SET);
+
+
+ }
+
+##########################################################
+# getUserInfo - felhasználói információk (keretrendszer)
+##########################################################
+
+ function getUserInfo($userAccount, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/accountInfo.php');
+ $func = $AUTH[$toPolicy]['backend'].'GetUserInfo';
+ return $func($userAccount, $toPolicy);
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/share/session/attrs.php b/mayor-orig/www/include/share/session/attrs.php
new file mode 100644
index 00000000..c7ebafb7
--- /dev/null
+++ b/mayor-orig/www/include/share/session/attrs.php
@@ -0,0 +1,63 @@
+<?php
+/*
+ Module: useradmin
+
+ Minden auth-típus esetén lekérdezhető kell legyen az alábbi néhány attribútum.
+ Az egyes backend-ek esetén ezek kiegészülhetnek további attribútumokkal.
+
+ Az attribútumokhoz tartozik egy adott nyelvű elnevezés (desc) és egy típus (type),
+ ami alapján megjelenítjük, beolvassuk, módosítjuk, stb...
+
+ Esetleg ez a tömb használható arra is, hogy az egyes attribútumok hozzáférési jogosultságait
+ később megadjuk... (lásd LDAP backend)
+
+*/
+
+// global $attrDescription, $attrView, $unicodeAttrs, $timestampAttrs, $memberTypes;
+
+ $accountAttrs = array(
+// -- kötelező --
+ 'userAccount',
+ 'userCn',
+ 'userPassword',
+// -- lekérdezhető, opcionális --
+ 'uidNumber',
+ 'mail',
+ 'telephoneNumber',
+ 'studyId',
+ 'shadowLastChange',
+ 'shadowMin',
+ 'shadowMax',
+ 'shadowWarning',
+ 'shadowInactive',
+ 'shadowExpire'
+ );
+
+ $groupAttrs = array(
+ 'groupCn',
+ 'groupDesc',
+ 'member',
+ );
+
+ $attrDef = array(
+ 'userAccount' => array('desc' => _ATTR_USERACCOUNT, 'type' => 'text'),
+ 'userCn' => array('desc' => _ATTR_USERCN, 'type' => 'text'),
+ 'userPassword' => array('desc' => _ATTR_USERPASSWORD, 'type' => 'text'),
+ 'uidNumber' => array('desc' => _ATTR_UIDNUMBER, 'type' => 'text'),
+ 'mail' => array('desc' => _ATTR_MAIL, 'type' => 'text'),
+ 'telephoneNumber' => array('desc' => _ATTR_TELEPHONENUMBER, 'type' => 'text'),
+ 'studyId' => array('desc' => _ATTR_STUDYID, 'type' => 'text'),
+ 'shadowLastChange' => array('desc' => _ATTR_SHADOWLASTCHANGE, 'type' => 'text'),
+ 'shadowMin' => array('desc' => _ATTR_SHADOWMIN, 'type' => 'text'),
+ 'shadowMax' => array('desc' => _ATTR_SHADOWMAX, 'type' => 'text'),
+ 'shadowWarning' => array('desc' => _ATTR_SHADOWWARNING, 'type' => 'text'),
+ 'shadowInactive' => array('desc' => _ATTR_SHADOWINACTIVE, 'type' => 'text'),
+ 'shadowExpire' => array('desc' => _ATTR_SHADOWEXPIRE, 'type' => 'text'),
+ 'groupCn' => array('desc' => _ATTR_GROUPCN, 'type' => 'text'),
+ 'groupDesc' => array('desc' => _ATTR_GROUPDESC, 'type' => 'text'),
+ 'member' => array('desc' => _ATTR_MEMBER, 'type' => 'select'),
+ );
+
+
+
+?>
diff --git a/mayor-orig/www/include/share/session/base.php b/mayor-orig/www/include/share/session/base.php
new file mode 100644
index 00000000..706a9ef9
--- /dev/null
+++ b/mayor-orig/www/include/share/session/base.php
@@ -0,0 +1,171 @@
+<?php
+/*
+ Module: base/session
+ Megjegyzés: a base-ből minden oldalletöltésnél betöltődik
+*/
+ define('_ADMIN_ACCESS', 0);
+ define('_SELF_ACCESS', 1);
+ define('_OTHER_ACCESS', 2);
+
+ $AUTH['my']['categories'] = getAccountCategories(_USERACCOUNT, _POLICY); // a függvény itt deklarált
+
+ ######################################################
+ # Az aktuális policy backend-jének alapvető session-kezelése. Csatoljuk be, vagy üzenjünk hibát
+ ######################################################
+
+ if (file_exists('include/backend/'.$AUTH[_POLICY]['backend'].'/session/base.php'))
+ require_once('include/backend/'.$AUTH[_POLICY]['backend'].'/session/base.php');
+ else
+ $_SESSION['alert'][] = 'page:file_not_found:'.'include/backend/'.$AUTH[_POLICY]['backend'].'/session/base.php';
+
+/* Függvények */
+
+/*
+ function memberOf($userAccount, $group, $toPolicy = _POLICY)
+
+ a függvény becsatolja a backend-nek megfelelő modul filet és használja a [backend]MemberOf() függvényt
+
+ function getAccountCategories($userAccount = '', $toPolicy = _POLICY)
+
+ a függvény lekérdezi a policy globális configfilejában megadott lehető kategóriákba userAccount bele tartozik-e
+ használja: memberOf()
+
+
+ --
+ function getBackendAttrs($type = 'Account', $toPolicy = _POLICY)
+ function getFailedLoginCount($uid, $sinceDt, $lr='')
+ function getLastLoginDt($uid, $lr='')
+*/
+
+######################################################
+# memberOf - csoport tag-e - session modul
+######################################################
+
+ function memberOf($userAccount, $group, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($AUTH[$toPolicy]['cacheable']=='yes' && $userAccount == _USERACCOUNT) {
+ $r = _queryCache('mOf:'.$group,$toPolicy,'value');
+ if (!is_null($r)) {
+ if ($r=='1') $return = true;
+ elseif ($r=='0') $return = false;
+ }
+ }
+
+ if (is_null($return)) {
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/base.php');
+ $func = $AUTH[$toPolicy]['backend'].'MemberOf';
+ $return = $func($userAccount, $group, $toPolicy);
+
+ if ($AUTH[$toPolicy]['cacheable']=='yes' && $userAccount == _USERACCOUNT)
+ _registerToCache('mOf:'.$group, (($return == true) ? '1':'0'), $toPolicy);
+ }
+
+ return $return;
+
+ }
+
+######################################################
+# getCategories - felhasználó besorolása(i) - session modul
+######################################################
+ function getAccountCategories($userAccount = '', $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($userAccount == '') $userAccount = _USERACCOUNT;
+
+ if ($AUTH[$toPolicy]['cacheable']=='yes' && $userAccount == _USERACCOUNT) {
+ $cacheable = true;
+ _maintainCache();
+ $r = _queryCache('aCat', $toPolicy);
+ for ($i=0; $i<count($r); $i++) { // valójában csak egy érték lehet, de azért bent hagyjuk a ciklust
+ $_eArr[] = $r[$i]['ertek'];
+ $_eArr = explode(';',$r[$i]['ertek']);
+ if (is_array($_eArr)) $return = $_eArr;
+ else $return[] = $_eArr;
+ }
+ } else $cacheable = false;
+ if (count($r)>0) return $return;
+ else {
+ $return = array();
+ if (is_array($AUTH[$toPolicy]['categories']))
+ foreach ($AUTH[$toPolicy]['categories'] as $key => $category) {
+ if (memberOf($userAccount, $category, $toPolicy)) {
+ $return[] = $category;
+ }
+ if ($cacheable) _registerToCache('aCat',implode(';',$return),$toPolicy); // ha több csoport tagja is, ";"
+ }
+ return $return;
+ }
+ }
+
+ function _queryCache($kulcs, $policy, $rType="indexed") {
+ $v = array(_SESSIONID,$kulcs,$policy);
+ return db_query("SELECT `ertek` FROM `cache` WHERE sessionID='%s' AND dt>NOW() - INTERVAL 5 MINUTE AND `kulcs`='%s' AND policy='%s'", array('fv' => 'getAccountCategories', 'modul' => 'login', 'result' => $rType, 'values'=>$v));
+ }
+
+ function _registerToCache($kulcs,$ertek,$policy) {
+ $v = array(_SESSIONID,$policy,$kulcs,$ertek);
+ db_query("REPLACE INTO `cache` (sessionID,policy,kulcs,ertek,dt) VALUES ('%s','%s','%s','%s',NOW())", array('fv' => 'cache', 'modul' => 'login', 'result' => 'indexed', 'values'=>$v));
+ }
+
+ function _maintainCache() {
+ $q = "DELETE FROM `cache` WHERE dt<NOW() - INTERVAL 5 MINUTE";
+ db_query($q, array('fv' => 'cache', 'modul' => 'login', 'result' => 'indexed', 'values'=>$v));
+ }
+
+
+
+
+
+######################################################
+# getBackendAttrs - az adott policy backend-jéhez tartozó attribútumok - session modul
+######################################################
+
+ function getBackendAttrs($type = 'Account', $toPolicy = _POLICY) {
+
+ global $AUTH;
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/base.php');
+
+ global $AUTH;
+ $attrArrayName = $AUTH[$toPolicy]['backend'].$type.'AttrDef';
+ global $$attrArrayName;
+ $backendAttrDef = $$attrArrayName;
+
+ // Válogassuk ki az olvasható attribútumokat
+ reset($backendAttrDef);
+ foreach ($backendAttrDef as $attr => $def) {
+
+ if (!isset($def['rights']) || $def['rights'] == '') {
+ $rigths = _DEFAULT_LDAP_RIGHTS; //LDAP???
+ $backendAttrDef[$attr]['rights'] = $rights;
+ } else $rights = $def['rights'];
+
+ if ($rights[_ACCESS_AS] != '-') $attrList[] = $attr;
+
+ }
+ return array($attrList,$backendAttrDef);
+
+ }
+
+######################################################################
+# Utolsó bejelentkezés dátuma
+######################################################################
+
+ function getLastLoginDt($toPolicy, $userAccount=_USERACCOUNT, $lr = null) {
+ $q = "SELECT dt FROM loginLog WHERE policy='%s' AND userAccount='%s' AND flag=0 ORDER BY dt DESC LIMIT 1";
+ return db_query($q , array('fv' => 'getLastLoginDt', 'modul' => 'login', 'result' => 'value', 'values' => array($toPolicy,$userAccount)), $lr);
+ }
+
+######################################################################
+# Hibás bejelentkezések száma, a legutolsó sikeres bejelentkezés óta
+######################################################################
+
+ function getFailedLoginCount($toPolicy, $userAccount=_USERACCOUNT, $lr = null) {
+ if ($sinceDt == '') $sinceDt = getLastLoginDt($toPolicy, $userAccount, $lr);
+ $q = "SELECT COUNT(*) AS db FROM loginLog WHERE policy='%s' AND userAccount='%s' AND dt>'%s' AND flag>0";
+ return db_query($q , array('fv' => 'getFailedLoginCount', 'modul' => 'login', 'result' => 'value', 'values' => array($toPolicy, $userAccount, $sinceDt)), $lr);
+ }
+
+?>
diff --git a/mayor-orig/www/include/share/session/close.php b/mayor-orig/www/include/share/session/close.php
new file mode 100644
index 00000000..146a038e
--- /dev/null
+++ b/mayor-orig/www/include/share/session/close.php
@@ -0,0 +1,96 @@
+<?php
+/*
+ Modules: base/session
+
+ Az alábbi függvények nem ellenőrzik, hogy van-e jogunk a használatukhoz!
+ At ellenőrzés az őket hívó program feladata.
+ A visszatérési érték a törölt sorok száma, illetve -1, ha sikertelen a törlés (ld. php kézikönyv)
+
+ function closeSession($sessionID = '')
+ function closeUserSessions($userAccount = '', $policy = '')
+*/
+
+##########################################################
+# Kitörli az összes lejart session-höz tartozó bejegyzést (policy-től függetlenül).
+##########################################################
+
+ function closeIdleSessions() {
+ if (defined('_SESSION_MAX_IDLE_TIME') and _SESSION_MAX_IDLE_TIME > 0) {
+ $q = "DELETE FROM session WHERE activity + INTERVAL "._SESSION_MAX_IDLE_TIME." HOUR < NOW()";
+ return db_query($q, array('fv' => 'closeIdleSessions', 'modul' => 'login', 'result' => 'affected rows'));
+ } else {
+ return true;
+ }
+ }
+
+##########################################################
+# Kitörli az összes adott session-höz tartozó bejegyzést (policy-től függetlenül).
+##########################################################
+
+ function closeSession($sessionID = '') {
+ // _SESSIONID csak validUser esetén van, de mi lehet, hogy másik policy-ből jöttünk!
+ if ($sessionID == '') $sessionID = $_REQUEST['sessionID'];
+ $q = "DELETE FROM session WHERE sessionID='%s'";
+ return db_query($q, array('fv' => 'closeSession', 'modul' => 'login', 'result' => 'affected rows', 'values' => array($sessionID)));
+ }
+
+##########################################################
+# Kitörli az összes adott userAccount/policy-hez tartozó bejegyzést( (esetleg több sessionID-t is).
+##########################################################
+
+ function closeUserSessions($userAccount = '', $policy = '') {
+ if ($userAccount == '') $userAccount = _USERACCOUNT;
+ if ($policy == '') $policy = _POLICY;
+ $q = "DELETE FROM session WHERE userAccount='%s' and policy='%s'";
+ return db_query($q, array('fv' => 'closeUserSessions', 'modul' => 'login', 'result' => 'affected rows', 'values' => array($userAccount, $policy)));
+ }
+
+##########################################################
+# Kitörli az összes "elavult" session-t.
+##########################################################
+
+ function closeOldSessions() {
+ if (defined('_SESSION_MAX_TIME') and _SESSION_MAX_TIME > 0) {
+ $dt = date('Y-m-d H:i:s', mktime(date('H')-_SESSION_MAX_TIME,date('i'),date('s'),date('m'),date('d'),date('Y')));
+ $q = "DELETE FROM session WHERE dt<'%s'";
+ return db_query($q, array('fv' => 'closeOldSessions', 'modul' => 'login', 'result' => 'affected rows', 'values' => array($dt)));
+ }
+ }
+
+##########################################################
+# Kitörli az összes "elavult" és lejart session-t.
+##########################################################
+ function closeOldAndIdleSessions() {
+ if (
+ (defined('SESSION_MAX_TIME') and _SESSION_MAX_TIME > 0)
+ || (defined('_SESSION_MAX_IDLE_TIME') and _SESSION_MAX_IDLE_TIME > 0)
+ ) {
+
+ $q = ''; $v = array();
+ if (defined('_SESSION_MAX_TIME') and _SESSION_MAX_TIME > 0) {
+ $dt = date('Y-m-d H:i:s', mktime(date('H')-_SESSION_MAX_TIME,date('i'),date('s'),date('m'),date('d'),date('Y')));
+ $q = "DELETE FROM session WHERE dt<'%s'";
+ $v = array($dt);
+ }
+ if (defined('_SESSION_MAX_IDLE_TIME') and _SESSION_MAX_IDLE_TIME > 0) {
+ if ($q == '') $q = "DELETE FROM session WHERE activity + INTERVAL "._SESSION_MAX_IDLE_TIME." HOUR < NOW()";
+ else $q .= " OR activity + INTERVAL "._SESSION_MAX_IDLE_TIME." HOUR < NOW()";
+ }
+ if ($q == '') return true;
+ else return db_query($q, array('fv' => 'closeOldAndIdleSessions', 'modul' => 'login', 'result' => 'affected rows', 'values' => $v));
+
+ } else {
+ return true;
+ }
+
+ }
+
+##########################################################
+# Kitörli az összes session-t.
+##########################################################
+
+ function closeAllSession() {
+ return db_query("DELETE FROM session", array('fv' => 'closeAllSession', 'modul' => 'login', 'result' => 'affected rows'));
+ }
+
+?>
diff --git a/mayor-orig/www/include/share/ssl/ssl.php b/mayor-orig/www/include/share/ssl/ssl.php
new file mode 100644
index 00000000..0b6e2e04
--- /dev/null
+++ b/mayor-orig/www/include/share/ssl/ssl.php
@@ -0,0 +1,461 @@
+<?php
+/*
+
+ Küldés:
+
+ Fogadás:
+ skin=rpc
+ rights.php
+ require_once ssl.php
+ $_POST[senderNodeId] beolvasás
+ $RPC construct...
+ setRemoteNodeId
+ processRequest (sessionKey, request)
+ *-pre.php
+ getIncomingRequest ($request['func'])
+ prepareReply
+ _encodeRequest
+ setMyResponse
+ skin-rpc/base.phtml
+ global $RPC
+ echo $RPC->getResponse()
+
+ Küldés:
+ __construct
+ getSSLKeyPair
+ _genSessionKey
+ setRemoteNodeId
+ _setRemotePublicKey
+ getSslPublicKeyByNodeId
+ setRemoteHost (HOST, publicKey)
+ _setRemotePublicKey
+ setRequestTarget (PSF)
+ sendRequest
+ _prepareRequest
+ _encodeRequest($ADAT)
+ AES::encrypt !! json, base64 - nincs AES :(
+ _sessionKeyEncode
+ _curlGet --> response
+ _decodeRequest !! jelenleg csak json...
+ _sessionKeyDecode
+ json_decode - AES::decrypt
+*/
+
+ function getSslKeyPair() {
+ $q = "SELECT * FROM mayorSsl";
+ $r = db_query($q, array('fv'=>'getSslKeyPair','modul'=>'login','result'=>'record'));
+ if ($r=='') {
+ $SSLKeyPair = generateSSLKeyPair();
+ $secret = sha1(mt_rand(100000000000000,999999999999999));
+ $q = "INSERT INTO mayorSsl (privateKey,publicKey,secret) VALUES ('%s','%s','%s')";
+ $values = array($SSLKeyPair['privateKey'],$SSLKeyPair['publicKey'],$secret);
+ $r = db_query($q, array('fv'=>'getSslKeyPair','modul'=>'login', 'values'=>$values));
+ return $SSLKeyPair;
+ } else {
+ return $r;
+ }
+ }
+
+ function generateSSLKeyPair() {
+ $SSL_KEY_PAIR=openssl_pkey_new();
+ // Get private key
+ openssl_pkey_export($SSL_KEY_PAIR, $privatekey);
+ // Get public key
+ $publickey=openssl_pkey_get_details($SSL_KEY_PAIR);
+ $publickey=$publickey["key"];
+ return array('fv'=>'geneateSslKeyPair','privateKey'=>$privatekey,'publicKey'=>$publickey);
+ }
+ function setNodeId($nodeId, $publicKey) {
+ $q = "UPDATE mayorSsl SET nodeId=%u where publicKey='%s'";
+ $v = array($nodeId, $publicKey);
+ return db_query($q, array('debug'=>false,'fv'=>'setNodeId','modul'=>'login', 'values'=>$v));
+ }
+
+ function getSslPublicKey() {
+ $SSLKeyPair = getSslKeyPair();
+ return $SSLKeyPair['publicKey'];
+ }
+
+ function getSslPublicKeyByNodeId($nodeId) {
+ if (is_numeric($nodeId)) {
+ $q = "SELECT publicKey FROM mayorKeychain WHERE valid=1 AND nodeId='%u'";
+ $values = array($nodeId);
+ $result = db_query($q, array('debug'=>false,'fv'=>'getSslPublicKeyByNodeId','modul'=>'login', 'values'=>$values,'result'=>'value'));
+ if ($result=='') return false;
+ else return $result;
+ } else {
+ return false;
+ }
+ }
+
+ function getPublicDataFromLocalKeychain($nodeId) {
+ if (is_numeric($nodeId)) {
+ // lekérdezés a helyi adatbázisból
+ $q = "SELECT * FROM mayorKeychain WHERE valid=1 AND nodeId='%u'";
+ $values = array($nodeId);
+ $result = db_query($q, array('debug'=>false,'fv'=>'getPublicDataFromLocalKeychain','modul'=>'login', 'values'=>$values,'result'=>'record'));
+ if ($result=='') return false;
+ else return $result;
+ } elseif (is_null($nodeId)) {
+ // Az összes eltárolt node adatának lekérdezése
+ $q = "SELECT * FROM mayorKeychain WHERE valid=1 ORDER BY nodeTipus DESC, nev";
+ $result = db_query($q, array('debug'=>false,'fv'=>'getPublicDataFromLocalKeychain','modul'=>'login','result'=>'indexed'));
+ if ($result=='') return false;
+ else return $result;
+ }
+ }
+
+ function addPublicDataToLocalKeychain($DATA) {
+ // egy új rekord felvétele...
+ $fields = array_keys($DATA);
+ $values = array_values($DATA);
+ $q = "INSERT INTO mayorKeychain (".implode(',', array_fill(0, count($fields), "%s")).") VALUES (".implode(',', array_fill(0, count($values), "'%s'")).")";
+ $v = array_merge($fields, $values);
+ $r = db_query($q, array('debug'=>false,'func'=>'addPublicDataToLocalKeychain','modul'=>'login','values'=>$v,'result'=>'insert'));
+ return $r;
+ }
+ function removeNodeFromLocalKeychain($nodeId) {
+ $q = "DELETE FROM mayorKeychain WHERE nodeId=%u";
+ $v = array($nodeId);
+ $r = db_query($q, array('debug'=>false,'func'=>'removeNodeFromLocalKeychain','modul'=>'login','values'=>$v));
+ return $r;
+ }
+ function sendPublicRequest($data) {
+ if (defined('_DEVEL') && _DEVEL===true) $host = 'localhost';
+ else $host = 'www.mayor.hu';
+ $url = "https://$host/index.php?page=portal&sub=regisztracio&f=regisztracio&skin=ajax";
+ $salt_name='MS_'.sha1('portal_regisztracio_regisztracio');
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // a választ feldolgozzuk
+ curl_setopt($ch, CURLOPT_URL, $url);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYSTATUS, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // a helyi gépen nekem ez kellett :(
+ curl_setopt($ch, CURLOPT_HEADER, 0);
+// curl_setopt($ch, CURLOPT_TIMEOUT,60);
+ curl_setopt($ch, CURLOPT_USERAGENT, "MaYoR-registration (php; cURL)");
+ curl_setopt($ch, CURLOPT_VERBOSE, true);
+ // Cookie
+ curl_setopt($ch, CURLOPT_COOKIE, $salt_name.'=portal_regisztracio_regisztracio');
+ // POST
+ curl_setopt($ch, CURLOPT_POST, true);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
+
+ $response = curl_exec($ch);
+ $INFO = curl_getinfo($ch); // ha kell
+ if ($INFO['http_code'] == 200) { // minden ok
+ //dump($INFO['url']);
+ //dump("response:",$response);
+ } else {
+ echo '<a href="'.$url.'">URL</a>';
+ dump($INFO['http_code'],$response,$INFO);
+ throw new Exception($INFO['http_code']);
+ }
+ curl_close($ch);
+
+ return $response;
+ }
+
+//function base64url_encode($data) {
+// return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
+//}
+//function base64url_decode($data) {
+// return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT));
+//}
+function random_str($length, $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
+{
+ $str = '';
+ $max = mb_strlen($keyspace, '8bit') - 1;
+ for ($i = 0; $i < $length; ++$i) {
+ $str .= $keyspace[random_int(0, $max)];
+ }
+ return $str;
+}
+ /* symmetric cryptographic module */
+ class AES {
+
+ public function __construct() { }
+ public function encrypt($data, $key) {
+ $data = urlencode($data);
+
+// $return = $data;
+// $return = $key . $data;
+// $return = openssl_encrypt($data, 'aes-256-cbc', $key, OPENSSL_RAW_DATA);
+// $return = db_query("SELECT aes_encrypt('%s','%s')",array('fv'=>'class AES','result'=>'value','modul'=>'login','values'=>array($data,$key)));
+
+ if (function_exists('mcrypt_encrypt')) {
+ $return = mcrypt_encrypt(MCRYPT_RIJNDAEL_128,$key,$data,MCRYPT_MODE_CBC,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
+ } else {
+ $_SESSION['alert'][] = 'info:mcrypt függvény nem található (tipp! telepítsd a php5-mcrypt csomagot a szerverre)';
+ }
+ return base64_encode($return);
+ }
+ public function decrypt($data,$key) {
+ $data = base64_decode($data);
+
+// $return = $data;
+// $return = substr($data,strlen($key));
+// $return = openssl_decrypt($data, 'aes-256-cbc', $key, OPENSSL_RAW_DATA);
+// $return = db_query("SELECT aes_decrypt('%s','%s')",array('fv'=>'class AES','result'=>'value','modul'=>'login','values'=>array($data,$key)));
+ if (function_exists('mcrypt_decrypt')) {
+ $return = mcrypt_decrypt(MCRYPT_RIJNDAEL_128,$key,$data,MCRYPT_MODE_CBC,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
+ } else {
+ $_SESSION['alert'][] = 'info:mcrypt függvény nem található (tipp! telepítsd a php5-mcrypt csomagot a szerverre)';
+ }
+ return trim(urldecode($return));
+ }
+ }
+
+ class Interconnect {
+
+ /* A: küldő, B: fogadó használja */
+
+ private $sessionKey; // egy kommunikációhoz használt session kulcs
+ private $KP; // a saját kulcspárom
+ private $nodeId;
+ private $privateKey;
+ private $publicKey;
+ private $remotePublicKey;
+ private $remoteNodeId;
+ private $remoteHost;
+ private $psf;
+ private $myRequest; // a küldendő kérés (object)
+ private $myResponse; // a küldendő válasz (object)
+ private $incomingRequest; // a beérkező kérés (object)
+ private $incomingResponse; // a beérkező válasz (object)
+ private $status; // a művelet eredményességéek visszajelzése, hibaok kódja...
+ private $controllerNodeId = '09862967'; // Ez van jelenleg az adatbázisban...
+
+ /* Konstruktor */
+ public function __construct() {
+ $this->sessionKey = $this->_genSessionKey();
+ $this->KP = getSSLKeyPair();
+ $this->nodeId = $this->KP['nodeId'];
+ $this->privateKey = $this->KP['privateKey'];
+ $this->publicKey = $this->KP['publicKey'];
+ $this->status = 'ok:created';
+ $this->psf = 'page=rpc&f=rpc';
+ }
+ /* Privát metódusok */
+// private function _yconv($get) {
+// $get = str_replace(' ','+',$get); // hm. erre miért van szükség??? autokonverzió?
+// $get = str_replace('\/','/',$get); // hm. erre miért van szükség??? autokonverzió?
+// $get = str_replace('\\','',$get); // hm. erre miért van szükség??? autokonverzió?\"'
+// return $get;
+// }
+ private function _curlGet($data) {
+ $host = $this->remoteHost;
+ $url = $this->remoteHost."/index.php?skin=rpc&".$this->psf;
+ //dump('url',$url);
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // a választ feldolgozzuk
+ curl_setopt($ch, CURLOPT_URL, $url);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYSTATUS, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // a helyi gépen nekem ez kellett :(
+ curl_setopt($ch, CURLOPT_HEADER, 0);
+// curl_setopt($ch, CURLOPT_TIMEOUT,60);
+ curl_setopt($ch, CURLOPT_USERAGENT, "MaYoR-interconnect (php; cURL)");
+ curl_setopt($ch, CURLOPT_VERBOSE, true);
+ // POST
+ $data['senderNodeId'] = $this->nodeId;
+ curl_setopt($ch, CURLOPT_POST, true);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
+
+ $response = curl_exec($ch);
+ $INFO = curl_getinfo($ch); // ha kell
+ if ($INFO['http_code'] == 200) { // minden ok
+ //dump($INFO['url']);
+ //dump($response);
+ } else {
+ echo '<a href="'.$url.'">URL</a>';
+ dump($response,$INFO);
+ throw new Exception($INFO['http_code']);
+ }
+ curl_close($ch);
+ return $response;
+ }
+ private function _genSessionKey() {
+ return base64_encode(pack('N6', mt_rand(), mt_rand(), mt_rand(),mt_rand(), mt_rand(), mt_rand()));
+ //return random_str( 32 );
+ }
+ private function _sessionKeyEncode() {
+ $crypttext = '';
+ $res = openssl_public_encrypt($this->sessionKey, $crypttext, $this->remotePublicKey); // majd a távoli publikus kulccal
+ return base64_encode($crypttext);
+ }
+ private function _sessionKeyDecode($in) {
+ $decodedtext = '';
+ $res = openssl_private_decrypt(base64_decode($in), $decodedtext, $this->privateKey); // a saját privát kulccsal
+ return $decodedtext;
+ }
+ private function _genHash($in) {
+ // hash generálás
+ return hash('sha256', $in, false);
+ }
+ private function _hashEncode($in) {
+ // a mi privát kulcsunkkal...
+ $res = openssl_private_encrypt($in, $encodedHash, $this->privateKey); // a saját privát kulccsal
+ return base64_encode($encodedHash);
+ }
+ private function _hashDecode($in) {
+ // a remotePublic-kal
+ $res = openssl_public_decrypt(base64_decode($in), $decodedHash, $this->remotePublicKey); // majd a távoli publikus kulccal
+ return $decodedHash;
+ }
+ private function _verifyHash($PACKED) {
+ return ($this->_genHash($PACKED['details']))===($this->_hashDecode($PACKED['hashEncoded']));
+ }
+ private function _packData($DATA) { // --> array(details|sessionKeyEncoded)
+ $ADAT['details'] = AES::encrypt(json_encode($DATA),$this->sessionKey); // implicit base64_encode
+ $ADAT['hashEncoded'] = $this->_hashEncode($this->_genHash($ADAT['details']));
+ $ADAT['sessionKeyEncoded'] = $this->_sessionKeyEncode(); // implicit base64_encode
+ $ADAT['status'] = $this->status;
+ return $ADAT;
+ }
+ private function _unpackData($PACKED) { // packed[details] --> object !! feltesszük, hogy már be van állítva a sessionKey, ellenőrizve van a hash!
+ return json_decode(AES::decrypt($PACKED['details'],$this->sessionKey), true);
+ }
+ private function _encodeRequest($IN = array()) { // HTTP GET paraméter
+ return urlencode(json_encode($IN));
+ }
+ private function _decodeRequest($IN) { // HTTP GET paraméter
+ return json_decode($IN, true);
+ }
+ private function _encodeResponse($IN=array()) { // HTTP - tartalom
+ return json_encode($IN);
+ }
+ private function _decodeResponse($IN=array()) { // HTTP - tartalom
+ return json_decode($IN, true);
+ }
+ /* Publikus metódusok */
+ public function setRequestTarget($target) {
+ if ($target == 'controller') $this->psf='page=rpc&sub=controller&f=rpc';
+ else if ($target == 'naplo') $this->psf='page=rpc&sub=naplo&f=rpc';
+ else $this->psf='page=rpc&f=rpc'; // alap funkciók
+ }
+ public function getRegistrationDataByNodeId($nodeId) { // feltesszük, hogy valid
+ $origRemoteNodeId = $this->remoteNodeId;
+ $this->setRemoteHostByNodeId($this->controllerNodeId);
+ $ret = $this->sendRequest(array('func'=>'getPublicDataByNodeId', 'nodeId'=>$nodeId));
+ $this->setRemoteHostByNodeId($origRemoteNodeId);
+
+ return $ret;
+ }
+ public function getPublicDataByNodeId($nodeId) {
+ if (defined('_DEVEL') && _DEVEL===true) {
+ // A helyi gép adatait adjuk meg
+ $ret = array('nodeId'=>$this->nodeId, 'url'=>'https://localhost','publicKey'=>$this->publicKey);
+ } else {
+ if ($nodeId == '') $nodeId = $this->controllerNodeId;
+ // Adott nodeId adatainak lekérdezése a helyi adatbázisból
+ $ret = getPublicDataFromLocalKeychain($nodeId);
+ if ($ret === false) {
+ $RPC = new Interconnect();
+ $RPC->setRequestTarget('controller');
+ $RPC->setRemoteHostByNodeId($this->controllerNodeId);
+ $ret2 = $RPC->sendRequest(array('func'=>'getPublicDataByNodeId', 'nodeId'=>$nodeId));
+ $ret = $ret2['nodeData'];
+ foreach (array(
+ 'regId','dij','utemezes','egyebTamogatas','szamlazasiCim','szamlaHelyseg','szamlaIrsz','szamlaKozteruletNev',
+ 'szamlaKozteruletJelleg','szamlaHazszam'
+ ) as $field) {
+ unset($ret[$field]);
+ }
+ if (is_array($ret)) addPublicDataToLocalKeychain($ret);
+/*
+ } elseif (false) {
+ // Adott nodeId adatainak lekérdezése a www.mayor.hu-tól (controller) Interconnect-tel
+ $origRemoteNodeId = $this->remoteNodeId;
+ $origPsf = $this->psf;
+ $this->setRequestTarget('controller');
+ $this->setRemoteHostByNodeId($this->controllerNodeId);
+ $ret2 = $this->sendRequest(array('func'=>'getPublicDataByNodeId', 'nodeId'=>$nodeId));
+ $ret = $ret2['nodeData'];
+ foreach (array(
+ 'regId','dij','utemezes','egyebTamogatas','szamlazasiCim','szamlaHelyseg','szamlaIrsz','szamlaKozteruletNev',
+ 'szamlaKozteruletJelleg','szamlaHazszam'
+ ) as $field) {
+ unset($ret[$field]);
+ }
+ if (is_array($ret)) addPublicDataToLocalKeychain($ret);
+ if ($origRemoteNodeId!='') $this->setRemoteHostByNodeId($origRemoteNodeId);
+ $this->psf = $origPsf;
+*/
+ }
+ }
+ return $ret;
+ }
+ public function setRemoteHostByNodeId($nodeId) {
+ $rData = $this->getPublicDataByNodeId($nodeId);
+ if (is_array($rData)) {
+ $this->remoteHost = $rData['url'];
+ $this->remoteNodeId = $rData['nodeId'];
+ $this->remotePublicKey = $rData['publicKey'];
+ $this->status = 'ok:remoteHost';
+ } else {
+ $this->remoteHost = ''; // controller
+ $this->remoteNodeId = $this->controllerNodeId;
+ $this->remotePublicKey = $rData['publicKey'];
+ $this->status = 'ok:remoteHostController';
+ }
+ }
+ /* A oldal */
+ public function sendRequest($ADAT = array()) {
+ $PACKED = $this->_packData($ADAT);
+ $this->myRequest = $PACKED;
+ // $this->myRequest = $this->_encodeRequest($PACKED);
+
+ $response = $this->_curlGet($this->myRequest);
+
+ $decodedResponse = $this->_decodeResponse($response);
+ if ($this->sessionKey === $this->_sessionKeyDecode($decodedResponse['sessionKeyEncoded'])) {
+ if ($this->_verifyHash($decodedResponse)) {
+ $this->incomingResponse = $this->_unpackData($decodedResponse);
+ $this->status = 'ok:success response';
+ } else {
+ $this->incomingResponse = false;
+ $this->status = 'error:wrong response hash';
+ }
+ } else {
+ $this->status = 'error:wrong response sessionKey ('.($this->sessionKey).' != '.($this->_sessionKeyDecode($decodedResponse['sessionKeyEncoded'])).') response: '.$response;
+ $this->incomingResponse = false;
+ }
+ return $this->incomingResponse;
+ }
+ /* B oldal! */
+ public function processRequest() { // rights.php
+ $PACKED = $_POST;
+ $this->sessionKey = $this->_sessionKeyDecode($PACKED['sessionKeyEncoded']);
+ if ($this->_verifyHash($PACKED)) {
+ $this->incomingRequest = $this->_unpackData($PACKED);
+openlog("MaYoR Interconnect", LOG_PID | LOG_PERROR, LOG_LOCAL0);
+syslog(LOG_WARNING, "Data unpacked: ".(json_encode($this->incomingRequest))." {$_SERVER['REMOTE_ADDR']} ({$_SERVER['HTTP_USER_AGENT']})");
+closelog();
+ $this->status = 'ok:success request';
+ } else {
+ $this->incomingRequest = false;
+ $this->status = 'error:wrong request hash';
+ }
+ return $this->incomingRequest;
+ }
+ public function setResponse($DATA) { // ez kell a pre-be
+ $this->myResponse = $this->_encodeResponse($this->_packData($DATA));
+ }
+ public function sendResponse() { // skin=rpc - csak ki kell írnunk az elküldendő adatsort - ezt a skin csinálja
+ echo $this->myResponse;
+ }
+ public function getIncomingRequest() { return $this->incomingRequest; } // a pre-ben
+
+ public function getPublicKey() { return $this->publicKey; }
+ public function getSessionKey() { return $this->sessionKey; }
+ public function getStatus() { return $this->status; }
+ public function getRemoteNodeId() { return $this->remoteNodeId; }
+ public function getControllerNodeId() { return $this->controllerNodeId; }
+ public function getNodeId() { return $this->nodeId; }
+ }
+
+
+?>
diff --git a/mayor-orig/www/include/share/str/hyphen.php b/mayor-orig/www/include/share/str/hyphen.php
new file mode 100644
index 00000000..0973e4d9
--- /dev/null
+++ b/mayor-orig/www/include/share/str/hyphen.php
@@ -0,0 +1,104 @@
+<?php
+
+class huHyphen
+{
+ // member declaration
+ public $Patterns = array();
+ private $patternFilePath = '../print/share/huhyphn.tex';
+
+ // method declaration
+ function __construct() {
+
+ $patterns = 0;
+ $mbConv = array(
+ mb_convert_encoding('ś', 'ISO-8859-2', 'UTF-8') => mb_convert_encoding('ű', 'ISO-8859-2', 'UTF-8'),
+ mb_convert_encoding('Ž', 'ISO-8859-2', 'UTF-8') => mb_convert_encoding('ő', 'ISO-8859-2', 'UTF-8'));
+
+ if (file_exists($this->patternFilePath)) {
+ $fp = fopen($this->patternFilePath, 'r');
+ while ($aLine = fgets($fp, 128)) {
+ // deprecated // if (!ereg('[\\%{}]', $aLine)) {
+ if (!preg_match('#[\\%{}]#', $aLine)) {
+ // Cork --> ISO-8859-2 kódolás
+ $aLine = strtr($aLine, $mbConv);
+ $letter = false;
+ $key = $value = '';
+ $aLine = chop($aLine);
+ for ($i = 0; $i < strlen($aLine); $i++) {
+ // deprecated // if (ereg('[0-9]',$aLine[$i])) {
+ if (preg_match('#[0-9]#',$aLine[$i])) {
+ $value .= $aLine[$i];
+ $letter = false;
+ } else {
+ if ($letter) $value .= '0';
+ $key .= $aLine[$i];
+ $letter = true;
+ }
+ }
+ if ($letter) $value .= '0';
+ if (!is_array($Patterns[strlen($key)])) $Patterns[strlen($key)] = array();
+ $Patterns[strlen($key)][$key] = $value;
+ $patterns++;
+ } else {
+ //if (ereg('\\message\{(.*)\}', $aLine, $reg)) echo $reg[1]."\n";
+ }
+ }
+ } else { $GLOBALS['alert'][] = 'message:file_not_found:'.($this->patternFilePath); }
+ for ($i = 0; $i < count($Patterns); $i++) {
+ if (!is_array($Patterns[$i])) $Patterns[$i] = array();
+ }
+ $this->Patterns = $Patterns;
+ }
+ function getPattern($key, $value) {
+ $pattern = '';
+ if (strlen($value) > strlen($key)) { $pattern = $value[0]; $value = substr($value, 1); }
+ for ($i = 0; $i < strlen($key); $i++) {
+ $pattern .= $key[$i];
+ if (isset($value[$i])) $pattern .= $value[$i];
+ }
+ $pattern = str_replace('0','',$pattern);
+ return $pattern;
+ }
+ public function hyphen($word) {
+ $word = mb_convert_encoding($word, 'ISO-8859-2', 'UTF-8');
+ if (strlen($word) > 1) {
+
+ $key = '.'.$word.'.';
+ $value = str_repeat('0', strlen($key));
+ $key = strtr($key, mb_convert_encoding('A-ZÁÄÉÍÓÖŐÚÜŰ', 'ISO-8859-2', 'UTF-8'), mb_convert_encoding('a-záäéíóöőúüű', 'ISO-8859-2', 'UTF-8'));
+ $pattern = '';
+ for ($i = 1; $i <= strlen($key); $i++) {
+ for ($j = 0; $j <= strlen($key)-$i; $j++) {
+ if (is_array($this->Patterns[$i]) && ($pattern = $this->Patterns[$i][ substr($key, $j, $i) ])) {
+ for ($k = 0; $k < strlen($pattern); $k++) {
+ if ($value[$j + $i - strlen($pattern) + $k] < $pattern[$k])
+ $value[$j + $i - strlen($pattern) + $k] = $pattern[$k];
+ }
+ }
+ }
+ }
+ $hyphenated = '';
+ for ($i = 0; $i <= strlen($word)-2; $i++) {
+ $hyphenated .= $word[$i];
+ // deprecated // if (ereg('[13579]', $value[$i+1])) $hyphenated .= '-';
+ if (preg_match('#[13579]#', $value[$i+1])) $hyphenated .= '-';
+ }
+ $hyphenated .= substr($word, -1);
+ } else {
+ $hyphenated = $word;
+ }
+ return mb_convert_encoding($hyphenated, 'UTF-8', 'ISO-8859-2');
+ }
+}
+
+$huHyphen = new huHyphen();
+//while gets
+// break if $_=="\n"
+// test.hyphen($_.strip)
+//end
+
+//$test->hyphen(trim('állomásfőnök'));
+//$test->hyphen(trim('álamigazgatás'));
+//$test->hyphen(trim('informatika alapismeretek, programozás'));
+
+?>
diff --git a/mayor-orig/www/include/share/str/tex.php b/mayor-orig/www/include/share/str/tex.php
new file mode 100644
index 00000000..76cf5117
--- /dev/null
+++ b/mayor-orig/www/include/share/str/tex.php
@@ -0,0 +1,51 @@
+<?php
+
+ function TeXSpecialChars($szoveg) {
+ $trans = array(
+// "\\'" => "'", ## ezt kell kiszedni 2.0-ban
+ '+' => '$+$',
+ '/' => '$/$',
+ '*' => '$*$',
+ '=' => '$=$',
+ '<' => '$<$',
+ '>' => '$>$',
+ '{' => '$\{$',
+ '}' => '$\}$',
+ '#' => '\#',
+ '%' => '\%',
+ '_' => '\_',
+ '&' => '\&',
+ '~' => ' ',
+ '…' => '...',
+ '´' => '\'',
+ '^' => '(exp)',
+// '~' => '\~\ ',
+// '$' => '\$',
+// "\\" => '$\backslash$'
+ );
+ if (__NYOMTATAS_XETEX) {
+ $trans['^'] = '\^\ ';
+ }
+ return strtr(strtr($szoveg, array('$' => '\$', "\\" => '$\backslash$')), $trans);
+ }
+
+ function LaTeXSpecialChars($szoveg) {
+ $trans = array(
+ '_' => '\_',
+ '#' => '\#',
+ '$' => '\$',
+ '%' => '\%',
+ '&' => '\&',
+ '~' => '\verb|~|',
+ '^' => '\verb|^|',
+ '{' => '\{',
+ '}' => '\}',
+ '\\' => '$\backslash$',
+// 0160 => 0032, // valami' spéci szóköz --> sima szóköz
+ );
+ return strtr($szoveg,$trans);
+ }
+
+
+
+?>
diff --git a/mayor-orig/www/index.php b/mayor-orig/www/index.php
new file mode 100644
index 00000000..6db3d23e
--- /dev/null
+++ b/mayor-orig/www/index.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ MaYoR http://www.mayor.hu./
+ License: LICENSE.txt
+*/
+ @error_reporting(E_ERROR | E_WARNING | E_PARSE);
+ require('include/base/config.php');
+ require('include/base/mysql.php');
+ require('include/base/var.php');
+ require('include/base/base.php');
+ require('include/base/cache.php');
+ require('include/base/str.php');
+ require('include/base/log.php');
+ require('include/alert/base.php');
+ if ( defined('__TESTERRORREPORTER') && __TESTERRORREPORTER===true) require('include/base/error.php');
+ require('include/base/rights.php');
+ require('include/base/login.php');
+ require('include/menu/base.php') ;
+ /* --- */
+ require('skin/default/base/html/base.phtml');
+ if (file_exists("skin/$skin/base/html/alert.phtml")) {
+ require("skin/$skin/base/html/alert.phtml");
+ } else {
+ require('skin/'._DEFAULT_SKIN.'/base/html/alert.phtml');
+ }
+ if (file_exists("skin/$skin/base/html/base.phtml")) {
+ require("skin/$skin/base/html/base.phtml");
+ } else {
+ require('skin/'._DEFAULT_SKIN.'/base/html/base.phtml');
+ }
+ html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU);
+
+?>
diff --git a/mayor-orig/www/lang/de_DE/backend/ldap/attrs.php b/mayor-orig/www/lang/de_DE/backend/ldap/attrs.php
new file mode 100644
index 00000000..9cf8b4ab
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/backend/ldap/attrs.php
@@ -0,0 +1,58 @@
+<?php
+ define('_LDAP_USERACCOUNT','Loginname');
+ define('_LDAP_USERCN','Name');
+ define('_YEAR','Jahr');
+ define('_MONTH','Monat');
+ define('_DAY','Tag');
+ define('_FIU','Mann');
+ define('_LANY','Frau');
+ define('_LDAPDN','');
+ define('_LDAPUID','');
+ define('_LDAPUIDNUMBER','');
+ define('_LDAPGIDNUMBER','');
+ define('_LDAPGECOS','');
+ define('_LDAPCN','');
+ define('_LDAPSTUDYID','');
+ define('_LDAPSN','');
+ define('_LDAPGIVENNAME','');
+ define('_LDAPMAIL','');
+ define('_LDAPHOMEPAGE','');
+ define('_LDAPURL','');
+ define('_LDAPTELEPHONENUMBER','');
+ define('_LDAPMOBILE','');
+ define('_LDAPYEAR','');
+ define('_LDAPCLASS','');
+ define('_LDAPL','');
+ define('_LDAPSTREET','');
+ define('_LDAPPOSTALADDRESS','');
+ define('_LDAPPOSTALCODE','');
+ define('_LDAPHOMEDIRECTORY','');
+ define('_LDAPDESCRIPTION','');
+ define('_LDAPROOMNUMBER','');
+ define('_LDAPREGISTERTIMESTAMP','');
+ define('_LDAPPRIMARYSCHOOLOMCODE','');
+ define('_LDAPCLASSTIMESTAMP','');
+ define('_LDAPSTUDENTCARDNUMBER','');
+ define('_LDAPSTUDENTCARDTIMESTAMP','');
+ define('_LDAPTAXID','');
+ define('_LDAPBIRTHTIMESTAMP','');
+ define('_LDAPBIRTHLOCALITY','');
+ define('_LDAPREGISTERNUMBER','');
+ define('_LDAPDIARYNUMBER','');
+ define('_LDAPSEX','');
+ define('_LDAPGUARDIANCN','');
+ define('_LDAPMOTHERCN','');
+ define('_LDAPLOCALITYTIMESTAMP','');
+ define('_LDAPTAJNUMBER','');
+ define('_LDAPMEMBER','');
+ define('_LDAPSTUDENTMEMBER','');
+ define('_LDAPEXEMPTMEMBER','');
+ define('_LDAPEXAMERMEMBER','');
+ define('_LDAPMEMBERUID','');
+ define('_LDAPSHADOWLASTCHANGE','');
+ define('_LDAPSHADOWEXPIRE','');
+ define('_LDAPSHADOWWARNING','');
+ define('_LDAPSHADOWMIN','');
+ define('_LDAPSHADOWMAX','');
+ define('_LDAPSHADOWINACTICE','');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-auth/login.php b/mayor-orig/www/lang/de_DE/module-auth/login.php
new file mode 100644
index 00000000..8f53602c
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-auth/login.php
@@ -0,0 +1,5 @@
+<?php
+ define('_GREETING','MaYoR Anmeldung');
+ define('_LOGIN','Einloggen');
+ define('_USERNAME','Username');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-password/changeMyPassword.php b/mayor-orig/www/lang/de_DE/module-password/changeMyPassword.php
new file mode 100644
index 00000000..3b62b858
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-password/changeMyPassword.php
@@ -0,0 +1,7 @@
+<?php
+ define('_CHANGE_PASSWORD','Änderung des eigenen Passworts');
+ define('_USERNAME','Username');
+ define('_NEW_PASSWORD','Neues Passwort');
+ define('_VERIFICATION','Bestätigung');
+ define('_OK','OK');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-password/changePassword.php b/mayor-orig/www/lang/de_DE/module-password/changePassword.php
new file mode 100644
index 00000000..c959a76c
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-password/changePassword.php
@@ -0,0 +1,7 @@
+<?php
+ define('_CHANGE_PASSWORD','Passwortänderung');
+ define('_USERNAME','Username');
+ define('_NEW_PASSWORD','Neues Passwort');
+ define('_VERIFICATION','Bestätigung');
+ define('_OK','OK');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-session/accountInfo.php b/mayor-orig/www/lang/de_DE/module-session/accountInfo.php
new file mode 100644
index 00000000..18a3b218
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-session/accountInfo.php
@@ -0,0 +1,3 @@
+<?php
+ define('_OK','OK');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-session/createAccount.php b/mayor-orig/www/lang/de_DE/module-session/createAccount.php
new file mode 100644
index 00000000..e16abbd3
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-session/createAccount.php
@@ -0,0 +1,7 @@
+<?php
+ define('_OK','OK');
+ define('_CREATE_ACCOUNT','Neuer Benutzer');
+ define('_VERIFICATION','Bestätigung');
+ define('_ACCOUNT_CATEGORY','Kategorie');
+ define('_DATAFILE','Daten File');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-session/createGroup.php b/mayor-orig/www/lang/de_DE/module-session/createGroup.php
new file mode 100644
index 00000000..1e471031
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-session/createGroup.php
@@ -0,0 +1,6 @@
+<?php
+ define('_OK','OK');
+ define('_CREATE_GROUP','Neue Gruppe');
+ define('_GROUP_CATEGORY','Kategorie');
+ define('_DATAFILE','Daten File');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-session/download.php b/mayor-orig/www/lang/de_DE/module-session/download.php
new file mode 100644
index 00000000..8c669bd2
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-session/download.php
@@ -0,0 +1,7 @@
+<?php
+ define('_FILE','File');
+ define('_SIZE','Größe');
+ define('_MIMETYPE','MIME Typ');
+ define('_DOWNLOAD','Download');
+ define('_DESCRIPTION','Wenn der Download automatisch nicht startet, klicken Sie auf den Link!');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-session/groupInfo.php b/mayor-orig/www/lang/de_DE/module-session/groupInfo.php
new file mode 100644
index 00000000..87f8eed9
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-session/groupInfo.php
@@ -0,0 +1,4 @@
+<?php
+ define('_OK','OK');
+ define('_NEW','Neu');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-session/search/searchAccount.php b/mayor-orig/www/lang/de_DE/module-session/search/searchAccount.php
new file mode 100644
index 00000000..d9b4b4ec
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-session/search/searchAccount.php
@@ -0,0 +1,19 @@
+<?php
+ define('_SEARCH','Benutzersuche');
+ define('_OK','OK');
+ define('_NOTFOUND','Kein Ergebnis');
+ define('_CATEGORY','Kategorie');
+ define('_ACTION','Änderung');
+ define('_DELETE','Löschen');
+ define('_CHANGE_PASSWORD','Passwortänderung');
+ define('_ARE_YOU_SURE','Sind Sie sicher dass Sie löschen wollen?');
+ define('_NAME','Name');
+ define('_CLASS','Klasse');
+ define('_EMAIL','Email');
+ define('_PASSWORD','Passwort');
+ define('_RETYPEPASSWORD','Bestätigung');
+ define('_DEFAULTGROUP','Kategorie');
+ define('_DATAFILE','Daten File');
+ define('_NEWUSER','Neuer Benutzer');
+ define('_ARE_YOU_SURE','Sind Sie sicher dass Sie löschen wollen?');
+?>
diff --git a/mayor-orig/www/lang/de_DE/module-session/search/searchGroup.php b/mayor-orig/www/lang/de_DE/module-session/search/searchGroup.php
new file mode 100644
index 00000000..ec220985
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/module-session/search/searchGroup.php
@@ -0,0 +1,19 @@
+<?php
+ define('_SEARCH','Gruppensuche');
+ define('_OK','OK');
+ define('_NOTFOUND','Kein Ergebnis');
+ define('_CATEGORY','Kategorie');
+ define('_ACTION','Änderung');
+ define('_DELETE','Löschen');
+ define('_CHANGE_PASSWORD','Passwortänderung');
+ define('_ARE_YOU_SURE','Sind Sie sicher dass Sie löschen wollen?');
+ define('_NAME','Name');
+ define('_CLASS','Klasse');
+ define('_EMAIL','Email');
+ define('_PASSWORD','Passwort');
+ define('_RETYPEPASSWORD','Bestätigung');
+ define('_DEFAULTGROUP','Kategorie');
+ define('_DATAFILE','Daten File');
+ define('_NEWUSER','Neuer Benutzer');
+ define('_ARE_YOU_SURE','Sind Sie sicher dass Sie löschen wollen?');
+?>
diff --git a/mayor-orig/www/lang/de_DE/share/session/attrs.php b/mayor-orig/www/lang/de_DE/share/session/attrs.php
new file mode 100644
index 00000000..a5a445f0
--- /dev/null
+++ b/mayor-orig/www/lang/de_DE/share/session/attrs.php
@@ -0,0 +1,17 @@
+<?php
+ define('_ATTR_USERACCOUNT','Loginname');
+ define('_ATTR_USERCN','Name');
+ define('_ATTR_USERPASSWORD','Passwort');
+ define('_ATTR_STUDYID','');
+ define('_ATTR_MAIL','E-mailadresse');
+ define('_ATTR_TELEPHONENUMBER','Telefonnummer');
+ define('_ATTR_SHADOWLASTCHANGE','Letzte Passwortänderung');
+ define('_ATTR_SHADOWMIN','Früheste Passwortänderung');
+ define('_ATTR_SHADOWMAX','Passwortgültigkeits dauer');
+ define('_ATTR_SHADOWWARNING','Aufruf für Passwortänderung');
+ define('_ATTR_SHADOWINACTIVE','Benutzer');
+ define('_ATTR_SHADOWEXPIRE','Absperrungsdatum');
+ define('_ATTR_GROUPCN','Gruppenkenzeichen');
+ define('_ATTR_GROUPDESC','Gruppenname');
+ define('_ATTR_MEMBER','Mitglied');
+?>
diff --git a/mayor-orig/www/lang/en_US/backend/ldap/attrs.php b/mayor-orig/www/lang/en_US/backend/ldap/attrs.php
new file mode 100644
index 00000000..438014b6
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/backend/ldap/attrs.php
@@ -0,0 +1,58 @@
+<?php
+ define('_LDAP_USERACCOUNT','User Account');
+ define('_LDAP_USERCN','Name');
+ define('_YEAR','year');
+ define('_MONTH','month');
+ define('_DAY','day');
+ define('_FIU','male');
+ define('_LANY','female');
+ define('_LDAPDN','');
+ define('_LDAPUID','');
+ define('_LDAPUIDNUMBER','');
+ define('_LDAPGIDNUMBER','');
+ define('_LDAPGECOS','');
+ define('_LDAPCN','');
+ define('_LDAPSTUDYID','');
+ define('_LDAPSN','');
+ define('_LDAPGIVENNAME','');
+ define('_LDAPMAIL','');
+ define('_LDAPHOMEPAGE','');
+ define('_LDAPURL','');
+ define('_LDAPTELEPHONENUMBER','');
+ define('_LDAPMOBILE','');
+ define('_LDAPYEAR','');
+ define('_LDAPCLASS','');
+ define('_LDAPL','');
+ define('_LDAPSTREET','');
+ define('_LDAPPOSTALADDRESS','');
+ define('_LDAPPOSTALCODE','');
+ define('_LDAPHOMEDIRECTORY','');
+ define('_LDAPDESCRIPTION','');
+ define('_LDAPROOMNUMBER','');
+ define('_LDAPREGISTERTIMESTAMP','');
+ define('_LDAPPRIMARYSCHOOLOMCODE','');
+ define('_LDAPCLASSTIMESTAMP','');
+ define('_LDAPSTUDENTCARDNUMBER','');
+ define('_LDAPSTUDENTCARDTIMESTAMP','');
+ define('_LDAPTAXID','');
+ define('_LDAPBIRTHTIMESTAMP','');
+ define('_LDAPBIRTHLOCALITY','');
+ define('_LDAPREGISTERNUMBER','');
+ define('_LDAPDIARYNUMBER','');
+ define('_LDAPSEX','');
+ define('_LDAPGUARDIANCN','');
+ define('_LDAPMOTHERCN','');
+ define('_LDAPLOCALITYTIMESTAMP','');
+ define('_LDAPTAJNUMBER','');
+ define('_LDAPMEMBER','');
+ define('_LDAPSTUDENTMEMBER','');
+ define('_LDAPEXEMPTMEMBER','');
+ define('_LDAPEXAMERMEMBER','');
+ define('_LDAPMEMBERUID','');
+ define('_LDAPSHADOWLASTCHANGE','LDAP shadow last change');
+ define('_LDAPSHADOWEXPIRE','LDAP shadow expire');
+ define('_LDAPSHADOWWARNING','LDAP shadow warning');
+ define('_LDAPSHADOWMIN','LDAP shadow minimum time');
+ define('_LDAPSHADOWMAX','LDAP shadow maximum time');
+ define('_LDAPSHADOWINACTICE','LDAP shadow inactive');
+?>
diff --git a/mayor-orig/www/lang/en_US/base/base.php b/mayor-orig/www/lang/en_US/base/base.php
new file mode 100644
index 00000000..84af512a
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/base/base.php
@@ -0,0 +1,18 @@
+<?php
+ define('_MAIN_TITLE','MaYoR ');
+ define('_MAIN_FOOTER','MaYoR © 2002-2015 [en]');
+ define('_TANAR','teacher');
+ define('_DIAK','student');
+ define('_TITKARSAG','administration');
+ define('_GAZDASAGI','financial office');
+ define('_EGYEB','other');
+ define('_ERROR','Error');
+ define('_INFORMATION','Information');
+ define('_CONTROL_FLAG_REQUIRED','Logging in is required.');
+ define('_CONTROL_FLAG_OPTIONAL','Logging in is optional.');
+ define('_PRIVATE_PASSWORD','Password');
+ define('_PARENT_PASSWORD','Parents\' Password');
+ define('_PUBLIC_PASSWORD','Public Password');
+ define('_MAYOR_DESC','');
+ define('_HELP','Help');
+?>
diff --git a/mayor-orig/www/lang/en_US/date/names.php b/mayor-orig/www/lang/en_US/date/names.php
new file mode 100644
index 00000000..ab668efd
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/date/names.php
@@ -0,0 +1,21 @@
+<?php
+ define('_MONDAY','Monday');
+ define('_TUESDAY','Tuesday');
+ define('_WEDNESDAY','Wednesday');
+ define('_THURSDAY','Thursday');
+ define('_FRIDAY','Friday');
+ define('_SATURDAY','Saturday');
+ define('_SUNDAY','Sunday');
+ define('_JANUARY','January');
+ define('_FEBRUARY','February');
+ define('_MARCH','March');
+ define('_APRIL','April');
+ define('_MAY','May');
+ define('_JUNE','June');
+ define('_JULY','July');
+ define('_AUGUSTUS','August');
+ define('_SEPTEMBER','September');
+ define('_OCTOBER','October');
+ define('_NOVEMBER','November');
+ define('_DECEMBER','December');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-auth/login.php b/mayor-orig/www/lang/en_US/module-auth/login.php
new file mode 100755
index 00000000..f161da3f
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-auth/login.php
@@ -0,0 +1,5 @@
+<?php
+ define('_GREETING','MaYoR Login');
+ define('_LOGIN','Login');
+ define('_USERNAME','Username');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-password/changeMyPassword.php b/mayor-orig/www/lang/en_US/module-password/changeMyPassword.php
new file mode 100644
index 00000000..002770ac
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-password/changeMyPassword.php
@@ -0,0 +1,7 @@
+<?php
+ define('_CHANGE_PASSWORD','Change own password');
+ define('_USERNAME','Username');
+ define('_NEW_PASSWORD','New password');
+ define('_VERIFICATION','New password again');
+ define('_OK','OK');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-password/changePassword.php b/mayor-orig/www/lang/en_US/module-password/changePassword.php
new file mode 100644
index 00000000..efd3647f
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-password/changePassword.php
@@ -0,0 +1,7 @@
+<?php
+ define('_CHANGE_PASSWORD','Change password');
+ define('_USERNAME','Username');
+ define('_NEW_PASSWORD','New password');
+ define('_VERIFICATION','New password again');
+ define('_OK','OK');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-session/accountInfo.php b/mayor-orig/www/lang/en_US/module-session/accountInfo.php
new file mode 100644
index 00000000..18a3b218
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-session/accountInfo.php
@@ -0,0 +1,3 @@
+<?php
+ define('_OK','OK');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-session/createAccount.php b/mayor-orig/www/lang/en_US/module-session/createAccount.php
new file mode 100644
index 00000000..c3cd100c
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-session/createAccount.php
@@ -0,0 +1,7 @@
+<?php
+ define('_OK','OK');
+ define('_CREATE_ACCOUNT','New User');
+ define('_VERIFICATION','Password, again');
+ define('_ACCOUNT_CATEGORY','Category');
+ define('_DATAFILE','Data file');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-session/createGroup.php b/mayor-orig/www/lang/en_US/module-session/createGroup.php
new file mode 100644
index 00000000..534f0262
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-session/createGroup.php
@@ -0,0 +1,6 @@
+<?php
+ define('_OK','OK');
+ define('_CREATE_GROUP','Create Group');
+ define('_GROUP_CATEGORY','Create Category');
+ define('_DATAFILE','Data file');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-session/download.php b/mayor-orig/www/lang/en_US/module-session/download.php
new file mode 100644
index 00000000..ee2b8d2a
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-session/download.php
@@ -0,0 +1,7 @@
+<?php
+ define('_FILE','File');
+ define('_SIZE','Size');
+ define('_MIMETYPE','MIME Type');
+ define('_DOWNLOAD','Download');
+ define('_DESCRIPTION','If the download does\\');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-session/groupInfo.php b/mayor-orig/www/lang/en_US/module-session/groupInfo.php
new file mode 100644
index 00000000..f11fe9c6
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-session/groupInfo.php
@@ -0,0 +1,4 @@
+<?php
+ define('_OK','OK');
+ define('_NEW','New');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-session/search/searchAccount.php b/mayor-orig/www/lang/en_US/module-session/search/searchAccount.php
new file mode 100644
index 00000000..d2c999ea
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-session/search/searchAccount.php
@@ -0,0 +1,19 @@
+<?php
+ define('_SEARCH','User Search');
+ define('_OK','OK');
+ define('_NOTFOUND','No results');
+ define('_CATEGORY','Category');
+ define('_ACTION','Change');
+ define('_DELETE','Delete');
+ define('_CHANGE_PASSWORD','Change password');
+ define('_ARE_YOU_SURE','Are you sure?');
+ define('_NAME','Name');
+ define('_CLASS','Class');
+ define('_EMAIL','E-Mail');
+ define('_PASSWORD','Password');
+ define('_RETYPEPASSWORD','Password, again');
+ define('_DEFAULTGROUP','Group');
+ define('_DATAFILE','Data file');
+ define('_NEWUSER','New User');
+ define('_ARE_YOU_SURE','Are you sure?');
+?>
diff --git a/mayor-orig/www/lang/en_US/module-session/search/searchGroup.php b/mayor-orig/www/lang/en_US/module-session/search/searchGroup.php
new file mode 100644
index 00000000..4335ed9b
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/module-session/search/searchGroup.php
@@ -0,0 +1,19 @@
+<?php
+ define('_SEARCH','Group Search');
+ define('_OK','OK');
+ define('_NOTFOUND','No results');
+ define('_CATEGORY','Category');
+ define('_ACTION','Change');
+ define('_DELETE','Delete');
+ define('_CHANGE_PASSWORD','Change password');
+ define('_ARE_YOU_SURE','Are you sure?');
+ define('_NAME','Name');
+ define('_CLASS','Class');
+ define('_EMAIL','E-Mail');
+ define('_PASSWORD','Password');
+ define('_RETYPEPASSWORD','Password, again');
+ define('_DEFAULTGROUP','Group');
+ define('_DATAFILE','Data file');
+ define('_NEWUSER','New User');
+ define('_ARE_YOU_SURE','Are you sure?');
+?>
diff --git a/mayor-orig/www/lang/en_US/share/session/attrs.php b/mayor-orig/www/lang/en_US/share/session/attrs.php
new file mode 100644
index 00000000..9c181f95
--- /dev/null
+++ b/mayor-orig/www/lang/en_US/share/session/attrs.php
@@ -0,0 +1,17 @@
+<?php
+ define('_ATTR_USERACCOUNT','User Account');
+ define('_ATTR_USERCN','Name');
+ define('_ATTR_USERPASSWORD','Password');
+ define('_ATTR_STUDYID','Study ID');
+ define('_ATTR_MAIL','E-Mail');
+ define('_ATTR_TELEPHONENUMBER','Tel. number');
+ define('_ATTR_SHADOWLASTCHANGE','Passw. last change');
+ define('_ATTR_SHADOWMIN','');
+ define('_ATTR_SHADOWMAX','Passw. validity');
+ define('_ATTR_SHADOWWARNING','');
+ define('_ATTR_SHADOWINACTIVE','Account inactivation');
+ define('_ATTR_SHADOWEXPIRE','Date of inactivation');
+ define('_ATTR_GROUPCN','Group ID');
+ define('_ATTR_GROUPDESC','Group Name');
+ define('_ATTR_MEMBER','Member');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/backend/ads/attrs.php b/mayor-orig/www/lang/hu_HU/backend/ads/attrs.php
new file mode 100644
index 00000000..508d9357
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/backend/ads/attrs.php
@@ -0,0 +1,82 @@
+<?php
+/*
+ Module: base/ads
+*/
+
+define('_ADSDN', 'ADS Dn');
+define('_ADSUID', 'ADS azonosító');
+define('_ADSUIDNUMBER', 'ADS felhasználó azonosító szám');
+define('_ADSGIDNUMBER', 'ADS csoport azonosító szám');
+define('_ADSCN', 'ADS teljes név');
+define('_ADSNAME', 'ADS név');
+define('_ADSSN', 'ADS vezetéknév');
+define('_ADSGIVENNAME', 'ADS keresztnév');
+define('_ADSUNIXHOMEDIRECTORY', 'ADS Unix home könyvtár');
+define('_ADSDESCRIPTION', 'ADS leírás');
+define('_ADSSERIALNUMBER', 'ADS oktatási azonosító');
+
+define('_ADSBADPWDCOUNT','ADS hibás jelszó szám');
+define('_ADSBADPASSWORDTIME','ADS hibás jelszó időbélyeg');
+define('_ADSLASTLOGON','ADS utolsó belépés időbélyeg');
+define('_ADSPWDLASTSET','ADS jelszó módosítás időbélyeg');
+define('_ADSACCOUNTEXPIRES','ADS account lejár');
+define('_ADSSAMACCOUNTNAME','ADS sAM azonosító');
+define('_USERACCOUNTCONTROL','ADS account control');
+define('_ADSUSERPRINCIPALNAME','ADS principal név');
+define('_ADSOBJECTCATEGORY','ADS objektum kategória');
+define('_ADSLOGINSHELL','ADS bejelentkezési shell');
+
+define('_ADSSHADOWLASTCHANGE','ADS shadow utolsó módosítás');
+define('_ADSSHADOWEXPIRE','ADS shadow lejár');
+define('_ADSSHADOWWARNING','ADS shadow figyelmeztetés');
+define('_ADSSHADOWMIN','ADS shadow minimális idő');
+define('_ADSSHADOWMAX','ADS shadow maximáis idő');
+define('_ADSSHADOWINACTICE','ADS shadow inaktív');
+
+define('_ADSMEMBER', 'ADS tag');
+define('_ADSMEMBERUID', 'ADS tag azonosító');
+
+// A kakukktojások
+/*
+define('_ADS_USERACCOUNT','Azonosító');
+define('_ADS_USERCN','Név');
+define('_YEAR','év');
+define('_MONTH','hó');
+define('_DAY','nap');
+define('_FIU','fiú');
+define('_LANY','lány');
+// És a rendes atttribútumok
+define('_ADSGECOS', 'ADS Gecos');
+define('_ADSSTUDYID', 'ADS oktatási azonosító');
+define('_ADSMAIL', 'ADS email');
+define('_ADSHOMEPAGE', 'ADS honlap');
+define('_ADSURL', 'ADS url');
+define('_ADSTELEPHONENUMBER', 'ADS telefonszám');
+define('_ADSMOBILE', 'ADS mobil szám');
+define('_ADSYEAR', 'ADS évfolyam');
+define('_ADSCLASS', 'ADS osztály');
+define('_ADSL', 'ADS város');
+define('_ADSSTREET', 'ADS utca');
+define('_ADSPOSTALADDRESS', 'ADS posta cím');
+define('_ADSPOSTALCODE', 'ADS irányítószám');
+define('_ADSROOMNUMBER', 'ADS teremszám');
+define('_ADSREGISTERTIMESTAMP', 'ADS beiratkozás dátuma');
+define('_ADSPRIMARYSCHOOLOMCODE', 'ADS OM kód');
+define('_ADSCLASSTIMESTAMP', 'ADS osztályba kerülés dátuma');
+define('_ADSSTUDENTCARDNUMBER', 'ADS diákigazolvány szám');
+define('_ADSSTUDENTCARDTIMESTAMP', 'ADS diákigazolvány dátuma');
+define('_ADSTAXID', 'ADS adószám');
+define('_ADSBIRTHTIMESTAMP', 'ADS születési dátum');
+define('_ADSBIRTHLOCALITY', 'ADS születési hely');
+define('_ADSDIARYNUMBER', 'ADS napló sorszám');
+define('_ADSSEX', 'ADS nem');
+define('_ADSGUARDIANCN', 'ADS gondviselő neve');
+define('_ADSMOTHERCN', 'ADS anyja neve');
+define('_ADSLOCALITYTIMESTAMP', 'ADS lakcím dátuma');
+define('_ADSTAJNUMBER', 'ADS TAJ szám');
+define('_ADSSTUDENTMEMBER', 'ADS tanuló tag');
+define('_ADSEXEMPTMEMBER', 'ADS felmentett tag');
+define('_ADSEXAMERMEMBER', 'ADS vizsgázó tag');
+
+*/
+?>
diff --git a/mayor-orig/www/lang/hu_HU/backend/ldap/attrs.php b/mayor-orig/www/lang/hu_HU/backend/ldap/attrs.php
new file mode 100644
index 00000000..c2dbbb32
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/backend/ldap/attrs.php
@@ -0,0 +1,66 @@
+<?php
+/*
+ Module: base/ldap
+*/
+
+// A kakukktojások
+define('_LDAP_USERACCOUNT','Azonosító');
+define('_LDAP_USERCN','Név');
+define('_YEAR','év');
+define('_MONTH','hó');
+define('_DAY','nap');
+define('_FIU','fiú');
+define('_LANY','lány');
+// És a rendes atttribútumok
+define('_LDAPDN', 'LDAP Dn');
+define('_LDAPUID', 'LDAP azonosító');
+define('_LDAPUIDNUMBER', 'LDAP felhasználó azonosító szám');
+define('_LDAPGIDNUMBER', 'LDAP csoport azonosító szám');
+define('_LDAPGECOS', 'LDAP Gecos');
+define('_LDAPCN', 'LDAP teljes név');
+define('_LDAPSTUDYID', 'LDAP oktatási azonosító');
+define('_LDAPSN', 'LDAP vezetéknév');
+define('_LDAPGIVENNAME', 'LDAP keresztnév');
+define('_LDAPMAIL', 'LDAP email');
+define('_LDAPHOMEPAGE', 'LDAP honlap');
+define('_LDAPURL', 'LDAP url');
+define('_LDAPTELEPHONENUMBER', 'LDAP telefonszám');
+define('_LDAPMOBILE', 'LDAP mobil szám');
+define('_LDAPYEAR', 'LDAP évfolyam');
+define('_LDAPCLASS', 'LDAP osztály');
+define('_LDAPL', 'LDAP város');
+define('_LDAPSTREET', 'LDAP utca');
+define('_LDAPPOSTALADDRESS', 'LDAP posta cím');
+define('_LDAPPOSTALCODE', 'LDAP irányítószám');
+define('_LDAPHOMEDIRECTORY', 'LDAP home könyvtár');
+define('_LDAPDESCRIPTION', 'LDAP leírás');
+define('_LDAPROOMNUMBER', 'LDAP teremszám');
+define('_LDAPREGISTERTIMESTAMP', 'LDAP beiratkozás dátuma');
+define('_LDAPPRIMARYSCHOOLOMCODE', 'LDAP OM kód');
+define('_LDAPCLASSTIMESTAMP', 'LDAP osztályba kerülés dátuma');
+define('_LDAPSTUDENTCARDNUMBER', 'LDAP diákigazolvány szám');
+define('_LDAPSTUDENTCARDTIMESTAMP', 'LDAP diákigazolvány dátuma');
+define('_LDAPTAXID', 'LDAP adószám');
+define('_LDAPBIRTHTIMESTAMP', 'LDAP születési dátum');
+define('_LDAPBIRTHLOCALITY', 'LDAP születési hely');
+define('_LDAPREGISTERNUMBER', 'LDAP regisztrációs szám');
+define('_LDAPDIARYNUMBER', 'LDAP napló sorszám');
+define('_LDAPSEX', 'LDAP nem');
+define('_LDAPGUARDIANCN', 'LDAP gondviselő neve');
+define('_LDAPMOTHERCN', 'LDAP anyja neve');
+define('_LDAPLOCALITYTIMESTAMP', 'LDAP lakcím dátuma');
+define('_LDAPTAJNUMBER', 'LDAP TAJ szám');
+define('_LDAPMEMBER', 'LDAP tag');
+define('_LDAPSTUDENTMEMBER', 'LDAP tanuló tag');
+define('_LDAPEXEMPTMEMBER', 'LDAP felmentett tag');
+define('_LDAPEXAMERMEMBER', 'LDAP vizsgázó tag');
+define('_LDAPMEMBERUID', 'LDAP tag azonosító');
+
+define('_LDAPSHADOWLASTCHANGE','LDAP shadow utolsó módosítás');
+define('_LDAPSHADOWEXPIRE','LDAP shadow lejár');
+define('_LDAPSHADOWWARNING','LDAP shadow figyelmeztetés');
+define('_LDAPSHADOWMIN','LDAP shadow minimális idő');
+define('_LDAPSHADOWMAX','LDAP shadow maximáis idő');
+define('_LDAPSHADOWINACTICE','LDAP shadow inaktív');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/backend/ldapng/attrs.php b/mayor-orig/www/lang/hu_HU/backend/ldapng/attrs.php
new file mode 100644
index 00000000..b85e5339
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/backend/ldapng/attrs.php
@@ -0,0 +1,63 @@
+<?php
+/*
+ Module: base/ldap
+*/
+
+// A kakukktojások
+define('_LDAPDN', 'LDAP Dn');
+define('_LDAPCN', 'LDAP teljes név');
+define('_LDAPSN', 'LDAP vezetéknév');
+define('_LDAPGIVENNAME', 'LDAP keresztnév');
+define('_LDAPEMPLOYEENUMBER','LDAP munkavállalói azonosító szám');
+define('_LDAPUID', 'LDAP azonosító');
+define('_LDAPUIDNUMBER', 'LDAP felhasználó azonosító szám');
+define('_LDAPGIDNUMBER', 'LDAP csoport azonosító szám');
+define('_LDAPUNIXHOMEDIRECTORY', 'LDAP home könyvtár');
+define('_LDAPLOGINSHELL', 'LDAP login shell');
+
+define('_LDAPSHADOWLASTCHANGE','LDAP shadow utolsó módosítás');
+define('_LDAPSHADOWEXPIRE','LDAP shadow lejár');
+define('_LDAPSHADOWWARNING','LDAP shadow figyelmeztetés');
+define('_LDAPSHADOWMIN','LDAP shadow minimális idő');
+define('_LDAPSHADOWMAX','LDAP shadow maximáis idő');
+define('_LDAPSHADOWINACTICE','LDAP shadow inaktív');
+
+// Ezek vannak egyáltalán???
+define('_LDAPGECOS', 'LDAP Gecos');
+define('_LDAPSTUDYID', 'LDAP oktatási azonosító');
+define('_LDAPMAIL', 'LDAP email');
+define('_LDAPHOMEPAGE', 'LDAP honlap');
+define('_LDAPURL', 'LDAP url');
+define('_LDAPTELEPHONENUMBER', 'LDAP telefonszám');
+define('_LDAPMOBILE', 'LDAP mobil szám');
+define('_LDAPYEAR', 'LDAP évfolyam');
+define('_LDAPCLASS', 'LDAP osztály');
+define('_LDAPL', 'LDAP város');
+define('_LDAPSTREET', 'LDAP utca');
+define('_LDAPPOSTALADDRESS', 'LDAP posta cím');
+define('_LDAPPOSTALCODE', 'LDAP irányítószám');
+define('_LDAPDESCRIPTION', 'LDAP leírás');
+define('_LDAPROOMNUMBER', 'LDAP teremszám');
+define('_LDAPREGISTERTIMESTAMP', 'LDAP beiratkozás dátuma');
+define('_LDAPPRIMARYSCHOOLOMCODE', 'LDAP OM kód');
+define('_LDAPCLASSTIMESTAMP', 'LDAP osztályba kerülés dátuma');
+define('_LDAPSTUDENTCARDNUMBER', 'LDAP diákigazolvány szám');
+define('_LDAPSTUDENTCARDTIMESTAMP', 'LDAP diákigazolvány dátuma');
+define('_LDAPTAXID', 'LDAP adószám');
+define('_LDAPBIRTHTIMESTAMP', 'LDAP születési dátum');
+define('_LDAPBIRTHLOCALITY', 'LDAP születési hely');
+define('_LDAPREGISTERNUMBER', 'LDAP regisztrációs szám');
+define('_LDAPDIARYNUMBER', 'LDAP napló sorszám');
+define('_LDAPSEX', 'LDAP nem');
+define('_LDAPGUARDIANCN', 'LDAP gondviselő neve');
+define('_LDAPMOTHERCN', 'LDAP anyja neve');
+define('_LDAPLOCALITYTIMESTAMP', 'LDAP lakcím dátuma');
+define('_LDAPTAJNUMBER', 'LDAP TAJ szám');
+define('_LDAPMEMBER', 'LDAP tag');
+define('_LDAPSTUDENTMEMBER', 'LDAP tanuló tag');
+define('_LDAPEXEMPTMEMBER', 'LDAP felmentett tag');
+define('_LDAPEXAMERMEMBER', 'LDAP vizsgázó tag');
+define('_LDAPMEMBERUID', 'LDAP tag azonosító');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/backend/mysql/attrs.php b/mayor-orig/www/lang/hu_HU/backend/mysql/attrs.php
new file mode 100644
index 00000000..cb44d932
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/backend/mysql/attrs.php
@@ -0,0 +1,22 @@
+<?php
+
+ define('_MYSQLUID', 'MySQL felhasználói azonosító szám');
+ define('_MYSQLPOLICY', 'MySQL hozzáférési szint');
+ define('_MYSQLCN', 'MySQL a felhasználó neve (cn)');
+ define('_MYSQLSTUDYID', 'MySQL oktatási azonosító');
+ define('_MYSQLUIDNUMBER', 'MySQL uid');
+ define('_MYSQLMAIL', 'MySQL e-mail cím');
+ define('_MYSQLTELEPHONENUMBER', 'MySQL telefonszám');
+ define('_MYSQLUSERPASSWORD', 'MySQL jelszó');
+ define('_MYSQLSHADOWLASTCHANGE', 'MySQL shadow utolsó módosítás');
+ define('_MYSQLSHADOWEXPIRE', 'MySQL shadow lejár');
+ define('_MYSQLSHADOWWARNING', 'MySQL shadow figyelmeztetés');
+ define('_MYSQLSHADOWMIN', 'MySQL shadow minimális idő');
+ define('_MYSQLSHADOWMAX', 'MySQL shadow maximális idő');
+ define('_MYSQLSHADOWINACTICE', 'MySQL shadow inaktív');
+
+ define('_MYSQLGID', 'MySQL csoport azonosító szám');
+ define('_MYSQLGROUPDESC', 'MySQL csoportnév');
+ define('_MYSQLGROUPCN', 'MySQL csoport azonosító');
+ define('_MYSQLMEMBER', 'MySQL csoporttag');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/base/base.php b/mayor-orig/www/lang/hu_HU/base/base.php
new file mode 100644
index 00000000..569d8c6f
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/base/base.php
@@ -0,0 +1,51 @@
+<?php
+/*
+
+ Module: base
+ File: base.php
+ Nyelv: hu_HU (magyar)
+
+*/
+
+define('_MAIN_TITLE','MaYoR - 5.0');
+define('_MAIN_FOOTER','<a href="http://www.mayor.hu./">MaYoR</a> - 2002-2017 &copy; <a href="LICENSE.txt">GPL</a>');
+
+define('_TANAR','tanár');
+define('_DIAK','diák');
+define('_TITKARSAG','titkárság');
+define('_GAZDASAGI','gazdasági');
+define('_EGYEB','egyéb');
+
+define('_ERROR','Hiba');
+define('_INFORMATION','Információ');
+
+define('_CONTROL_FLAG_REQUIRED','A bejelentkezés kötelező.');
+define('_CONTROL_FLAG_OPTIONAL','A bejelentkezés nem kötelező.');
+
+define('_PRIVATE_PASSWORD','Jelszó');
+define('_PARENT_PASSWORD','Szülői jelszó');
+define('_PUBLIC_PASSWORD','Külső jelszó');
+define('_MAYOR_DESC','MaYoR elektronikus napló program');
+
+define('_HELP','Súgó');
+define('_LOGOUT','Kilépés');
+define('_PASSWORD','Jelszó');
+define('_LOGIN_ALL_AUTH_LEVEL','Minden authentikációs szinten');
+define('_PRIVATE_LOGIN','Privát bejelentkezés');
+define('_PARENT_LOGIN','Szülői bejelentkezés');
+define('_PUBLIC_LOGIN','Külsős bejelentkezés');
+define('_LOGIN','Bejelentkezés');
+define('_SEARCH','Keresés');
+define('_SWITCH_TO_CLASSIC_SKIN','Alapértelmezett skinre váltás');
+
+define('_ICON_SEARCH','Keresés...');
+define('_ICON_SWAPNAV','Navigációs menüsáv változtatás');
+define('_ICON_VAKBARAT','Vakbarát nézet (ctrl-shift-V)');
+define('_ICON_OLDSCHOOL','Oldschool/Classic skin váltás');
+
+define('_HOME','Kezdőlap');
+
+define('_FACEBOOK_CONNECT','facebook');
+
+define('_CLOSE','bezár');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/date/names.php b/mayor-orig/www/lang/hu_HU/date/names.php
new file mode 100644
index 00000000..093d70de
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/date/names.php
@@ -0,0 +1,29 @@
+<?php
+/*
+ Module: naplo
+ File: names.php
+ Nyelv: hu_HU (magyar)
+*/
+
+ define('_MONDAY','Hétfő');
+ define('_TUESDAY','Kedd');
+ define('_WEDNESDAY','Szerda');
+ define('_THURSDAY','Csütörtök');
+ define('_FRIDAY','Péntek');
+ define('_SATURDAY','Szombat');
+ define('_SUNDAY','Vasárnap');
+
+ define('_JANUARY','Január');
+ define('_FEBRUARY','Február');
+ define('_MARCH','Március');
+ define('_APRIL','Április');
+ define('_MAY','Május');
+ define('_JUNE','Június');
+ define('_JULY','Július');
+ define('_AUGUSTUS','Augusztus');
+ define('_SEPTEMBER','Szeptember');
+ define('_OCTOBER','Október');
+ define('_NOVEMBER','November');
+ define('_DECEMBER','December');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-auth/forgotten.php b/mayor-orig/www/lang/hu_HU/module-auth/forgotten.php
new file mode 100644
index 00000000..26e1d838
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-auth/forgotten.php
@@ -0,0 +1,24 @@
+<?php
+
+ define('_GREETING','MaYoR jelszóemlékeztető');
+ define('_FORGOT_PASSWORD','Elfelejtetted a jelszavad?');
+ define('_ENTER_USERACCOUNT','Add meg a felhasználói azonosítód:');
+ define('_RESET_PASSWORD','Jelszó visszaállító e-mail kiküldése');
+ define('_FORGOT_PASSWORD_HELP','Az felhasználói azonosító megadása után a rendszer az azonosítóhoz rögzített e-mail címre küldi el a további tudnivalókat.');
+
+ define('_FORGOT_USERACCOUNT','Elfelejtetted a felhasználói azonosítódat?');
+ define('_ENTER_EMAIL','Add meg az e-mail címedet:');
+ define('_FORGOT_USERACCOUNT_HELP','Az email cím megadása után a rendszer - amennyiben a megadott email cím szerepel az adatbázisunkban - elküldi a további tudnivalókat.');
+
+ define('_FORGOT_INFO','A megadott e-mail címre elküldtük a további teendőket.');
+
+ define('_FORGOT_DISABLED','Válassz egy hitelesítési szintet!');
+
+ define('_BACK_TO_LOGIN','Vissza a belépéshez');
+
+ define('_EMAIL','E-mail cím');
+ define('_USERNAME','Felhasználói azonosító');
+
+ define('_KIVALASZT','OK');
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-auth/login.php b/mayor-orig/www/lang/hu_HU/module-auth/login.php
new file mode 100644
index 00000000..69b92895
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-auth/login.php
@@ -0,0 +1,19 @@
+<?php
+/* --------------------------- /
+
+ Module: base/login
+ File: login.php
+ Nyelv: hu_HU (magyar)
+
+/ --------------------------- */
+
+define('_GREETING','MaYoR bejelentkezés');
+define('_LOGIN','Belépés');
+define('_USERNAME','Felhasználói név');
+define('_PASSWORD','Jelszó');
+define('_CAPSLOCKWARNING','Caps Lock bekapcsolva!');
+define('_FORGOTTEN','Jelszóemlékeztető');
+
+define('_BELEPVE', 'Belépett');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/azonositok.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/azonositok.php
new file mode 100644
index 00000000..e0fdab6a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/azonositok.php
@@ -0,0 +1,11 @@
+<?php
+
+ define('__PAGETITLE','Azonosítók generálása');
+ define('_NEV','Név');
+ define('_AZONOSITO','Azonosító');
+ define('_JELSZO','Kezdő jelszó');
+ define('_OID','Oktatási azonosító');
+ define('_HASONLO_FELHASZNALOK','Hasonló felhasználók (név, vagy oId egyezés)');
+ define('_CONTAINER', 'Tároló');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/csoportok.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/csoportok.php
new file mode 100644
index 00000000..309619dd
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/csoportok.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('__PAGETITLE','Csoportok adminisztrálása');
+ define('_CSOPORT_MODOSITAS','Csoport módosítása');
+ define('_CSOPORT_TORLESE','Csoport törlése');
+ define('_TOROL','Töröl');
+ define('_UJ_CSOPORT','Új csoport felvétele');
+ define('_BIZTOS_E','Biztos törölni akarja a csoportot?');
+ define('_CSOPORT_NEVE','Csoport neve');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/fillhaladasi.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/fillhaladasi.php
new file mode 100644
index 00000000..86c23d01
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/fillhaladasi.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Haladási napló visszamenőleges feltöltése');
+ define('__PAGEHELP','A haladási napló visszamenőleges feltöltéséhez válassz ki egy intervallumot! A dátumok közé eső "tanítási nap"okra visszamenőlegesen a ki nem töltött haladási naplókba tölti be az órákat.');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/intezmenyek.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/intezmenyek.php
new file mode 100644
index 00000000..98ce19b9
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/intezmenyek.php
@@ -0,0 +1,28 @@
+<?php
+
+ define('_UJ_INTEZMENY','Új intézmény felvétele');
+ define('_INTEZMENY_MODOSITAS','Intézmény adatainak módosítása');
+ define('_INTEZMENY_TORLES','Intézmény törlése');
+ define('_FENNTARTO','Fenntartó');
+ define('_ALAPERTELMEZETT','alapértelmezett');
+ define('_ADATBAZISOK_TORLESE','az adatbázisok törlése');
+ define('_TORLES','Tölés');
+ define('_OMKOD','OM kód');
+ define('_ROVIDNEV','rövid azonosító');
+ define('_NEV','Intézmény neve');
+ define('_OK','OK');
+ define('_HELYSEG','Helység');
+ define('_IRSZ','Irányítószám');
+ define('_KOZTERULETNEV','Közterület neve');
+ define('_KOZTERULETJELLEG','Közterület jellege');
+ define('_HAZSZAM','Házszám');
+
+ define('_TELEPHELYROVIDNEV','rövid név');
+ define('_TELEPHELYNEV','Telephely neve');
+ define('_TELEFON','telefon');
+ define('_FAX','fax');
+ define('_EMAIL','e-mail');
+ define('_HONLAP','honlap');
+ define('_TELEPHELY_MODOSITAS','telephely módosítása');
+ define('_UJ_TELEPHELY','Új telephely felvétele');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/rpcPrivilege.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/rpcPrivilege.php
new file mode 100644
index 00000000..97fd02bd
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/rpcPrivilege.php
@@ -0,0 +1,12 @@
+<?php
+
+ define('__PAGETITLE','RPC hozzáférési jogosultságok');
+ define('_ADD','Felvesz');
+ define('_ACCOUNT','Felhasználó');
+ define('_NODE','Végpont');
+ define('_NODEID','Végpont azonosító');
+ define('_INTEZMENY','Intézmény');
+ define('_OMKOD','OM kód');
+ define('_PRIVS','Jogosulságok');
+ define('_UJ_VEGPONT','Új végpont hozzáadása');
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/szemeszterek.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/szemeszterek.php
new file mode 100644
index 00000000..b1994131
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/szemeszterek.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('__PAGETITLE','Szemeszter adatai');
+
+ define('_IDOSZAKOK','Időszakok');
+ define('_UJ_IDOSZAK','Új időszak');
+ define('_TOLDT','mettől-meddig');
+ define('_IGDT','-');
+ define('_TIPUS','tipus');
+ define('_TORLENDO','Törlendő');
+ define('_TORLES','Törlés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/szuloiAzonositok.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/szuloiAzonositok.php
new file mode 100644
index 00000000..72d2b243
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/szuloiAzonositok.php
@@ -0,0 +1,19 @@
+<?php
+
+ define('__PAGETITLE','Szülői azonosítók generálása');
+ define('_JELSZO','Kezdő jelszó');
+ define('_NEV','Név');
+ define('_CONTAINER', 'Tároló');
+
+ define('_ANYANEV','Anya neve');
+ define('_ANYAAZONOSITO','Anya azonosítója');
+ define('_ANYA_FELHASZNALO','Felhasználó nev');
+ define('_ANYA_HASONLO_NEV','Hasonló felhasználók (név)');
+
+ define('_APANEV','Apa neve');
+ define('_APAAZONOSITO','Apa azonosítója');
+ define('_APA_FELHASZNALO','Felhasználó nev');
+ define('_APA_HASONLO_NEV','Hasonló felhasználók (név)');
+
+ define('_ELHUNYT', 'elhunyt');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/tanevek.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/tanevek.php
new file mode 100644
index 00000000..37050adf
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/tanevek.php
@@ -0,0 +1,26 @@
+<?php
+
+ define('_UJ_TANEV','Új (tervezett) tanév felvétele');
+ define('_TANEV_JELE','Tanév jele (tanév kezdetének éve)');
+ define('_SZEMESZTER','szemeszter');
+ define('_TANEV_SZEMESZTEREI','Tanév szemeszterei');
+ define('_TANEV_AKTIVALAS','Tanév megnyitása');
+ define('_AKTIVAL','Megnyitás');
+ define('_TANEV_LEZARAS','Tanév lezárása');
+ define('_LEZAR','Lezár');
+ define('_TOROL','Töröl/Módosít');
+ define('_OK','OK');
+ define('_ZARASDT','Szemeszter zárás dátuma');
+ define('_KEZDESDT','Szemeszter kezdetének dátuma');
+ define('_TERVEZETT','tervezett');
+
+ define('_TANEV_ZARASDT','Tanév lezárásának dátuma');
+ define('_TAJEKOZTATO','A tanév lezárásakor ajánlott tevékenységek: haladási- és osztályozónapló nyomtatása, mentés, archiválás, felmenő tankörök óraszámainak felvétele!');
+
+ define('_VEGZOSOK_JOGVISZONYANAK_LEZARASA','Végzős tanulók jogviszonyának lezárása');
+ define('_VEGZOS_OSZTALYOK_LEZARASA','Végzős osztályok lezárása (tagok és osztályfőnökök kiléptetése)');
+ define('_VEGZOS_TANKOROK_LEZARASA','Végzős tankörök lezárása (csak ha a felmenő tankörök óraszámai ki vannak töltve!!!)');
+ define('_VEGZOSOK_AZONOSITOINAK_TORLESE','A megszűnt jogviszonyú tanulók felhasználói azonosítóinak törlése');
+ define('_VEGZOSOK_SZULOI_AZONOSITOINAK_TORLESE','Végzős (megszűnt jogviszonyú) szülői azonosítók törlése');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/admin/tankorok.php b/mayor-orig/www/lang/hu_HU/module-naplo/admin/tankorok.php
new file mode 100644
index 00000000..1aa022e0
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/admin/tankorok.php
@@ -0,0 +1,5 @@
+<?php
+
+define('_FIELDSELECTMESSAGE','A betöltendő file tartalmazhat targyId-t és targyNev mezőt is (Ha új tankört veszünk fel, akkor valamelyiket kell is tartalmaznia!). Ha egy sorban mindkettő szerepel, akkor a targyId-t vesszük figyelembe.');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/base.php b/mayor-orig/www/lang/hu_HU/module-naplo/base.php
new file mode 100644
index 00000000..17370d24
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/base.php
@@ -0,0 +1,60 @@
+<?php
+
+ define('__MUNKAKOZOSSEGSELECTTITLE','munkaközösség');
+ define('__TARGYSELECTTITLE','tárgy');
+ define('__INTEZMENYSELECTTITLE','intézmény');
+ define('__TANEVSELECTTITLE','tanév');
+ define('__SZEMESZTERSELECTTITLE','szemeszter');
+ define('__TARGYSORRENDSELECTTITLE','tárgysorrend');
+ define('__TABLESELECTTITLE','sql-táblák');
+ define('__OSZTALYSELECTTITLE','osztály');
+ define('__TANMENETSELECTTITLE','tanmenet');
+ define('__TANARSELECTTITLE','tanár');
+ define('__DIAKSELECTTITLE','diák');
+ define('__DIAKLAPOZOTITLE','diák');
+ define('__TANKORSELECTTITLE','tankör');
+ define('__DATUMSELECTTITLE','dátum');
+ define('__DATUMTOLIGSELECTTITLE','dátum');
+ define('__ORASELECTTITLE','óra');
+ define('__TEREMSELECTTITLE','terem');
+ define('__ORARENDIHETSELECTTITLE','hét');
+ define('__KEPZESSELECTTITLE','képzés');
+ define('__SZULOSELECTTITLE','szülő/nevelő');
+ define('__KERDOIVSELECTTITLE','kérdőív');
+ define('__EVFOLYAMSELECTTITLE','évfolyam');
+ define('__TELEPHELYSELECTTITLE','telephely');
+ define('__FELEVSELECTTITLE','félév');
+ define('__KERELEMSTATTITLE','kérelem statisztika');
+ define('__MUNKATERVSELECTTITLE','munkaterv');
+
+ define('__ESEMENYSELECTTITLE','esemény');
+ define('__EVFOLYAMJELSELECTTITLE','évfolyam-jel');
+
+ define('_FOGLALT_ORAK','foglalt órák');
+
+ define('__HET','hét');
+
+ define('_UJ_ORARENDIHET','új hét'); // orarendiHetSelect
+
+ define('_OK','ok');
+ define('_DELETE','töröl');
+
+ define('_ORA','óra');
+ define('_NAP','nap');
+ define('_EV','év');
+
+ // Kell ez?? Ld. share/hianyzas...
+ if (!defined('_ORVOSI')) define('_ORVOSI','orvosi igazolás');
+ if (!defined('_SZULOI')) define('_SZULOI','szülői igazolás');
+ if (!defined('_TANULMANYI_VERSENY')) define('_TANULMANYI_VERSENY','verseny');
+ if (!defined('_NYELVVIZSGA')) define('_NYELVVIZSGA','vizsga');
+ if (!defined('_OSZTALYFONOKI')) define('_OSZTALYFONOKI','osztályfőnöki igazolás');
+ if (!defined('_IGAZGATOI')) define('_IGAZGATOI','igazgatói igazolás');
+ if (!defined('_HATOSAGI')) define('_HATOSAGI','hatósági igazolás');
+ if (!defined('_PALYAVALASZTAS')) define('_PALYAVALASZTAS','pályaválasztás');
+
+ if (!defined('_IGAZOLATLAN')) define('_IGAZOLATLAN','igazolatlan');
+ if (!defined('_TOROLT')) define('_TOROLT','törölt');
+
+ define('_NEV','Név');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesTipus.php b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesTipus.php
new file mode 100644
index 00000000..7b267076
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesTipus.php
@@ -0,0 +1,11 @@
+<?php
+
+ define('__PAGETITLE','Bejegyzés típusok kezelése');
+ define('_FOKOZAT','fokozat');
+ define('_DARAB_IGAZOLATLAN_HIANYZAS_ESETEN','db igazolatlan hiányzás esetén');
+ define('_JOGOSULT','beírásra jogosult');
+ define('_UTOLSO_TORLESE','Utolsó fokozat törlése');
+ define('_BIZTOS_TOROL_E','Biztosan törli az utolsó fokozatot?');
+ define('_UJ_FOKOZAT','Új fokozat felvétele');
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesek.php b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesek.php
new file mode 100644
index 00000000..ed0b360a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/bejegyzesek.php
@@ -0,0 +1,15 @@
+<?php
+/* -------------------------------------- /
+
+ Module: naplo
+ File: bejegyzesek.php
+ Nyelv: hu_HU (magyar)
+
+/ -------------------------------------- */
+
+ define('__PAGETITLE','Bejegyzések');
+ define('_UZENET','Üzenet');
+ define('_TOROL','Töröl');
+ define('_UJBEJEGYZES','Új bejegyzés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/info.php b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/info.php
new file mode 100644
index 00000000..e77c9ed1
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/info.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Aktuális bejegyzések');
+ define('_BEJEGYZESEK_SZAMA','Elmúlt heti bejegyzések száma');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/ujBejegyzes.php b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/ujBejegyzes.php
new file mode 100644
index 00000000..8c8e9d05
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/bejegyzesek/ujBejegyzes.php
@@ -0,0 +1,18 @@
+<?php
+/* -------------------------------------- /
+
+ Module: naplo
+ File: uj_bejegyzes.php
+ Nyelv: hu_HU (magyar)
+
+/ -------------------------------------- */
+
+ define('__PAGETITLE','Új bejegyzés');
+ define('_UZENET','üzenet');
+ define('_ROGZIT','Rögzít');
+ define('_MEGJEGYZES','Megjegyzés');
+ define('_BEJEGYZESEK','Bejegyzések');
+ define('_EVVEGI','Tanévvégi bejegyzés');
+ define('_SUGO_EVVEGI','A tanévvégi bejegyzések, dicséretek rákerülnek a nyomtatott törzslapra.');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/diakValaszto.php b/mayor-orig/www/lang/hu_HU/module-naplo/diakValaszto.php
new file mode 100644
index 00000000..3eb0995f
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/diakValaszto.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Diák választó');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/ertekeles.php b/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/ertekeles.php
new file mode 100644
index 00000000..8c465ab1
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/ertekeles.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Értékelő kérdőív kitöltése');
+ define('_MAR_MEGVALASZOLT_KERDES','Már megválaszolt kérdés.');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/kerdoivBetoltes.php b/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/kerdoivBetoltes.php
new file mode 100644
index 00000000..bc800683
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/kerdoivBetoltes.php
@@ -0,0 +1,28 @@
+<?php
+
+ define('__PAGETITLE','Értékelő kérdőív betöltése');
+
+ define('_CIM', 'Cím');
+ define('_ERVENYESSEG','Érvényesség');
+ define('_KERDESEK_VALASZOK', 'Kérdések és válaszok (kérdés, válaszok, üres sor, kérdés, ...)');
+
+/*
+ define('_FELADO', 'A kérdőívet kitöltők köre');
+ define('_FELADO_TANAR', 'tanárok');
+ define('_FELADO_DIAK', 'diákok');
+ define('_FELADO_SZULO', 'szülők');
+*/
+ define('_OSSZES','összes');
+ define('_CIMZETT', 'A kérdőív címzettjei');
+ define('_CIMZETT_TANAR', 'tanárok');
+ define('_CIMZETT_DIAK', 'diákok');
+ define('_CIMZETT_SZULO', 'szülők');
+ define('_CIMZETT_TANKOR', 'tankörök diákjai');
+ define('_CIMZETT_TANKORSZULO', 'tankör tagjainak szülei');
+ define('_CIMZETT_OSZTALY', 'osztály diákjai');
+ define('_CIMZETT_MUNKAKOZOSSEG','munkaközösségek tanárai');
+ define('_CIMZETT_OSZTALYSZULO', 'osztály tagjainak szülei');
+ define('_MEGJEGYZES','Megjegyzés');
+ define('_TOVABBI_CIMZETTEK', 'További címzettek');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/osszesites.php b/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/osszesites.php
new file mode 100644
index 00000000..e0f89ff8
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/ertekeles/osszesites.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Értékelő kérdőív összesítése');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/esemenyDiak.php b/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/esemenyDiak.php
new file mode 100644
index 00000000..5c69f2ba
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/esemenyDiak.php
@@ -0,0 +1,21 @@
+<?php
+
+ define('__PAGETITLE','Eseményre jelentkezők névsora');
+
+ define('_NEVSOR','Névsor');
+ define('_OSZTALYOK','Osztályok');
+ define('_DIAKOK','Diákok');
+
+ define('_JELENTKEZES','Jelentkezés');
+ define('_JOVAHAGYAS','Jóváhagyás');
+ define('_DIAK_TOROL_E','Biztosan törli a diák jelentkezését?');
+ define('_ELUTASIT','Törli a jóváhagyást?');
+ define('_JOVAHAGY','Jóváhagyja a jelentkezést?');
+
+ define('_SUGO_NEVSOR','Az ikonokra kattintava törölheted, vagy jóváhagyhatod a jelentkezést, illetve visszavonhatod a jóváhagyást.');
+ define('_SUGO_OSZTALYOK','Az osztály jelére kattintva megjelenik az osztály névsora, melyből kiválaszthatod a jelentkeztetni kívánt diákokat.');
+ define('_SUGO_DIAKOK','A jelentkeztetésre kiszemelt tanulót dupla kattintással, vagy az ENTER lenyomásával választhatod ki, majd a névsor alatti OK gomb megnyomásával véglegesítheted a jelentkezést.');
+
+ define('_ESEMENYMODOSITAS','Esemény adatainak módosítása');
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/jelentkezes.php b/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/jelentkezes.php
new file mode 100644
index 00000000..eefd4efe
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/jelentkezes.php
@@ -0,0 +1,17 @@
+<?php
+
+ define('__PAGETITLE','Jelentkezés eseményre');
+ //define('__PAGEHELP','Ez a jelentkezés');
+
+ define('_JELENTKEZES','Jelentkezés');
+ define('_ESEMENYNEV','Esemény megnevezése');
+ define('_KATEGORIA','Kategória');
+ define('_LETSZAM','Létszám');
+ define('_MINMAX','Min-Max');
+ define('_JOVAHAGYAS','Jóváhagyás');
+ define('_OSSZES_AKTUALIS','Összes/Aktuális');
+
+ define('_FELVESZ','felvesz');
+ define('_LEAD','lead');
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/ujEsemeny.php b/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/ujEsemeny.php
new file mode 100644
index 00000000..3ff82820
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/esemeny/ujEsemeny.php
@@ -0,0 +1,25 @@
+<?php
+
+ define('__PAGETITLE','Esemény felvétele');
+
+ define('_ROVIDNEV','Rövid név');
+ define('_ESEMENYNEV','Szabatos megnevezés');
+ define('_KATEGORIA','kategória');
+ define('_LEIRAS','Leírás');
+ define('_JELENTKEZES','Jelentkezési időszak');
+ define('_LETSZAM_KORLAT','Létszámkorlát');
+ define('_TANAROK','Felelős tanárok');
+ define('_OSZTALYOK','Hozzárendelt osztályok');
+ define('_TOROL','Esemény törlése');
+ define('_ESEMENY_TOROL_E','Biztosan törli az eseményt és az összes hozzá kapcsolódó adatot, jelentkezést?');
+
+ define('_SUGO_ROVIDNEV','Ez a név jelenik meg a programban a legtöbb helyen.');
+ define('_SUGO_ESEMENYNEV','Szabatos megnevezés, verseny esetén a pontos, hivatalos név, közösségi szolgálat esetén a befogadó intézet hivatalos neve, stb...');
+ define('_SUGO_LEIRAS','A leírás mezőbe vehető fel minden fontos információ: nevezési díj, fordulók időpontja, közösségi szolgálat helyszíne, időpontjai, stb.');
+ define('_SUGO_JELENTKEZES','Jelentkezési időszak kezdetének és lezárásának időpontja');
+ define('_SUGO_LETSZAM_KORLAT','Létszámkorlát egy minimális és egy maximális létszámmal adható meg. A felső korlát 0 értéke azt jelzi, hogy nincs korlátozás.');
+ define('_SUGO_TANAROK','Új tanár hozzáadásához kattints duplán a listára, vagy nyomd meg a plusz gombot, majd a megjelenő listában jelöld ki a hozzáadandó tanárokat dupla kattintással, az ENTER megnyomásával, vagy a plusz gombra kattintással. Törléshez - a kielölés után - használd a Del gombot, vagy a minusz jelű gombra kattints!');
+ define('_SUGO_OSZTALYOK','Csak a megjelölt osztályok tanulói jelentkezhetnek az adott eseményre.');
+
+ define('_ESEMENYJELENTKEZOK','A jelentkezők névsorának kezelése');
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/export/bizonyitvany.php b/mayor-orig/www/lang/hu_HU/module-naplo/export/bizonyitvany.php
new file mode 100644
index 00000000..7586a61b
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/export/bizonyitvany.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('__PAGETITLE','Bizonyítvány adatok exportja');
+ define('_CSV','.csv (struktúrált szöveg - UTF-8)');
+ define('_ODS','.ods (Openoffice.org Calc)');
+ define('_XML','.xml (Microsoft Excel XML)');
+ define('_FORMATUM','Formátum');
+ define('_EXPORT','Export');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/export/diakExport.php b/mayor-orig/www/lang/hu_HU/module-naplo/export/diakExport.php
new file mode 100644
index 00000000..7e7ccb30
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/export/diakExport.php
@@ -0,0 +1,76 @@
+<?php
+
+ define('__PAGETITLE','Diákok adatainak exportálása');
+
+ define('_EXPORT','Adatok exportálása');
+ define('_SZULO_ADATOKKAL','Szülő adatokkal');
+ define('_OSZTALY_ADATOKKAL','Osztály adatokkal');
+ define('_FORMATUM','Formátum');
+ define('_CSV','.csv (OpenOffice.org)');
+ define('_XLS','.xls (Microsoft Excel XML)');
+ define('_XML','.xml (Microsoft Excel XML)');
+ define('_HTML','Weblapként (html)');
+ define('_BEALLITASOK', 'Beállítások');
+ define('_MEGJELENITENDO_MEZOK','Megjelenítendő mezők kiválasztása');
+
+/*
+ define('_PDF','.pdf (Adobe Acrobat Reader)');
+ define('_LEZARAS','Lezárás');
+ define('_JOGVISZONY_VEGE','Jogviszony vége');
+ define('_JOGVISZONY_LEZARASA','Jogviszony lezárása');
+ define('_BIZTOS_LEZARJA','Biztos lezárja a tanuló jogviszonyát?');
+
+ define('_JOGVISZONY_MEGNYITASA','Jogviszony megnyitása');
+ define('_JOGVISZONY_KEZDETE','Jogviszony kezdete');
+ define('_VEGZO_TANEV','Végzés (várható) tanéve');
+ define('_VEGZO_SZEMESZTER','Végző szemeszter');
+ define('_KEZDO_TANEV','Beiratkozás tanéve');
+ define('_KEZDO_SZEMESZTER','Beiratkozás szemesztere');
+ define('_MEGNYITAS','Megnyitás');
+ define('_BIZTOS_MEGNYITJA','Biztos újra megnyitja a tanulói jogviszonyt?');
+ define('_DIAK_TANULMANYI_ADATOK','Tanulmányi adatok');
+
+ define('_MAGANTANULOI_STATUS','Magántanulóvá nyilvánítás');
+ define('_MAGANTANULOI_STATUS_ELETBELEPESE','Magántanulói stárusz életbelépése');
+ define('_BIZTOS_MAGANTANULO_LESZ','Biztos magántanulóvá kívánja tenni?');
+
+ define('_DIAK_OSZTALYA','Osztálya');
+ define('_DIAK_ADATAI','Diák adatai');
+ define('_DIAK_ALAPADATAI','Diák adatai (alap)');
+ define('_DIAK_SZULETESI_ADATAI','Születési adatok');
+ define('_DIAK_CIM_LAKHELY','Lakhely');
+ define('_DIAK_CIM_TART','Tartózkodási hely / Értesítési cím');
+ define('_DIAK_ELERHETOSEG','Elérhetőség');
+ define('_DIAK_SZULO','Szülők');
+ define('_NEV','Név');
+ define('_OID','Oktatási&nbsp;azonosító');
+ define('_NEM','Neme');
+ define('_DIAKIGAZOLVANYSZAM','Diákigazolványszám');
+ define('_ALLAMPOLGARSAG','Állampolgárság');
+ define('_TAJSZAM','Tajszám');
+
+ define('_SZULETESKORINEV','Születéskori név');
+ define('_SZULETESIHELY','Születési hely');
+ define('_SZULETESIIDO','Születési idő');
+ define('_SZULETES','');
+
+ define('_ORSZAG','Ország');
+ define('_IRSZ','Irányítószám');
+ define('_HELYSEG','Helység');
+ define('_KOZTERULETNEV','Közterület');
+ define('_HAZSZAM','Házszám');
+ define('_EMELET','Emelet');
+ define('_AJTO','Ajtó');
+
+ define('_EMAIL','e-mail cím');
+ define('_TELEFON','telefon');
+ define('_MOBIL','mobiltelefon');
+
+ define('_ANYA','anya');
+ define('_APA','apa');
+ define('_GONDVISELO','gondviselo');
+
+ define('_UJ_DIAK','Új diák felvétele');
+ define('_TERVEZETT_KEZDO_TANEV','Beiratkozás (várható) tanéve');
+*/
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/export/kirBizonyitvanyExport.php b/mayor-orig/www/lang/hu_HU/module-naplo/export/kirBizonyitvanyExport.php
new file mode 100644
index 00000000..b0780622
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/export/kirBizonyitvanyExport.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Bizonyítvány adatok exportja (KIR)');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/export/kreta.php b/mayor-orig/www/lang/hu_HU/module-naplo/export/kreta.php
new file mode 100644
index 00000000..0d4b0746
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/export/kreta.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','MaYoR-KRÉTA Export');
+
+ define('_EXPORT','Exportálás');
+ define('_LETOLTES','Letöltés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/export/sulix.php b/mayor-orig/www/lang/hu_HU/module-naplo/export/sulix.php
new file mode 100644
index 00000000..cc583697
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/export/sulix.php
@@ -0,0 +1,7 @@
+<?php
+
+ define('__PAGETITLE','Együttműködés SuliXerverrel');
+
+ define('_EXPORT','Felhasználói azonosítók exportálása');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/export/tanarOsztalyOraszam.php b/mayor-orig/www/lang/hu_HU/module-naplo/export/tanarOsztalyOraszam.php
new file mode 100644
index 00000000..b7c8e6b2
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/export/tanarOsztalyOraszam.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','MaYoR Tanár-osztály óraszám mátrix export');
+
+ define('_EXPORT','Exportálás');
+ define('_LETOLTES','Letöltés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/export/tantargyFelosztas.php b/mayor-orig/www/lang/hu_HU/module-naplo/export/tantargyFelosztas.php
new file mode 100644
index 00000000..4f294747
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/export/tantargyFelosztas.php
@@ -0,0 +1,12 @@
+<?php
+
+ define('__PAGETITLE','Tantárgyfelosztás - export');
+
+ define('_CSV','.csv (struktúrált szöveg - UTF-8)');
+ define('_ODS','.ods (Openoffice.org Calc)');
+ define('_XML','.xml (Microsoft Excel XML)');
+ define('_FORMATUM','Formátum');
+ define('_EXPORT','Export');
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elmaradas.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elmaradas.php
new file mode 100644
index 00000000..fb922ff5
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elmaradas.php
@@ -0,0 +1,7 @@
+<?php
+
+ define('_LEZART','lezárt');
+ define('_BEIRANDO','beírandó');
+ define('_HATARIDO','határidő');
+ define('_MAIDATUM','mai dátum');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elszamolas.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elszamolas.php
new file mode 100644
index 00000000..23375ec6
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/elszamolas.php
@@ -0,0 +1,19 @@
+<?php
+
+ define('__PAGETITLE','Haladási naplóba rögzített órák');
+
+ define('_HETI_MUNKAORA','Heti munkaóra');
+ define('_ELOIRT_HETI_MUNKAORA','előírt heti munkaóra');
+ define('_HETI_ORASZAM','referencia óraszám');
+ define('_ORARENDBOL','órarend alapján');
+ define('_TANTARGYFELOSZTASBOL','tantárgyfelosztás szerint');
+ define('_MEGTARTOTT_ORAK','Megtartott órák');
+ define('_NAPRA_VETITVE','napra vetítve');
+ define('_TIK','Tanítási időkeret');
+ define('_TIK_TITLE','(tanítási + speciális tanítási napok száma)*(heti óraszám / 5)');
+ define('_TM','Teljesítménymutató');
+ define('_TM_TITLE','Összes megtartott órák száma - tik');
+ define('_MUNKATERV','munkaterv');
+ define('_KOTOTT_MUNKAIDO','kötött munkaidő');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/haladasi.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/haladasi.php
new file mode 100644
index 00000000..023785f5
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/haladasi.php
@@ -0,0 +1,38 @@
+<?php
+/* -------------------------------------- /
+
+ Module: naplo
+ File: haladasi.php
+ Nyelv: hu_HU (magyar)
+
+/ -------------------------------------- */
+
+ define('__PAGETITLE','Haladási napló');
+ define('_DATUM','dátum');
+ define('_ORA','óra');
+ define('_TANKOR','tankör');
+ define('_TANAR','tanár');
+ define('_ORASZAM','óraszám');
+ define('_TANANYAG','tananyag');
+ define('_IDOSZAK','időszak');
+ define('_HALADASI_NAPLO','haladási napló');
+ define('_BEJELENTETT_DOLGOZAT','bejelentett dolgozat');
+ define('_BEJELENTVE','bejelentve');
+ define('_MODOSIT','módosít');
+ define('_ROGZIT','rögzít');
+ define('_NINCS_BEIRVA','nincs beírva');
+ define('_HIANYZOK','hiányzók');
+ define('_HET','órarendi hét');
+ define('_NINCS_ORAJA','Erre a napra (még) nincs óra bejegyezve.');
+ define('_HETESEK','Hetesek');
+ define('_TANITASI_NAP','tanítási nap');
+ define('_TANMENET','tanmenet...');
+ define('_TANMENET_RESZLETEI','tanmenet részletei');
+
+ define('_TANKOR_HALADASI','tankör haladási naplója');
+ define('_FELADAT_TIPUS','-- feladatok --');
+ define('_PLUSZ_FELADATOK','plusz feladatok');
+ define('_TOROL','töröl');
+ define('_BEALLITASAI', 'beállításai');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/helyettesites.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/helyettesites.php
new file mode 100644
index 00000000..6e37f942
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/helyettesites.php
@@ -0,0 +1,22 @@
+<?php
+
+// define('_HELYETTESITES','Helyettesítés');
+ define('__PAGETITLE','Helyettesítés');
+
+ define('_DATUM_VALASZTAS','dátum kiválasztás');
+ define('_HIANYZO_TANAROK','hiányzó tanárok');
+ define('_JELENLEVO_TANAROK','jelenlévő tanárok');
+ define('_ORA','óra');
+ define('_VISSZAALLIT','visszaállít');
+ define('_KEZI_BEALLITAS','Kézi beállítás');
+ define('_ORA_MOZGATAS','Óra mozgatása');
+ define('_MOZGATANDO','Mozgatandó óra');
+ define('_UJ_IDOPONT','Új időpont');
+ define('_CSERELENDO','Cserélendő óra');
+ define('_ORA_CSERE','Óra csere');
+ define('_CSERE_ATTEKINTES','Csere/mozgatás áttekintése');
+ define('_MIT','Mozgatott óra');
+ define('_HONNAN','Honnan');
+ define('_HOVA','Hova');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/hetes.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/hetes.php
new file mode 100644
index 00000000..70b6bf8a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/hetes.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Hetesek');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/minuszora.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/minuszora.php
new file mode 100644
index 00000000..ab8aa0aa
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/minuszora.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Óra elmaradás rögzítése');
+ define('_ELMARAD', 'Elmarad');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/ora.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/ora.php
new file mode 100644
index 00000000..d1c296b3
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/ora.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('__PAGETITLE','Óra');
+ define('_EREDET','eredet');
+ define('_PLUSZ','plusz óra');
+ define('_ORAREND','órarendi óra');
+ define('_ORA_FELVETELE','Óra felvétele');
+ define('_ORAI','órái');
+ define('_OSZTALY','osztály');
+ define('_ORA', 'óra');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/oralatogatas.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/oralatogatas.php
new file mode 100644
index 00000000..3b5854fb
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/oralatogatas.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('__PAGETITLE', 'Óralátogatás');
+
+ define('_MEGJEGYZES','megjegyzés');
+ define('_LATOGATO','látogató tanár');
+
+ define('_TOROL','töröl');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/osszevonas.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/osszevonas.php
new file mode 100644
index 00000000..26ff1bd7
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/osszevonas.php
@@ -0,0 +1,19 @@
+<?php
+/*
+ module: naplo
+ file: pluszora.php
+ nyelv: hu_HU (magyar)
+*/
+
+ define('__PAGETITLE','Összevonás');
+ define('_EREDET','Eredet');
+ define('_PLUSZ','plusz óra');
+ define('_ORAREND','órarendi óra');
+ define('_ORA_FELVETELE','Óra felvétele');
+ define('_ORA_FELVETELE_CONFIRM','Biztos ezt akarod?');
+ define('_ORAI','órái');
+ define('_OSZTALY','osztály');
+ define('_ORA', 'óra');
+ define('_TORLENDOK','Az összevonás a következő tankörök óráinak elmaradásával jár');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/pluszora.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/pluszora.php
new file mode 100644
index 00000000..b6e24743
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/pluszora.php
@@ -0,0 +1,23 @@
+<?php
+/*
+ module: naplo
+ file: pluszora.php
+ nyelv: hu_HU (magyar)
+*/
+
+ define('__PAGETITLE','Plusz óra felvétele');
+ define('__PAGEHELP','Válassz dátumot és órát a csoportos vagy egyéni pluszóra felvételhez.');
+ define('_EREDET','Eredet');
+ define('_PLUSZ','plusz óra');
+ define('_ORAREND','órarendi óra');
+ define('_ORA_FELVETELE','Óra felvétele');
+ define('_ORAI','órái');
+ define('_OSZTALY','osztály');
+ define('_ORA', 'óra');
+
+ define('_CSOPORTOS_PLUSZORA','Csoportos pluszfeladat előírás');
+ define('_TANAROK','Tanárok');
+ define('_FELADAT','Feladat');
+ define('_LEIRAS','Leírás');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/specialis.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/specialis.php
new file mode 100644
index 00000000..5849dcc1
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/specialis.php
@@ -0,0 +1,39 @@
+<?php
+/*
+ module: naplo
+ file: specialis.php
+ nyelv: hu_HU (magyar)
+*/
+
+ define('__PAGETITLE','Speciális tanítási nap');
+ define('__PAGEHELP','Speciális napot üres "tanítási" vagy "speciális tanítási" napra lehet összerakni. Ha van olyan munkaterv, melyben a megadott nap
+nem "tanítási nap", akkor a hozzá tartozó osztályok tanköreinek órái nem fognak betöltődni. Ez a művelet tehát figyelembe veszi a munkaterveket. A többi
+- órák törlése és nap típusának állítása, órák betöltése és órarendi hét beállítása - mindig minden munkatervre vonatkozik.
+
+A "Beállítás az órák törlésével" minden adott napi órát töröl és beállítja minden munkatervben a megadott nap típust (ha nincs megadva nap típus, akkor nem módosít!).
+Az "Órák betöltése" minden munkatervben beállítja a megadott órarendi hetet és a nap típsát is "tanítási nap"-ra változtatja.
+A "Foglalt sávok törlése" is az összes érintett sávban lévő órát törli és minden munkatervben "speciális tanítási nap"-ot állít be.');
+ define('_NAP_TIPUSA','A nap típusa');
+ define('_ORAK_TORLESE','Beállítás az órák törlésével');
+ define('_TORLES_BIZTOS_E','Biztosan törölni akarod az adott nap összes óráját?');
+ define('_ORAK_BETOLTESE','Órarendi órák betöltése');
+ define('_ORARENDIHET','Órarendi hét');
+ define('_BETOLTES_BIZTOS_E','Biztosan betöltsük az órarendnek megfelelő órákat és beállítsuk a nap típusát tanítási nap-ra?');
+ define('_FOGLALT_SAVOK_TORLESE','Foglalt sávok törlése');
+ define('_TORLENDO','Törlendő');
+ define('_FOGLALT_ORA','Foglalt sáv');
+ define('_TORLES','Töröl!');
+ define('_ORA_TORLES_BIZTOS_E','Biztosan törölni akarod véglegesen a kijelölt sávok óráit?');
+ define('_HET','hét');
+ define('_NAP','nap');
+ define('_OK','OK');
+ define('_SZABAD_ORA','szabad sáv');
+ define('_ORA','óra');
+ define('_SPECIALIS_NAP','Speciális órarendű nap összeállítása');
+ define('_ORAREND_OSSZEALLITASA','Órarend összeállítása');
+ define('_MUNKATERV','Munkaterv');
+ define('_TIPUS','Típus');
+ define('_MEGJEGYZES','Megjegyezés');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/stat.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/stat.php
new file mode 100644
index 00000000..43fe3efe
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/stat.php
@@ -0,0 +1,23 @@
+<?php
+
+ define('__PAGETITLE','Statisztika');
+
+ define('_TANKORNEV','Tankör');
+ define('_MEGTARTOTT_ORASZAM','Megtartott');
+ define('_BECSULT_HATRALEVO_ORASZAM','Becsült hátralévő');
+ define('_BECSULT_OSSZES_ORASZAM','Becsült összes');
+ define('_TERVEZETT_ORASZAM','Tervezett');
+ define('_TANKOR_JEGYEK_SZAMA','Érdemjegyek száma');
+
+ define('_HIANYZAS_ARANY','Hiányzás arány<br/>(megtartott|tervezett)');
+ define('_MEGTARTOTTHOZ_KEPEST','');
+ define('_DB','db.');
+
+ define('_JEGYEK_SZAMA','Érdemjegyek száma');
+ define('_LETSZAM','Tankörlétszám');
+ define('_HETI_ORASZAM','Heti óraszám');
+ define('_JEGYSZAM_PER_FO','Egy főre jutó érdemjegyek átlagos száma');
+ define('_ATLAGOS_JEGYSZAM','Átlagos jegyszám');
+ define('_TANITASI_HET','tanítási héttel számolva');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/teremModositas.php b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/teremModositas.php
new file mode 100644
index 00000000..a7a9388c
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/haladasi/teremModositas.php
@@ -0,0 +1,14 @@
+<?php
+
+ define('__PAGETITLE','Haladási teremmódosítás');
+ define('_ORAID','Óra azonosító');
+ define('_DT','Dátum');
+ define('_ORA','Óra');
+ define('_TANKORNEV','Tankörnév');
+ define('_KICN','Ki');
+ define('_KITCN','Kit');
+ define('_TEREMID','Terem azonosító');
+ define('_EREDETI','Eredeti terem');
+ define('_HELY','férőhely');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diak.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diak.php
new file mode 100644
index 00000000..c9f8d6c3
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diak.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('__PAGETITLE','Havi hiányzások');
+ define('__PAGEHELP','A naptárban egy teljes napra igazolatlan hiányzást a H-betűvel (hiányzás) lehet rögzíteni. Az I-betű-vel a diák napi órarendje szerinti órákra beírja és igazolja a táblázat alatti választó szerinti típussal. Ha csak egy órát szeretnék beírni vagy igazolni, annak statuszát az óra sorszámára kattintva lehet megváltoztatni (igazolt vagy igazolatlan). A napi részletekért a jobbra nyilat használjuk, az osztály összesítő táblázatához a név melletti osztály jelölés hivatkozását.');
+ define('__PAGEHELP_SZULO','A naptárban a bejegyzések szegélye hiányzás esetén piros, késés esetén sárga. Az igazolatlan/igazolt státusz jelölésére a piros/zöld, illetve a felszereléshiányra a kék háttérszínt használja a program. A napi részletek megtekintéséhez a jobbra nyilat használd!');
+ define('_IGAZOLATLAN','igazolatlan');
+
+ define('_MARNEMIGAZOLHATO','Már nem igazolható');
+ define('_BEIRHATO','Beírható');
+ define('_DIAKHIANYZASLISTA','Diák hiányzásainak listája');
+ define('_HALADASISTATISZTIKA','Diák hiányzásai - tankörönként');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakIgazolatlan.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakIgazolatlan.php
new file mode 100644
index 00000000..15576516
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakIgazolatlan.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('__PAGETITLE','Diák igazolatlan mulasztásai');
+ define('_DATUM','Dátum');
+ define('_TIPUS','Hiányzás / Késés');
+ define('_PERC','perc');
+ define('_HIANZASOK_SZAMA','Hiányzások száma');
+ define('_KESESEK_OSSZESEN','Késések összesen');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakLista.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakLista.php
new file mode 100644
index 00000000..5204c687
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/diakLista.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','Diák hiányzásainak listája');
+ define('_DIAKHIANYZASNAPTAR','Diák hiányzásai - havi nézet');
+ define('_HALADASISTATISZTIKA','Diák hiányzásai - tankörönként');
+ define('_PERC','perc');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/info.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/info.php
new file mode 100644
index 00000000..e170ccd2
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/info.php
@@ -0,0 +1,9 @@
+<?php
+ define('__PAGETITLE','Hiányzók statisztikája');
+ define('_MA','Ma');
+ define('_TEGNAP','Tegnap');
+ define('_HIANYZIK','hiányzik');
+ define('_HIANYZOTT','hiányzott');
+ define('_AZ_ORAK','az órák');
+ define('_VOLT_HIANYZO','volt hiányzó');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/nap.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/nap.php
new file mode 100644
index 00000000..98b20482
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/nap.php
@@ -0,0 +1,13 @@
+<?php
+ define('__PAGETITLE','Diák napi hiányzásai');
+ define('_IGAZOLATLAN','igazolatlan');
+ define('_TANKOR','Tankör');
+ define('_J','J');
+ define('_K','K');
+ define('_H','H');
+ define('_F','F');
+ define('_FM','Fm');
+ define('_IGAZOLT','Igazolt');
+ define('_ORARA_NEM_KOTELEZO_BEJARNIA','Erre az órára nem kötelező bejárnia.');
+ define('_NEM_REGISZTRALANDO','Nem regisztrálandó');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/oktstat.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/oktstat.php
new file mode 100644
index 00000000..bf45e3c3
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/oktstat.php
@@ -0,0 +1,5 @@
+<?php
+ define('__PAGETITLE','Októberi statisztika');
+ define('__PAGEHELP','Az októberi statisztikához válassz tanévet!');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/ora.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/ora.php
new file mode 100644
index 00000000..19868c4a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/ora.php
@@ -0,0 +1,27 @@
+<?php
+
+ define('__PAGETITLE','Órán hiányzók');
+ define('_IGAZOLATLAN','igazolatlan');
+ define('_ADOTT_NAP','Adott nap');
+ define('_NEV','Név');
+ define('_J','J');
+ define('_K','K');
+ define('_H','H');
+ define('_FH','Fh');
+ define('_FM','Fm');
+ define('_EH','Eh');
+ define('_FELSZERELES','felszerelés hiány');
+ define('_FELMENTETT','felmentett');
+ define('_EGYENRUHA','egyenruha hiány');
+ define('_IGAZOLT','Igazolt');
+ define('_NEV_OSZTALY','Név, osztály');
+ define('_HALADASI','haladási napló');
+ define('_ORARA_NEM_KOTELEZO_BEJARNIA','Erre az órára nem kötelező bejárnia.');
+ define('_NEM_REGISZTRALANDO','Erre az órára nem kell regisztrálni!');
+ define('_REGISZTRALANDO','regisztrálandó');
+ define('_JELENLET','jenlét');
+ define('_HIANYZAS_BELESZAMIT','hiányzás beleszámít az összesítésekbe');
+
+ define('_UJ_TAG','Új diák:');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztaly.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztaly.php
new file mode 100644
index 00000000..1309d51c
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztaly.php
@@ -0,0 +1,46 @@
+<?php
+/* ------------------------------ /
+
+ Module: naplo
+ File: osztaly.php
+ Nyelv: hu_HU (magyar)
+
+/ ------------------------------ */
+
+ define('__PAGETITLE','Osztály hiányzásai');
+
+ define('_NEV','Név');
+ define('_OSSZES','Összes');
+ define('_LEZART','Lezárt');
+ define('_IGAZOLHATO','Igazolható');
+ define('_FEGYELMI_UTANI','Fegyelmi utáni');
+ define('_FEGYELMI_FOKOZATOK','Fegyelmi fokozat');
+ define('_LEGMAGASABB_FOKOZAT','Legmagasabb');
+
+ define('_HIANYZAS','Hiányzás');
+ define('_HIANYZASMENTESNAPOKSZAMA','Hiányzásmentes napok száma');
+ define('_KESES','Késés');
+ define('_AKTUALIS_FOKOZAT','Hiányzásért beírt');
+ define('_BEIRANDO_FOKOZAT','Javasolt');
+ define('_FELSZERELES_HIANY','Felszerelés hiány');
+ define('_EGYENRUHA_HIANY','Egyenruha hiány');
+ define('_FELMENTES','Felmentés');
+ define('_K','K');
+ define('_H','H');
+ define('_FSZ','Fsz');
+ define('_FM','Fm');
+ define('_EH','Eh');
+ define('_O','Ö');
+ define('_OSSZES_IGAZOLATLAN','Összes fegyelmibe beszámító igazolatlan');
+ define('_SAVE','rögzít');
+ define('_REFERENCIADT','Fegyelmi viszonyítási dátuma');
+
+ define('_OSSZES','Összes');
+ define('_IGAZOLT','Igazolt');
+ define('_IGAZOLATLAN','Igazolatlan');
+ define('_FEGYELMIVEL_NEM_SULYTOTT_LEZART_IGAZOLATLANOK','Fegyelmivel nem sújtott, lezárt igazolatlanok száma');
+
+ define('_HOZOTT','Hozott');
+ define('_AKTUALIS_NEVSOR','Aktuális névsor');
+ define('_TELJES_NEVSOR','Teljes névsor');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztalyNap.php b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztalyNap.php
new file mode 100644
index 00000000..284d6153
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hianyzas/osztalyNap.php
@@ -0,0 +1,14 @@
+<?php
+
+ define('__PAGETITLE','Osztály napi hiányzásainak összesítése');
+ define('__PAGEHELP','A hiányzásokba ezen az oldalon minden(!) tankörtípus hiányzása beleszámít! (Pl. tanórán kívüli, délutáni...) Részletek a zárójelben levő számokra mozgatott egérrel kaphatók.');
+ define('_TANKOR','tankör');
+ define('_TIPUS','típus');
+
+ define('_KESES','késés');
+ define('_HIANYZAS','hiányzás');
+ define('_FELSZERELES','Fh.');
+ define('_FELMENTES','Fm.');
+ define('_PERC','perc');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/admin.php b/mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/admin.php
new file mode 100644
index 00000000..4a23351e
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/admin.php
@@ -0,0 +1,12 @@
+<?php
+
+ define('__PAGETITLE','Kérelmek kezelése');
+
+ define('_LEZARAS','Lezárás');
+ define('_JOVAHAGYAS','Jóváhagyás');
+ define('_MEGJEGYZES','Megjegyzés');
+ define('_KERELEM','Új kérelem');
+// define('_ESZREVETEL','Észrevétel / kérelem');
+// define('_SZOVEG','Az kérelem szövege...');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/hibabejelento.php b/mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/hibabejelento.php
new file mode 100644
index 00000000..6f0d3c65
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hibabejelento/hibabejelento.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','Hibabejelentő');
+
+ define('_ESZREVETEL','Észrevétel / kérelem');
+ define('_SZOVEG','Az kérelem szövege...');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnok.php b/mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnok.php
new file mode 100644
index 00000000..437a6d95
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnok.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Hírnök');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnokFeliratkozas.php b/mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnokFeliratkozas.php
new file mode 100644
index 00000000..e21ff195
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/hirnok/hirnokFeliratkozas.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Hírnök beállítások, feliratkozás');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diak.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diak.php
new file mode 100644
index 00000000..9d490c8c
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diak.php
@@ -0,0 +1,134 @@
+<?php
+
+ define('__PAGETITLE','Diákok kezelése');
+
+ define('_JOGVISZONY_VALTAS','Jogviszony változás');
+ define('_UJ_JOGVISZONY_STATUSZ','válassz új státuszt');
+ define('_JOGVISZONY_VALTAS_DT','Változás hatálybalépése');
+ define('_BIZTOS_MODOSITJA','Biztos módosítja a diák státuszát?');
+ define('_BIZTOS_TORLI','Biztos véglegesen törli a diákot? A művelet nem vonható vissza!');
+ define('_MODOSITAS','Módosítás');
+ define('_FELFUGGESZTES_OK','jogviszony szüneteltetés oka');
+ define('_FELFUGGESZTES_IG_DT','jogviszony szüneteltetés (tervezett) vége');
+ define('_JOGVISZONY_LEZARAS_ZARADEK','jogviszony lázárás záradéka');
+ define('_LEZARAS_IGAZOLATLAN_ORAK_SZAMA','igazolatlan órák száma');
+ define('_LEZARAS_ISKOLA','új iskola');
+/*
+ define('_LEZARAS','Lezárás');
+ define('_JOGVISZONY_LEZARASA','Jogviszony lezárása');
+ define('_BIZTOS_LEZARJA','Biztos lezárja a tanuló jogviszonyát?');
+
+ define('_JOGVISZONY_MEGNYITASA','Jogviszony megnyitása');
+ define('_VEGZO_TANEV','Végzés (várható) tanéve');
+ define('_VEGZO_SZEMESZTER','Végző szemeszter');
+*/
+ define('_JOGVISZONY_KEZDETE','Jogviszony kezdete');
+ define('_JOGVISZONY_VEGE','Jogviszony vége');
+ define('_KEZDO_TANEV','Beiratkozás tanéve');
+ define('_KEZDO_SZEMESZTER','Beiratkozás szemesztere');
+ define('_MEGNYITAS','Megnyitás');
+ define('_BIZTOS_MEGNYITJA','Biztos újra megnyitja a tanulói jogviszonyt?');
+ define('_DIAK_TANULMANYI_ADATOK','Tanulmányi adatok');
+/*
+ define('_MAGANTANULOI_STATUS','Magántanulóvá nyilvánítás');
+ define('_MAGANTANULOI_STATUSZ_MEGSZUNTETESE','Magántanulói státusz megszűntetése');
+ define('_MAGANTANULOI_STATUS_ELETBELEPESE','Magántanulói státusz életbelépése');
+ define('_BIZTOS_MAGANTANULO_LESZ','Biztos magántanulóvá kívánja tenni?');
+*/
+ define('_DIAK_OSZTALYA','Osztálya');
+ define('_DIAK_ADATAI','Diák adatai');
+ define('_DIAK_ALAPADATAI','Diák adatai (alap)');
+ define('_DIAK_SZULETESI_ADATAI','Születési adatok');
+ define('_DIAK_CIM_LAKHELY','Lakhely');
+ define('_DIAK_CIM_TART','Tartózkodási hely / Értesítési cím');
+ define('_DIAK_ELERHETOSEG','Elérhetőség');
+ define('_DIAK_SZULO','Szülők');
+ define('_NEV','Név');
+ define('_OID','Oktatási&nbsp;azonosító');
+ define('_NEKAZONOSITO','NEK-azonosító');
+ define('_NEM','Neme');
+ define('_LANY','lány');
+ define('_FIU','fiú');
+ define('_DIAKIGAZOLVANYSZAM','Diákigazolványszám');
+ define('_ALLAMPOLGARSAG','Állampolgárság');
+ define('_TAJSZAM','Tajszám');
+ define('_STATUSZ','Jogviszonya');
+
+ define('_SZULETESKORINEV','Születéskori név');
+ define('_SZULETESIHELY','Születési hely');
+ define('_SZULETESIIDO','Születési idő');
+ define('_SZULETES','');
+
+ define('_ORSZAG','Ország');
+ define('_IRSZ','Irányítószám');
+ define('_HELYSEG','Helység');
+ define('_KOZTERULETNEV','Közterület');
+ define('_HAZSZAM','Házszám');
+ define('_EMELET','Emelet');
+ define('_AJTO','Ajtó');
+
+ define('_EMAIL','e-mail cím');
+ define('_TELEFON','telefon');
+ define('_MOBIL','mobiltelefon');
+
+ define('_ANYA','anya');
+ define('_APA','apa');
+ define('_GONDVISELO','gondviselő / gondnok / gyám');
+ define('_NEVELO','kollégiumi nevelő');
+
+ define('_EXPORT','Adatok exportálása');
+ define('_UJ_DIAK','Új diák felvétele');
+ define('_TERVEZETT_KEZDO_TANEV','Beiratkozás (várható) tanéve');
+
+ define('_MT_TOLDT','Magántanulói státusz kezdete');
+ define('_MT_IGDT','Magántanulói státusz vége (nem kötelező)');
+ define('_KENYSZERITES','Kényszerítve - az ütközések törlésével');
+
+ define('_ADOAZONOSITO','Adóazonosító');
+ define('_SZEMELYIIGAZOLVANYSZAM','Személyi igazolvány szám');
+ define('_GONDOZASISZAM','Gondozási szám');
+ define('_TARTOZKODASIOKIRATSZAM','Útlevél/Tartózkodási okirat szám');
+
+ define('_VISELTNEVELOTAG','Viselt név előtag');
+ define('_VISELTCSALADINEV','Viselt családinév');
+ define('_VISELTUTONEV','Viselt utónév');
+ define('_SZULETESKORINEVELOTAG','Születeskori név előtag');
+ define('_SZULETESKORICSALADINEV','Születéskori családinév');
+ define('_SZULETESKORIUTONEV','Születéskori utónév');
+ define('_ELOZOISKOLAOMKOD','Előző iskola (OM kód)');
+ define('_LAKOHELYIJELLEMZO','Lakóhelyi jellemző');
+ define('_MEGJEGYZES','Megjegyzés');
+ define('_DIAK_SZOCIALIS_ADATOK','Szociális adatok');
+ define('_DIAK_SZOCIALIS_HELYZET','Szociális helyzet');
+ define('_DIAK_FOGYATEKOSSAG','Fogyatékosság');
+ define('_DIAK_TORVENYES_KEPVISELO','Törvényes képviselő');
+ define('_DIAK_PENZUGYI_STATUSZ','Finanszírozás');
+ define('_DIAK_GONDOZASISZAM','Gondozási szám');
+ define('_TORZSLAPSZAM','Törzslapszám');
+
+ define('_BEKERULES_MODJA','Bekerülés módja');
+ define('_OSZTALY','Osztály');
+ define('_NAPLOSORSZAM','Naplósorszám');
+
+ define('_NYOMTATAS','Adatlap nyomtatása (PDF)');
+
+ define('_DIAKSTATUSZ','Diák jogviszonyváltozásai');
+
+ define('_HOZOTT_HIANYZASOK','Hozott hiányzások');
+ define('_IGAZOLT','Igazolt mulasztott órák száma: ');
+ define('_IGAZOLATLAN','Igazolatlan mulasztott órák száma: ');
+
+ define('_JOGVISZONY_TOROL','Felvételt nyert - nem beiratkozott - diák végleges törölése');
+ define('_TOROL','Töröl');
+
+ define('_FELHASZNALOI_AZONOSITO','Felhasználói azonosító');
+ define('_AZONOSITO_LETREHOZASA','SuliX azonosító létrehozása');
+ define('_BIZTOSAN_LETREHOZ_E','Biztosan létre kívánja hozni a felhasználói azonosítót?');
+ define('_BIZTOSAN_TOROL_E','Biztosan törölni akarja a felhasználói azonosítót?');
+ define('_AZONOSITO_TORLESE','SuliX azonosító törlése');
+
+ define('_DIAK_FENYKEPE','Diák Fényképe 100x100px');
+
+ define('_IKTATOSZAM','Iktatószám');
+ define('_UJ_STATUSZ','Új státusz');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakExport.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakExport.php
new file mode 100644
index 00000000..469c678e
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakExport.php
@@ -0,0 +1,14 @@
+<?php
+
+ define('__PAGETITLE','Diákok adatainak exportálása');
+
+ define('_EXPORT','Adatok exportálása');
+ define('_SZULO_ADATOKKAL','Szülő adatokkal');
+ define('_OSZTALY_ADATOKKAL','Osztály adatokkal');
+ define('_FORMATUM','Formátum');
+ define('_CSV','.csv (OpenOffice.org)');
+ define('_XLS','.xls (Microsoft Excel XML)');
+ define('_XML','.xml (Microsoft Excel XML)');
+ define('_PDF','.pdf (Adobe Acrobat Reader)');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakFelmentes.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakFelmentes.php
new file mode 100644
index 00000000..ceb6a93d
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakFelmentes.php
@@ -0,0 +1,60 @@
+<?php
+
+ define('__PAGETITLE','Diák felmentése');
+ define('__PAGEHELP','
+A felmentésnek (mindhárom esetben igazgató által hozott határozat intézkedik a felmentésről!):
+<ul>
+<li style="padding-bottom:5px">1. adott tárgyból (rész)értékelés alól = órán részt vesz, érdemjegyet és osztályzatot szakvélemény alapján nem kap
+<br/> Példa: diszgráfia (magyar nyelv felmentés)
+ <ul>
+ <li>a) teljes tanév FM: értékelés alól; osztályzata/zárójegye FM.
+ "4/B. Mentesítve ... tantárgyból az értékelés és a minősítés alól N., Tl., B. "
+ </li>
+ <li>b) rész tanév (dátum intervallum): csupán egyedi záradékot kap.</li>
+ </ul>
+
+<li style="padding-bottom:5px">2. órák látogatása alól (tankör), igazgató által meghatározott időben, nevelőtestület által meghatározott módon ad számot tudásáról
+<br/> Példa: élsportoló (testnevelés)
+<br/> Teendő: [*] tankörben FM: óralátogatás alól és értékelés alól, de zárójegyet kap (!)
+<br/> Záradék: "10. A(z) ... tantárgy óráinak látogatása alól felmentve ... -tól ... -ig. N.
+ Kiegészülhet: Osztályozó vizsgát köteles tenni."
+</li>
+<li style="padding-bottom:5px">3. tárgy tanulása alól = óralátogatás alól + évközi jegyet + zárójegyet sem kap (csak készségtárgyak!)
+<br/> Példa: testnevelés III.
+<br/> Teendő: * tárgy minden tanköréből kiléptetni, * félévi(ha félév előtti) és évvégi jegye FM.
+<br/> Záradék: "7. Mentesítve a(z) [a tantárgy neve] ... tantárgy tanulása alól. N., TI., B."
+</li>
+</ul>
+');
+
+ define('_FELMENTES_TARGY_TANULASA_ALOL','Felmentés tárgy tanulása alól');
+ define('_FELMENTES_TARGY_ERTEKELES_ALOL','Felmentés tárgy értékelése alól');
+ define('_FELMENTES_TANKOR_ORALATOGATASA_ALOL','Felmentés tankör óralátogatása alól');
+ define('_ROGZITETT_ZARADEKOK','Már rögzített záradékok');
+ define('_TIPUS3','Válassz ki egy tárgyat és egy érvényességi dátumot amikortól él a felmentés:
+ <ol><li>ezen dátummal kiléptettjük a tárgy tanköreiből,</li>
+ <li>jegyeit és hiányzásait a referencia dátumtól töröljük,</li>
+ <li> a dátum után véget érő félévekre FM bejegyzést rögzítünk osztályzatként (zárójegyként)</li></ol>');
+
+ define('_OVIKOTELES','Osztályozóvizsgára kötelezett');
+ define('_TARGY','Tárgy');
+ define('_TANKOR','Tankör');
+ define('_TOL_DT','Dátum (tól)');
+ define('_IG_DT','Dátum (ig)');
+ define('_NAP','Nap');
+ define('_ORA','Óra');
+ define('_NAPORAOPT','Kizárólag a megadott nap/óra alól való felmentés [opcionális]');
+
+ define('_ZARADEK','Záradék [részfelmentés esetében]:');
+ define('_ZARADEK1','miatt mentesítve a(z) ');
+ define('_ZARADEK2','értékelés(e) és a minősítés(e) alól.');
+
+ define('_EGESZ_EVRE','egész évre');
+ define('_RESZBEN','részben');
+
+ define('_ROGZITETT_FELMENTESEK','Már rögzített felmentések');
+ define('_TORLESKENYSZERITES','Töröljük a már beírt hiányzásokat (és oszt. vizsga esetén jegyeket is)?');
+ define('_ZARADEKNELKUL','A záradék felvétele nélkül (csak speciális esetben)');
+
+ define('_IKTATOSZAM','Iktatószám');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakStatusz.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakStatusz.php
new file mode 100644
index 00000000..a188e5a1
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakStatusz.php
@@ -0,0 +1,20 @@
+<?php
+
+ define('__PAGETITLE','Diák jogviszonyváltozásai');
+ define('__DIAKIDTITLE','diakId');
+
+ define('_JOGVISZONY_KEZDETE','Jogviszony kezdete');
+ define('_JOGVISZONY_VEGE','Jogviszony vége');
+ define('_JELENLEGI_STATUSZ','Jelenlegi státusz');
+ define('_JOGVISZONYVALTOZASOK','Jogviszonyváltozások');
+ define('_NINCS','Nincs záradék!');
+ define('_KIMARADT_JOGVISZONY_ZARADEKOK','Kimaradt (hibás?) jogviszony záradékok');
+ define('_JELENLEGI_ZARADEK','Jelenlegi záradék');
+ define('_UJ_MODOSITOTT_ZARADEK','Új/Módosított záradék');
+ define('_TOROL','Jogviszony bejegyzés törlése');
+ define('_BIZTOS_TOROL','Biztosan törölni akarja a jogviszony bejegyzést az esetleg hozzá kapcsolódó záradékkal együtt?');
+ define('_BIZTOS_MODOSIT','Biztosan módosítja a jogviszony dátumokat?');
+ define('_MEHET','Záradékolás');
+
+ define('_DIAKADATLAP','Diák adatlapja');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakSzulo.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakSzulo.php
new file mode 100644
index 00000000..9fb3fff0
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakSzulo.php
@@ -0,0 +1,53 @@
+<?php
+
+ define('__PAGETITLE','Diák szüleinek adatai');
+
+ define('_DIAK_SZULO','Szülők');
+ define('_NEV','Név');
+ define('_NEVELOTAG','Név előtag');
+ define('_CSALADINEV','Családinév');
+ define('_UTONEV','Utónév');
+ define('_NEM','Neme');
+ define('_FIU','fiú');
+ define('_LANY','lány');
+ define('_ALLAMPOLGARSAG','Állampolgárság');
+ define('_SZULOACCOUNT','Szülő felhasználói azonosítója');
+
+ define('_SZULETESKORINEV','Születéskori név');
+ define('_SZULETESKORINEVELOTAG','Születéskori név előtag');
+ define('_SZULETESKORICSALADINEV','Születéskori családinév');
+ define('_SZULETESKORIUTONEV','Születéskori utónév');
+ define('_SZULETESIHELY','Születési hely');
+ define('_SZULETESIIDO','Születési idő');
+
+ define('_LAKHELY','Lakhely');
+ define('_ORSZAG','Ország');
+ define('_HELYSEG','Helység');
+ define('_KOZTERULETNEV','Közterület');
+ define('_HAZSZAM','Házszám');
+ define('_IRSZ','Irányítószám');
+ define('_EMELET','Emelet');
+ define('_AJTO','Ajtó');
+
+ define('_EMAIL','E-mail cím');
+ define('_TELEFON','Telefon');
+ define('_MOBIL','Mobiltelefon');
+
+ define('_ANYA','anya');
+ define('_APA','apa');
+ define('_GONDVISELO','gondviselő / gondnok / gyám');
+ define('_NEVELO','kollégiumi nevelő');
+ define('_MODOSITAS','Módosítás');
+ define('_SZULO_HOZZARENDELESE','Szülő hozzárendelése');
+ define('_UJ_SZULO','Új szülő felvétele');
+ define('_SZULO_ADAT_MODOSITAS','Szülő adatainak módosítása');
+ define('_SZULO_HOZZARENDELES_TORLESE','Szülő hozzárendelés megszüntetése');
+ define('_FELVESZ','Felvesz');
+
+ define('_SZULETESIEV','Születési év');
+ define('_FOGLALKOZAS','Foglalkozás');
+ define('_MUNKAHELY','Munkahely');
+
+ define('_SZULOSTATUSZTIPUSOK','Családi állapota');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankor.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankor.php
new file mode 100644
index 00000000..71120149
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankor.php
@@ -0,0 +1,11 @@
+<?php
+
+ define('__PAGETITLE','Diák tankörei');
+
+ define('_OSZTALYTANKOROK','Osztály tankörei');
+ define('_DIAKTANKOROK','Diák tankörei');
+ define('_LEZART','Lezárt/tervezett tanév');
+ define('_OSSZESEN','Összesen');
+ define('_TANKOR_ORASZAMOK','Tankörök óraszámai');
+ define('_HIANYZASOK_JEGYEK_TOROLHETOK','Kiléptetés esetén a referenciadátum után rögzített hiányzások és jegyek törölhetők?');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankorJelentkezes.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankorJelentkezes.php
new file mode 100644
index 00000000..2d042193
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/diakTankorJelentkezes.php
@@ -0,0 +1,29 @@
+<?php
+
+ define('__PAGETITLE','Tankörválasztás');
+
+ define('_DIAKTANKOROK','Diák tankörei');
+ define('_LEZART','Lezárt/tervezett tanév');
+ define('_VALASZTHATO','Választható tankörök');
+ define('_FELVESZ','felvesz');
+ define('_LEAD','lead');
+
+ define('_OSSZESEN','Összesen felvett');
+
+ define('_JELENTKEZ','Jelentkezés');
+ define('_ID','Azonosító');
+ define('_BLOKK','Blokk');
+ define('_TANKOR','Tankör');
+ define('_LETSZAM','Létszám');
+ define('_KERETLETSZAM','Min-Max');
+ define('_ORASZAM','Óraszám');
+ define('_KEPZES_ORASZAM','Képzés óraszámok');
+
+ define('_ELOTV','Előzetes tárgyválasztási időszak (nincs minimum korlát)');
+ define('_TV','Tárgyválasztási időszak (minimum létszám korlátozás)');
+ define('_NINCSTV','Jelenleg nincs tárgyválasztási időszak');
+
+ define('_KOTELEZOEN_VALASZTHATO','kötelező');
+ define('_SZABADON_VALASZTHATO','szabad');
+ define('_VALASZTOTT','választott');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/felmentes.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/felmentes.php
new file mode 100644
index 00000000..d7b6f78f
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/felmentes.php
@@ -0,0 +1,15 @@
+<?php
+
+ define('__PAGETITLE','Felmentések');
+ define('__PAGEHELP','');
+
+ define('_TARGY','Tárgy');
+ define('_TANKOR','Tankör');
+ define('_TOL_DT','Dátum (tól)');
+ define('_IG_DT','Dátum (ig)');
+ define('_NAP','Nap');
+ define('_ORA','Óra');
+
+ define('_ZARADEK','Záradék');
+ define('_FELMENTESEK','Felmentések');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepesitesek.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepesitesek.php
new file mode 100644
index 00000000..48943f2b
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepesitesek.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Képesítések');
+ define('__KEPESITES','képesítés');
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzes.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzes.php
new file mode 100644
index 00000000..e874cab6
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzes.php
@@ -0,0 +1,22 @@
+<?php
+
+ define('__PAGETITLE','Képzések');
+ define('__PAGEHELP','Az új képzési forma felvétele és osztályokhoz rendelése mellett itt állíthatod be a képzés nevét is. A bevezetés évét verziószámként értelmezzük. A képzés óratervének rögzítéséhez a kezdő- és záróévfolyamot is be kell állítani. Képzést törölni nem lehet. Osztályt a képzésből törölni nem lehet.');
+
+ define('_UJ_KEPZES','Új képzés');
+ define('_KEPZES_ADATAI','Képzés adatai');
+ define('_KEPZES_NEVE','Képzés neve');
+ define('_BEVEZETES_EVE','Bevezetés éve');
+ define('_KEZDO_EVFOLYAM','Kezdő évfolyam');
+ define('_ZARO_EVFOLYAM','Záró évfolyam');
+ define('_OSZTALYHOZ','Az osztályokhoz...');
+ define('_KEPZESORATERVHEZ','A képzés óratervhez...');
+
+ define('_MAR_RESZTVEVO_OSZTALYOK','Már kijelölt osztályok');
+ define('_OSZTALYOK','Osztályok');
+ define('_KEPZES_HIBERNAL','Képzés hibernálás');
+ define('_KEPZES_ELESIT','Képzés élesít');
+ define('_HIBERNAL','hibernál!');
+ define('_ELESIT','élesít!');
+ define('_OSZTALY_JELLEG','Osztály jelleg');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesOraterv.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesOraterv.php
new file mode 100644
index 00000000..de1d9579
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesOraterv.php
@@ -0,0 +1,20 @@
+<?php
+
+ define('__PAGETITLE','Képzés óraterve (óraszámok)');
+ define('__PAGEHELP','Az óraterv rögzítésének feltétele a képzés kezdő- és záróévfolyamának beállítása a "képzések" [2] lapon, ahol a képzés osztályhoz rendelése is beállítható.
+ Egy diák képzésbe sorolása az "osztályok" [1] menüpontban a névsornál lehetséges.');
+
+ define('_KEPZES_ADATAI','Képzés adatai');
+ define('_KEPZES_NEVE','Képzés neve');
+ define('_BEVEZETES_EVE','Bevezetés éve');
+
+ define('_KOTELEZO_ORASZAM','Kötelező');
+ define('_MAXIMALIS_ORASZAM','Maximális óraszám');
+
+ define('_EVFOLYAMJEL','Évfolyam');
+
+ define('_VALASSZ','válassz!');
+ define('_TARGYAK','tárgyak');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesTankor.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesTankor.php
new file mode 100644
index 00000000..22837ea5
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/kepzesTankor.php
@@ -0,0 +1,38 @@
+<?php
+
+ define('__PAGETITLE','Képzés tankör');
+
+ define('_TANKOR','Tankör');
+ define('_ELNEVEZES','Elnevezés');
+ define('_TIPUS','Típus');
+ define('_VALASZTHATO','Választható');
+ define('_IGEN','igen');
+ define('_NEM','nem');
+ define('_KOVETELMENY','Követelmény');
+ define('_EVKOZI_KOVETELMENY','Évközi követelmény');
+ define('_JELENLET','Jelenlét');
+ define('_JEGY','jegy');
+ define('_ALAIRAS','aláírás');
+ define('_KOTELEZO','kötelező');
+ define('_NEMKOTELEZO','nem kötelező');
+
+ define('_SZEMESZTEREK','Szemeszterek');
+ define('_SZEMESZTER','Szemeszter');
+ define('_HETI_ORASZAM','Heti óraszám');
+ define('_OSZTALYJELE','Osztály jele');
+ define('_LEIRAS','Leírás');
+ define('_VEGLEGES_TORLES','Végleges törlés');
+ define('_RESZTVEVO_OSZTALYOK','Résztvevő osztályok');
+
+ define('_MEGLEVO_TANKOR','Meglevő tankör');
+ define('_UJ_TANKOR','Új tankör');
+ define('_EVFOLYAM','Évfolyam');
+
+ define('_MIN_LSZ','Létszám (min)');
+ define('_MAX_LSZ','Létszám (max)');
+
+ define('_TARGY','Tárgy');
+ define('_FELEV1','Első félév');
+ define('_FELEV2','Második félév');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/munkakozosseg.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/munkakozosseg.php
new file mode 100644
index 00000000..3771de35
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/munkakozosseg.php
@@ -0,0 +1,36 @@
+<?php
+
+ define('__PAGETITLE','Munkaközösségek');
+
+ define('_MUNKAKOZOSSEGNEV','Munkaközösség neve');
+ define('_TARGYNEV','A tárgy neve');
+ define('_VEGLEGES_TORLES','Végleges törlés');
+ define('_MUNKAKOZOSSEGVEZETO','Munkaközösségvezető');
+ define('_MUNKAKOZOSSEGTAGOK','Munkaközösségi tagok');
+ define('_UJTAGOK','Új tagok');
+
+ define('_TARGY_JELLEG','Tárgy jellege');
+ define('_EVKOZI_KOVETELMENY','Évközi értékelés alapértelmezett típusa'); // 'Alapértelmezett évközi követelmény');
+ define('_ZARO_KOVETELMENY','Év végi/félévi minősítés alapértelmezett típusa'); // 'A zárójegy alapértelmezett típusa');
+ define('_TARGY_ROVID_NEVE','A tárgy rövid neve (opcionális)');
+ define('_KIRTARGY','A tárgy neve a KIR-ben (opcionális)');
+ define('_KIRTARGY_MEGJ','');
+
+ define('_TARGY_BEOLVASZTASA','Tárgy beolvasztása másik tárgy alá');
+ define('_BEOLVASZTAS_HELP','A kiválasztott tárgy a beolvasztással megszűnik, helyét mindenütt a "befogadó" tárgy veszi át.
+Az érintett tankörök neve megváltozik az új tárgynak megfelelően, a nevek a "tankör jelölés" opciónál megadott jelölssel kiegészíthetők.
+A művelet nem fordítható vissza! A művelet végrehajtásához meg kell nyitni az összes érintett tanévet! A művelet végrehajtása
+visszamenőleg módosíthatja az adatokat!');
+ define('_BEFOGADO_TARGY','befogadó tárgy');
+ define('_TANKOR_JELOLES','A érintett tankörök jelölése');
+
+ define('_TARGY_MK_VALTAS','Tárgy átsorolása másik munkaközösség alá');
+ define('_MK_VALTAS_HELP','A kiválasztott tárgy átkerül másik munkaközösség alá. A művelet csak akkor hajtható végre, ha az
+összes érintett, jelenleg aktív tankör tanára megtalálható az új, "befogadó" munkaközösség alatt is.');
+ define('_BEFOGADO_MK','befogadó munkaközösség');
+
+ define('_TARGY_ATNEVEZES','Tárgy átnevezése');
+ define('_ATNEVEZES_HELP','A tárgy átnevezése a hozzá tartozó tankörök - esetleg visszamenőleges - átnevezésével jár!');
+ define('_UJ_TARGY_NEV','új tárgynév');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/osztaly.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/osztaly.php
new file mode 100644
index 00000000..ba29df82
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/osztaly.php
@@ -0,0 +1,40 @@
+<?php
+
+ define('__PAGETITLE','Osztályok adminisztálása');
+ define('__PAGEHELP','Új osztály felvételének vagy a kiválasztott osztály osztályfőnökének, tagjainak és telephelyének módosító oldala.
+ Az osztálytagok képzéshez rendelésének előfeltétele, hogy az osztályhoz a "Képzések" menüpontban a választható képzések az osztályhoz legyenek rendelve.');
+
+ define('_KEPZES','Képzés');
+ define('_KEZDOTANEV','Indulás tanéve');
+ define('_VEGZOSTANEV','Végzés tanéve');
+ define('_KEZDOEVFOLYAM','Induló évfolyam');
+ define('_JEL','Osztály betűjele');
+ define('_UJOSZTALY','Új osztály');
+ define('_FILESELECTTITLE','Az osztálytagok frissítése');
+ define('_OSZTALY_ADATAI','Osztály adatai');
+ define('_FIELDSELECTMESSAGE','Új tanulók hozzáadásakor a kezdő tanév, a kezdő szemeszter, a jogviszony kezdete, az osztálybalépés dátuma (beDt) és a státusz (pl: jogviszonyban van) kötelező paraméterek!');
+ define('_OSZTALYFONOKOK','Osztályfőnökök');
+ define('_TANARNEVE','Tanár neve');
+ define('_BEDT','Mettől');
+ define('_KIDT','Meddig');
+ define('_TOROL','Töröl');
+ define('_OSZTALY_TORLESE','Osztály törlése');
+ define('_OSZTALY_TORLES_TITLE','Biztosan törölni akarja az osztályt és minden kapcsolatát?');
+ define('_UJ_TAG','Új tag felvétele');
+ define('_TAG_TORLES','Tag törlése');
+ define('_OSZTALYNEVSOR','Osztálynévsor');
+ define('_LEIRAS','Leírás');
+ define('_TELEPHELY','Telephely');
+ define('_KEZDOOSZTALYJEL','Az osztály kezdeti betűjele');
+ define('_OSZTALYJELLEG','Osztály jellege');
+ define('_BEZAR','Bezár');
+ define('_OSZTALY_UJ_JELE','A nyelvi előkészítő évfolyam után az osztály új jele');
+ define('_OSZTALY_LEPTETES','A NyEK osztály léptetése');
+ define('_KEZDO_EVFOLYAM_SORSZAMA','Kezdő évfolyam sorszáma');
+
+ define('_MODOSITAS','Módosítás');
+ define('_UJOSZTALYJEL','Új osztály jel (módosítás!)');
+ define('_REFERENCIA_DATUM','Referencia');
+ define('_LETSZAM','Létszám');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tanar.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tanar.php
new file mode 100644
index 00000000..149051c8
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tanar.php
@@ -0,0 +1,53 @@
+<?php
+
+ define('__PAGETITLE','Tanárok adminisztrálása');
+ define('_FILESELECTTITLE','A tanárok adatainak frissítése');
+
+
+
+ define('_TANAR_ALAPADATAI','Tanár adatai (alap)');
+ define('_TANAR_SZULETESI_ADATAI','Születési adatok');
+ define('_UJ_TANAR','Új tanár felvétele');
+ define('_TANAR_JOGVISZONYA', 'Tanár jogviszonya, foglalkoztatási adatai');
+ define('_NEV','Név');
+ define('_OID','Oktatási&nbsp;azonosító');
+ define('_NEKAZONOSITO','NEK-azonosító');
+ define('_NEM','Neme');
+ define('_BEDT','Jogviszony kezdete');
+ define('_KIDT','Jogviszony vége');
+ define('_VISELTNEVELOTAG','Név előtagja');
+ define('_VISELTCSALADINEV','Családinév');
+ define('_VISELTUTONEV','Útónév');
+ define('_SZULETESKORINEVELOTAG','Név előtagja');
+ define('_SZULETESKORICSALADINEV','Családinév');
+ define('_SZULETESKORIUTONEV','Útónév');
+
+ define('_SZULETESKORINEV','Születéskori név');
+ define('_SZULETESIHELY','Születési hely');
+ define('_SZULETESIIDO','Születési idő');
+
+ define('_HETI_MUNKAORA','A heti munkaóráinak száma (100%)');
+ define('_HETI_KOTELEZOORASZAM','A heti kötelező tanóra szám (minimuma)');
+ define('_STATUSZ','Munkaviszony státusza');
+ define('_TANAR_KEPESITESE','Tanár képesítése');
+
+ define('_KIDT_HELP','A jogviszony végének megadása - ha nem jövőbeli dátumról van szó, ami nem javasolt! - maga után vonja a státusz mező jogviszonya lezárva állapotra változtatását.');
+ define('_HETI_MUNKAORA_HELP','Tipikusan 40');
+ define('_HETI_KOTELEZOORASZAM_HELP','A tantárgyfelosztásban figyelembe vett heti kötelező tanóra szám minimuma. Tipikusan 22.');
+ define('_STATUSZ_HELP','Határozatlan idejű kinevezés köznapi néven a státusz; határozott idejű kinevezés csak valamely státuszban levő kolléga helyettesítésére adható ki; tartós távollét (pl. GyES) esetén helyettest lehet megjelölni; külső óraadó olyan tanár, aki nem a fenntartóval áll munkaviszonyban (pl. hitoktató); jogviszonya lezárva státusz esetén a jogviszony lezárás dátuma KÖTELEZŐ.');
+ define('_VEGZETTSEG_HELP','A végzettség lehet alapfokú - ez legtöbbször az általános iskola 8. osztályának elvégzését jelöli; lehet középfokú - ez másként az érettségizett; illetve felsőfokú. Vannak olyan képesítések (pl. szakképzés, szakirányú továbbképzés), melyek nem adnak végzettséget.');
+ define('_FOKOZAT_HELP','A felsőfokú végzettség három szintje az alapfokozat (BA vagy BSc), a mesterfokozat (MA vagy MSc) és a doktori fokozat (PhD vagy DLA). A bolognai rendszer bevezetése előtti felsőfokú végzettségek esetén ezek helyett az egyetemi, illetve főiskolai fokozatot különböztetjük meg.');
+ define('_SPECIALIZACIO_HELP','A specializácó felsőfokú végzettség esetén szakképzettség, szakképzés esetén szakképesítés.');
+ define('_KEPESITESNEV_HELP','A képesítés nevéhez a diplomán, bizonyítványon, oklevélen található megnevezést írhatjuk be.');
+
+/*
+ define('_BEDT','Mettől');
+ define('_KIDT','Meddig');
+*/
+ define('_TITULUS','Titulus');
+ define('_TITULUSROVID','Titulus röviden');
+ define('_EMAIL','Email');
+
+ define('_TOVABBKEPZES_FORDULO_DT','A továbbképzési ciklus vége');
+ define('_TOVABBKEPZES_FORDULO_DT_HELP','A továbbképzési ciklus végét jelző dátum. A dátum éve a hétéves ciklus mindenkori utolsó évét jelzi. Lásd még: továbbképzések');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankor.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankor.php
new file mode 100644
index 00000000..3f75c539
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankor.php
@@ -0,0 +1,56 @@
+<?php
+
+ define('__PAGETITLE','Tankörök');
+
+ define('_MEGJELOLTIDOSZAKBANTANAR','A megjelölt időszakban tanára');
+ define('_TANKOR','Tankör');
+ define('_ELNEVEZES','Elnevezés');
+ define('_TIPUS','Típus');
+ define('_VALASZTHATO','Választható');
+ define('_IGEN','igen');
+ define('_NEM','nem');
+ define('_KOVETELMENY','Követelmény');
+ define('_EVKOZI_KOVETELMENY','Évközi követelmény');
+ define('_JELENLET','Jelenlét');
+ define('_JEGY','jegy');
+ define('_ALAIRAS','aláírás');
+ define('_KOTELEZO','kötelező');
+ define('_NEMKOTELEZO','nem kötelező');
+
+ define('_SZEMESZTEREK','Szemeszterek');
+ define('_SZEMESZTER','Szemeszter');
+ define('_HETI_ORASZAM','Heti óraszám');
+ define('_OSZTALYJELE','Osztály jele');
+ define('_LEIRAS','Leírás');
+ define('_VEGLEGES_TORLES','Végleges törlés');
+ define('_RESZTVEVO_OSZTALYOK','Résztvevő osztályok');
+
+ define('_TANKORDIAK','A tankör tagjai');
+
+ define('_MIN_LSZ','Létszám (min)');
+ define('_MAX_LSZ','Létszám (max)');
+
+ define('_TANKOR_TORLES','A kijelölt tankör végleges törlése');
+ define('_TANKOR_TORLES_HELP','
+A tankör csupán adminisztrációs hibából létezik, törölhetem a jegyekkel, hiányzásokkal, órákkal és minden egyéb
+tankörre való hivatkozással együtt - visszamenőleg is ?! [nem visszavonható művelet!] :');
+
+ define('_TANKOR_LEZARAS','A kijelölt tankör lezárása');
+ define('_TANKOR_LEZARAS_HELP','
+A tankör létezett, de megszűnt. Az órarendi órákat a megadott dátumtól töröljük, a tankör
+tagjait kiléptetjük, a tankör óráit a következő szemesztertől töröljük, az évközi jegyek
+és hiányzások az adott dátum után szintén törlődnek!');
+ define('_ALTALANOS','Általános');
+ define('_LEZARAS_DT','A lezárás dátuma');
+ define('_LEZAR','lezár');
+
+ define('_TANKOR_TARGY_MODOSITAS','A tankör tárgyának megváltoztatása');
+ define('_TANKOR_TARGY_HELP','Tankör tárgyának módosítása a tankörhöz tartozó jegyek átsorolását is jelenti. Tankör tárgyát csak munkaközösségen belül változtathatjuk - hogy ne legyen probléma a kijelölt tanárral.');
+ define('_UJ_TARGY','Új tárgy');
+ define('_TANKORCSOPORTOK','Tankörcsoportok');
+
+ define('_TANKORNEV_MODOSITAS','Tankörnév módosítás');
+ define('_TANKORNEV_MODOSITAS_HELP','A jelen ('.__TANEV.') tanévben módosítja a tankör nevét, alapértelmezetten a tagok alapján. Ha nincs még tagja a tankörnek, az osztály-tankör hozzárendelést vesszül alapul.');
+ define('_TAGOK_ALAPJAN','Tagok alapján (ha lehet)');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorDiak.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorDiak.php
new file mode 100644
index 00000000..bc8cf25d
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorDiak.php
@@ -0,0 +1,22 @@
+<?php
+
+ define('__PAGETITLE','Tankör diákjai');
+
+ define('_DIAKOK','Diákok');
+ define('_NEV','Név');
+ define('_METTOL','Mettől');
+ define('_MEDDIG','Meddig');
+ define('_JELEN','Jelenlét');
+ define('_JOVAHAGYVA','Engedélyezve');
+ define('_UJDIAK','Új diák felvétele a tankörbe (tól/ig)');
+ define('_BEDT','Bekerülés dátuma');
+ define('_KIDT','Kilépés dátuma');
+ define('_KEPZES','Képzés');
+ define('_VENDEGTANULOK', 'vendégtanulók');
+
+ define('_TANKOR','Tankör adatai');
+ define('_BIZTOS_TANKORNEVSOR',"Biztosan törölni (lezárni) akarja a megjelölt diákokat a tankörnévsorból?\nA statuszmódosítás az adott sorra vonatkozik visszamenőlegesen!");
+ define('_BUTTON_OK','Töröl/módosít');
+
+ define('_FORCE','kényszerítve');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorLetszam.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorLetszam.php
new file mode 100644
index 00000000..685e56f5
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorLetszam.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('__PAGETITLE','Tankörlétszámok');
+
+ define('_TANAROK','Tanár');
+ define('_TIPUS','Típus');
+ define('_TANKOR','Tankör');
+ define('_LETSZAM','Létszám');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorSzemeszter.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorSzemeszter.php
new file mode 100644
index 00000000..5a2910e1
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorSzemeszter.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Tankörök óraterve');
+ define('_TANKOR','Tankör');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanar.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanar.php
new file mode 100644
index 00000000..9c97ff36
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanar.php
@@ -0,0 +1,12 @@
+<?php
+
+ define('__PAGETITLE','Tantárgyfelosztás');
+
+ define('_TANTARGYFELOSZTAS','Tantárgyfelosztás');
+ define('_TANKOR','Tankör');
+ define('_ORASZAM','Óraszám');
+ define('_AKTUALIS_TANAR','Aktuális tanár');
+ define('_VALASZTOTT_TANAR','Választott tanár');
+ define('_IDOSZAK','Időszakonként');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanarHozzarendeles.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanarHozzarendeles.php
new file mode 100644
index 00000000..65781757
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tankorTanarHozzarendeles.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Tantárgyfelosztás - tankör-tanár hozzárendelés');
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/terem.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/terem.php
new file mode 100644
index 00000000..9a6d0de5
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/terem.php
@@ -0,0 +1,14 @@
+<?php
+
+ define('__PAGETITLE','Termek');
+
+ define('_LEIRAS','Leírás');
+ define('_TEREMID','Terem azonosító szám');
+ define('_FEROHELY','Férőhely');
+ define('_TIPUS','Terem típus');
+ define('_TELEPHELY','Telephely');
+ define('_UJ_TEREM','Új terem felvétele');
+
+ define('_TEREM','Terem');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tovabbkepzes.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tovabbkepzes.php
new file mode 100644
index 00000000..bb66ab99
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/tovabbkepzes.php
@@ -0,0 +1,34 @@
+<?php
+
+ define('__PAGETITLE','Továbbképzések');
+
+ define('_UJ_TOVABBKEPZES','Új továbbképzés');
+ define('_FELVETT_TOVABBKEPZESEK','Rögzített lehetséges továbbképzések');
+ define('_TANAROK_TOVABBKEPZESEI','Tanárok továbbképzései');
+ define('_INTEZMENY','Intézmény');
+ define('_TOVABBKEPZES_NEV','továbbképzés név');
+ define('_ORASZAM','óraszám');
+ define('_AKKREDITALT','akkreditált');
+ define('_TOVABBKEPZESEK','Továbbképzések');
+ define('_TOLDT','dátumtól');
+ define('_IGDT','dátumig');
+ define('_TANUSITVANYDT','tanúsítvány kiállítása');
+ define('_TANUSITVANYSZAM','tanúsítvány száma');
+ define('_TOVABBKEPZES_TERV','Beiskolázási terv');
+ define('_TOVABBKEPZES','továbbképzés');
+ define('_RESZOSSZEG','részösszeg');
+ define('_TAMOGATAS','támogatás');
+ define('_STATUSZ','státusz');
+ define('_MEGJEGYZES','megjegyzés');
+ define('_TAMOGATASI_KERET','továbbképzés támogatási keret');
+
+ define('_HETI_KOTELEZO_ORASZAM','heti kötelező óraszám');
+ define('_HETI_MUNKAORA','heti munkaóra');
+ define('_TOVABBKEPZES_FORDULO_DT','forduló dátum');
+ define('__NAPTARIEV','Naptári&nbsp;év');
+
+ define('_TAVOLLET','távollét');
+ define('_HELYETTESITES_RENDJE','helyettesítés rendje');
+ define('_PRIORITAS','prioritás');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/valtas.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/valtas.php
new file mode 100644
index 00000000..a4f011a4
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/valtas.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Intézmény');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/zaradek.php b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/zaradek.php
new file mode 100644
index 00000000..4d2c72f4
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/intezmeny/zaradek.php
@@ -0,0 +1,9 @@
+<?php
+
+ define('_DATUM', 'dátum');
+ define('_SORSZAM', 'sorszám');
+ define('_SZOVEG', 'szöveg');
+ define('_DOKUMENTUM', 'dokumentum');
+ define('_IKTATOSZAM','iktatószám');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/koszi/esemenyAdmin.php b/mayor-orig/www/lang/hu_HU/module-naplo/koszi/esemenyAdmin.php
new file mode 100644
index 00000000..6dced833
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/koszi/esemenyAdmin.php
@@ -0,0 +1,23 @@
+<?php
+
+ define('__PAGETITLE','K.Ö.Sz.I. eseményminta - és esemény adminisztráció');
+ define('__PAGEHELP','1. Vegyél fel egy esemény mintát<br/>2. Egy mintához állíts be egy vagy többféle ponttípust<br/>3. A tanévhez rögzíts egy konkrét eseményt (dátum vagy félév kötelező!), és ne feledd megadni az igazolók halmazát (használd a CTRL gombot több kiválasztásához)');
+
+ define('_ESEMENYMINTAK','Esemény minták');
+ define('_ESEMENYEK_TANEVBEN','Események ebben a tanévben');
+ define('_PONTTIPUS','Pont típus');
+ define('_HELYEZES','Helyezés (opció)');
+ define('_PONT','Pont');
+ define('_DATUM','Dátum');
+ define('_FELEV','Félév (opció)');
+ define('_IGAZOLOK','Igazolók');
+
+ define('_TIPUS','Típus');
+ define('_NEV','Rövid név');
+ define('_LEIRAS','Leírás');
+
+ define('_NINCS','Nincs még rögzítve');
+
+ define('_UJ_ESEMENY','Új köszi esemény');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/koszi/koszi.php b/mayor-orig/www/lang/hu_HU/module-naplo/koszi/koszi.php
new file mode 100644
index 00000000..2d693ede
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/koszi/koszi.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('__PAGETITLE','K.Ö.Sz.I.');
+ define('__PAGEHELP','Gyűjts K.Ö.Sz.I. pontokat a tanévben! Válassz egy eseményt vagy tevékenységet, majd pontértéket! A K.Ö.Sz.I. pontodat az esemény szervezője/adminisztrátora/felelőse fogja jóváhagyni. Jó vadászatot!');
+
+ define('_ESEMENY','Esemény');
+ define('_MIKOR','Mikor');
+ define('_PONT','Pont');
+ define('_IDEN_ENNYIT','Ebben a tanévben ennyi K.Ö.Sz.I. pontot szereztél');
+
+ define('_KOSZI','köszi');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/koszi/kosziAdmin.php b/mayor-orig/www/lang/hu_HU/module-naplo/koszi/kosziAdmin.php
new file mode 100644
index 00000000..5ba7dec5
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/koszi/kosziAdmin.php
@@ -0,0 +1,17 @@
+<?php
+
+ define('__PAGETITLE','K.Ö.Sz.I. pontjóváírás');
+ define('__PAGEHELP','κ.ö.∑ζ.ι');
+
+ define('_ESEMENY','Esemény');
+ define('_MIKOR','Mikor');
+ define('_PONT','Pont');
+ define('_NEV','Név');
+ define('_TEENDO','Teendő');
+ define('_IDEN_ENNYIT','Ebben a tanévben ennyi KÖSZI pontod van');
+
+ define('_KOSZI','köszi');
+ define('_JOVAHAGY','Jóváhagy');
+ define('_ELUTASIT','Elutasít');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/naplo.php b/mayor-orig/www/lang/hu_HU/module-naplo/naplo.php
new file mode 100644
index 00000000..8b81acf9
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/naplo.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','MaYoR elektronikus napló');
+
+ define('_MINDEN_BEIRVA','Köszönjük, hogy minden órádat beírtad!');
+ define('_BEIRATLAN_ORAK_SZAMA','Beíratlan órák száma');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/diakTankorJelentkezes.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/diakTankorJelentkezes.php
new file mode 100644
index 00000000..0fc3e47c
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/diakTankorJelentkezes.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','Tankörjelentkezés - hitelesítő levelek nyomtatása');
+
+ define('_OSZTALYOK','Érintett osztályok');
+ define('_LEADASI_HATARIDO','Leadási határidő');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/ertesito.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/ertesito.php
new file mode 100644
index 00000000..8f01047e
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/ertesito.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Értesítő nyomtatása');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/helyettesitesinaplo.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/helyettesitesinaplo.php
new file mode 100644
index 00000000..e8647921
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/helyettesitesinaplo.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('_DOWNLOAD', 'Letöltés');
+ define('__PAGETITLE', 'Helyettesítési napló');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/osztalyozonaplo.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/osztalyozonaplo.php
new file mode 100644
index 00000000..4903b74d
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/osztalyozonaplo.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Osztályozónapló nyomtatása');
+ define('_LETOLTES','Letöltés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniEvVegiJegyzokonyv.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniEvVegiJegyzokonyv.php
new file mode 100644
index 00000000..f3ff196a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniEvVegiJegyzokonyv.php
@@ -0,0 +1,4 @@
+<?php
+
+ define('__PAGETITLE','Év végi jegyzőkönyv nyomtatása');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniHaviJegyzokonyv.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniHaviJegyzokonyv.php
new file mode 100644
index 00000000..c374e57e
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/sniHaviJegyzokonyv.php
@@ -0,0 +1,4 @@
+<?php
+
+ define('__PAGETITLE','Havi jegyzőkönyv nyomtatása');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/tankorNaplohozRendeles.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/tankorNaplohozRendeles.php
new file mode 100644
index 00000000..ce8837a7
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/tankorNaplohozRendeles.php
@@ -0,0 +1,20 @@
+<?php
+/*
+ module: naplo
+ file: tankorbeallitas.php
+ nyelv: hu_HU (magyar)
+*/
+
+ define('__PAGETITLE','Tankörök szétosztása a haladási naplókba');
+
+ define('_TANKOR','Tankör');
+ define('_JELOLT','Jelölt');
+ define('_JELOLT_TANKOROK_SZAMA','Jelölt tankörök száma');
+ define('_HIANYZO_TANKOROK_SZAMA','Hiányzó tankörök száma');
+ define('_NAPLO','Napló');
+ define('_OK','OK');
+ define('_DB','Db');
+ define('_OSZTALY','Osztály');
+ define('_HOZZARENDELES_ALAPHELYZETBE_ALLITASA','Hozzárendelések alaphelyzebe állítása');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/zaradekok.php b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/zaradekok.php
new file mode 100644
index 00000000..9dd4400f
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/nyomtatas/zaradekok.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Záradékok és bejegyzések nyomtatása');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/ascExport.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/ascExport.php
new file mode 100644
index 00000000..5171dec4
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/ascExport.php
@@ -0,0 +1,22 @@
+<?php
+
+ define('__PAGETITLE', 'aSc Export');
+ define('_ORARENDI_BLOKKOK','Órarendbe exportálandó blokkok');
+ define('_EXPORT','Export');
+ define('_EXPORTALAS','Exportálás');
+ define('_EXPORTALANDO_HET','Exportálandó órarendi hét');
+ define('_BLOKKOK','blokkok');
+ define('_TANKOROK','tankörök');
+ define('_TOBBSZOROS_ORAK','Többszörös (dupla, tripla, ...) órák megadása');
+ define('_ORABONTAS','Órabontás');
+ define('_ORA','óra');
+ define('_BONTANDO_TANKOR_BLOKK','Bontandó tankör/blokk');
+ define('_TORLENDO_BONTAS','Törlendő bontás');
+ define('_EXPORT_SZEMINARIUMKENT_DIAKOKKAL','Az órák exportálása szemináriumként, diáknévsorokkal');
+ define('_EXPORT_SZAKKOROKKEL','Szakköri órák (azaz jelenlét: nem kötelező) exportálása');
+ define('_EXPORT_SABLON_LETOLTESE','Export sablon letöltése (az aSc számára)');
+ define('_BLOKKOK_NELKUL','Exportálás blokkok nélkül');
+ define('_TARGYAK_BONTASAVAL','A tárgyak altípusokra bontása a tankörnevek alapján');
+ define('_DOWNLOAD', 'Letöltés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/helyettesites.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/helyettesites.php
new file mode 100644
index 00000000..b66f62dc
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/helyettesites.php
@@ -0,0 +1,6 @@
+<?php
+ define('__PAGETITLE','Helyettesítés');
+ define('__PAGEHELP','A haladási naplóba betöltött órák a normál - órarendileg meghatározott - munkarendtől való eltérések táblázata.');
+ define('_NO_TIMETABLE','Erre a napra nincs meghatározva órarend');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarend.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarend.php
new file mode 100644
index 00000000..7b7301af
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarend.php
@@ -0,0 +1,10 @@
+<?php
+ define('__PAGETITLE','Órarend');
+ define('__PAGEHELP','Az órarend a kiválasztott dátumnak megfelelő hetet mutatja, esetlegesen kiegészítve a már megtartott vagy betöltött haladási napló módosításaival.
+ Szűrési feltételként állíts be tanárt, osztályt, telephelyet, termet, diákot, tankört. A pirossal jelölt termekben a tankörlétszám átlépte az adott terem befogadóképességét.
+ Az egérrel a bejegyzések felett állva további információk érhetők el. A helyettesítések részletes listája külön menüpontban látható.
+ ');
+ define('_NO_TIMETABLE','Erre a napra nincs meghatározva órarend');
+ define('_HET','hét');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendBetolto.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendBetolto.php
new file mode 100644
index 00000000..5e6b16e2
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendBetolto.php
@@ -0,0 +1,9 @@
+<?php
+
+ define('__PAGETITLE','Órarend betöltése');
+ define('_FILENAME','Fájlnév');
+ define('_FORCE', 'kényszerítve');
+ define('_EXPORT_SABLON_LETOLTESE','Export sablon letöltése (az aSc számára)');
+ define('_LEZARAS', 'A korábban betöltött órarendi bejegyzések lezárásával');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendEllenorzes.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendEllenorzes.php
new file mode 100644
index 00000000..8e9f0292
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendEllenorzes.php
@@ -0,0 +1,11 @@
+<?php
+
+ define('__PAGETITLE','Órarend ellenőrzés');
+ define('_ORARENDIORA_TANKOR_ELLENORZES','Órarendi óra - tankör hozzárendelés ellenőrzése');
+ define('_HET','hét');
+ define('_ORA','óra');
+ define('_TANKOR_ORASZAM_ELLENORZES','Tankör óraszám ellenőrzés');
+ define('_HIANYZO_TERMEK','Hiányzó termek');
+ define('_TEREMUTKOZES','Teremütközés');
+ define('_ERVENYES','érvényes');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendModosito.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendModosito.php
new file mode 100644
index 00000000..19a7d449
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendModosito.php
@@ -0,0 +1,19 @@
+<?php
+
+ define('__PAGETITLE', 'Órarendmódosítás');
+ define('__PAGEHELP', 'A blokk vagy tankör felvétele után ne felejts termet is beállítani!');
+ define('__REFDT', 'érvényesség');
+ define('__ORARENDDT','órarend dátuma');
+ define('_TOROL','Órarendi óra törlése/lezárása');
+ define('_TANKOR','Tankör');
+ define('_BLOKK','Blokkok');
+
+ define('_TARGYJEL','tárgyjel');
+ define('_OSZTALYJEL','osztályjel');
+ define('_TOLDT','tól');
+
+ define('_LEBEGO_ORA','Lebegő Óra');
+ define('_TANKOR_HOZZARENDELES','új tankör hozzárendelés');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTankor.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTankor.php
new file mode 100644
index 00000000..4387ba21
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTankor.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Órarend - tankör kapcsolatok');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTeremModositas.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTeremModositas.php
new file mode 100644
index 00000000..fbc1ebe4
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/orarendTeremModositas.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('__PAGETITLE','Órarend - terem módosítás');
+ define('_TEREM_MODOSITAS','Teremmódosítás');
+ define('_ORARENDI_ORA_KIVALASZTASA','Órarendi óra kiválasztása');
+ define('_HET','hét');
+
+ define('_NINCS_ORAJA','A kiválasztott időpontban nincs órája. Ellenőrizd, hogy<br/>a dátum beleesik-e a kívánt érvényes órarendi intervallumba!');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/szabadTerem.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/szabadTerem.php
new file mode 100644
index 00000000..1a80b7cc
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/szabadTerem.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Órarendi szabad termek');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/tanarOrarend.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/tanarOrarend.php
new file mode 100644
index 00000000..a9cef6fc
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/tanarOrarend.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE', 'Összesített tanár órarend');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/orarend/termez.php b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/termez.php
new file mode 100644
index 00000000..1cd81497
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/orarend/termez.php
@@ -0,0 +1,6 @@
+<?php
+ define('__PAGETITLE', 'Termező mágia');
+ define('_TARGY', 'tárgy');
+ define('_SORREND', 'sorrend');
+ define('_TEREM_SORREND', 'terem preferencia sorrend');
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizelomenetel.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizelomenetel.php
new file mode 100644
index 00000000..8b65560a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizelomenetel.php
@@ -0,0 +1,16 @@
+<?php
+/* ------------------------ /
+
+ Module: naplo
+ File: tankor.php
+ Nyelv: hu_HU (magyar)
+
+/ ------------------------ */
+
+
+ define('__PAGETITLE','Tanuló előmenetele képzése szerint');
+ define('_TARGY','Tárgy');
+ define('_ORASZAM','Óraszám');
+ define('_EVFOLYAM','Évfolyam');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizonyitvany.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizonyitvany.php
new file mode 100644
index 00000000..a1a8c18d
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/bizonyitvany.php
@@ -0,0 +1,42 @@
+<?php
+/* ------------------------ /
+
+ Module: naplo
+ File: tankor.php
+ Nyelv: hu_HU (magyar)
+
+/ ------------------------ */
+
+
+ define('__PAGETITLE','Bizonyítvány');
+ define('_AZ','a(z)');
+ define('_OSZTALYABAN','osztályában');
+ define('_ERTESITOJE','Értesítője');
+ define('_ELERT_EREDMENYEROL','elért eredményéről');
+ define('_SZEMESZTERBEN','szemeszterében');
+ define('_TANEV','tanév');
+ define('_MAGATARTAS','magatartás');
+ define('_SZORGALOM','szorgalom');
+ define('_JEGY','Értékelés');
+ define('_MULASZTOTT_ORAK_SZAMA','Mulasztott órák száma');
+ define('_TARGY','Tárgy');
+ define('_OSZTALYATLAG','Osztályátlag');
+ define('_IGAZOLT','igazolt');
+ define('_IGAZOLATLAN','igazolatlan');
+ define('_IGAZGATO','igazgató');
+ define('_OSZTALYFONOK','osztályfőnök');
+ define('_SZULO','szülő');
+ define('_PH','P.H.');
+ define('_KESESPERC','Késésekből összeadódó igazolatlan');
+ define('_PERC','perc');
+ define('_TANULMANYI_OSSZESITOJE','Tanulmányi Összesítője');
+ define('_BIZTOS_E','Biztosan felveszi/módosítja a választott tárgy zárójegyét?');
+ define('_JEGYMODOSITAS','Zárójegy felvétele');
+ define('_IGAZOLATLAN_SZAM_MEGJEGYZES','Évközi záráskor igazolatlan mulasztásként jelennek meg a még igazolható hiányzások is!');
+ define('_ORASZAM','Óraszám');
+ define('_EVFOLYAM','Évfolyam');
+ define('_AZ_OSZTALYZATOK_HIVATALOS_DT_SZERINTI','szorgalmi időszakban szerzett osztályzataiból összeállított');
+ define('_HIVATALOS_DT_SZERINT_CSOPORTOSITOTT','hivatalos dátum szerint csoportosított');
+ define('_MULASZTOTT_ELMELET_GYAKORLAT','Elm. - Gyak.');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/diak.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/diak.php
new file mode 100644
index 00000000..2f57346c
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/diak.php
@@ -0,0 +1,18 @@
+<?php
+/* ------------------------------------- /
+
+ Module: naplo
+ File: tanulo.php
+ Nyelv: hu_HU (magyar)
+
+/ ------------------------------------- */
+
+ define('__PAGETITLE','Jegyek');
+ define('_TARGY','Tárgy');
+ define('_ATLAG','Átlag');
+
+ define('_BIZONYITVANY','Bizonyítvány');
+ define('_FELEVI','Félévi');
+ define('_EVVEGI','Évvégi');
+ define('_EGYSZERU_ATLAG','Egyszerű átlag');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/dolgozat.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/dolgozat.php
new file mode 100644
index 00000000..c408c0d1
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/dolgozat.php
@@ -0,0 +1,34 @@
+<?php
+/* ---------------------------------------- /
+
+ Module: naplo
+ File: dolgozat.php
+ Nyelv: hu_HU (magyar)
+
+/ ---------------------------------------- */
+
+ define('_DOLGOZATOK','Dolgozatok');
+ define('_DOLGOZAT','Dolgozat neve');
+ define('__PAGETITLE','Dolgozatok');
+ define('_DOLGOZAT_ADATAI','A dolgozat adatai');
+ define('_MEGNEVEZES','Megnevezés');
+ define('_BEJELENTES','Bejelentés');
+ define('_TERVEZETT','Tervezett időpont');
+ define('_TANAROK','tanárok');
+ define('_TANKOROK','Tankörök');
+ define('_TANKOR','Tankör');
+ define('_JEGYEK','Jegyek');
+ define('_JEGY','Jegy');
+ define('_EV','év');
+ define('_HO','hó');
+ define('_NAP','nap');
+ define('_NINCS_DOLGOZAT','nincs bejelentett dolgozat');
+ define('_NINCS_KITOLTVE','[nincs kitöltve]');
+ define('_TOROL','Jegyek törlése');
+ define('_BIZTOS_TOROLE','Biztosan töröljük a tankörnek ehhez a dolgozathoz tartozó adatait?');
+ define('_DOLGOZAT_BEJELENTES','Dolgozat bejelentés');
+ define('_DOLGOZAT_TOROL','Dolgozat törlése');
+ define('_BIZTOS_DOLGOZAT_TOROL','Biztosan törölni akarja a dolgozatot?');
+ define('_BEJELENTETT_DOLGOZATOK','Már bejelentett dolgozatok');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/jegy.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/jegy.php
new file mode 100644
index 00000000..a8a97a4a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/jegy.php
@@ -0,0 +1,22 @@
+<?php
+/* --------------------------------------- /
+
+ Module: naplo
+ File: jegy.php
+ Nyelv: hu_HU (magyar)
+
+/ --------------------------------------- */
+
+ define('__PAGETITLE','Osztályozó napló - jegy módosítása');
+ define('_JEGY_ADATAI','Jegy adatai');
+ define('_MEGJEGYZES','Megjegyzés');
+ define('_MEGJ','megj.');
+ define('_HOZZARENDELT_ORA','Hozzárendelt óra');
+ define('_DOLGOZAT','Dolgozat');
+ define('_ORA','óra');
+ define('_NINCS','nincs');
+ define('_ROGZIT','rögzít');
+ define('_TOROL','töröl');
+ define('_BIZTOSE','Biztosan törölni akarja a jegyet?');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/stat.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/stat.php
new file mode 100644
index 00000000..7a5f8316
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/stat.php
@@ -0,0 +1,65 @@
+<?php
+
+ define('__PAGETITLE','Zárási statisztika');
+ define('__PAGEHELP','Jelmagyarázat: * (az évközi nem súlyozott átlagtól való eltérés nagyobb mint 0.5 jegy); ÷ volt a tanév során jegye');
+ define('_OSZTALY','osztály');
+ define('_TANKOR','Tankör');
+ define('_ATLAG','Átlag');
+ define('_ORA','óra');
+
+ define('_MAGATARTAS','magatartás');
+ define('_SZORGALOM','szorgalom');
+ define('_BIZONYITVANY','Bizonyítvány');
+
+ define('_BEIR','beír');
+
+ define('_ATLAGOSAN','átlagosan');
+ define('_OSSZESEN','összesen');
+
+ define('_IGAZOLT','igazolt');
+ define('_IGAZOLATLAN','igazolatlan');
+ define('_HIANYZAS','hiányzás');
+ define('_HIANYZASOK','hiányzások');
+
+ define('_LETSZAM','létszám');
+
+ define('_KITUNO','kitűnő');
+ define('_BUKASOK','bukások');
+ define('_BUKOTTAK','bukottak');
+
+ define('_NINCS','nincs');
+ define('_TOBB','több');
+ define('_IGAZOLATLANJA','igazolatlanja');
+ define('_OT','öt');
+ define('_VAGY','vagy');
+ define('_OTNEL','ötnél');
+ define('_TIZ','tíz');
+ define('_TIZNEL','tíznél');
+
+ define('_DICSERETES','dicséret');
+ define('_FIGYELMEZTETOS','figyelmeztető');
+ define('_NYELVVIZSGAS','nyelvvizsga');
+
+ define('_TARGY','Tárgy');
+ define('_TARGYBOL','tárgyból');
+ define('_OSZTALYATLAG','Osztályátlag');
+
+ define('_SZEMPONT','Szempont');
+ define('_OSSZESITES','összesítés');
+ define('_BUKOTT','bukott');
+ define('_BUKAS','bukás');
+ define('_ÁTLAG','átlag');
+
+ define('_NYOMTATAS','Értesítők nyomtatása');
+ define('_OSSZES_JEGY_ATLAGA','Összes jegy átlaga');
+ define('_OSZTALYATLAGA','Osztályátlag');
+
+ define('_FELEV','félév');
+ define('_ZARADEK','Záradék');
+ define('_TARGYAK','Tárgyak');
+ define('_ORASZAMOK','Óraszámok');
+
+ define('_MULASZTAS','mulasztás');
+ define('_FELSZ','f.h. db');
+ define('_KESES','igazolatlan késés db/perc');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szempontRendszer.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szempontRendszer.php
new file mode 100644
index 00000000..76fe26b2
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szempontRendszer.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('__PAGETITLE','Szöveges értékelés - Szempontrendszer megadás');
+ define('_TOROL','Törlés');
+ define('_BIZTOS_TOROL','Biztosan törli a szempontrendszert az összes hozzá kapcsolódó szöveges értékeléssel?');
+
+ define('_ID', 'azonosító');
+ define('_SZEMESZTER','szemeszter');
+ define('_TARGY','tárgy');
+ define('_TARGYTIPUS','tárgytípus');
+ define('_KEPZES','képzés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szovegesErtekeles.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szovegesErtekeles.php
new file mode 100644
index 00000000..e53ac534
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/szovegesErtekeles.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','Szöveges értékelés');
+ define('_LEGUTOBBI_ERTEKELES','Legutóbbi értékelés kelte (az adott dátumig)');
+ define('_MEG_NEM_ERTEKELT','Még nem volt értékelve (az adott dátumig)');
+ define('_SZEMESZTER_ERTEKELES','szemesztert záró értékelés');
+ define('_NYOMTATAS','Osztály szöveges értékelésének nyomtatása');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/tankor.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/tankor.php
new file mode 100644
index 00000000..de6938e4
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/tankor.php
@@ -0,0 +1,34 @@
+<?php
+/* ------------------------ /
+
+ Module: naplo
+ File: tankor.php
+ Nyelv: hu_HU (magyar)
+
+/ ------------------------ */
+
+ define('__PAGETITLE','Osztályozó napló');
+ define('_TANKOR','Tankör');
+ define('_AKTUALIS_NEVSOR','Aktuális névsor');
+ define('_TELJES_NEVSOR','Teljes névsor');
+ define('_ATLAG','Átlag');
+ define('_ORA','óra');
+ define('_ORAHOZ_RENDELES','Órához rendelés');
+ define('_DOLGOZATHOZ_RENDELES','Dolgozathoz rendelés');
+ define('_UJ_DOLGOZAT','új dolgozat');
+ define('_FELEV','félév');
+
+ define('_EGYSZERU_ATLAG','1:1:1:1:1');
+ define('_TEMAZAROVAL_SULYOZOTT','1:1:1:2:2');
+ define('_KISJEGY_TEMAZARO','1:2:2:4:4');
+
+ define('_BIZONYITVANY','Bizonyítvány');
+ define('_MEGJEGYZES','Közös megjegyzés a beírandó jegyekhez: ');
+ define('_BEIR','beír');
+ define('_VALASSZ_DOLGOZATOT','Csoportos jegy beírásához egy dolgozat kiválasztása szükséges!');
+ define('_KOVETELMENY','Követelmény');
+ define('_EVFOLYAMA','Évfolyama');
+
+ define('_SZOVEGES_MINOSITES','Szöveges minősítés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/targySorrend.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/targySorrend.php
new file mode 100644
index 00000000..726be6c7
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/targySorrend.php
@@ -0,0 +1,8 @@
+<?php
+
+ define('__PAGETITLE','Tárgysorrendek megadása');
+ define('_SORREND','Tárgyak sorrendje');
+ define('_FEL','fel');
+ define('_LE','le');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsga.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsga.php
new file mode 100644
index 00000000..03f7d28b
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsga.php
@@ -0,0 +1,19 @@
+<?php
+
+ define('__PAGETITLE','Vizsga');
+
+ define('_VIZSGAJELENTKEZES', 'Vizsgajelentkezés');
+ define('_VIZSGALISTA','Vizsga lista');
+ define('_TARGY','tárgy');
+ define('_EVFOLYAMJEL','évfolyam');
+ define('_JELENTKEZES','jelentkezés');
+ define('_VIZSGA','vizsga');
+ define('_ERTEKELES_HALASZTAS','értékelés / halasztás');
+ define('_ERTEKELES','értékelés');
+ define('_HALASZTAS','halasztás');
+ define('_EREDMENY','Vizsga értékelése');
+ define('_VIZSGATIPUS','vizsgatípus');
+ define('_BIZTOSAN_TOROL_E','Biztosan törli a vizsgát és az esetleg hozzá kapcsolódó zárójegyet, záradékot? Csak adminisztrációs hiba javítására használja!');
+
+ define('__VIZSGATIPUS','vizsgatípus');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsgaJelentkezes.php b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsgaJelentkezes.php
new file mode 100644
index 00000000..b43f3308
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/osztalyozo/vizsgaJelentkezes.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Vizsgajelentkezés');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/share/diak.php b/mayor-orig/www/lang/hu_HU/module-naplo/share/diak.php
new file mode 100644
index 00000000..b66ad481
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/share/diak.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__FILENEV','Adatállomány elérési utja: ');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/share/ertekeles.php b/mayor-orig/www/lang/hu_HU/module-naplo/share/ertekeles.php
new file mode 100644
index 00000000..9ed59538
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/share/ertekeles.php
@@ -0,0 +1,33 @@
+<?php
+/* ------------------------------------- /
+
+ Module: naplo
+ File: ertekeles
+ Nyelv: hu_HU (magyar)
+
+/ ------------------------------------- */
+
+/* Dicséret fokozatok */
+ define('_SZAKTANARI_DICSERET','szaktanári dicséret');
+ define('_OSZTALYFONOKI_DICSERET','osztályfőnöki dicséret');
+ define('_IGAZGATOI_DICSERET','igazgatói dicséret');
+ define('_NEVELOTESTULETI_DICSERET','nevelőtestületi dicséret');
+
+/* Fegyelmi fokozatok */
+
+ define('_SEMMI','semmi');
+ define('_SZAKTANARI_FIGYELMEZTETES','szaktanári figyelmeztetés');
+ define('_SZAKTANARI_INTO','szaktanári intő');
+ define('_SZAKTANARI_ROVO','szaktanári rovó');
+ define('_SZOBELI_OSZTALYFONOKI_FIGYELMEZTETES','szóbeli osztályfőnöki figyelmeztetés');
+ define('_OSZTALYFONOKI_FIGYELMEZTETES','osztályfőnöki figyelmeztetés');
+ define('_OSZTALYFONOKI_INTO','osztályfőnöki intő');
+ define('_OSZTALYFONOKI_ROVO','osztályfőnöki rovó');
+ define('_IGAZGATOI_FIGYELMEZTETO','igazgatói figyelmeztető');
+ define('_IGAZGATOI_INTO','igazgatói intő');
+ define('_IGAZGATOI_ROVO','igazgatói rovó');
+ define('_NEVELOTESTULETI_FIGYELMEZTETES','nevelőtestületi figyelmeztetés');
+ define('_NEVELOTESTULETI_INTES','nevelőtestületi intés');
+ define('_NEVELOTESTULETI_MEGROVAS','nevelőtestületi megrovás');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/share/file.php b/mayor-orig/www/lang/hu_HU/module-naplo/share/file.php
new file mode 100644
index 00000000..181edc69
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/share/file.php
@@ -0,0 +1,67 @@
+<?php
+
+ define('_FILENEV','Adatállomány elérési útja');
+ define('_VAN_ROVATFEJ','Van rovatfej');
+
+ define('_ATTR_DIAKID','Diák azonosító');
+ define('_ATTR_OID','Oktatási azonosító');
+ define('_ATTR_IGAZOLVANYSZAM','Diákigazolvány szám');
+ define('_ATTR_VNE','Viselt név előtag');
+ define('_ATTR_VCSN','Viselt családnév');
+ define('_ATTR_VUN','Viselt utónév');
+ define('_ATTR_SZNE','Születéskori név előtag');
+ define('_ATTR_SZCSN','Születéskori családnév');
+ define('_ATTR_SZUN','Születéskori utónév');
+ define('_ATTR_ANE','Anyja születéskori név előtag');
+ define('_ATTR_ACSN','Anyja születéskori családnév');
+ define('_ATTR_AUN','Anyja születéskori utónév');
+ define('_ATTR_SZH','Születési hely');
+ define('_ATTR_SZI','Születési idő');
+ define('_ATTR_KEZDO_TANEV','Kezdő tanév');
+ define('_ATTR_KEZDO_SZEMESZTER','Kezdő szemeszter');
+ define('_ATTR_VEGZO_TANEV','Végző tanév');
+ define('_ATTR_VEGZO_SZEMESZTER','Végző szemeszter');
+ define('_ATTR_ADOAZONOSITO','Adóazonosító');
+ define('_ATTR_ALLAMPOLGARSAG','Állampolgárság');
+ define('_ATTR_ANYAID','Anya - azonosító szám');
+ define('_ATTR_APAID','Apa - azonosító szám');
+ define('_ATTR_GONDVISELOID','Gondviselő - azonosító szám');
+ define('_ATTR_NEVELOID','Nevelő - azonosító szám');
+ define('_ATTR_DIAKNAPLOSORSZAM','Naplósorszám');
+ define('_ATTR_ELOZOISKOLAOMKOD','Előző iskola OM kódja');
+ define('_ATTR_EMAIL','E-mail cím');
+ define('_ATTR_FOGYATEKOSSAG','Fogyatékosság');
+ define('_ATTR_GONDOZASISZAM','Gondozási szám');
+ define('_ATTR_JOGVISZONYKEZDETE','Jogviszony kezdete');
+ define('_ATTR_JOGVISZONYVEGE','Jogviszony vége');
+ define('_ATTR_LAKHELY_ORSZAG','Lakhely - Ország');
+ define('_ATTR_LAKHELY_IRSZ','Lakhely - Irányítószám');
+ define('_ATTR_LAKHELY_HELYSEG','Lakhely - Helység');
+ define('_ATTR_LAKHELY_KOZTERULETNEV','Lakhely - Közterület név');
+ define('_ATTR_LAKHELY_KOZTERULETJELLEG','Lakhely - Közterület jelleg');
+ define('_ATTR_LAKHELY_HAZSZAM','Lakhely - Házszám');
+ define('_ATTR_LAKHELY_EMELET','Lakhely - Emelet');
+ define('_ATTR_LAKHELY_AJTO','Lakhely - Ajtó');
+ define('_ATTR_TART_ORSZAG','Tartózkodási hely - Ország');
+ define('_ATTR_TART_IRSZ','Tartózkodási hely - Irányítószám');
+ define('_ATTR_TART_HELYSEG','Tartózkodási hely - Helység');
+ define('_ATTR_TART_KOZTERULETNEV','Tartózkodási hely - Közterület név');
+ define('_ATTR_TART_KOZTERULETJELLEG','Tartózkodási hely - Közterület jelleg');
+ define('_ATTR_TART_HAZSZAM','Tartózkodási hely - Házszám');
+ define('_ATTR_TART_EMELET','Tartózkodási hely - Emelet');
+ define('_ATTR_TART_AJTO','Tartózkodási hely - Ajtó');
+ define('_ATTR_TAJSZAM','TAJ szám');
+ define('_ATTR_OSZTALYJEL','Osztály jele');
+ define('_ATTR_PENZUGYISTATUSZ','Pénzügyi státusz');
+ define('_ATTR_SZEMELYIIGAZOLVANYSZAM','Személyi igazolvány szám');
+ define('_ATTR_SZOCIALISHELYZET','Szociális helyzet');
+ define('_ATTR_STATUSZ','Jogviszonya');
+ define('_ATTR_TARTOZKODASIOKIRATSZAM','Tartózkodási okirat szám');
+ define('_ATTR_TORVENYESKEPVISELO','Törvényes képviselő');
+ define('_ATTR_TELEFON','Telefonszám');
+ define('_ATTR_MOBIL','Mobiltelefonszám');
+ define('_ATTR_NEM','Neme');
+ define('_ATTR_MEGJEGYZES','Megjegyzés');
+// define('_ATTR_LAKOHELYIJELLEMZO','Lakóhelyi jellemző');
+ define('_ATTR_LAKOHELYIJELLEMZO','Lakóhelyi jellemző');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/share/hianyzas.php b/mayor-orig/www/lang/hu_HU/module-naplo/share/hianyzas.php
new file mode 100644
index 00000000..46993d84
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/share/hianyzas.php
@@ -0,0 +1,14 @@
+<?php
+
+ if (!defined('_ORVOSI')) define('_ORVOSI','orvosi igazolás');
+ if (!defined('_SZULOI')) define('_SZULOI','szülői igazolás');
+ if (!defined('_TANULMANYI_VERSENY')) define('_TANULMANYI_VERSENY','verseny');
+ if (!defined('_NYELVVIZSGA')) define('_NYELVVIZSGA','vizsga');
+ if (!defined('_OSZTALYFONOKI')) define('_OSZTALYFONOKI','osztályfőnöki igazolás');
+ if (!defined('_IGAZGATOI')) define('_IGAZGATOI','igazgatói igazolás');
+ if (!defined('_HATOSAGI')) define('_HATOSAGI','hatósági igazolás');
+ if (!defined('_PALYAVALASZTAS')) define('_PALYAVALASZTAS','pályaválasztás');
+
+ if (!defined('_IGAZOLATLAN')) define('_IGAZOLATLAN','igazolatlan');
+ if (!defined('_TOROLT')) define('_TOROLT','törölt');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/share/osztalyzatok.php b/mayor-orig/www/lang/hu_HU/module-naplo/share/osztalyzatok.php
new file mode 100644
index 00000000..d7e69081
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/share/osztalyzatok.php
@@ -0,0 +1,61 @@
+<?php
+/* ------------------------------------- /
+
+ Module: naplo
+ File: osztalyzatok.phtml
+ Nyelv: hu_HU (magyar)
+
+/ ------------------------------------- */
+
+ define('_ELEGTELEN','elégtelen');
+ define('_ELEGSEGES','elégséges');
+ define('_ROSSZ','rossz');
+ define('_HANYAG','hanyag');
+ define('_KOZEPES','közepes');
+ define('_VALTOZO','változó');
+ define('_JO','jó');
+ define('_JELES','jeles');
+ define('_PELDAS','példás');
+
+ define('_FELZARKOZTATASRA_SZORUL','felzárkóztatásra szorul');
+ define('_FSZ','f.sz.');
+ define('_MEGFELELOEN_TELJESITETT','megfelelően teljesített');
+ define('_MFT','mf.t.');
+ define('_JOL_TELJESITETT','jól teljesített');
+ define('_JT','j.t.');
+ define('_KIVALOAN_TELJESITETT','kiválóan teljesített');
+ define('_KT','k.t.');
+
+ define('_MEGTAGADVA','megtagadva');
+ define('_ALAIRVA','aláírva');
+ define('_AI','ai.');
+
+ define('_NEMFELELTMEG','nem felelt meg');
+ define('_NFM','nfm.');
+ define('_MEGFELELT','megfelelt');
+ define('_MF','mf.');
+ define('_KIVALOANMEGFELELT','kiválóan megfelelt');
+ define('_KMF','kmf.');
+
+ define('_FELMENTETT','felmentett');
+ define('_NEM_OSZTALYOZHATO','nem osztályozható');
+ define('_NEM_JELENT_MEG','nem jelent meg');
+
+ define('_TOROLT','törölt');
+ define('_KIS_JEGY','kis jegy');
+ define('_NORMAL_JEGY','normál jegy');
+ define('_DOLGOZAT','dolgozat');
+ define('_TEMAZARO','témazáró');
+ define('_VIZSGAJEGY','vizsgajegy');
+
+// --- elavult - záradékolás kell helyette
+
+ define('_DICSERET','D');
+ define('_FIGYELMEZTETO','F');
+ define('_NYELVVIZSGA','Nyv');
+
+ define('_JEGYZET_DICSERET','Tanulmányi munkájáért %1% tantárgyból dicséretben részesül.');
+ define('_JEGYZET_FIGYELMEZTETO','Figyelmeztetőt kapott %1% tantárgyból');
+ define('_JEGYZET_NYELVVIZSGA','Nyelvvizsgája van %1% tantárgyból');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/share/tanar.php b/mayor-orig/www/lang/hu_HU/module-naplo/share/tanar.php
new file mode 100644
index 00000000..041915a6
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/share/tanar.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('_TANAR_OID','Oktatási azonosító');
+ define('_TANAR_VNE','Viselt név előtag');
+ define('_TANAR_VCSN','Viselt családnév');
+ define('_TANAR_VUN','Viselt utónév');
+ define('_TANAR_SZH','Születési hely');
+ define('_TANAR_SZI','Születési idő');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/sni/diakAllapot.php b/mayor-orig/www/lang/hu_HU/module-naplo/sni/diakAllapot.php
new file mode 100644
index 00000000..7e732959
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/sni/diakAllapot.php
@@ -0,0 +1,84 @@
+<?php
+
+ define('__PAGETITLE','Belépő/kilépő állapot');
+
+ define('_MENTOR','mentor tanár');
+ define('_SZEMESZTER1','Belépő állapot');
+ define('_SZEMESZTER2','Kilépő állapot');
+
+ define('_KULSOINFO','külső személyektől, intézményektől (családsegítő, iskola, gyermekjóléti szolgálat, stb) származó információk');
+ define('_DIAGNOZIS','diagnózis');
+
+ define('_OLVASAS','olvasás');
+ define('_OLVASASTEMPOJA','olvasás tempója');
+ define('_OLVASASHIBAK','olvasás hibák');
+
+ define('_IRAS','írás');
+ define('_IRASKEPE','írásképe');
+ define('_IRASHIBAK','írás hibák');
+
+ define('_SZOVEGERTES','szövegértés');
+ define('_MATEMATIKA','matematika');
+
+ define('_OLVASAS_BETUZO','betűző');
+ define('_OLVASAS_SZOTAGOLO','szótagoló');
+ define('_OLVASAS_FOLYAMATOS','folyamatos');
+
+ define('_OLVASASTEMPOJA_LASSU','lassú');
+ define('_OLVASASTEMPOJA_AKADOZO','akadozó');
+ define('_OLVASASTEMPOJA_MEGFELELO','megfelelő');
+ define('_OLVASASTEMPOJA_GYORS','gyors');
+
+ define('_OLVASASHIBAK_BETUTEVESZTES','betűtévesztés');
+ define('_OLVASASHIBAK_TIPIKUS_BETUCSERE','tipikus betűcsere');
+ define('_OLVASASHIBAK_BETUKIHAGYAS','betűkihagyás');
+ define('_OLVASASHIBAK_SZOTAGKIHAGYAS','szótagkihagyás');
+ define('_OLVASASHIBAK_SZOTAGCSERE','szótagcsere');
+
+ define('_IRAS_CSAK_MASOL','csak másol');
+ define('_IRAS_ONALLOAN_IR','önállóan ír');
+
+ define('_IRASKEPE_KUSZA_OLVASHATATLAN','kusza, olvashatatlan');
+ define('_IRASKEPE_RENDEZETT','rendezett');
+
+ define('_IRASHIBAK_BETUTEVESZTES','betűtévesztés');
+ define('_IRASHIBAK_TIPIKUS_BETUCSERE','tipikus betűcsere');
+ define('_IRASHIBAK_BETUKIHAGYAS','betűkihagyás');
+ define('_IRASHIBAK_SZOTAGKIHAGYAS','szótagkihagyás');
+ define('_IRASHIBAK_J-LY_TEVESZTESE','j-ly tévesztése');
+ define('_IRASHIBAK_HELYESIRASI_HIBAK','helyesírási hibák');
+
+ define('_SZOVEGERTES_GYENGE_NEM_TUDJA_ERTELMEZNI','gyenge, nem tudja értelmezni');
+ define('_SZOVEGERTES_KERDESEKRE_VALASZOL','kérdésekre válaszol');
+ define('_SZOVEGERTES_ONALLOAN_ERTELMEZ','önállóan értelmez');
+
+ define('_MATEMATIKA_OSSZEADAST_KIVONAST_ELVEGEZ','kivonást elvégez');
+ define('_MATEMATIKA_SZORZASI_MUVELET_TECHNIKAJAT_ISMERI','szorzási művelet technikáját ismeri');
+ define('_MATEMATIKA_TOBBTAGU_SZORZAST_TUD_VEGEZNI','többtagú szorzást tud végezni');
+ define('_MATEMATIKA_BENNFOGLALASI_MUVELET_TECHNIKAJAT_ISMERI','bennfoglalási művelet technikáját ismeri');
+ define('_MATEMATIKA_TOBBTAGU_BENNFOGLALAST_TUD_VEGEZNI','többtagú bennfoglalást tud végezni');
+ define('_MATEMATIKA_SZOVEGES_FELADAT_MATEMATIKAI_MUVELETI_LEIRASARA_KEPES','szöveges feladat matematika műveleti leírására képes');
+ define('_MATEMATIKA_MERTANI_FORMAKAT_TESTEKET_ISMERI','mértani formákat, testeket ismeri');
+ define('_MATEMATIKA_TERULETSZAMITAST_TUD_VEGEZNI','területszámítást tud végezni');
+ define('_MATEMATIKA_FELSZINSZAMITAST_TUD_VEGEZNI','felszínszámítást tud végezni');
+ define('_MATEMATIKA_TERFOGATSZAMITAST_TUD_VEGEZNI','térfogatszámítást tud végezni');
+ define('_MATEMATIKA_ALAPVETO_FORMAK_SZERKESZTESERE_KEPES','alapvető formák szerkesztésére képes');
+
+ define('_SZEMELYES_KOMPETENCIAK','személyes kompetenciák');
+ define('_TARSAS_KOMPETENCIAK','társas kompetenciák');
+ define('_KOGNITIV_KEPESSEGEK','kognitív képességek');
+ define('_VIZSGALAT_DATUMA','vizsgálat időpontja');
+ define('_VIZSGALATOT_VEGZO','vizsgálatot végző');
+ define('_ELJARAS_MEROESZKOZ','eljárás, mérőeszköz');
+ define('_VIZSGALT_TERULET','vizsgált terület');
+ define('_FEJLESZTENDO_TERULET_KOMPETENCIA','fejlesztendő terület, kompetencia (gyengeségek)');
+ define('_EROSSEGEK','amire a fejlesztés során támaszkodni lehet (erősségek)');
+ define('_PROBLEMA_MEGFOGALMAZASA','probléma megfogalmazása');
+ define('_PRIORIZALAS','priorizálás');
+
+ define('_DIAK_ALLAPOT','Belépő/kilépő állapot');
+ define('_HAVI_OSSZEGZES','Havi összegzés');
+ define('_TANTARGYI_FELJEGYZESEK','Tantárgyi feljegyzések');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/sni/fejlesztesiTerv.php b/mayor-orig/www/lang/hu_HU/module-naplo/sni/fejlesztesiTerv.php
new file mode 100644
index 00000000..d84dc90f
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/sni/fejlesztesiTerv.php
@@ -0,0 +1,21 @@
+<?php
+
+ define('__PAGETITLE','Fejlesztési terv, havi összegzés');
+ define('_MENTOR','Mentor tanár');
+ define('_GYENGESEGEK','Fejlesztendő terület (gyengeségek)');
+ define('_EROSSEGEK','Amire a fejlesztésnél támaszkodni lehet (erősségek)');
+ define('_CELOK','Célok');
+ define('_FELADATOK','Új készségek, fejlesztési feladatok');
+ define('_ESZKOZOK','Gyakorlás, elmélyítés, eszközök, módszerek');
+ define('_UTEMEZES','Időbeosztás, egyéni ütemezés');
+ define('_ERTEKELES','Értékelés');
+ define('_EREDMENY','Eredmény');
+ define('_VALTOZAS','Változás');
+ define('_FELELOS','Felelős');
+
+ define('_DIAK_ALLAPOT','Belépő/kilépő állapot');
+ define('_HAVI_OSSZEGZES','Havi összegzés');
+ define('_TANTARGYI_FELJEGYZESEK','Tantárgyi feljegyzések');
+ define('_NYOMTATAS','Nyomtatás');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/sni/tantargyiFeljegyzesek.php b/mayor-orig/www/lang/hu_HU/module-naplo/sni/tantargyiFeljegyzesek.php
new file mode 100644
index 00000000..8826f2bb
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/sni/tantargyiFeljegyzesek.php
@@ -0,0 +1,9 @@
+<?php
+
+ define('__PAGETITLE','Tantárgyi feljegyzések');
+
+ define('_DIAK_ALLAPOT','Belépő/kilépő állapot');
+ define('_HAVI_OSSZEGZES','Havi összegzés');
+ define('_TANTARGYI_FELJEGYZESEK','Tantárgyi feljegyzések');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/stat/letszam.php b/mayor-orig/www/lang/hu_HU/module-naplo/stat/letszam.php
new file mode 100644
index 00000000..70d1524b
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/stat/letszam.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Statisztika');
+ define('_SZULEV','Szül. év');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/szulinap.php b/mayor-orig/www/lang/hu_HU/module-naplo/szulinap.php
new file mode 100644
index 00000000..d770fd52
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/szulinap.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('_HAPPYBIRTHDAY','Boldog Szülinapot Kívánunk! :)');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/checkStatus.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/checkStatus.php
new file mode 100644
index 00000000..274479f4
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/checkStatus.php
@@ -0,0 +1,11 @@
+<?php
+
+ define('__PAGETITLE','Tanév ellenőrzése (órarend)');
+ define('__PAGEHELP','Adminisztrációs céllal készült oldal. Nyers adatokkal.');
+ define('_DT','Dátum');
+ define('_NAPOK_SZAMA','Napok száma');
+ define('_ORAK_SZAMA','Órák száma');
+ define('_HIANYZO_TANKOR','Hiányzó tankörök');
+ define('_HIANYZO_ORA','Hiányzó órák (tanárok)');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/diakTanarai.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/diakTanarai.php
new file mode 100644
index 00000000..80aca57b
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/diakTanarai.php
@@ -0,0 +1,7 @@
+<?php
+
+ define('__PAGETITLE','Osztály tagjainak tanárai adott tárgyból');
+ define('_OSZTALY','osztály');
+ define('_FO','fő');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/fogadoOra.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/fogadoOra.php
new file mode 100644
index 00000000..b7a86dff
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/fogadoOra.php
@@ -0,0 +1,19 @@
+<?php
+
+ define('__PAGETITLE','Fogadóóra');
+ define('_KOVETKEZO_FOGADO_ORA','Következő fogadóóra kijelölése');
+ define('_BIZTOS_UJ_IDOPONT_E','Biztosan új fogadóóraidőpontot állít be és törli az eddigi bejegyzéseket, szülői jelentkezéseket?');
+ define('_TANARNEV','Tanár neve');
+ define('_DATUM','Dátum');
+ define('_TOL','Mettől');
+ define('_IG','Meddig');
+ define('_TEREM','Terem');
+ define('_TANAR_FOGADOORAJA','Tanár fogadóórája');
+ define('_TANARADAT','Tanár');
+ define('_JELENTKEZESEK','Jelentkezések');
+ define('_SZULONEV','Szülő');
+ define('_DIAKNEV','Diák(ok)');
+ define('_RESZLETES_LISTA','Részletes lista (nyomtatáshoz)');
+ define('_TOROL','Töröl');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/helyettesites.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/helyettesites.php
new file mode 100644
index 00000000..446cd3c2
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/helyettesites.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Helyettesítések');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/munkaterv.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/munkaterv.php
new file mode 100644
index 00000000..4103d485
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/munkaterv.php
@@ -0,0 +1,59 @@
+<?php
+/*
+ Module: napló
+ File: munkaterv.php
+ Nyelv: hu_HU (magyar)
+*/
+
+ define('__PAGETITLE','Éves munkaterv');
+ define('__PAGEHELP','Éves munkaterv inicializálásához és módosításához használt oldal.');
+ define('_EVES_MUNKATERV','Éves munkaterv');
+ define('_OK','OK');
+ define('_OSSZES_MUNKANAP','összes munkanap');
+ define('_MODOSIT', 'módosít &gt;&gt;');
+ define('_ORARENDI_HET', 'órarendi hét');
+
+ define('_NAPOKINIT','Munkaterv inicializálása');
+ define('_MAGYARAZAT','FIGYELEM! A művelet törli az esetleg már meglévő munkatervet/munkaterveket és létrehoz egy új alapértelmezettet!</p>
+ <p>
+ Adja meg, hogy hány hetes órarendet használnak a tanév során!
+ Ha minden héten azonos az órarend, akkor válassza az "1" értéket, ha A és B hét
+ váltakozik, akkor a "2" a helyes érték, de lehet, hogy akár hat különböző órarendű
+ hét ismétlődik ciklikusan, hiszen egy-két óra eltérése esetén is különbözőnek
+ számítanak az órarendek...
+ </p><p>
+ Adja meg a tanítási napok és tanítás nélküli munkanapok számát (a rendeletben meghatározottak szerint),
+ valamint - középiskola esetén - a végzősök utolsó tanítási napjának dátumát!>
+ ');
+ define('_TANITASI_NAPOK_SZAMA','Tanítási napok száma');
+ define('_TANITAS_NELKULI_MUNKANAPOK_SZAMA','Tanításnélküli munkanapok száma');
+ define('_VEGZOS_ZARAS_DT','Végzősök utolsó tanítási napja');
+ define('_NAPOK_SZAMA','Napok száma');
+ define('_ELTERO_MUNKATERVEK','Eltérő munkatervek');
+ define('_MUNKATERV_OSZTALY','Munkaterv-osztály összerendelés');
+ define('_MO_MAGYARAZAT','Az osztályokat hozzá kell rendelnünk egy-egy munkatervhez. Kezdetben minden osztály az alapértelmezett mukatervhez van rendelve.');
+ define('_HETHOZZARENDELES','Órarendi hetek napokhozrendelése');
+ define('_HH_MAGYARAZAT','Adja meg, hogy hány hetes órarendet használnak az adott időszak során!
+ Ha minden héten azonos az órarend, akkor válassza az "1" értéket, ha A és B hét
+ váltakozik, akkor a "2" a helyes érték, de lehet, hogy akár hat különböző órarendű
+ hét ismétlődik ciklikusan, hiszen egy-két óra eltérése esetén is különbözőnek
+ számítanak az órarendek... A program csak az órarendi hetek napokhozrendelését
+ változtatja meg, a napok típusát, egyéb paramétereit nem módosítja. A hetek hozzárendelése
+ mindig az egyes héttől indul. A módosítás mindig az összes munkatervre vonatkozik!
+ ');
+ define('_UJ_MUNKATERV','Új munkaterv létrehozása');
+ define('_UM_MAGYARAZAT','Az aktuális munkaterv másolataként új munkatervet készíthetünk. A munkaterveket
+ osztályokhoz rendelhetjük, minden osztályhoz pontosan egyet.');
+ define('_MUNKATERV_NEVE','Munkaterv neve');
+ define('_ORARENDIHETEKSZAMA','Órarendi hetek száma');
+ define('_DATUM','Módosítandó időszak');
+ define('_ELOIRT','Előírt');
+ define('_TENYLEGES','Tényleges');
+
+/*
+ define('_TANITASI_NAP','tanítási nap');
+ define('_SPECIALIS_TANITASI_NAP','speciális tanítási nap');
+ define('_TANITAS_NELKULI_MUNKANAP','tanítás nélküli munkanap');
+ define('_TANITASI_SZUNET','tanítási szünet');
+*/
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorBlokk.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorBlokk.php
new file mode 100644
index 00000000..f3ec0488
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorBlokk.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('__PAGETITLE','Tankörblokkok');
+
+ define('_UJ_TANKOR_BLOKK','Új tankörblokk');
+ define('_TANKOR_BLOKK_MODOSITAS','Módosítás');
+ define('_BLOKKNEV','Blokknév');
+ define('_TANKOROK','Tankörök');
+ define('_DEL','töröl');
+ define('_EXPORT_ORASZAM','Export óraszám');
+ define('_TARGY_SZURES','Tárgy szerinti szűrés');
+ define('_EVFOLYAM_SZURES','Évfolyam szerinti szűrés');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorCsoport.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorCsoport.php
new file mode 100644
index 00000000..a45e7806
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/tankorCsoport.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('__PAGETITLE','Tankörcsoportok');
+
+ define('_UJ_TANKOR_CSOPORT','Új tankörcsoport');
+ define('_CSOPORTNEV','Csoportnév');
+ define('_TANKOROK','Tankörök');
+ define('_TANKOR_CSOPORT_MODOSITAS','Tankörcsoport módosítás');
+ define('_TANKORCSOPORTOK_KERESESE','Tankörcsoportok keresése és létrehozása');
+ define('_TOROL','x');
+ define('_BIZTOS_TOROL_E','Biztosan töröljük a tankörcsoportot?');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/targyBontas.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/targyBontas.php
new file mode 100644
index 00000000..18c90395
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/targyBontas.php
@@ -0,0 +1,8 @@
+<?php
+
+
+ define('__PAGETITLE','Tantárgyfelosztás - Bontás, tankör hozzárendelés');
+
+ define('_INICIALIZALAS','Inicializálás');
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosOrarendLezaras.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosOrarendLezaras.php
new file mode 100644
index 00000000..ed152387
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosOrarendLezaras.php
@@ -0,0 +1,5 @@
+<?php
+
+ define('__PAGETITLE','Végzős órarend lezárása');
+ define('_LEZARANDO_OSZTALYOK_KIVALASZTASA','Lezárandó osztályok kiválasztása');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosTankorLezaras.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosTankorLezaras.php
new file mode 100644
index 00000000..a0f9002f
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanev/vegzosTankorLezaras.php
@@ -0,0 +1,4 @@
+<?php
+
+ define('__PAGETITLE','Végzősök tankörökből való kiléptetése');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetInfo.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetInfo.php
new file mode 100644
index 00000000..d8ed571a
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetInfo.php
@@ -0,0 +1,15 @@
+<?php
+
+ define('__PAGETITLE','Tanmenet részletei');
+
+ define('_ALAPADATOK','Alapadatok');
+ define('_EVFOLYAMJEL','évfolyam');
+ define('_TANORA','tanóra');
+ define('_TANMENETNEV', 'tanmenet neve');
+ define('_KESZITETTE','készítette');
+ define('_ALLAPOT','állapot');
+
+ define('_TEMAKOROK','Témakörök');
+ define('_HOZZARENDELT_TANKOROK','Hozzárendelt tankörök');
+ define('_MAS_TANEV','Más tanév');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetJovahagyas.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetJovahagyas.php
new file mode 100644
index 00000000..0b1767c9
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetJovahagyas.php
@@ -0,0 +1,6 @@
+<?php
+
+ define('__PAGETITLE','Tanmenet jóváhagyása');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetLeadas.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetLeadas.php
new file mode 100644
index 00000000..083f6de7
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetLeadas.php
@@ -0,0 +1,12 @@
+<?php
+
+ define('__PAGETITLE','Tanmenet leadás');
+
+ define('_TANAR','Tanár');
+ define('_JOVAHAGYOTT','jóváhagyott');
+ define('_NEM_JOVAHAGYOTT','ellenőrizetlen');
+ define('_FELKESZ','félkész');
+ define('_HIANYZO','hiányzó');
+ define('_TANMENET','tanmenet');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetModositas.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetModositas.php
new file mode 100644
index 00000000..f86fc2f0
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetModositas.php
@@ -0,0 +1,17 @@
+<?php
+
+ define('__PAGETITLE','Tanmenet módosítása');
+
+ define('_ALAPADATOK','Alapadatok');
+ define('_EVFOLYAMJEL','évfolyam');
+ define('_TANORA','tanóra');
+ define('_TANMENETNEV', 'tanmenet neve');
+ define('_KESZITETTE','készítette');
+ define('_ALLAPOT','állapot');
+
+ define('_TEMAKOROK','Témakörök');
+ define('_TOROL','törlés!');
+ define('_HOZZARENDELT_TANKOROK','Hozzárendelt tankörök');
+ define('_MAS_TANEV','Más tanév');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetTankor.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetTankor.php
new file mode 100644
index 00000000..bfba5e7e
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/tanmenetTankor.php
@@ -0,0 +1,18 @@
+<?php
+
+ define('__PAGETITLE','Tanmenet hozzárendelés');
+ define('__PAGEHELP','A megfelelő időszakban a szaktanár, vagy a vezetőségi tag hozzárendelhet egy-egy már meglévő tanmenetet a tankörökhöz,
+a szaktanár ezen kívül létrehozhat új tanmenetet is - akár egy már létező tanmenet másolataként, hogy azt módosítsa.
+Az adminisztrátornak időszakon kívül is van joga hozzárendelni, de újat nem tud létrehozni.');
+
+ define('_TANKORNEV','Tankör neve');
+ define('_TANMENET','Tanmenet');
+ define('_HOZZARENDELES','hozzárendelés');
+ define('_UJ_A_KIVALASZTOTT_ALAPJAN','új tanmenet létrehozása a kiválasztott alapján');
+ define('_UJ_LETREHOZASA','új tanmenet létrehozása');
+ define('_MODOSIT','módosítás');
+ define('_INFO','részletek');
+
+ define('_TANMENET_RESZLETEI','A tanmenet adatai, témakörei, egyéb hozzárendelt tankörök');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/ujTanmenet.php b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/ujTanmenet.php
new file mode 100644
index 00000000..9a7c5cc4
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/tanmenet/ujTanmenet.php
@@ -0,0 +1,10 @@
+<?php
+
+ define('__PAGETITLE','Új tanmenet létrehozása');
+
+
+ define('_UJ_TANMENET','Új tanmenet');
+ define('_TANMENETNEV','Tanmenet leírása, neve');
+ define('_EVES_ORASZAM','Éves óraszáma');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/uzeno/postas.php b/mayor-orig/www/lang/hu_HU/module-naplo/uzeno/postas.php
new file mode 100644
index 00000000..fc92fa69
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/uzeno/postas.php
@@ -0,0 +1,45 @@
+<?php
+
+ define('__PAGETITLE','Napló üzenő');
+
+ define('_DATUM','Dátum');
+ define('_FELADO','Feladó');
+ define('_CIMZETT','Címzett');
+ define('_SZOVEG','Szöveg');
+ define('_UJ_UZENET','Új üzenet');
+
+ define('_CLEARFILTER','Szűrés megszüntetése');
+
+ define('_TTANAR','Tanár');
+ define('_TDIAK','Diák');
+ define('_TSZULO','Szülő');
+ define('_TTANKOR','Tankör diákjai (és tanára)');
+ define('_TOSZTALY','Osztály diákjai (és osztályfőnöke)');
+ define('_TMUNKAKOZOSSEG','Munkaközösség');
+
+/* _TP == a szerepek többesszáma (id=0) - hoz */
+ define('_TPADMIN','admin');
+ define('_ADMINKENT','adminisztrátoként');
+ define('_TANARKENT','tanárként');
+ define('_SZULOKENT','szülőként');
+ define('_DIAKKENT','diákként');
+ define('_TPTANAR','minden tanár');
+ define('_TPDIAK','minden diák');
+ define('_TPSZULO','minden szülő');
+
+ define('_TTANKORSZULO','Tankörbe járók szülei (és a tankör tanára)');
+ define('_TOSZTALYSZULO','Osztályba járók szülei (és az osztályfőnök)');
+ define('_TOSZTALYTANAR','Osztály tanárai');
+
+ define('_LEGFRISSEBB','Ez a legfrissebb');
+ define('_OSSZESEN','Összesen');
+ define('_MINDMUTAT','Minden üzenetemet mutasd!');
+ define('_MINDENKI','mindenki');
+ define('_VALASSZ',' válassz ...');
+ define('_KERES','keres &rarr;');
+ define('_KULD','Küldés...');
+
+ define('_LAPOZO','Lapozó');
+ define('_NEV_KERESO','Név kereső');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-naplo/uzeno/uzeno.php b/mayor-orig/www/lang/hu_HU/module-naplo/uzeno/uzeno.php
new file mode 100644
index 00000000..5c033b39
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-naplo/uzeno/uzeno.php
@@ -0,0 +1,42 @@
+<?php
+
+ define('__PAGETITLE','Napló üzenő');
+
+ define('_DATUM','Dátum');
+ define('_FELADO','Feladó');
+ define('_CIMZETT','Címzett');
+ define('_SZOVEG','Üzenet');
+ define('_UJ_UZENET','Új üzenet');
+
+ define('_CLEARFILTER','Szűrés megszüntetése');
+
+ define('_TTANAR','Tanár');
+ define('_TDIAK','Diák');
+ define('_TSZULO','Szülő');
+ define('_TTANKOR','Tankör diákjai (és tanára)');
+ define('_TOSZTALY','Osztály diákjai (és osztályfőnöke)');
+ define('_TMUNKAKOZOSSEG','Munkaközösség');
+
+/* _TP == a szerepek többesszáma (id=0) - hoz */
+ define('_TPADMIN','admin');
+ define('_TPTANAR','minden tanár');
+ define('_TPDIAK','minden diák');
+ define('_TPSZULO','minden szülő');
+
+ define('_TTANKORSZULO','Tankörbe járók szülei (és a tankör tanára)');
+ define('_TOSZTALYSZULO','Osztályba járók szülei (és az osztályfőnök)');
+ define('_TOSZTALYTANAR','Osztály tanárai');
+
+ define('_LEGFRISSEBB','Ez a legfrissebb');
+ define('_OSSZESEN','Összesen');
+ define('_MINDMUTAT','Minden üzenetemet mutasd!');
+ define('_MINDENKI','mindenki');
+ define('_VALASSZ',' válassz ...');
+ define('_KULD','Küldés...');
+ define('_KERES','keres');
+
+ define('_UZENET','Üzenet');
+
+ define('_LAPOZO','Lapozó');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-password/changeMyPassword.php b/mayor-orig/www/lang/hu_HU/module-password/changeMyPassword.php
new file mode 100644
index 00000000..77d7e77d
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-password/changeMyPassword.php
@@ -0,0 +1,16 @@
+<?php
+/* --------------------------- /
+
+ Module: base/login
+ File: login.php
+ Nyelv: hu_HU (magyar)
+
+/ --------------------------- */
+
+define('_CHANGE_PASSWORD','Saját jelszó megváltoztatása');
+define('_USERNAME','Felhasználói név');
+define('_NEW_PASSWORD','Új jelszó');
+define('_VERIFICATION','Megerősítés');
+define('_OK','OK');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-password/changePassword.php b/mayor-orig/www/lang/hu_HU/module-password/changePassword.php
new file mode 100644
index 00000000..9c56a329
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-password/changePassword.php
@@ -0,0 +1,16 @@
+<?php
+/* --------------------------- /
+
+ Module: base/login
+ File: login.php
+ Nyelv: hu_HU (magyar)
+
+/ --------------------------- */
+
+define('_CHANGE_PASSWORD','Jelszóváltoztatás');
+define('_USERNAME','Felhasználói név');
+define('_NEW_PASSWORD','Új jelszó');
+define('_VERIFICATION','Megerősítés');
+define('_OK','OK');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-password/resetPassword.php b/mayor-orig/www/lang/hu_HU/module-password/resetPassword.php
new file mode 100644
index 00000000..73246c70
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-password/resetPassword.php
@@ -0,0 +1,17 @@
+<?php
+/* --------------------------- /
+
+ Module: base/password
+ File: resetPassword.php
+ Nyelv: hu_HU (magyar)
+
+/ --------------------------- */
+
+define('_RESET_PASSWORD','Jelszó helyreállítás');
+
+define('_USERNAME','Felhasználói név');
+define('_NEW_PASSWORD','Új jelszó');
+define('_VERIFICATION','Megerősítés');
+define('_OK','OK');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/accountInfo.php b/mayor-orig/www/lang/hu_HU/module-session/accountInfo.php
new file mode 100644
index 00000000..4c2fd76b
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/accountInfo.php
@@ -0,0 +1,10 @@
+<?php
+/*
+ Module: base/session
+ Nyelv: hu_HU (magyar)
+*/
+
+define('_OK','OK');
+define('_USERDEFAULTSKIN','Alapértelmezett skin a belépés után');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/admin/knownNodes.php b/mayor-orig/www/lang/hu_HU/module-session/admin/knownNodes.php
new file mode 100644
index 00000000..72288186
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/admin/knownNodes.php
@@ -0,0 +1,16 @@
+<?php
+
+ define('__PAGETITLE','Ismert végpontok');
+
+ define('_UJ_VEGPONT','Új végpont lekérdezése/felvétele');
+ define('_NODEID','Végpont azonosító');
+ define('_NEV','Név');
+ define('_NODETIPUS','Végpont típus');
+ define('_LEKERDEZES','Lekérdezés');
+ define('_HELYSEG','Helység');
+ define('_SUGO_NODEID','A végpont azonosító nyolcjegyű szám, többnyire 2 jegyű, 00-tól induló sorszám + 6 jegyű OM kód alakú.
+A sorszám teszi lehetővé, hogy egy intézményhez több telepített és regisztrált MaYoR rendszer is tartozhasson - például tesztelés vagy backup célokra.
+
+Például: 00035242, ahol 00 az első sorszám, 035242 pedig az intézmény OM kódja. ');
+ define('_BIZTOS_TOROL_E','Biztos töröljük az ismert végpontok listájából?');
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/admin/registration.php b/mayor-orig/www/lang/hu_HU/module-session/admin/registration.php
new file mode 100644
index 00000000..d0d7f182
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/admin/registration.php
@@ -0,0 +1,38 @@
+<?php
+
+ define('__PAGETITLE','Regisztráció');
+ define('_REGISZTRACIO','Regisztráció');
+ define('_MODOSITAS','Adatok módosítása');
+
+ define('_OMKOD','OM kód');
+ define('_CIMHELYSEG','Helység');
+ define('_ROVIDNEV','Rövid név');
+ define('_CIMIRSZ','Irányítószám');
+ define('_CIMKOZTERULETNEV','Közterület név');
+ define('_CIMKOZTERULETJELLEG','Közterület jelleg');
+ define('_CIMHAZSZAM','Házszám');
+ define('_TELEFON','Telefonszám');
+ define('_FAX','Fax');
+ define('_EMAIL','E-mail');
+ define('_HONLAP','Honlap');
+ define('_NAPLOURL','Napló web címe');
+ define('_KAPCSOLATNEV','Kapcsolattartó neve');
+ define('_KAPCSOLATEMAIL','Kapcsolattartó e-mail címe');
+ define('_KAPCSOLATTELEFON','Kapcsolattartó telefonszáma');
+
+ define('_TAMOGATASI_OSSZEG', 'Vállalt támogatás összege');
+ define('_UTEMEZES','Számlák ütemezése');
+ define('_EGYEB_TAMOGATAS','Egyéb támogatás');
+ define('_HIBA_ESETEN','Bármilyen hiba vagy észrevétel esetén: support@mayor.hu');
+
+ define('_INTEZMENY_ADATAI','Az intézmény adatai');
+
+ define('_KORABBAN_REGISZTRALT','Korábban már regisztrált?');
+ define('_REG_HELYREALLITAS_LEIRAS','Amennyiben korábban már regisztrált, megpróbálhatja újraépíteni a kapcsolatot!
+
+A program az eltárolt publikus kulcs (SSL public key) alapján megpróbálja lekérdezni a rendszer csomopont azonosítóját (nodeId)
+a vezérlő csomóponttól (controller node - www.mayor.hu). Ha a lekérdezés sikeres, akkor a program elvégzi a szükséges beállításokat ahhoz, hogy
+a rendszer teljes értékű hálózati végpontként részt vedhessen a kommunikációban.');
+ define('_REGISZTRACIO_HELYREALLITAS','Csomópont azonosító lekérdezése');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/createAccount.php b/mayor-orig/www/lang/hu_HU/module-session/createAccount.php
new file mode 100644
index 00000000..78df2d19
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/createAccount.php
@@ -0,0 +1,15 @@
+<?php
+/*
+ Module: base/session
+ Nyelv: hu_HU (magyar)
+*/
+
+define('_OK','OK');
+define('_CREATE_ACCOUNT','Új felhasználó');
+define('_VERIFICATION','Megerősítés');
+define('_ACCOUNT_CATEGORY','Kategória');
+define('_DATAFILE','Adat fájl');
+define('_ACCOUNT_CONTAINER','Konténer');
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/createGroup.php b/mayor-orig/www/lang/hu_HU/module-session/createGroup.php
new file mode 100644
index 00000000..80317055
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/createGroup.php
@@ -0,0 +1,13 @@
+<?php
+/*
+ Module: base/session
+ Nyelv: hu_HU (magyar)
+*/
+
+define('_OK','OK');
+define('_CREATE_GROUP','Új csoport');
+define('_GROUP_CATEGORY','Kategória');
+define('_GROUP_CONTAINER','Konténer');
+define('_DATAFILE','Adat fájl');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/download.php b/mayor-orig/www/lang/hu_HU/module-session/download.php
new file mode 100644
index 00000000..332bbf77
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/download.php
@@ -0,0 +1,9 @@
+<?php
+
+ define('_FILE','Fájl');
+ define('_SIZE','Méret');
+ define('_MIMETYPE','MIME típus');
+ define('_DOWNLOAD','Letöltés');
+ define('_DESCRIPTION','Ha a letöltés nem indul el pár másodpercen belül automatikusan, akkor kattintson a hivatkozásra!');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/groupInfo.php b/mayor-orig/www/lang/hu_HU/module-session/groupInfo.php
new file mode 100644
index 00000000..0a406621
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/groupInfo.php
@@ -0,0 +1,10 @@
+<?php
+/*
+ Module: base/session
+ Nyelv: hu_HU (magyar)
+*/
+
+define('_OK','OK');
+define('_NEW','Új');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/search/searchAccount.php b/mayor-orig/www/lang/hu_HU/module-session/search/searchAccount.php
new file mode 100644
index 00000000..0a7888ed
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/search/searchAccount.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ Module: base/session
+ Nyelv: hu_HU (magyar)
+*/
+
+define('_SEARCH','Felhasználó keresése');
+define('_OK','OK');
+define('_NOTFOUND','Nincs találat');
+define('_CATEGORY','Besorolás');
+define('_ACTION','Módosítás');
+define('_DELETE','Törlés');
+define('_CHANGE_PASSWORD','Jelszóváltoztatás');
+define('_ARE_YOU_SURE','Biztos törölni akarja?');
+
+/* define('_NAME','Név');
+define('_CLASS','Osztály');
+define('_EMAIL','Email');
+define('_PASSWORD','Jelszó');
+define('_RETYPEPASSWORD','Megerősítés');
+define('_DEFAULTGROUP','Besorolás');
+define('_DATAFILE','Adat file');
+define('_NEWUSER','Új felhasználó');
+define('_ARE_YOU_SURE','Biztos törölni akarja?');
+*/
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/search/searchGroup.php b/mayor-orig/www/lang/hu_HU/module-session/search/searchGroup.php
new file mode 100644
index 00000000..5e10b357
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/search/searchGroup.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ Module: base/session
+ Nyelv: hu_HU (magyar)
+*/
+
+define('_SEARCH','Csoport keresése');
+define('_OK','OK');
+define('_NOTFOUND','Nincs találat');
+define('_CATEGORY','Besorolás');
+define('_ACTION','Módosítás');
+define('_DELETE','Törlés');
+define('_CHANGE_PASSWORD','Jelszóváltoztatás');
+define('_ARE_YOU_SURE','Biztos törölni akarja?');
+
+/* define('_NAME','Név');
+define('_CLASS','Osztály');
+define('_EMAIL','Email');
+define('_PASSWORD','Jelszó');
+define('_RETYPEPASSWORD','Megerősítés');
+define('_DEFAULTGROUP','Besorolás');
+define('_DATAFILE','Adat file');
+define('_NEWUSER','Új felhasználó');
+define('_ARE_YOU_SURE','Biztos törölni akarja?');
+*/
+
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/module-session/sessionAdmin.php b/mayor-orig/www/lang/hu_HU/module-session/sessionAdmin.php
new file mode 100644
index 00000000..6ce18c09
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/module-session/sessionAdmin.php
@@ -0,0 +1,13 @@
+<?php
+
+ define('_ACCOUNT','Azonosító');
+ define('_CN','Név');
+ define('_POLICI', 'Hozzáférési szint');
+ define('_LOGINDT','Belépés időpontja');
+ define('_ACTIVITY','Utolsó aktivitás');
+ define('_SESSION','sessionID');
+ define('_IP','IP cím');
+ define('_DELETE','Munkamenet törlése');
+ define('_BIZTOS_TOROL','Biztosan törli a munkamenetet?');
+
+?>
diff --git a/mayor-orig/www/lang/hu_HU/share/session/attrs.php b/mayor-orig/www/lang/hu_HU/share/session/attrs.php
new file mode 100644
index 00000000..6b66965e
--- /dev/null
+++ b/mayor-orig/www/lang/hu_HU/share/session/attrs.php
@@ -0,0 +1,24 @@
+<?php
+/*
+ Module: base/session
+ Nyelv: hu_HU (magyar)
+*/
+
+define('_ATTR_USERACCOUNT','Felhasználónév (azonosító)');
+define('_ATTR_USERCN','Saját név');
+define('_ATTR_USERPASSWORD','Jelszó');
+define('_ATTR_STUDYID','Oktatási azonosító');
+define('_ATTR_UIDNUMBER','UNIX uidNumber');
+define('_ATTR_MAIL','E-mail cím');
+define('_ATTR_TELEPHONENUMBER','Telefonszám');
+define('_ATTR_SHADOWLASTCHANGE','Utolsó jelszómódosítás');
+define('_ATTR_SHADOWMIN','Legkorábbi jelszómódosítás');
+define('_ATTR_SHADOWMAX','Jelszó érvényességi idő');
+define('_ATTR_SHADOWWARNING','Jelszóváltoztatásra felhívás');
+define('_ATTR_SHADOWINACTIVE','A felhasználói fiók letiltása');
+define('_ATTR_SHADOWEXPIRE','Letiltás dátuma');
+define('_ATTR_GROUPCN','Csoport neve');
+define('_ATTR_GROUPDESC','Csoport leírás');
+define('_ATTR_MEMBER','Tag');
+
+?>
diff --git a/mayor-orig/www/lang/jp_JP/date/names.php b/mayor-orig/www/lang/jp_JP/date/names.php
new file mode 100644
index 00000000..21297df0
--- /dev/null
+++ b/mayor-orig/www/lang/jp_JP/date/names.php
@@ -0,0 +1,21 @@
+<?php
+ define('_MONDAY','月曜日');
+ define('_TUESDAY','火曜日');
+ define('_WEDNESDAY','水曜日');
+ define('_THURSDAY','木曜日');
+ define('_FRIDAY','金曜日');
+ define('_SATURDAY','土曜日');
+ define('_SUNDAY','日曜日');
+ define('_JANUARY','1月');
+ define('_FEBRUARY','2月');
+ define('_MARCH','3月');
+ define('_APRIL','4月');
+ define('_MAY','5月');
+ define('_JUNE','6月');
+ define('_JULY','7月');
+ define('_AUGUSTUS','8月');
+ define('_SEPTEMBER','9月');
+ define('_OCTOBER','10月');
+ define('_NOVEMBER','11月');
+ define('_DECEMBER','12月');
+?>
diff --git a/mayor-orig/www/lang/jp_JP/module-auth/login.php b/mayor-orig/www/lang/jp_JP/module-auth/login.php
new file mode 100644
index 00000000..0d373e63
--- /dev/null
+++ b/mayor-orig/www/lang/jp_JP/module-auth/login.php
@@ -0,0 +1,5 @@
+<?php
+ define('_GREETING','MaYoR ログイン');
+ define('_LOGIN','エントリ');
+ define('_USERNAME','ユーザー名');
+?>
diff --git a/mayor-orig/www/lang/jp_JP/module-password/changeMyPassword.php b/mayor-orig/www/lang/jp_JP/module-password/changeMyPassword.php
new file mode 100644
index 00000000..d04443ff
--- /dev/null
+++ b/mayor-orig/www/lang/jp_JP/module-password/changeMyPassword.php
@@ -0,0 +1,7 @@
+<?php
+ define('_CHANGE_PASSWORD','じぶんの名前');
+ define('_USERNAME','ユーザー名');
+ define('_NEW_PASSWORD','新しいパスワード');
+ define('_VERIFICATION','検証');
+ define('_OK','オッコ');
+?>
diff --git a/mayor-orig/www/lang/jp_JP/module-password/changePassword.php b/mayor-orig/www/lang/jp_JP/module-password/changePassword.php
new file mode 100644
index 00000000..24623580
--- /dev/null
+++ b/mayor-orig/www/lang/jp_JP/module-password/changePassword.php
@@ -0,0 +1,7 @@
+<?php
+ define('_CHANGE_PASSWORD','パスワードを変更する');
+ define('_USERNAME','ユーザー名');
+ define('_NEW_PASSWORD','新しいパスワード');
+ define('_VERIFICATION','検証');
+ define('_OK','オッコ');
+?>
diff --git a/mayor-orig/www/lang/jp_JP/module-session/accountInfo.php b/mayor-orig/www/lang/jp_JP/module-session/accountInfo.php
new file mode 100644
index 00000000..78277cc2
--- /dev/null
+++ b/mayor-orig/www/lang/jp_JP/module-session/accountInfo.php
@@ -0,0 +1,3 @@
+<?php
+ define('_OK','オッコ');
+?>
diff --git a/mayor-orig/www/lang/jp_JP/share/session/attrs.php b/mayor-orig/www/lang/jp_JP/share/session/attrs.php
new file mode 100644
index 00000000..e21a6218
--- /dev/null
+++ b/mayor-orig/www/lang/jp_JP/share/session/attrs.php
@@ -0,0 +1,17 @@
+<?php
+ define('_ATTR_USERACCOUNT','識別子');
+ define('_ATTR_USERCN','名前');
+ define('_ATTR_USERPASSWORD','パスワード');
+ define('_ATTR_STUDYID','教育識別子');
+ define('_ATTR_MAIL','電子メールアドレス');
+ define('_ATTR_TELEPHONENUMBER','電話番号');
+ define('_ATTR_SHADOWLASTCHANGE','最後にパスワードの修正');
+ define('_ATTR_SHADOWMIN','まずパスワードの修正');
+ define('_ATTR_SHADOWMAX','パスワードの在庫の時間');
+ define('_ATTR_SHADOWWARNING','パスワードに改変');
+ define('_ATTR_SHADOWINACTIVE','ユーザーアカウントの怖い');
+ define('_ATTR_SHADOWEXPIRE','怖いの日付');
+ define('_ATTR_GROUPCN','チームの識別子');
+ define('_ATTR_GROUPDESC','チームのなまえ');
+ define('_ATTR_MEMBER','メンバー');
+?>
diff --git a/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php b/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php
new file mode 100644
index 00000000..90fa6df3
--- /dev/null
+++ b/mayor-orig/www/policy/parent/naplo/diakValaszto-pre.php
@@ -0,0 +1,34 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ require_once('include/modules/naplo/share/szulo.php');
+
+ $diakId = readVariable($_POST['diakId'],'id',null);
+ $SZULODIAKJAI = getSzuloDiakjai();
+
+ if (!is_array($SZULODIAKJAI) || count($SZULODIAKJAI)==0) {
+ $_SESSION['alert'][] = ':!E12:nincs_egy_diakja_se:'._USERACCOUNT.':'._POLICY;
+ }
+ if ($action == 'valaszt') {
+ for ($i=0; $i<count($SZULODIAKJAI); $i++) {
+ if ($SZULODIAKJAI[$i]['diakId']==$diakId) {
+ updateSessionParentDiakId($diakId) ;
+// setcookie(_SESSIONID.'-diakIdOk', true, 0, '/');
+ $_SESSION['szuloDiakIdOk']=true;
+ if ($DEFAULT_PSF['parent']['f'] != 'diakValaszto' || $DEFAULT_PSF['parent']['page'] != 'naplo')
+ header('Location: '.location('index.php?page='.$DEFAULT_PSF['parent']['page'].'&sub='.$DEFAULT_PSF['parent']['sub'].'&f='.$DEFAULT_PSF['parent']['f']));
+ elseif ($DEFAULT_PSF['parent']['f'] == 'diakValaszto')
+ header('Refresh:0'); // a konstans előbb definiálódik
+ break;
+ }
+ }
+ //----
+ } elseif (count($SZULODIAKJAI)==1) {
+ updateSessionParentDiakId($SZULODIAKJAI[0]['diakId']) ;
+// setcookie(_SESSIONID.'-diakIdOk', true, 0, '/');
+ $_SESSION['szuloDiakIdOk']=true;
+ if ($DEFAULT_PSF['parent']['f'] != 'diakValaszto' || $DEFAULT_PSF['parent']['page'] != 'naplo')
+ header('Location: '.location('index.php?page='.$DEFAULT_PSF['parent']['page'].'&sub='.$DEFAULT_PSF['parent']['sub'].'&f='.$DEFAULT_PSF['parent']['f']));
+ }
+
+?>
diff --git a/mayor-orig/www/policy/parent/naplo/diakValaszto.php b/mayor-orig/www/policy/parent/naplo/diakValaszto.php
new file mode 100644
index 00000000..b64ee30c
--- /dev/null
+++ b/mayor-orig/www/policy/parent/naplo/diakValaszto.php
@@ -0,0 +1,8 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ global $SZULODIAKJAI;
+
+ putDiakValasztoForm($SZULODIAKJAI);
+
+?>
diff --git a/mayor-orig/www/policy/parent/naplo/hirnok b/mayor-orig/www/policy/parent/naplo/hirnok
new file mode 120000
index 00000000..56d56cc8
--- /dev/null
+++ b/mayor-orig/www/policy/parent/naplo/hirnok
@@ -0,0 +1 @@
+../../private/naplo/hirnok \ No newline at end of file
diff --git a/mayor-orig/www/policy/parent/naplo/naplo-pre.php b/mayor-orig/www/policy/parent/naplo/naplo-pre.php
new file mode 100644
index 00000000..bec91f25
--- /dev/null
+++ b/mayor-orig/www/policy/parent/naplo/naplo-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=naplo&sub=osztalyozo&f=diak'));
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/parent/naplo/naplo.php b/mayor-orig/www/policy/parent/naplo/naplo.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/parent/naplo/naplo.php
diff --git a/mayor-orig/www/policy/private/naplo/admin/admin-pre.php b/mayor-orig/www/policy/private/naplo/admin/admin-pre.php
new file mode 100644
index 00000000..5cb70fd2
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/admin-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=naplo&sub=admin&f=import'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/admin.php b/mayor-orig/www/policy/private/naplo/admin/admin.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/admin.php
diff --git a/mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php b/mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php
new file mode 100644
index 00000000..19622167
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/azonositok-pre.php
@@ -0,0 +1,133 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+
+ $tanev = readVariable($_POST['tanev'],'numeric',__TANEV);
+ $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/session/search/searchGroup.php');
+ require_once('include/modules/session/search/searchAccount.php');
+ require_once('include/modules/session/createAccount.php');
+
+ if (isset($osztalyId)) {
+ $osztalyAdat = getOsztalyAdat($osztalyId, $tanev, $lr);
+ $osztalyTagok = getOsztalyNevsorEsOid($osztalyId);
+ $oIds = $Tagok = array();
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ $oIds[] = $oId = $osztalyTagok[$i]['oId'];
+ $Tagok[$oId] = $osztalyTagok[$i];
+ $osztalyTagok[$i]['userAccounts'] = array();
+ if ($oId != '') {
+ $ret = searchAccount('studyId', $oId, array('userAccount'), 'private');
+ if ($ret['count'] == 1) {
+ $osztalyTagok[$i]['userAccount'] = $ret[0]['userAccount'][0];
+ } elseif ($ret['count'] > 1) {
+ $osztalyTagok[$i]['userAccounts'] = array();
+ for ($j = 0; $j < $ret['count']; $j++) $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0];
+ $_SESSION['alert'][] = "message:wrong_data:több account egy oId-hoz:oId=$oId:userAccount=".implode(',', $osztalyTagok[$i]['userAccounts']);
+ }
+ if (!isset($osztalyTagok[$i]['userAccount']) && count($osztalyTagok[$i]['userAccounts']) == 0) {
+ // Ha az oId alapján nem találtunk, akkor tovább keresünk név alapján
+ $ret = searchAccount('userCn', $osztalyTagok[$i]['diakNev'], array('userAccount','studyId'), 'private');
+ if ($ret['count'] > 0) {
+ $osztalyTagok[$i]['userAccounts'] = $osztalyTagok[$i]['studyIds'] = array();
+ for ($j = 0; $j < $ret['count']; $j++) {
+ $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0];
+ $osztalyTagok[$i]['studyIds'][] = $ret[$j]['studyId'][0];
+ }
+ }
+ // Javasolt azonosító generálása
+ $csNev = $osztalyTagok[$i]['viseltCsaladinev'];
+ $pos = mb_strpos($csNev, ' ', 0, 'UTF-8');
+ if ($pos > 0 && mb_substr($csNev, $pos-2, 2, 'UTF-8') == 'né') {
+ $csNev = mb_substr($csNev,$pos+1,strlen($csNev)-$pos-1,'UTF-8');
+ $pos = mb_strpos($csNev, ' ', 0, 'UTF-8');
+ }
+ if ($pos > 0) $csNev = mb_substr($csNev, 0, $pos, 'UTF-8');
+ $uNev = $osztalyTagok[$i]['viseltUtonev'];
+ $pos = mb_strpos($uNev, ' ', 0, 'UTF-8');
+ if ($pos > 0) $uNev = mb_substr($uNev, 0, $pos, 'UTF-8');
+ if ($AUTH[_POLICY]['unixStyleAccounts']) {
+ $csNev = ekezettelen(kisbetus($csNev));
+ $uNev = ekezettelen(kisbetus($uNev));
+ $osztalyTagok[$i]['generatedAccount'] = substr($csNev.$uNev[0], 0, 8);
+ } else {
+ $pos = mb_strpos($csNev, ' ', 0, 'UTF-8');
+ $osztalyTagok[$i]['generatedAccount'] = $csNev.'.'.$uNev;
+ }
+ }
+ }
+ }
+ }
+
+ if ($action == 'createAzonosito') {
+ $userPassword = readVariable($_POST['userPassword'], 'sql', null);
+ $CONTAINER = $AUTH['private'][ $AUTH['private']['backend'].'Containers'];
+ $container = readVariable($_POST['container'], 'enum', null, $CONTAINER);
+ if (is_array($CONTAINER) && count($CONTAINER) > 0 && !isset($container)) {
+ $_SESSION['alert'][] = 'message:empty_fields:container';
+ } else {
+ define('__JELSZOGENERALAS', $userPassword == '');
+
+ if (is_array($_POST['userAccount'])) for ($i = 0; $i < count($_POST['userAccount']); $i++) {
+ $oId = readVariable($_POST['oId'][$i], 'number', null);
+ $userAccount = readVariable($_POST['userAccount'][$i], 'sql', null);
+ if (isset($oId) && isset($userAccount)) {
+ if (__JELSZOGENERALAS === true) {
+ $userPassword = $Tagok[$oId]['userPassword'] = sprintf("%u", crc32($Tagok[$oId]['viseltCsaladinev']));
+ }
+ $userCn = $Tagok[$oId]['diakNev'];
+ createAccount($userCn, $userAccount, $userPassword, 'private',
+ $SET = array('category' => 'diák', 'container' => $container, 'groups' => '', 'policyAttrs' => array('studyId' => $oId))
+ );
+ // a settings táblában felvesszük, hogy melyik intézményhez van rendelve (ez persze nem korlátoz, csak egy alapértelmezés
+ $q = "DELETE FROM settings WHERE userAccount='%s' AND policy='%s'";
+ db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array($userAccount, 'private')));
+ $q = "INSERT INTO settings (userAccount,policy,intezmeny) VALUES ('%s','%s','%s')";
+ db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array($userAccount, 'private', __INTEZMENY)));
+ }
+ }
+ }
+
+ // Újraolvasás
+ $osztalyTagok = getOsztalyNevsorEsOid($osztalyId);
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ $oId = $osztalyTagok[$i]['oId'];
+ $osztalyTagok[$i]['userAccounts'] = array();
+ if ($oId != '') {
+ $ret = searchAccount('studyId', $oId, array('userAccount'), 'private');
+ if ($ret['count'] == 1) {
+ $osztalyTagok[$i]['userAccount'] = $ret[0]['userAccount'][0];
+ } elseif ($ret['count'] > 1) {
+ $osztalyTagok[$i]['userAccounts'] = array();
+ for ($j = 0; $j < $ret['count']; $j++) $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0];
+ }
+ if (!isset($osztalyTagok[$i]) && !is_array($osztalyTagok[$i]['userAccounts'])) {
+ // Ha az oId alapján nem találtunk, akkor tovább keresünk név alapján
+ $ret = searchAccount('userCn', $osztalyTagok[$i]['diakNev'], array('userAccount','studyId'), 'private');
+ if ($ret['count'] > 0) {
+ $osztalyTagok[$i]['userAccounts'] = $osztalyTagok[$i]['studyIds'] = array();
+ for ($j = 0; $j < $ret['count']; $j++) {
+ $osztalyTagok[$i]['userAccounts'][] = $ret[$j]['userAccount'][0];
+ $osztalyTagok[$i]['studyIds'][] = $ret[$j]['studyId'][0];
+ }
+ }
+ }
+ }
+ } // for - újraolvasás
+ }
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella','tanev' => $tanev, 'paramName' => 'tanev', 'post' => array('osztalyId'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('igDt', 'tanev'));
+ getToolParameters();
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/azonositok.php b/mayor-orig/www/policy/private/naplo/admin/azonositok.php
new file mode 100644
index 00000000..50df705e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/azonositok.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $osztalyId, $osztalyTagok, $Tagok, $ldapTagok, $tanev;
+
+ if (is_array($osztalyTagok)) putCreateAzonositoForm($osztalyId, $osztalyTagok, $tanev, $Tagok);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/checksql-pre.php b/mayor-orig/www/policy/private/naplo/admin/checksql-pre.php
new file mode 100644
index 00000000..e952a01b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/checksql-pre.php
@@ -0,0 +1,22 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+ /* Attach shared lib */
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $Q_ERR = array();
+ $queryFile = fileNameNormal(__INTEZMENY_DB_FILE); // __ALAP|__TANEV
+ $db = 'naplo_intezmeny';
+ checkSqlConsistency($queryFile,$db,$Q_ERR);
+
+ $queryFile = fileNameNormal(__TANEV_DB_FILE); // __ALAP|__TANEV
+ $db = 'naplo';
+ checkSqlConsistency($queryFile,$db,$Q_ERR);
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/checksql.php b/mayor-orig/www/policy/private/naplo/admin/checksql.php
new file mode 100644
index 00000000..7ad8e3b9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/checksql.php
@@ -0,0 +1,15 @@
+<?php
+
+ global $Q_ERR;
+
+ if (is_array($Q_ERR) && count($Q_ERR)>0) {
+ echo '<table border="1">';
+ for($i=0; $i<count($Q_ERR); $i++) {
+ echo '<tr><th>'.$i.'</th></tr><tr><td>';
+ echo htmlDiff($Q_ERR[$i]['inDb'],$Q_ERR[$i]['inFile']); //filenamenormal checked
+ echo '</td><td>';
+ echo '</td></tr>'."\n";
+ }
+ echo '</table>';
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/csoportok-pre.php b/mayor-orig/www/policy/private/naplo/admin/csoportok-pre.php
new file mode 100644
index 00000000..63a1e0d5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/csoportok-pre.php
@@ -0,0 +1,68 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ if (isset($_POST['osztalyId'])) {
+ $osztalyId = $_POST['osztalyId'];
+ $Csoportok = getCsoportok($osztalyId);
+ $Tankorok = getOsztalyTankorei($osztalyId);
+ }
+ if (isset($_POST['csoportId'])) {
+ $csoportId = $_POST['csoportId'];
+ $csoportAdatok = getCsoportAdatok($csoportId);
+ }
+
+ if ($action == 'ujCsoport') {
+
+ if (!is_array($_POST['tankorId'])) {
+ $_SESSION['alert'][] = 'message:empty_field:tankorId[]';
+ } else {
+ $tankorIds = $_POST['tankorId'];
+ if ($_POST['csoportNev'] != '') {
+ $csoportNev = $_POST['csoportNev'];
+ } else {
+ $csNev = array();
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ if (in_array($Tankorok[$i]['tankorId'],$tankorIds)) {
+ $csNev[] = $Tankorok[$i]['tankorNev'] ;
+ }
+ }
+ $csoportNev = implode(', ',$csNev);
+ }
+ $csoportId = ujCsoport($csoportNev, $tankorIds);
+ $Csoportok = getCsoportok($osztalyId);
+ if ($csoportId) $csoportAdatok = getCsoportAdatok($csoportId);
+ }
+ } elseif ($action == 'csoportModositas') {
+
+ if (!is_array($_POST['tankorId'])) {
+ $_SESSION['alert'][] = 'message:empty_field:tankorId[]';
+ } else {
+ $tankorIds = $_POST['tankorId'];
+ if (csoportModositas($csoportId, $_POST['csoportNev'], $tankorIds)) {
+ $Csoportok = getCsoportok($osztalyId);
+ $csoportAdatok = getCsoportAdatok($csoportId);
+ }
+ }
+ } elseif ($action == 'csoportTorlese') {
+
+ if (csoportTorles($csoportId)) {
+ $Csoportok = getCsoportok($osztalyId);
+ unset($csoportId);
+ unset($csoportAdatok);
+ }
+
+ }
+
+
+ $TOOL['osztalySelect'] = array('tipus'=>'cella');
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/csoportok.php b/mayor-orig/www/policy/private/naplo/admin/csoportok.php
new file mode 100644
index 00000000..6ad4d67a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/csoportok.php
@@ -0,0 +1,14 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $osztalyId, $Csoportok, $csoportId, $Tankorok, $csoportAdatok;
+
+ if (is_array($Csoportok) && count($Csoportok) > 0) putCsoportLista($Csoportok, $osztalyId, $csoportId);
+ if (isset($csoportId) && $csoportId != '') {
+ putCsoportModositoForm($csoportAdatok, $Tankorok, $osztalyId);
+ putCsoportTorlesForm($csoportId, $osztalyId);
+ }
+ putUjCsoportForm($osztalyId, $Tankorok);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/fillhaladasi-pre.php b/mayor-orig/www/policy/private/naplo/admin/fillhaladasi-pre.php
new file mode 100644
index 00000000..493b08fe
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/fillhaladasi-pre.php
@@ -0,0 +1,30 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+
+ $tolDt = readVariable($_POST['tolDt'],'date',$_TANEV['kezdesDt']);
+ $igDt = readVariable($_POST['igDt'],'date',date('Y-m-d'));
+ if ($action != '') {
+ $q = "SELECT DISTINCT dt FROM nap WHERE dt BETWEEN '%s' AND '%s' AND tipus='tanítási nap'";
+ $NAPOK = db_query($q, array('fv'=>'fillhaladasi-pre','modul'=>'naplo','values'=>array($tolDt,$igDt),'result'=>'indexed'));
+ for ($i=0; $i<count($NAPOK);$i++) {
+ $res = (checkNaplo($NAPOK[$i]['dt']));
+ if ($res===false) $_SESSION['alert'][] = '::hiba:'.$NAPOK[$i]['dt'];
+ else $SUCCESS[] = " + ".$NAPOK[$i]['dt'];
+ }
+ if (count($SUCCESS)>=1) $_SESSION['alert'][] = 'info:success:***'.implode('***',$SUCCESS);
+ }
+
+ $TOOL['datumTolIgSelect'] = array('tipus' => 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'igDt',
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $igDt,
+ 'hanyNaponta' => '1'
+ );
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/fillhaladasi.php b/mayor-orig/www/policy/private/naplo/admin/fillhaladasi.php
new file mode 100644
index 00000000..c6d1a8c0
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/fillhaladasi.php
@@ -0,0 +1,6 @@
+<?php
+
+ global $tolDt, $igDt;
+ fillHaladasiForm($tolDt, $igDt);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/import-pre.php b/mayor-orig/www/policy/private/naplo/admin/import-pre.php
new file mode 100644
index 00000000..bb34046f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/import-pre.php
@@ -0,0 +1,49 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+require_once('include/modules/naplo/share/file.php');
+
+if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+} else {
+
+ $mezo_elvalaszto = ' ';
+ if (isset($_POST['dbtable'])) {
+ $dbtable = $_POST['dbtable'];
+ list($db,$table) = explode(':',$dbtable);
+ }
+ //IDEIGLENESEN if (isset($_POST['fileName'])) $fileName = fileNameNormal($_POST['fileName']);
+ if (isset($_POST['fileName'])) $fileName = ($_POST['fileName']);
+ $ADATOK = array();
+
+ if (isset($table)) {
+ if ($fileName != '') {
+ define('_SKIP_ON_DUP',readVariable($_POST['skipOnDup'],'bool'));
+
+ if (file_exists($fileName)) {
+ $MEZO_LISTA = $_POST['MEZO_LISTA'];
+ $KULCS_MEZOK = $_POST['KULCS_MEZOK'];
+ if (!is_array($MEZO_LISTA)) {
+
+ $ADATOK = readUpdateFile($fileName);
+ if (count($ADATOK) > 0) $attrList = getTableFields($table, $db);
+ else $_SESSION['alert'][] = 'message:wrong_data';
+
+ } else {
+ updateTable($table, $fileName, $MEZO_LISTA, $KULCS_MEZOK, $mezo_elvalaszto, readVariable($_POST['rovatfej'], 'bool'), $db);
+
+ } // MEZO_LISTA tömb
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.$fileName;
+ } // A file létezik-e
+
+ } // van file
+ } // van $table ($db)
+
+} // naploadmin
+
+$TOOL['TableSelect'] = array('tipus'=>'cella','paramName' => 'dbtable', 'post'=>array());
+getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/import.php b/mayor-orig/www/policy/private/naplo/admin/import.php
new file mode 100644
index 00000000..8edc7d3e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/import.php
@@ -0,0 +1,19 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+global $table, $dbtable, $fileName, $ADATOK, $attrList, $MEZO_LISTA;
+
+if (isset($table)) {
+ if ($fileName == '') {
+ putFileSelectForm($dbtable);
+ } elseif ($MEZO_LISTA == '') {
+ if (count($ADATOK) > 0)
+ putFieldSelectForm($fileName, $ADATOK, $attrList, $dbtable);
+ else
+ echo 'NINCS ADAT!';
+ } else {
+ echo 'Adatfeldolgozás kész.';
+ }
+} else { echo 'nincs table'; }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/install-pre.php b/mayor-orig/www/policy/private/naplo/admin/install-pre.php
new file mode 100644
index 00000000..1a655c4e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/install-pre.php
@@ -0,0 +1,47 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+// if (__NAPLO_INSTALLED !== false) die('A __NAPLO_INSTALLED konstans már true? ('._CONFIGDIR.'/module-naplo/config.php)');
+
+ function checkInstall($force = false) {
+
+ global $group_ok, $admin_ok, $db_ok, $MYSQL_DATA;
+
+ // naploadmin?
+ $group_ok = true;
+ $admin_ok = memberOf(_USERACCOUNT,'naploadmin');
+
+ if (!$admin_ok) {
+ if (strpos($_SESSION['alert'][count($_SESSION['alert'])-1], 'no_group:naploadmin')) {
+ $group_ok = false;
+ array_pop($_SESSION['alert']);
+ }
+ // Nincs naploadmin csoport
+ if (!$group_ok && $force===true) {
+ require_once('include/modules/session/createGroup.php');
+ if (createGroup('naploadmin','Napló adminisztrátorok',_USERACCOUNT,'egyéb')) {
+ $group_ok = true;
+ $admin_ok = true;
+ }
+ }
+ }
+
+ // mayor_naplo adatbázis van?
+ $db_ok = db_connect('naplo_base');
+ if ($db_ok) db_close($db_ok);
+ else $_SESSION['alert'][] = '::naplo_base';
+
+ }
+
+ if ($action === 'createDatabase') {
+
+ require_once('include/modules/naplo/share/mysql.php');
+ $dbNev = $MYSQL_DATA['naplo_base']['db'];
+ //createDatabase($dbNev, __ALAP_DB_FILE, $_POST['rootUser'], $_POST['rootPassword']);
+
+ }
+
+ checkInstall();
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/install.php b/mayor-orig/www/policy/private/naplo/admin/install.php
new file mode 100644
index 00000000..11400c3c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/install.php
@@ -0,0 +1,31 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $db_ok, $admin_ok, $group_ok;
+
+if (defined('__NAPLO_INSTALLED') && __NAPLO_INSTALLED === false) {
+ if (!$admin_ok) {
+ echo 'Nem vagy a <code>naploadmin</code> csoport tagja!</p>';
+ }
+ if (!$group_ok) {
+ echo '<p>Még nem hoztál létre <q>naploadmin</q> csoportot!</p>';
+ echo '<p>Hozd létre a <q>Felhasználói adatok/Új csoport</q> menüpont alatt!</p>';
+ } elseif (!$db_ok) {
+ echo '<p>Létre kell hoznunk a naplo modul alap adatbázisát!</p>';
+ echo '<p>Ehhez szükség lesz a MySQL root jelszó megadására.</p>';
+ echo '<form method="post" action="">'; // --TODO
+ echo '<input type="hidden" name="action" value="createDatabase" />';
+ echo 'User: ';
+ echo '<input type="text" name="rootUser" value="root" /><br/>';
+ echo 'Jelszó: ';
+ echo '<input type="password" name="rootPassword" value="" /><br/>';
+ echo '<input type="submit" value="OK" />';
+ echo '</form>'; // --TODO
+ } else {
+ echo '<p>Úgy tűnik a modul telepítése kész. Az <code>base/config.php</code>-ben módosítsuk a <code>__NAPLO_INSTALLED</code> értékét true-ra és kész.</p>';
+ }
+} else {
+ echo '<p>Már telepítve!</p>';
+}
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php b/mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php
new file mode 100644
index 00000000..e2dcc43d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/intezmenyek-pre.php
@@ -0,0 +1,79 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/file.php');
+ $ADAT['fenntartok'] = getEnumField('naplo_base', 'intezmeny', 'fenntarto');
+ $ADAT['intezmeny'] = $intezmeny = readVariable($_POST['intezmeny'], 'strictstring', defined('__INTEZMENY') ? __INTEZMENY : null);
+
+ if ($action == 'ujIntezmeny') {
+
+ require_once('include/modules/naplo/share/mysql.php');
+
+ $rovidnev = readVariable($_POST['rovidnev'], 'strictstring', null);
+ if (isset($rovidnev)) {
+ $dbNev = intezmenyDbNev($rovidnev);
+ $rootUser = readVariable($_POST['rootUser'], 'strictstring', null);
+ $rootPassword = readVariable($_POST['rootPassword'], 'string', null); // nincs ellenőrzés!
+ if (createDatabase($dbNev, __INTEZMENY_DB_FILE, $rootUser, $rootPassword)) {
+ $OMKod = readVariable($_POST['OMKod'], 'numeric unsigned', null);
+ $nev = readVariable($_POST['nev'], 'sql', null);
+ $rovidnev = readVariable($_POST['rovidnev'], 'strictstring', null);
+ intezmenyBejegyzese($OMKod, $nev, $rovidnev);
+ updateNaploSession($sessionID,$rovidnev);
+ header('Location: ' . location('index.php?page=naplo&sub=admin&f=tanevek'));
+ }
+ }
+
+ } elseif ($action == 'intezmenyModositas') {
+
+ $ADAT['nev'] = readVariable($_POST['nev'], 'sql', null);
+ $ADAT['OMKod'] = readVariable($_POST['OMKod'], 'numeric unsigned', null);
+ $ADAT['alapertelmezett'] = readVariable($_POST['alapertelmezett'], 'numeric unsigned', 0, array(0,1));
+ $ADAT['fenntarto'] = readVariable($_POST['fenntarto'], 'enum','állami',$ADAT['fenntartok']);
+ // A readVariable hívások a függvénybe kerültek!
+ intezmenyModositas($ADAT);
+
+ } elseif ($action == 'intezmenyTorles') {
+
+ intezmenyTorles(__INTEZMENY);
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ if (updateSessionIntezmeny('')) {
+ header('Location: '.location('index.php?page=naplo&sub=admin&f=intezmenyek'));
+ }
+ header('Location: '.location('index.php?page=naplo&sub=admin&f=intezmenyek'));
+
+ } elseif ($action == 'intezmenyValasztas') {
+
+ if (isset($intezmeny) && $intezmeny !== __INTEZMENY) {
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ if (updateSessionIntezmeny($intezmeny)) {
+ header('Location: '.location('index.php?page=naplo&sub=admin&f=intezmenyek'));
+ }
+ }
+ } elseif ($action == 'telephelyModositas') {
+
+ telephelyModositas($_POST);
+
+ } elseif ($action == 'ujTelephely') {
+
+ ujTelephely($_POST);
+
+ } // action
+
+ // Az aktuális intézmény adatainak lekérdezése
+ if (defined('__INTEZMENY') and __INTEZMENY != '') {
+ $ADAT['intezmenyAdat'] = getIntezmeny(__INTEZMENY);
+ }
+
+ $TOOL['intezmenySelect'] = array('tipus'=>'cella', 'action' => 'intezmenyValasztas', 'post'=>array());
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/intezmenyek.php b/mayor-orig/www/policy/private/naplo/admin/intezmenyek.php
new file mode 100644
index 00000000..22c35361
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/intezmenyek.php
@@ -0,0 +1,13 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (defined('__INTEZMENY') && __INTEZMENY != '') {
+ putIntezmenyModositasForm($ADAT);
+ putIntezmenyTorlesForm($ADAT);
+ }
+ putUjIntezmenyForm();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php b/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php
new file mode 100644
index 00000000..d33879c1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege-pre.php
@@ -0,0 +1,45 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/share/ssl/ssl.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/rpc.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['privileges'] = getSetField('naplo_base', 'rpcJogosultsag', 'priv');
+
+ $ADAT['nodes'] = reindex(getPublicDataFromLocalKeychain(), array('nodeId'));
+ $ADAT['intezmenyek'] = reindex(getIntezmenyek(), array('OMKod'));
+ $ADAT['privs'] = getRPCPrivileges();
+
+ if ($action == 'addNode') {
+
+ $DATA['nodeId'] = readVariable($_POST['nodeId'], 'id');
+ $DATA['userAccount'] = readVariable($_POST['userAccount'], 'string');
+ $DATA['OMKod'] = readVariable($_POST['OMKod'], 'numeric unsigned');
+
+ addNodeToRPCPrivs($DATA);
+ $ADAT['privs'] = getRPCPrivileges();
+
+ } elseif ($action == 'setPriv') {
+
+ $DATA['nodeId'] = readVariable($_POST['nodeId'], 'id');
+ $DATA['userAccount'] = readVariable($_POST['userAccount'], 'string');
+ $DATA['OMKod'] = readVariable($_POST['OMKod'], 'numeric unsigned');
+ $DATA['priv'] = readVariable($_POST['priv'], 'enum', 'OMKod', $ADAT['privileges']);
+
+ setPrivileges($DATA);
+ $ADAT['privs'] = getRPCPrivileges();
+
+ }
+
+//dump($ADAT['privileges']);
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php b/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php
new file mode 100644
index 00000000..1f928d21
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/rpcPrivilege.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putAddNodeForm($ADAT);
+ putPrivilegesForm($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php b/mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php
new file mode 100644
index 00000000..6edd8674
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/szemeszterek-pre.php
@@ -0,0 +1,80 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = "page:insufficient_access";
+ } else {
+
+/*
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ BUG - zárás és írás időszak kezdődjön együtt!!!!!!!!!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+*/
+
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ define('_TIME', time());
+ $szemeszterId = readVariable($_POST['szemeszterId'], 'id', readVariable($_GET['szemeszterId'], 'id'));
+ // melyik szemeszter adatait nézzük
+// if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '') {
+// $szemeszterId = $_POST['szemeszterId'];
+// } elseif (!isset($_POST['szemeszterId'])) {
+ if (!isset($szemeszterId)) {
+ for ($i = 1; $i <= count($_TANEV['szemeszter']); $i++) {
+ if (
+ strtotime($_TANEV['szemeszter'][$i]['kezdesDt']) <= _TIME
+ && strtotime($_TANEV['szemeszter'][$i]['zarasDt']) >= _TIME
+ ) {
+ $szemeszterId = $_POST['szemeszterId'] = $_TANEV['szemeszter'][$i]['szemeszterId'];
+ $tanev = $_TANEV['szemeszter'][$i]['tanev'];
+ $szemeszter = $_TANEV['szemeszter'][$i]['szemeszter'];
+ break;
+ }
+ }
+ } else {
+ // szándékosan nincs szemeszter beállítva
+ }
+ if (isset($szemeszterId)) $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ $ADAT['idoszakTipusok'] = getIdoszakTipusok();
+
+ // -------- action --------- //
+ if ($action != '') {
+ if ($action == 'idoszakModositas') {
+ for ($i = 0; $i < count($_POST['idoszakId']); $i++)
+ $Mod[ $_POST['idoszakId'][$i] ] = array('tolDt' => $_POST['tolDt'][$i], 'igDt' => $_POST['igDt'][$i]);
+ for ($i = 0; $i < count($_POST['torlendo']); $i++) $Mod[ $_POST['torlendo'][$i] ]['torlendo'] = true;
+ foreach ($ADAT['szemeszterAdat']['idoszak'] as $i => $iAdat) {
+ $iId = $iAdat['idoszakId'];
+ if ($Mod[$iId]['torlendo'] == true) {
+// echo 'Torol: '.$iId.'<hr>';
+ idoszakTorles($iId);
+ } elseif (
+ $iAdat['tolDt'] != $Mod[$iId]['tolDt']
+ || $iAdat['igDt'] != $Mod[$iId]['igDt']
+ ) {
+// echo '<br>'.$iId.' : '.$iAdat['tolDt'].' -- '.$_POST['tolDt'][$i].'<hr>';
+ idoszakModositas($iId, $Mod[$iId]['tolDt'], $Mod[$iId]['igDt']);
+ }
+
+ }
+ } elseif ($action == 'ujIdoszak') {
+ ujIdoszak(
+ $_POST['tolDt'], $_POST['igDt'], $_POST['tipus'],
+ $ADAT['szemeszterAdat']['tanev'], $ADAT['szemeszterAdat']['szemeszter'], $ADAT['idoszakTipusok']
+ );
+ }
+ $ADAT['szemeszterAdat']['idoszak'] = getIdoszakByTanev(array('tanev' => $ADAT['szemeszterAdat']['tanev'], 'szemeszter' => $ADAT['szemeszterAdat']['szemeszter']));
+ }
+
+// $TOOL['tanevSelect'] = array('tipus' => 'cella', 'action' => 'tanevValasztas', 'tervezett' => true, 'post' => array(), 'paramName'=>'tanev');
+ $TOOL['szemeszterSelect'] = array('tipus' => 'cella', 'action' => 'szemeszterValasztas', 'post' => array(), 'paramName'=>'szemeszterId');
+ getToolParameters();
+
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/szemeszterek.php b/mayor-orig/www/policy/private/naplo/admin/szemeszterek.php
new file mode 100644
index 00000000..f5132dfd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/szemeszterek.php
@@ -0,0 +1,13 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT)) {
+ putSzemeszterAdat($ADAT);
+ putUjIdoszak($ADAT['szemeszterAdat']['szemeszterId'], $ADAT['idoszakTipusok']);
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok-pre.php b/mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok-pre.php
new file mode 100644
index 00000000..68dde965
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok-pre.php
@@ -0,0 +1,171 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+} else {
+
+
+ $tanev = readVariable($_POST['tanev'],'numeric',__TANEV);
+ $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/session/search/searchGroup.php');
+ require_once('include/modules/session/search/searchAccount.php');
+ require_once('include/modules/session/createAccount.php');
+
+ if (isset($osztalyId)) {
+
+ $osztalyTagok = getOsztalyNevsorEsSzulo($osztalyId);
+ $Tagok = array();
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ foreach (array('anya','apa') as $szulo) {
+
+ $szuloId = $osztalyTagok[$i][$szulo.'Id'];
+ if ($szuloId == '') continue;
+ $szAdat = $osztalyTagok[$i][$szulo] = getSzuloAdat($szuloId);
+ $acc = $osztalyTagok[$i][$szulo]['userAccount'];
+ $Tagok[$szuloId] = $osztalyTagok[$i]; // Az adatrögzítés szuloId alapján megy
+ $Tagok[$szuloId]['szuloNev'] = $szAdat['szuloNev'];
+ $Tagok[$szuloId]['userPassword'] = $osztalyTagok[$i][$szulo]['userPassword'] = sprintf("%u", crc32($szAdat['csaladinev']));
+
+ if ($acc == '') $ret = array('count' => 0);
+ else $ret = searchAccount('userAccount', $acc, array('userAccount','userCn'), 'parent');
+
+ if ($ret['count'] > 0) {
+ for ($j = 0; $j < $ret['count']; $j++) { // csak a pontos egyezés jó - több pontos egyezés meg nem lehet
+ if ($ret[$j]['userAccount'][0] == $acc) {
+ $osztalyTagok[$i][$szulo.'Account'] = $ret[$j]['userAccount'][0];
+ $osztalyTagok[$i][$szulo.'UserCn'] = $ret[$j]['userCn'][0];
+ break;
+ }
+ }
+ }
+ if (!isset($osztalyTagok[$i][$szulo.'Account'])) {
+ // Ha az userAccount alapján nem találtunk, akkor tovább keresünk név alapján
+ $ret = searchAccount('userCn', $szAdat['szuloNev'], array('userAccount','userCn'), 'parent');
+ if ($ret['count'] > 0) {
+ $osztalyTagok[$i][$szulo.'Accounts'] = $osztalyTagok[$i][$szulo.'Cns'] = array();
+ for ($j = 0; $j < $ret['count']; $j++) {
+ $osztalyTagok[$i][$szulo.'Accounts'][] = $ret[$j]['userAccount'][0];
+ $osztalyTagok[$i][$szulo.'Cns'][] = $ret[$j]['userCn'][0];
+ }
+ }
+ // Javasolt azonosító generálása
+ $csNev = $szAdat['csaladinev'];
+ $pos = mb_strpos($csNev, ' ', 0, 'UTF-8');
+ if ($pos > 0 && mb_substr($csNev, $pos-2, 2, 'UTF-8') == 'né') {
+ $csNev = mb_substr($csNev,$pos+1,strlen($csNev)-$pos-1,'UTF-8');
+ $pos = mb_strpos($csNev, ' ', 0, 'UTF-8');
+ }
+ if ($pos > 0) $csNev = mb_substr($csNev, 0, $pos, 'UTF-8');
+ $uNev = $szAdat['utonev'];
+ $pos = mb_strpos($uNev, ' ', 0, 'UTF-8');
+ if ($pos > 0) $uNev = mb_substr($uNev, 0, $pos, 'UTF-8');
+ if ($AUTH['parent']['unixStyleAccounts']) {
+ $csNev = ekezettelen(kisbetus($csNev));
+ $uNev = ekezettelen(kisbetus($uNev));
+ $osztalyTagok[$i][$szulo.'GeneratedAccount'] = substr($csNev.$uNev[0], 0, 8);
+ } else {
+ $pos = mb_strpos($csNev, ' ', 0, 'UTF-8');
+ $osztalyTagok[$i][$szulo.'GeneratedAccount'] = $csNev.'.'.$uNev;
+ }
+ }
+ } // anya | apa
+ } // osztály tagok
+
+ if ($action == 'createAzonosito') {
+ $userPassword = readVariable($_POST['userPassword'], 'sql', null);
+ $CONTAINER = $AUTH['parent'][ $AUTH['parent']['backend'].'Containers'];
+ $container = readVariable($_POST['container'], 'enum', null, $CONTAINER);
+ if (is_array($CONTAINER) && count($CONTAINER) > 0 && !isset($container)) {
+ $_SESSION['alert'][] = 'message:empty_fields:container';
+ } else {
+ define('__JELSZOGENERALAS', $userPassword == '');
+
+ if (is_array($_POST['userAccount'])) {
+ for ($i = 0; $i < count($_POST['userAccount']); $i++) {
+ $szuloId = readVariable($_POST['szuloId'][$i], 'id', null);
+ $userAccount = readVariable($_POST['userAccount'][$i], 'sql', null);
+ if (isset($szuloId) && $userAccount != '') {
+ if (__JELSZOGENERALAS === true) {
+ $userPassword = $Tagok[$szuloId]['userPassword'];// = sprintf("%u", crc32($szAdat['csaladinev']));
+ }
+ $userCn = $Tagok[$szuloId]['szuloNev'];
+ $ret = createAccount($userCn, $userAccount, $userPassword, 'parent',
+ array('category' => null, 'container' => $container, 'groups' => '', 'policyAttrs' => array())
+ );
+ if ($ret === true) {
+ // a szulo.userAccount módosítása
+ $q = "UPDATE szulo SET userAccount='%s' WHERE szuloId=%u";
+ $v = array($userAccount, $szuloId);
+ db_query($q, array('fv'=>'szuloiAzonositok-pre','modul'=>'naplo_intezmeny','values'=>$v));
+ // a settings táblában felvesszük, hogy melyik intézményhez van rendelve (ez persze nem korlátoz, csak egy alapértelmezés
+ $q = "DELETE FROM settings WHERE userAccount='%s' AND policy='%s'";
+ db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array($userAccount, 'parent')));
+ $q = "INSERT INTO settings (userAccount,policy,intezmeny) VALUES ('%s','%s','%s')";
+ db_query($q, array('debug'=>false,'fv'=>'updateNaploSettings','modul'=>'naplo_base','values'=>array($userAccount, 'parent', __INTEZMENY)));
+
+ }
+ }
+ }
+
+
+ // Újraolvasás
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ foreach (array('anya','apa') as $szulo) {
+
+ $szuloId = $osztalyTagok[$i][$szulo.'Id'];
+ if ($szuloId == '') continue;
+ $szAdat = $osztalyTagok[$i][$szulo] = getSzuloAdat($szuloId);
+ $acc = $osztalyTagok[$i][$szulo]['userAccount'];
+ $Tagok[$szuloId] = $osztalyTagok[$i]; // Az adatrögzítés szuloId alapján megy
+ $Tagok[$szuloId]['szuloNev'] = $szAdat['szuloNev'];
+ $Tagok[$szuloId]['userPassword'] = $osztalyTagok[$i][$szulo]['userPassword'] = sprintf("%u", crc32($szAdat['csaladinev']));
+
+ if ($acc == '') $ret = array('count' => 0);
+ else $ret = searchAccount('userAccount', $acc, array('userAccount','userCn'), 'parent');
+
+ if ($ret['count'] > 0) {
+ for ($j = 0; $j < $ret['count']; $j++) { // csak a pontos egyezés jó - több pontos egyezés meg nem lehet
+ if ($ret[$j]['userAccount'][0] == $acc) {
+ $osztalyTagok[$i][$szulo.'Account'] = $ret[$j]['userAccount'][0];
+ $osztalyTagok[$i][$szulo.'UserCn'] = $ret[$j]['userCn'][0];
+ break;
+ }
+ }
+ }
+ if (!isset($osztalyTagok[$i][$szulo.'Account'])) {
+ // Ha az userAccount alapján nem találtunk, akkor tovább keresünk név alapján
+ $ret = searchAccount('userCn', $szAdat['szuloNev'], array('userAccount','userCn'), 'parent');
+ if ($ret['count'] > 0) {
+ $osztalyTagok[$i][$szulo.'Accounts'] = $osztalyTagok[$i][$szulo.'Cns'] = array();
+ for ($j = 0; $j < $ret['count']; $j++) {
+ $osztalyTagok[$i][$szulo.'Accounts'][] = $ret[$j]['userAccount'][0];
+ $osztalyTagok[$i][$szulo.'Cns'][] = $ret[$j]['userCn'][0];
+ }
+ }
+ }
+ } // anya | apa
+ } // osztály tagok
+ // Újraolvasás vége
+
+
+
+
+ } // van elküldött userAccount
+ }
+
+ } // action
+
+ } // van osztály kiválasztva
+
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella','tanev' => $tanev, 'paramName' => 'tanev', 'post' => array('osztalyId'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('igDt', 'tanev'));
+ getToolParameters();
+
+
+}
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok.php b/mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok.php
new file mode 100644
index 00000000..50df705e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/szuloiAzonositok.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $osztalyId, $osztalyTagok, $Tagok, $ldapTagok, $tanev;
+
+ if (is_array($osztalyTagok)) putCreateAzonositoForm($osztalyId, $osztalyTagok, $tanev, $Tagok);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/tanevek-pre.php b/mayor-orig/www/policy/private/naplo/admin/tanevek-pre.php
new file mode 100644
index 00000000..a842f97e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/tanevek-pre.php
@@ -0,0 +1,151 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/osztalyModifier.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/diakModifier.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/mysql.php');
+
+ $Tanevek = getTanevek($tervezett = true);
+ $Intezmenyek = getIntezmenyek();
+ $IntezmenyRoividNevek = array();
+ for ($i = 0; $i < count($Intezmenyek); $i++) $IntezmenyRovidNevek[] = $Intezmenyek[$i]['rovidNev'];
+ $intezmeny = readVariable($_POST['intezmeny'], 'strictstring', defined('__INTEZMENY') ? __INTEZMENY : null, $IntezmenyRovidNevek);
+
+ $tanev = readVariable($_POST['tanev'], 'numeric unsigned', null, $Tanevek);
+ if (!isset($tanev) && defined('__TANEV')) $tanev = __TANEV;
+ if (isset($tanev)) {
+ $ADAT['tanev'] = $tanev;
+ $ADAT['tanevAdat'] = getTanevAdat($tanev);
+ if ($ADAT['tanevAdat']['statusz'] == 'aktív') {
+ $Osztalyok = getOsztalyok($tanev);
+ $ADAT['vegzoOsztalyok'] = array();
+ for ($i = 0; $i < count($Osztalyok); $i++) {
+ if ($Osztalyok[$i]['vegzoTanev'] == $tanev) $ADAT['vegzoOsztalyok'][] = $Osztalyok[$i];
+ }
+ $ADAT['dt'] = readVariable($_POST['dt'], 'datetime', date('Y-m-d', strtotime('+7 days', strtotime($ADAT['tanevAdat']['zarasDt']))));
+ }
+ }
+ $rootUser = readVariable($_POST['rootUser'], 'strictstring', 'root');
+ $rootPassword = readVariable($_POST['rootPassword'], 'emptystringnull', null); // lehet benne bármilyen karakter
+
+ if ( $action == 'ujTanev' ) {
+
+ $tanev = readVariable($_POST['ujTanev'], 'numeric unsigned', null);
+ if ( isset($tanev) ) {
+
+ $DATA = array(); $j = 0;
+ for ($i = 0; $i < count($_POST['kezdesDt']); $i++) {
+ $kezdesDt = readVariable($_POST['kezdesDt'][$i], 'datetime', null);
+ $zarasDt = readVariable($_POST['zarasDt' ][$i], 'datetime', null);
+ if (isset($kezdesDt) && isset($zarasDt)) {
+ $DATA[$j++] = array(
+ 'tanev' => $tanev,
+ 'szemeszter' => readVariable($_POST['szemeszter'][$i], 'numeric unsigned'),
+ 'kezdesDt' => $kezdesDt,
+ 'zarasDt' => $zarasDt,
+ 'statusz' => 'tervezett'
+ );
+ }
+ }
+ for ($i = 0; $i < count($DATA); $i++) szemeszterBejegyzes($DATA[$i]);
+ $Tanevek = getTanevek($tervezett = true);
+
+ }
+
+ } elseif ($action == 'intezmenyValasztas') {
+
+ if (isset($intezmeny) && $intezmeny !== __INTEZMENY) {
+ if (updateSessionIntezmeny($intezmeny)) {
+ header('Location: '.location('index.php?page=naplo&sub=admin&f=tanevek'));
+ }
+ }
+
+ } elseif ($action == 'tanevAktival') {
+ $TA = getTanevAdat($tanev);
+ $dbNev = tanevDbNev(__INTEZMENY, $tanev);
+ if ($TA['statusz'] == 'tervezett') {
+ // hozzuk létre az adatbázist és adjunk megfelelő jogokat hozzá!
+ if (
+ createDatabase($dbNev, __TANEV_DB_FILE, $rootUser, $rootPassword, array("%DB%" => intezmenyDbNev(__INTEZMENY)) )
+ !== false)
+ {
+ // frissítsük az osztalyNaplo táblát
+ refreshOsztalyNaplo($dbNev,$tanev);
+ activateTanev($tanev);
+ }
+ } else {
+ grantWriteAccessToDb($dbNev, $rootUser, $rootPassword);
+ activateTanev($tanev);
+ }
+ } elseif ($action == 'tanevLezar' && $ADAT['tanevAdat']['statusz'] == 'aktív' && is_array($_POST['step'])) {
+ $ADAT['step'] = $_POST['step'];
+ $ADAT['vjlOsztaly'] = $_POST['vjlOsztaly'];
+ $ADAT['vatOsztaly'] = $_POST['vatOsztaly'];
+ if (closeTanev($ADAT) && in_array('tanevLezaras', $ADAT['step']))
+ revokeWriteAccessFromDb(tanevDbNev(__INTEZMENY, $tanev), $rootUser, $rootPassword);
+ } elseif ($action == 'tanevLezar' && $ADAT['tanevAdat']['statusz'] == 'aktív' && !is_array($_POST['step'])) {
+ $_SESSION['alert'][] = 'message:nothing_to_do:'.$action;
+ } elseif ($action == 'tanevValasztas') {
+// if ($_POST['tanev'] !== __TANEV) {
+// require_once('include/modules/naplo/share/intezmenyek.php');
+// if (updateSessionTanev($_POST['tanev'])) {
+// header('Location: '.location('index.php?page=naplo&sub=admin&f=tanevek'));
+// }
+// }
+ } elseif ($action == 'szemeszterTorles') {
+ // Szemeszterek kezdes és zaras dátumainak változtatása
+ $Szemeszterek = getTanevSzemeszterek($tanev);
+ if (
+ is_array($_POST['kezdesDt']) && is_array($_POST['zarasDt']) && is_array($Szemeszterek)
+ && count($Szemeszterek) == count($_POST['kezdesDt'])
+ ) {
+ $ADAT['modSzemeszter'] = array();
+ $elozoDt = ''; $rendezett = true;
+ for ($i = 0; $i < count($Szemeszterek); $i++) {
+ $kezdesDt = readVariable($_POST['kezdesDt'][$i],'datetime','');
+ $zarasDt = readVariable($_POST['zarasDt'][$i],'datetime','');
+ if ($elozoDt >= $kezdesDt || $kezdesDt >= $zarasDt) {
+ $rendezett = false;
+ $_SESSION['alert'][] = 'message:wrong_data:szemeszter dátum módosítás:'.$kezdesDt.'-'.$zarasDt;
+ break;
+ } elseif ($Szemeszterek[$i]['kezdesDt'] != $kezdesDt || $Szemeszterek[$i]['zarasDt'] != $zarasDt) {
+ $Szemeszterek[$i]['kezdesDt'] = $kezdesDt; $Szemeszterek[$i]['zarasDt'] = $zarasDt;
+ $ADAT['modSzemeszter'][] = $Szemeszterek[$i];
+ }
+ $elozoDt = $zarasDt;
+ }
+ if ($rendezett && count($ADAT['modSzemeszter']) > 0) szemeszterModositas($ADAT['modSzemeszter']);
+ }
+ if (is_array($_POST['szemeszterId'])) szemeszterTorles($_POST['szemeszterId']);
+ } // action
+ updateNaploSession($sessionID,__INTEZMENY,$tanev);
+
+ if (isset($tanev)) $Szemeszterek = getTanevSzemeszterek($tanev);
+ $i = 0;
+ while (($i < count($Szemeszterek)) && ($Szemeszterek[$i]['statusz'] != 'aktív')) $i++;
+ $aktivTanev = ($i < count($Szemeszterek));
+
+ $TOOL['intezmenySelect'] = array('tipus' => 'cella', 'action' => 'intezmenyValasztas', 'intezmenyek' => $Intezmenyek, 'post' => array());
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'tanevek' => $Tanevek, 'action' => 'tanevValasztas', 'tervezett' => true, 'post' => array(), 'paramName'=>'tanev');
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/tanevek.php b/mayor-orig/www/policy/private/naplo/admin/tanevek.php
new file mode 100644
index 00000000..769a1686
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/tanevek.php
@@ -0,0 +1,13 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Szemeszterek, $ADAT, $tanev, $aktivTanev;
+
+ putUjTanevForm();
+ putTanevSzemeszterekForm($Szemeszterek);
+ if ($aktivTanev) putTanevLezarasForm($ADAT);
+ else putTanevAktivalForm($tanev);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/tankorok-pre.php b/mayor-orig/www/policy/private/naplo/admin/tankorok-pre.php
new file mode 100644
index 00000000..d1369674
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/tankorok-pre.php
@@ -0,0 +1,39 @@
+<?php
+{
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+ require_once('include/modules/naplo/share/file.php');
+
+ $mezo_elvalaszto = ' ';
+ if (isset($_POST['fileName'])) $fileName = fileNameNormal($_POST['fileName']);
+ $ADATOK = array();
+
+ if ($fileName != '') {
+
+ if (file_exists($fileName)) {
+
+ $MEZO_LISTA = $_POST['MEZO_LISTA'];
+ $KULCS_MEZOK = $_POST['KULCS_MEZOK'];
+ if (!is_array($MEZO_LISTA)) {
+
+ $ADATOK = readUpdateFile($fileName);
+ if (count($ADATOK) > 0) $attrList = getTableFields('tankor', 'naplo_intezmeny',array('targyNev'));
+ else $_SESSION['alert'][] = 'message:wrong_data';
+
+ } else {
+
+ updateTankor($fileName, $MEZO_LISTA, $KULCS_MEZOK, $mezo_elvalaszto, $_POST['rovatfej']);
+
+ } // MEZO_LISTA tömb
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.$fileName;
+ } // A file létezik-e
+
+ } // van file
+ }
+
+}
+?>
diff --git a/mayor-orig/www/policy/private/naplo/admin/tankorok.php b/mayor-orig/www/policy/private/naplo/admin/tankorok.php
new file mode 100644
index 00000000..d667b706
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/admin/tankorok.php
@@ -0,0 +1,16 @@
+<?php
+{
+ if (_RIGHTS_OK !== true) die();
+
+ global $fileName, $ADATOK, $attrList, $MEZO_LISTA;
+
+ if ($fileName == '') {
+ putFileSelectForm('naplo_intezmeny:tankor');
+ } elseif ($MEZO_LISTA == '') {
+ if (count($ADATOK) > 0) putFieldSelectForm($fileName, $ADATOK, $attrList, 'naplo_intezmeny:tankor');
+ else echo 'NINCS ADAT!';
+ } else {
+ echo 'Adatfeldolgozás kész.';
+ }
+}
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus-pre.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus-pre.php
new file mode 100644
index 00000000..9277b65d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus-pre.php
@@ -0,0 +1,59 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/bejegyzes.php');
+
+ $dt = $ADAT['dt'] = readVariable($_POST['dt'], 'date', date('Y-m-d'));
+ $ADAT['jogosult'] = getSetField('naplo_intezmeny','bejegyzesTipus','jogosult');
+ $ADAT['bejegyzesTipusok'] = getBejegyzesTipusok($dt);
+
+ if ($action == 'modositas') {
+
+ $M['btId'] = readVariable($_POST['bejegyzesTipusId'], 'id', null);
+ $M['btNev'] = readVariable($_POST['bejegyzesTipusNev'], 'string', '');
+ for ($i = 0; $i < count($M['btId']); $i++) {
+ $btId = $M['btId'][$i];
+ $B[$btId]['bejegyzesTipusNev'] = $M['btNev'][$i];
+
+ }
+ if (is_array($_POST['jogosult'])) foreach ($_POST['jogosult'] as $value) {
+ list($id, $jogosult) = explode('-', $value);
+ if (in_array($jogosult, $ADAT['jogosult'])) $B[$id]['jogosult'][] = $jogosult;
+ }
+ if (is_array($_POST['hianyzasDb'])) foreach ($_POST['hianyzasDb'] as $value) {
+ list($id, $hianyzasDb) = explode('-', $value);
+ $B[$id]['hianyzasDb'] = $hianyzasDb;
+ }
+ // Végigmenve a jelenlegi bejegyzesTipus-okon - van-e változás?
+ foreach ($ADAT['bejegyzesTipusok'] as $tipus => $tAdat) {
+ foreach ($tAdat as $btAdat) {
+ $mdb = 0; // módosítandó mezők száma
+ $btId = $btAdat['bejegyzesTipusId'];
+ if ($btAdat['bejegyzesTipusNev'] != $B[$btId]['bejegyzesTipusNev']) $mdb++;
+ if ($btAdat['tipus'] == 'fegyelmi' && intval($btAdat['hianyzasDb']) != $B[$btId]['hianyzasDb']) $mdb++;
+ if (explode(',',$btAdat['jogosult']) != $B[$btId]['jogosult']) {
+ if ($mdb == 0) {
+ jogosultValtoztatas($btId, $B[$btId]['jogosult']);
+ $mdb = 0;
+ }
+ }
+ if ($mdb > 0) bejegyzesTipusModositas($btId, $B[$btId], $dt);
+ }
+ // Fokozat-törlés - új fokozat
+ if (isset($_POST['del-'.ekezettelen($tipus)])) fokozatTorles($tipus, $dt);
+ elseif (isset($_POST['new-'.ekezettelen($tipus)])) ujFokozat($tipus, $dt);
+ }
+ $ADAT['bejegyzesTipusok'] = getBejegyzesTipusok($dt);
+ }
+
+ $TOOL['datumSelect'] = array('tipus'=>'cella','paramName' => 'dt', 'post'=>array());
+ getToolParameters();
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus.php
new file mode 100644
index 00000000..9213d95d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesTipus.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putBejegyzesTipusForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek-pre.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek-pre.php
new file mode 100644
index 00000000..42c0ba03
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek-pre.php
@@ -0,0 +1,73 @@
+<?php
+/*
+ module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__DIAK && !__TANAR && !__VEZETOSEG && !__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/ertekeles.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tanar.php');
+
+ $tanarId = readVariable($_POST['tanarId'], 'id', null);
+
+ $Osztalyok = getOsztalyok(__TANEV);
+ $osztalyIds = array(); for ($i = 0; $i < count($Osztalyok); $i++) $osztalyIds[] = $Osztalyok[$i]['osztalyId'];
+ if (!$tanarId)
+ $osztalyId = readVariable($_POST['osztalyId'], 'id', null, $osztalyIds);
+
+ // TODO!!!
+
+ $DIAKOK = getDiakok(array('tanev' => __TANEV, 'osztalyId' => $osztalyId, 'result'=>'assoc'));
+ $Diakok = getDiakok(array('tanev' => __TANEV, 'osztalyId' => $osztalyId));
+ $diakIds = array(); for ($i = 0; $i < count($Diakok); $i++) $diakIds[] = $Diakok[$i]['diakId'];
+ if (!$tanarId)
+ $diakId = readVariable($_POST['diakId'], 'numeric unsigned', null, $diakIds);
+
+ if (__DIAK) $diakId = __USERDIAKID;
+
+ if ($action === 'delBejegyzes') {
+
+ $bejegyzesId = readVariable($_POST['bejegyzesId'], 'numeric unsigned', 0);
+ $bejegyzesAdat = getBejegyzesAdatById($bejegyzesId);
+ if ( // Admin bármikor, tanár a beírás napján törölhet
+ __NAPLOADMIN ||
+ ($bejegyzesAdat['tanarId'] = __USERTANARID && $bejegyzesAdat['beirasDt'] == date('Y-m-d'))
+ ) {
+ delBejegyzes($bejegyzesId);
+ }
+
+ }
+
+ if (isset($diakId)) $BEJEGYZESEK = getBejegyzesLista($diakId);
+ elseif (isset($osztalyId)) $osztalyBejegyzesek = getBejegyzesekByDiakIds($diakIds);
+ elseif (isset($tanarId)) $BEJEGYZESEK = getBejegyzesekByTanarId($tanarId);
+
+ if (__TANAR || __VEZETOSEG || __NAPLOADMIN) {
+ $TOOL['tanarSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'tanarId', 'post'=>array('osztalyId','tolDt', 'igDt', 'targySorrend')
+ );
+
+ $TOOL['osztalySelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'osztalyId', 'osztalyok' => $Osztalyok, 'post' => array('tolDt', 'igDt', 'targySorrend')
+ );
+ $TOOL['diakSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'diakId',
+// 'diakok' => $Diakok,
+ 'post'=>array('osztalyId','tolDt', 'igDt', 'targySorrend'),
+ 'statusz' => array('vendégtanuló','jogviszonyban van','magántanuló','jogviszonya lezárva','jogviszonya felfüggesztve')
+ );
+ if (isset($diakId))
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=bejegyzesek&f=ujBejegyzes'),
+ 'titleConst' => array('_UJBEJEGYZES'), 'post' => array('osztalyId'), 'paramName'=>'diakId');
+
+ }
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek.php
new file mode 100644
index 00000000..083bed25
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/bejegyzesek.php
@@ -0,0 +1,15 @@
+<?php
+/*
+ module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $diakId, $osztalyId, $tanarId, $BEJEGYZESEK, $osztalyBejegyzesek, $Diakok;
+ global $DIAKOK;
+
+ if ($diakId != '') putBejegyzesLista($diakId, $BEJEGYZESEK);
+ elseif (isset($osztalyId)) putOsztalyBejegyzesek($osztalyBejegyzesek, $Diakok);
+ elseif (isset($tanarId)) putBejegyzesLista('',$BEJEGYZESEK, $DIAKOK);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/info-pre.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/info-pre.php
new file mode 100644
index 00000000..21d05060
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/info-pre.php
@@ -0,0 +1,10 @@
+<?php
+
+
+ require_once('include/modules/naplo/share/bejegyzes.php');
+ if (__DIAK) $diakId = $ADAT['diakId'] = __USERDIAKID;
+
+ $ADAT['tolDt'] = date('Y-m-d 00:00:00', strtotime('-7 days'));
+ if (isset($ADAT['diakId'])) $ADAT['db'] = getDarabBejegyzes($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/info.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/info.php
new file mode 100644
index 00000000..c0e13920
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/info.php
@@ -0,0 +1,5 @@
+<?php
+
+ global $ADAT;
+ if (isset($ADAT['diakId'])) putBejegyzesInfo($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes-pre.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes-pre.php
new file mode 100644
index 00000000..c6db7843
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes-pre.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__TANAR && !__VEZETOSEG && !__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/bejegyzesModifier.php');
+ require_once('include/modules/naplo/share/bejegyzes.php');
+
+ $diakId = readVariable($_POST['diakId'], 'id');
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+
+
+ if (isset($diakId)) {
+ $DIAKOSZTALYAI = getDiakokOsztalyai(array($diakId));
+ define(__OFO, ( is_array($_OSZTALYA) && count(array_intersect($DIAKOSZTALYAI[$diakId],$_OSZTALYA)) > 0 ));
+
+ $jogosult = array();
+ if (__TANAR) $jogosult[] = 'szaktanár';
+ if (__OFO) $jogosult[] = 'osztályfőnök';
+ if (__VEZETOSEG) $jogosult[] = 'vezetőség';
+ if (__NAPLOADMIN) $jogosult[] = 'admin';
+ $FOKOZATOK = getBejegyzesTipusokByJogosult($jogosult);
+
+ if ($action == 'ujBejegyzes') {
+
+ $bejegyzesTipusId = readVariable($_POST['bejegyzesTipusId'], 'id');
+ $szoveg = readVariable($_POST['szoveg'], 'string', '');
+ $evvegi = readVariable($_POST['evvegi'], 'bool', false);
+ if ($evvegi) {
+ // A tanév záró napjára dátumozott bejegyzések kerülnek a törzslapra
+ $referenciaDt = $_TANEV['zarasDt'];
+ } else {
+ $referenciaDt = readVariable($_POST['referenciaDt'],'datetime','');
+ }
+
+ if (isset($bejegyzesTipusId) && $szoveg != '') {
+ if (ujBejegyzes($bejegyzesTipusId, $szoveg, $referenciaDt, $diakId)) $_SESSION['alert'][] = 'info:success:ujBejegyzes';
+ } else { $_SESSION['alert'][] = 'message:wrong_data:ujBejegyzes:szöveg='.$szoveg.', bejegyzesTipusId='.$bejegyzesTipusId; }
+ }
+ } // isset($diakId)
+
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post'=>array('tolDt', 'igDt', 'targySorrend'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella','paramName'=>'diakId', 'post'=>array('osztalyId','tolDt', 'igDt', 'targySorrend'),
+ 'statusz' => array('vendégtanuló','jogviszonyban van','magántanuló')
+ );
+ if (isset($diakId))
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=bejegyzesek&f=bejegyzesek'),
+ 'titleConst' => array('_BEJEGYZESEK'), 'post' => array('osztalyId'), 'paramName'=>'diakId');
+
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes.php b/mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes.php
new file mode 100644
index 00000000..0de20502
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/bejegyzesek/ujBejegyzes.php
@@ -0,0 +1,12 @@
+<?php
+/*
+ module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $diakId, $osztalyId;
+
+ if (is_numeric($diakId)) putUjBejegyzesForm($diakId);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/error-pre.php b/mayor-orig/www/policy/private/naplo/error-pre.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/error-pre.php
diff --git a/mayor-orig/www/policy/private/naplo/error.php b/mayor-orig/www/policy/private/naplo/error.php
new file mode 100644
index 00000000..25d0f284
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/error.php
@@ -0,0 +1,6 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ echo 'ERROR PAGE';
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/ertekeles-pre.php b/mayor-orig/www/policy/private/naplo/ertekeles/ertekeles-pre.php
new file mode 100644
index 00000000..8e9903bd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/ertekeles-pre.php
@@ -0,0 +1,205 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ $tanev = __TANEV;
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/kerdoiv.php');
+
+ if (_POLICY == 'parent') {
+ $cimzettTipusok = array('szulo','tankorSzulo','osztalySzulo');
+ $feladoTipus = 'szulo';
+ $feladoId = __USERSZULOID;
+ $diakId = __USERDIAKID;
+ $cimzett['szulo'] = array(__USERSZULOID);
+ $ret = getTankorByDiakId($diakId, $tanev);
+ $cimzett['tankorSzulo'] = array(); $tankorAdat = array();
+ for ($i = 0; $i < count($ret); $i++) {
+ if (!in_array($ret[$i]['tankorId'], $cimzett['tankorSzulo'])) {
+ $cimzett['tankorSzulo'][] = $ret[$i]['tankorId'];
+ $tankorAdat[ $ret[$i]['tankorId'] ] = $ret[$i];
+ }
+ }
+ $cimzett['osztaly'] = getDiakOsztalya($diakId, array('tanev' => $tanev, 'result' => 'csakid'));
+
+ } elseif (__DIAK) {
+ $cimzettTipusok = array('diak','tankor','osztaly');
+ $feladoTipus = 'diak';
+ $feladoId = $diakId = __USERDIAKID;
+ $cimzett['diak'] = array(__USERDIAKID);
+ $cimzett['tankor'] = array(0);
+ $tankorAdat = array();
+ $ret = getTankorByDiakId($diakId, $tanev);
+ if (is_array($ret)) for ($i = 0; $i < count($ret); $i++) {
+ if (!in_array($ret[$i]['tankorId'], $cimzett['tankor'])) {
+ $cimzett['tankor'][] = $ret[$i]['tankorId'];
+ $tankorAdat[ $ret[$i]['tankorId'] ] = $ret[$i];
+ }
+ }
+ $cimzett['osztaly'] = getDiakOsztalya($diakId, array('tanev' => $tanev, 'result' => 'csakid'));
+ } elseif (__TANAR) {
+ $cimzettTipusok = array('tanar','munkakozosseg');
+ $feladoTipus = 'tanar';
+ $feladoId = __USERTANARID;
+ $cimzett['tanar'] = array(__USERTANARID);
+ $cimzett['munkakozosseg'] = getMunkakozossegByTanarId(__USERTANARID);
+ // Munkaközösségek lekérdezése, címzett listába felvevése...
+ }
+ if (__NAPLOADMIN) {
+ // Ez egy hack. Az admin kiválasztva egy diákon belebújhat annak a szerepébe...
+ $diakId = readVariable($_POST['diakId'], 'id');
+ if (isset($diakId)) {
+ $cimzett['diak'] = array($diakId);
+ $cimzett['tankor'] = array(0);
+ $tankorAdat = array();
+ $ret = getTankorByDiakId($diakId, $tanev);
+ if (is_array($ret)) for ($i = 0; $i < count($ret); $i++) {
+ if (!in_array($ret[$i]['tankorId'], $cimzett['tankor'])) {
+ $cimzett['tankor'][] = $ret[$i]['tankorId'];
+ $tankorAdat[ $ret[$i]['tankorId'] ] = $ret[$i];
+ }
+ }
+ $cimzett['osztaly'] = getDiakOsztalya($diakId, array('tanev' => $tanev, 'result' => 'csakid'));
+ }
+
+ }
+
+ // A szóbajövő kérdőívek
+ $Kerdoiv = getKerdoiv($cimzett);
+
+ $kerdoivIds = array();
+ for ($i = 0; $i < count($Kerdoiv); $i++) $kerdoivIds[] = $Kerdoiv[$i]['kerdoivId'];
+
+ // Kérdőív kiválasztás
+ $ADAT['kerdoivId'] = $kerdoivId = readVariable($_POST['kerdoivId'], 'numeric', null, $kerdoivIds);
+ if (!isset($kerdoivId) && count($Kerdoiv) == 1) $kerdoivId = $Kerdoiv[0]['kerdoivId'];
+
+ // Ha van kiválasztott kérdőív
+ if (isset($kerdoivId)) {
+ $ADAT['kerdoivAdat'] = getKerdoivAdat($kerdoivId);
+ // mely címzettek közösek
+ if (is_array($cimzett)) foreach ($cimzett as $cimzettTipus => $cimzettIds) {
+ if (is_array($cimzettIds) && count($cimzettIds) > 0) {
+ if (is_array($ADAT['kerdoivAdat']['cimzett'][$cimzettTipus])) {
+ if (in_array(0, $ADAT['kerdoivAdat']['cimzett'][$cimzettTipus])) $cIds = $cimzettIds;
+ else $cIds = array_intersect($cimzettIds, $ADAT['kerdoivAdat']['cimzett'][$cimzettTipus]);
+ if (count($cIds) > 0) {
+ $kozosCimzett[$cimzettTipus] = array_values($cIds);
+ switch ($cimzettTipus) {
+ case 'tankor':
+ case 'tankorSzulo':
+ $Tankorok = array();
+ foreach ($cIds as $index => $tankorId) $Tankorok[] = $tankorAdat[ $tankorId ];
+ // ki van-e választva (tankorSelect) az értékelendő tankör
+ $ADAT['cimzettId'] = readVariable($_POST['tankorId'], 'numeric', null, $cIds);
+ if (isset($ADAT['cimzettId'])) {
+ $ADAT['cimzettTipus'] = $cimzettTipus;
+ $Nevek = array();
+ foreach (getTankorTanaraiByInterval( $ADAT['cimzettId'] ) as $idx => $tAdat) $Nevek[] = $tAdat['tanarNev'];
+ $ADAT['cimzettLeiras'] = $tankorAdat[ $ADAT['cimzettId'] ]['tankorNev'].' ('.implode(', ', $Nevek).')';
+ }
+ break;
+ case 'osztaly':
+ case 'osztalySzulo':
+ $Osztalyok = array();
+ foreach ($cIds as $index => $osztalyId) $Osztalyok[] = $osztalyAdat[ $osztalyId ]; // Még nincsenek osztályok lekérdezve!!
+ // ki van-e választva (osztalySelect) az értékelendő osztály
+ $ADAT['cimzettId'] = readVariable($_POST['osztalyId'], 'numeric', null, $cIds);
+ if (isset($ADAT['cimzettId'])) $ADAT['cimzettTipus'] = $cimzettTipus;
+ break;
+ case 'munkakozosseg':
+ $Munkakozossegek = array();
+ foreach ($cIds as $index => $mkId) $Munkakozossegek[] = $mkAdat[ $mkId ]; // Még nincsenek munkaközösségek lekérdezve!!
+ // ki van-e választva (munkakozossegSelect) az értékelendő munkaközösség
+ $ADAT['cimzettId'] = readVariable($_POST['mkId'], 'numeric', null, $cIds);
+ if (isset($ADAT['cimzettId'])) $ADAT['cimzettTipus'] = $cimzettTipus;
+ break;
+ }
+ }
+ }
+ }
+ }
+ // Ha már a kérdőív kitöltése folyik - ismert a cimzettTipus és cimzettId
+ if (!isset($ADAT['cimzettId'])) {
+ $ADAT['cimzettTipus'] = readVariable($_POST['cimzettTipus'], 'enum', null, $cimzettTipusok);
+ if (isset($ADAT['cimzettTipus']))
+ $ADAT['cimzettId'] = readVariable($_POST['cimzettId'], 'numeric', null, $kozosCimzett[$ADAT['cimzettTipus']]);
+ }
+ // Ha egyik előző sem, de egyértelmű a címzett
+ if (!isset($ADAT['cimzettId']) && count($kozosCimzett) == 1) {
+ list($cTipus, $cIds) = each($kozosCimzett);
+ if (count($cIds) == 1) {
+ $ADAT['cimzettTipus'] = readVariable($cTipus, 'enum', null, $cimzettTipusok);
+ if (isset($ADAT['cimzettTipus']))
+ $ADAT['cimzettId'] = readVariable($cIds[0], 'numeric', null, $kozosCimzett[$ADAT['cimzettTipus']]);
+ }
+ }
+
+ unset($tankorId); unset($osztalyId); unset($mkId);
+ if (isset($ADAT['cimzettId'])) {
+ switch ($ADAT['cimzettTipus']) {
+ case 'tankor':
+ case 'tankorSzulo': $tankorId = $ADAT['cimzettId']; break;
+ case 'osztaly':
+ case 'osztalySzulo': $osztalyId = $ADAT['cimzettId']; break;
+ case 'munkakozosseg': $mkId = $ADAT['cimzettId'];
+ }
+ if ($action == 'ertekeles') {
+ // A válaszok rögzítése...
+ $ADAT['megvalaszoltKerdes'] = getMegvalaszoltKerdes($kerdoivId, $feladoId, $feladoTipus, $ADAT['cimzettId'], $ADAT['cimzettTipus']);
+
+ // -------------------
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+
+ for ($i = 0; $i < count($ADAT['kerdoivAdat']['kerdes']); $i++) {
+ $kerdesId = $ADAT['kerdoivAdat']['kerdes'][$i]['kerdesId'];
+ $valaszId = readVariable($_POST['valasz'.$kerdesId], 'numeric unsigned', null);
+ $szabadValasz = readVariable($_POST['szabadValasz'.$kerdesId], 'string', null);
+ if (!in_array($kerdesId, $ADAT['megvalaszoltKerdes']) && (isset($valaszId) || $szabadValasz != '')) { // Ha még nem válaszolt a kérdésre, és most van válasz
+ $q = "INSERT INTO kerdoivMegvalaszoltKerdes (feladoId,feladoTipus,kerdesId,cimzettId,cimzettTipus) VALUES (%u, '%s', %u, %u, '%s')";
+ $v = array($feladoId, $feladoTipus, $kerdesId, $ADAT['cimzettId'], $ADAT['cimzettTipus']);
+ db_query($q, array('fv' => 'ertekeles', 'modul' => 'naplo', 'values' => $v), $lr);
+
+ // Kérdezzük le, hogy van-e kerdoivValaszSzam bejegyzés az adott válaszhoz, címzetthez
+ $q = "SELECT COUNT(*) FROM kerdoivValaszSzam WHERE valaszId = %u AND cimzettId=%u AND cimzettTipus='%s'";
+ $v = array($valaszId, $ADAT['cimzettId'], $ADAT['cimzettTipus']);
+ $db = db_query($q, array('fv' => 'ertekeles/volt-e már ez a válasz', 'result' => 'value', 'modul' => 'naplo', 'values' => $v), $lr);
+ if ($db == 0) {
+ $q = "INSERT INTO kerdoivValaszSzam (valaszId, cimzettId, cimzettTipus, szavazat) VALUES (%u,%u,'%s',1)";
+ $v = array($valaszId, $ADAT['cimzettId'], $ADAT['cimzettTipus']);
+ db_query($q, array('fv' => 'ertekeles', 'modul' => 'naplo', 'values' => $v), $lr);
+ } else {
+ $q = "UPDATE kerdoivValaszSzam SET szavazat=szavazat+1 WHERE valaszId=%u AND cimzettId=%u AND cimzettTipus='%s'";
+ $v = array($valaszId, $ADAT['cimzettId'], $ADAT['cimzettTipus']);
+ db_query($q, array('fv' => 'ertekeles', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+ }
+ if ($szabadValasz != '') {
+ $q = "INSERT INTO kerdoivSzabadValasz (kerdesId, szoveg) VALUES (%u, '%s')";
+ $v = array($kerdesId, $szabadValasz);
+ db_query($q, array('fv' => 'ertekeles/szabadValasz', 'modul' => 'naplo', 'values' => $v), $lr);
+ }
+ }
+ db_commit($lr);
+ db_close($lr);
+ // -------------------
+
+ }
+ $ADAT['megvalaszoltKerdes'] = getMegvalaszoltKerdes($kerdoivId, $feladoId, $feladoTipus, $ADAT['cimzettId'], $ADAT['cimzettTipus']);
+ }
+ }
+ if (is_array($Kerdoiv))
+ $TOOL['kerdoivSelect'] = array('tipus' => 'cella', 'kerdoiv' => $Kerdoiv, 'paramName' => 'kerdoivId', 'post' => array('diakId'));
+ if (__NAPLOADMIN)
+ $TOOL['diakSelect'] = array('tipus' => 'sor', 'paramName' => 'diakId', 'post' => array('kerdoivId','tankorId'));
+ if (is_array($Tankorok))
+ $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $Tankorok, 'paramName' => 'tankorId', 'post' => array('kerdoivId','diakId'));
+
+ getToolParameters();
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/ertekeles.php b/mayor-orig/www/policy/private/naplo/ertekeles/ertekeles.php
new file mode 100644
index 00000000..e69607b7
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/ertekeles.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $kerdoivId, $ADAT;
+
+ if (isset($kerdoivId) && isset($ADAT['cimzettId'])) putKerdoiv($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/export-pre.php b/mayor-orig/www/policy/private/naplo/ertekeles/export-pre.php
new file mode 100644
index 00000000..df76b3d1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/export-pre.php
@@ -0,0 +1,33 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/kerdoiv.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+
+ $ADAT['kerdoiv'] = getOsszesKerdoiv($tanev);
+ $ADAT['kerdoivIds'] = array();
+ for ($i = 0; $i < count($ADAT['kerdoiv']); $i++) $ADAT['kerdoivIds'][] = $ADAT['kerdoiv'][$i]['kerdoivId'];
+
+ $ADAT['kerdoivId'] = $kerdoivId = readVariable($_POST['kerdoivId'], 'numeric', null, $ADAT['kerdoivIds']);
+ if (isset($kerdoivId)) {
+
+ $ADAT['stat'] = getKerdoivStat($kerdoivId, $tanev);
+
+ }
+
+ }
+//echo '<pre>'; var_dump($ADAT['stat']['kerdes'][1]); echo '</pre>';
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array());
+ $TOOL['kerdoivSelect'] = array('tipus' => 'cella', 'paramName' => 'kerdoivId', 'kerdoiv' => $ADAT['kerdoiv'], 'post' => array('tanev'));
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/export.php b/mayor-orig/www/policy/private/naplo/ertekeles/export.php
new file mode 100644
index 00000000..f2f7171d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/export.php
@@ -0,0 +1,27 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ function exportKerdoiv($ADAT) {
+
+ formBegin();
+
+ echo '<textarea name="export" style="width: 80%; height: 200px;">';
+ foreach ($ADAT['stat']['kerdes'] as $kerdesId => $kAdat) {
+ echo $kAdat['kerdes']."\n";
+ foreach ($kAdat['valasz'] as $valaszId => $valasz) {
+ echo $valasz."\n";
+ }
+ echo "\n";
+ }
+
+ echo '</textarea>'."\n";
+ formEnd();
+
+ }
+
+ exportKerdoiv($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes-pre.php b/mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes-pre.php
new file mode 100644
index 00000000..0d633fc8
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes-pre.php
@@ -0,0 +1,149 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/kerdoiv.php');
+
+ $ADAT['feladoTipusok'] = array('tanar','diak','szulo');
+ $ADAT['cimzettTipusok'] = array('diak','szulo','tanar','tankor','tankorSzulo','munkakozosseg','osztaly');
+
+ $ADAT['feladoTipus'] = readVariable($_POST['feladoTipus'], 'enum', null, $ADAT['feladoTipusok']);
+ $ADAT['cimzettTipus'] = readVariable($_POST['cimzettTipus'], 'enum', null, $ADAT['cimzettTipusok']);
+// !!!!
+ $kerdoivId = $ADAT['kerdoivId'] = readVariable($_POST['kerdoivId'], 'id');
+ if (isset($kerdoivId)) {
+ $ADAT['kerdoivAdat'] = getKerdoivAdat($kerdoivId);
+ if (is_array($ADAT['kerdoivAdat']['cimzett']) && count($ADAT['kerdoivAdat']['cimzett']) > 0)
+ $ADAT['cimzettTipus'] = array_pop(array_keys($ADAT['kerdoivAdat']['cimzett']));
+ $ADAT['cim'] = $ADAT['kerdoivAdat']['cim'];
+ }
+
+ if (isset($ADAT['cimzettTipus'])) {
+/*
+ switch ($ADAT['feladoTipus']) {
+ case 'tanar':
+ $T = getTanarok(array('tanev' => __TANEV));
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['feladok'][] = array('feladoId' => $T[$i]['tanarId'], 'feladoNev' => $T[$i]['tanarNev']);
+ $ADAT['feladoIds'][] = $T[$i]['tanarId'];
+ }
+ break;
+ case 'diak':
+ $T = getDiakok(array('tanev' => __TANEV));
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['feladok'][] = array('feladoId' => $T[$i]['diakId'], 'feladoNev' => $T[$i]['diakNev']);
+ $ADAT['feladoIds'][] = $T[$i]['diakId'];
+ }
+ break;
+ case 'szulo':
+ $T = getSzulok(array('result' => 'standard'));
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['feladok'][] = array('feladoId' => $T[$i]['szuloId'], 'feladoNev' => $T[$i]['szuloNev']);
+ $ADAT['feladoIds'][] = $T[$i]['szuloId'];
+ }
+ break;
+ }
+*/
+ $ADAT['cimzettIds'] = array(0);
+ switch ($ADAT['cimzettTipus']) {
+ case 'tanar':
+ $T = getTanarok(array('tanev' => __TANEV));
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['cimzettek'][] = array('cimzettId' => $T[$i]['tanarId'], 'cimzettNev' => $T[$i]['tanarNev']);
+ $ADAT['cimzettIds'][] = $T[$i]['tanarId'];
+ }
+ break;
+ case 'diak':
+ $T = getDiakok(array('tanev' => __TANEV));
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['cimzettek'][] = array('cimzettId' => $T[$i]['diakId'], 'cimzettNev' => $T[$i]['diakNev']);
+ $ADAT['cimzettIds'][] = $T[$i]['diakId'];
+ }
+ break;
+ case 'szulo':
+ $T = getSzulok(array('result' => 'standard'));
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['cimzettek'][] = array('cimzettId' => $T[$i]['szuloId'], 'cimzettNev' => $T[$i]['szuloNev']);
+ $ADAT['cimzettIds'][] = $T[$i]['szuloId'];
+ }
+ break;
+ case 'tankor':
+ case 'tankorSzulo':
+ case 'tankorTanar':
+ $T = getTankorok(array('tanev = '.__TANEV));
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['cimzettek'][] = array('cimzettId' => $T[$i]['tankorId'], 'cimzettNev' => $T[$i]['tankorNev']);
+ $ADAT['cimzettIds'][] = $T[$i]['tankorId'];
+ }
+ break;
+ case 'munkakozosseg':
+ $T = getMunkakozossegek();
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['cimzettek'][] = array('cimzettId' => $T[$i]['mkId'], 'cimzettNev' => $T[$i]['mkNev']);
+ $ADAT['cimzettIds'][] = $T[$i]['mkId'];
+ }
+ break;
+ case 'osztaly':
+ case 'osztalySzulo':
+ case 'osztalyTanar':
+ $T = getOsztalyok(__TANEV);
+ for ($i = 0; $i < count($T); $i++) {
+ $ADAT['cimzettek'][] = array('cimzettId' => $T[$i]['osztalyId'], 'cimzettNev' => $T[$i]['osztalyJel']);
+ $ADAT['cimzettIds'][] = $T[$i]['osztalyId'];
+ }
+ break;
+ }
+ }
+
+ if ($action == 'kerdoivBetoltes1') {
+ $ADAT['cim'] = readVariable($_POST['cim'], 'sql', null);
+ $ADAT['tolDt'] = readVariable($_POST['tolDt'], 'datetime', null);
+ $ADAT['igDt'] = readVariable($_POST['igDt'], 'datetime', null);
+ $ADAT['megjegyzes'] = readVariable($_POST['megjegyzes'], 'string', null);
+ if (isset($ADAT['cim']) && isset($ADAT['tolDt']) && isset($ADAT['igDt']) && isset($ADAT['cimzettTipus'])) {
+ $kerdoivId = $ADAT['kerdoivId'] = ujKerdoiv($ADAT);
+ if ($kerdoivId) {
+ $ADAT['txt'] = explode("\n", $_POST['txt']);
+ kerdesValaszFelvetel($ADAT);
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:empty_fields:ujKerdoiv:cim-tolDt-igDt';
+ }
+ } elseif ($action == 'kerdoivBetoltes2') {
+ if (is_array($_POST['cimzettId']) && count($_POST['cimzettId']) > 0) {
+ //$kerdoivId = readVariable($_POST['kerdoivId'], 'numeric unsigned', null);
+ if (in_array(0, $_POST['cimzettId'])) $_POST['cimzettId'] = $ADAT['cimzettIds'];
+ for ($i = 0; $i < count($_POST['cimzettId']); $i++) {
+ $cimzettId = readVariable($_POST['cimzettId'][$i], 'numeric unsigned', null, $ADAT['cimzettIds']);
+ kerdoivCimzettFelvetel($kerdoivId, $cimzettId, $ADAT['cimzettTipus']);
+ }
+ }
+ if (is_array($_POST['torlendoCimzettId']) && count($_POST['torlendoCimzettId']) > 0) {
+ for ($i = 0; $i < count($_POST['torlendoCimzettId']); $i++) {
+ $cimzettId = readVariable($_POST['torlendoCimzettId'][$i], 'numeric unsigned', null, $ADAT['cimzettIds']);
+ kerdoivCimzettTorles($kerdoivId, $cimzettId, $ADAT['cimzettTipus']);
+ }
+ }
+ $ADAT['kerdoivAdat'] = getKerdoivAdat($kerdoivId);
+ if (is_array($ADAT['kerdoivAdat']['cimzett']) && count($ADAT['kerdoivAdat']['cimzett'])>0) {
+ $ADAT['cimzettTipus'] = array_pop(array_keys($ADAT['kerdoivAdat']['cimzett']));
+ }
+ $ADAT['cim'] = $ADAT['kerdoivAdat']['cim'];
+ }
+ }
+
+ $TOOL['kerdoivSelect'] = array('tipus' => 'cella', 'paramName' => 'kerdoivId', 'post' => array());
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes.php b/mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes.php
new file mode 100644
index 00000000..4b7c5287
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/kerdoivBetoltes.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (!isset($ADAT['kerdoivId'])) putKerdoivForm($ADAT);
+ else putCimzettForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/osszesites-pre.php b/mayor-orig/www/policy/private/naplo/ertekeles/osszesites-pre.php
new file mode 100644
index 00000000..0b537ffe
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/osszesites-pre.php
@@ -0,0 +1,97 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR && !__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/kerdoiv.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/share/print/pdf.php');
+
+ $ADAT['kerdoiv'] = getOsszesKerdoiv();
+ $ADAT['kerdoivIds'] = array();
+ for ($i = 0; $i < count($ADAT['kerdoiv']); $i++) $ADAT['kerdoivIds'][] = $ADAT['kerdoiv'][$i]['kerdoivId'];
+
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'numeric unsigned');
+ if (__TANAR && !__NAPLOADMIN && !__VEZETOSEG) $tanarId = __USERTANARID;
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'], 'numeric unsigned');
+
+ $ADAT['kerdoivId'] = $kerdoivId = readVariable($_POST['kerdoivId'], 'numeric', null, $ADAT['kerdoivIds']);
+
+ if (isset($kerdoivId)) {
+
+ $ADAT['kerdoivStat'] = getKerdoivStat($kerdoivId);
+
+// if (isset($tankorId)) {
+// } else {
+ $Table = array();
+ foreach (array('tankor','tankorSzulo') as $key => $cimzettTipus) {
+ if (is_array($ADAT['kerdoivStat']['cimzett'][$cimzettTipus])) { // Ha tanköröket értékeltünk
+ // Elválasztó - a két címzettTípus között
+// $Table[] = ''; $Table[] = $cimzettTipus; $Table[] = '';
+ $sor = count($Table); // A következő sor
+ // táblázat elkészítése - két dimenziós tömb
+ // első sor: Tanár | Tankör | Kerdes |.|.|.| Kerdes |.|...
+ $Table[$sor] = array('Tanár/Tankör','Létszám');
+ foreach ($ADAT['kerdoivStat']['kerdes'] as $kerdesId => $kAdat) {
+ $Table[$sor][] = $kAdat['kerdes'].' ('.$kerdesId.')';
+ for ($i = 1; $i < count($kAdat['valasz']); $i++) $Table[$sor][] = '';
+ }
+ // Második sor: | valasz1/1 | Valasz1/2 ...
+ $Table[$sor+1] = array('','');
+ foreach ($ADAT['kerdoivStat']['kerdes'] as $kerdesId => $kAdat) {
+ $j=1;
+ foreach ($kAdat['valasz'] as $valaszId => $valasz)
+ $Table[$sor+1][] = ($j++).'. '.$valasz.' ('.$valaszId.')';
+ }
+ // Tanáronként megyünk
+ if (isset($tanarId)) $Tanarok = array($tanarId => $ADAT['kerdoivStat']['tanarNev'][$tanarId]);
+ else $Tanarok = $ADAT['kerdoivStat']['tanarNev'];
+ foreach ($Tanarok as $tanarId => $tanarNev) {
+ $Table[] = array($tanarNev,''); // Ebbe a sorba lehetne esetleg átlagolni
+ // tanköröknként
+ for ($i = 0; $i < count($ADAT['kerdoivStat']['tanarTankorei'][$tanarId]); $i++) {
+ $tankorId = $ADAT['kerdoivStat']['tanarTankorei'][$tanarId][$i];
+ $tankorNev = $ADAT['kerdoivStat']['tankorAdat'][$tankorId]['tankorNev'];
+ $Row = array($tankorNev.' ('.$tankorId.')', $ADAT['kerdoivStat']['tankorAdat'][$tankorId]['letszam']);
+ // Kérdésenként
+ foreach ($ADAT['kerdoivStat']['kerdes'] as $kerdesId => $kAdat) {
+ // Válszonként
+ foreach ($kAdat['valasz'] as $valaszId => $valasz) {
+ $Row[] = $ADAT['kerdoivStat']['szavazat'][$cimzettTipus][$tankorId][$valaszId];
+ }
+ }
+ $Table[] = $Row;
+ }
+ }
+
+ }} // if / foreach
+
+ if (strstr($_SERVER["HTTP_USER_AGENT"], 'Linux')) {
+ $fileName = fileNameNormal('kerdoiv-'.$kerdoivId.'.csv');
+ if (generateCSV($fileName, $Table, 'Kérdőív összesítés'))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/ertekeles/osszesites&file='.$fileName));
+ } else {
+ $fileName = fileNameNormal('kerdoiv-'.$kerdoivId.'.xls');
+ if (generateXLS($fileName, $Table, 'Kérdőív összesítés'))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/ertekeles/osszesites&file='.$fileName));
+ }
+// } // isset($tankorId)
+ }
+
+ }
+
+ if (__NAPLOADMIN || __VEZETOSEG)
+ $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array('kerdoivId'));
+// $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('tolDt', 'igDt'));
+// if (isset($osztalyId) || isset($tanarId))
+// $TOOL['tankorSelect'] = array('tipus' => 'sor', 'paramName' => 'tankorId', 'post' => array('osztalyId', 'tanarId', 'kerdoivId'));
+
+
+ $TOOL['kerdoivSelect'] = array('tipus' => 'cella', 'paramName' => 'kerdoivId', 'kerdoiv' => $ADAT['kerdoiv'], 'post' => array('tanarId', 'tankorId'));
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/ertekeles/osszesites.php b/mayor-orig/www/policy/private/naplo/ertekeles/osszesites.php
new file mode 100644
index 00000000..c24a85d5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/ertekeles/osszesites.php
@@ -0,0 +1,5 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/esemeny-pre.php b/mayor-orig/www/policy/private/naplo/esemeny/esemeny-pre.php
new file mode 100644
index 00000000..42808fe9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/esemeny-pre.php
@@ -0,0 +1,7 @@
+<?php
+
+ if (__DIAK) header('Location: '.location('index.php?page=naplo&sub=esemeny&f=jelentkezes'));
+ elseif (__NAPLOADMIN) header('Location: '.location('index.php?page=naplo&sub=esemeny&f=ujEsemeny'));
+ else header('Location: '.location('index.php?page=naplo&sub=esemeny&f=esemenyDiak'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/esemeny.php b/mayor-orig/www/policy/private/naplo/esemeny/esemeny.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/esemeny.php
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak-pre.php b/mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak-pre.php
new file mode 100644
index 00000000..080fb0ca
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak-pre.php
@@ -0,0 +1,83 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/esemeny.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ $ADAT['esemenyKategoriak'] = getEnumField('naplo','esemeny','esemenyKategoria');
+ $ADAT['esemenyId'] = readVariable($_POST['esemenyId'],'id', readVariable($_GET['esemenyId'],'id'));
+ $_POST['esemenyId'] = $ADAT['esemenyId'];
+ if ($ADAT['esemenyId'] != '') $ADAT['esemenyAdat'] = getEsemenyAdat($ADAT['esemenyId']);
+ define('__MODOSITHAT',(
+ __NAPLOADMIN || __VEZETOSEG
+ || (
+ __TANAR
+ && ( $ADAT['esemenyId'] == '' || in_array(__USERTANARID, $ADAT['esemenyAdat']['tanarIds']))
+ )
+ ));
+
+ if (__MODOSITHAT) {
+ if ($action == 'nevsorModositas') {
+ $ujDiakIds = readVariable($_POST['ujDiakId'], 'id');
+ // TODO: ellenőrizni, hogy a diák jelentkezhet-e az eseményre (esemenyOsztaly, osztalyDiak)
+ if (is_array($ujDiakIds)) foreach ($ujDiakIds as $diakId) esemenyJelentkezes($diakId, $ADAT['esemenyId']);
+ $torolDiakId = readVariable($_POST['torolDiakId'], 'id');
+ if (isset($torolDiakId)) esemenyLeadas($torolDiakId, $ADAT['esemenyId']);
+
+ $jovahagyDiakId = readVariable($_POST['jovahagyDiakId'], 'id');
+ if (isset($jovahagyDiakId)) jelentkezesJovahagyas($jovahagyDiakId, $ADAT['esemenyId']);
+
+ $elutasitDiakId = readVariable($_POST['elutasitDiakId'], 'id');
+ if (isset($elutasitDiakId)) jelentkezesElutasitas($elutasitDiakId, $ADAT['esemenyId']);
+
+ }
+ }
+
+ if ($ADAT['esemenyId'] != '') {
+ $ADAT['esemenyAdat'] = getEsemenyAdat($ADAT['esemenyId']);
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['osztalyok'] = getosztalyok();
+
+ $ADAT['osztalyId2osztalyJel'] = array();
+ foreach ($ADAT['esemenyAdat']['osztalyIds'] as $_osztalyId) {
+ // osztályJelek lekérdezése
+ $i=0;
+ while ($i < count($ADAT['osztalyok']) && $ADAT['osztalyok'][$i]['osztalyId'] != $_osztalyId) $i++;
+ if (count($i<$ADAT['osztalyok'])) $ADAT['osztalyId2osztalyJel'][$_osztalyId] = $ADAT['osztalyok'][$i]['osztalyJel'];
+ $statuszLista = array('jogviszonyban van','magántanuló');
+ $tmp = getDiakokByOsztaly($_osztalyId, array('statusz' => $statuszLista));
+ $ADAT['diakIds'][$_osztalyId] = array();
+ foreach ($statuszLista as $statusz)
+ foreach ($tmp[$statusz] as $_diakId) {
+ $ADAT['diakok'][$_osztalyId][] = array(
+ 'diakId' => $_diakId, 'diakNev' => $tmp[$_diakId]['diakNev'], 'beDt' => $tmp[$_diakId]['beDt'],
+ 'kiDt' => $tmp[$_diakId]['kiDt'], 'statusz' => $statusz
+ );
+ $ADAT['diakIds'][$_osztalyId][] = $_diakId;
+ $ADAT['diak2osztaly'][$_diakId] = $_osztalyId;
+ }
+ }
+ }
+
+ $ADAT['esemenyek'] = getEsemenyLista();
+ $TOOL['esemenySelect'] = array('tipus'=>'cella',
+ 'paramName'=>'esemenyId','paramDesc'=>'esemenyNev','esemenyId'=>$ADAT['esemenyId'],'adatok' => $ADAT['esemenyek']
+ );
+ if ($ADAT['esemenyId'] != '') {
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=esemeny&f=ujEsemeny'),
+ 'titleConst' => array('_ESEMENYMODOSITAS'), 'post' => array('esemenyId'),
+ );
+ }
+
+ getToolParameters();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak.php b/mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak.php
new file mode 100644
index 00000000..789fd5dd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/esemenyDiak.php
@@ -0,0 +1,8 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if ($ADAT['esemenyId'] != '') esemenyNevsor($ADAT);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/jelentkezes-pre.php b/mayor-orig/www/policy/private/naplo/esemeny/jelentkezes-pre.php
new file mode 100644
index 00000000..9d1de532
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/jelentkezes-pre.php
@@ -0,0 +1,45 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__DIAK) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/esemeny.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ if (__DIAK) $ADAT['diakId'] = __USERDIAKID;
+ else $ADAT['diakId'] = readVariable($_POST['diakId'], 'id');
+
+ if (isset($ADAT['diakId'])) {
+ $ADAT['diakOsztaly'] = getDiakokOsztalyai(array($ADAT['diakId']));
+ $ADAT['esemenyek'] = getAktualisEsemenyByOsztaly($ADAT['diakOsztaly'][ $ADAT['diakId'] ]);
+ $ADAT['esemenyIds'] = array();
+ if (is_array($ADAT['esemenyek'])) foreach ($ADAT['esemenyek'] as $eAdat) $ADAT['esemenyIds'][] = $eAdat['esemenyId'];
+ $ADAT['valasztottEsemenyek'] = getValasztottEsemenyek($ADAT['diakId'], array('esemenyIds' => $ADAT['esemenyIds']));
+ $ADAT['jovahagyottEsemenyek'] = getJovahagyottEsemenyek($ADAT['diakId'], array('esemenyIds' => $ADAT['esemenyIds']));
+
+ if ($action == 'jelentkezes') {
+
+ foreach ($_POST as $key => $val) {
+ if ($val == 'felvesz') {
+ $ADAT['esemenyId'] = readVariable(substr($key,7), 'id');
+ // TODO: ellenőrizzük, hogy az adott eseményre jelentkezhet-e a diák...
+ esemenyJelentkezes($ADAT['diakId'], $ADAT['esemenyId']);
+ } elseif ($val == 'lead') {
+ $ADAT['esemenyId'] = readVariable(substr($key,4), 'id');
+ esemenyLeadas($ADAT['diakId'], $ADAT['esemenyId']);
+ }
+ // Választott események újraolvasása...
+ $ADAT['esemenyek'] = getAktualisEsemenyByOsztaly($ADAT['diakOsztaly'][ $ADAT['diakId'] ]);
+ $ADAT['valasztottEsemenyek'] = getValasztottEsemenyek($ADAT['diakId'], array('esemenyIds' => $ADAT['esemenyIds']));
+ $ADAT['jovahagyottEsemenyek'] = getJovahagyottEsemenyek($ADAT['diakId'], array('esemenyIds' => $ADAT['esemenyIds']));
+ }
+
+ }
+
+ }
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/jelentkezes.php b/mayor-orig/www/policy/private/naplo/esemeny/jelentkezes.php
new file mode 100644
index 00000000..b6286bf4
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/jelentkezes.php
@@ -0,0 +1,8 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['esemenyIds'])) putJelentkezesForm($ADAT);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny-pre.php b/mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny-pre.php
new file mode 100644
index 00000000..c1bffff8
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny-pre.php
@@ -0,0 +1,91 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/esemeny.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ $ADAT['esemenyKategoriak'] = getEnumField('naplo','esemeny','esemenyKategoria');
+ $ADAT['esemenyId'] = readVariable($_POST['esemenyId'],'id');
+ if ($ADAT['esemenyId'] != '') $ADAT['esemenyAdat'] = getEsemenyAdat($ADAT['esemenyId']);
+
+ define('__MODOSITHAT',(
+ __NAPLOADMIN || __VEZETOSEG
+ || (
+ __TANAR
+ && ( $ADAT['esemenyId'] == '' || in_array(__USERTANARID, $ADAT['esemenyAdat']['tanarIds']))
+ )
+ ));
+
+ if ($action == 'esemenyTorles') {
+
+ if (__MODOSITHAT && $ADAT['esemenyId'] != '') {
+ if (esemenyTorles($ADAT['esemenyId'])) {
+ $_SESSION['alert'][] = 'info:success';
+ unset($ADAT);
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ }
+
+ } elseif ($action != '') {
+
+ $ADAT['esemenyRovidnev'] = readVariable($_POST['esemenyRovidnev'],'string');
+ $ADAT['esemenyNev'] = readVariable($_POST['esemenyNev'],'string');
+ $ADAT['esemenyKategoria'] = readVariable($_POST['esemenyKategoria'],'enum',null,$ADAT['esemenyKategoriak']);
+ $ADAT['esemenyLeiras'] = readVariable($_POST['esemenyLeiras'],'string');
+ $ADAT['jelentkezesTolDt'] = readVariable($_POST['jelentkezesTolDt'],'datetime');
+ $ADAT['jelentkezesIgDt'] = readVariable($_POST['jelentkezesIgDt'],'datetime');
+ $ADAT['min'] = readVariable($_POST['min'],'numeric unsigned');
+ $ADAT['max'] = readVariable($_POST['max'],'numeric unsigned');
+
+ if (
+ $ADAT['esemenyRovidnev']!='' && $ADAT['esemenyKategoria']!='' && $ADAT['jelentkezesTolDt']!='' && $ADAT['jelentkezesIgDt']!=''
+ && ($action == 'ujEsemeny' || $ADAT['esemenyId']!='')
+ ) {
+
+ if ($action == 'ujEsemeny') {
+ $ADAT['esemenyId'] = ujEsemeny($ADAT);
+ if (is_numeric($ADAT['esemenyId'])) $_SESSION['alert'][] = 'info:success';
+ } elseif ($action == 'esemenyModositas') {
+ $ADAT['esemenyTanar'] = readVariable($_POST['esemenyTanar'],'id',array());
+ $ADAT['esemenyOsztaly'] = readVariable($_POST['esemenyOsztaly'],'id',array());
+ $ADAT['esemenyTanar'] = readVariable($_POST['esemenyTanar'],'id',array());
+ // TODO: jogosultságok! Tanár csak a hozzárendeltet!
+ if (__MODOSITHAT) {
+ esemenyModositas($ADAT);
+ $_SESSION['alert'][] = 'info:success';
+ } else $_SESSION['alert'][] = 'message:insufficient_access';
+ }
+
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data';
+ } // wrong_data
+ } // action
+
+ if ($ADAT['esemenyId'] != '') {
+ $ADAT['esemenyAdat'] = getEsemenyAdat($ADAT['esemenyId']);
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['osztalyok'] = getosztalyok();
+ }
+ $ADAT['esemenyek'] = getEsemenyLista();
+
+ $TOOL['esemenySelect'] = array('tipus'=>'cella',
+ 'paramName'=>'esemenyId','paramDesc'=>'esemenyNev','esemenyId'=>$ADAT['esemenyId'],'adatok' => $ADAT['esemenyek']
+ );
+ if ($ADAT['esemenyId'] != '') {
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=esemeny&f=esemenyDiak'),
+ 'titleConst' => array('_ESEMENYJELENTKEZOK'), 'post' => array('esemenyId'),
+ );
+ }
+ getToolParameters();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny.php b/mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny.php
new file mode 100644
index 00000000..fdb37417
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/esemeny/ujEsemeny.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ esemenyForm($ADAT);
+ //if ($ADAT['esemenyId'] == '') esemenyLista($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/export/bizonyitvany-pre.php b/mayor-orig/www/policy/private/naplo/export/bizonyitvany-pre.php
new file mode 100644
index 00000000..b71adf7b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/bizonyitvany-pre.php
@@ -0,0 +1,114 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/osztalyozo/stat.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['formatum'] = readVariable($_POST['formatum'], 'enum', 'ods', array('csv','ods','xml'));
+ if ($ADAT['formatum'] == 'xml') $ADAT['mime'] = 'application/vnd.ms-excel';
+
+ if (file_exists($file = _MAYOR_DIR.'/export/module-naplo/'.__INTEZMENY.'/bizonyitvany.php'))
+ require_once($file);
+ elseif (file_exists($file = _MAYOR_DIR.'/export/module-naplo/default/bizonyitvany.php'))
+ require_once($file);
+
+ $ADAT['magatartasIdk'] = getMagatartas();
+ $ADAT['szorgalomIdk']= getSzorgalom();
+
+ // melyik szemeszter adatait nézzük
+ if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '') {
+ $szemeszterId = $_POST['szemeszterId'];
+ } elseif (!isset($_POST['szemeszterId'])) {
+ for ($i = 1; $i <= count($_TANEV['szemeszter']); $i++) {
+ if (
+ strtotime($_TANEV['szemeszter'][$i]['kezdesDt']) <= _TIME
+ && strtotime($_TANEV['szemeszter'][$i]['zarasDt']) >= _TIME
+ ) {
+ $_POST['szemeszterId'] = $szemeszterId = $_TANEV['szemeszter'][$i]['szemeszterId'];
+ break;
+ }
+ }
+ }
+ $ADAT['sorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', 'bizonyítvány', array('bizonyitvany'));
+
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ if (!isset($osztalyId) && __OSZTALYFONOK) { $ADAT['osztalyId'] = $osztalyId = $_OSZTALYA[0]; }
+
+ if (isset($szemeszterId)) {
+
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ define('__ZARO_SZEMESZTER', $ADAT['szemeszterAdat']['szemeszter'] == $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']);
+
+ $Osztalyok = getOsztalyok($ADAT['szemeszterAdat']['tanev']);
+ if (isset($osztalyId) && $action == 'bizonyitvanyExport') {
+
+ define('__OSZTALYFONOKE', (__OSZTALYFONOK === true && in_array($osztalyId, $_OSZTALYA)));
+
+ // intézmény adatok
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // osztály statisztikák
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+ // Az adott szemeszterben létezik-e az osztály
+ for ($i = 0; ($i < count($Osztalyok) && $Osztalyok[$i]['osztalyId'] != $osztalyId); $i++);
+ if ($i < count($Osztalyok)) {
+ $Szulok = getSzulok();
+ $ADAT['diakok'] = getDiakok(array('osztalyId' => $osztalyId, 'tanev' => $ADAT['szemeszterAdat']['tanev']));
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ $ADAT['diakIds'][] = intval($ADAT['diakok'][$i]['diakId']);
+ $ADAT['diakAdat'][ $ADAT['diakok'][$i]['diakId'] ] = getDiakAdatById( $ADAT['diakok'][$i]['diakId'] );
+ foreach ($ADAT['diakAdat'] as $diakId => $dAdat) {
+ foreach (array('anya','apa','gondviselo') as $tipus) {
+ $szuloId = $dAdat[ $tipus.'Id' ];
+ if (is_array($Szulok[$szuloId])) foreach ($Szulok[$szuloId] as $attr => $value) {
+ $ADAT['diakAdat'][$diakId][ $tipus . ucfirst($attr) ] = $value;
+ } elseif ($i == 0 && is_array($Szulok[1])) foreach ($Szulok[1] as $attr => $value) {
+ $ADAT['diakAdat'][$diakId][ $tipus . ucfirst($attr) ] = '';
+ }
+ }
+ }
+ }
+ $ADAT['targyak'] = getTargyakByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat'], $osztalyId, $sorrendNev);
+ //for ($i = 0; $i < count($ADAT['targyak']); $i++) $ADAT['targyAdat'][ $ADAT['targyak'][$i]['targyNev'] ] = $ADAT['targyak'][$i]['targyId'];
+ $ADAT['tanarok'] = getTanarokByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+ $ADAT['jegyek'] = getDiakZarojegyek($ADAT['diakIds'], $ADAT['szemeszterAdat']['tanev'], $ADAT['szemeszterAdat']['szemeszter']);
+ $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+
+ /* A pdfBizonyítvány ezeket használja: szemeszterAdat|intezmeny|diakok|jegyek|hianyzas|osztaly|targyAdat|targyak*/
+ $file = fileNameNormal('bizonyitvany-'.$ADAT['szemeszterAdat']['tanev'].'-'.$ADAT['szemeszterAdat']['szemeszter'].'-'
+ .str_replace('/','',str_replace('.','',$ADAT['osztaly']['osztalyJel']))); // 9/ Ny.a --> 9Nya
+ if (exportBizonyitvany($file, $ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/export/bizonyitvany&file='.$file.'.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime']));
+ } else {
+ unset($osztalyId);
+ }
+
+ }
+ }
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') ,'post' => array('sorrendNev', 'osztalyId'));
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'tanev' => $ADAT['szemeszterAdat']['tanev'], 'post' => array('szemeszterId', 'sorrendNev'));
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/bizonyitvany.php b/mayor-orig/www/policy/private/naplo/export/bizonyitvany.php
new file mode 100644
index 00000000..b87c8a05
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/bizonyitvany.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putExportForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/diakExport-pre.php b/mayor-orig/www/policy/private/naplo/export/diakExport-pre.php
new file mode 100644
index 00000000..eb3d95e5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/diakExport-pre.php
@@ -0,0 +1,68 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['formatum'] = isset($_POST['html'])?'html':(isset($_POST['csv'])?'csv':(isset($_POST['xml'])?'xml':null));
+ if (is_null($ADAT['formatum'])) $ADAT['formatum'] = readVariable($_POST['formatum'], 'enum', null, array('csv','xml','html'));
+ $_POST['formatum'] = $ADAT['formatum'];
+ if ($ADAT['formatum'] == 'xml') {
+ $ADAT['mime'] = 'application/vnd.ms-excel';
+ $ADAT['formatum'] = 'xml';
+ }
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', date('Y-m-d'));
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev); else $TA = $_TANEV;
+
+ $ret = getTableFields('diak','naplo_intezmeny',array('osztalyJel','diakNaploSorszam'), array('withType' => true));
+ $ADAT['fields'] = $ret['names'];
+ $ADAT['types'] = $ret['types']; $ADAT['types']['osztalyJel'] = 'string'; $ADAT['types']['diakNaploSorszam'] = 'int';
+ $ret = getTableFields('szulo','naplo_intezmeny',array(), array('withType' => true));
+ $szuloMezok = $ret['names'];
+ foreach (array('anya','apa','gondviselő','nevelő') as $szulo) {
+ foreach ($szuloMezok as $attr => $attrNev) {
+ $ADAT['fields'][ekezettelen($szulo).ucfirst($attr)] = ucfirst($szulo).' '.kisbetus($attrNev);
+ $ADAT['types' ][ekezettelen($szulo).ucfirst($attr)] = $ret['types'][ $attrNev ];
+ }
+ }
+ $ADAT['fields']['telephelyId'] = 'telephelyId';
+ $ADAT['types' ]['telephelyId'] = 'int';
+
+ if (!is_array($_POST['mezok'])) $_POST['mezok'] = $exportFormatum['alapértelmezett'];
+ foreach ($_POST['mezok'] as $i => $attr) {
+ if (isset($ADAT['fields'][$attr])) $ADAT['mezok'][$attr] = $ADAT['fields'][$attr];
+ }
+
+ if (isset($ADAT['formatum'])) {
+ $ADAT['export'] = diakExport($ADAT);
+ if ($ADAT['formatum'] != 'html') {
+
+ if (is_array($ADAT['export']) && createFile($ADAT)) {
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=export&file=diakExport.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime']));
+ } else {
+ echo 'HIBA';
+ }
+ }
+ }
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array('osztalyId'));
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array('osztalyId', 'tanev'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])),
+ 'igDt' => $TA['zarasDt'],
+ );
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('tanev', 'dt','mezok','formatum'));
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/diakExport.php b/mayor-orig/www/policy/private/naplo/export/diakExport.php
new file mode 100644
index 00000000..30066c3f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/diakExport.php
@@ -0,0 +1,12 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putDiakExportForm($ADAT);
+ if (is_array($ADAT['export']) && count($ADAT['export']) > 0) {
+ putDiakTabla($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport-pre.php b/mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport-pre.php
new file mode 100644
index 00000000..0e0bd72f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport-pre.php
@@ -0,0 +1,132 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/osztalyozo/stat.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/targy.php');
+
+ $INTEZMENY = getIntezmenyByRovidnev(__INTEZMENY);
+
+ {
+ $q = "SELECT targyId,kirTargyId FROM targy WHERE kirTargyId IS NOT NULL";
+ $TARGYID2KIR = db_query($q, array('fv'=>'...','modul'=>'naplo_intezmeny','result'=>'assoc','keyfield'=>'targyId'));
+ }
+
+// $ADAT['magatartasIds'] = getMagatartas();
+// $ADAT['szorgalomIds']= getSzorgalom();
+
+ // melyik szemeszter adatait nézzük
+ if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '') {
+ $szemeszterId = $_POST['szemeszterId'];
+ } elseif (!isset($_POST['szemeszterId'])) {
+ for ($i = 1; $i <= count($_TANEV['szemeszter']); $i++) {
+ if (
+ strtotime($_TANEV['szemeszter'][$i]['kezdesDt']) <= _TIME
+ && strtotime($_TANEV['szemeszter'][$i]['zarasDt']) >= _TIME
+ ) {
+ $_POST['szemeszterId'] = $szemeszterId = $_TANEV['szemeszter'][$i]['szemeszterId'];
+ break;
+ }
+ }
+ }
+ $ADAT['sorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', 'bizonyítvány', array('napló','bizonyítvány','anyakönyv','ellenőrző','egyedi'));
+
+ if (isset($_POST['osztalyId']) && $_POST['osztalyId'] != '') { $osztalyId = $_POST['osztalyId']; }
+ elseif (__OSZTALYFONOK && !isset($_POST['osztalyId'])) { $osztalyId = $_OSZTALYA[0]; $_POST['osztalyId'] = $osztalyId; }
+
+ if (isset($szemeszterId)) {
+
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ define('__ZARO_SZEMESZTER', $ADAT['szemeszterAdat']['szemeszter'] == $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']);
+
+ $tanev = $ADAT['szemeszterAdat']['tanev'];
+
+ $Osztalyok = getOsztalyok($ADAT['szemeszterAdat']['tanev']);
+ if (isset($osztalyId)) {
+
+ define('__OSZTALYFONOKE', (__OSZTALYFONOK === true && in_array($osztalyId, $_OSZTALYA)));
+ // $ADAT['evfolyamJel'] = getEvfolyamJelByOsztalyId($osztalyId,$tanev);
+ $ADAT['evfolyamJel'] = getEvfolyamJel($osztalyId,$tanev);
+
+ // intézmény adatok
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // osztály statisztikák
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+ // Az adott szemeszterben létezik-e az osztály
+ for ($i = 0; ($i < count($Osztalyok) && $Osztalyok[$i]['osztalyId'] != $osztalyId); $i++);
+ if ($i < count($Osztalyok)) {
+ $ADAT['diakok'] = getDiakok(array(
+ 'result' => 'assoc', 'osztalyId' => $osztalyId, 'tanev' => $ADAT['szemeszterAdat']['tanev'],
+ 'tolDt' => $ADAT['szemeszterAdat']['zarasDt'], 'igDt' => $ADAT['szemeszterAdat']['zarasDt'],
+ 'extraAttrs' => 'oId'
+ )
+
+ );
+ $ADAT['diakIds'] = array_keys($ADAT['diakok']);
+ $ADAT['targyak'] = getTargyakByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat'], $osztalyId, $sorrendNev);
+ //for ($i = 0; $i < count($ADAT['targyak']); $i++) $ADAT['targyAdat'][ $ADAT['targyak'][$i]['targyNev'] ] = $ADAT['targyak'][$i]['targyId'];
+ $ADAT['jegyek'] = getDiakZarojegyekByEvfolyamJel($ADAT['diakIds'], $ADAT['evfolyamJel'], $ADAT['szemeszterAdat'], array('felevivel'=>true));
+// $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+//var_dump($Osztalyok);
+ /* A pdfBizonyítvány ezeket használja: szemeszterAdat|intezmeny|diakok|jegyek|hianyzas|osztaly|targyAdat|targyak*/
+ $FORPRINT['file'] = fileNameNormal('kir-'.$ADAT['szemeszterAdat']['tanev'].'-'.$ADAT['szemeszterAdat']['szemeszter'].'-'.str_replace('.','',$ADAT['osztaly']['osztalyJel']));
+ $FORPRINT['base']['feleviE'] = ($ADAT['szemeszterAdat']['szemeszter']==1)?'true':'false'; // szöveggel
+ $FORPRINT['base']['omkod'] = substr($INTEZMENY['OMKod'],-6);
+ /* osztály adatok */
+ $FORPRINT['base']['kirOsztalyJelleg'] = $ADAT['osztaly']['kirOsztalyJellegId'];
+ $FORPRINT['base']['telephelyId'] = str_pad($ADAT['osztaly']['telephelyId'],3,0,STR_PAD_LEFT);
+ $FORPRINT['base']['tanevJel'] = $tanev.'/'.($tanev+1);
+ $FORPRINT['base']['evfolyamJel'] = $ADAT['evfolyamJel'];
+ $FORPRINT['base']['diak'] = $ADAT['diakIds'];
+
+ for ($i=0; $i<count($ADAT['diakIds']); $i++) {
+ $_diakId = $ADAT['diakIds'][$i];
+ $FORPRINT['diak'][$_diakId]['oId'] = $ADAT['diakok'][$ADAT['diakIds'][$i]]['oId'];
+// if (in_array($ADAT['jegyek']...
+ if (is_array($ADAT['jegyek'][$_diakId])) {
+ foreach ($ADAT['jegyek'][$_diakId] as $_targyId => $A) {
+ if (is_array($TARGYID2KIR[$_targyId])) {
+ $FORPRINT['diak'][$_diakId]['targy'][] = array(
+ 'kirTargyKod'=> $TARGYID2KIR[$_targyId]['kirTargyId'],
+ 'jegy'=>intval($A[0]['jegy']) // igaziból jegyTipus - tól függő a megjelenés
+ );
+ }
+ }
+ }
+ }
+ nyomtatvanyKeszites($FORPRINT,'kirBizonyitvanyExport');
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/export/kirBizonyitvanyExport&file='.$FORPRINT['file'].'.xml'));
+ } else {
+ unset($osztalyId);
+ }
+
+ }
+ }
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') ,'post' => array( 'osztalyId'));
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'tanev' => $ADAT['szemeszterAdat']['tanev'], 'post' => array('szemeszterId'));
+
+
+
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport.php b/mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/kirBizonyitvanyExport.php
diff --git a/mayor-orig/www/policy/private/naplo/export/kreta-pre.php b/mayor-orig/www/policy/private/naplo/export/kreta-pre.php
new file mode 100644
index 00000000..89129607
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/kreta-pre.php
@@ -0,0 +1,176 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'] = 'page:insufficient_access';
+} else {
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+ // !!!!!!!!!!!!!!!!!!!!!!!!!!!!! XROSS-LINK
+ require_once('include/modules/naplo/intezmeny/tankorTanarHozzarendeles.php'); // !!! link!
+
+ $ADAT['telephelyId'] = $telephelyId = readVariable($_POST['telephelyId'], 'id');
+ if (isset($telephelyId)) $filter = array('telephelyId'=>$telephelyId);
+
+ $ADAT['csakOratervi'] = readVariable($_POST['csakOratervi'], 'bool', false);
+
+ if ($ADAT['csakOratervi']==true) {
+ $q = "select tankorTipusId from tankorTipus WHERE oratervi='óratervi'";
+ $exportalandoTankorTipusIdk = db_query($q, array('fv'=>'','modul'=>'naplo_intezmeny','result'=>'idonly'));
+ // array(1,2,3,11,13,14);
+ } else {
+ $q = "select tankorTipusId from tankorTipus";
+ $exportalandoTankorTipusIdk = db_query($q, array('fv'=>'','modul'=>'naplo_intezmeny','result'=>'idonly'));
+ }
+
+ // teszt
+ // $q = "select *,REVERSE(SUBSTRING(SUBSTRING_INDEX(REVERSE(tankorNev),'(',1) FROM 2)) AS tankorId FROM kretaEttfEllenor";
+ // $ADAT['kretaEllenor'] = db_query($q, array('fv'=>'','modul'=>'naplo_intezmeny','result'=>'multiassoc','keyfield'=>'tankorId'));
+ //dump($ADAT['kretaEllenor']);
+
+ /* EREDETI KIEMELHETŐ KÓD */
+ $ADAT['szuro'] = array(
+ 'osztalyok' => getOsztalyok(),
+ 'munkakozossegek' => getMunkakozossegek(),
+ 'tanarok' => getTanarok(array('extraAttrs'=>'szuletesiIdo')),
+ 'targyak' => getTargyak(),
+
+ 'osztalyIds'=>array_keys(reindex(getOsztalyok(__TANEV,$filter),array('osztalyId'))),
+// 'mkIds'=>readVariable($_POST['mkIds'],'id',array()),
+// 'tanarIds'=>array_keys(reindex(getTanarok(array('tanev'=>__TANEV)),array('tanarId'))),
+// 'targyIds'=>array_keys(reindex(getTargyak(array('tanev'=>__TANEV)),array('targyId'))),
+ );
+
+ /* MÁSOLAT */
+ foreach ($ADAT['szuro']['targyak'] as $idx => $tAdat) $ADAT['targyAdat'][ $tAdat['targyId'] ] = $tAdat;
+
+ // A szűrőben beállítottnak megefelő tankörök lekérése
+ $ADAT['tankorok'] = getTankorokBySzuro($ADAT['szuro']);
+ $ADAT['szuro']['tankorTargyIds'] = array();
+ foreach ($ADAT['tankorok'] as $ids => $tAdat)
+ if (!in_array($tAdat['targyId'], $ADAT['szuro']['tankorTargyIds']))
+ $ADAT['szuro']['tankorTargyIds'][] = $tAdat['targyId'];
+ $ADAT['tanarok'] = getTanarokBySzuro($ADAT['szuro']);
+ // stat
+ $ADAT['keszTankorDb'] = 0;
+ foreach ($ADAT['tankorok'] as $tAdat) if (is_array($tAdat['tanarIds']) && count($tAdat['tanarIds'])>0) $ADAT['keszTankorDb']++;
+ $ADAT['tankorStat'] = getTankorStat();
+ /* EREDETI KOD VEGE */
+
+ if ($action=='kretaTanarExport') {
+ $TANAROK = getTanarok(array('extraAttrs'=>'oId,viseltNevElotag,viseltCsaladinev,viseltUtonev,beDt,szuletesiHely,szuletesiIdo,szuleteskoriUtonev,szuleteskoriCsaladinev,szuleteskoriNevElotag'));
+/* $EXPORT[0] = array('Oktazon','Viselt név előtag','Viselt név vezetéknév','Viselt név keresztnév','Viselt név névsorrend',
+ 'Anyja neve előtag','Anyja neve vezetéknév','Anyja neve keresztnév', 'Anyja neve névsorrend',
+ 'Születési dátum', 'Születési hely', 'Születési ország','1. állampolgárság','2. állampolgárság',
+ 'Végzettség szintje','Állandó lakcím', 'irányító szám','Állandó lakcím település','Állandó lakcím közterület név',
+ 'Állandó lakcím közterület jelleg', 'Állandó lakcím házszám','Állandó lakcím pontosítás',
+ 'Tartózkodási cím irányító szám','Tartózkodási cím település','Tartózkodási cím közterület név',
+ 'Tartózkodási cím közterület jelleg','Tartózkodási cím házszám','Tartózkodási cím pontosítás',
+ 'Szakmai gyakorlati évek száma','E-mail cím','Közoktatási intézmény neve','Közoktatási intézmény székhelye',
+ 'OM azonosító','Kiemelt feladatellátási hely','Vezetői beosztás','Jogviszony létrejötte','Jogviszony megszűnte',
+ 'Jogviszony típusa','Besorolási kategória','Fizetési osztály','Pótlék',
+ 'Munkakör kategória','Munkakör','Tantárgy','Szakképzettségek',
+ 'Tudományos fokozatok','Pedagógus szakvizsgák','Egyéb továbbképzések');
+*/
+ $j = 1;
+ for ($i=0; $i<count($TANAROK); $i++) {
+ $EXPORT[$j][]=$TANAROK[$i]['oId'];
+ $EXPORT[$j][]=$TANAROK[$i]['viseltNevElotag'];
+ $EXPORT[$j][]=$TANAROK[$i]['viseltCsaladinev'];
+ $EXPORT[$j][]=$TANAROK[$i]['viseltUtonev'];
+ $EXPORT[$j][]=''; // névsorrend
+ $EXPORT[$j][]=''; // Anyja Neve
+ $EXPORT[$j][]=''; // Anyja Neve
+ $EXPORT[$j][]=''; // Anyja Neve
+ $EXPORT[$j][]=''; // Anyja Neve
+ $EXPORT[$j][]=strval($TANAROK[$i]['szuletesiIdo']);
+ $EXPORT[$j][]=strval($TANAROK[$i]['szuletesiHely']);
+ //for ($_x=count($EXPORT[$j]); $_x<count($EXPORT[0]); $_x++) $EXPORT[$j][]='';
+ $j++;
+ }
+ $ADAT['EXPORT'] = $EXPORT;
+ //dump($ADAT);
+ $ADAT['formatum'] = readVariable($_POST['formatum'], 'enum', null, array('csv','ods','xml'));
+ if ($ADAT['formatum'] == 'xml') $ADAT['mime'] = 'application/vnd.ms-excel';
+ if (isset($ADAT['formatum'])) {
+ $file = _DOWNLOADDIR.'/private/naplo/export/kreta_mayor_TANAR_'.date('Ymd');
+ if (exportKretaTanarAdat($file, $ADAT)) {
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/export/&file='.$file.'.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime']));
+ }
+ }
+
+ } elseif ($action=='tankorTanarExport') {
+
+ /* KRÉTA tanárok */
+
+ // echo 'A KIR rendszerből az alábbi módon letöltött táblázat a megfelelő: A KIR rendszerben az Alkalmazott keresése menüpontra kattintva, a Keresés ablakban a keresés találatait az Összes találat listába gombbal rakja át a Kérelemhez felvett személyek ablakba. Az ott található lista alján kattintson az Adatok exportálása gombra. A felugró ablakban válassza ki mindhárom listát (Személyes adatok, Jogviszony adatok, Képzettségek), majd töltse le a dokumentumot.';
+ /* KRÉTA hagyományos táblázat */
+ /*
+ Az első oszlopba (A oszlop) az Osztály nevét kell beírni, abban az esetben, ha a tanóra a teljes
+ osztálynak kerül megtartásra.
+ A második oszlopba (B oszlop) a Csoport neveket kell beírni, abban az esetben, ha a tanóra
+ csoportbontásban kerül megtartásra.
+ A harmadik oszlopba (C oszlop) a Tantárgy nevét kell megadni.
+ A negyedik, Csoportbontás nevű oszlopban (D oszlop) lehet jelezni, ha a tanóra
+ csoportbontásban kerül megtartásra. Ennek jelzése az előzetes tantárgyfelosztás esetén nem
+ kötelező!
+ Az ötödik oszlopba (E oszlop) az egyes pedagógusok adott tantárgyra, ill. osztályra/csoportra
+ vonatkozó heti óraszámát kell megadni.
+ Az utolsó oszlop (F oszlop) a pedagógus nevét tartalmazza!
+ */
+
+ $q = "select tanarId FROM tanar WHERE CONCAT(viseltNevElotag,viseltCsaladinev,viseltUtonev) = (select CONCAT(viseltNevElotag,viseltCsaladinev,viseltUtonev) AS nev from tanar GROUP BY nev HAVING count(*)>1)";
+ $utkozoNevuTanarok = db_query($q, array('fv'=>'','modul'=>'naplo_intezmeny','result'=>'assoc','keyfield'=>'tanarId'));
+ $TANARADAT = (reindex($ADAT['szuro']['tanarok'],array('tanarId')));
+ // schema
+ $EXPORT[0][] = 'Osztály';
+ $EXPORT[0][] = 'Csoport';
+ $EXPORT[0][] = 'Tantárgy';
+ $EXPORT[0][] = 'Óraszám';
+ $EXPORT[0][] = 'Tanár';
+ // -------
+ $j = 1;
+ for ($i=0; $i<count($ADAT['tankorok']); $i++) {
+ if ($ADAT['tankorok'][$i]['bontasOk']===false) {
+ $_SESSION['alert'][] = 'info:tankör bontás hiba:'.$ADAT['tankorok'][$i]['tankorNev'];
+ //dump($ADAT['tankorok'][$i]);
+ // ha azt szeretnénk, hogy ne legyenek benne a "hibás" (bontasOk===false), akkor ez kell: } else {
+ }
+ if ($ADAT['tankorok'][$i]['hetiOraszam'] == 0) continue; // a heti nullás órákat kihagyjuk
+ if (!in_array($ADAT['tankorok'][$i]['tankorTipusId'],$exportalandoTankorTipusIdk)) continue;
+ for ($t=0; $t<count($ADAT['tankorok'][$i]['tanarIds']); $t++) {
+ $_tanarId = $ADAT['tankorok'][$i]['tanarIds'][$t];
+ $_szulDt = $TANARADAT[intval($_tanarId)][0]['szuletesiIdo'];
+ $_tanarNev = $TANARADAT[intval($_tanarId)][0]['tanarNev'];
+ $EXPORT[$j][] = ''; // A oszlop: egész osztály
+ $EXPORT[$j][] = $ADAT['tankorok'][$i]['tankorNev'] . ' ('.$ADAT['tankorok'][$i]['tankorId'].')'; // B oszlop: csoport név
+ $EXPORT[$j][] = $ADAT['targyAdat'][ $ADAT['tankorok'][$i]['targyId'] ]['targyNev']; // C oszlop: tantárgy neve
+ // $EXPORT[$j][] = ''; // D oszlop: TRUE/FALSE???
+ $EXPORT[$j][] = $ADAT['tankorok'][$i]['hetiOraszam']/count($ADAT['tankorok'][$i]['tanarIds']); // E oszlop: heti óraszám
+ if (is_array($utkozoNevuTanarok[$_tanarId]) && $_szulDt != '0000-00-00' && $_szulDt != '') $_tanarNev .= ' ('.$_szulDt.')'; // E oszlop: pedagógus neve
+ $EXPORT[$j][] = $_tanarNev; // F oszlop
+ $j++;
+ }
+ }
+ $ADAT['EXPORT'] = $EXPORT;
+
+ $ADAT['formatum'] = readVariable($_POST['formatum'], 'enum', null, array('csv','ods','xml'));
+ if ($ADAT['formatum'] == 'xml') $ADAT['mime'] = 'application/vnd.ms-excel';
+ if (isset($ADAT['formatum'])) {
+ $file = _DOWNLOADDIR.'/private/naplo/export/kreta_ETTF_telephely'.intval($telephelyId).'_'.date('Ymd');
+ if (exportTankorTanar($file, $ADAT)) {
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/export/&file='.$file.'.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime']));
+ }
+ }
+ } // end of tankorTanarExport
+
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ getToolParameters();
+
+}
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/kreta.php b/mayor-orig/www/policy/private/naplo/export/kreta.php
new file mode 100644
index 00000000..ea276fd1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/kreta.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ echo '<img src="skin/classic/module-naplo/img/io/kreta.svg" style="height:50px; padding:10px; display:table-cell; margin:auto;"/>';
+ putKretaTanarExportForm($ADAT);
+ putKretaTankorTanarExportForm($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/export/sulix-pre.php b/mayor-orig/www/policy/private/naplo/export/sulix-pre.php
new file mode 100644
index 00000000..c0e961c2
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/sulix-pre.php
@@ -0,0 +1,26 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/session/search/searchAccount.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ if ($action == 'sulixExport') {
+ $ADAT['diak'] = getDiakAccounts();
+ $ADAT['tanar'] = getTanarAccounts();
+ if (createTGZ($ADAT)) {
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/export/sulix&file=mayor2sulix.tgz&mimetype=text/csv'));
+ }
+ }
+
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/export/sulix.php b/mayor-orig/www/policy/private/naplo/export/sulix.php
new file mode 100644
index 00000000..b87c8a05
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/sulix.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putExportForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam-pre.php b/mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam-pre.php
new file mode 100644
index 00000000..addd994f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam-pre.php
@@ -0,0 +1,106 @@
+<?php
+if (_RIGHTS_OK !== true) die();
+if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'] = 'page:insufficient_access';
+} else {
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+
+
+ $lr = db_connect('naplo_intezmeny');
+
+ $OSZTALYOK = getOsztalyok();
+ $TANAROK = getTanarok();
+ $TARGYAK = getTargyak();
+ $TARGYAK = reindex($TARGYAK,array('targyId'));
+//dump($OSZTALYOK);
+ for ($i=0; $i<count($OSZTALYOK); $i++) {
+ $osztalyIdk[] = $OSZTALYOK[$i]['osztalyId'];
+ }
+
+ $q = "SELECT tankorId, count(szemeszter), avg(oraszam), sum(oraszam)/count(szemeszter) AS szummaOra, targyId from tankorSzemeszter
+ LEFT JOIN tankor USING (tankorId)
+ WHERE oraszam!=0 AND tanev=".__TANEV.' GROUP BY tankorId';
+ $r = db_query($q, array('modul'=>'naplo_intezmeny','result'=>'indexed'));
+// dump($r);
+ for ($i=0; $i<count($r); $i++) {
+ $tankorAdat = $r[$i];
+ $tankorId = $tankorAdat['tankorId'];
+ //dump($tankorAdat);
+ ($T_OSZTALY = getTankorOsztalyaiByTanev($tankorId,__TANEV, null, $lr));
+ ($T_TANAR = getTankorTanaraiByInterval($tankorId,array('tanev'=>__TANEV),$lr));
+ if (count($T_TANAR)==0) 'HIBÁS TANKÖR'.dump($tankorAdat);
+ $ADAT[$T_TANAR[0]['tanarId']][$tankorAdat['targyId']][$T_OSZTALY[0]['osztalyId']][] = $tankorAdat['szummaOra'];
+ if (!in_array($T_TANAR[0]['tanarId'].'_'.$tankorAdat['targyId'],$SOR)) $SOR[] = $T_TANAR[0]['tanarId'].'_'.$tankorAdat['targyId'];
+ }
+
+ db_close($lr);
+
+ for ($i=0; $i<count($TANAROK); $i++) {
+ $tanarId = $TANAROK[$i]['tanarId'];
+ $TANAR_ADATOK[$tanarId] = $TANAROK[$i];
+ }
+
+ /* HEADER */
+ $EXPORT[0][] = 'Név';
+ $EXPORT[0][] = 'MaYoR Tanár Id';
+ $EXPORT[0][] = 'MaYoR Tárgy név';
+ $EXPORT[0][] = 'MaYoR Tárgy Id';
+ $EXPORT[0][] = 'MaYoR Státusz';
+ $EXPORT[0][] = 'MaYoR heti kötelező óraszám';
+ $EXPORT[0][] = 'MaYoR heti munkaóra';
+ for ($i=0; $i<count($OSZTALYOK); $i++) {
+// $osztalyIdk[] = $OSZTALYOK[$i]['osztalyId'];
+ $EXPORT[0][] = $OSZTALYOK[$i]['osztalyJel'];
+ }
+ $EXPORT[0][] = 'MaYoR Sorösszeg';
+
+ for ($i=0; $i<count($SOR); $i++) {
+ list($tanarId,$targyId) = explode('_',$SOR[$i]);
+ $tanarTargyak = array();
+ foreach($ADAT[$tanarId] as $_targyId => $REST) {
+ $tanarTargyak[] = $_targyId;
+ }
+ // bázis adatok
+ $EXPORT[($i+1)][] = $TANAR_ADATOK[$tanarId]['tanarNev'];
+ $EXPORT[($i+1)][] =$tanarId;
+ $EXPORT[($i+1)][] =$TARGYAK[$targyId][0]['targyNev'];
+ $EXPORT[($i+1)][] =$targyId;
+ $EXPORT[($i+1)][] =$TANAR_ADATOK[$tanarId]['statusz'];
+ $EXPORT[($i+1)][] =$TANAR_ADATOK[$tanarId]['hetiKotelezoOraszam'];
+ $EXPORT[($i+1)][] =$TANAR_ADATOK[$tanarId]['hetiMunkaora'];
+
+ $tanarSzum = 0;
+ // osztályonként
+ for ($j=0; $j<count($OSZTALYOK); $j++) {
+ $osztalyAdat = $OSZTALYOK[$j];
+ $osztalyId = $osztalyAdat['osztalyId'];
+ $SZUM = 0;
+ for ($k=0; $k<count($ADAT[$tanarId][$targyId][$osztalyId]); $k++) {
+ $SZUM += $ADAT[$tanarId][$targyId][$osztalyId][$k];
+ }
+ $EXPORT[($i+1)][] =$SZUM;
+ $tanarSzum += $SZUM;
+ }
+ $EXPORT[($i+1)][] = "=".$tanarSzum;
+ }
+ $ADAT['EXPORT'] = $EXPORT;
+
+
+
+ $ADAT['formatum'] = readVariable($_POST['formatum'], 'enum', null, array('csv','ods','xml'));
+ if ($ADAT['formatum'] == 'xml') $ADAT['mime'] = 'application/vnd.ms-excel';
+ if (isset($ADAT['formatum'])) {
+ $file = _DOWNLOADDIR.'/private/naplo/export/tanarOsztalyOraszam'.'_'.date('Ymd');
+ if (exportTanarOsztalyOraszam($file, $ADAT)) {
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/export/&file='.$file.'.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime']));
+ }
+ }
+
+}
+
+dump($EXPORT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam.php b/mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam.php
new file mode 100644
index 00000000..a31e1b9f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/tanarOsztalyOraszam.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+// dump($ADAT);
+ putTanarOsztalyOraszamForm($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/export/tantargyFelosztas-pre.php b/mayor-orig/www/policy/private/naplo/export/tantargyFelosztas-pre.php
new file mode 100644
index 00000000..9de0f8f6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/tantargyFelosztas-pre.php
@@ -0,0 +1,61 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/kepesites.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['formatum'] = readVariable($_POST['formatum'], 'enum', null, array('csv','ods','xml'));
+ if ($ADAT['formatum'] == 'xml') $ADAT['mime'] = 'application/vnd.ms-excel';
+
+ if (isset($ADAT['formatum'])) {
+
+ // tanárok
+ $ADAT['tanarok'] = getTanarok(array('extraAttrs'=> 'hetiKotelezoOraszam, besorolas'));
+ $ADAT['tanarKepesitesIds'] = getTanarKepesitesIds();
+ $ADAT['kepesitesAdat'] = getKepesitesek(array('result' => 'assoc'));
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ $ADAT['tanarAdat'][ $ADAT['tanarok'][$i]['tanarId'] ] = $ADAT['tanarok'][$i];
+ $ADAT['tanarAdat'][ $ADAT['tanarok'][$i]['tanarId'] ]['targyIds'] = getTargyIdsByTanarId($ADAT['tanarok'][$i]['tanarId']);
+ }
+ unset($ADAT['tanarok']);
+ // tankörök
+ $ADAT['tankorok'] = getTankorOraszamok();
+ foreach ($ADAT['tankorok'] as $idx => $tAdat) {
+ $tankorId = $tAdat['tankorId'];
+ $targyId = $tAdat['targyId'];
+ $osztalyId = $tAdat['osztalyIds'][0]; // mi legyen a több osztályos tankörökkel???
+ $szemeszter = $tAdat['szemeszter'];
+ $tanarDb = count($tAdat['tanarIds']);
+ $oraszam = $tAdat['oraszam'] / $tanarDb;
+ foreach ($tAdat['tanarIds'] as $tanarId) {
+ $ADAT['export'][$tanarId][$targyId][$osztalyId][$szemeszter] += $oraszam;
+ }
+ }
+ // tárgyak
+ $ADAT['targyak'] = getTargyak();
+ foreach ($ADAT['targyak'] as $idx => $tAdat) $ADAT['targyAdat'][ $tAdat['targyId'] ] = $tAdat;
+ unset($ADAT['targyak']);
+ // osztalyok
+ $ADAT['osztalyok'] = getOsztalyok();
+
+//dump($ADAT['export']);
+
+ $file = fileNameNormal('tantargyFelosztas-'.__TANEV.'-'.date('Ymd'));
+ if (exportTantargyFelosztas($file, $ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/export/tantargyFelosztas&file='.$file.'.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime']));
+
+ }
+
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/export/tantargyFelosztas.php b/mayor-orig/www/policy/private/naplo/export/tantargyFelosztas.php
new file mode 100644
index 00000000..c75ffff4
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/export/tantargyFelosztas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putExportForm($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/elmaradas-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/elmaradas-pre.php
new file mode 100644
index 00000000..ea3a2959
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/elmaradas-pre.php
@@ -0,0 +1,17 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ $Tanarok = getTanarok(array('tanev' => __TANEV, 'beDt'=>$_TANEV['kezdesDt'],'kiDt'=>$_TANEV['zarasDt'],'result' => 'assoc'));
+ $Elmaradas = getHaladasiElmaradas();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/elmaradas.php b/mayor-orig/www/policy/private/naplo/haladasi/elmaradas.php
new file mode 100644
index 00000000..8b4019bf
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/elmaradas.php
@@ -0,0 +1,12 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Elmaradas, $Tanarok;
+
+ if (
+ (is_array($Elmaradas['lezart']) && count($Elmaradas['lezart']) > 0)
+ || (is_array($Elmaradas['beirando']) && count($Elmaradas['beirando']) > 0)
+ ) putElmaradas($Elmaradas, $Tanarok);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/elszamolas-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/elszamolas-pre.php
new file mode 100644
index 00000000..37078c30
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/elszamolas-pre.php
@@ -0,0 +1,59 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/share/date/names.php');
+
+ $dt = readVariable($_POST['dt'],'date');
+ $igDt = readVariable($_POST['igDt'],'date');
+ $tolDt = readVariable($_POST['tolDt'],'date');
+ if (!isset($dt) && !isset($tolDt) && !isset($igDt)) {
+ $dt = date('Y-m-d',strtotime('Saturday', strtotime(date('Y-m-d'))));
+ $igDt = $dt;
+ $tolDt = getTanitasiNapVissza(5,$dt);;
+ } elseif (isset($dt)) {
+ $igDt = $dt;
+ $tolDt = getTanitasiNapVissza(5,$dt);;
+ } else {
+ $igDt = readVariable($_POST['igDt'],'date',$_TANEV['zarasDt']);
+ $tolDt = readVariable($_POST['tolDt'],'date',$_TANEV['kezdesDt']);
+ }
+
+ if (__VEZETOSEG || __NAPLOADMIN) {
+ $ADAT = getElszamolas($tolDt, $igDt);
+ } elseif (defined('__USERTANARID')) {
+ $ADAT = getElszamolas($tolDt, $igDt, __USERTANARID);
+ } else {
+ // hiba
+ }
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['napTipusok'] = getNapTipusok();
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella',
+ // 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 7,
+ 'tolDt' => date('Y-m-d', strtotime('Saturday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => date('Y-m-d', strtotime('next Saturday', strtotime($_TANEV['zarasDt']))),
+ 'override' => true
+ );
+ $TOOL['datumTolIgSelect'] = array(
+ 'tipus' => 'sor',
+ 'tolParamName' => 'tolDt',
+ 'igParamName' => 'igDt',
+ 'tolDt' => $_TANEV['kezdesDt'],
+ 'igDt' => $_TANEV['zarasDt'],
+// 'hanyNaponta' => 'havonta',
+ 'post' => array('tanarId', 'osztalyId', 'tankorId', 'sulyozas')
+ );
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/elszamolas.php b/mayor-orig/www/policy/private/naplo/haladasi/elszamolas.php
new file mode 100644
index 00000000..8e2635d6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/elszamolas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putElszamolas($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/haladasi-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/haladasi-pre.php
new file mode 100644
index 00000000..f6a59939
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/haladasi-pre.php
@@ -0,0 +1,387 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR && !__DIAK && !__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/oraModifier.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+ require_once('include/modules/naplo/share/hetes.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/share/date/names.php');
+
+
+ $ADAT['csakUres'] = $csakUres = readVariable($_POST['csakUres'],'bool',false,null);
+ $ADAT['teremId' ] = $teremId = readVariable($_POST['teremId'],'id');
+
+
+if ( $skin == 'ajax'
+ && $_TANEV['szemeszter'][1]['statusz'] == 'aktív'
+// Év végén komoly gond, ha nem tudják a kollégák az utolsó napok óráit beírni...
+// && ( __NAPLOADMIN || __VEZETOSEG || ((__TANAR || __VEZETOSEG ) && __FOLYO_TANEV))
+ && ( __NAPLOADMIN || __VEZETOSEG || ((__TANAR || __VEZETOSEG )))
+ && $action == 'haladasiNaploBeiras' && is_array($_POST['oraId'])
+) {
+ $_JSON['result'] = true; //default
+ $oraIds = readVariable($_POST['oraId'],'id');
+ $lr = db_connect('naplo');
+ for ($i = 0; $i < count($oraIds); $i++) {
+ if (is_numeric($oraIds[$i])) {
+ $oraId = $oraIds[$i];
+ $_ki = readVariable($_POST['K_'.$oraId], 'id', '');
+ $_leiras = readVariable($_POST['L_'.$oraId],'string', '');
+ $_csoportAdat = readVariable($_POST['M_'.$oraId], 'string', '');
+ if (isset($_POST['L_'.$oraId]))
+ $_JSON['result'] = $_JSON['result'] && updateHaladasiNaploOra($oraId, $_leiras, $_csoportAdat, $_ki, $lr);
+ }
+ }
+ // ez DUPlikátum, a nem ajaxnál is ezt tesszük ám!
+
+ $ORATOROL = readVariable($_POST['ORATOROL'],'id');
+ for ($i=0; $i<count($ORATOROL); $i++) {
+ if ($ORATOROL[$i]!='') {
+ oraElmarad($ORATOROL[$i],$lr);
+ }
+ }
+ // szintén DUP
+ $TEREMVALT = readVariable($_POST['TEREMVALT'],'string');
+ for ($i=0; $i<count($TEREMVALT); $i++) {
+ if ($TEREMVALT[$i]!='') {
+ //oraId_teremId
+ list($oraId,$teremId) = explode('_',$TEREMVALT[$i]);
+ haladasiTeremModositas($oraId,$teremId,$lr);
+ }
+ }
+
+ db_close($lr);
+} else {
+
+ // Egy tankör haladási naplójához
+ $tankorId = readVariable($_POST['tankorId'],'id',readVariable($_GET['tankorId'],'id'));
+
+ // Ha diák nézi, akkor csak a saját tanköreit láthatja
+ if (__DIAK) $diakId = __USERDIAKID;
+ else $diakId = readVariable($_POST['diakId'],'id');
+
+ $osztalyId = readVariable($_POST['osztalyId'],'id');
+
+ if (isset($diakId)) {
+ // A diák már nem határozza meg egyértelműen az osztályt! --> osztalyId-t nem állítunk - hagyjuk
+ if (isset($tankorId) and !tankorTagjaE($diakId, $tankorId)) {
+ unset($tankorId);
+ }
+ $ADAT['title'] = getDiakNevById($diakId);
+ } else {
+ if (isset($teremId)) {
+ } elseif (!isset($osztalyId)) {
+ if (!isset($tanarId)) $tanarId = readVariable($_POST['tanarId'],'id');
+ if (!isset($tanarId)) $tanarId = readVariable($_GET['tanarId'],'id');
+ if (!isset($tanarId) && __USERTANARID!==false && __TANAR) $tanarId = __USERTANARID;
+ define(__PLUSZBEIRHAT,
+ (__USERTANARID == $tanarId || __NAPLOADMIN===true || __VEZETOSEG===true)
+ );
+ }
+ }
+ if (!defined('__PLUSZBEIRHAT')) define('__PLUSZBEIRHAT',false);
+ /* ------------------------------------------------- */
+
+ // lapozás, tól-ig beállítás
+ if (!isset($tankorId)) {
+
+ // egy tanár ($tanarId) vagy osztály ($osztaly) összes órája --> lapozni kell
+ // reading sensitive data
+ $igDt = readVariable($_POST['igDt'], 'datetime', date('Y-m-d'));
+ $tolDt = readVariable($_POST['tolDt'], 'datetime');
+ $lapoz = readVariable($_POST['lapoz'], 'enum', null, array('<<','>>','nextWeek','prevWeek'));
+ $lapoz1 = readVariable($_POST['lapoz1'], 'enum', null, array('<<','>>','nextWeek','prevWeek'));
+
+ // set defaults ++
+// if (strtotime($igDt) > strtotime($_TANEV['zarasDt'])) $igDt = $_TANEV['zarasDt'];
+ $maxIgDt = date('Y-m-d', strtotime('next Saturday', strtotime($_TANEV['kovetkezoKezdesDt'])));
+ if (strtotime($igDt) > strtotime($maxIgDt)) $igDt = $maxIgDt;
+ elseif (strtotime($igDt) < strtotime($_TANEV['kezdesDt'])) $igDt = $_TANEV['kezdesDt'];
+ if (date('w', strtotime($igDt)) == 0) $igDt = date('Y-m-d',strtotime('-1 days',strtotime($igDt))); // Hogy vasárnap még a múltheti látszódjon
+ $eVas = date('Y-m-d',strtotime('Saturday',strtotime($igDt)));
+
+ if ($igDt == '') $igDt = $eVas;
+ if ($tolDt == '') $tolDt = $eHet = date('Y-m-d',strtotime('last Monday 02:00',strtotime($eVas)));
+
+ if (in_array($lapoz,array('<<','prevWeek')) or in_array($lapoz1,array('<<','prevWeek'))) {
+ $tolDt = date('Y-m-d',strtotime('last Monday 02:00',strtotime($eHet)));
+// $igDt = date('Y-m-d',strtotime('Saturday',strtotime($tolDt)));
+// Vasárnap
+ $igDt = date('Y-m-d',strtotime('Sunday',strtotime($tolDt)));
+ } elseif (in_array($lapoz,array('>>','nextWeek')) or in_array($lapoz1,array('>>','nextWeek'))) {
+ $tolDt = date('Y-m-d',strtotime('Monday 02:00',strtotime($eVas)));
+// $igDt = date('Y-m-d',strtotime('Saturday',strtotime($tolDt)));
+// Vasárnap
+ $igDt = date('Y-m-d',strtotime('Sunday',strtotime($tolDt)));
+ }
+ if ($csakUres || strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $tolDt = date('Y-m-d',strtotime($_TANEV['kezdesDt']));
+ // Ha ezt kiveszem, akkor mindig kirakja a teljes hetet, de a jövőbeli órákat nem lehet beírni!
+ // Itt a post értékét nem használjuk fel, csak vizsgáljuk.
+ if ((!isset($_POST['igDt']) || $_POST['igDt'] == '')&& strtotime($igDt) > time()) $igDt = date('Y-m-d');
+ define('_SHOW_DAYS_FROM',$tolDt);
+ define('_SHOW_DAYS_TO',$igDt);
+
+ } else {
+
+ // egy tanulócsoport órái (nem kell lapozni)
+ define('_SHOW_DAYS_FROM',date('Y-m-d',strtotime($_TANEV['kezdesDt'])));
+ define('_SHOW_DAYS_TO',date('Y-m-d'));
+
+ }
+
+ /* ------------------------------------------------- */
+ // Jogosultság ellenőrzés, tanév aktív-e...
+
+ // A megjelenítéshez
+ if (isset($osztalyId) && !isset($diakId)) {
+ $osztalyAdat = getOsztalyAdat($osztalyId);
+ $ADAT['title'] = $osztalyAdat['osztalyJel'].' ('.$osztalyAdat['osztalyfonok']['tanarNev'].')';
+ // hetesek miatt
+ $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['diakok'] = getDiakok(array('osztalyId' => $osztalyId));
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) $ADAT['diakNevek'][ $ADAT['diakok'][$i]['diakId'] ] = $ADAT['diakok'][$i]['diakNev'];
+ } elseif (isset($tanarId)) {
+ $ADAT['title'] = getTanarNevById($tanarId);
+ //DEPRECATED $ADAT['oraTerheles'] = getOraTerhelesByTanarId(array('tanarId'=>$tanarId,'tolDt'=>$tolDt,'igDt'=>$igDt));
+ $ADAT['oraTerheles'] = getOraTerhelesStatByTanarId(array('tanarId'=>$tanarId,'dt'=>_SHOW_DAYS_TO));
+ } elseif (isset($teremId)) {
+ $ADAT['title'] = $teremId;
+ } elseif (isset($tankorId)) {
+ $ADAT['title'] = 'A tankör haladási naplója';
+ }
+
+ if (
+ $_TANEV['szemeszter'][1]['statusz'] == 'aktív' // Csak aktív tanévben lehet módosítani
+ && (
+ __NAPLOADMIN // adminnak vagy
+ || __VEZETOSEG // vezetőség - tanév végi pótlásokhoz kell!
+ || ((__TANAR || __VEZETOSEG )) // A tanároknak, vezetőségi tagoknak
+// || ((__TANAR || __VEZETOSEG ) && __FOLYO_TANEV) // A tanév közben a tanároknak, vezetőségi tagoknak - az év végi napok problémásak így!
+ )
+ ) {
+ // action
+ if ($action == 'haladasiNaploBeiras' && (
+ is_array($_POST['oraId'])
+ ||is_array($_POST['UJORA'])
+ ||is_array($_POST['ORATOROL'])
+ )) {
+
+ $oraIds = readVariable($_POST['oraId'],'numeric');
+ // --FIXME :: a feldolgozást inkább végezzük máshol
+ $lr = db_connect('naplo');
+ for ($i = 0; $i < count($oraIds); $i++) {
+ if (is_numeric($oraIds[$i])) {
+ $oraId = $oraIds[$i];
+ // Ha egy órának több tanára is van, select
+ //EXPERIMENTAL: $_modTs = readVariable($_POST['T_'.$oraId], 'datetime', '');
+ $_ki = readVariable($_POST['K_'.$oraId], 'numeric', '');
+ $_leiras = readVariable($_POST['L_'.$oraId],'string', ''); //htmlspecialchars($_POST['L_'.$oraId])
+ $_csoportAdat = readVariable($_POST['M_'.$oraId], 'string', ''); //numeric:numeric ???
+ // paraméterek: $oraId, $leiras, $csoportAdat = 'csoportId:tankorId', $ki = '', $olr = '')
+ if (isset($_POST['L_'.$oraId])) // a biztonság kedvéért ellenőrizzük
+ updateHaladasiNaploOra($oraId, $_leiras, $_csoportAdat, $_ki, $lr);
+ //EXPERIMENTAL: updateHaladasiNaploOra($oraId, $_leiras, $_csoportAdat, $_ki, $_modTs, $lr);
+ }
+ }
+ $UJORA = readVariable($_POST['UJORA'],'string');
+ for ($i=0; $i<count($UJORA); $i++) {
+ if ($UJORA[$i]!='') {
+ //2013-08-30_2_egyéb_1
+ list($_dt,$_ora,$_tipus,$_feladatTipusId) = explode('_',$UJORA[$i]);
+ if (__VEZETOSEG===true || __NAPLOADMIN===true) {
+ $_eredet='órarend';
+ $_ki = $tanarId;
+ } else {
+ $_eredet = 'plusz';
+ $_ki = __USERTANARID;
+ }
+ $UJORAIDK[$_dt][$_ora] = ujOraFelvesz(array('dt'=>$_dt,'ora'=>$_ora,'ki'=> $_ki, 'tipus'=>$_tipus,'eredet'=>$_eredet,'feladatTipusId'=>$_feladatTipusId,'munkaido'=>'fennmaradó'),$lr);
+ }
+ }
+ //*** IDE JÖHET A BEÍRÁS
+ if (is_array($_POST)) foreach ($_POST as $_key => $_leiras) {
+ if (substr($_key,0,3) === 'LE_' && $_leiras!='' && is_numeric($UJORAIDK[$_dt][$_ora])) {
+ list($_rest, $_dt,$_ora) = explode('_',$_key);
+ updateHaladasiNaploOra($UJORAIDK[$_dt][$_ora],$_leiras,'',$tanarId,$lr);
+ }
+ }
+ //***
+ $ORATOROL = readVariable($_POST['ORATOROL'],'id');
+ for ($i=0; $i<count($ORATOROL); $i++) {
+ if ($ORATOROL[$i]!='') {
+ oraElmarad($ORATOROL[$i],$lr);
+ }
+ }
+ $TEREMVALT = readVariable($_POST['TEREMVALT'],'string');
+ for ($i=0; $i<count($TEREMVALT); $i++) {
+ if ($TEREMVALT[$i]!='') {
+ //oraId_teremId
+ list($oraId,$teremId) = explode('_',$TEREMVALT[$i]);
+ haladasiTeremModositas($oraId,$teremId,$lr);
+ }
+ }
+
+ db_close($lr);
+
+ } elseif ($action == 'hetesFelvetel' && isset($osztalyId) && ((__OSZTALYFONOK===true && in_array($osztalyId, $_OSZTALYA)) || __NAPLOADMIN===true )) {
+
+ $ADAT['dt'] = readVariable($_POST['dt'], 'date');
+ $ADAT['hetes'][1] = readVariable($_POST['hetes1'], 'numeric unsigned');
+ $ADAT['hetes'][2] = readVariable($_POST['hetes2'], 'numeric unsigned');
+ hetesFelvetel($ADAT);
+
+// } elseif (strtotime($igDt)<=strtotime('+1 week')) {
+// $_NAPOK = _genNapok($tolDt,$igDt);
+// for ($i=0; $i<count($_NAPOK); $i++) {
+// checkNaplo($_NAPOK[$i]);
+// }
+ }
+ }
+
+ if ((date('Y-m-d',strtotime($tolDt))==date('Y-m-d',strtotime('next Monday'))
+ || date('Y-m-d',strtotime($tolDt))==date('Y-m-d',strtotime('last Monday'))
+ ) && (__NAPLOADMIN || __VEZETOSEG)) {
+ $_NAPOK = _genNapok($tolDt,$igDt);
+ for ($i=0; $i<count($_NAPOK); $i++) {
+ checkNaplo($_NAPOK[$i]);
+ }
+
+ }
+ /* ------------------------------------------------- */
+
+// Ezt nem használja a getHaladási...
+
+ if (isset($osztalyId) && !isset($diakId)) $ADAT['hetesek'] = getHetes($osztalyId, _SHOW_DAYS_FROM);
+
+/*
+ $_Porder = readVariable( $_POST['order'], 'enum', null, array('ASC','DESC') );
+ $_PorderInvert = readVariable($_POST['orderInvert'], 'notempty');
+ // rendezési záradék
+ if (
+ ($_Porder == 'ASC' and $_PorderInvert == false) or
+ ($_Porder == 'DESC' and $_PorderInvert == true)
+ ) {
+ $orderBy = array('dt','ora'); // A lekérdezéshez
+ $order = 'ASC'; // A megjelenítéshez
+ } else {
+ $orderBy = array('dt DESC','ora DESC'); // A lekérdezéshez
+ $order = 'DESC'; // A megjelenítéshez
+ }
+*/
+ if (isset($tankorId)) $orderBy = array('dt DESC','ora DESC'); // A lekérdezéshez
+ else $orderBy = array('dt DESC','ora ASC');
+
+ // tankörök lekérdzése
+ if (isset($diakId)) {
+ $ADAT['haladasiTipus']='diakHaladasi';
+ $Tankorok = getTankorByDiakId($diakId, __TANEV, array('tolDt'=>_SHOW_DAYS_FROM, 'igDt'=>_SHOW_DAYS_TO));
+ $Osztalyok = getDiakOsztalya($diakId, array('tanev'=>__TANEV,'tolDt'=>$tolDt,'igDt'=>$igDt, 'result'=>'idonly'));
+ } elseif (isset($osztalyId)) {
+ $ADAT['haladasiTipus']='osztalyHaladasi';
+ $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV);
+ $Osztalyok = array($osztalyId);
+ } elseif (isset($teremId)) { // --new
+ $ADAT['haladasiTipus']='teremHaladasi';
+ $Tankorok = getTankorByTeremId($teremId, __TANEV);
+ $Osztalyok = array($osztalyId);
+ } elseif (isset($tanarId)) {
+ $Tankorok = getTankorByTanarId(
+ $tanarId,
+ __TANEV,
+ array('csakId' => false, 'tolDt' => _SHOW_DAYS_FROM, 'igDt' => _SHOW_DAYS_TO)
+ );
+ $Osztalyok = getTanarOsztaly($tanarId, array('tanev' => __TANEV, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'idonly'));
+ }
+ $TankorokMutat = $Tankorok;
+ // Kell a munkaterv!! Ahhoz kell(enek) az osztály(ok)!
+ $ADAT['munkaterv'] = getMunkatervByOsztalyId($Osztalyok, array('result' => 'idonly'));
+
+ // Tanmenet
+ if (is_array($Tankorok)) foreach ($Tankorok as $key => $tAdat) $ADAT['tankorIds'][] = $tAdat['tankorId'];
+ if (is_array($ADAT['tankorIds'])) {
+ $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds'], array('tanev' => __TANEV, 'jovahagyva'=>!__TANAR));
+ }
+ if (isset($tankorId)) {
+ if (__DIAK===true) {
+ $allowed=false;
+ for($i=0; $i<count($Tankorok); $i++) {
+ if ($tankorId == $Tankorok[$i]['tankorId']) { $allowed=true; break; }
+ }
+ } else $allowed = true;
+ if ($allowed) {
+ $Tankorok = getTankorById($tankorId, __TANEV); // felül kell írnunk
+ $ADAT['haladasi'] = getHaladasi($Tankorok, $ADAT['munkaterv'], $orderBy, $csakUres);
+ }
+ } elseif ($teremId!='') {
+ $ADAT['haladasi'] = getHaladasi($Tankorok, '', $orderBy, '', $csakUres,$teremId);
+ } else {
+ $ADAT['haladasi'] = getHaladasi($Tankorok, $ADAT['munkaterv'], $orderBy, $tanarId, $csakUres);
+ }
+ $ADAT['ORAIDK'] = array();
+ if (is_array($ADAT['haladasi'])) {
+ reset($ADAT['haladasi']);
+ foreach($ADAT['haladasi'] as $_k => $_v) {
+ for ($i=0; $i<count($_v); $i++) {
+ if (!is_null($ADAT['haladasi'][$_k][$i]['oraId'])) $ADAT['ORAIDK'][] = $ADAT['haladasi'][$_k][$i]['oraId'];
+ }
+ }
+ }
+ $ADAT['oraLatogatasok'] = getOralatogatasByOraIds($ADAT['ORAIDK']);
+ foreach ($ADAT['oraLatogatasok'] as $olId => $olAdat)
+ foreach ($olAdat['tanarIds'] as $_tanarId) $ADAT['oraLatogatasok'][$olId]['tanarNevek'][] = getTanarNevById($_tanarId);
+ // Kell a munkaterv!! Ahhoz kell(enek) az osztály(ok)!
+ if (isset($diakId)) $O = getDiakOsztalya($diakId, array('tanev'=>__TANEV,'tolDt'=>$tolDt,'igDt'=>$igDt, 'result'=>'idonly'));
+ elseif (isset($osztalyId)) $O = array($osztalyId);
+ elseif (isset($tanarId)) $O = getTanarOsztaly($tanarId, array('tanev' => __TANEV, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'idonly'));
+ $ADAT['munkaterv'] = getMunkatervByOsztalyId($O, array('result' => 'idonly'));
+
+ $ADAT['tanitasiNap'] = getTanitasiNapAdat(_genNapok($tolDt,$igDt), array('munkatervIds' => $ADAT['munkaterv']));
+ $ADAT['diakId'] = $diakId;
+ $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['tanarId'] = $tanarId;
+ $ADAT['tankorId'] = $tankorId;
+ $ADAT['terem'] = getTermek(array('result'=>'assoc'));
+ $ADAT['feladatTipus'] = getFeladatTipus();
+ $ADAT['maxOra'] = 16; // Ha reggel 8-kor kezdődik a tanítás, akkor 24 óráig rendben vagyunk így...
+// if ($tanarId>0) //$ADAT['oraTerheles'] = getOraTerhelesByTanarId(array('tanarId'=>$tanarId,'tolDt'=>$tolDt,'igDt'=>$igDt));
+// $ADAT['oraTerheles'] = getOraTerhelesStatByTanarId(array('tanarId'=>$tanarId,'tolDt'=>$tolDt,'igDt'=>$igDt));
+
+ $ADAT['szabadTermek'] = getSzabadTermekByDtInterval($tolDt,$igDt, null,'ora');
+ $ADAT['tankorTipusok'] = getTankorTipusok();
+ /* ------------------------------------------------- */
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'sor', 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'igDt', 'hanyNaponta' => 7,
+ 'tolDt' => date('Y-m-d', strtotime('Saturday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $maxIgDt,
+ 'override' => true
+ );
+ if (__NAPLOADMIN or __VEZETOSEG or __TANAR or __TITKARSAG) {
+ $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array('igDt'));
+ $TOOL['teremSelect'] = array('tipus' => 'cella', 'post' => array('igDt'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('igDt'));
+ if (isset($osztalyId))
+ $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'diakok' => $ADAT['diakok'], 'post' => array('osztalyId','igDt'));
+ if (isset($osztalyId) or isset($tanarId) or isset($diakId) or isset($tankorId))
+ $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $TankorokMutat, 'paramName' => 'tankorId', 'post' => array('osztalyId','tanarId','diakId','igDt'));
+ } elseif (__DIAK===true) {
+ $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $TankorokMutat, 'paramName' => 'tankorId', 'post' => array('osztalyId','tanarId','diakId','igDt'));
+ }
+ getToolParameters();
+
+} // end of skin ajax else
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/haladasi.php b/mayor-orig/www/policy/private/naplo/haladasi/haladasi.php
new file mode 100644
index 00000000..11e1b8c3
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/haladasi.php
@@ -0,0 +1,15 @@
+<?php
+/*
+ module: naplo
+ version: 3.1
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT,$skin;
+
+ putHaladasiBejegyzesek($ADAT);
+ if ($ADAT['title']!='') {
+ if (isset($ADAT['osztalyId'])) putHetesForm($ADAT);
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php
new file mode 100644
index 00000000..5f7d600c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/helyettesites-pre.php
@@ -0,0 +1,194 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN and !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/tankor.php'); // Mozgatás, csere
+ require_once('include/modules/naplo/share/diak.php'); // Mozgatás, csere
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/modules/naplo/share/terem.php');
+
+ global $_TANEV;
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+
+ $dt = readVariable($_POST['dt'], 'datetime', null);
+ if (!isset($dt)) $dt = readVariable($_GET['dt'], 'datetime', null);
+ if (!isset($dt)) $dt = date('Y-m-d');
+
+ if ($_TANEV['statusz']!='aktív') $_SESSION['alert'][] = 'page:wrong_data:nem aktív a tanev:'.$_TANEV['tanev'];
+ if (__FOLYO_TANEV || __NAPLOADMIN) { // Tanéven kívül már csak admin módosítson
+
+ if (
+ strtotime($_TANEV['kezdesDt']) <= strtotime($dt)
+ && strtotime($dt) <= strtotime($_TANEV['zarasDt'])
+ ) {
+ // itt egy ciklussal ellenőrizzük ne csak dt-t, hanem vissza a mai napig (ha jövő dátum van kiválasztva)
+ checkNaplo($dt);
+ $_dt = $dt;
+ while (strtotime($_dt)>time()) {
+ $_dt = date('Y-m-d',strtotime('-1 day',strtotime($_dt)));
+ checkNaplo($_dt);
+ }
+ }
+ // -------------- action --------------//
+
+ if ($action == 'hianyzoModositas') {
+
+ /* Régi megoldás
+ $hianyzok = $_POST['hianyzok'];
+ if (!is_array($hianyzok)) $hianyzok = array();
+ $voltHianyzok = getHianyzok($dt);
+
+ $ujHianyzok = array_diff($hianyzok, $voltHianyzok);
+ $toroltHianyzok = array_diff($voltHianyzok, $hianyzok);
+ */
+ $ujHianyzok = readVariable($_POST['addHianyzo'], 'numeric unsigned');
+ $toroltHianyzok = readVariable($_POST['delHianyzo'], 'numeric unsigned');
+
+ ujHianyzokFelvetele($ujHianyzok, $dt);
+ toroltHianyzokVisszaallitasa($toroltHianyzok, $dt);
+
+ } elseif ($action == 'helyettesitesRogzitese') {
+ foreach ($_POST as $name => $value) {
+ list($gomb,$act,$id,$koord) = explode('_', $name);
+ if ($gomb == 'gomb' && isset($id) && in_array($act, array('manual','mozgat','csere'))) {
+ $$act = readVariable($id, 'numeric unsigned', null);
+ break;
+ }
+ }
+ $T = $_POST['T'];
+
+ if (is_array($T)) helyettesitesRogzites($T);
+
+ } elseif ($action == 'keziBeallitas') {
+
+ $oraId = readVariable($_POST['oraId'], 'numeric unsigned');
+ $ki = readVariable($_POST['ki'], 'numeric unsigned');
+ $tipus = readVariable($_POST['tipus'], 'enum', null, array('elmarad','helyettesítés','felügyelet','összevonás','normál','normál máskor','elmarad máskor','egyéb'));
+ $teremId = readVariable($_POST['teremId'], 'numeric unsigned');
+ if (isset($oraId) && isset($tipus)) keziBeallitas($oraId, $ki, $tipus, $teremId);
+
+ } elseif ($action == 'oraMozgatas') {
+
+ $mozgat = readVariable($_POST['mozgat'], 'numeric unsigned');
+ $ujDt = readVariable($_POST['ujDt'], 'date');
+ $ora = readVariable($_POST['ora'], 'numeric unsigned');
+ $rogzit = isset($_POST['rogzit']);
+
+ if ($rogzit && isset($ora) && isset($ujDt) && isset($mozgat)) { // kijelölte az óra új helyét és submit gombot nyomott
+ if (oraMozgatas($mozgat, $ujDt, $ora)) unset($mozgat); // visszatérés a helyettesítés oldalra, ha sikerült
+ }
+
+ } elseif ($action == 'oraCsere') {
+
+ $csDt = readVariable($_POST['csDt'], 'date');
+ $csere = readVariable($_POST['csere'], 'numeric unsigned');
+ $csId = readVariable($_POST['csId'], 'numeric unsigned');
+ $rogzit = isset($_POST['rogzit']);
+
+ if ($rogzit && isset($csId)) {
+ if (oraCsere($csere, $csId)) unset($csere); // visszatérés a napi helyettesítés oldalra
+ }
+
+ }
+ // ------------ action vége -----------//
+ } // __FOLYO_TANEV
+ else {
+ $_SESSION['alert'][] = 'message:wrong_data:Nem folyó tanév és nem naplóadmin';
+ }
+
+ $lr = db_connect('naplo');
+ if (isset($manual)) {
+
+ // Kézi beállítás
+ $oraAdat = getOraadatById($manual, __TANEV, $lr);
+ $Termek = getSzabadTermek(array('dt' => $oraAdat['dt'], 'ora' => $oraAdat['ora'], 'ki' => $oraAdat['ki']), $lr);
+ if ($oraAdat['teremId']!='') {
+ for ($i = 0;($i < count($Termek) && $Termek[$i]['teremId'] != $oraAdat['teremId']); $i++);
+ if ($i >= count($Termek)) $Termek[] = array('teremId' => $oraAdat['teremId'], 'leiras' => $oraAdat['teremId']);
+ } else {
+ $Termek[] = array('teremId' => 'NULL', 'leiras' => '-');
+ }
+ // Tanárnevek lekérése
+ $Tanarok = getTanarok(array('tanev' => __TANEV,'beDt'=>$dt,'kiDt'=>$dt), $lr);
+
+ } elseif (isset($mozgat)) {
+
+ // Mozgatás
+ $ujDt = readVariable($_POST['ujDt'], 'date', $dt);
+ if (isset($ujDt)) checkNaplo($ujDt);
+
+ $oraAdat = getOraadatById($mozgat, __TANEV, $lr);
+ if (isset($oraAdat['kit']) && $oraAdat['kit'] != '') $tanarId = $oraAdat['kit'];
+ else $tanarId = $oraAdat['ki'];
+ $TANAR_DT_NAPI_ORAK = getTanarNapiOrak($tanarId, $dt, $lr);
+ $TANAR_UJDT_NAPI_ORAK = getTanarNapiOrak($tanarId, $ujDt, $lr);
+
+ } elseif (isset($csere)) {
+
+ // Csere
+ $csDt = readVariable($_POST['csDt'], 'date', $dt);
+ if (isset($csDt)) checkNaplo($csDt);
+
+ $oraAdat = getOraadatById($csere, __TANEV, $lr);
+ if (isset($oraAdat['kit']) && $oraAdat['kit'] != '') $tanarId = $oraAdat['kit'];
+ else $tanarId = $oraAdat['ki'];
+
+ if ($_POST['csTanarId'] == '') $csTanarId = $tanarId;
+ else $csTanarId = $_POST['csTanarId'];
+
+ $Tanarok = getTanarok(array('tanev' => __TANEV,'kiDt'=>$dt,'beDt'=>$dt), $lr);
+ $TANAR_DT_NAPI_ORAK = getTanarNapiOrak($tanarId, $dt, $lr);
+ $CSTANAR_CSDT_NAPI_ORAK = getTanarNapiOrak($csTanarId, $csDt, $lr);
+
+ } elseif (isset($_POST['csereAttekintes']) && $_POST['csereAttekintes'] != '') {
+
+ $oraId = $_POST['csereAttekintes'];
+ $Orak = getCsereOraiByOraId($oraId, $lr);
+
+ } elseif ($orarend != '') {
+ // Tanár órarendje
+ } else {
+
+ // Normál helyettesítés kiíró
+
+ // A beírt hiányzók, helyettesítések...
+ $HELYETTESITES = getHianyzoOrak($dt, $lr); // == ADAT!
+ $HELYETTESITES['tanarTerheles'] = getOraTerhelesStatByTanarId(array('dt'=>$dt));
+ }
+ db_close($lr);
+ }
+
+ // toolBar
+ if (__NAPLOADMIN) {
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])),
+// 'igDt' => $_TANEV['zarasDt'],
+ 'igDt' => getTanitasiNap(array('direction'=>'elore', 'napszam'=>10, 'fromDt'=>'curdate()')),
+ 'napTipusok' => array('tanítási nap', 'speciális tanítási nap')
+ );
+ } elseif (__VEZETOSEG) {
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime(_ZARAS_HATARIDO)),
+ 'igDt' => getTanitasiNap(array('direction'=>'elore', 'napszam'=>10, 'fromDt'=>'curdate()')),
+ 'napTipusok' => array('tanítási nap', 'speciális tanítási nap')
+ );
+ }
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/helyettesites.php b/mayor-orig/www/policy/private/naplo/haladasi/helyettesites.php
new file mode 100644
index 00000000..5707092c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/helyettesites.php
@@ -0,0 +1,46 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $dt, $HELYETTESITES;
+ global $manual, $Tanarok, $Termek;
+ global $mozgat, $csere, $orarend;
+ global $oraAdat, $ujDt, $TANAR_DT_NAPI_ORAK, $TANAR_UJDT_NAPI_ORAK, $tanarId;
+ global $csTanarId, $csDt, $CSTANAR_CSDT_NAPI_ORAK;
+ global $Orak;
+ global $tools;
+ global $_TANEV;
+
+if ($_TANEV['statusz']=='aktív') {
+
+ if ($manual != '') {
+
+ // Kézi adatmódosítás
+
+ putKeziBeallitas($oraAdat, $Termek, $Tanarok);
+
+ } elseif ($mozgat != '') {
+
+ putMozgatas($tanarId, $oraAdat, $TANAR_DT_NAPI_ORAK, $ujDt, $TANAR_UJDT_NAPI_ORAK);
+
+ } elseif ($csere != '') {
+
+ putCsere($tanarId, $oraAdat, $TANAR_DT_NAPI_ORAK, $csTanarId, $csDt, $CSTANAR_CSDT_NAPI_ORAK, $Tanarok);
+
+ } elseif (isset($_POST['csereAttekintes']) && $_POST['csereAttekintes'] != '') {
+ putCsereAttekintes($oraId, $Orak);
+ } elseif ($orarend != '') {
+ } else {
+
+ // A szokásos helyettesítés oldal...
+// putHianyzoTanarok($HELYETTESITES['tanarok'], $HELYETTESITES['helyettesites']['tanarIds'], $dt);
+ putHianyzoTanarForm($HELYETTESITES['tanarok'], $HELYETTESITES['helyettesites']['tanarIds'], $dt);
+ putHianyzoOrak($HELYETTESITES, $dt);
+
+ }
+
+}
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/hetes-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/hetes-pre.php
new file mode 100644
index 00000000..8adbc979
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/hetes-pre.php
@@ -0,0 +1,260 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR && !__DIAK && !__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+ require_once('include/modules/naplo/share/hetes.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/share/date/names.php');
+
+
+ $ADAT['csakUres'] = $csakUres = readVariable($_POST['csakUres'],'bool',false,null);
+ $ADAT['teremId' ] = $teremId = readVariable($_POST['teremId'],'id');
+
+ // Egy tankör haladási naplójához
+ $tankorId = readVariable($_POST['tankorId'],'id');
+
+ // Ha diák nézi, akkor csak a saját tanköreit láthatja
+ if (__DIAK) $diakId = __USERDIAKID;
+ else $diakId = readVariable($_POST['diakId'],'id');
+
+ $osztalyId = readVariable($_POST['osztalyId'],'id');
+
+ if (isset($diakId)) {
+ // A diák már nem határozza meg egyértelműen az osztályt! --> osztalyId-t nem állítunk - hagyjuk
+ if (isset($tankorId) and !tankorTagjaE($diakId, $tankorId)) {
+ unset($tankorId);
+ }
+ $ADAT['title'] = getDiakNevById($diakId);
+ } else {
+ if (isset($teremId)) {
+ } elseif (!isset($osztalyId)) {
+ if (!isset($tanarId)) $tanarId = readVariable($_POST['tanarId'],'id');
+ if (!isset($tanarId)) $tanarId = readVariable($_GET['tanarId'],'id');
+ if (!isset($tanarId) && __USERTANARID!==false && __TANAR) $tanarId = __USERTANARID;
+ define(__PLUSZBEIRHAT,
+ (__USERTANARID == $tanarId || __NAPLOADMIN===true || __VEZETOSEG===true)
+ );
+ }
+ }
+ if (!defined('__PLUSZBEIRHAT')) define('__PLUSZBEIRHAT',false);
+ /* ------------------------------------------------- */
+
+ // lapozás, tól-ig beállítás
+ if (!isset($tankorId)) {
+
+ // egy tanár ($tanarId) vagy osztály ($osztaly) összes órája --> lapozni kell
+ // reading sensitive data
+ $igDt = readVariable($_POST['igDt'], 'datetime', date('Y-m-d'));
+ $tolDt = readVariable($_POST['tolDt'], 'datetime');
+ $lapoz = readVariable($_POST['lapoz'], 'enum', null, array('<<','>>','nextWeek','prevWeek'));
+ $lapoz1 = readVariable($_POST['lapoz1'], 'enum', null, array('<<','>>','nextWeek','prevWeek'));
+
+ // set defaults ++
+// if (strtotime($igDt) > strtotime($_TANEV['zarasDt'])) $igDt = $_TANEV['zarasDt'];
+ if (strtotime($igDt) > strtotime($_TANEV['zarasDt'])) $igDt = date('Y-m-d', strtotime('next Saturday', strtotime($_TANEV['zarasDt'])));
+ elseif (strtotime($igDt) < strtotime($_TANEV['kezdesDt'])) $igDt = $_TANEV['kezdesDt'];
+ if (date('w', strtotime($igDt)) == 0) $igDt = date('Y-m-d',strtotime('-1 days',strtotime($igDt))); // Hogy vasárnap még a múltheti látszódjon
+ $eVas = date('Y-m-d',strtotime('Saturday',strtotime($igDt)));
+
+ if ($igDt == '') $igDt = $eVas;
+ if ($tolDt == '') $tolDt = $eHet = date('Y-m-d',strtotime('last Monday 02:00',strtotime($eVas)));
+
+ if (in_array($lapoz,array('<<','prevWeek')) or in_array($lapoz1,array('<<','prevWeek'))) {
+ $tolDt = date('Y-m-d',strtotime('last Monday 02:00',strtotime($eHet)));
+// $igDt = date('Y-m-d',strtotime('Saturday',strtotime($tolDt)));
+// Vasárnap
+ $igDt = date('Y-m-d',strtotime('Sunday',strtotime($tolDt)));
+ } elseif (in_array($lapoz,array('>>','nextWeek')) or in_array($lapoz1,array('>>','nextWeek'))) {
+ $tolDt = date('Y-m-d',strtotime('Monday 02:00',strtotime($eVas)));
+// $igDt = date('Y-m-d',strtotime('Saturday',strtotime($tolDt)));
+// Vasárnap
+ $igDt = date('Y-m-d',strtotime('Sunday',strtotime($tolDt)));
+ }
+ if ($csakUres || strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $tolDt = date('Y-m-d',strtotime($_TANEV['kezdesDt']));
+ // Ha ezt kiveszem, akkor mindig kirakja a teljes hetet, de a jövőbeli órákat nem lehet beírni!
+ // Itt a post értékét nem használjuk fel, csak vizsgáljuk.
+ if ((!isset($_POST['igDt']) || $_POST['igDt'] == '')&& strtotime($igDt) > time()) $igDt = date('Y-m-d');
+ define('_SHOW_DAYS_FROM',$tolDt);
+ define('_SHOW_DAYS_TO',$igDt);
+
+ } else {
+
+ // egy tanulócsoport órái (nem kell lapozni)
+ define('_SHOW_DAYS_FROM',date('Y-m-d',strtotime($_TANEV['kezdesDt'])));
+ define('_SHOW_DAYS_TO',date('Y-m-d'));
+
+ }
+ /* ------------------------------------------------- */
+ // Jogosultság ellenőrzés, tanév aktív-e...
+
+ // A megjelenítéshez
+ if (isset($osztalyId) && !isset($diakId)) {
+ $osztalyAdat = getOsztalyAdat($osztalyId);
+ $ADAT['title'] = $osztalyAdat['osztalyJel'].' ('.$osztalyAdat['osztalyfonok']['tanarNev'].')';
+ // hetesek miatt
+ $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['diakok'] = getDiakok(array('osztalyId' => $osztalyId));
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) $ADAT['diakNevek'][ $ADAT['diakok'][$i]['diakId'] ] = $ADAT['diakok'][$i]['diakNev'];
+ } elseif (isset($tanarId)) {
+ $ADAT['title'] = getTanarNevById($tanarId);
+ //DEPRECATED $ADAT['oraTerheles'] = getOraTerhelesByTanarId(array('tanarId'=>$tanarId,'tolDt'=>$tolDt,'igDt'=>$igDt));
+ $ADAT['oraTerheles'] = getOraTerhelesStatByTanarId(array('tanarId'=>$tanarId,'dt'=>_SHOW_DAYS_TO));
+ } elseif (isset($teremId)) {
+ $ADAT['title'] = $teremId;
+ }
+
+ if (
+ $_TANEV['szemeszter'][1]['statusz'] == 'aktív' // Csak aktív tanévben lehet módosítani
+ && (
+ __NAPLOADMIN // adminnak vagy
+ || __VEZETOSEG // vezetőség - tanév végi pótlásokhoz kell!
+ || ((__TANAR || __VEZETOSEG )) // A tanároknak, vezetőségi tagoknak
+// || ((__TANAR || __VEZETOSEG ) && __FOLYO_TANEV) // A tanév közben a tanároknak, vezetőségi tagoknak - az év végi napok problémásak így!
+ )
+ ) {
+ // action
+ if ($action == 'haladasiNaploBeiras' && (
+ is_array($_POST['oraId'])
+ ||is_array($_POST['UJORA'])
+ ||is_array($_POST['ORATOROL'])
+ )) {
+ } elseif ($action == 'hetesFelvetel' && isset($osztalyId) && ((__OSZTALYFONOK===true && in_array($osztalyId, $_OSZTALYA)) || __NAPLOADMIN===true )) {
+ $ADAT['dt'] = readVariable($_POST['dt'], 'date');
+ $ADAT['hetes'][1] = readVariable($_POST['hetes1'], 'numeric unsigned');
+ $ADAT['hetes'][2] = readVariable($_POST['hetes2'], 'numeric unsigned');
+ hetesFelvetel($ADAT);
+ }
+ }
+
+ if ((date('Y-m-d',strtotime($tolDt))==date('Y-m-d',strtotime('next Monday'))
+ || date('Y-m-d',strtotime($tolDt))==date('Y-m-d',strtotime('last Monday'))
+ ) && (__NAPLOADMIN || __VEZETOSEG)) {
+ $_NAPOK = _genNapok($tolDt,$igDt);
+ for ($i=0; $i<count($_NAPOK); $i++) {
+ checkNaplo($_NAPOK[$i]);
+ }
+ }
+
+ /* ------------------------------------------------- */
+
+ //if (isset($osztalyId) && !isset($diakId))
+ $ADAT['diakok'] = getDiakok(array('osztalyId' => $osztalyId,'result'=>'assoc','keyfield'=>'diakId'));
+ $ADAT['hetesek'] = getHetesek($osztalyId, _SHOW_DAYS_FROM);
+ $ADAT['osztalyok'] = getOsztalyok(__TANEV,array('result'=>'assoc'));
+
+ if (isset($tankorId)) $orderBy = array('dt DESC','ora DESC'); // A lekérdezéshez
+ else $orderBy = array('dt DESC','ora ASC');
+
+ // tankörök lekérdzése
+ if (isset($diakId)) {
+ $ADAT['haladasiTipus']='diakHaladasi';
+ $Tankorok = getTankorByDiakId($diakId, __TANEV, array('tolDt'=>_SHOW_DAYS_FROM, 'igDt'=>_SHOW_DAYS_TO));
+ $Osztalyok = getDiakOsztalya($diakId, array('tanev'=>__TANEV,'tolDt'=>$tolDt,'igDt'=>$igDt, 'result'=>'idonly'));
+ } elseif (isset($osztalyId)) {
+ $ADAT['haladasiTipus']='osztalyHaladasi';
+ $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV);
+ $Osztalyok = array($osztalyId);
+ } elseif (isset($teremId)) { // --new
+ $ADAT['haladasiTipus']='teremHaladasi';
+ $Tankorok = getTankorByTeremId($teremId, __TANEV);
+ $Osztalyok = array($osztalyId);
+ } elseif (isset($tanarId)) {
+ $Tankorok = getTankorByTanarId(
+ $tanarId,
+ __TANEV,
+ array('csakId' => false, 'tolDt' => _SHOW_DAYS_FROM, 'igDt' => _SHOW_DAYS_TO)
+ );
+ $Osztalyok = getTanarOsztaly($tanarId, array('tanev' => __TANEV, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'idonly'));
+ }
+ $TankorokMutat = $Tankorok;
+ // Kell a munkaterv!! Ahhoz kell(enek) az osztály(ok)!
+ $ADAT['munkaterv'] = getMunkatervByOsztalyId($Osztalyok, array('result' => 'idonly'));
+
+ // Tanmenet
+ if (is_array($Tankorok)) foreach ($Tankorok as $key => $tAdat) $ADAT['tankorIds'][] = $tAdat['tankorId'];
+ if (is_array($ADAT['tankorIds'])) {
+ $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds'], array('tanev' => __TANEV, 'jovahagyva'=>!__TANAR));
+ }
+ if (isset($tankorId)) {
+ if (__DIAK===true) {
+ $allowed=false;
+ for($i=0; $i<count($Tankorok); $i++) {
+ if ($tankorId == $Tankorok[$i]['tankorId']) { $allowed=true; break; }
+ }
+ } else $allowed = true;
+ if ($allowed) {
+ $Tankorok = getTankorById($tankorId, __TANEV); // felül kell írnunk
+ //$ADAT['haladasi'] = getHaladasi($Tankorok, $ADAT['munkaterv'], $orderBy, $csakUres);
+ }
+ } elseif ($teremId!='') {
+ //$ADAT['haladasi'] = getHaladasi($Tankorok, '', $orderBy, '', $csakUres,$teremId);
+ } else {
+ //$ADAT['haladasi'] = getHaladasi($Tankorok, $ADAT['munkaterv'], $orderBy, $tanarId, $csakUres);
+ }
+ $ADAT['ORAIDK'] = array();
+ if (is_array($ADAT['haladasi'])) {
+ reset($ADAT['haladasi']);
+ foreach($ADAT['haladasi'] as $_k => $_v) {
+ for ($i=0; $i<count($_v); $i++) {
+ if (!is_null($ADAT['haladasi'][$_k][$i]['oraId'])) $ADAT['ORAIDK'][] = $ADAT['haladasi'][$_k][$i]['oraId'];
+ }
+ }
+ }
+ $ADAT['oraLatogatasok'] = getOralatogatasByOraIds($ADAT['ORAIDK']);
+ foreach ($ADAT['oraLatogatasok'] as $olId => $olAdat)
+ foreach ($olAdat['tanarIds'] as $_tanarId) $ADAT['oraLatogatasok'][$olId]['tanarNevek'][] = getTanarNevById($_tanarId);
+ // Kell a munkaterv!! Ahhoz kell(enek) az osztály(ok)!
+ if (isset($diakId)) $O = getDiakOsztalya($diakId, array('tanev'=>__TANEV,'tolDt'=>$tolDt,'igDt'=>$igDt, 'result'=>'idonly'));
+ elseif (isset($osztalyId)) $O = array($osztalyId);
+ elseif (isset($tanarId)) $O = getTanarOsztaly($tanarId, array('tanev' => __TANEV, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'idonly'));
+ $ADAT['munkaterv'] = getMunkatervByOsztalyId($O, array('result' => 'idonly'));
+
+ $ADAT['tanitasiNap'] = getTanitasiNapAdat(_genNapok($tolDt,$igDt), array('munkatervIds' => $ADAT['munkaterv']));
+ $ADAT['diakId'] = $diakId;
+ $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['tanarId'] = $tanarId;
+ $ADAT['tankorId'] = $tankorId;
+ $ADAT['terem'] = getTermek(array('result'=>'assoc'));
+ $ADAT['feladatTipus'] = getFeladatTipus();
+ $ADAT['maxOra'] = 16; // Ha reggel 8-kor kezdődik a tanítás, akkor 24 óráig rendben vagyunk így...
+// if ($tanarId>0) //$ADAT['oraTerheles'] = getOraTerhelesByTanarId(array('tanarId'=>$tanarId,'tolDt'=>$tolDt,'igDt'=>$igDt));
+// $ADAT['oraTerheles'] = getOraTerhelesStatByTanarId(array('tanarId'=>$tanarId,'tolDt'=>$tolDt,'igDt'=>$igDt));
+
+ $ADAT['szabadTermek'] = getSzabadTermekByDtInterval($tolDt,$igDt, null,'ora');
+ $ADAT['tankorTipusok'] = getTankorTipusok();
+ /* ------------------------------------------------- */
+
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'sor', 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'igDt', 'hanyNaponta' => 7,
+ 'tolDt' => date('Y-m-d', strtotime('Saturday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => date('Y-m-d', strtotime('next Saturday', strtotime($_TANEV['zarasDt']))),
+ 'override' => true
+ );
+ if (__NAPLOADMIN or __VEZETOSEG or __TANAR or __TITKARSAG) {
+// $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array('igDt'));
+// $TOOL['teremSelect'] = array('tipus' => 'cella', 'post' => array('igDt'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('igDt'));
+ if (isset($osztalyId))
+ $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'diakok' => $ADAT['diakok'], 'post' => array('osztalyId','igDt'));
+// if (isset($osztalyId) or isset($tanarId) or isset($diakId))
+// $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $TankorokMutat, 'paramName' => 'tankorId', 'post' => array('osztalyId','tanarId','diakId','igDt'));
+ } elseif (__DIAK===true) {
+// $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $TankorokMutat, 'paramName' => 'tankorId', 'post' => array('osztalyId','tanarId','diakId','igDt'));
+ }
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/hetes.php b/mayor-orig/www/policy/private/naplo/haladasi/hetes.php
new file mode 100644
index 00000000..5aeb1001
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/hetes.php
@@ -0,0 +1,9 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT,$skin;
+ //if ($ADAT['title']!='') {
+ // if (isset($ADAT['osztalyId']))
+ putHetesForm($ADAT);
+ //}
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/minuszora-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/minuszora-pre.php
new file mode 100644
index 00000000..f2abcd4c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/minuszora-pre.php
@@ -0,0 +1,75 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ global $_TANEV;
+ if ($_TANEV['statusz']!='aktív') $_SESSION['alert'][] = 'page:nem_aktív_tanev:'.$_TANEV['tanev'];
+
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', date('Y-m-d'));
+// $ora = readVariable($_POST['ora'], 'numeric unsigned', null);
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'numeric unsigned', null);
+ if (!isset($tanarId)) $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+// $tankorId = readVariable($_POST['tankorId'], 'numeric unsigned', null);
+// $teremId = readVariable($_POST['teremId'], 'numeric unsigned', null);
+// $SzabadOrak = '';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['napiMinOra'] = getMinOra();
+ $ADAT['napiMaxOra'] = getMaxOra();
+
+ if (defined('__MAXORA_MINIMUMA') && $ADAT['napiMaxOra'] < __MAXORA_MINIMUMA) $ADAT['napiMaxOra'] = __MAXORA_MINIMUMA; // Hogy lehessen "törölni" későbbi órákat is
+ if (isset($dt)) {
+
+ // órarendiÓrák betöltése - ha szükséges - a fv. maga ellenőrzi, hogy kell-e betölteni adatokat...
+ checkNaplo($dt);
+
+ // órák lekérdezése
+ if (isset($tanarId)) $ADAT['orak'] = getTanarNapiOrak($tanarId, $dt);
+ elseif (isset($osztalyId)) $ADAT['orak'] = getOsztalyNapiOrak($osztalyId, $dt);
+
+ // Action
+ if ($action == 'oraElmaradas') {
+
+ if (is_array($_POST['oraId'])) {
+ for ($i = 0; $i < count($_POST['oraId']); $i++) {
+ $oraId = readVariable($_POST['oraId'][$i], 'numeric unsigned');
+ if (isset($oraId)) {
+ oraElmarad($oraId);
+ // órák újra lekérdezése
+ if (isset($tanarId)) $ADAT['orak'] = getTanarNapiOrak($tanarId, $dt);
+ elseif (isset($osztalyId)) $ADAT['orak'] = getOsztalyNapiOrak($osztalyId, $dt);
+ }
+ }
+ }
+ }
+ }
+
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('ora', 'tanarId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'napTipusok' => array('tanítási nap','speciális tanítási nap'),
+ );
+ if (isset($dt)) {
+ if (!isset($osztalyId) || isset($tankorId)) $TOOL['tanarSelect'] = array('tipus'=>'cella', 'tanarok' => $Tanarok, 'post' => array('dt', 'tankorId'));
+ if (!isset($tanarId)) $TOOL['osztalySelect'] = array('tipus'=>'sor','paramName' => 'osztalyId', 'post'=>array('dt', 'tankor'));
+ }
+ getToolParameters();
+
+ } // admin vagy igazgató
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/minuszora.php b/mayor-orig/www/policy/private/naplo/haladasi/minuszora.php
new file mode 100644
index 00000000..b0c15eaf
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/minuszora.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['tanarId']) || isset($ADAT['osztalyId'])) putOrak($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/ora-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/ora-pre.php
new file mode 100644
index 00000000..83f041cb
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/ora-pre.php
@@ -0,0 +1,33 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:illegal_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+
+ $oraId = readVariable($_POST['oraId'],'id');
+ $oraElmarad = readVariable($_POST['oraElmarad'],'string');
+ $oraMegtartva = readVariable($_POST['oraMegtartva'],'string');
+ if (isset($oraElmarad)) {
+ $_JSON['toDo'] = 'oraElmarad'; // processJSON js-ben használjuk
+ $_JSON['oraId'] = $oraId;
+ } elseif (isset($oraMegtartva)) {
+ $_JSON['toDo'] = 'oraMegtartva'; // processJSON js-ben használjuk
+ $_JSON['oraId'] = $oraId;
+ }
+
+ $ADAT['oraAdat'] = getOraAdatById($oraId);
+// $_JSON['html'] = putOraAdat($ADAT);
+ $ADAT['oraAdat']['debug'] = serialize($_POST);
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/ora.php b/mayor-orig/www/policy/private/naplo/haladasi/ora.php
new file mode 100644
index 00000000..95e6a821
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/ora.php
@@ -0,0 +1,9 @@
+<?php
+/*
+ module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+ global $ADAT;
+ putOraAdat($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/oralatogatas-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/oralatogatas-pre.php
new file mode 100644
index 00000000..810ee183
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/oralatogatas-pre.php
@@ -0,0 +1,102 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/ora.php');
+
+// $tankorId = readVariable($_POST['tankorId'], 'id');
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', date('Y-m-d'));
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ if (!isset($osztalyId)) {
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'numeric unsigned', $tanarId = readVariable($_GET['tanarId'],'numeric unsigned'));
+ if (!isset($tanarId) && __USERTANARID!==false && __TANAR) $ADAT['tanarId'] = $tanarId = __USERTANARID;
+ }
+ $ADAT['tanarok'] = getTanarok(array('tanev' => __TANEV));
+
+ // Adott napi órák lekérdezése
+ if (isset($osztalyId)) {
+ $ADAT['orak'] = getOsztalyNapiOrak($osztalyId, $dt);
+ } elseif ($tanarId) {
+ $ADAT['orak'] = getTanarNapiOrak($tanarId, $dt);
+ }
+
+ // Az órákhoz tartozó látogatások és látogatók lekérdezése
+ $ADAT['oralatogatas'] = $ADAT['oraIds'] = array();
+ if (is_array($ADAT['orak']) && count($ADAT['orak']) > 0) {
+ foreach ($ADAT['orak'] as $ora => $oAdat) {
+ foreach ($oAdat as $key => $oraAdat) {
+ $ADAT['oraIds'][] = $oraAdat['oraId'];
+ }
+ }
+ }
+
+ // Jogosultság ellenőrzés, tanév aktív-e...
+ if (
+ $_TANEV['szemeszter'][1]['statusz'] == 'aktív' // Csak aktív tanévben lehet módosítani
+ && (
+ __NAPLOADMIN // adminnak vagy
+ || (__VEZETOSEG && __FOLYO_TANEV) // A tanév közben a vezetőségi tagoknak
+ )
+ ) {
+ if ($action == 'oralatogatasBeiras') {
+ $_D['oraId'] = readVariable($_POST['oraId'], 'id');
+ $_D['megjegyzes'] = readVariable($_POST['megjegyzes'], 'string');
+ $_D['tanarIds'] = readVariable($_POST['tanarIds'], 'id');
+ if (isset($_D['oraId'])) {
+ oralatogatasBeiras($_D);
+ }
+ foreach($_POST as $_key => $_val) {
+ if (substr($_key,0,6)=='delete') {
+ list($_rest,$_oraId) = explode('_',$_key);
+ oralatogatasTorles($_oraId);
+ }
+ }
+ }
+ }
+
+
+ $ADAT['oralatogatas'] = getOralatogatasByOraIds($ADAT['oraIds']);
+
+
+ /* ------------------------------------------------- */
+
+ // tankörök lekérdzése
+ if (isset($osztalyId)) {
+ $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV);
+ } elseif (isset($tanarId)) {
+ $Tankorok = getTankorByTanarId(
+ $tanarId,
+ __TANEV,
+ array('csakId' => false)
+ );
+ }
+
+// $TankorokMutat = $Tankorok;
+//
+// if (isset($tankorId)) {
+// $Tankorok = getTankorById($tankorId, __TANEV); // felül kell írnunk
+// }
+
+ /* ------------------------------------------------- */
+
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'sor', 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])),
+ 'igDt' => date('Y-m-d', strtotime($_TANEV['zarasDt'])),
+ 'override' => true
+ );
+ $TOOL['tanarSelect'] = array('tipus' => 'cella', 'tanarok' => $ADAT['tanarok'], 'post' => array('igDt'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('igDt'));
+// if (isset($osztalyId) or isset($tanarId) or isset($diakId))
+// $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $TankorokMutat, 'paramName' => 'tankorId', 'post' => array('osztalyId','tanarId','diakId','igDt'));
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/oralatogatas.php b/mayor-orig/www/policy/private/naplo/haladasi/oralatogatas.php
new file mode 100644
index 00000000..6fde9cb6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/oralatogatas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['orak']) && count($ADAT['orak']) > 0) putOralatogatasForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/osszevonas-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/osszevonas-pre.php
new file mode 100644
index 00000000..f140e7fd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/osszevonas-pre.php
@@ -0,0 +1,109 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ global $_TANEV;
+ if ($_TANEV['statusz'] != 'aktív') $_SESSION['alert'][] = 'page:nem_aktív_tanev:'.$_TANEV['tanev'];
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/share/date/names.php');
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+
+ $dt = readVariable($_POST['dt'], 'datetime', date('Y-m-d'));
+ $ora = readVariable($_POST['ora'], 'numeric unsigned', null);
+ $tanarId = readVariable($_POST['tanarId'], 'id', null);
+ $tankorId = readVariable($_POST['tankorId'], 'id', null);
+ // $teremId = readVariable($_POST['teremId'], 'id', null);
+
+ if (isset($dt)) {
+ checkNaplo($dt); // a fv. maga ellenőrzi, hogy kell-e, lehet-e órákat betölteni
+ if (isset($tankorId)) {
+ // A tankör tanárainak lekérdezése (tanarSelect számára)
+ $Tanarok = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => $dt, 'igDt' => $dt, 'result' => 'nevsor'));
+ if (isset($tanarId)) {
+ // A tanár a tankör tanára-e?
+ for ($i = 0; ($i < count($Tanarok) && $Tanarok[$i] != $tanarId); $i++);
+ if ($i > count($Tanarok)) {
+ $_SESSION['alert'][] = 'message:wrong_data:pluszOra:Nem a tankör tanára:$tankorId/$tanarId';
+ unset($tanarId); unset($_POST['tanarId']);
+ }
+ }
+ // Ha csak egy tanarId van, akkor azt állítsuk be!
+ if (count($Tanarok) == 1) {
+ $tanarId = $Tanarok[0]['tanarId'];
+ if (isset($osztalyId)) unset($osztalyId);
+ }
+ }
+
+ // Felvehető-e az óra
+ $ok = (isset($ora) && isset($tanarId) && isset($tankorId));
+
+ if (isset($tanarId)) {
+ // tanar Napi órái
+ $Orak = getTanarNapiOrak($tanarId, $dt);
+ }
+ if (isset($ora)) {
+ if (isset($tankorId)) {
+ $DIAKIDK = getTankorDiakjaiByInterval($tankorId, $tanev = __TANEV, $tolDt = $dt, $igDt = $dt);
+ $ADAT['torlendoTankorok'] = getOrakByDiakIdk($DIAKIDK['idk'], array('dt'=>$dt,'ora'=>$ora));
+ for ($i=0; $i<count($ADAT['torlendoTankorok']); $i++) {
+ $ADAT['tankorIds'][] = $ADAT['torlendoTankorok'][$i]['tankorId'];
+ }
+ $ADAT['tankorok'] = getTankorAdatByIds($ADAT['tankorIds']);
+ }
+ $Tanarok = getFoglaltTanarok($dt,$ora);
+ } // ora
+ } // dt
+
+ $ADAT['dt'] = $dt;
+ $ADAT['ora'] = $ora;
+ $ADAT['tanarId'] = $tanarId;
+ $ADAT['tankorId'] = $tankorId;
+
+ // Action
+ if ($ok && $action == 'oraFelvetele') {
+ for ($i=0; $i<count($ADAT['torlendoTankorok']); $i++) {
+ $oraId = $ADAT['torlendoTankorok'][$i]['oraId'];
+ HianyzasEsJegyHozzarendelesTorles($oraId);
+ oraElmarad($oraId);
+ }
+ $eredet = 'plusz';
+ $tipus = 'összevonás';
+ if (oraFelvetele($dt, $ora, $tanarId, $tankorId, $teremId, $tipus, $eredet)) {
+ $_SESSION['alert'][] = 'info:change_success';
+ $Orak = getTanarNapiOrak($tanarId, $dt);
+ }
+ }
+
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('ora', 'tanarId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'napTipusok' => array('tanítási nap','speciális tanítási nap'),
+ );
+ if (isset($dt)) {
+ $TOOL['oraSelect'] = array('tipus' => 'cella', 'post' => array('osztalyId', 'tanarId', 'tankorId', 'dt', 'ora'));
+ if (isset($ora) && (!isset($osztalyId) || isset($tankorId))) $TOOL['tanarSelect'] = array('tipus'=>'cella', 'tanarok' => $Tanarok, 'post'=>array('dt', 'ora', 'tankorId', 'teremId' ));
+ if (isset($osztalyId) or isset($tanarId))
+ $TOOL['tankorSelect'] = array('tipus'=>'sor', 'paramName'=>'tankorId', 'post'=>array('osztalyId','tanarId','dt','ora','teremId'));
+ // if (isset($ora)) $TOOL['teremSelect'] = array('tipus'=>'cella', 'paramName'=>'teremId', 'termek' => $Termek, 'post'=>array('osztalyId','tanarId','dt','ora','tankorId'));
+ }
+ getToolParameters();
+
+ } // admin vagy igazgató
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/osszevonas.php b/mayor-orig/www/policy/private/naplo/haladasi/osszevonas.php
new file mode 100644
index 00000000..5d04f19b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/osszevonas.php
@@ -0,0 +1,13 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ok, $dt, $ora, $tanarId, $tankorId, $teremId, $Orak;
+ global $ADAT;
+
+ if ($ok) putOraFelvetelForm($ADAT);
+
+ if (is_array($Orak)) if (isset($tanarId)) putOrak($Orak, _TANAR);
+ else putOrak($Orak, _OSZTALY);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/pluszora-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/pluszora-pre.php
new file mode 100644
index 00000000..55914d4a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/pluszora-pre.php
@@ -0,0 +1,177 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ global $_TANEV;
+ if ($_TANEV['statusz']!='aktív') $_SESSION['alert'][] = 'page:nem_aktív_tanev:'.$_TANEV['tanev'];
+
+ $ADAT['dt']=$dt = readVariable($_POST['dt'], 'datetime', date('Y-m-d'));
+ $ADAT['ora']=$ora = readVariable($_POST['ora'], 'numeric', null);
+ $tanarId = readVariable($_POST['tanarId'], 'numeric unsigned', null);
+ if (!isset($tanarId)) $osztalyId = readVariable($_POST['osztalyId'], 'id', null);
+ $tankorId = readVariable($_POST['tankorId'], 'id', null);
+ $blokkId = readVariable($_POST['tankorBlokkId'], 'id', null);
+ $teremId = readVariable($_POST['teremId'], 'id', null);
+ $SzabadOrak = '';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/oraModifier.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/share/date/names.php');
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+
+ if ($napiMaxOra < __MAXORA_MINIMUMA) $napiMaxOra = __MAXORA_MINIMUMA;
+ $ADAT['napiMinOra'] = $napiMinOra;
+ $ADAT['napiMaxOra'] = $napiMaxOra;
+
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['feladatTipus'] = getFeladatTipus();
+
+ if (isset($dt)) {
+ // órarendiÓrák betöltése - ha szükséges - a fv. maga ellenőrzi, hogy kell-e/lehet-e órákat betölteni...
+ checkNaplo($dt);
+
+ $ADAT['tankorBlokkok'] = getTankorBlokkok();
+
+ if (isset($tankorId)) {
+ // A tankör tanárainak lekérdezése (tanarSelect számára)
+ $Tanarok = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => $dt, 'igDt' => $dt, 'result' => 'nevsor'));
+ if (isset($tanarId)) {
+ // A tanár a tankör tanára-e?
+ for ($i = 0; ($i < count($Tanarok) && $Tanarok[$i]['tanarId'] != $tanarId); $i++);
+ if ($i >= count($Tanarok)) {
+ $_SESSION['alert'][] = 'info:not_member:pluszOra:Nem a tankör tanára:'."$tankorId/$tanarId";
+ $Tanarok[] = array('tanarId' => $tanarId, 'tanarNev' => getTanarNevById($tanarId));
+ $mkId = getTankorMkId($tankorId);
+ $tanarMkIds = getTanarMunkakozosseg($tanarId);
+ $ADAT['kit'] = $Tanarok[0]['tanarId'];
+ if (in_array($mkId, $tanarMkIds)) $ADAT['tipus'] = 'helyettesítés';
+ else $ADAT['tipus'] = 'felügyelet';
+// unset($tanarId); unset($_POST['tanarId']);
+ }
+ }
+ // Ha csak egy tanarId van, akkor azt állítsuk be!
+ if (count($Tanarok) == 1 && !isset($tanarId)) {
+ $tanarId = $Tanarok[0]['tanarId'];
+ if (isset($osztalyId)) unset($osztalyId);
+ }
+ }
+ // Felvehető-e az óra
+ $ok = (isset($ora) && isset($tanarId) && isset($tankorId));
+
+ if (isset($tanarId)) {
+ // tanar Napi órái
+ $Orak = getTanarNapiOrak($tanarId, $dt);
+ // Szabad Órák
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) if (!is_array($Orak[$i])) $SzabadOrak[] = $i;
+ } elseif (isset($osztalyId)) {
+ // osztalyNapiOrai
+ $Orak = getOsztalyNapiOrak($osztalyId, $dt);
+ // Szabad Órák
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) if (!is_array($Orak[$i][0])) $SzabadOrak[] = $i;
+ }
+ if (isset($ora)) {
+ $Termek = getSzabadTermek(array('dt' => $dt, 'ora' => $ora));
+ $szabadTankorok = getSzabadTankorok($dt, $ora);
+ if (isset($tankorId)) {
+ // Tankör tagok ütközés ellenőrzése
+ $TA = getTankorAdat($tankorId);
+ if ($TA[$tankorId][0]['jelenlet'] == 'kötelező' && !tankorTagokLukasOrajaE($tankorId, $dt, $ora)) {
+ $ok = false;
+ }
+ } elseif (!isset($osztalyId)) {
+ // Szabad tanárok lekérdezése? (tanarSelect számára)
+ $Tanarok = getSzabadTanarok($dt, $ora);
+ }
+ if (isset($tanarId)) {
+ // Tanár ütközés ellenőrzés
+ if (!tanarLukasOrajaE($tanarId, $dt, $ora, $lr)) {
+ $_SESSION['alert'][] = 'message:utkozes:1:?:'.$dt.':'.$ora.':'.$tanarId;
+// unset($tanarId); $ok = false;
+ }
+ }
+ if (isset($teremId)) {
+ for ($i = 0; ($i < count($Termek) && $Termek[$i]['teremId'] != $teremId); $i++);
+ if ($i >= count($Termek)) { // nincs a szabad termek között
+ $_SESSION['alert'][] = 'message:wrong_data:pluszOra/terem:'.$ora.'. óra:'.$teremId;
+ unset($teremId);
+ }
+ }
+ } // ora
+ } // dt
+
+ // Action
+ if ($ok && $action == 'oraFelvetele') {
+ $eredet = $_POST['eredet'];
+ if (isset($ADAT['tipus'])) $tipus = $ADAT['tipus'];
+ else $tipus = 'normál';
+ if (oraFelvetele($dt, $ora, $tanarId, $tankorId, $teremId, $tipus, $eredet, $ADAT['kit'])) {
+ unset($_POST);
+ $_POST['dt'] = $dt; $_POST['tanarId'] = $tanarId;
+ unset($ora); unset($teremId); unset($tankorId);
+ $Orak = getTanarNapiOrak($tanarId, $dt);
+ $SzabadOrak = array();
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) if (!is_array($Orak[$i])) $SzabadOrak[] = $i;
+ $_SESSION['alert'][] = 'info:change_success';
+ }
+ } elseif ($action=='csoportos') {
+ $feladatTipusId = readVariable($_POST['feladatTipusId'],'id');
+ $leiras = readVariable($_POST['leiras'],'string');
+ $tanarIdk = readVariable($_POST['tanarIdk'],'id');
+ $lr = db_connect('naplo');
+ for ($i=0;$i<count($tanarIdk); $i++) {
+ $_ki=$tanarIdk[$i];
+ $_tipus='egyéb';
+ $_eredet='órarend';
+ $UJORAIDK[] = ujOraFelvesz(
+ array('dt'=>$dt,
+ 'ora'=>$ora,
+ 'ki'=> $_ki,
+ 'tipus'=>$_tipus,
+ 'eredet'=>$_eredet,
+ 'leiras'=>$leiras,
+ 'feladatTipusId'=>$feladatTipusId,
+ 'munkaido'=>'fennmaradó'),
+ $lr);
+ }
+ db_close($lr);
+ $_SESSION['alert'][] = 'info:'.count($UJORAIDK).'db órát felvettem!';
+ }
+
+ $ADAT['munkakozossegek'] = getMunkakozossegek($FILTER=array(),$SET=array('result' => 'indexed'));
+ $ADAT['mkTanar'] = getMunkakozossegTanaraMatrix();
+
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('ora', 'tanarId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'napTipusok' => array('tanítási nap','speciális tanítási nap'),
+ );
+ if (isset($dt)) {
+ $TOOL['oraSelect'] = array('tipus'=>'cella', 'orak' => $SzabadOrak, 'foglaltOrakkal' => true, 'post'=>array('osztalyId', 'tanarId', 'tankorId', 'dt', 'ora'));
+ if (!isset($osztalyId) || isset($tankorId)) $TOOL['tanarSelect'] = array('tipus'=>'cella', 'tanarok' => $Tanarok, 'post' => array('dt', 'ora', 'tankorId', 'teremId' ));
+ if (!isset($tanarId)) $TOOL['osztalySelect'] = array('tipus'=>'sor','paramName' => 'osztalyId', 'post'=>array('dt', 'ora', 'tankor', 'teremId'));
+ if (isset($osztalyId) || isset($tanarId) || isset($ora)) {
+ $TOOL['tankorSelect'] = array('tipus'=>'sor', 'paramName'=>'tankorId', 'tankorok' => $szabadTankorok, 'tolDt'=>$dt, 'igDt'=>$dt, 'post'=>array('osztalyId','tanarId','dt','ora','teremId'));
+ }
+ if (isset($ora)) $TOOL['teremSelect'] = array('tipus'=>'cella', 'paramName'=>'teremId', 'termek' => $Termek, 'post'=>array('osztalyId','tanarId','dt','ora','tankorId'));
+ }
+
+ getToolParameters();
+ } // admin vagy igazgató
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/pluszora.php b/mayor-orig/www/policy/private/naplo/haladasi/pluszora.php
new file mode 100644
index 00000000..abec9a9f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/pluszora.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ok, $dt, $ora, $tanarId, $tankorId, $teremId, $Orak, $ADAT;
+
+ if ($ok) putOraFelvetelForm($tankorId ,$tanarId, $dt, $ora, $teremId, $ADAT);
+
+ if (is_array($Orak)) if (isset($tanarId)) putOrak($Orak, _TANAR, $ADAT);
+ else {
+ putOrak($Orak, _OSZTALY, $ADAT);
+ }
+ if ($dt!='' && $ora!='') putLila($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/specialis-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/specialis-pre.php
new file mode 100644
index 00000000..8b42b475
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/specialis-pre.php
@@ -0,0 +1,95 @@
+<?php
+/*
+ module: naplo
+
+ TODO:
+ Egy-egy osztály hiányzását is meg lehetne valósítani - vegyük ki az osztályhoz - és csak az osztályhoz
+ tartozó órákat...
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:illegal_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/nap.php');
+
+ global $_TANEV;
+ if ($_TANEV['statusz']!='aktív') $_SESSION['alert'][] = 'page:nem_aktív_tanev:'.$_TANEV['tanev'];
+
+ if (isset($_POST['dt']) && $_POST['dt'] != '') $dt = $_POST['dt'];
+ elseif (__FOLYO_TANEV) $dt = getTanitasiNap(array('direction'=>'előre', 'napszam'=>1));
+ else $dt = $_TANEV['kezdesDt'];
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+
+ $Hetek = getOrarendiHetek();
+ $napTipusok = getNapTipusok();
+ $napAdat = getNapAdat($dt);
+
+ // csak a tanév alatt lehet speciális tanítási nap
+ $time = strtotime($dt);
+ if (
+ (strtotime($_TANEV['kezdesDt']) <= $time) and
+ ($time <= strtotime($_TANEV['zarasDt']))
+ ) {
+
+ if ($time < time()) $_SESSION['alert'][] = 'message:visszamenoleges_modositas';
+
+ if ($action == 'napiOrakTorlese') {
+ $tipus = ($_POST['tipus'] === '')?'':readVariable($_POST['tipus'], 'enum', null, $napTipusok);
+ if (isset($tipus)) {
+ napiOrakTorlese($dt, $tipus);
+ $napAdat = getNapAdat($dt);
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:napiOrakTorlese:hibás típus:'.$tipus;
+ }
+ } elseif ($action == 'orakBetoltese') {
+ $orarendiHet = $_POST['orarendiHet'];
+ if (in_array($orarendiHet, $Hetek)) {
+ orakBetoltese($dt, $orarendiHet);
+ $napAdat = getNapAdat($dt);
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:orakBetoltese:hibás hét:'.$orarendiHet;
+ }
+ } elseif ($action == 'specialisNap') {
+ $celOra = $_POST['celOra'];
+ $het = $_POST['het'];
+ $nap = $_POST['nap'];
+ $ora = $_POST['ora'];
+ specialisNap($dt, $celOra, $het, $nap, $ora);
+ $napAdat = getNapAdat($dt);
+ } elseif ($action == 'orakTorlese') {
+ if (is_array($_POST['ora'])) {
+ orakTorlese($dt, $_POST['ora']);
+ $napAdat = getNapAdat($dt);
+ }
+ }
+ }
+
+ $i = 0;
+ while ($i < count($napAdat) && strpos($napAdat[$i]['tipus'], 'tanítási nap') === false) $i++;
+ $vanTanitasiNap = ($i < count($napAdat));
+ $szabadOrak = getSzabadOrak($dt);
+ $munkatervek = getMunkatervek(array('result'=>'assoc','keyfield'=>'munkatervId'));
+
+
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array(), 'paramName' => 'dt', 'hanyNaponta' => 1, 'tolDt' => $_TANEV['kezdesDt'],
+ 'igDt' => $_TANEV['zarasDt'],
+
+// 'napTipusok' => array('tanítási nap', 'speciális tanítási nap'),
+// 'napokSzama' => 10
+ );
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/specialis.php b/mayor-orig/www/policy/private/naplo/haladasi/specialis.php
new file mode 100644
index 00000000..d855fd36
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/specialis.php
@@ -0,0 +1,17 @@
+<?php
+/*
+ module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $tools, $dt, $szabadOrak, $Hetek, $napTipusok, $napAdat, $vanTanitasiNap, $munkatervek;
+
+ putNapInfo($napAdat, $munkatervek);
+ napiOrakTorleseForm($napAdat, $napTipusok);
+ if ($vanTanitasiNap) specialisNapForm($dt, $szabadOrak, $Hetek);
+ // Csak akkor tölthetünk be órát, ha nincs óra még az adott napon
+ if (count($szabadOrak) == getMaxOra() - getMinOra() + 1) orakBetolteseForm($napAdat, $Hetek);
+ else orakTorleseForm($dt, $szabadOrak);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/stat-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/stat-pre.php
new file mode 100644
index 00000000..4596c54a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/stat-pre.php
@@ -0,0 +1,54 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ // Az oldalt minden jogosultsági szinten látjuk
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/nap.php');
+
+ $tanarId = readVariable($_POST['tanarId'],'numeric unsigned');
+ $osztalyId = readVariable($_POST['osztalyId'],'numeric unsigned');
+ if (__DIAK) $diakId = __USERDIAKID;
+ else $diakId = readVariable($_POST['diakId'], 'numeric unsigned', readVariable($_GET['diakId'], 'numeric unsigned'));
+
+ $tankorId = readVariable($_POST['tankorId'],'numeric unsigned');
+
+ if (!isset($tanarId) && !isset($diakId) && !isset($osztalyId) && __TANAR) $tanarId = __USERTANARID;
+ // tankörök lekérdzése
+ if (isset($diakId)) $Tankorok = getTankorByDiakId($diakId, __TANEV, array('tolDt' => $_TANEV['kezdesDt']));
+ elseif (isset($osztalyId)) $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV);
+ elseif (isset($tanarId)) $Tankorok = getTankorByTanarId($tanarId, __TANEV);
+
+ $tankorIds = array();
+ for ($i = 0; $i < count($Tankorok); $i++) $tankorIds[] = $Tankorok[$i]['tankorId'];
+
+ if (count($tankorIds) > 0) $tankorStat = getTankorStat($tankorIds);
+ if (isset($diakId)) {
+ $tankorStat['hianyzasStat'] = getDiakHianyzasStat($diakId, array('tankorIds'=>$tankorIds, 'tanev'=> __TANEV));
+ if (!isset($osztalyId)) {
+ $OI = getDiakOsztalya($diakId);
+ $osztalyId = $OI[0]['osztalyId'];
+ }
+ }
+ if (__NAPLOADMIN or __VEZETOSEG or __TANAR or __TITKARSAG) {
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'post'=>array('igDt'));
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post'=>array('igDt'));
+ if (isset($osztalyId)) {
+ $TOOL['diakSelect'] = array('tipus'=>'cella','paramName'=>'diakId', 'post'=>array('osztalyId','igDt'));
+ if (isset($diakId)) $TOOL['diakLapozo'] = array('tipus'=>'sor', 'paramName'=>'diakId', 'post'=>array('osztalyId','igDt'));
+ }
+ }
+ if (isset($diakId)) {
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId,'index.php?page=naplo&sub=hianyzas&f=diakLista&diakId='.$diakId),
+ 'titleConst' => array('_DIAKHIANYZASNAPLO','_DIAKHIANYZASLISTA'),
+ 'post' => array('tanev','tolDt','igDt','ho','osztaly'),
+ 'paramName'=>'diakId');
+ }
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/stat.php b/mayor-orig/www/policy/private/naplo/haladasi/stat.php
new file mode 100644
index 00000000..5cce9b8e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/stat.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Tankorok, $tankorIds, $tankorStat;
+
+ if (is_array($tankorStat)) putTankorStat($tankorStat);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/tankor-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/tankor-pre.php
new file mode 100644
index 00000000..afb9671b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/tankor-pre.php
@@ -0,0 +1,29 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+
+ $tankorId = readVariable($_POST['tankorId'],'id');
+/* $oraElmarad = readVariable($_POST['oraElmarad'],'string');
+ $oraMegtartva = readVariable($_POST['oraMegtartva'],'string');
+ if (isset($oraElmarad)) {
+ $_JSON['toDo'] = 'oraElmarad'; // processJSON js-ben használjuk
+ $_JSON['oraId'] = $oraId;
+ } elseif (isset($oraMegtartva)) {
+ $_JSON['toDo'] = 'oraMegtartva'; // processJSON js-ben használjuk
+ $_JSON['oraId'] = $oraId;
+ }
+*/
+ $ADAT['tankorStat'] = getOraStatByTankorId($tankorId);
+// $_JSON['html'] = putOraAdat($ADAT);
+// $ADAT['oraAdat']['debug'] = serialize($_POST);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/tankor.php b/mayor-orig/www/policy/private/naplo/haladasi/tankor.php
new file mode 100644
index 00000000..2841606e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/tankor.php
@@ -0,0 +1,10 @@
+<?php
+/*
+ module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+ global $ADAT;
+ putTankorStat($ADAT);
+echo '..';
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/teremModositas-pre.php b/mayor-orig/www/policy/private/naplo/haladasi/teremModositas-pre.php
new file mode 100644
index 00000000..b7bcf782
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/teremModositas-pre.php
@@ -0,0 +1,102 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ global $_TANEV;
+ if ($_TANEV['statusz']!='aktív') $_SESSION['alert'][] = 'page:nem_aktív_tanev:'.$_TANEV['tanev'];
+
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', date('Y-m-d'));
+ $ADAT['ora'] = $ora = readVariable($_POST['ora'], 'numeric', null);
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'numeric unsigned', null);
+ if (!isset($tanarId)) $osztalyId = readVariable($_POST['osztalyId'], 'id', null);
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'], 'id', null);
+ $ADAT['teremId'] = $teremId = readVariable($_POST['teremId'], 'id', null);
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['napiMinOra'] = $napiMinOra = getMinOra();
+ $ADAT['napiMaxOra'] = $napiMaxOra = getMaxOra();
+
+ if (isset($dt)) {
+ // órarendiÓrák betöltése - ha szükséges
+ //checkNaplo($dt);
+ /* Az órákat nem töltjük itt be! */
+
+ if ($action=="teremModosit") {
+ $oraId = readVariable($_POST['oraId'],'id',null);
+ $ujTeremId = readVariable($_POST['ujTeremId'],'id',null);
+ $ADAT['oraAdat'] = getOraAdatById($oraId);
+ $lr = db_connect('naplo');
+ db_start_trans($lr);
+ if (($x = checkHaladasiSzabadTerem($dt,$ora,$ujTeremId,$lr)) === true)
+ haladasiTeremModositas($oraId,$ujTeremId,$lr);
+ else
+ if ($ujTeremId != $ADAT['oraAdat']['teremId']) $_SESSION['alert'][] = 'info:nem_szabadTerem:'.$ADAT['oraAdat']['teremId'].' -- '.$ujTeremId;
+ db_commit($lr);
+ db_close($lr);
+
+ }
+
+ if (isset($tankorId)) {
+ // A tankör tanárainak lekérdezése (tanarSelect számára)
+ $Tanarok = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => $dt, 'igDt' => $dt, 'result' => 'nevsor'));
+ if (isset($tanarId)) {
+ // A tanár a tankör tanára-e?
+ for ($i = 0; ($i < count($Tanarok) && $Tanarok[$i]['tanarId'] != $tanarId); $i++);
+ if ($i >= count($Tanarok)) {
+ $_SESSION['alert'][] = 'message:wrong_data:pluszOra:Nem a tankör tanára:'."$tankorId/$tanarId";
+ $Tanarok[] = array('tanarId' => $tanarId, 'tanarNev' => getTanarNevById($tanarId));
+ $mkId = getTankorMkId($tankorId);
+ $tanarMkIds = getTanarMunkakozosseg($tanarId);
+ $ADAT['tanarId'] = $Tanarok[0]['tanarId'];
+ }
+ }
+ // Ha csak egy tanarId van, akkor azt állítsuk be!
+ if (count($Tanarok) == 1 && !isset($tanarId)) {
+ $tanarId = $Tanarok[0]['tanarId'];
+ if (isset($osztalyId)) unset($osztalyId);
+ }
+ }
+
+ $ADAT['ki'] = $tanarId;
+ $ADAT['kit'] = $tanarId;
+ $ADAT['oraId'] = getOraIdByPattern($ADAT);
+ $ADAT['oraAdat'] = getOraAdatById($ADAT['oraId']);
+ $ADAT['szabadTerem'] = getSzabadTermek(array('dt' => $dt, 'ora' => $ora));
+ $ADAT['tankorLetszam'] = getTankorLetszam($ADAT['oraAdat']['tankorId'], array('refDt'=>$ADAT['dt']));
+ }
+
+ // toolBar
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('ora', 'tanarId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'napTipusok' => array('tanítási nap','speciális tanítási nap'),
+ );
+ if (isset($dt)) {
+ $TOOL['oraSelect'] = array('tipus'=>'cella', 'orak' => $SzabadOrak, 'foglaltOrakkal' => true, 'post'=>array('osztalyId', 'tanarId', 'tankorId', 'dt', 'ora'));
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'tanarok' => $Tanarok, 'post' => array('dt', 'ora', 'tankorId', 'teremId' ));
+ //if (!isset($osztalyId) || isset($tankorId)) $TOOL['tanarSelect'] = array('tipus'=>'cella', 'tanarok' => $Tanarok, 'post' => array('dt', 'ora', 'tankorId', 'teremId' ));
+ //if (!isset($tanarId)) $TOOL['osztalySelect'] = array('tipus'=>'sor','paramName' => 'osztalyId', 'post'=>array('dt', 'ora', 'tankor', 'teremId'));
+ //if (isset($osztalyId) || isset($tanarId) || isset($ora)) {
+ // $TOOL['tankorSelect'] = array('tipus'=>'sor', 'paramName'=>'tankorId', 'tankorok' => $szabadTankorok, 'tolDt'=>$dt, 'igDt'=>$dt, 'post'=>array('osztalyId','tanarId','dt','ora','teremId'));
+ //}
+ //if (isset($ora)) $TOOL['teremSelect'] = array('tipus'=>'cella', 'paramName'=>'teremId', 'termek' => $Termek, 'post'=>array('osztalyId','tanarId','dt','ora','tankorId'));
+ }
+
+ getToolParameters();
+ } // admin vagy igazgató
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/haladasi/teremModositas.php b/mayor-orig/www/policy/private/naplo/haladasi/teremModositas.php
new file mode 100644
index 00000000..d1ddccb6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/haladasi/teremModositas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if ($ADAT['oraId']>0) putTeremModositas($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/diak-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/diak-pre.php
new file mode 100644
index 00000000..adbf65d0
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/diak-pre.php
@@ -0,0 +1,212 @@
+<?php
+/*
+ Module: naplo
+*/
+ global $_TANEV;
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__TANAR && !__DIAK && !__VEZETOSEG && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/nap.php');
+
+ require_once('skin/classic/module-naplo/html/share/hianyzas.phtml');
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+
+ if (__DIAK) {
+ $diakId = defined('__USERDIAKID') ? __USERDIAKID : null;
+ } else {
+ $diakId = readVariable($_POST['diakId'], 'numeric unsigned', readVariable($_GET['diakId'], 'numeric unsigned'));
+ $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', readVariable($_GET['osztalyId'], 'numeric unsigned'));
+
+ if (!isset($osztalyId) && !isset($diakId) && __TANAR && __OSZTALYFONOK) $osztalyId = $_OSZTALYA[0];
+ if ($diakId!='' && $osztalyId=='') {
+ $OI = getDiakOsztalya($diakId, array('tolDt'=>date('Y-m-d'),'tanev'=>__TANEV) ); //--ITT a mai napot vesszük alapul, ami osztályváltáskor nem jó sajnos......
+ $osztalyId = $OI[0]['osztalyId'];
+ }
+ if ($osztalyId != '') {
+ $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId);
+ }
+ }
+
+
+if (isset($diakId) && $diakId != '') {
+
+ // ez gyönyörű szép :)
+ $_POST['diakId'] = $ADAT['diakId'] = $diakId;
+ $_POST['osztalyId'] = $osztalyId;
+ $ADAT['diak']['nev'] = getDiakNevById($diakId);
+
+ /* --- igDt, tolDt --- */
+ $tolDt = readVariable($_POST['tolDt'],'date',date('Y-m-d', mktime(0,0,0,date('m'),1,date('Y'))));
+
+ $igDt = $_TANEV['zarasDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ // $ho beállítása
+ if ($_tmp=readVariable($_POST['dt'],'date',readVariable($_GET['dt'],'date'))) {
+ $ho = intval(date('m',strtotime($_tmp)));
+ } else {
+ $ho = readVariable($_POST['ho'],'numeric','',array(1,2,3,4,5,6,7,8,9,10,11,12));
+ if ($ho=='') $ho = readVariable($_GET['ho'],'numeric',
+ intval(date('m',strtotime($tolDt))),
+ array(1,2,3,4,5,6,7,8,9,10,11,12));
+ }
+ $ADAT['ho'] = $ho;
+ /* --- */
+ $DIAKOSZTALYAI = getDiakokOsztalyai(array($diakId),array('tanev'=>__TANEV,'tolDt'=>$tolDt,'igDt'=>$igDt)); // diakId => (o1, o2, ...)
+ $munkatervIds = getMunkatervByOsztalyId($DIAKOSZTALYAI[$diakId], array('result'=>'idonly')); // lehet esetleg több is neki!
+ define(__OFO, (
+ is_array($_OSZTALYA) &&
+ count(array_intersect($DIAKOSZTALYAI[$diakId],$_OSZTALYA)) > 0 ));
+ if ($_TANEV['statusz']=='aktív' && (__NAPLOADMIN || __OFO || __VEZETOSEG)) {
+ $ITIPUSOK = getIgazolasTipusLista();
+ $ITIPUSOK['engedelyezett'][] = 'orvosi';
+ if (__NAPLOADMIN || __OFO) $ITIPUSOK['engedelyezett'][] = 'szülői';
+ if (__NAPLOADMIN || __OFO) $ITIPUSOK['engedelyezett'][] = 'osztályfőnöki';
+ if (__NAPLOADMIN || __OFO || __VEZETOSEG) $ITIPUSOK['engedelyezett'][] = 'tanulmányi verseny';
+ if (__NAPLOADMIN || __OFO || __VEZETOSEG) $ITIPUSOK['engedelyezett'][] = 'nyelvvizsga';
+ if (__NAPLOADMIN || __VEZETOSEG) $ITIPUSOK['engedelyezett'][] = 'igazgatói';
+ $ITIPUSOK['engedelyezett'][] = 'hatósági';
+ $ITIPUSOK['engedelyezett'][] = 'pályaválasztás';
+ $ADAT['igazolasTipusok']=$ITIPUSOK;
+
+ $igazolas = readVariable($_POST['igazolas'],'emptystringnull','',$ITIPUSOK['engedelyezett']);
+ if ($igazolas=='') $igazolas = readVariable($_GET['igazolas'],'emptystringnull','',$ITIPUSOK['engedelyezett']);
+ if ($igazolas=='') $igazolas = 'orvosi';
+ $_POST['igazolas'] = $igazolas;
+ //if (!in_array($igazolas,$ITIPUSOK['engedelyezett']))
+ //$_SESSION['alert'][] = '::hibás beállítás('.$igazolas.')';
+
+ $ADAT['igazolas'] = $igazolas;
+
+ // Hatarido
+ if (__NAPLOADMIN || __VEZETOSEG) define('__BEIRAS_HATARIDO',_ZARAS_HATARIDO);
+ elseif (__OFO) define('__BEIRAS_HATARIDO',_OFO_HIANYZAS_HATARIDO);
+ else define('__BEIRAS_HATARIDO',_HIANYZAS_HATARIDO);
+
+ //$hatarido = _LEGKORABBI_IGAZOLHATO_HIANYZAS;
+ $hatarido = getNemIgazolhatoDt($diakId, $munkatervIds);
+
+ if (__NAPLOADMIN || __VEZETOSEG) {
+ if (strtotime($hatarido) > strtotime(_ZARAS_HATARIDO))
+ $hatarido = _ZARAS_HATARIDO;
+ } elseif (!__OFO) {
+ $hatarido = date('Y-m-d');
+ } // else nem írjuk felül
+
+ define('__STATUS_HATARIDO',$hatarido);
+
+ // Beírások
+ /*
+ a beíró függvényeknek átadjuk, hogy mit szeretnénk elérni,
+ amik lekérdezik a szükséges adatokat, és esetleges jogosultságokat! (darabszám)
+ a határidőre vonatkozó beállításokat a -pre nek kell végeznie!
+ */
+ if ($action == 'statusModositas') {
+
+ $hianyzasId = readVariable($_GET['hianyzasId'],'id');
+ if ($hianyzasId!='')
+ $_HDATA = getHianyzasById($hianyzasId);
+ // lekérdezzük, hogy mi a hiányzás dátuma, státusza? ($dt,$statusz)
+ if (is_array($_HDATA) && count($_HDATA)==1) {
+ if (strtotime(__STATUS_HATARIDO) < strtotime($_HDATA[0]['dt'])) {
+ if ($_HDATA[0]['statusz']=='igazolatlan') {
+ $_statusz = 'igazolt';
+ $_igtip = $igazolas;
+ } else {
+ $_statusz = 'igazolatlan';
+ $_igtip = '';
+ }
+ $IGAZOLANDOK[] = array('id'=> $hianyzasId,'statusz'=>$_statusz,'igazolas'=>$_igtip);
+ hianyzasIgazolas($IGAZOLANDOK,$diakId);
+ } else {
+ $_SESSION['alert'][] = 'message:deadline_expired'.__STATUS_HATARIDO;
+ }
+ } else { // nincs hianyzasId megadva, vagy nincs hozzá mégsem (pl már kitörölték egyszer) bejegyzés.
+
+ $_dt = readVariable($_GET['dt'],'date');
+ $_ora = readVariable($_GET['ora'],'numeric');
+ $_tipus = 'hiányzás';
+ $_statusz = readVariable($_POST['status'],'emptystringnull','igazolatlan',array('igazolt','igazolatlan'));
+
+ // ekkor vajon milyen oraId-jű orája volt a diakIdnek?
+ // esetleg több is! (regisztralando, de nem kötelező bejárnia)
+ if (strtotime(__BEIRAS_HATARIDO) <= strtotime($_dt)) {
+ oraHianyzasBeiras($_dt,$_ora,$diakId,array('tipus'=>$_tipus,'statusz'=>$_statusz));
+ } else {
+ $_SESSION['alert'][] = 'message:deadline_expired:'.__BEIRAS_HATARIDO;
+ }
+
+ }
+
+ } elseif ($action == 'napiHianyzasBeiras') {
+
+ // dt és diakId alapján lekérdezzük, beírjuk, nincs mese.
+ // illetve van mese: lehet hogy csak a statuszokat lehet módosítani...
+
+ $_dt = readVariable($_POST['dt'],'date');
+ $_tipus = 'hiányzás';
+ $_statusz = readVariable($_POST['status'],'emptystringnull','igazolatlan',array('igazolt','igazolatlan'));
+ $_igazolas = ($_statusz=='igazolatlan') ? '' : $igazolas;
+ napiHianyzasBeiras($_dt,$diakId,array('tipus'=>$_tipus,'statusz'=>$_statusz,'igazolas'=>$_igazolas));
+
+ } elseif ($action == 'igazolasTipusValtas') {
+ // itt már elvileg nincs mit tennünk (v2.4)
+ }
+
+ } else {
+ //define('__BEIRAS_HATARIDO','');
+ //define('__STATUS_HATARIDO','');
+ }
+
+ /* --- tanuló hiányzásai (figyelem! dátumok!) --- */
+ // --TODO: 9!!!
+ $ADAT['napok'] = getHonapNapjai($ho, $munkatervIds);
+ for ($i=0; $i<count($ADAT['napok']); $i++)
+ $_NAPOK[] = $ADAT['napok'][$i]['dt'];
+ $ADAT['hianyzasok'] = getHianyzasByDt(array($diakId),$_NAPOK);
+ $ADAT['diak']['kepzes'] = getKepzesByDiakId($diakId, array('result'=>'assoc','dt'=>$_NAPOK[count($_NAPOK)-1])); // dátum nélkül ez a korábbi összes képzését adná. Vegyük a hónap utolsó napján...
+
+} // ha van nem üres diakId
+
+ if (!__DIAK) {
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('ho','igazolas'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'diakId' => $diakId, 'post'=>array('tolDt','osztalyId','ho','igazolas'));
+ //$TOOL['tanarOraLapozo'] = array('tipus'=>'sor', 'oraId' => $oraId, 'post'=>array('tanarId'));
+
+ }
+ if ($diakId != '') {
+ $TOOL['igazolasOsszegzo'] = array('tipus' => 'sor','paramName' => 'igazolasOsszegzo', 'post' => array());
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=hianyzas&f=diakLista','index.php?page=naplo&sub=haladasi&f=stat&diakId='.$diakId),
+ 'titleConst' => array('_DIAKHIANYZASLISTA','_HALADASISTATISZTIKA'),
+ 'post' => array('tanev','tolDt','igDt','ho','osztaly'),
+ 'paramName'=>'diakId');
+ }
+ if (__POLICY == 'parent') $TOOL['pageHelp'] = 'PAGEHELP_SZULO';
+ else $TOOL['pageHelp'] = 'PAGEHELP';
+ if ($ho!='') $TOOL['honapLapozo'] = array('tipus'=>'sor', 'paramName' => 'ho', 'ho'=>$ho,
+ 'diakId'=>$diakId, // ideiglenesen!
+ 'post'=>array('diakId','osztalyId','igazolas'));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/diak.php b/mayor-orig/www/policy/private/naplo/hianyzas/diak.php
new file mode 100644
index 00000000..5eb61423
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/diak.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+ global $tools,$tolDt,$igDt,$diakId,$igazolas;
+
+ if (is_array($ADAT) && $diakId!='') putDiakHianyzasNaptar($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan-pre.php
new file mode 100644
index 00000000..5ffb0899
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan-pre.php
@@ -0,0 +1,26 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__TANAR && !__DIAK && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ $ADAT['diakId'] = $diakId = readVariable($_POST['diakId'], 'id', readVariable($_GET['diakId'], 'id'));
+
+ if (isset($diakId)) {
+ $ADAT['diakNev'] = getDiakNevById($diakId);
+ $ADAT['igazolatlan'] = getDiakIgazolatlan($diakId);
+ }
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('ho'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'diakId' => $diakId, 'post'=>array('tolDt','osztalyId','ho'));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan.php b/mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan.php
new file mode 100644
index 00000000..c934b7c8
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/diakIgazolatlan.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['diakId'])) putDiakIgazolatlan($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/diakLista-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/diakLista-pre.php
new file mode 100644
index 00000000..4818d84d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/diakLista-pre.php
@@ -0,0 +1,101 @@
+<?php
+/*
+ Module: naplo
+
+ --TODO :: check (diak-prev2?
+*/
+ global $_TANEV;
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__TANAR && !__DIAK && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/orarend.php');
+
+ require_once('skin/classic/module-naplo/html/share/hianyzas.phtml');
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+
+ if (__DIAK) {
+ $diakId = defined('__USERDIAKID') ? __USERDIAKID : 0;
+ } else {
+ $diakId = readVariable($_POST['diakId'], 'numeric unsigned', readVariable($_GET['diakId'], 'numeric unsigned'));
+
+ $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', readVariable($_GET['osztalyId'], 'numeric unsigned'));
+
+ if (!isset($osztalyId) && !isset($diakId) && __TANAR && __OSZTALYFONOK) $osztalyId = $_OSZTALYA[0];
+ if (isset($diakId) && !isset($osztalyId)) {
+ $OI = getDiakOsztalya($diakId);
+ $_POST['osztalyId'] = $osztalyId = $OI[0]['osztalyId'];
+ }
+ if ($osztalyId!='') {
+ $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId);
+ }
+ }
+
+
+if (isset($diakId) && $diakId != '') {
+
+ $_POST['diakId'] = $ADAT['diakId'] = $diakId;
+ $_POST['osztalyId'] = $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['diak']['nev'] = getDiakNevById($diakId);
+
+ /* --- igDt, tolDt --- */
+ $tolDt = readVariable($_POST['tolDt'], 'datetime', date('Y-m-d', mktime(0,0,0,date('m'),1,date('Y'))));
+ $igDt = $_TANEV['zarasDt'];
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ // $ho beállítása
+ $ho = readVariable($_POST['ho'],'numeric','',array(1,2,3,4,5,6,7,8,9,10,11,12));
+ if ($ho=='') $ho = readVariable($_GET['ho'],'numeric',
+ intval(date('m',strtotime($tolDt))),
+ array(1,2,3,4,5,6,7,8,9,10,11,12));
+ $ADAT['ho'] = $ho;
+ /* --- */
+
+ $DIAKOSZTALYAI = getDiakokOsztalyai(array($diakId));
+ define(__OFO, ( is_array($_OSZTALYA) && count(array_intersect($DIAKOSZTALYAI[$diakId],$_OSZTALYA)) > 0 ));
+
+ /* --- tanuló hiányzásai (figyelem! dátumok!) --- */
+ // --TODO: 9!!!
+
+ $ADAT['napok'] = getHonapNapjai($ho);
+ for ($i=0; $i<count($ADAT['napok']); $i++)
+ $_NAPOK[] = $ADAT['napok'][$i]['dt'];
+ $ADAT['hianyzasok'] = getHianyzasByDt(array($diakId),$_NAPOK);
+
+} // ha van nem üres diakId
+
+ if (!__DIAK) {
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('ho'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'diakId' => $diakId, 'post'=>array('tolDt','osztalyId','ho'));
+ //$TOOL['tanarOraLapozo'] = array('tipus'=>'sor', 'oraId' => $oraId, 'post'=>array('tanarId'));
+
+ }
+ if ($diakId != '') {
+ $TOOL['igazolasOsszegzo'] = array('tipus' => 'sor','paramName' => 'igazolasOsszegzo', 'post' => array());
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=hianyzas&f=diak','index.php?page=naplo&sub=haladasi&f=stat&diakId='.$diakId),
+ 'titleConst' => array('_DIAKHIANYZASNAPTAR','_HALADASISTATISZTIKA'),
+ 'post' => array('tanev','osztaly','tolDt','ho'),
+ 'paramName'=>'diakId');
+ }
+ if ($ho != '') $TOOL['honapLapozo'] = array('tipus'=>'sor', 'paramName' => 'ho', 'ho'=>$ho, 'post'=>array('diakId','osztalyId'));
+ getToolParameters();
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/diakLista.php b/mayor-orig/www/policy/private/naplo/hianyzas/diakLista.php
new file mode 100644
index 00000000..f85c9f9b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/diakLista.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+ global $tools,$tolDt,$igDt,$diakId,$igazolas;
+
+ if (is_array($ADAT) && $diakId!='') putDiakHianyzasLista($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/hianyzas-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/hianyzas-pre.php
new file mode 100644
index 00000000..ea204c20
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/hianyzas-pre.php
@@ -0,0 +1,7 @@
+<?php
+
+ if (__DIAK) header('Location: '.location('index.php?page=naplo&sub=hianyzas&f=diak'));
+ elseif (__TITKARSAG) header('Location: '.location('index.php?page=naplo&sub=hianyzas&f=info'));
+ else header('Location: '.location('index.php?page=naplo&sub=hianyzas&f=osztaly'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/hianyzas.php b/mayor-orig/www/policy/private/naplo/hianyzas/hianyzas.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/hianyzas.php
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/info-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/info-pre.php
new file mode 100644
index 00000000..0ee4c280
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/info-pre.php
@@ -0,0 +1,32 @@
+<?php
+
+ require_once('include/modules/naplo/share/hianyzas.php');
+
+ $SSSHH .= '<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js" async defer></script>';
+
+ $dt = $refTolDt = readVariable($_POST['refTolDt'],'date',date('Y-m-d',strtotime('-7 day')));
+ $refIgDt = readVariable($_POST['refIgDt'],'date',date('Y-m-d'));
+
+ $datediff = strtotime($refIgDt) - strtotime($refTolDt);
+ $dbNap = floor($datediff / (60 * 60 * 24));
+
+ $ADAT = array();
+
+ if (strtotime($dt) <= strtotime($refIgDt)) {
+ while (strtotime($dt)<= strtotime($refIgDt)) {
+ if (date('N',strtotime($dt))<=5) $ADAT[$dt] = getDarabDiakHianyzas($dt);
+ $dt = date('Y-m-d',strtotime('+1 day',strtotime($dt)));
+ }
+ }
+
+ $TOOL['datumTolIgSelect'] = array(
+ 'tipus' => 'sor', 'title' => 'REFDT',
+ 'post'=>array('tolDt','tanarId','osztalyId','tankorId','mkId','diakId','telephely'),
+ 'tolParamName' => 'refTolDt', 'igParamName' => 'refIgDt', 'hanyNaponta' => 1,
+ 'tolDt' => $_TANEV['elozoZarasDt'],
+ 'igDt' => $_TANEV['kovetkezoKezdesDt'],
+ 'override' => true,
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/info.php b/mayor-orig/www/policy/private/naplo/hianyzas/info.php
new file mode 100644
index 00000000..ab5bb381
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/info.php
@@ -0,0 +1,5 @@
+<?php
+
+ global $ADAT;
+ putDiakHianyzasInfo($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/nap-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/nap-pre.php
new file mode 100644
index 00000000..7eb2592a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/nap-pre.php
@@ -0,0 +1,161 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__TANAR && !__NAPLOADMIN && !__DIAK && !__VEZETOSEG)
+ $_SESSION['alert'][] = 'page:illegal_access';
+
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/share/date/names.php');
+
+ require_once('skin/classic/module-naplo/html/share/hianyzas.phtml');
+
+ if (__DIAK) $diakId = __USERDIAKID;
+ else {
+ $diakId = readVariable($_POST['diakId'],'numeric',readVariable($_GET['diakId'],'id'));
+ if ($diakId=='') return false;
+ }
+ $ADAT['diakId'] = $diakId;
+
+ $dt = readVariable($_POST['dt'],'datetime',readVariable($_GET['dt'],'datetime'));
+ if ($dt=='') return false;
+ $nap = date('w',strtotime($dt));
+
+ define('__MAX_ORA',getMaxOra());
+ define('__MIN_ORA',getMinOra());
+
+ $ADAT['nevsor'] = array(
+ 'idk' => array($diakId),
+ 'adatok' => getTankorByDiakId($diakId,__TANEV,array('tolDt'=>$dt,'igDt'=>$dt)),
+ 'nevek' => getDiakokById(array($diakId))
+ );
+
+ {
+ /* jogosultság */
+ //$DIAKOSZTALYAI = getDiakokOsztalyai(array($diakId));
+ //define(__OFO, (is_array($_OSZTALYA) && count(array_intersect($DIAKOSZTALYAI[$diakId],$_OSZTALYA)) > 0 ));
+
+ /* --- */
+ $TANKORIDK = getTankorByDiakId($diakId, __TANEV, $SET = array('csakId' => true, 'tolDt' => $dt, 'igDt' => $dt));
+
+ $tmpOrak = getOrak($TANKORIDK,array('tolDt'=>$dt,'igDt'=>$dt,'elmaradokNelkul'=>true));
+ $ADAT['orak'] = $tmpOrak['orak'];
+ if (is_array($ADAT['orak']) && count($ADAT['orak'])>0)
+ foreach($ADAT['orak'] as $tankorId => $OA1)
+ foreach($OA1 as $ora => $OA2)
+ foreach($OA2 as $tankorId => $OA)
+ $ORAI[] = $OA;
+ $ADAT['jogosultsag'] = getHianyzasJogosultsag($ORAI, array('idk'=>array($diakId)));
+ unset($ORAI);
+
+ /* rögzítés */
+ if ($action == 'hianyzokRogzitese' && (__TANAR || __NAPLOADMIN || __VEZETOSEG)) {
+ //$EDDIG = getHianyzasByOraId($ORAADAT['oraId'],array('csakId'=>true));
+ $EDDIG = getHianyzasByDt(array($diakId),array($dt),array('csakId'=>true));
+ $MARADNAK = $H = $TORLENDOK = array();
+ // először vizsgáljuk meg, hogy hol hiányzott (mert ekkor f betűs nem lehet)
+ reset($_POST);
+ foreach($_POST as $_kulcs => $_ertek) {
+ if (substr($_kulcs,0,8)=='HIANYZOK') {
+ list($_mi,$_oraId) = explode('_',$_kulcs);
+ list($_diakId,$_dt,$_ora,$_tipus,$_hid) = explode('/',$_ertek);
+ if ($_tipus=='hiányzás') { // akkor f betűsök nem lehetnek
+ $H[$_diakId][$_dt][$_ora] = true;
+ $H2[$_diakId][$_oraId] = true;
+ }
+ }
+ }
+ // majd állítsuk elő a tömböket
+ reset($_POST);
+ foreach($_POST as $_kulcs => $_ertek) {
+ if (substr($_kulcs,0,8)=='HIANYZOK') {
+ /* Itt az __id most oraId */
+ list($__r1,$__id,$__r2) = explode('_',$_kulcs);
+ list($_diakId,$_dt,$_ora,$_tipus,$_hid) = explode('/',$_ertek);
+// if (!isset($H[$_diakId][$_dt][$_ora]) || $_tipus=='hiányzás') {
+ if (!isset($H2[$_diakId][$__id]) || $_tipus=='hiányzás') {
+ if ($_hid!='') {
+ $MARADNAK[] = $_hid;
+ if ($_tipus=='késés') $PERCEK[$_hid]=intval($_POST['PERC_'.$__id]);
+ } elseif ($_tipus!='') {
+ $_perc = intval($_POST['PERC_'.$__id]);
+ //$_oraId = $ADAT['orak'][$dt];
+ //list($_tankorId,$OA) = each($ADAT['orak'][$dt][$_ora]);
+ // EZ HIBÁS! Egy időben több óra is lehet! Az adat postként rendelkezsére áll, használjuk azt fel!
+ $BEIRANDOK[] = array('diakId'=>$_diakId,'tipus'=>$_tipus,'id'=>$_hid,'dt'=>$_dt,'ora'=>$_ora,'perc'=>$_perc,'oraId'=>$__id);
+ }
+ }
+ }
+ }
+ $TORLENDOK = (is_array($EDDIG)) ? array_diff($EDDIG,$MARADNAK) : array();
+ reset($_POST);
+ foreach($_POST as $_kulcs => $_ertek) {
+ if (substr($_kulcs,0,8) == 'IGAZOLAS') {
+ for ($i=0; $i<count($_ertek); $i++) {
+ list($_diakId,$ures1,$ures2,$_igtip,$_hid) = explode('/',$_ertek[$i]);
+ if ($_hid!='' && !in_array($_hid,$TORLENDOK)) {
+ if ($_igtip!='') $_statusz='igazolt' ; else $_statusz ='igazolatlan';
+ $IGAZOLANDOK[] = array('id'=> $_hid,'diakId'=>$_diakId,'statusz'=>$_statusz,'igazolas'=>$_igtip);
+ }
+ }
+ }
+ }
+ // végül töröljünk, regisztráljunk, igazoljunk
+ // esetleg okosan kitalálhatjuk, hogy ha egy időpontban van órája, akkor csak egy helyen lehet? (Pl ahol kötelezően kellene lennie...)
+ if (is_array($EDDIG) && is_array($MARADNAK)) {
+ hianyzasTorles($TORLENDOK);
+ }
+ hianyzasRegisztralas(array(),$BEIRANDOK);
+ hianyzasIgazolas($IGAZOLANDOK);
+ hianyzasPercUpdate($PERCEK);
+
+ }
+ // lekérdezés #2
+ // $ADAT['nevsor'] // lásd feljebb
+ $ADAT['hianyzok'] = array($diakId);
+ $ADAT['hianyzasok'] = getHianyzasByDt(array($diakId),array('dt'=>$dt));
+ $ADAT['tankorok'] = getTankorByDiakId($diakId, __TANEV, $SET = array('csakId' => false, 'tolDt' => $dt, 'igDt' => $dt,'result'=>'multiassoc'));
+ $ADAT['tankorTipus'] = getTankorTipusok();
+ // ez így egy kicsit túl megengedő. Ha pl egy tárgyból csak az első órán van felmentve, de ugyanaz a tankör szerepel később is (pl második), akkor ida is felmentett lesz...
+ // holott arról nincs fm-tése... Óránként külön kellene vizsgálni... :(
+ $ADAT['felmentett'] = getTankorDiakFelmentes($diakId, __TANEV, array('result'=>'multiassoc','tolDt' => $dt, 'igDt' => $dt, 'nap'=>$nap)); // !!!
+ $ADAT['dt'] = $dt;
+ $ADAT['diak']['nev'] = getDiakNevById($diakId);
+ $OI = getDiakOsztalya($diakId);
+ $osztalyId = $OI[0]['osztalyId'];
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId);
+ $ADAT['napiMinOra'] = getMinOra();
+ $ADAT['napiMaxOra'] = getMaxOra();
+
+ }
+ $_diakJogviszony=getDiakJogviszonyByDts( array($ADAT['diakId']), array($ADAT['dt']) );
+ $ADAT['diakJogviszony'] = $_diakJogviszony[$ADAT['diakId']][$ADAT['dt']]['statusz'];
+ // tanarSelect tul képpen csak readnly
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'sor', 'post' => array('diakId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])),
+ 'napTipusok' => array('tanítási nap', 'speciális tanítási nap'),
+ 'lapozo' => true
+ );
+// $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('ho'));
+ if (!__DIAK) $TOOL['diakSelect'] = array('tipus' => 'cella', 'diakId' => $diakId, 'post' => array('dt'));
+ if ($diakId!='') $TOOL['igazolasOsszegzo'] = array('tipus' => 'cella','paramName' => 'igazolasOsszegzo', 'post' => array());
+
+// $TOOL['tanuloNapLapozo'] = array('tipus'=>'sor', 'dt' => $dt, 'post'=>array('diakId','dt'));
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/nap.php b/mayor-orig/www/policy/private/naplo/hianyzas/nap.php
new file mode 100644
index 00000000..de542e68
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/nap.php
@@ -0,0 +1,14 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__TANAR && !__NAPLOADMIN && !__DIAK)
+ $_SESSION['alert'][] = 'page:illegal_access';
+
+
+ global $ORAADAT,$ADAT;
+
+ if (is_array($ADAT))
+ putHianyzok($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/oktstat-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/oktstat-pre.php
new file mode 100644
index 00000000..2fce3e26
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/oktstat-pre.php
@@ -0,0 +1,33 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__TANAR && !__NAPLOADMIN && !__DIAK && !__VEZETOSEG)
+ $_SESSION['alert'][] = 'page:illegal_access';
+
+# require_once('include/modules/naplo/share/ora.php');
+# require_once('include/modules/naplo/share/orarend.php');
+# require_once('include/modules/naplo/share/tankor.php');
+# require_once('include/modules/naplo/share/diak.php');
+# require_once('include/modules/naplo/share/tanar.php');
+# require_once('include/modules/naplo/share/hianyzas.php');
+# require_once('include/modules/naplo/share/hianyzasModifier.php');
+# require_once('include/modules/naplo/share/szemeszter.php');
+# require_once('include/modules/naplo/share/osztaly.php');
+# require_once('include/modules/naplo/share/kepzes.php');
+# require_once('include/share/date/names.php');
+#
+# require_once('skin/classic/module-naplo/html/share/hianyzas.phtml');
+
+ $tanev = readVariable($_POST['tanev'],'numeric unsigned',__TANEV);
+
+ $ADAT = getOktoberiStatisztika($tanev);
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'action' => 'tanevValasztas', 'post' => array('tanev'));
+
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/oktstat.php b/mayor-orig/www/policy/private/naplo/hianyzas/oktstat.php
new file mode 100644
index 00000000..ec4b017a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/oktstat.php
@@ -0,0 +1,12 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR && !__NAPLOADMIN && !__DIAK && !__VEZETOSEG)
+ $_SESSION['alert'][] = 'page:illegal_access';
+
+ global $ADAT;
+
+ if (is_array($ADAT))
+ putOktoberiStatisztika($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/ora-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/ora-pre.php
new file mode 100644
index 00000000..9a472287
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/ora-pre.php
@@ -0,0 +1,165 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (__VEZETOSEG !==true && __TANAR!==true && __NAPLOADMIN!==true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/share/date/names.php');
+
+ require_once('skin/classic/module-naplo/html/share/hianyzas.phtml');
+
+ $napiMaxOra = getMaxOra();
+ $napiMinOra = getMinOra();
+
+ $oraId = readVariable($_POST['oraId'],'id',readVariable($_GET['oraId'],'id'));
+ $tanarId = readVariable($_POST['tanarId'],'id',readVariable($_GET['tanarId'],'id'));
+
+ if (is_null($oraId) && !is_null($tanarId)) {
+ $_tolDt = $_igDt = date('Y-m-d');
+ $tanarOrak = getTanarOrak(
+ $tanarId,array('tolDt' => $_tolDt, 'igDt' => $_igDt, 'tipus' => array('normál','normál máskor','helyettesítés','felügyelet','összevonás'))
+ );
+ $oraId = $_POST['oraId'] = $tanarOrak[0]['oraId'];
+ }
+
+ if (isset($oraId)) {
+
+ $ORAADAT = getOraAdatById($oraId);
+
+ $nap = date('w',strtotime($ORAADAT['dt']));
+ $ora = $ORAADAT['ora'];
+
+ $tanarId = $ORAADAT['ki'];
+ $tolDt = $igDt = $ORAADAT['dt'];
+
+ /* tankör adatai - óratervi-e */
+ $TA = getTankorAdat($ORAADAT['tankorId'], __TANEV);
+ $ADAT['tankorAdat'] = $TA[$ORAADAT['tankorId']][0];
+ $ORAADAT['tankorTipus'] = $ADAT['tankorAdat']['tankorTipus'];
+ $ADAT['tagokFelvehetok'] = ($ADAT['tankorAdat']['nevsor']=='változtatható');
+ /* a tankör tagságának bővítése, ha lehet */
+ if ($action!='' && $ADAT['tagokFelvehetok']===true) {
+ $D['diakId'] = readVariable($_POST['diakId'],id);
+ if ($D['diakId']!=0) {
+ $D['tankorId'] = $ORAADAT['tankorId'];
+ $D['igDt'] = $D['tolDt'] = $ORAADAT['dt'];
+ tankorDiakFelvesz($D);
+ }
+ }
+
+ /* lekérdezés #1 */
+ $ADAT['nevsor'] = getTankorDiakjaiByInterval($ORAADAT['tankorId'], __TANEV, $ORAADAT['dt'], $ORAADAT['dt']);
+ for ($i=0; $i<count($ADAT['nevsor']['idk']); $i++) {
+ $_diakId = ($ADAT['nevsor']['idk'][$i]);
+ $ADAT['felmentes'][$_diakId] = getTankorDiakFelmentes($_diakId,__TANEV,array('csakId'=>true,'tolDt'=>$tolDt, 'igDt'=>$igDt, 'nap'=>$nap, 'ora'=>$ora));
+ }
+ $ADAT['diakJogviszony'] = getDiakJogviszonyByDts($ADAT['nevsor']['idk'], array($ORAADAT['dt']));
+//dump($ADAT['nevsor']['idk']);
+//dump($ORAADAT['dt']);
+//dump($ADAT['diakJogviszony']);
+ if ($ORAADAT['tipus'] == 'elmarad') {
+ $_SESSION['alert'][] = 'page:elmaradt_ora';
+ } else {
+ /* jogosultság */
+ $ADAT['jogosultsag'] = getHianyzasJogosultsag(array($ORAADAT) , $ADAT['nevsor']);
+ /* rögzítés */
+ if ($action == 'hianyzokRogzitese') {
+ $EDDIG = getHianyzasByOraId($ORAADAT['oraId'],array('csakId'=>true));
+ $MARADNAK = $H = $TORLENDOK = array();
+ // először vizsgáljuk meg, hogy hol hiányzott (mert ekkor f betűs nem lehet)
+ reset($_POST);
+ foreach($_POST as $_kulcs => $_ertek) {
+ if (substr($_kulcs,0,8)=='HIANYZOK') {
+ list($_diakId,$_dt,$_ora,$_tipus,$_hid) = explode('/',$_ertek);
+ if ($_tipus=='hiányzás') { // akkor f betűsök nem lehetnek
+ $H[$_diakId][$_dt][$_ora] = true;
+ }
+ }
+ }
+ // majd állítsuk elő a tömböket
+ reset($_POST);
+ foreach($_POST as $_kulcs => $_ertek) {
+ if (substr($_kulcs,0,8)=='HIANYZOK') {
+ // ez volt!!!! figyelem!!!list($_diakId,$_tipus,$_hid) = explode('/',$_ertek);
+ list($__r1,$__id,$__r2) = explode('_',$_kulcs);
+ list($_diakId,$_dt,$_ora,$_tipus,$_hid) = explode('/',$_ertek);
+ if (!isset($H[$_diakId][$_dt][$_ora]) || $_tipus=='hiányzás') {
+ if ($_hid!='') {
+ $MARADNAK[] = $_hid;
+ if ($_tipus=='késés') $PERCEK[$_hid]=intval($_POST['PERC_'.$__id]);
+ } elseif ($_tipus!='') {
+ $_perc = intval($_POST['PERC_'.$__id]);
+ $BEIRANDOK[] = array('diakId'=>$_diakId,'tipus'=>$_tipus,'id'=>$_hid,'dt'=>$_dt,'ora'=>$_ora,'perc'=>$_perc);
+ }
+ }
+ }
+ }
+ $TORLENDOK = array_diff($EDDIG,$MARADNAK);
+ reset($_POST);
+ foreach($_POST as $_kulcs => $_ertek) {
+ if (substr($_kulcs,0,8) == 'IGAZOLAS') {
+ for ($i=0; $i<count($_ertek); $i++) {
+ list($_diakId,$ures1,$ures2,$_igtip,$_hid) = explode('/',$_ertek[$i]);
+ if ($_hid!='' && !in_array($_hid,$TORLENDOK)) {
+ if ($_igtip!='') $_statusz='igazolt' ; else $_statusz ='igazolatlan';
+ $IGAZOLANDOK[] = array('id'=> $_hid,'diakId'=>$_diakId,'statusz'=>$_statusz,'igazolas'=>$_igtip);
+ }
+ }
+ }
+ }
+
+ //végül töröljünk, regisztráljunk, igazoljunk
+ if (is_array($EDDIG) && is_array($MARADNAK)) {
+ hianyzasTorles($TORLENDOK);
+ }
+ hianyzasRegisztralas($ORAADAT,$BEIRANDOK);
+ hianyzasIgazolas($IGAZOLANDOK);
+ hianyzasPercUpdate($PERCEK);
+
+
+
+ }
+ /* --- */
+
+ // lekérdezés #2
+ // $ADAT['nevsor'] // lásd feljebb
+ $ADAT['hianyzok'] = getHianyzasByOraId($ORAADAT['oraId']);
+ $ADAT['napiHianyzasok'] = getHianyzasByDt($ADAT['nevsor']['idk'],$ORAADAT['dt']);
+
+ if ($ADAT['tagokFelvehetok']===true) {
+ $_to = getTankorOsztalyaiByTanev($ORAADAT['tankorId'], __TANEV, array('result' => 'id', 'tagokAlapjan' => false));
+ $ADAT['diakok'] = getDiakok(array('osztalyId'=>$_to));
+
+ }
+ }
+ } // Ha van oraId
+
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'tanarId' => $tanarId);
+ $TOOL['vissza'] = array('tipus'=>'vissza',
+ 'paramName'=>'vissza',
+ 'icon'=>'',
+ 'postOverride' => array('igDt'=>$igDt,'tanarId'=>$tanarId,'page'=>'naplo','sub'=>'haladasi','f'=>'haladasi')
+ );
+ if (isset($oraId)) $TOOL['tanarOraLapozo'] = array('tipus'=>'sor', 'oraId' => $oraId, 'post'=>array('tanarId'));
+ getToolParameters();
+
+ } // Ha jogosult az oldal megtekintésére
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/ora.php b/mayor-orig/www/policy/private/naplo/hianyzas/ora.php
new file mode 100644
index 00000000..5c1acffc
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/ora.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ORAADAT,$ADAT;
+
+ if (is_array($ORAADAT) && is_array($ADAT))
+ putHianyzok($ORAADAT,$ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/osztaly-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/osztaly-pre.php
new file mode 100644
index 00000000..9e7e9418
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/osztaly-pre.php
@@ -0,0 +1,124 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG) {
+
+ $_SESSION['alert'][] = 'page:illegal_access';
+
+ } elseif (!_TANKOROK_OK) {
+
+ $_SESSION['alert'][] = 'page:hianyzo_tankorok:'._HIANYZO_TANKOROK_SZAMA;
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/ertekeles.php');
+ require_once('include/modules/naplo/share/bejegyzesModifier.php');
+ require_once('include/modules/naplo/share/bejegyzes.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include//share/date/names.php');
+
+ global $_TANEV;
+
+
+ $ADAT['nevsor'] = $nevsor = readVariable($_POST['nevsor'],'emptystringnull','aktualis',array('aktualis','teljes'));
+ $osztalyId = readVariable($_POST['osztalyId'],'numeric', readVariable($_GET['osztalyId'],'numeric'));
+ if (!isset($osztalyId) && __TANAR && __OSZTALYFONOK) $osztalyId = $_OSZTALYA[0];
+ $ADAT['tolDt'] = $tolDt = readVariable($_POST['tolDt'], 'date', $_TANEV['kezdesDt']);
+ $ADAT['igDt'] = $igDt = readVariable($_POST['igDt'], 'date', date('Y-m-d'));
+
+ //if (isset($_POST['referenciaDt']) && strtotime($_POST['referenciaDt'])>0)
+ $ADAT['referenciaDt'] = $referenciaDt = readVariable($_POST['referenciaDt'],'datetime',null);
+
+
+// --------------------------------
+
+ if (isset($osztalyId)) {
+ $ADAT['osztalyId'] = $osztalyId;
+ define(__OFO, ( is_array($_OSZTALYA) && in_array($osztalyId, $_OSZTALYA)));
+
+ $jogosult = array();
+ if (__TANAR) $jogosult[] = 'szaktanár';
+ if (__OFO) $jogosult[] = 'osztályfőnök';
+ if (__VEZETOSEG) $jogosult[] = 'vezetőség';
+ if (__NAPLOADMIN) $jogosult[] = 'admin';
+
+ $ADAT['jogosult fokozatok'] = getBejegyzesTipusokByJogosult($jogosult, array('tipus' => array('fegyelmi'), 'hianyzas' => true));
+ $ADAT['összes fokozat'] = getBejegyzesTipusokByJogosult(array('szaktanár','osztályfőnök','vezetőség','admin'), array('tipus' => array('fegyelmi'), 'hianyzas' => true));
+ $ADAT['fokozat2bejegyzesTipus'] = $ADAT['bejegyzesTipusok'] = $ADAT['bejegyzesTipusIds'] = array();
+ foreach ($ADAT['összes fokozat'] as $key => $fAdat) {
+ $ADAT['bejegyzesTipusok'][ $fAdat['bejegyzesTipusId'] ] = $fAdat;
+ }
+ foreach ($ADAT['jogosult fokozatok'] as $key => $fAdat) {
+ $bejegyzesTipusIds[] = $fAdat['bejegyzesTipusId'];
+ }
+ $_TMP = getBejegyzesTipusokByJogosult(array('szaktanár','osztályfőnök','vezetőség','admin'), array('tipus' => array('fegyelmi'), 'hianyzas' => false));
+ foreach ($_TMP as $key => $fAdat) {
+ $ADAT['fokozat2bejegyzesTipus'][ $fAdat['fokozat'] ] = $fAdat;
+ }
+
+ if (
+ $_TANEV['statusz']=='aktív'
+ && (__NAPLOADMIN || __VEZETOSEG || (__TANAR && __OSZTALYFONOK && in_array($osztalyId, $_OSZTALYA)))
+ ) {
+ if ($action == 'fegyelmiRogzitese') {
+
+ $diakId = readVariable($_POST['diakId'], 'id');
+ $bejegyzesTipusId = readVariable($_POST['bejegyzesTipusId'], 'id', null, $bejegyzesTipusIds);
+ $referenciaDt = readVariable($_POST['ujReferenciaDt'], 'date');
+ $hianyzasDb = readVariable($_POST['hianyzasDb'], 'numeric unsigned');
+
+ $szoveg = 'Tisztelt Szülő! Értesítem, hogy gyermeke - igazolatlan hiányzásainak száma ('.$hianyzasDb.') alapján - elérte a(z) "'
+ .$ADAT['bejegyzesTipusok'][$bejegyzesTipusId]['bejegyzesTipusNev'].'" fegyelmi fokozatot.';
+
+ if (isset($bejegyzesTipusId) && isset($diakId)) ujBejegyzes($bejegyzesTipusId, $szoveg, $referenciaDt, $diakId, $hianyzasDb);
+ else $_SESSION['alert'][] = 'message:insufficient_access:a fegyelmi nem rögzíthető (bejegyzesTipusId='.$bejegyzesTipusId.'; hianyzasDb='.$hianyzasDb.')';
+
+ }
+ }
+
+ // --------------------------------
+
+ //$osztalyAdat = getOsztalyAdat($osztalyId);
+
+ if ($tolDt != $_TANEV['kezdesDt'] || $igDt != date('Y-m-d')) {
+ $OPT = array('hozott','lezárt','igazolható','összes');
+ $View = readVariable($_POST['View'], 'enum', array('összes'), $OPT);
+ } else {
+ $OPT = array('hozott','lezárt','igazolható','összes','fegyelmi utáni','fegyelmi fokozatok');
+ $View = readVariable($_POST['View'], 'enum', ($skin != 'pda')?array('összes','fegyelmi fokozatok'):array('összes'), $OPT);
+ }
+
+// elseif ($skin != 'pda') $View = array('összes','fegyelmi fokozatok');
+// else $View = array('összes');
+
+ if ($nevsor=='aktualis') {
+ $ADAT['stat'] = getHianyzok($ADAT,array('dt'=>date("Y-m-d")));
+ } else {
+ $ADAT['stat'] = getHianyzok($ADAT);
+ }
+// $ADAT['hianyzasmentesNapokSzama'] = getHianyzasmentesNapokSzama($osztalyId);
+
+ foreach($ADAT['stat']['névsor'] as $_diakId => $_D) {
+ $ADAT['hozottHianyzas'][$_diakId] = getDiakHozottHianyzas($_diakId);
+ }
+
+ } // isset(osztalyId)
+
+// $TOOL['vissza'] = array('tipus'=>'vissza','paramName'=>'','icon'=>'','post'=>array('page'=>'naplo','sub'=>'haladasi','f'=>'haladasi'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('tolDt','igDt','View'));
+ getToolParameters();
+ $TOOL['datumTolIgSelect'] = array('tipus' => 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'igDt',
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'hanyNaponta' => 1, 'post' => array('osztalyId', 'View')
+ );
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/osztaly.php b/mayor-orig/www/policy/private/naplo/hianyzas/osztaly.php
new file mode 100644
index 00000000..50f5873a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/osztaly.php
@@ -0,0 +1,13 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT, $View;
+
+ if (isset($ADAT['osztalyId']) && count($ADAT['stat']['névsor']) > 0)
+ putOsztalyOsszesito($ADAT, $View);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap-pre.php b/mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap-pre.php
new file mode 100644
index 00000000..608f94d4
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap-pre.php
@@ -0,0 +1,53 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG) {
+
+ $_SESSION['alert'][] = 'page:illegal_access';
+
+ } elseif (!_TANKOROK_OK) {
+
+ $_SESSION['alert'][] = 'page:hianyzo_tankorok:'._HIANYZO_TANKOROK_SZAMA;
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'], 'id');
+ if (!isset($osztalyId) && __TANAR && __OSZTALYFONOK) $osztalyId = $_OSZTALYA[0];
+
+ $dt = $ADAT['dt'] = readVariable($_POST['dt'], 'date', date('Y-m-d'));
+
+ if (isset($dt) && isset($osztalyId)) {
+
+ $ADAT['diakok'] = getDiakok(array('osztalyId' => $osztalyId, 'result' => 'assoc', 'tanev' => __TANEV, 'tolDt' => $dt, 'igDt' => $dt));
+ $ADAT['diakIds'] = array_keys($ADAT['diakok']);
+ $H = getHianyzasByDiakIds($ADAT['diakIds'], array('result' => 'multiassoc', 'keyfield' => 'ora', 'tolDt' => $dt, 'igDt' => $dt));
+ foreach ($H as $ora => $hAdat) {
+ for ($i = 0; $i < count($hAdat); $i++) {
+ $_H = $hAdat[$i];
+ $ADAT['hianyzas'][$ora][$_H['tankorId']][] = $_H;
+ $ADAT['diakHianyzott'][$_H['diakId']][$_H['hTipus']][$_H['statusz']][$_H['tankorTipus']]['db']++;
+ }
+ }
+ if (is_array($ADAT['hianyzas'])) $ADAT['tankorIds'] = array_keys($ADAT['hianyzas']);
+ $ADAT['tankorok'] = getTankorByOsztalyId($osztalyId, __TANEV, array('tanarral' => true, 'result' => 'assoc'));
+ }
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'sor', 'post' => array('osztalyId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])),
+ 'napTipusok' => array('tanítási nap', 'speciális tanítási nap'),
+ 'lapozo' => true
+ );
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('dt'));
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap.php b/mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap.php
new file mode 100644
index 00000000..10534428
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hianyzas/osztalyNap.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['hianyzas']) && count($ADAT['hianyzas'])>0) {
+ putOsztalyHianyzas($ADAT);
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php b/mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php
new file mode 100644
index 00000000..60de869a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/admin-pre.php
@@ -0,0 +1,80 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/kerelem.php');
+
+ $_telephelyIdDefault = (isset($_POST['telephelyId'])?null:__TELEPHELYID);
+ $telephelyId = readVariable($_POST['telephelyId'],'id', $_telephelyIdDefault);
+ $kerelemId = readVariable($_POST['kerelemId'],'id',readVariable($_GET['kerelemId'],'id'));
+ $tolDt = readVariable($_POST['tolDt'],'date',date('Y-m-d'));
+
+ if ($action == 'hibabejelentes') {
+ $ADAT['txt'] = readVariable($_POST['txt'], 'string');
+ $ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ $ADAT['telephelyId'] = $telephelyId;
+ if ( $ADAT['txt'] != '' && ($kerelemId = hibabejelentes($ADAT)) ) $_SESSION['alert'][] ='info:success:'.$kerelemId;
+ }
+
+ if ((is_array($hibaAdmin) && in_array(_USERACCOUNT,$hibaAdmin)) || (!is_array($hibaAdmin) && (__VEZETOSEG || __NAPLOADMIN))) {
+ define('__HIBAADMIN',true);
+ } else {
+ define('__HIBAADMIN',false);
+ }
+ if (__HIBAADMIN === TRUE) {
+
+ if ($action == 'hibaAdminRogzites') {
+ $_ADAT['kerelemId'] = $kerelemId;
+ $_ADAT['kerelemTelephelyId'] = $_ADAT['telephelyId'] = $telephelyId;
+ $_ADAT['valasz'] = readVariable($_POST['valasz'],'string');
+ $_ADAT['jovahagy'] = readVariable($_POST['jovahagy'],'string');
+ $_ADAT['nemHagyJova'] = readVariable($_POST['nemHagyJova'],'string');
+ $_ADAT['lezar'] = readVariable($_POST['lezar'],'string');
+ $_ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ hibaAdminRogzites($_ADAT);
+
+ //if ($_ADAT['lezar'])
+ unset($kerelemId);
+ unset($_ADAT);
+ }
+
+ // Összes lezáratlan kérelem lekérdezése
+ if ($kerelemId>0) {
+ $Kerelmek = getKerelmek('',$kerelemId,$tolDt);
+ } else {
+ $Kerelmek = getKerelmek($telephelyId,null,$tolDt);
+ }
+ } else {
+ if ($action == 'hibaAdminRogzites') {
+ $_ADAT['kerelemId'] = $kerelemId;
+ $_ADAT['kerelemTelephelyId'] = $_ADAT['telephelyId'] = $telephelyId;
+ $_ADAT['valasz'] = readVariable($_POST['valasz'],'string');
+ $_ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ hibaAdminRogzites($_ADAT);
+
+ //if ($_ADAT['lezar'])
+ unset($kerelemId);
+ unset($_ADAT);
+ }
+ // Saját kérelmek lekérdezése
+ $Kerelmek = getSajatKerelmek($telephelyId);
+ }
+
+ $TELEPHELY = getTelephelyek();
+
+// $TOOL['kerelemStat'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('telephelyId'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => date('Y-m-d'),
+ );
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ $TOOL['vissza'] = array('tipus'=>'vissza','paramName'=>'','icon'=>'inbox','post'=>array('telephelyId'));
+ if ($kerelemId!='') {
+ $TOOL['vissza']['icon'] = 'arrow-left';
+ }
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/admin.php b/mayor-orig/www/policy/private/naplo/hibabejelento/admin.php
new file mode 100644
index 00000000..f34d5eed
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/admin.php
@@ -0,0 +1,16 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Kerelmek,$telephelyId,$TELEPHELY;
+
+ if ($skin=='classic') putHibabejelento($telephelyId);
+
+ if (is_array($Kerelmek) && count($Kerelmek)>0) {
+ if ($_GET['view']==2){
+ putKerelmekValasszal($Kerelmek,$telephelyId,$TELEPHELY);
+ } else {
+ putKerelmek($Kerelmek,$telephelyId,$TELEPHELY);
+ }
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php
new file mode 100644
index 00000000..da2f215e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento-pre.php
@@ -0,0 +1,24 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/kerelem.php');
+ $telephelyId = readVariable($_POST['telephelyId'],'id',__TELEPHELYID);
+ $kerelemId = readVariable($_GET['kerelemId'],'id');
+
+ if ($action == 'hibabejelentes') {
+
+ $ADAT['telephelyId'] = readVariable($_POST['kerelemTelephelyId'], 'id', $telephelyId);
+ $ADAT['txt'] = readVariable($_POST['txt'], 'string');
+ $ADAT['kategoria'] = readVariable($_POST['kategoria'],'string','', $KERELEM_TAG);
+ if ( $ADAT['txt'] != '' && ($kerelemId = hibabejelentes($ADAT)) ) $_SESSION['alert'][] ='info:success:'.$kerelemId;
+
+ }
+
+ if ($kerelemId>0) $Kerelmek = getKerelmek('',$kerelemId);
+
+// $TOOL['kerelemStat'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array());
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php
new file mode 100644
index 00000000..dffac292
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hibabejelento/hibabejelento.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $telephelyId;
+
+ putHibabejelento($telephelyId);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/hirnok/cronFutar-pre.php b/mayor-orig/www/policy/private/naplo/hirnok/cronFutar-pre.php
new file mode 100644
index 00000000..5691de0f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hirnok/cronFutar-pre.php
@@ -0,0 +1,32 @@
+<?php
+
+ if (_RUNLEVEL!=='cron') die('not valid RUNLEVEL! Exiting.');
+ if (__EMAIL_ENABLED!==true) die('EMAIL_ENABLED is false! Exiting.');
+
+ require_once('include/modules/naplo/share/hirnok.php');
+ require_once('include/share/net/phpmailer.php');
+
+ global $_TANEV;
+
+ $refDt = date('Y-m-d H:i:s');
+ $q = "SELECT naploId,naploTipus,utolsoEmailDt,userAccount,policy,email FROM hirnokFeliratkozas WHERE utolsoEmailDt IS NULL or utolsoEmailDt<'%s'";
+ $v = array($refDt);
+ $r = db_query($q,array('fv'=>'cron','modul'=>'naplo_intezmeny','result'=>'indexed','values'=>$v));
+
+ for ($i=0; $i<count($r); $i++) {
+ $d = $r[$i];
+ $TOLDTBYUSER[$d['naploTipus']][$d['naploId']] = ($d['utolsoEmailDt']=='') ? $_TANEV['kezdesDt'] : $d['utolsoEmailDt']; // setDt
+ if (!in_array($d['naploId'],$USER[$d['naploTipus']])) $USER[$d['naploTipus']][] = $d['naploId'];
+ $ADAT['feliratkozas'][$d['naploTipus']][$d['naploId']][] = array('userAccount'=>$d['userAccount'], 'policy'=>$d['policy'], 'email'=>$d['email'], 'setDt'=> $refDt);
+ }
+
+ // Megszorítás: egy naplóbeli entitás utolsoEmailDt-je együtt kell, hogy mozogjon ebben a feldolgozási rendszerben.
+ // Javítható: hirnokWrapper() függvény sokszoros használatával
+ $ADAT['hirnokFolyam'] = hirnokWrapper(array('tolDt'=>$tolDt,
+ 'diakId'=>$USER['diak'],
+ 'tanarId'=>$USER['tanar'],
+ 'tolDtByUser'=>$TOLDTBYUSER
+ ));
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/hirnok/cronFutar.php b/mayor-orig/www/policy/private/naplo/hirnok/cronFutar.php
new file mode 100644
index 00000000..605e8eaa
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hirnok/cronFutar.php
@@ -0,0 +1,45 @@
+<?php
+
+ global $ADAT;
+ require_once('skin/classic/module-naplo/html/hirnok/hirnok.phtml');
+ require_once('skin/classic/module-naplo/html/share/email.phtml');
+
+ for ($i=0; $i<count($ADAT['hirnokFolyam']); $i++) {
+ $D = $ADAT['hirnokFolyam'][$i];
+ $_data = $D['hirnokFolyamAdatok'];
+ $cn = $_data['cn'];
+
+ for ($j=0; $j<count($ADAT['feliratkozas'][$_data['tipus']][$_data['id']]); $j++) {
+ $_toUser = $ADAT['feliratkozas'][$_data['tipus']][$_data['id']][$j];
+ $_toEmail = $_toUser['email'];
+ // if ($_toEmail=='') continue;;
+
+ $body = generateFutarEmailTorzs(array('hirnokFolyam'=>array($D)));
+ if ($body !='') {
+ echo "Email cím: ".$_toEmail."\n";
+ $mail = new PHPMailer();
+ $mail->CharSet = 'UTF-8';
+ $mail->SetFrom(__SUPPORT_EMAIL_ADDRESS, ''._SITE.'');
+ $mail->AddReplyTo(__SUPPORT_EMAIL_ADDRESS,'MaYoR Support');
+ $mail->AddAddress($_toEmail, $cn);
+ $mail->Subject = "[MaYoR] Értesítés – ".$cn;
+ $mail->MsgHTML(emailHead(array(
+ 'skin/classic/module-naplo/css/hirnok/hirnok.css',
+ 'skin/classic/module-naplo/css/hirnok/cronFutar.css'
+ )).$body.emailFoot());
+ if(!$mail->Send()) {
+ echo "PHP Mailer Error: " . $mail->ErrorInfo . "\n";
+ } else {
+ $q = "UPDATE hirnokFeliratkozas SET utolsoEmailDt ='%s' WHERE naploId=%u AND naploTipus='%s' AND userAccount='%s' AND policy='%s'";
+ $v = array($_toUser['setDt'],$_data['id'],$_data['tipus'],$_toUser['userAccount'],$_toUser['policy']);
+ db_query($q,array('modul'=>'naplo_intezmeny','fv'=>'cron','values'=>$v,'result'=>'update'));
+ echo "Email elküldve: ".$_toEmail." - ".$cn." - ".date('Y-m-d H:i:s')."\n";
+ }
+
+ } else {
+ // echo "Nincs mit küldeni.\n";
+ }
+ }
+
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/hirnok/hirnok-pre.php b/mayor-orig/www/policy/private/naplo/hirnok/hirnok-pre.php
new file mode 100644
index 00000000..adc18ddc
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hirnok/hirnok-pre.php
@@ -0,0 +1,53 @@
+<?php
+
+ require_once('include/modules/naplo/share/hirnok.php');
+ global $_TANEV;
+
+ if (isset($_SESSION['lastLogin']) && strtotime(getTanitasinapvissza(2))>strtotime($_SESSION['lastLogin'])) $rDt = $_SESSION['lastLogin'];
+ else $rDt = getTanitasiNapVissza(2);
+ $tolDt = readVariable($_POST['tolDt'],'date',
+ readVariable($_GET['tolDt'], 'date',
+ $rDt
+ )
+ );
+ if (strtotime($tolDt)>strtotime(date('Y-m-d H:i:s'))) $tolDt = date('Y-m-d',strtotime('-10 day'));
+
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ if (__NAPLOADMIN === true) { // csak adminnak engedjük kiválasztani - lásd még include
+ $diakId = readVariable($_POST['diakId'], 'id', readVariable($_GET['diakId'], 'id'));
+ $tanarId = readVariable($_POST['tanarId'], 'id', readVariable($_GET['tanarId'], 'id'));
+ $feliratkozott = getHirnokFeliratkozasok();
+ if ($diakId==0 && count($feliratkozott['diak'])>0) $diakId = $feliratkozott['diak'];
+ if ($tanarId==0 && count($feliratkozott['tanar'])>0) $tanarId = $feliratkozott['tanar'];
+ if ($tanarId==0 && defined('__USERTANARID')) $tanarId = __USERTANARID;
+ } else {
+ if (__DIAK===true) { // diák nézet
+ $diakId = __USERDIAKID;
+ } elseif (__TANAR ===true) { // tanár nézet
+ $tanarId = __USERTANARID;
+ }
+ }
+
+ $ADAT['hirnokFolyam'] = hirnokWrapper(array('tolDt'=>$tolDt,'diakId'=>$diakId,'tanarId'=>$tanarId));
+ $ADAT['tolDt'] = $tolDt;
+ $ADAT['igDt'] = $igDt = date('Y-m-d');
+
+ if (__NAPLOADMIN===true) {
+ $TOOL['vissza'] = array('tipus'=>'vissza','paramName'=>'','icon'=>'bullhorn');
+ $TOOL['tanarSelect'] = array('tipus'=>'cella','paramName'=>'tanarId', 'post'=>array('tolDt', 'igDt'));
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post'=>array('tolDt', 'igDt'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella','paramName'=>'diakId', 'post'=>array('osztalyId','tolDt', 'igDt', 'osztalyId'));
+ if ($diakId>0)$TOOL['diakLapozo'] = array('tipus'=>'sor','paramName'=>'diakId', 'post'=>array('osztalyId','tolDt', 'igDt', 'osztalyId'));
+ }
+ $TOOL['datumTolIgSelect'] = array(
+ 'tipus' => 'sor', 'title' => '',
+ 'post'=>array('tolDt','tanarId','osztalyId','tankorId','mkId','diakId','telephely'),
+ 'tolParamName' => 'tolDt', 'igParamName' => 'igDt', 'hanyNaponta' => 1,
+ 'override' => true,
+ 'tolDt' => $_TANEV['kezdesDt'],
+ 'igDt' => $igDt,
+ );
+
+ getToolParameters();
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/hirnok/hirnok.php b/mayor-orig/www/policy/private/naplo/hirnok/hirnok.php
new file mode 100644
index 00000000..ce3b7f72
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hirnok/hirnok.php
@@ -0,0 +1,6 @@
+<?php
+
+ global $ADAT;
+ putHirnokFolyam($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas-pre.php b/mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas-pre.php
new file mode 100644
index 00000000..d8fb3d33
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas-pre.php
@@ -0,0 +1,47 @@
+<?php
+
+ require_once('include/modules/naplo/share/hirnok.php');
+ global $_TANEV;
+
+ if (__EMAIL_ENABLED!==true) $_SESSION['alert'][] = 'page:hiba:az e-mail küldés nincs engedélyezve, keresd az üzemeltetőt!';
+
+ $tolDt = readVariable($_POST['tolDt'],'date',readVariable($_GET['tolDt'], 'date', getTanitasinapvissza(7)));
+ if (strtotime($tolDt)>strtotime(date('Y-m-d'))) $tolDt = date('Y-m-d',strtotime('-10 day'));
+
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ if (__NAPLOADMIN === true) { // csak adminnak engedjük kiválasztani - lásd még include
+ if ($action=='hirnokFeliratkozas') {
+ $S['naploId'] = readVariable($_POST['naploId'],'numeric');
+ $S['naploTipus'] = readVariable($_POST['naploTipus'],'string',null,array('tanar','diak'));
+ $S['email'] = readVariable($_POST['email'],'email');
+ $S['hirnokFeliratkozasId'] = readVariable($_POST['hirnokFeliratkozasId'],'numeric');
+ if ($S['hirnokFeliratkozasId']>0) delHirnokFeliratkozas($S);
+ elseif ($S['email']!='') addHirnokFeliratkozas($S);
+ }
+ $ADAT['hirnokFeliratkozas'] = $feliratkozott = getHirnokFeliratkozasok(true);
+// if ($diakId==0 && count($feliratkozott['diak'])>0) $diakId = $feliratkozott['diak'];
+// if ($tanarId==0 && count($feliratkozott['tanar'])>0) $tanarId = $feliratkozott['tanar'];
+// if ($tanarId==0 && defined('__USERTANARID')) $tanarId = __USERTANARID;
+ } else {
+ if (__DIAK===true) { // diák nézet + szülő?
+ $diakId = $naploId = __USERDIAKID;
+ $naploTipus = 'diak'; // szulo???
+ } elseif (__TANAR ===true) { // tanár nézet
+ $tanarId = $naploId = __USERTANARID;
+ $naploTipus = 'tanar';
+ }
+ if ($action=='hirnokFeliratkozas') {
+ $S['email'] = readVariable($_POST['email'],'email');
+ $S['naploId'] = $naploId;
+ $S['naploTipus'] = $naploTipus;
+
+ $S['hirnokFeliratkozasId'] = readVariable($_POST['hirnokFeliratkozasId'],'numeric');
+ if ($S['hirnokFeliratkozasId']>0) delHirnokFeliratkozas($S);
+ elseif ($S['email']!='') addHirnokFeliratkozas($S);
+ }
+ $ADAT['email'] = ''; // lekérdezhetnénk az objektum e-mail címét később
+ $ADAT['hirnokFeliratkozas'] = $feliratkozott = getHirnokFeliratkozasok(true);
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas.php b/mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas.php
new file mode 100644
index 00000000..a5c9056b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/hirnok/hirnokFeliratkozas.php
@@ -0,0 +1,7 @@
+<?php
+
+ global $ADAT;
+ if (__NAPLOADMIN ===true) putHirnokFeliratkozas($ADAT);
+ else putHirnokFeliratkozas_user($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diak-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/diak-pre.php
new file mode 100644
index 00000000..09d59501
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diak-pre.php
@@ -0,0 +1,247 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR && !__DIAK) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/share/net/upload.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/jegy.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/diakModifier.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/osztalyModifier.php');
+ require_once('include/share/print/pdf.php');
+
+ global $_JSON;
+
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', defined('__TANEV')?__TANEV:null );
+ if (__DIAK) $ADAT['diakId'] = $diakId = readVariable(__USERDIAKID,'id',null);
+ else $ADAT['diakId'] = $diakId = readVariable($_POST['diakId'],'id',readVariable($_GET['diakId'],'id',null));
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'],'id');
+
+ $ADAT['szocialisHelyzet'] = getSetField('naplo_intezmeny', 'diak', 'szocialisHelyzet');
+ $ADAT['penzugyiStatusz'] = getEnumField('naplo_intezmeny', 'diak', 'penzugyiStatusz');
+ $ADAT['lakohelyiJellemzo'] = getEnumField('naplo_intezmeny', 'diak', 'lakohelyiJellemzo');
+ $ADAT['torvenyesKepviselo'] = getSetField('naplo_intezmeny', 'diak', 'torvenyesKepviselo');
+ $ADAT['fogyatekossag'] = getSetField('naplo_intezmeny', 'diak', 'fogyatekossag');
+ $ADAT['kozteruletJelleg'] = getEnumField('naplo_intezmeny', 'diak', 'lakhelyKozteruletJelleg');
+ $ADAT['statusz'] = getEnumField('naplo_intezmeny', 'diak', 'statusz');
+// EZ MI????
+ $ADAT['zaradek'] = $ZaradekIndex['jogviszony megnyitás'];
+ $ADAT['iktatoszam'] = readVariable($_POST['iktatoszam'], 'string' );
+ //$ZaradekIndex['jogviszony']['megnyitas'|'változás'|'lezárás']
+
+ $ADAT['bekerulesModja'] = array_keys($ADAT['zaradek']);
+ array_push($ADAT['bekerulesModja'],'beiratkozásra vár','vendégtanuló');
+ define('_MODOSITHAT',(__NAPLOADMIN || __TITKARSAG));
+ //define('_KERELMEZHET',(__DIAK===true));
+ define('_KERELMEZHET',false);
+ if (isset($diakId)) {
+ // A SET típusú attribútumok string reprezentációja
+ if ($action == 'diakSzocialisAdatModositas') {
+ $tk = $szH = $fgy = array(); // ilyenkor kell definiálni - legalább üresként - így lehet törölni
+ if (isset($_POST['szocialisHelyzet'])) {
+ $szH = readVariable($_POST['szocialisHelyzet'], 'enum', null, $ADAT['szocialisHelyzet']);
+ }
+ if (isset($_POST['fogyatekossag'])) {
+ $fgy = readVariable($_POST['fogyatekossag'], 'enum', null, $ADAT['fogyatekossag']);
+ }
+ if (isset($_POST['torvenyesKepviselo'])) {
+ $tk = readVariable($_POST['torvenyesKepviselo'], 'enum', null, $ADAT['torvenyesKepviselo']);
+ }
+ // A törlés miatt mindenképp kell legyen beállítva valami
+ $_POST['szocialisHelyzet'] = is_array($szH) ? implode(',', $szH) : null;
+ $_POST['fogyatekossag'] = is_array($fgy) ? implode(',', $fgy) : null;
+ $_POST['torvenyesKepviselo'] = is_array($tk) ? implode(',', $tk) : null;
+ }
+ // diák adatainak lekérdezése
+ $ADAT['diakAdat'] = getDiakAdatById($diakId); // csak a státusz miatt kell...
+ // action
+ if (_MODOSITHAT) {
+ $LZI = array_values($ZaradekIndex['jogviszony lezárás']);
+ $ADAT['jogviszonyLezarasZaradek'] = getZaradekokByIndexes($LZI);
+ if ($action == 'jogviszonyValtas') {
+ $ADAT['jogviszonyValtasDt'] = readVariable($_POST['jogviszonyValtasDt'], 'datetime');
+ $ADAT['ujStatusz'] = readVariable($_POST['statusz'], 'enum', null, $ADAT['statusz']);
+ if ($ADAT['ujStatusz'] == 'jogviszonya felfüggesztve') {
+ $ADAT['felfuggesztesOk'] = readVariable($_POST['felfuggesztesOk'], 'string');
+ $ADAT['felfuggesztesIgDt'] = readVariable($_POST['felfuggesztesIgDt'], 'string');
+ } elseif ($ADAT['ujStatusz'] == 'jogviszonya lezárva') {
+ /* A lezárás záradékolása sokféle lehet, userinterakció */
+ $ADAT['lezarasZaradekIndex'] = readVariable($_POST['lezarasZaradekIndex'], 'numeric unsigned', null, $LZI);
+ $ADAT['lezarasIgazolatlanOrakSzama'] = readVariable($_POST['lezarasIgazolatlanOrakSzama'], 'numeric unsigned');
+ $ADAT['lezarasIskola'] = readVariable($_POST['lezarasIskola'], 'string');
+ }
+ diakJogviszonyValtas($ADAT);
+ } elseif ( $action == 'diakAlapadatModositas'
+ || $action == 'diakSzuletesiAdatModositas'
+ || $action == 'diakCimModositas'
+ || $action == 'diakElerhetoseg'
+ || $action == 'diakElerhetosegModositas'
+ || $action == 'diakTanulmanyiAdatModositas'
+ || $action == 'diakSzocialisAdatModositas'
+ ) {
+ $_JSON['result'] = diakAdatModositas($_POST);
+ } elseif ($action== 'diakHozottHianyzas') {
+ diakHozottHianyzas($_POST);
+ } elseif ($action== 'diakTorol' && $ADAT['diakAdat']['statusz'] == 'felvételt nyert' ) { // csak a felvételt nyert
+ if (diakTorol($ADAT['diakAdat'])) { // csak a felvételt nyert
+ unset($ADAT['diakAdat']);
+ unset($diakId);
+ }
+ } elseif ($action == 'diakKepUpload') {
+ // --TODO könyvtár létrehozás?
+ mayorFileUpload(array('subdir'=>_DOWNLOADDIR.'/private/naplo/face/'.__TANEV,'filename'=>$diakId.'.jpg'));
+ } elseif ($action == 'sulixREST') {
+/*
+ require('include/share/net/rest.php');
+ //$server = 'mayor1.ulx.hu';
+ $server = 'localhost';
+ $port = 8888;
+
+ if (isset($_POST['createAccount'])) {
+ $resource = '/Users/Create';
+ $method = 'PUT';
+ $params = array(
+ 'params' => array(
+ 'sn'=> $ADAT['diakAdat']['viseltCsaladinev'],
+ 'givenname' => $ADAT['diakAdat']['viseltUtonev'],
+ 'birth_year' => explode('-', $ADAT['diakAdat']['szuletesiIdo'])[0],
+ 'birth_month' => explode('-', $ADAT['diakAdat']['szuletesiIdo'])[1],
+ 'birth_day' => explode('-', $ADAT['diakAdat']['szuletesiIdo'])[2],
+ 'employeeNumber' => $ADAT['diakAdat']['oId']
+ )
+ );
+ } elseif (isset($_POST['deleteAccount'])) {
+ $resource = '/Users/Delete/Eduid/'.$ADAT['diakAdat']['oId'];
+ $method = 'DELETE';
+ }
+ $uri = 'https://'.$server.':'.$port.$resource;
+ try {
+ $ret = restRequest($uri, $method, $params);
+ } catch (Exception $e) {
+ dump($e->getMessage());
+ }
+ if ($ret['http']['status'] == 200) {
+//dump('Success');
+ } else {
+//dump($ret['http']['status']);
+//dump($ret);
+ }
+*/
+ }
+ }
+ } else {
+ //$ADAT['zaradek'] = array('felvétel' => 1,'átvétel' => 2, 'áthelyezés' => 3, 'beiratkozásra vár' => null);
+ if (isset($osztalyId)) {
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, $tanev);
+ $ADAT['zaradek']['felvétel'] = $ZaradekIndex['jogviszony']['megnyitás']['felvétel osztályba']; // 1 helyett --> 67 ???
+ }
+ } // van diakId / nincs diakId
+
+
+ if (_MODOSITHAT===true && $action == 'ujDiak') {
+ $kotelezoParamOk = (isset($_POST['viseltCsaladinev']) && $_POST['viseltCsaladinev'] != '');
+ $kotelezoParamOk &= (isset($_POST['kezdoTanev']) && $_POST['kezdoTanev'] != '');
+ $kotelezoParamOk &= (isset($_POST['kezdoSzemeszter']) && $_POST['kezdoSzemeszter'] != '');
+ $kotelezoParamOk &= ($_POST['felvetelTipus']=='beiratkozásra vár' || (isset($_POST['jogviszonyKezdete']) && $_POST['jogviszonyKezdete'] != ''));
+ if ($kotelezoParamOk) {
+ $_POST['zaradek'] = $ADAT['zaradek']; // felülírjuk a post-ot... remek
+ $_POST['osztaly'] = $ADAT['osztaly'];
+ $diakId = ujDiak($_POST);
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:(viseltCsaladinev,kezdoTanev,kezdoSzemeszter,jogviszonyKezdete)';
+ }
+ }
+
+ if (isset($diakId)) {
+ // diák adatainak lekérdezése
+ $Szulok = getSzulok();
+ $ADAT['diakAdat'] = getDiakAdatById($diakId);
+ switch ($ADAT['diakAdat']['statusz']) {
+ case 'felvételt nyert':
+ $ADAT['valthatoStatusz'] = array('jogviszonyban van');
+ break;
+ case 'jogviszonya lezárva':
+ $ADAT['valthatoStatusz'] = array('jogviszonyban van', 'vendégtanuló');
+ break;
+ case 'vendégtanuló':
+ $ADAT['valthatoStatusz'] = array('jogviszonya lezárva');
+ break;
+ default:
+ $ADAT['valthatoStatusz'] = array_diff($ADAT['statusz'],array($ADAT['diakAdat']['statusz'],'felvételt nyert'));
+ break;
+ }
+ $ADAT['diakAdat']['anyaNev'] = $Szulok[ $ADAT['diakAdat']['anyaId'] ]['szuleteskoriCsaladinev']?
+ trim(implode(' ', array(
+ $Szulok[ $ADAT['diakAdat']['anyaId'] ]['szuleteskoriNevElotag'],
+ $Szulok[ $ADAT['diakAdat']['anyaId'] ]['szuleteskoriCsaladinev'],
+ $Szulok[ $ADAT['diakAdat']['anyaId'] ]['szuleteskoriUtonev']
+ ))):$Szulok[ $ADAT['diakAdat']['anyaId'] ]['szuloNev'];
+ $ADAT['diakAdat']['apaNev'] =
+ trim(implode(' ', array(
+ $Szulok[ $ADAT['diakAdat']['apaId'] ]['szuleteskoriNevElotag'],
+ $Szulok[ $ADAT['diakAdat']['apaId'] ]['szuleteskoriCsaladinev'],
+ $Szulok[ $ADAT['diakAdat']['apaId'] ]['szuleteskoriUtonev']
+ ))) . ' - ' . $Szulok[ $ADAT['diakAdat']['apaId'] ]['szuloNev'];
+ $ADAT['diakAdat']['gondviseloNev'] = $Szulok[ $ADAT['diakAdat']['gondviseloId'] ]['szuleteskoriCsaladinev']?
+ trim(implode(' ', array(
+ $Szulok[ $ADAT['diakAdat']['gondviseloId'] ]['szuleteskoriNevElotag'],
+ $Szulok[ $ADAT['diakAdat']['gondviseloId'] ]['szuleteskoriCsaladinev'],
+ $Szulok[ $ADAT['diakAdat']['gondviseloId'] ]['szuleteskoriUtonev']
+ ))):$Szulok[ $ADAT['diakAdat']['gondviseloId'] ]['szuloNev'];
+
+ $ADAT['diakAdat']['osztaly'] = getDiakOsztalya($diakId,array('tanev'=>$tanev));
+ $ADAT['diakAdat']['mindenOsztaly'] = getDiakMindenOsztaly($diakId);
+ $ADAT['diakJogviszony'] = getDiakJogviszony($diakId);
+ $ADAT['hozottHianyzas'] = getDiakHozottHianyzas($diakId,array('tanev'=>$tanev));
+ $ADAT['diakKepzes'] = getKepzesByDiakId($diakId);
+
+ }
+
+
+ $ADAT['osztalyok'] = getOsztalyok($tanev,array('result'=>'assoc', 'minden'=>true));
+
+ // ToolBar
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'action' => 'tanevValasztas', 'post' => array('tanev','diakId'));
+ if (!__DIAK) {
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'tanev' => $tanev, 'post' => array('tanev'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'tanev'=>$tanev, 'osztalyId' => $osztalyId,
+ 'statusz' => $ADAT['statusz'],
+ 'post' => array('tanev','osztalyId')
+ );
+ }
+ if (isset($osztalyId) || isset($diakId)) {
+ $TOOL['nyomtatasGomb'] = array('titleConst' => '_NYOMTATAS','tipus'=>'cella', 'url'=>'index.php?page=naplo&sub=nyomtatas&f=diakAdatlap','post' => array('osztalyId','diakId','tanev'));
+ if (!__DIAK) {
+ $TOOL['diakLapozo'] = array('tipus'=>'sor', 'tanev'=>$tanev, 'osztalyId' => $osztalyId,
+ 'statusz' => $ADAT['statusz'],
+ 'post' => array('tanev','osztalyId')
+ );
+ }
+ }
+ if (__NAPLOADMIN === true) {
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=intezmeny&f=diakStatusz'),
+ 'titleConst' => array('_DIAKSTATUSZ'),
+ 'post' => array('diakId'),
+ );
+ }
+
+ getToolParameters();
+ } // naploadmin / vezetőség / titkárság / tanár
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diak.php b/mayor-orig/www/policy/private/naplo/intezmeny/diak.php
new file mode 100644
index 00000000..b6ca1349
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diak.php
@@ -0,0 +1,30 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR && !__DIAK) {
+ return;
+ }
+
+ global $fileName, $ADATOK, $MEZO_LISTA, $Szulok, $tanev, $magantanuloUtkozes, $tolDt, $igDt, $ADAT;
+ global $osztalyId,$diakId;
+
+
+ if (is_array($ADAT['diakAdat']) && $skin!='ajax') {
+ putBizonyitvanyTorzslap($ADAT);
+ putDiakAdatForm($ADAT, $Szulok, $tanev);
+ if (_MODOSITHAT===true) {
+ putDiakJogviszonyValtozas($ADAT); //['diakAdat']
+ if ($ADAT['diakAdat']['statusz']=='felvételt nyert') putDiakTorol($ADAT);
+ }
+ if (__NAPLOADMIN && __ALLOW_SULIX_REST===true) putSuliXRESTForm($ADAT);
+
+ } elseif (_MODOSITHAT) {
+ // Új diák felvétele
+ putUjDiak($ADAT);
+ }
+ if (_MODOSITHAT===true || _VEZETOSEG===true) {
+ putDiakExportForm($ADAT);
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakExport-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakExport-pre.php
new file mode 100644
index 00000000..05d8f5d8
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakExport-pre.php
@@ -0,0 +1,56 @@
+<?php
+
+ return true;
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['formatum'] = readVariable($_POST['formatum'], 'emptystringnull', 'csv', array('csv','xml','pdf'));
+ if ($ADAT['formatum'] == 'xml') {
+ $ADAT['mime'] = 'application/vnd.ms-excel';
+ $ADAT['formatum'] = 'xml';
+ }
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', date('Y-m-d'));
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev); else $TA = $_TANEV;
+
+ $ADAT['fields'] = getTableFields('diak','naplo_intezmeny',array('osztalyJel','diakNaploSorszam'));
+ $szuloMezok = getTableFields('szulo');
+ foreach (array('anya','apa','gondviselő','nevelő') as $szulo)
+ foreach ($szuloMezok as $attr => $attrNev)
+ $ADAT['fields'][ekezettelen($szulo).ucfirst($attr)] = ucfirst($szulo).' '.kisbetus($attrNev);
+ $ADAT['fields']['telephelyId'] = 'telephelyId';
+ foreach ($ADAT['fields'] as $attr => $attrNev)
+ if (!is_array($_POST['mezok']) || in_array($attr, $_POST['mezok'])) $ADAT['mezok'][$attr] = $attrNev;
+
+ $ADAT['export'] = diakExport($ADAT);
+ if ($action == 'diakExport') {
+
+ if (is_array($ADAT['export']) && createFile($ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=export&file=diakExport.'.$ADAT['formatum'].'&mimetype='.$ADAT['mime']));
+ else echo 'SEMMI: '.__DIAK_EXPORT_FILE;
+
+ }
+
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array('osztalyId'));
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array('osztalyId', 'tanev'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])),
+ 'igDt' => $TA['zarasDt'],
+ );
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('tanev', 'dt'));
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakExport.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakExport.php
new file mode 100644
index 00000000..fd1c30f9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakExport.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+// putDiakExportForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes-pre.php
new file mode 100644
index 00000000..d08aa5f6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes-pre.php
@@ -0,0 +1,325 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR && !__DIAK) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'],'date',date('Y-m-d'));
+
+ if (__DIAK===true) {
+ $ADAT['diakId'] = $diakId = __USERDIAKID;
+ } else {
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'],'id');
+ $ADAT['diakId'] = $diakId = readVariable($_POST['diakId'],'id');
+ if ($diakId!='') {
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'],'id');
+ } else {
+ $ADAT['diakId'] = $_POST['diakId'] = $diakId = readVariable($_GET['diakId'],'id');
+ if ($diakId!='') {
+ $_r = getDiakOsztalya($diakId,array('result'=>'idonly'));
+ $ADAT['osztalyId'] = $_POST['osztalyId'] = $osztalyId = $_r[0];
+ }
+ }
+ }
+ if ($diakId!='') {
+ $tolDt = readVariable($_POST['tolDt'],'date',$dt);
+ $targyId = readVariable($_POST['targyId'],'id');
+ $ADAT['diakAdat'] = getDiakAdatById($diakId);
+ $ADAT['diakTargy'] = getTargyakByDiakId($diakId,array('tolDt'=>$dt,'result'=>'indexed'));
+ $ADAT['diakTankor'] = getTankorByDiakId($diakId,__TANEV,array('tolDt'=>$dt,'igDt'=>$_TANEV['zarasDt']));
+ $ADAT['diakTankorFelmentes'] = getTankorDiakFelmentes($diakId, __TANEV, array('csakId' => true,
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt'=>$_TANEV['zarasDt'], 'result'=>'indexed', 'felmentesTipus'=>array('óralátogatás alól','értékelés alól')));
+ }
+
+ if (__NAPLOADMIN === true || __VEZETOSEG===true) {
+
+ /* ACTION */
+ /*
+
+ 1-es típus a részénél: értékelés alól FM (egész tnév) + záradék
+ b: záradék
+ */
+
+ if ($action=='tipus1' && $targyId!='') {
+
+ $altipus = readVariable($_POST['t1altipus'],'numeric unsigned',null,array(1,2));
+ $igDt = readVariable($_POST['igDt'],'date',$_TANEV['zarasDt']);
+ $iktatoszam = readVariable($_POST['iktatoszam'],'string');
+
+ if ($altipus=='1') {
+ // felmentés értékelés alól tolDt-től minden tankörben ahol a tárgy adott
+ $SQL_fail=false;
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ /* 1. FM rögzítés */
+ for($i=0;$i<count($ADAT['diakTankor']); $i++) {
+ if ($ADAT['diakTankor'][$i]['targyId'] == $_POST['targyId']) {
+ $_tankorId = $ADAT['diakTankor'][$i]['tankorId'];
+ $FM = array('diakId'=>$diakId, 'tankorId'=>$_tankorId, 'tolDt'=>$tolDt, 'igDt'=>$igDt, 'felmentesTipus'=>'értékelés alól','iktatoszam'=>$iktatoszam);
+ $result = tankorDiakFelmentesFelvesz($FM,$lr);
+ if ($result===false) $SQL_fail = true;
+ }
+ }
+ /* 2. írjuk be neki az FM bejegyzést */
+ //találjuk ki milyen félévekre kell beírnunk:
+ $q = "SELECT szemeszter,zarasDt FROM szemeszter WHERE zarasDt>='%s' AND tanev=%s";
+ $v = array($tolDt,__TANEV);
+ $SZEMESZTEREK = db_query($q, array('fv'=>'-pre','values'=>$v,'result'=>'indexed','modul'=>'naplo_intezmeny'), $lr);
+ for ($i=0; $i<count($SZEMESZTEREK); $i++) {
+ $_szemeszter = $SZEMESZTEREK[$i]['szemeszter'];
+ $_hivatalosDt = $SZEMESZTEREK[$i]['zarasDt'];
+ $_evfolyamJel = generateDiakEvfolyamJel($diakId,__TANEV,$szemeszter);
+ // ellenőrizzük a zárójegy táblát, van-e bejegyzése, DE csak a beírandó szemeszter számít
+ {
+ $q = "SELECT count(zaroJegyId) AS db FROM zaroJegy WHERE diakId=%u AND targyId=%u AND evfolyamJel='%s' AND felev=%u AND hivatalosDt='%s'";
+ $v = array($diakId,$targyId,$_evfolyamJel,$_szemeszter,$_hivatalosDt);
+ $count = db_query($q, array('fv'=>'-pre','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v), $lr);
+ }
+ if ($count==0) {
+ $JEGY = array(array('targyId'=>$targyId,'zaroJegyId'=>null, 'diakId'=> $diakId, 'jegyTipus'=>'nem értékelhető', 'jegy'=>'1.0', 'tanev'=>__TANEV, 'szemeszter'=>$_szemeszter, 'felev'=>$_szemeszter));
+ if (($zaroJegyek=zaroJegyBeiras($JEGY,$lr))===false) {
+ $_SESSION['alert'][] = 'info:wrong_data:Hiba a jegy rögzítéskor';
+ $SQL_fail=true;
+ } else {
+ // rögzített zárójegyek idjei... $zaroJegyek
+ // ezt elmenthetjük az esetleges kapcsolatok megőrzésére
+ }
+ } else {
+ $_SESSION['alert'][] = 'info:wrong_data:A megadott félévre már van rögzítve zárójegye!:'.$_szemeszter;
+ $SQL_fail=true ;
+ }
+
+ } // szemeszterek
+ /* 3. Most már a megfelelő záradékot is rögzíthetjük akár */
+ $targyAdat = getTargyById($targyId);
+ $ZARADEK = array('iktatoszam'=>$iktatoszam,'diakId'=>$diakId, 'dt'=>date('Y-m-d'), 'zaradekIndex'=>$ZaradekIndex['felmentés']['értékelés alól'],'csere'=>array('%tantárgy%'=>$targyAdat['targyNev']));
+ if (($zaradekId = zaradekRogzites($ZARADEK,$lr))===false) {
+ $_SESSION['alert'][] = 'info::Hiba a záradék rögzítésekor!';
+ $SQL_fail=true;
+ } else {
+ // rögzített záradék idje: $zaradekId
+ // ezt elmenthetjük az esetleges kapcsolatok megőrzésére
+ }
+ if ($SQL_fail===true) db_rollback($lr);
+ else {
+ $_SESSION['alert'][] = 'info:success';
+ db_commit($lr);
+ }
+ db_close($lr);
+
+ } elseif ($altipus=='2') {
+ // csak záradék rögzítése
+ $mi = readVariable($_POST['zaradekTxt2'],'string');
+ $miatt = readVariable($_POST['zaradekTxt1'],'string');
+ $ZARADEK = array('iktatoszam'=>$iktatoszam,'diakId'=>$diakId, 'dt'=>date('Y-m-d'), 'zaradekIndex'=>$ZaradekIndex['felmentés']['értékelés és minősítés alól'],'csere'=>array('%miatt%'=>$miatt,'%mi%'=>$mi));
+ if (($zaradekId = zaradekRogzites($ZARADEK,$lr))===false) {
+ $_SESSION['alert'][] = 'info::Hiba a záradék rögzítésekor!';
+ } else {
+ $_SESSION['alert'][] = 'info:success';
+ }
+
+ }
+
+ } elseif ($action=='tipus2' && $tankorId!='') {
+
+ $igDt = readVariable($_POST['igDt'],'date',$_TANEV['zarasDt']);
+ $nap = readVariable($_POST['nap'],'numeric unsigned');
+ $ora = readVariable($_POST['ora'],'numeric unsigned');
+ $iktatoszam = readVariable($_POST['iktatoszam'],'string');
+
+ $ovi = ($_POST['ovi']==='1');
+ $forceDel = ($_POST['forceDel']==='1');
+ $skipZaradek = ($_POST['skipZaradek']==='1');
+ if ($_POST['ovi']==='1')
+ if (strtotime($tolDt)>strtotime($igDt)) {
+ $_SESSION['alert'][] = 'info:wrong_data:igDt<tolDt';
+ unset($igDt);
+ }
+ if ($igDt=='')
+ $_SESSION['alert'][] = 'info:wrong_data:kötelező igDt paraméter';
+ else {
+
+ $SQL_fail=false;
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+
+ // Teendő: * tankörben FM: óralátogatás alól és értékelés alól, de zárójegyet kap (!)
+ $FM = array('diakId'=>$diakId, 'tankorId'=>$tankorId, 'tolDt'=>$tolDt, 'igDt'=>$igDt, 'felmentesTipus'=>'óralátogatás alól','nap'=>$nap,'ora'=>$ora,'iktatoszam'=>$iktatoszam);
+ if ($forceDel===true) $FM['utkozes'] = 'torles';
+ $result = tankorDiakFelmentesFelvesz($FM,$lr);
+ if ($result===false) $SQL_fail = true;
+ if ($ovi=='1') {
+ $FM = array('diakId'=>$diakId, 'tankorId'=>$tankorId, 'tolDt'=>$tolDt, 'igDt'=>$igDt, 'felmentesTipus'=>'értékelés alól','iktatoszam'=>$iktatoszam);
+ if ($forceDel===true) $FM['utkozes'] = 'torles';
+ $result = tankorDiakFelmentesFelvesz($FM,$lr);
+ if ($result===false) $SQL_fail = true;
+ }
+ if ($skipZaradek===false) {
+ $tankorNev = getTankorNevById($tankorId);
+ $targyAdat = getTargyById((getTankorTargyId($tankorId)));
+ $targyNev = $targyAdat['targyNev'];
+ $ZaradekIndex['felmentés'] = ($ovi) ? $ZaradekIndex['felmentés']['óra látogatása alól osztályozóvizsgával'] : $ZaradekIndex['felmentés']['óra látogatása alól'];
+ if (isset($nap)) $napOraStr[] = ($aHetNapjai[$nap-1]).'i';
+ if (isset($ora)) $napOraStr[] = $ora.'.';
+ $ZARADEK = array('iktatoszam'=>$iktatoszam,'diakId'=>$diakId, 'dt'=>date('Y-m-d'), 'zaradekIndex'=>$ZaradekIndex['felmentés'],'csere'=>array(
+ '%tantárgy%'=> "$targyNev ($tankorNev)",
+ '%ezen óráinak%'=> @implode(' ',$napOraStr),
+ '%tólDt%'=> $tolDt,
+ '%igDt%'=> $igDt
+ ));
+ if (($zaradekId = zaradekRogzites($ZARADEK,$lr))===false) {
+ $_SESSION['alert'][] = 'info::Hiba a záradék rögzítésekor!';
+ $SQL_fail=true;
+ } else {
+ // rögzített záradék idje: $zaradekId (ez nem kell most, kösz)
+ }
+ }
+
+ if ($SQL_fail===true) db_rollback($lr);
+ else db_commit($lr);
+ db_close($lr);
+
+ }
+
+
+
+ } elseif ($action=='tipus3' && $targyId!='') {
+ $iktatoszam = readVariable($_POST['iktatoszam'],'string');
+
+ $SQL_fail=false;
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ /* 1. léptessük ki a tanköreiből véglegesen */
+ for($i=0;$i<count($ADAT['diakTankor']); $i++) {
+ /* Jó lenne azért ellenőrizni, hogy van-e már ilyen felmentése */
+ if ($ADAT['diakTankor'][$i]['targyId'] == $_POST['targyId']) {
+ $_SESSION['alert'][] = 'info::Kiléptettük:'.$ADAT['diakTankor'][$i]['tankorNev'];
+ $_tankorId = $ADAT['diakTankor'][$i]['tankorId'];
+ $DEL = array(
+ 'tolDt'=>$tolDt,'igDt'=>null,'diakId'=>$diakId,
+ 'utkozes'=>'torles',
+ 'tankorId'=>$_tankorId,
+ 'MIN_CONTROL'=>false
+ );
+
+ // meg kell szüntetnünk a tankörcsoportot a jövőbeli tanévekben is...
+ //$q = "SELECT DISTINCT tanev FROM szemeszter WHERE kezdesDt>='%s' AND statusz='aktív'";
+ //$v = array($tolDt);
+ //$r = db_query($q, array('fv'=>'tankorDiakTorol/getTanev','modul'=>'naplo_intezmeny','values'=>$v, 'result'=>'idonly'),$lr);
+ $q = "SELECT count(*) AS db FROM ".__TANEVDBNEV.".`tankorCsoport` WHERE tankorId=%u";
+ $erintettTankorCsoport = db_query($q, array('debug'=>false,'fv'=>'-pre/tankorCsoport','modul'=>'naplo','result'=>'value','values'=>array($_tankorId)),$lr);
+ if ($erintettTankorCsoport > 0) $_SESSION['alert'][] = 'info::A tankör ('.$_tankorId.') a tankörcsoportot/okat elhagyta.';
+
+ $q = "DELETE FROM ".__TANEVDBNEV.".`tankorCsoport` WHERE tankorId=%u";
+ $r = db_query($q, array('debug'=>false,'fv'=>'-pre/tankorCsoport','modul'=>'naplo','values'=>array($_tankorId)),$lr);
+
+ if (tankorDiakTorol($DEL,$lr) === false) {
+ $_SESSION['alert'][] = 'info:wrong_data:Hiba a tankörből való kiléptetéskor';
+ $SQL_fail=true;
+ }
+ // a tankorDiakFelmentes táblával ebben az esetben mi legyen? a tankorDiakTorol függvénynek
+ // azzal is kéne foglalkoznia? - talán igen
+ }
+ }
+ /* 2. írjuk be neki az FM bejegyzést */
+ //találjuk ki milyen félévekre kell beírnunk:
+ $q = "SELECT szemeszter,zarasDt FROM szemeszter WHERE zarasDt>='%s' AND tanev=%s";
+ $v = array($tolDt,__TANEV);
+ $SZEMESZTEREK = db_query($q, array('fv'=>'-pre','values'=>$v,'result'=>'indexed','modul'=>'naplo_intezmeny'), $lr);
+ for ($i=0; $i<count($SZEMESZTEREK); $i++) {
+ $_szemeszter = $SZEMESZTEREK[$i]['szemeszter'];
+ $_hivatalosDt= $SZEMESZTEREK[$i]['zarasDt'];
+ $_evfolyamJel = generateDiakEvfolyamJel($diakId,__TANEV,$szemeszter);
+ // ellenőrizzük a zárójegy táblát, van-e bejegyzése
+ {
+ $q = "SELECT count(zaroJegyId) AS db FROM zaroJegy WHERE diakId=%u AND targyId=%u AND evfolyamJel='%s' AND felev=%u AND hivatalosDt='%s'";
+ $v = array($diakId,$targyId,$_evfolyamJel,$_szemeszter,$_hivatalosDt);
+ $count = db_query($q, array('fv'=>'-pre','modul'=>'naplo_intezmeny','result'=>'value','values'=>$v), $lr);
+ }
+ if ($count==0) {
+ $JEGY = array(array('targyId'=>$targyId,'zaroJegyId'=>null, 'diakId'=> $diakId, 'jegyTipus'=>'nem értékelhető', 'jegy'=>'1.0', 'tanev'=>__TANEV, 'szemeszter'=>$_szemeszter, 'felev'=>$_szemeszter));
+ if (($zaroJegyek=zaroJegyBeiras($JEGY,$lr))===false) {
+ $_SESSION['alert'][] = 'info:wrong_data:Hiba a jegy rögzítéskor';
+ $SQL_fail=true;
+ } else {
+ // rögzített zárójegyek idjei... $zaroJegyek
+ }
+ } else {
+ $_SESSION['alert'][] = 'info:wrong_data:A megadott félévre már van rögzítve zárójegye!:'.$_szemeszter;
+ $SQL_fail=true ;
+ }
+
+ } // szemeszterek
+ /* 3. Most már a megfelelő záradékot is rögzíthetjük akár */
+ $targyAdat = getTargyById($targyId);
+ $ZARADEK = array('iktatoszam'=>$iktatoszam,'diakId'=>$diakId, 'dt'=>date('Y-m-d'), 'zaradekIndex'=>$ZaradekIndex['felmentés']['tárgy tanulása alól'],'csere'=>array('%tantárgyak neve%'=>$targyAdat['targyNev']));
+ if (($zaradekId = zaradekRogzites($ZARADEK,$lr))===false) {
+ $_SESSION['alert'][] = 'info::Hiba a záradék rögzítésekor!';
+ $SQL_fail=true;
+ } else {
+ // rögzített záradék idje: $zaradekId
+ }
+
+ if ($SQL_fail===true) db_rollback($lr);
+ else db_commit($lr);
+ db_close($lr);
+
+ /* ReReading Data */
+ $ADAT['diakAdat'] = getDiakAdatById($diakId);
+ $ADAT['diakTargy'] = getTargyakByDiakId($diakId,array('tolDt'=>$dt,'result'=>'indexed'));
+ $ADAT['diakTankor'] = getTankorByDiakId($diakId,__TANEV,array('tolDt'=>$dt));
+
+ } // action 3
+ elseif ($action=="tankorDiakFelmentesTorol") {
+ $SQL_fail=false;
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+
+ $DELFMID = readVariable($_POST['DELFM'],'id');
+ for ($i=0; $i<count($DELFMID); $i++) {
+ tankorDiakFelmentesLezar(array('tankorDiakFelmentesId'=>$DELFMID[$i], 'kiDt'=>$dt), $lr);
+ $ZARADEK = array('iktatoszam'=>$iktatoszam,'diakId'=>$diakId, 'dt'=>date('Y-m-d'), 'zaradekIndex'=>$ZaradekIndex['felmentés']['törlés'],'csere'=>array('%tankorDiakFelmentesId%'=>$DELFMID[$i],'%dt%'=>$dt));
+ if (($zaradekId = zaradekRogzites($ZARADEK,$lr))===false) {
+ $_SESSION['alert'][] = 'info::Hiba a záradék rögzítésekor!';
+ $SQL_fail=true;
+ }
+ }
+ if ($SQL_fail===true) db_rollback($lr);
+ else db_commit($lr);
+ db_close($lr);
+ }
+ }
+ /* End of ACTION */
+ $ADAT['diakZaradek'] = getDiakZaradekok($diakId, array('tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt']));
+ $ADAT['tankorDiakFelmentes'] = getTankorDiakFelmentes($diakId, __TANEV,array('csakId' => false, 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'], 'result'=>'indexed', 'felmentesTipus'=>array('óralátogatás alól','értékelés alól')) );
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array('osztalyId', 'tanev'),
+ 'paramName' => 'dt',
+ 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])),
+ 'igDt' => $_TANEV['zarasDt'],
+ 'post'=>array('osztalyId','diakId')
+ );
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('dt'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'tanev'=>$tanev, 'osztalyId' => $osztalyId,
+// 'statusz' => $ADAT['statusz'],
+ 'post' => array('osztalyId','dt')
+ );
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=felmentes'),
+ 'titleConst' => array('_FELMENTES'), 'post' => array('diakId','osztalyId'));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes.php
new file mode 100644
index 00000000..5628ebe8
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakFelmentes.php
@@ -0,0 +1,13 @@
+<?php
+
+ global $ADAT;
+
+ if ($ADAT['diakId']!='') {
+ if (__NAPLOADMIN===true || __VEZETOSEG===true) {
+ putDiakFelmentesForm($ADAT);
+ } else {
+ putDiakFelmentesAdatok($ADAT);
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz-pre.php
new file mode 100644
index 00000000..6e8e23b3
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz-pre.php
@@ -0,0 +1,117 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/diakModifier.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', defined('__TANEV')?__TANEV:null );
+ $ADAT['diakId'] = $diakId = readVariable($_POST['diakId'],'id', readVariable($_GET['diakId'], 'id'));
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'],'numeric unsigned');
+ $ADAT['statusz'] = getEnumField('naplo_intezmeny', 'diak', 'statusz');
+
+ if (isset($diakId)) {
+
+ $ADAT['statusz2zaradek'] = array(
+ 'jogviszonyban van' => array_values($ZaradekIndex['jogviszony megnyitás']),
+ 'magántanuló' => array($ZaradekIndex['jogviszony változás']['magántanuló']),
+ 'vendégtanuló' => array(),
+ 'jogviszonya felfüggesztve' => array($ZaradekIndex['jogviszony változás']['felfüggesztés']),
+ 'jogviszonya lezárva' => array_values($ZaradekIndex['jogviszony lezárás'])
+ );
+ $ADAT['jogviszonyZaradekok'] = array_merge(
+ $ADAT['statusz2zaradek']['jogviszonyban van'],
+ $ADAT['statusz2zaradek']['magántanuló'],
+ $ADAT['statusz2zaradek']['jogviszonya felfüggesztve'],
+ $ADAT['statusz2zaradek']['jogviszonya lezárva']
+ );
+
+ if ($action == 'diakAdatModositas') {
+ $Param = array(
+ 'diakId' => $diakId,
+ 'jogviszonyKezdete' => readVariable($_POST['jogviszonyKezdete'], 'date')
+ );
+ //if (isset($Param['jogviszonyKezdete']))
+ diakAdatModositas($Param);
+ } elseif ($action == 'diakJogviszonyTorles') {
+ $Param = array(
+ 'diakId' => $diakId,
+ 'dt' => readVariable($_POST['dt'], 'date'),
+ 'statusz' => readVariable($_POST['statusz'], 'enum', null, $ADAT['statusz']),
+ 'zaradekId' => readVariable($_POST['zaradekId'], 'id')
+ );
+ diakJogviszonyBejegyzesTorles($Param);
+ } elseif ($action == 'diakZaradek') {
+ $Param = array(
+ 'diakId' => $diakId,
+ 'dt' => readVariable($_POST['dt'], 'date'),
+ 'zaradekIndex' => readVariable($_POST['zaradekIndex'], 'numeric unsigned', null, $ADAT['jogviszonyZaradekok']),
+ 'zaradekId' => readVariable($_POST['zaradekId'], 'id'),
+ 'values' => readVariable($_POST['values'], 'string')
+ );
+ $ok = true;
+ $tmp = explode('%', $Zaradek[ $Param['zaradekIndex'] ]['szoveg']);
+ $Param['params'] = array();
+ for ($i=1; $i < count($tmp); $i = $i+2) $Param['params'][] = $tmp[$i];
+ $Param['csere'] = array();
+ for ($i = 0; $i < count($Param['params']); $i++) {
+ $Param['csere'][ '%'.$Param['params'][$i].'%' ] = $Param['values'][$i];
+ if ($Param['values'][$i] == '') $ok = false;
+ }
+ if ($ok) {
+ if (zaradekRogzites($Param)) { $_SESSION['alert'][] = 'info:success'; }
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field';
+ }
+ }
+
+ $ADAT['diakAdat'] = getDiakAdatById($diakId);
+ $ADAT['diakStatusz'] = getDiakJogviszony($diakId);
+ $ADAT['diakZaradekok'] = getDiakZaradekok($diakId, array('result' => 'multiassoc', 'keyfield' => 'dt'));
+ $ADAT['zaradekok'] = getZaradekok();
+
+ // záradékok státusz változásokhoz rendelése
+ foreach ($ADAT['diakStatusz'] as $index => $djAdat) {
+ if (is_array($ADAT['diakZaradekok'][ $djAdat['dt'] ])) {
+ foreach ($ADAT['diakZaradekok'][ $djAdat['dt'] ] as $j => $zAdat) {
+ if (in_array($zAdat['zaradekIndex'], $ADAT['statusz2zaradek'][ $djAdat['statusz'] ])) {
+ $ADAT['diakStatusz'][$index]['zaradek'] = $zAdat;
+ unset($ADAT['diakZaradekok'][ $djAdat['dt'] ][$j]);
+ break;
+ }
+ }
+ }
+ }
+
+ } else {
+
+ $ADAT['hibas'] = getHibasJogviszony();
+
+ }
+
+ // ToolBar
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'action' => 'tanevValasztas', 'post' => array('tanev','diakId'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'tanev' => $tanev, 'post' => array('tanev'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'tanev'=>$tanev, 'osztalyId' => $osztalyId,
+ 'statusz' => $ADAT['statusz'],
+ 'post' => array('tanev','osztalyId')
+ );
+// EZ MI?! (maxValue?!)
+ $TOOL['szamSelect'] = array('tipus' => 'cella', 'title' => 'DIAKIDTITLE', 'minValue' => 1, 'maxValue' => 3000, 'paramName' => 'diakId', 'post' => array('tanev','osztalyId'));
+/* $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=intezmeny&f=diak'),
+ 'titleConst' => array('_DIAKADATLAP'),
+ 'post' => array('diakId'),
+ );
+*/ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz.php
new file mode 100644
index 00000000..68403bac
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakStatusz.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['diakId'])) putDiakJogviszonyForm($ADAT);
+ else putHibasJogviszony($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo-pre.php
new file mode 100644
index 00000000..f16dc808
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo-pre.php
@@ -0,0 +1,98 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR && !__DIAK) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/szulo.php');
+
+ $Tipusok = array('anya','apa','gondviselo','nevelo');
+ $ADAT['statuszTipusok'] = getEnumField('naplo_intezmeny', 'szulo', 'statusz');
+
+ if (__DIAK===true) $ADAT['diakId'] = $diakId = __USERDIAKID;
+ else $ADAT['diakId'] = $diakId = readVariable($_POST['diakId'], 'numeric unsigned', readVariable($_GET['diakId'], 'numeric unsigned', null));
+ $ADAT['$szuloId'] = $szuloId = readVariable($_POST['szuloId'], 'numeric unsigned', readVariable($_GET['szuloId'], 'numeric unsigned', null));
+ $ADAT['tipus'] = $tipus = readVariable($_POST['tipus'], 'enum', readVariable($_GET['tipus'], 'enum', null, $Tipusok), $Tipusok);
+ $ADAT['kozteruletJelleg'] = getEnumField('naplo_intezmeny', 'diak', 'lakhelyKozteruletJelleg');
+
+ if (isset($szuloId)) {
+ $ret = getSzulokDiakjai(array($szuloId));
+ $ADAT['szuloDiakjai'] = $ret[$szuloId];
+ $szDiakIds = array();
+ for ($i = 0; $i < count($ADAT['szuloDiakjai']); $i++) $szDiakIds[] = $ADAT['szuloDiakjai'][$i]['diakId'];
+ if (!isset($diakId)) $ADAT['diakId'] = $diakId = $ADAT['szuloDiakjai'][0]['diakId'];
+ elseif (!in_array($diakId, $szDiakIds)) {
+ unset($szuloId); unset($ADAT['$szuloId']); unset($_POST['szuloId']); unset($ADAT['szuloDiakjai']);
+ }
+ }
+ if (isset($diakId)) {
+ $diakAdat = getDiakAdatById($diakId);
+ if (isset($szuloId) && $diakAdat[$tipus.'Id'] != $szuloId) {
+ if ($diakAdat['anyaId'] == $szuloId) $tipus='anya';
+ elseif ($diakAdat['apaId'] == $szuloId) $tipus='apa';
+ elseif ($diakAdat['gondviseloId'] == $szuloId) $tipus='gondviselo';
+ elseif ($diakAdat['neveloId'] == $szuloId) $tipus='nevelo';
+ }
+ }
+
+ if (!isset($_POST['semmi'])) {
+ if (isset($_POST['anya'])) $tipus = 'anya';
+ elseif (isset($_POST['apa'])) $tipus = 'apa';
+ elseif (isset($_POST['gondviselo'])) $tipus = 'gondviselo';
+ elseif (isset($_POST['nevelo'])) $tipus = 'nevelo';
+ }
+ $ADAT['$szuloId'] = $szuloId = $_POST['szuloId'] = $diakAdat[$tipus.'Id'];
+
+ define('_MODOSITHAT',(__NAPLOADMIN || __TITKARSAG));
+ // ------------- action ------------------ //
+ if (_MODOSITHAT && $action=='diakSzuloModositas') {
+
+ if (
+ !isset($_POST['semmi']) &&
+ (isset($_POST['anya']) || isset($_POST['apa']) || isset($_POST['gondviselo']) || isset($_POST['nevelo']))
+ ) {
+ // echo 'lap váltás';
+ } else {
+
+// if (!isset($_POST['szuloId']) || $_POST['szuloId'] == '') {
+ $FIELDS = getTableFields('szulo');
+ foreach ($FIELDS as $attr => $name) {
+ if (!isset($ADAT[$attr]))
+ if ($attr == 'szuletesiEv') $ADAT[$attr] = readVariable($_POST[$attr], 'numeric unsigned', null, array(), '1900<$return && $return<2100');
+ else $ADAT[$attr] = readVariable($_POST[$attr], 'sql', null);
+ }
+ if (!isset($szuloId)) {
+ $ujSzuloId = readVariable($_POST['ujSzuloId'], 'numeric unsigned', null);
+ if (isset($ujSzuloId)) {
+ $szuloId = szuloHozzarendeles($diakId, $tipus, $ujSzuloId);
+ } else {
+ $szuloId = ujSzulo($ADAT, $FIELDS); // ez rendben van, de ajaxnál???
+ }
+ if ($szuloId) $diakAdat[$tipus.'Id'] = $szuloId;
+ } else {
+ if (!isset($_POST['semmi']) && isset($_POST['torles'])) {
+ if (szuloHozzarendelesTorlese($diakId, $tipus)) unset($diakAdat[$tipus.'Id']);
+ } else {
+ if (__NAPLOADMIN !== true) unset($ADAT['userAccount']);
+ szuloAdatModositas($ADAT, $FIELDS);
+ }
+ }
+
+ }
+
+ }
+ // ------------- action ------------------ //
+
+ $Szulok = getSzulok();
+
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'post'=>array('szuloId','tipus'));
+ $TOOL['szuloSelect'] = array('tipus'=>'cella', 'szulok'=>$Szulok, 'post'=>array(''));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo.php
new file mode 100644
index 00000000..12a53b54
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakSzulo.php
@@ -0,0 +1,13 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Szulok, $tipus, $diakAdat, $ADAT;
+
+ if (is_array($diakAdat)) putDiakSzulo($diakAdat, $Szulok, $tipus, $ADAT);
+// if (isset($tipus));
+// else
+// echo 'KERESŐ, vagy ÚJ';
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakTankor-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankor-pre.php
new file mode 100644
index 00000000..f4ef9295
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankor-pre.php
@@ -0,0 +1,116 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+# require_once('include/modules/naplo/share/targy.php');
+# require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/jegy.php');
+
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/share/date/names.php');
+
+ $refDt = readVariable($_POST['refDt'],'datetime',$_TANEV['kezdesDt']);
+ $osztalyId = readVariable($_POST['osztalyId'],'id',null);
+ $ADAT['osztalyId'] = $osztalyId;
+ $forceDel = (readVariable($_POST['forceDel'],'numeric unsigned',null)=='1') ? true:false;
+
+ $diakId = readVariable($_POST['diakId'], 'id', readVariable($_GET['diakId'],'id'));
+ $ADAT['diakId'] = $diakId;
+ if (isset($_POST['tanev']) && $_POST['tanev'] != '') $tanev = $_POST['tanev'];
+ if (!isset($tanev)) $tanev=__TANEV;
+ $ADAT['tanev'] = $tanev;
+
+ //$igDt = date('Y-m-d', strtotime('-1day',strtotime($refDt)));
+
+ if ($tanev!=__TANEV) $TA = getTanevAdat($tanev); else $TA = $_TANEV;
+
+if (isset($refDt)) {
+
+ $ADAT['refDt'] = $refDt;
+
+ define('__MODOSITHATO',(( (__NAPLOADMIN || __VEZETOSEG) && ($TA['statusz']=='aktív' || (__FOLYO_TANEV && $tanev==__TANEV)))));
+
+ if ($action=='do' && __MODOSITHATO) {
+ for($i=0; $i<count($_POST['UJtankorId']); $i++) {
+ $_D = array('tankorId'=>$_POST['UJtankorId'][$i],'diakId'=>$diakId,'tolDt'=>$refDt,'jelenlet'=>'kötelező','kovetelmeny'=>'jegy');
+ tankorDiakFelvesz($_D);
+ }
+ for($i=0; $i<count($_POST['DELtankorId']); $i++) {
+ $_D = array('tankorId'=>$_POST['DELtankorId'][$i],'diakId'=>$diakId,'tolDt'=>$refDt);
+ if ($forceDel===true) {
+ $_D['utkozes'] = 'torles';
+ define('__VEZETOSEG_TOROLHET_HIANYZAST',true); // Hiányzást - adminon kívül - alap helyzetben csak a rögzítő tanár törölhet!
+ }
+ $_result = tankorDiakTorol($_D);
+ if ($_result===true) $_SESSION['alert'][] = 'info:done:'.$_POST['DELtankorId'][$i];
+ else $_SESSION['alert'][] = 'alert:rollback:tankorId='.$_POST['DELtankorId'][$i];
+ }
+ for ($i=0; $i<count($result); $i++) {
+
+ }
+
+ } elseif ($action=='do') {
+ $_SESSION['alert'][] = 'info:deadline_expired:';
+ }
+
+
+ if ($diakId!='') {
+ $ADAT['osztalyok'] = $osztalyIdk = getDiakOsztalya($diakId, array('tanev'=>$tanev,'tolDt'=>$refDt));
+ $ADAT['tankorok']['diake'] = getTankorByDiakId($diakId,$tanev,array('tolDt'=>$refDt,'igDt'=>$refDt));
+ /* Óraszámok megállapítása */
+ $sum = 0;
+ if (is_array($ADAT['tankorok']['diake']))
+ foreach ($ADAT['tankorok']['diake'] as $_ti => $TA) {
+ $_tankorId = $TA['tankorId'];
+ $a = getTankorOraszamByTanev($tanev,$_tankorId);
+ $ADAT['diakTankorOraszam'][$TA['tankorTipus']] += $a[$_tankorId];
+ $sum += $a[$_tankorId];
+ $ADAT['tankorok']['diake'][$_ti]['hetiOraszam'] = $a[$_tankorId];
+ }
+ /* --- */
+ $ADAT['diakOsszOraszam'] = ($sum);
+ }
+ if (is_array($osztalyIdk)) {
+ for ($i=0; $i<count($osztalyIdk); $i++) {
+ $ADAT['tankorok']['osztalye'][ $osztalyIdk[$i]['osztalyId'] ] = getTankorByOsztalyId($osztalyIdk[$i]['osztalyId'],$tanev,array('tanarral'=>true));
+ }
+ }
+
+}
+
+ // -------------------------------------------------------------------------
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('diakId','tanev','osztalyId'),
+ 'paramName' => 'refDt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])),
+ 'igDt' => $TA['zarasDt'],
+// 'napTipusok' => array('tanítási nap', 'speciális tanítási nap')
+ );
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'tanev' => $tanev, 'post' => array('tanev','refDt'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella','paramName'=>'diakId', 'post'=>array('tanev','refDt','osztalyId'));
+ // $TOOL['tanarSelect'] = array('tipus'=>'sor','paramName'=>'tanarId', 'post'=>array());
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=tankor'),
+ 'titleConst' => array('_TANKOR'), 'post' => array('tankorId','mkId','targyId'));
+
+ $TOOL['tanevLapozo'] = array('tipus'=>'sor','paramName'=>'tanev', 'post'=>array('diakId'),
+ 'tanev'=>$tanev);
+
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakTankor.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankor.php
new file mode 100644
index 00000000..de5d2785
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankor.php
@@ -0,0 +1,13 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (__USERADMIN || __VEZETOSEG || __TANAR) {
+
+ if (is_array($ADAT['osztalyok'])) putDiakTankorForm($ADAT);
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes-pre.php
new file mode 100644
index 00000000..0c6f8821
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes-pre.php
@@ -0,0 +1,113 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__DIAK && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/share/date/names.php');
+
+ if (__DIAK) $diakId = __USERDIAKID;
+ else $diakId = readVariable($_POST['diakId'],'id');
+
+ $ADAT['diakId'] = $diakId;
+
+ global $_TANEV;
+
+ if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '')
+ $szemeszterId = readVariable($_POST['szemeszterId'],'id');
+ else {
+ if (__FOLYO_TANEV) $_felev = getFelevByDt(date('Y-m-d')); else $_felev = count($_TANEV['szemeszter']);
+ $szemeszterId = getKovetkezoSzemeszterId($_TANEV['szemeszter'][$_felev]['tanev'],$_TANEV['szemeszter'][$_felev]['szemeszter'], true);
+ if (is_null($szemeszterId)) $szemeszterId = getSzemeszterIdByDt(date('Y-m-d'));
+ }
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ $ADAT['tanev'] = $tanev = $ADAT['szemeszterAdat']['tanev'];
+ $ADAT['szemeszterId'] = $szemeszterId;
+
+ //igaziból nem kéne blokkba szervezni... var_dump($ADAT['szemeszterAdat']['statusz']=='aktív');
+ $refDt = ($ADAT['szemeszterAdat']['kezdesDt']);
+ // csak a félévhez tartozó időszakok érnek, a tanév más szemesztereihez nem!
+ $IDO = getIdoszakByTanev(array('tanev' => $tanev, 'szemeszter'=> $ADAT['szemeszterAdat']['szemeszter'],'tipus' => array('előzetes tárgyválasztás','tárgyválasztás'), 'tolDt' => '', 'igDt' => '', 'return' => 'assoc'));
+ if (__VEZETOSEG===true || __NAPLOADMIN===true) {
+ define('__TARGYVALASZTAS',true); define('__MINCONTROL',false);
+ } else {
+ if (is_array($IDO) && count($IDO)>0) {
+ foreach ( $IDO as $idoszakId => $IDATA ) {
+ if ( strtotime($IDATA['előzetes tárgyválasztás'][0]['tolDt']) <= time() && time()<=strtotime($IDATA['előzetes tárgyválasztás'][0]['igDt'])) {
+ define('__TARGYVALASZTAS',true); define('__MINCONTROL',false); break;
+ } elseif ( strtotime($IDATA['tárgyválasztás'][0]['tolDt']) <= time() && time()<=strtotime($IDATA['tárgyválasztás'][0]['igDt'])) {
+ define('__TARGYVALASZTAS',true); define('__MINCONTROL',true); break;
+ } else {
+ // loop();
+ }
+ }
+ }
+ }
+ if (!defined('__TARGYVALASZTAS')) { define('__TARGYVALASZTAS',false); define('__MINCONTROL',false); }
+
+ if (__TARGYVALASZTAS===true) {
+
+ } else {
+ $_SESSION['alert'][] = 'info:nem_targyvalasztasi_idoszak:';
+ }
+
+ /* Képzésre vonatkozó beállítások */
+ $ADAT['diakKepzes'] = getKepzesByDiakId($diakId, array('result'=>'assoc','dt'=>$refDt));
+ for ($i=0; $i<count($ADAT['diakKepzes'][$diakId]); $i++) {
+ $K = $ADAT['diakKepzes'][$diakId][$i];
+ /* Évfolyam meghatározás ha lehet (adott tanév!) */
+ $ADAT['diakOsztaly'] = getDiakokOsztalyai(array($diakId), array('tanev' => $tanev));
+ for($j=0; $j<count($ADAT['diakOsztaly'][$diakId]); $j++) {
+ $ADAT['diakEvfolyam'][] = getEvfolyam($ADAT['diakOsztaly'][$diakId][$j], $tanev);
+ }
+ if (count($ADAT['diakEvfolyam'])>1) $_SESSION['alert'][] = ':multi_evfolyam:';
+ $ADAT['kepzesOraszam'][$K['kepzesId']] = getOraszamByKepzes($K['kepzesId'],array('evfolyam'=>$ADAT['diakEvfolyam'][0], 'szemeszter'=>$ADAT['szemeszterAdat']['szemeszter']));
+ }
+ //var_dump($ADAT['kepzesOraszam']['kötelezően választható']['sum']);
+ //var_dump($ADAT['kepzesOraszam']['szabadon választható']['sum']);
+ /* Képzés vége */
+
+ //define('__MODOSITHATO',(( (__NAPLOADMIN || __VEZETOSEG) && ($ADAT['szemeszterAdat']['statusz']=='aktív' || (__FOLYO_TANEV && $tanev==__TANEV)))));
+
+ if ($action=='do' && __TARGYVALASZTAS===true && (__VEZETOSEG===true || __NAPLOADMIN===true || __DIAK===true)) {
+ foreach($_POST as $pNev => $pErtek) {
+ if (substr($pNev,0,strlen("UJTANKORID")) == 'UJtankorId') {
+ $_D = array('tankorId'=>intval(substr($pNev,10)),'diakId'=>$diakId,'tolDt'=> $refDt);
+ tankorDiakFelvesz($_D);
+ } elseif (substr($pNev,0,strlen("DELTANKORID")) == 'DELtankorId') {
+ $_D = array('tankorId'=>intval(substr($pNev,11)),'diakId'=>$diakId,'tolDt'=>$refDt,'MIN_CONTROL'=>__MINCONTROL);
+ tankorDiakTorol($_D);
+ }
+ }
+ } elseif ($action=='do') {
+ $_SESSION['alert'][] = 'info:deadline_expired:';
+ }
+
+ if ($diakId!='') {
+ $ADAT['osztalyok'] = $osztalyIdk = getDiakOsztalya($diakId, array('tanev'=>$tanev,'result'=>'csakid'));
+ $ADAT['tankorok']['diake'] = getTankorByDiakId($diakId,$tanev,array('tolDt'=>$refDt,'igDt'=>$refDt));
+ }
+ $ADAT['tankorBlokkok'] = getTankorBlokkok($tanev);
+ if ($diakId=='' OR ($diakId!='' && is_array($ADAT['osztalyok']) && count($ADAT['osztalyok'])!=0))
+ $ADAT['tankorok']['valaszthato'] = getValaszthatoTankorok($tanev,$ADAT['szemeszterAdat']['szemeszter'], $ADAT['osztalyok']);
+ if (__DIAK!==true) $TOOL['diakSelect'] = array('tipus'=>'cella','paramName'=>'diakId', 'post'=>array('tanev','szemeszterId','refDt'));
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName'=>'szemeszterId', 'post'=>array('diakId'),
+ 'tanev'=>$tanev, 'statusz'=>array('aktív'));
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=tankor'),
+ 'titleConst' => array('_TANKOR'), 'post' => array('tankorId','mkId','targyId'));
+
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes.php b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes.php
new file mode 100644
index 00000000..52819ca3
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/diakTankorJelentkezes.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putDiakTankorJelentkezesForm($ADAT);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/felmentes-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/felmentes-pre.php
new file mode 100644
index 00000000..3dfae44a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/felmentes-pre.php
@@ -0,0 +1,67 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR && !__DIAK) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'],'date',date('Y-m-d'));
+
+ if (__DIAK===true) {
+ $ADAT['diakId'] = $diakId = __USERDIAKID;
+ } else {
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'],'id');
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'],'id');
+ $ADAT['diakId'] = $diakId = readVariable($_POST['diakId'],'id');
+ }
+ $tolDt = readVariable($_POST['tolDt'],'date',$dt);
+
+ $ADAT['diakAdat'] = getDiakok(array('result'=>'assoc'));
+
+ if ($osztalyId!='') {
+ //$targyId = readVariable($_POST['targyId'],'id');
+ //$ADAT['diakAdat'] = getDiakAdatById($diakId);
+ //$ADAT['diakTargy'] = getTargyakByDiakId($diakId,array('tolDt'=>$dt,'result'=>'indexed'));
+ //$ADAT['diakTankor'] = getTankorByDiakId($diakId,__TANEV,array('tolDt'=>$dt,'igDt'=>$_TANEV['zarasDt']));
+ $ADAT['felmentes'] = getFelmentes(array('csakId' => false,
+ 'osztalyId'=>$osztalyId,
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt'=>$_TANEV['zarasDt'], 'result'=>'indexed', 'felmentesTipus'=>array('óralátogatás alól','értékelés alól')));
+ } else {
+ $ADAT['felmentes'] = getFelmentes(array('csakId' => false,
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt'=>$_TANEV['zarasDt'], 'result'=>'indexed', 'felmentesTipus'=>array('óralátogatás alól','értékelés alól')));
+ }
+ if (__NAPLOADMIN === true || __VEZETOSEG===true) {
+ }
+/* ------------- */
+ $ADAT['diakZaradek'] = getDiakZaradekok($diakId, array('tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt']));
+ $ADAT['tankorDiakFelmentes'] = getTankorDiakFelmentes($diakId, __TANEV,array('csakId' => false, 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'], 'result'=>'indexed', 'felmentesTipus'=>array('óralátogatás alól','értékelés alól')) );
+
+/*
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array('osztalyId', 'tanev'),
+ 'paramName' => 'dt',
+ 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])),
+ 'igDt' => $_TANEV['zarasDt'],
+ 'post'=>array('osztalyId','diakId')
+ );
+*/
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('dt'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'tanev'=>$tanev, 'osztalyId' => $osztalyId,
+// 'statusz' => $ADAT['statusz'],
+ 'post' => array('osztalyId','dt')
+ );
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/felmentes.php b/mayor-orig/www/policy/private/naplo/intezmeny/felmentes.php
new file mode 100644
index 00000000..84bcb21d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/felmentes.php
@@ -0,0 +1,11 @@
+<?php
+
+ global $ADAT;
+
+ if (__NAPLOADMIN===true || __VEZETOSEG===true) {
+ putFelmentes($ADAT);
+ } else {
+ //putFelmentes($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/intezmeny-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/intezmeny-pre.php
new file mode 100644
index 00000000..46805e9e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/intezmeny-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/intezmeny.php b/mayor-orig/www/policy/private/naplo/intezmeny/intezmeny.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/intezmeny.php
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek-pre.php
new file mode 100644
index 00000000..2fc0ba1c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek-pre.php
@@ -0,0 +1,92 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/kepesites.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tanar.php');
+
+ $ADAT['targyak'] = getTargyak();
+ foreach ($ADAT['targyak'] as $idx => $tAdat) $ADAT['targyIds'][] = $tAdat['targyId'];
+ $ADAT['tanarok'] = getTanarok();
+ foreach ($ADAT['tanarok'] as $idx => $tAdat) $ADAT['tanarIds'][] = $tAdat['tanarId'];
+ $ADAT['vegzettsegek'] = getEnumField('naplo_intezmeny', 'kepesites', 'vegzettseg');
+ $ADAT['fokozatok'] = getEnumField('naplo_intezmeny', 'kepesites', 'fokozat');
+ $ADAT['specializaciok'] = getEnumField('naplo_intezmeny', 'kepesites', 'specializacio');
+ foreach ($ADAT['kepesitesek'] as $idx => $kAdat) $ADAT['kepesitesIds'][] = $kAdat['kepesitesId'];
+
+ $ADAT['kepesitesId'] = $kepesitesId = readVariable($_POST['kepesitesId'], 'id', null, $ADAT['kepesitesIds']);
+ if (isset($kepesitesId)) {
+
+ if ($action == 'kepesitesModositas') {
+ // Alap adatok módosítása
+ $kepesitesNev = readVariable($_POST['kepesitesNev'], 'string');
+ $vegzettseg = readVariable($_POST['vegzettseg'], 'enum', null, $ADAT['vegzettsegek']);
+ $fokozat = readVariable($_POST['fokozat'], 'enum', null, $ADAT['fokozatok']);
+ $specializacio = readVariable($_POST['specializacio'], 'enum', null, $ADAT['specializaciok']);
+ if (isset($kepesitesNev) && isset($vegzettseg) && isset($fokozat) && isset($specializacio)) {
+ $ok = kepesitesModositas($kepesitesId, $vegzettseg, $fokozat, $specializacio, $kepesitesNev);
+ if ($ok) $_SESSION['alert'][] = 'info:success';
+ }
+ // Tárgy hozzárendelés
+ $targyId = readVariable($_POST['targyId'], 'id', null, $ADAT['targyIds']);
+ if (isset($targyId)) {
+ $ok = kepesitesTargyHozzarendeles($kepesitesId, $targyId);
+ if ($ok) $_SESSION['alert'][] = 'info:success';
+ }
+ // Tanár hozzárendelés
+ $tanarId = readVariable($_POST['tanarId'], 'id', null, $ADAT['tanarIds']);
+ if (isset($tanarId)) {
+ $ok = tanarKepesitesHozzarendeles($tanarId, $kepesitesId);
+ if ($ok) $_SESSION['alert'][] = 'info:success';
+ }
+ } elseif ($action == 'delTargy') {
+
+ $targyId = readVariable($_POST['targyId'], 'id', null, $ADAT['targyIds']);
+ $ok = kepesitesTargyTorles($kepesitesId, $targyId);
+ $_JSON = array(
+ 'result' => ($ok?'success':'fail'),
+ 'targyId' => $targyId,
+ 'kepesitesId' => $kepesitesId
+ );
+
+ } elseif ($action == 'delTanar') {
+
+ $tanarId = readVariable($_POST['tanarId'], 'id', null, $ADAT['tanarIds']);
+ $ok = tanarKepesitesTorles($tanarId, $kepesitesId);
+ $_JSON = array(
+ 'result' => ($ok?'success':'fail'),
+ 'tanarId' => $tanarId,
+ 'kepesitesId' => $kepesitesId
+ );
+
+ }
+
+ } elseif ($action == 'ujKepesites') {
+ $kepesitesNev = readVariable($_POST['kepesitesNev'], 'string');
+ $vegzettseg = readVariable($_POST['vegzettseg'], 'enum', null, $ADAT['vegzettsegek']);
+ $fokozat = readVariable($_POST['fokozat'], 'enum', null, $ADAT['fokozatok']);
+ $specializacio = readVariable($_POST['specializacio'], 'enum', null, $ADAT['specializaciok']);
+ if (isset($kepesitesNev) && isset($vegzettseg) && isset($fokozat) && isset($specializacio)) {
+ $ADAT['kepesitesId'] = $kepesitesId = ujKepesites($vegzettseg, $fokozat, $specializacio, $kepesitesNev);
+ if ($kepesitesId) $_SESSION['alert'][] = 'info:success';
+ }
+ }
+
+
+ $ADAT['kepesitesek'] = getKepesitesek();
+ if (isset($kepesitesId)) {
+ $i=0;
+ while ($i < count($ADAT['kepesitesek']) && $ADAT['kepesitesek'][$i]['kepesitesId'] != $kepesitesId) $i++;
+ $ADAT['kepesitesAdat'] = $ADAT['kepesitesek'][$i];
+ $ADAT['kepesitesAdat']['targyak'] = getKepesitesTargy($kepesitesId);
+ $ADAT['kepesitesAdat']['tanarok'] = getKepesitesTanar($kepesitesId);
+ }
+
+ $TOOL['kepesitesSelect'] = array('tipus'=>'cella', 'paramName'=>'kepesitesId','paramDesc'=>'kepesitesNev','title'=>'KEPESITES','adatok'=>$ADAT['kepesitesek'],'post' => array());
+
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek.php b/mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek.php
new file mode 100644
index 00000000..76b8e11b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/kepesitesek.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['kepesitesId'])) putKepesitesAdat($ADAT);
+ else putUjKepesites($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/kepzes-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/kepzes-pre.php
new file mode 100644
index 00000000..152e8e75
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/kepzes-pre.php
@@ -0,0 +1,60 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ $tanev = __TANEV;
+
+ $kepzesId = readVariable($_POST['kepzesId'], 'numeric unsigned', null);
+ if (isset($kepzesId)) {
+ $ADAT['kepzesAdat'] = getKepzesAdatById($kepzesId);
+ }
+ $ADAT['osztalyok'] = getOsztalyok($tanev, array('result' => 'assoc', 'minden'=>true));
+ $ADAT['osztalyJelleg'] = getOsztalyJellegek();
+
+ if ($action == 'ujKepzes') {
+ $kepzesNev = readVariable($_POST['kepzesNev'], 'string', null);
+ $tolTanev = readVariable($_POST['tolTanev'], 'numeric unsigned', null);
+ $osztalyJellegId = readVariable($_POST['osztalyJellegId'], 'id', null);
+ if (isset($kepzesNev) && isset($tolTanev) && isset($osztalyJellegId)) $kepzesId = ujKepzes($kepzesNev, $tolTanev, $osztalyJellegId);
+ else $_SESSION['alert'][] = 'message:wrong_data';
+ if ($kepzesId) {
+ $ADAT['kepzesAdat'] = getKepzesAdatById($kepzesId);
+ }
+ } elseif ($action == 'kepzesModositas') {
+ $kepzesNev = readVariable($_POST['kepzesNev'], 'string', null);
+ $tolTanev = readVariable($_POST['tolTanev'], 'numeric unsigned', null);
+ $osztalyJellegId = readVariable($_POST['osztalyJellegId'], 'id', null);
+ $osztalyIds = readVariable($_POST['osztalyId'], 'id');
+ $delOsztalyIds = readVariable($_POST['delOsztalyId'], 'id');
+ if (isset($kepzesNev) && isset($tolTanev))
+ $MODOSIT = array('kepzesId'=>$kepzesId,
+ 'kepzesNev'=>$kepzesNev,
+ 'tolTanev'=>$tolTanev,
+ 'osztalyIds'=>$osztalyIds,
+ 'delOsztalyIds'=>$delOsztalyIds,
+ 'osztalyJellegId'=>$osztalyJellegId
+ );
+ if (isset($kepzesNev) && isset($tolTanev)) kepzesModositas($MODOSIT);
+ else $_SESSION['alert'][] = 'message:wrong_data';
+ $ADAT['kepzesAdat'] = getKepzesAdatById($kepzesId);
+ } elseif ($action == 'kepzesEles') {
+ $kepzesEles = readVariable($_POST['kepzesEles'],'bool',null); // bool
+ kepzesEles($kepzesId,(($kepzesEles-1)*(-1)));
+ $ADAT['kepzesAdat'] = getKepzesAdatById($kepzesId);
+ }
+
+ $TOOL['kepzesSelect'] = array('tipus'=>'cella', 'post' => array());
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=osztaly','index.php?page=naplo&sub=intezmeny&f=kepzesOraterv'),
+ 'titleConst' => array('_OSZTALYHOZ','_KEPZESORATERVHEZ'), 'post' => array('kepzesId'),
+ 'paramName'=>'kepzesId'); // paramName ?
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/kepzes.php b/mayor-orig/www/policy/private/naplo/intezmeny/kepzes.php
new file mode 100644
index 00000000..c55395ac
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/kepzes.php
@@ -0,0 +1,14 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['kepzesAdat'])) {
+ putKepzesForm($ADAT);
+ kepzesElesForm($ADAT);
+ }
+ ujKepzesForm($ADAT);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv-pre.php
new file mode 100644
index 00000000..f82ea1cf
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv-pre.php
@@ -0,0 +1,114 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $tanev = __TANEV;
+ $ADAT['kepzesId'] = $kepzesId = readVariable($_POST['kepzesId'], 'id', null);
+
+ $ADAT['kepzesOraterv.kovetelmeny'] = getEnumField('naplo_intezmeny','kepzesOraterv','kovetelmeny');
+ $KOT = $ADAT['kepzesOraterv.tipus'] = getEnumField('naplo_intezmeny','kepzesOraterv','tipus');
+
+ function _escape($val,$A=null) {
+ global $KOT;
+ if (is_null($A) || !is_array($A)) $A = $KOT;
+ for ($i=0; $i<count($A); $i++) {
+ if ($A[$i]==$val) { return 'E'.$i; }
+ }
+ }
+ function _unescape($val,$A=null) {
+ global $KOT;
+ if (!is_array($A)) $A = $KOT;
+ for ($i=0; $i<count($A); $i++) {
+ if ($i==intval(substr($val,1))) { return $A[$i]; }
+ }
+ }
+
+ if ($action == 'oratervMasolas') {
+ $masolandoKepzesId = readVariable($_POST['masolandoKepzesId'],'id');
+ if (isset($masolandoKepzesId) && isset($kepzesId)) kepzesOratervMasolas($masolandoKepzesId, $kepzesId);
+ } else if ($action == 'do') {
+ // prepare for walk
+ $submit_done = false;
+ reset($_POST);
+ foreach($_POST as $key => $value) {
+ if (substr($key,0,6)=='torol_') {
+ list($_rest, $_tipus, $_targyId) = explode('_',$key);
+ $_tipus = _unescape(readVariable($_tipus,'strictstring'));
+ $_targyId = readVariable($_targyId,'id');
+ dropKepzesOratervRekord($kepzesId,$_tipus,$_targyId);
+ $submit_done = true;
+ }
+ }
+ if (!$submit_done) {
+ list($tipus,$targyId) = explode('_',readVariable($_POST['UJ_targyTipusId'],'string'));
+ $UJtipus = (substr($tipus,0,1)=='E') ? _unescape(readVariable($tipus,'strictstring')) : '';
+ $UJtargyId = readVariable($targyId,'id');
+ unset($tipus); unset($targyId);
+ reset($_POST);
+ foreach($_POST as $key => $value) {
+ if (substr($key,0,3) == 'MO_') {//MAX ÓRASZÁM
+ list($skey, $evfolyamJel) = explode('_',$key);
+ if (is_numeric($value)) $DDATA['oraszamok'][$evfolyamJel]['max'] = $value;
+ } elseif (substr($key,0,3) == 'KO_') {//KÖT ÓRASZÁM
+ list($skey, $evfolyamJel) = explode('_',$key);
+ if (is_numeric($value)) $DDATA['oraszamok'][$evfolyamJel]['kotelezo'] = $value;
+ } elseif (substr($key,0,2) == 'T_') {// a tárgyhoz tartozó óraszám
+ list($tipus, $targyId, $val, $evfolyamJel, $szemeszter) = explode('_',substr($key,2));
+ $tipus = _unescape($tipus);
+ $targyId = readVariable($targyId,'id');
+ //if (intval($targyId)==0) $targyId = _unescape($targyId,$ADAT['kepzesOraterv.tipus']);
+ if ($val=='O') { // heti óraszám
+ $DDATA['adatok'][$tipus][$targyId][$evfolyamJel][$szemeszter]['oraszam'] = $value;
+ } elseif ($val=='K') { // követelmény
+ $DDATA['adatok'][$tipus][$targyId][$evfolyamJel][$szemeszter]['kovetelmeny'] = $value;
+ }
+ /* Ha az új tárgyhoz tartozó adatok jönnek, pakoljuk a megfelelő tömbbe */
+ } elseif (substr($key,0,4) == 'UJ_O' && $UJtipus!='') {// az új tárgyhoz tartozó óraszám
+ list($skey1, $skey2, $evfolyamJel, $szemeszter) = explode('_',$key);
+ if (is_numeric($value)) $DDATA['adatok'][$UJtipus][$UJtargyId][$evfolyamJel][$szemeszter]['oraszam'] = $value;
+ } elseif (substr($key,0,4) == 'UJ_K' && $UJtipus!='') {// az új tárgyhoz tartozó óraszám
+ list($skey1, $skey2, $evfolyamJel, $szemeszter) = explode('_',$key);
+ $DDATA['adatok'][$UJtipus][$UJtargyId][$evfolyamJel][$szemeszter]['kovetelmeny'] = $value;
+ }
+ }
+ modifyKepzesOraterv($DDATA,$kepzesId);
+ }
+
+ }
+
+ if (isset($kepzesId)) {
+ $ADAT['kepzesAdat'] = getKepzesAdatById($kepzesId);
+ $ADAT['oraszam'] = getKepzesOraszam($kepzesId);
+ $ADAT['oraterv'] = getKepzesOraterv($kepzesId);
+ $ADAT['targyak'] = getTargyak();
+ if ($ADAT['oraterv']==array()) {
+ // A kiválasztottal azonos osztályJelleghez tartozó képzések listája - ebbe benne van maga a kiválasztott képzés is!
+ $ADAT['hasonloKepzesek'] = getKepzesByOsztalyJelleg($ADAT['kepzesAdat']['osztalyJellegId']);
+ }
+ }
+ $ADAT['osztalyok'] = getOsztalyok($tanev, array('result' => 'assoc','minden'=>true));
+
+// $ADAT['kepzesOraszam'] = getKepzesOraszam($kepzesId);
+// $ADAT['kepzesOraterv'] = getKepzesOraterv($kepzesId);
+
+ if (isset($kepzesId) && !is_numeric($ADAT['kepzesAdat']['osztalyJelleg']['osztalyJellegId']))
+ $_SESSION['alert'][] = 'error:nincs megadva osztály jelleg!';
+
+
+
+ $TOOL['kepzesSelect'] = array('tipus'=>'cella', 'post' => array());
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=osztaly','index.php?page=naplo&sub=intezmeny&f=kepzes'),
+ 'titleConst' => array('_OSZTALYHOZ','_KEPZESHEZ'), 'post' => array('kepzesId'),
+ 'paramName'=>'kepzesId'); // paramName ?
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv.php b/mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv.php
new file mode 100644
index 00000000..d56f4019
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/kepzesOraterv.php
@@ -0,0 +1,12 @@
+<?php
+
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+// putKepzesInfo($ADAT);
+ if ($ADAT['oraterv']==array() && count($ADAT['hasonloKepzesek']) > 1) putOratervMasolas($ADAT);
+ putKepzesOraterv($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg-pre.php
new file mode 100644
index 00000000..f8524925
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg-pre.php
@@ -0,0 +1,110 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['targyJellegENUM'] = getEnumField('naplo_intezmeny','targy','targyJelleg');
+ $ADAT['targy.evkoziKovetelmeny'] = getEnumField('naplo_intezmeny','targy','evkoziKovetelmeny');
+ $ADAT['targy.zaroKovetelmeny'] = getEnumField('naplo_intezmeny','targy','zaroKovetelmeny');
+
+ $ADAT['mkId'] = $mkId = readVariable($_POST['mkId'],'id');
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'],'id');
+ $ADAT['targyJelleg'] = $targyJelleg = readVariable($_POST['targyJelleg'],'sql');
+
+ $ADAT['kirTargyak'] = getKirTargyak();
+
+ if (__NAPLOADMIN) {
+ switch ($action) {
+ case 'ujMunkakozosseg':
+ if ($_POST['leiras'] != '')
+ if ( ($mkId=ujMunkakozosseg($_POST['leiras'],$_POST['mkVezId']))===false )
+ unset($mkId); unset($ADAT['mkId']);
+ break;
+ case 'modMunkakozosseg':
+ if ($_POST['mkId']!='' && $_POST['leiras'] != '')
+ modMunkakozosseg($_POST['mkId'],$_POST['leiras'],$_POST['mkVezId'],$_POST['mkUjTagok'],$_POST['mkTagok']);
+ break;
+ case 'ujTargy':
+ if ($_POST['targyleiras']!='') {
+ $_ADAT['mkId'] = readVariable($_POST['mkId'],'id');
+ $_ADAT['leiras']=readVariable($_POST['targyleiras'],'string');
+ $_ADAT['targyJelleg']=readVariable($_POST['targyJelleg'],'string');
+ $_ADAT['evkoziKovetelmeny']=readVariable($_POST['evkoziKovetelmeny'],'string');
+ $_ADAT['zaroKovetelmeny']=readVariable($_POST['zaroKovetelmeny'],'string');
+ $_ADAT['kirTargyId'] = readVariable($_POST['kirTargyId'],'id',null, $ADAT['kirTargyak']);
+ $_ti=ujTargy($_ADAT);
+ if ($_ti!==false && is_numeric($_ti)) $targyId=$_ti;
+ unset($_ti);
+ unset($_ADAT);
+ }
+ break;
+ case 'targyValtoztat':
+ $_ADAT['targyId'] = $targyId;
+ $_ADAT['targyJelleg'] = $targyJelleg;
+ $_ADAT['evkoziKovetelmeny'] = readVariable($_POST['evkoziKovetelmeny'],'sql');
+ $_ADAT['zaroKovetelmeny'] = readVariable($_POST['zaroKovetelmeny'],'sql');
+ $_ADAT['targyRovidNev'] = readVariable($_POST['targyRovidNev'],'sql');
+ $_ADAT['kirTargyId'] = readVariable($_POST['kirTargyId'],'id',null);
+ targyModosit($_ADAT);
+ break;
+ case 'targyTorol':
+ if (targyTorol($_POST['targyId'],$_POST['mkId']))
+ unset($targyId);
+ break;
+ case 'munkakozossegTorol':
+ if (munkakozossegTorol($_POST['mkId']))
+ unset($mkId); unset($ADAT['mkId']);
+ break;
+ case 'targyAtnevezes':
+ $ADAT['ujTargyNev'] = readVariable($_POST['ujTargyNev'],'string');
+ if ($ADAT['ujTargyNev'] != '') targyAtnevezes($ADAT);
+ break;
+ case 'targyMkValtas':
+ $ADAT['befogadoMkId'] = readVariable($_POST['befogadoMkId'], 'id');
+ if (targyMkValtas($ADAT)) {
+ unset($mkId); unset($ADAT['mkId']);
+ }
+ break;
+ case 'targyBeolvasztas':
+ $ADAT['befogadoTargyId'] = readVariable($_POST['befogadoTargyId'], 'id');
+ $ADAT['tankorJeloles'] = readVariable($_POST['tankorJeloles'], 'enum', null, array_values($TANKOR_TIPUS));
+ if (isset($ADAT['befogadoTargyId'])) {
+ if (targyBeolvasztas($ADAT)) {
+ $_SESSION['alert'][] = 'info:success';
+ unset($targyId); unset($ADAT['targyId']);
+ }
+ }
+ break;
+ }
+ }
+
+ $TANAROK = getTanarok();
+
+ // ha csak tággyId adott, kérdezzük le a mkId-t is...
+
+ $ADAT['munkakozossegek'] = getMunkakozossegek();
+ $ADAT['targyTargy'] = getTargyTargy();
+ if ($targyId!='') {
+ $ADAT['targyAdat'] = getTargyById($targyId);
+ if ($mkId=='') $ADAT['mkId'] = $mkId = $ADAT['targyAdat']['mkId'];
+ }
+
+ if (isset($mkId) && $mkId!='') {
+ if (defined('__TANEV')) $__TANEV = __TANEV; else $__TANEV = '';
+ $TANAROK_INMK = getTanarok(array('mkId' => $mkId, 'tanev' => $__TANEV));
+ $ADAT['mkAdat'] = getMunkakozossegById($mkId);
+ $ADAT['targyak'] = getTargyakByMkId($mkId);
+ } else {
+ $TANAROK_INMK = array();
+ }
+
+
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','munkakozossegek'=>$ADAT['munkakozossegek'],'paramName' => 'mkId', 'post'=>array());
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'post'=>array('mkId'));
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg.php b/mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg.php
new file mode 100644
index 00000000..82ca17ea
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/munkakozosseg.php
@@ -0,0 +1,27 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $targyId;
+ global $TANAROK,$TANAROK_INMK;
+ global $ADAT;
+
+ if (__NAPLOADMIN) {
+ if (isset($targyId) && $targyId!='') {
+ putTargyValtoztatForm($ADAT);
+ putTargyAtnevezes($ADAT);
+ putTargyMkValtas($ADAT);
+ putTargyTorolForm($targyId,$ADAT['mkId']);
+ putTargyBeolvasztasForm($ADAT);
+ putTargyTargyForm($ADAT);
+ } else {
+ putUjMunkakozossegForm($TANAROK);
+ if (isset($ADAT['mkId']) && $ADAT['mkId']!='') {
+ putMunkakozossegForm($ADAT['mkAdat'],$TANAROK,$TANAROK_INMK);
+ putMunkakozossegTorolForm($ADAT['mkId']);
+ putUjTargyForm($ADAT['mkId'], $ADAT);
+ }
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/osztaly-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/osztaly-pre.php
new file mode 100644
index 00000000..ddc17765
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/osztaly-pre.php
@@ -0,0 +1,323 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+if (__NAPLOADMIN!==true) $_SESSION['alert'][]='page:insufficient_access';
+
+require_once('include/share/date/names.php');
+require_once('include/modules/naplo/share/file.php');
+require_once('include/modules/naplo/share/osztaly.php');
+require_once('include/modules/naplo/share/osztalyModifier.php');
+require_once('include/modules/naplo/share/intezmenyek.php');
+require_once('include/modules/naplo/share/diak.php');
+require_once('include/modules/naplo/share/tanar.php');
+require_once('include/modules/naplo/share/kepzes.php');
+require_once('include/modules/naplo/share/szemeszter.php');
+require_once('include/modules/naplo/share/tankor.php');
+require_once('include/modules/naplo/share/tankorModifier.php');
+require_once('include/modules/naplo/share/tankorDiakModifier.php');
+require_once('include/modules/naplo/share/hianyzasModifier.php');
+require_once('include/modules/naplo/share/jegyModifier.php');
+require_once('include/modules/naplo/share/jegy.php');
+
+
+if (defined('__INTEZMENY') and __INTEZMENY != '') {
+ $ADAT['tanevek'] = getTanevek(true);
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['kepzesek'] = getKepzesek();
+ $ADAT['telephely'] = getTelephelyek();
+ $ADAT['telephelyIds'] = array();
+ foreach ($ADAT['telephely'] as $i => $tAdat) $ADAT['telephelyIds'][] = $tAdat['telephelyId'];
+ $ADAT['osztalyJellegek'] = getOsztalyJellegek(array('result'=>'assoc')); // Ez mondjuk nem intézmény függő...
+}
+
+$ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV, $ADAT['tanevek']);
+$ADAT['telephelyId'] = $telephelyId = readVariable($_POST['telephelyId'], 'id', (isset($_POST['telephelyId'])?null:readVariable(__TELEPHELYID,'id')), $ADAT['telephelyIds']);
+$ADAT['osztalyId'] = $osztalyId = $_POST['osztalyId'] = readVariable($_POST['osztalyId'], 'id', readVariable($_GET['osztalyId'],'id',null));
+if ($tanev != __TANEV) $TA = getTanevAdat($tanev);
+else $TA = $_TANEV;
+
+/* -------- */
+// Adatok frissítése adatállományból
+
+if (__NAPLOADMIN && isset($_POST['fileName']) && $_POST['fileName'] != '') {
+ define('_SKIP_ON_DUP',readVariable($_POST['skipOnDup'],'bool'));
+ $mezo_elvalaszto = ' '; // "\t"
+// $fileName = fileNameNormal($_POST['fileName']);
+ $fileName = ($_POST['fileName']); // TODO
+ $ADATOK = array();
+
+ if (file_exists($fileName)) {
+
+ if (!is_array($_POST['MEZO_LISTA'])) {
+
+ $ADATOK = readUpdateFile($fileName);
+ if (count($ADATOK) > 0) $attrList = getTableFields('diak', 'naplo_intezmeny',array('beDt','kiDt'));
+ else $_SESSION['alert'][] = 'message:wrong_data';
+
+ } else {
+
+ $MEZO_LISTA = $_POST['MEZO_LISTA'];
+ $KULCS_MEZOK = $_POST['KULCS_MEZOK'];
+ updateOsztaly($osztalyId, $fileName, $MEZO_LISTA, $KULCS_MEZOK, $mezo_elvalaszto, readVariable($_POST['rovatfej'], 'bool'));
+
+ } // MEZO_LISTA tömb
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.$fileName;
+ } // A file létezik-e
+
+} // van file
+/* -------- */
+
+if (isset($osztalyId)) {
+ $_evfolyamSzamElteres = getOsztalyEvfolyamSzamElteres($osztalyId);
+ if ($_evfolyamSzamElteres>0) $_SESSION['alert'][] = 'alert:hibás évfolyam beállítás! Az osztály jellege kevesebb évfolyamot ír elő! (Ellenőrizd, hogy végzés tanéve jól van-e beállítva!)';
+ elseif ($_evfolyamSzamElteres<0) $_SESSION['alert'][] = 'info:kevesebb évfolyam alatt végez az osztály, mint az osztály jellege előírná. Ez megszűnő, vagy később belépő osztályoknál megengedett.';
+
+ if ( in_date_interval(date('Y-m-d'),$TA['elozoZarasDt'],$TA['kovetkezoKezdesDt']) ) {
+ $dt = $ADAT['dt'] = readVariable($_POST['dt'], 'date', date('Y-m-d'));
+ } else {
+ $dt = $ADAT['dt'] = $TA['elozoZarasDt'];
+ }
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev);
+
+ if (!($ADAT['osztalyAdat']["kezdoTanev"]<=$tanev && $ADAT['osztalyAdat']["vegzoTanev"]>=$tanev)) $_SESSION['alert'][]='error:hibás tanév beállítás';
+
+ $diakIds = $ADAT['osztalyAdat']['kepzesIds'] = array();
+ if (is_array($ADAT['osztalyAdat']['kepzes']))
+ for ($i = 0; $i < count($ADAT['osztalyAdat']['kepzes']); $i++) $ADAT['osztalyAdat']['kepzesIds'][] = $ADAT['osztalyAdat']['kepzes'][$i]['kepzesId'];
+ $OsztalyNevsor = getDiakokByOsztaly($osztalyId, array('tanev' => $tanev));
+
+ foreach ($OsztalyNevsor as $key => $value) if (is_numeric($key)) {
+ $diakIds[] = $key;
+ $ADAT['osztalyNevsor'][$key] = $value;
+ }
+
+ $ADAT['diakKepzes'] = getKepzesByDiakId($diakIds, array('result' => 'assoc'));
+ $ADAT['diakok'] = getDiakok(array('tanev' => $tanev));
+}
+
+if ($action == 'osztalyAdatModositas' && __NAPLOADMIN) {
+
+ $leiras = readVariable($_POST['leiras'], 'string');
+ $ofoTanarId = readVariable($_POST['ofoTanarId'], 'id');
+ $ofoBeDt = readVariable($_POST['ofoBeDt'], 'date');
+ $ofoKiDt = readVariable($_POST['ofoKiDt'], 'date', '');
+ $tanarId = readVariable($_POST['tanarId'], 'id');
+ $beDt = readVariable($_POST['beDt'], 'date');
+ $kiDt = readVariable($_POST['kiDt'], 'date');
+ $ADAT['telephelyId'] = readVariable($_POST['telephelyId'], 'id', null, $ADAT['telephelyIds']);
+ $ADAT['osztalyJellegId'] = readVariable($_POST['osztalyJellegId'],'id',null);
+ $ADAT['kezdoEvfolyamSorszam'] = readVariable($_POST['kezdoEvfolyamSorszam'],'numeric unsigned', $ADAT['osztalyAdat']['kezdoEvfolyamSorszam'],
+ range(1, count($ADAT['osztalyAdat']['evfolyamJelek'])-$ADAT['osztalyAdat']['vegzoTanev']+$ADAT['osztalyAdat']['kezdoTanev'])
+ );
+
+ $lr = db_connect('naplo_intezmeny');
+ // leírás/telephely megadása, módosítása
+ if (
+ (isset($leiras) && $leiras != $ADAT['osztalyAdat']['leiras'])
+ || (isset($ADAT['telephelyId']) && $ADAT['telephelyId'] != $ADAT['osztalyAdat']['telephelyId'])
+ || (isset($ADAT['kezdoEvfolyamSorszam']) && $ADAT['kezdoEvfolyamSorszam'] != $ADAT['osztalyAdat']['kezdoEvfolyamSorszam'])
+
+ || (isset($ADAT['osztalyJellegId']) && $ADAT['osztalyJellegId'] != $ADAT['osztalyAdat']['osztalyJellegId'])
+ ) {
+ osztalyLeirasTelephelyModositas($osztalyId, $leiras, $ADAT['telephelyId'], $ADAT['osztalyJellegId'], $ADAT['kezdoEvfolyamSorszam'], $ADAT['osztalyAdat'], $lr);
+ $_SESSION['alert'][] = 'info:done';
+ }
+ // Osztályfőnöki kinevezés lezárása
+ for ($i = 0; $i < count($ofoTanarId); $i++) {
+ if ($ofoKiDt[$i] != '') osztalyfonokKileptetes($osztalyId, $ofoTanarId[$i], $ofoBeDt[$i], $ofoKiDt[$i], $lr);
+ }
+ // Új osztályfőnök felvétele
+ if ($tanarId != '' and $beDt != '') osztalyfonokKinevezes($osztalyId, $tanarId, $beDt, $lr);
+ // A módosított adatok lekérdezése
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev, $lr);
+ $ADAT['osztalyAdat']['kepzesIds'] = array();
+ if (is_array($ADAT['osztalyAdat']['kepzes']))
+ for ($i = 0; $i < count($ADAT['osztalyAdat']['kepzes']); $i++) $ADAT['osztalyAdat']['kepzesIds'][] = $ADAT['osztalyAdat']['kepzes'][$i]['kepzesId'];
+ db_close($lr);
+
+} elseif ($action == 'nyekOsztalyLeptetes' && __NAPLOADMIN) {
+// EZ MÁR ELAVULT! TODO
+/*
+ $ADAT['ujOsztaly']['tanevek'] = $ADAT['tanevek'];
+// $ADAT['ujOsztaly']['kezdoTanev'] = $ADAT['osztalyAdat']['vegzoTanev']+1;
+// $ADAT['ujOsztaly']['vegzoTanev'] = readVariable($_POST['vegzoTanev'], 'numeric unsigned', null, $ADAT['tanevek']);
+// $ADAT['ujOsztaly']['kezdoEvfolyam'] = $ADAT['osztalyAdat']['kezdoEvfolyam'];
+ $ADAT['ujOsztaly']['jel'] = readVariable($_POST['osztalyJel'], 'string');
+ $ADAT['ujOsztaly']['leiras'] = $ADAT['osztalyAdat']['leiras'];
+ $ADAT['ujOsztaly']['telephelyId'] = $ADAT['osztalyAdat']['telephelyId'];
+ $ADAT['ujOsztaly']['osztalyJellegId'] = $ADAT['osztalyJellegek'][ $ADAT['osztalyAdat']['osztalyJellegId'] ]['kovOsztalyJellegId']; // NyEK osztály
+ // Új osztály létrehozása
+// if (isset($ADAT['ujOsztaly']['kezdoTanev']) && isset($ADAT['ujOsztaly']['vegzoTanev']) && isset($ADAT['ujOsztaly']['kezdoEvfolyam']) && isset($ADAT['ujOsztaly']['jel'])) {
+// $ujOsztalyId = ujOsztaly($ADAT['ujOsztaly']);
+// }
+ // Képzés hozzárendelés
+ setOsztalyKepzesei($ujOsztalyId, $ADAT['osztalyAdat']['kepzesIds']);
+ // A jelen év végétől kinevezzük az osztályfőnököt
+ if (__TANEV == $ADAT['osztalyAdat']['vegzoTanev']) $beDt = date('Y-m-d', strtotime('next month', strtotime($_TANEV['zarasDt'])));
+ else $beDt = $ADAT['ujOsztaly']['kezdoTanev'].'-08-01';
+ osztalyfonokKinevezes($ujOsztalyId, $ADAT['osztalyAdat']['osztalyfonok']['tanarId'], $beDt);
+ // osztálytagok felvétele
+ $diakIds = array_merge($OsztalyNevsor['jogviszonyban van'], $OsztalyNevsor['magántanuló']);
+ foreach ($diakIds as $diakId) {
+ ujTag($ujOsztalyId, $diakId, $beDt, null);
+ osztalyDiakTorol(array('osztalyId' => $osztalyId, 'diakId' => $diakId, 'tolDt' => $beDt, 'igDt' => null, 'zaradekkal' => false));
+ }
+ // TODO: régi osztályhoz rendelt tankörök hozzárendelése az új osztályhoz és átnevezés
+*/
+} elseif ($action == 'osztalyJelVegzesModositas' && __NAPLOADMIN) {
+ // TODO: nem szabadna akárhogy változtatni a tanéveket! Nem lehet vtanev<ktanev és nem lehet az osztály évfolyamok száma > az osztalyJelleg evfolyamok számánál
+ $ujKezdoTanev = readVariable($_POST['ujKezdoTanev'], 'numeric unsigned');
+ $ujVegzoTanev = readVariable(
+ $_POST['ujVegzoTanev'], 'numeric unsigned',null,array(),
+ '$return>='.$ujKezdoTanev.' && $return-'.$ujKezdoTanev.'+'.$ADAT['osztalyAdat']['kezdoEvfolyamSorszam'].'<='.count($ADAT['osztalyAdat']['evfolyamJelek'])
+ );
+ $ujOsztalyJel = readVariable($_POST['ujOsztalyJel'], 'string');
+ if (is_null($ujKezdoTanev) || is_null($ujVegzoTanev) || $ujOsztalyJel == '') {
+ $_SESSION['alert'][] = 'message:wrong_data:kezdoTanev='.$_POST['ujKezdoTanev'].', vegzoTanev='.$_POST['ujVegzoTanev'].', jel='.$_POST['ujOsztalyJel'];
+ } else {
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+ $r = array();
+ if ($ujVegzoTanev!='') {
+ $q = "UPDATE osztaly SET vegzoTanev=%u WHERE osztalyId=%u";
+ $v = array($ujVegzoTanev,$osztalyId);
+ $r[] = db_query($q, array('fv' => '', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+ }
+ if ($ujKezdoTanev!='') {
+ $q = "UPDATE osztalyDiak SET beDt = (SELECT kezdesDt FROM szemeszter WHERE tanev=%u AND szemeszter=1) WHERE osztalyId=%u AND beDt<(SELECT kezdesDt FROM szemeszter WHERE tanev=%u AND szemeszter=1)";
+ $v = array($ujKezdoTanev,$osztalyId,$ujKezdoTanev);
+ $r[] = db_query($q, array('fv' => '', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+
+ $q = "UPDATE osztaly SET kezdoTanev=%u WHERE osztalyId=%u";
+ $v = array($ujKezdoTanev,$osztalyId);
+ $r[] = db_query($q, array('fv' => '', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+ }
+
+ if ($ujOsztalyJel=='') {
+ $q = "SELECT jel FROM osztaly WHERE osztalyId = %u";
+ $v = array($osztalyId);
+ $osztalyJel = db_query($q, array('fv' => '', 'modul' => 'naplo_intezmeny', 'result' => 'value', 'values' => $v), $lr);
+ $ujOsztalyJel = $osztalyJel;
+ } else {
+ $osztalyJel=$ujOsztalyJel;
+ $q = "UPDATE osztaly SET jel='%s' WHERE osztalyId=%u";
+ $v = array($ujOsztalyJel,$osztalyId);
+ $r[] = db_query($q, array('fv' => '', 'modul' => 'naplo_intezmeny', 'result' => 'insert', 'values' => $v), $lr);
+ }
+ $OSZTALYADAT = getOsztalyAdat($osztalyId,__TANEV,$lr);
+
+ // az osztalyNaplo.osztalyJelet is módosítani kell, minden érintett tanévben!
+ $r[] = updateosztalyNev($osztalyId, $lr);
+
+ if (!in_array(false,$r)) db_commit($lr);
+ else db_rollback($lr);
+ db_close($lr);
+ } // ha van kezdoTanev, zaroTanev, jel
+
+} elseif ($action == 'ujOsztaly' && __NAPLOADMIN) {
+
+ $ADAT['kezdoTanev'] = readVariable($_POST['kezdoTanev'], 'numeric unsigned', null, $ADAT['tanevek']);
+ $ADAT['vegzoTanev'] = readVariable($_POST['vegzoTanev'], 'numeric unsigned', null, $ADAT['tanevek']);
+ $ADAT['kezdoEvfolyamSorszam'] = readVariable($_POST['kezdoEvfolyamSorszam'], 'numeric unsigned',1);
+ $ADAT['jel'] = readVariable($_POST['jel'], 'string');
+ $ADAT['leiras'] = readVariable($_POST['leiras'], 'string');
+ $ADAT['telephelyId'] = readVariable($_POST['telephelyId'], 'id', null, $ADAT['telephelyIds']);
+ $ADAT['osztalyJellegId'] = readVariable($_POST['osztalyJellegId'],'id',null);
+ if (isset($ADAT['osztalyJellegId']) && isset($ADAT['kezdoTanev']) && isset($ADAT['vegzoTanev']) && isset($ADAT['kezdoEvfolyamSorszam']) && isset($ADAT['jel'])) {
+ $osztalyId = $ADAT['osztalyId'] = ujOsztaly($ADAT);
+ if ($osztalyId) {
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev);
+ $diakIds = $ADAT['osztalyAdat']['kepzesIds'] = array();
+ if (is_array($ADAT['osztalyAdat']['kepzes']))
+ for ($i = 0; $i < count($ADAT['osztalyAdat']['kepzes']); $i++) $ADAT['osztalyAdat']['kepzesIds'][] = $ADAT['osztalyAdat']['kepzes'][$i]['kepzesId'];
+ $ADAT['diakok'] = getDiakok(array('tanev' => $tanev));
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:'."${ADAT['kezdoTanev']}, ${ADAT['vegzoTanev']}, ${ADAT['kezdoEvfolyamSorszam']}, ${ADAT['jel']}";
+ }
+} elseif ($action == 'osztalyNevsor' && (__NAPLOADMIN || __VEZETOSEG || _TITKARSAG)) {
+ $kepzesMod = array();
+ if (is_array($_POST['diakKepzes'])) foreach ($_POST['diakKepzes'] as $index => $kepzes) {
+ list($_diakId,$kepzesId) = explode('/', $kepzes);
+ // kirakjuk az osztályhoz nem tartozó képzéseit is - hogy könnyebb legyen kezelni...
+ if (in_array($_diakId, $diakIds)) {
+ $kepzesMod[$kepzesId][] = $_diakId;
+ }
+ }
+ diakKepzesModositas($diakIds, $kepzesMod, $dt);
+ $ADAT['diakKepzes'] = getKepzesByDiakId($diakIds, array('result' => 'assoc'));
+} elseif ($action == 'ujTag' && (__NAPLOADMIN || __VEZETOSEG || __TITKARSAG)) {
+ $diakId = readVariable($_POST['diakId'], 'id');
+ $beDt = readVariable($_POST['beDt'], 'date');
+ $kiDt = readVariable($_POST['kiDt'], 'date');
+ if (isset($diakId) && isset($beDt)) {
+ if (ujTag($osztalyId, $diakId, $beDt, $kiDt)) {
+ $OsztalyNevsor = getDiakokByOsztaly($osztalyId, array('tanev' => $tanev));
+ foreach ($OsztalyNevsor as $key => $value) if (is_numeric($key)) {
+ $ADAT['osztalyNevsor'][$key] = $value;
+ }
+ $diakIds = array_keys($ADAT['osztalyNevsor']);
+ }
+ }
+} elseif ($action == 'tagTorles' && __NAPLOADMIN) {
+ $elozoTanev = getTanevAdat(intval(__TANEV)-1); $elozoTanevZarasTime = strtotime($elozoTanev['zarasDt']);
+ $PARAM['diakId'] = readVariable($_POST['diakId'], 'id');
+// $PARAM['tolDt'] = readVariable($_POST['tolDt'], 'date', null, array(), 'strtotime($return) > '.$elozoTanevZarasTime);
+ $PARAM['tolDt'] = readVariable($_POST['tolDt'], 'date');
+ $PARAM['igDt'] = readVariable($_POST['igDt'], 'date', null, array(), 'strtotime('."'${PARAM['tolDt']}'".') < strtotime($return)');
+ $PARAM['osztalyId'] = $ADAT['osztalyId'];
+ $PARAM['zaradekkal'] = false;
+ if (isset($PARAM['osztalyId']) && isset($PARAM['diakId']) && isset($PARAM['tolDt'])) {
+ if (osztalyDiakTorol($PARAM)) {
+ $OsztalyNevsor = getDiakokByOsztaly($osztalyId, array('tanev' => $tanev));
+ foreach ($OsztalyNevsor as $key => $value) if (is_numeric($key)) {
+ $ADAT['osztalyNevsor'][$key] = $value;
+ }
+ $diakIds = array_keys($ADAT['osztalyNevsor']);
+ }
+ } else { $_SESSION['alert'][] = 'message:empty_field'; }
+} elseif ($action == 'osztalyTorles' && __NAPLOADMIN) {
+ if (osztalyTorles($osztalyId)) {
+ unset($osztalyId);
+ $ADAT['osztalyAdat'] = array();
+ }
+}
+
+/* ------------------------------------------------- */
+/* REFRESH */
+
+if (isset($osztalyId)) {
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev);
+ $diakIds = $ADAT['osztalyAdat']['kepzesIds'] = array();
+ if (is_array($ADAT['osztalyAdat']['kepzes']))
+ for ($i = 0; $i < count($ADAT['osztalyAdat']['kepzes']); $i++) $ADAT['osztalyAdat']['kepzesIds'][] = $ADAT['osztalyAdat']['kepzes'][$i]['kepzesId'];
+ $OsztalyNevsor = getDiakokByOsztaly($osztalyId, array('tanev' => $tanev));
+ $ADAT['osztalyNevsor'] = array();
+ foreach ($OsztalyNevsor as $key => $value) if (is_numeric($key)) {
+ $diakIds[] = $key;
+ $ADAT['osztalyNevsor'][$key] = $value;
+ }
+ $ADAT['diakKepzes'] = getKepzesByDiakId($diakIds, array('result' => 'assoc'));
+ $ADAT['diakok'] = getDiakok(array('tanev' => $tanev));
+
+ for ($_ev = $ADAT['osztalyAdat']['kezdoTanev']; $_ev<=$ADAT['osztalyAdat']['vegzoTanev']; $_ev++) {
+ $ADAT['osztalyJelek'][$_ev] = getOsztalyJel($osztalyId,$_ev,$ADAT['osztalyAdat']);
+ }
+}
+
+// írjuk ezt felül, nekünk minden eddigi ofő bejegyzésre szükségünk van
+if (isset($osztalyId)) $ADAT['osztalyAdat']['osztalyfonokok'] = getOsztalyfonokok($osztalyId);
+
+$TOOL['tanevSelect'] = array('tipus'=>'cella','paramName' => 'tanev', 'tervezett' => true, 'action' => 'tanevValtas', 'post'=>array('telephelyId'));
+$TOOL['telephelySelect'] = array('tipus'=>'cella','paramName' => 'telephelyId', 'post' => array('tanev','dt'));
+$TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post'=>array('tanev','telephelyId','dt'), 'telephelyId' => $telephelyId);
+$TOOL['datumSelect'] = array('tipus'=>'sor','paramName'=>'dt','tolDt'=>$TA['elozoZarasDt'],'igDt'=>$TA['kovetkezoKezdesDt'],'override'=>true,'post'=>array('tanev','telephelyId','osztalyId'));
+$TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=kepzes'),
+ 'titleConst' => array('_KEPZES'), 'post' => array(''),
+ 'paramName'=>'kepzesId'); // paramName ?
+
+getToolParameters();
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/osztaly.php b/mayor-orig/www/policy/private/naplo/intezmeny/osztaly.php
new file mode 100644
index 00000000..c4f0ca80
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/osztaly.php
@@ -0,0 +1,40 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT, $fileName, $ADATOK, $MEZO_LISTA, $attrList;
+
+ // Osztályhoz rendelés
+ if (isset($ADAT['osztalyId']) && ($ADAT['osztalyAdat']["kezdoTanev"]<=$ADAT['tanev'] && $ADAT['osztalyAdat']["vegzoTanev"]>=$ADAT['tanev'])) {
+
+ putOsztalyAdatokForm($ADAT);
+
+ if ($ADAT['osztalyJellegek'][ $ADAT['osztalyAdat']['osztalyJellegId'] ]['kovOsztalyJellegId'] != 0) { // NyEK évfolyam
+ putOsztalyLeptetes($ADAT);
+ }
+ if (is_array($ADAT['osztalyNevsor'])) {
+ putOsztalyNevsor($ADAT);
+ putTagTorlesForm($ADAT);
+ }
+ putUjTagForm($ADAT);
+
+ if (__NAPLOADMIN) {
+ if ($fileName == '') {
+ putFileSelectForm('naplo_intezmeny:diak',array('osztalyId','tanev'));
+ } elseif ($MEZO_LISTA == '') {
+ if (count($ADATOK) > 0)
+ putFieldSelectForm($fileName, $ADATOK, $attrList, 'naplo_intezmeny:diak',array('osztalyId','tanev'));
+ else
+ echo 'NINCS ADAT!';
+ } else {
+ echo 'Adatfeldolgozás kész.';
+ }
+ // osztalyTorlesForm($ADAT['osztalyId']);
+ }
+ } elseif (__NAPLOADMIN) {
+ putUjOsztalyForm($ADAT);
+ }
+
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/szulo-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/szulo-pre.php
new file mode 100644
index 00000000..a54ad8aa
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/szulo-pre.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (isset($_POST['szuloId']) && $_POST['szuloId'] != '') $szuloId = $_POST['szuloId'];
+ elseif (isset($_GET['szuloId']) && $_GET['szuloId'] != '') $szuloId = $_GET['szuloId'];
+
+ if (isset($_POST['attr']) && $_POST['attr'] != '') $attr = $_POST['attr'];
+ elseif (isset($_GET['attr']) && $_GET['attr'] != '') $attr = $_GET['attr'];
+
+ require_once('include/modules/naplo/share/szulo.php');
+
+ $Szulok = getSzulok();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/szulo.php b/mayor-orig/www/policy/private/naplo/intezmeny/szulo.php
new file mode 100644
index 00000000..25b61d7f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/szulo.php
@@ -0,0 +1,24 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Szulok, $szuloId, $attr;
+
+ if ($skin == 'ajax') {
+ putSzuloSelect($Szulok, $szuloId, $attr);
+ } else echo $skin;
+
+ function putSzuloSelect($Szulok, $value, $attr) {
+ formBegin();
+ echo '<select name="'.$attr.'">'."\n";
+ $SEL = array($value => ' selected="selected" ');
+ echo '<option value="NULL"> - </option>'."\n";
+ for ($i = 0; $i < count($Szulok['szuloIds']); $i++) {
+ $szuloId = $Szulok['szuloIds'][$i];
+ echo '<option value="'.$szuloId.'"'.$SEL[$szuloId].'>'.
+ $Szulok[$szuloId]['szuloNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ formEnd();
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tanar-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tanar-pre.php
new file mode 100644
index 00000000..daa02fef
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tanar-pre.php
@@ -0,0 +1,108 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/net/upload.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/kepesites.php');
+
+ $tanarId = readVariable($_POST['tanarId'],'id',readVariable($_GET['tanarId'],'id'));
+ // Adatok frissítése adatállományból
+ if ($action == 'kepUpload') {
+ mayorFileUpload(array('subdir'=>_DOWNLOADDIR.'/private/naplo/face/tanar/','filename'=>$tanarId.'.jpg'));
+ } elseif (isset($_POST['fileName']) && $_POST['fileName'] != '') {
+
+ $mezo_elvalaszto = ' ';
+ $fileName = fileNameNormal($_POST['fileName']);
+ $ADATOK = array();
+ if (file_exists($fileName)) {
+
+ if (!is_array($_POST['MEZO_LISTA'])) {
+
+ $ADATOK = readUpdateFile($fileName);
+ if (count($ADATOK) > 0) $attrList = getTableFields('tanar', 'naplo_intezmeny', $extraAttrs = array());
+ else $_SESSION['alert'][] = 'message:wrong_data';
+
+ } else {
+
+ $MEZO_LISTA = $_POST['MEZO_LISTA'];
+ $KULCS_MEZOK = $_POST['KULCS_MEZOK'];
+ updateTable('tanar', $fileName, $MEZO_LISTA, $KULCS_MEZOK, $mezo_elvalaszto, $_POST['rovatfej']);
+
+ } // MEZO_LISTA tömb
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.$fileName;
+ } // A file létezik-e
+
+ } // van file
+
+ if ($action == 'ujTanar') {
+ $kotelezoParamOk = (isset($_POST['viseltCsaladinev']) && $_POST['viseltCsaladinev'] != '');
+ $kotelezoParamOk &= (isset($_POST['beDt']) && $_POST['beDt'] != '');
+ if ($kotelezoParamOk) {
+ $tanarId = ujTanar($_POST);
+ if ($tanarId) list($ADAT['tanarAdat']) = getTanarAdatById($tanarId);
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:(viseltCsaladinev,beDt)';
+ }
+ }
+ if (isset($tanarId)) {
+
+ $ADAT['tanarId'] = $tanarId;
+ $ADAT['kepesitesek'] = getKepesitesek();
+ foreach ($ADAT['kepesitesek'] as $idx => $kAdat) $ADAT['kepesitesIds'][] = $kAdat['kepesitesId'];
+ $ADAT['besorolasok'] = getEnumField('naplo_intezmeny', 'tanar', 'besorolas');
+ $ADAT['vegzettsegek'] = getEnumField('naplo_intezmeny', 'kepesites', 'vegzettseg');
+ $ADAT['fokozatok'] = getEnumField('naplo_intezmeny', 'kepesites', 'fokozat');
+ $ADAT['specializaciok'] = getEnumField('naplo_intezmeny', 'kepesites', 'specializacio');
+ $ADAT['statuszok'] = getEnumField('naplo_intezmeny', 'tanar', 'statusz');
+
+ if (
+ $action == 'tanarAlapadatModositas' ||
+ $action == 'tanarSzuletesiAdatModositas' ||
+ $action == 'tanarJogviszonyModositas'
+ ) {
+
+ $ok = tanarAdatModositas($_POST);
+
+ } elseif ($action == 'tanarKepesitesModositas') {
+ $addKepesitesId = readVariable($_POST['addKepesitesId'], 'id',null, $ADAT['kepesitesIds']);
+ if (isset($addKepesitesId)) {
+ tanarKepesitesHozzarendeles($tanarId, $addKepesitesId);
+ } else {
+ $vegzettseg = readVariable($_POST['vegzettseg'], 'enum', null, $ADAT['vegzettsegek']);
+ $fokozat = readVariable($_POST['fokozat'], 'enum', null, $ADAT['fokozatok']);
+ $specializacio = readVariable($_POST['specializacio'], 'enum', null, $ADAT['specializaciok']);
+ $kepesitesNev = readVariable($_POST['kepesitesNev'], 'string');
+ if (isset($vegzettseg) && isset($fokozat) && isset($specializacio) && isset($kepesitesNev)) {
+ $kepesitesId = ujKepesites($vegzettseg, $fokozat, $specializacio, $kepesitesNev);
+ if ($kepesitesId !== false) tanarKepesitesHozzarendeles($tanarId, $kepesitesId);
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:'.implode(',', array($vegzettseg, $fokozat, $specializacio, $kepesitesNev));
+ }
+ }
+ }
+ list($ADAT['tanarAdat']) = getTanarAdatById($tanarId);
+ $ADAT['tanarAdat']['kepesites'] = getTanarKepesites($tanarId);
+
+
+ }
+
+ // ToolBar
+ // $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'post'=>array());
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'beDt' => '1900-01-01', 'kiDt' => date('Y-m-d'), 'összes'=>true, 'override'=> true, 'post'=>array('mkId'));
+ getToolParameters();
+
+
+ } // naploadmin / vezetőség
+
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tanar.php b/mayor-orig/www/policy/private/naplo/intezmeny/tanar.php
new file mode 100644
index 00000000..604f1d48
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tanar.php
@@ -0,0 +1,27 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $fileName, $ADATOK, $MEZO_LISTA, $attrList;
+ global $ADAT;
+
+ if (is_array($ADAT) && $skin != 'ajax') {
+
+ putTanarAdatForm($ADAT);
+
+ } else {
+ putUjTanar();
+ if ($fileName == '') {
+ putFileSelectForm('naplo_intezmeny:tanar',array('mkId','tanev'));
+ } elseif ($MEZO_LISTA == '') {
+ if (count($ADATOK) > 0)
+ putFieldSelectForm($fileName, $ADATOK, $attrList, 'naplo_intezmeny:tanar',array('mkId','tanev'));
+ else
+ echo 'NINCS ADAT!';
+ } else {
+ echo 'Adatfeldolgozás kész.';
+ }
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankor-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankor-pre.php
new file mode 100644
index 00000000..d6c92121
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankor-pre.php
@@ -0,0 +1,219 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorModifier.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['mkId'] = $mkId = readVariable($_POST['mkId'],'id',null);
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'],'id',null);
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'],'id',readVariable($_GET['tankorId'],'id',null));
+ $_POST['tanev'] = $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'],'numeric unsigned',__TANEV);
+
+ if ($tanev!=__TANEV) $_SESSION['alert'][] = 'info:nem az alapértelmezett tanévben vagyunk!';
+
+ $ADAT['tankor.kovetelmeny'] = getEnumField('naplo_intezmeny','tankor','kovetelmeny');
+ if (defined('__AKG_TANKORNEV') && __AKG_TANKORNEV === true) {
+ $ADAT['tankorNevMegorzes'] = $_POST['tankorNevMegorzes'] = readVariable($_POST['tankorNevMegorzes'],'bool',false);
+ }
+ /* */
+ //$_TA = getTanevAdat($tanev);
+ //$_TA['statusz'];
+
+ if (__NAPLOADMIN || __VEZETOSEG) {
+ switch ($action) {
+ case 'ujTankor': // VAGY MÓDOSÍTÁS!!!
+ if ($tanev != '') {
+ $ADAT['tankorId'] = $tankorId = ujTankor($_POST);
+ if (readVariable($_POST['forceTankorTipusValtas'],'id')==1) {
+ $ADAT['tankorTipusId'] = readVariable($_POST['tankorTipusId'],'id');
+ $erintettHianyzasDb = hianyzasTankorTipusValtas($ADAT['tankorId'],$ADAT['tankorTipusId'],array('tanev'=>$ADAT['tanev']));
+ if ($erintettHianyzasDb>0) $_SESSION['alert'][] = 'info:db_hianyzas_tipus_modositas:'.$erintettHianyzasDb;
+ }
+ }
+ break;
+ case 'tankorTargyModositas':
+ $ADAT['targyIds'] = getTargyakByMkId($mkId, array('result'=>'idonly'));
+ $ADAT['ujTargyId'] = readVariable($_POST['ujTargyId'], 'id', null, $ADAT['targyIds']);
+ if (isset($ADAT['ujTargyId']) && isset($tankorId) && $targyId != $ADAT['ujTargyId']) {
+ if (tankorTargyModositas($ADAT)) $_SESSION['alert'][] = 'info:success:tankorTargyModositas';
+ }
+ break;
+ case 'tankorTorol':
+ if ($tankorId != '') {
+ $biztosTorol = readVariable($_POST['biztosTorol'],'id',null);
+ if ($biztosTorol=='1') {
+ tankorTorol($tankorId);
+ unset($tankorId);
+ } else {
+ $_SESSION['alert'][] = 'info:not_changed';
+ }
+ }
+ break;
+ case 'setTankorNev':
+ if ($tankorId != '') {
+ $tagokAlapjan = readVariable($_POST['setTankorNevTagokAlapjan'],'bool',false);
+ if ($tagokAlapjan) {
+ setTankorNevByDiakok($tankorId);
+ } else {
+ setTankorNev($tankorId);
+ $_SESSION['alert'][] = 'info:not_changed';
+ }
+ }
+ break;
+ case 'tankorLezar':
+ if ($tankorId != '') {
+ $biztosTorol = readVariable($_POST['biztosLezar'],'id',null);
+ $lezarDt = readVariable($_POST['lezarDt'],'date',null);
+ if ($biztosTorol=='1' && !is_null($lezarDt)) {
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr);
+
+ $v = array($lezarDt, $tankorId);
+
+ // tanár kiléptet
+ $q = "UPDATE tankorTanar SET kiDt=('%s' - INTERVAL 1 DAY) WHERE tankorId=%u";
+ $r[] = db_query($q, array('fv'=>'tankorTanarLezar', 'values'=>$v), $lr);
+ // diákok kiléptet
+ $q = "UPDATE tankorDiak SET kiDt=('%s' - INTERVAL 1 DAY) WHERE tankorId=%u";
+ $r[] = db_query($q, array('fv'=>'tankorDiakLezar', 'values'=>$v), $lr);
+ // tankör szemeszter kiléptet
+ $q = "DELETE tankorSzemeszter.* FROM tankorSzemeszter LEFT JOIN szemeszter USING (tanev,szemeszter) WHERE kezdesDt>'%s' AND tankorId=%u";
+ $r[] = db_query($q, array('fv'=>'tankorDiakLezar', 'values'=>$v), $lr);
+
+// $r[] = false;
+
+ // órarendióra lezár (minden tanev adatbázisában, ami aktív
+ $q = "SELECT distinct tanev FROM szemeszter WHERE statusz='aktív'";
+ $_tanevek = db_query($q, array('fv'=>'tankorDiakLezar', 'result'=>'idonly'), $lr);
+ for ($i=0; $i<count($_tanevek); $i++) {
+ $_tanev = $_tanevek[$i];
+ $_tanevDb = tanevDbNev(__INTEZMENY, $_tanev);
+
+ // A lezárási dátum utáni bejegyzések törlése
+ $q = "DELETE FROM $_tanevDb.orarendiOra WHERE tolDt >= '%s' AND (tanarId,osztalyJel,targyJel) IN (
+ SELECT tanarId,osztalyJel,targyJel FROM $_tanevDb.orarendiOraTankor WHERE tankorId = %u
+ )";
+ $v = array($lezarDt,$tankorId);
+ $r[] = db_query($q, array('fv' => 'vegzosOrarendLezaras', 'values' => $v),$lr);
+
+ // A lezárás dátuma után végződő bejegyzáések igDt-inek beállítása
+ $q = "UPDATE $_tanevDb.orarendiOra LEFT JOIN $_tanevDb.orarendiOraTankor USING (tanarId,osztalyJel,targyJel) SET igDt=('%s' - INTERVAL 1 DAY)
+ WHERE igDt > '%s' AND tankorId = %u";
+ $v = array($lezarDt,$lezarDt,$tankorId);
+ $r[] = db_query($q, array('fv' => 'vegzosOrarendLezarads', 'values' => $v),$lr);
+
+ // óra elmarad
+ $q = "SELECT oraId FROM $_tanevDb.ora WHERE tankorId=%u AND dt>='%s' AND tipus NOT IN ('elmarad','elmarad máskor')";
+ $v = array($tankorId,$lezarDt);
+ $_oraIdk = db_query($q, array('fv'=>'tankorDiakLezar', 'result'=>'idonly', 'values'=>$v), $lr);
+ for ($j=0; $j<count($_oraIdk); $j++) {
+ $r[] = oraElmarad($_oraIdk[$j], $lr, $_tanev);
+ }
+
+ // jegyek törlése
+ $q = "DELETE FROM $_tanevDb.jegy WHERE tankorId = %u AND dt>='%s'";
+ $v = array($tankorId,$lezarDt);
+ $r[] = db_query($q, array('fv'=>'tankorDiakLezar', 'values'=>$v), $lr);
+ }
+
+ if (in_array(false,$r)) db_rollback($lr);
+ else db_commit($lr);
+
+ db_close($lr);
+
+ //unset($tankorId);
+ } else {
+ $_SESSION['alert'][] = 'info:not_changed';
+ }
+ }
+ break;
+ }
+ }
+
+ if (isset($tankorId) && $tankorId != '' && $tankorId !== false) {
+ // force all variables to refresh!
+ //$TANKORADAT = getTankorById($tankorId);
+ $TANKORADAT = getTankorAdat($tankorId,$tanev);
+ $TANKORADAT = $TANKORADAT[$tankorId];
+ $ADAT['targyId'] = $targyId = $TANKORADAT[0]['targyId'];
+ $TSZEMESZTEREK = getTankorSzemeszterei($tankorId);
+ $TOSZTALYOK = getTankorOsztalyai($tankorId, array('result' => 'assoc'));
+ $TARGYADAT = getTargyById($targyId);
+ $ADAT['mkId'] = $mkId=$TARGYADAT['mkId'];
+ } elseif ($targyId != '') {
+ $TARGYADAT = getTargyById($targyId);
+ if ($mkId == '') $mkId=$TARGYADAT['mkId'];
+ }
+
+ if (defined('__TANEV')) $__TANEV = __TANEV; else $__TANEV = '';
+ if (isset($targyId) && $targyId!='') {
+ $TANAROK = getTanarok(array('targyId' => $targyId, 'tanev' => $__TANEV));
+ }
+ if (isset($mkId) && $mkId != '') {
+ // csak konkrét tárgy esetén veszünk fel tankört...
+ //$TANAROK = getTanarok(array('mkId' => $mkId, 'tanev' => $__TANEV));
+ $MKADAT = getMunkakozossegById($mkId);
+ $ADAT['targyak'] = getTargyak(array('mkId' => $mkId));
+ } else {
+ // csak konkrét tárgy esetén veszünk fel tankört...
+ //$TANAROK = getTanarok();
+ }
+
+ $TOPOST['tanev'] = $tanev;
+ $TOPOST['mkId'] = $mkId;
+ $TOPOST['targyId'] = $targyId;
+ $TOPOST['osztalyok'] = $TOSZTALYOK;
+ $TOPOST['szemeszterek'] = $TSZEMESZTEREK;
+ $TOPOST['tankorTipusId'] = $_POST['tankorTipusId'];
+ $TOPOST['tankorId'] = $tankorId;
+ $TOPOST['tankoradat'] = $TANKORADAT[0];
+ if ($tankorId!='') {
+ $TOPOST['tankortanar'] = getTankorTanaraiByInterval($tankorId,array('tanev'=>$tanev,'result'=>'nevsor'));
+ $TOPOST['tankorcsoport']['idk'] = getTankorCsoportTankoreiByTankorId($tankorId);
+ $TOPOST['tankorcsoport']['adat'] = getTankorAdatByIds($TOPOST['tankorcsoport']['idk']);
+ } elseif ($TOPOST['tankorTipusId']!='') {
+ $TOPOST['tankoradat']['tankorTipusId'] = $TOPOST['tankorTipusId']; // hozzáírjuk ezt is
+ $TOPOST['tankoradat']['kovetelmeny'] = $_POST['kovetelmeny']; // hozzáírjuk ezt is
+ $TOPOST['tankoradat']['tipus'] = $_POST['tipus']; // hozzáírjuk ezt is
+ $TOPOST['osztalyok'][0]['osztalyId'] = $_POST['osztalyId']; // hozzáírjuk ezt is
+ }
+ $OSZTALYOK = getOsztalyok($tanev);
+
+ $ADAT['tankorTipusok'] = getTankorTipusok();
+ $ADAT['tankorId'] = $tankorId;
+ $ADAT['tanev'] = $tanev;
+ $ADAT['tankorOsztalyok'] = getTankorOsztalyaiByTanev($tankorId, $tanev, array('tagokAlapjan'=>true,'result'=>'id'));
+ $ADAT['tankorCsoportok'] = getTankorCsoport($tanev); // ezt nem használjuk most semmire!
+
+ if ($tanev != '') $SZEMESZTEREK = getSzemeszterek(array('filter' => array("tanev>=$tanev",'tanev<='.($tanev+7))));
+
+
+ $TOOL['tanevSelect'] = array('tipus'=>'cella','paramName' => 'tanev',
+ 'tervezett' => true,
+ 'post' => array('mkId','targyId','tankorId'));
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'post' => array('tanev'));
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'targyak' => $ADAT['targyak'], 'post' => array('mkId', 'tanev'));
+// $TOOL['diakSelect'] = array('tipus'=>'sor','paramName'=>'diakId', 'post'=>array());
+// $TOOL['tanarSelect'] = array('tipus'=>'sor','paramName'=>'tanarId', 'post'=>array());
+ $TOOL['tankorSelect'] = array('tipus' => 'cella','paramName' => 'tankorId', 'post' => array('tanev', 'mkId', 'targyId'));
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=intezmeny&f=tankorDiak',
+ 'index.php?page=naplo&sub=intezmeny&f=tankorTanar'),
+ 'titleConst' => array('_TANKORDIAK'), 'post' => array('tanev'),
+ 'paramName'=>'tankorId');
+ $TOOL['tanevLapozo'] = array('tipus' => 'sor', 'paramName' => 'tanev',
+ 'post' => array('mkId', 'targyId', 'tankorId'), 'tanev' => $tanev);
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankor.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankor.php
new file mode 100644
index 00000000..998fafec
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankor.php
@@ -0,0 +1,20 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN || __VEZETOSEG) {
+
+ global $mkId,$targyId,$tankorId, $tanev;
+ global $MKADAT,$TARGYADAT,$TANAROK,$OSZTALYOK,$SZEMESZTEREK,$TOPOST;
+ global $ADAT;
+
+ if (isset($tankorId) && $tankorId!='' && $ADAT['tanev']==__TANEV) {
+ putTankornevForm($ADAT);
+ }
+ putUjTankorForm($MKADAT,$TARGYADAT,$TANAROK,$OSZTALYOK,$SZEMESZTEREK,$TOPOST,$ADAT);
+ if (isset($tankorId) && $tankorId!='') {
+ putTankorTargyForm($ADAT);
+ putTankorLezarForm($tankorId, $mkId, $targyId, $tanev);
+ putTankorTorolForm($tankorId, $mkId, $targyId, $tanev);
+
+ }
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak-pre.php
new file mode 100644
index 00000000..70e5df7b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak-pre.php
@@ -0,0 +1,162 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ require_once('include/modules/naplo/share/kepzes.php');
+
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/jegy.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+
+ require_once('include/share/date/names.php');
+
+ if (isset($_POST['mkId']) && $_POST['mkId'] != '') $mkId = $_POST['mkId'];
+ if (isset($_POST['targyId']) && $_POST['targyId'] != '') $targyId = $_POST['targyId'];
+ if (isset($_POST['tankorId']) && $_POST['tankorId'] != '') $tankorId = $_POST['tankorId'];
+ elseif (isset($_GET['tankorId']) && $_GET['tankorId'] != '') $tankorId = $_GET['tankorId'];
+ if (isset($_POST['tanev']) && $_POST['tanev'] != '') $tanev = $_POST['tanev'];
+
+ if (!isset($tanev)) $tanev=__TANEV;
+ $dt = date('Y-m-d');
+ $ret = getIdoszakByTanev(array('tanev' => $tanev, 'tipus' => array('tankörnévsor módosítás'), 'tolDt' => $dt, 'igDt' => $dt));
+ $modositasiIdoszak = (is_array($ret) && count($ret) > 0);
+
+ $ADAT['diakSelected']=$_POST['diaktorol'];
+
+ if ($tanev!=__TANEV) $TA = getTanevAdat($tanev); else $TA = $_TANEV;
+
+ $ADAT['tanev'] = $tanev;
+
+ /* Dátumok */
+ if (isset($_POST['refDt']) && $_POST['refDt'] != '') $refDt = $_POST['refDt'];
+ elseif (time()<strtotime($TA['kezdesDt'])) $refDt = $TA['kezdesDt'];
+ else $refDt = date('Y-m-d');
+
+ $ADAT['refDt'] = $refDt;
+
+ if (isset($_POST['igDt']) && $_POST['igDt'] != '') $ADAT['igDt'] = $igDt = $_POST['igDt'];
+ $_POST['tolDt']=$_POST['refDt'];
+
+
+ // Le kell kérdeznünk, hogy tanára-e a tankörnek...
+ if (isset($tankorId) && checkTankorInTanev($tankorId, $tanev)) {
+ $ADAT['tankor']['tanarai'] = getTankorTanaraiByInterval($tankorId,array('tanev'=>$tanev,'result'=>'nevsor'));
+ $tanarIds = array();
+ for ($i = 0; $i < count($ADAT['tankor']['tanarai']); $i++)
+ if ($tankorId == $ADAT['tankor']['tanarai'][$i]['tankorId'])
+ $tanarIds[] = $ADAT['tankor']['tanarai'][$i]['tanarId'];
+ define('__TANARA',(__TANAR && in_array(__USERTANARID, $tanarIds)));
+ if (
+ $_TANEV['statusz'] == 'aktív'
+ && (
+ __NAPLOADMIN || __VEZETOSEG
+ || (
+ $modositasiIdoszak
+ && ( __TANARA )
+ )
+ )
+ ) define('__MODOSITHATO', true);
+ else define('__MODOSITHATO', false);
+ } // van tankör
+ if (defined('__MODOSITHATO') && __MODOSITHATO) {
+ switch ($action) {
+ case 'tankorUjDiak':
+ if ($_POST['diakId'] != '')
+ tankorDiakFelvesz($_POST);
+ break;
+ case 'tankorUjDiakMulti':
+ if ($_POST['diakId'] != '')
+ for ($i=0; $i<count($_POST['diakId']); $i++) {
+ $D = $_POST;
+ $D['diakId'] = $_POST['diakId'][$i];
+ tankorDiakFelvesz($D);
+ }
+ break;
+ case 'tankorDiakMod':
+ $oldCount = count($_SESSION['alert']);
+ tankorDiakModify($_POST); // és törlés
+ $ADAT['voltUtkozes'] = ($oldCount < count($_SESSION['alert']));
+ break;
+ } // switch
+ } // __NAPLOADMIN - mégegyszer - hátha később két szinten szét akarjuk bontani
+
+ // force variables to reload
+ if (isset($tankorId)) {
+ $TANKORADAT = getTankorAdat($tankorId,$tanev);
+ $TANKORADAT[0] = $TANKORADAT[$tankorId][0];
+ $ADAT['tankorAdat'] = $TANKORADAT[0];
+ $targyId = $TANKORADAT[0]['targyId'];
+ }
+ if (isset($targyId)) {
+ $TARGYADAT = getTargyById($targyId);
+ $mkId = $TARGYADAT['mkId'];
+ }
+
+ if (isset($tankorId) && checkTankorInTanev($tankorId, $tanev)) {
+ $ADAT['tankorId'] = $tankorId;
+ $ADAT['tanevadat'] = getTanevAdat($tanev);
+ $ADAT['tankor']['diakjai'] = getTankorDiakjaiByInterval($tankorId, $tanev, $ADAT['refDt'], $ADAT['refDt']);
+ $ADAT['tankor']['osztalyai'] = getTankorOsztalyaiByTanev($tankorId, $tanev, array('tagokAlapjan' => false, 'result' => 'id'));
+ $ADAT['tankor']['szemeszterei'] = getTankorSzemeszterei($tankorId);
+ // !!! Ez az aktuális státuszt és osztály tagságot nézi csak...
+ // $ADAT['diakok'] = getDiakokByOsztalyId( $ADAT['tankor']['osztalyai'], array('tanev'=>$tanev,'result'=>'assoc'));
+ // !!! Így a $ADAT['refDt'] szerinti névsort kérdezzük le, megfelelő jogviszony státusszal!
+ $ADAT['diakok'] = array(); $statuszLista = array('jogviszonyban van', 'magántanuló');
+ foreach ($ADAT['tankor']['osztalyai'] as $_osztalyId) {
+ $tmp = getDiakokByOsztaly($_osztalyId, array('tolDt' => $ADAT['refDt'], 'igDt' => $ADAT['refDt'], 'statusz' => $statuszLista));
+ foreach ($statuszLista as $statusz)
+ foreach ($tmp[$statusz] as $_diakId)
+ $ADAT['diakok'][$_osztalyId][] = array(
+ 'diakId' => $_diakId, 'diakNev' => $tmp[$_diakId]['diakNev'], 'beDt' => $tmp[$_diakId]['beDt'],
+ 'kiDt' => $tmp[$_diakId]['kiDt'], 'statusz' => $statusz
+ );
+ }
+ $ADAT['diakok']['vendegTanulok'] = getDiakok(array('tolDt' => $ADAT['refDt'], 'igDt' => $ADAT['refDt'], 'statusz' => array('vendégtanuló')));
+ foreach($ADAT['diakok'] as $_o=>$_D) for ($i=0; $i<count($_D); $i++) $DIAKIDK[] = $_D[$i]['diakId'];
+ $ADAT['diakOsztaly'] = getDiakokOsztalyai($ADAT['tankor']['diakjai']['idk'], array('tanev'=>__TANEV));
+ $ADAT['diakKepzes'] = getKepzesByDiakId($DIAKIDK, array('result'=>'assoc','dt'=>$ADAT['refDt']));
+ $ADAT['diakAdat'] = getDiakAdatById($DIAKIDK,array('result'=>'assoc','keyfield'=>'diakId'));
+ $ADAT['osztaly'] = getOsztalyok($tanev,array('result'=>'assoc'));
+ }
+ // -------------------------------------------------------------------------
+ $TOOL['tanevSelect'] = array('tipus'=>'cella','paramName' => 'tanev',
+ 'tervezett'=>true,
+ 'post'=>array('mkId','targyId','tankorId','dt'));
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'post'=>array('tanev','dt'));
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'post'=>array('mkId','tanev','dt'));
+ $TOOL['tankorSelect'] = array('tipus'=>'cella','paramName'=>'tankorId', 'post'=>array('tanev','mkId','targyId','dt','refDt'));
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=tankor'),
+ 'titleConst' => array('_TANKOR'), 'post' => array('tankorId','mkId','targyId','dt','tanev'));
+
+ $TOOL['tanevLapozo'] = array('tipus'=>'sor','paramName'=>'tanev', 'post'=>array('mkId','targyId','tankorId','dt'),
+ 'tanev'=>$tanev);
+ // megj: ha nincs munkaterv, akkor a selectben nem lesz kiválasztva semmi...
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'sor',
+ 'paramName' => 'refDt',
+ 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])),
+ 'igDt' => $TA['zarasDt'],
+// 'napTipusok' => array('tanítási nap', 'speciális tanítási nap'),
+ 'post'=>array('mkId','targyId','tankorId','tanev')
+ );
+
+
+ getToolParameters();
+
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak.php
new file mode 100644
index 00000000..e2b054df
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorDiak.php
@@ -0,0 +1,17 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (__MODOSITHATO === true) {
+ if (is_array($ADAT)) {
+ putTankorDiakForm($ADAT);
+ putUjDiakForm($ADAT);
+ putUjDiakForm2($ADAT);
+ }
+ } elseif (is_numeric($ADAT['tankorId'])) {
+ putTankorDiakTablazat($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam-pre.php
new file mode 100644
index 00000000..fce99fcb
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam-pre.php
@@ -0,0 +1,101 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/jegy.php');
+ require_once('include/modules/naplo/share/jegyModifier.php'); //????
+ require_once('include/share/date/names.php');
+
+ $mkId = readVariable($_POST['mkId'],'id');
+ $targyId = readVariable($_POST['targyId'],'id');
+ $tankorId = readVariable($_POST['tankorId'],'id', readVariable($_GET['tankorId'],'id') );
+ $tanev = readVariable($_POST['tanev'],'numeric');
+
+ $ADAT['osztalyonkent'] = readVariable($_POST['osztalyonkent'],'bool');
+ $ADAT['tankorLetszamLimit'] = readVariable($_POST['tankorLetszamLimit'],'numeric');
+ $ADAT['targyId'] = readVariable($_POST['targyId'],'id');
+ $ADAT['mkId'] = readVariable($_POST['mkId'],'id');
+
+ if (!isset($tanev)) $tanev=__TANEV;
+
+ if ($tanev!=__TANEV) $TA = getTanevAdat($tanev); else $TA = $_TANEV;
+
+ $ADAT['tanev'] = $tanev;
+
+ /* Dátumok */
+ if (isset($_POST['refDt']) && $_POST['refDt'] != '') $refDt = $_POST['refDt'];
+ elseif (time()<strtotime($TA['kezdesDt'])) $refDt = $TA['kezdesDt'];
+ else $refDt = date('Y-m-d');
+
+ $ADAT['refDt'] = $refDt;
+
+ if (isset($_POST['igDt']) && $_POST['igDt'] != '') $ADAT['igDt'] = $igDt = $_POST['igDt'];
+ $_POST['tolDt']=$_POST['refDt'];
+
+ // tankörök lekérdzése
+ if (isset($mkId)) {
+ $ADAT['tankorok'] = getTankorByMkId($mkId, $tanev);
+ } elseif (isset($targyId)) {
+ $ADAT['tankorok'] = getTankorByTargyId($targyId, $tanev, array('idonly'=>false));
+ } elseif (isset($osztalyId)) {
+ $ADAT['tankorok'] = getTankorByOsztalyId($osztalyId, $tanev, array('tanarral' => true));
+ } elseif (isset($tanarId)) {
+ $ADAT['tankorok'] = getTankorByTanarId($tanarId, $tanev,
+ array('csakId' => false, 'tolDt' => '', 'igDt' => '', 'tanarral' => true)
+ );
+ } else {
+ // ez kicsit sokáig tart sajnos
+ $ADAT['tankorok'] = getTankorByTanev($tanev);
+ }
+ $lr = db_connect('naplo_intezmeny');
+
+ for ($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $_tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorok'][$i]['letszam'] = getTankorLetszam($_tankorId, array('refDt'=>$ADAT['refDt']), $lr );
+ if ($ADAT['osztalyonkent']==1 && $ADAT['tankorok'][$i]['letszam']!=0) $ADAT['tankorok'][$i]['letszamOsztaly'] = getTankorLetszamOsztalyonkent($_tankorId, array('tanev'=>$tanev,'refDt'=>$ADAT['refDt']), $lr );
+ //$ADAT['tankorok'][$i]['osztalyai'] = getTankorOsztalyaiByTanev($_tankorId, $tanev, array('result' => 'id', 'tagokAlapjan' => true));
+ $ADAT['tankorok'][$i]['tanarai'] = getTankorTanarai($_tankorId, $lr);
+ }
+
+ db_close($lr);
+
+ //$ADAT['osztaly'] = getOsztalyok($tanev,array('result'=>'assoc'));
+ // -------------------------------------------------------------------------
+ $TOOL['tanevSelect'] = array('tipus'=>'cella','paramName' => 'tanev',
+ 'tervezett'=>false,
+ 'post'=>array('mkId','targyId','tankorId','dt'));
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'post'=>array('tanev','dt'));
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'post'=>array('mkId','tanev','dt'));
+// $TOOL['tankorSelect'] = array('tipus'=>'cella','paramName'=>'tankorId', 'post'=>array('tanev','mkId','targyId','dt'));
+// $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=intezmeny&f=tankor'),
+// 'titleConst' => array('_TANKOR'), 'post' => array('tankorId','mkId','targyId','dt','tanev'));
+
+ $TOOL['tanevLapozo'] = array('tipus'=>'sor','paramName'=>'tanev', 'post'=>array('mkId','targyId','tankorId','dt'),
+ 'tanev'=>$tanev,'tervezett'=>false);
+
+ // megj: ha nincs munkaterv, akkor a selectben nem lesz kiválasztva semmi...
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'sor',
+ 'paramName' => 'refDt',
+ 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])),
+ 'igDt' => $TA['zarasDt'],
+// 'napTipusok' => array('tanítási nap', 'speciális tanítási nap'),
+ 'post'=>array('mkId','targyId','tankorId','tanev')
+ );
+ getToolParameters();
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam.php
new file mode 100644
index 00000000..a1e7e6ef
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorLetszam.php
@@ -0,0 +1,8 @@
+<?php
+
+ global $ADAT;
+
+ putTankorLetszam($ADAT);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter-pre.php
new file mode 100644
index 00000000..d2131894
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter-pre.php
@@ -0,0 +1,122 @@
+<?php
+
+// 3.1
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (__NAPLOADMIN) {
+ /* Including shared libraries */
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/intezmeny/tankorTanar.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+
+ /* Input Variables */
+ $mkId = readVariable($_POST['mkId'],'numeric unsigned');
+ $tanarId = readVariable($_POST['tanarId'],'numeric unsigned');
+ $osztalyId = readVariable($_POST['osztalyId'],'numeric unsigned');
+ $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+
+ /* Setting default data */
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev);
+ else $TA = $_TANEV;
+
+ $ADAT['tanev'] = $tanev;
+
+ // tankörök lekérdzése
+ if (isset($mkId)) {
+ $TANKOROK = getTankorByMkId($mkId, $tanev);
+ } elseif (isset($osztalyId)) {
+ $TANKOROK = getTankorByOsztalyId($osztalyId, $tanev, array('tanarral' => true));
+ } elseif (isset($tanarId)) {
+ $TANKOROK = getTankorByTanarId($tanarId, $tanev,
+ array('csakId' => false, 'tolDt' => '', 'igDt' => '', 'tanarral' => true)
+ );
+ }
+
+ // kiegészítő: tankorSzemeszter tábla és szemeszterek lekérdezése
+ if (is_array($TANKOROK)) {
+
+ $tankorIds = array();
+ for ($i = 0; $i < count($TANKOROK); $i++) $tankorIds[] = $TANKOROK[$i]['tankorId'];
+ $tankorSzemeszterek = getTankorSzemeszterek($tankorIds);
+ $tankorSzemeszter = array();
+ foreach ($tankorSzemeszterek as $tankorId => $tankorAdat) {
+ for ($i = 0; $i < count($tankorAdat); $i++) {
+ $tankorSzemeszter[$tankorId][$tankorAdat[$i]['tanev']][$tankorAdat[$i]['szemeszter']] = $tankorAdat[$i];
+ }
+ }
+
+ $ADAT['tankorSzemeszter'] = $tankorSzemeszter;
+
+ $ADAT['szemeszterek'] = $Szemeszterek = getSzemeszterek_spec($tanev-1);
+
+
+ // -------- action ------------ //
+ if ($action == 'tankorSzemeszter') {
+ if (is_array($_POST['T'])) {
+ $T = $_POST['T'];
+ $M = array();
+ for ($i = 0; $i < count($T); $i++) {
+ list($tankorId, $szTanev, $szSzemeszter) = explode('/', $T[$i]);
+ $name = 'O_'.$tankorId.'_'.$szTanev.'_'.$szSzemeszter;
+ // Ha kötelezővé akarjuk tenni az óraszám megadását:
+ // if (isset($_POST[$name]) && $_POST[$name] != '') $M[] = array(
+//if (isset($_POST[$name]) && $_POST[$name] != '') $oraszam = readVariable($_POST[$name],'string'); // numeric?
+ $oraszam = readVariable($_POST[$name], 'float unsigned', 0);
+// else $oraszam = 0;
+ $M[] = array(
+ 'tankorId' => $tankorId,
+ 'tanev' => $szTanev,
+ 'szemeszter' => $szSzemeszter,
+ 'oraszam' => $oraszam
+ );
+ }
+
+ $tankorNevek = array();
+ for ($i = 0; $i < count($TANKOROK); $i++)
+ $tankorNevek[$TANKOROK[$i]['tankorId']] = $TANKOROK[$i]['tankorNev'];
+ if (tankorSzemeszterModositas($M, $tankorSzemeszter, $tankorNevek, $Szemeszterek, $TA['zarasDt'])) {
+ // tankor szemesztereinek újraolvasása
+ $tankorSzemeszterek = getTankorSzemeszterek($tankorIds);
+ $tankorSzemeszter = array();
+ foreach ($tankorSzemeszterek as $tankorId => $tankorAdat) {
+ for ($i = 0; $i < count($tankorAdat); $i++) {
+ $tankorSzemeszter[$tankorId][$tankorAdat[$i]['tanev']][$tankorAdat[$i]['szemeszter']] = $tankorAdat[$i];
+ }
+ }
+ $ADAT['tankorSzemeszter'] = $tankorSzemeszter;
+
+ }
+ }
+ }
+
+ // -------- action ------------ //
+
+ $ADAT['tankorok'] = $TANKOROK;
+ if (is_array($ADAT['tankorok'])) {
+ for($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $_tankorId=$ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorTanarok'][$_tankorId] = getTankorTanarai($_tankorId);
+ }
+ }
+
+ } // van Tankorok
+
+
+ // ToolBar
+ $TOOL['tanevSelect'] = array('tipus'=>'cella','paramName' => 'tanev',
+ 'tervezett'=>true,
+ 'post'=>array('mkId','targyId','tankorId')
+ );
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'post'=>array('tanev'));
+ $TOOL['tanarSelect'] = array('tipus'=>'sor','paramName'=>'tanarId', 'post'=>array('tanev'));
+ $TOOL['osztalySelect'] = array('tipus'=>'sor','paramName'=>'osztalyId', 'post'=>array('tanev'));
+ getToolParameters();
+
+ } // NAPLOADMIN
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter.php
new file mode 100644
index 00000000..c9b5209a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorSzemeszter.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['tankorok'])) putTankorSzemeszterForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar-pre.php
new file mode 100644
index 00000000..19fa11ba
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar-pre.php
@@ -0,0 +1,114 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/intezmeny/tankorTanar.php');
+ require_once('include/share/date/names.php');
+
+ $kuuk = $_COOKIE['mayorNaploUzen'];
+
+ $tanev = $ADAT['tanev'] = readVariable($_POST['tanev'], 'numeric unsigned', readVariable($_GET['tanev'], 'numeric unsigned', __TANEV));
+ if ($tanev == __TANEV) $TA = $_TANEV;
+ else $TA = getTanevAdat($tanev);
+
+//?? Ez mi is ??
+ if ($kuuk==$_GET['kuuk']) {
+ $_POST['tankorId'] = $ADAT['tankorId'] = $tankorId = readVariable($_GET['tankorId'],'numeric');
+ } else {
+ $_POST['tankorId'] = $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'], 'id', readVariable($_GET['tankorId'], 'id'));
+ }
+
+ if (isset($ADAT['tankorId'])) {
+ $_POST['mkId'] = $ADAT['mkId'] = $mkId = getTankorMkId($ADAT['tankorId']);
+ $tmp = current(getTankorAdat($tankorId));
+ $ADAT['tankorAdat'] = $tmp[0];
+ } else {
+ $_POST['mkId'] = $ADAT['mkId'] = $mkId = readVariable($_POST['mkId'], 'id', readVariable($_GET['mkId'], 'id'));
+ }
+
+ /* Dátumok */
+ $_POST['refDt'] = $ADAT['refDt'] = $refDt = readVariable($_POST['refDt'], 'date', readVariable($_GET['refDt'], 'date', $TA['kezdesDt']));
+
+// if (isset($_POST['igDt']) && $_POST['igDt'] != '') $ADAT['igDt'] = $igDt = $_POST['igDt'];
+// else $ADAT['igDt'] = $igDt = $TA['zarasDt'];
+ $ADAT['igDt'] = $igDt = readVariable($_POST['igDt'], 'date', $TA['zarasDt']);
+ if (strtotime($igDt) < strtotime($refDt)) $ADAT['igDt'] = $igDt = $refDt;
+
+ $tankorIds = $_POST['tankorok'];
+ $tankorTanarIds = array();
+ foreach ($_POST as $name => $value) if (substr($name, 0, 2) == 'TA') {
+ $_tankorId = substr($name, 2);
+ $tankorTanarIds[$_tankorId] = $value;
+ }
+
+ if (__NAPLOADMIN===true || __VEZETOSEG===true) {
+ switch ($action) {
+ case 'tankorTanarAssoc':
+ if (isset($tanev))
+ tankorTanarFelvesz($tankorIds, $tankorTanarIds, $TA, $refDt, $igDt);
+ break;
+ case 'tankorTanarTorol':
+ if ($kuuk == $_GET['kuuk']) {
+ list($_tankorId,$_tanarId,$_beDt,$_kiDt) = explode('|',readVariable($_GET['tt'],'string'));
+ tankorTanarTorol($_tankorId,$_tanarId,$_beDt,$_kiDt);
+ }
+ break;
+ case 'tankorTanarJavit':
+ if ($kuuk == $_GET['kuuk']) {
+ list($_tankorId,$_tanarId,$_beDt,$_kiDt) = explode('|',readVariable($_GET['tt'],'string'));
+ tankorTanarJavit($_tankorId,$_tanarId,$_beDt,$refDt);
+ }
+ break;
+ }
+ }
+
+ if (isset($ADAT['mkId'])) {
+ if (!isset($tankorId)) {
+ $ADAT['tanarok'] = getTanarok(array('mkId' => $ADAT['mkId'], 'tanev' => $tanev));
+ $ADAT['tankorok'] = getTankorByMkId($ADAT['mkId'], $tanev, array('datumKenyszeritessel' => true, 'tolDt' => $refDt, 'igDt' => $refDt));
+ } else {
+ $ADAT['tanarok'] = getTanarok(array('targyId' => $ADAT['tankorAdat']['targyId'], 'tanev' => $tanev));
+ $ADAT['tankorok'] = getTankorByMkId(
+ $ADAT['mkId'], $tanev, array('filter' => array("tankor.tankorId=$tankorId"), 'datumKenyszeritessel' => true, 'tolDt' => $refDt, 'igDt' => $refDt)
+ );
+ }
+ }
+ if (is_array($ADAT['tankorok'])) {
+ for($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $_tankorId=$ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorTanarok'][$_tankorId] = getTankorTanarai($_tankorId);
+ $ADAT['tankorTanarBejegyzesek'][$_tankorId] = getTankorTanarBejegyzesek($_tankorId);
+ }
+ }
+
+ $ADAT['kuuk'] = rand();
+ setcookie('mayorNaploUzen',$ADAT['kuuk']);
+
+ $tolDt = (strtotime($TA['kezdesDt'])<time()) ? date('Y-m-d', strtotime('-1 month', strtotime($TA['kezdesDt']))) : date('Y-m-d');
+
+ $TOOL['tanevSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'tanev',
+ 'tervezett' => true, 'post' => array('mkId','targyId','tankorId'), 'get'=>array()
+ );
+ $TOOL['munkakozossegSelect'] = array('tipus' => 'cella', 'paramName' => 'mkId', 'post' => array('tanev','refDt'), 'get'=>array());
+ $TOOL['tankorSelect'] = array('tipus' => 'cella', 'paramName' => 'tankorId', 'post' => array('tanev','mkId','targyId','refDt'), 'get'=>array());
+ $TOOL['datumSelect'] = array(
+ 'override' => true,
+ 'tipus' => 'sor', 'paramName' => 'refDt', 'hanyNaponta' => 1,
+ 'tolDt' => $tolDt, 'igDt' => $TA['zarasDt'], 'post' => array('tanev','mkId','targyId','tankorId'),
+ );
+
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar.php
new file mode 100644
index 00000000..b8ce04ec
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanar.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putTankorTanarForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php
new file mode 100644
index 00000000..3b5f5133
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles-pre.php
@@ -0,0 +1,64 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) { $_SESSION['alert'] = 'page:insufficient_access'; }
+ else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankorModifier.php');
+
+ $ADAT['szuro'] = array(
+ 'osztalyok' => getOsztalyok(),
+ 'munkakozossegek' => getMunkakozossegek(),
+ 'tanarok' => getTanarok(),
+ 'targyak' => getTargyak(),
+
+ 'osztalyIds'=>readVariable($_POST['osztalyIds'],'id',array()),
+ 'mkIds'=>readVariable($_POST['mkIds'],'id',array()),
+ 'tanarNelkuliTankorok' => readVariable($_POST['tanarNelkuliTankorok'],'bool'),
+ 'tanarIds'=>readVariable($_POST['tanarIds'],'id',array()),
+ 'targyIds'=>readVariable($_POST['targyIds'],'id',array()),
+ );
+ foreach ($ADAT['szuro']['targyak'] as $idx => $tAdat) $ADAT['targyAdat'][ $tAdat['targyId'] ] = $tAdat;
+
+ // A szűrőben beállítottnak megefelő tankörök lekérése
+ $ADAT['tankorok'] = getTankorokBySzuro($ADAT['szuro']);
+ $ADAT['szuro']['tankorTargyIds'] = array();
+ foreach ($ADAT['tankorok'] as $ids => $tAdat)
+ if (!in_array($tAdat['targyId'], $ADAT['szuro']['tankorTargyIds']))
+ $ADAT['szuro']['tankorTargyIds'][] = $tAdat['targyId'];
+ $ADAT['tanarok'] = getTanarokBySzuro($ADAT['szuro']);
+ // stat
+ $ADAT['keszTankorDb'] = 0;
+ foreach ($ADAT['tankorok'] as $tAdat) if (is_array($tAdat['tanarIds']) && count($tAdat['tanarIds'])>0) $ADAT['keszTankorDb']++;
+ $ADAT['tankorStat'] = getTankorStat();
+
+ if ($action == 'tankorTanarFelvesz') {
+
+ $tankorId = readVariable($_POST['tankorId'],'id');
+ $tanarId = readVariable($_POST['tanarId'],'id');
+ $_JSON = array(
+ 'post' => $_POST,
+ 'result' => tankorTanarModosit($tankorId, $tanarId, array('tanev'=>__TANEV))
+ );
+
+ } elseif ($action == 'tankorTanarTorol') {
+
+ $_tankorId = readVariable($_POST['tankorId'],'id');
+ $_tanarId = readVariable($_POST['tanarId'],'id');
+ tankorTanarTorol($_tankorId,$_tanarId,array('tanev'=>$tanev));
+
+ $_JSON = array(
+ 'post' => $_POST,
+ );
+ }
+
+//dump($ADAT['tanarok']);
+
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles.php b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles.php
new file mode 100644
index 00000000..5b19149a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tankorTanarHozzarendeles.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putStatuszSor($ADAT);
+
+ if (is_array($ADAT['tankorok']) && count($ADAT['tankorok'])>0) putTankorTanarMatrix($ADAT);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tantargyFelosztas.php b/mayor-orig/www/policy/private/naplo/intezmeny/tantargyFelosztas.php
new file mode 100644
index 00000000..d8124253
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tantargyFelosztas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['tankorok'])) putTankorTanarMatrix($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/terem-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/terem-pre.php
new file mode 100644
index 00000000..2fc6e2de
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/terem-pre.php
@@ -0,0 +1,42 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+
+ $ADAT['telephelyAdat'] = getTelephelyek(array('result' => 'assoc', 'keyfield' => 'telephelyId'));
+ $ADAT['telephelyIds'] = array_keys($ADAT['telephelyAdat']);
+ $ADAT['telephelyId'] = $telephelyId = readVariable($_GET['telephelyId'], 'id', readVariable(
+ $_POST['telephelyId'], 'id', (isset($_POST['telephelyId'])?null:readVariable(__TELEPHELYID,'id')), $ADAT['telephelyIds']
+ ), $ADAT['telephelyId']);
+ $ADAT['teremAdat'] = getTermek(array('result' => 'assoc', 'keyfield' => 'teremId'));
+ $ADAT['teremIds'] = array_keys($ADAT['teremAdat']);
+ $ADAT['teremTipusok'] = getSetField('naplo_intezmeny','terem','tipus');
+ $ADAT['teremId'] = readVariable($_POST['teremId'], 'id', readVariable($_GET['teremId'], 'id', null, $ADAT['teremIds']), $ADAT['teremIds']);
+
+ if ($action == 'teremAdatModositas' || $action=='ujTerem') {
+
+ $D['teremId'] = $ADAT['teremId'];
+ $D['leiras'] = readVariable($_POST['leiras'], 'string');
+ $D['ferohely'] = readVariable($_POST['ferohely'], 'numeric unsigned');
+ $D['tipus'] = readVariable($_POST['tipus'], 'enum', $ADAT['teremTipusok']);
+ $D['telephelyId'] = readVariable($_POST['telephelyId'], 'id', readVariable($_GET['telephelyId'], 'id', null, $ADAT['telephelyIds']), $ADAT['telephelyIds']);
+//echo '<pre>'; var_dump($ADAT['teremIds']); echo '</pre>';
+
+ teremAdatModositas($D,($action=='ujTerem'));
+
+ unset($ADAT['teremId']);
+ }
+
+ $ADAT['teremAdat'] = getTermek(array('result' => 'assoc', 'keyfield' => 'teremId', 'telephelyId' => $telephelyId));
+
+ $TOOL['telephelySelect'] = array('tipus'=>'cella','paramName' => 'telephelyId', 'post' => array('tanev'));
+ getToolParameters();
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/terem.php b/mayor-orig/www/policy/private/naplo/intezmeny/terem.php
new file mode 100644
index 00000000..f36fb11b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/terem.php
@@ -0,0 +1,13 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['teremId'])) {
+ putTeremForm($ADAT);
+ } else {
+ putTeremLista($ADAT);
+//NEM TESZTELT! putTeremForm($ADAT);
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php
new file mode 100644
index 00000000..f2eacf29
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes-pre.php
@@ -0,0 +1,112 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN!==true && __TANAR!==true && __VEZETOSEG!==true) $_SESSION['alert'][]='page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tanarModifier.php');
+
+ global $SSSHH;
+ $SSSHH .= "<script type=\"text/javascript\" src=\"https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['timeline','corechart']}]}\"></script>\n";
+
+ $tanev = $ADAT['tanev'] = readVariable($_POST['tanev'],'numeric',__TANEV);
+
+ if (__TANAR) $tanarId = __USERTANARID;
+ if (__VEZETOSEG || __NAPLOADMIN) define('__MODOSITHAT',true);
+ else define('__MODOSITHAT',false);
+
+/* ------------------------------------------------- */
+ if (__MODOSITHAT) {
+ if ($action=='modTanarTovabbkepzesForduloDt') {
+ $_tanarId = readVariable($_POST['tanarId'],'id');
+ $_forduloDt = readVariable($_POST['forduloDt'],'date');
+ $_JSON['result'] = true;
+ $_JSON['tanarId'] = $_tanarId;
+ $_JSON['forduloDt'] = $_dt;
+ $_JSON['result'] = updateTanarAdat($_tanarId,array('tovabbkepzesForduloDt'=>$_forduloDt));
+ } elseif ($action=='ujTovabbkepzes') {
+ $ADAT['tovabbkepzoIntezmenyId'] = readVariable($_POST['tovabbkepzoIntezmenyId'],'id',null);
+ if (is_null($ADAT['tovabbkepzoIntezmenyId'])) {
+ $UJINTEZMENY['intezmenyRovidNev'] = readVariable($_POST['intezmenyRovidNev'],'string',null);
+ $UJINTEZMENY['intezmenyNev'] = readVariable($_POST['intezmenyNev'],'string',null);
+ if ($UJINTEZMENY['intezmenyRovidNev']!='' && $UJINTEZMENY['intezmenyNev']!='') $ADAT['tovabbkepzoIntezmenyId'] = ujTovabbkepzoIntezmeny($UJINTEZMENY);
+ }
+ if ($ADAT['tovabbkepzoIntezmenyId']>0) {
+ $ADAT['tovabbkepzesNev'] = readVariable($_POST['tovabbkepzesNev'],'string',null);
+ $ADAT['oraszam'] = intval(readVariable($_POST['oraszam'],'numeric unsigned',null));
+ $ADAT['kategoria'] = readVariable($_POST['kategoria'],'string',null);
+ $ADAT['akkreditalt'] = ($ADAT['kategoria']=='egyéb') ? 0:1;
+ ujTovabbkepzes($ADAT);
+ }
+ } elseif ($action=='modTovabbkepzes') {
+ $MOD = readVariable($_POST['tovabbkepzesId'],'id',null);
+ for ($i=0; $i<count($MOD); $i++) {
+ $ADAT['tovabbkepzesId'] = $MOD[$i];
+ $ADAT['tovabbkepzesNev'] = readVariable($_POST['tovabbkepzesNev_'.$MOD[$i]],'string',null);
+ $ADAT['oraszam'] = intval(readVariable($_POST['oraszam_'.$MOD[$i]],'numeric unsigned',null));
+ $ADAT['kategoria'] = readVariable($_POST['kategoria_'.$MOD[$i]],'string',null);
+ $ADAT['akkreditalt'] = ($ADAT['kategoria']=='egyéb') ? 0:1;
+ modTovabbkepzes($ADAT);
+ }
+ } elseif ($action=='ujTovabbkepzesTanar') { // az egész táblázat egyszerre módosul - lehetne máshogy is
+ $ADAT['tovabbkepzesId'] = readVariable($_POST['tovabbkepzesId'],'id',null);
+ $ADAT['tanarId'] = readVariable($_POST['tanarId'],'id',null);
+ $ADAT['tolDt'] = readVariable($_POST['tolDt'],'date',null);
+ $ADAT['igDt'] = readVariable($_POST['igDt'],'date',null);
+ $ADAT['tanusitvanyDt'] = readVariable($_POST['tanusitvanyDt'],'date',null);
+ $ADAT['tanusitvanySzam'] = readVariable($_POST['tanusitvanySzam'],'string',null);
+ if ($ADAT['tovabbkepzesId']>0 && $ADAT['tanarId']>0)
+ ujTovabbkepzesTanar($ADAT);
+ $MOD = readVariable($_POST['tovabbkepzesTanar'],'string',null);
+ if (is_array($MOD) && count($MOD)>0) {
+ for ($i=0;$i<count($MOD); $i++) {
+ list($_tovabbkepzesId,$_tanarId) = explode('_',$MOD[$i]);
+ $M = array();
+ $M['tovabbkepzesId'] = $_tovabbkepzesId;
+ $M['tanarId'] = $_tanarId;
+ $M['tolDt'] = readVariable($_POST['tolDt_'.$_tovabbkepzesId.'_'.$_tanarId],'date',null);
+ $M['igDt'] = readVariable($_POST['igDt_'.$_tovabbkepzesId.'_'.$_tanarId],'date',null);
+ $M['tanusitvanyDt'] = readVariable($_POST['tanusitvanyDt_'.$_tovabbkepzesId.'_'.$_tanarId],'date',null);
+ $M['tanusitvanySzam'] = readVariable($_POST['tanusitvanySzam_'.$_tovabbkepzesId.'_'.$_tanarId],'string',null);
+ if ($_POST['tovabbkepzesTorles_'.$_tovabbkepzesId.'_'.$_tanarId]=='-') {
+ delTovabbkepzesTanar($M);
+ } else {
+ modTovabbkepzesTanar($M);
+ }
+ }
+ }
+ } elseif ($action == 'ujTovabbkepzesTE') {
+ $U = readVariable($_POST['TE'],'string',null);
+ for ($i=0; $i<count($U); $i++) {
+ list($_D['tovabbkepzesId'],$_D['tanarId'],$_D['tanev']) = explode('_',$U[$i]);
+ $_D['reszosszeg'] = readVariable($_POST['reszosszeg_'.$U[$i]],'numeric unsigned',0);
+ $_D['tamogatas'] = readVariable($_POST['tamogatas_'.$U[$i]],'numeric unsigned',0);
+ $_D['tovabbkepzesStatusz'] = readVariable($_POST['TE_statusz_'.$U[$i]],'enum','',array('','terv','jóváhagyott','elutasított','megszűnt','megszakadt','teljesített'));
+// $_D['tovabbkepzesStatusz'] = readVariable($_POST['TE_statusz_'.$U[$i]],'string','');
+ $_D['tavollet'] = readVariable($_POST['tavollet_'.$U[$i]],'string','');
+ $_D['helyettesitesRendje'] = readVariable($_POST['helyettesitesRendje_'.$U[$i]],'string','');
+ $_D['prioritas'] = readVariable($_POST['prioritas_'.$U[$i]],'string','');
+ if ($_D['tovabbkepzesStatusz']=='') delTovabbkepzesTE($_D);
+ else modTovabbkepzesTE($_D);
+ }
+ $keretOsszeg = readVariable($_POST['keretOsszeg'],'numeric unsigned',0);
+ modKeretOsszeg($ADAT['tanev'],$keretOsszeg);
+ }
+
+ }
+/* ------------------------------------------------- */
+
+ $ADAT['tovabbkepzoIntezmenyek'] = getTovabbkepzoIntezmenyek();
+ $ADAT['tovabbkepzesek'] = getTovabbkepzesek();
+ $ADAT['tovabbkepzesTanar'] = getTanarTovabbkepzesek();
+ $ADAT['lehetsegesTovabbkepzesek'] = getTanarTovabbkepzesByEv($ADAT['tanev']);
+ $ADAT['tovabbkepzesTerv'] = getTovabbkepzesTerv($ADAT['tanev']);
+ $ADAT['tanarok'] = getTanarok(
+ array('extraAttrs'=>'tovabbkepzesForduloDt','összes'=>true)
+ );
+ $ADAT['tanarTovabbkepzesCiklus'] = getTanarTovabbkepzesCiklus();
+ $ADAT['keretOsszeg'] = getKeretosszeg($ADAT['tanev']);
+ $ADAT['tovabbkepzesFolyamat']=getTanarTovabbkepzesFolyamat();
+ $TOOL['tanevSelect'] = array('tipus'=>'cella', 'action' => 'tanevValasztas', 'post' => array(), 'tervezett' => true);
+ getToolParameters();
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes.php b/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes.php
new file mode 100644
index 00000000..160d944b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/tovabbkepzes.php
@@ -0,0 +1,12 @@
+<?php
+ global $ADAT;
+
+ if ($skin != 'ajax') {
+ putTovabbkepzesTerv($ADAT);
+ putTovabbkepzesek($ADAT);
+ if (__NAPLOADMIN || __VEZETOSEG) {
+ putTanarokTovabbkepzesAdatai($ADAT);
+ putUjTovabbkepzes($ADAT);
+ }
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/valtas-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/valtas-pre.php
new file mode 100644
index 00000000..ec39cdc5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/valtas-pre.php
@@ -0,0 +1,58 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+
+ $intezmeny = readVariable($_POST['intezmeny'], 'strictstring', defined('__INTEZMENY') ? __INTEZMENY : null );
+ if ($action == 'intezmenyValasztas') {
+ if (isset($intezmeny) && $intezmeny !== __INTEZMENY) {
+ if (updateSessionIntezmeny($intezmeny)) {
+ if (updateNaploSettings($intezmeny))
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ }
+
+ if (defined('__INTEZMENY') and __INTEZMENY != '') {
+ $Tanevek = getTanevek();
+ $Telephelyek = getTelephelyek();
+ $telephelyIds = array();
+ if (is_array($Telephelyek)) foreach ($Telephelyek as $index => $tAdat) $telephelyIds[] = $tAdat['telephelyId'];
+ $tanev = readVariable($_POST['tanev'], 'id', defined('__TANEV') ? __TANEV : null, $Tanevek);
+ $telephelyId = readVariable($_POST['telephelyId'], 'id', defined('__TELEPHELYID') ? __TELEPHELYID : null, $telephelyIds);
+ if ($action == 'tanevValasztas') {
+ if (isset($tanev) && $tanev !== __TANEV) {
+ if (updateSessionTanev($tanev)) {
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ } elseif ($action == 'telephelyValasztas') {
+ if (isset($telephelyId) && $telephelyId != __TELEPHELYID) {
+ if (updateSessionTelephelyId($telephelyId)) {
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ }
+ }
+ $ADAT['tanarok'] = getTanarok(array('extraAttrs'=>'titulus'));
+ $lr = db_connect('naplo_intezmeny');
+ for($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $_tanarId = $ADAT['tanarok'][$i]['tanarId'];
+ $ADAT['tanarOsztaly'][$_tanarId] = getOsztalyIdsByTanarId($_tanarId, array('tanev'=>__TANEV,'csakId'=>true),$lr);
+ $ADAT['tanarMunkakozosseg'][$_tanarId] = getVezetettMunkakozossegByTanarId($_tanarId,array('result'=>'assoc'),$lr);
+ }
+ $ADAT['osztalyok'] = getOsztalyok(__TANEV,array('result'=>'assoc'),$lr);
+ db_close($lr);
+
+ $TOOL['intezmenySelect'] = array('tipus'=>'cella', 'action' => 'intezmenyValasztas', 'post' => array());
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'action' => 'telephelyValasztas', 'post' => array());
+ $TOOL['tanevSelect'] = array('tipus'=>'cella', 'action' => 'tanevValasztas', 'post' => array());
+
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/valtas.php b/mayor-orig/www/policy/private/naplo/intezmeny/valtas.php
new file mode 100644
index 00000000..3d15f4de
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/valtas.php
@@ -0,0 +1,7 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ global $ADAT;
+ putTanarLista($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/verseny-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/verseny-pre.php
new file mode 100644
index 00000000..e0554b55
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/verseny-pre.php
@@ -0,0 +1,54 @@
+<?php
+
+
+ if (_RIGHTS_OK !== true) die();
+
+
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/verseny.php');
+// $ADAT['versenyek'] = getVersenyek();
+// $ADAT['targyak'] = getTargyak();
+
+/*
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+
+ $intezmeny = readVariable($_POST['intezmeny'], 'strictstring', defined('__INTEZMENY') ? __INTEZMENY : null );
+ if ($action == 'intezmenyValasztas') {
+ if (isset($intezmeny) && $intezmeny !== __INTEZMENY) {
+ if (updateSessionIntezmeny($intezmeny)) {
+ if (updateNaploSettings($intezmeny))
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ }
+
+ if (defined('__INTEZMENY') and __INTEZMENY != '') {
+ $Tanevek = getTanevek();
+ $Telephelyek = getTelephelyek();
+ $telephelyIds = array();
+ if (is_array($Telephelyek)) foreach ($Telephelyek as $index => $tAdat) $telephelyIds[] = $tAdat['telephelyId'];
+ $tanev = readVariable($_POST['tanev'], 'id', defined('__TANEV') ? __TANEV : null, $Tanevek);
+ $telephelyId = readVariable($_POST['telephelyId'], 'id', defined('__TELEPHELYID') ? __TELEPHELYID : null, $telephelyIds);
+ if ($action == 'tanevValasztas') {
+ if (isset($tanev) && $tanev !== __TANEV) {
+ if (updateSessionTanev($tanev)) {
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ } elseif ($action == 'telephelyValasztas') {
+ if (isset($telephelyId) && $telephelyId != __TELEPHELYID) {
+ if (updateSessionTelephelyId($telephelyId)) {
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ }
+ }
+
+ $TOOL['intezmenySelect'] = array('tipus'=>'cella', 'action' => 'intezmenyValasztas', 'post' => array());
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'action' => 'telephelyValasztas', 'post' => array());
+ $TOOL['tanevSelect'] = array('tipus'=>'cella', 'action' => 'tanevValasztas', 'post' => array());
+
+ getToolParameters();
+*/
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/verseny.php b/mayor-orig/www/policy/private/naplo/intezmeny/verseny.php
new file mode 100644
index 00000000..71d8dd36
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/verseny.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+// putVersenyek($ADAT);
+
+// putUjVerseny($ADAT['targyak']);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/zaradek-pre.php b/mayor-orig/www/policy/private/naplo/intezmeny/zaradek-pre.php
new file mode 100644
index 00000000..f03fbf46
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/zaradek-pre.php
@@ -0,0 +1,76 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__TANAR && !__VEZETOSEG && !__NAPLOADMIN && !__TITKARSAG) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/share/date/names.php');
+
+ $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'], 'numeric unsigned');
+ $diakId = $ADAT['diakId'] = readVariable($_POST['diakId'], 'numeric unsigned');
+ $ADAT['iktatoszam'] = readVariable($_POST['iktatoszam'], 'string');
+ $dt = $ADAT['dt'] = readVariable($_POST['dt'], 'datetime');
+ $zaradekIndex = $ADAT['zaradekIndex'] = readVariable($_POST['zaradekIndex'], 'numeric unsigned');
+
+ if (isset($zaradekIndex)) {
+ $tmp = explode('%', $Zaradek[$zaradekIndex]['szoveg']);
+ $ADAT['zaradek'] = $Zaradek[$zaradekIndex];
+ $ADAT['params'] = array();
+ for ($i=1; $i < count($tmp); $i = $i+2) $ADAT['params'][] = $tmp[$i];
+
+ if ($action == 'zaradekRogzites') {
+ $ok = true;
+ $values = readVariable($_POST['values'], 'string', '');
+ $ADAT['csere'] = array();
+ for ($i = 0; $i < count($ADAT['params']); $i++) {
+ $ADAT['csere'][ '%'.$ADAT['params'][$i].'%' ] = $values[$i];
+ if ($values[$i] == '') $ok = false;
+ }
+ if ($ok) {
+ if (zaradekRogzites($ADAT)) {
+ $_SESSION['alert'][] = 'info:success';
+ unset($zaradekIndex); unset($ADAT['zaradekIndex']);
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field';
+ }
+ }
+ }
+ if ($action=='zaradekTorles') {
+ foreach ($_POST as $key => $val) {
+ list($akt, $zaradekId) = explode('-',$key);
+ if ($akt == 'del') zaradekTorles($zaradekId);
+ }
+
+ }
+ if (isset($diakId)) {
+ $diakZaradekok = getDiakZaradekok($diakId);
+ if ($diakZaradekok) $ADAT['diakZaradekok'] = $diakZaradekok;
+ }
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('dt'));
+ $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'post' => array('osztalyId','dt'),
+ 'statusz' => array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'sor', 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+// 'tolDt' => date('Y-m-d', strtotime('-1 month', strtotime($_TANEV['kezdesDt']))),
+ 'tolDt' => $_TANEV['elozoZarasDt'],
+ 'igDt' => $_TANEV['kovetkezoKezdesDt'],
+ 'override' => true
+ );
+ if (isset($diakId) && isset($dt))
+ $TOOL['zaradekSelect'] = array('tipus' => 'sor', 'paramName' => 'zaradekIndex', 'post' => array('osztalyId', 'diakId', 'dt'));
+
+
+ getToolParameters();
+
+ }
diff --git a/mayor-orig/www/policy/private/naplo/intezmeny/zaradek.php b/mayor-orig/www/policy/private/naplo/intezmeny/zaradek.php
new file mode 100644
index 00000000..cb55caaa
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/intezmeny/zaradek.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['zaradekIndex'])) {
+ putZaradekForm($ADAT);
+ } elseif (is_array($ADAT['diakZaradekok']) && count($ADAT['diakZaradekok']) > 0) {
+ putDiakZaradekok($ADAT);
+ }
diff --git a/mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin-pre.php b/mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin-pre.php
new file mode 100644
index 00000000..a74a12e3
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin-pre.php
@@ -0,0 +1,83 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+if (!defined('__KOSZIADMIN')) define('__KOSZIADMIN',memberOf(_USERACCOUNT,'kosziadmin'));
+
+if (!(__KOSZIADMIN || __NAPLOADMIN)) { /* vagy naploadmin vagy kosziadmin (ez a csoport opcionális!) */
+ $_SESSION['alert'][] = 'page:insufficient_access';
+} else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/koszi.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['kosziEsemenyTipusok'] = getEnumField('naplo_intezmeny', 'kosziEsemeny', 'kosziEsemenyTipus');
+ $ADAT['kosziPontTipusok'] = getEnumField('naplo_intezmeny', 'kosziPont', 'kosziPontTipus');
+ $ADAT['kosziIgazolok'] = getEnumField('naplo', 'koszi', 'igazolo');
+ $ADAT['kosziEsemenyId'] = readVariable($_POST['kosziEsemenyId'], 'id');
+
+ if ($action=='ujKosziEsemeny') {
+
+ $P['kosziEsemenyTipus'] = readVariable($_POST['kosziEsemenyTipus'],'enum',null,$ADAT['kosziEsemenyTipusok']);
+ $P['kosziEsemenyNev'] = readVariable($_POST['kosziEsemenyNev'],'string') ;
+ $P['kosziEsemenyLeiras'] = readVariable($_POST['kosziEsemenyLeiras'],'string') ;
+
+ $ADAT['kosziEsemenyId'] = ujEsemeny($P);
+
+ } elseif ( $action== 'ujPont') {
+ $P['kosziEsemenyId'] = $ADAT['kosziEsemenyId'];
+ $P['kosziPontTipus'] = readVariable($_POST['kosziPontTipus'],'enum',null,$ADAT['kosziPontTipusok']);
+ $P['kosziPont'] = readVariable($_POST['kosziPont'],'id');
+ $P['kosziHelyezes'] = readVariable($_POST['kosziHelyezes'],'id');
+
+ ujKosziPont($P);
+ } elseif ( $action== 'delKoszi') {
+
+ $P['kosziId'] = readVariable($_POST['kosziId'],'id');
+
+ delKoszi($P['kosziId']);
+
+ } elseif ( $action== 'ujKoszi') {
+
+ $P['kosziEsemenyId'] = $ADAT['kosziEsemenyId'];
+ $P['dt'] = readVariable($_POST['dt'],'date');
+ $P['tolDt'] = readVariable($_POST['tolDt'],'datetime');
+ $P['igDt'] = readVariable($_POST['igDt'],'datetime');
+ $P['felev'] = readVariable($_POST['felev'],'id');
+ $P['igazolo'] = @implode(',',readVariable($_POST['igazolo'],'enum',null,$ADAT['kosziIgazolok']));
+
+ $P['diakId'] = readVariable($_POST['diakId'],'id');
+ $P['tanarId'] = readVariable($_POST['tanarId'],'id');
+ $P['targyId'] = readVariable($_POST['targyId'],'id');
+ $P['osztalyfonokId'] = readVariable($_POST['osztalyfonokId'],'id');
+
+ $kosziId = ujKoszi($P);
+
+ // ez a rész nincs használatban igaziból, de megtartjuk
+ if (is_array($P['diakId'])) $ig[] = 'diák';
+ if (is_array($P['tanarId'])) $ig[] = 'tanár';
+ if (is_array($P['osztalyfonokId'])) $ig[] = 'osztályfőnök';
+ if (is_array($ig) && isset($kosziId)) {
+ $P['igazolo'] = implode(',',$ig);
+ if (is_array($P['diakId'])) kosziIgazolo($kosziId, $P['diakId'],'Diak');
+ if (is_array($P['tanarId'])) kosziIgazolo($kosziId, $P['tanarId'],'Tanar');
+ if (is_array($P['osztalyfonokId'])) kosziIgazolo($kosziId, $P['osztalyfonokId'],'Of');
+ }
+ }
+
+ if (is_numeric($ADAT['kosziEsemenyId'])) {
+ $ADAT['kosziPont'] = getKosziPont($ADAT['kosziEsemenyId']);
+ $ADAT['koszi'] = getKoszi($ADAT['kosziEsemenyId']);
+ }
+ $ADAT['kosziEsemenyek'] = getKosziEsemenyek();
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['osztalyok'] = getOsztalyok();
+ //$ADAT['diakok'] = getDiakok();
+ $ADAT['targyak'] = getTargyak();
+
+}
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin.php b/mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin.php
new file mode 100644
index 00000000..8dbc95c0
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/koszi/esemenyAdmin.php
@@ -0,0 +1,21 @@
+<?php
+
+ global $ADAT;
+
+ echo '<h2>'._ESEMENYMINTAK.'</h2>';
+ echo '<div class="kosziline"></div>';
+ putKosziEsemenyek($ADAT);
+
+ if (is_numeric($ADAT['kosziEsemenyId'])) {
+ putKosziPont($ADAT);
+
+ echo '<h2>'._ESEMENYEK_TANEVBEN.'</h2>';
+ echo '<div class="kosziline"></div>';
+ putUjKoszi($ADAT);
+ putKoszi($ADAT);
+ } else {
+ putUjKosziEsemeny($ADAT);
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/koszi/koszi-pre.php b/mayor-orig/www/policy/private/naplo/koszi/koszi-pre.php
new file mode 100644
index 00000000..8fc1264f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/koszi/koszi-pre.php
@@ -0,0 +1,49 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+if (!__DIAK) $_SESSION['alert'][] = 'page:insufficient_access';
+else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/koszi.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['kosziEsemenyTipusok'] = getEnumField('naplo_intezmeny', 'kosziEsemeny', 'kosziEsemenyTipus');
+ $ADAT['kosziPontTipusok'] = getEnumField('naplo_intezmeny', 'kosziPont', 'kosziPontTipus');
+ $ADAT['kosziIgazolok'] = getEnumField('naplo', 'koszi', 'kosziIgazolo');
+
+ $ADAT['kosziId'] = readVariable($_POST['kosziId'],'id');
+ $ADAT['kosziEsemenyId'] = readVariable($_POST['kosziEsemenyId'], 'id');
+
+ if ($action=='ujKosziDiak') {
+
+ $P['kosziId'] = readVariable($_POST['kosziId'],'id');
+ $P['kosziPontId'] = readVariable($_POST['kosziPontId'],'id') ;
+ $P['diakId'] = __USERDIAKID;
+
+ if (isset($P['kosziPontId']) && isset($P['kosziId']))
+ $result = ujKosziDiak($P);
+
+ }
+
+ $ADAT['koszi'] = getKosziLista(); // tanev
+ $ADAT['kosziDiakLista'] = getKosziDiakLista(__USERDIAKID);
+
+ if (is_numeric($ADAT['kosziId'])) {
+ $ADAT['kosziEsemenyId'] = getKosziEsemenyIdByKosziId($ADAT['kosziId']); // template Id - t lekérdezzük a valós esemény által. (béna az elnevezés!!!)
+ }
+
+ if (is_numeric($ADAT['kosziEsemenyId'])) {
+ $ADAT['kosziPont'] = getKosziPont($ADAT['kosziEsemenyId']);
+ }
+
+}
+
+/*
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['osztalyok'] = getOsztalyok();
+ $ADAT['diakok'] = getDiakok();
+*/
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/koszi/koszi.php b/mayor-orig/www/policy/private/naplo/koszi/koszi.php
new file mode 100644
index 00000000..01c7f1c7
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/koszi/koszi.php
@@ -0,0 +1,8 @@
+<?php
+
+ global $ADAT;
+
+ putKosziLista($ADAT);
+ putKosziDiakLista($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/koszi/kosziAdmin-pre.php b/mayor-orig/www/policy/private/naplo/koszi/kosziAdmin-pre.php
new file mode 100644
index 00000000..4ad1d537
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/koszi/kosziAdmin-pre.php
@@ -0,0 +1,93 @@
+<?php
+
+//$_SESSION['alert'][] = 'page:insufficient_access';
+
+
+if (_RIGHTS_OK !== true) die();
+if (!__DIAK && !__TANAR && !__VEZETOSEG && !__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+} else {
+
+/*
+ DESCIPTION
+
+ Az adminisztrátor (kosziIgazoloDiak, kosziIgazoloOf, kosziIgazoloTanar) jóváhagy, elutasítás-ra kattintva
+ egyesével nyilatkozik a jelentkezés jogosságáról. Esetleg szűrhető konkrét eseményre vagy eseménytípusra.
+
+*/
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/koszi.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ define('__KOSZIADMIN',memberOf(_USERACCOUNT,'kosziAdmin'));
+
+ $ADAT['kosziId'] = readVariable($_POST['kosziId'],'id');
+ if ($action=='igazol') {
+
+ $P['kosziId'] = readVariable($_POST['kosziId'],'id');
+ $P['diakId'] = readVariable($_POST['diakId'],'id');
+ $P['accept'] = readVariable($_POST['accept'],'bool');
+ $P['decline'] = readVariable($_POST['decline'],'bool');
+ $P['kosziPontId'] = readVariable($_POST['kosziPontId'],'id') ;
+
+ /* ellenőrizzük a jogosultságokat is először */
+ $kosziJovahagyhato = ( __KOSZIADMIN===true || ( __TANAR===true && kosziJovahagyhatoByTanarId($P['kosziId'],__USERTANARID)) || (__DIAK===true && kosziJovahagyhatoByDiakId($P['kosziId'],__USERDIAKID)) ) ? true : false;
+
+ if ($kosziJovahagyhato===true) {
+ if ($P['decline']===true) {
+ kosziElutasit($P['kosziId'],$P['diakId']);
+ } elseif ($P['accept']===true) {
+ kosziJovahagy($P['kosziId'],$P['diakId']);
+ }
+ } else {
+ $_SESSION['alert'][] = 'info:insufficient_access';
+ }
+ }
+
+
+ $ADAT['kosziIgazolando'] = getKosziDiakIgazolandoLista('',array('diakId'=>__USERDIAKID,'tanarId'=>__USERTANARID,'kosziadmin'=>__KOSZIADMIN));
+ $ADAT['diak'] = getDiakok(array('result'=>'assoc'));
+
+
+// --------------------------------------------
+ $ADAT['kosziEsemenyTipusok'] = getEnumField('naplo_intezmeny', 'kosziEsemeny', 'kosziEsemenyTipus');
+ $ADAT['kosziPontTipusok'] = getEnumField('naplo_intezmeny', 'kosziPont', 'kosziPontTipus');
+ $ADAT['kosziIgazolok'] = getEnumField('naplo', 'koszi', 'kosziIgazolo');
+
+ $ADAT['kosziId'] = readVariable($_POST['kosziId'],'id');
+ $ADAT['kosziEsemenyId'] = readVariable($_POST['kosziEsemenyId'], 'id');
+
+ if ($action=='ujKosziDiak') {
+
+ $P['kosziId'] = readVariable($_POST['kosziId'],'id');
+ $P['kosziPontId'] = readVariable($_POST['kosziPontId'],'id') ;
+ $P['diakId'] = __USERDIAKID;
+
+ if (isset($P['kosziPontId']) && isset($P['kosziId']))
+ $result = ujKosziDiak($P);
+
+ }
+
+ $ADAT['koszi'] = getKosziLista(); // tanev
+ $ADAT['kosziDiakLista'] = getKosziDiakLista(__USERDIAKID);
+
+ if (is_numeric($ADAT['kosziId'])) {
+ $ADAT['kosziEsemenyId'] = getKosziEsemenyIdByKosziId($ADAT['kosziId']); // template Id - t lekérdezzük a valós esemény által. (béna az elnevezés!!!)
+ }
+
+ if (is_numeric($ADAT['kosziEsemenyId'])) {
+ $ADAT['kosziPont'] = getKosziPont($ADAT['kosziEsemenyId']);
+ }
+
+
+/*
+ $ADAT['tanarok'] = getTanarok();
+ $ADAT['osztalyok'] = getOsztalyok();
+ $ADAT['diakok'] = getDiakok();
+*/
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/koszi/kosziAdmin.php b/mayor-orig/www/policy/private/naplo/koszi/kosziAdmin.php
new file mode 100644
index 00000000..8c0bbae1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/koszi/kosziAdmin.php
@@ -0,0 +1,10 @@
+<?php
+
+ global $ADAT;
+
+// putKosziLista($ADAT);
+// putKosziDiakLista($ADAT);
+
+ putKosziIgazolandoLista($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/naplo-pre.php b/mayor-orig/www/policy/private/naplo/naplo-pre.php
new file mode 100644
index 00000000..85dfa076
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/naplo-pre.php
@@ -0,0 +1,22 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+
+ $intezmeny = readVariable($_POST['intezmeny'], 'strictstring', defined('__INTEZMENY') ? __INTEZMENY : null);
+ if ($action == 'intezmenyValasztas') {
+ if (isset($intezmeny) && $intezmeny !== __INTEZMENY) {
+ if (updateSessionIntezmeny($intezmeny)) {
+ header('Location: '.location('index.php?page=naplo&sub=intezmeny&f=valtas'));
+ }
+ }
+ }
+
+ /* TOOL */
+ $TOOL['intezmenySelect'] = array('tipus' => 'sor', 'post' => array(), 'action' => 'intezmenyValasztas');
+
+ getToolParameters();
+ if (__TANAR) $beirasiAdatok['beiratlan'] = getBeirasiAdatok();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/naplo.php b/mayor-orig/www/policy/private/naplo/naplo.php
new file mode 100644
index 00000000..0d3fc41d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/naplo.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $beirasiAdatok;
+ // if (__TANAR) putBeirasiAdatok($beirasiAdatok);
+ // else putBeirasiAdatokDiak();
+
+ echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/hirnok/hirnok.css\')</script>';
+ echo ajaxUpdaterForm('hirnok','index.php?page=naplo&sub=hirnok&f=hirnok',array(),'post',true);
+
+ echo '<script type="text/javascript">includeCSS(\'/skin/classic/module-naplo/css/uzeno/uzeno.css\')</script>';
+ echo ajaxUpdaterForm('uzenoKozep','index.php?page=naplo&sub=uzeno&f=uzeno',array(),'post',true);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv-pre.php
new file mode 100644
index 00000000..d7b85953
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv-pre.php
@@ -0,0 +1,37 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ $ADAT['tanev'] = $tanev = readVariable($_GET['tanev'], 'numeric unsigned', 2015);
+
+ if (isset($tanev)) { // input ok
+
+ require_once('include/share/print/pdf.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ // Adatok lekérdezése
+ $ADAT['file'] = fileNameNormal('beiskolazasiTerv-'.$tanev.'-'.date('Y-m-d'));
+ $ADAT['tanarok'] = getTanarok(array('result'=>'assoc','összes'=>true));
+ $ADAT['tanulmanyiEgyseg'] = getBeiskolazasiTerv($tanev);
+
+ $printFile = beiskolazasNyomtatvanyKeszites($ADAT);
+ $printFile = fileNameNormal($printFile);
+
+ if ($printFile !== false && file_exists(_DOWNLOADDIR."/$policy/$page/$sub/$f/$printFile"))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir='.$page.'/'.$sub.'/'.$f.'&file='.$printFile));
+
+
+ }
+
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv.php b/mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv.php
new file mode 100644
index 00000000..bc70f948
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/beiskolazasiTerv.php
@@ -0,0 +1,6 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas-pre.php
new file mode 100644
index 00000000..0143e7e9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas-pre.php
@@ -0,0 +1,88 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/osztalyozo/stat.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/targy.php');
+
+ $ADAT['magatartasIdk'] = getMagatartas();
+ $ADAT['szorgalomIdk']= getSzorgalom();
+
+ // melyik szemeszter adatait nézzük
+ if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '') {
+ $szemeszterId = $_POST['szemeszterId'];
+ } elseif (!isset($_POST['szemeszterId'])) {
+ for ($i = 1; $i <= count($_TANEV['szemeszter']); $i++) {
+ if (
+ strtotime($_TANEV['szemeszter'][$i]['kezdesDt']) <= _TIME
+ && strtotime($_TANEV['szemeszter'][$i]['zarasDt']) >= _TIME
+ ) {
+ $_POST['szemeszterId'] = $szemeszterId = $_TANEV['szemeszter'][$i]['szemeszterId'];
+ break;
+ }
+ }
+ }
+ if (isset($_POST['sorrendNev']) && $_POST['sorrendNev'] != '') $ADAT['sorrendNev'] = $sorrendNev = $_POST['sorrendNev'];
+
+ if (isset($_POST['osztalyId']) && $_POST['osztalyId'] != '') { $osztalyId = $_POST['osztalyId']; }
+ elseif (__OSZTALYFONOK && !isset($_POST['osztalyId'])) { $osztalyId = $_OSZTALYA[0]; $_POST['osztalyId'] = $osztalyId; }
+
+ if (isset($szemeszterId)) {
+
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ define('__ZARO_SZEMESZTER', $ADAT['szemeszterAdat']['szemeszter'] == $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']);
+
+ $Osztalyok = getOsztalyok($ADAT['szemeszterAdat']['tanev']);
+ if (isset($osztalyId)) {
+
+ define('__OSZTALYFONOKE', (__OSZTALYFONOK === true && in_array($osztalyId, $_OSZTALYA)));
+
+ // intézmény adatok
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // osztály statisztikák
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+ // Az adott szemeszterben létezik-e az osztály
+ for ($i = 0; ($i < count($Osztalyok) && $Osztalyok[$i]['osztalyId'] != $osztalyId); $i++);
+ if ($i < count($Osztalyok)) {
+ $ADAT['diakok'] = getDiakok(array('osztalyId' => $osztalyId, 'tanev' => $ADAT['szemeszterAdat']['tanev']));
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) $ADAT['diakIds'][] = $ADAT['diakok'][$i]['diakId'];
+ $ADAT['targyak'] = getTargyakByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat'], $osztalyId, $sorrendNev);
+ //for ($i = 0; $i < count($ADAT['targyak']); $i++) $ADAT['targyAdat'][ $ADAT['targyak'][$i]['targyNev'] ] = $ADAT['targyak'][$i]['targyId'];
+ $ADAT['tanarok'] = getTanarokByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+ $ADAT['jegyek'] = getDiakZarojegyek($ADAT['diakIds'], $ADAT['szemeszterAdat']['tanev'], $ADAT['szemeszterAdat']['szemeszter']);
+ $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+
+ /* A pdfBizonyítvány ezeket használja: szemeszterAdat|intezmeny|diakok|jegyek|hianyzas|osztaly|targyAdat|targyak*/
+ $file = fileNameNormal('bizonyitvany-'.$ADAT['szemeszterAdat']['tanev'].'-'.$ADAT['szemeszterAdat']['szemeszter'].'-'.str_replace('.','',$ADAT['osztaly']['osztalyJel']));
+ if (pdfBizonyitvany($file, $ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/bizonyitvanyNyomtatas&file='.$file.'.pdf'));
+ } else {
+ unset($osztalyId);
+ }
+
+ }
+ }
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') ,'post' => array('sorrendNev', 'osztalyId'));
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'tanev' => $ADAT['szemeszterAdat']['tanev'], 'post' => array('szemeszterId', 'sorrendNev'));
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas.php b/mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/bizonyitvanyNyomtatas.php
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap-pre.php
new file mode 100644
index 00000000..3219920b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap-pre.php
@@ -0,0 +1,135 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__TITKARSAG && !__TANAR) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/str/tex.php');
+ require_once('include/share/print/pdf.php');
+
+ $fields = array(
+ 'anyaszuloId','anyanevElotag','anyacsaladinev','anyautonev','anyaszuleteskoricsaladinev','anyaszuleteskoriutonev','anyanem','anyacimOrszag',
+ 'anyacimIrsz','anyacimHelyseg','anyacimKozteruletNev','anyacimKozteruletJelleg','anyacimHazszam','anyacimEmelet','anyacimAjto','anyamobil',
+ 'anyatelefon','anyaemail','anyauserAccount','anyafoglalkozas','anyamunkahely','anyaszuletesiEv','anyaszuloNev','anyaStat','anyastatusz',
+
+ 'apaszuloId','apanevElotag','apacsaladinev','apautonev','apaszuleteskoricsaladinev','apaszuleteskoriutonev','apanem','apacimOrszag',
+ 'apacimIrsz','apacimHelyseg','apacimKozteruletNev','apacimKozteruletJelleg','apacimHazszam','apacimEmelet','apacimAjto','apamobil',
+ 'apatelefon','apaemail','apauserAccount','apafoglalkozas','apamunkahely','apaszuletesiEv','apaszuloNev','apaStat','apastatusz',
+
+ 'gondviseloszuloId','gondviselonevElotag','gondviselocsaladinev','gondviseloutonev','gondviseloszuleteskoricsaladinev','gondviseloszuleteskoriutonev','gondviselonem','gondviselocimOrszag',
+ 'gondviselocimIrsz','gondviselocimHelyseg','gondviselocimKozteruletNev','gondviselocimKozteruletJelleg','gondviselocimHazszam','gondviselocimEmelet','gondviselocimAjto','gondviselomobil',
+ 'gondviselotelefon','gondviseloemail','gondviselouserAccount','gondviselofoglalkozas','gondviselomunkahely','gondviseloszuletesiEv','gondviseloszuloNev','gondviseloStat','gondviselostatusz',
+
+ 'neveloszuloId','nevelonevElotag','nevelocsaladinev','neveloutonev','neveloszuleteskoricsaladinev','neveloszuleteskoriutonev','nevelonem','nevelocimOrszag',
+ 'nevelocimIrsz','nevelocimHelyseg','nevelocimKozteruletNev','nevelocimKozteruletJelleg','nevelocimHazszam','nevelocimEmelet','nevelocimAjto','nevelomobil',
+ 'nevelotelefon','neveloemail','nevelouserAccount','nevelofoglalkozas','nevelomunkahely','neveloszuletesiEv','neveloszuloNev','neveloStat','nevelostatusz',
+ );
+ $ADAT['base'] = array_fill_keys($fields, '');
+
+ $tanev = readVariable($_POST['tanev'], 'numeric unsigned', defined('__TANEV')?__TANEV:null );
+ if ($tanev != __TANEV) $TA = getTanevAdat($tanev);
+ else $TA = $_TANEV;
+ $diakId = readVariable($_POST['diakId'],'id');
+ $osztalyId = readVariable($_POST['osztalyId'],'id');
+
+ $ADAT['szocialisHelyzet'] = getSetField('naplo_intezmeny', 'diak', 'szocialisHelyzet');
+ $ADAT['penzugyiStatusz'] = getEnumField('naplo_intezmeny', 'diak', 'penzugyiStatusz');
+ $ADAT['fogyatekossag'] = getSetField('naplo_intezmeny', 'diak', 'fogyatekossag');
+ $ADAT['kozteruletJelleg'] = getEnumField('naplo_intezmeny', 'diak', 'lakhelyKozteruletJelleg');
+
+ if (isset($diakId)) {
+ $ADAT['base']['diak'] = array($diakId);
+ } elseif (isset($osztalyId)) {
+ $_DIAKOK = getDiakok(array('osztalyId'=>$osztalyId,'tanev'=>$tanev,'result'=>'csakId')); // Ennek a függvénynek a szerkezete nyáron megváltozott!
+ for ($i=0; $i<count($_DIAKOK); $i++)
+ $ADAT['base']['diak'][] = $_DIAKOK[$i]['diakId'];
+ }
+ list($ADAT['base']['ev'],$ADAT['base']['honap'],$ADAT['base']['nap']) = explode('-', date('Y-m-d'));
+ $intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+ foreach ($intezmeny as $attr => $value) $ADAT['base']['intezmeny'.$attr] = $value;
+ $Szulok = getSzulok();
+ $Osztalyok = getOsztalyok($tanev, array('result' => 'assoc'));
+ $ADAT['base']['hoNev'] = kisbetus($Honapok[ $ADAT['base']['honap'] - 1 ]);
+ $ADAT['file'] = 'diakAdatlap';
+
+ if (is_array($ADAT['base']['diak']))
+ for ($i=0; $i<count($ADAT['base']['diak']); $i++) {
+ $diakId = $ADAT['base']['diak'][$i];
+ $diakAdat = getDiakAdatById($diakId);
+
+ // Lekérdezzük a diák tényleges jogviszony adatait...
+ $DJ = getDiakJogviszony($diakId);
+ $diakAdat['jogviszony'] = array();
+ // Összes bejegyzés ("ciklussal" iratható ki)
+ foreach ($DJ as $key => $jAdat) $diakAdat['jogviszony'][] = array('dt' => dateToString($jAdat['dt']), 'statusz' => $jAdat['statusz']);
+ // Max. 5 bejegyzés (külön-külön, fix 10 db mező)
+ for ($j = 0; $j < 5; $j++) $diakAdat['jvDt'.$j] = $diakAdat['jvStat'.$j] = '';
+ foreach ($DJ as $key => $jAdat) {
+ $diakAdat['jvDt'.$key] = dateToString($jAdat['dt']);
+ $diakAdat['jvStat'.$key] = $jAdat['statusz'];
+ }
+ foreach ($diakAdat as $attr => $value) if (!is_array($value)) $diakAdat[$attr] = LaTeXSpecialChars($value);
+ list($diakAdat['szuletesiEv'],$diakAdat['szuletesiHonap'],$diakAdat['szuletesiNap']) = explode('-', $diakAdat['szuletesiIdo']);
+ $diakAdat['szuletesiHoNev'] = kisbetus($Honapok[ $diakAdat['szuletesiHonap'] - 1 ]);
+ list($diakAdat['jogviszonyKEv'],$diakAdat['jogviszonyKHonap'],$diakAdat['jogviszonyKNap']) = explode('-', $diakAdat['jogviszonyKezdete']);
+ $diakAdat['jogviszonyKHoNev'] = kisbetus($Honapok[ $diakAdat['jogviszonyKHonap'] - 1 ]);
+ list($diakAdat['jogviszonyVEv'],$diakAdat['jogviszonyVHonap'],$diakAdat['jogviszonyVNap']) = explode('-', $diakAdat['jogviszonyVege']);
+ $diakAdat['jogviszonyVHoNev'] = kisbetus($Honapok[ $diakAdat['jogviszonyVHonap'] - 1 ]);
+ $diakAdat['torvenyesKepviselo'] = str_replace(',', ', ', $diakAdat['torvenyesKepviselo']);
+ $diakAdat['anyaNev'] = $Szulok[ $diakAdat['anyaId'] ]['szuleteskoriCsaladinev']?
+ trim(implode(' ', array(
+ $Szulok[ $diakAdat['anyaId'] ]['szuleteskoriNevElotag'],
+ $Szulok[ $diakAdat['anyaId'] ]['szuleteskoriCsaladinev'],
+ $Szulok[ $diakAdat['anyaId'] ]['szuleteskoriUtonev']
+ ))):$Szulok[ $diakAdat['anyaId'] ]['szuloNev'];
+ foreach (array('anya','apa','gondviselo','nevelo') as $szt) { // szt=szuloTipus
+ $szulo = $Szulok[ $diakAdat[$szt.'Id'] ];
+ if (is_array($szulo)) {
+ foreach ($szulo as $attr => $value) $diakAdat[$szt.$attr] = LaTeXSpecialChars($value);
+ if ($diakAdat[$szt.'statusz']=='elhunyt') $diakAdat[$szt.'Stat'] = '\dag';
+ elseif ($diakAdat[$szt.'statusz']=='házas') $diakAdat[$szt.'Stat'] = '$\infty$';
+ elseif ($diakAdat[$szt.'statusz']=='egyedülálló') $diakAdat[$szt.'Stat'] = '$\odot$';
+ elseif ($diakAdat[$szt.'statusz']=='hajadon / nőtlen') $diakAdat[$szt.'Stat'] = '$\oslash$';
+ elseif ($diakAdat[$szt.'statusz']=='elvált') $diakAdat[$szt.'Stat'] = '$\triangleleft\ominus\triangleright$';
+ elseif ($diakAdat[$szt.'statusz']=='özvegy') $diakAdat[$szt.'Stat'] = '$\oplus$';
+ elseif ($diakAdat[$szt.'statusz']=='élettársi kapcsolatban él') $diakAdat[$szt.'Stat'] = '$\circ\circ$';
+ else $diakAdat[$szt.'Stat'] = $diakAdat[$szt.'statusz'].'';
+ }
+ }
+ $diakAdat['fogyatekossag'] = str_replace(',',', ',$diakAdat['fogyatekossag']);
+ $diakAdat['szocialisHelyzet'] = str_replace(',',', ',$diakAdat['szocialisHelyzet']);
+ $diakAdat['osztaly'] = getDiakOsztalya($diakId, array('tanev'=>$tanev));
+ $diakAdat['osztalyJel'] = $Osztalyok[ $diakAdat['osztaly'][0]['osztalyId'] ]['kezdoTanev'].'-'.
+ ($Osztalyok[ $diakAdat['osztaly'][0]['osztalyId'] ]['vegzoTanev']+1).'/'.nagybetus($Osztalyok[ $diakAdat['osztaly'][0]['osztalyId'] ]['jel']);
+
+ $ADAT['diak'][ $diakId ] = $diakAdat;
+
+ }
+ if (count($ADAT['diak']) > 0) {
+ $printFile = fileNameNormal(nyomtatvanyKeszites($ADAT));
+ if ($printFile !== false && file_exists(_DOWNLOADDIR."/$policy/$page/$sub/$f/$printFile"))
+ header('Location: '.location("index.php?page=session&f=download&download=true&dir=$page/$sub/$f/&file=$printFile"));
+ }
+
+
+ // ToolBar
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'action' => 'tanevValasztas', 'post' => array('tanev','diakId'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'tanev' => $tanev, 'post' => array('tanev'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'tanev'=>$tanev, 'osztalyId' => $osztalyId,
+ 'statusz' => array('jogviszonyban van','vendégtanuló','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva'),
+ 'post' => array('tanev','osztalyId')
+ );
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap.php b/mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap.php
new file mode 100644
index 00000000..05d4467e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/diakAdatlap.php
@@ -0,0 +1,8 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes-pre.php
new file mode 100644
index 00000000..77912c56
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes-pre.php
@@ -0,0 +1,71 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+
+ global $_TANEV, $Honapok;
+
+ $ADAT['leadasiHatarido'] = '2008. június 9.';
+ list($ev, $ho, $nap) = explode('-', readVariable($_POST['leadasiHatarido'], 'date'));
+ $ADAT['leadasiHatarido'] = "$ev. ".kisbetus($Honapok[$ho-1])." $nap.";
+ $ADAT['osztalyIds'] = readVariable($_POST['osztalyId'], 'numeric unsigned');
+ if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '') {
+ $szemeszterId = $_POST['szemeszterId'];
+ } else {
+ $_felev = getFelevByDt(date('Y-m-d'));
+ $szemeszterId = getKovetkezoSzemeszterId($_TANEV['szemeszter'][$_felev]['tanev'],$_TANEV['szemeszter'][$_felev]['szemeszter']);
+ }
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ $ADAT['tanev'] = $tanev = $ADAT['szemeszterAdat']['tanev'];
+ $ADAT['szemeszterId'] = $szemeszterId;
+ //igaziból nem kéne blokkba szervezni... var_dump($ADAT['szemeszterAdat']['statusz']=='aktív');
+ // intézmény adatok
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+// $refDt = ($ADAT['szemeszterAdat']['kezdesDt']);
+ $ADAT['tankorBlokkok'] = getTankorBlokkok($tanev);
+ $ADAT['valasztott'] = getValasztottTankorok($tanev, $ADAT['szemeszterAdat']['szemeszter'], $ADAT['osztalyIds']);
+ $ADAT['diakIds'] = array();
+ if (is_array($ADAT['valasztott']['felvett'])) foreach ($ADAT['valasztott']['felvett'] as $diakId => $tankorIds) {
+ $ADAT['diakIds'][] = $diakId;
+ }
+ $ADAT['diakAdat'] = getDiakokById($ADAT['diakIds']);
+ $ADAT['diakOsztaly'] = getDiakokOsztalyai($ADAT['diakIds'], array('tanev' => $tanev));
+ $ADAT['osztalyok'] = getOsztalyok($tanev, array('result'=>'assoc'));
+
+ // A TeX forrás generálása - A5-ös méretben
+ if ($action == 'pdfGeneralas') {
+ $TeX = texLevelGeneralas($ADAT);
+ if (pdfLaTeX($TeX, 'faktJelentkezes-A5-'.date('Y-m-d'))) {
+
+ // Az A5-ös lapok A4-es lapra helyezése
+ $TeX = '\documentclass[a4paper,landscape]{article}'."\n";
+ $TeX .= '\usepackage[final]{pdfpages}'."\n";
+ $TeX .= '\begin{document}'."\n";
+ $TeX .= '\includepdf[nup=2x1, pages={-}]{faktJelentkezes-A5-'.date('Y-m-d').'.pdf}'."\n";
+ $TeX .= '\end{document}'."\n";
+ $fileName = fileNameNormal('faktJelentkezes-A4-'.date('Y-m-d'));
+ if (pdfLaTeX($TeX, $fileName))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/diakTankorJelentkezes&file='.$fileName.'.pdf'));
+ }
+ }
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName'=>'szemeszterId', 'post'=>array('diakId'),
+ 'tanev'=>$tanev);
+
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes.php b/mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes.php
new file mode 100644
index 00000000..f57afdc5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/diakTankorJelentkezes.php
@@ -0,0 +1,12 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+global $ADAT;
+
+ putNyomtatasiBeallitasok($ADAT);
+//echo '<pre>';
+//var_dump($ADAT['osztalyok']);
+//echo '</pre>';
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/ertesito-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/ertesito-pre.php
new file mode 100644
index 00000000..53e644f1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/ertesito-pre.php
@@ -0,0 +1,101 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/osztalyozo/stat.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/targy.php');
+
+ $ADAT['magatartasIds'] = getMagatartas();
+ $ADAT['szorgalomIds']= getSzorgalom();
+
+ // melyik szemeszter adatait nézzük
+ if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '') {
+ $szemeszterId = $_POST['szemeszterId'];
+ } elseif (!isset($_POST['szemeszterId'])) {
+ for ($i = 1; $i <= count($_TANEV['szemeszter']); $i++) {
+ if (
+ strtotime($_TANEV['szemeszter'][$i]['kezdesDt']) <= _TIME
+ && strtotime($_TANEV['szemeszter'][$i]['zarasDt']) >= _TIME
+ ) {
+ $_POST['szemeszterId'] = $szemeszterId = $_TANEV['szemeszter'][$i]['szemeszterId'];
+ break;
+ }
+ }
+ }
+ $ADAT['sorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', 'bizonyítvány', array('napló','bizonyítvány','anyakönyv','ellenőrző','egyedi'));
+
+ if (isset($_POST['osztalyId']) && $_POST['osztalyId'] != '') { $osztalyId = $_POST['osztalyId']; }
+ elseif (__OSZTALYFONOK && !isset($_POST['osztalyId'])) { $osztalyId = $_OSZTALYA[0]; $_POST['osztalyId'] = $osztalyId; }
+
+ if (isset($szemeszterId)) {
+
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ define('__ZARO_SZEMESZTER', $ADAT['szemeszterAdat']['szemeszter'] == $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']);
+
+ $Osztalyok = getOsztalyok($ADAT['szemeszterAdat']['tanev']);
+ if (isset($osztalyId)) {
+
+ define('__OSZTALYFONOKE', (__OSZTALYFONOK === true && in_array($osztalyId, $_OSZTALYA)));
+ $ADAT['evfolyamJel'] = getEvfolyamJel($osztalyId, $ADAT['szemeszterAdat']['tanev']); // TODO: ellenőrzés: evfolyam --> evfolyamJel
+
+ // intézmény adatok
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // osztály statisztikák
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+ // Az adott szemeszterben létezik-e az osztály
+ for ($i = 0; ($i < count($Osztalyok) && $Osztalyok[$i]['osztalyId'] != $osztalyId); $i++);
+ if ($i < count($Osztalyok)) {
+ $ADAT['diakok'] = getDiakok(array(
+ 'result' => 'assoc', 'osztalyId' => $osztalyId, 'tanev' => $ADAT['szemeszterAdat']['tanev'],
+ 'tolDt' => $ADAT['szemeszterAdat']['zarasDt'], 'igDt' => $ADAT['szemeszterAdat']['zarasDt'])
+ );
+ $ADAT['diakIds'] = array_keys($ADAT['diakok']);
+ $ADAT['targyak'] = getTargyakByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat'], $osztalyId, $sorrendNev);
+ $ADAT['jegyek'] = getDiakZarojegyekByEvfolyamJel($ADAT['diakIds'], $ADAT['evfolyamJel'], $ADAT['szemeszterAdat'], array('felevivel'=>true)); // TODO: ellenőrzés
+ $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+
+ for ($i=0; $i<count($ADAT['diakIds']); $i++) {
+ $diakId = intval($ADAT['diakIds'][$i]);
+ $hianyzasAdat = $ADAT['hianyzas'][$diakId];
+ $ADAT['hianyzas'][$diakId]['igazolatlan']
+ = $hianyzasAdat['igazolatlan']
+ = floor($hianyzasAdat['kesesPercOsszeg']/45)+intval($hianyzasAdat['igazolatlan']);
+ }
+
+ /* A pdfBizonyítvány ezeket használja: szemeszterAdat|intezmeny|diakok|jegyek|hianyzas|osztaly|targyAdat|targyak*/
+ $ADAT['file'] = fileNameNormal('ertesito-'.$ADAT['szemeszterAdat']['tanev'].'-'.$ADAT['szemeszterAdat']['szemeszter'].'-'.str_replace('.','',$ADAT['osztaly']['osztalyJel']));
+ if ($fileName = pdfErtesito($ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/ertesito&file='.$fileName));
+ } else {
+ unset($osztalyId);
+ }
+
+ }
+ }
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') ,'post' => array('sorrendNev', 'osztalyId'));
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'tanev' => $ADAT['szemeszterAdat']['tanev'], 'post' => array('szemeszterId', 'sorrendNev'));
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId'));
+
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/ertesito.php b/mayor-orig/www/policy/private/naplo/nyomtatas/ertesito.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/ertesito.php
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo-pre.php
new file mode 100644
index 00000000..1943dc92
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo-pre.php
@@ -0,0 +1,212 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+} else {
+
+ $ADAT['tanev'] = $tanev = __TANEV;
+ $ADAT['tanevAdat'] = $_TANEV;
+ $tolDt = $ADAT['tanevAdat']['kezdesDt'];
+ $igDt = $ADAT['tanevAdat']['zarasDt'];
+ // Mert hétfőtől, vagy csütörtöktől kezdődik a nyomtatott napló!!!
+//$tolDt='2011-11-31';
+ if (date('w',strtotime($tolDt)) > 4 || date('w',strtotime($tolDt))==0) $tolDt=date('Y-m-d',strtotime('LAST Thursday',strtotime($tolDt)));
+ elseif (date('w',strtotime($tolDt))!=1) $tolDt=date('Y-m-d',strtotime('LAST MONDAY',strtotime($tolDt)));
+
+ if (isset($_POST['osztalyId']) && $_POST['osztalyId'] != '') $osztalyId = $_POST['osztalyId'];
+
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ if (isset($osztalyId)) {
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/nyomtatas/tex.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/str/hyphen.php');
+ require_once('include/share/str/tex.php');
+
+
+ $ADAT['intezmenyAdat'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // Tanárok adatai
+ $ADAT['tanarok'] = getTanarok($Param = array('tanev' => $tanev, 'result' => 'assoc'));
+ // osztály adatainak lekérdezése
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId);
+ $ADAT['munkatervId'] = getMunkatervByOsztalyId($osztalyId);
+ $ADAT['nevsor'] = getDiakok(array(
+ 'osztalyId' => $osztalyId, 'tanev' => $tanev,
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ ));
+ $ADAT['tankorok'] = getTankorByOsztalyId($osztalyId, $ADAT['tanev'], array('csakId' => false, 'tanarral' => true));
+ $ADAT['naploTankor'] = getNaploTankorei($osztalyId);
+ $ADAT['tankorNaploja'] = getTankorokNaploja();
+ $ADAT['napok'] = reindex(getTanevNapjai( getMunkatervByOsztalyId($osztalyId) ), array('dt'));
+ // osztályok lekérdezése
+ $ADAT['osztalyId'] = $osztalyId;
+ $ADAT['osztalyok'] = getOsztalyok();
+ $ADAT['osztalyJele'] = array();
+ for ($i =0; $i < count($ADAT['osztalyok']); $i++) {
+ $ADAT['osztalyJele'][ $ADAT['osztalyok'][$i]['osztalyId'] ] = $ADAT['osztalyok'][$i]['osztalyJel'];
+ if ($osztalyId == $ADAT['osztalyok'][$i]['osztalyId']) {
+ $ADAT['osztalyJel'] = $ADAT['osztalyok'][$i]['osztalyJel'];
+ $ADAT['ofo'] = $ADAT['osztalyok'][$i]['osztalyfonokNev'];
+ }
+ }
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $_tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $_osztalyId = $ADAT['tankorNaploja'][$_tankorId];
+ if ($_osztalyId!==null) {
+ $targyNev .= ' ('.$ADAT['osztalyJele'][$_osztalyId].')';
+ $tmp = $ADAT['tankorok'][$i]; $tmp['tanarok'] = array();
+ foreach ($ADAT['tankorok'][$i]['tanarok'] as $tanarAdat) $tmp['tanarok'][] = $tanarAdat['tanarNev'];
+ $ADAT['tankorokNaploElejere'][] = $tmp;
+ }
+ }
+//-----------------------------------------------------------------------/
+ $ret = getTargyakByOsztalyId($osztalyId, $tanev);
+ $ADAT['magatartasId'] = getMagatartas(array('result' => 'value'));
+ $ADAT['szorgalomId'] = getSzorgalom(array('result' => 'value'));
+ $ADAT['ofoTargyId'] = getOsztalyfonoki(array('result' => 'value'));
+//echo '<pre>'; var_dump($ADAT['ofoTargyId']); echo '</pre>';
+ for ($i = 0; $i < count($ret); $i++) {
+ $ADAT['targyAdat'][ $ret[$i]['targyId'] ] = $ret[$i];
+ $szavak = explode(' ', ($huHyphen->hyphen(trim($ret[$i]['targyNev']))));
+ $ADAT['targyAdat'][ $ret[$i]['targyId'] ]['tordeltTargyNev'] = tordel($szavak);
+ $ADAT['targyAdat'][ $ret[$i]['targyId'] ]['tankor'] = array();
+ //if ($ret[$i]['targyNev'] == 'osztályfőnöki') $ADAT['ofoTargyId'] = $ret[$i]['targyId'];
+ }
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $ADAT['targyAdat'][ $ADAT['tankorok'][$i]['targyId'] ]['db']++;
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $targyId = $ADAT['tankorok'][$i]['targyId'];
+ if (is_array($ADAT['naploTankor']) && in_array($tankorId, $ADAT['naploTankor'])) {
+// $ADAT['naploTargyak'][$targyId][] = $tankorId;
+ $ADAT['targyAdat'][$targyId]['tankor'][] = $tankorId;
+ $ADAT['tankorTargy'][$tankorId] = $targyId;
+ if ($ADAT['tankorok'][$i]['targyId'] == $ADAT['ofoTargyId']) $ADAT['ofoTankorId'] = $tankorId;
+// else $ADAT['oszlopTankore'][] = $tankorId;
+ }
+ }
+ $ADAT['targyFejlec'] = $ADAT['oszlopTankore'] = array(); $db = 0;
+ $ADAT['helyek'] = array(6,15,15,15); $Foglalt = array(0,0,0,0); $lap = 0;
+ foreach ($ADAT['targyAdat'] as $targyId => $tAdat) {
+
+ if (
+ count($tAdat['tankor']) == 0
+ || $targyId == $ADAT['ofoTargyId']
+ || $targyId == $ADAT['magatartasId']
+ || $targyId == $ADAT['szorgalomId']
+ ) continue;
+
+ $tDb = count($tAdat['tankor']);
+ $tmp = array('targyId' => $targyId, 'sorsz' => 1);
+ while ($tDb > 0) {
+ $szabad = $ADAT['helyek'][$lap] - $Foglalt[$lap];
+
+ $db = min($szabad, $tDb);
+ $tmp['db'] = $db;
+ $ADAT['targyFejlec'][$lap][] = $tmp;
+ $Foglalt[$lap] += $db;
+ $tmp['sorsz'] += $db;
+ $tDb -= $db;
+ if ($ADAT['helyek'][$lap] == $Foglalt[$lap]) $lap++;
+ }
+ // Ha 21-nél több tankör van és nem jön ki pont 21-re a tárgy határ
+/*
+ if ($db < 21 && $db + count($tAdat['tankor']) > 21) while ($db < 21) {
+ $ADAT['oszlopTankore'][] = '';
+ $db++;
+ }
+*/
+ for ($i = 0; $i < count($tAdat['tankor']); $i++) {
+ $tankorId = $tAdat['tankor'][$i];
+ if ($tankorId != $ADAT['ofoTankorId']) {
+ $ADAT['oszlopTankore'][] = $tankorId;
+ $db++;
+ }
+ }
+ }
+ // Tanuló-tankör mátrix
+ $ADAT['diakIds'] = array();
+ for ($i = 0; $i < count($ADAT['nevsor']); $i++) {
+ $ADAT['diakTankor'][ $ADAT['nevsor'][$i]['diakId'] ] = getTankorByDiakId(
+ $ADAT['nevsor'][$i]['diakId'], $tanev,
+ array('csakId' => true, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'', 'jelenlet'=>'' )
+ );
+ $ADAT['diakIds'][] = $ADAT['nevsor'][$i]['diakId'];
+ $ADAT['diakAdat'][ $ADAT['nevsor'][$i]['diakId'] ] = $ADAT['nevsor'][$i];
+ }
+ // Órák lekérdezése
+ getNaploOrak($ADAT);
+ getNaploHianyzasok($ADAT);
+
+ // Melyik tárgyhoz mely (és hány) tankörök tartoznak
+
+ $filename = str_replace(' ','','Haladasi_'.date('Ymd').'_'.$ADAT['osztalyAdat']['osztalyJel']);
+
+ $content = ''.
+
+ putTeXHaladasiOldalbeallitas().
+
+ putTeXElolap($ADAT).
+ putTeXLapdobas().
+ putTeXDefineFootline($ADAT['osztalyJel'], $ADAT['ofo']).
+ putTeXTanuloTankorMatriX($ADAT).
+ putTeXLapdobas().
+
+ putTeXUresLap().
+
+ putTeXAllandoFejlec().
+ putTeXOrarendMacro(); // putTechPage1 és putTechPage3-ban kell majd paraméteresen meghívni
+
+ $dt = $tolDt;
+ while(strtotime($dt)<=strtotime($igDt)) {
+ $ADAT['tanitasiNapOk'] = array();
+ $vanOra = false; // Ha a három nap egyikén sincs óra akkor ne rakjuk ki ezeket a napokat...
+ for ($i = 0; $i < 3; $i++) {
+ $ADAT['tanitasiNapOk'][$i] = date('Y-m-d',strtotime('+'.$i.' days',strtotime($dt)));
+ if (count($ADAT['orak'][ $ADAT['tanitasiNapOk'][$i] ])) $vanOra = true;
+ }
+ if ($vanOra) {
+ $content .=
+ putTeXPage1($ADAT).
+ putTeXLapdobas().
+ putTeXPage2($ADAT).
+ putTeXLapdobas().
+ '';
+
+ if (count($ADAT['oszlopTankore']) > 21)
+ $content .=
+ putTeXPage34($ADAT).
+ putTeXLapdobas();
+ }
+ $dt = date('Y-m-d',strtotime('+3 days',strtotime($dt)));
+ if (date('w', strtotime($dt)) == 0) $dt = date('Y-m-d', strtotime('+1 day', strtotime($dt))); // == vasárnap...
+ }
+
+
+ $content .= endTeXDocument();
+
+ $filename = fileNameNormal($filename);
+ if (!defined('_TEX_ERROR') && generatePDF($filename, _DOWNLOADDIR.'/private/nyomtatas/haladasi', $content, __NYOMTATAS_FUZETKENT === true)) {
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=nyomtatas/haladasi&file='.$filename.'.pdf'));
+ }
+
+ }
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array());
+ getToolParameters();
+
+}
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php b/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php
new file mode 100644
index 00000000..0807e2d6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/haladasinaplo.php
@@ -0,0 +1,6 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php
new file mode 100644
index 00000000..ba48545e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo-pre.php
@@ -0,0 +1,39 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/share/str/tex.php');
+
+ $tolDt = readVariable($_POST['tolDt'], 'datetime');
+ $igDt = readVariable($_POST['igDt'], 'datetime');
+ if (defined('__TANEV')) {
+ if (!isset($tolDt)) $tolDt = $_TANEV['kezdesDt'];
+ if (!isset($igDt)) $igDt = date('Y-m-d');
+ initTolIgDt(__TANEV, $tolDt, $igDt);
+ }
+
+ if ($action == 'naploGeneralas') {
+
+ $filename = fileNameNormal('helyettesitesiNaplo-'.date('Y-m-d'));
+ if (naploGeneralas($filename, $tolDt, $igDt))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/helyettesitesinaplo&file='.$filename.'.pdf'));
+
+ }
+
+ $TOOL['datumTolIgSelect'] = array('tipus' => 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'igDt',
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'hanyNaponta' => 1, 'post'=>array('osztalyId', 'diakId', 'targySorrend')
+ );
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php b/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php
new file mode 100644
index 00000000..404b92b3
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/helyettesitesinaplo.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $tolDt, $igDt;
+
+ putDownloadForm($tolDt, $igDt);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php
new file mode 100644
index 00000000..f22d3af1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas-pre.php
@@ -0,0 +1,6 @@
+<?php
+
+ if (!__TITKARSAG) header('Location: '.location('index.php?page=naplo&sub=nyomtatas&f=tankorNaplohozRendeles'));
+ else header('Location: '.location('index.php?page=naplo&sub=nyomtatas&f=ertesito'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas.php b/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/nyomtatas.php
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php
new file mode 100644
index 00000000..2a6515dc
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo-pre.php
@@ -0,0 +1,157 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+} else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/nyomtatas/tex.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/str/tex.php');
+
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+
+ if (isset($osztalyId)) {
+
+ require_once('include/share/str/hyphen.php');
+
+ // Adatok lekérése
+
+ /* Az évfolyam meghatározása, osztály alapján */
+ $evfolyamJel = getEvfolyamJel($osztalyId); //TODO: ellenőrzés (evfolyam-->evfolyamJel)
+ // tanítási napok száma az aláíró ív záradékához
+ $NSz = getNapokSzama(array('osztalyId' => $osztalyId));
+ $ADAT['tanitasiNapokSzama'] = $NSz['tanítási nap']+$NSz['speciális tanítási nap'];
+
+ if ($evfolyamJel=='') die('VÉGZETES HIBA o-pre.php');
+
+ /* Tanárok kigyűjtése */
+ $_TANKOROK = getOsztalyTankorei($osztalyId);
+ $_TANAROK = array();
+ for ($i=0; $i<count($_TANKOROK); $i++) {
+ $_tankorId = $_TANKOROK[$i]['tankorId'];
+ $_res = getTankorTanaraiByInterval($_tankorId, array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result' => 'nevsor'));
+ for ($j=0; $j<count($_res); $j++) {
+ if (!in_array($_res[$j]['tanarNev'],$_TANAROK)) $_TANAROK[] = $_res[$j]['tanarNev'];
+ }
+ }
+ reset($_TANAROK);
+ sort($_TANAROK);
+ $ADAT['tanarok'] = $_TANAROK;
+ unset($_TANAROK);
+// $ADAT['diakTankorei'] = array();
+
+ // == Osztály adatai == //
+ $ADAT['honapok'] = array();
+ for (
+ $dt = date('Y-m-01', strtotime($_TANEV['kezdesDt']));
+ strtotime($dt) <= strtotime($_TANEV['zarasDt']);
+ $dt = date('Y-m-01', strtotime('+1 month', strtotime($dt)))
+ ) $ADAT['honapok'][] = substr($dt, 5, 2);
+ if (count($ADAT['honapok']) != 10 && __OSZTALYOZONAPLO_JEGYEK_FELEVENTE !== true) $_SESSION['alert'][] = 'message:wrong_data:hónapok száma '.count($ADAT['honapok']).' != 10';
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId);
+ $ADAT['targyak'] = getTanevTargySorByOsztalyId($osztalyId, __TANEV, 'napló');
+ // Feltételezzük, hogy csak egyféle magatartás, illetve szorgalom tárgy lehet...
+ list($ADAT['targyak']['magatartasId']) = getMagatartas();
+ list($ADAT['targyak']['szorgalomId']) = getSzorgalom();
+ for ($i = 0; $i < count($ADAT['targyak']); $i++) {
+ if (isset($ADAT['targyak'][$i]['targyNev']))
+ $ADAT['targyak'][$i]['elvalasztott'] = str_replace(
+ array(' -', '--', '-', '~'),
+ array(' ', '~', '\-', '-'),
+ $huHyphen->hyphen(trim($ADAT['targyak'][$i]['targyNev']))
+ );
+ }
+
+ $ADAT['diakAdat'] = $ADAT['diakIds'] = array();
+ // diákok lekérdezése jogviszony és osztály tagság adatokkal
+ $diakByOsztaly = getDiakokByOsztaly($osztalyId, array('orderBy' => 'naploSorszam', 'tanev' => $tanev, 'statusz' => array('jogviszonyban van','magántanuló','vendégtanuló') ));
+ $ADAT['diakIds'] = array_values(
+ array_diff(array_keys($diakByOsztaly), array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva','felvételt nyert'))
+ );
+ $ret = getDiakAdatById($ADAT['diakIds']);
+ for ($i = 0; $i < count($ret); $i++) {
+ $ADAT['diakAdat'][ $ret[$i]['diakId'] ] = array_merge($ret[$i], $diakByOsztaly[ $ret[$i]['diakId'] ]);
+ $ADAT['diakTargy'][ $ret[$i]['diakId'] ] = getTargyakByDiakId($ret[$i]['diakId'],
+ array('result'=>'idonly', 'osztatlyId' => $osztalyId, 'csakOratervi'=>true, 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'], 'filter' => 'kovetelmeny')
+ ); //TODO getTargyakByDiakId() itt a visszatérési érték változott, evfolyam, evfolyamJel is van! ellenőrizni kell!
+//echo '<pre>'; var_dump($ret2); echo '</pre>';
+
+ $diakKiDts[ $ret[$i]['diakId'] ] = $diakByOsztaly[ $ret[$i]['diakId'] ]['osztalyDiak'][0]['kiDt']; // mikor lépett ki a diák az osztályból
+ }
+ unset($ret);
+ unset($diakByOsztaly);
+
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+ $ADAT['hianyzas'][$szemeszter] = getDiakHianyzasOsszesites($ADAT['diakIds'], $szAdat, $diakKiDts);
+ // Az egész szorgalmi időszak alatt szerzett osztályzatokra szükség van! (szükség van?)
+ $szAdat['zarasDt'] = $_TANEV['zarasDt'];
+ $szAdat['kezdesDt'] = $_TANEV['kezdesDt'];
+ $ADAT['zaroJegy'][$szemeszter] = getDiakZarojegyekByEvfolyamJel($ADAT['diakIds'], $evfolyamJel, $szAdat); //TODO: ellenőrizni, evfolyam-->evfolyamJel!!!
+ }
+ $ADAT['jegyek'] = getDiakJegyek($ADAT);
+ $ADAT['szulok'] = getSzulok();
+ // TeX generálás
+ $filename = fileNameNormal('Osztalyozo_'.date('Ymd').'_'.$ADAT['osztalyAdat']['osztalyJel']);
+ $lapDobasok = 0;
+ $content =
+
+ putTeXOsztalyozoOldalbeallitas().
+// putTeXOldalbeallitasok().
+// putTeXMakrok().
+
+ putTeXDefineFootline($ADAT['osztalyAdat']['osztalyJel'], $ADAT['osztalyAdat']['osztalyfonokNev']);
+
+ // Tanulónként egy-egy lap....
+ for ($i = 0; $i < count($ADAT['diakIds']); $i++) {
+ $sorsz = $i+1; // Napló sorszám
+ $diakId = $ADAT['diakIds'][$i];
+ $cn = $ADAT['diakAdat'][$diakId]['diakNev'];
+ $birthlocality = $ADAT['diakAdat'][$diakId]['szuletesiHely'];
+ $birthtimestamp = $ADAT['diakAdat'][$diakId]['szuletesiIdo'];
+ //$content .= putTeXOsztalyozoFejlec($sorsz,$cn,$birthlocality,$birthtimestamp);
+ //$content .= putTeXOsztalyozoJegyek($diakId, $ADAT);
+ //$content .= putTeXOsztalyozoAdatok($diakId, $ADAT);
+ //$content .= putTeXLapdobas();
+ //$lapDobasok++;
+ $iGlobal = 0; // Ha nem férne ki 20 helyre a tárgyak listája...
+ while ($iGlobal < count($ADAT['targyak'])) {
+ $content .= putTeXOsztalyozoFejlec($sorsz,$cn,$birthlocality,$birthtimestamp);
+ $content .= putTeXOsztalyozoJegyek($diakId, $ADAT, $iGlobal);
+ $content .= putTeXOsztalyozoAdatok($diakId, $ADAT);
+ $content .= putTeXLapdobas();
+ $lapDobasok++;
+ }
+ }
+
+ $content .= putTeXTanarLista($ADAT, $lapDobasok).putTeXLapdobas();
+ $content .= endTeXDocument();
+
+ $filename = str_replace('/','_',$filename);
+ if (generatePDF($filename, _DOWNLOADDIR.'/private/nyomtatas/osztalyozo', $content, __NYOMTATAS_FUZETKENT === true)) {
+ if (count($_SESSION['alert']) == 0)
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=nyomtatas/osztalyozo&file='.$filename.'.pdf'));
+ else
+ $ADAT['letoltes'] = 'index.php?page=session&f=download&download=true&dir=nyomtatas/osztalyozo&file='.$filename.'.pdf';
+ }
+
+ }
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array());
+ getToolParameters();
+
+}
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php b/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php
new file mode 100644
index 00000000..864c5486
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/osztalyozonaplo.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['letoltes'])) putLetoltesLink($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php
new file mode 100644
index 00000000..72e34994
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv-pre.php
@@ -0,0 +1,105 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/sni.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ // Paraméterek
+ $diakId = readVariable($_POST['diakId'], 'id');
+ if (isset($diakId)) $ADAT['diakIds'] = array($diakId);
+ $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'], 'id');
+ if (isset($osztalyId)) {
+ // Az osztály tagjai
+ $ADAT['diakIds'] = getDiakok(array('osztalyId' => $osztalyId, 'result' => 'idonly','override' => false));
+ }
+ if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) {
+ // Intézmény adatai
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // Osztály adatai
+ if (isset($osztalyId)) $ADAT['osztaly'] = getOsztalyAdat($osztalyId, __TANEV);
+ // A tanárok
+ $ADAT['tanarok'] = getTanarok(array('result' => 'assoc'));
+ // Az osztály tanárai
+ // nincs feltétlen osztály //
+/*
+ $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV, array('tanarral' => true));
+ $ADAT['osztalyTanar'] = array(); $paros = false;
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ for ($j = 0; $j < count($Tankorok[$i]['tanarok']); $j++) {
+ if (!is_array($ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ])) {
+ $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ] = $ADAT['tanarok'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ];
+ $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ]['paros'] = $paros;
+ $paros = !$paros;
+
+ }
+ }
+ }
+*/
+ if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) {
+ // a diákok alapadatai
+ $ADAT['diakAdat'] = getDiakAdatById($ADAT['diakIds'], array('result' => 'assoc', 'keyfield' => 'diakId'));
+ // SNI-s diákok kiválogatása...
+ $ADAT['sniDiakIds'] = $Diakok = array();
+ foreach ($ADAT['diakAdat'] as $_diakId => $dAdat) {
+ if ($dAdat['fogyatekossag'] != '') {
+ $ADAT['sniDiakIds'][] = $_diakId;
+ $dAdat['aktualisStatusz'] = $dAdat['statusz'];
+ $Diakok[] = $dAdat;
+ }
+ }
+ }
+
+
+ // sni-s diákokon végigmenve:
+ foreach ($ADAT['sniDiakIds'] as $diakId) {
+ // Mentor/Ofő lekérdezése, konstans beállítása
+ $sniDA = getSniDiakAdat($diakId);
+ if (!is_array($sniDA)) $sniDA = array();
+ $DA = array_merge($ADAT['diakAdat'][$diakId], $sniDA);
+ if (is_array($DA['felelos'])) foreach ($DA['felelos'] as $key => $tanarId) $felelos[$tanarId] = array();
+ else $felelos = array();
+ $DA['felelos'] = $felelos;
+ // A hónapokon végigmenve
+ $ho = intval(substr($_TANEV['kezdesDt'],5,2));
+ $dt = date('Y-m-01', strtotime($_TANEV['kezdesDt']));
+ while ($ho != 1+substr($_TANEV['zarasDt'],5,2)) {
+ $ADAT['diakAdat'][$diakId]['honap'][$ho] = getHaviOsszegzes($diakId, $dt);
+ $ADAT['diakAdat'][$diakId]['honap'][$ho]['hoNev'] = kisbetus($Honapok[$ho-1]);
+ // lépés a következő hónapra
+ $ho++; if ($ho > 12) $ho = 1;
+ $dt = date('Y-m-d', strtotime('next month', strtotime($dt)));
+ }
+ }
+ if (isset($osztalyId)) $ADAT['file'] = fileNameNormal('evVegiJegyzokonyv-'.$ADAT['osztaly']['osztalyJel'].'-'.str_replace('-','',$dt));
+ else $ADAT['file'] = fileNameNormal('evVegiJegyzokonyv-'.$diakId.'-'.str_replace('-','',$dt));
+ if (generateJegyzokonyv($ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/sniEvVegiJegyzokonyv&file='.$ADAT['file'].'.pdf'));
+
+ }
+ // Tool
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('dt'));
+ $TOOL['diakSelect'] = array(
+ // 'diakok' => $Diakok,
+ 'tipus'=>'cella','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId'),
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php
new file mode 100644
index 00000000..a2208099
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/sniEvVegiJegyzokonyv.php
@@ -0,0 +1 @@
+<?php if (_RIGHTS_OK !== true) die(); ?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php
new file mode 100644
index 00000000..951f9b4e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv-pre.php
@@ -0,0 +1,93 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/sni.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ // Paraméterek
+ $dt = readVariable($_POST['dt'], 'date');
+ if (!isset($dt)) {
+ $tolTime = strtotime($_TANEV['kezdesDt']);
+ $igTime = min(time(), strtotime($_TANEV['zarasDt']));
+ $dt = $_TANEV['kezdesDt'];
+ for ($t = $tolTime; $t <= $igTime; $t = strtotime("next month", $t)) $dt = date('Y-m-d', $t);
+ }
+ $ADAT['dt'] = $dt;
+ $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'], 'id');
+ if (isset($osztalyId)) {
+ // Intézmény adatai
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // Osztály adatai
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, __TANEV);
+ // A tanárok
+ $ADAT['tanarok'] = getTanarok(array('result' => 'assoc'));
+ // Az osztály tanárai
+ $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV, array('tanarral' => true));
+ $ADAT['osztalyTanar'] = array(); $paros = false;
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ for ($j = 0; $j < count($Tankorok[$i]['tanarok']); $j++) {
+ if (!is_array($ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ])) {
+ $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ] = $ADAT['tanarok'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ];
+ $ADAT['osztalyTanar'][ $Tankorok[$i]['tanarok'][$j]['tanarId'] ]['paros'] = $paros;
+ $paros = !$paros;
+
+ }
+ }
+ }
+ // Az osztály tagjai
+ $ADAT['diakIds'] = getDiakok(array('osztalyId' => $osztalyId, 'result' => 'idonly','override' => false));
+ if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) {
+ // a diákok alapadatai
+ $ADAT['diakAdat'] = getDiakAdatById($ADAT['diakIds'], array('result' => 'assoc', 'keyfield' => 'diakId'));
+ // SNI-s diákok kiválogatása...
+ $ADAT['sniDiakIds'] = $Diakok = array();
+ foreach ($ADAT['diakAdat'] as $_diakId => $dAdat) {
+ if ($dAdat['fogyatekossag'] != '') {
+ $ADAT['sniDiakIds'][] = $_diakId;
+ $dAdat['aktualisStatusz'] = $dAdat['statusz'];
+ $Diakok[] = $dAdat;
+ }
+ }
+ }
+
+
+ // sni-s diákokon végigmenve:
+ foreach ($ADAT['sniDiakIds'] as $diakId) {
+ // Mentor/Ofő lekérdezése, konstans beállítása
+ $sniDA = getSniDiakAdat($diakId);
+ if (!is_array($sniDA)) $sniDA = array();
+ $tmpArray = array_merge($ADAT['diakAdat'][$diakId], $sniDA, getHaviOsszegzes($diakId, $dt));
+ if (is_array($tmpArray['felelos'])) foreach ($tmpArray['felelos'] as $key => $tanarId) $felelos[$tanarId] = array();
+ else $felelos = array();
+ $tmpArray['felelos'] = $felelos;
+ $ADAT['diakAdat'][$diakId] = $tmpArray;
+ }
+ $ADAT['file'] = fileNameNormal('haviJegyzokonyv-'.$ADAT['osztaly']['osztalyJel'].'-'.str_replace('-','',$dt));
+ if (generateJegyzokonyv($ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/sniHaviJegyzokonyv&file='.$ADAT['file'].'.pdf'));
+
+ }
+ // Tool
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('dt'));
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'sor', 'ParamName' => 'dt', 'tanev' => __TANEV, 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'hanyNaponta' => 'havonta', 'post' => array('diakId', 'osztalyId')
+ );
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php b/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php
new file mode 100644
index 00000000..a2208099
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/sniHaviJegyzokonyv.php
@@ -0,0 +1 @@
+<?php if (_RIGHTS_OK !== true) die(); ?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php
new file mode 100644
index 00000000..0f7bdd81
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles-pre.php
@@ -0,0 +1,78 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/szovegesErtekeles.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $ADAT['tanev'] = $tanev = __TANEV;
+ if ($tanev == __TANEV) $ADAT['tanevAdat'] = $TA = $_TANEV;
+ else $ADAT['tanevAdat'] = $TA = getTanevAdat($tanev);
+
+ // A dátum, osztály és diákok kiválasztása
+ $ADAT['szemeszterId'] = $szemeszterId = readVariable($_POST['szemeszterId'], 'numeric unsigned', null);
+ if (isset($szemeszterId)) { // szemesztert záró értékelés - intézményi adatbázis
+ $ADAT['szemeszter'] = getSzemeszterAdatById($ADAT['szemeszterId']);
+ $ADAT['dt'] = $dt = $ADAT['szemeszter']['zarasDt'];
+ } else {
+ $condition = strtotime($TA['kezdesDt']).'<=strtotime($return) && strtotime($return)<='.strtotime($TA['zarasDt']);
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', null, array(), $condition);
+ $ADAT['tolDt'] = $tolDt = readVariable($_POST['tolDt'], 'datetime', $_TANEV['kezdesDt'], array(), $condition);
+ }
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+ $ADAT['targySorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', 'bizonyítvány', array('napló','bizonyítvány','anyakönyv','ellenőrző','egyedi'));
+ $diakIds = array();
+ if (isset($osztalyId)) {
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev);
+ $ADAT['file'] = fileNameNormal('szovegesErtekeles-'.str_replace('.', '', $ADAT['osztalyAdat']['osztalyJel']));
+ $Diakok = getDiakok(array('osztalyId' => $osztalyId, 'tanev' => $tanev, 'tolDt' => $dt, 'igDt' => $dt,
+ 'statusz'=>array('jogviszonyban van'), 'extraAttrs'=>'oId as oktatasiAzonosito,torzslapSzam'));
+ if (is_array($Diakok)) for ($i = 0; $i < count($Diakok); $i++) {
+ $diakIds[] = $Diakok[$i]['diakId'];
+ $ADAT['diakAdat'][$Diakok[$i]['diakId']] = $Diakok[$i];
+ }
+ }
+ $diakId = readVariable($_POST['diakId'], 'numeric unsigned', null, $diakIds);
+ if (isset($diakId)) $diakIds = array($diakId);
+ $ADAT['diakIds'] = $diakIds;
+
+ if (count($ADAT['diakIds']) > 0 && (isset($ADAT['dt']) || isset($ADAT['szemeszterId']))) {
+ $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszter']);
+ $printFile = nyomtatvanyKeszites($ADAT); // ???
+ $printFile = fileNameNormal($printFile);
+ if ($printFile !== false && file_exists(_DOWNLOADDIR."/$policy/$page/$sub/$f/$printFile"))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/szovegesErtekeles&file='.$printFile));
+ }
+
+// $TOOL['datumSelect'] = array(
+// 'tipus' => 'cella', 'post' => array('diakId','osztalyId'),
+// 'paramName' => 'dt', 'hanyNaponta' => 1, 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])), 'igDt' => $TA['zarasDt']
+// );
+ $TOOL['datumTolIgSelect'] = array('tipus' => 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'dt',
+ 'tolDt' => date('Y-m-d', strtotime($TA['kezdesDt'])), 'igDt' => $TA['zarasDt'],
+ 'hanyNaponta' => 1, 'post' => array('osztalyId','diakId','sorrendNev')
+ );
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('tolDt', 'tolDt', 'dt','sorrendNev'));
+ if (isset($osztalyId))
+ $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'diakok' => $Diakok, 'post' => array('osztalyId', 'tolDt', 'dt','sorrendNev'));
+ $TOOL['szemeszterSelect'] = array(
+ 'tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') ,
+ 'post' => array('osztalyId', 'tanarId', 'diakId', 'tolDt', 'dt', 'tankorId', 'kepzesId', 'evfolyam','sorrendNev')
+ );
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId','diakId','tolDt','dt','tankorId','kepzesId','evfolyam'));
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php b/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php
new file mode 100644
index 00000000..c24a85d5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/szovegesErtekeles.php
@@ -0,0 +1,5 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php
new file mode 100644
index 00000000..232b406b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles-pre.php
@@ -0,0 +1,58 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned');
+
+ // Az egy osztályhoz rendelt tankörök betöltése a naplóba - de csak azoknál az osztályoknál, ahol nincs hozzárendelés még
+ tankorNaploInit();
+
+ // Az adott szemeszter tanköreit lekérdezzük
+ $ADAT['tankorok'] = getTankorByTanev(__TANEV);
+ $ADAT['tankorIds'] = $ADAT['tankorNeve'] = array();
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $ADAT['tankorIds'][] = $ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorNeve'][ $ADAT['tankorok'][$i]['tankorId'] ] = $ADAT['tankorok'][$i]['tankorNev'];
+ }
+ // A tankorok osztályainak lekérdezése
+ $ret = getOsztalyIdByTankorIds($ADAT['tankorIds']);
+ $ADAT['tankorOsztalyai'] = $ADAT['osztalyTankorei'] = array();
+ for ($i = 0; $i < count($ret); $i++) {
+ $ADAT['tankorOsztalyai'][ $ret[$i]['tankorId'] ][] = $ret[$i]['osztalyId'];
+ $ADAT['osztalyTankorei'][ $ret[$i]['osztalyId'] ][] = $ret[$i]['tankorId'];
+ }
+ if ($action == 'hozzarendelesekTorlese') {
+ tankorNaploInit($torlessel = true);
+ } elseif ($action == 'tankorNaplohozRendeles') {
+
+ if (is_array($_POST['T']) && count($_POST['T']) > 0) {
+ tankorNaplohozRendeles($osztalyId, $_POST['T']);
+ }
+
+ } // action
+
+
+ // A naplókhoz rendelt tanköröket lekérdezzük
+ $ADAT['tankorNaploja'] = getTankorokNaploja();
+ $ADAT['naploTankorei'] = array();
+ foreach ($ADAT['tankorNaploja'] as $_tankorId => $_osztalyId) {
+ $ADAT['naploTankorei'][$_osztalyId][] = $_tankorId;
+ }
+ // osztályok lekérdezése
+ $ADAT['osztalyok'] = getOsztalyok();
+ $ADAT['osztalyJele'] = array();
+ for ($i =0; $i < count($ADAT['osztalyok']); $i++) $ADAT['osztalyJele'][ $ADAT['osztalyok'][$i]['osztalyId'] ] = $ADAT['osztalyok'][$i]['osztalyJel'];
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'osztalyok' => $ADAT['osztalyok'], 'post' => array());
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php
new file mode 100644
index 00000000..5285af45
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/tankorNaplohozRendeles.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $osztalyId, $ADAT;
+
+ if (isset($osztalyId)) {
+ if (count($ADAT['osztalyTankorei']) > 0) putOsztalyTankorei($osztalyId, $ADAT);
+ } else {
+ putHozzarendelesekTorlese();
+ putHianyzoTankorok($ADAT);
+ putEloszlas($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php
new file mode 100644
index 00000000..16bc3ae6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap-pre.php
@@ -0,0 +1,165 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+
+/*
+2012/20. EMMI rendelet
+99. § (1) A törzslap két részből áll, a tanulókról külön-külön kiállított egyéni törzslapokból és az egyéni törzslapok összefűzését szolgáló borítóból (törzslap külív). Az iskola a tanulókról - a tanévkezdést követő harminc napon belül - egyéni törzslapot állít ki.
+(2) Ha az iskolai nevelés és oktatás nyelve a nemzetiség nyelve, a törzslapot magyar nyelven és az oktatás nyelvén is vezetni kell. Ha a két szöveg között eltérés van, és nem állapítható meg, hogy melyik a helyes szöveg, a magyar nyelvi bejegyzést kell hitelesként elfogadni.
+(3) Az egyéni törzslap tartalmazza
++a) a törzslap sorszámát,
++b) a tanuló nevét,
+ állampolgárságát,
+ nem magyar
+ állampolgár esetén a tartózkodás jogcímét,
+ a jogszerű tartózkodást megalapozó okirat számát,
++ oktatási azonosító számát,
++ születési helyét és idejét,
++ anyja születéskori nevét,
++c) a tanuló osztálynaplóban szereplő sorszámát,
+-+d) a tanévet és a tanuló által elvégzett évfolyamot,
+e) a tanuló magatartásának és szorgalmának értékelését,
+f) a tanuló által tanult tantárgyakat, és ezek év végi szöveges minősítését,
+g) a közösségi szolgálat teljesítésével kapcsolatos adatokat,
+h) az összes mulasztott óra számát, külön-külön megadva az igazolt és igazolatlan mulasztásokat,
+i) a nevelőtestület határozatát,
+j) a tanulmányok alatti vizsgára vonatkozó adatokat,
+k) a tanulót érintő gyermekvédelmi intézkedéssel, hátrányos helyzet, halmozottan hátrányos helyzet megállapításával kapcsolatos
+és tanulói jogviszonyából következő
+ döntéseket, határozatokat, záradékokat.
+(4) Ha az iskola sajátos nevelési igényű tanuló nevelés-oktatását is ellátja, a törzslapon fel kell tüntetni
+ a szakvéleményt kiállító szakértői bizottság nevét,
+ címét,
+ a szakvélemény számát és
+ kiállításának keltét,
+ a felülvizsgálat időpontját.
+(5) Az egyéni törzslapokat az alsó tagozat, a felső tagozat és a középfokú iskolai tanulmányok befejezését követően, a törzslap külívének teljes lezárása után
+szétválaszthatatlanul össze kell fűzni, és ilyen módon kell tárolni.
+*/
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/osztalyModifier.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/szovegesErtekeles.php');
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/bejegyzes.php');
+ require_once('include/modules/naplo/share/nap.php');
+
+ // Ez a függvény hova való??
+ function getDiakTargyOraszam($diakId, $osztalyId, $tanev, $ADAT) {
+ $utolsoTanitasiNap = getOsztalyUtolsoTanitasiNap($osztalyId);
+ // éves óraszámok lekérdezése - tárgyanként
+ $q = "SELECT targyId,oraszam FROM tankorDiak LEFT JOIN tankorSzemeszter USING (tankorId) LEFT JOIN tankor USING (tankorId)
+ WHERE diakId=%u AND tanev=%u AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt)";
+ $v = array($diakId, $tanev, $utolsoTanitasiNap, $utolsoTanitasiNap);
+ $jres = db_query($q, array(
+ 'fv' => 'getDiakBizonyitvany/óraszám', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'targyId', 'values' => $v
+ ));
+
+ $szDb = $ADAT['szemeszter']['tanevAdat']['maxSzemeszter']; // Feltételezzük, hogy a szemeszterek számozása 1-től indul és folyamatos
+ foreach ($jres as $targyId => $tAdat) {
+ $oraszam = 0;
+ for ($i = 0; $i < count($tAdat); $i++) {
+ $oraszam += $tAdat[$i]['oraszam'];
+ }
+ $ret[$targyId]['hetiOraszam'] = $oraszam / $szDb;
+ /*
+ A TANITASI_HETEK_SZAMA a diák (egyik) osztályához rendelt munkaterv alapján van meghatározva - így
+ csak az aktuális tanévben (__TANEV) van értelme. Ha több osztálya is van a tanulónak, akkor problémás...
+ */
+ if (defined('TANITASI_HETEK_SZAMA')) $ret[$targyId]['evesOraszam'] = $oraszam / $szDb * TANITASI_HETEK_SZAMA;
+ }
+ return $ret;
+ }
+
+
+ $ADAT['magatartasIds'] = getMagatartas();
+ $ADAT['szorgalomIds']= getSzorgalom();
+
+ // A dátum, osztály és diákok kiválasztása
+ $ADAT['szemeszterId'] = $szemeszterId = readVariable($_POST['szemeszterId'], 'numeric unsigned', null);
+ if (isset($szemeszterId)) { // szemesztert záró értékelés - intézményi adatbázis
+ $ADAT['szemeszter'] = getSzemeszterAdatById($ADAT['szemeszterId']);
+ $ADAT['dt'] = $dt = $ADAT['szemeszter']['zarasDt'];
+ define('__ZARO_SZEMESZTER', $ADAT['szemeszter']['szemeszter'] == $ADAT['szemeszter']['tanevAdat']['maxSzemeszter']); //??
+ $ADAT['tanev'] = $tanev = $ADAT['szemeszter']['tanev'];
+ }
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+ $ADAT['targySorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', 'anyakönyv', array('napló','bizonyítvány','anyakönyv','ellenőrző','egyedi'));
+ // Ha egy diák van kiválasztva...
+ $diakId = readVariable($_POST['diakId'], 'numeric unsigned', null, $diakIds);
+
+ if (isset($osztalyId) && isset($szemeszterId)) {
+ define('TANITASI_HETEK_SZAMA', getTanitasiHetekSzama(array('osztalyId'=>$osztalyId)));
+ $diakIds = array();
+ $ADAT['osztalyAdat'] = getOsztalyAdat($osztalyId, $tanev);
+ $ADAT['evfolyamJel'] = getEvfolyamJel($osztalyId, $tanev);
+ $ADAT['file'] = fileNameNormal('torzslap-'.str_replace('.', '', $ADAT['osztalyAdat']['osztalyJel']));
+ $Diakok = getDiakok(array('osztalyId' => $osztalyId, 'tanev' => $tanev, 'tolDt' => $ADAT['szemeszter']['tanevAdat']['kezdesDt'], 'igDt' => $ADAT['szemeszter']['tanevAdat']['zarasDt'],
+ 'statusz'=>array('jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva'),
+ 'extraAttrs'=>'oId as oktatasiAzonosito,torzslapSzam as torzslapszam,allampolgarsag,szuletesiHely,szuletesiIdo,anyaId')
+ );
+ osztalyTorzslapszamGeneralas($osztalyId);
+ $dTsz = getDiakokTorzslapszamaByOsztalyId($osztalyId);
+ if (is_array($Diakok)) for ($i = 0; $i < count($Diakok); $i++) {
+ if (!isset($diakId) || $diakId == $Diakok[$i]['diakId']) {
+ $diakIds[] = $Diakok[$i]['diakId'];
+ $Diakok[$i]['anyaNev'] = getSzuloNevById($Diakok[$i]['anyaId'], $szuleteskori = true);
+ $Diakok[$i]['evfolyamJel'] = $ADAT['evfolyamJel']; // kell ez?? // getEvfolyamJel($osztalyId, $ADAT['tanev']);
+ $Diakok[$i]['szuletesiOrszag'] = ''; // Ezzel mi legyen??
+ $Diakok[$i]['feljegyzesek'] = ''; // Egyedi törzslap záradékok kellenek ide, semmi más!
+ $ADAT['diakAdat'][$Diakok[$i]['diakId']] = $Diakok[$i];
+ $ADAT['diakAdat'][$Diakok[$i]['diakId']]['szuletesiIdo'] = dateToString($Diakok[$i]['szuletesiIdo']);
+ $ADAT['diakAdat'][$Diakok[$i]['diakId']]['torzslapszam'] = $dTsz[$Diakok[$i]['diakId']];
+ }
+ }
+ $kovetkezoTanev = __TANEV+1; $kovTA = getTanevAdat($kovetkezoTanev);
+ $ADAT['diakZaradekok'] = getZaradekokByDiakIds($diakIds, array('tolDt'=>$_TANEV['kezdesDt'], 'igDt'=>$kovTA['kezdesDt'], 'tipus'=>'törzslap feljegyzés','keyfield'=>'diakId','result'=>'multiassoc')); // kell a tol-ig szűrés??
+ $ADAT['diakZaradekok'] = getZaradekokByDiakIds($diakIds, array('tolDt'=>$_TANEV['kezdesDt'], 'igDt'=>$kovTA['kezdesDt'], 'dokumentum'=>'törzslap','keyfield'=>'diakId','result'=>'multiassoc')); // kell a tol-ig szűrés??
+ $ADAT['diakBejegyzesek'] = getTorzslapBejegyzesByDiakIds($diakIds, array('tanev' => $tanev));
+
+ $ADAT['diakIds'] = $diakIds;
+
+ if (count($ADAT['diakIds']) > 0) {
+ $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszter']);
+ $ADAT['targyak'] = getTargyakByDiakIds($ADAT['diakIds'], $ADAT['szemeszter'], $osztalyId, $sorrendNev);
+ $ADAT['jegyek'] = getDiakZarojegyekByEvfolyamJel($ADAT['diakIds'], $ADAT['evfolyamJel'], $ADAT['szemeszter'], array('felevivel'=>true)); // TODO: ellenőrzés
+
+ foreach ($ADAT['jegyek'] as $diakId => $dJegyek) {
+ $ADAT['targyOraszam'][$diakId] = getDiakTargyOraszam($diakId, $osztalyId, $tanev, $ADAT);
+ }
+
+ $printFile = torzslapNyomtatvanyKeszites($ADAT); // ???
+ $printFile = fileNameNormal($printFile);
+ if ($printFile !== false && file_exists(_DOWNLOADDIR."/$policy/$page/$sub/$f/$printFile"))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/torzslap&file='.$printFile));
+ }
+ } // van osztály és szemeszter
+
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('szemeszterId', 'tolDt', 'dt','sorrendNev'));
+ if (isset($osztalyId))
+ $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'diakok' => $Diakok, 'post' => array('szemeszterId', 'osztalyId', 'tolDt', 'dt','sorrendNev'));
+ $TOOL['szemeszterSelect'] = array(
+ 'tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') ,
+ 'post' => array('osztalyId', 'tanarId', 'diakId', 'tolDt', 'dt', 'tankorId', 'kepzesId', 'evfolyamJel','sorrendNev')
+ );
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId','diakId','tolDt','dt','tankorId','kepzesId','evfolyamJel'));
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php b/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php
new file mode 100644
index 00000000..c24a85d5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/torzslap.php
@@ -0,0 +1,5 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php
new file mode 100644
index 00000000..f7250037
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat-pre.php
@@ -0,0 +1,40 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ $ADAT['tanarId'] = $tanarId = readVariable($_GET['tanarId'], 'id');
+ $ADAT['tovabbkepzesId'] = $tovabbkepzesId = readVariable($_GET['tovabbkepzesId'], 'id');
+ $ADAT['tanev'] = $tanev = readVariable($_GET['tanev'], 'numeric unsigned');
+
+ if (isset($tanarId) && isset($tovabbkepzesId) && isset($tanev)) { // input ok
+
+ require_once('include/share/print/pdf.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ // Adatok lekérdezése
+ $ADAT['file'] = fileNameNormal('hatarozat-'.$tanarId.'-'.$tovabbkepzesId.'-'.date('Y-m-d'));
+ list($ADAT['tanarAdat']) = getTanarAdatById($tanarId);
+ $ADAT['tanulmanyiEgyseg'] = getTanulmanyiEgyseg($tovabbkepzesId, $tanarId, $tanev);
+
+ $printFile = tovabbkepzesNyomtatvanyKeszites($ADAT);
+ $printFile = fileNameNormal($printFile);
+
+ if ($printFile !== false && file_exists(_DOWNLOADDIR."/$policy/$page/$sub/$f/$printFile"))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir='.$page.'/'.$sub.'/'.$f.'&file='.$printFile));
+
+
+ }
+
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php b/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php
new file mode 100644
index 00000000..bc70f948
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/tovabbkepzesHatarozat.php
@@ -0,0 +1,6 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php b/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php
new file mode 100644
index 00000000..b27306d2
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok-pre.php
@@ -0,0 +1,49 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+} else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/modules/naplo/share/bejegyzes.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/share/str/tex.php');
+ require_once('include/share/print/pdf.php');
+
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ $ADAT['tanev'] = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ if ($ADAT['tanev'] == __TANEV) $ADAT['tanevAdat'] = $_TANEV; else $ADAT['tanevAdat'] = getTanevAdat($tanev);
+ $ADAT['tolDt'] = $ADAT['tanevAdat']['kezdesDt']; $ADAT['igDt'] = $ADAT['tanevAdat']['zarasDt'];
+
+ if (isset($osztalyId)) {
+ // intézmény adatok
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // osztály statisztikák
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, $ADAT['tanev']);
+
+ $ADAT['file'] = fileNameNormal('zaradekok-'.$ADAT['osztaly']['osztalyJel'].'-'.date('Ymd'));
+ $ADAT['diak'] = getDiakokByOsztaly($osztalyId, $ADAT);
+ // Azok a diákok, akik az adott időszakban voltak jogviszonyban (esetleg magáán- vagy venfégtanulóként
+ $ADAT['diakIds'] = array_values(array_unique(array_merge($ADAT['diak']['jogviszonyban van'], $ADAT['diak']['magántanuló'], $ADAT['diak']['vendégtanuló'])));
+ for ($i = 0; $i < count($ADAT['diakIds']); $i++) {
+ $ADAT['zaradek'][ $ADAT['diakIds'][$i] ] = getDiakZaradekok($ADAT['diakIds'][$i], array('result' => 'indexed', 'tolDt' => $ADAT['tolDt'], 'igDt' => $ADAT['igDt'], 'dokumentum' => 'osztálynapló'));
+ $ADAT['bejegyzes'][ $ADAT['diakIds'][$i] ] = getDiakBejegyzesekByTanev($ADAT['diakIds'][$i], $ADAT['tanev']);
+ }
+ $ADAT['file'] = fileNameNormal($ADAT['file']);
+ if (pdfZaradekok($ADAT))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=naplo/nyomtatas/zaradekok&file='.$ADAT['file'].'.pdf'));
+
+ }
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array());
+ getToolParameters();
+
+}
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok.php b/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/nyomtatas/zaradekok.php
diff --git a/mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php b/mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php
new file mode 100644
index 00000000..878bb8e6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/ascExport-pre.php
@@ -0,0 +1,110 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN || __VEZETOSEG) {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/share/date/names.php');
+
+ $dt = $ADAT['dt'] = readVariable($_POST['dt'], 'datetime', null);
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric', __TANEV);
+ $ADAT['tanevDb'] = tanevDbNev(__INTEZMENY, $tanev);
+
+ if ($tanev != __TANEV) $_TA = getTanevAdat($tanev);
+ else $_TA = $_TANEV;
+
+ $ADAT['orarendiHet'] = getOrarendiHetek(array('tanev' => $tanev, 'tolDt' => $dt, 'igDt' => $dt, 'csakOrarendbol' => true));
+ $ADAT['exportalandoHet'] = readVariable($_POST['orarendiHet'], 'numeric', null, $ADAT['orarendiHet']);
+ if (isset($ADAT['exportalandoHet'])) $ADAT['szeminariumkent'] = true;
+ else $ADAT['szeminariumkent'] = readVariable($_POST['szeminariumkent'], 'bool', false, array(true, false));
+ $ADAT['szakkorokkel'] = readVariable($_POST['szakkorokkel'], 'bool', false, array(true, false));
+ $ADAT['targyBontas'] = readVariable($_POST['targyBontas'], 'bool', false, array(true, false));
+
+ // Bontások lekérdezése
+ $ADAT['bontas'] = ascBontasLekerdezes($ADAT['tanevDb']);
+
+ if (!readVariable($_POST['blokkokNelkul'], 'bool', false, array(true, false))) $ADAT['tankorBlokk'] = getTankorBlokkok($tanev);
+ else $ADAT['tankorBlokk'] = array();
+ // A tankörök blokk óraszámai
+ $tankor2blokk = array();
+ if (is_array($ADAT['tankorBlokk']['exportOraszam']))
+ foreach ($ADAT['tankorBlokk']['exportOraszam'] as $bId => $oraszam) { // blokkonként
+ for ($i = 0; $i < count($ADAT['tankorBlokk']['idk'][$bId]); $i++) { // az érintett tankörökön végigmenve
+ $tankor2blokk[ $ADAT['tankorBlokk']['idk'][$bId][$i] ]['blokkOraszam'] += $oraszam;
+ }
+ }
+ $ADAT['tankorIndex'] = array();
+ if ($ADAT['szakkorokkel']) $ADAT['tankorok'] = getTankorok(array("tanev=$tanev"));
+ else $ADAT['tankorok'] = getTankorok(array("tanev=$tanev","jelenlet='kötelező'"));
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorok'][$i]['tankorAdat'] = getTankorAdat($tankorId, $tanev);
+ // óraszám
+ if (isset($ADAT['exportalandoHet'])) {
+ $ADAT['tankorok'][$i]['hetiOraszam'] = getTankorHetiOraszam($tankorId, array('tanev' => $tanev, 'dt' => $dt, 'het' => $ADAT['exportalandoHet']));
+ } else {
+ $ADAT['tankorok'][$i]['hetiOraszam'] = 0;
+ for ($j = 0; $j < count($ADAT['tankorok'][$i]['tankorAdat'][$tankorId]); $j++) // Szemeszterenként végigmenve
+ $ADAT['tankorok'][$i]['hetiOraszam'] += $ADAT['tankorok'][$i]['tankorAdat'][$tankorId][$j]['oraszam'];
+ if ($j != 0) {
+ $ADAT['tankorok'][$i]['hetiOraszam'] /= $j;
+ // Korrigáljuk a tankört érintő blokkok óraszámával
+ if ($ADAT['tankorok'][$i]['hetiOraszam'] >= $tankor2blokk[$tankorId]['blokkOraszam'])
+ $ADAT['tankorok'][$i]['hetiOraszam'] -= $tankor2blokk[$tankorId]['blokkOraszam'];
+ else
+ $_SESSION['alert'][] = 'message:wrong_data:tankorOraszam='.$ADAT['tankorok'][$i]['hetiOraszam'].'; blokkOraszam='
+ .$tankor2blokk[$tankorId]['blokkOraszam'].'; tankorId='.$tankorId;
+ }
+ } // óraszám
+ $ADAT['tankorIndex'][$tankorId] = $i;
+ }
+
+ // --------------------- action -------------------------- //
+
+ if ($action == 'ascExport') {
+ if (
+// tankorTanarRendbenE($tanev, $dt)
+// &&
+ ascExport($ADAT)
+ )
+define('__LOADURL', href('index.php?page=session&f=download&download=true&dir=orarend&file=ascExport.xml',array('sessionID','lang','skin','policy','alert')));
+//header('Location: '.location('index.php?page=session&f=download&download=true&dir=orarend&file=ascExport.xml',array('sessionID','lang','skin','policy','alert')));
+
+ } elseif ($action == 'blokkOraszam') {
+
+ if (is_array($_POST['blokkOraszam']))
+ for ($i = 0; $i < count($_POST['blokkOraszam']); $i++) {
+ list($bId, $oraszam) = explode(':', $_POST['blokkOraszam'][$i]);
+ $blokkOraszam = readVariable($oraszam, 'float unsigned', 0);
+ if ($blokkOraszam >= 0) $ADAT['blokkOraszam'][$bId] = $oraszam;
+ } // if+for
+ blokkOraszamRogzites($ADAT['blokkOraszam'], $ADAT['tanevDb']);
+ $ADAT['tankorBlokk'] = getTankorBlokkok($tanev);
+
+ } elseif ($action == 'tobbszorosOra') {
+
+ ascBontasModositas($ADAT);
+ $ADAT['bontas'] = ascBontasLekerdezes($ADAT['tanevDb']);
+
+ }
+
+ // --------------------- action -------------------------- //
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array());
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array('tanev'),'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'override'=>true,'tolDt' => $_TA['kezdesDt'],'igDt' => $_TA['zarasDt'],
+ );
+
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/ascExport.php b/mayor-orig/www/policy/private/naplo/orarend/ascExport.php
new file mode 100644
index 00000000..7972ab6b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/ascExport.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['tankorBlokk']['blokkNevek'])) putBlokkOraszamForm($ADAT);
+ putTobbszorosOraForm($ADAT);
+ putExportForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php b/mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php
new file mode 100644
index 00000000..c4ed7cb9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/helyettesites-pre.php
@@ -0,0 +1,80 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+
+ require_once('include/modules/naplo/share/helyettesites.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/terem.php');
+
+
+ //$mkId = $_POST['mkId'];
+ if (isset($_POST['targyId']) && intval($_POST['targyId']) != 0) $targyId = intval($_POST['targyId']);
+ if (isset($_POST['tankorId']) && intval($_POST['tankorId']) != 0) $tankorId = intval($_POST['tankorId']);
+ if (isset($_POST['tankorId']) && intval($_POST['tankorId']) != 0) $tankorId = intval($_POST['tankorId']);
+ $telephelyId = readVariable($_POST['telephelyId'], id, null);
+
+ //$tanev = $_POST['tanev'];
+ //$action = $_POST['action'];
+ if (isset($_POST['osztalyId']) && intval($_POST['osztalyId']) != 0) $osztalyId = intval($_POST['osztalyId']);
+ if (isset($_POST['tanarId']) && intval($_POST['tanarId']) != 0 ) $tanarId = intval($_POST['tanarId']);
+ if (isset($_POST['diakId']) && intval($_POST['diakId']) != 0 ) $diakId = intval($_POST['diakId']);
+ if (isset($_POST['het']) && intval($_POST['het']) != 0 ) $het = intval($_POST['het']);
+ if (isset($_POST['mkId']) && intval($_POST['mkId']) != 0 ) $mkId = intval($_POST['mkId']);
+ if (isset($_POST['tolDt']) && strtotime($_POST['tolDt']) > 0) $tolDt = $_POST['tolDt'];
+
+ /* Az órarendihét kiválasztása */
+ if (!isset($tolDt)) $tolDt = date('Y-m-d');
+ if (strtotime($tolDt) > strtotime($_TANEV['zarasDt'])) $tolDt = $_TANEV['zarasDt'];
+ elseif (strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $tolDt = $_TANEV['kezdesDt'];
+ if ($tolDt != '') $het = getOrarendiHetByDt($tolDt);
+ if ($het == '') $het = getLastOrarend();
+ //$igDt = date('Y-m-d', mktime(0,0,0,date('m',strtotime($tolDt)), date('d',strtotime($tolDt))+6, date('Y',strtotime($tolDt))));
+ $igDt = $tolDt;
+
+ if ($osztalyId!='') {
+ $TANKORIDK = getTankorByOsztalyId($osztalyId,__TANEV,array('csakId'=>true));
+ $ADAT['orak'] = getHelyettesitendoOrak(array('osztalyId'=>$osztalyId,'tolDt'=>$tolDt,'igDt'=>$igDt,'tankorIdk'=>$TANKORIDK));
+ } elseif ($tanarId!='') {
+ $TANKORIDK = getTankorByTanarId($tanarId,__TANEV,array('csakId'=>true));
+ $ADAT['orak'] = getHelyettesitendoOrak(array('tolDt'=>$tolDt,'igDt'=>$igDt,'tankorIdk'=>$TANKORIDK));
+ } else {
+ $ADAT['orak'] = getHelyettesitendoOrak(array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId));
+ }
+ $ADAT['tankorok'] = getTankoradatByIds($ADAT['orak']['tankorok'],array('dt'=>$tolDt)); // $ADAT['orak'] at vizsgáld meg!
+ $ADAT['tanarok'] = getTanarok(array('result'=>'assoc'));
+ $ADAT['termek'] = getTermek(array('result'=>'assoc'));
+
+ /* TOOL ME :) */
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('tanarId','osztalyId','tankorId'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 1,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array('tolDt','osztalyId','tanarId'));
+
+ //$TOOL['orarendiHetSelect'] = array('tipus'=>'cella' , 'paramName' => 'het', 'post'=>array('targyId','tankorId','osztalyId','tanarId'), 'disabled'=>true);
+ //$TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'post'=>array('tanev'));
+ //$TOOL['targySelect'] = array('tipus'=>'cella', 'paramName' => 'targyId', 'post'=>array('het'));
+// if ($osztalyId!='') {
+// $TOOL['diakSelect'] = array('tipus'=>'sor','paramName'=>'diakId', 'post'=>array('tolDt','osztalyId'));
+// } else
+// $TOOL['munkakozossegSelect'] = array('tipus'=>'sor','paramName'=>'mkId', 'post'=>array('tolDt'));
+ $TOOL['osztalySelect']= array('tipus'=>'cella','paramName'=>'osztalyId', 'post'=>array('tolDt'));
+ $TOOL['tanarSelect'] = array('tipus'=>'cella','paramName'=>'tanarId', 'post'=>array('tolDt'));
+// if ($osztalyId!='' || $tanarId!='' || $diakId!='' || $mkId!='') $TOOL['tankorSelect'] = array('tipus'=>'sor','paramName'=>'tankorId', 'post'=>array('tolDt','osztaly
+
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/helyettesites.php b/mayor-orig/www/policy/private/naplo/orarend/helyettesites.php
new file mode 100644
index 00000000..e5eca8ff
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/helyettesites.php
@@ -0,0 +1,9 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putHelyettesitesTablazat($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php
new file mode 100644
index 00000000..1ccea4b7
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarend-pre.php
@@ -0,0 +1,281 @@
+<?php
+ global $page,$sub,$f;
+
+ if (_RIGHTS_OK !== true) die();
+ $tanev = __TANEV;
+ if ($tanev<1997) return;
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/jegyzet.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+
+ // -- TESZT - savePageState()
+ define('__PAGE_PRESET', false); // kísérlet vége. no
+ $preSetLoad = readVariable($_POST['preSetLoad'],'bool',false);
+ $preSetSave = readVariable($_POST['preSetSave'],'bool',false);
+
+ function getPSFvar($name) {
+ global $PAGESTATE, $preSetSave, $preSetLoad;
+ return (__PAGE_PRESET===TRUE && ($preSetLoad || $preSetSave)) ? readVariable($PAGESTATE[$name], 'id', null) : null;
+ //return null;
+ }
+ // get toolbar state - később általánosul
+
+ $TOOLBARVARS = array('targyId','tankorId','osztalyId','tanarId','diakId','teremId','mkId','het');
+ $allowPreset=false;
+ foreach ($TOOLBARVARS as $k) {if (isset($_POST[$k])||isset($_GET[$k])) $allowPreset = false;}
+ if ($allowPreset) {
+ $PAGESTATE = array();
+ if (isset($_COOKIE[$page.'_'.$sub.'_'.$f]))
+ $_explode = explode('+',$_COOKIE[$page.'_'.$sub.'_'.$f]);
+ if (is_array($_explode)) {
+ foreach($_explode as $kvp) {
+ list($key,$val) = explode('-',$kvp);
+ if (in_array($key,$TOOLBARVARS) && isset($val) && intval($val)>0) $PAGESTATE[$key]=intval($val);
+ }
+ }
+ }
+
+// -- TESZT VÉGE
+ $targyId = readVariable($_POST['targyId'], 'id', getPSFvar('targyId'));
+ $tankorId = readVariable($_POST['tankorId'], 'id', readVariable($_GET['tankorId'],'id',getPSFvar('tankorId')));
+ $osztalyId = readVariable($_POST['osztalyId'], 'id', readVariable($_GET['osztalyId'],'id',getPSFvar('osztalyId')));
+ $tanarId = $_POST['tanarId'] = readVariable($_POST['tanarId'], 'id', readVariable($_GET['tanarId'],'id',getPSFvar('tanarId')));
+ $diakId = $_POST['diakId'] = readVariable($_POST['diakId'], 'id', readVariable($_GET['diakId'],'id',getPSFvar('diakId')));
+ $teremId = readVariable($_POST['teremId'], 'id', getPSFvar('teremId'));
+ $mkId = readVariable($_POST['mkId'], 'id',getPSFvar('mkId'));
+ $het = readVariable($_POST['het'], 'id',getPSFvar('het')); // ???
+
+ $ADAT['telephelyek'] = getTelephelyek();
+ $telephelyIds = array();
+ foreach ($ADAT['telephelyek'] as $tAdat) $telephelyIds[] = $tAdat['telephelyId'];
+ $telephelyId = readVariable($_POST['telephelyId'], 'id', (count($ADAT['telephelyek'])>1?null:1), $telephelyIds);
+ /* A telephelyet ki tudnánk találni a lekérdezett órák termeiből is... */
+
+ $tolDt = readVariable($_POST['tolDt'], 'date', getTanitasihetHetfo(array('napszam'=>0)));
+ $dt = readVariable($_POST['dt'], 'date'); // mutatni
+ if ($mkId=='' && $tanarId=='' && $diakId=='' && $osztalyId=='' && $tankorId=='' && $teremId=='') { // ez itt mind isnotset
+ if (__DIAK && defined('__USERDIAKID')) $diakId=__USERDIAKID;
+ if (__TANAR && defined('__USERTANARID')) $tanarId=__USERTANARID;
+ }
+
+ /* ----------------------------------------- */
+ if (_POLICY=='private' && $action == 'setPublic' && is_numeric($diakId) && ((__NAGYKORU===true && $diakId==__USERDIAKID) || (__NAGYKORU === false && $diakId==__SZULODIAKID))) {
+ require_once('include/modules/naplo/share/diakModifier.php');
+ diakAdatkezelesModositas(array('diakId'=>$diakId,'kulcs'=>'publikusOrarend','ertek'=>'1'));
+ }
+ /* ----------------------------------------- */
+
+ /* Az órarendihét kiválasztása */
+ if (isset($dt)) $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', strtotime($dt) )));
+ if (!isset($tolDt))
+ // A következő nap előtti hétfő
+ $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', time())));
+
+/*
+ if (strtotime($tolDt) > strtotime($_TANEV['zarasDt'])) $_tolDt = $_TANEV['zarasDt'];
+ elseif (strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $_tolDt = $_TANEV['kezdesDt'];
+ // és akkor korrigáljunk még egyszer
+ if (isset($_tolDt)) // A következő nap előtti hétfő
+ $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', time())));
+*/
+ if ($tolDt != '') $het = getOrarendiHetByDt($tolDt);
+ if ($het == '') $het = getLastOrarend();
+ $igDt = date('Y-m-d', mktime(0,0,0,date('m',strtotime($tolDt)), date('d',strtotime($tolDt))+6, date('Y',strtotime($tolDt))));
+
+ $ADAT['termek'] = getTermek(array('result'=>'assoc','telephelyId'=>$telephelyId));
+ $ADAT['tanarok'] = getTanarok(array('result'=>'assoc','telephelyId'=>$telephelyId)); //--TODO telephely
+// =====================
+ if ($tankorId!='') {
+ $ADAT['orarend'] = getOrarendByTankorId($tankorId, array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ //$ADAT['toPrint'] = getTankorNev($tankorId); // vagy getTankornev külön?
+ $TANKOROK['haladasi'] = array($tankorId);
+ $ADAT['kivalasztott'] = array('tankor',$tankorId);
+ } elseif($tanarId!='') {
+// if (_POLICY == 'public') $_SESSION['alert'][] = 'info:adatkezeles:letilva';
+// else {
+ $ADAT['orarend'] = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId,'orarendiOraTankor'=>true));
+ $ADAT['toPrint'] = $ADAT['tanarok'][$tanarId]['tanarNev'];
+// }
+ $ADAT['kivalasztott'] = array('tanar',$tanarId);
+ } elseif($diakId!='') {
+ $ADAT['orarendTipus'] = 'diakOrarend';
+ /* ide kerülhet, hogy a diák (__NAGYKORU)/szülő engedélyezte-e a saját/gyermeke órarendjének mutatását */
+ $ADAT['adatKezeles'] = getDiakAdatkezeles($diakId,array('publikusOrarend'=>1));
+ $ADAT['publikusOrarend'] = ($ADAT['adatKezeles']['publikusOrarend']['ertek'] == 1) ? true : false;
+ /* Ha belül vagyunk, akkor állíthassa be egy gombnyomással, hogy ő bizony engedélyezi */
+ define(__ALLOWSET, ((__NAGYKORU===true && $diakId==__USERDIAKID) || (__NAGYKORU === false && $diakId==__SZULODIAKID)));
+ if (_POLICY == 'public' && $ADAT['publikusOrarend'] === false) {
+ $_SESSION['alert'][] = 'info:adatkezeles:'.'A keresési feltétel a felhasználó által belépés után a napló modulban engedélyezhető!';
+ } else {
+ $ADAT['orarend'] = getOrarendByDiakId($diakId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'osztalyId'=>$osztalyId)); // itt az osztalyId-t nem lenne kötelező megadni, de a felületen úgysem lehet máshogy idejutni
+ $TANKOROK['haladasi'] = getTankorByDiakId($diakId, __TANEV, array('csakId' => true, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result'=>'idonly'));
+ $ADAT['diakFelmentes'] = getTankorDiakFelmentes($diakId, __TANEV, array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ }
+ $ADAT['diakEvfolyamAdat'] = getEvfolyamAdatByDiakId($diakId,$tolDt,__TANEV);
+ $ADAT['kepzes'] = getKepzesByDiakId($diakId, array('result' => '', 'dt' => $tolDt, 'arraymap' => null));
+ if (count($ADAT['kepzes'])==1) {
+ $ADAT['kepzesOraterv'] = getOraszamByKepzes($ADAT['kepzes'][0]['kepzesId'], array('szemeszter'=>1,'evfolyam'=>$ADAT['diakEvfolyamAdat']['evfolyam']));
+ } else {//nincs képzése, vagy több van
+ }
+
+ $ADAT['kivalasztott'] = array('diak',$diakId);
+ } elseif ($osztalyId!='') {
+ $ADAT['orarendTipus'] = 'osztalyOrarend';
+ $ADAT['orarend'] = getOrarendByOsztalyId($osztalyId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ $OADAT = getOsztalyAdat($osztalyId);
+ $ADAT['toPrint'] = $OADAT['osztalyJel'];
+ $TANKOROK['haladasi'] = getTankorByOsztalyId($osztalyId, __TANEV, array('csakId' => true, 'tanarral' => false, 'result' => 'idonly'));
+ $ADAT['kivalasztott'] = array('osztaly',$osztalyId);
+ } elseif ($mkId!='') {
+ $ADAT['orarend'] = getOrarendByMkId($mkId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId));
+ $TANKOROK['haladasi'] = getTankorByMkId($mkId, __TANEV, array('csakId' => true,'filter' => array()) );
+ $ADAT['kivalasztott'] = array('munkakozosseg',$mkId);
+ } elseif ($teremId!='') {
+ $teremAdat = getTeremAdatById($teremId);
+ $ADAT['orarend'] = getOrarendByTeremId($teremId,'',array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephelyId'=>$telephelyId));
+ $ADAT['toPrint'] = $teremAdat['leiras'];
+ $ADAT['kivalasztott'] = array('terem',$teremId);
+ }
+ else $ADAT = array();
+// -----------
+ $TANKOROK['erintett'] = $ADAT['orarend']['tankorok']; // --FIXME (2013.05.03)
+ $TANKOROK['mindenByDt'] = $ADAT['orarend']['mindenTankorByDt']; // --FIXME (2013.05.03)
+
+ $ADAT['NAPOK'] = $_NAPOK = _genNapok($tolDt,$igDt);
+
+ if (isset($tanarId)) {
+ $ADAT['haladasi'] = getTanarOrak($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'result'=>'likeOrarend'));
+ } elseif ((is_array($TANKOROK['mindenByDt']) && count($TANKOROK['mindenByDt']>0)) || $teremId!='') {
+ // akkor egészítsük ki a haladási naplós órákkal
+ /* FS#100 */
+ $ADAT['haladasi'] = array('tankorok'=>array());
+ // dátumfüggő FS#100
+ for ($i=0; $i<count($_NAPOK); $i++) {
+ $_dt = $_NAPOK[$i];
+ $_TK = $TANKOROK['mindenByDt'][$_dt];
+ if ($teremId!='')
+ $_D = getOrakByTeremId($teremId,array('tolDt'=>$_dt,'igDt'=>$_dt,'result'=>'likeOrarend'));
+ else
+ $_D = getOrak($TANKOROK['haladasi'],array('tolDt'=>$_dt,'igDt'=>$_dt,'result'=>'likeOrarend'));
+ $ADAT['haladasi']['orak'][$_dt] = $_D['orak'][$_dt];
+ if (is_array($_D['tankorok'])) $ADAT['haladasi']['tankorok'] = array_map('intval',array_unique(array_merge($_D['tankorok'],$ADAT['haladasi']['tankorok'])));
+ }
+ }
+
+ /* FIX */
+ // a haladási naplóban olyan tankörök is szerepelnek, amik eddig nem...
+ // először gyűjtsük ki a szükséges tanköröket, és utána kérdezzük le az adataikat egyben
+ // ...
+
+ if (!is_array($TANKOROK['haladasi'])) $TANKOROK['haladasi'] = array();
+ if (is_array($ADAT['orarend']['tankorok']) && is_array($ADAT['haladasi']['tankorok'])) {
+ $TANKOROK = array_unique(array_map('intval',array_merge($ADAT['orarend']['tankorok'],$ADAT['haladasi']['tankorok'],$TANKOROK['haladasi'])));
+ } elseif (is_array($ADAT['haladasi']['tankorok'])) {
+ $TANKOROK = $ADAT['haladasi']['tankorok'];
+ } else {
+ $TANKOROK = $ADAT['orarend']['tankorok'];
+ }
+ if (count($TANKOROK)>0) $ADAT['tankorok'] = getTankorAdatByIds($TANKOROK);
+
+ /* tankörlétszámok */
+ if (is_array($ADAT['tankorok'])) foreach ($ADAT['tankorok'] as $_tankorId =>$_T) {
+ $ADAT['tankorLetszamok'][$_tankorId] = getTankorLetszam($_tankorId,array('refDt'=>$tolDt));
+ }
+ if (is_array($TANKOROK)) for ($i=0; $i<count($TANKOROK); $i++) {
+ $_tankorId = $TANKOROK[$i];
+ $ADAT['tankorLetszamok'][$_tankorId] = getTankorLetszam($_tankorId,array('refDt'=>$tolDt));
+ }
+ //--//
+ $ADAT['dt'] = $dt; // show this... ha a skin ajax
+
+ $ADAT['csengetesiRend'] = getCsengetesiRend();
+ $ADAT['telephelyId'] = $telephelyId;
+ $ADAT['napiMinOra'] = getMinOra();
+ $ADAT['napiMaxOra'] = getMaxOra();
+ $ADAT['hetiMaxNap'] = getMaxNap(array('haladasi'=>true,'tolDt'=>$tolDt,'igDt'=>$igDt));
+ $ADAT['tankorTipus'] = getTankorTipusok();
+ $ADAT['orakMost'] = getOrakMost();
+
+ $_napok = getNapok(array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ for ($i=0; $i<count($_napok); $i++) {
+ $ADAT['napok'][($i+1)] = getNapAdat($_napok[$i]);
+ }
+
+ if (_POLICY!='public' && is_array($TANKOROK)) {
+ if (__JEGYZETSZEREPTIPUS == 'diak') {
+ $JA['tankorok'] = getTankorByDiakId(__JEGYZETSZEREPID);
+ $JA['osztalyok'] = getDiakOsztalya(__JEGYZETSZEREPID,array('tanev'=>$tanev,'tolDt'=>$dt,'igDt'=>$dt));
+ } elseif (__JEGYZETSZEREPTIPUS == 'tanar') {
+ $JA['tankorok'] = getTankorByTanarId(__JEGYZETSZEREPID);
+ if (is_array($_OSZTALYA) && count($_OSZTALYA)>0) $JA['osztalyok'] = getOsztalyok(null,array('osztalyIds'=>$_OSZTALYA));
+ $JA['munkakozossegek'] = getMunkakozossegByTanarId(__JEGYZETSZEREPID, array('idonly'=>false));
+ }
+ for ($i=0; $i<count($JA['tankorok']); $i++) {$JA['tankorIdk'][] = $JA['tankorok'][$i]['tankorId'];}
+ for ($i=0; $i<count($JA['osztalyok']); $i++) {$JA['osztalyIdk'][] = $JA['osztalyok'][$i]['osztalyId'];}
+ for ($i=0; $i<count($JA['munkakozossegek']); $i++) {$JA['mkIdk'][] = $JA['munkakozossegek'][$i]['mkId'];}
+
+ $ADAT['dolgozat'] = getTankorDolgozatok($TANKOROK, TRUE, $_napok[0], $_napok[count($_napok)-1]);
+ $ADAT['jegyzet'] = getJegyzet(array('tolDt'=>$tolDt,'igDt'=>$igDt,'tankorIdk'=>$JA['tankorIdk'],'osztalyIdk'=>$JA['osztalyIdk']));
+
+ if (in_array(_POLICY,array('private','parent')) && (isset($diakId) && ((__DIAK===true && $diakId==_USERDIAKID) || __TANAR===true || __NAPLOADMIN===true ))) {
+ $ADAT['hianyzas'] = getHianyzasByDiakIds(array($diakId), array('tolDt' => $tolDt, 'igDt' => $igDt, 'result' => 'multiassoc', 'keyfield'=>'oraId'));
+ }
+ }
+ if ($skin=='ajax' && $_REQUEST['httpResponse']=='json') $_JSON['orarend']=$ADAT;
+
+//=====================================
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('tanarId','osztalyId','tankorId','mkId','diakId','telephelyId'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 7,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+// 'tolDt' => date('Y-m-d', strtotime('Monday', strtotime($_TANEV['kezdesDt']))),
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ 'lapozo' => 0
+ );
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'post'=>array('tolDt','mkId','tanarId'));
+ //$TOOL['orarendiHetSelect'] = array('tipus'=>'cella' , 'paramName' => 'het', 'post'=>array('targyId','tankorId','osztalyId','tanarId'), 'disabled'=>true);
+ if (($osztalyId!='' || $diakId!='') //&& _POLICY=='private'
+ ) {
+ $TOOL['diakSelect'] = array('tipus'=>'sor','paramName'=>'diakId', 'post'=>array('tolDt','osztalyId','telephelyId'));
+ } else {
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'sor', 'paramName'=>'mkId', 'post'=>array('tolDt','telephelyId'));
+ }
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'post'=>array('tolDt','telephelyId'));
+ $TOOL['osztalySelect']= array('tipus'=>'cella', 'paramName'=>'osztalyId', 'post'=>array('tolDt','telephelyId'));
+ $TOOL['teremSelect'] = array('tipus'=>'cella', 'paramName'=>'teremId', 'telephelyId'=>$telephelyId, 'post'=>array('tolDt','telephelyId'));
+ if ($osztalyId!='' || $tanarId!='' || $diakId!='' || $mkId!='' || $tankorId!='')
+ $TOOL['tankorSelect'] = array('tipus'=>'sor','paramName'=>'tankorId', 'tolDt'=>$tolDt, 'igDt'=>$igDt,
+ 'post'=>array('tolDt','osztalyId','targyId','tanarId','diakId','telephelyId'));
+
+ $TOOL['general']['post'] = $TOOLBARVARS;
+ getToolParameters();
+
+
+//**************************************
+ /* TESZT - savePageState() */
+ if ($preSetSave || $preSetLoad) {
+ $SAVESTATE = array();
+ foreach($TOOLBARVARS as $key) {
+ if (isset($$key) && intval($$key)>0) {
+ $SAVESTATE[] = $key.'-'.intval($$key);
+ $stateCounter++;
+ }
+ }
+ if ($stateCounter>0) setcookie($page.'_'.$sub.'_'.$f, implode('+',$SAVESTATE), 0, '', '', TRUE, TRUE);
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarend.php b/mayor-orig/www/policy/private/naplo/orarend/orarend.php
new file mode 100644
index 00000000..b0ed3b60
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarend.php
@@ -0,0 +1,8 @@
+<?php
+
+ global $ADAT;
+
+ if (is_array($ADAT))
+ putOrarend($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendBetolto-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarendBetolto-pre.php
new file mode 100644
index 00000000..df4db33a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendBetolto-pre.php
@@ -0,0 +1,80 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/share/print/pdf.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+// require_once('include/modules/naplo/share/diak.php');
+
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev == __TANEV) $TA = $_TANEV;
+ else $TA = getTanevAdat($tanev);
+ $ADAT['tanevDb'] = $tanevDb = tanevDbNev(__INTEZMENY, $tanev);
+ $ADAT['tolDt'] = $tolDt = readVariable($_POST['tolDt'], 'datetime', null);
+ $ADAT['igDt'] = $igDt = readVariable($_POST['igDt'], 'datetime', null);
+ $ADAT['orarendiHet'] = $orarendiHet = readVariable($_POST['orarendiHet'], 'numeric unsigned', null);
+ // A konvertáló állományok lekérdezése
+ $ADAT['convert'] = array();
+ foreach (glob("include/modules/naplo/orarend/convert-*.php") as $file) $ADAT['convert'][] = substr($file,38,-4);
+
+ //quickfix- ez így nem jo $ADAT['fileName'] = $fileName = fileNameNormal(readVariable($_POST['fileName'], 'emptystringnull', null));
+ $ADAT['fileName'] = $fileName = (readVariable($_POST['fileName'], 'emptystringnull', null));
+ $ADAT['conv'] = $conv = readVariable($_POST['conv'], 'emptystringnull', null, $ADAT['convert']);
+ $ADAT['force'] = readVariable($_POST['force'], 'bool', false);
+ $ADAT['lezaras'] = readVariable($_POST['lezaras'], 'bool', false);
+
+ // ----- action ----- //
+
+ if ($action == 'fileBetoltes') {
+ if (isset($fileName) && isset($conv) && isset($tanev) && isset($tolDt) && isset($igDt) && isset($orarendiHet)) {
+ if (file_exists($fileName)) {
+ require_once("include/modules/naplo/orarend/convert-$conv.php");
+ define('__CONVERTED', loadFile($ADAT));
+ if (count($OrarendiOra)==0) {
+ $_SESSION['alert'][] = 'message:wrong_data:OrarendiOra tömb üres';
+ } else {
+ if (__CONVERTED === true) {
+ orarendBetoltes($ADAT, $OrarendiOra, $OrarendiOraTankor);
+ } else {
+ $ADAT['showForceOption'] = true;
+ }
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:file_not_found:'.$fileName;
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:fileName,conv,tanev,tolDt,igDt,orarendiHet';
+ }
+ }
+
+ // ----- action ----- //
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev','post' => array('fileName','conv'));
+ $TOOL['datumTolIgSelect'] = array(
+ 'tipus' => 'sor', 'post' => array('tanev','fileName','conv','orarendiHet'),
+ 'tolParamName' => 'tolDt', 'igParamName' => 'igDt', 'hanyNaponta' => 1,
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($TA['kezdesDt']))),
+ 'igDt' => $TA['zarasDt'],
+ );
+ $TOOL['orarendiHetSelect'] = array(
+ 'tanev' => $tanev, 'tolDt' => $tolDt, 'igDt' => $igDt, 'tipus' => 'cella',
+ 'megjelenitendoHetek' => array(1,2,3,4,5,6,7,8,9,10),
+ 'post' => array('fileName','tanev','tolDt','igDt','conv'), 'paramName' => 'orarendiHet'
+ );
+ getToolParameters();
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendBetolto.php b/mayor-orig/www/policy/private/naplo/orarend/orarendBetolto.php
new file mode 100644
index 00000000..8d4105bd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendBetolto.php
@@ -0,0 +1,14 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ORAK, $ADAT;
+
+ if (is_array($ORAK)) putAdat($ORAK);
+
+ if (isset($file)) {
+ } else {
+ putFileValaszto($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes-pre.php
new file mode 100644
index 00000000..45ab709f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes-pre.php
@@ -0,0 +1,56 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev = __TANEV) $_TA = $_TANEV;
+ else $_TA = getTanevAdat($tanev);
+ if (isset($tanev)) {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/orarend.php');
+
+ require_once('include/share/date/names.php');
+
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', $_TA['kezdesDt']);
+
+ $ADAT['tanarok'] = getTanarok(array('tanev' => $tanev, 'result' => 'assoc'));
+ $ADAT['termek'] = getTermek(array('tipus'=>array()));
+ $ADAT['tankorok'] = getTankorok(array("tanev=$tanev"));
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorok'][$i]['tankorAdat'] = getTankorAdat($tankorId, $tanev);
+ $ADAT['tankorok'][$i]['hetiOraszam'] = 0;
+ for ($j = 0; $j < count($ADAT['tankorok'][$i]['tankorAdat'][$tankorId]); $j++) // Szemeszterenként végigmenve
+ $ADAT['tankorok'][$i]['hetiOraszam'] += $ADAT['tankorok'][$i]['tankorAdat'][$tankorId][$j]['oraszam'];
+ if ($j != 0) {
+ $ADAT['tankorok'][$i]['hetiOraszam'] /= $j;
+ }
+ $ADAT['tankorIndex'][$tankorId] = $i;
+ }
+
+ $ADAT['orarendiHetek'] = getOrarendiHetek(array('tanev' => $tanev, 'tolDt' => $dt, 'igDt' => $dt, 'csakOrarendbol'=>false));
+
+ // orarendiOra - tankor ellenőrzés
+ $ADAT['check']['orarendiOraTankor'] = checkOrarendiOraTankor($ADAT);
+ // tankör óraszám ellenőrzés
+ $ADAT['check']['tankorOraszam'] = checkTankorOraszam($ADAT);
+ // hiányzó termek
+ $ADAT['check']['hianyzoTermek'] = checkHianyzoTermek($ADAT);
+ // teremütközés
+ $ADAT['check']['teremUtkozes'] = checkTeremUtkozes($ADAT);
+
+ }
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array());
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('tanev'),'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'override' => true,'tolDt' => $_TA['kezdesDt'], 'igDt' => $_TA['zarasDt'],
+ );
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes.php b/mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes.php
new file mode 100644
index 00000000..6cd2b79f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendEllenorzes.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putEredmeny($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendModosito-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarendModosito-pre.php
new file mode 100644
index 00000000..831c0fa5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendModosito-pre.php
@@ -0,0 +1,277 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ $tanev = __TANEV;
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/oraModifier.php');
+ require_once('include/modules/naplo/share/helyettesitesModifier.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+
+ $targyId = readVariable($_POST['targyId'], 'id');
+ $tankorId = readVariable($_POST['tankorId'], 'id');
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ $tanarId = readVariable($_POST['tanarId'], 'id');
+ $diakId = readVariable($_POST['diakId'], 'id');
+ $teremId = readVariable($_POST['teremId'], 'id');
+ $mkId = readVariable($_POST['mkId'], 'id');
+ $het = readVariable($_POST['het'], 'numeric unsigned');
+
+ $refTolDt = readVariable($_POST['refTolDt'],'date');
+ $refIgDt = readVariable($_POST['refIgDt'],'date');
+
+ if ($refTolDt=='' || $refIgDt=='') $_SESSION['alert'][] = 'info:nincs_intervallum';
+
+ $ADAT['telephelyek'] = getTelephelyek();
+ $ADAT['haladasiModositando'] = readVariable($_POST['haladasiModositando'], 'bool');
+
+ $telephely = readVariable($_POST['telephely'], 'enum', null,$ADAT['telephelyek']);
+
+ $tolDt = readVariable($_POST['tolDt'], 'date');
+ $dt = readVariable($_POST['dt'], 'date'); // mutatni
+
+ if ($mkId=='' && $tanarId=='' && $diakId=='' && $osztalyId=='' && $tankorId=='' && $teremId=='') { // ez itt mind isnotset
+ if (__DIAK && defined('__USERDIAKID')) $diakId=__USERDIAKID;
+ if (__TANAR && defined('__USERTANARID')) $tanarId=__USERTANARID;
+ }
+
+ /* Az órarendihét kiválasztása */
+ if (isset($dt)) $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', strtotime($dt) )));
+ if (!isset($tolDt))
+ // A következő nap előtti hétfő
+ $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', time())));
+/*
+ if (strtotime($tolDt) > strtotime($_TANEV['zarasDt'])) $_tolDt = $_TANEV['zarasDt'];
+ elseif (strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $_tolDt = $_TANEV['kezdesDt'];
+ // és akkor korrigáljunk még egyszer
+ if (isset($_tolDt)) // A következő nap előtti hétfő
+ $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', time())));
+*/
+
+ if ($tolDt != '') $het = getOrarendiHetByDt($tolDt);
+ if ($het == '') $het = getLastOrarend();
+ $igDt = date('Y-m-d', mktime(0,0,0,date('m',strtotime($tolDt)), date('d',strtotime($tolDt))+6, date('Y',strtotime($tolDt))));
+
+ // itt ellenőrizzük, hogy a dt (referenciadátum) beleesik-e a tolIg be!
+ if (isset($tolDt) && isset($refTolDt) && isset($refIgDt)) {
+ if (strtotime($tolDt)<strtotime($refTolDt)) $_SESSION['alert'][] = 'message:wrong_data:hibás referenciadátum!';
+ if (strtotime($tolDt)>strtotime($refIgDt)) $_SESSION['alert'][] = 'message:wrong_data:hibás referenciadátum!';
+ if (strtotime($refTolDt)>strtotime($refIgDt)) $_SESSION['alert'][] = 'message:wrong_data:hibás referenciadátum!';
+ }
+ if ($action==='do') {
+ $HOT = readVariable($_POST['HALADASIORATOROL'],'id');
+ //dump($HOT);
+ for ($i=0; $i<count($HOT); $i++) {
+ oraElmarad($HOT[$i]);
+ }
+ for ($i=0; $i<count($_POST['ORARENDIORATOROL']); $i++) {
+ if ($_POST['ORARENDIORATOROL'][$i]!='') {
+ $_ADAT = array();
+ list($_het,$_nap,$_ora,$_tanarId,$_tolDt) = explode('%',$_POST['ORARENDIORATOROL'][$i]);
+ $_ADAT['tanarId'] = readVariable($_tanarId,'id',null);
+ $_ADAT['het'] = readVariable($_het,'id',null);
+ $_ADAT['nap'] = readVariable($_nap,'id',null);
+ $_ADAT['ora'] = readVariable($_ora,'id',null);
+ $_ADAT['tolDt'] = readVariable($_tolDt,'date',null);
+ orarendiOraTorol($_ADAT);
+ }
+ }
+
+ for ($i=0; $i<count($_POST['ORARENDIORAFELVESZ']); $i++) {
+ if ($_POST['ORARENDIORAFELVESZ'][$i]!='') {
+ $_ADAT = array();
+ list($_tanarId,$_osztalyJel,$_targyJel,$_tankorId) = explode('%',$_POST['ORARENDIORAFELVESZ'][$i]);
+ $_ADAT['tanarId'] = readVariable($_tanarId,'id',null);
+ $_ADAT['osztalyJel'] = readVariable($_osztalyJel,'string',null);
+ $_ADAT['targyJel'] = readVariable($_targyJel,'string',null);
+ $_ADAT['tankorId'] = readVariable($_tankorId,'id',null);
+ orarendiOraTankorFelvesz($_ADAT);
+ }
+ }
+
+ for ($i=0; $i<count($_POST['ORARENDMINUSZ']); $i++) {
+ if ($_POST['ORARENDMINUSZ'][$i]!='') {
+ $_ADAT = array();
+ list($_het,$_nap,$_ora,$_tanarId,$_dt,$_kulcsTolDt) = explode('.',$_POST['ORARENDMINUSZ'][$i]);
+ $_teremId = $_POST["T_".$_het."_".$_nap."_".$_ora]; // ez érdekes?
+ $_ADAT['het'] = readVariable($_het,'id',null);
+ $_ADAT['nap'] = readVariable($_nap,'id',null);
+ $_ADAT['ora'] = readVariable($_ora,'id',null);
+ $_ADAT['tanarId'] = readVariable($_tanarId,'id',null);
+ $_ADAT['tolDt'] = readVariable($refTolDt,'date');
+ $_ADAT['igDt'] = readVariable($refIgDt,'date');
+ $_ADAT['kulcsTolDt'] = readVariable($_kulcsTolDt,'date');
+ $_ADAT['dt'] = $_dt ; //readVariable($_POST['tolDt'],'date');
+
+ $_ADAT['orarendiOraKulcs'] = readVariable($refIgDt,'date');
+ /*
+ Az órarendből kiválasztott (órarendi)hét, nap, óra, tanárId alapján
+ a $ADAT['dt'] időben érvényes bejegyzés $ADAT['tolDt'] és $ADAT['igDt'] közé eső szakaszát
+ töröljük az órarendből
+ ezért: $ADAT['tolDt'] <= $ADAT['dt'] <= $ADAT['igDt'] - feltétel!
+ $_ADAT['dt'] = readVariable($_POST['tolDt'],'date',null,null,'('.strtotime($_ADAT['tolDt']).'<=strtotime($return) && strtotime($return) <= '.strtotime($_ADAT['igDt']).')');
+ Mégsem kell, mert lehet, hogy az intervallumon kívüli bejegyzés érvényessége belenyúlik az intervallumba
+ */
+ if (isset($_ADAT['het']) && isset($_ADAT['nap']) && isset($_ADAT['ora']) && isset($_ADAT['tanarId']) && isset($_ADAT['dt'])) orarendiOraLezar($_ADAT);
+ }
+ }
+
+ for ($i=0; $i<count($_POST['ORARENDPLUSZ']); $i++) {
+ if ($_POST['ORARENDPLUSZ'][$i]!='') {
+ $_ADAT = array();
+ list($_TB,$_het,$_nap,$_ora,$_Id) = explode('.',$_POST['ORARENDPLUSZ'][$i]);
+ $_teremId = readVariable($_POST["T_".$_het."_".$_nap."_".$_ora], 'id');
+ $_ADAT['het'] = readVariable($_het,'id');
+ $_ADAT['nap'] = readVariable($_nap,'id');
+ $_ADAT['ora'] = readVariable($_ora,'id');
+ $_ADAT['tolDt'] = readVariable($refTolDt,'date');
+ $_ADAT['igDt'] = readVariable($refIgDt,'date');
+ $_ADAT['tankorId'] = $_ADAT['blokkId'] =readVariable($_Id,'id'); // vagy tankör vagy blokk ID szerepel. a $_TB mondja meg
+ $_ADAT['teremId'] = readVariable($_teremId,'id',null);
+ $_ADAT['tanarId'] = readVariable($tanarId,'id',null);
+ $_ADAT['haladasiModositando'] = $ADAT['haladasiModositando'];
+ if ($_TB == 'T') pluszOraFelvesz($_ADAT);
+ elseif ($_TB == 'B') pluszBlokkFelvesz($_ADAT);
+ else $_SESSION['alert'][] = '::ajjajj';
+ }
+ }
+ /* A termeken külön */
+ foreach($_POST as $key=>$value) {
+ if ($value!='' && substr($key,0,2)=='T_') {
+ $_ADAT = array();
+ list($_pre,$_het,$_nap,$_ora,$_tanarId,$_kulcsTolDt) = explode('_',$key);
+ $_ADAT['teremId'] = readVariable($value, 'id');
+ $_ADAT['het'] = readVariable($_het,'id');
+ $_ADAT['nap'] = readVariable($_nap,'id');
+ $_ADAT['ora'] = readVariable($_ora,'id');
+ $_ADAT['tolDt'] = readVariable($refTolDt,'date');
+ $_ADAT['igDt'] = readVariable($refIgDt,'date');
+ $_ADAT['refDt'] = readVariable($refDt,'date');
+ $_ADAT['tanarId'] = readVariable($_tanarId,'id',null);
+dump($_ADAT);
+ teremModosit($_ADAT);
+ }
+ }
+ unset($_ADAT);
+ }
+
+
+ $ADAT['termek'] = getTermek(array('result'=>'assoc'));
+ $ADAT['tanarok'] = getTanarok(array('result'=>'assoc'));
+// =====================
+ if ($tankorId!='') {
+ $ADAT['orarend'] = getOrarendByTankorId($tankorId, array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ //$ADAT['toPrint'] = getTankorNev($tankorId); // vagy getTankornev külön?
+ } elseif($tanarId!='') {
+ $ADAT['orarend'] = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephely'=>$telephely,'orarendiOraTankor'=>true));
+ $ADAT['toPrint'] = $ADAT['tanarok'][$tanarId]['tanarNev'];
+ $ADAT['felvehetoTankorok'] = getTankorByTanarId($tanarId,$tanev, array('csakId'=>false,'tolDt'=>$refTolDt, 'igDt'=>$refIgDt));
+
+//========================
+/* illesszük ide az Órarendi óra tankör összerendezés 4.6 */
+ $ADAT['orarendioraTankor'] = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'orarendiOraTankor'=>true));
+//========================
+ $TANKORIDK = getTankorByTanarId($tanarId, __TANEV, array('csakId' => true, 'tolDt' => $tolDt, 'igDt' => $igDt, 'result' => 'indexed', 'tanarral' => false));
+ $ADAT['haladasi'] = getOrak($TANKORIDK, array('tolDt'=>$tolDt,'igDt'=>$igDt, 'result'=>'likeOrarend', 'elmaradokNelkul'=>false));
+ $ADAT['vanHaladasi'] = checkHaladasi(array('tolDt'=>$refTolDt,'igDt'=>$refIgDt));
+ } elseif($diakId!='') {
+ $ADAT['orarend'] = getOrarendByDiakId($diakId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ } elseif ($osztalyId!='') {
+ $ADAT['orarend'] = getOrarendByOsztalyId($osztalyId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ $OADAT = getOsztalyAdat($osztalyId);
+ $ADAT['toPrint'] = $OADAT['osztalyJel'];
+ } elseif ($mkId!='') {
+ $ADAT['orarend'] = getOrarendByMkId($mkId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephely'=>$telephely));
+ } elseif ($teremId!='') {
+ $ADAT['orarend'] = getOrarendByTeremId($teremId,'',array('tolDt'=>$tolDt,'igDt'=>$igDt,'telephely'=>$telephely));
+ }
+ else $ADAT = array();
+
+ $TANKOROK['erintett'] = $ADAT['orarend']['tankorok'];
+ $TANKOROK['mindenByDt'] = $ADAT['orarend']['mindenTankorByDt'];
+
+ $TANKOROK = (is_array($ADAT['orarend']['tankorok']) && is_array($ADAT['haladasi']['tankorok'])) ?
+ array_unique(array_merge($ADAT['orarend']['tankorok'],$ADAT['haladasi']['tankorok']))
+ :
+ $ADAT['orarend']['tankorok'];
+ $ADAT['tankorok'] = getTankorAdatByIds($TANKOROK);
+ /* tankörlétszámok */
+ if (is_array($ADAT['tankorok'])) foreach ($ADAT['tankorok'] as $_tankorId =>$_T) {
+ $ADAT['tankorLetszamok'][$_tankorId] = getTankorLetszam($_tankorId,array('refDt'=>$tolDt));
+ }
+
+ /* quick fix */
+ $_T = array();
+ //if (count($TANKOROK)==0) {
+ for ($i=0; $i<count($ADAT['felvehetoTankorok']); $i++) {
+ $_T[] = $ADAT['felvehetoTankorok'][$i]['tankorId'];
+ }
+ //} else $_T = $TANKOROK;
+ $ADAT['felvehetoBlokkok'] = getFelvehetoBlokk(array('tankorIds'=>$_T));
+
+ $ADAT['hibasOrak'] = getHibasOrak();
+
+ //--//
+ $ADAT['dt'] = $dt; // show this... ha a skin ajax
+
+ //$ADAT['napiMinOra'] = getMinOra();
+ $ADAT['napiMinOra'] = 0; // Ha még nincs is 0. óra, lehessen felvenni, ha kell
+ $ADAT['napiMaxOra'] = getMaxOra()+1; // +1 mindig legyen, ha nincs konstans, akkor is
+ if ($ADAT['napiMaxOra'] < __MAXORA_MINIMUMA) $ADAT['napiMaxOra'] = __MAXORA_MINIMUMA; // Legalább __MAXORA_MINIMUMA órát fel lehessen venni
+ $ADAT['hetiMaxNap'] = getMaxNap();
+ if ($ADAT['hetiMaxNap'] < __HETIMAXNAP_MINIMUMA) $ADAT['hetiMaxNap'] = __HETIMAXNAP_MINIMUMA;
+
+ $ADAT['tanarId'] = $tanarId;
+ $ADAT['refTolDt'] = $refTolDt;
+ $ADAT['refIgDt'] = $refIgDt;
+ $ADAT['tolDt'] = $tolDt;
+//=====================================
+
+ /* TOOL ME :) */
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('tanarId','osztalyId','tankorId','mkId','diakId','telephely','refTolDt','refIgDt'),
+ 'paramName' => 'tolDt', 'title' => 'ORARENDDT',
+ 'hanyNaponta' => 7,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+// 'tolDt' => date('Y-m-d', strtotime('Monday', strtotime($_TANEV['kezdesDt']))),
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+// 'tolDt' => $_TANEV['elozoZarasDt'],
+ 'igDt' => $_TANEV['kovetkezoKezdesDt'],
+ );
+ $TOOL['datumTolIgSelect'] = array(
+ 'tipus' => 'sor', 'title' => 'REFDT',
+ 'post'=>array('tolDt','tanarId','osztalyId','tankorId','mkId','diakId','telephely'),
+ 'tolParamName' => 'refTolDt', 'igParamName' => 'refIgDt', 'hanyNaponta' => 1,
+ 'tolDt' => $_TANEV['elozoZarasDt'],
+ 'igDt' => $_TANEV['kovetkezoKezdesDt'],
+ 'override' => true,
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+
+ //$TOOL['orarendiHetSelect'] = array('tipus'=>'cella' , 'paramName' => 'het', 'post'=>array('targyId','tankorId','osztalyId','tanarId'), 'disabled'=>true);
+// if ($osztalyId!='' || $diakId!='') {
+// $TOOL['diakSelect'] = array('tipus'=>'sor','paramName'=>'diakId', 'post'=>array('refTolDt','refIgDt','tolDt','osztalyId','telephely'));
+// } else
+// $TOOL['munkakozossegSelect'] = array('tipus'=>'sor', 'paramName'=>'mkId', 'post'=>array('refTolDt','refIgDt','tolDt','telephely'));
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'post'=>array('refTolDt','refIgDt','tolDt','telephely'));
+// $TOOL['osztalySelect']= array('tipus'=>'cella', 'paramName'=>'osztalyId', 'post'=>array('refTolDt','refIgDt','tolDt'));
+// $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephely', 'post'=>array('refTolDt','refIgDt','tolDt','mkId','tanarId'));
+// $TOOL['teremSelect'] = array('tipus'=>'cella', 'paramName'=>'teremId', 'telephely'=>$telephely, 'post'=>array('refTolDt','refIgDt','tolDt','telephely'));
+ if ($osztalyId!='' || $tanarId!='' || $diakId!='' || $mkId!='') $TOOL['tankorSelect'] = array('tipus'=>'sor','paramName'=>'tankorId', 'post'=>array('refTolDt','refIgDt','tolDt','osztalyId','targyId','tanarId','diakId','telephely'));
+ getToolParameters();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendModosito.php b/mayor-orig/www/policy/private/naplo/orarend/orarendModosito.php
new file mode 100644
index 00000000..e60986b5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendModosito.php
@@ -0,0 +1,8 @@
+<?php
+
+ global $ADAT;
+
+// if (count($_SESSION['alert'])==0)
+// if (!in_array('info:nincs_intervallum', $_SESSION['alert']) && is_array($ADAT['orarend']) && count($ADAT['orarend']) != 0) putOrarend($ADAT);
+ if ((!is_array($_SESSION['alert']) || !in_array('info:nincs_intervallum', $_SESSION['alert'])) && is_array($ADAT['felvehetoTankorok']) && count($ADAT['felvehetoTankorok']) > 0) putOrarend($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendTankor-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarendTankor-pre.php
new file mode 100644
index 00000000..68a32271
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendTankor-pre.php
@@ -0,0 +1,56 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ $tanev = __TANEV;
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ require_once('include/modules/naplo/share/orarend.php');
+
+ if ($action == 'orarendiOraTankorAssoc') {
+ orarendiOraTankorAssoc();
+ }
+
+ $targyId = readVariable($_POST['targyId'],'id');
+ $tankorId = readVariable($_POST['tankorId'],'id');
+ $osztalyId = readVariable($_POST['osztalyId'],'id');
+ $tanarId = readVariable($_POST['tanarId'],'id');
+ $tolDt = readVariable($_POST['tolDt'],'date');
+ $igDt = date('Y-m-d', mktime(0,0,0,date('m',strtotime($tolDt)), date('d',strtotime($tolDt))+6, date('Y',strtotime($tolDt))));
+
+ if($tanarId!='') {
+ $ORAREND = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt,'orarendiOraTankor'=>true));
+ $ORAREND['napiMinOra'] = getMinOra();
+ $ORAREND['napiMaxOra'] = $ORAREND['maxOra'] = getMaxOra();
+ $ORAREND['hetiMaxNap'] = getMaxNap();
+ $TANKOROK = getTankorByTanarId($tanarId,__TANEV,array('csakId'=>false,'result'=>'multiassoc','tolDt'=>$_TANEV['kezdesDt'],'igDt'=>$_TANEV['zarasDt']));
+ foreach($TANKOROK as $_tankorId => $_TA) {
+ $tankorBlokk = getTankorBlokkByTankorId($_tankorId, __TANEV, array('blokkNevekkel'=> true));
+ if (is_array($tankorBlokk ))
+ $TANKOROK[$_tankorId][0]['blokkAdat'] = $tankorBlokk;
+ }
+ dump($TANKOROK);
+ } else { $ORAREND = array(); }
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('tanarId','osztalyId','tankorId'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 7,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+ $TOOL['tanarSelect'] = array('tipus'=>'cella','paramName'=>'tanarId', 'post'=>array('het','tolDt'));
+ getToolParameters();
+
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendTankor.php b/mayor-orig/www/policy/private/naplo/orarend/orarendTankor.php
new file mode 100644
index 00000000..f1962014
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendTankor.php
@@ -0,0 +1,8 @@
+<?php
+
+ global $ORAREND,$TANKOROK;
+ global $tanarId;
+
+ putOrarend($ORAREND,$TANKOROK,$tanarId);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas-pre.php
new file mode 100644
index 00000000..c79371fb
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas-pre.php
@@ -0,0 +1,86 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ $ADAT['tanev'] = $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ if ($tanev = __TANEV) $_TA = $_TANEV;
+ else $_TA = getTanevAdat($tanev);
+
+ if (isset($tanev)) {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/orarend.php');
+
+ require_once('include/share/date/names.php');
+
+ $ADAT['napiMinOra'] = getMinOra(array('tanev' => $tanev));
+ $ADAT['napiMaxOra'] = getMaxOra(array('tanev' => $tanev));
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', $_TA['kezdesDt']);
+
+ $ADAT['tanarok'] = getTanarok(array('tanev' => $tanev, 'result' => 'assoc'));
+ $ADAT['termek'] = getTermek(array('tipus'=>array()));
+ $ADAT['tankorok'] = getTankorok(array("tanev=$tanev"));
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $ADAT['tankorok'][$i]['tankorAdat'] = getTankorAdat($tankorId, $tanev);
+ $ADAT['tankorIndex'][$tankorId] = $i;
+ }
+
+ $ADAT['orarendiHetek'] = getOrarendiHetek(array('tanev' => $tanev, 'tolDt' => $dt, 'igDt' => $dt,'felsohatar'=>99));
+ $ADAT['orak'] = array();
+ if (isset($ADAT['napiMaxOra']) && isset($ADAT['napiMinOra'])) {
+ for ($n = $ADAT['napiMinOra']; $n <= $ADAT['napiMaxOra']; $n++) $ADAT['orak'][] = $n;
+ } else {
+ $_SESSION['alert'][] = 'message:nincs órarend?:'.$ADAT['napiMaxOra'].', '.$ADAT['napiMinOra'];
+ $ADAT['orak'] = array(0,1,2,3,4,5,6,7,8,9);
+ }
+
+ if ($action == 'orarendTeremModositas') {
+
+ $ADAT['tanarId'] = readVariable($_POST['tanarId'], 'numeric unsigned', null);
+ $ADAT['het'] = readVariable($_POST['het'], 'numeric unsigned', null, $ADAT['orarendiHet']);
+ $ADAT['nap'] = readVariable($_POST['nap'], 'numeric unsigned', null, array(1,2,3,4,5,6,7));
+ $ADAT['ora'] = readVariable($_POST['ora'], 'numeric unsigned', null, $ADAT['orak']);
+
+ if (isset($ADAT['tanarId']) && isset($ADAT['het']) && isset($ADAT['nap']) && isset($ADAT['ora'])) {
+
+ $ADAT['termek'] = getTermek(array('result' => 'assoc'));
+ $ADAT['orarendiOra'] = getOrarendiOraAdat($ADAT);
+ $ADAT['foglaltTermek'] = getFoglaltTeremekByOrarendiOra($ADAT);
+
+ $ADAT['teremIds'] = array_keys($ADAT['termek']);
+
+ $ADAT['teremId'] = readVariable($_POST['teremId'], 'numeric unsigned', intval($ADAT['orarendiOra']['teremId']), $ADAT['teremIds']);
+ if ($ADAT['teremId'] != $ADAT['orarendiOra']['teremId']) {
+ if ($tanarId = teremModositas($ADAT)) { // ütközés esetén az ütkörő óra adatait
+ $ADAT['tanarId'] = $tanarId;
+ $ADAT['orarendiOra'] = getOrarendiOraAdat($ADAT);
+ } else {
+ $ADAT['orarendiOra']['teremId'] = $ADAT['teremId'];
+ }
+ $ADAT['foglaltTermek'] = getFoglaltTeremekByOrarendiOra($ADAT);
+ }
+
+ }
+
+ }
+
+ }
+
+ $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array());
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('tanev'),'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'override' => true,'tolDt' => $_TA['kezdesDt'], 'igDt' => $_TA['zarasDt'],
+ );
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas.php b/mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas.php
new file mode 100644
index 00000000..0473433c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendTeremModositas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putOrarendiOraValaszto($ADAT);
+ putTeremModosito($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes-pre.php b/mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes-pre.php
new file mode 100644
index 00000000..573fa8d8
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes-pre.php
@@ -0,0 +1,77 @@
+<?php
+
+// EZ A FILE ELAVULT LEHET!
+
+if (_RIGHTS_OK !== true) die();
+
+if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+} else {
+
+ $tanev = __TANEV;
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ $tolDt = readVariable($_POST['tolDt'],'datetime');
+
+ if (!isset($tolDt))
+ // A következő nap előtti hétfő
+ $tolDt = date('Y-m-d', strtotime('last Monday', strtotime('+1 days', time())));
+ if (strtotime($tolDt) > strtotime($_TANEV['zarasDt'])) $tolDt = $_TANEV['zarasDt'];
+ elseif (strtotime($tolDt) < strtotime($_TANEV['kezdesDt'])) $tolDt = $_TANEV['kezdesDt'];
+ if ($tolDt != '') $het = getOrarendiHetByDt($tolDt);
+ if ($het == '') $het = getLastOrarend();
+ $igDt = date('Y-m-d', mktime(0,0,0,date('m',strtotime($tolDt)), date('d',strtotime($tolDt))+6, date('Y',strtotime($tolDt))));
+
+ $ADAT['tanarok'] = getTanarok(array('result'=>'assoc'));
+
+// =====================
+ if ($tankorId!='') {
+ $ADAT['orarend'] = getOrarendByTankorId($tankorId, array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ //$ADAT['toPrint'] = getTankorNev($tankorId); // vagy getTankornev külön?
+ } elseif($tanarId!='') {
+ $ADAT['orarend'] = getOrarendByTanarId($tanarId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ $ADAT['toPrint'] = $ADAT['tanarok'][$tanarId]['tanarNev'];
+ } elseif($diakId!='') {
+ $ADAT['orarend'] = getOrarendByDiakId($diakId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ } elseif ($osztalyId!='') {
+
+ $ADAT['diakok'] = getDiakokByOsztaly($osztalyId, array('tanev' => $tanev, 'statuszonkent' => 0));
+
+ foreach ($ADAT['diakok'] as $_diakId => $dAdat) {
+ $D = array();
+ $D['orarend'] = getOrarendByDiakId($_diakId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ $D['tankorok'] = getTankorByDiakId($_diakId,__TANEV,array('csakId'=>false,'result'=>'multiassoc','tolDt'=>$tolDt,'igDt'=>$igDt));
+ $ADAT['diakOrarend'][$_diakId] = $D;
+ }
+
+ } elseif ($mkId!='') {
+ $ADAT['orarend'] = getOrarendByMkId($mkId,array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ } elseif ($teremId!='') {
+ $ADAT['orarend'] = getOrarendByTeremId($teremId,'',array('tolDt'=>$tolDt,'igDt'=>$igDt));
+ }
+ else $ADAT = array();
+
+ /* TOOL ME :) */
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('tanarId','osztalyId','tankorId'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 7,
+ 'tolDt' => date('Y-m-d', strtotime('Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+ $TOOL['osztalySelect']= array('tipus'=>'cella','paramName'=>'osztalyId', 'post'=>array('tolDt'));
+ getToolParameters();
+
+}
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes.php b/mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes.php
new file mode 100644
index 00000000..a2ea24cb
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/orarendUtkozes.php
@@ -0,0 +1,47 @@
+<?php
+
+ global $ADAT;
+
+
+ $err = 0;
+ if (is_array($ADAT['diakok']))
+ foreach ($ADAT['diakok'] as $_diakId => $dAdat) {
+ _check($ADAT['diakOrarend'][$_diakId],$dAdat,$err);
+ }
+
+ if ($err==0) echo 'nincs ütközés';
+
+
+function _check($ADAT,$dAdat,&$err) {
+ $TANKORADAT = $ADAT['tankorok'];
+ if (is_array($ADAT['orarend']['assoc']))
+ foreach($ADAT['orarend']['assoc'] as $het => $HETI) {
+ foreach ($HETI as $nap => $NAPI) {
+ foreach($NAPI as $ora => $ORA) {
+ if (count($ORA)>1) {
+ $db=0;
+ for ($j=0; $j<count($ORA); $j++) {
+ if (is_array($TANKORADAT[$ORA[$j]['tankorId']])) $db++;
+ }
+ if ($db>1) {
+ $err++;
+ echo $dAdat['diakNev'];
+ echo " hét:$het nap:$nap ora:$ora ütközés szám:".count($ORA)."db. <br/>";
+ echo '<ul>';
+ for ($j=0; $j<count($ORA); $j++) {
+ echo '<li>';
+ echo $TANKORADAT[$ORA[$j]['tankorId']][0]['tankorNev'];
+ echo '('.$TANKORADAT[$ORA[$j]['tankorId']][0]['jelenlet'].')';
+ echo $TANKORADAT[$ORA[$j]['tankorId']][0]['tankorId'];
+ echo '</li>';
+ }
+ echo '</ul>'."\n";
+ }
+ }
+ }
+ }
+ }
+}
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/szabadTerem-pre.php b/mayor-orig/www/policy/private/naplo/orarend/szabadTerem-pre.php
new file mode 100644
index 00000000..a5b8b2b5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/szabadTerem-pre.php
@@ -0,0 +1,31 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/share/date/names.php');
+
+ $tolDt = readVariable($_POST['tolDt'],'date',date('Y-m-d', strtotime('last Monday', strtotime('+1 days'))));
+ $igDt = date('Y-m-d', strtotime('next Friday',strtotime($tolDt)));
+
+ $ADAT['telephelyek'] = getTelephelyek();
+ $telephelyIds = array();
+ foreach ($ADAT['telephelyek'] as $tAdat) $telephelyIds[] = $tAdat['telephelyId'];
+ $telephelyId = readVariable($_POST['telephelyId'], 'id', null, $telephelyIds);
+ $ADAT['termek'] = getTermek(array('result' => 'assoc'));
+ $ADAT['teremIdk'] = getTermek(array('result' => 'idonly', 'tipus' => array('tanterem','szaktanterem','osztályterem','labor','gépterem','tornaterem','tornaszoba','fejlesztőszoba','tanműhely','előadó','könyvtár','díszterem','templom','egyéb'), 'telephelyId' => $telephelyId));
+ $ADAT['szabadTermek'] = getSzabadTermekByDtInterval($tolDt, $igDt, $ADAT['teremIdk']);
+ $ADAT['toPrint'] = 'Órarendi szabad termek';
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('tanarId','osztalyId','tankorId','mkId','diakId'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 7,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+ $TOOL['telephelySelect'] = array('tipus'=>'cella', 'paramName'=>'telephelyId', 'telephelyek'=>$ADAT['telephelyek'], 'post'=>array('tolDt'));
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/szabadTerem.php b/mayor-orig/www/policy/private/naplo/orarend/szabadTerem.php
new file mode 100644
index 00000000..4b3becbe
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/szabadTerem.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putOrarend($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/tanarOrarend-pre.php b/mayor-orig/www/policy/private/naplo/orarend/tanarOrarend-pre.php
new file mode 100644
index 00000000..51110328
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/tanarOrarend-pre.php
@@ -0,0 +1,49 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/orarend.php');
+// require_once('include/share/print/pdf.php');
+
+ $tolDt = readVariable($_POST['tolDt'], 'date', date('Y-m-d'));
+ $orarendiHet = readVariable($_POST['orarendiHet'], 'numeric unsigned', 1);
+ $felev = readVariable($_POST['felev'], 'numeric unsigned', 1);
+
+ $napiMinOra = getMinOra();
+ $napiMaxOra = getMaxOra();
+ $Orak = getTanarOrarend($orarendiHet, $felev,$tolDt);
+ $Tanarok = getTanarok();
+
+ if (isset($_POST['csv'])) {
+ if (OrarendFileGeneralasCSV($Tanarok, $Orak))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=export&file=tanarOrarend.csv'));
+ } elseif (isset($_POST['xls'])) {
+ if (OrarendFileGeneralasXLS($Tanarok, $Orak))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=export&file=tanarOrarend.xls'));
+ } elseif (isset($_POST['txt'])) {
+ if (OrarendFileGeneralasTXT($Tanarok, $Orak))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=export&file=tanarOrarend.txt'));
+ } elseif (isset($_POST['html'])) {
+ if (OrarendFileGeneralasHTML($Tanarok, $Orak))
+ header('Location: '.location('index.php?page=session&f=download&download=true&dir=export&file=tanarOrarend.html'));
+ }
+
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array('orarendiHet','felev'),
+ 'paramName' => 'tolDt', 'hanyNaponta' => 1,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+ $TOOL['orarendiHetSelect'] = array(
+ 'tanev' => $tanev, 'tolDt' => $tolDt, 'igDt' => $igDt, 'tipus' => 'cella',
+// 'megjelenitendoHetek' => array(1,2,3,4,5,6,7,8,9,10),
+ 'post' => array('fileName','tanev','tolDt','igDt','conv','felev'), 'paramName' => 'orarendiHet'
+ );
+ $TOOL['felevSelect'] = array(
+ 'tanev'=>$tanev,'tipus' => 'cella', 'post' => array('fileName','tanev','tolDt','igDt','conv','orarendiHet'), 'paramName' => 'felev'
+ );
+ getToolParameters();
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/tanarOrarend.php b/mayor-orig/www/policy/private/naplo/orarend/tanarOrarend.php
new file mode 100644
index 00000000..5c911be6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/tanarOrarend.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $Orak, $Tanarok, $napiMinOra, $napiMaxOra, $orarendiHet, $felev, $tolDt;
+
+ putTanarOrarend($Tanarok, $Orak, $napiMinOra, $napiMaxOra, $orarendiHet, $felev, $tolDt);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/orarend/termez-pre.php b/mayor-orig/www/policy/private/naplo/orarend/termez-pre.php
new file mode 100644
index 00000000..1d6ba091
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/termez-pre.php
@@ -0,0 +1,173 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN!==true && __VEZETOSEG!==true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ }
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/terem.php');
+
+ $ADAT['tolDt'] = $tolDt = readVariable($_GET['tolDt'],'date',readVariable($_POST['tolDt'],'date',date('Y-m-d')));
+
+ /* a program a megadott preferenciasorrend szerint teszi be az órákat a megadott helyekre */
+ // ezt a részt egyelőre nem használjuk semmire
+ $T = getTermek();
+ for ($i=0; $i<count($T); $i++) {
+ if (in_array($T[$i]['tipus'],array('tanári','tornaterem','díszterem','egyéb','könyvtár','labor'))) continue;;
+ if ($T[$i]['ferohely']>24) $NAGYTEREM[$T[$i]['telephelyId']][] = $T[$i]['teremId'];
+ elseif ($T[$i]['ferohely']>0) $KISTEREM[$T[$i]['telephelyId']][] = $T[$i]['teremId'];
+ }
+ //
+
+ $ADAT['terem'] = getTermek(array('result'=>'assoc'));
+ $ADAT['teremPreferencia'] = $P = getTeremPreferencia();
+
+ $ADAT['tanar'] = getTanarok(array('result'=>'assoc'));
+ $ADAT['targy'] = getTargyak(array('result'=>'assoc','arraymap'=>array('targyId')));
+
+ if ($action=='del') {
+ $delTeremPreferenciaId = readVariable($_GET['delTeremPreferenciaId'],'id');
+ $q = "DELETE FROM teremPreferencia WHERE teremPreferenciaId=%u";
+ $v = array($delTeremPreferenciaId);
+ $ret = db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo_intezmeny','values'=>$v));
+ $ADAT['teremPreferencia'] = getTeremPreferencia();
+ } elseif ($action=='run') {
+ $runTeremPreferenciaId = readVariable($_GET['runTeremPreferenciaId'],'id');
+ $P = getTeremPreferencia(array('teremPreferenciaId'=>$runTeremPreferenciaId));
+ //$q = "SELECT tanarId FROM teremPreferencia WHERE teremPreferenciaId=%u";
+ //$_tanarId = db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>array($runTeremPreferenciaId)),$lr);
+
+ for ($i=0; $i<count($P); $i++) {
+
+ $lr = db_connect('naplo');
+
+ $_t = $P[$i];
+ $_tanarId=$P[$i]['tanarId'];
+ $_targyId=$P[$i]['targyId'];
+ $_termek=explode(',',$P[$i]['teremStr']);
+
+ if ($_targyId>0) {
+ for ($t=0; $t<count($_termek); $t++) {
+
+ $q = "CREATE TEMPORARY TABLE __o__ SELECT * FROM orarendiOra WHERE teremId=%u AND igDt>='%s'";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>array($_termek[$t],$tolDt)),$lr);
+ $q = "UPDATE orarendiOra AS y LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel) LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+SET teremId=%u WHERE tanarId=%u AND teremId IS NULL AND targyId=%u
+AND (SELECT count(*) FROM __o__ AS x WHERE y.het=x.het AND y.nap=x.nap AND y.ora=x.ora)=0
+";
+ $v = array($_termek[$t],$_tanarId,$_targyId);
+ $db += db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>$v,'result'=>'affected rows'),$lr);
+ $q = "DROP TABLE __o__";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo'),$lr);
+ }
+ } else {
+ for ($t=0; $t<count($_termek); $t++) {
+ $q = "CREATE TEMPORARY TABLE __o__ SELECT * FROM orarendiOra WHERE teremId=%u AND igDt>='%s'";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>array($_termek[$t],$tolDt)),$lr);
+
+ $q = "UPDATE orarendiOra AS y SET teremId=%u WHERE tanarId=%u AND teremId IS NULL
+AND (SELECT count(*) FROM __o__ AS x WHERE y.het=x.het AND y.nap=x.nap AND y.ora=x.ora)=0
+";
+ $v = array($_termek[$t],$_tanarId);
+ $db += db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>$v,'result'=>'affected rows'),$lr);
+ $q = "DROP TABLE __o__";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo'),$lr);
+ }
+ }
+ db_close($lr);
+ $_SESSION['alert'][] = 'info:success:'.$db;
+ }
+
+ } elseif ($action=='beallitasokModositasa') {
+ if (is_array($_POST)) {
+ foreach($_POST as $k=>$v) {
+ if (strstr($k,'teremPreferenciaId')!==false) {
+ list($_rest,$_teremPreferenciaId) = explode('_',$k);
+ if ($_teremPreferenciaId!=$v) {
+ echo 'csere';
+ echo $_teremPreferenciaId.'==>'.$v;
+ $q = "UPDATE teremPreferencia SET teremPreferenciaId=%u WHERE teremPreferenciaId=%u";
+ $v = array($v,$_teremPreferenciaId);
+ $ret = db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo_intezmeny','values'=>$v,'result'=>'update'));
+ }
+ }
+ }
+ $ujTeremPreferenciaId = readVariable($_POST['ujTeremPreferenciaId'],'id');
+ $ujTanarId = readVariable($_POST['ujTanarId'],'id');
+ $ujTargyId = readVariable($_POST['ujTargyId'],'id');
+ $ujTeremStr = readVariable($_POST['ujTeremStr'],'string'); // ezt validálni kellene...
+ // terem validál
+ $_UJTERMEK = explode(',',$ujTeremStr);
+ for ($i=0; $i<count($_UJTERMEK); $i++) {
+ if (is_array($ADAT['terem'][trim($_UJTERMEK[$i])] )) {
+ $_TEREMOK[] = trim($_UJTERMEK[$i]);
+ }
+ }
+ $ujTeremStr = implode(',',$_TEREMOK);
+ //
+ if ($ujTeremStr!='') {
+ $q = "INSERT INTO teremPreferencia (teremPreferenciaId,tanarId,targyId,teremStr) VALUES (%u,%u,%s,'%s')";
+ if ($ujTargyId==0) $ujTargyId='NULL';
+ $v = array($ujTeremPreferenciaId,$ujTanarId,$ujTargyId,$ujTeremStr);
+ $ret = db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo_intezmeny','values'=>$v,'result'=>'update'));
+ }
+ }
+ /* RELOAD! */
+ $ADAT['teremPreferencia'] = $P = getTeremPreferencia();
+ } elseif ($action=='magic') {
+
+ $lr = db_connect('naplo');
+ for ($i=0; $i<count($P); $i++) {
+
+ $_t = $P[$i];
+ $_tanarId=$P[$i]['tanarId'];
+ $_targyId=$P[$i]['targyId'];
+ $_termek=explode(',',$P[$i]['teremStr']);
+
+ if ($_targyId>0) {
+ for ($t=0; $t<count($_termek); $t++) {
+ $q = "CREATE TEMPORARY TABLE __o__ SELECT * FROM orarendiOra WHERE teremId=%u AND igDt>='%s'";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>array($_termek[$t],$tolDt)),$lr);
+ $q = "UPDATE orarendiOra AS y LEFT JOIN orarendiOraTankor USING (tanarId,osztalyJel,targyJel) LEFT JOIN ".__INTEZMENYDBNEV.".tankor USING (tankorId)
+SET teremId=%u WHERE tanarId=%u AND teremId IS NULL AND targyId=%u
+AND (SELECT count(*) FROM __o__ AS x WHERE y.het=x.het AND y.nap=x.nap AND y.ora=x.ora)=0
+";
+ $v = array($_termek[$t],$_tanarId,$_targyId);
+ $db += db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>$v,'result'=>'affected rows'),$lr);
+ $q = "DROP TABLE __o__";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo'),$lr);
+ }
+ } else {
+ for ($t=0; $t<count($_termek); $t++) {
+ $q = "CREATE TEMPORARY TABLE __o__ SELECT * FROM orarendiOra WHERE teremId=%u AND igDt>='%s'";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>array($_termek[$t],$tolDt)),$lr);
+
+ $q = "UPDATE orarendiOra AS y SET teremId=%u WHERE tanarId=%u AND teremId IS NULL
+AND (SELECT count(*) FROM __o__ AS x WHERE y.het=x.het AND y.nap=x.nap AND y.ora=x.ora)=0
+";
+ $v = array($_termek[$t],$_tanarId);
+ $db += db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo','values'=>$v,'result'=>'affected rows'),$lr);
+ $q = "DROP TABLE __o__";
+ db_query($q, array('debug'=>false,'fv' => '****', 'modul' => 'naplo'),$lr);
+ }
+ }
+ }
+ db_close($lr);
+ $_SESSION['alert'][] = 'info:success:'.$db;
+
+ } // action
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post'=>array(),
+ 'paramName' => 'tolDt',
+ 'hanyNaponta' => 1,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+// 'tolDt' => date('Y-m-d', strtotime('Monday', strtotime($_TANEV['kezdesDt']))),
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+// 'tolDt' => $_TANEV['elozoZarasDt'],
+ 'igDt' => $_TANEV['kovetkezoKezdesDt'],
+ );
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/orarend/termez.php b/mayor-orig/www/policy/private/naplo/orarend/termez.php
new file mode 100644
index 00000000..8ff70034
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/orarend/termez.php
@@ -0,0 +1,6 @@
+<?php
+
+ global $ADAT;
+ putTermezo($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel-pre.php
new file mode 100644
index 00000000..6891375d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel-pre.php
@@ -0,0 +1,111 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG && !__DIAK
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/vizsga.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+
+ $ADAT['sorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'emptystringnull', 'bizonyítvány', getTargySorrendNevek(__TANEV));
+ $ADAT['zaroJegyTipusok'] = getEnumField('naplo_intezmeny', 'zaroJegy', 'jegyTipus');
+
+ $ADAT['magatartasIdk'] = getMagatartas();
+ $ADAT['szorgalomIdk']= getSzorgalom();
+// $tmp = getTargyakByDiakId($diakId); -- ezt sajnos itt nem tudjuk használni, mert erősen tanév függő
+ $tmp = getTargyak(array('targySorrendNev'=>$ADAT['sorrendNev']));
+ // reindex
+ $ADAT['targyak'] = array();
+ for ($i=0; $i<count($tmp); $i++) {
+ $ADAT['targyak'][$tmp[$i]['targyId']] = $tmp[$i];
+ }
+
+ // Melyik osztály diákjait nézzük
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ if (__OSZTALYFONOK && !isset($osztalyId)) $_POST['osztalyId'] = $ADAT['osztalyId'] = $osztalyId = $_OSZTALYA[0];
+ if (__DIAK) { // diák / szülő csak a saját adatait nézheti
+ $diakId = __USERDIAKID;
+ } elseif (isset($_POST['diakId']) && $_POST['diakId'] != '') {
+ $diakId = readVariable($_POST['diakId'],'numeric');
+ }
+
+ $ADAT['kepzesId'] = $kepzesId = readVariable($_POST['kepzesId'],'id');
+
+ if (!is_null($diakId)) {
+ define('__VEGZOS', diakVegzosE($diakId));
+ // intézmlényi adatok lekérdezése
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // diák adatai
+ $ADAT['diakAdat'] = getDiakAdatById($diakId);
+ // Na de ez így semmit nem jelent. Melyik osztályban, melyik tanévben?
+ // ez így nem elég!
+ $ADAT['diakKepzes'] = getKepzesByDiakId($diakId, array('result'=>'indexed')); // Ez a diák valaha volt összes képzése!!
+ if (isset($kepzesId)) {
+ $ADAT['kepzesOraterv'][$kepzesId] = getKepzesOraterv($kepzesId,array('arraymap'=>array('targyId','evfolyamJel')));
+ } else {
+ for ($i=0; $i<count($ADAT['diakKepzes']); $i++) {
+ $_kepzesId = $ADAT['diakKepzes'][$i]['kepzesId'];
+ $ADAT['kepzesOraterv'][$_kepzesId] = getKepzesOraterv($_kepzesId,array('arraymap'=>array('targyId','evfolyamJel')));
+ }
+ if ($i==1) $ADAT['kepzesId'] = $kepzesId = $_kepzesId;
+ }
+
+ // Erre nincs szükség
+ $ADAT['diakOsztaly'] = getDiakMindenOsztaly($diakId);
+ for($j=0; $j<count($ADAT['diakOsztaly']); $j++) {
+ $_osztalyId = $ADAT['diakOsztaly'][$j]['osztalyId'];
+ $ADAT['diakEvfolyamJel'][$_osztalyId] = getEvfolyamJel($_osztalyId);
+ }
+
+ /*
+ Zárójegyek évfolyamonként
+ Minden zárójegy, függetlenül attól milyen képzésen szerezte
+ */
+ $ADAT['zaroJegy'] = getDiakZaroJegyek($diakId,null,null,array('arraymap'=>array('diakId','targyId','evfolyamJel','felev')));
+
+ $_VIZSGA = getVizsgak(array('diakId'=>$diakId));
+ /* REINDEX */
+ for ($i=0; $i<count($_VIZSGA); $i++) {
+ $ADAT['zaroJegyVizsga'][$_VIZSGA[$i]['zaroJegyId']]=$_VIZSGA[$i];
+ }
+ }
+
+// $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') , 'post' => array('osztalyId', 'diakId', 'sorrendNev'));
+ if (!__DIAK) {
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('szemeszterId', 'sorrendNev'));
+ $TOOL['diakSelect'] = array(
+ 'tipus'=>'cella','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId','szemeszterId', 'sorrendNev'),
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ if (isset($diakId)) {
+ $TOOL['diakLapozo'] = array(
+ 'tipus'=>'sor','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId','szemeszterId', 'sorrendNev'),
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ $TOOL['kepzesSelect'] = array('tipus'=>'sor','paramName'=>'kepzesId', 'kepzesId'=>$kepzesId, 'post' => array('osztalyId','diakId'));
+ }
+
+ }
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId', 'diakId','kepzesId'));
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel.php b/mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel.php
new file mode 100644
index 00000000..0a24626a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/bizelomenetel.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $diakId, $ADAT;
+
+ if ($diakId != '') {
+ putDiakTanulmanyiElomenetel($diakId, $ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany-pre.php
new file mode 100644
index 00000000..75d84d3e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany-pre.php
@@ -0,0 +1,166 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME',strtotime(date('Y-m-d')));
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG && !__DIAK
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/vizsga.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+
+ $ADAT['sorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'emptystringnull', 'bizonyítvány', getTargySorrendNevek(__TANEV));
+ $ADAT['zaroJegyTipusok'] = getEnumField('naplo_intezmeny', 'zaroJegy', 'jegyTipus');
+
+ $ADAT['magatartasIdk'] = getMagatartas();
+ $ADAT['szorgalomIdk']= getSzorgalom();
+ // Az összes tárgy kell az előmenetel megjelenítéséhez...
+ $tmp = getTargyak();
+ // reindex
+ $ADAT['targyak'] = array();
+ for ($i=0; $i<count($tmp); $i++) {
+ $ADAT['targyak'][$tmp[$i]['targyId']] = $tmp[$i];
+ }
+
+ // Melyik osztály diákjait nézzük
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ if (__OSZTALYFONOK && !isset($osztalyId)) $_POST['osztalyId'] = $ADAT['osztalyId'] = $osztalyId = $_OSZTALYA[0];
+ // melyik szemeszter adatait nézzük
+ $szemeszterId = readVariable($_POST['szemeszterId'],'id',null);
+ if (!is_null($szemeszterId)) {
+ //$_TANEV2 = getTanevAdat($szemeszterId);
+ $_TANEV2 = getTanevAdatBySzemeszterId($szemeszterId); // itt volt egy TYPO
+ for ($i = 1; $i <= count($_TANEV2['szemeszter']); $i++) { // aktuális tanév szemeszter számai alapján... (???)
+ if (
+ strtotime($_TANEV2['szemeszter'][$i]['kezdesDt']) <= _TIME
+ && strtotime($_TANEV2['szemeszter'][$i]['zarasDt']) >= _TIME
+ ) {
+ $szemeszterId = $_POST['szemeszterId'] = $_TANEV2['szemeszter'][$i]['szemeszterId'];
+ $tanev = $_TANEV2['szemeszter'][$i]['tanev'];
+ $szemeszter = $_TANEV2['szemeszter'][$i]['szemeszter'];
+ break;
+ }
+ }
+ }
+
+ if (!is_null($szemeszterId)) $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+
+ if (__DIAK) { // diák / szülő csak a saját adatait nézheti
+ $diakId = __USERDIAKID;
+ } elseif (isset($_POST['diakId']) && $_POST['diakId'] != '') {
+ $diakId = readVariable($_POST['diakId'],'numeric');
+ }
+
+ if (!is_null($diakId)) {
+ // intézmlényi adatok lekérdezése
+ $ADAT['intezmeny'] = getIntezmenyByRovidnev(__INTEZMENY);
+ // diák adatai
+ $ADAT['diakAdat'] = getDiakAdatById($diakId);
+ $ADAT['diakKepzes'] = getKepzesByDiakId($diakId, array('result'=>'indexed')); // itt a valaha volt összes képzés lekérdezésre kerül!
+ if (count($ADAT['diakKepzes'])===1) { /* egyelőre csak ha egy képzésben vesz részt a diák */
+ $ADAT['kepzesOraterv'] = getKepzesOraterv($ADAT['diakKepzes'][0]['kepzesId'],array('arraymap'=>array('targyId','evfolyam','szemeszter')));
+ }
+
+ if (isset($szemeszterId)) {
+
+ define('__MODOSITHAT',($ADAT['szemeszterAdat']['statusz'] == 'aktív' && __NAPLOADMIN));
+ define('__ZARO_SZEMESZTER', $ADAT['szemeszterAdat']['szemeszter'] == $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']);
+ define('__FOLYO_SZEMESZTER',
+ strtotime($ADAT['szemeszterAdat']['kezdesDt']) <= _TIME
+ && strtotime($ADAT['szemeszterAdat']['zarasDt']) >= _TIME
+ );
+ // ---- action ---- //
+ if (__MODOSITHAT) {
+ $evfolyam = readVariable($_POST['evfolyam'],'numeric',null);
+ $targyId = readVariable($_POST['targyId'],'id',null);
+ if ($action == 'zaroJegyModositas' && isset($_POST['targyId']) && $_POST['targyId'] != '') {
+ // jogviszony ellenőrzés,
+ // majd beírás:
+ for ($i=0; $i<count($_POST['zaroJegy']); $i++) {
+ $X = explode('|',$_POST['zaroJegy'][$i]);
+ for ($j=0; $j<count($X); $j++) {
+ list($_key,$_val) = explode('=',$X[$j]);
+ $_JEGYEK[$i][$_key] = $_val;
+ }
+ if ($_JEGYEK[$i]['evfolyam']=='') $_JEGYEK[$i]['evfolyam'] = $evfolyam;
+ $_JEGYEK[$i]['targyId'] = $targyId;
+ }
+ zaroJegyBeiras($_JEGYEK);
+ }
+ }
+ // ---- action ---- //
+
+ // diák osztályai
+ $ADAT['diakAdat']['osztaly'] = getDiakOsztalya(($diakId), array('tanev' => $ADAT['szemeszterAdat']['tanev']));
+ /*
+ A tanítási hetek számát nem tankörönként vagy tárgyanként nézzük, hanem egységesen - tehát, ha több osztálya
+ van a tanulónak és azokban eltérő a tanítási hetek száma, akkor úgy is hibás lesz a mutatott kép.
+ */
+ if (!isset($ADAT['osztalyId'])) $ADAT['osztalyId'] = intval($ADAT['diakAdat']['osztaly'][0]['osztalyId']);
+ // A tanítási hetek száma csak az aktuális évben kérdezhető le (az osztalyJelleg alaján döntjük el, hogy végzős/érettségiző-e
+ if ($ADAT['szemeszterAdat']['tanev'] == __TANEV)
+ define('TANITASI_HETEK_SZAMA', getTanitasiHetekSzama(array('osztalyId'=>$ADAT['osztalyId'])));
+ /* Évfolyam meghatározás ha lehet
+ Peremfeltétel: adott legyen a szemeszter
+ */
+ $ADAT['diakOsztaly'] = getDiakokOsztalyai(array($diakId), array('tanev' => $ADAT['szemeszterAdat']['tanev']));
+ for($j=0; $j<count($ADAT['diakOsztaly'][$diakId]); $j++) {
+ $ADAT['diakEvfolyam'][] = getEvfolyam($ADAT['diakOsztaly'][$diakId][$j],$ADAT['szemeszterAdat']['tanev']);
+ $ADAT['diakEvfolyamJel'][] = getEvfolyamJel($ADAT['diakOsztaly'][$diakId][$j],$ADAT['szemeszterAdat']['tanev']);
+ }
+ // Ha vendégtanuló, akkor lehet, hogy nincs osztálya --> nincs évfolyama sem
+ if (!is_array($ADAT['diakEvfolyam']) || count($ADAT['diakEvfolyam'])==0) $ADAT['diakEvfolyam'] = $ADAT['diakEvfolyamJel'] = range(1,16);
+
+ // diák adott szemeszterének bizonyítványa
+ $ADAT['bizonyitvany'] = getDiakBizonyitvany($diakId, $ADAT);
+ $ADAT['hianyzas'] = getHianyzasOsszesitesByDiakId($diakId, $ADAT['szemeszterAdat']);
+ } else {
+ // diák eddigi "pályafutása" (több szemeszter adatai együtt)
+ $ADAT['bizonyitvany'] = getDiakBizonyitvany($diakId, $ADAT);
+ $ADAT['hianyzas'] = getHianyzasOsszesitesByDiakId($diakId);
+ }
+
+ $_VIZSGA = getVizsgak(array('diakId'=>$diakId));
+ /* REINDEX */
+ for ($i=0; $i<count($_VIZSGA); $i++) {
+ $ADAT['zaroJegyVizsga'][$_VIZSGA[$i]['zaroJegyId']]=$_VIZSGA[$i];
+ }
+ }
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') , 'post' => array('osztalyId', 'diakId', 'sorrendNev'));
+ if (!__DIAK) {
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('szemeszterId', 'sorrendNev'));
+ $TOOL['diakSelect'] = array(
+ 'tipus'=>'sor','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId','szemeszterId', 'sorrendNev'),
+ 'statusz' => array('vendégtanuló','jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ if (isset($diakId)) {
+ $TOOL['diakLapozo'] = array(
+ 'tipus'=>'sor','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId','szemeszterId', 'sorrendNev'),
+ 'statusz' => array('vendégtanuló','jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ }
+ }
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId', 'diakId'));
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany.php b/mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany.php
new file mode 100644
index 00000000..a8f104fa
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/bizonyitvany.php
@@ -0,0 +1,16 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $diakId, $szemeszterId, $ADAT;
+
+ if ($diakId != '') {
+ if (isset($szemeszterId)) {
+ putDiakBizonyitvany($diakId, $ADAT);
+ if (__MODOSITHAT) putZaroJegyModosito($diakId, $ADAT);
+ } else {
+ putDiakTanulmanyiOsszesito($diakId, $ADAT);
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/diak-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/diak-pre.php
new file mode 100644
index 00000000..154a9097
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/diak-pre.php
@@ -0,0 +1,100 @@
+<?php
+/*
+ Module: naplo
+*/
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG && !__DIAK) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+// if ($_POST['tankor'] != '') {
+// header('Location: '.location('index.php?page=naplo&sub=osztalyozo&f=tankor&tankor='.$_POST['tankor']));
+// }
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+
+/*
+ require_once('include/modules/naplo/share/tankorok.php');
+ require_once('include/modules/naplo/share/nevsor.php');
+*/
+ if(__DIAK) $diakId = __USERDIAKID;
+ elseif (isset($_POST['diakId'])) $diakId = readVariable($_POST['diakId'],'id');
+ elseif (isset($_GET['diakId']) ) $diakId = readVariable($_GET['diakId'],'id');
+
+ $osztalyId = readVariable($_POST['osztalyId'],'numeric');
+
+ if (isset($diakId)) {
+ $_POST['diakId'] = $diakId;
+ $ADAT['sulyozas'] = $sulyozas = readVariable(
+ $_POST['sulyozas'],'regexp',
+ readVariable($_SESSION['sulyozas'],'regexp',__DEFAULT_SULYOZAS,array('^[0-9]:[0-9]:[0-9]:[0-9]:[0-9]$')),
+ array('^[0-9]:[0-9]:[0-9]:[0-9]:[0-9]$'));
+ $_SESSION['sulyozas'] = $sulyozas;
+ // nem használjuk fel (fejlesztéshez)
+ $targySorrend = readVariable($_POST['targySorrend'], 'emptystringnull', 'napló', getTargySorrendNevek(__TANEV));
+ $diakNev = getDiakNevById($diakId);
+ $Jegyek = getDiakJegyek($diakId, array('sulyozas' => $sulyozas));
+ $ADAT['diakTargy'] = getTargyakByDiakId($diakId, array('tanev' => __TANEV, 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'], 'result' => 'indexed', 'filter' => 'kovetelmeny', 'targySorrendNev' => $targySorrend)); // OK
+ // Az aktuális szemeszter kiválasztása
+ if (__FOLYO_TANEV) {
+ $time = time();
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szemeszterAdat) {
+ if ($time > strtotime($szemeszterAdat['kezdesDt']) && $time < strtotime($szemeszterAdat['zarasDt']))
+ break;
+ }
+ if ($szemeszter !== false) {
+ define('__FOLYO_SZEMESZTER', $szemeszter);
+ $szemeszterKezdesDt = $szemeszterAdat['kezdesDt'];
+ $szemeszterZarasDt = $szemeszterAdat['zarasDt'];
+ }
+ }
+ if (!defined('__FOLYO_SZEMESZTER')) define('__FOLYO_SZEMESZTER',false);
+
+ if (isset($_POST['tolDt']) && $_POST['tolDt'] != '') $tolDt = readVariable($_POST['tolDt'], 'date');
+// elseif (isset($szemeszterKezdesDt)) $tolDt = $szemeszterKezdesDt;
+ else $tolDt = $_TANEV['kezdesDt'];
+
+ if (isset($_POST['igDt']) && $_POST['igDt'] != '') $igDt = readVariable($_POST['igDt'],'date');
+ elseif (isset($szemeszterZarasDt)) $igDt = $szemeszterZarasDt;
+ else $igDt = $_TANEV['zarasDt'];
+ $ADAT['zaroJegyek'] = getDiakZarojegyek($diakId,$_TANEV['tanev'],null,array('arraymap'=>array('diakId','targyId','tanev','szemeszter')));
+ $tmp = getTankorByDiakId($diakId);
+ $ADAT['targyTankor'] = reindex ( $tmp, array('targyId') );
+ }
+ if ($skin=='pda') {
+
+ } else {
+ if (!__DIAK) {
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post'=>array('tolDt', 'igDt', 'targySorrend'));
+ $TOOL['diakSelect'] = array('tipus'=>'cella','paramName'=>'diakId', 'post'=>array('osztalyId','tolDt', 'igDt', 'targySorrend'));
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName'=>'targySorrend', 'post'=>array('diakId','osztalyId','tolDt', 'igDt', 'targySorrend'));
+ if (__NAPLOADMIN) $TOOL['diakSelect']['statusz'] = array('jogviszonyban van', 'magántanuló', 'jogviszonya felfüggesztve', 'jogviszonya lezárva', 'vendégtanuló');
+ $TOOL['diakLapozo'] = array('tipus'=>'sor','paramName'=>'diakId', 'post'=>array('osztalyId','tolDt', 'igDt', 'targySorrend'));
+ }
+/* if (isset($diakId)) {
+ $TOOL['datumTolIgSelect'] = array('tipus' => 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'igDt',
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'hanyNaponta' => 'havonta', 'post'=>array('osztalyId', 'diakId', 'targySorrend'));
+ }
+*/
+ if (isset($osztalyId)) {
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=osztalyozo&f=tankor'),
+ 'titleConst' => array(''), 'post' => array('osztalyId'),
+ 'paramName'=>'diakId');
+ }
+ getToolParameters();
+ }
+
+// tankorSelect
+// targySorrendSelecct
+// diakSelect --> diakLapozo
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/diak.php b/mayor-orig/www/policy/private/naplo/osztalyozo/diak.php
new file mode 100644
index 00000000..3173d8a7
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/diak.php
@@ -0,0 +1,12 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $diakId, $diakNev, $tolDt, $igDt, $Jegyek, $Targyak, $ADAT;
+
+ if ($diakId != '' && is_array($Jegyek)) putTanuloJegyek($diakId, $diakNev, $Jegyek, $tolDt, $igDt, $ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat-pre.php
new file mode 100644
index 00000000..1672b48b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat-pre.php
@@ -0,0 +1,168 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__DIAK && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+
+ if (__DIAK) {
+ $diakId = __USERDIAKID; // Csak a saját dolgozatait nézheti meg
+ } else {
+ $diakId = readVariable($_POST['diakId'],'numeric unsigned',
+ readVariable($_GET['diakId'],'numeric unsigned',null)
+ );
+ $osztalyId = readVariable($_POST['osztalyId'],'numeric unsigned',
+ readVariable($_GET['osztalyId'],'numeric unsigned',null)
+ );
+ $tanarId = readVariable($_POST['tanarId'], 'numeric unsigned',
+ readVariable($_GET['tanarId'], 'numeric unsigned', __TANAR ? __USERTANARID : null)
+ );
+ }
+
+ // képkezeléshez
+ if (__SHOW_FACES_TF) $ADAT['kepMutat'] = true; // ez később finomítható.
+ else $ADAT['kepMutat'] = false;
+
+ // tankörök lekérdzése
+ if (isset($diakId)) $Tankorok = getTankorByDiakId($diakId, __TANEV);
+ elseif (isset($osztalyId)) $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV);
+ elseif (isset($tanarId)) $Tankorok = getTankorByTanarId($tanarId, __TANEV);
+ $tankorIds = array();
+ for ($i = 0; $i < count($Tankorok); $i++) $tankorIds[] = $Tankorok[$i]['tankorId'];
+
+ // Kiválasztott tankör azonosítója
+ $tankorId = readVariable($_POST['tankorId'], 'numeric unsigned',
+ readVariable($_GET['tankorId'], 'numeric unsigned', null, $tankorIds), $tankorIds
+ );
+
+ // A tankörökhöz tartozó dolgozatok lekérdezése
+ if (is_array($Tankorok)) {
+ $Dolgozat = getTankorDolgozatok($Tankorok);
+ $dolgozatIds = array_keys($Dolgozat);
+ // A kiválasztott dolgozat azonosítója
+ $dolgozatId = readVariable($_POST['dolgozatId'], 'id',
+ readVariable($_GET['dolgozatId'], 'id', null, $dolgozatIds), $dolgozatIds
+ );
+ }
+else {
+ $dolgozatId = readVariable($_POST['dolgozatId'], 'id',
+ readVariable($_GET['dolgozatId'], 'id', null)
+ );
+}
+ // Többi paraméter
+ if (isset($dolgozatId)) {
+ $Dolgozat = getDolgozat($dolgozatId);
+ $valaszthatoTankorok = getTankorByTargyId($Dolgozat['targyId'],__TANEV,array('idonly' => false, 'lista' => true));
+ } elseif (isset($tankorId)) $Dolgozat = getTankorDolgozatok($tankorId);
+// elseif (isset($diakId) || isset($osztalyId) || isset($tanarId)) $Dolgozat = getTankorDolgozatok($Tankorok);
+
+ // ------ action ----------------------------- //
+
+ if ($action == 'dolgozatBejelentes') {
+ if (defined('__USERTANARID') && __USERTANARID == $tanarId && isset($tankorId)) {
+ $dolgozatId = ujDolgozat(__USERTANARID, $tankorId);
+ $Dolgozat = getDolgozat($dolgozatId);
+ $valaszthatoTankorok = getTankorByTargyId($Dolgozat['targyId'],__TANEV,array('idonly' => false, 'lista' => true));
+ }
+ } elseif ($action == 'dolgozatTorles') {
+
+ }
+
+ define(__MODOSITHAT,
+ isset($dolgozatId)
+ && (
+ (__NAPLOADMIN && $_TANEV['statusz'] == 'aktív')
+ || (
+ __FOLYO_TANEV && __TANAR
+ && is_array($Dolgozat['tanarIds'])
+ && in_array(__USERTANARID, $Dolgozat['tanarIds'])
+ )
+ )
+ );
+
+ if (__MODOSITHAT) if ($action == 'dolgozatModositas') {
+
+ if (isset($_POST['dolgozatTorles'])) {
+ if (!$Dolgozat['ertekelt']) {
+ $action = 'dolgozatTorles';
+ if (dolgozatTorles($dolgozatId)) {
+ logAction(
+ array(
+ 'szoveg'=>'Dolgozat törlés: '.$dolgozatId,
+ 'table'=>'dolgozat'
+ )
+ );
+ unset($Dolgozat); unset($dolgozatId);
+ $_SESSION['alert'][] = 'info:success:dolgozat törlés';
+ }
+ }
+ } else {
+ $dolgozatNev = $_POST['dolgozatNev'];
+ $tervezettDt = readVariable($_POST['tervezett-dt'],'datetime',null);
+ if (dolgozatModositas($dolgozatId, $dolgozatNev, $tervezettDt)) {
+ logAction(
+ array(
+ 'szoveg'=>'Dolgozat módosítás (név, tervezett dátum): '.$dolgozatId,
+ 'table'=>'dolgozat'
+ )
+ );
+ $Dolgozat['dolgozatNev'] = $dolgozatNev;
+ $Dolgozat['tervezettDt'] = $tervezettDt;
+ $_SESSION['alert'][] = 'info:done:';
+ }
+ }
+
+ } elseif ($action == 'dolgozatTankorHozzarendeles') {
+
+ if (is_array($_POST['tankorIds']) && count($_POST['tankorIds']) > 0) {
+
+ $tankorIds = $_POST['tankorIds'];
+ $torlendoTankorIds = array_diff($Dolgozat['tankorIds'], $tankorIds);
+ $ujTankorIds = array_values(array_diff($tankorIds, $Dolgozat['tankorIds']));
+ dolgozatTankorHozzarendeles($dolgozatId, $torlendoTankorIds, $ujTankorIds);
+ $Dolgozat = getDolgozat($dolgozatId);
+
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field:tankorId:dolgozatTankorHozzarendeles';
+ }
+
+ } elseif ($action == 'dolgozatJegyekTorlese') {
+
+ foreach ($_POST as $name => $value) {
+ if (substr($name, 0, 8) == 'tankorId') $tankorId = substr($name, 8);
+ }
+ dolgozatJegyekTorlese($dolgozatId, $tankorId);
+ $Dolgozat = getDolgozat($dolgozatId);
+
+ }
+
+ define(__TOROLHET,
+ __MODOSITHAT
+ && !$Dolgozat['ertekelt']
+ );
+
+
+ // ------ action vége ------------------------- //
+
+ // TOOL
+ if (!__DIAK) {
+ $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array());
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array());
+ }
+ if (isset($osztalyId))
+ $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'post' => array('osztalyId'));
+ if (isset($osztalyId) or isset($tanarId) or isset($diakId))
+ $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $Tankorok, 'paramName' => 'tankorId', 'post' => array('osztalyId', 'tanarId', 'diakId'));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat.php b/mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat.php
new file mode 100644
index 00000000..cb3d52be
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/dolgozat.php
@@ -0,0 +1,16 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $tankorId, $diakId, $tanarId, $osztalyId, $Dolgozat, $dolgozatId, $valaszthatoTankorok, $Tanarok;
+ global $ADAT;
+
+ if ($dolgozatId != '') {
+ putDolgozat($Dolgozat, $valaszthatoTankorok, $Tanarok, $ADAT);
+ } elseif (is_array($Dolgozat)) {
+ if (defined('__USERTANARID') && __USERTANARID == $tanarId && isset($tankorId))
+ putDolgozatBejelento($tankorId);
+ putDolgozatLista($Dolgozat);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/jegy-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/jegy-pre.php
new file mode 100644
index 00000000..f0f861c9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/jegy-pre.php
@@ -0,0 +1,120 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ $jegyId = readVariable($_POST['jegyId'], 'id', readVariable($_GET['jegyId'], 'id'));
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/jegy.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ if (isset($jegyId) && ($jegy = getJegyInfo($jegyId))) {
+
+ if (__DIAK && $jegy['diakId'] != __USERDIAKID) {
+ $_SESSION['alert'][] = 'page:illegal_access';
+ } else {
+
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+
+ // kép
+ $ADAT['kepMutat'] = __SHOW_FACES_TF;
+ $ADAT['jegyTipusok'] = getEnumField('naplo','jegy','jegyTipus');
+
+
+ if (// admin bármikor módosíthat jegyet
+ ($_TANEV['statusz'] == 'aktív' && __NAPLOADMIN)
+ || (// a tankör tanárai az _OSZTALYOZO határidő szerint módosíthatnak jegyet!
+ __FOLYO_TANEV &&
+ __TANAR &&
+ in_array(__USERTANARID, $jegy['tanár']['idk']) and
+ (strtotime(_OSZTALYOZO_HATARIDO) <= strtotime($jegy['dt']))
+ )
+ ) {
+
+ define('_MODOSITHAT', true);
+ global $_JSON;
+
+ // --------- action -------------- //
+ if ($action == 'jegyModositas' || $action == 'jegyTorles') {
+ $_tipus = readVariable($_POST['tipus'],'numeric unsigned','NULL');
+
+ if (isset($_POST['jegyTorles']) || $_tipus == 0 || $action == 'jegyTorles') {
+ // jegy törlése
+ $action = 'jegyTorles';
+
+ if (jegyTorles($jegyId, $jegy)) { // az eredeti jegyId és már lekérdezett jegy tömb alapján
+ if ($skin != 'ajax') {
+ header('Location: '.location('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$jegy['tankorId']));
+ die();
+ } else {
+ $_JSON = array('action' => $action, 'result' => true, 'data' => array('jegyId' => $jegyId));
+ //$_SESSION['alert'][] = 'info:delete_success:jegyTorles:'.$jegyId;
+ unset($jegyId); unset($jegy);
+ }
+ }
+ } else { // vagy módosítás:
+ list($__jegyTipus,$__jegy) = explode(':', $_POST['jegy']);
+ $_jegy = readVariable($__jegy,'regexp',null,array('^[0-9]*\.[0-9]$'));
+ $_jegyTipus = readVariable($__jegyTipus, 'enum', null, $ADAT['jegyTipusok']);
+ $_megjegyzes = readVariable($_POST['megjegyzes'],'sql');
+ $_oraId = readVariable($_POST['oraId'],'id',null);
+ $_dolgozatId = readVariable($_POST['dolgozatId'],'id',null);
+ // csak (1,2),(3,4,5) váltás, ill. törlés (0) a megengedett
+ if (($_tipus-2.5)*($jegy['tipus']-2.5) < 0) $_tipus = $jegy['tipus'];
+ if ((!is_null($_jegyTipus) && __JEGYTIPUS_VALTHATO === true) || $_jegyTipus == $jegy['jegyTipus']) {
+ if (jegyModositas($jegyId, $_jegy, $_jegyTipus, $_tipus, $_oraId, $_dolgozatId, $_megjegyzes)) {
+ logAction(
+ array(
+ 'szoveg'=>"Jegy módosítás: $jegyId, ".$jegy['diakId'].", $_jegy, $_tipus, ".$jegy['tankorId'].", ".$jegy['dt'].", $_oraId, $_dolgozatId",
+ 'table'=>'jegy'
+ ),
+ $lr
+ );
+ $jegy = getJegyInfo($jegyId, __TANEV, $lr);
+ $_JSON = array(
+ 'action' => $action, 'result' => true,
+ 'data' => array(
+ 'jegyId'=>$jegyId, 'tipus'=>$jegy['tipus'], 'diakId'=>$jegy['diakId'], 'dolgozatId'=>$jegy['dolgozatId'],
+ 'jegyStr'=>$KOVETELMENY[ $jegy['jegyTipus'] ][ $jegy['jegy'] ]['rovid']
+ )
+ );
+ }
+ } else { $_SESSION['alert'][] = 'message:wrong_data:A jegyTipus nem módosítható!:'.$_jegyTipus.' - '.$jegy['jegyTipus']; }
+
+ }
+
+ }
+ // --------- action vége -------- //
+
+ } else {
+ define('_MODOSITHAT', false);
+ // ezeket minek üzenjük? nem is akarta senki módosítani:
+/*
+ if ($_TANEV['statusz'] != 'aktív') $_SESSION['alert'][] = 'info:nem_modosithato:nem aktív tanév';
+ elseif (__FOLYO_TANEV===false) $_SESSION['alert'][] = 'info:nem_modosithato:nem folyó tanév';
+ elseif (__TANAR===false) $_SESSION['alert'][] = 'info:nem_modosithato:nem tanár';
+ elseif (!in_array(__USERTANARID, $jegy['tanár']['idk'])) $_SESSION['alert'][] = 'info:nem_modosithato:nem tanítja';
+ elseif (strtotime(_OSZTALYOZO_HATARIDO) > strtotime($jegy['dt'])) $_SESSION['alert'][] = 'info:nem_modosithato:lejárt a módosítási határidő';
+*/
+ }
+
+ if (isset($jegyId)) { // ajax-os törlés esetén lehet, hogy már nincs jegy...
+ $Orak = getOraAdatByTankor($jegy['tankorId']);
+ $Dolgozatok = getTankorDolgozatok($jegy['tankorId']);
+ }
+
+ }
+
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:jegy:jegyId='.$jegyId;
+ unset($jegyId);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/jegy.php b/mayor-orig/www/policy/private/naplo/osztalyozo/jegy.php
new file mode 100644
index 00000000..f6dd872f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/jegy.php
@@ -0,0 +1,12 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $id, $jegyId, $jegy, $Orak, $Dolgozatok, $ADAT;
+
+ if (isset($jegyId)) putJegyInfo($jegy, $Orak, $Dolgozatok, $ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo-pre.php
new file mode 100644
index 00000000..e88346aa
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo-pre.php
@@ -0,0 +1,6 @@
+<?php
+
+ if (__DIAK) header('Location: '.location('index.php?page=naplo&sub=osztalyozo&f=diak'));
+ else header('Location: '.location('index.php?page=naplo&sub=osztalyozo&f=tankor'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo.php b/mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/osztalyozo.php
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/stat-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/stat-pre.php
new file mode 100644
index 00000000..c0a14323
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/stat-pre.php
@@ -0,0 +1,307 @@
+<?php
+
+/* EZ NEM CSAK OSZTALYOZO!!!!!!! */
+
+ if (_RIGHTS_OK !== true) die();
+
+ define('_TIME', strtotime(date('Y-m-d')));
+
+ if (!defined('__SHOWSTATZARASMINDENTARGY')) define('__SHOWSTATZARASMINDENTARGY',false);
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG && !__DIAK
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/jegy.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+
+ $ADAT['magatartasTargyIdk'] = getMagatartas();
+ $ADAT['szorgalomTargyIdk'] = getSzorgalom();
+
+ $ADAT['beallitasok']['targyak'] = readVariable($_POST['beallitasok_targyak'],'bool',true);
+ $ADAT['beallitasok']['oraszamok'] = readVariable($_POST['beallitasok_oraszamok'],'bool',true);
+ $ADAT['beallitasok']['zaradek'] = readVariable($_POST['beallitasok_zaradek'],'bool',false);
+
+ // melyik szemeszter adatait nézzük
+ if (isset($_POST['szemeszterId']) && $_POST['szemeszterId'] != '') {
+ $szemeszterId = readVariable($_POST['szemeszterId'],'id');
+ } elseif (!isset($_POST['szemeszterId'])) {
+ for ($i = 1; $i <= count($_TANEV['szemeszter']); $i++) {
+ if (
+ strtotime($_TANEV['szemeszter'][$i]['kezdesDt']) <= _TIME
+ && strtotime($_TANEV['szemeszter'][$i]['zarasDt']) >= _TIME
+ ) {
+ $_POST['szemeszterId'] = $szemeszterId = $_TANEV['szemeszter'][$i]['szemeszterId'];
+ break;
+ }
+ }
+ }
+ if (isset($_POST['sorrendNev']) && $_POST['sorrendNev'] != '')
+ $ADAT['sorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'emptystringnull', '', getTargySorrendNevek(__TANEV));
+// $ADAT['telephelyId'] = $telephelyId = readVariable($_POST['telephelyId'], 'id',__TELEPHELYID);
+
+ $ADAT['telephelyAdat'] = getTelephelyek(array('result' => 'assoc', 'keyfield' => 'telephelyId'));
+ $ADAT['telephelyIds'] = array_keys($ADAT['telephelyAdat']);
+ $ADAT['telephelyId'] = $telephelyId = readVariable($_GET['telephelyId'], 'id', readVariable(
+ $_POST['telephelyId'], 'id', (isset($_POST['telephelyId'])?null:readVariable(__TELEPHELYID,'id')), $ADAT['telephelyIds']
+ ), $ADAT['telephelyId']);
+
+ if (!__DIAK) {
+ if (isset($_POST['osztalyId']) && $_POST['osztalyId'] != '') { $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'],'id'); }
+ elseif (__OSZTALYFONOK && !isset($_POST['osztalyId'])) { $osztalyId = $ADAT['osztalyId'] = $_POST['osztalyId'] = $_OSZTALYA[0]; }
+ } // diák, szülő csak az iskola statisztikát látja
+
+ if (isset($szemeszterId)) {
+
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ $Osztalyok = getOsztalyok($ADAT['szemeszterAdat']['tanev'],array('result' => 'indexed', 'minden'=>false, 'telephelyId' => $telephelyId));
+ if (isset($osztalyId)) {
+ define('TANITASI_HETEK_SZAMA', getTanitasiHetekSzama(array('osztalyId'=>$osztalyId)));
+ define('__OSZTALYFONOKE', (__OSZTALYFONOK === true && in_array($osztalyId, $_OSZTALYA)));
+ $ADAT['evfolyam'] = getEvfolyam($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+ $ADAT['evfolyamJel'] = getEvfolyamJel($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+ $ADAT['kovetkezoEvfolyamJel'] = getKovetkezoEvfolyamJel($ADAT['evfolyamJel']);
+ $ADAT['utolsoTanitasiNap'] = getOsztalyUtolsoTanitasiNap($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+
+ // magatartás és szorgalom jegyek beírásának jogosultsága
+ if ($ADAT['szemeszterAdat']['statusz'] != 'aktív') {
+ define('_BEIRHATO', false);
+ } else {
+ $time = time();
+ // Keresünk bitonyítvány írás időszakot
+ foreach ($ADAT['szemeszterAdat']['idoszak'] as $i => $idoszakAdat) {
+ if (
+ $idoszakAdat['tipus'] == 'bizonyítvány írás'
+ && strtotime($idoszakAdat['tolDt']) <= $time
+ && $time <= strtotime($idoszakAdat['igDt'])
+ ) {
+ $idoszak = $idoszakAdat;
+ break;
+ }
+ }
+
+ if (__NAPLOADMIN) define('_BEIRHATO', true);
+ elseif (__VEZETOSEG) define('_BEIRHATO', (isset($idoszak['tolDt'])) );
+ elseif (__OSZTALYFONOKE) define('_BEIRHATO', (isset($idoszak['tolDt'])) );
+ else define('_BEIRHATO', false);
+
+ if ((__VEZETOSEG || __OSZTALYFONOKE) && !isset($idoszak['tolDt'])) $_SESSION['alert'][] = 'info:idoszak_bizir_nincs';
+
+ }
+ /* ---- action ---- */
+
+ if (_BEIRHATO && $action == 'jegyLezaras') {
+
+ $zaroJegyek = $_POST['zaroJegy'];
+ if (is_array($zaroJegyek)) {
+ /* Prepare */
+ for($i=0; $i<count($zaroJegyek); $i++) {
+ $X = explode('|',$zaroJegyek[$i]);
+ for ($j=0; $j<count($X); $j++) {
+ list($key,$value) = explode('=',$X[$j]);
+ $beirandoJegyek[$i][$key] = $value;
+ }
+
+ }
+ zaroJegyBeiras($beirandoJegyek);
+ }
+ $zaradekAdat = $_POST['zaradekAdat'];
+ if (is_array($zaradekAdat)) {
+ foreach ($zaradekAdat as $zAdat) {
+ if ($zAdat != '') {
+ list($_diakId, $_zaradekIndex, $zaradekId, $csereStr) = explode('/', $zAdat); // --TODO per jel hibás lehet!
+ if ($zaradekId == '') $zaradekId = null;
+ if (in_array($_zaradekIndex, array_values($ZaradekIndex['konferencia bukás']))) $csere = array('%évfolyam%' => $ADAT['evfolyamJel'].".");
+ else $csere = array('%évfolyam%' => ($ADAT['kovetkezoEvfolyamJel']).".", '%évfolyam betűvel%' => ($_EVFOLYAMJEL_BETUVEL[ $ADAT['kovetkezoEvfolyamJel'] ]).".");
+ $csere['%tantárgy%'] = str_replace('=',', ',$csereStr); // TODO, és-re cserélhetjük vessző helyett
+ zaradekRogzites(array('diakId'=>$_diakId, 'zaradekId' => $zaradekId, 'zaradekIndex'=>$_zaradekIndex, 'dt'=>$ADAT['utolsoTanitasiNap'], 'csere' => $csere));
+ }
+ }
+ }
+
+ }
+
+ /* ---- action vége ---- */
+
+ // osztály statisztikák
+ $ADAT['osztaly'] = getOsztalyAdat($osztalyId, $ADAT['szemeszterAdat']['tanev']);
+
+ if (!isset($ADAT['osztalyId'])) $ADAT['osztalyId'] = $ADAT['osztaly'][0]['osztalyId'];
+ // Az adott szemeszterben létezik-e az osztály
+ for ($i = 0; ($i < count($Osztalyok) && $Osztalyok[$i]['osztalyId'] != $osztalyId); $i++);
+ if ($i < count($Osztalyok)) {
+ $ADAT['diakok'] = getDiakok(array(
+ 'osztalyId' => $osztalyId, 'tanev' => $ADAT['szemeszterAdat']['tanev'],
+ 'tolDt' => $ADAT['szemeszterAdat']['tanevAdat']['kezdesDt'], 'igDt' => $ADAT['szemeszterAdat']['zarasDt'], // A tanév kezdetétől a szemeszter végéig
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ ));
+ $ADAT['zaraskoriDiakIds'] = getDiakok(array(
+ 'osztalyId' => $osztalyId, 'tanev' => $ADAT['szemeszterAdat']['tanev'],
+ 'tolDt' => $ADAT['szemeszterAdat']['zarasDt'], 'igDt' => $ADAT['szemeszterAdat']['zarasDt'],
+ 'statusz' => array('jogviszonyban van','magántanuló'), 'result' => 'idonly'
+// 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva'), 'result' => 'idonly'
+ ));
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) $ADAT['diakIds'][] = $ADAT['diakok'][$i]['diakId'];
+ $ADAT['targyak'] = getTargyakByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat'], $osztalyId, $sorrendNev); // TODO
+ $targyIds = array($ADAT['magatartasTargyIdk'][0], $ADAT['szorgalomTargyIdk'][0]);
+ if (is_array($ADAT['targyak'])) foreach ($ADAT['targyak'] as $index => $tAdat) $targyIds[] = $tAdat['targyId'];
+ //$ADAT['targyAdat'] = getTargyAdatByIds($ADAT['targyak']);
+ $ADAT['targyAdat'] = getTargyAdatByIds($targyIds);
+ $ADAT['tanarok'] = getTanarokByDiakIds($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+ $ADAT['evkoziJegyAtlag'] = getDiakJegyAtlagok($ADAT['diakIds']); // évközi!
+ $ADAT['jegyek'] = getDiakZarojegyekByEvfolyamJel($ADAT['diakIds'], $ADAT['evfolyamJel'], $ADAT['szemeszterAdat'], array('felevivel'=>true)); // TODO: ellenőrzés: evfolyam-->evfolyamJel
+ $ADAT['atlagok'] = getDiakZarojegyAtlagok($ADAT['zaraskoriDiakIds'], $ADAT['szemeszterAdat']['tanev'], $ADAT['szemeszterAdat']['szemeszter']);
+ $ADAT['tantargyiAtlagok'] = getTargyZarojegyAtlagok($ADAT['zaraskoriDiakIds'], $ADAT['szemeszterAdat']['tanev'], $ADAT['szemeszterAdat']['szemeszter']);
+ $ADAT['hianyzas'] = getDiakHianyzasOsszesites($ADAT['diakIds'], $ADAT['szemeszterAdat']);
+ $ADAT['zaradekok'] = getDiakKonferenciaZaradekok($ADAT['diakIds'], $ADAT['utolsoTanitasiNap']);
+ $ADAT['adhatoZaradekok'] = getZaradekokByTipus('konferencia, konferencia bukás');
+
+ //foreach ($ADAT['hianyzas'] as $diakId => $hianyzasAdat) {
+ for ($i=0; $i<count($ADAT['diakIds']); $i++) {
+ $diakId = intval($ADAT['diakIds'][$i]);
+ $hianyzasAdat = $ADAT['hianyzas'][$diakId];
+ // A hozott hiányzások kezelése átkerült a központi getDiakHianyzasOsszesites
+ //$HOZOTT = getDiakHozottHianyzas($diakId,array('tanev'=>$tanev));
+
+//2013NKT if (_KESESI_IDOK_OSSZEADODNAK===true)
+ $ADAT['hianyzas'][$diakId]['igazolatlan']
+ = $hianyzasAdat['igazolatlan']
+ = floor($hianyzasAdat['kesesPercOsszeg']/45)+intval($hianyzasAdat['igazolatlan']);
+
+ //$ADAT['hianyzas'][$diakId]['igazolatlan'] += intval($HOZOTT['igazolatlan']['db']);
+ //$ADAT['hianyzas'][$diakId]['igazolt'] += intval($HOZOTT['igazolt']['db']);
+
+ if (in_array($diakId, $ADAT['zaraskoriDiakIds'])) { // Csak a záráskori névsort vesszük figyelembe
+ $ADAT['stat']['igazolt'] += $hianyzasAdat['igazolt'];
+ $ADAT['stat']['igazolatlan'] += $hianyzasAdat['igazolatlan'];
+ //$ADAT['stat']['igazolatlan'] += intval($HOZOTT['igazolatlan']['db']);
+ //$ADAT['stat']['igazolt'] += intval($HOZOTT['igazolt']['db']);
+ if ($hianyzasAdat['igazolatlan'] >= 10) $ADAT['stat']['tiznel tobb']++;
+ elseif ($hianyzasAdat['igazolatlan'] >= 5) $ADAT['stat']['otnel tobb']++;
+ elseif ($hianyzasAdat['igazolatlan'] == 0) $ADAT['stat']['nincs']++;
+ }
+ }
+ // Diákok statisztikai adatai
+ //jegyek tömb: [diakId][targyId][$INDEX!!!]
+// -----------------------------------------------------------------
+ $utolsoTanitasiNap = getOsztalyUtolsoTanitasiNap($osztalyId);
+ for ($i=0; $i<count($ADAT['diakIds']); $i++) {
+ $diakId = intval($ADAT['diakIds'][$i]);
+ // éves óraszámok lekérdezése - tárgyanként - másolva a biz oldalról
+ $q = "SELECT targyId,oraszam FROM tankorDiak LEFT JOIN tankorSzemeszter USING (tankorId) LEFT JOIN tankor USING (tankorId) WHERE diakId=%u AND tanev=%u AND beDt<='%s' AND (kiDt IS NULL OR '%s'<=kiDt)";
+ $v = array($diakId, $ADAT['szemeszterAdat']['tanev'], $utolsoTanitasiNap, $utolsoTanitasiNap);
+ $jres = db_query($q, array('fv' => 'getDiakBizonyitvany/óraszám', 'modul' => 'naplo_intezmeny', 'result' => 'multiassoc', 'keyfield' => 'targyId', 'values' => $v));
+ $szDb = $ADAT['szemeszterAdat']['tanevAdat']['maxSzemeszter']; // Feltételezzük, hogy a szemeszterek számozása 1-től indul és folyamatos
+ foreach ($jres as $targyId => $tAdat) {
+ $oraszam = 0;
+ for ($j = 0; $j < count($tAdat); $j++) {
+ $oraszam += $tAdat[$j]['oraszam'];
+ }
+ $ADAT['targyOraszam'][$diakId][$targyId]['hetiOraszam'] = $oraszam / $szDb;
+ if (defined('TANITASI_HETEK_SZAMA')) $ADAT['targyOraszam'][$diakId][$targyId]['evesOraszam'] = $oraszam / $szDb * TANITASI_HETEK_SZAMA;
+ }
+ }
+// ------------------------------------------------------------------
+ $_tmp=array();
+ if (is_array($ADAT['jegyek']))
+ foreach ($ADAT['jegyek'] as $diakId => $jegyek) {
+ $zaraskorTag = in_array($diakId, $ADAT['zaraskoriDiakIds']);
+ $atlag = floatval($ADAT['atlagok'][$diakId]);
+ // kitűnők száma
+ if ($atlag >= _KITUNO_ATLAG) {
+ if ($zaraskorTag) $ADAT['stat']['kituno']++;
+ $ADAT['diakAdat'][$diakId]['kituno'] = true;
+ // jelesek száma
+ } elseif ($atlag >= _JELES_ATLAG) {
+ reset($jegyek);
+ $found = false;
+ while (list($key, $jegyAdatok) = each($jegyek)) {
+ for ($i=0; $i<count($jegyAdatok); $i++) {
+ if ($jegyAdatok[$i]['jegyTipus'] == 'jegy' && $jegyAdatok[$i]['jegy'] < _JELES_LEGGYENGEBB_JEGY) $found = true;
+ }
+ }
+ if ($found===false) {
+ if ($zaraskorTag) $ADAT['stat']['jeles']++;
+ $ADAT['diakAdat'][$diakId]['jeles'] = true;
+ }
+ }
+ // bukottak és bukások száma
+ foreach ($jegyek as $targyId => $jegyAdatok) {
+ $ADAT['targyboljegy'][$targyId] = true;
+ for ($i=0; $i<count($jegyAdatok); $i++) {
+ $jegyAdat = $jegyAdatok[$i];
+ if ((intval($jegyAdat['jegy'])==1 && in_array($jegyAdat['jegyTipus'],array('jegy','féljegy')))) {
+ if ($ADAT['diakAdat'][$diakId]['bukott'] != true) {
+ $ADAT['diakAdat'][$diakId]['bukott'] = true;
+ if ($zaraskorTag) $ADAT['stat']['bukott']++;
+ }
+ if ($zaraskorTag) {
+ $_tmp[$diakId]++;
+ $ADAT['stat']['bukas']++;
+ }
+ // záradékhoz (2015)
+ $ADAT['diakAdat'][$diakId]['bukottTargy'][] = $ADAT['targyAdat'][$targyId]['targyNev'];
+ }
+ if (isset($jegyAdat['megjegyzes']) && $zaraskorTag) {
+ $ADAT['stat'][ $jegyAdat['megjegyzes'] ]++;
+ if (in_array($jegyAdat['jegyTipus'],array('jegy','féljegy'))) {
+ $ADAT['jegyEloszlas'][$targyId][$jegyAdat['jegy']]++;
+ if (!in_array($targyId,array_merge($ADAT['szorgalomTargyIdk'],$ADAT['magatartasTargyIdk'])) && $zaraskorTag) $ADAT['jegyEloszlas']['osszes'][$jegyAdat['jegy']]++;
+ }
+ }
+ }
+ }
+
+ }
+ foreach ($_tmp as $_dbBukottTargy) {
+ if ($_dbBukottTargy<=2) $ADAT['stat']['dbBukott'][$_dbBukottTargy]++;
+ else $ADAT['stat']['dbBukott'][3]++;
+ }
+
+// ------------------------------------------------------------------
+ } else {
+ unset($osztalyId);
+ }
+
+ }
+
+ if (!isset($osztalyId)) { // lehet, hogy az előzőben lett "törölve" az osztalyId
+ // iskolai statisztika
+ $ADAT['osztaly'] = getOsztalyok($ADAT['szemeszterAdat']['tanev'],array('result' => 'indexed', 'minden'=>false, 'telephelyId' => $telephelyId));
+ $ADAT['targyak'] = getTargyakBySzemeszter($ADAT['szemeszterAdat']);
+ $ADAT['jegyek'] = getZarojegyStatBySzemeszter($ADAT['szemeszterAdat'],array('telephelyId'=>$telephelyId));
+ $ADAT['tantargyiAtlagok'] = getTargyAtlagokBySzemeszter($ADAT['szemeszterAdat']);
+ $ADAT['hianyzas'] = getOsztalyHianyzasOsszesites($ADAT['szemeszterAdat']);
+ }
+
+ $ADAT['targyTargy'] = getTargyTargy();
+
+ }
+
+
+ $TOOL['telephelySelect'] = array('tipus' => 'cella','paramName'=>'telephelyId');
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') , 'post' => array('sorrendNev', 'osztalyId', 'telephelyId'));
+ if (!__DIAK) {
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'tanev' => $ADAT['szemeszterAdat']['tanev'], 'post' => array('szemeszterId', 'sorrendNev', 'telephelyId'));
+ }
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId', 'telephelyId'));
+ if (isset($osztalyId) && isset($szemeszterId))
+ $TOOL['nyomtatasGomb'] = array('titleConst' => '_NYOMTATAS','tipus'=>'cella', 'url'=>'index.php?page=naplo&sub=nyomtatas&f=ertesito','post' => array('osztalyId','szemeszterId','sorrendNev', 'telephelyId'));
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/stat.php b/mayor-orig/www/policy/private/naplo/osztalyozo/stat.php
new file mode 100644
index 00000000..e5849121
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/stat.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT, $osztalyId;
+
+ if (isset($osztalyId) && count($ADAT['diakok'])>=1) {
+ if (is_array($ADAT['diakok'])) {
+ putOsztalyBizonyitvany($ADAT);
+ }
+ } else {
+ putIskolaStatisztika($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer-pre.php
new file mode 100644
index 00000000..1d975701
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer-pre.php
@@ -0,0 +1,51 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/szovegesErtekeles.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/osztaly.php'); // getEvfolyamJelek
+
+ $ADAT['szemeszterId'] = $szemeszterId = readVariable($_POST['szemeszterId'], 'numeric unsigned', getSzemeszterIdByDt(date('Y-m-d')));
+ $ADAT['kepzesId'] = $kepzesId = readVariable($_POST['kepzesId'], 'numeric unsigned', null);
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'], 'numeric unsigned', null);
+ $ADAT['evfolyamJel'] = $evfolyamJel = readVariable($_POST['evfolyamJel'], 'string', null);
+ $ADAT['szemeszter'] = getSzemeszterAdatById($szemeszterId);
+
+ if (isset($evfolyamJel)) {
+ $ADAT['feltetel'] = 'eros';
+ $ADAT['szempontRendszer'] = getSzempontRendszer($ADAT);
+ $ADAT['szrId'] = $szrId = $ADAT['szempontRendszer']['szrId'];
+ if (isset($szrId) && $action == 'szempontRendszerTorles') {
+ szempontRendszerTorles($ADAT);
+ unset($ADAT['szempontRendszer']);
+ } elseif (!is_array($ADAT['szempontRendszer']) && $action == 'ujSzempontRendszer') {
+ $ADAT['txt'] = explode("\n", $_POST['txt']);
+ if (ujSzempontRendszer($ADAT)) {
+ $_SESSION['alert'][] = 'info:success';
+ $ADAT['szempontRendszer'] = getSzempontRendszer($ADAT);
+ }
+ }
+ }
+
+ $ADAT['feltetel'] = 'laza';
+ $ADAT['szempontRendszerek'] = getEvfolyamJelSzempontRendszerek($ADAT);
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt','tervezett') , 'post' => array('kepzesId','evfolyamJel','targyId'));
+ $TOOL['evfolyamJelSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'evfolyamJel', 'paramDesc'=>'evfolyamJel','adatok' => getEvfolyamJelek(), 'post' => array('kepzesId','targyId')
+ );
+
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'post' => array('kepzesId','evfolyamJel'));
+ $TOOL['kepzesSelect'] = array('tipus'=>'cella', 'post' => array('evfolyamJel','targyId'));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer.php b/mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer.php
new file mode 100644
index 00000000..66d5f8cd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/szempontRendszer.php
@@ -0,0 +1,16 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['evfolyamJel'])
+// && (isset($ADAT['targyId']) || isset($ADAT['targyTipus']))
+ ) {
+ if (is_array($ADAT['szempontRendszer'])) putSzempontRendszer($ADAT);
+ else putUjSzempontRendszerForm($ADAT);
+
+ if (is_array($ADAT['szempontRendszerek'])) putSzempontRendszerLista($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles-pre.php
new file mode 100644
index 00000000..50293bac
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles-pre.php
@@ -0,0 +1,258 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__TANAR && !__DIAK) {
+ $_SESSION['alert'][] = 'page:insufficien_access';
+ } else {
+//!!
+//Ha van szemeszterId, akkor az annak megfelelő évfolyamot kell kideríteni, és aszerinti szempontrendszert lekérdezni.
+//ld lentebb: getEvfolyamJelByOsztalyId
+//!!
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/szovegesErtekeles.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/share/date/names.php');
+
+
+ $ADAT['targySorrendNev'] = $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', 'bizonyítvány', array('napló','bizonyítvány','anyakönyv','ellenőrző','egyedi'));
+ //$aktDt = date('Y-m-d');
+ $now = date('Y-m-d H:i:s');
+ // Feltételezzük, hogy a zárás időszak a szemeszteren belül van!
+ $ADAT['idoszak'] = getIdoszakByTanev(array('tanev' => __TANEV, 'tolDt' => $now, 'igDt' => $now, 'tipus' => array('zárás')));
+ // Ha nincs kiválasztva szemeszter, de épp zárási időszak van, akkor legyen kiválasztva az aktuális szemeszter
+ if (!isset($_POST['szemeszterId']) && is_array($ADAT['idoszak']) && count($ADAT['idoszak']) > 0) {
+ $ADAT['szemeszterId'] = $szemeszterId = $_POST['szemeszterId'] = getSzemeszterIdBySzemeszter($ADAT['idoszak'][0]['tanev'], $ADAT['idoszak'][0]['szemeszter']);
+ } else {
+ $ADAT['szemeszterId'] = $szemeszterId = readVariable($_POST['szemeszterId'], 'numeric unsigned', null);
+ }
+ if (is_null($szemeszterId)) {
+ $_tanev = readVariable($_POST['tanev'], 'numeric unsigned', null);
+ $_szemeszter = readVariable($_POST['szemeszter'], 'numeric unsigned', null);
+ if (!is_null($_tanev) && !is_null($_szemeszter)) {
+ $ADAT['szemeszterId'] = $szemeszterId = $_POST['szemeszterId'] = getSzemeszterIdBySzemeszter($_tanev, $_szemeszter);
+ }
+ }
+
+ if (isset($szemeszterId)) { // szemesztert záró értékelés - intézményi adatbázis
+ $ADAT['szemeszter'] = getSzemeszterAdatById($ADAT['szemeszterId']);
+ // Annak eldöntése, hogy _MOST_ az adott szemeszter zárási időszaka van-e - ezért itt nem kell a $dt-t módosítani. Ez átkerült alább...
+ // $ADAT['dt'] = $dt = $ADAT['szemeszter']['zarasDt'];
+ // zárási időszak-e
+ $zarasIdoszak = false;
+ for ($i = 0; $i < count($ADAT['szemeszter']['idoszak']); $i++) {
+ $ISz = $ADAT['szemeszter']['idoszak'][$i];
+ if ($ISz['tipus'] == 'zárás' && strtotime($ISz['tolDt']) <= strtotime($now) && strtotime($now) <= strtotime($ISz['igDt'])) {
+ $zarasIdoszak = true;
+ break;
+ }
+ }
+ // Gondolom ez a dátum az értékelés hivatalos dátuma lesz. Itt jogos a zarasDt-re állítás....
+ $ADAT['dt'] = $dt = $ADAT['szemeszter']['zarasDt'];
+ } else { // évközi értékelés - tanáv adatbázis
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'datetime', '');
+ if (!isset($dt)) $ADAT['dt'] = $dt = date('Y-m-d');
+ $ADAT['szemeszter'] = getSzemeszterByDt($ADAT['dt']);
+// $ADAT['tolDt'] = $tolDt = readVariable($_POST['tolDt'], 'datetime', $_TANEV['kezdesDt']); // Ezt nem is használjuk!!!
+ }
+ $tanev = readVariable($ADAT['szemeszter']['tanev'], 'numeric unsigned', __TANEV);
+
+ if (__DIAK) {
+ $ADAT['diakId'] = $diakId = __USERDIAKID;
+ } else {
+ $ADAT['diakId'] = $diakId = readVariable($_POST['diakId'], 'numeric unsigned', null);
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'numeric unsigned', null);
+ if (!isset($osztalyId) && !isset($tanarId) && __TANAR && $_POST['tanarId'] !== '') $ADAT['tanarId'] = $tanarId = __USERTANARID;
+ if (isset($tanarId)) $_POST['tanarId'] = $tanarId;
+ }
+ if (isset($diakId)) {
+ $Tankorok = getTankorByDiakId($diakId, $tanev);
+ $Targyak = getTargyakByDiakId($diakId, array('tanev' => $tanev, 'result' => 'indexed'));
+ $targyIds = array(); foreach ($Targyak as $key => $val) $targyIds[] = $val['targyId'];
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'], 'numeric unsigned', null, $targyIds);
+ if (isset($targyId)) {
+ $magatartasId = getMagatartas(array('result'=>'value'));
+ $szorgalomId = getSzorgalom(array('result' => 'value'));
+ $ADAT['targyTankorei'] = array();
+ foreach ($Tankorok as $key => $tAdat) {
+ if ($tAdat['targyId'] == $targyId) {
+ $ADAT['targyTankorei'][] = $tAdat['tankorId'];
+ }
+ }
+ }
+ } elseif (isset($osztalyId)) {
+ $Tankorok = getTankorByOsztalyId($osztalyId, $tanev);
+ } elseif (isset($tanarId)) {
+ $Tankorok = getTankorByTanarId($tanarId, $tanev);
+ }
+
+ $tankorIds = array();
+ if (is_array($Tankorok)) for ($i = 0; $i < count($Tankorok); $i++) $tankorIds[] = $Tankorok[$i]['tankorId'];
+
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'], 'numeric unsigned', null, $tankorIds);
+ if (isset($tankorId)) {
+ $D = getTankorDiakjaiByInterval($tankorId, $tanev, $dt, $dt);
+ $Diakok = array();
+ foreach ($D['nevek'] as $_diakId => $dAdat) $Diakok[] = $dAdat;
+ if (isset($diakId) && !in_array($diakId, $D['idk'])) { unset($diakId); unset($ADAT['diakId']); }
+ }
+
+ // Az értékelési szempontrendszer lekérdezése
+ if (isset($diakId) && isset($dt)) {
+ // Az értékeléshez kell: évfolyam [ képzésId ] (targyId | targyTipus) [ tanev, szemeszter ]
+ $diakOsztaly = getDiakOsztalya($diakId, array('tanev'=>$tanev,'tolDt'=> $dt,'igDt'=> $dt, 'result'=>'csakid'));
+ if (is_array($diakOsztaly) && count($diakOsztaly) > 0) {
+ // évfolyam
+ $diakEvfolyamJel = array();
+ for ($i = 0; $i < count($diakOsztaly); $i++) {
+ $evf = getEvfolyamJel($diakOsztaly[$i], $tanev);
+ if (!in_array($evf, $diakEvfolyamJel)) $diakEvfolyamJel[] = $evf;
+ foreach (getOsztalyfonokok($diakOsztaly[$i], $tanev) as $key => $oAdat)
+ if ($oAdat['aktiv']) $ADAT['diakOsztalyfonokei'][] = $oAdat['tanarId'];
+ }
+ if (count($diakEvfolyamJel) == 1) $ADAT['evfolyamJel'] = $evfolyamJel = $diakEvfolyamJel[0];
+ else $ADAT['evfolyamJel'] = $evfolyamJel = readVariable($_POST['evfolyamJel'], 'enum', null, $diakEvfolyamJel);
+ // képzés
+ $diakKepzesIds = getKepzesByDiakId($diakId, array('result' => 'csakid', 'dt' => $dt));
+ if (is_array($diakKepzesIds))
+ if (count($diakKepzesIds) == 1) $ADAT['kepzesId'] = $kepzesId = $diakKepzesIds[0];
+ else $ADAT['kepzesId'] = $kepzesId = readVariable($_POST['kepzesId'], 'numeric unsigned', null, $diakKepzesIds);
+ }
+ $ADAT['diakTargyak'] = getTargyakByDiakId($diakId, array('tanev' => $tanev, 'dt' => $dt, 'result' => 'assoc'));
+
+ if (isset($tankorId)) {
+ // Jogosultsághoz
+ $tankorTanarIds = getTankorTanaraiByInterval($tankorId, array('tanev' => $tanev, 'tolDt' => $dt, 'igDt' => $dt, 'result' => 'idonly'));
+ $tankorAdat = getTankorAdat($tankorId);
+ // targyId
+ $ADAT['targyId'] = $tankorAdat[$tankorId][0]['targyId'];
+
+ } elseif (isset($targyId)) {
+ $tankorTanarIds = getTankorTanaraiByInterval($ADAT['targyTankorei'], array('tanev' => $tanev, 'tolDt' => $dt, 'igDt' => $dt, 'result' => 'idonly'));
+ // magatartás és szorgalom értékelse az osztályfőnökkel mehet
+ if ($targyId == $magatartasId || $targyId == $szorgalomId) {
+ foreach ($ADAT['diakOsztalyfonokei'] as $key => $id) $tankorTanarIds[] = $id;
+ }
+ }
+
+ if (isset($ADAT['targyId'])) {
+ // Módosíthatja az értékelést:
+ // A naplóadmin bármikor
+ // A tankör tanára (v. ofő magatartás/szorgalom esetén), ha évközi értékelés, vagy záró értékelés és a szemeszter zárási időszakában vagyunk
+ define(__MODOSITHAT,
+ __NAPLOADMIN
+ || (
+ __VEZETOSEG
+ // itt kellene, hogy csak bizonyítvány írás időszakban...
+ )
+ || (
+ __TANAR && is_array($tankorTanarIds) && in_array(__USERTANARID, $tankorTanarIds)
+ && (!isset($ADAT['szemeszterId']) || $zarasIdoszak)
+ && $ADAT['szemeszter']['statusz'] == 'aktív'
+ )
+ );
+ // ?? targyTipus ??
+ $ADAT['szempontRendszer'] = getSzempontRendszer($ADAT);
+ if (is_array($ADAT['szempontRendszer'])) {
+ $szrId = $ADAT['szempontRendszer']['szrId'];
+ // Kérdezzük le a diák utolsó értékelését - ha van
+ if (isset($szemeszterId)) $ADAT['szovegesErtekeles'] = getDiakSzovegesTargyZaroErtekeles($diakId, $szrId, $ADAT['targyId'], $tanev, $ADAT['szemeszter']['szemeszter']);
+ else $ADAT['szovegesErtekeles'] = getDiakUtolsoSzovegesTargyErtekeles($diakId, $szrId, $ADAT['targyId'], $dt);
+
+ if (__MODOSITHAT && $action == 'ujErtekeles') {
+ for ($i = 0; $i < count($_POST['egyediMinosites']); $i++) {
+ $tmp = readVariable($_POST['egyediMinosites'][$i], 'string', null);
+ if ($tmp != '') {
+ $szempontId = readVariable($_POST['szempontId'][$i], 'numeric unsigned', null, $ADAT['szempontRendszer']['szempontIds']);
+ if (isset($szempontId)) $egyediMinosites[$szempontId] = $tmp;
+ }
+ }
+ for ($i = 0; $i < count($_POST['minosites']); $i++) {
+ $tmp = readVariable($_POST['minosites'][$i], 'numeric unsigned', null, $ADAT['szempontRendszer']['minositesIds']);
+ if (isset($tmp)) $minosites[] = $tmp;
+ }
+ if (isset($szemeszterId)) {
+ // Az értékelések újraolvasása
+ ujZaroErtekeles($diakId, $szrId, $ADAT['targyId'], $tanev, $ADAT['szemeszter']['szemeszter'], $minosites, $egyediMinosites);
+ $ADAT['szovegesErtekeles'] = getDiakSzovegesTargyZaroErtekeles($diakId, $szrId, $ADAT['targyId'], $tanev, $ADAT['szemeszter']['szemeszter']);
+ } else {
+ // Az új értékelés rögzítése
+ if (ujErtekeles($diakId, $szrId, $ADAT['targyId'], date('Y-m-d'), $minosites, $egyediMinosites))
+ // Az értékelések újraolvasása
+ $ADAT['szovegesErtekeles'] = getDiakUtolsoSzovegesTargyErtekeles($diakId, $szrId, $ADAT['targyId'], $dt);
+ }
+ }
+ } else {
+ $_SESSION['alert'][] = 'info:nincs_szempontrendszer';
+ }
+ } else { // Egy diák összes értékelése
+ define(__MODOSITHAT, false);
+ $ADAT['osszes'] = getDiakOsszesSzovegesErtekeles($ADAT);
+ }
+ }
+
+/* **** ToolBar **** */
+
+ // tanár vagy osztály szerint szűkíthetünk, majd diákot választunk
+ if (__TANAR || __NAPLOADMIN) {
+ if (!isset($osztalyId) || __OSZTALYFONOK === true)
+ $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array('tolDt', 'dt', 'szemeszterId'));
+ if (!isset($tanarId) || __OSZTALYFONOK === true)
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('tolDt', 'tolDt', 'dt', 'szemeszterId'));
+ $TOOL['diakSelect'] = array(
+ 'tipus' => 'sor', 'paramName' => 'diakId', 'diakok' => $Diakok,
+ 'post' => array('osztalyId', 'targyId', 'tankorId', 'tanarId', 'tolDt', 'dt', 'szemeszterId')
+ );
+ if (isset($diakId)) $TOOL['diakLapozo'] = array( 'withSelect' => false,
+ 'tipus' => 'sor', 'paramName' => 'diakId', 'diakok' => $Diakok,
+ 'post' => array('osztalyId', 'targyId', 'tankorId', 'tanarId', 'tolDt', 'dt', 'szemeszterId')
+ );
+ }
+ // Záró vagy évközi értékelés - dt vagy szemeszterId van kiválasztva
+ if (!isset($szemeszterId)) {
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'dt', 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'], 'hanyNaponta' => 1,
+ 'post' => array('tankorId','tanarId','osztalyId','diakId','szemeszterId'));
+ }
+ if ($dt == $ADAT['szemeszter']['zarasDt']) {
+ $TOOL['szemeszterSelect'] = array(
+ 'tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') ,
+ 'post' => array('osztalyId', 'tanarId', 'diakId', 'dt', 'tankorId', 'kepzesId', 'evfolyamJel'));
+ }
+ // tárgyat vagy tankört választunk (és ezen keresztül tárgyat)
+ if (!isset($targyId) && (isset($osztalyId) || isset($tanarId) || isset($diakId))) {
+ $TOOL['tankorSelect'] = array(
+ 'tipus' => 'sor', 'tankorok' => $Tankorok, 'paramName' => 'tankorId',
+ 'post' => array('osztalyId', 'tanarId', 'diakId', 'dt', 'szemeszterId')
+ );
+ }
+ if (!isset($tankorId) && isset($diakId)) {
+ $TOOL['targySelect'] = array(
+ 'tipus' => 'sor', 'targyak' => $Targyak, 'paramName' => 'targyId',
+ 'post' => array('osztalyId', 'tanarId', 'diakId', 'dt', 'szemeszterId')
+ );
+ }
+ if (is_array($diakEvfolyamJel) && count($diakEvfolyamJel) > 1)
+ $TOOL['evfolyamJelSelect'] = array(
+ 'tipus' => 'cella', 'evfolyamJel' => $diakEvfolyamJel, 'paramName' => 'evfolyamJel',
+ 'post' => array('osztalyId', 'tanarId', 'diakId', 'dt', 'tankorId', 'kepzesId', 'szemeszterId')
+ );
+ if (is_array($diakKepzesIds) && count($diakKepzesIds) > 1)
+ $TOOL['kepzesSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'kepzesId',
+ 'post' => array('osztalyId', 'tanarId', 'diakId', 'dt', 'tankorId', 'evfolyamJel', 'szemeszterId')
+ );
+ $TOOL['targySorrendSelect'] = array('tipus'=>'cella','paramName' => 'sorrendNev', 'post' => array('szemeszterId', 'osztalyId','diakId','tolDt','dt','tankorId','kepzesId','evfolyamJel'));
+ $TOOL['nyomtatasGomb'] = array('titleConst' => '_NYOMTATAS','tipus'=>'cella','url'=>'index.php?page=naplo&sub=nyomtatas&f=szovegesErtekeles',
+ 'post' => array('osztalyId','szemeszterId','sorrendNev'));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles.php b/mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles.php
new file mode 100644
index 00000000..7908d085
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/szovegesErtekeles.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT['szempontRendszer'])) {
+ if (__MODOSITHAT || is_array($ADAT['szovegesErtekeles']))
+ putErtekeloForm($ADAT);
+ } elseif (is_array($ADAT['osszes'])) {
+ foreach ($ADAT['diakTargyak'] as $targyId => $tAdat)
+ if (is_array($ADAT['osszes'][$targyId]))
+ if ($ADAT['tolDt'] <= $ADAT['osszes'][$targyId]['szovegesErtekeles']['dt']) putErtekeloForm($ADAT['osszes'][$targyId]);
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/tankor-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/tankor-pre.php
new file mode 100644
index 00000000..742b4b5d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/tankor-pre.php
@@ -0,0 +1,332 @@
+<?php
+
+if (_RIGHTS_OK !== true) die();
+
+if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__DIAK && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'message:insufficient_access';
+} elseif (__DIAK) {
+ header('Location: '.location('index.php?page=naplo&sub=osztalyozo&f=diak'));
+} else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/jegy.php');
+
+ $time = time();
+ // A toolBar-ból érkező adatok feldolgozása, beállítása - mit is akarunk épp látni..
+ $diakId = readVariable($_POST['diakId'], 'id');
+ $osztalyId = readVariable($_POST['osztalyId'], 'id', readVariable($_GET['osztalyId'], 'id') );
+ // if (isset($diakId)) {
+ // // Nem egyértelmű az osztály - itt legfeljebb ellenőrizni kell, hogy tagja-e... //$osztaly = getOsztalyByDiakId($diakId);
+ $tankorId = readVariable($_POST['tankorId'], 'id', readVariable($_GET['tankorId'], 'id') );
+ $tanarId = readVariable($_POST['tanarId'], 'id', readVariable($_GET['tanarId'],'id'));
+ if ($_POST['tanarId']=='' && $tanarId!='') $_POST['tanarId'] = $tanarId; // H4CK
+
+ /* Képek vezérlésének beállítása */
+ if (__SHOW_FACES=='optional') $ADAT['kepMutat'] = readVariable($_POST['kepMutat'],'bool');
+ else $ADAT['kepMutat'] = __SHOW_FACES_TF;
+ /* == */
+
+ if (!isset($tanarId) && !isset($osztalyId) && __TANAR)
+ if (!isset($tankorId)) $tanarId = __USERTANARID;
+ else {
+ $tankorTanarai = getTankorTanaraiByInterval($tankorId, array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result' => 'csakId'));
+ if (in_array(__USERTANARID, $tankorTanarai)) $tanarId = __USERTANARID;
+ }
+
+ $nevsor = readVariable($_POST['nevsor'],'emptystringnull','aktualis',array('aktualis','teljes'));
+ // tankörök lekérdzése
+ if (isset($diakId)) $Tankorok = getTankorByDiakId($diakId, __TANEV);
+ elseif (isset($osztalyId)) $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV);
+ elseif (isset($tanarId)) $Tankorok = getTankorByTanarId($tanarId, __TANEV);
+
+ $ADAT['tankorok'] = $Tankorok;
+
+ if (isset($tankorId)) {
+ // Az aktuális szemeszter kiválasztása
+ if (__FOLYO_TANEV) {
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szemeszterAdat)
+ if (strtotime($szemeszterAdat['kezdesDt']) <= $time && $time <= strtotime($szemeszterAdat['zarasDt'])) break;
+ if ($szemeszter !== false) {
+ define('__FOLYO_SZEMESZTER', $szemeszter);
+ $szemeszterKezdesDt = $szemeszeterAdat['kezdesDt'];
+ $szemeszterZarasDt = $szemeszeterAdat['zarasDt'];
+ }
+ }
+ if (!defined('__FOLYO_SZEMESZTER')) define('__FOLYO_SZEMESZTER',false);
+
+ if (isset($_POST['tolDt']) && $_POST['tolDt'] != '') $tolDt = readVariable($_POST['tolDt'],'date');
+ elseif (isset($szemeszterKezdesDt)) $tolDt = $szemeszterKezdesDt;
+ else $tolDt = $_TANEV['kezdesDt'];
+
+ if (isset($_POST['igDt']) && $_POST['igDt'] != '') $igDt = readVariable($_POST['igDt'],'date');
+ elseif (isset($szemeszterZarasDt)) $igDt = $szemeszterZarasDt;
+ else $igDt = $_TANEV['zarasDt'];
+
+ // a tankör diákjainak lekérdezése
+ if ($nevsor == 'aktualis') $Diakok = getTankorDiakjaiByInterval($tankorId, __TANEV);
+ else $Diakok = getTankorDiakjaiByInterval($tankorId, __TANEV, $tolDt, $igDt);
+
+ $dts = array(date('Y-m-d'));
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) $dts[] = $szAdat['zarasDt'];
+ $ADAT['diakJogviszony'] = getDiakJogviszonyByDts($Diakok['idk'], $dts);
+
+ // lehetne regexp-pel is: $sulyozas = readVariable($_POST['sulyozas'],'regexp',__DEFAULT_SULYOZAS,array('^[0-9]*:[0-9]*:[0-9]*:[0-9]*:[0-9]*$'));
+ $ADAT['sulyozas'] = $sulyozas = readVariable($_POST['sulyozas'],'enum',__DEFAULT_SULYOZAS,$SULYOZAS);
+
+ // tankör osztályzatainak lekérdezése
+ $Jegyek = getJegyek($tankorId, $tolDt, $igDt, $sulyozas, $Diakok);
+ if (is_array($Jegyek['tankörök'])) for ($j=0; $j<count($Jegyek['tankörök']['tankorId']); $j++) {
+ $_tankorId = $Jegyek['tankörök']['tankorId'][$j];
+ $tankorAdat = $Jegyek['tankörök'][$_tankorId];
+ $Jegyek['tankörök'][$_tankorId]['tanarIds'] = array();
+ for ($i = 0; $i < count($tankorAdat['tanárok']); $i++)
+ $Jegyek['tankörök'][$_tankorId]['tanarIds'][] = $tankorAdat['tanárok'][$i]['tanarId'];
+ }
+ $Orak = getOraAdatByTankor($tankorId);
+ $Dolgozatok = getTankorDolgozatok($tankorId);
+ $TA = getTankorById($tankorId); // át kéne írni getTankorAdat() - ra...
+
+ $ADAT['diakok'] = $Diakok; // kompatibilitás
+ $ADAT['tankorAdat'] = $TA[0];
+ $ADAT['tankorAdat2'] = getTankorAdat($tankorId);
+ $targyId = $TA[0]['targyId'];
+ $ADAT['tankorAdat']['osztalyai'] = getTankorOsztalyai($tankorId, array('result' => 'id'));
+ // Diákok osztályai - folyó tanévben: jelenleg...
+ if (__FOLYO_TANEV) {
+ $ADAT['diakOsztaly']['aktualis'] = getDiakokOsztalyai($ADAT['diakok']['idk'], array('result'=>'indexed'));
+ $dt['aktualis'] = date('Y-m-d');
+ } else {
+ $ADAT['diakOsztaly']['aktualis'] = getDiakokOsztalyai($ADAT['diakok']['idk'], array('result'=>'indexed', 'tolDt' => $_TANEV['zarasDt'], 'igDt' => $_TANEV['zarasDt']));
+ $dt['aktualis'] = $_TANEV['zarasDt'];
+ }
+ // Kérdezzük le a szemeszter záráskori osztályokat is!
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+ $ADAT['diakOsztaly'][$szemeszter] = getDiakokOsztalyai(
+ $ADAT['diakok']['idk'], array('result'=>'indexed', 'tolDt' => $szAdat['zarasDt'], 'igDt' => $szAdat['zarasDt'])
+ );
+ $dt[$szemeszter] = $szAdat['zarasDt'];
+ }
+ /* Diákonkénti évfolyam meghatározás
+ Külön kell itt is meghatározni, itt esetleg leszűkíthető a több évfolyamra járó diák évfolyama */
+ for ($i=0; $i<count($ADAT['diakok']['idk']); $i++) {
+ $_diakId = $ADAT['diakok']['idk'][$i];
+ $_metszet = array();
+ // A jelenlegi és a szemeszter zárások idején levő évfolyamokat is megállapítjuk
+ foreach ($ADAT['diakOsztaly'] as $key => $value) { // $key: aktualis, 1, 2
+ $_diakEvfolyam = array();
+ $_diakEvfolyamJel = array();
+ if ( is_array($ADAT['diakOsztaly'][$key][$_diakId]) && is_array($ADAT['tankorAdat']['osztalyai']) ) {
+ $_metszet = array_intersect($ADAT['diakOsztaly'][$key][$_diakId], $ADAT['tankorAdat']['osztalyai']);
+// } else {
+// $_SESSION['alert'][] = 'info:nincs_osztaly:'.$ADAT['diakok']['nevek'][$_diakId]['diakNev'].':'.$key;
+ }
+
+ // ez a feltétel lazítható több osztályban is, ha azok azonos évolfymon vannak:
+ foreach ( $_metszet as $j => $_osztalyId ) {
+ // csak ebben a tankörben ennek felel meg, ezen az évfolyamon levő a zárójegyet kaphatja:
+ $_diakEvfolyamJel[] = getEvfolyamJel($_osztalyId);
+ $_diakEvfolyam[] = evfolyamJel2Evfolyam(end($_diakEvfolyamJel));
+ }
+ if (count(array_unique($_diakEvfolyamJel))==1) { // korábban az evfolyam-nak kellett uniq-nak lennie - ez szigorúbb...
+ $ADAT['diakEvfolyam'][$key][$_diakId] = $_diakEvfolyam[0];
+ $ADAT['diakEvfolyamJel'][$key][$_diakId] = $_diakEvfolyamJel[0];
+ // OK, van-e meghatározva képzés?
+ // TODO: képzések legyenek evfolyamJel függők - ekkor itt is javítani kell!
+ if (is_numeric($key)) {
+ $_kepzesIdk = getKepzesByDiakId($_diakId,array('result'=>'idonly', 'dt' => $dt[$key]));
+ if (is_array($_kepzesIdk) && count($_kepzesIdk)>0) {
+ // ITT MIÉRT CSAK AZ ELSŐ KÉPZÉST NÉZZÜK??? - mert nem tudjuk eldönteni, hogy melyik az erősebb
+ $ADAT['diakKepzesKovetelmeny'][$key][$_diakId] = getTargyAdatFromKepzesOraterv($_kepzesIdk[0],
+ array('targyId'=>$targyId, 'evfolyam'=>$_diakEvfolyam[0], 'evfolyamJel'=>$_diakEvfolyamJel[0], 'szemeszter'=>$key));
+ }
+ }
+ //
+ } elseif (count($_diakEvfolyam) == 0) { // _Már_ nincs a tankör szerinti osztályok egyikében sem
+ } else { // Több évfolyamban is bent van...
+ $_SESSION['alert'][] = "info:multi_evfolyam:".$ADAT['diakok']['nevek'][$_diakId]['diakNev'].':'.$key;
+ }
+
+
+ }
+
+ }
+ /* --még1* felmentési célból- */
+ for ($i=0; $i<count($ADAT['diakok']['idk']); $i++) {
+ $_diakId = $ADAT['diakok']['idk'][$i];
+ $ADAT['diakFelmentes'][$_diakId] = getTankorDiakFelmentes($_diakId,__TANEV,array('felmentesTipus'=>array('értékelés alól'),'csakId'=>true,'tolDt'=>date('Y-m-d'), 'igDt'=>date('Y-m-d')));
+ }
+ } else {
+ // -- TODO - fejlesztés alatt
+ /*for ($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $_tankorId=$ADAT['tankorok'][$i]['tankorId'];
+ $_diakok = getTankorDiakjaiByInterval($_tankorId, __TANEV, $_TANEV['kezdesDt'], $_TANEV['zarasDt']);
+ //$ADAT['atlagok'][$_tankorId] = ':..:';
+ }
+ */
+ }
+
+//------
+ $tanevIdoszak = getIdoszakByTanev(
+ array('tanev' => __TANEV, 'tipus' => array('zárás','bizonyítvány írás'), 'tolDt' => date('Y-m-d H:i:s'), 'igDt' => date('Y-m-d H:i:s'),
+ 'arraymap'=>array('tipus','szemeszter'))
+ );
+
+
+ // Beírhat-e jegyet?
+ define('__EVKOZI_JEGYET_ADHAT',
+ (__NAPLOADMIN && ($_TANEV['statusz'] == 'aktív'))
+ || (
+ __TANAR
+ && __FOLYO_TANEV
+ && is_array($Jegyek['tankörök'][$tankorId]['tanarIds'])
+ && in_array(__USERTANARID, $Jegyek['tankörök'][$tankorId]['tanarIds'])
+ )
+ );
+ define('__ZAROJEGYET_ADHAT',
+ (__NAPLOADMIN && ($_TANEV['statusz'] == 'aktív'))
+ || (
+ __TANAR
+ && is_array($Jegyek['tankörök'][$tankorId]['tanarIds'])
+ && in_array(__USERTANARID, $Jegyek['tankörök'][$tankorId]['tanarIds'])
+ && count($tanevIdoszak['zárás']) > 0
+ )
+ || (
+ __VEZETOSEG
+ && !is_null($tanevIdoszak['bizonyítvány írás'])
+ && is_null($tanevIdoszak['zárás'])
+ )
+ );
+
+ if ( __TANAR
+ && is_array($Jegyek['tankörök'][$tankorId]['tanarIds'])
+ && in_array(__USERTANARID, $Jegyek['tankörök'][$tankorId]['tanarIds'])
+ && count($tanevIdoszak['zárás']) > 0 )
+ {
+ list($_szemeszter,$_idoszakok) = (each($tanevIdoszak['zárás']));
+ define('__IDOSZAK_TOLDT',$_idoszakok[0]['tolDt']); // Nem lehet két szemeszterhez tartozó ugyanolyan típusú (pl. zárás) időszak egyidőben!!!
+ define('__IDOSZAK_IGDT',$_idoszakok[0]['igDt']);
+ define('__IDOSZAK_SZEMESZTER',$_szemeszter);
+ } elseif (
+ __VEZETOSEG
+ && !is_null($tanevIdoszak['bizonyítvány írás'])
+ && is_null($tanevIdoszak['zárás'])
+ ) {
+ list($_szemeszter,$_idoszakok) = (each($tanevIdoszak['bizonyítvány írás']));
+ define('__IDOSZAK_TOLDT',$_idoszakok[0]['tolDt']);
+ define('__IDOSZAK_IGDT',$_idoszakok[0]['igDt']);
+ define('__IDOSZAK_SZEMESZTER',$_szemeszter);
+ }
+
+ define('__JEGYET_ADHAT',false);
+
+//------
+ if ($action == 'jegyBeiras' && (isset($_POST['bizBeiroGomb']) || $_POST['bizBeiroGomb2']!='')) $action = 'jegyLezaras';
+ if (__EVKOZI_JEGYET_ADHAT) {
+
+ if ($action == 'jegyBeiras') {
+ $actionId = readVariable($_POST['actionId'],'strictstring');
+ for ($i = 0; $i < count($_POST['jegy']); $i++)
+ if ($_POST['jegy'][$i] != '') {
+ list($_diakId, $_jegyTipus, $_jegy) = explode('|', $_POST['jegy'][$i]);
+ $Beirando[] = array('diakId' => $_diakId, 'jegy' => $_jegy, 'jegyTipus' => $_jegyTipus);
+ } // for-if
+ $oraId = readVariable($_POST['oraId'],'id','NULL'); // NULL string!!!
+ $megjegyzes = readVariable($_POST['megjegyzes'],'string');
+
+ // A jegy típusa - a submit alapján
+ if (isset($_POST['jegy1'])) $tipus = 1;
+ elseif (isset($_POST['jegy2'])) $tipus = 2;
+ elseif (isset($_POST['jegy3'])) $tipus = 3;
+ elseif (isset($_POST['jegy4'])) $tipus = 4;
+ elseif (isset($_POST['jegy5'])) $tipus = 5;
+ if ($tipus < 3 || $_POST['dolgozatId'] == '') $dolgozatId = 'NULL';
+ elseif ($_POST['dolgozatId']=='uj') $dolgozatId='uj'; // uj-nak nevezzük a felveendő dolgozatot...
+ else $dolgozatId = readVariable($_POST['dolgozatId'],'id','NULL'); // NULL string!
+
+ if (isset($tipus) && count($Beirando) > 0) { // Nem csak súlyozást vagy nevsort változtatott és van jeg
+ // --TODO: ez nem ide való
+ $lr = db_connect('naplo');
+ // Ellenőrizzük a reload-ot!!
+ if (checkReloadAction($actionId, $action, 'jegy', $lr)) {
+ if (jegyBeiras($tankorId, $tipus, $oraId, $dolgozatId, $tanarId, $megjegyzes, $Beirando, $actionId, $lr)) {
+ $Jegyek = getJegyek($tankorId, $tolDt, $igDt, $sulyozas, $Diakok, $lr);
+ if ($tipus > 2) $Dolgozatok = getTankorDolgozatok($tankorId);
+ }
+ } // reload
+ db_close($lr);
+
+ } // Nem csak súlyozást változtat
+ }
+ }
+ if (__ZAROJEGYET_ADHAT) {
+ if ($action == 'jegyLezaras') {
+ $zaroJegyek = $_POST['zaroJegy'];
+ $tankorAdat = getTankorById($tankorId);
+ $targyId = $tankorAdat[0]['targyId'];
+ $actionId = readVariable($_POST['actionId'],'strictstring');
+ if (is_array($zaroJegyek)) {
+ /* Prepare */
+ for($i=0; $i<count($zaroJegyek); $i++) {
+ $X = explode('|',$zaroJegyek[$i]);
+ for ($j=0; $j<count($X); $j++) {
+ list($key,$value) = explode('=',$X[$j]);
+ // Van már ilyen jegy?
+ $beirandoJegyek[$i][$key] = $value;
+ }
+
+ }
+ /* Időszak ellenőrzése */
+ if (checkReloadAction($actionId, $action, 'bizonyitvany'))
+ if (jegyLezaras($beirandoJegyek, $tankorId, $targyId, $actionId))
+ $Jegyek = getJegyek($tankorId, $tolDt, $igDt, $sulyozas, $Diakok);
+ //--
+ }
+ }
+ } // jegyet adhat
+
+
+ // És a zárójegyek
+ $ADAT['zaroJegyek'] = getDiakokZarojegyeiByTargyId($Diakok['idk'],$ADAT['tankorAdat']['targyId'], array('arraymap'=>array('diakId','evfolyamStr','felev')));
+ $ADAT['vizsgaJegyek'] = getDiakokVizsgajegyeiByTargyId($Diakok['idk'],$ADAT['tankorAdat']['targyId'], array('arraymap'=>array('diakId','evfolyamStr','felev')));
+ $ADAT['idoszak'] = $tanevIdoszak;
+
+ // ----------- action vége ------------- //
+
+ $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array('tolDt', 'igDt'));
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('tolDt', 'igDt'));
+ if (isset($osztalyId)) {
+ $TOOL['diakSelect'] = array('tipus' => 'cella', 'paramName' => 'diakId', 'post' => array('osztalyId', 'tolDt', 'igDt'));
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=osztalyozo&f=diak','index.php?page=naplo&sub=orarend&f=orarend'),
+ 'title' => array('diák osztályzatai','diák órarendje'), 'post' => array('osztalyId'),
+ 'paramName'=>'diakId');
+// $TOOL['toolBarHamburger'] = array('tipus' => 'cella',
+// 'url' => array('index.php?page=naplo&sub=osztalyozo&f=diak','index.php?page=naplo&sub=orarend&f=orarend'),
+// 'title' => array('diák osztályzatai','diák órarendje'), 'post' => array('osztalyId'),
+// 'paramName'=>'diakId');
+ }
+
+
+ if (isset($osztalyId) or isset($tanarId) or isset($diakId))
+ $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $Tankorok, 'paramName' => 'tankorId', 'post' => array('osztalyId', 'tanarId', 'diakId', 'tolDt', 'igDt'));
+ if (isset($tankorId) && $skin != 'pda')
+ $TOOL['datumTolIgSelect'] = array('tipus' => 'sor', 'tolParamName' => 'tolDt', 'igParamName' => 'igDt',
+ 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'hanyNaponta' => 'havonta', 'post' => array('tanarId', 'osztalyId', 'tankorId', 'sulyozas'));
+
+
+ getToolParameters();
+
+} // rights
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/tankor.php b/mayor-orig/www/policy/private/naplo/osztalyozo/tankor.php
new file mode 100644
index 00000000..f86de20a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/tankor.php
@@ -0,0 +1,17 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $tools, $diakId, $tankorId, $tanarId, $osztaly;
+ global $Diakok, $Jegyek, $Orak, $sulyozas, $nevsor;
+ global $Dolgozatok, $tolDt, $igDt;
+ global $ADAT;
+
+ if ($tankorId != '') {
+ // tankör osztályzatainak kiírása
+ putTankorJegyek($tankorId, $Diakok, $Jegyek, $Orak, $Dolgozatok, $sulyozas, $tolDt, $igDt, $nevsor, $ADAT);
+ } else {
+ putTankorjegyStatisztika($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend-pre.php
new file mode 100644
index 00000000..5dfd84c1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend-pre.php
@@ -0,0 +1,47 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__OSZTALYFONOK) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/file.php');
+
+ $sorrendNev = readVariable($_POST['sorrendNev'], 'enum', null, getTargySorrendNevek(__TANEV));
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) $_POST['osztalyId'] = $osztalyId = $_OSZTALYA[0]; // osztályfőnök - saját osztálya
+ else $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+ if (is_array($_POST['targyId']) && count($_POST['targyId']) > 0)
+ $_POST['targyId'] = $targyId = readVariable($_POST['targyId'][0], 'numeric unsigned', null);
+
+
+ if (isset($osztalyId) && isset($sorrendNev)) {
+
+ if ($action == 'sorrendValtas') { // Javascript nélküli eset - fel/le lépkedés
+
+ if (isset($_POST['fel'])) targySorrendValtas($osztalyId, $sorrendNev, $targyId, 'fel');
+ elseif (isset($_POST['le'])) targySorrendValtas($osztalyId, $sorrendNev, $targyId, 'le');
+
+ } elseif ($action == 'ujSorrend' && is_array($_POST['targyIds']) && count($_POST['targyIds']) > 0) {
+ ujTargySorrend($osztalyId, $sorrendNev, $_POST['targyIds']);
+
+ }
+
+ $Targyak = getTanevTargySorByOsztalyId($osztalyId, __TANEV, $sorrendNev);
+ checkTargySor($osztalyId, $sorrendNev, $Targyak);
+
+ }
+
+
+ if (__NAPLOADMIN || __VEZETOSEG || __TITKARSAG)
+ $TOOL['osztalySelect'] = array('tipus' => 'cella', 'paramName' => 'osztalyId', 'post' => array('sorrendNev'));
+ $TOOL['targySorrendSelect'] = array('tipus' => 'cella', 'post' => array('osztalyId'));
+
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend.php b/mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend.php
new file mode 100644
index 00000000..59aa99e9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/targySorrend.php
@@ -0,0 +1,8 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $osztalyId, $sorrendNev, $Targyak;
+
+ if (isset($sorrendNev) && $sorrendNev != '') putTargySorrendForm($osztalyId, $sorrendNev, $Targyak);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/vizsga-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsga-pre.php
new file mode 100644
index 00000000..beb5bd84
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsga-pre.php
@@ -0,0 +1,91 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/vizsga.php');
+ require_once('include/modules/naplo/share/zaradek.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+
+ $ADAT['evfolyamJelek'] = getEvfolyamJelek(array('result'=>'idonly'));
+ $diakId = $ADAT['diakId'] = readVariable($_POST['diakId'], 'id', readVariable($_GET['diakId'], 'id'));
+ $targyId = $ADAT['targyId'] = readVariable($_POST['targyId'], 'id', readVariable($_GET['targyId'], 'id'));
+ $evfolyamJel = $ADAT['evfolyamJel'] = readVariable(
+ $_POST['evfolyamJel'], 'enum', readVariable($_GET['evfolyamJel'], 'enum', null, $ADAT['evfolyamJelek']), $ADAT['evfolyamJelek']
+ );
+ if (isset($evfolyamJel)) $evfolyam = $ADAT['evfolyam'] = evfolyamJel2Evfolyam($evfolyamJel);
+
+ $ADAT['tanev'] = $_TANEV['tanev']; // ezt ellenőrizni
+ $felev = readVariable($_POST['felev'], 'numeric unsigned');
+ if ($felev=='') foreach($_TANEV['szemeszter'] as $felev => $_SZA);
+ $ADAT['felev'] = $felev; // maxSzemeszter
+ $ADAT['vizsgatipusok'] = getEnumField('naplo_intezmeny', 'vizsga', 'tipus');
+ $ADAT['zarojegytipusok'] = getEnumField('naplo_intezmeny', 'zaroJegy', 'jegyTipus');
+ $ADAT['statusz'] = getEnumField('naplo_intezmeny', 'diak', 'statusz');
+
+ if ($action == 'vizsgajelentkezes' && isset($diakId) && isset($targyId) && isset($evfolyamJel)) {
+ $ADAT['jelentkezesDt'] = readVariable($_POST['jelentkezesDt'], 'date');
+ $ADAT['tipus'] = readVariable($_POST['tipus'], 'enum', null, $ADAT['vizsgatipusok']);
+ if (isset($ADAT['jelentkezesDt']) && isset($ADAT['tipus'])) {
+ vizsgajelentkezes($ADAT);
+ }
+ } elseif ($action == 'vizsgaKezeles') {
+ $vizsgaDatum = $halasztasDatum = array();
+
+ // Vizsgaidőpontok kijelölése
+ $vizsgaIds = readVariable($_POST['vizsgaDtVizsgaIds'], 'numeric unsigned');
+ $vizsgaDts = readVariable($_POST['vizsgaDts'], 'date', '');
+ for ($i = 0; $i < count($vizsgaDts); $i++) if ($vizsgaDts[$i] != '') $vizsgaDatum[ $vizsgaIds[$i] ] = $vizsgaDts[$i];
+ vizsgaIdopontRogzites($vizsgaDatum);
+
+ $erthalVizsgaIds = readVariable($_POST['erthalVizsgaIds'], 'numeric unsigned');
+ // Vizsga halasztása
+ $halasztasDts = readVariable($_POST['halasztasDts'], 'date', '');
+ for ($i = 0; $i < count($halasztasDts); $i++) if ($halasztasDts[$i] != '') $halasztasDatum[ $erthalVizsgaIds[$i] ] = $halasztasDts[$i];
+ vizsgaHalasztas($halasztasDatum);
+ // Vizsga értékelés
+ $jegyAdat = $_POST['jegyAdat'];
+ for ($i = 0; $i < count($jegyAdat); $i++) if ($jegyAdat[$i] != '') {
+ $X = explode('|', $jegyAdat[$i]);
+ for ($j = 0; $j < count($X); $j++) {
+ list($key, $value) = explode('=', $X[$j]);
+ $jegyek[ $erthalVizsgaIds[$i] ][$key] = $value;
+ }
+ }
+ vizsgaErtekeles($jegyek);
+ } elseif ($action == 'vizsgaTorlese') {
+ $vizsgaId = readVariable($_GET['vizsgaId'], 'id');
+ if (isset($vizsgaId)) vizsgaTorlese($vizsgaId);
+ }
+ $ADAT['vizsga'] = $ADAT['diakIds'] = $ADAT['targyIds'] = array();
+ if (isset($diakId) || isset($targyId)) $ADAT['vizsga'] = getVizsgak($ADAT);
+
+ for ($i = 0; $i < count($ADAT['vizsga']); $i++) {
+ if (!in_array($ADAT['vizsga'][$i]['diakId'], $ADAT['diakIds'])) $ADAT['diakIds'][] = $ADAT['vizsga'][$i]['diakId'];
+ if (!in_array($ADAT['vizsga'][$i]['targyId'], $ADAT['targyIds'])) $ADAT['targyIds'][] = $ADAT['vizsga'][$i]['targyId'];
+ }
+ if (count($ADAT['targyIds']) > 0) $ADAT['targyak'] = getTargyAdatByIds($ADAT['targyIds']);
+ if (count($ADAT['diakIds']) > 0) $ADAT['diakok'] = getDiakokById($ADAT['diakIds']);
+
+
+ $TOOL['diakSelect'] = array('tipus'=>'cella', 'paramName'=>'diakId', 'post'=>array('targyId','jelentkezesDt', 'vizsgaDt', 'evfolyamJel', 'felev'), 'statusz'=>$ADAT['statusz']);
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'post' => array('diakId', 'evfolyamJel', 'felev'));
+ $TOOL['evfolyamJelSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'evfolyamJel', 'paramDesc'=>'evfolyamJel','adatok' => getEvfolyamJelek(),
+ 'post' => array('targyId', 'diakId', 'jelentkezesDt', 'vizsgaDt','felev')
+ );
+ $TOOL['felevSelect'] = array(
+ 'tipus' => 'cella', 'paramName' => 'felev', 'post' => array('targyId', 'diakId', 'jelentkezesDt', 'vizsgaDt', 'evfolyamJel')
+ );
+
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/vizsga.php b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsga.php
new file mode 100644
index 00000000..aaccc546
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsga.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['diakId']) && isset($ADAT['targyId']) && isset($ADAT['evfolyamJel']))
+ putVizsgaJelentkezesForm($ADAT);
+ if (is_array($ADAT['vizsga']) && count($ADAT['vizsga']) > 0) putVizsgaLista($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes-pre.php
new file mode 100644
index 00000000..0cace228
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes-pre.php
@@ -0,0 +1,37 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (
+ !__NAPLOADMIN && !__VEZETOSEG
+ ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/vizsga.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+
+ $ADAT['szemeszterId'] = $szemeszterId = readVariable($_POST['szemeszterId'], 'id', getSzemeszterIdByDt(date('Y-m-d')));
+
+ // Soron következő vizsgaidőszak lekérdezése
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ $idoszakIds = $ADAT['vizsgaIdoszak'] = array();
+ foreach ($ADAT['szemeszterAdat']['idoszak'] as $key => $iAdat) {
+ if ($iAdat['tipus'] == 'vizsga') {
+ $ADAT['vizsgaIdoszak'][] = $iAdat;
+ $idoszakIds[] = $iAdat['idoszakId'];
+ if (!isset($ADAT['kovetkezoIdoszakIndex']) && time() < strtotime($iAdat['tolDt'])) $ADAT['kovetkezoIdoszakIndex'] = count($ADAT['vizsgaIdoszak']) - 1;
+ }
+ }
+ if (count($ADAT['vizsgaIdoszak']) == 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:nincs vizsgaidőszak kijelölve ebben a szemeszterben';
+ } else {
+
+ } // van kijelölve vizsgaidőszak
+
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'post' => array('sorrendNev', 'osztalyId'));
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes.php b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes.php
new file mode 100644
index 00000000..11ad75ef
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/vizsgaJelentkezes.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (count($ADAT['vizsgaIdoszak']) > 0) putVizsgaJelentkezes($ADAT);
+ elseif (__NAPLOADMIN === true) echo '<a href="'.href('index.php?page=naplo&sub=admin&f=szemeszterek&szemeszterId='.$ADAT['szemeszterId']).'">'._VIZSGAIDOSZAK_FELVETELE.'</a>';
+?>
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck-pre.php b/mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck-pre.php
new file mode 100644
index 00000000..0cd5bf23
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck-pre.php
@@ -0,0 +1,82 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ }
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/zaroJegyModifier.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/intezmenyek.php');
+
+ $ADAT['szemeszterId'] = $szemeszterId = readVariable($_POST['szemeszterId'],'id');
+
+ $ADAT['szemeszterAdat'] = getSzemeszterAdatById($szemeszterId);
+ $ADAT['tanev'] = $ADAT['szemeszterAdat']['tanev'];
+ $Osztalyok = getOsztalyok($ADAT['szemeszterAdat']['tanev'],array('result' => 'indexed', 'minden'=>false, 'telephelyId' => $telephelyId));
+ if (isset($_POST['osztalyId']) && $_POST['osztalyId'] != '') { $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'],'id'); }
+ elseif (__OSZTALYFONOK && !isset($_POST['osztalyId'])) { $osztalyId = $ADAT['osztalyId'] = $_POST['osztalyId'] = $_OSZTALYA[0]; }
+
+ if (isset($_POST['tolDt']) && $_POST['tolDt'] != '') $tolDt = readVariable($_POST['tolDt'],'date');
+ elseif (isset($szemeszterKezdesDt)) $tolDt = $szemeszterKezdesDt;
+ else $tolDt = $_TANEV['kezdesDt'];
+
+ if (isset($_POST['igDt']) && $_POST['igDt'] != '') $igDt = readVariable($_POST['igDt'],'date');
+ elseif (isset($szemeszterZarasDt)) $igDt = $szemeszterZarasDt;
+ else $igDt = $_TANEV['zarasDt'];
+ // a tankör diákjainak lekérdezése
+ $ADAT['diakok'] = getDiakokByOsztalyId(array($osztalyId), $SET = array('tanev' => $tanev, 'tolDt' => null, 'igDt' => null, 'result' => '', 'statusz' => array('jogviszonyban van','magántanuló')));
+/* for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $DIAKIDS[] = $ADAT['diakok'][$i]['diakId'];
+ }
+*/
+//-----------
+ if (isset($osztalyId)) {
+ $ADAT['evfolyam'] = getEvfolyam($osztalyId,$ADAT['tanev']);
+ $ADAT['evfolyamJel'] = getEvfolyamJel($osztalyId,$ADAT['tanev']);
+
+ if ($action=='modosit') {
+ $ZAROJEGYIDS = readVariable($_POST['zaroJegyId'],'id');
+ $lr = db_connect('naplo_intezmeny');
+ for ($i=0; $i<count($ZAROJEGYIDS); $i++) {
+ $_z = $ZAROJEGYIDS[$i];
+ $q = "UPDATE zaroJegy SET evfolyamJel='%s' WHERE zaroJegyId = %u";
+ $v = array($ADAT['evfolyamJel'],$_z);
+ db_query($q, array('modul'=>'naplo_intezmeny','values'=>$v),$lr);
+ $q = "UPDATE vizsga SET evfolyamJel='%s' WHERE zaroJegyId = %u";
+ db_query($q, array('modul'=>'naplo_intezmeny','values'=>$v),$lr);
+ }
+ db_close($lr);
+ }
+ $q = "SELECT osztalyId, leiras,kezdoTanev,vegzoTanev,jel,telephelyId,osztalyJellegId, elokeszitoEvfolyam,
+ osztalyJelleg.osztalyJellegNev, osztalyJelleg.vegzesKovetelmenye, kovOsztalyJellegId
+ FROM osztaly LEFT JOIN mayor_naplo.osztalyJelleg USING (osztalyJellegId) WHERE osztalyId=%u";
+ $v = array($osztalyId);
+ $ADAT['osztalyok'] = db_query($q,array('values'=>$v,'result'=>'record','modul'=>'naplo_intezmeny'));
+
+ $q = "SELECT * FROM zaroJegy LEFT JOIN osztalyDiak ON (osztalyDiak.diakId=zaroJegy.diakId AND beDt<=hivatalosDt AND (kiDt IS NULL or kiDt>=hivatalosDt)) WHERE osztalyId=%u AND hivatalosDt>='%s' AND hivatalosDt<='%s' ORDER BY hivatalosDt,zaroJegy.diakId,evfolyam,evfolyamJel";
+ $v = array($osztalyId,$ADAT['szemeszterAdat']['kezdesDt'],$ADAT['szemeszterAdat']['zarasDt']);
+ $ADAT['zaroJegyek'] = db_query($q,array('values'=>$v,'result'=>'indexed','modul'=>'naplo_intezmeny'));
+ }
+//-----------
+// $TOOL['telephelySelect'] = array('tipus' => 'cella','paramName'=>'telephelyId');
+ $TOOL['szemeszterSelect'] = array('tipus'=>'cella','paramName' => 'szemeszterId', 'statusz' => array('aktív','lezárt') , 'post' => array('sorrendNev', 'osztalyId', 'telephelyId'));
+ if (!__DIAK) {
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'tanev' => $ADAT['szemeszterAdat']['tanev'], 'post' => array('szemeszterId', 'sorrendNev', 'telephelyId'));
+ }
+ if (isset($osztalyId) && isset($szemeszterId))
+ $TOOL['nyomtatasGomb'] = array('titleConst' => '_NYOMTATAS','tipus'=>'cella', 'url'=>'index.php?page=naplo&sub=nyomtatas&f=ertesito','post' => array('osztalyId','szemeszterId','sorrendNev', 'telephelyId'));
+ getToolParameters();
+
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck.php b/mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck.php
new file mode 100644
index 00000000..be582c89
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/osztalyozo/zaroJegyCheck.php
@@ -0,0 +1,4 @@
+<?php
+global $ADAT;
+putZaroJegyCheck($ADAT);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/sni/diakAllapot-pre.php b/mayor-orig/www/policy/private/naplo/sni/diakAllapot-pre.php
new file mode 100644
index 00000000..81926458
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/diakAllapot-pre.php
@@ -0,0 +1,127 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/sni.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ // Paraméterek
+ $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'], 'id');
+ if (isset($osztalyId)) {
+ $ADAT['diakIds'] = getDiakok(array('osztalyId' => $osztalyId, 'result' => 'idonly','override' => false));
+ if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) {
+ $ADAT['diakAdat'] = getDiakAdatById($ADAT['diakIds'], array('result' => 'assoc', 'keyfield' => 'diakId'));
+ $ADAT['sniDiakIds'] = $Diakok = array();
+ foreach ($ADAT['diakAdat'] as $_diakId => $dAdat) {
+ if ($dAdat['fogyatekossag'] != '') {
+ $ADAT['sniDiakIds'][] = $_diakId;
+ $dAdat['aktualisStatusz'] = $dAdat['statusz'];
+ $Diakok[] = $dAdat;
+ }
+ }
+ }
+ $diakId = $ADAT['diakId'] = readVariable($_POST['diakId'], 'id', null, $ADAT['sniDiakIds']);
+ if (isset($diakId)) {
+
+ $ADAT['fields']['olvasas'] = getEnumField('naplo','sniDiakAllapot','olvasas');
+ $ADAT['fields']['olvasasTempoja'] = getEnumField('naplo','sniDiakAllapot','olvasasTempoja');
+ $ADAT['fields']['olvasasHibak'] = getSetField('naplo','sniDiakAllapot','olvasasHibak');
+ $ADAT['fields']['iras'] = getEnumField('naplo','sniDiakAllapot','iras');
+ $ADAT['fields']['iraskepe'] = getEnumField('naplo','sniDiakAllapot','iraskepe');
+ $ADAT['fields']['irasHibak'] = getSetField('naplo','sniDiakAllapot','irasHibak');
+ $ADAT['fields']['szovegertes'] = getEnumField('naplo','sniDiakAllapot','szovegertes');
+ $ADAT['fields']['matematika'] = getSetField('naplo','sniDiakAllapot','matematika');
+ $ADAT['fogyatekossag'] = getSetField('naplo_intezmeny','diak', 'fogyatekossag');
+
+ // Mentor/Ofő lekérdezése, konstans beállítása
+ $ADAT['sniDiakAdat'] = getSniDiakAdat($diakId);
+ define('__MENTOR',
+ __TANAR
+ && (
+ (__OSZTALYFONOK && in_array($osztalyId, $_OSZTALYA))
+ || __USERTANARID == $ADAT['sniDiakAdat']['mentorTanarId']
+ )
+ );
+ // Action
+ if (
+ $_TANEV['statusz'] == 'aktív'
+ && (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ ) { // ? egyéb feltételek - határidő???
+ if ($action == 'allapotRogzites') {
+ $Fields = getTableFields('sniDiakAllapot','naplo');
+ foreach ($Fields as $attr => $attrNev) {
+ if (is_array($ADAT['fields'][$attr])) {
+ $Param['diakAllapot'][$attr] = readVariable($_POST[$attr], 'enum', null, $ADAT['fields'][$attr]);
+ if (is_array($Param['diakAllapot'][$attr])) $Param['diakAllapot'][$attr] = implode(',',$Param['diakAllapot'][$attr]);
+ } elseif (in_array($attr, array('diakId','szemeszter','vizsgalatTanarId','priorizalas'))) {
+ $Param['diakAllapot'][$attr] = readVariable($_POST[$attr], 'id');
+ } elseif ($attr == 'vizsgalatDt') {
+ $Param['diakAllapot'][$attr] = readVariable($_POST[$attr], 'date');
+ } else {
+ $Param['diakAllapot'][$attr] = readVariable($_POST[$attr], 'string');
+ }
+ }
+ foreach (array('gyengeseg','erosseg') as $val) {
+ $Param['gyengesegekErossegek'][$val.'Leiras'] = readVariable($_POST[$val.'Leiras'], 'string');
+ $Param['gyengesegekErossegek'][$val.'Prioritas'] = readVariable($_POST[$val.'Prioritas'], 'numeric unsigned');
+ }
+ if ($diakId != $ADAT['diakId']) {
+ $_SESSION['alert'][] = 'message:wrong_data:allapotRogzites:diakId='.$diakId.'?'.$Param['diakId'];
+ } else {
+ sniDiakAllapotRogzites($Param);
+ }
+ } elseif ($action == 'sniDiakAdatRogzites') {
+ $Param['diakId'] = $diakId;
+ $Param['kulsoInfo'] = readVariable($_POST['kulsoInfo'], 'string');
+ $Param['mentorTanarId'] = readVariable($_POST['mentorTanarId'], 'id');
+ $Param['fogyatekossag'] = readVariable($_POST['fogyatekossag'], 'enum', null, $ADAT['fogyatekossag']);
+ sniDiakAdatRogzites($Param);
+ }
+ }
+ $ADAT['diakAdat'][$diakId] = getDiakAdatById($diakId);
+ $ADAT['diakAllapot'] = getDiakAllapot($diakId);
+ $ADAT['sniDiakAdat'] = getSniDiakAdat($diakId);
+ // Osztály tanárai
+ $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV, array('tanarral' => true));
+ $ADAT['tanarIds'] = array();
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ for ($j = 0; $j < count($Tankorok[$i]['tanarok']); $j++) {
+ if (!in_array($Tankorok[$i]['tanarok'][$j]['tanarId'], $ADAT['tanarIds']))
+ $ADAT['tanarIds'][] = $Tankorok[$i]['tanarok'][$j]['tanarId'];
+ }
+ }
+ // Összes tanár névsorban
+ $ADAT['tanarok'] = getTanarok();
+ }
+
+ }
+ // Tool
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array());
+ if (isset($osztalyId)) {
+ $TOOL['diakSelect'] = array(
+ 'diakok' => $Diakok,
+ 'tipus'=>'cella','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId'),
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+ );
+ }
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=sni&f=diakAllapot','index.php?page=naplo&sub=sni&f=fejlesztesiTerv','index.php?page=naplo&sub=sni&f=tantargyiFeljegyzesek'),
+ 'titleConst' => array('_DIAK_ALLAPOT','_HAVI_OSSZEGZES','_TANTARGYI_FELJEGYZESEK'),
+ 'post' => array('osztalyId','diakId','dt'),
+ 'paramName'=>'diakId');
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/sni/diakAllapot.php b/mayor-orig/www/policy/private/naplo/sni/diakAllapot.php
new file mode 100644
index 00000000..8eb88c0e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/diakAllapot.php
@@ -0,0 +1,8 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['diakId'])) putDiakAllapot($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv-pre.php b/mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv-pre.php
new file mode 100644
index 00000000..46dfeab1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv-pre.php
@@ -0,0 +1,110 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/sni.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ // Paraméterek
+ $dt = readVariable($_POST['dt'], 'date');
+ if (!isset($dt)) {
+ $tolTime = strtotime($_TANEV['kezdesDt']);
+ $igTime = min(time(), strtotime($_TANEV['zarasDt']));
+ $dt = date('Y-m-01', $t);
+ for ($t = $tolTime; $t <= $igTime; $t = strtotime("next month", $t)) $dt = date('Y-m-01', $t);
+ }
+ $ADAT['dt'] = $dt;
+ $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'], 'id');
+ if (isset($osztalyId)) {
+ $ADAT['diakIds'] = getDiakok(array('osztalyId' => $osztalyId, 'result' => 'idonly','override' => false));
+ if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) {
+ $ADAT['diakAdat'] = getDiakAdatById($ADAT['diakIds'], array('result' => 'assoc', 'keyfield' => 'diakId'));
+ $ADAT['sniDiakIds'] = $Diakok = array();
+ foreach ($ADAT['diakAdat'] as $_diakId => $dAdat) {
+ if ($dAdat['fogyatekossag'] != '') {
+ $ADAT['sniDiakIds'][] = $_diakId;
+ $dAdat['aktualisStatusz'] = $dAdat['statusz'];
+ $Diakok[] = $dAdat;
+ }
+ }
+ }
+ $diakId = $ADAT['diakId'] = readVariable($_POST['diakId'], 'id', null, $ADAT['sniDiakIds']);
+ if (isset($diakId) && isset($dt)) {
+
+ // Mentor/Ofő lekérdezése, konstans beállítása
+ $ADAT['sniDiakAdat'] = getSniDiakAdat($diakId);
+ define('__MENTOR',
+ __TANAR
+ && (
+ (__OSZTALYFONOK && in_array($osztalyId, $_OSZTALYA))
+ || __USERTANARID == $ADAT['sniDiakAdat']['mentorTanarId']
+ )
+ );
+ // Action
+ if (
+ $_TANEV['statusz'] == 'aktív'
+ && (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ ) { // ? egyéb feltételek - határidő???
+ if ($action == 'haviOsszegzesRogzitese') {
+ $Fields = getTableFields('sniHaviOsszegzes', 'naplo');
+ foreach ($Fields as $attr => $attrNev) {
+ if (in_array($attr, array('diakId','valtozas')))
+ $Param[$attr] = readVariable($_POST[$attr], 'id');
+ elseif ($attr == 'dt')
+ $Param[$attr] = readVariable($_POST[$attr], 'date');
+ else
+ $Param[$attr] = readVariable($_POST[$attr], 'string');
+ }
+ $Param['felelos'] = readVariable($_POST['felelos'], 'id');
+ sniHaviOsszegzesRogzites($Param);
+ }
+ }
+
+ $ADAT['sniHaviOsszegzes'] = getHaviOsszegzes($diakId, $dt);
+ $Tankorok = getTankorByOsztalyId($osztalyId, __TANEV, array('tanarral' => true));
+ $ADAT['tanarIds'] = array();
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ for ($j = 0; $j < count($Tankorok[$i]['tanarok']); $j++) {
+ if (!in_array($Tankorok[$i]['tanarok'][$j]['tanarId'], $ADAT['tanarIds']))
+ $ADAT['tanarIds'][] = $Tankorok[$i]['tanarok'][$j]['tanarId'];
+ }
+ }
+ $ADAT['tanarok'] = getTanarok();
+ }
+
+
+ }
+ // Tool
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('dt'));
+ $TOOL['diakSelect'] = array(
+ 'diakok' => $Diakok,
+ 'tipus'=>'cella','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId'),
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva'),
+ 'post' => array('osztalyId','dt')
+ );
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'sor', 'ParamName' => 'dt', 'tanev' => __TANEV, 'tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt'],
+ 'hanyNaponta' => 'havonta', 'post' => array('diakId', 'osztalyId')
+ );
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=sni&f=diakAllapot','index.php?page=naplo&sub=sni&f=fejlesztesiTerv','index.php?page=naplo&sub=sni&f=tantargyiFeljegyzesek'),
+ 'titleConst' => array('_DIAK_ALLAPOT','_HAVI_OSSZEGZES','_TANTARGYI_FELJEGYZESEK'),
+ 'post' => array('osztalyId','diakId','dt'),
+ 'paramName'=>'diakId');
+ if (isset($osztalyId)) $TOOL['nyomtatasGomb'] = array('titleConst' => '_NYOMTATAS','tipus'=>'cella', 'url'=>'index.php?page=naplo&sub=nyomtatas&f=sniHaviJegyzokonyv','post' => array('osztalyId'));
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv.php b/mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv.php
new file mode 100644
index 00000000..78fd73f2
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/fejlesztesiTerv.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['diakId']) && isset($ADAT['dt'])) putHaviOsszesites($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/sni/sni-pre.php b/mayor-orig/www/policy/private/naplo/sni/sni-pre.php
new file mode 100644
index 00000000..94ab4312
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/sni-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=naplo&sub=sni&f=fejlesztesiTerv'));
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/sni/sni.php b/mayor-orig/www/policy/private/naplo/sni/sni.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/sni.php
diff --git a/mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek-pre.php b/mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek-pre.php
new file mode 100644
index 00000000..f2af35f3
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek-pre.php
@@ -0,0 +1,113 @@
+<?php
+
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+
+ // Paraméterek
+ $ADAT['tolTime'] = $tolTime = strtotime('last Monday', strtotime('+1 day', strtotime($_TANEV['kezdesDt'])));
+ $ADAT['tolDt'] = date('Y-m-d', $ADAT['tolTime']);
+ $ADAT['igTime'] = min(time(), strtotime($_TANEV['zarasDt']));
+ $ADAT['igDt'] = $ADAT['tolDt'];
+ for ($t = $ADAT['tolTime']; $t <= $ADAT['igTime']; $t = strtotime("+7 days", $t)) $ADAT['igDt'] = date('Y-m-d', $t);
+
+ $ADAT['dt'] = $dt = readVariable($_POST['dt'], 'date', $ADAT['igDt']);
+
+ $osztalyId = $ADAT['osztalyId'] = readVariable($_POST['osztalyId'], 'id');
+ if (isset($osztalyId)) {
+ $ADAT['diakIds'] = getDiakok(array('osztalyId' => $osztalyId, 'result' => 'idonly','override' => false));
+ if (is_array($ADAT['diakIds']) && count($ADAT['diakIds']) > 0) {
+ $ADAT['diakAdat'] = getDiakAdatById($ADAT['diakIds'], array('result' => 'assoc', 'keyfield' => 'diakId'));
+ $ADAT['sniDiakIds'] = $Diakok = array();
+ foreach ($ADAT['diakAdat'] as $_diakId => $dAdat) {
+ if ($dAdat['fogyatekossag'] != '') {
+ $ADAT['sniDiakIds'][] = $_diakId;
+ $dAdat['aktualisStatusz'] = $dAdat['statusz'];
+ $Diakok[] = $dAdat;
+ }
+ }
+ }
+ $diakId = $ADAT['diakId'] = readVariable($_POST['diakId'], 'id', null, $ADAT['sniDiakIds']);
+
+ if (isset($diakId) && isset($dt)) {
+
+ // Az osztály tanárai
+ $ADAT['tankorIds'] = getTankorByDiakId($diakId, __TANEV, array('result' => 'idonly'));
+ $ADAT['tankorTanar'] = getTankorTanaraiByInterval($ADAT['tankorIds'], array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result' => 'assoc', 'datumKenyszeritessel' => false));
+ $ADAT['tankorAdat'] = getTankorAdatByIds($ADAT['tankorIds'], array('tanev' => __TANEV, 'dt' => $dt));
+ foreach ($ADAT['tankorTanar'] as $_tankorId => $Tanarok) {
+ $ADAT['tankorTanaraE'][$_tankorId] = false;
+ for ($i = 0; $i < count($Tanarok); $i++)
+ if ($Tanarok[$i]['tanarId'] == __USERTANARID) { $ADAT['tankorTanaraE'][$_tankorId] = true; break; }
+ }
+
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'], 'id', null, $ADAT['tankorIds']);
+ if (isset($tankorId)) {
+ for ($i = 0; $i < count($ADAT['tankorTanar'][$tankorId]); $i++) {
+ if ($ADAT['tankorTanar'][$tankorId][$i]['tanarId'] == __USERTANARID) { define('__TANARA', true); break; }
+ }
+ if (!defined('__TANARA')) define('__TANARA', false);
+
+ }
+
+ // Action
+ if ($_TANEV['statusz'] == 'aktív') {
+ if ($action == 'tantargyiFeljegyzesRogzites') {
+ $Param = array(
+ 'diakId' => $diakId,
+ 'tankorId' => readVariable($_POST['feljegyzesTankorId'], 'id', null, $ADAT['tankorIds']),
+ 'dt' => readVariable($_POST['feljegyzesDt'], 'date'),
+ 'megjegyzes' => readVariable($_POST['megjegyzes'], 'string')
+ );
+ if (
+ __NAPLOADMIN
+ || ($ADAT['tankorTanaraE'][$Param['tankorId']] && strtotime($Param['dt']) >= strtotime(_HALADASI_HATARIDO))
+ ) tantargyiFeljegyzesRogzites($Param);
+ }
+ }
+ if (isset($tankorId)) $ADAT['sniTantargyiFeljegyzes'] = getDiakFeljegyzesByTankorId($ADAT);
+ else $ADAT['sniTantargyiFeljegyzes'] = getDiakFeljegyzesByDt($ADAT);
+ }
+
+ }
+
+ // Tool
+ $TOOL['osztalySelect'] = array('tipus'=>'cella','paramName' => 'osztalyId', 'post' => array('dt'));
+ if (isset($osztalyId))
+ $TOOL['diakSelect'] = array(
+ 'diakok' => $Diakok,
+ 'tipus'=>'cella','paramName' => 'diakId',
+ 'osztalyId'=> $osztalyId,'post' => array('osztalyId'),
+ 'statusz' => array('jogviszonyban van','magántanuló','jogviszonya felfüggesztve','jogviszonya lezárva'),
+ 'post' => array('osztalyId','dt')
+ );
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella',
+ 'url' => array('index.php?page=naplo&sub=sni&f=diakAllapot','index.php?page=naplo&sub=sni&f=fejlesztesiTerv','index.php?page=naplo&sub=sni&f=tantargyiFeljegyzesek'),
+ 'titleConst' => array('_DIAK_ALLAPOT','_HAVI_OSSZEGZES','_TANTARGYI_FELJEGYZESEK'),
+ 'post' => array('osztalyId','diakId','tankorId'),
+ 'paramName'=>'diakId');
+ if (isset($diakId))
+ $TOOL['tankorSelect'] = array('tipus' => 'sor', 'tankorok' => $TankorokMutat, 'paramName' => 'tankorId', 'post' => array('osztalyId','diakId','dt'));
+ if (!isset($tankorId))
+ $TOOL['datumSelect'] = array(
+ 'lapozo' => true,
+ 'tipus'=>'sor', 'post'=>array('diakId', 'osztalyId', 'tankorId'), 'paramName' => 'dt', 'hanyNaponta' => 7,
+ 'tolDt' => $ADAT['tolDt'],
+ 'igDt' => $_TANEV['zarasDt'], 'override' => true
+ );
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek.php b/mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek.php
new file mode 100644
index 00000000..b706e6db
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/sni/tantargyiFeljegyzesek.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['tankorId'])) putTankorFeljegyzesek($ADAT);
+ elseif (isset($ADAT['diakId'])) putDiakHetiFeljegyzesek($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/stat/lemorzsolodas-pre.php b/mayor-orig/www/policy/private/naplo/stat/lemorzsolodas-pre.php
new file mode 100644
index 00000000..0e33b8fc
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/stat/lemorzsolodas-pre.php
@@ -0,0 +1,38 @@
+<?php
+
+ global $ADAT,$TANEV;
+
+ require_once('include/share/date/names.php');
+
+ // legyen az alapértelmezett a mostani tanév és a mostani tanév okt 1-je
+ $tanev = __TANEV;
+ $dt = readVariable($_POST['dt'],'date',$_TANEV['szemeszter'][1]['zarasDt']);
+ $dt_stamp = strtotime($dt);
+
+ $q = "SELECT zarasDt,tanev,szemeszter FROM szemeszter WHERE statusz!='tervezett' ORDER BY zarasDt DESC";
+ $_napok = db_query($q,array('modul'=>'naplo_intezmeny','result'=>'indexed'));
+ for ($i=0; $i<count($_napok); $i++) {
+ $_dt = $_napok[$i]['zarasDt'];
+ $NAPOK[] = $_dt;
+ if (strtotime($dt) <= strtotime($_dt)) {
+ $tanev = $_napok[$i]['tanev'];
+ $szemeszter = $_napok[$i]['szemeszter'];
+ $_valasztottIndex = $i;
+ }
+ }
+
+ $ADAT['tanev'] = $tanev;
+ $ADAT['szemeszter'] = $szemeszter;
+ $ADAT['dt'] = $dt;
+ $ADAT['elozoDt'] = $_napok[$_valasztottIndex+1]['zarasDt'];
+
+ $ADAT['lemorzsolodas'] = getLemorzsolodas($ADAT);
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array(),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'napok' => $NAPOK
+ );
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/stat/lemorzsolodas.php b/mayor-orig/www/policy/private/naplo/stat/lemorzsolodas.php
new file mode 100644
index 00000000..e144b075
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/stat/lemorzsolodas.php
@@ -0,0 +1,8 @@
+<?php
+
+
+ global $ADAT;
+ putLemorzsolodas($ADAT);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/stat/letszam-pre.php b/mayor-orig/www/policy/private/naplo/stat/letszam-pre.php
new file mode 100644
index 00000000..5320b816
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/stat/letszam-pre.php
@@ -0,0 +1,88 @@
+<?php
+
+ global $ADAT;
+
+ require_once('include/share/date/names.php');
+
+ // legyen az alapértelmezett a mostani tanév és a mostani tanév okt 1-je
+ $tanev = __TANEV;
+ $dt = readVariable($_POST['dt'],'date',date('Y-m-d',mktime(0,0,0,10,1,__TANEV)));
+ $dt_stamp = strtotime($dt);
+
+ $q = "SELECT zarasDt,tanev FROM szemeszter WHERE statusz!='tervezett' ORDER BY zarasDt DESC";
+ $_napok = db_query($q,array('modul'=>'naplo_intezmeny','result'=>'indexed'));
+ for ($i=0; $i<count($_napok); $i++) {
+ $_dt = $_napok[$i]['zarasDt'];
+ $okt10 = date('Y-m-d',mktime(0,0,0,10,1,date('Y',strtotime($_dt))-1));
+ if (!is_array($NAPOK) || !in_array($okt10,$NAPOK)) $NAPOK[] = $okt10;
+ $NAPOK[] = $_dt;
+ if (strtotime($dt) <= strtotime($_dt)) $tanev = $_napok[$i]['tanev'];
+ }
+
+ $ADAT['tanev'] = $tanev;
+ $ADAT['dt'] = $dt;
+
+
+/* Létszám adatok */
+{
+
+ $lr = db_connect('naplo_intezmeny');
+
+ $q = "CREATE TEMPORARY TABLE _diakOkt SELECT diakId FROM diakJogviszony WHERE dt <= '".$dt."' GROUP BY diakId HAVING MAX(IF(statusz IN ('jogviszonyban van'),dt,'0000-00-00')) > MAX(IF(statusz NOT IN ('jogviszonyban van') AND dt <= '".$dt."',dt,'0000-00-00'))";
+ $r = db_query($q,array('modul'=>'naplo_intezmeny'),$lr);
+ $q = "SELECT CONCAT(IF(telephelyId IS NULL,0,telephelyId),LPAD(osztalyJel,4,0)) AS sorrend,osztalyId,osztalyJel,osztaly.kezdoTanev,osztaly.vegzoTanev,count(_diakOkt.diakId) AS dbDiak, YEAR(szuletesiIdo) AS szuletesiEv,
+ IF(diak.nem IS NOT NULL,nem,'fiú') AS neme,nem FROM `_diakOkt`
+ LEFT JOIN `osztalyDiak` ON (_diakOkt.diakId=osztalyDiak.diakId AND beDt<='".$dt."' AND (kiDt IS NULL OR kiDt>='".$dt."'))
+ LEFT JOIN `osztaly` USING (osztalyId)
+ LEFT JOIN `diak` ON (_diakOkt.diakId=diak.diakId)
+ LEFT JOIN `naplo_".__INTEZMENY."_".$tanev."`.osztalyNaplo USING (osztalyId)
+ WHERE osztaly.kezdoTanev<=".$tanev." AND osztaly.vegzoTanev>=".$tanev."
+ GROUP BY osztalyId,YEAR(szuletesiIdo),neme
+ ORDER BY szuletesiEv,LPAD(osztalyJel,10,0),nem";
+ $r = db_query($q,array('modul'=>'naplo_intezmeny','result'=>'indexed'),$lr);
+ $x = reindex($r,array('szuletesiEv','osztalyId','nem')) ;
+
+ for ($i=0; $i<count($r); $i++) {
+ $_TMP[$r[$i]['sorrend']]= array('osztalyJel'=>$r[$i]['osztalyJel'],'osztalyId'=>$r[$i]['osztalyId']);
+ }
+ ksort($_TMP);
+ $ADAT['osztalyok'] = $_TMP;
+
+}
+
+ $ADAT['eletkor'] = $x;
+
+
+
+/* Nyelvek statisztikája */
+// ennyi darab tankör van nyelvek szerint, bár ezt senki nem kérdezte :) select targyId,count(*) from tankor left join tankorTipus USING (tankorTipusId) WHERE rovidNev='első nyelv' group by targyId;
+// select targyId,count(*) from tankor left join tankorTipus USING (tankorTipusId) LEFT JOIN tankorDiak USING (tankorId) WHERE rovidNev='első nyelv' group by targyId;
+
+/*
+
+$q = "select targyId,count(*) from tankor left join tankorTipus USING (tankorTipusId) LEFT JOIN tankorDiak USING (tankorId) LEFT JOIN _diakOkt USING (diakId)
+WHERE _diakOkt.diakId is not null AND rovidNev='első nyelv'
+AND beDt<='".$dt."' AND (kiDt is null OR kiDt>='".$dt."')
+group by targyId";
+
+ $r = db_query($q,array('modul'=>'naplo_intezmeny','result'=>'indexed'),$lr);
+
+echo '<pre>';
+var_dump($r);
+
+
+ $_SESSION['alert'][] = 'info::Nyelvek hibásak lehetnek, ha van olyan tárgy, ami nem első-második nyelvnek van megjelölve';
+*/
+
+ $_SESSION['alert'][] = 'info::csak a kiválasztott dátumkor "jogviszonyban van" jogviszonyú diákok látszanak ebben a táblázatban (a fiú/lány mezők hiánya hibás adatokhoz vezethet)';
+
+ $TOOL['datumSelect'] = array(
+ 'tipus'=>'cella', 'post' => array(),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+// 'tolDt' => date('Y-m-d', strtotime($_TANEV['kezdesDt'])),
+// 'igDt' => $_TANEV['zarasDt'],
+ 'napok' => $NAPOK
+ );
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/stat/letszam.php b/mayor-orig/www/policy/private/naplo/stat/letszam.php
new file mode 100644
index 00000000..d521ccc6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/stat/letszam.php
@@ -0,0 +1,8 @@
+<?php
+
+
+ global $ADAT;
+ putLetszamStat($ADAT);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php b/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php
new file mode 100644
index 00000000..a47d6316
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas-pre.php
@@ -0,0 +1,127 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ global $ADAT;
+ $ADAT = array();
+
+/*
+ $ADAT['evfolyamJelek'] = getEvfolyamJelek(array('result'=>'idonly'));
+ $ADAT['tankorTipusok'] = getTankorTipusok();
+ foreach ($ADAT['tankorTipusok'] as $tankorTipusId => $tAdat) $ADAT['tankorTipusIds'][$tAdat['oratervi']][] = $tankorTipusId;
+ $ADAT['finanszírozott pedagógus létszám'] = array(
+ 'általános iskola' => 11.8, // 11.8 tanuló / 1 pedagógus
+ 'gimnázium' => 12.5, // 12.5 tanuló / 1 pedagógus
+ 'szakiskola, Híd programok' => 12, // ...
+ 'szakközépiskola, nem szakkképző évfolyam' => 12.4,
+ 'szakközépiskola, szakkképző évfolyam' => 13.7
+ ); // -- TODO szakgimnázium???
+
+
+
+ $IA['intezmenyAdat'] = getIntezmenyByRovidnev(__INTEZMENY);
+ $IA['osztalyAdat'] = getOsztalyok(__TANEV, array('result' => 'assoc', 'minden'=>false, 'telephelyId' => null));
+ foreach ($IA['osztalyAdat'] as $idx => $oAdat) $IA['osztalyIds'][] = $oAdat['osztalyId'];
+ $IA['targyAdat'] = getTargyAdatByIds();
+
+ $IA['diakLetszam']['statusz'] = getDiakLetszamByStatusz();
+ $IA['diakLetszam']['osztaly'] = getDiakLetszamByOsztalyId($IA['osztalyIds']);
+ foreach ($IA['diakLetszam']['osztaly'] as $osztalyId => $letszam)
+ if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['összes'] += intval($letszam);
+ foreach ($IA['diakLetszam']['osztaly']['fiú'] as $osztalyId => $letszam)
+ if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['fiú'] += intval($letszam);
+ foreach ($IA['diakLetszam']['osztaly']['lány'] as $osztalyId => $letszam)
+ if (is_numeric($osztalyId)) $IA['diakLetszam']['evfolyamJel'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ]['lány'] += intval($letszam);
+ $IA['tanarLetszam']['besorolas'] = getTanarLetszamByBesorolas();
+ $IA['tanarLetszam']['statusz'] = getTanarLetszamByStatusz();
+ $IA['oraszamok'] = getTankorOraszamOsszesites($ADAT['tankorTipusIds']);
+ $IA['targyOraszamok'] = getTargyOraszamok($ADAT['tankorTipusIds']);
+ $IA['osztalyOraszamok'] = getOsztalyOraszamok($IA['osztalyIds'], $ADAT['tankorTipusIds']);
+ foreach ($IA['osztalyOraszamok']['összes'] as $osztalyId => $oraszam) {
+ $IA['evfolyamOraszamok']['összes'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($oraszam);
+ $IA['evfolyamOraszamok']['óratervi'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($IA['osztalyOraszamok']['óratervi'][$osztalyId]);
+ $IA['evfolyamOraszamok']['tanórán kívüli'][ $IA['osztalyAdat'][$osztalyId]['evfolyamJel'] ] += intval($IA['osztalyOraszamok']['tanórán kívüli'][$osztalyId]);
+ }
+ $egyhaziE = ($IA['intezmenyAdat']['fenntarto']=='egyházi');
+ foreach ($IA['osztalyAdat'] as $osztalyId => $osztalyAdat) {
+ $IA['osztalyIdokeret'][$osztalyId] = getOsztalyHetiIdokeret($osztalyId, $osztalyAdat, array('egyhaziE'=>$egyhaziE));
+ $IA['osztalyIdokeret']['összesen']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['összesen']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['összesen']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['összesen']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['összesen']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['összesen']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,22)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4'))) {
+ $IA['osztalyIdokeret']['alsó']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['alsó']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['alsó']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['alsó']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['alsó']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['alsó']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,23)) && in_array($osztalyAdat['evfolyamJel'], array('5','6','7','8'))) {
+ $IA['osztalyIdokeret']['felső']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['felső']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['felső']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['felső']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['felső']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['felső']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,22,23)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4','5','6','7','8'))) {
+ $IA['osztalyIdokeret']['általános']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['általános']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['általános']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['általános']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['általános']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['általános']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(51,52,53,61,62,63)) && in_array($osztalyAdat['evfolyamJel'], array('1','2','3','4','5','6','7','8'))) {
+ $IA['osztalyIdokeret']['gimnázium18']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['gimnázium18']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['gimnázium18']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['gimnázium18']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['gimnázium18']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['gimnázium18']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63)) && in_array($osztalyAdat['evfolyamJel'], array('9','10','11','12'))) {
+ $IA['osztalyIdokeret']['gimnázium92']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['gimnázium92']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['gimnázium92']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['gimnázium92']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['gimnázium92']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['gimnázium92']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63))) {
+ $IA['osztalyIdokeret']['gimnázium']['összes'] += $IA['osztalyIdokeret'][$osztalyId]['összes'];
+ $IA['osztalyIdokeret']['gimnázium']['engedélyezett'] += $IA['osztalyIdokeret'][$osztalyId]['engedélyezett'];
+ $IA['osztalyIdokeret']['gimnázium']['tehetséggondozás-felzárkóztatás'] += $IA['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'];
+ $IA['osztalyIdokeret']['gimnázium']['egyházi'] += $IA['osztalyIdokeret'][$osztalyId]['egyházi'];
+ $IA['osztalyIdokeret']['gimnázium']['gimnázium'] += $IA['osztalyIdokeret'][$osztalyId]['gimnázium'];
+ $IA['osztalyIdokeret']['gimnázium']['nemzetiségi'] += $IA['osztalyIdokeret'][$osztalyId]['nemzetiségi'];
+ }
+ // Finanszírozott pedagógus létszámhoz diáklészámok osztály-típusonként
+ if (in_array($osztalyAdat['osztalyJellegId'], array(21,22,23))) { // általános iskola
+ $IA['diakLetszam']['általános iskola'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array(31,32,33,34,35,36,51,52,53,61,62,63,65))) { // gimnázium
+ $IA['diakLetszam']['gimnázium'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array(82,83,84,85,91,92,93))) { // szakiskola, Híd programok
+ $IA['diakLetszam']['szakiskola, Híd programok'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array(71,72,73,74,75,76,77,78,79))) { // szakközépiskola, nem szakképző évfolyam
+ $IA['diakLetszam']['szakközépiskola, nem szakkképző évfolyam'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ } else if (in_array($osztalyAdat['osztalyJellegId'], array())) { // szakközépiskola, szakképző évfolyam
+ $IA['diakLetszam']['szakközépiskola, szakképző évfolyam'] += $IA['diakLetszam']['osztaly'][$osztalyId];
+ }
+ } // osztályok
+ $IA['tankorLetszamStat'] = getTankorLetszamStat();
+*/
+ $IA = getTantargyfelosztasStat();
+
+ $ADAT['intezmeny'][__INTEZMENY] = $IA;
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php b/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php
new file mode 100644
index 00000000..1e5786be
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/stat/tantargyFelosztas.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putStat($ADAT);
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/szulinap-pre.php b/mayor-orig/www/policy/private/naplo/szulinap-pre.php
new file mode 100644
index 00000000..46164faf
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/szulinap-pre.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if ($skin=='ajax') {
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+ $ADAT['ma'] = getDiakBySzulDt($dt);
+ $ADAT['osztaly'] = getOsztalyok(__TANEV,array('result'=>'assoc'));
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/szulinap.php b/mayor-orig/www/policy/private/naplo/szulinap.php
new file mode 100644
index 00000000..93606734
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/szulinap.php
@@ -0,0 +1,44 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+if ($skin=='ajax') {
+
+ $szulinapos= false;
+
+ if (__NAPLOADMIN || __TANAR) {
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['ma']['diak']); $i++) {
+ echo '<li>';
+ echo $ADAT['ma']['diak'][$i]['viseltNevElotag'].' ';
+ echo $ADAT['ma']['diak'][$i]['viseltCsaladinev'].' ';
+ echo $ADAT['ma']['diak'][$i]['viseltUtonev'];
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+
+ if (is_array($ADAT['ma']['diakOsztaly'])) foreach($ADAT['ma']['diakOsztaly'] as $_diakId => $_osztalyId) {
+ $O[$_osztalyId[0]]++;
+ if ( defined('__USERDIAKID') && __USERDIAKID == $_diakId ) $szulinapos = true;
+
+ }
+
+ if ($szulinapos) echo _HAPPYBIRTHDAY;
+
+ if (is_array($O)) {
+ echo '<ul>';
+ foreach($O as $osztalyId => $db) {
+ echo '<li>';
+ echo $ADAT['osztaly'][$osztalyId]['osztalyJel'].': ' ;
+ echo $db.' ';
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+
+}
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php b/mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php
new file mode 100644
index 00000000..dbf2ba62
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/checkStatus-pre.php
@@ -0,0 +1,7 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ $ADAT = checkStatus();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/checkStatus.php b/mayor-orig/www/policy/private/naplo/tanev/checkStatus.php
new file mode 100644
index 00000000..56f3a5fe
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/checkStatus.php
@@ -0,0 +1,6 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ global $ADAT;
+ putCheckStatus($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php b/mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php
new file mode 100644
index 00000000..24a3248a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/diakTanarai-pre.php
@@ -0,0 +1,54 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && __TITKARSAG !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+
+ $ADAT['osztalyId'] = array();
+ if (is_array($_POST['osztalyIds'])) for ($i = 0; $i < count($_POST['osztalyIds']); $i++) {
+ $ADAT['osztalyId'][] = readVariable($_POST['osztalyIds'][$i], 'numeric unsigned');
+ }
+ $_POST['osztalyIds'] = $ADAT['osztalyId'];
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'], 'numeric unsigned');
+ $ADAT['tankorIds'] = array();
+
+ $ADAT['osztaly'] = getOsztalyok(__TANEV, array('result' => 'assoc'));
+ if (count($ADAT['osztalyId']) > 0 && isset($targyId)) {
+
+ // diákok lekérdezése
+ $ADAT['diak'] = getDiakokByOsztalyId($ADAT['osztalyId']);
+ // diákok tankörei
+ for ($i = 0; $i < count($ADAT['diak']); $i++) {
+
+ $diakId = $ADAT['diak'][$i]['diakId'];
+ $ADAT['diak'][$i]['tankorIds'] = array();
+ $ret = getTankorByDiakId($diakId, $tanev = __TANEV, $SET = array('csakId' => false, 'tolDt' => '', 'igDt' => '', 'result'=>'', 'jelenlet'=>''));
+ if ($ret !== false) {
+ for ($j = 0; $j < count($ret); $j++) {
+ if ($ret[$j]['targyId'] == $targyId) {
+ $ADAT['diak'][$i]['tankorIds'][] = $ret[$j]['tankorId'];
+ if (!in_array($ret[$j]['tankorId'], $ADAT['tankorIds'])) $ADAT['tankorIds'][] = $ret[$j]['tankorId'];
+ }
+ }
+ }
+ }
+
+ // Tankörök tanárai
+ $ADAT['tankorTanar'] = getTankorTanaraiByInterval(
+ $ADAT['tankorIds'], array('tanev' => __TANEV, 'tolDt' => '', 'igDt' => '', 'result' => 'assoc')
+ );
+ }
+
+
+ // ToolBar
+ $TOOL['targySelect']= array('tipus'=>'cella','paramName'=>'targyId', 'post'=>array('osztalyIds'));
+ getToolParameters();
+
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php b/mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php
new file mode 100644
index 00000000..2800d37a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/diakTanarai.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putOsztalyValaszto($ADAT);
+ if (is_array($ADAT['tankorTanar']) && count($ADAT['tankorTanar']) > 0)
+ putDiakTanarLista($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php b/mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php
new file mode 100644
index 00000000..a57888c2
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/fogadoOra-pre.php
@@ -0,0 +1,142 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TITKARSAG && !__TANAR && (!__DIAK || _POLICY != 'parent')) {
+ $_SESSION['alert'][] = 'page:insufficient_acces';
+ } else {
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/terem.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+
+ $tanarId = readVariable(
+ $_POST['tanarId'], 'id', readVariable($_GET['tanarId'], 'id', ((__TANAR && !isset($_POST['tanarId']))?__USERTANARID:null))
+ );
+
+ if (__DIAK) {
+ require_once('include/modules/naplo/share/tankor.php');
+ $szuloId = getSzuloIdByUserAccount();
+ $szuloDiakjai = getSzuloDiakjai();
+ $diakIds = array();
+ for ($i = 0; $i < count($szuloDiakjai); $i++) $diakIds[] = $szuloDiakjai[$i]['diakId'];
+ $diakTankorIds = getTankorIdsByDiakIds($diakIds);
+ $diakTanarai = getTankorTanaraiByInterval($diakTankorIds);
+
+ $idoszak = getIdoszakByTanev(array('tanev' => __TANEV, null, 'tipus' => array('fogadóóra jelentkezés'), 'tolDt' => date('Y-m-d H:i:s'), 'igDt' => date('Y-m-d H:i:s'), 'return' => '', 'arraymap'=>null));
+ define('__FOGADOORA_JELENTKEZES',(is_array($idoszak) && count($idoszak)>0));
+ }
+ // ----------- action -------------- //
+ if (__NAPLOADMIN || __VEZETOSEG) {
+ if ( strtotime($_POST['tolDt']) > 0) $_tolDt = $_POST['tolDt'];
+
+ if ($action == 'kovetkezoFogado') {
+ $tol = readVariable($_tolDt.' '.$_POST['tolTime'].':00', 'datetime');
+ $ig = readVariable($_tolDt.' '.$_POST['igTime'].':00', 'datetime');
+ if (isset($tol) && isset($ig)) kovetkezoFogadoOraInit($tol, $ig);
+ } elseif ($action == 'tanarFogado') {
+ $tol = readVariable($_tolDt.' '.$_POST['tolTime'].':00', 'datetime');
+ $ig = readVariable($_tolDt.' '.$_POST['igTime'].':00', 'datetime');
+ $teremId = readVariable($_POST['teremId'], 'id');
+ if (tanarFogadoOra($tanarId, $tol, $ig, $teremId))
+ $_SESSION['alert'][] = 'info:success';
+
+ } elseif ($action == 'listaLekerdezese') {
+ $Lista = getFogadoOraLista();
+ }
+ }
+ if (__DIAK && $action == 'fogadoOraJelentkezes') {
+ if (__FOGADOORA_JELENTKEZES === true) {
+ $M = array();
+ for ($i = 0; $i < count($diakTanarai); $i++) {
+ if (isset($_POST['jel'.$i])) {
+ list($tId, $datetime) = explode('/',$_POST['jel'.$i]);
+ $M[] = array('tanarId' => readVariable($tId, 'id'), 'datetime' => readVariable($datetime, 'datetime'));
+ }
+ }
+ fogadoOraJelentkezes($szuloId, $M);
+ } else {
+ $_SESSION['alert'][] = 'message:deadline_expired';
+ }
+ }
+ // ----------- action vége -------------- //
+ $FogadoDt = getKovetkezoFogadoDtk();
+ $Tanarok = getTanarok(array('result' => 'assoc'));
+ $Termek = getTermek();
+ $TermekAsszoc = getTermek(array('result' => 'assoc', 'tipus' => array(), 'telephelyId' => null));
+ $Szulok = getSzulok();
+
+ if (isset($tanarId)) {
+ $tanarFogado = getTanarFogadoOra($tanarId);
+ $szuloIds = array();
+ foreach ($tanarFogado['jelentkezesek'] as $szId => $szAdat) $szuloIds[] = $szAdat['szuloId'];
+ if (count($szuloIds) > 0) $Szulok['diakjai'] = getSzulokDiakjai($szuloIds);
+ } elseif (__NAPLOADMIN || __VEZETOSEG || __DIAK) {
+ if (count($FogadoDt['dates']) > 0) {
+ $FogadoOsszes = getFogadoOsszes();
+ }
+ if (is_array($Lista)) {
+ $szuloIds = array(2,3,4);
+ reset($Lista);
+ foreach ($Lista['jelentkezesek'] as $tanarId => $tAdat) {
+ foreach ($tAdat as $index => $A) {
+ if (!in_array($A['szuloId'], $szuloIds) && $A['szuloId'] != '') $szuloIds[] = $A['szuloId'];
+ }
+ }
+ reset($Lista);
+ if (count($szuloIds) > 0) $Szulok['diakjai'] = getSzulokDiakjai($szuloIds);
+ unset($tanarId);
+ }
+ }
+ if (__DIAK) {
+ // Minden tanár csak egyszer szerepeljen!!
+ $tanarIds = $dTanarai = $tanarTerme = array();
+ for ($i = 0; $i < count($diakTanarai); $i++)
+ if (!in_array($diakTanarai[$i]['tanarId'], $tanarIds)) {
+ $diakTanarai[$i]['foglalt'] = getTanarFogadoOra($diakTanarai[$i]['tanarId']);
+ $tanarIds[] = $diakTanarai[$i]['tanarId'];
+ $dTanarai[] = $diakTanarai[$i];
+
+ }
+ $diakTanarai = $dTanarai;
+ $Alkalmak = array('napok' => array());
+ for ($i = 0; $i < count($FogadoOsszes); $i++) {
+ if (in_array($FogadoOsszes[$i]['tanarId'], $tanarIds)) {
+ $Alkalmak[$FogadoOsszes[$i]['tanarId']] = $FogadoOsszes[$i];
+ $Alkalmak['tanarTerme'][$FogadoOsszes[$i]['tanarId']] = $FogadoOsszes[$i]['teremId'];
+
+ $nap = substr($FogadoOsszes[$i]['tol'], 0, 10);
+ if (!array_key_exists($nap, $Alkalmak['napok'])) {
+ $Alkalmak['napok'][$nap] = array(
+ 'tol' => substr($FogadoOsszes[$i]['tol'], 11, 5),
+ 'ig' => substr($FogadoOsszes[$i]['ig'], 11, 5),
+ );
+ } else {
+ if ($Alkalmak['napok'][$nap]['tol'] > ($tol = substr($FogadoOsszes[$i]['tol'], 11, 5)))
+ $Alkalmak['napok'][$nap]['tol'] = $tol;
+ if ($Alkalmak['napok'][$nap]['ig'] < ($ig = substr($FogadoOsszes[$i]['ig'], 11, 5)))
+ $Alkalmak['napok'][$nap]['ig'] = $ig;
+ }
+ }
+ }
+ ksort($Alkalmak);
+ $szuloJelentkezes = getSzuloJelentkezes($szuloId);
+ }
+
+ if (count($FogadoDt['dates']) > 0) {
+ // Szülő fogadóóra naponként jelentkezhet
+// if (__DIAK)
+// $TOOL['datumSelect'] = array(
+// 'tipus'=>'sor', 'post'=>array('tanarId', 'diakId', 'osztalyId', 'tankorId'),
+// 'paramName' => 'igDt', 'hanyNaponta' => 7,
+// 'tolDt' => date('Y-m-d', strtotime('Saturday', strtotime($_TANEV['kezdesDt']))),
+// 'igDt' => $_TANEV['zarasDt'],
+// );
+ // Aki a tanár fogadóóráit szeretné látni
+ if (__NAPLOADMIN || __VEZETOSEG || __TANAR || __TITKARSAG)
+ $TOOL['tanarSelect'] = array('tipus' => 'cella', 'post' => array('igDt'));
+ }
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php b/mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php
new file mode 100644
index 00000000..a90526cd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/fogadoOra.php
@@ -0,0 +1,26 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $FogadoDt, $tanarId, $tanarFogado, $Tanarok, $FogadoOsszes, $Termek, $TermekAsszoc, $diakTanarai, $Alkalmak, $szuloId;
+ global $szuloJelentkezes, $Szulok, $Lista;
+
+ if (__NAPLOADMIN===true || __VEZETOSEG===true) {
+ if (count($FogadoDt['dates']) > 0 && isset($tanarId)) {
+ tanarFogadoIdopontModosito($tanarFogado['adatok'], $Termek);
+ } elseif (is_array($Lista)) {
+ putFogadoOraLista($Lista, $Tanarok, $Szulok);
+ } else {
+ kovetkezoFogadoIdopont($tanarFogado, $Termek);
+ if (is_array($FogadoOsszes)) putFogadoOsszes($FogadoOsszes, $Tanarok);
+ }
+
+ }
+ if ((__TANAR===true || _TITKARSAG===true) && count($FogadoDt['dates']) > 0 && isset($tanarId)) {
+ tanarFogadoIdopont($tanarFogado, $Termek, $Szulok);
+ }
+ if (__DIAK===true) { // Szülő - jelentkezés
+ putFogadoOraJelentkezes($szuloId, $diakTanarai, $Alkalmak, $szuloJelentkezes, $TermekAsszoc);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php b/mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php
new file mode 100644
index 00000000..d0464159
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/munkaterv-pre.php
@@ -0,0 +1,102 @@
+<?php
+/*
+ Module: naplo
+*/
+
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG && !__TANAR && !__TITKARSAG && !__DIAK) {
+ $_SESSION['alert'][] = 'page:illegal_access';
+ } else {
+
+ require_once('include/modules/naplo/share/file.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/nap.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['napTipusok'] = getNapTipusok();
+ $ADAT['munkaterv'] = getMunkatervek(array('result' => 'assoc'));
+ $ADAT['fields']['csengetesiRendTipus'] = getEnumField('naplo','nap','csengetesiRendTipus');
+
+ if (count($ADAT['munkaterv']) == 1) $munkatervId = 1;
+ else $munkatervId = readVariable($_POST['munkatervId'], 'id');
+ if (!isset($munkatervId)) $munkatervId = 1;
+ $ADAT['munkatervId'] = $munkatervId;
+ if (__NAPLOADMIN || __VEZETOSEG) { // csak admin és a vezetőség módosíthat bármit!
+
+ $ADAT['osztaly'] = getOsztalyok();
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $ADAT['osztaly'][$i]['munkatervId'] = getMunkatervByOsztalyId($ADAT['osztaly'][$i]['osztalyId']);
+ }
+ if ($action == 'napokInit') {
+ for ($i = 1; $i <= intval($_POST['hetDb']); $i++) $ADAT['Hetek'][] = $i;
+ $ADAT['tanitasiNap'] = readVariable($_POST['tanitasiNap'], 'numeric unsigned');
+ $ADAT['tanitasNelkuliMunkanap'] = readVariable($_POST['tanitasNelkuliMunkanap'], 'numeric unsigned');
+ $ADAT['vegzosZarasDt'] = readVariable($_POST['vegzosZarasDt'], 'date');
+ if ($initResult = initNapok($ADAT)) $ADAT['munkatervId'] = 1;
+ $ADAT['munkaterv'] = getMunkatervek(array('result' => 'assoc'));
+ }
+ if (__MUNKATERV_OK || $initResult===true) {
+ if ($action == 'hetHozzarendeles') {
+ // később esetleg ezt is lehetne munkatervenként külön... nem?
+ for ($i = 1; $i <= intval($_POST['hetDb']); $i++) $ADAT['Hetek'][] = $i;
+ $tolDt = readVariable($_POST['tolDt'], 'date');
+ $igDt = readVariable($_POST['igDt'], 'date');
+ orarendiHetekHozzarendelese($tolDt, $igDt, $ADAT['Hetek']);
+ } elseif ($action == 'munkatervModositas') {
+ $dt = readVariable($_POST['dt'], 'date');
+ $tipus = readVariable($_POST['tipus'], 'enum', 'tanítási nap', $ADAT['napTipusok']);
+ $megj = readVariable($_POST['megjegyzes'],'string','');
+ $orarendiHet = readVariable($_POST['orarendiHet'], 'numeric unsigned');
+ $csengetesiRendTipus = readVariable($_POST['csengetesiRendTipus'], 'string', null, $ADAT['fields']['csengetesiRendTipus']);
+ $ADAT['Hetek'] = getOrarendiHetek(array('tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt']));
+ if (
+ $_TANEV['statusz'] == 'aktív'
+ && (__FOLYO_TANEV || __NAPLOADMIN)
+ )
+ munkatervModositas($dt, $tipus, $megj, $orarendiHet, $ADAT['Hetek'], $ADAT['munkatervId'], $csengetesiRendTipus);
+ $ADAT['Napok'] = getTanevNapjai($munkatervId);
+ } elseif ($action == 'ujMunkaterv') {
+ $ADAT['munkatervNev'] = readVariable($_POST['munkatervNev'],'string','');
+ $ADAT['tanitasiNap'] = readVariable($_POST['tanitasiNap'], 'numeric unsigned');
+ $ADAT['tanitasNelkuliMunkanap'] = readVariable($_POST['tanitasNelkuliMunkanap'], 'numeric unsigned');
+ $ADAT['vegzosZarasDt'] = readVariable($_POST['vegzosZarasDt'], 'date');
+ $ADAT['munkatervId'] = $munkatervId = ujMunkaterv($ADAT);
+ if ($munkatervId) { $ADAT['munkaterv'] = getMunkatervek(array('result' => 'assoc')); }
+ } elseif ($action == 'munkatervOsztaly') {
+ $ADAT['osztalyIds'] = readVariable($_POST['osztalyId'], 'id');
+ $ADAT['ujMunkatervIds'] = readVariable($_POST['ujMunkatervId'], 'id');
+ if (!munkatervOsztaly($ADAT)) $_SESSION['alert'][] = 'message:a hozzárendelés nem sikerült';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $ADAT['osztaly'][$i]['munkatervId'] = getMunkatervByOsztalyId($ADAT['osztaly'][$i]['osztalyId']);
+ }
+ }
+ if ($action == 'honapValasztas' && $_POST['ho'] != '') {
+ $ho = $_POST['ho'];
+ $ADAT['Napok'] = getHonapNapjai($ho, $munkatervId);
+ $ADAT['Hetek'] = getOrarendiHetek(array('tolDt' => $_TANEV['kezdesDt'], 'igDt' => $_TANEV['zarasDt']));
+ } else {
+ $ADAT['Napok'] = getTanevNapjai($munkatervId);
+ }
+
+ } else {
+ $ADAT['Hetek'] = getOrarendiHetek(array('tolDt'=>$_TANEV['kezdesDt'],'igDt'=>$_TANEV['zarasDt']));
+ }
+ } else { // nem admin, nem vezető --> csak éves munkatervet lát (ha van)
+ $ADAT['Napok'] = getTanevNapjai($munkatervId);
+ }
+ $ADAT['NapokSzama'] = getNapokSzama(array('munkatervId' => $munkatervId));
+
+
+ if (count($ADAT['munkaterv']) > 1) {
+ $TOOL['munkatervSelect'] = array('tipus' => 'cella','paramName' => 'munkatervId', 'post' => array());
+ getToolParameters();
+
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/munkaterv.php b/mayor-orig/www/policy/private/naplo/tanev/munkaterv.php
new file mode 100644
index 00000000..8e9719e5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/munkaterv.php
@@ -0,0 +1,26 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT, $ho, $_TANEV;
+ global $initResult;
+
+ if (__MUNKATERV_OK || $initResult===true) {
+ if (__NAPLOADMIN===true) putAdminForm($ADAT);
+ else putNapokSzama($ADAT);
+ if (
+ isset($ho)
+ && $ho != ''
+ && $_TANEV['statusz'] == 'aktív'
+ && (__FOLYO_TANEV || __NAPLOADMIN)
+ ) $ADAT['action'] = 'munkatervModositas'; //putNapokForm($ADAT['Napok'], $ADAT['napTipusok'], 'munkatervModositas', $ADAT['Hetek']);
+ else $ADAT['action'] = 'honapValasztas'; //putNapokForm($ADAT['Napok'], $ADAT['napTipusok'], 'honapValasztas');
+ putNapokForm($ADAT);
+ } elseif (__NAPLOADMIN===true) {
+ putNapokInit($ADAT, array('hide' => false));
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php b/mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php
new file mode 100644
index 00000000..d584bfb5
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/tanev-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=naplo&sub=tanev&f=munkaterv'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/tanev.php b/mayor-orig/www/policy/private/naplo/tanev/tanev.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/tanev.php
diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php b/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php
new file mode 100644
index 00000000..c8672be4
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk-pre.php
@@ -0,0 +1,114 @@
+<?php
+/*
+ TODO: evfolyamJel szűrés ellenőrzés!!
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/targy.php');
+
+ if (intval($_POST['tanev'])!=0) $tanev = intval($_POST['tanev']);
+ else $tanev = __TANEV;
+
+ $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ $osztalyId = readVariable($_POST['osztalyId'], 'numeric unsigned', null);
+
+ $targyIds = $ADAT['targySzuro'] = $ADAT['evfolyamJelSzuro'] = array();
+ $ADAT['evfolyamJelek'] = getEvfolyamJelek(array('result'=>'idonly'));
+
+ if (isset($osztalyId)) {
+ $ADAT['osztalySzuro'] = array($osztalyId);
+ } else {
+ // Évfolyam szerinti szűréshez - évfolyamok
+ $ADAT['evfolyamJelSzuro'] = readVariable($_POST['evfolyamJel'], 'enum', null, $ADAT['evfolyamJelek']);
+ $ADAT['osztalySzuro'] = getOsztalyIdByEvfolyamJel($ADAT['evfolyamJelSzuro'], $tanev);
+ }
+ if (count($ADAT['osztalySzuro']) > 1) $ADAT['osztalySzurtTankorIds'] = getTankorByOsztalyIds($ADAT['osztalySzuro'], $tanev);
+ elseif (count($ADAT['osztalySzuro']) > 0) {
+ $osztalyId = $ADAT['osztalySzuro'][0];
+ $ADAT['osztalySzurtTankorIds'] = getTankorByOsztalyId($osztalyId, $tanev, array('csakId' => true));
+ } else $ADAT['osztalySzurtTankorIds'] = array();
+ // Tárgy szerinti szűréshez - tárgyak
+ $ADAT['targyak'] = getTargyak();
+ for ($i = 0; $i < count($ADAT['targyak']); $i++) $targyIds[] = $ADAT['targyak'][$i]['targyId'];
+ if (is_array($_POST['targyId'])) {
+ for ($i = 0; $i < count($_POST['targyId']); $i++) {
+ $targyId = readVariable($_POST['targyId'][$i], 'numeric unsigned', null, $targyIds);
+ if (isset($targyId)) {
+ $ADAT['targySzuro'][] = $targyId;
+ }
+ }
+ }
+
+ if ($action == 'ujTankorBlokk') {
+
+ $_DATA = array();
+ $_DATA['blokkNev'] = readVariable($_POST['blokkNev'],'string');
+ $_DATA['exportOraszam'] = readVariable(str_replace(',', '.', $_POST['exportOraszam']), 'float unsigned');
+ $_DATA['tankorId'] = readVariable($_POST['tankorId'], 'numeric unsigned');
+ ujTankorBlokk($_DATA['blokkNev'], $_DATA['exportOraszam'], $_DATA['tankorId'], $tanev);
+
+ } elseif ($action=='modTankorBlokk') {
+
+ $_DATA['tanev'] = $tanev;
+ $_DATA['blokkId'] = readVariable($_POST['blokkId'], 'numeric unsigned');
+ $_DATA['exportOraszam'] = readVariable(str_replace(',', '.', $_POST['exportOraszam']), 'float unsigned');
+ $_DATA['blokkNev'] = readVariable($_POST['blokkNev'], 'string');
+ $_DATA['tankorIds'] = readVariable($_POST['tankorIds'], 'numeric unsigned');
+// for ($i = 0; $i < count($_POST['tankorIds']); $i++) {
+// if (intval($_POST['tankorIds'][$i])) $_DATA['tankorIds'][] = intval($_POST['tankorIds'][$i]);
+// }
+ if (isset($_POST['del']) && $_POST['del'] != '')
+ tankorBlokkTorles($_DATA);
+ else
+ tankorBlokkModositas($_DATA);
+
+ }
+
+ $tankorok= getTankorok(
+ array("tanev=$tanev"),
+ "LPAD(substring_index(substring_index(tankorNev,'-',1),'.',1),2,'0'),substring_index(substring_index(tankorNev,' ',2),' ',-1),tankorNev,tanev,szemeszter"
+ );
+ if (count($ADAT['targySzuro']) > 0)
+ $szurtTankorok = getTankorok( // tárgy szerinti szűrés
+ array("tanev=$tanev", 'targyId IN ('.implode(',', $ADAT['targySzuro']).')'),
+ "LPAD(substring_index(substring_index(tankorNev,'-',1),'.',1),2,'0'),substring_index(substring_index(tankorNev,' ',2),' ',-1),tankorNev,tanev,szemeszter"
+ );
+ else $szurtTankorok = $tankorok;
+
+ $ADAT['tankorOraszam'] = getTankorOraszamByTanev($tanev);
+ $ADAT['tankorExportOraszam'] = getTankorExportOraszamByTanev($tanev);
+
+ $ADAT['tankorBlokkok'] = getTankorBlokkok($tanev);
+ for ($i = 0; $i < count($tankorok); $i++) {
+ $ADAT['tankorIdk'][] = $tankorId = $tankorok[$i]['tankorId'];
+ $ADAT['tankorAdat'][$tankorId] = $tankorok[$i];
+ }
+ $ADAT['tankorTanar'] = getTankorTanaraiByInterval($ADAT['tankorIdk'], array('tanev' => $tanev, 'result' => 'assoc'));
+ for ($i = 0; $i < count($szurtTankorok); $i++) {
+ if ( // osztály szerinti szűrés
+ count($ADAT['osztalySzurtTankorIds']) == 0
+ || in_array($szurtTankorok[$i]['tankorId'], $ADAT['osztalySzurtTankorIds'])
+ ) $ADAT['szurtTankorIdk'][] = $szurtTankorok[$i]['tankorId'];
+ }
+ if (count($ADAT['szurtTankorIdk']) == 0) {
+ $_SESSION['alert'][] = 'message:wrong_data:A megadott tárgyakhoz nem tartozik egy tankör sem - a szűrési feltételt töröljük!';
+ $ADAT['szurtTankorIdk'] = $ADAT['tankorIdk'];
+ $ADAT['targySzuro'] = $ADAT['osztalySzuro'] = $_POST['targyId'] = array();
+ unset($osztalyId);
+ }
+ $ADAT['tanev'] = $tanev;
+
+ $TOOL['tanevSelect'] = array('tipus'=>'cella', 'paramName'=>'tanev','post'=>array());
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array('targyId'));
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php b/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php
new file mode 100644
index 00000000..51742aa9
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/tankorBlokk.php
@@ -0,0 +1,14 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putTargySzuro($ADAT);
+ //if (isset($osztalyId))
+ putUjTankorBlokk($ADAT);
+ //if (count($Csoportok) > 0) putCsoportok($Csoportok, $tankorAdat, $szTankorIds, $osztalyId);
+ putTankorBlokkok($ADAT);
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php b/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php
new file mode 100644
index 00000000..cddfb69c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport-pre.php
@@ -0,0 +1,132 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/diak.php');
+
+ $tanev = __TANEV;
+
+ if (isset($_POST['osztalyId']) && $_POST['osztalyId'] != '') $osztalyId = $_POST['osztalyId'];
+
+ if (isset($osztalyId)) {
+
+ $Tankorok = getTankorByOsztalyId($osztalyId, $tanev);
+ $tankorIds = array();
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ $tankorIds[] = $Tankorok[$i]['tankorId'];
+ $tankorAdat[ $Tankorok[$i]['tankorId'] ] = $Tankorok[$i];
+ }
+ $CsA = getTankorCsoportByTankorIds($tankorIds);
+ $Csoportok = $csTankorIds = $csoportIds = array();
+ foreach ($CsA as $csoportId => $csoportAdat) {
+ $csoportIds[] = $csoportId;
+ $Csoportok[$csoportId]['csoportNev'] = $csoportAdat[0]['csoportNev'];
+ $Csoportok[$csoportId]['tankorok'] = array();
+ for ($i = 0; $i < count($csoportAdat); $i++) {
+ $Csoportok[$csoportId]['tankorok'][] = $csoportAdat[$i]['tankorId'];
+ $csTankorIds[] = $csoportAdat[$i]['tankorId'];
+ }
+ }
+ $szTankorIds = array_diff($tankorIds, $csTankorIds);
+
+// ----------------- action --------------------- //
+/* $min=0; $max=0;
+
+ if ($min<$Tankorok[$i]['min']) $min= $Tankorok[$i]['min'];
+ if ($Tankorok[$i]['max']!=0 && $max>$Tankorok[$i]['max']) $max= $Tankorok[$i]['max'];
+*/
+
+ if ($action == 'ujTankorCsoport') {
+
+ $csoportNev = $_POST['csoportNev'];
+ $tankorId = $_POST['tankorId'];
+ ujTankorCsoport($csoportNev, $tankorId);
+
+ } elseif ($action == 'tankorCsoportModositas') {
+
+ $csoportId = readVariable($_POST['csoportId'], 'numeric unsigned', null, $csoportIds);
+ if (isset($csoportId)) {
+ $csoportNev = $_POST['csoportNev'];
+ $tankorId = $_POST['tankorId'];
+ if (isset($_POST['tankorCsoportTorles'])) tankorCsoportTorles($csoportId, $tanev);
+ else tankorCsoportModositas($csoportId, $csoportNev, $tankorId);
+ }
+
+ } elseif ($action == 'tankorCsoportokKeresese') {
+
+ // Kérdezzük le a szabad tankörök diákjait
+ foreach ($szTankorIds as $i => $tankorId) {
+ $tmp = getTankorDiakjaiByInterval($tankorId, $tanev);
+ $szTankorDiak[$tankorId] = $tmp['idk'];
+ }
+ // Azonos tagokkal rendelkező csoportok keresése
+ $ujCsoportok = $voltMar = $Nevek = array();
+ foreach ($szTankorIds as $i => $tankorId) {
+ if (!$voltMar[$tankorId]) {
+ $voltMar[$tankorId] = true;
+ $ujCsoport = array(
+ 'ids' => array($tankorId),
+// 'diakIds' => $szTankorDiak[ $tankorId ]
+ );
+ foreach ($szTankorIds as $j => $_tankorId) {
+ if (
+ !$voltMar[ $_tankorId ]
+ && $szTankorDiak[ $tankorId ] == $szTankorDiak[ $_tankorId ]
+ ) {
+ $ujCsoport['ids'][] = $_tankorId;
+ $voltMar[ $_tankorId ] = true;
+ }
+ }
+ // csoportnév - a tárgynevekből
+ $Targyak = array();
+ for ($k = 0; $k < count($ujCsoport['ids']); $k++) {
+ $tankorId = $ujCsoport['ids'][$k];
+ $tankorNev = $tankorAdat[ $tankorId ]['tankorNev'];
+ $Targyak[] = substr($tankorNev, ($pos = strpos($tankorNev, ' ')+1), strrpos($tankorNev, ' ')-$pos);
+ }
+ $ujCsoport['nev'] = implode(' - ', $Targyak);
+ $ujCsoport['nev'] .= ' '.(++$Nevek[ $ujCsoport['nev'] ]).'.';
+ $ujCsoportok[] = $ujCsoport;
+ }
+ }
+ // új csoportok felvétele
+ for ($i = 0; $i < count($ujCsoportok); $i++) {
+ if (count($ujCsoportok[$i]['ids']) > 1) ujTankorCsoport($ujCsoportok[$i]['nev'], $ujCsoportok[$i]['ids']);
+ }
+ }
+
+ if ($action != '') {
+
+ $CsA = getTankorCsoportByTankorIds($tankorIds);
+ $Csoportok = $csTankorIds = array();
+ foreach ($CsA as $csoportId => $csoportAdat) {
+ $Csoportok[$csoportId]['csoportNev'] = $csoportAdat[0]['csoportNev'];
+ $Csoportok[$csoportId]['tankorok'] = array();
+ for ($i = 0; $i < count($csoportAdat); $i++) {
+ $Csoportok[$csoportId]['tankorok'][] = $csoportAdat[$i]['tankorId'];
+ $csTankorIds[] = $csoportAdat[$i]['tankorId'];
+ }
+ }
+ $szTankorIds = array_diff($tankorIds, $csTankorIds);
+
+ }
+
+// ----------------- action --------------------- //
+
+//echo $q;
+//echo '<pre>'; var_dump($ujCsoportok); echo '</pre>';
+
+ }
+
+
+ $TOOL['osztalySelect'] = array('tipus' => 'cella','paramName' => 'osztalyId', 'post' => array());
+ getToolParameters();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php b/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php
new file mode 100644
index 00000000..955de6c7
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/tankorCsoport.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $tankorAdat, $Csoportok, $szTankorIds, $osztalyId;
+
+ if (isset($osztalyId)) putUjTankorCsoport($tankorAdat, $szTankorIds, $osztalyId);
+ if (count($Csoportok) > 0) putCsoportok($Csoportok, $tankorAdat, $szTankorIds, $osztalyId);
+ if (count($szTankorIds) > 0) putTankorCsoportKereso($osztalyId);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php b/mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php
new file mode 100644
index 00000000..c9aaf91b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/targyBontas-pre.php
@@ -0,0 +1,175 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__NAPLOADMIN && !__VEZETOSEG) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorModifier.php');
+ require_once('include/modules/naplo/share/bontas.php'); // bontás kész-e
+
+ // Adatok (bontások, tankör-hozzárendelések) átvétele az előző évből - csak üres bontás tábla esetén!
+ $ADAT['targyBontasStatus'] = checkTargyBontas();
+
+ if ($ADAT['targyBontasStatus']===false && $action=='targyBontasInit') {
+ $ADAT['targyBontasStatus'] = initFromLastYear();
+ }
+ // telephely - csak szűréshez kell
+ $ADAT['telephelyId'] = $telephelyId = readVariable($_POST['telephelyId'], 'id');
+ // kötelező szűrési opció
+ $ADAT['evfolyamJelek'] = getEvfolyamJelek();
+ $osszesEvfolyamJel = array();
+ if (is_array($ADAT['evfolyamJelek'])) foreach ($ADAT['evfolyamJelek'] as $eAdat) $osszesEvfolyamJel[] = $eAdat['evfolyamJel'];
+ $ADAT['evfolyamJel'] = $evfolyamJel = readVariable($_POST['evfolyamJel'], 'enum', null, $osszesEvfolyamJel);
+ // a tárgyadatok az ajax hívásokhoz is kellenek
+ $ADAT['targyAdat'] = getTargyAdatByIds();
+ // osztályok - szűréshez, és tovább...
+ $ADAT['filter']['osztalyAdat'] = getOsztalyok(__TANEV, array('result' => 'indexed', 'minden'=>false, 'telephelyId' => $telephelyId));
+ foreach ($ADAT['filter']['osztalyAdat'] as $idx => $oAdat) {
+ $ADAT['filter']['osztalyAdat'][$idx]['bontasOk'] = osztalyBontasKeszE($oAdat['osztalyId']);
+ $ADAT['filter']['osztalyIds'][] = $oAdat['osztalyId'];
+ }
+ $ADAT['filter']['kepzesAdat'] = getKepzesByOsztalyId($ADAT['filter']['osztalyIds'], array('result'=>'indexed','arraymap'=>array('kepzesId')));
+
+ if (isset($ADAT['evfolyamJel'])) { // csak egy évfolyamhoz tartozó osztályok jelölhetők ki egyszerre
+
+ // szűrés osztályra - osztalyId az egyik kulcs mező
+ $ADAT['osztalyAdat'] = array();
+ $osszesOsztalyId = array();
+ if (is_array($ADAT['filter']['osztalyAdat'])) foreach ($ADAT['filter']['osztalyAdat'] as $oAdat) {
+ if ($oAdat['evfolyamJel'] == $evfolyamJel) {
+ $ADAT['osztalyAdat'][$oAdat['osztalyId']] = $oAdat;
+ $osszesOsztalyId[] = $oAdat['osztalyId'];
+ }
+ }
+ if (count($osszesOsztalyId) == 0) $ADAT['osztalyIds'] = array(); // üres tömb esetén nem szűr a readVariable...
+ else $ADAT['osztalyIds'] = readVariable($_POST['osztalyIds'], 'id', null, $osszesOsztalyId);
+ $_POST['osztalyIds'] = $osztalyIds = $ADAT['osztalyIds'];
+
+ // Az osztályokhoz rendelt tankörök lekérdezése - a bontásokban ezek lehetnek - kell a névhez...
+ $ADAT['tankorAdat'] = array();
+ foreach ($osztalyIds as $osztalyId) {
+ $TA = getTankorByOsztalyId($osztalyId);
+ foreach ($TA as $tAdat) if (!is_array($ADAT['tankorAdat'][ $tAdat['tankorId'] ])) {
+ $ADAT['tankorAdat'][ $tAdat['tankorId'] ] = $tAdat;
+ $ADAT['tankorAdat'][ $tAdat['tankorId'] ]['tankorNevTargyNelkul'] = str_replace($ADAT['targyAdat'][ $tAdat['targyId'] ]['targyNev'].' ','',$tAdat['tankorNev']);
+ }
+ }
+
+ // képzések lekérdezése - a képzés óratervhez
+ if (is_array($osztalyIds) && count($osztalyIds) > 0) {
+ // itt volt a kepzesTargyBontas - de az init utánra tettem...
+ $ADAT['kepzesek'] = getKepzesByOsztalyId($osztalyIds, array('result' => 'indexed', 'arraymap' => array('kepzesId','osztalyId')));
+ $ADAT['kepzesAdat'] = array();
+ if (is_array($ADAT['kepzesek'])) foreach ($ADAT['kepzesek'] as $kepzesId => $kAdat) {
+ $ADAT['kepzesAdat'][$kepzesId] = current(current($kAdat));
+ unset($ADAT['kepzesAdat'][$kepzesId]['osztalyId']);
+ $ADAT['kepzesAdat'][$kepzesId]['osztalyIds'] = array_keys($kAdat);
+ }
+ $osszesKepzesId = array_keys($ADAT['kepzesek']);
+ unset($ADAT['kepzesek']);
+ }
+ if (is_array($_POST['kepzesIds'])) $ADAT['kepzesIds'] = readVariable($_POST['kepzesIds'], 'id', null, $osszesKepzesId);
+ else $ADAT['kepzesIds'] = $osszesKepzesId;
+
+ // képzés adott évfolyamának óraterve...
+ if (is_array($ADAT['kepzesIds']) && count($ADAT['kepzesIds'])) {
+ // Itt kellene inicializálni - minden tárgyat tartalmazó kepzesOratervId:osztalyId párhoz legyen legalább egy bontás
+ kepzesTargyBontasInit($ADAT['osztalyIds'], $ADAT['kepzesIds']);
+ $ADAT['targyBontasStatus'] = checkTargyBontas();
+ $ADAT['oraterv'] = kepzesOratervSorrend($evfolyamJel, $ADAT['osztalyIds'], $ADAT['kepzesIds']);
+ // itt volt a targyAdat... felkerült az elejére
+ $ADAT['osztalyTargyBontas'] = getKepzesTargyBontasByOsztalyIds($osztalyIds);
+//dump($ADAT['osztalyTargyBontas']);
+ }
+
+ $ADAT['oratervenKivuliTankorok'] = getOratervenKivuliTankorIds();
+
+ } // van evfolyamJel
+
+
+
+ // Ajax action
+ if ($action == 'addBontas') {
+ $keys = explode(',', $_POST['keys']);
+ foreach ($keys as $key) {
+ list($osztalyId, $kepzesOratervId) = explode('-',$key);
+ $bontas[] = addBontas($osztalyId, $kepzesOratervId);
+
+ }
+ $_JSON = array(
+ 'keys' => $_POST['keys'],
+ 'bontas' => $bontas,
+ 'targyNev' => $ADAT['targyAdat'][ $bontas[0]['targyId'] ]['targyNev'],
+ 'result' => 'success'
+ );
+ } else if ($action == 'addBontasTargy') {
+ $targyIds = array_keys($ADAT['targyAdat']);
+ $targyId = readVariable($_POST['targyId'], 'id', null, $targyIds);// tárgyIds-re szűkítés!!
+ if ($targyId != '') {
+ $keys = explode(',', $_POST['keys']);
+ foreach ($keys as $key) {
+ list($osztalyId, $kepzesOratervId) = explode('-',$key);
+ $bontas[] = addBontas($osztalyId, $kepzesOratervId, $targyId);
+ }
+ $_JSON = array(
+ 'keys' => $_POST['keys'],
+ 'bontas' => $bontas,
+ 'targyNev' => $ADAT['targyAdat'][$targyId]['targyNev'],
+ 'result' => 'success'
+ );
+ } else {
+ $_JSON = array(
+ 'keys' => $_POST['keys'],
+ 'result' => 'fail'
+ );
+ }
+ } else if ($action == 'bontasTankor') {
+ $keys = explode(',', $_POST['keys']);
+ $bontasIds = readVariable($keys, 'id');
+ $tankorId = readVariable($_POST['tankorId'], 'id');
+ $hetiOraszam = readVariable($_POST['hetiOraszam'], 'float unsigned');
+
+ $targyId = getTankorTargyId($tankorId);
+ $targyNev = $ADAT['targyAdat'][$targyId]['targyNev'];
+ $ret = bontasTankor($bontasIds, $tankorId, $hetiOraszam);
+ $tankorNev = getTankorNevById($tankorId); // A tankörnév változhat az osztály hozzárendelés miatt...
+ $tankorNevTargyNelkul = str_replace($targyNev.' ','',$tankorNev);
+ $_JSON = array(
+ 'keys' => $_POST['keys'],
+ 'bontasIds' => $bontasIds,
+ 'hetiOraszam' => $hetiOraszam,
+ 'tankorId' => $tankorId,
+ 'tankorNev' => $tankorNevTargyNelkul,
+ 'ret' => $ret,
+ 'TANEV' => __TANEV,
+ 'result' => ($ret?'success':'fail')
+ );
+
+ } else if ($action == 'delBontas') {
+ $keys = explode(',', $_POST['keys']);
+ $bontasIds = readVariable($keys, 'id');
+ $return = delBontas($bontasIds);
+ $_JSON = array(
+ 'keys' => $_POST['keys'],
+ 'bontasIds' => (is_array($return)?$return:array()),
+ 'result' => (is_array($return)?'success':'fail')
+ );
+ } else { // Ez csak tesztelés, hibakeresés...
+ $_JSON = array(
+ 'post' => $_POST,
+ );
+ }
+ // Ajax action vége
+
+ $TOOL['telephelySelect'] = array('tipus' => 'cella','paramName' => 'telephelyId', 'post' => array('osztalyIds','kepzesIds','evfolyamJel'));
+ $TOOL['evfolyamJelSelect'] = array('tipus' => 'cella','paramName' => 'evfolyamJel','paramDesc'=>'evfolyamJel','adatok' => $ADAT['evfolyamJelek'],'post' => array('osztalyIds','kepzesIds','telephelyId'));
+ getToolParameters();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyBontas.php b/mayor-orig/www/policy/private/naplo/tanev/targyBontas.php
new file mode 100644
index 00000000..1a8aca25
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/targyBontas.php
@@ -0,0 +1,19 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+
+ if ($ADAT['targyBontasStatus']===false) {
+ putTargyBontasInit();
+ }else{
+ putFilter($ADAT);
+ if (
+ is_array($ADAT['osztalyIds']) && count($ADAT['osztalyIds'])>0
+ && is_array($ADAT['kepzesIds']) && count($ADAT['kepzesIds'])>0
+ ) {
+ putTargyBontas($ADAT);
+ }
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php b/mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php
new file mode 100644
index 00000000..37d057cd
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/targyOraszam-pre.php
@@ -0,0 +1,10 @@
+<?php
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+
+
+ $ADAT['targyOraszam'] = getTargyOraszamEvfolyamonkent();
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php b/mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php
new file mode 100644
index 00000000..bdc6ccf3
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/targyOraszam.php
@@ -0,0 +1,7 @@
+<?php
+
+ global $ADAT;
+
+ putTargyOraszam($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php
new file mode 100644
index 00000000..2f29caae
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras-pre.php
@@ -0,0 +1,72 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/jegy.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+
+ if (isset($_POST['dt']) && $_POST['dt'] != '') $dt = $ADAT['dt'] = $_POST['dt'];
+ elseif (!isset($_POST['dt'])) $dt = $ADAT['dt'] = $_TANEV['zarasDt'];
+ // Végzős osztályok lekérdezése
+ $ADAT['osztalyok'] = getOsztalyok();
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) $ADAT['osztalyIds'][] = $ADAT['osztalyok'][$i]['osztalyId'];
+ // Lezárandó osztályok
+ if (is_array($_POST['lezarandoOsztaly'])) $ADAT['lezarandoOsztaly'] = readVariable($_POST['lezarandoOsztaly'], 'id', null, $ADAT['osztalyIds']);
+ else $ADAT['lezarandoOsztaly'] = array();
+
+ // Végzős tanulmány időszak lekérdezése - egyelőre ezt nem csináljuk - adott dátumhoz igazodunk!
+
+ if ($action == 'orarendLezaras' && count($ADAT['lezarandoOsztaly']) > 0) {
+
+ // Végzős tankörök lekérdezése (csak végzős!!)
+ $ADAT['vegzosTankor'] = getTankorByOsztalyIds($ADAT['lezarandoOsztaly']);
+ // A tanulmányi időszakon túlnyúló órarendi órák tolDt-ének beállítása
+ vegzosOrarendLezaras($ADAT);
+ vegzosHaladasiNaploLezaras($ADAT);
+ foreach ($ADAT['lezarandoOsztaly'] as $index => $osztalyId) {
+ // osztaly diákjainak lekérdezése
+ $Diakok = getDiakok(array('osztalyId' => $osztalyId));
+ $diakIds = array();
+ for ($i = 0; $i < count($Diakok); $i++) $diakIds[] = $Diakok[$i]['diakId'];
+ // osztaly tanköreinek lekérdezése
+ $tankorIds = array_values(array_diff(getTankorByOsztalyId($osztalyId, __TANEV, array('csakId' => true)), $ADAT['vegzosTankor']));
+
+ if (is_array($tankorIds) && count($tankorIds) > 0) for ($i = 0; $i < count($diakIds); $i++) {
+ // A nem csak végzős tankörökben a tankör tagság beállítása
+ $Mod = array(
+ 'diakId' => $diakIds[$i],
+ 'tankorIds' => $tankorIds,
+ 'tolDt' => $ADAT['dt'],
+ 'igDt' => $_TANEV['zarasDt'],
+ 'utkozes' => 'torles'
+ );
+ tankorDiakTorol($Mod);
+ }
+ }
+
+ }
+
+ $TOOL['datumSelect'] = array(
+ 'tipus' => 'cella', 'post' => array('lezarandoOsztaly'),
+ 'paramName' => 'dt', 'hanyNaponta' => 1,
+ 'override'=>true, // használathoz még át kell írni pár függvényt!!!
+ 'tolDt' => date('Y-m-d', strtotime('last Monday', strtotime($_TANEV['kezdesDt']))),
+ 'igDt' => $_TANEV['zarasDt'],
+ );
+ getToolParameters();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php
new file mode 100644
index 00000000..1efe15cb
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/vegzosOrarendLezaras.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putLezarandoOsztalyValaszto($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php
new file mode 100644
index 00000000..4695da13
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras-pre.php
@@ -0,0 +1,77 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN) {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+ } else {
+
+ $_SESSION['alert'][] = 'page:insufficient_access';
+
+// ide ne jöjjünk!
+
+
+
+
+ require_once('include/share/date/names.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/jegy.php');
+ require_once('include/modules/naplo/share/jegyModifier.php');
+ require_once('include/modules/naplo/share/tankorDiakModifier.php');
+ require_once('include/modules/naplo/share/hianyzasModifier.php');
+
+
+ //if (isset($_POST['dt']) && $_POST['dt'] != '') $dt = $ADAT['dt'] = $_POST['dt'];
+ //elseif (!isset($_POST['dt'])) $dt = $ADAT['dt'] = $_TANEV['zarasDt'];
+
+ global $_TANEV;
+ $dt = readVariable($_TANEV['zarasDt'], 'datetime');
+ $dt_s = strtotime($dt);
+ $dt = date('Y-m-d',mktime(0,0,0,date('m',$dt_s),date('d',$dt_s)+1,date('Y',$dt_s)));
+
+
+ $ADAT['dt'] = $dt;
+ $ADAT['tanev'] = __TANEV;
+ // Végzős osztályok lekérdezése
+ $ADAT['osztalyok'] = getOsztalyok(__TANEV);
+ // Lezárandó osztályok
+ if (is_array($_POST['lezarandoOsztaly'])) $ADAT['lezarandoOsztaly'] = readVariable($_POST['lezarandoOsztaly'], 'id');
+ else $ADAT['lezarandoOsztaly'] = array();
+
+ // Végzős tanulmány időszak lekérdezése - egyelőre ezt nem csináljuk - adott dátumhoz igazodunk!
+
+ if ($action == 'lezaras') {
+
+ // Végzős tankörök lekérdezése (csak végzős!!)
+ $ADAT['vegzosTankor'] = getTankorByOsztalyIds($ADAT['lezarandoOsztaly']);
+ // A tanulmányi időszakon túlnyúló órarendi órák tolDt-ének beállítása
+ //vegzosOrarendLezaras($ADAT);
+ // Az órarendet nem itt zárjuk le!
+ foreach ($ADAT['lezarandoOsztaly'] as $index => $osztalyId) {
+ // osztaly diákjainak lekérdezése
+ $Diakok = getDiakok(array('osztalyId' => $osztalyId));
+ $diakIds = array();
+ for ($i = 0; $i < count($Diakok); $i++) $diakIds[] = $Diakok[$i]['diakId'];
+ // osztaly tanköreinek lekérdezése
+ $tankorIds = getTankorByOsztalyId($osztalyId, __TANEV, array('csakId' => true));
+ if (is_array($tankorIds) && count($tankorIds) > 0) for ($i = 0; $i < count($diakIds); $i++) {
+ // A nem csak végzős tankörökben a tankör tagság beállítása
+ $Mod = array(
+ 'diakId' => $diakIds[$i],
+ 'tankorIds' => $tankorIds,
+ 'tolDt' => $ADAT['dt'],
+ 'utkozes' => 'torles'
+ );
+ tankorDiakTorol($Mod);
+ }
+ }
+ $_SESSION['alert'][] = 'info:success';
+
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php b/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php
new file mode 100644
index 00000000..1efe15cb
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanev/vegzosTankorLezaras.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putLezarandoOsztalyValaszto($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php
new file mode 100644
index 00000000..58d44e40
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetTankor'));
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenet.php
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php
new file mode 100644
index 00000000..a60e71d0
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo-pre.php
@@ -0,0 +1,35 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__DIAK && !__TITKARSAG && !__TANAR && !__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['tanmenetId'] = $tanmenetId = readVariable($_POST['tanmenetId'], 'id', readVariable($_GET['tanmenetId'], 'id'));
+ if (isset($tanmenetId)) {
+
+ $ADAT['tanmenetAdat'] = getTanmenetAdat($tanmenetId);
+ $ADAT['tanarId'] = $tanarId = $ADAT['tanmenetAdat']['tanarId'];
+ $ADAT['targyId'] = $targyId = $ADAT['tanmenetAdat']['targyId'];
+
+ } else {
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'id', (!isset($_POST['targyId'])&&__TANAR)?__USERTANARID:null);
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'], 'id');
+ }
+
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'post'=>array('targyId'));
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'paramName'=>'targyId', 'post'=>array('tanarId'));
+ if (isset($tanarId) || isset($targyId)) {
+ $TOOL['tanmenetSelect'] = array('tipus'=>'sor', 'paramName'=>'tanmenetId', 'post'=>array('tanarId','targyId'));
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas'),
+ 'titleConst' => array('_MODOSITAS'), 'post' => array('tanarId','targyId'),
+ 'paramName'=>'tanmenetId');
+ }
+ getToolParameters();
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php
new file mode 100644
index 00000000..9d2b70e0
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetInfo.php
@@ -0,0 +1,15 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['tanmenetId'])) putTanmenetInfo($ADAT);
+ else {
+ if ($skin != 'ajax') formBegin(array('class'=>"tanmenet"));
+ echo '<input type="hidden" name="tanmenetId" id="informTanmenetId" value="" />'."\n";
+ echo '<p class="kiemelt">Nincs tanmenet megadva!</p>';
+ if ($skin != 'ajax') formEnd();
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php
new file mode 100644
index 00000000..d173ab93
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas-pre.php
@@ -0,0 +1,88 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR && !__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+
+
+ if (__TANAR) $ADAT['vezetettMkIds'] = getVezetettMunkakozossegByTanarId(__USERTANARID);
+ if (!is_array($ADAT['vezetettMkIds'])) $ADAT['vezetettMkIds'] = array();
+
+ $mkId = readVariable($_POST['mkId'], 'id');
+ if ($mkId == '' && count($ADAT['vezetettMkIds'])>0) $mkId = $ADAT['vezetettMkIds'][0];
+ $ADAT['mkId'] = $mkId;
+
+ if ($mkId != 0) {
+
+
+ $ADAT['tanarok'] = getTanarok(array('mkId'=>$mkId, 'tanev'=>__TANEV, 'result'=>'assoc'));
+ $ADAT['tanarIds'] = array_keys($ADAT['tanarok']);
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'id', null, $ADAT['tanarIds']);
+ $Filter = array();
+ if ($tanarId != '') {
+ $tTankorIds = getTankorByTanarId($tanarId, __TANEV, array('csakId'=>true));
+ if (is_array($tTankorIds) && count($tTankorIds) > 0) $Filter[] = 'tankor.tankorId IN ('.implode(',',$tTankorIds).')';
+ }
+ $ADAT['osztalyId'] = $osztalyId = readVariable($_POST['osztalyId'], 'id', null);
+ if ($osztalyId != '') {
+ $oTankorIds = getTankorByOsztalyId($osztalyId, __TANEV, array('csakId'=>true));
+ if (is_array($oTankorIds) && count($oTankorIds) > 0) $Filter[] = 'tankor.tankorId IN ('.implode(',',$oTankorIds).')';
+
+ }
+ define('__JOVAHAGYHAT', __VEZETOSEG || __NAPLOADMIN || in_array($mkId, $ADAT['vezetettMkIds']));
+ $ADAT['tankorok'] = getTankorByMkId($mkId, __TANEV, array('csakId'=>false, 'filter'=>$Filter));
+ $ADAT['tankorIds'] = array();
+ foreach ($ADAT['tankorok'] as $tAdat) {
+ $ADAT['tankorIds'][] = $tAdat['tankorId'];
+ }
+ if (count($ADAT['tankorIds']) > 0) {
+ $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds']);
+ $ADAT['tanmenetAdat'] = $tanmenetIds = array();
+ foreach ($ADAT['tankorTanmenet'] as $tankorId => $tanmenetId) {
+ if (!in_array($tanmenetId, $tanmenetIds)) $tanmenetIds[] = $tanmenetId;
+ }
+ foreach ($tanmenetIds as $tanmenetId) $ADAT['tanmenetAdat'][$tanmenetId] = getTanmenetAdat($tanmenetId);
+ } // vannak tankorok
+
+
+ if ($action == 'tanmenetModositas' && __JOVAHAGYHAT) {
+
+ $tanmenetId = readVariable($_POST['tanmenetId'], 'id');
+ $statusz = readVariable($_POST['statusz'], 'enum', array('új','kész','jóváhagyott','publikus'));
+ if ($tanmenetId != '' && $statusz != '') {
+ $D = array(
+ 'tanmenetNev' => $ADAT['tanmenetAdat'][$tanmenetId]['tanmenetNev'],
+ 'oraszam' => $ADAT['tanmenetAdat'][$tanmenetId]['oraszam'],
+ 'evfolyamJel' => $ADAT['tanmenetAdat'][$tanmenetId]['evfolyamJel'],
+ 'tanmenetId' => $tanmenetId,
+ 'ujStatusz' => $statusz
+ );
+ if (tanmenetAdatModositas($D)) $ADAT['tanmenetAdat'][$tanmenetId]['statusz'] = $statusz;
+ }
+ }
+
+ } // van mkId
+
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'cella', 'paramName'=>'mkId', 'post'=>array('tanarId','osztalyId'));
+ if ($mkId != '') {
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'mkId'=>$mkId, 'post'=>array('mkId','osztalyId'));
+ $TOOL['osztalySelect'] = array('tipus'=>'cella', 'paramName'=>'osztalyId', 'mkId'=>$mkId, 'post'=>array('mkId','tanarId'));
+ }
+/*
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'paramName'=>'targyId', 'post'=>array());
+ if (isset($tanarId) || isset($targyId)) {
+ $TOOL['tanmenetSelect'] = array('tipus'=>'cella', 'paramName'=>'tanmenetId', 'post'=>array('tanarId','targyId'));
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas'),
+ 'titleConst' => array('_MODOSITAS'), 'post' => array('tanarId','targyId'),
+ 'paramName'=>'tanmenetId');
+ }
+*/
+ getToolParameters();
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php
new file mode 100644
index 00000000..f0a92c71
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetJovahagyas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putTanmenetJovahagyas($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php
new file mode 100644
index 00000000..a71c14b0
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas-pre.php
@@ -0,0 +1,51 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+// require_once('include/share/date/names.php');
+
+ $tanev = $ADAT['tanev'] = readVariable($_POST['tanev'], 'numeric unsigned', defined('__TANEV')?__TANEV:null);
+ $ADAT['idoszak'] = getIdoszakByTanev(array('tanev' => $ADAT['tanev'], 'tipus' => array('tanmenet leadás'), 'tolDt' => date('Y-m-d'), 'igDt' => date('Y-m-d')));
+ define('__TANMENETLEADASIDOSZAK',(count($ADAT['idoszak']) > 0));
+ if (!__TANMENETLEADASIDOSZAK) $_SESSION['alert'][] = 'info:nincs_tanmenetleadas_idoszak:tanev='.$ADAT['tanev'];
+ else $_SESSION['alert'][] = 'info:tanmenetleadas_idoszak_vege:'.substr($ADAT['idoszak'][0]['igDt'],0,10);
+
+ $ADAT['tanarok'] = getTanarok(array('tanev' => $tanev));
+
+ $ADAT['tankorIds'] = array();
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ $tanarId = $ADAT['tanarok'][$i]['tanarId'];
+ $ADAT['tanarok'][$i]['tankorIds'] = getTankorByTanarId($tanarId, __TANEV, array('csakId' => true));
+ $ADAT['tankorIds'] = array_unique(array_merge($ADAT['tankorIds'], $ADAT['tanarok'][$i]['tankorIds']));
+ }
+ $ADAT['tankorok'] = getTankorAdatByIds($ADAT['tankorIds'], array('tanev' => __TANEV, 'dt' => $_TANEV['kezdesDt']));
+ $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds'], array('tanev' => $ADAT['tanev']));
+ $ADAT['tanmenetek'] = getTanmenetek();
+
+//echo '<pre>'; var_dump($ADAT['tanmenetek']); echo '<pre>';
+ // Melyik tanárnak hány "leadott jóváhagyott" / "leadott, nem jóváhagyott" / "nem leadott" tanmenet-tankör hozzárendelése van?
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ $tanarId = $ADAT['tanarok'][$i]['tanarId'];
+ foreach ($ADAT['tanarok'][$i]['tankorIds'] as $tankorId) {
+ if (isset($ADAT['tankorTanmenet'][$tankorId])) {
+ $tanmenetId = $ADAT['tankorTanmenet'][$tankorId];
+ if (
+ $ADAT['tanmenetek'][$tanmenetId]['statusz'] == 'jóváhagyott'
+ || $ADAT['tanmenetek'][$tanmenetId]['statusz'] == 'publikus'
+ ) $ADAT['tanarok'][$i]['db']['jóváhagyott']++;
+ elseif ($ADAT['tanmenetek'][$tanmenetId]['statusz'] == 'kész') $ADAT['tanarok'][$i]['db']['kész']++;
+ else $ADAT['tanarok'][$i]['db']['új']++;
+// if ($ADAT['tanmenetek'][$tanmenetId]['jovahagyva']) $ADAT['tanarok'][$i]['db']['jovahagyva']++;
+// else $ADAT['tanarok'][$i]['db']['nincs jovahagyva']++;
+ } else {
+ $ADAT['tanarok'][$i]['db']['hiányzik']++;
+ }
+ }
+ }
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php
new file mode 100644
index 00000000..12e8e920
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetLeadas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putTanmenetLeadas($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php
new file mode 100644
index 00000000..0afd8498
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas-pre.php
@@ -0,0 +1,83 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR && !__NAPLOADMIN && !__VEZETOSEG) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/share/date/names.php');
+
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'id', __TANAR?__USERTANARID:null);
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'], 'id');
+
+ $ADAT['tanmenetId'] = $tanmenetId = readVariable($_POST['tanmenetId'], 'id', readVAriable($_GET['tanmenetId'], 'id'));
+ if (isset($tanmenetId)) {
+
+ $ADAT['evfolyamJelek'] = getEvfolyamJelek(array('result'=>'idonly'));
+ $ADAT['tanmenetAdat'] = getTanmenetAdat($tanmenetId);
+ $ADAT['mkAdat'] = getMunkakozossegByTargyId($ADAT['tanmenetAdat']['targyId']);
+ $ADAT['tanarId'] = $tanarId = $ADAT['tanmenetAdat']['tanarId'];
+ $ADAT['targyId'] = $targyId = $ADAT['tanmenetAdat']['targyId'];
+ define('__KESZITO', (__USERTANARID == $ADAT['tanmenetAdat']['tanarId']));
+ define('__MKVEZETO', (__USERTANARID == $ADAT['mkAdat']['mkVezId']));
+ define('__MODOSITHAT',
+ __NAPLOADMIN // admin bármikor
+ || (
+ (__VEZETOSEG || __KESZITO || __MKVEZETO) // vezetőségi tag, mk.vez és a létrehozó szaktanár...
+ && ($ADAT['tanmenetAdat']['statusz'] == 'új' || $ADAT['tanmenetAdat']['statusz'] == 'kész') // ... ha még nincs jóváhagyva
+ )
+ );
+ if (__NAPLOADMIN || __VEZETOSEG || __MKVEZETO) $ADAT['statusz'] = array('új','kész','jóváhagyott','publikus','elavult');
+ elseif (__KESZITO) {
+ if (in_array($ADAT['tanmenetAdat']['statusz'], array('új','kész'))) { $ADAT['statusz'] = array('új','kész'); }
+ else { $ADAT['statusz'] = array('jóváhagyott','publikus'); }
+ } else $ADAT['statusz'] = array();
+
+ if ($action != '') {
+ if (__MODOSITHAT && $action == 'tanmenetTemakorModositas') {
+ $ADAT['temakor']['oraszam'] = readVariable($_POST['oraszam'], 'numeric unsigned');
+ $ADAT['temakor']['temakorMegnevezes'] = readVariable($_POST['temakorMegnevezes'], 'string', '');
+ tanmenetTemakorModositas($ADAT);
+ $ADAT['tanmenetAdat'] = getTanmenetAdat($tanmenetId);
+ } elseif ($action == 'tanmenetAdatModositas') {
+ if ((__NAPLOADMIN === true || __KESZITO) && readVariable($_POST['tanmenetTorol'],'numeric unsigned') == 1) {
+ if (tanmenetTorol($tanmenetId)===false) {
+ $_SESSION['alert'][] = 'info:error:hiba a tanmenet törlésekor';
+ } else {
+ $_SESSION['alert'][] = 'info:success';
+ unset ($ADAT);
+ unset($tanmenetId);
+ }
+ } else {
+ if (__MODOSITHAT) { // Az óraszám és évfolyam-jel is változtatható
+ $DAT['oraszam'] = readVariable($_POST['oraszam'], 'numeric unsigned');
+ $DAT['evfolyamJel'] = readVariable($_POST['evfolyamJel'], 'numeric unsigned');
+ } else { // csak a tanmenet neve és státusza változtatható
+ $DAT = $ADAT['tanmenetAdat'];
+ }
+ $DAT['tanmenetId'] = $tanmenetId;
+ $DAT['tanmenetNev'] = readVariable($_POST['tanmenetNev'], 'string');
+ $DAT['ujStatusz'] = readVariable($_POST['statusz'], 'enum', $ADAT['tanmenetAdat']['statusz'], $ADAT['statusz']);
+ tanmenetAdatModositas($DAT);
+ $ADAT['tanmenetAdat'] = getTanmenetAdat($tanmenetId);
+ }
+ }
+ }
+ }
+
+
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'post'=>array());
+ $TOOL['targySelect'] = array('tipus'=>'cella', 'paramName'=>'targyId', 'post'=>array());
+ if (isset($tanarId) || isset($targyId) || isset($tanmenetId)) {
+ $TOOL['tanmenetSelect'] = array('tipus'=>'sor', 'paramName'=>'tanmenetId', 'post'=>array('tanarId','targyId'));
+ $TOOL['oldalFlipper'] = array('tipus' => 'cella', 'url' => array('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo'),
+ 'titleConst' => array('_MUTAT'), 'post' => array('tanmenetId','tanarId','targyId'),
+ 'paramName'=>'tanmenetId');
+ }
+ getToolParameters();
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php
new file mode 100644
index 00000000..e741e222
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetModositas.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['tanmenetId'])) putTanmenetModositasForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php
new file mode 100644
index 00000000..74ca1a6e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor-pre.php
@@ -0,0 +1,95 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR && !__VEZETOSEG && !__NAPLOADMIN) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/szemeszter.php');
+// require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+// require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+
+ $ADAT['tanev'] = __TANEV;
+ $ADAT['tanarId'] = $tanarId = readVariable($_POST['tanarId'], 'id', readVariable($_GET['tanarId'], 'id', __TANAR?__USERTANARID:null));
+
+ if (isset($tanarId)) {
+ $ADAT['tankorIds'] = getTankorByTanarId($tanarId, __TANEV, array('csakId' => true));
+ $ADAT['tankorok'] = getTankorAdatByIds($ADAT['tankorIds'], array('tanev' => __TANEV, 'dt' => $_TANEV['kezdesDt']));
+ $ADAT['tankorTanmenet'] = getTanmenetByTankorIds($ADAT['tankorIds'], array('tanev' => $ADAT['tanev']));
+ $tanmenetAdat = $ADAT['tanmenetek'] = array();
+ if (is_array($ADAT['tankorok']))
+ foreach ($ADAT['tankorok'] as $tankorId => $tAdat) {
+ if (!is_array($ADAT['tanmenetek'][ $tAdat['targyId'] ])) {
+ $ADAT['tanmenetek'][ $tAdat['targyId'] ] = getTanmenetByTargyId($tAdat['targyId'], array('result'=>'assoc'));
+ if (is_array($ADAT['tanmenetek'][ $tAdat['targyId'] ]))
+ foreach ($ADAT['tanmenetek'][ $tAdat['targyId'] ] as $tanmenetId => $tanAdat) {
+ // Mikor módosítható az adott tanmenet?
+ $ADAT['tanmenetek'][ $tAdat['targyId'] ][ $tanmenetId ]['modosithato'] = (
+ __NAPLOADMIN // admin bármikor
+ || (
+ (__VEZETOSEG || __USERTANARID == $tanAdat['tanarId']) // vezetőségi tag és a létrehozó szaktanár...
+ && ($tanAdat['statusz'] == 'új' || $tanAdat['statusz'] == 'kész') // ... ha még nincs jóváhagyva
+ )
+
+ );
+ $ADAT['tanmenetAdat'][$tanmenetId] = $tanAdat;
+ }
+ }
+ }
+
+//echo '<pre>'; var_dump($ADAT['tanmenetek']); echo '</pre>';
+
+ $ADAT['idoszak'] = getIdoszakByTanev(array('tanev' => $ADAT['tanev'], 'tipus' => array('tanmenet leadás'), 'tolDt' => date('Y-m-d'), 'igDt' => date('Y-m-d')));
+ define('__TANMENETLEADASIDOSZAK',(count($ADAT['idoszak']) > 0));
+ if (!__TANMENETLEADASIDOSZAK) $_SESSION['alert'][] = 'info:nincs_tanmenetleadas_idoszak:tanev='.$ADAT['tanev'];
+ define('__MODOSITHAT',
+ __NAPLOADMIN // admin bármikor
+ || __VEZETOSEG || __USERTANARID == $ADAT['tanarId'] // vezetőség és szaktanár is bármikor
+// || (
+// (__VEZETOSEG || __USERTANARID == $ADAT['tanarId']) // vezetőségi tag és a létrehozó szaktanár...
+// && __TANMENETLEADASIDOSZAK // megfelelő időszakban vagyunk
+// )
+ );
+
+
+ if (__MODOSITHAT===true && $action == 'hozzarendeles') {
+ if (isset($_POST['masolas'])) $action = 'masolas';
+ elseif (isset($_POST['uj'])) $action = 'uj';
+ elseif (isset($_POST['modosit'])) $action = 'modosit';
+ elseif (isset($_POST['info'])) $action = 'info';
+ } else {
+ $action = '';
+ }
+ $ADAT['tankorId'] = readVariable($_POST['tankorId'], 'id');
+
+ if (__MODOSITHAT === true) {
+ if ($action == 'hozzarendeles') {
+ $ADAT['tanmenetId'] = readVariable($_POST['tanmenetId'], 'id');
+ tankorTanmenetHozzarendeles($ADAT);
+ $ADAT['tankorTanmenet'][$ADAT['tankorId']] = $ADAT['tanmenetId'];
+ } elseif (__TANAR && $action == 'uj') {
+ header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=ujTanmenet&tankorId='.$ADAT['tankorId']));
+ } elseif (__TANAR && $action == 'masolas') {
+ $eredetiTanmenetId = readVariable($_POST['tanmenetId'], 'id');
+ if (isset($eredetiTanmenetId)) {
+ $ADAT['tanmenetId'] = tanmenetDuplikalas($eredetiTanmenetId, __USERTANARID);
+ tankorTanmenetHozzarendeles($ADAT);
+ header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas&tanmenetId='.$ADAT['tanmenetId']));
+ }
+ } elseif ($action == 'modosit') {
+ $ADAT['tanmenetId'] = readVariable($_POST['tanmenetId'], 'id');
+ if (isset($ADAT['tanmenetId'])) header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas&tanmenetId='.$ADAT['tanmenetId']));
+ } elseif ($action == 'info') {
+ $ADAT['tanmenetId'] = readVariable($_POST['tanmenetId'], 'id');
+ if (isset($ADAT['tanmenetId'])) header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo&tanmenetId='.$ADAT['tanmenetId']));
+ }
+ }
+ }
+
+
+ $TOOL['tanarSelect'] = array('tipus'=>'cella', 'paramName'=>'tanarId', 'post'=>array());
+// $TOOL['osztalySelect']= array('tipus'=>'cella', 'paramName'=>'osztalyId', 'post'=>array());
+ getToolParameters();
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php
new file mode 100644
index 00000000..814e624d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/tanmenetTankor.php
@@ -0,0 +1,11 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['tanarId'])) {
+ putTankorLista($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php b/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php
new file mode 100644
index 00000000..e0d2402d
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet-pre.php
@@ -0,0 +1,72 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!__TANAR) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+
+ $ADAT['evfolyamJelek'] = getEvfolyamJelek();
+ $ADAT['tanarId'] = __USERTANARID;
+ $ADAT['munkakozosseg'] = getMunkakozossegByTanarId($ADAT['tanarId'], array('result' => 'indexed'));
+ $ADAT['mkIds'] = $ADAT['targyIds'] = $ADAT['targy'] = array();
+ foreach ($ADAT['munkakozosseg'] as $key => $mkAdat) {
+ $tmp = getTargyakByMkId($mkAdat['munkakozossegId'], array('result' => 'indexed'));
+ $ADAT['mkIds'][] = $mkAdat['munkakozossegId'];
+ $ADAT['targy'] = array_merge($ADAT['targy'], $tmp);
+ }
+ for ($i = 0; $i < count($ADAT['targy']); $i++) $ADAT['targyIds'][] = $ADAT['targy'][$i]['targyId'];
+
+ // tanév - alapértelmezetten a __TANEV
+ $ADAT['tanev'] = readVariable($_POST['tanev'], 'numeric unsigned', is_numeric(__TANEV)?__TANEV:null);
+
+ // Egy tankörhöz rendelendő új tanmenethez
+ $ADAT['tankorId'] = $tankorId = readVariable($_POST['tankorId'],'id', readVariable($_GET['tankorId'], 'id'));
+
+ // tankör --> tárgy --> munkaközösség
+ if (isset($tankorId)) {
+ $TA = getTankorAdat($tankorId);
+ $ADAT['tankorAdat'] = $TA[$tankorId][0];
+ $ADAT['tankorAdat']['osztalyIds'] = getTankorOsztalyaiByTanev($tankorId, $ADAT['tanev']);
+ $evf = array();
+ foreach ($ADAT['tankorAdat']['osztalyIds'] as $osztalyId) $evf[] = getEvfolyamJel($osztalyId, $ADAT['tanev']);
+ $ADAT['tankorAdat']['evfolyamJel'] = $evf[0];
+ }
+
+ // Munkaközösség és tankör
+ $mkId = readVariable($_POST['mkId'], 'id', null, $ADAT['mkIds']);
+ $ADAT['targyId'] = $targyId = readVariable($_POST['targyId'], 'id', $ADAT['tankorAdat']['targyId'], $ADAT['targyIds']);
+ if (isset($tankorId) && $targyId != $ADAT['tankorAdat']['targyId']) unset($tankorId);
+
+ $ADAT['evfolyamJel'] = $evfolyamJel = readVariable($_POST['evfolyamJel'], 'enum', $ADAT['tankorAdat']['evfolyamJel']);
+ if (isset($targyId) && isset($evfolyamJel)) {
+ $ADAT['targyAdat'] = getTargyById($targyId);
+ // Itt lekérdezhetnénk az eddigi ilyen tanmenetek listáját - megjelenítés céljából
+ $ADAT['tanmenetek'] = getTanmenetByTargyId($targyId);
+//echo '<pre>'; var_dump($ADAT['tanmenetek']); echo '</pre>';
+ }
+
+ if ($action == 'ujTanmenet') {
+ $ADAT['tanmenetNev'] = readVariable($_POST['tanmenetNev'], 'string', $evfolyamJel.'. '.$ADAT['targyAdat']['targyNev'].' ('.$ADAT['targyAdat']['targyJelleg'].')');
+ $ADAT['oraszam'] = readVariable($_POST['oraszam'], 'numeric unsigned');
+ $ADAT['tanmenetId'] = $tanmenetId = ujTanmenet($ADAT);
+ if (isset($tankorId)) {
+ // itt kellene hozzárendelni a tankorhoz?
+ tankorTanmenetHozzarendeles($ADAT);
+ }
+ if ($tanmenetId) header('Location: '.location('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas&tanmenetId='.$tanmenetId));
+ }
+
+ // $TOOL['tanevSelect'] = array('tipus' => 'cella', 'paramName' => 'tanev', 'post' => array('tankorId','targyId','evfolyamJel'));
+ $TOOL['munkakozossegSelect'] = array('tipus'=>'cella','paramName' => 'mkId', 'munkakozossegek' => $ADAT['munkakozosseg'], 'post'=>array('tankorId','evfolyamJel'));
+ if (isset($mkId)) $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'post'=>array('mkId', 'tankorId','evfolyamJel'));
+ else $TOOL['targySelect'] = array('tipus'=>'cella', 'mkId' => $mkId, 'targyak' => $ADAT['targy'], 'post'=>array('mkId', 'tankorId','evfolyamJel'));
+ $TOOL['evfolyamJelSelect'] = array('tipus'=>'cella', 'paramName' => 'evfolyamJel', 'paramDesc'=>'evfolyamJel','adatok' => $ADAT['evfolyamJelek'],'post'=>array('targyId', 'tankorId'));
+ getToolParameters();
+
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php b/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php
new file mode 100644
index 00000000..f304c404
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tanmenet/ujTanmenet.php
@@ -0,0 +1,8 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (isset($ADAT['targyId']) && isset($ADAT['evfolyamJel'])) putUjTanevForm($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tools/ajax.php b/mayor-orig/www/policy/private/naplo/tools/ajax.php
new file mode 100644
index 00000000..9d01f5fb
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/ajax.php
@@ -0,0 +1,7 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ // A függvény az ajax skin base.phtml-ében lett definiálva
+ ajaxPutParams();
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tools/ajaxExample.php b/mayor-orig/www/policy/private/naplo/tools/ajaxExample.php
new file mode 100644
index 00000000..41e27e62
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/ajaxExample.php
@@ -0,0 +1,29 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ // A függvény a base.phtml-ben lett definiálva
+ //ajaxUpdaterForm('proba','index.php?page=naplo&sub=tools&f=ajax','alma=piros&narancs=sárga','post');
+
+ $userId = __USERTANARID;
+ $today = date('Y-m-d');
+
+ ajaxUpdaterForm('proba','index.php?page=naplo&sub=tanev&f=orarend',array('dt'=>$today,'tolDt'=>$today),'post');
+
+ echo '<form id="ajaxUpdaterForm" class="onSubmitUpdate" method="post" action="'.href("index.php?page=naplo&sub=osztalyozo&f=jegy").'">'."\n"; // -- OBSOLETE
+
+ echo '<input type="text" name="jegyId" value="">';
+// echo '<input type="button" class="onClickUpdate" value="Frissít">';
+ echo '<input type="submit" class="" value="Frissít">';
+
+ echo '</form>';
+
+echo '<hr />';
+
+ echo '<form method="post" action="/debug.php" class="onChangeRequest" id="requestForm" >';
+ echo '<input type="text" name="a" value="" id="aa" />';
+ echo '<input type="text" name="b" value="bbb" id="bb" />';
+ echo '<input type="submit" value="OK" />';
+ echo '</form>'; // -- OBSOLETE
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php
new file mode 100644
index 00000000..31123583
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/dolgozatAdat-pre.php
@@ -0,0 +1,19 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__DIAK!==true && __TANAR!==true && __NAPLOADMIN !== true && __TITKARSAG !== true && __VEZETOSEG !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ exit;
+ }
+
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+
+ $dolgozatId = $_JSON['dolgozatId'] = readVariable($_POST['dolgozatId'], 'id');
+
+ $_JSON['dolgozatAdat'] = getDolgozatAdat($dolgozatId);
+ $_JSON['leiras'] = 'Dolgozat';
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php
new file mode 100644
index 00000000..5d722b38
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getDiakAdat-pre.php
@@ -0,0 +1,61 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+// if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tanar.php');
+
+ $diakId = readVariable($_POST['diakId'], 'id',null);
+
+ if (!is_numeric($diakId)) {
+ $_JSON = array();
+ exit;
+ }
+ /* PRIVÁT ADATOK */
+if (__NAPLOADMIN === true || __VEZETOSEG === true || __TITKARSAG === true || __TANAR ===true || $diakId == __USERDIAKID) {
+ $_JSON = getDiakAdatById($diakId);
+ $_JSON['diakOsztaly'] = getDiakMindenOsztaly($diakId);
+ for ($i=0;$i<count($_JSON['diakOsztaly']); $i++) {
+ $OSZTALYIDS[] = $_JSON['diakOsztaly'][$i]['osztalyId'];
+ }
+ $_JSON['osztalyAdat'] = getOsztalyok(null,array('minden'=>true,'result'=>'assoc','keyfield'=>'osztalyId','osztalyIds'=>$OSZTALYIDS));
+ $_JSON['diakJogviszony'] = getDiakJogviszony($diakId);
+// $_JSON['diakHianyzasOsszesites'] = getDiakHianyzasOsszesites($diakId,szemeszteradat);
+ $_JSON['diakHianyzasStat'] = getDiakHianyzasStat($diakId);
+ $_JSON['diakTankor'] = getTankorByDiakId($diakId,__TANEV);
+ for ($i=0; $i<count($_JSON['diakTankor']); $i++) {
+ $_JSON['diakTankorAssoc'][$_JSON['diakTankor'][$i]['tankorId']] = $_JSON['diakTankor'][$i];
+ }
+ $_JSON['diakFelmentes'] = getTankorDiakFelmentes($diakId, __TANEV, array('csakId'=>false));
+ // $_JSON['diakJogviszony'] = getDiakTorzslapszam($diakId);
+
+ $_tmp = getKepzesByDiakId($diakId);
+ $_JSON['diakKepzes'] = $_tmp[$diakId];
+
+ $tmp = getDiakSzulei($diakId);
+ $_JSON['diakSzulo'] = array();
+ if (is_array($tmp[0]) && count($tmp[0])>=1) {
+ foreach ($tmp[0] as $tipus => $id) if (!is_null($id)) $szuloIds[] = $id;
+ if (count($szuloIds)>0) {
+ $_JSON['diakSzulo'] = getSzulok(array('csakId'=>false,'result'=>'indexed','szuloIds'=>$szuloIds));
+// $_JSON['szuloIds'] = $szuloIds;
+ }
+ }
+}
+
+ /* PUBLIKUS ADATOK */
+ $_JSON['diakId'] = $diakId;
+ $_JSON['tanev'] = __TANEV;
+
+ // controllok:
+ //enum('felvételt nyert','jogviszonyban van','magántanuló','vendégtanuló','jogviszonya felfüggesztve','jogviszonya lezárva')
+// if ($_JSON['statusz'] == 'jogviszonya lezárva') {
+// } else {
+// }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php
new file mode 100644
index 00000000..1a91a482
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getJegyAdat-pre.php
@@ -0,0 +1,36 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__TANAR!==true && __NAPLOADMIN !== true && __TITKARSAG !== true && __VEZETOSEG !== true && __DIAK !== true ) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ exit;
+ }
+
+ global $KOVETELMENY;
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+
+ $jegyId = readVariable($_POST['jegyId'], 'id');
+ $ADAT = getJegyAdat($jegyId);
+
+ if (__DIAK===true && $ADAT['diakId'] != __USERDIAKID) return; // más jegyet ne nézhessen meg a diák
+
+ $_JSON['jegyId'] = $jegyId;
+ $_JSON['jegyAdat'] = $ADAT;
+ $_JSON['jegyAdat']['hivatalos'] = $KOVETELMENY[$ADAT['jegyTipus']][$ADAT['jegy']]['hivatalos'];
+ $_JSON['jegyAdat']['rovid'] = $KOVETELMENY[$ADAT['jegyTipus']][$ADAT['jegy']]['rovid'];
+ $_JSON['diakNev'] = getDiakNevById($ADAT['diakId']);
+ $_JSON['targyNev'] = getTargyNevByTargyId($ADAT['targyId']);
+
+// require_once('skin/classic/module-naplo/html/share/jegy.phtml'); // !!!
+// $jegySelect = formBegin(null,array('print'=>false));
+// $jegySelect .= putJegySelect($ADAT,'return');
+// $jegySelect .= formEnd(array('print'=>false));
+// $_JSON['jegySelect'] = $jegySelect;
+
+// $_JSON['debug'] = $ADAT;
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php
new file mode 100644
index 00000000..9965b23b
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getOraAdat-pre.php
@@ -0,0 +1,79 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+// if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/oraModifier.php');
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/dolgozat.php');
+ require_once('include/modules/naplo/share/jegyzet.php');
+
+ $oraId = readVariable($_POST['oraId'], 'id');
+
+ if (!is_numeric($oraId)) {
+ $_JSON = array();
+ exit;
+ }
+
+ /* PRIVÁT ADATOK */
+ if (__NAPLOADMIN === true || __VEZETOSEG === true || __TITKARSAG === true || __TANAR === true || __DIAK === true ) {
+ $oraBeirhato = oraBeirhato($oraId);
+ if ($oraBeirhato===true && $action=='oraBeiras') {
+ $leiras = readVariable($_POST['leiras'], 'string');
+ updateHaladasiNaploOra($oraId,$leiras);
+ }
+
+// $tmp = getTanarAdatById($tanarId);
+// $_JSON = $tmp[0];
+ $_JSON['oraAdat'] = $ORAADAT = getOraAdatById($oraId);
+
+ $q = "SELECT oraId FROM ora WHERE tankorId=%u AND dt<'%s' ORDER BY oraId DESC";
+ $v = array($ORAADAT['tankorId'],$ORAADAT['dt']);
+ $idk = db_query($q, array('fv'=>'pre','modul'=>'naplo','result'=>'idonly','values'=>$v));
+
+ for ($i=0; $i<count($idk); $i++) {
+ $_JSON['elozoOrak'][$i] = getOraAdatById($idk[$i]);
+ }
+
+ $_JSON['dolgozat'] = getTankorDolgozatok(array($ORAADAT['tankorId']), TRUE, $ORAADAT['dt'], $ORAADAT['dt']);
+// $_JSON['jegyzet'] = getJegyzet(array('tolDt'=>$tolDt,'igDt'=>$igDt,'tankorIdk'=>$JA['tankorIdk'],
+ // módosítható az óra?
+ $_JSON['oraBeirhato'] = $oraBeirhato;
+
+ if ($oraBeirhato===true) { // HTML FORM
+ $oraForm = '<form method="post" action="'.href('index.php?page=naplo&sub=tools&f=getOraAdat').'">
+ <input class="salt" type="hidden" name="'.__SALTNAME.'" value="'.__SALTVALUE.'" />
+ <input class="mayorToken" type="hidden" name="mayorToken" value="'.$_SESSION['mayorToken'].'" />
+ <input type="hidden" name="action" value="oraBeiras" />
+ <input type="hidden" name="oraId" value="'.$oraId.'" />
+ <textarea name="leiras" style="margin-top:8px; width:99%; height:100px;">'. supertext($_JSON['oraAdat']['leiras']).'</textarea>';
+ $oraForm .= '<button type="button" class="setOraAdat mentes" value="mentés" data-oraid="'.$oraId.'"><span class="icon-ok"></span> MENTÉS </button>';
+ $oraForm .= '</form>';
+ $_JSON['oraForm'] = $oraForm;
+ }
+ }
+
+ /* PUBLIKUS ADATOK */
+ $_JSON['oraId'] = $oraId;
+ $_JSON['tanev'] = __TANEV;
+
+ // TEMPLATE
+// $ORAK = getTanarNapiOrak($tanarId);
+ $s = '';
+ if (is_array($ORAK) && count($ORAK)>0) {
+ for ($ora=__MIN_ORA; $ora<=__MAX_ORA; $ora++) {
+ $OA = $ORAK[$ora];
+ $s .= '<div class="ora">'.$ora.'. '.$OA[$i]['tankorNev'];
+ for ($i=0; $i<count($OA); $i++) {
+ $s .= $OA[$i]['tankorNev'];
+ }
+ $s .='</div>';
+ }
+ }
+ $_JSON['html'] = serialize($_JSON['oraAdat']);
+ $_JSON['debug'] = false;
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php
new file mode 100644
index 00000000..246f5821
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getOsztalyAdat-pre.php
@@ -0,0 +1,39 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__TANAR!==true && __NAPLOADMIN !== true && __TITKARSAG !== true && __VEZETOSEG !== true) return false;
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/targy.php');
+
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+
+ $_JSON['osztalyId'] = $osztalyId;
+ $_JSON['osztalyAdat'] = getOsztalyAdat($osztalyId);
+ $_JSON['nev'] = $_JSON['osztalyAdat']['osztalyJel'];
+
+/*
+ $tmp = getTankorAdat($tankorId);
+ $targyAdat = getTargyById($tmp[$tankorId][0]['targyId']);
+
+ $_JSON = $tmp[$tankorId][0];
+ $_JSON['tankorNevTargyNelkul'] = str_replace($targyAdat['targyNev'].' ','',$_JSON['tankorNev']);
+ $_JSON['tankorNevReszei'] = array(
+ 'evfOszt' => substr($_JSON['tankorNev'],0, strpos($_JSON['tankorNev'],' ')),
+ 'targyNev' => $targyAdat['targyNev'],
+ 'tankorJel' =>$_JSON['tankorJel']
+ );
+ $_JSON['tankorNevReszei']['tankorNevExtra'] = trim(str_replace($_JSON['tankorNevReszei']['evfOszt'].' '.$_JSON['tankorNevReszei']['targyNev'],'',
+ str_replace($_JSON['targyJel'],'',$_JSON['tankorNev'])));
+ $_JSON['tankorSzemeszter'] = getTankorSzemeszterei($tankorId);
+ $_JSON['osztalyIds'] = getTankorOsztalyai($tankorId);
+ $_JSON['osztalyok'] = getOsztalyok();
+ $_JSON['tankorTanar'] = getTankorTanarai($tankorId);
+ $_JSON['tankorDiak'] = //getTankorDiakjai($tankorId);
+ getTankorDiakjaiByInterval($tankorId);
+ $_JSON['tankorBlokk'] = getTankorBlokkByTankorId(array($tankorId),__TANEV,array('blokkNevekkel'=>true));
+*/
+ $_JSON['visibleData'] = true;
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php
new file mode 100644
index 00000000..99758d84
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getSzuloAdat-pre.php
@@ -0,0 +1,27 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+// if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/szulo.php');
+ require_once('include/modules/naplo/share/hianyzas.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tanar.php');
+
+ $szuloId = readVariable($_POST['szuloId'], 'id',null);
+ if (!is_numeric($szuloId)) { $_JSON = array(); exit;}
+
+ /* PRIVÁT ADATOK */
+ if (__NAPLOADMIN === true || __VEZETOSEG === true || __TITKARSAG ===true || __TANAR ===true) {
+ $_JSON = getSzuloAdat($szuloId);
+ $_tmp = getSzulokDiakjai(array($szuloId));
+ $_JSON['szuloGyermekei'] = $_tmp[$szuloId];
+ }
+ /* PUBLIKUS ADATOK */
+ $_JSON['diakId'] = $diakId;
+ $_JSON['tanev'] = __TANEV;
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php
new file mode 100644
index 00000000..22394655
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getTanarAdat-pre.php
@@ -0,0 +1,56 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+// if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tanar.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/orarend.php');
+
+ if (!defined('__MIN_ORA')) define('__MIN_ORA',getMinOra());
+ if (!defined('__MAX_ORA')) define('__MAX_ORA',getMaxOra());
+
+ $tanarId = readVariable($_POST['tanarId'], 'id');
+
+ if (!is_numeric($tanarId)) {
+ $_JSON = array();
+ exit;
+ }
+
+ /* PRIVÁT ADATOK */
+ if (__NAPLOADMIN === true || __VEZETOSEG === true || __TITKARSAG === true || __TANAR === true) {
+ $tmp = getTanarAdatById($tanarId);
+ $_JSON = $tmp[0];
+ $_JSON['tanarTankor'] = getTankorByTanarId($tanarId);
+ $_JSON['layerPolicy'] = 1;
+ } else {
+ $_JSON['tanarNev'] = getTanarNevById($tanarId);
+ $_JSON['layerPolicy'] = 0;
+ }
+
+ // Ha szülő nézi, jó lenne az elérhetőséget ide kiírni
+
+ /* PUBLIKUS ADATOK */
+ $_JSON['tanarId'] = $tanarId;
+ $_JSON['tanev'] = __TANEV;
+
+ $_JSON['oraTerheles'] = getOraTerhelesStatByTanarId(array('tanarId'=>$tanarId));
+
+ // TEMPLATE
+ $ORAK = getTanarNapiOrak($tanarId);
+ $s = '';
+ if (is_array($ORAK) && count($ORAK)>0) {
+ for ($ora=__MIN_ORA; $ora<=__MAX_ORA; $ora++) {
+ $OA = $ORAK[$ora];
+ $s .= '<div class="ora">'.$ora.'. '.$OA[$i]['tankorNev'];
+ for ($i=0; $i<count($OA); $i++) {
+ $s .= $OA[$i]['tankorNev'];
+ }
+ $s .='</div>';
+ }
+ }
+ $_JSON['maiOrak']['html'] = $s;
+ $_JSON['debug'] = __MIN_ORA;
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php
new file mode 100644
index 00000000..01571f22
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getTankorAdat-pre.php
@@ -0,0 +1,38 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__TANAR!==true && __NAPLOADMIN !== true && __TITKARSAG !== true && __VEZETOSEG !== true) return false;
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorBlokk.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tanmenet.php');
+ require_once('include/modules/naplo/share/tanar.php');
+
+ $tankorId = readVariable($_POST['tankorId'], 'id');
+
+ $tmp = getTankorAdat($tankorId);
+ $targyAdat = getTargyById($tmp[$tankorId][0]['targyId']);
+
+ $_JSON = $tmp[$tankorId][0];
+ $_JSON['tankorNevTargyNelkul'] = str_replace($targyAdat['targyNev'].' ','',$_JSON['tankorNev']);
+ $_JSON['tankorNevReszei'] = array(
+ 'evfOszt' => substr($_JSON['tankorNev'],0, strpos($_JSON['tankorNev'],' ')),
+ 'targyNev' => $targyAdat['targyNev'],
+ 'tankorJel' =>$_JSON['tankorJel']
+ );
+ $_JSON['tankorNevReszei']['tankorNevExtra'] = trim(str_replace($_JSON['tankorNevReszei']['evfOszt'].' '.$_JSON['tankorNevReszei']['targyNev'],'',
+ str_replace($_JSON['targyJel'],'',$_JSON['tankorNev'])));
+ $_JSON['tankorSzemeszter'] = getTankorSzemeszterei($tankorId);
+ $_JSON['osztalyIds'] = getTankorOsztalyai($tankorId);
+ $_JSON['osztalyok'] = getOsztalyok();
+ $_JSON['tankorTanar'] = getTankorTanarai($tankorId);
+ $_JSON['tankorDiak'] = //getTankorDiakjai($tankorId);
+ getTankorDiakjaiByInterval($tankorId);
+ $_JSON['tankorBlokk'] = getTankorBlokkByTankorId(array($tankorId),__TANEV,array('blokkNevekkel'=>true));
+ $_JSON['tanmenetId'] = array_pop(getTanmenetByTankorIds(array($tankorId)));
+ $_JSON['tanmenetAdat'] = getTanmenetAdat($_JSON['tanmenetId']);
+
+ $_JSON['visibleData'] = true;
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php
new file mode 100644
index 00000000..fd5a624e
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/getZaroJegyAdat-pre.php
@@ -0,0 +1,41 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__TANAR!==true && __NAPLOADMIN !== true && __TITKARSAG !== true && __VEZETOSEG !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ exit;
+ }
+
+ global $KOVETELMENY;
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/osztalyzatok.php');
+
+ $jegyId = readVariable($_POST['jegyId'], 'id');
+ $zaroJegyId = readVariable($_POST['zaroJegyId'], 'id');
+ $ZA = getZaroJegyAdat($zaroJegyId);
+
+ $targyTargy = getTargyTargy();
+ $_JSON['fotargy'] = (is_array($targyTargy['FOal'][$ZA['targyId']]));
+ $_JSON['altargy'] = (is_array($targyTargy['alFO'][$ZA['targyId']]));
+
+ $_JSON['zaroJegyId'] = $zaroJegyId;
+// $_JSON['jegyAdat'] = serialize(getJegyAdat($jegyId));
+ $_JSON['zaroJegyAdat'] = $ZA;
+ $_JSON['zaroJegyAdat']['hivatalos'] = $KOVETELMENY[$ZA['jegyTipus']][$ZA['jegy']]['hivatalos'];
+ $_JSON['zaroJegyAdat']['rovid'] = $KOVETELMENY[$ZA['jegyTipus']][$ZA['jegy']]['rovid'];
+ $_JSON['diakNev'] = getDiakNevById($ZA['diakId']);
+ $_JSON['targyNev'] = getTargyNevByTargyId($ZA['targyId']);
+
+// ez zsákutca...
+// ez így nem jo require_once('skin/default/base/html/base.phtml');
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml'); // !!!
+
+// $jegySelect = formBegin(null,array('print'=>false));
+ $jegySelect .= putJegySelect($ZA,'return');
+// $jegySelect .= formEnd(array('print'=>false));
+ $_JSON['jegySelect'] = $jegySelect;
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php b/mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php
new file mode 100644
index 00000000..e881059c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/intezmenyNev-pre.php
@@ -0,0 +1,10 @@
+<?php
+
+ /* Model */
+ require_once('include/modules/naplo/share/intezmenyek.php');
+
+ /* Controller */
+ global $intezmeny;
+ $intezmeny = getIntezmenyByRovidnev(__INTEZMENY);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php b/mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php
new file mode 100644
index 00000000..af83206a
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/intezmenyNev.php
@@ -0,0 +1,8 @@
+<?php
+
+ global $intezmeny;
+
+ /* View */
+ echo '<style type="text/css">div#naploToolIntezmenyNev {font-size:x-large; text-align: center; padding:1em;}</style>';
+ echo '<div id="naploToolIntezmenyNev">'.$intezmeny['nev'].'</div>';
+?>
diff --git a/mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php
new file mode 100644
index 00000000..3b88e491
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/jegyzetAdat-pre.php
@@ -0,0 +1,165 @@
+<?php
+
+ // credits: rpetya (rakolcza.peter@gmail.com)
+
+ if (_RIGHTS_OK !== true) die();
+ if (__DIAK!==true && __TANAR!==true && __NAPLOADMIN !== true && __TITKARSAG !== true && __VEZETOSEG !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ exit;
+ }
+
+ require_once('include/modules/naplo/share/jegyzet.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/munkakozosseg.php');
+
+ $jegyzetId = readVariable($_POST['jegyzetId'], 'id', '-1');
+ $_JSON['refJegyzetDt'] = readVariable($_POST['refJegyzetDt'],'date');
+
+ // REMOVE
+ if ($action=='delJegyzet') {
+ delJegyzet($jegyzetId); // szigoríthatjuk is
+ $_JSON['jegyzetId'] = $jegyzetId; // a frontenden szukseges
+ return ;
+ // SET (CREATE)
+ } elseif ($action!='') {
+ //$_JSON['debug'] = $_POST;
+ $jegyzetId = setJegyzetAdat($_POST); // szigoríthatjuk is, de a mentő fv gondoskodik erről
+ }
+
+ // Kiegészítő adatok
+ if (__JEGYZETSZEREPTIPUS == 'diak') {
+ $ADAT['tankorok'] = getTankorByDiakId(__JEGYZETSZEREPID);
+ $ADAT['osztalyok'] = getDiakOsztalya(__JEGYZETSZEREPID,array('tanev'=>$tanev,'tolDt'=>$dt,'igDt'=>$dt));
+ } elseif (__JEGYZETSZEREPTIPUS == 'tanar') {
+ $ADAT['munkakozossegek'] = getMunkakozossegByTanarId(__JEGYZETSZEREPID, array('idonly'=>false));
+ if (is_array($_OSZTALYA) && count($_OSZTALYA)>0) $ADAT['osztalyok'] = getOsztalyok(null,array('osztalyIds'=>$_OSZTALYA));
+ $ADAT['tankorok'] = getTankorByTanarId(__JEGYZETSZEREPID);
+ } else {
+
+ }
+
+ // GET
+ $_JSON['adat'] = $ADAT['jegyzetAdat'] = getJegyzetAdat($jegyzetId);
+
+ define('__READONLY',($jegyzetId>0
+ && (__JEGYZETSZEREPTIPUS!==$ADAT['jegyzetAdat']['userTipus']
+ || __JEGYZETSZEREPID!==$ADAT['jegyzetAdat']['userId'])));
+ if ($jegyzetId<=0) {
+ $dt = $_JSON['refJegyzetDt'];
+ $leiras = "Új jegyzet";
+ } else {
+ $dt = $ADAT['jegyzetAdat']['dt'];
+ $leiras = "Jegyzet";
+ }
+
+ $_JSON['jegyzetId'] = $jegyzetId;
+ $_JSON['visibleData'] = true;
+ $_JSON['leiras'] = $leiras;
+
+ $_CHK[$ADAT['jegyzetAdat']['publikus']] = ' checked="checked" ';
+
+ // generate HTML Template
+if (__READONLY===false) {
+
+
+ // formBegin!!!!!! a pre-ben nem létezik :(
+ $jegyzetForm = '<form method="post" action="'.href('index.php?page=naplo&sub=tools&f=jegyzetAdat').'">
+ <input class="salt" type="hidden" name="'.__SALTNAME.'" value="'.__SALTVALUE.'" />
+ <input class="mayorToken" type="hidden" name="mayorToken" value="'.$_SESSION['mayorToken'].'" />
+ <input type="hidden" name="action" value="jegyzetelo" />
+ <input type="hidden" name="jegyzetId" value="'.$jegyzetId.'" />
+ Határidő: <input type="date" name="dt" value="'.$dt.'" />
+ <textarea name="jegyzetLeiras" style="margin-top:8px; width:99%; height:100px;">'.supertext($_JSON['adat']['jegyzetLeiras']).'</textarea>';
+
+ $jegyzetForm .='<h3>Láthatóság</h3>
+ <ul style="list-style-type=none">
+ <input type="radio" name="publikus" id="publikus0" value="0" '.$_CHK[0].'/><label for="publikus0">privát</label>
+ <br/><input type="radio" name="publikus" id="publikus1" value="1" '.$_CHK[1].' /><label for="publikus1">látható a kapcsolódó csoportoknak</label>';
+ if (__JEGYZETSZEREPTIPUS=='tanar') $jegyzetForm .= '<br/><input type="radio" name="publikus" id="publikus2" value="2" '.$_CHK[2].' /><label for="publikus2">publikus</label>';
+ else $jegyzetForm .= '<br/><input type="radio" name="publikus" id="publikus2" value="2" '.$_CHK[2].' disabled="disabled" /><label for="publikus2">publikus</label>';
+ $jegyzetForm .= '</ul>';
+
+
+ $jegyzetForm .= '<h3>Kapcsolódó csoportok</h3><ul>';
+
+ if (count($ADAT['tankorok'])>0) {
+ $jegyzetForm .= '<li>Tankörök: <select name="tankorId[]"><option>-</option>';
+ for ($i=0; $i<count($ADAT['tankorok']); $i++) { $_D = $ADAT['tankorok'][$i];
+ $_SEL = (in_array($_D['tankorId'],$ADAT['jegyzetAdat']['tankorok']))? 'selected="selected"':'';
+ $jegyzetForm .= '<option value="'.$_D['tankorId'].'" '.$_SEL.'>'.$_D['tankorNev'].'</option>';
+ }
+ $jegyzetForm .= '</select></li>';
+ }
+
+ if (count($ADAT['osztalyok'])>0) {
+ $jegyzetForm .= '<li>Osztályok: <select name="osztalyId[]"><option>-</option>';
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $_D = $ADAT['osztalyok'][$i];
+ $_SEL = (in_array($_D['osztalyId'],$ADAT['jegyzetAdat']['osztalyok']))? 'selected="selected"':'';
+ $jegyzetForm .= '<option value="'.$_D['osztalyId'].'" '.$_SEL.'>'.$_D['osztalyJel'].'</option>';
+ }
+ $jegyzetForm .= '</select></li>';
+ }
+
+ if (count($ADAT['munkakozossegek'])>0) {
+ $jegyzetForm .= '<li>Munkaközösségek: <select name="mkId[]"><option>-</option>';
+ for ($i=0; $i<count($ADAT['munkakozossegek']); $i++) {
+ $_D = $ADAT['munkakozossegek'][$i];
+ $_SEL = (in_array($_D['mkId'],$ADAT['jegyzetAdat']['munkakozossegek']))? 'selected="selected"':'';
+ $jegyzetForm .= '<option value="'.$_D['mkId'].'" '.$_SEL.'>'.$_D['munkakozossegNev'].'</option>';
+ }
+ $jegyzetForm .= '</select></li>';
+ }
+
+ //$jegyzetForm .= '<li>Órák: <select><option>-</option></select></li>';
+ //$jegyzetForm .= '<li>Munkaközösségek: <select><option>-</option></select></li>';
+
+ $jegyzetForm .= '</ul>';
+ $jegyzetForm .= '<button type="button" class="setJegyzetAdat mentes" value="mentés" data-jegyzetid="'.$jegyzetId.'"><span class="icon-ok"></span> MENTÉS </button>';
+ $jegyzetForm .= '</form>';
+
+ // töröl
+ $jegyzetForm .= '
+ <form method="post" action="'.href('index.php?page=naplo&sub=tools&f=jegyzetAdat').'">
+ <input class="salt" type="hidden" name="'.__SALTNAME.'" value="'.__SALTVALUE.'" />
+ <input class="mayorToken" type="hidden" name="mayorToken" value="'.$_SESSION['mayorToken'].'" />
+ <input type="hidden" name="action" value="delJegyzet">
+ <input type="hidden" name="jegyzetId" value="'.$jegyzetId.'">
+ <button type="button" class="delJegyzet torles" value="végleges törlés" data-jegyzetid="'.$jegyzetId.'"><span class="icon-remove"></span> TÖRLÉS </span></button>';
+ $jegyzetForm .= '</form>';
+
+} else {
+ $jegyzetForm .= '<p style="font-size:16px; text-align:center">'.supertext($_JSON['adat']['jegyzetLeiras']).'</p>';
+ $jegyzetForm .= '<ul>';
+ for ($i=0; $i<count($ADAT['tankorok']); $i++) { $_D = $ADAT['tankorok'][$i];
+ if (in_array($_D['tankorId'],$ADAT['jegyzetAdat']['tankorok'])) {
+ $jegyzetForm .= '<li class="tankorAdat" data-tankorid="'.$_D['tankorId'].'">'.$_D['tankorNev'].'</li>';
+ }
+ }
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $_D = $ADAT['osztalyok'][$i];
+ if (in_array($_D['osztalyId'],$ADAT['jegyzetAdat']['osztalyok'])) {
+ $jegyzetForm .= '<li>'.$_D['osztalyJel'].'</li>';
+ }
+ }
+ for ($i=0; $i<count($ADAT['munkakozossegek']); $i++) {
+ $_D = $ADAT['munkakozossegek'][$i];
+ if (in_array($_D['mkId'],$ADAT['jegyzetAdat']['munkakozossegek'])) {
+ $jegyzetForm .= '<li>'.$_D['munkakozossegNev'].'</li>';
+ }
+ }
+
+ $jegyzetForm .= '</ul>';
+
+ $jegyzetForm .= '<p style="border-top: solid 1px #ddd; padding:10px;">';
+ $jegyzetForm .= 'Ezt a jegyzetet más felhasználó jegyezte be.
+ Adatai egyelőre nem nyilvánosak. Addig is jegyezd meg, hogy ezeket így írjuk helyesen:
+ <ul><li>tanár úr (fiú, tehát külön),</li><li>tanárnő (lány, tehát egybe),</li><li>muszáj (pontos jé)</li></ul> ;)
+ </p>
+ ';
+}
+
+ $_JSON['jegyzetForm'] = $jegyzetForm;
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/kereso-pre.php b/mayor-orig/www/policy/private/naplo/tools/kereso-pre.php
new file mode 100644
index 00000000..026acd20
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/kereso-pre.php
@@ -0,0 +1,25 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/diak.php');
+ require_once('include/modules/naplo/share/kereso.php');
+
+ $ADAT['tipus'] = readVariable($_POST['tipus'],'enum',null,array('diak','tanar','szulo'));
+ $ADAT['pattern'] = readVariable($_POST['pattern'],'string',null);
+ $ADAT['strict'] = readVariable($_POST['strict'],'id',null);
+
+ if ($ADAT['pattern']!='') {
+ // search
+ if ($ADAT['tipus']=='diak') $ADAT['diakok']=getDiakokByPattern($ADAT['pattern']);
+ elseif ($ADAT['tipus']=='tanar') $ADAT['tanarok']=getTanarokByPattern($ADAT['pattern']);
+ elseif ($ADAT['tipus']=='szulo') $ADAT['szulok']=getSzulokByPattern($ADAT['pattern'],array('diakokkal'=>true));
+ }
+
+ if ($ADAT['strict']==1) {
+ $_JSON = $ADAT;
+ } else {
+ $_JSON[] = $ADAT; // hozzáfűzzük valami random indexszel?!?!
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php
new file mode 100644
index 00000000..22ead763
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/napAdat-pre.php
@@ -0,0 +1,23 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__DIAK!==true && __TANAR!==true && __NAPLOADMIN !== true && __TITKARSAG !== true && __VEZETOSEG !== true) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ exit;
+ }
+
+ require_once('include/modules/naplo/share/orarend.php');
+ require_once('include/modules/naplo/share/ora.php');
+ require_once('include/modules/naplo/share/nap.php');
+ global $aHetNapjai;
+ $dt = readVariable($_POST['napDt'],'date');
+
+ /* PUBLIKUS ADATOK */
+ $_JSON['dt'] = $dt;
+ $_JSON['leiras'] = $dt.' '.$aHetNapjai[date('w',strtotime($dt))-1];
+ $_JSON['tanev'] = __TANEV;
+
+ $_JSON['napAdat'] = getNapAdat($dt);
+ $_JSON['tanitasiNapAdat'] = getTanitasiNapAdat(array($dt));
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/oid.php b/mayor-orig/www/policy/private/naplo/tools/oid.php
new file mode 100644
index 00000000..bb5e7696
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/oid.php
@@ -0,0 +1 @@
+<?php # Marked for deletion # ?>
diff --git a/mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php b/mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php
new file mode 100644
index 00000000..67c94a57
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/oraAdat-pre.php
@@ -0,0 +1,2 @@
+<?php
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/tankor-pre.php b/mayor-orig/www/policy/private/naplo/tools/tankor-pre.php
new file mode 100644
index 00000000..ae614514
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/tankor-pre.php
@@ -0,0 +1,39 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/kereso.php');
+
+
+ $ADAT['tankorId'] = readVariable($_POST['tankorId'],'id',null);
+ $ADAT['tankorAdat'] = getTankorAdat($ADAT['tankorId']); // tanév!!!
+ $ADAT['tankorTipusok'] = getTankorTipusok();
+ $ADAT['html']['blokk0'] = htmlTankorAdat($ADAT);
+ $ADAT['html']['blokkok'] = 1;
+ $_JSON[] = $ADAT;
+
+
+ function htmlTankorAdat($ADAT) {
+ $tankorAdat = $ADAT['tankorAdat'][$ADAT['tankorId']][0]; // index?
+ $r.= '<style type="text/css">
+ table._t tr th { font-weight:normal; text-align: right; }
+ </style>';
+ $r.='<table class="_t">';
+ foreach($tankorAdat as $k => $v) {
+ $r .= '<tr><th>'.$k.':</th><td>'.$v.'</td></tr>';
+ }
+ $r.='</table>'."\n";
+
+/* $r.= 'Tankörtípus:';
+ $r.= '<select>';
+ for ($i=0; $i<10; $i++) {
+ $r.= '<option value="'.$i.'">'.serialize($TA[$i]).'</option>';
+ }
+ $r.= '</select>';
+ $r.=serialize($TA);
+*/
+ return $r;
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php b/mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php
new file mode 100644
index 00000000..7dab9b9f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/tankorLista-pre.php
@@ -0,0 +1,66 @@
+<?php
+ /*
+ * Az oldal különböző bejövő paraméterek alapján ad vissza ajax kérésre egy tankör listát...
+ */
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/targy.php');
+
+ $diakId = readVariable($_POST['diakId'], 'id');
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ $tanarId = readVariable($_POST['tanarId'], 'id');
+ $targyId = readVariable($_POST['targyId'], 'id');
+ $mkId = readVariable($_POST['mkId'], 'id');
+ $tolDt = readVariable($_POST['tolDt'], 'date');
+ $igDt = readVariable($_POST['igDt'], 'date');
+ $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+ $bontasIds = readVariable($_POST['bontasIds'],'id'); //, array(101,102,103,104,105,106));
+
+
+ // tankörök lekérdezése - lényegében a tankorSelect-nek megfelelően
+ if (isset($diakId) && $diakId!='') { // diák tankörei
+ $tankorok = getTankorByDiakId($diakId, $tanev, array('tolDt'=>$tolDt, 'igDt'=>$igDt));
+ } elseif (isset($osztalyId) && $osztalyId!='') { // osztály tankörei
+ $tankorok = getTankorByOsztalyId($osztalyId, $tanev, array('tolDt'=>$tolDt, 'igDt'=>$igDt));
+ } elseif (isset($tanarId) && $tanarId!='') { // tanár tankörei
+ $tankorok = getTankorByTanarId($tanarId, $tanev, array('tolDt'=>$tolDt, 'igDt'=>$igDt));
+ } else { // általános tankörlekérdző
+ $WHERE = array();
+ if (isset($targyId) && $targyId != '') { // leszűkítés adott tárgyra
+ $WHERE[] = 'targyId='.$targyId;
+ } elseif (isset($mkId) && $mkId != '') { // leszűkítés adott munkaközösségre
+ $TARGYAK = getTargyakByMkId($mkId);
+ for ($i = 0; $i < count($TARGYAK); $i++) $T[] = $TARGYAK[$i]['targyId'];
+ if (count($T) > 0) $WHERE[] = 'targyId IN ('.implode(',', $T).')';
+ }
+
+ if (isset($tanev)) // szűkítés adott tanévre
+ $WHERE[] = 'tankorSzemeszter.tanev='.$tanev;
+
+ $tankorok = getTankorok($WHERE);
+ }
+ $tankorIds = array();
+ for ($i=0; $i<count($tankorok); $i++) $tankorIds[] = $tankorok[$i]['tankorId'];
+
+ // speciális szűrések, tagolások
+ if (is_array($bontasIds) && count($bontasIds)>0) {
+
+ $bontasTankorIds = getTankorByBontasIds($bontasIds);
+ $tankorOraszamok = getTankorTervezettOraszamok($tankorIds);
+
+ for ($i=0; $i<count($tankorok); $i++) {
+ $tankorok[$i]['kiemelt'] = (in_array($tankorok[$i]['tankorId'], $bontasTankorIds));
+ $tankorok[$i]['oraszam'] = $tankorOraszamok[ $tankorok[$i]['tankorId'] ]['oraszam'];
+ $tankorok[$i]['bontasOraszam'] = $tankorOraszamok[ $tankorok[$i]['tankorId'] ]['bontasOraszam'];
+ }
+ }
+//dump($tankorok);
+
+
+ $_JSON['tankorok'] = $tankorok;
+ $_JSON['post'] = $_POST;
+// $_JSON['bontasTankorIds'] = $bontasTankorIds;
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php b/mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php
new file mode 100644
index 00000000..35a4306f
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/tankorMod-pre.php
@@ -0,0 +1,40 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+ else {
+
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorModifier.php');
+
+ $tankorId = readVariable($_POST['tankorId'], 'id',null);
+ $tankorSzemeszter = $_POST['tankorSzemeszter'];
+ $tankorNevExtra = readVariable($_POST['tankorNevExtra'],'string');
+ $osztalyIds = readVariable($_POST['osztalyIds'], 'id');
+
+ tankorOsztalyHozzarendeles($tankorId, $osztalyIds); // A tankör nevét nem módosítja!!
+ tankorSzemeszterHozzarendeles($tankorId, $tankorSzemeszter); // A tankör nevét nem módosítja
+ setTankorNev($tankorId, $tankorNevExtra);
+
+ $tmp = getTankorAdat($tankorId);
+ $targyAdat = getTargyById($tmp[$tankorId][0]['targyId']);
+
+ $_JSON = $tmp[$tankorId][0];
+ $_JSON['tankorNevTargyNelkul'] = str_replace($targyAdat['targyNev'].' ','',$_JSON['tankorNev']);
+ $_JSON['tankorNevReszei'] = array(
+ 'evfOszt' => substr($_JSON['tankorNev'],0, strpos($_JSON['tankorNev'],' ')),
+ 'targyNev' => $targyAdat['targyNev'],
+ 'tankorJel' =>$_JSON['tankorJel']
+ );
+ $_JSON['tankorNevReszei']['tankorNevExtra'] = trim(str_replace($_JSON['tankorNevReszei']['evfOszt'].' '.$_JSON['tankorNevReszei']['targyNev'],'',
+ str_replace($_JSON['targyJel'],'',$_JSON['tankorNev'])));
+ $_JSON['tankorSzemeszter'] = getTankorSzemeszterei($tankorId);
+ $_JSON['osztalyIds'] = getTankorOsztalyai($tankorId);
+ $_JSON['alert'] = $_SESSION['alert'];
+ $_JSON['osztalyok'] = getOsztalyok();
+ $_JSON['tankorTipusok'] = getTankorTipusok();
+ // $_JSON['post'] = $_POST;
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php b/mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php
new file mode 100644
index 00000000..0f581de6
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/tools/ujTankor-pre.php
@@ -0,0 +1,114 @@
+<?php
+ /*
+ * Az oldal különböző bejövő paraméterek alapján létrehoz egy tankört, majd az adatait json formában visszaküldi...
+ * Jelenleg csak $bontasIds bemeneti paraméterrel működik.
+ */
+
+ if (_RIGHTS_OK !== true) die();
+ if (__NAPLOADMIN !== true && __VEZETOSEG !== true) $_SESSION['alert'][] = 'page:insufficient_access';
+ else {
+
+ require_once('include/modules/naplo/share/bontas.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/kepzes.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/share/tankorModifier.php');
+
+/*
+ $diakId = readVariable($_POST['diakId'], 'id');
+ $osztalyId = readVariable($_POST['osztalyId'], 'id');
+ $tanarId = readVariable($_POST['tanarId'], 'id');
+ $targyId = readVariable($_POST['targyId'], 'id');
+ $mkId = readVariable($_POST['mkId'], 'id');
+ $tolDt = readVariable($_POST['tolDt'], 'date');
+ $igDt = readVariable($_POST['igDt'], 'date');
+ $tanev = readVariable($_POST['tanev'], 'numeric unsigned', __TANEV);
+*/
+ $bontasIds = readVariable($_POST['bontasIds'],'id'); // 1430, 1441
+ // Az első bontásból lekérdezzük a következő adatokat:
+ // - (tárgy) típus
+ // - tárgy (targyId)
+ $koAdat = getKepzesOratervAdatByBontasId($bontasIds[0]);
+ $ADAT['tipus'] = $koAdat['tipus'];
+ $ADAT['targyId'] = $koAdat['targyId'];
+ // - tankör típus (tankorTipusId) ~ első nyelv, második nyelv, óratervi (gyakorlat?)
+ $ADAT['tankorTipusId'] = ($koAdat['tipus']=='első nyelv'?2:($koAdat['tipus']=='második nyelv'?3:1));
+ // - felmenő óraszámok (tankorSzemeszter)
+ $targyOraterv = getTargyAdatFromKepzesOraterv($koAdat['kepzesId'], $ADAT);
+ $ADAT['oraszam'] = array(); $tanev=__TANEV; $ok = false;
+ foreach ($targyOraterv as $targyId => $tAdat) {
+ foreach ($tAdat as $evfolyamJel => $eAdat) {
+ if ($evfolyamJel == $koAdat['evfolyamJel']) $ok = true;
+ if ($ok) {
+ foreach ($eAdat as $szemeszter => $szAdat) {
+ $ADAT['oraszam'][$tanev][$szemeszter] = $szAdat[0]['hetiOraszam'];
+ $tankorOraszam[] = array('tanev'=>$tanev,'szemeszter'=>$szemeszter,'oraszam'=>$szAdat[0]['hetiOraszam']);
+ }
+ $tanev++;
+ }
+ }
+ }
+ // a bontásokból:
+ // - osztalyIds
+ $q = "SELECT DISTINCT osztalyId FROM kepzesTargyBontas WHERE bontasId IN (".implode(',', array_fill(0, count($bontasIds), '%u')).")";
+ $ADAT['osztalyIds'] = db_query($q, array('fv'=>'ujTankor-pre','modul'=>'naplo','result'=>'idonly','values'=>$bontasIds));
+ // A tárgy adataiból: évközi követelmény
+ $targyAdat = getTargyById($ADAT['targyId']);
+ $ADAT['kovetelmeny'] = $targyAdat['evkoziKovetelmeny'];
+ // kellene még: elnevezés
+ $ADAT['tankorJel'] = 'B'.$bontasIds[0];
+ // választható - default NULL; min/max létszám: 0; évközi követelmény: a tárgyból/jegy;
+ $ADAT['min'] = $ADAT['max'] = 0;
+
+ // A tankor felvétele
+ $lr = db_connect('naplo_intezmeny');
+ db_start_trans($lr); $ok = true;
+ $q = "INSERT INTO tankor (targyId,tankorTipusId,kovetelmeny,min,max) VALUES (%u,%u,'%s',%u,%u)";
+ $v = array($ADAT['targyId'], $ADAT['tankorTipusId'], $ADAT['kovetelmeny'], $ADAT['min'], $ADAT['max']);
+ $tankorId = db_query($q, array('fv'=>'ujTankor-pre/1','modul'=>'naplo_intezmeny','result'=>'insert','values'=>$v), $lr);
+ $ok = $ok && $tankorId;
+ if ($ok) {
+ // tankör-osztály hozzárendelés
+ $q = "INSERT INTO tankorOsztaly (tankorId, osztalyId) VALUES (%u, %u)";
+ foreach ($ADAT['osztalyIds'] as $index => $osztalyId) $ok = $ok && db_query($q, array('fv'=>'ujTankor-pre/3','modul'=>'naplo_intezmeny','values'=>array($tankorId, $osztalyId)), $lr);
+ }
+ if ($ok) {
+ // tankör-szemeszter - még tankörnév nélkül...
+ $tankorNev = $ADAT['tankorJel'];
+ foreach ($ADAT['oraszam'] as $tanev => $tAdat) {
+ foreach ($tAdat as $szemeszter => $oraszam) {
+ $q = "INSERT INTO tankorSzemeszter (tankorId, tanev, szemeszter, oraszam, tankorNev) VALUES (%u, %u, %u, %f, '%s')";
+ $ok = $ok && db_query($q, array('fv'=>'ujTankor-pre/4','modul'=>'naplo_intezmeny','values'=>array($tankorId, $tanev, $szemeszter, $oraszam, $tankorNev)), $lr);
+ }
+ }
+ }
+ // tankör nevének beállítása
+ if ($ok) $nev = setTankorNev($tankorId, $tankorNevExtra='B'.$bontasIds[0], $lr);
+ $ok = $ok && ($nev !== false);
+
+ // tankör bontásokhoz rendelése
+ $bontasAdat = getBontasAdat($bontasIds[0]);
+ $hetiOraszam = $koAdat['hetiOraszam']-$bontasAdat['hetiOraszam'];
+ $ok = $ok && bontasTankorHozzarendeles($bontasIds, $tankorId, $hetiOraszam, $lr);
+
+ // visszaküldendő adatok összegyűjtése
+ $tankorAdat = getTankorAdat($tankorId, __TANEV, $lr);
+ $_JSON = array(
+ 'bontasIds' => $bontasIds,
+ 'hetiOraszam' => $hetiOraszam,
+ 'tankorId' => $tankorId,
+ 'tankorNev' => str_replace($targyAdat['targyNev'].' ','',$tankorAdat[$tankorId][0]['tankorNev']),
+ 'tankorNevOrig' => $tankorAdat[$tankorId][0]['tankorNev'],
+ 'tankorOraszam' => $tankorOraszam,
+ 'ideiTankorOraszam' => array(
+ $tankorAdat[$tankorId][0]['oraszam'],
+ $tankorAdat[$tankorId][1]['oraszam']
+ )
+ );
+ if ($ok !== false) {
+ db_commit($lr);
+ } else { db_rollback($lr); }
+ db_close($lr);
+
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php b/mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php
new file mode 100644
index 00000000..8f44cd8c
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/uzeno/postas-pre.php
@@ -0,0 +1,89 @@
+<?php
+
+ require_once('include/modules/naplo/uzeno/uzeno.php'); /* !!! */
+
+ require_once('include/modules/naplo/share/kereso.php');
+ include_once('include/modules/naplo/share/tankor.php');
+ include_once('include/modules/naplo/share/diak.php');
+ include_once('include/modules/naplo/share/szulo.php');
+ include_once('include/modules/naplo/share/tanar.php');
+ include_once('include/modules/naplo/share/osztaly.php');
+ include_once('include/modules/naplo/share/munkakozosseg.php');
+
+ /* ADMIN */
+// if (__UZENOADMIN===true) {
+// $ADAT['asWho'] = readVariable($_POST['asWho'],'strictstring','asIs',array('asAdmin','asIs'));
+// define('__ASWHO',$ADAT['asWho']);
+// } else define('__ASWHO','asIs');
+
+ $ADAT['user']['feladoId'] = setUzenoFeladoId(false);
+ $ADAT['user']['feladoTipus'] = getUzenoSzerep(false);
+ /* ADMIN */
+
+ initSzerep();
+ define('__MEID',setUzenoFeladoId($nooverride=true));
+
+ $ADAT['pattern'] = readVariable($_POST['pattern'],'string');
+ $ADAT['cimzett'] = readVariable($_POST['cimzett'],'string');
+ $ADAT['diakokkal'] = readVariable($_POST['diakokkal'],'bool'); // ez mindig true
+ $ADAT['txt'] = readVariable($_POST['txt'],'string');
+ $ADAT['tanev'] = readVariable($_POST['tanev'],'numeric',__TANEV);
+ list($_cimzettTipus,$_cimzettId) = explode('|',$ADAT['cimzett']);
+ $ADAT['cimzettTipus'] = readVariable($_cimzettTipus,'strictstring',null);
+ $ADAT['cimzettId'] = readVariable($_cimzettId,'id',null);
+
+ $ADAT['mId'] = readVariable($_GET['mId'],'id',null);
+ if (isset($ADAT['mId'])) {
+ $SET['filter'][] = 'uzeno.mId='.intval($ADAT['mId']);
+ $SET['tanev'] = $ADAT['tanev'];
+ $SET['count'] = false;
+ $ADAT['uzenet'] = getUzenoUzenetek($SET);
+ }
+
+ if ($ADAT['pattern']!='') { /* Ha keres */
+ if (uzenhet('diak')) $ADAT['r']['diak' ] = getDiakokByPattern($ADAT['pattern']);
+ if (uzenhet('tanar')) $ADAT['r']['tanar'] = getTanarokByPattern($ADAT['pattern']);
+ if (uzenhet('szulo')) $ADAT['r']['szulo'] = getSzulokByPattern($ADAT['pattern'],array('diakokkal'=>$ADAT['diakokkal']));
+ } elseif ($ADAT['mId']!='' && count($ADAT['uzenet'])==1) {
+ // egy üzenet adatait nézzük, akkor kérdezzük le a feladót és a címzettet
+ $D = $ADAT['uzenet'][0];
+ foreach (array('felado','cimzett') as $_t) {
+ switch ($D[$_t.'Tipus']) {
+ case 'tanar': $nev = getTanarNevById($D[$_t.'Id']); break;
+ case 'diak': $nev = getDiakNevById($D[$_t.'Id']); break;
+ case 'szulo': $nev = getSzuloNevById($D[$_t.'Id']); break;
+ case 'tankor':
+ case 'tankorSzulo': $nev = getTankorNevById($D[$_t.'Id']); break;
+ case 'munkakozosseg': $nev = getMunkakozossegNevById($D[$_t.'Id']); break;
+ case 'osztaly':
+ case 'osztalyTanar':
+ case 'osztalySzulo': $nev = getOsztalyNevById($D[$_t.'Id']); break;
+ }
+ if (uzenhet($_t.'Tipus')) $ADAT['r'][$D[$_t.'Tipus']][] = array($D[$_t.'Tipus'].'Id'=>$D[$_t.'Id'],$D[$_t.'Tipus'].'Nev'=>$nev);
+ }
+ } else {
+ $ADAT['r'] = initUzenoTipusok(array('csakId'=>false,'tanev'=>$ADAT['tanev']));
+ if (uzenhet('tanar') && in_array(__SZEREP,array('diak','szulo'))) /* Írjuk felül az üres tanart a tankör tanáraival */
+ $ADAT['r']['tanar'] = extendUzenoTipusok(array('csakId'=>false,'tanev'=>$ADAT['tanev']));
+ if (uzenhet(__SZEREP)) $ADAT['r'][__SZEREP][] = array(__SZEREP.'Id'=>0, __SZEREP.'Nev'=>'');
+ }
+
+ if ($ADAT['cimzettTipus']!='' && is_numeric($ADAT['cimzettId']) && ($_POST['postazoHash']=='submit' || $_POST['gomb']=='OK')) {
+
+ $P = array(
+ 'tanev'=>__TANEV,
+ 'cimzettId'=>readVariable($ADAT['cimzettId'],'id'),
+ 'cimzettTipus' => readVariable($ADAT['cimzettTipus'],'strictstring',null),
+ 'txt'=> $ADAT['txt'] );
+
+ if (postUzenet($P) === true) {
+ /* Ha sikered */
+ unset($_POST);
+ header('Location: '.location('index.php?page=naplo&sub=uzeno&f=uzeno'));
+ } else {
+ $_SESSION['alert'][] = 'page::uzenorogziteshiba';
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/naplo/uzeno/postas.php b/mayor-orig/www/policy/private/naplo/uzeno/postas.php
new file mode 100644
index 00000000..18ccddef
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/uzeno/postas.php
@@ -0,0 +1,5 @@
+<?php
+ global $ADAT;
+
+ putUzenoPostazo($ADAT);
+?>
diff --git a/mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php b/mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php
new file mode 100644
index 00000000..4aededc1
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/uzeno/uzeno-pre.php
@@ -0,0 +1,187 @@
+<?php
+
+if (__UZENO_INSTALLED === true) {
+
+ global $TOOL,$action;
+
+ include_once('include/modules/naplo/share/tankor.php');
+ include_once('include/modules/naplo/share/diak.php');
+ include_once('include/modules/naplo/share/szulo.php');
+ include_once('include/modules/naplo/share/tanar.php');
+ include_once('include/modules/naplo/share/osztaly.php');
+ include_once('include/modules/naplo/share/munkakozosseg.php');
+
+// define('__ASWHO','asIs');
+ initSzerep(); // defines __SZEREP, lásd még __UZENOSZEREP
+ define('__MEID',setUzenoFeladoId($nooverride=true));
+ $csoportTipus = array('munkakozosseg','tankor','tankorSzulo','osztaly','osztalySzulo','osztalyTanar');
+
+ if (__SZEREP=='tanar') { // ha tanárok vagyunk és szereztünk diakId-t, akkor:
+ $ADAT['diakId'] = readVariable($_GET['diakId'],'id',null);
+ if ($ADAT['diakId']>0) $defaultSzalId = __MEID.'_'.__SZEREP.'_'.$ADAT['diakId'].'_diak';
+ if ($ADAT['diakId']>0) $defaultCimzett = 'diak|'.$ADAT['diakId'];
+ }
+ // vezérléshez
+ $ADAT['mId'] = readVariable($_GET['mId'],'id');
+ $ADAT['szalId'] = readVariable($_GET['szalId'],'string',$defaultSzalId);
+ $ADAT['cimzettId'] = readVariable($_GET['cimzettId'],'id');
+ $ADAT['cimzettTipus'] = readVariable($_GET['cimzettTipus'],'strictstring');
+ $ADAT['replyTipus'] = $ADAT['cimzettTipus'] ;
+ $ADAT['feladoId'] = readVariable($_GET['feladoId'],'id');
+ $ADAT['feladoTipus'] = readVariable($_GET['feladoTipus'],'strictstring');
+
+ $ADAT['mutato'] = readVariable($_GET['mutato'], 'numeric');
+ $ADAT['tanev'] = readVariable($_POST['tanev'],'numeric',readVariable($_GET['tanev'],'numeric',__TANEV));
+
+ $ADAT['toSkin'] = readVariable($_GET['toSkin'],'enum',null,$SKINS);
+
+ $ADAT['pattern'] = readVariable($_POST['pattern'],'string');
+ /* Ha van cimzett mező, akkor az új UI-ről jön a kérés, felülírhatunk mindent. */
+ $ADAT['cimzett'] = readVariable($_POST['cimzett'],'string',$defaultCimzett);
+ if($ADAT['cimzett']!='') {
+ //$_SESSION['alert'][] = '::postazonak kellene kezelni!!!'; // he?
+ list($ADAT['cimzettTipus'],$ADAT['cimzettId']) = explode('|',$ADAT['cimzett']);
+ } else {
+ $ADAT['cimzettTipus'] = readVariable($_POST['cimzettTipus'],'strictstring');
+ $ADAT['cimzettId'] = intval($_POST[$ADAT['cimzettTipus'].'Id']);
+ }
+
+// $ADAT['r']['diak'] = getDiakokByPattern($ADAT['pattern']);
+
+ /* Képkezelés */
+ $ADAT['kepMutat'] = __SHOW_FACES_TF;
+
+ $ADAT['tagsagok'] = initUzenoTipusok(array('csakId'=>false,'tanev'=>$ADAT['tanev']));
+ $ADAT['tagsagok']['diak'] = getDiakok();
+ $ADAT['tagsagok']['tanar'] = getTanarok();
+// $ADAT['tagsagok'][__SZEREP][] = setUzenoFeladoId();
+ /* create id */
+
+ /*..*/
+ $AVAIL_TIPUSOK = (array_keys($ADAT['tagsagok']));
+ /* Postázó
+ mayorNaploUzen cookie-t minden oldalletöltésnél újrageneráljuk, így a posttal, ha nem egyezik, biza hiába minden.
+ */
+ $kuuk = readVariable($_COOKIE['mayorNaploUzen'],'strictstring');
+ $txt = (readVariable($_POST['txt'],'string'));
+
+ if ($action == 'postUzenet' && $kuuk == $_POST['kuuk'] && in_array($_POST['cimzettTipus'],$AVAIL_TIPUSOK) && $txt!=''
+ && $_POST[$_POST['cimzettTipus'].'Id'] != ''
+ ) {
+ /* hacky spellchecker - to get rid of annoying mispelled... */
+ if (mb_stristr($txt,'tanárúr',false,'UTF-8')!==false) $_SESSION['alert'][] = 'message:check_spelling:Tanár úr!';
+ if (mb_stristr($txt,'tanár nő',false,'UTF-8')!==false) $_SESSION['alert'][] = 'message:check_spelling:Tanárnő!';
+ if (mb_stristr($txt,'muszály',false,'UTF-8')!==false) $_SESSION['alert'][] = 'message:check_spelling:Muszáj!';
+ /* --- */
+ $P = array(
+ 'tanev'=>$ADAT['tanev'],
+ 'cimzettId'=> $ADAT['cimzettId'],
+ 'cimzettTipus' => $ADAT['cimzettTipus'],
+ 'txt'=> $txt );
+ if (count($_SESSION['alert'])==0 && postUzenet($P)===true) {
+ $_SESSION['alert'][] = 'info:msg_success:'; // a félreértés kedvéért kitöröljük a szűrőket
+ unset($ADAT['feladoTipus']); unset($ADAT['feladoId']);
+ unset($ADAT['cimzettTipus']); unset($ADAT['cimzettId']);
+ } else {
+ $_SESSION['alert'][] = 'info::figyelmezteto uzenetkor nem rogzitjuk az uzeneteket!';
+ $ADAT['txt']=$txt;
+ }
+ unset($P);
+ unset($ADAT['mId']);
+ } elseif (__UZENOADMIN===true && $_GET['action'] =='delUzenet') {
+ delUzenet($ADAT['mId'],$ADAT['tanev']);
+ unset($ADAT['mId']);
+ } elseif ($_GET['action'] == 'flagUzenet') { // közvetlenül is olvashatjuk
+ $FLAG['flag'] = readVariable($_GET['flag'],'numeric unsigned',1,array(0,1));
+ $FLAG['mId'] = $ADAT['mId'];
+ $FLAG['tanev']= $ADAT['tanev'];
+ // a kapcsolótáblába rögzíthető status
+ flagUzenet($FLAG);
+ unset($ADAT['mId']);
+ }
+
+ $ADAT['kuuk'] = rand();
+ setcookie('mayorNaploUzen', $ADAT['kuuk']);
+
+ $_CONVERT = array('tankorSzulo'=>'tankor', 'osztalySzulo'=>'osztaly', 'osztalyTanar'=>'osztaly');
+ if ($ADAT['cimzettId']!='' && in_array($ADAT['cimzettTipus'],$AVAIL_TIPUSOK) ) {
+ $b = false;
+ for ($i=0; $i<count( $ADAT['tagsagok'][$ADAT['cimzettTipus']] ) ; $i++) {
+ $_tipus = (!in_array($ADAT['cimzettTipus'], array('tankorSzulo','osztalySzulo','osztalyTanar'))) ? $ADAT['cimzettTipus'].'Id' : str_replace('Szulo','',$ADAT['cimzettTipus']).'Id' ;
+ if (intval($ADAT['tagsagok'][$ADAT['cimzettTipus']][$i][$_tipus])==$ADAT['cimzettId']) {
+ $b = true;
+ break;
+ }
+ }
+ if ($b===true) {
+ $SET['filter'][] = 'cimzettId='.intval($ADAT['cimzettId']);
+ $SET['filter'][] = 'cimzettTipus="'.$ADAT['cimzettTipus'].'"';
+ }
+ }
+
+ if ($ADAT['feladoId']!='' && in_array($ADAT['feladoTipus'],$AVAIL_TIPUSOK)) {
+ $b = false;
+ for ($i=0; $i<count( $ADAT['tagsagok'][$ADAT['feladoTipus']] ) ; $i++) {
+ if (intval($ADAT['tagsagok'][$ADAT['feladoTipus']][$i][$ADAT['feladoTipus'].'Id'])==$ADAT['feladoId']) {
+ $b = true;
+ break;
+ }
+ }
+ if ($b===true) {
+ $SET['filter'][] = 'feladoId='.intval($ADAT['feladoId']);
+ $SET['filter'][] = 'feladoTipus="'.$ADAT['feladoTipus'].'"';
+ }
+ }
+
+ if ($ADAT['szalId']!='') {
+ list($_feladoId,$_feladoTipus,$_cimzettId,$_cimzettTipus) = explode('_',$ADAT['szalId']);
+ if ($_cimzettId==0) { // mindenki
+ $SET['filter'][] = "(cimzettId=$_cimzettId AND cimzettTipus='$_cimzettTipus')";
+ } elseif (in_array($_cimzettTipus,$csoportTipus)) {
+ $SET['filter'][] = "(cimzettId=$_cimzettId AND cimzettTipus='$_cimzettTipus')";
+ } else {
+ $SET['filter'][] = "((feladoId=$_feladoId AND feladoTipus='$_feladoTipus' AND cimzettId=$_cimzettId AND cimzettTipus='$_cimzettTipus')
+ OR (cimzettId=$_feladoId AND cimzettTipus='$_feladoTipus' AND feladoId=$_cimzettId AND feladoTipus='$_cimzettTipus'))";
+ }
+ $SET['limits'] = array('limit'=>100,'pointer'=>0);
+ $SET['order'] = 'DESC';
+ } elseif ($ADAT['mId']!='') {
+ $SET['filter'][] = 'uzeno.mId='.intval($ADAT['mId']);
+ } elseif ($skin=='ajax') {
+ $SET['limits'] = array('limit'=>__UZENO_AJAXLIMIT,'pointer'=>0);
+ $SET['filterFlag'][] = '`uzenoFlagek`.`flag`!=1 OR flag IS NULL';
+ } else {
+ if (!is_numeric($ADAT['mutato']) || $ADAT['mutato']==0) $SET['limits'] = array('limit'=>__UZENO_DEFAULTLIMIT, 'pointer'=>0);
+ else $SET['limits'] = array('limit'=>__UZENO_DEFAULTLIMIT, 'mutato'=>$ADAT['mutato'], 'pointer'=>($ADAT['mutato']-1)*__UZENO_DEFAULTLIMIT);
+ }
+ $SET['tanev'] = $ADAT['tanev'];
+ $ADAT['limits'] = $SET['limits'];
+ $ADAT['uzenetek'] = getUzenoUzenetek($SET);
+ /* id */
+ // for($i=0; $i<count($ADAT['uzenetek']); $i++) $ADAT['uzenetIdk'][] = $ADAT['uzenetek'][$i]['mId'];
+ //--
+ for($i=0; $i<count($ADAT['uzenetek']); $i++) {
+ $_m = $ADAT['uzenetek'][$i];
+ if ($_m['feladoTipus'] == 'szulo') $_SZULOIDS[] = $_m['feladoId'];
+ }
+ $ADAT['tagsagok']['szulo'] = getSzulok(array('csakId'=>false,'result'=>'standard','szuloIds'=>$_SZULOIDS));
+ for($i=0; $i<count($ADAT['tagsagok']['szulo']); $i++) {
+ $SZULOIDS[] = $ADAT['tagsagok']['szulo'][$i]['szuloId'];
+ }
+ if (is_array($SZULOIDS) && count($SZULOIDS) > 0 && count($SZULOIDS)<50) $ADAT['szuloDiakjai'] = getSzulokDiakjai($SZULOIDS);
+ //
+ $SET['count'] = true;
+ $ADAT['limits']['max'] = getUzenoUzenetek($SET);
+
+ $TOOL['tanevSelect'] = array('tipus'=>'cella', 'paramName'=>'tanev', 'tanev'=>$ADAT['tanev'], 'post' => array('tanev'));
+ $TOOL['vissza'] = array('tipus'=>'vissza','paramName'=>'','icon'=>'inbox','post'=>array('page'=>'naplo','sub'=>'uzeno','f'=>'uzeno'));
+ if ($ADAT['szalId']!='' || $ADAT['mId']!='') {
+ $TOOL['vissza']['icon'] = 'arrow-left';
+ }
+
+ getToolParameters();
+
+} else {
+ $_SESSION['alert'][] = '::uzeno_is_not_installed';
+}
+?>
diff --git a/mayor-orig/www/policy/private/naplo/uzeno/uzeno.php b/mayor-orig/www/policy/private/naplo/uzeno/uzeno.php
new file mode 100644
index 00000000..12036771
--- /dev/null
+++ b/mayor-orig/www/policy/private/naplo/uzeno/uzeno.php
@@ -0,0 +1,12 @@
+<?php
+
+if (__UZENO_INSTALLED === true) {
+
+ global $ADAT;
+ if ( count($ADAT['uzenetek'])>0 )
+ putUzeno($ADAT);
+ if ($skin!='ajax' && $ADAT['feladoId']!==0)
+ putUzenoUzenet($ADAT);
+
+}
+?>
diff --git a/mayor-orig/www/policy/private/password/changePassword-pre.php b/mayor-orig/www/policy/private/password/changePassword-pre.php
new file mode 100644
index 00000000..08731581
--- /dev/null
+++ b/mayor-orig/www/policy/private/password/changePassword-pre.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ Module: base/password
+
+ Ez még teljesen kiforratlan!
+ Csak átmásoltam a public-ból, és elkezdtem átírni...
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ $toPolicy = readVariable($_POST['toPolicy'], 'enum', readVariable($_GET['toPolicy'], 'enum', _POLICY, $POLICIES), $POLICIES);
+
+ // Itt csak a private policy jelszavát lehet módosítani
+// $toPolicy = 'private';
+ $userAccount = readVariable($_REQUEST['userAccount'], 'emptystringnull');
+
+ // Ha saját jelszavát szeretné változtatni, akkor átirányítjuk oda
+ if ($userAccount == _USERACCOUNT) {
+ header('Location: '.location('index.php?policy=public&page=password&f=changePassword&toPolicy='.$toPolicy,array('lang','skin','sessionID')));
+ exit;
+ }
+
+ // Jogosultság ellenőrzés
+ if (
+ memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']) or
+ (memberOf($userAccount,'diák') and memberOf(_USERACCOUNT,'diakadmin'))
+ ) {
+
+ // Az elküldött név+jelszó ellenőrzése
+ if ($action == 'changePassword') {
+
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php')) {
+ require('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php');
+ }
+
+ $newPassword = readVariable($_POST['newPassword'], 'emptystringnull');
+ $verification = readVariable($_POST['verification'], 'emptystringnull');
+
+ if ($verification == '' or $newPassword == '') {
+ $_SESSION['alert'][] = 'message:empty_field';
+ } elseif ($verification != $newPassword) {
+ $_SESSION['alert'][] = 'message:pw_not_match';
+ } else {
+
+ if (changePassword($userAccount, $newPassword, $toPolicy)) {
+ // Módosítsuk a bejelentkezett user eltárolt jelszavát? - hagyjuk inkább... legalább látja, hogy változott valami...
+ // updateSessionPassword($userAccount, $toPolicy, $verification);
+ } else {
+ $_SESSION['alert'][] = 'message:pw_change_failed';
+ }
+
+ }
+
+ } // action
+
+ } else {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/password/changePassword.php b/mayor-orig/www/policy/private/password/changePassword.php
new file mode 100644
index 00000000..f95661e0
--- /dev/null
+++ b/mayor-orig/www/policy/private/password/changePassword.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $userAccount, $toPolicy;
+
+ putChangePasswordForm($userAccount, $toPolicy, true); // rögzített policy
+
+?>
diff --git a/mayor-orig/www/policy/private/portal/start.php b/mayor-orig/www/policy/private/portal/start.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/portal/start.php
diff --git a/mayor-orig/www/policy/private/session/accountInfo-pre.php b/mayor-orig/www/policy/private/session/accountInfo-pre.php
new file mode 100644
index 00000000..7bf243cc
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/accountInfo-pre.php
@@ -0,0 +1,51 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ $userAccount = readVariable($_GET['userAccount'],'userAccount');
+ $toPolicy = readVariable($_POST['toPolicy'], 'enum',
+ readVariable($_GET['toPolicy'], 'enum', _POLICY, $POLICIES),
+ $POLICIES
+ );
+
+
+ if ($userAccount == '') $userAccount = _USERACCOUNT;
+
+ // Milyen kategóriába sorolható a userAccount, illetve az aktuális user
+ $userCategories = getAccountCategories($userAccount, $toPolicy);
+ if (
+ _POLICY == 'private' &&
+ (
+ memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']) ||
+ (
+ memberOf(_USERACCOUNT,'diakadmin') &&
+ in_array('diak',$userCategories)
+ )
+ )
+ ) define('_ACCESS_AS', _ADMIN_ACCESS);
+ elseif ($userAccount == _USERACCOUNT) define('_ACCESS_AS', _SELF_ACCESS);
+ else define('_ACCESS_AS', _OTHER_ACCESS);
+
+ list($backendAttrs, $backendAttrDef) = getBackendAttrs('Account', $toPolicy);
+ if ($action == 'changeSettings') {
+
+ changeAccountInfo($userAccount, $toPolicy);
+
+ } elseif ($action=='userSettingsModify') {
+
+ $changeSkinTo = readVariable($_POST['changeSkinTo'],'enum',null,$SKINSSHOW);
+ setUserSettings($userAccount, $toPolicy, array('skin'=>$changeSkinTo));
+
+ }
+
+
+
+ $userInfo = getUserInfo($userAccount, $toPolicy); // keretrendszer attribútumai
+ $accountInfo = getAccountInfo($userAccount, $toPolicy); // backend attribútumai
+
+ $ADAT = getUserSettings($userAccount, $toPolicy);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/accountInfo.php b/mayor-orig/www/policy/private/session/accountInfo.php
new file mode 100644
index 00000000..7c4a3e0a
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/accountInfo.php
@@ -0,0 +1,15 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $accountInfo, $userInfo, $backendAttrDef, $toPolicy;
+ global $ADAT;
+
+ putUserSettingsForm($ADAT);
+
+ putAccountInfoForm($userInfo, $accountInfo, $backendAttrDef, $toPolicy);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/admin/knownNodes-pre.php b/mayor-orig/www/policy/private/session/admin/knownNodes-pre.php
new file mode 100644
index 00000000..d166babd
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/admin/knownNodes-pre.php
@@ -0,0 +1,39 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__USERADMIN) {
+ $_SESSION['alert'][] = "page:insufficient_access";
+ } else {
+
+ require('include/share/ssl/ssl.php');
+
+ $ADAT['my']['url'] = $url = substr($_SERVER["HTTP_REFERER"], 0, strpos($_SERVER["HTTP_REFERER"], 'index.php?'));
+ $ADAT['my']['dt'] = date('Y-m-d');
+
+ $RPC = new Interconnect();
+ $ADAT['my']['publicKey'] = $RPC->getPublicKey();
+ $ADAT['my']['nodeId'] = $RPC->getNodeId();
+
+
+ if ($action == 'rpcPing') {
+ $ADAT['nodeId'] = readVariable($_POST['nodeId'],'id');
+ $RPC->setRemoteHostByNodeId($ADAT['nodeId']);
+ $RPC->setRequestTarget('base');
+ $ADAT['pingResult'] = $RPC->sendRequest(array('func'=>'ping'));
+ $ADAT['nodeVersion'] = $ADAT['pingResult']['revision'];
+ // $RPC->setRequestTarget('controller');
+ } elseif ($action == 'getPublicDataByNodeId') {
+ $ADAT['nodeId'] = readVariable($_POST['nodeId'],'id');
+ $RPC->setRequestTarget('base');
+ $RPC->setRemoteHostByNodeId($ADAT['nodeId']);
+ } elseif ($action == 'removeNode') {
+ $ADAT['nodeId'] = readVariable($_POST['nodeId'],'id');
+ removeNodeFromLocalKeychain($ADAT['nodeId']);
+ }
+
+ $ADAT['nodes'] = getPublicDataFromLocalKeychain();
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/admin/knownNodes.php b/mayor-orig/www/policy/private/session/admin/knownNodes.php
new file mode 100644
index 00000000..e7a95d58
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/admin/knownNodes.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putGetNodeData();
+ putKnownNodes($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/admin/registration-pre.php b/mayor-orig/www/policy/private/session/admin/registration-pre.php
new file mode 100644
index 00000000..eabc8cfe
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/admin/registration-pre.php
@@ -0,0 +1,123 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (!__USERADMIN) {
+ $_SESSION['alert'][] = "page:insufficient_access";
+ } else {
+
+ require('include/share/ssl/ssl.php');
+
+ $ADAT['NODETIPUSOK'] = array('intézmény','backup','fejlesztői');
+ $ADAT['OSSZEG'] = array(0,1000,2000,3000,5000,10000);;
+ // regisztrációs űrlap elemei (portal-mayor-ból átemelve...
+ $ADAT['MEZOK'] = array(
+ 'nodeTipus' => array('kotelezo'=>true,'options'=>$ADAT['NODETIPUSOK']),
+ 'nev' => array('kotelezo'=>true),
+ 'rovidNev' => array(),
+ 'OMKod' => array(),
+ 'cimHelyseg' => array('kotelezo'=>true),
+ 'cimIrsz' => array('kotelezo'=>true),
+ 'cimKozteruletNev' => array('kotelezo'=>true),
+ 'cimKozteruletJelleg' => array('kotelezo'=>true),
+ 'cimHazszam' => array('kotelezo'=>true),
+ 'telefon' => array(),
+ 'fax' => array(),
+ 'email' => array(),
+ 'honlap' => array(),
+ 'url' => array(),
+ 'kapcsolatNev' => array('kotelezo'=>true),
+ 'kapcsolatEmail' => array('kotelezo'=>true),
+ 'kapcsolatTelefon' => array(),
+ // külön, más helyen jelennek meg
+ 'dij'=> array('kotelezo'=>true,'display'=>false,'type'=>'none'),
+ 'egyebTamogatas' => array('display'=>false,'type'=>'none'),
+ 'utemezes'=>array('display'=>false,'type'=>'none'),
+ // rejtett mezők - nem módosíthatók
+ 'regId'=>array('display'=>false,'type'=>'none'),
+ 'dt'=>array('display'=>false),
+ 'publicKey' => array('kotelezo'=>true,'display'=>false,'readonly'=>true,'type'=>'textarea'),
+ );
+ $ADAT['my']['url'] = $url = substr($_SERVER["HTTP_REFERER"], 0, strpos($_SERVER["HTTP_REFERER"], 'index.php?'));
+ $ADAT['my']['dt'] = date('Y-m-d');
+
+ $RPC = new Interconnect();
+ $ADAT['my']['publicKey'] = $RPC->getPublicKey();
+ $ADAT['my']['nodeId'] = $RPC->getNodeId();
+
+ // regisztráció
+ if ($action == 'sendRegRequest') {
+ unset($_POST['action']);
+ $_POST['publicRequest'] = 'registration';
+ $res = json_decode(sendPublicRequest($_POST), true);
+ foreach ($res['alert'] as $index => $aAdat) $_SESSION['alert'][] = implode(':',$aAdat);
+ if ($res['success'] === true) {
+ setNodeId($res['nodeId'], $ADAT['my']['publicKey']);
+ $ADAT['my']['nodeId'] = $res['nodeId'];
+ $RPC = new Interconnect(); // újracsatlakozás...
+ }
+ //dump($res);
+ } elseif ($action == 'checkOldRegByPublicKey') {
+ $DATA['publicKey'] = $ADAT['my']['publicKey'];
+ $DATA['publicRequest'] = 'getNodeIdByPublicKey';
+ // ha kellene ellenőrzés, akkar a választ a publicKey-el kódolva kellene küldeni...
+ $res = json_decode(sendPublicRequest($DATA), true);
+ foreach ($res['alert'] as $index => $aAdat) $_SESSION['alert'][] = implode(':',$aAdat);
+ if ($res['success'] === true) {
+ setNodeId($res['nodeId'], $ADAT['my']['publicKey']);
+ $ADAT['my']['nodeId'] = $res['nodeId'];
+ $RPC = new Interconnect(); // újracsatlakozás...
+ }
+ dump($res);
+ }
+
+ if ($ADAT['my']['nodeId'] != 0)
+ try {
+ $RPC->setRemoteHostByNodeId(''); // controller
+ $RPC->setRequestTarget('controller');
+ $ADAT['registrationStatus']['result'] = $RPC->sendRequest(array('func'=>'checkRegistration'));
+ //dump($ADAT['registrationStatus']['result'], $RPC->getStatus());
+ // Teszt: egy alap metódus lekérdezése...
+ //$RPC->setRequestTarget('base');
+ // $ADAT['controllerVersion'] = $RPC->sendRequest(array('func'=>'ping'));
+ // dump($ADAT['controllerVersion']);
+ // $RPC->setRequestTarget('controller');
+ if ($ADAT['registrationStatus']['result']['valid'] == 1) {
+ $ADAT['regAdat'] = $RPC->getRegistrationDataByNodeId($ADAT['my']['nodeId']);
+ //dump($ADAT['regAdat'], $RPC->getStatus());
+ }
+ } catch (Exception $e) {
+ dump("checkRegistration",$e);
+ }
+
+ if ($action == 'modRegAdat') {
+ $MOD = array();
+ foreach ($ADAT['regAdat']['nodeData'] as $key => $value) {
+ $newValue = readVariable($_POST[$key], 'string');
+ if (
+ !in_array($key, array('nodeId','regId','publicKey'))
+ && str_replace(array("\n","\r","\n\r"),"",$value) != str_replace(array("\n","\r","\n\r"),"",$newValue)
+ && !is_null($newValue)
+ ) $MOD[$key] = $newValue;
+ }
+ if (count($MOD) > 0) try {
+ // Interconnect-en keresztül!!
+ $ADAT['modRegData']['result'] = $RPC->sendRequest(
+ array('func'=>'modRegData', 'data'=>$MOD, 'regId'=>$ADAT['regAdat']['nodeData']['regId'])
+ );
+ // A megjelenítéshez módosítjuk a kirakandó adatokat helyben is.
+ if ($ADAT['modRegData']['result']['result'] === true) {
+ $_SESSION['alert'][] = 'info:success:A regisztrációs adatokat módosítottuk a regisztrációs szerveren.';
+ foreach ($MOD as $key => $val) $ADAT['regAdat']['nodeData'][$key] = $val;
+ } else {
+ $_SESSION['alert'][] = 'message:wrong_data:Az adatmódosítás nem sikerült a regisztrációs szerveren.';
+ }
+ } catch (Exception $e) {
+ dump("modRegData",$e);
+ }
+
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/admin/registration.php b/mayor-orig/www/policy/private/session/admin/registration.php
new file mode 100644
index 00000000..6ad2d8e7
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/admin/registration.php
@@ -0,0 +1,16 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ validRegisztracio($ADAT['registrationStatus']['result']['valid'], $ADAT['my']['nodeId']);
+ if ($ADAT['registrationStatus']['result']['valid'] != 1) {
+ putCheckOldReg($ADAT);
+ putRegisztracio($ADAT);
+ } else {
+ putRegisztracioMod($ADAT);
+ }
+ putPublicKey($ADAT['my']['publicKey']);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/createAccount-pre.php b/mayor-orig/www/policy/private/session/createAccount-pre.php
new file mode 100644
index 00000000..ce789482
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/createAccount-pre.php
@@ -0,0 +1,110 @@
+<?php
+/*
+ Module: base/session
+ createAccount => byAdmin esetén csak az érintet policy-n belül az adminGroup tagjainak lehet létrehozni új account-ot
+ createAccount => byRegistration esetén bárki regisztrálhat bármely policy-ből
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+ $DEFAULTS['userAccount'] = readVariable($_GET['userAccount'],'userAccount');
+ $DEFAULTS['userCn'] = readVariable($_GET['userCn'],'emptystringnull');
+ $DEFAULTS['userPassword'] = readVariable($_GET['userPassword'],'emptystringnull');
+ $DEFAULTS['mail'] = readVariable($_GET['email'],'emptystringnull');
+ $DEFAULTS['telephoneNumber'] = readVariable($_GET['tel'],'emptystringnull');
+ }
+
+ $toPolicy = readVariable($_POST['toPolicy'], 'enum', readVariable($_GET['toPolicy'], 'enum',_POLICY, $POLICIES), $POLICIES);
+
+ @$toPSF = $_REQUEST['toPSF'];
+
+ if ($toPolicy != _POLICY) require_once(_CONFIGDIR."/$toPolicy-conf.php");
+ if (
+ (
+ $AUTH[$toPolicy]['createAccount'] == 'byAdmin'
+ and memberOf(_USERACCOUNT, $AUTH['private']['adminGroup'])
+ )
+ or (
+ $AUTH[$toPolicy]['createAccount'] == 'byRegistration'
+ && _USERACCOUNT ==''
+ )
+ ) {
+ define('_ENABLE',true);
+ } else {
+ define('_ENABLE',false);
+ $_SESSION['alert'][] = 'page:insufficient_access:#1';
+ }
+
+ if (_ENABLE && $action == 'createAccount' && isset($_POST['new'])) {
+
+ $file = $_FILES['file']['tmp_name'];
+ if ($file != '' && $file != 'none' && file_exists($file)) {
+
+ $uidfp=fopen($file, 'r');
+ while ($sor=fgets($uidfp, 4096)) {
+ list($userCn, $userAccount, $userPassword, $category, $studyId, $container)=explode(" ",chop($sor));
+ // A biztonság kedvéért ez a html form validációval egyező legyen
+ $userCn = readVariable($userCn,'html');
+ $userAccount = readvariable($userAccount,'html');
+ $studyId = readVariable($studyId,'number');
+ $category = readVariable($category, 'enum','',$AUTH[$toPolicy]['categories']);
+ $container = readVariable($container,'enum','',$AUTH[$toPolicy][$AUTH[$toPolicy]['backend'].'Containers']);
+ $policyAccountAttrs = array();
+ if (is_array($AUTH[$toPolicy]['accountAttrs'])) foreach ($AUTH[$toPolicy]['accountAttrs'] as $attr) {
+ if (isset($$attr) and $$attr != '') $policyAccountAttrs[$attr] = readVariable($$attr, 'string');
+ }
+ if (createAccount($userCn, $userAccount, $userPassword, $toPolicy, array('container'=> $container, 'category' => $category, 'policyAttrs' => $policyAccountAttrs)) ===false) {
+ $_SESSION['alert'][] = "info:user_create_failure: cn.$userCn|account.$userAccount|policy.$toPolicy|category.$category|container.$container";
+ }
+ }
+ fclose($uidfp);
+
+ } else {
+
+ // kötelező paraméterek
+ $userCn = readVariable($_POST['userCn'],'html');
+ $userAccount = readvariable($_POST['userAccount'],'html');
+ $studyId = readVariable($_POST['studyId'],'number');
+ $userPassword = $_POST['userPassword'];
+ $verification = $_POST['verification'];
+
+ // opcionális paraméterek
+ $category = readVariable($_POST['category'], 'enum','',$AUTH[$toPolicy]['categories']);
+ $container = readVariable($_POST['container'],'enum','',$AUTH[$toPolicy][$AUTH[$toPolicy]['backend'].'Containers']);
+
+ $policyAccountAttrs = array();
+ if (is_array($AUTH[$toPolicy]['accountAttrs'])) foreach ($AUTH[$toPolicy]['accountAttrs'] as $attr) {
+ if (isset($_POST[$attr]) and $_POST[$attr] != '') $policyAccountAttrs[$attr] = readVariable($_POST[$attr], 'string'); // ???
+ }
+
+ if ($userCn == '' or $userAccount == '' or $userPassword == '' or $verification == '') {
+ // Csak policy váltás történt
+ // $_SESSION['alert'][] = 'message:empty_field';
+ } elseif ($userPassword != $verification) {
+ $_SESSION['alert'][] = 'message:pw_not_match';
+ } else {
+ if (createAccount($userCn, $userAccount, $userPassword, $toPolicy,
+ array('container'=> $container, 'category' => $category, 'policyAttrs' => $policyAccountAttrs))) {
+ if (
+ _POLICY == 'private'
+ && memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])
+ ) header('Location: '.location("index.php?page=session&f=accountInfo&userAccount=$userAccount&toPolicy=$toPolicy"));
+ elseif (_POLICY == 'public') {
+ $toPSF = ($toPSF=='') ? 'auth::login' : $toPSF;
+ header(
+ 'Location: '.location("index.php?page=auth&f=login&userAccount=$userAccount&policy=public&toPolicy=$toPolicy&toPSF=$toPSF", array('skin','lang','sessionID'))
+ );
+ } else {
+ $toPSF = ($toPSF=='') ? 'session::accountInfo' : $toPSF;
+ header(
+ 'Location: '.location("index.php?page=auth&f=login&userAccount=$userAccount&policy=public&toPolicy=$toPolicy&toPSF=$toPSF", array('skin','lang','sessionID'))
+ );
+ }
+ }
+ }
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/createAccount.php b/mayor-orig/www/policy/private/session/createAccount.php
new file mode 100644
index 00000000..94c4b703
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/createAccount.php
@@ -0,0 +1,12 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $toPolicy,$DEFAULTS;
+
+ putCreateAccountForm($toPolicy, $DEFAULTS);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/createGroup-pre.php b/mayor-orig/www/policy/private/session/createGroup-pre.php
new file mode 100644
index 00000000..8b65ce02
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/createGroup-pre.php
@@ -0,0 +1,49 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (_POLICY == 'private' && memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+ } else {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ }
+ $toPolicy = readVariable($_POST['toPolicy'], 'enum', _POLICY, $POLICIES);
+
+ if ($action == 'createGroup') {
+
+ $file = $_FILES['file']['tmp_name'];
+ if ($file != '' and $file != 'none' and file_exists($file)) {
+/* $uidfp=fopen($file, 'r');
+ while ($sor=fgets($uidfp, 4096)) {
+ list($groupCn, $groupDesc, $category)=explode(" ",chop($sor));
+ !!!!!!!! createGroup($groupCn, $groupDesc, $category, $toPolicy);
+ }
+ fclose($uidfp);
+*/
+ } else {
+
+ $groupCn = readVariable($_POST['groupCn'],'html');
+ $groupDesc = readVariable($_POST['groupDesc'],'html');
+ $category = readVariable($_POST['category'],'enum',null,$AUTH[_POLICY]['categories']);
+ $container = readVariable($_POST['container'],'enum','',$AUTH[$toPolicy][$AUTH[$toPolicy]['backend'].'Containers']);
+ $policyGroupAttrs = array();
+ if (is_array($AUTH[$toPolicy]['groupAttrs'])) foreach ($AUTH[$toPolicy]['groupAttrs'] as $attr) {
+ if (isset($_POST[$attr]) and $_POST[$attr] != '') $policyGroupAttrs[$attr] = readVariable($_POST[$attr], 'string'); // ???
+ }
+
+ if ($groupCn == '' || $groupDesc == '' || $category == '') {
+ // Csak policy váltás
+ //$_SESSION['alert'][] = 'message:empty_field'.":$groupCn:$groupDesc:$category";
+ } else {
+ if (createGroup($groupCn, $groupDesc, $toPolicy, array('container'=> $container, 'policyAttrs' => $policyGroupAttrs))) {
+ header('Location: '.location("index.php?page=session&f=groupInfo&groupCn=$groupCn&toPolicy=$toPolicy"));
+ }
+ }
+ }
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/createGroup.php b/mayor-orig/www/policy/private/session/createGroup.php
new file mode 100644
index 00000000..a914ceaf
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/createGroup.php
@@ -0,0 +1,12 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $toPolicy;
+
+ putCreateGroupForm($toPolicy);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/download-pre.php b/mayor-orig/www/policy/private/session/download-pre.php
new file mode 100644
index 00000000..6b396143
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/download-pre.php
@@ -0,0 +1,66 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+ if (!((defined('_POLICY') && _POLICY=='public')
+ || (defined('__TITKARSAG') && __TITKARSAG===true)
+ || (defined('__TANAR') && __TANAR===true)
+ || (defined('__NAPLOADMIN') && __NAPLOADMIN===true)
+ || (defined('__DIAK') && __DIAK===true)
+ )) {
+ return false;
+ }
+
+ // $file - csak a file neve, útvonal nem lehet benne
+ if (isset($_POST['file']) && $_POST['file'] != '') $file = basename($_POST['file']);
+ elseif (isset($_GET['file']) && $_GET['file'] != '') $file = basename($_GET['file']);
+
+ if (!isset($file)) $_SESSION['alert'][] = 'page:empty_fields:file';
+ else {
+ // $dir - betű, szám, -, _, és / lehet benne (elején csak betű vagy szám)
+ $dir = readVariable($_POST['dir'], 'path', readVariable($_GET['dir'], 'path'));
+
+ // Az útvonal beállítása
+ $path = _DOWNLOADDIR.'/'._POLICY;
+ if (isset($dir)) $path .= '/'.$dir;
+ $path .= '/'.$file;
+
+ // Jogosultságok ellenőzése dir alapján
+ if (__DIAK===true) {
+ if (strstr($dir,'naplo/face/')===false) return false;
+ }
+ // Titkarsag, Tanar, Naploadmin letoltheti, amit szeretne
+
+ // Létezik-e a file
+ if (!file_exists($path)) $_SESSION['alert'][] = 'page:file_not_found:'.substr($path, strlen(_DOWNLOADDIR.'/'._POLICY.'/')).':'.$path;
+ else {
+
+ $ADAT['path'] = $path;
+ $ADAT['dir'] = $dir;
+ $ADAT['file'] = $file;
+ $ADAT['ext'] = strtolower(substr(strrchr($file,"."),1));
+ $ADAT['size'] = filesize($path);
+ $ADAT['mime'] = readVariable($_POST['mimetype'], 'enum', readVariable($_GET['mimetype'], 'enum', null, $allowedMimeTypes), $allowedMimeTypes);
+
+ // MiME típus megállapítása
+ if (!isset($ADAT['mime'])) {
+ if ($allowedExtensions[$ADAT['ext']] != '') $ADAT['mime'] = $allowedExtensions[$ADAT['ext']];
+ else {
+ if (function_exists('mime_content_type')) {
+ $ADAT['mime'] = mime_content_type($ADAT['path']);
+ } elseif (function_exists('finfo_file')) {
+ $finfo = finfo_open(FILEINFO_MIME);
+ $ADAT['mime'] = finfo_file($finfo, $ADAT['path']);
+ finfo_close($finfo);
+ }
+ if ($ADAT['mime'] == '') $ADAT['mime'] = "application/force-download";
+ }
+ }
+ if (in_array($ADAT['mime'],array('image/gif','image/png','image/jpeg','image/jpeg'))) $ADAT['pure']=true;
+ // letöltés
+ if (isset($_GET['download'])) passFile($ADAT);
+
+ }
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/private/session/download.php b/mayor-orig/www/policy/private/session/download.php
new file mode 100644
index 00000000..12d907a9
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/download.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if (is_array($ADAT)) putDownloadForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/facebookConnect-pre.php b/mayor-orig/www/policy/private/session/facebookConnect-pre.php
new file mode 100644
index 00000000..b0988ae5
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/facebookConnect-pre.php
@@ -0,0 +1,91 @@
+<?php
+
+ if (__FBCONNECT_ENABLED !== true ) return false;
+
+ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+ return false;
+ } else {
+ /* facebook login start */
+ require_once ('include/share/facebook/autoload.php');
+ $fb = new Facebook\Facebook(array(
+ 'app_id' => __FB_APP_ID,
+ 'app_secret' => __FB_APP_SECRET,
+ 'cookie' => true,
+ 'status' => true,
+ 'default_graph_version' => 'v2.5',
+ ));
+ $oAuth2Client = $fb->getOAuth2Client();
+
+ $helper = $fb->getJavaScriptHelper();
+ try {
+ $accessToken = $helper->getAccessToken();
+ // convert
+ if ($accessToken !='' && !$accessToken->isLongLived()) {
+ try {
+ $accessToken = $oAuth2Client->getLongLivedAccessToken($accessToken);
+ } catch (Facebook\Exceptions\FacebookSDKException $e) {
+ $_SESSION['alert'][] = "info::Error getting long-lived access token: " . $helper->getMessage() . "";
+ }
+ }
+ } catch(Facebook\Exceptions\FacebookResponseException $e) {
+ // When Graph returns an error
+ $_SESSION['alert'][] = 'info::Graph returned an error: ' . $e->getMessage();
+ } catch(Facebook\Exceptions\FacebookSDKException $e) {
+ // When validation fails or other local issues
+ $_SESSION['alert'][] = 'info::Facebook SDK returned an error: ' . $e->getMessage();
+ }
+ if (isset($accessToken)) {
+ $_SESSION['facebook_access_token'] = (string) $accessToken;
+ $_SESSION['facebook_access_token_object'] = $accessToken;
+ $response = $fb->get('/me?fields=id,name,email',$accessToken);
+ $userNode = $response->getGraphUser();
+ $ADAT['fbUserId'] = $userNode->getField('id');
+ $ADAT['fbUserCn'] = $userNode->getField('name');
+ $ADAT['fbUserEmail'] = $userNode->getField('email');
+ }
+ }
+ if ($action=='revokeFbAuth') {
+ fbConnectRevoke($ADAT['fbUserId']);
+ } elseif ($action=='grantFbAuth') {
+ fbConnectGrant($ADAT);
+ }
+
+ $ADAT['fbUserIdStatusz'] = checkFbConnectAssoc($ADAT);
+
+ function checkFbConnectAssoc($ADAT) {
+ if ($ADAT['fbUserId']=='') return 0;
+
+ $q = "SELECT count(*) AS db FROM facebookConnect where userAccount='%s' AND policy='%s' AND fbUserId='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId']);
+ $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v));
+ if ($db==1) return 1; // 'OK';
+
+ $q = "SELECT count(*) AS db FROM facebookConnect where userAccount='%s' AND policy='%s' AND fbUserId!='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId']);
+ $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v));
+ if ($db==1) return 2; // 'masik fbUserId van megadva';
+
+ $q = "SELECT count(*) AS db FROM facebookConnect where userAccount!='%s' AND policy='%s' AND fbUserId='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId']);
+ $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v));
+ if ($db==1) return 3; // 'masik userAccount van hozzárendelve ehhez a fb azonosítóhoz';
+
+ return false;
+ }
+
+ function fbConnectRevoke($fbUserId) {
+ if ($fbUserId=='') return 0;
+
+ $q = "DELETE FROM facebookConnect where userAccount='%s' AND policy='%s' AND fbUserId='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$fbUserId);
+ return db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','values'=>$v));
+ }
+ function fbConnectGrant($ADAT) {
+ if ($ADAT['fbUserId']=='') return 0;
+
+ $q = "INSERT IGNORE INTO facebookConnect (userAccount,policy,fbUserId,fbUserCn,fbUserEmail,studyId) VALUES ('%s','%s','%s','%s','%s','%s')";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['fbUserId'],'fbUserCn'=>_USERCN.' ('.$ADAT['fbUserCn'].')','fbUserEmail'=>$ADAT['fbUserEmail'],'studyId'=>_STUDYID);
+ return db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'insert','values'=>$v));
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/session/facebookConnect.php b/mayor-orig/www/policy/private/session/facebookConnect.php
new file mode 100644
index 00000000..e125c680
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/facebookConnect.php
@@ -0,0 +1,7 @@
+<?php
+
+ global $ADAT;
+
+ putFacebookConnectStatusz($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/session/googleapi-pre.php b/mayor-orig/www/policy/private/session/googleapi-pre.php
new file mode 100644
index 00000000..49438dcc
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/googleapi-pre.php
@@ -0,0 +1,100 @@
+<?php
+
+ if (__GOOGLEAPI_ENABLED !== true ) return false;
+
+ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
+ return false;
+ } else {
+ require_once ('include/share/googleapi/autoload.php');
+
+ if ($action=='googleapiRevoke') {
+ googleapiRevoke();
+ unset($_SESSION['googleapi_id_token']);
+ unset($_SESSION['googleapi_object']);
+ } elseif ($action=='googleapiGrant') {
+ // itt nem áll rendelkezésre adat! googleapiGrant($ADAT);
+ // a get id_token résznél kötjük össze a usert és irányítjuk tovább
+ }
+ //$ADAT['googleapiStatus'] = googleapiCheckAssoc($ADAT);
+ if ($_SESSION['googleapi_id_token']!='') {
+ // van azonosított user
+ // a sessionben rendelkezésre is áll az objektum (googleapi_object),
+ // de itt most lekérdezzük a google szervertől újra!
+ $redirect_uri = _BASE_URL.'/index.php';
+ $client = new Google_Client();
+ $client->setClientId(__GOOGLEAPI_CLIENT_ID);
+ $client->setClientSecret(__GOOGLEAPI_CLIENT_SECRET);
+ $client->setScopes('email');
+ // $client->setAccessToken($_SESSION['googleapi_id_token']);
+ try {
+ $ADAT['payload'] = $payload = $client->verifyIdToken($_SESSION['googleapi_id_token']);
+ $ADAT['googleapiStatusz'] = 1;
+ } catch(Exception $e) {
+ $_SESSION['alert'][] = 'info::googleapi SDK hiba: ' . $e->getMessage();
+ $ADAT['googleapiStatusz'] = 2;
+ }
+ } elseif ($_GET['id_token']!='') {
+ $redirect_uri = _BASE_URL.'/index.php';
+ $client = new Google_Client();
+ //$client->setAuthConfig($oauth_credentials);
+ $client->setClientId(__GOOGLEAPI_CLIENT_ID);
+ $client->setClientSecret(__GOOGLEAPI_CLIENT_SECRET);
+// $client->setRedirectUri($redirect_uri);
+ $client->setScopes('email');
+ try {
+ $payload = $client->verifyIdToken($_GET['id_token']);
+ } catch(Exception $e) {
+ $_SESSION['alert'][] = 'info::googleapi SDK hiba: ' . $e->getMessage();
+ }
+ if (isset($payload['sub'])) { // subject
+ $_SESSION['google_access_token'] = (string) $payload;
+ $_SESSION['google_access_token_object'] = $payload;
+ // mayor auth start
+ $accountInformation=array();
+ $toPolicy = 'public';
+ $ADAT['googleSub'] = $payload['sub'];
+// $ADAT['fbUserId'] = $userNode->getField('id');
+ $ADAT['googleUserCn'] = $payload['name'];
+ $ADAT['googleUserEmail'] = $payload['email'];
+ googleapiGrant($ADAT);
+ /* mayor auth stop */
+ } else {
+ $_SESSION['alert'][] = 'info:nem érvényes accessToken';
+ }
+ }
+
+ }
+ function googleapiCheckAssoc($ADAT) {
+ if ($ADAT['googleSub']=='') return 0;
+
+ $q = "SELECT count(*) AS db FROM googleConnect where userAccount='%s' AND policy='%s' AND googleSub='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['googleSub']);
+ $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v));
+ if ($db==1) return 1; // 'OK';
+
+ $q = "SELECT count(*) AS db FROM googleConnect where userAccount='%s' AND policy='%s' AND googleSub!='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'fbUserId'=>$ADAT['googleSub']);
+ $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v));
+ if ($db==1) return 2; // 'masik googleSub van megadva';
+
+ $q = "SELECT count(*) AS db FROM googleConnect where userAccount!='%s' AND policy='%s' AND googleSub='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'googleSub'=>$ADAT['googleSub']);
+ $db = db_query($q,array('fv'=>'facebookConnectCheck','modul'=>'login','result'=>'value','values'=>$v));
+ if ($db==1) return 3; // 'masik userAccount van hozzárendelve ehhez a googleSub azonosítóhoz';
+
+ return false;
+ }
+
+ function googleapiRevoke() {
+ $q = "DELETE FROM googleConnect where userAccount='%s' AND policy='%s'";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY);
+ return db_query($q,array('fv'=>'googleapiRevoke','modul'=>'login','values'=>$v));
+ }
+ function googleapiGrant($ADAT) {
+ if ($ADAT['googleSub']=='') return 0;
+ $q = "INSERT IGNORE INTO googleConnect (userAccount,policy,googleSub,googleUserCn,googleUserEmail,studyId) VALUES ('%s','%s','%s','%s','%s','%s')";
+ $v = array('userAccount'=>_USERACCOUNT,'policy'=>_POLICY,'googleSub'=>$ADAT['googleSub'],_USERACCOUNT.' ('.$ADAT['googleUserCn'].')',$ADAT['googleUserEmail'],_STUDYID);
+ return db_query($q,array('debug'=>true,'fv'=>'googleapiGrant','modul'=>'login','result'=>'insert','values'=>$v));
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/session/googleapi.php b/mayor-orig/www/policy/private/session/googleapi.php
new file mode 100644
index 00000000..fe079bed
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/googleapi.php
@@ -0,0 +1,28 @@
+<?php
+
+ global $ADAT;
+
+// putFacebookConnectStatusz($ADAT);
+
+// echo '<div class="g-signin2" data-onsuccess="onSignIn"></div>';
+
+// echo '<h1>Tesztüzem</h1>';
+
+// formBegin();
+// echo '<input type="text" name="action" value="googleapiCheck" >';
+// echo '<button type="button" id="googleapiCheckBtn" class="api"><span class="icon-googleplus"></span> Ellenőrzés</button>';
+// formEnd();
+
+// formBegin();
+// echo '<input type="hidden" name="action" value="googleGrant" >';
+// echo '<button type="button" id="googleLoginBtn" class="api"><span class="icon-googleplus"></span> Összeköt</button>';
+// formEnd();
+
+// formBegin();
+// echo '<input type="text" name="action" value="googleRevoke" >';
+// echo '<button type="submit" class="api"><span class="icon-googleplus"></span> Visszavon</button>';
+// formEnd();
+
+ putGoogleapiStatusz($ADAT);
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/session/groupInfo-pre.php b/mayor-orig/www/policy/private/session/groupInfo-pre.php
new file mode 100644
index 00000000..97864ffa
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/groupInfo-pre.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+
+ $toPolicy = readVariable($_POST['toPolicy'], 'enum',
+ readVariable($_GET['toPolicy'], 'enum', _POLICY, $POLICIES),
+ $POLICIES
+ );
+
+ $groupCn = readVariable($_GET['groupCn'],'regreplace',null,array("[^a-zA-Z0-9\ \.\,_:;űáéúőóüöíŰÁÉÚŐÓÜÖÍ\-]"));
+
+// egyelőre csak private-ból lehet valaki admin...
+// if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) define('_ACCESS_AS', _ADMIN_ACCESS);
+
+ if (
+ _POLICY == 'private' &&
+ (
+ memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']) ||
+ (
+ memberOf(_USERACCOUNT,'diakadmin') &&
+ in_array('diak',$userCategories)
+ )
+ )
+ ) define('_ACCESS_AS', _ADMIN_ACCESS);
+ else define('_ACCESS_AS', _OTHER_ACCESS);
+
+ list($backendAttrs,$backendAttrDef) = getBackendAttrs('Group', $toPolicy);
+
+ if ($action == 'changeSettings') {
+
+ changeGroupInfo($groupCn, $toPolicy);
+
+ }
+ $groupInfo = getGroupInfo($groupCn, $toPolicy); // keretrendszer attribútumai
+ // backend attribútumai
+
+ if ($groupInfo===false) $_SESSION['alert'][] = 'page::';
+
+?>
diff --git a/mayor-orig/www/policy/private/session/groupInfo.php b/mayor-orig/www/policy/private/session/groupInfo.php
new file mode 100644
index 00000000..6dda377c
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/groupInfo.php
@@ -0,0 +1,12 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $groupCn, $groupInfo, $backendAttrDef, $toPolicy;
+
+ putGroupInfoForm($groupCn, $groupInfo, $backendAttrDef, $toPolicy);
+
+?>
diff --git a/mayor-orig/www/policy/private/session/search/searchAccount-pre.php b/mayor-orig/www/policy/private/session/search/searchAccount-pre.php
new file mode 100644
index 00000000..2108f631
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/search/searchAccount-pre.php
@@ -0,0 +1,28 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ $toPolicy = readVariable($_POST['toPolicy'], 'enum', _POLICY, $POLICIES);
+
+ define('__ADMIN', memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']));
+ define('__DIAKADMIN', memberOf(_USERACCOUNT, 'diakadmin'));
+
+ // valójában így sem jó, mert a lekérdezett backend-től kellene függővé teni a keresés mezőket...
+ if ($AUTH[_POLICY]['backend'] == 'ad') $searchAttrList = array('userCn', 'userAccount', 'uidNumber', 'studyId');
+ else $searchAttrList = array('userCn', 'userAccount', 'studyId');
+
+ if ($action == 'searchAccount') {
+ $attr = readVariable($_POST['attr'], 'enum', 'userCn', $searchAttrList);
+ $pattern = readVariable($_POST['pattern'], 'string');
+ $searchResult = searchAccount($attr, $pattern, $searchAttrList, $toPolicy);
+ } elseif ($action == 'deleteAccount' and __ADMIN === true) {
+ $userAccount = readVariable($_POST['userAccount'], 'string');
+ deleteAccount($userAccount, $toPolicy);
+ } else {
+ echo $action;
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/search/searchAccount.php b/mayor-orig/www/policy/private/session/search/searchAccount.php
new file mode 100644
index 00000000..8cfe1d75
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/search/searchAccount.php
@@ -0,0 +1,16 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $attr, $pattern, $searchResult, $searchAttrList, $toPolicy;
+
+ putSearchAccountForm($attr, $pattern, $searchAttrList, $toPolicy);
+
+ if (is_array($searchResult)) {
+ putSearchResultBox($searchResult, $toPolicy);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/search/searchGroup-pre.php b/mayor-orig/www/policy/private/session/search/searchGroup-pre.php
new file mode 100644
index 00000000..94deeba2
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/search/searchGroup-pre.php
@@ -0,0 +1,25 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ $toPolicy = readVariable($_POST['toPolicy'], 'enum', _POLICY, $POLICIES);
+
+ define('__ADMIN', memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']));
+ define('__DIAKADMIN', memberOf(_USERACCOUNT, 'diakadmin'));
+
+ $searchAttrs = array('groupCn', 'groupDesc');
+ if ($action == 'searchGroup') {
+ $attr = readVariable($_POST['attr'], 'enum', 'groupCn', $searchAttrs);
+ $pattern = readVariable($_POST['pattern'],'html');
+ $searchResult = searchGroup($attr, $pattern, $searchAttrs, $toPolicy);
+ } elseif (__ADMIN ===true && $action == 'deleteGroup') {
+ $groupCn = readVariable($_POST['groupCn'], 'html'); // nem biztos hogy id - bizos nem id, hanem a csoport neve
+ deleteGroup($groupCn, $toPolicy);
+ } else {
+ echo $action;
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/search/searchGroup.php b/mayor-orig/www/policy/private/session/search/searchGroup.php
new file mode 100644
index 00000000..c36d0ef6
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/search/searchGroup.php
@@ -0,0 +1,16 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $attr, $pattern, $searchAttrs, $searchResult, $toPolicy;
+
+ putSearchGroupForm($attr, $pattern, $searchAttrs, $toPolicy);
+
+ if (is_array($searchResult)) {
+ putSearchResultBox($searchResult, $toPolicy);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/private/session/session-pre.php b/mayor-orig/www/policy/private/session/session-pre.php
new file mode 100644
index 00000000..d1c65349
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/session-pre.php
@@ -0,0 +1,5 @@
+<?php
+
+ header('Location: '.location('index.php?page=session&sub=search&f=searchAccount'));
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/private/session/session.php b/mayor-orig/www/policy/private/session/session.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/session.php
diff --git a/mayor-orig/www/policy/private/session/sessionAdmin-pre.php b/mayor-orig/www/policy/private/session/sessionAdmin-pre.php
new file mode 100644
index 00000000..08b55781
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/sessionAdmin-pre.php
@@ -0,0 +1,24 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (_POLICY != 'private' || !memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+ $_SESSION['alert'][] = 'page:insufficient_access';
+ } else {
+
+ if ($action == 'deleteSession') {
+
+ $policy = readVariable($_POST['delPolicy'], 'enum', null, $POLICIES);
+ $userAccount = readVariable($_POST['delSessionID'], 'string', null);
+ if (isset($policy) && isset($userAccount)) {
+ deleteSession($userAccount, $policy);
+ } else { $_SESSION['alert'][] = 'message:wrong_data:userAccount,policy:'.$policy.':'.$userAccount; }
+
+ }
+ $ADAT['session'] = getSessions();
+//echo '<pre>'; var_dump($ADAT); echo '</pre>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/policy/private/session/sessionAdmin.php b/mayor-orig/www/policy/private/session/sessionAdmin.php
new file mode 100644
index 00000000..d1398e4f
--- /dev/null
+++ b/mayor-orig/www/policy/private/session/sessionAdmin.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ putSessionList($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/public/auth/forgotten-pre.php b/mayor-orig/www/policy/public/auth/forgotten-pre.php
new file mode 100644
index 00000000..76ffaebb
--- /dev/null
+++ b/mayor-orig/www/policy/public/auth/forgotten-pre.php
@@ -0,0 +1,92 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/share/net/phpmailer.php');
+
+ $ADAT['userAccount'] = readVariable($_POST['userAccount'], 'string', readVariable($_GET['userAccount'], 'string', null));
+ $ADAT['toPolicy'] = readVariable($_POST['toPolicy'], 'enum', readVariable($_GET['toPolicy'], 'enum', 'parent', array('parent','private')), array('parent','private'));
+ $ADAT['mail'] = readVariable($_POST['mail'], 'string', null);
+
+ if ($AUTH[$ADAT['toPolicy']]['enablePasswordReset']!==true) {
+ //$_SESSION['alert'][] = 'info:pw_reset_disabled';
+ $ADAT['forgotDisabled'] = true;
+ }
+
+/* Under dev
+ foreach(array('private','parent','public') as $_policy) {
+ if ($ADAT['toPolicy']==$_policy && $AUTH[$_policy]['enablePasswordReset']!==true) $ADAT['forgotDisabled'] = true;
+ }
+*/
+ if ($action == 'sendResetPasswordMail') {
+
+ // TODO - ez a kettő összevonható, kukac tuti nincs a felhasználónévben
+ // TODO - megviszgálhatnánk, hogy milyen authentikációs levelen van a user
+ // TODO - mármint, ahol megváltoztatható egyáltalán a jelszó...
+ require_once('include/modules/session/search/searchAccount.php');
+ if (isset($ADAT['userAccount'])) {
+ $ADAT['accounts'] = searchAccount('userAccount', $ADAT['userAccount'], $searchAttrs = array('userCn','mail','userAccount'), $ADAT['toPolicy']);
+ for ($i=0; $i<$ADAT['accounts']['count']; $i++) {
+ if ($ADAT['userAccount'] == $ADAT['accounts'][$i]['userAccount'][0] && $ADAT['accounts'][$i]['mail'][0] != '') {
+ $ADAT['account'] = array(
+ 'policy' => $ADAT['toPolicy'],
+ 'userAccount' => $ADAT['accounts'][$i]['userAccount'][0],
+ 'userCn' => $ADAT['accounts'][$i]['userCn'][0],
+ 'mail' => current(explode(' ',str_replace(';',' ',trim($ADAT['accounts'][$i]['mail'][0])))),
+ );
+ break;
+ }
+ }
+ } elseif (isset($ADAT['mail'])) {
+ $ADAT['accounts'] = searchAccount('mail', $ADAT['mail'], $searchAttrs = array('userCn','mail','userAccount'), $ADAT['toPolicy']);
+ for ($i=0; $i<$ADAT['accounts']['count']; $i++) {
+ if ($ADAT['mail'] == $ADAT['accounts'][$i]['mail'][0] && $ADAT['accounts'][$i]['mail'][0] != '') {
+ $ADAT['account'] = array(
+ 'policy' => $ADAT['toPolicy'],
+ 'userAccount' => $ADAT['accounts'][$i]['userAccount'][0],
+ 'userCn' => $ADAT['accounts'][$i]['userCn'][0],
+ 'mail' => current(explode(' ',str_replace(';',' ',trim($ADAT['accounts'][$i]['mail'][0])))),
+ );
+ break;
+ }
+ }
+ }
+
+ // Recovery
+ if (is_array($ADAT['account'])) {
+ $recoveryRequest = generatePasswordRecoveryRequest($ADAT['account']);
+ if ($recoveryRequest!=false) {
+ $ADAT['account']['url'] = $recoveryRequest;
+ // levél generálása és kiküldése
+ $body = '<html><head><title></title></head><body>
+<p>Az alábbi linkre kattintva magadhatod az új MaYoR-jelszavadat.</p>
+<p>Ha nem te küldted az igénylést, tekintsd a levelet tárgytalannak!</p>
+<p class="link">'.$recoveryRequest.'</p>
+<p>'.__SUPPORT_EMAIL_NAME.' ('.__SUPPORT_EMAIL_ADDRESS.')</p>
+</body></html>';
+ /* MAIL */
+ if (__EMAIL_ENABLED===true) {
+ $mail = new PHPMailer();
+ $mail->CharSet = 'UTF-8';
+ $mail->SetFrom(__SUPPORT_EMAIL_ADDRESS,__SUPPORT_EMAIL_NAME);
+ $mail->AddAddress($ADAT['account']['mail'], $ADAT['account']['userCn']);
+ $mail->Subject = "[MaYoR] Jelszóemlékeztető";
+ $mail->MsgHTML($body);
+ $mail->Send();
+ } else {
+ //dump(__EMAIL_ENABLED);
+ //dump(__SUPPORT_EMAIL_ADDRESS);
+ //dump(__SUPPORT_EMAIL_NAME);
+ }
+ /* -- */
+// $_SESSION['alert'][] = 'info:success';
+ } else {
+// $_SESSION['alert'][] = 'info:success'; // nem üzenünk hibát
+ }
+ } else {
+// $_SESSION['alert'][] = 'message:wrong_data:Nincs ilyen azonosító, vagy nincs rögzítve e-mail cím az azonosítóhoz! ('.$ADAT['userAccount'].')';
+ }
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/public/auth/forgotten.php b/mayor-orig/www/policy/public/auth/forgotten.php
new file mode 100644
index 00000000..bd751c83
--- /dev/null
+++ b/mayor-orig/www/policy/public/auth/forgotten.php
@@ -0,0 +1,16 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT,$action;
+
+ if ($ADAT['forgotDisabled']===true)
+ putForgotDisabled();
+ elseif (!is_array($ADAT['account']) && $action=='') {
+ putForgotPasswordForm($ADAT);
+ putForgotUserAccountForm($ADAT);
+ } else {
+ putForgotThankyou();
+ }
+ putBackToLogin($ADAT);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/policy/public/auth/login-pre.php b/mayor-orig/www/policy/public/auth/login-pre.php
new file mode 100644
index 00000000..c524751f
--- /dev/null
+++ b/mayor-orig/www/policy/public/auth/login-pre.php
@@ -0,0 +1,86 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ if (defined('_ALLOW_SULIX_SSO') && _ALLOW_SULIX_SSO===true) { // kompatibilitási okokból
+ $toPolicy = readVariable($_REQUEST['toPolicy'], 'enum', 'private', $POLICIES);
+ } else {
+ $toPolicy = 'private'; // force
+ }
+ $toSkin = readVariable($_POST['toSkin'], 'enum', readVariable($_GET['toSkin'], 'enum', null, $SKINSSHOW), $SKINSSHOW);
+ @list($toPage,$toSub,$toF) = readVariable(explode(':',$_REQUEST['toPSF']), 'strictstring');
+ $toPSF = "$toPage:$toSub:$toF";
+
+// Ha már az adott sessionID-vel belépett az adott policy-ra, akkor ne lépjen be újra
+// if ($sessionID != '' and validUser($sessionID, $toPolicy)) {
+// header('Location: '.location("index.php?policy=$toPolicy&page=$toPage&sub=$toSub&f=$toF&sessionID=$sessionID", array('alert')));
+// die();
+// }
+
+ if ($toPolicy=='private' && isset($_SESSION['portalLoggedUsername']) && defined('_ALLOW_SULIX_SSO') && _ALLOW_SULIX_SSO===true) {
+ $action='autologin';
+ //A SuliX-osok kérésére ezt sajnos kihagyjuk :( session_regenerate_id(true);
+ }
+
+ // Az elküldött név+jelszó ellenőrzése
+ if ($action == 'login' || $action=='autologin') {
+
+ // A toPolicy hibaüzenetei
+ if (file_exists('include/alert/'.$lang.'/'.$AUTH[$toPolicy]['backend'].'.php')) {
+ require('include/alert/'.$lang.'/'.$AUTH[$toPolicy]['backend'].'.php');
+ } elseif (file_exists('include/alert/'._DEFAULT_LANG.'/'.$AUTH[$toPolicy]['backend'].'.php')) {
+ require('include/alert/'._DEFAULT_LANG.'/'.$AUTH[$toPolicy]['backend'].'.php');
+ }
+ // Autentikáció - alapok
+ if (file_exists('include/share/auth/base.php')) {
+ require('include/share/auth/base.php');
+ }
+ // Autentikáció - toPolicy
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/auth/login.php')) {
+ require('include/backend/'.$AUTH[$toPolicy]['backend'].'/auth/login.php');
+ }
+
+ // lejart session-ok torlese
+ require('include/share/session/close.php');
+ closeOldAndIdleSessions();
+
+ if ($action=='autologin' && defined('_ALLOW_SULIX_SSO') && _ALLOW_SULIX_SSO===true) {
+ $userPassword = readVariable($_SESSION['portalLoggedPassword'], 'string');
+ //$userAccount = readVariable($_SESSION['portalLoggedUsername'], 'regexp', null, array("^([a-z]|[A-Z]|[0-9]| |\.|,|_|[űáéúőóüöíŰÁÉÚŐÓÜÖÍäÄ]|-|@)*$"));
+ $userAccount = readVariable($_SESSION['portalLoggedUsername'], 'userAccount', null);
+ } else {
+ $userPassword = readVariable($_POST['userPassword'], 'string');
+ //$userAccount = readVariable($_POST['userAccount'], 'regexp', null, array("^([a-z]|[A-Z]|[0-9]| |\.|,|_|[űáéúőóüöíŰÁÉÚŐÓÜÖÍäÄ]|-|@)*$"));
+ $userAccount = readVariable($_SESSION['portalLoggedUsername'], 'userAccount', null);
+ }
+
+ if (defined('_BOLONDOS') && _BOLONDOS===true) $userAccount = visszafele($userAccount);
+
+ $accountInformation = array('account' => $userAccount, 'password' => $userPassword, 'policy' => $toPolicy, 'skin'=>$toSkin);
+ if ($sessionID != '') $accountInformation['sessionID'] = $sessionID;
+
+ if ($userAccount != '' and $userPassword != '') {
+
+ $result = userAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy); // ??? toPolicy benne van az AccountInformation-ben!!! Ldap backend only?
+ logLogin($toPolicy, $userAccount, $result);
+ if ($result === _AUTH_SUCCESS) {
+ $sessionID = newSession($accountInformation, $toPolicy);
+ if ($toSkin == '') $toSkin = $skin;
+ header('Location: '.location("index.php?page=$toPage&sub=$toSub&f=$toF&sessionID=$sessionID&policy=$toPolicy&lang=$lang&skin=$toSkin", array('alertOLD')));
+ } elseif ($result === _AUTH_EXPIRED) {
+ $_SESSION['alert'][] = 'message:force_pw_update';
+ header('Location: '.location("index.php?policy=public&page=password&f=changeMyPassword&userAccount=".$userAccount."&toPolicy=$toPolicy&skin=$toSkin", array('alertOLD')));
+ } elseif ($result >= _AUTH_FAILURE) {
+ // sikertelen azonosítás - a hibaüzenetet a függvény generálja
+ //$NOF = @getFailedLoginCount($toPolicy,$userAccount);
+ //if ($NOF>1) sleep(min($NOF,10,rand(1,10))); // harden brute force attempts
+ } else {
+ // Ilyen csak hibás függvényműködés esetén lehet:
+ $_SESSION['alert'][] = "message:default:hibás visszatérési érték:userAuthentication:($result)";
+ }
+ } else {
+ $_SESSION['alert'][] = 'message:empty_field';
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/policy/public/auth/login.php b/mayor-orig/www/policy/public/auth/login.php
new file mode 100644
index 00000000..c86bf24b
--- /dev/null
+++ b/mayor-orig/www/policy/public/auth/login.php
@@ -0,0 +1,17 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $userAccount, $userPassword, $toPolicy, $toPSF, $toSkin, $salt;
+ global $ADAT;
+
+ if (defined('_USERACCOUNT') && (!is_string(_USERACCOUNT) || _USERACCOUNT=='') )
+ putLoginForm($userAccount, $toPolicy, $toPSF, $toSkin, $salt);
+ else
+ putAlreadyLoggedIn();
+
+ if ($_SESSION['authStatus'] == _AUTH_FAILURE) {
+ putElfelejtettJelszoForm($ADAT);
+ }
+
+?>
diff --git a/mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php b/mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php
new file mode 100644
index 00000000..53328c7c
--- /dev/null
+++ b/mayor-orig/www/policy/public/naplo/rpc/rpc-pre.php
@@ -0,0 +1,48 @@
+<?php
+
+ require_once('include/share/ssl/ssl.php');
+ /* Class: Interconnect AES */
+
+ /* remote procedure call remote controller */
+ $rpcDetails = $_GET['detail'];
+ $initOMKod = readVariable($_GET['init'],'strictstring',0);
+
+ try
+ {
+ $RPC = new Interconnect();
+ $RPC->setRemoteOMKod($initOMKod);
+ $REQUEST = $RPC->processRequest($rpcDetails);
+ $func = $REQUEST->func;
+ }
+ catch (Exception $e)
+ {
+ $func='';
+ $DATA = array('error'=>$e->getMessage());
+ }
+ // processing
+
+ // MASTER BOSS -> portal/rpc/rpc, ez itt ELAVULT
+ $DATA = array();
+ if (isset($func) && $func!='') {
+ switch ($func) {
+ case 'getVersion':
+ case 'ping':
+ $DATA = $RPC->prepareReply(
+ array('func'=>'getVersion','response_revision'=>_MAYORREV,'pong')
+ );
+ $RPC->setResponse($DATA);
+ break;
+ case 'checkRegistration':
+ $otherPublicKey = getSslPublicKeyByOMKod($REQUEST->OMKOD);
+ if ($otherPublicKey===false) $valid=0;
+ elseif ($REQUEST->publicKey == $otherPublicKey) $valid=1;
+ else $valid=2;
+ $DATA = $RPC->prepareReply(
+ array('func'=>$func,'response'=>serialize($REQUEST),'valid'=>$valid)
+ );
+ $RPC->setResponse($DATA);
+ default:
+ break;
+ }
+ }
+?>
diff --git a/mayor-orig/www/policy/public/naplo/rpc/rpc.php b/mayor-orig/www/policy/public/naplo/rpc/rpc.php
new file mode 100644
index 00000000..be00b0a5
--- /dev/null
+++ b/mayor-orig/www/policy/public/naplo/rpc/rpc.php
@@ -0,0 +1,7 @@
+<?php
+
+ global $DATA;
+
+ if (count($DATA)>0) putResponse($DATA); // reply
+
+?>
diff --git a/mayor-orig/www/policy/public/password/changeMyPassword-pre.php b/mayor-orig/www/policy/public/password/changeMyPassword-pre.php
new file mode 100644
index 00000000..f7c68879
--- /dev/null
+++ b/mayor-orig/www/policy/public/password/changeMyPassword-pre.php
@@ -0,0 +1,69 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ $toPolicy = readVariable($_REQUEST['toPolicy'], 'enum', 'private', $POLICIES);
+ $userAccount = readVariable($_REQUEST['userAccount'], 'emptystringnull', (defined('_USERACCOUNT'))?_USERACCOUNT:null);
+
+ if (file_exists(_CONFIGDIR."/$toPolicy-conf.php")) {
+ require_once(_CONFIGDIR."/$toPolicy-conf.php");
+ }
+
+ if ($AUTH[$toPolicy]['enableSelfPasswordChange']) {
+
+ // Az elküldött név+jelszó ellenőrzése
+ if ($action == 'changePassword') {
+
+
+ require_once('include/modules/auth/base/login.php');
+
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/base.php')) {
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/base.php');
+ }
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php')) {
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php');
+ }
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/auth/login.php')) {
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/auth/login.php');
+ }
+
+ $userPassword = readVariable($_POST['userPassword'], 'emptystringnull');
+ $newPassword = readVariable($_POST['newPassword'], 'emptystringnull');
+ $verification = readVariable($_POST['verification'], 'emptystringnull');
+
+ if ($verification == '' or $newPassword == '') {
+ $_SESSION['alert'][] = 'message:empty_field';
+ } elseif ($verification != $newPassword) {
+ $_SESSION['alert'][] = 'message:pw_not_match';
+ } elseif ($userPassword == $newPassword) {
+ $_SESSION['alert'][] = 'message:pw_not_changed';
+ } else {
+
+ $result = userAuthentication($userAccount, $userPassword, $accountInformation, $toPolicy);
+ if ($result >= _AUTH_FAILURE) {
+ $_SESSION['alert'][] = 'message:auth_failure'; // megj: a hibaüzenetet a userAuthentication egyébként generálja. kell ez?
+ } else {
+
+ if (changeMyPassword($userAccount, $userPassword, $newPassword, $toPolicy)) {
+// Újra be kell jelentkezni mindenképp...
+// updateSessionPassword($userAccount, $toPolicy, $verification);
+// if (validUser($sessionID,$policy))
+// header('Location: '.location("index.php?policy=$toPolicy&sessionID=".$sessionID, array('alert')));
+// else
+ header('Location: '.location("index.php?page=auth&f=login&toPolicy=$toPolicy", array('alert')));
+ } else {
+ $_SESSION['alert'][] = 'message:pw_change_failed';
+ }
+ }
+
+ }
+
+ } // action
+
+ } else {
+
+ $_SESSION['alert'][] = 'page:pw_change_disabled';
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/public/password/changeMyPassword.php b/mayor-orig/www/policy/public/password/changeMyPassword.php
new file mode 100644
index 00000000..29ebbf10
--- /dev/null
+++ b/mayor-orig/www/policy/public/password/changeMyPassword.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $userAccount, $toPolicy;
+
+ putChangePasswordForm($userAccount, $toPolicy);
+
+?>
diff --git a/mayor-orig/www/policy/public/password/resetPassword-pre.php b/mayor-orig/www/policy/public/password/resetPassword-pre.php
new file mode 100644
index 00000000..3590f27a
--- /dev/null
+++ b/mayor-orig/www/policy/public/password/resetPassword-pre.php
@@ -0,0 +1,68 @@
+<?php
+ if (_RIGHTS_OK !== true) die();
+
+ $selector = readVariable($_POST['selector'], 'string', readVariable($_GET['selector'], 'hexa', null));
+ $validator = readVariable($_POST['validator'], 'string', readVariable($_GET['validator'], 'hexa', null));
+
+ if ($validator!='') {
+ $q = "SELECT * FROM accountRecovery WHERE selector = '%s' AND expires >= NOW()";
+ $r = db_query($q, array('debug'=>false,'fv'=>'getPasswordRecoveryRequest','modul'=>'login','result'=>'record','values'=>array($selector)));
+ }
+ if (!is_array($r)) {
+ $_SESSION['alert']['page'] = 'message:wrong_data:A jelszó-helyreállítási kérelem nem létezik, vagy lejárt!';
+ } else {
+
+ $calc = hash('sha256', hex2bin($validator));
+ if (hash_equals($calc, $r['token'])) {
+ // The reset token is valid. Authenticate the user.
+ //dump($r);
+ $ADAT = $r;
+ $ADAT['validator'] = $validator;
+
+ $toPolicy = $r['policy'];
+ $userAccount = $r['userAccount'];
+
+ if (file_exists(_CONFIGDIR."/$toPolicy-conf.php")) {
+ require_once(_CONFIGDIR."/$toPolicy-conf.php");
+ }
+
+ if ($AUTH[$toPolicy]['enablePasswordReset']) {
+
+ if ($action == 'resetPassword') {
+
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/base.php')) {
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/base.php');
+ }
+ if (file_exists('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php')) {
+ require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/password/changePassword.php');
+ }
+
+ $newPassword = readVariable($_POST['newPassword'], 'emptystringnull');
+ $verification = readVariable($_POST['verification'], 'emptystringnull');
+
+ if ($verification == '' or $newPassword == '') {
+ $_SESSION['alert'][] = 'message:empty_field';
+ } elseif ($verification != $newPassword) {
+ $_SESSION['alert'][] = 'message:pw_not_match';
+ } else {
+ if (changePassword($userAccount, $newPassword, $toPolicy)) {
+ $q = "DELETE FROM accountRecovery WHERE userAccount = '%s'";
+ db_query($q, array('debug'=>false,'fv'=>'getPasswordRecoveryRequest','modul'=>'login','result'=>'delete','values'=>array($userAccount)));
+ header('Location: '.location("index.php?page=auth&f=login&toPolicy=$toPolicy", array('alert')));
+ } else {
+ $_SESSION['alert'][] = 'message:pw_change_failed';
+ }
+ }
+ }
+
+ } else {
+ $_SESSION['alert'][] = 'page:pw_reset_disabled';
+ }
+
+ } else {
+ $_SESSION['alert']['page'] = 'message:insufficient_access:A jelszó-helyreállítási kérelem nem érvényes!';
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/policy/public/password/resetPassword.php b/mayor-orig/www/policy/public/password/resetPassword.php
new file mode 100644
index 00000000..eaefcc8c
--- /dev/null
+++ b/mayor-orig/www/policy/public/password/resetPassword.php
@@ -0,0 +1,9 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $ADAT;
+
+ if ($ADAT['userAccount']!='') putResetPasswordForm($ADAT);
+
+?>
diff --git a/mayor-orig/www/policy/public/portal/rpc/rpc-pre.php b/mayor-orig/www/policy/public/portal/rpc/rpc-pre.php
new file mode 100644
index 00000000..edd9a592
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/rpc/rpc-pre.php
@@ -0,0 +1,104 @@
+<?php
+/*
+ MOVED!!
+ - mayor-base/public/rpc/rpc
+ - mayor-portal-mayor/rpc/controller/rpc
+ ===========================================
+
+ require_once('include/share/ssl/ssl.php');
+
+ // MOVE
+ function getRegisztraltIskolaAdat($nodeId) {
+ if ($nodeId=='') {
+ $q = "SELECT * FROM regisztracio";
+ $r = db_query($q, array('modul'=>'portal','result'=>'indexed'));
+ } else {
+ $q = "SELECT * FROM regisztracio WHERE nodeId='%s'";
+ $v = array($nodeId);
+ $r = db_query($q, array('modul'=>'portal','result'=>'record','values'=>$v));
+ }
+ return $r;
+ }
+
+ function getPublicDataByNodeIdFromReg($nodeId) {
+ $q = "SELECT * FROM regisztracio WHERE nodeId='%s'";
+ $v = array($nodeId);
+ $r = db_query($q, array('debug'=>false,'fv'=>'getPublicDataByNodeIdFromReg','modul'=>'portal','result'=>'record','values'=>$v));
+ return $r;
+ }
+ function modRegData($nodeId, $regId, $DATA) {
+ $q = "UPDATE regisztracio SET ".implode(',',array_fill(0, count($DATA), "%s='%s'"))." WHERE regId=%u AND nodeId=%u";
+ foreach ($DATA as $key=>$val) {
+ $v[] = $key; $v[] = $val;
+ }
+ $v[] = $regId; $v[] = $nodeId;
+ $r = db_query($q, array('debug'=>true,'fv'=>'modRegData','modul'=>'portal','values'=>$v));
+ if ($r) return true;
+ else return $q;
+ }
+
+ /* Class: Interconnect AES * /
+
+ /* remote procedure call remote controller * /
+ try
+ {
+ /* rights.php:
+ $RPC = new Interconnect();
+ $RPC->setRemoteHostByNodeId($senderNodeId);
+ $REQUEST = $RPC->processRequest();
+ * /
+ $REQUEST = $RPC->getIncomingRequest();
+ $func = $REQUEST['func'];
+
+ }
+ catch (Exception $e)
+ {
+ $func='';
+ $DATA = array('error'=>$e->getMessage());
+ }
+ // processing
+ $DATA = array();
+ if (isset($func) && $func!='') {
+ switch ($func) {
+ case 'getVersion':
+ case 'ping':
+ $DATA = array('func'=>'getVersion','response_revision'=>_MAYORREV,'pong');
+ $RPC->setResponse($DATA);
+ break;
+ case 'checkRegistration':
+ $DATA = getPublicDataByNodeIdFromReg($senderNodeId);
+ if (is_array($DATA)) $valid = 1; else $valid = 0;
+ $DATA = array('func'=>$func,'valid'=>$valid,'status'=>$RPC->getStatus(),'get'=>$_GET,'post'=>$_POST);
+ $RPC->setResponse($DATA);
+ break;
+ case 'getPublicDataByNodeId':
+ $DATA = getPublicDataByNodeIdFromReg($REQUEST['nodeId']);
+ $RPC->setResponse($DATA);
+ break;
+ case 'modRegData':
+ $DATA['result'] = modRegData($senderNodeId,$REQUEST['regId'],$REQUEST['data']);
+ $DATA['func'] = 'modRegData';
+ $RPC->setResponse($DATA);
+ break;
+ case 'getIskola':
+ $iskolaAdat = getRegisztraltIskolaAdat($REQUEST['otherNodeId']);
+ $DATA = array('func'=>$func,'iskolaAdat'=>$iskolaAdat);
+ $RPC->setResponse($DATA);
+ break;
+ case 'getRegistrationData':
+ $DATA = getPublicDataByNodeIdFromReg($REQUEST['nodeId']);
+ break;
+ case 'refreshRegistration':
+ break;
+ case 'getPublicData':
+ $iskolaAdat = getRegisztraltIskolaAdat();
+ $DATA = array('func'=>$func,'szomszedok'=>$iskolaAdat);
+ $RPC->setResponse($DATA);
+ break;
+ default:
+ break;
+ }
+
+ }
+*/
+?>
diff --git a/mayor-orig/www/policy/public/portal/start.php b/mayor-orig/www/policy/public/portal/start.php
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/policy/public/portal/start.php
diff --git a/mayor-orig/www/policy/public/rpc/naplo/rpc-pre.php b/mayor-orig/www/policy/public/rpc/naplo/rpc-pre.php
new file mode 100644
index 00000000..aba7552f
--- /dev/null
+++ b/mayor-orig/www/policy/public/rpc/naplo/rpc-pre.php
@@ -0,0 +1,70 @@
+<?php
+/*
+ module: mayor-base
+
+ A alap metódusok RPC kezelője
+
+*/
+ require_once('include/share/ssl/ssl.php');
+ require_once('include/modules/naplo/share/rpc.php');
+
+ /*
+ rights.php:
+ $_RPC['senderNodeId']
+ $RPC = new Interconnect();
+ $RPC->setRemoteHostByNodeId($senderNodeId);
+ $RPC->processRequest();
+ $_RPC['request'] = $RPC->getIncomingRequest();
+ */
+ $func = $_RPC['request']['func'];
+ // processing
+ $DATA = array();
+ if (isset($func) && $func!='') {
+ switch ($func) {
+ // itt a currens verziót kellene visszaadni
+ case 'getVersion':
+ case 'ping':
+ $DATA = array('func'=>'getVersion','revision'=>_MAYORREV,'pong');
+ $RPC->setResponse($DATA);
+ break;
+ case 'getPrivilegeInfo':
+ $nodeId = $_RPC['senderNodeId'];
+ $userAccount = readVariable($_RPC['request']['userAccount'], 'string');
+ $OMKod = readVariable($_RPC['request']['OMKod'],'numeric unsigned');
+ $priv = explode(',',getRPCPrivilegeByNUO($nodeId, $userAccount, $OMKod));
+ if (is_array($priv) && in_array('Jogosultság',$priv)) {
+ $DATA = array('func'=>'getPrivilegeInfo','result'=>'success','priv'=>$priv);
+ } else {
+ $DATA = array('func'=>'getPrivilegeInfo','result'=>'failure','alert'=>'message:insufficient_access');
+ }
+ $RPC->setResponse($DATA);
+ break;
+ case 'getTantargyfelosztasStat':
+ $nodeId = $_RPC['senderNodeId'];
+ $userAccount = readVariable($_RPC['request']['userAccount'], 'string');
+ $OMKod = readVariable($_RPC['request']['OMKod'],'numeric unsigned'); // a naplo/base/rights már felhasználta az __INTEZMENY beállításnál
+ $priv = explode(',',getRPCPrivilegeByNUO($nodeId, $userAccount, $OMKod));
+ if (is_array($priv) && in_array('Tantárgyfelosztás',$priv)) {
+ // Az __INTEZMENY és __TANEV beállítását a naplo/rights.php már elvégezte...
+
+ require_once('include/modules/naplo/share/intezmenyek.php');
+ require_once('include/modules/naplo/share/osztaly.php');
+ require_once('include/modules/naplo/share/targy.php');
+ require_once('include/modules/naplo/share/tankor.php');
+ require_once('include/modules/naplo/stat/tantargyFelosztas.php');
+ global $ADAT; $ADAT = array();
+ $IA = getTantargyfelosztasStat();
+
+ $DATA = array('func'=>'getTantargyfelosztasStat','result'=>'success','tanev'=>__TANEV,'intezmeny'=>__INTEZMENY, 'IA'=>$IA);
+ } else {
+ $DATA = array('func'=>'getTantargyfelosztasStat','result'=>'failure','alert'=>'message:insufficient_access');
+ }
+ $RPC->setResponse($DATA);
+ break;
+ default:
+ $DATA['result'] = 'ismeretlen függvény: '.$func;
+ break;
+ }
+
+ }
+?>
diff --git a/mayor-orig/www/policy/public/rpc/rpc-pre.php b/mayor-orig/www/policy/public/rpc/rpc-pre.php
new file mode 100644
index 00000000..30336e9e
--- /dev/null
+++ b/mayor-orig/www/policy/public/rpc/rpc-pre.php
@@ -0,0 +1,43 @@
+<?php
+/*
+ module: mayor-base
+
+ A alap metódusok RPC kezelője
+
+*/
+ require_once('include/share/ssl/ssl.php');
+
+ try
+ {
+ /*
+ rights.php:
+ $RPC = new Interconnect();
+ $RPC->setRemoteHostByNodeId($senderNodeId);
+ $REQUEST = $RPC->processRequest();
+ */
+ $REQUEST = $RPC->getIncomingRequest();
+ $func = $REQUEST['func'];
+
+ }
+ catch (Exception $e)
+ {
+ $func='';
+ $DATA = array('error'=>$e->getMessage());
+ }
+ // processing
+ $DATA = array();
+ if (isset($func) && $func!='') {
+ switch ($func) {
+ // itt a currens verziót kellene visszaadni
+ case 'getVersion':
+ case 'ping':
+ $DATA = array('func'=>'getVersion','revision'=>_MAYORREV,'pong');
+ $RPC->setResponse($DATA);
+ break;
+ default:
+ $DATA['result'] = 'ismeretlen függvény: '.$func;
+ break;
+ }
+
+ }
+?>
diff --git a/mayor-orig/www/policy/public/session/logout-pre.php b/mayor-orig/www/policy/public/session/logout-pre.php
new file mode 100644
index 00000000..ac344fee
--- /dev/null
+++ b/mayor-orig/www/policy/public/session/logout-pre.php
@@ -0,0 +1,28 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require('include/share/session/close.php');
+
+ closeSession();
+ closeOldAndIdleSessions();
+ if (defined('_ALLOW_SULIX_SSO') && _ALLOW_SULIX_SSO===true) {
+ session_start();
+ unset($_SESSION['portalLoggedPassword']);
+ unset($_SESSION['szuloDiakIdOk']);
+ session_destroy();
+ header('Location: /');
+ } else {
+// session_start();
+// unset($_SESSION['szuloDiakIdOk']);
+// session_destroy();
+ session_start();
+ session_unset();
+ session_destroy();
+ session_write_close();
+ setcookie(session_name(),'',0,'/');
+ session_regenerate_id(true);
+ header('Location: index.php');
+ }
+
+?>
diff --git a/mayor-orig/www/policy/public/session/set-pre.php b/mayor-orig/www/policy/public/session/set-pre.php
new file mode 100644
index 00000000..d3e77776
--- /dev/null
+++ b/mayor-orig/www/policy/public/session/set-pre.php
@@ -0,0 +1,10 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ global $_JSON;
+ $layout = readVariable($_GET['layout'],'id',0);
+ $_SESSION['pageLayout'] = $layout;
+ $_JSON['success'] = true;
+ $_JSON['pageLayout'] = $layout;
+?>
diff --git a/mayor-orig/www/skin/ajax/base/html/alert.phtml b/mayor-orig/www/skin/ajax/base/html/alert.phtml
new file mode 100644
index 00000000..e81b75ed
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/base/html/alert.phtml
@@ -0,0 +1,25 @@
+<?php
+/*
+ Module: base
+
+ js_alert($alert)
+ html_alert($alert)
+
+ AJAX változat: csak akkor írja ki az alert-et, ha van $_GET['showAlert'] be van állítva...
+*/
+
+// ------------------------------------------------------------------- //
+// Az $alert két részből áll: típus:hiba //
+// típus: alert : javaScript alert //
+// message : hibaüzenet után az oldal betöltődik //
+// page : hibaüzenet után az oldal nem töltődik be //
+// info : információs üzenet //
+// ------------------------------------------------------------------- //
+ function html_alert($alert='') {
+
+ $_SESSION['alert'] = array();
+ return true;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/ajax/base/html/base.phtml b/mayor-orig/www/skin/ajax/base/html/base.phtml
new file mode 100644
index 00000000..cfa12036
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/base/html/base.phtml
@@ -0,0 +1,101 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+
+ /* Egy JSON példa
+ echo '{ "action" : [ '
+ .'{ "func" : "alert", "param" : [ "Helló", "World" ] }, '
+ .'{ "func" : "update", "param" : [ { "id" : "updateForm", "content" : "Helló Update" } ]}, '
+ .'{ "func" : "hide", "param" : [ "settings" ] },'
+ .'{ "func" : "show", "param" : [ "updateWindow" ] },'
+ .'{ "func" : "remove", "param" : [ "head" ] },'
+ .'{ "func" : "removeClass", "param" : [ { "id" : "jegy-1", "class" : "jegy1" } ] },'
+ .'{}],'
+ .' "name" : "Violet", "occupation" : "character" }';
+ */
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ global $_JSON;
+
+ if ($_JSON['result'] === false) @header("HTTP/1.1 400 Bad Request");
+ else @header("HTTP/1.1 200 OK");
+
+ @header('Content-type: application/json; charset=utf-8');
+ @header("Etag: ".__SALTVALUE.'-'.__SALTNAME.'-'.$_SESSION['mayorToken']); // ajax request esetén innen tudható a _SALTVALUE
+
+ _httpHeader();
+
+ if ( (!is_array($_JSON)?false:json_encode($_JSON)) === false) {
+ ob_start();
+ define('_UNIQUE', uniqid());
+ //echo '<div id="alertMsg'._UNIQUE.'"></div>';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ $_JSON['html'] = ob_get_contents();
+ ob_end_clean();
+ }
+ if (is_array($_SESSION['alert']) && count($_SESSION['alert'])>0) {
+ for($i=0; $i<count($_SESSION['alert']); $i++) {
+
+ /* állítsuk össze a hibaüzenetet */
+ $_E = explode(':', $_SESSION['alert'][$i]);
+ $_JSON['alert'][] = $_E;
+ }
+ $_JSON['alertHTML'] = _html_base_alert($_SESSION['alert']); // UJ
+ }
+ echo json_encode($_JSON);
+ $_SESSION['alert'] = array();
+
+}
+
+function _html_base_alert($alert) {
+ if (is_array($alert))
+ foreach($alert as $a) {
+ $param = array();
+ $tmp = explode(':', $a);
+ $aType = readVariable($tmp[0], 'enum', 'message', array('message','info','page')); $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = htmlspecialchars($tmp[$p]);
+ $pstr = '';
+ // preparing $msg
+ if (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '')
+ $msg = $ALERT_MSG['default'].' (<span class="alertParam">'.$aType.':'.$aCode.')</span>';
+ else $msg = $ALERT_MSG[$aCode];
+
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",'<span class="alertParam">'.($param[$i]).'</span>',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= '<span class="alertParam">'.($param[$i]).'</span>,';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ }
+ $msg = '<span>'.$title.':</span> ' . $msg;
+ $showPage .= '<div class="'.$class.'">'.str_replace('***','<br/>',$msg).'</div>'."\n";
+ }
+
+ return $showPage;
+
+}
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/css/naplo.css b/mayor-orig/www/skin/ajax/module-naplo/css/naplo.css
new file mode 100644
index 00000000..f8b97d3c
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/css/naplo.css
@@ -0,0 +1,4 @@
+
+div.beirasAdatok { font-size:large; margin:auto; width:90%; text-align: center; }
+div.beirasAdatok a { text-decoration: none; color: inherit; }
+div.beirasAdatok a:hover { text-decoration: none; color: #777777; }
diff --git a/mayor-orig/www/skin/ajax/module-naplo/css/orarend/orarend.css b/mayor-orig/www/skin/ajax/module-naplo/css/orarend/orarend.css
new file mode 100644
index 00000000..222664e5
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/css/orarend/orarend.css
@@ -0,0 +1,68 @@
+
+table.orarend {
+ font-size:10px;
+}
+table.orarend tr th {
+ background-color: #eeeeee;
+ color: #999999;
+ border-width: 0px 0px 0px 0px;
+ width:1%;
+ height:30px;
+ font-weight: normal;
+ border-color: #ddd;
+ border-width: 0px 0px 1px 0px;
+ border-style: solid;
+
+}
+table.orarend thead tr th {
+ background-color: #889999;
+ color: white;
+ height:1em;
+
+}
+table.orarend thead tr th.spec {
+ background-color: red;
+}
+
+table.orarend tr td {
+ text-align: center;
+ border-color: #ddd;
+ border-width: 0px 0px 1px 0px;
+ border-style: solid;
+ width:18%;
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál {}
+ div.plusz {
+ background-color: #eeccee;
+ }
+ div.elmarad {
+ color: white;
+ background-color: black;
+ }
+ div.elmarad_máskor {
+ color: white;
+ background-color: #555555;
+ }
+ div.normál_máskor {
+ color: white;
+ background-color: #776699;
+ }
+ div.felügyelet {
+ background-color: #bbaac0;
+ }
+ div.helyettesítés {
+ background-color: #ccffcc;
+ }
+ div.összevonás {
+ background-color: #aabbc0;
+ }
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml
new file mode 100644
index 00000000..9f32e72e
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/admin/tanevek.phtml
@@ -0,0 +1,9 @@
+<?php
+
+ function putUjTanevForm() {}
+
+ function putTanevSzemeszterekForm() {}
+
+ function putTanevAktivalForm() {}
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/base.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/base.phtml
new file mode 100644
index 00000000..c3fe9d59
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/base.phtml
@@ -0,0 +1,6 @@
+<?php
+
+ // including base
+ include('skin/classic/module-naplo/html/share/face.phtml');
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml
new file mode 100644
index 00000000..94c12c57
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/bejegyzesek/info.phtml
@@ -0,0 +1,11 @@
+<?php
+
+ function putBejegyzesInfo($ADAT) {
+ echo '<div>';
+ echo _BEJEGYZESEK_SZAMA.': ';
+ if ($ADAT['db'] > 0) echo '<span style="color: red;">'.$ADAT['db'].'</span>';
+ else echo $ADAT['db'];
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml
new file mode 100644
index 00000000..1511b957
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/haladasi/haladasi.phtml
@@ -0,0 +1,162 @@
+<?php
+/*
+ function putHaladasiBejegyzesek($data, $tankorId, $osztalyId, $tanarId, $title, $diakId, $order, $ADAT)
+ |- function putTankorNap($dt, $dNap, $doga, $order)
+ |-function putHaladasiDolgozat($dt,$doga)
+ |-function putTankorOra($dOra)
+ function putHetesForm($ADAT)
+*/
+##
+# Haladási naplo megjelenítése
+##
+
+ function putHaladasiBejegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ $title = $ADAT['title'];
+ $data = $ADAT['haladasi'];
+ $order = $ADAT['order'];
+ $tankorId = $ADAT['tankorId'];
+ $osztalyId = $ADAT['osztalyId'];
+ $tanarId = $ADAT['tanarId'];
+ $diakId = $ADAT['diakId'];
+
+ echo '<input type="hidden" name="tankorId" id="haladformTankorId" value="" />'."\n";
+
+ echo '<table class="haladasiNaplo" align="center" cellpadding="1" cellspacing="1">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo '</th>';
+ echo '<th>'._TANAR.'</th><th>'._ORASZAM.'</th><th>'._TANANYAG.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr><th colspan="6">';
+// if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz" value="<<" tabindex="5" />'."\n";
+ echo ' '._IDOSZAK.': '.str_replace('-','.',_SHOW_DAYS_FROM) . '. - '. str_replace('-','.', _SHOW_DAYS_TO) .'. '."\n";
+// if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz" value=">>" tabindex="6" />'."\n";
+ echo '</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ $toTime = strtotime(_SHOW_DAYS_TO);
+ $fromTime = strtotime(_SHOW_DAYS_FROM);
+
+ for ($time = $toTime; $time >= $fromTime; $time = strtotime('-1 day',$time)) {
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+ if ($count > 0) {
+// echo '<tbody class="parosNap">';
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+// echo '</tbody>'."\n";
+ }
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+
+
+
+ function putTankorNap($dt, $dNap, $doga, $order) {
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+// if (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+// else echo '<tbody class="paratlanNap">'."\n";
+
+ putHaladasiDolgozat($dt,$doga);
+
+ for ($i=0; $i<$count; $i++) {
+ putTankorOra($dNap[$count-$i-1]);
+ } // órák kiírása
+
+// echo '</tbody>'."\n";
+
+ }
+
+
+ function putHaladasiDolgozat($dt,$doga) {
+
+ for ($i=0;$i<count($doga['tervezett'][$dt]);$i++) {
+ $did = $doga['tervezett'][$dt][$i];
+ echo '<tr>';
+ echo '<td colspan="8" class="dolgozat">';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did);
+// echo '<a href="'.$href.'">';
+ echo _BEJELENTETT_DOLGOZAT . ': '. $doga[$did]['dolgozatNev'];
+ echo ' (' ;
+ for ($j=0;$j<count($doga[$did]['tankor']);$j++) {
+ if ($j != 0) echo ', ';
+ echo $doga[$did]['tankor'][$j]['tankorNev'];
+ }
+ echo ')';
+// echo '</a>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ }
+
+
+ function putTankorOra($dOra) {
+
+ global $aHetNapjai;
+
+ $modosithatoOra = false;
+
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+ $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+
+ echo '<tr'.$tr_class.'>';
+
+ echo '<td>';
+ echo str_replace('-','.',$dOra['dt']) .'. '. $aHetNapjai[date('w',strtotime($dOra['dt']))-1].' ';
+ echo '</td>';
+ echo '<td class="ora">';
+ echo $dOra['ora'].'.';
+ echo '</td>'."\n";
+ echo '<td>';
+ echo $tipus;
+// echo $ADAT['terem'][$dOra['teremId']]['leiras'];
+ echo '</td>'."\n";
+
+
+ // ----- Tanör(ok) -------------------------------
+ echo '<td>';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanár']['id']) > 1 and $modosithatoOra) {
+ $_SEL = array($dOra['kiId'] => 'selected="selected" ');
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t=0;$t<count($dOra['tanár']['id']);$t++) {
+ echo '<option value="'.$dOra['tanár']['id'][$t].'" '.$_SEL[$dOra['tanár']['id'][$t]].'>';
+ echo $dOra['tanár'][$dOra['tanár']['id'][$t]]['cn'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $dOra['oraszam'];
+ echo '</td>'."\n";
+
+ echo '<td>'.$dOra['leiras'].'</td>'."\n";
+
+ echo '</tr>'."\n";
+ }
+
+ function putHetesForm($ADAT) { }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml
new file mode 100644
index 00000000..2d206723
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/hianyzas/info.phtml
@@ -0,0 +1,18 @@
+<?php
+
+ function putDiakHianyzasInfo($ADAT) {
+ foreach(array_reverse($ADAT) as $dt => $D) { if ($dt!='') break; }
+ echo '<div style="text-align: center">';
+ if ($dt == date('Y-m-d')) {
+ echo _MA.' '._AZ_ORAK.' '.$D['oranHianyzasSzazalek'].'%-n '._VOLT_HIANYZO.'.<br/>';
+ echo _MA.' '.$D['hianyzokSulyozva'].' '._DIAK.' '._HIANYZIK.'.';
+ } else {
+ list($ev,$ho,$nap) = explode('-',$dt);
+ echo decimal_to_roman($ho).'. '.$nap.'. napon '._AZ_ORAK.' '.$D['oranHianyzasSzazalek'].'%-n '._VOLT_HIANYZO.'.<br/>';
+ echo decimal_to_roman($ho).'. '.$nap.'. napon '.$D['hianyzokSulyozva'].' '._DIAK.' '._HIANYZOTT.'.';
+ }
+ echo '</div>';
+ //echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=info&toSkin='._SKIN).'">'._TOVABB.'</a>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml
new file mode 100644
index 00000000..c2d3b6a1
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/hibabejelento/admin.phtml
@@ -0,0 +1,120 @@
+<?php
+ function putKerelmek($ADAT) {
+
+ echo '<ol style="list-style-type:none; margin:0px; padding:0px;">';
+ for ($i = 0; $i < count($ADAT['kerelmek']); $i++) {
+
+ if ($ADAT['kerelmek'][$i]['lezarasDt']!="") $_class = ' style="color: #777777;"' ;
+ elseif ($ADAT['kerelmek'][$i]['jovahagyasDt']!="") $_class = ' style="background-color: rgb(200,255,200);"' ;
+ else $_class = ' style="color: black;"' ;
+
+ if (__VEZETOSEG || __NAPLOADMIN) {
+ echo '<li><div style="font-style:italic; background-color:#dddddd; border-style: none none solid none; border-width:1px; border-color: #777777;">'.$ADAT['kerelmek'][$i]['userAccount'].' '.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).': '.$ADAT['kerelmek'][$i]['kategoria'].'</div></li>';
+ } else {
+ echo '<li '.$_class.'>';
+ echo '<div style="font-style:italic; background-color:#dddddd; border-style: none none solid none; border-width:1px; border-color: #777777;">'.$ADAT['kerelmek'][$i]['userAccount'].' '.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).': '.$ADAT['kerelmek'][$i]['kategoria'].'</div>';
+ echo '- '.htmlspecialchars($ADAT['kerelmek'][$i]['szoveg']);
+ if ($ADAT['kerelmek'][$i]['valasz']!='')
+ echo '<div style="font-weight:bold">- '.htmlspecialchars($ADAT['kerelmek'][$i]['valasz']).'</div>';
+ echo '</li>';
+ }
+ }
+ echo '</ol>';
+
+ }
+
+ function putKerelmekValasszal($ADAT) {
+
+ $K = array('jh'=>0,'njh'=>0);
+ $MAX = 1;
+ $dbKerelem = count($ADAT['kerelmek']);
+ $show = false;
+ for ($i = 0; $i < count($ADAT['kerelmek']); $i++) {
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt']!='') {
+ $K['jh']++;
+ // A kérelmek a rögzítés dátuma szerint rendezettek, nem a jóváhagyás dátuma szerint!
+ if (!isset($jdt) || strtotime($jdt) < strtotime($ADAT['kerelmek'][$i]['jovahagyasDt'])) $jdt = $ADAT['kerelmek'][$i]['jovahagyasDt'];
+ } else $K['njh']++;
+ $show = true;
+ }
+ if ($show) {
+/* echo '<div style="width:90%; margin:auto; border: solid 1px rgb(50,0,50);">';
+ echo '<div style="background-color:rgb(150,100,150); color: white; padding: 5px 10px; border-bottom: solid 1px white; font-weight:bold;">Kérelmek</div>';
+ echo '<div class="onClickHideShow" style="padding: 10px 10px; background-color: #eeeeee; border-bottom: solid 1px white; border-top: solid 1px rgb(50,0,50);">';
+ echo "Várakozó kérelmek száma: ";
+ echo $K['jh'] . ' + '. $K['njh'];
+ if ($jdt !='') echo "<br/>Utolsó jóváhagyás: ".$jdt;
+ echo '</div>';
+ if (__NAPLOADMIN===true || __VEZETOSEG===true)
+ echo '<div style="background-color:rgb(150,150,200); color: white; padding: 0px; font-weight:bold; text-align: right"><a style="text-decoration: none; display: block; color: white" href="'.href('index.php?page=naplo&sub=hibabejelento&f=admin',array('policy','lang','sessionID')).'">'.'tovább...'.'</a></div>';
+ echo '</div>';
+*/
+ }
+
+ echo '<div style="display:;">';
+ for ($i = 0; $i < $dbKerelem && $i<$MAX; $i++) {
+ $_link = href('index.php?page=naplo&sub=hibabejelento&f=admin&kerelemId='.$ADAT['kerelmek'][$i]['kerelemId']);
+ $_K = $ADAT['kerelmek'][$i];
+ $kerelemId = $_K['kerelemId'];
+ $_napja = round(((strtotime(date('Y-m-d H:i:s')) - strtotime($_K['rogzitesDt']))/(24*60*60)));
+ if ($_napja>60) $_napjaBg = '#f00; outline: solid 2px orange;'; else if ($_napja>7) $_napjaBg = '#f44336; outline: solid 2px red; '; else $_napjaBg = '#aaa';
+ if ($_K['lezarasDt']!='') {
+ $_color = "#888";
+ $_class="icon-paper-clip-alt";
+ } elseif ($_K['jovahagyasDt']!='') {
+ $_color = "#64ce64";
+ $_class="icon-ok-sign";
+ } else {
+ $_color="#ce6464";
+ $_class="icon-question-sign";
+ }
+ echo '<div style="height:2px;"></div>';
+ echo '<div style="width:90%; margin: 0px auto; border: solid 1px rgb(50,0,50);">';
+ echo '<div style="font-size:10px; background-color: #3c3c64; color: white; font-weight: bold; border-bottom: solid 1px #dddddd; padding:3px 10px;">'.superdate($ADAT['kerelmek'][$i]['rogzitesDt']).'</div>';
+ echo '<div style="background-color: #cccccc; padding:10px;border-bottom: solid 1px #dddddd; padding:3px 3px; min-height:30px;">';
+ echo '<a style="color: black;" href="'.$_link.'">';
+
+ echo '<span class="'.$_class.'" style="color:'.$_color.'; float:left; font-size:30px; height:30px; line-height:30px; padding:0px 4px;"></span>';
+ echo '<span style="float:right; height:30px; background-color: '.$_napjaBg.'; color:white; padding: 0px 5px 0px 5px; font-size:25px;">';
+ echo $_napja;
+ echo '</span>';
+ echo htmlspecialchars($ADAT['kerelmek'][$i]['szoveg']);
+ echo '</a>';
+ echo '</div>';
+ echo '<div style="background-color: '.$_color.'; color: white; padding:10px; border-bottom: solid 1px #3c3c64; padding:3px 10px;">'.htmlspecialchars($ADAT['kerelmek'][$i]['valasz']).' '.$_K['jovahagyasAccount'].'</div>';
+ echo '<style type="text/css">
+ table.kerelemValasz {background-color:#ddd;}
+ table.kerelemValasz td {font-size:10px; background-color:white; padding:2px 4px; vertical-align:top;}
+ table.kerelemValasz td.dt {background-color: #eee;text-align: right;}
+ </style>';
+ if (count($ADAT['valaszok'][$kerelemId])>0) {
+ $_V = $ADAT['valaszok'][$kerelemId];
+ echo '<table class="kerelemValasz" cellpadding="1" cellspacing="1">';
+ for ($j=0; $j<count($_V); $j++) {
+ echo '<tr >';
+ echo '<td class="dt">'.superdate($_V[$j]['valaszDt']).'</td>';
+ echo '<td class="userAccount">'.$_V[$j]['userAccount'].'</td>';
+ echo '<td>'.supertext($_V[$j]['valasz']).'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+ echo '</div>';
+ }
+ echo '</div>';
+
+ //if ($i!=$dbKerelem)
+ {echo '
+ <style type="text/css">
+ div._dotHolder {text-align:center; width:90%; margin:auto; padding:10px 0px;vertical-align:middle;}
+ div._dot {background-color:#eee;display: inline-block;border-radius: 50%;height:10px; width:10px;}
+ div._dot:hover {background-color:cornflowerblue !important;}
+ div._dotHolder:hover div._dot {background-color:#ccc;}
+ </style>
+ <div class="_dotHolder"><a href="'.href('index.php?page=naplo&sub=hibabejelento&f=admin').'" style="color:black;display:block;">';
+ for ($j=0; $j<($dbKerelem-$i); $j++) { echo '<div class="_dot"></div> '; }
+ echo '</a></div>';
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml b/mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml
new file mode 100644
index 00000000..cb12b8cf
--- /dev/null
+++ b/mayor-orig/www/skin/ajax/module-naplo/html/orarend/orarend.phtml
@@ -0,0 +1,148 @@
+<?php
+
+ function putOrarend($ADAT) {
+
+ global $aHetNapjai;
+ if (is_array($ADAT['orarend']['assoc'])) {
+
+// dump($ADAT['csengetesiRend']);
+
+ $T = $ADAT['orarend']['assoc'];
+ echo '<table class="orarend" align="center" cellspacing="0" cellpadding="0">'."\n";
+ echo '<tbody>'."\n";
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+// for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) { // FIXME (getMaxNap)
+ $nap=date('w',strtotime($ADAT['dt']));
+ $dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ echo '<td>';
+ $het = 0;
+ $ORARENDI = array();
+ for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) {
+ $_T = $T[$nap][$ora]['orak'][$i];
+ $ORARENDI[] = $_T['tankorId'];
+ //
+ $het = $_T['het'];
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
+
+ // Az órarendből a jelek:
+ $_targyJel = $_T['targyJel'];
+ $_osztalyJel = $_T['osztalyJel'];
+ // figyelem, itt jön a kiírás, a _putOra fv helyett:
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+
+ echo '<div class="'.$_tipusClass.'" title="'.$_ORA['tipus'].'" >';
+ $_ferohely = $ADAT['termek'][$_T['teremId']]['ferohely'];
+ $_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
+ if ($_T['tankorId']!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
+ echo $ADAT['tankorok'][$_T['tankorId']][0]['tankorNev'];
+ echo '</span>';
+ } else {
+ echo "$_targyjel : $_osztalyJel : ";
+ }
+ echo ', ';
+ echo '<span title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$ADAT['termek'][$_T['teremId']]['leiras'].'</span>';
+ echo '<br/>';
+ if ($_ORA['kit']!='') {
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+ } else {
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ }
+
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+ if ($_tankorTipus=='délutáni') echo ' &sup1';
+
+ echo '</div>';
+ if (count($T[$nap][$ora]['orak'])>$i+1) echo '<hr/>';
+ }
+ /* és ide jönnek a pluszok */
+ $j=0;
+ if (is_array($ADAT['haladasi']['orak'][$dt][$ora])) foreach ($ADAT['haladasi']['orak'][$dt][$ora] as $_tankorId => $__T) {
+ if (!is_array($ORARENDI) || !in_array($_tankorId,$ORARENDI)) {
+ if ($j!=0) echo '<hr/>'; $j++;
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora];
+ _putOra($_ORA,$_tankorId);
+ }
+ }
+ echo '</td>'."\n";
+ //}
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+
+ } else {
+ //putOrarendPlain($ADAT);
+ echo '<div style="text-align: center">'._NO_TIMETABLE.'</div>';
+
+ }
+
+
+ }
+
+ function putOrarendPlain($ADAT) {
+ if (is_array($ADAT['orarend']['orarendiOra'])) {
+ foreach($ADAT['orarend']['orarendiOra'] as $het => $T) {
+ echo '<table class="orarend" align="center">'."\n";
+ echo '<caption>'.$het.'. heti órarend</caption>';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) { // FIXME (getMinOra, getMaxOra konstansok!???)
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) { // FIXME (getMaxNap)
+ echo '<td>';
+ $X = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora];
+
+ for ($i=0; $i<count($X); $i++) {
+ echo '<div class="unfinished">';
+ echo $X[$i]['targyJel'].' : ';
+ echo $X[$i]['osztalyJel'].' : ';
+ echo $X[$i]['teremId'];
+ echo '</div>';
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ }
+ }
+ }
+
+ function _putOra($ORA,$_tankorId) {
+ global $ADAT;
+ $_ORA = $ORA[$_tankorId];
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ $_eredetClass = $_ORA['eredet'];
+ echo '<div class="'.$_tipusClass.' '.$_eredetClass.'" title="'.$_ORA['tipus'].'" >';
+
+ if ($ADAT['tankorok'][$_ORA['tankorId']][0]['tankorNev']!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].')" >';
+ echo $ADAT['tankorok'][$_ORA['tankorId']][0]['tankorNev'];
+ echo '</span>';
+
+ echo ', '.$ADAT['termek'][$_ORA['teremId']]['leiras'];
+ echo '<br/>';
+ } else {
+ echo $_ORA['tipus'].' '.$_ORA['eredet'].' ('.$_ORA['feladatTipusId'].')<br/>';
+ }
+
+
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+
+ echo '</div>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/blue/base/color_schemes.php b/mayor-orig/www/skin/blue/base/color_schemes.php
new file mode 100644
index 00000000..68fcc9dc
--- /dev/null
+++ b/mayor-orig/www/skin/blue/base/color_schemes.php
@@ -0,0 +1,93 @@
+<?php
+
+ // default
+ $_COLOR_SCHEMES['blue'] = array(
+ 'head' => '#3496B9', // a fő szín a felső sávban/menüben
+ 'login' => '#00c0ff', // bejelentkezés:hover, svg-k színe
+ 'active' => '#3facc7', // első szint aktív eleme, 3. szint alap,...
+ 'hover' => '#4fbcd7', // hover a menüben és almenüben
+ 'hover-color' => '#fdb933', // !! Betűszín - hover, aktív...
+ 'nav' => '#3fa79c', // a menü kinyíló része
+ 'nav2' => '#d2dfe9', // nav kettő, kinyitó fül, stb
+ );
+ // yellow
+ $_COLOR_SCHEMES['yellow'] = array(
+ 'head' => '#B99634',
+ 'login' => '#ffc000',
+ 'active' => '#c7ac3f',
+ 'hover' => '#d7bc4f',
+ 'hover-color' => '#800',
+ 'nav' => '#9ca73f',
+ 'nav2' => '#e9dfd2',
+ );
+ // red
+ $_COLOR_SCHEMES['red'] = array(
+ 'head' => '#B93234',
+ 'login' => '#ff4000',
+ 'active' => '#c7393f',
+ 'hover' => '#d73f4f',
+ 'hover-color' => '#fdb933',
+ 'nav' => '#9c383f',
+ 'nav2' => '#e9dfd2',
+ );
+ // black
+ $_COLOR_SCHEMES['black'] = array(
+ 'head' => '#000000',
+ 'login' => '#000000',
+ 'active' => '#888888',
+ 'hover' => '#070f0f',
+ 'hover-color' => '#fdb933',
+ 'nav' => '#666666',
+ 'nav2' => '#e0e0e0',
+ );
+ // nemzeti
+ $_COLOR_SCHEMES['nemzeti'] = array(
+ 'head' => '#006000',
+ 'login' => '#a00000',
+ 'active' => '#a00000',
+ 'hover' => '#ffffff',
+ 'hover-color' => '#ff0000',
+ 'nav' => '#666666',
+ 'nav2' => '#e0ffe0',
+ );
+ // green
+ $_COLOR_SCHEMES['green'] = array(
+ 'head' => '#32B934',
+ 'login' => '#40ff00',
+ 'active' => '#39c73f',
+ 'hover' => '#3fd74f',
+ 'hover-color' => '#b9fd33',
+ 'nav' => '#389c3f',
+ 'nav2' => '#dfe9d2',
+ );
+ // dark-blue
+ $_COLOR_SCHEMES['dark-blue'] = array(
+ 'head' => '#008',
+ 'login' => '#008',
+ 'active' => '#36a',
+ 'hover' => '#4ac',
+ 'hover-color' => '#fdb933',
+ 'nav' => '#44b',
+ 'nav2' => '#bcd',
+ );
+
+ function colorToRGBA($color, $opacity) {
+ if ($color[0] == '#') {
+ $hex = str_replace("#", "", $color);
+ if(strlen($hex) == 3) {
+ $r = hexdec(substr($hex,0,1).substr($hex,0,1));
+ $g = hexdec(substr($hex,1,1).substr($hex,1,1));
+ $b = hexdec(substr($hex,2,1).substr($hex,2,1));
+ } else {
+ $r = hexdec(substr($hex,0,2));
+ $g = hexdec(substr($hex,2,2));
+ $b = hexdec(substr($hex,4,2));
+ }
+ $rgb = array($r, $g, $b);
+ } else {
+ $rgb = explode(',', str_replace(' ','',substr($color,4,strlen($color)-1)));
+ }
+ return 'rgba('.implode(', ', $rgb).', '.$opacity.')';
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/blue/base/css/base.css b/mayor-orig/www/skin/blue/base/css/base.css
new file mode 100644
index 00000000..350a7f96
--- /dev/null
+++ b/mayor-orig/www/skin/blue/base/css/base.css
@@ -0,0 +1,209 @@
+/*
+ Module: base
+
+ A rétegek sorrendje: nav2(1), head(2), poz(2), nav1(3), nav(3), logo(3), logobadge(4)
+*/
+
+@media screen {
+
+ html { height: 100%; }
+ html body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin:0px; padding:0px; height: 100%; overflow: auto; }
+ #debug {
+ padding: 20px; background: rgba(0,0,0,0.7); color: yellow; border: 0px red solid;
+ position: absolute; z-index: 1000; top: 0px; left: 0px; right: 0px;
+ }
+ #debug pre { background: rgba(240,240,240,0.9); color: #880000; padding: 10px; margin: 0px;}
+ #help { box-shadow: 3px 3px 15px 0px rgba(100,100,100,5.0);
+ position: absolute; top: 10px; left: 50%; height: 600px; width: 1000px; z-index: 500; margin: 0 -500px;
+ border: 1px solid rgb(0,0,0); background: white; }
+ #help iframe { width: 1000px; height: 558px; margin: 0; border: none; }
+ #helpHeader { text-align: center; font-size: 16px; width: 980px; height: 20px; margin: 0px; background: #194a5b; cursor: pointer; color: white; font-weight: bold; padding: 10px; }
+ #hideHelp {
+ position: absolute; top:6px; right: 4px;
+ cursor: pointer; background: #822; color: white; padding: 2px 5px; font-size: 16px;
+ border: #822 1px solid; border-radius: 3px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+ box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25);
+ }
+
+ a { text-decoration:none; }
+ .onClickHideShow, .onClickHide, .onClickShow { cursor: pointer; }
+
+ div.errorMsg { margin: 10px 20%; background: #fee; border: solid 1px red; border-radius: 2px; padding: 10px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.errorMsg span { font-weight: bold; color: #f00; }
+ div.infoMsg { margin: 10px 20%; background-color: #eee; border: solid 1px rgb(90,133,184); border-radius: 2px; padding: 10px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.infoMsg span { font-weight: bold; color: rgb(21,71,123); }
+ div.errorMsg span.alertParam, div.infoMsg span.alertParam { font-weight: normal; font-style: italic; color: green; }
+
+ #logo { z-index: 3; height: 40px; position: absolute; top: 8px; left: 14px; border: 0px none; }
+ #logobadge { z-index: 4; height: 25px; position: fixed; top: 28px; left: 90px; border: 0px none; }
+
+ #head { z-index: 2; position: absolute; width: 100%; height: 60px; background: #3496B9 no-repeat right center; }
+
+ #nav, #nav ul { list-style: none; }
+ #nav { z-index: 3; margin: 0; height: 60px; padding-left: 140px; }
+ #nav li { position: relative; }
+/*!*/
+ #nav > li { float: left; z-index: 20; text-align: center; padding: 0; height: 60px;
+ /* background: #47c980; background: #3facc7; */ background: #3fa79c; border-bottom: 1px solid #D2DFE9; }
+ #nav > li.active { max-width: 160px; }
+/* #nav > li:nth-child(odd) { background: #929cb3; }*/
+ #nav > li:hover { z-index: 22; }
+ #nav > li > ul { top: 50px; left: -1px; /* background: #1A4B5C; */}
+ #nav > li > ul > li > a { margin-left: 10px; }
+
+ #nav li:hover { background: #4fbcd7;}
+/*!*/
+ #nav li.active { background: #3496B9; background: #3facc7; }
+ #nav li a { display: block; padding: 3px 10px; color: white; }
+/* #nav > li > a { padding: 23px 40px; height: 60px; display: inline-block;} */
+ #nav > li > a { padding: 0px 20px; height: 60px; vertical-align: middle; display: table-cell; min-width: 100px; }
+ #nav li a:hover { color:#fdb933; }
+ #nav li:hover > ul { display: block; }
+/* #nav li.over ul { display: block; }*/
+
+ #nav li.nav1szin { background: #3496B9; border-bottom: 1px solid white; }
+ #nav ul.sub { background: #3facc7; }
+
+
+ #nav ul { display: none; position: absolute; width: 160px; padding: 0px; }
+ #nav ul span { float: left; margin: 6px 5px; color: white; }
+/*!*/
+ #nav > li > ul { top: 61px; }
+ #nav ul > li { background: #3496B9; }
+ #nav ul li { text-align: left; margin-bottom: 1px; }
+ #nav ul li a { padding: 6px 10px; }
+ #nav ul li.active > a { color:#fdb933; }
+
+ #nav ul ul { top: 0px; left: -145px; z-index: 30; background: #3facc7; background: #3496B9}
+ #nav ul ul a { background: #3facc7; }
+ #nav ul ul a:hover { background: #4fbcd7; }
+
+ #nav li.start {
+ height: 60px; min-width: 0; padding-right: 0px; padding-left: 6px;
+ background: #D2DFE9; border-right: 4px solid #D2DFE9; border-radius: 0px 30px 30px 0px; border-bottom: 0px;
+ z-index: 20;
+ }
+
+ #poz { z-index: 2; padding: 0; list-style: none; background-color: rgb(230,230,230); margin: 0; height: 20px; border-bottom: #f3f3f3 solid 4px; text-shadow: 0px 1px rgba(52, 150, 185, 0.1); }
+ #poz > li { padding: 2px 6px; }
+ #poz > li div.nev { float: right; padding: 2px; width: auto; color: #3496b9; text-align: right; }
+ #poz > li div.nev span { margin-right: 0px; font-size:12px; }
+ #poz > li div.nev span:hover { color:#00c0ff; }
+ #poz > li a { margin-right:5px; margin-left:15px; padding:0px; margin-top:0px; vertical-align: middle;}
+
+ #settings { width: 300px;
+ margin-top: 5px; position:relative; right: 20px;
+ background: white;
+ box-shadow: rgba(0, 0, 0, 0.117188) 0px 2px 4px 0px;
+ border: 1px solid rgb(230,230,230);
+ border-top-width: 0px;
+ }
+ #settings div { padding: 20px 10px; box-shadow: rgba(0, 0, 0, 0.117188) 0px 2px 4px 0px;
+ border-bottom: 1px solid rgb(230,230,230); margin-bottom: 2px;}
+ #settings div p { margin: 0; padding: 0; text-align: center; }
+ #settings div p.name { font-weight: bold; }
+ #settings table { width: 100%; background: #D2DFE9; background: rgb(245,245,245);}
+ #settings td { width: 50%; text-align: center; padding: 10px; }
+ #settings td a {
+ display: inline-block;
+ vertical-align: baseline; line-height: 29px;
+ position: static;
+ padding: 0px 8px; height: 29px; margin: 0px 8px;
+ text-align: center; text-decoration: none; font-weight: bold; font-size: 10px;
+ background: white; color: #444;
+ border: solid 1px rgba(0, 0, 0, 0.0976563); border-radius: 2px;
+ }
+ #settings td a:hover { border: #c6c6c6 1px solid; }
+ #poz > li span.school {
+ font-variant: small-caps;
+ font-size: 14px;
+ color: white;
+ letter-spacing: 0.4em;
+ overflow: hidden;
+ }
+
+ #nav1 { z-index: 3; position: absolute; margin-left: 310px; margin-right: 0px; width: 100%;}
+ #nav1 div { background: rgba(52,150,185,0.6); }
+ #nav1 div a { padding: 22px 12px 23px 12px; display: inline-block; text-decoration: none; color: #fff; background: #3496b9; margin-top: 1px; line-height: 14px; }
+ #nav1 div a:hover { color: #fdb933; /*background: #5FCCE7; */}
+ #nav1 div a.aktiv { color:#fdb933; /*background: #4FBCD7; */}
+ #nav1 div span.onClickHideShow { cursor: pointer; color: white; background: rgba(255,255,255,0.2); padding: 23px 12px 23px 12px; float: right; margin-right: 310px/* annyi, amennyi a #nav1 bal margója!*/; }
+
+ #nav2.vertical { z-index: 1; width: 140px; margin: 0; height: 100%;
+ background-color: #D2DFE9;
+
+ background: -webkit-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: -moz-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ margin-top: -25px;
+ padding-top: 25px;
+ position: fixed;
+ overflow: auto;
+ top:83px;
+ }
+ #nav2.vertical ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.vertical ul li { border-bottom: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li:first-child { border-top: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li a { display: block; color: black; font-size: 11px; width: 128px; padding: 6px 6px; text-decoration: none; }
+ #nav2.vertical ul li a.aktiv { color: #ee7f00; font-size: 12px; }
+ #nav2.vertical ul li a:hover { color: white; background: #9abcd8; }
+
+ #nav2.horizontal { z-index: 1; width: 100%;
+ margin-top: 0px;
+ top: 83px;
+ text-align: center;
+ padding-top: 5px; padding-bottom: 5px;
+ position: fixed;
+ overflow: none;
+ border-bottom: solid 3px #eeeeee;
+ background-color: #82bfd5;
+ color: white;
+ font-size:x-small;
+ }
+ #nav2.horizontal ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.horizontal ul li { display: inline; border-right: solid 1px #888888; }
+ #nav2.horizontal ul li:last-child { display: inline; border-right: solid 0px #888888; }
+ #nav2.horizontal ul li a {display: inline; color: white; width: 128px; padding: 0px 6px; text-decoration: none; }
+ #nav2.horizontal ul li a.aktiv { color: white; background-color: orange;}
+ #nav2.horizontal ul li a:hover { color: white; background: orange; }
+ #nav2.horizontal:hover {
+
+ }
+
+ div.mayorfoot { text-align: center; font-size:smaller; color: #aaa; }
+ div.mayorfoot a { color: rgba(52, 150, 185, 0.6);}
+ div.mayorfoot:hover a { color: rgba(52, 150, 185, 1);}
+ #mayorfoot.leftpad { margin-top:2em; margin-left: 141px; }
+ #mayorfoot.toppad { margin-top: 40px; margin-left: 0px; }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow { z-index: 152; position: fixed; background: rgb(255,255,255); min-height: 100px; min-width: 200px; border: #3496B9 3px solid; border-radius: 10px;}
+ #updateWindow #updateHeader { min-height: 20px; min-width: 100px; background: #1a4c5c; color: white; text-align: center; line-height: 20px; position: relative; top: -13px; border-radius: 20px; margin: 0 50px; border: solid 3px #3496b9; }
+ #updateWindow #updateCloseButton { position: absolute; right: -20px; top: -20px; z-index: 0; background : white; border: solid 3px #3496b9; border-radius: 20px;}
+ #updateWindow #updateCloseButton:hover { background : #eeeeee;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 400px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; width: 100px; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ #logo, #head, #nav1, #nav, #poz { position: fixed; }
+ #head { top: 0; left: 0; }
+ #nav { top: 0; left: 0; }
+ #nav1 { top: 0; }
+ #poz { top: 60px; width: 100%; }
+
+ #mayorbody { padding-top: 1px; padding-right: 0px;
+ /*margin-left:0px;*/ margin-top: 83px;
+ }
+ #mayorbody.leftpad {
+ margin-left: 141px; }
+ #mayorbody.toppad {
+ margin-left: 0px; top:33px; position: relative;
+ }
+
+}
+@media print {
+ #nav, #nav1, #nav2, #poz, #head, #logo, #mayorfoot, #logobadge { display: none; }
+}
diff --git a/mayor-orig/www/skin/blue/base/css/base.php b/mayor-orig/www/skin/blue/base/css/base.php
new file mode 100644
index 00000000..36b8db17
--- /dev/null
+++ b/mayor-orig/www/skin/blue/base/css/base.php
@@ -0,0 +1,212 @@
+<?php header('Content-type: text/css');
+
+ require('../color_schemes.php'); // keretrendszeren kívül fut le!!
+ if (!isset($_GET['scheme']) || !is_array($_COLOR_SCHEMES[$_GET['scheme']]))
+ $_COLORS = $_COLOR_SCHEMES['blue'];
+ else
+ $_COLORS = $_COLOR_SCHEMES[$_GET['scheme']];
+
+?>/*
+ Module: base
+
+ A rétegek sorrendje: nav2(1), head(2), poz(2), nav1(3), nav(3), logo(3), logobadge(4)
+*/
+@media screen {
+
+ html { height: 100%; }
+ html body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin:0px; padding:0px; height: 100%; overflow: auto; }
+ #debug {
+ padding: 20px; background-color: rgba(0,0,0,0.7); color: yellow; border: 0px red solid;
+ position: absolute; z-index: 1000; top: 0px; left: 0px; right: 0px;
+ }
+ #debug pre { background-color: rgba(240,240,240,0.9); color: #880000; padding: 10px; margin: 0px;}
+ #help { box-shadow: 3px 3px 15px 0px rgba(100,100,100,5.0);
+ position: absolute; top: 10px; left: 50%; height: 600px; width: 1000px; z-index: 500; margin: 0 -500px;
+ border: 1px solid rgb(0,0,0); background-color: white; }
+ #help iframe { width: 1000px; height: 558px; margin: 0; border: none; }
+ #helpHeader { text-align: center; font-size: 16px; width: 980px; height: 20px; margin: 0px; background-color: #194a5b; cursor: pointer; color: white; font-weight: bold; padding: 10px; }
+ #hideHelp {
+ position: absolute; top:6px; right: 4px;
+ cursor: pointer; background-color: #822; color: white; padding: 2px 5px; font-size: 16px;
+ border: #822 1px solid; border-radius: 3px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+ box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25);
+ }
+
+ a { text-decoration:none; }
+ .onClickHideShow, .onClickHide, .onClickShow { cursor: pointer; }
+
+ div.errorMsg { margin: 20px 20%; background-color: #fee; border: solid 1px red; border-radius: 2px; padding: 15px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.errorMsg span { font-weight: bold; color: #f00; }
+ div.infoMsg { margin: 20px 20%; background-color: #eef; border: groove 1px #0000ff; border-radius: 2px; padding: 15px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.infoMsg span { font-weight: bold; color: #00a; }
+ div.errorMsg span.alertParam, div.infoMsg span.alertParam { font-weight: normal; font-style: italic; color: green; }
+
+ #logo { z-index: 3; height: 40px; position: absolute; top: 8px; left: 14px; border: 0px none; }
+ #logobadge { z-index: 4; height: 25px; position: fixed; top: 28px; left: 90px; border: 0px none; }
+
+ #head { z-index: 2; position: absolute; width: 100%; height: 60px; background: <?php echo $_COLORS['head']; ?> no-repeat right center; }
+
+ #nav, #nav ul { list-style: none; }
+ #nav { z-index: 3; margin: 0; height: 60px; padding-left: 140px; }
+ #nav li { position: relative; }
+/*!*/
+ #nav > li { float: left; z-index: 20; text-align: center; padding: 0; height: 60px; background-color: <?php echo $_COLORS['nav']; ?>; border-bottom: 1px solid <?php echo $_COLORS['nav2']; ?>; }
+ #nav > li.active { max-width: 160px; }
+ #nav > li:hover { z-index: 22; }
+ #nav > li > ul { top: 50px; left: -1px; }
+ #nav > li > ul > li > a { margin-left: 10px; }
+
+ #nav li:hover { background-color: <?php echo $_COLORS['hover']; ?>;}
+/*!*/
+ #nav li.active { background-color: <?php echo $_COLORS['active']; ?>; }
+ #nav li a { display: block; padding: 3px 10px; color: white; }
+ #nav > li > a { padding: 0px 20px; height: 60px; vertical-align: middle; display: table-cell; min-width: 100px; }
+ #nav li a:hover { color: <?php echo $_COLORS['hover-color']; ?>; }
+ #nav li:hover > ul { display: block; }
+
+ #nav li.nav1szin { background-color: <?php echo $_COLORS['head']; ?>; border-bottom: 1px solid white; }
+ #nav ul.sub { background-color: <?php echo $_COLORS['active']; ?>; }
+
+
+ #nav ul { display: none; position: absolute; width: 160px; padding: 0px; }
+ #nav ul span { float: left; margin: 6px 5px; color: white; }
+/*!*/
+ #nav > li > ul { top: 61px; }
+ #nav ul > li { background-color: <?php echo $_COLORS['head']; ?>; }
+ #nav ul li { text-align: left; margin-bottom: 1px; }
+ #nav ul li a { padding: 6px 10px; }
+ #nav ul li.active > a { color: <?php echo $_COLORS['hover-color']; ?>; }
+
+ #nav ul ul { top: 0px; left: -145px; z-index: 30; background-color: <?php echo $_COLORS['head']; ?>; }
+ #nav ul ul a { background-color: <?php echo $_COLORS['active']; ?>; }
+ #nav ul ul a:hover { background-color: <?php echo $_COLORS['hover']; ?>; }
+
+ #nav li.start {
+ height: 60px; min-width: 0; padding-right: 0px; padding-left: 6px;
+ background-color: <?php echo $_COLORS['nav2']; ?>; border-right: 4px solid <?php echo $_COLORS['nav2']; ?>; border-radius: 0px 30px 30px 0px; border-bottom: 0px;
+ z-index: 20;
+ }
+
+ #poz { z-index: 2; padding: 0; list-style: none; background-color: rgb(230,230,230); margin: 0; height: 20px; border-bottom: #f3f3f3 solid 4px; text-shadow: 0px 1px rgba(52, 150, 185, 0.1); }
+ #poz > li { padding: 2px 6px; }
+ #poz > li div.nev { float: right; padding: 2px; width: auto; color: <?php echo $_COLORS['head']; ?>; text-align: right; }
+ #poz > li div.nev span { margin-right: 0px; font-size:12px; }
+ #poz > li div.nev span:hover { color:<?php echo $_COLORS['login']; ?>; }
+ #poz > li a { margin-right:5px; margin-left:15px; padding:0px; margin-top:0px; vertical-align: middle;}
+
+ #settings { width: 300px;
+ margin-top: 5px; position:relative; right: 20px;
+ background-color: white;
+ box-shadow: rgba(0, 0, 0, 0.117188) 0px 2px 4px 0px;
+ border: 1px solid rgb(230,230,230);
+ border-top-width: 0px;
+ }
+ #settings div { padding: 20px 10px; box-shadow: rgba(0, 0, 0, 0.117188) 0px 2px 4px 0px;
+ border-bottom: 1px solid rgb(230,230,230); margin-bottom: 2px;}
+ #settings div p { margin: 0; padding: 0; text-align: center; }
+ #settings div p.name { font-weight: bold; }
+ #settings table { width: 100%; background-color: rgb(245,245,245); }
+ #settings td { width: 50%; text-align: center; padding: 10px; }
+ #settings td a {
+ display: inline-block;
+ vertical-align: baseline; line-height: 29px;
+ position: static;
+ padding: 0px 8px; height: 29px; margin: 0px 8px;
+ text-align: center; text-decoration: none; font-weight: bold; font-size: 10px;
+ background-color: white; color: #444;
+ border: solid 1px rgba(0, 0, 0, 0.0976563); border-radius: 2px;
+ }
+ #settings td a:hover { border: #c6c6c6 1px solid; }
+ #poz > li span.school {
+ font-variant: small-caps;
+ font-size: 14px;
+ color: white;
+ letter-spacing: 0.4em;
+ overflow: hidden;
+ }
+
+ #nav1 { z-index: 3; position: absolute; margin-left: 310px; margin-right: 0px; width: 100%;}
+ #nav1 div { background-color: <?php echo colorToRGBA($_COLORS['head'], 0.6); ?>; }
+ #nav1 div a { padding: 22px 12px 23px 12px; display: inline-block; text-decoration: none; color: #fff; background-color: <?php echo $_COLORS['head']; ?>; margin-top: 1px; line-height: 14px; }
+ #nav1 div a:hover { color: <?php echo $_COLORS['hover-color']; ?>; }
+ #nav1 div a.aktiv { color: <?php echo $_COLORS['hover-color']; ?>; }
+ #nav1 div span.onClickHideShow { cursor: pointer; color: white; background-color: rgba(255,255,255,0.2); padding: 23px 12px 23px 12px; float: right; margin-right: 310px/* annyi, amennyi a #nav1 bal margója!*/; }
+
+ #nav2.vertical { z-index: 1; width: 140px; margin: 0; height: 100%;
+ background-color: <? echo $_COLORS['nav2']; ?>;
+
+ background: -webkit-linear-gradient(top, <? echo $_COLORS['nav2']; ?> 0%,<? echo $_COLORS['nav2']; ?> 50%,#ffffff 100%);
+ background: -moz-linear-gradient(top, <? echo $_COLORS['nav2']; ?> 0%,<? echo $_COLORS['nav2']; ?> 50%,#ffffff 100%);
+ background: linear-gradient(top, <? echo $_COLORS['nav2']; ?> 0%,<? echo $_COLORS['nav2']; ?> 50%,#ffffff 100%);
+ margin-top: -25px;
+ padding-top: 25px;
+ position: fixed;
+ overflow: auto;
+ top:83px;
+ }
+ #nav2.vertical ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.vertical ul li { border-bottom: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li:first-child { border-top: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li a { display: block; color: black; font-size: 11px; width: 128px; padding: 6px 6px; text-decoration: none; }
+ #nav2.vertical ul li a.aktiv { color: #ee7f00; font-size: 12px; }
+ #nav2.vertical ul li a:hover { color: white; background-color: #9abcd8; }
+
+ #nav2.horizontal { z-index: 1; width: 100%;
+ margin-top: 0px;
+ top: 83px;
+ text-align: center;
+ padding-top: 5px; padding-bottom: 5px;
+ position: fixed;
+ overflow: none;
+ border-bottom: solid 3px #eeeeee;
+ background-color: #82bfd5;
+ color: white;
+ font-size:x-small;
+ }
+ #nav2.horizontal ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.horizontal ul li { display: inline; border-right: solid 1px #888888; }
+ #nav2.horizontal ul li:last-child { display: inline; border-right: solid 0px #888888; }
+ #nav2.horizontal ul li a {display: inline; color: white; width: 128px; padding: 0px 6px; text-decoration: none; }
+ #nav2.horizontal ul li a.aktiv { color: white; background-color: orange;}
+ #nav2.horizontal ul li a:hover { color: white; background-color: orange; }
+ #nav2.horizontal:hover {
+
+ }
+
+ div.mayorfoot { text-align: center; font-size:smaller; color: #aaa; }
+ div.mayorfoot a { color: rgba(52, 150, 185, 0.6);}
+ div.mayorfoot:hover a { color: rgba(52, 150, 185, 1);}
+ #mayorfoot.leftpad { margin-top:2em; margin-left: 141px; }
+ #mayorfoot.toppad { margin-top: 40px; margin-left: 0px; }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow { z-index: 152; position: fixed; background-color: rgb(255,255,255); min-height: 100px; min-width: 200px; border: <?php echo $_COLORS['head']; ?> 3px solid; border-radius: 10px;}
+ #updateWindow #updateHeader { min-height: 20px; min-width: 100px; background-color: #1a4c5c; color: white; text-align: center; line-height: 20px; position: relative; top: -13px; border-radius: 20px; margin: 0 50px; border: solid 3px <?php echo $_COLORS['head']; ?>; }
+ #updateWindow #updateCloseButton { position: absolute; right: -20px; top: -20px; z-index: 0; background-color: white; border: solid 3px <?php echo $_COLORS['head']; ?>; border-radius: 20px;}
+ #updateWindow #updateCloseButton:hover { background-color: #eeeeee;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 400px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; width: 100px; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ #logo, #head, #nav1, #nav, #poz { position: fixed; }
+ #head { top: 0; left: 0; }
+ #nav { top: 0; left: 0; }
+ #nav1 { top: 0; }
+ #poz { top: 60px; width: 100%; }
+
+ #mayorbody { padding-top: 1px; padding-right: 0px;
+ /*margin-left:0px;*/ margin-top: 83px;
+ }
+ #mayorbody.leftpad {
+ margin-left: 141px; }
+ #mayorbody.toppad {
+ margin-left: 0px; top:33px; position: relative;
+ }
+
+}
+@media print {
+ #nav, #nav1, #nav2, #poz, #head, #logo, #mayorfoot, #logobadge { display: none; }
+}
diff --git a/mayor-orig/www/skin/blue/base/html/base.phtml b/mayor-orig/www/skin/blue/base/html/base.phtml
new file mode 100644
index 00000000..ebe1161b
--- /dev/null
+++ b/mayor-orig/www/skin/blue/base/html/base.phtml
@@ -0,0 +1,401 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+ require('skin/blue/base/color_schemes.php');
+ if (!defined('__COLOR_SCHEME') || !is_array($_COLOR_SCHEMES[__COLOR_SCHEME]))
+ $_COLORS = $_COLOR_SCHEMES['blue'];
+ else
+ $_COLORS = $_COLOR_SCHEMES[__COLOR_SCHEME];
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpHeader();
+
+ if ($MENU['set'][$policy][$page][$sub][$f]['refresh'] > 0) {
+ @header("Refresh:".intval($MENU['set'][$policy][$page][$sub][$f]['refresh']));
+ }
+
+ html_head($page,$sub,$f,$lang,$skin);
+ _debugLayer();
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '<div id="mayorerror"></div>';
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorbody '.$_defaultPageLayout.'" id="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH, $SSSBB;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+
+ // debug üzenetek layer-ének lezárása
+// if (defined('__START_DEBUG') && __START_DEBUG === true) echo "</div>\n<!--// debug end //-->";
+
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if (is_string($SSSHH) && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '<link rel="shortcut icon" href="/skin/blue/base/img/favicon.ico" />'."\n";
+ echo "</head>\n<body>\n";
+ if (is_string($SSSBB) && $SSSBB!='') echo $SSSBB;
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $policy, $page, $sub, $f, $LANGUAGES, $SKINSSHOW, $_COLORS;
+
+ echo '<ul id="nav" class="hideShowContainer">'."\n";
+ if (is_array($MENU)) {
+ $active_page=false;
+ foreach ($MENU as $aModule => $pItems) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($pItems); $i++) {
+ if ($page == $aModule and
+ ( $active_page===false && ( $_SERVER["REQUEST_URI"]=='/' || (!isset($pItems[$i]['url'])) || strpos($_SERVER["REQUEST_URI"],$pItems[$i]['url']) !== false || strpos($pItems[$i]['url'],"page=$page") !== false) )
+ ) {
+ echo '<li class="active">';
+ $active_page=true;
+ } else {
+ echo '<li style="display: none;" class="openable">';
+ }
+ if (isset($pItems[$i]['url']) && $pItems[$i]['url'] != '') {
+ if ($pItems[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$pItems[$i]['url']);
+ elseif (substr($pItems[$i]['url'],0,4) == 'http') $href = href($pItems[$i]['url'], array());
+ elseif (isset($pItems[$i]['get']) && is_array($pItems[$i]['get'])) $href = href($pItems[$i]['url'], $pItems[$i]['get']);
+ else $href = href($pItems[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($pItems[$i]['target']))?' target="'.$pItems[$i]['target'].'" ':'').'>'
+ .$pItems[$i]['txt']
+ .'</a>'."\n";
+ // --- sub ---
+
+ @$pageArray = $MENU['modules'][$aModule];
+
+ if (is_array($pageArray) && count($pageArray)>0) {
+ echo '<ul class="sub">'."\n";
+ foreach ($pageArray as $aSub => $sItems) {
+ if ($aSub != 'sub') {
+ for ($j=0;$j<count($sItems);$j++) {
+ if (
+ $page == $aModule and
+ (
+ (!isset($sItems[$j]['url']) && $f == $aSub)
+ || (isset($sItems[$j]['url']) && strpos($_SERVER["REQUEST_URI"],$sItems[$j]['url']) !== false)
+ )
+ ) {
+ echo '<li class="active">'; $activeSub = true;
+ } else {
+ echo '<li>'; $activeSub = false;
+ }
+ if (isset($sItems[$j]['url']) && $sItems[$j]['url'] != '') {
+ if ($sItems[$j]['url'][0] == '&') $href = href("index.php?page=$aModule&f=$aSub".$sItems[$j]['url']);
+ elseif (substr($sItems[$j]['url'],0,4) == 'http') $href = href($sItems[$j]['url'], array());
+ elseif (isset($sItems[$j]['get']) && is_array($sItems[$j]['get'])) $href = href($sItems[$j]['url'], $sItems[$j]['get']);
+ else $href = href($sItems[$j]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&f=$aSub",array('policy','sessionID','lang','skin'));
+ }
+ @$subArray = $MENU['modules'][$aModule]['sub'][$aSub];
+ if (!is_array($subArray) || count($subArray) == 0) {
+ echo '<a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ } else { // vannak al-al menúk (f - menü)
+ echo '<span>&laquo;</span><a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ // -- f menü --
+ echo '<ul class="fmenu">'."\n";
+
+ foreach ($subArray as $anF => $items) {
+ for ($k=0;$k<count($items);$k++) {
+ if ($aModule == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$k]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$k]['url']) !== false)
+ ) { echo '<li class="active">'."\n"; }
+ else { echo '<li>'."\n"; }
+
+ if (isset($items[$k]['url']) && $items[$k]['url'] != '') {
+ if ($items[$k]['url'][0] == '&') $href = href("index.php?page=$aModule&sub=$aSub&f=$anF".$items[$k]['url']);
+ elseif (substr($items[$k]['url'],0,4) == 'http') $href = href($items[$k]['url'], array());
+ elseif (isset($items[$k]['get']) && is_array($items[$k]['get'])) $href = href($items[$k]['url'], $items[$k]['get']);
+ else $href = href($items[$k]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$k]['target']))?' target="'.$items[$k]['target'].'" ':'').'> '
+ .$items[$k]['txt'].' </a>'."\n";
+
+ echo '</li>'."\n"; // al-al menüpont vége (f)
+ } // for - on items
+ } // foreach - on subArray
+
+ echo '</ul>'."\n"; // fmenu
+ } // vannak al-al menük (f -menü)
+
+ echo '</li>'."\n"; // almenü-pont vége (sub)
+ } // for - on sItems
+ } // ha nem sub == aSub
+ } // foreach pageArray
+ echo '</ul>'."\n"; // submenu
+ } // vannak almenük (sub)
+ echo '</li>'."\n"; // menüpont vége (page)
+ } // for - on pItems
+ } // ha aModule != 'modules'
+ } // foreach on MENU
+ }
+ echo '<li class="start onClickHideShow">&nbsp</li>';
+ echo '</ul>'."\n";
+
+ $loginout_img = _svgLoginout(array('print'=>false, 'color' => $_COLORS['login']));
+ $down_svg = _svgDown(array('print'=>false, 'color' => $_COLORS['login']));
+ // ------------------------
+
+ echo '<ul id="poz">';
+ echo '<li>';
+ if (!defined('_SCHOOL_NAME')) define('_SCHOOL_NAME',_SITE/*.' - '._MAIN_TITLE.'.'._MAYORREV*/);
+ echo '<span class="school">'._SCHOOL_NAME.'</span>';
+
+ if ($policy == 'public') {
+ echo '<div class="nev hideShowContainer">'.$down_svg.'<span class="onClickHideShow" style="padding-left:14px;" > '._LOGIN.'</span>';
+ echo '<a id="logout" title="'._LOGIN.'" href="'.href('index.php?page=auth&f=login&toPolicy=private',array('skin','lang','sessionID')).'">';
+ echo $loginout_img;
+ echo '</a>';
+ echo '<div id="settings" class="openable" style="display: none">';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=parent').'">'.str_replace(' ','&nbsp;',_PARENT_LOGIN).'</a></td>';
+ echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=private').'">'._LOGIN.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ formBegin();
+ formEnd();
+ echo '</div>';
+ echo '</div>';
+ } else {
+ echo '<div class="nev hideShowContainer">'.$down_svg.'<span class="onClickHideShow" style="padding-left:14px;" > '._USERCN.'</span>';
+ echo '<a id="logout" title="'._LOGOUT.'" href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">';
+ echo $loginout_img;
+ echo '</a>';
+ echo '<div id="settings" class="openable" style="display: none">';
+ echo '<div>';
+ echo '<p class="name">'._USERCN.'</p>';
+ echo '<p class="account">'._USERACCOUNT.'</p>';
+ echo '</div>';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?page=password&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public',array('skin','lang','sessionID')).'">'._PASSWORD.'</a></td>';
+ echo '<td><a href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">'._LOGOUT.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ formBegin();
+ /* Némi javascipt támogatás a session kezelésre ebben a formban */
+ $sessionMaxIdleTime=$sessionAlertTime=0;
+ if ((_SESSIONID!='' && _POLICY!='public') && defined('_SESSION_MAX_IDLE_TIME') && _SESSION_MAX_IDLE_TIME>0) {
+ $sessionMaxIdleTime=((_SESSION_MAX_IDLE_TIME*1000*60*60)+1000);
+ if (defined('_SESSION_ALERT_TIME')) $sessionAlertTime = ((_SESSION_MAX_IDLE_TIME*1000*60*60)-(_SESSION_ALERT_TIME*1000*60));
+ }
+ echo '<input type="hidden" id="SESSION_MAX_IDLE_TIME" value="'.$sessionMaxIdleTime.'" />';
+ echo '<input type="hidden" id="SESSION_ALERT_TIME" value="'.$sessionAlertTime.'" />';
+ /* --- */
+ formEnd();
+ echo '</div>';
+ echo '</div>';
+ } // policy != punlic
+//var_dump(substr($_SERVER["REQUEST_URI"],0,strpos($_SERVER["REQUEST_URI"],'sessionID=')));
+
+ echo '</li>';
+ echo '</ul>';
+
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy, $SCHOOL_LOGO, $SCHOOL_IDENTITY, $SCHOOL_URL, $NAV;
+
+
+ _updateWindow();
+ _keyHelp();
+
+ //if (date('m')==12) $imgextra = '-santa'; else $imgextra = '';
+ if (defined('_HOME_LOGO') && file_exists(_HOME_LOGO)) $HOME_LOGO=_HOME_LOGO;
+ elseif (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+
+ if (defined('_HOME_LOGO_BADGE') && file_exists(_HOME_LOGO_BADGE)) $HOME_LOGO_BADGE=_HOME_LOGO_BADGE;
+// elseif (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+// $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+
+echo '<div id="head"></div>';
+
+ echo "<!--// NAV1 start //-->\n";
+ echo '<div id="nav1">';
+ echo '<div class="hideShowContainer">';
+
+ $db = 0; $max = __MAX_MENU; // Az egy sorba megjeleníthető menüpontok maximális száma
+ if (is_array($NAV[1])) foreach ($NAV[1] as $N1) {
+ $txt = '';
+ $i = intval($N1['index']);
+ if (isset($N1['sub'])) {
+ if (!isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N1['page'] ]['sub'][ $N1['sub'] ][ $N1['f'] ][ $i ];
+ }
+ } elseif (isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N1['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f']);
+
+ if ($db<$max) {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="aktiv" '; else $class = '';
+ } else {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="openable aktiv" '; else $class = ' class="openable" ';
+ $style = ' style="display: none;" ';
+ }
+
+ if ($txt != '') { // Hibás hivatkozás ne rontsa el a menüt!
+ if ($db == $max) echo '<span class="onClickHideShow openable">&nabla;</span><span class="onClickHideShow openable" style="display: none;">&Delta;</span><br />';
+ echo '<a href="'.$href.'"'.$class.$style.'>';
+ echo $txt;
+ echo '</a>';
+ $db++;
+ }
+
+
+ }
+ echo '</div>';
+ echo '</div>'."\n<!--// NAV1 end //-->\n";
+
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+ echo '<a href="'.href('index.php').'">';
+ echo '<img src="'.$HOME_LOGO.'" alt="MaYoR" id="logo" />';
+ if ($HOME_LOGO_BADGE!='') echo '<img src="'.$HOME_LOGO_BADGE.'" alt="" id="logobadge" />';
+ echo '</a>';
+
+
+ echo "<!--// NAV2 start //-->\n";
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'vertical' : 'horizontal';
+ echo '<div id="nav2" class="'.$_defaultPageLayout.'">';
+// echo '<span id="hideNav2:tavtarto" class="onClickHide">X</span>';
+ if (is_array($NAV[2])) {
+ echo '<ul>';
+ foreach ($NAV[2] as $N2) {
+ $txt = '';
+ $i = intval($N2['index']);
+ if (isset($N2['sub'])) {
+ if (!isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N2['page'] ]['sub'][ $N2['sub'] ][ $N2['f'] ][ $i ];
+ }
+ } elseif (isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N2['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f']);
+
+ if ($page == $N2['page'] && $sub == $N2['sub'] && (!isset($N2['f']) || $f == $N2['f'])) $class = ' class="aktiv" '; else $class = '';
+ if ($txt != '') {
+ echo '<li>';
+ echo '<a href="'.$href.'"'.$class.'>';
+ echo $txt;
+ echo '</a>';
+ echo '</li>';
+ }
+ }
+ echo '</ul>';
+ }
+ echo '</div>'."\n<!--// NAV2 end //-->\n";
+
+}
+
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorfoot '.$_defaultPageLayout.'" id="mayorfoot">'._MAIN_FOOTER.'</div>'."\n\n";
+ echo "</body>\n</html>";
+}
+
+
+?>
diff --git a/mayor-orig/www/skin/blue/base/img/favicon.ico b/mayor-orig/www/skin/blue/base/img/favicon.ico
new file mode 100644
index 00000000..5720d1ed
--- /dev/null
+++ b/mayor-orig/www/skin/blue/base/img/favicon.ico
Binary files differ
diff --git a/mayor-orig/www/skin/blue/base/img/mayor_small_ssl.png b/mayor-orig/www/skin/blue/base/img/mayor_small_ssl.png
new file mode 100644
index 00000000..ca42a8d0
--- /dev/null
+++ b/mayor-orig/www/skin/blue/base/img/mayor_small_ssl.png
Binary files differ
diff --git a/mayor-orig/www/skin/blue/base/img/mayor_small_ssl.png.orig b/mayor-orig/www/skin/blue/base/img/mayor_small_ssl.png.orig
new file mode 100644
index 00000000..c2b3d41b
--- /dev/null
+++ b/mayor-orig/www/skin/blue/base/img/mayor_small_ssl.png.orig
Binary files differ
diff --git a/mayor-orig/www/skin/blue/module-auth/css/login.css b/mayor-orig/www/skin/blue/module-auth/css/login.css
new file mode 100644
index 00000000..872d000f
--- /dev/null
+++ b/mayor-orig/www/skin/blue/module-auth/css/login.css
@@ -0,0 +1,46 @@
+@media screen {
+
+div.mayorbody img { border-width: 0px; }
+div.mayorbody h1 {text-align: center; margin:10px; font-size:20px; }
+div.mayorbody h2 {text-align: center; margin:10px; font-size: 15px; }
+div.mayorbody table { font-size: 12px; }
+div.mayorbody table.main {width: 100%; border-width: 0px;}
+div.mayorbody table.loginablak {
+ background-color: #ffffff;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #555550;
+ width:400px}
+div.mayorbody td { padding: 2px }
+div.mayorbody form { margin: 30px;padding: 0px; }
+div.mayorbody input { font-size: 12px; font-family:Verdana,Arial; background-color: #fffff0; border: solid 1px #666690;}
+div.mayorbody select.pp { padding: 0px; margin: 0px; border: none 0px #778890; font-size: 12px; background-color: #eeeee0; font-family: Verdana,Arial; }
+div.mayorbody select.pp>option { border: none 0px black; }
+div.mayorbody input.submit { border: solid 1px #776650; }
+div.mayorbody table.loginablak thead td {
+ background-color: #666690;
+ text-align: center;
+ font-family: Verdana,arial;
+ font-size: 10pt;
+ font-weight: bold;
+ color: white;
+ border-bottom: solid 1px white;
+div.mayorbody }
+div.mayorbody table.loginablak tbody tr.top td { border-top: solid 1px #666690; }
+
+div.mayorbody tfoot td { background-color: #888880; text-align: center; }
+div.mayorbody td.co { text-align: center; vertical-align: bottom; font-family: Verdana,arial; font-size:8pt; }
+div.mayorbody img.aauthImg {
+ border-top: solid 1px #666690;
+ border-bottom: solid 1px #888880;
+ border-left: solid 1px #666690;
+ border-right: solid 1px #888880;
+}
+#warning { height: 40px; }
+#capsLockWarning {
+ background: #ffffaa; color: #ffaaaa;
+ text-align: center; font-size: 20px; font-weight: bold;
+ padding: 20px; margin: 10px auto; width: 300px;
+}
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/base/css/base.css b/mayor-orig/www/skin/classic/base/css/base.css
new file mode 100644
index 00000000..66f74645
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/css/base.css
@@ -0,0 +1,752 @@
+@media screen {
+
+ html { height: 100%; }
+ html body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin:0px; padding:0px; height: 100%; overflow: auto; }
+ a { text-decoration:none; }
+ .onClickHideShow, .onClickHide, .onClickShow { cursor: pointer; }
+ .input {outline: none;}
+
+ /* mayorlayers */
+ #debug {
+ padding: 20px; background: rgba(0,0,0,0.7); color: yellow; border: 0px red solid;
+ position: absolute; z-index: 1000; top: 0px; left: 0px; right: 0px;
+ }
+ #debug pre { background: rgba(240,240,240,0.9); color: #880000; padding: 10px; margin: 0px;}
+
+ #help {
+ border-radius: 2px;
+ box-shadow: 3px 3px 15px 0px rgba(100,100,100,5.0);
+ position: absolute; top: 10px; left: 50%; height: 600px; width: 1000px; z-index: 500; margin: 0 -500px;
+ border: 1px solid #888888; background: white; }
+ #help iframe { width: 1000px; height: 558px; margin: 0; border: none; }
+ #helpHeader { text-align: center; font-size: 16px; width: 992px; height: 20px; margin: 0px; background: #44cbf8; cursor: pointer; color: white; font-weight: bold; padding: 4px;
+ border-bottom: #f3f3f3 solid 4px;
+ }
+ #hideHelp {
+ position: absolute; top:4px; right: 4px;
+ cursor: pointer; background: #822; color: white; padding: 2px 5px; font-size: 12px;
+ border: #822 1px solid; border-radius: 2px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+/* box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25);*/
+ }
+ #hideHelp:hover { background-color:red;}
+
+ div.errorMsg { margin: 10px 20%; background: #fee; border: solid 1px red; border-radius: 2px; padding: 10px; box-shadow: 0px 0px 0px rgba(0,0,0,0.5); }
+ div.errorMsg span { font-weight: bold; color: #f00; }
+ div.infoMsg { margin: 10px 20%; background-color: #eee; border: solid 1px rgb(90,133,184); border-radius: 2px; padding: 10px; box-shadow: 0px 0px 0px rgba(0,0,0,0.5); }
+ div.infoMsg span { font-weight: bold; color: rgb(21,71,123); }
+ div.errorMsg span.alertParam, div.infoMsg span.alertParam { font-weight: normal; color: rgba(0,0,0,0.8); }
+
+ div#mayorErrorSmall span { padding:4px 4px;}
+ div#mayorErrorSmall span.errorMsg { color:red; }
+ div#mayorErrorSmall span.infoMsg { color:rgb(21,71,123); }
+
+ #mayorSearch {
+ z-index:4;
+ position: fixed;
+ width: 500px;
+ max-height: 500px; overflow:auto;
+ padding: 10px;
+ border: 5px solid #ccc;
+ border-radius: 2px;
+ background-color: #fff;
+ top: 30%;
+ left: 50%;
+ margin-top: -100px;
+ margin-left: -250px;
+ box-shadow: 0px 1px 100px 30px rgba(101,101,101,0.9);
+ }
+ #mayorSearch input {
+ overflow:none;
+ font-size:30px;
+ width: 99%;
+ height: 50px;
+ padding: 0px 0px 0px 0px;
+ margin: 0px;
+ border-style: solid;
+ border-width: 0px 0px 1px 0px;
+ border-color: #dddddd;
+ outline: none;
+ }
+
+ #mayorSearch a { display: block; color: cornflowerblue; padding: 2px; font-size: 13px; }
+ #mayorSearch a:before { content:' \25AB '; }
+ #mayorSearch a:hover { text-decoration: underline; }
+ #mayorSearch a.aktiv { outline: solid 2px cornflower; }
+ #mayorSearch a.aktiv:before, #mayorSearch a:hover:before { content:' \25AA '; }
+
+ div.inlinehelp { position: relative; display: inline-block; color:#446688; }
+/* div.inlinehelp span.onClickHideShow { padding: 1px 6px; border-radius: 14px; border: #68a solid 1px; color: #468; font-weight: bold; font-size: 10px;}*/
+ div.inlinehelp span.onClickHideShow { font-size: 10px; color: #446688;}
+ div.inlinehelp p {
+ width: 200px; position: absolute; display: inline-block; top: -15px; left: 35px; z-index: 1000;
+ background-color: #ffa;
+ border: solid 1px #888; padding: 4px; border-radius: 2px;
+ font-weight: normal; text-align: left; white-space: pre-wrap;
+ }
+ div.inlinehelp span.onClickHideShow:hover { color: rgb(106,128,250); }
+
+ /* mayorhead */
+ /* placeholder */
+ #head { z-index: 2; position: absolute; width: 100%; height: 60px;
+ background-color: #3496B9;
+ }
+
+ #mayorhead { }
+
+ #logo { z-index: 3; height: 40px; position: absolute; top: 8px; left: 14px; border: 0px none; }
+ #logobadge { z-index: 4; height: 25px; position: fixed; top: 28px; left: 90px; border: 0px none; }
+
+ #nav, #nav ul { list-style: none; }
+ #nav { z-index: 3; margin: 0px;
+ padding-left: 140px;
+ }
+
+ #nav li { position: relative; }
+ #nav > li { float: left; z-index: 20; text-align: center; padding: 0;
+/* background-color: #3fa79c; */
+ background-color: #3496B9;
+ border-bottom: 0px solid #D2DFE9;
+ /* border-bottom: 1px solid rgb(165,190,200);/* */
+ }
+ #nav > li.active { max-width: 160px; }
+ #nav > li:hover { z-index: 22; }
+ #nav > li > ul { top: 50px; left: -1px; /* background: #1A4B5C; */}
+ #nav > li > ul > li > a { margin-left: 10px; }
+
+ #nav li:hover { background: #4fbcd7;
+ background-color: #3FA79C;
+ }
+ #nav li.active { background: #3facc7; }
+
+ #nav li a { display: block; padding: 3px 10px; color: white; }
+ #nav > li > a { padding: 0px 20px; line-height: 60px; vertical-align: middle; display: table-cell; min-width: 70px;
+ -webkit-transition: all 0.1s ease;
+ transition: all 0.1s ease;
+ }
+ #nav li a:hover { color: orange; }
+ #nav li:hover > ul { display: block; }
+
+ #nav li.nav1szin { background: #3496B9; border-bottom: 1px solid white; }
+ #nav ul.sub { background: #3facc7; }
+
+ #nav ul { display: none; position: absolute; width: 160px; padding: 0px; }
+ #nav ul span { float: left; margin: 6px 5px; color: white; }
+
+ #nav > li > ul { top: 60px; border-top: solid 4px rgba(255,255,255,0.4); }
+ #nav ul > li { background: #3496B9; }
+ #nav ul li { text-align: left; margin-bottom: 1px; }
+ #nav ul li a { padding: 6px 10px; }
+ #nav ul li.active > a { color:#fdb933; }
+
+ #nav ul ul { top: 0px; left: -145px; z-index: 30; background: #3facc7; background: #3496B9}
+ #nav ul ul a { background: #3facc7; }
+ #nav ul ul a:hover { background: #4fbcd7; color: white; border-right: solid 4px orange;} /* mod */
+
+ #nav li.start { /* fogó */
+ height: 20px; min-width: 0; padding-right: 0px; padding-left: 6px;
+ margin-top:20px;
+ background-color:lightgrey;
+ border-radius: 0px 50px 50px 0px; border-bottom: 0px;
+ z-index: 20;
+ }
+
+ #nav:hover li.start {
+ animation: moIn 0.1s; -webkit-animation: moIn 0.1s;
+ }
+
+ #nav li.start:hover {
+ background: #D2DFE9;
+ padding-left:9px;
+ }
+
+ #poz { z-index: 2; padding: 0; list-style: none; background-color: rgb(230,230,230); margin: 0;
+ height: 20px; border-bottom: #f3f3f3 solid 4px; text-shadow: 0px 1px rgba(52, 150, 185, 0.1);
+ border-top: rgb(247, 197, 14) solid 4px;
+ animation-name: niceMaYoR;
+ animation-duration: 30s;
+ animation-iteration-count: 4;
+ animation-direction: alternate;
+ animation-timing-function: ease-in-out;
+ animation-delay: 60s;
+ }
+
+ #poz > li { padding: 2px 6px; }
+ #poz > li div.nev { float: right; padding: 2px; width: auto; color: #3496b9; text-align: right; }
+ #poz > li div.nev span { margin-right: 0px; }
+ #poz > li div.nev span:hover { color:rgb(70, 130, 180);/*color:#00c0ff;*/ }
+ #poz > li div.nev a { color: #3496b9;}
+
+/* #poz > li div.nev span.icon-googleplus, #poz > li div.nev span.icon-facebook { color:#aaa; }*/
+ #poz > li div.nev.googleapi span.icon-googleplus { color: #f44336;}
+ #poz > li div.nev.fbconnect span.icon-facebook { color: #3B5998;}
+
+ #poz > li a { margin-right:4px; margin-left:4px; padding:0px; margin-top:0px; vertical-align: top;}
+
+ #settings {
+ width: 100%;
+ margin-top: 5px; position:relative; right: 0px;
+ background: #eeeeee;
+ border-width: 0px 1px 1px 1px;
+ border-style: solid;
+ border-color: rgb(230,230,230);
+ border-top: dotted 1px #dddddd;
+ }
+ #settings div {
+ padding: 20px 10px;
+ border-bottom: 1px solid rgb(230,230,230);
+ }
+ #settings div p { margin: 0; padding: 0; text-align: center; }
+ #settings div p.name { font-weight: bold; }
+ #settings table { width: 100%; background: rgb(245,245,245);}
+ #settings table:hover { box-shadow: 0px 0px 100px #eeeeee;}
+ #settings td { width: 50%; text-align: center; padding: 10px; }
+ #settings td a {
+ display: inline-block;
+ vertical-align: baseline; line-height: 29px;
+ position: static;
+ padding: 0px 8px; height: 29px; margin: 0px 8px;
+ text-align: center; text-decoration: none; font-weight: bold; font-size: 10px;
+ background: white; color: #444;
+ border: solid 1px rgba(0, 0, 0, 0.0976563);
+ border-radius: 2px;
+ }
+ #settings td a:hover { border: white 1px solid; background-color: #44CBF8; color: white; }
+
+ #poz > li span.school {
+ font-variant: small-caps;
+ font-size: 14px;
+ color: rgb(125,150,160);
+ /* font-weight: bold; */
+ letter-spacing: 0.16em;
+ overflow: hidden;
+ white-space:nowrap;
+ }
+ #poz > li span.school:hover { text-shadow: 0 0 0.2em #eee, 0 0 0.2em #eee; color: #666; cursor: default; }
+
+ #nav1 { z-index: 3; position: absolute; margin-left: 290px; margin-right: 0px; width: 100%;
+
+ }
+ #nav1 div { background: rgba(52,150,185,0.6); }
+ #nav1 div a { line-height:60px; padding: 0px 12px 0px 12px; display: inline-block; text-decoration: none; color: #fff;
+ background: #3496b9; margin-top: 0px;
+ }
+ #nav1 div a:hover { color: #fdb933;
+ background-color: ;
+ box-shadow: inset 0px -3px 0px #44CBF8;
+ }
+ #nav1 div a.aktiv { color:#fdb933; }
+ #nav1 div a.aktiv:hover { color: white; }
+
+ #nav1 div span.onClickHideShow {
+ display:none;
+ cursor: pointer; color: white; background: rgba(255,255,255,0.2); line-height:60px;
+ padding: 0px 12px 0px 12px; float: right; margin-right: 290px/* annyi, amennyi a #nav1 bal margója!*/; }
+
+ #nav2.vertical {
+ z-index: 1; width: 140px; margin: 0; height: 100%;
+ background-color: #D2DFE9;
+/* margin-top: -25px;
+ padding-top: 25px;
+*/ position: fixed;
+ overflow: auto;
+ top:88px;
+ background: -webkit-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: -moz-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ }
+ #nav2.vertical ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.vertical ul li { border-bottom: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li:first-child { border-top: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li a { display: block; color: black; font-size: 11px; text-decoration: none; padding: 6px 6px; width:128px; }
+ #nav2.vertical ul li a.aktiv { background-color: white; }
+ #nav2.vertical ul li a:hover { color: white; background: #9abcd8; }
+
+ #nav2.horizontal {
+ z-index: 1; width: 100%;
+ margin-top: 0px;
+ top: 88px;
+ text-align: center;
+ padding-top: 5px; padding-bottom: 5px;
+ position: fixed;
+ overflow: none;
+ border-bottom: solid 3px #eeeeee;
+ background-color: #82bfd5;
+ color: white;
+ font-size:x-small;
+ }
+ #nav2.horizontal ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.horizontal ul li { display: inline; border-right: solid 1px #888888; }
+ #nav2.horizontal ul li:last-child { display: inline; border-right: solid 0px #888888; }
+ #nav2.horizontal ul li a {display: inline; color: white; width: 128px; padding: 0px 6px; text-decoration: none; }
+ #nav2.horizontal ul li a.aktiv { color: white; background-color: orange;}
+ #nav2.horizontal ul li a:hover { color: white; background: orange; }
+ #nav2.horizontal:hover li { }
+
+ div.mayorfoot { text-align: center; font-size:smaller; color: #aaa; }
+ div.mayorfoot a { color: rgba(52, 150, 185, 0.6);}
+ div.mayorfoot:hover a { color: rgba(52, 150, 185, 1);}
+ #mayorfoot.leftpad { margin-top:2em; margin-left: 141px; }
+ #mayorfoot.toppad { margin-top: 40px; margin-left: 0px; }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+
+ #updateWindow { z-index: 152; position: fixed; background: rgb(255,255,255); min-height: 100px; min-width: 200px; border: #3496B9 2px solid; border-radius: 4px; left:20%; right:20%;}
+/* #updateWindow #updateHeader { min-height: 20px; min-width: 100px; background: #1a4c5c; color: white; text-align: center; line-height: 20px; position: relative; top: -13px; border-radius: 4px; margin: 0 50px; border: solid 2px #3496b9; }*/
+ #updateWindow #updateHeader { min-height: 30px; min-width: 100px; background: #1a4c5c; color: white;
+ font-size:16px;text-align: center; line-height:30px; margin: 0 0px 10px 0px; border-bottom: solid 2px rgb(247, 197, 14); /*#3496b9*/ }
+ #updateWindow #updateCloseButton { position: absolute; right: -20px; top: -20px; z-index: 0; background : white; border: solid 3px #3496b9; border-radius: 20px;}
+ #updateWindow #updateCloseButton:hover { background : #eeeeee;}
+ #updateHeader { cursor: pointer; }
+ #updateForm { max-height: 100%; overflow: auto; }
+
+
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 400px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; width: 100px; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ #logo, #head, #nav1, #nav, #poz { position: fixed; }
+ #head { top: 0; left: 0; }
+ #nav { top: 0; left: 0; }
+ #nav1 { top: 0; }
+ #poz { top: 60px; width: 100%; }
+
+ #mayorbody { padding-top: 1px; padding-right: 0px;
+ /*margin-left:0px;*/ margin-top: 88px;
+ }
+ #mayorbody.leftpad { margin-left: 141px; }
+ #mayorbody.toppad { margin-left: 0px; top:33px; position: relative;}
+
+ /* alternates */
+ #mayorhead.small #nav1 div a { line-height:30px; }
+ #mayorhead.small #nav > li > a { line-height:30px;}
+ #mayorhead.small #head { height:30px;}
+ #mayorhead.small #poz { height:20px;}
+
+ /* ------------ */
+/* #mayorerror {z-index:100;position:fixed; bottom:0px; min-height:88px; width:100%;background-color: rgba(255,20,147,0.9); border-bottom: solid 1px red; display:none;}*/
+
+ #nav2 .icons span { padding: 0px 6px; vertical-align:middle; cursor:pointer}
+ #nav2.vertical .icons { height:26px; color: lightslategrey;}
+ #nav2.vertical .icons span { font-size:11px; display:table-cell; padding-top:8px;}
+ #nav2.vertical .icons span:hover {color:white;}
+
+ #nav2.horizontal .icons {display:inline; float:left; padding-top:3px; height:100%;}
+ #nav2.horizontal .icons span { font-size:11px; display:inline; padding-top:0px; color: white; border: dotted 1px lightblue; padding:3px; margin:0px 2px; background-color: rgba(100,100,100,0.1);}
+ #nav2.horizontal .icons span:hover {color:orange;}
+
+ #nav2 ul li.fullmenuitem { display:none }
+
+ #nav2fullmenu.aktiv { color: rgb(30, 144, 255);}
+ #nav2fullmenu.aktiv:hover { color: rgb(60,174,255) !important;}
+
+ #mayorGlobalLogin {
+ /*background-color: rgba(0, 0, 0, 0.6); */
+ padding:0px 0px 0px 0px; z-index: 100; position:fixed; top:0px; right:0px; height:60px; max-height:60px; }
+ #mayorGlobalLogin span { color:#eeeeee; padding-right:0px; }
+ #mayorGlobalLogin span.failed { color: rgb(255,215,0);; text-shadow: 0px 0px 2px #ff0000;}
+ #mayorGlobalLogin:hover span.failed { color: rgb(255,235,0); }
+
+ #mayorGlobalLogin form.fb button:hover span { color: #3B5998; }
+ #mayorGlobalLogin form.googleapi button:hover span { color: red; }
+
+ #mayorGlobalLogin div.large { font-size:40px; padding:10px; color: #eeeeee;}
+ #mayorGlobalLogin div.large:hover { font-size:40px; padding:10px; color: white; }
+
+ #mayorGlobalLogin input[type=text] { width:100px; }
+ #mayorGlobalLogin input[type=password] { width:100px; }
+
+ /* add default */
+ #mayorGlobalLogin form input {margin:2px;}
+ #mayorGlobalLogin table { height:60px;}
+
+ #mayorGlobalLogin form button.api {
+ background-color: inherit;
+ border: solid 0px #fff;
+ padding: 0px;
+ font-size: 24px;
+ margin-top: 2px;
+ }
+ #mayorGlobalLogin.restricted { background-color: #F06; }
+
+
+
+ #mglFBconnect.FBstatusunknown { /*color: #aaa;*/ }
+ #mglFBconnect:after { content: " ";
+ margin-left:4px;display: inline-block; width:8px;
+ height:8px;border-radius: 8px;border: solid 1px white; background-color:#888;
+ }
+ #mglFBconnect:hover:after {}
+ #mglFBconnect.FB2:after {background-color:lightgreen;}
+ #mglFBconnect.FB1:after {background-color:orange;}
+ #mglFBconnect.FB0:after {background-color:red;}
+
+ #mayorErrorHide {color: rgb(90, 133, 184); cursor:pointer;}
+ #mayorErrorHide:hover {color: rgba(52, 150, 185, 0.6);}
+
+ .hidden { display:none }
+
+ #ui-datepicker-div {position: relative; z-index:4 !important;}
+
+ #mayorErrorSmall.mayorErrorSmallInfo {
+ overflow:hidden;
+ line-height:22px;
+ border-bottom: solid 4px rgb(106,128,250);
+ border-top: solid 4px lightblue;
+ padding:0px; height:20px; width:100%;
+ background-color:rgba(250,250,250,0.9); position:fixed;
+ top:60px;left:0px; z-index:3
+ }
+
+ #mayorErrorSmall.mayorErrorSmallError {
+ overflow:hidden;
+ line-height:22px;
+ border-bottom: solid 4px red;
+ border-top: solid 4px orange;
+ padding:0px; height:20px; width:100%;
+ background-color:rgba(250,250,250,0.9); position:fixed;
+ top:60px;left:0px; z-index:3
+ }
+
+
+/* .nyitva2 { width:390px !important; }*/
+
+ #updateWindowSide {
+ z-index: 152;
+ position: fixed;
+ background-color: rgba(73, 71, 71,0.92);
+ border-left: solid 0px black;
+ padding:4px;
+ color:white;
+ right: -368px;
+ width: 360px;
+ top:60px;
+ bottom:0;
+ overflow-y: auto;
+ border-top : solid 4px grey;
+ transition: all 300ms ease;
+ }
+ #updateWindowSide.nyitva { right:0px; }
+ #updateWindowSide h1 { padding: 4px 8px; margin:0px; text-align:center; border-bottom: solid 1px #dddddd; }
+ #updateWindowSide h1 div { font-size:16px; min-height: 20px; }
+ #updateWindowSide h1 span#btn_updateWindowSideClose { float:left; font-size:18px; cursor: pointer; }
+ #updateWindowSide h1 span#btn_updateWindowSideClose:hover { color: #777777; }
+ #updateWindowSide a {color: inherit; }
+ #updateWindowSide a:hover {color: inherit; }
+
+ #updateWindowSideSub {
+ z-index: 153;
+ position: fixed;
+ background-color: rgba(100, 100, 100, 0.98);
+ border-left: solid 0px black;
+ padding:4px;
+ color:white;
+ right: -368px;
+ width: 360px;
+ top:60px;
+ bottom:0;
+ overflow-y: auto;
+ border-top : solid 4px #eee;
+ transition: all 300ms ease;
+ }
+ #updateWindowSideSub.nyitva { right:0px; }
+ #updateWindowSideSub h1 { padding: 4px 8px; margin:0px; text-align:center; border-bottom: solid 1px #dddddd; }
+ #updateWindowSideSub h1 div { font-size:16px; min-height: 20px; }
+ #updateWindowSideSub h1 span#btn_updateWindowSideSubClose { float:left; font-size:18px; cursor: pointer; }
+ #updateWindowSideSub h1 span#btn_updateWindowSideSubClose:hover { color: #777777; }
+ #updateWindowSideSub a {color: inherit; }
+ #updateWindowSideSub a:hover {color: inherit; }
+
+ #mayorNaviIconHolder { text-align:center; display:table; width:100%; border-bottom: solid 1px white; font-size:12px; }
+ div.mayorNaviIcon { display:inline-block; text-align:center; padding: 10px 5px 5px 5px; margin-right:4px; border-width:0px 0px 0px 0px; border-style: solid; border-color:white;}
+ div.mayorNaviIcon a { color:inherit; text-decoration: none; display:inline-block;}
+ div.mayorNaviIcon span { font-size:16px; }
+ div.mayorNaviIcon:hover { background-color: cornflowerblue; cursor:pointer; text-shadow: 0px 0px 1px blue;}
+
+ #nav, #nav1,#nav2 {display:visible;}
+ #mayorIcons { height: 26px; color: #789; }
+ #hamburgerIcon {
+display:none;
+color:#D2DFE9; font-size:20px;z-index:100000;
+margin-left:0px;
+position:fixed;
+top:0px;
+padding:0px 8px;
+cursor: pointer;
+vertical-align: middle;
+border-radius:1px;
+border: solid 0px #eee;
+ }
+ #hamburgerIcon span { line-height:60px; }
+ #hamburgerIcon:active {color:white;}
+ #hamburgerIcon.nyitva {
+ color:white;
+ }
+
+ .hamburger { display:none;
+ position:fixed; z-index:1000; top:0px; left:0px;
+ padding: 15px 15px;
+ cursor: pointer;
+ transition-property: opacity, -webkit-filter;
+ transition-property: opacity, filter;
+ transition-property: opacity, filter, -webkit-filter;
+ transition-duration: 0.15s;
+ transition-timing-function: linear;
+ font: inherit;
+ color: inherit;
+ text-transform: none;
+ background-color: transparent;
+ border: 0;
+ margin: 0;
+ overflow: visible;
+ }
+
+ /* author Jonathan Suh jonsuh + mayor.hu */
+ /* https://github.com/jonsuh/hamburgers */
+ .hamburger:hover { opacity: 0.7; }
+ .hamburger-box {width: 20px;height: 30px;display: inline-block;position: relative;}
+ .hamburger-inner {display: block;top: 50%;margin-top: -2px;}
+ .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
+ width: 20px;height: 3px;
+ background-color: #eee;
+ border-radius: 2px;position: absolute;
+ transition-property: -webkit-transform;
+ transition-property: transform;
+ transition-property: transform, -webkit-transform;
+ transition-duration: 0.15s;
+ transition-timing-function: ease;
+ }
+ .hamburger-inner::before, .hamburger-inner::after {content: "";display: block;}
+ .hamburger-inner::before { top: -7px; }
+ .hamburger-inner::after { bottom: -7px; }
+
+ /* Squeeze */
+ .hamburger--squeeze .hamburger-inner {
+ transition-duration: 0.1s;
+ transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ }
+ .hamburger--squeeze .hamburger-inner::before { transition: top 0.1s 0.14s ease, opacity 0.1s ease;}
+ .hamburger--squeeze .hamburger-inner::after {
+ transition: bottom 0.1s 0.14s ease, -webkit-transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ transition: bottom 0.1s 0.14s ease, transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ transition: bottom 0.1s 0.14s ease, transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19), -webkit-transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ }
+ .hamburger--squeeze.is-active .hamburger-inner {
+ -webkit-transform: rotate(45deg);
+ transform: rotate(45deg);
+ transition-delay: 0.14s;
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
+ }
+ .hamburger--squeeze.is-active .hamburger-inner::before {top: 0;opacity: 0;transition: top 0.1s ease, opacity 0.1s 0.14s ease;}
+
+ .hamburger--squeeze.is-active .hamburger-inner::after {
+ bottom: 0;
+ -webkit-transform: rotate(-90deg);
+ transform: rotate(-90deg);
+ transition: bottom 0.1s ease, -webkit-transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
+ transition: bottom 0.1s ease, transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
+ transition: bottom 0.1s ease, transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
+ }
+ /* end of hamburger */
+
+ #mayorNav {
+ width:100%;
+ position:absolute;
+ z-index:1;
+ background-color: #37699d; /* #82bfd5; */
+ opacity:1;
+ padding-bottom:1em;
+ border-bottom: solid 4px #F7C50E;
+ }
+
+ #mayorNav { color:#fff; }
+ #mayorNav a { color:#fff; }
+ #mayorNav a:hover { color:white; }
+ #mayorNav ul {list-style-type: none; }
+ #mayorNav>ul>li { margin-bottom:1.4em; font-size:16px; padding-bottom:1em;}
+ #mayorNav>ul>li>a { font-size: large; border-bottom: solid 1px #eee; }
+ #mayorNav>ul>li>a:first-child { line-height:2em;}
+ #mayorNav ul li a:active { background-color: #303F9F;}
+ #mayorNav ul li {line-height:2em; }
+
+ #mayorNav div.mayorNavIcons {
+ width:100%;
+ text-align: center;
+ } /* ALERT! elnevezés */
+ #mayorNav div.mayorNavIcons div {
+ background-color: ; display: inline-block; text-align:center; padding:14px;
+ }
+ #mayorNav div.mayorNavIcons div:active { background-color: orange; }
+ #mayorNav div.mayorNavIcons div:hover { background-color: orange; }
+ #mayorNav div.mayorNavIcons div span { font-size:x-large;}
+ div.mayorLogo a img {
+ -webkit-transition: margin 1s;
+ transition: margin 1s;
+ }
+
+ div.arckep--container { display:inline-block; position: relative;overflow: hidden;border: solid 2px #fff; color: white; border-radius: 50%;}
+ div.arckep--container img {width: 100%; height: auto; filter: grayscale(100%)};
+ div.arckep--container:hover { border: solid 2px orange; }
+ div.arckep--container img:hover { filter: grayscale(10%)};
+
+ div.arckepContainer {
+ position: relative;overflow: hidden;border-radius: 50%;border: solid 2px #fff; color: white;
+ }
+ div.arckepContainer span {
+ border-radius: 50%;border: solid 2px #fff; color: white;
+ height:50px; min-height:50px; width:50px; min-width:50px; background-color: #ddd;
+ font-size:20px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+ div.arckepContainer.osztalyAdat:hover span { background-color: #8cc864; }
+ div.arckepContainer.diakNev:hover span { background-color: #ff8c00; }
+ div.arckepContainer.tankorAdat:hover span { background-color: #aca; }
+
+ div.arckepContainer.square,
+ div.arckep--container.square,
+ div.arckepContainer.square span { border-radius: 0px; transition: all 0.1s ease;}
+
+ div.arckepContainer.classic,
+ div.arckep--container.classic,
+ div.arckepContainer.classic span { border-radius: 0px;
+ height:66px; min-height:66px; width:50px; min-width:50px;
+ }
+
+ div.arckepContainer.size_s { height:32px;width:32px;min-height:32px;min-width:32px;font-size:15px; }
+ div.arckepContainer.size_s span {height:30px;width:30px;min-height:30px;min-width:30px;font-size:13px;}
+ div.arckepContainer {display: inline-block !important;}
+ div.arckep--container {display: inline-block !important;}
+
+ div._dotHolder {text-align:center; width:90%; margin:auto; padding:10px 0px;vertical-align:middle;}
+ div._dot {background-color:#eee;display: inline-block;border-radius: 50%;height:10px; width:10px;}
+ div._dot:hover {background-color:cornflowerblue !important;}
+ div._dotHolder:hover div._dot {background-color:#ccc;}
+
+ div.arckepContainer:hover span { border: solid 2px orange; }
+
+}
+@media print {
+ #nav, #nav1, #nav2, #poz, #head, #logo, #mayorfoot, #logobadge, #mayorGlobalLogin, #updateWindowSide, #updateWindowSideSub, #mayorErrorSmall, .noprint { display: none; }
+ div.arckep--container {display: none;}
+ div.arckepContainer {display: none;}
+}
+
+@media (max-width: 900px) {
+ #nav>li a {padding:0px 8px;}
+}
+@media (max-width: 850px) {
+ #nav>li a {width:70px; padding:0px 4px;}
+}
+@media (max-width: 764px) {
+
+ .input {outline: none;}
+ .school { display: none; }
+ #nav, #nav1, #nav2 { display: none;}
+ #nav2>ul:not(:first-child) {display:none;}
+ #mayorbody { margin-left:0px; }
+ #mayorbody.toppad { margin-left: 0px; top:0px; position: relative;}
+ #hamburgerIcon {display:block;}
+ div.mayorLogo a img { margin-left:40px; }
+
+ #mayorSearch {
+ z-index:4;
+ position: fixed;
+ width: 99%;
+ padding: 0px;
+ border: 5px solid #ccc;
+ border-radius: 2px;
+ background-color: #fff;
+ top: 120px;
+ left: 0px;
+ margin-top: 0px;
+ margin-left: 0px;
+ box-shadow: 0px 1px 100px 10px rgba(101,101,101,0.9);
+ }
+ #mayorSearch a { font-size:16px; line-height:16px; padding:8px; }
+
+ .hamburger { display: inline-block;}
+ div.arckepContainer {display:none;}
+ div.arckep--container {display:none;}
+
+ #updateWindowSide input[type="color"],
+ #updateWindowSide input[type="date"],
+ #updateWindowSide input[type="datetime"],
+ #updateWindowSide input[type="datetime-local"],
+ #updateWindowSide input[type="email"],
+ #updateWindowSide input[type="month"],
+ #updateWindowSide input[type="number"],
+ #updateWindowSide input[type="password"],
+ #updateWindowSide input[type="search"],
+ #updateWindowSide input[type="tel"],
+ #updateWindowSide input[type="text"],
+ #updateWindowSide input[type="time"],
+ #updateWindowSide input[type="url"],
+ #updateWindowSide input[type="week"],
+ #updateWindowSide select,
+ #updateWindowSide select:focus,
+ #updateWindowSide textarea {
+ font-size: 16px;
+ }
+ #updateWindowSide, #updateWindowSideSub {
+ overflow: scroll;
+ -webkit-overflow-scrolling: touch;
+ font-size: 16px;
+ }
+ #updateWindowSide.nyitva, #updateWindowSideSub.nyitva {
+ width: 360px;
+ background-color: #494747;
+ }
+
+ #updateWindowSide h1 span#btn_updateWindowSideClose { float: left; font-size: 20px; cursor: pointer; }
+ #updateWindowSideSub h1 span#btn_updateWindowSideSubClose { float: left; font-size: 20px; cursor: pointer; }
+}
+@media (max-width: 350px) {
+ div#mayorGlobalLogin form.passwordAuth span {display:none;}
+}
+
+@keyframes niceMaYoR {
+ 0% { border-top: rgb(247,197,14) solid 4px; }
+ 100% { border-top: rgb(147,197,214) solid 4px; }
+}
+
+@keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+@-webkit-keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+@keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+@-webkit-keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+
+.mayorLoader {
+ background: linear-gradient(270deg, #E6E6E6, #E6E6E6, #7D96A0, #E6E6E6, #E6E6E6);
+ background-size: 400% 400%;
+ -webkit-animation: mayorLoaderAnim 4s ease infinite;
+ -moz-animation: mayorLoaderAnim 4s ease infinite;
+ -o-animation: mayorLoaderAnim 4s ease infinite;
+ animation: mayorLoaderAnim 4s ease infinite;
+}
+
+@-webkit-keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+@-moz-keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+@-o-keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+@keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+
+
+
diff --git a/mayor-orig/www/skin/classic/base/html/alert.phtml b/mayor-orig/www/skin/classic/base/html/alert.phtml
new file mode 100644
index 00000000..ae3379cb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/html/alert.phtml
@@ -0,0 +1,85 @@
+<?php
+/*
+ Module: base
+
+ js_alert($alert)
+ html_alert($alert)
+*/
+
+// ------------------------------------------------------------------- //
+// Az $alert két részből áll: típus:hiba //
+// típus: alert : javaScript alert //
+// message : hibaüzenet után az oldal betöltődik //
+// page : hibaüzenet után az oldal nem töltődik be //
+// info : információs üzenet //
+// ------------------------------------------------------------------- //
+
+// ---------------------------------------------------------------- //
+// Hibaüzenet kiiratása
+// visszatérési érték: legyen-e utána megjelenítve a lap?
+// --------------------------------------------------------------- //
+
+ function html_alert($alert='') {
+
+ global $ALERT_MSG;
+
+ //$alert = $_SESSION['alert'];
+ if (!isset($alert) || (is_array($alert) && count($alert)==0)) {
+ return true;
+ exit;
+ }
+
+ $showPage = true;
+ while ( ($a = array_pop($alert)) ) {
+ $j++;
+ $param = array();
+ $tmp = explode(':', $a);
+ $aType = readVariable($tmp[0], 'enum', 'message', array('message','info','page')); $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = htmlspecialchars($tmp[$p]);
+ $pstr = '';
+ // preparing $msg
+ if (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '')
+ $msg = $ALERT_MSG['default'].' <span class="alertParam">'.$aType.':'.$aCode.'</span>';
+ else $msg = $ALERT_MSG[$aCode];
+
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",'<span class="alertParam">'.($param[$i]).'</span>',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= '<span class="alertParam">'.($param[$i]).'</span>,';
+ }
+ if ($pstr != '') $msg .= '<br/>' . substr($pstr,0,-1) . '';
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ $sign='<span class="icon-exclamation-sign '.$class.'"></span>';
+ $hasError = true;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ $sign='<span class="icon-info-sign '.$class.'"></span>';
+ $hasInfo = true;
+ }
+ $class .= ' hidden';
+
+ $msg = '<span>'.$title.' ['.$j.']:</span> ' . $msg;
+ //echo '<div class="'.$class.'">'.str_replace('***','<br/>',$msg).'</div>'."\n";
+
+ $x .= $sign.str_replace('***',' ',str_replace('<br/>',' ',$msg))."<br/>\n";
+
+ // Függetlenül attól, hogy milyen paramétert kaptunk a $_SESSION['alert']-et üresre állítjuk
+ $_SESSION['alert'] = array();
+ }
+
+ if ($hasInfo==true && $hasError==false) {
+ echo '<div id="mayorErrorSmall" class="mayorErrorSmallInfo" ><div><span id="mayorErrorHide" class="icon-remove-sign"></span>'.$x.'</div></div>';
+ } else {
+ echo '<div id="mayorErrorSmall" class="mayorErrorSmallError"><div><span id="mayorErrorHide" class="icon-remove-sign"></span>'.$x.'</div></div>';
+ }
+
+ return $showPage;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/base/html/base.phtml b/mayor-orig/www/skin/classic/base/html/base.phtml
new file mode 100644
index 00000000..e482d4e6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/html/base.phtml
@@ -0,0 +1,618 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+
+ Felhasználtuk: http://projects.lukehaas.me/css-loaders/
+
+*/
+
+ require('skin/blue/base/color_schemes.php'); // blue? !!!!!!!!!!!!????????????????
+ if (!defined('__COLOR_SCHEME') || !is_array($_COLOR_SCHEMES[__COLOR_SCHEME]))
+ $_COLORS = $_COLOR_SCHEMES['blue'];
+ else
+ $_COLORS = $_COLOR_SCHEMES[__COLOR_SCHEME];
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpHeader();
+
+ if ($MENU['set'][$policy][$page][$sub][$f]['refresh'] > 0) {
+ @header("Refresh:".intval($MENU['set'][$policy][$page][$sub][$f]['refresh']));
+ }
+
+ html_head($page,$sub,$f,$lang,$skin);
+ _debugLayer();
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '<div id="mayorerror"></div>';
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorbody '.$_defaultPageLayout.'" id="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH, $SSSBB;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+
+ // debug üzenetek layer-ének lezárása
+// if (defined('__START_DEBUG') && __START_DEBUG === true) echo "</div>\n<!--// debug end //-->";
+
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<meta name=viewport content="width=device-width, initial-scale=1" />'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo _SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ includeSocial($page,$sub,$f);
+
+ if (is_string($SSSHH) && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '<link rel="shortcut icon" href="/skin/classic/base/img/favicon.ico" />'."\n";
+ echo '</head>'."\n".'<body data-sessionid="'._SESSIONID.'" data-mayortoken="'.$_SESSION['mayorToken'].'" data-mayorrev="'._MAYORREV.'">'."\n";
+ if (is_string($SSSBB) && $SSSBB!='') echo $SSSBB;
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $policy, $page, $sub, $f, $LANGUAGES, $SKINSSHOW, $_COLORS,$NAV;
+// echo '<div id="hamburgerIcon"><span class="icon-align-justify"></span></div>';
+ echo '<div class="hamburger hamburger--squeeze"><span class="hamburger-box"><span class="hamburger-inner"></span></span></div>';
+
+ echo '<ul id="nav" class="hideShowContainer">'."\n";
+ if (is_array($MENU)) {
+
+ $active_page=false;
+ foreach ($MENU as $aModule => $pItems) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($pItems); $i++) {
+ if ($page == $aModule and
+ ( $active_page===false && ( $_SERVER["REQUEST_URI"]=='/' || (!isset($pItems[$i]['url'])) || strpos($_SERVER["REQUEST_URI"],$pItems[$i]['url']) !== false || strpos($pItems[$i]['url'],"page=$page") !== false) )
+ ) {
+ echo '<li class="active">';
+ $active_page=true;
+ } else {
+ if ($page=='n4p1o' || count($NAV[1])>0)
+ echo '<li style="display: none;" class="openable">'; //--none
+ else
+ echo '<li style="display: ;" class="openable">'; //--none
+ }
+ if (isset($pItems[$i]['url']) && $pItems[$i]['url'] != '') {
+ if ($pItems[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$pItems[$i]['url']);
+ elseif (substr($pItems[$i]['url'],0,4) == 'http') $href = href($pItems[$i]['url'], array());
+ elseif (isset($pItems[$i]['get']) && is_array($pItems[$i]['get'])) $href = href($pItems[$i]['url'], $pItems[$i]['get']);
+ else $href = href($pItems[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($pItems[$i]['target']))?' target="'.$pItems[$i]['target'].'" ':'').'>'
+ .$pItems[$i]['txt']
+ .'</a>'."\n";
+ // --- sub ---
+
+ @$pageArray = $MENU['modules'][$aModule];
+
+ if (is_array($pageArray) && count($pageArray)>0) {
+ echo '<ul class="sub">'."\n";
+ foreach ($pageArray as $aSub => $sItems) {
+ if ($aSub != 'sub') {
+ for ($j=0;$j<count($sItems);$j++) {
+ if (
+ $page == $aModule and
+ (
+ (!isset($sItems[$j]['url']) && $f == $aSub)
+ || (isset($sItems[$j]['url']) && strpos($_SERVER["REQUEST_URI"],$sItems[$j]['url']) !== false)
+ )
+ ) {
+ echo '<li class="active">'; $activeSub = true;
+ } else {
+ echo '<li>'; $activeSub = false;
+ }
+ if (isset($sItems[$j]['url']) && $sItems[$j]['url'] != '') {
+ if ($sItems[$j]['url'][0] == '&') $href = href("index.php?page=$aModule&f=$aSub".$sItems[$j]['url']);
+ elseif (substr($sItems[$j]['url'],0,4) == 'http') $href = href($sItems[$j]['url'], array());
+ elseif (isset($sItems[$j]['get']) && is_array($sItems[$j]['get'])) $href = href($sItems[$j]['url'], $sItems[$j]['get']);
+ else $href = href($sItems[$j]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&f=$aSub",array('policy','sessionID','lang','skin'));
+ }
+ @$subArray = $MENU['modules'][$aModule]['sub'][$aSub];
+ if (!is_array($subArray) || count($subArray) == 0) {
+ echo '<a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ } else { // vannak al-al menúk (f - menü)
+ echo '<a class="larr" href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ // -- f menü --
+ echo '<ul class="fmenu">'."\n";
+
+ foreach ($subArray as $anF => $items) {
+ for ($k=0;$k<count($items);$k++) {
+ if ($aModule == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$k]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$k]['url']) !== false)
+ ) { echo '<li class="active">'."\n"; }
+ else { echo '<li>'."\n"; }
+
+ if (isset($items[$k]['url']) && $items[$k]['url'] != '') {
+ if ($items[$k]['url'][0] == '&') $href = href("index.php?page=$aModule&sub=$aSub&f=$anF".$items[$k]['url']);
+ elseif (substr($items[$k]['url'],0,4) == 'http') $href = href($items[$k]['url'], array());
+ elseif (isset($items[$k]['get']) && is_array($items[$k]['get'])) $href = href($items[$k]['url'], $items[$k]['get']);
+ else $href = href($items[$k]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$k]['target']))?' target="'.$items[$k]['target'].'" ':'').'> '
+ .$items[$k]['txt'].' </a>'."\n";
+
+ echo '</li>'."\n"; // al-al menüpont vége (f)
+ } // for - on items
+ } // foreach - on subArray
+
+ echo '</ul>'."\n"; // fmenu
+ } // vannak al-al menük (f -menü)
+
+ echo '</li>'."\n"; // almenü-pont vége (sub)
+ } // for - on sItems
+ } // ha nem sub == aSub
+ } // foreach pageArray
+ echo '</ul>'."\n"; // submenu
+ } // vannak almenük (sub)
+ echo '</li>'."\n"; // menüpont vége (page)
+ } // for - on pItems
+ } // ha aModule != 'modules'
+ } // foreach on MENU
+ }
+ echo '<li class="start onClickHideShow">&nbsp;</li>';
+ echo '</ul>'."\n";
+
+ // ------------------------
+
+
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy, $SCHOOL_LOGO, $SCHOOL_IDENTITY, $SCHOOL_URL, $NAV;
+
+ _updateWindow();
+ _updateWindowSide();
+ _keyHelp();
+ _searchLayer();
+
+ echo '<div id="mayorhead">';
+ mayorGlobalLogin(defined('_USERACCOUNT') && (!is_string(_USERACCOUNT) || _USERACCOUNT=='') );
+
+ //if (date('m')==12) $imgextra = '-santa'; else $imgextra = '';
+ if (defined('_HOME_LOGO') && file_exists(_HOME_LOGO)) $HOME_LOGO=_HOME_LOGO;
+ elseif (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+
+ if (defined('_HOME_LOGO_BADGE') && file_exists(_HOME_LOGO_BADGE)) $HOME_LOGO_BADGE=_HOME_LOGO_BADGE;
+// elseif (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+// $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+
+ echo '<div id="head"></div>';
+
+ echo "<!--// NAV1 start //-->\n";
+ echo '<div id="nav1" data-nav1count="'.count($NAV[1]).'">';
+
+ echo '<div class="hideShowContainer">';
+
+ $db = 0; $max = __MAX_MENU; // Az egy sorba megjeleníthető menüpontok maximális száma
+ if (is_array($NAV[1])) foreach ($NAV[1] as $N1) {
+ $txt = '';
+ $i = intval($N1['index']);
+ if (isset($N1['sub'])) {
+ if (!isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N1['page'] ]['sub'][ $N1['sub'] ][ $N1['f'] ][ $i ];
+ }
+ } elseif (isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N1['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f']);
+ if ($db<$max) {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="aktiv" '; else $class = '';
+ } else {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="openable aktiv" '; else $class = ' class="openable" ';
+ $style = ' style="display: none;" ';
+ }
+ if ($txt != '') { // Hibás hivatkozás ne rontsa el a menüt!
+ if ($db == $max) echo '<span class="onClickHideShow openable">&nabla;</span><span class="onClickHideShow openable" style="display: none;">&Delta;</span><br />';
+ echo '<a href="'.$href.'"'.$class.$style.'>';
+ echo $txt;
+ echo '</a>';
+ $db++;
+ }
+ }
+
+ echo '</div>';
+ echo '</div>'."\n<!--// NAV1 end //-->\n";
+
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+
+
+ echo '<div class="mayorLogo">';
+ echo '<a href="'.href('index.php').'">';
+ echo '<img src="'.$HOME_LOGO.'" alt="MaYoR" id="logo" />';
+ if ($HOME_LOGO_BADGE!='') echo '<img src="'.$HOME_LOGO_BADGE.'" alt="" id="logobadge" />';
+ echo '</a>';
+ echo '</div>';
+
+ /* ----------------- POZ ----------------- */
+ $loginout_img = _svgLoginout(array('print'=>false, 'color' => $_COLORS['login']));
+ $down_svg = _svgDown(array('print'=>false, 'color' => $_COLORS['login']));
+ echo '<ul id="poz">';
+ echo '<li>';
+ if (!defined('_SCHOOL_NAME')) define('_SCHOOL_NAME',_SITE); // TODO - ?
+ echo '<span class="school">'._SCHOOL_NAME.'</span>';
+ // if ($policy == 'public') {
+ if (defined('_USERACCOUNT') && (!is_string(_USERACCOUNT) || _USERACCOUNT=='')) {
+
+ echo '<div class="nev">';
+ //echo $down_svg.'<span class="onClickHideShow" style="padding-left:14px;" > '._LOGIN.'</span>';
+ echo '<a id="logout" title="'._LOGIN.'" href="'.href('index.php?page=auth&f=login&toPolicy=private',array('skin','lang','sessionID')).'">';
+ echo _LOGIN;
+ echo '</a>';
+ echo $loginout_img;
+
+ // echo '<div id="settings" class="openable" style="display: none">';
+ // echo '<table>';
+ // echo '<tr>';
+ // echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=parent').'">'.str_replace(' ','&nbsp;',_PARENT_LOGIN).'</a></td>';
+ // echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=private').'">'._LOGIN.'</a></td>';
+ // echo '</tr>';
+ // echo '</table>';
+ // echo '</div>';
+ echo '</div>';
+ } else {
+ $_class = $_profileImg ='';
+ if ($_SESSION['googleapi_object']['picture']!='') {
+// $_profileImg = '<a href="'.href('index.php?page=session&f=googleapi&userAccount='._USERACCOUNT).'"><img src="'.$_SESSION['googleapi_object']['picture'].'" style="height:12px;" /></a>';
+ $_class = 'googleapi';
+ }
+ if ($_SESSION['facebook_access_token']!='') {
+// echo '<a href="'.href('index.php?page=session&f=googleapi&userAccount='._USERACCOUNT).'"><img src="'.$_SESSION['googleapi_object']['picture'].'" style="height:12px;" /></a>';
+ $_class = 'fbconnect';
+ }
+ echo '<div class="nev hideShowContainer '.$_class.'">';
+
+ echo '<a href="'.href('index.php?page=password&f=changeMyPassword&toPolicy='.$policy.'&userAccount='._USERACCOUNT.'&policy=public',array('skin','lang','sessionID')).'"><span class="icon-key" title="'._PASSWORD.'"></span></a>';
+ echo '<a href="'.href('index.php?page=session&f=googleapi&userAccount='._USERACCOUNT).'"><span class="icon-googleplus" title="'._GOOGLEAPI.'"></span></a>';
+ echo '<a href="'.href('index.php?page=session&f=facebookConnect&userAccount='._USERACCOUNT).'"><span class="icon-facebook" title="'._FACEBOOK_CONNECT.'"></span></a>';
+
+ echo '<span class="onClickHideShow" >'._USERCN.'</span>';
+ //echo '<a id="logout" title="'._LOGOUT.'" href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">';
+ //echo $loginout_img;
+ //echo '</a>';
+ echo ' <span class="onClickHideShow icon-cog"></span>';
+ echo '<div id="settings" class="openable" style="display: none">';
+ echo '<div>';
+ echo '<p class="name">'._USERCN.'</p>';
+ echo '<p class="account">'._USERACCOUNT.'</p>';
+ echo '</div>';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?page=password&f=changeMyPassword&toPolicy='.$policy.'&userAccount='._USERACCOUNT.'&policy=public',array('skin','lang','sessionID')).'">'._PASSWORD.'</a></td>';
+ echo '<td><a href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">'._LOGOUT.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ formBegin();
+ $sessionMaxIdleTime=$sessionAlertTime=0;
+ if ((_SESSIONID!='' && _POLICY!='public') && defined('_SESSION_MAX_IDLE_TIME') && _SESSION_MAX_IDLE_TIME>0) {
+ $sessionMaxIdleTime=((_SESSION_MAX_IDLE_TIME*1000*60*60)+1000);
+ if (defined('_SESSION_ALERT_TIME')) $sessionAlertTime = ((_SESSION_MAX_IDLE_TIME*1000*60*60)-(_SESSION_ALERT_TIME*1000*60));
+ }
+ echo '<input type="hidden" id="SESSION_MAX_IDLE_TIME" value="'.$sessionMaxIdleTime.'" />';
+ echo '<input type="hidden" id="SESSION_ALERT_TIME" value="'.$sessionAlertTime.'" />';
+ formEnd();
+ echo '</div>';
+
+ echo '</div>';
+ } // policy != public
+ echo '</li>';
+ echo '</ul>';
+ // ------------- POZ ------------
+
+
+ echo "<!--// NAV2 start //-->\n";
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'vertical' : 'horizontal';
+ echo '<div id="nav2" class="'.$_defaultPageLayout.'">';
+// echo '<span id="hideNav2:tavtarto" class="onClickHide">X</span>';
+
+// $__M = $MENU['modules'][$page]['sub'][$sub];
+
+ echo '<div id="mayorIcons" class="icons" >';
+ echo '<span id="leftsideclose" class="icon-resize-full" title="'._ICON_SWAPNAV.'"></span>';
+// echo '<span id="" class="icon-envelope"></span>';
+// echo '<span id="skin-vakbarat" class="icon-blind"></span>';
+ if (in_array('vakbarat',$SKINSSHOW)) echo '<span id="skin-vakbarat" class="icon-braille" title="'._ICON_VAKBARAT.'"></span>';
+ if (in_array('oldschool',$SKINSSHOW)) echo '<span id="skin-oldschool" class="icon-view-mode" title="'._ICON_OLDSCHOOL.'"></span>';
+// echo '<span id="nav2fullmenu" class="icon-list"></span>';
+ echo '<span id="mayorMenuSearchIcon" class="icon-search" title="'._ICON_SEARCH.'"></span>';
+ echo '<span id="mayorErrorSign" class="icon-exclamation-sign" style="display:none"></span>';
+ // echo '<div class="g-signin2" data-onsuccess="onSignIn"></div>';
+ echo '</div>';
+
+ echo '<ul>';
+ if (is_array($NAV[2])) {
+ /* Plusz menü - teszt */
+ if (is_array($__M)) {
+ foreach ($__M as $__f=>$__D) {
+ echo '<li class="fullmenuitem">';
+ echo '<a href="">'.$__D[0]['txt'].'</a>';
+ echo '</li>';
+ }
+ }
+ foreach ($NAV[2] as $N2) {
+ $txt = '';
+ $i = intval($N2['index']);
+ if (isset($N2['sub'])) {
+ if (!isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N2['page'] ]['sub'][ $N2['sub'] ][ $N2['f'] ][ $i ];
+ }
+ } elseif (isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N2['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f']);
+
+ if ($page == $N2['page'] && $sub == $N2['sub'] && (!isset($N2['f']) || $f == $N2['f'])) $class = ' class="aktiv" '; else $class ='';
+ if ($txt != '') {
+ echo '<li class="nav2menuitem '.'">';
+ echo '<a href="'.$href.'"'.$class.'>';
+ if (isset($M['icon'])) echo '<span class="'.$M['icon'].'"> </span>';
+ echo $txt;
+ echo '</a>';
+ echo '</li>';
+ }
+ }
+ }
+ echo '</ul>';
+ if (function_exists('_nav2widget')) _nav2widget();
+ echo '</div>'."\n<!--// NAV2 end //-->\n";
+ echo '</div>'."\n";
+
+ mayor_menu_full($MENU);
+ mayor_breadcrumb();
+
+}
+
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorfoot '.$_defaultPageLayout.'" id="mayorfoot">'._MAIN_FOOTER.'</div>'."\n\n";
+ echo "</body>\n</html>";
+}
+
+function mayor_menu_full($MENU,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) { // TESTING ONLY
+
+ global $policy, $page, $sub, $f, $LANGUAGES, $SKINSSHOW, $_COLORS, $NAVI;
+
+ echo '<div id="mayorNav" style="display:none">';
+
+ $NAVI[] = array('txt'=>'Kereső', 'url'=>'','icon'=>'icon-search','id'=>'mayorNaviSearchIcon');
+ if (count($NAVI)>0) {
+ echo '<div class="mayorNavIcons">';
+ for ($i=0; $i<count($NAVI); $i++) {
+ echo '<div id="'.$NAVI[$i]['id'].'">';
+ if ($NAVI[$i]['url']!='') echo '<a href="'.href($NAVI[$i]['url']).'">';
+ echo '<span class="'.$NAVI[$i]['icon'].'"></span><br/>';
+ echo $NAVI[$i]['txt'];
+ if ($NAVI[$i]['url']!='') echo '</a>';
+ echo '</div>';
+ }
+ echo '</div>';
+ }
+ echo '<ul>'."\n";
+ if (is_array($MENU)) {
+ $active_page=false;
+ foreach ($MENU as $aModule => $pItems) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($pItems); $i++) {
+ if ($page == $aModule and
+ ( $active_page===false && ( $_SERVER["REQUEST_URI"]=='/' || (!isset($pItems[$i]['url'])) || strpos($_SERVER["REQUEST_URI"],$pItems[$i]['url']) !== false || strpos($pItems[$i]['url'],"page=$page") !== false) )
+ ) {
+ echo '<li class="active___">';
+ $active_page=true;
+ } else {
+ echo '<li style="display: ;" class="openable___">';
+
+ }
+ if (isset($pItems[$i]['url']) && $pItems[$i]['url'] != '') {
+ if ($pItems[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$pItems[$i]['url']);
+ elseif (substr($pItems[$i]['url'],0,4) == 'http') $href = href($pItems[$i]['url'], array());
+ elseif (isset($pItems[$i]['get']) && is_array($pItems[$i]['get'])) $href = href($pItems[$i]['url'], $pItems[$i]['get']);
+ else $href = href($pItems[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($pItems[$i]['target']))?' target="'.$pItems[$i]['target'].'" ':'').'>'
+ .$pItems[$i]['txt']
+ .'</a>'."\n";
+ // --- sub ---
+
+ @$pageArray = $MENU['modules'][$aModule];
+
+ if (is_array($pageArray) && count($pageArray)>0) {
+ echo '<ul class="sub">'."\n";
+ foreach ($pageArray as $aSub => $sItems) {
+ if ($aSub != 'sub') {
+ for ($j=0;$j<count($sItems);$j++) {
+ if (
+ $page == $aModule and
+ (
+ (!isset($sItems[$j]['url']) && $f == $aSub)
+ || (isset($sItems[$j]['url']) && strpos($_SERVER["REQUEST_URI"],$sItems[$j]['url']) !== false)
+ )
+ ) {
+ echo '<li class="active">'; $activeSub = true;
+ } else {
+ echo '<li>'; $activeSub = false;
+ }
+ if (isset($sItems[$j]['url']) && $sItems[$j]['url'] != '') {
+ if ($sItems[$j]['url'][0] == '&') $href = href("index.php?page=$aModule&f=$aSub".$sItems[$j]['url']);
+ elseif (substr($sItems[$j]['url'],0,4) == 'http') $href = href($sItems[$j]['url'], array());
+ elseif (isset($sItems[$j]['get']) && is_array($sItems[$j]['get'])) $href = href($sItems[$j]['url'], $sItems[$j]['get']);
+ else $href = href($sItems[$j]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&f=$aSub",array('policy','sessionID','lang','skin'));
+ }
+ @$subArray = $MENU['modules'][$aModule]['sub'][$aSub];
+ if (!is_array($subArray) || count($subArray) == 0) {
+ echo '<a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ } else { // vannak al-al menúk (f - menü)
+ echo '<a class="larr" href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ // -- f menü --
+ echo '<ul class="fmenu">'."\n";
+
+ foreach ($subArray as $anF => $items) {
+ for ($k=0;$k<count($items);$k++) {
+ if ($aModule == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$k]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$k]['url']) !== false)
+ ) { echo '<li class="active">'."\n"; }
+ else { echo '<li>'."\n"; }
+
+ if (isset($items[$k]['url']) && $items[$k]['url'] != '') {
+ if ($items[$k]['url'][0] == '&') $href = href("index.php?page=$aModule&sub=$aSub&f=$anF".$items[$k]['url']);
+ elseif (substr($items[$k]['url'],0,4) == 'http') $href = href($items[$k]['url'], array());
+ elseif (isset($items[$k]['get']) && is_array($items[$k]['get'])) $href = href($items[$k]['url'], $items[$k]['get']);
+ else $href = href($items[$k]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$k]['target']))?' target="'.$items[$k]['target'].'" ':'').'> '
+ .$items[$k]['txt'].' </a>'."\n";
+
+ echo '</li>'."\n"; // al-al menüpont vége (f)
+ } // for - on items
+ } // foreach - on subArray
+
+ echo '</ul>'."\n"; // fmenu
+ } // vannak al-al menük (f -menü)
+
+ echo '</li>'."\n"; // almenü-pont vége (sub)
+ } // for - on sItems
+ } // ha nem sub == aSub
+ } // foreach pageArray
+ echo '</ul>'."\n"; // submenu
+ } // vannak almenük (sub)
+ echo '</li>'."\n"; // menüpont vége (page)
+ } // for - on pItems
+ } // ha aModule != 'modules'
+ } // foreach on MENU
+ }
+ echo '</ul>'."\n";
+ echo '</div>'."\n";
+
+ // ------------------------
+
+
+
+}
+
+function mayor_breadcrumb() { // TESTING ONLY
+
+ return false;
+ global $MENU,$page;
+ echo '<div class="breadcrumbs" style="position:fixed; top:100px; right:20px; z-index:100000; background-color: red;">';
+ echo '<ul>';
+ for ($i=0; $i<count($_SESSION['breadcrumb']); $i++) {
+ $H = $_SESSION['breadcrumb'][$i];
+ echo '<li>';
+ echo implode(':',$H).' = ';
+ echo '<a href="'.href('index.php?page='.$H['page'].'&sub='.$H['sub'].'&f='.$H['f']).'">'.$H['txt'].'</a>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '</div>';
+}
+
+//dump(array_keys($MENU));
+//dump($MENU['modules']);
+ // naplo:orarend:i:[txt,url,refresh,icon]
+ // portal:sub:
+//die();
+
+?>
diff --git a/mayor-orig/www/skin/classic/base/img/ajaxLoad.gif b/mayor-orig/www/skin/classic/base/img/ajaxLoad.gif
new file mode 100644
index 00000000..ab584bdf
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/ajaxLoad.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/alert.png b/mayor-orig/www/skin/classic/base/img/alert.png
new file mode 100644
index 00000000..ae0b97e6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/alert.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/favicon.ico b/mayor-orig/www/skin/classic/base/img/favicon.ico
new file mode 100644
index 00000000..b62f5763
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/favicon.ico
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/flags/de_DE.gif b/mayor-orig/www/skin/classic/base/img/flags/de_DE.gif
new file mode 100644
index 00000000..eec5b66b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/flags/de_DE.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/flags/en_US.gif b/mayor-orig/www/skin/classic/base/img/flags/en_US.gif
new file mode 100644
index 00000000..06fdc66b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/flags/en_US.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/flags/hu_HU.gif b/mayor-orig/www/skin/classic/base/img/flags/hu_HU.gif
new file mode 100644
index 00000000..8a85f033
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/flags/hu_HU.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/flags/jp_JP.gif b/mayor-orig/www/skin/classic/base/img/flags/jp_JP.gif
new file mode 100644
index 00000000..b4100239
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/flags/jp_JP.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/gradient.jpg b/mayor-orig/www/skin/classic/base/img/gradient.jpg
new file mode 100644
index 00000000..57d9afbc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/gradient.jpg
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/gradient.png b/mayor-orig/www/skin/classic/base/img/gradient.png
new file mode 100644
index 00000000..e9a9cfca
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/gradient.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-flip.png b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-flip.png
new file mode 100644
index 00000000..5021cec5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-flip.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-marc15.png b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-marc15.png
new file mode 100644
index 00000000..84a84068
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-marc15.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-santa.png b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-santa.png
new file mode 100644
index 00000000..bdd10d8b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl-santa.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.gif b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.gif
new file mode 100644
index 00000000..378ffb88
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.jpg b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.jpg
new file mode 100644
index 00000000..74e323c8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.jpg
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.png b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.png
new file mode 100644
index 00000000..ca42a8d0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/mayor_small_ssl.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/parent.gif b/mayor-orig/www/skin/classic/base/img/policy/parent.gif
new file mode 100644
index 00000000..cbb71a41
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/parent.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/parent100.gif b/mayor-orig/www/skin/classic/base/img/policy/parent100.gif
new file mode 100644
index 00000000..1d14530b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/parent100.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/parent100.png b/mayor-orig/www/skin/classic/base/img/policy/parent100.png
new file mode 100644
index 00000000..9537b1ba
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/parent100.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/private.gif b/mayor-orig/www/skin/classic/base/img/policy/private.gif
new file mode 100644
index 00000000..238bc04b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/private.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/private100.gif b/mayor-orig/www/skin/classic/base/img/policy/private100.gif
new file mode 100644
index 00000000..82faef04
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/private100.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/private100.png b/mayor-orig/www/skin/classic/base/img/policy/private100.png
new file mode 100644
index 00000000..f2716596
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/private100.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/public.gif b/mayor-orig/www/skin/classic/base/img/policy/public.gif
new file mode 100644
index 00000000..21a7298c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/public.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/public100.gif b/mayor-orig/www/skin/classic/base/img/policy/public100.gif
new file mode 100644
index 00000000..368c7a4d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/public100.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/img/policy/public100.png b/mayor-orig/www/skin/classic/base/img/policy/public100.png
new file mode 100644
index 00000000..8aee3a73
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/img/policy/public100.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/base/javascript/base.jquery.min.js b/mayor-orig/www/skin/classic/base/javascript/base.jquery.min.js
new file mode 100644
index 00000000..713de384
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/javascript/base.jquery.min.js
@@ -0,0 +1,977 @@
+var debug = false;
+function _debug(str) {
+ if (debug) console.log(str);
+}
+
+// A $.getScript hívás cache-eléséért...
+$.ajaxSetup({
+ cache: true
+});
+
+includeCSS = function(href) {
+ for (i = 0; i < arguments.length; i++) {
+ href = arguments[i];
+ var cssLink = $("<link>");
+ $("head").append(cssLink); //IE hack: append before setting href
+ cssLink.attr({
+ rel: "stylesheet",
+ type: "text/css",
+ href: href+'?r='+$('body').data('mayorrev')
+ });
+ }
+};
+
+// Hogy az aloldalak megváják az alábbi modulok betöltését...
+$.holdReady(true);
+ // A korábbi loadJs megoldás helyett...
+ includeCSS(
+ "skin/classic/share/javascript/jquery-ui/css/base/jquery-ui.min.css",
+ "skin/classic/share/javascript/jquery-ui/css/base/jquery-ui-timepicker-addon.css"
+ );
+
+ $.getScript("skin/classic/share/javascript/jquery-ui/jquery-ui.min.js").done(function() {
+ $.getScript("skin/classic/share/javascript/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js").done(function() {
+ $.getScript("skin/classic/share/javascript/jquery-ui/jquery-ui-timepicker-addon.js").done(function() {
+ $.getScript("skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-timepicker-hu.js").done(function() {
+ $.holdReady(false);
+ });
+ });
+ });
+ });
+
+
+$(document).ready(function() {
+
+ /*var isMobile = false;
+ if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
+ || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) isMobile = true;
+ */
+
+ $('body').bind('click', mayorClick);
+ $('body').bind('change', mayorChange);
+ $('body').bind('keypress', mayorKeyPress);
+ $('body').bind('keydown', mayorKeyDown);
+ $('body').bind('submit', mayorSubmit);
+
+ $(window).resize(mayorNavResize);
+ if ($(document).width()>$(window).width()) mayorNavResize();
+ $('#leftsideclose').bind('click', mayorNavResize);
+
+ if (e = $('#focus')) e.focus(); // A focus id-t használhatjuk automatikus fokuszálásra... (ld. login)
+ // A loadUrl id-t használhatjuk automatikus betöltésre... hol használunk ilyet? Például a download oldalon.
+ loadElement = $('#loadUrl');
+ if (loadElement.length > 0) { window.location.replace(loadElement.attr('href')); }
+
+ $('.date').datepicker({ dateFormat: "yy-mm-dd" });
+ $('.datetime').datetimepicker({ dateFormat: "yy-mm-dd", timeFormat: "HH:mm", controlTypee: "select" });
+ $('#hideHelp').click(function() { $('#takaro').hide(); });
+ $('#help').draggable();
+ $('#updateWindow').draggable({ handle: '#updateHeader' });
+ var uwNext = {'width': '100%', 'top': '10px', 'left': '0px' };
+ $('#updateHeader').dblclick(function(event) {
+ tmp = $('#updateWindow').css(['width','top','left']);
+ $('#updateWindow').css(uwNext);
+ uwNext = tmp;
+ });
+
+ // hibakijelzés
+ mayorErrorCounter = 0;
+ $('#mayorErrorSmall').hover(
+ function() {
+ if ($('#mayorErrorSmall div').height() > 25 ) {
+ var h = $('#mayorErrorSmall div').height();
+ if (h>=300) h=300;
+ $('#mayorErrorSmall').css('overflow','auto');
+ $('#mayorErrorSmall').stop().animate({height: h+"px"}, 400);
+ }
+ mayorErrorCounter++;
+ },
+ function() {
+ if ($('#mayorErrorSmall').hasClass('closedbyuser')==true) return;
+ if ($('#mayorErrorSmall div').height() > 25 ) {
+ $('#mayorErrorSmall').css('overflow','hidden');
+ }
+ if (mayorErrorCounter>3) {
+ $('#mayorErrorSmall').slideUp( 300 );
+// $('#mayorErrorSign').show().animate({ color: 'red'}, 1000).delay(1000).animate({color: "#778899"}, 1000);
+ $('#mayorErrorSign').fadeIn(300);
+ } else {
+ $('#mayorErrorSmall').stop().animate({height: "20px"}, 200);
+ }
+ }
+ );
+
+// !!!!!!!!!!!!!!!!!!!
+// !!!!!!!!!!!!!!!!!!! DEV
+// $('#mayorNav').toggle();
+
+ $('#hamburgerIcon').click(function(){
+ window.scrollTo(0, 0);
+ $(this).toggleClass('nyitva').toggleClass('is-active');
+ $('#mayorNav').toggle();
+ });
+
+ $('.hamburger').click(function(){
+ window.scrollTo(0, 0);
+ $(this).toggleClass('is-active');
+ $('#mayorNav').toggle();
+ });
+
+ // --TODO mayorClick()
+ $('#mayorErrorHide').click(function(){
+ mayorErrorCounter=0;
+ $('#mayorErrorSmall').addClass('closedbyuser').fadeOut('fast');
+ $('#mayorErrorSign').fadeIn('fast');
+ });
+ // --TODO mayorClick();
+ $('#mayorErrorSign').click(function(){
+ mayorErrorCounter=0;
+ $('#mayorErrorSmall').slideDown(100);
+ $('#mayorErrorSign').fadeOut();
+ });
+ // --TODO mayorSubmit
+ $('#mayorGlobalLogin form.check').submit(function() {
+ var inputs = $('#mayorGlobalLogin form input');
+ for (i=0 ; i<inputs.length; i++) {
+ if (inputs[i].name==='userAccount' || inputs[i].name==='userPassword') {
+ if ($(inputs[i]).val() === '') {
+ $(inputs[i]).prev().addClass('failed');
+ return false;
+ }
+ }
+ }
+ $('#mayorGlobalLogin form').submit();
+ });
+ $('#mayorGlobalLogin form input').focus(function(event) {
+ $(event.target).prev().removeClass('failed');
+ });
+ $('#mayorGlobalLogin div.large').hover(function(event) {
+ $(event.target).removeClass('icon-lock').addClass('icon-unlock');
+ },function(event) {
+ $(event.target).removeClass('icon-unlock').addClass('icon-lock');
+ }
+ );
+ $('#mayorGlobalLogin form.fb').submit(function() { // facebook
+ FB.getLoginStatus(function(response) {
+ if (response.status === 'connected') {
+ mayor_facebookconnect_redirect();
+ } else if (response.status === 'not_authorized') {
+ FB.login(function(loginResponse) {
+ if (loginResponse.status=='connected') {
+ mayor_facebookconnect_redirect();
+ }
+ });
+ } else {
+ FB.login(function(loginResponse) {
+ if (loginResponse.status=='connected') {
+ mayor_facebookconnect_redirect();
+ }
+ });
+ }
+ },true);
+ return false;
+ });
+
+ $('#logo').on('dragstart', function(event) { event.preventDefault(); });
+
+ // onLoadUpdate
+ $('.onLoadUpdate').each( function(index, element) {
+ var formElement = $(element).closest('form');
+ updateForm(formElement, $(element));
+ });
+
+ var url = document.URL;
+ if (url.indexOf('policy=private')>0) {
+ if ($('#SESSION_ALERT_TIME').val() !== undefined) {
+ var sessionAlertTime = $('#SESSION_ALERT_TIME').val();
+ if (sessionAlertTime>0) setTimeout('mayorSessionTimeOutAlert()',sessionAlertTime);
+ }
+ if ($('#SESSION_MAX_IDLE_TIME').val() !== undefined) {
+ var sessionMaxIdleTime = $('#SESSION_MAX_IDLE_TIME').val();
+ if (sessionMaxIdleTime>0) setTimeout('mayorSessionTimedOut()',sessionMaxIdleTime);
+ }
+ }
+ $('form').preventDoubleSubmission();
+
+});
+
+/*
+ .gsub --> .replace
+ .up --> parents()[0] = parent(), vagy inkább closest?
+ include --> indexOf() > -1
+ .down --> .find
+ $F() --> .val()
+*/
+
+(function($) {
+ var re = /([^&=]+)=?([^&]*)/g;
+ var decode = function(str) {
+ return decodeURIComponent(str.replace(/\+/g, ' '));
+ };
+ $.parseParams = function(query) {
+ var params = {}, e;
+ if (query) {
+ if (query.substr(0, 1) == '?') {
+ query = query.substr(1);
+ }
+
+ while (e = re.exec(query)) {
+ var k = decode(e[1]);
+ var v = decode(e[2]);
+ if (params[k] !== undefined) {
+ if (!$.isArray(params[k])) {
+ params[k] = [params[k]];
+ }
+ params[k].push(v);
+ } else {
+ params[k] = v;
+ }
+ }
+ }
+ return params;
+ };
+})(jQuery);
+
+mayorKeyDown = function(event) {
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ // Esc - WebKit csak keyup esetén
+ if (charKeyCode==27) { // Esc
+ $('#takaro').hide(); // takaró elem
+ $('#keyHelp').hide(); // gyorsbillentyűk
+ $('#help').hide(); // súgó
+ $('.inlinehelp .openable').hide(); // helyi súgó
+ $('#mayorSearch').hide(); // kereső
+ if ($('#inform') !== null) $('#inform').parent('div').hide(); // haladási/tanmenet
+ if ($('#haladform') !== null) $('#haladform').parent('div').hide(); // haladási/tankör órái
+ if ($('#jegyAdat') !== null) $('#jegyAdat').hide(); // osztályozó/tankor
+ if ($('#updateWindow').is(':visible')) {
+ $('#updateWindow').hide(); // update ablak
+ if ($.isFunction(hideUpdateLayer)) hideUpdateLayer();
+ }
+ if ($('#updateWindowSideSub').hasClass('nyitva') ) {
+ $('#updateWindowSideSub').removeClass('nyitva');
+ } else if ($('#updateWindowSide').hasClass('nyitva') ) {
+ $('#updateWindowSide').removeClass('nyitva'); // update ablak (jobb oldal)
+ if ($.isFunction(hideUpdateWindowSide)) hideUpdateWindowSide();
+ } else if (ctrlKey) { //nyitjuk
+ $('#updateWindowSide').addClass('nyitva');
+ //$('#updateWindowSideSub').toggleClass('nyitva');
+ }
+ } else if (charKeyCode==112) { // F1 - Help // charKeyCode==121 F10
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var page=params.page?params.page:'';
+ var sub=params.sub?params.sub:'';
+ var f=params.f?params.f:'';
+ var url = "http://wiki.mayor.hu/doku.php?id="+page+":"+sub+":"+f;
+ var helpElement = $('#help');
+ if (typeof(helpElement) === 'undefined' || helpElement === null) {
+ window.open(url,'help');
+ } else {
+ if (helpElement.css('display') == 'none') helpElement.children('iframe').prop('src',url);
+ $('#takaro').fadeToggle('fast'); // takaró elem
+ helpElement.fadeToggle('fast');
+ }
+// event.stopImmediatePropagation();
+ event.preventDefault();
+// event.stopPropagation();
+ } else if (charKeyCode==86 && ctrlKey && shiftKey) { // Ctrl-Shift-V: Vakbarát nézet
+ if (location.toString().indexOf('skin')>-1) {
+ window.location = location.toString().replace(/skin=([^&]*)/,'skin=vakbarat');
+ } else {
+ if (location.toString().indexOf('?')>-1) window.location = location.toString()+'&skin=vakbarat';
+ else window.location = location.toString()+'?skin=vakbarat';
+ }
+ } else if (charKeyCode==38) { // fel nyíl
+ if (element.closest('#mayorSearch').length == 1) {
+ $('#mayorSearch *:focus').removeClass('aktiv').prev('a').focus();
+ $('#mayorSearch a:focus').addClass('aktiv');
+ event.preventDefault();
+ }
+ } else if (charKeyCode==40) { // le nyíl
+ if (element.closest('#mayorSearch').length == 1) {
+ $('#mayorSearch *:focus').removeClass('aktiv').next('a').focus();
+ $('#mayorSearch a:focus').addClass('aktiv');
+ event.preventDefault();
+ }
+ } else {
+ }
+
+}
+
+mayorKeyPress = function(event) {
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ if ($('capsLockWarning')) {
+ var s = String.fromCharCode( event.which );
+ if ( s.toUpperCase() === s && s.toLowerCase() !== s && !event.shiftKey ) {
+ $('#capsLockWarning').show();
+ } else {
+ $('#capsLockWarning').hide();
+ }
+ }
+
+ // formon belül
+ if(event.target.type!='text' && event.target.type!='textarea' && event.target.type!='select' && event.target.type!='select-one' && event.target.type!='password') {
+ var location = window.location.toString();
+ if (charKeyCode==63) { // ?: Help
+ $('#takaro').toggle();
+ $('#keyHelp').toggle();
+ } else if (charKeyCode==83) { // S: settings
+ $('#settings').toggle();
+ } else if (charKeyCode==70 || charKeyCode==95) { // F,_: find
+ $('#mayorSearch').toggle();
+ event.preventDefault();
+ $('#mayorSearch input[type=text]').focus();
+ } else if (charKeyCode==68) { // D: debug
+ $('#debug').toggle();
+// } else if (charKeyCode==104) {
+// alert('Alt-H: HELP: '+event.altKey+event.target.type);
+ } else if (charKeyCode==76) { // L: login/logout
+ if (location.indexOf('policy=private')>-1 || location.indexOf('policy=parent')>-1) {
+ window.location = window.location.toString().replace(/page=([^&]*)/,'page=session').replace(/sub=([^&]*)/,'sub=').replace(/f=([^&]*)/,'f=logout').replace(/policy=([^&]*)/,'policy=public');
+ } else {
+ if (location.indexOf('?')>-1) {
+ // window.location = window.location.toString().replace(/page=([^&]*)/,'page=auth').replace(/sub=([^&]*)/,'sub=').replace(/f=([^&]*)/,'f=login').replace(/policy=([^&]*)/,'policy=public');
+ window.location=window.location.toString().replace(/\?(.*)/,'')+'?page=auth&f=login';
+ } else {
+ window.location = window.location+'?page=auth&sub=&f=login&policy=public';
+ }
+ }
+ } else {
+ }
+ }
+}
+
+mayorClick = function(event) {
+ var element = $(event.target);
+ $('body').data('lastClick',element);
+ $('.inlinehelp .openable:visible').hide();
+ $('#mayorSearch:visible').hide();
+ if (element.hasClass('confirm')) {
+ // A confirm elemre kattintva a form jóváhagyását előbb jóvá kell hagyni
+ if (!confirm(element.prop('title'))) {
+ event.preventDefault();
+ }
+ }
+ if (element.hasClass('onClickHideShow')) {
+ var o = element.parents('.hideShowContainer').find('.openable').toggle();
+ event.preventDefault();
+ }
+
+ if (element.hasClass('onClickHide')) {
+ // Az onClickHide elem kattintásra becsukja a hozzárendelt elemet. A hozzárendelés
+ // az id-ben történik: 'hide'+ElemId+[':'+elemId2...]
+ var id = element[0].id;
+ if (id && id.substring(0,4) == 'hide') {
+ var openables = ('#'+id.charAt(4).toLowerCase()+ id.substring(5).replace(':',', #') );
+ $(openables).hide();
+ }
+ }
+ if (element.hasClass('onClickShow')) {
+ // Az onClickShow elem kattintásra kinyitja a hozzárendelt elemet, miközben a többi
+ // őt tartalmazó hideShowContainer-en belüli openable elemet becsukaja. A hozzárendelés
+ // az id-ben történik: 'show'+ElemId+[':'+elemId2...]
+ var container = element.parents('.hideShowContainer');
+ var openable = container.find('.openable').hide();
+ var onclickshow = container.find('.onClickShow').removeClass('selected');
+ var id = element[0].id;
+ if (id && id.substring(0,4) == 'show') {
+ var openables = ('#'+id.charAt(4).toLowerCase()+ id.substring(5).replace(':',', #') );
+ $(openables).show();
+ }
+ element.addClass('selected');
+ }
+ if (element[0].id == 'updateCloseButtonClick') {
+ if ($('#updateWindow').is(':visible')) {
+ $('#updateWindow').hide();
+ $('#takaro').hide();
+ if ($.isFunction(hideUpdateLayer)) hideUpdateLayer();
+ }
+ }
+ if (element[0].id == 'btn_updateWindowSideClose') {
+ //if ($('#updateWindowSide').is(':visible')) {
+ $('#updateWindowSideSub').removeClass('nyitva');
+ $('#updateWindowSide').removeClass('nyitva');
+ if ($.isFunction(hideUpdateWindowSide)) hideUpdateWindowSide();
+ //}
+ }
+ if (element[0].id == 'btn_updateWindowSideSubClose') {
+ $('#updateWindowSideSub').removeClass('nyitva');
+ if ($.isFunction(hideUpdateWindowSideSub)) hideUpdateWindowSideSub();
+ }
+ if (element.hasClass('onClickUpdateAction')) {
+//TODO - check
+ element.parents('form').find('input[name=action]').val(element[0].id);
+ }
+ if (element.hasClass('onClickUpdateWindow')) {
+ // A kattintott elem href paraméteréből vett url-ből kiveszi a getParameters-ben megadott
+ // paramétereken kívüli paramétereket, ezeket post paraméterként rakja az updateForm-ba.
+ // Az url "maradéka" pedig a form action-be kerül, végül update-eli a form-ot...
+ formElement = $('#updateForm');
+ formElement.html('');
+ var origUrl = '', title = '';
+ if (element.prop('title')) $('#updateHeader').html(element.prop('title'));
+ if (element.prop('href')) origUrl = element.prop('href');
+ var pos = origUrl.indexOf("?");
+ if (pos != -1) url = origUrl.substr(0,pos);
+ else url = origUrl;
+ var getParameters = ["page", "sub", "f", "lang", "sessionID", "policy"];
+ var separator = '?';
+
+ var o = $.parseParams( origUrl.split('?')[1] );
+ $.each(o,function(key,value) {
+ if (getParameters.indexOf(key) != -1) {
+ url = url+separator+key+'='+value;
+ separator='&';
+ } else if (key == 'skin') {
+ url = url+separator+'skin=ajax';
+ separator='&';
+ } else {
+ //formElement.insert({ bottom: new Element('input', {type : 'hidden', name : key, value : value}) });
+ jQuery('<input/>').attr('type','text').attr('name',key).attr('value',value).appendTo(formElement);
+ }
+ });
+
+ formElement.prop('action',url);
+ updateForm(formElement, element);
+// event.stopImmediatePropagation();
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ if (element.hasClass('onClickUpdate')) {
+ event.preventDefault();
+ // Az onClickUpdate class tagjaira kattintva update-eli az őket tartalmazó formot
+ var formElement = element.parents("form");
+ updateForm(formElement, element);
+ event.preventDefault();
+ event.stopPropagation();
+// jQuery.post(url);
+ }
+ if (event.target.id == 'nav2fullmenu') {
+ $('#nav2').find('.fullmenuitem').toggle();
+ $('#nav2').find('.nav2menuitem').toggle();
+ $('#nav2fullmenu').toggleClass('aktiv');
+ }
+ if (event.target.id ==='skin-oldschool') {
+ mayorSkinChange('oldschool');
+ }
+ if (event.target.id ==='skin-vakbarat') {
+ mayorSkinChange('vakbarat');
+ }
+}
+
+
+
+
+// || event.target.id ==='mayorNaviSearchIcon') {
+
+
+mayorSkinChange = function(toSkin) {
+ if (location.toString().indexOf('skin')>-1) {
+ window.location = location.toString().replace(/skin=([^&]*)/,'skin='+toSkin);
+ } else {
+ if (location.toString().indexOf('?')>-1) window.location = location.toString()+'&skin='+toSkin;
+ else window.location = location.toString()+'?skin='+toSkin;
+ }
+}
+
+mayorChange = function(event) {
+
+ var element = $(event.target);
+
+ if (element.hasClass('onChangeSubmit') && window.location.toString().indexOf('skin=vakbarat')<=0) {
+ element.parents('form').submit();
+ }
+ if (element.closest('form.onChangeRequest').length > 0) {
+ var formElement = element.closest('form.onChangeRequest');
+
+ var uriOrig = formElement.attr('action');
+ var uri = formElement.attr('action').replace(/skin=([^&]*)/,'skin=ajax')+'&request=true';
+
+ // input class="ajaxOption"-ban megadott value="onChangeRequestStop" tudja tiltani az eseményt (új szülő felvétele - diakSzulo oldal)
+ var ajaxRequestOK = (formElement.find('input.ajaxOption[value=onChangeRequestStop]').length == 0);
+ // A class="DOA" - disable on ajax req - elemek letiltása
+ formElement.find('.DOA').prop('disabled',true);
+
+ formElement.attr('action', uri);
+ element.addClass('ajaxRequest');
+ if (ajaxRequestOK) {
+ ajaxRequest(formElement, {
+ onSuccess: function(transport, status, xhr) {
+ element.addClass('ajaxRequestDone');
+ element.removeClass('ajaxRequest');
+ element.removeClass('ajaxRequestError');
+ formElement.find('.DOA').prop('disabled',false).removeClass('ajaxRequest');
+ // Egyedi kezelőfüggvény meghívása
+ // pre-be pl.: $_JSON['onSuccess']['func'] = 'myTestFunc'; $_JSON['onSuccess']['param'] = array('txt' => 'Hahó');
+ // js-be pl.: myTestFunc = function(param) { console.log('myTestFunc: '+param.txt); }
+ if (transport.onSuccess && transport.onSuccess.func && $.isFunction(window[transport.onSuccess.func]))
+ window[transport.onSuccess.func](transport.onSuccess.param);
+
+ },
+ onFailure: function() {
+ element.addClass('ajaxRequestError');
+ element.removeClass('ajaxRequest');
+ element.removeClass('ajaxRequestDone');
+ formElement.find('.DOA').prop('disabled',false).removeClass('ajaxRequest');
+ }
+ });
+ }
+ formElement.attr('action', uriOrig);
+
+ }
+
+
+ if (element.hasClass('onChangeUpdate')) {
+ // Az onChangeUpdate class tagjaira kattintva update-eli az őket tartalmazó formot
+
+
+ var formElement = $(element).closest('form');
+ updateForm(formElement, $(element));
+ event.preventDefault();
+ event.stopPropagation();
+ }
+
+
+
+}
+
+function ucfirst(str) {
+ var f = str.charAt(0).toUpperCase();
+ return f + str.substr(1);
+}
+function lcfirst(str) {
+ var f = str.charAt(0).toLowerCase();
+ return f + str.substr(1);
+}
+
+
+mayorSubmit = function(event) {
+ var element = $(event.target);
+ var formElement;
+ if (element.is('form')) {
+ formElement = element;
+ // elmentettük a body.data.lastClick - be, hogy mi volt az utolsó clicked elem
+ var element2 = $('body').data('lastClick');
+ } else {
+ formElement = element.parents('form');
+ }
+ if (formElement.hasClass('onSubmitUpdate')) {
+ event.preventDefault();
+ // Az onSubmitUpdate class-ba sorolt formok submit esetén update-elve lesznek - !! az összes submit elmegy !!
+ updateForm(formElement, element2);
+ event.stopImmediatePropagation();
+ event.stopPropagation();
+ return false;
+ } else if (element.attr('id') == 'mayorSearch') {
+ //$('#nav li.active a:contains()')
+ $('#mayorSearch a').remove();
+ var pattern = $('#mayorSearch input[type=text]').val();
+ $('#nav li a:contains('+pattern+')').clone().appendTo('#mayorSearch');
+ if (pattern!=lcfirst(pattern))
+ $('#nav li a:contains('+lcfirst(pattern)+')').clone().appendTo('#mayorSearch');
+ if (pattern!=ucfirst(pattern))
+ $('#nav li a:contains('+ucfirst(pattern)+')').clone().appendTo('#mayorSearch');
+/* $('#nav li.active a:contains('+pattern+')').clone().appendTo('#mayorSearch');
+ if (pattern!=lcfirst(pattern))
+ $('#nav li.active a:contains('+lcfirst(pattern)+')').clone().appendTo('#mayorSearch');
+ if (pattern!=ucfirst(pattern))
+ $('#nav li.active a:contains('+ucfirst(pattern)+')').clone().appendTo('#mayorSearch');
+*/
+ return false;
+ }
+}
+/*
+var lastScrollLeft = 0;
+$(window).scroll(function() {
+ var documentScrollLeft = $(document).scrollLeft();
+ if (lastScrollLeft != documentScrollLeft) {
+ //console.log('scroll x'+documentScrollLeft);
+ lastScrollLeft = documentScrollLeft;
+ }
+ //mayorNavResize();
+});
+*/
+
+var mayorLoaderCounter = 0;
+mayorLoaderStart = function() {
+ mayorLoaderCounter++;
+ $('#poz li:first').addClass('mayorLoader');
+}
+mayorLoaderStop = function() { // override by naplo.js
+ $('#poz li:first').removeClass('mayorLoader');
+}
+
+
+mayorNavResize = function(event) {
+ if (event===undefined) return true;
+
+ var wi = $(window).width();
+ var navElem = $('#nav2');
+ var mayorbodyElem = $('#mayorbody');
+ var mayorfootElem = $('#mayorfoot');
+ var smallWidth = false;
+ if (event.target.id == "leftsideclose") swap=true; else swap = false;
+ if (navElem) {
+ if ($(document).width()>$(window).width()+140) smallWidth = true;
+ if ((swap || wi<1100 || smallWidth) && navElem.hasClass('vertical')) {
+ mayorbodyElem.removeClass('leftpad').addClass('toppad');
+ mayorfootElem.removeClass('leftpad').addClass('toppad');
+ navElem.removeClass('vertical').addClass('horizontal');
+// navElem.addClass('horizontal');
+// mayorbodyElem.addClass('toppad');
+// mayorfootElem.addClass('toppad');
+ new $.ajax('/index.php?skin=ajax&request=true&page=session&sub=&f=set&policy=public&layout=1', {
+ method: 'get',
+ success: function(transport) {
+ }
+ });
+ } else if
+ ((swap || (wi>=1100 && !smallWidth)) && navElem.hasClass('horizontal')) {
+ mayorbodyElem.removeClass('toppad').addClass('leftpad');
+ mayorfootElem.removeClass('toppad').addClass('leftpad');
+ navElem.removeClass('horizontal').addClass('vertical');
+// navElem.addClass('vertical');
+// mayorbodyElem.addClass('leftpad');
+// mayorfootElem.addClass('leftpad');
+ new $.ajax('/index.php?skin=ajax&request=true&page=session&sub=&f=set&policy=public&layout=0', {
+ method: 'post',
+ success: function(transport) {
+ }
+ });
+ } else {
+ //console.log('Nothing to do');
+ }
+ } else {
+ //console.log('Not ready');
+ }
+ /*if ($('#nav1').data('nav1count')==0) { // ha nincs nav1 menu, akkor engedélyezzük a nav dinamikus resize-ját (igen ám, de inicializálásnál ugrál)
+ $('nav').show();
+ var navSize = 140+$('#mayorGlobalLogin').width() + 0;
+ $('#nav>li').each(function() {
+ navSize+=($(this).width());
+ if (navSize>$('#mayorhead').width()) {
+ $(this).hide();
+ } else {
+ $(this).show();
+ }
+ });
+ }*/
+
+}
+
+updateForm = function(formElement, submitElement) {
+
+ var url = formElement.attr('action').replace(/skin=([^&]*)/,'skin=ajax');
+// szerintem ez mpst nem kell... ?
+// formElement.find('input[type=submit]').prop('disabled',true);
+// submitElement.prop('disabled',false);
+ if (submitElement && submitElement.attr('name')!==undefined) options = { submitClass: submitElement.attr('class'), submitName: submitElement.attr('name'), submitValue: submitElement.val() };
+ else options = false;
+ ajaxUpdate(formElement, url, options);
+
+}
+
+/**
+ * Az options paraméterben át kell adni az átadandó submit elem nevét és értékét, mert a serializeArray nem teszi be!
+ * , és a serialize()???
+**/
+ajaxUpdate = function(container, url, options) {
+
+ mayorLoaderStart();
+ postData = container.serializeArray();
+ if (options) postData.push({ name: options.submitName, value: options.submitValue });
+ postData.push({ name: 'mayorToken', value : $('body').data('mayortoken') });
+
+ $.ajax(url,{
+ data: postData,
+ type: 'POST',
+ success: function(transport, status, xhr){
+ var contentType=xhr.getResponseHeader('Content-type');
+ if (contentType.indexOf('application/json')>-1 || contentType.indexOf('text/html')>-1) {
+ if ( typeof transport.html !== 'undefined' && transport.html !== null) {
+ container.html(transport.html);
+ if ($.isFunction(showUpdateLayer)) showUpdateLayer(options);
+ } else if ($.isFunction(processJSON)) {
+ processJSON(transport);
+ } else {
+ }
+ } else {
+ container.html(xhr.responseText);
+ }
+ if (options && options.onSuccess && $.isFunction(options.onSuccess)) options.onSuccess(transport, status, xhr);
+ // IE bubbling? A most betöltött form-okra...
+ },
+ error: function (xhr,status,errText) { // Type: Function( jqXHR jqXHR, String textStatus, String errorThrown )
+ _debug(status);
+ _debug(errText);
+ updateSalt(xhr.getResponseHeader('Etag'));
+ },
+ complete: function(xhr, status) {
+ mayorLoaderStop();
+ updateSalt(xhr.getResponseHeader('Etag'));
+ }
+ });
+}
+
+ajaxRequest = function(formElement, options) {
+
+ var url = formElement.attr('action').replace(/skin=([^&]*)/,'skin=ajax');
+ var adat = formElement.serializeArray();
+ adat.push({ name: 'mayorToken', value : $('body').data('mayortoken') });
+
+ mayorLoaderStart();
+ $.ajax(url,{
+ data: adat,
+ type: 'POST',
+ success: function(transport, status, xhr){
+ if (options && options.onSuccess && $.isFunction(options.onSuccess)) options.onSuccess(transport, status, xhr);
+ },
+ error: function (xhr,status,errText) { // Type: Function( jqXHR jqXHR, String textStatus, String errorThrown )
+ _debug('stat: '+status);
+ _debug('errTxt: '+errText);
+ if (options && options.onFailure && $.isFunction(options.onFailure)) options.onFailure(xhr,status,errText);
+ },
+ complete: function(xhr, status) {
+ mayorLoaderStop();
+ updateSalt(xhr.getResponseHeader('Etag'));
+ }
+
+ });
+}
+
+var showUpdateLayer = function() {}
+var processJSON;
+updateSalt = function(etagHeader) {
+ if (etagHeader !== null) {
+ /**
+ * A header Etag mezője (__SALTVALUE-__SALTNAME[-...]) alapján frissítjük az input.salt mezőket
+ **/
+ etagArray=etagHeader.split("-");
+ $('input.salt').each(
+ function(index) {
+ // tömörített oldalküldés (?) esetén a web-szerver
+ if ($(this).prop('name') == etagArray[1]) $(this).val(etagArray[0]);
+ }
+ );
+ $('input.mayorToken').each(
+ function(index) {
+ if ($(this).prop('name') == 'mayorToken') $(this).val(etagArray[2]);
+ }
+ );
+ $('body').data('mayortoken',etagArray[2]);
+ }
+}
+
+// Hasznos függvények
+// string funkciók
+function LTrim(str) { return str.replace(/\s*((\S+\s*)*)/, "$1"); }
+function RTrim(str) { return str.replace(/((\s*\S+)*)\s*/, "$1"); }
+function Trim(str) { return LTrim(RTrim(str)); }
+
+// formátum-ellenőrzők
+function IsEmpty(str) {
+ return (str === null | Trim(str) === "") ? true : false;
+}
+
+function IsEmail(str) {
+ var reEmail = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
+ return (str) ? reEmail.test(Trim(str)) : false;
+}
+
+function IsInteger(str) {
+ var reInteger = /^[+-]?\d+?$/;
+ return (str) ? reInteger.test(Trim(str)) : false;
+}
+
+function IsNumber(str) {
+ var reNumber = /^[+-]?\d+([,\.]\d+)?$/;
+ return (str) ? reNumber.test(Trim(str)) : false;
+}
+
+function IsHexa(str) {
+ var reString = /^[0-9A-Fa-f]*?$/;
+ return (str) ? reString.test(Trim(str)) : false;
+}
+
+function IsDate(str) {
+ var reDate = /^(19|20)\d\d([-/.])(0[1-9]|1[0-2])\2(0[1-9]|[12][0-9]|3[01])$/;
+ return (str) ? reDate.test(Trim(str)) : false;
+}
+
+function CorrectDate(str) {
+ if (IsDate(str))
+ return Trim(str).replace(/^(\d{4})[-/.](\d{2})[-/.](\d{2})$/, "$1.$2.$3");
+ else
+ return null;
+}
+
+mayorSessionTimeOutAlert();
+
+function mayorSessionTimeOutAlert() {
+ $('#takaro').fadeIn();
+ $('#updateWindow').fadeIn();
+ $('#updateForm').html('<div class="infoMsg" style="margin-bottom:20px;">A munkamenet hamarosan lejár!</div>').fadeIn();
+ $('body,html').animate({scrollTop: 0}, 800);
+}
+
+function mayorSessionTimedOut() {
+// $('#takaro').fadeOut();
+// $('.infoMsg').fadeOut();
+// $('#mayorhead').append('<div id="mayorbodytakaro" style="background-color: rgba(100,100,100,0.1);z-index: inherit;height:100%;width:100%; position:absolute; top:0px;"><div class="errorMsg" style="margin-top:130px;">A munkamenet lejárt, kérjük jelentkezzen be újra!</div></div>').fadeIn();
+ $('#mayorbody').fadeOut();
+ window.location.replace(location.origin);
+}
+
+jQuery.fn.preventDoubleSubmission = function() {
+ $(this).on('submit',function(e){
+ var $form = $(this);
+ if ($form.data('submitted') === true) {
+ e.preventDefault();
+ } else {
+ $form.data('submitted', true);
+ }
+ });
+ return this;
+};
+
+/* teszt
+function isNear( $element, distance, event ) {
+ var left = $element.offset().left - distance,
+ top = $element.offset().top - distance,
+ right = left + $element.width() + ( 2 * distance ),
+ bottom = top + $element.height() + ( 2 * distance ),
+ x = event.pageX,
+ y = event.pageY;
+ return ( x > left && x < right && y > top && y < bottom );
+};
+*/
+
+function href(p) {
+ var get = '';
+ $.each( p, function( key, value ) { get += key + "=" + value + "&"; });
+ return ('index.php?policy=private&'+get+'sessionID='+$('body').data('sessionid')).replace('&','&#38;');
+}
+
+$(document).ready(function() { // facebook
+
+ if (typeof(FB_APP_ID)!=='undefined' && FB_APP_ID!='') {
+
+ window.fbAsyncInit = function() {
+ FB.init({
+ appId : FB_APP_ID,
+ cookie : true,
+ xfbml : true,
+ version : 'v2.2'
+ });
+ FB.getLoginStatus(function(response) {
+ if (response.status === 'connected') {
+ $('#mglFBconnect').removeClass('FBstatusunknown').addClass('FB2');
+ } else if (response.status === 'not_authorized') {
+ $('#mglFBconnect').removeClass('FBstatusunknown').addClass('FB1');
+ } else {
+ $('#mglFBconnect').removeClass('FBstatusunknown').addClass('FB0');
+ }
+ }); // ,true - ha nem cache-elt változat kell
+ FB.Event.subscribe('auth.login', my_login_event);
+ FB.Event.subscribe('auth.logout', my_logout_event);
+ FB.Event.subscribe('auth.authResponseChange', my_authResponseChange_event);
+ };
+ // Load the SDK asynchronously
+ (function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) return;
+ js = d.createElement(s); js.id = id;
+ js.src = "//connect.facebook.net/en_US/sdk.js";
+ fjs.parentNode.insertBefore(js, fjs);
+ }(document, 'script', 'facebook-jssdk'));
+ }
+}); // doc ready
+
+var my_login_event = function() {
+ //console.log('***facebook login event');
+}
+
+var my_logout_event = function() {
+ //console.log('***facebook logout event');
+}
+
+var my_authResponseChange_event = function(response) {
+ //console.log('***authResponseChange');
+}
+
+var mayor_facebookconnect_redirect = function() {
+ var origUrl = $(location).attr('href');
+ var pos = origUrl.indexOf("?");
+ if (pos != -1) url = origUrl+'&action=facebooklogin';
+ else url = origUrl+'?action=facebooklogin';
+ window.location = url;
+}
+
+
+// Az ajax hívások vésszatérési értékét feldolgozó és a layer-t megjelenítő függvény változók inicializálása (hogy ne legyen undefined)
+var showUpdateLayer = function() {};
+var hideUpdateLayer = function() {};
+var showUpdateWindowSide = function() {};
+var hideUpdateWindowSide = function() {};
+var showUpdateWindowSideSub = function() {};
+var hideUpdateWindowSideSub = function() {};
+var processJSON;
+
+$(document).ready(function() { // még több click eseménykezelő!
+ $('#mayorMenuSearchIcon').on('click',function() {
+ $('#mayorSearch').show();
+ event.preventDefault();
+ event.stopImmediatePropagation(); // STOP mayorClick
+ $('#mayorSearch input[type=text]').focus();
+ });
+ $('#mayorNaviSearchIcon').on('click',function() {
+ $('#mayorSearch').show();
+ event.preventDefault();
+ event.stopImmediatePropagation(); // STOP mayorClick
+ $('#mayorSearch input[type=text]').focus();
+ });
+
+ //gapi.load('auth2', function() {
+ // gapi.auth2.init();
+ //});
+ if (typeof(GOOGLEAPI_CLIENT_ID)!=='undefined' && GOOGLEAPI_CLIENT_ID!='') {
+ startGoogleAuth();
+ }
+});
+
+// GOOGLE
+var googleUser = {};
+var startGoogleAuth = function() {
+ gapi.load('auth2', function(){
+ auth2 = gapi.auth2.init({
+ client_id: GOOGLEAPI_CLIENT_ID,
+ cookiepolicy: 'single_host_origin',
+ });
+ attachSignin(document.getElementById('googleLoginBtn'));
+ });
+};
+function attachSignin(element) {
+ auth2.attachClickHandler(element, {},
+ function(googleUser) {
+ var id_token = googleUser.getAuthResponse().id_token;
+ var origUrl = $(location).attr('href');
+ var pos = origUrl.indexOf("?");
+ if (pos != -1) url = origUrl+'&action=googleapilogin'+'&id_token='+id_token;
+ else url = origUrl+'?action=googleapilogin'+'&id_token='+id_token;
+ window.location = url;
+ }, function(error) {
+ // alert(JSON.stringify(error, undefined, 2));
+ });
+}
+// GOOGLE
+
diff --git a/mayor-orig/www/skin/classic/base/javascript/jquery-1.8.3.min.js b/mayor-orig/www/skin/classic/base/javascript/jquery-1.8.3.min.js
new file mode 100644
index 00000000..83589daa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/javascript/jquery-1.8.3.min.js
@@ -0,0 +1,2 @@
+/*! jQuery v1.8.3 jquery.com | jquery.org/license */
+(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/base/javascript/jquery.min.js b/mayor-orig/www/skin/classic/base/javascript/jquery.min.js
new file mode 100644
index 00000000..ce1b6b6e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/javascript/jquery.min.js
@@ -0,0 +1,5 @@
+/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
+*/
+(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
+}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
+u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
diff --git a/mayor-orig/www/skin/classic/base/javascript/noiframe.js b/mayor-orig/www/skin/classic/base/javascript/noiframe.js
new file mode 100644
index 00000000..f0e2aefc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/base/javascript/noiframe.js
@@ -0,0 +1 @@
+if (window != window.top) {window.top.location = window.location;stop();}
diff --git a/mayor-orig/www/skin/classic/module-auth/css/forgotten.css b/mayor-orig/www/skin/classic/module-auth/css/forgotten.css
new file mode 100644
index 00000000..a3e63ada
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/css/forgotten.css
@@ -0,0 +1,66 @@
+
+ div.mayorbody h1 {text-align: center; margin:10px; font-size:20px; }
+ div.mayorbody h2 {text-align: center; margin:10px; font-size: 15px; }
+
+ form.forgot { width: 450px; margin: 40px auto; text-align: center;
+ box-shadow: 0px 0px 2px 0px #ccc;
+ padding: 20px;
+ }
+ form.forgot h1 { font-size: 16px; }
+/*
+ form.forgot input[type=submit] { background: #1f6fd9; color: white; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); font-size: 12px; border: 1px solid #1d66c8; padding: 2px 10px; }
+ form.forgot input[type=submit]:hover { background-color: #2f7fe9;}
+*/
+ div.forgot { width: 400px; margin: 20px auto; text-align: center; box-shadow: 0px 0px 2px 0px #ccc; padding:0px; }
+/*
+régi
+ div.forgot a { color:#aaaaaa; display: block; padding:20px;}
+ div.forgot:hover a { background-color: cornflowerblue; color:white; }
+*/
+form.forgot input, form.forgot select,
+form.preforgot input, form.preforgot select{
+ border: 1px solid rgba(0, 0, 0, .20);
+ border-radius: 4px;
+ color: rgba(0, 0, 0, 1);
+ display: block;
+ font-size: 17px;
+ height: 42px;
+ margin-bottom: 12px;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 0 16px;
+ width: 286px;
+}
+form.forgot input.error {border-color:red;}
+
+form.forgot select, form.forgot input[type="submit"],
+form.preforgot select, form.preforgot input[type="submit"]{
+ width: 320px;
+}
+form.forgot input[type="submit"],form.preforgot input[type="submit"]{ border-color: white; background-color:white;}
+form.forgot input[type="submit"]:hover,form.preforgot input[type="submit"]:hover { background-color:white; cursor: pointer; color: cornflowerblue; border-color: cornflowerblue;}
+
+div.loginlogo {margin-left: auto; margin-right:auto; text-align:center; margin-bottom: 2em; margin-top:50px;}
+div.loginlogo img { padding:20px; height:50px; background-color: cornflowerblue; }
+
+p.forgotDone { text-align:center; }
+
+
+
+ p.forgotDone a {
+ border: 1px solid rgba(0, 0, 0, .10);
+ border-radius: 4px;
+ color: rgba(0, 0, 0, .1);
+ display: block;
+ font-size: 16px;
+ height: 42px;
+ margin-bottom: 12px;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 0 16px;
+ width: 286px;
+ line-height:42px;
+ }
+ p.forgotDone a:hover { background-color: cornflowerblue; }
+ p.forgotDone a:hover { color:white; }
+
diff --git a/mayor-orig/www/skin/classic/module-auth/css/login.css b/mayor-orig/www/skin/classic/module-auth/css/login.css
new file mode 100644
index 00000000..da948475
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/css/login.css
@@ -0,0 +1,108 @@
+div.mayorbody h1 {text-align: center; margin:10px; font-size:20px; }
+div.mayorbody h2 {text-align: center; margin:10px; font-size: 15px; }
+
+form.nagylogin input, form.nagylogin select{
+ border: 1px solid rgba(0, 0, 0, .20);
+ border-radius: 4px;
+ color: rgba(0, 0, 0, 1);
+ display: block;
+ font-size: 17px;
+ height: 42px;
+ margin-bottom: 12px;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 0 16px;
+ width: 286px;
+}
+form.nagylogin input.error {border-color:red;}
+
+form.nagylogin select, form.nagylogin input[type="submit"]{
+ width: 320px;
+}
+form.nagylogin input[type="submit"]{ border-color: white; background-color:white;}
+form.nagylogin input[type="submit"]:hover { background-color:white; cursor: pointer; color: cornflowerblue; border-color: cornflowerblue;}
+form.nagylogin div.loginlogo {margin-left: auto; margin-right:auto; text-align:center; margin-bottom: 2em;}
+form.nagylogin div.loginlogo img { padding:20px; height:50px; background-color: cornflowerblue; }
+
+form.nagylogin div.loaderContainer { position: relative;
+ top: -45px;
+ left:-90px;
+ margin-left: auto;
+ margin-right: auto;
+ height:2px;
+ width:2px;
+ margin-bottom:0px;
+ padding-bottom:0px;
+}
+form.nagylogin div.loaderContainer div.loader { display: inline-block; }
+
+#warning { height: 40px; }
+#capsLockWarning {
+ background: #ffffaa; color: #ffaaaa;
+ text-align: center; font-size: 20px; font-weight: bold;
+ padding: 20px; margin: 10px auto; width: 300px;
+}
+
+ form.forgot { margin: 0px auto; text-align: center; padding: 0px 0px; }
+ form.forgot h1 { }
+ form.forgot input[type=submit] {
+ background: #1f6fd9; color: white; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); border: 1px solid #1d66c8; padding: 2px 10px;
+ }
+ form.forgot a {
+ border: 1px solid rgba(0, 0, 0, .10);
+ border-radius: 4px;
+ color: rgba(0, 0, 0, .1);
+ display: block;
+ font-size: 16px;
+ height: 42px;
+ margin-bottom: 12px;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 0 16px;
+ width: 286px;
+ line-height:42px;
+ }
+ form.forgot a:hover { background-color: cornflowerblue; }
+ form.forgot a:hover { color:white; }
+
+.loader {
+ margin: 0px auto;
+ font-size: 2px;
+ position: relative;
+ text-indent: -9999em;
+ border-top: 1.1em solid rgba(255,42,99, 0.2);
+ border-right: 1.1em solid rgba(255,42,99, 0.2);
+ border-bottom: 1.1em solid rgba(255,42,99, 0.2);
+ border-left: 1.1em solid #ff2a63;
+ -webkit-transform: translateZ(0);
+ -ms-transform: translateZ(0);
+ transform: translateZ(0);
+ -webkit-animation: load8 1.1s infinite linear;
+ animation: load8 1.1s infinite linear;
+}
+.loader,
+.loader:after {
+ border-radius: 50%;
+ width: 10em;
+ height: 10em;
+}
+@-webkit-keyframes load8 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+@keyframes load8 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
diff --git a/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml b/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml
new file mode 100644
index 00000000..464f4f64
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/html/forgotten.phtml
@@ -0,0 +1,103 @@
+<?php
+
+ function putForgotPasswordForm($ADAT) {
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+
+ formBegin(array('class'=>'forgot'));
+
+ echo '<h1>'._FORGOT_PASSWORD.'</h1>';
+
+ echo '<p>'._ENTER_USERACCOUNT.'</p>';
+ echo '<input type="hidden" name="action" value="sendResetPasswordMail" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$ADAT['toPolicy'].'" />';
+ echo '<input type="text" name="userAccount" value="'.$ADAT['userAccount'].'" placeholder="'._USERNAME.'" />';
+ echo '<input type="submit" value="'._RESET_PASSWORD.'" />';
+ echo '<p>'._FORGOT_PASSWORD_HELP.'</p>';
+
+ formEnd();
+
+ }
+
+ function putForgotUserAccountForm($ADAT) {
+
+ formBegin(array('class'=>'forgot'));
+
+ echo '<h1>'._FORGOT_USERACCOUNT.'</h1>';
+
+ echo '<p>'._ENTER_EMAIL.'</p>';
+ echo '<input type="hidden" name="action" value="sendResetPasswordMail" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$ADAT['toPolicy'].'" />';
+ echo '<input type="text" name="mail" value="'.$ADAT['mail'].'" class="email" placeholder="'._EMAIL.'" />';
+ echo '<input type="submit" value="'._RESET_PASSWORD.'" />';
+ echo '<p>'._FORGOT_USERACCOUNT_HELP.'</p>';
+
+ formEnd();
+
+ }
+
+ function putForgotThankYou() {
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+
+ formBegin(array('class'=>'preforgot'));
+ echo '<a href="'.href('index.php?page=auth&f=login').'">';
+ _mayorLogo();
+ echo '</a>';
+ echo '<p class="forgotDone">'._FORGOT_INFO.'</p>';
+ formEnd();
+
+ }
+
+ function putForgotDisabled() {
+ global $POLICIES,$AUTH;
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+ echo '<a href="'.href('index.php?page=auth&f=login').'">';
+ _mayorLogo();
+ echo '</a>';
+
+ formBegin(array('class'=>'preforgot'));
+
+ echo '<select class="pp" name="toPolicy" class="onChangeSubmit">'."\n";
+ echo '<option value="">'._FORGOT_DISABLED.'</option>';
+ $SEL = array($toPolicy => ' selected="selected" ');
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ $DIS = ($AUTH[$_policy]['enablePasswordReset']!==true) ? ' disabled = "disabled" ' : '';
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.$_policy.'" '.$SEL[$_policy].$DIS.'>';
+ echo constant('_'.strtoupper($_policy).'_LOGIN');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._KIVALASZT.'" />';
+ formEnd();
+
+ }
+
+ function putBackToLogin($ADAT) {
+
+ //echo '<div class="">';
+ echo '<p class="forgotDone"><a href="'.href('index.php?page=auth&f=login&userAccount='.$ADAT['userAccount'].'&toPolicy='.$ADAT['toPolicy']).'">'._BACK_TO_LOGIN.'</a></p>';
+ //echo '</div>';
+
+ }
+
+ function _mayorLogo() {
+ echo '<div class="loginlogo">';
+ //mayorLogoSvg(array('dot'=>'#bbff44','startColor'=>'cornflowerblue','stopColor'=>'lightgreen'));
+ mayorLogoSvg(array(
+ 'dot'=>'#C9CFE8',
+ 'startColor'=>'#0E396A',
+ 'stopColor'=>'#4B6B90',
+ ));
+ echo '</div>';
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-auth/html/login.phtml b/mayor-orig/www/skin/classic/module-auth/html/login.phtml
new file mode 100644
index 00000000..cac82b7e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/html/login.phtml
@@ -0,0 +1,77 @@
+<?php
+
+ function putLoginForm($userAccount,$toPolicy,$toPSF='',$toSkin='') {
+ global $POLICIES, $AUTH, $sessionID;
+
+ // TODO IDEIGLENES OVERRIDE -- if ($toPolicy=='public') $toPSF='portal:portal:vmgNyiltnap';
+
+ /* reading data from SESSION */
+ if ($userAccount=='' && $_SESSION['lastCreatedAccount']!='')
+ $userAccount=$_SESSION['lastCreatedAccount'];
+
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+
+ if (is_array($AUTH[$toPolicy]['allowOnly']) && !in_array($userAccount,$AUTH[$toPolicy]['allowOnly'])) {
+ echo '<div style="text-align:center; background-color:#f06; border-radius: 5px; width:150px; margin:auto; color:white;">Korlátozott belépés!</div>';
+ }
+
+ // Caps-Lock
+ echo '<div id="warning"><div style="display:none;" id="capsLockWarning">'._CAPSLOCKWARNING.'</div></div>';
+
+ formBegin(array('method'=>'post',
+ 'class'=>'nagylogin',
+ 'action'=>'index.php?policy=public&page=auth&f=login&toPolicy='.$toPolicy.'&sessionID='.$sessionID ,
+ 'name'=>"loginablak"));
+
+// echo '<input type="hidden" name="action" value="login" />';
+ echo '<input type="hidden" name="action" value="mayorGlobalLogin" />';
+ echo '<input type="hidden" name="toPSF" value="'.$toPSF.'" />';
+
+ echo '<div class="loginlogo">';
+ _putsvg();
+ echo '</div>';
+
+ echo '<input type="text" id="focus" accesskey="l" tabindex="1" name="userAccount" value="'.$userAccount.'" maxlength="32" placeholder="'._USERNAME.'" />'."\n";
+ echo '<input type="password" id="userPassword" accesskey="p" tabindex="2" name="userPassword" maxlength="20" placeholder="'._PASSWORD.'" value="" />'."\n";
+
+
+ if (intval(_MAYORAUTHRESULT)>0 || (defined('_FORCE_LOGIN_POLICY_SELECT') && _FORCE_LOGIN_POLICY_SELECT===true)) {
+ echo '<select class="pp" name="policyOrderIndex">'."\n";
+ //$_SEL = array($toPolicy => ' selected="selected" ');
+ echo '<option value="0">'._LOGIN_ALL_AUTH_LEVEL.'</option>';
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.($i+1).'" '.$_SEL[$_policy].'>';
+ echo constant('_'.strtoupper($_policy).'_LOGIN');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ }
+
+ echo '<input type="submit" class="mayorButton" tabindex="3" name="button" value=" '. _LOGIN .' "
+ class="submit" />'."\n";
+ echo '<div class="loaderContainer"><div class="loader" style="display:none" ></div></div>';
+
+ formEnd();
+ //if ($AUTH[$toPolicy]['enablePasswordReset']===true) {
+ formBegin(array('class'=>'forgot'));
+ echo '<div id="forgotten"><a href="'.href('index.php?page=auth&f=forgotten&userAccount='.$userAccount.'&toPolicy='.$toPolicy).'">'._FORGOTTEN.'</a></div>';
+ formEnd();
+ //}
+ }
+
+ function putAlreadyLoggedIn() {
+ echo '<div style="margin:40px auto; width:200px; padding:10px; background-color: #eeeeee; border: solid 2px #ddd; border-radius:2px; text-align:center; color: cornflowerblue">';
+ echo '<span class="icon-ok-sign" style="float:left; line-height:18px;font-size:18px; color:lightgreen; "></span>';
+ echo _BELEPVE;
+ echo '</div>';
+ }
+
+ function _putsvg() {
+ mayorLogoSvg();
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-auth/img/login.gif b/mayor-orig/www/skin/classic/module-auth/img/login.gif
new file mode 100644
index 00000000..82faef04
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/img/login.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js b/mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js
new file mode 100644
index 00000000..46b8c27f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/javascript/forgotten.jquery.min.js
@@ -0,0 +1,19 @@
+$(function() {
+
+ $("input.email").focus(function() {
+ }).blur(function() {
+ if (validateEmail($(this).val()) === false)
+ alert('Nem megfelelő email cím!');
+ });
+
+ $("input[type=submit]").click(function() {
+ // ellenőrzés
+ // return false;
+ });
+
+});
+
+function validateEmail(email) {
+ var re = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
+ return re.test(email);
+}
diff --git a/mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js b/mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js
new file mode 100644
index 00000000..0299746d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-auth/javascript/login.jquery.min.js
@@ -0,0 +1,24 @@
+$(function() {
+
+ $("input[type=submit]").click(function() {
+
+ //$(this).toggle();
+ //$(this).addClass('loader');
+ // ellenőrzés
+ if ($('#focus').val() =="") {
+ $('#focus').addClass('error');
+ return false;
+ }
+ if ($('#userPassword').val() =="") {
+ $('#userPassword').addClass('error');
+ return false;
+ }
+ document.loginablak.button.disabled=true;
+ $('.loader').show();
+ $(this).closest('form').submit();
+ });
+ $('form input').focus(function(event) {
+ $(event.target).prev().removeClass('error');
+ });
+});
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/azonositok.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/azonositok.css
new file mode 100644
index 00000000..f2024e98
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/azonositok.css
@@ -0,0 +1,10 @@
+
+ form.azonosito table {
+ margin: 0px auto; background-color: rgb(20,40,80); color: white
+ }
+ form.azonosito table th { background-color: rgb(60,80,100); }
+ form.azonosito table td { background-color: rgb(40,80,120); }
+ form.azonosito table td.azonosNev { background-color: rgb(40,120,80); }
+ form.azonosito table td.tobbszorosOid { background-color: rgb(120,40,40); }
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/csoportok.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/csoportok.css
new file mode 100644
index 00000000..0ab895f8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/csoportok.css
@@ -0,0 +1,9 @@
+@CHARSET "UTF-8";
+
+ form.csoport { width: 80%; background-color: rgb(180,180,200); margin: 20px auto; text-align: center; padding: 5px;}
+ form.csoport label { color: white; padding: 8px; }
+ form.csoport table { margin: 20px auto; background-color: rgb(140,140,180); }
+ form.csoport table td { background-color: rgb(255,255,255); }
+ form.csoport h1 { background-color: rgb(120,120,160); color: white; }
+ form.csoport p { background-color: rgb(200,200,220); padding: 15px; text-align: justify; border: dotted 1px rgb(120,120,160);}
+ form.csoport select.kiemelt { color: red; font-weight: bold; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/import.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/import.css
new file mode 100644
index 00000000..dbe69451
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/import.css
@@ -0,0 +1,8 @@
+@CHARSET "UTF-8";
+
+form.updateTable { width: 98%; background-color: rgb(180,180,200); margin: 20px auto; text-align: center; padding: 5px;}
+form.updateTable label { color: white; padding: 8px; }
+form.updateTable table { margin: 10px auto; background-color: rgb(140,140,180); width:100%; overflow:hidden; }
+form.updateTable table td { background-color: rgb(255,255,255); }
+form.updateTable table th { background-color: rgb(120,120,160); }
+form.updateTable p { background-color: rgb(200,200,220); padding: 15px; text-align: justify; border: dotted 1px rgb(120,120,160);}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/intezmenyek.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/intezmenyek.css
new file mode 100644
index 00000000..25a0be92
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/intezmenyek.css
@@ -0,0 +1,26 @@
+
+ form.intezmeny { background-color: rgb(40,60,120); color: white; margin: 20px; padding: 5px; }
+ form.intezmeny h2 {
+ background-color: rgb(20,40,80);
+ text-align: center;
+ border: white 1px dotted;
+ border-width: 1px 0px;
+ padding: 3px;
+ }
+
+ form.ujTelephely { background-color: rgb(40,120,120); color: white; margin: 20px; padding: 5px; margin: 0px 30px 10px 30px}
+ form.ujTelephely:hover { background-color: rgb(80,160,200); }
+ form.ujTelephely h2 {
+ color: white; background-color: rgb(20,80,80); text-align: center;
+ border: white 1px dotted; border-width: 1px 0px;
+ padding: 3px;
+ }
+ form.telephely { background-color: rgb(40,120,60); color: white; margin: 20px; padding: 5px; margin: 0px 30px 10px 30px}
+ form.telephely:hover { background-color: rgb(120,180,60); }
+ form.telephely h2 {
+ color: white; background-color: rgb(20,80,40); text-align: center;
+ border: white 1px dotted; border-width: 1px 0px;
+ padding: 3px;
+ }
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css
new file mode 100644
index 00000000..680cfb1c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/rpcPrivilege.css
@@ -0,0 +1,12 @@
+
+ form#addNode { background-color: #ceddec; margin: 10px auto; width: 600px; padding: 10px; text-align: center; border: outset 2px; color: #234; }
+ form#addNode p { text-align: left; padding: 1px 4px; }
+ form#addNode p select { width: 100%; color: #234; }
+ form#addNode h3 { border-bottom: 1px solid #a00; }
+ form#addNode label { margin-right: 5px; }
+
+
+ table#privNodes { background-color: white; border: 1px solid #ceddec; border-spacing: 0px; margin: auto; }
+ table#privNodes th, table#requNodes td { border: 1px solid #ddd; padding: 2px 5px; }
+ table#privNodes td label { padding: 2px 5px; border: 1px solid #ddd; border-radius: 4px; margin: 1px 2px; }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/szemeszterek.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/szemeszterek.css
new file mode 100644
index 00000000..2f72dc3a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/szemeszterek.css
@@ -0,0 +1,6 @@
+
+ form.szemeszter { color: white; background-color: rgb(80,100,70); padding: 10px; margin: 10px; text-align: center; }
+ form.szemeszter h2 { background-color: rgb(40,50,35); }
+ form.szemeszter table { }
+ form.szemeszter tr td { background-color: rgb(100,50,50); margin: 1px; padding: 4px; text-align: left; }
+ form.szemeszter tr td input { border: solid rgb(100,50,50); }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css
new file mode 100644
index 00000000..ec096326
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/szuloiAzonositok.css
@@ -0,0 +1,12 @@
+
+ form.azonosito table {
+ margin: 0px auto; background-color: rgb(180,180,180); color: white
+ }
+ form.azonosito table th { background-color: rgb(140,140,140); }
+ form.azonosito table td { background-color: rgb(160,160,160); }
+ form.azonosito table td.azonosNev { background-color: rgb(40,120,80); }
+ form.azonosito table td.tobbszorosOid { background-color: rgb(120,40,40); }
+ form.azonosito table td.anya { background-color: #993333; }
+ form.azonosito table td.apa { background-color: #333399; }
+ form.azonosito table td.apa span.elhunyt,
+ form.azonosito table td.anya span.elhunyt { background-color: black; color: white; font-style: italic; padding: 8px 20px; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/tanevek.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/tanevek.css
new file mode 100644
index 00000000..7562ff6f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/tanevek.css
@@ -0,0 +1,17 @@
+
+ form.intezmeny { background-color: rgb(40,60,120); color: white; margin: 20px; padding: 0px; }
+ form.intezmeny h2 {
+ background-color: rgb(20,40,80);
+ text-align: center;
+ border: white 1px dotted;
+ border-width: 1px 0px;
+ padding: 3px;
+ }
+ form.intezmeny div.data {
+ padding: 1em;
+ }
+ input.date { width: 100px; }
+
+ form.intezmeny fieldset p { margin-left: 50px; }
+ form.intezmeny fieldset label { background-coor: red; padding: 0px 14px 0px 0px; }
+ form.intezmeny fieldset h3 { color: rgb(255,255,100); } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/admin/tankorok.css b/mayor-orig/www/skin/classic/module-naplo/css/admin/tankorok.css
new file mode 100644
index 00000000..48556e71
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/admin/tankorok.css
@@ -0,0 +1,8 @@
+@CHARSET "UTF-8";
+
+ form.updateTable { width: 80%; background-color: rgb(180,180,200); margin: 20px auto; text-align: center; padding: 5px;}
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+ form.updateTable p { background-color: rgb(200,200,220); padding: 15px; text-align: justify; border: dotted 1px rgb(120,120,160);}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css b/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css
new file mode 100644
index 00000000..8f2a4592
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesTipus.css
@@ -0,0 +1,19 @@
+
+ form.bejegyzes { }
+ form.bejegyzes ul { margin: 0px 20px 20px 30px; list-style-type: none; padding: 0; }
+ form.bejegyzes ul.dicseret { background-color: rgb(82,100,215); }
+ form.bejegyzes ul.fegyelmi { background-color: rgb(180,82,215) }
+ form.bejegyzes ul.uzenet { background-color: rgb(215,215,180) }
+ form.bejegyzes lh { text-align: center; background: rgba(0,0,0,0.5); display: block; margin: 0px; padding: 10px; color: #fff; font-weight: bold; border-bottom: solid 1px white; }
+ form.bejegyzes ul li { padding: 5px; }
+ form.bejegyzes ul li input[type=text] { width: 300px; background: rgba(255,255,255,0.5); }
+ form.bejegyzes span { float: right; }
+ form.bejegyzes label { padding-right: 15px; }
+ form.bejegyzes input { border: solid 1px #eeeeee; }
+ form.bejegyzes ul li:hover { background-color: rgba(255,255,255,0.2); }
+ form.bejegyzes input:hover { border-bottom: solid 1px #aaaaaa; }
+ form.bejegyzes input.ok { width: 500px; }
+ form.bejegyzes input.del { width: 200px; color: red; float: right; }
+ form.bejegyzes input.new { width: 200px; color: green; float: right; }
+ form.bejegyzes input[type=submit] { background-color: rgba(255,255,255,0.5); }
+ form.bejegyzes input[type=submit]:hover { background-color: rgba(255,255,255,1); }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css b/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css
new file mode 100644
index 00000000..d90c958f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/bejegyzesek.css
@@ -0,0 +1,34 @@
+
+@media screen {
+
+ div.bejegyzes { margin: 1px 40px; }
+ div.bejegyzes ul { list-style-type: none; padding: 0px; margin: 0px; background-color: #ffffff; }
+ div.bejegyzes ul li { margin: 0px; color: white; padding: 1px;}
+ div.bejegyzes ul li form { text-align: right; }
+ div.bejegyzes ul li form input { background-color: white; font-size: 10px; border: none;}
+
+ div.bejegyzes ul li div.kategoria { text-align: center; padding: 2px; margin: 0px; font-weight: bold; }
+ div.bejegyzes ul li div.megjegyzes { font-style: italic; padding: 10px 20px;}
+ div.bejegyzes ul li.dicséret div.dt { padding: 0px 10px; }
+
+ span.tanar { float: right; font-weight: normal; font-style: italic; }
+ span.dt { float: left; font-weight: normal; font-style: italic; }
+ div.bejegyzes form.nev { margin: 10px 0px 0px 0px; border: dotted black; border-width: 1px 0px 0px 0px; }
+ div.bejegyzes form.nev input { margin: 0px; background-color: white; border: none; cursor: pointer; width: 100%; font-weight: bold; text-align: left; }
+
+ div.bejegyzes ul li.dicséret div.dt, div.bejegyzes ul li.dicséret div.kategoria { background-color: lightgreen; }
+ div.bejegyzes ul li.dicséret div.megjegyzes { background-color: #eee; color:black; }
+ div.bejegyzes ul li.dicséret form { border-bottom: solid 1px #883311; }
+ div.bejegyzes ul li.dicséret form input { color: #883311; }
+
+ div.bejegyzes ul li.fegyelmi div.dt,div.bejegyzes ul li.fegyelmi div.kategoria { background-color: #e91e63; }
+ div.bejegyzes ul li.fegyelmi div.megjegyzes { background-color: #eee; font-style: italic; color: black; }
+ div.bejegyzes ul li.fegyelmi form { border-bottom: solid 1px #224466; }
+ div.bejegyzes ul li.fegyelmi form input { color: #224466; }
+
+ div.bejegyzes ul li.üzenet div.dt, div.bejegyzes ul li.üzenet div.kategoria { background-color: cornflowerblue; }
+ div.bejegyzes ul li.üzenet div.megjegyzes { background-color: ; color: black; }
+ div.bejegyzes ul li.üzenet form { border-bottom: solid 1px #226644; }
+ div.bejegyzes ul li.üzenet form input { color: #226644; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css b/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css
new file mode 100644
index 00000000..0f07266a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/bejegyzesek/ujBejegyzes.css
@@ -0,0 +1,10 @@
+
+@media screen {
+
+ form.bejegyzes { margin: 40px; background-color: white; border: dotted 1px #446688; text-align: center; padding: 5px; }
+ form.bejegyzes select { color: #224466; border: dotted 1px #224466; }
+ form.bejegyzes textarea { color: #224466; width: 80%; border: dotted 1px #224466; margin: 2px; background-color: #e7f0ff; }
+ form.bejegyzes label { color: #224466; font-weight: bold; }
+ form.bejegyzes input { margin: 2px; padding: 0px 20px; background-color: white; color: #224466; font-size: 10px; border: dotted 1px #224466;}
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/diakValaszto.css b/mayor-orig/www/skin/classic/module-naplo/css/diakValaszto.css
new file mode 100644
index 00000000..37b12d9e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/diakValaszto.css
@@ -0,0 +1,4 @@
+
+ form.valaszto {
+ text-align: center;
+ } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css b/mayor-orig/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css
new file mode 100644
index 00000000..560c2418
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/ertekeles/ertekeles.css
@@ -0,0 +1,41 @@
+
+ form.kerdoiv { background-color: rgb(210,210,250); margin: 20px; padding: 20px 50px; }
+ form.kerdoiv h1 { background-color: rgb(110,110,150); color: white; font-size: 20px; border: solid white; border-width: 1px 0px; text-align: center; }
+ form.kerdoiv p { font-style: italic; margin: 4pt 20pt; background-color: rgb(255,255,255); padding: 20px; }
+ form.kerdoiv > ol > li { font-weight: bold; border: solid rgba(60,80,100,0.5); border-width: 1px 0 0 0; margin-top: 10px; padding-top: 10px; }
+ form.kerdoiv ol ol { list-style-type: none; box-shadow: 1px 1px 4px rgba(0,0,0,0.5); margin-top: 15px; padding: 10px; }
+ form.kerdoiv ol ol.negativ { background-color: #bbf; }
+ form.kerdoiv ol ol.semleges { background-color: #eee; }
+ form.kerdoiv ol ol.pozitiv { background-color: #fbb; }
+ form.kerdoiv ol ol li { font-weight: normal; }
+ form.kerdoiv input.szabadValasz { width: 100%; }
+ span.gomb { font-weight: bold; padding: 1px 8px; margin: 5px; cursor: pointer; float: right; }
+ span.pozitiv {
+ border: 1px solid maroon;
+ background-color: red;
+ border-radius: 4px;
+ box-shadow: inset 0 1px 3px pink, inset 0 -5px 12px maroon, 0 2px 1px rgba(0,0,0,0.5);
+ color: white;
+ text-shadow: 0 1px 1px #000;
+ }
+ span.semleges {
+ border: 1px solid #666;
+ background-color: #eee;
+ border-radius: 4px;
+ box-shadow: inset 0 1px 3px #888, inset 0 -5px 12px #999, 0 2px 1px rgba(0,0,0,0.5);
+ color: #fff;
+ text-shadow: 0px 1px 1px #000;
+ }
+ span.negativ {
+ border: 1px solid #55a;
+ background-color: #008;
+ border-radius: 4px;
+ box-shadow: inset 0 1px 3px #aaf, inset 0 -5px 12px #55a, 0 2px 1px rgba(0,0,0,0.5);
+ color: white;
+ text-shadow: 0 1px 1px #000;
+ }
+ ol li label { padding: 0px 4px; }
+ ol li label:hover { background-color: purple; color: white; }
+ #ok { width: 100%; }
+ #ok:hover { background-color: orange; }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css b/mayor-orig/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css
new file mode 100644
index 00000000..a391d32d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/ertekeles/kerdoivBetoltes.css
@@ -0,0 +1,11 @@
+
+ form.kerdoiv { width: 80%; margin: 10px auto; background-color: rgb(20,60,40); color: white; padding: 10px; text-align: center; }
+ form.kerdoiv label { margin: 10px; padding: 2px; }
+ form.kerdoiv #megjegyzes { height: 50px; }
+ form.kerdoiv textarea { width: 80%; height: 400px; }
+
+ form.kerdoivCimzett { width: 800px; margin: 10px auto; background-color: rgb(20,60,40); color: white; padding: 10px; text-align: center; }
+ form.kerdoivCimzett div.bal { float: left; }
+ form.kerdoivCimzett div.jobb { float: right; }
+ form.kerdoivCimzett select { height: 300px; min-width: 100px;}
+ form.kerdoivCimzett input[type=submit] { width: 100%; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css b/mayor-orig/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css
new file mode 100644
index 00000000..97880624
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/esemeny/esemenyDiak.css
@@ -0,0 +1,34 @@
+
+ form#nevsorForm { margin-left: 35px; }
+ form#nevsorForm table#kontener td { vertical-align: top; background-color: #ddd; border: solid 1px #abc;}
+ form#nevsorForm table#kontener > tbody > tr > th { padding: 5px; background-color: #eee; cdolor: white; border: solid #aaa; border-width: 0px 1px 1px 0px; }
+ form#nevsorForm table#kontener > tbody > tr > th:nth-child(3) { width: 300px; }
+ form#nevsorForm table#kontener td#osztalyok input[type=button] { width: 100px; text-align: right; }
+ form#nevsorForm table#kontener td#osztalyok input[type=button]:hover { background-color: orange; }
+ form#nevsorForm table#kontener input.add { color: #68a; width: 100%; font-size: 22px; font-weight: bold; text-align: center; margin-top: 20px; }
+ form#nevsorForm table#kontener td.openable select { min-height: 300px; width: 100%; }
+ form#nevsorForm table#kontener input.selected { background-color: #aaccee; }
+
+ form#nevsorForm table#nevsor { min-width: 500px; }
+
+ form#nevsorForm table#nevsor tr th { padding: 5px; background-color: #c8c8c8; vertical-align: middle; }
+ form#nevsorForm table#nevsor tr td { padding: 5px; background-color: #d8d8d8; vertical-align: middle; }
+ form#nevsorForm table#nevsor tr td.sorsz { text-align: right; }
+ form#nevsorForm table#nevsor tr td.osztaly { text-align: right; cursor: pointer;}
+ form#nevsorForm table#nevsor tr:nth-child(odd) td { background-color: #eeeeee; }
+ form#nevsorForm table#nevsor tr.ujDiak td { background-color: #99dd99; }
+
+ form#nevsorForm table#nevsor span.icon-remove-sign {color: red; cursor: pointer; padding: 3px 20px; }
+ form#nevsorForm table#nevsor span.icon-remove-sign:hover { color: orange; }
+ form#nevsorForm table#nevsor span.icon-remove-sign:hover:before { content: "\e103"; }
+
+ form#nevsorForm table#nevsor span.icon-minus-sign { color: #800; cursor: pointer; padding: 3px 20px; }
+ form#nevsorForm table#nevsor span.icon-minus-sign:hover { color: orange; }
+ form#nevsorForm table#nevsor span.icon-minus-sign:hover:before { content: "\e06e"; }
+
+ form#nevsorForm table#nevsor span.icon-ok-sign { color: #080; cursor: pointer; padding: 3px 20px; }
+ form#nevsorForm table#nevsor span.icon-ok-sign:hover { color: orange; }
+ form#nevsorForm table#nevsor span.icon-ok-sign:hover:before { content: "\e075"; }
+
+ form#nevsorForm table#nevsor tr#submitRow input { width: 100%; }
+ form#nevsorForm table#nevsor tr#submitRow input:hover { background-color: orange; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css b/mayor-orig/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css
new file mode 100644
index 00000000..c1004624
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/esemeny/jelentkezes.css
@@ -0,0 +1,27 @@
+
+ form.esemeny table { margin-left:auto; margin-right:auto; border-spacing: 1px; border: 1px solid #aabbcc; background-color: #f0f0f0; padding: 10px; }
+ form.esemeny table th { background-color: #a8a8a8; padding: 4px; color: white; }
+ form.esemeny table tr:hover th { background-color: #ff8800; padding: 4px; color: white; cursor: pointer; }
+ form.esemeny table td { background-color: #ececec; padding: 4px; }
+
+ form.esemeny table tr.jelentkezes:nth-child(odd) td { background-color: #d6d6d6; }
+
+/*
+ form.esemeny table tr.valasztott:nth-child(even) td { background-color: #a6e6a6; }
+ form.esemeny table tr.valasztott:nth-child(odd) td { background-color: #86d686; }
+*/
+ form.esemeny table tr.jelentkezes td, form.esemeny table tr.valasztott td { min-width: 60px; }
+ form.esemeny table input.felvesz { font-size: 12px; color: green; }
+ form.esemeny table input.lead { font-size: 12px; color: red; }
+ form.esemeny table input.felvesz:hover, form.esemeny table input.lead:hover { }
+ form.esemeny table input.felvesz:disabled, form.esemeny table input.lead:disabled { color: #666; }
+ form.esemeny table td.letszam { text-align: right; }
+ form.esemeny table td.minmax { text-align: center; }
+ form.esemeny table td.min { border-left: 1px dotted red; }
+ form.esemeny table td.max { border-right: 1px dotted red; }
+ form.esemeny table td span.icon-minus-sign { padding: 3px 20px; color: #800; }
+ form.esemeny table td span.icon-ok-sign { padding: 3px 20px; color: #080; }
+
+ form.esemeny table tr td.gombKontener { text-align:center; }
+ form.esemeny table tr:hover td.gombKontener.lead { background-color: #fee;}
+ form.esemeny table tr:hover td.gombKontener.felvesz { background-color: #efe;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css b/mayor-orig/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css
new file mode 100644
index 00000000..2dc8381e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/esemeny/ujEsemeny.css
@@ -0,0 +1,43 @@
+
+ form.esemeny table { margin: 20px 35px 0px 35px; border-spacing: 0; border: 1px solid #aabbcc; background-color: #f0f0f0; padding: 10px; position: relative; width: 550px; }
+ form.esemeny table td, form.esemeny table th { background-color: #ececec; padding: 4px; }
+ form.esemeny table th { text-align: right; }
+ form.esemeny table td input.datetime { width: 140px; }
+ form.esemeny table textarea { width: 98%; margin-top: 5px; }
+ form.esemeny table td#submitTd { background-color: #99dd99; text-align: center; padding: 20px 0px; }
+/*
+ form.esemeny table input[type=submit] { width: 500px; color: #080; }
+ form.esemeny table input:focus, form.esemeny table textarea:focus { background-color: #fd2; }
+ form.esemeny table input:disabled, form.esemeny table textarea:disabled, form.esemeny table select:disabled { background-color: #eee; color: #68a; border:solid #ccc 1px;}
+ form.esemeny table input[type=submit]:hover { }
+*/
+ form.esemeny table td hr { background-color: #f8f8f8; border: none; }
+ form.esemeny table select#kategoria { float: right; margin-top: -5px; }
+
+ form.esemeny table td.tanarok { position: relative; }
+ form.esemeny table td.tanarok div.select { margin-left: 3px; display:inline-block; vertical-align:top; overflow:hidden; border:solid #ccc 1px; }
+ form.esemeny table select#esemenyTanar { overflow: hide; min-width: 150px; width: 300px; height: 250px; padding:10px; margin:-5px -20px -5px -5px; background-color: #f8f8f8; }
+ form.esemeny table select#esemenyTanar option.uj { background-color: #99dd99; }
+ form.esemeny table input#plusz { color: red; width: 140px; }
+ form.esemeny table input#minusz { color: green; width: 140px; }
+ form.esemeny table input#add { color: #68a; width: 100%; font-size: 22px; font-weight: bold; }
+
+ form.esemeny table div#tanarLista { padding: 15px 5px 5px 5px; width: 300px; position: absolute; top:0px; right: -330px; background-color: #ace; border: 1px #abc solid; }
+ form.esemeny table span#closeTanarLista { position: absolute; font-weight: bold; color: white; padding: 0px 5px; right: 0px; top: 0px; }
+ form.esemeny table span#closeTanarLista:hover { cursor: pointer; }
+ form.esemeny table select#tanarok { width: 300px; height: 250px; }
+ form.esemeny table div#osztalyLista { background: #f0f0f0; position: absolute; top: 0px; right: -463px; width: 440px; border: 1px solid #aabbcc; padding: 10px; }
+ form.esemeny table div#osztalyLista ul {
+ list-style-type: none; padding: 0px 0px;
+/* -moz-column-count: 2; -moz-column-gap: 0px;
+ -webkit-column-count: 2; -webkit-column-gap: 0px;
+ column-count: 2; column-gap: 0px;
+ width: 740px;
+*/
+ }
+ form.esemeny table div#osztalyLista ul label.oJel { display: inline-block; width: 40px; font-weight: bold; text-align: center; }
+ form.esemeny table div#osztalyLista ul li.uj { background-color: #99dd99; }
+
+ form.esemenyTorles {margin: 0px 35px; border-spacing: 0; border: 1px solid #aabbcc; background-color: #f0f0f0; padding: 2px 0px; position: relative; width: 548px; text-align: center; background-color: #f00; }
+ form.esemenyTorles input { color: red; width: 500px; }
+ form.esemenyTorles input:hover { background-color: #eca; border-color: #fdd #dcc #dcc #fdd; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/export/bizonyitvany.css b/mayor-orig/www/skin/classic/module-naplo/css/export/bizonyitvany.css
new file mode 100644
index 00000000..bc531fad
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/export/bizonyitvany.css
@@ -0,0 +1,19 @@
+
+ form.export { background-color: white; margin: 5px 30px 20px 20px; font-size:10px; }
+ form.export h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.export input { font-size: 10px; border: solid 1px #777777; margin-left: 3px; padding-left: 2px; }
+ form.export label { font-size:11px; }
+ form.export input:focus { background-color: orange; }
+
+ form.export fieldset { border: solid 1px rgb(40,60,80); }
+ form.export fieldset th { text-align: right; }
+ form.export fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/export/diakExport.css b/mayor-orig/www/skin/classic/module-naplo/css/export/diakExport.css
new file mode 100644
index 00000000..99997093
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/export/diakExport.css
@@ -0,0 +1,19 @@
+
+ form.diak { margin: 5px 30px 20px 30px; font-size:10px; }
+ form.diak input, form.diak select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ }
+ form.diak fieldset legend {
+ background-color: rgb(140,160,180); color: white;
+ border: solid 1px rgb(40,60,80); padding: 2px 10px; margin-left:20px;
+ }
+ #tableDiv { margin: 10px 50px; }
+ #diakTabla { margin: auto; }
+ #diakTable tr:hover td { background: rgb(50,50,100); }
+ #exportOptions fieldset { background: rgba(150,50,100,0.9); position: absolute; left: 20px; z-index: 10; width: 80%; margin: auto 10%; box-shadow: 5px 5px 5px #999; border: 3px solid orange; color: white; }
+ #exportOptions select { height: 200px; width: 200px; }
+ #exportOptions table { margin: auto; }
+ #submitForm { text-align: center; }
+ table.TF tr:hover td { background: rgb(100,100,200); color: white; }
+ table.TF tr:hover td span { color: black; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/export/kreta.css b/mayor-orig/www/skin/classic/module-naplo/css/export/kreta.css
new file mode 100644
index 00000000..a163f7ff
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/export/kreta.css
@@ -0,0 +1,23 @@
+
+ form.export { background-color: white; margin: 5px 30px 20px 20px; }
+ form.export h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); text-align: center; }
+ form.export input { border: solid 1px #777777; }
+ form.export label { }
+ form.export input:focus { background-color: orange; }
+
+ form.export fieldset { border: solid 1px rgb(40,60,80); }
+ form.export fieldset th { }
+ form.export fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.export:hover fieldset legend { background-color: rgb(140,160,250); }
+
+
+ form.export table { width:100%; }
+ form.export ul { list-style-type: none; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/export/sulix.css b/mayor-orig/www/skin/classic/module-naplo/css/export/sulix.css
new file mode 100644
index 00000000..5f68d40e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/export/sulix.css
@@ -0,0 +1,9 @@
+
+ form.export { width: 60%; float: left; margin: 0px 20%; }
+
+ form.export input[type=submit] { width: 100%; }
+ form.export input[type=submit]:hover { background: rgb(100,100,100); color: white }
+ form.export div.leiras { background: rgba(200,200,200,0.8); margin: 10px; text-align: left; padding: 6px; height: 300px; }
+
+ div.txt { margin: 1%; background: #3496B9; padding: 10px; padding-bottom: 50px; }
+ div.txt div { background: rgba(200,200,200,0.8); padding: 6px; margin-bottom: 10px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css b/mayor-orig/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css
new file mode 100644
index 00000000..c4671887
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/export/tantargyFelosztas.css
@@ -0,0 +1,20 @@
+
+ form.export { background-color: white; margin: 5px 30px 20px 20px; font-size:10px; }
+ form.export h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.export input { font-size: 10px; border: solid 1px #777777; margin-left: 3px; padding-left: 2px; }
+ form.export label { font-size:11px; }
+ form.export input:focus { background-color: orange; }
+
+ form.export fieldset { border: solid 1px rgb(40,60,80); }
+ form.export fieldset th { text-align: right; }
+ form.export fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.export:hover fieldset legend { background-color: rgb(140,160,250); } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/elmaradas.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/elmaradas.css
new file mode 100644
index 00000000..d6252159
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/elmaradas.css
@@ -0,0 +1,12 @@
+
+ table.elmaradas { margin: 0px auto; background-color: rgb(32, 130, 155); color: white; margin-bottom:1em;}
+ table.elmaradas thead th { background-color: rgb(40, 40, 80); padding: 2px 4px;}
+ table.elmaradas tbody th { font-weight: normal; background-color: rgb(120, 140, 180); padding: 2px 4px;}
+ table.elmaradas tbody tr:hover th { outline: solid 1px orange; }
+ table.elmaradas tbody tr:hover td { outline: solid 1px orange; }
+ table.elmaradas tbody td { font-weight: normal; background-color: rgb(52, 150, 185); text-align: right; padding: 2px 4px;}
+ table.elmaradas tr.beirando td { background-color: rgb(40, 80, 60); }
+
+ table.elmaradas tr th.tanarNev { text-align:left; }
+
+ table.elmaradas tfoot tr th, table.elmaradas tfoot tr td { font-size: smaller; text-align: center; background-color: rgb(82,180,205); padding: 2px 4px;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/elszamolas.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/elszamolas.css
new file mode 100644
index 00000000..41c1d07f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/elszamolas.css
@@ -0,0 +1,32 @@
+
+ table.elszamolas { background-color: rgb(220,220,220); margin: 10px auto; }
+
+ table.elszamolas thead tr th { background-color: #F23668; color: white; text-align: center; padding:2px; font-weight:normal;}
+ table.elszamolas thead tr th.eloirt_egyeb { background-color: rgb(170, 170, 204);}
+ table.elszamolas thead tr th.egyeb { background-color: #E8C }
+
+ table.elszamolas tbody tr th { background-color: #f9f9f9; text-align: left; padding-left:1em; padding-right:0.5em;}
+ table.elszamolas tbody tr th a { color: black; display:block; }
+
+ table.elszamolas tbody tr th.sum { text-align:right; font-weight:normal;}
+ table.elszamolas tbody tr th.sum.highlight { background-color: cornflowerblue;color:white; }
+ table.elszamolas tbody tr th.sumsum { text-align:right;}
+
+ table.elszamolas tbody tr td {background-color:#eee; text-align: right ; padding-right:1em;}
+ table.elszamolas tbody tr td.highlight {background-color: cornflowerblue !important; color: white !important;}
+
+ table.elszamolas tr .e1 { background-color: #493E89; color: white; }
+ table.elszamolas tr .e2 { background-color: green; color: white; }
+ table.elszamolas tr .e3 { background-color: orange; color: white; }
+ table.elszamolas tr .e4 { background-color: red; color: white; }
+
+ table.elszamolas tbody tr td.osszevonas { background-color: rgba(0,0,0,0.1); color: #333333; }
+
+ table.elszamolas tbody tr:hover th { background-color: #eeeeee; }
+ table.elszamolas tbody tr:hover td { background-color: #E7FCFE; }
+ table.elszamolas tbody tr:hover td.e1 { background-color: #382d78; }
+ table.elszamolas tbody tr:hover td.e2 { background-color: #007000; }
+ table.elszamolas tbody tr:hover td.e3 { background-color: #ee9400; }
+ table.elszamolas tbody tr:hover td.e4 { background-color: #e00; }
+
+ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/haladasi.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/haladasi.css
new file mode 100644
index 00000000..c2862fe8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/haladasi.css
@@ -0,0 +1,297 @@
+@media screen {
+
+ table.haladasiBejegyzesek {
+ background-color: rgb(50,60,80);
+ margin-top: 10px;
+ font-size: 11px;
+ width: 98%;
+ }
+ table.haladasiBejegyzesek thead tr th {height:18px;}
+ table.haladasiBejegyzesek thead tr th span.aktiv {
+ position:relative; top:-5px; padding-left:5px;
+ color: orange;
+ }
+
+ table.haladasiBejegyzesek tbody tr td {height:18px;}
+ table.haladasiBejegyzesek tbody tr:hover td { background-color: rgba(255,255,255,0.2); }
+ table.haladasiBejegyzesek tbody tr td input:focus {
+ background-color: white !important;
+ }
+ table.haladasiBejegyzesek tbody tr td input.gomb:focus {
+ background-color: red;
+ }
+ table.haladasiBejegyzesek tbody tr.torolt td {
+ background-color: black;
+ color:#dddddd;
+ text-decoration:line-through;
+ }
+ table.haladasiBejegyzesek tbody tr.torolt input.ajaxRequestDone { display:none; }
+ table.haladasiBejegyzesek tbody tr.torolt span.INFO.ajaxRequestDone { display:none; }
+
+ table.haladasiBejegyzesek tbody.parosNap {
+ background-color: #dddddd;
+ }
+ table.haladasiBejegyzesek tbody.paratlanNap {
+ background-color: #eeeeee;
+ }
+ table.haladasiBejegyzesek tbody td.ora {
+ text-align: center;
+ }
+ table.haladasiBejegyzesek tbody td.t {
+ padding-left:4px;
+ }
+
+ /* ajax eredménye */
+ table.haladasiBejegyzesek tbody tr.elmarad td {
+ background-color: #999999;color:#dddddd;text-decoration:line-through;
+ }
+
+ table.haladasiBejegyzesek tbody th.nincsOra {
+ background-color: rgb(200,200,200);
+ color: rgb(100,100,100);
+ text-align: center;
+ border: none;
+ font-weight: normal;
+ }
+ table.haladasiBejegyzesek tbody th.nap {
+ text-align: center;
+ background-color: #666688;
+ color: white;
+ border: none;
+ height:1em;
+ font-weight: normal;
+ height:2em;
+ }
+ table.haladasiBejegyzesek tbody th.nap div { color: white; padding-top:4px;}
+ table.haladasiBejegyzesek tbody th.nap div:hover { color: #aaa; }
+ table.haladasiBejegyzesek tbody.szunet th.nap {
+ background-color: #778877;
+ }
+ table.haladasiBejegyzesek tbody.tanitasNelkul th.nap {
+ background-color: #aaaa44;
+ }
+ table.haladasiBejegyzesek tbody.szorgalmiIdoszakonKivul th.nap {
+ background-color: #e91e63;
+ }
+
+ table.haladasiBejegyzesek tbody td.dolgozat {
+ background-color: #ffaa44;
+ padding-left: 20px;
+ }
+ table.haladasiBejegyzesek tbody td.dolgozat a {
+ text-decoration: none;
+ color: black;
+ }
+
+ table.haladasiBejegyzesek tbody td.nincsBeirva {
+ font-style:italic;
+ }
+
+ table.haladasiBejegyzesek th {
+ border-style: none none solid none;
+ border-width: 0 0 2px 0;
+ border-color: #556677;
+ background-color: rgb(50,60,80);
+ color: rgb(210,215,220);
+ border-style: solid;
+ border-width: 1px;
+ }
+ table.haladasiBejegyzesek th.fejlec8 {
+ font-size: 14px;
+ height: 30px;
+ text-align: center
+ }
+ table.haladasiBejegyzesek th.fejlec8 a { color: white }
+
+
+ table.haladasiBejegyzesek td.osztaly { text-align: center; }
+ table.haladasiBejegyzesek select {
+ font-size: 10px;
+ }
+
+ input { font-family: Verdana,Arial; color: inherit; }
+ input.data { border-style: none none solid none;
+ border-width: 1px;
+ border-color: #dddddd;
+ width:85%;
+ padding-right: 10px;
+ }
+ input.data:hover { border-bottom: solid 1px #556677; background-color: white }
+
+ table.haladasiBejegyzesek span.INFO { display: none; width:1em; padding:2px 2px; position: relative; left:-12px; border-radius:2px;color: white;}
+ table.haladasiBejegyzesek input.ajaxRequestDone+span.INFO { display: inline; background-color: green; }
+ table.haladasiBejegyzesek input.ajaxRequest+span.INFO { display: inline; background-color: orange; }
+ table.haladasiBejegyzesek input.ajaxRequestError+span.INFO { display: inline; background-color: red; }
+
+ table.haladasiBejegyzesek input.data:focus {
+ border-left: solid 2px blue !important; background-color: white; color:black !important;
+ border-radius:2px;
+ }
+
+ table.haladasiBejegyzesek tbody.parosNap input.data { border-left: solid 2px #cccccc; }
+ table.haladasiBejegyzesek tbody.paratlanNap input.data { border-left: solid 2px #eeeeee; }
+ table.haladasiBejegyzesek tbody.parosNap input.beirva { background-color: #cccccc; }
+ table.haladasiBejegyzesek tbody.paratlanNap input.beirva { background-color: #eeeeee; }
+
+ table.haladasiBejegyzesek tbody.parosNap input.data.ajaxRequest,
+ table.haladasiBejegyzesek tbody.paratlanNap input.data.ajaxRequest { border-left: solid 2px orange; }
+ table.haladasiBejegyzesek tbody.parosNap input.gomb.ajaxRequest,
+ table.haladasiBejegyzesek tbody.paratlanNap input.gomb.ajaxRequest { background-color: orange; }
+ table.haladasiBejegyzesek tbody select option.ajaxRequestDone,
+ table.haladasiBejegyzesek tbody.parosNap input.ajaxRequestDone,
+ table.haladasiBejegyzesek tbody.paratlanNap input.ajaxRequestDone { border-left: solid 2px green; background-color: lightgreen; }
+
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit td { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit td { background-color: #eeeecc; }
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit input.beirva { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit input.beirva { background-color: #eeeecc; }
+
+ table.haladasiBejegyzesek tbody tr.egyeb { background-color: #ee88cc; }
+ table.haladasiBejegyzesek tbody tr.egyeb.órarend { background-color: #aaaacc; }
+
+ input.gomb {
+ font-size: xx-small; border: solid 1px #777777;
+ padding: 0px 1px; margin: 0px;
+ background-color: #009900;
+ color: white;
+ }
+ input.gomb:hover { background-color: rgba(255,255,255,0.8); color:black;}
+/* input.rejtettGomb { border: solid 1px rgb(50,60,80);; background-color: rgb(50,60,80); }
+ input.rejtettGomb:hover { border: solid 1px orange; background-color: rgb(80,60,50); color: white }
+*/
+ div.rejtMutat { color: rgb(100,80,70);}
+ div.rejtMutat:hover { color: white; }
+
+ table.haladasiBejegyzesek a.gomb {
+ padding: 1px;
+ background-color: #dddddd;
+ font-size: 10px;
+ border: outset 1px #556677;
+ margin: 2px;
+ text-decoration: none;
+ }
+ table.haladasiBejegyzesek a.gomb:hover {
+ padding: 1px;
+ background-color: #556677;
+ font-size: 10px;
+ border: outset 1px #dddddd;
+ margin: 2px;
+ text-decoration: none;
+ color: white;
+ }
+
+ table.haladasiBejegyzesek a {
+ display: block;
+ color: black;
+ text-decoration: none;
+ }
+ table.haladasiBejegyzesek a:hover {
+ color: green;
+ text-decoration: underline;
+ }
+ table.haladasiBejegyzesek a.h {
+ text-align: center;
+ }
+ table.haladasiBejegyzesek tr.dolgozat td {
+ padding: 0px 10px;
+ background-color: rgb(160,100,120);
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a:hover {
+ color: rgb(260,200,220);
+ }
+
+ table.haladasiBejegyzesek tbody tr td.mg {
+ text-align: center;
+ }
+ table.haladasiBejegyzesek tbody tr td.info, table.haladasiBejegyzesek tbody tr td.halad {
+ cursor: pointer;
+ }
+
+ table.haladasiBejegyzesek tr td.mg span.latogatott {
+ background-color: rgb(100,150,100);
+ color: white;
+ text-decoration: none;
+ padding-left:5px;
+ padding-right:5px;
+ border-bottom: solid 1px green;
+ margin:0px;
+ }
+
+
+ table.haladasiBejegyzesek tr td select.teremvalt { background-color: white ; }
+
+ form.hetes {
+ border: solid 1px #008800;
+ background-color: rgb(100,200,100); text-align: center; color: white; margin: 15px 13px; font-weight: bold;
+ }
+ form.hetes input { color: black; border: none; margin: 4px; border: solid 1px #008800; }
+ form.hetes span { padding-right:2em; }
+ form.hetes select option {
+ font-size:small;
+ background-color:# white;
+ border: solix 1px #00aa00;
+ }
+
+
+ table.haladasiNaplo {
+ background-color: rgb(50,60,80);
+ width: 98%;
+ font-size: 11px;
+ }
+ table.haladasiNaplo thead tr th{
+ background-color: rgb(50,60,80);
+ color: white;
+ border-bottom: solid 1px white;
+ height:1.5em;
+ }
+ table.haladasiNaplo tfoot tr th{
+ font-size: 10px;
+ color: white;
+ }
+ table.haladasiNaplo tr td{ padding:0.6em; background-color: #eee; }
+
+ #updateWindow { width: 80%; top: 10%; margin-top: auto; margin-bottom: auto; height: 80%; left: 50%; margin-left: -40%; }
+ #updateHeader { cursor: pointer; }
+
+ #updateForm { max-height: 95%; overflow: auto; }
+
+ #updateForm fieldset { margin-top:2px; background-color: #eeeeee; border: solid 1px rgb(50,60,70);}
+ #updateForm fieldset legend { text-align: right; background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80); }
+
+ #updateForm fieldset.alapadatok p { text-align: center; font-style: italic; }
+ #updateForm fieldset.alapadatok p span { color: rgb(100,50,25); font-weight: bold; font-style: normal; }
+
+ #updateForm #temakor { list-style-type: none; }
+ #updateForm #temakor li { margin-top: 10px; }
+ #updateForm #temakor span.oraszam { display: block; float: left; width: 100px; text-align: right; color: rgb(160,80,40); margin-right: 6px; }
+ #updateForm #temakor div.megnevezes { display: inline-block; font-style: normal; }
+ #updateForm p.kiemelt { text-align: center; margin-top: 100px; font-size: 20px; }
+
+ table.haladasiBejegyzesek label.on { color: orange; }
+ table.haladasiBejegyzesek label:hover { color: white; text-shadow: 1px 1px 1px orange; }
+
+ table tr.ujOra { background-color: rgb(100, 149, 237); }
+ table tr.ujOra th { background-color: rgba(238, 136, 204,0.5);
+ font-weight:normal;
+ border: none 0px;
+ }
+
+ table.haladasiBejegyzesek button.gomb { font-size:8px; padding:4px;}
+
+ table.haladasiBejegyzesek tbody tr td.ora a.tankorStat {display:none;}
+ table.haladasiBejegyzesek tbody tr:hover td.ora a.tankorStat { display:inline;}
+
+}
+@media print {
+ table.haladasiBejegyzesek thead tr th { border-bottom: solid 1px black;}
+ table.haladasiBejegyzesek thead tr th:not(:last-child) { border-right: solid 1px black;}
+ table.haladasiBejegyzesek tbody tr td { border-bottom: solid 1px black;}
+ table.haladasiBejegyzesek div[class*="icon"] { display:none;}
+ table.haladasiBejegyzesek [class*="icon"] { display:none;}
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/helyettesites.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/helyettesites.css
new file mode 100644
index 00000000..298f29f1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/helyettesites.css
@@ -0,0 +1,162 @@
+/*
+input[type=image]
+{
+background-image: url('/skin/classic/share/javascript/jquery-mobile/images/icons-36-white.png');
+-moz-background-size: 864px 18px;
+-o-background-size: 864px 18px;
+-webkit-background-size: 864px 18px;
+background-size: 810px 18px;
+}
+*/
+
+ span.teremId { font-style: italic; color: gray; }
+
+ table.tanarForm {
+ width:50%;
+ border-style: solid solid solid solid;
+ border-width: 1px 1px 2px 1px;
+ border-color: rgb(100,80,100);
+ margin-bottom: 20px;
+ }
+
+ table.tanarForm th {
+ background-color: rgb(140,20,100);
+ color: white;
+ height: 2em;
+ }
+
+ table.tanarForm td {
+ background-color: #ffffff;
+ text-align: center;
+ }
+
+
+ table.tanarForm select {
+ height: 160px;
+ width: 60%;
+ }
+
+ table.hianyzoTanar {
+ border-style: solid ;
+ border-width: 1px;
+ border-color: purple;
+ background-color: #dddddd;
+ width: 95%;
+ margin-bottom:30px;
+ }
+
+ table.hianyzoTanar thead th {
+ background-color: rgb(100,100,200);
+ color: white;
+ height:2em;
+ }
+ table.hianyzoTanar tfoot th { background-color: #eeeeee; }
+ table.hianyzoTanar tfoot th input {
+ font-size:10px;
+ }
+
+ table.hianyzoTanar td {
+ background-color: white;
+ color: black;
+ padding: 0px 10px 0px 10px;
+ }
+
+ table.hianyzoTanar tr.elmarad td {
+ background-color: rgb(200,200,200);
+ color: rgb(140,140,140);
+ }
+
+ table.hianyzoTanar tbody tr:hover td {
+ background-color: rgba(128,0,128,0.2);
+ }
+ table.hianyzoTanar tbody tr td.info {
+ color:rgba(128,0,128,0.6);
+ }
+ table.hianyzoTanar tr td a.O { color: #aaaaaa; border-radius: 0px; font-size:12px; background-color: rgba(255,255,255,0.9); border: solid 1px #eeeeee; padding:0px 4px;}
+ table.hianyzoTanar tr td a.O:hover { color: white; background-color: rgb(50,60,80); border: solid 1px grey; padding:0px 4px;}
+
+
+/* ----------------------- */
+ table.mozgatas thead th {
+ background-color: purple;
+ color: white;
+ height:2em;
+ }
+ table.mozgatas tfoot th {
+ background-color: rgb(80,100,80);
+ }
+ table.mozgatas tbody th {
+ background-color: rgb(80,20,80);
+ color: white;
+ }
+
+ table.mozgatas td {
+ background-color: rgb(200,200,180);
+ padding: 0px 10px 0px 10px;
+ }
+
+ table.mozgatas td.mozgatando {
+ background-color: rgb(220,200,180);
+ }
+ table.mozgatas td.utkozik {
+ background-color: rgb(160,160,160);
+ }
+ table.mozgatas td.nemMegtartott {
+ background-color: rgb(180,200,220);
+ }
+
+/* ---------------------- */
+
+ table.csere td {
+ background-color: rgb(200,200,190);
+ padding: 0px 10px 0px 10px;
+ }
+
+ table.csere th {
+ background-color: rgb(110,120,110);
+ color: white;
+ height: 2em;
+ }
+
+ table.csere td.mozgatando {
+ background-color: rgb(220,200,180);
+ }
+ table.csere td.orajavan {
+ background-color: rgb(160,200,140);
+ }
+ table.csere td.nemMegtartott {
+ background-color: rgb(180,200,220);
+ }
+
+/* ---------------------- */
+ table.keziBeallitas { background-color: #555550; }
+ table.keziBeallitas td { background-color: rgb(200,200,190); }
+ table.keziBeallitas th { background-color: rgb(140,150,160); color: white; height:2em;}
+/* ---------------------- */
+
+ h2 { text-align: center; border: dotted black; border-width: 1px 0px; margin: 20px 50px;}
+ table.csereAttekintes { background-color: #555550; margin: 10px; text-align: center; margin: auto; }
+ table.csereAttekintes td { background-color: rgb(200,200,190); padding: 2px 20px; }
+ table.csereAttekintes th { background-color: rgb(140,150,160); color: white; }
+
+ #updateWindow { width: 80%; top: 10%; margin-top: auto; margin-bottom: auto; height: 80%; left: 50%; margin-left: -40%; }
+ #updateHeader { cursor: pointer; }
+
+ #updateForm { max-height: 95%; overflow: auto; }
+
+ table.haladasiNaplo {
+ background-color: rgb(50,60,80);
+ width: 98%;
+ font-size: 11px;
+ }
+ table.haladasiNaplo thead tr th{
+ background-color: rgb(50,60,80);
+ color: white;
+ border-bottom: solid 1px white;
+ height:1.5em;
+ }
+ table.haladasiNaplo tfoot tr th{
+ font-size: 10px;
+ color: white;
+ }
+ table.haladasiNaplo tr td{ padding:0.6em; background-color: #eee; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/hetes.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/hetes.css
new file mode 100644
index 00000000..78809cd3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/hetes.css
@@ -0,0 +1,8 @@
+@media screen {
+
+ table.hetes { background-color: #fefefe;}
+ table.hetes tr th { background-color: #64C864; border-bottom: solid 1px lightgreen; }
+ table.hetes tr td { padding: 1px 8px; }
+ table.hetes tr:nth-child(odd) td { background-color: #e0e0e0 }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/minuszora.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/minuszora.css
new file mode 100644
index 00000000..1637e333
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/minuszora.css
@@ -0,0 +1,28 @@
+
+ form.minuszora { margin: 20px auto; width: 500px; text-align: center; }
+ form.minuszora ul { text-align: left; list-style-type: none; padding: 1px; background-color: rgb(20,40,60);}
+ form.minuszora ul li { margin: 1px; padding: 2px; background-color: rgb(20,80,40); color: white; font-weight: bold; }
+ form.minuszora ul ul { list-style-type: none; background-color: rgb(200,200,200); }
+ form.minuszora ul ul li { padding: 4px 4px; margin: 1px 20px; background-color: rgb(255,240,220); color: black; font-weight: normal; }
+ form.minuszora input { color: rgb(200,0,0); font-weight: bold; }
+
+ span.latogatott {
+ background-color: #649664;
+ color: #FFF;
+ text-decoration: none;
+ padding-left: 5px;
+ padding-right: 5px;
+ border-bottom: solid 1px #008000;
+ margin: 0px 2px 0px 2px;
+ }
+
+ form.minuszora ul li.egyéb { background-color: #ee88cc; }
+ form.minuszora ul li.egyéb.órarend { background-color: #aaaacc; }
+
+ form.minuszora ul li.egyéb:after { content: "\25B5"; color: cornflowerblue; }
+ form.minuszora ul li.egyéb.órarend:after { content: "\25B2"; }
+
+ form.minuszora ul li { border-left: solid 2px darkgreen; }
+ form.minuszora ul li ul li { border-left: solid 0px darkgreen; }
+ form.minuszora ul li:hover { border-left: solid 2px cornflowerblue; }
+ form.minuszora ul li:hover ul li { border-left: solid 0px cornflowerblue; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css
new file mode 100644
index 00000000..df459f0e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/oralatogatas.css
@@ -0,0 +1,12 @@
+
+ ul.ora { list-style-type: none; color: white; margin: 20px; padding: 0px; }
+ ul.ora li { background-color: rgb(130,100,130); margin: 1px 0px; padding: 0px; }
+ ul.ora li p { background-color: rgb(60,0,60); border: 1px solid white; border-width: 0px 0px 1px 0px; padding: 10px; text-align: center; }
+ ul.ora li p span.ora { float: left; color: yellow; }
+ ul.ora li p input { margin: 0px; float: right; }
+ ul.ora li select { height: 100px; }
+ ul.ora li textarea { width: 80%; height: 100px; }
+ ul.ora li div { padding: 4px; }
+ ul.ora li div.jobb { float: right; }
+
+ ul.ora li form.latogatva { background-color: rgb(100,130,100); }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/osszevonas.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/osszevonas.css
new file mode 100644
index 00000000..edbde3bb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/osszevonas.css
@@ -0,0 +1,27 @@
+
+ form.pluszora {
+ background-color: rgb(200,200,180);
+ margin-left: 180px;
+ margin-right: 180px;
+ text-align: center;
+ }
+ form.pluszora h2 {
+ margin-bottom: 2em;
+ font-size:larger;
+ }
+ form.pluszora ul {
+ text-align: left;
+ }
+
+ ul.pluszora {
+ background-color: rgb(20,40,80);
+ list-style-type: none;
+ margin: 20px;
+ padding: 10px 0px;
+ }
+
+ ul.pluszora li { background-color: rgb(160,160,250); margin: 2px 100px; padding: 2px 20px;}
+ ul.pluszora li span { color: rgb(20,40,80); padding: 0px 5px; margin: 1px 5px;}
+ ul.pluszora li span.oraszam { color: red; padding: 0px 20px;}
+
+ h2 { text-align: center; border: 1px dotted rgb(20,40,80); border-width: 1px 0px; margin: 20px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/pluszora.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/pluszora.css
new file mode 100644
index 00000000..4aaa1dfe
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/pluszora.css
@@ -0,0 +1,30 @@
+
+ form.pluszora {
+// background-color: rgb(200,200,180);
+ text-align: center;
+ margin: 20px;
+ }
+
+ ul.pluszora {
+// background-color: rgb(20,40,80);
+ list-style-type: none;
+ margin: 20px;
+ padding: 10px 0px;
+ }
+
+ ul.pluszora li { background-color: rgb(160,160,250); margin: 1px 100px; padding: 1px 20px;}
+ ul.pluszora li span { color: rgb(20,40,80); padding: 0px 5px; margin: 1px 5px;}
+ ul.pluszora li span.oraszam { color: rgb(128,0,128); padding: 0px 4px;}
+
+ h2 { text-align: center; border: 1px dotted rgb(20,40,80); border-width: 1px 0px; margin: 20px; }
+
+ h1 { margin:20px; }
+ form.pluszLila {margin:20px; padding-left:10px;}
+ form.pluszLila { margin:20px;}
+ form.pluszLila label { display:block; margin-top:2em; margin-bottom:1em; border-bottom: solid 1px #ddd; width:100px; }
+
+ form.pluszLila button.selectorButton { font-size:14px; padding:2px; display:inline-block; cursor: pointer}
+ form.pluszLila button.selectorButton span.icon-plus-sign { color: #009688;}
+ form.pluszLila button.selectorButton span.icon-minus-sign { color: #607D8B}
+
+ form.pluszLila button.selectorButton:active span { text-shadow: 0px 0px 1px cornflowerblue;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/specialis.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/specialis.css
new file mode 100644
index 00000000..68bad63b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/specialis.css
@@ -0,0 +1,36 @@
+
+ form.specialis {
+ background-color: rgb(230,230,230);
+ margin: 40px;
+ text-align: center;
+ padding: 10px;
+ border: 1px solid rgb(20, 40, 80);
+ border-style: solid dotted;
+ }
+
+ form.specialis table {
+ color: white;
+ margin: 10px 20% 10px 20%;
+ width: 60%;
+ background-color: rgb(200,100,180);
+ }
+
+ form.specialis table thead th, form.specialis table tfoot th {
+ background-color: rgb(140,40,120);
+ }
+
+ form.specialis table th {
+ background-color: rgb(160,60,140);
+ }
+
+ form.specialis table td {
+ background-color: rgb(180,80,160);
+ }
+
+ table.napinfo { background: #999999; margin: 0px auto; }
+ table.napinfo th { background: #6688aa; color: white; text-align: center; }
+ table.napinfo td { padding: 5px 15px; width: 300px; }
+ table.napinfo td:nth-child(odd) { background: #aaeecc; }
+ table.napinfo td:nth-child(even) { background: #aaccee; }
+ table.napinfo td h3 { font-size: 12px; }
+ table.napinfo td strong { font-weight: normal; font-style: italic; color: #aa66aa; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/stat.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/stat.css
new file mode 100644
index 00000000..d0cf780a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/stat.css
@@ -0,0 +1,12 @@
+
+ table.stat { background-color: rgb(120,160,140); margin: 0px auto; }
+ table.stat thead tr th { background-color: rgb(60,100,80); padding-left: 8px; padding-right:8px; color: white;
+ border-bottom: solid 1px #00ff00;
+ height:2.5em;
+ }
+ table.stat tbody tr th { text-align: left; background-color: #dddddd; padding:0px 8px; font-weight:normal;}
+ table.stat tbody tr:hover th { color: white; background-color: rgba(255,255,255,0.1);}
+ table.stat tbody tr td { background-color: #eeeeee; text-align: right; padding: 0px 8px}
+ table.stat tbody tr:hover td { background-color: rgba(255,255,255,0.8); }
+
+ table.stat tr td.ertesitendo { background-color: #880000; color: white; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/haladasi/teremModositas.css b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/teremModositas.css
new file mode 100644
index 00000000..fb360e8c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/haladasi/teremModositas.css
@@ -0,0 +1,17 @@
+
+ table.terem {
+ background-color: #eeeeee;
+ }
+ table.terem tr th {
+ background-color: #666666;
+ color: white;
+ padding: 1px 3px;
+ }
+ table.terem tr td {
+ background-color: #cdcddc;
+ }
+ table.terem.oraAdat {
+ width:100%;
+ }
+
+ table.terem select option.nemferbe { color: red; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diak.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diak.css
new file mode 100644
index 00000000..40024f74
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diak.css
@@ -0,0 +1,128 @@
+
+ table.naptar { background-color: #eeeeee; border-spacing: 0px; }
+ table.naptar thead { background-color: #770088; font-size: medium; height:3em; color: white; }
+ table.naptar thead a { color: white; text-decoration: none }
+ table.naptar thead a:hover { color: white; text-decoration: underline }
+
+ table.naptar thead tr th { padding: 0.4em 0.1em; border-bottom: solid 1px #aa00bb; }
+
+ table.naptar tfoot th { padding:0.3em; text-align: center; background-color: #440055; color: white }
+ table.naptar tfoot td { text-align: center; background-color: #770088; border-top: solid 1px #aa00bb; }
+ table.naptar tfoot td select { background-color: #770088; color: white; font-size:11px; font-family: Verdana;
+ border: solid 1px none; }
+ table.naptar tfoot td select option { color: white; background: #fff; color: #000;}
+
+
+ table.naptar tbody th.fejlec { background-color: #440055; color: white; font-style:italic; padding: 0.3em; border-bottom: solid 1px #777777; border-right: solid 0px #999999; }
+ table.naptar tbody th.fej2 {
+ background-color: #440055; color: white; font-style:italic; border-bottom: solid 1px #770088; border-right: solid 1px #999999;
+ }
+ table.naptar tbody th.fej2:last-child { border-right: solid 0px #999999; }
+ table.naptar tbody td.egynap {
+ height: 40px; width:100px;
+ background-color: #dddddd;
+ border-width: 0px 0px;
+ border-style: solid;
+ border-color: #999999;
+ }
+ table.naptar tbody td.uresnap { background-color: #dddddd; height: 40px; }
+
+
+
+
+ table.naptar table.tanuloEgyNapja { height:100%; background-color: #667766; width:110px;}
+
+ table.naptar table.tanuloEgyNapja:hover { background-color: #778877; outline-offset: 0px; outline: solid 2px orange;}
+
+
+ table.tanuloEgyNapja th.datum { color: #ffffff; width: 40px; height: 10px; }
+ table.tanuloEgyNapja th.balgomb { width:15px; }
+ table.tanuloEgyNapja th.balgombokhelye { min-width:30px; width:30px; max-width:30px; }
+ table.tanuloEgyNapja th.jobbgomb { min-width:30px; width:30px; text-align: right; background-color: #889988; }
+
+ table.tanuloEgyNapja td { }
+
+ table.tanuloEgyNapja form { margin:0px; }
+ table.tanuloEgyNapja input { border: solid 1px #666660; font-size:8px; width:14px; padding:0px; }
+ table.tanuloEgyNapja input.I { color: green; }
+ table.tanuloEgyNapja input.I:hover { background-color: green; color: white; outline: solid 1px lightgreen; }
+ table.tanuloEgyNapja input.H { color: red; }
+ table.tanuloEgyNapja input.H:hover { background-color: red; color: white; outline: solid 1px #ff5500; }
+
+ table.tanuloEgyNapja table.orak {background-color: #889988; }
+ table.tanuloEgyNapja table.orak a { color: #eeeee0; text-decoration: none }
+ table.tanuloEgyNapja table.orak a:hover { background-color: #667766; }
+
+ div.spec {
+ /* background-color: rgb(245,123,12); */
+ background-color: #556699;
+ color: white; width:100%; height: 100%;
+ font-size: 10px;
+ text-align: center;
+ margin-bottom:0px;
+
+ }
+ table.szunet {
+ /* background-color: rgb(245,123,12); */
+ background-color: #667777;
+ color: white; width:100%; height: 100%;
+ font-size: 10px;
+ }
+
+
+
+
+ .jelen {
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .keses {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color:orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+
+ table.hianyzasNaptar {
+ background-color: #778890;
+ }
+
+ .igazolt { background-color: #008800; }
+ .igazolatlan { background-color: #880000; }
+
+ table.hianyzasNaptar {background-color: #778877; font-size:10px; width:100%;}
+ table.hianyzasNaptar th {background-color: #889988; font-weight: normal; }
+ table.hianyzasNaptar a { color: #eeeee0; text-decoration: none }
+ table.hianyzasNaptar a:hover { background-color: red; }
+ table.hianyzasNaptar a.igazolatlan:hover { background-color: lightgreen; }
+ table.hianyzasNaptar td.felszerelesHiany { background-color: rgb(100,100,200); }
+ table.hianyzasNaptar td.egyenruhaHiany { background-color: orange; }
+
+ table.naptar tr th span.kepzes {
+ padding: 1px 3px 1px 3px; font-size:10px; background-color: #776690;
+ border-radius: 2px 2px 2px 2px;
+ -moz-border-radius: 2px;
+ -webkit-border-radius: 2px;
+ }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css
new file mode 100644
index 00000000..6c83c5d6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakIgazolatlan.css
@@ -0,0 +1,12 @@
+
+ table.igazolatlan { margin: 3em auto; background-color: rgb(20,40,60); width: 50%; }
+
+ table.igazolatlan tr th { background-color: rgb(120,140,160); color: white; height: 1.5em;}
+ table.igazolatlan tr.fej th { border-bottom: solid 1px white; }
+ table.igazolatlan tr.lab th { background-color: rgb(160,180,140); text-align: right; padding-right: 1em; }
+
+ table.igazolatlan tr td { color: black; background-color: #eeeeee; }
+
+ table.igazolatlan tr:hover:nth-child(even) td { background-color: rgb(220,240,160); }
+ table.igazolatlan tr:hover:nth-child(odd) td { background-color: rgb(200,240,240); }
+ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakLista.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakLista.css
new file mode 100644
index 00000000..cceccd64
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/diakLista.css
@@ -0,0 +1,50 @@
+
+ table.hianyzasLista { background-color: #eeeeee; empty-cells:show; }
+ table.hianyzasLista tr th { border-bottom: solid 1px #878787; background-color:#cccccc; }
+ table.hianyzasLista tr td { background-color: #ffffff; }
+
+ table.hianyzasLista form { margin:0px; display: inline;}
+ table.hianyzasLista input { border: solid 1px #666660; font-size:8px; width:14px; }
+
+ table.hianyzasLista caption { background-color: rgb(100,0,100); color: white; padding: 5px; font-size: 12px; font-weight: bold; }
+
+ .jelen {
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .keses {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color: orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+
+ table.hianyzasNaptar {
+ background-color: #778890;
+ }
+
+ table.hianyzasLista tr td.igazolt { background-color: lightgreen; }
+ table.hianyzasLista tr td.igazolatlan { background-color: #cc0000; }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/info.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/info.css
new file mode 100644
index 00000000..d3ac53f8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/info.css
@@ -0,0 +1,19 @@
+
+
+ table.info { background-color: #eeeeee; }
+ table.info thead tr th {
+ background-color: purple; color: white;
+ height: 2em;
+ border-bottom: solid 1px #777777;
+ padding-left:1em;
+ padding-right:1em;
+ }
+ table.info tfoot tr th {
+ background-color: #667760; color: white;
+ }
+ table.info tbody tr th { background-color: #aaaabb; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr td { background-color: white; text-align: center; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr th.up { background-color: red; }
+ table.info tbody tr th.down { background-color: green; }
+
+ table.info tbody tr.nap0 th,table.info tbody tr.nap0 td { border-top: solid 2px #ffaab0; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/nap.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/nap.css
new file mode 100644
index 00000000..a3ed6c1e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/nap.css
@@ -0,0 +1,125 @@
+
+ table.csoportNevsorHianyzok {
+ background-color: #eeeeee;
+ color: white;
+ }
+ table.csoportNevsorHianyzok thead { background-color: #440055; }
+ table.csoportNevsorHianyzok thead a { color: white; text-decoration: none }
+ table.csoportNevsorHianyzok thead a:hover { color: white; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok thead th.neve {
+ background-color: purple;
+ font-size: 12px;
+ height: 2em;
+ }
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat td { font-weight: normal; }
+
+ table.csoportNevsorHianyzok tfoot { background-color: #440055; }
+ table.csoportNevsorHianyzok tfoot input { background-color: #eeeeee; font-size:11px; }
+
+ table.csoportNevsorHianyzok tbody {
+ color: black
+ }
+ table.csoportNevsorHianyzok tbody a { color: black; text-decoration: none }
+ table.csoportNevsorHianyzok tbody a:hover { color: black; text-decoration: underline; }
+
+
+
+ table.csoportNevsorHianyzok tbody th {
+ /* background-color: rgb(80,100,120); */
+ }
+
+ table.csoportNevsorHianyzok td { text-align: left; }
+ table.csoportNevsorHianyzok td.késés { text-align: center; }
+
+ table.csoportNevsorHianyzok tbody tr.delutani td,
+ table.csoportNevsorHianyzok tbody tr.tanoran_kivuli td,
+ table.csoportNevsorHianyzok tbody tr.egyeni_foglalkozas td
+ { background-color: #aaaaaa; }
+
+ table.csoportNevsorHianyzok tbody tr:hover { background-color: #ffffff;}
+ table.csoportNevsorHianyzok td a { color: inherit; }
+
+ table.csoportNevsorHianyzok select { border: solid 1px #888888; background-color: #eeeeee; }
+ table.csoportNevsorHianyzok select.igazolatlan { color: red }
+ table.csoportNevsorHianyzok select.igazolt { color: green }
+ table.csoportNevsorHianyzok td.igazolatlan { color: red }
+ table.csoportNevsorHianyzok td.igazolt { color: green }
+ table.csoportNevsorHianyzok th.radio { width: 28px; }
+ table.csoportNevsorHianyzok tr.magantanulo > td.nemkot { background-color: purple; color: white; }
+
+ table.csoportNevsorHianyzok td.nemkot { text-align: center; color: #888888; font-style: italic; }
+
+ table.csoportNevsorHianyzok tr td input.perc {
+ font-size:10px;
+ vertical-align: top;
+ border: solid 1px #aabb99;
+ text-align: right;
+ width:1.5em;
+ }
+
+
+ .jelen {
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas, .hiányzás {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .keses, .késés {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ span.perc {
+ border-color: rgb(200,200,100);
+ border-width: 1px 1px 1px 1px;
+ border-style: solid;
+ background-color: rgb(230,210,130);
+ color: rgb(100,80,0);
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color: orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+ .igazolt { background-color: #008800; }
+ .igazolatlan { background-color: #880000; }
+
+ .fbetus {
+ /* border-color: rgb(100,100,200); */
+ border-color: rgb(120,120,220) rgb(190,190,230);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ background-color: rgb(210,210,255);
+ min-width: 18px;
+
+ }
+
+ .kesett {background-color: orange;}
+
+ table.hianyzasNaptar {
+ background-color: #778890;
+ }
+
+ table.hianyzasNaptar {background-color: #778877; font-size:10px}
+ table.hianyzasNaptar th {background-color: #889988; }
+ table.hianyzasNaptar a { color: #eeeee0; text-decoration: none }
+ table.hianyzasNaptar a:hover { background-color: #667766; }
+ table.hianyzasNaptar td.felszerelesHiany { background-color: rgb(100,100,200); }
+ table.hianyzasNaptar td.egyenruhaHiany { background-color: orange; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/oktstat.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/oktstat.css
new file mode 100644
index 00000000..4f2ff500
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/oktstat.css
@@ -0,0 +1,22 @@
+
+
+ table.info { background-color: #eeeeee; }
+ table.info thead tr th {
+ background-color: purple; color: white;
+ height: 2em;
+ border-bottom: solid 1px #777777;
+ padding-left:1em;
+ padding-right:1em;
+ }
+ table.info tfoot tr th {
+ background-color: #667760; color: white;
+ }
+ table.info tbody tr th { background-color: #aaaabb; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr td { background-color: white; text-align: center; padding-left: 2em; padding-right: 2em; }
+ table.info tbody tr th.up { background-color: red; }
+ table.info tbody tr th.down { background-color: green; }
+
+ table.info tbody tr.nap0 th,table.info tbody tr.nap0 td { border-top: solid 2px #ffaab0; }
+
+
+ div.oktstatszam { border: solid 2px #aaaaaa; display:table-cell; padding:4px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/ora.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/ora.css
new file mode 100644
index 00000000..6eee317a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/ora.css
@@ -0,0 +1,125 @@
+
+ table.csoportNevsorHianyzok { background-color: #eeeeee; color: white; }
+
+ form.delutani table.csoportNevsorHianyzok { background-color: rgb(150,150,150); }
+
+ form.delutani table.csoportNevsorHianyzok thead { background-color: rgb(200,100,100); }
+ form.delutani table.csoportNevsorHianyzok tfoot { background-color: rgb(200,100,100); }
+
+ table.csoportNevsorHianyzok thead { background-color: #440055; }
+ table.csoportNevsorHianyzok thead a { color: white; text-decoration: none }
+ table.csoportNevsorHianyzok thead a:hover { color: white; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat {
+ width:100%;
+ background-color: #eeeeee;
+ font-size: normal;
+ }
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat td { font-weight: normal; }
+
+ table.csoportNevsorHianyzok thead.fejlec tr th { font-weight: normal; height:1.8em; border-bottom: solid 2px rgb(170, 0, 187) }
+
+ table.csoportNevsorHianyzok tfoot { background-color: #440055; }
+ table.csoportNevsorHianyzok tfoot input { background-color: #eeeeee; font-size:11px; }
+
+ table.csoportNevsorHianyzok tbody { color: black ;}
+ table.csoportNevsorHianyzok tbody a { color: black; text-decoration: none }
+ table.csoportNevsorHianyzok tbody a:hover { color: black; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok tbody tr.ujTag th { background-color: lightgreen; }
+ table.csoportNevsorHianyzok tbody tr.ujTag td { background-color: #ffffaa; text-align: center; }
+ table.csoportNevsorHianyzok td { text-align: left; }
+ table.csoportNevsorHianyzok td.késés { text-align: center; }
+ table.csoportNevsorHianyzok tbody tr:hover { background-color: #ffffff;}
+ table.csoportNevsorHianyzok td a { color: inherit; }
+
+ table.csoportNevsorHianyzok select { border: solid 1px #888888; background-color: #eeeeee; }
+ table.csoportNevsorHianyzok select.igazolatlan { color: red }
+ table.csoportNevsorHianyzok select.igazolt { color: green }
+ table.csoportNevsorHianyzok td.igazolatlan { color: red }
+ table.csoportNevsorHianyzok td.igazolt { color: green }
+ table.csoportNevsorHianyzok th.radio { width: 28px; }
+
+ table.csoportNevsorHianyzok td.nemkot { text-align: center; color: #888888; font-style: italic; }
+
+ table.csoportNevsorHianyzok tr td input.perc {
+ font-size:10px;
+ vertical-align: top;
+ border: solid 1px #aabb99;
+ text-align: right;
+ width:1.5em;
+ }
+
+ table.csoportNevsorHianyzok tbody tr.magantanulo > td { background-color: purple; color: white; }
+
+ .jelen {
+ width:12px;
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas, .hiányzás {
+/* width:12px;*/
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .keses, .késés {
+/* width:12px;*/
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ span.perc {
+ border-color: rgb(200,200,100);
+ border-width: 1px 1px 1px 1px;
+ border-style: solid;
+ background-color: rgb(230,210,130);
+ color: rgb(100,80,0);
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .egyenruha_hiany {
+ color: white;
+ background-color: orange;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+ .fbetus {
+ /* border-color: rgb(100,100,200); */
+ border-color: rgb(120,120,220) rgb(190,190,230);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ background-color: rgb(210,210,255);
+ min-width: 18px;
+ }
+
+ .igazolt { background-color: #008800; }
+ .igazolatlan { background-color: #880000; }
+
+
+ .kesett {background-color: orange;}
+
+ table.hianyzasNaptar { background-color: #778877; font-size:10px;}
+ table.hianyzasNaptar th {background-color: #889988; font-weight: normal; text-align:center; }
+ table.hianyzasNaptar a { color: #eeeee0; text-decoration: none }
+ table.hianyzasNaptar a:hover { background-color: #667766; }
+ table.hianyzasNaptar td:nth-child(even) { }
+ table.hianyzasNaptar td.felszerelesHiany { background-color: rgb(100,100,200); }
+ table.hianyzasNaptar td.egyenruhaHiany { background-color: orange; }
+
+ form.vissza { background-color: white; width: 570px; margin: 0px auto; }
+ form.vissza input { border: none; background-color: white; cursor: pointer; }
+
+ table.csoportNevsorHianyzok tbody tr th.c { font-weight: normal }
+ table.csoportNevsorHianyzok tbody tr th.c:hover span { display: none; }
+ table.csoportNevsorHianyzok tbody tr th.c:hover:after { content: "\e0ca"; font-family: "Elusive-Icons";}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztaly.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztaly.css
new file mode 100644
index 00000000..b342097b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztaly.css
@@ -0,0 +1,170 @@
+
+ table.hianyzas {
+ background-color: rgb(180,180,200);
+ color: white;
+ max-width:95%;
+ }
+
+ table.hianyzas thead th {
+ background-color: rgb(40,80,120);
+ }
+
+ table.hianyzas thead th.alcim {
+ background-color: rgb(255,255,255);
+ color: rgb(40,80,120);
+ font-style: italic;
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.hianyzas thead th.alcim img { hight: 16px; }
+
+ table.hianyzas tfoot th { background-color: rgb(80,20,80); }
+ table.hianyzas tfoot td { background-color: rgb(95,75,95); text-align: center; }
+
+ table.hianyzas tbody td { text-align: center; }
+ table.hianyzas tbody td.nev {
+ background-color: rgb(90,90,110);
+ font-style: italic;
+ padding: 4px 10px 4px 10px;
+ text-align:left;
+ }
+
+ table.hianyzas tbody tr.jogviszonyalezarva td.nev {
+ background-color: rgb(40,40,90);
+ }
+
+ table.hianyzas tbody tr.magantanulo td.nev {
+ background-color: rgb(140,40,90);
+ }
+
+ table.hianyzas tbody td.nev a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.hianyzas tbody td.nev a:hover {
+ color: white;
+ /* background-color: rgb(180,180,220); */
+ text-decoration: underline;
+ }
+
+ table.hianyzas tbody td.ulezart {
+ width: 18px;
+ background-color: rgb(200,200,220);
+ }
+
+ table.hianyzas tbody td.lezart {
+ width: 18px;
+ background-color: rgb(100,100,120);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.uigazolhato {
+ width: 18px;
+ background-color: rgb(240,240,260);
+ }
+
+ table.hianyzas tbody td.igazolhato {
+ width: 18px;
+ background-color: rgb(140,140,160);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.uosszes {
+ width: 18px;
+ background-color: rgb(220,240,230);
+ }
+
+ table.hianyzas tbody td.osszes {
+ width: 18px;
+ background-color: rgb(120,140,130);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.ufegyelmi {
+ width: 18px;
+ background-color: rgb(220,230,240);
+ }
+
+ table.hianyzas tbody td.fegyelmi {
+ width: 18px;
+ background-color: rgb(130,150,150);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.ufokozat {
+ width: 18px;
+ background-color: rgb(220,210,200);
+ }
+
+ table.hianyzas tbody td.fokozat { background-color: rgb(120,110,100); }
+ table.hianyzas tbody td.fokozat form { display: inline; }
+ table.hianyzas tbody td.fokozat form input,select { font-size:11px; }
+ table.hianyzas tbody td.fokozat form select option.megerdemelt { background-color: rgb(100,100,100); color: rgb(220,255,220); }
+ table.hianyzas tbody td.fokozat form select option.tiltott { background-color: rgb(100,100,100); color: rgb(250,100,100); font-family: italic }
+
+ table.hianyzas tbody td.oi { text-align: center; }
+
+ /* table.hianyzas tbody */
+ td.hianyzas {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.keses {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.felszereles {
+ border-color: rgb(100,100,200);;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ td.egyenruha {
+ border-color: orange;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.felmentes {
+ border-color: rgb(100,200,100);;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ /* table.hianyzas tbody */
+ td.igazolt { color: rgb(55,255,55); }
+ /* table.hianyzas tbody */
+ td.igazolatlan { color: rgb(255,55,55); }
+ /* table.hianyzas tbody */
+ td.mind { color: white; }
+
+ /* navi */
+
+ table.navi {
+ width:95%;
+ background-color: #666699;
+ color: #eeeee0;
+ }
+ table.navi th, table.navi td {
+ text-align: center;
+ border-style: solid none solid none;
+ border-width: 1px 0px 2px 0px;
+ border-color: #aabbc0;
+ }
+ table.navi input {
+ background-color: #778890;
+ border: solid 1px #aabbc0;
+ width:30px;
+ }
+ table.navi input.aktiv {
+ color: #aabbc0;
+ background-color: rgb(90,50,90);
+ }
+ table.navi select { border: 1px solid #eeeee0; background-color: #aabbc0; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css
new file mode 100644
index 00000000..6664faa5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hianyzas/osztalyNap.css
@@ -0,0 +1,43 @@
+
+ table.hianyzas { margin: auto; border-spacing: 1px; background-color:#aaaaaa; }
+ table.hianyzas thead th { background-color: #440055; padding: 4px 8px; color: white;
+ }
+ table.hianyzas tbody th { background-color: rgb(150,140,150); padding: 4px 2px; color: white; }
+ table.hianyzas tbody th.tk { background-color: #ffffff; color: black; font-weight:normal;font-style: italic; padding-left:10px; padding-right:10px; }
+
+ table.hianyzas tfoot th { background-color: #440055; padding: 1px; color: white; border-bottom: solid 1px white; text-align: right; font-size:xx-small; }
+ table.hianyzas tbody td { background-color: #ffffff; padding: 4px 8px; }
+
+
+ table.hianyzas tbody tr td.d { width:5px; padding:0px;
+ border-width: 0px 4px 0px 4px;
+ border-style: solid;
+ text-align: center;
+ color: white;
+ font-weight: bold;
+ }
+
+ table.hianyzas tbody tr td.d.igazolatlan {
+ background-color: #cc0000;
+ }
+ table.hianyzas tbody tr td.d.igazolt {
+ background-color: #00cc00;
+ }
+ table.hianyzas tbody tr td.d.hianyzas {
+ border-color: rgb(200,100,100);
+ }
+ table.hianyzas tbody tr td.d.keses {
+ border-color: rgb(200,200,100);
+ }
+ table.hianyzas tbody tr td.d.felszereles {
+ border-color: rgb(100,100,200);
+ }
+ table.hianyzas tbody tr td.d.egyenruha {
+ border-color: orange;
+ }
+
+ table.hianyzas tbody th a { color: white; text-decoration: none; }
+ table.hianyzas tbody th.tk a { color: black; text-decoration: none; }
+ table.hianyzas tbody td a { color: black; text-decoration: none; }
+ table.hianyzas tbody th a:hover,
+ table.hianyzas tbody td a:hover { text-decoration: underline; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/admin.css b/mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/admin.css
new file mode 100644
index 00000000..89eefd3d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/admin.css
@@ -0,0 +1,89 @@
+
+ ol.kerelem { list-style-type: none; margin: 0px; padding:10px;}
+ ol.kerelem li { background-color: #ddd; margin: 10px 0px 10px 0px; padding: 10px; text-align: left; }
+ ol.kerelem li div.szoveg { background-color:; padding: 10px; margin: 0px auto; color: white; font-size: 14px;}
+ ol.kerelem li div.valasz { background-color: rgb(220,200,180); width: 80%; padding: 10px; margin: 5px auto 10px auto; font-style: italic; }
+
+ ol.kerelem fieldset { background-color: #3F51B5;#3c3c64;#2196f3; border-style:hidden; }
+ ol.kerelem legend { border: 1px solid white; padding: 6px; font-weight: normal; color: white;background-color: #aaa; ; }
+ ol.kerelem li textarea { width: 90%; margin: 10px auto; border: solid 1px #888888; font-size:14px; height:5em; padding:0.8em; }
+
+ ol.kerelem span.dt { padding: 5px 10px; margin: 5px 20px; border: 1px solid white; font-weight: bold; color: white; background-color: rgb(60,100,60); }
+ ol.kerelem input { padding: 5px 10px; margin: 5px 20px; border: 1px solid white; font-weight: bold; color: white; background-color: rgb(100,100,60); }
+
+ span.mg { background-color: orange; color: white; padding:7px 20px; margin:20px; border: solid 1px white; }
+ span.mg2 { background-color: rgb(200,100,100); color: white; padding:7px 20px; margin:20px; border: solid 1px white; }
+ ol.kerelem select.mg { background-color: orange; color: white; font-weight: bold; border: solid 1px orange; }
+ ol.kerelem select.telephely { background-color: rgb(200,100,100); color: white; font-weight: bold; border: solid 1px rgb(200,100,100); }
+
+ ol.kerelem input.mg { background-color: rgb(100,100,100); }
+
+ ol.kerelem li.jovahagyott,
+ ol.kerelem input.jh { background-color: rgb(100,160,100); }
+ ol.kerelem input.njh { background-color: rgb(200,100,60); }
+ ol.kerelem input.done { background-color: rgb(100,100,160); }
+
+ ol.kerelem li.jovahagyott { border: solid 1px green; }
+
+ table.kerelemValasz { width:99%; background-color: #efefef; margin:auto;}
+ table.kerelemValasz tr th { width:80px; font-weight:normal; text-align:right; vertical-align:top; padding:2px 4px;}
+ table.kerelemValasz tr td.userAccount { border-left: solid 2px white;}
+ table.kerelemValasz tr.c0 td.userAccount { border-color: #ffeb3b;}
+ table.kerelemValasz tr.c1 td.userAccount { border-color: #ffc107;}
+ table.kerelemValasz tr.c2 td.userAccount { border-color: #ff9800;}
+ table.kerelemValasz tr.c3 td.userAccount { border-color: #ff5722;}
+ table.kerelemValasz tr.c4 td.userAccount { border-color: #03a9f4;}
+
+ table.kerelemValasz tr td { background-color: white; padding:2px 4px; vertical-align:top;}
+ table.kerelemValasz tr td.userAccount { width:80px;}
+
+ table.kerelemValasz span.diakNev { height:10px; width:10px; font-size:10px; color:white; background-color: #6495ed; border-radius:50%; padding:2px; border: solid 2px #eee;}
+ table.kerelemValasz span.diakNev:hover { border: solid 2px #15477b;}
+
+ table.kerelemValasz span.tanarNev { height:10px; width:10px; font-size:10px; color:white; background-color: #db0601; border-radius:50%; padding:2px; border: solid 2px #eee;}
+ table.kerelemValasz span.tanarNev:hover { border: solid 2px #e91e63;}
+
+ form.hiba {
+ background-color: cornflowerblue;
+ margin:10px;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 0.5em;
+ color: white;
+ margin-bottom: 2em;
+ text-align: center;
+ border-bottom: solid 1px rgb(20,40,60);
+ }
+
+ form.hiba h1 { font-size: 14pt; border-bottom: solid 1px #eee; background-color: rgb(20,40,60); margin: 4px 0px; padding: 3px}
+/*
+ form.hiba textarea { font-size: 14px; background-color: rgb(250,250,250); width: 99%; height: 100px; border: solid 1px black; padding:2px;}
+*/
+form.hiba textarea {
+ font-size:14px;
+ margin-top: 10px;
+ margin-left: 0px;
+ width: 90%;
+ height: 100px;
+ -moz-border-bottom-colors: none;
+ -moz-border-left-colors: none;
+ -moz-border-right-colors: none;
+ -moz-border-top-colors: none;
+ background: none repeat scroll 0 0 rgba(255, 255, 255, 0.9);
+ border-color: -moz-use-text-color #FFFFFF #FFFFFF -moz-use-text-color;
+ border-image: none;
+ border-radius: 0px;
+ border-style: none solid solid none;
+ border-width: medium 1px 1px medium;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
+ color: #555555;
+ line-height: 1.4em;
+ padding: 5px 8px;
+ transition: background-color 0.1s ease 0s;
+}
+
+textarea:focus {
+ background-color: #fff !important;
+ background: none repeat scroll 0 0 #FFFFFF;
+ outline-width: 0;
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css b/mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css
new file mode 100644
index 00000000..c767a75d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hibabejelento/hibabejelento.css
@@ -0,0 +1,26 @@
+
+ form.hiba {
+ background-color: rgb(20,120,140);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 0.5em;
+ color: white;
+ margin-bottom: 2em;
+ text-align: center;
+ border-bottom: solid 2px rgb(20,40,60);
+ }
+
+ form.hiba h1 { font-size: 14pt; border-bottom: solid 2px rgb(100,200,160); border-width: 2px 0px; background-color: rgb(20,40,60); margin: 4px 0px; padding: 3px}
+ form.hiba textarea { font-size: 14px; background-color: rgb(250,250,250); width: 99%; height: 100px; border: solid 1px black; padding:2px;}
+
+ form.hiba input,
+ form.hiba select {
+ margin:2px 10px;
+ background-color: cyan;
+ border: solid 1px rgb(120,220,240);
+ padding:0px 10px;
+ }
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hirnok/cronFutar.css b/mayor-orig/www/skin/classic/module-naplo/css/hirnok/cronFutar.css
new file mode 100644
index 00000000..9ddb9010
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hirnok/cronFutar.css
@@ -0,0 +1,9 @@
+
+ div.emailFejlec {
+ text-align: center; border-bottom: solid 1px cornflowerblue ;
+ font-size:18px; line-height:30px; margin-bottom:20px; padding:4px;
+ margin-right:auto; margin-left: auto;
+ width:200px;
+ /* background: linear-gradient(90deg, #336, #0aa); */
+ color: cornflowerblue;
+ }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/hirnok/hirnok.css b/mayor-orig/www/skin/classic/module-naplo/css/hirnok/hirnok.css
new file mode 100644
index 00000000..20b9861f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/hirnok/hirnok.css
@@ -0,0 +1,108 @@
+
+ /* flex container */
+ div.hirnokDoboz {
+ width:90%;
+ max-width: 800px;
+ background-color: #f8f8f8;
+ padding:2px;
+ border: solid 1px #ddd;
+ border-radius: 2px;
+ margin-left: auto; margin-right:auto;
+ margin-bottom:1em;
+ display:flex;
+ align-items: center;
+ }
+ /* special */
+ div.hirnokDoboz.uzeno {
+ align-items: flex-start;
+ }
+
+ /* flex item */
+ div.hirnokBadgeHolder {
+ /*height: 30px;*/
+ padding: 2px;
+ margin: 4px;
+ }
+ div.hirnokBadgeHolder span {
+ height:30px;
+ width:30px;
+ font-size:30px;
+ padding:4px;
+ margin:0px;
+ color: white;
+ background-color: cornflowerblue;
+ border-radius: 2px;
+ }
+ div.hirnokBadgeHolder a:hover span { background-color: rgba(255,0,100,0.5); }
+ div.hirnokBadgeHolder.jegy span { background-color: lightgreen; }
+ div.hirnokBadgeHolder.haladasiBeiratlan span { background-color: orange; }
+ div.hirnokBadgeHolder.zaroJegy span { background-color: gold; }
+ div.hirnokBadgeHolder.uzeno span { background-color: #3f51b5; }
+ div.hirnokBadgeHolder.bejegyzes span { background-color: #9c27b0; }
+ div.hirnokBadgeHolder.bejegyzes.bejegyzes_dicseret { background-color: red; }
+ div.hirnokBadgeHolder.haladasiOra span { background-color: #9c27b0; }
+
+ div.hirnokDoboz.uzeno div.hirnokBadgeHolder, div.hirnokDoboz.uzeno div.hirnokDt {
+ padding-top:8px;
+ }
+
+ div.hirnokDt {
+ font-size:smaller;
+ padding-right: 2px;
+ }
+ div.hirnokDt a { color: black; }
+ div.hirnokDt a:hover { text-decoration: underline; }
+ div.hirnokDt span { color: #aaa; }
+ div.hirnokDt span a { color: #aaa; }
+ div.hirnokDt span a:hover { text-decoration: underline; }
+ div.hirnokText {
+ padding-left:6px;
+ padding-right:6px;
+ padding-top: 6px;
+ padding-bottom:6px;
+ border-left: solid 1px #aaa;
+ margin-left:2px;
+ margin:auto;
+ flex: 0 1 90%;
+ }
+
+ div.hirnokRight {
+ /*border-left: solid 1px #aaa;*/
+ }
+
+ div.hirnokFooter {flex-break: after; width:500px; background-color:#ddd; border-top:solid 1px black;}
+
+
+ div.hirnokSeparator {
+ color: #888;
+ max-width:150px;
+ margin:auto;
+ text-align:center;
+ padding:10px;
+/* border-bottom: solid 1px #eee; */
+ }
+ div.hirnokSeparator {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ }
+ div.hirnokSeparator:before, div.hirnokSeparator:after{
+ content: "";
+ flex: 1 1;
+ border-bottom: 1px solid #ddd;
+ margin: auto;
+ }
+ div.hirnokSeparator a { color:inherit; display:block;}
+ div.hirnokSeparator:hover { background-color: cornflowerblue; color:white; }
+
+
+/* teszt */
+ div.hirnokDoboz div.hirnokIkonKontener{ display:inline-flex; padding-left:1em; opacity: 0.2; visibility: hidden}
+ div.hirnokDoboz div.hirnokIkonKontener span { padding-left:4px; padding-right:4px;}
+ div.hirnokDoboz:hover div.hirnokIkonKontener{ display:inline-flex; padding-left:1em; opacity: 1;
+ transition: visibility 0s, opacity 0.5s linear;
+visibility: visible;
+}
+ div.hirnokText a { color: #aaa; }
+ div.hirnokText a:hover { color:#111; cursor: hand }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diak.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diak.css
new file mode 100644
index 00000000..4aa979a5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diak.css
@@ -0,0 +1,148 @@
+
+ div.diakStatusz {
+ position:absolute;
+ right:28px;
+ background-color: #dddddd; border: solid 1px black; padding:10px;
+ font-size:13px;
+ border-radius:2px;
+ }
+
+ form.diak #felfuggesztesOk { width: 500px; margin-top: 10px; }
+ form.diak #lezarasIgazolatlan { width: 50px; }
+ form.diak #lezaras { margin-top: 10px; }
+ form.diak label { font-weight: bold; }
+
+ form.diak table tr th label { font-weight: normal; }
+
+ div form.diak fieldset { background-color: #efefef; box-shadow: 1px 1px 1px #cccccc; padding-top:1.5em;}
+ fieldset.bizonyitvanyTorzslap { background-color: #DD1458 !important; box-shadow: 1px 1px 1px #cccccc; padding-top:1.5em; color: white;}
+
+ form.diak { margin: 5px 30px 50px 20px; font-size:13px; }
+ form.diak h1 { border: solid rgb(40,60,80); border-width: 0px 0px 1px 0px; background-color: rgb(80,100,120); text-align: center; color: white; margin:0px 0px; font-size:13px; padding:2px;}
+
+ form.diak input, form.diak select {
+ font-size:13px;
+ border: solid 1px #777777;
+ margin-left: 3px;
+ padding-left: 2px;
+ }
+
+ form.diak input.diakSubmit { float:right; padding:2px 30px; width:100px; }
+
+/* lásd alul */
+ form.diak:hover input.diakSubmit { border: solid 1px lightgreen; }
+ form.diak:hover input.diakSubmit:hover { background-color: lightgreen; }
+
+ form.diak input.kiemelt { background-color: rgb(255,255,100); border-width: 1px 1px 0px 1px; }
+ form.diak label { font-size:13px; }
+ form.diak label.kotelezo { color:rgb(100,20,20); }
+
+ form.diak input:read-only { background-color: #aaa; }
+ form.diak input:focus, form.diak select:focus { background-color: orange; }
+
+/* form.diak input[type="checkbox"] { -moz-appearance: none; }*/
+ from.diak input.ajaxRequest { color: black; background-color: red; }
+ form.diak input.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.diak select.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.diak input.ajaxRequestError { color: white; background-color: rgb(130,0,0); }
+ form.diak select.ajaxRequestError { color: white; background-color: rgb(130,0,0); }
+
+ form.diak input:hover { outline: solid 1px lightblue; }
+
+ form.diak fieldset { border: solid 1px rgb(140,160,180); }
+ form.diak fieldset th { text-align: right; }
+ form.diak fieldset legend {
+ background-color: rgb(100,120,140);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.diak fieldset:hover legend { box-shadow: 0px 0px 1px rgb(21, 174, 236); }
+ form.diak fieldset fieldset:hover legend { box-shadow: 0px 0px 1px orange; }
+
+ form.diak #megjegyzes { width: 90%; }
+ div.magantanulo form.diak fieldset { background-color: rgb(180,180,100); }
+ div.magantanulo form.diak fieldset legend { background-color: rgb(80,80,10); }
+ div.vendegtanulo form.diak fieldset { background-color: rgb(180,180,180); }
+ div.vendegtanulo form.diak fieldset legend { background-color: rgb(80,80,10); }
+
+ div.jogviszonyLezarva form.diak fieldset { background-color: rgb(210,140,130); }
+ div.jogviszonyLezarva form.diak fieldset legend { background-color: rgb(110,40,30); }
+ div.jogviszonyFelfuggesztve form.diak fieldset { background-color: rgb(130,140,210); }
+ div.jogviszonyFelfuggesztve form.diak fieldset legend { background-color: rgb(30,40,110); }
+ div.felveteltNyert form.diak fieldset { background-color: lightgreen }
+ div.felveteltNyert form.diak fieldset legend { background-color: rgb(40,110,30); }
+/*
+ div.magantanulo form.diak fieldset { background-color: rgb(180,180,100); }
+ div.jogviszonyLezarva form.diak fieldset { background-color: rgb(210,140,130); }
+ div.jogviszonyFelfuggesztve form.diak fieldset { background-color: rgb(130,140,210); }
+ div.felveteltNyert form.diak fieldset { background-color: rgb(140,210,130); }
+*/
+ form.diak input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+
+ form.diak table.fiu { border-left: solid 4px cornflowerblue;}
+ form.diak table.lany { border-left: solid 4px deeppink;}
+
+ form.diak fieldset table.reszletek { width: 100%; background-color: rgb(220,220,255); }
+ form.diak fieldset table.reszletek th { text-align: right; font-weight: normal; }
+ form.diak fieldset table.reszletek h1 {
+ text-align: center; background-color: rgb(100,100,120); font-size: 13px;
+ border-color: rgb(200,200,200); color: white;
+ }
+ form.diak table.reszletek legend { background-color: rgb(100,100,120); font-weight: bold; color: white; }
+ form.diak td.top { vertical-align: top; }
+ form.diak fieldset fieldset legend { background-color: white; color: black; }
+
+ form.diak ul li { font-size:13px; list-style-type: square; }
+ form.diak ul li.volt { background: #aaaaaa; list-style-type: circle; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
+ form.megnyitas input { border: 2px solid red; background-color: rgb(120,50,10); color: white; font-size: 13px; font-weight: bold; padding: 4px; }
+ form.statusz { border: 1px solid rgb(40,60,80); padding: 2px; text-align: center; }
+
+ form.diak span.naploSorszam { background-color: rgb(120,120,160); color: white; padding:0px 10px; font-size:normal; }
+
+ #createAccount { background-color: green; color: white; float: left; margin-left: 200px; }
+ #deleteAccount { background-color: red; color: white; float: right; margin-right: 200px; }
+
+
+form.diak input.diakSubmit
+{
+ border:1px solid #15aeec; -webkit-border-radius: 3px; -moz-border-radius: 3px;border-radius: 3px;
+ text-decoration:none; display:inline-block;
+ text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
+ font-weight:bold; color: #FFFFFF;
+ background-color: #49c0f0; background-image: -webkit-gradient(linear, left top, left bottom, from(#49c0f0), to(#2CAFE3));
+ background-image: -webkit-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: -moz-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: -ms-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: -o-linear-gradient(top, #49c0f0, #2CAFE3);
+ background-image: linear-gradient(to bottom, #49c0f0, #2CAFE3);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#49c0f0, endColorstr=#2CAFE3);
+}
+
+
+button:hover, .toolBarTool table.flipper input:hover,form.diak input.diakSubmit:hover
+, table.toolBar tr td.szemely:hover
+ {
+ border:1px solid #1090c3;
+ background-color: #1ab0ec; background-image: -webkit-gradient(linear, left top, left bottom, from(#1ab0ec), to(#1a92c2));
+ background-image: -webkit-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: -moz-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: -ms-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: -o-linear-gradient(top, #1ab0ec, #1a92c2);
+ background-image: linear-gradient(to bottom, #1ab0ec, #1a92c2);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#1ab0ec, endColorstr=#1a92c2);
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakExport.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakExport.css
new file mode 100644
index 00000000..b07bf0db
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakExport.css
@@ -0,0 +1,46 @@
+
+ form.diak { background-color: white; }
+
+ form.diak { margin: 5px 30px 20px 20px; font-size:10px; }
+ form.diak h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.diak input, form.diak select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ }
+ form.diak input.kiemelt { background-color: rgb(255,255,100); border-width: 1px 1px 0px 1px; }
+ form.diak label { font-size:11px; }
+ form.diak label.kotelezo { color:rgb(100,20,20); }
+ form.diak input:focus { background-color: orange; }
+
+ form.diak fieldset { border: solid 1px rgb(40,60,80); }
+ form.diak fieldset th { text-align: right; }
+ form.diak fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.diak input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+ form.diak fieldset table.reszletek { width: 100%; background-color: rgb(220,220,255); }
+ form.diak fieldset table.reszletek th { text-align: right; }
+ form.diak fieldset table.reszletek h1 {
+ text-align: center; background-color: rgb(100,100,120); font-size: 12pt;
+ border-color: rgb(200,200,200); color: white;
+ }
+ form.diak table.reszletek legend { background-color: rgb(100,100,120); font-weight: bold; color: white; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css
new file mode 100644
index 00000000..e7630da3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakFelmentes.css
@@ -0,0 +1,33 @@
+div.FM {
+ margin:10px auto;
+ width: 90%;
+ padding-bottom:2em;
+ border-bottom: solid 1px rgb(100,120,140);
+}
+
+div.FM h2 {
+ background-color: rgb(200,240,200);
+ border-bottom: solid 1px white;
+}
+
+div.FM div { padding: 1em; }
+div.FM label { padding:0px 10px 0px 20px; font-weight: bold; font-size:13px; line-height:2em;}
+
+div.FM.FM1 {background-color:rgb(200,210,220);}
+div.FM.FM2 {background-color:rgb(200,210,220);}
+div.FM.FM3 {background-color:rgb(200,210,220);}
+div.FM.FMZAR, div.FM.FMTAN {background-color:rgb(210,250,210); }
+
+div.FM div.submit { text-align: center; }
+
+div.FM div.rejtett { }
+
+div.FM table {
+ width:100%; border: solid 1px #787878;
+ background-color: lightgreen;
+}
+div.FM table th { background-color: #56765f; color: white; border-bottom: solid 1px white;}
+div.FM table td { }
+
+div.FM input[readonly] { background-color: #dddddd; }
+div.FM input { background-color: #ffffff; border: solid 1px #787878;} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css
new file mode 100644
index 00000000..c824ece3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakStatusz.css
@@ -0,0 +1,14 @@
+
+ div.dj { margin: 2px 10px; background-color: rgb(200,220,240); padding: 20px; }
+ div.dj form { background-color: rgb(240,245,250); padding: 10px; }
+ div.dj ul { list-style-type: none; margin: 0px; padding: 5px 0px; background-color: rgb(20,40,60); }
+ div.dj ul li { margin: 5px; padding: 2px 0px; background-color: rgb(140,160,180); }
+ div.dj ul li form { margin: 4px; }
+ div.dj ul li span.dt { font-weight: bold; color: red; }
+ div.dj ul li form.statusz p { padding: 3px; margin: 0px; }
+ div.dj ul li form.zaradek p { font-style: italic; }
+ div.dj ul li form.zaradek p span { color: red; }
+ div.dj ul li h2 { font-size: 12px; border: solid rgb(140,160,180); border-width: 1px 0px; padding: 3px; }
+ div.dj ul li form input[type=submit] { font-size: 12px; margin: 3px 20px; float:right;}
+ div.dj ul li form select { font-size: 12px; padding: 5px; }
+ div.dj ul li table th { text-align: right; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css
new file mode 100644
index 00000000..bd007b93
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakSzulo.css
@@ -0,0 +1,49 @@
+
+# form.diak { background-color: rgb(40,60,80); color: white; margin: 5px 20px; padding: 4px 10px; }
+
+ form.diak { margin: 5px 30px 20px 20px; font-size:10px; }
+ form.diak h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.diak input, form.diak select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ margin: 2px;
+ }
+ form.diak label { font-size:11px; padding: 10px;}
+ form.diak input:focus, form.diak select:focus { background-color: orange; }
+ form.diak input[type="checkbox"] { /* -moz-appearance: none; */ }
+ from.diak input.ajaxRequest { color: black; background-color: red; }
+ form.diak input.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.diak select.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+
+ form.diak fieldset { border: solid 1px rgb(40,60,80); }
+ form.diak fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.diak input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+ form.diak fieldset table.reszletek { width: 100%; background-color: rgb(220,220,255); }
+ form.diak fieldset table.reszletek th { text-align: right; }
+ form.diak fieldset table.reszletek h1 {
+ text-align: center; background-color: rgb(100,100,120); font-size: 12pt;
+ border-color: rgb(200,200,200); color: white;
+ }
+ form.diak table.reszletek legend { background-color: rgb(100,100,120); font-weight: bold; color: white; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css
new file mode 100644
index 00000000..49310124
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankor.css
@@ -0,0 +1,70 @@
+
+table.tankor {
+ background-color: rgb(100,100,150);
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 0px;
+}
+
+table.tankor tr th {
+ background-color: rgb(50, 50, 110);
+ border-bottom: solid 1px white;
+}
+table.tankor tr.benne td {
+ background-color: rgb(100,150,100);
+}
+
+table.tankor tfoot tr td {
+ background-color: rgb(150,100,150);
+ text-align: center;
+}
+
+
+h2.tankorTablazat {
+ width:80%;
+ padding-top:2px;
+ padding-left:1em;
+ margin-left:10%;
+ margin-right:20%;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+ padding-bottom:0px;
+ margin-bottom:0px;
+}
+
+form.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+}
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+}
+form.tankor label {
+ padding-left:2em;
+}
+
+form.tankor input {
+ border: solid 1px blue;
+}
+
+form.tankor input#targytorolg, form.tankor input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css
new file mode 100644
index 00000000..36ce800f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/diakTankorJelentkezes.css
@@ -0,0 +1,126 @@
+
+table.tankor {
+ background-color: rgb(100,100,150);
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 0px;
+ empty-cells:show;
+}
+
+table.tankor thead tr th {
+ background-color: rgb(50, 50, 110);
+ border-bottom: solid 1px white;
+ padding-top:0.8em;
+ padding-bottom:0.8em;
+}
+table.tankor thead tr.small th { padding:0.2em; }
+table.tankor tbody tr th {
+ text-align: center; background-color: rgb(150,100,150);
+ border-bottom: solid 1px white;
+ border-top: solid 1px;
+ padding:2px;
+ font-weight: normal;
+}
+table.tankor tbody tr td.k { text-align: center; background-color: rgb(160,140,180); }
+
+
+table.tankor tr.benne td {
+ background-color: rgb(100,150,100);
+}
+
+table.tankor tr.ez td {
+ border-top: solid rgb(0,0,0); border-width: 1px 0px;
+ color: black ;
+ background-color: orange;
+}
+table.tankor tr.ez td input.felvesz { background-color: green; color:white;}
+table.tankor tr.ez td input.lead { background-color: red; color:white;}
+
+table.tankor tr.utkozik td {
+ border-top: solid rgb(0,0,0); border-width: 1px 0px;
+ color: #444444;
+ background-color: rgb(100,100,100); text-decoration: line-through;
+}
+table.tankor tr.utkozik td input {
+ background-color:#555555;
+ color: #777777;
+ text-decoration: underline !important;
+}
+
+table.tankor tr td {
+ border: solid white;
+ border-width: 1px 0px;
+ color: #ffffff;
+ padding-left:0.5em;
+ padding-right:0.5em;
+}
+table.tankor tr td.szam { text-align: right; }
+table.tankor tr td.lok { background-color: rgb(150,200,100); }
+table.tankor tr td.lsok { background-color: rgb(150,100,100); }
+table.tankor tr td.lkeves { background-color: rgb(150,150,100); }
+table.tankor tr td.loktop { border-right:dotted 2px red; }
+table.tankor tr td.lokbottom { border-left:dotted 2px yellow; }
+
+table.tankor tfoot tr td {
+ background-color: rgb(150,100,150);
+ text-align: center;
+ border-top: solid 1px white;
+ padding-top:0.5em;
+ padding-bottom:0.5em;
+ border-bottom: solid 1px rgb(50,50,110);
+}
+
+
+h2.tankorTablazat {
+ width:80%;
+ padding-top:2px;
+ padding-left:1em;
+ margin-left:10%;
+ margin-right:20%;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+ padding-bottom:0px;
+ margin-bottom:0px;
+}
+
+form.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+}
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+}
+form.tankor label {
+ padding-left:2em;
+}
+
+form.tankor input {
+ border: solid 1px #444444;
+}
+
+form.tankor input#targytorolg, form.tankor input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+}
+
+table.tankor input { font-size:11px; }
+input.felvesz { border: solid 1px #777777;}
+input.lead { border: solid 1px #777777;}
+input[disabled] { border: none; background-color: #cccccc; color: #aaaaaa; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/felmentes.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/felmentes.css
new file mode 100644
index 00000000..d47fad84
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/felmentes.css
@@ -0,0 +1,36 @@
+div.FM {
+ margin:10px auto;
+ width: 90%;
+ padding-bottom:2em;
+ border-bottom: solid 1px rgb(100,120,140);
+}
+
+div.FM a { color: #4682B4}
+div.FM a:hover { color: #1E90FF}
+
+div.FM h2 {
+ background-color: rgb(200,240,200);
+ border-bottom: solid 1px white;
+}
+
+div.FM div { padding: 1em; }
+div.FM label { padding:0px 10px 0px 20px; font-weight: bold; font-size:13px; line-height:2em;}
+
+div.FM.FM1 {background-color:rgb(200,210,220);}
+div.FM.FM2 {background-color:rgb(200,210,220);}
+div.FM.FM3 {background-color:rgb(200,210,220);}
+div.FM.FMZAR, div.FM.FMTAN {background-color:rgb(210,250,210); }
+
+div.FM div.submit { text-align: center; }
+
+div.FM table {
+ width:100%; border: solid 1px #787878;
+ background-color: #eee;
+}
+div.FM table th { background-color: #56765f; color: white; border-bottom: solid 1px white;}
+div.FM table td { background-color: #e0e0e0;}
+
+div.FM table tr:hover td { background-color: #f0f0f0;}
+
+div.FM input[readonly] { background-color: #dddddd; }
+div.FM input { background-color: #ffffff; border: solid 1px #787878;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css
new file mode 100644
index 00000000..735d7c9c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepesitesek.css
@@ -0,0 +1,14 @@
+
+ form.kepesites { margin: 20px 30px; background-color: #ddd; padding: 30px; }
+ form.kepesites input[type=text] { width: 800px; padding: 10px; }
+ form.kepesites label { margin-left: 20px; margin-right: 10px; }
+ form.kepesites ul {}
+ form.kepesites span.delTargy,
+ form.kepesites span.delTanar { color: #aaa; margin: 0px 4px; cursor: pointer; display:none; }
+ form.kepesites ul li:hover span.delTargy,
+ form.kepesites ul li:hover span.delTanar { display: inline;}
+
+ form.kepesites ul li:hover span.delTargy:hover,
+ form.kepesites ul li:hover span.delTanar:hover { color: #f00;}
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzes.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzes.css
new file mode 100644
index 00000000..44cfe3fd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzes.css
@@ -0,0 +1,25 @@
+
+ form.kepzes { background-color: rgb(70,70,120); color: white; margin: 30px; text-align: left; padding: 0px 0px 10px 0px; }
+ form.kepzes h1 { background-color: rgb(0,0,80); text-align: center; border: white solid; border-width: 1px 0px; font-size: 16px; padding: 4px 2px; }
+
+ form.kepzes.eles { background-color: rgb(70,120,70); }
+ form.kepzes.eles h1 { background-color: rgb(0,80,0); }
+
+ form.kepzes.hibernalt { background-color: rgba(0,0,0,0.6); }
+
+ form.kepzes select.osztalySel { height: 400px; min-width: 200px; }
+
+ form.kepzes div { display:table-cell; padding:20px 0px 10px 120px;}
+ form.kepzes p { text-align: center; }
+
+ form.kepzes span.minih {
+ display:block;padding: 2px 15px; background-color: rgb(100, 200, 100); border-top:solid 1px white;
+ }
+
+ form.kepzes option.jellegUgyanaz { color: green; }
+
+ .hidden { display: none; }
+
+ form.kepzes label { display: inline-block; padding: 10px; width: 100px; text-align: right; }
+ form.kepzes input[type=text] { width: 500px; }
+ form.kepzes input[type=submit] { width: 500px; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css
new file mode 100644
index 00000000..21fb65e4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesOraterv.css
@@ -0,0 +1,100 @@
+
+ form.kepzesOraterv table { background-color: rgb(20,40,60); color: white; width:98%;}
+ form.kepzesOraterv table th { background-color: rgb(40,60,80); }
+ form.kepzesOraterv table th.lezart { background-color: black; font-style:italic; }
+ form.kepzesOraterv table th.aktiv { background-color: rgb(80,130,80); }
+
+
+ form.kepzesOraterv table tbody tr th.nm { background-color: rgb(80,100,140); }
+ form.kepzesOraterv table tbody tr td.nn { background-color: rgb(140,170,140); }
+
+ form.kepzesOraterv table tbody tr:hover th { background-color: rgb(80,130,80); }
+ form.kepzesOraterv table tbody tr:hover td { background-color: rgb(80,130,80); }
+
+ form.kepzesOraterv table thead tr th { height:2.5em; }
+ form.kepzesOraterv table tfoot tr th { height:2.5em; }
+/* form.kepzesOraterv table thead tr.evfolyamJel th { height:3em; }*/
+ form.kepzesOraterv table thead td:hover { background-color: orange; }
+ form.kepzesOraterv table tbody tr td:hover { background-color: lightgreen; }
+
+ form.kepzesOraterv table tfoot tr td.alert { background-color: #880000; color:white }
+ form.kepzesOraterv table tfoot tr td.ok { background-color: #008800; color:white }
+
+ form.kepzesOraterv table th.bigleft { font-size: larger; border-bottom: solid 1px #667788; }
+
+ form.kepzesOraterv table td { background-color: rgb(60,70,80); text-align: center;}
+ form.kepzesOraterv table td.lezart { background-color: black;}
+ form.kepzesOraterv table td.aktiv { background-color: rgb(80,130,80); }
+/*
+ form.kepzesOraterv table td { max-width:100px; font-size:10px; }
+ form.kepzesOraterv table td div { display: none;}
+ form.kepzesOraterv table td div { display: none;}
+ form.kepzesOraterv table td:hover span { display: none;}
+ form.kepzesOraterv table td:hover div { display: block; background-color: rgba(100,100,100,0.5); }
+*/
+
+/*
+ form.kepzesOraterv table td.nn select, form.kepzesOraterv table td.nn input {
+ border-bottom: solid 1px white;
+ background-color: rgb(140,170,140); color: white;
+ }
+*/
+ form.kepzesOraterv table tbody td { background-color: #222222; }
+
+ form.kepzesOraterv table tfoot tr.ures th,
+ form.kepzesOraterv table tfoot tr.ures td { background-color: #888888; color:black; padding: 0 8px;}
+
+ form.kepzesOraterv table tbody th { text-align:left; font-weight:normal; padding: 0px 8px; }
+
+ form.kepzesOraterv table td input {
+/* background-color: rgb(20,40,60); color: white;
+ border: solid 1px black;
+*/ text-align: right;
+
+ }
+ form.kepzesOraterv table td select{
+/* background-color: rgb(20,40,60); color: white;
+ border: solid 1px black;
+*/ font-size:10px;
+ padding:2px;
+ width:70px;
+
+ }
+ form.kepzesOraterv table td input:focus,
+ form.kepzesOraterv table td select:focus {
+ background-color: rgb(140,160,180); color:white; }
+
+
+ form.kepzesOraterv table td select option { font-size:smaller;}
+ form.kepzesOraterv table td.lezart input { background-color: black }
+
+ form.kepzesOraterv table th a { text-decoration: none; color: white; border: none; }
+ form.kepzesOraterv table th a:hover { text-decoration: underline; }
+
+ form.kepzesOraterv table th span.tan { color: #aaaaaa; font-weight:normal; font-size:smaller; }
+
+ form.kepzesOraterv table input.torol { background-color: #880000; border: solid 1px red; color: white;}
+ form.kepzesOraterv table input.felvesz { background-color: #008800; border: solid 1px lightgreen; color: white;}
+
+ form.kepzesOraterv table input:hover,form.kepzesOraterv table select:hover { outline:orange 1px solid; }
+ form.kepzesOraterv table input.torol:hover { background-color: #FF0000; border: solid 1px lightred; color: white;}
+
+ form.kepzesOraterv tr.rogzitett td select,
+ form.kepzesOraterv tr.rogzitett td input { display: none; }
+ form.kepzesOraterv tr span.kovetelmeny { display: none; }
+ form.kepzesOraterv tr.rogzitett td div.felev1 { ddisplay: none; }
+ form.kepzesOraterv tr .felev2 { display: none; }
+
+ form.kepzesOraterv thead th > span { padding: 10px 5px; }
+ form.kepzesOraterv thead span.icon-refresh { color: darkorange; }
+ form.kepzesOraterv thead span:hover span.icon-refresh { color: yellow; }
+ form.kepzesOraterv thead span:hover { cursor: pointer; background-color: #88a; }
+/*
+ form.kepzesOraterv tr.rogzitett td div.felev1 { background: red }
+ form.kepzesOraterv tr.rogzitett td div.felev2 { background: blue; }
+ form.kepzesOraterv tr.rogzitett td span.oraszam { color: yellow; }
+ form.kepzesOraterv tr.rogzitett td span.kovetelmeny { color: orange; }
+*/
+
+ form#oratervMasolas { background-color: darkorange; width: 98%; margin: auto; text-align: center; padding-bottom: 5px; }
+ form#oratervMasolas h1 { border-bottom: 2px yellow solid; font-size: 14px; font-weight: bold; background-color: #a40; color: white; padding: 4px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css
new file mode 100644
index 00000000..b1987009
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/kepzesTankor.css
@@ -0,0 +1,13 @@
+
+
+span.valaszthato {
+ background-color: #eeeeee;
+ font-style:italic;
+}
+
+/*
+
+ form.kepzes { background-color: rgb(100,70,120); color: white; margin: 30px; text-align: center; padding-bottom: 10px; }
+ form.kepzes h1 { background-color: rgb(60,0,80); border: white solid; border-width: 1px 0px; font-size: 16px; padding: 2px; }
+
+*/ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css
new file mode 100644
index 00000000..5ae89b85
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/munkakozosseg.css
@@ -0,0 +1,47 @@
+form.mk {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+ border-bottom: solid 1px black;
+}
+
+form.mk h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 10px solid white; border-width: 0px 0px 1px 0px;
+ margin-bottom: 10px;
+}
+form.mk h2 span { color: yellow; font-style: italic; font-weight: normal; }
+
+form.mk div.leiras { margin: -10px 0 10px 0; padding: 10px; background: rgba(255,255,255,0.5); color: black; }
+form.mk label {padding-left:2em;}
+
+form.mk input {}
+
+form.mk input#targytorolg, form.mk input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+}
+
+form.mk.uj h2 { border-left: solid 2px #00ff00; }
+form.mk.uj:hover h2 { background-color: #005500;}
+form.mk.torol h2 { border-left: solid 2px #ff0000; }
+form.mk.torol:hover h2 { background-color: #550000;}
+
+div.tagok { display: inline-block; margin-left:2em; }
+div.tagok div.header { background-color: rgba(0,0,0,0.4); margin-top:10px; padding:2px 4px; border-bottom: solid 1px white; }
+div.tagok:hover div.header {background-color: rgba(0,255,0,0.4);}
+div.tagok div.header label {padding:0px;}
+div.submit {display: inline-block; padding-left:2em; vartical-align: middle;}
+
+div.arckepContainer,div.arckep--container {display: inline-block; margin:2px;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/osztaly.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/osztaly.css
new file mode 100644
index 00000000..a61f7c44
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/osztaly.css
@@ -0,0 +1,57 @@
+
+ form.osztalyForm { padding: 0px; background-color: rgb(100,100,150); margin: 40px auto 10px auto; width: 90%; color: white; }
+ form.osztalyForm h1 { text-align: left; padding:4px; border-bottom: 1px solid white; border-width: 1px 0px; background-color: rgb(60,60,80); margin-top:0px; margin-bottom:20px; }
+ form.osztalyForm:hover h1 {border-bottom: solid 1px #6464C8;}
+ form.osztalyForm li { background-color: rgb(60,60,100); margin-top: 2px; padding: 5px 2px 5px 2px; }
+ form.osztalyForm table { width: 100%; background-color: #aaaaaa;}
+ form.osztalyForm table th { background-color: rgb(20,40,60); padding: 4px 8px; }
+ form.osztalyForm table td { background-color: rgb(60,130,120); width: 33%; padding:0px 4px; height:1.8em; }
+
+ form.osztalyForm hr { background-color: #eeeeee; margin-top: 22px; margin-bottom: 22px; padding: 0px; }
+
+ form.osztalyForm ol li:hover { background-color: rgb(100,100,200); }
+ form.osztalyForm input[type=submit] { width: 100px; margin:4px; }
+ form.osztalyForm input[type=submit]:hover { outline: solid 2px cornflowerblue; }
+
+ form.osztalyForm ol li div.kepzes { float: right; background-color: rgb(60,100,60); position: relative; top: -5px; padding: 4px 5px 1px 1px; height: 19px;}
+ form.osztalyForm ol li:hover div.kepzes { background-color: rgb(200,100,200); }
+ form.osztalyForm ol li div.hideShowContainer { float: right; background-color: rgb(160,0,0); position: relative; top: -4px; padding: 5px 5px 2px 5px; margin-left: 10px; }
+ form.osztalyForm ol li div.kepzes input[type=text] { margin: 0; padding: 0; border: none; position: relative; top: -2px; }
+ form.osztalyForm ol li div.kepzes span.onClickHideShow { font-size: 14px; cursor: pointer; padding: 0; }
+ form.osztalyForm ol li div.kepzes ul.openable {
+ background: #ddaaee; list-style-type: none; position: absolute; z-index: 20; width: 600px; right: 0px; top: 25px; padding: 0px 10px 10px 10px;
+ border: rgb(200,100,200) 2px solid; border-radius: 4px;
+ }
+ form.osztalyForm ol li div.kepzes ul.openable li { background: rgb(100,50,100); }
+ form.osztalyForm ol li div.kepzes ul.openable li:hover { background: rgb(150,75,150); }
+ form.osztalyForm ol li div.kepzes ul.openable li.uj { background: rgb(100,75,150); padding-right: 175px; }
+ form.osztalyForm ol li div.kepzes ul.openable li.close { background: transparent; color: red; cursor: pointer; }
+ form.osztalyForm ol li div.kepzes ul.openable li.close:hover { color: white; }
+ form.osztalyForm ol li div.kepzes ul.openable span.datum { float: right; }
+
+/* form.osztalyForm ol li div.kepzes label.chk { background-color: rgb(250,140,60);}*/
+ form.osztalyForm ol li div.kepzes span { padding: 2px 4px; position: relative; top: 0px; margin-right: 1px; margin-left:1px; }
+ form.osztalyForm ol li div.kepzes span.chk { background-color: rgb(250,140,60); }
+ form.osztalyForm ol li div.kepzes span.mas { background-color: rgb(160,100,60); }
+ form.osztalyForm div.datum { background: rgb(160,0,0); text-align: center; border: 1px dotted white; }
+
+ form.updateTable { padding: 0px; background-color: rgb(150,100,150); margin: 120px auto 20px auto; width: 90%; color: white; }
+ form.updateTable h1 { text-align: center; padding:4px; border-bottom: 1px solid white; border-width: 1px 0px; background-color: rgb(60,60,80); margin-top:0px; margin-bottom:20px; }
+ form.updateTable li { background-color: rgb(60,60,100); margin-top: 2px; padding: 5px 2px 5px 2px; }
+ form.updateTable table { width: 100%; background-color: #aaaaaa;}
+ form.updateTable table th { background-color: rgb(20,40,60); padding: 4px 8px; }
+ form.updateTable table td { background-color: rgb(60,130,120); width: 33%; padding:0px 4px; height:1.8em; }
+
+ form.uj div { padding: 5px 10px; display: none; }
+ form.uj div#divOsztalyJelleg { display: block; }
+ form.uj div#divKezdoTanev, form.uj div#divVegzoTanev, form.uj div#divJel { display: inline-block; width: 300px; }
+ form.uj ul#evfolyamJelek { list-style-type: none; margin: 0; padding: 0; }
+ form.uj ul#evfolyamJelek li { display: inline-block; height: 40px; vertical-align: top; border-right: 1px solid white; padding: 10px; }
+ form.uj ul#evfolyamJelek li.kivalasztott { background-color: #2aa; }
+
+ form.uj label { margin-right: 20px; }
+ form.uj input[type="submit"] { height:2em; margin: 10px 80px; }
+
+ form.osztalyForm span.data { margin: 20px; background-color: white; color: black; padding: 5px; font-size: 12px; font-weight: bold; }
+ form.osztalyForm ol li span.diakNev { padding-left:0.5em; cursor:pointer; }
+ form.osztalyForm ol li span.datumok { color: #888; padding-left:1em; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tanar.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tanar.css
new file mode 100644
index 00000000..2f80f013
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tanar.css
@@ -0,0 +1,60 @@
+
+
+ form.tanar { background-color: white; }
+
+ form.tanar { margin: 5px 30px 20px 20px; font-size:10px; }
+ form.tanar h1 { border: dotted white; border-width: 1px 0px; background-color: rgb(80,100,120); font-size: 20px; text-align: center; }
+ form.tanar input, form.tanar select {
+ font-size:10px; border: solid 1px #777777; margin-left: 3px;
+ padding-left: 2px;
+ }
+ form.tanar input.kiemelt { background-color: rgb(255,255,100); border-width: 1px 1px 0px 1px; }
+ form.tanar label { font-size:11px; }
+ form.tanar label.kotelezo { color:rgb(100,20,20); }
+ form.tanar input:focus { background-color: orange; }
+
+ form.tanar fieldset { border: solid 1px rgb(40,60,80); }
+ form.tanar fieldset th { text-align: right; }
+ form.tanar fieldset legend {
+ background-color: rgb(140,160,180);
+ color: white;
+ font-size:90%;
+ text-align: left;
+ margin-left:20px;
+ padding-left: 10px;
+ padding-right: 10px;
+ border: solid 1px rgb(40,60,80);
+ }
+ form.tanar fieldset:hover legend { background-color: navy; }
+
+ form.tanar input.kiemelt {
+ background-color: rgb(220,220,255);
+ border-width: 1px 1px 1px 1px; border-color: #777777 #777777 rgb(220,220,255) #777777;
+ margin-bottom: 0px; padding-top: 2px;
+ }
+
+ form.tanar table#kepesites { border-spacing: 0; margin: 10px 0; width: 800px; }
+ form.tanar table#kepesites th,
+ form.tanar table#kepesites td { text-align: left; border-left: 1px dotted black; padding: 0 10px; }
+ form.tanar table#kepesites th { padding-bottom: 5px; }
+ form.tanar table#kepesites tbody tr:last-child td { padding-bottom: 10px; }
+ form.tanar table#kepesites tr#ujKepesites { display: none; }
+ form.tanar table#kepesites tr#ujKepesites td { padding-top: 10px; }
+ form.tanar table#kepesites tr#uj td { padding: 6px 10px; cursor: pointer; border-top: 1px none #888; border-bottom: 1px dotted black; }
+ form.tanar table#kepesites td#kepesitesNev { width: 300px; }
+ form.tanar table#kepesites tr#ujKepesites input[type=text] { width: 260px; }
+ form.tanar table#kepesites tr#hozzarendel th { padding: 15px 10px 10px 10px; }
+
+ form.updateTable { color: white; width: 80%; background-color: rgb(180,180,200); margin: 20px auto; }
+ form.updateTable h1 { text-align: center; border: 1px dotted white; border-width: 1px 0px; background-color: rgb(60,60,80); }
+ form.updateTable label { color: white; padding: 8px; }
+ form.updateTable table { margin: 20px auto; background-color: rgb(140,140,180); color: red; }
+ form.updateTable table td { background-color: rgb(255,255,255); }
+ form.updateTable table th { background-color: rgb(120,120,160); }
+
+
+ from.tanar input.ajaxRequest { color: black; background-color: red; }
+ form.tanar input.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.tanar select.ajaxRequestDone { color: white; background-color: rgb(0,130,0); }
+ form.tanar input.ajaxRequestError { color: white; background-color: rgb(130,0,0); }
+ form.tanar select.ajaxRequestError { color: white; background-color: rgb(130,0,0); } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankor.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankor.css
new file mode 100644
index 00000000..f81c35f1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankor.css
@@ -0,0 +1,83 @@
+form.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 5%;
+ margin-right: 5%;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ color: white;
+ margin-bottom: 2em;
+}
+form.tankor:hover { background-color: rgb(120,120,170); }
+form.meglevo { background-color: rgb(100,150,100); }
+form.meglevo:hover { background-color: rgb(110,160,110); }
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border-bottom: 1px solid white;
+ border-left: 0.4em solid lightgreen;
+ margin-bottom: 0em;
+}
+form.tankor:hover h2 { border-left: solid 0.4em rgb(242,0,86); }
+
+form.meglevo h2 {
+ background-color: lightgreen;
+ color: rgb(60,60,80);
+}
+
+form.tankor label {
+ padding-left:0.4em;
+}
+
+
+form.tankor input:hover,
+form.tankor label:hover {
+ text-decoration: underline;
+}
+
+form.tankor input {
+ border: solid 1px blue;
+}
+
+form.tankor input.lezart { background-color: #aaaaaa; border: solid 1px black; }
+
+form.tankor input#torolg {
+ background-color: #880000;
+ color: white;
+ padding:0px 1em;
+ margin:0px;
+ border: solid 1px red;
+}
+
+form.tankor table tr th.sz0 { background-color: green; }
+form.tankor table tr th.sz1 { background-color: darkgreen; }
+form.tankor table tr td.sz0 { background-color: green; text-align: center;}
+form.tankor table tr td.sz1 { background-color: darkgreen; text-align:center; }
+form.tankor table tr td:hover { outline: solid 1px orange; }
+
+form.tankor table td.tankorCsoportok div.header{ background-color: #1E90FF; color:white; border-bottom: solid 1px white; width:180px; text-align: center;}
+
+form.tankor table td.tankorCsoportok {
+ border: solid 1px white;
+ background-color: rgba(0,0,0,0.2);
+ vertical-align: top;
+}
+form.tankor table td.tankorCsoportok a { color: lightblue; text-decoration:none;}
+form.tankor table td.tankorCsoportok a:hover { color: white; text-decoration:underline; }
+form.tankor table td.tankorCsoportok ul { list-style-type: circle; margin-left:14px; padding:4px;}
+
+form.meglevo table tbody tr.vanTag th, form.meglevo table tbody tr.vanTag td { background-color: rgb(60,120,80); }
+
+span.dob {
+ background-color: #2799bb !important;
+ margin-right:5px;
+}
+
+form.tankor div.sel { background-color: lightgreen; color:black; }
+form.tankor div:hover { background-color: #2799bb; }
+
+form.tankor p { padding: 0em 1em; }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css
new file mode 100644
index 00000000..a70a4b7f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorDiak.css
@@ -0,0 +1,128 @@
+@media screen,handheld {
+table.tankor {
+ background-color: rgb(100,100,150);
+ margin-left: 10%;
+ margin-right: 10%;
+ padding-left: 0px;
+ padding-top: 0em;
+ color: white;
+}
+
+table.bentlevo thead tr th { background-color: lightgreen; border-bottom: solid 2px green; color: black;}
+
+
+h2.tankorTablazat {
+ width:90%;
+ padding-top:2px;
+ padding-left:1em;
+ margin-left:10%;
+ margin-right:20%;
+ background-color: rgb(60,60,80);
+ color: white;
+ border: 1px dotted white; border-width: 1px 0px;
+ padding-bottom:0px;
+ margin-bottom:0px;
+}
+
+form.tankor {
+ background-color: #eeeeee;
+ margin-left: 3%;
+ margin-right: 3%;
+ padding-left: 0px;
+ padding-top: 0em;
+ margin-bottom:4em;
+}
+form.tankor table th {
+ height:1.8em;
+ font-weight:normal;
+ padding:0px 4px;
+ background-color: rgb(100,120,100);
+ border-bottom: solid 1px rgb(200,220,200);
+ color:white;
+}
+form.tankor table td {
+/* background-color: rgb(100,100,110);*/
+ padding:1px 4px;
+}
+form.tankor table tr:nth-child(even) td { background-color: #dddddd; }
+
+form.tankor table tr.magantanulo td {
+ background-color: rgb(150,100,150);
+}
+
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border-color: white;
+ border-width: 1px 0px;
+ border-style: none none solid none;
+ margin-bottom: 0px;
+ margin-top: 10px;
+}
+form.tankor:hover h2 { border-right: solid 3px lightgreen; }
+
+form.tankor label {
+ padding-left:1em;
+}
+
+
+form.tankor input[type=checkbox]:checked:after { display:block; content: ""; display:block;height:14px; width:4px; background-color: lightgreen; border-radius:2px; top:-2px; left:-6px; position:relative; border: solid 1px green; }
+form.tankor input[type=checkbox].lany:checked:after { background-color: magenta; border: solid 1px #ff3366;}
+form.tankor input[type=checkbox].fiu:checked:after { background-color: #1e90ff; border: solid 1px lightblue;}
+
+form.tankor input#targytorolg, form.tankor input#mktorolg {
+ background-color: #880000;
+ color: white;
+ padding:0px;
+ margin:0px;
+ border: solid 1px red;
+}
+
+form#tankorDiak table tbody tr td input {
+ background-color: green;
+}
+
+table.egyosztaly {
+ background-color: #eeeeee;
+}
+
+/* neme */
+td.fiu { color:blue; cursor: pointer}
+td.lany { color:magenta; cursor:pointer }
+/* ---- */
+
+
+form.tankor span {
+ font-size: 10px;
+}
+
+form.tankor span.kepzes0 {
+ color:white;
+ background-color: #778877;
+ padding-left: 3px; padding-right:3px;
+ margin-left:2px;
+ -moz-border-radius: 1px;
+ border-radius: 1px;
+ white-space: nowrap;
+}
+
+form.tankor span.kepzes1 {
+ color: white;
+ background-color: #777788;
+ padding-left: 3px; padding-right:3px;
+ margin-left:2px;
+ -moz-border-radius: 1px;
+ border-radius: 1px;
+ white-space: nowrap;
+
+}
+
+}
+
+@media print {
+
+ form.tankor { width: 100%; }
+ form.tankor table { width:100%; }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css
new file mode 100644
index 00000000..981ac34d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorLetszam.css
@@ -0,0 +1,7 @@
+
+ table.tankorLetszam { background-color: #aaaaff; }
+ table.tankorLetszam tr th { background-color: #aa7788; color: white; border-bottom: solid 1px white; height:2em;}
+ table.tankorLetszam tr td { background-color: #eeeeee; }
+ table.tankorLetszam tr td.letszam { text-align:right; padding-right:4px; }
+ table.tankorLetszam tr:hover td { background-color: #ffffff; }
+ table.tankorLetszam tr td a { display: block; color:black; text-decoration: none;} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css
new file mode 100644
index 00000000..ef113b38
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorSzemeszter.css
@@ -0,0 +1,24 @@
+
+ form.tankorSzemeszter table { background-color: rgb(20,40,60); color: white; width:90%;}
+ form.tankorSzemeszter table th { background-color: rgb(40,60,80); }
+ form.tankorSzemeszter table th.aktualis { background-color: rgb(80,60,40); }
+ form.tankorSzemeszter table th.lezart { background-color: black; font-style:italic; }
+ form.tankorSzemeszter table th.aktiv { background-color: rgb(80,130,80); }
+
+ form.tankorSzemeszter table th.bigleft { font-size: larger; border-bottom: solid 1px #667788; }
+
+ form.tankorSzemeszter table td { background-color: rgb(60,70,80); text-align: center;}
+ form.tankorSzemeszter table td.aktualis { background-color: rgb(80,70,60); }
+ form.tankorSzemeszter table td.lezart { background-color: black;}
+ form.tankorSzemeszter table td.aktiv { background-color: rgb(80,130,80); }
+
+ form.tankorSzemeszter table td input {
+ background-color: rgb(20,40,60); color: white;
+ border: solid 1px black;
+ }
+ form.tankorSzemeszter table td.lezart input { background-color: black }
+
+ form.tankorSzemeszter table th a { text-decoration: none; color: white; border: none; }
+ form.tankorSzemeszter table th a:hover { text-decoration: underline; }
+
+ form.tankorSzemeszter table th span.tan { color: #aaaaaa; font-weight:normal; font-size:smaller; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css
new file mode 100644
index 00000000..50a9c3e9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanar.css
@@ -0,0 +1,39 @@
+form.tankor {
+ margin-left: 20px;
+ margin-right: 20px;
+ padding-left: 0px;
+ padding-top: 0em;
+ padding-bottom: 1em;
+ margin-bottom: 2em;
+}
+form.tankor h2 {
+ padding-top:2px;
+ padding-left:2px;
+ background-color: rgb(60,60,80);
+ color: white;
+ border-bottom: solid 1px white;
+}
+form.tankor label {
+ padding-left:2em;
+}
+
+form.tankor input {
+ border: solid 1px blue;
+}
+
+form.tankor select, form.tankor option {
+
+}
+
+form.tankor a { color: rgb(100, 149, 237); }
+form.tankor a:hover { color: rgb(110, 159, 247); }
+form.tankor a span { color: #555555; margin:1px; padding-left:2px; padding-right: 2px; text-decoration: none;}
+form.tankor a:hover span { color:red; }
+
+form.tankor table.felosztas { width:100%; background-color: #eeeeee; border-spacing: 0px; }
+form.tankor table.felosztas th { background-color: rgb(100, 149, 237); padding: 5px 2px; border-bottom: solid 2px violet; color:white; }
+form.tankor table.felosztas td { background-color: ; padding: 2px 2px 2px 10px; }
+form.tankor table.felosztas tr:nth-child(odd) td { background-color: #fafafa; }
+form.tankor table.felosztas tr:hover td { }
+
+select.vantanara { border: solid 1px lime;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css
new file mode 100644
index 00000000..a346f49c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tankorTanarHozzarendeles.css
@@ -0,0 +1,94 @@
+
+
+ div#statusz { border-radius: 0 0 10px 10px; width:850px; background: rgba(170,170,170); color: white; margin: 0 auto; position:relative; top: -12px; left:-34px; z-index: auto; padding: 0 5px;}
+ div#statusz #filter { cursor: pointer; background-color: rgba(100,100,100,0.7); padding: 5px; display: inline-block; margin: 0 0 0 10px; height:16px;}
+ div#statusz #filter:hover { background-color: #4285F4; }
+ div#statusz #filter:hover span.icon-chevron-right { color: white; }
+ div#statusz #limit { display: inline-block; background-color: rgba(100,100,100,0.7); padding: 3px 5px; margin: 0 1px; }
+ div#statusz #limit:hover { background-color: rgba(100,100,100,1); }
+ div#statusz #limit span#minusz { background-color: rgba(130,160,255,0.7); padding: 4px 5px; margin: 0; cursor: pointer; display: inline-block; position: relative; }
+ div#statusz #limit span#plusz { background-color: rgba(255,160,130,0.7); padding: 4px 5px; margin: 0; cursor: pointer; display: inline-block; position: relative; }
+ div#statusz #limit i { background-color: rgba(200,200,200,0.9); color: rgb(100,100,100); padding: 2px 5px; }
+ div#statusz #limit ul.limit { display: none; position: absolute; top: 22px; left: 0; right: 0; list-style-type: none; margin: 0; padding: 5px 0; text-align: center; background-color: rgba(100,100,100,1); }
+ div#statusz #limit ul.limit li { margin: 0; padding: 4px; }
+ div#statusz #limit ul.limit li:hover { background-color: rgb(200,200,200); color: rgb(80,80,80); }
+ div#statusz #limit ul.limit li.selected { background-color: rgba(250,100,100,0.5); }
+ div#statusz #stat { background-color: rgba(100,100,100,0.7); display: inline-block; margin: 0 0 0 10px; height: 16px; padding: 5px; }
+
+ #updateWindowSideContent div.slideContainer { border-bottom: 1px dotted #aaa; cursor: pointer; padding: 3px 10px; }
+ #updateWindowSideContent div.slideContainer span.icon-chevron-up,
+ #updateWindowSideContent div.slideContainer span.icon-chevron-down { float: right; }
+ #updateWindowSideContent div.slideContainer ul { display: none; list-style-type: none; margin: 10px 0; cursor: default; padding: 0 10px; }
+ #updateWindowSideContent div.slideContainer ul li { display: inline-block; }
+ #updateWindowSideContent div.slideContainer ul li.tanarNelkuli { margin-bottom: 10px; }
+ #updateWindowSideContent input[type=submit] { width: 100%; }
+
+ #updateWindowSideContent div.slideContainer ul li { width: 98%; }
+ #updateWindowSideContent div#szOsztaly.slideContainer ul li { width: 100px; }
+
+ #updateWindowSide p.tankorNev { text-align: center; border-bottom: solid 1px #ddd; padding: 8px 0; margin: 0; }
+ #updateWindowSide div.slideToggleContainer ul { list-style-type: none; margin: 10px 0px; display: none; cursor: default; padding: 0 10px; }
+ #updateWindowSide div.slideToggleContainer ul li { display: inline-block; width: 100px; }
+ #updateWindowSide div.slideToggleContainer { cursor: pointer; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; }
+ #updateWindowSide div.slideToggleContainer span.icon-chevron-down { float: right; z-index: 0; }
+ #updateWindowSide div.slideToggleContainer span.changed { color: yellow; }
+ #updateWindowSide ul#tankorSzemeszter li { width: 120px; }
+ #updateWindowSide ul#tankorSzemeszter input { width: 40px; text-align: right;}
+
+ #updateWindowSide p.tankorModosit { cursor: pointer; color: yellow; text-align: right; margin: 0; padding: 0 10px 0 0; display: none; background-color: rgba(240,240,220,0.5); border-bottom: 2px solid yellow; color: rgb(70,70,70); color: white; }
+ #updateWindowSide span.tankorNevExtra { cursor: pointer;}
+ #updateWindowSide span.tankorNevExtra.changed { color: yellow; }
+ #updateWindowSide input#tankorNevExtra { width: 50px; display: none; }
+
+
+
+ /* table-layout:fixed; */
+ div.tanarTankor { margin: 40px auto auto 2px;}
+ div.tanarTankor table { font-size:x-small; background-color: #ababab; }
+ div.tanarTankor table thead tr th { background-color: white; cursor: pointer; }
+ div.tanarTankor table thead tr td { border-bottom: solid 1px white; cursor:pointer;}
+ div.tanarTankor table thead tr td.slctd { border-bottom: solid 1px cornflowerblue; }
+ div.tanarTankor table thead tr th.targy { height: 30px; }
+ div.tanarTankor table thead tr td.tankor { text-align: center; height: 30px; border-bottom: red 4px solid; }
+ div.tanarTankor table thead tr td.tankor.kesz { border-bottom: green 4px solid; }
+ div.tanarTankor table thead tr td.tankor.tobb { border-bottom: yellow 4px solid; }
+ div.tanarTankor table thead tr td.tankor.bontasHiba { border-top: red 4px solid; }
+ div.tanarTankor table thead tr th span#keszTanarDb,
+ div.tanarTankor table thead tr th span#osszTanarDb,
+ div.tanarTankor table thead tr th span#keszTankorDb,
+ div.tanarTankor table thead tr th span#osszTankorDb { color: red; }
+
+ div.tanarTankor table tbody tr.szurt { display: none; }
+ div.tanarTankor table tbody tr.csukott { display: none; }
+ div.tanarTankor table tbody tr th { height:20px; background-color: white; }
+ div.tanarTankor table tbody tr td.lekotott { padding: 0 4px; }
+ div.tanarTankor table tbody tr.ok td.lekotott { border-right: 4px solid green; border-left: 4px solid green; background-color: #88ffaa; }
+ div.tanarTankor table tbody tr.plusz td.lekotott { border-right: 4px solid red; border-left: 4px solid #cdcdcd; }
+ div.tanarTankor table tbody tr.minusz td.lekotott { border-right: 4px solid #cdcdcd; border-left: 4px solid blue; }
+ div.tanarTankor table tbody tr:hover th { background-color:orange }
+
+ div.tanarTankor table tbody tr td { min-width:20px; text-align:center; background-color: #efefef;}
+
+ div.tanarTankor input[type="checkbox"] { display:none; }
+ div.tanarTankor input[type="checkbox"]:checked { display:table-cell; }
+ div.tanarTankor table tbody tr th.slctd { background-color: rgba(0,200,0,0.7); }
+ div.tanarTankor table tbody tr td:hover input[type="checkbox"] { display:table-cell; }
+
+pre { text-align: left; }
+ div.tankorTanar table#tt thead tr th.szurt { display: none; }
+ div.tankorTanar table#tt thead tr td.szurt { display: none; }
+ div.tankorTanar table#tt tbody tr td.szurt { display: none; }
+
+ div.tanarTankor table tbody td.disable { background-color: #888; }
+
+ div.rot {
+ background-color: #eeeeee;
+ -webkit-transform: rotate(-90deg);
+ -moz-transform: rotate(-90deg);
+ -ms-transform: rotate(-90deg);
+ -o-transform: rotate(-90deg);
+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
+ }
+
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/terem.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/terem.css
new file mode 100644
index 00000000..cb91e123
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/terem.css
@@ -0,0 +1,15 @@
+
+ div.terem { text-align: center; background-color: #ffffff; }
+ div.terem table { margin: auto; background-color: #555555; }
+ div.terem table th { background-color: white; padding: 2px 4px; font-size:large; background-color: #555555; color:white; border-bottom:solid 2px white; padding:1px 10px;}
+ div.terem table td { background-color: rgb(240,240,240); text-align: left; padding: 2px 4px; }
+ div.terem table tr:hover td { background-color: #826373; color: white; }
+ div.terem table tr td a { color: black; }
+ div.terem table tr:hover td a { color: white; }
+
+ form.terem h1 { background-color: #555555; color:white; margin:0px; padding:0.4em 0.2em; border-bottom: solid 2px lightgreen;}
+
+ form.terem { background-color: ; width: 80%; margin: auto; padding: 20px; text-align: center; }
+ form.terem label { margin-left: 10px; margin-right:1em; }
+ form.terem div.tipus { width: 200px; float: right; background-color: #dddddd; border-width: 0px 1px 1px 1px; border-style: solid; border-color: #555555;}
+/* form.terem label, form.terem input, form.terem select { vertical-align: top; }*/
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css
new file mode 100644
index 00000000..1769eb87
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/tovabbkepzes.css
@@ -0,0 +1,89 @@
+@charset "utf-8";
+
+ h1 { margin-left:30px;}
+ h2 { margin-left:30px;}
+
+ table.tovabbkepzes {background-color: white; width:90%;}
+
+ table.tovabbkepzes thead tr th {background-color: #eeeeee; border-bottom: solid 1px #555555; padding: 5px; }
+
+ table.tovabbkepzes tbody tr th { border-left: solid 2px white; }
+ table.tovabbkepzes tbody tr:nth-child(even) td { background-color: #F8F8F9;}
+ table.tovabbkepzes tbody tr:hover th:nth-child(1) { border-left: solid 2px cornflowerblue; }
+ table.tovabbkepzes tbody tr:hover td { background-color: rgba(230,230,230,0.8); }
+
+ table.tovabbkepzes tbody tr td { padding: 0px 3px; background-color: white; border-bottom: solid 1px #eeeeee;}
+ table.tovabbkepzes tbody tr th span { color: cornflowerblue;}
+
+ table.tovabbkepzes tbody tr.megszűnt td input.currency,
+ table.tovabbkepzes tbody tr.elutasított td input.currency { background-color: #aaa; color:white;}
+ table.tovabbkepzes tbody tr.elutasított td { background-color: red; color:white;}
+ table.tovabbkepzes tbody tr.jóváhagyott td { background-color: #49A74C; color:white;}
+ table.tovabbkepzes tbody tr.teljesített td { background-color: #2F6A31; color:white;}
+ table.tovabbkepzes tbody tr.megszűnt td { text-decoration: line-through;}
+ table.tovabbkepzes tbody tr.terv td { }
+
+ table.tovabbkepzes tbody tr td select.tovabbkepzesNev { width:220px; }
+
+ table.tovabbkepzes tbody tr td.osszeg, table.tovabbkepzes tbody tr th.osszeg { white-space: nowrap; }
+
+ table.tovabbkepzes input.currency { text-align:right; width:60px;}
+ table.tovabbkepzes input.sumCurrency { text-align:right; width:60px;}
+ table.tovabbkepzes input.hiba { outline: solid 1px red; }
+ table.tovabbkepzes td.oraszam { text-align:right; white-space: nowrap; }
+ table.tovabbkepzes td.oraszam input { width:50px; text-align:right;}
+
+ table.tovabbkepzes input.date { width:70px; text-align:center;}
+
+ table.tovabbkepzes tfoot tr td,table.tovabbkepzes tfoot tr th
+ { padding: 3px 3px; background-color: #eeeeee;
+ border-top: solid 1px #888888;
+ }
+
+ #ujTovabbkepzes form { margin:30px 50px; padding:30px; border: solid 1px #ddd;
+background: rgb(255,255,255);
+background: -moz-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
+background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(47%,rgba(246,246,246,1)), color-stop(100%,rgba(237,237,237,1)));
+background: -webkit-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+background: -o-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+background: -ms-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(246,246,246,1) 47%,rgba(237,237,237,1) 100%);
+
+ }
+ form#ujTovabbkepzes span.ujIntezmeny { color: #eeeeee; }
+ form#ujTovabbkepzes span.ujIntezmeny:hover { color: cornflowerblue; }
+
+ form#ujTovabbkepzes table tbody tr th { text-align: right; }
+ form#ujTovabbkepzes table tbody tr th:after { content: ":" }
+
+ div.separator {
+ height:1px; width: 80%;
+ margin:40px auto;
+ background-color: #eeeeee;
+ }
+
+ #tanarAdatok input.ajaxDone { background-color:lightgreen; }
+ #tanarAdatok input.ajaxError { background-color:red; }
+
+ th.tovabbkepzesCiklus div { margin:0px auto; border: solid 1px #888; height:10px; display:block; width:120px; background-color:#ddd; color:white; font-weight:normal; font-size:7px;}
+ th.tovabbkepzesCiklus div span { display:table-cell;height:8px; color: white !important;}
+ th.tovabbkepzesCiklus div span.terv { background-color: #03A9F4;}
+ th.tovabbkepzesCiklus div span.teljesitett { background-color: green; }
+ th.tovabbkepzesCiklus div span.jovahagyott {background-color: #49A74C;}
+
+ th.tovabbkepzesCiklus span.forduloEv { font-size:6px; color: cornflowerblue; }
+ th.tovabbkepzesCiklus span.forduloEv.left { float:left; margin-left:8px; }
+ th.tovabbkepzesCiklus span.forduloEv.right { float:right; margin-right:8px; }
+
+ th.tovabbkepzesCiklus.alert span.forduloEv { color:#E91E63; }
+
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert2 { color: #FFEB3B;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert1 { color: orange;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert0 { color: red;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].alert { color: #e91E63;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].kesz { color: green;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].folyamatban { color: lightgreen;}
+ #tanarTovabbkepzesForduloDt span[class*='icon'].varakozik { color: #888;}
+
+ #tovabbkepzesNavi { text-align:center; width:;}
+ input.datum {width:70px;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/valtas.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/valtas.css
new file mode 100644
index 00000000..ed56aa1e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/valtas.css
@@ -0,0 +1,2 @@
+table.tanarLista {}
+table.tanarLista div.titulus { font-size:smaller; color:#aaa;} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/zaradek.css b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/zaradek.css
new file mode 100644
index 00000000..2e3b0fc0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/intezmeny/zaradek.css
@@ -0,0 +1,16 @@
+
+ form.zaradek { margin: 10px 40px; padding: 10px; border: rgb(100,125,150) solid; border-width: 3px 1px; background-color: rgb(200,220,240); }
+ form.zaradek p { border: rgb(20,40,80) solid 1px; padding: 8px; text-align: center; background-color: white; }
+ form.zaradek p span { color: red; }
+ form.zaradek table { margin-left: 100px; }
+ form.zaradek th { padding: 4px; background-color: rgb(20,40,80); color: white; }
+ form.zaradek div { text-align: center; }
+ form.zaradek div input { padding: 4px; background-color: rgb(20,40,80); color: white; }
+
+ form.diakZaradek { margin: 10px; }
+ form.diakZaradek table { background-color: rgb(20,40,80); }
+ form.diakZaradek table th { background-color: rgb(100,100,200); color: white; }
+ form.diakZaradek table td { background-color: rgb(230,230,255); }
+ form.diakZaradek table td.jobbra { text-align: right; }
+
+ form.diakZaradek input.delZaradek { background-color: red; border: none; color: white; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css b/mayor-orig/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css
new file mode 100644
index 00000000..abd310c3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/koszi/esemenyAdmin.css
@@ -0,0 +1,39 @@
+/*
+$color1="#CAE0F7";
+$color2="#9FBFD6";
+$color3="#2E5282";
+$color4="#434037";
+$color="#929493";
+*/
+
+h2 { margin:30pt 60pt 0pt 60pt;
+ background-color: #2e5282;
+ color: white;
+ border-bottom: solid 1px #9FBFD6;
+}
+div.kosziline {
+ height:1pt;
+ margin: 0em 60pt;
+ border-bottom: solid 1px #434037;
+}
+
+fieldset.koszi { margin: 1em 60pt; border: solid 1px #888;}
+fieldset.koszi legend {
+ border: solid 1px #888;
+ background-color: #eee;
+ color: ;
+ padding: 0.1em 0.5em;
+ border-radius:5px;
+ text-align: right;
+ outline:
+}
+
+fieldset.koszi:hover legend { background-color: #9FBFD6; }
+
+fieldset.koszi input[type="submit"] { outline: 1px solid #2E5282; background-color: #2E5282; padding:1px 1em; margin: 1px; border: solid 1px white; color: white; }
+fieldset.koszi input[type="submit"]:hover { outline: 1px solid #CAE0F7; background-color: #9FBFD6; padding:1px 1em; margin: 1px; border: solid 1px white; color: white; }
+
+fieldset.koszi select option { outline: 1px solid #CAE0F7; }
+
+fieldset.koszi table {background-color: #dddddd;}
+fieldset.koszi table tr th {background-color: #eeeeee; padding: 1px 8px; border-bottom: solid 1px #2e5282;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/koszi/koszi.css b/mayor-orig/www/skin/classic/module-naplo/css/koszi/koszi.css
new file mode 100644
index 00000000..8636b27e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/koszi/koszi.css
@@ -0,0 +1,39 @@
+
+fieldset.koszi { margin: 4em 10em; border: solid 0px #888;}
+fieldset.koszi legend {
+ border: solid 1px #888;
+ background-color: #eee;
+ color: ;
+ padding: 0.1em 0.5em;
+ border-radius:5px;
+ text-align: right;
+}
+
+fieldset.koszi:hover legend { background-color: #9fbfd6; }
+
+fieldset.koszi table { width: 100%; background-color: #eee; }
+fieldset.koszi table tr.head th { background-color: #2e5282; color: white; border-bottom: solid 2px #434037; height:2em; }
+
+fieldset.koszi table tr.foot th { background-color: #aa0066; color: white;border-bottom: solid 1px black; border-top: solid 1px #434037; height:2em; }
+fieldset.koszi table tr.foot th.r { text-align: right ; padding-right:2em;}
+
+fieldset.koszi table tr td { }
+fieldset.koszi table tr td.r { text-align: right; padding-right: 2em; }
+fieldset.koszi table tr:nth-child(even) td { background-color: white; }
+fieldset.koszi table tr.jovahagyva td { background-color: #92ff93; }
+
+fieldset.koszi table tr td span.tag { padding: 0.1em 2em; border-radius:5px; }
+fieldset.koszi table tr td:hover span.tag { opacity: 0.9; }
+fieldset.koszi table tr td span.tag1 { background-color: #CAE0F7; }
+fieldset.koszi table tr td span.tag2 { background-color: #9FBFD6; }
+fieldset.koszi table tr td span.tag0 { background-color: #2E5282; color: white; }
+fieldset.koszi table tr td span.tag4 { background-color: #434037; color: white; }
+fieldset.koszi table tr td span.tag5 { background-color: #929493; }
+fieldset.koszi table tr td span.tag3 { background-color: #EEEEEE; }
+
+div.koszi { padding-top: 1em; width:80%; padding-bottom: 1em; margin-left:auto; margin-right:auto; text-align: center; }
+
+div.koszi form select { font-size: normal; height:2.3em; }
+div.koszi form select option { color: black; }
+div.koszi form select option.placeholder:selected { background-color: red; }
+div.koszi form input { height:2.3em; padding: 0.1em 3em;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css b/mayor-orig/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css
new file mode 100644
index 00000000..0a36cd66
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/koszi/kosziAdmin.css
@@ -0,0 +1,47 @@
+
+
+form input.accept { outline: solid 1px #009900; background-color: green; border: solid 1px white; color: white; padding: 0.1em 1em; }
+form input.accept:hover { outline: solid 1px #00aa00; background-color: lightgreen; border: solid 1px white; color: white; padding: 0.1em 1em; }
+
+form input.decline { outline: solid 1px #990000; background-color: red; border: solid 1px white; color: white; padding: 0.1em 1em; }
+form input.decline:hover { outline: solid 1px #aa0000; background-color: #aa0000; border: solid 1px white; color: white; padding: 0.1em 1em; }
+
+
+fieldset.koszi { margin: 4em 10em; border: solid 0px #888;}
+fieldset.koszi legend {
+ border: solid 1px #888;
+ background-color: #eee;
+ color: ;
+ padding: 0.1em 0.5em;
+ border-radius:5px;
+ text-align: right;
+}
+
+fieldset.koszi:hover legend { background-color: #55ff55; }
+
+fieldset.koszi table { width: 100%; background-color: #eee; }
+fieldset.koszi table tr.head th { background-color: #2e5282; color: white; border-bottom: solid 2px #9fbfd6; height:2em; }
+
+fieldset.koszi table tr.foot th { background-color: #aaa; border-bottom: solid 1px black; border-top: solid 1px #9fbfd6; height:2em; }
+fieldset.koszi table tr.foot th.r { text-align: right ; padding-right:2em;}
+
+fieldset.koszi table tr td { }
+fieldset.koszi table tr td.r { text-align: right; padding-right: 2em; }
+fieldset.koszi table tr:nth-child(even) td { background-color: white; }
+fieldset.koszi table tr.jovahagyva td { background-color: lightgreen; }
+
+fieldset.koszi table tr td span.tag { padding: 0.1em 2em; border-radius:5px; }
+fieldset.koszi table tr td:hover span.tag { opacity: 0.9; }
+fieldset.koszi table tr td span.tag1 { background-color: #CAE0F7; }
+fieldset.koszi table tr td span.tag2 { background-color: #9FBFD6; }
+fieldset.koszi table tr td span.tag0 { background-color: #2E5282; color: white; }
+fieldset.koszi table tr td span.tag4 { background-color: #434037; }
+fieldset.koszi table tr td span.tag5 { background-color: #929493; }
+fieldset.koszi table tr td span.tag3 { background-color: #EEEEEE; }
+
+div.koszi { padding-top: 1em; width:80%; padding-bottom: 1em; margin-left:auto; margin-right:auto; text-align: center; }
+
+div.koszi form select { font-size: normal; height:2.3em; }
+div.koszi form select option { color: black; }
+div.koszi form select option.placeholder:selected { background-color: red; }
+div.koszi form input { height:2.3em; padding: 0.1em 3em;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/naplo.css b/mayor-orig/www/skin/classic/module-naplo/css/naplo.css
new file mode 100644
index 00000000..0585e4cd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/naplo.css
@@ -0,0 +1,317 @@
+@charset "UTF-8";
+
+ #toolBarIntezmeny {
+ color: #1E90FF;
+ border: solid #eeeeee;
+ border-width: 0px 0px 0px 0px;
+ font-size: 10px;
+ }
+ #toolBarHelpButton { margin-left:5px;font-size:8px; border-radius: 50%; border: solid 1px #dddddd; padding:0px 3px; color: #aaaaaa; font-weight:normal;}
+ #toolBarHelpButton:hover { background-color:#1e90ff; color: white; border-color: navy;}
+ img#mayorBuggie { height:34px; }
+ img#mayorBuggie:hover { animation-name: spin;
+ animation-duration: 1000ms;
+ animation-iteration-count: 1;
+ animation-timing-function: ease;
+ }
+ #diakSelectIcon {
+ vertical-align: middle;
+ color: #aaaaaa;
+ padding: 0px 2px;
+ cursor: pointer;
+ margin-right:2px;
+ border: solid 0px #eeeeee;
+ }
+ #diakSelectIcon:hover {color:white;}
+
+
+ table.toolBar { width: 95%; max-width: 95%; border-spacing: 0px; margin: 1em auto; overflow: auto; border-collapse: collapse;}
+ table.toolBar tr.first td.toolBarTitle { border: solid 1px #333333; }
+ table.toolBar tr.first td.toolBarTool { border-style: solid; border-width: 1px 1px 1px 1px; border-color: #333333; }
+
+ table.toolBar form { margin: 0px; padding: 0px;}
+
+/* TH */
+
+ table.toolBar th {
+ background-color: rgb(90,133,184);
+ text-align: center;
+ color: white;
+ font-size:10px;
+ padding: 0px 4px 0px 4px;
+ font-weight: 600;
+ letter-spacing: 0.2px;
+ border-color: rgb(21,71,123);
+ border-width: 1px 0px 1px 1px;
+ border-style: solid;
+ }
+ table.toolBar th button.toolBarClear { float:right; border: none; background-color: #5A85B8; height:10px;font-size:9px; color:inherit; padding:0px 2px; color: rgba(255,255,255,0.5);}
+ table.toolBar th button.toolBarClear:hover { color: rgba(255,255,255,1);}
+
+ table.toolBar th button.toolBarLeft {height: 100%;
+ line-height: 2em;background-color: rgba(100,100,100,0);
+ color: #fff; border: solid 0px #fff;
+ border-radius: 2px;padding: 4px 10px; }
+ table.toolBar th button.toolBarLeft:hover { color: rgba(255,255,255,0.5);}
+
+ table.toolBar tr td.szemely { background-color: #5A85B8; color:white; border: solid 1px #558; padding:2px 10px; color: rgba(255,255,255,0.5);}
+ table.toolBar tr td.szemely:hover { color: rgba(255,255,255,1);}
+
+
+/* TD */
+ table.toolBar td.gap { width: 50%; border-spacing: 0px; }
+ table.toolBar td.help {
+ background-color: rgb(11,51,103);
+ color: white;
+ border-width: 0px 1px 1px 1px;
+ border-color: black;
+ border-style: none solid solid solid;
+ font-size:smaller;
+ }
+ table.toolBar td.toolBarTitle {
+ background-color: white;
+ font-size: 18px;
+ font-weight: bold;
+ width: 100%;
+ }
+ table.toolBar td.toolBarTool {
+ border: solid 1px #666699;
+ background-color: #666699;
+ margin: 0px;
+ padding: 0px;
+ }
+ table.toolBar td.toolBarTool table { border-spacing: 0px; width: 100%; }
+ table.toolBar td.toolBarTool table th {
+ background-color: rgb(90,133,184);
+ text-align: left;
+ color: white;
+ font-size:10px;
+ padding: 0px 0px 0px 4px;
+ border-color: rgb(21,71,123);
+ border-width: 1px 0px;
+ border-style: solid;
+ }
+
+/* Submit */
+
+ table.toolBar input.toolSubmit,
+ table.toolBar button.toolSubmit {
+ vertical-align: middle; border: 0px none;
+ padding:0px;
+ margin:0px;
+ color: #aaaaaa;
+ background-color: inherit;
+ font-size:8px;
+ }
+ table.toolBar form:hover input.toolSubmit,
+ table.toolBar form:hover button.toolSubmit {
+ outline: solid 0px;
+ color:#dddddd;
+ }
+
+ table.toolBar form input.toolSubmit:hover {
+ outline: solid 0px;
+ color: lightgreen;
+ }
+ table.toolBar td.toolBarTool.cella select { max-width:180px; min-width:60px;}
+ table.toolBar td.toolBarTool.sor select { max-width:320px; min-width:60px;}
+
+ table.toolBar img { border: none; }
+
+/* spec */
+
+ table.toolBar table.hianyzasOsszegzo { width:100%; font-size:10px; }
+ table.toolBar table.hianyzasOsszegzo th {
+ text-align: center !important;
+ border-style: none none solid none;
+ border-color: #888888;
+ border-width: 0px 0px 1px 0px;
+ }
+ table.toolBar table.hianyzasOsszegzo td { width: 18%; border-bottom: solid 1px rgb(60,80,100); background-color: #dddddd; text-align: center; }
+
+ form.lapozo input { font-size: 10px; border: solid 1px #555555; }
+ form button.lapozo { font-size:10px; }
+ form span.lapozo { color:white; background-color: rgb(90,133,184); padding:1px 5px; border: solid 1px rgb(21,71,123);}
+
+ table.flipper input {height: 30px; color: white;
+ border-right: solid 1px #15477B;
+ border-bottom: solid 1px #15477B;
+ border-top: solid 1px #37699D;
+ border-left: solid 1px #37699D;
+ background-color: rgb(90,133,184);
+ padding:0px 10px;
+ }
+ table.flipper input:hover {background-color: rgba(90,133,184,0.6);border: solid 1px #15477B;}
+ table.flipper input.step { background-color: rgb(100,100,60); }
+ table.gomb button { height:30px; background-color: rgb(90,133,184);
+ border-right: solid 1px rgb(21, 71, 123);
+ border-bottom: solid 1px rgb(21, 71, 123);
+ border-top: solid 1px rgb(55, 105, 157);
+ border-left: solid 1px rgb(55, 105, 157);
+ }
+ table.gomb button:hover { background-color: rgba(21, 71, 123,0.7); }
+ div.beirasAdatok { text-align: center; }
+ div.beirasAdatok span { font-weight: bold; font-size: 20pt; vertical-align: middle; }
+ div.beirasAdatok img { vertical-align: middle; }
+
+ table.toolBar input { font-size: 10px; }
+
+ table.toolBar #toolBarHamburgerVezerlo { color:rgb(170, 170, 170); }
+ table.toolBar #toolBarHamburgerVezerlo:hover { color:white; }
+
+ #toolBarHamburgerLista ul { list-style-type:none; }
+ #toolBarHamburgerLista li { text-align:right; }
+ #toolBarHamburgerLista button.hamburgerIkon {
+ height: 30px;
+ color: rgb(255, 255, 255);
+ border-radius: 2px 0px 0px 2px;
+ border-right: solid 0px rgb(21, 71, 123);
+ border-bottom: solid 1px rgb(21, 71, 123);
+ border-top: solid 1px rgb(55, 105, 157);
+ border-left: solid 1px rgb(55, 105, 157);
+ background-color: rgb(90, 133, 184);
+ padding: 0px 10px;
+ margin-bottom:4px;
+ }
+ #toolBarHamburgerLista button.hamburgerIkon:hover {background-color: rgba(90,133,184,0.6);border: solid 1px #15477B;}
+
+ .diakNev:hover, .szuloNev:hover, .tankorAdat:hover, .tanarNev:hover, .zaroJegyAdat:hover, .jegyAdat:hover, .oraAdat:hover, .jegyzetAdat:hover, .dolgozatAdat:hover { cursor: pointer; }
+ .activeElement { outline: solid 2px orange; background-color: rgba(255,255,255,0.9); }
+
+ #mayorSearch a.diakNev:before, #mayorSearch a.diakNev:hover:before { content:'\e0ca'; font-family: 'Elusive-Icons'; padding-right:2px; color: rgba(100,149,237,0.4);}
+ #mayorSearch a.diakNev.aktiv:before, #mayorSearch a.diakNev:hover:before { content:'\e0ca'; font-family: 'Elusive-Icons'; color: rgba(100,149,237,1);}
+
+ #mayorSearch a.tanarNev{ color: rgb(219,6,161); }
+ #mayorSearch a.tanarNev:before, #mayorSearch a.tanarNev:hover:before { content:'\e0da'; font-family: 'Elusive-Icons'; padding-right:2px; color: rgba(219,6,161,0.4);}
+ #mayorSearch a.tanarNev.aktiv:before, #mayorSearch a.tanarNev:hover:before { content:'\e0da'; font-family: 'Elusive-Icons'; color: rgb(219,6,161)}
+
+ #mayorSearch a.szuloNev { color: rgb(76,175,80); }
+ #mayorSearch a.szuloNev:before, #mayorSearch a.szuloNev:hover:before { content:'\e091'; font-family: 'Elusive-Icons'; padding-right:2px; color: rgba(76,175,80,0.4);}
+ #mayorSearch a.szuloNev.aktiv:before, #mayorSearch a.szuloNev:hover:before { content:'\e091'; font-family: 'Elusive-Icons'; color: rgb(76,175,80)}
+
+ #updateWindowSide div.ora { }
+
+ #updateWindowSideContent .diakNev:after { font-family: 'Elusive-Icons'; content: "\e0f3"; color:cornflowerblue !important; }
+ #updateWindowSideContent .diakNev:hover:after { font-family: 'Elusive-Icons'; content: "\e0f4"; color:cornflowerblue !important; }
+ #updateWindowSideContent .diakNev:hover { color:#999 }
+
+ #updateWindowSide ul li,#updateWindowSideSub ul li { padding-top:2px; }
+ #updateWindowSideContent h3, #updateWindowSideSubContent h3 { border-bottom: solid 0px #aaa; margin: 18px 16px 8px 16px;}
+ #updateWindowSideContent h3 a:hover,#updateWindowSideSubContent h3 a:hover { color:#999 }
+ #updateWindowSideContent ul li a:hover,#updateWindowSideSubContent ul li a:hover { color:#999 }
+ #updateWindowSideTitle a:hover, #updateWindowSideSubTitle a:hover { color:#999 }
+
+/* #updateWindowSide h3:before { font-family: 'Elusive-Icons'; font-size:10px; content: "\e0a4"; padding-right:8px;font-weight:100; }*/
+
+ .updateWindowSide button.mentes, .updateWindowSide button.torles { margin: 4px 18px; height:2em; border-radius:2px; border: solid 1px white; color:white;}
+ .updateWindowSide button.mentes:hover { background-color: lightgreen; }
+ .updateWindowSide button.torles:hover { background-color: red; }
+
+ .updateWindowSide i {line-height:1.5em; background-color: rgba(255,255,255,0.4); padding-left:2px; padding-right:4px; }
+
+ span.diakEletkor {font-size:; border: solid 1px white; border-radius: 4px; padding:2px;background-color:white; color:black;}
+ span.diakEletkor:hover:after { content: " éves"; }
+
+ table.toolBar button.toolBarBtn {
+ background: inherit;
+ border: none;
+ color: white;
+ padding: 2px;
+ text-align: center;
+ text-decoration: none;
+ display: inline-block;
+ font-size: 14px;
+ margin: 0px 0px;
+ cursor: pointer;
+ color: rgba(255,255,255,0.5);
+ }
+ table.toolBar button.toolBarBtn:hover { color:white; }
+ table.toolBar button.toolBarBtn:active { color:#f06 ; background-color: cornflowerblue;}
+ table.toolBar button.toolBarBtn.loved { color: #f06; }
+ table.toolBar button.toolBarBtn.loved:active { color:red ; background-color: cornflowerblue;}
+
+ table.toolBar button.toolBarBtn.mobileOnly { display: none;}
+
+ div.arckepContainer.tanar span {background-color: #db06a1; }
+ div.arckepContainer.szulo span {background-color: #40e0d0; }
+ div.arckepContainer.diak span {background-color: #6495ed; }
+
+@media (max-width: 764px) {
+
+ #toolBarTitle {display:;}
+ #toolBarKerelem { display:none; }
+ .toolBarClear {display:none;}
+ table.toolBar table,
+ table.toolBar thead,
+ table.toolBar tbody,
+ table.toolBar th,
+ table.toolBar td,
+ table.toolBar tr {
+ display: block;
+ text-align:left;
+ }
+
+ table.toolBar table tbody { background-color: white; }
+ table.toolBar thead tr {
+ position: absolute;
+ top: -9999px;
+ left: -9999px;
+ }
+ table.toolBar tr { border: 0px solid #fff; margin-bottom:0px; }
+ table.toolBar td {
+ border: none;
+ border-bottom: 0px solid #eee;
+ position: relative;
+ padding-left: 0px;
+ background-color: #eee; color:black;
+ }
+ table.toolBar td.toolBarTitle { width: inherit; }
+ table.toolBar td.sbmt { display:none }
+
+ table.toolBar button.toolBarBtn {
+ border: none;
+ color: white;
+ padding: 2px;
+ text-align: center;
+ text-decoration: none;
+ display: inline-block;
+ font-size: 20px;
+ margin: 0px 0px;
+ cursor: pointer;
+ color: cornflowerblue;
+ }
+ table.toolBar button.toolBarBtn:hover { color: lightgreen ; }
+ table.toolBar button.toolBarBtn:active { color: lightgreen ; }
+ table.toolBar td.szemely { font-size: 24px; }
+
+ table.toolBar button.toolBarBtn.mobileOnly { display:inline-block;}
+ table.toolBar th button.toolBarLeft { background-color: #5a85b8;border: solid 0px white; }
+
+ .updateWindowSide {font-size:16px;}
+ .updateWindowSide button.mentes, .updateWindowSide button.torles {
+ font-size: 16px;
+ }
+ .updateWindowSide button.mentes { background-color: lightgreen; }
+ .updateWindowSide button.torles { background-color: red; }
+
+}
+
+@media print {
+ table.toolBar tr th { border: none;}
+ table.toolBar tr td { border: none;}
+ input[type=submit] {display:none;}
+ input[type=button] {display:none;}
+ button[type=submit] {display:none;}
+ a {text-decoration: none; color:black;}
+}
+
+@keyframes spin {
+ from {
+ transform: rotate(0deg);
+ } to {
+ transform: rotate(360deg);
+ }
+}
+
+/* Tipso Bubble Styles */
+.tipso_bubble,.tipso_bubble > .tipso_arrow{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.tipso_bubble{position:absolute;text-align:center;border-radius:6px;z-index:9999}.tipso_style{cursor:help;border-bottom:1px dotted}.tipso_title{border-radius:6px 6px 0 0}.tipso_content{word-wrap:break-word;padding:0.5em}.tipso_bubble.tiny{font-size:0.6rem}.tipso_bubble.small{font-size:0.8rem}.tipso_bubble.default{font-size:1rem}.tipso_bubble.large{font-size:1.2rem;width:100%}.tipso_bubble > .tipso_arrow{position:absolute;width:0;height:0;border:8px solid;pointer-events:none}.tipso_bubble.top > .tipso_arrow{border-top-color:#000;border-right-color:transparent;border-left-color:transparent;border-bottom-color:transparent;top:100%;left:50%;margin-left:-8px}.tipso_bubble.bottom > .tipso_arrow{border-bottom-color:#000;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;bottom:100%;left:50%;margin-left:-8px}.tipso_bubble.left > .tipso_arrow{border-left-color:#000;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;top:50%;left:100%;margin-top:-8px}.tipso_bubble.right > .tipso_arrow{border-right-color:#000;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;top:50%;right:100%;margin-top:-8px}.tipso_bubble .top_right_corner,.tipso_bubble.top_right_corner{border-bottom-left-radius:0}.tipso_bubble .bottom_right_corner,.tipso_bubble.bottom_right_corner{border-top-left-radius:0}.tipso_bubble .top_left_corner,.tipso_bubble.top_left_corner{border-bottom-right-radius:0}.tipso_bubble .bottom_left_corner,.tipso_bubble.bottom_left_corner{border-top-right-radius:0}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css
new file mode 100644
index 00000000..4c5ba967
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/diakTankorJelentkezes.css
@@ -0,0 +1,4 @@
+
+ form.nyomtat { text-align: center; border: 1px black; border-style: solid none; padding: 10px; margin: 10px 80px;}
+ form.nyomtat h3 { border: 1px black; border-style: solid none; background-color: rgb(200,200,200); }
+ form.nyomtat label { margin: 10px 10px 2px 2px; background-color: rgb(255,255,255); }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css
new file mode 100644
index 00000000..035db08d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/helyettesitesinaplo.css
@@ -0,0 +1,7 @@
+
+ form.letolt {
+ text-align: center;
+ background-color: white;
+
+
+ } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css
new file mode 100644
index 00000000..6c3b52ec
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/osztalyozonaplo.css
@@ -0,0 +1,2 @@
+
+ a.letoltes { display: block; border: solid green 1px; color: green; padding: 5px; text-align: center; width: 200px; margin: auto; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css
new file mode 100644
index 00000000..adf96ba5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/nyomtatas/tankorNaplohozRendeles.css
@@ -0,0 +1,9 @@
+
+ table.tankorBealliras { background-color: rgb(220,220,220); margin-top: 20px; }
+ table.tankorBealliras th { padding: 2px 10px; }
+ table.tankorBealliras thead th { background-color: rgb(20,40,80); color: white; }
+ table.tankorBealliras tfoot th { background-color: rgb(20,40,80); color: white; }
+ table.tankorBealliras tfoot td { background-color: rgb(20,40,80); color: white; text-align: center; }
+ table.tankorBealliras tbody th { background-color: rgb(120,140,180); color: white; }
+ table.tankorBealliras tbody td { background-color: rgb(230,240,250); color: black; text-align: center; }
+ div.torlesForm { text-align: center; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/ascExport.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/ascExport.css
new file mode 100644
index 00000000..86f90082
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/ascExport.css
@@ -0,0 +1,18 @@
+
+ form.export { text-align: center; margin: 1px; background-color: rgb(140,140,220); float-left; }
+ form.export h1 { text-align: center; border: solid rgb(140,160,180); border-width: 1px 0px; font-size: 12px; margin: 0px 0px 5px 0px; background-color: rgb(60,80,100); color: rgb(220,250,250); }
+ fieldset { width: 300px; margin: 0px auto; }
+
+ form.blokk { margin: 0px 5px; float: left; width: 310px; }
+ form.blokk ul { background-color: rgb(140,160,180); width: 300px; list-style-type: none; padding: 0px; margin: 0px; }
+ form.blokk ul li { background-color: rgb(180,200,220); padding: 6px; margin: 1px; height: 16px; font-size: 10px; text-align: left; }
+ form.blokk ul li select { height: 16px; font-size: 10px; }
+
+ form.tobbszoros { width: 400px; float: left; }
+ form.ok { width: 400px; float: left; }
+
+ form.export img { border: none; position: relative; top: 10px; }
+ form.export a { text-decoration: none; display: block; padding-bottom: 14px; background-color: rgb(20,40,60); color: white; margin-top: 40px; }
+ form.export a:hover { color: rgb(255,200,100); }
+
+ a#loadUrl { background: green; color: white; padding: 20px; fonr-weight: bold; margin: 30px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/helyettesites.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/helyettesites.css
new file mode 100644
index 00000000..33132c5c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/helyettesites.css
@@ -0,0 +1,44 @@
+@media screen {
+
+ table.helyettesitesek {
+ background-color: #555555; width:95%
+ }
+ table.helyettesitesek tr {
+ background-color: #dddddd;
+ }
+ table.helyettesitesek tbody tr td {
+ background-color: white;
+ }
+ table.helyettesitesek tr.plusz td {
+ background-color: #334450; color: white;
+ font-style: italic;
+ }
+ table.helyettesitesek tfoot tr th {
+ background-color: white;
+ font-size: 8px;
+ text-align: right;
+ }
+
+
+}
+@media print {
+ table.helyettesitesek {
+ width: 100%;
+ }
+ table.helyettesitesek thead tr th {
+ border: solid 1px black;
+ }
+ table.helyettesitesek tbody tr td {
+ border-style: solid;
+ border-width: 0px 1px 1px 0px;
+ }
+ table.helyettesitesek tr.plusz td {
+ font-style: italic;
+ font-weight: bold;
+ }
+ table.helyettesitesek tfoot tr th {
+ background-color: white;
+ font-size: 8px;
+ text-align: right;
+ }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css
new file mode 100644
index 00000000..f6bab505
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarend.css
@@ -0,0 +1,282 @@
+@media screen {
+
+h2 { text-align: center; color: red;}
+h2.toPrint { display: none; }
+
+table.toolBar tr td select, table.toolBar tr td option {
+ font-size:11px;
+}
+
+table.orarend {
+ width: 95%;
+ background-color: #333333;
+ max-width: 1000px;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+/* border-width: 0px 1px 2px 0px !important; */
+ width:2%;
+ height:30px;
+}
+
+table.orarend tbody tr th {
+ border-right: solid 2px #889988;
+ border-left: solid 2px #889988;
+}
+table.orarend tbody tr th.most { background-color: #99aa99; border-right: solid 2px #1e90ff;
+
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ -o-transition: all 0.5s ease;
+ transition: all 0.5s ease;
+
+}
+
+/* THEAD */
+
+table.orarend thead tr th {
+ background-color: #889999;
+ color: white;
+ border-bottom: solid 1px white;
+ font-weight: 100;
+ letter-spacing:0.2px;
+}
+table.orarend thead tr th.ma { border-bottom: solid 1px #1E90FF; background-color: #9aa; }
+table.orarend thead tr th.het { background-color: #6495ED}
+
+table.orarend thead tr th.spec { background-color: #f06; }
+table.orarend thead tr th.spec.roviditett { background-color: lightgreen; }
+
+table.orarend thead tr th.hover { background-color: rgba(200,150,200,0.5); }
+table.orarend tbody tr th.hover { background-color: rgba(100,150,200,0.5); border-color: rgb(100,150,200); }
+table.orarend tbody tr th.most.hover { background-color: rgba(200,150,200,0.5); border-color: rgb(100,150,200); }
+
+/* TFOOT */
+
+table.orarend tfoot.publikus tr th {
+ background-color: lightgreen;
+ color: white;
+}
+table.orarend tfoot.nempublikus tr th {
+ background-color: #f06;
+ color: white;
+}
+table.orarend tfoot:hover tr th {
+ background-color: #8f8;
+}
+
+table.orarend tbody tr td div.oraMostVan {
+ border-style: solid;
+ border-color: lightgreen; border-width: 0px 4px 0px 4px; border-radius:2px;
+}
+
+table.orarend tbody tr td div.dolgozat {
+ background-color: orange; color:white;
+ border-radius:2px; padding:2px;
+ border: solid 1px white;
+ margin:2px;
+ font-size: x-small;
+}
+table.orarend tbody tr td div.jegyzet {
+ background-color: lightgreen; color:white;
+ border-radius:2px; padding:2px;
+ border: solid 1px white;
+ margin:2px;
+ font-size: x-small;
+}
+table.orarend tbody tr td div.jegyzet.publikus0 { }
+table.orarend tbody tr td div.jegyzet.publikus1 { border: dashed 1px white; }
+table.orarend tbody tr td div.jegyzet.publikus2 { border: dotted 1px white; }
+table.orarend tbody tr td div.jegyzet.mase.publikus1 { background-color: #4caf50;}
+table.orarend tbody tr td div.jegyzet.mase.publikus2 { background-color: #4caf50;}
+
+table.orarend tbody tr.orarendJegyzetSor th { background-color: orange; border-color: orange; font-weight:normal; font-size: x-small; cursor: pointer}
+table.orarend tbody tr.orarendJegyzetSor td.jegyzetContainer { background-color: cornflowerblue; }
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #efefef;
+/* border-width: 0px 1px 2px 0px;*/
+ width:18%;
+}
+
+table.orarend tbody tr td.eppTart {
+ outline: solid 2px #1e90ff;
+ background-color: rgba(255,255,255,1);
+}
+
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál {}
+ div.plusz {
+ background-color: #eeccee;
+ }
+ div.elmarad {
+ color: white;
+ background-color: black;
+ }
+ div.elmarad_máskor {
+ color: white;
+ background-color: #555555;
+ }
+ div.normál_máskor {
+ color: white;
+ background-color: #776699;
+ }
+ div.felügyelet {
+ background-color: #FF69B4; /* #bbaac0 */
+ }
+ div.helyettesítés {
+ background-color: #ccffcc;
+ }
+ div.összevonás {
+ background-color: #B0C4DE /*#aabbc0;*/
+ }
+ div.friss { }
+
+ div.nemVoltBent { color: #bbb; }
+
+ span.hianyzasTicker {
+ float:left;
+ width: 12px;
+ line-height: 12px;
+ border-radius: 50%;
+ text-align: center;
+ border: 2px solid #aaa;
+ font-size:12px;
+ margin-left:2px;
+ padding:2px;
+ background-color: white;
+ color:#333;
+ font-weight: bold;
+ }
+ span.hianyzasTicker.igazolatlan { border-color: #e91e63; }
+ span.hianyzasTicker.igazolt { border-color: green; }
+ span.hianyzasTicker.hianyzas { }
+ span.hianyzasTicker.keses { border-color: orange; font-size:8px;}
+ span.hianyzasTicker.felszereles { color:cornflowerblue; font-size:8px; }
+ span.hianyzasTicker.felmentes { color:cornflowerblue; font-size:8px; }
+
+ div.osztályfüggetlen { color: #eeeeee; background-color: rgba(52, 150, 185, 1); }
+ table.osztalyOrarend div.osztályfüggetlen { display:none; }
+ table.diakOrarend div.osztályfüggetlen { display:none; }
+
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
+
+ table.orarend tr td span.t0 {
+ padding:0px 2px;
+ background-color: mediumvioletred; color:white;
+ }
+ table.orarend tr td span.t1 {
+ }
+
+ table.orarend tbody tr th div {
+ color: #dddddd;
+ white-space:nowrap;font-size:xx-small; font-weight:normal; width:100%; text-align: center;
+ /* text-shadow: 0px 1px black;*/
+ }
+
+ table.orarend thead tr th:hover span.napLeiras { display:none; }
+
+ table.orarend div.orarendTools { display:none; padding: 0px; }
+ table.orarend thead tr th:hover div.orarendTools { display: block; }
+ table.orarend div.orarendTools span { padding: 4px; font-size:20px; }
+ table.orarend div.orarendTools a span { color:white; }
+ table.orarend div.orarendTools span:hover { text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;}
+ table.orarend div.orarendTools span.icon-info-sign:hover { color: cornflowerblue;}
+ table.orarend div.orarendTools span.jegyzet:hover { color: lightgreen;}
+ table.orarend div.orarendTools span.dolgozat:hover { color: orange;}
+ table.orarend div.orarendTools span.bezar:hover { color: #f06; }
+
+ .animated {
+ -webkit-animation-duration: 1.5s;
+ animation-duration: 1.5s;
+ -webkit-animation-fill-mode: both;
+ animation-fill-mode: both;
+ }
+
+ @-webkit-keyframes shake {
+ 0%, 100% {-webkit-transform: translateX(0);}
+ 10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-2px);}
+ 20%, 40%, 60%, 80% {-webkit-transform: translateX(2px);}
+ }
+ @keyframes shake {
+ 0%, 100% {transform: translateX(0);}
+ 10%, 30%, 50%, 70%, 90% {transform: translateX(-2px);}
+ 20%, 40%, 60%, 80% {transform: translateX(2px);}
+ }
+ .shake {
+ -webkit-animation-name: shake;
+ animation-name: shake;
+ }
+}
+@media (max-width: 764px) {
+
+/*
+ table.orarend thead tr th div.orarendTools { display: block; border-top: solid 1px white; padding-top:4px; background-color: cornflowerblue;}
+ table.orarend thead tr th div.orarendTools span { color: #eee;}
+ table.orarend thead tr th span.napLeiras { display:block; }
+ table.orarend thead tr th:hover span.napLeiras { display:block; }
+*/
+}
+@media print {
+ table.toolBar, #nav, #nav1, #nav2, #poz, #head {
+ display: none;
+ }
+ table.orarend {
+ width: 100%;
+ }
+ table.orarend thead tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 1px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+ table.orarend tbody tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+
+ table.orarend tr td {
+ text-align: center;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+ font-size:10px;
+ page-break-inside: avoid;
+ }
+ hr { width: 80% }
+ h2.toPrint { color: black; text-align: center; margin-top:0px; margin-bottom: 0px; padding-top:0px; padding-bottom:0px; }
+
+ table.orarend tbody tr th div {
+ color: #dddddd; text-shadow: 0px 1px black;white-space:nowrap;font-size:xx-small; font-weight:normal; width:100%; text-align: center;
+ }
+
+}
+
+sup, sub {
+ vertical-align: baseline;
+ position: relative;
+ top: -0.4em;
+ padding-left: 1px;
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css
new file mode 100644
index 00000000..9dd7e321
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendBetolto.css
@@ -0,0 +1,6 @@
+
+ form.file { background-color: rgb(200,200,240); margin: 10px auto; padding: 20px 5px 5px 5px; width: 500px; text-align: center; border: rgb(40,80,120) solid; border-width: 3px 0px; }
+ form.file img { border: none; position: relative; top: 10px; }
+ form.file a { text-decoration: none; display: block; padding-bottom: 14px; background-color: rgb(20,40,60); color: white; margin-top: 40px; }
+ form.file a:hover { color: rgb(255,200,100); }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css
new file mode 100644
index 00000000..3a72f844
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendEllenorzes.css
@@ -0,0 +1,3 @@
+
+ form.orarend { background-color: rgb(140,160,180); }
+ form.orarend ol.kritikus li { background: red; margin-right: 20px; padding: 4px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendModosito.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendModosito.css
new file mode 100644
index 00000000..4d2ef3aa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendModosito.css
@@ -0,0 +1,156 @@
+@media screen {
+h2 { text-align: center; color: red;}
+h2.toPrint { display: none; }
+
+table.toolBar tr td select, table.toolBar tr td option {
+ font-size:11px;
+}
+
+table.orarend {
+ width: 85%;
+ background-color: #888;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+ width:2%;
+ height:30px;
+}
+table.orarend thead tr th {
+ background-color: rgba(52, 150, 185, 1);
+ color: white;
+ border-bottom: solid 1px white;
+ width:2%;
+ height:2em;
+ font-weight: normal;
+}
+table.orarend thead tr th.spec {
+ background-color: #2196F3;
+}
+
+table.orarend tbody tr th { font-weight: normal; padding:0px 1em; }
+
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #efefef;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+}
+
+table.orarend tr td:hover { outline: solid 1px orange; }
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white;
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál { background-color: lightgreen !important;}
+ div.plusz { background-color: #eeccee !important;}
+ div.elmarad { background-color: black !important;}
+ div.elmarad_máskor { background-color: #555555 !important; }
+ div.normál_máskor { background-color: #776699 !important; }
+ div.felügyelet { background-color: #FF69B4 !important; }
+ div.helyettesítés { background-color: #ccffcc !important; }
+ div.összevonás { background-color: #B0C4DE !important; }
+
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
+
+ table.orarend tr td span.t0 {
+ background-color: #880000; color:white;
+ }
+ table.orarend tr td span.t1 {
+ }
+
+ table.orarend tr td select, table.orarend tr td select option { background-color: black; color: white; }
+ table.orarend tr td select.terem ,
+ table.orarend tr td select.terem option { background-color: white; color: black; }
+ table.orarend tr td select.nincs option { background-color: orange; color: black; }
+
+ table.orarend tr td select.terem option.orig { font-style: italic; color: #aaaaaa;}
+
+ table.orarend tbody tr td { background-color: #cccccc; }
+ table.orarend tbody tr td div { background-color: rgb(130,200,130); }
+ table.orarend tbody tr td div.nincsTerem { background-color: rgb(200,130,130); }
+ table.orarend tbody tr td div.moved { background-color: rgb(200,130,230) !important; }
+
+ table.orarend tbody tr:hover th { background-color: #aabbcd; }
+
+ table.orarend tbody tr td input { background-color: red; }
+
+ div#hibasOrak {
+ width:100%;
+ margin: 0px auto;
+ border-top: #F3F3F3 solid 4px;
+ border-bottom: #F3F3F3 solid 4px;
+ }
+ div.hibas { overflow: hidden; margin:1px;height:100px; width:189px; border: solid 1px black; display:inline-block; background-color: orange; }
+ div.details { font-size: x-small; padding-left:1em; }
+
+ div.button {
+ width:200px;
+ margin:20px auto;
+ }
+ div.button input {
+ width:100%;
+ background-color: #82C882; color: white;
+ padding:0.4em 0.4em;
+ border: solid 1px rgb(52, 150, 185);
+ border-radius: 2px;
+ }
+ div.button input:hover {
+ background-color:#3496B9;
+ border: solid 1px rgb(52, 150, 185);
+ color: white;
+ }
+ div.haladasi { background-color: #F44336; border: solid 1px #ccc; padding:0.5em; color:white; }
+ div.haladasi.haladasiModositando { background-color: #4CAF50; }
+ table.orarend tbody tr td div.haladasiOra { color:white; cursor: pointer; }
+ div.torlesreJelolve { background-color: #888 !important; text-decoration: line-through; outline: solid 1px red; }
+}
+@media print {
+ table.toolBar {
+ display: none;
+ }
+ table.orarend {
+ width: 100%;
+ }
+ table.orarend thead tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 1px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+ table.orarend tbody tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+
+ table.orarend tr td {
+ text-align: center;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+ font-size:10px;
+ page-break-inside: avoid;
+ }
+ hr { width: 80% }
+ h2.toPrint { color: black; text-align: center; margin-top:0px; margin-bottom: 0px; padding-top:0px; padding-bottom:0px; }
+}
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTankor.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTankor.css
new file mode 100644
index 00000000..ed5bb002
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTankor.css
@@ -0,0 +1,29 @@
+h2 { text-align: center; }
+
+table.orarend {
+ width: 85%;
+ background-color: black;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+}
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #eeeeff;
+ border-width: 0px 1px 2px 0px;
+}
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white;
+}
+table.orarend tr td select option { background: #000011; }
+form input.sub {
+ color: white;
+ background-color: blue;
+ border: solid 1px #000088;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css
new file mode 100644
index 00000000..fb0172cc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/orarendTeremModositas.css
@@ -0,0 +1,8 @@
+
+ form.terem { background-color: rgb(100,50,100); color: white; margin: 5px auto; text-align: center; width: 640px; }
+ form.terem h1 { text-align: center; font-size: 16px; background-color: rgb(80,40,80); padding: 2px; }
+ form.terem select { margin: 2px; }
+ form.terem select option.foglalt { color: red; }
+ form.terem select option.szabad { color: green; }
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/szabadTerem.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/szabadTerem.css
new file mode 100644
index 00000000..c7b8cdf2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/szabadTerem.css
@@ -0,0 +1,103 @@
+@media screen {
+h2 { text-align: center; color: red;}
+h2.toPrint { display: none; }
+
+table.toolBar tr td select, table.toolBar tr td option {
+ font-size:normal;
+}
+
+table.orarend {
+ width: 85%;
+ background-color: black;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+ width:2%;
+ height:30px;
+}
+table.orarend thead tr th {
+ background-color: #889999;
+ color: white;
+ border-width: 0px 1px 2px 0px;
+ width:2%;
+ height:1em;
+}
+table.orarend thead tr th.spec {
+ background-color: red;
+}
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #eeeeff;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+}
+
+table.orarend tr td select {
+ font-size: 10px;
+ background-color:#000011;
+ color: white
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál {}
+ div.elmarad {
+ color: white;
+ background-color: black;
+ }
+ div.felügyelet {
+ background-color: #bbaac0;
+ }
+ div.helyettesítés {
+ background-color: #ccffcc;
+ }
+ div.összevonás {
+ background-color: #aabbc0;
+ }
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
+
+}
+@media print {
+ table.toolBar {
+ display: none;
+ }
+ table.orarend {
+ width: 100%;
+ }
+ table.orarend thead tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 1px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+ table.orarend tbody tr th {
+ color: black;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 1px;
+ width:2%;
+ height:30px;
+ }
+
+ table.orarend tr td {
+ text-align: center;
+ border-color: black;
+ border-style: solid;
+ border-width: 0px 1px 2px 0px;
+ width:18%;
+ font-size:10px;
+ page-break-inside: avoid;
+ }
+ hr { width: 80% }
+ h2.toPrint { color: black; text-align: center; margin-top:0px; margin-bottom: 0px; padding-top:0px; padding-bottom:0px; }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css
new file mode 100644
index 00000000..b17b3fce
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/tanarOrarend.css
@@ -0,0 +1,2 @@
+
+ form.orarend { text-align: center; margin: 40px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/orarend/termez.css b/mayor-orig/www/skin/classic/module-naplo/css/orarend/termez.css
new file mode 100644
index 00000000..bc3197c4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/orarend/termez.css
@@ -0,0 +1,13 @@
+
+ table.teremPreferencia { background-color: #eeeeee; margin: 4px 8px; width:95%; max-width:95%;}
+ table.teremPreferencia tr th { ; border-bottom: solid 1px white;}
+ table.teremPreferencia tr td { background-color: white;}
+
+
+ table.teremPreferencia tr td.terem { font-size:smaller; }
+ table.teremPreferencia tr td a { color: #dddddd;}
+ table.teremPreferencia tr td a.del:hover { color: #880000;}
+
+ table.teremPreferencia tr td a.run:hover { color: green;}
+
+ table.teremPreferencia tr:hover td { outline: solid 1px orange;}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css
new file mode 100644
index 00000000..001470fc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizelomenetel.css
@@ -0,0 +1,71 @@
+@media screen {
+
+ /* TanuloBizonyitvany */
+ table.tanuloBizonyitvany { background-color: #555555; margin-bottom: 5px;}
+ table.tanuloBizonyitvany thead th { background-color: rgb(100,140,130);
+ color: white; text-align: center; padding: 5px 8px 5px 8px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead tr th.cim { }
+ table.tanuloBizonyitvany thead tr th.nev { }
+ table.tanuloBizonyitvany thead a { color: white; text-decoration: none; }
+ table.tanuloBizonyitvany thead a:hover { text-decoration: underline; }
+ table.tanuloBizonyitvany textarea { width: 100%; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 16px; font-size: 10px; background-color: rgb(200,200,200); }
+ table.tanuloBizonyitvany thead tr.evf th { height:25px; width:50px; padding-right:10px; padding-left: 10px;
+ background-color: rgb(100,110,120); color: white; font-weight: normal;
+ border-right: solid 1px #eeeeee;
+ }
+ table.tanuloBizonyitvany tbody th { height:25px; padding-right:10px; padding-left: 10px;
+ background-color: rgb(130,140,150); color: white; font-weight: normal;
+ }
+ table.tanuloBizonyitvany tbody th,table.tanuloBizonyitvany tbody td {
+ border-color: rgb(220,220,220); border-style: solid; border-width: 1px 1px 0px 0px;
+ }
+ table.tanuloBizonyitvany tbody tr.fejlec th { background-color: rgb(100,110,120); font-weight: bold; }
+ table.tanuloBizonyitvany tbody td.vanjegy { color: white; text-align: center; }
+ table.tanuloBizonyitvany tbody td.nbiz {background-color: rgb(180,100,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.biz {background-color: rgb(100,180,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.avg {background-color: #f1f1f1; text-align: center; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.oraszam { text-align: center; }
+ table.tanuloBizonyitvany tfoot tr th { background-color: rgb(120,100,100); color: white; height:1.5em; }
+ table.tanuloBizonyitvany span.megj { font-size: 8px; font-style: italic; }
+
+ table.tanuloBizonyitvany tbody tr td span.szem1 { background-color: rgb(220,140,255); display: block; padding-left: 2px; }
+
+ table.tanuloBizonyitvany tbody tr th input { background-color: rgb(160,170,180); border: solid 1px rgb(180,100,140); }
+
+ table.sign { width: 100%; margin-top: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+}
+@media print {
+
+ .mayorhead, .toolBar, form.modosit, .nemNyomtatando { display: none; }
+
+ table.tanuloBizonyitvany { border-width: 2px 2px 3px 3px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany a { color: black; text-decoration: none; }
+ table.tanuloBizonyitvany td, table.tanuloBizonyitvany th { padding: 0px 10px 0px 10px; }
+ table.tanuloBizonyitvany thead th { border-width: 0px 1px 1px 0px; border-style: solid; border-color: black;
+ padding: 4px 10px 3px 10px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead th.nev { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; font-size: 16px; }
+ table.tanuloBizonyitvany thead th.cim { border-width: 0px 1px 0px 0px; font-size: 20px; }
+ table.tanuloBizonyitvany tfoot > tr > td { border-width: 0px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th, table.tanuloBizonyitvany > tbody td { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th { text-align: left; font-weight: normal; }
+ table.tanuloBizonyitvany > tbody tr.fejlec th { border-width: 2px 1px 1px 0px; text-align: center; font-weight: bold; padding: 3px 10px 3px 10px; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 10px; }
+ table.tanuloBizonyitvany .info { display: none }
+ table.tanuloBizonyitvany td.biz { font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 40px; margin-bottom: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal { width: 40%; border-color: black; border-width: 0px 0px 1px 0px; border-style: dotted; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css
new file mode 100644
index 00000000..fd2d7c75
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/bizonyitvany.css
@@ -0,0 +1,115 @@
+@media screen {
+
+/*
+ table.osztalyozo { background-color: rgb(220,220,220); color: white; }
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+ table.osztalyozo thead th { background-color: rgb(100,120,120); }
+ table.osztalyozo thead th.nev { height:30px }
+ table.osztalyozo thead td { background-color: rgb(100,140,130); text-align: center; padding: 0px 4px 0px 4px; }
+ table.osztalyozo tfoot th { background-color: rgb(100,120,120); padding: 0px; vertical-align: center; }
+ table.osztalyozo tfoot th select { width: 200px; }
+ table.osztalyozo tfoot th input { width: 100px; }
+ table.osztalyozo tfoot th input.jegy1 { color: blue; }
+ table.osztalyozo tfoot th input.jegy2 { color: black; }
+ table.osztalyozo tfoot th input.jegy3 { color: green; }
+ table.osztalyozo tfoot th input.jegy4 { color: red; }
+ table.osztalyozo tfoot td { font-size:10px; background-color: rgb(100,140,130); text-align: center; }
+ table.osztalyozo tbody th { background-color: rgb(130,140,150); font-weight: normal; }
+ table.osztalyozo tbody th.atlag { background-color: rgb(100,100,130); padding: 0px 4px 0px 4px; }
+ table.osztalyozo tbody th.kituno { background-color: #ff0000; }
+ table.osztalyozo tbody th.jeles { background-color: #883333; }
+ table.osztalyozo tbody th.bukott { background-color: black; }
+ table.osztalyozo tbody th.i { background-color: #f1f1f1; color: green; }
+ table.osztalyozo tbody th.ni {background-color: #f1f1f1; color: red; }
+ table.osztalyozo tbody td.jegyek { background-color: #eeeeee; color: black; text-align: center; }
+ table.osztalyozo tbody td.biz { background-color: rgb(180,100,140); text-align: center; }
+ table.osztalyozo tbody td.biz select { background-color: rgb(180,100,140); }
+ table.osztalyozo tbody td.biz select:hover { background-color: rgb(250,250,250); }
+
+ table.bizstat { margin-left:60px; border: solid 1px orange; }
+ table.bizstat th { background-color: #eeeeee; font-weight: normal; }
+ table.bizstat td { background-color: #f7f7f7; text-align: right; padding-right:5px; padding-left: 5px;}
+ table.bizstat tr.ossz th { background-color: #dddddd; }
+ table.bizstat tr.ossz td { background-color: #dddddd; }
+ table.bizstat caption {
+ margin-left: 60px;
+ caption-side: top;
+ font-size:11px;
+ background-color: #778877;
+ color: white;
+ padding:2px;
+ }
+
+ table.floatleft { float:left }
+*/
+
+
+ /* TanuloBizonyitvany */
+ table.tanuloBizonyitvany { background-color: #ffffff; }
+ table.tanuloBizonyitvany thead th { background-color: rgb(100,140,130);
+ color: white; text-align: center; padding: 5px 8px 5px 8px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead th.cim { font-size: 20px; font-weight: bold; }
+ table.tanuloBizonyitvany thead th.nev { font-size: 16px; font-weight: bold;}
+ table.tanuloBizonyitvany thead a { color: white; text-decoration: none; }
+ table.tanuloBizonyitvany thead a:hover { text-decoration: underline; }
+ table.tanuloBizonyitvany textarea { width: 100%; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 16px; font-size: 10px; background-color: rgb(200,200,200); }
+ table.tanuloBizonyitvany tbody th { height:25px; padding-right:10px; padding-left: 10px;
+ background-color: rgb(130,140,150); color: white; font-weight: normal;
+ }
+ table.tanuloBizonyitvany tbody th,table.tanuloBizonyitvany tbody td {
+ border-color: rgb(220,220,220); border-style: solid; border-width: 1px 1px 0px 0px;
+ }
+ table.tanuloBizonyitvany tbody tr.fejlec th { background-color: rgb(100,110,120); font-weight: bold; }
+ table.tanuloBizonyitvany tbody td.biz {background-color: rgb(180,100,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.avg {background-color: #f1f1f1; text-align: center; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.oraszam { text-align: center; }
+ table.tanuloBizonyitvany tfoot td { border-style: none; }
+ table.tanuloBizonyitvany span.megj { font-size: 8px; font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+ form.modosit { margin: 50px auto 0px auto; padding: 0px; width: 500px; background-color: rgb(180,100,140); }
+ form.modosit h1 { text-align: center; color: white; font-size: 14px; background-color: rgb(100,110,120);
+ padding: 3px; margin:1px;
+ border-bottom: solid 1px white;
+ }
+ form.modosit table.jegy { width:100%; background-color: #eeeeee; }
+ form.modosit table.jegy tbody tr th { background-color: #888888; color: white; font-weight: normal; }
+ form.modosit table.jegy tbody tr td { background-color: rgb(180,100,140); color: white; font-weight: normal; }
+ form.modosit table.jegy tfoot tr th { background-color: #554455; color: white; font-weight: normal; }
+}
+@media print {
+
+ .mayorhead, .toolBar, form.modosit, .nemNyomtatando { display: none; }
+
+ table.tanuloBizonyitvany { border-width: 2px 2px 3px 3px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany a { color: black; text-decoration: none; }
+ table.tanuloBizonyitvany td, table.tanuloBizonyitvany th { padding: 0px 10px 0px 10px; }
+ table.tanuloBizonyitvany thead th { border-width: 0px 1px 1px 0px; border-style: solid; border-color: black;
+ padding: 4px 10px 3px 10px; font-weight: normal;
+ }
+ table.tanuloBizonyitvany thead th.nev { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; font-size: 16px; }
+ table.tanuloBizonyitvany thead th.cim { border-width: 0px 1px 0px 0px; font-size: 20px; }
+ table.tanuloBizonyitvany tfoot > tr > td { border-width: 0px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th, table.tanuloBizonyitvany > tbody td { border-width: 1px 1px 0px 0px; border-style: solid; border-color: black; }
+ table.tanuloBizonyitvany > tbody th { text-align: left; font-weight: normal; }
+ table.tanuloBizonyitvany > tbody tr.fejlec th { border-width: 2px 1px 1px 0px; text-align: center; font-weight: bold; padding: 3px 10px 3px 10px; }
+ table.tanuloBizonyitvany tbody.jegyzet td { padding: 10px; }
+ table.tanuloBizonyitvany .info { display: none }
+ table.tanuloBizonyitvany td.biz { font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 40px; margin-bottom: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal { width: 40%; border-color: black; border-width: 0px 0px 1px 0px; border-style: dotted; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/diak.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/diak.css
new file mode 100644
index 00000000..ea8f30e5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/diak.css
@@ -0,0 +1,58 @@
+@media screen {
+ table.osztalyozo { background-color: rgb(220,220,220); color: white; }
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+ table.osztalyozo thead th { background-color: #660077; padding: 2px 4px 2px 4px; }
+ table.osztalyozo thead th.nev { background-color: #660077; height:30px; font-size: 16px; }
+ table.osztalyozo thead td { background-color: #440055; text-align: center; padding: 0px 4px 0px 4px; }
+ table.osztalyozo thead th.biz { background-color: #224433; }
+ table.osztalyozo thead th.defaultSulyozas { background-color: lightgreen; }
+
+ table.osztalyozo tfoot th { background-color: rgb(100,120,120); padding: 2px; vertical-align: center; }
+ table.osztalyozo tfoot th span { padding: 1px 10px; font-weight: normal; background-color: rgb(220,220,220); }
+
+ table.osztalyozo tbody th { background-color: rgb(130,140,150); font-weight: normal; padding: 4px 4px 4px 4px; }
+ table.osztalyozo tbody th a { color: white; text-decoration: none; }
+ table.osztalyozo tbody th.atlag { background-color: rgb(100,100,130); padding: 0px 4px 0px 4px; }
+ table.osztalyozo tbody th.t { text-align: left; padding-left: 0.5em; padding-right:0.5em; }
+ table.osztalyozo tbody td { background-color: #eeeeee; }
+ table.osztalyozo tbody td.biz { background-color: #446655; text-align: center; padding-right:3px; padding-left:3px; }
+ table.osztalyozo tbody td a { text-decoration: none; }
+
+ table.osztalyozo tbody td a.jegy0, table.osztalyozo tfoot th span.jegy0 { color: grey; }
+ table.osztalyozo tbody td a.jegy1, table.osztalyozo tfoot th span.jegy1 { color: blue; }
+ table.osztalyozo tbody td a.jegy2, table.osztalyozo tfoot th span.jegy2 { color: black; }
+ table.osztalyozo tbody td a.jegy3, table.osztalyozo tfoot th span.jegy3 { color: green; }
+ table.osztalyozo tbody td a.jegy4, table.osztalyozo tfoot th span.jegy4 { color: red; }
+ table.osztalyozo tbody td a.jegy5, table.osztalyozo tfoot th span.jegy5 { color: purple; background-color: gold; }
+
+ table.osztalyozo tbody td.biz span.sikertelen {background-color:black; padding:0px 4px;}
+
+ table.osztalyozo tfoot th span {cursor: pointer}
+
+ .jegyKiemel { outline: solid 1px orange; }
+
+ table.osztalyozo thead td.ho span.literal {display: table-cell}
+ table.osztalyozo thead td.ho span.roman {display: none;}
+
+ table.osztalyozo tbody tr:hover th { background-color: rgba(100,100,100,0.5);}
+ span.addVirtualJegy {cursor: pointer; padding-left:4px;}
+ a.virtual { border: dotted 1px lightgreen; }
+}
+@media (max-width: 764px) {
+ table.osztalyozo { width:95%;}
+ table.osztalyozo thead td.ho span.literal {display: none;}
+ table.osztalyozo thead td.ho span.roman {display: table-cell;}
+}
+
+@media print {
+ input, select, .toolBar { display: none; }
+ .biz select { display: inline; }
+ a { text-decoration: none; color: black; }
+ table { background-color: rgb(200,200,200); border-spacing: 0px; border: 1px black solid; font-size: 10px; border-collapse:collapse; }
+ td { border: solid 1px black; padding: 4px 4px; }
+ th { border: solid 1px black; padding: 6px 4px 2px 4px; vertical-align: middle; }
+ table.osztalyozo tbody td { text-align: right; }
+ table.osztalyozo tfoot {display:none;}
+ table.osztalyozo tbody th.t { text-align: left; padding-left: 0.5em; padding-right:0.5em; }
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css
new file mode 100644
index 00000000..957f833c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/dolgozat.css
@@ -0,0 +1,172 @@
+
+ table.dolgozatLista {
+ background-color: rgb(220,220,250);
+ margin-top: 20px;
+ width: 90%;
+ empty-cells: show;
+ margin-bottom:4em;
+ border-bottom: solid 1px rgb(40,40,100) ;
+ }
+
+ table.dolgozatLista th {
+ background-color: rgb(40,40,100);
+ color: white;
+ padding: 3px;
+ }
+
+ table.dolgozatLista th.kuszob {
+ background-color: rgb(0,100,100);
+ height:3px;
+ max-height:3px;
+ }
+
+ table.dolgozatLista td {
+ background-color: rgb(100,100,140);
+ color: white;
+ padding: 3px 10px;
+ }
+
+ table.dolgozatLista td a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ }
+
+ table.dolgozatLista td a:hover {
+ color: rgb(155,155,255);
+ }
+ table.dolgozatLista td.nincsdolgozat {background-color: rgb(100,100,100); text-align:center; }
+ table.dolgozatLista tbody tr:hover th {background-color: rgb(80,180,120); }
+ table.dolgozatLista tbody tr:hover td {background-color: rgb(80,80,120); }
+
+ /* ------- Adatok ------- */
+
+ table.dolgozatAdatok {
+ min-width:300px;
+ background-color: rgb(220,220,250);
+ margin-top: 10px;
+ }
+
+ table.dolgozatAdatok thead th {
+ background-color: rgb(60,60,110);
+ color: white;
+ padding: 4px 0px;
+ }
+
+ table.dolgozatAdatok tfoot th {
+ background-color: rgb(100,100,140);
+ padding: 4px;
+ }
+
+ table.dolgozatAdatok tfoot input {
+/* border-color: rgb(220,220,250);
+ border-width: 1px;
+ border-style: solid;
+ background-color: rgb(40,40,100);
+ color: rgb(255,255,255);
+*/
+ }
+
+ table.dolgozatAdatok tbody th {
+ background-color: rgb(140,140,200);
+ color: white;
+ padding: 2px 6px;
+ }
+
+ table.dolgozatAdatok tbody td {
+ background-color: rgb(100,100,160);
+ color: white;
+ padding: 2px 6px;
+ }
+
+ table.dolgozatAdatok tbody td select.multiple {
+ height: 150px;
+ width: 100%;
+ }
+
+ table.dolgozatAdatok td input.hosszu {
+ width: 95%;
+ }
+
+ table.dolgozatAdatok tbody td span.onClickHideShow {
+ background-color: rgb(70,70,100);
+ color: white;
+ padding: 2px 4px;
+ border: 1px solid rgb(140,140,200);
+ cursor: pointer;
+ }
+
+ table.dolgozatAdatok tbody td span.openable {
+ background-color: rgb(70,70,100);
+ color: white;
+ padding: 2px 4px;
+ border: 1px solid rgb(140,140,200);
+ }
+
+ table.dolgozatAdatok tbody td ul { padding: 0px; margin: 0px; }
+ table.dolgozatAdatok tbody td ul li { list-style-type: none; background-color: rgb(70,70,100); margin: 1px 0px; padding: 4px 12px; }
+ table.dolgozatAdatok tbody td ul li a { color: white; text-decoration: none; }
+
+ /* ------- jegyek -------- */
+
+ table.dolgozatJegyek {
+ min-width:300px;
+ background-color: rgb(220,220,250);
+ margin-top: 10px;
+ }
+
+ table.dolgozatJegyek th {
+ background-color: rgb(60,60,110);
+ color: white;
+ padding: 2px 10px;
+ }
+
+ table.dolgozatJegyek tbody th {
+ background-color: rgb(100,100,160);
+ font-weight: normal;
+ text-align:left;
+ }
+
+ table.dolgozatJegyek th a {
+ text-decoration: none;
+ color: white;
+ }
+
+ table.dolgozatJegyek th a:hover {
+ text-decoration: underline;
+ }
+
+ table.dolgozatJegyek thead td {
+ background-color: rgb(100,100,140);
+ color: white;
+ text-align: center;
+ }
+
+ table.dolgozatJegyek td {
+ background-color: rgb(200,200,240);
+ color: rgb(60,60,110);
+ text-align: center;
+ }
+
+ table.dolgozatJegyek td a {
+ text-decoration: none;
+ }
+
+ table.dolgozatJegyek td a:hover {
+ text-decoration: underline;
+ }
+
+ table.dolgozatJegyek td a.jegy3 {
+ color: green;
+ }
+
+ table.dolgozatJegyek td a.jegy4 {
+ color: red;
+ }
+
+ form.dolgozat { margin-left:5%; margin-right:5%; width:90%; color: white; text-align: center; }
+ form.dolgozat input {
+ margin: 10px; background-color: rgb(0,100,100); border: 2px solid rgb(40,40,100); color: white; font-size: large; padding:2px 4px 2px 4px;
+ }
+
+ table.dolgozatJegyek tr.atlag th { text-align:right; background-color: #9C64A0; }
+ table.dolgozatJegyek tr.atlag th:after { padding-left:4px; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/jegy.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/jegy.css
new file mode 100644
index 00000000..20ccb4c4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/jegy.css
@@ -0,0 +1,39 @@
+@media screen {
+ table.jegyInfo {
+ background-color: rgb(200,200,200);
+ color: white;
+ }
+
+ table.jegyInfo thead th {
+ background-color: rgb(100,120,100);
+ height:30px;
+ }
+
+ table.jegyInfo tfoot th {
+ background-color: rgb(100,120,100);
+ padding:5px;
+ }
+
+ table.jegyInfo tbody select { max-width:300px; }
+ table.jegyInfo tbody th {
+ background-color: rgb(140,160,150);
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.jegyInfo tbody td {
+ background-color: rgb(140,160,150);
+ padding: 2px 4px 2px 4px;
+ }
+
+ table.jegyInfo tr td a {color: white;text-decoration: none;}
+ table.jegyInfo tr td a:hover {color: white;text-decoration: underline;}
+ table.jegyInfo tr th a {color: white;text-decoration: none;}
+ table.jegyInfo tr th a:hover {color: white;text-decoration: underline;}
+ table.jegyInfo tr th a:visited {color: white;text-decoration: underline;}
+
+ table.jegyInfo tbody td input {
+ width: 99%;
+ }
+
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/stat.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/stat.css
new file mode 100644
index 00000000..725adee6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/stat.css
@@ -0,0 +1,339 @@
+@media screen {
+
+ table.osztalyozo thead tr td { cursor: pointer; }
+ table.osztalyozo thead tr td.szuk { overflow:hidden; width:5px; max-width:5px;}
+ table.osztalyozo thead tr td.szuk { background-color: rgba(0,100,0,0.5);}
+ table.osztalyozo thead tr td.foTargy { background-color: #3F51B5;}
+ table.osztalyozo thead tr td.alTargy { border-bottom: solid 2px #3F51b5; background-color:#03A9F4;}
+
+ table.osztalyozo tbody tr td.szuk { background-color: rgba(100,100,100,0.75);}
+
+ table.osztalyozo {
+ background-color: rgb(220,220,220);
+ color: white;
+ width:98%;
+ }
+
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+
+ table.osztalyozo thead th {
+ background-color: rgb(100,120,120);
+ }
+ table.osztalyozo thead th.nev { height:30px; }
+ table.osztalyozo thead th.beallitasok { text-align:left; font-weight:normal; font-size:x-small; color: rgba(255,255,255,0.7); }
+ table.osztalyozo thead th.beallitasok span { color: rgba(255,255,255,0.1); }
+ table.osztalyozo thead th.beallitasok label:hover { color: #ffffff;}
+ table.osztalyozo thead th.beallitasok span:hover { color: rgba(255,255,255,1); }
+ table.osztalyozo thead td {
+ background-color: rgb(100,140,130);
+ text-align: center;
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.osztalyozo tfoot th {
+ background-color: rgb(100,120,120);
+ padding: 0px;
+ vertical-align: center;
+ }
+
+ table.osztalyozo tfoot th select {
+ width: 200px;
+ }
+ table.osztalyozo tfoot th input {
+ width: 100px;
+ }
+
+ table.osztalyozo tfoot th input.jegy1 {
+ color: blue;
+ }
+
+ table.osztalyozo tfoot th input.jegy2 {
+ color: black;
+ }
+
+ table.osztalyozo tfoot th input.jegy3 {
+ color: green;
+ }
+
+ table.osztalyozo tfoot th input.jegy4 {
+ color: red;
+ }
+
+ table.osztalyozo tfoot td {
+ font-size:10px;
+ background-color: rgb(100,140,130);
+ text-align: center;
+
+ }
+
+ table.osztalyozo tbody th { background-color: rgb(130,140,150); font-weight: normal; }
+ table.osztalyozo tbody tr.elment th { background-color: rgb(65,70,75); }
+ table.osztalyozo tbody tr.elment th.jogviszonyafelfuggesztve { background-color: rgb(30,140,150); }
+ table.osztalyozo tbody tr.elment td.jegyek { background-color: #aaaaaa; }
+ table.osztalyozo tbody td span.masikFelev { font-style: italic; color: #555}
+ table.osztalyozo tbody td span.masikFelev:after { font-size: 6pt; position: relative; top: -2pt; content: "*"; }
+
+ table.osztalyozo tbody th.jogviszonyalezarva { background-color: rgb(30,40,50); }
+ table.osztalyozo tbody th.jogviszonyafelfuggesztve { background-color: rgb(30,140,150); }
+ table.osztalyozo tbody th.magantanulo { background-color: rgb(130,40,150); }
+ table.osztalyozo tbody th.vendegtanulo { background-color: rgb(130,140,50); }
+ table.osztalyozo tbody th a { display: block; }
+
+ table.osztalyozo tbody th.atlag {
+ background-color: rgb(100,100,130);
+ padding: 0px 4px 0px 4px;
+ }
+ table.osztalyozo tbody th.kituno { background-color: #ff0000; }
+ table.osztalyozo tbody th.jeles { background-color: #883333; }
+ table.osztalyozo tbody th.bukott { background-color: black; }
+ table.osztalyozo tbody th.i { background-color: #f1f1f1; color: green; }
+ table.osztalyozo tbody th.ni {background-color: #f1f1f1; color: red; }
+
+ table.osztalyozo tbody th div.naploSorszam {background-color: #777777; border-right: solid 1px white; vertical-align: middle; display:table-cell; min-width:20px;}
+
+
+ table.osztalyozo tbody td.jegyek {
+ background-color: #eeeeee;
+ color: black;
+ text-align: center;
+ }
+
+ table.osztalyozo tbody td.biz {
+ background-color: rgb(180,100,140);
+ text-align: center;
+ }
+ table.osztalyozo tbody td.bizZaradek select {
+ width:400px;
+ }
+ table.osztalyozo thead td.bizZaradek span { color: rgba(255,255,255,0.1); }
+ table.osztalyozo thead td.bizZaradek span:hover { color: white; }
+
+ table.osztalyozo tbody td.biz select { background-color: rgb(180,100,140);}
+ table.osztalyozo tbody td.biz select:hover {background-color: rgb(250,250,250); }
+
+ table.osztalyozo tbody tr td.targyEloszlas { background-color: #ccddcc; text-align: center; color: black; }
+
+ table.osztalyozo tbody tr td div.osz { display:none; font-size:smaller; color:#666666;}
+
+ table.bizstat { margin-left:60px; border: solid 1px orange; margin-right:20px; }
+ table.bizstat th { background-color: #eeeeee; font-weight: normal; text-align: right; }
+ table.bizstat td { background-color: #f7f7f7; text-align: right; padding-right:5px; padding-left: 5px;}
+ table.bizstat tr.ossz th { background-color: #dddddd; font-weight:bold; }
+ table.bizstat tr.ossz td { background-color: #dddddd; font-weight:bold; }
+ table.bizstat caption {
+ margin-left: 0px;
+ margin-top: 2em;
+ caption-side: top;
+ font-size:12px;
+ background-color: #778877;
+ color: white;
+ padding:2px;
+ }
+
+ table.floatleft { float:left }
+
+ /* TanuloBizonyitvany */
+ table.tanuloBizonyitvany { background-color: #ffffff; }
+ table.tanuloBizonyitvany thead th {
+ background-color: rgb(100,140,130);
+ color: white;
+ text-align: center;
+ padding: 5px 8px 5px 8px;
+ font-weight: normal;
+ font-family: Times;
+ }
+ table.tanuloBizonyitvany thead th.cim { font-size: 20px; font-weight: bold; }
+ table.tanuloBizonyitvany thead th.nev { font-size: 16px; font-weight: bold; }
+
+
+
+ table.tanuloBizonyitvany thead a {
+ color: white;
+ text-decoration: none;
+ }
+ table.tanuloBizonyitvany thead a:hover {
+ text-decoration: underline;
+ }
+
+ table.tanuloBizonyitvany textarea {
+ width: 100%;
+ }
+
+ table.tanuloBizonyitvany tbody.jegyzet td {
+ padding: 16px;
+ font-size: 10px;
+ background-color: rgb(200,200,200);
+ }
+
+ table.tanuloBizonyitvany tbody th {
+ height:25px;
+ padding-right:10px; padding-left: 10px;
+ background-color: rgb(130,140,150);
+ color: white;
+ font-weight: normal;
+ }
+
+ table.tanuloBizonyitvany tbody th,table.tanuloBizonyitvany tbody td {
+ border-color: rgb(220,220,220);
+ border-style: solid;
+ border-width: 1px 1px 0px 0px;
+ }
+
+
+ table.tanuloBizonyitvany tbody tr.fejlec th {
+ background-color: rgb(100,110,120);
+ font-weight: bold;
+ }
+ table.tanuloBizonyitvany tbody td.biz {background-color: rgb(180,100,140); text-align: center; color: white; padding-left:5px; padding-right:5px; }
+ table.tanuloBizonyitvany tbody td.avg {background-color: #f1f1f1; text-align: center; padding-left:5px; padding-right:5px; }
+
+ table.tanuloBizonyitvany tfoot td {
+ border-style: none;
+ }
+
+ table.sign { width: 100%; margin-top: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+ /* iskolaStatisztika */
+ table.iskolaStatisztika { background-color: #eeeeee; empty-cells: show;}
+ table.iskolaStatisztika thead th {
+ background-color: rgb(100,140,130);
+ color: white;
+ text-align: center;
+ padding: 2px;
+ font-weight: normal;
+ }
+ table.iskolaStatisztika tfoot { }
+ table.iskolaStatisztika tbody td { text-align: right; }
+ table.iskolaStatisztika tbody th { background-color: rgb(190,210,200); }
+ table.iskolaStatisztika tbody td { background-color: rgb(210,230,220); }
+ table.iskolaStatisztika tbody.hianyzas th { background-color: rgb(180,180,150); }
+ table.iskolaStatisztika tbody.hianyzas td { background-color: #ccccc0; }
+ table.iskolaStatisztika tbody.atlag th { background-color: rgb(220,220,220); text-align: left; padding: 0px 6px 0px 6px; font-weight: normal;}
+ table.iskolaStatisztika tbody.atlag th.ossz { background-color: rgb(220,220,220); text-align: center; }
+ table.iskolaStatisztika tbody.atlag td { background-color: white; }
+ table.iskolaStatisztika tbody.atlag tr:hover td, table.iskolaStatisztika tbody.atlag tr:hover th { background-color: #cccccc; }
+ table.iskolaStatisztika tbody.atlag tr.ossz th { background-color: rgb(200,200,210); text-align: center; font-weight: bold;}
+ table.iskolaStatisztika tbody.atlag tr.ossz td { background-color: rgb(220,220,230); }
+
+}
+@media print {
+
+ .mayorhead, .toolBar, img { display: none; }
+
+ table.osztalyozo { border: solid 1px black; width:100%}
+ table.osztalyozo td { border-style: none solid solid none; border-width: 1px; text-align: center }
+ table.osztalyozo th { border: solid 1px black; }
+ table.osztalyozo a { text-decoration: none; color: black }
+ table.osztalyozo tbody th div.naploSorszam { display:none; }
+
+ table.tanuloBizonyitvany {
+ border-width: 2px 2px 3px 3px;
+ border-style: solid;
+ border-color: black;
+ }
+ table.tanuloBizonyitvany a {
+ color: black;
+ text-decoration: none;
+ }
+ table.tanuloBizonyitvany td, table.tanuloBizonyitvany th {
+ padding: 0px 10px 0px 10px;
+
+ }
+ table.tanuloBizonyitvany thead th {
+ border-width: 0px 1px 1px 0px;
+ border-style: solid;
+ border-color: black;
+ padding: 4px 10px 3px 10px;
+ font-weight: normal;
+ font-family: Times;
+ }
+ table.tanuloBizonyitvany thead th.nev {
+ border-width: 1px 1px 0px 0px;
+ border-style: solid;
+ border-color: black;
+ font-size: 16px;
+ }
+ table.tanuloBizonyitvany thead th.cim {
+ border-width: 0px 1px 0px 0px;
+ font-size: 20px;
+ }
+ table.tanuloBizonyitvany tfoot > tr > td {
+ border-width: 0px 1px 0px 0px;
+ border-style: solid;
+ border-color: black;
+ }
+
+ table.tanuloBizonyitvany > tbody th, table.tanuloBizonyitvany > tbody td {
+ border-width: 1px 1px 0px 0px;
+ border-style: solid;
+ border-color: black;
+ }
+ table.tanuloBizonyitvany > tbody th {
+ text-align: left;
+ font-weight: normal;
+ }
+ table.tanuloBizonyitvany > tbody tr.fejlec th {
+ border-width: 2px 1px 1px 0px;
+ text-align: center;
+ font-weight: bold;
+ padding: 3px 10px 3px 10px;
+ }
+ table.tanuloBizonyitvany tbody.jegyzet td {
+ padding: 10px;
+ }
+ table.tanuloBizonyitvany .info { display: none }
+ table.tanuloBizonyitvany td.biz { font-style: italic; }
+
+ table.sign { width: 100%; margin-top: 40px; margin-bottom: 25px;}
+ table.sign td { text-align: center; border-style: none}
+ table.sign td.vonal {
+ width: 40%;
+ border-color: black;
+ border-width: 0px 0px 1px 0px;
+ border-style: dotted;
+ }
+
+ /* ------- */
+ table.iskolaStatisztika { empty-cells: show;}
+ table.iskolaStatisztika thead th {
+ font-size: 12px;
+ text-align: center;
+ padding: 2px;
+ font-weight: bold;
+ border-style: none none solid none; border-color: #777777; border-width:2px;
+ }
+ table.iskolaStatisztika th { border-style: none solid solid solid; border-color: #777777; border-width:1px; }
+ table.iskolaStatisztika td { border-style: none solid solid none; border-color: #777777; border-width:1px; }
+ table.iskolaStatisztika th.ossz { border-style: none solid solid none; border-color: #777777; border-width:1px; }
+
+ table.iskolaStatisztika tbody td { text-align: right; }
+
+ table.iskolaStatisztika tbody.atlag th { text-align: left; padding-left: 6px; padding-right: 6px; font-weight: normal;}
+ table.iskolaStatisztika tbody.atlag th.ossz { text-align: center; }
+ table.iskolaStatisztika tbody.atlag tr.ossz th { height:25px; border-width: 0px 1px 2px 1px;text-align: center; font-weight: bold;}
+ table.iskolaStatisztika tbody.atlag tr.ossz td { border-width: 1px 1px 2px 1px; font-weight: bold}
+
+ table.bizstat { margin-left:60px; border: solid 1px black; margin-right:20px; }
+ table.bizstat th { font-weight: normal; text-align: right; }
+ table.bizstat td { text-align: right; padding-right:5px; padding-left: 5px;}
+ table.bizstat tr.ossz th { background-color: #dddddd; font-weight:bold; }
+ table.bizstat tr.ossz td { background-color: #dddddd; font-weight:bold; }
+ table.bizstat caption {
+ margin-left: 0px;
+ margin-top: 2em;
+ caption-side: top;
+ font-size:12px;
+ color: white;
+ padding:2px;
+ }
+
+ table.floatleft { float:left }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css
new file mode 100644
index 00000000..3b44ffb0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szempontRendszer.css
@@ -0,0 +1,10 @@
+
+ form.szr { background-color: rgb(200,200,240); margin: 20px; text-align: center; padding: 20px; }
+ form.szr textarea { width: 80%; height: 300px; margin: auto; }
+ form.szr ol { text-align: left; font-weight: bold; margin: 0px 20px; }
+ form.szr ol ul { font-weight: normal; font-style: italic; margin-bottom: 10px; }
+
+ table.lista { background-color: rgb(20,40,60); margin: auto; border-spacing: 1px; }
+ table.lista th { background-color: rgb(200,200,200); }
+ table.lista td { background-color: rgb(230,230,230); }
+ table.lista th, table.lista td { padding: 4px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css
new file mode 100644
index 00000000..1cf46b55
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/szovegesErtekeles.css
@@ -0,0 +1,10 @@
+
+ form.ertekeles { background-color: rgb(255,255,255); margin: 4px 20px; padding: 10px 20px; border: solid black; border-width: 2px 0px 0px 0px; }
+ form.ertekeles h1 { font-size: 16px; text-align: center; color: white; background-color: rgb(40,60,80); margin: 0px 0px 2px 0px; padding: 2px; }
+ form.zaro h1 { background-color: rgb(120,60,40); }
+ form.ertekeles h2 { font-size: 14px; text-align: center; border: black solid; border-width: 1px 0px; margin: 0px; padding: 0px; }
+ form.ertekeles span.egyediMinosites { font-style: italic; }
+ form.ertekeles ol li { margin-top: 26px; }
+ form.ertekeles ol ul li { margin-top: 4px; }
+ form.ertekeles ol ul li input[type=text] { width: 95%; background-color: rgb(220,220,200); }
+ form.ertekeles input[type=submit] { width: 100%; background-color: #4a8; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/tankor.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/tankor.css
new file mode 100644
index 00000000..ad0d51a0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/tankor.css
@@ -0,0 +1,152 @@
+@media screen {
+ table.osztalyozo {
+ background-color: rgb(220,220,220);
+ color: white;
+ }
+
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+
+ table.osztalyozo thead th { background-color: rgb(100,120,120); }
+ table.osztalyozo thead th select { background-color: rgb(100,120,120); color: white; border: 1px solid rgb(120,140,140); }
+ table.osztalyozo thead th.nev { height:30px }
+ table.osztalyozo thead th.defaultSulyozas { background-color:lightgreen; }
+ table.osztalyozo thead th select.sulyozas { width:44px; }
+
+ table.osztalyozo thead td {
+ background-color: rgb(100,140,130);
+ text-align: center;
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.osztalyozo tfoot th {
+ background-color: rgb(100,120,120);
+ padding: 0px;
+ vertical-align: middle;
+ }
+
+ table.osztalyozo tfoot th select {
+ width: 200px;
+ }
+ table.osztalyozo tfoot th input {
+ width: 100px;
+ }
+
+ table.osztalyozo tfoot th input.jegy1 { color: blue; }
+ table.osztalyozo tfoot th input.jegy2 { color: black; }
+ table.osztalyozo tfoot th input.jegy3 { color: green; }
+ table.osztalyozo tfoot th input.jegy4 { color: red; }
+ table.osztalyozo tfoot th input.jegy5 { color: purple; /*background-color: gold; font-weight: bold;*/ }
+
+ table.osztalyozo tbody th {
+ background-color: rgb(130,140,150);
+ font-weight: normal;
+ }
+ table.osztalyozo tbody tr.magantanulo th { background-color: purple; }
+
+ table.osztalyozo tbody th.diakNev { text-align:left; padding-left:4px; }
+ table.osztalyozo tbody th.diakNevTxt { width:120px;}
+ table.osztalyozo tbody th.face { }
+/*
+ table.osztalyozo tbody th.diakNev.c { text-align:center; padding-left:2px; padding-right:2px; }
+*/
+ table.osztalyozo tbody th.atlag {
+ background-color: rgb(100,100,130);
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.osztalyozo tbody th.dolgozat {
+ background-color: rgb(100,120,120);
+ }
+
+ table.osztalyozo tbody td.jegyek { background-color: #eeeeee; white-space: nowraps; }
+ .ujSzemeszter { border: rgb(220,220,220) solid; border-width: 0px 0px 0px 6px; }
+ table.osztalyozo tbody tr:hover th { background-color: #44a; }
+ table.osztalyozo tbody tr:hover td,
+ table.osztalyozo tbody tr:hover td a { background-color: #aaf; }
+ table.osztalyozo tbody tr:hover td.dolgozat,
+ table.osztalyozo tbody tr:hover td.dolgozat a { background-color: #aca; }
+ table.osztalyozo tbody tr:hover td.biz { background-color: rgb(100,40,45); }
+
+ table.osztalyozo tbody td { text-align: right; }
+ table.osztalyozo tbody td.dolgozat { background-color: rgb(160,180,160); }
+ table.osztalyozo tbody td.dolgozatMase { background-color: rgb(200,200,160); }
+
+ table.osztalyozo tbody td a {
+ text-decoration: none;
+ }
+
+ table.osztalyozo tbody td a.jegy1 { color: blue; }
+ table.osztalyozo tbody td a.jegy2 { color: black; }
+ table.osztalyozo tbody td a.jegy3 { color: green; }
+ table.osztalyozo tbody td a.jegy4 { color: red; }
+ table.osztalyozo tbody td a.jegy5 { color:purple; /*background-color: gold; font-weight: bold;*/ }
+
+ table.osztalyozo tbody td a.jegy1mase { color: rgb(55,55,160); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy2mase { color: rgb(80,80,80); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy3mase { color: rgb(55,160,55); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy4mase { color: rgb(160,55,55); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+ table.osztalyozo tbody td a.jegy5mase { color: rgb(160,160,55); background-color: rgb(200,200,160); font-size: 0.8em; padding: 0.2em; }
+
+ table.osztalyozo #megjegyzes { width: 50%; min-width: 200px; background: #eee; border: solid 1px rgb(100,120,120); margin: 1px 0px;}
+ table.osztalyozo #megjegyzes:focus { background: #ffa; color: black; border: 1px outset #eee; }
+
+/* table.osztalyozo tbody td a.masodikFelev { background-color: rgb(200, 250, 200); padding: 2px; } */
+
+ table.osztalyozo tbody td.biz {
+ background-color: rgb(180,120,140);
+ text-align: center;
+ }
+ table.osztalyozo tbody td.biz select { width:95px; }
+
+ table.osztalyozo tbody tr th.c:hover span { display: none; }
+ table.osztalyozo tbody tr th.c:hover:after { content: "\e0ca"; font-family: "Elusive-Icons";}
+
+ table.osztalyozo tbody td.biz select { background-color: rgb(180,120,140); }
+ table.osztalyozo tbody td.biz select option { color: black; }
+
+
+ /* jegyInfo */
+ table.jegyInfo a { color: black; text-decoration: none; width: 800px; }
+ table.jegyInfo thead th { font-size:large; margin-bottom:2px; padding-bottom: 2px; border-bottom: solid 1px #eeeeee; }
+ table.jegyInfo tbody input { width: 99%; border: solid 1px #eeeeee;}
+ table.jegyInfo tbody th { padding-right:1em; text-align: left;}
+ table.jegyInfo tbody select { width: 99%; }
+ table.jegyInfo tfoot input { width: 50px;
+ color: white;
+ padding: 0.4em 0.4em;
+ border: solid 1px #3496B9;
+ border-radius: 2px;
+ }
+ table.jegyInfo tfoot input.modosit { background-color: #82C882; }
+ table.jegyInfo tfoot input.modosit:hover { background-color: #82fa82; }
+ table.jegyInfo tfoot input.torol { background-color: #f06; }
+ table.jegyInfo tfoot input.torol:hover { background-color: #a06; }
+
+ #updateWindow { width: 800px; top: 200px; left: 50%; margin-left: -400px; min-height: 100px; height: 800px; mmax-height: 90%; }
+ #updateWindow form { padding: 20px; }
+ #updateWindow form h1 { text-align: center; margin-bottom: 0px; }
+ #updateWindow form h2 { text-align: center; }
+ #updateForm { max-height: 80%; overflow: auto; }
+
+ #updateWindow form input.szoveges[type=submit] { width: 100%; background-color: #82c882; color: white; padding: 0.4em; border: solid 1px #3496B9; border-radius: 2px; }
+ #updateWindow form input.szoveges[type=submit]:hover { background-color: #82fa82; }
+
+ table.osztalyozo thead td.ho span.literal {display:;}
+ table.osztalyozo thead td.ho span.roman {display: none;}
+
+}
+@media (max-width: 764px) {
+ table.osztalyozo { width:95%;}
+ table.osztalyozo thead td.ho span.literal {display: none;}
+ table.osztalyozo thead td.ho span.roman {display: inline-block;}
+}
+@media print {
+ input, select, .toolBar { display: none; }
+ .biz select { display: inline; width: 80px; }
+ a { text-decoration: none; color: black; }
+ table { background-color: rgb(200,200,200); border-spacing: 0px; border: 0px black solid; font-size: 10px; }
+ td { border: 1px #888 solid; padding: 4px 4px; }
+ th { border: 1px #888 solid; padding: 6px 4px 2px 4px; vertical-align: middle; }
+ table.osztalyozo tbody th.diakNev { text-align:left; }
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css
new file mode 100644
index 00000000..611a544d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/targySorrend.css
@@ -0,0 +1,10 @@
+
+ form.sorrend { width: 300px; margin: 10px auto; padding: 5px; text-align: center; background-color: rgb(100,120,140); }
+ form.sorrend h1 { font-size: 14px; padding: 2px; margin: 0px; background-color: rgb(160,100,100); color: white; }
+ form.sorrend select { margin: 5px; }
+
+ #targyUl { list-style-image:none; list-style-type:none; margin-top:5px; margin:0px; padding:0px; text-align: left;}
+ #targyUl li { padding: 2px; margin:0px; background-color: white; margin-top: 1px; }
+ #targyUl li span.handle { padding: 2px; margin: 0px 10px 0px 2px; background-color: #E8A400; color: white; cursor: move; }
+
+ #submit { margin: 2px; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css
new file mode 100644
index 00000000..80c452a0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsga.css
@@ -0,0 +1,30 @@
+
+ form.jelentkezes { margin: 10px 30px; padding: 10px; background-color: rgb(40,80,80); color: white; text-align: center; border: solid rgb(20,60,60); border-width: 3px 0px; }
+ form.jelentkezes h1 { border: solid white; border-width: 1px 0px; margin-top: 0px; font-size: 12pt; background-color: rgb(20,60,60); }
+
+ form.lista { margin: 0px 30px; padding: 0px; background-color: rgb(40,80,90); color: white; text-align: center; border: solid rgb(20,60,70); border-width: 3px 0px; }
+ form.lista h1 { border: solid white; border-width: 1px 0px; margin-top: 0px; font-size: 12pt; background-color: rgb(20,60,70);}
+ form.lista table { margin: 0px auto; background-color: rgb(40,50,60); }
+ form.lista th { background-color: rgb(10,30,50); padding: 2px 4px; }
+ form.lista td { background-color: rgb(20,30,30); padding: 2px 4px; }
+ form.lista table tbody tr td { text-align:left; padding-left:4px; }
+ form.lista table tbody tr:hover td { outline: solid 1px #888;}
+
+ form.lista table tbody tr.javitovizsga td { background-color: rgb(60,70,80);}
+ form.lista table tbody tr.beszamoltatovizsga td { background-color: rgb(80,70,60);}
+
+ form.lista td.kiemelt { background-color: rgb(240,150,0); }
+ form.lista td.hideShowContainer label { color: black; font-weight: bold; padding: 0px 10px 0px 4px; }
+ form.lista td.szoveg { text-align: left; width: 400px; font-style: italic; }
+ form.lista td.jegy { text-align: left; }
+ form.lista td.jegy span { float: left; }
+ form.lista td.jegy span.jegy { float: right; color: yellow; padding-left: 10px;}
+ form.lista input[type="text"] { width: 100px; }
+ form.lista span.onClickHideShow {
+ color: red; float: right; font-size: 12px; font-weight: bold;
+ border: red 1px dotted;
+ padding: 2px 10px;
+ }
+ form.lista td a { color: white; text-decoration: none; display: block; background-color: red; padding: 2px 4px; font-weight: bold; }
+ form.lista td a:hover { color: red; background-color: white; }
+ form.lista span.onClickHideShow:hover { background-color: rgb(20,60,60); cursor: pointer; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css
new file mode 100644
index 00000000..b0dac656
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/vizsgaJelentkezes.css
@@ -0,0 +1,2 @@
+
+ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/osztalyozo/zaroJegyCheck.css
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/sni/diakAllapot.css b/mayor-orig/www/skin/classic/module-naplo/css/sni/diakAllapot.css
new file mode 100644
index 00000000..3c6e15fb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/sni/diakAllapot.css
@@ -0,0 +1,27 @@
+
+ div.sni { padding: 10px; }
+
+/*
+ div.mentor form.sniAdat { }
+ div.mentor form.sni { }
+ div.mentor form.sni:hover, div.mentor form.sniAdat:hover { }
+*/
+ form.sni:hover, form.sniAdat:hover { }
+
+ form.sniAdat { margin: 1px auto; padding: 10px; }
+
+ form.sniAdat table { margin: auto; }
+ form.sniAdat td { text-align: left; padding: 20px; vertical-align: top; }
+
+ form.sni { padding: 10px; margin: 1px; }
+ form.sni fieldset { border: solid 1px #aaaaaa; margin-bottom:4em;}
+ form.sni fieldset.utolso { }
+ form.sni fieldset legend { background-color: lightgreen; border: solid 1px lime; padding:2px 4px; }
+
+ form.sni h2 { text-align: center; border: solid black; border-width: 1px 0px; padding:10px; }
+ form.sni input { font-size: 12px; }
+ form.sni ul { margin-top: 0px; list-style-type: none; }
+ form.sni li { background-color: rgb(150,200,150); margin-top: 1px; }
+ form.sni:hover li { background-color: rgb(150,250,150); }
+
+ form.sni label { font-weight:bold;} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css b/mayor-orig/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css
new file mode 100644
index 00000000..13d04475
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/sni/fejlesztesiTerv.css
@@ -0,0 +1,21 @@
+
+
+
+ div.sni { text-align: center; padding: 2px; }
+ div.sni h1 { text-align: center; }
+
+ div.sni form { text-align: center; background-color: ; padding: 10px; margin: 2px auto; }
+ div.sni form:hover { background-color: ; }
+ div.mentor form { background-color: ; }
+ div.mentor form:hover { background-color:; }
+ div.sni form table { margin: auto; }
+ div.sni form td { text-align: left; padding: 20px; vertical-align: top; }
+ div.sni form h2 { text-align: center; border: solid black; border-width: 1px 0px; }
+ div.sni form label { }
+ div.sni form input { font-size: 12px; }
+ div.sni form option { font-size: 12px; padding: 2px; text-align: right; }
+ div.sni form select.multi option { text-align: left; }
+
+ div.sni form fieldset { }
+ div.sni form fieldset.utolso { }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css b/mayor-orig/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css
new file mode 100644
index 00000000..a881aede
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/sni/tantargyiFeljegyzesek.css
@@ -0,0 +1,15 @@
+
+ h2.sni { text-align: center; border: solid black; border-width: 1px 0px; font-size: 14px; font-weight: bold; width: 800px; margin: auto;}
+ ul.sni { text-align: center; padding: 2px; list-style-type: none; width: 800px; margin: 0px auto; }
+
+ ul.sni form { text-align: center; background-color: rgb(220,200,200); width: 97%; padding: 10px; margin: 2px auto; }
+ ul.sni form:hover { background-color: rgb(250,200,200); }
+ ul.sni li.mod form { background-color: rgb(200,220,200); }
+ ul.sni li.mod form:hover { background-color: rgb(200,250,200); }
+ ul.sni input[type=submit] { vertical-align: top; padding: 34px 5px; }
+ ul.sni li p { width: 700px; height: 80px; background-color: rgb(225,210,210); margin: 5px auto; border: 1px solid rgb(200,200,200); text-align: left; }
+
+
+
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css b/mayor-orig/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css
new file mode 100644
index 00000000..71919e09
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/stat/lemorzsolodas.css
@@ -0,0 +1,3 @@
+
+ div.mayorbody {padding:20px;}
+ table.lemorzsolodas { background-color: #f9f9f9; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/stat/letszam.css b/mayor-orig/www/skin/classic/module-naplo/css/stat/letszam.css
new file mode 100644
index 00000000..c5d01202
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/stat/letszam.css
@@ -0,0 +1,11 @@
+
+
+ table.letszamStat {
+ background-color: #eeeeee;
+ }
+ table.letszamStat thead tr th { background-color: #555555; color: white; }
+ table.letszamStat tfoot tr th { background-color: #555555; color: white; font-size:smaller;}
+
+ table.letszamStat tbody tr th { background-color: #888888; color: white; }
+ table.letszamStat tbody tr td { background-color: #dddddd; color: black; text-align: center; width:2em; }
+ table.letszamStat tbody tr td.l { color: #555555; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css b/mayor-orig/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css
new file mode 100644
index 00000000..f1b65851
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/stat/tantargyFelosztas.css
@@ -0,0 +1,36 @@
+@media screen {
+
+ table#tfStat tr.hide { display: none; }
+
+ table#tfStat th { background-color: #ddd; padding: 2px 6px; }
+ table#tfStat td { background-color: #eee; padding: 2px 6px; }
+ table#tfStat td.gap { background-color: #fff; }
+ table#tfStat td.number { text-align: right; min-width: 30px; }
+ table#tfStat td.alert,
+ table#tfStat td span.alert { color: red; }
+
+ table#tfStat th.slide { cursor: pointer; min-width: 180px; }
+
+ table#tfStat span.icon-chevron-up,
+ table#tfStat span.icon-chevron-down { float: right; margin: 4px 0 0 10px; }
+}
+@media print {
+
+ table.toolBar, span.icon-lock, span.icon-remove-circle, div.icon-lock { display: none; }
+ table#tfStat span.icon-chevron-up,
+ table#tfStat span.icon-chevron-down { display: none; }
+
+ table#tfStat { border-spacing: 0; border-collapse: collapse; line-height: 24px; }
+ table#tfStat, table#tfStat td, table#tfStat th { border: 1px solid black; }
+
+ table#tfStat th { background-color: #fff; padding: 2px 6px; }
+ table#tfStat td { background-color: #fff; padding: 2px 6px; }
+ table#tfStat td.gap { background-color: #fff; }
+ table#tfStat td.number { text-align: right; min-width: 30px; }
+ table#tfStat td.alert,
+ table#tfStat td span.alert { color: red; }
+
+ table#tfStat th.slide { min-width: 180px; }
+
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/diakTanarai.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/diakTanarai.css
new file mode 100644
index 00000000..b92fccf6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/diakTanarai.css
@@ -0,0 +1,9 @@
+
+ table.lista { background-color: rgb(160,0,0); margin: 0px auto; padding: 4px; width: 500px; }
+ table.lista td.nev { text-align: left; background-color: rgb(240,240,100); margin: 1px 0px; padding: 4px; }
+ table.lista td.osztaly { text-align: left; background-color: rgb(240,240,100); margin: 1px 0px; text-align: center; padding: 4px; }
+ table.lista td.tanar { text-align: right; background-color: rgb(240,240,100); margin: 1px 0px; font-style: italic; padding: 4px; }
+ table.lista th { background-color: rgb(170,170,60); font-weight: bold; font-style: normal; padding: 4px; }
+
+ form.osztaly { text-align: center; border: 1px dotted rgb(20,60,100); margin: 10px; }
+ form.osztaly label { background-color: rgb(200,220,240); padding: 4px; margin: 0px 4px 0px 0px; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/fogadoOra.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/fogadoOra.css
new file mode 100644
index 00000000..786ffc78
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/fogadoOra.css
@@ -0,0 +1,46 @@
+
+@media screen {
+ form.fogado { margin: 10px 20px; }
+ form.fogado table { background-color: rgb(130,160,130); margin: 0px auto; }
+ form.fogado table td { background-color: rgb(250,250,200); }
+ form.fogado table th { background-color: rgb(150,20,20); color: white; padding: 4px; }
+ form.fogado table thead td { background-color: rgb(180,30,30); color: white; text-align: center; }
+ form.fogado table thead th { }
+ form.fogado table thead th.cim { border-bottom: solid 1px white; height:3em; }
+ form.fogado table tfoot th { }
+ form.fogado table tbody td { text-align: center; }
+ form.fogado table tbody td.ok { background-color: lightgreen; }
+ form.fogado table tbody td.foglalt { background-color: #666666; }
+ form.fogado table tbody td.torol { background-color: rgb(130,180,130); }
+ form.fogado table tbody th { text-align: left; background-color: rgb(180,30,30); color: white; }
+ form.fogado h1 { text-align: center; border: dotted white; border-width: 1px 0px; font-size: 12pt; background-color: rgb(150,20,20); color: white; margin: 0px; }
+ form.fogado div { text-align: center; background-color: rgb(250,250,200); }
+ form.fogado a { text-decoration: none; color: rgb(250,250,200); display: block; }
+ form.fogado a:hover { text-decoration: underlined; color: rgb(250,250,100); }
+ form.fogado div.diak {
+ display: table-cell; border: solid 1px white; padding-right:20px; padding-left:20px; vertical-align:baseline;">';
+ }
+ form.fogado div.diak span.diakNev { background-color: #eeeee0; padding-left:1em; padding-right:1em; }
+}
+
+@media print {
+
+ .mayorhead, .toolBar { display: none; }
+
+ form.fogado { margin: 0px 20px; }
+ form.fogado table { width: 600px; background-color: white; margin: 20px auto; border: 1px black solid; border-spacing: 0px; page-break-after: always; page-break-inside: avoid; }
+ form.fogado table td { background-color: white; border: 1px black solid; padding: 10px; }
+ form.fogado table th { background-color: white; color: black; padding: 4px; border: 1px black solid; padding: 10px; }
+ form.fogado table thead td { background-color: white; color: blck; text-align: center; }
+ form.fogado table thead th { }
+ form.fogado table tbody td { text-align: center; }
+ form.fogado table tbody th { text-align: left; background-color: white; color: black; }
+ form.fogado h1 { text-align: center; border: dotted white; border-width: 1px 0px; font-size: 12pt; background-color: white; color: black; margin: 0px; }
+ form.fogado div { text-align: center; background-color: white; }
+ form.fogado a { text-decoration: none; color: black; display: block; }
+ form.fogado a:hover { text-decoration: underlined; color: black; }
+ form.fogado table tfoot { display: none; }
+ form.fogado div.diak img { display:none; }
+ form.fogado div.diak span.diakNev { background-color: white; padding-left:1em; padding-right:1em;}
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/munkaterv.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/munkaterv.css
new file mode 100644
index 00000000..3cbd9748
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/munkaterv.css
@@ -0,0 +1,149 @@
+@media screen {
+ /* összesités */
+
+ table.osszesites {
+ margin: 20px auto;
+ background-color: rgb(200,200,200);
+ }
+ table.osszesites td {
+ padding: 2px 10px;
+ background-color: rgb(210,210,240);
+ font-style: italic;
+ }
+ table.osszesites td.osszesMunkanap {
+ background-color: rgb(240,210,210);
+ color: red;
+ }
+ table.osszesites th {
+ padding: 2px 10px;
+ background-color: rgb(100,100,120);
+ color: white;
+ }
+
+ /* munkaterv - naptár */
+
+ form.munkaterv h2 { width: 60%; margin: 10px auto; text-align: center; border: 1px dotted; border-width: 1px 0px; font-size: 12px; }
+
+ table.munkaterv {
+ background-color: rgb(220,230,240);
+ color: white;
+ width: 70%;
+ font-size: 12px;
+ }
+
+ table.munkaterv tfoot th {background-color: rgb(120,130,140);}
+ table.munkaterv tfoot th input {border: none;}
+
+ table.munkaterv thead th {
+ background-color: rgb(120,140,130);
+ vertical-align: center;
+ }
+ table.munkaterv thead th input {
+ background-color: rgb(120,140,130);
+ border-style: none;
+ padding: 0px;
+ margin: 0px;
+ float: right;
+ color: white;
+ font-size: 10px;
+ }
+
+ table.munkaterv td {
+ width: 12%;
+ vertical-align: top;
+ text-align: center;
+ background-color: rgb(160,160,160);
+ }
+ table.munkaterv td input { width: 100%; }
+ table.munkaterv td.tanitasinap { background-color: rgb(200,100,100); border: none; }
+ table.munkaterv td.tanitasinap input { background-color: rgb(250,150,150); border: none; }
+ table.munkaterv td.tanitasinap select { background-color: rgb(250,150,150); border: 1px solid rgb(200,100,100); }
+
+ table.munkaterv td.specialistanitasinap { background-color: rgb(180,130,70); }
+ table.munkaterv td.specialistanitasinap input { background-color: rgb(220,180,120); border: none; }
+ table.munkaterv td.specialistanitasinap select { background-color: rgb(220,180,120); border: 1px solid rgb(180,130,70); }
+
+ table.munkaterv td.tanitasnelkulimunkanap { background-color: rgb(200,200,100); }
+ table.munkaterv td.tanitasnelkulimunkanap input { background-color: rgb(250,250,150); border: none; }
+ table.munkaterv td.tanitasnelkulimunkanap select { background-color: rgb(250,250,150); border: 1px solid rgb(200,200,100); }
+
+ table.munkaterv td.tanitasiszunet { background-color: rgb(70,140,70); }
+ table.munkaterv td.tanitasiszunet input { background-color: rgb(120,190,120); border: none; }
+ table.munkaterv td.tanitasiszunet select { background-color: rgb(120,190,120); border: 1px solid rgb(70,140,70); }
+
+ table.munkaterv td.szorgalmiidoszakonkivulimunkanap { background-color: rgb(240,130,60); }
+ table.munkaterv td.szorgalmiidoszakonkivulimunkanap input { background-color: rgb(250,175,100); border: none; }
+ table.munkaterv td.szorgalmiidoszakonkivulimunkanap select { background-color: rgb(250,175,100); border: 1px solid rgb(240,130,60); }
+
+ table.munkaterv td.felevZarasDt { border: red solid; border-width: 4px 0px 0px 4px; }
+ table.munkaterv td.felevZaras { border: red solid; border-width: 4px 0px 0px 0px; }
+
+ table.munkaterv td span { color:#ddd; margin:2px; font-size: 10px; }
+
+ table.munkaterv td span.orarendiHet1 { background-color: rgba(0,0,0,0.2); }
+ table.munkaterv td span.orarendiHet2 { background-color: rgba(255,0,0,0.2); }
+ table.munkaterv td span.orarendiHet3 { background-color: rgba(255,255,0,0.2); }
+ table.munkaterv td span.orarendiHet4 { background-color: rgba(255,255,255,0.2); }
+
+ table.munkaterv td select {
+ width: 100pt;
+ }
+
+ table.munkaterv a {
+ color: white;
+ text-decoration: none;
+ }
+
+ /* ------------------- */
+
+ form.init { background: #d6e0e6; margin: 0; padding: 20px; text-align: center; }
+ form.init h2, #napokSzama h2 { text-align: center; margin: 10px; border: 1px dotted; border-width: 1px 0px; font-size: 12px; }
+ form.init p { background-color: rgb(180,180,210); padding: 10px; }
+ form.init label { background-color: rgb(200,200,250); padding: 10px; }
+ form.init input[type=submit] { background-color: rgb(200,200,200); margin: 10px 5px; }
+
+ /* admin form */
+ div.admin { width: 95%;max-width: 95%;margin: 2em auto 0px auto; }
+ div.admin .onClickShow { float: left; text-align: center; min-width: 100px; margin: 0 2px 0 0; color: white;
+ background: rgba(52, 150, 185, 0.6); padding: 4px 10px; cursor: pointer;
+ border-radius: 4px 4px 0 0;
+ border-bottom: solid 1px rgb(52, 150, 185);
+ }
+ div.admin .onClickShow:hover {
+ background: rgba(52, 150, 185, 1);
+ border-bottom: solid 1px orange;
+ }
+ div.admin .openable { clear: both; }
+ div.admin .selected { background: #d6e0e6; color: black; border-bottom: solid 1px orange; }
+ div.admin #napokSzama { background: #d6e0e6; margin: 0; padding: 20px; }
+
+ div.admin ul { list-style: none; text-align: left; margin: 0; padding: 0; }
+ div.admin ul li { margin: 0px auto 1px auto; background: #abcdef; padding: 10px; width: 500px; }
+ div.admin ul li:hover { background: rgb(100,100,200); color: white; }
+ div.admin ul li select { float: right; margin-top: -3px; }
+ div.admin ul li input[type=submit] { float: right; margin-top: -3px; }
+
+}
+@media print {
+
+ table.osszesites { width:100%; font-size:10px;
+ background-color: #eeeeee;
+ }
+ table.osszesites th { text-align: center; background-color: #ffffff; }
+ table.osszesites td { text-align: center; background-color: #ffffff; }
+ a { font-size:10px; text-decoration: none; color: black }
+ select { font-size:10px; border: none; }
+
+ table.munkaterv td.specialisTanitasiNap {
+ border: dotted 1px black;
+ }
+
+ table.munkaterv td.tanitasiSzunet {
+ background-color: #eeeeee;
+ }
+
+ table.munkaterv td.tanitasNelkuliMunkanap {
+ border: dotted 1px black;
+ }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css
new file mode 100644
index 00000000..205296b3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorBlokk.css
@@ -0,0 +1,11 @@
+
+ table.modosit { margin: 20px auto; }
+ table.modosit th { padding: 2px; color: white; border: 1px solid #223340; background-color: #445560; }
+
+ form.csoport table { margin: 2px auto; color: white; background-color: #aabbc0; }
+ form.csoport table th { background-color: #445560; padding: 2px 14px; }
+ form.csoport table td { text-align: center; }
+ form.csoport table td input { background-color: #ccdde0; margin: 2px 0px; border: 1px solid #667780; }
+ form.csoport table td select { background-color: #ccdde0; font-size:10px; }
+
+ form.szuro { width: 200px; background-color: white; float: right; margin-right: 20px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css
new file mode 100644
index 00000000..4ac3bcac
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/tankorCsoport.css
@@ -0,0 +1,16 @@
+
+ table.modosit { margin: 20px auto; }
+ table.modosit th { padding: 4px; color: white; border: 3px solid rgb(20,80,40); background-color: rgb(30,120,60); }
+
+ form.csoport table { margin: 0px auto; color: white; background-color: rgb(20,80,40); }
+ form.csoport table th { background-color: rgb(30,120,60); }
+ form.csoport table td { text-align: center; }
+ form.csoport table td input { background-color: rgb(160,250,160); margin: 2px 0px; border: 1px solid rgb(30,120,60); }
+ form.csoport table td select { background-color: rgb(160,250,160); }
+ form.csoport input.torol { border: solid 1px red; background-color: rgb(120,50,10); color: white; float: right; margin: -3px; padding: 0px;}
+
+ form.csoportKereses table { margin: 10px auto; color: white; background-color: rgb(20,40,80); }
+ form.csoportKereses table th { background-color: rgb(30,60,120); }
+ form.csoportKereses table td { text-align: center; }
+ form.csoportKereses table td input { background-color: rgb(160,160,250); margin: 2px 0px; border: 1px solid rgb(30,60,120); }
+ form.csoportKereses table td select { background-color: rgb(160,160,250); } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/targyBontas.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/targyBontas.css
new file mode 100644
index 00000000..dc02bb8d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/targyBontas.css
@@ -0,0 +1,121 @@
+
+ #mayorbody { position: relative; }
+
+ table.bontas { border-spacing: 0 15px; margin: 70px 20px;}
+
+
+ table.bontas tbody tr th { -moz-box-shadow: 0px -15px #3ca; -webkit-box-shadow: 0px -15px #3ca; box-shadow: 0px -15px #3ca; }
+ table.bontas tbody tr th.targyTipus { background-color: #ddd; color: #a55; }
+ table.bontas tbody:nth-child(odd) tr th { -moz-box-shadow: 0px -15px #3ac; -webkit-box-shadow: 0px -15px #3ac; box-shadow: 0px -15px #3ac; }
+ table.bontas tbody tr:first-child th { -moz-box-shadow: 0px 0px; -webkit-box-shadow: 0px 0px; box-shadow: 0px 0px; }
+ table.bontas tbody tr.kesz:first-child th { -moz-box-shadow: 0px 3px #0f0 inset; -webkit-box-shadow: 0px 3px #0f0 inset; box-shadow: 0px 3px #0f0 inset; }
+
+ table.bontas td, table.bontas th { position: relative; background: #cba; background: #0a7; padding: 5px 8px; height: 50px; border: solid white; border-width: 2px 1px; color: white; }
+ table.bontas th { text-align: left; }
+ table.bontas tbody:nth-child(odd) td, table.bontas tbody:nth-child(odd) th { background: #abc; background: #3facc7; background: #07a; }
+
+ table.bontas tr.shadow1 td { -moz-box-shadow: 5px 5px #888; -webkit-box-shadow: 5px 5px #888; box-shadow: 5px 5px #888; }
+ table.bontas tr.shadow2 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999; -webkit-box-shadow: 5px 5px #888, 10px 10px #999; box-shadow: 5px 5px #888, 10px 10px #999; }
+ table.bontas tr.shadow3 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa; -webkit-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa; box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa; }
+ table.bontas tr.shadow4 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb; -webkit-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb; box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb; }
+ table.bontas tr.shadow5 td { -moz-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb, 25px 25px #ccc; -webkit-box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb, 25px 25px #ccc; box-shadow: 5px 5px #888, 10px 10px #999, 15px 15px #aaa, 20px 20px #bbb, 25px 25px #ccc; }
+
+ table.bontas tr.aktiv td { opacity: 1; } /* ha <1-re állítom, akkor olyan, mintha z-index-e a targyak div fölé nőne... */
+
+ table.bontas div.bontas { background: white; color: #333; padding: 2px 4px; margin: 2px 0px; cursor: pointer; }
+ table.bontas div.bontas ul.tankor-oraszam { list-style-type: none; margin: 0 0 0 6px; padding: 0; display: inline-block; float: right; color: #fff; }
+ table.bontas div.bontas ul.tankor-oraszam li { margin: 0 1px 0 0; padding: 0px 4px; display: inline-block; background-color: #f60; }
+ table.bontas div.bontas ul.tankor-oraszam li:nth-child(even) { background-color: #fa0; }
+ table.bontas div.bontas ul.tankor-oraszam li.marad { margin: 0; padding: 0px 4px; display: inline-block; background-color: #888; }
+ table.bontas div.bontas.ok ul.tankor-oraszam li.marad { background-color: green; }
+ table.bontas div.bontas.fail ul.tankor-oraszam li.marad { background-color: red; }
+
+ table.bontas td span.felev1, table.bontas td span.felev2 {
+ background-color: yellow; color: black; margin:0; padding:0; position: absolute; border: solid yellow; font-size: 8pt;
+ }
+ table.bontas td span.felev1 { top: 0; left: 0; border-width: 0px 10px 2px 0px; border-radius: 0 0 10px 0; }
+ table.bontas td span.felev2 { bottom: 0; right: 0; border-width: 2px 0px 0px 10px; border-radius: 10px 0 0 0;}
+ table.bontas span { cursor: pointer; padding: 5px; }
+ table.bontas span:hover { color: orange; }
+ table.bontas span.delBontas { float: right; color: #800; margin-right: -5px; margin-top: -2px;}
+ table.bontas span.addBontas, table.bontas span.addBontasTargy { padding: 20px 10px; }
+ table.bontas tr.aktiv span.addBontasTargy { color: orange; }
+ table.bontas span.slideDown { padding: 20px 5px; }
+ table.bontas span.slideUp { padding: 20px 5px; }
+ table.bontas span.slideUpAll { padding: 20px 5px; }
+
+
+ div#targyak { z-index: 79; position: fixed; top: 200px; overflow: auto; height: 60%; background-color: rgba(73,71,71,0.92); border: black 1px solid; color: white; padding: 0px 2px; display: none; }
+/*
+ div#targyak { overflow: auto; padding: 0px 2px; display: none; }
+*/
+ div#targyak h1 { font-size: 16px; text-align: center; border-bottom: 1px solid #ddd; padding: 4px 8px; margin: 2px; }
+ div#targyak h1 span { position:relative; z-index: 100; }
+ div#targyak span.icon-remove-circle { float: left; font-size: 18px; cursor: pointer; }
+ ul#targyakUl { list-style-type: none; padding: 0px 6px 20px 6px; }
+ ul#targyakUl li { padding: 3px; }
+ ul#targyakUl li:hover { background-color: rgba(255,255,255,0.9); color: rgb(71,71,71); cursor: pointer; }
+ div#targyakUp, div#targyakDown { z-index: 80; position: fixed; text-align: center; background-color: rgba(170,70,70,0.6); height: 21px; padding-top: 10px; width: auto; display: none; }
+
+ #updateWindowSide p.bontasAdat,
+ #updateWindowSide p.tankorNev { text-align: center; border-bottom: solid 1px #ddd; padding: 8px 0; margin: 0; }
+ #updateWindowSide ul.tankorLista { list-style-type: none; color: rgba(255,255,255,1); margin:30px 10px; padding:0; }
+ #updateWindowSide ul.tankorLista li { padding:0; cursor: pointer; margin-right: 40px; }
+ #updateWindowSide ul.tankorLista li:hover { background-color: rgba(200,200,200,1); color: #000; }
+ #updateWindowSide ul.tankorLista li.hozzarendelt { border-right: 0px orange solid; }
+ #updateWindowSide ul.tankorLista li.tiltott { color: rgba(255,255,255,0.5); cursor: not-allowed; }
+ #updateWindowSide ul.tankorLista li.osszevonasTilt { color: rgba(255,255,255,0.5); }
+ #updateWindowSide ul.tankorLista li.tiltott:hover { background-color: rgba(200,200,200,1); color: #fff; }
+ #updateWindowSide ul.tankorLista li div.jobbra { float: right; margin-right: -40px; color: white; min-width: 40px; text-align: right; }
+ #updateWindowSide ul.tankorLista li:hover div.jobbra { background-color: rgb(200,150,150); }
+ #updateWindowSide ul.tankorLista li div.jobbra span.plusz { display: none; position: absolute; margin-top: -18px; margin-left: -3px; border-bottom: 1px solid white}
+ #updateWindowSide ul.tankorLista li div.jobbra span.minusz { display: none; position: absolute; margin-top: 26px; margin-left: -3px; padding-top: 1px; border-top: 1px solid white}
+ #updateWindowSide ul.tankorLista li div.jobbra:hover strong { position: absolute; display: inline-block; padding: 20px 20px 23px 20px; right: 5px; font-size: 20px; background: rgb(200,150,150); color: yellow; }
+ #updateWindowSide ul.tankorLista li div.jobbra:hover span.plusz,
+ #updateWindowSide ul.tankorLista li div.jobbra:hover span.minusz { display: inline-block; color: white; }
+ #updateWindowSide ul.tankorLista li strong { color: white; }
+ #updateWindowSide ul.tankorLista li.tiltott strong { color: #eee; }
+ #updateWindowSide ul.tankorLista li.tiltott.hozzarendelt div.jobbra::before { content: "✔"; float:right; color: #4f4; width: 10px; margin-right: -11px; text-align: center; } /* ✕ ☑ ☒ ⊗ ×✖ ❌ ☠" */
+ #updateWindowSide ul.tankorLista li.tiltott div.jobbra::before { content: "❌"; float: right; color: red; width: 10px; margin-right: -11px; text-align: center; }
+ #updateWindowSide ul.tankorLista li.osszevonasTilt div.jobbra::before { content: "▚"; float: right; color: darkorange; width: 10px; margin-right: -11px; text-align: center; font-weigth: bold; }
+ #updateWindowSide ul.tankorLista li.osszevonasEnged div.jobbra::before { content: "▐"; float: right; color: yellow; width: 10px; margin-right: -11px; text-align: center; font-weigth: bold; }
+
+ #updateWindowSide div#addTankor { background: rgba(70,70,70,0.9); position: absolute; width: 330px; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; text-align: right; }
+ #updateWindowSide div#addTankor, #updateWindowSide div#addTankor span { cursor: pointer; }
+ #updateWindowSide div#disableAddTankor, #updateWindowSide div#disableAddTankor span { cursor: not-allowed; }
+ #updateWindowSide div#disableAddTankor { color: #888; background: rgba(70,70,70,0.9); position: absolute; width: 330px; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; text-align: right; }
+
+ #updateWindowSide div.slideToggleContainer ul { list-style-type: none; margin: 10px 0px; display: none; cursor: default; padding: 0 10px; }
+ #updateWindowSide div.slideToggleContainer ul li { display: inline-block; width: 100px; }
+ #updateWindowSide div.slideToggleContainer { cursor: pointer; margin: 0; padding: 3px 10px; border-bottom: 1px dotted #aaa; }
+ #updateWindowSide div.slideToggleContainer span.icon-chevron-down { float: right; z-index: 0; }
+ #updateWindowSide div.slideToggleContainer span.changed { color: yellow; }
+ #updateWindowSide ul#tankorSzemeszter li { width: 120px; }
+ #updateWindowSide ul#tankorSzemeszter input { width: 40px; text-align: right;}
+
+ #updateWindowSide p.tankorModosit { cursor: pointer; color: yellow; text-align: right; margin: 0; padding: 0 10px 0 0; display: none; background-color: rgba(240,240,220,0.5); border-bottom: 2px solid yellow; color: rgb(70,70,70); color: white;}
+ #updateWindowSide span.tankorNevExtra { cursor: pointer;}
+ #updateWindowSide span.tankorNevExtra.changed { color: yellow; }
+ #updateWindowSide input#tankorNevExtra { width: 50px; display: none; }
+
+ form#szures { border-radius: 0 0 10px 10px; background: rgba(170,170,170,0.9); color: white; margin: 0px auto; position: absolute; left: 35px; top: 63px; right: 240px; z-index: 1; }
+ form#szures div#osztaly div.evfolyamJel { display: inline-block; cursor: pointer; background-color: rgb(70,70,70); width: 50px; height; text-align: center; padding: 5px 0; margin-bottom: 1px;}
+ form#szures div#osztaly div.evfolyamJel.checked { background-color: #820; }
+ form#szures div#osztaly span.selectOsztaly { display: inline-block; cursor: pointer; background-color: #888; margin: 0px 0px 1px 1px; border: none #888; border-width: 0px 1px 1px 0px; padding: 5px; }
+ form#szures div#osztaly span.selectOsztaly.checked { background-color: orange; }
+ form#szures div#osztaly span.selectOsztaly.checked.bontasOk { background-color: darkorange; }
+ form#szures div#osztaly span.selectOsztaly.bontasOk { background-color: green; }
+ form#szures div.kSelect { float: left; }
+ form#szures input#filterOk { float: right; padding: 10px; margin-right: 15px; margin-top: 1px; }
+
+ div#stat { background: black; position: absolute; top: 63px; right: 20px; z-index: 2; border-radius: 0 0 0px 0px; }
+ div#stat table { width: 230px; }
+ div#stat table td { background-color: #ddd; text-align: center; }
+ div#stat table #oratervenKivuli { cursor: pointer; }
+ div#stat table #oratervenKivuli span { cursor: pointer; margin-left: 8px; color: #666; }
+ div#stat table #oratervenKivuli ul { display: none; list-style-type: none; margin: 0; padding: 4px 0 0 0; text-align: left; font-weight: normal; position: absolute; left: -50px; right: 0px; background-color: #888; }
+ div#stat table #oratervenKivuli ul li { margin: 1px 0; padding: 4px; background: #ddd; }
+ div#stat table #oratervenKivuli ul li span.diff { float: right; }
+
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/targyOraszam.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/targyOraszam.css
new file mode 100644
index 00000000..14d9bd0c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/targyOraszam.css
@@ -0,0 +1,7 @@
+
+ table.targyOraszam {
+ background-color:#eeeeee;
+ }
+
+ table.targyOraszam tr th { background-color: rgb(100,100,150); color: white; border-bottom: solid 2px white; padding:3px; }
+ table.targyOraszam tr td.oraszam { text-align: right }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css
new file mode 100644
index 00000000..717a9b66
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosOrarendLezaras.css
@@ -0,0 +1,5 @@
+
+ form.vegzos { background-color: rgb(200,200,100); margin: 20px 15%; text-align: center; padding: 10px; }
+ form.vegzos h1 { font-size: 12px; color: white; background-color: rgb(60,20,10); border: dotted white; border-width: 1px 0px; }
+ form.vegzos ul { list-style-type: none; margin: auto; padding: 10px 0%; width: 40%; text-align: left; background-color: rgb(100,40,10); }
+ form ul li { background-color: rgb(150,150,100); margin: 1px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css b/mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css
new file mode 100644
index 00000000..1e377952
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanev/vegzosTankorLezaras.css
@@ -0,0 +1,5 @@
+
+ form.vegzos { background-color: rgb(200,200,100); margin: 20px 15%; text-align: center; padding: 10px; border: solid 1px black; }
+ form.vegzos h1 { font-size: 12px; color: white; background-color: rgb(60,20,10); border: dotted white; border-width: 1px 0px; }
+ form.vegzos ul { list-style-type: none; margin: auto; padding: 10px 0%; width: 40%; text-align: left; background-color: rgb(100,40,10); }
+ form ul li { background-color: rgb(150,150,100); margin: 1px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css
new file mode 100644
index 00000000..ca1dc18b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetInfo.css
@@ -0,0 +1,11 @@
+
+ fieldset { margin: 20px; }
+ fieldset.alapadatok p { text-align: center; font-style: italic; }
+ fieldset.alapadatok p span { color: rgb(100,50,25); font-weight: bold; font-style: normal; }
+
+ #temakor { list-style-type: none; }
+ #temakor li { margin-top: 10px; }
+ #temakor span.oraszam { display: block; float: left; width: 120px; text-align: right; color: rgb(160,80,40); margin-right: 6px; }
+ #temakor div.megnevezes { display: inline-block; color: #000; font-weight: normal; font-style: normal; }
+
+ fieldset.tankor ul li span { color: rgb(100,50,25); font-weight: bold; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css
new file mode 100644
index 00000000..1a7814d1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetJovahagyas.css
@@ -0,0 +1,23 @@
+
+ #tanmenet { margin: auto; border-spacing: 0px; border: #888888 solid 3px; border-collapse: collapse; }
+ #tanmenet th { text-align: left; }
+ #tanmenet td, #tanmenet th { height: 34px; vertical-align: middle; padding: 0px 10px; border: #888888 solid 1px; }
+ #tanmenet tr { background-color: #eeeeee; }
+ #tanmenet tr.uj { background-color: orange; }
+ #tanmenet tr.kesz { background-color: yellow; }
+ #tanmenet tr.jovahagyott { background-color: lightgreen; }
+ #tanmenet tr.publikus { background-color: cornflowerblue; }
+ #tanmenet tr.uj:hover { background-color: #eeaaaa; }
+ #tanmenet tr.kesz:hover { background-color: #eeeeaa; }
+ #tanmenet tr.jovahagyott:hover { background-color: #aaeeaa; }
+ #tanmenet tr.publikus:hover { background-color: #aaaaee; }
+ #tanmenet a { color: black; text-decoration: none; display: block; padding: 10px; }
+
+ #tanmenet tr.aktiv td, #tanmenet tr.aktiv th { border-top: 10px red solid; border-bottom: 10px red solid; }
+ #tanmenet tr.aktiv th { border-left: 10px red solid; }
+ #tanmenet tr.aktiv td:last-child { border-right: 10px red solid; }
+/* #updateWindow { width: 80%; top: 10%; margin-top: auto; margin-bottom: auto; height: 80%; left: 50%; margin-left: -40%; }*/
+ #updateWindow { width: 40%; top: 10px; margin-top: auto; margin-bottom: auto; height: 100%; left: 0%; margin-left: 0%; }
+ #updateForm { max-height: 95%; overflow: auto; }
+ #updateHeader { cursor: pointer; }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css
new file mode 100644
index 00000000..d98cf5ac
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetLeadas.css
@@ -0,0 +1,11 @@
+
+ table.tanmenet { margin: auto; background-color: black; border-spacing: 1px; }
+ table.tanmenet th { background-color: rgb(40, 70, 100); color: white; padding: 4px 10px; }
+ table.tanmenet th.tanarNev { padding: 0px; }
+ table.tanmenet th.tanarNev a { background-color: rgb(140,170,200); color: white; display: block; text-decoration: none; padding: 4px 10px; margin: 0px; }
+ table.tanmenet th.tanarNev a:hover { background-color: rgb(100,130,170); }
+ table.tanmenet td { padding: 4px; text-align: right; background-color: rgb(200,200,200); }
+ table.tanmenet td.jovahagyott { background-color: rgb(200,250,200); }
+ table.tanmenet td.nincsJovahagyva { background-color: rgb(255,255,200); }
+ table.tanmenet td.felkesz { background-color: rgb(255, 225, 175); }
+ table.tanmenet td.hianyzik { background-color: rgb(255,200,200); } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css
new file mode 100644
index 00000000..93e8e3f7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetModositas.css
@@ -0,0 +1,54 @@
+
+
+ fieldset.alapadatokfieldset {
+ margin:auto;
+ border: solid 1px darkblue;
+ border-bottom: solid 5px;
+ width:500px;
+ }
+ fieldset.alapadatokfieldset.uj { background: orange; border-color: #afa; }
+ fieldset.alapadatokfieldset.kesz { background: yellow; border-color: #aaf; }
+ fieldset.alapadatokfieldset.jovahagyott { background: lightgreen; border-color: #faa; }
+ fieldset.alapadatokfieldset.publikus { background: cornflowerblue; border-color: #ffa; }
+ fieldset.alapadatokfieldset.elavult { background: gray; border-color: #ccc; }
+
+ fieldset.alapadatokfieldset legend { background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80);}
+
+ fieldset.temakorokfieldset legend {
+ background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80);
+ }
+
+ form.alapadatok { padding: 20px 20px; text-align: center; }
+ form.alapadatok label { }
+ form.alapadatok input[type=text] { width: 400px; }
+
+
+ #temakor { list-style-type: none;
+ padding: 5px;
+ margin: 20px; }
+ #temakor li { background-color: #ddddaa; margin: 15px 0px; padding: 4px 10px; border: 1px solid;}
+ #temakor li textarea { width: 80%; }
+ #temakor li select { width: 50px; text-align: right; vertical-align: top; margin-top: 6px; }
+ #temakor li:nth-child(even) select.temakorOraszam { background-color: #eee;}
+ #temakor li:nth-child(odd) select.temakorOraszam { background-color: #aaa;}
+ #temakor li.sortable:nth-child(even) { background-color: #aaaaaa; border-color: #222277; }
+ #temakor li.sortable:nth-child(odd) { background-color: #eeeeee; border-color: #227722; }
+ #temakor li img.close { float: right; width: 25px; cursor: pointer; display: none; }
+ #temakor li.sortable img.close { display: inline; }
+ #temakor li span.handle { border: 1px solid; height: 32px; cursor: move;
+ width: 40px; display: block; float: left; text-align: center; padding: 4px 8px;
+ position: relative; top: 5px; margin-right: 2px; background-color: #ddddaa;
+ }
+ #temakor li span.oraszam { border: solid 1px;
+ height: 28px; width: 50px; display: block; float: left; text-align: center; padding: 12px 6px 0px 6px;
+ position: relative; top: 5px; background-color: red; margin-right: 2px;
+ }
+ #temakor li.sortable:nth-child(even) span.handle { background-color: #eee; border-color: #222277; }
+ #temakor li.sortable:nth-child(odd) span.handle { background-color: #aaa; border-color: #227722; }
+ #temakor li.sortable:nth-child(even) span.oraszam { background-color: #eee; border-color: #222277; }
+ #temakor li.sortable:nth-child(odd) span.oraszam { background-color: #aaa; border-color: #227722; }
+ #temakor li.sortable:nth-child(even) span.nagy { background-color: red; }
+ #temakor li.sortable:nth-child(odd) span.nagy { background-color: red; }
+
+ form.tanmenet input[type=submit] { width: 80%; margin: 10px 10%; text-align: center; }
+ form.tanmenet input[type=submit]:hover { background-color: rgb(20,40,60); color: white; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css
new file mode 100644
index 00000000..77d2c031
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/tanmenetTankor.css
@@ -0,0 +1,76 @@
+
+
+
+ table.tanmenet { margin: 10px auto; background-color: rgb(25,50,100); border-spacing: 1px; }
+ table.tanmenet td, table.tanmenet th { padding: 4px; }
+ table.tanmenet th { background-color: #336; color: white; }
+ table.tanmenet tr td { background-color: rgb(210,220,230); }
+ table.tanmenet tr:nth-child(even) td { background: #eee; }
+ table.tanmenet tr:nth-child(odd) td { background: white; }
+ table.tanmenet td.nev { font-weight: bold; }
+ table.tanmenet td.tanmenet { text-align: left; }
+ table.tanmenet td.tanmenet div { text-align: right; padding:4px; }
+
+ table.tanmenet td.tanmenet select { max-width:800px; }
+
+ table.tanmenet tr.uj td { background-color: orange; }
+ table.tanmenet tr.kesz td.tanmenet { background-color: yellow; }
+ table.tanmenet tr.jovahagyott td { background-color: lightgreen; }
+ table.tanmenet tr.publikus td.tanmenet { background-color: cornflowerblue; }
+ table.tanmenet tr.elavult td.tanmenet { background-color: lightgray; }
+
+/*
+ table.tanmenet td.tanmenet select.uj { background-color: #8f8; }
+ table.tanmenet td.tanmenet select.kesz { background-color: #88f; }
+ table.tanmenet td.tanmenet select.jovahagyott { background-color: #f88; }
+ table.tanmenet td.tanmenet select.publikus { background-color: #ff8; }
+ table.tanmenet td.tanmenet select.elavult { background-color: lightgray; }
+
+ table.tanmenet td.tanmenet select option { background-color: white; }
+ table.tanmenet td.tanmenet select option.uj { color: green; }
+ table.tanmenet td.tanmenet select option.kesz { color: blue; }
+ table.tanmenet td.tanmenet select option.jovahagyott { color: red; }
+ table.tanmenet td.tanmenet select option.publikus { color: yellow; }
+ table.tanmenet td.tanmenet select option.elavult { color: gray; }
+*/
+ table.tanmenet td.tanmenet input.info { }
+ table.tanmenet td.tanmenet input { }
+ table.tanmenet td.tanmenet input:hover { }
+
+ #infodiv {
+ padding: 0px; margin: 0px 10%; width: 80%; height: 500px; position: absolute; top: 80px;
+ opacity: 1; background-color: #eeeeee;
+ z-index: 200;
+ border: solid 1px #999999;
+ background-color: #eeeeee;
+ }
+
+ #infodivheader {
+
+ padding:5px;
+ margin-bottom:4px;
+ background-color: #5a85b8;
+ border-bottom: solid 1px #15477B ;
+ color: white;
+ font-weight: bold;
+ cursor: pointer;
+ }
+ #infodivclose {
+ margin-right: 10px;
+ cursor: pointer; border: #822 solid 1px; padding: 2px 5px; background: #822; color: white; font-weight: bold;
+ box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25); border-radius: 3px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+ }
+ #infodiv fieldset { margin-top:2px; background-color: #eeeeee; border: solid 1px rgb(50,60,70);}
+ #infodiv fieldset legend { text-align: right; background-color: yellow; margin:0px 10px; padding: 2px 10px; border: solid 1px rgb(40,60,80); }
+
+ #inform { overflow: scroll; height: 460px;}
+/* border-color: rgb(130,30,20) rgb(110,20,15) rgb(90,10,10) rgb(150,40,25); outset*/
+ #inform fieldset.alapadatok p { text-align: center; font-style: italic; }
+ #inform fieldset.alapadatok p span { color: rgb(100,50,25); font-weight: bold; font-style: normal; }
+
+ #inform #temakor { list-style-type: none; }
+ #inform #temakor li { margin-top: 10px; }
+ #inform #temakor span.oraszam { display: block; float: left; width: 120px; text-align: right; color: rgb(160,80,40); margin-right: 6px; }
+ #inform #temakor div.megnevezes { display: inline-block; font-style: normal; }
+
+ #inform p.kiemelt { text-align: center; margin-top: 100px; font-size: 20px; }
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css
new file mode 100644
index 00000000..c8a4f5dc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/tanmenet/ujTanmenet.css
@@ -0,0 +1,19 @@
+
+
+ div#ujTanmenet {
+ width:90%;
+ margin:auto;
+ }
+
+ div.tanmenetHeader {
+padding:5px;
+margin-bottom:0px;
+background-color: #5a85b8;
+border-bottom: solid 1px #15477B ;
+color: white;
+font-weight: bold;
+ }
+
+ form.tanmenet { background: #ddd; padding: 10px;margin:0px; border-width: 0px 1px 1px 1px; border-style: solid ; border-color:#366; }
+ form.tanmenet input[type=text] { width: 100%; }
+ form.tanmenet input[type=submit] { width: 80%; margin: 5px 10%; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/css/uzeno/uzeno.css b/mayor-orig/www/skin/classic/module-naplo/css/uzeno/uzeno.css
new file mode 100644
index 00000000..04d5ea37
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/css/uzeno/uzeno.css
@@ -0,0 +1,139 @@
+
+ table.uzeno, table.ujUzenet, table.egyUzenet {
+ width:90%;
+ background-color: #fff;
+ margin-top:1em;
+ margin-bottom:1em;
+ }
+ table.uzeno thead tr th, table.ujUzenet tr th {
+ color: white; border-bottom: solid 0px white;
+ background-color: #3f51b5;
+ padding:0.5em; font-weight: normal;
+ }
+ table.uzeno thead tr th a, table.ujUzenet tr th a { color:white; }
+
+ table.uzeno a { text-decoration: none; font-style:normal;}
+ table.uzeno a:hover { }
+
+ table.ujUzenet select { }
+ table.ujUzenet tr td { text-align: center }
+ table.ujUzenet textarea { width:98%; height: 100px; border: solid 1px rgb(100,100,90); background-color:#eeeeee; margin-bottom:10px;}
+ table.ujUzenet tr.admin td textarea { background-color: green; color: white; }
+
+ table.uzeno thead tr th.dt { width:30em; }
+ table.uzeno thead tr th.cimzett { width:30em; }
+
+ table.uzeno tfoot tr th, table.uzeno tfoot tr th a { color:white; }
+ table.uzeno tbody tr td { padding:0px 4px; background-color: #eee;}
+ table.uzeno tbody tr td div.nev--container { display:table-cell; vertical-align:middle; padding-left:2px; }
+
+ table.uzeno tbody tr td.felado { min-width:120px;}
+ table.uzeno tbody tr td.cimzett { min-width:120px;}
+ table.uzeno tbody tr td.uzenet { width:70%; padding:10px; }
+
+ table.uzeno tbody tr th { padding:0px 4px; text-align:left; font-weight: normal; }
+ table.uzeno tbody tr td.content { padding:10px; background-color:#eeeeee; }
+ table.uzeno tbody tr.uj td { background-color: #eeeeee; }
+ table.uzeno tbody tr.olvasott td { background-color: #dddddd;}
+ table.uzeno tbody tr td a { color: black; }
+ table.uzeno tbody tr td a:hover { color: rgb(100, 149, 237); }
+ table.uzeno tbody tr td.uzenet a { color: black; }
+ table.uzeno tbody tr td.uzenet:hover a { color: rgb(100,149,237); }
+
+ tr.diak th, select optgroup.diak { background-color: rgb(255, 140, 0);}
+ tr.tanar th, select optgroup.tanar { background-color: #88ccff;}
+ tr.szulo th, select optgroup.szulo { background-color: rgb(64, 224, 208);}
+
+ tr.diak.asterix th { background-color: #aaaaff;}
+ tr.tanar.asterix th { background-color: #aaaaff;}
+ tr.szulo.asterix th { background-color: #aaaaff;}
+
+ tr.munkakozosseg th, select optgroup.munkakozosseg { background-color: #99aacc;}
+ tr.tankor th, select optgroup.tankor { background-color: #aaccaa; }
+ tr.tankorSzulo th, select optgroup.tankorSzulo { background-color: #aacccc; }
+
+ tr.osztaly th, select optgroup.osztaly { background-color: #bbcc99; }
+ tr.osztalySzulo th, select optgroup.osztalySzulo { background-color: #bbcccc; }
+ tr.osztalyTanar th, select optgroup.osztalyTanar { background-color: rgb(140,200,100); }
+
+ span.dt { font-size: smaller; color: #888888; white-space:nowrap; }
+ a.more {
+ text-decoration: none;
+ margin:1px;
+ padding:1px;
+ }
+ a.more:hover { color:rgb(170, 204, 170); }
+
+/*
+ a.more.uj { background-color: #ffeeaa; }
+ a.more.olvasott { background-color: #bbcc99; }
+*/
+
+ table.uzeno tbody tr td.uzenoEszkozok { min-width: 40px; text-align:center; font-size:16px}
+ table.uzeno tbody tr td.uzenoEszkozok a { color:#aaa; text-decoration: none;}
+ table.uzeno tbody tr td.uzenoEszkozok a:hover { color: cornflowerblue; }
+ table.uzeno tbody tr td.uzenoEszkozok a.del:hover {color: red !important;}
+
+ table.lapozo { width: 80%; }
+ table.lapozo table { background-color: #cccccc; border: solid 1px #778890; font-size:14px;}
+ table.lapozo table th.title { background-color: navy; color: white; padding-left: 4px; padding-right:4px;}
+ table.lapozo table td { text-align: center; background-color: #eeeeee; }
+ table.lapozo table td.aktiv { background-color: #ffffff; font-weight: bold; }
+ table.lapozo table td.nav { background-color: #aaaaaa; }
+ table.lapozo a {color:black; text-decoration: none; }
+
+ form#uzenoKereso {
+ margin-bottom:100px;
+ }
+
+
+ form#uzenoKereso table tr td { color:;}
+ table.uzenetSzal { width:90%; background-color: rgb(50, 50, 100);}
+ table.uzenetSzal thead tr th { background-color: rgb(100, 149, 237); color:white; height:2em; border-bottom: solid 1px white; }
+
+ table.uzenetSzal tbody tr td { background-color: #eeeeee;}
+ table.uzenetSzal tbody tr td.uzenetDt { width:150px; font-weight:normal; text-align:center; }
+ table.uzenetSzal tbody tr td.uzenetSzerep { width:150px; font-weight: normal; text-align:left;}
+ table.uzenetSzal tbody tr td.uzenetSzerep a { color: black; }
+ table.uzenetSzal tbody tr td.uzenetSzerep a:hover { color: rgb(100,149,237); }
+ table.uzenetSzal tbody tr th.uzenet { width:80%; font-weight: normal;}
+
+ table.uzenetSzal tbody tr.uzenetSajat th { border-left:solid 2px rgb(100,149,237); border-right:solid 2px #dddddd;}
+ table.uzenetSzal tbody tr.uzenetPartner th { border-left: solid 2px #dddddd; border-right:solid 2px rgb(100,149,237);}
+
+ table.uzenetSzal tbody tr td.uzenet div {display: table-cell; padding:4px; border: solid 1px #aaaaaa;border-radius:2px; background-color: #f9f9f9; }
+ table.uzenetSzal tbody tr td.uzenet div:hover { background-color: #ffffff;}
+ table.uzenetSzal tbody tr td.uzenet div a { color: black; }
+ table.uzenetSzal tbody tr td.uzenet div a:hover { color: rgb(100,149,237); }
+
+ table.uzenetSzal tbody tr.uzenetPartner td.uzenet div { background-color: white; }
+
+/*
+ table.uzenetSzal tr td.uzenet div:before {
+ width: 0;
+ height: 0;
+ border-top: 5px solid transparent;
+ border-bottom: 5px solid transparent;
+ border-right: 5px solid blue;
+ content:"";
+ position:absolute;
+ display:block;
+ }
+*/
+
+ table.uzeno tbody tr td.uzenet a {
+ display: inline-block; overflow: hidden; max-width:200px; text-overflow: ellipsis; line-height: 1em;
+ }
+
+ a span.icon-network { color: #aaa; }
+ a:hover span.icon-network { color: cornflowerblue; }
+
+@media (max-width: 764px) {
+
+ table.uzeno tbody tr td.felado { min-width:80px;}
+ table.uzeno tbody tr td.cimzett { min-width:80px;}
+ table.uzeno tbody tr td.uzenet { width:90%; padding:4px; word-break:break-word;}
+
+ table.uzeno tbody tr td.uzenoEszkozok { min-width:50px; text-align:center; font-size:20px}
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/azonositok.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/azonositok.phtml
new file mode 100644
index 00000000..b529f995
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/azonositok.phtml
@@ -0,0 +1,95 @@
+<?php
+
+ function putCreateAzonositoForm($osztalyId, $osztalyTagok, $tanev=__TANEV, $Tagok) {
+
+ global $AUTH;
+
+ formBegin(array('class'=>'azonosito'));
+
+ echo '<input type="hidden" name="action" value="createAzonosito" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+ echo '<input type="hidden" name="createOu" value="'.intval(!is_array($ldapTagok)).'" />'."\n";
+
+ echo '<table>';
+ echo '<tr><th colspan="4">';
+ echo _JELSZO;
+ echo ' <input type="text" name="userPassword" value="" />'."\n";
+ echo '</th></tr>'."\n";
+
+ $CONTAINERS = $AUTH['private'][ $AUTH['private']['backend'].'Containers'];
+ if (isset($CONTAINERS) and is_array($CONTAINERS) and count($CONTAINERS) > 0) {
+ echo '<tr><th colspan="4">';
+ echo _CONTAINER;
+ echo '<select name="container">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($CONTAINERS);$i++) {
+ echo '<option value="'.$CONTAINERS[$i].'">'.$CONTAINERS[$i].'</option>';
+ }
+ echo '</select>';
+ echo '</th></tr>'."\n";
+ }
+
+ echo '<tr>';
+ echo '<th>'._NEV.'</th>'."\n";
+ echo '<th>'._OID.'</th>'."\n";
+ echo '<th>'._AZONOSITO.'</th>'."\n";
+ echo '<th>'._HASONLO_FELHASZNALOK.'</th>'."\n";
+ echo '</tr>';
+// for ($i = 0; $i < count($ldapTagok['oIdNelkuli']); $i++) {
+// echo '<tr>';
+// echo '<th></th>';
+// echo '<td>';
+// echo $ldapTagok['oIdNelkuli'][$i]['oId'];
+// echo '</td>';
+// echo '<td>';
+// echo $ldapTagok['oIdNelkuli'][$i]['dn'];
+// echo '</td>';
+// echo '</tr>'."\n";
+// }
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ echo '<tr>';
+ echo '<th>';
+ echo $osztalyTagok[$i]['diakNev'];
+ echo '</th>';
+ echo '<td>';
+ echo $osztalyTagok[$i]['oId'];
+ echo '</td>';
+
+ echo '<td>';
+ if (!isset($osztalyTagok[$i]['userAccount'])) {
+ if ($osztalyTagok[$i]['oId'] != '') {
+ echo '<input type="hidden" name="oId[]" value="'.$osztalyTagok[$i]['oId'].'" />'."\n";
+ echo '<input type="text" name="userAccount[]" value="'.$osztalyTagok[$i]['generatedAccount'].'" />'."\n";
+ } else {
+ echo _NINCS_OID;
+ }
+ } else {
+ echo $osztalyTagok[$i]['userAccount'];
+ if (__JELSZOGENERALAS === true && isset($Tagok[ $osztalyTagok[$i]['oId'] ]['userPassword']))
+ echo ' ('.$Tagok[ $osztalyTagok[$i]['oId'] ]['userPassword'].')';
+ }
+ echo '</td>';
+
+ if (is_array($osztalyTagok[$i]['studyIds'])) {
+ for ($j = 0; $j < count($osztalyTagok[$i]['userAccounts']); $j++)
+ $L[] = $osztalyTagok[$i]['userAccounts'][$j].' ('.$osztalyTagok[$i]['studyIds'][$j].')';
+ echo '<td class="azonosNev">'.implode(',', $L).'</td>'."\n";
+ } elseif (count($osztalyTagok[$i]['userAccounts']) > 0) {
+ echo '<td class="tobbszorosOid">'.implode(',', $osztalyTagok[$i]['userAccounts']).'</td>'."\n";
+ } else {
+ echo '<td></td>'."\n";
+ }
+
+ echo '</tr>'."\n";
+ }
+ echo '<tr>';
+ echo '<th colspan="4"><input type="submit" value="'._OK.'" /></th>';
+ echo '</tr>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/csoportok.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/csoportok.phtml
new file mode 100644
index 00000000..61c2d123
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/csoportok.phtml
@@ -0,0 +1,87 @@
+<?php
+
+ function putCsoportLista($Csoportok, $osztalyId, $csoportId) {
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ if ($csoportId != '') echo '<select name="csoportId" class="onChangeSubmit kiemelt" >'."\n";
+ else echo '<select name="csoportId" class="onChangeSubmit">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($csoportId => ' selected="selected" ');
+ for ($i = 0; $i < count($Csoportok); $i++) {
+ echo '<option value="'.$Csoportok[$i]['csoportId'].'"'.$SEL[$Csoportok[$i]['csoportId']].'>'.$Csoportok[$i]['csoportNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putUjCsoportForm($osztalyId, $Tankorok) {
+
+ formBegin(array('class'=>'csoport'));
+
+ echo '<h1>'._UJ_CSOPORT.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujCsoport" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<label for="csoportNev">'._CSOPORT_NEVE.': </label>';
+ echo '<input id="csoportNev" type="text" name="csoportNev" value="" />'."\n";
+
+ echo '<select name="tankorId[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ echo '<option value="'.$Tankorok[$i]['tankorId'].'">'.$Tankorok[$i]['tankorNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putCsoportModositoForm($csoportAdatok, $Tankorok, $osztalyId) {
+
+ formBegin(array('class'=>'csoport'));
+
+ echo '<h1>'._CSOPORT_MODOSITAS.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="csoportModositas" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="csoportId" value="'.$csoportAdatok['csoportId'].'" />'."\n";
+
+ echo '<label for="ujCsoportNev">'._CSOPORT_NEVE.': </label>';
+ echo '<input type="text" name="csoportNev" value="'.$csoportAdatok['csoportNev'].'" id="ujCsoportNev" />'."\n";
+ echo '<select name="tankorId[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($Tankorok); $i++) {
+ if (in_array($Tankorok[$i]['tankorId'],$csoportAdatok['tankorId']))
+ echo '<option value="'.$Tankorok[$i]['tankorId'].'" selected="selected">'.$Tankorok[$i]['tankorNev'].'</option>'."\n";
+ else
+ echo '<option value="'.$Tankorok[$i]['tankorId'].'">'.$Tankorok[$i]['tankorNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putCsoportTorlesForm($csoportId, $osztalyId) {
+
+ formBegin(array('class'=>'csoport'));
+
+ echo '<h1>'._CSOPORT_TORLESE.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="csoportTorlese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="csoportId" value="'.$csoportId.'" />'."\n";
+
+ echo '<input type="submit" value="'._TOROL.'" title="'._BIZTOS_E.'" class="confirm" />'."\n";
+
+ formEnd();
+
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml
new file mode 100644
index 00000000..cc97974a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/fillhaladasi.phtml
@@ -0,0 +1,12 @@
+<?php
+
+ function fillHaladasiForm($tolDt, $igDt) {
+ formBegin();
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />';
+ echo '<input type="hidden" name="igDt" value="'.$igDt.'" />';
+ echo '<input type="submit" name="action" value="ok" style="display:block; margin-left: auto; margin-right:auto; width:30%;" />';
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/import.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/import.phtml
new file mode 100644
index 00000000..4aa1f88c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/import.phtml
@@ -0,0 +1,5 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml
new file mode 100644
index 00000000..f70e7739
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/intezmenyek.phtml
@@ -0,0 +1,142 @@
+<?php
+
+ function putIntezmenyModositasForm($ADAT) {
+
+ $Intezmeny = $ADAT['intezmenyAdat'];
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._INTEZMENY_MODOSITAS.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="intezmenyModositas" />'."\n";
+
+ echo _OMKOD . ': <input type="text" name="OMKod" id="OMKod" value="'.$Intezmeny['OMKod'].'" maxlength="8" />'."\n";
+ echo _ROVIDNEV .': <input type="text" name="rovidNev" id="rovidNev" value="'.$Intezmeny['rovidNev'].'" readonly="readonly" />'."\n";
+ echo _NEV.': <input type="text" name="nev" id="nev" value="'.$Intezmeny['nev'].'" />'."\n";
+ echo _FENNTARTO.': ';
+ echo '<select name="fenntarto">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['fenntartok'] as $fenntarto) {
+ $SEL = ($Intezmeny['fenntarto']==$fenntarto?' selected="selected" ':'');
+ echo '<option value="'.$fenntarto.'"'.$SEL.'>'.$fenntarto.'</option>';
+ }
+ echo '</select>';
+ if ($Intezmeny['alapertelmezett'])
+ echo '<input type="checkbox" name="alapertelmezett" value="1" checked="checked" />' . _ALAPERTELMEZETT;
+ else
+ echo '<input type="checkbox" name="alapertelmezett" value="1" />' . _ALAPERTELMEZETT;
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ if (is_array($Intezmeny['telephely']) && count($Intezmeny['telephely']) > 0) {
+ for ($i = 0; $i < count($Intezmeny['telephely']); $i++) {
+
+ formBegin(array('class'=>'telephely'));
+
+ echo '<h2>'.($i+1).'. '._TELEPHELY_MODOSITAS.'</h2>'."\n";
+ echo '<input type="hidden" name="action" value="telephelyModositas" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$Intezmeny['telephely'][$i]['telephelyId'].'" />'."\n";
+
+ echo _TELEPHELYROVIDNEV .': <input type="text" name="telephelyRovidNev" id="telephelyRovidNev'.$i.'" value="'.$Intezmeny['telephely'][$i]['telephelyRovidNev'].'" />'."\n";
+ echo _TELEPHELYNEV.': <input type="text" name="telephelyNev" id="telephelyNev'.$i.'" value="'.$Intezmeny['telephely'][$i]['telephelyNev'].'" />'."\n";
+ if ($Intezmeny['telephely'][$i]['alapertelmezett'])
+ echo '<input type="checkbox" name="alapertelmezett" value="1" checked="checked" />' . _ALAPERTELMEZETT;
+ else
+ echo '<input type="checkbox" name="alapertelmezett" value="1" />' . _ALAPERTELMEZETT;
+ echo '<hr />';
+ echo _IRSZ . ': <input type="text" name="cimIrsz" value="'.$Intezmeny['telephely'][$i]['cimIrsz'].'" />'."\n";
+ echo _HELYSEG . ': <input type="text" name="cimHelyseg" value="'.$Intezmeny['telephely'][$i]['cimHelyseg'].'" />'."\n";
+ echo '<hr />'."\n";
+ echo _KOZTERULETNEV . ': <input type="text" name="cimKozteruletNev" value="'.$Intezmeny['telephely'][$i]['cimKozteruletNev'].'" />'."\n";
+ echo _KOZTERULETJELLEG . ': <input type="text" name="cimKozteruletJelleg" value="'.$Intezmeny['telephely'][$i]['cimKozteruletJelleg'].'" />'."\n";
+ echo _HAZSZAM . ': <input type="text" name="cimHazszam" value="'.$Intezmeny['telephely'][$i]['cimHazszam'].'" />'."\n";
+ echo '<hr />';
+ echo _TELEFON . ': <input type="text" name="telefon" value="'.$Intezmeny['telephely'][$i]['telefon'].'" />'."\n";
+ echo _FAX . ': <input type="text" name="fax" value="'.$Intezmeny['telephely'][$i]['fax'].'" />'."\n";
+ echo _EMAIL . ': <input type="text" name="email" value="'.$Intezmeny['telephely'][$i]['email'].'" />'."\n";
+ echo _HONLAP . ': <input type="text" name="honlap" value="'.$Intezmeny['telephely'][$i]['honlap'].'" />'."\n";
+
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+ }
+
+ formBegin(array('class'=>'ujTelephely'));
+
+ echo '<h2 class="ujTelephely">'._UJ_TELEPHELY.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujTelephely" />'."\n";
+
+ echo _TELEPHELYROVIDNEV .': <input type="text" name="telephelyRovidNev" id="telephelyRovidNevUj" value="" />'."\n";
+ echo _TELEPHELYNEV.': <input type="text" name="telephelyNev" id="telephelyNevUj" value="" />'."\n";
+ echo '<input type="checkbox" name="alapertelmezett" value="1" />' . _ALAPERTELMEZETT;
+ echo '<hr />';
+ echo _IRSZ . ': <input type="text" name="cimIrsz" value="" />'."\n";
+ echo _HELYSEG . ': <input type="text" name="cimHelyseg" value="" />'."\n";
+ echo '<hr />'."\n";
+ echo _KOZTERULETNEV . ': <input type="text" name="cimKozteruletNev" value="" />'."\n";
+ echo _KOZTERULETJELLEG . ': <input type="text" name="cimKozteruletJelleg" value="" />'."\n";
+ echo _HAZSZAM . ': <input type="text" name="cimHazszam" value="" />'."\n";
+ echo '<hr />';
+ echo _TELEFON . ': <input type="text" name="telefon" value="" />'."\n";
+ echo _FAX . ': <input type="text" name="fax" value="" />'."\n";
+ echo _EMAIL . ': <input type="text" name="email" value="" />'."\n";
+ echo _HONLAP . ': <input type="text" name="honlap" value="" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putIntezmenyTorlesForm($ADAT) {
+
+ $Intezmeny = $ADAT['intezmenyAdat'];
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._INTEZMENY_TORLES.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="intezmenyTorles" />'."\n";
+
+ echo '<p>Az adatbázisok törlése csak egy esetleges későbbi fejlesztés lesz. Egyelőre csak az
+ intézmények listájából törlünk. Az adatbázisokat kézzel kell törölni.</p>';
+ echo '<input type="checkbox" name="dbTorles" value="1" readonly />' . _ADATBAZISOK_TORLESE;
+
+ echo '<hr />'."\n";
+
+ echo 'rootUser: <input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo 'rootPassword: <input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._TORLES.'" />'."\n";
+
+ formEnd();
+ }
+
+ function putUjIntezmenyForm() {
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._UJ_INTEZMENY.'</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujIntezmeny" />'."\n";
+
+
+ echo _OMKOD . ': <input type="text" name="OMKod" id="OMKod" value="0000000" maxlength="7" />'."\n";
+ echo _ROVIDNEV .': <input type="text" name="rovidnev" id="rovidnev" />'."\n";
+ echo _NEV.': <input type="text" name="nev" id="nev" />'."\n";
+
+ echo '<hr />'."\n";
+
+ echo 'rootUser: <input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo 'rootPassword: <input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml
new file mode 100644
index 00000000..e9ffde6d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/rpcPrivilege.phtml
@@ -0,0 +1,72 @@
+<?php
+
+ function putAddNodeForm($ADAT) {
+ formBegin(array('id'=>'addNode'));
+ echo '<h3>'._UJ_VEGPONT.'</h3>';
+ echo '<input type="hidden" name="action" value="addNode" />';
+ echo '<p>';
+ echo '<select name="nodeId">';
+ foreach ($ADAT['nodes'] as $nodeId => $nAdat) {
+ echo '<option value="'.$nAdat[0]['nodeId'].'">'.$nAdat[0]['nev'].' - '.$nAdat[0]['cimHelyseg'].' ('.$nAdat[0]['nodeId'].')</option>';
+ }
+ echo '</select>';
+ echo '<br/>';
+ echo '<label for="userAccount">'._ACCOUNT.'</label>';
+ echo '<input type="text" id="userAccount" name="userAccount" value="" />';
+ echo '<br/>';
+ echo '<select name="OMKod">';
+ foreach ($ADAT['intezmenyek'] as $OMKod => $iAdat) {
+ echo '<option value="'.$iAdat[0]['OMKod'].'">'.$iAdat[0]['nev'].' - '.$iAdat[0]['cimHelyseg'].' ('.$iAdat[0]['OMKod'].')</option>';
+ }
+ echo '</select>';
+ echo '</p>';
+ echo '<input type="submit" value="'._ADD.'" />';
+ formEnd();
+ }
+
+ function putPrivilegesForm($ADAT) {
+ echo '<table id="privNodes">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._NODE.'</th>';
+ echo '<th>'._NODEID.'</th>';
+ echo '<th>'._INTEZMENY.'</th>';
+ echo '<th>'._OMKOD.'</th>';
+ echo '<th>'._ACCOUNT.'</th>';
+ echo '<th>'._PRIVS.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tbody>';
+ foreach ($ADAT['privs'] as $index => $pAdat) {
+ echo '<tr>';
+ echo '<td>'.$ADAT['nodes'][ $pAdat['nodeId'] ][0]['nev'].'</td>';
+ echo '<td>'.$pAdat['nodeId'].'</td>';
+ echo '<td>'.$ADAT['intezmenyek'][ $pAdat['OMKod'] ][0]['nev'].'</td>';
+ echo '<td>'.$pAdat['OMKod'].'</td>';
+ echo '<td>'.$pAdat['userAccount'].'</td>';
+ echo '<td>';
+ formBegin(array('id'=>'priv'));
+ echo '<input type="hidden" name="action" value="setPriv" />';
+ echo '<input type="hidden" name="nodeId" value="'.$pAdat['nodeId'].'" />';
+ echo '<input type="hidden" name="userAccount" value="'.$pAdat['userAccount'].'" />';
+ echo '<input type="hidden" name="OMKod" value="'.$pAdat['OMKod'].'" />';
+ $nPriv = explode(',',$pAdat['priv']);
+ foreach ($ADAT['privileges'] as $index => $priv) {
+ if (in_array($priv, $nPriv)) $CHK=' checked="checked" ';
+ else $CHK = '';
+ $id = 'n'.$pAdat['nodeId'].ekezettelen($pAdat['userAccount']).$pAdat['OMKod'].$index;
+ echo '<input id="'.$id.'" type="checkbox" name="priv[]" value="'.$priv.'"'.$CHK.' />';
+ echo '<label for="'.$id.'">'.$priv.'</label>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml
new file mode 100644
index 00000000..f7cff27b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/szemeszterek.phtml
@@ -0,0 +1,61 @@
+<?php
+
+ function putSzemeszterAdat($ADAT) {
+
+ $Sz = $ADAT['szemeszterAdat'];
+
+ formBegin(array('class'=>'szemeszter'));
+ echo '<input type="hidden" name="action" value="idoszakModositas" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$Sz['szemeszterId'].'" />'."\n";
+
+
+// echo '<h1>'.$Sz['tanev'].'/'.$Sz['szemeszter'].'('.$Sz['szemeszterId'].')</h1>'."\n";
+// echo '<p>'.$Sz['kezdesDt'].' - '.$Sz['zarasDt'].' ('.$Sz['statusz'].')</p>'."\n";
+ echo '<h2>'._IDOSZAKOK.'</h2>';
+ echo '<table align="center" cellpadding="1" cellspacing="1">';
+ for ($i = 0; $i < count($Sz['idoszak']); $i++) {
+
+ echo '<tr>';
+ echo '<td><input id="t'.$i.'" type="checkbox" name="torlendo[]" value="'.$Sz['idoszak'][$i]['idoszakId'].'" title="'._TORLENDO.'" /></td>'."\n";
+ echo '<td><input type="hidden" name="idoszakId[]" value="'.$Sz['idoszak'][$i]['idoszakId'].'" />'."\n";
+ echo '<label for="t'.$i.'">'.$Sz['idoszak'][$i]['tipus'].':</label></td>';
+ echo '<td><input type="text" name="tolDt[]" value="'.$Sz['idoszak'][$i]['tolDt'].'" class="datetime txt" /></td>'."\n";
+ echo '<td><input type="text" name="igDt[]" value="'.$Sz['idoszak'][$i]['igDt'].'" class="datetime txt" /></td>'."\n";
+ echo '</tr>'."\n";
+
+ }
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="'._TORLES.'" />'."\n";
+
+ formEnd();
+ }
+
+ function putUjIdoszak($szemeszterId, $idoszakTipusok) {
+
+ formBegin(array('class'=>'szemeszter'));
+
+ echo '<input type="hidden" name="action" value="ujIdoszak" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$szemeszterId.'" />'."\n";
+
+ echo '<h2>'._UJ_IDOSZAK.'</h2>';
+
+ echo '<label for="tolDt">'._TOLDT.'</label>'."\n";
+ echo '<input class="datetime" type="text" name="tolDt" id="tolDt" value="" />'."\n";
+ echo '<label for="igDt">'._IGDT.'</label>'."\n";
+ echo '<input class="datetime" type="text" name="igDt" id="igDt" value="" />'."\n";
+ echo '<label for="tipus">'._TIPUS.'</label>'."\n";
+ echo '<select name="tipus" id="tipus">'."\n";
+ for ($i = 0; $i < count($idoszakTipusok); $i++) {
+ echo '<option value="'.$idoszakTipusok[$i].'">'.$idoszakTipusok[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml
new file mode 100644
index 00000000..650afce6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/szuloiAzonositok.phtml
@@ -0,0 +1,113 @@
+<?php
+
+ function putCreateAzonositoForm($osztalyId, $osztalyTagok, $tanev=__TANEV, $Tagok) {
+
+ global $AUTH;
+
+ formBegin(array('class'=>'azonosito'));
+
+ echo '<input type="hidden" name="action" value="createAzonosito" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<table>';
+ echo '<tr><th colspan="9">';
+ echo _JELSZO;
+ echo ' <input type="text" name="userPassword" value="" />'."\n";
+ echo '</th></tr>'."\n";
+
+ $CONTAINERS = $AUTH['parent'][ $AUTH['private']['backend'].'Containers'];
+ if (isset($CONTAINERS) and is_array($CONTAINERS) and count($CONTAINERS) > 0) {
+ echo '<tr><th colspan="4">';
+ echo _CONTAINER;
+ echo '<select name="container">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($CONTAINERS);$i++) {
+ echo '<option value="'.$CONTAINERS[$i].'">'.$CONTAINERS[$i].'</option>';
+ }
+ echo '</select>';
+ echo '</th></tr>'."\n";
+ }
+
+ echo '<tr>';
+ echo '<th>'._NEV.'</th>'."\n";
+
+ echo '<th>'._ANYANEV.'</th>'."\n";
+ echo '<th>'._ANYAAZONOSITO.'</th>'."\n";
+ echo '<th>'._ANYA_FELHASZNALO.'</th>'."\n";
+ echo '<th>'._ANYA_HASONLO_NEV.'</th>'."\n";
+
+ echo '<th>'._APANEV.'</th>'."\n";
+ echo '<th>'._APAAZONOSITO.'</th>'."\n";
+ echo '<th>'._APA_FELHASZNALO.'</th>'."\n";
+ echo '<th>'._APA_HASONLO_NEV.'</th>'."\n";
+
+ echo '</tr>';
+ for ($i = 0; $i < count($osztalyTagok); $i++) {
+ echo '<tr>';
+
+ echo '<th>';
+ echo $osztalyTagok[$i]['diakNev'];
+ echo '</th>';
+ foreach (array('anya','apa') as $szulo) {
+ if ($osztalyTagok[$i][$szulo]['szuloNev'] == '') {
+ echo '<td></td><td></td><td></td><td></td>';
+ continue;
+ }
+ echo '<td class="'.$szulo.'">';
+ echo $osztalyTagok[$i][$szulo]['szuloNev'];
+
+ echo '</td>';
+ echo '<td class="'.$szulo.'">';
+ if ($osztalyTagok[$i][$szulo]['statusz'] == 'elhunyt') { // elhunyt státuszú a szülő
+ echo '<span class="elhunyt">'._ELHUNYT.'</span>';
+ } elseif (!isset($osztalyTagok[$i][$szulo.'Account'])) { // Ha nem találtunk létező $szulo.Account-ot
+ // ez kellene, hogy a szulő táblát módosítsuk...
+ echo '<input type="hidden" name="szuloId[]" value="'.$osztalyTagok[$i][$szulo.'Id'].'" />'."\n";
+ if ($osztalyTagok[$i][$szulo]['userAccount'] != '') { // de a szulő táblában be van írva
+ echo '<input type="text" name="userAccount[]" value="'.$osztalyTagok[$i][$szulo]['userAccount'].'" />'."\n";
+ } else {
+ echo '<input type="text" name="userAccount[]" value="'.$osztalyTagok[$i][$szulo.'GeneratedAccount'].'" />'."\n";
+ }
+ // generált jelszó
+ echo '<br />('.$osztalyTagok[$i][$szulo]['userPassword'].')';
+ } else {
+ if (false && $osztalyTagok[$i][$szulo]['email'] != '') { // nem megvalósított funkció...
+ echo '<div style="float: right; display: inline-block; width: 50px; font-size: 1.5em; margin: -4px -16px 0 0; padding: 0;">';
+ echo '&#009993;';
+ echo '<input type="checkbox" name="mailto[]" title="'.$osztalyTagok[$i][$szulo]['email'].'" value="'.$osztalyTagok[$i][$szulo.'Id'].'" />';
+ echo '</div>';
+ }
+ echo $osztalyTagok[$i][$szulo]['userAccount'];
+ // generált jelszó
+ echo '<br />('.$osztalyTagok[$i][$szulo]['userPassword'].')';
+ }
+ echo '</td>';
+
+ echo '<td class="'.$szulo.'">';
+ if (isset($osztalyTagok[$i][$szulo.'Account'])) { // Ha találtunk létező $szulo.Account-ot
+ echo $osztalyTagok[$i][$szulo.'UserCn'];
+ }
+ echo '</td>';
+
+ if (is_array($osztalyTagok[$i][$szulo.'Cns'])) {
+ $L = array();
+ for ($j = 0; $j < count($osztalyTagok[$i][$szulo.'Cns']); $j++)
+ $L[] = $osztalyTagok[$i][$szulo.'Cns'][$j].' ('.$osztalyTagok[$i][$szulo.'Accounts'][$j].')';
+ echo '<td class="azonosNev">'.implode(',<br />', $L).'</td>'."\n";
+ } else {
+ echo '<td></td>'."\n";
+ }
+ } // anya / apa
+ echo '</tr>'."\n";
+ }
+ echo '<tr>';
+ echo '<th colspan="9"><input type="submit" value="'._OK.'" /></th>';
+ echo '</tr>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/tanevek.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/tanevek.phtml
new file mode 100644
index 00000000..ba77f647
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/tanevek.phtml
@@ -0,0 +1,165 @@
+<?php
+
+ function putUjTanevForm() {
+
+ $SZEMESZTER_STATUSZ = Array('aktív','tervezett');
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<h2>'._UJ_TANEV.'</h2>'."\n";
+
+ echo '<div class="data">';
+
+ echo '<input type="hidden" name="action" value="ujTanev" />'."\n";
+
+ //szemeszter: tanev, sorszám, status (aktív, lezárt, új, tervezett), kezdete, vége
+
+ echo _TANEV_JELE . ': <input type="text" name="ujTanev" id="tanev" value="" maxlength="4" size="4" />'."\n";
+ echo '<hr />'."\n";
+
+ for ( $i = 1; $i <= 2; $i++ ) {
+ echo $i .'. ' . _SZEMESZTER . ":";
+ echo '<input type="hidden" name="szemeszter[]" value="'.$i.'" />'."\n";
+ echo '<input class="date" type="text" name="kezdesDt[]" value="" maxlength="10" size="10" /> - '."\n";
+ echo '<input class="date" type="text" name="zarasDt[]" value="" maxlength="10" size="10" />'."\n";
+ echo ' ('._TERVEZETT.')';
+ echo '<br/>';
+
+// echo '<select name="statusz[]">';
+// foreach($SZEMESZTER_STATUSZ as $key => $statusz) {
+// echo '<option value="'.$statusz.'">'.$statusz.'</option>';
+// }
+// echo '</select>';
+ }
+
+ echo '<hr />'."\n";
+
+// echo 'rootUser: <input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+// echo 'rootPassword: <input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ echo '</div>';
+ formEnd();
+
+ }
+
+ function putTanevSzemeszterekForm($Szemeszterek) {
+
+ global $tanev;
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<input type="hidden" name="action" value="szemeszterTorles" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<h2>'._TANEV_SZEMESZTEREI.'</h2>'."\n";
+
+ echo '<div class="data">'."\n";
+
+ for ($i = 0; $i < count($Szemeszterek); $i++) {
+ $Sz = $Szemeszterek[$i];
+ echo '<input type="checkbox" name="szemeszterId[]" value="'.$Sz['szemeszterId'].'">';
+ echo $Sz['szemeszter'].'. '._SZEMESZTER.': ';
+ echo '<input type="text" name="kezdesDt[]" value="'.$Sz['kezdesDt'].'" title="'._KEZDESDT.'" maxlength="10" class="date" />'."\n";
+ echo ' - ';
+ echo '<input type="text" name="zarasDt[]" value="'.$Sz['zarasDt'].'" title="'._ZARASDT.'" maxlength="10" class="date" />'."\n";
+ echo ' ('.$Sz['statusz'].')<br />'."\n";
+ }
+ echo '<input type="submit" value="'._TOROL.'" />'."\n";
+
+ echo '</div>'."\n";
+ formEnd();
+
+ }
+
+ function putTanevAktivalForm( $tanev ) {
+
+ if ($tanev=='') return false;
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<input type="hidden" name="action" value="tanevAktival" />'."\n";
+
+ echo '<h2>'._TANEV_AKTIVALAS.'</h2>'."\n";
+
+ echo '<div class="data">'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'"/>';
+ echo '<label for="rootUser">rootUser:</label><input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo '<label for="rootPassword">rootPassword:</label><input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+
+ echo '<input type="submit" value="'._AKTIVAL.'" />'."\n";
+
+ echo '</div>';
+ formEnd();
+ }
+
+ function putTanevLezarasForm( $ADAT ) {
+
+ formBegin(array('class'=>'intezmeny'));
+
+ echo '<input type="hidden" name="action" value="tanevLezar" />'."\n";
+
+ echo '<h2>'._TANEV_LEZARAS.'</h2>'."\n";
+
+ echo '<div class="data">'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'"/>';
+
+ echo '<p>'._TAJEKOZTATO.'</p>';
+
+ echo '<label for="tanevZarasDt">'._TANEV_ZARASDT.'</label>'."\n";
+ echo '<input id="tanevZarasDt" type="text" name="dt" value="'.$ADAT['dt'].'" title="'._TANEV_ZARASDT.'" maxlength="10" class="date" />'."\n";
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosJogviszonyLezaras" id="vjl" /> ';
+ echo '<label for="vjl">'._VEGZOSOK_JOGVISZONYANAK_LEZARASA.'</label>'."\n";
+ echo '</h3>';
+ echo '<p>';
+ for ($i = 0; $i < count($ADAT['vegzoOsztalyok']); $i++) {
+ echo '<input id="vjl'.$i.'" type="checkbox" name="vjlOsztaly[]" value="'.$ADAT['vegzoOsztalyok'][$i]['osztalyId'].'" />';
+ echo '<label for="vjl'.$i.'">'.$ADAT['vegzoOsztalyok'][$i]['osztalyJel'].'</label>'."\n";
+ }
+ echo '</p>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosOsztalyokLezarasa" id="vol" /> ';
+ echo '<label for="vol">'._VEGZOS_OSZTALYOK_LEZARASA.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosAzonositokTorlese" id="vat" /> ';
+ echo '<label for="vat">'._VEGZOSOK_AZONOSITOINAK_TORLESE.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="vegzosSzuloAzonositokTorlese" id="vszat" /> ';
+ echo '<label for="vszat">'._VEGZOSOK_SZULOI_AZONOSITOINAK_TORLESE.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<fieldset>';
+ echo '<h3>';
+ echo '<input type="checkbox" name="step[]" value="tanevLezaras" id="tl" /> ';
+ echo '<label for="tl">'._TANEV_LEZARAS.'</label>'."\n";
+ echo '</h3>';
+ echo '</fieldset>';
+
+ echo '<p>';
+ echo '<label for="rootUser">rootUser:</label><input type="text" name="rootUser" id="rootUser" value="root" />'."\n";
+ echo '<label for="rootPassword">rootPassword:</label><input type="password" name="rootPassword" id="rootPassword" value="" />'."\n";
+ echo '</p>'."\n";
+
+ echo '<input type="submit" value="'._LEZAR.'" />'."\n";
+ echo '</div>';
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/admin/tankorok.phtml b/mayor-orig/www/skin/classic/module-naplo/html/admin/tankorok.phtml
new file mode 100644
index 00000000..4aa1f88c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/admin/tankorok.phtml
@@ -0,0 +1,5 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/base.phtml b/mayor-orig/www/skin/classic/module-naplo/html/base.phtml
new file mode 100644
index 00000000..f8200b8c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/base.phtml
@@ -0,0 +1,1230 @@
+<?php
+
+ if (_RIGHTS_OK !== true) die();
+
+ require_once('include/share/date/names.php');
+
+ if (_RUNLEVEL!=='cron') putEszkozSor();
+
+ function putUjIntezmeny() {
+
+ formBegin();
+ echo ' <input type="hidden" name="action" value="ujIntezmeny" />
+
+ _OMKOD(max7): <input type="text" name="OMKod" id="OMKod" value="0000000" maxlength="7" />
+ _ROVIDNEV(sql): <input type="text" name="rovidnev" id="rovidnev" />
+ _NEV: <input type="text" name="nev" id="nev" />
+
+ <input type="submit" />
+ ';
+ formEnd();
+
+ }
+
+ function putEszkozSor() {
+
+ global $TOOL,$policy;
+
+ if (__NOPAGEHELP!==true && (defined('__PAGEHELP') || isset($TOOL['pageHelp']) && defined('__'.$TOOL['pageHelp']))) $showHelp = true;
+ else $showHelp=false;
+
+ $colspan=3;
+
+ $_diakId = readVariable($_POST['diakId'],'id',readVariable($_GET['diakId'],'id',(defined('__USERDIAKID')?__USERDIAKID:null)));
+ $_tanarId = readVariable($_POST['tanarId'],'id',readVariable($_GET['tanarId'],'id',(defined('__USERTANARID')?__USERTANARID:null)));
+ $_tankorId = readVariable($_POST['tankorId'],'id',readVariable($_GET['tankorId'],'id',(null)));
+
+ echo '<table align="center" cellspacing="0" class="toolBar hideShowContainer"><tr class="first">';
+ if (is_array($TOOL['vissza'])) {
+ echo '<th style="width:32px;">';
+ putToolFormStart('vissza', '');
+ echo '<button type="submit" class="toolBarLeft icon-'.$TOOL['vissza']['icon'].'"></button>';
+ putToolFormStop(false, "");
+
+ echo '</th>';
+ $colspan++;
+ }
+
+ echo '<td class="toolBarTitle" id="toolBarTitle" colspan="3">';
+ if (defined('__PAGETITLE')) echo __PAGETITLE.'<br/>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=valtas').'">';
+ if (defined('__TELEPHELYID')) echo '<span id="toolBarIntezmeny" title="TelephelyId:".'.__TELEPHELYID.'>'.__INTEZMENY .', ' . __TANEV.'/'.(__TANEV+1).'</span>';
+ else echo '<span id="toolBarIntezmeny">'.__INTEZMENY . '/' . __TANEV.'</span>';
+ echo '</a>';
+ if ($showHelp) echo '<span id="toolBarHelpButton" class="onClickHideShow">?</span>';
+ echo '</td>'."\n";
+ reset($TOOL);
+ // TESZT echo '<td class="toolBarTool cella" style="position:; vertical-align:top; background-color: #5A85B8">';
+ // echo '<div class="icon-search" style="color:white; font-size:30px;max-width:30px;"></div>';
+ // echo '</td>';
+ foreach ( $TOOL as $tool => $params ) {
+// if ( function_exists( $func = "put$tool" ) && $params['tipus']=='cella') {
+ if ( isset($params['tipus']) && $params['tipus']=='cella') {
+ if (isset($params['title'])) $title = '__'.$params['title'];
+ else $title = '__'.nagybetus($tool).'TITLE';
+
+ echo '<td class="toolBarTool cella" style="position:; vertical-align:top">';
+ echo '<table style="/*border-bottom:solid 1px #558;*/" >'."\n";
+ if (defined($title)) {
+ echo '<tr><th>';
+ echo constant($title);
+ echo '</th><th>';
+ if ($GLOBALS['skin'] != 'vakbarat') echo '<button type="button" value="x" class="toolBarClear"><span class="icon-remove-circle"></span></button>';
+ echo '</th></tr>'."\n";
+ }
+ echo '<tr><td colspan="2">'."\n";
+ $func = "put$tool";
+ if (function_exists( $func )) { $func(); }
+ else { putGeneralSelect($tool); }
+ echo '</td></tr>'."\n";
+ echo '</table>'."\n";
+
+ echo '</td>'."\n";
+ $colspan++;
+ } elseif (isset($params['tipus']) && $params['tipus'] == 'sor') { $sorDb++; }
+ }
+
+ if (__PAGE_PRESET===true) {
+ echo '<th>';
+
+ putToolFormStart('preSetSave', '');
+ echo '<button type="submit" class="icon-heart-alt toolBarBtn"></button>';
+ echo '<input type="hidden" name="preSetSave" value="1" />';
+ putPostParams($TOOL['general']['post']);
+ putToolFormStop(false, "");
+
+ putToolFormStart('preSetLoad', '');
+ echo '<button type="submit" class="icon-reverse-alt toolBarBtn"></button>';
+ echo '<input type="hidden" name="preSetLoad" value="1" />';
+ // putPostParams($TOOL['general']['post']);
+ putToolFormStop(false, "");
+
+ echo '</th>';
+ }
+ if ($_diakId>0 && _POLICY=='private') {
+ echo '<td class="szemely diakNev" data-diakid="'.$_diakId.'">';
+ echo '<span class="icon-child" data-diakid="'.$_diakId.'"></span>'; // itt is kell a data...
+ echo '</td>'."\n";
+ } elseif ($_tanarId>0 && _POLICY=='private') {
+ echo '<td class="szemely tanarNev" data-tanarid="'.$_tanarId.'">';
+ echo '<span class="icon-adult" data-tanarid="'.$_tanarId.'"></span>'; // itt is kell a data...
+ echo '</td>'."\n";
+ }
+ if ($_tankorId>0 && _POLICY=='private') { //--TODO css class szemely->csoport
+ echo '<td class="szemely tankorAdat" data-tankorid="'.$_tankorId.'">';
+ echo '<span class="icon-group" data-tankorid="'.$_tankorId.'"></span>';
+ echo '</td>'."\n";
+ }
+ echo '<td id="toolBarKerelem">';
+ //echo '<div id="toolBarHamburgerVezerlo" style="height:100%; padding:4px; font-size:20px;">';
+ // echo '<span class="icon-th-list"></span>';
+ //echo '</div>';
+ if ($policy!='public') {
+ $href = href('index.php?page=naplo&sub=hibabejelento&f=hibabejelento');
+ echo '<a href="'.$href.'" class="noprint">';
+ //echo '<img src="skin/classic/module-naplo/img/hibabejelento/buggie.gif" alt="'._HIBABEJELENTES.'" />';
+ echo '<img src="skin/classic/module-naplo/img/hibabejelento/buggie.svg" style="height:34px;" alt="'._HIBABEJELENTES.'" id="mayorBuggie" />';
+ echo '</a>';
+ }
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ if (__NOPAGEHELP!==true) {
+ if (isset($TOOL['pageHelp']) && defined('__'.$TOOL['pageHelp']))
+ echo '<tr><td colspan="'.$colspan.'" class="help openable" style="display:none">'.constant('__'.$TOOL['pageHelp']).'</td></tr>'."\n";
+ elseif (defined('__PAGEHELP'))
+ echo '<tr><td colspan="'.$colspan.'" class="help openable" style="display:none">'.__PAGEHELP.'</td></tr>'."\n";
+ }
+
+ reset($TOOL);
+ foreach ( $TOOL as $tool => $params ) {
+ if ( function_exists( $func = "put$tool" ) && $params['tipus']=='sor') {
+ echo '<tr><td colspan="'.($colspan).'">';
+
+ echo '<table align="center" cellspacing="0"><tr>';
+ if (isset($params['title'])) $title = '__'.$params['title'];
+ else $title = '__'.nagybetus($tool).'TITLE';
+ if (defined($title)) echo '<th class="toolBarTool">'.constant($title).'</th>'."\n";
+
+ echo '<td class="toolBarTool sor">';
+ $func();
+ echo '</td></tr></table>';
+ echo '</td></tr>';
+ }
+ }
+ echo '</table>';
+
+ }
+
+ function putPostParams($postParams, $postOverride=array()) {
+
+ if (is_array($postParams))
+ for ($i = 0; $i < count($postParams); $i++) {
+ $postParam = $postParams[$i];
+ if (is_array($_POST[$postParam])) {
+ for ($j = 0; $j < count($_POST[$postParam]); $j++) {
+ echo '<input type="hidden" name="'.$postParam.'[]" value="'.str_replace('"', '', $_POST[$postParam][$j]).'" />'."\n";
+ }
+ } else {
+ echo '<input type="hidden" name="'.$postParam.'" value="'.str_replace('"', '', $_POST[$postParam]).'" />'."\n";
+ }
+ }
+ if (is_array($postOverride) && count($postOverride)>=1) {
+ foreach($postOverride as $_k => $_v)
+ echo '<input type="hidden" name="'.$_k.'" value="'.str_replace('"', '', $_v).'" />'."\n";
+ }
+ }
+
+ function setParam($toolName, $paramName) {
+
+ global $TOOL;
+
+ if (isset($TOOL[$toolName]['paramName'])) $paramName = $TOOL[$toolName]['paramName'];
+ else $TOOL[$toolName]['paramName'] = $paramName;
+ global $$paramName;
+
+ $TOOL[$toolName]['paramValue'] = ($$paramName != '' || $$paramName === 0) ? $$paramName : $TOOL[$toolName][$paramName];
+
+ }
+
+ function putToolFormStart($toolName, $paramName, $_action='') {
+
+ global $TOOL;
+ //if (!isset($_action))
+ $_action = href('index.php',array('page','sub','f','lang','skin','sessionID','policy'));
+ setParam($toolName, $paramName);
+ formBegin(array('id' => $toolName.'Tool', 'method' => 'post', 'action'=> $_action));
+ if (isset($TOOL[$toolName]['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL[$toolName]['action'].'" />'."\n";
+ putPostParams($TOOL[$toolName]['post'],$TOOL[$toolName]['postOverride']);
+ echo '<table><tr><td>'."\n";
+
+ }
+
+ function putToolFormStop($putSubmitButton=true, $putTextButton="") {
+
+ echo '</td>';
+ if ($putSubmitButton===true) {
+ echo '<td class="sbmt">'."\n";
+// echo '<input style="float: right; height:17px; width:17px;" class="toolSubmit" type="image" name="kiválaszt" value="kiválaszt" src="skin/classic/module-naplo/img/toolSubmit.png" />'."\n";
+ if ($GLOBALS['skin'] != 'vakbarat')
+ echo '<button type="submit" class="toolSubmit" value=""><span class="icon-ok"></span></button>';
+ else echo '<input type="submit" class="toolSubmit" name="kivalaszt" value="kiválaszt" />';
+ echo '</td>';
+ }
+ if ($putTextButton!='') {
+ echo '<td>'."\n";
+ echo '<input style="float: right;" class="toolSubmit" type="button" name="" value="'.$putTextButton.'" />'."\n";
+ echo '</td>';
+ }
+ echo '</tr></table>'."\n";
+ formEnd();
+ }
+
+ /* Toolok */
+
+ function putGeneralSelect($tool) {
+
+ global $TOOL;
+
+ putToolFormStart($tool, $TOOL[$tool]['paramName']);
+
+ echo '<select name="'.$TOOL[$tool]['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL[$tool]['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL[$tool]['adatok']); $i++) {
+ $M = $TOOL[$tool]['adatok'][$i];
+ $id = $M[ $TOOL[$tool]['paramName'] ];
+ $nev = $M[ $TOOL[$tool]['paramDesc'] ];
+ echo '<option value="'.$id.'"'.$SEL[$id].'>'.htmlspecialchars($nev);
+ if ($id != $nev) echo ' ('.$id.')';
+ echo '</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putSzamSelect() {
+
+ global $TOOL;
+ putToolFormStart('szamSelect', 'szam');
+ echo '<select name="'.$TOOL['szamSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['szamSelect']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['szamSelect']['szamok'] as $_szam) {
+ echo '<option value="'.$_szam.'"'.$SEL[$_szam].'>'.$_szam.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putIntezmenySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('intezmenySelect', 'intezmeny');
+ echo '<select name="'.$TOOL['intezmenySelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['intezmenySelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['intezmenySelect']['intezmenyek']); $i++) {
+ $I = $TOOL['intezmenySelect']['intezmenyek'][$i];
+ echo '<option value="'.$I['rovidNev'].'"'.$SEL[$I['rovidNev']].'>'.htmlspecialchars($I['nev']).' ('.$I['OMKod'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTelephelySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('telephelySelect', 'telephelyId');
+ echo '<select name="'.$TOOL['telephelySelect']['paramName'].'" class="onChangeSubmit" style="width:50px">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['telephelySelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['telephelySelect']['telephelyek']); $i++) {
+ $I = $TOOL['telephelySelect']['telephelyek'][$i];
+ echo '<option value="'.$I['telephelyId'].'"'.$SEL[$I['telephelyId']].'>'.$I['telephelyRovidNev'].' ('.htmlspecialchars($I['telephelyNev']).')</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTanevSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('tanevSelect', 'tanev');
+ echo '<select name="'.$TOOL['tanevSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['tanevSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tanevSelect']['tanevek']); $i++) {
+ $T = $TOOL['tanevSelect']['tanevek'][$i];
+ echo '<option value="'.$T.'"'.$SEL[$T].'>'.$T.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putSzemeszterSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('szemeszterSelect', 'szemeszterId');
+ echo '<select name="'.$TOOL['szemeszterSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array( $TOOL['szemeszterSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['szemeszterSelect']['szemeszterek']); $i++) {
+ $T = $TOOL['szemeszterSelect']['szemeszterek'][$i];
+ echo '<option value="'.$T['szemeszterId'].'"'.$SEL[$T['szemeszterId']].'>'.$T['tanev'].' / '.$T['szemeszter'].'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putFelevSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('felevSelect', 'szemeszter');
+ echo '<select name="'.$TOOL['felevSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array( $TOOL['felevSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 1; $i <= 2 ; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTargySorrendSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('targySorrendSelect', 'sorrendNev');
+ echo '<select name="'.$TOOL['targySorrendSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array( $TOOL['targySorrendSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['targySorrendSelect']['sorrendNevek']); $i++) {
+ $T = $TOOL['targySorrendSelect']['sorrendNevek'][$i];
+ echo '<option value="'.$T.'"'.$SEL[$T].'>'.$T.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putMunkakozossegSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('munkakozossegSelect', 'mkId');
+ echo '<select name="'.$TOOL['munkakozossegSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['munkakozossegSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['munkakozossegSelect']['munkakozossegek']); $i++) {
+ $M = $TOOL['munkakozossegSelect']['munkakozossegek'][$i];
+ echo '<option value="'.$M['mkId'].'"'.$SEL[$M['mkId']].'>'.$M['leiras'];
+ if ($M['mkVezNev']!='') echo ' ('.htmlspecialchars($M['mkVezNev']).') ';
+ echo '</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTargySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('targySelect', 'targyId');
+ echo '<select name="'.$TOOL['targySelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['targySelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['targySelect']['targyak']); $i++) {
+ $M = $TOOL['targySelect']['targyak'][$i];
+ echo '<option value="'.$M['targyId'].'"'.$SEL[$M['targyId']].'>'.htmlspecialchars($M['targyNev']).' ('.$M['targyId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putMunkatervSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('munkatervSelect', 'munkatervId');
+ echo '<select name="'.$TOOL['munkatervSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['munkatervSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['munkatervSelect']['munkatervek']); $i++) {
+ $M = $TOOL['munkatervSelect']['munkatervek'][$i];
+ echo '<option value="'.$M['munkatervId'].'"'.$SEL[$M['munkatervId']].'>'.htmlspecialchars($M['munkatervNev']).' ('.$M['munkatervId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTanarSelect() {
+
+ global $TOOL;
+ $StatuszJel = array(
+ 'jogviszonya lezárva' => ' [-]',
+ 'tartósan távol' => ' [t]',
+ 'külső óraadó' => ' [k]'
+ );
+
+ putToolFormStart('tanarSelect', 'tanarId');
+ echo '<select name="'.$TOOL['tanarSelect']['paramName'].'" class="onChangeSubmit" accesskey="t">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['tanarSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tanarSelect']['tanarok']); $i++) {
+ $M = $TOOL['tanarSelect']['tanarok'][$i];
+// echo '<option value="'.$M['tanarId'].'"'.$SEL[$M['tanarId']].'>'.(($M['aktualisStatusz'] == 'jogviszonyban van')?'':'[-] ').htmlspecialchars($M['tanarNev']).' ('.$M['tanarId'].')'.'</option>';
+ echo '<option value="'.$M['tanarId'].'"'.$SEL[$M['tanarId']].'>'.htmlspecialchars($M['tanarNev']).' ('.$M['tanarId'].')'.$StatuszJel[$M['statusz']].'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putDiakSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('diakSelect', 'diakId');
+
+ if ($TOOL['diakSelect']['searchable']==true && $TOOL['diakSelect']['paramValue']=='' && count($TOOL['diakSelect']['diakok'])>100) {
+ echo '<span style="display:none" id="diakSelectIcon">ዖ</span>';
+ echo '<input type="text" name="diakSelectPattern" id="diakSelectPattern" value="" placeholder="'._NEV.'" />';
+ echo '<select style="display:none" id="diakSelectLista" name="'.$TOOL['diakSelect']['paramName'].'" class="onChangeSubmit" accesskey="d">';
+ echo '<option value=""></option>';
+ echo '</select>';
+ } else {
+ echo '<span style="display:inline" id="diakSelectIcon" class="icon-view-mode"></span>'; //ዖ
+ echo '<input style="display:none;" type="text" name="diakSelectPattern" id="diakSelectPattern" value="" placeholder="'._NEV.'"/>';
+ echo '<select id="diakSelectLista" name="'.$TOOL['diakSelect']['paramName'].'" class="onChangeSubmit" accesskey="d">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['diakSelect']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['diakSelect']['statusz'] as $statusz) {
+ if (count($TOOL['diakSelect']['statusz']) > 1) echo '<optgroup label="'.$statusz.'">'."\n";
+ for ($i = 0; $i < count($TOOL['diakSelect']['diakok']); $i++) {
+ $M = $TOOL['diakSelect']['diakok'][$i];
+ if ($M['aktualisStatusz'] == 'magántanuló') $statuszStr = ' - [m]';
+ elseif ($M['aktualisStatusz'] == 'jogviszonya lezárva') $statuszStr = ' - [-]';
+ elseif ($M['aktualisStatusz'] == 'jogviszonya felfüggesztve') $statuszStr = ' - [f]';
+ else $statuszStr = '';
+ if ($M['aktualisStatusz'] == $statusz) {
+ echo '<option value="'.$M['diakId'].'"'.$SEL[$M['diakId']].'>';
+ if (_POLICY=='private') {
+ echo htmlspecialchars($M['diakNev']).' ('.$M['diakId'].')'.$statuszStr;
+ } else {
+ $_tmpNev = explode(' ',str_replace(' ',' ',$M['diakNev']));
+ $_tmpStr = '';
+ // echo serialize($_tmpNev);
+ for ($n=0; $n<count($_tmpNev); $n++) $_tmpStr .= mb_substr($_tmpNev[$n],0,1).'.';
+ echo htmlspecialchars($_tmpStr);
+ }
+ echo '</option>';
+ }
+ }
+ if (count($TOOL['diakSelect']['statusz']) > 1) echo '</optgroup>'."\n";
+ }
+ echo '</select>';
+ } // <100
+ putToolFormStop();
+
+ }
+
+ function putDiakLapozo() {
+
+ global $TOOL;
+
+ putToolFormStart('diakLapozo', 'diakId');
+
+ for ($i = 0; $i < count($TOOL['diakLapozo']['diakok']); $i++) {
+ if ($TOOL['diakLapozo']['diakok'][$i]['diakId'] == $TOOL['diakLapozo']['paramValue']) {
+ $M[0] = $TOOL['diakLapozo']['diakok'][$i-1];
+ $M[1] = $TOOL['diakLapozo']['diakok'][$i];
+ $M[2] = $TOOL['diakLapozo']['diakok'][$i+1];
+ break;
+ }
+ }
+ if (is_array($M[0])) echo '<button type="submit" class="lapozo balra" name="diakId" value="'.$M[0]['diakId'].'">'.htmlspecialchars($M[0]['diakNev']).'</button>';
+
+ if ($TOOL['diakLapozo']['withSelect'] === true) {
+ echo '<select id="diakSelectLista" name="'.$TOOL['diakLapozo']['paramName'].'" class="onChangeSubmit" accesskey="d">';
+ echo '<option value="">------------------------------ '.__DIAKLAPOZOTITLE.' ------------------------------------</option>'."\n";
+ $SEL = array($TOOL['diakLapozo']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['diakLapozo']['statusz'] as $statusz) {
+ if (count($TOOL['diakLapozo']['statusz']) > 1) echo '<optgroup label="'.$statusz.'">'."\n";
+ for ($i = 0; $i < count($TOOL['diakLapozo']['diakok']); $i++) {
+ $D = $TOOL['diakLapozo']['diakok'][$i];
+ if ($D['aktualisStatusz'] == 'magántanuló') $statuszStr = ' - [m]';
+ elseif ($D['aktualisStatusz'] == 'jogviszonya lezárva') $statuszStr = ' - [-]';
+ elseif ($D['aktualisStatusz'] == 'jogviszonya felfüggesztve') $statuszStr = ' - [f]';
+ else $statuszStr = '';
+ if ($D['aktualisStatusz'] == $statusz) echo '<option value="'.$D['diakId'].'"'.$SEL[$D['diakId']].'>'.htmlspecialchars($D['diakNev']).' ('.$D['diakId'].')'.$statuszStr.'</option>';
+ }
+ if (count($TOOL['diakLapozo']['statusz']) > 1) echo '</optgroup>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo '<span class="lapozo">'.htmlspecialchars($M[1]['diakNev']).'</span>';
+ }
+ if (is_array($M[2])) echo '<button type="submit" class="lapozo jobbra" name="diakId" value="'.$M[2]['diakId'].'">'.htmlspecialchars($M[2]['diakNev']).'</button>';
+
+ putToolFormStop(false);
+
+ }
+
+ function putTableSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('tableSelect', 'table');
+ echo '<select name="'.$TOOL['tableSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['tableSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['tableSelect']['naplo_intezmeny']); $i++) {
+ $t = $TOOL['tableSelect']['naplo_intezmeny'][$i];
+ echo '<option value="'."naplo_intezmeny:$t".'"'.$SEL["naplo_intezmeny:$t"].'>'.$t.' ('.__INTEZMENY.')</option>';
+ }
+ for ($i = 0; $i < count($TOOL['tableSelect']['naplo']); $i++) {
+ $t = $TOOL['tableSelect']['naplo'][$i];
+ echo '<option value="'."naplo:$t".'"'.$SEL["naplo:$t"].'>'.$t.' ('.__TANEV.')</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ function putOsztalySelect() {
+
+ global $TOOL;
+
+ putToolFormStart('osztalySelect', 'osztalyId');
+ echo '<select name="'.$TOOL['osztalySelect']['paramName'].'" class="onChangeSubmit" accesskey="o">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['osztalySelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['osztalySelect']['osztalyok']); $i++) {
+ $M = $TOOL['osztalySelect']['osztalyok'][$i];
+ if (isset($M['osztalyJel'])) $osztalyJel = $M['osztalyJel'].' - '.$M['kezdoTanev'];
+ else $osztalyJel = $M['kezdoTanev'].'/'.$M['jel'];
+ if (is_array($M['osztalyfonok']) && $M['osztalyfonokNev']!=''){
+ $osztalyJel .= ' ('.htmlspecialchars($M['osztalyfonokNev']).')';
+ }
+ echo '<option value="'.$M['osztalyId'].'"'.$SEL[$M['osztalyId']].'>'.$osztalyJel.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ function putTanmenetSelect() {
+
+ global $TOOL;
+ putToolFormStart('tanmenetSelect', 'tanmenetId');
+ echo '<select name="'.$TOOL['tanmenetSelect']['paramName'].'" class="onChangeSubmit" accesskey="t">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($TOOL['tanmenetSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['tanmenetSelect']['tanmenetek']); $i++) {
+ $M = $TOOL['tanmenetSelect']['tanmenetek'][$i];
+ $tanmenetNev = $M['tanmenetNev'].' ('.$M['tanmenetId'].') - '.$M['tanarNev'].' '.$M['dt'].' ('.$M['statusz'].')';
+ echo '<option value="'.$M['tanmenetId'].'"'.$SEL[$M['tanmenetId']].'>'.htmlspecialchars($tanmenetNev).'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ function putTankorSelect() {
+
+ global $TOOL;
+
+ if (count($TOOL['tankorSelect']['tankorok'])>0) {
+ if ($TOOL['tankorSelect']['tankorIdsDt']!='') $_info = true; else $_info=false;
+ putToolFormStart('tankorSelect', 'tankorId');
+ echo '<select name="'.$TOOL['tankorSelect']['paramName'].'" class="onChangeSubmit" accesskey="k" title="'.$TOOL['tankorSelect']['tankorIdsDt'].'">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['tankorSelect']['paramValue'] => ' selected="selected" ');
+ if (is_array($TOOL['tankorSelect']['tankorIds'])) {
+ if ($_info) echo '<optgroup label="--['.$TOOL['tankorSelect']['tankorIdsDt'].']-----------------">';
+ for ($i = 0; $i < count($TOOL['tankorSelect']['tankorok']); $i++) {
+ $M = $TOOL['tankorSelect']['tankorok'][$i];
+ if (in_array($M['tankorId'], $TOOL['tankorSelect']['tankorIds']))
+ echo '<option value="'.$M['tankorId'].'"'.$SEL[$M['tankorId']].'>'.htmlspecialchars($M['tankorNev']).' ('.$M['tankorId'].')'.'</option>';
+ }
+ if ($_info) echo '</optgroup>';
+ if ($_info) echo '<optgroup label="--------------------------------------">';
+ for ($i = 0; $i < count($TOOL['tankorSelect']['tankorok']); $i++) {
+ $M = $TOOL['tankorSelect']['tankorok'][$i];
+ if (!in_array($M['tankorId'], $TOOL['tankorSelect']['tankorIds']))
+ echo '<option value="'.$M['tankorId'].'"'.$SEL[$M['tankorId']].'>'.htmlspecialchars($M['tankorNev']).' ('.$M['tankorId'].')'.'</option>';
+ }
+ if ($_info) echo '</optgroup>';
+ } else {
+ for ($i = 0; $i < count($TOOL['tankorSelect']['tankorok']); $i++) {
+ $M = $TOOL['tankorSelect']['tankorok'][$i];
+ echo '<option value="'.$M['tankorId'].'"'.$SEL[$M['tankorId']].'>'.htmlspecialchars($M['tankorNev']).' ('.$M['tankorId'].')'.'</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+ }
+
+ }
+
+ function putTanevLapozo() {
+ global $TOOL;
+
+ putToolFormStart('tanevLapozo', 'tanev');
+ echo '&larr;';
+ echo '<input type="submit" name="tanev" value="'.($TOOL['tanevLapozo']['tanev']-1).'" />';
+ echo '</td>';
+ echo '<th>'.$TOOL['tanevLapozo']['tanev'].'</th>';
+ echo '<td>';
+ echo '<input type="submit" name="tanev" value="'.($TOOL['tanevLapozo']['tanev']+1).'" />';
+ echo '&rarr;';
+ echo '</td></tr></table>';
+ formEnd();
+ }
+
+ function putDatumSelect() {
+ global $TOOL;
+ $paramName = $TOOL['datumSelect']['paramName'];
+ global $$paramName;
+
+ $aHetNapjai = json_decode(AHETNAPJAI);
+
+ if ($TOOL['datumSelect']['lapozo']) {
+ // Előző és következő dátum meghatározása
+ $elozo = $kovetkezo = '';
+ if (is_array($TOOL['datumSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumSelect']['napok']); $i++) {
+ if ($TOOL['datumSelect']['napok'][$i] == $$paramName) {
+ $kovetkezo = $TOOL['datumSelect']['napok'][$i+1];
+ $elozo = $TOOL['datumSelect']['napok'][$i-1];
+ break;
+ }
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumSelect']['igDt']);
+ $count = $TOOL['datumSelect']['hanyNaponta'];
+ for ($t = $tolTime; $t <= $igTime; $t = strtotime("$count days", $t)) {
+ $d = date('Y-m-d', $t);
+ if ($d == $$paramName) {
+ if (strtotime("$count days", $t) <= $igTime) $kovetkezo = date('Y-m-d', strtotime("$count days", $t));
+ break;
+ }
+ $elozo = $d;
+ }
+ }
+ echo '<table><tr>';
+ if ($elozo!='') {
+ echo '<td>';
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ putPostParams($TOOL['datumSelect']['post']);
+ echo '<input name="'.$paramName.'" style="float: left;" class="toolSubmit" type="submit" value="'.$elozo.'" />';
+ echo '</td></tr></table>';
+ formEnd();
+ echo '</td>';
+ }
+ echo '<td>';
+
+ }
+
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ putPostParams($TOOL['datumSelect']['post']);
+ $SEL = array($$paramName => ' selected="selected" ');
+ echo '<button type="button" name="selectorBtn" value="'.$elozo.'" class="btnSelectPrev toolBarBtn mobileOnly">'.'<span class="icon-chevron-left"></span></button>';
+ echo '<select name="'.$paramName.'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['datumSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumSelect']['napok']); $i++) {
+ $d = $TOOL['datumSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumSelect']['igDt']);
+ $count = $TOOL['datumSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t <= $igTime;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+ ) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+ echo '<button type="button" name="selectorBtn" value="'.$kovetkezo.'" class="btnSelectNext toolBarBtn mobileOnly">'.'<span class="icon-chevron-right"></span></button>';
+ putToolFormStop();
+
+ if ($TOOL['datumSelect']['lapozo']) {
+ echo '</td>';
+ if ($kovetkezo!='') {
+ echo '<td>';
+
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ putPostParams($TOOL['datumSelect']['post']);
+ echo '<input name="'.$paramName.'" style="float: right;" class="toolSubmit" type="submit" value="'.$kovetkezo.'" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ echo '</td>';
+ }
+ echo '</tr></table>';
+ }
+
+
+
+ }
+
+//--
+ function putDatumTolIgSelect() {
+
+ global $TOOL, $aHetNapjai;
+
+ $tolParamName = $TOOL['datumTolIgSelect']['tolParamName'];
+ global $$tolParamName;
+ $igParamName = $TOOL['datumTolIgSelect']['igParamName'];
+ global $$igParamName;
+
+ formBegin(array('method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ putPostParams($TOOL['datumTolIgSelect']['post']);
+ if (isset($TOOL['datumTolIgSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumTolIgSelect']['action'].'" />'."\n";
+ echo '<table><tr><td>'."\n";
+ echo '<select name="'.$tolParamName.'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($$tolParamName => ' selected="selected" ');
+ if (is_array($TOOL['datumTolIgSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumTolIgSelect']['napok']); $i++) {
+ $d = $TOOL['datumTolIgSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumTolIgSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumTolIgSelect']['igDt']);
+ $count = $TOOL['datumTolIgSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t <= $igTime && $t != 0;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+ ) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+
+ echo ' - ';
+
+ echo '<select name="'.$igParamName.'" class="onChangeSubmit">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($$igParamName => ' selected="selected" ');
+ if (is_array($TOOL['datumTolIgSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumTolIgSelect']['napok']); $i++) {
+ $d = $TOOL['datumTolIgSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumTolIgSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumTolIgSelect']['igDt']);
+ $count = $TOOL['datumTolIgSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t <= $igTime && $t != 0;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+ ) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putOraSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('oraSelect', 'ora');
+ echo '<select name="'.$TOOL['oraSelect']['paramName'].'" class="onChangeSubmit">';
+ $SEL = array($TOOL['oraSelect']['paramValue'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['oraSelect']['orak'])) {
+ for ($i = 0; $i < count($TOOL['oraSelect']['orak']); $i++) {
+ echo '<option value="'.$TOOL['oraSelect']['orak'][$i].'"'.$SEL[$TOOL['oraSelect']['orak'][$i]].'>'.$TOOL['oraSelect']['orak'][$i].'</option>';
+ }
+ if ($TOOL['oraSelect']['foglaltOrakkal']) {
+ echo '<optgroup label="'._FOGLALT_ORAK.'">';
+ for ($t = $TOOL['oraSelect']['tol']; $t <= $TOOL['oraSelect']['ig']; $t++) {
+ if (!in_array($t, $TOOL['oraSelect']['orak'])) echo '<option value="'.$t.'"'.$SEL[$t].'>'.$t.'</option>';
+ }
+ echo '</optgroup>'."\n";
+ }
+ } else {
+ for ($t = $TOOL['oraSelect']['tol']; $t <= $TOOL['oraSelect']['ig']; $t++) {
+ echo '<option value="'.$t.'"'.$SEL[$t].'>'.$t.'</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putTeremSelect() {
+
+ global $TOOL;
+
+ // telephely szerint szétválogatás:
+ $numt=0;
+ if (is_array($TOOL['teremSelect']['termek'])) {
+ for ($i = 0; $i < count($TOOL['teremSelect']['termek']); $i++) {
+ $I = $TOOL['teremSelect']['termek'][$i];
+ $T[$I['telephelyId']][] = $I;
+ $numt++;
+ }
+ }
+
+ putToolFormStart('teremSelect', 'teremId');
+ echo '<select name="'.$TOOL['teremSelect']['paramName'].'" class="onChangeSubmit">';
+ $SEL = array($TOOL['teremSelect']['paramValue'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if ($numt>=2) {
+ foreach($T AS $telephelyId => $I) {
+ $disp = ($telephelyId=='')?'Nincs telephely':$telephelyId;
+ echo '<optgroup label="'.$disp.'">';
+ if (is_array($I)) {
+ for ($i = 0; $i < count($I); $i++) {
+ $show = $I[$i]['leiras'];
+ echo '<option value="'.$I[$i]['teremId'].'"'.$SEL[$I[$i]['teremId']].'>'.$show.'</option>';
+ }
+ }
+ echo '</optgroup>'."\n";
+ }
+ } else {
+ if (is_array($TOOL['teremSelect']['termek'])) {
+ for ($i = 0; $i < count($TOOL['teremSelect']['termek']); $i++) {
+ $show = $TOOL['teremSelect']['termek'][$i]['leiras'];
+ echo '<option value="'.$TOOL['teremSelect']['termek'][$i]['teremId'].'"'.$SEL[$TOOL['teremSelect']['termek'][$i]['teremId']].'>'.$show.'</option>';
+ }
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putOrarendiHetSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('orarendiHetSelect', 'orarendiHet');
+ echo '<select name="'.$TOOL['orarendiHetSelect']['paramName'].'" class="onChangeSubmit" '.$_DS.'>';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['orarendiHetSelect']['paramValue'] => ' selected="selected" ');
+ foreach ($TOOL['orarendiHetSelect']['hetek'] as $M) {
+ echo '<option value="'.$M.'"'.$SEL[$M].'>'.$M.'</option>';
+ }
+ if (is_array($TOOL['orarendiHetSelect']['megjelenitendoHetek'])) {
+ echo '<optgroup label="'._UJ_ORARENDIHET.'">';
+ foreach ($TOOL['orarendiHetSelect']['megjelenitendoHetek'] as $index => $het) {
+ if (!in_array($het, $TOOL['orarendiHetSelect']['hetek']))
+ echo '<option value="'.$het.'"'.$SEL[$het].'>'.$het.'</option>';
+ }
+ echo '</optgroup>'."\n";
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putKepzesSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('kepzesSelect', 'kepzesId');
+ echo '<select name="'.$TOOL['kepzesSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['kepzesSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['kepzesSelect']['kepzes']); $i++) {
+ $M = $TOOL['kepzesSelect']['kepzes'][$i];
+ $_prefix = ($M['kepzesEles']!=1) ? '-' : '';
+ echo '<option value="'.$M['kepzesId'].'"'.$SEL[$M['kepzesId']].'>'.$_prefix.htmlspecialchars($M['kepzesNev']).' '.$M['tanev'].' ('.$M['kepzesId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+ function putSzuloSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('szuloSelect', 'szuloId');
+ echo '<select name="'.$TOOL['szuloSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['szuloSelect']['paramValue'] => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['szuloSelect']['szulo']); $i++) {
+ $M = $TOOL['szuloSelect']['szulo'][$i];
+ echo '<option value="'.$M['szuloId'].'"'.$SEL[$M['szuloId']].'>'.htmlspecialchars($M['szuloNev']).' ('.$M['szuloId'].')'.'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putKerdoivSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('kerdoivSelect', 'kerdoivId');
+ echo '<select name="'.$TOOL['kerdoivSelect']['paramName'].'" class="onChangeSubmit">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($TOOL['kerdoivSelect']['paramValue'] => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['kerdoivSelect']['kerdoiv']); $i++) {
+ $M = $TOOL['kerdoivSelect']['kerdoiv'][$i];
+ echo '<option value="'.$M['kerdoivId'].'"'.$SEL[$M['kerdoivId']].'>'.$M['cim'].'</option>';
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putZaradekSelect() {
+
+ global $TOOL;
+
+ putToolFormStart('zaradekSelect', 'zaradekIndex');
+ $mit = array('bizonyítvány','törzslap','osztálynapló','beírási napló');
+ $mire = array('Bi.','Tl.','On.','Bn.');
+ echo '<select name="'.$TOOL['zaradekSelect']['paramName'].'" class="onChangeSubmit">';
+ $SEL = array($TOOL['zaradekSelect']['paramValue'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['zaradekSelect']['zaradekok'])) {
+ foreach ($TOOL['zaradekSelect']['zaradekok'] as $zaradekIndex => $zaradekAdat) {
+ $length = mb_strlen($zaradekAdat['szoveg'], 'utf-8');
+ $rpos = mb_strrpos(mb_substr($zaradekAdat['szoveg'],0,-15), ' ', 0, 'utf-8');
+ echo '<option value="'.$zaradekIndex.'"'.$SEL[$zaradekIndex].'>';
+ echo $zaradekAdat['sorszam'].' '
+ .($length>80?
+ mb_substr($zaradekAdat['szoveg'],0,mb_strpos($zaradekAdat['szoveg'],' ',40,'utf-8'),'utf-8').
+ ' ... '.
+ mb_substr($zaradekAdat['szoveg'], $rpos, $length-$rpos+10, 'utf-8'):$zaradekAdat['szoveg']).
+ ' ('.str_replace($mit, $mire, $zaradekAdat['dokumentum']).')</option>';
+ }
+ }
+ echo '</select>';
+ putToolFormStop();
+
+ }
+
+
+ function putTanarOraLapozo() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['tanarOraLapozo']['paramName'];
+ global $$paramName; // most oraId
+ if ((is_array($TOOL['tanarOraLapozo']['elozo'])) || (is_array($TOOL['tanarOraLapozo']['kovetkezo']))) {
+ formBegin(array('class'=>'lapozo','method'=>'post', 'action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ putPostParams($TOOL['tanarOraLapozo']['post']);
+ echo '<table><tr><td>';
+ if (is_array($TOOL['tanarOraLapozo']['elozo'])) {
+ $_leiras = '&larr;'.($TOOL['tanarOraLapozo']['elozo']['ora']).'. '._ORA;
+ if ($TOOL['tanarOraLapozo']['elozo']['leiras']!='') $_leiras .= ' ('.$TOOL['tanarOraLapozo']['elozo']['leiras'].')';
+ echo '<input type="submit" name="oraId" value="'.$_leiras.'" onclick="this.value='.($TOOL['tanarOraLapozo']['elozo']['oraId']).'" />';
+ }
+ echo '</td>';
+ echo '<th>';
+ echo $TOOL['tanarOraLapozo']['oraAdat']['ora'].'. '._ORA.' ';
+ if ($TOOL['tanarOraLapozo']['oraAdat']['leiras'] != '') echo '('.$TOOL['tanarOraLapozo']['oraAdat']['leiras'].') ';
+ echo '</th>';
+ echo '<td>';
+ if (is_array($TOOL['tanarOraLapozo']['kovetkezo'])) {
+ $_leiras = ($TOOL['tanarOraLapozo']['kovetkezo']['ora']).'. '._ORA;
+ if ($TOOL['tanarOraLapozo']['kovetkezo']['leiras']!='') $_leiras .= ' ('.$TOOL['tanarOraLapozo']['kovetkezo']['leiras'].')';
+ $_leiras .=' &rarr;';
+ echo '<input type="submit" name="oraId" value="'.$_leiras.'" onclick="this.value='.($TOOL['tanarOraLapozo']['kovetkezo']['oraId']).'" />';
+ }
+ echo '</td></tr></table>';
+ formEnd();
+ echo "\n";
+ }
+ }
+
+ function putHonapLapozo() {
+
+ global $TOOL,$Honapok;
+
+ $paramName = $TOOL['honapLapozo']['paramName'];
+ global $$paramName;
+ formBegin(array('class' => 'lapozo', 'method' => 'post', 'action' => href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+ putPostParams($TOOL['honapLapozo']['post']);
+ echo '<table><tr><td>';
+ echo '&larr;';
+ echo '<input type="submit" name="ho" value="'.(($$paramName-1)==0?12:$$paramName-1).'" />';
+ echo '</td>';
+ echo '<th>'.$Honapok[$$paramName-1].'</th>';
+ echo '<td>';
+ echo '<input type="submit" name="ho" value="'.(($$paramName%12+1)).'" />';
+ echo '&rarr;';
+ echo '</td></tr></table>';
+
+ // ideiglenes megoldás!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+// echo '<input type="hidden" name="diakId" value="'.$TOOL['honapLapozo']['diakId'].'" />'."\n";
+
+ formEnd();
+
+ }
+
+//-- INSECURE
+ function putOldalFlipper() {
+
+ global $TOOL;
+ $paramName = $TOOL['oldalFlipper']['paramName'];
+ global $$paramName;
+
+ $stepCount = count($TOOL['oldalFlipper']['url']);
+ if (isset($TOOL['oldalFlipper']['step'])) $step = $TOOL['oldalFlipper']['step'];
+ for ($i = 0; $i < count($TOOL['oldalFlipper']['titleConst']); $i++) {
+ if (defined($TOOL['oldalFlipper']['titleConst'][$i]))
+ $TOOL['oldalFlipper']['title'][$i] = constant($TOOL['oldalFlipper']['titleConst'][$i]);
+ else
+ $TOOL['oldalFlipper']['title'][$i] = '';
+ }
+
+
+
+
+ echo '<table class="flipper"><tr>';
+ if ($stepCount > 1 && isset($step) && $step > 0) {
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$step-1])));
+ putPostParams($TOOL['oldalFlipper']['post']);
+ if (isset($TOOL['oldalFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldalFlipper']['action'].'" />'."\n";
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+ echo '<input type="submit" value="&larr;" title="'.$TOOL['oldalFlipper']['title'][$step-1].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ if ($stepCount > 1)
+ for ($j = 0; $j < $stepCount; $j++) {
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$j])));
+ putPostParams($TOOL['oldalFlipper']['post']);
+ if (isset($TOOL['oldalFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldalFlipper']['action'].'" />'."\n";
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+
+ if (isset($step) && $step == $j)
+ echo '<input class="step" type="button" value="'.($j+1).'" title="'.$TOOL['oldalFlipper']['title'][$j].'" />'."\n";
+ else
+ echo '<input type="submit" value="'.($j+1).'" title="'.$TOOL['oldalFlipper']['title'][$j].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ if ($stepCount == 1 || (isset($step) && $step < $stepCount-1)) {
+ if (!isset($step)) $step = 0; else $step++;
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$step])));
+ putPostParams($TOOL['oldalFlipper']['post']);
+ if (isset($TOOL['oldalFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldalFlipper']['action'].'" />'."\n";
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+
+ echo '<input type="submit" value="&rarr;" title="'.$TOOL['oldalFlipper']['title'][$step].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ echo '</tr></table>'."\n";
+
+ }
+
+ function putNyomtatasGomb() {
+
+ global $TOOL;
+ $paramName = $TOOL['nyomtatasGomb']['paramName'];
+ global $$paramName;
+
+ if (defined($TOOL['nyomtatasGomb']['titleConst']))
+ $TOOL['nyomtatasGomb']['title'] = constant($TOOL['nyomtatasGomb']['titleConst']);
+ else
+ $TOOL['nyomtatasGomb']['title'] = '';
+
+ echo '<table class="gomb"><tr>';
+ echo '<td>';
+ formBegin(array('method'=>'post', 'action'=>href($TOOL['nyomtatasGomb']['url'])));
+ putPostParams($TOOL['nyomtatasGomb']['post']);
+ if (isset($TOOL['nyomtatasGomb']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['nyomtatasGomb']['action'].'" />'."\n";
+ if (isset($TOOL['nyomtatasGomb']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+// echo '<input type="submit" value="&larr;" title="'.$TOOL['nyomtatasGomb']['title'].'" />'."\n";
+ echo '<button title="'.$TOOL['nyomtatasGomb']['title'].'"><span class="icon-print" style="font-size:15px; color:white;"></span></button>'."\n";
+ formEnd();
+ echo '</td>';
+ echo '</tr></table>'."\n";
+
+ }
+
+
+ function putIgazolasOsszegzo() {
+
+ global $TOOL;
+
+ $H = $TOOL['igazolasOsszegzo']['igazolasok'];
+ echo '<table class="hianyzasOsszegzo" cellpadding="1" cellspacing="1" style="width:300px;">';
+ echo '<tr>';
+ echo '<th></th>';
+ echo '<th>'._ORVOSI.'</th>';
+ echo '<th>'._SZULOI.'</th>';
+ echo '<th>'._OSZTALYFONOKI.'</th>';
+ echo '<th>'._TANULMANYI_VERSENY.'</th>';
+ echo '<th>'._NYELVVIZSGA.'</th>';
+ echo '<th>'._IGAZGATOI.'</th>';
+ echo '<th>'._HATOSAGI.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+
+ echo '<td></td>';
+ echo '<td>'.intval($H['napok']['osszesen']['orvosi']).' nap</td>';
+ echo '<td>';
+ if (__SZULOI_IGAZOLAS_EVRE != 0) echo (int)$H['napok']['osszesen']['szülői'].'/'.__SZULOI_IGAZOLAS_EVRE.' '._NAP.'/'._EV.' ';
+ if (__SZULOI_IGAZOLAS_FELEVRE != 0) foreach ($H['szemeszterek'] as $i => $szemeszter) {
+ echo decimal_to_roman($szemeszter).':&nbsp;'.(int)$H['napok'][ $szemeszter ]['szülői'].'/'.__SZULOI_IGAZOLAS_FELEVRE.'&nbsp;'._NAP.', ';
+ }
+ echo '</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['osztályfőnöki'].'/'.__OSZTALYFONOKI_IGAZOLAS_EVRE. ' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['tanulmányi verseny'].' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['nyelvvizsga'].' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['igazgatói'].' '._NAP.'</td>';
+ echo '<td>'.(int)$H['napok']['osszesen']['hatósági'].' '._NAP.'</td>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td>';
+ echo '<span style="color: white; font-weight:bold;margin-right:3px; border: solid 1px white; padding:2px 5px;background-color: green;">'.intval($TOOL['igazolasOsszegzo']['hianyzasok']['igazolt']).'</span>';
+ echo '<span style="color: white; font-weight:bold;margin-right:3px; border: solid 1px white; padding:2px 5px;background-color: red;">'.intval($TOOL['igazolasOsszegzo']['hianyzasok']['igazolatlan']).'</span>';
+ echo '<span style="color: white; font-weight:bold;margin-right:3px; border: solid 1px white; padding:2px 5px;background-color: #C8C864;">'.intval($TOOL['igazolasOsszegzo']['hianyzasok']['kesesPercOsszeg']).'\'</span>';
+ echo '</td>'; // igazolatlan, kesesPercOsszeg
+ echo '<td>'.(int)$H['orak']['osszesen']['orvosi'].' '._ORA.'</td>';
+ echo '<td>';
+ if (__SZULOI_ORA_IGAZOLAS_EVRE != 0) echo (int)$H['orak']['osszesen']['szülői'].'/'.__SZULOI_ORA_IGAZOLAS_EVRE.' '._ORA.'/'._EV.' ';
+ if (__SZULOI_ORA_IGAZOLAS_FELEVRE != 0) foreach ($H['szemeszterek'] as $i => $szemeszter) {
+ echo decimal_to_roman($szemeszter).':&nbsp;'.(int)$H['orak'][ $szemeszter ]['szülői'].'/'.__SZULOI_ORA_IGAZOLAS_FELEVRE.'&nbsp;'._ORA.', ';
+ }
+ echo '</td>';
+
+ echo '<td>'.(int)$H['orak']['osszesen']['osztályfőnöki'].'/'.__OSZTALYFONOKI_ORA_IGAZOLAS_EVRE.' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['tanulmányi verseny'].' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['nyelvvizsga'].' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['igazgatói'].' '._ORA.'</td>';
+ echo '<td>'.(int)$H['orak']['osszesen']['hatósági'].' '._ORA.'</td>';
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+ }
+
+ function putKerelemStat() {
+
+ global $TOOL;
+ echo '<span style="padding:0px 10px; border-bottom: solid 1px white; background-color: #6969ff;" title="sum">'.$TOOL['kerelemStat']['stat']['n'].'</span>';
+ echo '<span style="padding:0px 10px; border-bottom: solid 1px white; background-color: lightgreen;" title="done">'.$TOOL['kerelemStat']['stat']['nofdone'].'</span>';
+ echo '<span style="padding:0px 10px; border-bottom: solid 1px white; background-color: magenta; " title="avgtime">'.$TOOL['kerelemStat']['stat']['avgTime'].'</span>';
+
+ }
+
+ function putToolBarHamburger() {
+ global $TOOL;
+ echo '<div id="toolBarHamburgerLista" style="position:fixed; top:150px;right:0px;">';
+ echo '<ul>';
+ for ($j = 0; $j < count($TOOL['toolBarHamburger']['url']); $j++) {
+ echo '<li>';
+ formBegin(array('action'=>href($TOOL['toolBarHamburger']['url'][$j])));
+ putPostParams($TOOL['toolBarHamburger']['post']);
+ if (isset($TOOL['toolBarHamburger']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['toolBarHamburger']['action'].'" />'."\n";
+ if (isset($TOOL['toolBarHamburger']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+ //echo '<input type="submit" value="'.$TOOL['toolBarHamburger']['title'][$j].'" title="'.$TOOL['toolBarHamburger']['title'][$j].'" />'."\n";
+ echo '<button type="submit" class="hamburgerIkon" value="'.$TOOL['toolBarHamburger']['title'][$j].'" title="'.$TOOL['toolBarHamburger']['title'][$j].'">'.$TOOL['toolBarHamburger']['title'][$j].'</button>'."\n";
+ formEnd();
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '</div>';
+ }
+
+
+ // CONTRIB!
+ include('skin/classic/module-naplo/html/share/face.phtml');
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml
new file mode 100644
index 00000000..d216ade0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesTipus.phtml
@@ -0,0 +1,52 @@
+<?php
+
+ function putBejegyzesTipusForm($ADAT) {
+
+ formBegin(array('action'=>'', 'method'=>'post', 'class'=>'bejegyzes'));
+
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="action" value="modositas" />';
+
+ foreach ($ADAT['bejegyzesTipusok'] as $tipus => $tAdat) {
+ echo '<ul class="'.ekezettelen($tipus).'">';
+ echo '<lh>'.$tipus.'</lh>';
+ for ($i = 0; $i < count($tAdat); $i++) {
+ $btId = $tAdat[$i]['bejegyzesTipusId'];
+ echo '<li>';
+ echo '<input type="hidden" name="bejegyzesTipusId[]" value="'.$btId.'" />';
+ if ($tAdat[$i]['fokozat'] < 10) echo '&nbsp';
+ echo $tAdat[$i]['fokozat'].'. '._FOKOZAT.'('.$btId.') - ';
+ echo '<input type="text" name="bejegyzesTipusNev[]" value="'.$tAdat[$i]['bejegyzesTipusNev'].'" />';
+ if ($tipus == 'fegyelmi') {
+ $SEL = array($tAdat[$i]['hianyzasDb'] => ' selected="selected" ');
+ echo '<select name="hianyzasDb[]">';
+ for ($h = 0; $h < 26; $h++) {
+ echo '<option value="'."$btId-$h".'"'.$SEL[$h].'>'.($h==0?'-':$h).'</option>';
+ }
+ echo '</select>'._DARAB_IGAZOLATLAN_HIANYZAS_ESETEN;
+ }
+// echo ' ('.$tAdat[$i]['jogosult'].')';
+ echo '<span title="'._JOGOSULT.'">';
+ foreach ($ADAT['jogosult'] as $jogosult) {
+ if (strpos($tAdat[$i]['jogosult'], $jogosult) !== false)
+ echo '<input id="'.$jogosult.$tipus.$i.'" checked="checked" type="checkbox" name="jogosult[]" value="'."$btId-$jogosult".'" />';
+ else
+ echo '<input id="'.$jogosult.$tipus.$i.'" type="checkbox" name="jogosult[]" value="'."$btId-$jogosult".'" />';
+ echo '<label for="'.$jogosult.$tipus.$i.'">';
+ echo $jogosult;
+ echo '</label>';
+ }
+ echo '</span>';
+ echo '</li>';
+ }
+ echo '<li class="submit">';
+ echo '<input class="ok" type="submit" value="'._OK.'" />';
+ echo '<input class="del confirm" type="submit" name="del-'.ekezettelen($tipus).'" value="'._UTOLSO_TORLESE.'" title="'._BIZTOS_TOROL_E.'" />';
+ echo '<input class="new" type="submit" name="new-'.ekezettelen($tipus).'" value="'._UJ_FOKOZAT.'" title="'._UJ_FOKOZAT.'" />';
+ echo '</li>';
+ echo '</ul>';
+ }
+ formEnd();
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml
new file mode 100644
index 00000000..b46a9d3e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/bejegyzesek.phtml
@@ -0,0 +1,97 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putBejegyzesLista($diakId, $BEJEGYZESEK, $DIAKOK = array()) {
+
+ global $osztalyId;
+
+ echo '<div class="bejegyzes">'."\n";
+
+ echo '<ul>';
+ for ($i = 0; $i < count($BEJEGYZESEK); $i++) {
+
+ echo $DIAKOK[$BEJEGYZESEK[$i]['diakId']]['diakNev'];
+
+ echo '<li class="'.$BEJEGYZESEK[$i]['tipus'].'">';
+ echo '<div class="kategoria">';
+ echo $BEJEGYZESEK[$i]['bejegyzesTipusNev'];
+ echo '</div>';
+ echo '<div class="megjegyzes">';
+ echo $BEJEGYZESEK[$i]['szoveg'];
+ echo '</div>';
+ echo '<div class="dt">';
+ echo '<span class="tanar">';
+ echo $BEJEGYZESEK[$i]['tanarNev'];
+ echo '</span>';
+ echo $BEJEGYZESEK[$i]['beirasDt'];
+ if (!in_array($BEJEGYZESEK[$i]['referenciaDt'],array('',0,'0000-00-00'))) echo ' / '.$BEJEGYZESEK[$i]['referenciaDt'];
+ echo '</div>';
+
+ if (
+ __NAPLOADMIN ||
+ ($BEJEGYZESEK[$i]['tanarId'] == __USERTANARID && $BEJEGYZESEK[$i]['beirasDt'] == date('Y-m-d'))
+ ) {
+ formBegin();
+ echo '<input type="hidden" name="action" value="delBejegyzes" />';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />';
+ echo '<input type="hidden" name="bejegyzesId" value="'.$BEJEGYZESEK[$i]['bejegyzesId'].'" />';
+ echo '<input type="submit" value="'._TOROL.'" />'."\n";
+ formEnd();
+ }
+
+ echo '</li>'."\n";
+
+ }
+ echo '</ul>';
+
+ echo '</div>'."\n";
+
+ }
+
+ function putOsztalyBejegyzesek($Bejegyzesek, $Diakok) {
+
+ global $osztalyId;
+
+ for ($j = 0; $j < count($Diakok); $j++) {
+
+ $diakId = $Diakok[$j]['diakId'];
+ $diakNev = $Diakok[$j]['diakNev'];
+ $B = $Bejegyzesek[$diakId];
+ if (count($B) == 0) continue;
+
+ echo '<div class="bejegyzes">'."\n";
+
+ formBegin(array('class'=>'nev'));
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="submit" value="'.$diakNev.'" />'."\n";
+ formEnd();
+
+ echo '<ul>';
+ for ($i = 0; $i < count($B); $i++) {
+
+ echo '<li class="'.$B[$i]['tipus'].'">';
+ echo '<div class="kategoria">';
+ echo '<span class="tanar">';
+ echo $B[$i]['tanarNev'];
+ echo '</span>';
+ echo '<span class="dt">';
+ echo $B[$i]['beirasDt'];
+ if (!in_array($BEJEGYZESEK[$i]['referenciaDt'],array('',0,'0000-00-00'))) echo ' / '.$BEJEGYZESEK[$i]['referenciaDt'];
+ echo '</span>';
+ echo $B[$i]['bejegyzesTipusNev'];
+ echo '</div>';
+
+ }
+ echo '</ul>';
+
+ echo '</div>'."\n";
+
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml
new file mode 100644
index 00000000..bbbe2c4c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/info.phtml
@@ -0,0 +1,9 @@
+<?php
+
+ function putBejegyzesInfo($ADAT) {
+ echo '<div style="text-align: center">';
+ echo _AKTUALIS_BEJEGYZESEK_SZAMA.' '.$ADAT['db'];
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml
new file mode 100644
index 00000000..22759d38
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/bejegyzesek/ujBejegyzes.phtml
@@ -0,0 +1,47 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putUjBejegyzesForm($diakId) {
+
+ global $FOKOZATOK, $osztalyId;
+
+ formBegin(array('class'=>'bejegyzes'));
+
+ echo '<input type="hidden" name="action" value="ujBejegyzes" />';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />';
+
+ $tipus = '';
+ echo '<select name="bejegyzesTipusId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($FOKOZATOK as $i => $F) {
+ if ($tipus != $F['tipus']) {
+ if ($tipus != '') echo '</optgroup>'."\n";
+ $tipus = $F['tipus'];
+ echo '<optgroup label="'.$tipus.'">'."\n";
+ }
+ echo '<option value="'.$F['bejegyzesTipusId'].'">'.$F['bejegyzesTipusNev'].'</option>'."\n";
+ }
+ if ($tipus != '') echo '</optgroup>'."\n";
+ echo '</select>';
+
+ echo '<input type="checkbox" id="evvegi" name="evvegi" value="true" />'."\n";
+ echo '<label for="evvegi">'._EVVEGI.'</label>'."\n";
+ _inlineHelp(_SUGO_EVVEGI);
+
+ echo '<br />'."\n";
+
+
+
+ echo '<label for="szoveg">'._MEGJEGYZES.'</label><br />'."\n";
+ echo '<textarea name="szoveg" id="szoveg"></textarea><br />'."\n";
+
+ echo '<input type="submit" value="'._ROGZIT.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/diakValaszto.phtml b/mayor-orig/www/skin/classic/module-naplo/html/diakValaszto.phtml
new file mode 100644
index 00000000..4b925da8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/diakValaszto.phtml
@@ -0,0 +1,22 @@
+<?php
+
+ function putDiakValasztoForm($ADAT) {
+
+ formBegin(array('class'=>'valaszto'));
+ echo '<input type="hidden" name="action" value="valaszt" />'."\n";
+
+ $SEL = array(__PARENTDIAKID => ' selected="selected" ');
+ echo '<select name="diakId">'."\n";
+ for ($i=0; $i<count($ADAT); $i++) {
+ echo '<option value="'.$ADAT[$i]['diakId'].'" '.$SEL[ $ADAT[$i]['diakId'] ].'>';
+ echo $ADAT[$i]['diakNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml b/mayor-orig/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml
new file mode 100644
index 00000000..74c0143c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/ertekeles/ertekeles.phtml
@@ -0,0 +1,77 @@
+<?php
+
+ function _sgn($a) {
+ if ($a < 0) return -1;
+ elseif ($a == 0) return 0;
+ else return 1;
+ }
+
+ function putKerdoiv($ADAT) {
+
+ $class = array(-1 => 'negativ', 0 => 'semleges', 1 => 'pozitiv');
+
+ formBegin(array('class'=>'kerdoiv'));
+ echo '<input type="hidden" name="action" value="ertekeles" />'."\n";
+ echo '<input type="hidden" name="kerdoivId" value="'.$ADAT['kerdoivId'].'" />'."\n";
+ echo '<input type="hidden" name="cimzettId" value="'.$ADAT['cimzettId'].'" />'."\n";
+ echo '<input type="hidden" name="cimzettTipus" value="'.$ADAT['cimzettTipus'].'" />'."\n";
+ echo '<h1>'.$ADAT['kerdoivAdat']['cim'].'<br />'.$ADAT['cimzettLeiras'].'</h1>'."\n";
+ if ($ADAT['kerdoivAdat']['megjegyzes'] != '') echo '<p>'.$ADAT['kerdoivAdat']['megjegyzes'].'</p>'."\n";
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['kerdoivAdat']['kerdes']); $i++) {
+ $kerdesId = $ADAT['kerdoivAdat']['kerdes'][$i]['kerdesId'];
+ $valaszok = $ADAT['kerdoivAdat']['kerdes'][$i]['valasz'];
+ echo '<li>';
+ echo $ADAT['kerdoivAdat']['kerdes'][$i]['kerdes'];
+ if (
+ ($valaszok[0]['pont'] == 0 && $valaszok[ count($valaszok)-1 ]['pont'] == 0)
+ || in_array($kerdesId, $ADAT['megvalaszoltKerdes'])
+ ) {
+ echo '<ol>'; $sgn = 0;
+ } else {
+ echo '<span class="gomb negativ">-</span><span class="gomb semleges">0</span><span class="gomb pozitiv">+</span>';
+ echo '<ol style="display: none;" class="'.$class[_sgn($valaszok[0]['pont'])].'">'; $sgn = _sgn($valaszok[0]['pont']);
+ }
+ if (!in_array($kerdesId, $ADAT['megvalaszoltKerdes'])) {
+ if (count($valaszok) == 0) {
+ echo '<input class="szabadValasz" type="text" name="szabadValasz'.$kerdesId.'" value="" />'."\n";
+ } else {
+ for ($j = 0; $j < count($valaszok); $j++) {
+ $valaszId = $valaszok[$j]['valaszId'];
+ if ($sgn != _sgn($valaszok[$j]['pont'])) {
+ echo '</ol>';
+ echo '<ol style="display: none;" class="'.$class[_sgn($valaszok[$j]['pont'])].'">'; $sgn = _sgn($valaszok[$j]['pont']);
+ }
+ echo '<li>';
+ if (
+ $valaszok[$j]['pont'] == 0
+ && ($j == 0 || $valaszok[$j-1]['pont'] < 0)
+ && ($j+1 == count($valaszok) || $valaszok[$j+1]['pont'] > 0)
+ ) $CHK = ' checked="checked" '; else $CHK = '';
+ echo '<input type="radio" name="valasz'.$kerdesId.'" id="valasz'.$kerdesId.$j.'" value="'.$valaszId.'"'.$CHK.' />'."\n";
+ echo '<label for="valasz'.$kerdesId.$j.'">'.$valaszok[$j]['valasz'].'</label>';
+ echo '</li>';
+ }
+ }
+ } else {
+ echo '<li>'._MAR_MEGVALASZOLT_KERDES.'</li>';
+/* for ($j = 0; $j < count($ADAT['kerdoivAdat']['kerdes'][$i]['valasz']); $j++) {
+ echo '<li>';
+ echo $ADAT['kerdoivAdat']['kerdes'][$i]['valasz'][$j]['valasz'];
+ echo '</li>';
+ }
+*/
+ }
+ echo '</ol>'."\n";
+
+ echo '</li>'."\n";
+ }
+ echo '</ol>'."\n";
+
+ echo '<input id="ok" type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml
new file mode 100644
index 00000000..f019f1d5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/ertekeles/kerdoivBetoltes.phtml
@@ -0,0 +1,90 @@
+<?php
+
+ function putKerdoivForm($ADAT) {
+
+ formBegin(array('class'=>'kerdoiv'));
+ echo '<input type="hidden" name="action" value="kerdoivBetoltes1" />'."\n";
+
+ echo '<p><label for="cim">'._CIM.'</label>';
+ echo '<input type="text" name="cim" id="cim" value="" />'."\n";
+ echo '</p>';
+
+ echo '<p><label for="tolDt">'._ERVENYESSEG.'</label>'."\n";
+ echo '<input type="text" name="tolDt" id="tolDt" class="date" value="" /> - <input type="text" name="igDt" id="igDt" class="date" value="" />';
+ echo '</p>';
+
+/*
+ echo '<p><label for="feladoTipus">'._FELADO.'</label>';
+ echo '<select name="feladoTipus" id="feladoTipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['feladoTipusok']); $i++) {
+ $feladoTipus = $ADAT['feladoTipusok'][$i];
+ $feladoNev = constant('_FELADO_'.nagybetus($feladoTipus));
+ echo '<option value="'.$feladoTipus.'">'.$feladoNev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+*/
+ echo '<label for="cimzettTipus">'._CIMZETT.'</label>';
+ echo '<select name="cimzettTipus" id="cimzettTipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['cimzettTipusok']); $i++) {
+ $cimzettTipus = $ADAT['cimzettTipusok'][$i];
+ $cimzettNev = constant('_CIMZETT_'.nagybetus($cimzettTipus));
+ echo '<option value="'.$cimzettTipus.'">'.$cimzettNev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</p>';
+
+ echo '<label for="txt">'._MEGJEGYZES.'</label><br /><textarea name="megjegyzes" id="megjegyzes"></textarea>'."\n";
+
+ echo '<p><lable for="txt">'._KERDESEK_VALASZOK.'</lable>'."\n";
+ echo '<br /><textarea name="txt" id="txt"></textarea>'."\n";
+ echo '</p>';
+
+ echo '<input type="submit" value="OK" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putCimzettForm($ADAT) {
+
+ formBegin(array('class'=>'kerdoivCimzett'));
+
+ echo '<input type="hidden" name="action" value="kerdoivBetoltes2" />'."\n";
+ echo '<input type="hidden" name="kerdoivId" value="'.$ADAT['kerdoivId'].'" />'."\n";
+ echo '<input type="hidden" name="cimzettTipus" value="'.$ADAT['cimzettTipus'].'" />'."\n";
+
+ echo '<h2>'.$ADAT['cim'].' ('.$ADAT['kerdoivId'].')</h2>';
+
+ // Akit fel akarunk venni
+ echo '<div class="bal">';
+ echo '<label for="cimzett">'._TOVABBI_CIMZETTEK.': '.constant('_CIMZETT_'.nagybetus($ADAT['cimzettTipus'])).'</label><br />';
+ echo '<select name="cimzettId[]" id="cimzettId" multiple="multiple">'."\n";
+ // echo '<option value="0" selected="selected">'._OSSZES.'</option>'."\n";
+ for ($i = 0; $i < count($ADAT['cimzettek']); $i++) {
+ if (!in_array($ADAT['cimzettek'][$i]['cimzettId'], $ADAT['kerdoivAdat']['cimzett'][ $ADAT['cimzettTipus'] ]))
+ echo '<option value="'.$ADAT['cimzettek'][$i]['cimzettId'].'">'
+ .$ADAT['cimzettek'][$i]['cimzettNev'].' ('.$ADAT['cimzettek'][$i]['cimzettId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+ echo '<div class="jobb">';
+ echo '<label for="torlendoCimzett">'._CIMZETT.': '.constant('_CIMZETT_'.nagybetus($ADAT['cimzettTipus'])).'</label><br />';
+ echo '<select name="torlendoCimzettId[]" id="torlendoCimzettId" multiple="multiple">'."\n";
+ //echo '<option value="0" selected="selected">'._OSSZES.'</option>'."\n";
+ for ($i = 0; $i < count($ADAT['cimzettek']); $i++) {
+ if (in_array($ADAT['cimzettek'][$i]['cimzettId'], $ADAT['kerdoivAdat']['cimzett'][ $ADAT['cimzettTipus'] ]))
+ echo '<option value="'.$ADAT['cimzettek'][$i]['cimzettId'].'">'
+ .$ADAT['cimzettek'][$i]['cimzettNev'].' ('.$ADAT['cimzettek'][$i]['cimzettId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<input type="submit" value="OK" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml b/mayor-orig/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml
new file mode 100644
index 00000000..cb6062d4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/esemeny/esemenyDiak.phtml
@@ -0,0 +1,102 @@
+<?php
+
+ function esemenyNevsor($ADAT) {
+
+ $DIS = (__MODOSITHAT)?'':' disabled="disabled" ';
+ formBegin(array('method'=>'post','action'=>'','class'=>'nevsor','id'=>'nevsorForm'));
+
+ echo '<input type="hidden" name="action" value="nevsorModositas" />'."\n";
+ echo '<input type="hidden" name="esemenyId" value="'.$ADAT['esemenyId'].'" />'."\n";
+ echo '<input type="hidden" name="postDiakId" value="semmi" id="postDiakId" />'."\n";
+
+ echo '<h2>Jelentkezők</h2>';
+
+ echo '<table id="kontener">'."\n";
+ echo '<tr>'."\n";
+ echo '<th>'._NEVSOR.' '; if (__MODOSITHAT) _inlineHelp(_SUGO_NEVSOR); echo '</th>';
+ if (__MODOSITHAT) {
+ echo '<th>'._OSZTALYOK.' '; _inlineHelp(_SUGO_OSZTALYOK); echo '</th>'."\n";
+ echo '<th>'._DIAKOK.' '; _inlineHelp(_SUGO_DIAKOK); echo '</th>'."\n";
+ }
+ echo '</tr>';
+ echo '<tr><td>';
+
+ echo '<table class="nevsor" id="nevsor">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="2"></th>'."\n";
+ echo '<th colspan="2">'._NEV.'</th>'."\n";
+ echo '<th>'._JELENTKEZES.'</th>'."\n";
+ echo '<th colspan="2">'._JOVAHAGYAS.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>';
+
+ echo '<tbody>'."\n";
+ foreach ($ADAT['esemenyAdat']['diakok'] as $dAdat) {
+ $_osztalyJel = $ADAT['osztalyId2osztalyJel'][ $ADAT['diak2osztaly'][ $dAdat['diakId'] ]];
+
+ echo '<tr class="'.str_replace('.','',$_osztalyJel).'">'."\n";
+ echo '<td class="sorsz">'.(++$i).'.</td>'."\n";
+ echo '<td><span class="icon-remove-sign" title="'._DIAK_TOROL_E.' ('.$dAdat['diakNev'].')"><input type="hidden" name="diakId" value="'.$dAdat['diakId'].'" /></span></td>'."\n";
+ echo '<td class="nev">'.$dAdat['diakNev'].' ('.$dAdat['diakId'].')</td>'."\n";
+ echo '<td class="osztaly">'.$_osztalyJel.'</td>'."\n";
+ echo '<td class="jelDt">'.$dAdat['jelentkezesDt'].'</td>'."\n";
+ if ($dAdat['jovahagyasDt'] != '0000-00-00 00:00:00') {
+ echo '<td class="jovahagy" title="'._ELUTASIT.'"><span class="icon-ok-sign"></span></td>'."\n";
+ echo '<td class="jovDt">'.$dAdat['jovahagyasDt'].'</td>'."\n";
+ } else {
+ echo '<td class="jovahagy" title="'._JOVAHAGY.'"><span class="icon-minus-sign"></span></td>'."\n";
+ echo '<td class="jovDt"></td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ if (__MODOSITHAT === true) {
+ echo '<tfoot>'."\n";
+ echo '<tr id="submitRow">';
+ echo '<td colspan="6">'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoor>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ echo '</td>'."\n";
+
+ if (__MODOSITHAT) {
+ echo '<td id="osztalyok">';
+ foreach ($ADAT['osztalyok'] as $oAdat) {
+ if (in_array($oAdat['osztalyId'], $ADAT['esemenyAdat']['osztalyIds'])) {
+ echo '<input type="button" class="plusz" id="showO'.$oAdat['osztalyId'].'" value="'.$oAdat['osztalyJel'].' ('.$oAdat['osztalyId'].') &#10140;" /><br />';
+ }
+ }
+ echo '</td>';
+ }
+
+ if (__MODOSITHAT) {
+ echo '<td class="openable" id="oEmpty">';
+ echo '<select name="odiak" class="diakok" multiple="multiple">';
+ echo '</select>';
+ echo '</td>';
+ }
+ foreach ($ADAT['esemenyAdat']['osztalyIds'] as $osztalyId) {
+ echo '<td style="display: none;" class="openable" id="o'.$osztalyId.'">';
+ echo '<select name="odiak" class="diakok" id="od'.$osztalyId.'" multiple="multiple">';
+ foreach ($ADAT['diakok'][$osztalyId] as $dAdat) {
+ echo '<option value="'.$dAdat['diakId'].'">'.$dAdat['diakNev'].' ('.$dAdat['diakId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="button" class="add" value="&#8678;" />'."\n";
+ echo '</td>';
+ }
+ echo '</tr></table>';
+
+ formEnd();
+
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml
new file mode 100644
index 00000000..1169390a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/esemeny/jelentkezes.phtml
@@ -0,0 +1,87 @@
+<?php
+
+ function putJelentkezesForm($ADAT) {
+
+ formBegin(array('method'=>'post', 'action'=>'', 'class'=>'esemeny'));
+
+ echo '<input type="hidden" name="action" value="jelentkezes" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+
+ echo '<table>'."\n";
+ echo '<tr title="'._OSSZES_AKTUALIS.'">'."\n";
+ echo '<th colspan="2">'._JELENTKEZES.'</th>'."\n";
+ echo '<th colspan="2">'._ESEMENYNEV.'</th>'."\n";
+ echo '<th>'._KATEGORIA.'</th>'."\n";
+ echo '<th>'._LETSZAM.'</th>'."\n";
+ echo '<th>'._MINMAX.'</th>'."\n";
+ echo '<th>'._JOVAHAGYAS.'</th>'."\n";
+ echo '</tr>'."\n";
+
+ foreach ($ADAT['esemenyek'] as $eAdat) {
+ $valasztott = (is_array($ADAT['valasztottEsemenyek']) && in_array($eAdat['esemenyId'], $ADAT['valasztottEsemenyek']));
+ $jovahagyott = (is_array($ADAT['jovahagyottEsemenyek']) && in_array($eAdat['esemenyId'], $ADAT['jovahagyottEsemenyek']));
+ $aktualis = (strtotime($eAdat['jelentkezesTolDt']) <= time() && time() <= strtotime($eAdat['jelentkezesIgDt']));
+ $maxLetszam = (($eAdat['max'] != 0) && ($eAdat['letszam'] >= $eAdat['max']));
+ $minLetszam = $eAdat['min'] >= $eAdat['letszam'];
+ $jelentkezhet = (
+ $aktualis // határidőn belül vagyunk
+ && (($eAdat['max'] == 0) || ($eAdat['letszam'] < $eAdat['max'])) // van még hely
+ );
+ $leadhat = (
+ $aktualis // határidőn belül vagyunk
+ && $eAdat['min'] < $eAdat['letszam'] // nem túl kicsi a létszám
+ && !$jovahagyott // jóváhagyott eseményt már ne adjon le
+ );
+ $minmaxClass="minmax";
+ if ($valasztott) $trClass='valasztott';
+ else $trClass='jelentkezes';
+ if ($aktualis) {
+ $trClass .= ' aktualis';
+ $trStyle = '';
+ } else {
+ $trStyle = ' style="display: none;" ';
+ };
+ if ($minLetszam) $minmaxClass .= " min";
+ if ($maxLetszam) $minmaxClass .= " max";
+ echo '<tr class="'.$trClass.'"'.$trStyle.'>'."\n";
+ if ($valasztott) {
+ echo '<td></td>'."\n";
+ echo '<td class="gombKontener lead">';
+ if ($leadhat) {
+ echo '<input type="submit" class="lead" id="l'. $eAdat['esemenyId'].'" name="lead'.$eAdat['esemenyId'].'" value="'._LEAD.'" />';
+ } else {
+ echo '<input type="submit" class="lead" id="l'. $eAdat['esemenyId'].'" name="lead'.$eAdat['esemenyId'].'" value="'._LEAD.'" disabled="disabled" />';
+ }
+ echo '</td>'."\n";
+ } else {
+ echo '<td class="gombKontener felvesz">';
+ if ($jelentkezhet) {
+ echo '<input type="submit" class="felvesz" id="f'. $eAdat['esemenyId'].'" name="felvesz'.$eAdat['esemenyId'].'" value="'._FELVESZ.'" />';
+ } else {
+ echo '<input type="submit" class="felvesz" id="f'. $eAdat['esemenyId'].'" name="felvesz'.$eAdat['esemenyId'].'" value="'._FELVESZ.'" disabled="disabled" />';
+ }
+ echo '</td>'."\n";
+ echo '<td></td>'."\n";
+ }
+ echo '<td>'.$eAdat['esemenyRovidnev'].'</td>'."\n";
+ echo '<td>';
+ _inlineHelp($eAdat['esemenyNev']."\n\n".$eAdat['esemenyLeiras']);
+ echo '</td>'."\n";
+ echo '<td>'.$eAdat['esemenyKategoria'].'</td>'."\n";
+ echo '<td class="letszam">'.$eAdat['letszam'].'</td>'."\n";
+ echo '<td class="'.$minmaxClass.'">'.$eAdat['min'].'-'.$eAdat['max'].'</td>'."\n";
+
+ echo '<td>';
+ if ($jovahagyott) echo '<span class="icon-ok-sign"></span>';
+ else echo '<span class="icon-minus-sign"></span>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml b/mayor-orig/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml
new file mode 100644
index 00000000..604b5c9c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/esemeny/ujEsemeny.phtml
@@ -0,0 +1,171 @@
+<?php
+
+ function esemenyForm($ADAT) {
+
+ $DIS = (__MODOSITHAT)?'':' disabled="disabled" ';
+ formBegin(array('action'=>'','method'=>'post','class'=>'esemeny'));
+
+ if ($ADAT['esemenyId'] == '') {
+ echo '<input type="hidden" name="action" value="ujEsemeny" />'."\n";
+ } else {
+ echo '<input type="hidden" name="action" value="esemenyModositas" />'."\n";
+ echo '<input type="hidden" name="esemenyId" value="'.$ADAT['esemenyId'].'" />'."\n";
+ }
+
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th><label for="rovidnev">'._ROVIDNEV.'</label></th>';
+ echo '<td>'."\n";
+ echo '<input id="rovidnev" type="text" name="esemenyRovidnev" value="'.$ADAT['esemenyAdat']['esemenyRovidnev'].'" '.$DIS.'/>'."\n";
+ _inlineHelp(_SUGO_ROVIDNEV);
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="nev">'._ESEMENYNEV.'</label></th>';
+ echo '<td>'."\n";
+ echo '<input id="nev" type="text" name="esemenyNev" value="'.$ADAT['esemenyAdat']['esemenyNev'].'" '.$DIS.'/>'."\n";
+ _inlineHelp(_SUGO_ESEMENYNEV);
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<td colspan="2"><hr/>'."\n";
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<td colspan="2">'."\n";
+ echo '<select id="kategoria" name="esemenyKategoria"'.$DIS.'>'."\n";
+ echo '<option value="">&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;'._KATEGORIA.'&nbsp;&nbsp;&nbsp;&nbsp;- </option>'."\n";
+ $SEL = array($ADAT['esemenyAdat']['esemenyKategoria'] => ' selected="selected" ');
+ foreach ($ADAT['esemenyKategoriak'] as $eKategoria) {
+ echo '<option value="'.$eKategoria.'"'.$SEL[$eKategoria].'>'.$eKategoria.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<label for="leiras"><strong>'._LEIRAS.'</strong></label>&nbsp;&nbsp;'."\n";
+ _inlineHelp(_SUGO_LEIRAS);
+ echo '<br/>';
+ echo '<textarea name="esemenyLeiras" id="leiras"'.$DIS.'>'.$ADAT['esemenyAdat']['esemenyLeiras'].'</textarea>'."\n";
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="tolDt">'._JELENTKEZES.'</label></th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="tolDt" name="jelentkezesTolDt" class="datetime" value="'.$ADAT['esemenyAdat']['jelentkezesTolDt'].'"'.$DIS.'/>
+ - <input type="text" id="igDt" name="jelentkezesIgDt" class="datetime" value="'.$ADAT['esemenyAdat']['jelentkezesIgDt'].'"'.$DIS.' />'."\n";
+ _inlineHelp(_SUGO_JELENTKEZES);
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="min">'._LETSZAM_KORLAT.'</label></th>';
+ echo '<td>'."\n";
+ echo '<select name="min"'.$DIS.'>'."\n";
+ echo '<option value="0"> - </option>'."\n";
+ $SEL = array($ADAT['esemenyAdat']['min'] => ' selected="selected" ');
+ for ($i=1; $i<501; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ }
+ echo '</select> - '."\n";
+ $count = count($ADAT['esemenyAdat']['diakIds']);
+ echo '<select name="max"'.$DIS.'>'."\n";
+ echo '<option value="0"> - </option>'."\n";
+ $SEL = array($ADAT['esemenyAdat']['max'] => ' selected="selected" ');
+ for ($i=1; $i<501; $i++) {
+ if ($count > $i) echo '<option value="'.$i.'"'.$SEL[$i].' disabled="disabled">'.$i.'</option>'."\n";
+ else echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ _inlineHelp(_SUGO_LETSZAM_KORLAT);
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ if ($ADAT['esemenyId'] != '') {
+
+ echo '<tr>';
+ echo '<td colspan="2"><hr/>'."\n";
+
+ echo '<div id="osztalyLista">'."\n";
+ echo '<strong>'._OSZTALYOK.'</strong>&nbsp;&nbsp'."\n";
+ _inlineHelp(_SUGO_OSZTALYOK);
+
+ echo '<ul>'."\n";
+ foreach ($ADAT['osztalyok'] as $oAdat) {
+ if (__MODOSITHAT) {
+ echo '<li>';
+ echo '<label class="oJel" for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['osztalyJel'].'</label>'."\n";
+ $CHK = (in_array($oAdat['osztalyId'], $ADAT['esemenyAdat']['osztalyIds']))?' checked="checked" ':'';
+ echo '<input type="checkbox" value="'.$oAdat['osztalyId'].'" name="esemenyOsztaly[]" id="osztaly'.$oAdat['osztalyId'].'" '.$CHK.'/>'."\n";
+ echo '<label for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['kezdoTanev'].'/'.$oAdat['vegzoTanev'].'.'.$oAdat['jel'].' ('.$oAdat['leiras'].')</label>'."\n";
+ echo '</li>';
+ } elseif (in_array($oAdat['osztalyId'], $ADAT['esemenyAdat']['osztalyIds'])) {
+ echo '<li>';
+ echo '<label class="oJel" for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['osztalyJel'].'</label>'."\n";
+ echo '<label for="osztaly'.$oAdat['osztalyId'].'">'.$oAdat['kezdoTanev'].'/'.$oAdat['vegzoTanev'].'.'.$oAdat['jel'].' ('.$oAdat['leiras'].')</label>'."\n";
+ echo '</li>';
+ }
+ }
+ echo '</ul>'."\n";
+ echo '<a href="'.href('index.php?page=naplo&sub=esemeny&f=esemenyDiak&esemenyId='.$ADAT['esemenyId']).'">'._ESEMENYJELENTKEZOK.'...</a>'."\n";
+ echo '</div>'."\n";
+
+ echo '</td>'."\n";
+ echo '</tr><tr>'."\n";
+ echo '<th><label for="tanarok">'._TANAROK.'</label></th>'."\n";
+ echo '<td class="tanarok">'."\n";
+ echo '<div class="select"><select id="esemenyTanar" name="esemenyTanar[]" multiple="multiple"'.$DIS.'>'."\n";
+ foreach ($ADAT['tanarok'] as $tAdat) {
+ if (in_array($tAdat['tanarId'], $ADAT['esemenyAdat']['tanarIds']))
+ echo '<option value="'.$tAdat['tanarId'].'">'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')</option>'."\n";
+ }
+ echo '</select></div>'."\n";
+
+ if (__MODOSITHAT) {
+ echo '<br />'."\n";
+ echo '<input type="button" id="plusz" value="+" />'."\n";
+ echo '<input type="button" id="minusz" value="&#8722;" />'."\n";
+ _inlineHelp(_SUGO_TANAROK);
+ echo '<div id="tanarLista" style="display: none" >'."\n";
+ echo '<span id="closeTanarLista">&times;</span>'."\n";
+ echo '<select id="tanarok" name="tanarok" multiple="multiple">'."\n";
+ foreach ($ADAT['tanarok'] as $tAdat) {
+ echo '<option value="'.$tAdat['tanarId'].'">'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="button" id="add" value="&#8678;" />'."\n";
+ echo '</div>'."\n";
+ }
+ echo '</td>'."\n";
+ echo '</tr>';
+ }
+
+ if (__MODOSITHAT) {
+ echo '<tr class="submit">'."\n";
+ echo '<td colspan="2" id="submitTd">'."\n";
+ echo '<input id="submitButton" type="submit" value="'._OK.'" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+ formEnd();
+
+ if ($ADAT['esemenyId'] != '' && __MODOSITHAT) {
+ formBegin(array('method'=>'post','action'=>'','class'=>'esemenyTorles'));
+ echo '<input type="hidden" name="action" value="esemenyTorles" />'."\n";
+ echo '<input type="hidden" name="esemenyId" value="'.$ADAT['esemenyId'].'" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" class="confirm" title="'._ESEMENY_TOROL_E.'" />'."\n";
+ formEnd();
+ }
+ }
+/*
+ function esemenyLista($ADAT) {
+ echo '<p>Ez még csúny, tudom... :)</p>';
+ if (is_array($ADAT['esemenyek'])) {
+ echo '<ul id="esemenyLista">';
+ foreach ($ADAT['esemenyek'] as $eAdat) {
+ echo '<li>';
+ formBegin(array('method'=>'post','action'=>''));
+ echo '<input type="hidden" name="esemenyId" value="'.$eAdat['esemenyId'].'" />'."\n";
+ echo '<input type="submit" value="'.$eAdat['esemenyRovidnev'].' ('.$eAdat['esemenyId'].')" />'."\n";
+ formEnd();
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+
+ }
+*/
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml b/mayor-orig/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml
new file mode 100644
index 00000000..2d357aa1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/export/bizonyitvany.phtml
@@ -0,0 +1,47 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=bizonyitvany'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="bizonyitvanyExport" />'."\n";
+
+ if (isset($ADAT['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ if (isset($ADAT['szemeszterAdat']['szemeszterId']))
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />'."\n";
+
+ echo '<fieldset><legend>'._EXPORT.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ $CHK = array('ods' => ' checked="checked" ');
+
+ echo '<tr>'."\n";
+ echo '<th>'._FORMATUM.'</th>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv"'.$CHK['csv'].' />'."\n";
+ echo '<label for="csv">'._CSV.'</label><br />'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods"'.$CHK['ods'].' />'."\n";
+ echo '<label for="ods">'._ODS.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml"'.$CHK['xml'].' />'."\n";
+ echo '<label for="xml">'._XML.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ if ($skin != 'ajax') formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/export/diakExport.phtml b/mayor-orig/www/skin/classic/module-naplo/html/export/diakExport.phtml
new file mode 100644
index 00000000..f3f8a8f2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/export/diakExport.phtml
@@ -0,0 +1,153 @@
+<?php
+
+ function putDiakTabla($ADAT) {
+
+ echo '<div id="tableDiv">';
+
+ $i = 0;
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ if ($ADAT['types'][$attr] == 'int') $sortType[] = 'Number';
+ elseif ($ADAT['types'][$attr] == 'date') $sortType[] = 'Date';
+ else $sortType[] = 'String';
+ if (in_array($attr, array('szuletesiHely','lakhelyHelyseg','nem','lakohelyiJellemzo'))) $selIndex[] = $i;
+ $i++;
+ }
+echo '<script type="text/javascript">'."var cellTypes = ['".implode("','", $sortType)."']; selIndex = [".implode(',', $selIndex)."];".'</script>';
+ echo '<table class="diak" id="diakTabla" class="filterable">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<th>';
+ echo $attrNev;
+ echo '</th>';
+ }
+ echo '<th></th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<th>';
+ echo $attrNev;
+ echo '</th>';
+ }
+ echo '<th></th>';
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ foreach ($ADAT['export'] as $i => $dAdat) {
+ echo '<tr>';
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<td>';
+ echo $dAdat[$attr];
+ echo '</td>'."\n";
+ }
+ echo '<td>';
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=diak')));
+ echo '<input type="hidden" name="diakId" value="'.$dAdat['diakId'].'" />';
+ echo '<input type="submit" value="&rarr;" />';
+ formEnd();
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+ echo '</div>';
+ }
+
+ function putDiakExportForm($ADAT) {
+
+ global $skin, $exportFormatum;
+
+ if ($skin != 'ajax') formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=diakExport'), 'class'=>"diak hideShowContainer", 'id'=>"exportOptions"));
+
+ echo '<input type="hidden" name="action" value="diakExport" />'."\n";
+ if (isset($ADAT['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ if (isset($ADAT['dt'])) echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+
+ echo '<div id="submitForm">';
+ echo '<input type="button" value="'._BEALLITASOK.'" class="onClickHideShow" />';
+
+ echo '<input type="submit" name="html" value="'._HTML.'" id="htmml" />'."\n";
+ echo '<input type="submit" name="csv" value="'._CSV.'" id="csv" />'."\n";
+ echo '<input type="submit" name="xml" value="'._XML.'" id="xml" />'."\n";
+
+ echo '</div>';
+
+
+ if (is_array($ADAT['export']) && count($ADAT['export']) > 0) {
+ echo '<fieldset class="openable" style="display: none;"><legend>'._EXPORT.'</legend>'."\n";
+ } else {
+ echo '<fieldset class="openable"><legend>'._EXPORT.'</legend>'."\n";
+ }
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th colspan="3">'._MEGJELENITENDO_MEZOK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td>';
+ echo '<select multiple="multiple" name="szabad" id="szabad">'."\n";
+ foreach ($ADAT['fields'] as $attr => $attrNev) {
+ if (!isset($ADAT['mezok'][$attr])) {
+ echo '<option value="'.$attr.'">'.$attrNev.'</option>';
+ }
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<input type="button" id="valaszt" value="&rarr;" />';
+ echo '<br />';
+ echo '<input type="button" id="torol" value="&larr;" />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select multiple="multiple" name="mezok[]" id="kivalasztott">'."\n";
+ foreach ($ADAT['mezok'] as $attr => $attrNev) {
+ echo '<option value="'.$attr.'">'.$attrNev.'</option>';
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td colspan="3" align="center">';
+ foreach ($exportFormatum as $formatum => $mezok) {
+ $format = ekezettelen($formatum);
+ echo '<input type="button" name="'.$format.'" value="'.$formatum.'" class="onClickMezoSelect" />'."\n";
+ echo '<input type="hidden" name="'.$format.'Lista" id="'.$format.'Lista" value="'.implode(',', $mezok).'" />'."\n";
+ }
+ echo '</td>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+
+ if ($skin != 'ajax') formEnd();
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/export/kreta.phtml b/mayor-orig/www/skin/classic/module-naplo/html/export/kreta.phtml
new file mode 100644
index 00000000..cea5556e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/export/kreta.phtml
@@ -0,0 +1,138 @@
+<?php
+
+ function putKretaTanarExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=kreta'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="kretaTanarExport" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+
+ echo '<fieldset><legend>Kréta - Tanár adatbázis</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>Tanár adatok</th>'."\n";
+ echo '</tr><tr>';
+ echo '<td>';
+ echo 'Elsődleges, hogy a KIR, KRÉTA és MaYoR rendszerekben a tanár neveket és születési dátumokat szinkronizálni kell!';
+ echo '</td>';
+ echo '</tr>';
+
+ echo '<tr><th>A MaYoR tanár adatainak letöltése (export)</th></tr>';
+
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<ul>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" checked="checked" />'."\n";
+ echo '<label for="xml">.XML</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">.CSV</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">.ODS</label>'."\n";
+ echo '</li></ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._LETOLTES.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ //if ($skin != 'ajax')
+ formEnd();
+ }
+
+
+ function putKretaTankorTanarExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=kreta'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="tankorTanarExport" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+
+ echo '<fieldset><legend>ETTF - Előzetes Tantárgyfelosztás</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>Előzetes Tantárgyfelosztás (ETTF) - egyszerű formátum</th>'."\n";
+ echo '</tr><tr>';
+ echo '<td>';
+ echo 'Az előzetes tantárgyfelosztás a kiválasztott formátumú file letöltése és megnyitása után <span style="color:green; font-weight:bold;">.xlsx</span> formában elmentve közvetlenül importálható a központi Kréta rendszerbe.';
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<td>';
+ echo '<ul>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" checked="checked" />'."\n";
+ echo '<label for="xml">.XML</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">.CSV</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">.ODS</label>'."\n";
+ echo '</li></ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tr><tr>';
+ echo '<td>';
+ echo 'A tankörtípusokban megkülönböztetjük a csak óratervi - képzési hálóban szereplő tanköröket.';
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<td>';
+ echo '<ul>';
+ $_CHK1 = ($ADAT['csakOratervi']==false) ? 'checked="checked" ': '';
+ $_CHK2 = ($ADAT['csakOratervi']==true) ? 'checked="checked" ': '';
+ echo '<li><input type="radio" id="mindenTankor_radio" name="csakOratervi" value="false" '.$_CHK1.'/> <label for="mindenTankor_radio">minden tankört</label></li>';
+ echo '<li><input type="radio" id="csakOratervi_radio" name="csakOratervi" value="true" '.$_CHK2.'/> <label for="csakOratervi_radio">csak óratervinek jelölt tanköröket</label></li>';
+ echo '</ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._LETOLTES.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ //if ($skin != 'ajax')
+ formEnd();
+
+ /* ha ki szeretnénk írni a bontasOk === false okat
+ echo '<table align="center">';
+ for ($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $D = $ADAT['tankorok'][$i];
+ if ($ADAT['tankorok'][$i]['bontasOk']===false) {
+ //dump($ADAT['tankorok'][$i]);
+ echo '<tr>';
+ echo '<td>'.$D['tankorNev'].' ('.$D['tankorId'].')</td>';
+ echo '<td>'.$D['hetiOraszam'].'</td>';
+ echo '<td>'.implode(',',$D['tanarIds']).'</td>';
+ echo '<td>';
+ dump($D['tervezettOraszamok']);
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</table>';
+ */
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/export/sulix.phtml b/mayor-orig/www/skin/classic/module-naplo/html/export/sulix.phtml
new file mode 100644
index 00000000..7979153d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/export/sulix.phtml
@@ -0,0 +1,43 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+ echo '<div class="txt">';
+ echo '<div>';
+ echo '<p>A MaYoR és a SuliXerver legújabb verziói képesek együttműködésre, aminek számos előnye van a felhasználók és az
+üzemeltetők számára. Az előnyök közé tartozik például, hogy az együttműködés során megoldottuk a közös felhasználókezelést, az
+egypontos bejelentkezést, az automatikus adatmentést, automatikus rendszerfrissítést. Ezen kívül a rendszer rendkívül kompakt módon,
+egyetlen szerverről is működhet.</p>';
+ echo '<p>A két rendszer együttműködésének előnyeit egyaránt kihasználhatják azok, akik a MaYoR mellett már használnak
+SuliXervert, de azok is, akik még nem, és most fogják telepíteni.</p>';
+ echo '<p>Az együttműködésnek két alapvető üzemmódja van:</p>';
+ echo '<ul>';
+ echo '<li>Teljes áttérés SuliXerverre: ebben az esetben az új SuliXerveren futó MaYoR alapú SuliX Napló fogja ezentúl az
+összes MaYoR funkciót ellátni. Ennek a megoldásnak az az előnye, hogy egy szerveren települ és üzemeltethető a komplett megoldás,
+valamint a közös adatbázisnak köszönhetően az adatok mindig egységesek és konzisztensek maradnak. Az adatok migrálásához csupán egy
+pendrive-ra van szükség, amelyre egy kattintással lementhetjük a meglévő MaYoR adatokat és a SuliXerveren egy kattintással beolvashatjuk
+azokat.</li>';
+ echo '<li>Integráció SuliXerverrel: ennél a módszernél a jelenlegi MaYoR szerver megmarad, de közös felhasználói adatbázist
+és autentikációt fog használni a SuliXerverrel. Ennek előnye, hogy külön szerveren is futhat a Napló, azonban néhány kényelmi
+funkció nem lesz elérhető, pl. egypontos belépés, integrált mentés, adatok változtatása esetén azok automatikus átvezetése a másik
+rendszerbe.</li>';
+ echo '</ul>';
+ echo '<p>Mindkét esetben kattintson a "Felhasználói azonosítók exportálása" gombra a lap alján, majd a keletkezett fájlt
+másolja egy hordozható adattárolóra. Amennyiben nincs futó SuliXervere, telepítsen egyet a <a href="http://www.sulix.hu">www.sulix.hu</a>
+oldalon leírtak alapján.
+A SuliXerveren a szokványos beállításokon kívül még néhány beállítást meg kell tennie ahhoz, hogy a mentett adatokat be tudja olvasni.
+Ehhez lépjen be a SuliXerverre adminisztrátorként, majd kattintson a Segédeszközök -> SuliXerver Napló beállítások fülre, válassza ki
+az "Integrált napló használata" illetve a "Külső napló használata" lehetőséget és kövesse az ott leírtakat.</p>';
+
+ echo '</div>';
+
+ formBegin(array('method'=>'post','action'=>'','class'=>'export'));
+ echo '<input type="hidden" name="action" value="sulixExport" />'."\n";
+ echo '<input type="submit" value="'._EXPORT.'" />'."\n";
+ formEnd();
+
+ echo '</div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml b/mayor-orig/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml
new file mode 100644
index 00000000..dc1e2565
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/export/tanarOsztalyOraszam.phtml
@@ -0,0 +1,46 @@
+<?php
+
+ function putTanarOsztalyOraszamForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=tanarOsztalyOraszam'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="tanarOsztalyOraszam" />'."\n";
+
+ echo '<fieldset><legend>Tanár-osztály óraszám</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr><th>A MaYoR tanár-osztály óraszám mátrixának letöltése (export)</th></tr>';
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<ul>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" checked="checked" />'."\n";
+ echo '<label for="xml">.XML</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">.CSV</label>'."\n";
+ echo '</li>';
+ echo '<li>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">.ODS</label>'."\n";
+ echo '</li></ul>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._LETOLTES.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ //if ($skin != 'ajax')
+ formEnd();
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml
new file mode 100644
index 00000000..fa495fad
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/export/tantargyFelosztas.phtml
@@ -0,0 +1,41 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+ global $skin;
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=export&f=tantargyFelosztas'), 'class'=>"export"));
+ echo '<input type="hidden" name="action" value="tantargyFelosztasExport" />'."\n";
+
+
+ echo '<fieldset><legend>'._EXPORT.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'._FORMATUM.'</th>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv" />'."\n";
+ echo '<label for="csv">'._CSV.'</label><br />'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="ods" id="ods" />'."\n";
+ echo '<label for="ods">'._ODS.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml" />'."\n";
+ echo '<label for="xml">'._XML.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ if ($skin != 'ajax') formEnd();
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml
new file mode 100644
index 00000000..d8249691
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/elmaradas.phtml
@@ -0,0 +1,63 @@
+<?php
+
+ function putElmaradas($Elmaradas, $Tanarok) {
+
+ echo '<table class="elmaradas" cellspacing="1">';
+ echo '<thead><tr>';
+ echo '<th colspan="2">'._TANAR.'</th>';
+ echo '<th>'._LEZART.'</th>';
+ echo '<th>'._BEIRANDO.'</th>';
+ echo '</tr></thead><tfoot><tr><td colspan="4">'._HATARIDO.':'._HALADASI_HATARIDO.'; '._MAIDATUM.': '.date('Y-m-d').'</td></tr></tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($Elmaradas['lezart']); $i++) {
+
+ echo '<tr>';
+ $tanarId = $Elmaradas['lezart'][$i]['ki'];
+ $tanarNev = $Tanarok[$tanarId]['tanarNev'];
+ $Tanarok[$tanarId]['volt'] = true;
+ $lezartDb = $Elmaradas['lezart'][$i]['db'];
+ $beirandoDb = $Elmaradas['beirando'][$tanarId]['db'];
+ echo '<th>';
+ echo ($i+1).'. ';
+ echo '</th>';
+ echo '<th class="tanarNev" data-tanarid="'.$tanarId.'">';
+ echo $tanarNev;
+ echo '</th>';
+ echo '<td>';
+ echo $lezartDb;
+ echo '</td>';
+ echo '<td>';
+ echo $beirandoDb;
+ echo '</td>';
+ echo '</tr>';
+ }
+
+ foreach ($Elmaradas['beirando'] as $tanarId => $beirandoAdat) {
+ if (!$Tanarok[$tanarId]['volt']) {
+ $tanarNev = $Tanarok[$tanarId]['tanarNev'];
+ $lezartDb = '';
+ $beirandoDb = $Elmaradas['beirando'][$tanarId]['db'];
+ $Tanarok[$tanarId]['volt'] = true;
+ echo '<tr class="beirando">';
+ echo '<th>';
+ echo (++$i).'.';
+ echo '</th>';
+ echo '<th class="tanarNev" data-tanarid="'.$tanarId.'">';
+ echo $tanarNev;
+ echo '</th>';
+ echo '<td>';
+ echo $lezartDb;
+ echo '</td>';
+ echo '<td>';
+ echo $beirandoDb;
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ // Ha nagyon akarjuk, akkor kirakhatjuk a többi nevet is - de nem akarjuk...
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml
new file mode 100644
index 00000000..7d9adb23
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/elszamolas.phtml
@@ -0,0 +1,284 @@
+<?php
+
+ function putElszamolas($ADAT) {
+
+ if (!is_array($ADAT['napok']) || count($ADAT['napok'])==0) return false;
+
+ $napszam = ($ADAT['napok'][1]['tanítási nap']+$ADAT['napok'][1]['speciális tanítási nap']);
+ $napTipus = array('tanítási nap','speciális tanítási nap','tanítás nélküli munkanap','tanítási szünet');
+ $T = array(
+ 'lekötött' => array('normál','normál máskor','helyettesítés'),
+ 'fennmaradó' => array('helyettesítés','felügyelet','előírt egyéb','egyéb') // 'összevonás'
+ );
+
+ $Munkaido = array_keys($T);
+ $SumTipus = array('normál','normál máskor','helyettesítés','felügyelet','egyéb');
+
+ /* Munkaterv */
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1">'."\n";
+ echo '<thead>';
+ echo '<tr><th>'._MUNKATERV.'</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<th>'.$tipus.'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '</thead><tfoot></tfoot>';
+ echo '<tbody>';
+ foreach ($ADAT['napok'] as $munkatervId => $mAdat) {
+ echo '<tr><th>'.$ADAT['munkaterv'][$munkatervId]['munkatervNev'].' ('.$munkatervId.')</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<td>'.$mAdat[$tipus].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+
+ /* Elszámolás, órastatisztika */
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1" >'."\n";
+ echo '<thead><tr>';
+
+ echo '<th rowspan="3">'._TANAR.'</th>';
+ echo '<th rowspan="1" colspan="7">'._KOTOTT_MUNKAIDO.'</th>';
+ echo '<th colspan="3">Σ</th>';
+ echo '<th rowspan="2" colspan="4">';
+ echo _ELOIRT_HETI_MUNKAORA.' '.$napszam.' '._NAPRA_VETITVE;
+ echo '<div style="border: solid 1px #ddd; width:174px; height:8px; background-color: #aaa;"><span id="munkaoraBar" style="display:block; width:0%;height:8px;"></span></div>';
+ echo '</th>';
+ echo '<th colspan="2" rowspan="2">'._HETI_ORASZAM.'</th>';
+
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">lekötött</th>';
+ //echo '<th colspan="1">lekötött+fennmaradó</th>';
+ echo '<th colspan="4">fennmaradó</th>';
+// echo '<th colspan="1">nem számolt</th>'; // összevonás
+ echo '<th rowspan="2">lekötött</th>';
+ echo '<th rowspan="2">fennmaradó</th>';
+ echo '<th rowspan="2">+</th>';
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<th class="'.str_replace(' ','_',ekezettelen($Tipus[$i])).'">'.$Tipus[$i].'</th>';
+ }
+ }
+ echo '<th class="e1">55%</th>';
+ echo '<th class="e2">65%</th>';
+ echo '<th class="e3">80%</th>';
+ echo '<th class="e4">100%</th>';
+ echo '<th>'._TANTARGYFELOSZTASBOL.'</th><th>'._ORARENDBOL.'</th>';
+
+ echo '</tr></thead>'."\n";
+
+ echo '<tbody>';
+ for ($t = 0; $t < count($ADAT['tanarok']); $t++) {
+ $_O = $ADAT['tanarok'][$t];
+ $tanarId = $ADAT['tanarok'][$t]['tanarId'];
+ if (!__VEZETOSEG && !__NAPLOADMIN && $tanarId!=__USERTANARID) continue;
+ $tanarNev = $ADAT['tanarok'][$t]['tanarNev'];
+
+ // Elavult
+ //$tanarHetiMunkaora = $ADAT['tanarok'][$t]['hetiMunkaora'];
+ //$_THM = ($tanarHetiMunkaora / 5) * $napszam ; // Tanári Heti Munkaóra a vizsgált időszakra vetítve (tanítási napok
+
+ $_THM = $_heti = ($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']):40;
+ $_kotottMax= ($_O['hetiKotottMaxOraszam']>0) ? ($_O['hetiKotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.8):32);
+ $_lekotottMax = ($_O['hetiLekotottMaxOraszam']>0) ? ($_O['hetiLekotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.65):26);
+ $_lekotottMin = ($_O['hetiLekotottMinOraszam']>0) ? ($_O['hetiLekotottMinOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.55):22);
+
+ $_korrekciosSzam = $napszam/5; // HETI öt nap
+
+ $sum = 0;
+ for ($i=0; $i<count($SumTipus); $i++) {
+ $sum += intval($ADAT[$tanarId][$SumTipus[$i]]);
+ }
+ if ($sum<=($_lekotottMin*$_korrekciosSzam)) $_style = ' class="e1" ';
+ elseif ($sum<=($_lekotottMax*$_korrekciosSzam)) $_style=' class="e2" ';
+ elseif ($sum<=($_kotottMax*$_korrekciosSzam)) $_style=' class="e3" ';
+ else $_style = ' class="e4" ';
+
+ $SUM = array();
+ echo '<tr data-percent="'.((100*$sum/($_heti*$_korrekciosSzam))).'" '.$_style.'>';
+ echo '<th class="tanarNev" data-tanarid="'.$tanarId.'">'.$tanarNev.'</th>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<td class="'.ekezettelen($Tipus[$i]).' '.ekezettelen($_munkaido).'">';
+ if ($Tipus[$i]=='helyettesítés') {
+ echo $_c = ($ADAT['detailed'][$tanarId][$Tipus[$i]][$_munkaido]);
+ } elseif (in_array($Tipus[$i],array('előírt egyéb','egyéb'))) {
+ if ($Tipus[$i]=='előírt egyéb') echo $_c = ($ADAT['detailed_ki_tipus_munkaido_eredet'][$tanarId]['egyéb'][$_munkaido]['órarend']);
+ else echo $_c = ($ADAT['detailed_ki_tipus_munkaido_eredet'][$tanarId]['egyéb'][$_munkaido]['plusz']);
+ } else {
+ echo $_c = $ADAT[$tanarId][$Tipus[$i]];
+ }
+ echo '</td>';
+ $SUM[$_munkaido] += $_c;
+ }
+ }
+ echo '<th class="sum lekotott">'.$SUM['lekötött'].'</th>';
+ echo '<th class="sum fennmarado">'.$SUM['fennmaradó'].'</th>';
+ echo '<th class="sumsum">'.($SUM['lekötött']+$SUM['fennmaradó']).'</th>';
+
+ echo '<td '.$_style.'>'.($_lekotottMin*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_lekotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_kotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_heti*$_korrekciosSzam).'</th>';
+
+ echo '<td>'.number_format($_O['hetiKotelezoOraszam'],1).'</td>';
+ echo '<td>'.number_format($ADAT[$tanarId]['oraszam'],1).'</td>';
+ echo '</tr>'."\n";
+
+ }
+
+ echo '</tbody></table>'."\n";
+
+ }
+
+
+/*
+ function putElszamolas_old($ADAT) {
+
+ if (!is_array($ADAT['napok']) || count($ADAT['napok'])==0) return false;
+
+ $napszam = ($ADAT['napok'][1]['tanítási nap']+$ADAT['napok'][1]['speciális tanítási nap']);
+ $napTipus = array('tanítási nap','speciális tanítási nap','tanítás nélküli munkanap','tanítási szünet');
+ $T = array(
+ 'lekötött' => array('normál','normál máskor','helyettesítés'),
+ 'fennmaradó' => array('helyettesítés','felügyelet','egyéb') // 'összevonás'
+ );
+ $Munkaido = array('lekötött','fennmaradó');
+ $Tipus = array('normál','normál máskor','helyettesítés','felügyelet','egyéb'); // 'összevonás'
+ $SumTipus = array('normál','normál máskor','helyettesítés','felügyelet','egyéb');
+
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1">'."\n";
+ echo '<thead>';
+ echo '<tr><th>'._MUNKATERV.'</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<th>'.$tipus.'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '</thead><tfoot></tfoot>';
+ echo '<tbody>';
+ foreach ($ADAT['napok'] as $munkatervId => $mAdat) {
+ echo '<tr><th>'.$ADAT['munkaterv'][$munkatervId]['munkatervNev'].' ('.$munkatervId.')</th>';
+ foreach ($ADAT['napTipusok'] as $tipus) {
+ echo '<td>'.$mAdat[$tipus].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+
+ echo '<table class="elszamolas" cellpadding="1" cellspacing="1" >'."\n";
+ echo '<thead><tr>';
+
+ echo '<th rowspan="3">'._TANAR.'</th>';
+ echo '<th rowspan="1" colspan="'.(count($Tipus)+1).'">'._KOTOTT_MUNKAIDO.'</th>';
+ echo '<th colspan="3">Σ</th>';
+
+ echo '<th rowspan="2" colspan="4">'._ELOIRT_HETI_MUNKAORA.' '.$napszam.' '._NAPRA_VETITVE.'</th>';
+ echo '<th rowspan="3">'._HETI_ORASZAM.'</th>';
+
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">lekötött</th>';
+ //echo '<th colspan="1">lekötött+fennmaradó</th>';
+ echo '<th colspan="3">fennmaradó</th>';
+// echo '<th colspan="1">nem számolt</th>';
+ echo '<th rowspan="2">lekötött</th>';
+ echo '<th rowspan="2">fennmaradó</th>';
+ echo '<th rowspan="2">+</th>';
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<th>'.$Tipus[$i].'</th>';
+ }
+ }
+ echo '<th>55%</th>';
+ echo '<th>65%</th>';
+ echo '<th>80%</th>';
+ echo '<th>100%</th>';
+
+ echo '</tr></thead>'."\n";
+
+ echo '<tbody>';
+ for ($t = 0; $t < count($ADAT['tanarok']); $t++) {
+ $_O = $ADAT['tanarok'][$t];
+
+ $tanarId = $ADAT['tanarok'][$t]['tanarId'];
+ if (!__VEZETOSEG && !__NAPLOADMIN && $tanarId!=__USERTANARID) continue;
+ $tanarNev = $ADAT['tanarok'][$t]['tanarNev'];
+
+ // Elavult
+ //$tanarHetiMunkaora = $ADAT['tanarok'][$t]['hetiMunkaora'];
+ //$_THM = ($tanarHetiMunkaora / 5) * $napszam ; // Tanári Heti Munkaóra a vizsgált időszakra vetítve (tanítási napok
+
+ $_THM = $_heti = ($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']):40;
+ $_kotottMax= ($_O['hetiKotottMaxOraszam']>0) ? ($_O['hetiKotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.8):32);
+ $_lekotottMax = ($_O['hetiLekotottMaxOraszam']>0) ? ($_O['hetiLekotottMaxOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.65):26);
+ $_lekotottMin = ($_O['hetiLekotottMinOraszam']>0) ? ($_O['hetiLekotottMinOraszam']) : (($_O['hetiMunkaora']>0) ? ($_O['hetiMunkaora']*0.55):22);
+
+ $_korrekciosSzam = $napszam/5; // HETI öt nap
+
+ $sum = 0;
+ $SUM = array();
+ echo '<tr>';
+ echo '<th><a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tanarId='.$tanarId).'">'.$tanarNev.'</a></th>';
+ foreach ($T as $_munkaido => $Tipus) {
+ for ($i = 0; $i < count($Tipus); $i++) {
+ echo '<td class="'.ekezettelen($Tipus[$i]).' '.ekezettelen($_munkaido).'">';
+
+
+ echo '<span title="';
+ echo intval($ADAT['detailed'][$tanarId][$Tipus[$i]]['lekötött']).'+';
+ echo intval($ADAT['detailed'][$tanarId][$Tipus[$i]]['fennmaradó']).'=';
+ echo '">';
+ if ($Tipus[$i]=='helyettesítés') {
+ echo $_c = ($ADAT['detailed'][$tanarId][$Tipus[$i]][$_munkaido]);
+ } elseif ($Tipus[$i]=='egyéb') {
+ dump($ADAT['detailed_ki_tipus_munkaido_eredet'][$tanarId]);
+ } else {
+ echo $_c = $ADAT[$tanarId][$Tipus[$i]];
+ }
+ echo '</span>';//ezt mégsem így kéne
+ echo '</td>';
+ $SUM[$_munkaido] += $_c;
+ }
+ }
+ for ($i=0; $i<count($SumTipus); $i++) {
+ $sum += intval($ADAT[$tanarId][$SumTipus[$i]]);
+ }
+ echo '<th class="sum lekotott">'.$SUM['lekötött'].'</th>';
+ echo '<th class="sum fennmarado">'.$SUM['fennmaradó'].'</th>';
+ echo '<th class="sumsum">'.($SUM['lekötött']+$SUM['fennmaradó']).'</th>';
+
+
+ if ($_THM>0) $eff = @ceil(100*$sum/$_THM);
+ else $eff = 100;
+
+ if ($eff<=55) $_style = ' class="e1" ';
+ elseif ($eff<=65) $_style = ' class="e2" ';
+ elseif ($eff<=80) $_style = ' class="e3" ';
+ else $_style = ' class="e4" ';
+ //echo '<td '.$_style.'>'.$_THM*0.55.'</td>';
+ //echo '<td '.$_style.'>'.$_THM*0.65.'</td>';
+ //echo '<td '.$_style.'>'.$_THM*0.80.'</td>';
+ //echo '<td '.$_style.' title="'.$ADAT['tanarok'][$t]['hetiMunkaora'].'" >'.$_THM.'</th>';
+ echo '<td '.$_style.'>'.($_lekotottMin*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_lekotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_kotottMax*$_korrekciosSzam).'</td>';
+ echo '<td '.$_style.'>'.($_heti*$_korrekciosSzam).'</th>';
+
+ echo '<td>'.number_format($ADAT[$tanarId]['oraszam'],1).'</td>';
+
+ echo '</tr>'."\n";
+
+ }
+
+ echo '</tbody></table>'."\n";
+
+ }
+*/
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml
new file mode 100644
index 00000000..5f958c54
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/haladasi.phtml
@@ -0,0 +1,697 @@
+<?php
+/*
+ module: naplo
+
+ todo: függvény paraméterezések tisztítása (2010)
+
+ függőségek:
+
+ function putHaladasiBejegyzesek($data, $tankorId, $osztalyId, $tanarId, $title, $diakId, $order, $ADAT)
+ |- function putNap($dt, $dNap, $napInfo, $doga, $napInfo2)
+ |-function putHaladasiDolgozat
+ |-function putOra($dOra)
+ |- function putTankorNap($dt, $dNap, $doga, $order)
+ |-function putHaladasiDolgozat($dt,$doga)
+ |-function putTankorOra($dOra)
+ function putHetesForm($ADAT)
+
+*/
+##
+# Haladási naplo megjelenítése
+##
+
+ global $SZLO;
+
+ function putHaladasiBejegyzesek($ADAT) {
+
+ global $_TANEV,$SZLO;
+ // kompatibilitás miatt -- átnevezhetők
+ $title = $ADAT['title'];
+ $data = $ADAT['haladasi'];
+ $order = $ADAT['order'];
+ //..
+ $tankorId = $ADAT['tankorId'];
+ $osztalyId = $ADAT['osztalyId'];
+ $tanarId = $ADAT['tanarId'];
+ $diakId = $ADAT['diakId'];
+ $teremId = $ADAT['teremId'];
+
+ if ($ADAT['title']=='') return;
+
+ if ($tankorId!='') $AKTIV_TH['tankor'] = true;
+
+ $FORM = array('action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi'), 'name'=>'haladasiOrabeiras', 'class'=>'onChangeRequest');
+ formBegin($FORM);
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="teremId" value="'.$teremId.'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="order" value="'.$order.'" />'."\n";
+ echo '<input type="hidden" name="action" value="haladasiNaploBeiras" />'."\n";
+ if ($tankorId != '') echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+
+ echo '<table class="haladasiBejegyzesek" align="center" cellpadding="1" cellspacing="1">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th>';
+ if ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']>0) {
+ echo '<span class="icon-time"></span>';
+ echo ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']);
+ }
+ echo '</th>';
+ echo '<th colspan="7" class="fejlec8">';
+ echo $title;
+ if ($tanarId!='') {
+ if ($ADAT['csakUres']==true) {
+ $_CHK = ' checked="checked" ';
+ $_ACTIVE = ' class="on" ';
+ $AKTIV_TH['tananyag'] = true;
+ }
+ echo ' <label for="csakUres" '.$_ACTIVE.'><span class="icon-bullhorn"></span></label>';
+ echo '<input type="checkbox" id="csakUres" name="csakUres" value="1" class="onChangeSubmit" '.$_CHK.' style="display:none;" />';
+ $AKTIV_TH['tanar'] = true;
+ }
+ echo '</th></tr>'."\n";
+ echo '<tr>';
+ echo '<th style="width:30px;">';
+ // ENTER esetén az első submit érvényes - ne a dátum gomb legyen
+ echo '<input type="submit" value="" class="rejtettGomb DOA" style="display:none;" />'."\n"; //⨁⍟☉
+ echo _ORA;
+ //echo '<input type="button" id="rejtMutat" name="orderInvert" value="'._ORA.' ⨁" class="rejtettGomb" tabindex="10" />'."\n";
+ //if ($order=='DESC') echo '<img src="skin/classic/module-naplo/img/fel.gif" alt="^" />'."\n";
+ //else echo '<img src="skin/classic/module-naplo/img/le.gif" alt="v" />'."\n";
+ echo '</th>';
+ echo '<th colspan="3">';
+ echo _TANKOR;
+ if ($AKTIV_TH['tankor']) echo '<span class="aktiv icon-bookmark"></span>';
+ echo '</th>';
+ echo '<th>';
+ echo _TANAR;
+ if ($AKTIV_TH['tanar']) echo '<span class="aktiv icon-bookmark"></span>';
+ echo '</th><th>'._ORASZAM.'</th>';
+ echo '<th style="width:45%">';
+ echo _TANANYAG;
+ if ($AKTIV_TH['tananyag']) echo '<span class="aktiv icon-bookmark"></span>';
+ echo '</th>';
+ echo '<th style="width:64px;">';
+ //if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz1" value="<<" tabindex="7" />';
+ //if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz1" value=">>" tabindex="8" />';
+ if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<button class="gomb" type="submit" name="lapoz1" value="prevWeek" tabindex="7"><span class="icon-chevron-left"></span></button>';
+ if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<button class="gomb" type="submit" name="lapoz1" value="nextWeek" tabindex="8"><span class="icon-chevron-right"></span></button>';
+ echo ' </th></tr>'."\n";
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th>';
+ if ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']>0) {
+ echo '<span class="icon-time"></span>';
+ echo ($ADAT['oraTerheles'][$ADAT['tanarId']]['ossz']['heti']);
+ }
+ echo '</th>';
+ echo '<th colspan="7">';
+ // if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz" value="<<" tabindex="5" />'."\n";
+ if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<button class="gomb" type="submit" name="lapoz1" value="prevWeek" tabindex="7"><span class="icon-chevron-left"></span></button>';
+
+ echo ' '._IDOSZAK.': '.str_replace('-','.',_SHOW_DAYS_FROM) . '. - '. str_replace('-','.', _SHOW_DAYS_TO) .'. '."\n";
+ // if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz" value=">>" tabindex="6" />'."\n";
+ if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<button class="gomb" type="submit" name="lapoz1" value="nextWeek" tabindex="8"><span class="icon-chevron-right"></span></button>';
+
+ echo '</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ // -------------------------------
+ $toTime = strtotime(_SHOW_DAYS_TO);
+ $fromTime = strtotime(_SHOW_DAYS_FROM);
+
+ if ($order == 'ASC') {
+
+ for ($time = $fromTime; $time <= $toTime; $time = strtotime('1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok'], $ADAT['tanitasiNap'][$dt]);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ } else {
+
+ for ($time = $toTime; $time >= $fromTime; $time = strtotime('-1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok'], $ADAT['tanitasiNap'][$dt]);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ }
+ // ---------------------------------
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+
+ function putNap($dt, $dNap, $napInfos, $doga, $napInfo2) {
+
+ global $ADAT;
+ global $aHetNapjai;
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ $tipus = $orarendiHet = $megjegyzes = array();
+ if (is_array($napInfos)) foreach ($napInfos as $ni) {
+ if (!in_array($ni['tipus'], $tipus)) $tipus[] = $ni['tipus'];
+ if ($ni['orarendiHet'] != 0 && !in_array($ni['orarendiHet'], $orarendiHet)) $orarendiHet[] = $ni['orarendiHet'];
+ if ($ni['megjegyzes'] != '' && !in_array($ni['megjegyzes'], $megjegyzes)) $megjegyzes[] = $ni['megjegyzes'];
+ }
+ $tanitasiNap = false;
+ if (in_array('tanítási nap', $tipus) || in_array('speciális tanítási nap', $tipus)) {
+ if (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+ else echo '<tbody class="paratlanNap">'."\n";
+ $tanitasiNap = true;
+ } elseif (in_array('tanítás nélküli munkanap', $tipus)) {
+ echo '<tbody class="tanitasNelkul">'."\n";
+ } elseif (in_array('szorgalmi időszakon kívüli munkanap', $tipus)) {
+ echo '<tbody class="szorgalmiIdoszakonKivul">'."\n";
+ } else {
+ echo '<tbody class="szunet">'."\n";
+ }
+/*
+ if ($napInfo['tipus'] == 'tanítási szünet') echo '<tbody class="szunet">'."\n";
+ elseif ($napInfo['típus'] == 'tanítás nélküli munkanap') echo '<tbody class="tanitasNelkul">'."\n";
+ elseif (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+ else echo '<tbody class="paratlanNap">'."\n";
+<button type="button" name="orderInvert" value="" class="rejtMutat" tabindex="10">
+
+*/
+ echo '<tr>';
+ echo '<th class="nap">';
+ if (__PLUSZBEIRHAT===true) echo '<div class="icon-plus-sign rejtMutat"></div>';
+ echo '</th>'."\n";
+ // Az első cella a dátum/nap
+ echo '<th colspan="7" class="nap">';
+ echo str_replace('-','.',$dt) .'. '. $aHetNapjai[(date('w',$time)+6)%7];
+ if ($napInfo2['napszam']!='' || $napInfo['orarendiHet'] != 0) {
+ echo ' (';
+ // if ($napInfo2['napszam']!='') {
+ if ($tanitasiNap) {
+ echo $napInfo2['napszam'] . '. ' . _TANITASI_NAP;
+ if ($napInfo['orarendiHet'] != 0) echo '/';
+ }
+ // if ($napInfo['orarendiHet'] != 0) echo $napInfo['orarendiHet'] . '. '. _HET;
+ if (count($orarendiHet) > 0) echo ' - '.implode('./',$orarendiHet).'. '._HET;
+ // if ($napInfo['megjegyzes'] != '') echo ' - '.$napInfo['megjegyzes'];
+ if (count($megjegyzes) > 0) echo ' - '.implode('/', $megjegyzes);
+ echo ')';
+ } else {
+ echo '<br/>'.implode(' ',$tipus);
+ }
+ echo '</th>';
+ echo '</tr>';
+ putHaladasiDolgozat($dt,$doga);
+
+ $o=0; // MINORA
+ if ($count > 0) {
+ for ($i=0; $i<$count; $i++) {
+ if (__PLUSZBEIRHAT===true && intval($dNap[$i]['ora'])>=$o) {
+ while ($o < intval($dNap[$i]['ora'])) {
+// if (__PLUSZBEIRHAT===true) {
+ putUjOra(array('dt'=>$dt, 'ora'=>$o++));
+// }
+ }
+ }
+ if ($dNap[$i]['ki']!=$ADAT['tanarId'] && __PLUSZBEIRHAT===true) putUjOra(array('dt'=>$dt, 'ora'=>$o, 'class'));
+ putOra($dNap[$i]);
+ $o=intval($dNap[$i]['ora'])+1;
+ } // órák kiírása
+ for($j=intval($dNap[$i-1]['ora'])+1; $j<=$ADAT['maxOra']; $j++) {
+ if (__PLUSZBEIRHAT===true) putUjOra(array('dt'=>$dt, 'ora'=>$j));
+ }
+ } else {
+ echo '<tr><th colspan="8" class="nincsOra">'._NINCS_ORAJA.'</th></tr>';
+// if ($tanitasiNap && strtotime(date('Y-m-d'))>=strtotime($dt)) {
+// if (
+// (strtotime(date('Y-m-d'))>=strtotime($dt)
+// || ((__NAPLOADMIN===true || __VEZETOSEG===true))
+// )) {
+ for($j=1; $j<=$ADAT['maxOra']; $j++) {
+ if (__PLUSZBEIRHAT===true) putUjOra(array('dt'=>$dt, 'ora'=>$j));
+ }
+
+// }
+ }
+
+ echo '</tbody>'."\n";
+
+ }
+
+
+ function putTankorNap($dt, $dNap, $doga, $order) {
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ if (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+ else echo '<tbody class="paratlanNap">'."\n";
+
+ putHaladasiDolgozat($dt,$doga);
+
+ for ($i=0; $i<$count; $i++) {
+ if ($order == 'DESC') putTankorOra($dNap[$count-$i-1]);
+ else putTankorOra($dNap[$i]);
+ } // órák kiírása
+
+ echo '</tbody>'."\n";
+
+ }
+
+
+ function putHaladasiDolgozat($dt,$doga) {
+
+ for ($i=0;$i<count($doga['tervezett'][$dt]);$i++) {
+ $did = $doga['tervezett'][$dt][$i];
+ echo '<tr>';
+ echo '<td colspan="8" class="dolgozat">';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did);
+ echo '<a href="'.$href.'">';
+ echo _BEJELENTETT_DOLGOZAT . ': '. $doga[$did]['dolgozatNev'];
+ echo ' (' ;
+ for ($j=0;$j<count($doga[$did]['tankor']);$j++) {
+ if ($j != 0) echo ', ';
+ echo $doga[$did]['tankor'][$j]['tankorNev'];
+ }
+ echo ')';
+ echo '</a>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ }
+
+ function putUjOra($dOra) {
+
+ global $ADAT; // --FIXME
+
+ if (__TANAR !==true && __VEZETOSEG!==true && __NAPLOADMIN !== true) return false;
+ if (__NAPLOADMIN ===true || __VEZETOSEG===true) {
+ $_eredet='órarend';
+ if (__PLUSZBEIRHAT!==true
+ || strtotime($dOra['dt'])>strtotime("+1week")
+ || (strtotime(_ZARAS_HATARIDO)>strtotime($dOra['dt']))
+ // Ha már a haladási naplót írhatja, akkor a plusz órát is engedjük meg...
+ // || (__TANAR ===true && strtotime(_HALADASI_HATARIDO)>strtotime($dOra['dt']))
+ ) return false;
+ } else {
+ $_eredet='plusz';
+ if (__PLUSZBEIRHAT!==true
+ || strtotime($dOra['dt'])>time()
+ || (__TANAR ===true && strtotime(_HALADASI_HATARIDO)>strtotime($dOra['dt']))
+ ) {
+ return false;
+ }
+ }
+
+ $_tipus='egyéb';
+
+ echo '<tr class="ujOra" style="display:none">';
+ echo '<th class="ora">';
+ echo $dOra['ora'].'.';
+ echo '</th>'."\n";
+ echo '<td class="t">';
+ echo '<select class="DOA" name="UJORA[]" style="width:90%">';
+ echo '<option value="">'._FELADAT_TIPUS.'</option>';
+ if (is_array($ADAT['feladatTipus'])) foreach($ADAT['feladatTipus'] as $feladatTipusId=>$_D) {
+ echo '<option value="'.$dOra['dt'].'_'.$dOra['ora'].'_'.$_tipus.'_'.$_D['feladatTipusId'].'">'.$_D['feladatTipusLeiras'].' ('.$_D['feladatTipusId'].')</option>';
+ }
+ echo '</select>';
+ //echo $ADAT['feladatTipus'][$dOra['feladatTipusId']]['feladatTipusLeiras'].' ('.$dOra['eredet'].')';
+ echo '<input type="submit" value="'._OK.'" class="gomb DOA" />';
+ echo '</td>'."\n";
+ echo '<td class="mg">';
+ echo '</td>';
+ echo '<td class="mg">';
+ echo '</td>'."\n";
+ // ----- Tanár(ok) -------------------------------
+ echo '<td class="t">';
+ echo '</td>'."\n";
+ echo '<td class="mg">';
+ echo '</td>'."\n";
+ // ----- Leírás ---------------------------------
+ echo '<td>'; // két lépcsőben
+ echo '</td>'."\n";
+
+ // ----- Hiányzók -------------------------------
+ echo '<td>';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+
+ }
+
+
+
+ function putOra($dOra) {
+
+ global $ADAT,$SZLO;
+ if ( $ADAT['tankorTipusok'][$dOra['tankorTipusId']]['jelleg']=='osztályfüggetlen' && ($ADAT['haladasiTipus']=='osztalyHaladasi' || $ADAT['haladasiTipus']=='diakHaladasi')) return false;
+ $modosithatoOra = modosithatoOra($dOra);
+// $torolhetoOra = torolhetoOra($dOra);
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+ if ($dOra['tipus'] == 'összevonás') $tipus = 'Ö';
+ else $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ if ($dOra['tipus'] == 'egyéb') $tr_class = ' class="egyeb '.$dOra['eredet'].'"';
+ else $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+ $tr_id = (intval($dOra['oraId'])>0 ? ' id="ORAID_'.$dOra['oraId'].'"':'');
+
+ echo '<tr'.$tr_class.$tr_id.'>';
+
+ // ----- óra ----------------------------------
+ echo '<td class="ora oraAdat"'.' data-oraid="'.$dOra['oraId'].'">';
+ echo $dOra['ora'].'.';
+/* if ( __NAPLOADMIN===true) {
+ echo '<a style="display:inline" href="'.href('index.php?page=naplo&sub=haladasi&f=ora&oraId='.$dOra['oraId']).'" class="onClickUpdateWindow" title="'.$dOra['ora'].'. '._ORA.' '._BEALLITASAI.'">';
+ echo '≡'; //≡☰
+ echo '</a>';
+ }
+*/ if ( __NAPLOADMIN===true || __DIAK === true ) {
+// echo '<a href="'.href('index.php?page=naplo&sub=haladasi&f=tankor&tankorId='.$dOra['tankorId']).'"
+// class="onClickUpdateWindow tankorStat icon-graph" title="A tankör statisztikái">';
+// //echo ; //≡☰
+// echo '</a>';
+
+// echo '<span class="oraAdat icon-bullhorn" data-oraid="'.$dOra['oraId'].'"></span>';
+ }
+
+ echo '</td>'."\n";
+
+ // ----- Tankör -------------------------------
+ echo '<td class="t">';
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // FeladatTípus kezelése
+ // -------------------------------------------------------------------------
+ if (
+ in_array($dOra['tipus'],array('normál','normál máskor')) // helyettesített óra esetén ne lehessen váltani - bár kirakná a selectet jól...
+ && is_array($dOra['csoport']) && count($dOra['csoport'])>1
+ && $modosithatoOra
+ ) {
+
+ echo '<select name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ echo '<option value="'.$dOra['csoportId'].':'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ // Ha egy másik tanár helyettesít, akinek vannak órái ugyanabból a tankör csoportból - akkor a jelenlegi tankorId nincs a select-ben még!
+ if ($__SEL == '') echo '<option value="'.$dOra['csoportId'].':'.$dOra['tankorId'].' selected="selected">'.$dOra['tankorNev'].'</option>';
+ echo '</select>';
+ // ugyanakkor js-ből meg kellene változtatni a tankorId paramétert...
+ echo '<a style="display:inline" href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tankorId='.$dOra['tankorId']).'" class="onClickUpdateWindow" title="'.$dOra['tankorNev'].' '._TANKOR_HALADASI.'">';
+ echo '☰'; //≡
+ echo '</a>';
+
+ } elseif ($dOra['tipus']=='egyéb') {
+ /*for ($t = 0; $t<count($ADAT['feladatTipus']); $t++) {
+ $_D = $ADAT['feladatTipus'][$t];
+ $_SEL = ($_D['feladatTipusId'] == $dOra['feladatTipusId']) ? ' selected="selected" ':'';
+ }*/
+ echo $ADAT['feladatTipus'][$dOra['feladatTipusId']]['feladatTipusLeiras'].' ('.$dOra['eredet'].')';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo '<a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tankorId='.$dOra['tankorId']).'" class="onClickUpdateWindow" title="'.$dOra['tankorNev'].' '._TANKOR_HALADASI.'">';
+ echo $dOra['tankorNev'];
+ echo '</a>';
+ }
+ echo '<input type="hidden" name="tanmenetIdContainer[]" value="'.$ADAT['tankorTanmenet'][ $dOra['tankorId'] ].'" />'."\n";
+ echo '<input type="hidden" name="tankorIdContainer[]" value="'.$dOra['tankorId'].'" />'."\n";
+ // -------------------------------------------------------------------------
+ echo '</td>'."\n";
+ echo '<td class="mg">';
+ if ($dOra['tipus']=='egyéb' && (__VEZETOSEG===true || __NAPLOADMIN === true)) {
+ echo '<select name="TEREMVALT[]" class="teremvalt">';
+ echo '<option value="">'.$ADAT['terem'][$dOra['teremId']]['leiras'].'</option>';
+ for ($t=0; $t<count($ADAT['szabadTermek'][$dOra['dt']][$dOra['ora']]); $t++) {
+ $_T = $ADAT['szabadTermek'][$dOra['dt']][$dOra['ora']][$t];
+ echo '<option value="'.$dOra['oraId'].'_'.$_T.'" '.$_SEL.'>'.$ADAT['terem'][$_T]['leiras'].'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo '<a style="display:inline" href="'.href('index.php?page=naplo&sub=orarend&f=orarend&teremId='.$dOra['teremId'].'&dt='.$dOra['dt']).'" class="onClickUpdateWindow" title="'.$dOra['teremId'].'">';
+ echo $ADAT['terem'][$dOra['teremId']]['leiras'];
+ echo '</a>';
+ }
+ echo '</td>';
+ echo '<td class="mg">';
+ echo $tipus;
+ if (isset($ADAT['oraLatogatasok'][$dOra['oraId']])) {
+ echo '<span class="latogatott" title="';
+ if (is_array($ADAT['oraLatogatasok'][$dOra['oraId']]['tanarNevek'])) echo implode(', ',$ADAT['oraLatogatasok'][$dOra['oraId']]['tanarNevek']);
+ echo '">L</span>';
+ }
+ echo '</td>'."\n";
+
+
+ // ----- Tanár(ok) -------------------------------
+ echo '<td class="t tanarNev" data-tanarid="'.$dOra['ki'].'">';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanar']) > 1 && in_array($dOra['tipus'],array('normál','normál máskor')) && $modosithatoOra) {
+ $_SEL = array($dOra['ki'] => 'selected="selected" ');
+ if ($dOra['ki']!=$tanarId) $_masTartja=true;
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t = 0; $t < count($dOra['tanar']); $t++) {
+ echo '<option value="'.$dOra['tanar'][$t]['tanarId'].'" '.$_SEL[$dOra['tanar'][$t]['tanarId']].'>';
+ echo $dOra['tanar'][$t]['tanarNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td class="mg">';
+ if ($dOra['tipus']!='egyéb') {
+ echo '<a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo&tanmenetId='.$ADAT['tankorTanmenet'][ $dOra['tankorId'] ]).'" class="onClickUpdateWindow" title="'._TANMENET.'">';
+ echo $dOra['oraszam'];
+ echo '</a>';
+ } else { // itt kiírhatjuk a heti terhelését
+ //echo '<span style="color: purple;" title="a típusból ezen a héten összesen">eheti:'.($ADAT['oraTerheles'][$dOra['feladatTipusId']]['db']-$SZLO[$dOra['feladatTipusId']])."/".($ADAT['oraTerheles'][$dOra['feladatTipusId']]['db']).'</span>';
+ //echo '<span style="color: purple;" title="a típusból ezen a héten összesen">eheti:'.($SZLO['sum']-$SZLO['sum_c'])."/".($SZLO['sum']).'</span>';
+ $SZLO[$dOra['feladatTipusId']]++;
+ $SZLO['sum_c']++;
+ }
+ echo '</td>'."\n";
+
+ // ----- Leírás ---------------------------------
+ if ($modosithatoOra) {
+ echo '<td class="l">';
+ if ($dOra['leiras']!='') { // beírva
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<span class="INFO" id="B_'.($dOra['oraId']).'"></span>';
+ echo '<input type="submit" class="gomb DOA" value="'._OK.'" tabindex="" />';
+ } else {
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<span class="INFO" id="B_'.($dOra['oraId']).'">✓</span>';
+ echo '<input type="submit" class="gomb DOA" value="'._ROGZIT.'" tabindex="" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ //echo '<span type="text" class="INFO" style="display:none;" id="B_'.($dOra['oraId']).'">√</span>';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo '<td>'.$dOra['leiras'];
+ } else {
+ echo '<td class="nincsBeirva">'._NINCS_BEIRVA;
+ }
+ }
+ echo '</td>'."\n";
+
+ // ----- Hiányzók -------------------------------
+ echo '<td>';
+ if ($dOra['tipus']=='egyéb') {
+ if ($modosithatoOra === true) {
+ echo '<div style="text-align: center;">';
+ echo '<input type="checkbox" class="torol" name="ORATOROL[]" value="'.$dOra['oraId'].'" />';
+ echo '<span class="oraTorol">'._TOROL.'</span>';
+ echo '</div>';
+ }
+ } else {
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ //2014? echo '<a href="'.$href.'" tabindex="200" class="onClickUpdateWindow">';
+ echo '<a href="'.$href.'" tabindex="200" class="h" >';
+ echo _HIANYZOK;
+ echo '</a>';
+ }
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ if ( // helyettesített kolléga írhasson be plusz órát (saját óráját helyettesítették, hogy ő felvételi dolgozatokat mutogathasson pl.)
+ __PLUSZBEIRHAT===true
+ && in_array($dOra['tipus'], array('helyettesítés','felügyelet'))
+ && $dOra['ki'] != $ADAT['tanarId']
+ )
+ putUjOra(array('dt'=>$dOra['dt'], 'ora'=>$dOra['ora']));
+
+ }
+
+
+ function putTankorOra($dOra) {
+
+ global $aHetNapjai;
+ $modosithatoOra = modosithatoOra($dOra);
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+// if (substr($dOra['tipus'],0,6) != 'normál') {
+ $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+
+ echo '<tr'.$tr_class.'>';
+ // ----- óra ----------------------------------
+ echo '<td class="ora">';
+ echo str_replace('-','.',$dOra['dt']) .'. '. $aHetNapjai[(date('w',strtotime($dOra['dt']))+6)%7].' ';
+ echo $dOra['ora'].'.';
+ echo '</td>'."\n";
+
+ // ----- Tankör -------------------------------
+ echo '<td>';
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // -------------------------------------------------------------------------
+ if (
+ in_array($dOra['tipus'],array('normál','normál máskor')) // helyettesített óra esetén ne lehessen váltani - bár kirakná a selectet jól...
+ && is_array($dOra['csoport']) && count($dOra['csoport']) > 1
+ && $modosithatoOra
+ ) {
+ echo '<select name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ // !?! A másik függvényben a csoportId-t is átadjuk - nem hiba???
+ echo '<option value="'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ // Ha egy másik tanár helyettesít, akinek vannak órái ugyanabból a tankör csoportból - akkor a jelenlegi tankorId nincs a select-ben még!
+ // !?! A másik függvényben a csoportId-t is átadjuk - nem hiba???
+ if ($__SEL == '') echo '<option value="'.$dOra['tankorId'].' selected="selected">'.$dOra['tankorNev'].'</option>';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo '<span class="tankorAdat" data-tankorid="'.$dOra['tankorId'].'">'.$dOra['tankorNev'].'</span>';
+ }
+ // -------------------------------------------------------------------------
+ echo '</td>'."\n";
+
+ //echo '<td>';
+ //echo $ADAT['terem'][$dOra['teremId']]['leiras'];
+ //echo '</td>'."\n";
+ echo '<td colspan="2">';
+ echo $tipus;
+ echo '</td>'."\n";
+
+
+ // ----- Tanör(ok) -------------------------------
+ echo '<td>';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanár']['id']) > 1 and $modosithatoOra) {
+ $_SEL = array($dOra['kiId'] => 'selected="selected" ');
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t=0;$t<count($dOra['tanár']['id']);$t++) {
+ echo '<option value="'.$dOra['tanár']['id'][$t].'" '.$_SEL[$dOra['tanár']['id'][$t]].'>';
+ echo $dOra['tanár'][$dOra['tanár']['id'][$t]]['cn'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo '<span class="tanarNev" data-tanarid="'.$dOra['ki'].'">'.$dOra['kiCn'].'</span>';
+ }
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $dOra['oraszam'];
+ echo '</td>'."\n";
+
+ // ----- Leíráás ---------------------------------
+ if ($modosithatoOra) {
+ echo '<td>';
+ if ($dOra['leiras']!='') { // beírva
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb DOA" value="'._MODOSIT.'" />';
+ } else {
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb DOA" value="'._ROGZIT.'" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo '<td>'.$dOra['leiras'];
+ } else {
+ echo '<td>'._NINCS_BEIRVA;
+ }
+ }
+ echo '</td>'."\n";
+ // ----- Hiányzók -------------------------------
+ echo '<td>';
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ echo '<a href="'.$href.'">';
+ echo _HIANYZOK;
+ echo '</a>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ function putHetesForm($ADAT) {
+
+ formBegin(array('class'=>'hetes'));
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'._SHOW_DAYS_FROM.'" />'."\n";
+// echo '<input type="hidden" name="order" value="'.$order.'" />'."\n";
+ echo '<input type="hidden" name="action" value="hetesFelvetel" />'."\n";
+
+ echo '<span>'._HETESEK.'</span>';
+ for ($k = 1; $k < 3; $k++) {
+ $SEL = array($ADAT['hetesek'][$k]['diakId'] => ' selected="selected" ');
+ echo '<select name="hetes'.$k.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ echo '<option value="'.$ADAT['diakok'][$i]['diakId'].'"'.$SEL[ $ADAT['diakok'][$i]['diakId'] ].'>'.$ADAT['diakok'][$i]['diakNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml
new file mode 100644
index 00000000..1effc9e1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/helyettesites.phtml
@@ -0,0 +1,696 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function putHianyzoTanarForm($Tanarok, $Hianyzok, $dt) {
+
+ formBegin(array('class'=>'helyettesites'));
+ echo '<input type="hidden" name="action" value="hianyzoModositas" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+
+ echo '<table align="center" class="tanarForm" cellspacing="1" cellpadding="1" >'."\n";
+
+ echo '<tr>';
+ echo '<th>'._JELENLEVO_TANAROK.'</th>';
+ echo '<th>'._HIANYZO_TANAROK.'</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="addHianyzo[]" id="ah" multiple="multiple">'."\n";
+
+ for ($i = 0;$i < count($Tanarok['tanarIds']); $i++) {
+
+ $tanarId = $Tanarok['tanarIds'][$i];
+ $tanarNev = $Tanarok[$tanarId]['tanarNev']." (".$tanarId.")";
+
+ if (!in_array($tanarId,$Hianyzok)) echo '<option value="'.$tanarId.'"'.$SEL.'>'.$tanarNev.'</option>'."\n";
+
+ }
+
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="delHianyzo[]" id="dh" multiple="multiple">'."\n";
+
+ for ($i = 0;$i < count($Tanarok['tanarIds']); $i++) {
+
+ $tanarId = $Tanarok['tanarIds'][$i];
+ $tanarNev = $Tanarok[$tanarId]['tanarNev'];
+
+ if (in_array($tanarId,$Hianyzok)) echo '<option value="'.$tanarId.'"'.$SEL.'>'.$tanarNev.'</option>'."\n";
+
+ }
+
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo '<input type="submit" value="'._OK.'" />';
+// Ez ugye nem kell? // echo '<input type="reset" value="'._VISSZAALLIT.'" />';
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+ formEnd();
+ flush();
+ }
+
+
+
+ function putHianyzoOrak($HELYETTESITES, $dt) {
+ for ($i = 0; $i < count($HELYETTESITES['helyettesites']['tanarIds']);$i++) {
+ $tanarId = $HELYETTESITES['helyettesites']['tanarIds'][$i];
+ $tanarNev = $HELYETTESITES['tanarok'][$tanarId]['tanarNev'];
+ $tanarOrak = $HELYETTESITES['helyettesites'][$tanarId]['orak'];
+ putTanarHianyzoOrak($tanarId, $tanarNev, $tanarOrak, $HELYETTESITES['tanarok'], $dt, $HELYETTESITES);
+ flush();
+ }
+ }
+
+ function putTanarHianyzoOrak($tanarId, $tanarNev, $tanarOrak, $Tanarok, $dt, $ADAT=array()) { // az ADAT az általános...(2013)
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="helyettesitesRogzitese" />'."\n";
+ echo '<input type="hidden" name="kit" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+
+ echo '<table class="hianyzoTanar" cellspacing="1" cellpadding="1" align="center">'."\n";
+
+ echo '<thead><tr>'."\n";
+ echo '<th colspan="6">'.$tanarNev.'</th>'."\n";
+ echo '</tr></thead>'."\n";
+ echo '<tfoot><tr>'."\n";
+ echo '<th colspan="6">'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>'."\n";
+ echo '</tr></tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ for ($i = 0; $i < count($tanarOrak); $i++) {
+
+ $SELECT = sulyKiszamitas($tanarOrak[$i], $Tanarok);
+
+ if (substr($tanarOrak[$i]['tipus'],0,7) == 'elmarad') echo '<tr class="elmarad">'."\n";
+ else echo '<tr>'."\n";
+
+ echo '<td>'."\n";
+ echo $_ora = $tanarOrak[$i]['ora'].'. '._ORA;
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $tanarOrak[$i]['tankorNev'];
+ echo '</td>'."\n";
+
+ echo '<td>';
+ if ($ADAT['termek'][$tanarOrak[$i]['teremId']]['leiras']!='') {
+ echo $ADAT['termek'][$tanarOrak[$i]['teremId']]['leiras'];
+ echo ' <span class="teremId">('.$tanarOrak[$i]['teremId'].')</span>';
+ }
+ echo '</td>'."\n";
+
+ echo '<td>';
+ if ($tanarOrak[$i]['ki']!='') {
+ $_ki_txt = ' terhelés:';
+ $_ki_txt .= ' '.$ADAT['tanarTerheles'][ $tanarOrak[$i]['ki'] ]['lekotott']['heti'];
+ $_ki_txt .= ' '.$ADAT['tanarTerheles'][ $tanarOrak[$i]['ki'] ]['kotottEloirt']['heti'];
+ $_ki_txt .= ' '.$ADAT['tanarTerheles'][ $tanarOrak[$i]['ki']]['kotott']['heti'];
+ } else $_ki_txt = '';
+ echo '<select name="T[]">'."\n";
+
+ // A jelenlegi állapot kiírása --> value='' --> Nem módosítja
+ if ($tanarOrak[$i]['eredet'] == 'órarend') {
+ if ($tanarOrak[$i]['tipus'] == 'normál') $txt = 'megtartva';
+ elseif ($tanarOrak[$i]['tipus'] == 'felügyelet') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' (felügyelet)';
+ elseif ($tanarOrak[$i]['tipus'] == 'összevonás') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' (összevonás)';
+ elseif ($tanarOrak[$i]['tipus'] == 'helyettesítés') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' (helyettesítés)';
+ elseif ($tanarOrak[$i]['tipus'] == 'elmarad máskor') $txt = 'máskor megtartva';
+ elseif ($tanarOrak[$i]['tipus'] == 'elmarad') $txt = 'elmarad';
+ elseif ($tanarOrak[$i]['tipus'] == 'egyéb') $txt = 'egyéb feladat (kiírt)';
+ else $txt = 'ismeretlen típus!!!!!!!';
+ } elseif ($tanarOrak[$i]['eredet'] == 'plusz') {
+ if ($tanarOrak[$i]['tipus'] == 'normál') $txt = 'plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'normál máskor') $txt = 'cserélt/mozgatott óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'elmarad') $txt = 'elmaradt mozgatott óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'helyettesítés') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' helyettesített plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'felügyelet') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' felügyelt plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'összevonás') $txt = $Tanarok[$tanarOrak[$i]['ki']]['tanarNev'].' összevont plusz óra';
+ elseif ($tanarOrak[$i]['tipus'] == 'egyéb') $txt = 'egyéb feladat (tanár által megadott)';
+ else $txt = 'ismeretlen típus!!!!!!!';
+ } else {
+ $txt = 'nem ered sehonnan!!!!!!!!';
+ }
+ echo '<option value="">'.$txt.$_ki_txt.'</option>'."\n";
+
+ if ($tanarOrak[$i]['tipus'] == 'egyéb') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/töröl">töröl</option>'."\n";
+ } else {
+ if ($tanarOrak[$i]['tipus'] == 'elmarad máskor') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/normál">megtartva</option>'."\n";
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ } elseif ($tanarOrak[$i]['tipus'] == 'normál máskor') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/">csere/mozgatás visszaállítása</option>'."\n";
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ } elseif ($tanarOrak[$i]['tipus'] == 'normál') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ } elseif ($tanarOrak[$i]['tipus'] == 'elmarad') {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/normál">megtartva</option>'."\n";
+ } else {
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/normál">megtartva</option>'."\n";
+ echo '<option value="/'.$tanarOrak[$i]['oraId'].'/elmarad">elmarad</option>'."\n";
+ }
+ foreach ($SELECT as $_tanarId => $_tanarAdat) {
+ // a nullás súlyúaknak órája van! nem jelenhet meg (ha mégis szeretné, manuális beállítás)
+ if ($_tanarId != $tanarId && $_tanarId != 'foglaltak' && $_tanarAdat['súly']>0) {
+ $value = $_tanarId.'/'.$tanarOrak[$i]['oraId'].'/'.$_tanarAdat['tipus'];
+ /* 2013.09 beta ... */
+ $_disabled = (
+ $_tanarAdat['tipus']!='összevonás'
+ && (
+ (
+ $ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['lekotott']<$ADAT['tanarTerheles'][$_tanarId]['lekotott']['heti']
+ && ($ADAT['tanarTerheles'][ $_tanarId ]['over']['napi']>=2
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['ora']>=6
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['eves']>=30)
+ )
+ || $ADAT['tanarTerheles'][ $_tanarId ]['kotottEloirt']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['kotott']
+ )
+ );
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['kotottEloirt']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['kotott'])
+ $_tanarAdat['súly'] .= '!'.$_tanarAdat['tipus'];
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['kotott']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['kotott'])
+ $_tanarAdat['súly'] .= '!';
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['lekotott']['heti']>=$ADAT['tanarTerheles'][ $_tanarId ]['munkaido']['lekotott'])
+ $_tanarAdat['súly'] .= '!';
+ if ($ADAT['tanarTerheles'][ $_tanarId ]['over']['napi']>=2
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['ora']>=6
+ || $ADAT['tanarTerheles'][ $_tanarId ]['over']['eves']>=30)
+ $_tanarAdat['súly'] .= '!';
+ /* */
+ echo '<option value="'.$value.'" '.($_disabled?' disabled="disabled" ':'').'>'."\n";
+ echo ''.$_tanarAdat['súly'].'| '.$_tanarAdat['tanarNev'].' ('.$_tanarAdat['tipus'].') '.$_tanarAdat['txt'];
+ echo ' terhelés:';
+ echo ' '.$ADAT['tanarTerheles'][ $_tanarId ]['lekotott']['heti'];
+ echo ' '.$ADAT['tanarTerheles'][ $_tanarId ]['kotottEloirt']['heti'];
+ echo ' '.$ADAT['tanarTerheles'][ $_tanarId ]['kotott']['heti'];
+ echo '</option>'."\n";
+ }
+ }
+ for($j=0; $j<count($ADAT['egyeb'][$tanarOrak[$i]['ora']]); $j++) {
+ $_D = $ADAT['egyeb'][$tanarOrak[$i]['ora']];
+ $_tanarNev = $Tanarok[$_D[$j]]['tanarNev'];
+ echo '<option value="'.$_D[$j].'" disabled="disabled" >[már beosztva] '.$_tanarNev.'</option>';
+ }
+ }
+ echo '</select>';
+
+ echo '</td>'."\n";
+ echo '<td class="info">';
+
+ /* itt célszerű lenne infóval ellátni a kiírót, ha korlátozás van érvényben! */
+ // ⚠ ♺ ⦷
+ $__ki = $tanarOrak[$i]['ki'];
+ if ($__ki>0) {
+ if ( $ADAT['tanarTerheles'][ $__ki ]['munkaido']['lekotott']<$ADAT['tanarTerheles'][ $__ki]['lekotott']['heti']
+// && ($ADAT['tanarTerheles'][ $__ki ]['over']['napi']>=2
+// || $ADAT['tanarTerheles'][ $__ki ]['over']['ora']>=6
+// || $ADAT['tanarTerheles'][ $__ki ]['over']['eves']>=30)
+ ) {
+ echo '<span style="cursor:help" title="A nevelés-oktatással lekötött munkaidőbe már nem fér bele, ezért a fennmaradó részt terheljük! '.$ADAT['tanarTerheles'][ $__ki ]['lekotott']['heti'].'">';
+ echo " ⚠ ";
+ echo '</span>';
+ }
+ if ($ADAT['tanarTerheles'][ $__ki ]['kotottEloirt']['heti']>=$ADAT['tanarTerheles'][ $__ki ]['munkaido']['kotott']) {
+ echo '<span style="cursor:help" title="A lekötött és az előírt pluszfeladatok száma '
+ .'('.$ADAT['tanarTerheles'][ $__ki ]['kotottEloirt']['heti'].') '
+ .'a heti megengedettel egyezik vagy túl is lépi azt'
+ .'('.$ADAT['tanarTerheles'][ $__ki ]['munkaido']['kotott'].')! A tanár tovább nem terhelhető!">';
+ echo " ⚠ ";
+ echo '</span>';
+ }
+ // echo ($ADAT['tanarTerheles'][$__ki]['over']['napi']);
+ // echo ($ADAT['tanarTerheles'][$__ki]['over']['heti']);
+ echo '<span class="info" style="font-size:10px;background-color: rgba(255,255,255,1); border: solid 1px grey; padding: 0px 5px; border-radius:8px; cursor:help" title="'.$tanarOrak[$i]['munkaido'].'">'.($tanarOrak[$i]['munkaido'][0]).'</span>';
+ }
+ /* ----------- */
+
+ echo '</td>'."\n";
+
+ echo '<td>';
+ if ($tanarOrak[$i]['tipus'] != 'elmarad máskor') {
+ echo '<input type="image" name="gomb_manual_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/kez.gif" alt="manual" /> '."\n";
+ echo '<input type="image" name="gomb_mozgat_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/mozgat.gif" alt="mozgat" /> '."\n";
+ echo '<input type="image" name="gomb_csere_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/csere.gif" alt="csere" /> '."\n";
+
+ //echo '<input type="image" class="btn_manual" name="gomb_manual_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" alt=" " /> '."\n";
+ //echo '<input type="image" class="btn_mozgat" name="gomb_mozgat_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" alt=" " /> '."\n";
+ //echo '<input type="image" class="btn_csere" name="gomb_csere_'.$tanarOrak[$i]['oraId'].'" value="'.$tanarOrak[$i]['oraId'].'" alt=" " /> '."\n";
+ }
+ if (substr($tanarOrak[$i]['tipus'],-7) == 'máskor') {
+ echo '!<input type="image" name="csereAttekintes" value="'.$tanarOrak[$i]['oraId'].'" src="skin/classic/module-naplo/img/helyettesites/kez.gif" alt="manual" />! '."\n";
+ }
+ if ($tanarOrak[$i]['ki']!='') {
+ // Órarend clock/clock3
+ //echo '<input type="image" name="orarendGomb" value="'.$tanarId.'/'.$dt.'" src="skin/classic/module-naplo/img/helyettesites/ora.gif" alt="orarend" class="onClickUpdateWindow" />'."\n";
+ echo '<a href ="'.href('index.php?page=naplo&sub=haladasi&f=haladasi&tolDt='.$dt.'&igDt='.$dt.'&tanarId='.$tanarOrak[$i]['ki']).'" alt="orarend" class="onClickUpdateWindow O">O</a>'."\n";
+ }
+ echo '<input type="hidden" name="orarend" value="'.$tanarId.'/'.$dt.'" />'."\n";
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+ }
+
+
+ function sulyKiszamitas($tanarOra, $Tanarok) {
+
+ for ($j = 0; $j < count($tanarOra['osszevono']); $j++) {
+ $osszevonoId = $tanarOra['osszevono'][$j];
+ $Tanarok[$osszevonoId]['osszevon'] = true;
+ }
+ for ($j = 0; $j < count($tanarOra['foglalt']); $j++) {
+ $foglaltId = $tanarOra['foglalt'][$j];
+ $Tanarok[$foglaltId]['foglalt'] = true;
+ }
+ unset($Tanarok['tanarIds']);
+
+ // súly kiszámítása
+ foreach ($Tanarok as $tId => $tAdatok) {
+// if (!$tAdatok['osszevon'] and $tAdatok['orak'][$tanarOra['ora']]) {
+ if ($tAdatok['foglalt']) {
+ // ütközés - tanít, de nem tud összevonni, mert nem szakos
+ $suly = 0;
+ $Tanarok[$tId]['txt'] = '[X]';
+
+ } elseif ($tAdatok['osszevon']) {
+ // össze tud vonni
+ //[2013.09.20.ig volt érvényben az ősidőktől :( RIP]$suly = 9; // az <- -> szakos/nem szakos között
+ $suly = 1;
+ $Tanarok[$tId]['txt'] = '[Ö]';
+ $Tanarok[$tId]['tipus'] = 'összevonás';
+
+ } else {
+ $Tanarok[$tId]['tipus'] = 'felügyelet';
+ $Tanarok[$tId]['txt'] = '[';
+ $suly = 2;
+ if (isset($tAdatok['elso ora']) && ($tAdatok['elso ora'] < $tanarOra['ora'])) {
+ // Van elötte órája
+ $Tanarok[$tId]['txt'] .= '<- ';
+ $suly += 3;
+ if ($tAdatok['utolso ora'] > $tanarOra['ora']) {
+ // Van utána is órája
+ $suly += 3;
+ $Tanarok[$tId]['txt'] .= '-> ';
+ }
+ } else {
+ if ($tAdatok['utolso ora'] > $tanarOra['ora']) {
+ // Csak utána van órája
+ $suly += 1;
+ $Tanarok[$tId]['txt'] .= '-> ';
+ }
+ }
+ if ($tAdatok['targyak'][$tanarOra['targyId']]) {
+ // Taníthatja az adott tárgyat
+ $suly += 2;
+ $Tanarok[$tId]['txt'] .= 'SZ ';
+ $Tanarok[$tId]['tipus'] = 'helyettesítés';
+ }
+ if ($tAdatok['db'] > 4) {
+ // Már van legalább 5 órája
+ $suly = floor($suly/2);
+ $Tanarok[$tId]['txt'] .= '!6!';
+ }
+ if (strlen($Tanarok[$tId]['txt']) == 1) $Tanarok[$tId]['txt'] .= ']';
+ else $Tanarok[$tId]['txt'] = substr($Tanarok[$tId]['txt'], 0, -1) . ']';
+ }
+ $Tanarok[$tId]['súly'] = $suly;
+ }
+
+ if (__HELYETTESITES_RENDEZES != 'ABC') uasort($Tanarok,'cmp');
+
+ return $Tanarok;
+ }
+
+ function putKeziBeallitas($oraAdat, $Termek, $Tanarok) {
+
+ global $aHetNapjai;
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="keziBeallitas" />';
+ echo '<input type="hidden" name="oraId" value="'.$oraAdat['oraId'].'" />';
+ echo '<input type="hidden" name="dt" value="'.$oraAdat['dt'].'" />';
+
+ echo '<table class="keziBeallitas" cellspacing="1" cellpadding="1" align="center">';
+
+ echo '<tr>';
+ echo '<th colspan="6">'._KEZI_BEALLITAS.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<td>';
+ echo $oraAdat['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat['dt']))+6) % 7].')';
+ echo '</td>';
+
+ echo '<td>';
+ echo $oraAdat['ora'].'. '._ORA;
+ echo '</td>';
+
+ echo '<td>';
+ echo $oraAdat['tankorNev'];
+ echo '</td>';
+
+ echo '<td>';
+ $SEL = array($oraAdat['ki'] => ' selected="selected" ');
+ echo '<select name="ki">';
+ echo '<option value=""> - </option>';
+ for ($i = 0; $i < count($Tanarok);$i++) {
+ echo '<option value="'.$Tanarok[$i]['tanarId'].'" '.$SEL[$Tanarok[$i]['tanarId']].'>';
+ echo $Tanarok[$i]['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td>';
+ $SEL = array($oraAdat['tipus'] => ' selected="selected" ');
+ $Tipus = array('helyettesítés','felügyelet','összevonás');
+ if (!in_array($oraAdat['tipus'], $Tipus)) $Tipus[] = $oraAdat['tipus'];
+ echo '<select name="tipus">';
+ foreach ($Tipus as $key => $tipus) {
+ echo '<option value="'.$tipus.'" '.$SEL[$tipus].'>';
+ echo $tipus ;
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td>';
+ $SEL = array($oraAdat['teremId'] => ' selected="selected" ');
+ echo '<select name="teremId">';
+ for ($i = 0; $i < count($Termek); $i++) {
+ echo '<option value="'.$Termek[$i]['teremId'].'" '.$SEL[$Termek[$i]['teremId']].'>';
+ echo $Termek[$i]['leiras'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th colspan="6"><input type="submit" value="'._OK.'" />';
+ echo '</tr>';
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putMozgatas($tanarId, $oraAdat, $TANAR_DT_NAPI_ORAK, $ujDt, $TANAR_UJDT_NAPI_ORAK) {
+
+ global $aHetNapjai, $_TANEV, $napiMinOra, $napiMaxOra;
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="oraMozgatas" />';
+ echo '<input type="hidden" name="ujDt" value="'.$ujDt.'" />';
+ echo '<input type="hidden" name="dt" value="'.$oraAdat['dt'].'" />';
+ echo '<input type="hidden" name="mozgat" value="'.$oraAdat['oraId'].'" />';
+// echo '<input type="hidden" name="kit" value="'.$tanarId.'" />';
+
+ echo '<table align="center" class="mozgatas" cellspacing="1" cellpadding="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="4">'._ORA_MOZGATAS.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th colspan="2">'._MOZGATANDO.'</th>';
+ echo '<th colspan="2">'._UJ_IDOPONT.'</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="4">';
+ echo '<input type="submit" name="rogzit" value="'._OK.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo $oraAdat['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat['dt']))+6) % 7].')';
+ echo '</th>';
+ echo '<th colspan="2">';
+ echo '<select name="ujDt" class="onChangeSubmit">';
+
+ $SEL = array( $ujDt => ' selected="selected" ');
+ $_dt = date('Y-m-d',strtotime('-10 days',strtotime($ujDt)));
+ while (strtotime($_dt) <= strtotime($_TANEV['zarasDt'])) {
+
+ echo '<option value="'.$_dt.'"'.$SEL[$_dt].'>'.$_dt.' ('.$aHetNapjai[(date('w',strtotime($_dt))+6) % 7].')</option>';
+ $_dt = date('Y-m-d',strtotime('+1 days',strtotime($_dt)));
+
+ }
+
+ echo '</select>';
+
+ echo '</th>';
+ echo '</tr>';
+
+ // órarend
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+
+ if (isset($_POST['ora']) && $_POST['ora'] == $i) $CHK = ' checked="checked" ';
+ else $CHK = '';
+
+ if (is_array($TANAR_DT_NAPI_ORAK[$i])&&count($TANAR_DT_NAPI_ORAK[$i])>0) {
+ $txt1 = '';
+ for ($j=0; $j<count($TANAR_DT_NAPI_ORAK[$i]); $j++) {
+ $txt1 .= $TANAR_DT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($TANAR_DT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt1 .= '('.$TANAR_DT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt1 = '';
+ }
+
+ if (is_array($TANAR_UJDT_NAPI_ORAK[$i]) && count($TANAR_UJDT_NAPI_ORAK[$i])>0) {
+ $txt2='';
+ for ($j=0; $j<count($TANAR_UJDT_NAPI_ORAK[$i]); $j++) {
+ $txt2 .= $TANAR_UJDT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($TANAR_UJDT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt2 .= '('.$TANAR_UJDT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt2 = '';
+ }
+
+ $class='';
+ for ($j=0; $j<count($TANAR_DT_NAPI_ORAK[$i]); $j++) {
+ if ($TANAR_DT_NAPI_ORAK[$i][$j]['oraId'] == $oraAdat['oraId']) { $class = 'mozgatando'; break; }
+ }
+
+ $class2 = '';
+ $txt2ext = '<input type="radio" name="ora" value="'.$i.'" '.$CHK.'/>'.$txt2;
+ for ($j=0; $j<count($TANAR_UJDT_NAPI_ORAK[$i]); $j++) {
+ $_U = $TANAR_UJDT_NAPI_ORAK[$i][$j];
+ if ($_U['oraId'] == $oraAdat['oraId']) {
+ $class2 = 'mozgatando';
+ $txt2ext = $txt2;
+ break;
+ } elseif ($_U['ki']==$tanarId) {
+ $class2 = 'utkozik';
+ $txt2ext = $txt2;
+ break;
+ } elseif ($_U['kit'] == $tanarId) {
+ $class2 = 'nemMegtartott';
+ } else {
+ }
+ }
+ echo '<tr>';
+ echo '<td>'.$i.'.</td>';
+ echo '<td class="'.$class.'">';
+ echo $txt1;
+ echo '</td>';
+ echo '<td class="'.$class2.'">';
+ echo $txt2ext;
+ echo '</td>';
+ echo '<td>'.$i.'.</td>';
+ echo '</tr>';
+
+ }
+ echo '</tbody>'."\n";
+ echo '</table>';
+
+ formEnd();
+ }
+
+ function putCsere($tanarId, $oraAdat, $TANAR_DT_NAPI_ORAK, $csTanarId, $csDt, $CSTANAR_CSDT_NAPI_ORAK, $Tanarok) {
+
+ global $aHetNapjai, $_TANEV, $napiMinOra, $napiMaxOra;
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="oraCsere" />';
+ echo '<input type="hidden" name="csDt" value="'.$csDt.'" />';
+ echo '<input type="hidden" name="dt" value="'.$oraAdat['dt'].'" />';
+ echo '<input type="hidden" name="csere" value="'.$oraAdat['oraId'].'" />';
+// echo '<input type="hidden" name="kit" value="'.$tanarId.'" />';
+
+ echo '<table class="csere" cellspacing="1" cellpadding="1" align="center">';
+ echo '<tr>';
+ echo '<th colspan="4">'._ORA_CSERE.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th colspan="2">'._CSERELENDO.'</th>';
+ echo '<th colspan="2">'._UJ_IDOPONT.'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+
+ echo '<th colspan="2">';
+ echo $oraAdat['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat['dt']))+6) % 7].') ';
+ for ($i = 0; ($i < count($Tanarok) && $Tanarok[$i]['tanarId'] != $tanarId); $i++);
+ echo $Tanarok[$i]['tanarNev'];
+ echo '</th>';
+
+ echo '<th colspan="2">';
+ echo '<select name="csDt" class="onChangeSubmit">';
+
+ $SEL = array( $csDt => ' selected="selected" ');
+ $_dt = date('Y-m-d',strtotime('-10 days',strtotime($csDt)));
+ while (strtotime($_dt) <= strtotime($_TANEV['zarasDt'])) {
+
+ echo '<option value="'.$_dt.'"'.$SEL[$_dt].'>'.$_dt.' ('.$aHetNapjai[(date('w',strtotime($_dt))+6) % 7].')</option>';
+ $_dt = date('Y-m-d',strtotime('+1 days',strtotime($_dt)));
+
+ }
+
+ echo '</select>';
+
+ echo '<select name="csTanarId" class="onChangeSubmit">';
+ $SEL = array($csTanarId => ' selected="selected"');
+ for ($i = 0; $i < count($Tanarok); $i++) {
+ echo '<option value="'.$Tanarok[$i]['tanarId'].'"'.$SEL[$Tanarok[$i]['tanarId']].'>'.$Tanarok[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+
+ echo '</th>';
+ echo '</tr>';
+
+ // órarend
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+
+ if (is_array($TANAR_DT_NAPI_ORAK[$i])&&count($TANAR_DT_NAPI_ORAK[$i])>0) {
+ $txt1 = '';
+ for ($j=0; $j<count($TANAR_DT_NAPI_ORAK[$i]); $j++) {
+ $txt1 .= $TANAR_DT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($TANAR_DT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt1 .= '('.$TANAR_DT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt1 = '';
+ }
+
+ if (is_array($CSTANAR_CSDT_NAPI_ORAK[$i]) && count($CSTANAR_CSDT_NAPI_ORAK[$i])>0) {
+ $txt2='';
+ for ($j=0; $j<count($CSTANAR_CSDT_NAPI_ORAK[$i]); $j++) {
+ $txt2 .= $CSTANAR_CSDT_NAPI_ORAK[$i][$j]['tankorNev'].' ';
+ if ($CSTANAR_CSDT_NAPI_ORAK[$i][$j]['tipus'] != 'normál') $txt2 .= '('.$CSTANAR_CSDT_NAPI_ORAK[$i][$j]['tipus'].') ';
+ }
+ } else {
+ $txt2 = '';
+ }
+
+ echo '<tr>';
+ echo '<td>'.$i.'.</td>';
+ if ($TANAR_DT_NAPI_ORAK[$i][0]['oraId'] == $oraAdat['oraId']) $class = 'mozgatando';
+ else $class='';
+ echo '<td class="'.$class.'">';
+ echo $txt1;
+ echo '</td>';
+ if ($CSTANAR_CSDT_NAPI_ORAK[$i][0]['oraId'] == $oraAdat['oraId']) {
+ // A mozgatandó óra...
+ echo '<td class="mozgatando">';
+ echo $txt2;
+ echo '</td>';
+ } elseif ($CSTANAR_CSDT_NAPI_ORAK[$i][0]['ki'] == $csTanarId) {
+ // órája van
+ echo '<td class="orajavan">';
+ echo '<input type="radio" name="csId" value="'.$CSTANAR_CSDT_NAPI_ORAK[$i][0]['oraId'].'" /> ';
+ echo $txt2;
+ echo '</td>';
+ } elseif ($CSTANAR_CSDT_NAPI_ORAK[$i][0]['kit'] == $csTanarId) {
+ // nem megtartott óra: helyettesítik, elmarad
+ echo '<td class="nemMegtartott">';
+ echo '<input type="radio" name="csId" value="'.$CSTANAR_CSDT_NAPI_ORAK[$i][0]['oraId'].'" /> ';
+ echo $txt2;
+ echo '</td>';
+ } else {
+ // Lukas óra
+ echo '<td>';
+ echo $txt2;
+ echo '</td>';
+ }
+ echo '<td>'.$i.'.</td>';
+ echo '</tr>';
+
+ }
+ echo '<tr>';
+ echo '<th colspan="4">';
+ echo '<input type="submit" name="rogzit" value="'._OK.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function putCsereAttekintes($oraId, $Orak) {
+
+ global $aHetNapjai;
+
+ echo '<h2>'._CSERE_ATTEKINTES.'</h2>'."\n";
+ echo '<table class="csereAttekintes">'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'._MIT.'</th>'."\n";
+ echo '<th>'._HONNAN.'</th>'."\n";
+ echo '<th></th>'."\n";
+ echo '<th>'._HOVA.'</th>'."\n";
+ echo '</tr>'."\n";
+
+ foreach ($Orak['plusz'] as $tankorId => $pluszAdat) {
+
+ // felhasználjuk, hogy minden alapórának pontosan egy plusz óra felel meg
+ $oraAdat = $Orak['alap'][$tankorId];
+ for ($i = 0; $i < count($pluszAdat); $i++) {
+
+ echo '<tr>'."\n";
+
+ echo '<td>'.$oraAdat[$i]['tankorNev'].'</td>'."\n";
+ echo '<td>'.$oraAdat[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($oraAdat[$i]['dt']))+6) % 7].') '.$oraAdat[$i]['ora'].'. '._ORA.'</td>'."\n";
+ echo '<td> --&gt; </td>';
+ if (substr($pluszAdat[$i]['tipus'],0,7) == 'normál')
+ echo '<td>'.$pluszAdat[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($pluszAdat[$i]['dt']))+6) % 7].') '.$pluszAdat[$i]['ora'].'. '._ORA.'</td>'."\n";
+ else
+ echo '<td>'.$pluszAdat[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($pluszAdat[$i]['dt']))+6) % 7].') '.$pluszAdat[$i]['ora'].'. '._ORA.' ('.$pluszAdat[$i]['tipus'].')</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ }
+
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/hetes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/hetes.phtml
new file mode 100644
index 00000000..0609ed37
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/hetes.phtml
@@ -0,0 +1,37 @@
+<?php
+
+ function putHetesForm($ADAT) {
+
+ formBegin(array('class'=>'hetes'));
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'._SHOW_DAYS_FROM.'" />'."\n";
+ echo '<input type="hidden" name="action" value="hetesFelvetel" />'."\n";
+
+ echo '<table align="center" class="hetes" cellpadding="1" cellspacing="1" >';
+ if (is_array($ADAT['hetesek'])) foreach (($ADAT['hetesek']) as $osztalyId=>$D) {
+ echo '<tr><th colspan="3">'.$ADAT['osztalyok'][$osztalyId]['osztalyJel'].' '.$ADAT['osztalyok'][$osztalyId]['osztalyfonokNev'].'</th></tr>';
+ for ($k = 0; $k < count($D); $k++) {
+/*
+ $SEL = array($D[$k]['diakId'] => ' selected="selected" ');
+ echo '<select name="hetes'.$k.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ echo '<option value="'.$ADAT['diakok'][$i]['diakId'].'"'.$SEL[ $ADAT['diakok'][$i]['diakId'] ].'>'.$ADAT['diakok'][$i]['diakNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+*/
+ echo '<tr>';
+ echo '<td>'.str_replace('-','.',$D[$k]['dt']).'.</td>';
+ echo '<td>'.$D[$k]['sorszam'].'</td>';
+ echo '<td>'.$ADAT['diakok'][$D[$k]['diakId']]['diakNev'].'</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</table>';
+// echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml
new file mode 100644
index 00000000..61a91533
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/minuszora.phtml
@@ -0,0 +1,55 @@
+<?php
+
+ function putOrak($ADAT) {
+
+ formBegin(array('class'=>'minuszora'));
+
+ echo '<input type="hidden" name="action" value="oraElmaradas" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+
+ echo '<ul>'."\n";
+ for ($i = $ADAT['napiMinOra']; $i <= $ADAT['napiMaxOra']; $i++) {
+
+ echo '<li>';
+ echo $i . '. ' . _ORA;
+ if (is_array($ADAT['orak'][$i]) && count($ADAT['orak'][$i]) > 0) {
+ echo '<ul>'."\n";
+ for ($j = 0; $j < count($ADAT['orak'][$i]); $j++) {
+ if (!in_array($ADAT['orak'][$i][$j]['tipus'], array('elmarad','elmarad máskor'))) {
+ $D = $ADAT['orak'][$i][$j];
+ echo '<li class="'.$D['tipus'].' '.$D['eredet'].'">';
+ echo '<input type="checkbox" name="oraId[]" value="'.$D['oraId'].'" />'."\n";
+ if (is_null($D['tankorId'])) echo $D['tipus'];
+ else echo $D['tankorNev'];
+ if ($D['teremId']!='')
+ echo ' ('.$D['teremLeiras'].')';
+ echo ' ';
+ echo $D['leiras'];
+ if ($D['oralatogatasId']!='') {
+ echo '<span class="latogatott">L</span>';
+ echo $D['megjegyzes'];
+ }
+ echo ' {'.$D['munkaido'].'}';
+ echo '</li>'."\n";
+ }
+ }
+ echo '</ul>'."\n";
+// } else {
+// echo ' - ';
+ }
+
+ echo '</li>'."\n";
+
+ }
+ echo '</ul>'."\n";
+
+ echo '<input type="submit" value="'._ELMARAD.'" />'."\n";
+
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/ora.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/ora.phtml
new file mode 100644
index 00000000..ef21f763
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/ora.phtml
@@ -0,0 +1,51 @@
+<?php
+
+ function putOraAdat($ADAT) {
+ $O = $ADAT['oraAdat'];
+
+ echo '<style type="text/css">
+ .modGomb {
+ background-color: #eeeeee;
+ padding:4px 1em; margin:1em; background-color: #eeeeee; border-radius: 2px; border-style: solid solid solid none; border-width: 1px 1px 1px 1px; border-color: #aaa;
+ }
+ .oraElmarad {background-color: red; color:white;}
+ .oraMegtartva {background-color: green; color:white;}
+ </style>';
+
+ echo '<div style="padding:1em 0em;float:left; margin-right:2em;background-color: #eeeeee; width:294px; border-radius: 0px 4px 4px 0px; border-style: solid solid solid none; border-width: 1px 1px 1px 0px; border-color: #aaa;">';
+ if (is_array($O)) {
+ foreach($ADAT['oraAdat'] as $k => $v) {
+ echo '<div style="width:90px; text-align:right; display:table-cell;">';
+ echo $k;
+ echo '</div>';
+ echo '<div style="width:200px; text-align:left; display:table-cell; padding-left:1em;">';
+ echo $v;
+ echo '</div><div style="clear:both"></div>';
+ }
+ }
+ echo '</div>';
+echo '<h2>Ez a funkció még nem működik!</h2>';
+ echo '<input type="hidden" name="oraId" value="'.$O['oraId'].'" />';
+ echo '<input type="submit" name="oraElmarad" value="'._ELMARAD.'" id="oraElmarad" class="modGomb oraElmarad" />';
+ echo '<input type="submit" name="oraMegtartva" value="'._MEGTARTVA.'" id="oraMegtartva" class="modGomb oraMegtartva" />';
+
+/*
+ echo 'Mit lehet csinálni egy órával?
+
+<pre>
+Haladási:
+- elmarad
+- helyettesítk/felügyelik stb
+- összevonjuk másikkal (lásd előbb)
+- terme megváltozik ideiglenesen
+
+Órarend:
+- terme megváltozik véglegesen
+</pre>
+';
+*/
+ echo '<div style="clear: both"></div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml
new file mode 100644
index 00000000..008544b4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/oralatogatas.phtml
@@ -0,0 +1,56 @@
+<?php
+
+ function putOralatogatasForm($ADAT) {
+
+
+ echo '<ul class="ora">'."\n";
+ foreach ($ADAT['orak'] as $ora => $oAdat) {
+ foreach ($oAdat as $key => $oraAdat) {
+ $_OK = is_array($ADAT['oralatogatas'][ $oraAdat['oraId'] ]['tanarIds']);
+ $_class = ($_OK) ? 'latogatva' : '';
+ echo '<li>';
+
+ formBegin(array('class'=>$_class));
+
+ echo '<input type="hidden" name="action" value="oralatogatasBeiras" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="oraId" value="'.$oraAdat['oraId'].'" />'."\n";
+
+ echo '<p>';
+ echo '<input type="submit" name="delete_'.$oraAdat['oraId'].'" value="'._TOROL.'" />'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '<span class="ora">'.$ora.'. '._ORA.'</span>';
+ echo $oraAdat['tankorNev'];
+ echo '</p>';
+
+ echo '<div class="jobb">';
+ echo '<label for="tanar'.$oraAdat['oraId'].'">'._LATOGATO.'</label>'."<br />\n";
+ echo '<select name="tanarIds[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'"';
+ if (
+ is_array($ADAT['oralatogatas'][ $oraAdat['oraId'] ]['tanarIds']) &&
+ in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['oralatogatas'][ $oraAdat['oraId'] ]['tanarIds'])) echo ' selected="selected" ';
+ echo '>'.$ADAT['tanarok'][$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div>';
+ echo '<label for="megjegyzes'.$oraAdat['oraId'].'">'._MEGJEGYZES.'</label>'."<br />\n";
+ echo '<textarea name="megjegyzes">';
+ echo htmlspecialchars($ADAT['oralatogatas'][ $oraAdat['oraId'] ]['megjegyzes']);
+ echo '</textarea>'."\n";
+ echo '</div>';
+ formEnd();
+
+ echo '</li>'."\n";
+ }
+ }
+ echo '</ul>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml
new file mode 100644
index 00000000..b0e38c08
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/osszevonas.phtml
@@ -0,0 +1,51 @@
+<?php
+
+ function putOraFelvetelForm($ADAT) {
+
+ formBegin(array('class'=>'pluszora'));
+ echo '<input type="hidden" name="action" value="oraFelvetele" />';
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="ora" value="'.$ADAT['ora'].'" />';
+
+ echo '<h2>'._TORLENDOK.'</h2>';
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['torlendoTankorok']); $i++) {
+ $T = $ADAT['torlendoTankorok'][$i];
+ echo '<li>'.$ADAT['tankorok'][$T['tankorId']][0]['tankorNev'].' ('.$T['oraId'].')</li>';
+ }
+ echo '</ul>';
+
+ echo '<input type="submit" value="'._ORA_FELVETELE.'" class="confirm" title="'._ORA_FELVETELE_CONFIRM.'" />';
+ formEnd();
+ }
+
+ function putOrak($Orak, $title) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ echo '<h2>'.$title.' '._ORAI.'</h2>';
+ echo '<ul class="pluszora">';
+
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+ echo '<li>';
+ echo '<span class="oraszam">' . $i . '. ' . _ORA . '</span> ';
+ if (is_array($Orak[$i])) {
+ if (is_array($Orak[$i][0])) {
+ for ($j = 0; $j < count($Orak[$i]); $j++) {
+ echo '<span>' . $Orak[$i][$j]['tankorNev'] . '</span> ';
+ }
+ } else {
+ echo 'AJJAJJ';
+ }
+ }
+ echo '</li>';
+ }
+
+ echo '</ul>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml
new file mode 100644
index 00000000..af74fcb5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/pluszora.phtml
@@ -0,0 +1,95 @@
+<?php
+
+ function putOraFelvetelForm($tankorId, $tanarId, $dt, $ora, $teremId, $ADAT) {
+ formBegin(array('class'=>'pluszora'));
+ echo '<input type="hidden" name="action" value="oraFelvetele" />';
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="ora" value="'.$ora.'" />';
+ echo '<input type="hidden" name="teremId" value="'.$teremId.'" />';
+
+ echo '<label for="eredet">'._EREDET.'</label>';
+ echo '<select name="eredet" id="eredet">';
+ echo '<option value="plusz">'._PLUSZ.'</option>';
+ echo '<option value="órarend">'._ORAREND.'</option>';
+ echo '</select>';
+ if ($ADAT['tipus'] != 'normál') echo '<strong> '.$ADAT['tipus'].' </strong>';
+
+ echo '<input type="submit" value="'._ORA_FELVETELE.'" />';
+ formEnd();
+ }
+
+ function putOrak($Orak, $title, $ADAT) {
+
+ echo '<h1>'.ucfirst($title).' '._ORAI.'</h1>';
+ echo '<ul class="pluszora">';
+
+ for ($i = $ADAT['napiMinOra']; $i <= $ADAT['napiMaxOra']; $i++) {
+ echo '<li>';
+ echo '<span class="oraszam">' . $i . '. ' . _ORA . '</span> ';
+ if (is_array($Orak[$i])) {
+ if (is_array($Orak[$i][0])) {
+ for ($j = 0; $j < count($Orak[$i]); $j++) {
+ echo '<span>' . $Orak[$i][$j]['tankorNev'] . '</span> ';
+ }
+ } else {
+ echo '<span>' . $Orak[$i]['tankorNev'] . '</span>';
+ }
+ }
+ echo '</li>';
+ }
+
+ echo '</ul>';
+ }
+
+ function putLila($ADAT) {
+
+ echo '<h1>'._CSOPORTOS_PLUSZORA.'</h1>';
+
+ formBegin(array('class'=>'pluszLila'));
+
+ echo '<input type="hidden" name="action" value="csoportos" />';
+
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="ora" value="'.$ADAT['ora'].'" />';
+
+ echo '<label>'._TANAROK.'</label>';
+
+ echo '<button type="button" id="mindentanar">minden tanár</button>';
+ echo '<button type="button" id="invertal">kijelölés invertálása</button>';
+// echo '<button type="button" id="munkakozosseg">munkaközösség</button>';
+// echo '<button type="button" id="targy">tárgy</button>';
+// echo '<button type="button" id="tankorcsoport">tankörcsoport</button>';
+// echo '<button type="button" id="tankorblokk">tankörblokk</button>';
+ echo '<select name="munkakozossegSelector" id="munkakozossegSelector">';
+ echo '<option value=""> - </option>';
+ for ($i=0; $i<count($ADAT['munkakozossegek']); $i++) {
+ $_D = $ADAT['munkakozossegek'][$i];
+ echo '<option value="'.$_D['mkId'].'">'.$_D['leiras'].' ('.$_D['mkVezNev'].')</option>';
+ }
+ echo '</select >';
+ echo '<button type="button" class="selectorButton" id="selectorPlus" ><span class="icon-plus"></span></button>';
+ echo '<button type="button" class="selectorButton" id="selectorMinus"><span class="icon-minus"></span></button>';
+ echo '<br/>';
+ echo '<select multiple="multiple" size="15" name="tanarIdk[]" id="tanarLista">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $_D = $ADAT['tanarok'][$i];
+ echo '<option value="'.$_D['tanarId'].'" data-mk="['.implode(',',$ADAT['mkTanar']['tanarMk'][$_D['tanarId']]).']">'.$_D['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ echo '<label>'._FELADAT.'</label>';
+ echo '<select name="feladatTipusId">';
+ foreach ($ADAT['feladatTipus'] as $feladatTipusId => $FA) {
+ echo '<option value="'.$feladatTipusId.'">'.$FA['feladatTipusLeiras'].'</option>';
+ }
+ echo '</select> ';
+ echo '<label>'._LEIRAS.'</label>';
+ echo '<input type="text" name="leiras" placeholder="a feladat részletes leírása" style="width:50%;" />';
+ echo '<input type="submit"> ';
+ _inlineHelp('A gomb megnyomásával a kijelölt tanároknak előírt pluszfeladatot rögzítünk az adott nap ('.($ADAT['dt']).') adott órájára ('.$ADAT['ora'].')');
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/specialis.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/specialis.phtml
new file mode 100644
index 00000000..74f47c4e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/specialis.phtml
@@ -0,0 +1,181 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putNapInfo($napAdat, $munkatervek) {
+
+ echo '<table class="napinfo">';
+ echo '<tr><th colspan="'.count($napAdat).'">'.$napAdat[0]['dt'].'</th></tr>';
+ echo '<tr>';
+ for ($i = 0; $i < count($napAdat); $i++) {
+ echo '<td>';
+ echo '<h3>'._MUNKATERV.': '.$munkatervek[$napAdat[$i]['munkatervId']]['munkatervNev'].' ('.$napAdat[$i]['munkatervId'].')</h3>';
+ echo '<p>'._TIPUS.': <strong>'.$napAdat[$i]['tipus'].'</strong></p>';
+ echo '<p>'._ORARENDIHET.': <strong>'.$napAdat[$i]['orarendiHet'].'</strong></p>';
+ echo '<p>'._MEGJEGYZES.'<strong>: '.$napAdat[$i]['megjegyzes'].'</strong></p>';
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</table>';
+
+ }
+
+ function napiOrakTorleseForm($napAdat, $napTipusok) {
+
+ $dt = $napAdat[0]['dt'];
+ $tipus = array();
+ for ($i = 0; $i < count($napAdat); $i++) if (!in_array($napAdat[$i]['tipus'], $tipus)) $tipus[] = $napAdat[$i]['tipus'];
+ // Ha egyféle típus van rendelve a naphoz az összes munkatervben...
+ if (count($tipus) == 1) $SEL = array($tipus[0] => ' selected="selected" ');
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="napiOrakTorlese" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+ echo '<label for="tipus">'._NAP_TIPUSA.'</label>'."\n";
+ echo '<select name="tipus" id="tipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($napTipusok); $i++) {
+ echo '<option value="'.$napTipusok[$i].'"'.$SEL[$napTipusok[$i]].'>'.$napTipusok[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._ORAK_TORLESE.'" class="confirm" title="'._TORLES_BIZTOS_E.'" />'."\n";
+
+ formEnd();
+ }
+
+ function orakBetolteseForm($napAdat, $Hetek) {
+
+ $dt = $napAdat[0]['dt'];
+ $orarendiHet = array();
+ for ($i = 0; $i < count($napAdat); $i++) if (!in_array($napAdat[$i]['orarendiHet'], $orarendiHet)) $orarendiHet[] = $napAdat[$i]['orarendiHet'];
+ // Ha egyetlen órarendi héthez van rendelve a nap az összes munkatervben...
+ if (count($orarendiHet) == 1) $SEL = array($orarendiHet[0] => ' selected="selected" ');
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="orakBetoltese" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+ echo '<label for="het">'._ORARENDIHET.'</label>'."\n";
+ echo '<select name="orarendiHet" id="het">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Hetek); $i++) {
+ echo '<option value="'.$Hetek[$i].'"'.$SEL[$Hetek[$i]].'>'.$Hetek[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._ORAK_BETOLTESE.'" class="confirm" title="'._BETOLTES_BIZTOS_E.'" />'."\n";
+
+ formEnd();
+ }
+
+ function specialisNapForm($dt, $szabadOrak, $Hetek) {
+
+ global $aHetNapjai, $napiMinOra, $napiMaxOra;
+
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="specialisNap" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+
+ echo '<table>'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr><th colspan="5">'._ORAREND_OSSZEALLITASA.": $dt</th></tr>\n";
+ echo '<tr>';
+ echo '<th>'._SZABAD_ORA.'</th>';
+ echo '<th></th>';
+ echo '<th>'._HET.'</th>';
+ echo '<th>'._NAP.'</th>';
+ echo '<th>'._ORA.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th colspan="5"><input type="submit" value="'._OK.'" /></th>';
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ for ($j = 0; $j < count($szabadOrak); $j++) {
+ echo '<tr>'."\n";
+ echo '<th><input type="hidden" name="celOra[]" value="'.$szabadOrak[$j].'" />'.$szabadOrak[$j].'</th>'."\n";
+ echo '<td>&#8594;</td>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="het[]">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($h = 0; $h < count($Hetek); $h++) {
+ echo '<option value="'.$Hetek[$h].'">'.$Hetek[$h].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>';
+ $dow = date('w',strtotime($dt));
+ if ($dow == 0 ) $dow = 7;
+ $SEL = array($dow => ' selected="selected" ');
+ echo '<select name="nap[]">';
+ echo '<option value=""> - </option>';
+ for ($k = 1; $k <= 7; $k++) {
+ echo '<option value="'.$k.'"'.$SEL[$k].'>'.$aHetNapjai[$k-1].'</option>';
+ }
+ echo '</select>';
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<select name="ora[]">';
+ echo '<option value=""> - </option>';
+ for ($k = $napiMinOra; $k <= $napiMaxOra; $k++) {
+ if ($szabadOrak[$j] == $k) {
+ echo '<option value="'.$k.'" selected="selected">'.$k.'</option>';
+ } else {
+ echo '<option value="'.$k.'">'.$k.'</option>';
+ }
+ }
+ echo '</select>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+ function orakTorleseForm($dt, $szabadOrak) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ formBegin(array('class'=>'specialis'));
+
+ echo '<input type="hidden" name="action" value="orakTorlese" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />'."\n";
+ echo '<table>'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr><th colspan="2">'._FOGLALT_SAVOK_TORLESE.': '.$dt.'</th></tr>'."\n";
+ echo '<tr>';
+ echo '<th>'._FOGLALT_ORA.'</th>';
+ echo '<th>'._TORLENDO.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2"><input type="submit" value="'._TORLES.'" class="confirm" title="'._ORA_TORLES_BIZTOS_E.'" /></th>';
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ for ($i = $napiMinOra; $i <= $napiMaxOra; $i++) {
+ if (!in_array($i, $szabadOrak)) {
+ echo '<tr>';
+ echo '<th>'.$i.'</th>';
+ echo '<td><input type="checkbox" name="ora[]" value="'.$i.'" /></td>'."\n";
+ echo '</tr>';
+ }
+ }
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/stat.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/stat.phtml
new file mode 100644
index 00000000..64d0bc71
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/stat.phtml
@@ -0,0 +1,76 @@
+<?php
+
+
+ function putTankorStat($tankorStat) {
+ $mutatHianyzasStat = (is_array($tankorStat['hianyzasStat'])) ? true : false;
+
+ echo '<table class="stat" cellspacing="1">'."\n";
+ echo '<thead><tr>'."\n";
+ echo '<th>'._TANKORNEV.'</th>'."\n";
+ echo '<th>'._MEGTARTOTT_ORASZAM.'</th>'."\n";
+ echo '<th>'._BECSULT_HATRALEVO_ORASZAM.'</th>'."\n";
+ echo '<th>'._BECSULT_OSSZES_ORASZAM.'</th>'."\n";
+ echo '<th>'._TERVEZETT_ORASZAM.'</th>'."\n";
+ if ($mutatHianyzasStat) echo '<th>'._HIANYZAS_ARANY.'</th>'."\n";
+ echo '<th>'._TANKOR_JEGYEK_SZAMA.'</th>'."\n";
+ echo '</tr></thead>'."\n";
+ echo '<tfoot><th colspan="'.(6+($mutatHianyzasStat)).'"></th></tfoot>'."\n";
+
+ if (is_array($tankorStat['tervezett']))
+ foreach ($tankorStat['tervezett'] as $tankorId => $tervezettAdat) {
+ echo '<tbody>';
+ echo '<tr>'."\n";
+
+ echo '<th>';
+ echo $tervezettAdat[0]['tankorNev'];
+ echo '</th>'."\n";
+ echo '<td>';
+ echo $_megtartott=$tankorStat['megtartott'][$tankorId]['oraSzam'];
+ echo '</td>'."\n";
+ echo '<td>';
+ echo $tankorStat['becsult'][$tankorId]['oraSzam'];
+ echo '</td>'."\n";
+ echo '<td>';
+ echo $tankorStat['becsult'][$tankorId]['oraSzam']+$tankorStat['megtartott'][$tankorId]['oraSzam'];
+ echo '</td>'."\n";
+ echo '<td title="'.$tankorStat['tanitasiHetekSzama'][$tankorId].' '._TANITASI_HET.'">';
+ echo $_tervezett=$tervezettAdat['evesOraszam'];
+ echo '</td>'."\n";
+ if ($mutatHianyzasStat) {
+ $_db = $tankorStat['hianyzasStat'][$tankorId]['db'];
+ if (is_numeric($_db) && $_db>0 && intval($_megtartott)>0 && $_tervezett>0) {
+ $_sz1 = number_format($_db*100/$_megtartott,1);
+ $_sz2 = number_format($_db*100/$_tervezett,1);
+ if ($_sz1>30) $_class = ' class="ertesitendo" ';
+ else $_class = '';
+ } else {
+ $_class = '';
+ }
+ echo "<td $_class>";
+ if (is_numeric($_db) && $_db>0) {
+ echo $_db . ' ' . _DB ;
+ if ($_megtartott>0&&$_tervezett>0) echo " ($_sz1% | $_sz2%)";
+ }
+ echo '</td>'."\n";
+ }
+
+ echo '<td>';
+ echo '<span title="'._JEGYEK_SZAMA.'">'.intval($tankorStat['jegyekSzama'][$tankorId]).'</span> / ';
+ echo '<span title="'._LETSZAM.'">'.intval($tankorStat['letszam'][$tankorId]).'</span> / ';
+ echo '<span title="'._HETI_ORASZAM.'">'.$tankorStat['tervezett'][$tankorId]['hetiOraszam'].'</span> = ';
+ echo '<span title="'._JEGYSZAM_PER_FO.'">'.((intval($tankorStat['letszam'][$tankorId])!=0)?number_format($tankorStat['jegyekSzama'][$tankorId]/$tankorStat['letszam'][$tankorId],2):'-').'</span> / ';
+ echo '<span title="'._HETI_ORASZAM.'">'.$tankorStat['tervezett'][$tankorId]['hetiOraszam'].'</span> = ';
+ echo '<span title="'._ATLAGOS_JEGYSZAM.'">'.((intval($tankorStat['letszam'][$tankorId])!=0 && intval($tankorStat['tervezett'][$tankorId]['hetiOraszam'])!=0)?number_format($tankorStat['jegyekSzama'][$tankorId]/$tankorStat['letszam'][$tankorId]/$tankorStat['tervezett'][$tankorId]['hetiOraszam'],2):'- - . -').'</span>';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+ }
+
+
+ echo '</table>'."\n";
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/tankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/tankor.phtml
new file mode 100644
index 00000000..c5b62199
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/tankor.phtml
@@ -0,0 +1,54 @@
+<?php
+
+ function putTankorStat($ADAT) {
+
+
+ $sum = 0;
+ $sum = $ADAT['tankorStat']['éves']['órarend']['normál'][0]['db'];
+ $sum += $ADAT['tankorStat']['éves']['órarend']['normál plusz'][0]['db'];
+ $sum += $ADAT['tankorStat']['éves']['órarend']['normál máskor'][0]['db'];
+
+ $n = 0;
+ $n += $ADAT['tankorStat']['éves']['órarend']['elmarad'][0]['db'];
+ $n += $ADAT['tankorStat']['éves']['órarend']['elmarad máskor'][0]['db'];
+ $n += $ADAT['tankorStat']['éves']['órarend']['felügyelet'][0]['db'];
+ $n += $ADAT['tankorStat']['éves']['órarend']['helyettesítés'][0]['db'];
+
+ echo '<h1>Az órák '.$sum*100/($sum+$n).'%-a volt megtartva.</h1>';
+ echo '<h1>'.$n.' óra maradt el.</h1>';
+ //dump($ADAT);
+ return;
+
+ $O = $ADAT['oraAdat'];
+
+ echo '<style type="text/css">
+ .modGomb {
+ background-color: #eeeeee;
+ padding:4px 1em; margin:1em; background-color: #eeeeee; border-radius: 2px; border-style: solid solid solid none; border-width: 1px 1px 1px 1px; border-color: #aaa;
+ }
+ .oraElmarad {background-color: red; color:white;}
+ .oraMegtartva {background-color: green; color:white;}
+ </style>';
+
+ echo '<div style="padding:1em 0em;float:left; margin-right:2em;background-color: #eeeeee; width:294px; border-radius: 0px 4px 4px 0px; border-style: solid solid solid none; border-width: 1px 1px 1px 0px; border-color: #aaa;">';
+ if (is_array($O)) {
+ foreach($ADAT['oraAdat'] as $k => $v) {
+ echo '<div style="width:90px; text-align:right; display:table-cell;">';
+ echo $k;
+ echo '</div>';
+ echo '<div style="width:200px; text-align:left; display:table-cell; padding-left:1em;">';
+ echo $v;
+ echo '</div><div style="clear:both"></div>';
+ }
+ }
+ echo '</div>';
+echo '<h2>Ez a funkció még nem működik!</h2>';
+ echo '<input type="hidden" name="oraId" value="'.$O['oraId'].'" />';
+ echo '<input type="submit" name="oraElmarad" value="'._ELMARAD.'" id="oraElmarad" class="modGomb oraElmarad" />';
+ echo '<input type="submit" name="oraMegtartva" value="'._MEGTARTVA.'" id="oraMegtartva" class="modGomb oraMegtartva" />';
+
+ echo '<div style="clear: both"></div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml
new file mode 100644
index 00000000..deaaab15
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/haladasi/teremModositas.phtml
@@ -0,0 +1,49 @@
+<?php
+ /* 2010 */
+
+ function putTeremModositas($ADAT) {
+ formBegin();
+
+ foreach (array('dt','ora','tanarId','tankorId','oraId') as $key) {
+ echo '<input type="hidden" name="'.$key.'" value="'.$ADAT[$key].'" />';
+ }
+ unset($key);
+
+ echo '<table class="terem" align="center">';
+ echo '<tr>';
+ echo '<td>';
+ _putOraAdat($ADAT['oraAdat']);
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr><th>';
+ echo '<select name="ujTeremId">';
+ echo '<option value="'.$ADAT['oraAdat']['teremId'].'">'._EREDETI.' ('.$ADAT['oraAdat']['teremId'].')</option>'; // nulla amúgy sincs
+ foreach($ADAT['szabadTerem'] as $key) {
+ $_SEL = ($key['teremId'] == $ADAT['oraAdat']['teremId']) ? ' selected="selected" ' : '';
+ $_CLASS = ($ADAT['tankorLetszam']>$key['ferohely']) ? ' class="nemferbe" ' : ' ';
+ echo '<option '.$_CLASS.' value="'.$key['teremId'].'">'.$key['leiras'].' '.$key['tipus'].' ('.$key['ferohely'].' '._HELY.') '.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="hidden" name="action" value="teremModosit" />';
+ echo '<input type="submit" name="kuld" value="'._OK.'" />';
+ echo '</th></tr>';
+ echo '</table>';
+
+ formEnd();
+ }
+
+ function _putOraAdat($OA) {
+ /* Példa
+ array(13) { ["oraId"]=> string(5) "36513" ["dt"]=> string(10) "2010-03-25" ["ora"]=> string(1) "6" ["ki"]=> string(2) "81" ["kit"]=> NULL ["tankorId"]=> string(4) "1267" ["teremId"]=> NULL ["leiras"]=> NULL ["tipus"]=> string(7) "normál" ["eredet"]=> string(8) "órarend" ["kiCn"]=> string(16) "Ábrám László" ["kitCn"]=> string(0) "" ["tankorNev"]=> string(25) "7-8. fizika szakkör ALAP" }
+ */
+ echo '<table align="center" class="terem oraAdat" cellspacing="1">';
+ foreach(array('oraId','dt','ora','tankorNev','kiCn','kitCn','teremId') as $key) {
+ echo '<tr>';
+ echo '<th>'.constant('_'.strtoupper($key)).'</th>';
+ echo '<td>'.$OA[$key].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diak.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diak.phtml
new file mode 100644
index 00000000..f8355eb3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diak.phtml
@@ -0,0 +1,226 @@
+<?php
+
+ function putDiakHianyzasNaptar($ADAT) {
+
+ global $aHetNapjai,$Honapok;
+
+ $HTIPUSOK1 = array('','késés','hiányzás');
+ $HTIPUSOK2 = array('felszerelés hiány','felmentés','egyenruha hiány');
+ // nincs használatban??? // $ITIPUSOK = getEnumField('naplo', 'hianyzas', 'igazolas'); // ez inkább a pre be lenne való?
+
+ $NAPOK = $ADAT['napok'];
+
+ echo '<table class="naptar" cellspacing="0" align="center">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="7">';
+ //echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=tanuloLista&diakId='.$diakId).'">';
+ echo $ADAT['diak']['nev'];
+ if (is_array($ADAT['diak']['kepzes'])) {
+ echo ' ';
+ for ($j=0; $j<count($ADAT['diak']['kepzes'][$ADAT['diakId']]); $j++) {
+ echo '<span class="kepzes">';
+ echo $ADAT['diak']['kepzes'][$ADAT['diakId']][$j]['kepzesNev'];
+ echo '</span>';
+ }
+ }
+ //echo '</a>';
+ echo ' ';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=osztaly&osztalyId='.$ADAT['osztalyId']).'">';
+ echo $ADAT['osztaly']['osztalyJel'];
+ echo ' '.$ADAT['osztaly']['leiras'];
+ echo '</a>';
+ echo '</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ //echo '<tr>';
+ // echo '<th colspan="7">';
+ // echo $NAPOK[0]['dt'].' '.$NAPOK[count($NAPOK)-1]['dt'];
+ // echo '</th>';
+ //echo '</tr>';
+ if (defined('__STATUS_HATARIDO')) {
+ echo '<tr>';
+ echo '<th colspan="7">';
+ echo _MARNEMIGAZOLHATO.': '.__STATUS_HATARIDO.', ';
+ echo _BEIRHATO.': '. __BEIRAS_HATARIDO;
+ echo '</th>';
+ echo '</tr>';
+ }
+ // igazolás típusának váltása
+ if ( defined('__STATUS_HATARIDO') && (__NAPLOADMIN || __OFO || __VEZETOSEG) ) {
+ echo '<tr>';
+ echo '<td colspan="7">';
+ formBegin();
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="ho" value="'.$ADAT['ho'].'" />';
+// #echo '<input type="hidden" name="igDt" value="'.$igDt.'" />';
+ echo '<input type="hidden" name="action" value="igazolasTipusValtas" />';
+ echo '<select name="igazolas" class="onChangeSubmit">';
+ for ($i=0; $i<count($ADAT['igazolasTipusok']['engedelyezett']); $i++) {
+ $_SEL = ($ADAT['igazolas'] == $ADAT['igazolasTipusok']['engedelyezett'][$i]) ? ' selected="selected" ':'';
+ echo '<option value="'.$ADAT['igazolasTipusok']['engedelyezett'][$i].'" '.$_SEL.'>';
+ if ($ADAT['igazolasTipusok'][$ADAT['igazolasTipusok']['engedelyezett'][$i]]!='') {
+ echo $ADAT['igazolasTipusok'][$ADAT['igazolasTipusok']['engedelyezett'][$i]];
+ } else {
+ $ADAT['igazolasTipusok']['engedelyezett'][$i].' (-)';
+ }
+ echo '</option>';
+ }
+ echo '</select>';
+ formEnd();
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tfoot>'."\n";
+
+
+ ## első hó fejléce
+ $dow = date('w',strtotime($NAPOK[0]['dt']));
+ $ho = date('m',strtotime($NAPOK[0]['dt']));
+ if ($dow==0) $dow=7;
+ echo '<tbody>'."\n";
+ echo '<tr><th colspan="7" class="fejlec">'.$Honapok[($ho-1)].'</th></tr>'."\n";
+ echo '<tr>';
+ for($nap=0; $nap<7; $nap++) {
+ echo '<th class="fej2">'.$aHetNapjai[$nap].'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '<tr>';
+ for($nap=1; $nap<$dow; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+
+ for($i=0; $i<count($NAPOK); $i++) {
+ $dt = $NAPOK[$i]['dt'];
+ $dow = date('w',strtotime($dt));
+ $_ho = date('n',strtotime($dt));
+ if ($dow==0) $dow=7;
+
+ if (strtotime($dt)>time()) $future = true;
+
+ // Hónapváltás
+ if ($_ho!=$ho) {
+ $ho=$_ho;
+ if ($dow!=7) {
+ for($nap=$dow; $nap<=7; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>'."\n";
+ echo '<tbody>'."\n";
+ echo '<tr><th colspan="7" class="fejlec">'.$Honapok[($ho-1)].'</th></tr>'."\n";
+ echo '<tr>';
+ for($nap=0; $nap<7; $nap++) {
+ echo '<th class="fejlec">'.$aHetNapjai[$nap].'</th>';
+ }
+ echo '</tr>'."\n";
+ echo '<tr>';
+ for($nap=1; $nap<$dow; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+ } // hónapváltás vége
+
+ if ($dow==1) echo '<tr>';
+
+ // Egy nap
+ echo '<td class="egynap">';
+ {
+ if (in_array($NAPOK[$i]['tipus'], array('tanítási nap','speciális tanítási nap'))) {
+ _putHianyzasNap($ADAT,array('dt'=>$NAPOK[$i]['dt']),$ADAT['igazolas'],$future);
+ } else {
+ //if ($NAPOK[$i]['megjegyzes']!='')
+ echo '<div class="spec '.str_replace(' ','_',$NAPOK[$i]['tipus']).'">'.$NAPOK[$i]['megjegyzes'].'</div>';
+ }
+ }
+ echo '</td>'."\n";
+ // -------------------------------------------------
+
+ if ($dow==7) echo '</tr>';
+
+ } // kirakandó dátumok vége
+
+ if ($dow!=7) {
+ for($nap=$dow+1; $nap<=7; $nap++) {
+ echo '<td class="uresnap"></td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+
+ echo '</table>';
+
+ }
+
+
+ function _putHianyzasNap($ADAT,$NAPADAT,$igazolas,$future) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ $diakId = $ADAT['diakId'];
+ $dt = $NAPADAT['dt'];
+ echo '<table class="tanuloEgyNapja hianyzasNaptar" cellspacing="1" cellpadding="1" border="0">';
+ echo '<tr>';
+ if (defined('__STATUS_HATARIDO') && (__OFO || __VEZETOSEG || __NAPLOADMIN) && strtotime(__STATUS_HATARIDO) < strtotime($dt) && !$future) {
+ echo '<th class="balgomb">';
+ formBegin();
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="status" value="igazolatlan" />';
+ echo '<input type="hidden" name="igazolas" value="" />';
+ echo '<input type="hidden" name="action" value="napiHianyzasBeiras" />';
+ echo '<input type="submit" value="H" class="H" />';
+ formEnd();
+ echo '</th>'."\n";
+ echo '<th class="balgomb">';
+ formBegin();
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="status" value="igazolt" />';
+ echo '<input type="hidden" name="igazolas" value="'.$igazolas.'" />';
+ echo '<input type="hidden" name="action" value="napiHianyzasBeiras" />';
+ echo '<input type="submit" value="I" class="I" />';
+ formEnd();
+ echo '</th>';
+ } else { // nincs joga igazolni
+ echo '<th colspan="2" class="balgombokhelye"></th>'."\n";
+ }
+ echo '<th class="datum">';
+ echo '&nbsp;'.date('j',strtotime($NAPADAT['dt'])).'&nbsp;';
+ echo '</th>'."\n";
+ echo '<th class="jobbgomb">';
+ if (!$future) {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=hianyzas&f=nap')));
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$NAPADAT['dt'].'" />';
+ echo '<input type="hidden" name="action" value="" />';
+ echo '<input type="submit" value="&rarr;" />';
+ formEnd();
+ }
+ echo '</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td colspan="4">';
+
+ if ((__OFO || __NAPLOADMIN || __VEZETOSEG)) {
+ $allowed=true;
+ } else $allowed = false;
+ $href= 'index.php?diakId='.$diakId.'&igazolas='.$igazolas.'&page=naplo&sub=hianyzas&f=diak&action=statusModositas';
+
+ if (!$future) _putHianyzasKistabla(
+ $ADAT['hianyzasok'][$ADAT['diakId']],
+ array('dt' => $dt),
+ array('href' => $href, 'allowed' => $allowed, 'napiMinOra' => $napiMinOra, 'napiMaxOra' => $napiMaxOra)
+ );
+
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml
new file mode 100644
index 00000000..c2343043
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakIgazolatlan.phtml
@@ -0,0 +1,42 @@
+<?php
+
+ function putDiakIgazolatlan($ADAT) {
+
+ echo '<table class="igazolatlan" cellspacing="1">'."\n";
+// echo '<thead>'."\n";
+ echo '<tr class="fej">';
+ echo '<th>'._DATUM.'</th>';
+ echo '<th>'._ORA.'</th>';
+ echo '<th>'._TIPUS.'</th>';
+ echo '<th>'._PERC.'</th>';
+ echo '</tr>'."\n";
+// echo '</thead>'."\n";
+// echo '<tbody>'."\n";
+
+ $hDb = $perc = 0;
+ foreach ($ADAT['igazolatlan'] as $iAdat) {
+
+ if ($iAdat['tipus'] == 'késés') $perc += $iAdat['perc'];
+ else $hDb++;
+ echo '<tr>';
+ echo '<td>'.str_replace('-','.',$iAdat['dt']).'.</td>';
+ echo '<td>'.$iAdat['ora'].'</td>';
+ echo '<td>'.$iAdat['tipus'].'</td>';
+ echo '<td>'.($iAdat['tipus'] == 'késés'?$iAdat['perc']:'').'</td>';
+ echo '</tr>';
+
+ }
+// echo '</tbody>'."\n";
+// echo '<tfoot>'."\n";
+ echo '<tr class="lab">';
+ echo '<th>'._HIANZASOK_SZAMA.':</th>';
+ echo '<td>'.$hDb.'</td>';
+ echo '<th>'._KESESEK_OSSZESEN.':</th>';
+ echo '<td>'.$perc.'</td>';
+ echo '</tr>'."\n";
+// echo '</tfoot>'."\n";
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml
new file mode 100644
index 00000000..4335f38c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/diakLista.phtml
@@ -0,0 +1,50 @@
+<?php
+
+ function putDiakHianyzasLista($ADAT) {
+
+ global $aHetNapjai;
+ //re
+ $_N = $ADAT['napok'];
+ for ($i=0; $i<count($_N); $i++) {
+ $NAPOK[$_N[$i]['dt']] = $_N[$i];
+ }
+ unset($_N);
+
+ if (is_array($ADAT['hianyzasok'][$ADAT['diakId']])) {
+ echo '<table class="hianyzasLista" cellspacing="1" cellpadding="1" align="center">';
+ echo '<caption>'.$ADAT['diak']['nev'].'</caption>';
+ foreach ($ADAT['hianyzasok'][$ADAT['diakId']] as $dt => $T) {
+ echo '<tr>';
+ echo '<th colspan="8">';
+ echo str_replace('-','.',$dt) .'. '. $aHetNapjai[date('w',strtotime($dt))-1];
+ echo ' '.$NAPOK[$dt]['megjegyzes'].' ('.$NAPOK[$dt]['orarendiHet'].'. '.__HET.')'; // tipus, megjegyzes, orarendiHet
+ formBegin(array('class'=>'nyil','action'=>href('index.php?page=naplo&sub=hianyzas&f=nap')));
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '<input type="hidden" name="action" value="nem csinálunk semmit" />';
+ echo '<input type="submit" value="&rarr;" />';
+ formEnd();
+ echo '</th>';
+ echo '</tr>';
+ foreach($T as $ora => $D) {
+ for ($i=0; $i<count($D); $i++) {
+
+ $ORAADAT = getOraAdatById($D[$i]['oraId']); // ezt nem itt!
+
+ echo '<tr>';
+ echo '<td>'.$D[$i]['ora'].'.</td>';
+ echo '<td class="'.ekezettelen($D[$i]['tipus']).'">'.$D[$i]['tipus'].($D[$i]['tipus'] == 'késés'?' ('.$D[$i]['perc'].' '._PERC.')':'').'</td>';
+ echo '<td class="'.ekezettelen($D[$i]['statusz']).'">'.$D[$i]['igazolas'].'</td>';
+ echo '<td>'.$ORAADAT['kiCn'].'</td>';
+ echo '<td>'.$ORAADAT['leiras'].'</td>';
+ echo '<td>'.$ORAADAT['tipus'].'</td>';
+ echo '<td>'.$ORAADAT['tankorNev'].'</td>';
+ echo '</tr>'."\n";
+ }
+ }
+ }
+ echo '</table>';
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/info.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/info.phtml
new file mode 100644
index 00000000..14b7acec
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/info.phtml
@@ -0,0 +1,96 @@
+<?php
+
+ function putDiakHianyzasInfo($ADAT) {
+ if (__ALLOW_3RDPARTY_APPS===true) {
+ echo "\n\n<!-- We are using Google Chart API! Thank You! http://code.google.com/apis/chart/terms.html -->\n\n";
+ reset($ADAT);
+ $i=0;
+ foreach($ADAT as $dt => $D) {
+ $d = $D['hianyzokSulyozva'];
+ if ($d!=-1) $Goo_Data[] = $d;
+ if ($d!=-1) $Goo_Data2[] = $D['hianyzokTanulmanyin'];
+ if ($d!=-1) $Goo_Data3[] = $d - $D['hianyzokTanulmanyin'];
+ if ($mx<$d) $mx = $d;
+ }
+ $Goo_Data = array_reverse($Goo_Data,false);
+ $Goo_Data2 = array_reverse($Goo_Data2,false);
+ $Goo_Data3 = array_reverse($Goo_Data3,false);
+ echo '<div style="text-align: center">';
+# echo '<img src="http://chart.apis.google.com/chart?chco=667766&cht=lc&chs=500x150&chd=t:'.implode(',',$Goo_Data).'&chds=0,'.($mx+1).'&chxt=y&chxl=0:|0|'.($mx+1).'&chtt=Hiányzók+alakulása+(becslés)" alt="Google Chart" />';
+ echo '<img src="http://chart.apis.google.com/chart?chco=00ff00,7777ff,872879&cht=lc&chs=810x180&chm=D,872879,2,0,4&chd=e:'.
+ googEE($Goo_Data,$mx+1,0).','.
+ googEE($Goo_Data2,$mx+1,0).','.
+ googEE($Goo_Data3,$mx+1,0).
+ '&chds=0,'.($mx+1).'&chxt=y&chxl=0:|0|'.($mx+1).'&chtt=Hiányzók+alakulása+a+megadott+intervallumban+(becslés)'.
+ '&chdl=becslés|tanulmányi+versenyzők|különbség'.
+ '&chg=2.7,10,1,1,0,0'.
+ '&scg=20,50,1,5" alt="Google Chart" />';
+ echo '</div>';
+
+echo '
+ <div id="chart_div"></div>
+';
+
+ }
+ reset($ADAT);
+ echo '<table align="center" class="info" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr><th>Nap</th>
+ <th>Hány diák hiányzott? (Becslés)</th>
+ <th>Az órák hány százalékán volt hiányzó?</th>
+ <th>Tanulmányi verseny miatt igazolt<br/>(db diák) - pontos érték</th></tr>'."\n";
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="4">A statisztika '.date('Y-m-d H:i:s').'-kor készült'.'</th></tr></tfoot>';
+ echo '<tbody>';
+ foreach($ADAT as $dt => $D) {
+ list($y,$m,$d) = explode('-',$dt);
+ $w = date('w',strtotime($dt));
+ echo '<tr class="nap'.$w.'">';
+ echo '<th>'.$y.'.'.intval($m).'.'.intval($d).'.</th>';
+ echo '<td>'.$D['hianyzokSulyozva'].'</td>'."\n";
+ echo '<td>'.$D['oranHianyzasSzazalek'].'%</td>'."\n";
+ echo '<td>'.$D['hianyzokTanulmanyin'].'</td>'."\n";
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n";
+
+ }
+
+
+/**
+ * Encode an array of integers according to Google's Extended Encoding
+ * Scales to largest value in array if $max is not set, truncates lower bound if $min is set
+ * Does NOT set the 'e:' prefix so it can be called when creating multiple data series
+ * @link http://code.google.com/apis/chart/formats.html#extended
+ * @param array $values
+ * @param integer $max
+ * @param integer $min
+ * @return string
+ * @author Marcus Bointon <marcus@synchromedia.co.uk>
+ */
+function googEE($values, $max = -1, $min = 0) {
+ $encoding = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.';
+ $rangemax = 4095;
+ $chartdata = '';
+ if ($max < 0) {
+ $max = max($values);
+ }
+ //If max is smaller than the largest value, it will go beyond range allowed by the encoding (0..4095)
+ if ($max < max($values)) {
+ $max = max($values);
+ }
+ $range = $max - $min;
+ $scale = $rangemax / $range;
+ foreach ($values as $k => $v){
+ if ($v >= $min && $v <= $max) {
+ $scaledvalue = ($v - $min) * $scale;
+ $chartdata .= $encoding[floor($scaledvalue / 64)].$encoding[$scaledvalue % 64];
+ } else {
+ $chartdata .= '__'; // Value out of max range;
+ }
+ }
+ return($chartdata);
+}
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/nap.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/nap.phtml
new file mode 100644
index 00000000..77aa94d3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/nap.phtml
@@ -0,0 +1,252 @@
+<?php
+
+ function putHianyzok($ADAT) {
+
+ $napiMinOra = $ADAT['napiMinOra'];
+ $napiMaxOra = $ADAT['napiMaxOra'];
+ // make assoc
+ if (is_array($ADAT['hianyzasok']))
+ foreach ($ADAT['hianyzasok'] as $_diakId => $_DN)
+ foreach ($_DN as $_dt => $_DO)
+ foreach($_DO as $ora => $_D)
+ for ($i=0; $i<count($_D); $i++) {
+ $HADAT[$_D[$i]['ora']][$_D[$i]['diakId']][$_D[$i]['tipus']] = $_D[$i];
+ $UJHADAT[$_D[$i]['oraId']][$_D[$i]['diakId']][$_D[$i]['tipus']] = $_D[$i];
+ }
+
+ for ($i=0; $i<count($ADAT['nevsor']['adatok']); $i++) {
+ $D = $ADAT['nevsor']['adatok'][$i];
+ $RESZLETEK[$D['tankorId']] = $D;
+ }
+
+ $HTIPUSOK1 = array('','késés','hiányzás');
+ if (__EGYENRUHA_HIANY_REGISZTRALAS === true) $HTIPUSOK2 = array('egyenruha hiány','felszerelés hiány','felmentés');
+ else $HTIPUSOK2 = array('','felszerelés hiány','felmentés');
+ $ITIPUSOK = getEnumField('naplo', 'hianyzas', 'igazolas'); // ez inkább a pre be lenne való?
+
+ $dt = $ADAT['dt'];
+ $_diakId = $diakId = $ADAT['diakId'];
+
+ $JOGOSULTSAG = $ADAT['jogosultsag'];
+ $JOGADAT = $JOGOSULTSAG[$diakId]['igazolas'];
+
+ formBegin();
+ echo '<table align="center" cellspacing="1" cellpadding="1" class="csoportNevsorHianyzok">'."\n";
+ echo '<thead>';
+ echo '<tr><th colspan="9" class="neve">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId).'" title="'.$ADAT['diakJogviszony'].'">';
+ echo $ADAT['diak']['nev'];
+ echo '</a>';
+ if (!__DIAK) {
+ echo ' ';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=osztaly&osztalyId='.$ADAT['osztaly']['osztalyId']).'">';
+ echo $ADAT['osztaly']['osztalyJel'];
+ echo ' '.$ADAT['osztaly']['leiras'];
+ echo '</a>';
+ }
+ echo '</th><th>';
+ _putHianyzasKistabla($ADAT['hianyzasok'][$_diakId], array('dt'=>$dt), array('napiMinOra' => $napiMinOra, 'napiMaxOra' => $napiMaxOra));
+ echo '</th></tr>';
+ echo '<tr><th></th><th colspan="2">'._TANKOR.'</th><th>'._J.'</th><th>'._K.'</th><th>'._H.'</th><th>'.EH.'</th><th>'._F.'</th><th>'._FM.'</th><th>'._IGAZOLT.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="11">';
+ echo '<input type="submit" name="gomb" value="'._OK.'" />';
+ echo '<input type="hidden" name="action" value="hianyzokRogzitese" />';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="dt" value="'.$dt.'" />';
+ echo '</th></tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+
+ for ($ora = __MIN_ORA; $ora <= __MAX_ORA; $ora++) {
+ $JOG = $JOGOSULTSAG[$diakId]['orak'][$ora];
+ if (!is_array($ADAT['orak'][$dt][$ora]))
+ {
+ $tankorId='';
+ $OA = false;
+ } else {
+
+ while (
+ list($tankorId,$OA) = each($ADAT['orak'][$dt][$ora])
+ ) {
+ $_tankorTipusId = $ADAT['tankorok'][$tankorId][0]['tankorTipusId'];
+ $_TT = $ADAT['tankorTipus'][$_tankorTipusId];
+ $_class = str_replace(' ','_',ekezettelen( $_TT['rovidNev'] )).' '.ekezettelen(str_replace(' ','',$ADAT['diakJogviszony']));
+ $_oraId = $OA['oraId'];
+ echo '<tr class="'.$_class.'">';
+ echo '<td>';
+ echo $ora.'.';
+ echo '</td>';
+ echo '<td colspan="2">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$OA['oraId']).'" title="'.$ADAT['tankorok'][$tankorId][0]['tankorTipus'].'" >';
+ echo $ADAT['tankorok'][$tankorId][0]['tankorNev'];
+ echo ' '.$_TT['rovidNev'];
+ echo '</a>';
+ echo '</td>';
+
+ if (in_array($OA['tipus'],array('elmarad','elmarad máskor'))) {
+ echo '<th colspan="6">'.$OA['tipus'].'</th>';
+ } else {
+ $oraAlolFelmentve = false;
+ if (in_array($tankorId,array_keys($ADAT['felmentett']))) {
+ for ($i = 0; $i < count($ADAT['felmentett'][$tankorId]); $i++) {
+ if (
+ $ADAT['felmentett'][$tankorId][$i]['felmentesTipus']=='óralátogatás alól'
+ && ($ora == $ADAT['felmentett'][$tankorId][$i]['ora']
+ || is_null($ADAT['felmentett'][$tankorId][$i]['ora'])
+ )
+ ) $oraAlolFelmentve = true;
+ }
+ }
+ if ($_TT['regisztralando'] == 'igen'
+ && !$oraAlolFelmentve
+ && (in_array($ADAT['diakJogviszony'], array('jogviszonyban van','vendégtanuló'))
+ || ($ADAT['diakJogviszony']=='magántanuló' && $_TT['jelleg']=='gyakorlat')
+ )
+ ) {
+ $_igtipus='';
+ /* prepare data */
+ reset($HTIPUSOK1);
+ $__jelen=true;
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ if ($UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId']!='') $__jelen=false;
+ }
+ /* -- */
+ reset($HTIPUSOK1);
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ $_disp='';
+ //$_hid = $HADAT[$ora][$_diakId][$_tipus]['hianyzasId'];
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') $_igtipus = $_tipus;
+ if ($_tipus=='') $_csstipus='jelen'; else $_csstipus=$_tipus;
+ echo '<td class="'.$_csstipus.'">';
+ if ($JOG['beirhato']==true) {
+ $_radio = ($_hid!='' || ($_tipus=='' && $__jelen)) ?'checked="checked"' : '';
+ if ($_tipus=='késés') {
+ $_perc = intval(($UJHADAT[$_oraId][$_diakId][$_tipus]['perc']));
+ $_kesett = ($_perc>0) ? ' kesett':'';
+ echo '<input class="perc'.$_kesett.'" type="text" maxlength="2" size="1" name="PERC_'.$_oraId.'" value="'.$_perc.'" />';
+ $_disp = 'style="display:none"';
+ }
+ echo '<input type="radio" id="'.$_tipus.'_HIANYZOK1_'.$_oraId.'" name="HIANYZOK1_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio . ' '.$_disp.'/>';
+ } else {
+ if (($__jelen && $_tipus=='') || $_hid!='') {
+ if ($_hid!='') echo '<input type="hidden" name="HIANYZOK1_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"/>';
+ if ($_tipus=='késés' && ($_perc = intval(($UJHADAT[$_oraId][$_diakId][$_tipus]['perc']))) != 0) {
+ echo '<span class="perc">'.$_perc.'</span>';
+ } else {
+ _putImg($_tipus,$__jelen);
+ }
+ }
+ }
+ echo '</td>';
+ }
+ if ($JOG['fbeirhato']==true) {
+/*
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus" >';
+ echo '<select id="HIANYZOK2_'.$_oraId.'" name="HIANYZOK2_'.$_oraId.'">';
+ echo '<option value="'.$_diakId.'/"></option>';
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ $_radio = ($_hid!='') ?'selected="selected"' : '';
+ echo '<option value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'>'.$_tipus.'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+*/
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ echo '<td title="'.$_tipus.'" class="fbetus">';
+
+ //$_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ if ($_tipus != '') {
+ if ($_hid != '') $chk = ' checked="checked" '; else $chk = '';
+ echo '<input type="checkbox" id="HIANYZOK'.($j+10).'_'.$_oraId.'" name="HIANYZOK'.($j+10).'_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"'.$chk.' />';
+ }
+ echo '</td>';
+ }
+
+
+ } else {
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus" >';
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $UJHADAT[$_oraId][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') {
+ echo '<input type="hidden" name="HIANYZOK2_'.$_oraId.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'/>';
+ echo $_tipus;
+ }
+ }
+ echo '</td>';
+ }
+ echo '<td>';
+ _putIgazolasSelect($UJHADAT[$_oraId][$_diakId][$_igtipus], $ITIPUSOK,$JOG,$JOGADAT,array('diakId'=>$_diakId,'oraId'=>$ORAADAT['oraId'],'hianyzasId'=>$_hid));
+ echo '</td>';
+ } else { // nem kötelező bejárnia
+ if ($ADAT['diakJogviszony'] == 'magántanuló') {
+ echo '<td class="nemkot" colspan="'.(count($HTIPUSOK2)+count($HTIPUSOK2)+count($ITIPUSOK)).'">';
+ echo $ADAT['diakJogviszony'];
+ echo '</td>'."\n";
+ } else {
+ echo '<td class="nemkot" colspan="'.(count($HTIPUSOK2)+count($HTIPUSOK2)+count($ITIPUSOK)).'">';
+ if ($tankorId!='') echo _NEM_REGISZTRALANDO;
+ echo '</td>'."\n";
+ }
+ } // bejárnia kell-e
+ } //oratipusa normál, helyettesites, felugyelet
+ echo '</tr>';
+ } // r516 óta
+ }
+ //$i++;
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function _putIgazolasSelect($ADAT,$TIPUSOK,$JOG,$JOGADAT,$SET) {
+ //"'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"
+ if (is_array($ADAT)) {
+ if ($JOG['igazolhato']===true) {
+ echo '<select name="IGAZOLAS[]">';
+ echo '<option value="'.$SET['diakId'].'////'.$ADAT['hianyzasId'].'">'._IGAZOLATLAN.'</option>';
+ for($i=0; $i<count($TIPUSOK); $i++){
+ $_SEL = ($ADAT['igazolas']==$TIPUSOK[$i]) ? ' selected="selected"':'';
+ if (in_array($TIPUSOK[$i], $JOGADAT['tipusok'])) {
+ echo '<option value="'.$SET['diakId'].'///'.$TIPUSOK[$i].'/'.$ADAT['hianyzasId'].'" '.$_SEL.'>'.$TIPUSOK[$i].'</option>';
+ }
+ }
+ // és a kieg, ha elfogyott volna, de ez még azzal van igazolva:
+ if (!in_array($ADAT['igazolas'],$JOGADAT['tipusok']) && $ADAT['statusz']!='igazolatlan') {
+ echo '<option value="" selected="selected">'.$ADAT['igazolas'].'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo $ADAT['igazolas'];
+ }
+ }
+
+ }
+
+ function _putOraAdat($ORAADAT) {
+ echo '<table align="center" class="oraAdat">';
+ echo '<tr><td>';
+ echo $ORAADAT['dt'].', '.$ORAADAT['ora'].'. ('.$ORAADAT['oraId'].')';
+ echo '</td><td>';
+ echo $ORAADAT['tankorNev'].' - '.$ORAADAT['kiCn'];
+ echo '</td></tr><tr><th colspan="2">';
+ echo $ORAADAT['leiras'];
+ echo '</td></tr>';
+ echo '</table>';
+ }
+
+ function _putImg($tipus,$jelen) {
+ if ($jelen && $tipus=='') echo '<img src="/skin/classic/module-naplo/img/hianyzas/green.gif" alt="x" />';
+ elseif ($tipus=='késés') echo '<img src="/skin/classic/module-naplo/img/hianyzas/yellow.gif" alt="x" />';
+ elseif ($tipus=='hiányzás') echo '<img src="/skin/classic/module-naplo/img/hianyzas/red.gif" alt="x" />';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml
new file mode 100644
index 00000000..373de446
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/oktstat.phtml
@@ -0,0 +1,133 @@
+<?php
+
+ function putOktoberiStatisztika($ADAT) {
+
+ putStat_a04t17($ADAT);
+ putStat_a04t79($ADAT);
+ putStat_a04t83($ADAT);
+
+ }
+ function putSTat_a04t79($ADAT) {
+ $stat = 'a04t79';
+ $D = $ADAT[$stat];
+
+ echo '<div class="oktstatszam">'.$stat.'</div>';
+ echo 'nem kompatibilis nézet'; //--TODO: a tábláazt pont fordítva van!
+
+ if (is_array($ADAT['osszes'][0])) {
+ //if (!is_array($ADAT['osszes'][0])) return false;
+
+ $KEYS = array_keys($ADAT['osszes'][0]);
+
+ echo '<table class="info" align="center">';
+ echo '<thead>';
+ echo '<tr><th colspan="'.count($KEYS).'">Összes</th></tr>'."\n";
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ for ($j=0;$j<count($ADAT['osszes']); $j++) {
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<td>'.$ADAT['osszes'][$j][$KEYS[$i]].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ echo '</table>';
+
+ }
+
+ if (is_array($ADAT['tankoteles'][0])) {
+ //if (!is_array($ADAT['tankoteles'][0])) return false;
+
+ $KEYS = array_keys($ADAT['tankoteles'][0]);
+
+ echo '<table class="info" align="center">';
+ echo '<thead>';
+ echo '<tr><th colspan="'.count($KEYS).'">Tanköteles</th></tr>'."\n";
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<th>'.$KEYS[$i].'</th>';
+ }
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ for ($j=0;$j<count($ADAT['tankoteles']); $j++) {
+ echo '<tr>';
+ for($i=0; $i<count($KEYS); $i++) {
+ echo '<td>'.$ADAT['tankoteles'][$j][$KEYS[$i]].'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ echo '</table>';
+
+ }
+
+ }
+
+
+ function putStat_a04t17($ADAT) {
+
+ $stat = 'a04t17';
+ $D = $ADAT[$stat];
+ echo '<div class="oktstatszam">'.$stat.'</div>';
+
+ echo 'Iskolába lépő gyermekek';
+ echo '<table>';
+ echo '<tr><th colspan="2"></th><th>összesen</th><th>lány</th></tr>';
+ echo '<tr>';
+ echo '<td>2</td>';
+ echo '<td>tanköteles (május 31-ig a 6. életévét betöltötte)</td>';
+ echo '<td>'._sum($D[$stat.'_2']).'</td>';
+ echo '<td>'.$D[$stat.'_2']['lány']['db'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td>3</td>';
+ echo '<td>július 1. és augusztus 31. között töltötte be a 6. életévét</td>';
+ echo '<td>'._sum($D[$stat.'_3']).'</td>';
+ echo '<td>'.$D[$stat.'_3']['lány']['db'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td>4</td>';
+ echo '<td>szeptember 1-jén a 6. életévét még nem töltötte be</td>';
+ echo '<td>'._sum($D[$stat.'_4']).'</td>';
+ echo '<td>'.$D[$stat.'_4']['lány']['db'].'</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+ }
+
+ function putStat_a04t83($ADAT) {
+ $stat = 'a04t83';
+ $D = $ADAT[$stat];
+ echo '<div class="oktstatszam">'.$stat.'</div>';
+ // TODO: emelt szintű oktatásban részt vevő tanulók
+ }
+
+ function _sum($what) {
+
+ return (intval($what['lány']['db']) + intval($what['fiú']['db']) + intval($what['']['db']));
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/ora.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/ora.phtml
new file mode 100644
index 00000000..839585de
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/ora.phtml
@@ -0,0 +1,279 @@
+<?php
+
+ function putHianyzok($ORAADAT, $ADAT) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ // make assoc
+ for($i=0; $i<count($ADAT['hianyzok']); $i++) {
+ $_D = $ADAT['hianyzok'][$i];
+ $HADAT[$_D['oraId']][$_D['diakId']][$_D['tipus']] = $_D;
+ }
+
+ $NEVEK = $ADAT['nevsor']['nevek'];
+ $RESZLETEK = $ADAT['nevsor']['adatok'];
+
+ $HTIPUSOK1 = array('','késés','hiányzás');
+ if (__EGYENRUHA_HIANY_REGISZTRALAS === true) $HTIPUSOK2 = array('egyenruha hiány','felszerelés hiány','felmentés');
+ else $HTIPUSOK2 = array('','felszerelés hiány','felmentés');
+ $ITIPUSOK = getEnumField('naplo', 'hianyzas', 'igazolas'); // ez inkább a pre be lenne való?
+
+ $dt = $ORAADAT['dt'];
+ $ora = $ORAADAT['ora'];
+
+ $jovobeli = (strtotime($dt)>time()); // ezt csak itt tiltjuk le, a pre-ben nem!
+
+ if (!is_array($NEVEK) || count($NEVEK)==0)
+ if (!$ADAT['tagokFelvehetok'])
+ return false;
+
+
+ formBegin(array('class'=>"vissza",'action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi')));
+ echo '<input type="hidden" name="igDt" value="'.$ORAADAT['dt'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ORAADAT['ki'].'" />';
+ echo '<input type="submit" value="&larr; '._HALADASI.'" />';
+ formEnd();
+
+ if ($ADAT['tankorAdat']['oratervi'] != 'óratervi') $class = 'delutani';
+ formBegin(array('method' => 'post', 'action' => '','class' => $class));
+
+ echo '<table align="center" cellspacing="1" cellpadding="1" class="csoportNevsorHianyzok">'."\n";
+ echo '<thead class="oraAdat">';
+ echo '<tr><th colspan="11">';
+ _putOraAdat($ORAADAT);
+ echo '</th></tr></thead>';
+ echo '<thead class="fejlec">';
+ echo '<tr><th colspan="11">'.
+ '<span title="'.
+ _JELENLET.': '.$ADAT['tankorAdat']['jelenlet'].'/'.
+ _REGISZTRALANDO.': '.$ADAT['tankorAdat']['regisztralando'].'/'.
+ _HIANYZAS_BELESZAMIT.': '.$ADAT['tankorAdat']['hianyzasBeleszamit'].
+ '">'.$ADAT['tankorAdat']['oratervi'].', '.$ADAT['tankorAdat']['jelleg'].'</span>';
+ echo '</th></tr>';
+ echo '<tr><th>'._ADOTT_NAP.'</th><th colspan="3">'._NEV_OSZTALY.'</th><th>'._J.'</th><th>'._K.'</th><th>'._H.'</th>'.
+ '<th title="'._EGYENRUHA.'">'._EH.'</th>'.'<th title="'._FELSZERELES.'">'._FH.'</th>'.'<th title="'._FELMENTETT.'">'._FM.'</th>'.'<th>'._IGAZOLT.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="11">';
+ echo '<input type="submit" name="gomb" value="'._OK.'" />';
+ echo '<input type="hidden" name="action" value="hianyzokRogzitese" />';
+ echo '<input type="hidden" name="oraId" value="'.$ORAADAT['oraId'].'" />';
+ echo '</th></tr>';
+ echo '</tfoot>';
+
+
+ /* Ha a tagok felvehetők (módosíthatók) - tipikusan ilyen a tanulószoba */
+ if ($ADAT['tagokFelvehetok']===true) {
+ echo '<body>';
+ echo '<tr class="ujTag">';
+ echo '<th>';
+ echo _UJ_TAG;
+ echo '</th>';
+ echo '<td colspan="8" >';
+ echo '<select name="diakId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $_D = $ADAT['diakok'][$i];
+ echo '<option value="'.$_D['diakId'].'">'.$_D['diakNev'].' ('.$_D['diakId'].')</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+ echo '</body>'."\n";
+ }
+ /* -- */
+
+
+
+ echo '<tbody>';
+ $i=0;
+ if (is_array($NEVEK))
+ foreach($NEVEK as $_diakId => $DA) {
+ $JOG = $ADAT['jogosultsag'][$_diakId]['orak'][$ORAADAT['ora']];
+ $JOGADAT = $ADAT['jogosultsag'][$_diakId]['igazolas'];
+ $jogviszony = ekezettelen(str_replace(' ','',$ADAT['diakJogviszony'][$_diakId][$ORAADAT['dt']]['statusz']));
+ $felmentett_class = (in_array($ADAT['tankorAdat']['tankorId'], $ADAT['felmentes'][$_diakId])) ? ' felmentett':'';
+ echo '<tr class="'.$jogviszony.$felmentett_class.'">';
+ echo '<td>';
+ _putHianyzasKistabla($ADAT['napiHianyzasok'][$_diakId], $ORAADAT, array('napiMinOra' => $napiMinOra, 'napiMaxOra' => $napiMaxOra));
+ echo '</td>';
+ echo '<td>';
+ putFace($DA['diakId'],'diak','30');
+ echo '</td>';
+ echo '<th class="c diakNev" data-diakid="'.$_diakId.'">';
+ echo '<span>';
+ printf("%02s. ", $i+1);
+ echo '</span>';
+ echo '</th>';
+ echo '<td colspan="1" title="'.$ADAT['diakJogviszony'][$_diakId][$ORAADAT['dt']]['statusz'].'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$_diakId).'">';
+ echo $DA['diakNev'];
+ echo '</a>';
+ echo '</td>';
+ if (
+ $ADAT['tankorAdat']['regisztralando']=='igen'
+ && !in_array($ADAT['tankorAdat']['tankorId'], $ADAT['felmentes'][$_diakId])
+ && (in_array($jogviszony, array('jogviszonybanvan','vendegtanulo'))
+ || ($jogviszony == 'magantanulo' && $ADAT['tankorAdat']['jelleg']=='gyakorlat')
+ )
+ ) {
+ $_igtipus='';
+ /* prepare data */
+ reset($HTIPUSOK1);
+ $__jelen=true;
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ if ($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId']!='') $__jelen=false;
+ }
+
+ /* -- */
+ reset($HTIPUSOK1);
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ $_disp='';
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') $_igtipus = $_tipus;
+ if ($_tipus=='') $_csstipus = 'jelen'; else $_csstipus=$_tipus;
+ echo '<td class="'.$_csstipus.'">';
+ if ($JOG['beirhato']==true && !$jovobeli) {
+ $_radio = ($_hid!='' || ($_tipus=='' && $__jelen)) ?'checked="checked"' : '';
+ //echo $_diakId.'/'.$_tipus.'/'.$_hid;
+ if ($_tipus=='késés') {
+ $_perc = intval(($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['perc']));
+ if ($_perc >0) $_kesett = ' kesett'; else $_kesett = '';
+ echo '<input class="perc'.$_kesett.'" type="text" maxlength="2" size="1" name="PERC_'.$i.'" value="'.$_perc.'" />';
+ $_disp = 'style="display:none"';
+ }
+ echo '<input type="radio" id="HIANYZOK1_'.$i.'" name="HIANYZOK1_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio . ' '.$_disp.'/>';
+
+ } else {
+ if (($__jelen && $_tipus=='') || $_hid!='') {
+ if ($_hid!='') echo '<input type="hidden" name="HIANYZOK1_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"/>';
+ if ($_tipus=='késés' && ($_perc = intval(($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['perc']))) != 0) {
+ echo '<input class="perc'.$_kesett.'" type="text" maxlength="2" size="1" name="PERC_'.$i.'" value="'.$_perc.'" disabled="disabled" />';
+ //echo '<span class="perc">'.$_perc.'</span>';
+ } else {
+ _putImg($_tipus,$__jelen);
+ }
+ }
+ }
+ echo '</td>';
+ }
+ /* === */
+ if ($JOG['fbeirhato']==true && !$jovobeli) {
+/*
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus">';
+ echo '<select id="HIANYZOK2_'.$i.'" name="HIANYZOK2_'.$i.'">';
+ echo '<option value="'.$_diakId.'/"></option>';
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ $_radio = ($_hid!='') ?'selected="selected"' : '';
+ echo '<option value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'>'.$_tipus.'</option>';
+ }
+ echo '</select>';
+ echo '</td>
+*/
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ echo '<td title="'.$_tipus.'" class="fbetus">';
+
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_tipus != '') {
+ if ($_hid != '') $chk = ' checked="checked" '; else $chk = '';
+ echo '<input type="checkbox" id="HIANYZOK'.($j+10).'_'.$i.'" name="HIANYZOK'.($j+10).'_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"'.$chk.' />';
+ }
+ echo '</td>';
+ }
+ } else {
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus">';
+
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') {
+ echo '<input type="hidden" name="HIANYZOK2_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'/>';
+ echo $_tipus;
+ }
+ }
+ echo '</td>';
+ }
+ echo '<td>';
+ _putIgazolasSelect($HADAT[$ORAADAT['oraId']][$_diakId][$_igtipus], $ITIPUSOK,$JOG,$JOGADAT,array('diakId'=>$_diakId,'oraId'=>$ORAADAT['oraId'],'hianyzasId'=>$_hid));
+ echo '</td>';
+ } else {
+ echo '<td class="nemkot" colspan="'.(count($HTIPUSOK2)+count($HTIPUSOK2)+count($ITIPUSOK)).'">';
+ // echo _ORARA_NEM_KOTELEZO_BEJARNIA;
+ echo _NEM_REGISZTRALANDO;
+ echo '</td>'."\n";
+ }
+
+ echo '</tr>';
+ $i++;
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function _putIgazolasSelect($ADAT,$TIPUSOK,$JOG,$JOGADAT,$SET) {
+ //"'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"
+ if (is_array($ADAT)) {
+ if ($JOG['igazolhato']===true) {
+ echo '<select name="IGAZOLAS[]">'."\n";
+ echo '<option value="'.$SET['diakId'].'////'.$ADAT['hianyzasId'].'">'._IGAZOLATLAN.'</option>'."\n";
+ for($i=0; $i<count($TIPUSOK); $i++){
+ $_SEL = ($ADAT['igazolas']==$TIPUSOK[$i]) ? ' selected="selected"':'';
+ if (in_array($TIPUSOK[$i], $JOGADAT['tipusok'])) {
+ echo '<option value="'.$SET['diakId'].'///'.$TIPUSOK[$i].'/'.$ADAT['hianyzasId'].'" '.$_SEL.'>'.$TIPUSOK[$i].'</option>'."\n";
+ }
+ }
+ // és a kieg, ha elfogyott volna, de ez még azzal van igazolva:
+ if (!in_array($ADAT['igazolas'],$JOGADAT['tipusok']) && $ADAT['statusz']!='igazolatlan') {
+ echo '<option value="" selected="selected">'.$ADAT['igazolas'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ } else {
+ echo $ADAT['igazolas'];
+ }
+ }
+
+ }
+
+ function _putOraAdat($ORAADAT) {
+ echo '<table align="center" class="oraAdat">';
+ echo '<tr><td>';
+ echo '<span title="'.$ORAADAT['oraId'].'">';
+ echo $ORAADAT['dt'].', '.$ORAADAT['ora'].'.'._ORA.'</span>';
+ echo '</td><td>';
+ echo $ORAADAT['tankorNev'].' - '.$ORAADAT['kiCn'];
+ echo '</td></tr><tr>';
+ echo '<th colspan="2">';
+ if ($ORAADAT['tankorTipus'] == 'délutáni') echo nagybetus($ORAADAT['tankorTipus']).' ';
+ echo $ORAADAT['leiras'];
+ echo '</th></tr>';
+ echo '</table>';
+ }
+
+
+ function putOraAdatok($oraAdat) {
+
+ list($evf,$oszt,$targy,$targycsoport,$tipus,$index) = explode('_',$oraAdat['tankor']);
+
+ #echo '<table align="center" class="oraAdatok" style="width:90%" cellpadding="0" cellspacing="0"><tr><td style="text-align: center">';
+ echo '<table align="right" style="border-style: none none dotted none; border-width: 0px 0px 1px 0px; border-color: #999999">';
+ echo '<tr>';
+ echo '<td>'.str_replace('-','.',$oraAdat['dt']).'.</td>';
+ echo '<td>'.$oraAdat['ora'].'. óra</td>';
+ echo "<td> ~ $evf.$oszt $targy, $tipus $targycsoport</td>";
+ echo '<td> ~ '.$oraAdat['tanarCn'].'</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+ #echo '</td></tr></table>'."\n";
+ #echo '<br/>';
+ }
+
+ function _putImg($tipus,$jelen) {
+ if ($jelen && $tipus=='') echo '<img src="/skin/classic/module-naplo/img/hianyzas/green.gif" alt="x" />';
+ elseif ($tipus=='késés') echo '<img src="/skin/classic/module-naplo/img/hianyzas/yellow.gif" alt="x" />';
+ elseif ($tipus=='hiányzás') echo '<img src="/skin/classic/module-naplo/img/hianyzas/red.gif" alt="x" />';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml
new file mode 100644
index 00000000..e00a7c32
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztaly.phtml
@@ -0,0 +1,613 @@
+<?php
+
+ function putOsztalyOsszesito($ADAT, $View) {
+
+ global $_TANEV;
+
+ $_cols = 3;
+
+ formBegin();
+ echo '<table align="center" class="navi"><tr><td>';
+
+
+ echo '<input id="hozott" type="checkbox" name="View[]" value="hozott" ';
+ if (in_array('hozott',$View)) echo 'checked="checked" ';
+ echo '/><label for="hozott">'._HOZOTT.'</label>';
+ echo '<input id="lezart" type="checkbox" name="View[]" value="lezárt" ';
+ if (in_array('lezárt',$View)) echo 'checked="checked" ';
+ echo '/><label for="lezart">'._LEZART.'</label>';
+ echo '<input id="igazolhato" type="checkbox" name="View[]" value="igazolható" ';
+ if (in_array('igazolható',$View)) echo 'checked="checked" ';
+ echo '/><label for="igazolhato">'._IGAZOLHATO.'</label>';
+ echo '<input id="osszes" type="checkbox" name="View[]" value="összes" ';
+ if (in_array('összes',$View)) echo 'checked="checked" ';
+ echo '/><label for="osszes">'._OSSZES.'</label>';
+ echo '<input id="fegyu" type="checkbox" name="View[]" value="fegyelmi utáni" ';
+ if (in_array('fegyelmi utáni',$View)) echo 'checked="checked" ';
+ echo '/><label for="fegyu">'._FEGYELMI_UTANI.'</label>';
+ echo '<input id="fegyfo" type="checkbox" name="View[]" value="fegyelmi fokozatok" ';
+ if (in_array('fegyelmi fokozatok',$View)) echo 'checked="checked" ';
+ echo '/><label for="fegyfo">'._FEGYELMI_FOKOZATOK.'</label>';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" /> ';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" /> ';
+ echo '<input type="hidden" name="igDt" value="'.$ADAT['igDt'].'" /> ';
+ echo '<input type="submit" value="'._OK.'" />';
+
+ echo ' '._REFERENCIADT.' ';
+ echo '<select name="referenciaDt" class="onChangeSubmit">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($ADAT['referenciaDt'] => ' selected="selected" ');
+ for (
+ $dt = _LEGKORABBI_IGAZOLHATO_HIANYZAS;
+ strtotime($dt) < time();
+ $dt = date('Y-m-d',strtotime('+1 day',strtotime($dt)))
+ ) echo '<option value="'.$dt.'"'.$SEL[$dt].'>'.$dt.'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</td></tr></table>';
+ formEnd();
+
+ echo '<table class="hianyzas" align="center" cellspacing="1">';
+
+ /* ----------- Fejléc ----------- */
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th rowspan="3" colspan="2" title="'.$ADAT['tolDt'].'-'.$ADAT['igDt'].'">';
+ formBegin();
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" /> ';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" /> ';
+ echo '<input type="hidden" name="igDt" value="'.$ADAT['igDt'].'" /> ';
+ $SEL = array($ADAT['nevsor'] => ' selected="selected" ');
+ echo '<select name="nevsor" class="onChangeSubmit">';
+ echo '<option value="aktualis"'.$SEL['aktualis'].'>'._AKTUALIS_NEVSOR.'</option>';
+ echo '<option value="teljes"'.$SEL['teljes'].'>'._TELJES_NEVSOR.'</option>';
+ echo '</select>';
+ formEnd();
+ echo '</th>';
+
+ if (in_array('hozott',$View)) {
+ echo '<th colspan="3">'._HOZOTT.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('lezárt',$View)) {
+ echo '<th colspan="6">'._LEZART.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th colspan="6">'._IGAZOLHATO.'</th>';
+ $_cols+=6;
+ }
+
+ if (in_array('összes',$View)) {
+ echo '<th colspan="9">'._OSSZES.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<th colspan="3">'._FEGYELMI_UTANI.'</th>';
+ $_cols+=3;
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<th colspan="4">'._FEGYELMI_FOKOZATOK.'</th>';
+ $_cols+=4;
+ }
+
+ echo '</tr><tr>';
+
+ if (in_array('hozott',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ }
+
+ if (in_array('lezárt',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ }
+
+ if (in_array('összes',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELSZERELES_HIANY.'">'._FSZ.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELMENTES.'">'._FM.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._EGYENRUHA_HIANY.'">'._EH.'</th>';
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<th rowspan="2" class="alcim" title="'._HIANYZAS.'">'._H.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._KESES.'">'._K.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELSZERELES_HIANY.'">'._FSZ.'</th>';
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<th rowspan="2" class="alcim" title="'._OSSZES_IGAZOLATLAN.'">'._O.'</th>';
+ echo '<th rowspan="2" class="alcim">'._AKTUALIS_FOKOZAT.'</th>';
+ echo '<th rowspan="2" class="alcim">'._LEGMAGASABB_FOKOZAT.'</th>';
+ echo '<th rowspan="2" class="alcim">'._BEIRANDO_FOKOZAT.'</th>';
+ }
+
+ echo '</tr><tr>';
+
+
+
+ if (in_array('hozott',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+
+ if (in_array('lezárt',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('összes',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ }
+
+
+ echo '</tr>';
+
+
+ echo '</thead>'."\n";
+
+ /* ----------- Fejléc vége ------------- */
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">'._OSSZES.'</th>';
+ if (in_array('hozott',$View)) {
+ echo '<td colspan="3"></td>';
+ }
+ if (in_array('lezárt',$View)) {
+ echo '<td colspan="6"></td>';
+ }
+ if (in_array('igazolható',$View)) {
+ echo '<td colspan="6"></td>';
+ }
+ if (in_array('összes',$View)) {
+ echo '<td class="igazolatlan hianyzas">'.$ADAT['stat']['összes']['hiányzás']['igazolatlan'].'</td>';
+ echo '<td class="igazolt hianyzas">'.$ADAT['stat']['összes']['hiányzás']['igazolt'].'</td>';
+ echo '<td class="osszes hianyzas">'.(intval($ADAT['stat']['összes']['hiányzás']['igazolt'])+intval($ADAT['stat']['összes']['hiányzás']['igazolatlan'])).'</td>';
+ echo '<td class="igazolatlan keses">'.$ADAT['stat']['összes']['késés']['igazolatlan'].'</td>';
+ echo '<td class="igazolt keses">'.$ADAT['stat']['összes']['késés']['igazolt'].'</td>';
+ echo '<td class="osszes keses">'.(intval($ADAT['stat']['összes']['késés']['igazolt'])+intval($ADAT['stat']['összes']['késés']['igazolatlan'])).'</td>';
+ echo '<td class="felszereles">'.$ADAT['stat']['összes']['felszerelés hiány']['igazolatlan'].'</td>';
+ echo '<td class="felmentes">'.$ADAT['stat']['összes']['felmentés']['igazolatlan'].'</td>';
+ echo '<td class="egyenruha">'.$ADAT['stat']['összes']['egyenruha hiány']['igazolatlan'].'</td>';
+ }
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<td class="igazolatlan hianyzas">'.$ADAT['stat']['összes']['fegyelmi']['hiányzás']['igazolatlan'].'</td>';
+ echo '<td class="igazolatlan keses">'.$ADAT['stat']['összes']['fegyelmi']['késés']['igazolatlan'].'</td>';
+ echo '<td class="felszereles">'.$ADAT['stat']['összes']['fegyelmi']['felszerelés hiány']['igazolatlan'].'</td>';
+ }
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<td class="igazolatlan hianyzas">'.$ADAT['stat']['összes']['összes igazolatlan'].'</td>';
+ echo '<td colspan="3"></td>';
+ }
+ echo '</tr>';
+ if ($ADAT['hianyzasmentesNapokSzama'] != 0) {
+ echo '<tr><th colspan="'.$_cols.'">';
+ echo _HIANYZASMENTESNAPOKSZAMA.': '.$ADAT['hianyzasmentesNapokSzama'];
+ echo '</th></tr>';
+ }
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+
+ $i = 1;
+ foreach ($ADAT['stat']['névsor'] as $diakId => $dAdat) {
+ $DH = $ADAT['stat'][$diakId]; // DH=DiákHiányzás: lezárt|összes|fegyelmi
+ // kiemelt változók
+
+ $lhigazolatlan = $DH['lezárt']['hiányzás']['igazolatlan'];
+ $lhigazolt = $DH['lezárt']['hiányzás']['igazolt'];
+ $lkigazolatlan = $DH['lezárt']['késés']['igazolatlan']['db'];
+ $lkigazolatlanIdo = $DH['lezárt']['késés']['igazolatlan']['ido'];
+ // igazolható, igazolatlan hiányzás
+ $ihigazolatlan = $DH['összes']['hiányzás']['igazolatlan'] - $DH['lezárt']['hiányzás']['igazolatlan'];
+ $lkigazolt = $DH['lezárt']['késés']['igazolt']['db'];
+ // igazolható, igazolt hiányzás
+ $ihigazolt = $DH['összes']['hiányzás']['igazolt'] - $DH['lezárt']['hiányzás']['igazolt'];
+ $ikigazolatlan = $DH['összes']['késés']['igazolatlan']['db'] - $DH['lezárt']['késés']['igazolatlan']['db'];
+ $ikigazolatlanIdo = $DH['összes']['késés']['igazolatlan']['ido'] - $DH['lezárt']['késés']['igazolatlan']['ido'];
+ $ikigazolt = $DH['összes']['késés']['igazolt']['db'] - $DH['lezárt']['késés']['igazolt']['db'];
+
+ $ohigazolatlan = $DH['összes']['hiányzás']['igazolatlan'] + $DH['hozott']['igazolatlan']['db'];
+ $ohigazolt=$DH['összes']['hiányzás']['igazolt']+ $DH['hozott']['igazolt']['db'];
+
+ $okigazolatlan = $DH['összes']['késés']['igazolatlan']['db'];
+ $okigazolatlanIdo = $DH['összes']['késés']['igazolatlan']['ido'];
+ $okigazolt=$DH['összes']['késés']['igazolt']['db'];
+ $ofelszereles = $DH['összes']['felszerelés hiány']['igazolatlan'];
+ $ofelmentes = $DH['összes']['felmentés']['igazolatlan'];
+ $oegyenruha = $DH['összes']['egyenruha hiány']['igazolatlan'];
+
+ $fih = $DH['fegyelmi']['hiányzás']['igazolatlan'];
+ $fik = $DH['fegyelmi']['késés']['igazolatlan']['db'];
+ $fikIdo = $DH['fegyelmi']['késés']['igazolatlan']['ido'];
+ $ff = $DH['fegyelmi']['felszerelés hiány']['igazolatlan'];
+ $fe = $DH['fegyelmi']['egyenruha hiány']['igazolatlan'];
+ //---..
+
+ echo '<tr class="'.str_replace(' ','',ekezettelen($dAdat['aktualisStatusz'])).'">';
+ echo '<td class="nev" style="text-align: right;">'.($i++).'</td>';
+
+ echo '<td class="nev" title="'.$dAdat['aktualisStatusz'].'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId.'&osztalyId='.$ADAT['osztalyId']).'" >';
+ echo $dAdat['diakNev'];
+ echo '</a>';
+ echo '</td>';
+
+
+
+ if (in_array('hozott',$View)) {
+ # Hozott
+ // Lezárt igazolatlan hiányzás
+ if (intval($ADAT['hozottHianyzas'][$diakId]['igazolatlan']['db']) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$ADAT['hozottHianyzas'][$diakId]['igazolatlan']['db'].'</td>';
+
+ // Lezárt igazolt hiányzás
+ if (intval($ADAT['hozottHianyzas'][$diakId]['igazolt']['db']) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$ADAT['hozottHianyzas'][$diakId]['igazolt']['db'].'</td>';
+
+ // Lezárt összes hiányzás
+ $osszeg = intval($ADAT['hozottHianyzas'][$diakId]['igazolatlan']['db']) + intval($ADAT['hozottHianyzas'][$diakId]['igazolt']['db']);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+
+ if (in_array('lezárt',$View)) {
+ # Lezártak
+ // Lezárt igazolatlan hiányzás
+ if (intval($lhigazolatlan) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$lhigazolatlan.'</td>';
+
+ // Lezárt igazolt hiányzás
+ if (intval($lhigazolt) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$lhigazolt.'</td>';
+
+ // Lezárt összes hiányzás
+ $osszeg = intval($lhigazolt) + intval($lhigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Lezárt igazolatlan késés
+ if ($lkigazolatlan == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$lkigazolatlanIdo.'">'.$lkigazolatlan.'</td>';
+
+ // Lezárt igazolt késés
+ if ($lkigazolt == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt keses';
+ echo '<td class="'.$class.'">'.$lkigazolt.'</td>';
+
+ // Lezárt igazolatlan késés
+ $osszeg = intval($lkigazolt) + intval($lkigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+ if (in_array('igazolható',$View)) {
+ ## Lezárt utáni = Igazolható
+
+ // Igazolható igazolatlan hiányzás
+ if ($ihigazolatlan == 0) {
+ $ihigazolatlan = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolatlan hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$ihigazolatlan.'</td>';
+
+ // Igazolható igazolt hiányzás
+ if ($ihigazolt == 0) {
+ $ihigazolt = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolt hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$ihigazolt.'</td>';
+
+ // Igazolható összes hiányzás
+ $osszeg = $ihigazolt+$ihigazolatlan;
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Igazolható igazolatlan késés
+ if ($ikigazolatlan == 0) {
+ $ikigazolatlan = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolatlan keses';
+ }
+ echo '<td class="'.$class.'" title="'.$ikigazolatlanIdo.'">'.$ikigazolatlan.'</td>';
+
+ // Igazolható igazolt késés
+ if ($ikigazolt == 0) {
+ $ikigazolt = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato izagolt keses';
+ }
+ echo '<td class="'.$class.'">'.$ikigazolt.'</td>';
+
+ // Igazolható összes késés
+ $osszeg = intval($ikigazolt)+intval($ikigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+ if (in_array('összes',$View)) {
+ ## Összes
+
+ // Összes igazolatlan hiányzás
+ if ($ohigazolatlan == 0) $class = 'uosszes';
+ else $class = 'osszes igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$ohigazolatlan.'</td>';
+
+ // Összes igazolt hiányzás
+ if ($ohigazolt == 0) $class = 'uosszes';
+ else $class = 'osszes igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$ohigazolt.'</td>';
+
+ // Összes hiányzás
+ $osszeg = intval($ohigazolt)+intval($ohigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uosszes';
+ } else {
+ $class = 'osszes mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Összes igazolatlan késés
+ if ($okigazolatlan == 0) $class = 'uosszes';
+ else $class = 'osszes igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$okigazolatlanIdo.'">'.$okigazolatlan.'</td>';
+
+ // Összes igazolt késés
+ if ($okigazolt == 0) $class = 'uosszes';
+ else $class = 'osszes igazolt keses';
+ echo '<td class="'.$class.'">'.$okigazolt.'</td>';
+
+ // Összes késés
+ $osszeg = intval($okigazolt) + intval($okigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uosszes';
+ } else {
+ $class = 'osszes mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Összes felszerelés hiány
+ if ($ofelszereles == 0) $class = 'uosszes';
+ else $class = 'osszes felszereles';
+ echo '<td class="'.$class.'">'.$ofelszereles.'</td>';
+
+ // Összes felmentés hiány
+ if ($ofelmentes == 0) $class = 'uosszes';
+ else $class = 'osszes felmentes';
+ echo '<td class="'.$class.'">'.$ofelmentes.'</td>';
+
+ // Összes egyenruha hiány
+ if ($oegyenruha == 0) $class = 'uosszes';
+ else $class = 'osszes egyenruha';
+ echo '<td class="'.$class.'">'.$oegyenruha.'</td>';
+ ## ------
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ ## Fegyelmi után
+ // Fegyelmi utáni igazolatlan hiányzás
+ if ($fih == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$fih.'</td>';
+
+ // Fegyelmi utáni igazolatlan késés
+ if ($fik == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$fikIdo.'">'.$fik.'</td>';
+
+ // Fegyelmi utáni felszerelés hiány
+ if ($ff == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi felszereles';
+ echo '<td class="'.$class.'">'.$ff.'</td>';
+
+ // Fegyelmi utáni egyenruha hiány
+ if ($fe == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi egyenruha';
+ echo '<td class="'.$class.'">'.$fe.'</td>';
+ ## ------
+ }
+ if (in_array('fegyelmi fokozatok',$View)) {
+ ## Fokozatok
+
+ $igazolatlanok_szama = $DH['összes igazolatlan'];
+ if ($igazolatlanok_szama == 0) {
+ $igazolatlanok_szama = '';
+ $class = 'ufokozat';
+ } else {
+ $class = 'fokozat oi igazolatlan';
+ }
+ echo '<td class="'.$class.'">'.$igazolatlanok_szama.'</td>';
+
+ // Jelenlegi fegyelmi fokozat
+ $aktFokozat = intval($DH['fegyelmi']['fokozat']);
+ $maxFokozat = intval($DH['fegyelmi']['maxFokozat']);
+ $hianyzasDb = intval($DH['fegyelmi']['hianyzasDb']);
+ $diakReferenciaDt = $DH['fegyelmi']['referenciaDt'];
+ if ($aktFokozat == 0) $class = 'ufokozat';
+ else $class = 'fokozat';
+ if ($maxFokozat == 0) $_class2 = 'ufokozat';
+ else $_class2 = 'fokozat';
+ if ($ADAT['fokozat2bejegyzesTipus'][$aktFokozat]['hianyzasDb']!='')
+ $title = 'Dt: '.$diakReferenciaDt.' (~'.$ADAT['fokozat2bejegyzesTipus'][$aktFokozat]['hianyzasDb'].' db igazolatlan / '.$hianyzasDb.' db rögzített)';
+ else
+ $title = 'Dt: '.$diakReferenciaDt;
+ echo '<td class="'.$class.'" title="'.$title.'">';
+ echo '<span>'.$ADAT['fokozat2bejegyzesTipus'][$aktFokozat]['bejegyzesTipusNev'];
+ echo '</span>';
+ echo '</td>'; // kapott már + dt
+
+ echo '<td class="'.$_class2.'" title="'.$title.'">';
+ echo '<span>'.$ADAT['fokozat2bejegyzesTipus'][$maxFokozat]['bejegyzesTipusNev'];
+ echo '</span>';
+ echo '</td>'; // kapott már + dt
+
+
+
+ // Adandó fegyelmi fokozat szempontjából érdekes, már lezárt hiányzások és késésekből, felszerelés hiányokból, egyenruha hiányokból "átváltott" hiányzások
+ $fegyelmiIgazolatlanDb = $lhigazolatlan;
+ if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ $fegyelmiIgazolatlanDb += floor($lkigazolatlanIdo / 45);
+ } else {
+ if (intval(_HANY_KESES_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($lkigazolatlan / intval(_HANY_KESES_IGAZOLATLAN));
+ if (intval(_HANY_FSZ_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($ofelszereles / intval(_HANY_FSZ_IGAZOLATLAN));
+ if (intval(_HANY_EH_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($oegyenruha / intval(_HANY_EH_IGAZOLATLAN));
+ }
+ // keressük visszafele az első adandó fokozatot...
+ $fegyelmi = 0;
+ $j = count($ADAT['összes fokozat'])-1;
+ while($ADAT['összes fokozat'][$j]['hianyzasDb'] > $fegyelmiIgazolatlanDb && $j >= 0) $j--;
+// Na de mi van, ha $j == -1 lesz, mert mondjuk az első fokozat 2 igazolatlan esetén adandó és neki még csak egy van?
+ if ($j >= 0) {
+ $megerdemeltFokozat = $ADAT['összes fokozat'][$j]['fokozat'];
+ $megerdemeltBejegyzesTipusId = $ADAT['összes fokozat'][$j]['bejegyzesTipusId'];
+
+ // Fegyelmi utáni igazolatlanok összesítése
+ $fegyelmi = $fih;
+ if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ // a fegyelmikbe beleszámítható az igazolatlanok száma rev2222+
+ $fegyelmi += floor($fikIdo / 45);
+ } else {
+ if (intval(_HANY_KESES_IGAZOLATLAN) > 0)
+ $fegyelmi += floor($fik / intval(_HANY_KESES_IGAZOLATLAN));
+ if (intval(_HANY_FSZ_IGAZOLATLAN) > 0)
+ $fegyelmi += floor($ff / intval(_HANY_FSZ_IGAZOLATLAN));
+ }
+ }
+ # FIX 2009-05-28 konczy
+ # Ha a már lejárt hiányzások és késések és hiányzások darabszámának ($j) megfelelő
+ # fokozat nagyobb, mint a beírt, akkor meg kell jelenítenünk a formot.
+ # - illetve, ha a legutóbbi fegyelmi óta van újabb lezárt igazolatlanja...
+ //// $_talalat = ($j >= 0 && ($fegyelmi > 0 || $megerdemeltFokozat>$aktFokozat));
+ # Nem, az utolsó feltétel nem áll, mert ha nem adunk minden igazolatlan után
+ # valamilyen fegyelmit, akkor maradhat "megtorlatlan" igazolatlan!
+ $_talalat = ($j >= 0 && ($megerdemeltFokozat>$aktFokozat));
+
+ if (($_talalat)&& $_TANEV['statusz']=='aktív') $class = 'fokozat';
+ else $class = 'ufokozat';
+ echo '<td class="'.$class.'">';
+ ## FORM
+ if (
+ ($_talalat) && $_TANEV['statusz']=='aktív'
+ && in_array($dAdat['aktualisStatusz'], array('jogviszonyban van','vendégtanuló'))
+ ) {
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="fegyelmiRogzitese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="hianyzasDb" value="'.$fegyelmiIgazolatlanDb.'" />'."\n";
+ if ($ADAT['referenciaDt'] == '') echo '<input type="hidden" name="ujReferenciaDt" value="'.$DH['igDt'].'" />';
+ else echo '<input type="hidden" name="ujReferenciaDt" value="'.$ADAT['referenciaDt'].'" />';
+ echo '<select name="bejegyzesTipusId">'."\n";
+ foreach ($ADAT['összes fokozat'] as $f => $fAdat) {
+ // if (in_array($fAdat, $ADAT['jogosult fokozatok'])) $DIS = '';
+ // else $DIS = ' disabled="disabled" ';
+ $DIS_class = (in_array($fAdat, $ADAT['jogosult fokozatok'])) ? '' : 'tiltott';
+
+ if ($megerdemeltBejegyzesTipusId == $fAdat['bejegyzesTipusId']) echo '<option'.$DIS.' value="'.$fAdat['bejegyzesTipusId'].'" selected="selected" class="megerdemelt '.$DIS_class.'">';
+ else echo '<option class="'.$DIS_class.'" value="'.$fAdat['bejegyzesTipusId'].'">';
+ echo $fAdat['bejegyzesTipusNev'].' ('.$fAdat['hianyzasDb'].')';
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ echo '<input type="submit" value="'._SAVE.'" />';
+ formEnd();
+ } elseif ($fegyelmi > 0) {
+ echo _FEGYELMIVEL_NEM_SULYTOTT_LEZART_IGAZOLATLANOK.': '.$fegyelmi;
+ }
+ echo '</td>'."\n";
+ ## -----
+ }
+
+ echo '</tr>';
+ }
+ #
+ echo '</tbody>'."\n";
+
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml
new file mode 100644
index 00000000..719a6c96
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hianyzas/osztalyNap.phtml
@@ -0,0 +1,112 @@
+<?php
+
+ function putOsztalyHianyzok($ADAT) {
+ echo '<table class="hianyzas" style="float:left; margin-left:40px; margin-right:0px;">'."\n";
+
+ echo '<thead>';
+ echo '<tr><th>'._DIAK.'</th><th colspan="2">'._KESES.'</th><th colspan="2">'._HIANYZAS.'</th><th>'._FELSZERELES.'</th><th>'._FELMENTES.'</th><th>'._EGYENRUHA.'</th></tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ echo '<tr><th colspan="7">'.'</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+ echo '<tbody>';
+ foreach($ADAT['diakok'] as $diakId=>$X) {
+ $D = $ADAT['diakHianyzott'][$diakId];
+ if (is_array($D)) {
+ echo '<tr>';
+ echo '<th>';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId.'&dt='.$ADAT['dt']).'">';
+ echo $ADAT['diakok'][$diakId]['diakNev'];
+ echo '</a>';
+ echo '</th>';
+ echo '<td class="d igazolatlan keses">'._hWalk($D['késés']['igazolatlan']).'</td>';
+ echo '<td class="d igazolt keses">'._hWalk($D['késés']['igazolt']).'</td>';
+ echo '<td class="d igazolatlan hianyzas">'._hWalk($D['hiányzás']['igazolatlan']).'</td>';
+ echo '<td class="d igazolt hianyzas">'._hWalk($D['hiányzás']['igazolt']).'</td>';
+ echo '<td class="d igazolatlan felszereles">'._hWalk($D['felszerelés hiány']['igazolatlan']).'</td>';
+ echo '<td class="d igazolatlan felmentes">'._hWalk($D['felmentés']['igazolatlan']).'</td>';
+ echo '<td class="d igazolatlan egyenruha">'._hWalk($D['egyenruha hiány']['igazolatlan']).'</td>';
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</tbody>'."\n\n";
+ echo '</table>';
+ }
+
+ function _hWalk($X) {
+ if (is_array($X))
+ foreach ($X as $tankorTipus => $V) {
+ $r[] = '<span title="'.$tankorTipus.'">'.$V['db'].'</span>';
+ if ($V['db']!='') $db += $V['db'];
+ }
+ return $db.((count($r)>0) ? ' ('.implode('+', $r).')':'');
+ }
+
+ function putOsztalyHianyzas($ADAT) {
+
+ putOsztalyHianyzok($ADAT);
+
+ echo '<table class="hianyzas">'."\n";
+
+ echo '<thead>';
+ echo '<tr><th>'._ORA.'</th><th>'._TANKOR.'</th><th>'._DIAK.'</th><th colspan="2">'._TIPUS.'</th></tr>';
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ echo '<tr><th colspan="5">'.$ADAT['dt'].'</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>';
+
+ foreach ($ADAT['hianyzas'] as $ora => $oraAdat) {
+
+ // Az óra cella magasságának (rowspan) megállapítása
+ $row = 0; foreach ($oraAdat as $tankorId => $hAdat) $row += count($hAdat);
+ // ezzel jelezzük, hogy most nem kell tr a tankör cellája előtt
+ $oraElso = true;
+ // Az óra sorának kezdete
+ echo '<tr>';
+ echo '<th rowspan="'.$row.'">'.$ora.'.</th>';
+
+ foreach ($oraAdat as $tankorId => $hAdat) {
+
+ if (!$oraElso) echo '<tr>';
+ $oraElso = false;
+ echo '<th class="tk" rowspan="'.count($hAdat).'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$hAdat[0]['oraId']).'">';
+ echo $ADAT['tankorok'][ $hAdat[0]['tankorId'] ][0]['tankorNev'].' ('.$hAdat[0]['tankorId'].')';
+ echo '</a>';
+ echo '</th>';
+
+ $diakIndex = array(); $elso = true;
+ for ($i = 0; $i < count($hAdat); $i++) $diakIndex[ $hAdat[$i]['diakId'] ][] = $i;
+ foreach ($ADAT['diakok'] as $diakId => $dAdat) {
+// if (isset($diakIndex[$diakId])) {
+ if (is_array($diakIndex[$diakId])) foreach ($diakIndex[$diakId] as $i) {
+// $i = $diakIndex[$diakId];
+ if (!$elso) echo '<tr>'."\n";
+ $elso = false;
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=nap&diakId='.$hAdat[$i]['diakId'].'&dt='.$ADAT['dt']).'">';
+ echo $ADAT['diakok'][ $hAdat[$i]['diakId'] ]['diakNev'].' ('.$hAdat[$i]['diakId'].')';
+ echo '</a>'."\n";
+ echo '</td>'."\n";
+ echo '<td class="d '.ekezettelen($hAdat[$i]['statusz']).' '.ekezettelen($hAdat[$i]['hTipus']).'">'.'</td>'."\n";
+ echo '<td >';
+ if ($hAdat[$i]['hTipus'] != 'felmentés' && $hAdat[$i]['hTipus'] != 'felszerelés hiány' && $hAdat[$i]['hTipus'] != 'egyenruha hiány') echo $hAdat[$i]['statusz'].' ';
+ echo $hAdat[$i]['hTipus'];
+ if ($hAdat[$i]['statusz'] == 'igazolatlan' && $hAdat[$i]['hTipus'] == 'késés' && $hAdat[$i]['perc'] != 0)
+ echo ' ('.$hAdat[$i]['perc'].' '._PERC.')';
+
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ }
+ }
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml
new file mode 100644
index 00000000..1672bcb7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/admin.phtml
@@ -0,0 +1,150 @@
+<?php
+
+ function putKerelmek($ADAT, $telephelyId, $TELEPHELY) {
+
+ global $KERELEM_TAG;
+
+ echo '<ol class="kerelem">';
+ for ($i = 0; $i < count($ADAT['kerelmek']); $i++) {
+ $_K = $ADAT['kerelmek'][$i];
+ $kerelemId = $_K['kerelemId'];
+ $_napja = round(((strtotime(date('Y-m-d H:i:s')) - strtotime($_K['rogzitesDt']))/(24*60*60)));
+
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt'] != '') $class = ' class="jovahagyott" ';
+ else $class = '';
+
+ echo '<li '.$class.' id="kerelemId'.$ADAT['kerelmek'][$i]['kerelemId'].'">';
+ //echo '<div style="text-align:center; color:white; font-size:30px;">'.$i.'</div>';
+ echo '<fieldset>';
+ echo '<legend>';
+ echo superdate($ADAT['kerelmek'][$i]['rogzitesDt']);
+ echo ' – ';
+ echo $ADAT['kerelmek'][$i]['userAccount'];
+ if ($ADAT['kerelmek'][$i]['kategoria'] !='')
+ echo '<span style="border: solid 1px white; background-color: #678670; padding: 2px 5px; margin: 0px 5px;">'.$ADAT['kerelmek'][$i]['kategoria'].'</span>';
+ // if ($_K['telephelyId'] !='')
+ // echo '<span style="border: solid 1px white; background-color: #678670; padding: 2px 5px; margin: 0px 5px;">'.$_K['telephelyId'].'</span>';
+ if ($_napja>0) echo ' – '.$_napja.' napja';
+ echo '</legend>';
+
+ echo '<div class="szoveg">';
+ echo nl2br(supertext($ADAT['kerelmek'][$i]['szoveg']));
+ echo '</div>';
+
+ echo '</fieldset>';
+
+ if (count($ADAT['valaszok'][$kerelemId])>0) {
+ $_V = $ADAT['valaszok'][$kerelemId];
+ echo '<table class="kerelemValasz" cellpadding="1" cellspacing="1">';
+ for ($j=0; $j<count($_V); $j++) {
+ $_idx = (ord(mb_substr($_V[$j]['userAccount'],0,1))%5); // color index
+ echo '<tr class="c'.$_idx.'">';
+ echo '<th class="dt">'.superdate($_V[$j]['valaszDt']).'</th>';
+ echo '<td class="userAccount">'.$_V[$j]['userAccount'].'</td>';
+ echo '<td>'.supertext($_V[$j]['valasz']).'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="hibaAdminRogzites" />';
+ echo '<input type="hidden" name="kerelemId" value="'.$ADAT['kerelmek'][$i]['kerelemId'].'" />';
+ echo '<input type="hidden" name="telephelyId" value="'.$telephelyId.'" />';
+
+ echo '<textarea name="valasz" '.$class.' placeholder="Válasz...">';
+ // echo ($ADAT['kerelmek'][$i]['valasz']);
+ echo '</textarea><br />';
+
+
+ echo '<span class="mg">';
+ if (count($KERELEM_TAG)>0) {
+ echo '<select name="kategoria" class="mg">';
+ echo '<option value="">-</option>';
+ for ($j=0; $j<count($KERELEM_TAG); $j++) {
+ $_v = $KERELEM_TAG[$j];
+ $_SEL = ($_v==$ADAT['kerelmek'][$i]['kategoria']) ? 'selected="selected"':'';
+ echo '<option value="'.$_v.'" '.$_SEL.'>'.$_v.'</option>';
+ }
+ echo '</select>';
+ }
+ echo '</span>';
+
+ if (count($TELEPHELY)>=1) {
+ echo '<span class="mg2">';
+ echo '<select class="telephely" name="telephelyId">';
+ echo '<option value=""></option>';
+ for ($ti=0; $ti<count($TELEPHELY); $ti++) {
+ $_T = $TELEPHELY[$ti];
+ $_SEL = ($_K['telephelyId'] == $_T['telephelyId']) ? ' selected="selected" ' : '' ;
+ echo '<option value="'.$_T['telephelyId'].'" '.$_SEL.'>'.$_T['telephelyRovidNev'].'</option>';
+ }
+ echo '</select>';
+ echo '</span>'."\n";
+ }
+
+ echo '<input class="mg" type="submit" name="megjegyzes" value="'._MEGJEGYZES.'" />';
+
+ if (__VEZETOSEG || __NAPLOADMIN) {
+
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt'] != '')
+ echo '<input class="njh" type="submit" title="'.$_K['jovahagyasAccount'].'" name="nemHagyJova" value="'.$ADAT['kerelmek'][$i]['jovahagyasDt'].'" />';
+ else
+ echo '<input class="jh" type="submit" name="jovahagy" value="'._JOVAHAGYAS.'" />';
+ echo '<input class="done" type="submit" name="lezar" value="'._LEZARAS.'" />';
+
+ } else {
+
+ if ($ADAT['kerelmek'][$i]['jovahagyasDt'] != '') echo '<span class="dt">'.$ADAT['kerelmek'][$i]['jovahagyasDt'].'</span>';
+ if ($ADAT['kerelmek'][$i]['lezarasDt'] != '') echo '<span class="dt">'.superdate($ADAT['kerelmek'][$i]['lezarasDt']).'</span>';
+
+
+/* echo '<div class="valasz">';
+ echo nl2br(supertext($ADAT['kerelmek'][$i]['valasz']));
+ echo '</div>';
+
+ echo '<div>';
+ echo '<span class="dt">'.$ADAT['kerelmek'][$i]['rogzitesDt'].'</span>';
+ echo '</div>';
+*/
+ }
+
+
+ formEnd();
+
+ echo '</li>';
+
+ }
+ echo '</ol>';
+
+ }
+
+ function putHibabejelento($telephelyId) {
+
+ global $KERELEM_TAG;
+
+ formBegin(array('class'=>'hiba'));
+ echo '<input type="hidden" name="action" value="hibabejelentes" />';
+ echo '<input type="hidden" name="telephelyId" value="'.$telephelyId.'" />';
+
+ echo '<h1>'._KERELEM.'</h1>';
+ echo '<textarea name="txt" id="" placeholder="Kérelem...">';
+
+ echo '</textarea>';
+
+ echo '<br />';
+
+ if (count($KERELEM_TAG)>0) {
+ echo '<select name="kategoria">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($KERELEM_TAG); $i++) {
+ $_v = $KERELEM_TAG[$i];
+ echo '<option value="'.$_v.'">'.$_v.'</option>';
+ }
+ echo '</select>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+
+ formEnd();
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml
new file mode 100644
index 00000000..08bec2a3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hibabejelento/hibabejelento.phtml
@@ -0,0 +1,32 @@
+<?php
+
+ function putHibabejelento($telephelyId) {
+
+ global $KERELEM_TAG;
+
+ formBegin(array('class'=>'hiba'));
+ echo '<input type="hidden" name="action" value="hibabejelentes" />';
+ echo '<input type="hidden" name="kerelemTelephelyId" value="'.$telephelyId.'" />';
+
+ echo '<h1>'._ESZREVETEL.'</h1>';
+ echo '<textarea name="txt" id="focus" maxlength="255">';
+
+ echo '</textarea>';
+
+ echo '<br />';
+
+ if (count($KERELEM_TAG)>0) {
+ echo '<select name="kategoria">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($KERELEM_TAG); $i++) {
+ $_v = $KERELEM_TAG[$i];
+ echo '<option value="'.$_v.'">'.$_v.'</option>';
+ }
+ echo '</select>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml
new file mode 100644
index 00000000..9c547f84
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/cronFutar.phtml
@@ -0,0 +1,265 @@
+<?php
+
+ function generateFutarEmailTorzs($ADAT) {
+
+ if (!is_array($ADAT['hirnokFolyam'])) return false;
+
+ for ($h=0; $h<count($ADAT['hirnokFolyam']); $h++) {
+ if (count($ADAT['hirnokFolyam'])>1) { // csak ha nem egyértelmű
+ $RETURN_STR .= '<div class="hirnokSeparator">';
+ // putFace($ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['id'],$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['tipus'],30);
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'">'.$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['cn'].'</a>';
+ $RETURN_STR .= '</div>';
+ }
+ foreach ($ADAT['hirnokFolyam'][$h]['hirnokFolyamUzenetek'] as $stamp => $DA) {
+ for ($i=0; $i<count($DA); $i++) {
+ $D = $DA[$i];
+ $RETURN_STR .= '<div class="hirnokDoboz '.$D['hirnokTipus'].'">';
+ $RETURN_STR .= '<div class="hirnokBadgeHolder '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutarBadge_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarBadge_'.$D['hirnokTipus'],$D);
+ $RETURN_STR .= '</div>';
+ $RETURN_STR .= '<div class="hirnokDt">';
+ if (function_exists('generateFutarDetail_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarDetail_'.$D['hirnokTipus'],$D);
+ else $RETURN_STR .= (date('Y.m.d. H:i:s',$stamp));
+ $RETURN_STR .= '</div>';
+ $RETURN_STR .= '<div class="hirnokText '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutar_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutar_'.$D['hirnokTipus'],$D);
+ // else dump($D);
+ $RETURN_STR .= '</div>';
+ $RETURN_STR .= '<div class="hirnokRight '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutarRight_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarRight_'.$D['hirnokTipus'],$D);
+ $RETURN_STR .= '</div>';
+/* $RETURN_STR .= '<div class="hirnokFooter '.$D['hirnokTipus'].'">';
+ if (function_exists('generateFutarFooter_'.$D['hirnokTipus'])) $RETURN_STR .= call_user_func('generateFutarFooter_'.$D['hirnokTipus'],$D);
+ $RETURN_STR .= '</div>';
+*/
+ $RETURN_STR .= '</div>';
+ }
+ }
+ }
+ // vege $RETURN_STR .= '<div class="hirnokSeparator"><a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'"><span class="icon-calendar"></span> '.superdate($ADAT['tolDt']).'<span class="icon-bullhorn"></span></a></div>';
+ return str_replace('</div>','</div>'."\n",$RETURN_STR);
+ }
+ function generateFutarRight_uzeno($D) {
+ return $RETURN_STR;
+ }
+ function generateFutarFooter_uzeno($D) {
+ return $RETURN_STR;
+ }
+ function generateFutar_idoszak($D) {
+ $RETURN_STR .= 'Aktív <b>'.$D['idoszakAdat']['tipus'].'</b> időszak: '.$D['idoszakAdat']['tolDt'].' – '.$D['idoszakAdat']['igDt'];
+ return $RETURN_STR;
+ }
+
+ function generateFutarBadge_jegy($D) {
+ // return '<i class="material-icons">face</i>';
+ }
+
+ function generateFutar_haladasiOra($D) {
+ global $aHetNapjai;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['oraAdat']['dt']))-1]);
+ $RETURN_STR .= 'A '.$D['oraAdat']['tankorCn'].' tankör '.$D['oraAdat']['dt'].' '.$nap.'i '.$D['oraAdat']['ora'].'. óra státusza megváltozott. ';
+ if ($D['oraAdat']['teremId']>0) $RETURN_STR .= 'Terme: '.$D['oraAdat']['teremId'].'. ';
+ $RETURN_STR .= 'Új típusa: <b>'.$D['oraAdat']['tipus'].'</b>! ';
+ if ($D['oraAdat']['ki']>0) $RETURN_STR .= '('.$D['oraAdat']['kiCn'].')';
+ return $RETURN_STR;
+ }
+
+ function generateFutarDetail_uzeno($D) {
+ $IMG = array( // jobb lenne valami shared helyen
+ 'diak' => '<span title="diák" class="icon-child"></span>',
+ 'szulo' => '<span title="szülő" class="icon-adult"></span>',
+ 'tanar' => '<span title="tanár" class="icon-adult"></span>',
+ 'munkakozosseg' => '<span title="munkaközösség tagjai" class="icon-slideshare"></span>',
+ 'tankor' => '<span title="tankör diákjai és tanára" class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span title="tankörbe járók szülei" class="icon-group-alt"></span>',
+ 'osztaly' => '<span title="osztály diákjai és osztályfőnökei" class="icon-group"></span>',
+ 'osztalySzulo' => '<span title="osztályba járók szülei" class="icon-adult"></span>',
+ 'osztalyTanar' => '<span title="osztályban tanítók" class="icon-slideshare"></span>',
+ );
+ $TIPUS_STR = array(
+ 'diak' => 'diák',
+ 'szulo' => 'szülő',
+ 'tanar' => 'tanár',
+ 'munkakozosseg' => 'munkaközösség tagjai',
+ 'tankor' => 'tankör diákjai és tanára',
+ 'tankorSzulo' => 'tankörbe járók szülei',
+ 'osztaly' => 'osztály diákjai és osztályfőnökei',
+ 'osztalySzulo' => 'osztályba járók szülei',
+ 'osztalyTanar' => 'osztályban tanítók',
+ );
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ $_link1 = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['uzenoAdat']['feladoId'].'&feladoTipus='.$D['uzenoAdat']['feladoTipus']);
+ $_link2 = href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['uzenoAdat']['cimzettId'].'&feladoTipus='.$D['uzenoAdat']['cimzettTipus']);
+ $RETURN_STR .= '<a href="'.$_link1.'">';
+ if ($D['uzenoAdat']['feladoId']==0) $RETURN_STR .= 'Adminisztrátor';
+ else $RETURN_STR .= $D['feladoNev'];
+ $RETURN_STR .= '</a>';
+ //TESZT $RETURN_STR .= '<span class="icon-caret-right" style="padding: 0px 4px; font-size:8px;"></span>';
+ if ($D['cimzettNev']!='') $RETURN_STR .= '<br/><span><a href="'.$_link2.'">'.$D['cimzettNev'].'</a></span>';
+ $RETURN_STR .= '<br/>';
+ $RETURN_STR .= '<span style="color:#aaa;">';
+ $RETURN_STR .= superdate(date('Y-m-d H:i:s',strtotime($D['uzenoAdat']['dt'])));
+ $RETURN_STR .= '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) $RETURN_STR .= '<span class="icon-globe" title="minden"></span>';
+ else $RETURN_STR .= $IMG[$D['uzenoAdat']['cimzettTipus']];
+ $RETURN_STR .= '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) $RETURN_STR .= 'minden ';
+ $RETURN_STR .= $TIPUS_STR[$D['uzenoAdat']['cimzettTipus']];
+ $RETURN_STR .= '</span>';
+ return $RETURN_STR;
+
+ }
+
+ function generateFutar_zaroJegy($D) {
+ global $KOVETELMENY;
+
+ $RETURN_STR .= ucfirst($D['targyAdat']['targyNev']);
+ $RETURN_STR .= ' tárgyból ';
+
+ $RETURN_STR .= $D['zaroJegyAdat']['evfolyamJel'].'. évfolyam ';
+ $RETURN_STR .= ''.$D['zaroJegyAdat']['felev'].'. félévére ';
+
+ $RETURN_STR .= '<b>'.($KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['hivatalos']).'</b>';
+ $RETURN_STR .= ' ('.$KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['rovid'].') ';
+ $RETURN_STR .= $D['zaroJegyAdat']['jegyTipus'];
+ $RETURN_STR .= ' típusú osztályzat került beírásra / módosult a bizonyítványban.';
+
+
+ if (is_array($D['oraAdat'])) {
+ $RETURN_STR .= 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // dump($D);
+ return $RETURN_STR;
+ }
+ function generateFutar_jegy($D) {
+ global $KOVETELMENY;
+
+ if ($D['jegyAdat']['dt'] != date('Y-m-d',strtotime($D['jegyAdat']['modositasDt']))) {
+
+ $str[] = 'Jegymódosítás! ';
+ $str[] = ucfirst($D['targyAdat']['targyNev']);
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '('.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].') ';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelésre módosult a '.$D['jegyAdat']['dt'].'-n kelt eredeti bejegyzés.';
+ } else {
+ $str[] = ucfirst($D['targyAdat']['targyNev']);
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '(röviden: '.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].'),';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelés került beírásra az osztályozó naplóba.';
+ }
+
+ if (is_array($D['oraAdat'])) {
+ $str[] = 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // $RETURN_STR .= $D['jegyAdat']['jegy'];
+ // $RETURN_STR .= $D['jegyAdat']['jegyTipus'];
+ $RETURN_STR .= implode(' ',$str);
+
+ // dump($D);
+ return $RETURN_STR;
+ }
+
+ function generateFutar_dolgozat($D) {
+
+ if (strtotime($D['dolgozatAdat']['tervezettDt'])>strtotime(date('Y-m-d H:i:s'))) {
+ $RETURN_STR .= 'Új dolgozat várható! ';
+ } else {
+ $RETURN_STR .= 'Új dolgozat került rögzítésre. ';
+ }
+ $RETURN_STR .= 'A bejelentés ideje: ';
+ $RETURN_STR .= $D['dolgozatAdat']['bejelentesDt'].', tervezett időpontja: ';
+ $RETURN_STR .= $D['dolgozatAdat']['tervezettDt'].'. ';
+
+ $RETURN_STR .= 'A dolgozat megnevezése: '.$D['dolgozatAdat']['dolgozatNev'].'. ';
+
+ $RETURN_STR .= 'Érintett tankör';
+ if (count($D['dolgozatAdat']['tankor'])>1) $RETURN_STR .= 'ök';
+ $RETURN_STR .= ': ';
+ for($i=0; $i<count($D['dolgozatAdat']['tankor']); $i++) {
+ $RETURN_STR .= ($D['dolgozatAdat']['tankor'][$i]['tankorNev']);
+ if ($i<count($D['dolgozatAdat']['tankor'])-1) $RETURN_STR .= ' ';
+ }
+ // dump( $D );
+ return $RETURN_STR;
+ }
+
+ function generateFutarRight_haladasiBeiratlan($D) {
+ global $UdvozloKep,$skin;
+ if (!is_array($UdvozloKep) || count($UdvozloKep) == 0) $UdvozloKep = array('kutya','pingvin','smiley','garfield','majom');
+ if ($D['db']==0) {
+ $i = rand(0, count($UdvozloKep)-1);
+ $RETURN_STR .= '<img src="skin/classic/module-naplo/img/anim/'.$UdvozloKep[$i].'.gif" alt="anim gif" style="height: 60px;" />';
+ }
+ return $RETURN_STR;
+ }
+
+ function generateFutar_haladasiBeiratlan($D) {
+
+ if ($D['db']==0) {
+ $RETURN_STR .= 'Köszönjük, hogy minden órádat beírtad!';
+ } else {
+ $RETURN_STR .= 'Beíratlan órák száma: '.$D['db'];
+ }
+ return $RETURN_STR;
+ }
+ function generateFutar_uzeno($D) {
+ if ($D['uzenoAdat']['flag']==1) $RETURN_STR .= '<i>– a szöveget a kérésedre elrejtettük –</i>';
+ else $RETURN_STR .= nl2br(makelinksclickable((supertext($D['uzenoAdat']['txt'])))); // egyelőre nem tudunk bővebbet, mert a backend nem szolgáltat infót
+/* $RETURN_STR .= '<div class="hirnokIkonKontener" style="display: relativ; top:0px; right:0px; text-align:right;">';
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$_szalId).'">';
+ $RETURN_STR .= '<span class="icon-pencil"></span>';
+ $RETURN_STR .= '</a>';
+
+ if ($D['uzenoAdat']['flag']!=1) {
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=1&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-close"></span></a>';
+ } else {
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=0&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-open"></span></a>';
+ }
+ if (__UZENOADMIN===true) {
+ $RETURN_STR .= '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-trash-alt"></span></a>';
+ }
+ $RETURN_STR .= '</div>';
+*/
+ return $RETURN_STR;
+
+ }
+
+ function generateFutar_bejegyzes($D) {
+ $RETURN_STR .= 'Új '.ucfirst($D['bejegyzesAdat']['bejegyzesTipusNev']).' került rögzítésre. ';
+ if ($D['bejegyzesAdat']['szoveg'] !='') $RETURN_STR .= '<q>'.$D['bejegyzesAdat']['szoveg'].'</q>';
+ $RETURN_STR .= ' - '.$D['tanarAdat']['tanarNev'];
+ return $RETURN_STR;
+ }
+
+ function generateFutar_hianyzas($D) {
+ global $aHetNapjai;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['hianyzasAdat']['dt']))-1]);
+ $RETURN_STR .= $D['hianyzasAdat']['dt'].' '.$nap.' '.$D['hianyzasAdat']['ora'].'. órára (';
+ $RETURN_STR .= $D['oraAdat']['tankorNev'].', '.$D['oraAdat']['kiCn'];
+ $RETURN_STR .= ') ';
+ if (in_array($D['hianyzasAdat']['tipus'],array('késés','hiányzás'))) $RETURN_STR .= $D['hianyzasAdat']['statusz'].' ';
+ if ($D['hianyzasAdat']['tipus']=='késés' && $D['hianyzasAdat']['perc']>0) $RETURN_STR .= ' '.$D['hianyzasAdat']['perc'].' perc ';
+ $RETURN_STR .= '<b>'.$D['hianyzasAdat']['tipus'].'</b> került rögzítésre.';
+ return $RETURN_STR;
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml
new file mode 100644
index 00000000..54222591
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnok.phtml
@@ -0,0 +1,319 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/face.phtml');
+
+ function putHirnokFolyam($ADAT) {
+
+ if (!is_array($ADAT['hirnokFolyam'])) return false;
+
+ // echo '<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">';
+
+ for ($h=0; $h<count($ADAT['hirnokFolyam']); $h++) {
+ if (count($ADAT['hirnokFolyam'])>=1) {
+ echo '<div class="hirnokSeparator">';
+ putFace($ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['id'],$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['tipus'],30);
+ echo '<a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'">'.$ADAT['hirnokFolyam'][$h]['hirnokFolyamAdatok']['cn'].'</a>';
+ echo '</div>';
+ }
+ foreach ($ADAT['hirnokFolyam'][$h]['hirnokFolyamUzenetek'] as $stamp => $DA) {
+ for ($i=0; $i<count($DA); $i++) {
+ $D = $DA[$i];
+ echo '<div class="hirnokDoboz '.$D['hirnokTipus'].'">';
+ echo '<div class="hirnokBadgeHolder '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnokBadge_'.$D['hirnokTipus'])) call_user_func('putHirnokBadge_'.$D['hirnokTipus'],$D);
+ echo '</div>';
+ echo '<div class="hirnokDt">';
+ if (function_exists('putHirnokDetail_'.$D['hirnokTipus'])) call_user_func('putHirnokDetail_'.$D['hirnokTipus'],$D);
+ else echo superdate(date('Y-m-d H:i:s',$stamp));
+ echo '</div>';
+ echo '<div class="hirnokText '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnok_'.$D['hirnokTipus'])) call_user_func('putHirnok_'.$D['hirnokTipus'],$D);
+ // else dump($D);
+ echo '</div>';
+ echo '<div class="hirnokRight '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnokRight_'.$D['hirnokTipus'])) call_user_func('putHirnokRight_'.$D['hirnokTipus'],$D);
+ echo '</div>';
+/* echo '<div class="hirnokFooter '.$D['hirnokTipus'].'">';
+ if (function_exists('putHirnokFooter_'.$D['hirnokTipus'])) call_user_func('putHirnokFooter_'.$D['hirnokTipus'],$D);
+ echo '</div>';
+*/
+ echo '</div>';
+ }
+ }
+ }
+ echo '<div class="hirnokSeparator"><a href="'.href('index.php?page=naplo&sub=hirnok&f=hirnok').'"><span class="icon-calendar"></span> '.superdate($ADAT['tolDt']).'<span class="icon-bullhorn"></span></a></div>';
+
+ }
+ function putHirnokBadge_bejegyzes($D) {
+ // hint by rpetya (peter.rakolcza@gmail.com)
+ // $ICO = array('dicséret'=>'icon-smiley-alt','fegyelmi'=>'icon-exclamation-sign','üzenet'=>'icon-envelope');
+ $ICON = array('dicséret'=>'mood','fegyelmi'=>'mood_bad','üzenet'=>'mail');
+ $RGB = array('dicséret'=>'lightgreen','fegyelmi'=>'#e91e63','üzenet'=>'#9c27b0');
+ // echo '<a href="'.href('index.php?page=naplo&sub=bejegyzesek&f=bejegyzesek').'"><span style="background-color: '.$RGB[$D['bejegyzesAdat']['tipus']].'" class="'.$ICO[$D['bejegyzesAdat']['tipus']].'"></span></a>';
+ echo '<a href="'.href('index.php?page=naplo&sub=bejegyzesek&f=bejegyzesek').'"><span style="background-color: '.$RGB[$D['bejegyzesAdat']['tipus']].'" class="material-icons">'.$ICON[$D['bejegyzesAdat']['tipus']].'</span></a>';
+ }
+ function putHirnokBadge_idoszak($D) {
+ echo '<span class="icon-calendar-sign"></span>';
+ }
+ function putHirnokBadge_haladasiBeiratlan($D) {
+
+ if ($D['db']!=0)
+ echo '<a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi').'"><span class="icon-bullhorn"></span></a>';
+ else
+ echo '<a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi').'"><span class="icon-ok-sign" style="background-color:lightgreen"></span></a>';
+
+ }
+ function putHirnokBadge_dolgozat($D) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat').'">';
+ //echo '<span class="icon-calendar-sign"></span>';
+ echo '<span class="material-icons" style="background-color:orange;">lightbulb_outline</span>';
+ echo '</a>';
+ }
+ function putHirnokBadge_jegy($D) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak').'">';
+ // echo '<span class="icon-pencil"></span>';
+ if (in_array($D['jegyAdat']['jegy'],array(1,2,3,4,5))) echo '<span class="material-icons">looks_'.intval(($D['jegyAdat']['jegy'])).'</span>';
+ else echo '<span class="material-icons">mode_edit</span>';
+ echo '</a>';
+ }
+ function putHirnokBadge_haladasiOra($D) {
+ $ICONS = array('helyettesítés'=>'cached', 'elmarad'=>'grid_off', 'elmarad máskor'=>'call_split','felügyelet'=>'border_clear', 'normál'=>'border_all', 'normál máskor'=>'call_merge','összevonás'=>'group_add');
+ echo '<a href="'.href('index.php?page=naplo&sub=orarend&f=orarend').'">';
+ // echo '<span class="icon-th"></span>';
+ echo '<span class="material-icons">'.$ICONS[$D['oraAdat']['tipus']].'</span>'; // grid_off
+ echo '</a>';
+ }
+ function putHirnokBadge_uzeno($D) {
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$_szalId).'">';
+ // putFace($D['uzenoAdat']['cimzettId'],$D['uzenoAdat']['cimzettTipus'],30);
+ // echo '<span class="icon-envelope"></span>';
+ echo '<span class="material-icons">mail</span>';
+ echo '</a>';
+ //putFace($D['uzenoAdat']['feladoId'],$D['uzenoAdat']['feladoTipus'],30);
+ }
+ function putHirnokRight_uzeno($D) {
+ putFace($D['uzenoAdat']['feladoId'],$D['uzenoAdat']['feladoTipus'],30);
+ }
+ function putHirnokFooter_uzeno($D) {
+ echo '<div class="hidden">';
+ // echo '<span class="icon-globe"></span>';
+ echo '<span class="material-icons">swap_horiz</span>';
+ echo '</div>';
+ }
+
+ function putHirnokBadge_zaroJegy($D) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=bizonyitvany').'">';
+ // echo '<span class="icon-pencil-alt"></span>';
+ echo '<span class="material-icons">border_color</span>';
+ echo '</a>';
+ }
+
+ function putHirnok_idoszak($D) {
+ echo 'Aktív <b>'.$D['idoszakAdat']['tipus'].'</b> időszak: '.$D['idoszakAdat']['tolDt'].' – '.$D['idoszakAdat']['igDt'];
+ }
+
+ function putHirnokBadge_hianyzas($D) {
+ $ICON = array('késés'=>'timer','felmentés'=>'accessible','felszerelés hiány'=>'accessibility',
+ 'hiányzás'=>'location_off'); // location_off, grid_off, blur_off
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak').'">';
+ // echo '<span class="icon-time-alt"></span>';
+ echo '<span class="material-icons">'.$ICON[$D['hianyzasAdat']['tipus']].'</span>';
+ echo '</a>';
+ ;
+ }
+
+ function putHirnok_hianyzas($D) {
+ global $aHetNapjai;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['hianyzasAdat']['dt']))-1]);
+ echo $D['hianyzasAdat']['dt'].' '.$nap.' '.$D['hianyzasAdat']['ora'].'. órára (';
+ echo $D['oraAdat']['tankorNev'].', '.$D['oraAdat']['kiCn'];
+ echo ') ';
+ if (in_array($D['hianyzasAdat']['tipus'],array('késés','hiányzás'))) echo $D['hianyzasAdat']['statusz'].' ';
+ if ($D['hianyzasAdat']['tipus']=='késés' && $D['hianyzasAdat']['perc']>0) echo ' '.$D['hianyzasAdat']['perc'].' perc ';
+ echo '<b>'.$D['hianyzasAdat']['tipus'].'</b> került rögzítésre.';
+ }
+
+ function putHirnok_haladasiOra($D) {
+ global $aHetNapjai;
+ $nap = kisbetus($aHetNapjai[date('w',strtotime($D['oraAdat']['dt']))-1]);
+ echo 'A '.$D['oraAdat']['tankorCn'].' tankör '.$D['oraAdat']['dt'].' '.$nap.'i '.$D['oraAdat']['ora'].'. óra státusza megváltozott. ';
+ if ($D['oraAdat']['teremId']>0) echo 'Terme: '.$D['oraAdat']['teremId'].'. ';
+ echo 'Új típusa: <b>'.$D['oraAdat']['tipus'].'</b>! ';
+ if ($D['oraAdat']['ki']>0) echo '('.$D['oraAdat']['kiCn'].')';
+ }
+
+ function putHirnokDetail_uzeno($D) {
+ $IMG = array( // jobb lenne valami shared helyen
+ 'diak' => '<span title="diák" class="icon-child"></span>',
+ 'szulo' => '<span title="szülő" class="icon-adult"></span>',
+ 'tanar' => '<span title="tanár" class="icon-adult"></span>',
+ 'munkakozosseg' => '<span title="munkaközösség tagjai" class="icon-slideshare"></span>',
+ 'tankor' => '<span title="tankör diákjai és tanára" class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span title="tankörbe járók szülei" class="icon-group-alt"></span>',
+ 'osztaly' => '<span title="osztály diákjai és osztályfőnökei" class="icon-group"></span>',
+ 'osztalySzulo' => '<span title="osztályba járók szülei" class="icon-adult"></span>',
+ 'osztalyTanar' => '<span title="osztályban tanítók" class="icon-slideshare"></span>',
+ );
+ $TIPUS_STR = array(
+ 'diak' => 'diák',
+ 'szulo' => 'szülő',
+ 'tanar' => 'tanár',
+ 'munkakozosseg' => 'munkaközösség tagjai',
+ 'tankor' => 'tankör diákjai és tanára',
+ 'tankorSzulo' => 'tankörbe járók szülei',
+ 'osztaly' => 'osztály diákjai és osztályfőnökei',
+ 'osztalySzulo' => 'osztályba járók szülei',
+ 'osztalyTanar' => 'osztályban tanítók',
+ );
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ $_link1 = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['uzenoAdat']['feladoId'].'&feladoTipus='.$D['uzenoAdat']['feladoTipus']);
+ $_link2 = href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['uzenoAdat']['cimzettId'].'&feladoTipus='.$D['uzenoAdat']['cimzettTipus']);
+ echo '<a href="'.$_link1.'">';
+ if ($D['uzenoAdat']['feladoId']==0) echo 'Adminisztrátor';
+ else echo $D['feladoNev'];
+ echo '</a>';
+ //TESZT echo '<span class="icon-caret-right" style="padding: 0px 4px; font-size:8px;"></span>';
+ if ($D['cimzettNev']!='') echo '<br/><span><a href="'.$_link2.'">'.$D['cimzettNev'].'</a></span>';
+ echo '<br/>';
+ echo '<span style="color:#aaa;">';
+ echo superdate(date('Y-m-d H:i:s',strtotime($D['uzenoAdat']['dt'])));
+ echo '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) echo '<span class="icon-globe" title="minden"></span>';
+ else echo $IMG[$D['uzenoAdat']['cimzettTipus']];
+ echo '<span style="padding: 0px 2px;">·</span>';
+ if ($D['uzenoAdat']['cimzettId']==0) echo 'minden ';
+ echo $TIPUS_STR[$D['uzenoAdat']['cimzettTipus']];
+ echo '</span>';
+
+ }
+
+ function putHirnok_zaroJegy($D) {
+ global $KOVETELMENY;
+
+ echo ucfirst($D['targyAdat']['targyNev']);
+ echo ' tárgyból ';
+
+ echo $D['zaroJegyAdat']['evfolyamJel'].'. évfolyam ';
+ echo ''.$D['zaroJegyAdat']['felev'].'. félévére ';
+
+ echo '<b>'.($KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['hivatalos']).'</b>';
+ echo ' ('.$KOVETELMENY[$D['zaroJegyAdat']['jegyTipus']][$D['zaroJegyAdat']['jegy']]['rovid'].') ';
+ echo $D['zaroJegyAdat']['jegyTipus'];
+ echo ' típusú osztályzat került beírásra / módosult a bizonyítványban.';
+
+
+ if (is_array($D['oraAdat'])) {
+ echo 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // dump($D);
+ }
+ function putHirnok_jegy($D) {
+ global $KOVETELMENY;
+
+ if ($D['jegyAdat']['dt'] != date('Y-m-d',strtotime($D['jegyAdat']['modositasDt']))) {
+
+ $str[] = 'Jegymódosítás! ';
+ $str[] = ucfirst($D['targyAdat']['targyNev']);
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '('.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].') ';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelésre módosult a '.$D['jegyAdat']['dt'].'-n kelt eredeti bejegyzés.';
+ } else {
+ $str[] = '<b>'.ucfirst($D['targyAdat']['targyNev']).'</b>';
+ $str[] = 'tárgyból';
+
+ $str[] = '<b>'.($KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['hivatalos']).'</b>';
+ $str[] = '('.$KOVETELMENY[$D['jegyAdat']['jegyTipus']][$D['jegyAdat']['jegy']]['rovid'].'),';
+ $str[] = $D['jegyAdat']['jegyTipus'];
+ $str[] = 'típusú értékelés került beírásra az osztályozó naplóba.';
+ }
+
+ if (is_array($D['oraAdat'])) {
+ $str[] = 'Az óra adatai: '.$D['oraAdat']['tankorNev'].' '.
+ $D['oraAdat']['kiCn'].', '.
+ $D['oraAdat']['leiras'].', '.
+ $D['oraAdat']['dt'].' '.
+ $D['oraAdat']['ora'].'. óra.';
+ }
+
+ // echo $D['jegyAdat']['jegy'];
+ // echo $D['jegyAdat']['jegyTipus'];
+ echo implode(' ',$str);
+
+ // dump($D);
+ }
+
+ function putHirnok_dolgozat($D) {
+
+ if (strtotime($D['dolgozatAdat']['tervezettDt'])>strtotime(date('Y-m-d H:i:s'))) {
+ echo 'Új dolgozat várható! ';
+ } else {
+ echo 'Új dolgozat került rögzítésre. ';
+ }
+ echo 'A bejelentés ideje: ';
+ echo $D['dolgozatAdat']['bejelentesDt'].', tervezett időpontja: ';
+ echo $D['dolgozatAdat']['tervezettDt'].'. ';
+
+ echo 'A dolgozat megnevezése: '.$D['dolgozatAdat']['dolgozatNev'].'. ';
+
+ echo 'Érintett tankör';
+ if (count($D['dolgozatAdat']['tankor'])>1) echo 'ök';
+ echo ': ';
+ for($i=0; $i<count($D['dolgozatAdat']['tankor']); $i++) {
+ echo ($D['dolgozatAdat']['tankor'][$i]['tankorNev']);
+ if ($i<count($D['dolgozatAdat']['tankor'])-1) echo ' ';
+ }
+ // dump( $D );
+ }
+
+ function putHirnokRight_haladasiBeiratlan($D) {
+ global $UdvozloKep,$skin;
+ if (!is_array($UdvozloKep) || count($UdvozloKep) == 0) $UdvozloKep = array('kutya','pingvin','smiley','garfield','majom');
+ if ($D['db']==0) {
+ $i = rand(0, count($UdvozloKep)-1);
+ echo '<img src="skin/classic/module-naplo/img/anim/'.$UdvozloKep[$i].'.gif" alt="anim gif" style="height: 60px;" />';
+ }
+ }
+
+ function putHirnok_haladasiBeiratlan($D) {
+
+ if ($D['db']==0) {
+ echo 'Köszönjük, hogy minden órádat beírtad!';
+ } else {
+ echo 'Beíratlan órák száma: '.$D['db'];
+ }
+ }
+ function putHirnok_uzeno($D) {
+ if ($D['uzenoAdat']['flag']==1) echo '<i>– a szöveget a kérésedre elrejtettük –</i>';
+ else echo nl2br(makelinksclickable((supertext($D['uzenoAdat']['txt'])))); // egyelőre nem tudunk bővebbet, mert a backend nem szolgáltat infót
+ echo '<div class="hirnokIkonKontener" style="display: relativ; top:0px; right:0px; text-align:right;">';
+ $_szalId = $D['uzenoAdat']['feladoId'].'_'.$D['uzenoAdat']['feladoTipus'].'_'.$D['uzenoAdat']['cimzettId'].'_'.$D['uzenoAdat']['cimzettTipus'];
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$_szalId).'">';
+ echo '<span class="icon-pencil"></span>';
+ echo '</a>';
+ if ($D['uzenoAdat']['flag']!=1) {
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=1&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-close"></span></a>';
+ } else {
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag=0&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-eye-open"></span></a>';
+ }
+ if (__UZENOADMIN===true) {
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['uzenoAdat']['mId']).'"><span class="icon-trash-alt"></span></a>';
+ }
+ echo '</div>';
+
+ }
+
+ function putHirnok_bejegyzes($D) {
+ echo 'Új '.ucfirst($D['bejegyzesAdat']['bejegyzesTipusNev']).' került rögzítésre. ';
+ if ($D['bejegyzesAdat']['szoveg'] !='') echo '<q>'.$D['bejegyzesAdat']['szoveg'].'</q>';
+ if ($D['tanarAdat']['tanarNev']!='') echo ' - '.$D['tanarAdat']['tanarNev'];
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml
new file mode 100644
index 00000000..ba5d6b69
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/hirnok/hirnokFeliratkozas.phtml
@@ -0,0 +1,68 @@
+<?php
+
+ function putHirnokFeliratkozas($ADAT) {
+ formBegin();
+ echo '<input type="hidden" name="action" value="hirnokFeliratkozas" />';
+ echo '<table align="center" style="background-color: #eee">';
+ echo '<tr>';
+ echo '<th>-|+</th>';
+ echo '<td><input type="text" placeholder="diakId/tanarId" name="naploId" /></td>';
+ echo '<td>';
+ echo '<select name="naploTipus">';
+ echo '<option value="diak">diák</option>';
+ echo '<option value="tanar">tanár</option>';
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td><input type="text" value="'._USERACCOUNT.'" /></td>';
+ echo '<td><input type="text" value="'._POLICY.'" /></td>';
+ echo '<td><input type="text" placeholder="email" name="email" /></td>';
+ echo '<td><input type="submit"></td>';
+ echo '<th style="background-color: lightgreen">utolsó email dátum</th>';
+ echo '</tr>';
+// foreach ($ADAT['hirnokFeliratkozas'] as $tipus => $HADAT) {
+ $HADAT = $ADAT['hirnokFeliratkozas'];
+ for ($i=0; $i<count($HADAT); $i++) {
+ echo '<tr>';
+ echo '<td><input type="checkbox" name="hirnokFeliratkozasId" value="'.$HADAT[$i]['hirnokFeliratkozasId'].'"></td>';
+ echo '<td>'.$HADAT[$i]['naploId'].'</td>';
+ echo '<td>'.$HADAT[$i]['naploTipus'].'</td>';
+ echo '<td>'.$HADAT[$i]['userAccount'].'</td>';
+ echo '<td>'.$HADAT[$i]['policy'].'</td>';
+ echo '<td>'.$HADAT[$i]['email'].'</td>';
+ echo '<td>'.$HADAT[$i]['feliratkozasDt'].'</td>';
+ echo '<td>'.$HADAT[$i]['utolsoEmailDt'].'</td>';
+ echo '<td>'.$HADAT[$i]['megtekintesDt'].'</td>';
+ echo '</tr>'."\n";
+ }
+// }
+ echo '</table>';
+ formEnd();
+ }
+
+
+ function putHirnokFeliratkozas_user($ADAT) {
+ formBegin();
+ echo '<input type="hidden" name="action" value="hirnokFeliratkozas" />';
+ echo '<table align="center" style="background-color: #eee">';
+ echo '<tr>';
+ echo '<th>-|+</th>';
+ echo '<td><input type="text" placeholder="email" name="email" value="'.$ADAT['email'].'"/></td>';
+ echo '<td><input type="submit"></td>';
+ echo '<th style="background-color: lightgreen">utolsó email dátum</th>';
+ echo '</tr>';
+ $HADAT = $ADAT['hirnokFeliratkozas'];
+ for ($i=0; $i<count($HADAT); $i++) {
+ echo '<tr>';
+ echo '<td><input type="checkbox" name="hirnokFeliratkozasId" value="'.$HADAT[$i]['hirnokFeliratkozasId'].'"></td>';
+ echo '<td>'.$HADAT[$i]['email'].'</td>';
+ echo '<td>'.'</td>';
+ echo '<td>'.$HADAT[$i]['utolsoEmailDt'].'</td>';
+ echo '<td>'.$HADAT[$i]['megtekintesDt'].'</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</table>';
+ formEnd();
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diak.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diak.phtml
new file mode 100644
index 00000000..8a3c18af
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diak.phtml
@@ -0,0 +1,942 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+ function putBizonyitvanyTorzslap($ADAT) {
+ echo '<div>';
+ formBegin(array('class'=>'diak'));
+ echo '<fieldset class="bizonyitvanyTorzslap"><legend>'._DIAK_ALAPADATAI.'</legend>'."\n";
+ echo '<div class="face" style="float:right">';
+ putFace($ADAT['diakId'],'diak','100');
+ echo '</div>';
+ echo '<table>';
+ echo '<tr><td>Diák neve</td><td>'.($ADAT['diakAdat']['diakNev']).'</td></tr>';
+ echo '<tr><td>Oktatási:</td><td>'.($ADAT['diakAdat']['oId']).'</td></tr>';
+ echo '<tr><td>Születési hely:</td><td>'.($ADAT['diakAdat']['szuletesiHely']).'</td></tr>';
+ echo '<tr><td>Születési idő:</td><td>'.($ADAT['diakAdat']['szuletesiIdo']).'</td></tr>';
+ echo '<tr><td>Gondviselő neve:</td><td>'.($ADAT['diakAdat']['gondviseloNev']).'</td></tr>';
+ echo '<tr><td>Apa neve:</td><td>'.($ADAT['diakAdat']['apaNev']).'</td></tr>';
+ echo '<tr><td>Anya neve (születéskori):</td><td>'.($ADAT['diakAdat']['anyaNev']).'</td></tr>';
+ echo '</table>';
+ echo '</fieldset>';
+ formEnd();
+ echo '</div>';
+ }
+
+ function putDiakAdatForm($ADAT, $Szulok, $tanev) {
+
+
+ $diakAdat = $ADAT['diakAdat'];
+ $DIAKJOGVISZONY = $ADAT['diakJogviszony'];
+ $OSZTALYOK = $ADAT['osztalyok'];
+ foreach ($diakAdat as $key => $val) {
+ if (is_string($diakAdat[$key])) $diakAdat[$key] = htmlspecialchars($val);
+ }
+
+ $cssClass = array(
+ 'felvételt nyert' => 'felveteltNyert',
+ 'magántanuló' => 'magantanulo',
+ 'vendégtanuló' => 'vendegtanulo',
+ 'jogviszonya lezárva' => 'jogviszonyLezarva',
+ 'jogviszonya felfüggesztve' => 'jogviszonyFelfuggesztve',
+ );
+
+ $cssClass2 = (_MODOSITHAT===true) ? "":" readonly";
+
+ echo '<div class="'.$cssClass[$diakAdat['statusz']].$cssClass2.'" >';
+ for ($i=0; $i<=count($ADAT['diakKepzes'][$ADAT['diakId']]); $i++) {
+ $_DK = $ADAT['diakKepzes'][$ADAT['diakId']][$i];
+ $_title .= $_DK['kepzesNev'].' '.$_DK['tolDt'].'-'.$_DK['igDt'].' ';
+ }
+ echo '<div class="diakStatusz" title="'.$_title.'">';
+ echo '<a href="#osztalyai" style="color:black;">'.$diakAdat['statusz'].'</a>';
+ echo '</div>';
+
+ $POSTTHESE = array('tanev'=>$tanev,'osztalyId'=>$ADAT['osztalyId']);
+
+ putDiakAlapadatok($diakAdat, $POSTTHESE, $DIAKJOGVISZONY, $ADAT['diakKepzes'][$ADAT['diakId']]);
+ if (_MODOSITHAT===true) putDiakKepUpload($diakAdat['diakId'],$POSTTHESE);
+ putDiakSzuletesiAdatok($diakAdat, $POSTTHESE);
+ putDiakElerhetoseg($diakAdat, $POSTTHESE);
+
+ putDiakSzulo($diakAdat, $Szulok, $POSTTHESE);
+ putDiakCim($diakAdat, 'lakhely', $POSTTHESE);
+ putDiakCim($diakAdat, 'tart', $POSTTHESE);
+ putDiakTanulmanyiAdatok($diakAdat, $POSTTHESE, $OSZTALYOK, $ADAT);
+ putDiakSzocialisAdatok($diakAdat, $POSTTHESE);
+
+ echo '</div>';
+ }
+
+ function _postThese($POSTTHESE) {
+ if (is_array($POSTTHESE)) foreach($POSTTHESE as $k => $v) {
+ echo '<input type="hidden" name="'.$k.'" value="'.$v.'" />'."\n";
+ }
+ }
+
+ function putDiakKepUpload($diakId,$POSTTHESE) {
+ formBegin(array('enctype'=>"multipart/form-data",'class'=>'diak'));
+ echo '<fieldset><legend>'._DIAK_FENYKEPE.'</legend>'."\n";
+ _postThese($POSTTHESE);
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ echo '<input type="hidden" name="action" value="diakKepUpload" />';
+ echo '<input type="file" name="upfile" />';
+ echo '<input type="submit" class="diakSubmit" value="ok" />';
+ echo '</fieldset>';
+ formEnd();
+ }
+
+ function putDiakAlapadatok($diakAdat, $POSTTHESE, $DIAKJOGVISZONY, $KEPZES = '') {
+ global $DIAKADAT_DISABLE;
+ if (!is_array($DIAKADAT_DISABLE)) $DIAKADAT_DISABLE = array();
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+
+ if (_KERELMEZHET===true) echo '<input type="hidden" id="kerelmezhet" name="kerelmezhet" value="1" />';
+ else echo '<input type="hidden" id="kerelmezhet" name="kerelmezhet" value="0" />';
+
+ echo '<input type="hidden" name="action" value="diakAlapadatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_ALAPADATAI.'</legend>'."\n";
+
+ echo '<table class="'.ekezettelen($diakAdat['nem']).'">'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td colspan="5">';
+ echo '<input type="text" size="4" name="viseltNevElotag" value="'.$diakAdat['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="20" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$diakAdat['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="20" name="viseltUtonev" value="'.$diakAdat['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($diakAdat['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ if ($diakAdat['nem'] == 'lány') echo '<span class="icon-female"></span>';
+ elseif ($diakAdat['nem'] == 'fiú') echo '<span class="icon-male"></span>';
+ echo '</td>'."\n";
+
+ echo '</tr><tr>';
+
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$diakAdat['oId'].'" maxlength="11" />';
+ echo '</td>'."\n";
+
+ echo '</tr><tr>';
+ echo '<th>'."\n";
+ echo '<label for="torzslapszam">'._TORZSLAPSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('torzslapszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="torzslapszam" name="torzslapszam" value="'.$diakAdat['torzslapszam'].'" maxlength="32" '.$_ro.'/>';
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+
+ echo '<th>';
+ echo '<label for="statusz"><a href="#osztalyai" tabindex="-1">'._STATUSZ.'</a></label>';
+ echo '</th>'."\n";
+ echo '<td colspan="3">';
+ // echo $diakAdat['jogviszonyStatusz'].' ('.$diakAdat['jogviszonyDt'].')';
+ echo '<ul>';
+ for ($i=0; $i<count($DIAKJOGVISZONY); $i++) {
+ echo '<li>'.$DIAKJOGVISZONY[$i]['dt'].': '.$DIAKJOGVISZONY[$i]['statusz'].'</li>';
+ }
+ echo '</ul>';
+
+ if (is_array($KEPZES) && count($KEPZES)>0) {
+ echo '<ul>';
+ for ($i=0; $i<count($KEPZES); $i++) {
+ echo '<li>'.$KEPZES[$i]['kepzesNev'].': '.$KEPZES[$i]['tolDt'].'</li>';
+ }
+ echo '</ul>';
+ }
+
+ echo '</td>'."\n";
+ echo '<th>'."\n";
+ if ($diakAdat['gondozasiSzam']!='')
+ echo '<label for="gondozasiSzam">'._GONDOZASISZAM.':</label> '."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ if ($diakAdat['gondozasiSzam']!='')
+ echo $diakAdat['gondozasiSzam'];
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$diakAdat['tajSzam'].'" maxlength="9" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('allampolgarsag',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$diakAdat['allampolgarsag'].'" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="adoazonosito">'._ADOAZONOSITO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('adoazonosito',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="adoazonosito" name="adoazonosito" value="'.$diakAdat['adoazonosito'].'" maxlength="10" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('diakigazolvanyszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="diakigazolvanySzam" name="diakigazolvanySzam" value="'.$diakAdat['diakigazolvanySzam'].'" maxlength="11" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="szemelyiIgazolvanySzam">'._SZEMELYIIGAZOLVANYSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('szemelyiigazolvanyszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="15" id="szemelyiIgazolvanySzam" name="szemelyiIgazolvanySzam" value="'.$diakAdat['szemelyiIgazolvanySzam'].'" '.$_ro.'/>';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="tartozkodasiOkiratSzam">'._TARTOZKODASIOKIRATSZAM.':</label> '."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ $_ro = (in_array('tartozkodasiokiratszam',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="16" id="tartozkodasiOkiratSzam" name="tartozkodasiOkiratSzam" value="'.$diakAdat['tartozkodasiOkiratSzam'].'" '.$_ro.'/>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th><label for="NEKAzonosito">'._NEKAZONOSITO.'<label></th>'."\n";
+ echo '<td colspan="5">';
+ $_ro = (in_array('nekazonosito',$DIAKADAT_DISABLE))?'readonly="readonly" tabindex="-1"':'';
+ echo '<input type="text" size="20" maxlength="16" name="NEKAzonosito" id="NEKAzonosito" value="'.$diakAdat['NEKAzonosito'].'" '.$_ro.'/>';
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '<th><label for="megjegyzes">'._MEGJEGYZES.'<label></th>'."\n";
+ echo '<td colspan="3">';
+ echo '<input type="text" name="megjegyzes" id="megjegyzes" value="'.$diakAdat['megjegyzes'].'" />';
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakSzuletesiAdatok($diakAdat, $POSTTHESE) {
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakSzuletesiAdatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_SZULETESI_ADATAI.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="szuleteskoriCsaladinev">'._SZULETESKORINEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="szuleteskoriNevElotag" value="'.$diakAdat['szuleteskoriNevElotag'].'" title="'._SZULETESKORINEVELOTAG.'" />';
+ echo '<input type="text" id="szuleteskoriCsaladinev" name="szuleteskoriCsaladinev" value="'.$diakAdat['szuleteskoriCsaladinev'].'" title="'._SZULETESKORICSALADINEV.'" />';
+ echo '<input type="text" name="szuleteskoriUtonev" value="'.$diakAdat['szuleteskoriUtonev'].'" title="'._SZULETESKORIUTONEV.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="szuletesiHely">'._SZULETESIHELY.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="szuletesiHely" name="szuletesiHely" value="'.$diakAdat['szuletesiHely'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="szuletesiIdo">'._SZULETESIIDO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input class="date" type="text" id="szuletesiIdo" name="szuletesiIdo" value="'.$diakAdat['szuletesiIdo'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakCim($diakAdat, $tipus = 'lakhely', $POSTTHESE) {
+
+ global $ADAT;
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakCimModositas" />'."\n";
+ echo '<input type="hidden" name="tipus" value="'.$tipus.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'.constant('_DIAK_CIM_'.strtoupper($tipus)).'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="'.$tipus.'Orszag">'._ORSZAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Orszag" name="'.$tipus.'Orszag" value="'.$diakAdat[$tipus.'Orszag'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Irsz">'._IRSZ.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Irsz" name="'.$tipus.'Irsz" value="'.$diakAdat[$tipus.'Irsz'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Helyseg">'._HELYSEG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Helyseg" name="'.$tipus.'Helyseg" value="'.$diakAdat[$tipus.'Helyseg'].'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="'.$tipus.'KozteruletNev">'._KOZTERULETNEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'KozteruletNev" name="'.$tipus.'KozteruletNev" value="'.$diakAdat[$tipus.'KozteruletNev'].'" />';
+ echo '<select name="'.$tipus.'KozteruletJelleg">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($diakAdat[$tipus.'KozteruletJelleg'] => ' selected="selected" ');
+ foreach ($ADAT['kozteruletJelleg'] as $jelleg) {
+ echo '<option value="'.$jelleg.'"'.$SEL[$jelleg].'>'.$jelleg.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Hazszam">'._HAZSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Hazszam" name="'.$tipus.'Hazszam" value="'.$diakAdat[$tipus.'Hazszam'].'" title="'._HAZSZAM.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="'.$tipus.'Emelet">'._EMELET.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Emelet" name="'.$tipus.'Emelet" value="'.$diakAdat[$tipus.'Emelet'].'" title="'._EMELET.'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="'.$tipus.'Ajto">'._AJTO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="'.$tipus.'Ajto" name="'.$tipus.'Ajto" value="'.$diakAdat[$tipus.'Ajto'].'" title="'._AJTO.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakElerhetoseg($diakAdat, $POSTTHESE) {
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakElerhetosegModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_ELERHETOSEG.'</legend>'."\n";
+ echo '<table>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="mobil">'._MOBIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone-alt"></span>';
+ echo '<input type="text" id="mobil" name="mobil" value="'.$diakAdat['mobil'].'" />';
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+ echo '<th>';
+ echo '<label for="email">'._EMAIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-envelope"></span>';
+ echo '<input type="text" id="email" name="email" value="'.$diakAdat['email'].'" />';
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+ echo '<th>';
+ echo '<label for="telefon">'._TELEFON.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone"></span>';
+ echo '<input type="text" id="telefon" name="telefon" value="'.$diakAdat['telefon'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakTanulmanyiAdatok($diakAdat, $POSTTHESE, $OSZTALYOK, $ADAT) {
+
+ $tanev = $POSTTHESE['tanev'];
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakTanulmanyiAdatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_TANULMANYI_ADATOK.'</legend>'."\n";
+//var_dump($diakAdat['mindenOsztaly']);
+ echo '<table>'."\n";
+
+ $voltOsztaly = $Osztaly = array();
+// $Be = $Ki = array();
+ for ($i = 0; $i < count($diakAdat['osztaly']); $i++) {
+ $_osztalyId = ($diakAdat['osztaly'][$i]['osztalyId']);
+ $voltOsztalyIds[] = $_osztalyId;
+ $_O = $OSZTALYOK[$_osztalyId];
+ $Osztaly[] = '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=osztaly&osztalyId='.$_osztalyId).'">'.$diakAdat['osztaly'][$i]['osztalyJel'].' ['.$_O['kezdoTanev'].'/'.$_O['vegzoTanev'].'.'.$_O['jel'].' '.$_O['leiras'].' ('.$_O['osztalyfonokNev']
+ .')] '.$diakAdat['osztaly'][$i]['beDt'].' &rarr; '.($diakAdat['osztaly'][$i]['kiDt']=='' ?'-':$diakAdat['osztaly'][$i]['kiDt'] ).' <span class="naploSorszam">'._NAPLOSORSZAM.': '.$diakAdat['osztaly'][$i]['naploSorszam'].'</a></span>';
+// $Be[] = $diakAdat['osztaly'][$i]['beDt'];
+// $Ki[] = $diakAdat['osztaly'][$i]['kiDt'];
+ }
+ for ($i = 0; $i < count($diakAdat['mindenOsztaly']); $i++) {
+ $_osztalyId = $diakAdat['mindenOsztaly'][$i]['osztalyId'];
+ if (is_array($voltOsztalyIds) && !in_array($_osztalyId, $voltOsztalyIds)) {
+ $_O = $OSZTALYOK[$_osztalyId];
+
+ $VoltOsztaly[] = $diakAdat['mindenOsztaly'][$i]['osztalyJel'].' ['.$_O['kezdoTanev'].'/'.$_O['vegzoTanev'].'.'.$_O['jel'].' '.$_O['leiras'].' ('.$_O['osztalyfonokNev']
+ .')] '.$diakAdat['mindenOsztaly'][$i]['beDt'].' &rarr; '.($diakAdat['mindenOsztaly'][$i]['kiDt']=='' ?'-':$diakAdat['mindenOsztaly'][$i]['kiDt'] ).' <span class="naploSorszam">'._NAPLOSORSZAM.': '.$diakAdat['osztaly'][$i]['naploSorszam'].'</span>';
+// $Be[] = $diakAdat['mindenOsztaly'][$i]['beDt'];
+// $Ki[] = $diakAdat['mindenOsztaly'][$i]['kiDt'];
+ }
+ }
+ echo '<tr>'."\n";
+ echo '<th id="osztalyai">';
+ echo _DIAK_OSZTALYA." (".$tanev.")\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<ul>';
+ for ($i=0; $i<count($Osztaly); $i++) {
+ echo '<li>'.$Osztaly[$i].'</a></li>';
+ }
+ for ($i=0; $i<count($VoltOsztaly); $i++) {
+ echo '<li class="volt">'.$VoltOsztaly[$i].'</li>';
+ }
+ echo '</ul>';
+ echo '</td>'."\n";
+
+// echo '<td>';
+// echo implode('<br />', $Be);
+// echo '</td>'."\n";
+// echo '<td>'."\n";
+// echo implode('<br />', $Ki);
+// echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="jogviszonyKezdete">'._JOGVISZONY_KEZDETE.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+// echo '<input type="text" id="jogviszonyKezdete" name="jogviszonyKezdete" value="'.$diakAdat['jogviszonyKezdete'].'" />';
+ echo $diakAdat['jogviszonyKezdete'];
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="jogviszonyVege">'._JOGVISZONY_VEGE.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+// echo '<input type="text" id="jogviszonyVege" name="jogviszonyVege" value="'.$diakAdat['jogviszonyVege'].'" />';
+ echo $diakAdat['jogviszonyVege'];
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="kezdoTanev">'._KEZDO_TANEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoTanev" name="kezdoTanev" value="'.$diakAdat['kezdoTanev'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="kezdoSzemeszter">'._KEZDO_SZEMESZTER.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoSzemeszter" name="kezdoSzemeszter" value="'.$diakAdat['kezdoSzemeszter'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="elozoIskolaOMKod">'._ELOZOISKOLAOMKOD.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="elozoIskolaOMKod" name="elozoIskolaOMKod" value="'.$diakAdat['elozoIskolaOMKod'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="lakohelyiJellemzo">'._LAKOHELYIJELLEMZO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="lakohelyiJellemzo" id="lakohelyiJellemzo">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($diakAdat['lakohelyiJellemzo'] => ' selected="selected" ');
+ for ($i = 0; $i < count($ADAT['lakohelyiJellemzo']); $i++)
+ echo '<option value="'.$ADAT['lakohelyiJellemzo'][$i].'"'.$SEL[$ADAT['lakohelyiJellemzo'][$i]].'>'.$ADAT['lakohelyiJellemzo'][$i].'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putDiakSzocialisAdatok($diakAdat, $POSTTHESE) {
+
+ global $ADAT;
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak onChangeRequest'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakSzocialisAdatModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<fieldset><legend>'._DIAK_SZOCIALIS_ADATOK.'</legend>'."\n";
+ echo '<table>'."\n";
+
+// Ez mi????
+// $Osztaly = $Be = $Ki = array();
+// for ($i = 0; $i < count($diakAdat['osztaly']); $i++) {
+// $Osztaly[] = $diakAdat['osztaly'][$i]['osztalyJel'];
+// $Be[] = $diakAdat['osztaly'][$i]['beDt'];
+// $Ki[] = $diakAdat['osztaly'][$i]['kiDt'];
+// }
+ echo '<tr>'."\n";
+ echo '<td class="top" colspan="2">'."\n";
+ echo '<fieldset><legend>'._DIAK_TORVENYES_KEPVISELO.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['torvenyesKepviselo']); $i++) {
+ $CHK = (strpos($diakAdat['torvenyesKepviselo'], $ADAT['torvenyesKepviselo'][$i]) !== false)?' checked="checked" ':'';
+ echo '<input type="checkbox" id="torvenyesKepviselo'.$i.'" name="torvenyesKepviselo[]" value="'.$ADAT['torvenyesKepviselo'][$i].'"'.$CHK.' />'."\n";
+ echo '<label for="torvenyesKepviselo'.$i.'">'.$ADAT['torvenyesKepviselo'][$i].'</label><br />'."\n";
+ }
+ echo '</fieldset>'."\n";
+ echo '</td>'."\n";
+ echo '<td rowspan="3" class="top">'."\n";
+ echo '<fieldset><legend>'._DIAK_SZOCIALIS_HELYZET.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['szocialisHelyzet']); $i++) {
+ $CHK = (strpos($diakAdat['szocialisHelyzet'], $ADAT['szocialisHelyzet'][$i]) !== false)?' checked="checked" ':'';
+ echo '<input type="checkbox" id="szocialisHelyzet'.$i.'" name="szocialisHelyzet[]" value="'.$ADAT['szocialisHelyzet'][$i].'"'.$CHK.' />'."\n";
+ echo '<label for="szocialisHelyzet'.$i.'">'.$ADAT['szocialisHelyzet'][$i].'</label><br />'."\n";
+ }
+ echo '</fieldset>'."\n";
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo '</td>'."\n";
+
+ echo '<td class="top" rowspan="3">'."\n";
+ echo '<fieldset><legend>'._DIAK_FOGYATEKOSSAG.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['fogyatekossag']); $i++) {
+ $CHK = (strpos($diakAdat['fogyatekossag'], $ADAT['fogyatekossag'][$i]) !== false)?' checked="checked" ':'';
+ echo '<input type="checkbox" id="fogyatekossag'.$i.'" name="fogyatekossag[]" value="'.$ADAT['fogyatekossag'][$i].'"'.$CHK.' />'."\n";
+ echo '<label for="fogyatekossag'.$i.'">'.$ADAT['fogyatekossag'][$i].'</label><br />'."\n";
+ }
+ echo '</fieldset>'."\n";
+ echo '<a href="'.href('index.php?page=naplo&sub=sni&diakId='.$ADAT['diakId']).'">SNI</a>';
+ echo '</td>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<label for="penzugyiStatusz">'._DIAK_PENZUGYI_STATUSZ.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<select name="penzugyiStatusz" id="penzugyiStatusz">'."\n";
+ $SEL = array($diakAdat['penzugyiStatusz'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['penzugyiStatusz']); $i++)
+ echo '<option value="'.$ADAT['penzugyiStatusz'][$i].'"'.$SEL[$ADAT['penzugyiStatusz'][$i]].'>'.$ADAT['penzugyiStatusz'][$i].'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<label for="gondozasiSzam">'._DIAK_GONDOZASISZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="gondozasiSzam" name="gondozasiSzam" value="'.$diakAdat['gondozasiSzam'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ if (_MODOSITHAT===true) echo '<input type="submit" class="diakSubmit" value="'._OK.'" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+
+ function putDiakSzulo($diakAdat, $Szulok, $POSTTHESE) {
+
+ if (_MODOSITHAT===true)
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diakSzulo'), 'class'=>'diak onChangeRequest 0onSubmitUpdate'));
+ else
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diakSzulo'), 'class'=>'diak onSubmitUpdate'));
+ echo '<fieldset><legend>'._DIAK_SZULO.'</legend>'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ _postThese($POSTTHESE);
+ echo '<input type="submit" name="anya" value="'._ANYA.': '.$Szulok[$diakAdat['anyaId']]['szuloNev'];
+ if (isset($diakAdat['anyaId'])) echo ' ('.$diakAdat['anyaId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+ echo '<input type="submit" name="apa" value="'._APA.': '.$Szulok[$diakAdat['apaId']]['szuloNev'];
+ if (isset($diakAdat['apaId'])) echo ' ('.$diakAdat['apaId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+ echo '<input type="submit" name="gondviselo" value="'._GONDVISELO.': '.$Szulok[$diakAdat['gondviseloId']]['szuloNev'];
+ if (isset($diakAdat['gondviseloId'])) echo ' ('.$diakAdat['gondviseloId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+ echo '<input type="submit" name="nevelo" value="'._NEVELO.': '.$Szulok[$diakAdat['neveloId']]['szuloNev'];
+ if (isset($diakAdat['neveloId'])) echo ' ('.$diakAdat['neveloId'].')';
+ else echo ' - ';
+ echo '" class="onClickUpdate" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+
+ function putUjDiak($ADAT) {
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=intezmeny&f=diak'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="ujDiak" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<fieldset><legend>'._UJ_DIAK.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="felvetelTipus">'._BEKERULES_MODJA.'</label>'."\n";
+ echo '</th>';
+ echo '<td>';
+ echo '<select name="felvetelTipus" id="felvetelTipus">'."\n";
+ foreach ($ADAT['bekerulesModja'] as $tipus) {
+ //foreach ($ADAT['zaradek'] as $tipus => $zaradekIndex) {
+ echo '<option value="'.$tipus.'">'.$tipus.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '<th>';
+ echo _OSZTALY;
+ echo '</th>';
+ echo '<td>';
+ if (is_array($ADAT['osztaly'])) {
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztaly']['osztalyId'].'" />'."\n";
+ echo $ADAT['osztaly']['kezdoTanev'].'-'.($ADAT['osztaly']['kezdoTanev']+1).'/'.$ADAT['osztaly']['jel'];
+ if (isset($ADAT['osztaly']['osztalyJel'])) echo ' ('.$ADAT['osztaly']['osztalyJel'].')';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev" class="kotelezo">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="2" name="viseltNevElotag" value="'.$diakAdat['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="12" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$diakAdat['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="20" name="viseltUtonev" value="'.$diakAdat['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="nem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($diakAdat['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$diakAdat['allampolgarsag'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$diakAdat['tajSzam'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$diakAdat['oId'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="diakigazolvanySzam" name="diakigazolvanySzam" value="'.$diakAdat['diakigazolvanySzam'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="jogviszonyKezdete" class="kotelezo">'._JOGVISZONY_KEZDETE.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input class="date" type="text" id="jogviszonyKezdete" name="jogviszonyKezdete" value="'.date('Y-m-d').'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="kezdoTanev" class="kotelezo">'._TERVEZETT_KEZDO_TANEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoTanev" name="kezdoTanev" value="'.$diakAdat['kezdoTanev'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="kezdoSzemeszter" class="kotelezo">'._KEZDO_SZEMESZTER.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="kezdoSzemeszter" name="kezdoSzemeszter" value="'.$diakAdat['kezdoSzemeszter'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th><label for="NEKAzonosito">'._NEKAZONOSITO.'<label></th>'."\n";
+ echo '<td colspan="5">';
+ echo '<input type="text" size="20" maxlength="16" name="NEKAzonosito" id="NEKAzonosito" value="'.$diakAdat['NEKAzonosito'].'" />';
+ echo '</td>';
+ echo '</tr>';
+
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" style="width:100%;" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakJogviszonyValtozas($ADAT) {
+ formBegin(array('method'=>'post', 'class'=>'diak'));
+ echo '<fieldset><legend>'._JOGVISZONY_VALTAS.'</legend>'."\n";
+
+ echo '<h1>'._JOGVISZONY_VALTAS.'</h1>'."\n";
+ echo '<input type="hidden" name="action" value="jogviszonyValtas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['diakJogviszony']); $i++) {
+ echo '<li>'.$ADAT['diakJogviszony'][$i]['dt'].': '.$ADAT['diakJogviszony'][$i]['statusz'].'</li>';
+ }
+ echo '</ul>';
+
+ echo '<label for="jogviszonyValtasSelect">'._UJ_STATUSZ.'</label>';
+ echo '<select name="statusz" id="jogviszonyValtasSelect">'."\n";
+ echo '<option value=""> -- '._UJ_JOGVISZONY_STATUSZ.' -- </option>'."\n";
+ foreach ($ADAT['valthatoStatusz'] as $key => $statusz) {
+ $_SEL = (count($ADAT['valthatoStatusz']) == 1) ? ' selected="selected"':'';
+ echo '<option value="'.$statusz.'" '.$_SEL.'>'.$statusz.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br/>';
+ echo '<label for="jvd">'._JOGVISZONY_VALTAS_DT.'</label>'."\n";
+ echo '<input class="date" id="jvd" type="text" name="jogviszonyValtasDt" value="'.date('Y-m-d').'" />'."\n";
+ echo '<br/>';
+ echo '<label for="iktatoszam">'._IKTATOSZAM.'</label>'."\n";
+ echo '<input type="text" name="iktatoszam" />'."\n";
+ echo '<br/>';
+
+ echo '<div class="rejtett" id="felfuggesztes">';
+ echo '<label for="felfuggesztesOk">'._FELFUGGESZTES_OK.'</label>';
+ echo '<input type="text" name="felfuggesztesOk" id="felfuggesztesOk" value="" />';
+ echo '<br />'."\n";
+ echo '<label for="felfuggesztesIgDt">'._FELFUGGESZTES_IG_DT.'</label>';
+ echo '<input type="text" name="felfuggesztesIgDt" id="felfuggesztesIgDt" value="" class="date" />';
+ echo '</div>'."\n";
+ echo '<div class="rejtett" id="lezaras">';
+ echo '<select name="lezarasZaradekIndex" id="lezarasZaradek">'."\n";
+ echo '<option value=""> -- '._JOGVISZONY_LEZARAS_ZARADEK.' -- </option>';
+ foreach ($ADAT['jogviszonyLezarasZaradek'] as $zaradekIndex => $zAdat)
+ echo '<option value="'.$zaradekIndex.'">'.$zAdat['szoveg'].'</option>'."\n";
+ echo '</select>'."\n";
+ echo '<span id="igazolatlan" class="rejtett">';
+ echo '<label for="lezarasIgazolatlan">'._LEZARAS_IGAZOLATLAN_ORAK_SZAMA.'</label>'."\n";
+ echo '<input type="text" name="lezarasIgazolatlanOrakSzama" id="lezarasIgazolatlan" value="" />';
+ echo '</span>'."\n";
+ echo '<span id="iskola" class="rejtett">';
+ echo '<label for="lezarasIskola">'._LEZARAS_ISKOLA.'</label>'."\n";
+ echo '<input type="text" name="lezarasIskola" id="lezarasIskola" value="" />';
+ echo '</span>'."\n";
+ echo '</div>'."\n";
+
+ echo '<input type="submit" value="'._MODOSITAS.'" title="'._BIZTOS_MODOSITJA.'" class="confirm" />'."\n";
+
+ echo '</fieldset>';
+ formEnd();
+
+
+ /* ----------------------- */
+
+
+ formBegin(array('method'=>'post', 'class'=>'diak hozottHianyzas'));
+ echo '<fieldset><legend>'._HOZOTT_HIANYZASOK.'</legend>'."\n";
+
+ echo '<h1>'._HOZOTT_HIANYZASOK.'</h1>';
+
+ if (is_array($ADAT['hozottHianyzas']) && count($ADAT['hozottHianyzas'])>0) {
+ echo '<ul>';
+ foreach ($ADAT['hozottHianyzas'] as $statusz => $db) {
+ echo '<li>'.$statusz.': '.$db['db'].'</li>';
+ }
+ echo '</ul>';
+ } else {
+ echo '<input type="hidden" name="action" value="diakHozottHianyzas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo _IGAZOLT.'<input type="text" name="hozottHianyzasIgazolt" />';
+ echo '<br/>';
+ echo _IGAZOLATLAN.'<input type="text" name="hozottHianyzasIgazolatlan" />';
+ echo '<input type="submit" />';
+
+ }
+/*
+| diakId | int(10) unsigned | NO | MUL | NULL | |
+| statusz | enum('igazolt','igazolatlan') | YES | | NULL | |
+| dbHianyzas | tinyint(3) unsigned | YES | | NULL | |
+| dt | date | YES | | NULL | |
+*/
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putDiakExportForm($ADAT) {
+ echo "\n\n";
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=export&f=diakExport'), 'class'=>'diak'));
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="submit" value="'._EXPORT.'" class="onClickUpdate2" />'."\n";
+ formEnd();
+
+ }
+
+ function putDiakNyomtatForm($osztalyId,$diakId) {
+ echo "\n\n";
+ formBegin(array('method'=>'post', 'action'=>href('index.php?page=naplo&sub=nyomtatas&f=diakAdatlap'), 'class'=>'diak'));
+ if (isset($diakId)) echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ else echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="submit" value="'._PRINT.'" class="onClickUpdate2" />'."\n";
+ formEnd();
+ }
+
+
+ function putDiaktorol($ADAT) {
+ formBegin(array('method'=>'post', 'class'=>'diak'));
+
+ echo '<fieldset><legend>'._JOGVISZONY_TOROL.'</legend>'."\n";
+ echo '<h1>'._JOGVISZONY_TOROL.'</h1>'."\n";
+ echo '<input type="hidden" name="action" value="diakTorol" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" title="'._BIZTOS_TORLI.'" class="confirm" />'."\n";
+ echo '</fieldset>';
+
+ formEnd();
+ }
+
+ function putSuliXRESTForm($ADAT) {
+ formBegin(array('method'=>'post', 'class'=>'diak rest'));
+ echo '<fieldset><legend>'._FELHASZNALOI_AZONOSITO.'</legend>'."\n";
+
+ echo '<h1>'._FELHASZNALOI_AZONOSITO.'</h1>';
+
+ echo '<input type="hidden" name="action" value="sulixREST" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ echo '<input title="'._BIZTOSAN_LETREHOZ_E.'" class="confirm" id="createAccount" type="submit" name="createAccount" value="'._AZONOSITO_LETREHOZASA.'" />'."\n";
+ echo '<input title="'._BIZTOSAN_TOROL_E.'" class="confirm" id="deleteAccount" type="submit" name="deleteAccount" value="'._AZONOSITO_TORLESE.'" />'."\n";
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml
new file mode 100644
index 00000000..51665213
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakExport.phtml
@@ -0,0 +1,93 @@
+<?php
+
+ function putDiakExportForm($ADAT) {
+
+ global $skin, $exportFormatum;
+
+ if ($skin != 'ajax') formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=diakExport'), 'class'=>'diak'));
+ echo '<input type="hidden" name="action" value="diakExport" />'."\n";
+
+ foreach ($exportFormatum as $formatum => $mezok) {
+ $format = ekezettelen($formatum);
+ echo '<input type="button" name="'.$format.'" value="'.$formatum.'" class="onClickMezoSelect" />'."\n";
+ echo '<input type="hidden" name="'.$format.'Lista" id="'.$format.'Lista" value="'.implode(',', $mezok).'" />'."\n";
+ }
+
+ if (isset($ADAT['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ if (isset($ADAT['dt'])) echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<fieldset><legend>'._EXPORT.'</legend>'."\n";
+ echo '<table>'."\n";
+
+/*
+ echo '<tr>';
+ echo '<th>';
+ echo '<label for="szulovel">'._SZULO_ADATOKKAL.'</label>';
+ echo '<input type="checkbox" id="szulovel" name="tabla[]" value="szulo" />';
+ echo '</th>'."\n";
+ echo '<th>';
+ echo '<label for="osztallyal">'._OSZTALY_ADATOKKAL.'</label>';
+ echo '<input type="checkbox" id="osztallyal" name="tabla[]" value="osztaly" />';
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+*/
+
+ if (strstr($_SERVER["HTTP_USER_AGENT"], 'Linux')) $CHK = array('csv' => ' checked="checked" ');
+ else $CHK = array('xml' => ' checked="checked" ');
+
+ echo '<tr>'."\n";
+ echo '<th>'._FORMATUM.'</th>'."\n";
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="csv" id="csv"'.$CHK['csv'].' />'."\n";
+ echo '<label for="csv">'._CSV.'</label><br />'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="radio" name="formatum" value="xml" id="xml"'.$CHK['xml'].' />'."\n";
+ echo '<label for="xml">'._XML.'</label>'."\n";
+ echo '</td>'."\n";
+// echo '<td>';
+// echo '<input type="radio" name="formatum" value="pdf" id="pdf"'.$CHK['pdf'].' />'."\n";
+// echo '<label for="pdf">'._PDF.'</label>'."\n";
+// echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th>';
+ echo '</tr>';
+
+
+ if (is_array($ADAT['export'])) {
+ echo '<tr>';
+ echo '<td colspan="20">'."\n";
+ putExportMezok($ADAT['mezok']);
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+
+ echo '</table>'."\n";
+ echo '</fieldset>';
+ if ($skin != 'ajax') formEnd();
+ }
+
+ function putExportMezok($Mezok) {
+
+ echo '<table>'."\n";
+
+ echo '<thead>'."\n";
+ foreach ($Mezok as $attr => $attrNev) {
+ echo '<tr>'."\n";
+ echo '<td>';
+ echo '<input type="checkbox" name="mezok[]" id="'.$attr.'" checked="checked" value="'.$attr.'" />'."\n";
+ echo '<label for="'.$attr.'">'.$attrNev.'</label>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ echo '</thead>'."\n";
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml
new file mode 100644
index 00000000..884c6923
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakFelmentes.phtml
@@ -0,0 +1,225 @@
+<?php
+
+ global $ADAT;
+
+
+ function putDiakFelmentesForm($ADAT) {
+
+ echo '<div class="FM FM1">';
+ echo '<h2>1. '._FELMENTES_TARGY_ERTEKELES_ALOL.'</h2>';
+ formBegin();
+
+ echo '<label for="T1targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T1targy');
+
+ echo '<select name="t1altipus" id="t1altipus">';
+ echo '<option value="1">'._EGESZ_EVRE.'</option>';
+ echo '<option value="2">'._RESZBEN.'</option>';
+ echo '</select>'."\n";
+ echo '<label for="T1tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T1tol');
+
+ echo '<div class="rejtett" id="T1b">';
+ echo '<label>'._ZARADEK.'</label>';
+ echo '<input type="text" name="zaradekTxt1" value="" />'._ZARADEK1;
+ echo '<input type="text" name="zaradekTxt2" value="" />'._ZARADEK2;
+
+ echo '</div>'."\n";
+
+ echo '<label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ echo '<input type="hidden" name="action" value="tipus1" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+
+ echo '<div class="FM FM2">';
+ echo '<h2>2. '._FELMENTES_TANKOR_ORALATOGATASA_ALOL.'</h2>';
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus2" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ echo '<label for="T2ovi">'._OVIKOTELES.'</label>';
+ echo '<input type="checkbox" id="T2ovi" name="ovi" value="1" /><br/>';
+
+ echo '<label for="T2tankor">'._TANKOR.'</label>';
+ _putDiakTankor($ADAT['diakTankor'], 'T2tankor');
+
+ echo '<label for="T2tol">'._TOL_DT.'</label>';
+ _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true, 'igDt'=>true),'T2tol');
+ echo '<br/><label>'._NAPORAOPT.'</label>';
+ _putHetNapjai();
+ _putOrak();
+
+ echo '<br/><label for="T2forceDel">'._TORLESKENYSZERITES.'</label>';
+ echo '<input type="checkbox" id="T2forceDel" name="forceDel" value="1" />';
+
+ echo '<br/><label for="T2skipZaradek">'._ZARADEKNELKUL.'</label>';
+ echo '<input type="checkbox" id="T2skipZaradek" name="skipZaradek" value="1" />';
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+ echo '<div class="FM FM3">';
+ echo '<h2>3. '._FELMENTES_TARGY_TANULASA_ALOL.'</h2>';
+ echo '<div>'._TIPUS3.'</div>'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus3" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<label for="T3targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T3targy'); echo '<br/>';
+ echo '<label for="T3tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T3tol');
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>';
+
+ if (count($ADAT['diakZaradek'])>0) _putZaradek($ADAT['diakZaradek']);
+ if (count($ADAT['tankorDiakFelmentes'])>0) {
+
+ echo '<div class="FM FMTAN">';
+ formBegin();
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor']);
+
+ echo '<input type="hidden" name="action" value="tankorDiakFelmentesTorol" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit('A kijelölt felmentéseket '.$ADAT['dt'].'-i hatállyal (-1nap) lezárjuk (végdátumot erre módosítjuk), ezzel a felmentés megszűnik. A tranzakcióhoz módosító záradék is készül.' );
+
+ formEnd();
+ echo '</div>';
+ }
+
+
+ }
+
+ function putDiakFelmentesAdatok($ADAT) {
+ echo '<div class="FM FMTAN">';
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor'],true);
+ echo '</div>';
+ }
+
+ function _putDiakTargy($DIAKTARGY,$varId) {
+ if (count($DIAKTARGY)>0) {
+ echo '<select id="'.$varId.'" name="targyId">';
+ for($i=0; $i<count($DIAKTARGY); $i++) {
+ echo '<option value="'.$DIAKTARGY[$i]['targyId'].'">'.$DIAKTARGY[$i]['targyNev'].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putDiakTankor($DATA,$varId) {
+ if (count($DATA)>0) {
+ echo '<select id="'.$varId.'" name="tankorId">';
+ for($i=0; $i<count($DATA); $i++) {
+ echo '<option value="'.$DATA[$i]['tankorId'].'">'.$DATA[$i]['tankorNev'].' ('.$DATA[$i]['tankorId'].')</option>';
+ }
+ echo '</select>';
+ }
+ }
+
+ function _putTolIgDt($tolDt,$igDt=null,$ALLOW=array('tolDt','igDt'),$tolId) {
+
+ if ($ALLOW['tolDt']) echo '<input type="text" id="'.$tolId.'" name="tolDt" value="'.$tolDt.'" readonly="readonly" title="a dátum a referenciadátummal együtt mozog" />';
+ if ($ALLOW['igDt']) echo '<input type="text" name="igDt" />';
+
+ }
+
+
+ function _putSubmit($DESC = '') {
+ echo '<div class="submit">';
+ echo '<span>'.$DESC.'</span><br/>';
+ echo '<input type="submit" />';
+ echo '<input type="reset" />';
+ echo '</div>';
+ }
+
+
+ function _putHetNapjai() {
+ global $aHetNapjai;
+ if (count($aHetNapjai)>0) {
+ echo '<select name="nap">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($aHetNapjai); $i++) {
+ echo '<option value="'.($i+1).'">'.$aHetNapjai[$i].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putOrak() {
+ echo '<select name="ora">';
+ echo '<option value=""></option>';
+ for($i=0; $i<20; $i++) {
+ echo '<option value="'.($i).'">'.$i.'</option>';
+ }
+ echo '</select>';
+ }
+
+ function _putZaradek($Z) {
+
+ echo '<div class="FM FMZAR">';
+ echo '<h2>'._ROGZITETT_ZARADEKOK.'</h2>';
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th>Dátum</th><th>Sorszám</th><th>Záradék szövege</th><th>Dokumentumok</th><th>Id</th><th>'._IKTATOSZAM.'</th>'."\n";
+ for ($i=0; $i<count($Z); $i++) {
+ echo '<tr>';
+ echo '<td>'.$Z[$i]['dt'].'</td>';
+ echo '<td>'.$Z[$i]['sorszam'].'</td>';
+ echo '<td>'.$Z[$i]['szoveg'].'</td>';
+ echo '<td>'.$Z[$i]['dokumentum'].'</td>';
+ echo '<td>'.$Z[$i]['zaradekId'].'</td>';
+ echo '<td>'.$Z[$i]['iktatoszam'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ echo '</div>';
+ }
+
+ function _putTankorDiakFelmentes($F,$TANKOR, $readonly=false) {
+
+ global $aHetNapjai;
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th></th><th>Tankör</th><th>Felmentés típus</th><th>'._IKTATOSZAM.'</th><th>Tól</th><th>Ig</th><th colspan="2"></th><th>Id</th>'."\n";
+ for ($i=0; $i<count($F); $i++) {
+ echo '<tr>';
+ echo '<td>';
+ if ($readonly===false) echo '<input type="checkbox" name="DELFM[]" value="'.$F[$i]['tankorDiakFelmentesId'].'" />';
+ echo '</td>';
+ for ($j=0; $j<count($TANKOR); $j++) if ($TANKOR[$j]['tankorId']==$F[$i]['tankorId']) break;
+ echo '<td>'.$TANKOR[$j]['tankorNev'].'</td>';
+ echo '<td>'.$F[$i]['felmentesTipus'].'</td>';
+ echo '<td>'.$F[$i]['iktatoszam'].'</td>';
+ echo '<td>'.$F[$i]['beDt'].'</td>';
+ echo '<td>'.$F[$i]['kiDt'].'</td>';
+ echo '<td>'.(is_numeric($F[$i]['nap']) ? $aHetNapjai[$F[$i]['nap']-1]:'').'</td>';
+ echo '<td>'.$F[$i]['ora'].'</td>';
+ echo '<td>'.$F[$i]['tankorDiakFelmentesId'].'</td>';
+
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml
new file mode 100644
index 00000000..8d282c62
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakStatusz.phtml
@@ -0,0 +1,97 @@
+<?php
+
+ function putDiakJogviszonyForm($ADAT) {
+
+ global $Zaradek;
+
+ echo '<div class="dj">'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="diakAdatModositas" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<label for="jogviszonyKezdete">'._JOGVISZONY_KEZDETE.'</label>';
+ echo '<input type="text" id="jogviszonyKezdete" name="jogviszonyKezdete" value="'.$ADAT['diakAdat']['jogviszonyKezdete'].'" class="date" />';
+ echo '<label for="jogviszonyVege">'._JOGVISZONY_VEGE.'</label>';
+ echo '<input type="text" id="jogviszonyVege" name="jogviszonyVege" value="'.$ADAT['diakAdat']['jogviszonyVege'].'" class="date" />';
+ echo '<p>'._JELENLEGI_STATUSZ.': '.$ADAT['diakAdat']['statusz'].'</p>';
+ echo '<input type="submit" value="'._OK.'" title="'._BIZTOS_MODOSIT.'" class="confirm" />'."\n";
+ formEnd();
+
+ echo '<hr />';
+
+ echo '<p>'._JOGVISZONYVALTOZASOK.'</p>';
+ echo '<ul>'."\n";
+ foreach ($ADAT['diakStatusz'] as $i => $djAdat) {
+ echo '<li>';
+
+ formBegin(array('class'=>'statusz'));
+ echo '<input type="submit" value="'._TOROL.'" title="'._BIZTOS_TOROL.'" class="confirm" />'."\n";
+ echo '<p><span class="dt">'.$djAdat['dt'].': '.$djAdat['statusz'].'</span></p>'."\n";
+ echo '<input type="hidden" name="action" value="diakJogviszonyTorles" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$djAdat['dt'].'" />'."\n";
+ echo '<input type="hidden" name="statusz" value="'.$djAdat['statusz'].'" />'."\n";
+ if (is_array($djAdat['zaradek'])) echo '<input type="hidden" name="zaradekId" value="'.$djAdat['zaradek']['zaradekId'].'" />'."\n";
+ formEnd();
+
+ formbegin(array('class'=>'zaradek'));
+ echo '<input type="hidden" name="action" value="diakZaradek" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$djAdat['dt'].'" />'."\n";
+ echo '<input type="hidden" name="zaradekId" value="'.$djAdat['zaradek']['zaradekId'].'" />'."\n";
+ echo '<h2>'._JELENLEGI_ZARADEK.'</h2><p>';
+ if (is_array($djAdat['zaradek'])) echo $djAdat['zaradek']['szoveg'].' ['.$djAdat['zaradek']['sorszam'].'/'.$djAdat['zaradek']['zaradekId'].']';
+ else echo _NINCS;
+ echo '</p>'."\n";
+ echo '<input type="submit" value="'._MEHET.'" style="display: none;" />'."\n";
+ echo '<h2>'._UJ_MODOSITOTT_ZARADEK.'</h2>'."\n";;
+ echo '<select name="zaradekIndex" class="zaradek" id="s'.$i.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['statusz2zaradek'][ $djAdat['statusz'] ] as $zaradekIndex) {
+ echo '<option value="'.$zaradekIndex.'">'.$Zaradek[$zaradekIndex]['szoveg'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<div></div>';
+ formEnd();
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+
+ echo '<hr />';
+
+ echo '<p>'._KIMARADT_JOGVISZONY_ZARADEKOK.'</p>';
+ echo '<ul>'."\n";
+ foreach ($ADAT['diakZaradekok'] as $dt => $dtAdat) {
+ foreach ($dtAdat as $j => $dzAdat) {
+ if (in_array($dzAdat['zaradekIndex'], $ADAT['jogviszonyZaradekok'])) {
+ echo '<li>';
+ echo $dzAdat['dt'].': ['.$dzAdat['sorszam'].'/'.$dzAdat['zaradekId'].']'.$dzAdat['szoveg'].' ('.$dzAdat['dokumentum'].')';
+ echo '</li>'."\n";
+ }
+ }
+ }
+ echo '</ul>'."\n";
+ echo '</div>'."\n"; // class="dj"
+
+ }
+
+ function putHibasJogviszony($ADAT) {
+
+ if (count($ADAT['hibas']['tobbszoros']) == 0) return;
+ echo '<h2>'._HIBAS_JOGVISZONYU_DIAKOK.'</h2>';
+ echo '<h3>'._TOBBSZOROS_JOGVISZONY.'</h3>'; // egy stártusz egymás követlenül után többször is szerepel
+
+ foreach ($ADAT['hibas']['tobbszoros'] as $i => $diakId) {
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=diakStatusz&diakId='.$diakId).'">';
+ echo $diakId;
+ echo '</a>, ';
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml
new file mode 100644
index 00000000..78bd4f5f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakSzulo.phtml
@@ -0,0 +1,300 @@
+<?php
+
+
+ function putDiakSzulo($diakAdat, $Szulok, $tipus, $ADAT) {
+
+ global $skin;
+ $ktJelleg = $ADAT['kozteruletJelleg'];
+
+ // ajax esetén nem rakja ki a <form> elemet!!
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=diakSzulo'),'class'=>"diak"));
+ if ($skin == 'ajax') {
+ $class = 'onClickUpdate';
+ }
+ echo '<input type="hidden" name="action" value="diakSzuloModositas" />'."\n";
+ echo '<input type="hidden" name="tipus" value="'.$tipus.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakAdat['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="szuloId" value="'.$diakAdat[$tipus.'Id'].'" />'."\n";
+ echo '<fieldset><legend>'._DIAK_SZULO.'</legend>'."\n";
+
+ $SEL = array($tipus => ' kiemelt');
+ echo '<input type="submit" name="semmi" value="" class="" style="display: none;" />';
+ echo '<input type="submit" name="anya" value="'._ANYA.': '.$Szulok[$diakAdat['anyaId']]['szuloNev'].' ('.$diakAdat['anyaId'].')" class="'.$class.$SEL['anya'].'" />';
+ echo '<input type="submit" name="apa" value="'._APA.': '.$Szulok[$diakAdat['apaId']]['szuloNev'].' ('.$diakAdat['apaId'].')" class="'.$class.$SEL['apa'].'" />';
+ echo '<input type="submit" name="gondviselo" value="'._GONDVISELO.': '.$Szulok[$diakAdat['gondviseloId']]['szuloNev'].' ('.$diakAdat['gondviseloId'].')" class="'.$class.$SEL['gondviselo'].'" />';
+ echo '<input type="submit" name="nevelo" value="'._NEVELO.': '.$Szulok[$diakAdat['neveloId']]['szuloNev'].' ('.$diakAdat['neveloId'].')" class="'.$class.$SEL['nevelo'].'" />';
+
+ if ($tipus != '') {
+
+ echo '<table border="0" class="reszletek">'."\n";
+
+ if ($diakAdat[$tipus.'Id'] != '') {
+ $szAdat = $Szulok[$diakAdat[$tipus.'Id']];
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<h1>'._SZULO_ADAT_MODOSITAS.'</h1>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ } else {
+ $szAdat = array();
+ // Új szülő hozzárendelése
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<input type="hidden" name="ajaxOption" class="ajaxOption" value="onChangeRequestStop" />';
+ echo '<h1>'._SZULO_HOZZARENDELESE.'</h1>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td colspan="6" style="text-align: center;">';
+ echo '<select name="ujSzuloId" class="onChangeUpdate">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($Szulok['szuloIds'] as $index => $szuloId) {
+ if (
+ $Szulok[$szuloId]['nem']=='' ||
+ ($tipus=='anya' && $Szulok[$szuloId]['nem']=='lány') ||
+ ($tipus=='apa' && $Szulok[$szuloId]['nem']=='fiú') ||
+ !in_array($tipus,array('anya','apa'))
+ )
+ echo '<option value="'.$szuloId.'">'.$Szulok[$szuloId]['szuloNev'].' ('.$szuloId.')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<hr />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<h1>'._UJ_SZULO.'</h1>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="Csaladinev">'._NEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="1">';
+ echo '<input type="text" size="4" name="nevElotag" value="'.$szAdat['nevElotag'].'" title="'._NEVELOTAG.'" />';
+ echo '<input type="text" id="Csaladinev" name="csaladinev" value="'.$szAdat['csaladinev'].'" title="'._CSALADINEV.'" />';
+ echo '<input type="text" name="utonev" value="'.$szAdat['utonev'].'" title="'._UTONEV.'" />';
+ echo '</td>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="szuloNem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td colspan="1">';
+ if ($szAdat['nem']!='') $_SEL[$szAdat['nem']] = ' selected="selected" ';
+ elseif ($tipus=='anya') $_SEL['lány'] = ' selected="selected" ';
+ elseif ($tipus=='apa') $_SEL['fiú'] = ' selected="selected" ';
+ echo '<select name="nem" id="szuloNem">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$_SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$_SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="foglalkozas">'._FOGLALKOZAS.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" name="foglalkozas" id="foglalkozas" value="'.$szAdat['foglalkozas'].'" title="'._FOGLALKOZAS.'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="szuloSzuleteskoriCsaladinev">'._SZULETESKORINEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="1">';
+ echo '<input type="text" size="4" name="szuleteskoriNevElotag" value="'.$szAdat['szuleteskoriNevElotag'].'" title="'._SZULETESKORINEVELOTAG.'" />';
+ echo '<input type="text" id="szuloSzuleteskoriCsaladinev" name="szuleteskoriCsaladinev" value="'.$szAdat['szuleteskoriCsaladinev'].'" title="'._SZULETESKORICSALADINEV.'" />';
+ echo '<input type="text" name="szuleteskoriUtonev" value="'.$szAdat['szuleteskoriUtonev'].'" title="'._SZULETESKORIUTONEV.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="szuletesiEv">'._SZULETESIEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="szuletesiEv" id="szuletesiEv" value="'.$szAdat['szuletesiEv'].'" title="'._SZULETESIEV.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="munkahely">'._MUNKAHELY.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" name="munkahely" id="munkahely" value="'.$szAdat['munkahely'].'" title="'._MUNKAHELY.'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '<th colspan="1">';
+ echo '<label for="userAccount">';
+ echo _SZULOACCOUNT;
+ echo '</label>'."\n";
+ echo '</th>';
+ echo '<td colspan="1">';
+ if (__NAPLOADMIN) {
+ $inNev=(($szAdat['nevElotag']!='')?$szAdat['nevElotag'].' ':'').$szAdat['csaladinev'].' '.$szAdat['utonev'];
+ if ($szAdat['userAccount']=='') {
+ $inUsername=$szAdat['csaladinev'].'.';
+ $inUsername .= (mb_strpos($szAdat['utonev'],' ')!=0)?mb_substr($szAdat['utonev'], 0, mb_strpos($szAdat['utonev'],' '), 'UTF-8'):$szAdat['utonev'];
+ if ($inUsername == '.') $inUsername = '';
+ } else {
+ $inUsername=$szAdat['userAccount'];
+ }
+ $inJelszo = sprintf('%u', crc32($szAdat['csaladinev']));
+ $inEmail = $szAdat['email'];
+ $inTel = $szAdat['mobil'];
+ // kódold
+ echo '<input type="text" id="userAccount" name="userAccount" value="'.$szAdat['userAccount'].'" />';
+ if ($szAdat['userAccount']=='') echo '<a title="'.$inUsername.'" class="gotoCreateAccount" href="'.href("index.php?page=session&f=createAccount&toPolicy=parent&userCn=$inNev&userPassword=$inJelszo&email=$inEmail&tel=$inTel&userAccount=$inUsername", array('policy','lang','sessionID')).'" target="_blank">@</a> ';
+ echo ' ('.$inJelszo.')';
+ } else
+ echo '<input readonly="readonly" type="text" id="userAccount" name="userAccount" value="'.$szAdat['userAccount'].'" />';
+ echo '</td>';
+ echo '<th colspan="1">';
+ echo '<label for="szStatusz">'._SZULOSTATUSZTIPUSOK.'</label>';
+ echo '</th>';
+ echo '<td colspan="3">';
+ $_SEL[$szAdat['statusz']] = ' selected="selected" ';
+ echo '<select name="statusz" id="szStatusz">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['statuszTipusok']); $i++) {
+ echo '<option value="'.$ADAT['statuszTipusok'][$i].'"'.$_SEL[$ADAT['statuszTipusok'][$i]].'>'.$ADAT['statuszTipusok'][$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td colspan="6">'."\n";
+ echo '<fieldset><legend>'._LAKHELY.'</legend>'."\n";
+
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="orszag">'._ORSZAG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="orszag" name="cimOrszag" value="'.$szAdat['cimOrszag'].'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimIrsz">'._IRSZ.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimIrsz" name="cimIrsz" value="'.$szAdat['cimIrsz'].'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimHelyseg">'._HELYSEG.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimHelyseg" name="cimHelyseg" value="'.$szAdat['cimHelyseg'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="cimKozteruletNev">'._KOZTERULETNEV.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimKozteruletNev" name="cimKozteruletNev" value="'.$szAdat['cimKozteruletNev'].'" />';
+ echo '<select name="cimKozteruletJelleg">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($szAdat['cimKozteruletJelleg'] => ' selected="selected" ');
+ foreach ($ktJelleg as $jelleg) {
+ echo '<option value="'.$jelleg.'"'.$SEL[$jelleg].'>'.$jelleg.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimHazszam">'._HAZSZAM.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimHazszam" name="cimHazszam" value="'.$szAdat['cimHazszam'].'" title="'._HAZSZAM.'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="cimEmelet">'._EMELET.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimEmelet" name="cimEmelet" value="'.$szAdat['cimEmelet'].'" title="'._EMELET.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="cimAjto">'._AJTO.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" id="cimAjto" name="cimAjto" value="'.$szAdat['cimAjto'].'" title="'._AJTO.'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ echo '</filedset>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th>';
+ echo '<label for="szuloMobil">'._MOBIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone-alt"></span>';
+ echo '<input type="text" id="szuloMobil" name="mobil" value="'.$szAdat['mobil'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="szuloEmail">'._EMAIL.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="1">'."\n";
+ echo '<span class="icon-envelope"></span>';
+ echo '<input type="text" id="szuloEmail" name="email" value="'.$szAdat['email'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>';
+ echo '<label for="szuloTelefon">'._TELEFON.'</label>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<span class="icon-phone"></span>';
+ echo '<input type="text" id="szuloTelefon" name="telefon" value="'.$szAdat['telefon'].'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '<td colspan="6" style="text-align: center;">';
+ if ($diakAdat[$tipus.'Id'] == '') {
+ echo '<input type="submit" name="modositas" value="'._FELVESZ.'" class="onClickUpdate" />';
+ echo '<input type="hidden" name="subaction" value="felvesz" />';
+ } else {
+ echo '<input type="submit" name="modositas" value="'._MODOSITAS.'" class="onClickUpdate" />';
+ echo '<input type="hidden" name="subaction" value="modosit" />';
+ }
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ if ($diakAdat[$tipus.'Id'] != '') {
+ // Hozzárendelés törlése
+ echo '<tr>'."\n";
+ echo '<td colspan="6">';
+ echo '<h1>'._SZULO_HOZZARENDELES_TORLESE.'</h1>';
+ echo '</td>'."\n";
+ echo '<tr>'."\n";
+ echo '</tr>'."\n";
+ echo '<td colspan="6" style="text-align: center;">';
+ echo '<input type="submit" name="torles" value="'._SZULO_HOZZARENDELES_TORLESE.'" class="onClickUpdate" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+ } // isset($tipus)
+
+ echo '</fieldset>'."\n";
+
+ if ($skin != 'ajax') {
+ echo '<input type="hidden" name="szuloId" value="'.$szAdat['szuloId'].'" />'."\n";
+ for ($i = 0; $i < count($ADAT['szuloDiakjai']); $i++) {
+ echo '<button type="submit" name="diakId" value="'.$ADAT['szuloDiakjai'][$i]['diakId'].'" >'.$ADAT['szuloDiakjai'][$i]['diakNev'].'</button>';
+ }
+ }
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml
new file mode 100644
index 00000000..bca9028f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankor.phtml
@@ -0,0 +1,84 @@
+<?php
+
+ function putDiakTankorForm($ADAT) {
+
+ formBegin(array('method'=>'post', 'action'=>''));
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ $BENNE[$ADAT['tankorok']['diake'][$i]['tankorId']] = true;
+ }
+
+ echo '<table align="center">'; /* container */
+ echo '<tr><td style="vertical-align: top">';
+ if ($ADAT['diakOsszOraszam']>0) {
+ echo '<table class="tankor">';
+ echo '<thead><tr><th colspan="2">'._TANKOR_ORASZAMOK.'</th></tr></thead>';
+ echo '<tfoot><tr><th>'._OSSZESEN.'</th><th> '.$ADAT['diakOsszOraszam']."</th></tr></tfoot>\n";
+ echo '<tbody>';
+ foreach($ADAT['diakTankorOraszam'] as $tankorTipus => $oraszam) {
+ echo '<tr><td>'.$tankorTipus.'</td><td>'.$oraszam.'</td></tr>';
+ }
+ echo '</tbody></table>';
+ }
+ echo '</td><td style="vertical-align: top">'."\n";
+ echo '<table class="tankor">';
+ echo '<tfoot><tr><td colspan="7">';
+ if (__MODOSITHATO) {
+ echo '<label for="forceDel">'._HIANYZASOK_JEGYEK_TOROLHETOK.'</label>';
+ echo '<input type="checkbox" name="forceDel" id="forceDel" value="1" /><br />';
+ echo '<input type="submit" value="'._OK.'" />';
+ }
+// else echo _LEZART;
+ echo '</tfoot></th></tr>';
+
+/* Osztályonként */
+ for ($j=0; $j<count($ADAT['osztalyok']); $j++) {
+ $_osztalyId = $ADAT['osztalyok'][$j]['osztalyId'];
+ $_osztalyJel = $ADAT['osztalyok'][$j]['osztalyJel'];
+ echo '<tr><th colspan="7">'._OSZTALYTANKOROK.' '.$_osztalyJel.'</th></tr>';
+ for ($i=0; $i<count($ADAT['tankorok']['osztalye'][$_osztalyId]); $i++) {
+ _row($ADAT['tankorok']['osztalye'][$_osztalyId][$i],$BENNE,$i.$j.'1');
+ }
+ }
+/* Diáké */
+ echo '<tr><th colspan="7">'._DIAKTANKOROK.'</th></tr>';
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ _row( $ADAT['tankorok']['diake'][$i] ,$BENNE,$i.$j.'2');
+ }
+ echo '</table>';
+ formEnd();
+ echo '</td></tr></table>'; /* container */
+ }
+
+ function _row($D,$BENNE,$id) {
+
+ $_benne = ($BENNE[$D['tankorId']]) ? true: false;
+ $_class = ($_benne) ? ' class="benne" ':'';
+ $_chk = ($_benne) ? ' checked="checked" ':'';
+ $_dsb = (__MODOSITHATO) ? '': ' disabled="disabled" readonly="readonly" ';
+ echo '<tr'.$_class.'>';
+ if (!$_benne)
+ echo '<td><input type="checkbox" id="C'.$id.'" name="UJtankorId[]" value="'.$D['tankorId'].'" '.$_chk.$_dsb.'/></td><td></td>'."\n";
+ else
+ echo '<td></td><td><input type="checkbox" id="C'.$id.'" name="DELtankorId[]" value="'.$D['tankorId'].'" '.$_dsb.'/></td>'."\n";
+ echo '<td>'.$D['tankorId'].'</td>'."\n";
+ echo '<td><label for="C'.$id.'">'.$D['tankorNev'].'</label></td>'."\n";
+ echo '<td>'; /* tervezett heti oraszam */
+ echo $D['tankorTipus'].' ';
+ if ($D['hetiOraszam']>0) echo number_format($D['hetiOraszam'],1);
+ echo '</td>';
+ echo '<td>';
+ for ($k=0; $k<count($D['tanarok']); $k++) echo $D['tanarok'][$k]['tanarNev'].' ';
+ echo '</td>'."\n";
+ echo '<td>';
+ if ($D['felveheto']==1) echo 'o'; //else echo '&bull;';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml
new file mode 100644
index 00000000..b55f2684
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/diakTankorJelentkezes.phtml
@@ -0,0 +1,167 @@
+<?php
+
+ function putDiakTankorJelentkezesForm($ADAT) {
+ global $TBLOKKOK,$TID2TBLOKK;
+ $TBLOKKOK = $ADAT['tankorBlokkok'];
+
+ // $ARR[tankorId]=tankorBlokk
+ for ($i=0; $i<count($ADAT['tankorok']['valaszthato']); $i++) {
+ for ($j=0; $j<count($ADAT['tankorok']['valaszthato'][$i]['blokkIdk']); $j++) {
+ $_tankorId = $ADAT['tankorok']['valaszthato'][$i]['tankorId'];
+ $_blokkId = $ADAT['tankorok']['valaszthato'][$i]['blokkIdk'][$j];
+ if (!@in_array($_blokkId, $TID2TBLOKK[$_tankorId])) $TID2TBLOKK[$_tankorId][] = $_blokkId;
+ }
+ }
+
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />';
+
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ $_tankorId = $ADAT['tankorok']['diake'][$i]['tankorId'];
+ $BENNE[$_tankorId] = true;
+ for ($j=0; $j<count($TID2TBLOKK[$_tankorId]); $j++) {
+ $TBENNE[$TID2TBLOKK[$_tankorId][$j]] = $_tankorId;
+ }
+ }
+ echo '<table align="center"><tr><td>'; /* konténer */
+ echo '<tr><td style="vertical-align:top">';
+ /* Összesítő, tájékoztató táblázat */
+/*
+ echo '<table class="tankor" align="center">';
+ echo '<thead>';
+ echo '<tr><th colspan="2">'._KEPZES_ORASZAM.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><td colspan="2"></td></tr></tfoot>';
+ if (is_array($ADAT['diakKepzes'])) foreach($ADAT['diakKepzes'] as $diakId => $DO) {
+ for($i=0; $i<count($DO); $i++) {
+ $_kepzesId = $DO[$i]['kepzesId'];
+ $ORASZAMOK = $ADAT['kepzesOraszam'][$_kepzesId];
+ echo '<tbody>';
+ echo '<tr><th colspan="2">'.$DO[$i]['kepzesNev'].'/'.$DO[$i]['tanev'].'</th></tr>';
+ echo '<tr><td class="k">'.
+ _KOTELEZOEN_VALASZTHATO.'</td><td>'.intval($ORASZAMOK['kötelezően választható']['sum']).' '._ORA.'</td>';
+ echo '<tr><td class="k">'.
+ _SZABADON_VALASZTHATO.'</td><td>'.intval($ORASZAMOK['szabadon választható']['sum']).' '._ORA.
+ '</td></tr>';
+ echo '</tbody>';
+ }
+ }
+
+ echo '<tbody>';
+ echo '<tr><th colspan="2">'._VALASZTOTT.'</th></tr>';
+ echo '<tr><td>'.
+ _VALASZTOTT.'</td><td>'.intval(0).' '._ORA.
+ '</td></tr>';
+ echo '</tbody>';
+
+ echo '</table>'."\n";
+*/
+ echo '</td><td style="vertical-align: top">'; /* konténer */
+ echo '<table class="tankor" align="center" >';
+ echo '<thead>';
+ echo '<tr><th colspan="9">'._VALASZTHATO.'</th></tr>';
+ echo '<tr class="small"><th colspan="2">'._JELENTKEZ.'</th><th>'._ID.'</th><th>'._BLOKK.'</th><th>'._ORASZAM.'</th><th>'._TANKOR.'</th><th>'._LETSZAM.'</th><th>'._KERETLETSZAM.'</th><th>'.ucfirst(_TANAR).'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><td colspan="9">';
+ //if (__) echo '<input type="submit" value="'._OK.'" />';
+ //else echo _LEZART;
+ if (__TARGYVALASZTAS===false) echo _NINCSTV;
+ elseif (__MINCONTROL===false) echo _ELOTV;
+ else echo _TV;
+
+ echo '</td></tr>';
+ echo '</tfoot>'."\n";
+
+ if ( (!__DIAK && !__NAPLOADMIN && !__VEZETOSEG) ||
+ (__TARGYVALASZTAS!==true || !isset($ADAT['diakId'])) ) { $GVal = false; $GMutat = false;}
+ else {$GVal = true; $GMutat = true;}
+
+// for ($j=0; $j<count($ADAT['osztalyok']); $j++) {
+// $_osztalyId = $ADAT['osztalyok'][$j]['osztalyId'];
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['tankorok']['valaszthato']); $i++) {
+ $_tankorId = $ADAT['tankorok']['valaszthato'][$i]['tankorId'];
+ $_blokkIdk = $ADAT['tankorok']['valaszthato'][$i]['blokkIdk'];
+ $_valaszthato=$GVal;
+
+ for ($k=0; $k<count($_blokkIdk); $k++) {
+ if ($TBENNE[$_blokkIdk[$k]]!='' && $TBENNE[$_blokkIdk[$k]]!=$_tankorId) $_valaszthato=false;
+ }
+ _row($ADAT['tankorok']['valaszthato'][$i],$BENNE,$i.$j.'1', $_valaszthato, $GMutat, $_oraszam);
+ }
+
+/*
+// Ha meg akarnánk mutatni az összes felvett tankörét:
+
+ echo '<tr><th colspan="9">'._OSSZESFELVETT.'</th></tr>';
+ for ($i=0; $i<count($ADAT['tankorok']['diake']); $i++) {
+ _row( $ADAT['tankorok']['diake'][$i] ,$BENNE,$i.$j.'2',false,false);
+ }
+*/
+ echo '</tbody>';
+// }
+ echo '</table>';
+ echo '</td></tr></table>'; /* konténer */
+ formEnd();
+
+ }
+
+ function _row($D,$BENNE,$id,$MODOSITHATO,$showbutton=true) {
+
+ global $TBLOKKOK,$TID2TBLOKK;
+
+ $_benne = ($BENNE[$D['tankorId']]) ? true: false;
+ $_class = ($_benne) ? 'benne ':'';
+ $_chk = ($_benne) ? ' checked="checked" ':'';
+ $_dsb = ($MODOSITHATO && $D['max']>$D['letszam']) ? '': ' disabled="disabled" readonly="readonly" ';
+ $_dsbLE = ($MODOSITHATO && (__MINCONTROL===false || (__MINCONTROL===true && $D['min']<$D['letszam'])) ) ? '': ' disabled="disabled" readonly="readonly" ';
+
+ if ($D['min']<$D['letszam'] && $D['max']>$D['letszam']) $_letszamClass = 'lok';
+ elseif ($D['min']==$D['letszam']) $_letszamClass = 'lok lokbottom';
+ elseif ($D['max']==$D['letszam']) $_letszamClass = 'lok loktop';
+ elseif ($D['min']>$D['letszam']) $_letszamClass = 'lkeves';
+ elseif ($D['min']<$D['letszam']) $_letszamClass = 'lsok';
+
+ for ($i=0; $i<count($D['blokkIdk']); $i++) {
+ $_class .= " B".$D['blokkIdk'][$i];
+ }
+ echo "\n\n".'<tr class="'.$_class.'">';
+ if (!$_benne) {
+ echo '<td>';
+ if ($showbutton) echo '<input type="submit" class="felvesz" id="C'.$id.'" name="UJtankorId'.$D['tankorId'].'" value="'._FELVESZ.'" '.$_chk.$_dsb.'/>';
+ else echo '&nbsp;'; // for IE
+ echo '</td><td>&nbsp;</td>';
+ } else {
+ echo '<td>&nbsp;</td><td>';
+ if ($showbutton) echo '<input type="submit" class="lead" id="C'.$id.'" name="DELtankorId'.$D['tankorId'].'" value="'._LEAD.'" '.$_dsbLE.'/>';
+ else echo '&nbsp;'; // for IE
+ echo '</td>';
+ }
+ echo '<td>'.( (is_array($D['blokkIdk']))?implode('|',$D['blokkIdk']).'/':'' ).$D['tankorId'].'</td>';
+ echo '<td>';
+ for ($i=0; $i<count($D['blokkIdk']); $i++) {
+ echo $TBLOKKOK['blokkNevek'][$D['blokkIdk'][$i]];
+ if ($i<count($D['blokkIdk'])-1) echo ', ';
+ }
+ if (count($D['blokkIdk'])==0)
+ echo '&nbsp;';
+ echo '</td>';
+ echo '<td class="szam">'.$D['oraszam'].'</label></td>';
+ echo '<td>'.$D['tankorNev'].'</td>';
+ //echo '<td><input type="radio" name="B|'.$D['blokkIdk'][0].'" value="'.$D['tankorId'].'" /></td>';
+ echo '<td class="szam">'.$D['letszam'].'</td>';
+ echo '<td class="'.$_letszamClass.'" style="text-align: center">'.$D['min'].'-'.$D['max'].'</td>';
+ echo '<td>';
+ for ($k=0; $k<count($D['tanarok']); $k++) { echo $D['tanarok'][$k]['tanarNev']; if ($k<count($D['tanarok'])-1) echo ', ';}
+ if (count($D['tanarok'])==0) echo '&nbsp;';
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml
new file mode 100644
index 00000000..b4e5e234
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/felmentes.phtml
@@ -0,0 +1,261 @@
+<?php
+
+ function putFelmentes($ADAT) {
+ echo '<div class="FM FM1">';
+ echo '<h2>'._FELMENTESEK.'</h2>';
+ formBegin();
+ echo '<table cellspacing="1">';
+ for ($i=0; $i<count($ADAT['felmentes']); $i++) {
+ $D = $ADAT['felmentes'][$i];
+ echo '<tr>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=diakFelmentes&diakId='.$D['diakId']).'">';
+ echo $ADAT['diakAdat'][$D['diakId']]['diakNev'];
+ echo ' ('.$ADAT['diakAdat'][$D['diakId']]['diakId'].')';
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+ echo ($D['felmentesTipus']);
+ echo '</td>';
+ echo '<td>';
+ echo ($D['tankorId']);
+ echo '</td>';
+ echo '<td>';
+ echo $D['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $D['kiDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $D['nap'].'/'.$D['ora'];
+ echo '</td>';
+ echo '<td>';
+ echo $D['iktatoszam'];
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ formEnd();
+ }
+
+
+ function putDiakFelmentesForm($ADAT) {
+
+ echo '<div class="FM FM1">';
+ echo '<h2>1. '._FELMENTES_TARGY_ERTEKELES_ALOL.'</h2>';
+ formBegin();
+
+ echo '<label for="T1targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T1targy');
+
+ echo '<select name="t1altipus" id="t1altipus">';
+ echo '<option value="1">'._EGESZ_EVRE.'</option>';
+ echo '<option value="2">'._RESZBEN.'</option>';
+ echo '</select>'."\n";
+ echo '<label for="T1tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T1tol');
+
+ echo '<div class="rejtett" id="T1b">';
+ echo '<label>'._ZARADEK.'</label>';
+ echo '<input type="text" name="zaradekTxt1" value="" />'._ZARADEK1;
+ echo '<input type="text" name="zaradekTxt2" value="" />'._ZARADEK2;
+
+ echo '</div>'."\n";
+
+ echo '<label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ echo '<input type="hidden" name="action" value="tipus1" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+
+ echo '<div class="FM FM2">';
+ echo '<h2>2. '._FELMENTES_TANKOR_ORALATOGATASA_ALOL.'</h2>';
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus2" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ echo '<label for="T2ovi">'._OVIKOTELES.'</label>';
+ echo '<input type="checkbox" id="T2ovi" name="ovi" value="1" /><br/>';
+
+ echo '<label for="T2tankor">'._TANKOR.'</label>';
+ _putDiakTankor($ADAT['diakTankor'], 'T2tankor');
+
+ echo '<label for="T2tol">'._TOL_DT.'</label>';
+ _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true, 'igDt'=>true),'T2tol');
+ echo '<br/><label>'._NAPORAOPT.'</label>';
+ _putHetNapjai();
+ _putOrak();
+
+ echo '<br/><label for="T2forceDel">'._TORLESKENYSZERITES.'</label>';
+ echo '<input type="checkbox" id="T2forceDel" name="forceDel" value="1" />';
+
+ echo '<br/><label for="T2skipZaradek">'._ZARADEKNELKUL.'</label>';
+ echo '<input type="checkbox" id="T2skipZaradek" name="skipZaradek" value="1" />';
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>'."\n";
+
+ echo '<div class="FM FM3">';
+ echo '<h2>3. '._FELMENTES_TARGY_TANULASA_ALOL.'</h2>';
+ echo '<div>'._TIPUS3.'</div>'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="tipus3" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<label for="T3targy">'._TARGY.'</label>'; _putDiakTargy($ADAT['diakTargy'],'T3targy'); echo '<br/>';
+ echo '<label for="T3tol">'._TOL_DT.'</label>'; _putTolIgDt($ADAT['dt'],null,array('tolDt'=>true),'T3tol');
+
+ echo '<br/><label>'._IKTATOSZAM.':</label>';
+ echo '<input type="text" name="iktatoszam" value="" />';
+
+ _putSubmit();
+ formEnd();
+ echo '</div>';
+
+ if (count($ADAT['diakZaradek'])>0) _putZaradek($ADAT['diakZaradek']);
+ if (count($ADAT['tankorDiakFelmentes'])>0) {
+
+ echo '<div class="FM FMTAN">';
+ formBegin();
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor']);
+
+ echo '<input type="hidden" name="action" value="tankorDiakFelmentesTorol" />';
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+
+ _putSubmit('A kijelölt felmentéseket '.$ADAT['dt'].'-i hatállyal (-1nap) lezárjuk (végdátumot erre módosítjuk), ezzel a felmentés megszűnik. A tranzakcióhoz módosító záradék is készül.' );
+
+ formEnd();
+ echo '</div>';
+ }
+
+
+ }
+
+ function putDiakFelmentesAdatok($ADAT) {
+ echo '<div class="FM FMTAN">';
+ echo '<h2>'._ROGZITETT_FELMENTESEK.'</h2>';
+ _putTankorDiakFelmentes($ADAT['tankorDiakFelmentes'],$ADAT['diakTankor'],true);
+ echo '</div>';
+ }
+
+ function _putDiakTargy($DIAKTARGY,$varId) {
+ if (count($DIAKTARGY)>0) {
+ echo '<select id="'.$varId.'" name="targyId">';
+ for($i=0; $i<count($DIAKTARGY); $i++) {
+ echo '<option value="'.$DIAKTARGY[$i]['targyId'].'">'.$DIAKTARGY[$i]['targyNev'].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putDiakTankor($DATA,$varId) {
+ if (count($DATA)>0) {
+ echo '<select id="'.$varId.'" name="tankorId">';
+ for($i=0; $i<count($DATA); $i++) {
+ echo '<option value="'.$DATA[$i]['tankorId'].'">'.$DATA[$i]['tankorNev'].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+
+ function _putTolIgDt($tolDt,$igDt=null,$ALLOW=array('tolDt','igDt'),$tolId) {
+
+ if ($ALLOW['tolDt']) echo '<input type="text" id="'.$tolId.'" name="tolDt" value="'.$tolDt.'" readonly="readonly" title="a dátum a referenciadátummal együtt mozog" />';
+ if ($ALLOW['igDt']) echo '<input type="text" name="igDt" />';
+
+ }
+
+
+ function _putSubmit($DESC = '') {
+ echo '<div class="submit">';
+ echo '<span>'.$DESC.'</span><br/>';
+ echo '<input type="submit" />';
+ echo '<input type="reset" />';
+ echo '</div>';
+ }
+
+
+ function _putHetNapjai() {
+ global $aHetNapjai;
+ if (count($aHetNapjai)>0) {
+ echo '<select name="nap">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($aHetNapjai); $i++) {
+ echo '<option value="'.($i+1).'">'.$aHetNapjai[$i].'</option>';
+ }
+ echo '</select>';
+ }
+ }
+ function _putOrak() {
+ echo '<select name="ora">';
+ echo '<option value=""></option>';
+ for($i=0; $i<20; $i++) {
+ echo '<option value="'.($i).'">'.$i.'</option>';
+ }
+ echo '</select>';
+ }
+
+ function _putZaradek($Z) {
+
+ echo '<div class="FM FMZAR">';
+ echo '<h2>'._ROGZITETT_ZARADEKOK.'</h2>';
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th>Dátum</th><th>Sorszám</th><th>Záradék szövege</th><th>Dokumentumok</th><th>Id</th><th>'._IKTATOSZAM.'</th>'."\n";
+ for ($i=0; $i<count($Z); $i++) {
+ echo '<tr>';
+ echo '<td>'.$Z[$i]['dt'].'</td>';
+ echo '<td>'.$Z[$i]['sorszam'].'</td>';
+ echo '<td>'.$Z[$i]['szoveg'].'</td>';
+ echo '<td>'.$Z[$i]['dokumentum'].'</td>';
+ echo '<td>'.$Z[$i]['zaradekId'].'</td>';
+ echo '<td>'.$Z[$i]['iktatoszam'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ echo '</div>';
+ }
+
+ function _putTankorDiakFelmentes($F,$TANKOR, $readonly=false) {
+
+ global $aHetNapjai;
+
+ echo '<table cellspacing="1">';
+ echo '<tr><th></th><th>Tankör</th><th>Felmentés típus</th><th>'._IKTATOSZAM.'</th><th>Tól</th><th>Ig</th><th colspan="2"></th><th>Id</th>'."\n";
+ for ($i=0; $i<count($F); $i++) {
+ echo '<tr>';
+ echo '<td>';
+ if ($readonly===false) echo '<input type="checkbox" name="DELFM[]" value="'.$F[$i]['tankorDiakFelmentesId'].'" />';
+ echo '</td>';
+ for ($j=0; $j<count($TANKOR); $j++) if ($TANKOR[$j]['tankorId']==$F[$i]['tankorId']) break;
+ echo '<td>'.$TANKOR[$j]['tankorNev'].'</td>';
+ echo '<td>'.$F[$i]['felmentesTipus'].'</td>';
+ echo '<td>'.$F[$i]['iktatoszam'].'</td>';
+ echo '<td>'.$F[$i]['beDt'].'</td>';
+ echo '<td>'.$F[$i]['kiDt'].'</td>';
+ echo '<td>'.(is_numeric($F[$i]['nap']) ? $aHetNapjai[$F[$i]['nap']-1]:'').'</td>';
+ echo '<td>'.$F[$i]['ora'].'</td>';
+ echo '<td>'.$F[$i]['tankorDiakFelmentesId'].'</td>';
+
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml
new file mode 100644
index 00000000..9274c725
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepesitesek.phtml
@@ -0,0 +1,121 @@
+<?php
+
+ function putUjKepesites($ADAT) {
+
+ formBegin(array('class'=>'kepesites'));
+
+ echo '<input type="hidden" name="action" value="ujKepesites" />';
+
+ echo '<h2>Alapadatok</h2>';
+ echo '<label for="kepesitesNev">Képesítés megnevezése:</label>';
+ echo '<input type="text" name="kepesitesNev" id="kepesitesNev" value="" />';
+ echo '<br />';
+
+ echo '<label for="vegzettseg">Végzettség:</label>';
+ echo '<select name="vegzettseg" id="vegzettseg">';
+ foreach ($ADAT['vegzettsegek'] as $idx => $vegzettseg) {
+ echo '<option value="'.$vegzettseg.'">'.$vegzettseg.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="fokozat">Fokozat:</label>';
+ echo '<select name="fokozat">';
+ foreach ($ADAT['fokozatok'] as $idx => $fokozat) {
+ echo '<option value="'.$fokozat.'">'.$fokozat.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="specializacio">Specializáció</label>';
+ echo '<select name="specializacio">';
+ foreach ($ADAT['specializaciok'] as $idx => $specializacio) {
+ echo '<option value="'.$specializacio.'">'.$specializacio.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Módosít" />';
+ echo '<br />';
+
+ formEnd();
+
+ }
+
+ function putKepesitesAdat($ADAT) {
+
+ formBegin(array('class'=>'kepesites','id'=>'kepesitesForm'));
+
+ echo '<input type="hidden" name="action" value="kepesitesModositas" />';
+ echo '<input type="hidden" name="kepesitesId" value="'.$ADAT['kepesitesId'].'" />';
+
+ echo '<h2>Alapadatok</h2>';
+ echo '<label for="kepesitesNev">Képesítés megnevezése:</label>';
+ echo '<input type="text" name="kepesitesNev" id="kepesitesNev" value="'.$ADAT['kepesitesAdat']['kepesitesNev'].'" />';
+ echo '<br />';
+
+ echo '<label>Képesités azonosítója:</label>'.$ADAT['kepesitesAdat']['kepesitesId'];
+ echo '<label for="vegzettseg">Végzettség:</label>';
+ echo '<select name="vegzettseg" id="vegzettseg">';
+ foreach ($ADAT['vegzettsegek'] as $idx => $vegzettseg) {
+ $SEL = ($vegzettseg==$ADAT['kepesitesAdat']['vegzettseg']?' selected="selected" ':'');
+ echo '<option value="'.$vegzettseg.'"'.$SEL.'>'.$vegzettseg.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="fokozat">Fokozat:</label>';
+ echo '<select name="fokozat">';
+ foreach ($ADAT['fokozatok'] as $idx => $fokozat) {
+ $SEL = ($fokozat==$ADAT['kepesitesAdat']['fokozat']?' selected="selected" ':'');
+ echo '<option value="'.$fokozat.'"'.$SEL.'>'.$fokozat.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="specializacio">Specializáció</label>';
+ echo '<select name="specializacio">';
+ foreach ($ADAT['specializaciok'] as $idx => $specializacio) {
+ $SEL = ($specializacio==$ADAT['kepesitesAdat']['specializacio']?' selected="selected" ':'');
+ echo '<option value="'.$specializacio.'"'.$SEL.'>'.$specializacio.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Módosít" />';
+ echo '<br />';
+
+ echo '<h2>Hozzárendelt tárgyak:</h2>';
+ echo '<ul>';
+// foreach ($ADAT['kepesitesAdat']['targyak'] as $idx => $tAdat) {
+ foreach ($ADAT['kepesitesAdat']['targyak'] as $idx => $tAdat) {
+ echo '<li>';
+ echo $tAdat['targyNev'].' ('.$tAdat['targyId'].')';
+ echo ' '.$tAdat['targyJelleg'];
+ echo '<span id="delTargy-'.$tAdat['targyId'].'" data-kepesitesid="'.$ADAT['kepesitesId'].'" data-targyid="'.$tAdat['targyId'].'" class="icon-remove-circle delTargy"></span>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '<select name="targyId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['targyak'] as $idx => $tAdat) {
+ echo '<option value="'.$tAdat['targyId'].'">'.$tAdat['targyNev'].' ('.$tAdat['targyId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Tárgy hozzárendelése" />';
+ echo '<br />';
+
+ echo '<h2>Hozzárendelt tanárok:</h2>';
+ echo '<ul>';
+ foreach ($ADAT['kepesitesAdat']['tanarok'] as $idx => $tAdat) {
+ echo '<li>'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')<span id="delTanar-'.$tAdat['tanarId'].'" data-kepesitesid="'.$ADAT['kepesitesId'].'" data-tanarid="'.$tAdat['tanarId'].'" class="icon-remove-circle delTanar"></span></li>';
+ }
+ echo '</ul>';
+ echo '<select name="tanarId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['tanarok'] as $idx => $tAdat) {
+ echo '<option value="'.$tAdat['tanarId'].'">'.$tAdat['tanarNev'].' ('.$tAdat['tanarId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="Tanár hozzárendelése" />';
+ echo '<br />';
+
+
+//dump($ADAT['kepesitesAdat']);
+ formEnd();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml
new file mode 100644
index 00000000..d3a79358
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzes.phtml
@@ -0,0 +1,143 @@
+<?php
+
+ function ujKepzesForm($ADAT) {
+
+ formBegin(array('class'=>'kepzes'));
+ echo '<input type="hidden" name="action" value="ujKepzes" />'."\n";
+
+ echo '<h1>'._UJ_KEPZES.'</h1>'."\n";
+
+ echo '<label for="kepzesNev">'._KEPZES_NEVE.'</label>'."\n";
+ echo '<input id="kepzesNev" type="text" name="kepzesNev" value="" />'."\n";
+
+ echo '<label for="tolTanev">'._BEVEZETES_EVE.'</label>'."\n";
+ echo '<select id="tolTanev" name="tolTanev">'."\n";
+ $aktTanev = date('Y'); $SEL = array($aktTanev => ' selected="selected" ');
+ for ($tanev = $aktTanev-10; $tanev < $aktTanev+11; $tanev++) {
+ echo '<option value="'.$tanev.'"'.$SEL[$tanev].'>'.$tanev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />';
+ echo '<label for="osztalyJellegId">'._OSZTALY_JELLEG.'</label>'."\n";
+ echo '<select id="osztalyJellegId" name="osztalyJellegId">'."\n";
+ $SEL = array($ADAT['kepzesAdat']['osztalyJellegId'] => ' selected="selected" ');
+ echo '<option>'.$ADAT['osztalyJellegId'].'</option>';
+ foreach($ADAT['osztalyJelleg'] as $_k => $_v) {
+ if ($_v['osztalyJellegEles']==1) echo '<option value="'.$_v['osztalyJellegId'].'"'.$SEL[$_v['osztalyJellegId']].'>'.$_v['osztalyJellegNev'].' {'.$_v['osztalyJellegId'].'}</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<p><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+
+ }
+
+ function kepzesElesForm($ADAT) {
+
+ if (($kepzesEles = $ADAT['kepzesAdat']['kepzesEles'])==1) {
+ $_class="kepzes hibernalt";
+ $_TXT = _KEPZES_HIBERNAL;
+ $_GOMB_TXT = _HIBERNAL;
+ } else {
+ $_class="kepzes eles";
+ $_TXT = _KEPZES_ELESIT;
+ $_GOMB_TXT = _ELESIT;
+ }
+
+ formBegin(array('class'=>$_class));
+ echo '<input type="hidden" name="action" value="kepzesEles" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesAdat']['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="kepzesEles" value="'.$ADAT['kepzesAdat']['kepzesEles'].'" />'."\n";
+ echo '<h1>'.$_TXT.'</h1>'."\n";
+ echo '<p><input type="submit" value="'.$_GOMB_TXT.'" /></p>'."\n";
+ formEnd();
+
+ }
+
+ function putKepzesForm($ADAT) {
+
+ if (($kepzesEles = $ADAT['kepzesAdat']['kepzesEles'])==1) {
+ $_class="kepzes eles";
+ } else {
+ $_class="kepzes hibernalt";
+ }
+
+ formBegin(array('class'=>$_class));
+ echo '<input type="hidden" name="action" value="kepzesModositas" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesAdat']['kepzesId'].'" />'."\n";
+
+ echo '<h1>'._KEPZES_ADATAI.'</h1>'."\n";
+
+ echo '<label for="kepzesNev">'._KEPZES_NEVE.'</label>'."\n";
+ echo '<input id="kepzesNev" type="text" name="kepzesNev" value="'.$ADAT['kepzesAdat']['kepzesNev'].'" />'."\n";
+
+ echo '<label for="tolTanev">'._BEVEZETES_EVE.'</label>'."\n";
+ echo '<select id="tolTanev" name="tolTanev">'."\n";
+ $aktTanev = date('Y'); $SEL = array($ADAT['kepzesAdat']['tanev'] => ' selected="selected" ');
+ for ($tanev = $aktTanev-10; $tanev < $aktTanev+11; $tanev++) {
+ echo '<option value="'.$tanev.'"'.$SEL[$tanev].'>'.$tanev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />';
+
+ echo '<label for="osztalyJellegId">'._OSZTALY_JELLEG.'</label>'."\n";
+ echo '<select id="osztalyJellegId" name="osztalyJellegId">'."\n";
+ $SEL = array($ADAT['kepzesAdat']['osztalyJellegId'] => ' selected="selected" ');
+ echo '<option>'.$ADAT['osztalyJellegId'].'</option>';
+ foreach($ADAT['osztalyJelleg'] as $_k => $_v) {
+ if ($_v['osztalyJellegEles']==1) echo '<option value="'.$_v['osztalyJellegId'].'"'.$SEL[$_v['osztalyJellegId']].'>'.$_v['osztalyJellegNev'].' {'.$_v['osztalyJellegId'].'}</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />';
+
+ echo '<div>';
+ echo '<span class="minih">'._MAR_RESZTVEVO_OSZTALYOK.'</span>';
+ echo '<select class="osztalySel" name="delOsztalyId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['kepzesAdat']['osztalyIds']); $i++) {
+ $OA = $ADAT['osztalyok'][ $ADAT['kepzesAdat']['osztalyIds'][$i] ];
+ echo '<option value="'.$OA['osztalyId'].'">';
+ echo $OA['osztalyJel'].' ';
+ echo $OA['leiras'];
+ echo ' {'.$OA['osztalyJellegId'].'}';
+ echo '</option>';
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div><span class="icon-retweet"></span></div>';
+
+ echo '<div>';
+ echo '<span class="minih">'._OSZTALYOK.'</span>';
+ echo '<select class="osztalySel" name="osztalyId[]" multiple="multiple">'."\n";
+ echo '<optgroup label="társítható osztályok">';
+ foreach ($ADAT['osztalyok'] as $osztalyId => $oAdat) {
+ if (!in_array($osztalyId, $ADAT['kepzesAdat']['osztalyIds'])) {
+ if ($ADAT['kepzesAdat']['osztalyJellegId']==$oAdat['osztalyJellegId']) {
+ echo '<option value="'.$osztalyId.'">';
+ echo $oAdat['osztalyJel'].' '.$oAdat['leiras'].' {'.$oAdat['osztalyJellegId'].'}';
+ echo '</option>'."\n";
+ }
+ }
+ }
+ echo '</optgroup>';
+ echo '<optgroup label="további osztályok">';
+ foreach ($ADAT['osztalyok'] as $osztalyId => $oAdat) {
+ if ($ADAT['kepzesAdat']['osztalyJellegId']!=$oAdat['osztalyJellegId']) {
+ echo '<option disabled="disabled" value="'.$osztalyId.'">';
+ echo $oAdat['osztalyJel'].' '.$oAdat['leiras'].' {'.$oAdat['osztalyJellegId'].'}';
+ echo '</option>'."\n";
+ }
+ }
+ echo '</optgroup>';
+ echo '</select>'."\n";
+ echo '</div>';
+
+
+ echo '<p><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml
new file mode 100644
index 00000000..fb10c6c4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/kepzesOraterv.phtml
@@ -0,0 +1,271 @@
+<?php
+
+ function _format($szam) {
+ return (substr($szam,strpos($szam,'.'),3)=='.00') ? intval($szam):$szam;
+ }
+
+ function putKepzesInfo($ADAT) {
+
+ dump($ADAT['kepzesAdat']);
+
+ echo $ADAT['kepzesAdat']['kepzesNev'];
+ //echo $ADAT['kepzesAdat']['tanev']; // indulo
+ if (count($ADAT['kepzesAdat']['osztalyIds'])>0) {
+
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['kepzesAdat']['osztalyIds']); $i++) {
+ $_osztalyId = $ADAT['kepzesAdat']['osztalyIds'][$i];
+ echo '<li>';
+ echo $ADAT['osztalyok'][$_osztalyId]['osztalyJel'];
+ echo $ADAT['osztalyok'][$_osztalyId]['leiras'];
+ echo $ADAT['osztalyok'][$_osztalyId]['kezdoTanev'].'-';
+ echo $ADAT['osztalyok'][$_osztalyId]['vegzoTanev'];
+ echo $ADAT['osztalyok'][$_osztalyId]['kezdoEvfolyamSorszam'];
+ echo '['.$_osztalyId.']';
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+ }
+
+ function putOratervMasolas($ADAT) {
+
+ formBegin(array('id'=>'oratervMasolas'));
+
+ echo '<h1>Képzés óratervének átvétele</h1>';
+ echo '<input type="hidden" name="action" value="oratervMasolas" />';
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />';
+
+ echo '<select name="masolandoKepzesId">';
+ foreach ($ADAT['hasonloKepzesek'] as $idx => $kAdat) if ($kAdat['kepzesId'] != $ADAT['kepzesId']) {
+
+ echo '<option value="'.$kAdat['kepzesId'].'">'.$kAdat['kepzesNev'].' ('.$kAdat['tanev'].') ['.$kAdat['kepzesId'].']</option>';
+
+ }
+ echo '</select>';
+ echo '<input title="Biztosan átveszi a kiválasztott képzés óratervét?" class="confirm" type="submit" value="óraterv átvétele..." />';
+ formEnd();
+
+ }
+
+ function putKepzesOraterv($ADAT) {
+
+ $kepzesId = $ADAT['kepzesId'];
+
+ $EVFOLYAMJELEK = $ADAT['kepzesAdat']['osztalyEvfolyamJelek'];
+ if (!is_array($EVFOLYAMJELEK)) {
+ return true;
+ }
+
+
+ /* KÉPZÉS ÓRASZÁMOK POST
+ ---------------- ----
+ *kepzesId
+ *evfolyamJel
+ kotelezoOraszam KO_[kepzesId]_[evfolyamJel]
+ maximalisOraszam MO_[kepzesId]_[evfolyamJel]
+ */
+ formBegin(array('name'=>'kepzesOraterv','class'=>'kepzesOraterv'));
+ echo '<input type="hidden" name="kepzesId" value="'.$kepzesId.'" />';
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<table align="center" cellspacing="1">';
+
+ echo '<thead>';
+ //FEJLÉC
+ echo '<tr class="evfolyamJel"><th>'._EVFOLYAMJEL.'</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<th>'.$_evfolyamJel.'.</th>';
+ }
+ echo '<th rowspan="2">';
+ echo '<span id="felevValtas"><span class="felev1" title="váltás a 2. félévre...">1.&nbsp;félév</span><span class="felev2" title="váltás az 1. félévre...">2.&nbsp;félév</span> <span class="icon-refresh"></span></span><br /><br />';
+ echo '<span id="oraszamKovetelmeny"><span class="oraszam" title="váltás a követelményekre...">óraszám</span><span class="kovetelmeny" title="váltás az óraszámokra">követelmény</span> <span class="icon-refresh"></span></span>';
+ echo '</th>';
+ echo '</tr>';
+ // ÉVFOLYAMONKÉNTI ÓRASZÁMOK
+ echo '<tr><th>'._KOTELEZO_ORASZAM.'-'._MAXIMALIS_ORASZAM.'</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<td>';
+ echo '<input type="text" size="3" maxlength="5" name="KO_'.$_evfolyamJel.'" title="'._KOTELEZO_ORASZAM.'" value="'.$ADAT['oraszam'][$_evfolyamJel]['kotelezoOraszam'].'" />'; // KO = kötelező óraszám
+ echo '-<input type="text" size="3" maxlength="5" name="MO_'.$_evfolyamJel.'" title="'._MAXIMALIS_ORASZAM.'" value="'.$ADAT['oraszam'][$_evfolyamJel]['maximalisOraszam'].'" />'; // MO = maximális óraszám
+ echo '</td>';
+ }
+ echo '</tr>';
+
+ echo '</thead>'."\n";
+
+ echo '<tfoot>';
+ //LÁBLEC
+ echo '<tr><th class="evfolyamJel">'._EVFOLYAMJEL.'</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<th>'.$_evfolyamJel.'.</th>';
+ }
+ echo '<th>&nbsp;</th>';
+ echo '</tr>';
+ echo '<tr><td>Még hiányzó / Max választható</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ $min = $ADAT['oraszam'][$_evfolyamJel]['kotelezoOraszam']; //--TODO $i->$evfolyamJel
+ $max = $ADAT['oraszam'][$_evfolyamJel]['maximalisOraszam'];
+ $sum=0;
+ reset($ADAT['oraterv']);
+ if (is_array($ADAT['oraterv'])) foreach($ADAT['oraterv'] as $tipus=>$DT) foreach($DT as $targyId => $D) {
+ $sum+=($D[$_evfolyamJel][1][0]['hetiOraszam']+$D[$_evfolyamJel][2][0]['hetiOraszam']) / 2;
+ }
+ $_class = ($min<=$sum && $sum<=$max) ? 'class="ok"':$_class = ($max-$sum<0) ? 'class="alert"' : '';;
+ echo '<td '.$_class.'>';
+ echo ($min-$sum) . "&laquo;". ($max - $sum);
+ echo '</td>';
+ }
+ echo '<th>&nbsp;</th>';
+ echo '</tr>';
+ // EGY UJ:
+ echo '<tr class="ures">';
+ echo '<th>';
+ _put_targy_select($ADAT['targyak'],$ADAT['kepzesOraterv.tipus'],'UJ_targyTipusId','targyId','targyNev',null);
+ //_put_targy_select($ADAT['targyak'],$ADAT['kepzesOraterv.tipus'],'UJ_targyId','targyId','targyNev',$targyId);
+ echo '</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ echo '<td>';
+ //$i;
+ echo '<div>';
+ echo '<input type="text" size="3" maxlength="4" name="UJ_O_'.$_evfolyamJel.'_1" />';
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'UJ_K_'.$_evfolyamJel.'_1',null);
+ echo '<br/>';
+ echo '<input type="text" size="3" maxlength="4" name="UJ_O_'.$_evfolyamJel.'_2" />';
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'UJ_K_'.$_evfolyamJel.'_2',null);
+ echo '<br/>';
+ echo '</div>';
+ echo '</td>';
+ }
+ echo '<th>';
+ echo '<input type="submit" />';
+ echo '</th>';
+ echo '</tr>';
+ // -- idáig EGY UJ
+ echo '</tfoot>'."\n";
+
+
+ // KÉPZÉS ÓRATERV
+ /* --------------
+ *kepzesOratervId
+ kepzesId
+ targyId
+ evfolyamJel
+ szemeszter
+ hetiOraszam
+ kovetelmeny enum('jegy','négyszintű (szöveges minősítés)','százalékos','aláírás','háromszintű','egyedi felsorolás','szöveges szempontrendszer','nincs') DEFAULT null
+ tipus enum('első nyelv','második nyelv','kötelezően választható','szabadon választható','mintatantervi')
+ */
+ flush();
+ echo '<tbody>';
+
+ $ADAT['targyak'][] = array('targyId'=>''); // a tárgy-típusok esetén nincs targyId - ezt is vegyük ide bele
+ if (is_array($ADAT['oraterv']))
+ foreach($ADAT['oraterv'] as $tipus => $X)
+// foreach($X as $targyId => $DI) {
+ foreach($ADAT['targyak'] as $idx => $tAdat) // a névsor miatt a $ADAT['targyak']-on megyünk végig
+ if (is_array($X[$tAdat['targyId']])) { // megnézzük, hogy az adott targyTipusban szerepel-e
+ $targyId = $tAdat['targyId']; // kiolvassuk a targyId-t (hogy a korábbi kódot ne kelljen átírni)
+// $D = $DI;
+ $D = $X[$targyId]; // beállítjuk $D-t
+
+ // TOMEG:
+ $targyIdEsc = _escape($tipus).'_'.$targyId;
+ $_class = ($tipus!='mintatantervi') ? 'class="nm"' : '';
+ echo '<tr class="rogzitett">';
+ echo '<th '.$_class.'>';
+ echo '<span title="'.$tAdat['targyJelleg'].' '.$tAdat['evkoziKovetelmeny'].' '.$tAdat['zaroKovetelmeny'].'">';
+ echo $tAdat['targyNev'];
+ echo ' ('._unescape($targyIdEsc).')';
+ echo '</span>';
+ echo '</th>';
+ foreach($EVFOLYAMJELEK as $i => $_evfolyamJel) {
+ $up1 = ($D[$_evfolyamJel][1][0]['kovetelmeny']!='');
+ $up2 = ($D[$_evfolyamJel][2][0]['kovetelmeny']!='');
+ $_class = ($D[$_evfolyamJel][1][0]['hetiOraszam']+$D[$_evfolyamJel][2][0]['hetiOraszam'] > 0) ? ' class="nn" ' : '';
+ echo '<td'.$_class.'>';
+ echo '<div class="felev1">';/* első félévi */
+ echo '<input class="oraszam" type="text" size="3" maxlength="4" name="T_'.$targyIdEsc.'_O_'.$_evfolyamJel.'_1" value="'._format($D[$_evfolyamJel][1][0]['hetiOraszam']).'" />';
+ echo '<span class="oraszam">'._format($D[$_evfolyamJel][1][0]['hetiOraszam']).'</span>';
+
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'T_'.$targyIdEsc.'_K_'.$_evfolyamJel.'_1',$D[$_evfolyamJel][1][0]['kovetelmeny']);
+ echo '<span class="kovetelmeny">'.$D[$_evfolyamJel][1][0]['kovetelmeny'].'</span>';
+ echo '</div>';
+
+ echo '<div class="felev2">';/* második félévi */
+ echo '<input type="text" size="3" maxlength="4" name="T_'.$targyIdEsc.'_O_'.$_evfolyamJel.'_2" value="'._format($D[$_evfolyamJel][2][0]['hetiOraszam']).'" />';
+ echo '<span class="oraszam">'._format($D[$_evfolyamJel][2][0]['hetiOraszam']).'</span>';
+
+ _put_simple_select($ADAT['kepzesOraterv.kovetelmeny'],'T_'.$targyIdEsc.'_K_'.$_evfolyamJel.'_2',$D[$_evfolyamJel][2][0]['kovetelmeny']);
+ echo '<span class="kovetelmeny">'.$D[$_evfolyamJel][2][0]['kovetelmeny'].'</span>';
+ echo '<br/>'; // placeholder
+ echo '</div>';
+/*
+ echo '<span>';
+ echo _format($D[$_evfolyamJel][1][0]['hetiOraszam'])." ";
+ echo $D[$_evfolyamJel][1][0]['kovetelmeny'];
+ echo '<br/>';
+ echo _format($D[$_evfolyamJel][2][0]['hetiOraszam']).' ';
+ echo $D[$_evfolyamJel][2][0]['kovetelmeny'];
+ echo '</span>';
+*/
+ echo '</td>';
+ }
+ echo '<th>';
+ echo '<input type="submit" value="'._OK.'" class="felvesz" />';
+ echo '<input type="submit" name="torol_'._escape($tipus).'_'.$targyId.'" value="X" class="torol" />';
+
+ echo '</th>';
+ echo '</tr>'."\n";
+ // -- idáig TOMEG
+ flush();
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ formEnd();
+
+ }
+
+ function _put_simple_select($VALUES,$name,$selected) {
+
+ echo '<select name="'.$name.'">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($VALUES); $i++) {
+ $_SEL = ($selected==$VALUES[$i]) ? 'selected="selected"':'';
+ echo '<option value="'.$VALUES[$i].'" '.$_SEL.'>';
+ echo $VALUES[$i];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+
+ function _put_targy_select($VALUES1,$VALUES2,$name,$keyname,$valuename,$selected) { // immáron speciális, feleslegessé vált a key, value
+
+// global $FOGLALT;
+// if (in_array( $key, $FOGLALT )) echo $key;
+
+ echo '<select id="targySel" name="'.$name.'">';
+ echo '<option value="0">'._VALASSZ.'</option>';
+ echo '<optgroup label="'._TARGYAK.'">';
+ for($i=0; $i<count($VALUES1); $i++) {
+ $key= $VALUES1[$i][$keyname];
+ $value= $VALUES1[$i][$valuename];
+ $_SEL = ($selected==$key) ? 'selected="selected" ':'';
+ echo '<option value="'._escape('mintatantervi').'_'.$key.'" '.$_SEL.' data-kovetelmeny="'.$VALUES1[$i]['zaroKovetelmeny'].'" >';
+ echo $value;
+ if ($VALUES1[$i]['targyJelleg']!='') echo ' ('.$VALUES1[$i]['targyJelleg'].')';
+ echo '</option>';
+ }
+ echo '</optgroup>';
+ echo '<optgroup label="'._EGYEB.'">';
+ for($i=0; $i<count($VALUES2); $i++) {
+ $key=$value=$VALUES2[$i];
+ $_SEL = ($selected==$key) ? 'selected="selected" ':'';
+ echo '<option value="'._escape($key).'_" '.$_SEL.'>';
+ echo $value;
+ echo '</option>';
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml
new file mode 100644
index 00000000..b35f799e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/munkakozosseg.phtml
@@ -0,0 +1,316 @@
+<?php
+
+/*
+* Munkaközösség
+*/
+
+ function putUjMunkakozossegForm($TANAROK) {
+ formBegin(array('id'=>'ujMkForm','class'=>'uj mk'));
+ echo '<div>';
+ echo '<h2>Új munkaközösség felvétele</h2>';
+
+ echo '<input type="hidden" name="action" value="ujMunkakozosseg" />'."\n";
+ echo '<label for="leiras">'. _MUNKAKOZOSSEGNEV . ': </label>';
+ echo '<input type="text" id="leiras" name="leiras" value="" />'."\n";
+
+ echo '<label for="mkVezId">'. _MUNKAKOZOSSEGVEZETO . ': </label>';
+ echo '<select id="mkVezId" name="mkVezId">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($TANAROK); $i++) {
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'">'.$TANAROK[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</div>';
+ formEnd();
+ }
+
+ function putMunkakozossegForm($MKADAT,$TANAROK,$TANAROK_INMK) {
+
+ formBegin(array('id'=>'MkForm', 'class'=>'mk'));
+
+ echo '<h2>Munkaközösség</h2>';
+
+ echo '<input type="hidden" name="action" value="modMunkakozosseg" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$MKADAT['mkId'].'" />'."\n";
+ echo '<label for="leiras">'. _MUNKAKOZOSSEGNEV . ': </label>';
+ echo '<input type="text" id="leiras" name="leiras" value="'.$MKADAT['leiras'].'" />'."\n";
+
+ echo '<label for="mkVezId">'. _MUNKAKOZOSSEGVEZETO . ': </label>';
+ echo '<select id="mkVezId" name="mkVezId">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($TANAROK); $i++) {
+ $_SEL = ($MKADAT['mkVezId']==$TANAROK[$i]['tanarId']) ? ' selected="selected"' : '';
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK[$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br/>';
+
+ echo '<div class="tagok">';
+ echo '<div class="header"><label for="mkTagok">'. _MUNKAKOZOSSEGTAGOK . ': </label></div>';
+ echo '<select id="mkTagok" name="mkTagok[]" multiple="multiple" size="10">';
+ for($i=0; $i<count($TANAROK_INMK); $i++) {
+ echo '<option value="'.$TANAROK_INMK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK_INMK[$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div class="submit"><button type="submit"><span class="icon-arrow-left"></span></button></div>';
+
+ echo '<div class="tagok">';
+ echo '<div class="header"><label for="mkUjTagok">'. _UJTAGOK . ': </label></div>';
+ echo '<select id="mkUjTagok" name="mkUjTagok[]" multiple="multiple" size="10">';
+ for($i=0; $i<count($TANAROK); $i++) {
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK[$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '<div style="text-align:center; width:100%;">';
+ for($i=0; $i<count($TANAROK_INMK); $i++) {
+ //echo '<img value="'.$TANAROK_INMK[$i]['tanarId'].'" '.$_SEL.'>'.$TANAROK_INMK[$i]['tanarNev'].'</option>'."\n";
+ putFace($TANAROK_INMK[$i]['tanarId'],'tanar',32);
+ }
+ echo '</div>';
+
+ formEnd();
+
+ }
+
+
+
+
+
+
+
+
+
+ function putMunkakozossegTorolForm($mkId) {
+
+ formBegin(array('id'=>'mkTorolForm', 'class'=>'mk torol'));
+ echo '<h2>A munkaközösség törlése</h2>';
+
+ echo '<input type="hidden" name="action" value="munkakozossegTorol" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+
+ echo '<label for "mktorolg">'._VEGLEGES_TORLES.': </label>';
+ echo '<input type="submit" id="mktorolg" class="confirm" title="Biztos töröljük a munkaközösséget és tárgyait?" value="'._DELETE.'" />';
+
+ formEnd();
+ }
+
+
+
+
+
+
+ function putUjTargyForm($mkId, $ADAT) {
+ formBegin(array('id'=>"ujTargyForm", 'class'=>"uj mk"));
+
+ echo '<h2>Új tárgy felvétele a munkaközösséghez</h2>';
+
+ echo '<input type="hidden" name="action" value="ujTargy" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<label for="targyleiras">'._TARGYNEV . ': </label>';
+ echo '<input type="text" id="targyleiras" name="targyleiras" value="" />'."\n";
+
+ _putTargyJellegSelect($ADAT); // not selected
+
+ echo '<input type="submit" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyValtoztatForm($ADAT) {
+
+ formBegin(array('id'=>'targyValtoztatForm', 'class'=>'mk'));
+
+ echo '<h2>Tárgy változtatása: <span>'.$ADAT['targyAdat']['targyNev'].'</span></h2>';
+
+ echo '<input type="hidden" name="action" value="targyValtoztat" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['targyAdat']['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyAdat']['targyId'].'" />'."\n";
+ //echo '<label for="targyleiras">'._TARGYNEV . ': </label>';
+ echo '<ul><li>';
+ echo _TARGY_JELLEG.': ';
+ _putTargyJellegSelect($ADAT); // not selected
+ echo '</li><li>';
+ echo _EVKOZI_KOVETELMENY.': ';
+ _putTargyKovetelmenySelect($ADAT,'evkozi');
+ echo '</li><li>';
+ echo _ZARO_KOVETELMENY.': ';
+ _putTargyKovetelmenySelect($ADAT,'zaro');
+ echo '</li><li>';
+ echo _TARGY_ROVID_NEVE.': <input type="text" maxlength="64" size="64" name="targyRovidNev" value="'.$ADAT['targyAdat']['targyRovidNev'].'" />'."\n";
+ echo '</li><li>';
+ echo _KIRTARGY.': ';
+ putKirTargySelect($ADAT['kirTargyak'],$ADAT['targyAdat']['kirTargyId']);
+ echo '</li></ul>';
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ }
+
+ function _putTargyJellegSelect($ADAT) {
+ echo '<select name="targyJelleg">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($ADAT['targyJellegENUM']); $i++) {
+ $_SEL = ($ADAT['targyAdat']['targyJelleg']==$ADAT['targyJellegENUM'][$i]) ? ' selected="selected" ' : '';
+ echo '<option value="'.$ADAT['targyJellegENUM'][$i].'" '.$_SEL.'>'.$ADAT['targyJellegENUM'][$i].'</option>';
+ }
+ echo '</select>';
+ }
+ function _putTargyKovetelmenySelect($ADAT,$melyik) {
+ $kov = $melyik.'Kovetelmeny';
+ echo '<select name="'.$kov.'">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($ADAT['targy.'.$kov]); $i++) {
+ $_SEL = ($ADAT['targyAdat'][$kov]==$ADAT['targy.'.$kov][$i]) ? ' selected="selected" ' : '';
+ echo '<option value="'.$ADAT['targy.'.$kov][$i].'" '.$_SEL.'>'.$ADAT['targy.'.$kov][$i].'</option>';
+ }
+ echo '</select>';
+ }
+
+ function putTargyTorolForm($targyId,$mkId) {
+ formBegin(array('id'=>"targyTorolForm", 'class'=>"mk torol"));
+
+ echo '<h2>A kijelölt tárgy törlése</h2>';
+
+ echo '<input type="hidden" name="action" value="targyTorol" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$targyId.'" />'."\n";
+
+ echo '<label for="targytorolg">'._VEGLEGES_TORLES.': </label>';
+ echo '<input type="submit" id="targytorolg" value="'._DELETE.'" />';
+
+ formEnd();
+ }
+
+
+ function putKirTargySelect($ADAT,$kirTargyId) {
+
+ echo '<select name="kirTargyId" id="kirTargyId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT); $i++) {
+ $_SEL = ($ADAT[$i]['kirTargyId'] == $kirTargyId) ? ' selected="selected" ' : '';
+ echo '<option value="'.$ADAT[$i]['kirTargyId'].'" '.$_SEL.'>'.$ADAT[$i]['kirTargyNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo _KIRTARGY_MEGJ;
+ }
+
+ function putTargyAtnevezes($ADAT) {
+
+ formBegin(array('id'=>'targyAtnevezes','class'=>'mk'));
+
+ echo '<h2>'._TARGY_ATNEVEZES.'</h2>';
+
+ echo '<div class="leiras">'._ATNEVEZES_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyAtnevezes" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="ujTargyNev">'._UJ_TARGY_NEV.'</label>';
+ echo '<input type="text" id="ujTargyNev" name="ujTargyNev" value="" />'."\n";
+
+ echo '<input type="submit" id="targyBeolvaszt" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyMkValtas($ADAT) {
+
+ formBegin(array('id'=>'targyMkValtas','class'=>'mk'));
+
+ echo '<h2>'._TARGY_MK_VALTAS.'</h2>';
+
+ echo '<div class="leiras">'._MK_VALTAS_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyMkValtas" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="befogadoMkId">'._BEFOGADO_MK.'</label>';
+ echo '<select id="befogadoMkId" name="befogadoMkId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['munkakozossegek'] as $mAdat) {
+ if ($ADAT['mkId'] != $mAdat['mkId']) echo '<option value="'.$mAdat['mkId'].'">'.$mAdat['mkNev'].' ('.$mAdat['mkId'].')'.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" id="targyBeolvaszt" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyBeolvasztasForm($ADAT) {
+
+ global $TANKOR_TIPUS;
+
+ formBegin(array('id'=>'targyBeolvasztas','class'=>'mk'));
+
+ echo '<h2>'._TARGY_BEOLVASZTASA.'</h2>';
+
+ echo '<div class="leiras">'._BEOLVASZTAS_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyBeolvasztas" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="befogadoTargyId">'._BEFOGADO_TARGY.'</label>';
+ echo '<select id="befogadoTargyId" name="befogadoTargyId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['targyak'] as $tAdat) {
+ if ($ADAT['targyId'] != $tAdat['targyId']) echo '<option value="'.$tAdat['targyId'].'">'.$tAdat['targyNev'].' ('.$tAdat['targyId'].')'.'</option>';
+ }
+ echo '</select>';
+ echo '<label for="tankorJeloles">'._TANKOR_JELOLES.'</label>';
+ echo '<select id="tankorJeloles" name="tankorJeloles">';
+ echo '<option value=""> - </option>';
+ foreach ($TANKOR_TIPUS as $nev => $jel) {
+ echo '<option value="'.$jel.'">'.$nev.' ('.$jel.')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" id="targyBeolvaszt" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+ function putTargyTargyForm($ADAT) {
+
+ formBegin(array('id'=>'targyTargy','class'=>'mk'));
+
+ echo '<h2>'._TARGY_KAPCSOLATOK.'</h2>';
+
+ echo '<div class="leiras">'._TARGYTARGY_HELP.'</div>';
+
+ echo '<input type="hidden" name="action" value="targyTargy" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+ echo '<label for="alTargyId">'._ALTARGY.'</label>';
+ echo '<select id="alTargyId" name="alTargyId">';
+ echo '<option value=""> - </option>';
+/* for ( $i=0; $i<count($ADAT['targyTargy'][$ADAT['targyId']]); $i++) {
+ $T = $ADAT['targyTargy'][$ADAT['targyId']][$i];
+ $tAdat = $ADAT['targyAdat'][$T['targyId']];
+ //if ($ADAT['targyId'] != $tAdat['targyId'])
+ echo '<option value="'.$T['targyId'].'">'.$tAdat['targyNev'].' ('.$T['targyId'].')'.'</option>';
+ }
+*/
+ if (is_array($ADAT['targyak'])) foreach ($ADAT['targyak'] as $tAdat) {
+ $_plusz = (in_array($tAdat['targyId'],$ADAT['targyTargy']['FOal'][$ADAT['targyId']])) ? '+':'';
+ if ($ADAT['targyId'] != $tAdat['targyId']) echo '<option value="'.$tAdat['targyId'].'">'.$_plusz.$tAdat['targyNev'].' ('.$tAdat['targyId'].')'.'</option>';
+ }
+
+ echo '</select>';
+
+ echo '<input type="submit" id="targyTargy" value="'._OK.'" />';
+
+ formEnd();
+ }
+
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml
new file mode 100644
index 00000000..b61dd550
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/osztaly.phtml
@@ -0,0 +1,424 @@
+<?php
+
+require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+function putUjOsztalyForm($ADAT) {
+
+ $Tanev = $ADAT['tanevek']; $tanev = $ADAT['tanev'];
+
+ formBegin(array('class'=>'osztalyForm uj'));
+
+ echo '<h1>'._UJOSZTALY.'</h1>';
+ echo '<input type="hidden" name="action" value="ujOsztaly" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<div id="divOsztalyJelleg">';
+
+ echo '<label for="osztalyJellegId">'._OSZTALYJELLEG.'</label>';
+ putOsztalyJellegek($ADAT['osztalyJellegek'],$ADAT['osztalyAdat']['osztalyJellegId']);
+
+ echo '</div>';
+
+ echo '<div id="divKezdoTanev" style="display: none;">';
+ echo '<label for="kezdoTanev">'._KEZDOTANEV . ':</label>';
+ echo '<select tabindex="2" id="kezdoTanev" name="kezdoTanev">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Tanev); $i++) {
+ echo '<option value="'.$Tanev[$i].'">'.$Tanev[$i].'/'.($Tanev[$i]+1).'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+
+ echo '<div id="divVegzoTanev" style="display: none;">';
+ echo '<label for="vegzoTanev">'._VEGZOSTANEV . ':</label>';
+ echo '<select tabindex="3" id="vegzoTanev" name="vegzoTanev">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Tanev); $i++) {
+ echo '<option value="'.$Tanev[$i].'">'.$Tanev[$i].'/'.($Tanev[$i]+1).'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+ echo '</div>';
+
+ echo '<div id="divJel" style="display: none;">';
+ echo '<label for="jel">Osztaly jele induláskor</label>';
+ echo '<span id="kezdoEvfolyamJel"></span>.&nbsp;';
+ echo '<input tabindex="4" type="text" id="jel" name="jel" size="2" value="" />'."\n";
+ echo '</div>';
+
+ echo '<div id="divKezdoEvfolyamSorszam">';
+ echo '</div>';
+
+
+ echo '<div id="divLeirasTelephely">';
+ echo '<label for="leiras">'._LEIRAS . ':</label>';
+ echo '<input tabindex="6" type="text" id="leiras" name="leiras" value="" />'."\n";
+
+ echo '<label for="telephely">'._TELEPHELY . ':</label>';
+ echo '<select tabindex="6" id="telephely" name="telephelyId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['telephely']); $i++) {
+ echo '<option value="'.$ADAT['telephely'][$i]['telephelyId'].'">'.$ADAT['telephely'][$i]['telephelyNev'].'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '</div>';
+
+ echo '<br/><input type="submit" value="'._OK.'" />';
+
+ formEnd();
+}
+
+/*
+// Már nem léptetünk osztályt...
+function putOsztalyLeptetes($ADAT) {
+ formBegin(array('class'=>'osztalyForm'));
+ echo '<h1>'._OSZTALY_LEPTETES.'</h1>'."\n";
+ echo '<input type="hidden" name="action" value="nyekOsztalyLeptetes" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyAdat']['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+
+ echo '<label for="osztalyJel">'._OSZTALY_UJ_JELE.'</label>: &nbsp;&nbsp;&nbsp';
+// echo $ADAT['osztalyAdat']['kezdoEvfolyam'].'. <input type="text" name="osztalyJel" id="osztalyJel" size="10" />';
+
+ echo '<label for="vegzoTanev">'._VEGZOSTANEV . ':</label>';
+ echo '<select id="vegzoTanev" name="vegzoTanev">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanevek']); $i++) {
+ echo '<option value="'.$ADAT['tanevek'][$i].'">'.$ADAT['tanevek'][$i].'/'.($ADAT['tanevek'][$i]+1).'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+
+}
+*/
+
+function putOsztalyAdatokForm($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+ echo '<h1>'._OSZTALY_ADATAI.' ('.$ADAT['osztalyAdat']['osztalyId'].')</h1>'."\n";
+ echo '<input type="hidden" name="action" value="osztalyAdatModositas" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyAdat']['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+
+ echo _KEZDOTANEV.'/'._VEGZOSTANEV.': <span class="data">'.$ADAT['osztalyAdat']['kezdoTanev'].'/'.($ADAT['osztalyAdat']['kezdoTanev']+1).' - '.$ADAT['osztalyAdat']['vegzoTanev'].'/'.($ADAT['osztalyAdat']['vegzoTanev']+1).'</span>';
+
+ echo '<ul>';
+ for ($_ev = $ADAT['osztalyAdat']['kezdoTanev']; $_ev<=$ADAT['osztalyAdat']['vegzoTanev']; $_ev++) {
+ echo '<li>'.$_ev."/".($_ev+1).' - '.$ADAT['osztalyJelek'][$_ev].'</li>';
+ }
+ echo '</ul>';
+
+ echo '<label for="kepzesId">'._KEPZES.'</label>'."\n";
+ $KepzesStr = array();
+ for ($i = 0; $i < count($ADAT['kepzesek']); $i++) {
+ if (is_array($ADAT['osztalyAdat']['kepzesIds']) && in_array($ADAT['kepzesek'][$i]['kepzesId'], $ADAT['osztalyAdat']['kepzesIds']))
+ $KepzesStr[] = $ADAT['kepzesek'][$i]['kepzesNev'].' - '.$ADAT['kepzesek'][$i]['tanev'].' ('.$ADAT['kepzesek'][$i]['kepzesId'].')';
+ }
+ if (is_array($KepzesStr) && count($KepzesStr) > 0) echo '<span class="data">'.implode(' / ', $KepzesStr).'</span><br />';
+ else echo '<span class="data">&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;</span><br />';
+
+ echo '<hr />';
+ echo '<label for="leiras">'._LEIRAS.'</label>'."\n";
+ echo '<input type="text" id="leiras" name="leiras" value="'.$ADAT['osztalyAdat']['leiras'].'" />'."\n";
+
+ echo '<br/><label for="telephely">'._TELEPHELY.'</label>'."\n";
+ echo '<select id="telephely" name="telephelyId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($ADAT['osztalyAdat']['telephelyId'] => ' selected="selected" ');
+ for ($i = 0; $i < count($ADAT['telephely']); $i++) {
+ echo '<option value="'.$ADAT['telephely'][$i]['telephelyId'].'"'.$SEL[$ADAT['telephely'][$i]['telephelyId']].'>'.$ADAT['telephely'][$i]['telephelyRovidNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br/><label for="osztalyJellegId">'._OSZTALYJELLEG.'</label> ';
+ putOsztalyJellegek($ADAT['osztalyJellegek'],$ADAT['osztalyAdat']['osztalyJellegId']);
+ echo '<br/><label for="kezdoEvfolyamSorszam">'._KEZDO_EVFOLYAM_SORSZAMA.'</label> ';
+ echo '<select name="kezdoEvfolyamSorszam">';
+ for ($i=1; $i <= count($ADAT['osztalyAdat']['evfolyamJelek'])-$ADAT['osztalyAdat']['vegzoTanev']+$ADAT['osztalyAdat']['kezdoTanev']; $i++) {
+ $SEL = ($i == $ADAT['osztalyAdat']['kezdoEvfolyamSorszam'])?' selected="selected" ':'';
+ echo '<option value="'.$i.'"'.$SEL.'>'.$i.'</option>';
+ }
+ echo '</select>';
+ echo '<hr />';
+
+ echo '<table cellspacing="1" cellpadding="0">'."\n";
+ echo '<tr><th colspan="3">'._OSZTALYFONOKOK.'</th></tr>'."\n";
+ echo '<tr><th>'._TANARNEVE.'</th><th>'._BEDT.'</th><th>'._KIDT.'</th></tr>'."\n";
+
+ if (is_array($ADAT['osztalyAdat']['osztalyfonokok'])) {
+ for ($i = 0; $i < count($ADAT['osztalyAdat']['osztalyfonokok']); $i++) {
+ $O = $ADAT['osztalyAdat']['osztalyfonokok'][$i];
+ echo '<tr>';
+ echo '<td>';
+ // echo $ADAT['osztalyAdat']['osztalyfonokok'][$i]['tanarNev'];
+ echo $O['tanarNev'];
+ if ($ADAT['osztalyAdat']['osztalyfonokok'][$i]['kiDt'] == '') {
+ echo '<input type="hidden" name="ofoTanarId[]" value="'.$O['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="ofoBeDt[]" value="'.$O['beDt'].'" />'."\n";
+ }
+ echo '</td>';
+ echo '<td>'.$ADAT['osztalyAdat']['osztalyfonokok'][$i]['beDt'].'</td>';
+ if ($ADAT['osztalyAdat']['osztalyfonokok'][$i]['kiDt'] == '') {
+ echo '<td><input type="text" class="date" name="ofoKiDt[]" value="" placeholder="dátum" /></td>';
+ } else {
+ echo '<td>'.$ADAT['osztalyAdat']['osztalyfonokok'][$i]['kiDt'].'</td>';
+ }
+ echo '</tr>'."\n";
+ }
+ }
+
+ echo '<tr><td>';
+ echo '<select name="tanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'">'.$ADAT['tanarok'][$i]['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td><td>';
+ echo '<input class="date" type="text" name="beDt" value="" placeholder="dátum" />'."\n";
+ echo '</td><td>';
+# kiDt jobb ha nincs # echo '<input class="date" type="text" name="kiDt" value="" />'."\n";
+ echo '</td></tr>'."\n";
+
+ echo '<tr><th colspan="3"><input type="submit" value="'._OK.'" /></th></tr>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+
+
+
+ formBegin(array('class'=>'osztalyForm'));
+ echo '<input type="hidden" name="action" value="osztalyJelVegzesModositas" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyAdat']['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<h1>'._MODOSITAS.'</h1>';
+
+ echo '<label for="ujOsztalyJel">'._UJOSZTALYJEL.'</label>';
+ echo '<input type="text" id="ujOsztalyJel" name="ujOsztalyJel" value="" /></label>';
+
+ echo '<label for="ujKezdoTanev">'._KEZDOTANEV.'</label>';
+ echo '<select name="ujKezdoTanev" id="ujKezdoTanev">';
+ for ($kezd=$ADAT['osztalyAdat']['kezdoTanev']-12; $kezd<=$ADAT['osztalyAdat']['vegzoTanev']; $kezd++) {
+ $_SEL = ( $kezd == $ADAT['osztalyAdat']['kezdoTanev'] ) ? ' selected="selected" ':'';
+ echo '<option value="'.$kezd.'" '.$_SEL.'>'.$kezd.'/'.($kezd+1).'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="ujVegzoTanev">'._VEGZOSTANEV.'</label>';
+ echo '<select name="ujVegzoTanev" id="ujVegzoTanev">';
+ for ($veg=$ADAT['osztalyAdat']['kezdoTanev']; $veg<=$ADAT['osztalyAdat']['kezdoTanev']+12; $veg++) {
+ $_SEL = ( $veg == $ADAT['osztalyAdat']['vegzoTanev'] ) ? ' selected="selected" ':'';
+ echo '<option value="'.$veg.'" '.$_SEL.'>'.$veg.'/'.($veg+1).'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+
+
+}
+
+function osztalyTorlesForm($osztalyId) {
+
+ global $tanev;
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._OSZTALY_TORLESE.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="osztalyTorles" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" title="'._OSZTALY_TORLES_TITLE.'" class="confirm" />'."\n";
+
+ formEnd();
+}
+
+function putOsztalyNevsor($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._OSZTALYNEVSOR.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="osztalyNevsor" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ if (is_array($ADAT['osztalyAdat']['kepzes'])) for ($j = 0; $j < count($ADAT['osztalyAdat']['kepzes']); $j++) {
+ echo '<input type="hidden" name="kepzesIds[]" value="'.$ADAT['osztalyAdat']['kepzes'][$j]['kepzesId'].'" />'."\n";
+ }
+
+
+ echo '<ol>';
+
+ foreach ($ADAT['osztalyNevsor'] as $diakId => $value) {
+
+ echo '<li>';
+ // Képzés
+ echo '<div class="kepzes">'; $CHK = array();
+ if (is_array($ADAT['diakKepzes'][$diakId]))
+ foreach ($ADAT['diakKepzes'][$diakId] as $index => $kAdat) {
+ $kepzesId = $kAdat['kepzesId'];
+ if (in_date_interval($ADAT['dt'], $kAdat['tolDt'], $kAdat['igDt'])) {
+ $CHK[ $kepzesId ] = ' checked="checked" ';
+ if (!in_array($kepzesId, $ADAT['osztalyAdat']['kepzesIds'])) {
+ echo '<span class="chk mas">';
+ echo '<input type="checkbox" id="k-'.intval($_loop).'" name="diakKepzes[]" value="'."$diakId/$kepzesId".'" checked="checked" />'."\n";
+ echo '<label for="k-'.intval($_loop++).'" class="chk" >'.$kAdat['kepzesNev'].' ('.$kepzesId.')</label>';
+ echo '</span>';
+ }
+ }
+ }
+ if (is_array($ADAT['osztalyAdat']['kepzes'])) {
+ for ($j = 0; $j < count($ADAT['osztalyAdat']['kepzes']); $j++) {
+ $kepzesId = $ADAT['osztalyAdat']['kepzes'][$j]['kepzesId'];
+ $_class = ($CHK[$kepzesId]!='')? 'chk':'';
+ echo '<span class="'.$_class.'">';
+ echo '<input type="checkbox" id="k-'.intval($_loop).'" name="diakKepzes[]" value="'."$diakId/$kepzesId".'"'.$CHK[$kepzesId].' />'."\n";
+ echo '<label for="k-'.intval($_loop++).'" class="'.$_class.'" >'.$ADAT['osztalyAdat']['kepzes'][$j]['kepzesNev'].' ('.$kepzesId.')</label>';
+ echo '</span>';
+ if ($CHK[$kepzesId]!='') $_KEPZESDB[$kepzesId]++;
+ }
+ }
+
+ echo '<div class="hideShowContainer">';
+ echo '<span class="onClickHideShow icon-chevron-down"></span>'; // &dArr;
+ if (is_array($ADAT['diakKepzes'][$diakId])) {
+ echo '<ul class="openable" style="display: none">';
+ echo '<li class="close onClickHideShow">[X] '._BEZAR.'</li>';
+ foreach ($ADAT['diakKepzes'][$diakId] as $index => $kAdat) {
+ echo '<li>';
+ echo $kAdat['kepzesNev'].': ';
+ echo '<span class="datum">';
+ echo $kAdat['tolDt'].' - ';
+ if (is_null($kAdat['igDt'])) echo '????-??-??';
+ else echo $kAdat['igDt'];
+ echo '</span>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ }
+ echo '</div>'."\n";
+
+ echo '</div>'."\n";
+
+ echo '<span class="diakNev" data-diakid="'.$value['diakId'].'">'.$value['diakNev'].'</span>';
+ $tmp = array();
+ if (is_array($value['osztalyDiak'])) foreach ($value['osztalyDiak'] as $dts) $tmp[] = $dts['beDt'].'-'.(($dts['kiDt'] == '' || $dts['kiDt'] == '0000-00-00') ? '?' : $dts['kiDt']);
+ echo '<span class="diakNev datumok">('.implode(', ', $tmp).')</span>';
+
+ echo '</li>'."\n";
+ }
+ echo '</ol>';
+ echo '<div class="datum">'._REFERENCIA_DATUM.': <input class="date" readonly="readonly" type="text" name="dt" value="'.$ADAT['dt'].'" maxlength="10" size="10" /></div>'."\n";
+ echo '<div style="text-align:center"><input type="submit" value="'._OK.'" /></div>'."\n";
+
+ if (count($ADAT['kepzesek'])>0) {
+ echo '<table>';
+ echo '<tr><th>'._KEPZES.'</th><th>'._LETSZAM.'</th></tr>';
+ for ($i = 0; $i < count($ADAT['kepzesek']); $i++) {
+ if (is_array($ADAT['osztalyAdat']['kepzesIds']) && in_array($ADAT['kepzesek'][$i]['kepzesId'], $ADAT['osztalyAdat']['kepzesIds'])) {
+ echo '<tr>';
+ echo '<td>'.$ADAT['kepzesek'][$i]['kepzesNev'].' - '.$ADAT['kepzesek'][$i]['tanev'].' ('.$ADAT['kepzesek'][$i]['kepzesId'].')'.'</td>';
+ echo '<td id="kepzesLetszam_'.$ADAT['kepzesek'][$i]['kepzesId'].'">'.$_KEPZESDB[ $ADAT['kepzesek'][$i]['kepzesId'] ].'</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</table>';
+ }
+
+ formEnd();
+
+ echo '<div style="width: 100%; text-align:center; margin:0px; padding-top:20px;">';
+ echo '<h1>';
+ echo ($ADAT['osztalyAdat']['osztalyJel']);
+ echo '</h1>';
+ echo '<h2>'.($ADAT['osztalyAdat']['leiras']).'</h2>';
+ foreach ($ADAT['osztalyNevsor'] as $diakId => $value) {
+ putFace($diakId,'diak',80);
+ }
+ echo '</div>';
+
+
+}
+
+function putUjTagForm($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._UJ_TAG.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="ujTag" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<select name="diakId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ echo '<option value="'.$ADAT['diakok'][$i]['diakId'].'">'.$ADAT['diakok'][$i]['diakNev'].' ('.$ADAT['diakok'][$i]['diakId'].')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input class="date" type="text" name="beDt" value="'.date('Y-m-d').'" size="10" maxlength="10" />'."\n";
+ echo '<input class="date" type="text" name="kiDt" value="" size="10" maxlength="10" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putTagTorlesForm($ADAT) {
+
+ formBegin(array('class'=>'osztalyForm'));
+
+ echo '<h1>'._TAG_TORLES.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="tagTorles" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['osztalyAdat']['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<select name="diakId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['osztalyNevsor'] as $diakId => $dAdat) {
+ echo '<option value="'.$diakId.'">'.$dAdat['diakNev'].' ('.$diakId.')</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input class="date" type="text" name="tolDt" value="'.date('Y-m-d').'" size="10" maxlength="10" />'."\n";
+ echo '<input class="date" type="text" name="igDt" value="" size="10" maxlength="10" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putOsztalyJellegek($ADAT,$osztalyJellegId) {
+
+ echo '<select tabindex="1" name="osztalyJellegId" id="osztalyJellegId">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT as $_ojId => $oAdat) {
+ $evfolyamJelek = explode(',', $oAdat['evfolyamJelek']);
+ if ($_ojId == $osztalyJellegId) {
+ $_SEL = ' selected="selected" ';
+ } else {
+ $_SEL = '';
+ if ($oAdat['osztalyJellegEles']==0) continue;
+ }
+ //$_eles = ($oAdat['osztalyJellegEles']==1) ? '':'- ';
+
+ echo '<option value="'.$_ojId.'" '.$_SEL.' data-evfolyamjelek=\''.json_encode($evfolyamJelek).'\'>'.$_eles.$oAdat['osztalyJellegNev'].' ['.$_ojId.']</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+}
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml
new file mode 100644
index 00000000..c1c526fb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tanar.phtml
@@ -0,0 +1,411 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/file.phtml');
+
+ function putTanarAdatForm($ADAT) {
+
+// if (
+// $tanarAdat['jogviszonyVege'] != ''
+// && strtotime($tanarAdat['jogviszonyVege']) < time()
+// ) $disabled = ' disabled="disabled" ';
+// else $disabled = '';
+
+ putTanarAlapadatok($ADAT);
+ putTanarSzuletesiAdatok($ADAT);
+ putKepUpload($ADAT['tanarId']);
+// putTanarCim($tanarAdat, 'lakhely');
+// putTanarCim($tanarAdat, 'tart');
+// putTanarElerhetoseg($tanarAdat);
+// putTanarSzulo($tanarAdat, $Szulok);
+ putTanarJogviszonyAdatok($ADAT);
+ putTanarKepesites($ADAT);
+ }
+
+ function putTanarAlapadatok($ADAT) {
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar onChangeRequest"));
+
+ echo '<input type="hidden" name="action" value="tanarAlapadatModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_ALAPADATAI.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="viseltNevElotag" value="'.$ADAT['tanarAdat']['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="12" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$ADAT['tanarAdat']['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="12" name="viseltUtonev" value="'.$ADAT['tanarAdat']['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '</td>'."\n";
+/*
+ echo '<th>';
+ echo '<label for="nem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($ADAT['tanarAdat']['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$ADAT['tanarAdat']['allampolgarsag'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$ADAT['tanarAdat']['tajSzam'].'" />';
+ echo '</td>'."\n";
+*/
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$ADAT['tanarAdat']['oId'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="20" id="NEKAzonosito" name="NEKAzonosito" value="'.$ADAT['tanarAdat']['NEKAzonosito'].'" />';
+ echo '</td>'."\n";
+
+/*
+ echo '<th>'."\n";
+ echo '<label for="diakigazolvanySzam">'._DIAKIGAZOLVANYSZAM.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="diakigazolvanySzam" name="diakigazolvanySzam" value="'.$ADAT['tanarAdat']['diakigazolvanySzam'].'" />';
+ echo '</td>'."\n";
+*/
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th>'."\n";
+ echo '<label for="email">'._TITULUS.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="32" id="titulus" name="titulus" value="'.$ADAT['tanarAdat']['titulus'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="email">'._TITULUSROVID.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="10" id="titulusRovid" name="titulusRovid" value="'.$ADAT['tanarAdat']['titulusRovid'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'."\n";
+ echo '<label for="email">'._EMAIL.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td colspan="4">'."\n";
+ echo '<input type="text" size="64" id="email" name="email" value="'.$ADAT['tanarAdat']['email'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '</table>'."\n";
+
+ echo '<input type="submit" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+ }
+
+ function putTanarSzuletesiAdatok($ADAT) {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar onChangeRequest"));
+
+ echo '<input type="hidden" name="action" value="tanarSzuletesiAdatModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_SZULETESI_ADATAI.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="szuleteskoriCsaladinev">'._SZULETESKORINEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="szuleteskoriNevElotag" value="'.$ADAT['tanarAdat']['szuleteskoriNevElotag'].'" title="'._SZULETESKORINEVELOTAG.'" />';
+ echo '<input type="text" id="szuleteskoriCsaladinev" name="szuleteskoriCsaladinev" value="'.$ADAT['tanarAdat']['szuleteskoriCsaladinev'].'" title="'._SZULETESKORICSALADINEV.'" />';
+ echo '<input type="text" name="szuleteskoriUtonev" value="'.$ADAT['tanarAdat']['szuleteskoriUtonev'].'" title="'._SZULETESKORIUTONEV.'" />';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="szuletesiHely">'._SZULETESIHELY.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="szuletesiHely" name="szuletesiHely" value="'.$ADAT['tanarAdat']['szuletesiHely'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="szuletesiIdo">'._SZULETESIIDO.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input class="date" type="text" id="szuletesiIdo" name="szuletesiIdo" value="'.$ADAT['tanarAdat']['szuletesiIdo'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putTanarJogviszonyAdatok($ADAT) {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar onChangeRequest"));
+
+ echo '<input type="hidden" name="action" value="tanarJogviszonyModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_JOGVISZONYA.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="beDt">'._BEDT.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input class="date" type="text" size="10" id="beDt" name="beDt" value="'.$ADAT['tanarAdat']['beDt'].'" title="'._BEDT.'" />';
+ echo '</td>'."\n";
+ echo '<th>';
+ echo '<label for="kiDt">'._KIDT.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input class="date" type="text" size="10" id="kiDt" name="kiDt" value="'.$ADAT['tanarAdat']['kiDt'].'" title="'._KIDT.'" />';
+ echo ' '; _inlineHelp(_KIDT_HELP);
+ echo '</td>'."\n";
+ echo '</tr><tr>';
+ echo '<th>';
+ echo '<label for="hetiMunkaora">'._HETI_MUNKAORA.'</label>';
+ echo '</th>';
+ echo '<td style="white-space: nowrap;">';
+ echo '<table style="background-color:#eee; display: inline-table;">';
+ echo '<tr><th>55%</th><th>65%</th><th>80%</th><th>100%</th></tr>'."\n";
+ echo '<tr>';
+ echo '<td><input type="text" size="4" id="hetiLekotottMinOraszam" name="hetiLekotottMinOraszam" value="'.$ADAT['tanarAdat']['hetiLekotottMinOraszam'].'" title="'._HETILEKOTOTTMINORASZAM.'" /></td>';
+ echo '<td><input type="text" size="4" id="hetiLekotottMaxOraszam" name="hetiLekotottMaxOraszam" value="'.$ADAT['tanarAdat']['hetiLekotottMaxOraszam'].'" title="'._HETILEKOTOTTMAXORASZAM.'" /></td>';
+ echo '<td><input type="text" size="4" id="hetiKotottMaxOraszam" name="hetiKotottMaxOraszam" value="'.$ADAT['tanarAdat']['hetiKotottMaxOraszam'].'" title="'._HETIKOTOTTMAXORASZAM.'" /></td>';
+ echo '<td><input type="text" size="4" id="hetiMunkaora" name="hetiMunkaora" value="'.$ADAT['tanarAdat']['hetiMunkaora'].'" title="'._HETIMUNKAORA.'" /></td>';
+ echo '</tr>';
+ echo '</table> ';
+ _inlineHelp(_HETI_MUNKAORA_HELP);
+ echo '</td>';
+ echo '<th><label for="hetiMunkaora">'._HETI_KOTELEZOORASZAM.'</label>';
+ echo '</th>';
+ echo '<td>';
+ echo '<input type="text" size="4" id="hetiKotelezoOraszam" name="hetiKotelezoOraszam" value="'.$ADAT['tanarAdat']['hetiKotelezoOraszam'].'" title="'._HETIKOTELEZOORASZAM.'" /> ';
+ echo _ORA.' ';
+ _inlineHelp(_HETI_KOTELEZOORASZAM_HELP);
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<th><label for="statusz">'._STATUSZ.'</label>';
+ echo '</th>';
+ echo '<td>';
+ echo '<select name="statusz" id="statusz">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['statuszok'] as $idx => $statusz) {
+ $SEL = ($ADAT['tanarAdat']['statusz'] == $statusz?' selected="selected" ':'');
+ if ($statusz == 'jogviszonya lezárva' && $SEL=='') echo '<option value="'.$statusz.'" id="jogviszonyaLezarva" disabled="disabled">'.$statusz.'</option>';
+ else echo '<option value="'.$statusz.'"'.$SEL.'>'.$statusz.'</option>';
+ }
+ echo '</select>';
+ echo ' '; _inlineHelp(_STATUSZ_HELP);
+ echo '</td>';
+ echo '<th><label for="besorolas">Besorolás</label></th>';
+ echo '<td>';
+ echo '<select name="besorolas" id="besorolas">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['besorolasok'] as $idx => $besorolas) {
+ $SEL = ($besorolas==$ADAT['tanarAdat']['besorolas']?' selected="selected" ':'');
+ echo '<option value="'.$besorolas.'"'.$SEL.'>'.$besorolas.'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr><th><a href="'.href('index.php?page=naplo&sub=intezmeny&f=tovabbkepzes').'">'._TOVABBKEPZES_FORDULO_DT.'</a></th>';
+ echo '<td>';
+ echo '<input type="text" class="date datum" name="tovabbkepzesForduloDt" value="'.$ADAT['tanarAdat']['tovabbkepzesForduloDt'].'" />';
+ echo ' ';
+ _inlineHelp(_TOVABBKEPZES_FORDULO_DT_HELP);
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putTanarKepesites($ADAT) {
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar"));
+
+ echo '<input type="hidden" name="action" value="tanarKepesitesModositas" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarAdat']['tanarId'].'" />'."\n";
+ echo '<fieldset><legend>'._TANAR_KEPESITESE.'</legend>'."\n";
+ echo '<table id="kepesites">'."\n";
+ echo '<tr><th>végzettség</th><th>fokozat</th><th>specializáció</th><th>képesítés megnevezése</th></tr>';
+ echo '<tbody>';
+ if (is_array($ADAT['tanarAdat']['kepesites']) && count($ADAT['tanarAdat']['kepesites'])>0)
+ foreach ($ADAT['tanarAdat']['kepesites'] as $idx => $kAdat) {
+ echo '<tr>';
+ echo '<td>'.$kAdat['vegzettseg'].'</td>';
+ echo '<td>'.$kAdat['fokozat'].'</td>';
+ echo '<td>'.$kAdat['specializacio'].'</td>';
+ echo '<td>'.$kAdat['kepesitesNev'].' ('.$kAdat['kepesitesId'].')</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ echo '<tr id="hozzarendel"><th colspan="4">';
+ echo '<label for="addKepesites">Képesítés hozzárendelése</label>';
+ echo '<select name="addKepesitesId" id="addKepesites">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['kepesitesek'] as $idx => $kAdat) {
+ echo '<option value="'.$kAdat['kepesitesId'].'">'.$kAdat['kepesitesNev'].' ('.$kAdat['kepesitesId'].') - '.$kAdat['vegzettseg'].' '.$kAdat['fokozat'].'</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</th></tr>';
+
+ echo '<tr id="uj"><td colspan="4" class="slideUj"><span class="icon-plus-sign"></span> Új képesítés <span class="icon-chevron-down"></span></td></tr>';
+
+ echo '<tr id="ujKepesites">';
+ echo '<td>';
+ echo '<select name="vegzettseg">';
+ foreach ($ADAT['vegzettsegek'] as $idx => $vegzettseg)
+ echo '<option value="'.$vegzettseg.'">'.$vegzettseg.'</option>';
+ echo '</select>';
+ echo ' '; _inlineHelp(_VEGZETTSEG_HELP);
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="fokozat">';
+ foreach ($ADAT['fokozatok'] as $idx => $fokozat)
+ echo '<option value="'.$fokozat.'">'.$fokozat.'</option>';
+ echo '</select>';
+ echo ' '; _inlineHelp(_FOKOZAT_HELP);
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="specializacio">';
+ foreach ($ADAT['specializaciok'] as $idx => $specializacio)
+ echo '<option value="'.$specializacio.'">'.$specializacio.'</option>';
+ echo '</select>';
+ echo ' '; _inlineHelp(_SPECIALIZACIO_HELP);
+ echo '</td>';
+ echo '<td id="kepesitesNev">';
+ echo '<input type="text" name="kepesitesNev" value="" />';
+ echo ' '; _inlineHelp(_KEPESITESNEV_HELP);
+ echo '<input type="submit" value="'._OK.'" style="margin-right: -50px;" />';
+ echo '</td>';
+ echo '</tr>';
+
+
+
+ echo '</table>'."\n";
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putUjTanar() {
+ formBegin(array('action'=>href('index.php?page=naplo&sub=intezmeny&f=tanar'), 'class'=>"tanar"));
+
+ echo '<input type="hidden" name="action" value="ujTanar" />'."\n";
+ echo '<fieldset><legend>'._UJ_TANAR.'</legend>'."\n";
+ echo '<table>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ echo '<label for="viseltCsaladinev" class="kotelezo">'._NEV.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<input type="text" size="4" name="viseltNevElotag" value="'.$ADAT['tanarAdat']['viseltNevElotag'].'" title="'._VISELTNEVELOTAG.'" />';
+ echo '<input type="text" size="12" id="viseltCsaladinev" name="viseltCsaladinev" value="'.$ADAT['tanarAdat']['viseltCsaladinev'].'" title="'._VISELTCSALADINEV.'" />';
+ echo '<input type="text" size="12" name="viseltUtonev" value="'.$ADAT['tanarAdat']['viseltUtonev'].'" title="'._VISELTUTONEV.'" />';
+ echo '</td>'."\n";
+
+/*
+ echo '<th>';
+ echo '<label for="nem">'._NEM.'</label>';
+ echo '</th>'."\n";
+ echo '<td>';
+ echo '<select name="nem" id="nem">'."\n";
+ $SEL = array($ADAT['tanarAdat']['nem'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ echo '<option value="fiú"'.$SEL['fiú'].'>'._FIU.'</option>'."\n";
+ echo '<option value="lány"'.$SEL['lány'].'>'._LANY.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="allampolgarsag">'._ALLAMPOLGARSAG.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" id="allampolgarsag" name="allampolgarsag" value="'.$ADAT['tanarAdat']['allampolgarsag'].'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'."\n";
+ echo '<label for="tajSzam">'._TAJSZAM.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="tajSzam" name="tajSzam" value="'.$ADAT['tanarAdat']['tajSzam'].'" />';
+ echo '</td>'."\n";
+*/
+ echo '<th>'."\n";
+ echo '<label for="oId">'._OID.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="oId" name="oId" value="'.$ADAT['tanarAdat']['oId'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="NEKAzonosito">'._NEKAZONOSITO.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="20" id="NEKAzonosito" name="NEKAzonosito" value="'.$ADAT['tanarAdat']['NEKAzonosito'].'" />';
+ echo '</td>'."\n";
+
+ echo '<th>'."\n";
+ echo '<label for="beDt">'._BEDT.'</lable>'."\n";
+ echo '</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" size="15" id="beDt" name="beDt" value="'.date('Y-m-d').'" />';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" />';
+
+ echo '</fieldset>'."\n";
+ formEnd();
+
+ }
+
+ function putKepUpload($tanarId) {
+ formBegin(array('enctype'=>"multipart/form-data",'class'=>'tanar'));
+ echo '<fieldset><legend>'._FENYKEPE.'</legend>'."\n";
+ echo '<div style="float:right; background-color: #eee;">'.
+ putFace($tanarId,'tanar',"100",false);
+ echo '</div>';
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />';
+ echo '<input type="hidden" name="action" value="kepUpload" />';
+ echo '<input type="file" name="upfile" />';
+ echo '<input type="submit" class="tanarSubmit" value="ok" />';
+ echo '</fieldset>';
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml
new file mode 100644
index 00000000..22e807f5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankor.phtml
@@ -0,0 +1,370 @@
+<?php
+
+ function putTankornevForm($ADAT) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKORNEV_MODOSITAS.'</h2>';
+
+ echo '<div style="padding:15px 15px 0px 15px; float:left; font-size: 60px; line-height:60px;"><span class="icon-pencil-alt"></span></div>';
+ echo '<p>'._TANKORNEV_MODOSITAS_HELP.'</p>';
+
+ echo '<input type="hidden" name="action" value="setTankorNev" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<p>';
+ echo '<label for="ujTargy">'._TAGOK_ALAPJAN.': </label>';
+
+ echo '<input type="checkbox" id="setTankorNevTagokAlapjan" name="setTankorNevTagokAlapjan" value="true" checked="checked" />';
+ echo '<input type="submit" name="nevValtoztatas" value="Tankörnév frissítés" />';
+
+ echo '</p>';
+ formEnd();
+
+ }
+
+
+ function putUjTankorForm($MK,$TARGY,$TANAR,$OSZTALY,$SZEMESZTER,$TOPOST,$ADAT) {
+
+ global $TANKOR_TIPUS;
+ /* $TOPOST['tankoradat'] */
+
+ $TT=array();
+ for ($i=0; $i<count($TOPOST['tankortanar']); $i++) {
+ $TT[] = $TOPOST['tankortanar'][$i]['tanarNev'];
+ }
+
+ if (!is_array($TARGY)) return false;
+ $SZEMCHECK = array();
+ for ($i=0; $i<count($TOPOST['szemeszterek']); $i++) {
+ $SZEMCHECK[] = $TOPOST['szemeszterek'][$i]['tanev'].'/'.$TOPOST['szemeszterek'][$i]['szemeszter'];
+ $SZEMORASZAM[$TOPOST['szemeszterek'][$i]['tanev'].'/'.$TOPOST['szemeszterek'][$i]['szemeszter']]=
+ $TOPOST['szemeszterek'][$i]['oraszam'];
+ }
+ $OSZTCHECK=array();
+
+ for ($i=0; $i<count($TOPOST['osztalyok']); $i++) {
+ $OSZTCHECK[] = $TOPOST['osztalyok'][$i]['osztalyId'];
+ }
+
+ if ( isset($TOPOST['tankorId']) && $TOPOST['tankorId']!='')
+ $_formClass = 'meglevo ';
+ else
+ $_formClass = '';
+
+
+ formBegin(array('class'=>$_formClass.'tankor', 'method'=>'post', 'action'=>''));
+ echo '<input type="hidden" name="action" value="ujTankor" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$TOPOST['tankorId'].'" />'."\n";
+ foreach($TOPOST as $_t => $_v)
+ echo '<input type="hidden" name="'.$_t.'" value="'.$_v.'" />'."\n";
+ echo '<h2>'._TANKOR.' ';
+ echo $MK['leiras'].'/'.$TARGY['targyNev'];
+ if ($TARGY['targyJelleg']!='') echo ' ('.$TARGY['targyJelleg'].')';
+ echo ' '.implode(', ',$TT);
+ echo '</h2>'."\n";
+
+
+ echo '<table>';
+ echo '<tr>'."\n";
+ echo '<th>'._ELNEVEZES.'</th>';
+ echo '<td>';
+ echo $ADAT['tanev'];
+ echo '</td>';
+ echo '<td>';
+ /*
+ 12.abcd angol nyelv II-ALAP óra
+ évfolyam(ok), osztály, tárgy, (extra tankorJel), elnevezés (tankorNevCimke)
+ */
+ // találjuk ki az elnevezést!
+ if ($TOPOST['tankorId']!='') {
+ $tankorNev = $TOPOST['tankoradat']['tankorNev'];
+ foreach ($TANKOR_TIPUS as $_k=>$_v) {
+ // ha a név utolsó egyésége megegyezik a jelöléssel...
+ if (substr($tankorNev, -strlen($_v)) == $_v) { $_tipus = $_v; break; }
+ }
+ } elseif ($TOPOST['tankoradat']['tipus']!='') {
+ $_tipus=$TOPOST['tankoradat']['tipus'];
+ }
+ echo '<select name="tipus">';
+ foreach ($TANKOR_TIPUS as $_k=>$_v) {
+ $_SEL = ($_v==$_tipus) ? ' selected="selected"':'';
+ echo '<option value="'.$_v.'"'.$_SEL.'>'.$_k.' - '.$_v.'</option>';
+ }
+ echo '</select>';
+ if (defined('__AKG_TANKORNEV') && __AKG_TANKORNEV === true) {
+ echo '<input type="checkbox" name="tankorNevMegorzes" value="true" />';
+ }
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr>'."\n";
+ echo '</table>';
+
+ echo '<h2>'._ALTALANOS.'</h2>'."\n";
+
+ echo '<table>';
+ echo '<tr>'."\n";
+ echo '<th>'._TIPUS.'</th>';
+ echo '<td>';
+ echo '<label for="tipus">'.'</label>';
+
+ echo '<select name="tankorTipusId">';
+ foreach ($ADAT['tankorTipusok'] as $_k=>$_v) {
+ $_SEL = ($_k==$TOPOST['tankoradat']['tankorTipusId']) ? ' selected="selected"':'';
+ echo '<option value="'.$_k.'"'.$_SEL.'>';
+ echo $_k.": ";
+ echo $_v['rovidNev'].": ";
+ echo $_v['leiras'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '<br/>';
+ echo 'Megváltoztassam a tankörhöz tartozó összes - már rögzített - hiányzás típusát
+ <br/>ebben a tanévben('.$ADAT['tanev'].')?';
+ echo '<input type="checkbox" name="forceTankorTipusValtas" value="1" />';
+ echo '<input type="submit" />';
+
+ echo '</td>';
+if (count($TOPOST['tankorcsoport']['idk'])>1) {
+ echo '<td rowspan="5" class="tankorCsoportok">';
+ echo '<div class="header">'._TANKORCSOPORTOK.'</div>';
+ echo '<ul>';
+ for ($i=0; $i<count($TOPOST['tankorcsoport']['idk']); $i++){
+ $_TA = $TOPOST['tankorcsoport']['adat'][$TOPOST['tankorcsoport']['idk'][$i]][0];
+ if ($_TA['tankorId']!=$ADAT['tankorId'])
+ echo '<li><a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankor&tankorId='.$_TA['tankorId']).'">'.($_TA['tankorNev']).'</a></li>';
+ else
+ echo '<li>'.$_TA['tankorNev'].'</li>';
+ }
+ echo '</ul>';
+ echo '</td>'."\n";
+}
+ echo '</tr><tr>';
+
+ echo '<th>'._VALASZTHATO.'</th>'."\n";
+
+ echo '<td>';
+ if (isset($TOPOST['tankoradat']['felveheto'])) $_CHK[$TOPOST['tankoradat']['felveheto']] = ' checked="checked"';
+ else $_CHK[0] = ' checked="checked"';
+
+ echo '<span class="dob">';
+ echo '<input type="radio" id="szabValI" name="felveheto" value="1" '.$_CHK[1].' />';
+ echo '<label for="szabValI">'._IGEN.'</label>';
+ echo '</span>';
+
+ echo '<span class="dob">';
+ echo '<input type="radio" id="szabValN" name="felveheto" value="0" '.$_CHK[0].' />';
+ echo '<label for="szabValN">'._NEM.'</label>';
+ echo '</span>'."\n";
+
+ echo '<label for="min">'._MIN_LSZ.'</label>';
+ echo '<select id="min" name="min">';
+ for ($i=0; $i<100; $i++) {
+ $_SEL = ($TOPOST['tankoradat']['min'] ==$i) ? ' selected="selected" ': '';
+ echo '<option value="'.$i.'"'.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>'."\n";
+ echo '<label for="min">'._MAX_LSZ.'</label>';
+ echo '<select id="max" name="max">';
+ for ($i=0; $i<100; $i++) {
+ $_SEL = ($TOPOST['tankoradat']['max'] ==$i) ? ' selected="selected" ': '';
+ echo '<option value="'.$i.'"'.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr><tr>';
+ echo '<th>'._EVKOZI_KOVETELMENY.'</th>';
+
+ echo '<td>';
+
+ if (isset($TOPOST['tankoradat']['kovetelmeny'])) {
+ $_CHK[$TOPOST['tankoradat']['kovetelmeny']] = ' checked="checked"';
+ $_CLASS[$TOPOST['tankoradat']['kovetelmeny']]=' class="sel"';
+ } else {
+ $_CHK['jegy'] = ' checked="checked"';
+ }
+
+ foreach ( $ADAT['tankor.kovetelmeny'] AS $i => $kovetelmeny) {
+ echo '<div '.$_CLASS[$kovetelmeny].'>';
+ echo '<input type="radio" id="kov'.$kovetelmeny.'" name="kovetelmeny" value="'.$kovetelmeny.'" '.$_CHK[$kovetelmeny].' />';
+ echo '<label for="kov'.$kovetelmeny.'">'.$kovetelmeny.'</label>';
+ echo '</div>';
+ }
+
+/* echo '<label for="kovJegy">'._JEGY.'</label>';
+ echo '<input type="radio" id="kovJegy" name="kovetelmeny" value="jegy" '.$_CHK['jegy'].' />';
+ echo '<label for="kovAi">'._ALAIRAS.'</label>';
+ echo '<input type="radio" id="kovAi" name="kovetelmeny" value="aláírás" '.$_CHK['aláírás'].' />';
+*/ echo '</td>';
+
+ echo '</tr>';
+/* REV 2185++ - tól nem kell, nem lehet. A típus determinál
+ echo '<tr>';
+
+ echo '<th>'._JELENLET.'</th>';
+
+ echo '<td>';
+ if (isset($TOPOST['tankoradat']['jelenlet'])) $_CHK[$TOPOST['tankoradat']['jelenlet']] = ' checked="checked"';
+ else $_CHK['kötelező'] = ' checked="checked"';
+ echo '<label for="jelKot">'._KOTELEZO.'</label>';
+ echo '<input type="radio" id="jelKot" name="jelenlet" value="kötelező" '.$_CHK['kötelező'].' />';
+ echo '<label for="jelNemKot">'._NEMKOTELEZO.'</label>';
+ echo '<input type="radio" id="jelNemKot" name="jelenlet" value="nem kötelező" '.$_CHK['nem kötelező'].' />';
+ echo '</td>';
+
+ echo '</tr>';
+*/
+ echo '</table>';
+ echo '<input type="hidden" id="jelKot" name="jelenlet" value="kötelező" />';
+
+ $_CHK = array();
+
+ echo '<h2>'._SZEMESZTEREK.'</h2>';
+ echo '<table class="szemeszter" cellspacing="1" cellpadding="1">';
+ echo '<tr><th>'._SZEMESZTER.'</th>';
+ for ($i=0; $i<count($SZEMESZTER); $i++) {
+ echo '<th class="sz'.($i%2).'">';
+ echo $SZEMESZTER[$i]['tanev'].' '.$SZEMESZTER[$i]['szemeszter'];
+ echo '</th>'."\n";
+ }
+ echo '</tr>'."\n";
+
+ echo '<tr><th></th>';
+ for ($i=0; $i<count($SZEMESZTER); $i++) {
+ echo '<td class="sz'.($i%2).'">';
+ $_RO = ($SZEMESZTER[$i]['statusz']=='lezárt') ? ' readonly="readonly" onclick="return false;" class="lezart" ':'';
+ $_CHK = (is_array($SZEMCHECK) && in_array($SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter'],$SZEMCHECK))? ' checked="checked"':'';
+ $_ID = 'c'.$SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter'];
+ echo '<input id="'.$_ID.'" type="checkbox" name="szemeszterek[]" value="'.$SZEMESZTER[$i]['szemeszterId'].'"'.$_CHK.$_RO.' />';
+ echo '</td>'."\n";
+ }
+ echo '</tr>';
+
+ echo '</tr><tr><th>'._HETI_ORASZAM.'</th>';
+ for ($i=0; $i<count($SZEMESZTER); $i++) {
+ echo '<td class="sz'.($i%2).'">';
+ $_RO = ($SZEMESZTER[$i]['statusz']=='lezárt') ? ' readonly="readonly" class="lezart" ':'';
+ $_val = $SZEMORASZAM[$SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter']];
+ $_ID = 't'.$SZEMESZTER[$i]['tanev'].'/'.$SZEMESZTER[$i]['szemeszter'];
+ echo '<input id="'.$_ID.'" type="text" size="2" maxlength="4" name="SZ'.$SZEMESZTER[$i]['szemeszterId'].'" value="'.$_val.'" '.$_RO.'/>';
+ echo '</td>'."\n";
+ }
+ echo '</tr>';
+ echo '</table>'."\n\n";
+
+ echo '<h2>'._RESZTVEVO_OSZTALYOK.'</h2>';
+ echo '<table>';
+ echo '<tr><th>'._OSZTALYJELE.'</th><th></th><th>'._LEIRAS.'</th></tr>'."\n";
+ for ($i=0; $i<count($OSZTALY); $i++) {
+ if (is_array($ADAT['tankorOsztalyok']) && in_array($OSZTALY[$i]['osztalyId'],$ADAT['tankorOsztalyok'])) $_class="vanTag"; else $_class="";
+
+ echo '<tr class="'.$_class.'">';
+ echo '<th><label for="o'.$i.'">'.$OSZTALY[$i]['osztalyJel'].'</label></th>';
+ echo '<td>';
+ $_CHK = (is_array($TOPOST['osztalyok']) && in_array($OSZTALY[$i]['osztalyId'],$OSZTCHECK))? ' checked="checked"':'';
+ echo '<input type="checkbox" id="o'.$i.'" name="osztalyok[]" value="'.$OSZTALY[$i]['osztalyId'].'"'.$_CHK.' />';
+ echo '</td>'."\n";
+ echo '<td>';
+ echo '<label for="o'.$i.'">';
+ echo $OSZTALY[$i]['kezdoTanev'].'/'.$OSZTALY[$i]['vegzoTanev'];
+ echo '.'.$OSZTALY[$i]['jel'];
+ echo ' ('.$OSZTALY[$i]['leiras'].')';
+ echo '</label>';
+
+
+ echo '</td>'."\n";
+
+ echo '</tr>';
+ }
+ echo '</table>';
+
+ if ($TOPOST['tankorId']=='') { // engedélyezzüz a tanár felvételét
+
+ echo '<h2>'._MEGJELOLTIDOSZAKBANTANAR.'</h2>';
+ echo '<select name="tanarId">';
+ echo '<option value=""></option>';
+ for($i=0; $i<count($TANAR); $i++) {
+ echo '<option value="'.$TANAR[$i]['tanarId'].'">'.$TANAR[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ }
+
+
+ echo '<input type="submit" />';
+
+ formEnd();
+
+ }
+
+ function putTankorLezarForm($tankorId, $mkId, $targyId, $tanev = __TANEV) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKOR_LEZARAS.'</h2>';
+
+ echo '<p>'._TANKOR_LEZARAS_HELP.'</p>';
+ echo '<p><label for="biztosLezar">Biztos benne?</label>';
+ echo '<input type="checkbox" id="biztosLezar" name="biztosLezar" value="1" />'."</p>\n";
+ echo '<input type="hidden" name="action" value="tankorLezar" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$targyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+
+ echo '<p>';
+ echo '<label for="lezardt">'._LEZARAS_DT.': </label>';
+ echo '<input type="text" id="lezarDt" name="lezarDt" class="date" value="'.date('Y-m-d').'" />';
+ echo '<input type="submit" id="lezarg" value="'._LEZAR.'" />';
+ echo '</p>';
+ formEnd();
+ }
+
+
+ function putTankorTorolForm($tankorId, $mkId, $targyId, $tanev = __TANEV) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKOR_TORLES.'</h2>';
+
+ echo '<p>'._TANKOR_TORLES_HELP;
+
+ echo '<input type="checkbox" name="biztosTorol" value="1" />'."</p>\n";
+ echo '<input type="hidden" name="action" value="tankorTorol" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$mkId.'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$targyId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+ echo '<p>';
+ echo '<label for="targytorolg">'._VEGLEGES_TORLES.': </label>';
+ echo '<input type="submit" id="torolg" value="'._DELETE.'" />';
+ echo '</p>';
+ formEnd();
+ }
+
+ function putTankorTargyForm($ADAT) {
+
+ formBegin(array('class'=>'tankor'));
+ echo '<h2>'._TANKOR_TARGY_MODOSITAS.'</h2>';
+
+ echo '<p>'._TANKOR_TARGY_HELP.'</p>';
+
+ echo '<input type="hidden" name="action" value="tankorTargyModositas" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ echo '<p>';
+ echo '<label for="ujTargy">'._UJ_TARGY.': </label>';
+ echo '<select id="ujTargy" name="ujTargyId" class="">';
+ echo '<option value=""> - </option>';
+ foreach ($ADAT['targyak'] as $tAdat) {
+ if ($tAdat['targyId'] != $ADAT['targyId'])
+ echo '<option value="'.$tAdat['targyId'].'">'.$tAdat['targyNev'].' ('.$tAdat['targyId'].')</option>';
+ }
+ echo '</select>';
+ echo '<input type="submit" id="targyMod" value="'._OK.'" />';
+ echo '</p>';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml
new file mode 100644
index 00000000..272d6908
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorDiak.phtml
@@ -0,0 +1,310 @@
+<?php
+
+ function putTankorDiakTablazat($ADAT) {
+
+ $tankorId = $ADAT['tankorId'];
+ $TT = array();
+ for ($i = 0; $i < count($ADAT['tankor']['tanarai']); $i++) {
+ $TT[] = $ADAT['tankor']['tanarai'][$i]['tanarNev'];
+ }
+
+ formBegin(array('method'=>'post', 'action'=>'', 'class'=>'tankor'));
+ echo '<h2>'.ucfirst(_TANAR).': '.implode(', ',$TT).'</h2>';
+
+ echo '<h2>'._DIAKOK.'</h2>';
+
+ if ($ADAT['tankor']['diakjai']['nevek']!==false) {
+
+ echo '<table cellpadding="1" cellspacing="1">';
+ __tableHeadFoot();
+ echo '<tbody>';
+ $i=1;
+ if (is_array($ADAT['tankor']['diakjai']['nevek']))
+ foreach ($ADAT['tankor']['diakjai']['nevek'] as $diakId=>$DIAK) {
+ $_D = $ADAT['tankor']['diakjai']['adatok'][$diakId];
+ $_db = count($_D);
+ $_CHK = (is_array($ADAT['diakSelected']) && in_array($diakId,$ADAT['diakSelected'])) ? 'checked="checked"':'';
+ echo '<tr>';
+ echo '<td rowspan="'.$_db.'">';
+ echo '</td>';
+ echo '<td rowspan="'.$_db.'">';
+ echo $i++;
+ echo '. '.$DIAK['diakNev'];
+ echo ' ';
+ $_osztalyId=$ADAT['diakOsztaly'][$diakId][0];
+ if (isset($ADAT['osztaly'][$_osztalyId]['osztalyJel'])) echo '('.$ADAT['osztaly'][$_osztalyId]['osztalyJel'].')';
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['kiDt'];
+ echo '</td>';
+ echo '<td rowspan="'.$_db.'">';
+ for ($k=0; $k<count($ADAT['diakKepzes'][$diakId]); $k++) {
+ echo '<span class="kepzes'.($ADAT['diakKepzes'][$diakId][$k]['kepzesId']%2).'">';
+ echo $ADAT['diakKepzes'][$diakId][$k]['kepzesNev'];
+ echo '</span>';
+ }
+ echo '</td>';
+ echo '</tr>';
+ for ($k=1; $k<count($_D); $k++){
+ echo '<tr>';
+ echo '<td>';
+ echo $_D[$k]['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $_D[$k]['kiDt'];
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+
+ formEnd();
+
+ }
+
+ function __tableHeadFoot() {
+ echo '<thead>';
+ echo '<tr><th></th><th>'._NEV.'</th><th>'._METTOL.'</th><th>'._MEDDIG.'</th><th>'._NEME.'</th><th>'._KEPZES.'</th></tr>'."\n";
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th></th><th>'._NEV.'</th><th>'._METTOL.'</th><th>'._MEDDIG.'</th><th>'._NEME.'</th><th>'._KEPZES.'</th></tr>'."\n";
+ echo '</tfoot>';
+ }
+
+ function putTankorDiakForm($ADAT) {
+
+ $tankorId = $ADAT['tankorId'];
+ $TT = array();
+ for ($i = 0; $i < count($ADAT['tankor']['tanarai']); $i++) {
+ $TT[] = $ADAT['tankor']['tanarai'][$i]['tanarNev'];
+ }
+
+ formBegin(array('method'=>'post', 'id'=>'tankorDiak', 'class'=>'tankor', 'action'=>''));
+
+ if (count($TT)>0) echo '<h2>'.ucfirst(_TANAR).': '.implode(', ',$TT).'</h2>';
+
+ echo '<h2>'._DIAKOK.'</h2>';
+
+ if ($ADAT['tankor']['diakjai']['nevek']!==false) {
+
+ echo '<input type="hidden" name="action" value="tankorDiakMod" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+# echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+# echo '<input type="hidden" name="beDt" value="'.$ADAT['beDt'].'" />'."\n";
+# echo '<input type="hidden" name="kiDt" value="'.$ADAT['kiDt'].'" />'."\n";
+ echo '<table cellpadding="1" cellspacing="1" class="bentlevo">';
+ __tableHeadFoot();
+ echo '<tbody>';
+ $i=1;
+
+ if (is_array($ADAT['tankor']['diakjai']['nevek']))
+ foreach ($ADAT['tankor']['diakjai']['nevek'] as $diakId=>$DIAK) {
+ $_D = $ADAT['tankor']['diakjai']['adatok'][$diakId];
+ $_db = count($_D);
+ $_CHK = (is_array($ADAT['diakSelected']) && in_array($diakId,$ADAT['diakSelected'])) ? 'checked="checked"':'';
+ echo '<tr>';
+ echo '<td rowspan="'.$_db.'">';
+ echo '<input type="hidden" name="diakok[]" value="'.$diakId.'" />';
+ echo '<input type="checkbox" name="diaktorol[]" value="'.$diakId.'" '.$_CHK.'/>';
+ echo '</td>';
+ echo '<td rowspan="'.$_db.'" class="diakNev" data-diakid="'.$diakId.'">';
+ echo $i++;
+ echo '. '.$DIAK['diakNev'];
+ echo ' ';
+ $_osztalyId=$ADAT['diakOsztaly'][$diakId][0];
+ if (isset($ADAT['osztaly'][$_osztalyId]['osztalyJel'])) echo '('.$ADAT['osztaly'][$_osztalyId]['osztalyJel'].')';
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['beDt'];
+ echo '</td>';
+ echo '<td>';
+ echo $_D[0]['kiDt'];
+ echo '</td>';
+ echo '<td class="'.ekezettelen($ADAT['diakAdat'][$diakId]['nem']).'">';
+ echo ($ADAT['diakAdat'][$diakId]['nem']);
+ echo '</td>';
+
+ echo '<td>';
+ for ($k=0; $k<count($ADAT['diakKepzes'][$diakId]); $k++) {
+ echo '<span class="kepzes'.($ADAT['diakKepzes'][$diakId][$k]['kepzesId']%2).'">';
+ echo $ADAT['diakKepzes'][$diakId][$k]['kepzesNev'];
+ echo '</span>';
+ }
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" /> '.$ADAT['refDt'].' - ';
+ echo '<input class="date" type="text" name="kiDt" value="'.$ADAT['kiDt'].'" />';
+ if ($ADAT['voltUtkozes'] === true && __NAPLOADMIN) echo '<input id="utkozes" type="checkbox" name="utkozes" value="true" /><label for="utkozes">'._FORCE.'</label>';
+ echo '<input type="submit" id="tankorDiakMod" value="'._BUTTON_OK.'" class="confirm" title="'._BIZTOS_TANKORNEVSOR.'" />';
+ formEnd();
+ }
+ }
+
+ function putUjDiakForm($ADAT) {
+
+ $tankorId = $ADAT['tankorId'];
+
+ formBegin(array('method'=>'post', 'id'=>'ujDiak', 'class'=>'tankor', 'action'=>''));
+
+ echo '<h2>'._UJDIAK.'</h2>';
+
+ echo '<input type="hidden" name="action" value="tankorUjDiak" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ //echo '<input type="hidden" name="jelenlet" value="kötelező" />'."\n";
+ //echo '<input type="hidden" name="kovetelmeny" value="jegy" />'."\n";
+
+ echo '<select name="diakId">';
+ foreach($ADAT['diakok'] as $_osztalyId => $DADAT) {
+ echo '<optgroup label="'.$ADAT['osztaly'][$_osztalyId]['osztalyJel'].'">';
+ for($i=0; $i<count($DADAT); $i++) {
+ echo '<option value="'.$DADAT[$i]['diakId'].'">'.$DADAT[$i]['diakNev'].' ('.$DADAT[$i]['diakId'].')</option>';
+ }
+ echo '</optgroup>';
+ }
+ echo '</select>';
+ echo '<label for="tolDt">'._BEDT.': </label>';
+ echo '<input class="date" type="text" id="refDt" name="refDt" value="'. $ADAT['refDt'] .'" />';
+ echo '<label for="igDt">'._KIDT.': </label>';
+ echo '<input class="date" type="text" id="igDt" name="igDt" value="" />';
+
+ echo '<input type="submit" id="ujDiak" value="'._OK.'" />';
+
+ formEnd();
+
+ }
+
+ function putUjDiakForm2($ADAT) {
+ $tankorId = $ADAT['tankorId'];
+
+ formBegin(array('method'=>'post', 'id'=>'ujDiak', 'class'=>'tankor', 'action'=>''));
+
+ echo '<h2>'._UJDIAK.'</h2>';
+
+ echo '<input type="hidden" name="action" value="tankorUjDiakMulti" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ //echo '<input type="hidden" name="jelenlet" value="kötelező" />'."\n";
+ //echo '<input type="hidden" name="kovetelmeny" value="jegy" />'."\n";
+ $j=0;
+ $SORT = array();
+ foreach($ADAT['diakok'] as $_osztalyId => $___D) {
+ if (isset($ADAT['osztaly'][$_osztalyId]['osztalyJel']))
+ $SORT[$ADAT['osztaly'][$_osztalyId]['osztalyJel']]=$_osztalyId;
+ else // Vendégtanulók miatt...
+ $SORT[constant('_'.strtoupper($_osztalyId))] = $_osztalyId;
+ }
+
+
+ ksort($SORT);
+ foreach($SORT as $_oJel => $_osztalyId) {
+ $DADAT = $ADAT['diakok'][$_osztalyId];
+
+ echo '<table style="float:left;" cellpadding="0" cellspacing="1">';
+ echo '<tr><th colspan="2">'.$_oJel.'</th></tr>';
+ echo '<tr>';
+ echo '<th class="setAll">'.$_oJel.'</th>'."\n";
+ echo '<td style="vertical-align: top">';
+ //**
+ echo '<table cellpadding="1" cellspacing="1" class="egyosztaly">';
+ for($i=0; $i<count($DADAT); $i++) {
+ $_diakId= $DADAT[$i]['diakId'];
+ $_neme = ($ADAT['diakAdat'][$_diakId]['nem']);
+ echo '<tr class="'.ekezettelen(str_replace(' ','',$DADAT[$i]['statusz'])).'">';
+ echo '<td><input type="checkbox" id="diakId__'.$j.'" name="diakId[]" value="'.$DADAT[$i]['diakId'].'" class="'.ekezettelen($_neme).'" /></td>';
+ echo '<td>'.($i+1).'.</td>';
+ echo '<td>';
+ echo '<label for="diakId__'.$j.'" title="'.$DADAT[$i]['statusz'].'">'.$DADAT[$i]['diakNev'].' ('.$DADAT[$i]['diakId'].')</label>';
+ // képzései:
+ echo '</td>';
+ echo '<td class="'.ekezettelen($_neme).' setAll'.ucfirst(ekezettelen($_neme)).'" >';
+ //echo '<label for="diakId__'.$j.'">'.$_neme.'</label>';
+ echo $_neme;
+ echo '</td>';
+ echo '<td>';
+ for ($k=0; $k<count($ADAT['diakKepzes'][$_diakId]); $k++) {
+ echo '<span class="kepzes'.($ADAT['diakKepzes'][$_diakId][$k]['kepzesId']%2).'" title="['.$ADAT['diakKepzes'][$_diakId][$k]['tanev'].']">';
+ echo $ADAT['diakKepzes'][$_diakId][$k]['kepzesNev'];
+
+ echo '</span>';
+ }
+ echo '</td>';
+ // --
+ echo '</tr>'."\n";
+ $j++;
+ }
+ echo '</table>';
+ //**
+
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>';
+
+ }
+ echo '<div style="clear:both"></div>';
+ echo '<label for="refDt">'._BEDT.': </label>';
+ echo '<input class="date" type="text" id="refDt" name="refDt" value="'.$ADAT['refDt'].'" />';
+ echo '<label for="igDt">'._KIDT.': </label>';
+ echo '<input class="date" type="text" id="igDt" name="igDt" value="" />';
+
+ echo '<input type="submit" id="ujDiakOk" value="'._OK.'" />';
+
+ formEnd();
+
+ }
+
+ function __n($D1,$D2) {
+ $kip = date('z',strtotime($D1));
+ $kop = date('z',strtotime($D2));
+ list($bY,$bM,$bD) = explode('-',$D1);
+ list($kY,$kM,$kD) = explode('-',$D2);
+ $px = $kop-$kip+($kY-$bY)*365-1;
+ return $px;
+ }
+
+ /* EZT TESSÉK SZÉPEN MEGÍRNI :) */
+ function _put_grafikon($ADAT,$TANEV) {
+
+ // el kellene még tolni a kezdes és zárás ismeretében!
+ $tanevN = __n($TANEV['kezdesDt'], $TANEV['zarasDt']);
+ // legyen 1 pixel, 1 nap
+ $pxx=0;
+ echo '<div style="width:370px; height:5px; background-color: lightgrey; border: solid 1px blue" alt="jelenlet grafikon">';
+
+ if (($px=__n($TANEV['kezdesDt'],$ADAT[0]['beDt']))>0) {
+ echo '<img src="/skin/classic/module-naplo/img/tankorok/gray-pixel.gif" style="width:'.$px.'px; height:5px; background-color: navy; border-right: solid 1px red;" alt="">';
+ $pxx+=$px;
+ } elseif ($px<0) { // hackit
+ $ADAT[0]['beDt']=$TANEV['kezdesDt'];
+ }
+ for($i=0; $i<count($ADAT); $i++) {
+ if (!is_null($ADAT[$i]['kiDt'])) {
+ $px = __n($ADAT[$i]['beDt'],$ADAT[$i]['kiDt']);
+ } else {
+ $px = 365-$pxx-1;
+ }
+ $pxx+=$px;
+ echo '<img src="/skin/classic/module-naplo/img/tankorok/gold_box.gif" style="width:'.$px.'px; height:5px; background-color: navy; border-right: solid 1px blue;" alt="">';
+ if (is_array($ADAT[$i+1])) {
+ $px = __n($ADAT[$i]['kiDt'],$ADAT[$i+1]['beDt']);
+ echo '<img src="/skin/classic/module-naplo/img/tankorok/gray-pixel.gif" style="width:'.$px.'px; height:5px; background-color: navy; border-right: solid 1px red;" alt="">';
+ $pxx+=$px;
+ }
+ }
+ echo '</div>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml
new file mode 100644
index 00000000..c7a935e8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorLetszam.phtml
@@ -0,0 +1,83 @@
+<?php
+
+ function putTankorLetszam($ADAT) {
+
+ echo '<table align="center" class="tankorLetszam" cellspacing="1">';
+ echo '<tr><th>'._TANKOR.'</th><th>'._TIPUS.'</th>';
+ echo '<th colspan="2">';
+ echo _LETSZAM;
+
+ formBegin();
+ $_CHK = ($ADAT['osztalyonkent']=='1') ? ' checked="checked" ':'';
+ echo '<input type="checkbox" name="osztalyonkent" value="1" '.$_CHK.' />';
+ _putLimit($ADAT['tankorLetszamLimit']);
+ echo '<input type="submit" />';
+ echo '<input type="hidden" name="mkId" value="'.$_POST['mkId'].'" />';
+ echo '<input type="hidden" name="targyId" value="'.$_POST['targyId'].'" />';
+ formEnd();
+ echo '</th>';
+ echo '<th>'._TANAROK.'</th></tr>'."\n";
+ for($i=0; $i<count($ADAT['tankorok']); $i++) {
+ $_D = $ADAT['tankorok'][$i];
+ if (!is_numeric($ADAT['tankorLetszamLimit']) || $ADAT['tankorLetszamLimit']>=$_D['letszam']) {
+ echo '<tr>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankor&tankorId='.$_D['tankorId']).'">';
+ echo $_D['tankorNev'];
+ echo ' ('.$_D['tankorId'].')';
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+ echo $_D['tankorTipus'];
+ echo '</td>';
+ echo '<td class="letszam">';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorDiak&tankorId='.$_D['tankorId']).'">';
+ echo $_D['letszam'];
+ echo '</a>';
+ echo '</td>';
+ echo '<td class="letszam">';
+
+ if (is_array($_D['letszamOsztaly']))
+ foreach(
+ $_D['letszamOsztaly'] as $osztalyJel => $db
+ ) {
+ echo '<span style="color: white; background-color: #565650; padding:0px 5px;margin:0px 5px;">';
+ echo $osztalyJel.':';
+ echo $db;
+ echo '</span>';
+ }
+
+ echo '</td>';
+ echo '<td class="tanar">';
+ for ($j=0; $j<count($_D['tanarai']); $j++) {
+ echo $_D['tanarai'][$j]['tanarNev'];
+ if ($j<count($_D['tanarai'])-1) echo ', ';
+ }
+ echo '</td>';
+/*
+ echo '<td class="osztaly">';
+ for ($j=0; $j<count($_D['osztalyai']); $j++) {
+ echo $ADAT['osztaly'][$_D['osztalyai'][$j]]['osztalyJel'];
+ if ($j<count($_D['osztalyai'])-1) echo ', ';
+ }
+ echo '</td>';
+*/ echo '</tr>';
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</table>';
+
+ }
+
+ function _putLimit($limit) {
+
+ echo '<select name="tankorLetszamLimit">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<=40; $i++) {
+ $_SEL = ($limit!==$i) ? '': ' selected = "selected" ';
+ echo '<option value="'.$i.'" '.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml
new file mode 100644
index 00000000..a98009fb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorSzemeszter.phtml
@@ -0,0 +1,101 @@
+<?php
+
+ function putTankorSzemeszterForm($ADAT) {
+
+ $tanev = $ADAT['tanev'];
+
+ // szemeszterek száma tanévenként
+ for ($i = 0; $i < count($ADAT['szemeszterek']); $i++) $Tanevek[$ADAT['szemeszterek'][$i]['tanev']]++;
+ formBegin(array('class'=>'tankorSzemeszter'));
+ echo '<input type="hidden" name="action" value="tankorSzemeszter" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$tanev.'" />'."\n";
+//hö?
+ if (isset($_POST['tanarId'])) echo '<input type="hidden" name="tanarId" value="'.$_POST['tanarId'].'" />'."\n";
+ if (isset($_POST['osztalyId'])) echo '<input type="hidden" name="osztalyId" value="'.$_POST['osztalyId'].'" />'."\n";
+ if (isset($_POST['mkId'])) echo '<input type="hidden" name="mkId" value="'.$_POST['mkId'].'" />'."\n";
+
+ echo '<table align="center">'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th rowspan="2" class="bigleft">'._TANKOR.' ('.$tanev.')</th>'."\n";
+ for ($i = 0; $i < count($ADAT['szemeszterek']); $i++) {
+ if ($szTanev != $ADAT['szemeszterek'][$i]['tanev']) {
+ $szTanev = $ADAT['szemeszterek'][$i]['tanev'];
+ $colspan = $Tanevek[$szTanev];
+ $_class=array();
+ $_class[] = ekezettelen($ADAT['szemeszterek'][$i]['statusz']);
+ if ($tanev == $szTanev) $_class[] = 'aktualis';
+ echo '<th class="'.implode(' ',$_class).'" colspan="'.$colspan.'">';
+ echo $szTanev;
+ echo '</th>'."\n";
+ }
+ }
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ for ($i = 0; $i < count($ADAT['szemeszterek']); $i++) {
+ $_class=array();
+ $_class[] = ekezettelen($ADAT['szemeszterek'][$i]['statusz']);
+ if ($tanev == $ADAT['szemeszterek'][$i]['tanev']) $_class[] = 'aktualis';
+ echo '<th class="'.implode(' ',$_class).'">'.$ADAT['szemeszterek'][$i]['szemeszter'].'</th>'."\n";
+ }
+ echo '</tr>'."\n";
+
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ echo '<tr>'."\n";
+
+ echo '<th title="'.substr($title,0,-2).'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorDiak&tankorId='.$ADAT['tankorok'][$i]['tankorId'].'&tanev='.$tanev).'">';
+ echo $ADAT['tankorok'][$i]['tankorNev'].' ('.$ADAT['tankorok'][$i]['tankorId'].')';
+ echo '</a>';
+ echo '<span class="tan">';
+ for ($j=0; $j<count($ADAT['tankorTanarok'][$tankorId]); $j++) {
+ echo '<br/>'.$ADAT['tankorTanarok'][$tankorId][$j]['tanarNev'].' ';
+ echo $ADAT['tankorTanarok'][$tankorId][$j]['minBeDt'].'--';
+ echo $ADAT['tankorTanarok'][$tankorId][$j]['maxKiDt'];
+ }
+ echo '</span>';
+ echo '</th>'."\n";
+ for ($j = 0; $j < count($ADAT['szemeszterek']); $j++) {
+ $szTanev = $ADAT['szemeszterek'][$j]['tanev'];
+ $szSzemeszter = $ADAT['szemeszterek'][$j]['szemeszter'];
+
+
+ $_class=array();
+ $_class[] = ekezettelen($ADAT['szemeszterek'][$j]['statusz']);
+ if ($tanev == $ADAT['szemeszterek'][$j]['tanev']) $_class[] = 'aktualis';
+ echo '<td class="'.implode(' ',$_class).'">';
+
+ if ($ADAT['szemeszterek'][$j]['statusz'] == 'lezárt') $disabled = ' disabled="disabled" ';
+ else $disabled = '';
+ $value = "$tankorId/$szTanev/$szSzemeszter";
+ $name = 'O_'.$tankorId.'_'.$szTanev.'_'.$szSzemeszter;
+ if (is_array($ADAT['tankorSzemeszter'][$tankorId][$szTanev][$szSzemeszter])) {
+ $szAdat = $ADAT['tankorSzemeszter'][$tankorId][$szTanev][$szSzemeszter];
+ $tankorNev = $szAdat['tankorNev'];
+ $title = $tankorNev;
+ echo '<input type="checkbox" name="T[]" value="'.$value.'" title="'.$title.'" checked="checked" '.$disabled.' />'."\n";
+ echo '<input size="1" maxlength="4" type="text" name="'.$name.'" value="'.$szAdat['oraszam'].'" '.$disabled.' />'."\n";
+ } else {
+ echo '<input type="checkbox" name="T[]" value="'.$value.'" title="" '.$disabled.' />'."\n";
+ echo '<input size="1" maxlength="4" type="text" name="'.$name.'" value="" '.$disabled.' />'."\n";
+ }
+
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>'."\n";
+ echo '<th colspan="'.(count($ADAT['szemeszterek'])+1).'"><input type="submit" value="'._OK.'" /></th>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml
new file mode 100644
index 00000000..78a9f417
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanar.phtml
@@ -0,0 +1,103 @@
+<?php
+
+ function putTankorTanarForm($ADAT) {
+
+ if (!isset($ADAT['tankorok'])) return false;
+
+ formBegin(array('method'=>'post', 'id'=>'tankorTanarAssoc', 'class'=>'tankor', 'action'=>''));
+
+ //echo '<h2>'._TANTARGYFELOSZTAS.'</h2>';
+
+ echo '<input type="hidden" name="action" value="tankorTanarAssoc" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />'."\n";
+ echo '<input type="hidden" name="refDt" value="'.$ADAT['refDt'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+# echo '<input type="hidden" name="kiDt" value="'.$ADAT['kiDt'].'" />'."\n";
+
+ echo '<table class="felosztas">';
+ echo '<tr><th>'._TANKOR.'</th><th>'._ORASZAM.'</th><th>'._AKTUALIS_TANAR.'<th colspan="1">'._VALASZTOTT_TANAR.'</th><th>'._IDOSZAK.'</th></tr>'."\n";
+ echo '<tr>';
+ for($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $_D = $ADAT['tankorok'][$i];
+ echo '<tr>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorTanar&tankorId='.$_D['tankorId'].'&mkId='.$ADAT['mkId'].'&refDt='.$ADAT['refDt'].'&tanev='.$ADAT['tanev']).'">';
+ echo $_D['tankorNev']. ' ('.$_D['tankorId'].')';
+ echo '</a>'."\n";
+ echo '</td>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankor&tankorId='.$_D['tankorId']).'">';
+ echo sprintf('%01.1f',$_D['oraszam']);
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+ echo '<ul>';
+ for($j = 0; $j < count($_D['tanarok']); $j++) {
+ echo '<li>';
+ echo $_D['tanarok'][$j]['tanarNev'];
+ echo '</li>'."\n";
+ }
+// for ($j=0; $j<count($ADAT['tankorTanarok'][$_D['tankorId']]); $j++) {
+// echo '<li>';
+// echo $ADAT['tankorTanarok'][$_D['tankorId']][$j]['tanarNev'];
+// echo ' ('.$ADAT['tankorTanarok'][$_D['tankorId']][$j]['minBeDt'].'--';
+// echo $ADAT['tankorTanarok'][$_D['tankorId']][$j]['maxKiDt'].')';
+// echo '</li>';
+// }
+ echo '</ul>';
+ echo '</td>';
+ // -- ELEJE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ if (count($ADAT['tankorok']) == 1) {
+ echo '<td>';
+ echo '<input type="hidden" name="tankorok[]" value="'.$_D['tankorId'].'" />';
+ _putTanarSelect('TA'.$_D['tankorId'], $ADAT['tanarok'], $_D['tanarok']);
+ echo '</td>';
+ echo '<td>';
+ echo '<ul>';
+ for ($j=0; $j<count($ADAT['tankorTanarBejegyzesek'][$_D['tankorId']]); $j++) {
+ $_kulcs = $_D['tankorId'].'|'.$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['tanarId'].'|'.$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['beDt'].'|'.$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['kiDt']; // tankorId|tanarId|beDt|kiDt
+ echo '<li>';
+ echo $ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['tanarNev'];
+ echo ': '.str_replace('-','.',$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['beDt']).'. &ndash; ';
+ if ($ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['kiDt']=='') {
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorTanar&action=tankorTanarJavit&kuuk='.$ADAT['kuuk'].'&tankorId='.$_D['tankorId'].'&tt='.$_kulcs).'"><span class="icon-wrench-alt"></span></a>';
+ } else {
+ echo str_replace('-','.',$ADAT['tankorTanarBejegyzesek'][$_D['tankorId']][$j]['kiDt']).'.';
+ }
+ echo '<a href="'.href('index.php?page=naplo&sub=intezmeny&f=tankorTanar&action=tankorTanarTorol&kuuk='.$ADAT['kuuk'].'&tankorId='.$_D['tankorId'].'&tt='.$_kulcs).'"><span class="icon-remove-circle"></span></a>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '</td>';
+ }
+ // -- VÉGE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ echo '</tr>';
+ }
+ echo '</table>';
+ // -- ELEJE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ if (count($ADAT['tankorok']) == 1) {
+ echo '<label for="igDt">'.$ADAT['refDt'].' - </label><input class="date" type="text" id="igDt" name="igDt" value="" /> ';
+ echo '<input type="submit" id="tankortanarassoc" value=" '._OK.' " />';
+ }
+ // -- VÉGE nem jó, ha sok tankör adatait együtt módosítjuk! --
+ formEnd();
+
+ }
+
+ function _putTanarSelect($name, $TANAROK, $TANITOK) {
+ for ($i = 0; $i < count($TANITOK); $i++) {
+ $TAN[] = $TANITOK[$i]['tanarId'];
+ $_class = "vantanara";
+ }
+ echo '<select name="'.$name.'[]" multiple="multiple" size="10" class="'.$_class.'">';
+ echo '<option value=""> - </option>';
+ for ($i = 0; $i < count($TANAROK); $i++) {
+ $_SEL = (is_array($TAN) && in_array($TANAROK[$i]['tanarId'], $TAN)) ? ' selected="selected" ' : '';
+ echo '<option value="'.$TANAROK[$i]['tanarId'].'"'.$_SEL.'>'.$TANAROK[$i]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml
new file mode 100644
index 00000000..aa9747fc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tankorTanarHozzarendeles.phtml
@@ -0,0 +1,147 @@
+<?php
+
+ function putStatuszSor($ADAT) {
+
+ //TESZT echo '<img src="skin/classic/module-naplo/img/io/kreta.svg" style="height:24px; background-color:#30a8cb;">';
+
+ echo '<div id="statusz">';
+
+ echo '<span class="iicon-filter"></span>';
+
+ echo '<div id="limit">';
+ echo 'Elfogadható óraszám: '
+ .'<i>«kötelező óraszám»</i>'
+ .'<span class="icon-minus-sign" id="minusz"> 2'
+ .'<ul class="limit">'
+ .'<li class="setLimit">0</li><li class="setLimit">1</li><li class="setLimit selected">2</li><li class="setLimit">3</li><li class="setLimit">4</li>'
+ .'<li class="setLimit">5</li><li class="setLimit">6</li><li class="setLimit">7</li><li class="setLimit">8</li><li class="setLimit">9</li>'
+ .'</ul>'
+ .'</span>'
+ .' – '
+ .'<i>«kötelező óraszám»</i>'
+ .'<span class="icon-plus-sign" id="plusz"> 2'
+ .'<ul class="limit">'
+ .'<li class="setLimit">0</li><li class="setLimit">1</li><li class="setLimit selected">2</li><li class="setLimit">3</li><li class="setLimit">4</li>'
+ .'<li class="setLimit">5</li><li class="setLimit">6</li><li class="setLimit">7</li><li class="setLimit">8</li><li class="setLimit">9</li>'
+ .'</ul>'
+ .'</span>';
+ echo '</div>';
+
+ echo '<div id="stat">';
+ echo 'Tankörök száma: ';
+ echo '<span id="tankorDbKesz">'.$ADAT['tankorStat']['kesz'].'</span>/';
+ echo '<span id="tankorDbOsszes">'.$ADAT['tankorStat']['osszes'].'</span> = ';
+ echo '<span id="tankorDbSzazalek">'.number_format($ADAT['tankorStat']['kesz'] / $ADAT['tankorStat']['osszes'] * 100,1,',','').'%</span>';
+ echo '</div>';
+
+ echo '<div id="filter">';
+ echo '<span class="icon-search"></span>'
+ .' <span id="szuro" '.'data-szuro=\''.json_encode($ADAT['szuro']).'\' '.'>Szűrés</span> '
+ .'<span class="icon-chevron-right"></span>';
+ echo '</div>';
+
+
+
+ echo '</div>';
+
+ }
+
+ function putTankorTanarMatrix($ADAT) {
+
+ $COLORS = array(1=>'#198198',2=>'#298298',3=>'green',4=>'#ffaaaa',5=>'#aabbcc',6=>'#bbccaa',7=>'#ccaabb',8=>'#aaccbb',9=>'#aaccee','9Ny'=>'#ffccee',10=>'#ffaacc',11=>'#eeffbb',12=>'#ccddff');
+ $TANKOROK = $ADAT['tankorok'];
+ $TANAROK = $ADAT['tanarok'];
+ for ($i=0; $i<count($TANKOROK); $i++) {
+ $_T = $TANKOROK[$i];
+ $TARGYTANKOR[$_T['targyId']][] = $_T;
+ }
+
+ formBegin(array('id'=>'tantargyFelosztasForm'));
+ echo '<div style="100%;overflow-x:auto;overflow-y:auto" class="tanarTankor">';
+ echo '<table id="tt" cellpadding="1" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th class="toggleKesz"><span id="keszTankorDb">'.$ADAT['keszTankorDb'].'</span> db kész/<span id="osszTankorDb">'.count($TANKOROK).'</span> db tankör</th>';
+ echo '<th rowspan="3" class="oraszam">Óraszám</th>';
+ $first = true;
+ foreach ($TARGYTANKOR as $_targyId => $_TA) {
+ if ($first) { $class=' class="first targy" '; $first=false; }
+ else { $class=' class="targy" '; }
+ echo '<th id="thTargy-'.$_targyId.'" colspan="'.count($_TA).'" data-targyid="'.$_targyId.'" data-colspan="'.count($_TA).'"'.$class.'>';
+ echo $ADAT['targyAdat'][$_targyId]['targyNev'];
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th><span id="keszTanarDb">0</span> db kész/<span id="osszTanarDb">'.count($TANAROK).'</span> db tanár</th>';
+ $first = true;
+ foreach ($TARGYTANKOR as $_targyId => $TANKORSOR)
+ for ($i=0; $i<count($TANKORSOR); $i++) {
+ $_tankorAdat = $TANKORSOR[$i];
+ if ($first) { $class='first tankor'; $first=false; }
+ else { $class='tankor'; }
+ if (is_array($_tankorAdat['tanarIds'])) {
+ if (count($_tankorAdat['tanarIds']) > 1) $class .= ' tobb';
+ elseif (count($_tankorAdat['tanarIds']) == 1) $class .= ' kesz';
+ }
+ $class .= ' tdTargy-'.$_targyId;
+ if (!$_tankorAdat['bontasOk']) $class .= ' bontasHiba';
+ $color = $COLORS[substr($_tankorAdat['tankorNev'],0,strpos($_tankorAdat['tankorNev'],'.') )];
+ echo '<td id="col_'.$_tankorAdat['tankorId'].'" class="'.$class.'" style="background-color:'.$color.'"
+ data-tankorid="'.$_tankorAdat['tankorId'].'"
+ data-targyid="'.$_tankorAdat['targyId'].'"
+ data-tanardb="'.count($_tankorAdat['tanarIds']).'"
+ data-oraszam="'.number_format($_tankorAdat['hetiOraszam'],2,',','').'"
+ title="tankör óraszam: '.$_tankorAdat['tervezettOraszamok'][1]['tszOraszam'].', '.$_tankorAdat['tervezettOraszamok'][2]['tszOraszam']."\n"
+ .'bontás óraszam: '.$_tankorAdat['tervezettOraszamok'][1]['btOraszam'].', '.$_tankorAdat['tervezettOraszamok'][2]['btOraszam'].'"
+ >';
+ echo str_replace($ADAT['targyAdat'][$_tankorAdat['targyId']]['targyNev'].' ','',$_tankorAdat['tankorNev']);
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ for ($i=0; $i<count($TANAROK); $i++) { $_tanarAdat = $TANAROK[$i];
+ if ($i==0) $class='first tanar';
+ else $class='tanar';
+ foreach ($_tanarAdat['targyIds'] as $_targyId) $class .= ' targy'.$_targyId;
+ echo '<tr class="'.$class.'">';
+ echo '<th id="row_'.$_tanarAdat['tanarId'].'" data-tanarid="'.$_tanarAdat['tanarId'].'" class="tanarNev">';
+ echo $_tanarAdat['tanarNev'];
+ echo '('.$_tanarAdat['tanarId'].')'; // DEBUG TODO, legyen inkább a beépülő jobb sáv
+ echo '</th>';
+ echo '<td class="lekotott">';
+ echo '<span class="lekotott">'.number_format($_tanarAdat['lekotottOraszam'],2,',','').'</span>/';
+ echo '<span class="kotelezo">'.number_format($_tanarAdat['hetiKotelezoOraszam'],1,',','').'</span>';
+ echo '</td>';
+ $first = true;
+ foreach ($TARGYTANKOR as $_targyId => $TANKORSOR) {
+ for ($j=0; $j<count($TANKORSOR); $j++) {
+ $_tankorAdat = $TANKORSOR[$j];
+ if ($first) { $class='first tantan'; $first=false; }
+ else { $class='tantan'; }
+ $class .= ' col-'.$_tankorAdat['tankorId'].' row-'.$_tanarAdat['tanarId'];
+ if (in_array($_tankorAdat['targyId'], $_tanarAdat['targyIds'])) {
+ echo '<td id="cell_'.$_tanarAdat['tanarId'].'_'.$_tankorAdat['tankorId'].'" class="'.$class.'">';
+ $_CHK = in_array($_tanarAdat['tanarId'],$_tankorAdat['tanarIds']) ? 'checked="checked" ':'';
+ echo '<input type="checkbox" class="chkTT" name="tanarTankor[]" value="'.$_tanarAdat['tanarId'].'_'.$_tankorAdat['tankorId'].'" '.$_CHK.'/>';
+ echo '</td>';
+ } else {
+ echo '<td class="disable '. $class.'"></td>';
+ }
+ }}
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+ echo '</div>'."\n";
+ formEnd();
+ }
+
+ function _inarray($tanarId,$tankorTanar) {
+ for ($i=0;$i<count($tankorTanar);$i++) {
+ if ($tankorTanar[$i]['tanarId']== $tanarId) return true;
+ }
+ return false;
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/terem.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/terem.phtml
new file mode 100644
index 00000000..73cbede6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/terem.phtml
@@ -0,0 +1,93 @@
+<?php
+
+ function putTeremLista($ADAT) {
+
+ echo '<div class="terem">'."\n";
+
+ echo '<table cellpassing="1" cellspacing="1">'."\n";
+
+ echo '<thead><tr>';
+ echo '<th>'._TEREMID.'</th>';
+ echo '<th>'._LEIRAS.'</th>';
+ echo '<th>'._FEROHELY.'</th>';
+ echo '<th>'._TIPUS.'</th>';
+ echo '<th>'._TELEPHELY.'</th>';
+ echo '</tr></thead>'."\n";
+ echo '<tfoot><tr></tr></tfoot>'."\n";
+ echo '<tbody>';
+ foreach ($ADAT['teremAdat'] as $teremId => $tAdat) {
+ echo '<tr>';
+ echo '<td>'.$tAdat['teremId'].'</td>';
+ echo '<td><a href="'.href('index.php?page=naplo&sub=intezmeny&f=terem&teremId='.$tAdat['teremId'].'&telephelyId='.$ADAT['telephelyId']).'">'.$tAdat['leiras'].'</a></td>';
+ echo '<td>'.$tAdat['ferohely'].'</td>';
+ echo '<td>'.$tAdat['tipus'].'</td>';
+ echo '<td>'.$ADAT['telephelyAdat'][ $tAdat['telephelyId'] ]['telephelyRovidNev'].'</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ echo '</div>'."\n";
+
+ }
+
+ function putTeremForm($ADAT) {
+
+ $tAdat = $ADAT['teremAdat'][ $ADAT['teremId'] ];
+
+ formBegin(array('class'=>'terem','action'=>href('index.php?page=naplo&sub=intezmeny&f=terem')));
+
+ if ($ADAT['teremId']=='') {
+ echo '<input type="hidden" name="action" value="ujTerem" />'."\n";
+ echo '<input type="hidden" name="teremId" value="" />'."\n";
+ echo '<h1>'._UJ_TEREM.'</h1>';
+ } else {
+ echo '<input type="hidden" name="action" value="teremAdatModositas" />'."\n";
+ echo '<input type="hidden" name="teremId" value="'.$ADAT['teremId'].'" />'."\n";
+ echo '<h1>'.$tAdat['leiras'].'</h1>';
+ }
+
+
+ echo '<div class="tipus">'."\n";
+ echo '<label for="tipus">'._TIPUS.'</label>'."\n";
+ echo '<select name="tipus" id="tipus" >'."\n";
+ $tipusok = explode(',', $tAdat['tipus']);
+ foreach ($tipusok as $tipus) $SEL[$tipus] = ' selected="selected" ';
+ foreach ($ADAT['teremTipusok'] as $tipus) echo '<option value="'.$tipus.'"'.$SEL[$tipus].'>'.$tipus.'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</div>'."\n";
+
+ echo '<div style="background-color: #eeeeee; text-align:left;">';
+
+ echo '<label for="teremId">'._TEREMID.'</label>'."\n";
+ echo '<span id="teremId">'.$ADAT['teremId'].'</span><br />';
+
+ echo '<label for="leiras">'._LEIRAS.'</label>'."\n";
+ echo '<input type="text" size="64" name="leiras" id="leiras" value="'.$tAdat['leiras'].'" /><br />'."\n";
+
+ echo '<label for="ferohely">'._FEROHELY.'</label>'."\n";
+ echo '<select name="ferohely" id="ferohely">'."\n";
+ $SEL = array($tAdat['ferohely'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 1; $i<1001; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ echo '</select><br />'."\n";
+
+ echo '<label for="telephely">'._TELEPHELY.'</label>'."\n";
+ echo '<select name="telephelyId" id="telephely">'."\n";
+ $SEL = array($tAdat['telephelyId'] => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['telephelyAdat'] as $telephelyId => $tAdat) {
+ echo '<option style="color: black" value="'.$telephelyId.'"'.$SEL[$telephelyId].'>'.$ADAT['telephelyAdat'][$telephelyId]['telephelyRovidNev'].'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '</div>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml
new file mode 100644
index 00000000..cafddee2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/tovabbkepzes.phtml
@@ -0,0 +1,479 @@
+<?php
+
+ putTovabbkepzesNavi();
+ function putTovabbkepzesNavi() {
+
+ echo '<div id="tovabbkepzesNavi">';
+
+ echo '<button type="button" data-nav="" class="icon-repeat-alt">'.'</button>';
+ echo '<button type="button" data-nav="tovabbkepzesTerv">'._TOVABBKEPZES_TERV.'</button>';
+ echo '<button type="button" data-nav="tanarTovabbkepzesek">'._TANAROK_TOVABBKEPZESEI.'</button>';
+ echo '<button type="button" data-nav="tanarTovabbkepzesForduloDt">'._TANAR.'</button>';
+ echo '<button type="button" data-nav="ujTovabbkepzes">'._TOVABBKEPZESEK.'</button>';
+
+ echo '</div>';
+
+ }
+
+ function putTovabbkepzesTerv($ADAT) {
+
+ if (count($ADAT['lehetsegesTovabbkepzesek'])==0) return false;
+
+ $TOVABBKEPZESEK = reindex($ADAT['tovabbkepzesek'],array('tovabbkepzesId'));
+ $TANAROK = reindex($ADAT['tanarok'],array('tanarId'));
+ $TE_STATUSZ = array('','terv','jóváhagyott','elutasított','megszűnt','megszakadt','teljesített');
+ $TE_STATUSZ_INDIKATOR = array(
+ '' =>'<span class="icon-pause-alt" style="color:#777;"></span>',
+ 'terv' => '<span class="icon-ok-circle" style="color:cornflowerblue"></span>',
+ 'jóváhagyott' => '<span class="icon-ok-sign" style="color:green"></span>',
+ 'elutasított' => '<span class="icon-minus-sign" style="color:red"></span>',
+ 'megszakadt' => '<span class="icon-remove-sign" style="color:black"></span>',
+ 'megszűnt' => '<span class="icon-remove-sign" style="color:black"></span>',
+ 'teljesített' => '<span class="icon-star-alt" style="color:orange"></span>');
+
+ $TE = reindex($ADAT['tovabbkepzesTerv'],array('tovabbkepzesId','tanarId','tanev'));
+ formBegin(array('id'=>'tovabbkepzesTerv'));
+ echo '<h1>';
+ echo _TOVABBKEPZES_TERV.' – '.$ADAT['tanev'];
+ if (__TANAR) echo ' – '._USERCN;
+ if (__NAPLOADMIN || __VEZETOSEG || __TITKARSAG) echo ' – <a href="'.href('index.php?page=naplo&sub=nyomtatas&f=beiskolazasiTerv&tanev='.$ADAT['tanev']).'" class="icon-print" style="color:black"></a>';
+ echo '</h1>';
+ echo '<input type="hidden" name="action" value="ujTovabbkepzesTE" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ // Így is lehet, de inkább listázzuk ki az összes lehetséges továbbképzést
+ /*
+ echo '<select name="ujTovabbkepzesTanar">';
+ for ($i=0;$i<count($ADAT['lehetsegesTovabbkepzesek']); $i++) {
+ $_D = $ADAT['lehetsegesTovabbkepzesek'][$i];
+ echo '<option value="'.$_D['tovabbkepzesId'].'_'.$_D['tanarId'].'">'.$TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['tovabbkepzesNev'].' '.$TANAROK[$_D['tanarId']][0]['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ */
+ echo '<table align="center" id="tovabbkepzesTerv" class="tovabbkepzes" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="3">'._TOVABBKEPZES.'</th>';
+ echo '<th>'._TOVABBKEPZES_FORDULO_DT.'</th>';
+ echo '<th>'._RESZOSSZEG.'</th>';
+ echo '<th>'._TAMOGATAS.'</th>';
+ echo '<th>'._MEGJEGYZES.'</th>';
+ echo '<th colspan="2">'._STATUSZ.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ if (__MODOSITHAT) {
+ echo '<tfoot>';
+ echo '<tr><th colspan="4">'._TAMOGATASI_KERET.': <input type="text" class="currency" id="keretOsszeg" name="keretOsszeg" value="'.intval($ADAT['keretOsszeg']).'" /> Ft.-</th>';
+ echo '<td class="osszeg"><input type="text" class="sumCurrency" id="sumOsszeg_ok" disabled="disabled" value="0" /> Ft.-</td>';
+ echo '<td class="osszeg"><input type="text" class="sumCurrency" id="sumTamogatas_ok" disabled="disabled" value="0" /> Ft.-</td>';
+ echo '<th colspan="1" id="tamogatasInfo"></th>';
+ echo '<th colspan="2"><input type="submit" value="OK" /></th>';
+ echo '</th></tr></tfoot>';
+ }
+ echo '<tbody>';
+ for ($i=0;$i<count($ADAT['lehetsegesTovabbkepzesek']); $i++) {
+ $_D = $ADAT['lehetsegesTovabbkepzesek'][$i];
+ $_D_TE = $TE[$_D['tovabbkepzesId']][$_D['tanarId']][$ADAT['tanev']][0];
+ $_kulcs = $_D['tovabbkepzesId'].'_'.$_D['tanarId'].'_'.$ADAT['tanev'];
+ $_readOnly = (isset($_D_TE) && !in_array($_D_TE['tovabbkepzesStatusz'],array('terv'))) ? 'readonly="readonly"' : '';
+ if (!__MODOSITHAT && (!(__TANAR && $_D['tanarId']==__USERTANARID))) continue;;
+ echo '<tr class="tovabbkepzesTESor '.$_D_TE['tovabbkepzesStatusz'].'"
+ data-reszosszeg="'.$_D_TE['reszosszeg'].'"
+ data-tamogatas="'.$_D_TE['tamogatas'].'"
+ data-tanarnev="'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'"
+ >';
+ echo '<th>';
+ echo '<input type="hidden" name="TE[]" value="'.$_kulcs.'" />';
+ echo $TE_STATUSZ_INDIKATOR[$_D_TE["tovabbkepzesStatusz"]];
+ echo '</th>';
+ echo '<td>';
+ echo $TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['tovabbkepzesNev'].' ';
+ echo '</td>';
+ echo '<td data-tanarid='.$_D['tanarId'].' class="tanarNev">'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'</td>';
+
+ echo '<td>';
+ echo $TANAROK[$_D['tanarId']][0]['tovabbkepzesForduloDt'];
+ echo '</td>';
+
+ echo '<td class="osszeg">';
+ echo '<input type="text" '.$_readOnly.' class="currency" id="reszosszeg_'.$_kulcs.'" name="reszosszeg_'.$_kulcs.'" value="'.intval($_D_TE['reszosszeg']).'" data-inputtype="reszosszeg" data-kulcs="'.$_kulcs.'" data-tovabbkepzesstatusz="'.$_D_TE['tovabbkepzesStatusz'].'" /> Ft.-';
+ echo '</td>';
+ echo '<td class="osszeg">';
+ echo '<input type="text" '.$_readOnly.' class="currency" id="tamogatas_'.$_kulcs.'" name="tamogatas_'.$_kulcs.'" value="'.intval($_D_TE['tamogatas']).'" data-inputtype="tamogatas" data-kulcs="'.$_kulcs.'" data-tovabbkepzesstatusz="'.$_D_TE['tovabbkepzesStatusz'].'" /> Ft.-';
+ echo '</td>';
+ /* más kontrollok is elképzelhetők, pl input gombok
+ echo '<td>';
+ echo '<input type="submit" name="terv_'.$_kulcs.'" value="tervbe vesz" />';
+ echo '<input type="submit" name="jovahagy_'.$_kulcs.'" value="jóváhagy" />';
+ echo '<input type="submit" name="elutasit_'.$_kulcs.'" value="elutasít" />';
+ echo '<input type="submit" name="megszuntet_'.$_kulcs.'" value="megszűntet" />';
+ echo '</td>';
+ */
+ echo '<td style="text-align:center;">';
+ echo '<span style="cursor:zoom-in; padding:0px 30px;" class="tovabbkepzesMegjegyzes icon-list-alt" data-kulcs="'.$_kulcs.'" data-tovabbkepzesid="'.$_D['tovabbkepzesId'].'" data-tanarid="'.$_D['tanarId'].'" data-tanev="'.$ADAT['tanev'].'" ></span>';
+ echo '<div id="tovabbkepzesMegjegyzes_'.$_kulcs.'" style="display:none">';
+ echo '<table>';
+ echo '<tr><th>'._TAVOLLET.'</th><td><textarea style="display:none;" maxlength="254" cols="80" name="tavollet_'.$_kulcs.'">'.$_D_TE['tavollet'].'</textarea></td></tr>';
+ echo '<tr><th>'._HELYETTESITES_RENDJE.'</th><td><textarea style="display:none;" maxlength="254" cols="80" name="helyettesitesRendje_'.$_kulcs.'" />'.$_D_TE['helyettesitesRendje'].'</textarea></td></tr>';
+ echo '<tr><th>'._PRIORITAS.'</th><td><textarea style="display:none;" maxlength="254" cols="80" name="prioritas_'.$_kulcs.'">'.$_D_TE['prioritas'].'</textarea></td></tr>';
+ echo '</table>';
+ echo '</div>';
+ echo '</td>';
+ echo '<td>';
+ if (__MODOSITHAT===true) {
+ echo '<select name="TE_statusz_'.$_kulcs.'">';
+ for ($j=0; $j<count($TE_STATUSZ); $j++) {
+ $_SEL = ($TE_STATUSZ[$j]==$_D_TE['tovabbkepzesStatusz']) ? 'selected="selected"':'';
+ echo '<option name="'.$TE_STATUSZ[$j].'" '.$_SEL.'>'.$TE_STATUSZ[$j].'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo $_D_TE['tovabbkepzesStatusz'];
+ }
+ echo '</td>';
+ echo '<th style="background-color:#888;">';
+ //$_kulcs = $_D['tovabbkepzesId'].'_'.$_D['tanarId'].'_'.$ADAT['tanev'];
+ echo '<a href="'.href('index.php?page=naplo&sub=nyomtatas&f=tovabbkepzesHatarozat&tanarId='.$_D['tanarId'].'&tanev='.$ADAT['tanev'].'&tovabbkepzesId='.$_D['tovabbkepzesId']).'" class="icon-print" style="color:white;"></a>';
+ echo '</th>';
+
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>';
+ // extra: jovahagyasDt, teljesitesDt
+
+ if (count($ADAT['lehetsegesTovabbkepzesek'])>0) {
+ echo '<div id="grafikonTamogatas" style="width: 300px; height: 300px; display:table-cell"></div>';
+ echo '<div id="grafikonOsszegEloszlas" style="width: 550px; height: 300px; display:table-cell"></div>';
+ echo '<div style="clear:both"></div>';
+ }
+
+ formEnd();
+
+ }
+
+ function putTanarokTovabbkepzesAdatai($ADAT) {
+
+// $tovabbkepzesStatusz = array('terv','jóváhagyott','elutasított','megszűnt','megszakadt','teljesített');
+ $tovabbkepzesStatusz = array('teljesített','jóváhagyott','terv');
+
+ formBegin(array('id'=>'tanarTovabbkepzesForduloDt'));
+ echo '<input type="hidden" name="action" value="modTanarTovabbkepzesForduloDt" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ echo '<table align="center" id="tanarAdatok" class="tovabbkepzes" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="1">';
+ _inlineHelp('A teljesített, jóváhagyott és tervezett továbbképzések összegét a státuszaiknak megfelelő színnel jelezzük az aktuális hét éves ciklusban. A nem akkreditált képzésnél maximum 30 órát számítunk!');
+ echo '</th>';
+ echo '<th colspan="3">'._TANAR.' ';
+ _inlineHelp('A táblázatban a tanárokra vonatkozó státuszok olvashatók. Ha egy tanár továbbképzés forduló dátuma a következő két évben várható és nem éri el a 120 órányi továbbképzést, figyelmeztető felkiáltó jellel jelezzük.');
+ echo '</th>';
+ echo '<th>'._HETI_KOTELEZO_ORASZAM.'</th>';
+ echo '<th>'._HETI_MUNKAORA.'</th>';
+ echo '<th>'._STATUSZ.'</th>';
+ echo '<th>';
+ _inlineHelp('A hétéves ciklus végének számít.');
+ echo ' '._TOVABBKEPZES_FORDULO_DT.' ';
+ echo '</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="8"><input type="submit" value="OK" /></th>';
+ echo '</th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i=0;$i<count($ADAT['tanarok']); $i++) {
+ $_D = $ADAT['tanarok'][$i];
+ $_TTC = $ADAT['tanarTovabbkepzesCiklus'][$_D['tanarId']];
+ $_forduloEv = date('Y',strtotime($_D['tovabbkepzesForduloDt']));
+ $_timeframeAlert = ($_forduloEv<=date('Y')+2);
+ $_evdiff = ($_forduloEv-date('Y'));
+ $_sum = 0;
+ $_class = ($_timeframeAlert) ? 'alert':'';
+ echo '<tr>';
+ echo '<th class="tovabbkepzesCiklus '.$_class.'" ';
+ foreach($tovabbkepzesStatusz as $_status) {
+ echo 'data-'.$_status.'="'.$_TTC[$_status][0]['sumOraszam'].'" ';
+ }
+ echo '>';
+ echo '<div>';
+ foreach($tovabbkepzesStatusz as $_status) {
+ if (($_c = intval($_TTC[$_status][0]['sumOraszam']))>0)
+ echo '<span title="'.$_status.'" class="'.ekezettelen($_status).'" style="width:'.$_c.'px">'.$_c.'</span>';
+ $_sum += $_c;
+ }
+ echo '</div>';
+ echo '<span class="forduloEv left">'.($_forduloEv-8).'/'.($_forduloEv-7).'</span>';
+ echo '<span class="forduloEv right">'.($_forduloEv-1).'/'.($_forduloEv).'</span>';
+ echo '</th>';
+ echo '<th>';
+ if ($_timeframeAlert) {
+ if ($_sum<120) {
+ if ($_evdiff>=0) $_class='alert'.$_evdiff;
+ else $_class='alert';
+ echo '<span class="icon-warning-sign '.$_class.'"></span>';
+ } else {
+ echo '<span class="icon-ok kesz"></span>';
+ }
+ } else {
+ if (is_array($ADAT['tovabbkepzesFolyamat'][$_D['tanarId']]))
+ echo '<span class="icon-play folyamatban"></span>';
+ else
+ echo '<span class="icon-pause varakozik"></span>';
+ }
+ echo '</th>';
+ echo '<td class="oraszam">';
+ echo $_sum;
+ echo '</td>';
+ echo '<td class="tanarNev" data-tanarid="'.$_D['tanarId'].'">'.$_D['tanarNev'].'</td>';
+ echo '<td class="oraszam">'.$_D['hetiKotelezoOraszam'].'</td>';
+ echo '<td class="oraszam">'.$_D['hetiMunkaora'].'</td>';
+ echo '<td>'.$_D['statusz'].'</td>';
+ echo '<td>';
+ echo '<select "tovabbkepzesForduloDt_'.$_D['tanarId'].'" data-tanarid="'.$_D['tanarId'].'" >';
+ echo '<option value=""></option>';
+ for ($y=1990;$y<=2030;$y++) {
+ $_SEL = ($y==date('Y',strtotime($_D['tovabbkepzesForduloDt']))) ? ' selected="selected" ':'';
+ echo '<option value="'.$y.'-08-31" '.$_SEL.'>'.$y.'</option>';
+ }
+ echo '</select>';
+ echo '<input type="text" class="datum" name="tovabbkepzesForduloDtTXT_'.$_D['tanarId'].'" value="'.$_D['tovabbkepzesForduloDt'].'" data-tanarid="'.$_D['tanarId'].'" readonly="readonly" />';
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ }
+
+
+ function putTovabbkepzesek($ADAT) {
+ /* tovabbkepzesTanar:
+ `tovabbkepzesId` smallint(5) unsigned NOT NULL,
+ `tanarId` int(10) unsigned NOT NULL,
+ `tolDt` date NOT NULL,
+ `igDt` date DEFAULT NULL,
+ `tanusitvanyDt` date DEFAULT NULL,
+ `tanusitvanySzam` varchar(255) COLLATE utf8_hungarian_ci DEFAULT NULL,
+ */
+ if (count($ADAT['tovabbkepzesek'])==0) return false;
+
+ $TOVABBKEPZESEK = reindex($ADAT['tovabbkepzesek'],array('tovabbkepzesId'));
+ $TANAROK = reindex($ADAT['tanarok'],array('tanarId'));
+
+
+ /* Listázzuk a továbbképzések hozzárendelését egy tanárhoz, illetve új hozzárendelést is tehessünk */
+
+ formBegin(array('id'=>'tanarTovabbkepzesek'));
+ echo '<h1>'._TANAROK_TOVABBKEPZESEI.'</h1>';
+ echo '<input type="hidden" name="action" value="ujTovabbkepzesTanar" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ // legyen itt egy táblázat
+ echo '<table class="tovabbkepzes" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'.'</th>';
+ echo '<th>'._TANAR.'</th>';
+ echo '<th colspan="2">'._TOVABBKEPZES.'</th>';
+ echo '<th>'._TOLDT.'</th>';
+ echo '<th>'._IGDT.'</th>';
+ echo '<th>'._TANUSITVANYDT.'</th>';
+ echo '<th>'._TANUSITVANYSZAM.'</th>';
+ echo '<th>'.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ if (__MODOSITHAT) { // a táblázat első sora egy inputokból álló sor
+ echo '<tfoot>';
+ echo '<tr><th colspan="10">';
+ echo '<input type="submit" value="OK" />';
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th><span class="icon-pencil-alt"></span></th>';
+ echo '<td>';
+ echo '<select style="width:120px" name="tanarId">';
+ echo '<option value=""></option>';
+ for ($i=0;$i<count($ADAT['tanarok']); $i++) {
+ $_D = $ADAT['tanarok'][$i];
+ echo '<option value="'.$_D['tanarId'].'">'.$_D['tanarNev'].'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td colspan="2">';
+ echo '<select name="tovabbkepzesId" class="tovabbkepzesNev">';
+ echo '<option value=""></option>';
+ for ($i=0;$i<count($ADAT['tovabbkepzesek']); $i++) {
+ $_D = $ADAT['tovabbkepzesek'][$i];
+ echo '<option value="'.$_D['tovabbkepzesId'].'">'.$_D['tovabbkepzesNev'].' '.$_D['oraszam'].'ó</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '<td><input type="text" class="datum date" name="tolDt" /></td>';
+ echo '<td><input type="text" class="datum date" name="igDt" /></td>';
+ echo '<td><!--<input type="text" class="datum date" name="tanusitvanyDt" />--></td>';
+ echo '<td><!--<input type="text" class="" name="tanusitvanySzam" />--></td>';
+ echo '<th><input type="submit" value="+" /></th>';
+ echo '</tr>';
+ echo '</tbody>';
+ } // módosíthat
+ echo '<tbody>';
+ for ($i=0;$i<count($ADAT['tovabbkepzesTanar']);$i++) {
+ $_D = $ADAT['tovabbkepzesTanar'][$i];
+ $_kulcs = $_D['tovabbkepzesId'].'_'.$_D['tanarId'];
+ $_readonly = ($_D['tanusitvanyDt']!='0000-00-00' && $_D['tanusitvanyDt']!='') ? ' readonly="readonly" ':'';
+ echo '<tr class="tovabbkepzesTanarSor"
+ data-oraszam="'.intval($TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['oraszam']).'"
+ data-tanarnev="'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'"
+ data-toldt="'.$_D['tolDt'].'"
+ data-igdt="'.$_D['igDt'].'">';
+ echo '<td>';
+ echo $_D['tovabbkepzesId'];
+ echo '<input type="hidden" name="tovabbkepzesTanar[]" value="'.$_kulcs.'" />';
+ echo '</td>';
+ echo '<td class="tanarNev" data-tanarid="'.$_D['tanarId'].'" >'.$TANAROK[$_D['tanarId']][0]['tanarNev'].'</td>';
+ echo '<td>'.$TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['tovabbkepzesNev'].'</td>';
+ echo '<td style="text-align:right;">'.$TOVABBKEPZESEK[$_D['tovabbkepzesId']][0]['oraszam'].'</td>';
+ echo '<td><input type="text" class="date" '.$_readonly.' name="tolDt_'.$_kulcs.'" value="'.$_D['tolDt'].'" /></td>';
+ echo '<td><input type="text" class="date" '.$_readonly.' name="igDt_'.$_kulcs.'" value="'.$_D['igDt'].'" /></td>';
+ echo '<td><input type="text" class="date" name="tanusitvanyDt_'.$_kulcs.'" value="'.$_D['tanusitvanyDt'].'" /></td>';
+ echo '<td><input type="text" class="" name="tanusitvanySzam_'.$_kulcs.'" value="'.$_D['tanusitvanySzam'].'" /></td>';
+ echo '<th>';
+ if (__MODOSITHAT) echo '<input type="submit" class="" name="tovabbkepzesTorles_'.$_kulcs.'" value="-" />';
+ echo '</th>';
+ echo '</tr>';
+ if ($_D['tolDt']!='0000-00-00' && $_D['tolDt']!='') $dbSor++;
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ if (($dbSor)>0) { // esettleg darabszám alapjn növelhetjük a méretet
+ if ($dbSor<20) $_height=40*$dbSor + 70;
+ else $_height = 600;
+ echo "<div id=\"timeline\" style=\"height: ".$_height."px; width:95%; margin:40px;\"></div>";
+ }
+ //echo '<div class="separator"></div>';
+ formEnd();
+
+ }
+
+ function putUjTovabbkepzes($ADAT) {
+
+ $KAT = array('diploma','szakvizsga','akkreditált','egyéb');
+
+ echo '<div id="ujTovabbkepzes">';
+ echo '<h1>'._TOVABBKEPZESEK.'</h1>';
+
+ formBegin();
+ echo '<h2>'._UJ_TOVABBKEPZES.'</h2>';
+ echo '<input type="hidden" name="action" value="ujTovabbkepzes" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+
+ echo '<table>';
+
+ echo '<tfoot><tr>';
+ echo '<th colspan="2">'.'<input type="submit" value="OK" /></th>';
+ echo '</tr></tfoot>';
+
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th>';
+ echo _INTEZMENY;
+ echo '</th>';
+ echo '<td>';
+ echo '<select name="tovabbkepzoIntezmenyId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT['tovabbkepzoIntezmenyek']); $i++) {
+ $_D = $ADAT['tovabbkepzoIntezmenyek'][$i];
+ echo '<option value="'.$_D['tovabbkepzoIntezmenyId'].'">'.$_D['intezmenyRovidNev'].'-'.$_D['intezmenyNev'].'</option>';
+ }
+ echo '</select> ';
+ //_inlineHelp(_TOVABBPEZOINTEZMENY_HELP);
+ echo ' <span class="icon-plus-sign ujIntezmeny"></span>';
+// _inlineHelp(_TOVABBPEZOINTEZMENY_HELP);
+
+ echo '</td></tr>';
+ echo '<tr>';
+ echo '<th>'._TOVABBKEPZES_NEV.'</th>';
+ echo '<td><input type="text" name="tovabbkepzesNev" style="width:350px;"/></td>';
+
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._ORASZAM.'</th>';
+ echo '<td>'.'<input type="text" name="oraszam" /></td>';
+
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._AKKREDITALT.'</th>';
+ echo '<td>';
+ // '<input type="checkbox" name="akkreditalt" value="1" />';
+ echo '<select name="kategoria_'.$_kulcs.'">';
+ for ($j=0;$j<count($KAT); $j++) {
+ echo '<option value="'.$KAT[$j].'">'.$KAT[$j].'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+
+ if (count($ADAT['tovabbkepzesek'])>0) {
+
+ formBegin(array('id'=>'tovabbkepzesek'));
+ echo '<h2>'._FELVETT_TOVABBKEPZESEK.'</h2>';
+ echo '<input type="hidden" name="action" value="modTovabbkepzes" />';
+ echo '<table align="center" class="tovabbkepzes" cellspacing="1">';
+ echo '<thead><tr>';
+ echo '<th>'._TOVABBKEPZES_NEV.'</th>';
+ echo '<th>'._ORASZAM.'</th>';
+ echo '<th>'._AKKREDITALT.'</th>';
+ echo '<th>'._INTEZMENY.'</th>';
+ echo '<th></th>';
+ echo '</tr></thead>';
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['tovabbkepzesek']); $i++) {
+ $_D = $ADAT['tovabbkepzesek'][$i];
+ $_kulcs = $_D['tovabbkepzesId'];
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="hidden" name="tovabbkepzesId[]" value="'.$_D['tovabbkepzesId'].'" />';
+ echo '<input style="width:100%" type="text" name="tovabbkepzesNev_'.$_kulcs.'" value="'.$_D['tovabbkepzesNev'].'"/>';
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo '<input type="text" name="oraszam_'.$_kulcs.'" value="'.$_D['oraszam'].'" / > óra';
+ echo '</td>';
+ echo '<td>';
+ //echo '<input type="checkbox" name="akkreditalt_'.$_kulcs'" value="" /> ';
+ echo '<select name="kategoria_'.$_kulcs.'">';
+ for ($j=0;$j<count($KAT); $j++) {
+ $_SEL = ($KAT[$j]==$_D['kategoria']) ? ' selected="selected" ':'';
+ echo '<option name="'.$KAT[$j].'" '.$_SEL.'>'.$KAT[$j].'</option>';
+ }
+ echo '</select>';
+ if ($_D['akkreditalt']==1) echo ' '._AKKREDITALT;
+ echo '</td>';
+ echo '<td>';
+ echo $_D['intezmenyRovidNev'];
+ echo ' ('.$_D['tovabbkepzoIntezmenyId'].')';
+ echo '</td>';
+
+ echo '<td>';
+ echo '<input type="submit" value="OK" />';
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+ }
+
+ echo '</div>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml
new file mode 100644
index 00000000..75e6f446
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/valtas.phtml
@@ -0,0 +1,85 @@
+<?php
+
+function putTanarLista($ADAT) {
+
+ echo '<table class="tanarLista" align="center" cellpadding="1" cellspacing="1">';
+ echo '<tr>';
+ for($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $T = $ADAT['tanarok'][$i];
+ echo '<td>';
+ putFace($T['tanarId'],'tanar',30);
+ echo '</td><td>';
+ echo '<span class="tanarNev" data-tanarid="'.$T['tanarId'].'">'.$T['tanarNev'].'</span>';
+ if ($T['titulus']!='') echo '<div class="titulus">'.$T['titulus'].'</div>';
+ $osztalyai = ($ADAT['tanarOsztaly'][$T['tanarId']]);
+ for ($j=0; $j<count($osztalyai); $j++) {
+ $_osztalyId = $osztalyai[$j];
+ echo '<br/><div class="osztalyfonok" style="color:#aaa; font-size:smaller">osztályfőnök '.$ADAT['osztalyok'][$_osztalyId]['osztalyJel'];
+ echo ' ('.$ADAT['osztalyok'][$_osztalyId]['leiras'].')</div>';
+ }
+ $munkakozossegei = ($ADAT['tanarMunkakozosseg'][$T['tanarId']]); // vezetett
+ for ($j=0; $j<count($munkakozossegei); $j++) {
+ $_mkId = $munkakozossegei[$j];
+ echo '<div class="munkakozossegVezeto" style="color:#aaa; font-size:smaller">';
+ echo $munkakozossegei[$j]['munkakozossegNev']. ' munkaközösség-vezető';
+ echo '</div>';
+ }
+ echo '</td>';
+ if (($i+1) % 3 == 0 && $i!=count($ADAT['tanarok'])-1) echo '</tr><tr>';
+ }
+ echo '</tr>';
+ echo '</table>';
+}
+
+/*
+function putIntezmenyValaszto($Intezmenyek) {
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="intezmenyValasztas" />'."\n";
+
+ echo '<select name="intezmeny">'."\n";
+ $SEL = array(__INTEZMENY => ' selected="selected"');
+
+ for ($i = 0; $i < count($Intezmenyek); $i++) {
+
+ $rovidnev = $Intezmenyek[$i]['rovidNev'];
+ if ($Intezmenyek[$i]['alapertelmezett'] == 1)
+ echo '<option value="'.$rovidnev.'" class="default"'.$SEL[$rovidnev].'>';
+ else
+ echo '<option value="'.$rovidnev.'"'.$SEL[$rovidnev].'>';
+
+ echo $Intezmenyek[$i]['nev'].' ('.$Intezmenyek[$i]['OMKod'].')';
+ echo '</option>'."\n";
+
+ }
+
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putTanevValaszto($Tanevek) {
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="tanevValasztas" />'."\n";
+
+ echo '<select name="tanev">'."\n";
+ $SEL = array(__TANEV => ' selected="selected"');
+ for ($i = 0; $i < count($Tanevek); $i++) {
+ echo '<option value="'.$Tanevek[$i].'"'.$SEL[$Tanevek[$i]].'>';
+ echo $Tanevek[$i];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+}
+*/
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml
new file mode 100644
index 00000000..2dcd0d84
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/verseny.phtml
@@ -0,0 +1,41 @@
+<?php
+
+function putVersenyek() {
+
+ echo '<h1>'._VERSENYEK.'</h1>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="no-action" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+function putUjVerseny($ADAT) {
+
+ formBegin();
+
+ echo _TARGY;
+ echo '<select name="targyId">';
+
+ echo '<option value=""></option>';
+ for($i=0; $i<count($ADAT); $i++) {
+ $targyId = $ADAT[$i]['targyId'];
+ $targyNev = $ADAT[$i]['targyNev'];
+ echo '<option value="'.$targyId.'">'.$targyNev.'</option>';
+ }
+
+ echo '</select>';
+
+ echo _VERSENYNEV;
+ echo '<input type="text" name="versenyNev" />';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+}
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml
new file mode 100644
index 00000000..9382738e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/intezmeny/zaradek.phtml
@@ -0,0 +1,78 @@
+<?php
+
+ function putZaradekForm($ADAT) {
+ formBegin(array('class'=>'zaradek'));
+
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="zaradekIndex" value="'.$ADAT['zaradekIndex'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="zaradekRogzites" />'."\n";
+
+ $tmp = explode('%', $ADAT['zaradek']['szoveg']);
+ $szoveg = '<p>';
+ for ($i = 0; $i < count($tmp); $i++) {
+ if ($i % 2 == 0) {
+ $szoveg .= $tmp[$i];
+ } else {
+ $szoveg .= '<span id="param'.intval(($i+1)/2).'span">'.$tmp[$i].'</span>';
+ }
+ }
+ $szoveg .= '</p>';
+
+ echo $szoveg;
+ echo '<table>';
+ for ($i = 0; $i < count($ADAT['params']); $i++) {
+ echo '<tr>';
+ echo '<th><label for="param'.$i.'">'.$ADAT['params'][$i].'</label></th>'."\n";
+ echo '<td><input type="text" name="values[]" value="" id="param'.($i+1).'" class="onChangeReplaceSpan" /></td>'."\n";
+ echo '</tr>';
+ }
+ echo '<tr><th>'._IKTATOSZAM.'</th><td>';
+ echo '<input type="text" name="iktatoszam" />';
+ echo '</td></tr>';
+ echo '</table>';
+
+ echo '<div><input type="submit" value="'._OK.'" /></div>'."\n";
+
+ formEnd();
+ }
+
+ function putDiakZaradekok($ADAT) {
+
+ formBegin(array('class'=>'diakZaradek'));
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="action" value="zaradekTorles" />';
+ echo '<table>'."\n";
+
+ echo '<thead><tr>';
+ echo '<th>'._DATUM.'</th>';
+ echo '<th>'._SORSZAM.'</th>';
+ echo '<th>'._SZOVEG.'</th>';
+ echo '<th colspan="2">'._DOKUMENTUM.'</th>';
+ echo '</tr></thead>'."\n";
+ echo '<tfoot></tfoot>'."\n";
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['diakZaradekok']); $i++) {
+ echo '<tr>';
+ echo '<td>'.$ADAT['diakZaradekok'][$i]['dt'].'</td>';
+ echo '<td class="jobbra">'.$ADAT['diakZaradekok'][$i]['sorszam'].'</td>';
+ echo '<td>'.$ADAT['diakZaradekok'][$i]['szoveg'].'</td>';
+ echo '<td>'.$ADAT['diakZaradekok'][$i]['dokumentum'].'</td>';
+
+ echo '<td>';
+ if (__NAPLOADMIN) {
+ echo '<input class="confirm delZaradek" title="BIZTOS_TOROL_E" type="submit" value="X" name="del-'.$ADAT['diakZaradekok'][$i]['zaradekId'].'" />';
+ }
+ echo '</td>';
+
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml b/mayor-orig/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml
new file mode 100644
index 00000000..b1483200
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/koszi/esemenyAdmin.phtml
@@ -0,0 +1,246 @@
+<?php
+
+ function putUjKosziEsemeny($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Új esemény</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKosziEsemeny">';
+
+ echo _TIPUS;
+ echo '<select name="kosziEsemenyTipus">';
+ for ($i=0; $i<count($ADAT['kosziEsemenyTipusok']); $i++) {
+ $K = $ADAT['kosziEsemenyTipusok'][$i];
+ echo '<option value="'.$K.'">'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+
+
+ echo '<br/>';
+ echo _NEV;
+ echo '<input type="text" name="kosziEsemenyNev" />';
+
+
+ echo '<br/>';
+ echo _LEIRAS;
+ echo '<input type="text" name="kosziEsemenyLeiras" size="88"/>';
+
+
+
+// echo _INTERVALLUM (igen/nem);
+
+ echo '<input type="submit" value="felvesz" />';
+
+ formEnd();
+ echo '</fieldset>'."\n";
+
+ }
+
+ function putKosziEsemenyek($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi esemény minták</legend>';
+
+ formBegin();
+
+ echo '<select name="kosziEsemenyId">';
+ echo '<option value=""></option>';
+ for ($i=0; $i<count($ADAT['kosziEsemenyek']); $i++) {
+ $K = $ADAT['kosziEsemenyek'][$i];
+ $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziEsemenyId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K['kosziEsemenyId'].'" '.$_SEL.'>'.$K['kosziEsemenyNev'].' ('.$K['kosziEsemenyLeiras'].')</option>'."\n";
+ }
+ echo '</select>';
+ echo '<input type="submit" value="adatok »" />';
+
+ formEnd();
+ echo '</fieldset>';
+ }
+
+ function putKosziPont($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Kapható pontok</legend>';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._PONTTIPUS.'</th><th>'._HELYEZES.'</th><th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+
+ echo '<tr>';
+ echo '<td>'.$K['kosziPontTipus'].'</td>';
+ echo '<td>'.$K['kosziHelyezes'].'</td>';
+ echo '<td>'.$K['kosziPont'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+
+ echo '<fieldset class="koszi"><legend>Új ponttípus</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujPont" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziPontTipus">';
+ for ($i=0; $i<count($ADAT['kosziPontTipusok']); $i++) {
+ $K = $ADAT['kosziPontTipusok'][$i];
+// $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K.'" '.$_SEL.'>'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+ echo '<select name="kosziHelyezes">';
+ echo '<optgroup label="helyezés">';
+ echo '<option></option>';
+ for ($i=1; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ echo '<select name="kosziPont"><optgroup label="pont">';
+ for ($i=0; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup></select>';
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+ /* TANÉV */
+
+ function putKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="delKoszi" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ if (count($ADAT['koszi'])==0) {
+ echo '<div class="empty">'._NINCS.'</div>';
+ } else {
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th>'._IGAZOLOK.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ echo '<tr>';
+ echo '<td>'.$K['dt'].'</td>';
+ echo '<td>'.$K['felev'].'</td>';
+ echo '<td>'.$K['igazolo'].'</td>';
+ echo '<td><input type="checkbox" name="kosziId[]" value="'.$K['kosziId'].'" /></td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ }
+
+ echo '<input type="submit" value="a kijelöltek végleges törlése" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+
+
+ }
+
+ function putUjKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>'._UJ_ESEMENY.'</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKoszi">';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<table class="koszi" style="width:100%">';
+ echo '<tr><th>'._DATUM.'</th><th>'._JELENTKEZES.'</th><th colspan="3">'._IGAZOLOK.'</th>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" value="" name="dt" class="date" />';
+ echo '<br/>Félév:<select name="felev"><option value=""></option><option value="1">1</option><option value="2">2</option></select>';
+
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="text" value="" name="tolDt" class="datetime" />-';
+ echo '<input type="text" value="" name="igDt" class="datetime" />';
+ echo '</td>';
+
+ echo '<td>';
+ // típus, aki igazolhat: diák osztályfőnöke
+ //echo '<input type="checkbox" name="igazolo[]" value="diák" />diák';
+ echo '<ul>';
+ echo '<li><input type="checkbox" name="igazolo[]" value="dök" />diákönkörmányzat</li>';
+ echo '<li><input type="checkbox" name="igazolo[]" value="tanár" />tanár</li>';
+ echo '<li><input type="checkbox" name="igazolo[]" value="osztályfőnök" />osztályfőnök</li>';
+ echo '</ul>';
+ echo '</td>';
+
+/* echo '<td>';
+ echo '<select name="osztalyfonokId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $K = $ADAT['osztalyok'][$i];
+ echo '<option value="'.($K['osztalyfonok']['tanarId']).'">';
+ echo $K['osztalyJel'].' - ';
+ echo $K['osztalyfonok']['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tanarId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $K = $ADAT['tanarok'][$i];
+ echo '<option value="'.($K['tanarId']).'">';
+ echo $K['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="diakId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $K = $ADAT['diakok'][$i];
+ echo '<option value="'.($K['diakId']).'">';
+ echo $K['diakNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+*/
+
+ echo '<td>';
+ echo '<select name="targyId">';
+ echo '<option value=""> - tanár esetén, tárgyra szűkítés - </option>';
+ for ($i=0; $i<count($ADAT['targyak']); $i++) {
+ $K = $ADAT['targyak'][$i];
+ echo '<option value="'.($K['targyId']).'">';
+ echo $K['targyNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+
+ echo '</tr>';
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/koszi/koszi.phtml b/mayor-orig/www/skin/classic/module-naplo/html/koszi/koszi.phtml
new file mode 100644
index 00000000..2b580a8b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/koszi/koszi.phtml
@@ -0,0 +1,277 @@
+<?php
+
+ function putKosziDiakLista($ADAT) {
+
+
+ if (count($ADAT['kosziDiakLista'])==0) return;
+
+ $KET = array('iskolai rendezvény','DÖK rendezvény','tanulmányi verseny','sportverseny','foglalkozás','tevékenység','hiányzás');
+
+ echo '<fieldset class="koszi"><legend>Ezekre az eseményekre jelentkeztél</legend>';
+
+ echo '<table class="koszi" align="center" cellspacing="1">';
+ echo '<tr class="head"><th>'._MIKOR.'</th><th colspan="3">'._ESEMENY.'</th><th>'._PONT.'</th>';
+//<th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziDiakLista']); $i++) {
+ $K = $ADAT['kosziDiakLista'][$i];
+ if ($K['jovahagyva']==1) {
+ $pontsum += $K['pont'];
+ $_class = ' class="jovahagyva" ';
+ } else {
+ $_class='';
+ }
+ $l=array_keys($KET,$K['kosziEsemenyTipus']);
+
+ echo '<tr '.$_class.'>';
+ echo '<td>'.date('Y.m.d. H:i',strtotime($K['rogzitesDt'])).'</td>';
+ echo '<td><span class="tag tag'.$l[0].'">'.$K['kosziEsemenyTipus'].'</span></td>';
+ echo '<td>'.$K['kosziEsemenyNev'].'</td>';
+ echo '<td>'.$K['kosziEsemenyLeiras'].'</td>';
+ echo '<td class="r">'.($K['pont']).'</td>';
+ echo '</tr>';
+ }
+ echo '<tr class="foot"><th colspan="4" class="r">'._IDEN_ENNYIT.':</th><th class="r">'.$pontsum.'</th>';
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+ }
+
+
+ function putKosziLista($ADAT) {
+
+/*
+mysql> desc kosziDiak;
++--------------+------------------+------+-----+---------------------+-------+
+| Field | Type | Null | Key | Default | Extra |
++--------------+------------------+------+-----+---------------------+-------+
+| kosziId | int(10) unsigned | NO | PRI | NULL | |
+| diakId | int(10) unsigned | NO | PRI | NULL | |
+| rogzitesDt | timestamp | NO | | CURRENT_TIMESTAMP | |
+| jovahagyasDt | timestamp | NO | | 0000-00-00 00:00:00 | |
+| kosziPontId | int(10) unsigned | NO | MUL | NULL | |
+| pont | int(10) unsigned | NO | | NULL | |
++--------------+------------------+------+-----+---------------------+-------+
+*/
+
+
+ echo '<fieldset class="koszi"><legend>Jelentkezz!</legend>';
+ echo '<div class="koszi">';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKosziDiak" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziId" class="onChangeSubmit">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ $_SEL = ($ADAT['kosziId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ $_leiras = $K['kosziEsemenyNev'].' '.$K['kosziEsemenyLeiras'].' '.$K['dt']. ' - '.$K['kosziEsemenyTipus'];
+ echo '<option value="'.$K['kosziId'].'" '.$_SEL.'>'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ if ($ADAT['kosziId']!='') {
+ echo '<select name="kosziPontId">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+ $_leiras = $K['kosziPontTipus'].' ('.$K['kosziPont'].'pont)';
+ if ($K['kosziHelyezes']>0) $_leiras .= ' '.$K['kosziHelyezes'].'. helyezés';
+ echo '<option value="'.$K['kosziPontId'].'">'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ }
+
+ echo '<input type="submit" value="köszi!" />';
+
+ formEnd();
+
+ echo '</div>';
+ echo '</fieldset>';
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// ------------
+
+
+
+ function putKosziPont($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Kapható pontok</legend>';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._PONTTIPUS.'</th><th>'._HELYEZES.'</th><th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+
+ echo '<tr>';
+ echo '<td>'.$K['kosziPontTipus'].'</td>';
+ echo '<td>'.$K['kosziHelyezes'].'</td>';
+ echo '<td>'.$K['kosziPont'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+
+ echo '<fieldset class="koszi"><legend>Új ponttípus</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujPont" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziPontTipus">';
+ for ($i=0; $i<count($ADAT['kosziPontTipusok']); $i++) {
+ $K = $ADAT['kosziPontTipusok'][$i];
+// $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K.'" '.$_SEL.'>'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+ echo '<select name="kosziHelyezes">';
+ echo '<optgroup label="helyezés">';
+ echo '<option></option>';
+ for ($i=1; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ echo '<select name="kosziPont"><optgroup label="pont">';
+ for ($i=0; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup></select>';
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+ /* TANÉV */
+
+ function putKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="delKoszi" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ if (count($ADAT['koszi'])==0) {
+ echo '<div class="empty">'._NINCS.'</div>';
+ } else {
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th>'._IGAZOLOK.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ echo '<tr>';
+ echo '<td>'.$K['dt'].'</td>';
+ echo '<td>'.$K['felev'].'</td>';
+ echo '<td>'.$K['igazolo'].'</td>';
+ echo '<td><input type="checkbox" name="kosziId[]" value="'.$K['kosziId'].'" /></td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ }
+
+ echo '<input type="submit" value="a kijelöltek végleges törlése" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+
+
+ }
+
+ function putUjKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKoszi">';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th colspan="3">'._IGAZOLOK.'</th>'."\n";
+
+ echo '<tr>';
+ echo '<td><input type="text" value="" name="dt" class="date" /></td>';
+ echo '<td><select name="felev"><option value=""></option><option value="1">1</option><option value="2">2</option></select></td>';
+/*
+ echo '<td>';
+ echo '<input type="checkbox" name="igazolo[]" value="diák" />diák';
+ echo '<input type="checkbox" name="igazolo[]" value="tanár" />tanár';
+ echo '<input type="checkbox" name="igazolo[]" value="osztályfőnök" />osztályfőnök';
+ echo '</td>';
+*/
+ echo '<td>';
+ echo '<select name="osztalyfonokId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $K = $ADAT['osztalyok'][$i];
+ echo '<option value="'.($K['osztalyfonok']['tanarId']).'">';
+ echo $K['osztalyJel'].' - ';
+ echo $K['osztalyfonok']['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tanarId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $K = $ADAT['tanarok'][$i];
+ echo '<option value="'.($K['tanarId']).'">';
+ echo $K['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="diakId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $K = $ADAT['diakok'][$i];
+ echo '<option value="'.($K['diakId']).'">';
+ echo $K['diakNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="rögzít" />';
+
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml b/mayor-orig/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml
new file mode 100644
index 00000000..4b02f29e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/koszi/kosziAdmin.phtml
@@ -0,0 +1,331 @@
+<?php
+
+
+
+ function putKosziIgazolandoLista($ADAT) {
+
+ if (!is_array($ADAT['kosziIgazolando']) || count($ADAT['kosziIgazolando'])==0) return;
+
+ $KET = array('iskolai rendezvény','DÖK rendezvény','tanulmányi verseny','sportverseny','foglalkozás','tevékenység','hiányzás');
+
+ echo '<fieldset class="koszi"><legend>'._IGAZOLANDO.'</legend>';
+
+ echo '<table class="koszi" align="center" cellspacing="1">';
+ echo '<tr class="head"><th>'._MIKOR.'</th><th colspan="3">'._ESEMENY.'</th><th>'._PONT.'</th><th>'._NEV.'</th>';
+ echo '<th>'._TEENDO.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziIgazolando']); $i++) {
+ $K = $ADAT['kosziIgazolando'][$i];
+ $_class = ($K['jovahagyva']==1) ? ' class="jovahagyva" ' : '';
+
+ $l=array_keys($KET,$K['kosziEsemenyTipus']);
+ echo '<tr '.$_class.'>';
+ echo '<td>'.$K['rogzitesDt'].'</td>';
+ echo '<td><span class="tag tag'.$l[0].'">'.$K['kosziEsemenyTipus'].'</span></td>';
+ echo '<td>'.$K['kosziEsemenyNev'].'</td>';
+ echo '<td>'.$K['kosziEsemenyLeiras'].'</td>';
+ echo '<td>'.$K['pont'].'</td>';
+ echo '<td>'.$ADAT['diak'][$K['diakId']]['diakNev'].'</td>';
+ echo '<th>';
+//print_r($K);
+ formBegin();
+ echo '<input type="hidden" name="action" value="igazol" />';
+ echo '<input type="hidden" name="kosziId" value="'.$K['kosziId'].'" />';
+ echo '<input type="hidden" name="diakId" value="'.$K['diakId'].'" />';
+ echo '<input type="submit" name="accept" value="'._JOVAHAGY.'" class="accept" />';
+ echo '<input type="submit" name="decline" value="'._ELUTASIT.'" class="decline" />';
+ formEnd();
+ echo '</th>';
+
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+ }
+
+
+
+
+//-.-------------------------------------------------------------------
+
+
+
+
+
+
+
+
+
+ function putKosziDiakLista($ADAT) {
+
+
+ if (count($ADAT['kosziDiakLista'])==0) return;
+
+ $KET = array('iskolai rendezvény','DÖK rendezvény','tanulmányi verseny','sportverseny','foglalkozás','tevékenység','hiányzás');
+
+ echo '<fieldset class="koszi"><legend>Ezekre az eseményekre jelentkeztél</legend>';
+
+ echo '<table class="koszi" align="center">';
+ echo '<tr class="head"><th>'._MIKOR.'</th><th colspan="3">'._ESEMENY.'</th><th>'._PONT.'</th>';
+//<th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziDiakLista']); $i++) {
+ $K = $ADAT['kosziDiakLista'][$i];
+ $_class = ($K['jovahagyva']==1) ? ' class="jovahagyva" ' : '';
+
+ $l=array_keys($KET,$K['kosziEsemenyTipus']);
+
+ echo '<tr '.$_class.'>';
+ echo '<td>'.$K['rogzitesDt'].'</td>';
+ echo '<td><span class="tag tag'.$l[0].'">'.$K['kosziEsemenyTipus'].'</span></td>';
+ echo '<td>'.$K['kosziEsemenyNev'].'</td>';
+ echo '<td>'.$K['kosziEsemenyLeiras'].'</td>';
+ echo '<td class="r">'.($pontsum+=$K['pont']).'</td>';
+ echo '</tr>';
+ }
+ echo '<tr class="foot"><th colspan="4" class="r">'._IDEN_ENNYIT.':</th><th class="r">'.$pontsum.'</th>';
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+ }
+
+
+ function putKosziLista($ADAT) {
+
+/*
+mysql> desc kosziDiak;
++--------------+------------------+------+-----+---------------------+-------+
+| Field | Type | Null | Key | Default | Extra |
++--------------+------------------+------+-----+---------------------+-------+
+| kosziId | int(10) unsigned | NO | PRI | NULL | |
+| diakId | int(10) unsigned | NO | PRI | NULL | |
+| rogzitesDt | timestamp | NO | | CURRENT_TIMESTAMP | |
+| jovahagyasDt | timestamp | NO | | 0000-00-00 00:00:00 | |
+| kosziPontId | int(10) unsigned | NO | MUL | NULL | |
+| pont | int(10) unsigned | NO | | NULL | |
++--------------+------------------+------+-----+---------------------+-------+
+*/
+
+
+ echo '<fieldset class="koszi"><legend>Jelentkezz ezekre az eseményekre!</legend>';
+ echo '<div class="koszi">';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKosziDiak" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziId" class="onChangeSubmit">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ $_SEL = ($ADAT['kosziId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ $_leiras = $K['kosziEsemenyNev'].' '.$K['kosziEsemenyLeiras'].' '.$K['dt']. ' - '.$K['kosziEsemenyTipus'];
+ echo '<option value="'.$K['kosziId'].'" '.$_SEL.'>'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ if ($ADAT['kosziId']!='') {
+ echo '<select name="kosziPontId">';
+ echo '<option value="" class="placeholder">Válassz!</option>';
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+ $_leiras = $K['kosziPontTipus'].' ('.$K['kosziPont'].'pont)';
+ if ($K['kosziHelyezes']>0) $_leiras .= ' '.$K['kosziHelyezes'].'. helyezés';
+ echo '<option value="'.$K['kosziPontId'].'">'.$_leiras.'</option>'."\n";
+ }
+ echo '</select>';
+ }
+
+ echo '<input type="submit" value="köszi!" />';
+
+ formEnd();
+
+ echo '</div>';
+ echo '</fieldset>';
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// ------------
+
+
+
+ function putKosziPont($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Kapható pontok</legend>';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._PONTTIPUS.'</th><th>'._HELYEZES.'</th><th>'._PONT.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['kosziPont']); $i++) {
+ $K = $ADAT['kosziPont'][$i];
+
+ echo '<tr>';
+ echo '<td>'.$K['kosziPontTipus'].'</td>';
+ echo '<td>'.$K['kosziHelyezes'].'</td>';
+ echo '<td>'.$K['kosziPont'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '</fieldset>';
+
+
+
+ echo '<fieldset class="koszi"><legend>Új ponttípus</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujPont" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<select name="kosziPontTipus">';
+ for ($i=0; $i<count($ADAT['kosziPontTipusok']); $i++) {
+ $K = $ADAT['kosziPontTipusok'][$i];
+// $_SEL = ($ADAT['kosziEsemenyId'] == $K['kosziId']) ? ' selected="selected" ':'';
+ echo '<option value="'.$K.'" '.$_SEL.'>'.$K.'</option>'."\n";
+ }
+ echo '</select>';
+ echo '<select name="kosziHelyezes">';
+ echo '<optgroup label="helyezés">';
+ echo '<option></option>';
+ for ($i=1; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ echo '</select>';
+ echo '<select name="kosziPont"><optgroup label="pont">';
+ for ($i=0; $i<99; $i++) {
+ echo '<option value="'.$i.'" '.'>'.$i.'</option>'."\n";
+ }
+ echo '</optgroup></select>';
+
+ echo '<input type="submit" value="rögzít" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+ /* TANÉV */
+
+ function putKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="delKoszi" />';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ if (count($ADAT['koszi'])==0) {
+ echo '<div class="empty">'._NINCS.'</div>';
+ } else {
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th>'._IGAZOLOK.'</th>'."\n";
+ for ($i=0; $i<count($ADAT['koszi']); $i++) {
+ $K = $ADAT['koszi'][$i];
+ echo '<tr>';
+ echo '<td>'.$K['dt'].'</td>';
+ echo '<td>'.$K['felev'].'</td>';
+ echo '<td>'.$K['igazolo'].'</td>';
+ echo '<td><input type="checkbox" name="kosziId[]" value="'.$K['kosziId'].'" /></td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ }
+
+ echo '<input type="submit" value="a kijelöltek végleges törlése" />';
+
+ formEnd();
+
+ echo '</fieldset>';
+
+
+
+ }
+
+ function putUjKoszi($ADAT) {
+
+ echo '<fieldset class="koszi"><legend>Köszi események a tanévben</legend>';
+
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="ujKoszi">';
+ echo '<input type="hidden" name="kosziEsemenyId" value="'.$ADAT['kosziEsemenyId'].'" />';
+
+ echo '<table class="koszi">';
+ echo '<tr><th>'._DATUM.'</th><th>'._FELEV.'</th><th colspan="3">'._IGAZOLOK.'</th>'."\n";
+
+ echo '<tr>';
+ echo '<td><input type="text" value="" name="dt" class="date" /></td>';
+ echo '<td><select name="felev"><option value=""></option><option value="1">1</option><option value="2">2</option></select></td>';
+/*
+ echo '<td>';
+ echo '<input type="checkbox" name="igazolo[]" value="diák" />diák';
+ echo '<input type="checkbox" name="igazolo[]" value="tanár" />tanár';
+ echo '<input type="checkbox" name="igazolo[]" value="osztályfőnök" />osztályfőnök';
+ echo '</td>';
+*/
+ echo '<td>';
+ echo '<select name="osztalyfonokId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['osztalyok']); $i++) {
+ $K = $ADAT['osztalyok'][$i];
+ echo '<option value="'.($K['osztalyfonok']['tanarId']).'">';
+ echo $K['osztalyJel'].' - ';
+ echo $K['osztalyfonok']['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tanarId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['tanarok']); $i++) {
+ $K = $ADAT['tanarok'][$i];
+ echo '<option value="'.($K['tanarId']).'">';
+ echo $K['tanarNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="diakId[]" multiple="multiple">';
+ for ($i=0; $i<count($ADAT['diakok']); $i++) {
+ $K = $ADAT['diakok'][$i];
+ echo '<option value="'.($K['diakId']).'">';
+ echo $K['diakNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="rögzít" />';
+
+
+ formEnd();
+
+ echo '</fieldset>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/naplo.phtml b/mayor-orig/www/skin/classic/module-naplo/html/naplo.phtml
new file mode 100644
index 00000000..e5d42bfc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/naplo.phtml
@@ -0,0 +1,33 @@
+<?php
+
+ function putBeirasiAdatok($ADAT) {
+
+ /* DASHBOARD */
+
+ global $UdvozloKep,$skin;
+
+ if (!is_array($UdvozloKep) || count($UdvozloKep) == 0) $UdvozloKep = array('kutya','pingvin','smiley','garfield','majom');
+ echo '<div class="beirasAdatok">';
+ if ($ADAT['beiratlan'] == 0) {
+ if ($skin!='ajax') { // :(
+ $i = rand(0, count($UdvozloKep)-1);
+ echo '<img src="skin/classic/module-naplo/img/anim/'.$UdvozloKep[$i].'.gif" alt="anim gif" />';
+ }
+ echo _MINDEN_BEIRVA;
+ if (__JATEK_INSTALLED===true) {
+ echo '<p style="text-align:center"><a href="'.href('index.php?page=jatek&f=2048').'"><img src="/skin/classic/module-jatek/img/2048.png" alt="2048" /></a></p>';
+ }
+ } else {
+ echo '<span><a href="'.href('index.php?page=naplo&sub=haladasi&f=haladasi').'">'._BEIRATLAN_ORAK_SZAMA.': '.$ADAT['beiratlan'].'</a></span>';
+ }
+ echo '</div>';
+
+ }
+
+ function putBeirasiAdatokDiak() {
+ if (__JATEK_INSTALLED===true) {
+ echo '<p style="text-align:center"><a href="'.href('index.php?page=jatek&f=2048').'"><img src="/skin/classic/module-jatek/img/2048.png" alt="2048" /></a></p>';
+ }
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml
new file mode 100644
index 00000000..ae808368
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/diakTankorJelentkezes.phtml
@@ -0,0 +1,31 @@
+<?php
+
+ function putNyomtatasiBeallitasok($ADAT) {
+
+ formBegin(array('class'=>'nyomtat'));
+
+ echo '<input type="hidden" name="action" value="pdfGeneralas" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />'."\n";
+
+ echo '<h3>'._OSZTALYOK.'</h3>'."\n";
+
+ foreach ($ADAT['osztalyok'] as $osztalyId => $osztalyAdat) {
+
+ echo '<input type="checkbox" name="osztalyId[]" id="osztalyId'.$osztalyId.'" value="'.$osztalyId.'" />';
+ echo '<label for="osztalyId'.$osztalyId.'">';
+ echo $osztalyAdat['osztalyJel'];
+ echo '</label>'."\n";
+
+ }
+
+ echo '<br />';
+ echo '<label for="hatarido">'._LEADASI_HATARIDO.'</label>';
+ echo '<input type="text" name="leadasiHatarido" value="" id="hatarido" class="date" />'."\n";
+
+ echo '<br />';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml
new file mode 100644
index 00000000..8f83fe6e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/helyettesitesinaplo.phtml
@@ -0,0 +1,17 @@
+<?php
+
+ function putDownloadForm($tolDt, $igDt) {
+
+ formBegin(array('class'=>'letolt'));
+
+ echo '<input type="hidden" name="action" value="naploGeneralas" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />'."\n";
+ echo '<input type="hidden" name="igDt" value="'.$igDt.'" />'."\n";
+
+ echo '<input type="submit" value="'._DOWNLOAD.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml
new file mode 100644
index 00000000..312b77d8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/osztalyozonaplo.phtml
@@ -0,0 +1,9 @@
+<?php
+
+ function putLetoltesLink($ADAT) {
+
+ echo '<a href="'.href($ADAT['letoltes']).'" class="letoltes">'._LETOLTES.'</a>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml
new file mode 100644
index 00000000..b92337ce
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/nyomtatas/tankorNaplohozRendeles.phtml
@@ -0,0 +1,127 @@
+<?php
+/*
+ module: naplo
+*/
+
+ function putOsztalyTankorei($osztalyId, $ADAT) {
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="tankorNaplohozRendeles" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />';
+
+ echo '<table class="tankorBealliras" align="center" cellspacing="1">';
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._TANKOR.'</th>';
+ echo '<th>'._JELOLT.'</th>';
+ echo '<th>'._NAPLO.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo _JELOLT_TANKOROK_SZAMA.': '.count($ADAT['naploTankorei'][$osztalyId]);
+ echo '</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['osztalyTankorei'][$osztalyId]); $i++) {
+ $tankorId = $ADAT['osztalyTankorei'][$osztalyId][$i];
+ $naplo = $ADAT['tankorNaploja'][$tankorId];
+ $tankorNev = $ADAT['tankorNeve'][$tankorId];
+ echo '<tr>';
+ echo '<th>'.$tankorNev.':'.$tankorId.'</th>';
+ if (isset($osztalyId)) {
+ echo '<td>';
+
+ if ($naplo == $osztalyId) $CHK = ' checked="checked" ';
+ else $CHK = '';
+
+ echo '<input type="checkbox" name="T[]" value="'."$tankorId/$osztalyId".'"'.$CHK.' />';
+
+ echo '</td>';
+ }
+ echo '<td>'.$ADAT['osztalyJele'][$naplo].'</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putHozzarendelesekTorlese() {
+ formBegin();
+ echo '<div id="torlesForm">'."\n";
+ echo '<input type="hidden" name="action" value="hozzarendelesekTorlese" />'."\n";
+ echo '<input type="submit" value="'._HOZZARENDELES_ALAPHELYZETBE_ALLITASA.'">'."\n";
+ echo '</div>'."\n";
+ formEnd();
+ }
+
+ function putHianyzoTankorok($ADAT) {
+
+ echo '<table class="tankorBealliras" align="center" cellspacing="1">';
+
+ $Hianyzo = array();
+ for ($i = 0; $i < count($ADAT['tankorIds']); $i++) {
+ $tankorId = $ADAT['tankorIds'][$i];
+ if ($ADAT['tankorNaploja'][$tankorId] == '') $Hianyzo[] = $tankorId;
+ }
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._TANKOR.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="1">';
+ echo _HIANYZO_TANKOROK_SZAMA.': '.count($Hianyzo);
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ for ($i = 0; $i < count($Hianyzo); $i++) {
+ $tankorId = $Hianyzo[$i];
+ echo '<tr>';
+// echo '<th>'.($i+1).'</th>';
+ echo '<th>'.$ADAT['tankorNeve'][$tankorId].'</th>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ }
+
+ function putEloszlas($ADAT) {
+
+ if (!isset($osztalyId)) {
+ echo '<table class="tankorBealliras" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr><th>'._OSZTALY.'</th><th>'._DB.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="2"></th></tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) {
+ echo '<tr>';
+ echo '<th>'.$ADAT['osztalyok'][$i]['osztalyJel'].'</th>';
+ echo '<td>'.count($ADAT['naploTankorei'][ $ADAT['osztalyok'][$i]['osztalyId'] ]).'</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ }
+
+ }
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/ascExport.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/ascExport.phtml
new file mode 100644
index 00000000..0fee8df7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/ascExport.phtml
@@ -0,0 +1,142 @@
+<?php
+
+ function putExportForm($ADAT) {
+
+
+ formBegin(array('class'=>'export ok'));
+
+ echo '<h1>'._EXPORTALAS.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="ascExport" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ if (count($ADAT['orarendiHet']) > 0) {
+ echo '<fieldset><legend>'._EXPORTALANDO_HET.'</legend>'."\n";
+ for ($i = 0; $i < count($ADAT['orarendiHet']); $i++) {
+ if ($ADAT['orarendiHet'][$i] == $ADAT['exportalandoHet'])
+ echo '<input id="het'.$i.'" type="radio" name="orarendiHet" value="'.$ADAT['orarendiHet'][$i].'" checked="checked" />'."\n";
+ else
+ echo '<input id="het'.$i.'" type="radio" name="orarendiHet" value="'.$ADAT['orarendiHet'][$i].'" />'."\n";
+ echo '<label for="het'.$i.'">'.$ADAT['orarendiHet'][$i].'</label>';
+ }
+ echo '</fieldset>'."\n";
+ }
+ echo '<br />';
+ if ($ADAT['szeminariumkent']==true) {
+ echo '<input type="checkbox" id="szeminariumkent" name="szeminariumkent" value="true" checked="checked" />';
+ } else {
+ echo '<input type="checkbox" id="szeminariumkent" name="szeminariumkent" value="true" />';
+ }
+ echo '<label for="szeminariumkent">'._EXPORT_SZEMINARIUMKENT_DIAKOKKAL.'</label>'."\n";
+
+ echo '<br />';
+ echo '<input type="checkbox" id="szakkorokkel" name="szakkorokkel" value="true" />';
+ echo '<label for="szakkorokkel">'._EXPORT_SZAKKOROKKEL.'</label>'."\n";
+
+ echo '<br />';
+ echo '<input id="blokkokNelkul" type="checkbox" name="blokkokNelkul" value="true" />';
+ echo '<label for="blokkokNelkul">'._BLOKKOK_NELKUL.'</label>'."\n";
+
+ echo '<br />';
+ echo '<input id="targyBontas" type="checkbox" name="targyBontas" value="true" />';
+ echo '<label for="targyBontas">'._TARGYAK_BONTASAVAL.'</label>'."\n";
+
+ echo '<br /><input type="submit" value="'._EXPORT.'" />'."\n";
+
+ echo '<br />'."\n";
+ echo '<a href="'
+ .href('index.php?page=session&f=download&download=true&dir=naplo/orarend/orarendBetolto&file=fromAsc.xml')
+ .'">'
+ .'<img src="skin/classic/module-session/img/download.gif" alt="Download" />'
+ ._EXPORT_SABLON_LETOLTESE
+ .'</a>'."\n";
+
+ if (defined('__LOADURL')) echo '<a href="'.__LOADURL.'" id="loadUrl" >'._DOWNLOAD.'</a>'."\n"; // Ha sikerült az export, akkor letöltés indítás
+ formEnd();
+ }
+
+
+ function putTobbszorosOraForm($ADAT) {
+
+ formBegin(array('class'=>'tobbszoros export'));
+
+ echo '<h1>'._TOBBSZOROS_ORAK.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="tobbszorosOra" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+// echo '<fieldset><legend>'._TOBBSZOROS_ORAK.'</legend>';
+ echo '<select name="bontasId">'."\n";
+ if (is_array($ADAT['tankorBlokk']['exportOraszam']))
+ echo '<option value=""> '._BONTANDO_TANKOR_BLOKK.' </option>'."\n";
+ echo '<optgroup label="'._BLOKKOK.'">';
+ foreach ($ADAT['tankorBlokk']['exportOraszam'] as $bId => $oraszam) if ($oraszam > 0) {
+ $blokkNev = $ADAT['tankorBlokk']['blokkNevek'][$bId];
+ echo '<option value="b-'.$bId.'">'."$blokkNev ($bId) -- $oraszam "._ORA.'</option>'."\n";
+ }
+ echo '</optgroup>'."\n";
+ echo '<optgroup label="'._TANKOROK.'">';
+ for ($i = 0; $i < count($ADAT['tankorok']); $i++) {
+ $tankorId = $ADAT['tankorok'][$i]['tankorId'];
+ $tankorNev = $ADAT['tankorok'][$i]['tankorNev'];
+ $hetiOraszam = $ADAT['tankorok'][$i]['hetiOraszam'];
+ echo '<option value="t-'.$tankorId.'">'."$tankorNev ($tankorId) -- $hetiOraszam "._ORA.'</option>'."\n";
+ }
+ echo '</optgroup>'."\n";
+ echo '</select>'."\n";
+ echo '<label for="oraBontas">'._ORABONTAS.'</label>'."\n";
+ echo '<input id="oraBontas" type="text" name="oraBontas" value="" />'."\n";
+// echo '</fieldset>'."\n";
+
+ if (count($ADAT['bontas']) > 0) {
+ echo '<br />';
+ echo '<label for="torlendoBontas">'._TORLENDO_BONTAS.'</label><br />';
+ echo '<select id="torlendoBontas" name="torlendoBontas[]" multiple="multiple">'."\n";
+ foreach ($ADAT['bontas'] as $bontasId => $bontas) {
+ list($tipus, $id) = explode('-', $bontasId);
+ if ($tipus == 't') {
+ $tankorIndex = $ADAT['tankorIndex'][$id];
+ $bontasNev = $ADAT['tankorok'][$tankorIndex]['tankorNev'];
+ } elseif ($tipus == 'b') {
+ $bontasNev = $ADAT['tankorBlokk']['blokkNevek'][$id];
+ }
+ echo '<option value="'.$bontasId.'">'.$bontasNev.' ('.$bontasId.') -- '.$bontas.' '._ORA.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+ function putBlokkOraszamForm($ADAT) {
+
+ formBegin(array('class'=>'blokk export'));
+
+ echo '<h1>'._ORARENDI_BLOKKOK.'</h1>'."\n";
+
+ echo '<input type="hidden" name="action" value="blokkOraszam" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<ul class="blokk">';
+ foreach ($ADAT['tankorBlokk']['blokkNevek'] as $bId => $bNev) {
+ echo '<li>';
+ echo ' <select name="blokkOraszam[]">'."\n";
+ $SEL = array(floatval($ADAT['tankorBlokk']['exportOraszam'][$bId]) => ' selected="selected" ');
+ for ($i = 0; $i <= ceil($ADAT['tankorBlokk']['maxOraszam'][$bId]); $i = $i + 0.5) {
+ echo '<option value="'."$bId:$i".'" '.$SEL[$i].'>'.$i.' (exportálva '.ceil($i).' kártya/hét)'.'</option>'."\n";
+ }
+ echo '</select>';
+ echo $bNev.' ('.$bId.')';
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml
new file mode 100644
index 00000000..1f2668aa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/helyettesites.phtml
@@ -0,0 +1,90 @@
+<?php
+
+ function putHelyettesitesTablazat($ADAT) {
+
+ if (count($ADAT['orak']['indexed'])==0) return false;
+
+ $TANAROK = $ADAT['tanarok'];
+ $TANKOROK = $ADAT['tankorok'];
+ echo '<h1 style="text-align: center">'.'</h1>';
+ // -----------------------------------------------
+ // FEJLÉC
+ // -----------------------------------------------
+ echo '<p><table align="center" class="helyettesitesek" >';
+ echo '<thead>'."\n";
+ echo '<tr >';
+ echo '<th colspan="5">Az órarendihez képest változó óra</th>';
+ echo '<th rowspan="2">A helyettesítés<br />jellege</th>';
+ echo '<th rowspan="2" style="background-color: #88aaa0">';
+ //echo '<a href="index.php?page=naplo&sub=orarend&f=helyettesit&dt='.$dt.'&lang='.$lang.'&order=3">';
+ echo 'Az órát tartó<br />tanár neve';
+ //if ($orderid==3) echo '<img src="/hu/img/start/arrow-down.jpg" alt="rendezés" />';
+ //echo '</a>';
+ echo '</th>';
+ echo '</tr>';
+ echo '<tr style="background-color: #99aab0;">';
+ echo '<th>óra</th>';
+ echo '<th>';
+ //echo '<a href="index.php?page=naplo&sub=orarend&f=helyettesit&dt='.$dt.'&lang='.$lang.'&order=1">';
+ echo 'osztály';
+ //if ($orderid==1) echo '<img src="/hu/img/start/arrow-down.jpg" alt="rendezés" />';
+ //echo '</a>';
+ echo '</th>';
+ echo '<th>tantárgy</th>';
+ echo '<th>';
+ //echo '<a href="index.php?page=naplo&sub=orarend&f=helyettesit&dt='.$dt.'&lang='.$lang.'&order=2">';
+ echo 'hiányzó';
+ //if ($orderid==2) echo '<img src="/hu/img/start/arrow-down.jpg" alt="rendezés" />';
+ //echo '</a>';
+ echo '</th>';
+ echo '<th>terem</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="7">'.date('Y-m-d H:i:s').'</th></tr>';
+ echo '</tfoot>';
+ //----------------------------------------------------------
+ echo '<tbody>';
+ for($i=0; $i<count($ADAT['orak']['indexed']); $i++) {
+ $sor = $ADAT['orak']['indexed'][$i];
+ if ($sor['tipus']=='összevonás') {
+ $_kidn= $sor['ki'];
+ $_dt = $sor['dt'];
+ $_ora = $sor['ora'];
+ } else {
+ }
+ // hack out ki=kit saját magával összevont óra!
+ if ($sor['ki'] != $sor['kit'] && $sor['feladatTipusId']=='') {
+ echo '<tr class="'.$sor['eredet'].'">';
+ echo '<td align="center">'.$sor['ora'].'.</td>';
+ echo '<td align="center" colspan="2" >'.$TANKOROK[$sor['tankorId']]['tankorNev'].'&nbsp;&nbsp;</td>';
+ echo '<td >&nbsp;'.$TANAROK[$sor['kit']]['tanarNev'].'</td>';
+ echo '<td align="center">'.$ADAT['termek'][$sor['teremId']]['leiras'].'</td>';
+ echo '<td align="center">';
+ if ($sor['eredet']=='plusz')
+ if (in_array($sor['tipus'],array('elmarad','elmarad máskor')))
+ echo 'elmarad (plusz)';
+ else
+ echo 'megtartva (plusz) '.$sor['tipus'];
+ else
+ echo $sor['tipus'];
+ echo '</td>';
+ if ($sor['ki'] == '') {
+ echo '<th height="35">-</th>';
+ } else {
+ echo '<td height="35">';
+ echo '&nbsp;'.$TANAROK[$sor['ki']]['tanarNev'];
+ if ($sor['terem']!=$_terem) echo ' ('.$_terem.')';
+ echo '</td>';
+ }
+ echo '</tr>';
+ } // end of hackout
+
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml
new file mode 100644
index 00000000..0a0174bb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarend.phtml
@@ -0,0 +1,411 @@
+<?php
+
+ function csengetesiRend($csengetesiRendTipus, $telephelyId, $nap, $ora, $ADAT) {
+ $most = false;
+ if ($ADAT[$csengetesiRendTipus][$telephelyId][$nap][$ora]!='') $n = $nap;
+ elseif ($ADAT[$csengetesiRendTipus][$telephelyId][''][$ora]!='') $n = '';
+ else return array('kiir'=>'','most'=>false);
+ $b1 = explode(':',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['tolTime']);
+ $r = intval($b1[0]).':'.$b1[1];
+ $b2 = explode(':',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['igTime']);
+ $r .= '-'.intval($b2[0]).':'.$b2[1];
+ if ( ((date('H')*60+date('i')) >= ($b1[0]*60+$b1[1])) && ((date('H')*60+date('i')) <= ($b2[0]*60+$b2[1])) ) $most = true;
+ $R['kiir'] = $r;
+ $R['most'] = $most;
+ $R['dataTol'] = str_replace(':','',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['tolTime']);
+ $R['dataIg'] = str_replace(':','',$ADAT[$csengetesiRendTipus][$telephelyId][$n][$ora][0]['igTime']);
+ return $R;
+ }
+
+ function putOrarend($ADAT) {
+ global $aHetNapjai,$skin;
+
+ /* Képzés-Mátrix */
+ //dump($ADAT['kepzesOraterv']);
+ if (is_array($ADAT['kepzesOraterv']) && count($ADAT['kepzesOraterv'])>0) {
+ $kepzes_figyel = true;
+ $KEPZES_MATRIX[2]=$ADAT['kepzesOraterv']['első nyelv']['sum'];
+ $KEPZES_MATRIX[3]=$ADAT['kepzesOraterv']['második nyelv']['sum'];
+ $KEPZES_MATRIX[1]=$ADAT['kepzesOraterv']['mintatantervi']['sum']
+ +$ADAT['kepzesOraterv']['kötelezően választható']['sum']
+ +$ADAT['kepzesOraterv']['szabadon választható']['sum']
+ ;
+ //dump($KEPZES_MATRIX);
+ } else $kepzes_figyel = false;
+ // ----------------
+ $multiTelephely = (count($ADAT['orarend']['telephelyIdk'])>1);
+ if ($multiTelephely) { echo '<!-- telephely debug info --'; var_dump($ADAT['orarend']['telephelyIdk']); echo '// -->'; }
+ for ($i=0; $i<count($ADAT['diakFelmentes']); $i++) {
+ $_D = $ADAT['diakFelmentes'][$i];
+ $FM[$_D['tankorId']][] = $_D;
+ }
+
+ // a lekérdezett órák között az órarendben szereplő órarendihetek
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ if (in_array($ADAT['orarend']['napok'][$nap]['tipus'],
+ array('tanítási nap','speciális tanítási nap'))) {$ERINTETTHETEK[$ADAT['orarend']['napok'][$nap]['het']] = true;
+ }
+ }
+ // --
+ // a haladási naplóban szereplő órarendi hetek
+ // ???
+ // --
+ // ==============================================================
+
+// if (is_array($ADAT['orarend']['assoc'])) {
+ if (TRUE) {
+ $T = $ADAT['orarend']['assoc'];
+ echo '<h2 class="toPrint">'.$ADAT['toPrint'].'</h2>';
+ echo '<table cellspacing="1" class="orarend '.$ADAT['orarendTipus'].'" align="center">'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ if (is_array($ERINTETTHETEK)) {
+ echo '<th class="het">'.implode(',',array_keys($ERINTETTHETEK)).'.'._HET.'<br/><span style="font-size:xx-small">'.$ADAT['orarend']['db'].' '._ORA.'</span>'.'</th>';
+ } else {
+ echo '<th></th>';
+ }
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ // if ($skin=='pda'
+ // && in_array($ADAT['orarend']['napok'][$nap]['tipus'], array('tanítási nap','speciális tanítási nap'))
+ // && $ADAT['orarend']['napok'][$nap]['dt'] != date('Y-m-d')) continue;;
+ //
+
+ $_ma_class = ($nap==date('w') && $ADAT['orarend']['napok'][$nap]['dt']==date('Y-m-d')) ? 'ma': '';
+
+ $_th_class = ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? '': ' spec ';
+ $_th_class .= $_ma_class;
+ $_th_class .= (in_array($ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'],array('','normál'))) ? '': ' spec '.ekezettelen($ADAT['orarend']['napok'][$nap]['csengetesiRendTipus']);
+
+ echo '<th class="'.$_th_class.'" data-napindex="'.$nap.'">';
+ $aznapErintettNap = array();
+ for ($b=0; $b<count($ADAT['napok'][$nap]); $b++) {
+ if ($ADAT['napok'][$nap][$b]['megjegyzes']!='') $aznapErintettNap['megjegyzes'][] = $ADAT['napok'][$nap][$b]['megjegyzes'];
+ }
+ if (!in_array($ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'],array('normál',''))) $aznapErintettNap['megjegyzes'][] = $ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'].' csengetés';
+
+ echo '<span class="napLeiras" title="'.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'">';
+ echo (count($aznapErintettNap['megjegyzes'])==0) ? $aHetNapjai[($nap-1)] : implode('; ',array_unique($aznapErintettNap['megjegyzes']));
+ echo '</span>';
+
+ if ($ADAT['orarend']['napok'][$nap]['dt']!='') {
+ echo '<div class="orarendTools">';
+ if (_POLICY=='public') {
+ echo ''.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'';
+ } else {
+ echo '<span class="icon-info-sign napAdat" data-napdt="'.$ADAT['orarend']['napok'][$nap]['dt'].'" title="'.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'"></span>';
+ }
+ if (_POLICY=='private' && in_array(__JEGYZETSZEREPTIPUS,array('diak','tanar'))) echo '<span class="icon-file-edit-alt jegyzet jegyzetAdat" data-jegyzetdt="'.$ADAT['orarend']['napok'][$nap]['dt'].'" data-jegyzetid="-1" title="új jegyzet"></span>';
+ if (_POLICY=='private' && __TANAR===true) {
+ if ($ADAT['kivalasztott'][0] == 'tankor') {
+ $_href = 'index.php?page=naplo&sub=osztalyozo&f=dolgozat&tankorId='.$ADAT['kivalasztott'][1];
+ } else {
+ $_href = 'index.php?page=naplo&sub=osztalyozo&f=dolgozat';
+ }
+ echo '<a href="'.href($_href).'"><span class="icon-idea-alt dolgozat" title="új dolgozat"></span></a>'; // dolgozat
+ }
+ echo '<span class="icon-remove-sign bezar" title="elrejt"></span>';
+ echo '</div>';
+ } else {
+ echo '<div class="orarendTools">'.$aHetNapjai[($nap-1)].'</div>'; // default
+ }
+
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ if (__ALLOWSET===true) {
+ $_footclass = ($ADAT['publikusOrarend']) ? 'publikus' : 'nempublikus';
+ echo '<tfoot class="'.$_footclass.'">';
+ echo '<tr><th colspan="'.($ADAT['hetiMaxNap']+1).'">';
+ if ($ADAT['publikusOrarend']) {
+ echo 'Ez az órarend publikus.';
+ } else {
+ formBegin();
+ echo '<input type="submit" name="gomb" value="legyen publikus" />';
+ echo '<input type="hidden" name="action" value="setPublic" />';
+ formEnd();
+ }
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>'."\n";
+ }
+ echo '<tbody>'."\n";
+// echo '<caption>'.$het.'. heti órarend</caption>';
+ if (count($ADAT['dolgozat']['tervezett'])>0 || count($ADAT['jegyzet'])>0) { $_jegyzetSorCss = ''; } else { $_jegyzetSorStyle = 'display:none;'; }
+ echo '<tr id="orarendJegyzetSor" class="orarendJegyzetSor" style="'.$_jegyzetSorStyle.'">';
+ echo '<th>';
+ echo 'dolgozatok, jegyzetek';
+ // echo '<span class="icon-info-sign"></span>';
+ echo '</th>';
+ for ($nap=1;$nap<=$ADAT['hetiMaxNap'];$nap++) {
+ $dt = $ADAT['NAPOK'][$nap-1];
+ $_ma_class = ($nap==date('w') && $ADAT['orarend']['napok'][$nap]['dt']==date('Y-m-d')) ? 'ma': '';
+ echo '<td class="jegyzetContainer" data-dt="'.$dt.'" data-napindex="'.$nap.'" class="'.$_ma_class.'">';
+ //dump($ADAT['dolgozat']['tervezett'][$dt]);
+ for ($d=0; $d<count($ADAT['dolgozat']['tervezett'][$dt]); $d++) {
+ $_dolgozatId = $ADAT['dolgozat']['tervezett'][$dt][$d];
+ echo '<div class="dolgozat dolgozatAdat" data-dolgozatid="'.$_dolgozatId.'">';
+ for ($t=0; $t<count($ADAT['dolgozat'][$_dolgozatId]['tankor']); $t++) {
+ echo $ADAT['dolgozat'][$_dolgozatId]['tankor'][$t]['tankorNev'].' ';
+ $TANKOR_DOLGOZAT[$ADAT['dolgozat'][$_dolgozatId]['tankor'][$t]['tankorId']][$dt] = $_dolgozatId;
+ }
+ echo '<br/>'.$ADAT['dolgozat'][$_dolgozatId]['dolgozatNev'];
+ echo '</div>';
+ // if (count($ADAT['dolgozat']['tervezett'][$dt])>$d+1) echo '<hr/>';
+ }
+ for ($d=0; $d<count($ADAT['jegyzet']); $d++) {
+ if ($ADAT['jegyzet'][$d]['dt']==$dt) {
+ $_JEGYZET = $ADAT['jegyzet'][$d];
+ $_jegyzetId = $_JEGYZET['jegyzetId'];
+ $_sajatJegyzet = ($_JEGYZET['userId'] === __JEGYZETSZEREPID && $_JEGYZET['userTipus']===__JEGYZETSZEREPTIPUS);
+ $_sajatJegyzetClass = $_sajatJegyzet ? '':'mase';
+ echo '<div class="jegyzet jegyzetAdat publikus'.$_JEGYZET['publikus'].' '.$_sajatJegyzetClass.'" data-jegyzetid="'.$_jegyzetId.'">';
+ // echo 'Jegyzet:';
+ echo makelinksclickable(supertext($_JEGYZET['jegyzetLeiras']));
+ if($_JEGYZET['userId']!=__JEGYZETSZEREPID || $_JEGYZET['userTipus']!=__JEGYZETSZEREPTIPUS) {
+ echo '<br/><i>@'.supertext($_JEGYZET['nev']).'</i>';
+ }
+ for ($_t=0; $_t<count($_JEGYZET['tankorok']); $_t++) {
+ $TANKOR_JEGYZET[$_JEGYZET['tankorok'][$_t]][$dt] = $_jegyzetId;
+ } // erre még nincs felkészítve a jegyzet.get
+ echo '</div>';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th data-oraindex="'.$ora.'">';
+ echo $ora;
+ /* az órarendben szereplő órákat vesszük csak figyelembe, a haladásit - egyelőre - nem */
+ //if (!$multiTelephely) // mindig az "elsőt" vesszük figyelembe!!!
+ $_telephelyId = $ADAT['orarend']['telephelyIdk'][0];
+ for ($nap=1;$nap<=7;$nap++) {
+ $_csengetesiRendTipus = $ADAT['orarend']['napok'][$nap]['csengetesiRendTipus'];
+ $_display = ($nap!= date('w') ? 'style="display:none;"':'');
+ $_CSR = csengetesiRend($_csengetesiRendTipus,$_telephelyId,$nap,$ora,$ADAT['csengetesiRend']);
+ $_csrclass = ($_CSR['most']===true) ? 'most':'';
+ echo '<div class="csr_'.$nap.' '.$_csrclass.'" '.$_display.' data-tol="'.$_CSR['dataTol'].'" data-ig="'.$_CSR['dataIg'].'">';
+ echo $_CSR['kiir'];
+ echo '</div>';
+ }
+ echo '</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ //$dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ $dt = $ADAT['NAPOK'][$nap-1];
+ if ($skin=='pda'
+ && in_array($ADAT['orarend']['napok'][$nap]['tipus'], array('tanítási nap','speciális tanítási nap'))
+ && $dt != date('Y-m-d')) continue;;
+
+ $_eppTartClass = ($_CSR['most']===true && $nap==date('w')) ? 'eppTart':'';
+ $_ma_class = ($nap==date('w')) ? 'ma': '';
+
+ echo '<td class="csr '.$_eppTartClass.' '.$_ma_class.'" id="tdid_'.$het.'_'.$nap.'_'.$ora.'" data-napindex="'.$nap.'" data-oraindex="'.$ora.'">';
+ $het = 0;
+ $ORARENDI = array();
+ for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) {
+ $_T = $T[$nap][$ora]['orak'][$i];
+ // itt a MAI naphoz viszonyítjuk, holott lehet hogy inkább a refDt-hez kéne. Megfontolandó.
+ $_frissClass = (_datediff(date('Y-m-d'),$_T['tolDt'],date('Y-m-d'))<5) ? ' friss animated shake ':'';
+ $ORARENDI[] = $_T['tankorId'];
+ //
+ $het = $_T['het'];
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ $_valosTeremId = (is_null($_ORA['teremId']))? $_T['teremId']:$_ORA['teremId'];
+ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
+ $_tankorTipusId = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipusId'];
+ $_oraMostVan = (in_array($_ORA['oraId'],$ADAT['orakMost']));
+ //
+ if ($kepzes_figyel
+ &&$ADAT['tankorTipus'][$_tankorTipusId]['oratervi'] == 'óratervi'
+ && $ADAT['tankorTipus'][$_tankorTipusId]['jelenlet'] == 'kötelező') {
+ if ($_tankorTipusId>3) $_tankorTipusId=1;
+ $KEPZES_MATRIX[$_tankorTipusId]--;
+ }
+ // Az órarendből a jelek:
+ $_targyJel = $_T['targyJel'];
+ $_osztalyJel = $_T['osztalyJel'];
+ // figyelem, itt jön a kiírás, a _putOra fv helyett:
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ $_oraMostVanClass = ($_oraMostVan) ? ' oraMostVan':'';
+ if ($_T['jelleg']=='osztályfüggetlen') {
+ $_tipusClass .= ' osztályfüggetlen';
+ }
+ $_oraAdat = (isset($_ORA['oo']) && _POLICY!='public') ? 'oraAdat' : ''; // haladási
+ $_hianyzasAdat = $ADAT['hianyzas'][$_ORA['oraId']][0];
+ $_hianyzasClass = (is_array($_hianyzasAdat) && $_hianyzasAdat['hTipus']=='hiányzás') ? ' nemVoltBent ':'';
+ echo '<div class="'.$_tipusClass.$_frissClass.$_oraMostVanClass.$_hianyzasClass.' '.$_oraAdat.'" data-oraid="'.$_ORA['oraId'].'" title="'.$_ORA['tipus'].'" >';
+
+ if (is_array($_hianyzasAdat)) {
+ echo '<span class="hianyzasTicker '.ekezettelen($_hianyzasAdat['hTipus']).' '.ekezettelen($_hianyzasAdat['statusz']).' '.ekezettelen($_hianyzasAdat['igazolas']).'">';
+ if ($_hianyzasAdat['hTipus']=='hiányzás')
+ echo '<span class="icon-hearing-impaired"></span>';
+ // echo '<span class="icon-bookmark"></span>';
+ if ($_hianyzasAdat['hTipus']=='késés') echo $_hianyzasAdat['perc'];
+ if ($_hianyzasAdat['hTipus']=='felszerelés hiány') echo 'fsz';
+ if ($_hianyzasAdat['hTipus']=='egyenruha hiány') echo 'eh';
+ if ($_hianyzasAdat['hTipus']=='felmentés') echo 'fm';
+ echo '</span>';
+ }
+
+ if (is_array($FM[$_T['tankorId']]) && count($FM[$_T['tankorId']])>0) {
+ $_FM = $FM[$_T['tankorId']];
+ for ($fm_i=0; $fm_i<count($_FM); $fm_i++) {
+ $__FM = $_FM[$fm_i];
+ if ($__FM['nap'] == $nap && ($__FM['ora']==$ora || is_null($__FM['ora'])) ) echo '<span style="float:left; background-color: lightgreen; border-radius:50%; padding:2px; font-size:smaller; color:white; border: solid 1px lime;">FM</span>';
+ }
+ }
+ if ($TANKOR_DOLGOZAT[$_T['tankorId']][$dt]>0) echo '<span style="color:orange;" class="icon-idea-alt" title="bejelentett dolgozat dolgozatAdat" data-dolgozatid="'.$TANKOR_DOLGOZAT[$_T['tankorId']][$dt].'"></span>';
+ if ($TANKOR_JEGYZET[$_T['tankorId']][$dt]>0) echo '<span style="color:lightgreen;" class="icon-file-edit-alt" title="jegyzet"></span>';
+ $_teremKiir = ($_T['teremId'] != $_valosTeremId) ? '<del>'.$ADAT['termek'][$_T['teremId']]['leiras'].'</del><ins>'.$ADAT['termek'][$_valosTeremId]['leiras'].'</ins>' : $ADAT['termek'][$_T['teremId']]['leiras'];
+ $_ferohely = $ADAT['termek'][$_valosTeremId]['ferohely'];
+ $_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
+ if ($_T['tankorId']!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
+ echo $ADAT['tankorok'][$_T['tankorId']][0]['tankorNev'];
+ echo '</span>';
+ } else {
+ echo "$_targyjel : $_osztalyJel : ";
+ }
+ echo ', ';
+ echo '<span title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$_teremKiir.'</span>';
+ echo '<br/>';
+ if ($_ORA['kit']!='') {
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+ } else {
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ }
+
+ if (isset($_ORA['oo'])) {
+ if ($_ORA['leiras']!='') echo '<sup title="adminisztrálva">&#9679;</sup>';
+ else echo '<sup title="betöltve">&#9675;</sup>'; // &deg;
+ }
+ if (in_array($_tankorTipus,array('délutáni','tanórán kívüli'))) {
+ echo ' &sup1';
+ }
+
+ echo '</div>';
+ if (count($T[$nap][$ora]['orak'])>$i+1)
+ //echo '<hr />';
+ echo '<div style="height:1px; width:80%; margin:auto; background-color: #ccc;"></div>';
+ }
+ /* !!! Az orarendTankor összerendezőhöz állnak csak rendelkezésre ezek a fals adatok, és csak tanárnál...
+ --> lásd még: share/orarend.php
+ if (count($T[$nap][$ora]['orak'])==0) {
+ $het = $ADAT['orarend']['napok'][$nap]['het'];
+ if (count($ADAT['orarend']['orarendiOra'][$het][$nap][$ora])>0) {
+ $X = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora];
+ for ($i=0; $i<count($X); $i++) {
+ echo '<div class="unfinished">';
+ echo $X[$i]['targyJel'].' : ';
+ echo $X[$i]['osztalyJel'].' : ';
+ echo $X[$i]['teremId'];
+ echo '</div>';
+ }
+ }
+ }
+ */
+ /* és ide jönnek a pluszok */
+ $j=0;
+ if (is_array($ADAT['haladasi']['orak'][$dt][$ora])) {
+ foreach ($ADAT['haladasi']['orak'][$dt][$ora] as $_tankorId => $__T) {
+ if (!is_array($ORARENDI) || !in_array($_tankorId,$ORARENDI)) {
+ if ($j!=0) echo '<hr/>'; $j++;
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora];
+ _putOra($_ORA,$_tankorId,$TANKOR_DOLGOZAT);
+ }
+ }
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '<tbody>';
+ if ($kepzes_figyel) {
+ echo '<tr><td colspan="6" style="font-weight:normal;height:14px; background-color:#6495ED; color:white;">';
+ //echo '<div style="margin:auto; border-top:0px; border-bottom: solid 1px #555555; border-left: solid 1px #555555; border-right: solid 1px #555555; background-color:#C71585; color:white;">';
+ if ($KEPZES_MATRIX[1]!=0) echo 'Képzéshez viszonyított óraszám hiány: '.$KEPZES_MATRIX[1].' ';
+ if ($KEPZES_MATRIX[2]!=0) echo 'Első nyelv: '.$KEPZES_MATRIX[2].' ';
+ if ($KEPZES_MATRIX[3]!=0) echo 'Második nyelv: '.$KEPZES_MATRIX[3].' ';
+ //echo '</div>';
+ echo '</td></tr>';
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+
+// } // foreach
+
+ } else {
+ putOrarendPlain($ADAT);
+ }
+
+
+ }
+
+ function putOrarendPlain($ADAT) {
+ if (is_array($ADAT['orarend']['orarendiOra'])) {
+ foreach($ADAT['orarend']['orarendiOra'] as $het => $T) {
+ echo '<table class="orarend" align="center">'."\n";
+ echo '<caption>'.$het.'. heti órarend</caption>';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) { // FIXME (getMinOra, getMaxOra konstansok!???)
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) { // FIXME (getMaxNap)
+ echo '<td>';
+ $X = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora];
+
+ for ($i=0; $i<count($X); $i++) {
+ echo '<div class="unfinished">';
+ echo $X[$i]['targyJel'].' : ';
+ echo $X[$i]['osztalyJel'].' : ';
+ echo $X[$i]['teremId'];
+ echo '</div>';
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ }
+ }
+ }
+
+ function _putOra($ORA,$_tankorId,$TANKOR_DOLGOZAT) {
+ global $ADAT;
+ if ($_tankorId=='') return false;
+ $_ORA = $ORA[$_tankorId];
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ $_eredetClass = $_ORA['eredet'];
+ echo '<div class="'.$_tipusClass.' '.$_eredetClass.'" title="'.$_ORA['tipus'].'" >';
+ if ($TANKOR_DOLGOZAT[$_tankorId][$_ORA['dt']]>0) echo '<span style="color:orange;" class="icon-idea-alt"></span>';
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].')" >';
+ echo $ADAT['tankorok'][$_ORA['tankorId']][0]['tankorNev'];
+ echo '</span>';
+
+ echo ', '.$ADAT['termek'][$_ORA['teremId']]['leiras'];
+
+ echo '<br/>';
+
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+
+ echo '</div>';
+
+ }
+
+ function _datediff($dt1,$dt2) {
+ return round(abs(strtotime($dt1)-strtotime($dt2))/86400);
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml
new file mode 100644
index 00000000..d6f037b0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendBetolto.phtml
@@ -0,0 +1,60 @@
+<?php
+
+ function putFileValaszto($ADAT) {
+
+ formBegin(array('class'=>'file'));
+
+ echo '<input type="hidden" name="action" value="fileBetoltes" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" />'."\n";
+ echo '<input type="hidden" name="igDt" value="'.$ADAT['igDt'].'" />'."\n";
+ echo '<input type="hidden" name="orarendiHet" value="'.$ADAT['orarendiHet'].'" />'."\n";
+
+ echo '<label for="fileName">'._FILENAME.'</label>'."\n";
+ echo '<input type="text" id="fileName" name="fileName" value="'.$ADAT['fileName'].'" /><br />';
+ echo '<input type="checkbox" checked="checked" name="lezaras" value="true" id="lezaras" /><label for="lezaras">'._LEZARAS.'</label><br />';
+ echo '<select name="conv">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($ADAT['conv'] => ' selected="selected" ');
+ for ($i = 0; $i < count($ADAT['convert']); $i++) {
+ echo '<option value="'.$ADAT['convert'][$i].'"'.$SEL[ $ADAT['convert'][$i] ].'>'.$ADAT['convert'][$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ if ($ADAT['showForceOption']) {
+ echo '<br /><input id="force" type="checkbox" name="force" value="true" /><label for="force">'._FORCE.'</label>'."\n";
+ }
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ echo '<br />'."\n";
+ echo '<a href="'
+ .href('index.php?page=session&f=download&download=true&dir=naplo/orarend/orarendBetolto&file=fromAsc.xml')
+ .'">'
+ .'<img src="skin/classic/module-session/img/download.gif" alt="Download" />'
+ ._EXPORT_SABLON_LETOLTESE
+ .'</a>'."\n";
+
+ formEnd();
+ }
+
+ function putAdat($ORAK) {
+
+ echo '<table border="1">';
+
+ for ($i = 0; $i < count($ORAK); $i++) {
+ echo '<tr>';
+ for ($j = 0; $j < count($ORAK[$i]); $j++) {
+ echo '<td>';
+ echo $ORAK[$i][$j];
+ echo '</td>';
+ }
+
+ echo '</tr>';
+ }
+
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml
new file mode 100644
index 00000000..cb44176f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendEllenorzes.phtml
@@ -0,0 +1,88 @@
+<?php
+
+ function putEredmeny($ADAT) {
+
+ global $aHetNapjai;
+
+ formBegin(array('class'=>'orarend'));
+
+ echo '<ol>';
+
+ echo '<li>';
+ echo '<h1>'._ORARENDIORA_TANKOR_ELLENORZES.'</h1>';
+ if (count($ADAT['check']['orarendiOraTankor']) > 0) {
+ echo '<ol class="kritikus">';
+ for ($i = 0; $i < count($ADAT['check']['orarendiOraTankor']); $i++) {
+ $A = $ADAT['check']['orarendiOraTankor'][$i];
+ echo '<li>';
+ echo $ADAT['tanarok'][ $A['tanarId'] ]['tanarNev'].' '.$A['het'],'. '._HET.' '.$aHetNapjai[ $A['nap']-1 ].' '.$A['ora'].'. '._ORA.': ';
+ echo '<strong>'.$A['osztalyJel'].' '.$A['targyJel'].'</strong>';
+ echo ' ('._ERVENYES.': '.$A['tolDt'].' - '.$A['igDt'].')';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '<li>';
+ echo '<h1>'._TANKOR_ORASZAM_ELLENORZES.'</h1>'."\n";
+ if (count($ADAT['check']['tankorOraszam']) > 0) {
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['check']['tankorOraszam']); $i++) {
+ $A = $ADAT['check']['tankorOraszam'][$i];
+ echo '<li>';
+ echo $A['tankorNev'].' ('.$A['tankorId'].'): <strong>'.$A['tankorHetiOraszam'].' != '.$A['orarendHetiOraszam'].'</strong>';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '<li>';
+ echo '<h1>'._HIANYZO_TERMEK.'</h1>'."\n";
+ if (count($ADAT['check']['hianyzoTermek']) > 0) {
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['check']['hianyzoTermek']); $i++) {
+ $A = $ADAT['check']['hianyzoTermek'][$i];
+ echo '<li>';
+ echo $A['tanarNev'].' '.$A['het'],'. '._HET.' '.$aHetNapjai[ $A['nap']-1 ].' '.$A['ora'].'. '._ORA.': ';
+ echo '<strong>'.$A['osztalyJel'].' '.$A['targyJel'].'</strong>';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '<li>';
+ echo '<h1>'._TEREMUTKOZES.'</h1>'."\n";
+ if (count($ADAT['check']['teremUtkozes']) > 0) {
+ echo '<ol>';
+ for ($i = 0; $i < count($ADAT['check']['teremUtkozes']); $i++) {
+ $A = $ADAT['check']['teremUtkozes'][$i];
+ echo '<li>';
+ echo $A['het'],'. '._HET.' '.$aHetNapjai[ $A['nap']-1 ].' '.$A['ora'].'. '._ORA.': ';
+ echo '<strong>'.$A['teremId'].'</strong>';
+ echo '</li>';
+ }
+ echo '</ol>';
+ } else {
+ echo _OK;
+ }
+ echo '</li>'."\n";
+
+ echo '</ol>';
+
+//echo '<hr><pre>';
+//var_dump($ADAT['check']['teremUtkozes']);
+//echo '</pre>';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml
new file mode 100644
index 00000000..04a59fb4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendLoad.phtml
@@ -0,0 +1,26 @@
+<?php
+
+ function putJelIdForm($ADAT) {
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="jelid" />';
+ for ($i=0; $i<count($ADAT['missing']); $i++) {
+ echo $ADAT['missing'][$i];
+
+ echo '<select name="jelid[]">';
+ echo '<option value=""></option>';
+ for ($j=0; $j<count($ADAT['tanarok']); $j++) {
+ echo '<option value="'.$ADAT['missing'][$i].'_'.$ADAT['tanarok'][$j]['tanarId'].'">'.$ADAT['tanarok'][$j]['tanarNev'].'</option>';
+ }
+ echo '</select>'."\n";
+
+ echo '<br/>';
+
+ }
+ echo '<input type="submit" />';
+
+ formEnd();
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml
new file mode 100644
index 00000000..bd9b13c1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendModosito.phtml
@@ -0,0 +1,309 @@
+<?php
+
+ function putOrarend($ADAT) {
+
+ echo '<div id="infoBox1"></div>';
+ echo '<div id="infoBox2"></div>';
+
+ global $aHetNapjai;
+ $TANKOROK = $ADAT['felvehetoTankorok'];
+ $BLOKKOK = $ADAT['felvehetoBlokkok'];
+ if (is_array($ADAT['felvehetoTankorok']) && count($ADAT['felvehetoTankorok']) > 0) {
+
+ $T = $ADAT['orarend']['assoc'];
+ echo '<h2 class="toPrint">'.$ADAT['toPrint'].'</h2>';
+ formBegin();
+
+ if (count($ADAT['vanHaladasi'])>0) {
+ $_class = ($ADAT['haladasiModositando']!=0) ? 'haladasiModositando':'';
+ echo '<div class="haladasi '.$_class.'">';
+# echo '<span class="icon-pencil-alt"></span> az órarendi módosítások a (már betöltött) haladási naplóval együtt módosítható';
+ echo '<span class="icon-pencil-alt"></span> az új - órarendbe felveendő - órák a már betöltött haladási naplóba is bekerülhetnek?';
+ $_CHK = ($ADAT['haladasiModositando']!=0) ? 'checked="checked"':'';
+ echo '<input type="checkbox" id="haladasiModositando" name="haladasiModositando" value="1" '.$_CHK.' />';
+ echo ' (a törlés és teremmódosítás nem vonatkozik a már betöltött órákra)';
+ echo '</div>';
+ }
+ echo '<input type="hidden" name="action" value="do" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
+ echo '<input type="hidden" name="refTolDt" value="'.$ADAT['refTolDt'].'" />';
+ echo '<input type="hidden" name="refIgDt" value="'.$ADAT['refIgDt'].'" />';
+ echo '<input type="hidden" name="tolDt" value="'.$ADAT['tolDt'].'" />';
+
+ echo '<table id="orarend" class="orarend" align="center" cellspacing="1">'."\n";
+ echo '<thead>';
+ echo '<tr><th></th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ $dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ //$_th_class = ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? '': 'spec';
+ $_th_class = ($ADAT['vanHaladasi'][$dt]['db']>0) ? 'spec': '';
+ echo '<th class="'.$_th_class.'">';
+ if (count($ADAT['vanHaladasi'][$dt]['db'])>0) echo '<span class="icon-record" style="color: #E91E63" title="Már van betöltve haladási napló!"></span> ';
+ echo '<span>'.str_replace('-','.',$ADAT['orarend']['napok'][$nap]['dt']).'. ('.$ADAT['orarend']['napok'][$nap]['het'].')</span> ';
+ echo ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? $aHetNapjai[($nap-1)] : $ADAT['orarend']['napok'][$nap]['megjegyzes'];
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tbody>'."\n";
+// echo '<caption>'.$het.'. heti órarend</caption>';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ $CELLATANKORIDK=array();
+ $dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ $het = $ADAT['orarend']['napok'][$nap]['het'];
+ echo '<td id="tdid.'.$het.'.'.$nap.'.'.$ora.'_'.$ser++.'">';
+// $het = 0;
+ $ORARENDI = $__tanarIdk = array();
+ for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) {
+ $_T = $T[$nap][$ora]['orak'][$i];
+ $CELLATANKORIDK[] = $_T['tankorId'];
+ $ORARENDI[] = $_T['tankorId'];
+ $__tanarIdk[] = $_T['tanarId'];
+ //
+ //$het = $_T['het'];
+// $_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
+ // Az órarendből a jelek:
+ $_targyJel = $_T['targyJel'];
+ $_osztalyJel = $_T['osztalyJel'];
+ // figyelem, itt jön a kiírás, a _putOra fv helyett:
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ // -------------------------------------
+ /* Megjelenítési rétegé */
+ $_class = ($_T['teremId']=='') ? ' nincsTerem draggable':' draggable';
+ echo '<div id="draggable'.(++$sdokrand).'" class="'.$_tipusClass.$_class.'" title="'.$_ORA['tipus'].'" id="D'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'">';
+
+// Fejlesztés alatt, itt lehet majd felvenni az órát, ha már van órarend
+// Igaziból lehet, hogy ezt az órarend felületen célszerűbb lenne megcsinálni
+if ($ADAT['vanHaladasi'][$dt]>0) {
+ echo '<span style=" float:left; color:white; padding: 4px; ">';
+ if (isset($ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']]['oraId'])) {
+ echo '<span class="icon-ok-sign oraAdat" data-oraid="'.intval($ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']]['oraId']).'" title="ez az óra szerepel a haladási naplóban!"></span>';
+ } else {
+ echo '<span class="icon-minus-sign" title="ez az óra nem szerepel a haladási naplóban!"></span>';
+ // dt-ora-ki,tankorId,teremId,tipus,eredet,feladatTipusId,munkaido
+ }
+ echo '</span >';
+}
+ $_ferohely = $ADAT['termek'][$_T['teremId']]['ferohely'];
+ $_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
+ if ($_T['tankorId']!='') {
+ // HACK - találjuk ki, hogy mi a kulcsa a kártyának
+ for ($_k=0; $_k<count($ADAT['orarend']['orarendiOra'][$het][$nap][$ora]); $_k++) {
+ $_tmp = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora][$_k];
+ if ($_tmp['tanarId']==$_T['tanarId']) {
+ $_kulcsTolDt = $_tmp['tolDt'];
+ }
+ } unset($_tmp);
+ // -------
+ if ($_kulcsTolDt!='') echo '<input type="checkbox" class="minusz" name="ORARENDMINUSZ[]" value="'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'.'.$dt.'.'.$_kulcsTolDt.'" title="'._TOROL.'" />'."\n";
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
+ echo $ADAT['tankorok'][$_T['tankorId']][0]['tankorNev'];
+ echo '</span>';
+ //echo '<input type="checkbox" name="CSERE[]" value="'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'" title="'._CSEREL.'" />'."\n";
+ } else {
+ echo "$_targyjel : $_osztalyJel : ";
+ }
+ echo ', ';
+ echo '<span title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$ADAT['termek'][$_T['teremId']]['leiras'].'</span>';
+ _putTerem(array('name'=>'T_'.$het.'_'.$nap.'_'.$ora.'_'.$_T['tanarId'].'_'.$_kulcsTolDt, 'teremId'=>$_T['teremId']),$ADAT['termek']);
+ echo '<br/>';
+ if ($_ORA['kit']!='') {
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+ } else {
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ }
+
+ echo '</div>';
+ /* Egy egység */
+
+
+
+ // -------------------------------------
+
+ if (count($T[$nap][$ora]['orak'])>$i+1) echo '<hr/>';
+
+
+ }
+ if (isset($ADAT['haladasi']['orak'][$dt][$ora])) {
+ foreach($ADAT['haladasi']['orak'][$dt][$ora] as $__tankorId => $_O) {
+ if (!in_array($__tankorId,$CELLATANKORIDK)) {
+ //$_O = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ echo '<div class="haladasiOra oraAdat '.($_O['tipus']).'" data-oraid="'.$_O['oraId'].'">';
+ echo '<span class="icon-time" style="margin:3px 3px;color:white; float:left;"></span>';
+ if (!in_array($_O['tipus'],array('elmarad','elmarad_máskor')))
+ echo '<input type="checkbox" name="HALADASIORATOROL[]" value="'.$_O['oraId'].'" />';
+ echo $ADAT['tankorok'][ $__tankorId ][0]['tankorNev'];
+ // array(13) { ["oraId"]=> string(5) "37936" ["dt"]=> string(10) "2016-01-08" ["ora"]=> string(2) "10" ["ki"]=> string(2) "81" ["kit"]=> NULL ["tankorId"]=> string(4) "3086" ["teremId"]=> NULL ["leiras"]=> string(0) "" ["tipus"]=> string(6) "egyéb" ["eredet"]=> string(8) "órarend" ["feladatTipusId"]=> NULL ["munkaido"]=> string(10) "lekötött" ["oo"]=> bool(false)
+ echo '<br/>'.$_O['tipus'];
+ echo ' '.$_O['eredet'];
+ if ($_O['teremId']!='') echo ' '.$ADAT['termek'][$_O['teremId']]['leiras'];
+ if ($_O['leiras']!='') echo '<br/>'.$_O['leiras'];
+ echo '</div>';
+ }
+ }
+ }
+ if (count($T[$nap][$ora]['orak'])==0 || !in_array($ADAT['tanarId'],$__tanarIdk)) {
+ _putPluszOra($het,$nap,$ora,$TANKOROK,$BLOKKOK);
+ //echo '<input type="checkbox" name="CSERE[]" value="'.$het.'.'.$nap.'.'.$ora.'.'.$_T['tanarId'].'" />';
+ }
+ //echo '<div class="draggable" style="height:10px; font-size:1px;">&nbsp;</div>';
+
+/* ============== */
+for ($oi=0; $oi<count($ADAT['orarendioraTankor']['orarendiOra'][$het][$nap][$ora]); $oi++) {
+ $_TANKOROSSZE = $ADAT['orarendioraTankor']['orarendiOra'][$het][$nap][$ora][$oi];
+
+ if (is_null($_TANKOROSSZE['tankorId'])) {
+ echo '<div style="background-color: orange;">';
+
+ echo '<div style="background-color: red; border-bottom:solid 1px white;">'._LEBEGO_ORA.'</div>';
+ $__tanarId = $_TANKOROSSZE['tanarId'];
+ $__targyJel = $_TANKOROSSZE['targyJel'];
+ $__osztalyJel = $_TANKOROSSZE['osztalyJel'];
+ $__teremId = $_TANKOROSSZE['teremId'];
+ $__tolDt = $_TANKOROSSZE['tolDt'];
+
+ echo _TANAR.': '.$__tanarId.'<br/>';
+ echo _TARGYJEL.': '.$__targyJel.'<br/>';
+ echo _OSZTALYJEL.': '.$__osztalyJel.'<br/>';
+ //echo _TEREMID.': '.$__teremId.'<br/>';
+ echo _TOLDT.': '.$__tolDt.'<br/>';
+
+ //PRIMARY KEY (`het`,`nap`,`ora`,`tanarId`,`tolDt`),
+ echo '<input type="checkbox" name="ORARENDIORATOROL[]" value="'.$het.'%'.$nap.'%'.$ora.'%'.$__tanarId.'%'.$__tolDt.'" />';
+ echo _TOROL;
+
+ // és a hozzárendelt tankör:
+ echo '<div>';
+ echo '<select name="ORARENDIORAFELVESZ[]" class="orarendTankor" id="'."${het}:${nap}:${ora}_${__tanarId}_${__osztalyJel}_${__targyJel}".'">';
+ echo '<option value="">'._TANKOR_HOZZARENDELES.'</option>';
+// foreach($TANKOROK as $_tankorId => $_TANKOR) {
+ for ($oj=0; $oj<count($TANKOROK); $oj++) {
+ $__tankorId = $TANKOROK[$oj]['tankorId'];
+ $__TANKOR = $TANKOROK[$oj];
+ // figyelem, nem ugyanazon tömb $i. elemét hasonlítjuk össze! , vizsgáljuk!!!!!!!
+ // de a feltételben szerepelnie kell, így nem probléma. --FIXME
+ //$_SEL = ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) ? ' selected="selected" ': '';
+ //if ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) {
+ // $X[] = $_tankorId;
+ //}
+ echo '<option value="'.$__tanarId.'%'.$__osztalyJel.'%'.$__targyJel.'%'.$__tankorId.'"'.$__SEL.'>';
+ echo $__TANKOR['tankorNev'];
+ echo "($__tankorId)";
+ //if (is_array($X) && in_array($_tankorId,$X)) echo '+';
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ echo '</div>';
+
+
+ echo '</div>'."\n";
+ }
+}
+//--------------------------------------
+
+
+
+
+
+
+
+
+
+
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+// } // foreach
+
+ echo '<div class="button"><input type="submit" value="ok" /></div>';
+
+ if (count($ADAT['hibasOrak'])>0) {
+ echo '<div id="hibasOrak">';
+ for ($i=0; $i<count($ADAT['hibasOrak']); $i++) {
+ $__tanarId = $ADAT['hibasOrak'][$i]['tanarId'];
+ $__tankorId = $ADAT['hibasOrak'][$i]['tankorId'];
+ $__osztalyJel = $ADAT['hibasOrak'][$i]['osztalyJel'];
+ $__targyJel = $ADAT['hibasOrak'][$i]['targyJel'];
+ $__tolDt = $ADAT['hibasOrak'][$i]['tolDt'];
+ $__igDt = $ADAT['hibasOrak'][$i]['igDt'];
+ $__het = $ADAT['hibasOrak'][$i]['het'];
+ $__nap = $ADAT['hibasOrak'][$i]['nap'];
+ $__ora = $ADAT['hibasOrak'][$i]['ora'];
+ echo '<div class="hibas ora">';
+
+ echo '<input type="checkbox" name="ORARENDIORATOROL[]" value="'.$__het.'%'.$__nap.'%'.$__ora.'%'.$__tanarId.'%'.$__tolDt.'" checked="checked"/>';
+
+ echo $ADAT['tankorok'][$__tankorId][0]['tankorNev'].'<br/>';
+ echo $ADAT['tanarok'][$__tanarId]['tanarNev'];
+ echo '<div class="details">';
+ echo $__het.'/'.$__nap.'/'.$__ora.'<br/>';
+ echo $__tolDt.' '.$__igDt.'<br/>';
+ echo _TARGYJEL.': '.$__targyJel.'<br/>';
+ echo _OSZTALYJEL.': '.$__osztalyJel.'';
+ //echo _TEREMID.': '.$__teremId.'<br/>';
+ echo '</div>';
+ echo '</div>';
+ }
+ echo '</div>';
+
+ }
+ formEnd();
+
+ } else {
+// putOrarendPlain($ADAT);
+ }
+
+
+ }
+
+ function putOrarendPlain($ADAT) {
+ }
+
+ function _putPluszOra($het,$nap,$ora,$TANKOROK,$BLOKKOK) {
+
+ echo '<select name="ORARENDPLUSZ[]">';
+ echo '<option value="">'."$het-$nap-$ora".'</option>';
+ echo '<optgroup class="tankor" label="'._TANKOR.'">';
+ for ($i=0; $i<count($TANKOROK); $i++) {
+ $key = "T.$het.$nap.$ora.".($_id = $TANKOROK[$i]['tankorId']);
+ $value = $TANKOROK[$i]['tankorNev'].' ('.$_id.')';
+ echo '<option value="'.$key.'">'.$value.'</option>'."\n";
+ }
+ echo '</optgroup><optgroup class="blokk" label="'._BLOKK.'">';
+ for ($i=0; $i<count($BLOKKOK); $i++) {
+ $key = "B.$het.$nap.$ora.".($_id = $BLOKKOK[$i]['blokkId']);
+ $value = $BLOKKOK[$i]['blokkNev'].' ('.$_id.')';
+ echo '<option value="'.$key.'">'.$value.'</option>'."\n";
+ }
+ echo '</optgroup>'."\n";
+ echo '</select>';
+ }
+
+
+ function _putTerem($ADAT = array('name'=>'T_0_0_0','teremId'=>null), $TERMEK) {
+ echo '<select class="terem'.(($ADAT['teremId']=='') ? '" nincs"':'').'" name="'.$ADAT['name'].'">';
+ echo '<option value="NULL" >'.'</option>'."\n";
+ foreach ($TERMEK as $_teremId => $_T) { // leiras|ferohely|tipus|telephely
+ $_SEL = ($ADAT['teremId']==$_T['teremId']) ? ' selected="selected" ' : '';
+ if ($_T['tipus'] == $_T['leiras']) $_leiras = $_T['tipus']; else $_leiras = $_T['leiras'].' ('.$_T['tipus'].')';
+ if ($ADAT['teremId']==$_T['teremId']) {
+ echo '<option class="orig" value="" '.$_SEL.'>***'.$_T['leiras'].' ['.$_T['ferohely'].'] '.$_T['tipus'].'</option>'."\n";
+ } else {
+ echo '<option value="'.$_T['teremId'].'" '.$_SEL.'>'. $_leiras .' ['.$_T['ferohely'].']'.'</option>'."\n";
+ }
+ }
+ echo '</select>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml
new file mode 100644
index 00000000..08144c53
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTankor.phtml
@@ -0,0 +1,88 @@
+<?php
+
+ function putOrarend($ADAT,$TANKOROK,$tanarId) {
+
+ if (is_array($ADAT['orarendiOra'])) {
+
+ foreach($ADAT['orarendiOra'] as $het => $T) {
+ foreach($T as $nap => $REST) {
+ $NAP_SZAM2HET[$nap]=$het;
+ }
+ }
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="orarendiOraTankorAssoc" />';
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />';
+ echo '<input type="hidden" name="tolDt" value="'.$_POST['tolDt'].'" />';
+ echo '<input type="hidden" name="igDt" value="'.$_POST['igDt'].'" />';
+// echo '<input type="hidden" name="het" value="'.$het.'" />';
+ echo '<table class="orarend" align="center">'."\n";
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ $het = $NAP_SZAM2HET[$nap];
+ $T = $ADAT['orarendiOra'][$het];
+ echo '<td style="width:18%">';
+ if (count($T[$nap][$ora])>=2) {
+ echo 'HIBA! -'.$T[$nap][$ora].' - adott napon több órája is van!';
+ } else {
+ for($i=0; $i<count($T[$nap][$ora]); $i++) {
+ if ($ADAT['napok'][$nap]['tipus']=='tanítási nap'
+// && (
+// is_array($ADAT['assoc'][$nap][$ora]['orak'][$i])
+// || is_array($ADAT['orarendiOra'][$het][$nap][$ora])
+// )
+ ) {
+ // Az órarendből a jelek:
+ $_targyJel = $T[$nap][$ora][$i]['targyJel'];
+ $_osztalyJel = $T[$nap][$ora][$i]['osztalyJel'];
+ $_teremId = ($T[$nap][$ora][$i]['teremId']=='')?'-':$T[$nap][$ora][$i]['teremId'];
+ echo '<pre style="text-align: left">';
+ echo "targyJel: $_targyJel\n";
+ echo "osztalyJel: $_osztalyJel\n";
+ echo "teremId: $_teremId\n";
+ echo "het/nap/ora: $het/$nap/$ora\n</pre>";
+
+ // és a hozzárendelt tankör:
+ echo '<select name="ORARENDKEY[]">';
+ echo '<option value="">'.'</option>';
+ foreach($TANKOROK as $_tankorId => $_TANKOR) {
+ // figyelem, nem ugyanazon tömb $i. elemét hasonlítjuk össze! , vizsgáljuk!!!!!!!
+ // de a feltételben szerepelnie kell, így nem probléma. --FIXME
+ $_SEL = ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) ? ' selected="selected" ': '';
+ if ($_tankorId==$ADAT['assoc'][$nap][$ora]['orak'][$i]['tankorId']) {
+ $X[] = $_tankorId;
+ }
+ echo '<option value="'.$tanarId.'%'.$_osztalyJel.'%'.$_targyJel.'%'.$_tankorId.'"'.$_SEL.'>';
+ echo $_TANKOR[0]['tankorNev'];
+ echo "($_tankorId)";
+ $_blokkStr = array();
+ if (is_array($_TANKOR[0]['blokkAdat'])) {
+ for ($j=0; $j<count($_TANKOR[0]['blokkAdat']); $j++) {
+ $_blokkStr[] = $_TANKOR[0]['blokkAdat'][$j]['blokkNev'];
+ }
+ echo ' ['.implode(', ',$_blokkStr).'] ';
+ }
+ if (is_array($X) && in_array($_tankorId,$X)) echo '+';
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ echo '<input type="hidden" name="ORARENDKULCSOK[]" value="'.$tanarId.'%'.$_osztalyJel.'%'.$_targyJel.'" />';
+ } // if
+ } // for
+ } // else
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ echo '<div align="center"><input type="submit" class="sub" /></div>';
+ formEnd();
+ } else {
+ echo '<h2>Adj meg keresési feltételt!</h2>';
+ }
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml
new file mode 100644
index 00000000..9efa700e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/orarendTeremModositas.phtml
@@ -0,0 +1,107 @@
+<?php
+
+ function putOrarendiOraValaszto($ADAT) {
+
+ global $aHetNapjai;
+
+ formBegin(array('class'=>'terem'));
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="orarendTeremModositas" />'."\n";
+
+ echo '<h1>'._ORARENDI_ORA_KIVALASZTASA.'</h1>'."\n";
+
+ $SEL = array($ADAT['tanarId'] => ' selected="selected" ');
+ echo '<label for="tanarId">'._TANAR.'</label>'."\n";
+ echo '<select name="tanarId" id="tanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['tanarok'] as $tanarId => $tAdat) {
+ echo '<option value="'.$tanarId.'"'.$SEL[$tanarId].'>'.$tAdat['tanarNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br />';
+ $SEL = array($ADAT['het'] => ' selected="selected" ');
+ echo '<label for="het">'._HET.'</label>'."\n";
+ echo '<select id="het" name="het">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['orarendiHetek']); $i++) {
+ $het = $ADAT['orarendiHetek'][$i];
+ echo '<option value="'.$het.'"'.$SEL[$het].'>'.$het.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ $SEL = array($ADAT['nap'] => ' selected="selected" ');
+ echo '<label for="nap">'._NAP.'</label>'."\n";
+ echo '<select id="nap" name="nap">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($aHetNapjai as $i => $napNev) {
+ $nap = $i+1;
+ echo '<option value="'.$nap.'"'.$SEL[$nap].'>'.$napNev.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ $SEL = array($ADAT['ora'] => ' selected="selected" ');
+ echo '<label for="ora">'._ORA.'</label>'."\n";
+ echo '<select id="ora" name="ora">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['orak']); $i++) {
+ $ora = $ADAT['orak'][$i];
+ echo '<option value="'.$ora.'"'.$SEL[$ora].'>'.$ora.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+ }
+
+ function putTeremModosito($ADAT) {
+
+ formBegin(array('class'=>'terem'));
+
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<input type="hidden" name="het" value="'.$ADAT['het'].'" />'."\n";
+ echo '<input type="hidden" name="nap" value="'.$ADAT['nap'].'" />'."\n";
+ echo '<input type="hidden" name="ora" value="'.$ADAT['ora'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+
+ echo '<input type="hidden" name="action" value="orarendTeremModositas" />'."\n";
+
+
+ echo '<h1>'._TEREM_MODOSITAS.'</h1>'."\n";
+
+ if (is_array($ADAT['orarendiOra']) && count($ADAT['orarendiOra'])>=1) {
+
+ echo '<strong>'.$ADAT['tankorok'][ $ADAT['tankorIndex'][ $ADAT['orarendiOra']['tankorId'] ] ]['tankorNev']
+ .' ('.$ADAT['orarendiOra']['tankorId'].') </strong>';
+ echo ' ['.$ADAT['orarendiOra']['osztalyJel'].', '.$ADAT['orarendiOra']['targyJel'].'] ';
+
+ $SEL = array($ADAT['orarendiOra']['teremId'] => ' selected="selected" ');
+ echo '<br /><select name="teremId" id="teremId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['termek'] as $teremId => $teremAdat) {
+ if ($teremId == $ADAT['orarendiOra']['teremId']) {
+ echo '<option value="'.$teremId.'" selected="selected" class="aktualis"> *** '.$teremAdat['leiras'].' ('.$teremId.') *** </option>'."\n";
+ } elseif (is_array($ADAT['foglaltTermek'][$teremId])) {
+ $foglaltAdat = $ADAT['foglaltTermek'][$teremId];
+ echo '<option value="'.$teremId.'"'.$SEL[$teremId].' class="foglalt">';
+ echo $teremAdat['leiras'].' ('.$teremId.')';
+ echo ' - '.$ADAT['tanarok'][ $foglaltAdat['tanarId'] ]['tanarNev'];
+ echo ', '.$ADAT['tankorok'][ $ADAT['tankorIndex'][$foglaltAdat['tankorId']] ]['tankorNev'].' ('.$foglaltAdat['tankorId'].')';
+ echo '</option>'."\n";
+ } else {
+ echo '<option value="'.$teremId.'"'.$SEL[$teremId].' class="szabad">'.$teremAdat['leiras'].' ('.$teremId.')</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+ } else {
+ echo _NINCS_ORAJA;
+ }
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml
new file mode 100644
index 00000000..13f15022
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/szabadTerem.phtml
@@ -0,0 +1,63 @@
+<?php
+
+ function putOrarend($ADAT) {
+
+ global $aHetNapjai;
+
+ if (is_array($ADAT['szabadTermek'])) {
+ $T = $ADAT['szabadTermek'];
+ $minOra=1;$maxOra=0;
+ $NAPOK = array();
+ foreach($T as $dt => $ORA) {
+ if(!in_array($dt,$NAPOK)) $NAPOK[] = $dt;
+ foreach ($ORA as $ora => $TERMEK) {
+ $X[$ora][$dt] = $TERMEK;
+ if ($maxOra<$ora) $maxOra = $ora;
+ if ($minOra>$ora) $minOra = $ora;
+ }
+ }
+ echo '<h2 class="toPrint">'.$ADAT['toPrint'].'</h2>';
+
+ echo '<table class="orarend" align="center">'."\n";
+ echo '<thead>';
+ echo '<tr><th></th>';
+ foreach ($NAPOK as $dt) { // FIXME (getMaxNap)
+ $nap = date('w',strtotime($dt));
+ $_th_class = ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? '': 'spec';
+ echo '<th class="'.$_th_class.'">';
+ //echo '<span title="'.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'">';
+ echo $aHetNapjai[($nap-1)];
+ echo ' '.$dt;
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tbody>'."\n";
+ for($ora=$minOra; $ora<=$maxOra; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ foreach ($NAPOK as $dt) {
+ echo '<td>';
+ for($i=0; $i<count($X[$ora][$dt]); $i++) {
+ $_teremId = $X[$ora][$dt][$i];
+ if ($_teremId!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].')" >';
+ echo $ADAT['termek'][$_teremId]['leiras'];
+ echo '</span>';
+ if ($i<count($X[$ora][$dt])-1) echo ', ';
+ }
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ }
+
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml
new file mode 100644
index 00000000..c0968a52
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/tanarOrarend.phtml
@@ -0,0 +1,38 @@
+<?php
+
+ function putTanarOrarend($Tanarok, $Orak, $napiMinOra, $napiMaxOra, $orarendiHet, $felev, $tolDt) {
+
+ formBegin(array('class'=>'orarend'));
+ echo '<input type="hidden" name="orarendiHet" value="'.$orarendiHet.'" />'."\n";
+ echo '<input type="hidden" name="felev" value="'.$felev.'" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />'."\n";
+ echo '<input type="submit" name="csv" value="CSV" />'."\n";
+ echo '<input type="submit" name="xls" value="XLS" />'."\n";
+ echo '<input type="submit" name="txt" value="TXT" />'."\n";
+ echo '<input type="submit" name="html" value="HTML" />'."\n";
+ formEnd();
+
+/*
+ echo '<table>'."\n";
+ for ($i = 0; $i < count($Tanarok); $i++) {
+
+ echo '<tr>'-"\n";
+ $tanarId = $Tanarok[$i]['tanarId'];
+ $tanarNev = $Tanarok[$i]['tanarNev'];
+
+ echo '<th>'.$tanarNev.'</th>'."\n";
+ for ($nap = 1; $nap < 6; $nap++) {
+ for ($ora = $napiMinOra; $ora <= $napiMaxOra; $ora++) {
+ $Ora = $Orak[$tanarId][$nap][$ora];
+ echo '<td>'.$Ora['osztalyJel'].'<br />'.$Ora['targyJel'].'</td>'."\n";
+ }
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+*/
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/orarend/termez.phtml b/mayor-orig/www/skin/classic/module-naplo/html/orarend/termez.phtml
new file mode 100644
index 00000000..4d00f428
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/orarend/termez.phtml
@@ -0,0 +1,86 @@
+<?php
+
+ function putTermezo($ADAT) {
+
+ formBegin();
+ echo '<input type="submit" value="▁ ▂ ▃ ▄ ▅ ▆ ▇ do the magic thing! ♠ ♣ ♥ ♦" class="magic" />';
+ echo '<input type="hidden" name="action" value="magic" />';
+ formEnd();
+
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="beallitasokModositasa" />';
+
+ $P = $ADAT['teremPreferencia'];
+ echo '<table class="teremPreferencia" align="center" cellspacing="1">';
+ echo '<thead><tr><th>'._SORREND.'</th><th>'._TANAR.'</th><th>'._TARGY.'</th><th>'._TEREM_SORREND.'</th><th></th></tr>';
+ for ($i=0; $i<count($P); $i++) {
+ $_t = $P[$i];
+ $_order = $P[$i]['teremPreferenciaId'];
+ $_tanarId=$P[$i]['tanarId'];
+ $_targyId=$P[$i]['targyId'];
+ $_termek=explode(',',$P[$i]['teremStr']);
+
+ echo '<tr>';
+ echo '<td>';
+ $href = href('index.php?page=naplo&sub=orarend&f=termez&action=run&tolDt='.$ADAT['tolDt'].'&runTeremPreferenciaId='.$_order,array('sessionID','lang','policy'));
+ echo ' <a class="run" href="'.$href.'"><span class="icon-play-alt"></span></a>';
+ echo '<input type="text" name="teremPreferenciaId_'.$_order.'" value="'.$_order.'" />';
+ echo '</td>';
+ echo '<td>'.$ADAT['tanar'][$_tanarId]['tanarNev'] .' ('.$_tanarId.')</td>';
+ echo '<td>';
+ if ($_targyId>0) echo $ADAT['targy'][$_targyId][0]['targyNev']. ' ('.$_targyId.')';
+ echo '</td>';
+ echo '<td class="terem">';
+ echo str_replace(',',', ',$P[$i]['teremStr']);
+ /*
+ echo '<select multiple="multiple">';
+ for ($t=0; $t<count($_termek); $t++) {
+ echo '<option>';
+ echo $_termek[$t];
+ echo '</option>';
+ }
+ echo '</select>';
+ */
+ echo '</td>';
+ echo '<td>';
+ $href = href('index.php?page=naplo&sub=orarend&f=termez&action=del&delTeremPreferenciaId='.$_order,array('sessionID','lang','policy'));
+ echo ' <a class="del" href="'.$href.'"><span class="icon-trash-alt"></span></a>';
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="ujTeremPreferenciaId" />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="ujTanarId">';
+ foreach($ADAT['tanar'] as $__tanarId => $__tanarAdat) {
+ echo '<option value="'.$__tanarId.'">';
+ echo $__tanarAdat['tanarNev']. ' ('.$__tanarAdat['tanarId'].')';
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="ujTargyId">';
+ echo '<option value="NULL">-</option>';
+ foreach($ADAT['targy'] as $__targyId => $__targyAdat) {
+ echo '<option value="'.$__targyId.'">';
+ echo $__targyAdat[0]['targyNev']. ' ('.$__targyId.')';
+ echo '</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '<td>';
+ echo '<input type="text" name="ujTeremStr" value="" /> (termek vesszővel)';
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>';
+ echo '<input type="submit" value="szabályrendszer módosítása" />';
+
+ formEnd();
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml
new file mode 100644
index 00000000..204f1265
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizelomenetel.phtml
@@ -0,0 +1,139 @@
+<?php
+/*
+ Module: naplo
+ Last-rev: 2011.01.
+ Description:
+ minden jegye jelenjen meg az adott képzés évfolyamain.
+ eldöntendő: egy tárgy jegyét melyik képzésen kapta?
+*/
+
+die('HIBA');
+
+ function putDiakTanulmanyiElomenetel($diakId, $ADAT) {
+
+ global $Honapok, $KOVETELMENY, $bizonyitvanyMegjegyzesek;
+
+ $kepzesId = $ADAT['kepzesId'];
+ for ($i=0; $i<count($ADAT['diakKepzes']); $i++) {
+ if ($kepzesId == $ADAT['diakKepzes'][$i]['kepzesId'] || $kepzesId=='') {
+ $KEPZ = $ADAT['diakKepzes'][$i];
+ $kepzesId = $ADAT['diakKepzes'][$i]['kepzesId']; // felülírjuk, ha nincs megadva
+ }
+ }
+
+ if (!is_array($KEPZ)) return false;
+
+ $colspan=1;
+ for ($e=$KEPZ['kezdoEvfolyam']; $e<=($KEPZ['zaroEvfolyam']); $e++) $colspan++;
+
+ echo '<table class="tanuloBizonyitvany" align="center" cellpadding="0" cellspacing="0" >'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th class="nev" colspan="'.$colspan.'">'.$ADAT['diakAdat']['viseltNevElotag'].' '.$ADAT['diakAdat']['viseltCsaladinev'].' '.$ADAT['diakAdat']['viseltUtonev'].'</th>';
+ echo '</tr>';
+ if (is_array($ADAT['diakKepzes'])) {
+ echo '<tr>';
+ echo '<th class="nev" colspan="'.$colspan.'">';
+ foreach($ADAT['diakKepzes'] as $index => $kepzesAdat) {
+ echo '<span title="['.$kepzesAdat['kepzesId'].']v'.$kepzesAdat['tanev'].' '.$kepzesAdat['kezdoEvfolyam'].'-'.$kepzesAdat['zaroEvfolyam'].'">'.$kepzesAdat['kepzesNev'].'</span>';
+ if ($i++>0) echo ' ';
+ }
+ echo '</th>';
+ echo '</tr>';
+ }
+ echo '<tr class="evf">';
+ echo '<th rowspan="1">'._EVFOLYAM.'</th>';
+// echo '</tr>';
+// echo '<tr class="evf">';
+ for ($evfolyam=$KEPZ['kezdoEvfolyam']; $evfolyam<=($KEPZ['zaroEvfolyam']); $evfolyam++)
+ echo '<th>'.$evfolyam.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="'.$colspan.'">';
+ echo $ADAT['intezmeny']['cimHelyseg'].', ';
+ $ho = date('m');
+ echo date('Y').'. '.kisbetus($Honapok[--$ho]).' '.date('d').'.';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody class="hideShowContainer">';
+
+ foreach ($ADAT['targyak'] as $targyId => $targyAdat) {
+ $TARGYORATERV = $ADAT['kepzesOraterv'][$kepzesId][$targyId];
+ if (is_array($TARGYORATERV)) $mutat = 'óratervi';
+ elseif (is_array($ADAT['zaroJegy'][$diakId][$targyId])) $mutat = 'nem óratervi'; /* mégis van-e ilyen zárójegye? ekkor ez nem óratervi */
+ else $mutat = false;
+ if ($mutat!==false) {
+ echo '<tr>';
+ echo '<th>';
+ $_title = $targyAdat['targyJelleg'].' ['.$targyId.']';
+ $_targyJelleg = ($targyAdat['targyJelleg']!='' && $targyAdat['targyJelleg']!=$ADAT['targyak'][$targyId]['targyNev'])?'<br/>('.$targyAdat['targyJelleg'].')':'';
+ echo '<span title="'.$_title.'">'.$ADAT['targyak'][$targyId]['targyNev'].$_targyJelleg.'</span>';
+ echo '</th>';
+ /* Bizonyítvány kiírás */
+ for ($evfolyam=$KEPZ['kezdoEvfolyam']; $evfolyam<=($KEPZ['zaroEvfolyam']); $evfolyam++) {
+ $_teljesitendo = ($TARGYORATERV[$evfolyam][1]['kovetelmeny']!='' || $TARGYORATERV[$evfolyam][2]['hetiOraszam']!='');
+ $_class = ($_teljesitendo===true) ? 'biz' : '';
+ $_class .= ($mutat == 'nem óratervi' && is_array($ADAT['zaroJegy'][$diakId][$targyId][$evfolyam])) ? ' nbiz' : '';
+ $_class .= (is_array($ADAT['zaroJegy'][$diakId][$targyId][$evfolyam])) ? ' vanjegy':'';
+
+ echo '<td class="'.$_class.'">';
+ if (is_array($ADAT['zaroJegy'][$diakId][$targyId][$evfolyam])) {
+ foreach( $ADAT['zaroJegy'][$diakId][$targyId][$evfolyam] as $szemeszter => $zaroJegyek ) {
+ $_jegyAdat = $zaroJegyek;
+ for ($j=0; $j<count($_jegyAdat); $j++) {
+ if ( count($ADAT['zaroJegy'][$diakId][$targyId][$evfolyam][1])>=1 && count($ADAT['zaroJegy'][$diakId][$targyId][$evfolyam][2])==0)
+ $csakFelevi=true;
+ else
+ $csakFelevi=false;
+ $jegyAdat = $_jegyAdat[$j];
+ $_targyOraterv = $TARGYORATERV[$jegyAdat['evfolyam']][$jegyAdat['szemeszter']];
+ $_title = $jegyAdat['evfolyam'].'. évfolyam';
+ $_elsofelev = ($szemeszter==1 && !$csakFelevi) ? ' class="openable szem1" style="display:none;" ' : '' ;
+ if ($_targyOraterv['kovetelmeny'] != $jegyAdat['jegyTipus']) $_title .= ' nem óraterv szerinti';
+ echo '<span title="'.$_title.'" '.$_elsofelev.' >';
+ //echo $jegyAdat['szemeszter'].'.';
+ if ($csakFelevi) echo '<span title="félévi osztályzat!">[';
+ echo $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['hivatalos'].'&nbsp;'.$bizonyitvanyMegjegyzesek[$jegyAdat['megjegyzes']];
+ if ($csakFelevi) echo ']</span>';
+ echo '</span>';
+
+ /* Ha ez vizsga volt???
+ if (is_array($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']])) {
+ $_kiir = '('.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['tipus'].', évfolyam:'.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['evfolyam'].')- '.($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['szoveg']);
+ echo '<span title="'.$_kiir.'">&ordm;</span>';
+ $MEGJ[] = $_kiir;
+ }*/
+ }
+ $_kiir = '';
+ if ($j+1 < count($_jegyAdat)) echo '<br/>';
+ }
+ } else {
+ if ($TARGYORATERV[$evfolyam][2]['hetiOraszam']!='') echo '-';
+ }
+ echo '</td>';
+ }
+ /* ------------------ */
+ echo '</tr>';
+ }
+ }
+ echo '<tr><th colspan="'.$colspan.'">';
+ echo '<input type="button" class="onClickHideShow" value="Minden félévet mutass!" />';
+ echo '</th></tr>';
+
+ echo '</tbody>';
+// if (count($MEGJ)>0) {
+// echo '<tbody><tr><th colspan="'.$colspan.'">';
+ //foreach ($MEGJ as $megj) echo $megj;
+// echo '<input type="button" class="onClickHideShow" value="mindet mutat" />';
+// echo '</th></tr></tbody>';
+// }
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml
new file mode 100644
index 00000000..e63b1e52
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/bizonyitvany.phtml
@@ -0,0 +1,426 @@
+<?php
+
+ function putDiakTanulmanyiOsszesito($diakId, $ADAT) {
+
+ global $Honapok, $KOVETELMENY, $bizonyitvanyMegjegyzesek;
+
+ echo '<table class="tanuloBizonyitvany" align="center" cellpadding="0" cellspacing="0">'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th class="nev" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'.$ADAT['diakAdat']['viseltNevElotag'].' '.$ADAT['diakAdat']['viseltCsaladinev'].' '.$ADAT['diakAdat']['viseltUtonev'].'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="leiras" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'._HIVATALOS_DT_SZERINT_CSOPORTOSITOTT.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="cim" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'._TANULMANYI_OSSZESITOJE.'</th>';
+ echo '</tr>';
+ if (is_array($ADAT['diakKepzes'])) {
+ echo '<tr>';
+ echo '<th class="nev" colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">';
+ foreach($ADAT['diakKepzes'] as $index => $kepzesAdat) {
+ echo '<span title="['.$kepzesAdat['kepzesId'].']v'.$kepzesAdat['tanev'].'">'.$kepzesAdat['kepzesNev'].'</span> ';
+ }
+ echo '</th>';
+ echo '</tr>';
+ }
+ echo '<tr>';
+ echo '<th rowspan="2">'._TARGY.'</th>';
+ foreach ($ADAT['bizonyitvany']['tanevSzemeszterei'] as $tanev => $tAdat) echo '<th colspan="'.count($tAdat).'">'.$tanev.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($ADAT['bizonyitvany']['tanevSzemeszterei'] as $tanev => $tAdat)
+ for ($i = 0; $i < count($tAdat); $i++) echo '<th>'.$tAdat[$i].'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<td colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">';
+ echo $ADAT['intezmeny']['cimHelyseg'].', ';
+ $ho = date('m');
+ echo date('Y').'. '.kisbetus($Honapok[--$ho]).' '.date('d').'.';
+ echo '</td>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody class="magatartasSzorgalom">';
+ echo '<tr>';
+ echo '<th class="magatartas">'._MAGATARTAS.'</th>';
+ foreach ($ADAT['bizonyitvany']['szemeszterek'] as $i => $szAdat) {
+ echo '<td class="biz magatartas">';
+ foreach ($ADAT['magatartasIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId][$szAdat['tanev']][$szAdat['szemeszter']];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="szorgalom">'._SZORGALOM.'</th>';
+ foreach ($ADAT['bizonyitvany']['szemeszterek'] as $i => $szAdat) {
+ echo '<td class="biz szorgalom">';
+ foreach ($ADAT['szorgalomIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId][$szAdat['tanev']][$szAdat['szemeszter']];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ echo '<tbody>';
+
+ echo '<tr class="fejlec">';
+ echo '<th>'._TARGY.'</th>';
+ echo '<th colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">'._JEGY.'</th>';
+ echo '</tr>';
+
+ foreach ($ADAT['bizonyitvany']['jegyek'] as $targyId => $targyAdat) {
+
+ if (!in_array($targyId, array_merge($ADAT['magatartasIdk'],$ADAT['szorgalomIdk'])) ) {
+ $TARGYORATERV = $ADAT['kepzesOraterv'][$targyId];
+ echo '<tr>';
+ echo '<th>';
+ echo $ADAT['targyak'][$targyId]['targyNev'];
+// echo $ADAT['targyak'][$targyId]['targyId'];
+ echo '</th>';
+ /* Bizonyítvány kiírás */
+ foreach ($ADAT['bizonyitvany']['szemeszterek'] as $i => $szAdat) {
+
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$targyId][$szAdat['tanev']][$szAdat['szemeszter']];
+ echo '<td class="biz">';
+ for ($j=0; $j<count($_jegyAdat); $j++) {
+ $jegyAdat = $_jegyAdat[$j];
+ if (__DIAK !== true || _OSZTALYZATOK_ELREJTESE !== true || time() > strtotime($jegyAdat['hivatalosDt'])) {
+ $_targyOraterv = $TARGYORATERV[$jegyAdat['evfolyam']][$jegyAdat['szemeszter']][0]; // TODO: evfolyamJel
+ $_title = $jegyAdat['evfolyam'].'. évfolyam';
+ if ($jegyAdat['evfolyamJel']!='') $_title .= ' ('.$jegyAdat['evfolyamJel'].'. évfolyamjel)' ;
+ if ($_targyOraterv['kovetelmeny'] != $jegyAdat['jegyTipus']) {
+ $_title .= ' nem óraterv szerinti';
+ $_class = ' style="font-style:italic; color: #ffffff;" ';
+ } else {
+ $_class = '';
+ }
+ echo '<span title="'.$_title.'" '.$_class.'>';
+ echo $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['hivatalos'].'&nbsp;'.$bizonyitvanyMegjegyzesek[$jegyAdat['megjegyzes']];
+ echo '</span>';
+
+ /* Ha ez vizsga volt, jegyezzük meg */
+ if (is_array($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']])) {
+ $_kiir = '('.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['tipus']
+ .', évfolyam:'.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['evfolyam']
+ .', évfolyamJel:'.$ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['evfolyamJel'].')- '.($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['szoveg']);
+ echo '<span title="'.$_kiir.'">&ordm;</span>';
+ $MEGJ[] = $_kiir;
+ }
+ $_kiir = '';
+ if ($j+1 < count($_jegyAdat)) echo '<br/>';
+ }
+ }
+
+ echo '</td>';
+ }
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>';
+ if (count($MEGJ)>0) {
+ echo '<tbody><tr><th colspan="'.(count($ADAT['bizonyitvany']['szemeszterek'])+1).'">';
+ foreach ($MEGJ as $megj) echo $megj."<br />\n";
+ echo '</th></tr></tbody>';
+ }
+ echo '</table>'."\n";
+ }
+
+
+
+
+ function putDiakBizonyitvany($diakId, $ADAT) {
+
+ global $Honapok, $KOVETELMENY, $bizonyitvanyMegjegyzesek, $bizonyitvanyJegyzetek, $osztaly, $attrs;
+
+ echo '<table class="tanuloBizonyitvany" align="center" cellpadding="0" cellspacing="0">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th class="nev" colspan="2">'.$ADAT['diakAdat']['viseltNevElotag'].' '.$ADAT['diakAdat']['viseltCsaladinev'].' '.$ADAT['diakAdat']['viseltUtonev'].'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th class="leiras" colspan="2">'._AZ_OSZTALYZATOK_HIVATALOS_DT_SZERINTI.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th class="cim" colspan="2">'._ERTESITOJE.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo _AZ.' '.$ADAT['intezmeny']['nev'].' ';
+ for ($i=0; $i<count($ADAT['diakAdat']['osztaly']); $i++) {
+ if ($i!=0) echo ' és';
+ echo $ADAT['diakAdat']['osztaly'][$i]['osztalyJel'];
+ }
+ echo ' '._OSZTALYABAN.'<br />';
+ echo ' '.$ADAT['szemeszterAdat']['tanev'].'-'.($ADAT['szemeszterAdat']['tanev']+1).' '._TANEV.' '.$ADAT['szemeszterAdat']['szemeszter'].'. '._SZEMESZTERBEN.' '._ELERT_EREDMENYEROL;
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<td colspan="2">';
+ echo $ADAT['intezmeny']['cimHelyseg'].', ';
+ $ev = substr($ADAT['szemeszterAdat']['zarasDt'], 0, 4);
+ $ho = substr($ADAT['szemeszterAdat']['zarasDt'], 5, 2);
+ $nap = substr($ADAT['szemeszterAdat']['zarasDt'], 8, 2);
+ echo $ev.'. '.kisbetus($Honapok[--$ho]).' '.$nap.'.';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td colspan="2">';
+ echo '<table class="sign">';
+ echo '<tr>';
+ echo '<td class="vonal">&nbsp</td>';
+ echo '<td>'._PH.'</td>';
+ echo '<td class="vonal">&nbsp</td>';
+ echo '</tr><tr>';
+ echo '<td>'._OSZTALYFONOK.'</td>';
+ echo '<td>&nbsp;</td>';
+ echo '<td>'._SZULO.'</td>';
+ echo '</tr>';
+ echo '</table>';
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</tfoot>'."\n";
+
+ echo '<tbody class="magatartasSzorgalom">'."\n";
+ echo '<tr>';
+ echo '<th class="magatartas">'._MAGATARTAS.'</th>';
+ echo '<td class="biz magatartas">';
+
+ foreach ($ADAT['magatartasIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th class="szorgalom">'._SZORGALOM.'</th>';
+ echo '<td class="biz szorgalom">';
+
+ foreach ($ADAT['szorgalomIdk'] as $_targyId) {
+ $_jegyAdat = $ADAT['bizonyitvany']['jegyek'][$_targyId];
+ for ($i=0; $i<count($_jegyAdat); $i++) {
+ $__jegyAdat = $_jegyAdat[$i];
+ echo $KOVETELMENY[$__jegyAdat['jegyTipus']][$__jegyAdat['jegy']]['hivatalos'].'&nbsp;';
+ }
+ }
+
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ echo '<tbody>'."\n";
+
+ echo '<tr class="fejlec">';
+ echo '<th>'._TARGY.'</th>';
+ echo '<th>'._JEGY.'</th>';
+ if (defined('TANITASI_HETEK_SZAMA')) echo '<th>'._ORASZAM.'</th>';
+ echo '</tr>'."\n";
+ if (is_array($ADAT['bizonyitvany']['targyak']))
+ foreach ($ADAT['bizonyitvany']['targyak'] as $targyId => $targyAdat) {
+ $bizAdat = $ADAT['bizonyitvany']['jegyek'][$targyId];
+ if (!in_array($targyId, array_merge($ADAT['magatartasIdk'],$ADAT['szorgalomIdk']))) { // itt szűrendő ki a magatartás - szorgalom
+ $targyNev = $ADAT['targyak'][$targyId]['targyNev'];
+ // innen is lehetne // $targyNev = $targyAdat['targyNev'];
+ echo '<tr>';
+ echo '<th>';
+ echo $targyNev;
+ echo '</th>';
+
+ echo '<td class="biz">';
+
+ for ($_ji=0; $_ji<count($bizAdat); $_ji++) {
+ $jegyAdat = $bizAdat[$_ji];
+ /* Bizonyítvány kiírás */
+ if (__DIAK !== true || _OSZTALYZATOK_ELREJTESE !== true || time() > strtotime($jegyAdat['hivatalosDt'])) {
+ if ($_ji!=0) echo ', ';
+ echo $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$jegyAdat['megjegyzes']];
+ if (is_array($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']])) {
+ echo '<span title="'.($ADAT['zaroJegyVizsga'][$jegyAdat['zaroJegyId']]['tipus']).'">&ordm;</span>';
+ }
+ if ($jegyAdat['megjegyzes'] != '') {
+ $jegyzetStr .= str_replace('%1%', $targyNev, $bizonyitvanyJegyzetek[$jegyAdat['megjegyzes']]).'<br />';
+ }
+ }
+ }
+ echo '</td>'."\n";
+
+ if (defined('TANITASI_HETEK_SZAMA')) {
+ // Óraszámok
+ echo '<td class="oraszam">';
+ echo $ADAT['bizonyitvany']['targyOraszam'][$targyId]['evesOraszam'];
+ echo '</td>';
+ }
+ /* ------------------- */
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</tbody>'."\n";
+
+ if (__ZARO_SZEMESZTER) {
+ $class = 'hianyzas';
+ $txt = '';
+ } else {
+ $class = 'hianyzas nemNyomtatando';
+ $txt = '<br /><span class="megj">'._IGAZOLATLAN_SZAM_MEGJEGYZES.'</span>';
+ }
+ echo '<tbody class="'.$class.'">';
+ echo '<tr class="fejlec">';
+ echo '<th colspan="2">'._MULASZTOTT_ORAK_SZAMA.$txt.'</th>';
+ echo '<th>'._MULASZTOTT_ELMELET_GYAKORLAT.'</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.'</th>';
+ echo '<td class="biz">';
+ echo intval($ADAT['hianyzas']['igazolt']);
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo intval($ADAT['hianyzas']['elmélet']['igazolt']);
+ echo '-';
+ echo intval($ADAT['hianyzas']['gyakorlat']['igazolt']);
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.'</th>';
+ echo '<td class="biz">';
+ echo intval($ADAT['hianyzas']['igazolatlan']);
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo intval($ADAT['hianyzas']['elmélet']['igazolatlan']);
+ echo '-';
+ echo intval($ADAT['hianyzas']['gyakorlat']['igazolatlan']);
+ echo '</td>';
+
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>'._KESESPERC.'</th>';
+ echo '<td class="biz">';
+ echo floor(($ADAT['hianyzas']['elmélet']['kesesPercOsszeg'] + $ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg']) / 45)
+ .' ('.intval($ADAT['hianyzas']['elmélet']['kesesPercOsszeg'] + $ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg']).' '._PERC.')';
+ echo '</td>';
+ echo '<td class="oraszam">';
+ echo floor($ADAT['hianyzas']['elmélet']['kesesPercOsszeg'] / 45).' ('.intval($ADAT['hianyzas']['elmélet']['kesesPercOsszeg']).' '._PERC.')';
+ echo '-';
+ echo floor($ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg'] / 45).' ('.intval($ADAT['hianyzas']['gyakorlat']['kesesPercOsszeg']).' '._PERC.')';
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+ echo '<tbody class="jegyzet">'."\n";
+ echo '<tr>';
+ echo '<td colspan="2">';
+ echo $jegyzetStr;
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ }
+
+////////////////////////////////!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+ function putZaroJegyModosito($diakId, $ADAT) {
+
+ global $KOVETELMENY;
+ global $_EVFOLYAMJEL_BETUVEL;
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ formBegin(array('class'=>'modosit'));
+
+ echo '<h1>'._JEGYMODOSITAS.' (csak speciális esetben!)</h1>';
+ echo '<input type="hidden" name="action" value="zaroJegyModositas" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ //EZNEMJO echo '<input type="hidden" name="osztalyId" value="'.$ADAT['diakAdat']['osztaly'][0]['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />'."\n";
+ echo '<input type="hidden" name="targySorrend" value="'.$ADAT['targySorrend'].'" />'."\n";
+
+
+ echo '<table class="jegy" cellspacing="1" cellpadding="1">';
+
+ echo '<tfoot><tr><th colspan="2">';
+ echo '<input type="submit" class="confirm" title="'._BIZTOS_E.'" value="'._OK.'" />'."\n";
+ echo '</th></tr></tfoot>';
+
+ echo '<tbody><tr>';
+ echo '<th>'._TARGY.'</th>';
+ echo '<td>';
+ // tárgy kiválasztása
+ echo '<select name="targyId">'."\n";
+ echo '<option value="">-</option>'."\n";
+ foreach ($ADAT['targyak'] as $targyId => $targyAdat) {
+ echo '<option value="'.$targyId.'">'.$targyAdat['targyNev'].' ('.$targyAdat['zaroKovetelmeny'].') ['.$targyId.']</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._EVFOLYAM.'</th>';
+ echo '<td>';
+
+ // évfolyam kiválasztás:
+ if (count($ADAT['diakEvfolyamJel'])>0) {
+ echo '<select name="evfolyam">';
+ // foreach ($ADAT['diakEvfolyamJel'] as $_evfolyamJel) echo '<option value="'.$_evfolyamJel.'">'.$_evfolyamJel.'</option>';
+ foreach($_EVFOLYAMJEL_BETUVEL as $_evfolyamJel => $_betuvel) {
+ $_SEL = (in_array($_evfolyamJel,$ADAT['diakEvfolyamJel'])) ? 'selected="selected"':'';
+ echo '<option value="'.$_evfolyamJel.'" '.$_SEL.'>'.$_evfolyamJel.' - '.$_betuvel.'</option>';
+ }
+ echo '</select>';
+ } else { // csak egy van (vagy egy se ... :(
+ echo ($evfolyamJel = $ADAT['diakEvfolyamJel'][0]).". ".((_EVFOLYAM));
+ }
+ echo '</td>';
+ echo '</tr>';
+
+
+ echo '<tr>';
+ echo '<th>'._JEGY.'</th>';
+ echo '<td>';
+
+ // jegy kiválsztása
+ $JEGYSELECT = array(
+ 'variable' => 'zaroJegy',
+ 'zaroJegyTipusok' => $ADAT['zaroJegyTipusok'],
+ 'diakId' => $diakId,
+// 'evfolyam' => $evfolyam, // nem biztos hogy van evfolyamunk, lehet hogy a select-ben definiált
+ 'targyId' => null, // nincs targyId-nk. Ez az előző select kimenete
+ 'tanev'=>$ADAT['szemeszterAdat']['tanev'],
+ 'szemeszter'=>$ADAT['szemeszterAdat']['szemeszter'],
+ );
+ putJegySelect($JEGYSELECT); // használjuk a shared könyvtár függvényeit
+
+ echo '</td></tr></tbody>';
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml
new file mode 100644
index 00000000..2851b4b5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/diak.phtml
@@ -0,0 +1,235 @@
+<?php
+/*
+ Module: naplo
+*/
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ function putTanuloJegyek($diakId, $diakNev, $Jegyek, $tolDt = '', $igDt = '', $ADAT) {
+
+ global $_TANEV, $Honapok, $Osztalyzatok, $bizonyitvanyMegjegyzesek, $KOVETELMENY, $SULYOZAS;
+ $_SULYTOMB = explode(':',$ADAT['sulyozas']);
+
+ if ($tolDt == '') $tolDt=$_TANEV['kezdesDt'];
+ if ($igDt == '') $igDt=$_TANEV['zarasDt'];
+ $aktDt = $kDt = date('Y-m-01',strtotime($tolDt));
+ $vDt = date('Y-m-01',strtotime($igDt));
+
+ $Targyak = $Jegyek['targyak'];
+ $Dolgozatok = $Jegyek['dolgozat'];
+ $hianyzoDolgozatok = $Jegyek['hianyzoDolgozatok'];
+ // ----------------------------------------
+ while (strtotime($aktDt) <= strtotime($vDt)) {
+ list($ev,$ho,$nap) = explode('-',$aktDt);
+ $HO[] = array(
+ 'év' => $ev,
+ 'hó' => $ho
+ );
+ $HO['count']++;
+ $aktDt = date('Y-m-01',strtotime('next month',strtotime($aktDt)));
+ }
+
+ formBegin();
+ echo '<table class="osztalyozo" align="center" cellpadding="0" cellspacing="1">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ if (__SHOW_FACES_TF) {
+ echo '<th id="virtualJegyEasterEgg">';
+ //putFace($diakId,'diak');
+ echo '</th>';
+ $_sub=-1;
+ } else $_sub=0;
+ echo '<th class="nev diakNev" data-diakid="'.$diakId.'" colspan="'.($HO['count']+count($_TANEV['szemeszter'])-1+$_sub).'">';
+ echo $diakNev.' '.$_osztalystr;
+ echo '</th>'."\n";
+
+ if (__ATLAG_MUTATAS !== false) {
+ if (__DEFAULT_SULYOZAS == $ADAT['sulyozas']) $_class="defaultSulyozas";
+ echo '<th class="'.$_class.'">';
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />';
+ $SEL = array($ADAT['sulyozas'] => ' selected="selected"');
+ echo '<select name="sulyozas" id="sulyozas" class="XXXonChangeSubmit">';
+ echo '<option value=""></option>';
+ if (is_array($SULYOZAS) && count($SULYOZAS) > 0) {
+ for ($i = 0; $i < count($SULYOZAS); $i++)
+ echo '<option value="'.$SULYOZAS[$i].'"'.$SEL[$SULYOZAS[$i]].'>'.$SULYOZAS[$i].'</option>';
+ } else {
+ // ide nem jöhetünk. vizsgáljuk meg feljebb
+ echo '<option value="1:1:1:1:1"'.$SEL['1:1:1:1:1'].'>'.'1:1:1:1:1</option>';
+ echo '<option value="1:1:1:2:2"'.$SEL['1:1:1:2:2'].'>'.'1:1:1:2:2</option>';
+ echo '<option value="1:2:2:4:4"'.$SEL['1:2:2:4:4'].'>'.'1:2:2:4:4</option>';
+ echo '<option value="1:1:2:2:4"'.$SEL['1:1:2:2:4'].'>'.'1:1:2:2:4'.'</option>';
+ }
+ echo '</select>';
+
+ echo '</th>';
+ }
+
+ echo '<th class="biz" colspan="2">'._BIZONYITVANY.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th rowspan="2">'._TARGY.'</th>'."\n";
+ for ($i = 0; $i < $HO['count']; $i++) {
+ echo '<td class="ho">';
+ echo '<span class="roman">'.decimal_to_roman($HO[$i]['hó']).'.</span>';
+ echo '<span class="literal">'.$Honapok[$HO[$i]['hó']-1].'</span>';
+ echo '</td>'."\n";
+ }
+ if (__ATLAG_MUTATAS !== false) echo '<th>'._ATLAG.'</th>'."\n";
+ foreach ($_TANEV['szemeszter'] as $idx => $szemeszterAdat) {
+ echo '<th class="biz">'.$szemeszterAdat['szemeszter'].'</th>'."\n";
+ }
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="'.($HO['count']+2).'">';
+ echo '<span class="jegy0"></span>';
+ echo '<span class="jegy1">'._KIS_JEGY.'</span>';
+ echo '<span class="jegy2">'._NORMAL_JEGY.'</span>';
+ echo '<span class="jegy3">'._DOLGOZAT.'</span>';
+ echo '<span class="jegy4">'._TEMAZARO.'</span>';
+ echo '<span class="jegy5">'._VIZSGAJEGY.'</span>';
+ echo '</th>'."\n";
+ echo '<th colspan="2">&nbsp;</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+// foreach ($Targyak as $targyId => $targyAdat) {
+ for ($t=0; $t<count($ADAT['diakTargy']); $t++) {
+ $targyId = $ADAT['diakTargy'][$t]['targyId'];
+ $targyNev= $ADAT['diakTargy'][$t]['targyNev'];
+ $targyAdat = $Targyak[$targyId];
+
+ if (in_array($ADAT['diakTargy'][$t]['evkoziKovetelmeny'],array('','nincs')) && in_array($ADAT['diakTargy'][$t]['zaroKovetelmeny'],array('','nincs'))) continue;
+ $_title = $ADAT['diakTargy'][$t]['evkoziKovetelmeny'].'/'.$ADAT['diakTargy'][$t]['zaroKovetelmeny'].'['.$targyId.']';
+
+ echo '<tr>'."\n";
+ echo '<th class="t" title="'.$_title.'">';
+ if (count($ADAT['targyTankor'][$targyId]) == 1) {
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$ADAT['targyTankor'][$targyId][0]['tankorId']).'">'.$targyNev.'</a>';
+ } else
+ echo $targyNev;
+ /* VIRTUAL */
+ echo ' <select class="eeHidden" style="display:none"><option value="1">kis</option><option value="2">normál</option><option value="3">dolgozat</option><option value="4">témazáró</option><option value="5">vizsga</option></select>';
+ putJegySelect(array(
+ 'class'=>'eeHidden',
+ 'style'=>'display:none',
+ 'jegySelectTipus'=>'jegy',
+ 'targyId'=>$targyId,
+ 'jegyTipus'=>$ADAT['diakTargy'][$t]['evkoziKovetelmeny']
+ ));
+ echo '<span class="addVirtualJegy eeHidden icon-plus-sign" style="display:none"></span>';
+ // ----------
+ echo '</th>'."\n";
+ for ($j = 0; $j < $HO['count']; $j++) {
+ echo '<td>';
+ $honapJegyei = $targyAdat[$HO[$j]['év']][$HO[$j]['hó']];
+ for ($k = 0; $k < count($honapJegyei); $k++) {
+ $jegyAdat = $Jegyek['jegyek'][$honapJegyei[$k]];
+ if ($KOVETELMENY[$jegyAdat['jegyTipus']]['átlagolható']===true) {
+ $JEGYATLAG[$j][$jegyAdat['jegyTipus']]['normal'][] = $jegyAdat['jegy']; // kulcsok szerinti átlag
+ $JEGYATLAG[$j][$jegyAdat['jegyTipus']]['jegyAdat'][] = $jegyAdat;
+ }
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$jegyAdat['jegyId']);
+ $_jegyShow = $KOVETELMENY[$jegyAdat['jegyTipus']][$jegyAdat['jegy']]['rovid'];
+ if ($jegyAdat['tipus'] < 3) $title = $jegyAdat['tankorNev'].' ('.$jegyAdat['dt'].') '.$jegyAdat['megjegyzes'];
+ else $title = $Dolgozatok[$jegyAdat['dolgozatId']]['dolgozatNev'].' ('.$jegyAdat['dt'].')'.' - '.$jegyAdat['tankorNev'].' '.$jegyAdat['megjegyzes'];
+ echo '<a onclick="return false;" class="jegyAdat jegy jegy'.$jegyAdat['tipus'].'" href="'.$href.'" title="'.htmlspecialchars($title).'"
+ data-targyid="'.$targyId.'"
+ data-jegyid="'.$jegyAdat['jegyId'].'"
+ data-jegy="'.$jegyAdat['jegy'].'" data-jegytipus="'.$jegyAdat['jegyTipus'].'" data-tipus="'.$jegyAdat['tipus'].'">';
+ echo ($_jegyShow!='') ? $_jegyShow.'' : '?';
+ if ($jegyAdat['dt']!=date('Y-m-d',strtotime($jegyAdat['modositasDt']))) echo '<sup title="Módosítva: '.$jegyAdat['modositasDt'].'">*</sup>';
+ echo ' </a>';
+ }
+ if (is_array($hianyzoDolgozatok[$targyId][$HO[$j]['év']][$HO[$j]['hó']])) {
+ $honapDolgozatai = $hianyzoDolgozatok[$targyId][$HO[$j]['év']][$HO[$j]['hó']];
+ for ($k = 0; $k < count($honapDolgozatai); $k++) {
+ $dolgozatAdat = $Dolgozatok[$honapDolgozatai[$k]];
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$dolgozatAdat['dolgozatId']);
+ $title = $dolgozatAdat['dolgozatNev'].' ('.$dolgozatAdat['bejelentesDt'].')';
+ echo '<a class="jegy4" href="'.$href.'" title="'.htmlspecialchars($title).'" data-dolgozatid="'.$dolgozatAdat['dolgozatId'].'"> – </a>';
+ }
+ }
+ echo '</td>'."\n";
+ }
+ if (__ATLAG_MUTATAS !== false) {
+ echo '<th class="atlag" id="targyAtlag_'.$targyId.'" data-targyid="'.$targyId.'">'.(($ADAT['sulyozas']!='')?$targyAdat['atlag']:'').'</th>'."\n";
+ }
+
+ /* Bizonyítvány kiírás */
+ // Ehelyett használható lenne a share putJegySelect() is! --TODO 2016-2017
+ foreach ($_TANEV['szemeszter'] as $idx => $szemeszterAdat) {
+ $tanev = $szemeszterAdat['tanev'];
+ $szemeszter = $szemeszterAdat['szemeszter'];
+ $_BIZ = $ADAT['zaroJegyek'][$diakId][$targyId][$tanev][$szemeszter];
+ echo '<td class="biz">'."\n";
+ for ($ji=0; $ji<count($_BIZ); $ji++) {
+ $zaroJegy = $_BIZ[$ji]['jegy'];
+ $megjegyzes = $_BIZ[$ji]['megjegyzes'];
+ $jegyTipus= $_BIZ[$ji]['jegyTipus'];
+ $jegy= $_BIZ[$ji]['jegy'];
+ if ($KOVETELMENY[$jegyTipus]['átlagolható']===true) {
+ $ZJATLAG[$tanev][$szemeszter][] = $jegy;
+ }
+ if (__DIAK !== true || _OSZTALYZATOK_ELREJTESE !== true || time() > strtotime($szemeszterAdat['zarasDt'])) {
+ $_sikertelenClass = (in_array( $jegy, $KOVETELMENY[$jegyTipus]['sikertelen']))? ' class="sikertelen" ': '';
+ echo '<span title="évfolyam:'.$_BIZ[$ji]['evfolyam'].' jel:'.$_BIZ[$ji]['evfolyamJel'].'" '.$_sikertelenClass.' >';
+ echo $KOVETELMENY[$jegyTipus][$jegy]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$megjegyzes];
+ echo '</span>';
+ }
+ }
+ echo '</td>'."\n";
+ }
+
+ /* ------------------- */
+
+ echo '</tr>'."\n";
+ }
+ //----------
+ echo '<tr><th style="text-align:right;">'._ATLAG.':</th>';
+ for ($j = 0; $j < $HO['count']; $j++) {
+ echo '<th>';
+ foreach (array('féljegy','jegy') as $atlagolhatoJegyTipus) {
+ // if (count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['normal'])>0) {
+ // echo $s[$j] = number_format( (array_sum($JEGYATLAG[$j][$atlagolhatoJegyTipus]['normal']) / count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['normal'])),2);
+ // if (intval($s[$j-1])!=0 && ($s[$j-1]-$s[$j])<-0.2) echo ' <span style="color:lightgreen" class="icon-chevron-up"></span>';
+ // elseif (intval($s[$j]!=0) && ($s[$j-1]-$s[$j])>0.2) echo ' <span style="color:red" class="icon-chevron-down"></span>';
+ // }
+ if (count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['jegyAdat'])>0) {
+ $_J = $JEGYATLAG[$j][$atlagolhatoJegyTipus]['jegyAdat'];
+ $_haviSulyoz = 0;
+ $_haviOszto = 0;
+ for ($x=0; $x<count($JEGYATLAG[$j][$atlagolhatoJegyTipus]['jegyAdat']); $x++) {
+ $_haviSulyoz += $_J[$x]['jegy'] * $_SULYTOMB[($_J[$x]['tipus']-1)];
+ $_haviOszto += $_SULYTOMB[($_J[$x]['tipus']-1)];
+ }
+ if ($_haviOszto>0) {
+ echo $s[$j] = number_format( ($_haviSulyoz/$_haviOszto), 2, ',','.');
+ if (intval($s[$j-1])!=0 && ($s[$j-1]-$s[$j])<-0.2) echo ' <span style="color:lightgreen" class="icon-chevron-up"></span>';
+ elseif (intval($s[$j]!=0) && ($s[$j-1]-$s[$j])>0.2) echo ' <span style="color:red" class="icon-chevron-down"></span>';
+ }
+ }
+ }
+ echo '</th>';
+ }
+ echo '<th></th>';
+ foreach ($_TANEV['szemeszter'] as $idx => $szemeszterAdat) {
+ echo '<th>';
+ if (count($ZJATLAG[$szemeszterAdat['tanev']][$szemeszterAdat['szemeszter']])>0) {
+ echo number_format(array_sum($ZJATLAG[$szemeszterAdat['tanev']][$szemeszterAdat['szemeszter']]) / count($ZJATLAG[$szemeszterAdat['tanev']][$szemeszterAdat['szemeszter']]),2,',','.');
+ }
+ echo '</th>';
+ }
+ echo '</tr>';
+ // -------
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+ formEnd();
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml
new file mode 100644
index 00000000..0432cd91
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/dolgozat.phtml
@@ -0,0 +1,304 @@
+<?php
+/*
+ module: naplo
+ function putDolgozatLista($DOLGOZAT)
+ function putDolgozat($DOLGOZAT,$TANAR_NEVSOR)
+*/
+
+ function putDolgozatLista($Dolgozat) {
+
+ global $tanarId, $diakId, $tankorId, $osztalyId;
+ global $aHetNapjai;
+
+ echo '<table class="dolgozatLista" align="center" cellspacing="1">';
+
+ echo '<thead><tr>';
+ echo '<th colspan="5">'._DOLGOZATOK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th colspan="2">'._DOLGOZAT.'</th>';
+ echo '<th>'._TANKOR.'</th>';
+ echo '<th>'._BEJELENTES.'</th>';
+ echo '<th>'._TERVEZETT.'</th>';
+ echo '</tr></thead><tfoot><tr><th colspan="5"></th></tfoot>';
+
+ echo '<tbody>';
+ $kuszob=false;
+
+ if (count($Dolgozat['dolgozatIds']) > 0) {
+ for ($i = count($Dolgozat['dolgozatIds'])-1; $i >= 0; $i--) {
+ $dolgozatId = $Dolgozat['dolgozatIds'][$i];
+ if (!$kuszob && strtotime($Dolgozat[$dolgozatId]['tervezettDt'])<=time()) {
+ echo '<tr><th class="kuszob" colspan="5">'.'</th></tr>';
+ $kuszob=true;
+ }
+ echo '<tr>';
+ echo '<th>';
+ if (__MODOSITHAT) {
+ // ide jön a form action=dolgozatTorles
+ echo 'x';
+ } else {
+ echo ($i+1).'.';
+ }
+ echo '</th>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='."$dolgozatId&tanarId=$tanarId&osztalyId=$osztalyId&diakId=$diakId&tankorId=$tankorId").'">';
+ if ($Dolgozat[$dolgozatId]['dolgozatNev'] != '') echo $Dolgozat[$dolgozatId]['dolgozatNev'];
+ else echo _NINCS_KITOLTVE;
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+
+ $Tankorok = $Dolgozat[$dolgozatId]['tankor'];
+ $TankorLista = array();
+ for ($t = 0; $t < count($Tankorok); $t++) $TankorLista[] = $Tankorok[$t]['tankorNev'];
+ echo implode('<br />',$TankorLista);
+
+ echo '</td>';
+ echo '<td>';
+ $_dt = $Dolgozat[$dolgozatId]['bejelentesDt'];
+ $_dow = date('w', strtotime($_dt));
+ echo str_replace('-', '. ', $_dt).'. ';
+ echo $aHetNapjai[($_dow - 1)];
+ echo '</td>';
+ echo '<td>';
+ $_dt = $Dolgozat[$dolgozatId]['tervezettDt'];
+ if ($_dt != '0000-00-00' && $_dt != '') {
+ $_dow = date('w', strtotime($_dt));
+ echo str_replace('-', '. ', $_dt).'. ';
+ echo $aHetNapjai[($_dow - 1)];
+ }
+ echo '</td>';
+ echo '</tr>';
+ flush();
+ }
+ } else {
+ echo '<tr>';
+ echo '<td colspan="5" class="nincsdolgozat">'._NINCS_DOLGOZAT.'</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+ }
+
+ function putDolgozat($Dolgozat, $valaszthatoTankorok, $Tanarok, $ADAT) {
+
+ global $_TANEV, $KOVETELMENY;
+
+ if (__MODOSITHAT) $disabled = '';
+ else $disabled=' disabled="disabled" ';
+
+ $kepMutat = $ADAT['kepMutat'];
+
+ // -------------- A dolgozat adatai -------------- //
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="dolgozatModositas" />';
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />';
+ echo '<table align="center" class="dolgozatAdatok" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="4">'._DOLGOZAT_ADATAI.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="4">';
+ if (__MODOSITHAT) echo '<input type="submit" value="'._OK.'" />';
+ if (__TOROLHET) echo '<input type="submit" name="dolgozatTorles" value="'._DOLGOZAT_TOROL.'" class="confirm" title="'._BIZTOS_DOLGOZAT_TOROL.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody class="hideShowContainer">';
+ echo '<tr>';
+ echo '<th>'._MEGNEVEZES.'</th>';
+ echo '<td colspan="3"><input class="hosszu" type="text" name="dolgozatNev" value="'.$Dolgozat['dolgozatNev'].'" '.$disabled.' /></td>';
+ echo '</tr><tr>';
+ echo '<th>'._BEJELENTES.'</th>';
+ echo '<td>'.$Dolgozat['bejelentesDt'].'</td>';
+ echo '<th>'._TERVEZETT.'</th>';
+ echo '<td>';
+ echo '<input type="text" class="date" name="tervezett-dt" value="'.$Dolgozat['tervezettDt'].'" '.$disabled.' />';
+ echo '<span title="'._BEJELENTETT_DOLGOZATOK.'" class="onClickHideShow openable">&uarr;</span>';
+ echo '<span title="'._BEJELENTETT_DOLGOZATOK.'" class="onClickHideShow openable" style="display: none;">&darr;</span>';
+ echo'</td>';
+ echo '</tr>';
+ echo '<tr class="openable" style="display: ;">'."\n";
+ echo '<th>'._BEJELENTETT_DOLGOZATOK.'</th>';
+ echo '<td colspan="3">';
+ echo '<ul class="openableee">';
+ foreach ($Dolgozat['utkozoDolgozatok']['tervezett'] as $dt => $dAdat) {
+ foreach ($dAdat as $index => $did) {
+ echo '<li>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did).'">';
+ echo $Dolgozat['utkozoDolgozatok'][$did]['tervezettDt'];
+ echo ' - ';
+ echo $Dolgozat['utkozoDolgozatok'][$did]['dolgozatNev'];
+ echo ' ('.$Dolgozat['utkozoDolgozatok'][$did]['tankor'][0]['tankorNev'].')';
+ echo '</a>';
+ echo '</li>'."\n";
+ }
+ }
+ echo '</ul>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ echo '<table align="center" class="dolgozatAdatok" cellspacing="1">';
+
+ echo '<thead>'."\n";
+ echo '<tr><th>'._TANKOROK.'</th></tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot><tr><td></td></tr></tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+
+ // tankör választás
+ echo '<td>'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="dolgozatTankorHozzarendeles" />'."\n";
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />'."\n";
+ echo '<select name="tankorIds[]" multiple="multiple" class="multiple"'.$disabled.'>'."\n";
+ for ($i = 0;$i < count($valaszthatoTankorok); $i++) {
+ if (in_array($valaszthatoTankorok[$i]['tankorId'], $Dolgozat['tankorIds']))
+ echo '<option value="'.$valaszthatoTankorok[$i]['tankorId'].'" selected="selected">';
+ else
+ echo '<option value="'.$valaszthatoTankorok[$i]['tankorId'].'">';
+ echo $valaszthatoTankorok[$i]['tankorNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+ if (__MODOSITHAT) echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ // -------------- A dolgozat jegyei -------------- //
+
+ if (__NAPLOADMIN || __VEZETOSEG || __TANAR) {
+
+ $colspan = count($Dolgozat['tankor'])*2;
+ $_colspan=2;
+ if ($kepMutat) {
+ $colspan+=(count($Dolgozat['tankor']));
+ $_colspan++;
+ }
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="dolgozatJegyekTorlese" />'."\n";
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />'."\n";
+ echo '<table align="center" class="dolgozatJegyek" cellspacing="1">';
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="'.$colspan.'">'._JEGYEK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ $maxDiakSzam = 0;
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ if ($maxDiakSzam < ($_count = count($Dolgozat['tankor'][$j]['diakok']['idk'])))
+ $maxDiakSzam = $_count;
+ echo '<th colspan="'.$_colspan.'">';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$Dolgozat['tankor'][$j]['tankorId']).'">';
+ echo $Dolgozat['tankor'][$j]['tankorNev'];
+ echo '</a>';
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ if ($kepMutat) echo '<th></th>';
+ echo '<th>'._NEV.'</th>';
+ echo '<th>'._JEGY.'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ $tankorAdat = $Dolgozat['tankor'][$j];
+ $tankorId = $tankorAdat['tankorId'];
+ echo '<th colspan="'.$_colspan.'">';
+ echo '<input type="submit" name="tankorId'.$tankorId.'" value="'._TOROL.'" class="confirm" title="'._BIZTOS_TOROLE.'" />'."\n";
+ echo '</th>';
+ }
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+ echo '<tbody>'."\n";
+ for ($i = 1; $i <= $maxDiakSzam; $i++) {
+ echo '<tr>'."\n";
+
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ $tankorAdat = $Dolgozat['tankor'][$j];
+ $tankorId = $tankorAdat['tankorId'];
+ if (is_array($Dolgozat['tankor'][$j]['diakok']['nevek'])) {
+ reset($Dolgozat['tankor'][$j]['diakok']['nevek']);
+ for ($d = 0; $d < $i; $d++)
+ list($diakId, $diakAdat) = each($Dolgozat['tankor'][$j]['diakok']['nevek']);
+ $diakNev = $diakAdat['diakNev'];
+ } else { $diakNev = ''; }
+
+ if ($kepMutat) {
+ echo '<td class="diakNev" data-diakid="'.$diakId.'">';
+ putFace($diakId,'diak');
+ echo '</td>';
+ }
+ echo '<th><a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'">'.$diakNev.'</a></th>'."\n";
+ echo '<td>';
+ if (is_array($tankorAdat['jegyek'][$diakId])) {
+ for ($k = 0; $k < count($tankorAdat['jegyek'][$diakId]);$k++) {
+ $jegy = $tankorAdat['jegyek'][$diakId][$k];
+ if ($KOVETELMENY[ $jegy['jegyTipus'] ]['átlagolható']===true) $ATLAG[$jegy['jegyTipus']][] = $jegy['jegy'];
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$jegy['jegyId']);
+ $title = $jegy['dt'].' '.$jegy['megjegyzes'];
+ echo '<a href="'.$href.'" class="jegy'.$jegy['tipus'].'" title="'.htmlspecialchars($title).'">';
+ echo $KOVETELMENY[ $jegy['jegyTipus'] ][ $jegy['jegy'] ]['rovid'].' ';
+ echo '</a>';
+ }
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ if (is_array($ATLAG) && count($ATLAG)>0) {
+ foreach ($ATLAG as $jegyTipus => $A) {
+ echo '<tr class="atlag">';
+ echo '<th colspan="2">';
+ echo $jegyTipus;
+ echo '</th>';
+ echo '<td>'.number_format(array_sum($ATLAG[$jegyTipus])/count($ATLAG[$jegyTipus]),2).'</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+ } // csak admin, tanár és igazgató láthatja az összes jegyet!
+ }
+
+ function putDolgozatBejelento($tankorId) {
+
+ formBegin(array('class'=>'dolgozat'));
+ echo '<input type="hidden" name="action" value="dolgozatBejelentes" />';
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />';
+ echo '<input type="submit" value="'._DOLGOZAT_BEJELENTES.'" />';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml
new file mode 100644
index 00000000..b24e8b43
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/jegy.phtml
@@ -0,0 +1,164 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function putJegyInfo($jegy, $Orak, $Dolgozatok, $ADAT) {
+
+ global $jegyTipusok, $aHetNapjai, $skin;
+ global $KOVETELMENY;
+
+ if (_MODOSITHAT) $DIS=''; else $DIS=' disabled="disabled"';
+ $kepMutat = $ADAT['kepMutat'];
+
+ $colspan=5;
+ $_colspan=1;
+ if ($kepMutat) {
+ $colspan++;
+ $_colspan++;
+ }
+
+ formBegin(array('method' => 'post', 'id' => 'jegyMod', 'action' => href('index.php?page=naplo&sub=osztalyozo&f=jegy')), array('skipFormTag'=>$skin == 'ajax','print'=>true));
+ echo '<input type="hidden" name="action" value="jegyModositas" />'."\n";
+ echo '<input type="hidden" id="jegyId" name="jegyId" value="'.$jegy['jegyId'].'" />'."\n";
+ echo '<table align="center" cellspacing="1" cellpadding="0" class="jegyInfo">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="'.$colspan.'">';
+
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$jegy['diakId']).'">';
+ echo $jegy['diakNev'];
+ echo '</a>';
+
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="'.$colspan.'">'."\n";
+ if (_MODOSITHAT) {
+ echo '<input type="submit" class="modosit" id="jegyModositas" value="'._ROGZIT.'" />'."\n";
+ echo '<input type="submit" id="jegyTorles" name="jegyTorles" class="confirm onClickUpdateAction torol" value="'._TOROL.'" title="'._BIZTOSE.'" />'."\n";
+ }
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>';
+ putFace($jegy['diakId'],'diak');
+ echo '</th>'."\n";
+ echo '<td colspan="2">'."\n";
+ echo '<a href="'.str_replace('ajax', '', href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$jegy['tankorId'])).'">';
+ $tanarLista = '';
+ for ($i = 0; $i < count($jegy['tanár']['idk']); $i++) $tanarLista .= $jegy['tanár'][$i]['tanarNev'].', ';
+ echo $jegy['tankör'][0]['tankorNev'].' ('.substr($tanarLista, 0, -2).')';
+ echo '</a>'."\n";
+ echo '<br/>'.$jegy['dt'].' ('.$aHetNapjai[(date('w',strtotime($jegy['dt']))+6) % 7].')'."\n";
+ if ($jegy['modositasDt']!='0000-00-00 00:00:00')
+ echo '<br/>'.$jegy['modositasDt'].' ('.$aHetNapjai[(date('w',strtotime($jegy['modositasDt']))+6) % 7].')'."\n";
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th></th>';
+ echo '<td>'."\n";
+ $SEL = array($jegy['jegy'] => ' selected="selected" ');
+ $_ok = false;
+ echo '<select id="jegyValaszto" name="jegy"'.$DIS.'>'."\n";
+ foreach ($KOVETELMENY as $jegyTipus => $jAdat) {
+ if ($jegyTipus == $jegy['jegyTipus'] || (__JEGYTIPUS_VALTHATO === true && in_array($jegyTipus, $ADAT['jegyTipusok']))) {
+ echo '<optgroup label="'.$jegyTipus.'">';
+ if ($jegyTipus == $jegy['jegyTipus']) $SEL = array($jegy['jegy'] => ' selected="selected" ');
+ else $SEL = array();
+ for ($i = 0; $i < count($KOVETELMENY[$jegyTipus]['értékek']); $i++) {
+ $j = $KOVETELMENY[$jegyTipus]['értékek'][$i];
+ $_jegyShow = $KOVETELMENY[$jegyTipus][$j]['rovid'];
+ echo '<option value="'."$jegyTipus:$j".'" '.$SEL[$j].'>'.$_jegyShow.'</option>'."\n";
+ if ($SEL[$j]!='') $_ok = true;
+ }
+ echo '</optgroup>'."\n";
+ }
+ }
+ if ($_ok===false)
+ echo '<option value="'.$jegy['jegy'].'" selected="selected" >'.$jegy['jegy'].$jegy['jegyTipus'].' (!hibás!)</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ $SEL = array($jegy['tipus'] => ' selected="selected"');
+ echo '<select id="jegyTipus" name="tipus"'.$DIS.'>'."\n";
+ echo '<option value="0">'.$jegyTipusok[0].'</option>'."\n";
+ if ($jegy['dolgozatId'] == '') {
+ echo '<option value="1"'.$SEL[1].'>'.$jegyTipusok[1].'</option>'."\n";
+ echo '<option value="2"'.$SEL[2].'>'.$jegyTipusok[2].'</option>'."\n";
+ } else {
+ echo '<option value="3"'.$SEL[3].'>'.$jegyTipusok[3].'</option>'."\n";
+ echo '<option value="4"'.$SEL[4].'>'.$jegyTipusok[4].'</option>'."\n";
+ echo '<option value="5"'.$SEL[5].'>'.$jegyTipusok[5].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<th>'._MEGJEGYZES.'</th>'."\n";
+ echo '<td colspan="2">'."\n";
+ echo '<input type="text" name="megjegyzes" value="'.$jegy['megjegyzes'].'" '.$DIS.'/>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+
+ // -------- Óra hozzárendelés -------- //
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>'._HOZZARENDELT_ORA.'</th>'."\n";
+ echo '<td colspan="2">'."\n";
+ $SEL = array($jegy['oraId'] => ' selected="selected"');
+ echo '<select name="oraId"'.$DIS.'>'."\n";
+ echo '<option value="NULL">'._NINCS.'</option>';
+ for ($i = 0;$i < count($Orak); $i++) {
+ echo '<option value="'.$Orak[$i]['oraId'].'" '.$SEL[$Orak[$i]['oraId']].'>';
+ echo $Orak[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($Orak[$i]['dt']))+6) % 7].') '
+ .$Orak[$i]['ora'].'. '._ORA;
+ echo ': '.$Orak[$i]['leiras'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ // -------- Ha dolgozat jegy - a dolgozat adatai -------- //
+
+ if ($jegy['tipus'] > 2) {
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th><a href="'.str_replace('ajax', '', href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$jegy['dolgozatId'])).'">'.ucfirst(_DOLGOZAT).'</a></th>'."\n";
+ echo '<td colspan="2">'."\n";
+ $SEL = array($jegy['dolgozatId'] => ' selected="selected"');
+ echo '<select name="dolgozatId"'.$DIS.'>';
+ for ($i = 0;$i < count($Dolgozatok['dolgozatIds']);$i++) {
+ $dolgozatId = $Dolgozatok['dolgozatIds'][$i];
+ echo '<option value="'.$dolgozatId.'" '.$SEL[$dolgozatId].'>';
+ echo $Dolgozatok[$dolgozatId]['dolgozatNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ }
+ echo '</table>';
+
+ if ($skin != 'ajax') formEnd();
+
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml
new file mode 100644
index 00000000..a27675a0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/stat.phtml
@@ -0,0 +1,659 @@
+<?php
+
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ function putIskolaStatisztika($ADAT) {
+
+ echo '<table class="iskolaStatisztika" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._SZEMPONT.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<th>';
+ if ($ADAT['osztaly'][$i]['osztalyJel'] != '') echo $ADAT['osztaly'][$i]['osztalyJel'];
+ else echo $ADAT['osztaly'][$i]['kezdoTanev'].'/'.$ADAT['osztaly'][$i]['jel'];
+ echo '</th>';
+ }
+ echo '<th>'._OSSZESITES.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '</tfoot>';
+
+ echo '<tbody class="hianyzas">';
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $SUM['igazolt'] += $ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolt'];
+ echo '<td>'.($ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolt']).'</td>';
+ }
+ echo '<th class="ossz">';
+ echo $SUM['igazolt'].'/';
+ echo $ADAT['hianyzas']['']['igazolt'];
+ echo '</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+//2013NKT if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ $title = $ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolatlan'].'+'
+ .intval($ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolatlanKesesbol']);
+ $SUM['igazolatlan']+= $ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['osszesIgazolatlan'];
+ echo '<td title="'.$title.'">'.$ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['osszesIgazolatlan'].'</td>';
+//2013NKT } else {
+//2013NKT echo '<td>'.$ADAT['hianyzas'][ $ADAT['osztaly'][$i]['osztalyId'] ]['igazolatlan'].'</td>';
+//2013NKT }
+ }
+ echo '<th class="ossz">';
+ echo $SUM['igazolatlan']."/";
+ echo $ADAT['hianyzas']['']['igazolatlan'];
+ echo '</th>';
+ echo '</tr>';
+ echo '</tbody>'."\n";
+
+ echo '<tbody>';
+
+ echo '<tr>';
+ echo '<th>'._KITUNO.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['kituno'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['kituno'].'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._JELES.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['jeles'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['jeles'].'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._BUKOTT.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['bukott'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['bukott'].'</th>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._BUKAS.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ echo '<td>'.$ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['bukas'].'</td>';
+ }
+ echo '<th class="ossz">'.$ADAT['jegyek']['intezmeny']['bukas'].'</th>';
+ echo '</tr>';
+
+ echo '</tbody>';
+ echo '<tbody class="atlag">';
+
+ echo '<tr class="ossz">';
+ echo '<th>'._ÁTLAG.'</th>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ if (isset($ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['atlag'])) {
+ echo '<td>'.number_format($ADAT['jegyek'][ $ADAT['osztaly'][$i]['osztalyId'] ]['atlag'], 2, ',', ' ').'</td>';
+ } else {
+ echo '<td></td>';
+ }
+ }
+ echo '<th class="ossz">'.number_format($ADAT['jegyek']['intezmeny']['atlag'], 2, ',', ' ').'</th>';
+ echo '</tr>';
+
+ if (is_array($ADAT['targyak'])) {
+ foreach ($ADAT['targyak'] as $i => $targyAdat) {
+ echo '<tr>';
+ echo '<th>'.$targyAdat['targyNev'].'</th>';
+ $_c = 0;$_sum=0;
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ if ($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ][ $ADAT['osztaly'][$i]['osztalyId'] ] != 0) {
+ $_sum += $ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ][ $ADAT['osztaly'][$i]['osztalyId'] ];
+ $_c++;
+ echo '<td>'.number_format($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ][ $ADAT['osztaly'][$i]['osztalyId'] ], 2, ',', ' ').'</td>';
+ } else {
+ echo '<td></td>';
+ }
+ }
+ echo '<th class="ossz">';
+ echo '<span title="átlag">';
+ $_avg_iskolai = '<span title="osztályzatok átlaga">'.number_format($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ]['iskola'] , 2, ',', ' ').'</span>';
+ if ($_c!=0) {
+ $_avg = ($_sum/($_c));
+ $_txt_avg = '<span title="átlagok átlaga">'.number_format($_avg,2,',',' ').'</span>';
+ if ($ADAT['tantargyiAtlagok'][ $targyAdat['targyId'] ]['iskola']!=$_avg) {
+ echo $_txt_avg . '('.$_avg_iskolai.')';
+ } else {
+ echo $_avg_iskolai;
+ }
+ } else {
+ echo $_avg_iskolai;
+ }
+ echo '</span>';
+ echo ' / ';
+ echo '<span title="bukás">'.intval($ADAT['jegyek']['intezmeny']['targy'][ $targyAdat['targyId'] ]).'</span>';
+ echo '</th>';
+ echo '</tr>';
+ }
+ //echo '<tr><th>__</th></tr>';
+ }
+
+ echo '</tbody>';
+
+ echo '<tbody>';
+ echo '</tbody>';
+
+ echo '</table>';
+
+ }
+
+
+ function putOsztalyBizonyitvany($ADAT) {
+
+ global $aHetNapjai, $Honapok, $bizonyitvanyMegjegyzesek;
+ global $KOVETELMENY, $ZaradekIndex, $_EVFOLYAMJEL_BETUVEL;
+// global $targySorrend;
+ $MAGSZORGIDK = array_merge($ADAT['magatartasTargyIdk'],$ADAT['szorgalomTargyIdk']);
+
+ $colSpan = count($ADAT['targyak']);
+
+ // Bizonyítvány-hoz tartozó változók beállítása
+ $plusCols = 6 + 2;
+ $colSpan += $plusCols; // további column-nal bővül a táblázat
+ $rowSpan = 3;
+
+ // ------------------------
+ // Design
+ $img1 = 'skin/classic/module-naplo/img/osztalyozo/node-minus.gif';
+ $img2 = 'skin/classic/module-naplo/img/osztalyozo/node-plus.gif';
+
+// putNyomtatasForm($ADAT);
+
+ formBegin(array('name'=>'beir', 'method'=>'post', 'action'=>''));
+
+ echo '<input type="hidden" name="action" value="jegyLezaras" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztaly']['osztalyId'].'" />';
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterAdat']['szemeszterId'].'" />';
+ echo '<input type="hidden" name="targySorrend" value="'.$targySorrend.'" />';
+ echo '<input type="hidden" name="actionID" value="'.substr(uniqid("", true),0,23).'" />';
+
+ echo '<table class="osztalyozo hideShowContainer" align="center" cellspacing="1" >';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th class="beallitasok">';
+ //echo '<img class="onClickHideShow" src="skin/classic/module-naplo/img/toggle.png" alt="+/-" />';
+ //echo '<div class="onClickHideShow icon-zoom-in" alt="+/-"></div>';
+ //echo '<div style="background-color: #213876; border-bottom: solid 1px blue;">
+ echo '<span class="icon-adjust toggleBeallitasok" style="float:right; padding:2px;"></span>';
+ _putBeallitasCheckbox('targyak',$ADAT['beallitasok']);
+ _putBeallitasCheckbox('oraszamok',$ADAT['beallitasok']);
+ _putBeallitasCheckbox('zaradek',$ADAT['beallitasok']);
+ echo '</th>';
+ echo '<th class="nev" colspan="'.($colSpan-1).'">';
+ echo _BIZONYITVANY;
+ echo ': '.$ADAT['osztaly']['osztalyJel'].' ('.$ADAT['osztaly']['kezdoTanev'].'-'.($ADAT['osztaly']['vegzoTanev']+1).') - '.$ADAT['osztaly']['osztalyfonok']['tanarNev'];
+ echo '</th>'."\n";
+ echo '</tr><tr>';
+
+ echo '<th rowspan="'.$rowSpan.'">'._NEV.'</th>';
+ // Tárgyanként
+ $id = 0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ $_class = '';
+ $_data = '';
+ // FŐTÁRGY
+ if (is_array($ADAT['targyTargy']['FOal'][$ADAT['targyak'][$j]['targyId']])) {
+ $_class = "foTargy";
+ $_data = 'data-targyid="'
+ .$ADAT['targyak'][$j]['targyId']
+ .'" data-altargyidk="[&'
+ .implode('&',$ADAT['targyTargy']['FOal'][$ADAT['targyak'][$j]['targyId']])
+ .'&]"';
+ }
+ // ALTÁRGY
+ if (is_array($ADAT['targyTargy']['alFO'][$ADAT['targyak'][$j]['targyId']])) {
+ $_class = "alTargy";
+ $_data = 'data-targyid="'
+ .$ADAT['targyak'][$j]['targyId']
+ .'" data-fotargyidk="[&'
+ .implode('&',$ADAT['targyTargy']['alFO'][$ADAT['targyak'][$j]['targyId']])
+ .'&]"';
+
+ }
+ echo '<td id="targy'.$id.'" '.$_data.' rowspan="'.$rowSpan.'" class="openable tglTargy t'.$id.' '.$_class.'" title="'.$ADAT['targyak'][$j]['targyId'].'">';
+ echo $ADAT['targyak'][$j]['targyNev'];
+ echo '</td>';
+ $id++;
+ }
+ echo '<th rowspan="'.$rowSpan.'">';
+ echo _ATLAG;
+ echo '</th>';
+
+ // magatartás, szorgalom
+ echo '<th colspan="'.($plusCols-2).'">'.$ADAT['szemeszterAdat']['tanev'].'/'.$ADAT['szemeszterAdat']['szemeszter'].'</th>';
+ echo '<td class="openable bizZaradek" style="display:none" rowspan="3">'._ZARADEK.' <span class="icon-file-edit" title="az első lehetőséget kiválasztja" ></span></td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th colspan="4">';
+ echo _MULASZTAS;
+ echo '</th>';
+ echo '<th rowspan="2">'._MAGATARTAS.'</th>';
+ echo '<th rowspan="2">'._SZORGALOM.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.'</th>';
+ echo '<th>'._IGAZOLT.'</th>';
+ echo '<th rowspan="2">'._FELSZ.'</th>';
+ echo '<th rowspan="2">'._KESES.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+
+ echo '<tr>';
+ echo '<th>'.ucfirst(_TANAR).'</th>';
+ // Tárgyanként
+ $id = 0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ echo '<td id="tanar'.$id.'" rowspan="'.$rowSpan.'" class="openable tglTargy t'.$id.'">';
+ if (is_array($ADAT['tanarok'][ $ADAT['targyak'][$j]['targyId'] ])) {
+ for ($t=0; $t<($tdb=count($ADAT['tanarok'][ $ADAT['targyak'][$j]['targyId'] ])); $t++) {
+ echo $ADAT['tanarok'][ $ADAT['targyak'][$j]['targyId'] ][$t]['tanarNev'];
+ if ($t<$tdb-1) echo ',<br/>';
+ }
+ }
+ echo '</td>';
+ $id++;
+ }
+ echo '<th colspan="'.($plusCols-1).'">&nbsp;</th>';
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+ // ---------- Tanulónként a jegyek ------------- //
+
+ echo '<tbody>';
+
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+
+ $_class = array(); // reset
+ $D = $ADAT['diakok'][$i];
+ $diakId = $D['diakId'];
+ $DA = $ADAT['diakAdat'][$diakId];
+ $jegyek = $ADAT['jegyek'][$diakId];
+ $hianyzas = $ADAT['hianyzas'][$diakId];
+ $atlag = $ADAT['atlag'][$diakId];
+ $msz_beirhato = ($D['aktualisStatusz'] != 'magántanuló')
+ && (!isset($D['kiDt']) || is_null($D['kiDt']) || (strtotime($D['kiDt'])>=time()));
+
+ $zaraskoriTag = in_array($diakId, $ADAT['zaraskoriDiakIds']);
+
+ if (!$zaraskoriTag) echo '<tr class="elment">'; else echo '<tr>';
+
+ $_class[] = ekezettelen(str_replace(' ', '', $D['aktualisStatusz']));
+ if ($DA['bukott']===true) $_class[] = 'bukott';
+ elseif ($DA['jeles']===true) $_class[] = 'jeles';
+ elseif ($DA['kituno']===true) $_class[] = 'kituno';
+
+ echo '<th class="'.implode(' ',$_class).'">';
+ if ($D['diakNaploSorszam']!='') echo '<div class="naploSorszam">'.$D['diakNaploSorszam'].'</div>';
+ echo '<div style="display: table-cell;"><a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'" title="'.$D['aktualisStatusz'].'">';
+ echo $D['diakNev'];
+ echo '</a></div>';
+ echo '</th>';
+
+ // Tárgyanként végigmenve
+ $id = 0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ $_targyId=$ADAT['targyak'][$j]['targyId'];
+ $jegyAdat = $jegyek[$ADAT['targyak'][$j]['targyId']]; // EZ INDEXELT TÖMB! Több jegy is lehet!
+ $_vanosztalyzat=false;
+ echo '<td class="jegyek openable tglTargy t'.$id.'" id="jegy'.$i.'a'.$id.'">';
+ for ($k=0; $k<count($jegyAdat); $k++) {
+ $_jegyAdat = $jegyAdat[$k];
+ if ($_jegyAdat['felev'] != $ADAT['szemeszterAdat']['szemeszter']) { // ilyen elvileg már nem lehet; - de lehet félévkor záruló tárgyak!
+ echo '<span title="'.$_jegyAdat['felev'].'. '._FELEV.'" class="masikFelev">';
+ echo $KOVETELMENY[$_jegyAdat['jegyTipus']][$_jegyAdat['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$_jegyAdat['megjegyzes']];
+ echo '</span>';
+ } else {
+ echo '<div class="zaroJegyAdat" data-zarojegyid="'.$_jegyAdat['zaroJegyId'].'">';
+ echo $KOVETELMENY[$_jegyAdat['jegyTipus']][$_jegyAdat['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$_jegyAdat['megjegyzes']];
+ if (in_array($_jegyAdat['jegyTipus'], array('jegy','féljegy'))) {
+ if ( ($_jegyAdat['jegy']-$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'])>0.5)
+ echo '<span title="'.$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'].'">*</span>';
+ elseif ( ($_jegyAdat['jegy']-$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'])<-0.5)
+ echo '<span title="'.$ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag'].'">!</span>';
+
+ }
+ if (0<($_evesOraszam=$ADAT['targyOraszam'][$diakId][$_jegyAdat['targyId']]['evesOraszam']))
+ echo '<div class="osz">'.($_evesOraszam).'</div>';
+ $_vanosztalyzat=true;
+ echo '</div>';
+ }
+ }
+
+ if ($_vanosztalyzat===false && $ADAT['evkoziJegyAtlag'][$diakId][$_targyId][0]['jegyAtlag']!='') echo '<span title="volt jegye">÷</span>';
+ echo '</td>';
+ $id++;
+ }
+
+ if (isset($ADAT['atlagok'][$diakId])) {
+ $atlag = number_format($ADAT['atlagok'][$diakId], 2, ',', '');
+ $_class[] = 'atlag ';
+ } else {
+ $atlag = '';
+ }
+ // Tanuló átlaga:
+ echo '<th class="'.implode(' ',$_class).'">'.$atlag;
+
+ echo '</th>';
+
+ // Tanuló hiányzásai
+ echo '<th class="ni">';
+ echo intval($hianyzas['igazolatlan']);
+ echo '</th>';
+ echo '<th class="i">';
+ echo intval($hianyzas['igazolt']);
+ echo '</th>';
+
+ echo '<th>';
+ echo ($ADAT['hianyzas'][$diakId]['felszerelesHianyDb']);
+ echo '</th><th>';
+ echo intval($ADAT['hianyzas'][$diakId]['kesesDb']);
+ echo '/'.intval($ADAT['hianyzas'][$diakId]['kesesPercOsszeg']).'\'';
+ echo '</th>';
+
+ echo '<td class="biz">';
+
+ $_magatartasTargyId = $ADAT['magatartasTargyIdk'][0];
+ if (_BEIRHATO && $msz_beirhato && $zaraskoriTag) {
+
+ if (!isset($jegyek[ $_magatartasTargyId ][0]['targyId']))
+ $jegyek[ $_magatartasTargyId ][0]['targyId'] = $_magatartasTargyId;
+ $J = $jegyek[ $_magatartasTargyId ][0];
+ $_JEGY_S = array(
+ 'jegySelectTipus' => 'zaroJegy',
+ 'variable' => 'zaroJegy',
+ 'diakId' => $diakId,
+ 'targyId'=> $_magatartasTargyId,
+ 'tanev'=> $ADAT['szemeszterAdat']['tanev'],
+ 'szemeszter' => $ADAT['szemeszterAdat']['szemeszter'],
+ 'evfolyam'=> $J['evfolyam'],
+ 'evfolyamJel'=> $J['evfolyamJel'],
+ 'zaroJegyId' => $J['zaroJegyId'],
+ 'jegy' => $J['jegy'],
+ 'jegyTipus' => $ADAT['targyAdat'][ $_magatartasTargyId ]['zaroKovetelmeny'], // fixen
+ 'megjegyzes' => $J['megjegyzes'],
+ 'tabindex' => ($i+count($ADAT['diakok']))
+ );
+ putJegySelect($_JEGY_S);
+
+ } else {
+ echo $KOVETELMENY['magatartás'][$jegyek[ $_magatartasTargyId ][0]['jegy']]['hivatalos'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td class="biz">';
+
+ $_szorgalomTargyId = $ADAT['szorgalomTargyIdk'][0];
+
+ if (_BEIRHATO && $msz_beirhato && $zaraskoriTag) {
+ if (!isset($jegyek[$_szorgalomTargyId][0]['targyId'])) $jegyek[$_szorgalomTargyId][0]['targyId'] = $_szorgalomTargyId;
+ $J = $jegyek[$_szorgalomTargyId][0];
+ $_JEGY_S = array(
+ 'jegySelectTipus' => 'zaroJegy',
+ 'variable' => 'zaroJegy',
+ 'diakId' => $diakId,
+ 'targyId'=> $_szorgalomTargyId,
+ 'tanev'=> $ADAT['szemeszterAdat']['tanev'],
+ 'szemeszter' => $ADAT['szemeszterAdat']['szemeszter'],
+ 'evfolyam'=> $J['evfolyam'],
+ 'evfolyamJel'=> $J['evfolyamJel'],
+ 'zaroJegyId' => $J['zaroJegyId'],
+ 'jegy' => $J['jegy'],
+ 'jegyTipus' => $ADAT['targyAdat'][ ($_szorgalomTargyId) ]['zaroKovetelmeny'], // fixen
+ 'megjegyzes' => $J['megjegyzes'],
+ 'tabindex' => ($i+count($ADAT['diakok']))
+ );
+
+ putJegySelect($_JEGY_S);
+
+ } else {
+ echo $KOVETELMENY['szorgalom'][$jegyek[ $_szorgalomTargyId ][0]['jegy']]['hivatalos'];
+ }
+ echo '</td>'."\n";
+
+ // Záradékok
+ echo '<td class="bizZaradek openable" style="display:none">';
+ if (_BEIRHATO && $msz_beirhato && $zaraskoriTag) {
+ if ($DA['bukott']) $adhatoZaradekok = array_values($ZaradekIndex['konferencia bukás']);
+ else $adhatoZaradekok = array_values($ZaradekIndex['konferencia']);
+ echo '<select name="zaradekAdat[]"><option value=""> - </option>'."\n";
+ if (is_array($ADAT['zaradekok'][$diakId])) {
+ echo '<option value="" selected="selected">'.$ADAT['zaradekok'][$diakId]['szoveg'].'</option>'."\n";
+ }
+ // itt okosítható az algoritmus a következőképp:
+ // ha bukás van, a javítóviszgást kéne ajánlani,
+ // ha végző évfolyam, akkor a befejezte ajánlani,
+ // ha nem osztályozható egy tárgyból, akkor azt (de készségtárgyak?)
+ foreach ($adhatoZaradekok as $zaradekIndex) {
+ $zAdat = $ADAT['adhatoZaradekok'][$zaradekIndex];
+ if ($DA['bukott']) {
+ $csere = array('%évfolyam%'=>$ADAT['evfolyamJel'],'%évfolyam betűvel%'=>$_EVFOLYAMJEL_BETUVEL[ $ADAT['evfolyamJel'] ],'%tantárgy%'=>implode(', ',$DA['bukottTargy']));
+ } else {
+ $csere = array('%évfolyam%'=>$ADAT['kovetkezoEvfolyamJel'],'%évfolyam betűvel%'=>$_EVFOLYAMJEL_BETUVEL[ $ADAT['kovetkezoEvfolyamJel'] ],'%tantárgy%'=>$DA['zaradekStr']);
+ }
+ $torzsSzoveg = $zAdat['szoveg'].' ['.$zAdat['sorszam'].'/'.$zaradekIndex.']';
+ echo '<option value="'.$diakId.'/'.$zaradekIndex.'/'.$ADAT['zaradekok'][$diakId]['zaradekId'].'/'.implode('=',$DA['bukottTargy']).'">';
+ echo str_replace(array_keys($csere), array_values($csere), $torzsSzoveg );
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $ADAT['zaradekok'][$diakId]['szoveg'];
+ }
+ echo '</td>'."\n";
+
+ echo '</tr>';
+
+ }
+
+ // Tantárgyi átlagok
+ echo '<tr>';
+ echo '<th colspan="'.$_colSpan.'" class="dolgozat">'._ATLAG.'</th>';
+ $id=0;
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ echo '<th id="atlag'.$id.'" class="openable tglTargy" title="'.$ADAT['targyak'][$j]['targyNev'].'">';
+// if (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])) {
+ $atlag = number_format($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']], 2, ',', '');
+ echo $atlag;
+// } else { $atlag=0; }
+ echo '</th>'."\n";
+ $id++;
+ }
+ echo '<th class="dolgozat">';
+ echo '<span title="'._OSZTALYATLAGA.'">'.number_format($ADAT['atlagok']['osztaly'], 2, ',', '.').'</span>';
+ echo '/';
+ echo '<span title="'._OSSZES_JEGY_ATLAGA.'">'.number_format($ADAT['tantargyiAtlagok']['osztaly'], 2, ',', '.').'</span>';
+ echo '</th>';
+
+ // Félévi átlagok
+ echo '<th colspan="'.($plusCols-2).'" class="atlag">';
+ if (_BEIRHATO) echo '<input type="submit" class="felev1" name="tipus" value="'._BEIR.'" />';
+ echo '</th>';
+
+ echo '</tr>';
+ // Tárgyi eloszlás
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+ foreach ($KOVETELMENY['jegy']['értékek'] as $_jegy) {
+ echo '<tr>';
+ echo '<th colspan="'.$_colSpan.'">'.$KOVETELMENY['jegy'][$_jegy]['hivatalos'].'</th>';
+ for ($j = 0; $j < count($ADAT['targyak']); $j++) if (
+ !in_array($ADAT['targyak'][$j]['targyId'], $MAGSZORGIDK)
+ && (isset($ADAT['tantargyiAtlagok'][$ADAT['targyak'][$j]['targyId']])
+ || $ADAT['targyboljegy'][$ADAT['targyak'][$j]['targyId']] === true
+ || __SHOWSTATZARASMINDENTARGY)
+ ) {
+ $_targyId = $ADAT['targyak'][$j]['targyId'];
+ echo '<td class="targyEloszlas openable tglTargy">';
+ echo $ADAT['jegyEloszlas'][$_targyId][$_jegy];
+ echo '</td>';
+ }
+ echo '<th>';
+ echo $ADAT['jegyEloszlas']['osszes'][$_jegy];
+ echo '</th>';
+ echo '</tr>';
+ }
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------------------------------------
+
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ putOsztalyStatisztika($ADAT);
+
+ }
+
+ function putOsztalyStatisztika($ADAT) {
+
+// echo '<h2>'._OSZTALYSTATISZTIKA.'</h2>';
+
+ echo '<table class="bizstat floatleft">';
+ echo '<caption>'._BIZONYITVANY.'</caption>';
+ echo '<tr>';
+ echo '<th>'. _DICSERETES .'</th>';
+ echo '<td>'.$ADAT['stat']['dicséret'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'. _FIGYELMEZTETOS .'</th>';
+ echo '<td>'.$ADAT['stat']['figyelmeztető'].'</td>';
+ echo '</tr>';
+// echo '<tr>';
+// echo '<th>'. _NYELVVIZSGAS .'</th>';
+// echo '<td>'.$STAT['nyelvvizsga'].'</td>';
+// echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'. _KITUNO .'</th>';
+ echo '<td>'.$ADAT['stat']['kituno'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'. _JELES .'</th>';
+ echo '<td>'.$ADAT['stat']['jeles'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'. _BUKASOK .'</th>';
+ echo '<td>'.$ADAT['stat']['bukas'].'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'. _BUKOTTAK .'</th>';
+ echo '<td>'.$ADAT['stat']['bukott'].'</td>';
+ echo '</tr>';
+ //+ részletezés
+ echo '<tr>';
+ echo '<th>1 '._TARGYBOL.'</th>';
+ echo '<td>'.$ADAT['stat']['dbBukott'][1].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>2 '._TARGYBOL.'</th>';
+ echo '<td>'.$ADAT['stat']['dbBukott'][2].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>3+ '._TARGYBOL.'</th>';
+ echo '<td>'.$ADAT['stat']['dbBukott'][3].'</td>';
+ echo '</tr>';
+
+ echo '</table>';
+
+ // $HIANYZASOK['átlag'][$felev]['igazolt|igazolatlan']
+ // $HIANYZASOK['összesen'][$felev]['igazolt|igazolatlan' = $status]
+ // $HIANYZASOK['ötnél több igazolatlan'][$felev|'összesen']
+ // $HIANYZASOK['tíznél több igazolatlan'][$felev|'összesen']
+ // $HIANYZASOK['nincs igazolatlanja'][$felev]
+ echo '<table class="bizstat">';
+ echo '<caption>'.ucfirst(_HIANYZASOK).'</caption>';
+
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.' '._OSSZESEN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolt'],0,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.' '._OSSZESEN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolatlan'],0,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'._HIANYZAS.' '._OSSZESEN.'</th>';
+ echo '<td>'.number_format((($ADAT['stat']['igazolt']+$ADAT['stat']['igazolatlan'])),0,',','.').'</td>';
+ echo '</tr>';
+
+ $letszam = count($ADAT['zaraskoriDiakIds']);
+ if ($letszam != 0) {
+ echo '<tr>';
+ echo '<th>'._IGAZOLT.' '._ATLAGOSAN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolt']/$letszam,2,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._IGAZOLATLAN.' '._ATLAGOSAN.'</th>';
+ echo '<td>'.number_format($ADAT['stat']['igazolatlan']/$letszam,2,',','.').'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'._HIANYZAS.' '._ATLAGOSAN.'</th>';
+ echo '<td>'.number_format(($ADAT['stat']['igazolt']+$ADAT['stat']['igazolatlan'])/$letszam,2,',','.').'</td>';
+ echo '</tr>';
+
+ echo '<tr>';
+ echo '<th>'._NINCS.' '._IGAZOLATLANJA.'</th>';
+ echo '<td>'.$ADAT['stat']['nincs'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._OT.' '._VAGY.' '._OTNEL.' '._TOBB.' '._IGAZOLATLAN.'</th>';
+ echo '<td>'.$ADAT['stat']['otnel tobb'].'</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._TIZ.' '._VAGY.' '._TIZNEL.' '._TOBB.' '._IGAZOLATLAN.'</th>';
+ echo '<td>'.$ADAT['stat']['tiznel tobb'].'</td>';
+ echo '</tr>';
+ echo '<tr class="ossz">';
+ echo '<th>'._LETSZAM.'</th>';
+ echo '<td>'.$letszam.'</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ }
+
+ function _putBeallitasCheckbox($var,$ADAT) {
+ $CHK = ($ADAT[$var]==true) ? ' checked="checked" ':'';
+ echo '<div><input '.$CHK.' type="checkbox" name="beallitasok_'.$var.'" id="beallitasok_'.$var.'" value="1" /><label for="beallitasok_'.$var.'">'.constant('_'.strtoupper($var)).'</label></div>';
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml
new file mode 100644
index 00000000..b01a7d16
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szempontRendszer.phtml
@@ -0,0 +1,75 @@
+<?php
+
+ function putUjSzempontRendszerForm($ADAT) {
+
+ formBegin(array('class'=>"szr"));
+
+ echo '<input type="hidden" name="action" value="ujSzempontRendszer" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />'."\n";
+
+ echo '<br /><textarea name="txt" id="txt"></textarea>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putSzempontRendszer($ADAT) {
+
+ formBegin(array('class'=>'szr'));
+ echo '<ol>'."\n";
+ foreach ($ADAT['szempontRendszer']['szempont'] as $szempontId => $szAdat) {
+ echo '<li>'."\n";
+ echo $szAdat['szempont'];
+ if (is_array($ADAT['szempontRendszer']['minosites'][$szempontId])) {
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['szempontRendszer']['minosites'][$szempontId]); $i++) {
+ echo '<li>';
+ echo $ADAT['szempontRendszer']['minosites'][$szempontId][$i]['minosites'];
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+ }
+ echo '</li>'."\n";
+ }
+ echo '</ol>'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />'."\n";
+ echo '<input type="hidden" name="szrId" value="'.$ADAT['szempontRendszer']['szrId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="szempontRendszerTorles" />'."\n";
+ echo '<input type="submit" value="'._TOROL.'" class="confirm" title="'._BIZTOS_TOROL.'" />'."\n";
+ formEnd();
+ }
+
+ function putSzempontRendszerLista($ADAT) {
+
+ echo '<table class="lista">'."\n";
+
+ echo '<tr><th>'._ID.'</th><th>'._SZEMESZTER.'</th><th>'._TARGY.'</th><th>'._TARGYTIPUS.'</th><th>'._KEPZES.'</th></tr>';
+
+ for ($i = 0; $i < count($ADAT['szempontRendszerek']); $i++) {
+ $A = $ADAT['szempontRendszerek'][$i];
+ echo '<tr>';
+ echo '<td>'.$A['szrId'].'</td>';
+ echo '<td>'.$A['tanev'].'/'.$A['szemeszter'].'</td>';
+ echo '<td>';
+ if (isset($A['targyId'])) echo $A['targyNev'].' ('.$A['targyId'].')';
+ echo '</td>';
+ echo '<td>'.$A['targyTipus'].'</td>';
+ echo '<td>';
+ if (isset($A['kepzesId'])) echo $A['kepzesNev'].' - '.$A['kepzesTanev'].' ('.$A['kepzesId'].')';
+ echo '</td>';
+ echo '</tr>';
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml
new file mode 100644
index 00000000..b81c5ca5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/szovegesErtekeles.phtml
@@ -0,0 +1,70 @@
+<?php
+
+ function putErtekeloForm($ADAT) {
+
+ if (isset($ADAT['szemeszterId'])) $class=' zaro';
+ formBegin(array('class'=>"ertekeles$class"));
+
+ echo '<input type="hidden" name="action" value="ujErtekeles" />'."\n";
+ echo '<input type="hidden" name="kepzesId" value="'.$ADAT['kepzesId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyam" value="'.$ADAT['evfolyam'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />'."\n";
+ echo '<input type="hidden" name="szrId" value="'.$ADAT['szempontRendszer']['szrId'].'" />'."\n";
+
+//echo '<pre>'; var_dump($ADAT); echo '</pre>';
+
+ echo '<h1>';
+ echo $ADAT['diakTargyak'][ $ADAT['targyId'] ]['targyNev'];
+ if ($class == ' zaro') echo ' - '._SZEMESZTER_ERTEKELES;
+ echo '</h1>'."\n";
+ if (isset($ADAT['szovegesErtekeles']['szeId'])) echo '<h2>'._LEGUTOBBI_ERTEKELES.': '.$ADAT['szovegesErtekeles']['dt'].'</h2>';
+ else echo '<h2>'._MEG_NEM_ERTEKELT.'</h2>'."\n";
+
+ echo '<ol>'."\n";
+ foreach ($ADAT['szempontRendszer']['szempont'] as $szempontId => $szAdat) {
+ echo '<li>'."\n";
+ echo $szAdat['szempont']."\n";
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['szempontRendszer']['minosites'][$szempontId]); $i++) {
+ $mAdat = $ADAT['szempontRendszer']['minosites'][$szempontId][$i];
+ if (
+ is_array($ADAT['szovegesErtekeles']['minosites'])
+ && in_array($mAdat['minositesId'], $ADAT['szovegesErtekeles']['minosites'])
+ ) $CHK = ' checked="checked" ';
+ else $CHK = '';
+ echo '<li>'."\n";
+ echo '<input id="m'.$mAdat['minositesId'].'" type="checkbox" name="minosites[]" value="'.$mAdat['minositesId'].'"'.$CHK.' />'."\n";
+ echo '<label for="m'.$mAdat['minositesId'].'">'.$mAdat['minosites'].'</label>'."\n";
+ echo '</li>'."\n";
+ }
+ if (__MODOSITHAT) {
+ echo '<li>'."\n";
+ echo '<input type="hidden" name="szempontId[]" value="'.$szempontId.'" />'."\n";
+ echo '<input type="text" name="egyediMinosites[]" value="'.$ADAT['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'].'" />'."\n";
+ echo '</li>'."\n";
+ } elseif ($ADAT['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'] != '') {
+ echo '<li>'."\n";
+ echo '<span class="egyediMinosites">'.$ADAT['szovegesErtekeles']['egyediMinosites'][$szempontId]['egyediMinosites'].'</span>'."\n";
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+ echo '</li>'."\n";
+ }
+ echo '</ol>'."\n";
+
+ if (__MODOSITHAT) echo '<input type="submit" class="szoveges" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+//echo '<pre>';
+//var_dump($ADAT['szovegesErtekeles']);
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml
new file mode 100644
index 00000000..cbac5b68
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/tankor.phtml
@@ -0,0 +1,550 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ require_once('skin/classic/module-naplo/html/share/jegy.phtml');
+
+ function putTankorJegyek($tankorId, $Diakok, $Jegyek, $Orak, $Dolgozatok, $sulyozas = __DEFAULT_SULYOZAS, $tolDt = '', $igDt = '', $nevsor, $ADAT) {
+
+ global $ADAT; // ????????????????
+ global $aHetNapjai, $Honapok, $Osztalyzatok, $diakId, $tanarId, $osztalyId, $_TANEV;
+ global $bizonyitvanyMegjegyzesek, $tanevIdoszak, $SULYOZAS;
+ global $KOVETELMENY;
+
+ $kepMutat=$ADAT['kepMutat'];
+
+ $aktDt = $kDt = date('Y-m-01',strtotime($tolDt));
+ $vDt = date('Y-m-01',strtotime($igDt));
+
+ $SULYOK = explode(':',$ADAT['sulyozas']);
+
+ // Keressük meg az első érintett szemesztert...
+ reset($_TANEV['szemeszter']); $szAdat = current($_TANEV['szemeszter']);
+ while (strtotime($szAdat['zarasDt']) < strtotime($kDt)) $szAdat = next($_TANEV['szemeszter']);
+ $szemeszter = $szAdat['szemeszter'];
+
+ $tanev = $_TANEV['tanev'];
+
+ $targyId = $Jegyek['tankörök'][$tankorId]['targyId'];
+ $_zarojegyGomb = false;
+ $evkoziKovetelmeny = $ADAT['tankorAdat']['kovetelmeny'];
+ $zaroKovetelmeny = $ADAT['tankorAdat']['zaroKovetelmeny'];
+ $tankorJelleg = $ADAT['tankorAdat2'][$tankorId][0]['jelleg']; // első szemeszter
+
+ // A jegybeíráshoz külön oszlop lesz + bizonyítvány 2 oszlop
+ $_colSpan = count($_TANEV['szemeszter']);
+ $colSpan = 3 + $_colSpan;
+ $rowSpan = 2; // első és második félév kiírása miatt...
+
+ if ($kepMutat) {
+ $_colSpan++;
+ $colSpan++;
+ }
+
+ while (strtotime($aktDt) <= strtotime($vDt)) {
+ list($ev,$ho,$nap) = explode('-',$aktDt);
+ $HO[] = array(
+ 'szemeszter' => $szemeszter,
+ 'év' => $ev,
+ 'hó' => $ho,
+ 'colspan' => 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho])
+ );
+ $HO['count']++;
+ $colSpan += 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho]);
+ $aktDt = date('Y-m-01',strtotime('+1 month',strtotime($aktDt)));
+ if (strtotime($aktDt) > strtotime($szAdat['zarasDt'])) {
+ $szAdat = next($_TANEV['szemeszter']); $szemeszter = $szAdat['szemeszter'];
+ if ($szAdat !== false) {
+ $HO[] = array(
+ 'szemeszter' => $szemeszter,
+ 'év' => $ev,
+ 'hó' => $ho,
+ 'colspan' => 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho])
+ );
+ $HO['count']++;
+ $colSpan += 1+count($Jegyek['dolgozatok']['dátum szerint'][$szemeszter][$ev][$ho]);
+ }
+ }
+ }
+
+ // svgClose(array('id'=>'closeLayer','alt'=>_CLOSE,'title'=>_CLOSE,'size'=>20));
+ formBegin(array('style'=>'display:none;','name'=>'jegyAdat', 'id'=>'jegyAdat', 'method'=>'post', 'action'=>href('index.php?page=naplo&sub=osztalyozo&f=jegy'), 'class'=>'onSubmitUpdate'));
+ echo '<input type="hidden" id="jegyId" value="" name="jegyId" />';
+ formEnd();
+
+ formBegin(array('name' => 'beir', 'method' => 'post', 'action' => ''));
+ echo '<input type="hidden" name="action" value="jegyBeiras" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="actionId" value="'.substr(uniqid( '', true),0,23).'" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />'."\n";
+ echo '<input type="hidden" name="igDt" value="'.$igDt.'" />'."\n";
+
+ echo '<table class="osztalyozo" align="center" cellspacing="1">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th class="nev" colspan="'.($colSpan+1).'">'."\n";
+ echo $Jegyek['tankörök'][$tankorId]['tankorNev'];
+ //_inlineHelp('');
+ echo ' ('.implode(', ',$Jegyek['tanárok']['tanarNevek']).')';
+ echo '</th>'."\n";
+ echo '</tr><tr>';
+
+ echo '<th colspan="'.($_colSpan+1).'" rowspan="'.$rowSpan.'">';
+ $SEL = array($nevsor => ' selected="selected" ');
+ echo '<select name="nevsor" class="onChangeSubmit">';
+ echo '<option value="aktualis"'.$SEL['aktualis'].'>'._AKTUALIS_NEVSOR.'</option>';
+ echo '<option value="teljes"'.$SEL['teljes'].'>'._TELJES_NEVSOR.'</option>';
+ echo '</select>';
+ if ($kepMutat!='') $_CHK='checked="checked"'; else $_CHK='';
+ echo '<input type="checkbox" class="onChangeSubmit" name="kepMutat" value="1" '.$_CHK.' />';
+
+ echo '</th>';
+ // Hónaponként végigmenve
+ $szemeszter = 0;
+ for ($j=0;$j<$HO['count'];$j++) {
+ if ($szemeszter != $HO[$j]['szemeszter']) {
+ if (isset($db)) {
+ echo $db.'">'.decimal_to_roman($szemeszter).'. '._FELEV.'</td>'."\n";
+ }
+ if ($szemeszter != 0) echo '<td class="ujSzemeszter" colspan="';
+ else echo '<td colspan="';
+ $szemeszter = $HO[$j]['szemeszter'];
+ $db = 0;
+ }
+ $db += $HO[$j]['colspan'];
+ }
+ echo $db.'">'.decimal_to_roman($szemeszter).'. '._FELEV.'</td>';
+
+ if ($sulyozas == __DEFAULT_SULYOZAS) $_sulyClass = "defaultSulyozas";
+
+ echo '<th rowspan="'.$rowSpan.'" class="'.$_sulyClass.'">';
+ echo _ATLAG.'<br />';
+ $SEL = array($sulyozas => ' selected="selected"');
+ echo '<select name="sulyozas" class="onChangeSubmit sulyozas">';
+ if (is_array($SULYOZAS) && count($SULYOZAS) > 0) {
+ for ($i = 0; $i < count($SULYOZAS); $i++)
+ echo '<option value="'.$SULYOZAS[$i].'"'.$SEL[$SULYOZAS[$i]].'>'.$SULYOZAS[$i].'</option>';
+ } else {
+ echo '<option value="1:1:1:1:1"'.$SEL['1:1:1:1:1'].'>'._EGYSZERU_ATLAG.'</option>';
+ echo '<option value="1:1:1:2:2"'.$SEL['1:1:1:2:2'].'>'._TEMAZAROVAL_SULYOZOTT.'</option>';
+ echo '<option value="1:2:2:4:4"'.$SEL['1:2:2:4:4'].'>'._KISJEGY_TEMAZARO.'</option>';
+ echo '<option value="1:1:2:2:4"'.$SEL['1:1:2:2:4'].'>'.'1:1:2:2:4'.'</option>';
+ }
+ echo '</select>';
+ echo '</th>';
+
+ // bizonyítvány
+ echo '<th colspan="'.count($_TANEV['szemeszter']).'">'._BIZONYITVANY.'</th>';
+
+ echo '</tr>';
+ echo '<tr>';
+ $szemeszter = 0;
+ for ($j=0;$j<$HO['count'];$j++) {
+ if ($szemeszter != $HO[$j]['szemeszter']) {
+ if ($szemeszter != 0) echo '<td class="ho ujSzemeszter" colspan="'.$HO[$j]['colspan'].'">';
+ else echo '<td class="ho" colspan="'.$HO[$j]['colspan'].'">';
+ $szemeszter = $HO[$j]['szemeszter'];
+ } else {
+ echo '<td class="ho" colspan="'.$HO[$j]['colspan'].'">';
+ }
+// echo $Honapok[$HO[$j]['hó']-1];
+// echo '<td class="ho">';
+ echo '<span class="roman">'.decimal_to_roman($HO[$j]['hó']).'.</span>';
+ echo '<span class="literal">'.$Honapok[$HO[$j]['hó']-1].'</span>';
+// echo '</td>'."\n";
+
+ echo '</td>';
+
+ }
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+ echo '<th class="felevLezar" data-szemeszter="'.$szemeszter.'">'.decimal_to_roman($szemeszter).'. '._FELEV.'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+
+ echo '<tr>';
+ echo '<th colspan="'.($colSpan+1).'">';
+
+ if (__EVKOZI_JEGYET_ADHAT) {
+
+ echo '<label for="megjegyzes">'._MEGJEGYZES.'</label>';
+ echo '<input type="text" name="megjegyzes" id="megjegyzes" value="" />';
+ echo '<br />'."\n";
+
+ echo '<select name="oraId">'."\n";
+ echo '<option value="">'._ORAHOZ_RENDELES.'</option>'."\n";
+ for ($i = 0; $i < count($Orak); $i++) {
+ $napNev = $aHetNapjai[(date('w',strtotime($Orak[$i]['dt']))+6)%7];
+ echo '<option value="'.$Orak[$i]['oraId'].'">'.$Orak[$i]['dt']." ($napNev) ".$Orak[$i]['ora'].'. '._ORA.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" class="jegy1" name="jegy1" value="'._KIS_JEGY.'" />'."\n";
+ echo '<input type="submit" class="jegy2" name="jegy2" value="'._NORMAL_JEGY.'" />'."\n";
+ echo '<input type="submit" class="jegy3 check" name="jegy3" value="'._DOLGOZAT.'" />'."\n";
+ echo '<input type="submit" class="jegy4 check" name="jegy4" value="'._TEMAZARO.'" />'."\n";
+ echo '<input type="submit" class="jegy5 check" name="jegy5" value="'._VIZSGAJEGY.'" />'."\n";
+
+ echo '<select name="dolgozatId" id="did" title="'._VALASSZ_DOLGOZATOT.'">'."\n";
+ echo '<option value="">'._DOLGOZATHOZ_RENDELES.'</option>'."\n";
+ echo '<option value="uj">'._UJ_DOLGOZAT.'</option>'."\n";
+ for ($i = 0; $i < count($Dolgozatok['dolgozatIds']); $i++) {
+ $dolgozatId = $Dolgozatok['dolgozatIds'][$i];
+ // $Dolgozatok[$dolgozatId] ===>>> megjegyzés|bejelentés|tervezett|tankör(array)[]['leírás'|'cn']
+ echo '<option value="'.$dolgozatId.'">'.$Dolgozatok[$dolgozatId]['dolgozatNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+
+ // ---------- Tanulónként a jegyek ------------- //
+
+ echo '<tbody>';
+ $db = 0;
+ if (is_array($Diakok['nevek'])) foreach ($Diakok['nevek'] as $diakId => $DIAKADAT) {
+
+ $JEGYET_KAP = (
+ in_array($ADAT['diakJogviszony'][$diakId][date('Y-m-d')]['statusz'],array('jogviszonyban van','vendégtanuló'))
+ ||
+ ($ADAT['diakJogviszony'][$diakId][date('Y-m-d')]['statusz']=='magántanuló' && $tankorJelleg == 'gyakorlat')
+ );
+ $__JEGYEK = array();
+ //$diakKovetelmeny = $Diakok['adatok'][$diakId][count($Diakok['adatok'][$diakId])-1]['kovetelmeny']; (ezt nem használjuk!!!)
+ echo '<tr class="'.str_replace(' ', '', ekezettelen($ADAT['diakJogviszony'][$diakId][date('Y-m-d')]['statusz'])).'">';
+
+ echo '<th class="diakNev c" data-diakid="'.$diakId.'">';
+ echo '<span class="sorszam">'.(++$db).'.</span>';
+ echo '</th>';
+
+ if ($kepMutat) {
+ echo '<th class="face">';
+ putFace($diakId,'diak',30);
+ echo '</th>';
+ }
+
+ echo '<th class="diakNev diakNevTxt" '.((!__EVKOZI_JEGYET_ADHAT) ? 'colspan="2"':'').'>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'">';
+ echo '<span title="['.$diakId.'] '._KOVETELMENY.': '.$ADAT['tankorAdat']['kovetelmeny'].', '._EVFOLYAMA.': '.$ADAT['diakEvfolyamJel']['aktualis'][$diakId].'">';
+ echo $DIAKADAT['diakNev'];
+ echo '</span>';
+ echo '</a>';
+ if ($ADAT['diakEvfolyamJel']['aktualis'][$diakId]=='' && function_exists('putAlertImage')) putAlertImage('Nem határozható meg az évfolyama! Vendégtanuló, vagy már nem tagja a megfelelő osztálynak?');
+ echo '</th>';
+ if (__EVKOZI_JEGYET_ADHAT ) {
+ echo '<th>';
+ if (
+ (!is_array($ADAT['diakFelmentes'][$diakId]) || !in_array($tankorId,$ADAT['diakFelmentes'][$diakId])) && $JEGYET_KAP===true
+ ) {
+
+ // Ez még nem használható! DE NAGYON JÓ LENNE ÁM - 2016 --TODO
+ /*
+ $_JEGY = array('jegySelectTipus'=>'jegy',
+ 'evfolyam'=>$evfolyam,
+ 'diakId'=>$diakId,
+ 'targyId'=>$targyId,
+ 'jegyTipus'=>$evkoziKovetelmeny
+ );
+ putJegySelect($_JEGY);
+ */
+ echo '<select name="jegy[]" tabindex="'.($db+1).'">';
+ echo '<option value="">-</option>';
+ for ($o=0;$o<count($KOVETELMENY[$evkoziKovetelmeny]['értékek']);$o++) {
+ $_osztalyzat = $KOVETELMENY[$evkoziKovetelmeny]['értékek'][$o];
+ echo '<option value="'.$diakId.'|'.$evkoziKovetelmeny.'|'.$_osztalyzat.'">'.$KOVETELMENY[$evkoziKovetelmeny][$_osztalyzat]['rovid'].'</option>';
+ }
+ echo '</select>'."\n";
+
+ } else {
+ echo '-';
+ }
+ echo '</th>'."\n";
+ }
+ // Hónaponként végigmenve
+ $elozoHo = 0;
+ for ($j = 0; $j < $HO['count']; $j++) {
+
+ $_szemeszter = $HO[$j]['szemeszter'];
+ $elozoHo = $_ho;
+ $_ho = $HO[$j]['hó'];
+ $_ev = $HO[$j]['év'];
+ $_JEGYEK = $Jegyek[$diakId][$_szemeszter][$_ev][$_ho]['jegyek'];
+ $_DOGA = $Jegyek[$diakId][$_szemeszter][$_ev][$_ho]['dolgozat'];
+
+ if ($elozoHo == $_ho) echo '<td class="jegyek ujSzemeszter">';
+ else echo '<td class="jegyek">';
+ for ($k = 0; $k < count($_JEGYEK); $k++) {
+ $title = '';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$_JEGYEK[$k]['jegyId']);
+ if ($_JEGYEK[$k]['tankorId'] == $tankorId) {
+ $class = 'jegy'.$_JEGYEK[$k]['tipus'];
+ $__JEGYEK['sajat'][] = $_JEGYEK[$k];
+ } else {
+ $class = 'jegy'.$_JEGYEK[$k]['tipus'].'mase';
+ $__JEGYEK['mase'][] = $_JEGYEK[$k];
+ }
+ $title .= str_replace('-', '.', $_JEGYEK[$k]['dt'])
+ . ' - '.$Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tankorNev']
+ . ' (';
+ for ($t = 0; $t < count($Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tanárok']); $t++) {
+ $title .= $Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tanárok'][$t]['tanarNev'] . ', ';
+ }
+ $title = substr($title,0,-2) . ') ' . $_JEGYEK[$k]['megjegyzes'];
+ echo '<a id="jegy-'.$_JEGYEK[$k]['jegyId'].'" title="'.htmlspecialchars($title).'" href="'.$href.'" class="onClickUpdateWindow '.$class.'">';
+ echo (($_jegyShow=$KOVETELMENY[$_JEGYEK[$k]['jegyTipus']][$_JEGYEK[$k]['jegy']]['rovid'])!='') ? $_jegyShow:'?';
+
+ if ($_JEGYEK[$k]['modositasDt']!='0000-00-00 00:00:00' && $_JEGYEK[$k]['dt']!=date('Y-m-d',strtotime($_JEGYEK[$k]['modositasDt']))) echo '<sup>*</sup>';
+ echo '</a> ';
+ }
+ echo '</td>';
+
+ for ($k = 0; $k < count($Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho]); $k++) {
+ $did = $Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho][$k];
+ if (in_array($tankorId, $Jegyek['dolgozatok'][$did]['tankorIds'])) echo '<td id="td-'.$diakId.'-'.$did.'" class="dolgozat d'.$did.'">';
+ else echo '<td id="td-'.$diakId.'-'.$did.'" class="dolgozatMase d'.$did.'">';
+ for ($l = 0; $l < count($_DOGA[$did]); $l++) {
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$_DOGA[$did][$l]['jegyId']);
+ if ($_DOGA[$did][$l]['tankorId'] == $tankorId) {
+ $class = 'jegy'.$_DOGA[$did][$l]['tipus'];
+ $__JEGYEK['sajat'][] = $_DOGA[$did][$l];
+ } else {
+ $class = 'jegy'.$_DOGA[$did][$l]['tipus'].'mase';
+ $__JEGYEK['mase'][] = $_DOGA[$did][$l];
+ }
+ $title = $Dolgozatok[$did]['dolgozatNev'].' - '.str_replace('-', '.', $_DOGA[$did][$l]['dt'])
+ . ' - '.$Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tankorNev']
+ . ' (';
+ for ($t = 0; $t < count($Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tanárok']); $t++) {
+ $title .= $Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tanárok'][$t]['tanarNev'] . ', ';
+ }
+ $title = substr($title,0,-2) . ') ' . $_DOGA[$did][$l]['megjegyzes'];
+ echo '<a id="jegy-'.$_DOGA[$did][$l]['jegyId'].'" title="'.htmlspecialchars($title).'" href="'.$href.'" class="onClickUpdateWindow '.$class.'">';
+ echo $KOVETELMENY[$_DOGA[$did][$l]['jegyTipus']][$_DOGA[$did][$l]['jegy']]['rovid'];
+ if ($_DOGA[$did][$l]['modositasDt']!='0000-00-00 00:00:00' && $_DOGA[$did][$l]['dt']!=date('Y-m-d',strtotime($_DOGA[$did][$l]['modositasDt']))) echo '<sup>*</sup>';
+ echo '</a> ';
+ }
+ echo '</td>';
+ }
+
+ }
+
+ if ($Jegyek[$diakId]['átlag'] != 0) {
+ $atlag = number_format($Jegyek[$diakId]['átlag'],2,',','');
+ $class = 'atlag';
+ } else {
+ $atlag = '';
+ $class = '';
+ }
+
+ echo '<th class="'.$class.'">';
+ $atlag_title = '';
+
+ $_jegyOsszeg = 0;
+ $_szlo = $_sumsuly = 0;
+ for ($i=0; $i<count($__JEGYEK['sajat']); $i++) {
+ $_szlo += ($__JEGYEK['sajat'][$i]['jegy']) * $SULYOK[$__JEGYEK['sajat'][$i]['tipus']-1];
+ $_sumsuly += $SULYOK[$__JEGYEK['sajat'][$i]['tipus']-1];
+ if ($KOVETELMENY[$__JEGYEK['sajat'][$i]['jegyTipus']]['összeadható']===true) $_osszegMutat = true;
+ if ($KOVETELMENY[$__JEGYEK['sajat'][$i]['jegyTipus']]['átlagolható']===true) $_atlagMutat = true;
+ }
+ if ($_sumsuly!=0) $atlag_title .= number_format($_szlo/$_sumsuly,2,',','');
+ $_jegyOsszeg += $_szlo;
+
+ $_szlo=$_sumsuly = 0;
+ for ($i=0; $i<count($__JEGYEK['mase']); $i++) {
+ $_jegyOsszeg += $_szlo += ($__JEGYEK['mase'][$i]['jegy']) * $SULYOK[$__JEGYEK['mase'][$i]['tipus']-1];
+ $_sumsuly += $SULYOK[$__JEGYEK['mase'][$i]['tipus']-1];
+ if ($KOVETELMENY[$__JEGYEK['mase'][$i]['jegyTipus']]['összeadható']===true) $_osszegMutat = true;
+ if ($KOVETELMENY[$__JEGYEK['mase'][$i]['jegyTipus']]['átlagolható']===true) $_atlagMutat = true;
+ }
+ if ($_sumsuly!=0) $atlag_title .= ' ('.number_format($_szlo/$_sumsuly,2,',','').')';
+ $_jegyOszseg += $_szlo;
+
+ // összeget vagy átlagot mutassunk?
+ if ($_atlagMutat === true) echo '<span title="'.$atlag_title.'" data-atlag="'.$diakId.':'.str_replace(',','.',$atlag).'">'.$atlag.'</span>';
+ if ($_osszegMutat=== true) echo '<span> ∑:'.$_jegyOsszeg.'</span>';
+ echo '</th>';
+
+ $oszlopSzam = 0;
+
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdatok) {
+ $ZAROJEGYET_KAP = (
+ in_array($ADAT['diakJogviszony'][$diakId][$szAdatok['zarasDt']]['statusz'],array('jogviszonyban van','vendégtanuló'))
+ ||
+ ($ADAT['diakJogviszony'][$diakId][$szAdatok['zarasDt']]['statusz']=='magántanuló' && $tankorJelleg == 'gyakorlat')
+ );
+
+ $felev = $szemeszter;
+ // Az adott szemeszter szeritni évfolyama (igen, akár ez is változhat év közben: pl nyelvi előkészítős osztályba megy át normál osztályból)
+ $evfolyam = $ADAT['diakEvfolyam'][$szemeszter][$diakId];
+ $evfolyamJel = $ADAT['diakEvfolyamJel'][$szemeszter][$diakId];
+ if (isset($ADAT['diakKepzesKovetelmeny'][$szemeszter][$diakId][$targyId][$evfolyamJel][$szemeszter])) {
+ $_info = " a képzésből";
+ $diakZaroKovetelmeny = $ADAT['diakKepzesKovetelmeny'][$szemeszter][$diakId][$targyId][$evfolyamJel][$szemeszter][0]['kovetelmeny'];
+ } else {
+ $_info = "";
+ $diakZaroKovetelmeny = $zaroKovetelmeny;
+ }
+ $oszlopSzam++;
+ echo '<td class="biz">';
+ if ( __ZAROJEGYET_ADHAT===true) {
+ $_zarojegyGomb = true;
+ $jIg = count($ADAT['zaroJegyek'][$diakId][$evfolyamJel][$felev]); // evfolyamJel
+ if ($jIg==0) $jIg=1;
+ $vanJegySelect=false;
+ $lezartJegy=false;
+ for ($j=0; $j<($jIg); $j++) {
+ // prepare data
+ $_ZJEGY = $ADAT['zaroJegyek'][$diakId][$evfolyamJel][$felev][$j]; // evfolyamJel
+ $_ZJEGY['dt'] = $_ZJEGY['modositasDt']; //!!! HACK -- ez tök jó, de mi a hack?
+ //??? $vizsgaJegy = ($ADAT['vizsgaJegyek'][$diakId][$evfolyam][$felev][0]['tipus']!=''); // == osztályozó vizsga // különbözeti stb
+ // Ha netán a tanár lezár rendesen és utóbb vizsgajegyet is írnak be, akkor a rendes jegyet még kell tudni törölni...
+ $ii = 0;
+ while (
+ ($ii < count($ADAT['vizsgaJegyek'][$diakId][$evfolyamJel][$felev])) // evfolyamJel
+ && $ADAT['vizsgaJegyek'][$diakId][$evfolyamJel][$felev][$ii]['zaroJegyId'] != $_ZJEGY['zaroJegyId'] // evfolyamJel
+ ) $ii++;
+ $vizsgaJegy = $ii < count($ADAT['vizsgaJegyek'][$diakId][$evfolyamJel][$felev]); // evfolyamJel
+ // ---
+ if ($lezartJegy===false && $vizsgaJegy==true) $lezartJegy=true;
+ // FIGYELEM!, ha itt módosítász, ellenőrizd a cikluson kívül is jó marad-e a jegySelect
+ $_JEGY_S = array(
+ 'info' => $diakZaroKovetelmeny.$_info,
+ 'jegySelectTipus' => 'zaroJegy',
+ 'variable' => 'zaroJegy',
+ 'diakId' => $diakId,
+ 'targyId'=> $targyId,
+ 'evfolyam'=> $_ZJEGY['evfolyam'],
+ 'evfolyamJel'=> $_ZJEGY['evfolyamJel'], // evfolyamJel
+ 'tanev'=> $tanev,
+ 'szemeszter' => $szemeszter,
+ 'zaroJegyId' => $_ZJEGY['zaroJegyId'],
+ 'jegy' => $_ZJEGY['jegy'],
+ 'jegyTipus' => (($_ZJEGY['jegyTipus']=='') ? $diakZaroKovetelmeny : $_ZJEGY['jegyTipus']),
+ 'zaroJegyTipusok' => array_unique( array( $diakZaroKovetelmeny, (($_ZJEGY['jegyTipus']=='') ? $diakZaroKovetelmeny : $_ZJEGY['jegyTipus']), 'nem értékelhető' )),
+ 'megjegyzes' => $_ZJEGY['megjegyzes'],
+ 'dt' => $_ZJEGY['dt'], // !!!!!!!!!!!!!!!!
+ 'hivatalosDt' => $_ZJEGY['hivatalosDt'],
+ 'modositasDt' => $_ZJEGY['modositasDt'],
+ 'tabindex' => ($db+$oszlopSzam*count($Diakok['idk'])),
+ 'tankorId' => $tankorId // szöveges értékelés...
+ );
+ if ($_ZJEGY['evfolyam']=='') // már kitaláltuk az évfolyamot mindenféle furmánnyal (lásd -pre)
+ $_JEGY_S['evfolyam'] = $evfolyam;
+ if ($_ZJEGY['evfolyamJel']=='') // már kitaláltuk az évfolyamot mindenféle furmánnyal (lásd -pre)
+ $_JEGY_S['evfolyamJel'] = $evfolyamJel; // evfolyamJel
+
+ if (($ZAROJEGYET_KAP === true || __NAPLOADMIN===true) && $lezartJegy===false && ( !defined('__IDOSZAK_SZEMESZTER') || (
+ $szemeszter==__IDOSZAK_SZEMESZTER && (
+ in_date_interval($_ZJEGY['dt'],__IDOSZAK_TOLDT,__IDOSZAK_IGDT)
+ || $_ZJEGY['zaroJegyId']==''
+ )
+ ))) {
+ if (($evfolyamJel=='' && $evfolyam=='')) {
+ echo 'Nem határozható meg az évfolyama, így valószínűleg nem adható zárójegy! [#1]';
+ } else {
+ putJegySelect($_JEGY_S);
+ }
+ $vanJegySelect = true;
+ } elseif ($_ZJEGY['zaroJegyId']!='') {
+ echo '<div class="zaroJegyAdat" data-zarojegyid="'.$_ZJEGY['zaroJegyId'].'">';
+ echo $KOVETELMENY[$_ZJEGY['jegyTipus']][$_ZJEGY['jegy']]['hivatalos'];
+ if ($_ZJEGY['megjegyzes']!='') echo ' '.$bizonyitvanyMegjegyzesek[$_ZJEGY['megjegyzes']];
+ if ($vizsgaJegy==true) echo '<sup>(v)</sup>';
+ echo '</div>';
+ } elseif ($vizsgaJegy!==false) {
+ echo 'Vizsgáznia kell!'; // ???
+ }
+
+ }
+ if ($lezartJegy===false) {
+ if ( (!defined('__IDOSZAK_SZEMESZTER') || $szemeszter==__IDOSZAK_SZEMESZTER) && $vanJegySelect===false) {
+ foreach ( array('zaroJegyId','jegy','megjegyzes','dt', 'hivatalosDt', 'modositasDt') as $val) unset($_JEGY_S[$val]);
+ $_JEGY_S['jegyTipus'] = $zaroKovetelmeny;
+ if ($evfolyamJel=='' && $evfolyam=='') {
+ echo 'Nem határozható meg az évfolyama, így valószínűleg nem adható zárójegy!';
+ } elseif ($ZAROJEGYET_KAP===true) {
+ putJegySelect($_JEGY_S);
+ } else {
+ echo '-';
+ }
+ }
+ }
+ } else {
+ for ($j=0; $j<count($ADAT['zaroJegyek'][$diakId][$evfolyamJel][$szemeszter]); $j++) {
+ $_zaroJegy = $ADAT['zaroJegyek'][$diakId][$evfolyamJel][$szemeszter][$j];
+ echo $KOVETELMENY[$_zaroJegy['jegyTipus']][$_zaroJegy['jegy']]['hivatalos'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$_zaroJegy['megjegyzes']];
+ }
+
+ }
+
+ echo '</td>'."\n";
+ }
+ echo '</tr>';
+
+ }
+
+ // Dolgozat átlagok
+ echo '<tr>';
+ echo '<th colspan="'.($_colSpan+1).'" class="dolgozat">'._ATLAG.'</th>';
+ $elozoHo = 0;
+ for ($j = 0; $j < $HO['count']; $j++) {
+
+ $_szemeszter = $HO[$j]['szemeszter'];
+ $elozoHo = $_ho;
+ $_ho = $HO[$j]['hó'];
+ $_ev = $HO[$j]['év'];
+
+ // Normál jegyek alatt...
+ if ($_ho == $elozoHo) echo '<th class="ujSzemeszter" />'; else echo '<th />';
+ for ($k=0;$k<count($Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho]);$k++) {
+ echo '<th class="atlag">';
+ $did = $Jegyek['dolgozatok']['dátum szerint'][$_szemeszter][$_ev][$_ho][$k];
+ echo '<a id="avg-d'.$did.'" href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did.'&tanarId='.$tanarId.'&osztalyId='.$osztalyId).'">';
+ if ($KOVETELMENY[$Jegyek['dolgozatok'][$did]['jegyTipus']]['átlagolható']) echo number_format($Jegyek['dolgozatok'][$did]['átlag'],2,',','');
+ else echo '-';
+ echo '</a>';
+ echo '</th>';
+ }
+
+ }
+ // Osztályátlag
+ echo '<th class="dolgozat">';
+ if ($Jegyek['átlag'] != 0) echo number_format($Jegyek['átlag'],2,',','');
+ else echo _ATLAG;
+ echo '</th>';
+
+ // Félévi átlagok
+ echo '<th class="atlag" colspan="2">';
+ if ($_zarojegyGomb==true) {
+ echo '<input type="hidden" class="onClickDisableValue" name="bizBeiroGomb2" value="" />';
+ echo '<input type="submit" class="felev onClickDisable" name="bizBeiroGomb" value="'._BEIR.'" />';
+ }
+ echo '</th>';
+
+ echo '</tr>';
+
+ echo '</tbody>';
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+
+ function putTankorjegyStatisztika($ADAT) {
+ //dump( $ADAT);
+ //echo '<div style="background-color: red; width:100px; height:100px"></div>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml
new file mode 100644
index 00000000..3de4e501
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/targySorrend.phtml
@@ -0,0 +1,45 @@
+<?php
+
+ function putTargySorrendForm($osztalyId, $sorrendNev, $Targyak) {
+
+ formBegin(array('method'=>'post', 'action'=>'', 'id'=>'sorrend', 'class'=>'sorrend'));
+
+ echo '<h1>'._SORREND.'</h1>';
+
+ echo '<input type="hidden" name="action" id="action" value="sorrendValtas" />'."\n";
+ echo '<input type="hidden" name="sorrendNev" value="'.$sorrendNev.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ $SEL = array($_POST['targyId'] => ' selected="selected" ');
+ echo '<select id="targySelect" name="targyId[]" multiple="multiple">'."\n";
+ for ($i = 0; $i < count($Targyak); $i++) {
+
+ echo '<option value="'.$Targyak[$i]['targyId'].'"'.$SEL[$Targyak[$i]['targyId']].'>'.$Targyak[$i]['targyNev'].'</option>'."\n";
+
+ }
+ echo '</select>'."\n";
+
+ echo '<ul id="targyUl" style="display: none;">'."\n";
+ for ($i = 0; $i < count($Targyak); $i++) {
+
+ echo '<li>';
+ echo '<span class="handle">&nbsp;^&nbsp;</span>';
+ echo $Targyak[$i]['targyNev'];
+ echo '<input type="hidden" name="targyIds[]" value="'.$Targyak[$i]['targyId'].'" />';
+ echo '</li>'."\n";
+
+ }
+ echo '</ul>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" id="submit" style="display: none;" />'."\n";
+
+ echo '<div id="mozgat">'."\n";
+ echo '<input type="submit" name="fel" value="'._FEL.'" />'."\n";
+ echo '<input type="submit" name="le" value="'._LE.'" />'."\n";
+ echo '</div>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml
new file mode 100644
index 00000000..8ad356e5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsga.phtml
@@ -0,0 +1,144 @@
+<?php
+
+ function putVizsgaJelentkezesForm($ADAT) {
+
+ formBegin(array('class'=>'jelentkezes'));
+
+ echo '<h1>'._VIZSGAJELENTKEZES.'</h1>'."\n";
+
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="felev" value="'.$ADAT['felev'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="vizsgajelentkezes" />'."\n";
+
+ echo '<label for="jelentkezesDt">'._JELENTKEZES.'</label>'."\n";
+ echo '<input type="text" name="jelentkezesDt" class="date" value="" id="jelentkezesDt" />'."\n";
+ echo '<label for="tipus">'._VIZSGATIPUS.'</label>'."\n";
+ echo '<select name="tipus" id="tipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['vizsgatipusok']); $i++) {
+ echo '<option value="'.$ADAT['vizsgatipusok'][$i].'"'.$SEL[ $ADAT['vizsgatipusok'][$i] ].'>'.$ADAT['vizsgatipusok'][$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putVizsgalista($ADAT) {
+
+ global $KOVETELMENY;
+
+ formBegin(array('class'=>'lista'));
+
+ echo '<h1>'._VIZSGALISTA.'</h1>'."\n";
+
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="felev" value="'.$ADAT['felev'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="vizsgaKezeles" />'."\n";
+
+ echo '<table>'."\n";
+ echo '<thead>';
+ echo '<tr><th></th><th>'._DIAK.'</th><th>'._TARGY.'</th><th>'._EVFOLYAMJEL.'</th><th>'._JELENTKEZES.'</th><th colspan="2">'._VIZSGA.'</th><th colspan="2">'._ERTEKELES_HALASZTAS.'</th></tr>'."\n";
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="9"><input type="submit" value="'._OK.'" /></th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($ADAT['vizsga']); $i++) {
+
+ extract($ADAT['vizsga'][$i]);
+ echo '<tr class="'.ekezettelen($ADAT['vizsga'][$i]['tipus']).'">';
+ echo '<td>';
+ if (__NAPLOADMIN===true) {
+ echo '<a class="confirm" title="'._BIZTOSAN_TOROL_E.'" href="'.href('index.php?page=naplo&sub=osztalyozo&f=vizsga&action=vizsgaTorlese&vizsgaId='.$ADAT['vizsga'][$i]['vizsgaId'].'&diakId='.$ADAT['diakId'].'&targyId='.$ADAT['targyId'].'&evfolyamJel='.$ADAT['evfolyamJel']).'">';
+ //echo $ADAT['vizsga'][$i]['vizsgaId'];
+ echo 'X';
+ echo '</a>';
+ }
+ echo '</td>';
+ echo '<td class="diakNev" data-diakid="'.$diakId.'">'.$ADAT['diakok'][ $diakId ]['diakNev'].'</td>';
+ echo '<td>'.$ADAT['targyak'][$targyId]['targyNev'].'</td>';
+ echo '<td>'.(($evfolyamJel!='')?$evfolyamJel:$evfolyam).'/'.$felev.'</td>';
+ echo '<td>'.$jelentkezesDt.'</td>';
+ echo '<td title="'.$tipus.'">'.nagybetus(substr($tipus,0,1)).'</td>';
+ if (isset($vizsgaDt)) {
+ if (strtotime($vizsgaDt)>time()) {
+ $halasztClass = ''; $ertekelClass = ' rejtett';
+ } else {
+ $halasztClass = ' rejtett'; $ertekelClass = '';
+ }
+
+ echo '<td>';
+ echo $vizsgaDt;
+ echo '</td>';
+ if (isset($zaradekId)) {
+ echo '<td class="szoveg">';
+ echo $szoveg;
+ echo '</td><td class="jegy zaroJegyAdat" data-zarojegyid="'.$zaroJegyId.'">';
+ if (isset($zaroJegyId)) {
+ echo '<span>'._EREDMENY.': '.$jegyTipus.' &rarr;</span>';
+ echo '<span class="jegy">';
+ echo $KOVETELMENY[$jegyTipus][$jegy]['hivatalos'];
+ if ($KOVETELMENY[$jegyTipus][$jegy]['hivatalos'] != $KOVETELMENY[$jegyTipus][$jegy]['rovid'])
+ echo ' ('.$KOVETELMENY[$jegyTipus][$jegy]['rovid'].')';
+ echo '</span>';
+ }
+ echo '</td>';
+ } else {
+ echo '<td class="kiemelt hideShowContainer" colspan="2">';
+ echo '<input type="hidden" name="erthalVizsgaIds[]" value="'.$vizsgaId.'" />'."\n";
+ echo '<div class="halaszt openable'.$halasztClass.'">';
+ echo '<span class="onClickHideShow ertekeles">&rang;&rang;&rang; '._ERTEKELES.' &rang;&rang;&rang;</span>';
+ echo '<label for="halasztas'.$vizsgaId.'">'._HALASZTAS.':</label>';
+ echo '<input type="text" name="halasztasDts[]" value="" class="date halasztasDt" id="halasztas'.$vizsgaId.'" />';
+ echo '</div><div class="ertekel openable'.$ertekelClass.'">';
+ echo '<span class="onClickHideShow halasztas">&rang;&rang;&rang; '._HALASZTAS.' &rang;&rang;&rang;</span>';
+ echo '<label for="ertekeles'.$vizsgaId.'">'._ERTEKELES.':</label>';
+ echo '<select name="jegyTipus[]" class="jegyTipus">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['zarojegytipusok'] as $key => $jegyTipus) {
+ echo '<option value="'.$jegyTipus.'">'.$jegyTipus.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<select name="jegyAdat[]" class="jegyAdat" id="ertekeles'.$vizsgaId.'" title="'.$ADAT['tanev'].'/'.$felev.' - '.$evfolyamJel.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ foreach ($ADAT['zarojegytipusok'] as $key => $jegyTipus) {
+ echo '<optgroup label="'.$jegyTipus.'">';
+ foreach ($KOVETELMENY[$jegyTipus]['értékek'] as $idx => $value) {
+ if (in_array($value,$KOVETELMENY[$jegyTipus]['sikertelen'])) $_postfix=' !'; else $_postfix='';
+// echo '<option value="zaroJegyId=|diakId='.$diakId.'|targyId='.$targyId.'|evfolyam='.$evfolyam.'|tanev='.$ADAT['tanev'].'|felev='.$felev.'|jegy='.$value.'|jegyTipus='.$jegyTipus.'|megjegyzes=">'.$KOVETELMENY[$jegyTipus][$value]['rovid'].'</option>'."\n";
+ echo '<option value="jegy='.$value.'|jegyTipus='.$jegyTipus.'|megjegyzes=">'.$KOVETELMENY[$jegyTipus][$value]['rovid'].$_postfix.'</option>'."\n";
+ }
+ echo '</optgroup>';
+ }
+ echo '</select>'."\n";
+ echo '</div>';
+ echo '</td>';
+ }
+ } else {
+ echo '<td class="kiemelt">';
+ echo '<input type="hidden" name="vizsgaDtVizsgaIds[]" value="'.$vizsgaId.'" />'."\n";
+ echo '<input type="text" class="date" name="vizsgaDts[]" value="" />'."\n";
+ echo '</td>';
+ echo '<td colspan="2"></td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+
+ formEnd();
+
+ echo '<div class="hideShowContainer">';
+ echo '<h4 class="onClickHideShow"><span class="icon-braille"></span>Debug információ</h4>';
+ echo '<div class="openable" style="display:none">';
+ dump($KOVETELMENY);
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml
new file mode 100644
index 00000000..d27c0c92
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/vizsgaJelentkezes.phtml
@@ -0,0 +1,16 @@
+<?php
+
+ function putVizsgaJelentkezes($ADAT) {
+
+ formBegin(array('class'=>'jelentkezes'));
+ echo '<label for="idoszak">'._VIZSGAIDOSZAK.'</label>'."\n";
+ echo '<select id="idoszak" name="idoszakId">'."\n";
+ $SEL = array($ADAT['kovetkezoIdoszakIndex'] => ' selected="selected" ');
+ foreach ($ADAT['vizsgaIdoszak'] as $index => $vAdat) {
+ echo '<option value="'.$vAdat['idoszakId'].'"'.$SEL[$index].'>'.substr($vAdat['tolDt'],0,10).' - '.substr($vAdat['igDt'],0,10).'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml
new file mode 100644
index 00000000..95a99b81
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/osztalyozo/zaroJegyCheck.phtml
@@ -0,0 +1,50 @@
+<?php
+ function putZaroJegyCheck($ADAT) {
+
+ echo 'Osztály évfolyama:';
+ echo $ADAT['evfolyam'];
+ echo '<br/>Osztály évfolyamjele:';
+ echo $ADAT['evfolyamJel'];
+ echo '<br/>Osztály adatai:';
+ echo '<pre>';
+ var_dump($ADAT['osztalyok']);
+ echo '</pre>';
+
+ $ZJ = $ADAT['zaroJegyek'];
+ formBegin();
+ echo '<input type="hidden" name="action" value="modosit" />';
+ echo '<input type="hidden" name="szemeszterId" value="'.$ADAT['szemeszterId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<table border="1" align="center">';
+ echo '<tr><th>zaroJegyId</th><th>diakId</th><th>targyId</th><th>jegy+tipus</th><th>evfolyam</th><th>evfolyamJel</th><th>felev</th><th>modositasDt</th><th>hivatalosDt</th></tr>';
+ for ($i=0; $i<count($ZJ); $i++) {
+ echo '<tr>';
+ echo '<td>';
+ echo $ZJ[$i]['zaroJegyId'];
+ echo '</td>';
+ echo '<td>'.$ZJ[$i]['diakId'].'</td>';
+ echo '<td>'.$ZJ[$i]['targyId'].'</td>';
+ echo '<td>'.$ZJ[$i]['jegy'].$ZJ['jegyTipus'].'</td>';
+ echo '<td>'.$ZJ[$i]['evfolyam'].'</td>';
+ echo '<td>';
+ if ($ADAT['evfolyamJel']!=$ZJ[$i]['evfolyamJel']) {
+ echo '"'.$ZJ[$i]['evfolyamJel'].'"';
+ echo '<span class="icon-adjust" style="color:red"></span>';
+ echo $ADAT['evfolyamJel'];
+ echo '<input type="checkbox" name="zaroJegyId[]" value="'.$ZJ[$i]['zaroJegyId'].'" checked="checked" />';
+ } else {
+ echo $ZJ[$i]['evfolyamJel'];
+ echo '<span class="icon-ok-sign" style="color:green"></span>';
+ }
+ echo '</td>';
+ echo '<td>'.$ZJ[$i]['felev'].'</td>';
+ echo '<td>'.$ZJ[$i]['modositasDt'].'</td>';
+ echo '<td>'.$ZJ[$i]['hivatalosDt'].'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ echo '<h3>A gombnyomás a fenti táblázat zárójegyeinél megváltoztatja az évfolyamJelet!';
+ echo '<input type="submit" value="MEHET?" title="Biztos?" ></h3>';
+ formEnd();
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/share/email.phtml b/mayor-orig/www/skin/classic/module-naplo/html/share/email.phtml
new file mode 100644
index 00000000..f4a91402
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/share/email.phtml
@@ -0,0 +1,42 @@
+<?php
+
+ function emailHead($includeCSS=array()) {
+
+ $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--[if IE]><html xmlns="http://www.w3.org/1999/xhtml" class="ie"><![endif]--><!--[if !IE]><!--><html style="margin: 0;padding: 0;" xmlns="http://www.w3.org/1999/xhtml"><!--<![endif]-->
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title></title>';
+
+ // BASE CSS
+ $html .= '<style type="text/css">
+body { margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; }
+table { border-collapse: collapse; table-layout: fixed;}
+* { line-height: inherit;}
+ </style>';
+
+ // BEEPULO CSS-EK INLINE
+ if (is_array($includeCSS) && count($includeCSS)>0) {
+ for ($i=0; $i<count($includeCSS); $i++) {
+ $html .= '<style type="text/css">';
+ $html .= file_get_contents($includeCSS[$i]);
+ $html .= '</style>';
+ }
+ }
+
+ $html .= '</head><body>';
+
+ // DEFAULT EMAIL FEJLEC
+ $html .= '<div class="emailFejlec">MaYoR Hírnök</div>';
+
+ return $html;
+ }
+
+ function emailFoot() {
+
+ $html = '<div style="text-align:center; padding:30px; font-size:x-small; color: #888;">MaYoR elektronikus napló (GPL)</div>
+ </body></html>';
+ return $html;
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/share/face.phtml b/mayor-orig/www/skin/classic/module-naplo/html/share/face.phtml
new file mode 100644
index 00000000..209652db
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/share/face.phtml
@@ -0,0 +1,71 @@
+<?php
+ function putFace($Id,$tipus,$height='50',$return=true) {
+
+ $ICON = array(
+ '' =>'<span class="icon-star-empty"></span>',
+ 'diak' => '<span class="icon-child"></span>',
+ 'szulo' => '<span class="icon-adult"></span>',
+ 'tanar' => '<span class="icon-adult"></span>',
+ 'munkakozosseg' => '<span class="icon-slideshare"></span>',
+ 'tankor' => '<span class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span class="icon-group-alt"></span>',
+ 'osztaly' => '<span class="icon-group"></span>',
+ 'osztalySzulo' => '<span class="icon-adult"></span>',
+ 'osztalyTanar' => '<span class="icon-slideshare"></span>',
+ );
+
+ if ($height<=0) {
+ $height = '50';
+ $c = "size_n";
+ } else {
+ $c = "size_s";
+ }
+ $subdir='';
+ $extraHtmlAttrs = '';
+ $extraClass = '';
+ if (in_array($tipus,array('diak','diák'))) {
+ $subdir=__TANEV;
+ $extraClass='diakNev';
+ $extraHtmlAttrs = 'data-diakid="'.$Id.'"';
+ } elseif (in_array($tipus,array('tanar','tanár'))) {
+ $subdir=ekezettelen($tipus);
+ $extraClass='tanarNev';
+ $extraHtmlAttrs = 'data-tanarid="'.$Id.'"';
+ } elseif ($tipus=='tankor') {
+ $extraClass = 'tankorAdat';
+ $extraHtmlAttrs = 'data-tankorid="'.$Id.'"';
+ } elseif (in_array($tipus,array('osztaly','osztalySzulo','osztalyTanar'))) {
+ $extraClass = 'osztalyAdat';
+ $extraHtmlAttrs = 'data-osztalyid="'.$Id.'"';
+ } else {
+
+ }
+
+ $extraClass .= ' '.__SHOW_FACES_TYPE.' ';
+
+ if ($subdir!='') {
+ foreach (array('jpg') as $ext) {
+ $img = $Id.'.'.$ext;
+ if (@file_exists(_DOWNLOADDIR.'/'._POLICY.'/naplo/face/'.$subdir.'/'.$img)) {
+ $file = 'index.php?policy='._POLICY.'&sessionID='._SESSIONID.'&page=session&f=download&download='.sha1($Id).'&dir=naplo/face/'.$subdir.'&file='.$img;
+ $s = '<div class="arckep--container '.$tipus.' '.$extraClass.'" '.$extraHtmlAttrs.' style="width: '.$height.'px;height: '.$height.'px;"><img src="'.$file.'" alt="'.$Id.'" '.$extraHtmlAttrs.' /></div>';
+ if ($return===true) {
+ echo $s;
+ return;
+ } else {
+ return $s;
+ }
+ }
+ }
+ }
+ // nincs kép
+ if (__SHOW_FACES_TYPE!='classic') {
+ $s = '<div class="arckepContainer '.$tipus.' '.$c.' '.$extraClass.'" '.$extraHtmlAttrs.'>';
+ //$s .= $Id;
+ $s .= $ICON[$tipus];
+ $s .= '</div>';
+ }
+ if ($return===true) echo $s; else return $s;
+
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/share/file.phtml b/mayor-orig/www/skin/classic/module-naplo/html/share/file.phtml
new file mode 100644
index 00000000..1bb2f616
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/share/file.phtml
@@ -0,0 +1,92 @@
+<?php
+
+ function putFileSelectForm($dbtable, $post = array()) {
+
+ formBegin(array('class'=>'updateTable'));
+ // A form címe
+ if (defined('_FILESELECTTITLE')) echo '<h1>'._FILESELECTTITLE.'</h1>';
+ // A továbbadandó POST adatok
+ for ($i = 0; $i < count($post); $i++) {
+ /* Ez itt nem ellenőrzött! --TODO */
+ echo '<input type="hidden" name="'.$post[$i].'" value="'.$_POST[$post[$i]].'" />'."\n";
+ }
+ echo '<input type="hidden" name="dbtable" value="'.$dbtable.'">'."\n";
+ echo '<input type="checkbox" name="skipOnDup" value="true" /> Meglevő rekord találatkor kihagyjuk a rekord frissítést';
+ echo '<label for="file">'._FILENEV.':</label>'."\n";
+ echo '<input type="text" id="file" name="fileName" />'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putFieldSelectForm($fileName, $T, $attrs, $dbtable, $post = array()) {
+
+ formBegin(array('class'=>'updateTable'));
+ $_CHK = (_SKIP_ON_DUP === true) ? ' checked="checked" ': '';
+ echo '<input type="checkbox" id="skipOnDup" name="skipOnDup" value="true" '.$_CHK.' /><label for="skipOnDup">Meglevő rekord találatkor kihagyjuk a rekord frissítést</label>';
+
+ // A formhoz definiált magyarázó szöveg
+ if (defined('_FIELDSELECTMESSAGE')) {
+ echo '<p>'._FIELDSELECTMESSAGE.'</p>';
+ }
+ // A továbbadandó POST adatok
+ for ($i = 0; $i < count($post); $i++) {
+ echo '<input type="hidden" name="'.$post[$i].'" value="'.$_POST[$post[$i]].'" />'."\n";
+ }
+
+ // A rovatfej vizsgálata
+ $rovatfej = ''; $RovatfejAttrs = array();
+ for($j=0; $j<count($T[0]); $j++) {
+ if (isset($attrs[$T[0][$j]])) {
+ $RovatfejAttrs[$j] = $T[0][$j];
+ $rovatfej = ' checked="checked"';
+ } elseif (($a = array_search($T[0][$j],$attrs)) !== false) {
+ $RovatfejAttrs[$j] = $a;
+ $rovatfej = ' checked="checked"';
+ } else {
+ $RovatfejAttrs[$j] = '';
+ }
+ }
+ echo '<input type="hidden" name="fileName" value="'.$fileName.'" />';
+ echo '<input type="hidden" name="dbtable" value="'.$dbtable.'" />';
+
+ echo '<input type="checkbox" name="rovatfej" value="true" id="rovatfej"'.$rovatfej.' />';
+ echo '<label for="rovatfej">'._VAN_ROVATFEJ.'</label>'."\n";
+ echo '<input type="submit" value="'._OK.'" />';
+
+ echo '<table class="importData">';
+ echo '<tr>';
+ for($j=0; $j<count($T[0]); $j++) {
+ echo '<th>';
+
+ echo 'kulcs mező? <input type="checkbox" name="KULCS_MEZOK[]" value="'.$j.'" /><br />'."\n";
+
+ echo '<select name="MEZO_LISTA[]">'."\n";
+ reset ($attrs);
+ $SEL = array($RovatfejAttrs[$j] => ' selected="selected" ');
+ echo '<option value="">-</option>'."\n";
+ while(list($a,$txt) = each($attrs)) {
+ echo '<option value="'.$a.'"'.$SEL[$a].'>'.$txt.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '</th>';
+ }
+ echo '</tr>';
+ // Az első x sor kiírása:
+ for($i=0; $i<count($T); $i++) {
+ echo '<tr>';
+ for($j=0; $j<count($T[$i]); $j++) {
+ echo '<td>';
+ echo $T[$i][$j];
+ echo '</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/share/hianyzas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/share/hianyzas.phtml
new file mode 100644
index 00000000..eefa53d2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/share/hianyzas.phtml
@@ -0,0 +1,71 @@
+<?php
+
+ function _putHianyzasKistabla($napiHianyzasok, $oraAdat, $SET = array('allowed' => false, 'href' => '', 'napiMinOra' => null, 'napiMaxOra' => null)) {
+
+ if (is_null($SET['napiMinOra'])) return false;
+ // a meghívó függvénynek kell gondoskodnia az ALLOWED beállításról. Mi már csak ezt használjuk global egy napra!
+ if (isset($SET['allowed']) && $SET['allowed'] && $SET['href']!='') {
+ $OK = true;
+ $href = $SET['href'];
+ } else $OK = false;
+
+ echo '<table class="hianyzasNaptar" cellspacing="0" cellpadding="1" align="center"><tr>';
+ $_SOR = '';
+ for ($__ora = $SET['napiMinOra'];$__ora <= $SET['napiMaxOra']; $__ora++) {
+ $__D = $napiHianyzasok[$oraAdat['dt']][$__ora];
+ $__classES = array();
+ $__kiir='';
+ $__hrefClass = '';
+ $igazolhatoHianyzasId='';
+ if (count($__D)>0) {
+ $__tipus='';
+ /* A több óra támogatást támogatását módosítani kellene... */
+ for ( $i=0; $i<count($__D); $i++) {
+ $__perc = $__D[$i]['perc'];
+ $__statusz = $__D[$i]['statusz'];
+ $__tipus = $__D[$i]['tipus'];
+ $__hid = $__D[$i]['hianyzasId'];
+ $__oraId = $__D[$i]['oraId'];
+ $__rogzitoTanarId = $__D[$i]['rogzitoTanarId'];
+ $__kiir2beg=$__kiir2end='';
+ if ($__statusz != '') {
+ $__classES[] = str_replace(' ','_',ekezettelen($__tipus));
+ if ($__tipus=='felmentés') $__kiir.='f';
+ elseif( $__tipus=='felszerelés hiány') $__kiir.='F';
+ elseif( $__tipus=='egyenruha hiány') $__kiir.='e';
+ else {
+ if(is_numeric($__perc) && $__perc>0) {
+ $__kiir2beg = '<span title="'.$__perc.'\'">';
+ $__kiir2end = '</span>';
+ }
+ }
+ } else {
+ $__kiir .= '&nbsp;';
+ }
+ if ($__hrefClass=='' && !in_array($__tipus,array('felmentés','felszerelés hiány','egyenruha hiány'))) {
+ $__hrefClass=$__statusz;
+ $igazolhatoHianyzasId = $__hid;
+ }
+ }
+ if ($__rogzitoTanarId == __USERTANARID) $__kiir .= '×';
+ if ($__kiir=='') $__kiir = '-';
+ } else {
+ $__statusz=$__tipus=$__hid=$__oraId='';
+ $__kiir = '&nbsp;';
+ }
+ $__class = ' class="hianyzasNaptar '.implode(' ',$__classES).'"';
+
+ echo '<th class="hianyzasNaptar" style="color: white;">';
+ if ($OK === true) {
+ $_href = href($href.'&hianyzasId='.$igazolhatoHianyzasId.'&dt='.$oraAdat['dt'].'&ora='.$__ora);
+ echo '<a href="'.$_href.'" class="'.$__hrefClass.'">'.$__ora.'</a>';
+ } else
+ echo '<span class="'.$__hrefClass.'">'.$__ora.'</span>';
+ echo '</th>';
+ $_SOR .= '<td'.$__class.'>'.$__kiir2beg.$__kiir.$__kiir2end.'</td>';
+ }
+ echo '</tr><tr>'.$_SOR;
+ echo '</tr></table>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/share/jegy.phtml b/mayor-orig/www/skin/classic/module-naplo/html/share/jegy.phtml
new file mode 100644
index 00000000..955683dc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/share/jegy.phtml
@@ -0,0 +1,92 @@
+<?php
+
+ function putJegySelect($ADAT,$responseFormat='echo') { // responseFormat = echo|return
+ /*
+ _jegySelectTipus = zaroJegy || ...
+ _jegySelectTipus = jegy (nincs tesztelve)
+ */
+ global $KOVETELMENY;
+ extract($ADAT,EXTR_PREFIX_ALL,'');
+ if ($_tabindex != '') $tabindex_str = 'tabindex="'.$_tabindex.'" '; else $tabindex_str = '';
+ // mire vonatkozik a select
+ if ($_jegySelectTipus == 'zaroJegy') {
+ $idTipus = 'zaroJegyId'; // intezmeny
+ $megjelenes = 'hivatalos';
+ }else{
+ $idTipus = 'jegyId'; // tanev
+ $megjelenes = 'rovid';
+ }
+ // prepare variables
+ $PRE = array($idTipus,'diakId','targyId','evfolyam','evfolyamJel','tanev','szemeszter');
+ for ($i=0; $i<count($PRE); $i++) {
+ $_x = '_'.$PRE[$i];
+ $VARS[] = $PRE[$i].'='.$$_x;
+ }
+ // HTML
+ $_title = ($ADAT['evfolyamJel']!='') ? $ADAT['evfolyamJel'].'. évfolyamon' : '';
+ $_title .= ($ADAT['hivatalosDt']!='') ? ' hivatalosan:'.$ADAT['hivatalosDt'] : '';
+ $_title .= ($ADAT['modositasDt']!='') ? ' módosítva:'.$ADAT['modositasDt'] : '';
+ $_title .= ($ADAT['info']!='') ? ' '.$ADAT['info'] : '';
+ //$readonly = ' readonly="readonly" disabled="disabled" ';
+ $readonly='';
+ if ($_jegyTipus != '' && count($_zaroJegyTipusok)==0) {
+ $content .= '<select name="'.$_variable.'[]" '.$tabindex_str.' title="'.$_title.'" '.$readonly.' class="'.$_class.'" style="'.$_style.'">';
+ $content .= '<option value="'.implode('|',$VARS).'|delete=true">-</option>';
+ for ($o = 0; $o < count($KOVETELMENY[$_jegyTipus]['értékek']); $o++) {
+ $_osztalyzat = $KOVETELMENY[$_jegyTipus]['értékek'][$o];
+ $_SEL = ($_megjegyzes=='' && $_osztalyzat == $_jegy) ? 'selected="selected"':'';
+ $_megj = null;
+ $content .= '<option value="'.implode('|',$VARS)."|jegy=$_osztalyzat|jegyTipus=$_jegyTipus|megjegyzes=$_megj".'" '.$_SEL.'>';
+ $content .= $KOVETELMENY[$_jegyTipus][$_osztalyzat][$megjelenes];
+ $content .= '</option>';
+ // + megjegyzés szerinti jegyek
+ if ($KOVETELMENY[$_jegyTipus][$_osztalyzat]['megjegyzes']!='') {
+ $_megj = $KOVETELMENY[$_jegyTipus][$_osztalyzat]['megjegyzes'];
+ $_SEL = (($_megjegyzes==$_megj) && ($_osztalyzat == $_jegy)) ? 'selected="selected"':'';
+ $content .= '<option value="'.implode('|',$VARS)."|jegy=$_osztalyzat|jegyTipus=$_jegyTipus|megjegyzes=$_megj".' data-jegy="'.$_osztalyzat.'" '.$_SEL.' >';
+ $content .= $KOVETELMENY[$_jegyTipus][$_osztalyzat][$megjelenes];
+ $content .= ' '.$_megj;
+ $content .= '</option>';
+ }
+ }
+ $content .= '</select>';
+ } elseif (count($_zaroJegyTipusok)>=1) { // ha engedélyezett (van megadott érvényes jegyTipus)
+ $content .= '<select name="'.$_variable.'[]" '.$tabindex_str.' class="jegyAdat" title="'.$_title.'" '.$readonly.' class="'.$_class.'" style="'.$_style.'">';
+ $content .= '<option value="'.implode('|',$VARS).'|delete=true">-</option>';
+ foreach ($_zaroJegyTipusok as $_junk => $__jegyTipus) {
+ $content .= '<optgroup label="'.$__jegyTipus.'">';
+ if (is_array($KOVETELMENY[$__jegyTipus]['értékek']))
+ foreach ($KOVETELMENY[$__jegyTipus]['értékek'] as $idx => $_osztalyzat) {
+ $_SEL = (($_megjegyzes=='') && ($_osztalyzat == $_jegy) && ($_jegyTipus == $__jegyTipus)) ? 'selected="selected"':'';
+ $content .= '<option '.$_SEL.' value="zaroJegyId='.$_zaroJegyId.'|diakId='.$_diakId.'|targyId='.$_targyId.'|evfolyam='.$_evfolyam.'|evfolyamJel='.$_evfolyamJel.'|tanev='.$_tanev.'|szemeszter='.$_szemeszter.'|jegy='.$_osztalyzat.'|jegyTipus='.$__jegyTipus.'|megjegyzes=" data-jegy="'.$_osztalyzat.'" >'.$KOVETELMENY[$__jegyTipus][$_osztalyzat]['hivatalos'].'</option>';
+ // + megjegyzés szerinti jegyek
+ if ($KOVETELMENY[$__jegyTipus][$_osztalyzat]['megjegyzes']!='') {
+ $_megj = $KOVETELMENY[$__jegyTipus][$_osztalyzat]['megjegyzes'];
+ $_SEL = (($_megjegyzes==$_megj) && ($_osztalyzat == $_jegy) && ($_jegyTipus == $__jegyTipus)) ? 'selected="selected"':'';
+ $content .= '<option '.$_SEL.' value="zaroJegyId='.$_zaroJegyId.'|diakId='.$_diakId.'|targyId='.$_targyId.'|evfolyam='.$_evfolyam.'|evfolyamJel='.$_evfolyamJel.'|tanev='.$_tanev.'|szemeszter='.$_szemeszter.'|jegy='.$_osztalyzat.'|jegyTipus='.$__jegyTipus.'|megjegyzes='.$_megj.'">';
+ $content .= $KOVETELMENY[$__jegyTipus][$_osztalyzat]['hivatalos'];
+ $content .= ' '.$_megj;
+ $content .= '</option>';
+ }
+
+ }
+ $content .= '</optgroup>';
+ }
+ //hack, nem szép: $content .= '<optgroup label="info"><option disabled="disabled">'.$_title.'</option></optgroup>';
+ $content .= '</select>';
+ if ($ADAT['jegyTipus']=='szöveges szempontrendszer') {
+ $content .= '<a href="'.
+ href(
+ 'index.php?page=naplo&sub=osztalyozo&f=szovegesErtekeles&diakId='.$_diakId
+ .'&tanev='.$_tanev.'&szemeszter='.$_szemeszter.'&evfolyam='.$_evfolyam.'&evfolyamJel='.$_evfolyamJel.'&tankorId='.$_tankorId
+ )
+ .'" class="onClickUpdateWindow szoveges" title="'._SZOVEGES_MINOSITES.'">☰</a>';
+ }
+ } else { // ha nincs megadva jegyTipus, sajnos nem írható be jegy
+ $content .= 'A tárgyhoz nincs rögzítve a jegyTipus!';
+ }
+ if ($responseFormat=='return') return $content;
+ else echo $content;
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/share/orarend.phtml b/mayor-orig/www/skin/classic/module-naplo/html/share/orarend.phtml
new file mode 100644
index 00000000..522b5a51
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/share/orarend.phtml
@@ -0,0 +1,48 @@
+<?php
+ /*
+ $ADAT['meta'] = ['dbNap']
+ $ADAT['oszlopFej'][$index]
+ $ADAT['oszlopLab'][$index]
+ $ADAT['sorFej']
+ $ADAT['tabla']
+ */
+
+ function putOrarendTablazat($ADAT) {
+
+ echo '<table border="0" align="center" class="orarend">';
+ /* Header */
+ echo '<thead>';
+ echo '<tr>';
+ for ($nap=0; $nap<=$ADAT['meta']['dbNap']; $nap++) {
+ echo '<th>';
+ if (function_exists('_putOrarendHead')) _putOrarendHead($ADAT['oszlopFej'][$nap]);
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+ /* Footer */
+ echo '<tfoot>';
+ echo '<tr>';
+ for ($nap=0; $nap<=$ADAT['meta']['dbNap']; $nap++) {
+ echo '<th>';
+ if (function_exists('_putOrarendFoot')) _putOrarendHead($ADAT['oszlopLab'][$nap]);
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</tfoot>'."\n";
+
+ /* Table body */
+ for ($ora = 0; $ora<16; $ora++) {
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['meta']['dbNap']; $nap++) {
+ echo '<td>';
+ if ($ADAT[$ora][$nap]['modosithato'] === true && function_exists('_egyOraMod')) _egyOraMod();
+ echo '</td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>';
+
+ }
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml b/mayor-orig/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml
new file mode 100644
index 00000000..3e0957f6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/sni/diakAllapot.phtml
@@ -0,0 +1,165 @@
+<?php
+
+ function putDiakAllapot($ADAT) {
+
+ if (__MENTOR || __NAPLOADMIN || __VEZETOSEG) echo '<div class="sni mentor">'."\n";
+ else echo '<div class="sni">'."\n";
+
+ formBegin(array('method'=>'post','action'=>'','class'=>'sni'));
+
+ echo '<input type="hidden" name="action" value="sniDiakAdatRogzites" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+
+ echo '<label for="kulsoInfo">'._KULSOINFO.'</label><br />'."\n";
+ echo '<textarea title="'._KULSOINFO.'" cols="100" rows="10" id="kulsoInfo" name="kulsoInfo">'."\n";
+ echo $ADAT['sniDiakAdat']['kulsoInfo'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="mentor">'._MENTOR.'</label>'."\n";
+ $SEL = array($ADAT['sniDiakAdat']['mentorTanarId'] => ' selected="selected" ');
+ echo '<select id="mentor" name="mentorTanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['tanarIds']))
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'"'.$SEL[$ADAT['tanarok'][$i]['tanarId']].'>'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ }
+ echo '</select>';
+
+ echo '<fieldset><legend>'._DIAGNOZIS.'</legend>'."\n";
+ echo '<table><tr><td>'."\n";
+ for ($i = 0; $i < count($ADAT['fogyatekossag']); $i++) {
+ $value = $ADAT['fogyatekossag'][$i];
+ if (strpos($ADAT['diakAdat'][$ADAT['diakId']]['fogyatekossag'], $value) !== false) $CHK = 'checked="checked" '; else $CHK = '';
+ echo '<input type="checkbox" name="fogyatekossag[]" id="fogyatekossag" value="'.$value.'" '.$CHK.'/> '.$value.'<br />';
+ if ($i == 5 || $i == 12 ) echo '</td><td>'."\n";
+ }
+ echo '</td></tr></table>'."\n";
+ echo '</fieldset>'."\n";
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ echo '<p style="text-align: center"><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+
+ // Két állapot űrlapot rakunk ki - kezdő és vég állapot - itt 1. és 2. szemeszter
+ for ($szemeszter = 1; $szemeszter < 3; $szemeszter++) {
+
+ formBegin(array('method'=>'post','action'=>'','class'=>'sni hideShowContainer'));
+
+ echo '<h2 class="onClickHideShow">'.constant('_SZEMESZTER'.$szemeszter).'</h2>';
+ echo '<div class="openable" style="display:none;">';
+
+ echo '<input type="hidden" name="action" value="allapotRogzites" />'."\n";
+ echo '<input type="hidden" name="szemeszter" value="'.$szemeszter.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+
+ foreach ($ADAT['fields'] as $attr => $values) {
+ if (in_array($attr, array('matematika','szovegertes'))) $class='utolso'; else $class='';
+ echo '<fieldset class="'.$class.'">';
+ echo '<legend>'.constant('_'.nagybetus($attr)).'</legend>'."\n";
+ for ($i = 0; $i < count($values); $i++) {
+ if (in_array($attr, array('olvasasHibak','irasHibak','matematika'))) {
+ if (strpos($ADAT['diakAllapot'][$szemeszter][$attr], $values[$i]) !== false) $CHK = 'checked="checked" '; else $CHK = '';
+ echo '<input type="checkbox" name="'.$attr.'[]" id="'.$attr.$szemeszter.$i.'" value="'.$values[$i].'" '.$CHK.'/>';
+ } else {
+ if ($ADAT['diakAllapot'][$szemeszter][$attr] == $values[$i]) $CHK = 'checked="checked" '; else $CHK = '';
+ echo '<input type="radio" name="'.$attr.'" id="'.$attr.$szemeszter.$i.'" value="'.$values[$i].'" '.$CHK.'/>';
+ }
+ echo ' <label for="'.$attr.$szemeszter.$i.'">'.constant('_'.nagybetus($attr).'_'.nagybetus(ekezettelen(str_replace(' ','_',str_replace(',','',str_replace('/','_',$values[$i]))))))."</label><br />\n";
+ }
+ echo '</fieldset>'."\n";
+ }
+
+ echo '<label for="szemelyes'.$szemeszter.'">'._SZEMELYES_KOMPETENCIAK.'</label>'."\n";
+ echo '<textarea title="'._SZEMELYES_KOMPETENCIAK.'" cols="90" rows="7" id="szemelyes'.$szemeszter.'" name="szemelyesKompetenciak">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['szemelyesKompetenciak'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="tarsas'.$szemeszter.'">'._TARSAS_KOMPETENCIAK.'</label>'."\n";
+ echo '<textarea title="'._TARSAS_KOMPETENCIAK.'" cols="90" rows="7" id="tarsas'.$szemeszter.'" name="tarsasKompetenciak">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['tarsasKompetenciak'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="kognitiv'.$szemeszter.'">'._KOGNITIV_KEPESSEGEK.'</label>'."\n";
+ echo '<textarea title="'._KOGNITIV_KEPESSEGEK.'" cols="90" rows="7" id="kognitiv'.$szemeszter.'" name="kognitivKepessegek">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['kognitivKepessegek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="eljaras'.$szemeszter.'">'._ELJARAS_MEROESZKOZ.'</label><br />'."\n";
+ echo '<input title="'._ELJARAS_MEROESZKOZ.'" type="text" maxlength="100" size="60" id="eljaras'.$szemeszter.'" name="eljarasEszkozok" value="'.$ADAT['diakAllapot'][$szemeszter]['eljarasEszkozok'].'" /><br />'."\n";
+
+ echo '<label for="vizsgaltTerulet'.$szemeszter.'">'._VIZSGALT_TERULET.'</label><br />'."\n";
+ echo '<input title="'._VIZSGALT_TERULET.'" type="text" maxlength="100" size="60" id="vizsgaltTerulet'.$szemeszter.'" name="vizsgaltTerulet" value="'.$ADAT['diakAllapot'][$szemeszter]['vizsgaltTerulet'].'" /><br />'."\n";
+
+ echo '<label for="gyengesegek'.$szemeszter.'">'._FEJLESZTENDO_TERULET_KOMPETENCIA.'</label><br />'."\n";
+ echo '<ul>';
+ $ADAT['diakAllapot'][$szemeszter]['gyengeség'][] = array('leiras' => '', 'prioritas' => 0);
+ foreach ($ADAT['diakAllapot'][$szemeszter]['gyengeség'] as $key => $gyAdat) {
+ echo '<li>';
+ echo '<input title="'._FEJLESZTENDO_TERULET_KOMPETENCIA.'" type="text" maxlength="150" size="60" id="gyengeseg'.$szemeszter.$key.'" name="gyengesegLeiras[]" value="'.$gyAdat['leiras'].'" />'."\n";
+
+ $SEL = array($gyAdat['prioritas'] => ' selected="selected" ');
+ echo '<select id="gyengesegPrioritas'.$szemeszter.$key.'" name="gyengesegPrioritas[]">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < 100; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+//--------
+
+ echo '<label for="erossegek'.$szemeszter.'">'._EROSSEGEK.'</label><br />'."\n";
+ echo '<ul>';
+ $ADAT['diakAllapot'][$szemeszter]['erősség'][] = array('leiras' => '', 'prioritas' => 0);
+ foreach ($ADAT['diakAllapot'][$szemeszter]['erősség'] as $key => $eAdat) {
+ echo '<li>';
+ echo '<input title="'._EROSSEGEK.'" type="text" maxlength="150" size="60" id="erosseg'.$szemeszter.$key.'" name="erossegLeiras[]" value="'.$eAdat['leiras'].'" />'."\n";
+
+ $SEL = array($eAdat['prioritas'] => ' selected="selected" ');
+ echo '<select id="erossegPrioritas'.$szemeszter.$key.'" name="erossegPrioritas[]">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < 100; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+//--------
+
+
+ echo '<label for="problemaMegfogalmazasa'.$szemeszter.'">'._PROBLEMA_MEGFOGALMAZASA.'</label>'."\n";
+ echo '<textarea title="'._PROBLEMA_MEGFOGALMAZASA.'" cols="90" rows="2" id="problemaMegfogalmazasa'.$szemeszter.'" name="problemaMegfogalmazasa">'."\n";
+ echo $ADAT['diakAllapot'][$szemeszter]['problemaMegfogalmazasa'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="vizsgalatDt'.$szemeszter.'">'._VIZSGALAT_DATUMA.'</label>'."\n";
+ echo '<input type="text" maxlength="10" size="10" class="date" id="vizsgalatDt'.$szemeszter.'" name="vizsgalatDt" value="'.$ADAT['diakAllapot'][$szemeszter]['vizsgalatDt'].'" />'."\n";
+
+ echo '<br /><label for="vizsgalo'.$szemeszter.'">'._VIZSGALATOT_VEGZO.'</label>'."\n";
+ $SEL = array($ADAT['diakAllapot'][$szemeszter]['vizsgalatTanarId'] => ' selected="selected" ');
+ echo '<select id="vizsgalo'.$szemeszter.'" name="vizsgalatTanarId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['tanarIds']))
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'"'.$SEL[$ADAT['tanarok'][$i]['tanarId']].'>'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ echo '<p style="text-align: center"><input type="submit" value="'._OK.'" /></p>'."\n";
+
+ echo '</div>';
+
+ formEnd();
+
+ }
+
+ echo '</div>';
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml b/mayor-orig/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml
new file mode 100644
index 00000000..9c7a149d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/sni/fejlesztesiTerv.phtml
@@ -0,0 +1,94 @@
+<?php
+
+ function putHaviOsszesites($ADAT) {
+
+ global $Honapok;
+
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR) echo '<div class="sni mentor">'."\n";
+ else echo '<div class="sni">'."\n";
+
+ echo '<h1>';
+ echo $Honapok[(date('m',strtotime($ADAT['dt']))-1)];
+ echo '</h1>';
+
+ formBegin(array('method'=>'post','action'=>''));
+
+ echo '<input type="hidden" name="action" value="haviOsszegzesRogzitese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<table><tr><td>'."\n";
+
+ echo '<label for="gyengesegek">'._GYENGESEGEK.'</label><br />'."\n";
+ echo '<textarea tabindex="10" title="'._GYENGESEGEK.'" cols="40" rows="3" id="gyengesegek" name="gyengesegek">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['gyengesegek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="celok">'._CELOK.'</label><br />'."\n";
+ echo '<textarea tabindex="12" title="'._CELOK.'" cols="40" rows="2" id="celok" name="celok">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['celok'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="eszkozok">'._ESZKOZOK.'</label><br />'."\n";
+ echo '<textarea tabindex="14" title="'._ESZKOZOK.'" cols="40" rows="2" id="eszkozok" name="eszkozokModszerek">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['eszkozokModszerek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="ertekeles">'._ERTEKELES.'</label><br />'."\n";
+ echo '<textarea tabindex="16" title="'._ERTEKELES.'" cols="40" rows="2" id="ertekeles" name="ertekeles">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['ertekeles'];
+ echo '</textarea><br />'."\n";
+
+ echo '</td><td>'."\n";
+
+ echo '<label for="erossegek">'._EROSSEGEK.'</label><br />'."\n";
+ echo '<textarea tabindex="11" title="'._EROSSEGEK.'" cols="40" rows="3" id="erossegek" name="erossegek">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['erossegek'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="feladatok">'._FELADATOK.'</label><br />'."\n";
+ echo '<textarea tabindex="13" title="'._FELADATOK.'" cols="40" rows="2" id="feladatok" name="fejlesztesiFeladatok">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['fejlesztesiFeladatok'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="utemezes">'._UTEMEZES.'</label><br />'."\n";
+ echo '<textarea tabindex="15" title="'._UTEMEZES.'" cols="40" rows="2" id="utemezes" name="utemezes">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['utemezes'];
+ echo '</textarea><br />'."\n";
+
+ echo '<label for="eredmeny">'._EREDMENY.'</label><br />'."\n";
+ echo '<textarea tabindex="17" title="'._EREDMENY.'" cols="40" rows="2" id="eredmeny" name="eredmeny">'."\n";
+ echo $ADAT['sniHaviOsszegzes']['eredmeny'];
+ echo '</textarea><br />'."\n";
+
+ echo '</td></tr></table>'."\n";
+
+ echo '<label for="felelos">'._FELELOS.'</label><br />'."\n";
+ echo '<select tabindex="18" id="felelos" name="felelos[]" multiple="multiple" class="multi" size="10">'."\n";
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++)
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['tanarIds'])) {
+ if (in_array($ADAT['tanarok'][$i]['tanarId'], $ADAT['sniHaviOsszegzes']['felelos']))
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'" selected="selected">'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ else
+ echo '<option value="'.$ADAT['tanarok'][$i]['tanarId'].'">'.$ADAT['tanarok'][$i]['tanarNev'].' ('.$ADAT['tanarok'][$i]['tanarId'].')</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '<label for="valtozas">'._VALTOZAS.'</label><br />'."\n";
+ $SEL = array($ADAT['sniHaviOsszegzes']['valtozas'] => ' selected="selected" ');
+ echo '<select tabindex="19" id="valtozas" name="valtozas">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 1; $i <= 100; $i++) echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'%</option>'."\n";
+ echo '</select>'."\n";
+
+ if (__NAPLOADMIN || __VEZETOSEG || __MENTOR)
+ echo '<p style="text-align: center"><input tabindex="25" type="submit" value="'._OK.'" /></p>'."\n";
+
+ formEnd();
+ echo '</div>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml b/mayor-orig/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml
new file mode 100644
index 00000000..e160758d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/sni/tantargyiFeljegyzesek.phtml
@@ -0,0 +1,110 @@
+<?php
+
+ function putTankorFeljegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ echo '<ul class="sni">'."\n";
+
+ for ($t = strtotime($ADAT['igDt']); $t >= $ADAT['tolTime']; $t = strtotime("-7 days", $t)) {
+
+ $dt = date('Y-m-d', $t);
+ $dtStr = dateToString($dt);
+ $igDtStr = dateToString(date('Y-m-d', strtotime("+6 days", $t)));
+
+ $mod = (
+ $_TANEV['statusz'] == 'aktív'
+ && (
+ __NAPLOADMIN
+ || (__TANARA && $t >= strtotime(_HALADASI_HATARIDO))
+ )
+ );
+ if ($mod) echo '<li class="mod">'."\n";
+ else echo '<li>'."\n";
+
+ formBegin(array('method'=>'post','action'=>''));
+
+ echo '<input type="hidden" name="action" value="tantargyiFeljegyzesRogzites" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+
+ echo '<input type="hidden" name="feljegyzesTankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="feljegyzesDt" value="'.$dt.'" />'."\n";
+
+ echo '<label for="mj'.$dt.'">'.$dtStr.' - '.$igDtStr.'</label><br />'."\n";
+ if ($mod) {
+ echo '<textarea id="mj'.$dt.'" name="megjegyzes" cols="90" rows="5" title="'.$dt.'">'."\n";
+ echo $ADAT['sniTantargyiFeljegyzes'][$dt];
+ echo '</textarea>'."\n";
+ } else {
+ echo '<p>'.nl2br($ADAT['sniTantargyiFeljegyzes'][$dt]).'</p>';
+ }
+
+ if ($mod) echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+
+ echo '</li>'."\n";
+ }
+ echo '</ul>'."\n";
+
+
+ }
+
+ function putDiakHetiFeljegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ $dtStr = dateToString($ADAT['dt']);
+ $time = strtotime($ADAT['dt']);
+ $igDtStr = dateToString(date('Y-m-d', strtotime("+6 days", $time)));
+
+ echo '<h2 class="sni">'.$dtStr.' - '.$igDtStr.'</h2>'."\n";
+ echo '<ul class="sni">'."\n";
+
+ foreach ($ADAT['tankorIds'] as $tankorId) {
+
+ $mod = (
+ $_TANEV['statusz'] == 'aktív'
+ && (
+ __NAPLOADMIN
+ || ($ADAT['tankorTanaraE'][$tankorId] && $time >= strtotime(_HALADASI_HATARIDO))
+ )
+ );
+
+ if ($mod) echo '<li class="mod">'."\n";
+ else echo '<li>'."\n";
+
+ formBegin(array('method'=>'post','action'=>''));
+
+ echo '<input type="hidden" name="action" value="tantargyiFeljegyzesRogzites" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$ADAT['diakId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'" />'."\n";
+
+ echo '<input type="hidden" name="feljegyzesTankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="feljegyzesDt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<label for="tk'.$tankorId.'">'.$ADAT['tankorAdat'][$tankorId]['tankorNev'].'</label><br />'."\n";
+ if ($mod) {
+ echo '<textarea id="tk'.$tankorId.'" name="megjegyzes" cols="90" rows="5" title="'.$dt.'">'."\n";
+ echo $ADAT['sniTantargyiFeljegyzes'][$tankorId];
+ echo '</textarea>'."\n";
+ } else {
+ echo '<p>'.nl2br($ADAT['sniTantargyiFeljegyzes'][$tankorId]).'</p>';
+ }
+
+ if ($mod) echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+
+ echo '</li>'."\n";
+
+ }
+
+ echo '</ul>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml
new file mode 100644
index 00000000..26c5124c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/stat/lemorzsolodas.phtml
@@ -0,0 +1,59 @@
+<?php
+
+ function putLemorzsolodas($ADAT) {
+
+ //dump($ADAT['lemorzsolodas']);
+
+ echo '<h1>Két egymás követő félév alatt átlagosan >=1,1 romlás</h1>';
+ _putTabla($ADAT['lemorzsolodas']['ronto']);
+
+ echo '<h1>A fél/év végén a tanulmányi átlaga < 3,0</h1>';
+ _putTabla($ADAT['lemorzsolodas']['rosszTanulo']);
+
+ echo '<h1>A fél/év végén a tanulmányi átlaga < 2,5</h1>';
+ _putTabla($ADAT['lemorzsolodas']['nagyonRosszTanulo']);
+
+ echo '<h1>Egy vagy több tárgyból bukik</h1>';
+ _putTabla($ADAT['lemorzsolodas']['bukott']);
+
+ echo '<h1>Magatartása rossz</h1>';
+ _putTabla($ADAT['lemorzsolodas']['rosszMagatartasu']);
+
+ echo '<h1>Szorgalma hanyag</h1>';
+ _putTabla($ADAT['lemorzsolodas']['hanyagSzorgalmu']);
+
+ echo '<h1>50 órát elérő igazolatlan hiányzás</h1>';
+ _putTabla($ADAT['lemorzsolodas']['igazolatlanHianyzo_50']);
+
+ echo '<h1>100 órát elérő igazolt hiányzás</h1>';
+ _putTabla($ADAT['lemorzsolodas']['igazoltanHianyzo_100']);
+
+ echo '<h1>magántanulóvá vált</h1>';
+ _putTabla($ADAT['lemorzsolodas']['magantanuloLett']);
+
+ }
+
+ function _putTabla($ADAT) {
+ // dump($ADAT);
+ echo 'Összesen: '.count($ADAT);
+ if (count($ADAT)==0) return false;
+ echo '<table class="lemorzsolodas" border="1">';
+ echo '<tr>';
+ foreach($ADAT[0] as $k => $d) {
+ echo '<th>'.$k.'</td>';
+ }
+ echo '</tr>';
+ for ($i=0; $i<count($ADAT); $i++) {
+ $D = $ADAT[$i];
+ echo '<tr>';
+ foreach($D as $k => $d) {
+ if ($k=='diakNev') echo '<td class="diakNev" data-diakid="'.$D['diakId'].'">'.$D['diakNev'].'</td>';
+ else echo '<td>'.$d.'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</table>';
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/stat/letszam.phtml b/mayor-orig/www/skin/classic/module-naplo/html/stat/letszam.phtml
new file mode 100644
index 00000000..78ebd262
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/stat/letszam.phtml
@@ -0,0 +1,54 @@
+<?php
+
+ function putLetszamStat( $ADAT = array() )
+ {
+ if (count($ADAT)==0) return ;
+ if (!is_array($ADAT['osztalyok'])) return;
+
+ echo '<table class="letszamStat" align="center">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th rowspan="2">'._SZULEV.'</th>';
+ foreach($ADAT['osztalyok'] as $OSZT) {
+ $osztalyId = $OSZT['osztalyId'];
+ $osztalyJel = $OSZT['osztalyJel'];
+ echo '<th colspan="2">'.$osztalyJel.'</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ foreach($ADAT['osztalyok'] as $OSZT) {
+ echo '<td>Σ</td><td>♀</td>';
+ }
+ echo '</tr>';
+
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="'.(count($ADAT['osztalyok'])*2+1).'">('.$ADAT['tanev'].') '.$ADAT['dt'].'</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ foreach ($ADAT['eletkor'] as $szuletesiEv => $D) {
+ echo '<tr>';
+ echo '<th>'.$szuletesiEv.'</th>';
+
+ foreach($ADAT['osztalyok'] as $OSZT) {
+ $osztalyId = $OSZT['osztalyId'];
+ $osztalyJel = $OSZT['osztalyJel'];
+ if (count($D[$osztalyId]) > 0) {
+ echo '<td>'.(($D[$osztalyId]['fiú'][0]['dbDiak'] + $D[$osztalyId]['lány'][0]['dbDiak'])).'</td>';
+ echo '<td class="l">'.(intval($D[$osztalyId]['lány'][0]['dbDiak'])).'</td>';
+ } else {
+ echo '<td></td><td></td>';
+ }
+ }
+ echo '</tr>'."\n";
+ }
+
+ echo '</tbody>'."\n";
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml
new file mode 100644
index 00000000..bf662e4b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/stat/tantargyFelosztas.phtml
@@ -0,0 +1,414 @@
+<?php
+
+ function putStat($ADAT) {
+
+ echo '<h1>A '.__TANEV.'/'.(__TANEV+1).' tanév tantárgyfelosztási statisztikája</h1>';
+ echo '<table id="tfStat">';
+ // Intézményi alapadatok
+ echo '<tbody id="alap">';
+ echo '<tr><th>Intézmény neve<br/>OM<br />Címe</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td colspan="6">'
+ .$iAdat['intezmenyAdat']['nev'].'<br />'
+ .$iAdat['intezmenyAdat']['OMKod'].'<br />'
+ .$iAdat['intezmenyAdat']['cimHelyseg'].' '.$iAdat['intezmenyAdat']['cimIrsz'].', '.$iAdat['intezmenyAdat']['cimKozteruletNev'].' '.$iAdat['intezmenyAdat']['cimKozteruletJelleg'].' '.$iAdat['intezmenyAdat']['cimHazszam'];
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ // Pedagógus létszám
+ echo '<tbody id="tanarLetszam">';
+ echo '<tr><th class="slide">Pedagógus létszám <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td colspan="2" class="number">'.intval($iAdat['tanarLetszam']['statusz']['határozatlan idejű']+$iAdat['tanarLetszam']['statusz']['határozott idejű']).'</td>';
+ echo '<td class="gap" colspan="4"></td>';
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th colspan="2">Gyakornok<br />Pedagógus I.<br/>Pedagógus II.<br/>Mesterpedagógus</br>Kutatótanár</td>';
+ echo '<td class="number">'.$iAdat['tanarLetszam']['besorolas']['Gyakornok'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Pedagógus I.'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Pedagógus II.'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Mesterpedagógus'].'<br/>'
+ .$iAdat['tanarLetszam']['besorolas']['Kutatótanár']
+ .'</td>';
+ echo '<th colspan="2">Határozatlan idejű<br/>Határozott idejű<br />Tartósan távol</th>';
+ echo '<td class="number">'
+ .intval($iAdat['tanarLetszam']['statusz']['határozatlan idejű']).'<br/>'
+ .intval($iAdat['tanarLetszam']['statusz']['határozott idejű']).'<br/>'
+ .intval($iAdat['tanarLetszam']['statusz']['tartósan távol']).'<br/>'
+ .'</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ // Finanszírozott pedagógus létszám (a költségvetési törvény szerint)
+ echo '<tbody id="tanarLetszam">';
+ echo '<tr><th class="slide" rowspan="2"><span class="icon-chevron-down"></span>Finanszírozott <br/>pedagógus létszám</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th colspan="2">Összesen</th><th colspan="2" rowspan="2">Diák létszám</th><th colspan="2" rowspan="2">Mutató</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ $pLetszam = 0;
+ foreach ($ADAT['finanszírozott pedagógus létszám'] as $osztalyTipus => $mutato)
+ $pLetszam += round(intval($iAdat['diakLetszam'][$osztalyTipus])/$mutato);
+ echo '<td class="number" colspan="2">'.$pLetszam.'</td>';
+ }
+ echo '</tr>';
+ foreach ($ADAT['finanszírozott pedagógus létszám'] as $osztalyTipus => $mutato) {
+ echo '<tr class="hide"><th title="'.$mutato.' tanuló / 1 pedagógus">'.$osztalyTipus.'</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number" colspan="2">'.round(intval($iAdat['diakLetszam'][$osztalyTipus])/$mutato).'</td>';
+ echo '<td class="number" colspan="2">'.$iAdat['diakLetszam'][$osztalyTipus].'</td>';
+ echo '<td class="number" colspan="2">'.$mutato.'</td>';
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+
+ // Diák létszám adatok
+ echo '<tbody id="diakLetszam">';
+ echo '<tr><th class="slide" rowspan="2">Diák létszám <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) echo '<th colspan="2">Összes</th><th colspan="2">Fiú</th><th colspan="2">Lány</th>';
+ echo '</tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ if (
+ intval($iAdat['diakLetszam']['statusz']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['magántanuló'])
+ <> intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['fiú']['magántanuló'])
+ +intval($iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['lány']['magántanuló'])
+ ) $class=' alert';
+ else $class='';
+ echo '<td colspan="2" class="number'.$class.'">'.intval($iAdat['diakLetszam']['statusz']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['magántanuló']).'</td>'
+ .'<td colspan="2" class="number'.$class.'">'.intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['fiú']['magántanuló']).'</td>'
+ .'<td colspan="2" class="number'.$class.'">'.intval($iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['lány']['magántanuló']).'</td>';
+ //echo '<td class="gap"></td>';
+ }
+ echo '<tr class="hide"><th>jogviszonyban van<br />magántanuló<br />vendégtanuló<br />jogviszonya szünetel</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ if (intval($iAdat['diakLetszam']['statusz']['jogviszonyban van']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van']+$iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van']))
+ $jvClass=' class="alert"';
+ if (intval($iAdat['diakLetszam']['statusz']['magántanuló']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['magántanuló']+$iAdat['diakLetszam']['statusz']['lány']['magántanuló']))
+ $mClass=' class="alert"';
+ if (intval($iAdat['diakLetszam']['statusz']['vendégtanuló']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['vendégtanuló']+$iAdat['diakLetszam']['statusz']['lány']['vendégtanuló']))
+ $vClass=' class="alert"';
+ if (intval($iAdat['diakLetszam']['statusz']['jogviszonya felfüggesztve']) <> intval($iAdat['diakLetszam']['statusz']['fiú']['jogviszonya felfüggesztve']+$iAdat['diakLetszam']['statusz']['lány']['jogviszonya felfüggesztve']))
+ $jfClass=' class="alert"';
+ echo '<td colspan="2" class="number">'
+ .'<span'.$jvClass.'>'.$iAdat['diakLetszam']['statusz']['jogviszonyban van'].'</span><br />'
+ .'<span'.$mClass.'>'.$iAdat['diakLetszam']['statusz']['magántanuló'].'</span><br />'
+ .'<span'.$vClass.'>'.$iAdat['diakLetszam']['statusz']['vendégtanuló'].'</span><br />'
+ .'<span'.$jfClass.'>'.$iAdat['diakLetszam']['statusz']['jogviszonya felfüggesztve'].'</span>'.
+ '</td>';
+ echo '<td colspan="2" class="number">'
+ .'<span'.$jvClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['jogviszonyban van'].'</span><br />'
+ .'<span'.$mClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['magántanuló'].'</span><br />'
+ .'<span'.$vClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['vendégtanuló'].'</span><br />'
+ .'<span'.$jfClass.'>'.$iAdat['diakLetszam']['statusz']['fiú']['jogviszonya felfüggesztve'].'</span>'.
+ '</td>';
+ echo '<td colspan="2" class="number">'
+ .'<span'.$jvClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['jogviszonyban van'].'</span><br />'
+ .'<span'.$mClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['magántanuló'].'</span><br />'
+ .'<span'.$vClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['vendégtanuló'].'</span><br />'
+ .'<span'.$jfClass.'>'.$iAdat['diakLetszam']['statusz']['lány']['jogviszonya felfüggesztve'].'</span>'.
+ '</td>';
+ //echo '<td class="gap"></td>';
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Évfolyam létszámok</th>';
+ echo '</tr>';
+ foreach ($ADAT['evfolyamJelek'] as $idx => $evfolyamJel) {
+ $letezoEvfolyam = false;
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ if (is_array($iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel])) {
+ if (!$letezoEvfolyam) {
+ echo '<tr class="hide"><th>'.$evfolyamJel.'</th>';
+ $letezoEvfolyam = true;
+ }
+ if ($letezoEvfolyam) {
+ echo '<td colspan="2" class="number">'.$iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel]['összes'].'</td>';
+ echo '<td colspan="2" class="number">'.$iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel]['fiú'].'</td>';
+ echo '<td colspan="2" class="number">'.$iAdat['diakLetszam']['evfolyamJel'][$evfolyamJel]['lány'].'</td>';
+ //echo '<td class="gap"></td>';
+ }
+ }
+ }
+ if ($letezoEvfolyam) echo '</tr>';
+ }
+ echo '</tbody>';
+
+ // Óraszámok
+ echo '<tbody id="oraszamok">';
+ echo '<tr><th rowspan="2" class="slide">Óraszámok <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>Összes</th><th rowspan="2" colspan="3"></th><th>Óratervi</th><th>Tanórán kívüli</th>';
+ }
+ echo '</tr><tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo ''
+ .'<td class="number">'.number_format($iAdat['oraszamok']['összes'],2,',','').'</td>'
+ .'<td class="number">'.number_format($iAdat['oraszamok']['óratervi'],2,',','').'</td>'
+ .'<td class="number">'.number_format($iAdat['oraszamok']['tanórán kívüli'],1,',','').'</td>'
+ ;
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Tantárgyanként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['targyOraszamok']['összes'][$targyId])) {
+ echo number_format($iAdat['targyOraszamok']['összes'][$targyId],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<th colspan="3">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['targyOraszamok']['összes'][$targyId])) {
+ echo $tAdat['targyNev'].'<br />';
+ }
+ }
+ echo '</th>';
+ foreach (array('óratervi','tanórán kívüli') as $oratervi) {
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['targyOraszamok']['összes'][$targyId])) {
+ echo number_format($iAdat['targyOraszamok'][$oratervi][$targyId],1,',','').'<br />';
+ }}
+ echo '</td>';
+ }
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Osztályonként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyIds'] as $osztalyId) {
+ if (isset($iAdat['osztalyOraszamok']['összes'][$osztalyId])) {
+ echo number_format($iAdat['osztalyOraszamok']['összes'][$osztalyId],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+
+ echo '<th colspan="3">';
+ foreach ($iAdat['osztalyIds'] as $osztalyId) {
+ if (isset($iAdat['osztalyOraszamok']['összes'][$osztalyId])) {
+ echo $iAdat['osztalyAdat'][$osztalyId]['osztalyJel'].'<br />';
+ }
+ }
+ echo '</th>';
+ foreach (array('óratervi','tanórán kívüli') as $oratervi) {
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyIds'] as $osztalyId) {
+ if (isset($iAdat['osztalyOraszamok']['összes'][$osztalyId])) {
+ echo number_format($iAdat['osztalyOraszamok'][$oratervi][$osztalyId],1,',','').'<br />';
+ }}
+ echo '</td>';
+ }
+ }
+ echo '<tr class="hide"><th>Évfolyamonként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($ADAT['evfolyamJelek'] as $evfolyamJel) {
+ if (isset($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel])) {
+ echo number_format($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+
+ echo '<th colspan="3">';
+ foreach ($ADAT['evfolyamJelek'] as $evfolyamJel) {
+ if (isset($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel])) {
+ echo $evfolyamJel.'<br />';
+ }
+ }
+ echo '</th>';
+ foreach (array('óratervi','tanórán kívüli') as $oratervi) {
+ echo '<td class="number">';
+ foreach ($ADAT['evfolyamJelek'] as $evfolyamJel) {
+ if (isset($iAdat['evfolyamOraszamok']['összes'][$evfolyamJel])) {
+ echo number_format($iAdat['evfolyamOraszamok'][$oratervi][$evfolyamJel],1,',','').'<br />';
+ }}
+ echo '</td>';
+ }
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ // időkeret
+ echo '<tbody id="idokeret">';
+ echo '<tr><th class="slide" rowspan="2">Heti időkeret <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>összesen</th>'
+ .'<th>enge-<br/>délye-<br/>zett</th>'
+ .'<th>tehetség-<br/>gondozás, <br/>felzárkóztatás</th>'
+ .'<th>hittan többlet <br/>órakerete <br/>egyházi <br/>intéz-<br/>ményben</th>'
+ .'<th>6 és 8 <br/>évfolyamos <br/>gimnáziumok <br/> többlet <br/>óraszáma</th>'
+ .'<th>nemzetiségi <br/>oktatás-<br/>nevelés <br/>többlet <br/>óraszáma</th>'
+ ;
+ }
+ echo '</tr><tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['összes'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['engedélyezett'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['tehetséggondozás-felzárkóztatás'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['egyházi'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['gimnázium'].'</td>'
+ .'<td class="number">'.$iAdat['osztalyIdokeret']['összesen']['nemzetiségi'].'</td>'
+ ;
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>'
+ .'Általános iskola alsó tagozat<br/>'
+ .'Általános&nbsp;iskola&nbsp;felső&nbsp;tagozat<br/>'
+ .'Általános iskola<br/>'
+ .'Gimnázium 1-8. évfolyam<br/>'
+ .'Gimnázium&nbsp;9-12.&nbsp;évfolyam<br/>'
+ .'Gimnázium</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['összes'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['összes'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['engedélyezett'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['engedélyezett'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['tehetséggondozás-felzárkóztatás'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['egyházi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['egyházi'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['gimnázium'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['gimnázium'].'<br/>'
+ .'</td>'
+ .'<td class="number">'
+ .$iAdat['osztalyIdokeret']['alsó']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['felső']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['általános']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium18']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium92']['nemzetiségi'].'<br/>'
+ .$iAdat['osztalyIdokeret']['gimnázium']['nemzetiségi'].'<br/>'
+ .'</td>'
+ ;
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Osztályonként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $oAdat['osztalyJel'].'<br/>';
+ echo '</th>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['engedélyezett'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['tehetséggondozás-felzárkóztatás'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['egyházi'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['gimnázium'].'<br/>';
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['osztalyAdat'] as $osztalyId => $oAdat) echo $iAdat['osztalyIdokeret'][$osztalyId]['nemzetiségi'].'<br/>';
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ echo '</tbody id="tankorLetszamStat"><tr><th rowspan="2" class="slide">Csoport statisztika <span class="icon-chevron-down"></span></th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<th>Csoportok száma</th><th colspan="2" rowspan="2"></th><th>minimális csoportlétszám</th><th>maximális csoportlétszám</th><th>átlagos csoportlétszám</th>';
+ $osszDb = 0; $osszMax = 0; $osszSum = 0; unset($osszMin);
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ $osszDb += $iAdat['tankorLetszamStat'][$targyId]['db'];
+ $osszSum += $iAdat['tankorLetszamStat'][$targyId]['sum'];
+ if ($osszMax < $iAdat['tankorLetszamStat'][$targyId]['max']) $osszMax = $iAdat['tankorLetszamStat'][$targyId]['max'];
+ if (!isset($osszMin) || $iAdat['tankorLetszamStat'][$targyId]['min']<$osszMin)
+ $osszMin = $iAdat['tankorLetszamStat'][$targyId]['min'];
+ }
+ }
+ $ADAT['intezmeny'][$intezmeny]['tankorLetszamStat']['összes'] =
+ array('db'=>$osszDb, 'min'=>$osszMin, 'max'=>$osszMax, 'átlag'=>number_format($osszSum/$osszDb,1,',',''));
+ }
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">'.$iAdat['tankorLetszamStat']['összes']['db'].'</td>'
+ .'<td class="number">'.$iAdat['tankorLetszamStat']['összes']['min'].'</td>'
+ .'<td class="number">'.$iAdat['tankorLetszamStat']['összes']['max'].'</td>'
+ .'<td class="number">'.$iAdat['tankorLetszamStat']['összes']['átlag'].'</td>';
+ }
+ echo '</tr>';
+ echo '<tr class="hide"><th>Tantárgyanként</th>';
+ foreach ($ADAT['intezmeny'] as $intezmeny => $iAdat) {
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {;
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo $iAdat['tankorLetszamStat'][$targyId]['db'].'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<th colspan="2">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo str_replace(' ','&nbsp;', $tAdat['targyNev']).'<br />';
+ }
+ }
+ echo '</th>';
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo $iAdat['tankorLetszamStat'][$targyId]['min'].'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo $iAdat['tankorLetszamStat'][$targyId]['max'].'<br />';
+ }
+ }
+ echo '</td>';
+ echo '<td class="number">';
+ foreach ($iAdat['targyAdat'] as $targyId => $tAdat) {
+ if (isset($iAdat['tankorLetszamStat'][$targyId]['sum'])) {
+ echo number_format($iAdat['tankorLetszamStat'][$targyId]['sum']/$iAdat['tankorLetszamStat'][$targyId]['db'],1,',','').'<br />';
+ }
+ }
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</tbody>';
+
+ echo '</table>';
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml
new file mode 100644
index 00000000..95a59a90
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/checkStatus.phtml
@@ -0,0 +1,34 @@
+<?php
+
+ function putCheckStatus($ADAT) {
+
+ echo '<div style="margin-left:100px;">';
+
+ echo '<div>'._DT.':'.$ADAT['vizsgaltDt'].'</div>';
+ echo '<div>'._NAPOK_SZAMA.':'.$ADAT['napokSzama'].'</div>';
+ echo '<div>'._ORAK_SZAMA .':'.$ADAT['orakSzama'].'</div>';
+
+
+ echo '<div>'._HIANYZO_TANKOR;
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['hianyzoTankor']); $i++) {
+ $_D = $ADAT['hianyzoTankor'][$i];
+ echo '<li>';
+ var_dump($_D);
+ echo '</li>';
+ }
+ echo '</ul>'.'</div>';
+
+ echo '<div>'._HIANYZO_ORA;
+ echo '<ul>';
+ for ($i=0; $i<count($ADAT['hianyzoOra']); $i++) {
+ $_D = $ADAT['hianyzoOra'][$i];
+ echo '<li>';
+ var_dump($_D);
+ echo '</li>';
+ }
+ echo '</ul>'.'</div>';
+ echo '</div>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml
new file mode 100644
index 00000000..0436e1f8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/diakTanarai.phtml
@@ -0,0 +1,62 @@
+<?php
+
+ function putDiakTanarLista($ADAT) {
+
+ echo '<table class="lista">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>'._DIAK.' ('.count($ADAT['diak']).' '._FO.')</th>';
+ echo '<th>'._OSZTALY.'</th>';
+ echo '<th>'._TANAR.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ $db = 0;
+ for ($i = 0; $i < count($ADAT['diak']); $i++) {
+
+ $diakId = $ADAT['diak'][$i]['diakId'];
+ $tanarNev = array();
+ for ($j = 0; $j < count($ADAT['diak'][$i]['tankorIds']); $j++) {
+ $tankorId = $ADAT['diak'][$i]['tankorIds'][$j];
+ for ($k = 0; $k < count($ADAT['tankorTanar'][$tankorId]); $k++) {
+
+ if (!in_array($ADAT['tankorTanar'][$tankorId][$k]['tanarNev'], $tanarNev))
+ $tanarNev[] = $ADAT['tankorTanar'][$tankorId][$k]['tanarNev'];
+ }
+ }
+
+ if (count($tanarNev) > 0) {
+ $db++;
+ echo '<tr>'."\n";
+ echo '<td class="nev">'.$db.'. '.$ADAT['diak'][$i]['diakNev'].'</td>'."\n";
+ echo '<td class="osztaly">'.$ADAT['osztaly'][ $ADAT['diak'][$i]['osztalyId'] ]['osztalyJel'].'</td>'."\n";
+
+ echo '<td class="tanar">';
+ echo (count($tanarNev) == 0) ? '-' : implode(', ', $tanarNev);
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ }
+ echo '</table>'."\n";
+
+ }
+
+ function putOsztalyValaszto($ADAT) {
+
+ formBegin(array('class'=>'osztaly'));
+ echo '<input type="hidden" name="action" value="osztalyValasztas" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+ foreach ($ADAT['osztaly'] as $osztalyId => $oAdat) {
+ $CHK = (in_array($osztalyId, $ADAT['osztalyId']))?' checked="checked"':'';
+ echo '<input type="checkbox" id="osztaly'.$osztalyId.'" name="osztalyIds[]" value="'.$osztalyId.'"'.$CHK.' />'."\n";
+ echo '<label for="osztaly'.$osztalyId.'">'.$oAdat['osztalyJel'].'</label>'."\n";
+ }
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml
new file mode 100644
index 00000000..0ec32a97
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/fogadoOra.phtml
@@ -0,0 +1,317 @@
+<?php
+
+// include_once('skin/classic/module-naplo/html/share/face.phtml');
+
+ function putFogadoOraLista($Lista, $Tanarok, $Szulok) {
+
+ formBegin(array('class'=>'fogado'));
+ foreach ($Tanarok as $tanarId => $tAdat) if ($Lista['adatok'][$tanarId]['tol'] != '') {
+
+ $tol = $Lista['adatok'][$tanarId]['tol'];
+ $ig = $Lista['adatok'][$tanarId]['ig'];
+
+ echo '<table>'."\n";
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="3">'.$tAdat['tanarNev'].'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3">';
+ echo substr($tol, 0, 10).' ';
+ if ($Lista['adatok'][$tanarId]['teremId'] != '') {
+ echo $Lista['adatok'][$tanarId]['leiras'];
+ echo ' ('.$Lista['adatok'][$tanarId]['teremId'].') ';
+ echo _TEREM;
+ }
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th>'._TOL.'</th>';
+ echo '<th>'._SZULONEV.'</th>';
+ echo '<th>'._DIAKNEV.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>';
+
+ echo '<tfoot><tr><th colspan="3"></th></tr></tfoot>';
+
+ echo '<tbody>';
+ $i = 0;
+ for ($t = strtotime($tol); $t < strtotime($ig); $t = strtotime('+'._VIZITHOSSZ. ' minutes', $t)) {
+
+ $aktTol = date('Y-m-d H:i:s', $t);
+ if ($Lista['jelentkezesek'][$tanarId][$i]['tol'] == $aktTol) {
+ $A = $Lista['jelentkezesek'][$tanarId][$i];
+ $i++;
+ } else { $A = array(); }
+
+ $diakNevek = array();
+ for ($j = 0; $j < count($Szulok['diakjai'][$A['szuloId']]); $j++)
+ $diakNevek[] = $Szulok['diakjai'][$A['szuloId']][$j]['diakNev'];
+
+ echo '<tr>';
+ echo '<td>';
+ echo substr($aktTol,11,-3);
+ echo '</td>';
+ echo '<td>';
+ echo $Szulok[$A['szuloId']]['szuloNev'];
+
+ echo '</td>';
+ echo '<td>';
+ echo implode(',', $diakNevek);
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+
+ echo '</table>'."\n";
+
+ }
+ formEnd();
+
+ }
+
+ function putFogadoOsszes($FogadoOsszes, $Tanarok) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="listaLekerdezese" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="" />'."\n";
+ echo '<table>'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>';
+ echo _TANARNEV;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _DATUM;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _TOL;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _IG;
+ echo '</th>'."\n";
+ echo '<th>';
+ echo _TEREM;
+ echo '</th>'."\n";
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="5">';
+ echo '<input type="submit" value="'._RESZLETES_LISTA.'" />';
+ echo '</th></tr></tfoot>'."\n";
+ echo '<tbody>';
+ if (is_array($FogadoOsszes)) foreach ($FogadoOsszes as $tId => $tAdat) {
+ echo '<tr>';
+ echo '<th>';
+ echo '<a href="'.href('index.php?page=naplo&sub=tanev&f=fogadoOra&tanarId='.$tAdat['tanarId']).'">';
+ echo $Tanarok[$tAdat['tanarId']]['tanarNev'];
+ echo '</a>';
+ echo '</th>';
+ echo '<td>'.substr($tAdat['tol'],0,10).'</td>';
+ echo '<td>'.substr($tAdat['tol'],11,5).'</td>';
+ echo '<td>'.substr($tAdat['ig'],11,5).'</td>';
+ echo '<td>'.$tAdat['teremId'].'</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ formEnd();
+ }
+
+ function kovetkezoFogadoIdopont($FogadoDt) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="kovetkezoFogado" />'."\n";
+
+ echo '<h1>'._KOVETKEZO_FOGADO_ORA.'</h1>'."\n";
+ echo '<div>';
+ echo '<input class="date" type="text" name="tolDt" value="'.$FogadoDt['dates'][0].'" />'."\n";
+ $SEL = array(substr($FogadoDt['tol'][0],11,5) => ' selected="selected" ');
+ echo '<select name="tolTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+// for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ for ($p = 0; $p < 60; $p += 1) { // Ha pl 8-perces vizithossz van, akkor a második órában óra 4 perckor kellene kezdeni a fogadóórát...
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>';
+ $SEL = array(substr($FogadoDt['ig'][0],11,5) => ' selected="selected" ');
+ echo '<select name="igTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+ for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" title="'._BIZTOS_UJ_IDOPONT_E.'" class="confirm" />'."\n";
+ echo '</div>';
+ formEnd();
+
+ }
+
+ function tanarFogadoIdopontModosito($tanarFogado, $Termek) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="tanarFogado" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarFogado['tanarId'].'" />'."\n";
+
+ echo '<h1>'._TANAR_FOGADOORAJA.'</h1>'."\n";
+ echo '<div>';
+ echo '<input type="text" name="tolDt" value="'.substr($tanarFogado['tol'],0,10).'" />'."\n";
+ $SEL = array(substr($tanarFogado['tol'],11,5) => ' selected="selected" ');
+ echo '<select name="tolTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+// for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ for ($p = 0; $p < 60; $p += 1) {
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>';
+ $SEL = array(substr($tanarFogado['ig'],11,5) => ' selected="selected" ');
+ echo '<select name="igTime">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($o = 0; $o < 24; $o++)
+ for ($p = 0; $p < 60; $p += _VIZITHOSSZ) {
+ $time = str_pad($o, 2, '0', STR_PAD_LEFT).':'.str_pad($p, 2, '0', STR_PAD_LEFT);
+ echo '<option value="'.$time.'"'.$SEL[$time].'>'.$time.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ $SEL = array($tanarFogado['teremId'] => ' selected="selected" ');
+ echo '<select name="teremId">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($Termek); $i++) {
+ echo '<option value="'.$Termek[$i]['teremId'].'"'.$SEL[$Termek[$i]['teremId']].'>'.$Termek[$i]['leiras'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</div>';
+ formEnd();
+
+ }
+
+ function tanarFogadoIdopont($TF, $Termek, $Szulok) {
+
+ formBegin(array('class'=>'fogado'));
+ echo '<table cellspacing="1">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="3" class="cim">'._JELENTKEZESEK.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="1">'.substr($TF['adatok']['tol'],0,10).'</th>';
+ echo '<th colspan="1">'._SZULONEV.'</th>';
+ echo '<th colspan="1">'._DIAKNEV.'</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+ echo '<tfoot><tr><th colspan="3">'.'</th></tr></tfoot>';
+ echo '<tbody>';
+
+ for ($t = strtotime($TF['adatok']['tol']); $t < strtotime($TF['adatok']['ig']); $t = strtotime('+'._VIZITHOSSZ.' minutes', $t)) {
+ $szuloId = $TF['jelentkezesek'][date('Y-m-d H:i:s', $t)]['szuloId'];
+ $DIAKJAI= array();
+ for ($i = 0; $i < count($Szulok['diakjai'][$szuloId]); $i++) {
+ $DIAKJAI[] = $Szulok['diakjai'][$szuloId][$i];
+ }
+ echo '<tr>';
+ echo '<th>'.date('H:i', $t).'</th>';
+ echo '<td>';
+ echo $Szulok[$szuloId]['szuloNev'];
+ echo '</td>';
+ echo '<td>';
+ for ($i=0; $i<count($DIAKJAI); $i++) {
+ $_D=$DIAKJAI[$i];
+ echo '<div class="diak">';
+ putFace($_D['diakId'],'diak');
+ echo '<br/><span class="diakNev">'.$_D['diakNev'].'</span>';
+ echo '</div>';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+ }
+
+ function putFogadoOraJelentkezes($szuloId, $diakTanarai, $Alkalmak, $szuloJelentkezes, $TermekAsszoc) {
+
+ if (__FOGADOORA_JELENTKEZES) $DIS = '';
+ else $DIS = ' disabled="disabled" ';
+
+ formBegin(array('class'=>'fogado'));
+ echo '<input type="hidden" name="action" value="fogadoOraJelentkezes" />'."\n";
+ echo '<input type="hidden" name="szuloId" value="'.$szuloId.'" />'."\n";
+ echo '<table>'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="4">'._TANARADAT.'</th>';
+ $sor = '<tr><th colspan="2">'._NEV.'</th><th>'._TEREM.'</th><th>'._TOROL.'</th>';
+ $sum = 4;
+ foreach($Alkalmak['napok'] as $nap => $napAdat) {
+ list($tolOra,$tolPerc) = explode(':', $napAdat['tol']);
+ list($igOra,$igPerc) = explode(':', $napAdat['ig']);
+ $Alkalmak['napok'][$nap]['colspan'] = $colspan = ceil(((60*$igOra+$igPerc) - (60*$tolOra+$tolPerc)) / _VIZITHOSSZ);
+ $sum += $colspan;
+ echo '<th colspan="'.$colspan.'">'.$nap.'</th>';
+ for ($t = strtotime($napAdat['tol']); $t < strtotime($napAdat['ig']); $t = strtotime('+'._VIZITHOSSZ.' minutes',$t)) {
+ $sor .= '<td>';
+ $sor .= date('H:i',$t);
+ $sor .= '</td>';
+ }
+ }
+ $sor .= '</tr>'."\n";
+ echo '</tr>'."\n";
+ echo $sor;
+ echo '</thead>';
+ echo '<tfoot><tr><th colspan="'.$sum.'">';
+ if (__FOGADOORA_JELENTKEZES) echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i = 0; $i < count($diakTanarai); $i++) {
+ $tanarId = $diakTanarai[$i]['tanarId'];
+ echo '<tr>';
+ echo '<th>'.$diakTanarai[$i]['tanarNev'].'</th>';
+ echo '<th>';
+ putFace($diakTanarai[$i]['tanarId'],'tanar');
+ echo '</th>';
+
+ echo '<th>'.$TermekAsszoc[ $Alkalmak['tanarTerme'][$diakTanarai[$i]['tanarId']] ]['leiras'].'</th>';
+ echo '<td class="torol">';
+ echo '<input type="radio" name="jel'.$i.'" value="'.$tanarId.'/"'.$DIS.' />';
+ echo '</td>';
+ foreach($Alkalmak['napok'] as $nap => $napAdat) {
+ for ($t = strtotime($napAdat['tol']); $t < strtotime($napAdat['ig']); $t = strtotime('+'._VIZITHOSSZ.' minutes',$t)) {
+ $datetime = $nap.' '.date('H:i', $t).':00';
+ if ($szuloJelentkezes[$tanarId]['tol'] == $datetime) $_class = ' class="ok" ';
+ elseif (isset($diakTanarai[$i]['foglalt']['jelentkezesek'][$datetime])) $_class=' class="foglalt" ';
+ else $_class='';
+ echo '<td'.$_class.'>';
+ if (
+ $Alkalmak[$tanarId]['tol'] <= $nap.' '.date('H:i:s', $t)
+ && $Alkalmak[$tanarId]['ig'] > $nap.' '.date('H:i:s', $t)
+ ) {
+
+ if ($szuloJelentkezes[$tanarId]['tol'] == $datetime)
+ echo '<input type="radio" name="jel'.$i.'" value="'.$tanarId.'/'.$datetime.'" checked="checked"'.$DIS.' />';
+ elseif (isset($diakTanarai[$i]['foglalt']['jelentkezesek'][$datetime]))
+ echo '-';
+ else
+ echo '<input type="radio" name="jel'.$i.'" value="'.$tanarId.'/'.$datetime.'"'.$DIS.' />';
+ }
+ echo '</td>';
+ }
+ }
+ echo '</tr>';
+
+ }
+ echo '</tbody>';
+ echo '</table>'."\n";
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml
new file mode 100644
index 00000000..6be97179
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/munkaterv.phtml
@@ -0,0 +1,370 @@
+<?php
+/*
+ Module: naplo
+*/
+
+// function putNapokForm($Napok, $napTipusok, $action, $Hetek = array()) {
+ function putNapokForm($ADAT) {
+
+ global $Honapok, $_TANEV;
+
+ $Napok = $ADAT['Napok']; $napTipusok = $ADAT['napTipusok']; $action = $ADAT['action']; $Hetek = $ADAT['Hetek'];
+ if (!is_array($Hetek)) $Hetek = array();
+
+ $ho = date('n',strtotime($Napok[0]['dt']));
+ $dow = date('w',strtotime($Napok[0]['dt']));
+
+ formBegin(array('class' => 'munkaterv'));
+
+ echo '<h2>'._EVES_MUNKATERV.' - '.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['munkatervNev'].' ('.$ADAT['munkatervId'].')</h2>'."\n";
+
+ echo '<input type="hidden" name="action" value="'.$action.'" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ if ($action == 'honapValasztas') echo '<input type="hidden" name="ho" value="'.$ho.'" />'."\n";
+ echo '<table class="munkaterv" align="center">'."\n";
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="7">';
+ if (
+ (
+ ($_TANEV['statusz'] == 'aktív' && __NAPLOADMIN)
+ || (__VEZETOSEG && __FOLYO_TANEV)
+ )
+ && $action == 'honapValasztas'
+ ) echo '<input type="submit" value="'._MODOSIT.'" />';
+ echo $Honapok[$ho-1];
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ if ($action == 'munkatervModositas') echo '<th colspan="7"><input type="submit" value="'._OK.'" /></th>';
+ else echo '<th colspan="7" />';
+ echo '</tr>';
+ echo '</tfoot>';
+ for ($i = 1; $i < $dow; $i++) {
+ echo '<td>&nbsp;</td>';
+ }
+ for ($i = 0; $i < count($Napok); $i++) {
+ if ($ho != $_ho = date('n', strtotime($Napok[$i]['dt']))) {
+ $ho = $_ho;
+
+ $dow = date('w',strtotime($Napok[$i]['dt']));
+ if ($dow == 0) $dow = 7;
+ for ($j = $dow; $j < 8; $j++) {
+ echo '<td>&nbsp;</td>';
+ }
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+ formEnd();
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="'.$action.'" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ if ($action == 'honapValasztas') echo '<input type="hidden" name="ho" value="'.$ho.'" />'."\n";
+ echo '<table class="munkaterv" align="center">'."\n";
+ echo '<thead'."\n";
+ echo '<tr>';
+ echo '<th colspan="7">';
+ if (
+ (
+ ($_TANEV['statusz'] == 'aktív' && __NAPLOADMIN)
+ || (__VEZETOSEG && __FOLYO_TANEV)
+ )
+ && $action == 'honapValasztas'
+ ) echo '<input type="submit" value="'._MODOSIT.'" />';
+ echo $Honapok[$ho-1];
+ echo '</th>';
+ echo '</tr>';
+ echo '</thead>'."\n";
+ echo '<tfoot<tr><th colspan="7" /></tr></tfoot>'."\n";
+ echo '<tr>'."\n";
+ for ($j=1;$j<$dow;$j++) {
+ echo '<td>&nbsp;</td>';
+ }
+ } elseif (date('w',strtotime($Napok[$i]['dt']))==1) echo '<tr>';
+
+ // A szemeszterek határának jelölése
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+ if ($szAdat['zarasDt'] == $Napok[$i]['dt']) {
+ $fDb = 8;
+ break;
+ }
+ }
+// if ($fDb > 0) $fDb--;
+ if ($fDb == 8) { $fDb--; $class = str_replace(' ', '', ekezettelen($Napok[$i]['tipus']));
+ } elseif ($fDb == 7) { $fDb--; $class = 'felevZarasDt '.str_replace(' ', '', ekezettelen($Napok[$i]['tipus']));
+ } elseif ($fDb > 0) { $fDb--; $class = 'felevZaras '.str_replace(' ', '', ekezettelen($Napok[$i]['tipus']));
+ } else { $class = str_replace(' ', '', ekezettelen($Napok[$i]['tipus'])); }
+
+ echo '<td class="'.$class.'">'."\n";
+
+ echo $Napok[$i]['dt'];
+ echo '<br />'."\n";
+ if ($action == 'munkatervModositas') {
+ echo '<input type="hidden" name="dt[]" value="'.$Napok[$i]['dt'].'" />'."\n";
+ $SEL = array($Napok[$i]['tipus'] => ' selected="selected"');
+ echo '<select name="tipus[]">';
+ for ($n = 0; $n < count($napTipusok); $n++) {
+ echo '<option value="'.$napTipusok[$n].'"'.$SEL[$napTipusok[$n]].'>'.$napTipusok[$n].'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+ echo '<input class="megjegyzes" type="text" name="megjegyzes[]" value="'.$Napok[$i]['megjegyzes'].'" />'."\n";
+ echo '<br />'."\n";
+ $SEL = array($Napok[$i]['orarendiHet'] => ' selected="selected" ');
+ echo '<select name="orarendiHet[]">'."\n";
+ if ($Napok[$i]['tipus'] != 'tanítási nap') echo '<option value="0"> - </option>'."\n";
+ for ($h = 0; $h < count($Hetek); $h++) {
+ echo '<option value="'.$Hetek[$h].'"'.$SEL[$Hetek[$h]].'>'.$Hetek[$h].'. '._ORARENDI_HET.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<br />'."\n";
+ $SEL = array($Napok[$i]['csengetesiRendTipus'] => ' selected="selected" ');
+ echo '<select name="csengetesiRendTipus[]">'."\n";
+ // if ($Napok[$i]['tipus'] != 'tanítási nap') echo '<option value="nincs"> - </option>'."\n";
+ for ($h = 0; $h < count($ADAT['fields']['csengetesiRendTipus']); $h++) {
+ echo '<option value="'.$ADAT['fields']['csengetesiRendTipus'][$h].'"'.$SEL[ $ADAT['fields']['csengetesiRendTipus'][$h] ].'>'.$ADAT['fields']['csengetesiRendTipus'][$h].' csengetés</option>'."\n";
+ }
+ echo '</select>'."\n";
+ } else {
+ echo $Napok[$i]['tipus'];
+ if (isset($Napok[$i]['megjegyzes']) && $Napok[$i]['megjegyzes'] != '') {
+ echo '<br />'."\n";
+ echo '<span>'.$Napok[$i]['megjegyzes'].'</span>';
+ }
+ if ($Napok[$i]['tipus'] == 'tanítási nap') {
+ echo '<br />'."\n";
+ echo '<span class="orarendiHet'.$Napok[$i]['orarendiHet'].'">'.$Napok[$i]['orarendiHet'].'. '._ORARENDI_HET.'</span>';
+ }
+ echo '<br />'."\n";
+ echo '<span>'.$Napok[$i]['csengetesiRendTipus'].' csengetés</span>';
+ }
+ echo '</td>'."\n";
+
+ if (date('w',strtotime($Napok[$i]['dt']))==0) echo '</tr>';
+ }
+
+ if (0 != $dow=date('w',strtotime($Napok[$i-1]['dt']))) {
+ for ($i=$dow+1;$i<8;$i++) {
+ echo '<td>&nbsp;</td>';
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n";
+ formEnd();
+ }
+
+ function putNapokSzama($ADAT) {
+
+ $NapokSzama = $ADAT['NapokSzama']; $napTipusok = $ADAT['napTipusok'];
+
+ echo '<h2>'._NAPOK_SZAMA.' - '.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['munkatervNev'].' ('.$ADAT['munkatervId'].')</h2>';
+ echo '<table class="osszesites" align="center">';
+ echo '<tr>';
+ echo '<th></th>';
+ for ($i = 0; $i < count($napTipusok); $i++) {
+ echo '<th class="'.ekezettelen($napTipus[$i]).'">'.$napTipusok[$i].'</th>';
+ }
+ echo '<th class="osszesMunkanap">'._OSSZES_MUNKANAP.'</th>';
+ echo '</tr><tr>';
+ echo '<th>'._TENYLEGES.'</th>';
+ for ($i = 0; $i < count($napTipusok); $i++) {
+ echo '<td class="'.ekezettelen($napTipusok[$i]).'">'.intval($NapokSzama[$napTipusok[$i]]).'</td>';
+ }
+ echo '<td class="osszesMunkanap">'.intval($NapokSzama['tanítási nap']+$NapokSzama['speciális tanítási nap']+$NapokSzama['tanítás nélküli munkanap']).'</td>';
+ echo '</tr>';
+ echo '<tr class="eloirt">';
+ echo '<th>'._ELOIRT.'</th>';
+ echo '<td colspan="2">'.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasiNap'].'</td>';
+ echo '<td>'.$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasNelkuliMunkanap'].'</td>';
+ echo '<td></td>';
+ echo '<td class="osszesMunkanap">'.($ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasiNap']+$ADAT['munkaterv'][ $ADAT['munkatervId'] ]['tanitasNelkuliMunkanap']).'</td>';
+ echo '</tr>';
+ echo '</table>';
+
+ echo '<p>'._VEGZOS_ZARAS_DT.': '. dateToString($ADAT['munkaterv'][ $ADAT['munkatervId'] ]['vegzosZarasDt']). '</p>';
+
+ }
+
+ function putNapokInit($ADAT, $Set = array('hide' => true)) {
+
+ $Hetek = $ADAT['Hetek'];
+ formBegin(array('class'=>'openable init', 'id' => 'napokInit', 'style' => ($Set['hide']?'display: none;':''), 'action' => ''));
+ echo '<h2>'._NAPOKINIT.'</h2>'."\n";
+ echo '<input type="hidden" name="action" value="napokInit" />'."\n";
+
+// if (is_array($Hetek) && count($Hetek) != 0) {
+// echo '<label for="hetek">'._ORARENDI_HET.'</label>'."\n";
+// echo '<p>';
+// for ($i = 0; $i < count($Hetek); $i++) {
+// echo '<input type="checkbox" name="Hetek[]" value="'.$Hetek[$i].'" />';
+// echo $Hetek[$i].'&nbsp;&nbsp;';
+// }
+// echo '</p>';
+// } else {
+ echo '<p>'._MAGYARAZAT.'</p>';
+ echo '<label for="orarendiHetekSzama">'._ORARENDIHETEKSZAMA.'</label>'."\n";
+ echo '<select id="orarendiHetekSzama" name="hetDb">';
+ for ($i = 1; $i < 10; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tnsz">'._TANITASI_NAPOK_SZAMA.'</label>';
+ echo '<select id="tnsz" name="tanitasiNap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasiNap'] => ' selected="selected" ');
+ for ($i = 1; $i < 200; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tnmsz">'._TANITAS_NELKULI_MUNKANAPOK_SZAMA.'</label>';
+ echo '<select id="tnmsz" name="tanitasNelkuliMunkanap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasNelkuliMunkanap'] => ' selected="selected" ');
+ for ($i = 1; $i < 20; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="vzdt">'._VEGZOS_ZARAS_DT.'</label>';
+ echo '<input type="text" class="date" id="vzdt" name="vegzosZarasDt" value="'.$ADAT['munkaterv'][1]['vegzosZarasDt'].'" />';
+// }
+ echo '<br /><input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putHetHozzarendelo($ADAT, $Set = array('hide' => true)) {
+
+ global $_TANEV;
+
+ formBegin(array('class'=>'openable init', 'id' => 'hetHozzarendeles', 'style' => ($Set['hide']?'display: none;':'')));
+ echo '<h2>'._HETHOZZARENDELES.'</h2>';
+ echo '<input type="hidden" name="action" value="hetHozzarendeles" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ echo '<p>'._HH_MAGYARAZAT.'</p>';
+ echo '<label for="orarendiHetekSzama">'._ORARENDIHETEKSZAMA.'</label>'."\n";
+ echo '<select id="orarendiHetekSzama" name="hetDb">';
+ for ($i = 1; $i < 10; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tolDt">'._DATUM.'</label>';
+ echo '<input type="text" class="date" id="tolDt" name="tolDt" value="'.$_TANEV['kezdesDt'].'" /> - ';
+ echo '<input type="text" class="date" name="igDt" value="'.$_TANEV['zarasDt'].'" />';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putUjMunkaterv($ADAT, $Set = array('hide' => true)) {
+
+ global $_TANEV;
+
+ formBegin(array('class'=>'openable init', 'id' => 'ujMunkaterv', 'style' => ($Set['hide']?'display: none;':'')));
+ echo '<h2>'._UJ_MUNKATERV.'</h2>';
+ echo '<input type="hidden" name="action" value="ujMunkaterv" />'."\n";
+ echo '<p>'._UM_MAGYARAZAT.'</p>';
+
+ echo '<label for="munkatervNev">'._MUNKATERV_NEVE.'</label>';
+ echo '<input type="text" id="munkatervNev" name="munkatervNev" value="" />';
+
+ echo '<label for="tnsz">'._TANITASI_NAPOK_SZAMA.'</label>';
+ echo '<select id="tnsz" name="tanitasiNap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasiNap'] => ' selected="selected" ');
+ for ($i = 1; $i < 200; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tnmsz">'._TANITAS_NELKULI_MUNKANAPOK_SZAMA.'</label>';
+ echo '<select id="tnmsz" name="tanitasNelkuliMunkanap">';
+ $SEL = array($ADAT['munkaterv'][1]['tanitasNelkuliMunkanap'] => ' selected="selected" ');
+ for ($i = 1; $i < 20; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="vzdt">'._VEGZOS_ZARAS_DT.'</label>';
+ echo '<input type="text" class="date" id="vzdt" name="vegzosZarasDt" value="'.$ADAT['munkaterv'][1]['vegzosZarasDt'].'" />';
+/*
+ echo '<label for="orarendiHetekSzama">'._ORARENDIHETEKSZAMA.'</label>'."\n";
+ echo '<select id="orarendiHetekSzama" name="hetDb">';
+ for ($i = 1; $i < 10; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<label for="tolDt">'._DATUM.'</label>';
+ echo '<input type="text" class="date" id="tolDt" name="tolDt" value="'.$_TANEV['kezdesDt'].'" /> - ';
+ echo '<input type="text" class="date" name="igDt" value="'.$_TANEV['zarasDt'].'" />';
+*/
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+ }
+
+ function putMunkatervOsztaly($ADAT, $Set = array('hide' => true)) {
+
+ global $_TANEV;
+
+ formBegin(array('class'=>'openable init', 'id' => 'munkatervOsztaly', 'style' => ($Set['hide']?'display: none;':'')));
+ echo '<h2>'._MUNKATERV_OSZTALY.'</h2>';
+ echo '<input type="hidden" name="action" value="munkatervOsztaly" />'."\n";
+ echo '<input type="hidden" name="munkatervId" value="'.$ADAT['munkatervId'].'" />'."\n";
+ echo '<p>'._MO_MAGYARAZAT.'</p>';
+
+ echo '<ul>';
+ for ($i = 0; $i < count($ADAT['osztaly']); $i++) {
+ $O = $ADAT['osztaly'][$i];
+ echo '<li>';
+ echo '<input type="hidden" name="osztalyId[]" value="'.$O['osztalyId'].'">';
+ echo '<strong>'.$O['osztalyJel'].'</strong> ('.$O['leiras'].')';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '<select name="ujMunkatervId[]">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($O['munkatervId'] => ' selected="selected" ');
+ foreach ($ADAT['munkaterv'] as $mId => $mAdat) {
+ echo '<option value="'.$mId.'"'.$SEL[$mId].'>'.$mAdat['munkatervNev'].' ('.$mId.')</option>'."\n";
+ }
+ echo '</select>';
+ echo '</li>';
+ }
+ echo '</ul>';
+ formEnd();
+
+ }
+
+ function putAdminForm($ADAT, $Hetek = array(), $NapokSzama=null, $napTipusok=null) {
+
+ global $action, $initResult;
+
+ if ($action != '') $SEL = $action;
+ elseif (__MUNKATERV_OK || $initResult === true) $SEL = 'napokSzama';
+ else $SEL = 'napokInit';
+
+ echo '<div class="admin hideShowContainer">';
+
+ echo '<div id="showNapokInit" class="onClickShow'.($SEL=='napokInit'?' selected':'').'">'._NAPOKINIT.'</div>';
+ if (__MUNKATERV_OK || $initResult === true) {
+ echo '<div id="showNapokSzama" class="onClickShow'.($SEL=='napokSzama'?' selected':'').'">'._NAPOK_SZAMA.'</div>';
+ echo '<div id="showHetHozzarendeles" class="onClickShow'.($SEL=='hetHozzarendeles'?' selected':'').'">'._HETHOZZARENDELES.'</div>';
+ echo '<div id="showUjMunkaterv" class="onClickShow'.($SEL=='ujMunkaterv'?' selected':'').'">'._ELTERO_MUNKATERVEK.'</div>';
+ echo '<div id="showMunkatervOsztaly" class="onClickShow'.($SEL=='munkatervOsztaly'?' selected':'').'">'._MUNKATERV_OSZTALY.'</div>';
+ }
+
+ echo '<div class="openable" id="napokSzama"'.($SEL!='napokSzama'?' style="display: none;"':'').'>';
+ putNapokSzama($ADAT);
+ echo '</div>';
+ putNapokInit($ADAT, array('hide' => ($SEL!='napokInit')));
+ putHetHozzarendelo($ADAT, array('hide' => ($SEL!='hetHozzarendeles')));
+ putUjMunkaterv($ADAT, array('hide' => ($SEL!='ujMunkaterv')));
+ putMunkatervOsztaly($ADAT, array('hide' => ($SEL!='munkatervOsztaly')));
+ echo '<div>&nbsp;</div>';
+ echo '</div>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml
new file mode 100644
index 00000000..0577e5a7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorBlokk.phtml
@@ -0,0 +1,200 @@
+<?php
+
+ function putTargySzuro($ADAT) {
+
+ formBegin(array('class'=>"szuro csoport"));
+ echo '<input type="hidden" name="action" value="targySzures" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+ if (is_array($ADAT['osztalySzuro']) && count($ADAT['osztalySzuro']) == 1)
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalySzuro'][0].'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th>'._TARGY_SZURES.'</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<select name="targyId[]" multiple="multiple">';
+ for ($i = 0; $i < count($ADAT['targyak']); $i++) {
+ if (in_array($ADAT['targyak'][$i]['targyId'], $ADAT['targySzuro']))
+ echo '<option value="'.$ADAT['targyak'][$i]['targyId'].'" selected="selected">'.$ADAT['targyak'][$i]['targyNev'].'</option>'."\n";
+ else
+ echo '<option value="'.$ADAT['targyak'][$i]['targyId'].'">'.$ADAT['targyak'][$i]['targyNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ if (count($ADAT['osztalySzuro']) != 1) {
+ echo '<tr>';
+ echo '<th>'._EVFOLYAM_SZURES.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td>';
+ for ($i = 0; $i < count($ADAT['evfolyamJelek']); $i++) {
+ if (in_array($ADAT['evfolyamJelek'][$i], $ADAT['evfolyamJelSzuro']))
+ echo '<input id="evf'.$i.'" type="checkbox" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelek'][$i].'" checked="checked" /> ';
+ else
+ echo '<input id="evf'.$i.'" type="checkbox" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelek'][$i].'" /> ';
+ echo '<label for="evf'.$i.'">'.$ADAT['evfolyamJelek'][$i].'.</label> ';
+ if ($i % 4 == 3) echo '<br />';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+ function putUjTankorBlokk($ADAT) {
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="ujTankorBlokk" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ // Kiválasztott tárgyak és évfolyamok
+ for ($i = 0; $i < count($ADAT['targySzuro']); $i++) echo '<input type="hidden" name="targyId[]" value="'.$ADAT['targySzuro'][$i].'" />'."\n";
+ for ($i = 0; $i < count($ADAT['evfolyamJelSzuro']); $i++) echo '<input type="hidden" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelSzuro'][$i].'" />'."\n";
+ if (is_array($ADAT['osztalySzuro']) && count($ADAT['osztalySzuro']) == 1)
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalySzuro'][0].'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo _UJ_TANKOR_BLOKK;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo _BLOKKNEV;
+ echo '</th>';
+ echo '<th>';
+ echo _TANKOROK.' ('.count($ADAT['tankorIdk']).')';
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="blokkNev" value="" /><br />';
+ echo '<label for="exportOraszam">'._EXPORT_ORASZAM.':</label> ';
+ echo '<input size="1" maxlength="4" type="text" name="exportOraszam" id="exportOraszam" value="" /><br />';
+ echo '<input type="submit" value="'._OK.'" />'; echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorId[]" multiple="multiple" size="10">';
+ foreach ($ADAT['szurtTankorIdk'] as $key => $tankorId)
+ if ($ADAT['tankorOraszam'][$tankorId] - $ADAT['tankorExportOraszam'][$tankorId] > 0)
+ echo '<option value="'.$tankorId.'">'.$ADAT['tankorAdat'][$tankorId]['tankorNev'].' ('.$tankorId.') - '
+ .number_format($ADAT['tankorOraszam'][$tankorId],1).' / '.number_format($ADAT['tankorExportOraszam'][$tankorId],1)
+ .' ['.$ADAT['tankorTanar'][$tankorId][0]['tanarNev'].' - ('.$ADAT['tankorTanar'][$tankorId][0]['tanarId'].')]'
+ .'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putTankorBlokkok($ADAT) {
+
+ $BLOKKOK = $ADAT['tankorBlokkok'];
+ if (!is_array($BLOKKOK['blokkNevek'])) return false;
+ echo '<table class="modosit">';
+
+ echo '<tr>';
+ echo '<th>';
+ echo _TANKOR_BLOKK_MODOSITAS;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ foreach ($BLOKKOK['blokkNevek'] as $blokkId => $blokkNev) {
+ $BA = $BLOKKOK['idk'][$blokkId];
+
+ $kirakjuk = false;
+ // blokk szűrése a tankörök alapján (tehát tárgy és évfolyam alapján)
+ for ($i = 0; $i < count($BA); $i++) {
+ if (in_array($BA[$i], $ADAT['szurtTankorIdk'])) {
+ $kirakjuk = true;
+ break;
+ }
+ }
+
+ if ($kirakjuk) {
+
+ echo '<tr><td>';
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="modTankorBlokk" />'."\n";
+ echo '<input type="hidden" name="blokkId" value="'.$blokkId.'" />'."\n";
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />'."\n";
+
+ // Kiválasztott tárgyak és évfolyamok
+ for ($i = 0; $i < count($ADAT['targySzuro']); $i++) echo '<input type="hidden" name="targyId[]" value="'.$ADAT['targySzuro'][$i].'" />'."\n";
+ for ($i = 0; $i < count($ADAT['evfolyamJelSzuro']); $i++) echo '<input type="hidden" name="evfolyamJel[]" value="'.$ADAT['evfolyamJelSzuro'][$i].'" />'."\n";
+ if (is_array($ADAT['osztalySzuro']) && count($ADAT['osztalySzuro']) == 1)
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalySzuro'][0].'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th>';
+ echo _BLOKKNEV. ' ('.$blokkId.')';
+ echo '</th>';
+ echo '<th>';
+ echo _TANKOROK. ' (' . count($BA).')';
+ echo '</th>';
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="blokkNev" value="'.htmlspecialchars($blokkNev, ENT_QUOTES, "UTF-8").'" /><br />';
+ echo '<label for="exportOraszam'.$blokkId.'">'._EXPORT_ORASZAM.':</label> ';
+ echo '<input size="1" maxlength="4" type="text" name="exportOraszam" id="exportOraszam'.$blokkId.'" value="'.number_format($BLOKKOK['exportOraszam'][$blokkId], 1, '.', ' ').'" /><br />';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '<input type="submit" name="del" value="'._DEL.'" />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorIds[]" multiple="multiple" size="5">';
+ foreach ($BA as $key => $tankorId)
+ echo '<option value="'.$tankorId.'" selected="selected">'
+ .$ADAT['tankorAdat'][$tankorId]['tankorNev'].' ('.$tankorId.') - '
+ .number_format($ADAT['tankorOraszam'][$tankorId],1).' / '.number_format($ADAT['tankorExportOraszam'][$tankorId],1)
+ .' ['.$ADAT['tankorTanar'][$tankorId][0]['tanarNev'].' - ('.$ADAT['tankorTanar'][$tankorId][0]['tanarId'].')]'
+ .'</option>'."\n";
+ foreach ($ADAT['tankorAdat'] as $tankorId => $tankorAdat)
+ if (
+ !in_array($tankorId,$BA)
+ && $ADAT['tankorOraszam'][$tankorId] - $ADAT['tankorExportOraszam'][$tankorId] > 0
+ ) echo '<option value="'.$tankorId.'" >'.$tankorAdat['tankorNev'].' ('.$tankorId.') - '
+ .number_format($ADAT['tankorOraszam'][$tankorId],2).' / '.intval($ADAT['tankorExportOraszam'][$tankorId])
+ .' ['.$ADAT['tankorTanar'][$tankorId][0]['tanarNev'].' - ('.$ADAT['tankorTanar'][$tankorId][0]['tanarId'].')]'
+ .'</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ echo '</td></tr>'."\n";
+ } // if
+ } // foreach
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml
new file mode 100644
index 00000000..e6bd23f8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/tankorCsoport.phtml
@@ -0,0 +1,122 @@
+<?php
+
+ function putUjTankorCsoport($tankorAdat, $szTankorIds, $osztalyId) {
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="ujTankorCsoport" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<table>';
+
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo _UJ_TANKOR_CSOPORT;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<th>';
+ echo _CSOPORTNEV;
+ echo '</th>';
+ echo '<th>';
+ echo _TANKOROK;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="csoportNev" value="" /><br />';
+ echo '<input type="submit" value="'._OK.'" />'; echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorId[]" multiple="multiple" size="5">';
+ foreach ($szTankorIds as $key => $tankorId)
+ echo '<option value="'.$tankorId.'">'.$tankorAdat[$tankorId]['tankorNev'].' ('.$tankorId.')</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putCsoportok($Csoportok, $tankorAdat, $szTankorIds, $osztalyId) {
+
+ echo '<table class="modosit">';
+
+ echo '<tr>';
+ echo '<th>';
+ echo _TANKOR_CSOPORT_MODOSITAS;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+
+ foreach ($Csoportok as $csoportId => $csoportAdat) {
+ echo '<tr><td>';
+
+ formBegin(array('class'=>'csoport'));
+ echo '<input type="hidden" name="action" value="tankorCsoportModositas" />'."\n";
+ echo '<input type="hidden" name="csoportId" value="'.$csoportId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<table>';
+
+
+ echo '<tr>';
+ echo '<th>';
+ echo _CSOPORTNEV;
+ echo '</th>';
+ echo '<th>';
+ echo '<input type="submit" name="tankorCsoportTorles" class="torol confirm" title="'._BIZTOS_TOROL_E.'" value="'._TOROL.'" />';
+ echo _TANKOROK;
+ echo '</th>';
+ echo '</tr>'."\n";
+
+ echo '<tr>';
+ echo '<td>';
+ echo '<input type="text" name="csoportNev" value="'.$csoportAdat['csoportNev'].'" /><br />';
+ echo '<input type="submit" value="'._OK.'" /><br />';
+ echo '</td>';
+ echo '<td>';
+ echo '<select name="tankorId[]" multiple="multiple" size="5">';
+ foreach ($csoportAdat['tankorok'] as $key => $tankorId)
+ echo '<option value="'.$tankorId.'" selected="selected">'.$tankorAdat[$tankorId]['tankorNev'].' ('.$tankorId.')</option>'."\n";
+ foreach ($szTankorIds as $key => $tankorId)
+ echo '<option value="'.$tankorId.'">'.$tankorAdat[$tankorId]['tankorNev'].' ('.$tankorId.')</option>'."\n";
+ echo '</select>'."\n";
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</table>';
+ formEnd();
+
+ echo '</td></tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+ function putTankorCsoportKereso($osztalyId) {
+
+ formBegin(array('class'=>'csoportKereses'));
+
+ echo '<input type="hidden" name="action" value="tankorCsoportokKeresese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+
+ echo '<table>'."\n";
+ echo '<tr>';
+ echo '<th>'._TANKORCSOPORTOK_KERESESE.'</th>';
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td>';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</td>';
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml
new file mode 100644
index 00000000..07f83e8a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/targyBontas.phtml
@@ -0,0 +1,296 @@
+<?php
+
+ function putTargyBontasInit() {
+
+ formBegin(array('id'=>'targyBontasInit'));
+ echo '<input type="hidden" name="action" value="targyBontasInit" />'."\n";
+ echo '<input type="submit" name="btn" value="'._INICIALIZALAS.'" />'."\n";
+ formEnd();
+ }
+
+ function putFilter($ADAT) {
+
+ formBegin(array('id'=>'szures'));
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+// echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="szures" />'."\n";
+
+/*
+ echo '<div id="evfolyamJel">Évfolyam: ';
+ foreach ($ADAT['evfolyamJelek'] as $ej) {
+ $evfolyamJel = $ej['evfolyamJel'];
+ if ($ADAT['evfolyamJel']==$evfolyamJel) {
+ $CHK = ' checked="checked" '; $extraClass = ' checked';
+ $extraStyle = '';
+ } else {
+ $CHK = $extraClass = '';
+ if ($ADAT['evfolyamJel'] != '') $extraStyle = ' style="width: 0px; min-width: 0px;" ';
+ }
+ echo '<div class="evfolyamJel'.$extraClass.'"'.$extraStyle.'>';
+ echo '<input type="radio" name="evfolyamJel" value="'.$evfolyamJel.'" id="ej-'.$evfolyamJel.'" style="display: none;"'.$CHK.'/>';
+ //echo '<label for="ej-'.$evfolyamJel.'">'.$evfolyamJel.'</label>';
+ echo $evfolyamJel;
+ echo '</div>';
+ }
+ echo '</div>';
+*/
+
+ echo '<input id="filterOk" type="submit" value="'._OK.'" />'."\n";
+ echo '<div id="osztaly">';
+ $evfolyamJel = '';
+ foreach ($ADAT['filter']['osztalyAdat'] as $oAdat) {
+ $oCHK = (in_array($oAdat['osztalyId'], $ADAT['osztalyIds']))?' checked="checked" ':'';
+ if ($evfolyamJel != $oAdat['evfolyamJel']) {
+ if ($evfolyamJel!='') echo '</div>';
+ $evfolyamJel = $oAdat['evfolyamJel'];
+ // új évfolyamjel - új sor
+ if ($ADAT['evfolyamJel']==$evfolyamJel) {
+ $eCHK = ' checked="checked" '; $extraClass = ' checked'; $extraStyle = '';
+ } else {
+ $eCHK = $extraClass = '';
+ if ($ADAT['evfolyamJel'] != '') $extraStyle = ' style="display: none;" ';
+ }
+ echo '<div class="osztEvf" id="osztEvf-'.str_replace('/','-',$evfolyamJel).'"'.$extraStyle.'>';
+ echo '<div class="evfolyamJel'.$extraClass.'">';
+ echo '<input type="radio" name="evfolyamJel" value="'.$evfolyamJel.'" id="ej-'.str_replace('/','-',$evfolyamJel).'" style="display: none;"'.$eCHK.'/>';
+ echo $evfolyamJel;
+ echo '</div>';
+ }
+ if ($oCHK=='') $class='selectOsztaly';
+ else $class='selectOsztaly checked';
+ if ($oAdat['bontasOk']) $class .= ' bontasOk';
+ echo '<span class="'.$class.'">';
+ echo '<input type="checkbox" name="osztalyIds[]" value="'.$oAdat['osztalyId'].'" id="osztaly-'.$oAdat['osztalyId'].'" style="display: none;"'.$oCHK.'/>';
+ echo $oAdat['osztalyJel'].' ('.$oAdat['osztalyfonokNev'].')'."\n";
+ echo '</span>';
+ }
+ echo '</div>';
+ echo '</div>';
+
+ echo '<div id="kepzes">';
+ foreach ($ADAT['filter']['kepzesAdat'] as $kepzesId => $kAdat) {
+ $oClass='kSelect';
+ foreach ($kAdat as $oAdat) $oClass .= ' ko-'.$oAdat['osztalyId'];
+ $CHK = (in_array($kepzesId, $ADAT['kepzesIds']))?' checked="checked" ':'';
+ if ($CHK=='') echo '<div class="'.$oClass.'" data-db="0" style="display: none;">';
+ else echo '<div class="'.$oClass.'" data-db="0">';
+ echo '<input type="checkbox" name="kepzesIds[]" value="'.$kepzesId.'" id="kepzes-'.$kepzesId.'"'.$CHK.'/>'."\n";
+ echo '<label for="kepzes-'.$kepzesId.'">'.$kAdat[0]['kepzesNev'].' '.$kAdat[0]['tanev'].' ('.$kepzesId.')</label>';
+ echo '</div>';
+ }
+ echo '</div>';
+ formEnd();
+ }
+
+ function putTargyBontas($ADAT) {
+
+ formBegin(array('id'=>'bontasForm'));
+
+ echo '<input type="hidden" name="action" value="bontas" />'."\n";
+ echo '<input type="hidden" name="telephelyId" value="'.$ADAT['telephelyId'].'" />'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'" />'."\n";
+ foreach ($ADAT['osztalyIds'] as $osztalyId) echo '<input type="hidden" name="osztalyIds[]" value="'.$osztalyId.'" />'."\n";
+ foreach ($ADAT['kepzesIds'] as $kepzesId) echo '<input type="hidden" name="kepzesIds[]" value="'.$kepzesId.'" />'."\n";
+
+ echo '<div id="targyak" tabindex="1">';
+ echo '<div id="targyakUp" tabindex="1"><span class="icon-chevron-up"></span></div>';
+ echo '<div id="targyakDown"><span class="icon-chevron-down"></span></div>';
+ echo '<h1><span class="icon-remove-circle"></span>Tárgyak</h1>';
+ echo '<ul id="targyakUl">';
+ foreach ($ADAT['targyAdat'] as $targyId => $tAdat) {
+ echo '<li class="selectTargy" id="targy-'.$targyId.'" data-targyid="'.$targyId.'" data-targynev="'.$tAdat['targyNev'].'" data-targyjelleg="'.$tAdat['targyJelleg'].'">';
+ echo $tAdat['targyNev'].' ('.$targyId.')';
+ echo '</li>';
+ }
+ echo '</ul>';
+ echo '</div>';
+
+ echo '<table class="bontas">';
+
+ $stat = array('ko' => 0, 'bontas' => 0, 'koKesz' => 0, 'bontasKesz' => 0);
+ foreach ($ADAT['oraterv'] as $targyTipus => $tipusAdat) {
+ foreach ($tipusAdat as $targyId => $targyAdat) {
+ foreach ($targyAdat as $hetiOraszam => $oraszamAdat) {
+ foreach($oraszamAdat as $btStr => $btAdat) {
+ $tbodyId = str_replace('.','p', $targyTipus[0].'-'.intval($targyId).'-'.$hetiOraszam.'-'.$btStr);
+ echo '<tbody id="'.$tbodyId.'">';
+ $elsoSor = true; $sorDb = count($btAdat);
+ foreach ($btAdat as $rAdat) {
+$stat['ko']++;
+ $trId = 'tr-'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'];
+ $targyTipusE = ($targyTipus!='mintatantervi');
+
+ // kész van-e minden bontás-tankör hozzárendelés ebben a sorban?
+ $bontasArray = $ADAT['osztalyTargyBontas'][ $rAdat['osztalyId'] ][ $rAdat['kepzesOratervId'] ];
+ if (is_array($bontasArray)) {
+ $mindenBontasOk = true;
+ foreach ($bontasArray as $bontas) {
+ $stat['bontas']++;
+ if ($hetiOraszam-$bontas['hetiOraszam']==0) $stat['bontasKesz']++;
+ else $mindenBontasOk = false;
+ }
+ } else $mindenBontasOk = false;
+
+ echo '<tr '.($mindenBontasOk?'class="kesz" ':'').'id="'.$trId.'"
+ data-db="0"
+ data-hetiOraszam="'.$hetiOraszam.'"
+ data-keys="'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'].'"
+ data-key="'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'].'">';
+ echo '<td class="slide">'.(!$elsoSor?'<span class="slideUp icon-chevron-up"></span>':'<span class="slideUpAll icon-caret-up"></span>').'</td>';
+
+ echo ($targyTipusE?'<th class="targyTipus">'.$targyTipus:'<th>'.$rAdat['targyNev'].' ('.$targyId.')').'</th>';
+ echo '<td>'.$hetiOraszam.'</td>';
+ echo '<td>'.$ADAT['osztalyAdat'][ $rAdat['osztalyId'] ]['osztalyJel'].' '
+ .$ADAT['kepzesAdat'][ $rAdat['kepzesId'] ]['kepzesNev']
+ .'<span class="felev'.$rAdat['szemeszter'].'">'.$rAdat['szemeszter'].'. félév</span>'
+ .'</td>';
+ echo '<td id="bTd-'.$rAdat['osztalyId'].'-'.$rAdat['kepzesOratervId'].'">';
+ $db = 0;
+ if (is_array($bontasArray)) foreach ($bontasArray as $bontas) {
+
+ if ($hetiOraszam-$bontas['hetiOraszam']==0) $class=" ok";
+ elseif ($hetiOraszam-$bontas['hetiOraszam']<0) $class=" fail";
+ else $class='';
+ echo '<div class="bontas'.$class.'" id="bontas-'.$bontas['bontasId'].'"
+ data-tankororaszam=\''.(is_array($bontas['tankor-oraszam'])?json_encode($bontas['tankor-oraszam']):'[]').'\'
+ data-hetioraszam="'.floatval($bontas['hetiOraszam']).'"
+ data-targyid="'.$bontas['targyId'].'"
+ data-keys="'.$bontas['bontasId'].'"
+ data-key="'.$bontas['bontasId'].'">';
+ echo '<span class="bontasDb">'.(++$db).'</span>. '.$ADAT['targyAdat'][ $bontas['targyId'] ]['targyNev'].' csoport ('.$bontas['bontasId'].')';
+ echo '<span class="delBontas icon-remove-circle"></span>';
+ echo '<ul class="tankor-oraszam">';
+ if (is_array($bontas['tankor-oraszam'])) foreach ($bontas['tankor-oraszam'] as $toAdat) {
+ echo '<li class="tankorAdat" data-tankorid="'.$toAdat['tankorId'].'">['.floatval($toAdat['hetiOraszam']).'] '.$ADAT['tankorAdat'][ $toAdat['tankorId'] ]['tankorNevTargyNelkul'].' ('.$toAdat['tankorId'].')</li>';
+ }
+ echo '<li class="marad">'.($hetiOraszam-$bontas['hetiOraszam']).'</li>';
+ echo '</ul>';
+ echo '</div>';
+
+ }
+ echo '</td>';
+ echo '<td><span class="'.($targyTipusE?'addBontasTargy':'addBontas').' icon-plus" style="paddding: 20px;"></span></td>';
+//echo '<td>';
+//dump($bontasArray);
+//echo (++$sor).'. ';
+//echo $btStr.' ('.$rAdat['kepzesOratervId'].')';
+//echo '<br/>'.$tbodyId.' - '.$trId;
+//echo '</td>';
+ echo '</tr>';
+ if ($mindenBontasOk) $stat['koKesz']++;
+ $elsoSor = false;
+ }
+ echo '</tbody>';
+ }
+ }
+ }
+ }
+
+
+ echo '</table>';
+
+
+ echo '<div id="stat">';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td id="oratervenKivuli" title="Óratervtől eltérő tankörök száma (Nem frissül, csak az oldal újratöltésekor!)">';
+ echo count($ADAT['oratervenKivuliTankorok']).'<span class="icon-arrow-down"></span>';
+ echo '<ul>';
+ foreach ($ADAT['oratervenKivuliTankorok'] as $idx => $okAdat) {
+ if ($idx<30) {
+ echo '<li>';
+ echo $okAdat['tankorNev'].' ('.$okAdat['tankorId'].') <span class="diff">['.(is_null($okAdat['diff'])?'-':$okAdat['diff']).']</span>';
+ echo '</li>';
+ }
+ }
+ if ($idx >= 30) echo '<li>...</li>';
+ echo '</ul>';
+ echo '</td>';
+
+ echo '<td title="Óratervi bejegyzés">';
+ echo '<span id="statKoKesz">'.$stat['koKesz'].'</span>/<span id="statKo">'.$stat['ko'].'</span>';
+ echo '</td>';
+
+ echo '<td title="Felvett bontás">';
+ echo '<span id="statBontasKesz">'.$stat['bontasKesz'].'</span>/<span id="statBontas">'.$stat['bontas'].'</span>';
+ echo '</td>';
+
+ echo '<td title="Kész rekordok elrejtése">';
+ echo '<input type="checkbox" id="keszRejt" value="" />';
+ echo '</td>';
+
+ echo '</tr>';
+
+
+
+
+/*
+ echo '<tr><th id="oratervenKivuli">Óratervtől eltérő tankörök száma:';
+ echo '<ul>';
+ foreach ($ADAT['oratervenKivuliTankorok'] as $idx => $okAdat) {
+ if ($idx<30) {
+ echo '<li>';
+ echo $okAdat['tankorNev'].' ('.$okAdat['tankorId'].') <span class="diff">['.(is_null($okAdat['diff'])?'-':$okAdat['diff']).']</span>';
+ echo '</li>';
+ }
+ }
+ if ($idx >= 30) echo '<li>...</li>';
+ echo '</ul>';
+ echo '</th><td>'.count($ADAT['oratervenKivuliTankorok']).'<br/>(nem frissül)</td></tr>';
+ echo '<tr><th>Óratervi bejegyzés:</th><td><span id="statKoKesz">'.$stat['koKesz'].'</span>/<span id="statKo">'.$stat['ko'].'</span></td></tr>';
+ echo '<tr><th>Felvett bontás:</th><td><span id="statBontasKesz">'.$stat['bontasKesz'].'</span>/<span id="statBontas">'.$stat['bontas'].'</span></td></tr>';
+ echo '<tr><td colspan="2"><input type="checkbox" id="keszRejt" value="" />';
+ echo '<label for="keszRejt">Kész rekordok elrejtése</label></td></tr>';
+*/
+ echo '</table>';
+ echo '</div>';
+
+
+
+
+
+
+
+
+
+/*
+ echo '<span style="color:red;" class="icon-remove-circle"></span> ';
+ echo '<span style="color:red;" class="icon-plus-sign"></span> ';
+ echo '<span style="color:red;" class="icon-minus-sign"></span> ';
+ echo '<span style="color:red;" class="icon-error"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-plus"></span> ';
+ echo '<span style="color:red;" class="icon-minus"></span> ';
+ echo '<span style="color:red;" class="icon-remove"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-resize-vertical"></span> ';
+ echo '<span style="color:red;" class="icon-resize-full"></span> ';
+ echo '<span style="color:red;" class="icon-resize-small"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-arrow-up"></span> ';
+ echo '<span style="color:red;" class="icon-arrow-down"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-chevron-up"></span> ';
+ echo '<span style="color:red;" class="icon-chevron-down"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-circle-arrow-up"></span> ';
+ echo '<span style="color:red;" class="icon-circle-arrow-down"></span> ';
+ echo '<br />';
+ echo '<span style="color:red;" class="icon-caret-up"></span> ';
+ echo '<span style="color:red;" class="icon-caret-down"></span> ';
+ echo '<br />';
+
+ echo '<span style="color:red;" class="icon-cog"></span> ';
+ echo '<span style="color:red;" class="icon-fork"></span> ';
+ echo '<span style="color:red;" class="icon-return-key"></span> ';
+ echo '<span style="color:red;" class="icon-stop"></span> ';
+ echo '<span style="color:red;" class="icon-move"></span> ';
+ echo '<br />';
+*/
+
+ formEnd();
+
+ }
+
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml
new file mode 100644
index 00000000..5f3027e2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/targyOraszam.phtml
@@ -0,0 +1,25 @@
+<?php
+
+ function putTargyOraszam($ADAT) {
+
+ echo '<table align="center" class="targyOraszam">';
+ echo '<tr><th>'._TARGY.'</th><th>'._ORASZAM.'</th></tr>'."\n";
+ foreach($ADAT['targyOraszam'] as $targyNev => $_D) {
+
+ $sum += $_D['db'];
+
+ echo '<tr>';
+ echo '<td>';
+ echo $targyNev;
+ echo '</td><td class="oraszam">';
+ echo round($_D['db'],2);
+ echo '</td>';
+ echo '</tr>';
+ echo '</tr>'."\n";
+ }
+ echo '<tr><th colspan="2">'.$sum.'</th></tr>'."\n";
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml
new file mode 100644
index 00000000..d4940066
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosOrarendLezaras.phtml
@@ -0,0 +1,32 @@
+<?php
+
+ function putLezarandoOsztalyValaszto($ADAT) {
+
+ formBegin(array('class'=>'vegzos'));
+ echo '<input type="hidden" name="action" value="orarendLezaras" />'."\n";
+ echo '<input type="hidden" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<h1>'._LEZARANDO_OSZTALYOK_KIVALASZTASA.'</h1>';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) {
+
+ if ($ADAT['osztalyok'][$i]['vegzoTanev'] == __TANEV) {
+ if (in_array($ADAT['osztalyok'][$i]['osztalyId'], $ADAT['lezarandoOsztaly'])) $CHK = ' checked="checked" ';
+ else $CHK = '';
+ echo '<li>';
+ echo '<input id="chk'.$i.'" type="checkbox" name="lezarandoOsztaly[]" value="'.$ADAT['osztalyok'][$i]['osztalyId'].'" '.$CHK.'/>'."\n";
+ echo '<label for="chk'.$i.'">';
+ echo $ADAT['osztalyok'][$i]['osztalyJel'];
+ echo '</label>';
+ echo '</li>'."\n";
+ }
+
+ }
+ echo '</ul>'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml
new file mode 100644
index 00000000..2e9138bb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanev/vegzosTankorLezaras.phtml
@@ -0,0 +1,36 @@
+<?php
+
+ function putLezarandoOsztalyValaszto($ADAT) {
+
+ formBegin(array('class'=>'vegzos'));
+
+ echo '<input type="hidden" name="action" value="lezaras" />'."\n";
+
+ echo '<h2>'.$ADAT['tanev'].'</h2>';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['osztalyok']); $i++) {
+
+ if ($ADAT['osztalyok'][$i]['vegzoTanev'] == __TANEV && $ADAT['osztalyok'][$i]['kezdoTanev']<=__TANEV) {
+ if (in_array($ADAT['osztalyok'][$i]['osztalyId'], $ADAT['lezarandoOsztaly'])) $CHK = ' checked="checked" ';
+ else $CHK = '';
+ echo '<li>';
+ echo '<input id="chk'.$i.'" type="checkbox" name="lezarandoOsztaly[]" value="'.$ADAT['osztalyok'][$i]['osztalyId'].'" '.$CHK.'/>'."\n";
+ echo '<label for="chk'.$i.'">';
+ echo $ADAT['osztalyok'][$i]['osztalyJel'];
+ echo ' - '.($ADAT['osztalyok'][$i]['leiras']);
+ echo ' - '.($ADAT['osztalyok'][$i]['osztalyfonok']['tanarNev']);
+ echo '</label>';
+ echo '</li>'."\n";
+ }
+
+ }
+ echo '</ul>'."\n";
+ echo '<input type="text" readonly="readonly" name="dt" value="'.$ADAT['dt'].'" />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml
new file mode 100644
index 00000000..31cb5450
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetInfo.phtml
@@ -0,0 +1,67 @@
+<?php
+
+ function putTanmenetInfo($ADAT) {
+
+ global $skin;
+
+ echo '<fieldset class="alapadatok"><legend>'._ALAPADATOK.'</legend>'."\n";
+ if ($skin != 'ajax')
+ formBegin(array('class'=>'tanmenet'));
+
+ echo '<input type="hidden" name="tanmenetId" id="informTanmenetId" value="'.$ADAT['tanmenetId'].'" />'."\n";
+
+ echo '<p><span>'.$ADAT['tanmenetAdat']['evfolyamJel'].'.</span> '._EVFOLYAMJEL.' - <span>'
+ .$ADAT['tanmenetAdat']['targyNev'].'</span> - <span>'
+ .$ADAT['tanmenetAdat']['oraszam'].'</span> '._TANORA.'</p>'."\n";
+
+ echo '<p>'._TANMENETNEV.': <span>'.$ADAT['tanmenetAdat']['tanmenetNev'].'</span></p>'."\n";
+
+ echo '<p>'._KESZITETTE.': <span>'.$ADAT['tanmenetAdat']['tanarNev'].'</span> - '.'<span>'.dateToString($ADAT['tanmenetAdat']['dt']).'</span></p>'."\n";
+
+ echo '<p>'._ALLAPOT.': <span>'.$ADAT['tanmenetAdat']['statusz'].'</span></p>';
+
+ echo '</fieldset>'."\n";
+
+ /* -------------------------------- */
+ echo '<fieldset class="alapadatokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend><a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetTankor&tanarId='.$ADAT['tanarId'].'&targyId='.$ADAT['targyId']).'">'._HOZZARENDELT_TANKOROK.'</a></legend>';
+ echo __TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankor']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankor'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ if (count($ADAT['tanmenetAdat']['tankorNemAktualis'])>0) {
+ echo _MAS_TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankorNemAktualis']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ }
+ echo '</fieldset>'."\n";
+
+ /* -------------------------------- */
+
+
+ echo '<fieldset class="tema"><legend>'._TEMAKOROK.'</legend>'."\n";
+ $oraszam = 0;
+ echo '<ul id="temakor">'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['temakor']); $i++) {
+ echo '<li>';
+ echo '<span class="oraszam">'.($oraszam+1).'-'.($oraszam = $oraszam + $ADAT['tanmenetAdat']['temakor'][$i]['oraszam']);
+ echo '. '._TANORA.': ';
+ echo '</span>';
+ echo '<div class="megnevezes">'.nl2br(htmlspecialchars($ADAT['tanmenetAdat']['temakor'][$i]['temakorMegnevezes'])).'</div>'."\n";
+ echo '</li>'."\n";
+ }
+ echo '</ul>';
+ echo '</fieldset>'."\n";
+
+ if ($skin != 'ajax') formEnd();
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml
new file mode 100644
index 00000000..8670839a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetJovahagyas.phtml
@@ -0,0 +1,61 @@
+<?php
+
+ function _tanarNev($x) {
+ for ($i=0; $i<count($x); $i++) {
+ $T[] = '<span class="tanarNev" data-tanarId="'.$x[$i]['tanarId'].'">'.$x[$i]['tanarNev'].'</span>';
+ }
+ return implode(', ',$T);
+ }
+
+ function putTanmenetJovahagyas($ADAT) {
+
+ if (!is_array($ADAT['tankorok'])) return false;
+ echo '<table id="tanmenet">';
+ foreach ($ADAT['tankorok'] as $tkAdat) {
+
+ $tankorId = $tkAdat['tankorId'];
+ $tanmenetId = $ADAT['tankorTanmenet'][$tankorId];
+ $tmAdat = $ADAT['tanmenetAdat'][$tanmenetId];
+ $tmLeiras = ($tanmenetId == '')?'':($tmAdat['tanmenetNev'].' - ('.$tanmenetId.') - '.$ADAT['tanarok'][$tmAdat['tanarId']]['tanarNev']);
+ $class = ekezettelen($tmAdat['statusz']);
+ $href=href("index.php?page=naplo&sub=tanmenet&f=tanmenetInfo&tanmenetId=".$tanmenetId);
+
+ echo '<tr class="'.$class.'">';
+ echo '<th class="tankorAdat" data-tankorid="'.$tankorId.'">'.$tkAdat['tankorNev'].' ('.$tkAdat['tankorId'].')</th>';
+ echo '<td>'._tanarNev($tkAdat['tanarok']).'</td>';
+ echo '<td>';
+ if ($tanmenetId != '') echo '<a class="onClickUpdateWindow" title="tanmenet részletei..." href="'.$href.'">'.$tmLeiras.'</a>';
+ echo '</td>';
+
+ echo '<td>';
+ if ($tanmenetId != '') {
+ if (__JOVAHAGYHAT) {
+ formBegin(array('class'=>'tanmenet'));
+ echo '<input type="hidden" name="action" value="tanmenetModositas" />';
+ echo '<input type="hidden" name="mkId" value="'.$ADAT['mkId'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />';
+ echo '<input type="hidden" name="tanmenetId" value="'.$tanmenetId.'" />';
+ foreach (array('új','kész','jóváhagyott','publikus') as $statusz) {
+ $CHK = ($statusz == $tmAdat['statusz'])?' checked="checked" ':'';
+ echo '<input type="radio" name="statusz" value="'. $statusz.'"'.$CHK.' id="'.$tankorId.$statusz.'" />';
+ echo '<label for="'.$tankorId.$statusz.'">'.$statusz.'</label>';
+ }
+ echo '<input type="submit" value="'._OK.'" />';
+ formEnd();
+ } else {
+ echo $tmAdat['statusz'];
+ }
+ }
+ echo '</td>';
+
+
+ echo '</tr>';
+
+ }
+ echo '</table>';
+
+
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml
new file mode 100644
index 00000000..d862b093
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetLeadas.phtml
@@ -0,0 +1,38 @@
+<?php
+
+ function putTanmenetLeadas($ADAT) {
+
+ echo '<table class="tanmenet">'."\n";
+
+ echo '<tr>';
+ echo '<th rowspan="2">'._TANAR.'</th>';
+ echo '<th>'._JOVAHAGYOTT.'</th>'."\n";
+ echo '<th>'._NEM_JOVAHAGYOTT.'</th>'."\n";
+ echo '<th>'._FELKESZ.'</th>'."\n";
+ echo '<th>'._HIANYZO.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<th colspan="4">'._TANMENET.'</th>';
+ echo '</tr>'."\n";
+
+ for ($i = 0; $i < count($ADAT['tanarok']); $i++) {
+ echo '<tr>';
+
+ echo '<th class="tanarNev">';
+ echo '<a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetTankor&tanarId='.$ADAT['tanarok'][$i]['tanarId']).'">';
+ echo $ADAT['tanarok'][$i]['tanarNev'];
+ echo '</a>';
+ echo '</th>'."\n";
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['jóváhagyott'] == 0)?'':' class="jovahagyott"').'>'.$ADAT['tanarok'][$i]['db']['jóváhagyott'].'</td>';
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['kész'] == 0)?'':' class="nincsJovahagyva"').'>'.$ADAT['tanarok'][$i]['db']['kész'].'</td>';
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['új'] == 0)?'':' class="felkesz"').'>'.$ADAT['tanarok'][$i]['db']['új'].'</td>';
+ echo '<td'.(($ADAT['tanarok'][$i]['db']['hiányzik'] == 0)?'':' class="hianyzik"').'>'.$ADAT['tanarok'][$i]['db']['hiányzik'].'</td>';
+
+ echo '</tr>'."\n";
+ }
+
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml
new file mode 100644
index 00000000..628562b3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetModositas.phtml
@@ -0,0 +1,136 @@
+<?php
+
+ function putTanmenetModositasForm($ADAT) {
+
+ echo '<fieldset class="alapadatokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend>'._ALAPADATOK.'</legend>'."\n";
+ formBegin(array('class'=>'alapadatok'));
+ echo '<input type="hidden" name="action" value="tanmenetAdatModositas" />'."\n";
+ echo '<input type="hidden" name="tanmenetId" value="'.$ADAT['tanmenetId'].'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'" />'."\n";
+
+
+ $SEL = array($ADAT['tanmenetAdat']['evfolyamJel'] => ' selected="selected" ');
+ echo '<select name="evfolyamJel" id="evfolyamJel">'."\n";
+ for ($i = 0; $i < count($ADAT['evfolyamJelek']); $i++) {
+ echo '<option value="'.$ADAT['evfolyamJelek'][$i].'"'.$SEL[$ADAT['evfolyamJelek'][$i]].'>'.$ADAT['evfolyamJelek'][$i].'</option>'."\n";
+ }
+ echo '</select> '."\n";
+ echo '<label for="evfolyamJel">'._EVFOLYAMJEL.' </label>';
+
+ echo ' - '.$ADAT['tanmenetAdat']['targyNev'].' - ';
+
+ $SEL = array($ADAT['tanmenetAdat']['oraszam'] => ' selected="selected" ');
+ echo ' <select name="oraszam" id="tanmenetOraszam">'."\n";
+ for ($i = 1; $i < 1001; $i++) {
+ echo '<option value="'.$i.'"'.$SEL[$i].'>'.$i.'</option>'."\n";
+ }
+ echo '</select> '."\n";
+ echo '<label for="tanmenetOraszam">'._TANORA.': </label>';
+ echo '<br />';
+
+ echo '<label for="tanmenetNev">'._TANMENETNEV.': </label>';
+ echo '<input type="text" id="tanmenetNev" value="'.$ADAT['tanmenetAdat']['tanmenetNev'].'" name="tanmenetNev" />'."\n";
+ echo '<br />';
+
+ echo '<label>'._KESZITETTE.': </label>';
+ echo $ADAT['tanmenetAdat']['tanarNev'].' ('.$ADAT['tanmenetAdat']['tanarId'].') - ';
+ echo dateToString($ADAT['tanmenetAdat']['dt']);
+ echo '<br />';
+
+
+
+ echo '<label for="statusz">'._ALLAPOT.'</label> '."\n";
+ if (count($ADAT['statusz']) > 0) {
+ echo '<select name="statusz" id="statusz">';
+ $SEL = array($ADAT['tanmenetAdat']['statusz'] => ' selected="selected" ');
+ foreach ($ADAT['statusz'] as $statusz) {
+ echo '<option value="'.$statusz.'"'.$SEL[$statusz].'>'.$statusz.'</option>';
+ }
+ echo '</select>';
+ } else {
+ echo $ADAT['tanmenetAdat']['statusz'];
+ echo '<input type="hidden" name="statusz" value="'.$ADAT['tanmenetAdat']['statusz'].'" /><br />';
+ }
+ echo '<br />';
+
+ if (__NAPLOADMIN || __KESZITO) {
+ echo '<input type="checkbox" name="tanmenetTorol" value="1" />'._TOROL."\n";
+ }
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+ echo '</fieldset>'."\n";
+ /* -------------------------------- */
+ echo '<fieldset class="alapadatokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend><a href="'.href('index.php?page=naplo&sub=tanmenet&f=tanmenetTankor&tanarId='.$ADAT['tanarId'].'&targyId='.$ADAT['targyId']).'">'._HOZZARENDELT_TANKOROK.'</a></legend>'."\n";
+ echo __TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankor']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankor'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankor'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ if (count($ADAT['tanmenetAdat']['tankorNemAktualis'])>0) {
+ echo _MAS_TANEV.':';
+ echo '<ul>'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['tankorNemAktualis']); $i++) {
+ echo '<li><span class="tankorAdat" data-tankorid="'.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].'">'
+ .$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorNev'].' ('.$ADAT['tanmenetAdat']['tankorNemAktualis'][$i]['tankorId'].')</span></li>'."\n";
+ }
+ echo '</ul>'."\n";
+ }
+ echo '</fieldset>'."\n";
+ /* -------------------------------- */
+
+ $_D = (__MODOSITHAT===true)?'':' disabled="disabled" ';
+ echo '<fieldset class="temakorokfieldset '.ekezettelen($ADAT['tanmenetAdat']['statusz']).'"><legend>'._TEMAKOROK.'</legend>'."\n";
+ $FORM = array('action'=>href('index.php?page=naplo&sub=tanmenet&f=tanmenetModositas'), 'name'=>'tanmenetMod', 'class'=>'tanmenet onChangeRequest');
+ formBegin($FORM);
+
+
+ echo '<input type="hidden" name="action" value="tanmenetTemakorModositas" />'."\n";
+ echo '<input type="hidden" name="tanmenetId" value="'.$ADAT['tanmenetId'].'" />'."\n";
+
+ echo '<ul id="temakor">'."\n";
+ for ($i = 0; $i < count($ADAT['tanmenetAdat']['temakor']); $i++) {
+ echo '<li class="sortable">';
+
+ echo '<span class="handle"><img src="skin/classic/module-naplo/img/tanmenet/updown.png" alt="updown" /></span>'."\n";
+ echo '<img class="close" src="skin/classic/module-naplo/img/tanmenet/close.png" alt="close" />'."\n";
+ echo '<span class="oraszam">&nbsp;&nbsp;</span>';
+
+ $SEL = array($ADAT['tanmenetAdat']['temakor'][$i]['oraszam'] => ' selected="selected" ');
+ echo '<select name="oraszam[]" class="temakorOraszam"'.$_D.'>'."\n";
+ for ($o = 0; $o <= $ADAT['tanmenetAdat']['oraszam']; $o++) echo '<option value="'. $o.'"'.$SEL[$o].'>'.$o.'</option>'."\n";
+ echo '</select>'."\n";
+// echo '<input type="text" name="temakorMegnevezes[]" value="'.$ADAT['tanmenetAdat']['temakor'][$i]['temakorMegnevezes'].'" />'."\n";
+ echo '<textarea name="temakorMegnevezes[]"'.$_D.'>';
+ echo $ADAT['tanmenetAdat']['temakor'][$i]['temakorMegnevezes'];
+ echo '</textarea>';
+ echo '</li>'."\n";
+ }
+ if (__MODOSITHAT===true) {
+ echo '<li>';
+ echo '<span class="handle">&nbsp;&nbsp;</span>';
+ echo '<img class="close" src="skin/classic/module-naplo/img/tanmenet/close.png" alt="close" />'."\n";
+ echo '<span class="oraszam">&nbsp;-&nbsp;</span>';
+
+ echo '<select name="oraszam[]" class="uj">'."\n";
+ for ($o = 0; $o <= $ADAT['tanmenetAdat']['oraszam']; $o++) {
+ echo '<option value="'. $o.'">'.$o.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+// echo '<input type="text" name="temakorMegnevezes[]" value="" class="uj" />'."\n";
+ echo '<textarea name="temakorMegnevezes[]" class="uj"></textarea>';
+ echo '</li>';
+ echo '</ul>';
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ }
+
+ formEnd();
+ echo '</fieldset>'."\n";
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml
new file mode 100644
index 00000000..ea58a28f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/tanmenetTankor.phtml
@@ -0,0 +1,65 @@
+<?php
+
+ function putTankorLista($ADAT) {
+
+ echo '<div style="display: none;" id="infodiv">
+ <div id="infodivheader"><span id="infodivclose">X</span>'._TANMENET_RESZLETEI.'</div>';
+ formBegin(array('action'=>href('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo'), 'class'=>"onSubmitUpdate", 'id'=>"inform"));
+ echo '<input type="text" name="tanmenetId" id="informTanmenetId" value="" />'."\n";
+ formEnd();
+ echo '</div>'."\n";
+
+ echo '<table class="tanmenet">';
+ echo '<tr>';
+ echo '<th>'._TANKORNEV.'</th>';
+ echo '<th>'._TANMENET.'</th>';
+ echo '</tr>'."\n";
+ foreach ($ADAT['tankorok'] as $key => $tAdat) {
+ $sClass = kisbetus(ekezettelen($ADAT['tanmenetAdat'][ $ADAT['tankorTanmenet'][$tAdat['tankorId']] ]['statusz']));
+ echo '<tr class="'.$sClass.'">';
+ echo '<td class="nev tankorAdat" data-tankorid="'.$tAdat['tankorId'].'">'.$tAdat['tankorNev'].' ('.$tAdat['tankorId'].')'.'</td>'."\n";
+
+ echo '<td class="tanmenet">';
+ formBegin(array('class'=>'tanmenet'));
+ echo '<input type="hidden" name="tanarId" value="'.$ADAT['tanarId'].'" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tAdat['tankorId'].'" />'."\n";
+ echo '<input type="hidden" name="action" value="hozzarendeles" />'."\n";
+ echo '<select name="tanmenetId" class="onChangeUpdateGomb '.$sClass.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $gomb = 'info'; // módosítható, vagy csak megnézhető a tanmenet?
+ foreach ($ADAT['tanmenetek'][ $tAdat['targyId'] ] as $key => $tanmenetAdat) {
+ $class = kisbetus(ekezettelen($tanmenetAdat['statusz']));
+ if ($ADAT['tankorTanmenet'][$tAdat['tankorId']] == $tanmenetAdat['tanmenetId']) {
+ echo '<option value="'.$tanmenetAdat['tanmenetId'].'" selected="selected" class="'.$class.'">';
+ echo $tanmenetAdat['tanmenetNev'].' - '.$tanmenetAdat['tanarNev'].' ('.$tanmenetAdat['tanmenetId'].') - '.$tanmenetAdat['statusz'];
+ echo '</option>'."\n";
+ if ($tanmenetAdat['modosithato']) $gomb = 'modosit';
+ } else {
+ echo '<option value="'.$tanmenetAdat['tanmenetId'].'" class="'.$class.'">'
+ .$tanmenetAdat['tanmenetNev'].' - '.$tanmenetAdat['tanarNev'].' ('.$tanmenetAdat['tanmenetId'].') - '.$tanmenetAdat['statusz']
+ .'</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ echo '<div class="submitContainer">';
+ echo '<input type="submit" name="info" class="info" value="'._INFO.'" />'."\n";
+ echo '<input type="submit" name="modosit" class="modosit" value="'._MODOSIT.'" />'."\n";
+ if (__MODOSITHAT) {
+ echo '<input type="submit" name="hozzarendeles" value="'._HOZZARENDELES.'" />'."\n";
+ if (__TANAR) {
+ echo '<input type="submit" name="masolas" value="'._UJ_A_KIVALASZTOTT_ALAPJAN.'" />'."\n";
+ echo '<input type="submit" name="uj" value="'._UJ_LETREHOZASA.'" />'."\n";
+ }
+ }
+ echo '</div>';
+ formEnd();
+ echo '</td>';
+
+ echo '</tr>'."\n";
+
+ }
+ echo '</table>'."\n";
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml
new file mode 100644
index 00000000..5616edda
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/tanmenet/ujTanmenet.phtml
@@ -0,0 +1,31 @@
+<?php
+
+ function putUjTanevForm($ADAT) {
+
+ echo '<div id="ujTanmenet"><div class="tanmenetHeader">'._UJ_TANMENET.'</div>';
+
+ formBegin(array('class'=>'tanmenet'));
+
+ echo '<input type="hidden" name="action" value="ujTanmenet">'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$ADAT['tankorId'].'">'."\n";
+ echo '<input type="hidden" name="targyId" value="'.$ADAT['targyId'].'">'."\n";
+ echo '<input type="hidden" name="evfolyamJel" value="'.$ADAT['evfolyamJel'].'">'."\n";
+
+ echo '<label for="tanmenetNev">'._TANMENETNEV.'</label><br />'."\n";
+ echo '<input type="text" name="tanmenetNev" id="tanmenetNev" value="" /><br />'."\n";
+
+ echo '<label for="oraszam">'._EVES_ORASZAM.'</label>'."\n";
+ echo '<select name="oraszam" id="oraszam">'."\n";
+ for ($i=1; $i < 1001; $i++) {
+ echo '<option value="'.$i.'">'.$i.'</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+ echo '</div>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/uzeno/postas.phtml b/mayor-orig/www/skin/classic/module-naplo/html/uzeno/postas.phtml
new file mode 100644
index 00000000..65a45fae
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/uzeno/postas.phtml
@@ -0,0 +1,81 @@
+<?php
+
+ /* mert nem egységes a kapott eredmény */
+ function _convert(&$ADAT) {
+ foreach ( array('tankorSzulo') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['r'][$_t]); $i++) {
+ if ($ADAT['r'][$_t][$i]['tankorNev']!='') $ADAT['r'][$_t][$i][$_t.'Nev'] = $ADAT['r'][$_t][$i]['tankorNev'];
+ }
+ }
+ foreach ( array('osztaly','osztalySzulo','osztalyTanar') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['r'][$_t]); $i++) {
+ if ($ADAT['r'][$_t][$i][$_t.'Nev']=='')
+ $ADAT['r'][$_t][$i][$_t.'Nev'] = $ADAT['r'][$_t][$i]['osztalyJel'].' '.$ADAT['r'][$_t][$i]['leiras'];
+ }
+ }
+ }
+
+ function putUzenoPostazo($ADAT) {
+
+ _convert($ADAT);
+ $reassoc = array('tankorSzulo'=>'tankor','osztalySzulo'=>'osztaly', 'osztalyTanar'=>'osztaly');
+ $allowedZero = array('diak','szulo','tanar');
+
+ echo '<input type="hidden" name="mayorToken" class="mayorToken" value="'.$_SESSION['mayorToken'].'" />'; // rendhagyó eset, mert az egész tartalmat lecseréli az onLoadUpdate, és a form-tól kezdjük...
+ echo '<input type="hidden" name="kuuk" value="'.$ADAT['kuuk'].'" />';
+ echo '<input type="hidden" name="tanev" value="'.$ADAT['tanev'].'" />';
+ echo '<table class="ujUzenet" align="center">';
+ echo '<tr><th>'._UJ_UZENET;
+ if (__UZENOADMIN ===true && $ADAT['user']['feladoTipus']!='admin') {
+ echo ' <select id="asWho" name="asWho" class="onChangeUpdate">';
+ $_SEL = ($ADAT['asWho']!='asAdmin') ? 'selected="selected"' : '';
+ echo '<option value="asAdmin">'._ADMINKENT.'</option>';
+ echo '<option value="asIs" '. $_SEL .'>'.constant('_'.strtoupper($ADAT['user']['feladoTipus']).'KENT').'</option>';
+ echo '</select>';
+ }
+ echo '</th></tr>';
+
+ echo '<tr><td>';
+ echo _CIMZETT.': ';
+// echo '<span style="" id="uzenoSearchIcon"><img src="/skin/classic/module-naplo/img/toolSearch.png" alt="ዖ" style="height:15px; width:15px;" align="middle" class="searchIcon"/>'.'</span>';
+ echo '<span style="font-size:15px; cursor:pointer" id="uzenoSearchIcon">⌕</span>';
+ echo '<input style="display:none" type="text" name="pattern" id="pattern" class="onChangeUpdate" placeholder="'._NEV.'" />';
+ echo '<button style="display:none" type="button">'._KERES.'</button>';
+ if (is_array($ADAT['r'])) {
+ echo '<input type="hidden" name="diakokkal" value="1" /> ';
+ echo '<select name="cimzett" id="cimzett">';
+ echo '<option value="">'._VALASSZ.'</option>';
+ foreach($ADAT['r'] as $tipus => $V) {
+ if (is_array($V)) {
+ /* Ha nincs Id, próbáljuk meg kiegészítő megjegyzés (Szulo,Tanar) nélkül */
+ $keyName = ($reassoc[$tipus]!='' && $V[0][$tipus.'Id']=='') ? $reassoc[$tipus].'Id' : $tipus.'Id';
+ $valueName= $tipus.'Nev';
+ $kiir = @constant('_T'.strtoupper($tipus));
+ echo '<optgroup label="'.$kiir.'" class="'.$tipus.'">';
+ //if (in_array($tipus,$allowedZero)) echo '<option value="'.$tipus.'|0">'._MINDEN.' '.$kiir.'</option>';
+ for ($i=0; $i<count($V); $i++) {
+ $_dis = ($V[$i][$keyName]!=='') ? '' : 'disabled="disabled"'; /* !== */
+ $_val = ($V[$i][$valueName]!='') ? $V[$i][$valueName].' ('.$V[$i][$keyName].')' : constant('_TP'.strtoupper($tipus));
+ if ($_val!='') {
+ if (!($V[$i][$keyName]==__MEID && $tipus==__SZEREP)) {
+ echo '<option value="'.$tipus.'|'.$V[$i][$keyName].'" '.$_dis.'>'.$_val.'</option>';
+ }
+ }
+ if ($i%10==0) echo "\n";
+ }
+ echo '</optgroup>';
+ }
+ }
+ echo '</select>';
+ }
+ echo '<span id="shTipus"></span>';
+ echo '</td></tr>';
+ echo '<tr><td>';
+ echo '<textarea name="txt" id="postazoTxt" style="display:" ></textarea>';
+ echo '<input type="hidden" name="postazoHash" id="postazoHash" value="" />';
+ echo '<button type="submit" id="postazoButton" name="gomb" value="OK" class="DOA" style="display:">'._KULD.'</button>';
+ echo '</td></tr></table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml b/mayor-orig/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml
new file mode 100644
index 00000000..24304570
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/html/uzeno/uzeno.phtml
@@ -0,0 +1,434 @@
+<?php
+
+ /* WHOAMI: __SZEREP.__MEID */
+ global $IMG;
+ $IMG = array(
+ 'diak' => '<span class="icon-child"></span>',
+ 'szulo' => '<span class="icon-adult"></span>',
+ 'tanar' => '<span class="icon-adult"></span>',
+ 'munkakozosseg' => '<span class="icon-slideshare"></span>',
+ 'tankor' => '<span class="icon-myspace"></span>',
+ 'tankorSzulo' => '<span class="icon-group-alt"></span>',
+ 'osztaly' => '<span class="icon-group"></span>',
+ 'osztalySzulo' => '<span class="icon-adult"></span>',
+ 'osztalyTanar' => '<span class="icon-slideshare"></span>',
+ );
+
+ $TATA = array();
+
+ function fillTata($ADAT) {
+
+ global $TATA;
+ foreach ( array('tankor','tankorSzulo') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['tagsagok'][$_t]); $i++) {
+ $TATA[$_t][$ADAT['tagsagok'][$_t][$i]['tankorId']] = $ADAT['tagsagok'][$_t][$i]['tankorNev'];
+ }
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['diak']); $i++) {
+ $TATA['diak'][$ADAT['tagsagok']['diak'][$i]['diakId']] = $ADAT['tagsagok']['diak'][$i]['diakNev'].' ('.$ADAT['tagsagok']['diak'][$i]['diakId'].')';
+
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['tanar']); $i++) {
+ $TATA['tanar'][$ADAT['tagsagok']['tanar'][$i]['tanarId']] = $ADAT['tagsagok']['tanar'][$i]['tanarNev'];
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['szulo']); $i++) {
+ $_szuloId = $ADAT['tagsagok']['szulo'][$i]['szuloId'];
+ $TATA['szulo'][$_szuloId] = $ADAT['tagsagok']['szulo'][$i]['szuloNev'];
+ for ($j=0; $j<count($ADAT['szuloDiakjai'][$_szuloId]); $j++) {
+ $TATA['szulo'][$_szuloId].= ' ('.$ADAT['szuloDiakjai'][$_szuloId][$j]['diakNev'].')';
+ }
+ }
+ for ($i=0; $i<count($ADAT['tagsagok']['munkakozosseg']); $i++) {
+ $TATA['munkakozosseg'][$ADAT['tagsagok']['munkakozosseg'][$i]['munkakozossegId']] = $ADAT['tagsagok']['munkakozosseg'][$i]['munkakozossegNev'];
+ }
+ foreach ( array('osztaly','osztalySzulo','osztalyTanar') as $_i => $_t ) {
+ for ($i=0; $i<count($ADAT['tagsagok'][$_t]); $i++) {
+ $TATA[$_t][$ADAT['tagsagok'][$_t][$i]['osztalyId']] = $ADAT['tagsagok'][$_t][$i]['osztalyJel'];
+ }
+ }
+ }
+
+ function putUzeno($ADAT) {
+
+ if ($ADAT['uzenetek']===false) return false;
+
+ global $TATA,$skin,$IMG;
+ if (!is_array($TATA) || count($TATA)==0) fillTata($ADAT);
+
+ $kepMutat = $ADAT['kepMutat'];
+ $colspan=5;
+ $_colspan=1;
+
+ if ($ADAT['cimzettId']!='') $filterClear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId=&cimzettTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+ if ($ADAT['feladoId']!='') $filter2Clear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId=&feladoTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+
+ if ($ADAT['szalId']!='') {
+ putUzenetSzal($ADAT);
+ } elseif ($ADAT['mId']!='') {
+ putEgyUzenet($ADAT);
+ } else {
+
+ echo '<table class="uzeno" border="0" align="center" cellspacing="1">';
+// echo '<thead><tr><th class="dt" colspan="'.$_colspan.'">'._DATUM.', '._FELADO.$filter2Clear.'</th>
+// <th colspan="'.($_colspan+1).'" class="cimzett">'._CIMZETT.$filterClear.'</th><th>'._SZOVEG.'</th><th></th></tr></thead>';
+ echo '<thead><tr><th colspan="5"><a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno').'">'.'Üzenő'.'</a></th></tr>';
+ echo '<tfoot><tr><th colspan="'.$colspan.'">';
+ if ($skin=='ajax' && $ADAT['limits']!='') {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno');
+ echo _LEGFRISSEBB.' '.count($ADAT['uzenetek']).', ';
+ echo '<a href="'.$href.'" >'._MINDMUTAT.'</a>';
+ } else {
+ echo _OSSZESEN.': '.intval($ADAT['limits']['max']);
+ }
+ echo '</th></tr></tfoot>';
+
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['uzenetek']); $i++) {
+ $D = $ADAT['uzenetek'][$i];
+ $_class = array();
+ $_class[] = ($D['flag']==1) ? 'olvasott':'uj';
+ $_class[] = $D['cimzettTipus'];
+ if ($D['cimzettId']==0) $_class[] = 'asterix';
+ echo '<tr class="'.implode(' ',$_class).'">';
+
+ echo '<td class="felado">';
+ if ($kepMutat && ($_f = putFace($D['feladoId'],$D['feladoTipus'],false,false))) {
+ echo '<div class="face" style="margin-right:4px; display:table-cell;">'.$_f.'</div>';
+ }
+ echo '<div class="nev--container">';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus']).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a><br/>';
+ echo '<span class="dt">'._dt($D['dt']).'</span>';
+ echo '</div>';
+ echo '</td>';
+ echo '<th style="text-align: center; color:white;">';
+ echo (($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['cimzettTipus']]);
+ echo '</th>';
+ echo '<td class="cimzett">';
+/*
+ if ($kepMutat && ($_f=putFace($D['cimzettId'],$D['cimzettTipus'],false,false))) {
+ echo '<div class="face" style="display:table-cell">';
+ echo $_f;
+ echo '</div>';
+ }
+*/ echo '<div class="nev--container">';
+ //echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['cimzettId'].'&cimzettTipus='.$D['cimzettTipus'],array('sessionID','policy','lang')).'">';
+ echo _szerepNev($D['cimzettTipus'],$D['cimzettId']);
+ //echo '</a>';
+ echo '</div>';
+ echo '</td>';
+
+ echo '<td class="uzenet">';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ $href_szal = href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$D['feladoId'].'_'.$D['feladoTipus'].'_'.$D['cimzettId'].'_'.$D['cimzettTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+
+ // $D['txt'] = '<a href="'.$href_szal.'">'.nl2br(htmlspecialchars($D['txt'])).'</a>';
+ $D['txt'] = makelinksclickable(nl2br(supertext($D['txt'])));
+ echo (mb_substr($D['txt'],0,2000,'UTF-8'));
+ if (mb_strlen($D['txt'],'UTF-8')>2000) {
+ echo ' <a class="more" href="'.$href.'">...</a>';
+ } else {
+ //echo ' <a class="more" href="'.$href.'"><span class="icon-return-key"></span></a>';
+ }
+
+ echo '</td>';
+
+ echo '<td class="uzenoEszkozok">';
+ if (__UZENOADMIN) {
+ } elseif ($D['flag']!=1) {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag='.(1).'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a href="'.$href.'"><span class="icon-check"></span></a><br/>';
+ }
+
+ echo ' <a href="'.$href_szal.'"><span class="icon-share-alt"></span></a><br/>';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a class="del" href="'.$href.'"><span class="icon-trash-alt"></span></a>';
+
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ if ($skin=='ajax') {
+ echo '<tbody><tr><th style="height: 30px;vertical-align:middle;" colspan="'.$colspan.'">';
+ if ($ADAT['limits']['max']>$i) echo '<div class="_dotHolder"><a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno').'"><div class="_dot"></div> <div class="_dot"></div> <div class="_dot"></div></a></div>';
+ echo '</th></tr></tbody>';
+ }
+ echo '</table>';
+
+ if ($skin!='ajax') {
+ _putLapozo($ADAT['limits'],'index.php?page=naplo&sub=uzeno&f=uzeno&feladoTipus='.$ADAT['feladoTipus'].'&feladoId='.$ADAT['feladoId'].'&cimzettTipus='.$ADAT['cimzettTipus'].'&cimzettId='.$ADAT['cimzettId']);
+ } else {
+ }
+
+ }
+
+ }
+
+ function putUzeno_DEPRECATED($ADAT) {
+
+ if ($ADAT['uzenetek']===false) return false;
+
+ global $TATA,$skin,$IMG;
+ if (!is_array($TATA) || count($TATA)==0) fillTata($ADAT);
+
+ $kepMutat = $ADAT['kepMutat'];
+// $kepMutat=false;
+ $colspan=5;
+ $_colspan=1;
+/* if ($kepMutat) {
+ $colspan+=2;
+ $_colspan++;
+ }
+*/ // Üzenetek
+ if ($ADAT['szalId']!='') putUzenetSzal($ADAT);
+ elseif ($ADAT['mId']!='') putEgyUzenet($ADAT);
+ else {
+
+ if ($ADAT['cimzettId']!='') $filterClear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId=&cimzettTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+ if ($ADAT['feladoId']!='') $filter2Clear = '<br/><a class="more" href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId=&feladoTipus=&mId='.$ADAT['mId']).'">'._CLEARFILTER.'</a>';
+
+ echo '<table class="uzeno" border="0" align="center" cellspacing="1">';
+ echo '<thead><tr><th class="dt" colspan="'.$_colspan.'">'._DATUM.', '._FELADO.$filter2Clear.'</th>
+ <th colspan="'.($_colspan+1).'" class="cimzett">'._CIMZETT.$filterClear.'</th><th>'._SZOVEG.'</th><th></th></tr></thead>';
+ echo '<tfoot><tr><th colspan="'.$colspan.'">';
+ if ($skin=='ajax' && $ADAT['limits']!='') {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno');
+ echo _LEGFRISSEBB.' '.count($ADAT['uzenetek']).', ';
+ echo '<a href="'.$href.'" >'._MINDMUTAT.'</a>';
+ } else {
+ echo _OSSZESEN.': '.intval($ADAT['limits']['max']);
+ }
+ echo '</th></tr></tfoot>';
+
+ echo '<tbody>';
+ for ($i=0; $i<count($ADAT['uzenetek']); $i++) {
+ $D = $ADAT['uzenetek'][$i];
+ $_class = array();
+ $_class[] = ($D['flag']==1) ? 'olvasott':'uj';
+ $_class[] = $D['cimzettTipus'];
+ if ($D['cimzettId']==0) $_class[] = 'asterix';
+ echo '<tr class="'.implode(' ',$_class).'">';
+ echo '<td class="felado">';
+ if ($kepMutat && ($_f = putFace($D['feladoId'],$D['feladoTipus'],false,false))) {
+ echo '<div class="face" style="margin-right:4px; display:table-cell;">'.$_f.'</div>';
+ }
+ echo '<div class="nev--container">';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus']).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a><br/>';
+ echo '<span class="dt">'._dt($D['dt']).'</span>';
+ echo '</div>';
+ echo '</td>';
+ echo '<th style="text-align: center; color:white;">';
+ echo (($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['cimzettTipus']]);
+ echo '</th>';
+ echo '<td class="cimzett">';
+ if ($kepMutat && ($_f=putFace($D['cimzettId'],$D['cimzettTipus'],false,false))) {
+ echo '<div class="face" style="display:table-cell">';
+ echo $_f;
+ echo '</div>';
+ }
+ echo '<div class="nev--container">';
+ //echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['cimzettId'].'&cimzettTipus='.$D['cimzettTipus'],array('sessionID','policy','lang')).'">';
+ echo _szerepNev($D['cimzettTipus'],$D['cimzettId']);
+ //echo '</a>';
+ echo '</div>';
+ echo '</td>';
+
+ echo '<td class="uzenet">';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&feladoId='.$D['feladoId'].'&feladoTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ $href_szal = href('index.php?page=naplo&sub=uzeno&f=uzeno&szalId='.$D['feladoId'].'_'.$D['feladoTipus'].'_'.$D['cimzettId'].'_'.$D['cimzettTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy'));
+
+ $D['txt'] = '<a href="'.$href_szal.'">'.nl2br(htmlspecialchars($D['txt'])).'</a>';
+ echo (mb_substr($D['txt'],0,2000,'UTF-8'));
+ if (mb_strlen($D['txt'],'UTF-8')>2000) {
+ echo ' <a class="more" href="'.$href.'">...</a>';
+ } else {
+ //echo ' <a class="more" href="'.$href.'"><span class="icon-return-key"></span></a>';
+ }
+
+ echo '</td>';
+
+ echo '<td>';
+ if (__UZENOADMIN) {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=delUzenet&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a class="del" href="'.$href.'"><span class="icon-trash-alt"></span></a>';
+ } elseif ($D['flag']!=1) {
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag='.(1).'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a href="'.$href.'"><span class="icon-check"></span></a>';
+ }
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ if ($skin!='ajax') _putLapozo($ADAT['limits'],'index.php?page=naplo&sub=uzeno&f=uzeno&feladoTipus='.$ADAT['feladoTipus'].'&feladoId='.$ADAT['feladoId'].'&cimzettTipus='.$ADAT['cimzettTipus'].'&cimzettId='.$ADAT['cimzettId']);
+
+ }
+
+ }
+
+
+
+
+ function _szerepNev($tipus,$id) {
+ global $TATA;
+ if ($id==0 && defined('_TP'.strtoupper($tipus))) return '&laquo;'.constant('_TP'.strtoupper($tipus)).'&raquo;';
+ elseif($id==0 and $tipus=='') return '&laquo;admin&raquo;';
+ else return ($TATA[$tipus][$id]!='') ? $TATA[$tipus][$id] : '-n/a-' ;
+ }
+
+ function putUzenoUzenet($ADAT) {
+
+ if (__SZEREP=='') return;
+
+ global $TATA;
+ if (!is_array($TATA) || count($TATA)==0) fillTata($ADAT);
+ $feladoId = (__SZEREP=='admin')? 0:setUzenoFeladoId();
+ $KEYS = array_keys($ADAT['tagsagok']);
+// if (is_null($ADAT['replyTipus'])) $ADAT['replyTipus']=$KEYS[0];
+
+ if ($ADAT['feladoId']=='' || $ADAT['mId']>0) {
+
+ formBegin(array('method'=>'post','action'=>href('index.php?page=naplo&sub=uzeno&f=postas&mId='.$ADAT['mId']), 'id'=>'uzenoKereso', 'class'=>'onLoadUpdate'));
+ formEnd();
+
+ } else { /* RÉGI UI */
+
+ }
+
+ }
+
+ function putUzenetSzal($ADAT) {
+ global $IMG;
+ $U=$ADAT['uzenetek'];
+
+ list($s1,$s2,$s3,$s4) = explode('_',$ADAT['szalId']);
+
+ echo '<table id="uzenetek" class="uzenetSzal '.$s4.'" align="center" cellspacing="1">';
+ echo '<thead><tr><th>'._DATUM.'</th><th colspan="2">'._FELADO.'</th><th>'._UZENET.'</th></tr></thead>';
+ echo '<tfoot><tr><th>'.'</th><th colspan="2">'.'</th><th>'.'</th></tr></tfoot>';
+ echo '<tbody>';
+ for ($i=0; $i<count($U); $i++) {
+ $D = $U[$i];
+ $_meclass = (__MEID==$D['feladoId'] && __SZEREP==$D['feladoTipus'])? 'uzenetSajat':'uzenetPartner';
+ echo '<tr class="'.$_meclass.' '.$D['feladoTipus'].'" id="mId_'.$D['mId'].'">';
+ echo '<td class="uzenetDt">';
+ //echo $U[$i]['mId'];
+ echo _dt($U[$i]['dt']);
+ echo '</td>';
+ echo '<th style="color:white; width:20px;">';
+ echo (($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['feladoTipus']]);
+ echo '</th>';
+ echo '<td class="uzenetSzerep">';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['feladoId'].'&cimzettTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy')).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a>';
+ echo '</td><td class="uzenet">';
+ echo '<div>'.makelinksclickable(nl2br(supertext($U[$i]['txt']))).'</div>';
+ echo '</td></tr>';
+ }
+ echo '</tbody></table>';
+ }
+
+ function putEgyUzenet($ADAT) {
+
+ global $IMG;
+ //--FIXME
+ for ($i=0; $i<count($ADAT['uzenetek']); $i++) {
+ if ($ADAT['uzenetek'][$i]['mId']==$ADAT['mId']) {
+ $D = $ADAT['uzenetek'][$i];
+ break;
+ }
+ }
+ echo '<table border="0" cellspacing="1" align="center" class="uzeno egyUzenet">';
+ echo '<thead><tr><th>';
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&mId=',array('sessionID','lang','policy'));
+ //echo '<a class="more" href="'.$href.'"><span class="icon-inbox-box"></span></a>';
+
+ $_class = array('more');
+ if ($D['flag']==1) {
+ $_class[] = 'uj';
+ $_flag=0;
+ } else {
+ $_flag=1;
+ $_class[] = 'olvasott';
+ }
+ $href = href('index.php?page=naplo&sub=uzeno&f=uzeno&action=flagUzenet&flag='.($_flag).'&mId='.$D['mId'],array('sessionID','lang','policy'));
+ echo ' <a class="'.implode(' ',$_class).'" href="'.$href.'"><span class="icon-check"></span></a>';
+ echo '</th><th>'._DATUM.'</th><th>'._FELADO.'</th><th colspan="2">'._CIMZETT.'</th></tr></thead>';
+ echo '<tbody>';
+
+ $_class = array();
+ $_class[] = $D['cimzettTipus'];
+ echo '<tr class="'.implode(' ',$_class).'">';
+ echo '<td colspan="2">'._dt($D['dt']).'</td>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['feladoId'].'&cimzettTipus='.$D['feladoTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy')).'">';
+ echo _szerepNev($D['feladoTipus'], $D['feladoId'] );
+ echo '</a>';
+ echo '</td>';
+ echo '<th>'.(($D['cimzettId']==0)?'<span class="icon-globe"></span>':$IMG[$D['cimzettTipus']]).'</th>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=uzeno&f=uzeno&cimzettId='.$D['cimzettId'].'&cimzettTipus='.$D['cimzettTipus'].'&mId='.$D['mId'],array('sessionID','lang','policy')).'">';
+ echo _szerepNev($D['cimzettTipus'],$D['cimzettId']);
+ echo '</a>';
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td colspan="5" class="content">';
+ echo makelinksclickable(nl2br(supertext($U[$i]['txt']))); // echo nl2br(htmlspecialchars($D['txt']));
+ echo '</td>';
+ echo '</tr>'."\n";
+
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+ function _putLapozo($LIMITS,$base='index.php?page=naplo&sub=uzeno&f=uzeno') {
+
+ $limit = intval($LIMITS['limit']);
+ $darab = intval($LIMITS['max']);
+ $mutato = intval($LIMITS['mutato']);
+ $tol = ($mutato-5);
+ $ig = ($mutato+5);
+ if ($tol<1) $tol=1;
+ if ($limit==0) $limit=1;
+ if ($ig>ceil($darab/$limit)) $ig=ceil($darab/$limit);
+ echo '<table class="lapozo" align="center" cellspacing="0" cellpadding="0">';
+ echo '<tr><td>';
+ echo '<table align="right" cellspacing="1" cellpadding="1">';
+ echo '<tr>';
+ echo '<th class="title">'._LAPOZO.'</th>';
+ if ($tol>1) {
+ echo '<td class="nav"><a href="'.href($base.'&mutato=1').'">1</a></td>';
+ echo '<td class="nav"><a href="'.href($base.'&mutato='.($tol-1)).'">&lt;</a></td>';
+ }
+ for ($i=$tol; $i<=$ig; $i++) {
+ if ($i==$mutato) echo '<td class="aktiv">';
+ else echo '<td>';
+ echo '<a href="'.href($base.'&mutato='.$i).'">';
+ echo $i;
+ echo '</a>';
+ echo '</td>';
+ }
+ if ($ig<ceil($darab/$limit)) {
+ echo '<td class="nav"><a href="'.href($base.'&mutato='.$i).'">&gt;</a></td>';
+ echo '<td class="nav"><a href="'.href($base.'&mutato='.ceil($darab/$limit)).'">'.ceil($darab/$limit).'</a></td>';
+ }
+ echo '</tr>';
+ echo '</table>';
+ echo '</td></tr>';
+ echo '</table>'."\n";
+
+ }
+
+ function _dt($dt) {
+ return superdate($dt); // date('Y.m.d. H:i',strtotime($dt));
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/anim/garfield.gif b/mayor-orig/www/skin/classic/module-naplo/img/anim/garfield.gif
new file mode 100644
index 00000000..fb86107d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/anim/garfield.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/anim/kutya.gif b/mayor-orig/www/skin/classic/module-naplo/img/anim/kutya.gif
new file mode 100644
index 00000000..fafc80cf
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/anim/kutya.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/anim/majom.gif b/mayor-orig/www/skin/classic/module-naplo/img/anim/majom.gif
new file mode 100644
index 00000000..b755ec47
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/anim/majom.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/anim/nyuszi.gif b/mayor-orig/www/skin/classic/module-naplo/img/anim/nyuszi.gif
new file mode 100644
index 00000000..a6aec1eb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/anim/nyuszi.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/anim/pingvin.gif b/mayor-orig/www/skin/classic/module-naplo/img/anim/pingvin.gif
new file mode 100644
index 00000000..f594b832
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/anim/pingvin.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/anim/smiley.gif b/mayor-orig/www/skin/classic/module-naplo/img/anim/smiley.gif
new file mode 100644
index 00000000..cc8d1d84
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/anim/smiley.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/anim/tux-hard.gif b/mayor-orig/www/skin/classic/module-naplo/img/anim/tux-hard.gif
new file mode 100644
index 00000000..849f1eeb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/anim/tux-hard.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/cr.png b/mayor-orig/www/skin/classic/module-naplo/img/cr.png
new file mode 100644
index 00000000..af1327bd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/cr.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/fel.gif b/mayor-orig/www/skin/classic/module-naplo/img/fel.gif
new file mode 100644
index 00000000..75f4ecc0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/fel.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/flipper/adatok.gif b/mayor-orig/www/skin/classic/module-naplo/img/flipper/adatok.gif
new file mode 100644
index 00000000..ea7c271a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/flipper/adatok.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/flipper/nevsor.gif b/mayor-orig/www/skin/classic/module-naplo/img/flipper/nevsor.gif
new file mode 100644
index 00000000..cbb71a41
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/flipper/nevsor.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/csere.gif b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/csere.gif
new file mode 100644
index 00000000..f8473beb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/csere.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/kez.gif b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/kez.gif
new file mode 100644
index 00000000..c10fb1e6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/kez.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/mozgat.gif b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/mozgat.gif
new file mode 100644
index 00000000..9944bf0f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/mozgat.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/ora.gif b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/ora.gif
new file mode 100644
index 00000000..83150a51
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/helyettesites/ora.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/change.png b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/change.png
new file mode 100644
index 00000000..3d2ede90
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/change.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/felkjel.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/felkjel.gif
new file mode 100644
index 00000000..aef9774c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/felkjel.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/green.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/green.gif
new file mode 100644
index 00000000..b7ff93ad
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/green.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/h.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/h.gif
new file mode 100644
index 00000000..114e8915
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/h.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/i.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/i.gif
new file mode 100644
index 00000000..1ebdce34
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/i.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/pin.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/pin.gif
new file mode 100644
index 00000000..2b7ace0f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/pin.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red-pin.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red-pin.gif
new file mode 100644
index 00000000..cbfe111a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red-pin.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red.gif
new file mode 100644
index 00000000..ff9599e7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/red.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/sum.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/sum.gif
new file mode 100644
index 00000000..92d701f3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/sum.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gif
new file mode 100644
index 00000000..7f98aab5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/ter-pin.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gif
new file mode 100644
index 00000000..53b28ec8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow-pin.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow.gif b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow.gif
new file mode 100644
index 00000000..414d28eb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hianyzas/yellow.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.gif b/mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.gif
new file mode 100644
index 00000000..c5248ef9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg b/mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg
new file mode 100644
index 00000000..b108abfd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/hibabejelento/buggie.svg
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<svg width="95" height="125" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <linearGradient id="linearGradient3703">
+ <stop stop-color="#e4bc98" offset="0" id="stop3705"/>
+ <stop stop-color="#f6daaa" stop-opacity="0" offset="1" id="stop3707"/>
+ </linearGradient>
+ <linearGradient id="linearGradient3666">
+ <stop stop-color="#363433" offset="0" id="stop3668"/>
+ <stop stop-color="#363433" stop-opacity="0" offset="1" id="stop3670"/>
+ </linearGradient>
+ <linearGradient id="linearGradient3652">
+ <stop stop-color="#ffffff" offset="0" id="stop3654"/>
+ <stop stop-color="#ffffff" stop-opacity="0" offset="1" id="stop3656"/>
+ </linearGradient>
+ <linearGradient id="linearGradient3642">
+ <stop stop-color="#f6daaa" offset="0" id="stop3644"/>
+ <stop stop-color="#e4bc98" offset="1" id="stop3646"/>
+ </linearGradient>
+ <linearGradient xlink:href="#linearGradient3642" id="linearGradient3648" y2="0.938928" x2="0.098695" y1="0.78993" x1="0.214359"/>
+ <linearGradient xlink:href="#linearGradient3666" id="linearGradient3672" y2="0.216444" x2="0.233001" y1="0.231275" x1="0.398698"/>
+ <radialGradient gradientTransform="matrix(0.58653594,0.29353285,-1.1940084,2.3858619,93.617419,-112.22316)" gradientUnits="userSpaceOnUse" xlink:href="#linearGradient3703" id="radialGradient3711" fy="66.878647" fx="31.249113" r="9.789615" cy="66.878647" cx="31.249113"/>
+ <radialGradient gradientTransform="matrix(1.5765759,0,0,1.5765759,-45.978021,-40.844055)" gradientUnits="userSpaceOnUse" xlink:href="#linearGradient3652" id="radialGradient3919" fy="69.120766" fx="79.978813" r="5.29661" cy="69.120766" cx="79.978813"/>
+ </defs>
+ <g>
+ <title>background</title>
+ <rect fill="none" id="canvas_background" height="402" width="582" y="-1" x="-1"/>
+ </g>
+ <g>
+ <title>Layer 1</title>
+ <path fill="#363433" fill-rule="nonzero" id="path3724" d="m34.9375,94.75c-22.3905,0 -24.33147,21.92107 -24.5,26.25l47.1875,0c0.09187,-5.02716 -0.7998,-26.25 -22.6875,-26.25z"/>
+ <path fill="#f6daaa" fill-rule="nonzero" stroke="#363433" stroke-width="1.3" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3606" d="m74.74841,58.1303c0.20483,12.12976 -14.84358,-5.27591 -12.91049,-12.57945c1.27386,-1.25011 2.55721,-2.33632 4.75797,-2.47831c1.81085,0.16982 6.66383,8.11652 8.15252,15.05776z"/>
+ <path fill="none" stroke="#6d6e6e" stroke-width="0.5" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3772" d="m42.7897,47.0984c8.40407,-21.50266 4.65092,-41.92225 -2.9253,-43.92934"/>
+ <path fill="url(#linearGradient3648)" fill-rule="nonzero" stroke="#363433" stroke-width="1.3" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3610" d="m42.27357,46.70948c-12.01865,1.50366 -14.09724,11.97922 -13.07601,15.79052c3.37953,12.00565 4.96558,20.16235 5.07316,33.86106c2.04869,2.16869 7.75781,4.61889 11.28013,1.09657c-1.08005,-8.15419 5.71912,-10.48873 16.02224,-9.73252c12.25622,0.89956 28.07204,-2.00196 28.07204,-13.63877c-0.96547,-7.33324 -9.43194,-12.77123 -22.5768,-20.32575"/>
+ <path fill="none" stroke="#6d6e6e" stroke-width="0.5" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3774" d="m45.50502,45.13214c-0.44856,-9.9526 22.13369,-28.29049 29.96215,-19.00724"/>
+ <path fill="#f6daaa" fill-rule="nonzero" id="path3608" d="m37.20869,52.43644c12.43221,-15.31097 23.77944,-17.22818 32.1769,8.14354"/>
+ <path fill="url(#radialGradient3919)" id="path3917" d="m77.1875,60.3125c-3.16571,1.19139 -5.40625,4.23013 -5.40625,7.8125c0,4.61186 3.70064,8.34375 8.3125,8.34375c3.78316,0 6.97468,-2.51971 8,-5.96875c-1.11342,-2.12732 -2.92816,-4.16211 -5.40625,-6.21875c-1.57493,-1.30708 -3.42947,-2.61519 -5.5,-3.96875z"/>
+ <path fill="#363433" fill-rule="nonzero" stroke-width="0.5" id="path3660" d="m43.125,84.9375c-0.50127,0 -1.07976,0.91806 -0.1875,0.84375c4.50247,-0.37497 8.84544,-0.2821 12.59375,2.34375l0.34375,-0.0625l0.46875,-0.59375l0.10101,-0.15798c-4.10239,-2.61364 -8.62852,-2.84634 -13.31976,-2.37327z"/>
+ <path fill="#ffffff" fill-rule="nonzero" stroke="url(#linearGradient3672)" stroke-width="0.75" stroke-linecap="square" stroke-miterlimit="4" stroke-dashoffset="0" id="path3664" d="m48.50123,66.24609c-0.90941,-0.90941 -6.10115,-17.07646 2.80895,-19.61584c5.70887,-1.62704 12.54666,10.92054 12.54666,16.15147c0,5.23093 -10.67631,7.73704 -15.35561,3.46437z"/>
+ <path fill="#343231" id="path3674" d="m57.086191,54.095706a3.946284,5.619599 0 1 1 -7.892584,-1.480423a3.946284,5.619599 0 1 1 7.892584,1.480423z"/>
+ <path fill="#ffffff" id="path3676" d="m53.894518,51.971913a1.093935,1.832152 0 1 1 -2.18787,-1.057158a1.093935,1.832152 0 1 1 2.18787,1.057158z"/>
+ <path fill="#ffffff" id="path3678" d="m52.346494,56.612357a-0.620422,0.519077 0 1 1 1.240844,-0.419561a-0.620422,0.519077 0 1 1 -1.240844,0.419561z"/>
+ <path fill="url(#radialGradient3711)" fill-rule="nonzero" stroke-width="0.75" id="path3680" d="m42.875,47.28125l-0.3125,0.03125c-0.55437,0.4743 -0.58559,0.2956 -0.53125,0.0625c-0.10627,0.01494 -0.20794,0.04613 -0.3125,0.0625c-0.10727,0.12235 -0.23167,0.25375 -0.40625,0.46875l-0.3125,0.375l-0.3125,0.125l0.3125,-0.375c0.25028,-0.30823 0.34061,-0.44524 0.375,-0.53125c-0.08386,0.01462 -0.16727,0.01571 -0.25,0.03125c-0.31082,0.20871 -0.57292,0.43266 -0.21875,0.0625c-4.93692,0.98924 -7.85,3.60896 -9.5,6.46875c-1.79758,3.11558 -2.0296,6.58607 -1.59375,8.25c0.0019,0.0073 -0.0019,0.02405 0,0.03125c3.3491,11.90194 4.95982,20.14511 5.09375,33.65625c0.93551,0.92986 2.68669,2.00812 4.59375,2.40625c1.25809,0.26265 2.52269,0.24158 3.6875,-0.21875c0.69523,-0.71024 1.18012,-1.7638 1.6875,-2.9375c0.18979,-3.03752 1.6676,-5.26313 4.125,-6.5625c0.01177,-0.0062 0.01944,-0.02506 0.03125,-0.03125l-6.15625,-41.375z"/>
+ <path fill="#413f3e" id="path3776" d="m41.03292,2.942534a1.564799,1.564799 0 1 1 -3.129599,0a1.564799,1.564799 0 1 1 3.129599,0z"/>
+ <path fill="#413f3e" id="path3778" d="m77.049869,26.181411a1.564799,1.564799 0 1 1 -3.129599,0a1.564799,1.564799 0 1 1 3.129599,0z"/>
+ <path fill="#ffffff" id="path3848" d="m33.87537,95.28126c-11.57618,-0.31415 -19.04482,11.3854 -18.2099,11.80571c1.38697,0.30582 2.87114,-2.98591 8.693,-7.89252c2.63932,-2.22439 9.62232,-2.97599 9.52,-3.75697c-0.0018,-0.05349 -0.00006,-0.10397 -0.0031,-0.15622z"/>
+ <path fill="#e67e71" fill-rule="nonzero" id="path3735" d="m33.96875,98.59375c-12.30493,5.40077 -16.01019,13.99935 -16.125,22.40625l38.46875,0c-0.0033,-6.52287 -0.38099,-15.15798 -9.8125,-21.90625c-2.23336,1.96545 -5.12015,2.2846 -7.53125,1.78125c-1.947,-0.40647 -3.6793,-1.25647 -5,-2.28125z"/>
+ <path fill="#363433" fill-rule="nonzero" id="path3953" d="m69.39063,60.59375c-1.62614,-6.45473 -3.92993,-11.22015 -6.42188,-14.4375c-2.49195,-3.21735 -5.22022,-4.99518 -8.09375,-5.40625c-2.87353,-0.41107 -5.83506,0.52056 -8.84375,2.5c-3.00869,1.97944 -6.8092,6.28795 -8.82812,9.1875c3.33781,-3.31844 6.48148,-6.45037 9.35937,-8.34375c2.87789,-1.89338 5.62051,-2.71097 8.1875,-2.34375c2.56699,0.36722 5.0203,1.9195 7.40625,5c2.38595,3.0805 4.9899,7.59699 7.23438,13.84375z"/>
+ </g>
+</svg> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/io/kreta.svg b/mayor-orig/www/skin/classic/module-naplo/img/io/kreta.svg
new file mode 100644
index 00000000..e111fa54
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/io/kreta.svg
@@ -0,0 +1,21 @@
+<svg width="900" height="400" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
+ <metadata>Created by potrace 1.10, written by Peter Selinger 2001-2011</metadata>
+
+ <g>
+ <title>background</title>
+ <rect fill="none" id="canvas_background" height="402" width="902" y="-1" x="-1"/>
+ </g>
+ <g>
+ <title>Layer 1</title>
+ <g id="svg_1" fill="#000000" transform="translate(0,399) scale(0.10000000149011612,-0.10000000149011612) ">
+ <path fill="#30a8cb" id="svg_2" d="m4080,3903c0,-12 14,-42 30,-66c17,-25 30,-48 30,-52c0,-3 22,-52 49,-108c169,-353 221,-466 221,-482c0,-18 35,-27 86,-23l39,3l97,190c54,105 100,197 103,205c4,8 13,26 20,40c7,14 21,41 31,60c9,19 21,42 25,50c5,8 19,35 32,60c12,25 35,64 51,88c16,23 26,45 23,48c-3,3 -193,7 -421,7l-416,2l0,-22zm644,-114c8,-32 4,-45 -39,-125c-26,-49 -54,-102 -62,-119c-14,-30 -22,-45 -70,-137c-16,-30 -35,-50 -55,-59c-30,-12 -32,-11 -60,21c-15,19 -28,38 -28,42c0,4 -27,63 -59,130c-33,68 -69,153 -82,190c-34,103 -41,100 225,96l221,-3l9,-36z"/>
+ <path fill="#30a8cb" id="svg_3" d="m834,2928c-6,-10 -10,-1908 -4,-1909c3,0 88,-1 189,-1l185,-1l-3,360l-3,360l39,39c21,21 51,55 66,75c37,49 65,56 79,21c19,-48 68,-146 104,-207c19,-33 38,-70 44,-82c5,-11 14,-24 19,-28c6,-3 11,-13 11,-22c0,-9 6,-24 14,-32c7,-9 29,-45 48,-81c20,-36 45,-81 56,-100c11,-19 30,-53 42,-75c12,-22 35,-62 50,-90c15,-27 38,-69 50,-92l22,-43l172,0c94,0 195,-3 224,-6c47,-6 52,-5 52,13c0,11 -15,40 -33,64c-18,24 -37,51 -40,59c-4,8 -16,29 -27,45c-11,17 -24,39 -29,50c-5,11 -21,37 -35,58c-14,21 -26,40 -26,44c0,3 -33,60 -73,127c-40,66 -76,128 -80,136c-4,8 -16,29 -27,45c-11,17 -24,41 -30,54c-6,13 -21,38 -33,55c-26,36 -43,64 -55,91c-15,32 -152,257 -173,284c-27,34 -24,44 24,93c44,46 100,108 338,373c79,88 176,193 216,234c92,93 94,106 12,97c-34,-3 -148,-6 -254,-6l-192,0l-114,-127c-63,-71 -118,-133 -124,-139c-5,-7 -35,-38 -65,-70c-70,-74 -167,-188 -204,-237c-15,-21 -36,-46 -47,-56c-20,-18 -20,-19 6,-25c14,-4 31,-3 38,1c40,24 129,98 152,126c15,17 73,81 129,142c276,299 272,296 395,293c45,-1 84,-4 86,-7c10,-17 -30,-90 -80,-144c-31,-34 -77,-86 -103,-115c-26,-30 -66,-75 -89,-100c-168,-187 -173,-194 -189,-248c-9,-33 -13,-67 -9,-86c10,-44 75,-175 113,-227c18,-24 32,-47 32,-51c0,-8 61,-112 78,-133c5,-7 23,-37 39,-67c16,-30 36,-66 44,-80c20,-33 129,-215 151,-255c32,-55 76,-150 79,-170c6,-37 -9,-45 -81,-45c-75,0 -120,12 -120,33c0,7 -13,26 -30,42c-16,16 -30,34 -30,41c0,7 -6,19 -12,26c-7,7 -33,51 -56,98c-24,47 -62,117 -85,155c-22,39 -57,100 -76,137c-65,121 -120,203 -165,247c-36,36 -51,43 -87,45c-37,2 -51,-4 -100,-40c-54,-41 -100,-99 -119,-149c-5,-13 -10,-140 -11,-282c-1,-285 -7,-320 -53,-342c-43,-20 -116,-4 -133,29c-10,20 -13,194 -12,819l1,794l21,33c21,32 26,34 77,34c83,0 87,-10 95,-259c4,-130 9,-173 24,-206c21,-48 36,-61 47,-43c10,16 23,590 13,601c-8,11 -359,15 -365,5z"/>
+ <path fill="#30a8cb" id="svg_4" d="m2414,2928c-6,-10 -6,-1900 0,-1906c3,-2 87,-4 188,-4l183,0l1,383l1,384l84,3c103,4 126,-2 134,-31c8,-27 10,-33 84,-191c34,-70 61,-132 61,-136c0,-4 19,-45 43,-91c23,-46 65,-136 92,-199c27,-63 53,-118 58,-121c4,-3 63,-4 130,-1c67,2 152,0 190,-5c53,-8 70,-7 79,4c8,10 7,18 -4,31c-13,15 -138,265 -138,276c0,2 -22,51 -49,108c-99,208 -131,279 -131,287c0,4 -13,27 -30,49c-16,23 -30,48 -30,56c0,7 17,22 38,31c63,30 138,92 184,152c91,122 112,188 112,348c0,154 -23,228 -106,340c-62,85 -157,160 -240,191c-105,38 -166,43 -551,46c-209,2 -381,0 -383,-4zm764,-93c34,-4 65,-11 68,-16c3,-5 14,-9 25,-9c25,0 115,-45 153,-77c46,-38 131,-147 145,-184c7,-19 20,-51 29,-72c14,-33 14,-55 5,-156c-10,-111 -12,-122 -51,-187c-22,-38 -81,-111 -131,-161c-50,-51 -98,-107 -107,-124c-15,-30 -15,-36 2,-93c9,-34 21,-65 25,-71c4,-5 23,-48 42,-95c20,-47 60,-137 90,-200c105,-223 112,-245 81,-270c-23,-20 -97,-16 -135,6c-33,19 -78,98 -163,289c-13,28 -44,93 -69,145c-25,52 -55,116 -65,141c-26,61 -117,154 -161,162c-131,27 -231,-31 -251,-146c-4,-23 -8,-151 -9,-285c-3,-293 -6,-307 -77,-318c-65,-9 -96,4 -111,46c-16,49 -16,1569 0,1620c16,47 30,54 112,60c102,7 480,4 553,-5z"/>
+ <path fill="#30a8cb" id="svg_5" d="m2835,2626c-113,-44 -126,-69 -128,-254c0,-78 4,-154 10,-177c13,-45 72,-105 102,-105c11,0 23,-5 26,-10c10,-16 309,-4 370,15c59,18 112,62 153,128c27,43 30,55 28,130c-1,64 -6,92 -24,127c-31,60 -91,108 -169,137c-56,20 -81,23 -201,22c-77,-1 -150,-6 -167,-13zm212,-76l151,0l44,-33c127,-97 117,-253 -23,-339c-21,-13 -64,-17 -229,-19l-204,-3l1,200c1,109 2,201 2,203c1,2 25,1 54,-3c28,-3 120,-6 204,-6z"/>
+ <path fill="#30a8cb" id="svg_6" d="m3853,2927c-2,-4 -4,-435 -4,-958l1,-950l626,0c344,0 628,2 631,4c8,9 5,359 -3,366c-5,3 -202,4 -439,1c-236,-4 -433,-5 -437,-3c-3,2 -6,101 -5,221l2,217l30,-3c82,-7 682,-17 694,-11c22,10 23,379 1,379c-34,1 -648,-3 -685,-4l-40,-1l0,183l0,184l449,1l448,2l1,184c0,103 -4,186 -9,188c-21,7 -1256,7 -1261,0zm1105,-94c28,-5 37,-14 59,-58l26,-53l-28,-34c-15,-18 -39,-37 -54,-41c-14,-4 -158,-7 -320,-7c-192,0 -313,-3 -347,-11c-62,-14 -120,-58 -140,-105c-16,-39 -20,-268 -5,-307c13,-34 76,-93 109,-102c15,-4 146,-10 292,-14c240,-5 268,-8 294,-25c27,-19 28,-23 23,-75c-3,-30 -12,-61 -20,-68c-26,-26 -90,-33 -325,-33c-187,0 -240,-3 -270,-16c-46,-19 -92,-62 -92,-85c0,-10 -4,-21 -10,-24c-6,-4 -10,-74 -10,-177l0,-171l37,-48c20,-27 50,-54 67,-61c22,-9 128,-13 381,-15l350,-2l23,-26c30,-35 31,-116 2,-145c-17,-17 -34,-20 -112,-20c-51,-1 -275,-1 -498,-1l-405,-1l-22,27c-13,14 -23,31 -24,38c0,7 0,318 0,692c1,374 1,689 0,700c0,11 0,61 1,110c2,100 22,150 63,158c33,6 917,6 955,0z"/>
+ <path fill="#30a8cb" id="svg_7" d="m5255,2929c-2,-3 -5,-88 -6,-190l-2,-184l269,-1l269,-1l1,-768l0,-769l183,0l183,0l2,769l1,769l262,-3c144,-1 266,0 270,2c4,3 6,89 3,191l-5,187l-713,2c-393,1 -715,-1 -717,-4zm1276,-100c30,-8 39,-16 53,-52c22,-58 21,-69 -14,-102l-31,-29l-167,-6c-183,-7 -202,-12 -259,-72c-31,-32 -32,-36 -40,-153c-4,-67 -7,-366 -6,-665c2,-554 0,-600 -35,-627c-9,-7 -37,-13 -64,-13c-63,0 -84,21 -93,92c-3,29 -8,330 -10,668c-2,338 -6,627 -8,643c-3,15 -5,31 -6,35c0,5 -25,25 -55,46l-54,37l-178,6c-176,5 -177,5 -200,32c-37,40 -40,69 -15,117c21,39 26,42 74,48c29,4 265,6 525,5c260,-1 476,1 479,5c7,7 36,3 104,-15z"/>
+ <path fill="#30a8cb" id="svg_8" d="m7262,2927c-7,-7 -44,-79 -83,-158c-38,-79 -74,-151 -79,-159c-10,-17 -180,-351 -363,-710c-376,-741 -403,-793 -429,-829c-21,-27 -23,-58 -6,-63c7,-3 37,0 68,5c30,5 119,7 197,4l143,-4l123,246c68,135 132,262 142,281c10,19 23,44 29,55c114,221 256,512 256,525c0,10 9,29 21,44c17,21 24,24 35,15c8,-6 14,-19 14,-28c0,-9 4,-21 8,-26c5,-6 17,-32 27,-60c10,-27 41,-99 70,-160c29,-60 65,-137 80,-170c15,-33 52,-112 81,-175c30,-63 67,-142 83,-175c15,-33 41,-89 58,-125c54,-113 90,-194 97,-217c9,-28 -2,-26 176,-24c80,1 166,-2 192,-7c25,-5 52,-6 59,-2c8,6 -17,67 -90,216c-57,115 -109,223 -116,239c-7,17 -41,89 -75,160c-34,72 -74,157 -90,190c-15,33 -49,105 -75,160c-26,55 -61,129 -77,165c-17,36 -35,72 -39,80c-5,8 -12,22 -15,30c-3,8 -26,58 -51,110c-24,52 -58,124 -75,160c-16,36 -34,72 -39,80c-5,8 -12,22 -15,30c-3,8 -18,42 -33,75c-16,33 -40,86 -55,117c-14,31 -30,68 -36,82c-7,19 -17,26 -37,26c-16,0 -37,3 -49,6c-11,3 -25,-1 -32,-9zm80,-174c8,-10 32,-54 53,-98c20,-44 44,-91 52,-105c8,-14 22,-43 32,-65c40,-87 146,-309 160,-335c27,-49 41,-79 41,-89c0,-6 36,-85 80,-175c44,-91 80,-169 80,-174c0,-5 16,-36 35,-68c19,-32 35,-62 35,-68c0,-5 9,-28 19,-50c11,-23 25,-52 30,-66c6,-14 15,-32 21,-40c5,-8 30,-60 56,-115c33,-69 47,-114 48,-145l1,-45l-55,-3c-30,-2 -72,1 -92,7c-31,10 -41,21 -68,74c-17,34 -38,73 -45,87c-26,49 -140,293 -274,590c-99,217 -139,282 -202,326c-26,18 -44,24 -59,19c-30,-10 -88,-63 -115,-105c-26,-41 -126,-229 -197,-370c-219,-435 -291,-568 -324,-599c-36,-33 -37,-33 -110,-29c-41,3 -76,7 -79,10c-8,8 16,68 71,184c30,62 54,115 54,120c0,4 6,15 14,23c11,13 125,233 368,716c8,17 24,48 36,70c67,133 122,249 122,261c0,7 6,17 14,21c7,4 23,28 35,53c32,68 86,167 100,184c18,21 44,20 63,-1z"/>
+ <path fill="#30a8cb" id="svg_9" d="m4435,730c-14,-22 -25,-43 -25,-47c0,-8 -112,-231 -234,-468c-37,-72 -74,-138 -83,-147c-8,-10 -13,-24 -10,-32c5,-13 16,-14 54,-8c61,9 677,9 718,0c60,-13 59,1 -2,123c-32,63 -84,170 -116,239c-32,69 -78,166 -103,217c-24,50 -44,96 -44,101c0,5 -9,21 -21,36c-17,21 -29,26 -65,26c-40,0 -46,-3 -69,-40zm100,-144c20,-20 135,-244 135,-263c0,-4 6,-14 13,-22c16,-19 53,-113 62,-157c10,-53 0,-55 -251,-54c-125,0 -231,3 -235,6c-20,12 -7,76 27,141c20,37 42,78 48,91c6,13 29,58 51,101c103,200 105,202 150,157z"/>
+ </g>
+ </g>
+</svg>
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/le.gif b/mayor-orig/www/skin/classic/module-naplo/img/le.gif
new file mode 100644
index 00000000..6ca503c6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/le.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/print.png b/mayor-orig/www/skin/classic/module-naplo/img/print.png
new file mode 100644
index 00000000..76cda839
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/print.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/tankorok/gold_box.gif b/mayor-orig/www/skin/classic/module-naplo/img/tankorok/gold_box.gif
new file mode 100644
index 00000000..f0dc944c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/tankorok/gold_box.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gif b/mayor-orig/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gif
new file mode 100644
index 00000000..5e9893fe
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/tankorok/gray-pixel.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/tanmenet/close.png b/mayor-orig/www/skin/classic/module-naplo/img/tanmenet/close.png
new file mode 100644
index 00000000..abbf64ca
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/tanmenet/close.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/tanmenet/updown.png b/mayor-orig/www/skin/classic/module-naplo/img/tanmenet/updown.png
new file mode 100644
index 00000000..9205820e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/tanmenet/updown.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/toggle.png b/mayor-orig/www/skin/classic/module-naplo/img/toggle.png
new file mode 100644
index 00000000..b4f54d39
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/toggle.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/img/toolSubmit.gif b/mayor-orig/www/skin/classic/module-naplo/img/toolSubmit.gif
new file mode 100644
index 00000000..d120f8f4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/img/toolSubmit.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js
new file mode 100644
index 00000000..ff60f853
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.jquery.min.js
@@ -0,0 +1,7 @@
+
+// Nekem ez Chromium alatt nem működik... De miért nem?
+
+ $(function() {
+// $('#regForm').submit();
+ });
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.js b/mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.js
new file mode 100644
index 00000000..d7f35a6e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/admin/regisztracio.js
@@ -0,0 +1,7 @@
+
+ Event.observe(window, 'load', myPSFLoader, false);
+
+ function myPSFLoader(evt) {
+ // A regisztrációs form elküldése
+ $('regForm').submit();
+ }
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js
new file mode 100644
index 00000000..21b3f78e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/admin/szemeszterek.jquery.min.js
@@ -0,0 +1,43 @@
+
+$(function() {
+
+ var startDateTextBox = $('#tolDt');
+ var endDateTextBox = $('#igDt');
+
+ startDateTextBox.datetimepicker('option', 'onSelect',
+ function (selectedDateTime) {
+ endDateTextBox.datetimepicker('option', 'minDate', startDateTextBox.datetimepicker('getDate') );
+ }
+ );
+ startDateTextBox.datetimepicker('option', 'onClose',
+ function(dateText, inst) {
+ if (endDateTextBox.val() != '') {
+ var testStartDate = startDateTextBox.datetimepicker('getDate');
+ var testEndDate = endDateTextBox.datetimepicker('getDate');
+ if (testStartDate > testEndDate)
+ endDateTextBox.datetimepicker('setDate', testStartDate);
+ } else {
+ endDateTextBox.val(dateText);
+ }
+ }
+ );
+ endDateTextBox.datetimepicker('option', 'onSelect',
+ function (selectedDateTime) {
+ startDateTextBox.datetimepicker('option', 'maxDate', endDateTextBox.datetimepicker('getDate') );
+ }
+ );
+ endDateTextBox.datetimepicker('option', 'onClose',
+ function(dateText, inst) {
+ if (startDateTextBox.val() != '') {
+ var testStartDate = startDateTextBox.datetimepicker('getDate');
+ var testEndDate = endDateTextBox.datetimepicker('getDate');
+ if (testStartDate > testEndDate)
+ startDateTextBox.datetimepicker('setDate', testEndDate);
+ } else {
+ startDateTextBox.val(dateText);
+ }
+ }
+ );
+
+});
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js b/mayor-orig/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js
new file mode 100644
index 00000000..d25c0def
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/ertekeles/ertekeles.js
@@ -0,0 +1,56 @@
+
+ Event.observe(window, 'load', myPSFLoader, false);
+
+ hideOlOl = function() {
+ $$('ol ol.negativ, ol ol.semleges, ol ol.pozitiv').each(
+ function(elem, index) {
+// Effect.BlindUp($(elem));
+ elem.hide();
+ }
+ );
+ }
+
+ blindUp = function(elem) {
+ //$$('ol ol.negativ, ol ol.semleges, ol ol.pozitiv').each(
+ $(elem).up('li').select('ol').each(
+ function(elem, index) {
+//alert('ITT');
+ if ($(elem).visible()) Effect.BlindUp($(elem), { duration: 0.5 });
+// elem.hide();
+ }
+ );
+ }
+
+ function sleep(milliseconds) {
+ var start = new Date().getTime();
+ while ((new Date().getTime() - start) < milliseconds) {}
+ }
+
+ function myPSFLoader(evt) {
+ hideOlOl();
+
+ Event.observe(document.body, 'click', function(event) {
+ var element = $(Event.element(event));
+
+ if (element.hasClassName('gomb')) {
+
+ blindUp(element);
+ if (element.hasClassName('negativ')) classNev='negativ';
+ else if (element.hasClassName('semleges')) classNev='semleges';
+ else if (element.hasClassName('pozitiv')) classNev='pozitiv';
+ $A(element.up('li').select('ol')).each(
+ function(elem, index) {
+ if ($(elem).hasClassName(classNev)) {
+ if (!$(elem).visible()) {
+ Effect.BlindDown($(elem), { duration: 0.5 });
+ $(elem).down('input').checked=true;
+ }
+ }
+ //$(elem).show();
+
+ }
+ );
+ }
+ })
+
+ }
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js
new file mode 100644
index 00000000..a3bd3b7e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/esemenyDiak.jquery.min.js
@@ -0,0 +1,101 @@
+
+
+ $(function() {
+ $('body').bind('keydown', myKeyDown);
+ $('input.plusz').bind('click', function(event) {
+ var element = $(event.target);
+ var container = element.parents('table');
+ var openable = container.find('.openable').hide();
+ var onclickshow = container.find('.plusz').removeClass('selected');
+ var id = element[0].id;
+ if (id && id.substring(0,4) == 'show') {
+ var openable = '#'+id.charAt(4).toLowerCase()+ id.substring(5);
+ $(openable).show();
+ setTimeout(function() { // várni kell, hogy láthatóvá váljon a select, csak utána lehet fokuszt adni rá
+ $(openable+' select').focus();
+ }, 1);
+ }
+ element.addClass('selected');
+
+ });
+ $('input.add').bind('click', function(event) {
+ var selectElement = $(event.target).prev('select');
+ selectDiak(selectElement);
+ });
+ $("select.diakok option").bind('dblclick', function(event) {
+ var selectElement = $(event.target).closest('select');
+ selectDiak(selectElement);
+ });
+ $('#nevsor').click(function(event) {
+ elem = $(event.target);
+ if (elem.hasClass('removeLine')) {
+ elem.closest('tr').remove();
+ } else if (elem.hasClass('icon-remove-sign')) {
+ if (!confirm(elem.prop('title'))) {
+ event.preventDefault();
+ } else {
+ // töröl
+ $('#postDiakId').attr('name','torolDiakId').val(elem.find('input').val());
+ elem.closest('form').submit();
+ }
+ } else if (elem.hasClass('icon-ok-sign')) {
+ // jóváhagyást elutasít
+ $('#postDiakId').attr('name','elutasitDiakId').val(elem.closest('tr').find('input').val());
+ elem.closest('form').submit();
+ } else if (elem.hasClass('icon-minus-sign')) {
+ // jóváhagy
+ $('#postDiakId').attr('name','jovahagyDiakId').val(elem.closest('tr').find('input').val());
+ elem.closest('form').submit();
+ }
+ });
+ $('#nevsor td.osztaly').bind('click', function(event) {
+ elem = $(event.target);
+ _class = elem.text().replace('.','');
+ $('#nevsor tr').not('.'+_class).toggle();
+ });
+ });
+
+ myKeyDown = function(event) {
+
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ if (charKeyCode==13) { // Enter
+ if (element.hasClass('diakok')) {
+ selectDiak(element);
+ event.preventDefault();
+ }
+ } else if (charKeyCode==27) { // Esc
+ $('form#nevsorForm .openable').hide();
+ $('form#nevsorForm #oEmpty').show();
+ } else if (charKeyCode==9) { // Tab
+ if (element.hasClass('diakok')) {
+ if ($('#osztalyok input.selected').nextAll('input:first').length) {
+ $('#osztalyok input.selected').nextAll('input:first').click();
+ } else {
+ $('#osztalyok input:first').click();
+ }
+ }
+ }
+ }
+
+ function selectDiak(selectElement) {
+
+ selectElement.find('option:selected').each(function(index, elem) {
+ if (!$("#nevsor input[value='" + $(elem).val() + "']").length) {
+ var sor='<tr class="ujDiak">'
+ +'<td class="sorsz"><input type="hidden" name="ujDiakId[]" value="'+$(elem).val()+'" /></td>'
+ +'<td><span class="icon-remove-sign removeLine"></span></td>'
+ +'<td class="nev">'+$(elem).text()+'</td>'
+ +'<td class="jelDt"></td>'
+ +'<td class="jovDt" colspan="2"></td>'
+ +'<tr>';
+ $(sor).insertBefore($('#submitRow'));
+// $(sor).appendTo($('#nevsor'));
+ }
+ });
+ }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js
new file mode 100644
index 00000000..b184d5dd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/jelentkezes.jquery.min.js
@@ -0,0 +1,7 @@
+$(function() {
+
+ $('form.esemeny th').click(function(event) {
+ $('form.esemeny tr').not('.aktualis').not(':first').toggle();
+ });
+
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js
new file mode 100644
index 00000000..3ba14772
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/esemeny/ujEsemeny.jquery.min.js
@@ -0,0 +1,89 @@
+/*
+ TODO: összes osztály kijelölése kattintásra
+*/
+
+
+ $(function() {
+ $('body').bind('keydown', myKeyDown);
+ $('body').bind('click',function(event) {
+ var element = $(event.target);
+ if (
+ $('#tanarLista').is(':visible')
+ && element.closest('#tanarLista').length == 0
+ && element.attr('id') != 'plusz'
+ ) {
+ $('#tanarLista').hide();
+ }
+ });
+ $('#osztalyLista li input').bind('change', function(event) {
+ var element = $(event.target);
+ if (element.is(':visible')) {
+ element.closest('li').toggleClass('uj');
+ }
+ });
+ $("#tanarok option").bind('dblclick', function(event) {
+ var elem = $(event.target);
+ if (!$("#esemenyTanar option[value='" + elem.val() + "']").length) {
+ $(elem).clone().addClass('uj').appendTo( $('#esemenyTanar'));
+ }
+ });
+ $('#esemenyTanar').bind('dblclick', function(event) {
+ $('#tanarLista').show();
+ $('#tanarok').focus();
+ });
+ $('#plusz').bind('click', function(event) {
+ if ($('#tanarLista').is(':visible')) {
+ selectTanar();
+ $('#tanarLista').hide();
+ $('#submitButton').focus();
+ } else {
+ $('#tanarLista').show();
+ $('#tanarok').focus();
+ }
+ });
+ $('#minusz').bind('click', function(event) {
+ $('#esemenyTanar option:selected').remove();
+ });
+ $('#add').bind('click', function(event) {
+ if ($('#tanarLista').is(':visible')) {
+ selectTanar();
+// $('#tanarLista').hide();
+// $('#submitButton').focus();
+ }
+ }); $('#closeTanarLista').bind('click', function(event) {
+ $('#tanarLista').hide();
+ });
+ $('#submitButton').bind('click',function(event) {
+ $('#esemenyTanar option').prop('selected','selected');
+ });
+ });
+
+ myKeyDown = function(event) {
+
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ if (charKeyCode==13) { // Enter
+ if (element.attr('id') == 'tanarok') {
+ selectTanar();
+ }
+ } else if (charKeyCode==27) { // Esc
+ $('#tanarLista').hide();
+ } else if (charKeyCode==46) { // Del
+ if (element.attr('id') == 'esemenyTanar') {
+ $('#esemenyTanar option:selected').remove();
+ }
+ }
+ }
+
+ selectTanar = function() {
+ $('#tanarok option:selected').each(function(index, elem) {
+ if (!$("#esemenyTanar option[value='" + $(elem).val() + "']").length) {
+ $(elem).clone().addClass('uj').appendTo( $('#esemenyTanar'));
+ }
+ });
+ }
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js
new file mode 100644
index 00000000..bda10a84
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.jquery.min.js
@@ -0,0 +1,177 @@
+
+$(function() {
+
+ kivalaszt = function(event) {
+ $('select#kivalasztott > option').prop('selected','selected');
+ }
+ mezoKivalasztas = function(event) {
+ optionAthelyezes('szabad','kivalasztott');
+ }
+ mezoTorles = function(event) {
+ optionAthelyezes('kivalasztott','szabad');
+ }
+ optionAthelyezes = function(fromId, toId) {
+ var toSel = $('#'+toId);
+ if (toSel.prop('selectedIndex') == -1) {
+ $('#'+fromId+' option:selected').prop('selected','').prependTo(toSel);
+ } else {
+ $('#'+fromId+' option:selected').prop('selected','').insertAfter($('#'+toId+' option:selected').first());
+ }
+ }
+ $('.onClickMezoSelect').bind('click', function(event) {
+ element = $(event.target);
+ // Az összes elem kiválasztása...
+ kivalaszt();
+ // ... és átrakása a szabad mezők közé
+ optionAthelyezes('kivalasztott','szabad');
+ // A kiválasztandó elemek kijelölése
+ idList = $('#'+element.attr('name')+'Lista').val().split(',');
+ // és áthelyezése egyesével (a megfelelő sorrend miatt!!)
+ for (j=0; j<idList.length; j++) {
+ $('#szabad option').each(function(index) {
+ if ($(this).val() == idList[j]) {
+ $(this).prop('selected', 'selected');
+ optionAthelyezes('szabad','kivalasztott');
+ return false;
+ }
+ });
+ }
+ });
+ includeCSS(
+ "skin/classic/share/javascript/jquery-dataTables/css/jquery.dataTables.css",
+ "skin/classic/share/javascript/jquery-dataTables/css/ColReorder.css"
+ );
+ $.getScript("skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.min.js").done(function() {
+ $.getScript("skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.columnFilter.js").done(function() {
+ $.getScript("skin/classic/share/javascript/jquery-dataTables/ColReorder.min.js").done(function() {
+
+ $('#diakTabla').dataTable({
+ "oLanguage": {
+ "sSearch" : "Keresés",
+ "sLengthMenu": "Mutasson _MENU_ rekordot oldalanként",
+ "sZeroRecords": "Nincs találat!",
+ "sInfo": "Találatok _START_-tól _END_-ig az összesen _TOTAL_ rekordból",
+ "sInfoEmpty": "0-tól 0-ig a 0 rekordból",
+ "sInfoFiltered": "(szűrés nélül _MAX_ db rekord)",
+ "oPaginate": {
+ "sNext": "Következő oldal",
+ "sPrevious": "Előző oldal"
+ }
+ },
+ "sDom": 'Rlfrtip'
+ }).columnFilter();
+ });
+ })
+ });
+ $('#valaszt').bind('click', mezoKivalasztas);
+ $('#torol').bind('click', mezoTorles);
+ $('#exportOptions').bind('submit', kivalaszt);
+
+});
+
+/*
+includeJS('skin/classic/share/javascript/TableFilter/tablefilter_all_min.js');
+includeJS('skin/classic/share/javascript/TableFilter/sortabletable.js');
+includeJS('skin/classic/share/javascript/TableFilter/tfAdapter.sortabletable.js');
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+
+
+ // Mezőkiválasztó gombok kezelése
+ var FieldSelectObject = Class.create();
+ FieldSelectObject.prototype = {
+ initialize: function(element) {
+ this.element = $(element);
+ this.element.observe('click',this.fieldSelect.bindAsEventListener(this));
+ },
+
+ fieldSelect: function(evt, extraInfo) {
+
+ // Az összes elem kiválasztása...
+ kivalaszt();
+ // ... és átrakása a szabad mezők közé
+ optionAthelyezes('kivalasztott','szabad');
+ // A kiválasztandó elemek kijelölése
+ this.list = $F($(this.element.getAttribute('name')+'Lista'));
+ this.idList = this.list.split(',');
+ this.options = $('szabad').options;
+ // és áthelyezése egyesével (a megfelelő sorrend miatt!!)
+ for (j=0; j<this.idList.length; j++) {
+ for (i=0; i<this.options.length; i++) {
+ attr = this.options[i].value;
+ this.options[i].selected = (attr == this.idList[j]);
+ }
+ optionAthelyezes('szabad','kivalasztott');
+ }
+
+ Event.stop(evt);
+ }
+ }
+
+ var onClickMezoSelectElements = new Array();
+ $$('.onClickMezoSelect').each(
+ function (elem, index) {
+ onClickMezoSelectElements.push(new FieldSelectObject(elem));
+ }
+ );
+
+ // A szűrés
+ if ($('diakTabla') != null) {
+ var lastRowIndex = tf_Tag(tf_Id('diakTabla'),"tr").length;
+ var table1Filters = {
+ base_path: 'skin/classic/share/javascript/TableFilter/',
+ single_search_filter: false,
+ sort: true,
+ sort_config: {sort_types: []},
+ alternate_rows: true,
+ on_keyup : true,
+ highlight_keywords : true,
+ mark_active_columns: true,
+ paging: false,
+ rows_counter: true,
+ rows_counter_text: 'Találatok száma: ',
+ input_watermark: 'Keresés...',
+ filters_row_index: 1,
+ remember_grid_values: true,
+ rows_always_visible: [lastRowIndex]
+//sort_config: {sort_types: ['Number','Number','String','String','String']},
+//sort_config: {sort_types: cellTypes},
+//extensions: {
+// name:['ColumnsResizer'],
+// src:['TFExt_ColsResizer/TFExt_ColsResizer.js'],
+// description:['Columns Resizing'],
+// initialize:[function(o){o.SetColsResizer();}]
+//},
+//col_resizer_all_cells: true,
+//editable: false,
+//selectable: true,
+//ezEditTable_config: {
+// default_selection: 'both',
+//}
+// col_1: "select",
+// col_2: "select",
+// btn: true
+ }
+ if (typeof(selIndex) !== 'undefined') for (i = 0; i < selIndex.length; i++) eval('table1Filters.col_'+selIndex[i]+' = "select";');
+ eval('table1Filters.col_'+cellTypes.length+' = "none";');
+ if (typeof(cellTypes) !== 'undefined') table1Filters.sort_config.sort_types = cellTypes;
+ var tf01 = setFilterGrid("diakTabla",1,table1Filters);
+ } // van diakTabla
+
+ Event.observe('valaszt', 'click', mezoKivalasztas);
+ Event.observe('torol', 'click', mezoTorles);
+ Event.observe('exportOptions', 'submit', kivalaszt);
+}
+
+
+/*
+// A filter cseréje!
+tf01.RemoveGrid();
+var table1Filters = {
+ single_search_filter: true,
+ sort: true,
+}
+tf01 = new TF("diakTabla",1,table1Filters);
+tf01.AddGrid();
+*/
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.js b/mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.js
new file mode 100644
index 00000000..bca1334e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/export/diakExport.js
@@ -0,0 +1,141 @@
+includeJS('skin/classic/share/javascript/TableFilter/tablefilter_all_min.js');
+includeJS('skin/classic/share/javascript/TableFilter/sortabletable.js');
+includeJS('skin/classic/share/javascript/TableFilter/tfAdapter.sortabletable.js');
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+
+ kivalaszt = function(event) {
+ $$('#kivalasztott option').each(
+ function(elem, index) {
+ elem.selected=true;
+ }
+ );
+ }
+ mezoKivalasztas = function(event) {
+ optionAthelyezes('szabad','kivalasztott');
+ }
+ mezoTorles = function(event) {
+ optionAthelyezes('kivalasztott','szabad');
+ }
+ optionAthelyezes = function(fromId, toId) {
+ var fromSel = $(fromId);
+ var toSel = $(toId);
+ // Áthelyezés
+ for (i = 0; i < fromSel.length; i++) {
+ if (fromSel.options[i].selected) {
+ var val = fromSel.options[i].value;
+ var txt = fromSel.options[i].innerHTML;
+ if (toSel.selectedIndex == -1) {
+ toSel.insert({bottom: new Element('option', {value: val}).update(txt)});
+ } else {
+ toSel.options[ toSel.selectedIndex ].insert({before: new Element('option', {value: val}).update(txt)});
+ }
+ }
+ }
+ // Törlés
+ for (i = fromSel.length-1; i >= 0; i--) {
+ if (fromSel.options[i].selected) {
+ fromSel.options[i].remove();
+ }
+ }
+ }
+
+
+ // Mezőkiválasztó gombok kezelése
+ var FieldSelectObject = Class.create();
+ FieldSelectObject.prototype = {
+ initialize: function(element) {
+ this.element = $(element);
+ this.element.observe('click',this.fieldSelect.bindAsEventListener(this));
+ },
+
+ fieldSelect: function(evt, extraInfo) {
+
+ // Az összes elem kiválasztása...
+ kivalaszt();
+ // ... és átrakása a szabad mezők közé
+ optionAthelyezes('kivalasztott','szabad');
+ // A kiválasztandó elemek kijelölése
+ this.list = $F($(this.element.getAttribute('name')+'Lista'));
+ this.idList = this.list.split(',');
+ this.options = $('szabad').options;
+ // és áthelyezése egyesével (a megfelelő sorrend miatt!!)
+ for (j=0; j<this.idList.length; j++) {
+ for (i=0; i<this.options.length; i++) {
+ attr = this.options[i].value;
+ this.options[i].selected = (attr == this.idList[j]);
+ }
+ optionAthelyezes('szabad','kivalasztott');
+ }
+
+ Event.stop(evt);
+ }
+ }
+
+ var onClickMezoSelectElements = new Array();
+ $$('.onClickMezoSelect').each(
+ function (elem, index) {
+ onClickMezoSelectElements.push(new FieldSelectObject(elem));
+ }
+ );
+
+ // A szűrés
+ if ($('diakTabla') != null) {
+ var lastRowIndex = tf_Tag(tf_Id('diakTabla'),"tr").length;
+ var table1Filters = {
+ base_path: 'skin/classic/share/javascript/TableFilter/',
+ single_search_filter: false,
+ sort: true,
+ sort_config: {sort_types: []},
+ alternate_rows: true,
+ on_keyup : true,
+ highlight_keywords : true,
+ mark_active_columns: true,
+ paging: false,
+ rows_counter: true,
+ rows_counter_text: 'Találatok száma: ',
+ input_watermark: 'Keresés...',
+ filters_row_index: 1,
+ remember_grid_values: true,
+ rows_always_visible: [lastRowIndex]
+//sort_config: {sort_types: ['Number','Number','String','String','String']},
+//sort_config: {sort_types: cellTypes},
+//extensions: {
+// name:['ColumnsResizer'],
+// src:['TFExt_ColsResizer/TFExt_ColsResizer.js'],
+// description:['Columns Resizing'],
+// initialize:[function(o){o.SetColsResizer();}]
+//},
+//col_resizer_all_cells: true,
+//editable: false,
+//selectable: true,
+//ezEditTable_config: {
+// default_selection: 'both',
+//}
+// col_1: "select",
+// col_2: "select",
+// btn: true
+ }
+ if (typeof(selIndex) !== 'undefined') for (i = 0; i < selIndex.length; i++) eval('table1Filters.col_'+selIndex[i]+' = "select";');
+ eval('table1Filters.col_'+cellTypes.length+' = "none";');
+ if (typeof(cellTypes) !== 'undefined') table1Filters.sort_config.sort_types = cellTypes;
+ var tf01 = setFilterGrid("diakTabla",1,table1Filters);
+ } // van diakTabla
+
+ Event.observe('valaszt', 'click', mezoKivalasztas);
+ Event.observe('torol', 'click', mezoTorles);
+ Event.observe('exportOptions', 'submit', kivalaszt);
+}
+
+
+/*
+// A filter cseréje!
+tf01.RemoveGrid();
+var table1Filters = {
+ single_search_filter: true,
+ sort: true,
+}
+tf01 = new TF("diakTabla",1,table1Filters);
+tf01.AddGrid();
+*/
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js
new file mode 100644
index 00000000..efcdd115
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/elszamolas.jquery.min.js
@@ -0,0 +1,42 @@
+$(function() {
+
+ $('table.elszamolas tr td.lekotott').hover(function(e) {
+ $(this).parent('tr').find('th.sum.lekotott').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('th.sum.lekotott').removeClass('highlight');
+ }
+ );
+
+ $('table.elszamolas tr td.fennmarado').hover(function(e) {
+ $(this).parent('tr').find('th.sum.fennmarado').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('th.sum.fennmarado').removeClass('highlight');
+ }
+ );
+
+ $('table.elszamolas tr th.sum.lekotott').hover(function(e) {
+ $(this).parent('tr').find('td.lekotott').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('td.lekotott').removeClass('highlight');
+ }
+ );
+ $('table.elszamolas tr th.sum.fennmarado').hover(function(e) {
+ $(this).parent('tr').find('td.fennmarado').addClass('highlight');
+ },function(e) {
+ $(this).parent('tr').find('td.fennmarado').removeClass('highlight');
+ }
+ );
+
+ $('table.elszamolas tbody tr').hover(function() {
+ //var szazalek = $(this).data('sum');
+ var szazalek = $(this).data('percent');
+ if (szazalek>100) szazalek=100;
+ var cssClass = $(this).attr('class');
+ $('#munkaoraBar').css('width',szazalek+'%');
+ $('#munkaoraBar').addClass(cssClass);
+ },function() {
+ $('#munkaoraBar').css('width','0%');
+ $('#munkaoraBar').removeClass();
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js
new file mode 100644
index 00000000..e6d629c0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/haladasi.jquery.min.js
@@ -0,0 +1,78 @@
+showUpdateLayer = function() {
+ takaroElem = $('#takaro');
+ if (takaroElem) takaroElem.show();
+ $('#updateWindow').show();
+ $('updateForm').prop('tabindex',1);
+ $('updateForm').focus();
+}
+
+$(function() { /* onload */
+/* $('#rejtMutat').click(function(event) {
+ var element = $(event.target);
+ $('.ujOra').fadeToggle('fast');
+ });
+*/
+ $('.rejtMutat').click(function(event) {
+ $(event.target).closest('tbody').find('.ujOra').fadeToggle('fast');
+ });
+ $('.torol').change(function(event) {
+ /* rogton torolt class-uva tesszuk, akkor is, ha az ajaxRequestError van ... (lásd generikus callback) */
+ var element = $(event.target);
+ element.parents('tr').addClass('torolt');
+ element.parents('tr').find('.l').empty();
+ });
+ $('body').click(function(event) {
+ var x = $(event.target);
+ if (x.hasClass('gomb DOA'))
+ x.prop('disabled', false);
+ });
+/*
+ $('body').change(function(event) {
+ var x = $(event.target); // itt kezelhetnénk a haladasi tankorvaltasbol adodo dolgot
+ });
+*/
+ $('body').keypress(function(event) {
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+
+ if(event.target.type=='text' && element.hasClass('data')) {
+ if (charKeyCode==13) {
+ event.preventDefault();
+ element.parents('tr').nextAll(':not(.ujOra)').first().find('input[type=text]').focus();
+ }
+ }
+ });
+
+// beépülő teszt! - később!
+
+/*
+ $('#nav2 li.icons').append('<span id="naploAlertIcon1" class="icon-bullhorn"></span>');
+ $('#naploAlertIcon1').on('click', function() {
+ //var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ //var page=params.page?params.page:'';
+ //var sub=params.sub?params.sub:'';
+ //var f=params.f?params.f:'';
+ url = location.toString().replace(/sub=([^&]*)/,'sub=haladasi').replace(/f=([^&]*)/,'f=haladasi');
+// window.location = url;
+ $().redirect( url, { tanarId: "70", csakUres:"1" } );
+ });
+*/
+
+});
+
+processJSON = function(json) {
+ console.log(json.toDo);
+
+ var elementId = "#ORAID_"+json.oraId.toString();
+ if (json.toDo=='oraElmarad') {
+ $(elementId).addClass('elmarad');
+ } else if (json.toDo == 'oraMegtartva') {
+ $(elementId).removeClass();
+ }
+ $('#updateWindow').toggle();
+ $('#takaro').toggle();
+
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js
new file mode 100644
index 00000000..9be7f906
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/helyettesites.jquery.min.js
@@ -0,0 +1,27 @@
+
+showUpdateLayer = function() {
+ takaroElem = $('#takaro');
+ if (takaroElem) takaroElem.show();
+ $('#updateWindow').show();
+ $('updateForm').prop('tabindex',1);
+ $('updateForm').focus();
+ $('#updateHeader').text('Haladási napló'); // sic
+}
+
+$(function() {
+ $('.rejtMutat').click(function(event) {
+ $(event.target).closest('tbody').find('.ujOra').fadeToggle('fast');
+ });
+/* $('.torol').change(function(event) {
+ // rogton torolt class-uva tesszuk, akkor is, ha az ajaxRequestError van ... (lásd generikus callback)
+ var element = $(event.target);
+ element.parents('tr').addClass('torolt');
+ element.parents('tr').find('.l').empty();
+ });
+ $('body').click(function(event) {
+ var x = $(event.target);
+ if (x.hasClass('gomb DOA'))
+ x.prop('disabled', false);
+ });
+*/
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js
new file mode 100644
index 00000000..d3efaded
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/haladasi/pluszora.jquery.min.js
@@ -0,0 +1,42 @@
+$(function() {
+
+ $('#mindentanar').click(function() {
+ $('#tanarLista option').prop('selected', true);
+ });
+ $('#invertal').click(function() {
+ $('#tanarLista option').each(function() {
+ $(this).prop('selected',!$(this).prop('selected'));
+ });
+ });
+
+ $('#munkakozossegSelector').on('change',function() {
+ mkId = Number.parseInt($(this).val());
+ $('#tanarLista option').each(function() {
+ mkArr = ($(this).data('mk'));
+ if ($.inArray(mkId,mkArr)>=0) {
+ $(this).prop('selected',true);
+ }
+ });
+ });
+ $('#selectorMinus').on('click',function() {
+ $this = $('#munkakozossegSelector');
+ mkId = Number.parseInt($this.val());
+ $('#tanarLista option').each(function() {
+ mkArr = ($(this).data('mk'));
+ if ($.inArray(mkId,mkArr)>=0) {
+ $(this).prop('selected',false);
+ }
+ });
+ });
+ $('#selectorPlus').on('click',function() {
+ $this = $('#munkakozossegSelector');
+ mkId = Number.parseInt($this.val());
+ $('#tanarLista option').each(function() {
+ mkArr = ($(this).data('mk'));
+ if ($.inArray(mkId,mkArr)>=0) {
+ $(this).prop('selected',true);
+ }
+ });
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js
new file mode 100644
index 00000000..156ac76b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/info.jquery.min.js
@@ -0,0 +1,11 @@
+
+
+$(function() {
+ google.charts.load('current', {packages: ['corechart','line']});
+ google.charts.setOnLoadCallback(drawHianyzasStatChart);
+
+ function drawHianyzasStatChart() {
+
+ }
+
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js
new file mode 100644
index 00000000..a73bc34b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.jquery.min.js
@@ -0,0 +1,19 @@
+
+$(function() {
+ $('table input[type=text].perc').each(
+ function (index) {
+ $(this).bind('change', function(event) {
+ var element = $(event.target);
+ element.next('input').prop('checked',(element.val() != '0'));
+ if (element.val() != '0') {
+ element.addClass('kesett');
+ }
+ });
+ }
+ );
+ $('td.jelen input[type=radio],td.hiányzás input[type=radio]').change( function(event) {
+ var elem=$(event.target);
+ var percName = 'PERC_'+elem.attr('id').split('_')[1];
+ elem.closest('tr').find('input[name='+percName+']').val(0).removeClass('kesett');
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.js b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.js
new file mode 100644
index 00000000..948d6d74
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/nap.js
@@ -0,0 +1,13 @@
+
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+ $$('table input[type=text].perc').each(
+ function (elem, index) {
+ Event.observe(elem, 'change', function(event) {
+ var element = $(Event.element(event));
+ element.previous('input').checked=(element.value != '0');
+ }); // Event.observe
+ }
+ );
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js
new file mode 100644
index 00000000..1d1e313c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.jquery.min.js
@@ -0,0 +1,27 @@
+
+$(function() {
+ $('table input[type=text].perc').each(
+ function (index) {
+ $(this).bind('change', function(event) {
+ var element = $(event.target);
+ element.next('input').prop('checked',(element.val() != '0'));
+ if (element.val() != '0') {
+ element.addClass('kesett');
+ }
+ });
+ }
+ );
+ $('td.jelen input[type=radio],td.hiányzás input[type=radio]').change( function(event) {
+ var elem=$(event.target);
+ var percName = 'PERC_'+elem.attr('id').split('_')[1];
+ elem.closest('tr').find('input[name='+percName+']').val(0).removeClass('kesett');
+ });
+/*
+ $('tr.magantanulo').click( function(event) {
+ $('tr.magantanulo').fadeToggle();
+ });
+*/
+ $('tr.felmentett').click( function(event) {
+ $('tr.felmentett').fadeToggle();
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.js b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.js
new file mode 100644
index 00000000..948d6d74
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/hianyzas/ora.js
@@ -0,0 +1,13 @@
+
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+ $$('table input[type=text].perc').each(
+ function (elem, index) {
+ Event.observe(elem, 'change', function(event) {
+ var element = $(Event.element(event));
+ element.previous('input').checked=(element.value != '0');
+ }); // Event.observe
+ }
+ );
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js
new file mode 100644
index 00000000..5cd89589
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diak.jquery.min.js
@@ -0,0 +1,192 @@
+$(function() {
+
+ // A gotoCreateAccount elemre kattintva a userAccount értéket a href-hez illesztjük...
+ $('body').bind('click', function(event) {
+ element = $(event.target);
+ if (element.hasClass('gotoCreateAccount')) {
+ var userAccount = element.prev('input').val();
+ if (userAccount == '') {
+ userAccount = element.attr('title');
+ element.prev('input').val(userAccount);
+ ajaxRequest(element.closest('form'));
+ }
+ }
+ if (element.hasClass('edit')) {
+ showUpdateLayer(event);
+ }
+ });
+
+ /* Jogviszonyváltozás kezelése - záradékok és egyéb paraméterek megjelenítése */
+ $('.rejtett').hide();
+ $('#jogviszonyValtasSelect').bind('change', function(event) {
+ element = $(event.target);
+ statusz = element.val();
+ $('.rejtett').hide();
+
+ if (statusz == 'jogviszonya lezárva') {
+ $('#lezaras').show();
+ if ($('#lezarasZaradek').val() == 41) $('#igazolatlan').show();
+ else if ($('#lezarasZaradek').val == 45) $('#iskola').show();
+ } else if (statusz == 'jogviszonya felfüggesztve') $('#felfuggesztes').show();
+ });
+ $('#lezarasZaradek').bind('change', function(event) {
+ element = $(event.target);
+ var zaradekIndex = element.val();
+ if (zaradekIndex == 41) $('#igazolatlan').show();
+ else $('#igazolatlan').hide();
+ if (zaradekIndex == 45) $('#iskola').show();
+ else $('#iskola').hide();
+ });
+
+ /* A prototype activate() metódusának kiváltása */
+ activateField = function(id) {
+ $('#'+id).focus().select().mouseup(function(event){
+ event.preventDefault();
+ });
+ };
+
+ /*
+ Az oktatási azonosító
+ 11 jegyű, az első jegye 7, a 11. jegye ellenőrző kód: sum(i*xi) % 11, ahol a 10-es maradék nem megengedett
+
+ 9. számú melléklet a 79/2006. (IV. 5.) Korm. rendelethez
+ A hallgatói és az oktatói azonosító szám képzésének szabálya
+ 1. Az azonosító szám tizenegy jegyű szám.
+ 2. Az azonosító szám képzése:
+ a) az 1. számjegy konstans 7-es szám,
+ b) a 2-10. számjegyek összessége egy garantáltan egyedi,
+ véletlenszerűen generált szám,
+ c) a 11. számjegy az 1-10. számjegyek felhasználásával, matematikai
+ módszerekkel képzett ellenőrző szám.
+ 3. Az azonosító szám 11. számjegyét úgy kell képezni, hogy a 2. a)-b)
+ pontok szerint képzett 10 számjegy mindegyikét szorozni kell azzal a
+ sorszámmal, ahányadik helyet foglalja el az azonosító számon belül.
+ (Első számjegy szorozva eggyel, második számjegy szorozva kettővel és
+ így tovább.)
+ Az így kapott szorzatok összegét el kell osztani 11-gyel, és az osztás
+ maradéka a 11. számjeggyel lesz egyenlő.
+
+ A 2. b) pont szerinti sorszám nem adható ki, ha a 11-gyel való osztás
+ maradéka egyenlő tízzel.
+ */
+ $('#oId').bind('change', function(event) {
+
+ element = $(event.target);
+ oId = element.val();
+
+ var oIdString = String(oId);
+ if (oIdString.length != 11) {
+ alert('Hibás oktatási azonosító! (nem 11 jegyű)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ if (oIdString.substring(0,1) != '7') {
+ alert('Hibás oktatási azonosító! (első jegy nem 7-es)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ var chk = 0;
+ for (i = 0; i < 10; i++) {
+ chk += (i+1)*oIdString.substring(i,i+1);
+ }
+ chk = chk % 11;
+ if (chk == 10) {
+ alert('Hibás oktatási azonosító! (a 11-el vett osztási maradék nem lehet 10)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ if (chk != +oIdString.substring(10)) {
+ alert('Hibás oktatási azonosító! (Az ellenőrző összeg nem egyezik az utolsó számjeggyel)');
+ setTimeout('activateField(\'oId\')',100);
+ return false;
+ }
+ return true;
+ });
+ /*
+ Adóazonosító
+ 10 jegyű,
+ az 1. jegy 8
+ !! - a 2-6. számjegyek a személy születési időpontja és az 1867. január 1. között eltelt napok száma,
+ a 10. jegye ellenőrző kód: sum(i*xi) % 11, ahol a 10-es maradék nem megengedett
+ */
+ if ($('#adoazonosito')) $('#adoazonosito').bind('change', function(event) {
+
+ element = $(event.target);
+ aa = element.val();
+
+ var aaString = String(aa);
+ if (aaString.length != 10) {
+ alert('Hibás adóazonosító! (nem 10 jegyű)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ if (aaString.substring(0,1) != '8') {
+ alert('Hibás adóazonosító! (első jegy nem 8-as - magánszemély)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ var chk = 0;
+ for (i = 0; i < 9; i++) {
+ chk += (i+1)*aaString.substring(i,i+1);
+ }
+ chk = chk % 11;
+ if (chk == 10) {
+ alert('Hibás adóazonosító! (a 11-el vett osztási maradék nem lehet 10)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ if (chk != +aaString.substring(9)) {
+ alert('Hibás adóazonosító! (Az ellenőrző összeg nem egyezik az utolsó számjeggyel)');
+ setTimeout('activateField(\'adoazonosito\')',100);
+ return false;
+ }
+ return true;
+ });
+
+ /*
+ A TAJ
+ 9 jegyű, az első 8 egy folyamatos sorszám, a 9. CDV kód: sum(1-4)(3*x(2i-1)+7*x(2i)) % 10
+ */
+ $('#tajSzam').bind('change', function(event) {
+
+ element = $(event.target);
+ tajSzam = element.val();
+
+ var tajString = String(tajSzam);
+ if (tajString.length != 9) {
+ alert('Hibás Társadalombiztosítási Azonosító Jel! (nem 9 jegyű)');
+ setTimeout('activateField(\'tajSzam\')',100);
+ return false;
+ }
+ var chk = 0;
+ for (i = 0; i < 4; i++) {
+ chk += 3*tajString.substring(2*i,2*i+1)+7*tajString.substring(2*i+1,2*i+2);
+ }
+ chk = chk % 10;
+ if (chk != +tajString.substring(8)) {
+ alert('Hibás Tásradalombiztosítási Azonosító Jel! (Az ellenőrző összeg nem egyezik az utolsó számjeggyel)');
+ setTimeout('activateField(\'tajSzam\')',100);
+ return false;
+ }
+ return true;
+ });
+
+ /*
+ A Diákigazolvány szám
+ 10 jegyű
+ */
+ $('#diakigazolvanySzam').bind('change', function(event) {
+
+ element = $(event.target);
+ dSzam = element.val();
+
+ var dString = String(dSzam);
+ if (dString.length < 10) {
+ alert('Hibás Diákigazolvány szám! (kisebb, mint 10 jegyű)');
+ setTimeout('activateField(\'diakigazolvanySzam\')',100);
+ return false;
+ }
+ return true;
+ });
+
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js
new file mode 100644
index 00000000..778d0c33
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakFelmentes.jquery.min.js
@@ -0,0 +1,9 @@
+$(function() {
+
+ $('.rejtett').hide();
+ $('#t1altipus').change(function() {
+ if ($('#t1altipus').val() =='2') $('#T1b').show();
+ else $('#T1b').hide();
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js
new file mode 100644
index 00000000..47108be0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakStatusz.jquery.min.js
@@ -0,0 +1,31 @@
+
+$(function() {
+ $('select.zaradek').change(function(event) {
+ element = $(event.target);
+ if (element.val() == '') {
+ element.closest('form').find('input[type=submit]').hide();
+ element.next('div').html('');
+ } else {
+ var zArray = element.prop('options')[element.prop('selectedIndex')].innerHTML.split('%');
+ var zTxt = '<p>';
+ var tableTxt = '<table>';
+ for (i=0;i<zArray.length;i++) {
+ if (i % 2 == 0) {
+ zTxt = zTxt + zArray[i];
+ } else {
+ zTxt = zTxt + '<span id="'+element.attr('id')+i+'span'+'">'+zArray[i]+'</span>';
+ tableTxt = tableTxt + '<tr><th><label for="'+element.attr('id')+i+'">'+zArray[i]+'</label></th>';
+ tableTxt = tableTxt + '<td><input type="text" name="values[]" value="" id="'+element.attr('id')+i+'" class="onChangeReplaceSpan" /></td></tr>';
+ }
+ }
+ tableTxt = tableTxt + '</table>';
+ zTxt = '<p>' + zTxt + '</p>' + tableTxt;
+ element.next('div').html(zTxt);
+ element.next('div').find('table input[type=text]').change(function(event) {
+ var element = $(event.target);
+ $('#'+element.attr('id')+'span').innerHTML=element.val().escapeHTML();
+ });
+ element.closest('form').find('input[type=submit]').show();
+ }
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js
new file mode 100644
index 00000000..35e83089
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakSzulo.jquery.min.js
@@ -0,0 +1,18 @@
+
+$(function() {
+ $('#szuletesiEv').change(function(event) {
+ var element = $(event.target);
+ var dSzam = element.val();
+ var dString = String(dSzam);
+ if (dString.length != 4) {
+ alert('Hibás évszám! (nem 4 jegyű)');
+// setTimeout('document.getElementById(\'szuletesiEv\').activate()',1000);
+ setTimeout('$(\'#szuletesiEv\').focus().select()',100);
+
+ return false;
+ }
+ return true;
+
+ });
+});
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js
new file mode 100644
index 00000000..abb82689
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/diakTankorJelentkezes.jquery.min.js
@@ -0,0 +1,56 @@
+$(function() {
+ $('table.tankor tr').hover(function(event) {
+ var element = $(event.target);
+ element.closest('tr').addClass('ez');
+ $($(this).attr('class').split(' ')).each(function() {
+ if (this != '') {
+ $('table.tankor tr.'+this+':not(.benne):not(.ez)').addClass('utkozik');
+ }
+ });
+ },function(event) {
+ $('table.tankor tr').removeClass('utkozik').removeClass('ez');
+ });
+});
+
+/*
+
+Event.observe(window, 'load', myPSFLoader, false);
+
+
+function myPSFLoader(evt) {
+
+ $$('table.tankor tr').each(
+ function (elem, index) {
+
+ if (elem.getAttribute('class') != null) {
+ Event.observe(elem, 'mouseover', function(event) {
+
+ var element = $(Event.element(event));
+ var trElement = element.up('tr');
+ var classNames = $w(trElement.className.split('benne').join(' '));
+ if (classNames.length > 0) {
+ var tdElements = $$('tr.'+classNames.join(' td, tr.')+' td');
+ for (i=0; i<tdElements.length; i++) {
+ if (tdElements[i].up('tr') != trElement) tdElements[i].addClassName('utkozik');
+ }
+ }
+
+ });
+ Event.observe(elem, 'mouseout', function(event) {
+
+ var element = $(Event.element(event));
+// var classNames = $w(element.up('tr').className);
+ var trElement = element.up('tr');
+ var classNames = $w(trElement.className.split('benne').join(' '));
+ if (classNames.length > 0) {
+ var tdElements = $$('tr.'+classNames.join(' td, tr.')+' td');
+ for (i=0; i<tdElements.length; i++) tdElements[i].removeClassName('utkozik');
+ }
+ });
+
+ }
+
+ }
+ );
+}
+*/ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js
new file mode 100644
index 00000000..75cd36c3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepesitesek.jquery.min.js
@@ -0,0 +1,64 @@
+
+ processJSONDelTargy = function(msg, element) {
+
+ console.log(msg);
+ element.closest('li').remove();
+
+ }
+ processJSONDelTanar = processJSONDelTargy;
+
+$(function() {
+
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+
+ if (element.hasClass('delTargy')) {
+ targyId = element.data('targyid');
+ kepesitesId = element.data('kepesitesid');
+
+ postData = { 'action':'delTargy', 'targyId':targyId, 'kepesitesId':kepesitesId }
+ saltName = $('#kepesitesForm input.salt').prop('name');
+ saltValue = $('#kepesitesForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=intezmeny&f=kepesitesek&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONDelTargy(msg, element);
+ });
+
+
+ } else if (element.hasClass('delTanar')) {
+ tanarId = element.data('tanarid');
+ kepesitesId = element.data('kepesitesid');
+
+ postData = { 'action':'delTanar', 'tanarId':tanarId, 'kepesitesId':kepesitesId }
+ saltName = $('#kepesitesForm input.salt').prop('name');
+ saltValue = $('#kepesitesForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=intezmeny&f=kepesitesek&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONDelTanar(msg, element);
+ });
+
+
+ }
+
+ });
+
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js
new file mode 100644
index 00000000..6abc9f50
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/kepzesOraterv.jquery.min.js
@@ -0,0 +1,48 @@
+
+$(function() {
+
+
+ $('#targySel').change(function(event) {
+
+ element = $(event.target);
+ kovetelmeny = element.find('option:selected').data('kovetelmeny');
+ element.closest('th').nextAll('td').find('select option[value="'+kovetelmeny+'"]').prop('selected',true);
+
+ });
+ $('body').click(function(event) {
+ element = $(event.target);
+ if (element.closest('span#felevValtas').length == 1) {
+ if (element.hasClass('felev1')) {
+ $('form.kepzesOraterv table tr.rogzitett .felev1').hide();
+ $('form.kepzesOraterv table tr.rogzitett .felev2').slideDown('slow');
+ $('form.kepzesOraterv table thead .felev1').hide();
+ $('form.kepzesOraterv table thead .felev2').slideDown('slow');
+ } else if (element.hasClass('felev2')) {
+ $('form.kepzesOraterv table tr.rogzitett .felev2').hide();
+ $('form.kepzesOraterv table tr.rogzitett .felev1').slideDown('slow');
+ $('form.kepzesOraterv table thead .felev2').hide();
+ $('form.kepzesOraterv table thead .felev1').slideDown('slow');
+ }
+ } else if (element.closest('span#oraszamKovetelmeny').length == 1) {
+ if (element.hasClass('oraszam')) {
+ $('form.kepzesOraterv table tr.rogzitett span.oraszam').hide();
+ $('form.kepzesOraterv table tr.rogzitett span.kovetelmeny').slideDown('slow');
+ $('form.kepzesOraterv table thead span.oraszam').hide();
+ $('form.kepzesOraterv table thead span.kovetelmeny').slideDown('slow');
+ } else if (element.hasClass('kovetelmeny')) {
+ $('form.kepzesOraterv table tr.rogzitett span.kovetelmeny').hide();
+ $('form.kepzesOraterv table tr.rogzitett span.oraszam').slideDown('slow');
+ $('form.kepzesOraterv table thead span.kovetelmeny').hide();
+ $('form.kepzesOraterv table thead span.oraszam').slideDown('slow');
+ }
+ } else if (element.closest('tr.rogzitett').length == 1) {
+ element.closest('tr').find('td span').hide();
+ element.closest('tr').removeClass('rogzitett').addClass('szerkeszt');
+ element.closest('tr').find('td div').slideDown();
+/*
+ element.closest('tr').find('input').show();
+ element.closest('tr').find('select').show();
+*/ }
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js
new file mode 100644
index 00000000..fe003893
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/osztaly.jquery.min.js
@@ -0,0 +1,57 @@
+
+$(function () {
+
+ var evfolyamJelek = [];
+ $('body').change(function(event) {
+
+ element = $(event.target);
+
+ if (element.attr('id')=='osztalyJellegId') {
+ if (element.val() != '') {
+ element.closest('div').nextAll('div').slideUp();
+ $('#divKezdoTanev').slideDown().focus();
+ element.data('evfolyamjelek',element.find('option:selected').data('evfolyamjelek'));
+ evfolyamJelek = $('#osztalyJellegId').data('evfolyamjelek');
+ $('span#kezdoEvfolyamJel').html(evfolyamJelek[0]);
+ }
+ } else if (element.attr('id')=='kezdoTanev') {
+ if (element.val() != '') {
+ $('#vegzoTanev option:selected').prop('selected',false);
+ $('#vegzoTanev').find('option').prop('disabled',true).hide();
+ $('#vegzoTanev').find('option:first-child').prop('disabled',false).show();
+ vtOptions = $('#vegzoTanev').find('option').get();
+ i=0;
+ while (i<vtOptions.length && $(vtOptions[i]).val() != element.val()) i++;
+ for (j=i; j<vtOptions.length && j < i+evfolyamJelek.length; j++) $(vtOptions[j]).prop('disabled',false).show();
+ $('#divVegzoTanev').slideDown().focus();
+ }
+ } else if (element.attr('id') == 'vegzoTanev') {
+
+ ulStr = 'Kezdés évfolyama: <ul id="evfolyamJelek">';
+ maxKS = evfolyamJelek.length-($('#vegzoTanev').val()-$('#kezdoTanev').val());
+ osztalyJel = $('#jel').val();
+ for (i=0; i<evfolyamJelek.length; i++) {
+ if (i<$('#vegzoTanev').val()-$('#kezdoTanev').val()+1) ulStr += '<li class="kivalasztott">';
+ else ulStr += '<li>';
+ ulStr += evfolyamJelek[i]+'.&nbsp;<span class="osztalyJel">'+(osztalyJel==''?'?':osztalyJel)+'</span>';
+ if (i < maxKS) ulStr += '<br /><input type="radio" name="kezdoEvfolyamSorszam" value="'+(i+1)+'" '+(i==0?' checked="checked" ':'')+'/>';
+ ulStr += '</li>';
+ }
+ ulStr += '</ul>';
+ $('#divKezdoEvfolyamSorszam').html(ulStr);
+ $('#divJel').slideDown().focus();
+ $('#divKezdoEvfolyamSorszam').slideDown();
+ } else if (element.closest('ul').attr('id') == 'evfolyamJelek') {
+ element.closest('ul').find('li').removeClass('kivalasztott');
+ e = element.closest('li'); i=0;
+ while (i<$('#vegzoTanev').val()-$('#kezdoTanev').val()+1) {
+ e.addClass('kivalasztott');
+ e = e.next('li');
+ i++;
+ }
+ } else if (element.attr('id') == 'jel') {
+ $('#divKezdoEvfolyamSorszam li span.osztalyJel').html(element.val());
+ $('#divLeirasTelephely').slideDown();
+ }
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js
new file mode 100644
index 00000000..a23b0c80
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tanar.jquery.min.js
@@ -0,0 +1,41 @@
+
+
+$(function() {
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+ if (element.hasClass('slideUj')) {
+ $('tr#ujKepesites').slideToggle('slow');
+ }
+
+ });
+
+ $('select#statusz').change(function(event) {
+ element = $(event.target);
+ if (element.val() != 'jogviszonya lezárva') {
+ if (IsDate($('input#kiDt').val())) {
+ curdate = new Date();
+ date = new Date($('input#kiDt').val());
+ if (date<curdate) {
+ $('input#kiDt').val('');
+ $('input#kiDt').change();
+ }
+ }
+ }
+ });
+
+ $('input#kiDt').change(function(event) {
+ element = $(event.target);
+ if (IsDate(element.val())) {
+ curdate = new Date();
+ date = new Date(element.val());
+ if (date<curdate) {
+ $('select#statusz option#jogviszonyaLezarva').prop('selected',true).prop('disabled',false);
+ $('select#statusz').change();
+ }
+ } else {
+ }
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js
new file mode 100644
index 00000000..29c0713b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankor.jquery.min.js
@@ -0,0 +1,8 @@
+
+$(function() {
+ $('table.szemeszter input[type=text]').on('change', function(event) {
+ element = $(event.target);
+ // le kell védeni a / jelet a selector-ban!
+ $('#c'+element.attr('id').substring(1).replace('/','\\/')).prop('checked', (element.val() != ''));
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js
new file mode 100644
index 00000000..2f549ff8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorDiak.jquery.min.js
@@ -0,0 +1,23 @@
+
+$(function() {
+
+ $('body').on('click', function(event) {
+
+ element = $(event.target);
+ if (element.hasClass('setAll')) {
+ tableElement = element.next('td').find('table input[type=checkbox]').click();
+ }
+ if (element.hasClass('setAllFiu')) {
+ //tableElement = $('.egyosztaly input[type=checkbox].fiu').click();
+ //tableElement = element.up('.egyosztaly input[type=checkbox].fiu').click();
+ //console.log(element.prev('table'));
+ tableElement = $('.egyosztaly input[type=checkbox].fiu').click();
+ }
+ if (element.hasClass('setAllLany')) {
+ tableElement = $('.egyosztaly input[type=checkbox].lany').click();
+ }
+
+ });
+
+});
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js
new file mode 100644
index 00000000..3a5df16f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tankorTanarHozzarendeles.jquery.min.js
@@ -0,0 +1,594 @@
+$(function() {
+
+ displayJSONerror = function(json) {
+ alert(JSON.stringify(json));
+ }
+
+ checkOraszam = function(plusz, minusz) {
+ $('table#tt td.lekotott').each(function(index) {
+ checkTanarOraszam($(this), plusz, minusz, false);
+ });
+ $('table#tt span#keszTanarDb').html($('table#tt tr.ok').length);
+ }
+
+ checkTanarOraszam = function(lekotottTd, plusz, minusz, dbFrissit) {
+ lekotott = parseFloat(lekotottTd.find('span.lekotott').html().replace(',','.'));
+ kotelezo = parseFloat(lekotottTd.find('span.kotelezo').html().replace(',','.'));
+ if (lekotott<kotelezo-minusz) lekotottTd.closest('tr').removeClass('ok').removeClass('plusz').addClass('minusz');
+ else if (lekotott>kotelezo+plusz) lekotottTd.closest('tr').removeClass('ok').removeClass('minusz').addClass('plusz');
+ else lekotottTd.closest('tr').removeClass('minusz').removeClass('plusz').addClass('ok');
+
+ if (dbFrissit) $('table#tt span#keszTanarDb').html($('table#tt tr.ok').length);
+ }
+
+ ajaxGetTankorAdat_tth = function(tankorId) {
+ postData = { 'tankorId':tankorId, 'mayorToken': $('body').data('mayortoken') }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTankorAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionID'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorAdat_tth(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ });
+ }
+
+ processJSONTankorMod = function( msg ) {
+ // console.log(JSON.stringify(msg));
+ $('#updateWindowSide').data('target').html(msg.tankorNevTargyNelkul);
+ processJSONTankorAdat( msg );
+ }
+
+ processJSONTankorAdat_tth = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ $('#updateWindowSideContent').html('');
+ $('#updateWindowSideTitle').html('Tantárgyfelosztás - Tankör');
+ $('<p class="tankorNev">' +msg.tankorNevReszei.evfOszt+' '
+ +msg.tankorNevReszei.targyNev
+ +(msg.tankorNevReszei.tankorJel!=''&&msg.tankorNevReszei.tankorJel!=null?msg.tankorNevReszei.tankorJel+' ':'')
+ +' <span class="tankorNevExtra">'+msg.tankorNevReszei.tankorNevExtra+'</span>'
+ +'<input id="tankorNevExtra" type="text" name="tankorNevExtra" value="'+msg.tankorNevReszei.tankorNevExtra+'" />'
+ +' ('+msg.tankorId+')</p>').appendTo('#updateWindowSideContent');
+ $('<p class="tankorModosit">Módosít!</p>').appendTo('#updateWindowSideContent');
+ // adatok
+ ulStr = '<ul>'
+ +'<li>Évközi követelmény: '+msg.kovetelmeny+'</li>'
+ +'<li>Létszám korlát: '+msg.min+'-'+msg.max+'</li>'
+ +'<li>Tankör-típus: '+msg.rovidNev+' ('+msg.tankorTipusId+')</li>'
+ +'</ul>';
+ $(ulStr).appendTo('#updateWindowSideContent');
+ // osztályok
+ ulStr = '<ul id="tankorOsztaly">';
+ pStr = '<div class="slideToggleContainer" id="pTankorOsztaly">Osztályai: <span class="tankorData slideToggle">';
+ for (i=0; i<msg.osztalyok.length; i++) {
+ ulStr += '<li>'
+ +'<input type="checkbox" name="osztalyId[]" value="'+msg.osztalyok[i].osztalyId+'" id="oTankorId-'+msg.osztalyok[i].osztalyId+'" ';
+ if ($.inArray(msg.osztalyok[i].osztalyId, msg.osztalyIds)>-1) {
+ ulStr += 'checked="checked" ';
+ pStr += msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+') ';
+ }
+ ulStr += '/> '
+ +'<label for="oTankorId-'+msg.osztalyok[i].osztalyId+'">'+msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+')</label></li>';
+ }
+ ulStr += '</ul>';
+ pStr += '</span><span class="icon-chevron-down slideToggle"></span>'+ulStr+'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+ // szemeszterek, óraszámok
+ ulStr = '<ul id="tankorSzemeszter">';
+ for (i=0; i<msg.tankorSzemeszter.length; i++) {
+ ulStr += '<li>'+msg.tankorSzemeszter[i].tanev+'/'+msg.tankorSzemeszter[i].szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+msg.tankorSzemeszter[i].tanev+'-'+msg.tankorSzemeszter[i].szemeszter+'" value="'+msg.tankorSzemeszter[i].oraszam+'" />'
+ +'</li>';
+ }
+ ulStr += '</ul>';
+ pStr = '<div class="slideToggleContainer" id="pTankorSzemeszter">Óraszám: <span class="tankorData slideToggle">'+msg.oraszam+' ('+msg.tanev+'/'+msg.szemeszter+')</span>'
+ +'<span class="icon-chevron-down slideToggle"></span>'
+ +ulStr
+ +'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+
+ $('#updateWindowSideSub').removeClass('nyitva');
+ if (!$('#updateWindowSide').hasClass('nyitva')) {
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+ }
+
+ processJSONChk = function(msg, element, tanarId, tankorId) {
+ // console.log(JSON.stringify(msg));
+ tankorTd = $('td#col_'+tankorId);
+ if (element.prop('checked')) {
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ if ($(this).val() != element.val()) {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))-oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ }
+ });
+ if (!tankorTd.hasClass('kesz')) {
+ tankorTd.addClass('kesz');
+ db = parseInt($('table#tt span#keszTankorDb').html());
+ $('table#tt span#keszTankorDb').html(++db);
+ } else { tankorTd.removeClass('kesz').addClass('tobb') }
+ tankorTd.data('tanardb', parseInt(tankorTd.data('tanardb'))+1);
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ plusz=parseInt($('div#statusz span#plusz').html());
+ minusz=parseInt($('div#statusz span#minusz').html());
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))+oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ checkTanarOraszam(lSpan.closest('td'), plusz, minusz, true);
+ }
+ });
+ } else {
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ lSpan = element.closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))-oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))-oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ }
+ });
+ if ($('table#tt td.col-'+tankorId+' input:checked').length == 0) {
+ tankorTd.removeClass('kesz');
+ db = parseInt($('table#tt span#keszTankorDb').html());
+ $('table#tt span#keszTankorDb').html(--db);
+ } else if ($('table#tt td.col-'+tankorId+' input:checked').length == 1) tankorTd.removeClass('tobb').addClass('kesz');
+ tankorTd.data('tanardb', parseInt(tankorTd.data('tanardb'))-1);
+ oraPerFo = (parseFloat(tankorTd.data('oraszam').replace(',','.'))/parseInt(tankorTd.data('tanardb')));
+ plusz=parseInt($('div#statusz span#plusz').html());
+ minusz=parseInt($('div#statusz span#minusz').html());
+ checkTanarOraszam(element.closest('tr').find('td.lekotott'), plusz, minusz, true);
+ $('table#tt td.col-'+tankorId+' input:checked').each(function(index) {
+ if ($(this).val() != element.val()) {
+ lSpan = $(this).closest('tr').find('span.lekotott');
+ lekot = parseFloat(lSpan.html().replace(',','.'))+oraPerFo;
+ lSpan.html(lekot.toString().replace('.',','));
+ }
+ checkTanarOraszam($(this).closest('tr').find('td.lekotott'), plusz, minusz, true);
+ });
+ }
+ $('#cell_'+tanarId+'_'+tankorId).animate({backgroundColor: '#00ff00'}, 100).animate({backgroundColor: '#eeeeee'}, 1000);
+ }
+
+
+
+//////////////////////////////////ITT VOLT AZ ELEJE
+ // TODO - ezt kivenni
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+ $('body').data('sessionID',sessionID); // ez nem lenne szukseges. lasd meg data-sessionid
+
+ checkOraszam(2,2);
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+ saltName = $('#updateForm input.salt').prop('name');
+ saltValue = $('#updateForm input.salt').val();
+
+ if (element.attr('id')=='szuro') {
+ $('#updateWindowSideTitle').html('Szűrés');
+
+ dStr = '<form method="post" action="">';
+ dStr += '<input type="hidden" class="salt" name="'+saltName+'" value="'+saltValue+'" />';
+ dStr += '<input type="hidden" class="mayorToken" name="mayorToken" value="'+ ($('body').data('mayortoken')) +'" />';
+
+ // Osztályok
+ ulStr = '<ul>'; spanStr = '';
+ for (i=0; i<$('#szuro').data('szuro').osztalyok.length; i++) {
+ oAdat = $('#szuro').data('szuro').osztalyok[i];
+ ulStr += '<li>'
+ +'<input class="szOsztaly" id="szOsztalyId-'+oAdat['osztalyId']+'" type="checkbox" name="osztalyIds[]" value="'+oAdat['osztalyId']+'"';
+ if ($.inArray(parseInt(oAdat['osztalyId']), $('#szuro').data('szuro').osztalyIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<span id="selOsztalyId-'+oAdat['osztalyId']+'"> '+oAdat['osztalyJel']+' ('+oAdat['osztalyId']+')</span>';
+ }
+ ulStr += '/><label for="szOsztalyId-'+oAdat['osztalyId']+'">'+oAdat['osztalyJel']+' ('+oAdat['osztalyId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szOsztaly" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Osztályok:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+ // Munkaközösségek
+ ulStr = '<ul>'; spanStr = '';
+ for (i=0; i<$('#szuro').data('szuro').munkakozossegek.length; i++) {
+ oAdat = $('#szuro').data('szuro').munkakozossegek[i];
+ ulStr += '<li>'
+ +'<input class="szMk" id="szMkId-'+oAdat['mkId']+'" type="checkbox" name="mkIds[]" value="'+oAdat['mkId']+'"';
+ if ($.inArray(parseInt(oAdat['mkId']), $('#szuro').data('szuro').mkIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selMkId-'+oAdat['mkId']+'"> '+oAdat['mkNev']+' ('+oAdat['mkId']+')</span>';
+ }
+ ulStr += '/><label for="szMkId-'+oAdat['mkId']+'">'+oAdat['mkNev']+' ('+oAdat['mkId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szMk" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Munkaközösségek:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+ // Tárgyak
+ ulStr = '<ul>'; spanStr = '';
+ for (i=0; i<$('#szuro').data('szuro').targyak.length; i++) {
+ oAdat = $('#szuro').data('szuro').targyak[i];
+ ulStr += '<li>'
+ +'<input class="szTargy" id="szTargyId-'+oAdat['targyId']+'" type="checkbox" name="targyIds[]" value="'+oAdat['targyId']+'"';
+ if ($.inArray(parseInt(oAdat['targyId']), $('#szuro').data('szuro').targyIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selTargyId-'+oAdat['targyId']+'"> '+oAdat['targyNev']+' ('+oAdat['targyId']+')</span>';
+ }
+ ulStr += '/><label for="szTargyId-'+oAdat['targyId']+'">'+oAdat['targyNev']+' ('+oAdat['targyId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szTargy" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Tárgyak:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+ // Tanárok
+ ulStr = '<ul>'; spanStr = '';
+ ulStr += '<li class="tanarNelkuli">'
+ +'<input class="szTanar" id="szTanarNelkuliTankorok" type="checkbox" name="tanarNelkuliTankorok" value="true"';
+ if ( $('#szuro').data('szuro').tanarNelkuliTankorok ) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selTanarId-0">Tanár nélküli tankörök</span>';
+ }
+ ulStr += '/><label for="szTanarNelkuliTankorok">Tanár nélküli tankörök</label></li>';
+
+ for (i=0; i<$('#szuro').data('szuro').tanarok.length; i++) {
+ oAdat = $('#szuro').data('szuro').tanarok[i];
+ ulStr += '<li>'
+ +'<input class="szTanar" id="szTanarId-'+oAdat['tanarId']+'" type="checkbox" name="tanarIds[]" value="'+oAdat['tanarId']+'"';
+ if ($.inArray(parseInt(oAdat['tanarId']), $('#szuro').data('szuro').tanarIds)>-1) {
+ ulStr += ' checked="checked" ';
+ spanStr += '<br/><span id="selTanarId-'+oAdat['tanarId']+'"> '+oAdat['tanarNev']+' ('+oAdat['tanarId']+')</span>';
+ }
+ ulStr += '/><label for="szTanarId-'+oAdat['tanarId']+'">'+oAdat['tanarNev']+' ('+oAdat['tanarId']+')</label></li>';
+ }
+ ulStr += '</ul>';
+ dStr += '<div id="szTanar" class="slideContainer">'
+ +'<span class="slider icon-chevron-down"></span>'
+ +'<span class="icon-minus-sign unset"></span> '
+ +'<strong class="slider">Tanárok:</strong> '+spanStr;
+ dStr += ulStr;
+ dStr += '</div>';
+
+
+
+ dStr += '<input type="submit" value="Szűrés" />';
+ dStr += '</form>';
+ $('#updateWindowSideContent').html('');
+ $(dStr).appendTo('#updateWindowSideContent');
+
+ $('#updateWindowSideSub').removeClass('nyitva');
+ $('#updateWindowSide').addClass('nyitva');
+
+ } else if (element.hasClass('slideContainer') || element.hasClass('slideToggleContainer')) {
+ element.find('ul').slideToggle(75);
+ element.find('span.slider').toggleClass('icon-chevron-down').toggleClass('icon-chevron-up');
+ } else if (element.hasClass('slider') || element.hasClass('slideToggle')) {
+ element.closest('div').find('ul').slideToggle(75);
+ element.closest('div').find('span.slider').toggleClass('icon-chevron-down').toggleClass('icon-chevron-up');
+ } else if (element.hasClass('tankor')) {
+ // console.log(element);
+ $('#updateWindowSide').data('target',element);
+ ajaxGetTankorAdat_tth(element.data('tankorid'));
+ } else if (element.hasClass('tankorNevExtra')) {
+ element.next('input#tankorNevExtra').show();
+ element.hide();
+ } else if (element.hasClass('tankorModosit')) {
+ postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() }
+ $('#updateWindowSide ul#tankorOsztaly input:checked').each(function(index){postData.osztalyIds.push($(this).val());})
+ $('#updateWindowSide ul#tankorSzemeszter input[type=text]').each(function(index){
+ if ($(this).val() != '') {
+ tmp = $(this).attr('name').split('-');
+ postData.tankorSzemeszter.push({'tanev':tmp[1], 'szemeszter': tmp[2], 'oraszam': $(this).val() });
+ }
+ });
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=tankorMod&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorMod(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ // console.log('fail');
+ // console.log(jqXHR);
+ });
+ } else if (element.hasClass('tantan') && !element.hasClass('disable')) {
+ chkElement = element.find('input[type=checkbox]');
+ chkElement.click();
+ } else if (element.attr('id') == 'plusz' || element.attr('id') == 'minusz') {
+ element.find('ul.limit').slideToggle(85);
+ } else if (element.hasClass('setLimit')) {
+ spanElement = element.closest('span');
+ ulElement = element.closest('ul.limit');
+ ulElement.slideUp().detach();
+ spanElement.html(' '+element.html());
+ ulElement.appendTo(spanElement);
+ plusz=parseInt($('div#statusz span#plusz').html());
+ minusz=parseInt($('div#statusz span#minusz').html());
+ checkOraszam(plusz, minusz);
+ } else if (element.hasClass('targy')) {
+ targyId = element.data('targyid');
+ szurtTargyId = $('table#tt').data('szurtTargyId');
+ if (szurtTargyId == targyId) {
+ // szűrés megszüntetése
+ $('table#tt tr.tanar').not('.targy'+szurtTargyId).removeClass('szurt');
+ $('table#tt').data('szurtTargyId','');
+ } else {
+ // szűrni kell
+ if (szurtTargyId != '') {
+ // egy másik szűrés volt eddig - megszűntettjük
+ $('table#tt tr.tanar').not('.targy'+szurtTargyId).removeClass('szurt');
+ }
+ $('table#tt tr.tanar').not('.targy'+targyId).addClass('szurt');
+ $('table#tt').data('szurtTargyId',targyId);
+ }
+ // szűrés miatt az első látható cella eltűnhet, módosulhat
+ if ($('tr.tanar.first').hasClass('szurt')) {
+ trElements = $('tr.tanar.first').nextAll('tr.tanar').not('.szurt').get();
+ if (trElements.length>0) {
+ $('tr.tanar.first').removeClass('first');
+ $(trElements[0]).addClass('first');
+ } else {
+ // ha nincs lefele látható sor, akkor felfelé keresünk...
+ trElements = $('tr.tanar.first').prevAll('tr.tanar').not('.szurt').get();
+ if (trElements.length>0) {
+ $('tr.tanar.first').removeClass('first');
+ $(trElements[0]).addClass('first').removeClass('csukott');
+ $(trElements[0]).nextAll('tr').removeClass('csukott');
+ }
+ }
+ }
+ } else if (element.hasClass('unset')) {
+ element.closest('div').find('input[type=checkbox]:checked').click();
+ } else if (element.hasClass('toggleKesz')) {
+/* ez meg nem mukodik
+ $('table#tt td.tankor.kesz').each(function(index) {
+ className = 'col-'+$(this).data('tankorid');
+ $('table#tt td.tantan.'+className).toggleClass('szurt');
+ $(this).toggleClass('szurt');
+ thTargy = $('table#tt th#thTargy-'+$(this).data('targyid'));
+ colSpan = $('table#tt td.tdTargy-'+$(this).data('targyid')).not('.szurt').length;
+ thTargy.prop('colspan',colSpan);
+ if (colSpan==0) thTargy.addClass('szurt');
+ else thTargy.removeClass('szurt');
+ });
+*/
+ }
+
+ });
+
+ $('body').change(function(event) {
+
+ element = $(event.target);
+
+ if (element.hasClass('szOsztaly')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').osztalyIds.push( element.val() );
+ $('<span id="selOsztalyId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szOsztaly strong');
+ } else {
+ $('div#szOsztaly span#selOsztalyId-'+element.val()).prev('br').remove();
+ $('div#szOsztaly span#selOsztalyId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').osztalyIds;
+ $('#szuro').data('szuro').osztalyIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').osztalyIds.push(tmp[i]);
+ }
+ } else if (element.hasClass('szMk')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').mkIds.push( element.val() );
+ $('<br /><span id="selMkId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szMk strong');
+ } else {
+ $('div#szMk span#selMkId-'+element.val()).prev('br').remove();
+ $('div#szMk span#selMkId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').mkIds;
+ $('#szuro').data('szuro').mkIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').mkIds.push(tmp[i]);
+ }
+ } else if (element.hasClass('szTanar')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').tanarIds.push( element.val() );
+ $('<br /><span id="selTanarId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szTanar strong');
+ } else {
+ $('div#szTanar span#selTanarId-'+element.val()).prev('br').remove();
+ $('div#szTanar span#selTanarId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').tanarIds;
+ $('#szuro').data('szuro').tanarIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').tanarIds.push(tmp[i]);
+ }
+ } else if (element.hasClass('szTargy')) {
+ if (element.prop('checked')) {
+ $('#szuro').data('szuro').targyIds.push( element.val() );
+ $('<br /><span id="selTargyId-'+element.val()+'"> '+element.next('label').html()+'</span>').insertAfter('div#szTargy strong');
+ } else {
+ $('div#szTargy span#selTargyId-'+element.val()).prev('br').remove();
+ $('div#szTargy span#selTargyId-'+element.val()).remove();
+ tmp = $('#szuro').data('szuro').targyIds;
+ $('#szuro').data('szuro').targyIds = [];
+ for (i=0; i<tmp.length; i++) if (tmp[i] != element.val()) $('#szuro').data('szuro').targyIds.push(tmp[i]);
+ }
+ } else if (element.closest('div').hasClass('slideToggleContainer')) {
+ element.closest('div').find('span.tankorData').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ } else if (element.attr('id')=='tankorNevExtra') {
+ if (!element.prev('span.tankorNevExtra').hasClass('changed')) {
+ element.prev('span.tankorNevExtra').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ }
+ } else if (element.hasClass('chkTT')) {
+ saltName = $('#updateForm input.salt').prop('name');
+ saltValue = $('#updateForm input.salt').val();
+ var chkData = element.val().split('_');
+ var tanarId = chkData[0];
+ var tankorId = chkData[1];
+ if(element.prop('checked')) ajaxAction='tankorTanarFelvesz';
+ else ajaxAction='tankorTanarTorol';
+
+ var postData = { 'action':ajaxAction ,'tankorId':tankorId, 'tanarId':tanarId, 'sessionID':sessionID, 'mayorToken': ($('body').data('mayortoken')) };
+ postData[saltName] = saltValue;
+
+ $('#cell_'+tanarId+'_'+tankorId).animate({backgroundColor: '#aaaaaa'}, 10);
+ // TODO: a requestet meg kellene várnunk! ??
+ $.ajax({
+ type: "POST",
+ url: "?page=naplo&sub=intezmeny&f=tankorTanarHozzarendeles&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONChk(msg, element, tanarId, tankorId);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ }).fail(function(jqXHR, textStatus) {
+ displayJSONerror(jqXHR.responseJSON);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ $('#cell_'+tanarId+'_'+tankorId + ' > input').attr('checked',false);
+ $('#cell_'+tanarId+'_'+tankorId).animate({backgroundColor: '#ff0000'}, 100).animate({backgroundColor: '#eeeeee'}, 1000);
+ });
+
+ }
+
+ });
+
+ $('body').focusout(function(event) {
+ var element = $(event.target);
+ if (element.attr('id')=='tankorNevExtra') {
+ element.prev('span.tankorNevExtra').html( element.val() ).show();
+ element.hide();
+ }
+ });
+
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:last-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = 1+parseInt(tmp[1]);
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').appendTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').next('li').find('input').focus();
+ }
+
+ });
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:first-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9 && shiftKey) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = parseInt(tmp[1])-1;
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').prependTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').prev('li').find('input').focus();
+ }
+
+ });
+
+
+ $('body').keydown(function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (!$('#updateWindowSide').hasClass('nyitva')) {
+ if (charKeyCode == 37) { // balra
+ event.preventDefault();
+ firstTh = $('table#tt th.first.targy');
+ firstColspan = firstTh.attr('colspan');
+ if (firstColspan < firstTh.data('colspan')) {
+ firstTh.attr('colspan', ++firstColspan);
+ } else {
+ if (firstTh.prev('th.targy').length > 0) {
+ firstTh.removeClass('first');
+ firstTh.prev('th.targy').addClass('first').show();
+ }
+ }
+ firstTd = $('table#tt td.first');
+ if ($('table#tt td.first.tankor').prev('td.tankor').length>0) {
+ firstTd.removeClass('first');
+ firstTd.prev('td').addClass('first').show();
+ }
+ } else if (charKeyCode == 39) { // jobb
+ event.preventDefault();
+ firstTh = $('table#tt th.first.targy');
+ firstColspan = firstTh.attr('colspan');
+ if (firstColspan > 1) {
+ firstTh.attr('colspan', firstColspan-1);
+ } else {
+ if (firstTh.next('th.targy').length > 0) {
+ firstTh.removeClass('first').hide();
+ firstTh.next('th.targy').addClass('first');
+ }
+ }
+ firstTd = $('table#tt td.first');
+ if ($('table#tt td.first.tankor').next('td.tankor').length>0) {
+ firstTd.removeClass('first').hide();
+ firstTd.next('td').addClass('first');
+ }
+ } else if (charKeyCode == 40) { // le
+ event.preventDefault();
+ firstTr = $('table#tt tr.first.tanar');
+ nextTrs = firstTr.nextAll('tr').not('.szurt').get();
+ if (nextTrs.length>0) {
+ firstTr.removeClass('first');
+ $(nextTrs[0]).prevAll('tr.tanar').addClass('csukott');
+ $(nextTrs[0]).addClass('first');
+ }
+ } else if (charKeyCode == 38) { // fel
+ event.preventDefault();
+ firstTr = $('table#tt tr.first.tanar');
+ prevTrs = firstTr.prevAll('tr').not('.szurt').get();
+ if (prevTrs.length>0) {
+ firstTr.removeClass('first');
+ $(prevTrs[0]).addClass('first').removeClass('csukott');
+ $(prevTrs[0]).nextAll('tr.tanar').removeClass('csukott');
+ }
+ }} // updateWindowSide - !nyitva
+ });
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js
new file mode 100644
index 00000000..db9f0830
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/tovabbkepzes.jquery.min.js
@@ -0,0 +1,210 @@
+$(function() {
+
+ var sumOsszeg=0;
+ var sumTamogatas=0;
+ var sumOsszeg_ok=0;
+ var sumTamogatas_ok=0;
+
+ checkTamogatasInput();
+ $('#ujTovabbkepzes span.ujIntezmeny').click(function() {
+ var h = 'Intézmény rövidneve: <input type="text" name="intezmenyRovidNev" /> ';
+ h += 'Intézmény neve: <input type="text" name="intezmenyNev" style="width:200px;"/>';
+ $(this).after(h);
+ $('#ujTovabbkepzes span.ujIntezmeny').remove();
+ $('#ujTovabbkepzes select').hide();
+ });
+
+ $('#tovabbkepzesTerv input[type=text].currency').change(function() {
+ element = $(event.target);
+ checkTamogatasInput();
+ });
+
+ $('#tanarTovabbkepzesForduloDt select').click(function() {
+ $(this).closest('form').find('input').removeClass('ajaxDone').removeClass('ajaxError');
+ });
+ $('#tanarTovabbkepzesForduloDt select').change(function() {
+ $(this).next('input').val($(this).val());
+ ajaxSetTanarAdat(
+ $(this).data('tanarid'),
+ $(this).val(),
+ $(this).closest('form').find('input.salt').attr('name'),
+ $(this).closest('form').find('input.salt').val()
+ );
+ console.log($(this).closest("tr").find('th').html('<button type="submit"><span class="icon-repeat" style="font-size:10px;"></span></button>'));
+ });
+
+ $('#tovabbkepzesNavi button').click(function() {
+ idToOpen = $(this).data('nav');
+ if (idToOpen=='') $('#tovabbkepzesNavi').siblings('form').fadeIn();
+ else {
+ $('#tovabbkepzesNavi').siblings('form').fadeOut();
+ $('#'+idToOpen).fadeIn();
+ }
+ });
+
+/* $('#tanarTovabbkepzesForduloDt th.tovabbkepzesCiklus').each(function(i) {
+ //enum('terv','jóváhagyott','elutasított','megszűnt','megszakadt','teljesített') ;
+ $this = $(this);
+ terv = (parseFloat($(this).data('terv'))||0);
+ teljesitett = (parseFloat($(this).data('teljesített'))||0);
+ jovahagyott = (parseFloat($(this).data('jóváhagyott'))||0);
+ $this.find('span.terv').css({'width':terv+'px'});
+ $this.find('span.teljesitett').css({'width':teljesitett+'px'});
+ $this.find('span.jovahagyott').css({'width':jovahagyott+'px'});
+ });
+*/
+
+ google.load("visualization", "1.1", {callback:drawCharts,language:'hu',packages:["corechart","timeline"]});
+ /* -------------------------------------------------------------- */
+ function drawIdovonal() {
+ var container = document.getElementById('timeline');
+ var chart = new google.visualization.Timeline(container);
+ var dataTable = new google.visualization.DataTable();
+ dataTable.addColumn({ type: 'string', id: 'tovabbkepzes' });
+ dataTable.addColumn({ type: 'string', id: 'oraszam' });
+ dataTable.addColumn({ type: 'date', id: 'tolDt' });
+ dataTable.addColumn({ type: 'date', id: 'igDt' });
+
+ $('table.tovabbkepzes tbody tr.tovabbkepzesTanarSor').each(function(i) {
+ if ($(this).data('igdt')!='0000-00-00') {
+ var tanarNev = $(this).data('tanarnev');
+ var oraszam = $(this).data('oraszam') + " óra";
+ var tolDt = new Date( $(this).data('toldt') );
+ var igDt = new Date( $(this).data('igdt') );
+ dataTable.addRows([ [tanarNev, oraszam, tolDt, igDt] ]);
+ }
+ });
+ chart.draw(dataTable);
+ }
+ /* -------------------------------------------------------------- */
+ function drawPie1() {
+ var data = google.visualization.arrayToDataTable([
+ ['Task', 'Támogatás'],
+ ['Nem támogatott', sumOsszeg-sumTamogatas],
+ ['Támogatott', sumTamogatas]
+ ]);
+
+ var options = {
+ title: 'Támogatás',
+ slices: { 0: { color: 'red'}, 1: { color: 'green'} },
+ legend: {position: 'bottom', textStyle: {color: 'black', fontSize: 10}}
+ };
+ var chart = new google.visualization.PieChart(document.getElementById('grafikonTamogatas'));
+ chart.draw(data, options);
+ }
+ function drawPie2() {
+
+ var dataTable = new google.visualization.DataTable();
+ dataTable.addColumn('string', 'tanár');
+ dataTable.addColumn('number', 'támogatás');
+ $('table.tovabbkepzes tbody tr.tovabbkepzesTESor').each(function(i) {
+ if ($(this).data('igdt')!='0000-00-00') {
+ var tanarNev = $(this).data('tanarnev');
+ var reszosszeg = Number($(this).data('reszosszeg'));
+ var tamogatas = $(this).data('tamogatas');
+ dataTable.addRows([ [ tanarNev, reszosszeg ] ]);
+ }
+ });
+ var options = {
+ title: 'Továbbképzések eloszlása összeg szerint',
+ pieSliceText: '',
+ legend: {position: 'labeled', textStyle: {color: 'black', fontSize: 10}}
+ };
+ var chart = new google.visualization.PieChart(document.getElementById('grafikonOsszegEloszlas'));
+ chart.draw(dataTable, options);
+ }
+ /* -------------------------------------------------------------- */
+ function checkTamogatasInput() {
+ sumOsszeg=0;
+ sumTamogatas=0;
+ sumOsszeg_ok=0;
+ sumTamogatas_ok=0;
+ $('#tovabbkepzesTerv tbody input[type=text].currency').each(function(index) {
+ element = $(this);
+ if (element.data('inputtype') == 'tamogatas') {
+ if (Number($('#reszosszeg_'+element.data('kulcs')).val()) < Number(element.val())) {
+ element.addClass('hiba');
+ } else {
+ element.removeClass('hiba');
+ }
+ if ($.inArray(element.data('tovabbkepzesstatusz'),['terv','jóváhagyott','teljesített'])>=0) {
+ sumTamogatas_ok += Number(element.val());
+ }
+ sumTamogatas += Number(element.val());
+ } else {
+ if ($.inArray(element.data('tovabbkepzesstatusz'),['terv','jóváhagyott','teljesített'])>=0)
+ sumOsszeg_ok += Number(element.val());
+ sumOsszeg += Number(element.val());
+ }
+ });
+ $('#sumOsszeg').val(sumOsszeg);
+ $('#sumTamogatas').val(sumTamogatas);
+ $('#sumOsszeg_ok').val(sumOsszeg_ok);
+ $('#sumTamogatas_ok').val(sumTamogatas_ok);
+
+ var keretOsszeg = Number($('#keretOsszeg').val());
+ if (keretOsszeg<sumTamogatas_ok) {
+ $('#sumTamogatas_ok').addClass('hiba');
+ $('#tamogatasInfo').html('<span style="color:red">'+(keretOsszeg-sumTamogatas_ok)+' Ft.-</span>');
+ } else {
+ $('#sumTamogatas_ok').removeClass('hiba');
+ if ((keretOsszeg-sumTamogatas_ok)==0) $('#tamogatasInfo').html('');
+ else $('#tamogatasInfo').html('<span style="color:green">'+(keretOsszeg-sumTamogatas_ok)+' Ft.-</span>');
+ }
+ }
+ /* -------------------------------------------------------------- */
+
+ function drawCharts() {
+ drawIdovonal();
+ if ($('#grafikonTamogatas').length>0) drawPie1();
+ if ($('#grafikonOsszegEloszlas').length>0) drawPie2();
+ }
+
+ var clickedMegjegyzes = false;
+ $('span.tovabbkepzesMegjegyzes').click(function() {
+ clickedMegjegyzes = $(this).parent('td');
+ $('#updateForm').html($('#tovabbkepzesMegjegyzes_'+$(this).data('kulcs')+""));
+ $('#updateForm *').show();
+ $('#takaro').show();
+ $('#updateWindow').show();
+ });
+
+ hideUpdateLayer = function() {
+ $('#updateForm div').hide();
+ clickedMegjegyzes.append($('#updateForm div'));
+ };
+
+});
+
+
+
+ajaxSetTanarAdat = function(tanarId,forduloDt,salt_name,salt_value) {
+ postData = {'tanarId':tanarId,
+ 'forduloDt':forduloDt,
+ 'sessionID': $('body').data('sessionid'),
+ 'action':'modTanarTovabbkepzesForduloDt' }
+ postData[salt_name] = salt_value;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=intezmeny&f=tovabbkepzes&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONTovabbkepzes(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(errorThrown);
+ //console.log(jqXHR.responseJSON);
+ //displayJSONerror(jqXHR.responseJSON);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ triggerError(tanarId);
+ });
+}
+
+processJSONTovabbkepzes = function (ADAT) {
+ $('input[data-tanarid='+(ADAT.tanarId)+']').addClass('ajaxDone');
+}
+
+triggerError = function (tanarId) {
+ $('input[data-tanarid='+(tanarId)+']').addClass('ajaxError');
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js
new file mode 100644
index 00000000..7831c469
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/intezmeny/zaradek.jquery.min.js
@@ -0,0 +1,13 @@
+
+function htmlEncode(value){
+ //create a in-memory div, set it's inner text(which jQuery automatically encodes)
+ //then grab the encoded contents back out. The div never exists on the page.
+ return $('<div/>').text(value).html();
+}
+
+$(function() {
+ $('form.zaradek table input[type=text]').change(function(event) {
+ var element = $(event.target);
+ $('#'+element.attr('id')+'span').html(htmlEncode(element.val()));
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js
new file mode 100644
index 00000000..e382ac00
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/naplo.jquery.min.js
@@ -0,0 +1,1234 @@
+var debug=false;
+$(function() {
+
+ $('body').bind('submit', mayorNaploSubmitSearch);
+
+ $('.toolBarClear').click(function(event) {
+ var element = $(event.target);
+ element.closest('table').find('select').prop('selectedIndex',0);
+ element.closest('table').find('form').submit();
+ });
+
+ $('.btnSelectNext').on('click',function(event) {
+ var selectTool = $(this).prev('select'); // közvetlenül az előtte levő elem (select)
+ $(selectTool).find('option:selected').removeAttr('selected').next('option').attr('selected', 'selected');
+ $(selectTool).change();
+ });
+ $('.btnSelectPrev').on('click',function(event) {
+ var selectTool = $(this).next('select'); // közvetlenül a mögötte levő elem (select)
+ $(selectTool).find('option:selected').removeAttr('selected').prev('option').attr('selected', 'selected');
+ $(selectTool).change();
+ });
+
+ $('#toolBarHamburgerVezerlo').click(function(event) {
+ $('#toolBarHamburgerLista').toggle();
+ });
+
+// if ($('#diakSelectLista option').length == 0){
+ $('#diakSelectPattern').closest('form').submit( function(event) {
+ var $form = $(this);
+ if ($('#diakSelectLista').val()=="") {
+ $form.data('submitted',false);
+ return false;
+ }
+ });
+ $('#diakSelectIcon').click( function(event) {
+ $('#diakSelectPattern').toggle().focus();
+ //$('#diakSelectIcon').toggle();
+ $('#diakSelectLista').toggle().prop('selectedIndex',0);
+ });
+ $('#diakSelectPattern').change( function(event) {
+ var pattern = $('#diakSelectPattern').val();
+ // we need to catch ENTER!
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+ $.ajax({
+ type: "POST",
+ url: "?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+sessionID,
+ data: { 'pattern': pattern, 'tipus':'diak', 'sessionID':sessionID },
+ dataType: 'json'
+ }).done(function( msg ) {
+ var listItems = $('#diakSelectLista');
+ var D = msg[0]['diakok']; // vajon miért így kell erre hivatkozni?
+ if (D.length>0) {
+ listItems.find('option').remove();
+ listItems.find('optgroup').remove();
+ listItems.append('<option value=""></option>');
+ for (i=0; i<D.length; i++) {
+ listItems.append('<option value="'+D[i]['diakId']+'">'+D[i]['diakNev']+'</option>');
+ }
+ $('#diakSelectPattern').hide();
+ $('#diakSelectIcon').show();
+ $('#diakSelectLista').show().focus();
+ if (D.length==1) {
+ //$("#diakSelectLista").val($("#diakSelectLista option:last").attr('selected',true));
+ $("#diakSelectLista option:last").attr('selected',true);
+ $('#diakSelectTool').submit();
+ }
+ }
+ });
+ });
+// }
+
+
+
+/*
+ $(document).on('click', '.oraErtekel', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('oraid')==true ) {
+ ajaxSetOraLike(element.data('oraid'),element.data('jovolt'));
+ }
+ });
+*/
+ $(document).on('click', '.jegyAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('jegyid')==true ) {
+ ajaxGetJegyAdat(element.data('jegyid'));
+ }
+ });
+
+ $(document).on('click', '.zaroJegyAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('zarojegyid')==true ) {
+ ajaxGetZaroJegyAdat(element.data('zarojegyid'));
+ }
+ });
+
+ $(document).on('click', '.tankorAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('tankorid')==true ) {
+ ID = element.data('tankorid');
+ } else if ( $(this).data().hasOwnProperty('tankorid')==true ) {
+ ID = $(this).data('tankorid');
+ }
+ if (ID!='') ajaxGetTankorAdat(ID);
+
+ });
+
+ $(document).on('click', '.osztalyAdat', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('osztalyid')==true ) {
+ ID = (element.data('osztalyid'));
+ } else if ( $(this).data().hasOwnProperty('osztalyid')==true ) {
+ ID = $(this).data('osztalyid');
+ }
+ if (ID!='') ajaxGetOsztalyAdat(ID);
+ });
+
+ mayorNaploEventHandlers();
+
+});
+
+mayorNaploSubmitSearch = function (event) {
+
+ var element = $(event.target);
+ if (element.attr('id') == 'mayorSearch') {
+ var pattern = $('#mayorSearch input[type=text]').val();
+ var postData = { 'tipus':'diak','pattern': pattern, 'strict':1, 'mayorToken': ($('body').data('mayortoken')) };
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONKeresoDiakAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+
+ var postData = { 'tipus':'tanar','pattern': pattern, 'strict':1, 'mayorToken': ($('body').data('mayortoken')) };
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONKeresoTanarAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+
+ var postData = { 'tipus':'szulo','pattern': pattern, 'strict':1, 'mayorToken': ($('body').data('mayortoken')) };
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=kereso&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONKeresoSzuloAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+
+
+
+ }
+
+}
+
+processJSONKeresoDiakAdat = function( ADAT ) {
+// console.log(JSON.stringify(ADAT));
+// $('#updateWindowSide').addClass('nyitva');
+// $('#updateWindowSideTitle').html(diakAdat['diakNev']);
+// $('#mayorSearch').remove();
+ var content = '';
+ if (ADAT['diakok'].length>0) {
+ for (i=0; i<ADAT['diakok'].length; i++) {
+ var a = ADAT['diakok'][i];
+ //content += '<div style="display:block;">';
+ content += '<a class="diakNev" data-diakid="'+a['diakId']+'" href="" onclick="return false;">'+a['diakNev']
+ if (a['osztalyJel']!=null) content += ' ('+a['osztalyJel']+')';
+ content +='</a>';
+ //content += '<span class="icon-envelope"></span>';
+ //content += '</div>';
+ }
+ $('#mayorSearch').append(content);
+ }
+}
+processJSONKeresoTanarAdat = function( ADAT ) {
+ var content = '';
+ if (ADAT['tanarok'].length>0) {
+ for (i=0; i<ADAT['tanarok'].length; i++) {
+ var a = ADAT['tanarok'][i];
+ content += '<a class="tanarNev" data-tanarid="'+a['tanarId']+'" href="" onclick="return false;">'+a['tanarNev']+'</a>';
+ }
+ $('#mayorSearch').append(content);
+ }
+}
+processJSONKeresoSzuloAdat = function( ADAT ) {
+ var content = '';
+ if (ADAT['szulok'].length>0) {
+ for (i=0; i<ADAT['szulok'].length; i++) {
+ var a = ADAT['szulok'][i];
+ content += '<a class="szuloNev" data-szuloid="'+a['szuloId']+'" href="" onclick="return false;">'+a['szuloNev']+'</a>';
+ }
+ $('#mayorSearch').append(content);
+ }
+
+}
+
+
+ajaxGetDiakAdat = function(diakId) {
+ postData = { 'diakId':diakId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getDiakAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONDiakAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetSzuloAdat = function(szuloId) {
+ postData = { 'szuloId':szuloId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getSzuloAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONSzuloAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetTanarAdat = function(tanarId) {
+ postData = { 'tanarId':tanarId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTanarAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTanarAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetTankorAdat = function(tankorId) {
+ postData = { 'tankorId':tankorId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTankorAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+ajaxGetOsztalyAdat = function(osztalyId) {
+ postData = { 'osztalyId':osztalyId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getOsztalyAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONOsztalyAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetDolgozatAdat = function(dolgozatId) {
+ postData = { 'dolgozatId': dolgozatId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=dolgozatAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONDolgozatAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ alert('Valami hiba történt');
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetJegyAdat = function(jegyId) {
+ postData = { 'jegyId':jegyId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getJegyAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONJegyAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+ajaxGetZaroJegyAdat = function(zaroJegyId) {
+ postData = { 'zaroJegyId':zaroJegyId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getZaroJegyAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONZaroJegyAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log(jqXHR);
+ });
+}
+
+
+ajaxGetOraAdat = function(oraId) {
+
+ postData = { 'oraId':oraId, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getOraAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONOraAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+ajaxGetNapAdat = function(napDt) {
+ postData = { 'napDt': napDt, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=napAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONNapAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus);
+ //console.log(jqXHR);
+ });
+}
+
+ajaxGetJegyzetAdat = function(jegyzetId,refJegyzetDt) {
+ postData = { 'jegyzetId':jegyzetId, 'refJegyzetDt':refJegyzetDt, 'mayorToken': ($('body').data('mayortoken')) }
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=jegyzetAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONJegyzetAdat(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ });
+}
+
+ajaxSetOraAdat = function(adat) {
+ postData = adat;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getOraAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONOraAdat(msg);
+// updateOraAdat(msg.adat);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ alert('Sajnos valami hiba történt! Próbáld újra! '+textStatus);
+ });
+}
+
+ajaxSetJegyzetAdat = function(adat) {
+ postData = adat;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=jegyzetAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONJegyzetAdat(msg);
+ updateJegyzet(msg.adat);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ alert('Sajnos valami hiba történt! Próbáld újra! '+textStatus);
+ });
+}
+
+ajaxDelJegyzet = function(adat) {
+ postData = adat;
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=jegyzetAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionid'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ removeJegyzet(msg);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ mayorNaploEventHandlers();
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('hiba történt!'+textStatus); console.log(jqXHR);
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ alert('Sajnos valami hiba történt! Próbáld újra! '+textStatus);
+ });
+}
+
+// --------------------------------------------------------------
+
+processJSONDiakAdat = function( diakAdat ) {
+
+ //if (diakAdat.visibleData != true) return false;
+ var content = '';
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','diakId':diakAdat['diakId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'intezmeny','f':'diakTankor','diakId':diakAdat['diakId']})+'"><span class="icon-group-alt"></span><br/>Tankörök</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hianyzas','f':'diak','diakId':diakAdat['diakId']})+'"><span class="icon-calendar-sign"></span><br/>Hiányzások</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'diak','diakId':diakAdat['diakId']})+'"><span class="icon-pencil-alt"></span><br/>Jegyek</a></div>';
+// content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'uzeno','f':'uzeno','diakId':diakAdat['diakId']})+'"><span class="icon-envelope"></span><br/>Üzenő</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hirnok','f':'hirnok','diakId':diakAdat['diakId']})+'"><span class="icon-bullhorn"></span><br/>Hírnök</a></div>';
+ content += '</div>';
+
+ if (diakAdat['diakOsztaly']!=undefined) {
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','diakId':diakAdat['diakId']}) +'">Osztály ('+diakAdat['tanev']+')</a></h3>';
+ content += '<ul>';
+ if (diakAdat['diakJogviszony']!=undefined)
+ for (i=0; i<diakAdat['diakOsztaly'].length; i++) {
+ var _osztalyAdat = diakAdat['osztalyAdat'][diakAdat['diakOsztaly'][i]['osztalyId']];
+ content += '<li>'
+ + '<a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','osztalyId':_osztalyAdat['osztalyId']}) +'">'
+ + (_osztalyAdat['osztalyJel']) + " "
+// + _osztalyAdat['kezdoTanev'] + '-' + _osztalyAdat['vegzoTanev'] + '/' + _osztalyAdat['jel']
+// + ' (' + _osztalyAdat['osztalyId'] + ') '
+ + diakAdat['diakOsztaly'][i]['beDt'] + ' - '
+ + ((diakAdat['diakOsztaly'][i]['kiDt'] == null) ? '...':diakAdat['diakOsztaly'][i]['kiDt'])
+ + '</a></li>';
+ }
+ content += '</ul>';
+ }
+ if (diakAdat['diakKepzes']!=undefined)
+ if (diakAdat['diakKepzes'].length>0) {
+ content += '<h3>Képzések</h3>';
+ content += '<ul>';
+ for (i=0; i<(diakAdat['diakKepzes'].length); i++) {
+ content += '<li>'+diakAdat['diakKepzes'][i]['kepzesNev']+ ' ' + diakAdat['diakKepzes'][i]['tolDt']+'–'+diakAdat['diakKepzes'][i]['igDt']+'</li>';
+ }
+ content += '</ul>';
+ }
+
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diakStatusz','diakId':diakAdat['diakId']}) +'">Jogviszony</a></h3>';
+ content += '<ul>';
+ if (diakAdat['diakJogviszony']!=undefined)
+ for (i=0; i<diakAdat['diakJogviszony'].length; i++) {
+ content += '<li>' +diakAdat['diakJogviszony'][i]['statusz'] + ', ' + diakAdat['diakJogviszony'][i]['dt'] + '</li>';
+ }
+ content += '</ul>';
+
+ if (diakAdat['diakFelmentes']!=undefined)
+ if (diakAdat['diakFelmentes'].length>0) {
+ content += "<h3>Felmentések ("+diakAdat['tanev']+")</h3>";
+ content += '<ul>';
+ for (i=0; i<diakAdat['diakFelmentes'].length; i++) {
+ var d = diakAdat['diakFelmentes'][i];
+ content += '<li>'
+ + d['felmentesTipus'] + " "
+ + diakAdat['diakTankorAssoc'][d['tankorId']]['tankorNev'] + "<br/>"
+ + d['beDt'] + ' - ' + d['kiDt'] + " "
+ + "nap: "+d['nap'] + " "
+ + "óra: "+d['ora'] + " "
+ + '</li>';
+ }
+ content += '</ul>';
+ }
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diakTankor','diakId':diakAdat['diakId']}) +'">Tankörök ('+diakAdat['tanev']+')</a></h3>';
+ content += '<ul>';
+ if (diakAdat['diakTankor']!=undefined)
+ for (i=0; i<diakAdat['diakTankor'].length; i++) {
+ content += '<li class="tankorAdat" data-tankorid="'+diakAdat['diakTankor'][i]['tankorId']+'">' +diakAdat['diakTankor'][i]['tankorNev'] + ' (' + diakAdat['diakTankor'][i]['kovetelmeny'] + ')</li>';
+ }
+ content += '</ul>';
+ content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':diakAdat['diakId']}) +'">Egyéb</a></h3>';
+ content += '<ul>';
+ if (diakAdat['szuletesiHely'] != null) content += '<li>Született: ' +diakAdat['szuletesiHely'] + ', ' + diakAdat['szuletesiIdo'] +' <span class="diakEletkor">'+ diakAdat['diakEletkor'] + '</span></li>';
+ if (diakAdat['torzslapszam'] != null) content += '<li>Törzslapszám: ' +diakAdat['torzslapszam'] + '</li>';
+ if (diakAdat['mobil'] != null) content += '<li>Telefon: ' +diakAdat['mobil'] + '</li>';
+ if (diakAdat['email'] != null) content += '<li>E-mail: ' +diakAdat['email'] + '</li>';
+ content += '<li>Lakik: ' +diakAdat['lakhelyIrsz'] + ' '
+ +diakAdat['lakhelyHelyseg'] + ', '
+ +diakAdat['lakhelyKozteruletNev'] + ' '
+ +diakAdat['lakhelyKozteruletJelleg'] + ' '
+ +diakAdat['lakhelyHazszam']
+ + '</li>';
+ if (diakAdat['megjegyzes'] != null) content += '<li>Megjegyzés: ' + diakAdat['megjegyzes'] +'</li>';
+ content += '</ul>';
+ content += "<h3>Szülei</h3>";
+ content += '<ul>';
+ if (diakAdat['diakSzulo']!=undefined)
+ for (i=0; i<diakAdat['diakSzulo'].length; i++) {
+ var d = diakAdat['diakSzulo'][i];
+ content += '<li>';
+ //content += '<a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diakSzulo','diakId':diakAdat['diakId'],'szuloId':d['szuloId']}) +'">';
+ content += '<span class="szuloNev" data-szuloid="'+d['szuloId']+'">';
+ content += d['szuloNev'];
+ content += '</span>';
+// if (d['szuleteskoriNev']!=null) content += ' ('+d['szuleteskoriNev']+')';
+ content += '</li>';
+ }
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="diak"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='diak' ) {
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':diakAdat['diakId']})+'">'+diakAdat['diakNev']+'</a>');
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':diakAdat['diakId']})+'">'+diakAdat['diakNev']+'</a>');
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+
+}
+
+processJSONTanarAdat = function( adat ) {
+// console.log(JSON.stringify(adat));
+ var content = '';
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','tanarId':adat['tanarId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ if (adat.layerPolicy>0) {
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','tanarId':adat['tanarId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','tanarId':adat['tanarId']})+'"><span class="icon-calendar-sign"></span><br/>Hiányzások</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'tankor','tanarId':adat['tanarId']})+'"><span class="icon-pencil-alt"></span><br/>Osztályozó</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hirnok','f':'hirnok','tanarId':adat['tanarId']})+'"><span class="icon-bullhorn"></span><br/>Hírnök</a></div>';
+ } else {
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'uzeno','f':'uzeno','tanarId':adat['tanarId']})+'"><span class="icon-envelope"></span><br/>Üzenő</a></div>';
+
+ }
+ content += '</div>';
+//
+// content += '<h3><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','diakId':adat['diakId']}) +'">Osztály ('+adat['tanev']+')</a></h3>';
+
+// content += '<h3>Mai órák</h3>';
+// content += adat['maiOrak']['html'];
+
+/*
+ content += '<h3>Óraterhelés</h3>';
+// oraTerheles":{"56":{"munkaido":{"heti":40,"kotott":32,"lekotott":26},"ossz":{"heti":"13","napi":"4"},"kotottEloirt":{"heti":"13","napi":"4"},"kotott":{"heti":"13","napi":"4"},"lekotott":{"heti":"13","napi":"4"}}}}
+ var OT = adat['oraTerheles'][adat['tanarId']];
+ content += '<ul>';
+ content += '<li>Heti munkaidő referencia: '+ OT['munkaido']['heti'] + '-' + OT['munkaido']['kotott'] + '-' + OT['munkaido']['lekotott'];
+ content += '</li><li>Össz: '+ OT['ossz']['heti'] + '|' + OT['ossz']['napi'];
+ content += '</li><li>Kötött: '+ OT['kotott']['heti'] + '|' + OT['kotott']['napi'];
+ content += '</li><li>Kötött-előírt: '+ OT['kotottEloirt']['heti'] + '|' + OT['kotottEloirt']['napi'];
+ content += '</li><li>Lekötött: '+ OT['lekotott']['heti'] + '|' + OT['lekotott']['napi'];
+ content += '</li>';
+ content += '</ul>';
+*/
+
+ if(adat.layerPolicy>0) {
+ if (adat.tanarTankor!=undefined) {
+ content += '<h3>Tanár tankörei</h3>';
+ content += '<ul>';
+ for (i=0; i<adat.tanarTankor.length; i++) {
+ content += '<li><span class="tankorAdat" data-tankorid="'+adat.tanarTankor[i]['tankorId']+'">'
+ +adat.tanarTankor[i].tankorNev+'</span></li>';
+ }
+ content += '</ul>';
+ }
+
+ content += '<h3>Egyéb adatok</h3>';
+ content += '<ul>';
+ if (adat['beDt']!='') content += '<li>Munkaviszony: '+adat['beDt']+ (adat['kiDt']==null?'':' – '+adat['kiDt']) +'</li>';
+ if (adat['hetiMunkaora']!='') content += '<li>Heti munkaóra: '+adat['hetiMunkaora']+'</li>';
+ if (adat['hetiKotelezoOraszam']!='') content += '<li>Heti kötelező óraszám: '+adat['hetiKotelezoOraszam']+'</li>';
+ if (adat['statusz']!='') content += '<li>Státusz: '+adat['statusz']+'</li>';
+ if (adat['besorolas']!='') content += '<li>Besorolás: '+adat['besorolas']+'</li>';
+ if (adat['tovabbkepzesForduloDt']!='') content += '<li>Továbbképzés forduló dátum: '+adat['tovabbkepzesForduloDt']+'</li>';
+ content += '</ul>';
+ }
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="tanar"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='tanar' ) {
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'tanar','tanarId':adat['tanarId']})+'">'+adat['tanarNev']+'</a>');
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'tanar','tanarId':adat['tanarId']})+'">'+adat['tanarNev']+'</a>');
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONOraAdat = function(adat) {
+
+ var content = '';
+ var dolgozatAdat;
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','tanarId':adat['oraAdat']['ki'],'tankorId':adat['oraAdat']['tankorId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','oraId':adat['oraId']})+'"><span class="icon-calendar-sign"></span><br/>Hiányzások</a></div>';
+ content += '</div>';
+
+ content += '<h3>A haladási óra adatai</h3>';
+ content += '<ul>';
+ content += '<li>Típus: ' + adat['oraAdat']['tipus'] +'</li>';
+ content += '<li>Tankör: ' + adat['oraAdat']['tankorNev']+'</li>';
+ if (adat['oraAdat']['kiCn']!='') content += '<li><span class="tanarNev" data-tanarid="'+adat['oraAdat']['ki']+'" >Tanár: ' + adat['oraAdat']['kiCn'] +'</span></li>';
+// if (adat['oraAdat']['kiCn']!='') content += '<li><span>Tanár: ' + adat['oraAdat']['kiCn'] +'</li>';
+ if (adat['oraAdat']['kitCn']!='') content += '<li>Helyettesítendő: ' + adat['oraAdat']['kitCn'] +'</li>';
+ content += '<li>Terem: ' + (adat['oraAdat']['teremId']==null?'–':adat['oraAdat']['teremId']) +'</li>';
+ content += '<li>Leírás: ' + mayorLeiras(adat['oraAdat']['leiras']) +'</li>';
+ content += '</ul>';
+
+ if (adat['oraBeirhato']) content += adat['oraForm'];
+
+// content += '<h3>Óra kapcsolatai</h3>';
+// content += '<ul><li>Beírt mulasztások száma: '+'n/a'+'</li>';
+// content += '<li>Beírt jegyek száma: '+'n/a'+'</li>';
+// content += '</ul>';
+
+ if (adat['dolgozat']['dolgozatIds'].length>0) {
+ content += '<h3>Dolgozatok</h3>';
+ content += '<ul>';
+ for (i=0; i<adat['dolgozat'].dolgozatIds.length; i++) {
+ dolgozatAdat = adat['dolgozat'][adat['dolgozat'].dolgozatIds[i]];
+ content += '<li class="dolgozatAdat" data-dolgozatid="'+dolgozatAdat['dolgozatId']+'">'+dolgozatAdat['tervezettDt']+': '+ dolgozatAdat.dolgozatNev + '</li>';
+ // bejelentesDt, tervettDt, tankor...
+ }
+ content += '</ul>';
+ }
+
+ if (adat['elozoOrak']!=undefined && adat['elozoOrak'].length>0) {
+ content += '<h3>Előző órák</h3>';
+ content += '<ul>';
+ for (i=0; i<adat['elozoOrak'].length; i++) {
+ content += '<li class="oraAdat" data-oraid="'+adat['elozoOrak'][i]['oraId']+'">'
+ + adat['elozoOrak'][i]['dt'] + ' '
+ + adat['elozoOrak'][i]['ora'] + '. óra '
+ + mayorLeiras(adat['elozoOrak'][i]['leiras'])
+ + '</li>';
+ }
+ content += '</ul>';
+ }
+
+// content += '<div class="oraErtekel" data-oraid="1" data-jovolt="1">+++++</div>';
+// content += '<div class="oraErtekel" data-oraid="1" data-jovolt="0">-----</div>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="oraAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='oraAdat' ) {
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','oraId':adat['oraId']})+'">Haladási napló</a>');
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'hianyzas','f':'ora','oraId':adat['oraId']})+'">Haladási napló órája</a>');
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONJegyAdat = function(adat) {
+
+ var content = '';
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'jegy','jegyId':adat['jegyId']})+'"><span class="icon-pencil-alt"></span><br/>Jegy</a></div>';
+ content += '</div>';
+
+ content += '<h3>A jegy adatai</h3>';
+ content += '<ul>';
+ content += '<li>Értékelés (rövid): ' + adat['jegyAdat']['rovid'] +'</li>';
+ content += '<li>Hivatalos értékelés: ' + adat['jegyAdat']['hivatalos'] +'</li>';
+ content += '<li>Diák: <span class="diakNev" data-diakid="'+adat['jegyAdat']['diakId']+'">' + adat['diakNev'] +'</span></li>';
+ content += '<li>Diák azonosító: ' + adat['jegyAdat']['diakId'] +'</li>';
+ content += '<li>Tárgy: ' + adat['targyNev'] + ' (' + adat['jegyAdat']['targyId'] +')</li>';
+ content += '<li>Jegy típus: ' + adat['jegyAdat']['jegyTipus'] +'</li>';
+ content += '<li>Jegy érték: ' + adat['jegyAdat']['jegy'] +'</li>';
+ if (adat['jegyAdat']['oraId']>0) content += '<li>Kapcsolódó óra: <span class="oraAdat" data-oraid="'+adat['jegyAdat']['oraId']+'">'+ adat['jegyAdat']['oraId'] +'</span></li>';
+ if (adat['jegyAdat']['dolgozatId']>0) content += '<li>Kapcsolódó dolgozat: <span class="dolgozatAdat" data-dolgozatid="'+adat['jegyAdat']['dolgozatId']+'">'+ adat['jegyAdat']['dolgozatId'] +'</span></li>';
+ content += '<li>Megjegyzés: ' + adat['jegyAdat']['megjegyzes'] +'</li>';
+ content += '<li>Beírás dátuma: ' + adat['jegyAdat']['dt'] +'</li>';
+ if (adat['jegyAdat']['modositasDt']!='0000-00-00 00:00:00') content += '<li>Utolsó módosítás: ' + adat['jegyAdat']['modositasDt'] +'</li>';
+
+// if (adat['oraAdat']['kiCn']!='') content += '<li>Tanár: ' + adat['oraAdat']['kiCn'] +'</li>';
+// if (adat['oraAdat']['kitCn']!='') content += '<li>Helyettesítendő: ' + adat['oraAdat']['kitCn'] +'</li>';
+ content += '</ul>';
+
+ // content += adat['jegySelect'];
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="jegyAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='jegyAdat' ) {
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSubTitle').html('Jegy adatai');
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSideTitle').html('Jegy adatai');
+ $('#updateWindowSide').addClass('nyitva');
+ }
+}
+
+processJSONZaroJegyAdat = function(adat) {
+
+ var content = '';
+ content += '<h3>A zárójegy adatai</h3>';
+ content += '<ul>';
+ content += '<li>Hivatalos értékelés: ' + adat['zaroJegyAdat']['hivatalos'] +'</li>';
+ content += '<li>Értékelés (rövid): ' + adat['zaroJegyAdat']['rovid'] +'</li>';
+ content += '<li>Diák: <span class="diakNev" data-diakid="'+adat['zaroJegyAdat']['diakId']+'">' + adat['diakNev'] +'</span></li>';
+ content += '<li>Diák azonosító: ' + adat['zaroJegyAdat']['diakId'] +'</li>';
+ content += '<li>Tárgy: ' + adat['targyNev'] + ' ' + adat['zaroJegyAdat']['targyId'] +'</li>';
+ content += '<li>Évfolyamjel: ' + adat['zaroJegyAdat']['evfolyamJel'] +'</li>';
+ content += '<li>Félév: ' + adat['zaroJegyAdat']['felev'] +'</li>';
+ content += '<li>Jegy típus: ' + adat['zaroJegyAdat']['jegyTipus'] +'</li>';
+ content += '<li>Jegy érték: ' + adat['zaroJegyAdat']['jegy'] +'</li>';
+ content += '<li>Megjegyzés: ' + adat['zaroJegyAdat']['megjegyzes'] +'</li>';
+ content += '<li>Módosítás dátuma: ' + adat['zaroJegyAdat']['modositasDt'] +'</li>';
+ content += '<li>Hivatalos dátum: ' + adat['zaroJegyAdat']['hivatalosDt'] +'</li>';
+ content += '</ul>';
+
+ if (adat['fotargy']==true) {
+ content += '<h3>Főtárgy</h3>';
+ }
+ if (adat['altargy']==true) {
+ content += '<h3>Altárgy</h3>';
+ }
+
+ // content += adat['jegySelect'];
+ // console.log(adat);
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="zaroJegyAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='zaroJegyAdat' ) {
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSubTitle').html('Osztályzat, zárójegy');
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSideTitle').html('Osztályzat, zárójegy');
+ $('#updateWindowSide').addClass('nyitva');
+ }
+}
+
+processJSONOsztalyAdat = function(adat) {
+
+ if (adat.visibleData != true) return false;
+ var content = '';
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','osztalyId':adat['osztalyId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','osztalyId':adat['osztalyId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+ content += '</div>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="osztaly"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='osztaly' ) {
+ $('#updateWindowSideSubTitle').html(adat['nev']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['nev']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONTankorAdat = function(adat) {
+
+ if (adat.visibleData != true) return false;
+ var content = '';
+
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'orarend','f':'orarend','tankorId':adat['tankorId']})+'"><span class="icon-th"></span><br/>Órarend</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'haladasi','f':'haladasi','tankorId':adat['tankorId']})+'"><span class="icon-file-edit-alt"></span><br/>Haladási</a></div>';
+// content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'intezmeny','f':'tanarTankor','diakId':tanarAdat['diakId']})+'"><span class="icon-group-alt"></span><br/>Tankörök</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'tankor','tankorId':adat['tankorId']})+'"><span class="icon-pencil-alt"></span><br/>Osztályozó</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'tanmenet','f':'tanmenetInfo','tanmenetId':adat['tanmenetId']})+'"><span class="icon-calendar-sign"></span><br/>Tanmenet</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'uzeno','f':'uzeno','tankorId':adat['tankorId']})+'"><span class="icon-envelope"></span><br/>Üzenő</a></div>';
+
+ content += '</div>';
+
+
+ if (adat.tankorTanar!=undefined) {
+ content += '<h3>Tanárok</h3>';
+ content += '<ul>';
+ for (i=0; i<adat.tankorTanar.length; i++) {
+ content += '<li><span class="tanarNev" data-tanarid="'+adat.tankorTanar[i]['tanarId']+'">'+adat.tankorTanar[i].tanarNev+'</span> ('+adat.tankorTanar[i]['minBeDt']+'–'+adat.tankorTanar[i]['maxKiDt']+')</li>';
+ }
+ content += '</ul>';
+ }
+
+ content += '<h3>'+adat['leiras']+'</h3>';
+ content += '<ul>';
+ content += '<li>névsor: '+adat['nevsor']+'</li>';
+ content += '<li>választható: '+adat['felveheto']+' ('+adat['min']+'-'+adat['max']+')</li>';
+ content += '<li>jelenlét: '+adat['jelenlet']+'</li>';
+ content += '<li>hiányzás regisztrálandó: '+adat['regisztralando']+'</li>';
+ content += '<li>hiányzás beleszámít: '+adat['hianyzasBeleszamit']+'</li>';
+ content += '<li>óraszám: '+adat['oraszam']+'</li>';
+ content += '</ul>';
+
+ if (adat.tankorBlokk.length>0) {
+ content += '<h3>Tankörblokk ('+adat.tankorBlokk.length+')</h3>';
+ content += '<ul>';
+ for (i=0; i<adat.tankorBlokk.length; i++) {
+ content += '<li>'+adat.tankorBlokk[i].blokkNev+'</li>';
+ }
+ content += '</ul>';
+ }
+ if (adat.tanmenetId>0) {
+ content += '<h3>Tanmenet ('+adat.tanmenetId+')</h3>';
+ content += '<ul>';
+ content += '<li>név: <a href="'+href({'page':'naplo','sub':'tanmenet','f':'tanmenetInfo','tanmenetId':adat['tanmenetId']})+'">'+adat.tanmenetAdat.tanmenetNev+'</a></li>';
+ content += '<li>évfolyam jel: '+adat.tanmenetAdat.evfolyamJel+'</li>';
+ content += '<li>tárgy: '+adat.tanmenetAdat.targyNev+'</li>';
+ content += '<li>óraszám: '+adat.tanmenetAdat.oraszam+'</li>';
+ content += '<li>státusz: '+adat.tanmenetAdat.statusz+'</li>';
+// for (i=0; i<adat.tanmenetAdat.length; i++) {
+// content += '<li>'+adat.tanmenetAdat[i]+'</li>';
+// }
+ content += '</ul>';
+ }
+
+
+ content += '<h3>Osztályok</h3>';
+ content += '<ul>';
+ if (adat.osztalyIds!=undefined) {
+ for (i=0; i<adat.osztalyIds.length; i++) {
+ osztalyId = adat.osztalyIds[i];
+ for (j=0; j<adat.osztalyok.length; j++) {
+ var index = adat.osztalyok[j].osztalyId
+ if (index == osztalyId) osztalyAdat = adat.osztalyok[j];
+ }
+ content += '<li><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','osztalyId':osztalyId}) +'">'+osztalyAdat.osztalyJel+' ('+osztalyAdat.leiras+') '+osztalyAdat.osztalyfonokNev+'</a></li>';
+ }
+ }
+ content += '</ul>';
+
+ content += '<h3><a href="'+href({'page':'naplo','sub':'intezmeny','f':'tankorDiak','tankorId':adat['tankorId']})+'">Névsor</a> ('+adat.tankorDiak.idk.length+')</h3>';
+ content += '<ul>';
+ if (adat.tankorDiak.idk!=undefined) {
+ var _diakId = 0;
+ for (i=0; i<adat.tankorDiak.idk.length; i++) {
+ _diakId = adat.tankorDiak.idk[i];
+ diakNev = adat.tankorDiak.nevek[_diakId].diakNev;
+// content += '<li><a href="'+ href({'page':'naplo','sub':'intezmeny','f':'osztaly','diakId':diakId}) +'">'+osztalyAdat.osztalyJel+' ('+osztalyAdat.leiras+') '+osztalyAdat.osztalyfonokNev+'</a></li>';
+ content += '<li><span class="diakNev diakAdat" data-diakid="'+ _diakId +'">'+ diakNev +'</span></li>';
+ }
+ }
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="tankor"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='tankor' ) {
+ $('#updateWindowSideSubTitle').html(adat['tankorNev']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['tankorNev']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+
+processJSONSzuloAdat = function( adat ) {
+
+ var content = '';
+
+// content += '<div id="mayorNaviIconHolder">';
+// content += '</div>';
+
+ content += "<h3>Elérhetőségek</h3>";
+ content += '<ul>';
+ content += '<li>Felhasználónév: '+adat['userAccount']+'</li>';
+ content += '<li>Email: '+adat['email']+'</li>';
+ content += '<li>Mobiltelefon: '+adat['mobil']+'</li>';
+ content += '<li>Foglalkozás: '+adat['foglalkozas']+'</li>';
+ content += '<li>Munkahely: '+adat['munkahely']+'</li>';
+ content += '<li>Lakik: '
+ +adat['cimIrsz'] + ' '
+ +adat['cimHelyseg'] + ', '
+ +adat['cimKozteruletNev'] + ' '
+ +adat['cimKozteruletJelleg'] + ' '
+ +adat['cimHazszam']
+ + '</li>';
+
+ content += '</ul>';
+
+ content += "<h3>Szülő adatai</h3>";
+ content += '<ul>';
+ content += '<li>Státusz: '+adat['statusz']+'</li>';
+ content += '<li>Születési adatok: '+'-'+'</li>';
+ content += '</ul>';
+
+
+ content += "<h3>Gyermekei</h3>";
+ content += '<ul>';
+ if (adat['szuloGyermekei']!=undefined)
+ for (i=0; i<adat['szuloGyermekei'].length; i++) {
+ var d = adat['szuloGyermekei'][i];
+ content += '<li>';
+ content += '<a href="'+ href({'page':'naplo','sub':'intezmeny','f':'diak','diakId':d['diakId']}) +'">';
+ content += d['diakNev'];
+ content += '</a>';
+ content += '</li>';
+ }
+
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="szulo"></span>';
+ content = content.replace(/undefined/g, "-"); // testing
+
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='szulo' ) {
+ //$('#updateWindowSideSubTitle').html(adat['szuloNev']);
+ $('#updateWindowSideSubTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diakSzulo','szuloId':adat['szuloId']})+'">'+adat['szuloNev']+'</a>');
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html('<a href="'+href({'page':'naplo','sub':'intezmeny','f':'diakSzulo','szuloId':adat['szuloId']})+'">'+adat['szuloNev']+'</a>');
+ //$('#updateWindowSideTitle').html(adat['szuloNev']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+
+processJSONJegyzetAdat = function(adat) {
+
+ if (adat.visibleData != true) return false;
+ var content = '';
+ content += '<p>'+adat['jegyzetForm']+'</p>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="jegyzet"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='jegyzet' ) {
+ $('#updateWindowSideSubTitle').html(adat['leiras']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['leiras']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONNapAdat = function(adat) {
+
+// if (adat.visibleData != true) return false;
+ var content = '';
+
+ content += '<ul>'
+ content += '<li>Tanítási nap: '+adat['tanitasiNapAdat'][adat['dt']]['napszam']+'</li>';
+
+ for (i=0; i<adat.napAdat.length; i++) {
+ content += '<li>';
+ content += adat.napAdat[i]['munkatervId']+'. munkaterv szerint:';
+ content += '<ul>';
+ content += '<li>nap típus: '+adat.napAdat[i]['tipus']+'</li>';
+ content += '<li>csengetési rend: '+adat.napAdat[i]['csengetesiRendTipus']+'</li>';
+ content += '<li>megjegyzés: '+adat.napAdat[i]['megjegyzes']+'</li>';
+ content += '</ul>';
+ content += '</li>';
+ }
+ content += '</ul>';
+
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="napAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='napAdat' ) {
+ $('#updateWindowSideSubTitle').html(adat['leiras']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['leiras']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+processJSONDolgozatAdat = function(adat) {
+
+// if (adat.visibleData != true) return false;
+ var content = '';
+ var tankorAdat;
+ content += '<div id="mayorNaviIconHolder">';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'dolgozat','dolgozatId':adat['dolgozatId']})+'"><span class="icon-idea-alt"></span><br/>Dolgozat adatok</a></div>';
+ content += '<div class="mayorNaviIcon"><a href="'+href({'page':'naplo','sub':'osztalyozo','f':'tankor'})+'"><span class="icon-pencil-alt"></span><br/>Jegyek</a></div>';
+ content += '</div>';
+
+
+ content += '<ul>'
+ content += '<li>Leírás: <i>'+adat['dolgozatAdat']['dolgozatNev']+'</i></li>';
+ content += '<li>Bejelentés: '+adat['dolgozatAdat']['bejelentesDt']+'</li>';
+ content += '<li>Tervezett: '+adat['dolgozatAdat']['tervezettDt']+'</li>';
+ content += '</ul>';
+
+ content += '<h3>Tankörök</h3>';
+ content += '<ul>';
+ for (i=0; i<adat['dolgozatAdat']['tankorok'].length; i++) {
+ tankorAdat = adat['dolgozatAdat']['tankorok'][i][0];
+ content += '<li class="tankorAdat" data-tankorid="'+tankorAdat['tankorId']+'">' +tankorAdat['tankorNev']+'</li>';
+ }
+ content += '</ul>';
+
+ content += '<h3>Érdemjegy statisztika</h3>';
+ content += '<ul>'
+ content += '<li>Beírt jegy: '+adat['dolgozatAdat']['jegyStatisztika']['db']+'</li>';
+ content += '<li>Átlag: '+adat['dolgozatAdat']['jegyStatisztika']['atlag']+'</li>';
+ content += '</ul>';
+
+ content += '<span style="display:none" id="mayorsidewindowtype" data-mayorsidewindowtype="dolgozatAdat"></span>';
+ if ( $('#updateWindowSide').hasClass('nyitva') ==true && $('#mayorsidewindowtype').data('mayorsidewindowtype')!='dolgozatAdat' ) {
+ $('#updateWindowSideSubTitle').html(adat['leiras']);
+ $('#updateWindowSideSubContent').html(content);
+ $('#updateWindowSideSub').addClass('nyitva');
+ } else {
+ $('#updateWindowSideTitle').html(adat['leiras']);
+ $('#updateWindowSideContent').html(content);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+}
+
+
+// -----------------------------------------------------------------
+mayorNaploEventHandlers = function() {
+
+ $('.jegyzetAdat').off('click').on('click', function(event) {
+ // credits: rpetya (rakolcza.peter@gmail.com)
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ var refJegyzetDt = '';
+ if ( elementData.hasOwnProperty('jegyzetid')==true ) {
+ ID = (element.data('jegyzetid'));
+ refJegyzetDt = (element.data('jegyzetdt'));
+ } else if ( $(this).data().hasOwnProperty('jegyzetid')==true ) {
+ ID = $(this).data('jegyzetid');
+ refJegyzetDt = $(this).data('jegyzetdt');
+ }
+ //event.stopPropagation();
+ if (ID!='') ajaxGetJegyzetAdat(ID,refJegyzetDt);
+ });
+
+ $('.setOraAdat').off('click').on('click', function(event) {
+ ajaxSetOraAdat($(this).parents('form').serialize());
+ });
+ $('.setJegyzetAdat').off('click').on('click', function(event) {
+ ajaxSetJegyzetAdat($(this).parents('form').serialize());
+ });
+
+ $('.delJegyzet').off('click').on('click', function(event) {
+ ajaxDelJegyzet($(this).parents('form').serialize());
+ });
+
+ $('.oraAdat').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('oraid')==true ) {
+ ID = (element.data('oraid'));
+ } else if ( $(this).data().hasOwnProperty('oraid')==true ) {
+ ID = $(this).data('oraid');
+ }
+ if (ID!='') ajaxGetOraAdat(ID);
+ $('.oraAdat').removeClass('activeElement');
+ $(this).addClass('activeElement');
+ });
+
+ $('.dolgozatAdat').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('dolgozatid')==true ) {
+ ID = (element.data('dolgozatid'));
+ } else if ( $(this).data().hasOwnProperty('dolgozatid')==true ) {
+ ID = $(this).data('dolgozatid');
+ }
+ if (ID!='') ajaxGetDolgozatAdat(ID);
+ });
+
+ $('.napAdat').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('napdt')==true ) {
+ ajaxGetNapAdat(element.data('napdt'));
+ }
+ });
+
+ $('.diakNev').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('diakid')==true ) {
+ ID = element.data('diakid');
+ } else if ( $(this).data().hasOwnProperty('diakid')==true ) {
+ ID = $(this).data('diakid');
+ }
+ if (ID!='') ajaxGetDiakAdat(ID);
+ });
+
+ $('.tanarNev').off('click').on('click', function(event) {
+
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('tanarid')==true ) {
+ ID = element.data('tanarid');
+ } else if ( $(this).data().hasOwnProperty('tanarid')==true ) {
+ ID = $(this).data('tanarid');
+ }
+ if (ID!='') ajaxGetTanarAdat(ID);
+ });
+
+ $('.szuloNev').off('click').on('click', function(event) {
+ element = $(event.target);
+ var elementData = element.data();
+ var ID = '';
+ if ( elementData.hasOwnProperty('szuloid')==true ) {
+ ajaxGetSzuloAdat(element.data('szuloid'));
+ }
+ });
+
+} // mayorNaploEventHandlers
+// -----------------------------------------------------------------
+
+updateJegyzet = function(adat) {
+
+ $('#orarendJegyzetSor').show();
+ var jegyzetId = parseInt(adat['jegyzetId']);
+ $('.jegyzetContainer[data-dt!="'+adat['dt']+'"] div.jegyzetAdat[data-jegyzetid='+jegyzetId+']').remove();
+ $('div.jegyzetAdat[data-jegyzetid='+jegyzetId+']').remove();
+ var result = $('div.jegyzetAdat[data-jegyzetid="'+(jegyzetId)+'"]').text(adat.jegyzetLeiras);
+ if (result.length==0) {
+ var o = '<div class="jegyzet jegyzetAdat publikus'+adat['publikus']+'" data-jegyzetid="'+jegyzetId+'"></div>';
+ $('.jegyzetContainer[data-dt="'+adat['dt']+'"]').append(o);
+ $('div.jegyzetAdat[data-jegyzetid="'+jegyzetId+'"]').text(adat.jegyzetLeiras);
+ }
+ // minden nyitva levőt bezár -- TODO -- altalanos
+ $('#updateWindowSideSub').removeClass('nyitva');
+ $('#updateWindowSide').removeClass('nyitva');
+ if ($.isFunction(hideUpdateWindowSide)) hideUpdateWindowSide();
+ if ($.isFunction(hideUpdateWindowSideSub)) hideUpdateWindowSideSub();
+}
+
+removeJegyzet = function(adat) {
+ var jegyzetId = parseInt(adat['jegyzetId']);
+ $('div.jegyzetAdat[data-jegyzetid='+jegyzetId+']').remove();
+ // minden nyitva levőt bezár -- TODO -- altalanos
+ $('#updateWindowSideSub').removeClass('nyitva');
+ $('#updateWindowSide').removeClass('nyitva');
+ if ($.isFunction(hideUpdateWindowSide)) hideUpdateWindowSide();
+ if ($.isFunction(hideUpdateWindowSideSub)) hideUpdateWindowSideSub();
+}
+
+hideUpdateWindowSide = function() {
+ $('.oraAdat').removeClass('activeElement');
+}
+
+mayorLeiras = function(str) {
+ if (str==undefined || str=='' || str == false) {
+ return '<i>–</i>';
+ } else {
+ return '<i>' + $('<div/>').text(str).html() + '</i>';
+ }
+}
+
+mayorLoaderStop = function() { // overwrite orig
+ mayorNaploEventHandlers();
+ mayorLoaderCounter--;
+ if (mayorLoaderCounter==0) {
+ $('#poz li:first').removeClass('mayorLoader');
+ }
+}
+
+ajaxSetOraLike = function(oraId, jovolt) {}
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js
new file mode 100644
index 00000000..0a0875cb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarend.jquery.min.js
@@ -0,0 +1,81 @@
+$(function() {
+
+ function isMobile() { // --TODO -- global namespace
+ try{ document.createEvent("TouchEvent"); return true; }
+ catch(e){ return false; }
+ }
+
+ var origHtmlStr = $('table.orarend thead th.het').html();
+
+ $('table.orarend thead tr th').on('click',function() { // tool kezeles mobilon
+ if ($(this).data('napindex')>0 && isMobile() == true) {
+ $(this).find('table.orarend span.napLeiras').toggle();
+ $(this).find('table.orarend div.orarendTools').toggle();
+ }
+ });
+
+
+ if ($('table.orarend tr th.ma').length>0 && $('html').width()<500) {
+ for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').not('.ma').hide();
+ $('table.orarend thead th.het').html('<div class="icon-repeat-alt" style="font-size:20px"></div>');
+ }
+
+
+ $('table.orarend tbody tr.orarendJegyzetSor th').on('click', function() {
+ $('table.orarend tbody tr.orarendJegyzetSor').hide();
+ $('table.orarend thead th.het').html('<div class="icon-repeat-alt" style="font-size:20px"></div>');
+ });
+
+ $('table.orarend tr th span.bezar').click(function() {
+ // event.stopPropagation();
+ var napindex = ($(this).parents('th').data('napindex'));
+ if (napindex==undefined) {
+ //for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').not('.ma').toggle('right');
+ for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').show('right');
+ $('table.orarend thead th.het').html(origHtmlStr);
+ } else {
+ $('table.orarend *[data-napindex="'+napindex+'"]').hide('left');
+ $('table.orarend thead th.het').html('<div class="icon-repeat-alt" style="font-size:20px"></div>');
+ }
+ });
+ $('table.orarend tr th.het').click(function(event) {
+ event.stopPropagation();
+ for (var i=1; i<=6; i++) $('table.orarend *[data-napindex="'+i+'"]').show('right');
+ $('table.orarend thead th.het').html(origHtmlStr);
+ $('table.orarend tbody tr.orarendJegyzetSor').show();
+ });
+ // $(window).resize(orarendResizer); // missing
+ $('.most').parent('th').addClass('most');
+ $('table.orarend td.csr').bind('mouseenter', function(event) {
+ var el = $(event.target);
+ var iid = '';
+ var thiselement = null;
+ if (el.is('td') && el.attr('id')!='') {
+ iid = el.attr('id')
+ thiselement = el;
+ } else if (el.parents('td').attr('id')!='') {
+ iid = el.parents('td').attr('id');
+ thiselement = el.parents('td');
+ }
+ if (iid!='undefined' && iid!='') {
+ var nap = iid.split('_')[2];
+ for (var i=1; i<=7; i++) {
+ if (nap==i) {
+ $('.csr_'+i).show();
+ $('.csr_'+i).parent('th').removeClass('most');
+ $('.most').parent('th').addClass('most');
+ }
+ else $('.csr_'+i).hide();
+ }
+ }
+ // hover
+ var napindex = thiselement.data('napindex');
+ $('table.orarend thead tr th[data-napindex="'+napindex+'"]').addClass('hover');
+ var oraindex = thiselement.data('oraindex');
+ $('table.orarend tbody tr th[data-oraindex="'+oraindex+'"]').addClass('hover');
+ });
+ $('table.orarend td.csr').bind('mouseleave', function(event) {
+ $('table.orarend thead tr th').removeClass('hover');
+ $('table.orarend tbody tr th').removeClass('hover');
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js
new file mode 100644
index 00000000..ceca5176
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.jquery.min.js
@@ -0,0 +1,12 @@
+$(function() {
+ $('#haladasiModositando').bind('click', function(event) {
+ $target = $(event.target);
+ $target.parent('div').toggleClass('haladasiModositando');
+ //alert('Ez a funkció egy új fejlesztés!');
+ //console.log($target);
+ });
+
+ $('table.orarend tbody tr td input[type=checkbox]').click(function() {
+ $(this).closest('div').toggleClass('torlesreJelolve');
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js
new file mode 100644
index 00000000..25ab35a1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/orarendModosito.js
@@ -0,0 +1,80 @@
+/*
+Event.observe(window, 'load', myPSFLoader, false);
+
+function myPSFLoader(evt) {
+
+ doOnChange = function(event) {
+ var element = $(Event.element(event));
+ if (element.hasClassName('orarendTankor')) {
+ var idArray = element.getAttribute('id').split('_');
+ var id = idArray[1]+'_'+idArray[2]+'_'+idArray[3];
+ var orarendTankor = element.up('table').getElementsBySelector('select.orarendTankor');
+ var ertek = $F(element);
+ $A(orarendTankor).each(
+ function (elem, index) {
+ if (elem.getAttribute('id').include(id)) {
+ elem.setValue(ertek);
+ }
+ }
+ );
+
+ }
+ }
+
+ Event.observe(document.body, 'mayor:change', doOnChange);
+
+ Event.observe(document.body, 'change', doOnChange);
+
+// Sortable.create('test', { tag:'div', overlap:'horizontal',constraint:false });
+ Sortable.create('orarend', { tag:'div', only:'draggable' ,
+ tree: true,
+ treeTag: 'div',
+ overlap:'vertical',
+ dropOnEmpty:true,
+ constraint:false,
+ onEnd: function(){
+ alert('onEnd');
+ },
+ onChange:function(e){
+// $('infoBox').update( Form.Element.getValue( e.down('input')) );
+
+ e.addClassName('moved');
+
+ e.down('input').checked=false;
+ e.down('input').hide();
+
+// e.down('input').value='test';
+
+ // ez az eredeti helye (het.nap.ora.tanarId)
+ $('infoBox1').update( (e.down('input').value) );
+ // ez az új helye
+ $('infoBox2').update( e.up('td').getAttribute('id') );
+
+ } });
+
+// new Draggable('draggable', { revert: true });
+// Droppables.add('droppable', { accept: 'draggable' });
+
+// Sortable.create(
+// 'sortable',
+// {onUpdate:function(){$('debug').update(++callsToOnUpdate+' call(s) to onUpdate')}}
+// );
+
+// $('targySelect').disable();
+// $('targySelect').hide(); $('mozgat').hide();
+// $('action').value='ujSorrend';
+// $('targyUl').show(); $('submit').show();
+
+
+// Sortable.create(
+// "draggable",
+// {dropOnEmpty:true,handle:'handle',containment:["draggable"],constraint:false,onChange:function(){}}
+// );
+
+
+// $('serialize').observe('click', function(event) {
+// alert(Sortable.serialize('sortable'));
+// });
+
+}
+*/ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js
new file mode 100644
index 00000000..a19bd03e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/orarend/termez.jquery.min.js
@@ -0,0 +1,5 @@
+$(function() {
+ $('.magic').bind('click', function(event) {
+ $('.magic').val('Várj, ne nyomj meg még1*! :) épp varázsolunk...');
+ });
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js
new file mode 100644
index 00000000..b4a58912
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/diak.jquery.min.js
@@ -0,0 +1,93 @@
+$(function() {
+
+ $('#virtualJegyEasterEgg').click(function() { $('.virtual').remove(); $('.eeHidden').fadeToggle(); atlagSzamol(); });
+ $('.addVirtualJegy').click(function() {
+ var x = $(this).prev().val().split('|');
+ var tipus = $(this).prev().prev().val();
+ var jegy = 0;
+ for(var i = x.length; i--;) {
+ var z = x[i].split('=');
+ if (z[0]=='targyId') { targyId = z[1]; }
+ if (z[0]=='jegy') { jegy = z[1]; }
+ }
+ if (jegy>0)
+ $(this).parent().next('td').append('<a class="eeHidden virtual jegy jegy'+tipus+'" title="" data-targyid="'+targyId+'" data-jegy="'+jegy+'" data-jegytipus="féljegy" data-tipus="'+tipus+'"> '+parseFloat(jegy).toFixed(2)+'</a>');
+ atlagSzamol();
+ });
+
+ $('#sulyozas').on('change',function() {
+ atlagSzamol();
+ });
+
+ $('.jegy1').hover(function(event) {
+ $('.jegy1').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy1').removeClass('jegyKiemel');
+ });
+ $('.jegy2').hover(function(event) {
+ $('.jegy2').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy2').removeClass('jegyKiemel');
+ });
+ $('.jegy3').hover(function(event) {
+ $('.jegy3').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy3').removeClass('jegyKiemel');
+ });
+ $('.jegy4').hover(function(event) {
+ $('.jegy4').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy4').removeClass('jegyKiemel');
+ });
+ $('.jegy5').hover(function(event) {
+ $('.jegy5').addClass('jegyKiemel');
+ }, function(event) {
+ $('.jegy5').removeClass('jegyKiemel');
+ });
+
+ $('tfoot .jegy0').click(function(event) {jegyToggleByTipus(0);});
+ $('tfoot .jegy1').click(function(event) {jegyToggleByTipus(1);});
+ $('tfoot .jegy2').click(function(event) {jegyToggleByTipus(2);});
+ $('tfoot .jegy3').click(function(event) {jegyToggleByTipus(3);});
+ $('tfoot .jegy4').click(function(event) {jegyToggleByTipus(4);});
+ $('tfoot .jegy5').click(function(event) {jegyToggleByTipus(5);});
+
+});
+
+function jegyToggleByTipus(tipus) {
+ if (tipus==0) $('tfoot .jegy0').removeClass('icon-refresh');
+ else $('tfoot .jegy0').removeClass('icon-search-alt').addClass('icon-refresh');
+ $.each([ 1,2,3,4,5 ], function( index, value ) {
+ if (tipus!=0 && tipus!=value) {
+ $('tbody .jegy'+value).fadeOut();
+ } else {
+ $('tbody .jegy'+value).fadeIn();
+ }
+ });
+}
+
+function atlagSzamol() {
+ $('.atlag').each(function(i) {
+ targyAtlagSzamol($(this).data('targyid'));
+ });
+}
+
+function targyAtlagSzamol(targyid) {
+
+ var SULYOZAS = $('#sulyozas').val().split(':');
+ var jegyszam = 0;
+ var jegyosszeg = 0;
+ countThese = $('.jegy');
+ for(var i = countThese.length; i--;) {
+ elem = $(countThese[i]);
+ if (elem!='undefined') {
+ if (elem.data('targyid')==targyid) {
+ jegyszam += parseInt(SULYOZAS[elem.data('tipus')-1]);
+ jegyosszeg += parseFloat(elem.data('jegy'))*SULYOZAS[elem.data('tipus')-1] ;
+ $('#targyAtlag_'+elem.data('targyid')).html(''+(jegyosszeg/jegyszam).toFixed(2));
+ }
+ }
+ }
+ // if (jegyszam!=0) console.log('eredmeny:' + (jegyosszeg/jegyszam));
+ return true;
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js
new file mode 100644
index 00000000..31dcb64c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/stat.jquery.min.js
@@ -0,0 +1,49 @@
+$(function() {
+ $('#beallitasok_zaradek').click(function() {
+ $('.bizZaradek').fadeToggle();
+ });
+ $('#beallitasok_targyak').click(function() {
+ $('.tglTargy').fadeToggle();
+ });
+ $('#beallitasok_oraszamok').click(function() {
+ $('.osz').fadeToggle();
+ });
+ $('#beallitasok_statisztika').click(function() {
+ $('.bizstat').fadeToggle();
+ });
+
+ $('thead tr td.bizZaradek').click(function() {
+ var tmp = $('.bizZaradek select');
+ for (i=0; i<tmp.length; i++) {
+ tmp[i].selectedIndex=1;
+ }
+ });
+
+ $('.toggleBeallitasok').click(function() {
+ $('#beallitasok_zaradek').trigger('click');
+ $('#beallitasok_targyak').trigger('click');
+ $('#beallitasok_oraszamok').trigger('click');
+ $('#beallitasok_statisztika').trigger('click');
+ });
+
+ // Ha a tárgyakat is manipulálnánk valahogy:
+ $('thead tr td.tglTargy').click(function(event) {
+ var targyIndex = event.target.id.substr(5);
+ //$('.t'+targyIndex).fadeToggle();
+ $('.t'+targyIndex).toggleClass('szuk');
+ });
+
+ // inicializálás (onLoad)
+ if ($('#beallitasok_zaradek').attr('checked')) {
+ $('.bizZaradek').show();
+ }
+ if ($('#beallitasok_targyak').attr('checked')) {
+ $('.tglTargy').show();
+ }
+ if ($('#beallitasok_oraszamok').attr('checked')) {
+ $('.osz').show();
+ }
+ if ($('#beallitasok_statisztika').attr('checked')) {
+ $('.bizstat').show();
+ }
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js
new file mode 100644
index 00000000..893f73b3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/tankor.jquery.min.js
@@ -0,0 +1,132 @@
+
+// Event.observe(window, 'load', myPSFLoader, false);
+
+$(function() {
+ var eDid = $('#did');
+ $('.check').bind('click',function(event) {
+ if (eDid.val() == '') {
+ alert(eDid.prop('title'));
+ event.preventDefault();
+ }
+ });
+ $('body').bind('keyup', function(event) {
+ var element = $(event.target);
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ if ($('#updateWindow').is(':visible')) { // csak akkor érdekes, ha ott van az ablak
+ if(!element.is('input') && !element.is('textarea') && !element.is('select')) { // input elem esetén ne legyen semmi
+ if (charKeyCode==46) { // Del gomb
+ $('#jegyTorles').click();
+ }
+ }
+ }
+ });
+ $('.felevLezar').bind('click', function(event) {
+ var element = $(event.target);
+// console.log(element.data('szemeszter'));
+// console.log($.find('.atlag'));
+ });
+
+});
+
+showUpdateLayer = function(options) {
+ if (options.submitClass != 'onSubmitUpdate') { // A már megnyitott form frissítésekor ne méretezzünk át!
+ if (options.submitClass == 'onClickUpdateWindow szoveges') {
+ $('#updateWindow').css({'height':'90%', 'top': '60px'});
+ } else {
+ $('#updateWindow').css({'height':'500px', 'top':'200px'});
+ }
+ }
+ takaroElem = $('#takaro');
+ if (takaroElem) takaroElem.show();
+ $('#updateWindow').show();
+ $('#updateForm').prop('tabindex',1);
+ $('#updateForm').focus();
+}
+
+processJSON = function(json) {
+ if (json.action == 'jegyModositas') {
+ var tdElement = $('#td-'+json.data.diakId+'-'+json.data.dolgozatId);
+ var aElement = $('#jegy-'+json.data.jegyId);
+ if (typeof aElement.closest('td').attr('id') !== 'undefined') {
+ var oldDid = (aElement.closest('td').attr('id').split('-'))[2];
+ }
+
+ if (tdElement) tdElement.append(aElement); // áthelyzés a megfelelő dolgozat alá
+ aElement.removeClass('jegy1');
+ aElement.removeClass('jegy2');
+ aElement.removeClass('jegy3');
+ aElement.removeClass('jegy4');
+ aElement.removeClass('jegy5');
+ aElement.addClass('jegy'+json.data.tipus);
+ aElement.html(json.data.jegyStr); // jegy módosítása
+
+ if (json.data.dolgozatId != oldDid) updateDolgozatAtlag(oldDid); // eredeti dolgozat átlaga
+ updateDolgozatAtlag(json.data.dolgozatId); // új dolgozat átlaga
+
+ $('#updateWindow').hide();
+ $('#takaro').hide();
+ } else if (json.action == 'jegyTorles') {
+ var aElement = $('#jegy-'+json.data.jegyId);
+ aElement.remove();
+ $('#updateWindow').hide();
+ $('#takaro').hide();
+ } else {
+ alert('processJSON: ismeretlen visszatérési érték!');
+ }
+}
+
+updateDolgozatAtlag = function(did) {
+ var sum=0, db=0;
+ $('td.d'+did+' a').each(function(index) {
+ sum = sum + parseInt($(this).text()); db++;
+ if ($(this).html().indexOf('/')>-1) sum = sum + 0.5;
+ });
+ avg=(sum/db);
+ avgElement = $('#avg-d'+did);
+ if (avgElement) avgElement.html(avg.toFixed(2));
+}
+
+
+// -- ELAVULT -- de hiányzik a mozgatás!!//
+
+function myPSFLoader(evt) {
+
+ // Csoportos jegy beírásakor ellenőrizzük, hogy ki lett-e választva dolgozat
+ var CheckDolgozatObject = Class.create();
+ CheckDolgozatObject.prototype = {
+ initialize: function(element) {
+ this.element = $(element);
+ this.eDid = $('did');
+ this.element.observe('click',this.checkDolgozat.bindAsEventListener(this));
+ },
+
+ checkDolgozat: function(evt, extraInfo) {
+
+ if (this.eDid.value == '') {
+ alert(this.eDid.getAttribute('title'));
+ Event.stop(evt);
+ }
+
+ }
+ }
+
+ var checkDolgozatElements = new Array();
+ $$('.check').each(
+ function (elem, index) {
+ checkDolgozatElements.push(new CheckDolgozatObject(elem));
+ }
+ );
+
+ Event.observe(document.body, 'keyup', function(event) {
+ var element = $(Event.element(event));
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ // input elem esetén ne legyen semmi
+ if(!element.match('input') && !element.match('textarea') && !element.match('select')) {
+ if (charKeyCode==46 && $('updateWindow').visible()) { // Del gomb
+ $('jegyTorles').click();
+ }
+ }
+ });
+
+// var mydrag = new Draggable('updateWindow', { scroll: window, handle: $('updateHeader') });
+}
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js
new file mode 100644
index 00000000..9380d30b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/targySorrend.jquery.min.js
@@ -0,0 +1,16 @@
+
+$(function() {
+
+ $('#targySelect').prop("disabled","disabled").hide();
+ $('#mozgat').hide();
+ $('#action').prop("value",'ujSorrend');
+ $('#submit').show();
+ $("#targyUl").show().disableSelection().sortable({ axis: "y", handle: ".handle",
+ start: function(event, ui) {
+ $(event.target).find('li').css('background-color','');
+ ui.item.css('background-color','#ffaaaa');
+ },
+ });
+
+});
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js
new file mode 100644
index 00000000..f3845729
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/osztalyozo/vizsga.jquery.min.js
@@ -0,0 +1,50 @@
+
+hideOptions = function(event) {
+ element = $(event.target);
+ if (element.hasClass('jegyTipus')) {
+ var jegyek = element.next('select');
+ if (element.context.selectedIndex == 0) {
+ jegyek.find('*').prop('disabled',false).show();
+ } else {
+ $(jegyek).val([]);
+ $(jegyek).find('*').prop('disabled','disabled').hide();
+ $(jegyek).find('option:first').prop('disabled',false).show()
+ var selector='optgroup[label="'+element.val()+'"]';
+ jegyek.find(selector).prop('disabled',false).show().find('option').prop('disabled',false).show();
+ }
+ }
+ if (element.hasClass('jegyAdat')) {
+ var tipusok = $(element.parents('.hideShowContainer')[0]).find('.jegyTipus')[0];
+ var jegyTipus = $(element[0].options[element[0].selectedIndex]).parents('optgroup')[0].label;
+ index = 0;
+ while (tipusok.options[index].value != jegyTipus && index < tipusok.options.length && index < 100) index++;
+ if (index < tipusok.options.length) tipusok.selectedIndex=index;
+ else tipusok.selecedIndex=0;
+ }
+}
+
+$(function() {
+ // Halasztás elrejtése
+ $('div.rejtett').hide();
+ $('body').bind('click', function(event) {
+ element = $(event.target);
+
+ // értékeléskor...
+ if (element.hasClass('ertekeles')) {
+ // ... a halasztasDt üresreállítása
+ $(element.parents(".hideShowContainer")[0]).find('input.halasztasDt').prop('value','');
+ }
+ // halasztáskor...
+
+ if (element.hasClass('halasztas')) {
+ // ... a jegytípus/jegy kiválasztást megszüntetjük
+ // $(element.parents('.hideShowContainer')[0]).find('.jegyTipus')[0].selectedIndex=0;
+ // $(element.parents('.hideShowContainer')[0]).find('.jegyAdat')[0].selectedIndex=0;
+ $(element.parents('.hideShowContainer')[0]).find('select').prop('selectedIndex',-1).val([]);
+ $(element.parents('.hideShowContainer')[0]).find('optgroup, option').prop('disabled',false).show();
+ }
+
+ });
+ $('body').bind('change', hideOptions);
+ $('body').bind('mayor:change', hideOptions);
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js
new file mode 100644
index 00000000..b6b664c5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/stat/tantargyFelosztas.jquery.min.js
@@ -0,0 +1,15 @@
+
+$(function() {
+
+ $('body').click(function(event) {
+
+ element = $(event.target);
+
+ if (element.closest('th').hasClass('slide')) {
+ element.closest('tbody').find('tr.hide').slideToggle();
+ element.closest('th').find('span').toggleClass('icon-chevron-up').toggleClass('icon-chevron-down');
+ }
+
+ });
+
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js
new file mode 100644
index 00000000..fd03b778
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/tanev/targyBontas.jquery.min.js
@@ -0,0 +1,823 @@
+
+ updateTbody = function(tbodyElement) {
+ /*
+ * Feltételezzük, hogy egy látható, slideUpAll nélküli nyitó sorral kezdődik a tbody
+ */
+ tbodyElement = $(tbodyElement);
+ firstTr = tbodyElement.find('tr:first');
+ nextTrDb = firstTr.nextAll('tr').length;
+ // első sorban csak slideUpAll, vagy Down lehet
+ firstTr.find('.slideUp').remove();
+ if (nextTrDb > 0) {
+ firstTr.find('td.slide').append('<span class="slideUpAll icon-caret-up"></span>');
+ if (firstTr.data('db') == nextTrDb) { // Az összes sor az első sor alatt van --> eddig is volt Down, kell UpAll, de rejtve
+ firstTr.find('.slideUpAll').hide();
+ }
+ } // vannak további sorok
+ }
+
+ ajaxGetTankorAdat = function(tankorId) {
+ postData = { 'tankorId':tankorId }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=getTankorAdat&policy=private&skin=ajax&sessionID="+$('body').data('sessionID'),
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorAdat(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+
+ }
+
+ processJSONAddBontas = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ // utolsó érintett tr
+ lastTr = $('#tr-'+msg.bontas[msg.bontas.length-1].osztalyId+'-'+msg.bontas[msg.bontas.length-1].kepzesOratervId);
+ // A tartalmazó tbody id-je...
+ tbodyId = lastTr.closest('tbody').attr('id');
+ // eddigi bontásszám
+ bontasDb = lastTr.find('div.bontas').length;
+ // Ha nem az utolsó a tbody-n belül, akkor az őt követő tr-eket külön tbody-ba helyezzük
+ nextLastTr = lastTr.nextAll('tr');
+ if (nextLastTr.length > 0) {
+ tbodyAfter = $('<tbody>').attr('id', tbodyId+'-'+bontasDb).insertAfter($('#'+tbodyId));
+ nextLastTr.appendTo(tbodyAfter);
+ updateTbody(tbodyAfter);
+ }
+ keszKoDbCsokken = (lastTr.hasClass('kesz'));
+ // div beszúrása
+ for (i=0; i<msg.bontas.length; i++) {
+ selector = $('#bTd-'+msg.bontas[i].osztalyId+'-'+msg.bontas[i].kepzesOratervId);
+ selector.append(
+ '<div class="bontas" id="bontas-'+msg.bontas[i].bontasId+'"><span class="bontasDb">'+(bontasDb+1)+'</span>. '
+ +msg.targyNev+' csoport ('+msg.bontas[i].bontasId+')<span class="delBontas icon-remove-circle"></span>'
+ +'<ul class="tankor-oraszam">'
+ +'<li class="marad">'
+ +parseFloat(selector.closest('tr').data('hetioraszam'))
+ +'</li>'
+ +'</ul></div>');
+ $('#bontas-'+msg.bontas[i].bontasId).data('tankororaszam', []);
+ $('#bontas-'+msg.bontas[i].bontasId).data('hetioraszam', 0);
+ $('#bontas-'+msg.bontas[i].bontasId).data('targyid', msg.bontas[i].targyId);
+ $('#bontas-'+msg.bontas[i].bontasId).data('key', msg.bontas[i].bontasId);
+ $('#bontas-'+msg.bontas[i].bontasId).data('keys', msg.bontas[i].bontasId);
+ // az érintett sorok most biztos nem "kész"-ek, mert van egy tankörök nélküli bontásuk
+ selector.closest('tr').removeClass('kesz');
+ }
+ // A stat adatok módosítása
+ $('#statBontas').html( parseInt($('#statBontas').html())+parseInt(msg.bontas.length) );
+ if (keszKoDbCsokken) $('#statKoKesz').html( parseInt($('#statKoKesz').html())-msg.bontas.length );
+ // a felső bontás keys paraméterének beállítása
+ keys = $('#bontas-'+msg.bontas[0].bontasId).data('key');
+ for (i=1; i<msg.bontas.length; i++) {
+ keys += ','+$('#bontas-'+msg.bontas[i].bontasId).data('key');
+ }
+ $('#bontas-'+msg.bontas[0].bontasId).data('keys', keys)
+ // ha kell, akkor a módosított sorok áthelyezése új tbody-ba
+ firstTr = $('#tr-'+msg.bontas[0].osztalyId+'-'+msg.bontas[0].kepzesOratervId);
+ prevFirstTr = firstTr.prevAll('tr');
+ if (prevFirstTr.length > 0) {
+ tbodyModified = $('<tbody>').attr('id', tbodyId+'-'+(bontasDb+1)).insertAfter($('#'+tbodyId));
+ for (i=0; i<msg.bontas.length; i++) {
+ $('#tr-'+msg.bontas[i].osztalyId+'-'+msg.bontas[i].kepzesOratervId).appendTo(tbodyModified);
+ }
+ updateTbody(tbodyModified);
+ } else {
+ firstTr.find('.slideUpAll').hide();
+ }
+ }
+
+ processJSONDelBontas = function( msg ) {
+ //console.log(JSON.stringify(msg));
+ if (msg.result == 'success') {
+
+ // utolsó érintett tr
+ lastTr = $('#bontas-'+msg.bontasIds[msg.bontasIds.length-1]).closest('tr');
+ // A tartalmazó tbody id-je...
+ tbodyId = lastTr.closest('tbody').attr('id');
+ // eddigi bontásszám
+ bontasDb = lastTr.find('div.bontas').length;
+ // Ha nem az utolsó a tbody-n belül, akkor az őt követő tr-eket külön tbody-ba helyezzük
+ nextLastTr = lastTr.nextAll('tr');
+ if (nextLastTr.length > 0) {
+ tbodyAfter = $('<tbody>').attr('id', tbodyId+'-'+bontasDb).insertAfter($('#'+tbodyId));
+ nextLastTr.appendTo(tbodyAfter);
+ updateTbody(tbodyAfter);
+ }
+
+ // ha kell, akkor a módosított sorok áthelyezése új tbody-ba
+ firstTr = $('#bontas-'+msg.bontasIds[0]).closest('tr');
+ prevFirstTr = firstTr.prevAll('tr');
+ if (prevFirstTr.length > 0) {
+ tbodyModified = $('<tbody>').attr('id', tbodyId+'-'+(bontasDb-1)).insertAfter($('#'+tbodyId));
+ for (i=0; i<msg.bontasIds.length; i++) {
+ $('#bontas-'+msg.bontasIds[i]).closest('tr').appendTo(tbodyModified);
+ }
+ updateTbody(tbodyModified);
+ } else {
+ firstTr.find('.slideUpAll').hide();
+ }
+
+ // div törlése
+ keszBontasDbCsokken = ($('#bontas-'+msg.bontasIds[0]).data('hetioraszam') == lastTr.data('hetioraszam'));
+ for (i=0; i<msg.bontasIds.length; i++) {
+ $('#bontas-'+msg.bontasIds[i]).nextAll('div.bontas').find('span.bontasDb').each(function(index) {
+ $(this).html($(this).html()-1);
+ });
+ $('#bontas-'+msg.bontasIds[i]).remove();
+ }
+ // stat adatok módosítása
+ $('#statBontas').html( parseInt($('#statBontas').html())-parseInt(msg.bontasIds.length) );
+ if (keszBontasDbCsokken) $('#statBontasKesz').html( parseInt($('#statBontasKesz').html())-parseInt(msg.bontasIds.length) );
+ // Egy felesleges bontás törlésével "kész"-szé válhatott a sor
+ if (!lastTr.hasClass('kesz')) {
+ var kesz = (lastTr.find('div.bontas').length > 0);
+ if (kesz) lastTr.find('div.bontas').each(function(index) {
+ if ($(this).data('hetioraszam') != lastTr.data('hetioraszam')) kesz = false;
+ });
+ if (kesz) {
+ lastTr.closest('tbody').find('tr').addClass('kesz');
+ $('#statKoKesz').html( parseInt($('#statKoKesz').html())+lastTr.closest('tbody').find('tr').length );
+ if ($('#keszRejt').is(':checked')) lastTr.closest('tbody').hide();
+ }
+ }
+
+
+ }
+ }
+
+ processJSONTankorLista = function( msg, element ) {
+ //console.log(JSON.stringify(msg));
+
+ // a blokk tárgy típusa
+ ttTdElement = element.closest('tr').find('th.targyTipus');
+ if (ttTdElement.length==0) targyTipus = 'mintatantervi';
+ else targyTipus = ttTdElement.html();
+ // a képzésOraterv bejegyzés heti óraszáma
+ koHetiOraszam = parseFloat(element.closest('tr').data('hetioraszam'));
+ // a bontás össz-óraszáma és tankorId-i
+ to = element.data('tankororaszam');
+ bontasOraszam = 0;
+ bontasTankorIds = [];
+ if ($.isArray(to)) {
+ for (i=0; i<to.length; i++) {
+ bontasOraszam += parseFloat(to[i].hetiOraszam);
+ bontasTankorIds[i] = ''+to[i].tankorId; // hogy string legyen mindenképp!!
+ }
+ }
+ bontasSzabadOraszam = koHetiOraszam - bontasOraszam;
+ // szemeszterek
+ vanSzemeszter = [(element.closest('tbody').find('.felev1').length>0), (element.closest('tbody').find('.felev2').length>0)];
+
+ ulKiemeltElement = $('<ul>').addClass('kiemelt').addClass('tankorLista');
+ ulElement = $('<ul>').addClass('tankorLista');
+ for (i=0; i<msg.tankorok.length; i++) {
+ /*
+ - ha a bontás óraszám == kepzesOraterv oraszámmal - nem lehet új tankört hozzárendelni (class="ok")
+ - ha bontas óraszám > kepzesOraterv óraszám, akkor az hiba! - (class="fail")
+ - ha bontas óraszám < kepzesOraterv óraszám, akkor --> tankör-list, tankörönként:
+ - hozzárendelt már - akkor nem lehet újra kiválasztani (class="hozzarendelt")
+ - van targyTipushoz már óraszáma --> csak az az óraszám lehet
+ - ha ez több, mint a bontás szabad óraszáma, akkor nem lehet hozzárendelni
+ - ha nem több, akkor pontosan ezt az óraszámot rendelhetjük hozzá
+ - nincs tárgytípushoz óraszáma, de a tankörnek már nincs fennmaradó -> nem lehet hozzárendelni
+ - nincs tárgytípushoz és van szabad órája: hozzá-óraszám = min(tankörSzabad[szemeszter?], bontasSzabad[szemeszter?])
+ */
+ tAdat = msg.tankorok[i];
+ // kezdőértékek
+ classStr='tankorBontas';
+ maxOraszam = 0;
+ vanTargyTipusOraszam = tankorOraszamElfogyott = tankorOraszamSokFail = oraszamFix = false;
+ // hozzá van-e már rendelve
+ hozzarendelt = ($.inArray(tAdat.tankorId, bontasTankorIds) > -1);
+ oStr = '';
+ // fontos lenne, hogy csak a szükséges szemesztereken menjen végig a ciklus!!
+ for (szemeszter=0; szemeszter<2; szemeszter++) { // 0 indexű! hogy js alatt tömb lehessen
+ if (!vanSzemeszter[szemeszter]) continue;
+ oraszam = parseFloat(msg.tankorok[i].oraszam[szemeszter]);
+ oStr += '['+oraszam+'/';
+ sum=0;
+ for (t=0; t<msg.tankorok[i].bontasOraszam[szemeszter].length; t++) {
+ hetiOraszam = parseFloat(msg.tankorok[i].bontasOraszam[szemeszter][t].hetiOraszam);
+ sum+=parseFloat(hetiOraszam);
+ if (msg.tankorok[i].bontasOraszam[szemeszter][t].tipus==targyTipus) {
+ vanTargyTipusOraszam = true;
+ maxOraszam = hetiOraszam;
+ oStr += '<strong>'+hetiOraszam+'</strong>';
+ } else {
+ oStr+=hetiOraszam;
+ }
+ if (t < msg.tankorok[i].bontasOraszam[szemeszter].length-1) oStr += '+';
+ }
+ oStr += (sum==0?'0]':']');
+ tankorSzabadOraszam = oraszam - sum;
+ if (hozzarendelt) {
+ oraszamFix = true;
+ classStr='tiltott hozzarendelt';
+ maxOraszam = 0;
+ } else if (vanTargyTipusOraszam) {
+ oraszamFix = true;
+ if (maxOraszam > bontasSzabadOraszam) { // ha túl sok a tankör tárgyTipushoz kötött óraszáma
+ classStr="tiltott";
+ maxOraszam = 0;
+ } else {
+ classStr="osszevonasTilt"
+ }
+ } else if (tankorSzabadOraszam == 0) {
+ oraszamFix = true;
+ classStr='tiltott';
+ tankorOraszamElfogyott = true;
+ maxOraszam = 0;
+ } else if (tankorSzabadOraszam < 0) {
+ oraszamFix = true;
+ classStr='tiltott hibas';
+ tankorOraszamSokFail = true;
+ maxOraszam = 0;
+ } else if (bontasSzabadOraszam<=0) {
+ oraszamFix = true;
+ classStr="tiltott";
+ maxOraszam = 0;
+ } else if (maxOraszam == 0) { // pl. az első szemeszter vizsgálatakor - a második szemeszter esetén már lehet pozitív
+ maxOraszam = Math.min(tankorSzabadOraszam, bontasSzabadOraszam);
+ } else { // ha az első szemesztert is figyelembe kell venni...
+ maxOraszam = Math.min(maxOraszam, tankorSzabadOraszam, bontasSzabadOraszam);
+ }
+ }
+ oStr2 = '<div class="jobbra"><strong>';
+ if (!oraszamFix) oStr2 += '<span class="icon-caret-up plusz"></span><span class="icon-caret-down minusz"></span>';
+ oStr2 += '<span class="data">'+maxOraszam.toFixed(2)+'</span></strong></div>';
+ liElement = $('<li class="'+classStr+'">'+oStr2+tAdat.tankorNev+' ('+tAdat.tankorId+') - '+oStr+'</li>').data({'tankorId':tAdat.tankorId, 'hetiOraszam': maxOraszam, 'maxOraszam': maxOraszam}).attr('id','tankor-'+tAdat.tankorId);
+ if (tAdat.kiemelt) liElement.appendTo(ulKiemeltElement);
+ else liElement.appendTo(ulElement);
+
+ }
+ $('#updateWindowSideContent').html('');
+ $('<p class="bontasAdat">Tárgy típus: '+targyTipus+'; heti óraszám: '+koHetiOraszam+'/'+bontasOraszam+'</p>').appendTo($('#updateWindowSideContent'));
+ if (bontasOraszam==0) $('<div id="addTankor"><span class="icon-plus-sign"></span> Új tankör&nbsp;&nbsp;&nbsp;<span class="icon-chevron-down"></span></div>').appendTo($('#updateWindowSideContent'));
+ else $('<div id="disableAddTankor"><span class="icon-plus-sign"></span> Új tankör&nbsp;&nbsp;&nbsp;<span class="icon-chevron-down"></span></div>').appendTo($('#updateWindowSideContent'));
+ ulKiemeltElement.appendTo($('#updateWindowSideContent'));
+ ulElement.appendTo($('#updateWindowSideContent'));
+ $('#updateWindowSide h1 div').html('Tankörök');
+ $('#updateWindowSide').data('target', element);
+ $('#updateWindowSide').addClass('nyitva');
+ }
+
+ processJSONTankorMod = function( msg ) {
+ //console.log(JSON.stringify(msg));
+ txt = $('#updateWindowSide').data('target').html();
+ s1 = txt.substr(0, txt.indexOf('] ')+2);
+ s2 = txt.substr(txt.indexOf(' ('));
+ $('#updateWindowSide').data('target').html(s1+msg.tankorNevTargyNelkul+s2);
+ //console.log(s1+msg.tankorNevTargyNelkul+s2);
+ processJSONTankorAdat( msg );
+ }
+
+ processJSONBontasTankor = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ hetiOraszam = parseFloat(msg.hetiOraszam);
+ tankorId = msg.tankorId;
+ tankorNev = msg.tankorNev;
+ for (i=0; i<msg.bontasIds.length; i++) {
+ bontasId = msg.bontasIds[i];
+ element = $('#bontas-'+bontasId);
+ liElement = $('<li>['+hetiOraszam+'] '+tankorNev+' ('+tankorId+')</li>');
+ liElement.data('tankorid',tankorId).addClass('tankorAdat').insertBefore(element.find('li.marad'));
+ element.data('tankororaszam').push({'tankorId': tankorId, 'hetiOraszam': hetiOraszam});
+ element.data('hetioraszam', hetiOraszam+element.data('hetioraszam'));
+ marad = element.closest('tr').data('hetioraszam')-element.data('hetioraszam');
+ element.find('li.marad').html(marad);
+ if (marad<0) classStr='bontas fail';
+ else if (marad==0) classStr='bontas ok';
+ else classStr='bontas';
+ element.attr('class',classStr);
+ }
+ // Az új tankör hozzáadásával "kész"-szé válhatott a sor - (element: az utolsó bontás div-je)
+ { // eddig biztos nem volt kész a sor - mert tudtunk hozzárendelni bontást...
+ var sorKesz = true; // biztos van legalább egy bontás - hisz hozzárendeltünk egy tankört
+ trElement = element.closest('tr');
+ trElement.find('div.bontas').each(function(index) {
+ if ($(this).data('hetioraszam') != trElement.data('hetioraszam')) sorKesz = false;
+ });
+ if (element.data('hetioraszam')==trElement.data('hetioraszam')) { // a bontások kész lettek
+ $('#statBontasKesz').html( parseInt($('#statBontasKesz').html())+msg.bontasIds.length );
+ }
+ if (sorKesz) {
+ // stat adatok állítása
+ $('#statKoKesz').html( parseInt($('#statKoKesz').html())+msg.bontasIds.length );
+ trElement.closest('tbody').find('tr').addClass('kesz');
+ if ($('#keszRejt').is(':checked')) trElement.closest('tbody').hide();
+ }
+ }
+ }
+
+ processJSONUjTankor = function(msg) {
+ //console.log(JSON.stringify(msg));
+ // A tankört hozzá is rendeltük a bontáshoz
+ processJSONBontasTankor( msg );
+ // Tankör adatainak megjelenítése
+ ajaxGetTankorAdat(msg.tankorId);
+ }
+
+ processJSONTankorAdat = function( msg ) {
+ //console.log(JSON.stringify(msg));
+
+ $('#updateWindowSideContent').html('');
+ $('#updateWindowSideTitle').html('Tankör adatai');
+ //$('<p class="tankorNev">'+msg.tankorNev+' ('+msg.tankorId+')</p>').appendTo('#updateWindowSideContent');
+ $('<p class="tankorNev">' +msg.tankorNevReszei.evfOszt+' '
+ +msg.tankorNevReszei.targyNev
+ +(msg.tankorNevReszei.tankorJel!=''&&msg.tankorNevReszei.tankorJel!=null?msg.tankorNevReszei.tankorJel+' ':'')
+ +' <span class="tankorNevExtra">'+msg.tankorNevReszei.tankorNevExtra+'</span>'
+ +'<input id="tankorNevExtra" type="text" name="tankorNevExtra" value="'+msg.tankorNevReszei.tankorNevExtra+'" />'
+ +' ('+msg.tankorId+')</p>').appendTo('#updateWindowSideContent');
+ $('<p class="tankorModosit">Módosít!</p>').appendTo('#updateWindowSideContent');
+ // adatok
+ ulStr = '<ul>'
+ +'<li>Évközi követelmény: '+msg.kovetelmeny+'</li>'
+ +'<li>Létszám korlát: '+msg.min+'-'+msg.max+'</li>'
+ +'<li>Tankör-típus: '+msg.rovidNev+' ('+msg.tankorTipusId+')</li>'
+ +'</ul>';
+ $(ulStr).appendTo('#updateWindowSideContent');
+ // osztályok
+ ulStr = '<ul id="tankorOsztaly">';
+ pStr = '<div class="slideToggleContainer" id="pTankorOsztaly">Osztályai: <span class="tankorData slideToggle">';
+ for (i=0; i<msg.osztalyok.length; i++) {
+ ulStr += '<li>'
+ +'<input type="checkbox" name="osztalyId[]" value="'+msg.osztalyok[i].osztalyId+'" id="oTankorId-'+msg.osztalyok[i].osztalyId+'" ';
+ if ($.inArray(msg.osztalyok[i].osztalyId, msg.osztalyIds)>-1) {
+ ulStr += 'checked="checked" ';
+ pStr += msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+') ';
+ }
+ ulStr += '/> '
+ +'<label for="oTankorId-'+msg.osztalyok[i].osztalyId+'">'+msg.osztalyok[i].osztalyJel+' ('+msg.osztalyok[i].osztalyId+')</label></li>';
+ }
+ ulStr += '</ul>';
+ pStr += '</span><span class="icon-chevron-down slideToggle"></span>'+ulStr+'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+ // szemeszterek, óraszámok
+ ulStr = '<ul id="tankorSzemeszter">';
+ for (i=0; i<msg.tankorSzemeszter.length; i++) {
+ ulStr += '<li>'+msg.tankorSzemeszter[i].tanev+'/'+msg.tankorSzemeszter[i].szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+msg.tankorSzemeszter[i].tanev+'-'+msg.tankorSzemeszter[i].szemeszter+'" value="'+msg.tankorSzemeszter[i].oraszam+'" />'
+ +'</li>';
+ }
+ ulStr += '</ul>';
+ pStr = '<div class="slideToggleContainer" id="pTankorSzemeszter">Óraszám: <span class="tankorData slideToggle">'+msg.oraszam+' ('+msg.tanev+'/'+msg.szemeszter+')</span>'
+ +'<span class="icon-chevron-down slideToggle"></span>'
+ +ulStr
+ +'</div>';
+ $(pStr).appendTo('#updateWindowSideContent');
+
+// $('<p>'+JSON.stringify(msg)+'</p>').appendTo($('#updateWindowSideContent'));
+ if (!$('#updateWindowSide').hasClass('nyitva')) $('#updateWindowSide').addClass('nyitva')
+ }
+
+ slideUp = function(element) {
+ // A fedett sorok számát eltároljuk, majd 0-ra állítjuk
+ trElement = element.closest('tr');
+ bontasArray = trElement.find('div.bontas').get();
+ prevTrElement = trElement.prevAll('tr').filter(':visible:first');
+ prevBontasArray = prevTrElement.find('div.bontas').get();
+
+ // shadow elvétele, slideUp, Down törlése - vizuális elemek
+ if (trElement.data('db') < 6) trElement.removeClass('shadow'+trElement.data('db'));
+ else trElement.removeClass('shadow5');
+ trElement.slideUp(100);
+ trElement.find('.slideDown').remove();
+ // db adatok módosítása
+ origDb = prevTrElement.data('db');
+ prevTrElement.data('db',origDb+trElement.data('db')+1);
+ trElement.data('db',0);
+ // A fedett sorok kulcsait eltároljuk, majd a sor kulcsára cseréljük
+ origKeys = prevTrElement.data('keys');
+ prevTrElement.data('keys', origKeys+','+trElement.data('keys'));
+ trElement.data('keys', trElement.data('key'));
+ // bontások kulcsadatainak módosítása
+ for (i=0; i<bontasArray.length; i++) {
+ origKeys = $(prevBontasArray[i]).data('keys');
+ $(prevBontasArray[i]).data('keys', origKeys+','+$(bontasArray[i]).data('keys'));
+ $(bontasArray[i]).data('keys', $(bontasArray[i]).data('key'));
+ }
+ // prev - shadow elvétele
+ if (origDb < 6) prevTrElement.removeClass('shadow'+origDb);
+ else prevTrElement.removeClass('shadow5');
+ // prev - ha most került alá sor, akkor kirakjuk a lenyitót
+ if (origDb == 0) prevTrElement.find('td.slide').append('<span class="slideDown icon-chevron-down"></span>');
+ // prev - shadow
+ if (prevTrElement.data('db')<6) prevTrElement.addClass('shadow'+prevTrElement.data('db'));
+ else prevTrElement.addClass('shadow5');
+ // prev - ha minde becsukva, akkor nem kell slideUpAll
+ if (prevTrElement.data('db') == prevTrElement.nextAll('tr').length) prevTrElement.find('.slideUpAll').hide();
+
+ }
+
+ slideDown = function(element) {
+ trElement = element.closest('tr');
+ bontasArray = trElement.find('div.bontas').get();
+ // becsuk
+ trElement.nextAll('tr').filter(':hidden').slideDown();
+ // shadow leszedése
+ if (trElement.data('db') < 6) trElement.removeClass('shadow'+trElement.data('db'));
+ else trElement.removeClass('shadow5');
+ // adatok alaphelyzetbe
+ trElement.data('db',0);
+ trElement.data('keys', trElement.data('key'));
+ for (i=0; i<bontasArray.length; i++) $(bontasArray[i]).data('keys', $(bontasArray[i]).data('key'));
+ element.closest('tbody').find('tr:first .slideUpAll').show();
+ // Down eltüntetése
+ element.remove();
+ }
+
+ initBontas = function() {
+
+ if ($('table.bontas').length == 0) {
+ $('form#szures').slideDown(1000);
+ } else {
+ $($('table.bontas .slideUp').get().reverse()).each(function(index) {
+ slideUp($(this));
+ });
+ }
+ }
+
+
+$(function() {
+
+ $('table.bontas tr').data('db',0);
+ var params = $.parseParams(window.location.toString().split('?')[1] || '' );
+ var sessionID=params.sessionID?params.sessionID:'';
+ $('body').data('sessionID',sessionID);
+ // A tárgyak div inicializálása
+ var height = $('div#targyak').height();
+ var width = $('div#targyak').width();
+ var targyakTop =parseInt($('div#targyak').css('top'));
+ $('div#targyakUp').css({'width':width-12});
+ $('div#targyakDown').css({'width':width-12,'top':height+targyakTop-30});
+
+ initBontas();
+
+ $('#keszRejt').change(function(event) {
+ var element = $(event.target);
+ if (element.is(':checked')) {
+ $('table.bontas tr.kesz:first-child').closest('tbody').hide();
+ } else {
+ $('table.bontas tr.kesz:first-child').closest('tbody').show();
+ }
+ });
+
+ $('body').change(function(event) {
+ var element = $(event.target);
+ if (element.closest('div').hasClass('slideToggleContainer')) {
+ element.closest('div').find('span.tankorData').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ } else if (element.attr('id')=='tankorNevExtra') {
+ if (!element.prev('span.tankorNevExtra').hasClass('changed')) {
+ element.prev('span.tankorNevExtra').addClass('changed');
+ $('#updateWindowSideContent p.tankorModosit').slideDown();
+ }
+ }
+ });
+
+ $('body').focusout(function(event) {
+ var element = $(event.target);
+ if (element.attr('id')=='tankorNevExtra') {
+ element.prev('span.tankorNevExtra').html( element.val() ).show();
+ element.hide();
+ }
+ });
+
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:last-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = 1+parseInt(tmp[1]);
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').appendTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').next('li').find('input').focus();
+ }
+
+ });
+
+ $('#updateWindowSide').on('keydown', 'ul#tankorSzemeszter li:first-child input', function(event) {
+
+ var charKeyCode = event.keyCode ? event.keyCode : event.which;
+ var shiftKey = event.shiftKey ? event.shiftKey : ((charKeyCode == 16) ? true : false);
+ var altKey = event.altKey ? event.altKey : ((charKeyCode == 18) ? true : false);
+ var ctrlKey = event.ctrlKey ? event.ctrlKey : ((charKeyCode == 17) ? true : false);
+ element = $(event.target);
+
+ if (charKeyCode == 9 && shiftKey) {
+ event.preventDefault();
+ tmp = element.attr('name').split('-');
+ tanev = parseInt(tmp[1])-1;
+ for (szemeszter = 1; szemeszter<3; szemeszter++) {
+ $('<li>'+tanev+'/'+szemeszter
+ +'<input maxlength="5" type="text" name="sz-'+tanev+'-'+szemeszter+'" value="" />'
+ +'</li>').prependTo('ul#tankorSzemeszter');
+ }
+ element.closest('li').prev('li').find('input').focus();
+ }
+
+ });
+
+
+ $('body').click(function(event) {
+ var element = $(event.target);
+
+ if (!element.hasClass('addBontasTargy')) {
+ $('div#targyak').hide();
+ $('table.bontas tr.aktiv').removeClass('aktiv');
+ }
+ if (element.hasClass('slideUp')) {
+ slideUp(element);
+ } else if (element.hasClass('slideUpAll')) {
+ $(element.closest('tbody').find('.slideUp:visible').get().reverse()).each(function(index) {
+ slideUp($(this));
+ });
+ } else if (element.hasClass('slideDown')) {
+ slideDown(element);
+ } else if (element.hasClass('addBontas')) {
+
+ postData = { 'action':'addBontas', 'keys':element.closest('tr').data('keys')}
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONAddBontas(msg);
+ });
+
+ } else if (element.hasClass('addBontasTargy')) {
+ // Az érintett sor kulcsát eltároljuk - hogy tudjuk hova kell visszatérni
+ $('div#targyak').data('keys',element.closest('tr').data('keys'));
+ //tt
+ eOffset=element.offset();
+ //tt
+ $('#targyak').css({'left':eOffset.left+25}).show();
+ element.closest('tr').addClass('aktiv');
+
+ // $('#targyak ul#targyakUl').appendTo('#updateWindowSideContent').focus();
+ // $('#updateWindowSide').addClass('nyitva');
+ $('#targyak').show().focus();
+ } else if (element.hasClass('selectTargy')) {
+
+ postData = { 'action':'addBontasTargy', 'keys':$('div#targyak').data('keys'), 'targyId':element.data('targyid') }
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONAddBontas(msg);
+ });
+
+ } else if (element.hasClass('delBontas')) {
+
+ postData = { 'action':'delBontas', 'keys':element.closest('div.bontas').data('keys')}
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONDelBontas(msg);
+ });
+
+ } else if (element.hasClass('bontas')) {
+
+ if (element.hasClass('ok')) {
+ alert('A csoport összes órája tankörhöz van már rendelve!');
+ } else if (element.hasClass('fail')) {
+ alert('Hiba! A bontás összóraszáma nagyobb a képzés-óratervben megadottnál!');
+ } {
+
+ postData = { 'targyId':element.data('targyid'), 'bontasIds':element.data('keys').toString().split(',') }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=tankorLista&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorLista(msg, element);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+ }
+
+ } else if (element.hasClass('tankorBontas') && !element.hasClass('tiltott')) {
+
+
+ postData = { 'action':'bontasTankor', 'keys':$('#updateWindowSide').data('target').data('keys'),
+ 'tankorId': element.data('tankorId'), 'hetiOraszam':element.data('hetiOraszam') }
+ saltName = $('#bontasForm input.salt').prop('name');
+ saltValue = $('#bontasForm input.salt').val();
+ postData[saltName] = saltValue;
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tanev&f=targyBontas&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ updateSalt(jqXHR.getResponseHeader('Etag'));
+ processJSONBontasTankor(msg);
+ $('#updateWindowSide').removeClass('nyitva')
+ $('#updateWindowSideContent').html('');
+ });
+
+ } else if (element.hasClass('osszevonasTilt')) {
+ element.removeClass('osszevonasTilt').addClass('osszevonasEnged').addClass('tankorBontas');
+ } else if (element.hasClass('plusz')) {
+ if (!element.closest('li').hasClass('tiltott')) {
+ data = element.closest('li').data();
+ if (data.hetiOraszam < data.maxOraszam) {
+ element.closest('li').data('hetiOraszam', data.hetiOraszam+0.25);
+ element.closest('div').find('span.data').html(element.closest('li').data('hetiOraszam').toFixed(2));
+ }
+ }
+ } else if (element.hasClass('minusz')) {
+ if (!element.closest('li').hasClass('tiltott')) {
+ data = element.closest('li').data();
+ if (data.hetiOraszam > 0.25) {
+ element.closest('li').data('hetiOraszam', data.hetiOraszam-0.25);
+ element.closest('div').find('span.data').html(element.closest('li').data('hetiOraszam').toFixed(2));
+ }
+ }
+ } else if (element.attr('id') == 'addTankor') {
+
+ postData = { 'action':'ujTankor', 'bontasIds':$('#updateWindowSide').data('target').data('keys').toString().split(',') }
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=ujTankor&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ //console.log('ok');
+ processJSONUjTankor(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+
+ } else if (element.hasClass('tankorAdat')) {
+
+ $('#updateWindowSide').data('target',element);
+ ajaxGetTankorAdat(element.data('tankorid'));
+ } else if (element.hasClass('tankorModosit')) {
+
+ postData = { 'tankorId':$('#updateWindowSide').data('target').data('tankorid'),'osztalyIds': [], 'tankorSzemeszter': [], 'tankorNevExtra': $('#updateWindowSide input#tankorNevExtra').val() }
+ $('#updateWindowSide ul#tankorOsztaly input:checked').each(function(index){postData.osztalyIds.push($(this).val());})
+ $('#updateWindowSide ul#tankorSzemeszter input[type=text]').each(function(index){
+ if ($(this).val() != '') {
+ tmp = $(this).attr('name').split('-');
+ postData.tankorSzemeszter.push({'tanev':tmp[1], 'szemeszter': tmp[2], 'oraszam': $(this).val() });
+ }
+ });
+
+//console.log(postData.tankorSzemeszter);
+
+ $.ajax({
+ type: "POST",
+ url: "index.php?page=naplo&sub=tools&f=tankorMod&policy=private&skin=ajax&sessionID="+sessionID,
+ data: postData,
+ dataType: 'json'
+ }).done(function( msg, status, jqXHR ) {
+ processJSONTankorMod(msg);
+ }).fail(function( jqXHR, textStatus, errorThrown ) {
+ //console.log('fail');
+ //console.log(jqXHR);
+ });
+ } else if (element.hasClass('tankorNevExtra')) {
+
+ element.next('input#tankorNevExtra').show();
+ element.hide();
+
+ } else if (element.hasClass('slideToggleContainer')) {
+
+ element.find('ul').slideToggle();
+ } else if (element.hasClass('slideToggle')) {
+ element.closest('div').find('ul').slideToggle();
+ } else if (element.hasClass('evfolyamJel')) {
+ if (element.find('input').is(':checked')) {
+ $('div#osztaly div.osztEvf').show();
+ $('div#osztaly div.evfolyamJel input').prop('checked',false);
+ $('div#osztaly span.selectOsztaly input').prop('checked',false);
+ $('div#kepzes div.kSelect input').prop('checked',false);
+ $('div#osztaly div.evfolyamJel').removeClass('checked');
+ $('div#osztaly span.selectOsztaly').removeClass('checked');
+ $('div#kepzes div.kSelect').hide();
+ } else {
+ element.addClass('checked');
+ element.find('input').prop('checked',true);
+ $('div#osztaly div.osztEvf').hide();
+ $('div#osztEvf-'+element.find('input').val().replace('/','-')).show();
+ }
+ } else if (element.hasClass('selectOsztaly')) {
+ isChecked = element.find('input').prop('checked');
+ element.find('input').prop('checked', !isChecked);
+ element.toggleClass('checked');
+ evfDiv = element.closest('div.osztEvf').find('div.evfolyamJel');
+ kepzesDiv=$('div#kepzes div.ko-'+element.find('input').val());
+ if (!isChecked) {
+ kepzesDiv.show();
+ kepzesDiv.find('input').prop('checked',true);
+ kepzesDiv.each(function(index) {
+ db = $(this).data('db');
+ $(this).data('db', db+1);
+ });
+ if (!evfDiv.hasClass('checked')) {
+ evfDiv.addClass('checked');
+ evfDiv.find('input').prop('checked',true);
+ $('div#osztaly div.osztEvf').hide();
+ $('div#osztEvf-'+evfDiv.find('input').val().replace('/','-')).show();
+ }
+ } else {
+ kepzesDiv.each(function(index) {
+ db = $(this).data('db');
+ $(this).data('db', db-1);
+ if ($(this).data('db') == 0) {
+ $(this).find('input').prop('checked',false);
+ $(this).hide();
+ }
+ });
+ }
+ } else if (element.closest('td').attr('id') == 'oratervenKivuli') {
+ element.closest('td').find('ul').slideToggle();
+ }
+
+ });
+
+
+ // tárgyak scrollozása
+ $('div#targyak').mousemove(function(event) {
+ var h = $('ul#targyakUl').height()+13;
+ var offset = $($(this)).offset();
+ var position = (event.pageY-offset.top)/$(this).height();
+ if (position < 0.25) {
+ $('div#targyakDown').hide();
+ if ($('div#targyak').scrollTop() == 0) {
+ $('div#targyakUp').hide();
+ $(this).stop();
+ } else {
+ $('div#targyakUp').show();
+ $(this).stop().animate({ scrollTop: 0 }, 5000);
+ }
+ } else if (position > 0.75) {
+ $('div#targyakUp').hide();
+ if ($('div#targyak').scrollTop() == h) {
+ $('div#targyakDown').hide();
+ $(this).stop();
+ } else {
+ $('div#targyakDown').show();
+ $(this).stop().animate({ scrollTop: h }, 5000);
+ }
+ } else {
+ $('div#targyakUp').hide();
+ $('div#targyakDown').hide();
+ $(this).stop();
+ }
+ });
+
+
+});
+
+
+
+
+
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js
new file mode 100644
index 00000000..7556f12b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetJovahagyas.jquery.min.js
@@ -0,0 +1,18 @@
+
+showUpdateLayer = function() {
+ $('#updateWindow').show();
+ $('updateForm').prop('tabindex',1);
+ $('updateForm').focus();
+}
+hideUpdateLayer = function() {
+ $('#tanmenet tr').removeClass('aktiv');
+}
+
+$(function() {
+
+ $('#tanmenet tr a').click(function(event) {
+ var element = $(event.target).closest('tr');
+ $('#tanmenet tr').removeClass('aktiv');
+ element.addClass('aktiv');
+ });
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js
new file mode 100644
index 00000000..68151721
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetModositas.jquery.min.js
@@ -0,0 +1,126 @@
+
+$(function() {
+ initTemakorLista();
+ // mozgatás
+ $('#temakor').sortable({ axis: 'y', containment: "#temakor", handle: "span.handle", items: ".sortable", scroll: false,
+ placeholder: "sortable-placeholder" ,
+ cursor:'move',
+ opacity:0.2,
+ stop: function(event, ui) { initTemakorLista(); $('form[name=tanmenetMod]').trigger('change'); }
+ } );
+ // törlés
+ $('body').click(function(event) {
+ var element = $(event.target);
+ if (element.hasClass('close')) {
+ element.closest('li').remove();
+ initTemakorLista();
+ $('form[name=tanmenetMod]').trigger('change');
+ }
+ });
+ // óraszám vagy szöveg módosítás
+ $('body').change(doOnTemakorChange);
+ // a textarea kinyitása és visszacsukása
+ $('#temakor textarea').focus(function(event) {
+ $(event.target).css({ 'background-color': '#eed', 'height': '100px' });
+ }).blur(function(event) {
+ $(event.target).css({ 'background-color': '#fff', 'height': '50px' });
+ });
+
+});
+
+
+initTemakorLista = function() {
+
+ var oraszam = 0;
+ var maxoraszam = parseInt($('#tanmenetOraszam').val());
+ // Az eddigi összóraszám meghatározása
+ var osszoraszam = 0;
+ $('span.handle').each(
+ function(index, elem) {
+ selectElem = $(elem).closest('li').find('select'); textElem = $(elem).closest('li').find('textarea');
+ if (selectElem.val() != '0' && textElem.val() != '') osszoraszam = osszoraszam+parseInt(selectElem.val());
+ }
+ );
+ var szabadoraszam = maxoraszam-osszoraszam;
+ if (szabadoraszam<0) szabadoraszam=0;
+
+ // Az egyes témakörök sorainak beállítása
+ $('span.handle').each(
+ function(index, elem) {
+
+ elem = $(elem); selectElem = elem.closest('li').find('select');
+ textElem = elem.closest('li').find('textarea'); oraszamSpan = elem.closest('li').find('span.oraszam');
+ if (selectElem.val() != '0' && textElem.val() != '') { // Már kitöltött témakör esetén
+ // Mivel nem tudjuk, hogy korábban milyen osztályba volt sorolva ezért mindkét osztályból eltávolítjuk
+ oraszamSpan.removeClass('jo'); // jo: még belefér az óraszámba
+ oraszamSpan.removeClass('nagy'); // nagy: már nem fér bele az óraszámba
+ // A témakör által lefoglalt órák kiírása
+ oraszamSpan.html( (oraszam+1) );
+ oraszam = oraszam+parseInt( selectElem.val() );
+ oraszamSpan.append('-'+oraszam);
+ // osztályokba sorolás
+ if (oraszam > maxoraszam) oraszamSpan.addClass('nagy'); // már nem fér bele a tanmenet óraszámába
+ else oraszamSpan.addClass('jo'); // még belefér a tanmenet óraszámába
+ // Az oraszám-select érvényes óraszámokra való leszűkítése
+ value = parseInt(selectElem.val());
+ selectElem[0].options.length = 0;
+ for (k=0; k<value+szabadoraszam+1; k++) {
+ selectElem[0].options[k] = new Option(k, k, (k==value), (k==value));
+ }
+ } else { // Az üres, utolsó bejegyzés beállítása
+ if (oraszam < maxoraszam) { // ha van még szabad óra
+ // A hátralévő, szabad órák kiírása
+ oraszamSpan.html( (oraszam+1) );
+ oraszamSpan.append( '-'+maxoraszam );
+ textElem.prop('disabled', false); // Az esetleg korábban letiltott textarea elem engedélyezése
+ } else {
+ oraszamSpan.html('-'); // nincs már szabad óra
+ textElem.prop('disable', true); // textarea elem letiltása - nem lehet felvenni újabb témakört
+ }
+ // A fennmaradt szabad óraszámhoz igazítás
+ selectElem[0].options.length = 0;
+ for (k=0; k<szabadoraszam+1; k++) {
+ selectElem[0].options[k] = new Option(k, k, (k==0), (k==0));
+ }
+ }
+ }
+ );
+
+}
+
+//
+// Ha változik valamelyik témakör szövege, vagy óraszáma, akkor fut le ez a függvény
+//
+doOnTemakorChange = function(event) {
+
+ var element = $(event.target);
+ // Óraszzámváltozáskor újrainicializáljuk a listát...
+ if (element.hasClass('temakorOraszam')) {
+ initTemakorLista();
+ }
+ // Új témakör felvételekor
+ if (element.hasClass('uj')) {
+ spanElement = element.closest('li').find('span.oraszam');
+ selectElement = spanElement.next('select');
+ textElement = selectElement.next('textarea');
+ if (selectElement.val() != '0' && textElement.val() != '') { // Ha érvényes bejegyzés keletkezett
+ // Létrehozunk egy új, üres témakör-beviteli lehetőséget
+ newLi = element.closest('li').clone();
+ // Az eddigi 'uj' mostantól már nem új...
+ selectElement.removeClass('uj');
+ textElement.removeClass('uj');
+ // hanem egy érvényes témakör -aminek óraszámát figyelembe kell venni
+ selectElement.addClass('temakorOraszam');
+ // és a bejegyzést mozgathatóvá, rendezhetővé kell tenni
+ element.closest('li').addClass('sortable');
+ // Az új elemet felvesszük a lista végére
+ element.closest('ul').append(newLi);
+ $(newLi).find('select').focus();
+ // inicializáljuk a listát - hisz lett egy új érvényes óraszámunk
+ initTemakorLista();
+ }
+ }
+
+}
+
+
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js
new file mode 100644
index 00000000..b91e46e8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/tanmenet/tanmenetTankor.jquery.min.js
@@ -0,0 +1,93 @@
+
+$(function() {
+
+ $('input.info').click(function(event) {
+
+ var elem = $(event.target);
+ var elemInform = $('#inform');
+ $('#informTanmenetId').val( elem.closest('td').find('select').val() );
+ if ($('#informTanmenetId').val() != '') {
+ updateForm(elemInform, elem);
+ elemInform.closest('div').show().draggable({ handle: '#infodivheader' }
+ );
+ } else {
+ alert('Válassz tanmenetet');
+ }
+ return false;
+
+ });
+ $('#infodivclose').click(function() { $('#infodiv').hide(); });
+ $('form.tanmenet select').change(function(event) {
+ var elem = $(event.target);
+ elem.removeClass('uj kesz jovahagyott publikus elavult');
+ elem.addClass(elem.find('option:selected').prop('class'));
+ });
+/* Ezt nem értem mit is akart csinálni...
+ $('.onChangeUpdateGomb').change(
+ var elem = $(event.target);
+// var optionElem = $(elem.options[ elem.selectedIndex ]);
+// var statusz = optionElem.getAttribute('class');
+ var elemInform = $('#inform');
+ $('#informTanmenetId').val(elem.val());
+ updateForm(elemInform, elem);
+ return false;
+ );
+*/
+
+});
+
+
+/*
+Event.observe(window, 'load', myPSFLoader, false);
+
+ doShowInfo = function(event) {
+
+ var elem = $(Event.element(event));
+
+ if (elem.hasClassName('info')) {
+ var elemInform = $('inform');
+ $('informTanmenetId').value = $F(elem.previous('select'));
+ if ($('informTanmenetId').value != '') {
+ updateForm(elemInform, elem);
+Effect.Grow('infodiv');
+// elemInform.up('div').show();
+ } else {
+ alert('Válassz tanmenetet');
+ }
+ Event.stop(event);
+ }
+
+ }
+
+ doHideInfo = function(event) {
+
+ var elemInform = $('inform');
+ Effect.Shrink('infodiv');
+// elemInform.up('div').hide();
+
+ }
+
+ doOnTanmenetChange = function(event) {
+ var elem = $(Event.element(event));
+
+ if (elem.hasClassName('onChangeUpdateGomb')) {
+ var optionElem = $(elem.options[ elem.selectedIndex ]);
+ var statusz = optionElem.getAttribute('class');
+ var elemInform = $('inform');
+ $('informTanmenetId').value = $F(elem);
+ updateForm(elemInform, elem);
+
+ }
+ }
+
+function myPSFLoader(evt) {
+
+ Event.observe(document.body, 'click', doShowInfo);
+ Event.observe('infodivclose', 'click', doHideInfo);
+
+ Event.observe(document.body, 'mayor:change', doOnTanmenetChange);
+ Event.observe(document.body, 'change', doOnTanmenetChange);
+var mydrag = new Draggable('infodiv', { scroll: window, handle: $('infodivheader') });
+
+}
+*/ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js
new file mode 100644
index 00000000..acbca5ae
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js
@@ -0,0 +1,63 @@
+$(document).ready(function() {
+// $('#postazoButton').hide();
+ $('body').bind('keyup', function(evt) {
+ var keyupTarget = $(evt.target);
+ if (keyupTarget.attr('id')=='postazoTxt') {
+ var checklength = keyupTarget.val().length;
+ if(checklength && $('#cimzett').val()!=''){
+ $("#postazoButton").show();
+ } else {
+// $("#postazoButton").hide();
+ }
+ }
+ if (keyupTarget.attr('id')=='pattern') {
+ $('#pattern').parent().find('button').show('fast');
+ }
+ });
+ $('#uzenoKereso').change(function(event) {
+ var element = $(event.target);
+ if( element.attr('id') == 'cimzett') {
+ if( element.val()!='' && $('#postazoTxt').val().length>0 ) {
+ $('#postazoButton').show();
+ } else {
+// $('#postazoButton').hide();
+ }
+ }
+// element.closest('table').find('select').prop('selectedIndex',0);
+// element.closest('table').find('form').submit();
+ });
+
+ $('body').bind('click', function(evt) {
+ var uzenoClickedId = $(evt.target).attr('id');
+ switch(uzenoClickedId) {
+ case 'uzenoSearchIcon':
+ $('#pattern').toggle('fast').focus();
+ break;
+ case 'pattern':
+// $('#postazoButton').hide();
+// $('#txt').hide();
+// $('#cimzett').selectedIndex=0;
+// $('#cimzett').attr('disabled','disabled');
+ break;
+ case 'postazoButton':
+ $('#postazoButton').disabled=true;
+ $('#postazoHash').val('submit');
+ break;
+ case 'cimzett':
+// $('shTipus').update($F('cimzett'));
+// $('#cimzett').attr('title',$F('cimzett'));
+ break;
+ case 'uzenoTxt':
+ break;
+ case 'postazoTxt':
+ if ($("#cimzett option").length==2) {
+ var v = ($("#cimzett option:eq(1)")).attr('selected','selected');
+ $('#postazoButton').show();
+ }
+ break;
+ default:
+ break;
+ }
+ });
+
+});
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.js b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.js
new file mode 100644
index 00000000..edfefcee
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/postas.js
@@ -0,0 +1,54 @@
+
+Event.observe(document.body, 'mayor:change', uzenoCheck);
+Event.observe(document.body, 'change', uzenoCheck);
+
+function uzenoCheck(evt) {
+
+ Event.observe('postazoButton', 'click', disableButton);
+
+ var element = $(Event.element(evt));
+ var thisid = (element.getAttribute('id'));
+ switch(thisid) {
+ case 'pattern':
+ $('postazoButton').hide();
+ $('postazoTxt').hide();
+ $('cimzett').selectedIndex=0;
+ $('cimzett').disable();
+ break;
+ case 'postazoButton': // ezt nem kapja el, nem change esemény
+ $('postazoButton').disabled=true;
+ $('postazoHash').setValue('submit');
+ break;
+ case 'cimzett':
+// $('shTipus').update($F('cimzett'));
+ $('cimzett').setAttribute('title',$F('cimzett'));
+ break;
+ case 'postazoTxt':
+ break;
+ default:
+ break;
+ }
+
+ if ($('cimzett').selectedIndex!=0 && $('cimzett').value!='') {
+ $('postazoButton').show();
+ $('postazoTxt').show().focus();
+ } else {
+ $('postazoButton').hide();
+ $('postazoTxt').hide();
+ }
+
+ //Element.addClassName($('uzenoPostazo'), 'csoport');
+
+}
+
+function disableButton(evt) {
+ var element = $(Event.element(evt));
+ if ($('postazoTxt').value!='') {
+ var element = $(Event.element(evt));
+ $('postazoHash').setValue('submit');
+ $('postazoButton').disabled=true;
+ element.up('form').submit();
+ } else {
+ Event.stop(evt);
+ }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js
new file mode 100644
index 00000000..5a9d7121
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.jquery.min.js
@@ -0,0 +1,23 @@
+
+$(document).ready(function() {
+ $.holdReady(true);
+ var r = Math.floor(Math.random()*100);
+ $.getScript("skin/classic/module-naplo/javascript/uzeno/postas.jquery.min.js?rand="+r).done(function() {
+ $.holdReady(false);
+ });
+ $('#postazoButton').show();
+
+// disabled by konczy
+// $('.uzenet').click(function(event) {
+// var mId = $(this).parent('tr').attr('id');
+// $('#uzenetek').find('tbody tr:not(#'+mId+')').fadeToggle(200);
+// });
+
+});
+
+function checkCR(evt) {
+ var evt = (evt) ? evt : ((event) ? event : null);
+ var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+ if ((evt.keyCode == 13) && (node.type=="text") && (node.id=="pattern")) {return false;}
+}
+document.onkeypress = checkCR;
diff --git a/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js
new file mode 100644
index 00000000..982aad8d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-naplo/javascript/uzeno/uzeno.js
@@ -0,0 +1,33 @@
+
+Event.observe(window, 'load', uzenoPSFLoader);
+
+function uzenoPSFLoader(evt) {
+
+ var r = Math.floor(Math.random()*100);
+ includeJS('skin/classic/module-naplo/javascript/uzeno/postas.js?'+r);
+
+/*
+ $('cimzettTipus').observe('change', function(event) {
+
+ var someNodeList = $(Event.element(event)).getElementsByTagName('option');
+
+ $A(someNodeList).each(function(node){
+ if (node.selected==true) $(node.value+'Id').show();
+ else $(node.value+'Id').hide();
+ });
+
+ });
+*/
+ function checkCR(evt) {
+ var evt = (evt) ? evt : ((event) ? event : null);
+ var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+ if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
+ }
+ document.onkeypress = checkCR;
+/*
+var a = document.createElement('script');
+a.setAttribute('type', 'text/javascript');
+a.setAttribute('src', 'skin/classic/module-naplo/javascript/uzeno/postas.js');
+a.insert(document.head);
+*/
+}
diff --git a/mayor-orig/www/skin/classic/module-password/css/password.css b/mayor-orig/www/skin/classic/module-password/css/password.css
new file mode 100644
index 00000000..b1550dbb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-password/css/password.css
@@ -0,0 +1,19 @@
+
+h1.changePassword {
+ text-align: center;
+}
+
+table.changePassword {
+ border: solid 1px rgb(85, 85, 80);
+ background-color: #eeeeee;
+ width:350px;
+}
+table.changePassword thead tr th {
+ height:30px;
+ background-color: rgb(102, 102, 144);
+ color:white;
+ border-bottom: solid 1px white;
+}
+table.changePassword tr td { padding: 2px 10px; height:20px;}
+table.changePassword tr td input { font-size:14px; }
+table.changePassword tfoot tr th { background-color: rgb(136, 136, 128); }
diff --git a/mayor-orig/www/skin/classic/module-password/html/changeMyPassword.phtml b/mayor-orig/www/skin/classic/module-password/html/changeMyPassword.phtml
new file mode 100644
index 00000000..20680e8e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-password/html/changeMyPassword.phtml
@@ -0,0 +1,76 @@
+<?php
+
+ function putChangePasswordForm($userAccount, $toPolicy) {
+
+ global $POLICIES, $AUTH;
+
+ echo '<h1 class="changePassword">'._CHANGE_PASSWORD.'</h1>'."\n";
+ formBegin(array(
+ 'action'=>location('index.php?page=password&f=changeMyPassword'),
+ 'id'=>'changeMyPassword'
+ ));
+ echo '<input type="hidden" name="action" value="changePassword" />';
+
+ echo '<table cellspacing="0" cellpadding="1" align="center" class="changePassword">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="2">'."\n";
+ echo _CHANGE_PASSWORD;
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="2">'."\n";
+ echo '<input type="submit" tabindex="5" name="button" value=" '. _OK .' " class="submit" />'."\n";
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _USERNAME;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="userAccount" type="hidden" name="userAccount" value="'.$userAccount.'" maxlength="32" />'."\n";
+ echo $userAccount;
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo constant('_'.strtoupper($toPolicy).'_PASSWORD');
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="userPassword" type="password" accesskey="p" tabindex="2" name="userPassword" value="" maxlength="20" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _NEW_PASSWORD;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="newPassword" type="password" accesskey="n" tabindex="3" name="newPassword" value="" maxlength="20" />';
+ // echo '<span style="float:right;" id="complexity-bar" class="progress-bar progress-bar-danger" role="progressbar" style="width: 0%;"></span>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _VERIFICATION;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="verification" type="password" accesskey="v" tabindex="4" name="verification" value="" maxlength="20" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-password/html/changePassword.phtml b/mayor-orig/www/skin/classic/module-password/html/changePassword.phtml
new file mode 100644
index 00000000..87f34b3c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-password/html/changePassword.phtml
@@ -0,0 +1,89 @@
+<?php
+
+ function putChangePasswordForm($userAccount, $toPolicy, $forcePolicy = false) {
+
+ global $POLICIES, $AUTH;
+
+ echo '<h1 class="changePassword">'._CHANGE_PASSWORD.'</h1>'."\n";
+ formBegin(array('action'=>location('index.php?page=password&f=changePassword')));
+
+ echo '<input type="hidden" name="action" value="changePassword" />';
+
+ echo '<table cellspacing="0" cellpadding="1" align="center" class="changePassword">'."\n";
+ echo '<thead>'."\n";
+ if ($forcePolicy) {
+ echo '<tr>'."\n";
+ echo '<th colspan="3">'."\n";
+ echo constant('_'.strtoupper($toPolicy).'_PASSWORD');
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />'."\n";
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ }
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="3">'."\n";
+ echo '<input type="submit" tabindex="3" name="button" value=" '. _OK .' "
+ onclick="document.loginablak.button.disabled=true;
+ document.loginablak.button.value=\' Várj... \';
+ document.loginablak.submit()" class="submit" />'."\n";
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _USERNAME;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="userAccount" type="text" accesskey="l" tabindex="1" name="userAccount" value="'.$userAccount.'" maxlength="32" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ if (!$forcePolicy) { // rögzített policy esetén nem kell jelszót megadni
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo '<select class="pp" name="toPolicy">'."\n";
+ $SEL = array($toPolicy => ' selected="selected" ');
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.$_policy.'" '.$SEL[$_policy].'>';
+ echo constant('_'.strtoupper($_policy).'_PASSWORD');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="userPassword" type="password" accesskey="p" tabindex="2" name="userPassword" value="" maxlength="20" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _NEW_PASSWORD;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="newPassword" type="password" accesskey="n" tabindex="3" name="newPassword" value="" maxlength="20" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _VERIFICATION;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="verification" type="password" accesskey="v" tabindex="3" name="verification" value="" maxlength="20" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-password/html/resetPassword.phtml b/mayor-orig/www/skin/classic/module-password/html/resetPassword.phtml
new file mode 100644
index 00000000..038effb6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-password/html/resetPassword.phtml
@@ -0,0 +1,79 @@
+<?php
+
+ function putResetPasswordForm($ADAT) {
+
+ global $POLICIES, $AUTH;
+
+ $toPolicy = $ADAT['policy'];
+ $userAccount = $ADAT['userAccount'];
+
+ echo '<h1 class="changePassword">'._RESET_PASSWORD.'</h1>'."\n";
+
+ formBegin(array('action'=>location('index.php?page=password&f=resetPassword')));
+ echo '<input type="hidden" name="action" value="resetPassword" />';
+ echo '<input type="hidden" name="selector" value="'.$ADAT['selector'].'" />';
+ echo '<input type="hidden" name="validator" value="'.$ADAT['validator'].'" />';
+
+ echo '<table cellspacing="0" cellpadding="1" align="center" class="changePassword">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="3">'."\n";
+ echo constant('_'.strtoupper($toPolicy).'_PASSWORD');
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />'."\n";
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="3">'."\n";
+ echo '<input type="submit" tabindex="3" name="button" value=" '. _OK .' "
+ class="submit" />'."\n";
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+/*
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _USERNAME;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="userAccount" type="text" readonly="readonly" tabindex="1" name="userAccount" value="'.$userCn.'" maxlength="32" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+*/
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _USERNAME;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="userAccount" type="text" readonly="readonly" tabindex="1" name="userAccount" value="'.$userAccount.'" maxlength="32" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _NEW_PASSWORD;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="newPassword" type="password" accesskey="n" tabindex="3" name="newPassword" value="" maxlength="20" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo _VERIFICATION;
+ echo '</td>'."\n";
+ echo '<td>'."\n";
+ echo '<input id="verification" type="password" accesskey="v" tabindex="3" name="verification" value="" maxlength="20" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-password/javascript/changeMyPassword.jquery.min.js b/mayor-orig/www/skin/classic/module-password/javascript/changeMyPassword.jquery.min.js
new file mode 100644
index 00000000..e672f080
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-password/javascript/changeMyPassword.jquery.min.js
@@ -0,0 +1,27 @@
+// $(function() {
+// var myPasswordComplex = false;
+// $('#changeMyPassword').submit(function() {
+// if (myPasswordComplex && ($('#newPassword').val() == $('#verification').val())) this.submit();
+// else return false;
+// });
+// var defaultComplexity = {
+// minimumChars:7,
+// strengthScaleFactor:0.5
+// };
+// $("#newPassword").complexify(defaultComplexity, function (valid, complexity)
+// {
+// //console.log("Password complexity: " + complexity + " " + valid);
+// var progressBar = $('#complexity-bar');
+// //progressBar.toggleClass('progress-bar-success', valid);
+// //progressBar.toggleClass('progress-bar-danger', !valid);
+// //progressBar.css({'width': complexity + '%'});
+// $('#complexity-bar').text(Math.round(complexity) + '%');
+// myPasswordComplex = valid;
+// });
+// });
+//
+// // complexify plugin
+// !function(a){a.fn.extend({complexify:function(b,c){function h(a,b){for(var c=a.length-1;c>=0;c--)if(b[0]<=a.charCodeAt(c)&&a.charCodeAt(c)<=b[1])return b[1]-b[0]+1;return 0}function i(c){if("strict"===b.banMode){for(var d=0;d<b.bannedPasswords.length;d++)if(-1!==c.toLowerCase().indexOf(b.bannedPasswords[d].toLowerCase()))return!0;return!1}return a.inArray(c,b.bannedPasswords)>-1?!0:!1}function j(){var g=a(this).val(),j=0,k=!1;if(i(g))j=1;else for(var l=f.length-1;l>=0;l--)j+=h(g,f[l]);j=Math.log(Math.pow(j,g.length))*(1/b.strengthScaleFactor),k=j>d&&g.length>=b.minimumChars,j=100*(j/e),j=j>100?100:j,c.call(this,k,j)}var d=49,e=120,f=[[32,32],[48,57],[65,90],[97,122],[33,47],[58,64],[91,96],[123,126],[128,255],[256,383],[384,591],[592,687],[688,767],[768,879],[880,1023],[1024,1279],[1328,1423],[1424,1535],[1536,1791],[1792,1871],[1920,1983],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3456,3583],[3584,3711],[3712,3839],[3840,4095],[4096,4255],[4256,4351],[4352,4607],[4608,4991],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[7680,7935],[7936,8191],[8192,8303],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703],[8704,8959],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[10240,10495],[11904,12031],[12032,12255],[12272,12287],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12592,12687],[12688,12703],[12704,12735],[12800,13055],[13056,13311],[13312,19893],[19968,40959],[40960,42127],[42128,42191],[44032,55203],[55296,56191],[56192,56319],[56320,57343],[57344,63743],[63744,64255],[64256,64335],[64336,65023],[65056,65071],[65072,65103],[65104,65135],[65136,65278],[65279,65279],[65280,65519],[65520,65533]],g={minimumChars:8,strengthScaleFactor:1,bannedPasswords:window.COMPLEXIFY_BANLIST||[],banMode:"strict"};return a.isFunction(b)&&!c&&(c=b,b={}),b=a.extend(g,b),this.each(function(){a(this).val()&&j.apply(this)}),this.each(function(){a(this).bind("keyup focus input propertychange mouseup",j)})}})}(jQuery);
+//
+// -- disabled
+ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/accountInfo.css b/mayor-orig/www/skin/classic/module-session/css/accountInfo.css
new file mode 100644
index 00000000..9259e788
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/accountInfo.css
@@ -0,0 +1,100 @@
+
+ table.personalSettings {
+ background-color: rgb(220,220,220);
+ color: white;
+ margin-top: 20px;
+ }
+
+ table.personalSettings thead th {
+ background-color: rgb(60,20,100);
+ padding: 5px 40px 5px 40px;
+ }
+
+ table.personalSettings thead th.policy {
+ background-color: rgb(225,125,25);
+ }
+
+ table.personalSettings tfoot th {
+ background-color: rgb(60,20,100);
+ }
+
+ table.personalSettings tbody td {
+ background-color: rgb(200,200,210);
+ }
+
+ table.personalSettings tbody th {
+ width: 100px;
+ background-color: rgb(120,120,140);
+ }
+
+/* ------------------------- */
+
+
+ table.changePassword {
+ margin-top: 20px;
+ background-color: rgb(220,220,220);
+ color: white;
+ }
+
+ table.changePassword thead th {
+ background-color: rgb(60,20,100);
+ padding: 5px 40px 5px 40px;
+ }
+
+ table.changePassword tfoot th {
+ background-color: rgb(60,20,100);
+ }
+
+ table.changePassword tbody td {
+ background-color: rgb(200,200,210);
+ }
+
+ table.changePassword tbody th {
+ width: 100px;
+ background-color: rgb(120,120,140);
+ }
+
+/* WALL */
+
+ div#wall {
+ text-align:center;
+ }
+
+ div#wall table {
+ margin: 20px auto;
+ background-color: rgb(220,220,220);
+ color: white;
+ }
+
+ div#wall table thead th {
+ background-color: rgb(60,20,100);
+ padding: 5px 40px 5px 40px;
+ }
+
+ div#wall table tfoot th {
+ background-color: rgb(60,20,100);
+ }
+
+ div#wall table tbody td {
+ background-color: rgb(200,200,210);
+ }
+
+ div#wall table tbody th {
+ width: 100px;
+ background-color: rgb(120,120,140);
+ }
+
+ div.wall {
+ margin:20px auto;
+ border: solid 2px #887780;
+ background-color: #eedde0;
+ color: black;
+ width:400px;
+ padding:5px;
+ }
+ div.centro { text-align: center; }
+ div.wall { text-align: left; }
+ div.wall h1 { font-size:larger; margin:0px; padding-bottom: 5px;}
+ div.wall h2 { font-size:smaller; margin:0px; padding:0px; text-align: right;}
+ div.wall img { border: none; top:5px; right:5px; float:right; }
+
diff --git a/mayor-orig/www/skin/classic/module-session/css/admin/knownNodes.css b/mayor-orig/www/skin/classic/module-session/css/admin/knownNodes.css
new file mode 100644
index 00000000..f61a0b60
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/admin/knownNodes.css
@@ -0,0 +1,14 @@
+
+form#search { background-color: #eee; padding: 5px; text-align: center; margin: 10px auto; width: 400px; }
+form#search h3 { border-bottom: 1px solid #600; padding: 2px 10px; margin: 10px 40px; }
+form#search label { margin-right: 5px; }
+form#search input { margin-left: 10px; }
+
+table#nodes { background-color: white; border: solid 1px #ddd; border-spacing: 0px; margin: auto; }
+table#nodes td, table#nodes th { border: solid 1px #ddd; padding: 2px 5px; }
+table#nodes tr.fejlesztoi td { background-color: #060; color: white; }
+table#nodes tr.fenntarto td { background-color: #006; color: white; }
+table#nodes tr.controller td { background-color: #600; color: white; }
+table#nodes tr.backup td { background-color: #630; color: white; }
+table#nodes td input.pong { background-color: #282; color: white; }
+table#nodes td input.delete { background-color: #d00; color: white; }
diff --git a/mayor-orig/www/skin/classic/module-session/css/admin/registration.css b/mayor-orig/www/skin/classic/module-session/css/admin/registration.css
new file mode 100644
index 00000000..d951061d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/admin/registration.css
@@ -0,0 +1,54 @@
+
+
+ form.reg { background-color: #d2dfe9; margin:40px; text-align: center; border: 5px solid #c2cfd9; background-color: #68a; border-color: #79b; }
+ form#modForm.reg { background-color: #8b9; border-color: #6a8; }
+
+ form.reg > div.adatok, div#bal > div { border: solid 1px white; background-color: #428fa9; color: white; background-color: #246;}
+ form#modForm.reg > div.adatok, form#modForm.reg div#bal > div { background-color: #4a6; color: #600; }
+
+ form.reg div#bal { float: left; }
+ form.reg div.leiras { background-color: #ddd; color: #246; text-align: left; width: 600px; padding: 5px 20px; margin: 0px auto 15px auto; }
+ form.reg div#bal div.leiras { width: 400px; height: 400px; overflow: auto; background-color: #ddd; color: #246; padding: 10px; margin: 0px 20px 10px 0px; text-align: justify; }
+ form#modForm.reg div#bal div.leiras { background-color: #ddd; color: #264; }
+ form.reg div.leiras.offline { font-size: 14px; text-align: left; height:410px;}
+ form.reg div.leiras.offline ol li { padding: 0.3em; }
+
+ form.reg div.tamogatas { background-color: #446; width: 380px; padding: 20px; text-align: center; color: white; }
+ form.reg div.tamogatas input[type=submit] { width: 60%; margin:1em;}
+ form.reg div.tamogatas input[type=text] { width: 60%;}
+ form.reg div.tamogatas select { text-align: right; }
+ form.reg div.tamogatas p.hibaeseten { background-color: white; color: black; padding: 5px; }
+
+ form.reg div.adatok { height: 600px; text-align: left; padding: 10px; margin-bottom: 10px; overflow-y: scroll; }
+ form.reg h3 { text-align: center;background-color: #eee; border-bottom: solid 1px #ff0066; padding: 5px; margin: 0px 0px 2em 0px; color: #246; }
+ form.reg div.adatok label { display: inline-block; text-align: right; padding-right: 5px; width: 250px; }
+
+ form.reg div.adatok input[type=text] { width: 400px; margin-top: 10px; background-color: #ccc; border: solid 1px white;}
+ form.reg div.adatok input[type=text].kotelezo { background-color: white; }
+
+
+ div.validRegisztracio {
+ text-align:center;
+ background-color: lightgreen;
+ margin:40px;
+ height:5em;
+ font-size:large;
+ line-height:5em;
+ vertical-align:middle;
+ color:white;
+ }
+ div.validRegisztracio span { padding-right:10px; }
+
+ div.notValidRegisztracio {
+ text-align:center;
+ background-color: #EE9090;
+ margin:40px;
+ height:5em;
+ font-size:large;
+ line-height:5em;
+ vertical-align:middle;
+ color:white;
+ }
+ div.notValidRegisztracio span { padding-right:10px; }
+
+ h2 { margin-left:40px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/createAccount.css b/mayor-orig/www/skin/classic/module-session/css/createAccount.css
new file mode 100644
index 00000000..6c1e19ca
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/createAccount.css
@@ -0,0 +1,24 @@
+@media screen,print {
+
+ table.new input { border: solid 1px black; }
+
+ table.searchresult { background-color: #aaaaaa; margin-bottom:20px; }
+ table.searchresult thead th { background-color: #d6bddb; height:2em; border-bottom: solid 2px purple; }
+ table.searchresult tfoot th { background-color: purple; }
+ table.searchresult th { background-color: #ffffff; }
+ table.searchresult a { color: black; text-decoration: none; }
+ table.searchresult a:hover { text-decoration: underline; }
+
+ table.new { background-color: #aaaaaa; margin-bottom:20px; margin-top:30px;}
+ table.new thead th { background-color: #ccccee; height:2em; border-bottom: solid 2px purple; }
+ table.new thead td { text-align: center; background-color: #ccccee; height:2em; border-bottom: solid 2px purple; }
+ table.new th { background-color: #ffffff; }
+ table.new td { background-color: #ffffff; }
+ table.new td input { }
+
+ .paros { background-color: #eeeeee; }
+ .paratlan { background-color: #dddddd; }
+
+ table.new input.hiba { outline: solid 1px red; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/createGroup.css b/mayor-orig/www/skin/classic/module-session/css/createGroup.css
new file mode 100644
index 00000000..78e0b4fc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/createGroup.css
@@ -0,0 +1,13 @@
+@media screen,print {
+
+ table.new { background-color: #aaaaaa; margin-bottom:20px;}
+ table.new thead th { background-color: #ccccee; height:2em; border-bottom: solid 2px purple; }
+ table.new thead td { text-align: center; background-color: #ccccee; height:2em; border-bottom: solid 2px purple; }
+ table.new th { background-color: #ffffff; }
+ table.new td { background-color: #ffffff; }
+ table.new td input { width:95%; }
+
+ .paros { background-color: #eeeeee; }
+ .paratlan { background-color: #dddddd; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/download.css b/mayor-orig/www/skin/classic/module-session/css/download.css
new file mode 100644
index 00000000..fddc58c3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/download.css
@@ -0,0 +1,9 @@
+
+ div.download { text-align: center; }
+ div.download h1 { border: black dotted; border-width: 1px 0px; font-size: 14px; width: 60%; margin: 0px auto; }
+ div.download table { margin: 10px auto; background-color: rgb(80,40,40); text-align: left; }
+ div.download table th { padding: 10px; background-color: rgb(200,100,10); color: white; text-align: right; }
+ div.download table td { background-color: rgb(220,220,200); padding: 10px 40px; }
+ div.download table td a { text-decoration: none; color: red; }
+ div.download table td a:hover { text-decoration: underline; }
+ div.download p { background-color: rgb(200,200,160); padding: 20px; width: 60%; margin: 0px auto; }
diff --git a/mayor-orig/www/skin/classic/module-session/css/facebookConnect.css b/mayor-orig/www/skin/classic/module-session/css/facebookConnect.css
new file mode 100644
index 00000000..c8abdba2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/facebookConnect.css
@@ -0,0 +1,25 @@
+div#fbConnect {
+ max-width: 500px;
+ text-align: center;
+ margin: 40px auto;
+ height: 5em;
+ font-size: large;
+ line-height: 5em;
+ vertical-align: middle;
+ color: #FFF;
+}
+div#fbConnect.valid {
+ background-color: #90EE90;
+}
+div#fbConnect.notvalid {
+ background-color: orange;
+}
+div#fbConnect.notActive {
+ background-color: red;
+}
+div#fbConnect.grant {
+ background-color: #3b5998;
+}
+div#fbConnect span {
+ padding-right:4px;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/googleapi.css b/mayor-orig/www/skin/classic/module-session/css/googleapi.css
new file mode 100644
index 00000000..c5cae8c8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/googleapi.css
@@ -0,0 +1,24 @@
+div#googleapi {
+ max-width: 500px;
+ text-align: center;
+ margin: 40px auto;
+ height: 5em;
+ font-size: large;
+ line-height: 5em;
+ vertical-align: middle;
+ color: #FFF;
+}
+div#googleapi.valid {
+ background-color: #90EE90;}
+div#googleapi.notvalid {
+ background-color: orange;
+}
+div#googleapi.notActive {
+ background-color: red;
+}
+div#googleapi.grant {
+ background-color: cornflowerblue;
+}
+div#googleapi span {
+ padding-right:4px;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/groupInfo.css b/mayor-orig/www/skin/classic/module-session/css/groupInfo.css
new file mode 100644
index 00000000..c8f16d61
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/groupInfo.css
@@ -0,0 +1,96 @@
+
+ table.personalSettings {
+ background-color: rgb(220,220,220);
+ color: white;
+ margin-top: 20px;
+ }
+
+ table.personalSettings thead th {
+ background-color: rgb(60,20,100);
+ padding: 5px 40px 5px 40px;
+ }
+
+ table.personalSettings tfoot th {
+ background-color: rgb(60,20,100);
+ }
+
+ table.personalSettings tbody td {
+ background-color: rgb(200,200,210);
+ }
+
+ table.personalSettings tbody th {
+ width: 100px;
+ background-color: rgb(120,120,140);
+ }
+
+/* ------------------------- */
+
+
+ table.changePassword {
+ margin-top: 20px;
+ background-color: rgb(220,220,220);
+ color: white;
+ }
+
+ table.changePassword thead th {
+ background-color: rgb(60,20,100);
+ padding: 5px 40px 5px 40px;
+ }
+
+ table.changePassword tfoot th {
+ background-color: rgb(60,20,100);
+ }
+
+ table.changePassword tbody td {
+ background-color: rgb(200,200,210);
+ }
+
+ table.changePassword tbody th {
+ width: 100px;
+ background-color: rgb(120,120,140);
+ }
+
+/* WALL */
+
+ div#wall {
+ text-align:center;
+ }
+
+ div#wall table {
+ margin: 20px auto;
+ background-color: rgb(220,220,220);
+ color: white;
+ }
+
+ div#wall table thead th {
+ background-color: rgb(60,20,100);
+ padding: 5px 40px 5px 40px;
+ }
+
+ div#wall table tfoot th {
+ background-color: rgb(60,20,100);
+ }
+
+ div#wall table tbody td {
+ background-color: rgb(200,200,210);
+ }
+
+ div#wall table tbody th {
+ width: 100px;
+ background-color: rgb(120,120,140);
+ }
+
+ div.wall {
+ margin:20px auto;
+ border: solid 2px #887780;
+ background-color: #eedde0;
+ color: black;
+ width:400px;
+ padding:5px;
+ }
+ div.centro { text-align: center; }
+ div.wall { text-align: left; }
+ div.wall h1 { font-size:larger; margin:0px; padding-bottom: 5px;}
+ div.wall h2 { font-size:smaller; margin:0px; padding:0px; text-align: right;}
+ div.wall img { border: none; top:5px; right:5px; float:right; }
+
diff --git a/mayor-orig/www/skin/classic/module-session/css/search/searchAccount.css b/mayor-orig/www/skin/classic/module-session/css/search/searchAccount.css
new file mode 100644
index 00000000..5a41b2e9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/search/searchAccount.css
@@ -0,0 +1,31 @@
+@media screen,print {
+
+ input { border: solid 1px black; }
+
+ table.searchresult { background-color: #aaaaaa; margin-bottom:20px; }
+ table.searchresult thead th { background-color: #d6bddb; height:2em; border-bottom: solid 2px purple; }
+ table.searchresult thead th.policy { background-color: rgb(225,125,25); color: white; }
+ table.searchresult tfoot th { background-color: purple; }
+ table.searchresult th { background-color: #ffffff; }
+ table.searchresult a { color: black; text-decoration: none; }
+ table.searchresult a:hover { text-decoration: underline; }
+ table.searchresult td form { display: inline; }
+ table.searchresult td form input { margin: 0px 2px; }
+ table.searchresult td form input:hover { background-color: red; }
+
+ table.newgroup, table.newuser { background-color: #aaaaaa; margin-bottom:20px;}
+ table.newgroup thead th, table.newuser thead th { background-color: #ccccee; height:2em; border-bottom: solid 2px purple; }
+ table.newgroup th, table.newuser th { background-color: #ffffff; }
+ table.newgroup td, table.newuser td { background-color: #ffffff; }
+ table.newgroup td input, table.newuser td input { width:95%; }
+
+ .paros { background-color: #eeeeee; }
+ .paratlan { background-color: #dddddd; }
+
+ table.search { background-color: #aaaaaa; margin-bottom:20px;}
+ table.search thead th { background-color: #ccccee; height:2em; border-bottom: solid 2px purple; }
+ table.search th { background-color: white; }
+ table.search td { background-color: white; }
+ table.search tfoot td { background-color: purple; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/search/searchGroup.css b/mayor-orig/www/skin/classic/module-session/css/search/searchGroup.css
new file mode 100644
index 00000000..4a912bb1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/search/searchGroup.css
@@ -0,0 +1,44 @@
+@media screen,print {
+ /*
+ Module: useradmin
+ */
+
+ table.search { background-color: #aaaaaa; margin-bottom:20px; }
+ table.search thead th {
+ background-color: #ccccee; height:2em;
+ border-bottom: solid 2px purple;
+ }
+ table.search th { background-color: white; }
+ table.search td { background-color: white; }
+ table.search tfoot td { background-color: purple; }
+
+ input { border: solid 1px black; }
+
+ table.searchresult { background-color: #aaaaaa;
+ margin-bottom:20px;
+ }
+ table.searchresult thead th { background-color: #d6bddb; height:2em;
+ border-bottom: solid 2px purple;
+ }
+ table.searchresult tfoot th { background-color: purple; }
+ table.searchresult th { background-color: #ffffff; }
+ table.searchresult a { color: black; text-decoration: none; }
+ table.searchresult a:hover { text-decoration: underline; }
+
+ table.newgroup, table.newuser { background-color: #aaaaaa; margin-bottom:20px;}
+ table.newgroup thead th, table.newuser thead th {
+ background-color: #ccccee; height:2em;
+ border-bottom: solid 2px purple;
+ }
+ table.newgroup th, table.newuser th { background-color: #ffffff; }
+ table.newgroup td, table.newuser td { background-color: #ffffff; }
+ table.newgroup td input, table.newuser td input { width:95%; }
+
+ .paros {
+ background-color: #eeeeee;
+ }
+ .paratlan {
+ background-color: #dddddd;
+ }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/css/sessionAdmin.css b/mayor-orig/www/skin/classic/module-session/css/sessionAdmin.css
new file mode 100644
index 00000000..d1cc5d1a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/css/sessionAdmin.css
@@ -0,0 +1,8 @@
+
+ table.lista { background-color: #aaa; margin: auto; }
+ table.lista thead th, table.lista tfoot th { background-color: rgb(100,40,20); color: white; padding: 2px 5px; }
+ table.lista tbody th, table.lista tbody td { background-color: white; padding: 2px 5px; }
+ table.lista tbody tr:nth-child(even) th, table.lista tbody tr:nth-child(even) td { background-color: #eee; }
+ table.lista tbody tr:hover th, table.lista tbody tr:hover td { background-color: #999; color:white; }
+
+ \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml b/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml
new file mode 100644
index 00000000..35c992f0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/accountInfo.phtml
@@ -0,0 +1,253 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ function putUserSettingsForm($ADAT) {
+ global $SKINSSHOW;
+ formBegin();
+ echo '<input type="hidden" name="action" value="userSettingsModify" />';
+ echo '<table align="center">';
+ echo '<tr>';
+ echo '<th>'._USERDEFAULTSKIN.'</th>';
+ echo '<td>';
+ echo '<select name="changeSkinTo">';
+ echo '<option value=""></option>';
+ foreach($SKINSSHOW as $_skin) {
+ $_SEL = ($_skin == $ADAT['skin']) ? ' selected="selected" ' : '';
+ echo '<option value="'.$_skin.'" '.$_SEL.'>'.$_skin.'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+ echo '<tr><th colspan="2"><input type="submit" value="'._OK.'" /></th></tr>';
+ echo '</table>';
+ formEnd();
+ }
+
+ function putAttr($name, $values, $anAttrDef, $toPolicy = _POLICY) {
+
+ global $AUTH;
+
+ if ($anAttrDef['type'] == 'text') putTextAttr($name, $values, $anAttrDef);
+ elseif ($anAttrDef['type'] == 'int') putTextAttr($name, $values, $anAttrDef);
+ elseif ($anAttrDef['type'] == 'select') putSelectAttr($name, $values, $anAttrDef);
+ elseif ($anAttrDef['type'] == 'radio') putRadioAttr($name, $values, $anAttrDef);
+ elseif ($anAttrDef['type'] == 'timestamp') putTimestampAttr($name, $values, $anAttrDef);
+ elseif ($anAttrDef['type'] == 'image') putImageAttr($name, $userAccount, $anAttrDef);
+ else echo 'Ismeretlen atribútum típus: '.$name.' ('.$anAttrDef[$name]['type'].')';
+
+ }
+
+ function putTextAttr($name, $values, $anAttrDef) {
+ echo '<table class="attr">';
+ echo '<tr>';
+ echo '<th rowspan="'.$values['count'].'">'.$anAttrDef['desc'].'</th>';
+ echo '<td>';
+ for ($i=0;$i<max($values['count'],1);$i++) {
+ if (!isset($values[$i])) $values[$i] = '';
+ if ($anAttrDef['rights'][_ACCESS_AS]=='r')
+ echo $values[$i];
+ elseif ($anAttrDef['rights'][_ACCESS_AS]=='w')
+ echo '<input type="text" name="'.$name.'" value="'.$values[$i].'" />'."<br/>\n";
+ }
+ echo '</td>';
+ echo '</tr>';
+
+ echo '</table>'."\n";
+
+ }
+
+ function putIntAttr($name, $values, $anAttrDef) {
+ putTextAttr($name, $values, $anAttrDef);
+ }
+
+ function putSelectAttr($name, $values, $anAttrDef) {
+
+ echo '<table class="attr">';
+ echo '<tr>';
+ echo '<th>'.$anAttrDef['desc'].' ('.intval($values['count']).'):</th>';
+ echo '<td>';
+ if ($values['count'] > 0) {
+ echo '<select name="del-'.$name.'[]" multiple="multiple">';
+ for ($i=0; $i<$values['count']; $i++) {
+ if (is_array($values[$i]))
+ echo '<option value="'.$values[$i]['value'].'">'.(($values[$i]['txt']!='')?$values[$i]['txt']:$values[$i]['value']).'</option>';
+ else
+ echo '<option value="'.$values[$i].'">'.$values[$i].'</option>';
+ }
+ echo '</select>';
+ } elseif (!isset($values['count']) && count($values) > 0) {
+ echo '<select name="del-'.$name.'[]" multiple="multiple">';
+ for ($i=0; $i < count($values); $i++) {
+ echo '<option value="'.$values[$i]['value'].'">'.(($values[$i]['txt']!='')?$values[$i]['txt']:$values[$i]['value']).'</option>';
+ }
+ echo '</select>';
+ }
+ echo '</td>';
+ echo '</tr>';
+ if ($anAttrDef['rights'][_ACCESS_AS]=='w') {
+ echo '<tr>';
+ echo '<th>'._NEW.':</th>';
+ echo '<td>';
+ if (is_array($values['new'])) {
+ echo '<select name="new-'.$name.'[]">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($values['new']); $i++) {
+ $_txt = (($values['new'][$i]['txt']!='')?$values['new'][$i]['txt']:$values['new'][$i]['value']);
+ echo '<option value="'.$values['new'][$i]['value'].'">'.$_txt.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ } else {
+ echo '<input type="text" name="new-'.$name.'[]" value="" />';
+ }
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</table>'."\n";
+ }
+
+ function putRadioAttr($name, $values, $anAttrDef) {
+
+ if (!isset($values[0])) $values[0] = '';
+
+ echo '<table class="attr">';
+ echo '<tr>';
+ echo '<th>'.$anAttrDef['desc'].':</th>'."\n";
+ echo '<td>'."\n";
+
+ for ($i=0;$i<count($anAttrDef['options']);$i++) {
+ if ($values[0] == $anAttrDef['options'][$i]) {
+ echo '<input type="radio" name="'.$name.'" value="'.$anAttrDef['options'][$i].'" checked="checked" />';
+ } else {
+ echo '<input type="radio" name="'.$name.'" value="'.$anAttrDef['options'][$i].'" />';
+ }
+ echo $anAttrDef['options'][$i];
+ }
+ echo '</td>';
+
+ echo '</tr>';
+ echo '</table>';
+ }
+
+ function putTimestampAttr($name, $values, $anAttrDef) {
+
+ if (!isset($values[0])) $values[0] = '';
+ $Y = substr($values[0],0,4);
+ $m = substr($values[0],4,2);
+ $d = substr($values[0],6,2);
+
+ echo '<table class="attr">';
+ echo '<tr>';
+ echo '<th>'.$anAttrDef['desc'].':</th>';
+ echo '<td>';
+
+ if ($anAttrDef['rights'][_ACCESS_AS]=='r') { echo "$Y-$m-$d"; } else {
+
+ echo '<select name="'.$name.'[]">';
+ echo '<option value="">'._YEAR.'</option>';
+ for($i=1950; $i<2050; $i++) {
+ if ($i==$Y) {$_SEL = 'selected="selected"';} else {$_SEL = '';}
+ echo '<option value="'.$i.'" '.$_SEL.'>' .$i. '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '<select name="'.$name.'[]">';
+ echo '<option value="">'._MONTH.'</option>';
+ for($i=1; $i<=12; $i++) {
+ if ($i<10) $i='0'.$i;
+ if ($i==$m) $_SEL = 'selected="selected"'; else $_SEL = '';
+ echo '<option value="'.$i.'" '.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>'."\n";
+ echo '<select name="'.$name.'[]">';
+ echo '<option value="">'._DAY.'</option>';
+ for($i=1; $i<=31; $i++) {
+ if ($i<10) $i='0'.$i;
+ if ($i==$d) $_SEL = 'selected="selected"'; else $_SEL = '';
+ echo '<option value="'.$i.'" '.$_SEL.'>'.$i.'</option>';
+ }
+ echo '</select>'."\n";
+ }
+
+ echo '</td>';
+ echo '</tr>';
+ echo '</table>';
+ }
+
+ function putImageAttr($name, $dn, $anAttrDef) {
+
+ echo '<table class="attr"><tr>';
+ echo '<th><img src="img/'.$name.'.php?dn='.$dn.'" alt="kép" /></th>';
+ echo '<td>'._NEWPHOTO.':<br />';
+ echo '<input type="file" name="'.$name.'" />';
+ echo '</td>';
+ echo '</tr></table>';
+
+ }
+
+ function putAccountInfoForm($userInfo, $accountInfo, $attrDef, $toPolicy = _POLICY) {
+
+ formBegin(array('enctype'=>'multipart/form-data'));
+ echo '<input type="hidden" name="action" value="changeSettings" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo '<input type="hidden" name="userAccount" value="'.$userInfo['userAccount'][0].'" />';
+ echo '<table class="personalSettings" align="center" cellspacing="1">';
+ echo '<thead>';
+ if ($toPolicy != _POLICY) echo '<tr><th class="policy">'.$toPolicy.'</th></tr>'."\n";
+ echo '<tr><th>'.$userInfo['userCn'][0].'</th></tr>';
+ echo '<tr><th>'.$userInfo['userAccount'][0].'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th><input type="submit" name="change" value="'._OK.'" /></th></tr>';
+ echo '</tfoot>';
+ echo '<tbody>'."\n";
+ $emptyAttrs = '';
+ if (is_array($accountInfo)) {
+ reset($accountInfo);
+ foreach ($accountInfo as $name => $value) {
+ if (!isset($value[0]) || $value['count'] == 0) $emptyAttrs .= "$name:";
+ if ($name != 'userAccount') {
+ echo '<tr><td>'; putAttr($name, $value, $attrDef[$name], $toPolicy); echo '</td></tr>'."\n";
+ }
+ }
+ }
+ echo '</tbody>';
+ echo '</table>';
+ if ($emptyAttrs != '') $emptyAttrs = substr($emptyAttrs,0,-1);
+ echo '<input type="hidden" name="emptyAttrs" value="'.$emptyAttrs.'" />';
+ formEnd();
+
+ }
+
+ function putGroupInfoForm($groupCn, $groupInfo, $attrDef, $toPolicy = _POLICY) {
+ formBegin(array('enctype'=>'multipart/form-data'));
+
+ echo '<input type="hidden" name="action" value="changeSettings" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo '<input type="hidden" name="groupCn" value="'.$groupCn.'" />';
+ echo '<table class="personalSettings" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr><th>'.$groupCn.'</th></tr>';
+// echo '<tr><th>'.$userInfo['userAccount'][0].'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th><input type="submit" name="change" value="'._OK.'" /></th></tr>';
+ echo '</tfoot>';
+ echo '<tbody>'."\n";
+ $emptyAttrs = '';
+ if (is_array($groupInfo))
+ foreach ($groupInfo as $name => $value) {
+ if (!isset($value[0]) || $value['count'] == 0) $emptyAttrs .= "$name:";
+ if ($name != 'groupCn') {
+ echo '<tr><td>'; putAttr($name, $value, $attrDef[$name], $toPolicy); echo '</td></tr>'."\n";
+ }
+ }
+ echo '</tbody>';
+ echo '</table>';
+ if ($emptyAttrs != '') $emptyAttrs = substr($emptyAttrs,0,-1);
+ echo '<input type="hidden" name="emptyAttrs" value="'.$emptyAttrs.'" />';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/admin/knownNodes.phtml b/mayor-orig/www/skin/classic/module-session/html/admin/knownNodes.phtml
new file mode 100644
index 00000000..5a759aba
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/admin/knownNodes.phtml
@@ -0,0 +1,70 @@
+<?php
+
+ function putGetNodeData() {
+ formBegin(array('id'=>'search'));
+
+ echo '<h3>'._UJ_VEGPONT.'</h3>';
+ echo '<input type="hidden" name="action" value="getPublicDataByNodeId" />';
+ echo '<label for="nodeId">'._NODEID.'</label>';
+ _inlineHelp(_SUGO_NODEID);
+ echo '<input id="nodeId" type="text" name="nodeId" value="" />';
+ echo '<input type="submit" value="'._LEKERDEZES.'" />';
+
+ formEnd();
+ }
+
+ function putKnownNodes($ADAT) {
+
+ echo '<table id="nodes">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._NODEID.'</th>';
+ echo '<th>'._NEV.'</th>';
+ echo '<th>'._HELYSEG.'</th>';
+ echo '<th>'._NODETIPUS.'</th>';
+ echo '<th>'.'Ping/Rev.'.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th>'._NODEID.'</th>';
+ echo '<th>'._NEV.'</th>';
+ echo '<th>'._HELYSEG.'</th>';
+ echo '<th>'._NODETIPUS.'</th>';
+ echo '<th>'.'Ping/Rev.'.'</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ foreach ($ADAT['nodes'] as $index => $nAdat) {
+ $class = ekezettelen($nAdat['nodeTipus']);
+ echo '<tr class="'.$class.'">';
+ echo '<td>'.$nAdat['nodeId'].'</td>';
+ echo '<td>'.$nAdat['nev'].'</td>';
+ echo '<td>'.$nAdat['cimHelyseg'].'</td>';
+ echo '<td>'.$nAdat['nodeTipus'].'</td>';
+ echo '<td>';
+ formBegin();
+ echo '<input type="hidden" name="action" value="rpcPing" />';
+ echo '<input type="hidden" name="nodeId" value="'.$nAdat['nodeId'].'" />';
+ if (isset($ADAT['nodeVersion']) && $nAdat['nodeId'] == $ADAT['nodeId']) {
+ echo '<input class="pong" type="submit" value="'.$ADAT['nodeVersion'].'" />';
+ } else {
+ echo '<input type="submit" value="ping" />';
+ }
+ formEnd();
+ echo '</td>';
+ echo '<td>';
+ formBegin();
+ echo '<input type="hidden" name="action" value="removeNode" />';
+ echo '<input type="hidden" name="nodeId" value="'.$nAdat['nodeId'].'" />';
+ echo '<input class="delete confirm" title="'._BIZTOS_TOROL_E.'" type="submit" value="X" />';
+ formEnd();
+ echo '</td>';
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/admin/registration.phtml b/mayor-orig/www/skin/classic/module-session/html/admin/registration.phtml
new file mode 100644
index 00000000..094a77d9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/admin/registration.phtml
@@ -0,0 +1,270 @@
+<?php
+
+ function validRegisztracio($valid, $nodeId) {
+
+ if ($valid==1) {
+ echo '<div class="validRegisztracio"><span class="icon-ok-circle"></span>A mayor.hu sikeresen validálta a szervert (nodeId: '.$nodeId.')!</div>';
+ } else {
+ echo '<div class="notValidRegisztracio"><span class="icon-remove-circle"></span>A mayor.hu nem ismeri ezt a szervert (nodeId: '.$nodeId.')!</div>';
+ }
+
+ }
+
+ function putCheckOldReg($ADAT) {
+
+ formBegin(array('method'=>'post','action'=>'','id'=>'regForm','class'=>'reg'));
+ echo '<input type="hidden" name="action" value="checkOldRegByPublicKey" />';
+ echo '<input type="hidden" name="publicKey" value="'.$ADAT['my']['publicKey'].'" />';
+
+ echo '<h3>'._KORABBAN_REGISZTRALT.'</h3>';
+ echo '<div class="leiras">';
+ echo '<p>'.str_replace("\n\n",'</p><p>',_REG_HELYREALLITAS_LEIRAS).'</p>';
+ echo '</div>';
+ echo '<input type="submit" value="'._REGISZTRACIO_HELYREALLITAS.'" />';
+
+ formEnd();
+
+ }
+
+ function putRegisztracio($ADAT) {
+
+ formBegin(array('method'=>'post','action'=>'','id'=>'regForm','class'=>'reg'));
+ echo '<input type="hidden" name="action" value="sendRegRequest" />';
+
+ echo '<div id="bal">';
+ echo '<div class="leiras">';
+ include('static/hu_HU/session/admin/registration/readme.html');
+ echo '</div>'; // leiras
+
+ echo '<div class="tamogatas">'."\n";
+ echo '<label for="dij">'.str_replace(' ','&nbsp;',_TAMOGATASI_OSSZEG).'</label>'."\n";
+ echo '<select name="dij" id="dij">'."\n";
+ foreach ($ADAT['OSSZEG'] as $dij) {
+ echo '<option value="'.$dij.'">'.$dij.' Ft/hó</option>'."\n";
+ }
+ echo '</select> + ÁFA'."<br/>\n";
+
+ echo '<label for="utemezes">'.str_replace(' ','&nbsp;',_UTEMEZES).'</label>';
+ echo '<select name="utemezes" id="utemezes">'."<br/>\n";
+ foreach (array('','féléves','éves') as $value) {
+ echo '<option value="'.$value.'">'.$value.'</option>'."\n";
+ }
+ echo '</select>'."<br/>\n";
+ echo '<label for="egyeb">'.str_replace(' ','&nbsp;',_EGYEB_TAMOGATAS).'</label>';
+ echo '<input id="egyeb" type="text" name="egyebTamogatas" value="" />'."<br/>\n";
+ if (_REGISZTRALT !== true) echo '<input type="submit" value="'._REGISZTRACIO.'" />'."\n";
+ echo '<p class="hibaeseten">'._HIBA_ESETEN.'</p>'."\n";
+ echo '</div>'."\n"; // tamogatar
+ echo '</div>'; // #bal
+
+ echo '<div class="adatok">';
+
+ echo '<h3>'._INTEZMENY_ADATAI.'</h3>';
+ foreach ($ADAT['MEZOK'] as $key => $mAdat) {
+ $value = $ADAT['my'][$key];
+ if (isset($mAdat) && $mAdat['display']!==false) {
+
+ if ($mAdat['kotelezo']===true) $class = 'kotelezo'; else $class = '';
+ if ($mAdat['readonly']===true) $_ro = ' readonly="readonly" '; else $_ro = '';
+ if (defined('_'.nagybetus($key))) $str = constant('_'.nagybetus($key)); else $str = $key;
+
+ echo '<div>';
+ echo '<label for="'.$key.'">'.$str.'</label>';
+ if (is_array($mAdat['options'])) {
+ echo '<select name="'.$key.'" id="'.$key.'" class="'.$class.'">';
+ for($i=0; $i<count($mAdat['options']); $i++) {
+ $__jelleg = $mAdat['options'][$i];
+ $_SEL = ($__jelleg==$value) ? ' selected="selected" ' : '';
+ echo '<option value="'.$__jelleg.'"'.$_SEL.'>'.$__jelleg.'</option>';
+ }
+ echo '</select>';
+ } elseif ($mAdat['type']=='textarea') {
+ echo '<textarea style="width:100%;height:40px;" id="'.$key.'" type="text" name="'.$key.'" value="'.$value.'" class="'.$class.'" '.$_ro.'>';
+ echo $value;
+ echo '</textarea>';
+ } else {
+ echo '<input id="'.$key.'" type="text" name="'.$key.'" value="'.$value.'" class="'.$class.'" '.$_ro.'/>';
+ }
+ echo '</div>'."\n";
+
+ } else {
+ if ($mAdat['type']!='none') {
+ echo '<input type="hidden" name="'.$key.'" value="'.$value.'" />';
+ }
+ }
+ }
+ echo '</div>'."\n";
+
+
+
+
+
+ echo '<input type="submit" value="'._REGISZTRACIO.'" />'."\n";
+ echo '</div>';
+
+ formEnd();
+
+ }
+
+
+
+
+
+
+ function putRegisztracioMod($ADAT) {
+
+ if (defined('_DEVEL') && _DEVEL===true) {
+ $host = 'https://localhost';
+ } else {
+ $host = 'http://www.mayor.hu';
+ }
+ $ADAT['intezmeny']['naploUrl'] = $naploUrl = substr($_SERVER["HTTP_REFERER"], 0, strpos($_SERVER["HTTP_REFERER"], 'index.php?'));
+ formBegin(array('id'=>"modForm", 'class'=>"reg", 'action'=>"", 'method'=>"post"));
+ echo '<input type="hidden" name="action" value="modRegAdat" />';
+
+ echo '<div id="bal">';
+ echo '<div class="leiras">';
+ include('static/hu_HU/session/admin/registration/readme.html');
+ echo '</div>'; //.leiras
+
+ echo '<div class="tamogatas">'."\n";
+ echo '<label for="dij">'.str_replace(' ','&nbsp;',_TAMOGATASI_OSSZEG).'</label>'."\n";
+ echo '<select name="dij" id="dij">'."\n";
+ if ($ADAT['regAdat']['nodeData']['dij'] != '') {
+ $SEL = array($ADAT['regAdat']['nodeData']['dij'] => ' selected="selected" ');
+ if (!in_array($ADAT['regAdat']['nodeData']['dij'], $ADAT['OSSZEG'])) $ADAT['OSSZEG'][] = $ADAT['regAdat']['nodeData']['dij'];
+ } else {
+ $SEL = array(5000 => ' selected="selected" '); // default
+ }
+ foreach ($ADAT['OSSZEG'] as $dij) {
+ echo '<option value="'.$dij.'"'.$SEL[$dij].'>'.$dij.' Ft/hó</option>'."\n";
+ }
+ echo '</select> + ÁFA'."<br/>\n";
+
+ echo '<label for="utemezes">'.str_replace(' ','&nbsp;',_UTEMEZES).'</label>';
+ echo '<select name="utemezes" id="utemezes">'."<br/>\n";
+ foreach (array('','féléves','éves') as $value) {
+ $_SEL = ($value==$ADAT['regAdat']['nodeData']['utemezes'])? ' selected="selected" ':'';
+ echo '<option value="'.$value.'"'.$_SEL.'>'.$value.'</option>'."\n";
+ }
+ echo '</select>'."<br/>\n";
+ echo '<label for="egyeb">'.str_replace(' ','&nbsp;',_EGYEB_TAMOGATAS).'</label>';
+ echo '<input id="egyeb" type="text" name="egyebTamogatas" value="'.$ADAT['regAdat']['nodeData']['egyebTamogatas'].'" />'."<br/>\n";
+ if (_REGISZTRALT !== true) echo '<input type="submit" value="'._MODOSITAS.'" />'."\n";
+ echo '<p class="hibaeseten">'._HIBA_ESETEN.'</p>'."\n";
+ echo '</div>'."\n";
+
+
+ echo '</div>'; // #bal
+
+
+
+ echo '<div class="adatok">';
+ foreach ($ADAT['intezmeny'] as $key => $value) {
+ echo '<input type="hidden" name="'.$key.'" value="'.$value.'" />'."\n";
+ }
+ echo '<input type="hidden" name="naploUrl" value="'.$naploUrl.'" />'."\n";
+
+
+ echo '<h3>'._INTEZMENY_ADATAI.'</h3>';
+ foreach ($ADAT['MEZOK'] as $key => $mAdat) {
+ $value = $ADAT['regAdat']['nodeData'][$key];
+ if (isset($mAdat)) {
+ if ($mAdat['display']!==false) {
+ if ($mAdat['kotelezo']===true) $class = 'kotelezo'; else $class = '';
+ if ($mAdat['readonly']===true) $_ro = ' readonly="readonly" '; else $_ro = '';
+ if (defined('_'.nagybetus($key))) $str = constant('_'.nagybetus($key)); else $str = $key;
+ if ($key == 'publicKey') {
+ echo '<input type="hidden" name="'.$key.'" value="'.$value.'" />'."\n";
+ } else {
+ echo '<div>';
+ echo '<label for="'.$key.'">'.$str.'</label>';
+ if (is_array($mAdat['options'])) {
+ echo '<select name="'.$key.'" id="'.$key.'" class="'.$class.'">';
+ for($i=0; $i<count($mAdat['options']); $i++) {
+ $__jelleg = $mAdat['options'][$i];
+ $_SEL = ($__jelleg==$value) ? ' selected="selected" ' : '';
+ echo '<option value="'.$__jelleg.'"'.$_SEL.'>'.$__jelleg.'</option>';
+ }
+ echo '</select>';
+ } elseif ($mAdat['type']=='textarea') {
+ echo '<textarea style="width:100%;height:40px;" id="'.$key.'" type="text" name="'.$key.'" value="'.$value.'" class="'.$class.'" '.$_ro.'>';
+ echo $value;
+ echo '</textarea>';
+ } else {
+ echo '<input id="'.$key.'" type="text" name="'.$key.'" value="'.$value.'" class="'.$class.'" '.$_ro.'/>';
+ }
+ echo '</div>'."\n";
+ }
+ } else {
+ if ($mAdat['type'] != 'none')
+ echo '<input type="hidden" name="'.$key.'" value="'.$value.'" />'."\n";
+ }
+ }
+ }
+ echo '</div>'."\n";
+
+
+
+
+
+ echo '<input type="submit" value="'._MODOSITAS.'" />'."\n";
+ echo '</div>';
+
+ formEnd();
+ }
+
+
+
+
+
+ function putPublicKey($publicKey) {
+ echo '<h2 style="margin-left: 180px;">Saját publikus kulcs</h2>';
+ echo '<div style="margin-left: 180px; text-align:center">';
+ echo '<textarea style="width:60%; height:200px;">'.$publicKey.'</textarea>';
+ echo '</div>';
+
+ }
+
+ function putSzomszedok($ADAT) {
+
+ $attr = array('OMKod','nev','mayorTipus','naploUrl');
+ $mayorTipus = array(
+ 'fejlesztői' => '<span class="icon-wrench-alt" style="color:orange"></span>',
+ 'fenntartó' => '<span class="icon-compass-alt" style="color:red"></span>',
+ 'intézmény' => '<span class="icon-paper-clip-alt" style="color:cornflowerblue"></span>',
+ 'backup' => '<span class="icon-cog-alt" style="color:#888"></span>',
+ 'boss' => '<span class="icon-star-alt" style="color:lila"></span>'
+ );
+ echo '<h2>MaYoR-partnerek</h2>';
+
+ echo '<table align="center">';
+ echo '<thead>';
+ echo '<tr>';
+ foreach ($attr as $v) {
+ echo '<th>'.$v.'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+ echo '<tbody>';
+ for ($i=0;$i<count($ADAT);$i++) {
+ $_D = $ADAT[$i];
+ echo '<tr>';
+ foreach ($_D as $k=>$v) {
+ if ($k=='publicKey') continue;
+ if ($k=='mayorTipus') echo '<th>'.$mayorTipus[$v].'</th>';
+ if (in_array($k,$attr)) {
+ //echo '<th>'.$k.'</th>';
+ echo '<td>';
+ echo $v;
+ echo '</td>';
+ }
+ }
+ echo '</tr>';
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/createAccount.phtml b/mayor-orig/www/skin/classic/module-session/html/createAccount.phtml
new file mode 100644
index 00000000..a1255ca5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/createAccount.phtml
@@ -0,0 +1,107 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ function putCreateAccountForm($toPolicy = _POLICY, $DEFAULTS = array()) {
+
+ global $attrDef, $AUTH, $POLICIES;
+
+ formBegin(array('enctype'=>'multipart/form-data','id'=>'createAccount'));
+
+ echo '<input type="hidden" name="action" value="newUser" />';
+
+ echo '<table class="new" align="center" cellspacing="1">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">'._CREATE_ACCOUNT.'</th>';
+ echo '</tr>';
+ if (_POLICY=='private') {
+ echo '<tr>';
+ echo '<td colspan="2">';
+ $SEL = array($toPolicy => ' selected="selected" ');
+ echo '<select name="toPolicy" class="onChangeSubmit">'."\n";
+ for ($i = 0; $i < count($POLICIES); $i++) {
+ echo '<option value="'.$POLICIES[$i].'"'.$SEL[$POLICIES[$i]].'>'.$POLICIES[$i].'</option>'."\n";
+ }
+ echo '</select>';
+ echo '</td>'."\n";
+ echo '</tr>';
+ }
+ echo '</thead>'."\n";
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo '<input name="new" type="submit" value="'._OK.'" />';
+ echo '<input name="action" type="hidden" value="createAccount" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+ echo '<tr>';
+ echo '<th>'.$attrDef['userCn']['desc'].':</th>';
+ echo '<td><input type="text" name="userCn" id="focus" value="'.$DEFAULTS['userCn'].'" /></td>';
+ echo '</tr><tr>';
+ echo '<th>'.$attrDef['userAccount']['desc'].':</th>';
+ echo '<td><input type="text" name="userAccount" value="'.$DEFAULTS['userAccount'].'" /></td>';
+ echo '</tr>';
+
+ $CONTAINERS = $AUTH[$toPolicy][$AUTH[$toPolicy]['backend'].'Containers'];
+ if (isset($CONTAINERS) and is_array($CONTAINERS) and count($CONTAINERS) > 0) {
+ echo '<tr>';
+ echo '<th>'._ACCOUNT_CONTAINER.'</th>';
+ echo '<td>';
+ echo '<select name="container">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($CONTAINERS);$i++) {
+ echo '<option value="'.$CONTAINERS[$i].'">'.$CONTAINERS[$i].'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>'."\n";
+ echo '<th>'.$attrDef['userPassword']['desc'].':</th>';
+ echo '<td><input type="password" name="userPassword" value="'.$DEFAULTS['userPassword'].'" /></td>';
+ echo '</tr><tr>'."\n";
+ echo '<th>'._VERIFICATION.':</th>';
+ echo '<td><input type="password" name="verification" value="'.$DEFAULTS['userPassword'].'" /></td>';
+ echo '</tr>'."\n";
+
+ if (isset($AUTH[$toPolicy]['categories']) and is_array($AUTH[$toPolicy]['categories']) and count($AUTH[$toPolicy]['categories']) > 0) {
+ echo '<tr>';
+ echo '<th style="width: 130px;">'._ACCOUNT_CATEGORY.'</th>';
+ echo '<td style="width: 270px;">';
+ echo '<select name="category">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($AUTH[$toPolicy]['categories']);$i++) {
+ echo '<option value="'.$AUTH[$toPolicy]['categories'][$i].'">'.$AUTH[$toPolicy]['categories'][$i].'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ if (is_array($AUTH[$toPolicy]['accountAttrs'])) foreach ($AUTH[$toPolicy]['accountAttrs'] as $key => $attr) {
+ echo '<tr>';
+ echo '<th>'.$attrDef[$attr]['desc'].':</th>';
+ echo '<td><input type="text" name="'.$attr.'" value="'.$DEFAULTS[$attr].'" /></td>';
+ echo '</tr>'."\n";
+ }
+
+ if (_POLICY=='private') {
+ echo '<tr>';
+ echo '<th>'._DATAFILE.':</th>';
+ echo '<td><input type="file" name="file" /></td>';
+ echo '</tr>';
+ }
+
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/createGroup.phtml b/mayor-orig/www/skin/classic/module-session/html/createGroup.phtml
new file mode 100644
index 00000000..b50c52f9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/createGroup.phtml
@@ -0,0 +1,90 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ function putCreateGroupForm($toPolicy = _POLICY) {
+
+ global $attrDef, $AUTH, $POLICIES;
+
+ formBegin(array('enctype'=>'multipart/form-data'));
+ echo '<input type="hidden" name="action" value="newUser" />';
+
+ echo '<table class="new" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="2">'._CREATE_GROUP.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td colspan="2">';
+ $SEL = array($toPolicy => ' selected="selected" ');
+ echo '<select name="toPolicy" class="onChangeSubmit">'."\n";
+ for ($i = 0; $i < count($POLICIES); $i++) {
+ echo '<option value="'.$POLICIES[$i].'"'.$SEL[$POLICIES[$i]].'>'.$POLICIES[$i].'</option>'."\n";
+ }
+ echo '</select>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="2">';
+ echo '<input name="new" type="submit" value="'._OK.'" />';
+ echo '<input name="action" type="hidden" value="createGroup" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th>'.$attrDef['groupCn']['desc'].':</th>';
+ echo '<td><input type="text" name="groupCn" value="" id="focus" /></td>';
+ echo '</tr>';
+ $CONTAINERS = $AUTH[$toPolicy][$AUTH[$toPolicy]['backend'].'Containers'];
+ if (isset($CONTAINERS) and is_array($CONTAINERS) and count($CONTAINERS) > 0) {
+ echo '<tr>';
+ echo '<th>'._GROUP_CONTAINER.':</th>';
+ echo '<td>';
+ echo '<select name="container">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($CONTAINERS);$i++) {
+ echo '<option value="'.$CONTAINERS[$i].'">'.$CONTAINERS[$i].'</option>'."\n";
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ echo '<tr>';
+ echo '<th>'.$attrDef['groupDesc']['desc'].':</th>';
+ echo '<td><input type="text" name="groupDesc" value="" /></td>';
+ echo '</tr><tr>';
+ echo '<th style="width: 130px;">'._GROUP_CATEGORY.'</th>';
+ echo '<td style="width: 270px;">';
+ echo '<select name="category">';
+ echo '<option value=""> - </option>'."\n";
+ for ($i=0;$i<count($AUTH[_POLICY]['categories']);$i++) {
+ echo '<option value="'.$AUTH[_POLICY]['categories'][$i].'">'.$AUTH[_POLICY]['categories'][$i].'</option>';
+ }
+ echo '</select>';
+ echo '</td>';
+ echo '</tr>';
+
+ if (is_array($AUTH[$toPolicy]['groupAttrs'])) foreach ($AUTH[$toPolicy]['groupAttrs'] as $key => $attr) {
+ echo '<tr>';
+ echo '<th>'.$attrDef[$attr]['desc'].':</th>';
+ echo '<td><input type="text" name="'.$attr.'" value="'.$DEFAULTS[$attr].'" /></td>';
+ echo '</tr>'."\n";
+ }
+
+/* echo '<tr>';
+ echo '<th>'._DATAFILE.':</th>';
+ echo '<td><input type="file" name="file" /></td>';
+ echo '</tr>';
+*/ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/download.phtml b/mayor-orig/www/skin/classic/module-session/html/download.phtml
new file mode 100644
index 00000000..79f74f8e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/download.phtml
@@ -0,0 +1,32 @@
+<?php
+
+ function putDownloadForm($ADAT) {
+
+ echo '<div class="download">'."\n";
+ echo '<h1>'._DOWNLOAD.'</h1>'."\n";
+
+ $href = href('index.php?page=session&f=download&dir='.$ADAT['dir'].'&file='.$ADAT['file'].'&download=true');
+ echo '<table>'."\n";
+ echo '<tr>';
+ echo '<th>'._FILE.'</th>'."\n";
+ echo '<td>';
+ echo '<a id="loadUrl" href="'.$href.'">';
+ echo substr($ADAT['path'],strlen(_DOWNLOADDIR.'/'._POLICY.'/'));
+ echo '</a>';
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._SIZE.'</th>'."\n";
+ echo '<td>'.$ADAT['size'].' byte</td>'."\n";
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._MIMETYPE.'</th>'."\n";
+ echo '<td>'.$ADAT['mime'].'</td>'."\n";
+ echo '</tr>';
+ echo '</table>';
+
+ echo '<p>'._DESCRIPTION.'</p>';
+ echo '</div>'."\n";
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/facebookConnect.phtml b/mayor-orig/www/skin/classic/module-session/html/facebookConnect.phtml
new file mode 100644
index 00000000..0e9f3aad
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/facebookConnect.phtml
@@ -0,0 +1,53 @@
+<?php
+
+function putFacebookConnectStatusz($ADAT) {
+
+ if (__FBCONNECT_ENABLED==false) {
+ echo '<div id="fbConnect" class="notActive"><span class="icon-remove-circle"></span>';
+ echo 'A Facebook azonosítás ki van kapcsolva. Kérj segítséget a rendszerüzemeltetőtől!';
+ echo '</div>';
+ return false;
+ }
+
+// var_dump($ADAT);
+// var_dump(_USERACCOUNT);
+// var_dump(_POLICY);
+
+ // fbUserIdStatusz = ready, associated, already_associated
+ if ($ADAT['fbUserIdStatusz'] == 1) {
+ echo '<div id="fbConnect" class="valid"><span class="icon-ok-circle"></span>';
+ echo '<img src="//graph.facebook.com/'.$ADAT['fbUserId'].'/picture?type=large" style="float:left; height:100%">';
+
+ echo 'Már kész, minden rendben!';
+ formBegin();
+ echo '<input type="hidden" name="action" value="revokeFbAuth" />';
+ echo '<input type="submit" value="visszavonás" />';
+ formEnd();
+ echo '</div>';
+ } elseif ($ADAT['fbUserIdStatusz'] == 2) {
+ echo '<div id="fbConnect" class="notvalid"><span class="icon-iphone-home"></span>';
+ echo 'Már más facebook userhez van hozzárendelve az azonosítód!';
+ echo '<input type="hidden" name="action" value="" />';
+ echo '</div>';
+ } elseif ($ADAT['fbUserIdStatusz'] == 3) {
+ echo '<div id="fbConnect" class="notvalid"><span class="icon-iphone-home"></span>';
+ echo 'Ehhez a facebook azonosítóhoz már hozzá van rendelve egy másik MaYoR account!';
+ echo '</div>';
+ } else {
+ echo '<div id="fbConnect" class="grant"><span class="icon-facebook"></span>';
+ echo 'Engedélyezed?';
+ echo '<span id="mglFBconnect"></span>';
+ formBegin(array('id'=>'grantFbAuth'));
+ echo '<input type="hidden" name="action" value="grantFbAuth" />';
+ echo '<input type="submit" value="facebook connect engedélyezés" />';
+ formEnd();
+ echo '</div>';
+ }
+ formBegin(array('style'=>'text-align:center'));
+ echo '<input type="hidden" name="action" value="refresh" />';
+ echo '<input type="submit" value="frissítés" />';
+ formEnd();
+
+}
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/html/googleapi.phtml b/mayor-orig/www/skin/classic/module-session/html/googleapi.phtml
new file mode 100644
index 00000000..4d1109bc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/googleapi.phtml
@@ -0,0 +1,45 @@
+<?php
+
+function putGoogleapiStatusz($ADAT) {
+
+// var_dump($ADAT);
+// var_dump(_USERACCOUNT);
+// var_dump(_POLICY);
+
+ if (__GOOGLEAPI_ENABLED==false) {
+ echo '<div id="googleapi" class="notActive"><span class="icon-remove-circle"></span>';
+ echo 'A Google azonosítás ki van kapcsolva. Kérj segítséget a rendszerüzemeltetőtől!';
+ echo '</div>';
+ return false;
+ }
+
+
+ if ($ADAT['googleapiStatusz'] == 1) {
+ echo '<div id="googleapi" class="valid"><span class="icon-ok-circle"></span>';
+ echo '<img src="'.$ADAT['payload']['picture'].'" style = "float:left; height:100%;" />';
+ echo 'Összekötve';
+ formBegin();
+ echo '<input type="hidden" name="action" value="googleapiRevoke" />';
+ echo '<input type="submit" value="visszavonás" />';
+ formEnd();
+ echo '</div>';
+ } else {
+ echo '<div id="googleapi" class="grant"><span class="icon-googleplus"></span>';
+ echo 'Engedélyezed?';
+ formBegin();
+ echo '<input type="hidden" name="action" value="googleGrant" >';
+ echo '<button type="button" id="googleLoginBtn" class="api"><span class="icon-googleplus"></span> Összeköt</button>';
+ formEnd();
+ echo '</div>';
+ }
+
+
+
+ formBegin(array('style'=>'text-align:center'));
+ echo '<input type="hidden" name="action" value="refresh" />';
+ echo '<input type="submit" value="frissítés" />';
+ formEnd();
+
+}
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/html/groupInfo.phtml b/mayor-orig/www/skin/classic/module-session/html/groupInfo.phtml
new file mode 100644
index 00000000..32a3c661
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/groupInfo.phtml
@@ -0,0 +1,5 @@
+<?php
+
+ require('skin/classic/module-session/html/accountInfo.phtml');
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/search/searchAccount.phtml b/mayor-orig/www/skin/classic/module-session/html/search/searchAccount.phtml
new file mode 100644
index 00000000..4cead225
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/search/searchAccount.phtml
@@ -0,0 +1,126 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ function putSearchAccountForm($attr, $pattern, $searchAttrList) {
+
+ global $attrDef, $AUTH;
+
+ formBegin(array('class'=>'usersearch'));
+
+ echo '<input type="hidden" name="action" value="searchAccount" />';
+ echo '<table class="search" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr><th colspan="3">'._SEARCH.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><td colspan="3"></td></tr></tfoot>';
+
+ echo '<tbody><tr>';
+ echo '<th style="width: 150px;">';
+ echo '<select name="attr">';
+ for ($i=0;$i<count($searchAttrList);$i++) {
+ if ($attr == $searchAttrList[$i]) {
+ echo '<option value="'.$searchAttrList[$i].'" selected="true">'.$attrDef[$searchAttrList[$i]]['desc'].'</option>';
+ } else {
+ echo '<option value="'.$searchAttrList[$i].'">'.$attrDef[$searchAttrList[$i]]['desc'].'</option>';
+ }
+ }
+ echo '</select>:</th>';
+ echo '<td>';
+ echo '<input type="text" name="pattern" value="'.$pattern.'" id="focus" />';
+ if (_POLICY == 'private' && __ADMIN) {
+ global $POLICIES;
+ $SEL = array($toPolicy => ' selected="selected" ');
+ echo '<select name="toPolicy">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($POLICIES); $i++) {
+ echo '<option value="'.$POLICIES[$i].'"'.$SEL[$POLICIES[$i]].'>'.$POLICIES[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+ echo '</td>';
+ echo '<td style="width: 50px;">';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</td>';
+ echo '</tr></tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function putSearchResultBox($searchResult, $toPolicy) {
+
+ global $AUTH;
+
+ $count = $searchResult['count'];
+ echo '<table class="searchresult" align="center" cellspacing="1">';
+ echo '<thead>';
+ if ($toPolicy != _POLICY) echo '<tr><th colspan="4" class="policy">'.$toPolicy.'</th></tr>'."\n";
+ echo '<tr>';
+ echo '<th>'._ATTR_USERCN.'</th>';
+ echo '<th>'._CATEGORY.'</th>';
+ echo '<th>'._ATTR_MAIL.'</th>';
+ echo '<th>'._ACTION.'</th>';
+ echo '</tr>';
+ echo '</thead><tfoot><tr><th colspan="4"></th></tr></tfoot>';
+ echo '<tbody>';
+ if ($count == 0) {
+ echo '<tr><td colspan="5">'._NOTFOUND.'</td></tr>';
+ } else {
+ for ($i = 0; $i < $count; $i++) {
+ if ($i % 2 ==1) {
+ $class = 'paratlan';
+ } else {
+ $class = 'paros';
+ }
+ echo "\n".'<tr class="'.$class.'">';
+ echo '<td>';
+ if (__ADMIN)
+ echo '<a href="'.href('index.php?page=session&f=accountInfo&userAccount='.$searchResult[$i]['userAccount'][0].'&toPolicy='.$toPolicy)
+ . '" title="'.$searchResult[$i]['userAccount'][0].'">'.$searchResult[$i]['userCn'][0].'</a>';
+ else
+ echo $searchResult[$i]['userCn'][0];
+ echo '</td>';
+ echo '<td>';
+ for ($j=0; $j < $searchResult[$i]['category']['count']; $j++) {
+ echo $searchResult[$i]['category'][$j].' ';
+ }
+ echo '</td>';
+ echo '<td>';
+ for ($j = 0; $j < $searchResult[$i]['mail']['count']; $j++) {
+ echo '<a href="mailto:'.$searchResult[$i]['mail'][$j].'">'.$searchResult[$i]['mail'][$j].'</a><br />';
+ }
+ echo '</td>';
+ echo '<td>';
+ if (__ADMIN) {
+ formBegin(array('name'=>'f'.$i));
+ echo '<input type="hidden" name="action" value="deleteAccount" />';
+ echo '<input type="hidden" name="userAccount" value="'.$searchResult[$i]['userAccount'][0].'" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo '<input type="submit" value="'._DELETE.'" title="'._ARE_YOU_SURE.' ('.$searchResult[$i]['userAccount'][0].')'.'" class="confirm" />';
+ formEnd();
+ }
+ if (
+ __ADMIN or
+ (in_array('diák',$searchResult[$i]['category']) and __DIAKADMIN)
+ ) {
+ formBegin(array('name'=>'f'.$i, 'action'=>href('index.php?page=password&f=changePassword')));
+ echo '<input type="hidden" name="noModify" value="1" />';
+ echo '<input type="hidden" name="userAccount" value="'.$searchResult[$i]['userAccount'][0].'" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo '<input type="submit" value="'._CHANGE_PASSWORD.'" title="'._CHANGE_PASSWORD.'" />';
+ formEnd();
+ }
+
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/search/searchGroup.phtml b/mayor-orig/www/skin/classic/module-session/html/search/searchGroup.phtml
new file mode 100644
index 00000000..824a6627
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/search/searchGroup.phtml
@@ -0,0 +1,103 @@
+<?php
+/*
+ Module: base/session
+*/
+
+ function putSearchGroupForm($attr, $pattern, $searchAttrList, $toPolicy) {
+
+ global $attrDef;
+
+ formBegin(array('class'=>'search'));
+ echo '<input type="hidden" name="action" value="searchGroup" />';
+ echo '<table class="search" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr><th colspan="3">'._SEARCH.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot><tr><td colspan="3"></td></tr></tfoot>';
+
+ echo '<tbody><tr>';
+ echo '<th style="width: 180px;">';
+ echo '<select name="attr">';
+ for ($i=0;$i<count($searchAttrList);$i++) {
+ if ($attr == $searchAttrList[$i]) {
+ echo '<option value="'.$searchAttrList[$i].'" selected="true">'.$attrDef[$searchAttrList[$i]]['desc'].'</option>';
+ } else {
+ echo '<option value="'.$searchAttrList[$i].'">'.$attrDef[$searchAttrList[$i]]['desc'].'</option>';
+ }
+ }
+ echo '</select>:</th>';
+ echo '<td>';
+ echo '<input type="text" name="pattern" value="'.$pattern.'" id="focus" />';
+ if (_POLICY == 'private' && __ADMIN) {
+ global $POLICIES;
+ $SEL = array($toPolicy => ' selected="selected" ');
+ echo '<select name="toPolicy">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($POLICIES); $i++) {
+ echo '<option value="'.$POLICIES[$i].'"'.$SEL[$POLICIES[$i]].'>'.$POLICIES[$i].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+ echo '</td>';
+ echo '<td style="width: 50px;">';
+ echo '<input type="submit" value="'._OK.'" />';
+ echo '</td>';
+ echo '</tr></tbody>';
+ echo '</table>';
+ //echo '</form>';
+ formEnd();
+
+ }
+
+ function putSearchResultBox($searchResult, $toPolicy) {
+
+ global $AUTH;
+
+ $count = $searchResult['count'];
+ echo '<table class="searchresult" align="center" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th>'._ATTR_GROUPCN.'</th>';
+ echo '<th>'._ATTR_GROUPDESC.'</th>';
+ echo '<th>'._ACTION.'</th>';
+ echo '</tr>';
+ echo '</thead><tfoot><tr><th colspan="4"></th></tr></tfoot>';
+ echo '<tbody>';
+ if ($count == 0) {
+ echo '<tr><td colspan="5">'._NOTFOUND.'</td></tr>';
+ } else {
+ for ($i=0;$i<$count;$i++) {
+ if ($i % 2 ==1) {
+ $class = 'paratlan';
+ } else {
+ $class = 'paros';
+ }
+ echo "\n".'<tr class="'.$class.'">';
+ echo '<td>';
+ if (__ADMIN)
+ echo '<a href="'.href('index.php?page=session&f=groupInfo&groupCn='.$searchResult[$i]['groupCn'][0]).'&toPolicy='.$toPolicy.'">'.$searchResult[$i]['groupCn'][0].'</a>';
+ else
+ echo $searchResult[$i]['groupCn'][0];
+ echo '</td>';
+ echo '<td>';
+ echo $searchResult[$i]['groupDesc'][0];
+ echo '</td>';
+ echo '<td>';
+ if (__ADMIN) {
+ formBegin(array('name'=>'f'.$i, action=>href('index.php?page=session&sub=search&f=searchGroup') ));
+ echo '<input type="hidden" name="action" value="deleteGroup" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo '<input type="hidden" name="groupCn" value="'.$searchResult[$i]['groupCn'][0].'" />';
+ echo '<input type="submit" value="'._DELETE.'" title="'._ARE_YOU_SURE.'" class="confirm" />';
+ formEnd();
+ }
+ echo '</td>';
+ echo '</tr>';
+ }
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/html/sessionAdmin.phtml b/mayor-orig/www/skin/classic/module-session/html/sessionAdmin.phtml
new file mode 100644
index 00000000..bfb1cc1e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/html/sessionAdmin.phtml
@@ -0,0 +1,57 @@
+<?php
+
+ function putSessionList($ADAT) {
+
+ echo '<table class="lista">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">'._ACCOUNT.'</th>';
+ echo '<th>'._CN.'</th>';
+ echo '<th>'._POLICI.'</th>';
+ echo '<th>'._LOGINDT.'</th>';
+ echo '<th>'._ACTIVITY.'</th>';
+ echo '<th>'._IP.'</th>';
+ echo '<th>'._SESSION.'</th>';
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr>';
+ echo '<th colspan="2">'._ACCOUNT.'</th>';
+ echo '<th>'._CN.'</th>';
+ echo '<th>'._POLICI.'</th>';
+ echo '<th>'._LOGINDT.'</th>';
+ echo '<th>'._ACTIVITY.'</th>';
+ echo '<th>'._IP.'</th>';
+ echo '<th>'._SESSION.'</th>';
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+ foreach ($ADAT['session'] as $sAdat) {
+ echo '<tr>';
+ echo '<th>';
+//var_dump($sAdat);
+ formBegin();
+ echo '<input type="hidden" name="action" value="deleteSession" />'."\n";
+ echo '<input type="hidden" name="delSessionID" value="'.$sAdat['sessionID'].'" />'."\n";
+ echo '<input type="hidden" name="delPolicy" value="'.$sAdat['policy'].'" />'."\n";
+ echo '<input type="submit" class="confirm" title="'._BIZTOS_TOROL.'" name="del" value="'._DELETE.'" />'."\n";
+ formEnd();
+ echo '</th>';
+ echo '<th>'.$sAdat['userAccount'].'</th>';
+ echo '<td>'.$sAdat['userCn'].'</td>';
+ echo '<td>'.$sAdat['policy'].'</td>';
+ echo '<td>'.$sAdat['dt'].'</td>';
+ echo '<td>'.$sAdat['activity'].'</td>';
+ echo '<td>'.$sAdat['ip'].'</td>';
+ echo '<td>'.$sAdat['sessionID'].'</td>';
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/classic/module-session/img/download.gif b/mayor-orig/www/skin/classic/module-session/img/download.gif
new file mode 100644
index 00000000..818700f2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/img/download.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js b/mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js
new file mode 100644
index 00000000..1fa17a9c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js
@@ -0,0 +1,13 @@
+$(document).ready(function() {
+ $('#createAccount input[type=submit]').attr("disabled", "disabled");
+ $('#createAccount').change(function(){
+ $('input').removeClass('hiba');
+ if ($('#createAccount input[name="userCn"]').val() == "") $('#createAccount input[name="userCn"]').addClass('hiba');
+ if ($('#createAccount input[name="userAccount"]').val() == "") $('#createAccount input[name="userAccount"]').addClass('hiba');
+ if ($('#createAccount input[name="userPassword"]').val() != $('#createAccount input[name="verification"]').val()) $('#createAccount input[name="verification"]').addClass('hiba');
+// ideiglegenes bekapcsolva
+ if ($('#createAccount input[name="mail"]').val() == "") $('#createAccount input[name="mail"]').addClass('hiba');
+ if ($('#createAccount input.hiba').length == 0)
+ $('#createAccount input[type=submit]').removeAttr("disabled");
+ });
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js b/mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js
new file mode 100644
index 00000000..94010747
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js
@@ -0,0 +1,31 @@
+$(document).ready(function() {
+ $('#grantFbAuth').submit(function() { // facebook
+ FB.getLoginStatus(function(response) {
+ if (response.status === 'connected') {
+ mayor_facebookconnect_redirect();
+ } else if (response.status === 'not_authorized') {
+ FB.login(function(loginResponse) {
+ if (loginResponse.status=='connected') {
+ mayor_facebookconnect_redirect();
+ }
+ });
+ } else {
+ FB.login(function(loginResponse) {
+ if (loginResponse.status=='connected') {
+ mayor_facebookconnect_redirect();
+ }
+ });
+ }
+ },true);
+ return false;
+ });
+
+ var mayor_facebookconnect_redirect = function() {
+ var origUrl = $(location).attr('href');
+ var pos = origUrl.indexOf("?");
+ if (pos != -1) url = origUrl+'&action=grantFbAuth';
+ else url = origUrl+'?action=grantFbAuth';
+ window.location = url;
+ }
+
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js b/mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js
new file mode 100644
index 00000000..3c54f109
--- /dev/null
+++ b/mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js
@@ -0,0 +1,30 @@
+$(document).ready(function() {
+ if (typeof(GOOGLEAPI_CLIENT_ID)!=='undefined' && GOOGLEAPI_CLIENT_ID!='') {
+ gapi.load('auth2', function(){
+ auth2 = gapi.auth2.init({
+ client_id: GOOGLEAPI_CLIENT_ID,
+ cookiepolicy: 'single_host_origin',
+ });
+ googleapiCheck(document.getElementById('googleapiCheckBtn'));
+ googleapiCheck(document.getElementById('googleapiGrantBtn'));
+ googleapiCheck(document.getElementById('googleapiRevokeBtn'));
+ });
+
+ function googleapiCheck(element) {
+ auth2.attachClickHandler(element, {},
+ function(googleUser) {
+ // console.log(googleUser.getBasicProfile());
+ var id_token = googleUser.getAuthResponse().id_token;
+ var origUrl = $(location).attr('href');
+ var pos = origUrl.indexOf("?");
+ if (pos != -1) url = origUrl+'&id_token='+id_token;
+ else url = origUrl+'?id_token='+id_token;
+ if (element.id == 'googleapiGrantBtn') url += '&action=googleapiGrant';
+ if (element.id == 'googleapiRevokeBtn') url += '&action=googleapiRevoke';
+ window.location = url;
+ }, function(error) {
+ // alert(JSON.stringify(error, undefined, 2));
+ });
+ }
+ }
+});
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/aac.png b/mayor-orig/www/skin/classic/share/img/filetypes/aac.png
new file mode 100644
index 00000000..47887157
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/aac.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/ai.png b/mayor-orig/www/skin/classic/share/img/filetypes/ai.png
new file mode 100644
index 00000000..9fe69635
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/ai.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/aiff.png b/mayor-orig/www/skin/classic/share/img/filetypes/aiff.png
new file mode 100644
index 00000000..b55326bc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/aiff.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/avi.png b/mayor-orig/www/skin/classic/share/img/filetypes/avi.png
new file mode 100644
index 00000000..a7c57c4d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/avi.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/bmp.png b/mayor-orig/www/skin/classic/share/img/filetypes/bmp.png
new file mode 100644
index 00000000..63f18177
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/bmp.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/c.png b/mayor-orig/www/skin/classic/share/img/filetypes/c.png
new file mode 100644
index 00000000..5171293c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/c.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/css.png b/mayor-orig/www/skin/classic/share/img/filetypes/css.png
new file mode 100644
index 00000000..05c112b3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/css.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/dat.png b/mayor-orig/www/skin/classic/share/img/filetypes/dat.png
new file mode 100644
index 00000000..f803fca8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/dat.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/dmg.png b/mayor-orig/www/skin/classic/share/img/filetypes/dmg.png
new file mode 100644
index 00000000..5f67ec90
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/dmg.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/doc.png b/mayor-orig/www/skin/classic/share/img/filetypes/doc.png
new file mode 100644
index 00000000..a42f3914
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/doc.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/dotx.png b/mayor-orig/www/skin/classic/share/img/filetypes/dotx.png
new file mode 100644
index 00000000..b067bfaf
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/dotx.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/dwg.png b/mayor-orig/www/skin/classic/share/img/filetypes/dwg.png
new file mode 100644
index 00000000..698eb4c6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/dwg.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/dxf.png b/mayor-orig/www/skin/classic/share/img/filetypes/dxf.png
new file mode 100644
index 00000000..ca30be92
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/dxf.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/eps.png b/mayor-orig/www/skin/classic/share/img/filetypes/eps.png
new file mode 100644
index 00000000..649a9d9a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/eps.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/exe.png b/mayor-orig/www/skin/classic/share/img/filetypes/exe.png
new file mode 100644
index 00000000..ddfa770b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/exe.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/flv.png b/mayor-orig/www/skin/classic/share/img/filetypes/flv.png
new file mode 100644
index 00000000..a02bcd9b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/flv.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/gif.png b/mayor-orig/www/skin/classic/share/img/filetypes/gif.png
new file mode 100644
index 00000000..2b84c9dc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/gif.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/h.png b/mayor-orig/www/skin/classic/share/img/filetypes/h.png
new file mode 100644
index 00000000..f2bcdbf9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/h.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/hpp.png b/mayor-orig/www/skin/classic/share/img/filetypes/hpp.png
new file mode 100644
index 00000000..f725fc80
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/hpp.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/html.png b/mayor-orig/www/skin/classic/share/img/filetypes/html.png
new file mode 100644
index 00000000..a1f66927
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/html.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/ics.png b/mayor-orig/www/skin/classic/share/img/filetypes/ics.png
new file mode 100644
index 00000000..04d149a7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/ics.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/iso.png b/mayor-orig/www/skin/classic/share/img/filetypes/iso.png
new file mode 100644
index 00000000..4daccd2e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/iso.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/java.png b/mayor-orig/www/skin/classic/share/img/filetypes/java.png
new file mode 100644
index 00000000..423bdebe
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/java.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/jpg.png b/mayor-orig/www/skin/classic/share/img/filetypes/jpg.png
new file mode 100644
index 00000000..0e7ace35
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/jpg.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/key.png b/mayor-orig/www/skin/classic/share/img/filetypes/key.png
new file mode 100644
index 00000000..8fd2e797
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/key.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/mid.png b/mayor-orig/www/skin/classic/share/img/filetypes/mid.png
new file mode 100644
index 00000000..542b9d0d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/mid.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/mp3.png b/mayor-orig/www/skin/classic/share/img/filetypes/mp3.png
new file mode 100644
index 00000000..bcc30dfe
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/mp3.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/mp4.png b/mayor-orig/www/skin/classic/share/img/filetypes/mp4.png
new file mode 100644
index 00000000..9c96f2b3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/mp4.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/mpg.png b/mayor-orig/www/skin/classic/share/img/filetypes/mpg.png
new file mode 100644
index 00000000..dfd65968
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/mpg.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/odf.png b/mayor-orig/www/skin/classic/share/img/filetypes/odf.png
new file mode 100644
index 00000000..8ac8ee4b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/odf.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/odt.png b/mayor-orig/www/skin/classic/share/img/filetypes/odt.png
new file mode 100644
index 00000000..585120af
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/odt.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/otp.png b/mayor-orig/www/skin/classic/share/img/filetypes/otp.png
new file mode 100644
index 00000000..79f2da0d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/otp.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/ots.png b/mayor-orig/www/skin/classic/share/img/filetypes/ots.png
new file mode 100644
index 00000000..192b7920
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/ots.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/ott.png b/mayor-orig/www/skin/classic/share/img/filetypes/ott.png
new file mode 100644
index 00000000..cc6aaeb7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/ott.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/pdf.png b/mayor-orig/www/skin/classic/share/img/filetypes/pdf.png
new file mode 100644
index 00000000..b2efd2cc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/pdf.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/php.png b/mayor-orig/www/skin/classic/share/img/filetypes/php.png
new file mode 100644
index 00000000..20677a7b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/php.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/png.png b/mayor-orig/www/skin/classic/share/img/filetypes/png.png
new file mode 100644
index 00000000..b698be69
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/png.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/ppt.png b/mayor-orig/www/skin/classic/share/img/filetypes/ppt.png
new file mode 100644
index 00000000..39601ae9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/ppt.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/psd.png b/mayor-orig/www/skin/classic/share/img/filetypes/psd.png
new file mode 100644
index 00000000..fb347ca7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/psd.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/py.png b/mayor-orig/www/skin/classic/share/img/filetypes/py.png
new file mode 100644
index 00000000..79dbbaff
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/py.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/qt.png b/mayor-orig/www/skin/classic/share/img/filetypes/qt.png
new file mode 100644
index 00000000..cd9a08f4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/qt.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/rar.png b/mayor-orig/www/skin/classic/share/img/filetypes/rar.png
new file mode 100644
index 00000000..723f7198
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/rar.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/rb.png b/mayor-orig/www/skin/classic/share/img/filetypes/rb.png
new file mode 100644
index 00000000..33a8f23f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/rb.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/rtf.png b/mayor-orig/www/skin/classic/share/img/filetypes/rtf.png
new file mode 100644
index 00000000..552cddbb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/rtf.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/sql.png b/mayor-orig/www/skin/classic/share/img/filetypes/sql.png
new file mode 100644
index 00000000..3546e705
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/sql.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/tga.png b/mayor-orig/www/skin/classic/share/img/filetypes/tga.png
new file mode 100644
index 00000000..544d1469
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/tga.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/tgz.png b/mayor-orig/www/skin/classic/share/img/filetypes/tgz.png
new file mode 100644
index 00000000..b25f50de
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/tgz.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/tiff.png b/mayor-orig/www/skin/classic/share/img/filetypes/tiff.png
new file mode 100644
index 00000000..4ea16f79
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/tiff.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/txt.png b/mayor-orig/www/skin/classic/share/img/filetypes/txt.png
new file mode 100644
index 00000000..62527117
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/txt.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/wav.png b/mayor-orig/www/skin/classic/share/img/filetypes/wav.png
new file mode 100644
index 00000000..80287a9b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/wav.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/xls.png b/mayor-orig/www/skin/classic/share/img/filetypes/xls.png
new file mode 100644
index 00000000..997a0ff1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/xls.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/xlsx.png b/mayor-orig/www/skin/classic/share/img/filetypes/xlsx.png
new file mode 100644
index 00000000..350252f7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/xlsx.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/xml.png b/mayor-orig/www/skin/classic/share/img/filetypes/xml.png
new file mode 100644
index 00000000..a2a9a84c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/xml.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/yml.png b/mayor-orig/www/skin/classic/share/img/filetypes/yml.png
new file mode 100644
index 00000000..758ea706
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/yml.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/img/filetypes/zip.png b/mayor-orig/www/skin/classic/share/img/filetypes/zip.png
new file mode 100644
index 00000000..15850ff1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/img/filetypes/zip.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/MIT-LICENSE b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/MIT-LICENSE
new file mode 100644
index 00000000..d4f8dbdc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/MIT-LICENSE
@@ -0,0 +1,20 @@
+All portions Copyright (c) 2007 Tim Harper
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/README b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/README
new file mode 100644
index 00000000..4e3e4a58
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/README
@@ -0,0 +1,10 @@
+::CalendarDateSelect::
+Author: Tim Harper ( 'tim_see_harperATgmail._see_om'.gsub('_see_', 'c').gsub('AT', '@') )
+
+::Examples::
+see demo here -- http://restatesman.com/static/calendar
+
+::Project Site::
+http://code.google.com/p/calendardateselect/
+
+It works! \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/blank_iframe.html b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/blank_iframe.html
new file mode 100644
index 00000000..a4296bbb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/blank_iframe.html
@@ -0,0 +1,2 @@
+<!-- Nothing here -->
+<html><head></head><body></body></html> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/images/calendar_date_select/calendar.gif b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/images/calendar_date_select/calendar.gif
new file mode 100644
index 00000000..6b7b7ca9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/images/calendar_date_select/calendar.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/calendar_date_select.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/calendar_date_select.js
new file mode 100644
index 00000000..b25297e3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/calendar_date_select.js
@@ -0,0 +1,430 @@
+// CalendarDateSelect version 1.10.2 - a prototype based date picker
+// Questions, comments, bugs? - email the Author - Tim Harper <"timseeharper@gmail.seeom".gsub("see", "c")>
+if (typeof Prototype == 'undefined') alert("CalendarDateSelect Error: Prototype could not be found. Please make sure that your application's layout includes prototype.js (.g. <%= javascript_include_tag :defaults %>) *before* it includes calendar_date_select.js (.g. <%= calendar_date_select_includes %>).");
+if (Prototype.Version < "1.6") alert("Prototype 1.6.0 is required. If using earlier version of prototype, please use calendar_date_select version 1.8.3");
+
+Element.addMethods({
+ purgeChildren: function(element) { $A(element.childNodes).each(function(e){$(e).remove();}); },
+ build: function(element, type, options, style) {
+ var newElement = Element.build(type, options, style);
+ element.appendChild(newElement);
+ return newElement;
+ }
+});
+
+Element.build = function(type, options, style)
+{
+ var e = $(document.createElement(type));
+ $H(options).each(function(pair) { eval("e." + pair.key + " = pair.value" ); });
+ if (style)
+ $H(style).each(function(pair) { eval("e.style." + pair.key + " = pair.value" ); });
+ return e;
+};
+nil = null;
+
+Date.one_day = 24*60*60*1000;
+Date.weekdays = $w("S M T W T F S");
+Date.first_day_of_week = 0;
+Date.months = $w("January February March April May June July August September October November December" );
+Date.padded2 = function(hour) { var padded2 = parseInt(hour, 10); if (hour < 10) padded2 = "0" + padded2; return padded2; }
+Date.prototype.getPaddedMinutes = function() { return Date.padded2(this.getMinutes()); }
+Date.prototype.getAMPMHour = function() { var hour = this.getHours(); return (hour == 0) ? 12 : (hour > 12 ? hour - 12 : hour ) }
+Date.prototype.getAMPM = function() { return (this.getHours() < 12) ? "AM" : "PM"; }
+Date.prototype.stripTime = function() { return new Date(this.getFullYear(), this.getMonth(), this.getDate());};
+Date.prototype.daysDistance = function(compare_date) { return Math.round((compare_date - this) / Date.one_day); };
+Date.prototype.toFormattedString = function(include_time){
+ var hour, str;
+ str = Date.months[this.getMonth()] + " " + this.getDate() + ", " + this.getFullYear();
+
+ if (include_time) { hour = this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() + " " + this.getAMPM() }
+ return str;
+}
+Date.parseFormattedString = function(string) { return new Date(string);}
+Math.floor_to_interval = function(n, i) { return Math.floor(n/i) * i;}
+window.f_height = function() { return( [window.innerHeight ? window.innerHeight : null, document.documentElement ? document.documentElement.clientHeight : null, document.body ? document.body.clientHeight : null].select(function(x){return x>0}).first()||0); }
+window.f_scrollTop = function() { return ([window.pageYOffset ? window.pageYOffset : null, document.documentElement ? document.documentElement.scrollTop : null, document.body ? document.body.scrollTop : null].select(function(x){return x>0}).first()||0 ); }
+
+_translations = {
+ "OK": "OK",
+ "Now": "Now",
+ "Today": "Today"
+}
+SelectBox = Class.create();
+SelectBox.prototype = {
+ initialize: function(parent_element, values, html_options, style_options) {
+ this.element = $(parent_element).build("select", html_options, style_options);
+ this.populate(values);
+ },
+ populate: function(values) {
+ this.element.purgeChildren();
+ var that = this; $A(values).each(function(pair) { if (typeof(pair)!="object") {pair = [pair, pair]}; that.element.build("option", { value: pair[1], innerHTML: pair[0]}) });
+ },
+ setValue: function(value) {
+ var e = this.element;
+ var matched = false;
+ $R(0, e.options.length - 1 ).each(function(i) { if(e.options[i].value==value.toString()) {e.selectedIndex = i; matched = true;}; } );
+ return matched;
+ },
+ getValue: function() { return $F(this.element)}
+}
+CalendarDateSelect = Class.create();
+CalendarDateSelect.prototype = {
+ initialize: function(target_element, options) {
+ this.target_element = $(target_element); // make sure it's an element, not a string
+ if (!this.target_element) { alert("Target element " + target_element + " not found!"); return false;}
+ if (this.target_element.tagName != "INPUT") this.target_element = this.target_element.down("INPUT")
+
+ this.target_element.calendar_date_select = this;
+ this.last_click_at = 0;
+ // initialize the date control
+ this.options = $H({
+ embedded: false,
+ popup: nil,
+ time: false,
+ buttons: true,
+ year_range: 10,
+ close_on_click: nil,
+ minute_interval: 5,
+ popup_by: this.target_element,
+ month_year: "dropdowns",
+ onchange: this.target_element.onchange,
+ valid_date_check: nil
+ }).merge(options || {});
+ this.use_time = this.options.get("time");
+ this.parseDate();
+ this.callback("before_show")
+ this.initCalendarDiv();
+ if(!this.options.get("embedded")) {
+ this.positionCalendarDiv()
+ // set the click handler to check if a user has clicked away from the document
+ Event.observe(document, "mousedown", this.closeIfClickedOut_handler = this.closeIfClickedOut.bindAsEventListener(this));
+ Event.observe(document, "keypress", this.keyPress_handler = this.keyPress.bindAsEventListener(this));
+ }
+ this.callback("after_show")
+ },
+ positionCalendarDiv: function() {
+ var above = false;
+ var c_pos = this.calendar_div.cumulativeOffset(), c_left = c_pos[0], c_top = c_pos[1], c_dim = this.calendar_div.getDimensions(), c_height = c_dim.height, c_width = c_dim.width;
+ var w_top = window.f_scrollTop(), w_height = window.f_height();
+ var e_dim = $(this.options.get("popup_by")).cumulativeOffset(), e_top = e_dim[1], e_left = e_dim[0], e_height = $(this.options.get("popup_by")).getDimensions().height, e_bottom = e_top + e_height;
+
+ if ( (( e_bottom + c_height ) > (w_top + w_height)) && ( e_bottom - c_height > w_top )) above = true;
+ var left_px = e_left.toString() + "px", top_px = (above ? (e_top - c_height ) : ( e_top + e_height )).toString() + "px";
+
+ this.calendar_div.style.left = left_px; this.calendar_div.style.top = top_px;
+
+ this.calendar_div.setStyle({visibility:""});
+
+ // draw an iframe behind the calendar -- ugly hack to make IE 6 happy
+ if(navigator.appName=="Microsoft Internet Explorer") this.iframe = $(document.body).build("iframe", {src: "javascript:false", className: "ie6_blocker"}, { left: left_px, top: top_px, height: c_height.toString()+"px", width: c_width.toString()+"px", border: "0px"})
+ },
+ initCalendarDiv: function() {
+ if (this.options.get("embedded")) {
+ var parent = this.target_element.parentNode;
+ var style = {}
+ } else {
+ var parent = document.body
+ var style = { position:"absolute", visibility: "hidden", left:0, top:0 }
+ }
+ this.calendar_div = $(parent).build('div', {className: "calendar_date_select"}, style);
+
+ var that = this;
+ // create the divs
+ $w("top header body buttons footer bottom").each(function(name) {
+ eval("var " + name + "_div = that." + name + "_div = that.calendar_div.build('div', { className: 'cds_"+name+"' }, { clear: 'left'} ); ");
+ });
+
+ this.initHeaderDiv();
+ this.initButtonsDiv();
+ this.initCalendarGrid();
+ this.updateFooter("&#160;");
+
+ this.refresh();
+ this.setUseTime(this.use_time);
+ },
+ initHeaderDiv: function() {
+ var header_div = this.header_div;
+ this.close_button = header_div.build("a", { innerHTML: "x", href:"#", onclick:function () { this.close(); return false; }.bindAsEventListener(this), className: "close" });
+ this.next_month_button = header_div.build("a", { innerHTML: "&gt;", href:"#", onclick:function () { this.navMonth(this.date.getMonth() + 1 ); return false; }.bindAsEventListener(this), className: "next" });
+ this.prev_month_button = header_div.build("a", { innerHTML: "&lt;", href:"#", onclick:function () { this.navMonth(this.date.getMonth() - 1 ); return false; }.bindAsEventListener(this), className: "prev" });
+
+ if (this.options.get("month_year")=="dropdowns") {
+ this.month_select = new SelectBox(header_div, $R(0,11).map(function(m){return [Date.months[m], m]}), {className: "month", onchange: function () { this.navMonth(this.month_select.getValue()) }.bindAsEventListener(this)});
+ this.year_select = new SelectBox(header_div, [], {className: "year", onchange: function () { this.navYear(this.year_select.getValue()) }.bindAsEventListener(this)});
+ this.populateYearRange();
+ } else {
+ this.month_year_label = header_div.build("span")
+ }
+ },
+ initCalendarGrid: function() {
+ var body_div = this.body_div;
+ this.calendar_day_grid = [];
+ var days_table = body_div.build("table", { cellPadding: "0px", cellSpacing: "0px", width: "100%" })
+ // make the weekdays!
+ var weekdays_row = days_table.build("thead").build("tr");
+ Date.weekdays.each( function(weekday) {
+ weekdays_row.build("th", {innerHTML: weekday});
+ });
+
+ var days_tbody = days_table.build("tbody")
+ // Make the days!
+ var row_number = 0, weekday;
+ for(var cell_index = 0; cell_index<42; cell_index++)
+ {
+ weekday = (cell_index+Date.first_day_of_week ) % 7;
+ if ( cell_index % 7==0 ) days_row = days_tbody.build("tr", {className: 'row_'+row_number++});
+ (this.calendar_day_grid[cell_index] = days_row.build("td", {
+ calendar_date_select: this,
+ onmouseover: function () { this.calendar_date_select.dayHover(this); },
+ onmouseout: function () { this.calendar_date_select.dayHoverOut(this) },
+ onclick: function() { this.calendar_date_select.updateSelectedDate(this, true); },
+ className: (weekday==0) || (weekday==6) ? " weekend" : "" //clear the class
+ },
+ { cursor: "pointer" }
+ )).build("div");
+ this.calendar_day_grid[cell_index];
+ }
+ },
+ initButtonsDiv: function()
+ {
+ var buttons_div = this.buttons_div;
+ if (this.options.get("time"))
+ {
+ var blank_time = $A(this.options.get("time")=="mixed" ? [[" - ", ""]] : []);
+ buttons_div.build("span", {innerHTML:"@", className: "at_sign"});
+
+ var t = new Date();
+ this.hour_select = new SelectBox(buttons_div,
+ blank_time.concat($R(0,23).map(function(x) {t.setHours(x); return $A([t.getAMPMHour()+ " " + t.getAMPM(),x])} )),
+ {
+ calendar_date_select: this,
+ onchange: function() { this.calendar_date_select.updateSelectedDate( { hour: this.value });},
+ className: "hour"
+ }
+ );
+ buttons_div.build("span", {innerHTML:":", className: "seperator"});
+ var that = this;
+ this.minute_select = new SelectBox(buttons_div,
+ blank_time.concat($R(0,59).select(function(x){return (x % that.options.get('minute_interval')==0)}).map(function(x){ return $A([ Date.padded2(x), x]); } ) ),
+ {
+ calendar_date_select: this,
+ onchange: function() { this.calendar_date_select.updateSelectedDate( {minute: this.value }) },
+ className: "minute"
+ }
+ );
+
+ } else if (! this.options.get("buttons")) buttons_div.remove();
+
+ if (this.options.get("buttons")) {
+ buttons_div.build("span", {innerHTML: "&#160;"});
+ if (this.options.get("time")=="mixed" || !this.options.get("time")) b = buttons_div.build("a", {
+ innerHTML: _translations["Today"],
+ href: "#",
+ onclick: function() {this.today(false); return false;}.bindAsEventListener(this)
+ });
+
+ if (this.options.get("time")=="mixed") buttons_div.build("span", {innerHTML: " | ", className:"button_seperator"})
+
+ if (this.options.get("time")) b = buttons_div.build("a", {
+ innerHTML: _translations["Now"],
+ href: "#",
+ onclick: function() {this.today(true); return false}.bindAsEventListener(this)
+ });
+
+ if (!this.options.get("embedded"))
+ {
+ buttons_div.build("span", {innerHTML: "&#160;"});
+ buttons_div.build("a", { innerHTML: _translations["OK"], href: "#", onclick: function() {this.close(); return false;}.bindAsEventListener(this) });
+ }
+ }
+ },
+ refresh: function ()
+ {
+ this.refreshMonthYear();
+ this.refreshCalendarGrid();
+
+ this.setSelectedClass();
+ this.updateFooter();
+ },
+ refreshCalendarGrid: function () {
+ this.beginning_date = new Date(this.date).stripTime();
+ this.beginning_date.setDate(1);
+ this.beginning_date.setHours(12); // Prevent daylight savings time boundaries from showing a duplicate day
+ var pre_days = this.beginning_date.getDay() // draw some days before the fact
+ if (pre_days < 3) pre_days += 7;
+ this.beginning_date.setDate(1 - pre_days + Date.first_day_of_week);
+
+ var iterator = new Date(this.beginning_date);
+
+ var today = new Date().stripTime();
+ var this_month = this.date.getMonth();
+ vdc = this.options.get("valid_date_check");
+ for (var cell_index = 0;cell_index<42; cell_index++)
+ {
+ day = iterator.getDate(); month = iterator.getMonth();
+ cell = this.calendar_day_grid[cell_index];
+ Element.remove(cell.childNodes[0]); div = cell.build("div", {innerHTML:day});
+ if (month!=this_month) div.className = "other";
+ cell.day = day; cell.month = month; cell.year = iterator.getFullYear();
+ if (vdc) { if (vdc(iterator.stripTime())) cell.removeClassName("disabled"); else cell.addClassName("disabled") };
+ iterator.setDate( day + 1);
+ }
+
+ if (this.today_cell) this.today_cell.removeClassName("today");
+
+ if ( $R( 0, 41 ).include(days_until = this.beginning_date.stripTime().daysDistance(today)) ) {
+ this.today_cell = this.calendar_day_grid[days_until];
+ this.today_cell.addClassName("today");
+ }
+ },
+ refreshMonthYear: function() {
+ var m = this.date.getMonth();
+ var y = this.date.getFullYear();
+ // set the month
+ if (this.options.get("month_year") == "dropdowns")
+ {
+ this.month_select.setValue(m, false);
+
+ var e = this.year_select.element;
+ if (this.flexibleYearRange() && (!(this.year_select.setValue(y, false)) || e.selectedIndex <= 1 || e.selectedIndex >= e.options.length - 2 )) this.populateYearRange();
+
+ this.year_select.setValue(y);
+
+ } else {
+ this.month_year_label.update( Date.months[m] + " " + y.toString() );
+ }
+ },
+ populateYearRange: function() {
+ this.year_select.populate(this.yearRange().toArray());
+ },
+ yearRange: function() {
+ if (!this.flexibleYearRange())
+ return $R(this.options.get("year_range")[0], this.options.get("year_range")[1]);
+
+ var y = this.date.getFullYear();
+ return $R(y - this.options.get("year_range"), y + this.options.get("year_range"));
+ },
+ flexibleYearRange: function() { return (typeof(this.options.get("year_range")) == "number"); },
+ validYear: function(year) { if (this.flexibleYearRange()) { return true;} else { return this.yearRange().include(year);} },
+ dayHover: function(element) {
+ var hover_date = new Date(this.selected_date);
+ hover_date.setYear(element.year); hover_date.setMonth(element.month); hover_date.setDate(element.day);
+ this.updateFooter(hover_date.toFormattedString(this.use_time));
+ },
+ dayHoverOut: function(element) { this.updateFooter(); },
+ clearSelectedClass: function() {if (this.selected_cell) this.selected_cell.removeClassName("selected");},
+ setSelectedClass: function() {
+ if (!this.selection_made) return;
+ this.clearSelectedClass()
+ if ($R(0,42).include( days_until = this.beginning_date.stripTime().daysDistance(this.selected_date.stripTime()) )) {
+ this.selected_cell = this.calendar_day_grid[days_until];
+ this.selected_cell.addClassName("selected");
+ }
+ },
+ reparse: function() { this.parseDate(); this.refresh(); },
+ dateString: function() {
+ return (this.selection_made) ? this.selected_date.toFormattedString(this.use_time) : "&#160;";
+ },
+ parseDate: function()
+ {
+ var value = $F(this.target_element).strip()
+ this.selection_made = (value != "");
+ this.date = value=="" ? NaN : Date.parseFormattedString(this.options.get("date") || value);
+ if (isNaN(this.date)) this.date = new Date();
+ if (!this.validYear(this.date.getFullYear())) this.date.setYear( (this.date.getFullYear() < this.yearRange().start) ? this.yearRange().start : this.yearRange().end);
+ this.selected_date = new Date(this.date);
+ this.use_time = /[0-9]:[0-9]{2}/.exec(value) ? true : false;
+ this.date.setDate(1);
+ },
+ updateFooter:function(text) { if (!text) text = this.dateString(); this.footer_div.purgeChildren(); this.footer_div.build("span", {innerHTML: text }); },
+ updateSelectedDate:function(partsOrElement, via_click) {
+ var parts = $H(partsOrElement);
+ if ((this.target_element.disabled || this.target_element.readOnly) && this.options.get("popup") != "force") return false;
+ if (parts.get("day")) {
+ var t_selected_date = this.selected_date, vdc = this.options.get("valid_date_check");
+ for (var x = 0; x<=3; x++) t_selected_date.setDate(parts.get("day"));
+ t_selected_date.setYear(parts.get("year"));
+ t_selected_date.setMonth(parts.get("month"));
+
+ if (vdc && ! vdc(t_selected_date.stripTime())) { return false; }
+ this.selected_date = t_selected_date;
+ this.selection_made = true;
+ }
+
+ if (!isNaN(parts.get("hour"))) this.selected_date.setHours(parts.get("hour"));
+ if (!isNaN(parts.get("minute"))) this.selected_date.setMinutes( Math.floor_to_interval(parts.get("minute"), this.options.get("minute_interval")) );
+ if (parts.get("hour") === "" || parts.get("minute") === "")
+ this.setUseTime(false);
+ else if (!isNaN(parts.get("hour")) || !isNaN(parts.get("minute")))
+ this.setUseTime(true);
+
+ this.updateFooter();
+ this.setSelectedClass();
+
+ if (this.selection_made) this.updateValue();
+ if (this.closeOnClick()) { this.close(); }
+ if (via_click && !this.options.get("embedded")) {
+ if ((new Date() - this.last_click_at) < 333) this.close();
+ this.last_click_at = new Date();
+ }
+ },
+ closeOnClick: function() {
+ if (this.options.get("embedded")) return false;
+ if (this.options.get("close_on_click")===nil )
+ return (this.options.get("time")) ? false : true
+ else
+ return (this.options.get("close_on_click"))
+ },
+ navMonth: function(month) { (target_date = new Date(this.date)).setMonth(month); return (this.navTo(target_date)); },
+ navYear: function(year) { (target_date = new Date(this.date)).setYear(year); return (this.navTo(target_date)); },
+ navTo: function(date) {
+ if (!this.validYear(date.getFullYear())) return false;
+ this.date = date;
+ this.date.setDate(1);
+ this.refresh();
+ this.callback("after_navigate", this.date);
+ return true;
+ },
+ setUseTime: function(turn_on) {
+ this.use_time = this.options.get("time") && (this.options.get("time")=="mixed" ? turn_on : true) // force use_time to true if time==true && time!="mixed"
+ if (this.use_time && this.selected_date) { // only set hour/minute if a date is already selected
+ var minute = Math.floor_to_interval(this.selected_date.getMinutes(), this.options.get("minute_interval"));
+ var hour = this.selected_date.getHours();
+
+ this.hour_select.setValue(hour);
+ this.minute_select.setValue(minute)
+ } else if (this.options.get("time")=="mixed") {
+ this.hour_select.setValue(""); this.minute_select.setValue("");
+ }
+ },
+ updateValue: function() {
+ var last_value = this.target_element.value;
+ this.target_element.value = this.dateString();
+ if (last_value!=this.target_element.value) this.callback("onchange");
+ },
+ today: function(now) {
+ var d = new Date(); this.date = new Date();
+ var o = $H({ day: d.getDate(), month: d.getMonth(), year: d.getFullYear(), hour: d.getHours(), minute: d.getMinutes()});
+ if ( ! now ) o = o.merge({hour: "", minute:""});
+ this.updateSelectedDate(o, true);
+ this.refresh();
+ },
+ close: function() {
+ if (this.closed) return false;
+ this.callback("before_close");
+ this.target_element.calendar_date_select = nil;
+ Event.stopObserving(document, "mousedown", this.closeIfClickedOut_handler);
+ Event.stopObserving(document, "keypress", this.keyPress_handler);
+ this.calendar_div.remove(); this.closed = true;
+ if (this.iframe) this.iframe.remove();
+ if (this.target_element.type!="hidden") this.target_element.focus();
+ this.callback("after_close");
+ },
+ closeIfClickedOut: function(e) {
+ if (! $(Event.element(e)).descendantOf(this.calendar_div) ) this.close();
+ },
+ keyPress: function(e) {
+ if (e.keyCode==Event.KEY_ESC) this.close();
+ },
+ callback: function(name, param) { if (this.options.get(name)) { this.options.get(name).bind(this.target_element)(param); } }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_american.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_american.js
new file mode 100644
index 00000000..cbaca01a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_american.js
@@ -0,0 +1,34 @@
+// American Format: 12/31/2000 5:00 pm
+// Thanks, Wes Hays
+Date.prototype.toFormattedString = function(include_time){
+ str = Date.padded2(this.getMonth() + 1) + '/' +Date.padded2(this.getDate()) + '/' + this.getFullYear();
+
+ if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() + " " + this.getAMPM() }
+ return str;
+}
+
+Date.parseFormattedString = function (string) {
+ // Test these with and without the time
+ // 11/11/1111 12pm
+ // 11/11/1111 1pm
+ // 1/11/1111 10:10pm
+ // 11/1/1111 01pm
+ // 1/1/1111 01:11pm
+ // 1/1/1111 1:11pm
+ var regexp = "(([0-1]?[0-9])\/[0-3]?[0-9]\/[0-9]{4}) *([0-9]{1,2}(:[0-9]{2})? *(am|pm))?";
+ var d = string.match(new RegExp(regexp, "i"));
+ if (d==null) {
+ return Date.parse(string); // Give javascript a chance to parse it.
+ }
+
+ mdy = d[1].split('/');
+ hrs = 0;
+ mts = 0;
+ if(d[3] != null) {
+ hrs = parseInt(d[3].split('')[0], 10);
+ if(d[5].toLowerCase() == 'pm') { hrs += 12; } // Add 12 more to hrs
+ mts = d[4].split(':')[1];
+ }
+
+ return new Date(mdy[2], parseInt(mdy[0], 10)-1, mdy[1], hrs, mts, 0);
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_db.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_db.js
new file mode 100644
index 00000000..a3f10d44
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_db.js
@@ -0,0 +1,27 @@
+// DB No Seconds Format: 2007-12-05 12:00
+
+Date.padded2 = function(hour) { padded2 = hour.toString(); if ((parseInt(hour) < 10) || (parseInt(hour) == null)) padded2="0" + padded2; return padded2; }
+Date.prototype.getAMPMHour = function() { hour=Date.padded2(this.getHours()); return (hour == null) ? 00 : (hour > 24 ? hour - 24 : hour ) }
+Date.prototype.getAMPM = function() { return (this.getHours() < 12) ? "" : ""; }
+
+Date.prototype.toFormattedString = function(include_time){
+ str = this.getFullYear() + "-" + (this.getMonth() + 1) + "-" + Date.padded2(this.getDate());
+ if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() }
+ return str;
+}
+
+Date.parseFormattedString = function (string) {
+ var regexp = '([0-9]{4})-(([0-9]{1,2})-(([0-9]{1,2})( ([0-9]{1,2}):([0-9]{2})? *)?)?)?';
+ var d = string.match(new RegExp(regexp, "i"));
+ if (d==null) return Date.parse(string); // at least give javascript a crack at it.
+ var offset = 0;
+ var date = new Date(d[1], 0, 1);
+ if (d[3]) { date.setMonth(d[3] - 1); }
+ if (d[5]) { date.setDate(d[5]); }
+ if (d[7]) {
+ date.setHours(parseInt(d[7], 10));
+ }
+ if (d[8]) { date.setMinutes(d[8]); }
+ if (d[10]) { date.setSeconds(d[10]); }
+ return date;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_euro_24hr.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_euro_24hr.js
new file mode 100644
index 00000000..7249fcb9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_euro_24hr.js
@@ -0,0 +1,7 @@
+// Formats date and time as "01 January 2000 17:00"
+Date.prototype.toFormattedString = function(include_time)
+{
+ str = Date.padded2(this.getDate()) + " " + Date.months[this.getMonth()] + " " + this.getFullYear();
+ if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() }
+ return str;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_finnish.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_finnish.js
new file mode 100644
index 00000000..ef86c26b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_finnish.js
@@ -0,0 +1,24 @@
+Date.padded2 = function(hour) { padded2 = hour.toString(); if ((parseInt(hour) < 10) || (parseInt(hour) == null)) padded2="0" + padded2; return padded2; }
+Date.prototype.getAMPMHour = function() { hour=Date.padded2(this.getHours()); return (hour == null) ? 00 : (hour > 24 ? hour - 24 : hour ) }
+Date.prototype.getAMPM = function() { return (this.getHours() < 12) ? "" : ""; }
+
+Date.prototype.toFormattedString = function(include_time){
+ str = this.getDate() + "." + (this.getMonth() + 1) + "." + this.getFullYear();
+ if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() }
+ return str;
+}
+Date.parseFormattedString = function (string) {
+ var regexp = '([0-9]{1,2})\.(([0-9]{1,2})\.(([0-9]{4})( ([0-9]{1,2}):([0-9]{2})? *)?)?)?';
+ var d = string.match(new RegExp(regexp, "i"));
+ if (d==null) return Date.parse(string); // at least give javascript a crack at it.
+ var offset = 0;
+ var date = new Date(d[5], 0, 1);
+ if (d[3]) { date.setMonth(d[3] - 1); }
+ if (d[5]) { date.setDate(d[1]); }
+ if (d[7]) {
+ date.setHours(parseInt(d[7], 10));
+ }
+ if (d[8]) { date.setMinutes(d[8]); }
+ if (d[10]) { date.setSeconds(d[10]); }
+ return date;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_hyphen_ampm.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_hyphen_ampm.js
new file mode 100644
index 00000000..528eb618
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_hyphen_ampm.js
@@ -0,0 +1,36 @@
+Date.prototype.toFormattedString = function(include_time){
+ str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate());
+
+if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() + " " + this.getAMPM() }
+return str;
+}
+
+Date.parseFormattedString = function (string) {
+ var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})" +
+ "( ([0-9]{1,2}):([0-9]{2})? *(pm|am)" +
+ "?)?)?)?";
+ var d = string.match(new RegExp(regexp, "i"));
+ if (d==null) return Date.parse(string); // at least give javascript a crack at it.
+ var offset = 0;
+ var date = new Date(d[1], 0, 1);
+ if (d[3]) { date.setMonth(d[3] - 1); }
+ if (d[5]) { date.setDate(d[5]); }
+ if (d[7]) {
+ hours = parseInt(d[7], 10);
+ offset=0;
+ is_pm = (d[9].toLowerCase()=="pm")
+ if (is_pm && hours <= 11) hours+=12;
+ if (!is_pm && hours == 12) hours=0;
+ date.setHours(hours);
+
+ }
+ if (d[8]) { date.setMinutes(d[8]); }
+ if (d[10]) { date.setSeconds(d[10]); }
+ if (d[12]) { date.setMilliseconds(Number("0." + d[12]) * 1000); }
+ if (d[14]) {
+ offset = (Number(d[16]) * 60) + Number(d[17]);
+ offset *= ((d[15] == '-') ? 1 : -1);
+ }
+
+ return date;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_iso_date.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_iso_date.js
new file mode 100644
index 00000000..ea7aa735
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_iso_date.js
@@ -0,0 +1,46 @@
+Date.prototype.toFormattedString = function(include_time) {
+ var hour;
+ var str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate());
+ if (include_time) {
+ hour = this.getHours();
+ str += " " + this.getHours() + ":" + this.getPaddedMinutes();
+ }
+ return str;
+};
+
+Date.parseFormattedString = function (string) {
+
+ var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})" +
+ "( ([0-9]{1,2}):([0-9]{2})?" +
+ "?)?)?)?";
+
+ var d = string.match(new RegExp(regexp, "i"));
+ if (d === null) {
+ return Date.parse(string); // at least give javascript a crack at it.
+ }
+ var offset = 0;
+ var date = new Date(d[1], 0, 1);
+ if (d[3]) {
+ date.setMonth(d[3] - 1);
+ }
+ if (d[5]) {
+ date.setDate(d[5]);
+ }
+ if (d[7]) {
+ date.setHours(d[7]);
+ }
+ if (d[8]) {
+ date.setMinutes(d[8]);
+ }
+ if (d[0]) {
+ date.setSeconds(d[0]);
+ }
+ if (d[2]) {
+ date.setMilliseconds(Number("0." + d[2]));
+ }
+ if (d[4]) {
+ offset = (Number(d[6])) + Number(d[8]);
+ offset = ((d[5] == '-') ? 1 : -1);
+ }
+ return date;
+};
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_italian.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_italian.js
new file mode 100644
index 00000000..249fcb59
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_italian.js
@@ -0,0 +1,24 @@
+// Italian Format: 31/12/2000 23:00
+// Thanks, Bigonazzi!
+
+Date.prototype.toFormattedString = function(include_time){
+ str = this.getDate() + "/" + (this.getMonth() + 1) + "/" + this.getFullYear();
+ if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() }
+ return str;
+}
+
+Date.parseFormattedString = function (string) {
+ var regexp = '([0-9]{1,2})/(([0-9]{1,2})/(([0-9]{4})( ([0-9]{1,2}):([0-9]{2})? *)?)?)?';
+ var d = string.match(new RegExp(regexp, "i"));
+ if (d==null) return Date.parse(string); // at least give javascript a crack at it.
+ var offset = 0;
+ var date = new Date(d[5], 0, 1);
+ if (d[3]) { date.setMonth(d[3] - 1); }
+ if (d[5]) { date.setDate(d[1]); }
+ if (d[7]) {
+ date.setHours(parseInt(d[7], 10));
+ }
+ if (d[8]) { date.setMinutes(d[8]); }
+ if (d[10]) { date.setSeconds(d[10]); }
+ return date;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_mayor.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_mayor.js
new file mode 100644
index 00000000..dffba7d9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/format_mayor.js
@@ -0,0 +1,42 @@
+Date.prototype.toFormattedString = function(include_time){
+ str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate());
+ if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() }
+ return str;
+}
+
+Date.parseFormattedString = function (string) {
+
+ var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})" +
+ "( ([0-9]{1,2}):([0-9]{2})?" +
+ "?)?)?)?";
+
+ var d = string.match(new RegExp(regexp, "i"));
+ if (d === null) {
+ return Date.parse(string); // at least give javascript a crack at it.
+ }
+ var offset = 0;
+ var date = new Date(d[1], 0, 1);
+ if (d[3]) {
+ date.setMonth(d[3] - 1);
+ }
+ if (d[5]) {
+ date.setDate(d[5]);
+ }
+ if (d[7]) {
+ date.setHours(d[7]);
+ }
+ if (d[8]) {
+ date.setMinutes(d[8]);
+ }
+ if (d[0]) {
+ date.setSeconds(d[0]);
+ }
+ if (d[2]) {
+ date.setMilliseconds(Number("0." + d[2]));
+ }
+ if (d[4]) {
+ offset = (Number(d[6])) + Number(d[8]);
+ offset = ((d[5] == '-') ? 1 : -1);
+ }
+ return date;
+};
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/fi.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/fi.js
new file mode 100644
index 00000000..443c9103
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/fi.js
@@ -0,0 +1,10 @@
+Date.weekdays = $w("Ma Ti Ke To Pe La Su");
+Date.months = $w("Tammikuu Helmikuu Maaliskuu Huhtikuu Toukokuu Keskuu Heinkuu Elokuu Syyskuu Lokakuu Marraskuu Joulukuu" );
+
+Date.first_day_of_week = 1
+
+_translations = {
+ "OK": "OK",
+ "Now": "Nyt",
+ "Today": "Tnn"
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/hu.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/hu.js
new file mode 100644
index 00000000..6b36f701
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/hu.js
@@ -0,0 +1,10 @@
+Date.weekdays = $w("H K Sz Cs P Szo V");
+Date.months = $w("Január Február Március Április Május Június Július Augusztus Szeptember Október November December" );
+
+Date.first_day_of_week = 1
+
+_translations = {
+ "OK": "OK",
+ "Now": "Most",
+ "Today": "Ma"
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/jp.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/jp.js
new file mode 100644
index 00000000..7cca6fd5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/jp.js
@@ -0,0 +1,10 @@
+Date.weekdays = $w("一 二 三 四 五 六 七");
+Date.months = $w("一 二 三 四 五 六 七 八 九 十 十一 十二" );
+
+Date.first_day_of_week = 1
+
+_translations = {
+ "OK": "确定",
+ "Now": "现在",
+ "Today": "今天"
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/pl.js b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/pl.js
new file mode 100644
index 00000000..af1b78a1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/javascripts/calendar_date_select/locale/pl.js
@@ -0,0 +1,10 @@
+Date.weekdays = $w('P W Ś C P S N');
+Date.months = $w('Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień');
+
+Date.first_day_of_week = 1
+
+_translations = {
+ "OK": "OK",
+ "Now": "Teraz",
+ "Today": "Dziś"
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/blue.css b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/blue.css
new file mode 100644
index 00000000..31a5cbde
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/blue.css
@@ -0,0 +1,130 @@
+.calendar_date_select {
+ color:white;
+ border:#777 1px solid;
+ display:block;
+ width:195px;
+ z-index: 1000;
+}
+/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */
+iframe.ie6_blocker {
+ position: absolute;
+ z-index: 999;
+}
+
+.calendar_date_select thead th {
+ font-weight:bold;
+ background-color: #000;
+ border-top:1px solid #777;
+ border-bottom:2px solid #334;
+ color: white !important;
+}
+
+.calendar_date_select .cds_buttons {
+ text-align:center;
+ padding:5px 0px;
+ background-color: #000055;
+}
+
+.calendar_date_select .cds_footer {
+ background-color: black;
+ padding:3px;
+ font-size:12px;
+ text-align:center;
+}
+
+.calendar_date_select table {
+ margin: 0px;
+ padding: 0px;
+}
+
+
+.calendar_date_select .cds_header {
+ background-color: #ccc;
+ border-bottom: 2px solid #aaa;
+ text-align:center;
+}
+
+.calendar_date_select .cds_header span {
+ font-size:15px;
+ color: black;
+ font-weight: bold;
+}
+
+.calendar_date_select select { font-size:11px;}
+
+.calendar_date_select .cds_header a:hover {
+ color: white;
+}
+.calendar_date_select .cds_header a {
+ width:22px;
+ height:20px;
+ text-decoration: none;
+ font-size:14px;
+ color:black !important;
+}
+
+.calendar_date_select .cds_header a.prev {
+ float:left;
+}
+
+.calendar_date_select .cds_header a.next {
+ float:right;
+}
+
+.calendar_date_select .cds_header a.close {
+ float:right;
+ display:none;
+}
+
+
+.calendar_date_select .cds_header select.month {
+ width:90px;
+}
+
+.calendar_date_select .cds_header select.year {
+ width:61px;
+}
+
+.calendar_date_select .cds_buttons a {
+ color: white;
+ font-size: 9px;
+}
+
+.calendar_date_select td {
+ background-color: #000066;
+ font-size:12px;
+ width: 24px;
+ height: 21px;
+ text-align:center;
+ vertical-align: middle;
+}
+.calendar_date_select td.weekend {
+ background-color: #00005a;
+}
+
+.calendar_date_select td div.other {
+ color: #4C5593;
+}
+
+.calendar_date_select tbody td {
+ border-bottom: 1px solid #000044;
+}
+.calendar_date_select td.selected {
+ background-color:white;
+ color:black;
+}
+
+.calendar_date_select td:hover {
+ background-color:#ccc;
+}
+
+.calendar_date_select td.disabled div {
+ color: #000044;
+}
+.calendar_date_select td.today {
+ border: 1px dashed blue;
+}
+
+.fieldWithErrors .calendar_date_select {
+ border: 2px solid red;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/default.css b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/default.css
new file mode 100644
index 00000000..c7183838
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/default.css
@@ -0,0 +1,135 @@
+.calendar_date_select {
+ color:white;
+ border:#777 1px solid;
+ display:block;
+ width:195px;
+ z-index: 1000;
+}
+/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */
+iframe.ie6_blocker {
+ position: absolute;
+ z-index: 999;
+}
+
+.calendar_date_select thead th {
+ font-weight:bold;
+ background-color: #aaa;
+ border-top:1px solid #777;
+ border-bottom:1px solid #777;
+ color: white !important;
+}
+
+.calendar_date_select .cds_buttons {
+ text-align:center;
+ padding:5px 0px;
+ background-color: #555;
+}
+
+.calendar_date_select .cds_footer {
+ background-color: black;
+ padding:3px;
+ font-size:12px;
+ text-align:center;
+}
+
+.calendar_date_select table {
+ margin: 0px;
+ padding: 0px;
+}
+
+
+.calendar_date_select .cds_header {
+ background-color: #ccc;
+ border-bottom: 2px solid #aaa;
+ text-align:center;
+}
+
+.calendar_date_select .cds_header span {
+ font-size:15px;
+ color: black;
+ font-weight: bold;
+}
+
+.calendar_date_select select { font-size:11px;}
+
+.calendar_date_select .cds_header a:hover {
+ color: white;
+}
+.calendar_date_select .cds_header a {
+ width:22px;
+ height:20px;
+ text-decoration: none;
+ font-size:14px;
+ color:black !important;
+}
+
+.calendar_date_select .cds_header a.prev {
+ float:left;
+}
+.calendar_date_select .cds_header a.next {
+ float:right;
+}
+
+.calendar_date_select .cds_header a.close {
+ float:right;
+ display:none;
+}
+
+.calendar_date_select .cds_header select.month {
+ width:90px;
+}
+
+.calendar_date_select .cds_header select.year {
+ width:61px;
+}
+.calendar_date_select .cds_buttons a {
+ color: white;
+ font-size: 9px;
+}
+
+.calendar_date_select td {
+ font-size:12px;
+ width: 24px;
+ height: 21px;
+ text-align:center;
+ vertical-align: middle;
+ background-color: #fff;
+}
+.calendar_date_select td.weekend {
+ background-color: #eee;
+ border-left:1px solid #ddd;
+ border-right:1px solid #ddd;
+}
+
+.calendar_date_select td div {
+ color: #000;
+}
+.calendar_date_select td div.other {
+ color: #ccc;
+}
+.calendar_date_select td.selected div {
+ color:white;
+}
+
+.calendar_date_select tbody td {
+ border-bottom: 1px solid #ddd;
+}
+.calendar_date_select td.selected {
+ background-color:#777;
+}
+
+.calendar_date_select td:hover {
+ background-color:#ccc;
+}
+
+.calendar_date_select td.today {
+ border: 1px dashed #999;
+}
+
+.calendar_date_select td.disabled div {
+ color: #e6e6e6;
+}
+
+.fieldWithErrors .calendar_date_select {
+ border: 2px solid red;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/plain.css b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/plain.css
new file mode 100644
index 00000000..f5e57dd2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/plain.css
@@ -0,0 +1,128 @@
+.calendar_date_select {
+ border:#777 1px solid;
+ display:block;
+ width:195px;
+ z-index: 1000;
+ background-color:white;
+}
+/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */
+iframe.ie6_blocker {
+ position: absolute;
+ z-index: 999;
+}
+
+.calendar_date_select thead th {
+ color: black !important;
+ font-weight:bold;
+}
+
+.calendar_date_select .cds_buttons {
+ text-align:center;
+ padding:5px 0px;
+}
+
+.calendar_date_select .cds_footer {
+ padding:3px;
+ font-size:10px;
+ text-align:center;
+}
+
+.calendar_date_select table {
+ margin: 0px;
+ padding: 0px;
+}
+
+
+.calendar_date_select .cds_header {
+ text-align:center;
+}
+
+.calendar_date_select .cds_header * {
+ border:0px;
+ background-color:white;
+}
+
+.calendar_date_select .cds_header span {
+ font-size:15px;
+ color: black;
+ font-weight: bold;
+}
+
+.calendar_date_select select { font-size:11px;}
+
+.calendar_date_select .cds_header a:hover {
+ color: white;
+}
+.calendar_date_select .cds_header a {
+ width:22px;
+ height:20px;
+ text-decoration: none;
+ font-size:14px;
+ color:black !important;
+}
+
+.calendar_date_select .cds_header a.prev {
+ float:left;
+}
+.calendar_date_select .cds_header a.next {
+ float:right;
+}
+.calendar_date_select .cds_header a.close {
+ float:right;
+ display:none;
+}
+
+.calendar_date_select .cds_header select.month {
+ width:90px;
+}
+
+.calendar_date_select .cds_header select.year {
+ width:61px;
+}
+
+.calendar_date_select .cds_buttons a {
+ color: black;
+ font-size: 9px;
+}
+.calendar_date_select td {
+ font-size:12px;
+ width: 24px;
+ height: 21px;
+ text-align:center;
+ vertical-align: middle;
+ background-color: #fff;
+}
+.calendar_date_select td.weekend {
+}
+
+.calendar_date_select td div {
+ color: #000;
+}
+.calendar_date_select td div.other {
+ color: #ccc;
+}
+.calendar_date_select td.selected div {
+ color:white;
+}
+
+.calendar_date_select tbody td {
+}
+.calendar_date_select td.selected {
+ background-color:#777;
+}
+
+.calendar_date_select td:hover {
+ background-color:#ccc;
+}
+
+.calendar_date_select td.today {
+ border: 1px dashed #999;
+}
+
+.calendar_date_select td.disabled div {
+ color: #e6e6e6;
+}
+
+.fieldWithErrors .calendar_date_select {
+ border: 2px solid red;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/red.css b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/red.css
new file mode 100644
index 00000000..a2ff2f24
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/red.css
@@ -0,0 +1,135 @@
+.calendar_date_select {
+ color:white;
+ border:#777 1px solid;
+ display:block;
+ width:195px;
+ z-index: 1000;
+}
+/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */
+iframe.ie6_blocker {
+ position: absolute;
+ z-index: 999;
+}
+
+.calendar_date_select thead th {
+ font-weight:bold;
+ background-color: #E7E8E8;
+ border-bottom:2px solid black;
+ color: black !important;
+}
+
+.calendar_date_select .cds_buttons {
+ text-align:center;
+ padding:5px 0px;
+ background-color: #5f0000;
+}
+
+.calendar_date_select .cds_footer {
+ background-color: black;
+ padding:3px;
+ text-align:center;
+}
+
+.calendar_date_select table {
+ margin: 0px;
+ padding: 0px;
+}
+
+
+.calendar_date_select .cds_header {
+ background-color: #ccc;
+ border-bottom: 2px solid #aaa;
+ text-align:center;
+}
+
+.calendar_date_select .cds_header span {
+ font-size:15px;
+ color: black;
+ font-weight: bold;
+}
+
+.calendar_date_select select { font-size:11px;}
+
+.calendar_date_select .cds_header a:hover {
+ color: white;
+}
+.calendar_date_select .cds_header a {
+ width:22px;
+ height:20px;
+ text-decoration: none;
+ font-size:14px;
+ color:black !important;
+}
+
+.calendar_date_select .cds_header a.prev {
+ float:left;
+}
+.calendar_date_select .cds_header a.next {
+ float:right;
+}
+
+.calendar_date_select .cds_header a.close {
+ float:right;
+ display:none;
+}
+
+.calendar_date_select .cds_header select.month {
+ width:90px;
+}
+
+.calendar_date_select .cds_header select.year {
+ width:61px;
+}
+
+.calendar_date_select .cds_buttons a {
+ color: white;
+ font-size: 9px;
+}
+
+
+.calendar_date_select td {
+ background-color: #660000;
+ font-size:12px;
+ width: 24px;
+ height: 21px;
+ text-align:center;
+ vertical-align: middle;
+}
+.calendar_date_select td.weekend {
+ background-color: #5a0000;
+}
+
+.calendar_date_select td div {
+ color:#fff;
+}
+.calendar_date_select td div.other {
+ color: #93554C;
+}
+.calendar_date_select td.selected div {
+ color:black;
+}
+
+
+.calendar_date_select tbody td {
+ border-bottom: 1px solid #550000;
+}
+.calendar_date_select tbody td.selected {
+ background-color:white;
+ color:black;
+}
+
+.calendar_date_select tbody td:hover {
+ background-color:#ccc;
+}
+
+.calendar_date_select tbody td.today {
+ border: 1px dashed red;
+}
+
+.calendar_date_select td.disabled div {
+ color: #440000;
+}
+
+.fieldWithErrors .calendar_date_select {
+ border: 2px solid red;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/silver.css b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/silver.css
new file mode 100644
index 00000000..6e70cc68
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/silver.css
@@ -0,0 +1,133 @@
+.calendar_date_select {
+ color:white;
+ border:#777 1px solid;
+ display:block;
+ width:195px;
+ z-index: 1000;
+}
+/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */
+iframe.ie6_blocker {
+ position: absolute;
+ z-index: 999;
+}
+
+.calendar_date_select thead th {
+ font-weight:bold;
+ background-color: #000;
+ border-top:1px solid #777;
+ border-bottom:2px solid #333;
+ color: white !important;
+}
+
+.calendar_date_select .cds_buttons {
+ text-align:center;
+ padding:5px 0px;
+ background-color: #555;
+}
+
+.calendar_date_select .cds_footer {
+ background-color: black;
+ padding:3px;
+ font-size:12px;
+ text-align:center;
+}
+
+.calendar_date_select table {
+ margin: 0px;
+ padding: 0px;
+}
+
+
+.calendar_date_select .cds_header {
+ background-color: #ccc;
+ border-bottom: 2px solid #aaa;
+ text-align:center;
+}
+
+.calendar_date_select .cds_header span {
+ font-size:15px;
+ color: black;
+ font-weight: bold;
+}
+
+.calendar_date_select select { font-size:11px;}
+
+.calendar_date_select .cds_header a:hover {
+ color: white;
+}
+.calendar_date_select .cds_header a {
+ width:22px;
+ height:20px;
+ text-decoration: none;
+ font-size:14px;
+ color:black !important;
+}
+
+.calendar_date_select .cds_header a.prev {
+ float:left;
+}
+.calendar_date_select .cds_header a.next {
+ float:right;
+}
+.calendar_date_select .cds_header a.close {
+ float:right;
+ display:none;
+}
+
+.calendar_date_select .cds_header select.month {
+ width:90px;
+}
+
+.calendar_date_select .cds_header select.year {
+ width:61px;
+}
+
+.calendar_date_select .cds_buttons a {
+ color: white;
+ font-size: 9px;
+}
+.calendar_date_select td {
+ font-size:12px;
+ width: 24px;
+ height: 21px;
+ text-align:center;
+ vertical-align: middle;
+ background-color: #666666;
+}
+.calendar_date_select td.weekend {
+ background-color: #606060;
+}
+
+.calendar_date_select td div {
+ color: #fff;
+}
+.calendar_date_select td div.other {
+ color: #888;
+}
+.calendar_date_select td.selected div {
+ color:black;
+}
+
+.calendar_date_select tbody td {
+ border-bottom: 1px solid #555;
+}
+.calendar_date_select td.selected {
+ background-color:white;
+}
+
+.calendar_date_select td:hover {
+ background-color:#ccc;
+}
+
+.calendar_date_select td.today {
+ border: 1px dashed #999;
+}
+
+.calendar_date_select td.disabled div {
+ color: #454545;
+}
+
+
+.fieldWithErrors .calendar_date_select {
+ border: 2px solid red;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/ColReorder.min.js b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/ColReorder.min.js
new file mode 100644
index 00000000..111f4b81
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/ColReorder.min.js
@@ -0,0 +1,33 @@
+/*
+ * File: ColReorder.min.js
+ * Version: 1.0.8
+ * Author: Allan Jardine (www.sprymedia.co.uk)
+ *
+ * Copyright 2010-2012 Allan Jardine, all rights reserved.
+ *
+ * This source file is free software, under either the GPL v2 license or a
+ * BSD (3 point) style license, as supplied with this software.
+ *
+ * This source file is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
+ */
+(function(f,o,g){function m(a){for(var b=[],d=0,c=a.length;d<c;d++)b[a[d]]=d;return b}function j(a,b,d){b=a.splice(b,1)[0];a.splice(d,0,b)}function n(a,b,d){for(var c=[],e=0,f=a.childNodes.length;e<f;e++)1==a.childNodes[e].nodeType&&c.push(a.childNodes[e]);b=c[b];null!==d?a.insertBefore(b,c[d]):a.appendChild(b)}f.fn.dataTableExt.oApi.fnColReorder=function(a,b,d){var c,e,h,l,k=a.aoColumns.length,i;if(b!=d)if(0>b||b>=k)this.oApi._fnLog(a,1,"ColReorder 'from' index is out of bounds: "+b);else if(0>d||
+d>=k)this.oApi._fnLog(a,1,"ColReorder 'to' index is out of bounds: "+d);else{var g=[];c=0;for(e=k;c<e;c++)g[c]=c;j(g,b,d);g=m(g);c=0;for(e=a.aaSorting.length;c<e;c++)a.aaSorting[c][0]=g[a.aaSorting[c][0]];if(null!==a.aaSortingFixed){c=0;for(e=a.aaSortingFixed.length;c<e;c++)a.aaSortingFixed[c][0]=g[a.aaSortingFixed[c][0]]}c=0;for(e=k;c<e;c++){i=a.aoColumns[c];h=0;for(l=i.aDataSort.length;h<l;h++)i.aDataSort[h]=g[i.aDataSort[h]]}c=0;for(e=k;c<e;c++)i=a.aoColumns[c],"number"==typeof i.mData&&(i.mData=
+g[i.mData],i.fnGetData=a.oApi._fnGetObjectDataFn(i.mData),i.fnSetData=a.oApi._fnSetObjectDataFn(i.mData));if(a.aoColumns[b].bVisible){l=this.oApi._fnColumnIndexToVisible(a,b);i=null;for(c=d<b?d:d+1;null===i&&c<k;)i=this.oApi._fnColumnIndexToVisible(a,c),c++;h=a.nTHead.getElementsByTagName("tr");c=0;for(e=h.length;c<e;c++)n(h[c],l,i);if(null!==a.nTFoot){h=a.nTFoot.getElementsByTagName("tr");c=0;for(e=h.length;c<e;c++)n(h[c],l,i)}c=0;for(e=a.aoData.length;c<e;c++)null!==a.aoData[c].nTr&&n(a.aoData[c].nTr,
+l,i)}j(a.aoColumns,b,d);j(a.aoPreSearchCols,b,d);c=0;for(e=a.aoData.length;c<e;c++)f.isArray(a.aoData[c]._aData)&&j(a.aoData[c]._aData,b,d),j(a.aoData[c]._anHidden,b,d);c=0;for(e=a.aoHeader.length;c<e;c++)j(a.aoHeader[c],b,d);if(null!==a.aoFooter){c=0;for(e=a.aoFooter.length;c<e;c++)j(a.aoFooter[c],b,d)}c=0;for(e=k;c<e;c++)f(a.aoColumns[c].nTh).unbind("click"),this.oApi._fnSortAttachListener(a,a.aoColumns[c].nTh,c);f(a.oInstance).trigger("column-reorder",[a,{iFrom:b,iTo:d,aiInvertMapping:g}]);"undefined"!=
+typeof a.oInstance._oPluginFixedHeader&&a.oInstance._oPluginFixedHeader.fnUpdate()}};ColReorder=function(a,b){(!this.CLASS||"ColReorder"!=this.CLASS)&&alert("Warning: ColReorder must be initialised with the keyword 'new'");"undefined"==typeof b&&(b={});this.s={dt:null,init:b,fixed:0,dropCallback:null,mouse:{startX:-1,startY:-1,offsetX:-1,offsetY:-1,target:-1,targetIndex:-1,fromIndex:-1},aoTargets:[]};this.dom={drag:null,pointer:null};this.s.dt=a.oInstance.fnSettings();this._fnConstruct();a.oApi._fnCallbackReg(a,
+"aoDestroyCallback",jQuery.proxy(this._fnDestroy,this),"ColReorder");ColReorder.aoInstances.push(this);return this};ColReorder.prototype={fnReset:function(){for(var a=[],b=0,d=this.s.dt.aoColumns.length;b<d;b++)a.push(this.s.dt.aoColumns[b]._ColReorder_iOrigCol);this._fnOrderColumns(a)},_fnConstruct:function(){var a=this,b,d;"undefined"!=typeof this.s.init.iFixedColumns&&(this.s.fixed=this.s.init.iFixedColumns);"undefined"!=typeof this.s.init.fnReorderCallback&&(this.s.dropCallback=this.s.init.fnReorderCallback);
+b=0;for(d=this.s.dt.aoColumns.length;b<d;b++)b>this.s.fixed-1&&this._fnMouseListener(b,this.s.dt.aoColumns[b].nTh),this.s.dt.aoColumns[b]._ColReorder_iOrigCol=b;this.s.dt.oApi._fnCallbackReg(this.s.dt,"aoStateSaveParams",function(c,b){a._fnStateSave.call(a,b)},"ColReorder_State");var c=null;"undefined"!=typeof this.s.init.aiOrder&&(c=this.s.init.aiOrder.slice());this.s.dt.oLoadedState&&("undefined"!=typeof this.s.dt.oLoadedState.ColReorder&&this.s.dt.oLoadedState.ColReorder.length==this.s.dt.aoColumns.length)&&
+(c=this.s.dt.oLoadedState.ColReorder);if(c)if(a.s.dt._bInitComplete)b=m(c),a._fnOrderColumns.call(a,b);else{var e=!1;this.s.dt.aoDrawCallback.push({fn:function(){if(!a.s.dt._bInitComplete&&!e){e=true;var b=m(c);a._fnOrderColumns.call(a,b)}},sName:"ColReorder_Pre"})}},_fnOrderColumns:function(a){if(a.length!=this.s.dt.aoColumns.length)this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"ColReorder - array reorder does not match known number of columns. Skipping.");else{for(var b=0,d=a.length;b<d;b++){var c=
+f.inArray(b,a);b!=c&&(j(a,c,b),this.s.dt.oInstance.fnColReorder(c,b))}(""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY)&&this.s.dt.oInstance.fnAdjustColumnSizing();this.s.dt.oInstance.oApi._fnSaveState(this.s.dt)}},_fnStateSave:function(a){var b,d,c,e=this.s.dt;for(b=0;b<a.aaSorting.length;b++)a.aaSorting[b][0]=e.aoColumns[a.aaSorting[b][0]]._ColReorder_iOrigCol;aSearchCopy=f.extend(!0,[],a.aoSearchCols);a.ColReorder=[];b=0;for(d=e.aoColumns.length;b<d;b++)c=e.aoColumns[b]._ColReorder_iOrigCol,
+a.aoSearchCols[c]=aSearchCopy[b],a.abVisCols[c]=e.aoColumns[b].bVisible,a.ColReorder.push(c)},_fnMouseListener:function(a,b){var d=this;f(b).bind("mousedown.ColReorder",function(a){a.preventDefault();d._fnMouseDown.call(d,a,b)})},_fnMouseDown:function(a,b){var d=this,c=this.s.dt.aoColumns,e="TH"==a.target.nodeName?a.target:f(a.target).parents("TH")[0],e=f(e).offset();this.s.mouse.startX=a.pageX;this.s.mouse.startY=a.pageY;this.s.mouse.offsetX=a.pageX-e.left;this.s.mouse.offsetY=a.pageY-e.top;this.s.mouse.target=
+b;this.s.mouse.targetIndex=f("th",b.parentNode).index(b);this.s.mouse.fromIndex=this.s.dt.oInstance.oApi._fnVisibleToColumnIndex(this.s.dt,this.s.mouse.targetIndex);this.s.aoTargets.splice(0,this.s.aoTargets.length);this.s.aoTargets.push({x:f(this.s.dt.nTable).offset().left,to:0});for(var h=e=0,j=c.length;h<j;h++)h!=this.s.mouse.fromIndex&&e++,c[h].bVisible&&this.s.aoTargets.push({x:f(c[h].nTh).offset().left+f(c[h].nTh).outerWidth(),to:e});0!==this.s.fixed&&this.s.aoTargets.splice(0,this.s.fixed);
+f(g).bind("mousemove.ColReorder",function(a){d._fnMouseMove.call(d,a)});f(g).bind("mouseup.ColReorder",function(a){d._fnMouseUp.call(d,a)})},_fnMouseMove:function(a){if(null===this.dom.drag){if(5>Math.pow(Math.pow(a.pageX-this.s.mouse.startX,2)+Math.pow(a.pageY-this.s.mouse.startY,2),0.5))return;this._fnCreateDragNode()}this.dom.drag.style.left=a.pageX-this.s.mouse.offsetX+"px";this.dom.drag.style.top=a.pageY-this.s.mouse.offsetY+"px";for(var b=!1,d=1,c=this.s.aoTargets.length;d<c;d++)if(a.pageX<
+this.s.aoTargets[d-1].x+(this.s.aoTargets[d].x-this.s.aoTargets[d-1].x)/2){this.dom.pointer.style.left=this.s.aoTargets[d-1].x+"px";this.s.mouse.toIndex=this.s.aoTargets[d-1].to;b=!0;break}b||(this.dom.pointer.style.left=this.s.aoTargets[this.s.aoTargets.length-1].x+"px",this.s.mouse.toIndex=this.s.aoTargets[this.s.aoTargets.length-1].to)},_fnMouseUp:function(){f(g).unbind("mousemove.ColReorder");f(g).unbind("mouseup.ColReorder");null!==this.dom.drag&&(g.body.removeChild(this.dom.drag),g.body.removeChild(this.dom.pointer),
+this.dom.drag=null,this.dom.pointer=null,this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex),(""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY)&&this.s.dt.oInstance.fnAdjustColumnSizing(),null!==this.s.dropCallback&&this.s.dropCallback.call(this),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt))},_fnCreateDragNode:function(){var a=this;this.dom.drag=f(this.s.dt.nTHead.parentNode).clone(!0)[0];for(this.dom.drag.className+=" DTCR_clonedTable";0<this.dom.drag.getElementsByTagName("caption").length;)this.dom.drag.removeChild(this.dom.drag.getElementsByTagName("caption")[0]);
+for(;0<this.dom.drag.getElementsByTagName("tbody").length;)this.dom.drag.removeChild(this.dom.drag.getElementsByTagName("tbody")[0]);for(;0<this.dom.drag.getElementsByTagName("tfoot").length;)this.dom.drag.removeChild(this.dom.drag.getElementsByTagName("tfoot")[0]);f("thead tr:eq(0)",this.dom.drag).each(function(){f("th",this).eq(a.s.mouse.targetIndex).siblings().remove()});f("tr",this.dom.drag).height(f("tr:eq(0)",a.s.dt.nTHead).height());f("thead tr:gt(0)",this.dom.drag).remove();f("thead th:eq(0)",
+this.dom.drag).each(function(){this.style.width=f("th:eq("+a.s.mouse.targetIndex+")",a.s.dt.nTHead).width()+"px"});this.dom.drag.style.position="absolute";this.dom.drag.style.top="0px";this.dom.drag.style.left="0px";this.dom.drag.style.width=f("th:eq("+a.s.mouse.targetIndex+")",a.s.dt.nTHead).outerWidth()+"px";this.dom.pointer=g.createElement("div");this.dom.pointer.className="DTCR_pointer";this.dom.pointer.style.position="absolute";""===this.s.dt.oScroll.sX&&""===this.s.dt.oScroll.sY?(this.dom.pointer.style.top=
+f(this.s.dt.nTable).offset().top+"px",this.dom.pointer.style.height=f(this.s.dt.nTable).height()+"px"):(this.dom.pointer.style.top=f("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top+"px",this.dom.pointer.style.height=f("div.dataTables_scroll",this.s.dt.nTableWrapper).height()+"px");g.body.appendChild(this.dom.pointer);g.body.appendChild(this.dom.drag)},_fnDestroy:function(){for(var a=0,b=ColReorder.aoInstances.length;a<b;a++)if(ColReorder.aoInstances[a]===this){ColReorder.aoInstances.splice(a,
+1);break}f(this.s.dt.nTHead).find("*").unbind(".ColReorder");this.s=this.s.dt.oInstance._oPluginColReorder=null}};ColReorder.aoInstances=[];ColReorder.fnReset=function(a){for(var b=0,d=ColReorder.aoInstances.length;b<d;b++)ColReorder.aoInstances[b].s.dt.oInstance==a&&ColReorder.aoInstances[b].fnReset()};ColReorder.prototype.CLASS="ColReorder";ColReorder.VERSION="1.0.8";ColReorder.prototype.VERSION=ColReorder.VERSION;"function"==typeof f.fn.dataTable&&"function"==typeof f.fn.dataTableExt.fnVersionCheck&&
+f.fn.dataTableExt.fnVersionCheck("1.9.3")?f.fn.dataTableExt.aoFeatures.push({fnInit:function(a){var b=a.oInstance;"undefined"==typeof b._oPluginColReorder?b._oPluginColReorder=new ColReorder(a,"undefined"!=typeof a.oInit.oColReorder?a.oInit.oColReorder:{}):b.oApi._fnLog(a,1,"ColReorder attempted to initialise twice. Ignoring second");return null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.9.3 or greater - www.datatables.net/download")})(jQuery,window,document);
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/ColReorder.css b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/ColReorder.css
new file mode 100644
index 00000000..9c597e34
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/ColReorder.css
@@ -0,0 +1,21 @@
+/*
+ * Namespace DTCR - "DataTables ColReorder" plug-in
+ */
+
+table.DTCR_clonedTable {
+ background-color: white;
+ z-index: 202;
+}
+
+div.DTCR_pointer {
+ width: 1px;
+ background-color: #0259C4;
+ z-index: 201;
+}
+
+body.alt div.DTCR_pointer {
+ margin-top: -15px;
+ margin-left: -9px;
+ width: 18px;
+ background: url('../images/insert.png') no-repeat top left;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/jquery.dataTables.css b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/jquery.dataTables.css
new file mode 100644
index 00000000..7da7faec
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/css/jquery.dataTables.css
@@ -0,0 +1,221 @@
+
+/*
+ * Table
+ */
+table.dataTable {
+ margin: 0 auto;
+ clear: both;
+ width: 100%;
+}
+
+table.dataTable thead th {
+ padding: 3px 18px 3px 10px;
+ border-bottom: 1px solid black;
+ font-weight: bold;
+ cursor: pointer;
+ *cursor: hand;
+}
+
+table.dataTable tfoot th {
+ padding: 3px 18px 3px 10px;
+ border-top: 1px solid black;
+ font-weight: bold;
+}
+
+table.dataTable td {
+ padding: 3px 10px;
+}
+
+table.dataTable td.center,
+table.dataTable td.dataTables_empty {
+ text-align: center;
+}
+
+table.dataTable tr.odd { background-color: #E2E4FF; }
+table.dataTable tr.even { background-color: white; }
+
+table.dataTable tr.odd td.sorting_1 { background-color: #D3D6FF; }
+table.dataTable tr.odd td.sorting_2 { background-color: #DADCFF; }
+table.dataTable tr.odd td.sorting_3 { background-color: #E0E2FF; }
+table.dataTable tr.even td.sorting_1 { background-color: #EAEBFF; }
+table.dataTable tr.even td.sorting_2 { background-color: #F2F3FF; }
+table.dataTable tr.even td.sorting_3 { background-color: #F9F9FF; }
+
+
+/*
+ * Table wrapper
+ */
+.dataTables_wrapper {
+ position: relative;
+ clear: both;
+ *zoom: 1;
+}
+
+
+/*
+ * Page length menu
+ */
+.dataTables_length {
+ float: left;
+}
+
+
+/*
+ * Filter
+ */
+.dataTables_filter {
+ float: right;
+ text-align: right;
+}
+
+
+/*
+ * Table information
+ */
+.dataTables_info {
+ clear: both;
+ float: left;
+}
+
+
+/*
+ * Pagination
+ */
+.dataTables_paginate {
+ float: right;
+ text-align: right;
+}
+
+/* Two button pagination - previous / next */
+.paginate_disabled_previous,
+.paginate_enabled_previous,
+.paginate_disabled_next,
+.paginate_enabled_next {
+ height: 19px;
+ float: left;
+ cursor: pointer;
+ *cursor: hand;
+ color: #111 !important;
+}
+.paginate_disabled_previous:hover,
+.paginate_enabled_previous:hover,
+.paginate_disabled_next:hover,
+.paginate_enabled_next:hover {
+ text-decoration: none !important;
+}
+.paginate_disabled_previous:active,
+.paginate_enabled_previous:active,
+.paginate_disabled_next:active,
+.paginate_enabled_next:active {
+ outline: none;
+}
+
+.paginate_disabled_previous,
+.paginate_disabled_next {
+ color: #666 !important;
+}
+.paginate_disabled_previous,
+.paginate_enabled_previous {
+ padding-left: 23px;
+}
+.paginate_disabled_next,
+.paginate_enabled_next {
+ padding-right: 23px;
+ margin-left: 10px;
+}
+
+.paginate_enabled_previous { background: url('../images/back_enabled.png') no-repeat top left; }
+.paginate_enabled_previous:hover { background: url('../images/back_enabled_hover.png') no-repeat top left; }
+.paginate_disabled_previous { background: url('../images/back_disabled.png') no-repeat top left; }
+
+.paginate_enabled_next { background: url('../images/forward_enabled.png') no-repeat top right; }
+.paginate_enabled_next:hover { background: url('../images/forward_enabled_hover.png') no-repeat top right; }
+.paginate_disabled_next { background: url('../images/forward_disabled.png') no-repeat top right; }
+
+/* Full number pagination */
+.paging_full_numbers {
+ height: 22px;
+ line-height: 22px;
+}
+.paging_full_numbers a:active {
+ outline: none
+}
+.paging_full_numbers a:hover {
+ text-decoration: none;
+}
+
+.paging_full_numbers a.paginate_button,
+.paging_full_numbers a.paginate_active {
+ border: 1px solid #aaa;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ padding: 2px 5px;
+ margin: 0 3px;
+ cursor: pointer;
+ *cursor: hand;
+ color: #333 !important;
+}
+
+.paging_full_numbers a.paginate_button {
+ background-color: #ddd;
+}
+
+.paging_full_numbers a.paginate_button:hover {
+ background-color: #ccc;
+ text-decoration: none !important;
+}
+
+.paging_full_numbers a.paginate_active {
+ background-color: #99B3FF;
+}
+
+
+/*
+ * Processing indicator
+ */
+.dataTables_processing {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: 250px;
+ height: 30px;
+ margin-left: -125px;
+ margin-top: -15px;
+ padding: 14px 0 2px 0;
+ border: 1px solid #ddd;
+ text-align: center;
+ color: #999;
+ font-size: 14px;
+ background-color: white;
+}
+
+
+/*
+ * Sorting
+ */
+.sorting { background: url('../images/sort_both.png') no-repeat center right; }
+.sorting_asc { background: url('../images/sort_asc.png') no-repeat center right; }
+.sorting_desc { background: url('../images/sort_desc.png') no-repeat center right; }
+
+.sorting_asc_disabled { background: url('../images/sort_asc_disabled.png') no-repeat center right; }
+.sorting_desc_disabled { background: url('../images/sort_desc_disabled.png') no-repeat center right; }
+
+table.dataTable thead th:active,
+table.dataTable thead td:active {
+ outline: none;
+}
+
+
+/*
+ * Scrolling
+ */
+.dataTables_scroll {
+ clear: both;
+}
+
+.dataTables_scrollBody {
+ *margin-top: -1px;
+ -webkit-overflow-scrolling: touch;
+}
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_disabled.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_disabled.png
new file mode 100644
index 00000000..881de797
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_disabled.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled.png
new file mode 100644
index 00000000..c608682b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled_hover.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled_hover.png
new file mode 100644
index 00000000..d300f106
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/back_enabled_hover.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_disabled.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_disabled.png
new file mode 100644
index 00000000..6a6ded7d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_disabled.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled.png
new file mode 100644
index 00000000..a4e6b538
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled_hover.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled_hover.png
new file mode 100644
index 00000000..fc46c5eb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/forward_enabled_hover.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/insert.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/insert.png
new file mode 100644
index 00000000..15d5522d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/insert.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc.png
new file mode 100644
index 00000000..a88d7975
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc_disabled.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc_disabled.png
new file mode 100644
index 00000000..4e144cf0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_asc_disabled.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_both.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_both.png
new file mode 100644
index 00000000..18670406
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_both.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc.png
new file mode 100644
index 00000000..def071ed
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc_disabled.png b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc_disabled.png
new file mode 100644
index 00000000..7824973c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/sort_desc_disabled.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/unchecked.gif b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/unchecked.gif
new file mode 100644
index 00000000..06ecaba1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/images/unchecked.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.columnFilter.js b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.columnFilter.js
new file mode 100644
index 00000000..cc0cd690
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.columnFilter.js
@@ -0,0 +1,365 @@
+/*
+* File: jquery.dataTables.columnFilter.js
+* Version: 0.9.0
+* Author: Jovan Popovic
+*
+* Copyright 2011 Jovan Popovic, all rights reserved.
+*
+* This source file is free software, under either the GPL v2 license or a
+* BSD style license, as supplied with this software.
+*
+* This source file is distributed in the hope that it will be useful, but
+* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+* or FITNESS FOR A PARTICULAR PURPOSE.
+*
+* Parameters:
+* @sPlaceHolder String Place where inline filtering function should be place ("tfoot", "thead"). Default is "tfoot"
+* @sRangeSeparator String Separatot that will be used when range values are sent to the server-side. Default value is "~".
+* @iFilteringDelay int TODO: Delay that will be set between the filtering requests. Default is 250.
+* @sRangeFormat string Default format of the From ... to ... range inputs. Default is From {from} to {to}
+* @aoColumns Array Array of the filter settings that will be applied on the columns
+
+http://www.datatables.net/plug-ins/filtering
+
+*/
+(function ($) {
+
+
+
+
+
+
+ var asInitVals, i, label, th;
+
+ var sTableId = "table";
+ var sRangeFormat = "From {from} to {to}";
+ //Array of the functions that will override sSearch_ parameters
+ var afnSearch_ = new Array();
+ var aiCustomSearch_Indexes = new Array();
+
+ var oFunctionTimeout = null;
+
+
+ function fnCreateInput(regex, smart, bIsNumber) {
+ var sCSSClass = "text_filter";
+ if (bIsNumber)
+ sCSSClass = "number_filter";
+ var input = $('<input type="text" class="search_init ' + sCSSClass + '" value="' + label + '"/>');
+ th.html(input);
+ if (bIsNumber)
+ th.wrapInner('<span class="filter_column filter_number" />');
+ else
+ th.wrapInner('<span class="filter_column filter_text" />');
+ asInitVals[i] = label;
+ var index = i;
+
+ if (bIsNumber && !oTable.fnSettings().oFeatures.bServerSide) {
+ input.keyup(function () {
+ /* Filter on the column all numbers that starts with the entered value */
+ oTable.fnFilter('^' + this.value, index, true, false);
+ });
+ } else {
+ input.keyup(function () {
+ /* Filter on the column (the index) of this element */
+ oTable.fnFilter(this.value, index, regex, smart);
+ });
+ }
+
+ input.focus(function () {
+ if ($(this).hasClass("search_init")) {
+ $(this).removeClass("search_init");
+ this.value = "";
+ }
+ });
+ input.blur(function () {
+ if (this.value == "") {
+ $(this).addClass("search_init");
+ this.value = asInitVals[index];
+ }
+ });
+ }
+
+ function fnCreateRangeInput() {
+
+ th.html(_fnRangeLabelPart(0));
+ var sFromId = sTableId + 'range_from_' + i;
+ var from = $('<input type="text" class="number_range_filter" id="' + sFromId + '" rel="' + i + '"/>');
+ th.append(from);
+ th.append(_fnRangeLabelPart(1));
+ var sToId = sTableId + 'range_to_' + i;
+ var to = $('<input type="text" class="number_range_filter" id="' + sToId + '" rel="' + i + '"/>');
+ th.append(to);
+ th.append(_fnRangeLabelPart(2));
+ th.wrapInner('<span class="filterColumn filter_number_range" />');
+ var index = i;
+ aiCustomSearch_Indexes.push(i);
+
+
+
+ //------------start range filtering function
+
+
+ /* Custom filtering function which will filter data in column four between two values
+ * Author: Allan Jardine, Modified by Jovan Popovic
+ */
+ $.fn.dataTableExt.afnFiltering.push(
+ function (oSettings, aData, iDataIndex) {
+ var iMin = document.getElementById(sFromId).value * 1;
+ var iMax = document.getElementById(sToId).value * 1;
+ var iValue = aData[index] == "-" ? 0 : aData[index] * 1;
+ if (iMin == "" && iMax == "") {
+ return true;
+ }
+ else if (iMin == "" && iValue < iMax) {
+ return true;
+ }
+ else if (iMin < iValue && "" == iMax) {
+ return true;
+ }
+ else if (iMin < iValue && iValue < iMax) {
+ return true;
+ }
+ return false;
+ }
+ );
+ //------------end range filtering function
+
+
+
+ $('#' + sFromId + ',#' + sToId, th).keyup(function () {
+
+ var iMin = document.getElementById(sFromId).value * 1;
+ var iMax = document.getElementById(sToId).value * 1;
+ if (iMin != 0 && iMax != 0 && iMin > iMax)
+ return;
+
+ oTable.fnDraw();
+
+ });
+
+
+ }
+
+
+ function fnCreateDateRangeInput() {
+
+ th.html(_fnRangeLabelPart(0));
+ var sFromId = sTableId + 'range_from_' + i;
+ var from = $('<input type="text" class="date_range_filter" id="' + sFromId + '" rel="' + i + '"/>');
+ from.datepicker();
+ th.append(from);
+ th.append(_fnRangeLabelPart(1));
+ var sToId = sTableId + 'range_to_' + i;
+ var to = $('<input type="text" class="date_range_filter" id="' + sToId + '" rel="' + i + '"/>');
+ th.append(to);
+ th.append(_fnRangeLabelPart(2));
+ th.wrapInner('<span class="filterColumn filter_date_range" />');
+ to.datepicker();
+ var index = i;
+ aiCustomSearch_Indexes.push(i);
+
+
+ //------------start date range filtering function
+
+ $.fn.dataTableExt.afnFiltering.push(
+ function (oSettings, aData, iDataIndex) {
+ var dStartDate = from.datepicker("getDate");
+
+ var dEndDate = to.datepicker("getDate");
+
+ var dCellDate = $.datepicker.parseDate($.datepicker.regional[""].dateFormat, aData[index]);
+
+ if (dCellDate == null)
+ return false;
+
+ if (dStartDate == null && dEndDate == null) {
+ return true;
+ }
+ else if (dStartDate == null && dCellDate < dEndDate) {
+ return true;
+ }
+ else if (dStartDate < dCellDate && dEndDate == null) {
+ return true;
+ }
+ else if (dStartDate < dCellDate && dCellDate < dEndDate) {
+ return true;
+ }
+ return false;
+ }
+ );
+ //------------end date range filtering function
+
+ $('#' + sFromId + ',#' + sToId, th).change(function () {
+ oTable.fnDraw();
+ });
+
+
+ }
+
+
+ function fnCreateSelect(aData) {
+ var index = i;
+ var r = '<select class="search_init select_filter"><option value="" class="search_init">' + label + '</option>', j, iLen = aData.length;
+
+ for (j = 0; j < iLen; j++) {
+ r += '<option value="' + aData[j] + '">' + aData[j] + '</option>';
+ }
+ var select = $(r + '</select>');
+ th.html(select);
+ th.wrapInner('<span class="filterColumn filter_select" />');
+ select.change(function () {
+ //var val = $(this).val();
+ if ($(this).val() != "") {
+ $(this).removeClass("search_init");
+ } else {
+ $(this).addClass("search_init");
+ }
+ oTable.fnFilter($(this).val(), index);
+ });
+ }
+
+ function _fnRangeLabelPart(iPlace){
+ switch(iPlace){
+ case 0:
+ return sRangeFormat.substring(0, sRangeFormat.indexOf("{from}"));
+ case 1:
+ return sRangeFormat.substring(sRangeFormat.indexOf("{from}") + 6, sRangeFormat.indexOf("{to}"));
+ default:
+ return sRangeFormat.substring(sRangeFormat.indexOf("{to}") + 4);
+ }
+ }
+
+
+ $.fn.columnFilter = function (options) {
+
+ oTable = this;
+
+ var defaults = {
+ sPlaceHolder: "foot",
+ sRangeSeparator: "~",
+ iFilteringDelay: 500,
+ aoColumns: null,
+ sRangeFormat: "From {from} to {to}"
+
+ };
+
+ properties = $.extend(defaults, options);
+
+ return this.each(function () {
+
+ asInitVals = new Array();
+ var sFilterRow = "tfoot tr";
+ if (properties.sPlaceHolder == "head:after") {
+ sFilterRow = "thead tr:last";
+ } else if (properties.sPlaceHolder == "head:before") {
+ var tr = $("thead tr:last").detach();
+ tr.prependTo("thead");
+ sFilterRow = "thead tr:first";
+ }
+
+ $(sFilterRow + " th", oTable).each(function (index) {
+ i = index;
+ var aoColumn = { type: "text",
+ bRegex: false,
+ bSmart: true
+ };
+ if (properties.aoColumns != null) {
+ if (properties.aoColumns.length < i || properties.aoColumns[i] == null)
+ return;
+ aoColumn = properties.aoColumns[i];
+ }
+ label = $(this).text(); //"Search by " + $(this).text();
+ th = $($(this)[0]);
+ if (aoColumn != null) {
+ if (aoColumn.sRangeFormat != null)
+ sRangeFormat = aoColumn.sRangeFormat;
+ else
+ sRangeFormat = properties.sRangeFormat
+ switch (aoColumn.type) {
+ case "number":
+ fnCreateInput(true, false, true);
+ break;
+ case "text":
+ bRegex = (aoColumn.bRegex == null ? false : aoColumn.bRegex);
+ bSmart = (aoColumn.bSmart == null ? false : aoColumn.bSmart);
+ fnCreateInput(bRegex, bSmart, false);
+ break;
+ case "select":
+ fnCreateSelect(aoColumn.values);
+ break;
+ case "number-range":
+ fnCreateRangeInput();
+ break;
+ case "date-range":
+ fnCreateDateRangeInput();
+
+ break;
+ default:
+ break;
+
+ }
+ }
+ });
+
+ for (j = 0; j < aiCustomSearch_Indexes.length; j++) {
+ var index = aiCustomSearch_Indexes[j];
+ var fnSearch_ = function () {
+ return $("#range_from_" + index).val() + properties.sRangeSeparator + $("#range_to_" + index).val()
+ }
+ afnSearch_.push(fnSearch_);
+ }
+
+ if (oTable.fnSettings().oFeatures.bServerSide) {
+
+ var fnServerDataOriginal = oTable.fnSettings().fnServerData;
+
+ oTable.fnSettings().fnServerData = function (sSource, aoData, fnCallback) {
+
+ for (j = 0; j < aiCustomSearch_Indexes.length; j++) {
+ var index = aiCustomSearch_Indexes[j];
+
+ for (k = 0; k < aoData.length; k++) {
+ if (aoData[k].name == "sSearch_" + index)
+ aoData[k].value = afnSearch_[j]();
+ }
+ }
+ aoData.push({ "name": "sRangeSeparator", "value": properties.sRangeSeparator });
+
+ if (fnServerDataOriginal != null) {
+ fnServerDataOriginal(sSource, aoData, fnCallback);
+ }
+ else {
+ $.getJSON(sSource, aoData, function (json) {
+ fnCallback(json)
+ });
+ }
+
+ /*
+ if (fnServerDataOriginal != null) {
+ if (properties.iDelay != 0) {
+ if (oFunctionTimeout != null)
+ window.clearTimeout(oFunctionTimeout);
+ oFunctionTimeout = window.setTimeout(function () {
+ fnServerDataOriginal(sSource, aoData, fnCallback);
+ }, properties.iDelay);
+ } else {
+ fnServerDataOriginal(sSource, aoData, fnCallback);
+ }
+ }
+ else
+ $.getJSON(sSource, aoData, function (json) {
+ fnCallback(json)
+ });
+ */
+ };
+
+ }
+
+ });
+
+ };
+
+
+
+
+})(jQuery); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.min.js b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.min.js
new file mode 100644
index 00000000..02694a4a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-dataTables/jquery.dataTables.min.js
@@ -0,0 +1,155 @@
+/*
+ * File: jquery.dataTables.min.js
+ * Version: 1.9.4
+ * Author: Allan Jardine (www.sprymedia.co.uk)
+ * Info: www.datatables.net
+ *
+ * Copyright 2008-2012 Allan Jardine, all rights reserved.
+ *
+ * This source file is free software, under either the GPL v2 license or a
+ * BSD style license, available at:
+ * http://datatables.net/license_gpl2
+ * http://datatables.net/license_bsd
+ *
+ * This source file is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
+ */
+(function(X,l,n){var L=function(h){var j=function(e){function o(a,b){var c=j.defaults.columns,d=a.aoColumns.length,c=h.extend({},j.models.oColumn,c,{sSortingClass:a.oClasses.sSortable,sSortingClassJUI:a.oClasses.sSortJUI,nTh:b?b:l.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.oDefaults:d});a.aoColumns.push(c);if(a.aoPreSearchCols[d]===n||null===a.aoPreSearchCols[d])a.aoPreSearchCols[d]=h.extend({},j.models.oSearch);else if(c=a.aoPreSearchCols[d],
+c.bRegex===n&&(c.bRegex=!0),c.bSmart===n&&(c.bSmart=!0),c.bCaseInsensitive===n)c.bCaseInsensitive=!0;m(a,d,null)}function m(a,b,c){var d=a.aoColumns[b];c!==n&&null!==c&&(c.mDataProp&&!c.mData&&(c.mData=c.mDataProp),c.sType!==n&&(d.sType=c.sType,d._bAutoType=!1),h.extend(d,c),p(d,c,"sWidth","sWidthOrig"),c.iDataSort!==n&&(d.aDataSort=[c.iDataSort]),p(d,c,"aDataSort"));var i=d.mRender?Q(d.mRender):null,f=Q(d.mData);d.fnGetData=function(a,b){var c=f(a,b);return d.mRender&&b&&""!==b?i(c,b,a):c};d.fnSetData=
+L(d.mData);a.oFeatures.bSort||(d.bSortable=!1);!d.bSortable||-1==h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortableNone,d.sSortingClassJUI=""):-1==h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortable,d.sSortingClassJUI=a.oClasses.sSortJUI):-1!=h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortableAsc,d.sSortingClassJUI=a.oClasses.sSortJUIAscAllowed):-1==
+h.inArray("asc",d.asSorting)&&-1!=h.inArray("desc",d.asSorting)&&(d.sSortingClass=a.oClasses.sSortableDesc,d.sSortingClassJUI=a.oClasses.sSortJUIDescAllowed)}function k(a){if(!1===a.oFeatures.bAutoWidth)return!1;da(a);for(var b=0,c=a.aoColumns.length;b<c;b++)a.aoColumns[b].nTh.style.width=a.aoColumns[b].sWidth}function G(a,b){var c=r(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function R(a,b){var c=r(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function t(a){return r(a,"bVisible").length}
+function r(a,b){var c=[];h.map(a.aoColumns,function(a,i){a[b]&&c.push(i)});return c}function B(a){for(var b=j.ext.aTypes,c=b.length,d=0;d<c;d++){var i=b[d](a);if(null!==i)return i}return"string"}function u(a,b){for(var c=b.split(","),d=[],i=0,f=a.aoColumns.length;i<f;i++)for(var g=0;g<f;g++)if(a.aoColumns[i].sName==c[g]){d.push(g);break}return d}function M(a){for(var b="",c=0,d=a.aoColumns.length;c<d;c++)b+=a.aoColumns[c].sName+",";return b.length==d?"":b.slice(0,-1)}function ta(a,b,c,d){var i,f,
+g,e,w;if(b)for(i=b.length-1;0<=i;i--){var j=b[i].aTargets;h.isArray(j)||D(a,1,"aTargets must be an array of targets, not a "+typeof j);f=0;for(g=j.length;f<g;f++)if("number"===typeof j[f]&&0<=j[f]){for(;a.aoColumns.length<=j[f];)o(a);d(j[f],b[i])}else if("number"===typeof j[f]&&0>j[f])d(a.aoColumns.length+j[f],b[i]);else if("string"===typeof j[f]){e=0;for(w=a.aoColumns.length;e<w;e++)("_all"==j[f]||h(a.aoColumns[e].nTh).hasClass(j[f]))&&d(e,b[i])}}if(c){i=0;for(a=c.length;i<a;i++)d(i,c[i])}}function H(a,
+b){var c;c=h.isArray(b)?b.slice():h.extend(!0,{},b);var d=a.aoData.length,i=h.extend(!0,{},j.models.oRow);i._aData=c;a.aoData.push(i);for(var f,i=0,g=a.aoColumns.length;i<g;i++)c=a.aoColumns[i],"function"===typeof c.fnRender&&c.bUseRendered&&null!==c.mData?F(a,d,i,S(a,d,i)):F(a,d,i,v(a,d,i)),c._bAutoType&&"string"!=c.sType&&(f=v(a,d,i,"type"),null!==f&&""!==f&&(f=B(f),null===c.sType?c.sType=f:c.sType!=f&&"html"!=c.sType&&(c.sType="string")));a.aiDisplayMaster.push(d);a.oFeatures.bDeferRender||ea(a,
+d);return d}function ua(a){var b,c,d,i,f,g,e;if(a.bDeferLoading||null===a.sAjaxSource)for(b=a.nTBody.firstChild;b;){if("TR"==b.nodeName.toUpperCase()){c=a.aoData.length;b._DT_RowIndex=c;a.aoData.push(h.extend(!0,{},j.models.oRow,{nTr:b}));a.aiDisplayMaster.push(c);f=b.firstChild;for(d=0;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)F(a,c,d,h.trim(f.innerHTML)),d++;f=f.nextSibling}}b=b.nextSibling}i=T(a);d=[];b=0;for(c=i.length;b<c;b++)for(f=i[b].firstChild;f;)g=f.nodeName.toUpperCase(),("TD"==
+g||"TH"==g)&&d.push(f),f=f.nextSibling;c=0;for(i=a.aoColumns.length;c<i;c++){e=a.aoColumns[c];null===e.sTitle&&(e.sTitle=e.nTh.innerHTML);var w=e._bAutoType,o="function"===typeof e.fnRender,k=null!==e.sClass,n=e.bVisible,m,p;if(w||o||k||!n){g=0;for(b=a.aoData.length;g<b;g++)f=a.aoData[g],m=d[g*i+c],w&&"string"!=e.sType&&(p=v(a,g,c,"type"),""!==p&&(p=B(p),null===e.sType?e.sType=p:e.sType!=p&&"html"!=e.sType&&(e.sType="string"))),e.mRender?m.innerHTML=v(a,g,c,"display"):e.mData!==c&&(m.innerHTML=v(a,
+g,c,"display")),o&&(p=S(a,g,c),m.innerHTML=p,e.bUseRendered&&F(a,g,c,p)),k&&(m.className+=" "+e.sClass),n?f._anHidden[c]=null:(f._anHidden[c]=m,m.parentNode.removeChild(m)),e.fnCreatedCell&&e.fnCreatedCell.call(a.oInstance,m,v(a,g,c,"display"),f._aData,g,c)}}if(0!==a.aoRowCreatedCallback.length){b=0;for(c=a.aoData.length;b<c;b++)f=a.aoData[b],A(a,"aoRowCreatedCallback",null,[f.nTr,f._aData,b])}}function I(a,b){return b._DT_RowIndex!==n?b._DT_RowIndex:null}function fa(a,b,c){for(var b=J(a,b),d=0,a=
+a.aoColumns.length;d<a;d++)if(b[d]===c)return d;return-1}function Y(a,b,c,d){for(var i=[],f=0,g=d.length;f<g;f++)i.push(v(a,b,d[f],c));return i}function v(a,b,c,d){var i=a.aoColumns[c];if((c=i.fnGetData(a.aoData[b]._aData,d))===n)return a.iDrawError!=a.iDraw&&null===i.sDefaultContent&&(D(a,0,"Requested unknown parameter "+("function"==typeof i.mData?"{mData function}":"'"+i.mData+"'")+" from the data source for row "+b),a.iDrawError=a.iDraw),i.sDefaultContent;if(null===c&&null!==i.sDefaultContent)c=
+i.sDefaultContent;else if("function"===typeof c)return c();return"display"==d&&null===c?"":c}function F(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d)}function Q(a){if(null===a)return function(){return null};if("function"===typeof a)return function(b,d,i){return a(b,d,i)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("["))){var b=function(a,d,i){var f=i.split("."),g;if(""!==i){var e=0;for(g=f.length;e<g;e++){if(i=f[e].match(U)){f[e]=f[e].replace(U,"");""!==f[e]&&(a=a[f[e]]);
+g=[];f.splice(0,e+1);for(var f=f.join("."),e=0,h=a.length;e<h;e++)g.push(b(a[e],d,f));a=i[0].substring(1,i[0].length-1);a=""===a?g:g.join(a);break}if(null===a||a[f[e]]===n)return n;a=a[f[e]]}}return a};return function(c,d){return b(c,d,a)}}return function(b){return b[a]}}function L(a){if(null===a)return function(){};if("function"===typeof a)return function(b,d){a(b,"set",d)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("["))){var b=function(a,d,i){var i=i.split("."),f,g,e=0;for(g=
+i.length-1;e<g;e++){if(f=i[e].match(U)){i[e]=i[e].replace(U,"");a[i[e]]=[];f=i.slice();f.splice(0,e+1);g=f.join(".");for(var h=0,j=d.length;h<j;h++)f={},b(f,d[h],g),a[i[e]].push(f);return}if(null===a[i[e]]||a[i[e]]===n)a[i[e]]={};a=a[i[e]]}a[i[i.length-1].replace(U,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Z(a){for(var b=[],c=a.aoData.length,d=0;d<c;d++)b.push(a.aoData[d]._aData);return b}function ga(a){a.aoData.splice(0,a.aoData.length);a.aiDisplayMaster.splice(0,
+a.aiDisplayMaster.length);a.aiDisplay.splice(0,a.aiDisplay.length);y(a)}function ha(a,b){for(var c=-1,d=0,i=a.length;d<i;d++)a[d]==b?c=d:a[d]>b&&a[d]--; -1!=c&&a.splice(c,1)}function S(a,b,c){var d=a.aoColumns[c];return d.fnRender({iDataRow:b,iDataColumn:c,oSettings:a,aData:a.aoData[b]._aData,mDataProp:d.mData},v(a,b,c,"display"))}function ea(a,b){var c=a.aoData[b],d;if(null===c.nTr){c.nTr=l.createElement("tr");c.nTr._DT_RowIndex=b;c._aData.DT_RowId&&(c.nTr.id=c._aData.DT_RowId);c._aData.DT_RowClass&&
+(c.nTr.className=c._aData.DT_RowClass);for(var i=0,f=a.aoColumns.length;i<f;i++){var g=a.aoColumns[i];d=l.createElement(g.sCellType);d.innerHTML="function"===typeof g.fnRender&&(!g.bUseRendered||null===g.mData)?S(a,b,i):v(a,b,i,"display");null!==g.sClass&&(d.className=g.sClass);g.bVisible?(c.nTr.appendChild(d),c._anHidden[i]=null):c._anHidden[i]=d;g.fnCreatedCell&&g.fnCreatedCell.call(a.oInstance,d,v(a,b,i,"display"),c._aData,b,i)}A(a,"aoRowCreatedCallback",null,[c.nTr,c._aData,b])}}function va(a){var b,
+c,d;if(0!==h("th, td",a.nTHead).length){b=0;for(d=a.aoColumns.length;b<d;b++)if(c=a.aoColumns[b].nTh,c.setAttribute("role","columnheader"),a.aoColumns[b].bSortable&&(c.setAttribute("tabindex",a.iTabIndex),c.setAttribute("aria-controls",a.sTableId)),null!==a.aoColumns[b].sClass&&h(c).addClass(a.aoColumns[b].sClass),a.aoColumns[b].sTitle!=c.innerHTML)c.innerHTML=a.aoColumns[b].sTitle}else{var i=l.createElement("tr");b=0;for(d=a.aoColumns.length;b<d;b++)c=a.aoColumns[b].nTh,c.innerHTML=a.aoColumns[b].sTitle,
+c.setAttribute("tabindex","0"),null!==a.aoColumns[b].sClass&&h(c).addClass(a.aoColumns[b].sClass),i.appendChild(c);h(a.nTHead).html("")[0].appendChild(i);V(a.aoHeader,a.nTHead)}h(a.nTHead).children("tr").attr("role","row");if(a.bJUI){b=0;for(d=a.aoColumns.length;b<d;b++){c=a.aoColumns[b].nTh;i=l.createElement("div");i.className=a.oClasses.sSortJUIWrapper;h(c).contents().appendTo(i);var f=l.createElement("span");f.className=a.oClasses.sSortIcon;i.appendChild(f);c.appendChild(i)}}if(a.oFeatures.bSort)for(b=
+0;b<a.aoColumns.length;b++)!1!==a.aoColumns[b].bSortable?ia(a,a.aoColumns[b].nTh,b):h(a.aoColumns[b].nTh).addClass(a.oClasses.sSortableNone);""!==a.oClasses.sFooterTH&&h(a.nTFoot).children("tr").children("th").addClass(a.oClasses.sFooterTH);if(null!==a.nTFoot){c=N(a,null,a.aoFooter);b=0;for(d=a.aoColumns.length;b<d;b++)c[b]&&(a.aoColumns[b].nTf=c[b],a.aoColumns[b].sClass&&h(c[b]).addClass(a.aoColumns[b].sClass))}}function W(a,b,c){var d,i,f,g=[],e=[],h=a.aoColumns.length,j;c===n&&(c=!1);d=0;for(i=
+b.length;d<i;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=h-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);e.push([])}d=0;for(i=g.length;d<i;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(j=h=1,e[d][f]===n){a.appendChild(g[d][f].cell);for(e[d][f]=1;g[d+h]!==n&&g[d][f].cell==g[d+h][f].cell;)e[d+h][f]=1,h++;for(;g[d][f+j]!==n&&g[d][f].cell==g[d][f+j].cell;){for(c=0;c<h;c++)e[d+c][f+j]=1;j++}g[d][f].cell.rowSpan=h;g[d][f].cell.colSpan=j}}}function x(a){var b=
+A(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))E(a,!1);else{var c,d,b=[],i=0,f=a.asStripeClasses.length;c=a.aoOpenRows.length;a.bDrawing=!0;a.iInitDisplayStart!==n&&-1!=a.iInitDisplayStart&&(a._iDisplayStart=a.oFeatures.bServerSide?a.iInitDisplayStart:a.iInitDisplayStart>=a.fnRecordsDisplay()?0:a.iInitDisplayStart,a.iInitDisplayStart=-1,y(a));if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++;else if(a.oFeatures.bServerSide){if(!a.bDestroying&&!wa(a))return}else a.iDraw++;if(0!==a.aiDisplay.length){var g=
+a._iDisplayStart;d=a._iDisplayEnd;a.oFeatures.bServerSide&&(g=0,d=a.aoData.length);for(;g<d;g++){var e=a.aoData[a.aiDisplay[g]];null===e.nTr&&ea(a,a.aiDisplay[g]);var j=e.nTr;if(0!==f){var o=a.asStripeClasses[i%f];e._sRowStripe!=o&&(h(j).removeClass(e._sRowStripe).addClass(o),e._sRowStripe=o)}A(a,"aoRowCallback",null,[j,a.aoData[a.aiDisplay[g]]._aData,i,g]);b.push(j);i++;if(0!==c)for(e=0;e<c;e++)if(j==a.aoOpenRows[e].nParent){b.push(a.aoOpenRows[e].nTr);break}}}else b[0]=l.createElement("tr"),a.asStripeClasses[0]&&
+(b[0].className=a.asStripeClasses[0]),c=a.oLanguage,f=c.sZeroRecords,1==a.iDraw&&null!==a.sAjaxSource&&!a.oFeatures.bServerSide?f=c.sLoadingRecords:c.sEmptyTable&&0===a.fnRecordsTotal()&&(f=c.sEmptyTable),c=l.createElement("td"),c.setAttribute("valign","top"),c.colSpan=t(a),c.className=a.oClasses.sRowEmpty,c.innerHTML=ja(a,f),b[i].appendChild(c);A(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Z(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay]);A(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],
+Z(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay]);i=l.createDocumentFragment();c=l.createDocumentFragment();if(a.nTBody){f=a.nTBody.parentNode;c.appendChild(a.nTBody);if(!a.oScroll.bInfinite||!a._bInitComplete||a.bSorted||a.bFiltered)for(;c=a.nTBody.firstChild;)a.nTBody.removeChild(c);c=0;for(d=b.length;c<d;c++)i.appendChild(b[c]);a.nTBody.appendChild(i);null!==f&&f.appendChild(a.nTBody)}A(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1;a.oFeatures.bServerSide&&(E(a,!1),
+a._bInitComplete||$(a))}}function aa(a){a.oFeatures.bSort?O(a,a.oPreviousSearch):a.oFeatures.bFilter?K(a,a.oPreviousSearch):(y(a),x(a))}function xa(a){var b=h("<div></div>")[0];a.nTable.parentNode.insertBefore(b,a.nTable);a.nTableWrapper=h('<div id="'+a.sTableId+'_wrapper" class="'+a.oClasses.sWrapper+'" role="grid"></div>')[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var c=a.nTableWrapper,d=a.sDom.split(""),i,f,g,e,w,o,k,m=0;m<d.length;m++){f=0;g=d[m];if("<"==g){e=h("<div></div>")[0];w=d[m+
+1];if("'"==w||'"'==w){o="";for(k=2;d[m+k]!=w;)o+=d[m+k],k++;"H"==o?o=a.oClasses.sJUIHeader:"F"==o&&(o=a.oClasses.sJUIFooter);-1!=o.indexOf(".")?(w=o.split("."),e.id=w[0].substr(1,w[0].length-1),e.className=w[1]):"#"==o.charAt(0)?e.id=o.substr(1,o.length-1):e.className=o;m+=k}c.appendChild(e);c=e}else if(">"==g)c=c.parentNode;else if("l"==g&&a.oFeatures.bPaginate&&a.oFeatures.bLengthChange)i=ya(a),f=1;else if("f"==g&&a.oFeatures.bFilter)i=za(a),f=1;else if("r"==g&&a.oFeatures.bProcessing)i=Aa(a),f=
+1;else if("t"==g)i=Ba(a),f=1;else if("i"==g&&a.oFeatures.bInfo)i=Ca(a),f=1;else if("p"==g&&a.oFeatures.bPaginate)i=Da(a),f=1;else if(0!==j.ext.aoFeatures.length){e=j.ext.aoFeatures;k=0;for(w=e.length;k<w;k++)if(g==e[k].cFeature){(i=e[k].fnInit(a))&&(f=1);break}}1==f&&null!==i&&("object"!==typeof a.aanFeatures[g]&&(a.aanFeatures[g]=[]),a.aanFeatures[g].push(i),c.appendChild(i))}b.parentNode.replaceChild(a.nTableWrapper,b)}function V(a,b){var c=h(b).children("tr"),d,i,f,g,e,j,o,k,m,p;a.splice(0,a.length);
+f=0;for(j=c.length;f<j;f++)a.push([]);f=0;for(j=c.length;f<j;f++){d=c[f];for(i=d.firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){k=1*i.getAttribute("colspan");m=1*i.getAttribute("rowspan");k=!k||0===k||1===k?1:k;m=!m||0===m||1===m?1:m;g=0;for(e=a[f];e[g];)g++;o=g;p=1===k?!0:!1;for(e=0;e<k;e++)for(g=0;g<m;g++)a[f+g][o+e]={cell:i,unique:p},a[f+g].nTr=d}i=i.nextSibling}}}function N(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],V(c,b)));for(var b=0,i=c.length;b<i;b++)for(var f=
+0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function wa(a){if(a.bAjaxDataGet){a.iDraw++;E(a,!0);var b=Ea(a);ka(a,b);a.fnServerData.call(a.oInstance,a.sAjaxSource,b,function(b){Fa(a,b)},a);return!1}return!0}function Ea(a){var b=a.aoColumns.length,c=[],d,i,f,g;c.push({name:"sEcho",value:a.iDraw});c.push({name:"iColumns",value:b});c.push({name:"sColumns",value:M(a)});c.push({name:"iDisplayStart",value:a._iDisplayStart});c.push({name:"iDisplayLength",
+value:!1!==a.oFeatures.bPaginate?a._iDisplayLength:-1});for(f=0;f<b;f++)d=a.aoColumns[f].mData,c.push({name:"mDataProp_"+f,value:"function"===typeof d?"function":d});if(!1!==a.oFeatures.bFilter){c.push({name:"sSearch",value:a.oPreviousSearch.sSearch});c.push({name:"bRegex",value:a.oPreviousSearch.bRegex});for(f=0;f<b;f++)c.push({name:"sSearch_"+f,value:a.aoPreSearchCols[f].sSearch}),c.push({name:"bRegex_"+f,value:a.aoPreSearchCols[f].bRegex}),c.push({name:"bSearchable_"+f,value:a.aoColumns[f].bSearchable})}if(!1!==
+a.oFeatures.bSort){var e=0;d=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(f=0;f<d.length;f++){i=a.aoColumns[d[f][0]].aDataSort;for(g=0;g<i.length;g++)c.push({name:"iSortCol_"+e,value:i[g]}),c.push({name:"sSortDir_"+e,value:d[f][1]}),e++}c.push({name:"iSortingCols",value:e});for(f=0;f<b;f++)c.push({name:"bSortable_"+f,value:a.aoColumns[f].bSortable})}return c}function ka(a,b){A(a,"aoServerParams","serverParams",[b])}function Fa(a,b){if(b.sEcho!==n){if(1*b.sEcho<
+a.iDraw)return;a.iDraw=1*b.sEcho}(!a.oScroll.bInfinite||a.oScroll.bInfinite&&(a.bSorted||a.bFiltered))&&ga(a);a._iRecordsTotal=parseInt(b.iTotalRecords,10);a._iRecordsDisplay=parseInt(b.iTotalDisplayRecords,10);var c=M(a),c=b.sColumns!==n&&""!==c&&b.sColumns!=c,d;c&&(d=u(a,b.sColumns));for(var i=Q(a.sAjaxDataProp)(b),f=0,g=i.length;f<g;f++)if(c){for(var e=[],h=0,j=a.aoColumns.length;h<j;h++)e.push(i[f][d[h]]);H(a,e)}else H(a,i[f]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;x(a);a.bAjaxDataGet=
+!0;E(a,!1)}function za(a){var b=a.oPreviousSearch,c=a.oLanguage.sSearch,c=-1!==c.indexOf("_INPUT_")?c.replace("_INPUT_",'<input type="text" />'):""===c?'<input type="text" />':c+' <input type="text" />',d=l.createElement("div");d.className=a.oClasses.sFilter;d.innerHTML="<label>"+c+"</label>";a.aanFeatures.f||(d.id=a.sTableId+"_filter");c=h('input[type="text"]',d);d._DT_Input=c[0];c.val(b.sSearch.replace('"',"&quot;"));c.bind("keyup.DT",function(){for(var c=a.aanFeatures.f,d=this.value===""?"":this.value,
+g=0,e=c.length;g<e;g++)c[g]!=h(this).parents("div.dataTables_filter")[0]&&h(c[g]._DT_Input).val(d);d!=b.sSearch&&K(a,{sSearch:d,bRegex:b.bRegex,bSmart:b.bSmart,bCaseInsensitive:b.bCaseInsensitive})});c.attr("aria-controls",a.sTableId).bind("keypress.DT",function(a){if(a.keyCode==13)return false});return d}function K(a,b,c){var d=a.oPreviousSearch,i=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};if(a.oFeatures.bServerSide)f(b);
+else{Ga(a,b.sSearch,c,b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<a.aoPreSearchCols.length;b++)Ha(a,i[b].sSearch,b,i[b].bRegex,i[b].bSmart,i[b].bCaseInsensitive);Ia(a)}a.bFiltered=!0;h(a.oInstance).trigger("filter",a);a._iDisplayStart=0;y(a);x(a);la(a,0)}function Ia(a){for(var b=j.ext.afnFiltering,c=r(a,"bSearchable"),d=0,i=b.length;d<i;d++)for(var f=0,g=0,e=a.aiDisplay.length;g<e;g++){var h=a.aiDisplay[g-f];b[d](a,Y(a,h,"filter",c),h)||(a.aiDisplay.splice(g-f,1),f++)}}function Ha(a,b,c,
+d,i,f){if(""!==b)for(var g=0,b=ma(b,d,i,f),d=a.aiDisplay.length-1;0<=d;d--)i=Ja(v(a,a.aiDisplay[d],c,"filter"),a.aoColumns[c].sType),b.test(i)||(a.aiDisplay.splice(d,1),g++)}function Ga(a,b,c,d,i,f){d=ma(b,d,i,f);i=a.oPreviousSearch;c||(c=0);0!==j.ext.afnFiltering.length&&(c=1);if(0>=b.length)a.aiDisplay.splice(0,a.aiDisplay.length),a.aiDisplay=a.aiDisplayMaster.slice();else if(a.aiDisplay.length==a.aiDisplayMaster.length||i.sSearch.length>b.length||1==c||0!==b.indexOf(i.sSearch)){a.aiDisplay.splice(0,
+a.aiDisplay.length);la(a,1);for(b=0;b<a.aiDisplayMaster.length;b++)d.test(a.asDataSearch[b])&&a.aiDisplay.push(a.aiDisplayMaster[b])}else for(b=c=0;b<a.asDataSearch.length;b++)d.test(a.asDataSearch[b])||(a.aiDisplay.splice(b-c,1),c++)}function la(a,b){if(!a.oFeatures.bServerSide){a.asDataSearch=[];for(var c=r(a,"bSearchable"),d=1===b?a.aiDisplayMaster:a.aiDisplay,i=0,f=d.length;i<f;i++)a.asDataSearch[i]=na(a,Y(a,d[i],"filter",c))}}function na(a,b){var c=b.join(" ");-1!==c.indexOf("&")&&(c=h("<div>").html(c).text());
+return c.replace(/[\n\r]/g," ")}function ma(a,b,c,d){if(c)return a=b?a.split(" "):oa(a).split(" "),a="^(?=.*?"+a.join(")(?=.*?")+").*$",RegExp(a,d?"i":"");a=b?a:oa(a);return RegExp(a,d?"i":"")}function Ja(a,b){return"function"===typeof j.ext.ofnSearch[b]?j.ext.ofnSearch[b](a):null===a?"":"html"==b?a.replace(/[\r\n]/g," ").replace(/<.*?>/g,""):"string"===typeof a?a.replace(/[\r\n]/g," "):a}function oa(a){return a.replace(RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),
+"\\$1")}function Ca(a){var b=l.createElement("div");b.className=a.oClasses.sInfo;a.aanFeatures.i||(a.aoDrawCallback.push({fn:Ka,sName:"information"}),b.id=a.sTableId+"_info");a.nTable.setAttribute("aria-describedby",a.sTableId+"_info");return b}function Ka(a){if(a.oFeatures.bInfo&&0!==a.aanFeatures.i.length){var b=a.oLanguage,c=a._iDisplayStart+1,d=a.fnDisplayEnd(),i=a.fnRecordsTotal(),f=a.fnRecordsDisplay(),g;g=0===f?b.sInfoEmpty:b.sInfo;f!=i&&(g+=" "+b.sInfoFiltered);g+=b.sInfoPostFix;g=ja(a,g);
+null!==b.fnInfoCallback&&(g=b.fnInfoCallback.call(a.oInstance,a,c,d,i,f,g));a=a.aanFeatures.i;b=0;for(c=a.length;b<c;b++)h(a[b]).html(g)}}function ja(a,b){var c=a.fnFormatNumber(a._iDisplayStart+1),d=a.fnDisplayEnd(),d=a.fnFormatNumber(d),i=a.fnRecordsDisplay(),i=a.fnFormatNumber(i),f=a.fnRecordsTotal(),f=a.fnFormatNumber(f);a.oScroll.bInfinite&&(c=a.fnFormatNumber(1));return b.replace(/_START_/g,c).replace(/_END_/g,d).replace(/_TOTAL_/g,i).replace(/_MAX_/g,f)}function ba(a){var b,c,d=a.iInitDisplayStart;
+if(!1===a.bInitialised)setTimeout(function(){ba(a)},200);else{xa(a);va(a);W(a,a.aoHeader);a.nTFoot&&W(a,a.aoFooter);E(a,!0);a.oFeatures.bAutoWidth&&da(a);b=0;for(c=a.aoColumns.length;b<c;b++)null!==a.aoColumns[b].sWidth&&(a.aoColumns[b].nTh.style.width=q(a.aoColumns[b].sWidth));a.oFeatures.bSort?O(a):a.oFeatures.bFilter?K(a,a.oPreviousSearch):(a.aiDisplay=a.aiDisplayMaster.slice(),y(a),x(a));null!==a.sAjaxSource&&!a.oFeatures.bServerSide?(c=[],ka(a,c),a.fnServerData.call(a.oInstance,a.sAjaxSource,
+c,function(c){var f=a.sAjaxDataProp!==""?Q(a.sAjaxDataProp)(c):c;for(b=0;b<f.length;b++)H(a,f[b]);a.iInitDisplayStart=d;if(a.oFeatures.bSort)O(a);else{a.aiDisplay=a.aiDisplayMaster.slice();y(a);x(a)}E(a,false);$(a,c)},a)):a.oFeatures.bServerSide||(E(a,!1),$(a))}}function $(a,b){a._bInitComplete=!0;A(a,"aoInitComplete","init",[a,b])}function pa(a){var b=j.defaults.oLanguage;!a.sEmptyTable&&(a.sZeroRecords&&"No data available in table"===b.sEmptyTable)&&p(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&
+(a.sZeroRecords&&"Loading..."===b.sLoadingRecords)&&p(a,a,"sZeroRecords","sLoadingRecords")}function ya(a){if(a.oScroll.bInfinite)return null;var b='<select size="1" '+('name="'+a.sTableId+'_length"')+">",c,d,i=a.aLengthMenu;if(2==i.length&&"object"===typeof i[0]&&"object"===typeof i[1]){c=0;for(d=i[0].length;c<d;c++)b+='<option value="'+i[0][c]+'">'+i[1][c]+"</option>"}else{c=0;for(d=i.length;c<d;c++)b+='<option value="'+i[c]+'">'+i[c]+"</option>"}b+="</select>";i=l.createElement("div");a.aanFeatures.l||
+(i.id=a.sTableId+"_length");i.className=a.oClasses.sLength;i.innerHTML="<label>"+a.oLanguage.sLengthMenu.replace("_MENU_",b)+"</label>";h('select option[value="'+a._iDisplayLength+'"]',i).attr("selected",!0);h("select",i).bind("change.DT",function(){var b=h(this).val(),i=a.aanFeatures.l;c=0;for(d=i.length;c<d;c++)i[c]!=this.parentNode&&h("select",i[c]).val(b);a._iDisplayLength=parseInt(b,10);y(a);if(a.fnDisplayEnd()==a.fnRecordsDisplay()){a._iDisplayStart=a.fnDisplayEnd()-a._iDisplayLength;if(a._iDisplayStart<
+0)a._iDisplayStart=0}if(a._iDisplayLength==-1)a._iDisplayStart=0;x(a)});h("select",i).attr("aria-controls",a.sTableId);return i}function y(a){a._iDisplayEnd=!1===a.oFeatures.bPaginate?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength>a.aiDisplay.length||-1==a._iDisplayLength?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength}function Da(a){if(a.oScroll.bInfinite)return null;var b=l.createElement("div");b.className=a.oClasses.sPaging+a.sPaginationType;j.ext.oPagination[a.sPaginationType].fnInit(a,
+b,function(a){y(a);x(a)});a.aanFeatures.p||a.aoDrawCallback.push({fn:function(a){j.ext.oPagination[a.sPaginationType].fnUpdate(a,function(a){y(a);x(a)})},sName:"pagination"});return b}function qa(a,b){var c=a._iDisplayStart;if("number"===typeof b)a._iDisplayStart=b*a._iDisplayLength,a._iDisplayStart>a.fnRecordsDisplay()&&(a._iDisplayStart=0);else if("first"==b)a._iDisplayStart=0;else if("previous"==b)a._iDisplayStart=0<=a._iDisplayLength?a._iDisplayStart-a._iDisplayLength:0,0>a._iDisplayStart&&(a._iDisplayStart=
+0);else if("next"==b)0<=a._iDisplayLength?a._iDisplayStart+a._iDisplayLength<a.fnRecordsDisplay()&&(a._iDisplayStart+=a._iDisplayLength):a._iDisplayStart=0;else if("last"==b)if(0<=a._iDisplayLength){var d=parseInt((a.fnRecordsDisplay()-1)/a._iDisplayLength,10)+1;a._iDisplayStart=(d-1)*a._iDisplayLength}else a._iDisplayStart=0;else D(a,0,"Unknown paging action: "+b);h(a.oInstance).trigger("page",a);return c!=a._iDisplayStart}function Aa(a){var b=l.createElement("div");a.aanFeatures.r||(b.id=a.sTableId+
+"_processing");b.innerHTML=a.oLanguage.sProcessing;b.className=a.oClasses.sProcessing;a.nTable.parentNode.insertBefore(b,a.nTable);return b}function E(a,b){if(a.oFeatures.bProcessing)for(var c=a.aanFeatures.r,d=0,i=c.length;d<i;d++)c[d].style.visibility=b?"visible":"hidden";h(a.oInstance).trigger("processing",[a,b])}function Ba(a){if(""===a.oScroll.sX&&""===a.oScroll.sY)return a.nTable;var b=l.createElement("div"),c=l.createElement("div"),d=l.createElement("div"),i=l.createElement("div"),f=l.createElement("div"),
+g=l.createElement("div"),e=a.nTable.cloneNode(!1),j=a.nTable.cloneNode(!1),o=a.nTable.getElementsByTagName("thead")[0],k=0===a.nTable.getElementsByTagName("tfoot").length?null:a.nTable.getElementsByTagName("tfoot")[0],m=a.oClasses;c.appendChild(d);f.appendChild(g);i.appendChild(a.nTable);b.appendChild(c);b.appendChild(i);d.appendChild(e);e.appendChild(o);null!==k&&(b.appendChild(f),g.appendChild(j),j.appendChild(k));b.className=m.sScrollWrapper;c.className=m.sScrollHead;d.className=m.sScrollHeadInner;
+i.className=m.sScrollBody;f.className=m.sScrollFoot;g.className=m.sScrollFootInner;a.oScroll.bAutoCss&&(c.style.overflow="hidden",c.style.position="relative",f.style.overflow="hidden",i.style.overflow="auto");c.style.border="0";c.style.width="100%";f.style.border="0";d.style.width=""!==a.oScroll.sXInner?a.oScroll.sXInner:"100%";e.removeAttribute("id");e.style.marginLeft="0";a.nTable.style.marginLeft="0";null!==k&&(j.removeAttribute("id"),j.style.marginLeft="0");d=h(a.nTable).children("caption");0<
+d.length&&(d=d[0],"top"===d._captionSide?e.appendChild(d):"bottom"===d._captionSide&&k&&j.appendChild(d));""!==a.oScroll.sX&&(c.style.width=q(a.oScroll.sX),i.style.width=q(a.oScroll.sX),null!==k&&(f.style.width=q(a.oScroll.sX)),h(i).scroll(function(){c.scrollLeft=this.scrollLeft;if(k!==null)f.scrollLeft=this.scrollLeft}));""!==a.oScroll.sY&&(i.style.height=q(a.oScroll.sY));a.aoDrawCallback.push({fn:La,sName:"scrolling"});a.oScroll.bInfinite&&h(i).scroll(function(){if(!a.bDrawing&&h(this).scrollTop()!==
+0&&h(this).scrollTop()+h(this).height()>h(a.nTable).height()-a.oScroll.iLoadGap&&a.fnDisplayEnd()<a.fnRecordsDisplay()){qa(a,"next");y(a);x(a)}});a.nScrollHead=c;a.nScrollFoot=f;return b}function La(a){var b=a.nScrollHead.getElementsByTagName("div")[0],c=b.getElementsByTagName("table")[0],d=a.nTable.parentNode,i,f,g,e,j,o,k,m,p=[],n=[],l=null!==a.nTFoot?a.nScrollFoot.getElementsByTagName("div")[0]:null,R=null!==a.nTFoot?l.getElementsByTagName("table")[0]:null,r=a.oBrowser.bScrollOversize,s=function(a){k=
+a.style;k.paddingTop="0";k.paddingBottom="0";k.borderTopWidth="0";k.borderBottomWidth="0";k.height=0};h(a.nTable).children("thead, tfoot").remove();i=h(a.nTHead).clone()[0];a.nTable.insertBefore(i,a.nTable.childNodes[0]);g=a.nTHead.getElementsByTagName("tr");e=i.getElementsByTagName("tr");null!==a.nTFoot&&(j=h(a.nTFoot).clone()[0],a.nTable.insertBefore(j,a.nTable.childNodes[1]),o=a.nTFoot.getElementsByTagName("tr"),j=j.getElementsByTagName("tr"));""===a.oScroll.sX&&(d.style.width="100%",b.parentNode.style.width=
+"100%");var t=N(a,i);i=0;for(f=t.length;i<f;i++)m=G(a,i),t[i].style.width=a.aoColumns[m].sWidth;null!==a.nTFoot&&C(function(a){a.style.width=""},j);a.oScroll.bCollapse&&""!==a.oScroll.sY&&(d.style.height=d.offsetHeight+a.nTHead.offsetHeight+"px");i=h(a.nTable).outerWidth();if(""===a.oScroll.sX){if(a.nTable.style.width="100%",r&&(h("tbody",d).height()>d.offsetHeight||"scroll"==h(d).css("overflow-y")))a.nTable.style.width=q(h(a.nTable).outerWidth()-a.oScroll.iBarWidth)}else""!==a.oScroll.sXInner?a.nTable.style.width=
+q(a.oScroll.sXInner):i==h(d).width()&&h(d).height()<h(a.nTable).height()?(a.nTable.style.width=q(i-a.oScroll.iBarWidth),h(a.nTable).outerWidth()>i-a.oScroll.iBarWidth&&(a.nTable.style.width=q(i))):a.nTable.style.width=q(i);i=h(a.nTable).outerWidth();C(s,e);C(function(a){p.push(q(h(a).width()))},e);C(function(a,b){a.style.width=p[b]},g);h(e).height(0);null!==a.nTFoot&&(C(s,j),C(function(a){n.push(q(h(a).width()))},j),C(function(a,b){a.style.width=n[b]},o),h(j).height(0));C(function(a,b){a.innerHTML=
+"";a.style.width=p[b]},e);null!==a.nTFoot&&C(function(a,b){a.innerHTML="";a.style.width=n[b]},j);if(h(a.nTable).outerWidth()<i){g=d.scrollHeight>d.offsetHeight||"scroll"==h(d).css("overflow-y")?i+a.oScroll.iBarWidth:i;if(r&&(d.scrollHeight>d.offsetHeight||"scroll"==h(d).css("overflow-y")))a.nTable.style.width=q(g-a.oScroll.iBarWidth);d.style.width=q(g);a.nScrollHead.style.width=q(g);null!==a.nTFoot&&(a.nScrollFoot.style.width=q(g));""===a.oScroll.sX?D(a,1,"The table cannot fit into the current element which will cause column misalignment. The table has been drawn at its minimum possible width."):
+""!==a.oScroll.sXInner&&D(a,1,"The table cannot fit into the current element which will cause column misalignment. Increase the sScrollXInner value or remove it to allow automatic calculation")}else d.style.width=q("100%"),a.nScrollHead.style.width=q("100%"),null!==a.nTFoot&&(a.nScrollFoot.style.width=q("100%"));""===a.oScroll.sY&&r&&(d.style.height=q(a.nTable.offsetHeight+a.oScroll.iBarWidth));""!==a.oScroll.sY&&a.oScroll.bCollapse&&(d.style.height=q(a.oScroll.sY),r=""!==a.oScroll.sX&&a.nTable.offsetWidth>
+d.offsetWidth?a.oScroll.iBarWidth:0,a.nTable.offsetHeight<d.offsetHeight&&(d.style.height=q(a.nTable.offsetHeight+r)));r=h(a.nTable).outerWidth();c.style.width=q(r);b.style.width=q(r);c=h(a.nTable).height()>d.clientHeight||"scroll"==h(d).css("overflow-y");b.style.paddingRight=c?a.oScroll.iBarWidth+"px":"0px";null!==a.nTFoot&&(R.style.width=q(r),l.style.width=q(r),l.style.paddingRight=c?a.oScroll.iBarWidth+"px":"0px");h(d).scroll();if(a.bSorted||a.bFiltered)d.scrollTop=0}function C(a,b,c){for(var d=
+0,i=0,f=b.length,g,e;i<f;){g=b[i].firstChild;for(e=c?c[i].firstChild:null;g;)1===g.nodeType&&(c?a(g,e,d):a(g,d),d++),g=g.nextSibling,e=c?e.nextSibling:null;i++}}function Ma(a,b){if(!a||null===a||""===a)return 0;b||(b=l.body);var c,d=l.createElement("div");d.style.width=q(a);b.appendChild(d);c=d.offsetWidth;b.removeChild(d);return c}function da(a){var b=0,c,d=0,i=a.aoColumns.length,f,e,j=h("th",a.nTHead),o=a.nTable.getAttribute("width");e=a.nTable.parentNode;for(f=0;f<i;f++)a.aoColumns[f].bVisible&&
+(d++,null!==a.aoColumns[f].sWidth&&(c=Ma(a.aoColumns[f].sWidthOrig,e),null!==c&&(a.aoColumns[f].sWidth=q(c)),b++));if(i==j.length&&0===b&&d==i&&""===a.oScroll.sX&&""===a.oScroll.sY)for(f=0;f<a.aoColumns.length;f++)c=h(j[f]).width(),null!==c&&(a.aoColumns[f].sWidth=q(c));else{b=a.nTable.cloneNode(!1);f=a.nTHead.cloneNode(!0);d=l.createElement("tbody");c=l.createElement("tr");b.removeAttribute("id");b.appendChild(f);null!==a.nTFoot&&(b.appendChild(a.nTFoot.cloneNode(!0)),C(function(a){a.style.width=
+""},b.getElementsByTagName("tr")));b.appendChild(d);d.appendChild(c);d=h("thead th",b);0===d.length&&(d=h("tbody tr:eq(0)>td",b));j=N(a,f);for(f=d=0;f<i;f++){var k=a.aoColumns[f];k.bVisible&&null!==k.sWidthOrig&&""!==k.sWidthOrig?j[f-d].style.width=q(k.sWidthOrig):k.bVisible?j[f-d].style.width="":d++}for(f=0;f<i;f++)a.aoColumns[f].bVisible&&(d=Na(a,f),null!==d&&(d=d.cloneNode(!0),""!==a.aoColumns[f].sContentPadding&&(d.innerHTML+=a.aoColumns[f].sContentPadding),c.appendChild(d)));e.appendChild(b);
+""!==a.oScroll.sX&&""!==a.oScroll.sXInner?b.style.width=q(a.oScroll.sXInner):""!==a.oScroll.sX?(b.style.width="",h(b).width()<e.offsetWidth&&(b.style.width=q(e.offsetWidth))):""!==a.oScroll.sY?b.style.width=q(e.offsetWidth):o&&(b.style.width=q(o));b.style.visibility="hidden";Oa(a,b);i=h("tbody tr:eq(0)",b).children();0===i.length&&(i=N(a,h("thead",b)[0]));if(""!==a.oScroll.sX){for(f=d=e=0;f<a.aoColumns.length;f++)a.aoColumns[f].bVisible&&(e=null===a.aoColumns[f].sWidthOrig?e+h(i[d]).outerWidth():
+e+(parseInt(a.aoColumns[f].sWidth.replace("px",""),10)+(h(i[d]).outerWidth()-h(i[d]).width())),d++);b.style.width=q(e);a.nTable.style.width=q(e)}for(f=d=0;f<a.aoColumns.length;f++)a.aoColumns[f].bVisible&&(e=h(i[d]).width(),null!==e&&0<e&&(a.aoColumns[f].sWidth=q(e)),d++);i=h(b).css("width");a.nTable.style.width=-1!==i.indexOf("%")?i:q(h(b).outerWidth());b.parentNode.removeChild(b)}o&&(a.nTable.style.width=q(o))}function Oa(a,b){""===a.oScroll.sX&&""!==a.oScroll.sY?(h(b).width(),b.style.width=q(h(b).outerWidth()-
+a.oScroll.iBarWidth)):""!==a.oScroll.sX&&(b.style.width=q(h(b).outerWidth()))}function Na(a,b){var c=Pa(a,b);if(0>c)return null;if(null===a.aoData[c].nTr){var d=l.createElement("td");d.innerHTML=v(a,c,b,"");return d}return J(a,c)[b]}function Pa(a,b){for(var c=-1,d=-1,i=0;i<a.aoData.length;i++){var e=v(a,i,b,"display")+"",e=e.replace(/<.*?>/g,"");e.length>c&&(c=e.length,d=i)}return d}function q(a){if(null===a)return"0px";if("number"==typeof a)return 0>a?"0px":a+"px";var b=a.charCodeAt(a.length-1);
+return 48>b||57<b?a:a+"px"}function Qa(){var a=l.createElement("p"),b=a.style;b.width="100%";b.height="200px";b.padding="0px";var c=l.createElement("div"),b=c.style;b.position="absolute";b.top="0px";b.left="0px";b.visibility="hidden";b.width="200px";b.height="150px";b.padding="0px";b.overflow="hidden";c.appendChild(a);l.body.appendChild(c);b=a.offsetWidth;c.style.overflow="scroll";a=a.offsetWidth;b==a&&(a=c.clientWidth);l.body.removeChild(c);return b-a}function O(a,b){var c,d,i,e,g,k,o=[],m=[],p=
+j.ext.oSort,l=a.aoData,q=a.aoColumns,G=a.oLanguage.oAria;if(!a.oFeatures.bServerSide&&(0!==a.aaSorting.length||null!==a.aaSortingFixed)){o=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(c=0;c<o.length;c++)if(d=o[c][0],i=R(a,d),e=a.aoColumns[d].sSortDataType,j.ext.afnSortData[e])if(g=j.ext.afnSortData[e].call(a.oInstance,a,d,i),g.length===l.length){i=0;for(e=l.length;i<e;i++)F(a,i,d,g[i])}else D(a,0,"Returned data sort array (col "+d+") is the wrong length");c=
+0;for(d=a.aiDisplayMaster.length;c<d;c++)m[a.aiDisplayMaster[c]]=c;var r=o.length,s;c=0;for(d=l.length;c<d;c++)for(i=0;i<r;i++){s=q[o[i][0]].aDataSort;g=0;for(k=s.length;g<k;g++)e=q[s[g]].sType,e=p[(e?e:"string")+"-pre"],l[c]._aSortData[s[g]]=e?e(v(a,c,s[g],"sort")):v(a,c,s[g],"sort")}a.aiDisplayMaster.sort(function(a,b){var c,d,e,i,f;for(c=0;c<r;c++){f=q[o[c][0]].aDataSort;d=0;for(e=f.length;d<e;d++)if(i=q[f[d]].sType,i=p[(i?i:"string")+"-"+o[c][1]](l[a]._aSortData[f[d]],l[b]._aSortData[f[d]]),0!==
+i)return i}return p["numeric-asc"](m[a],m[b])})}(b===n||b)&&!a.oFeatures.bDeferRender&&P(a);c=0;for(d=a.aoColumns.length;c<d;c++)e=q[c].sTitle.replace(/<.*?>/g,""),i=q[c].nTh,i.removeAttribute("aria-sort"),i.removeAttribute("aria-label"),q[c].bSortable?0<o.length&&o[0][0]==c?(i.setAttribute("aria-sort","asc"==o[0][1]?"ascending":"descending"),i.setAttribute("aria-label",e+("asc"==(q[c].asSorting[o[0][2]+1]?q[c].asSorting[o[0][2]+1]:q[c].asSorting[0])?G.sSortAscending:G.sSortDescending))):i.setAttribute("aria-label",
+e+("asc"==q[c].asSorting[0]?G.sSortAscending:G.sSortDescending)):i.setAttribute("aria-label",e);a.bSorted=!0;h(a.oInstance).trigger("sort",a);a.oFeatures.bFilter?K(a,a.oPreviousSearch,1):(a.aiDisplay=a.aiDisplayMaster.slice(),a._iDisplayStart=0,y(a),x(a))}function ia(a,b,c,d){Ra(b,{},function(b){if(!1!==a.aoColumns[c].bSortable){var e=function(){var d,e;if(b.shiftKey){for(var f=!1,h=0;h<a.aaSorting.length;h++)if(a.aaSorting[h][0]==c){f=!0;d=a.aaSorting[h][0];e=a.aaSorting[h][2]+1;a.aoColumns[d].asSorting[e]?
+(a.aaSorting[h][1]=a.aoColumns[d].asSorting[e],a.aaSorting[h][2]=e):a.aaSorting.splice(h,1);break}!1===f&&a.aaSorting.push([c,a.aoColumns[c].asSorting[0],0])}else 1==a.aaSorting.length&&a.aaSorting[0][0]==c?(d=a.aaSorting[0][0],e=a.aaSorting[0][2]+1,a.aoColumns[d].asSorting[e]||(e=0),a.aaSorting[0][1]=a.aoColumns[d].asSorting[e],a.aaSorting[0][2]=e):(a.aaSorting.splice(0,a.aaSorting.length),a.aaSorting.push([c,a.aoColumns[c].asSorting[0],0]));O(a)};a.oFeatures.bProcessing?(E(a,!0),setTimeout(function(){e();
+a.oFeatures.bServerSide||E(a,!1)},0)):e();"function"==typeof d&&d(a)}})}function P(a){var b,c,d,e,f,g=a.aoColumns.length,j=a.oClasses;for(b=0;b<g;b++)a.aoColumns[b].bSortable&&h(a.aoColumns[b].nTh).removeClass(j.sSortAsc+" "+j.sSortDesc+" "+a.aoColumns[b].sSortingClass);c=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(b=0;b<a.aoColumns.length;b++)if(a.aoColumns[b].bSortable){f=a.aoColumns[b].sSortingClass;e=-1;for(d=0;d<c.length;d++)if(c[d][0]==b){f="asc"==c[d][1]?
+j.sSortAsc:j.sSortDesc;e=d;break}h(a.aoColumns[b].nTh).addClass(f);a.bJUI&&(f=h("span."+j.sSortIcon,a.aoColumns[b].nTh),f.removeClass(j.sSortJUIAsc+" "+j.sSortJUIDesc+" "+j.sSortJUI+" "+j.sSortJUIAscAllowed+" "+j.sSortJUIDescAllowed),f.addClass(-1==e?a.aoColumns[b].sSortingClassJUI:"asc"==c[e][1]?j.sSortJUIAsc:j.sSortJUIDesc))}else h(a.aoColumns[b].nTh).addClass(a.aoColumns[b].sSortingClass);f=j.sSortColumn;if(a.oFeatures.bSort&&a.oFeatures.bSortClasses){a=J(a);e=[];for(b=0;b<g;b++)e.push("");b=0;
+for(d=1;b<c.length;b++)j=parseInt(c[b][0],10),e[j]=f+d,3>d&&d++;f=RegExp(f+"[123]");var o;b=0;for(c=a.length;b<c;b++)j=b%g,d=a[b].className,o=e[j],j=d.replace(f,o),j!=d?a[b].className=h.trim(j):0<o.length&&-1==d.indexOf(o)&&(a[b].className=d+" "+o)}}function ra(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b,c;b=a.oScroll.bInfinite;var d={iCreate:(new Date).getTime(),iStart:b?0:a._iDisplayStart,iEnd:b?a._iDisplayLength:a._iDisplayEnd,iLength:a._iDisplayLength,aaSorting:h.extend(!0,[],a.aaSorting),
+oSearch:h.extend(!0,{},a.oPreviousSearch),aoSearchCols:h.extend(!0,[],a.aoPreSearchCols),abVisCols:[]};b=0;for(c=a.aoColumns.length;b<c;b++)d.abVisCols.push(a.aoColumns[b].bVisible);A(a,"aoStateSaveParams","stateSaveParams",[a,d]);a.fnStateSave.call(a.oInstance,a,d)}}function Sa(a,b){if(a.oFeatures.bStateSave){var c=a.fnStateLoad.call(a.oInstance,a);if(c){var d=A(a,"aoStateLoadParams","stateLoadParams",[a,c]);if(-1===h.inArray(!1,d)){a.oLoadedState=h.extend(!0,{},c);a._iDisplayStart=c.iStart;a.iInitDisplayStart=
+c.iStart;a._iDisplayEnd=c.iEnd;a._iDisplayLength=c.iLength;a.aaSorting=c.aaSorting.slice();a.saved_aaSorting=c.aaSorting.slice();h.extend(a.oPreviousSearch,c.oSearch);h.extend(!0,a.aoPreSearchCols,c.aoSearchCols);b.saved_aoColumns=[];for(d=0;d<c.abVisCols.length;d++)b.saved_aoColumns[d]={},b.saved_aoColumns[d].bVisible=c.abVisCols[d];A(a,"aoStateLoaded","stateLoaded",[a,c])}}}}function s(a){for(var b=0;b<j.settings.length;b++)if(j.settings[b].nTable===a)return j.settings[b];return null}function T(a){for(var b=
+[],a=a.aoData,c=0,d=a.length;c<d;c++)null!==a[c].nTr&&b.push(a[c].nTr);return b}function J(a,b){var c=[],d,e,f,g,h,j;e=0;var o=a.aoData.length;b!==n&&(e=b,o=b+1);for(f=e;f<o;f++)if(j=a.aoData[f],null!==j.nTr){e=[];for(d=j.nTr.firstChild;d;)g=d.nodeName.toLowerCase(),("td"==g||"th"==g)&&e.push(d),d=d.nextSibling;g=d=0;for(h=a.aoColumns.length;g<h;g++)a.aoColumns[g].bVisible?c.push(e[g-d]):(c.push(j._anHidden[g]),d++)}return c}function D(a,b,c){a=null===a?"DataTables warning: "+c:"DataTables warning (table id = '"+
+a.sTableId+"'): "+c;if(0===b)if("alert"==j.ext.sErrMode)alert(a);else throw Error(a);else X.console&&console.log&&console.log(a)}function p(a,b,c,d){d===n&&(d=c);b[c]!==n&&(a[d]=b[c])}function Ta(a,b){var c,d;for(d in b)b.hasOwnProperty(d)&&(c=b[d],"object"===typeof e[d]&&null!==c&&!1===h.isArray(c)?h.extend(!0,a[d],c):a[d]=c);return a}function Ra(a,b,c){h(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&c(a)}).bind("selectstart.DT",function(){return!1})}
+function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function A(a,b,c,d){for(var b=a[b],e=[],f=b.length-1;0<=f;f--)e.push(b[f].fn.apply(a.oInstance,d));null!==c&&h(a.oInstance).trigger(c,d);return e}function Ua(a){var b=h('<div style="position:absolute; top:0; left:0; height:1px; width:1px; overflow:hidden"><div style="position:absolute; top:1px; left:1px; width:100px; overflow:scroll;"><div id="DT_BrowserTest" style="width:100%; height:10px;"></div></div></div>')[0];l.body.appendChild(b);a.oBrowser.bScrollOversize=
+100===h("#DT_BrowserTest",b)[0].offsetWidth?!0:!1;l.body.removeChild(b)}function Va(a){return function(){var b=[s(this[j.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return j.ext.oApi[a].apply(this,b)}}var U=/\[.*?\]$/,Wa=X.JSON?JSON.stringify:function(a){var b=typeof a;if("object"!==b||null===a)return"string"===b&&(a='"'+a+'"'),a+"";var c,d,e=[],f=h.isArray(a);for(c in a)d=a[c],b=typeof d,"string"===b?d='"'+d+'"':"object"===b&&null!==d&&(d=Wa(d)),e.push((f?"":'"'+c+'":')+d);return(f?
+"[":"{")+e+(f?"]":"}")};this.$=function(a,b){var c,d,e=[],f;d=s(this[j.ext.iApiIndex]);var g=d.aoData,o=d.aiDisplay,k=d.aiDisplayMaster;b||(b={});b=h.extend({},{filter:"none",order:"current",page:"all"},b);if("current"==b.page){c=d._iDisplayStart;for(d=d.fnDisplayEnd();c<d;c++)(f=g[o[c]].nTr)&&e.push(f)}else if("current"==b.order&&"none"==b.filter){c=0;for(d=k.length;c<d;c++)(f=g[k[c]].nTr)&&e.push(f)}else if("current"==b.order&&"applied"==b.filter){c=0;for(d=o.length;c<d;c++)(f=g[o[c]].nTr)&&e.push(f)}else if("original"==
+b.order&&"none"==b.filter){c=0;for(d=g.length;c<d;c++)(f=g[c].nTr)&&e.push(f)}else if("original"==b.order&&"applied"==b.filter){c=0;for(d=g.length;c<d;c++)f=g[c].nTr,-1!==h.inArray(c,o)&&f&&e.push(f)}else D(d,1,"Unknown selection options");e=h(e);c=e.filter(a);e=e.find(a);return h([].concat(h.makeArray(c),h.makeArray(e)))};this._=function(a,b){var c=[],d,e,f=this.$(a,b);d=0;for(e=f.length;d<e;d++)c.push(this.fnGetData(f[d]));return c};this.fnAddData=function(a,b){if(0===a.length)return[];var c=[],
+d,e=s(this[j.ext.iApiIndex]);if("object"===typeof a[0]&&null!==a[0])for(var f=0;f<a.length;f++){d=H(e,a[f]);if(-1==d)return c;c.push(d)}else{d=H(e,a);if(-1==d)return c;c.push(d)}e.aiDisplay=e.aiDisplayMaster.slice();(b===n||b)&&aa(e);return c};this.fnAdjustColumnSizing=function(a){var b=s(this[j.ext.iApiIndex]);k(b);a===n||a?this.fnDraw(!1):(""!==b.oScroll.sX||""!==b.oScroll.sY)&&this.oApi._fnScrollDraw(b)};this.fnClearTable=function(a){var b=s(this[j.ext.iApiIndex]);ga(b);(a===n||a)&&x(b)};this.fnClose=
+function(a){for(var b=s(this[j.ext.iApiIndex]),c=0;c<b.aoOpenRows.length;c++)if(b.aoOpenRows[c].nParent==a)return(a=b.aoOpenRows[c].nTr.parentNode)&&a.removeChild(b.aoOpenRows[c].nTr),b.aoOpenRows.splice(c,1),0;return 1};this.fnDeleteRow=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e,f,a="object"===typeof a?I(d,a):a,g=d.aoData.splice(a,1);e=0;for(f=d.aoData.length;e<f;e++)null!==d.aoData[e].nTr&&(d.aoData[e].nTr._DT_RowIndex=e);e=h.inArray(a,d.aiDisplay);d.asDataSearch.splice(e,1);ha(d.aiDisplayMaster,
+a);ha(d.aiDisplay,a);"function"===typeof b&&b.call(this,d,g);d._iDisplayStart>=d.fnRecordsDisplay()&&(d._iDisplayStart-=d._iDisplayLength,0>d._iDisplayStart&&(d._iDisplayStart=0));if(c===n||c)y(d),x(d);return g};this.fnDestroy=function(a){var b=s(this[j.ext.iApiIndex]),c=b.nTableWrapper.parentNode,d=b.nTBody,i,f,a=a===n?!1:a;b.bDestroying=!0;A(b,"aoDestroyCallback","destroy",[b]);if(!a){i=0;for(f=b.aoColumns.length;i<f;i++)!1===b.aoColumns[i].bVisible&&this.fnSetColumnVis(i,!0)}h(b.nTableWrapper).find("*").andSelf().unbind(".DT");
+h("tbody>tr>td."+b.oClasses.sRowEmpty,b.nTable).parent().remove();b.nTable!=b.nTHead.parentNode&&(h(b.nTable).children("thead").remove(),b.nTable.appendChild(b.nTHead));b.nTFoot&&b.nTable!=b.nTFoot.parentNode&&(h(b.nTable).children("tfoot").remove(),b.nTable.appendChild(b.nTFoot));b.nTable.parentNode.removeChild(b.nTable);h(b.nTableWrapper).remove();b.aaSorting=[];b.aaSortingFixed=[];P(b);h(T(b)).removeClass(b.asStripeClasses.join(" "));h("th, td",b.nTHead).removeClass([b.oClasses.sSortable,b.oClasses.sSortableAsc,
+b.oClasses.sSortableDesc,b.oClasses.sSortableNone].join(" "));b.bJUI&&(h("th span."+b.oClasses.sSortIcon+", td span."+b.oClasses.sSortIcon,b.nTHead).remove(),h("th, td",b.nTHead).each(function(){var a=h("div."+b.oClasses.sSortJUIWrapper,this),c=a.contents();h(this).append(c);a.remove()}));!a&&b.nTableReinsertBefore?c.insertBefore(b.nTable,b.nTableReinsertBefore):a||c.appendChild(b.nTable);i=0;for(f=b.aoData.length;i<f;i++)null!==b.aoData[i].nTr&&d.appendChild(b.aoData[i].nTr);!0===b.oFeatures.bAutoWidth&&
+(b.nTable.style.width=q(b.sDestroyWidth));if(f=b.asDestroyStripes.length){a=h(d).children("tr");for(i=0;i<f;i++)a.filter(":nth-child("+f+"n + "+i+")").addClass(b.asDestroyStripes[i])}i=0;for(f=j.settings.length;i<f;i++)j.settings[i]==b&&j.settings.splice(i,1);e=b=null};this.fnDraw=function(a){var b=s(this[j.ext.iApiIndex]);!1===a?(y(b),x(b)):aa(b)};this.fnFilter=function(a,b,c,d,e,f){var g=s(this[j.ext.iApiIndex]);if(g.oFeatures.bFilter){if(c===n||null===c)c=!1;if(d===n||null===d)d=!0;if(e===n||null===
+e)e=!0;if(f===n||null===f)f=!0;if(b===n||null===b){if(K(g,{sSearch:a+"",bRegex:c,bSmart:d,bCaseInsensitive:f},1),e&&g.aanFeatures.f){b=g.aanFeatures.f;c=0;for(d=b.length;c<d;c++)try{b[c]._DT_Input!=l.activeElement&&h(b[c]._DT_Input).val(a)}catch(o){h(b[c]._DT_Input).val(a)}}}else h.extend(g.aoPreSearchCols[b],{sSearch:a+"",bRegex:c,bSmart:d,bCaseInsensitive:f}),K(g,g.oPreviousSearch,1)}};this.fnGetData=function(a,b){var c=s(this[j.ext.iApiIndex]);if(a!==n){var d=a;if("object"===typeof a){var e=a.nodeName.toLowerCase();
+"tr"===e?d=I(c,a):"td"===e&&(d=I(c,a.parentNode),b=fa(c,d,a))}return b!==n?v(c,d,b,""):c.aoData[d]!==n?c.aoData[d]._aData:null}return Z(c)};this.fnGetNodes=function(a){var b=s(this[j.ext.iApiIndex]);return a!==n?b.aoData[a]!==n?b.aoData[a].nTr:null:T(b)};this.fnGetPosition=function(a){var b=s(this[j.ext.iApiIndex]),c=a.nodeName.toUpperCase();return"TR"==c?I(b,a):"TD"==c||"TH"==c?(c=I(b,a.parentNode),a=fa(b,c,a),[c,R(b,a),a]):null};this.fnIsOpen=function(a){for(var b=s(this[j.ext.iApiIndex]),c=0;c<
+b.aoOpenRows.length;c++)if(b.aoOpenRows[c].nParent==a)return!0;return!1};this.fnOpen=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e=T(d);if(-1!==h.inArray(a,e)){this.fnClose(a);var e=l.createElement("tr"),f=l.createElement("td");e.appendChild(f);f.className=c;f.colSpan=t(d);"string"===typeof b?f.innerHTML=b:h(f).html(b);b=h("tr",d.nTBody);-1!=h.inArray(a,b)&&h(e).insertAfter(a);d.aoOpenRows.push({nTr:e,nParent:a});return e}};this.fnPageChange=function(a,b){var c=s(this[j.ext.iApiIndex]);qa(c,a);
+y(c);(b===n||b)&&x(c)};this.fnSetColumnVis=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e,f,g=d.aoColumns,h=d.aoData,o,m;if(g[a].bVisible!=b){if(b){for(e=f=0;e<a;e++)g[e].bVisible&&f++;m=f>=t(d);if(!m)for(e=a;e<g.length;e++)if(g[e].bVisible){o=e;break}e=0;for(f=h.length;e<f;e++)null!==h[e].nTr&&(m?h[e].nTr.appendChild(h[e]._anHidden[a]):h[e].nTr.insertBefore(h[e]._anHidden[a],J(d,e)[o]))}else{e=0;for(f=h.length;e<f;e++)null!==h[e].nTr&&(o=J(d,e)[a],h[e]._anHidden[a]=o,o.parentNode.removeChild(o))}g[a].bVisible=
+b;W(d,d.aoHeader);d.nTFoot&&W(d,d.aoFooter);e=0;for(f=d.aoOpenRows.length;e<f;e++)d.aoOpenRows[e].nTr.colSpan=t(d);if(c===n||c)k(d),x(d);ra(d)}};this.fnSettings=function(){return s(this[j.ext.iApiIndex])};this.fnSort=function(a){var b=s(this[j.ext.iApiIndex]);b.aaSorting=a;O(b)};this.fnSortListener=function(a,b,c){ia(s(this[j.ext.iApiIndex]),a,b,c)};this.fnUpdate=function(a,b,c,d,e){var f=s(this[j.ext.iApiIndex]),b="object"===typeof b?I(f,b):b;if(h.isArray(a)&&c===n){f.aoData[b]._aData=a.slice();
+for(c=0;c<f.aoColumns.length;c++)this.fnUpdate(v(f,b,c),b,c,!1,!1)}else if(h.isPlainObject(a)&&c===n){f.aoData[b]._aData=h.extend(!0,{},a);for(c=0;c<f.aoColumns.length;c++)this.fnUpdate(v(f,b,c),b,c,!1,!1)}else{F(f,b,c,a);var a=v(f,b,c,"display"),g=f.aoColumns[c];null!==g.fnRender&&(a=S(f,b,c),g.bUseRendered&&F(f,b,c,a));null!==f.aoData[b].nTr&&(J(f,b)[c].innerHTML=a)}c=h.inArray(b,f.aiDisplay);f.asDataSearch[c]=na(f,Y(f,b,"filter",r(f,"bSearchable")));(e===n||e)&&k(f);(d===n||d)&&aa(f);return 0};
+this.fnVersionCheck=j.ext.fnVersionCheck;this.oApi={_fnExternApiFunc:Va,_fnInitialise:ba,_fnInitComplete:$,_fnLanguageCompat:pa,_fnAddColumn:o,_fnColumnOptions:m,_fnAddData:H,_fnCreateTr:ea,_fnGatherData:ua,_fnBuildHead:va,_fnDrawHead:W,_fnDraw:x,_fnReDraw:aa,_fnAjaxUpdate:wa,_fnAjaxParameters:Ea,_fnAjaxUpdateDraw:Fa,_fnServerParams:ka,_fnAddOptionsHtml:xa,_fnFeatureHtmlTable:Ba,_fnScrollDraw:La,_fnAdjustColumnSizing:k,_fnFeatureHtmlFilter:za,_fnFilterComplete:K,_fnFilterCustom:Ia,_fnFilterColumn:Ha,
+_fnFilter:Ga,_fnBuildSearchArray:la,_fnBuildSearchRow:na,_fnFilterCreateSearch:ma,_fnDataToSearch:Ja,_fnSort:O,_fnSortAttachListener:ia,_fnSortingClasses:P,_fnFeatureHtmlPaginate:Da,_fnPageChange:qa,_fnFeatureHtmlInfo:Ca,_fnUpdateInfo:Ka,_fnFeatureHtmlLength:ya,_fnFeatureHtmlProcessing:Aa,_fnProcessingDisplay:E,_fnVisibleToColumnIndex:G,_fnColumnIndexToVisible:R,_fnNodeToDataIndex:I,_fnVisbleColumns:t,_fnCalculateEnd:y,_fnConvertToWidth:Ma,_fnCalculateColumnWidths:da,_fnScrollingWidthAdjust:Oa,_fnGetWidestNode:Na,
+_fnGetMaxLenString:Pa,_fnStringToCss:q,_fnDetectType:B,_fnSettingsFromNode:s,_fnGetDataMaster:Z,_fnGetTrNodes:T,_fnGetTdNodes:J,_fnEscapeRegex:oa,_fnDeleteIndex:ha,_fnReOrderIndex:u,_fnColumnOrdering:M,_fnLog:D,_fnClearTable:ga,_fnSaveState:ra,_fnLoadState:Sa,_fnCreateCookie:function(a,b,c,d,e){var f=new Date;f.setTime(f.getTime()+1E3*c);var c=X.location.pathname.split("/"),a=a+"_"+c.pop().replace(/[\/:]/g,"").toLowerCase(),g;null!==e?(g="function"===typeof h.parseJSON?h.parseJSON(b):eval("("+b+")"),
+b=e(a,g,f.toGMTString(),c.join("/")+"/")):b=a+"="+encodeURIComponent(b)+"; expires="+f.toGMTString()+"; path="+c.join("/")+"/";a=l.cookie.split(";");e=b.split(";")[0].length;f=[];if(4096<e+l.cookie.length+10){for(var j=0,o=a.length;j<o;j++)if(-1!=a[j].indexOf(d)){var k=a[j].split("=");try{(g=eval("("+decodeURIComponent(k[1])+")"))&&g.iCreate&&f.push({name:k[0],time:g.iCreate})}catch(m){}}for(f.sort(function(a,b){return b.time-a.time});4096<e+l.cookie.length+10;){if(0===f.length)return;d=f.pop();l.cookie=
+d.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+c.join("/")+"/"}}l.cookie=b},_fnReadCookie:function(a){for(var b=X.location.pathname.split("/"),a=a+"_"+b[b.length-1].replace(/[\/:]/g,"").toLowerCase()+"=",b=l.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(a))return decodeURIComponent(d.substring(a.length,d.length))}return null},_fnDetectHeader:V,_fnGetUniqueThs:N,_fnScrollBarWidth:Qa,_fnApplyToChildren:C,_fnMap:p,_fnGetRowData:Y,
+_fnGetCellData:v,_fnSetCellData:F,_fnGetObjectDataFn:Q,_fnSetObjectDataFn:L,_fnApplyColumnDefs:ta,_fnBindAction:Ra,_fnExtend:Ta,_fnCallbackReg:z,_fnCallbackFire:A,_fnJsonString:Wa,_fnRender:S,_fnNodeToColumnIndex:fa,_fnInfoMacros:ja,_fnBrowserDetect:Ua,_fnGetColumns:r};h.extend(j.ext.oApi,this.oApi);for(var sa in j.ext.oApi)sa&&(this[sa]=Va(sa));var ca=this;this.each(function(){var a=0,b,c,d;c=this.getAttribute("id");var i=!1,f=!1;if("table"!=this.nodeName.toLowerCase())D(null,0,"Attempted to initialise DataTables on a node which is not a table: "+
+this.nodeName);else{a=0;for(b=j.settings.length;a<b;a++){if(j.settings[a].nTable==this){if(e===n||e.bRetrieve)return j.settings[a].oInstance;if(e.bDestroy){j.settings[a].oInstance.fnDestroy();break}else{D(j.settings[a],0,"Cannot reinitialise DataTable.\n\nTo retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy");return}}if(j.settings[a].sTableId==this.id){j.settings.splice(a,1);break}}if(null===c||""===c)this.id=c="DataTables_Table_"+j.ext._oExternConfig.iNextUnique++;
+var g=h.extend(!0,{},j.models.oSettings,{nTable:this,oApi:ca.oApi,oInit:e,sDestroyWidth:h(this).width(),sInstance:c,sTableId:c});j.settings.push(g);g.oInstance=1===ca.length?ca:h(this).dataTable();e||(e={});e.oLanguage&&pa(e.oLanguage);e=Ta(h.extend(!0,{},j.defaults),e);p(g.oFeatures,e,"bPaginate");p(g.oFeatures,e,"bLengthChange");p(g.oFeatures,e,"bFilter");p(g.oFeatures,e,"bSort");p(g.oFeatures,e,"bInfo");p(g.oFeatures,e,"bProcessing");p(g.oFeatures,e,"bAutoWidth");p(g.oFeatures,e,"bSortClasses");
+p(g.oFeatures,e,"bServerSide");p(g.oFeatures,e,"bDeferRender");p(g.oScroll,e,"sScrollX","sX");p(g.oScroll,e,"sScrollXInner","sXInner");p(g.oScroll,e,"sScrollY","sY");p(g.oScroll,e,"bScrollCollapse","bCollapse");p(g.oScroll,e,"bScrollInfinite","bInfinite");p(g.oScroll,e,"iScrollLoadGap","iLoadGap");p(g.oScroll,e,"bScrollAutoCss","bAutoCss");p(g,e,"asStripeClasses");p(g,e,"asStripClasses","asStripeClasses");p(g,e,"fnServerData");p(g,e,"fnFormatNumber");p(g,e,"sServerMethod");p(g,e,"aaSorting");p(g,
+e,"aaSortingFixed");p(g,e,"aLengthMenu");p(g,e,"sPaginationType");p(g,e,"sAjaxSource");p(g,e,"sAjaxDataProp");p(g,e,"iCookieDuration");p(g,e,"sCookiePrefix");p(g,e,"sDom");p(g,e,"bSortCellsTop");p(g,e,"iTabIndex");p(g,e,"oSearch","oPreviousSearch");p(g,e,"aoSearchCols","aoPreSearchCols");p(g,e,"iDisplayLength","_iDisplayLength");p(g,e,"bJQueryUI","bJUI");p(g,e,"fnCookieCallback");p(g,e,"fnStateLoad");p(g,e,"fnStateSave");p(g.oLanguage,e,"fnInfoCallback");z(g,"aoDrawCallback",e.fnDrawCallback,"user");
+z(g,"aoServerParams",e.fnServerParams,"user");z(g,"aoStateSaveParams",e.fnStateSaveParams,"user");z(g,"aoStateLoadParams",e.fnStateLoadParams,"user");z(g,"aoStateLoaded",e.fnStateLoaded,"user");z(g,"aoRowCallback",e.fnRowCallback,"user");z(g,"aoRowCreatedCallback",e.fnCreatedRow,"user");z(g,"aoHeaderCallback",e.fnHeaderCallback,"user");z(g,"aoFooterCallback",e.fnFooterCallback,"user");z(g,"aoInitComplete",e.fnInitComplete,"user");z(g,"aoPreDrawCallback",e.fnPreDrawCallback,"user");g.oFeatures.bServerSide&&
+g.oFeatures.bSort&&g.oFeatures.bSortClasses?z(g,"aoDrawCallback",P,"server_side_sort_classes"):g.oFeatures.bDeferRender&&z(g,"aoDrawCallback",P,"defer_sort_classes");e.bJQueryUI?(h.extend(g.oClasses,j.ext.oJUIClasses),e.sDom===j.defaults.sDom&&"lfrtip"===j.defaults.sDom&&(g.sDom='<"H"lfr>t<"F"ip>')):h.extend(g.oClasses,j.ext.oStdClasses);h(this).addClass(g.oClasses.sTable);if(""!==g.oScroll.sX||""!==g.oScroll.sY)g.oScroll.iBarWidth=Qa();g.iInitDisplayStart===n&&(g.iInitDisplayStart=e.iDisplayStart,
+g._iDisplayStart=e.iDisplayStart);e.bStateSave&&(g.oFeatures.bStateSave=!0,Sa(g,e),z(g,"aoDrawCallback",ra,"state_save"));null!==e.iDeferLoading&&(g.bDeferLoading=!0,a=h.isArray(e.iDeferLoading),g._iRecordsDisplay=a?e.iDeferLoading[0]:e.iDeferLoading,g._iRecordsTotal=a?e.iDeferLoading[1]:e.iDeferLoading);null!==e.aaData&&(f=!0);""!==e.oLanguage.sUrl?(g.oLanguage.sUrl=e.oLanguage.sUrl,h.getJSON(g.oLanguage.sUrl,null,function(a){pa(a);h.extend(true,g.oLanguage,e.oLanguage,a);ba(g)}),i=!0):h.extend(!0,
+g.oLanguage,e.oLanguage);null===e.asStripeClasses&&(g.asStripeClasses=[g.oClasses.sStripeOdd,g.oClasses.sStripeEven]);b=g.asStripeClasses.length;g.asDestroyStripes=[];if(b){c=!1;d=h(this).children("tbody").children("tr:lt("+b+")");for(a=0;a<b;a++)d.hasClass(g.asStripeClasses[a])&&(c=!0,g.asDestroyStripes.push(g.asStripeClasses[a]));c&&d.removeClass(g.asStripeClasses.join(" "))}c=[];a=this.getElementsByTagName("thead");0!==a.length&&(V(g.aoHeader,a[0]),c=N(g));if(null===e.aoColumns){d=[];a=0;for(b=
+c.length;a<b;a++)d.push(null)}else d=e.aoColumns;a=0;for(b=d.length;a<b;a++)e.saved_aoColumns!==n&&e.saved_aoColumns.length==b&&(null===d[a]&&(d[a]={}),d[a].bVisible=e.saved_aoColumns[a].bVisible),o(g,c?c[a]:null);ta(g,e.aoColumnDefs,d,function(a,b){m(g,a,b)});a=0;for(b=g.aaSorting.length;a<b;a++){g.aaSorting[a][0]>=g.aoColumns.length&&(g.aaSorting[a][0]=0);var k=g.aoColumns[g.aaSorting[a][0]];g.aaSorting[a][2]===n&&(g.aaSorting[a][2]=0);e.aaSorting===n&&g.saved_aaSorting===n&&(g.aaSorting[a][1]=
+k.asSorting[0]);c=0;for(d=k.asSorting.length;c<d;c++)if(g.aaSorting[a][1]==k.asSorting[c]){g.aaSorting[a][2]=c;break}}P(g);Ua(g);a=h(this).children("caption").each(function(){this._captionSide=h(this).css("caption-side")});b=h(this).children("thead");0===b.length&&(b=[l.createElement("thead")],this.appendChild(b[0]));g.nTHead=b[0];b=h(this).children("tbody");0===b.length&&(b=[l.createElement("tbody")],this.appendChild(b[0]));g.nTBody=b[0];g.nTBody.setAttribute("role","alert");g.nTBody.setAttribute("aria-live",
+"polite");g.nTBody.setAttribute("aria-relevant","all");b=h(this).children("tfoot");if(0===b.length&&0<a.length&&(""!==g.oScroll.sX||""!==g.oScroll.sY))b=[l.createElement("tfoot")],this.appendChild(b[0]);0<b.length&&(g.nTFoot=b[0],V(g.aoFooter,g.nTFoot));if(f)for(a=0;a<e.aaData.length;a++)H(g,e.aaData[a]);else ua(g);g.aiDisplay=g.aiDisplayMaster.slice();g.bInitialised=!0;!1===i&&ba(g)}});ca=null;return this};j.fnVersionCheck=function(e){for(var h=function(e,h){for(;e.length<h;)e+="0";return e},m=j.ext.sVersion.split("."),
+e=e.split("."),k="",n="",l=0,t=e.length;l<t;l++)k+=h(m[l],3),n+=h(e[l],3);return parseInt(k,10)>=parseInt(n,10)};j.fnIsDataTable=function(e){for(var h=j.settings,m=0;m<h.length;m++)if(h[m].nTable===e||h[m].nScrollHead===e||h[m].nScrollFoot===e)return!0;return!1};j.fnTables=function(e){var o=[];jQuery.each(j.settings,function(j,k){(!e||!0===e&&h(k.nTable).is(":visible"))&&o.push(k.nTable)});return o};j.version="1.9.4";j.settings=[];j.models={};j.models.ext={afnFiltering:[],afnSortData:[],aoFeatures:[],
+aTypes:[],fnVersionCheck:j.fnVersionCheck,iApiIndex:0,ofnSearch:{},oApi:{},oStdClasses:{},oJUIClasses:{},oPagination:{},oSort:{},sVersion:j.version,sErrMode:"alert",_oExternConfig:{iNextUnique:0}};j.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};j.models.oRow={nTr:null,_aData:[],_aSortData:[],_anHidden:[],_sRowStripe:""};j.models.oColumn={aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bUseRendered:null,bVisible:null,_bAutoType:!0,fnCreatedCell:null,fnGetData:null,
+fnRender:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};j.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,
+bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollAutoCss:!0,bScrollCollapse:!1,bScrollInfinite:!1,bServerSide:!1,bSort:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCookieCallback:null,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){if(1E3>e)return e;for(var h=e+"",e=h.split(""),j="",h=h.length,k=0;k<h;k++)0===k%3&&0!==k&&(j=this.oLanguage.sInfoThousands+j),j=e[h-k-1]+j;return j},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,
+fnRowCallback:null,fnServerData:function(e,j,m,k){k.jqXHR=h.ajax({url:e,data:j,success:function(e){e.sError&&k.oApi._fnLog(k,0,e.sError);h(k.oInstance).trigger("xhr",[k,e]);m(e)},dataType:"json",cache:!1,type:k.sServerMethod,error:function(e,h){"parsererror"==h&&k.oApi._fnLog(k,0,"DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.")}})},fnServerParams:null,fnStateLoad:function(e){var e=this.oApi._fnReadCookie(e.sCookiePrefix+e.sInstance),j;try{j=
+"function"===typeof h.parseJSON?h.parseJSON(e):eval("("+e+")")}catch(m){j=null}return j},fnStateLoadParams:null,fnStateLoaded:null,fnStateSave:function(e,h){this.oApi._fnCreateCookie(e.sCookiePrefix+e.sInstance,this.oApi._fnJsonString(h),e.iCookieDuration,e.sCookiePrefix,e.fnCookieCallback)},fnStateSaveParams:null,iCookieDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iScrollLoadGap:100,iTabIndex:0,oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},
+oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},j.models.oSearch),sAjaxDataProp:"aaData",
+sAjaxSource:null,sCookiePrefix:"SpryMedia_DataTables_",sDom:"lfrtip",sPaginationType:"two_button",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET"};j.defaults.columns={aDataSort:null,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bUseRendered:!0,bVisible:!0,fnCreatedCell:null,fnRender:null,iDataSort:-1,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};j.models.oSettings={oFeatures:{bAutoWidth:null,
+bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortClasses:null,bStateSave:null},oScroll:{bAutoCss:null,bCollapse:null,bInfinite:null,iBarWidth:0,iLoadGap:null,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1},aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],asDataSearch:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:null,
+asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iCookieDuration:0,sCookiePrefix:"",fnCookieCallback:null,aoStateSave:[],aoStateLoad:[],
+oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iDisplayEnd:10,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsTotal,10):this.aiDisplayMaster.length},
+fnRecordsDisplay:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsDisplay,10):this.aiDisplay.length},fnDisplayEnd:function(){return this.oFeatures.bServerSide?!1===this.oFeatures.bPaginate||-1==this._iDisplayLength?this._iDisplayStart+this.aiDisplay.length:Math.min(this._iDisplayStart+this._iDisplayLength,this._iRecordsDisplay):this._iDisplayEnd},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null};j.ext=h.extend(!0,{},j.models.ext);h.extend(j.ext.oStdClasses,
+{sTable:"dataTable",sPagePrevEnabled:"paginate_enabled_previous",sPagePrevDisabled:"paginate_disabled_previous",sPageNextEnabled:"paginate_enabled_next",sPageNextDisabled:"paginate_disabled_next",sPageJUINext:"",sPageJUIPrev:"",sPageButton:"paginate_button",sPageButtonActive:"paginate_active",sPageButtonStaticDisabled:"paginate_button paginate_button_disabled",sPageFirst:"first",sPagePrevious:"previous",sPageNext:"next",sPageLast:"last",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",
+sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",
+sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sFooterTH:"",sJUIHeader:"",sJUIFooter:""});h.extend(j.ext.oJUIClasses,j.ext.oStdClasses,{sPagePrevEnabled:"fg-button ui-button ui-state-default ui-corner-left",sPagePrevDisabled:"fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",sPageNextEnabled:"fg-button ui-button ui-state-default ui-corner-right",
+sPageNextDisabled:"fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",sPageJUINext:"ui-icon ui-icon-circle-arrow-e",sPageJUIPrev:"ui-icon ui-icon-circle-arrow-w",sPageButton:"fg-button ui-button ui-state-default",sPageButtonActive:"fg-button ui-button ui-state-default ui-state-disabled",sPageButtonStaticDisabled:"fg-button ui-button ui-state-default ui-state-disabled",sPageFirst:"first ui-corner-tl ui-corner-bl",sPageLast:"last ui-corner-tr ui-corner-br",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",
+sSortAsc:"ui-state-default",sSortDesc:"ui-state-default",sSortable:"ui-state-default",sSortableAsc:"ui-state-default",sSortableDesc:"ui-state-default",sSortableNone:"ui-state-default",sSortJUIAsc:"css_right ui-icon ui-icon-triangle-1-n",sSortJUIDesc:"css_right ui-icon ui-icon-triangle-1-s",sSortJUI:"css_right ui-icon ui-icon-carat-2-n-s",sSortJUIAscAllowed:"css_right ui-icon ui-icon-carat-1-n",sSortJUIDescAllowed:"css_right ui-icon ui-icon-carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",
+sScrollHead:"dataTables_scrollHead ui-state-default",sScrollFoot:"dataTables_scrollFoot ui-state-default",sFooterTH:"ui-state-default",sJUIHeader:"fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix",sJUIFooter:"fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"});h.extend(j.ext.oPagination,{two_button:{fnInit:function(e,j,m){var k=e.oLanguage.oPaginate,n=function(h){e.oApi._fnPageChange(e,h.data.action)&&m(e)},k=!e.bJUI?'<a class="'+
+e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+k.sPrevious+'</a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+k.sNext+"</a>":'<a class="'+e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUIPrev+'"></span></a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUINext+'"></span></a>';h(j).append(k);var l=h("a",j),
+k=l[0],l=l[1];e.oApi._fnBindAction(k,{action:"previous"},n);e.oApi._fnBindAction(l,{action:"next"},n);e.aanFeatures.p||(j.id=e.sTableId+"_paginate",k.id=e.sTableId+"_previous",l.id=e.sTableId+"_next",k.setAttribute("aria-controls",e.sTableId),l.setAttribute("aria-controls",e.sTableId))},fnUpdate:function(e){if(e.aanFeatures.p)for(var h=e.oClasses,j=e.aanFeatures.p,k,l=0,n=j.length;l<n;l++)if(k=j[l].firstChild)k.className=0===e._iDisplayStart?h.sPagePrevDisabled:h.sPagePrevEnabled,k=k.nextSibling,
+k.className=e.fnDisplayEnd()==e.fnRecordsDisplay()?h.sPageNextDisabled:h.sPageNextEnabled}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(e,j,m){var k=e.oLanguage.oPaginate,l=e.oClasses,n=function(h){e.oApi._fnPageChange(e,h.data.action)&&m(e)};h(j).append('<a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPageFirst+'">'+k.sFirst+'</a><a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPagePrevious+'">'+k.sPrevious+'</a><span></span><a tabindex="'+e.iTabIndex+'" class="'+
+l.sPageButton+" "+l.sPageNext+'">'+k.sNext+'</a><a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPageLast+'">'+k.sLast+"</a>");var t=h("a",j),k=t[0],l=t[1],r=t[2],t=t[3];e.oApi._fnBindAction(k,{action:"first"},n);e.oApi._fnBindAction(l,{action:"previous"},n);e.oApi._fnBindAction(r,{action:"next"},n);e.oApi._fnBindAction(t,{action:"last"},n);e.aanFeatures.p||(j.id=e.sTableId+"_paginate",k.id=e.sTableId+"_first",l.id=e.sTableId+"_previous",r.id=e.sTableId+"_next",t.id=e.sTableId+"_last")},
+fnUpdate:function(e,o){if(e.aanFeatures.p){var m=j.ext.oPagination.iFullNumbersShowPages,k=Math.floor(m/2),l=Math.ceil(e.fnRecordsDisplay()/e._iDisplayLength),n=Math.ceil(e._iDisplayStart/e._iDisplayLength)+1,t="",r,B=e.oClasses,u,M=e.aanFeatures.p,L=function(h){e.oApi._fnBindAction(this,{page:h+r-1},function(h){e.oApi._fnPageChange(e,h.data.page);o(e);h.preventDefault()})};-1===e._iDisplayLength?n=k=r=1:l<m?(r=1,k=l):n<=k?(r=1,k=m):n>=l-k?(r=l-m+1,k=l):(r=n-Math.ceil(m/2)+1,k=r+m-1);for(m=r;m<=k;m++)t+=
+n!==m?'<a tabindex="'+e.iTabIndex+'" class="'+B.sPageButton+'">'+e.fnFormatNumber(m)+"</a>":'<a tabindex="'+e.iTabIndex+'" class="'+B.sPageButtonActive+'">'+e.fnFormatNumber(m)+"</a>";m=0;for(k=M.length;m<k;m++)u=M[m],u.hasChildNodes()&&(h("span:eq(0)",u).html(t).children("a").each(L),u=u.getElementsByTagName("a"),u=[u[0],u[1],u[u.length-2],u[u.length-1]],h(u).removeClass(B.sPageButton+" "+B.sPageButtonActive+" "+B.sPageButtonStaticDisabled),h([u[0],u[1]]).addClass(1==n?B.sPageButtonStaticDisabled:
+B.sPageButton),h([u[2],u[3]]).addClass(0===l||n===l||-1===e._iDisplayLength?B.sPageButtonStaticDisabled:B.sPageButton))}}}});h.extend(j.ext.oSort,{"string-pre":function(e){"string"!=typeof e&&(e=null!==e&&e.toString?e.toString():"");return e.toLowerCase()},"string-asc":function(e,h){return e<h?-1:e>h?1:0},"string-desc":function(e,h){return e<h?1:e>h?-1:0},"html-pre":function(e){return e.replace(/<.*?>/g,"").toLowerCase()},"html-asc":function(e,h){return e<h?-1:e>h?1:0},"html-desc":function(e,h){return e<
+h?1:e>h?-1:0},"date-pre":function(e){e=Date.parse(e);if(isNaN(e)||""===e)e=Date.parse("01/01/1970 00:00:00");return e},"date-asc":function(e,h){return e-h},"date-desc":function(e,h){return h-e},"numeric-pre":function(e){return"-"==e||""===e?0:1*e},"numeric-asc":function(e,h){return e-h},"numeric-desc":function(e,h){return h-e}});h.extend(j.ext.aTypes,[function(e){if("number"===typeof e)return"numeric";if("string"!==typeof e)return null;var h,j=!1;h=e.charAt(0);if(-1=="0123456789-".indexOf(h))return null;
+for(var k=1;k<e.length;k++){h=e.charAt(k);if(-1=="0123456789.".indexOf(h))return null;if("."==h){if(j)return null;j=!0}}return"numeric"},function(e){var h=Date.parse(e);return null!==h&&!isNaN(h)||"string"===typeof e&&0===e.length?"date":null},function(e){return"string"===typeof e&&-1!=e.indexOf("<")&&-1!=e.indexOf(">")?"html":null}]);h.fn.DataTable=j;h.fn.dataTable=j;h.fn.dataTableSettings=j.settings;h.fn.dataTableExt=j.ext};"function"===typeof define&&define.amd?define(["jquery"],L):jQuery&&!jQuery.fn.dataTable&&
+L(jQuery)})(window,document);
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/animated-overlay.gif b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/animated-overlay.gif
new file mode 100644
index 00000000..d441f75e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/animated-overlay.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png
new file mode 100644
index 00000000..5b5dab2a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_75_ffffff_40x100.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_75_ffffff_40x100.png
new file mode 100644
index 00000000..ac8b229a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_flat_75_ffffff_40x100.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png
new file mode 100644
index 00000000..ad3d6346
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_65_ffffff_1x400.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_65_ffffff_1x400.png
new file mode 100644
index 00000000..42ccba26
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_65_ffffff_1x400.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_dadada_1x400.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_dadada_1x400.png
new file mode 100644
index 00000000..5a46b47c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_dadada_1x400.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png
new file mode 100644
index 00000000..86c2baa6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_95_fef1ec_1x400.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_95_fef1ec_1x400.png
new file mode 100644
index 00000000..4443fdc1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_glass_95_fef1ec_1x400.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
new file mode 100644
index 00000000..7c9fa6c6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_222222_256x240.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_222222_256x240.png
new file mode 100644
index 00000000..ee039dc0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_222222_256x240.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_2e83ff_256x240.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_2e83ff_256x240.png
new file mode 100644
index 00000000..45e8928e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_2e83ff_256x240.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_454545_256x240.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_454545_256x240.png
new file mode 100644
index 00000000..7ec70d11
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_454545_256x240.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_888888_256x240.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_888888_256x240.png
new file mode 100644
index 00000000..5ba708c3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_888888_256x240.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_cd0a0a_256x240.png b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_cd0a0a_256x240.png
new file mode 100644
index 00000000..7930a558
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/images/ui-icons_cd0a0a_256x240.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui-timepicker-addon.css b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui-timepicker-addon.css
new file mode 100644
index 00000000..b93a85f6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui-timepicker-addon.css
@@ -0,0 +1,10 @@
+.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
+.ui-timepicker-div dl { text-align: left; }
+.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
+.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
+.ui-timepicker-div td { font-size: 90%; }
+.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
+
+.ui-timepicker-rtl{ direction: rtl; }
+.ui-timepicker-rtl dl { text-align: right; }
+.ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; } \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui.min.css b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui.min.css
new file mode 100644
index 00000000..b84984a9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/css/base/jquery-ui.min.css
@@ -0,0 +1,4 @@
+/*! jQuery UI - v1.10.3 - 2013-05-03
+* http://jqueryui.com
+* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
+* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;min-height:0}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:0}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:400}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:400;margin:-1px}.ui-menu .ui-state-disabled{font-weight:400;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(images/animated-overlay.gif);height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:0;background:0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:700}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:400;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-i18n.min.js b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-i18n.min.js
new file mode 100644
index 00000000..346d0f52
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-i18n.min.js
@@ -0,0 +1,6 @@
+/*! jQuery UI - v1.10.3 - 2013-05-03
+* http://jqueryui.com
+* Includes: jquery.ui.datepicker-af.js, jquery.ui.datepicker-ar-DZ.js, jquery.ui.datepicker-ar.js, jquery.ui.datepicker-az.js, jquery.ui.datepicker-be.js, jquery.ui.datepicker-bg.js, jquery.ui.datepicker-bs.js, jquery.ui.datepicker-ca.js, jquery.ui.datepicker-cs.js, jquery.ui.datepicker-cy-GB.js, jquery.ui.datepicker-da.js, jquery.ui.datepicker-de.js, jquery.ui.datepicker-el.js, jquery.ui.datepicker-en-AU.js, jquery.ui.datepicker-en-GB.js, jquery.ui.datepicker-en-NZ.js, jquery.ui.datepicker-eo.js, jquery.ui.datepicker-es.js, jquery.ui.datepicker-et.js, jquery.ui.datepicker-eu.js, jquery.ui.datepicker-fa.js, jquery.ui.datepicker-fi.js, jquery.ui.datepicker-fo.js, jquery.ui.datepicker-fr-CA.js, jquery.ui.datepicker-fr-CH.js, jquery.ui.datepicker-fr.js, jquery.ui.datepicker-gl.js, jquery.ui.datepicker-he.js, jquery.ui.datepicker-hi.js, jquery.ui.datepicker-hr.js, jquery.ui.datepicker-hu.js, jquery.ui.datepicker-hy.js, jquery.ui.datepicker-id.js, jquery.ui.datepicker-is.js, jquery.ui.datepicker-it.js, jquery.ui.datepicker-ja.js, jquery.ui.datepicker-ka.js, jquery.ui.datepicker-kk.js, jquery.ui.datepicker-km.js, jquery.ui.datepicker-ko.js, jquery.ui.datepicker-ky.js, jquery.ui.datepicker-lb.js, jquery.ui.datepicker-lt.js, jquery.ui.datepicker-lv.js, jquery.ui.datepicker-mk.js, jquery.ui.datepicker-ml.js, jquery.ui.datepicker-ms.js, jquery.ui.datepicker-nb.js, jquery.ui.datepicker-nl-BE.js, jquery.ui.datepicker-nl.js, jquery.ui.datepicker-nn.js, jquery.ui.datepicker-no.js, jquery.ui.datepicker-pl.js, jquery.ui.datepicker-pt-BR.js, jquery.ui.datepicker-pt.js, jquery.ui.datepicker-rm.js, jquery.ui.datepicker-ro.js, jquery.ui.datepicker-ru.js, jquery.ui.datepicker-sk.js, jquery.ui.datepicker-sl.js, jquery.ui.datepicker-sq.js, jquery.ui.datepicker-sr-SR.js, jquery.ui.datepicker-sr.js, jquery.ui.datepicker-sv.js, jquery.ui.datepicker-ta.js, jquery.ui.datepicker-th.js, jquery.ui.datepicker-tj.js, jquery.ui.datepicker-tr.js, jquery.ui.datepicker-uk.js, jquery.ui.datepicker-vi.js, jquery.ui.datepicker-zh-CN.js, jquery.ui.datepicker-zh-HK.js, jquery.ui.datepicker-zh-TW.js
+* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
+jQuery(function(e){e.datepicker.regional.af={closeText:"Selekteer",prevText:"Vorige",nextText:"Volgende",currentText:"Vandag",monthNames:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],dayNames:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],dayNamesShort:["Son","Maa","Din","Woe","Don","Vry","Sat"],dayNamesMin:["So","Ma","Di","Wo","Do","Vr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.af)}),jQuery(function(e){e.datepicker.regional["ar-DZ"]={closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["ar-DZ"])}),jQuery(function(e){e.datepicker.regional.ar={closeText:"إغلاق",prevText:"&#x3C;السابق",nextText:"التالي&#x3E;",currentText:"اليوم",monthNames:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ar)}),jQuery(function(e){e.datepicker.regional.az={closeText:"Bağla",prevText:"&#x3C;Geri",nextText:"İrəli&#x3E;",currentText:"Bugün",monthNames:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],monthNamesShort:["Yan","Fev","Mar","Apr","May","İyun","İyul","Avq","Sen","Okt","Noy","Dek"],dayNames:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"],dayNamesShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayNamesMin:["B","B","Ç","С","Ç","C","Ş"],weekHeader:"Hf",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.az)}),jQuery(function(e){e.datepicker.regional.be={closeText:"Зачыніць",prevText:"&larr;Папяр.",nextText:"Наст.&rarr;",currentText:"Сёньня",monthNames:["Студзень","Люты","Сакавік","Красавік","Травень","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Сьнежань"],monthNamesShort:["Сту","Лют","Сак","Кра","Тра","Чэр","Ліп","Жні","Вер","Кас","Ліс","Сьн"],dayNames:["нядзеля","панядзелак","аўторак","серада","чацьвер","пятніца","субота"],dayNamesShort:["ндз","пнд","аўт","срд","чцв","птн","сбт"],dayNamesMin:["Нд","Пн","Аў","Ср","Чц","Пт","Сб"],weekHeader:"Тд",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.be)}),jQuery(function(e){e.datepicker.regional.bg={closeText:"затвори",prevText:"&#x3C;назад",nextText:"напред&#x3E;",nextBigText:"&#x3E;&#x3E;",currentText:"днес",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Съ"],weekHeader:"Wk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.bg)}),jQuery(function(e){e.datepicker.regional.bs={closeText:"Zatvori",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Juni","Juli","August","Septembar","Oktobar","Novembar","Decembar"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Wk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.bs)}),jQuery(function(e){e.datepicker.regional.ca={closeText:"Tanca",prevText:"Anterior",nextText:"Següent",currentText:"Avui",monthNames:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],monthNamesShort:["gen","feb","març","abr","maig","juny","jul","ag","set","oct","nov","des"],dayNames:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],dayNamesShort:["dg","dl","dt","dc","dj","dv","ds"],dayNamesMin:["dg","dl","dt","dc","dj","dv","ds"],weekHeader:"Set",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ca)}),jQuery(function(e){e.datepicker.regional.cs={closeText:"Zavřít",prevText:"&#x3C;Dříve",nextText:"Později&#x3E;",currentText:"Nyní",monthNames:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["led","úno","bře","dub","kvě","čer","čvc","srp","zář","říj","lis","pro"],dayNames:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],weekHeader:"Týd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.cs)}),jQuery(function(e){e.datepicker.regional["cy-GB"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"],monthNamesShort:["Ion","Chw","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tac","Rha"],dayNames:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"],dayNamesShort:["Sul","Llu","Maw","Mer","Iau","Gwe","Sad"],dayNamesMin:["Su","Ll","Ma","Me","Ia","Gw","Sa"],weekHeader:"Wy",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["cy-GB"])}),jQuery(function(e){e.datepicker.regional.da={closeText:"Luk",prevText:"&#x3C;Forrige",nextText:"Næste&#x3E;",currentText:"Idag",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],weekHeader:"Uge",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.da)}),jQuery(function(e){e.datepicker.regional.de={closeText:"Schließen",prevText:"&#x3C;Zurück",nextText:"Vor&#x3E;",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.de)}),jQuery(function(e){e.datepicker.regional.el={closeText:"Κλείσιμο",prevText:"Προηγούμενος",nextText:"Επόμενος",currentText:"Τρέχων Μήνας",monthNames:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],monthNamesShort:["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],dayNames:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],dayNamesShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayNamesMin:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σα"],weekHeader:"Εβδ",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.el)}),jQuery(function(e){e.datepicker.regional["en-AU"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["en-AU"])}),jQuery(function(e){e.datepicker.regional["en-GB"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["en-GB"])}),jQuery(function(e){e.datepicker.regional["en-NZ"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["en-NZ"])}),jQuery(function(e){e.datepicker.regional.eo={closeText:"Fermi",prevText:"&#x3C;Anta",nextText:"Sekv&#x3E;",currentText:"Nuna",monthNames:["Januaro","Februaro","Marto","Aprilo","Majo","Junio","Julio","Aŭgusto","Septembro","Oktobro","Novembro","Decembro"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aŭg","Sep","Okt","Nov","Dec"],dayNames:["Dimanĉo","Lundo","Mardo","Merkredo","Ĵaŭdo","Vendredo","Sabato"],dayNamesShort:["Dim","Lun","Mar","Mer","Ĵaŭ","Ven","Sab"],dayNamesMin:["Di","Lu","Ma","Me","Ĵa","Ve","Sa"],weekHeader:"Sb",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.eo)}),jQuery(function(e){e.datepicker.regional.es={closeText:"Cerrar",prevText:"&#x3C;Ant",nextText:"Sig&#x3E;",currentText:"Hoy",monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],dayNamesMin:["Do","Lu","Ma","Mi","Ju","Vi","Sá"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.es)}),jQuery(function(e){e.datepicker.regional.et={closeText:"Sulge",prevText:"Eelnev",nextText:"Järgnev",currentText:"Täna",monthNames:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],monthNamesShort:["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],dayNames:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"],dayNamesShort:["Pühap","Esmasp","Teisip","Kolmap","Neljap","Reede","Laup"],dayNamesMin:["P","E","T","K","N","R","L"],weekHeader:"näd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.et)}),jQuery(function(e){e.datepicker.regional.eu={closeText:"Egina",prevText:"&#x3C;Aur",nextText:"Hur&#x3E;",currentText:"Gaur",monthNames:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"],monthNamesShort:["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe."],dayNames:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],dayNamesShort:["ig.","al.","ar.","az.","og.","ol.","lr."],dayNamesMin:["ig","al","ar","az","og","ol","lr"],weekHeader:"As",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.eu)}),jQuery(function(e){e.datepicker.regional.fa={closeText:"بستن",prevText:"&#x3C;قبلی",nextText:"بعدی&#x3E;",currentText:"امروز",monthNames:["فروردين","ارديبهشت","خرداد","تير","مرداد","شهريور","مهر","آبان","آذر","دی","بهمن","اسفند"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["يکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayNamesShort:["ی","د","س","چ","پ","ج","ش"],dayNamesMin:["ی","د","س","چ","پ","ج","ش"],weekHeader:"هف",dateFormat:"yy/mm/dd",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.fa)}),jQuery(function(e){e.datepicker.regional.fi={closeText:"Sulje",prevText:"&#xAB;Edellinen",nextText:"Seuraava&#xBB;",currentText:"Tänään",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],dayNamesMin:["Su","Ma","Ti","Ke","To","Pe","La"],weekHeader:"Vk",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.fi)}),jQuery(function(e){e.datepicker.regional.fo={closeText:"Lat aftur",prevText:"&#x3C;Fyrra",nextText:"Næsta&#x3E;",currentText:"Í dag",monthNames:["Januar","Februar","Mars","Apríl","Mei","Juni","Juli","August","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],dayNames:["Sunnudagur","Mánadagur","Týsdagur","Mikudagur","Hósdagur","Fríggjadagur","Leyardagur"],dayNamesShort:["Sun","Mán","Týs","Mik","Hós","Frí","Ley"],dayNamesMin:["Su","Má","Tý","Mi","Hó","Fr","Le"],weekHeader:"Vk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.fo)}),jQuery(function(e){e.datepicker.regional["fr-CA"]={closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"yy-mm-dd",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["fr-CA"])}),jQuery(function(e){e.datepicker.regional["fr-CH"]={closeText:"Fermer",prevText:"&#x3C;Préc",nextText:"Suiv&#x3E;",currentText:"Courant",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayNamesMin:["Di","Lu","Ma","Me","Je","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["fr-CH"])}),jQuery(function(e){e.datepicker.regional.fr={closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Janv.","Févr.","Mars","Avril","Mai","Juin","Juil.","Août","Sept.","Oct.","Nov.","Déc."],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.fr)}),jQuery(function(e){e.datepicker.regional.gl={closeText:"Pechar",prevText:"&#x3C;Ant",nextText:"Seg&#x3E;",currentText:"Hoxe",monthNames:["Xaneiro","Febreiro","Marzo","Abril","Maio","Xuño","Xullo","Agosto","Setembro","Outubro","Novembro","Decembro"],monthNamesShort:["Xan","Feb","Mar","Abr","Mai","Xuñ","Xul","Ago","Set","Out","Nov","Dec"],dayNames:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mér","Xov","Ven","Sáb"],dayNamesMin:["Do","Lu","Ma","Mé","Xo","Ve","Sá"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.gl)}),jQuery(function(e){e.datepicker.regional.he={closeText:"סגור",prevText:"&#x3C;הקודם",nextText:"הבא&#x3E;",currentText:"היום",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthNamesShort:["ינו","פבר","מרץ","אפר","מאי","יוני","יולי","אוג","ספט","אוק","נוב","דצמ"],dayNames:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayNamesMin:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.he)}),jQuery(function(e){e.datepicker.regional.hi={closeText:"बंद",prevText:"पिछला",nextText:"अगला",currentText:"आज",monthNames:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"],monthNamesShort:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],dayNames:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],dayNamesShort:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],dayNamesMin:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],weekHeader:"हफ्ता",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.hi)}),jQuery(function(e){e.datepicker.regional.hr={closeText:"Zatvori",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Danas",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Tje",dateFormat:"dd.mm.yy.",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.hr)}),jQuery(function(e){e.datepicker.regional.hu={closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],dayNames:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],weekHeader:"Hét",dateFormat:"yy.mm.dd.",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.hu)}),jQuery(function(e){e.datepicker.regional.hy={closeText:"Փակել",prevText:"&#x3C;Նախ.",nextText:"Հաջ.&#x3E;",currentText:"Այսօր",monthNames:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],monthNamesShort:["Հունվ","Փետր","Մարտ","Ապր","Մայիս","Հունիս","Հուլ","Օգս","Սեպ","Հոկ","Նոյ","Դեկ"],dayNames:["կիրակի","եկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"],dayNamesShort:["կիր","երկ","երք","չրք","հնգ","ուրբ","շբթ"],dayNamesMin:["կիր","երկ","երք","չրք","հնգ","ուրբ","շբթ"],weekHeader:"ՇԲՏ",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.hy)}),jQuery(function(e){e.datepicker.regional.id={closeText:"Tutup",prevText:"&#x3C;mundur",nextText:"maju&#x3E;",currentText:"hari ini",monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agus","Sep","Okt","Nop","Des"],dayNames:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],dayNamesShort:["Min","Sen","Sel","Rab","kam","Jum","Sab"],dayNamesMin:["Mg","Sn","Sl","Rb","Km","jm","Sb"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.id)}),jQuery(function(e){e.datepicker.regional.is={closeText:"Loka",prevText:"&#x3C; Fyrri",nextText:"Næsti &#x3E;",currentText:"Í dag",monthNames:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],dayNames:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"],dayNamesShort:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],dayNamesMin:["Su","Má","Þr","Mi","Fi","Fö","La"],weekHeader:"Vika",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.is)}),jQuery(function(e){e.datepicker.regional.it={closeText:"Chiudi",prevText:"&#x3C;Prec",nextText:"Succ&#x3E;",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.it)}),jQuery(function(e){e.datepicker.regional.ja={closeText:"閉じる",prevText:"&#x3C;前",nextText:"次&#x3E;",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"},e.datepicker.setDefaults(e.datepicker.regional.ja)}),jQuery(function(e){e.datepicker.regional.ka={closeText:"დახურვა",prevText:"&#x3c; წინა",nextText:"შემდეგი &#x3e;",currentText:"დღეს",monthNames:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],monthNamesShort:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],dayNames:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"],dayNamesShort:["კვ","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],dayNamesMin:["კვ","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],weekHeader:"კვირა",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ka)}),jQuery(function(e){e.datepicker.regional.kk={closeText:"Жабу",prevText:"&#x3C;Алдыңғы",nextText:"Келесі&#x3E;",currentText:"Бүгін",monthNames:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],monthNamesShort:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел"],dayNames:["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"],dayNamesShort:["жкс","дсн","ссн","срс","бсн","жма","снб"],dayNamesMin:["Жк","Дс","Сс","Ср","Бс","Жм","Сн"],weekHeader:"Не",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.kk)}),jQuery(function(e){e.datepicker.regional.km={closeText:"ធ្វើ​រួច",prevText:"មុន",nextText:"បន្ទាប់",currentText:"ថ្ងៃ​នេះ",monthNames:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],monthNamesShort:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],dayNames:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"],dayNamesShort:["អា","ច","អ","ពុ","ព្រហ","សុ","សៅ"],dayNamesMin:["អា","ច","អ","ពុ","ព្រហ","សុ","សៅ"],weekHeader:"សប្ដាហ៍",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.km)}),jQuery(function(e){e.datepicker.regional.ko={closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"Wk",dateFormat:"yy-mm-dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"년"},e.datepicker.setDefaults(e.datepicker.regional.ko)}),jQuery(function(e){e.datepicker.regional.ky={closeText:"Жабуу",prevText:"&#x3c;Мур",nextText:"Кий&#x3e;",currentText:"Бүгүн",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["жекшемби","дүйшөмбү","шейшемби","шаршемби","бейшемби","жума","ишемби"],dayNamesShort:["жек","дүй","шей","шар","бей","жум","ише"],dayNamesMin:["Жк","Дш","Шш","Шр","Бш","Жм","Иш"],weekHeader:"Жум",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ky)}),jQuery(function(e){e.datepicker.regional.lb={closeText:"Fäerdeg",prevText:"Zréck",nextText:"Weider",currentText:"Haut",monthNames:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"],dayNamesShort:["Son","Méi","Dën","Mët","Don","Fre","Sam"],dayNamesMin:["So","Mé","Dë","Më","Do","Fr","Sa"],weekHeader:"W",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.lb)}),jQuery(function(e){e.datepicker.regional.lt={closeText:"Uždaryti",prevText:"&#x3C;Atgal",nextText:"Pirmyn&#x3E;",currentText:"Šiandien",monthNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],dayNames:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],dayNamesShort:["sek","pir","ant","tre","ket","pen","šeš"],dayNamesMin:["Se","Pr","An","Tr","Ke","Pe","Še"],weekHeader:"Wk",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.lt)}),jQuery(function(e){e.datepicker.regional.lv={closeText:"Aizvērt",prevText:"Iepr",nextText:"Nāka",currentText:"Šodien",monthNames:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],dayNames:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],dayNamesShort:["svt","prm","otr","tre","ctr","pkt","sst"],dayNamesMin:["Sv","Pr","Ot","Tr","Ct","Pk","Ss"],weekHeader:"Nav",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.lv)}),jQuery(function(e){e.datepicker.regional.mk={closeText:"Затвори",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Денес",monthNames:["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],dayNames:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"],dayNamesShort:["Нед","Пон","Вто","Сре","Чет","Пет","Саб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Са"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.mk)}),jQuery(function(e){e.datepicker.regional.ml={closeText:"ശരി",prevText:"മുന്നത്തെ",nextText:"അടുത്തത് ",currentText:"ഇന്ന്",monthNames:["ജനുവരി","ഫെബ്രുവരി","മാര്‍ച്ച്","ഏപ്രില്‍","മേയ്","ജൂണ്‍","ജൂലൈ","ആഗസ്റ്റ്","സെപ്റ്റംബര്‍","ഒക്ടോബര്‍","നവംബര്‍","ഡിസംബര്‍"],monthNamesShort:["ജനു","ഫെബ്","മാര്‍","ഏപ്രി","മേയ്","ജൂണ്‍","ജൂലാ","ആഗ","സെപ്","ഒക്ടോ","നവം","ഡിസ"],dayNames:["ഞായര്‍","തിങ്കള്‍","ചൊവ്വ","ബുധന്‍","വ്യാഴം","വെള്ളി","ശനി"],dayNamesShort:["ഞായ","തിങ്ക","ചൊവ്വ","ബുധ","വ്യാഴം","വെള്ളി","ശനി"],dayNamesMin:["ഞാ","തി","ചൊ","ബു","വ്യാ","വെ","ശ"],weekHeader:"ആ",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ml)}),jQuery(function(e){e.datepicker.regional.ms={closeText:"Tutup",prevText:"&#x3C;Sebelum",nextText:"Selepas&#x3E;",currentText:"hari ini",monthNames:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthNamesShort:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],dayNames:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],dayNamesShort:["Aha","Isn","Sel","Rab","kha","Jum","Sab"],dayNamesMin:["Ah","Is","Se","Ra","Kh","Ju","Sa"],weekHeader:"Mg",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ms)}),jQuery(function(e){e.datepicker.regional.nb={closeText:"Lukk",prevText:"&#xAB;Forrige",nextText:"Neste&#xBB;",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["søn","man","tir","ons","tor","fre","lør"],dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesMin:["sø","ma","ti","on","to","fr","lø"],weekHeader:"Uke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.nb)
+}),jQuery(function(e){e.datepicker.regional["nl-BE"]={closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["nl-BE"])}),jQuery(function(e){e.datepicker.regional.nl={closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.nl)}),jQuery(function(e){e.datepicker.regional.nn={closeText:"Lukk",prevText:"&#xAB;Førre",nextText:"Neste&#xBB;",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["sun","mån","tys","ons","tor","fre","lau"],dayNames:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"],dayNamesMin:["su","må","ty","on","to","fr","la"],weekHeader:"Veke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.nn)}),jQuery(function(e){e.datepicker.regional.no={closeText:"Lukk",prevText:"&#xAB;Forrige",nextText:"Neste&#xBB;",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["søn","man","tir","ons","tor","fre","lør"],dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesMin:["sø","ma","ti","on","to","fr","lø"],weekHeader:"Uke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.no)}),jQuery(function(e){e.datepicker.regional.pl={closeText:"Zamknij",prevText:"&#x3C;Poprzedni",nextText:"Następny&#x3E;",currentText:"Dziś",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.pl)}),jQuery(function(e){e.datepicker.regional["pt-BR"]={closeText:"Fechar",prevText:"&#x3C;Anterior",nextText:"Próximo&#x3E;",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["pt-BR"])}),jQuery(function(e){e.datepicker.regional.pt={closeText:"Fechar",prevText:"&#x3C;Anterior",nextText:"Seguinte",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sem",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.pt)}),jQuery(function(e){e.datepicker.regional.rm={closeText:"Serrar",prevText:"&#x3C;Suandant",nextText:"Precedent&#x3E;",currentText:"Actual",monthNames:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],monthNamesShort:["Scha","Fev","Mar","Avr","Matg","Zer","Fan","Avu","Sett","Oct","Nov","Dec"],dayNames:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"],dayNamesShort:["Dum","Gli","Mar","Mes","Gie","Ven","Som"],dayNamesMin:["Du","Gl","Ma","Me","Gi","Ve","So"],weekHeader:"emna",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.rm)}),jQuery(function(e){e.datepicker.regional.ro={closeText:"Închide",prevText:"&#xAB; Luna precedentă",nextText:"Luna următoare &#xBB;",currentText:"Azi",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthNamesShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"],dayNamesShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],dayNamesMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],weekHeader:"Săpt",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ro)}),jQuery(function(e){e.datepicker.regional.ru={closeText:"Закрыть",prevText:"&#x3C;Пред",nextText:"След&#x3E;",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ru)}),jQuery(function(e){e.datepicker.regional.sk={closeText:"Zavrieť",prevText:"&#x3C;Predchádzajúci",nextText:"Nasledujúci&#x3E;",currentText:"Dnes",monthNames:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],dayNames:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],dayNamesShort:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesMin:["Ne","Po","Ut","St","Št","Pia","So"],weekHeader:"Ty",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.sk)}),jQuery(function(e){e.datepicker.regional.sl={closeText:"Zapri",prevText:"&#x3C;Prejšnji",nextText:"Naslednji&#x3E;",currentText:"Trenutni",monthNames:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"],dayNamesShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayNamesMin:["Ne","Po","To","Sr","Če","Pe","So"],weekHeader:"Teden",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.sl)}),jQuery(function(e){e.datepicker.regional.sq={closeText:"mbylle",prevText:"&#x3C;mbrapa",nextText:"Përpara&#x3E;",currentText:"sot",monthNames:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],monthNamesShort:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],dayNames:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtune"],dayNamesShort:["Di","Hë","Ma","Më","En","Pr","Sh"],dayNamesMin:["Di","Hë","Ma","Më","En","Pr","Sh"],weekHeader:"Ja",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.sq)}),jQuery(function(e){e.datepicker.regional["sr-SR"]={closeText:"Zatvori",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],dayNames:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sre","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],weekHeader:"Sed",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional["sr-SR"])}),jQuery(function(e){e.datepicker.regional.sr={closeText:"Затвори",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Данас",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.sr)}),jQuery(function(e){e.datepicker.regional.sv={closeText:"Stäng",prevText:"&#xAB;Förra",nextText:"Nästa&#xBB;",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],weekHeader:"Ve",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.sv)}),jQuery(function(e){e.datepicker.regional.ta={closeText:"மூடு",prevText:"முன்னையது",nextText:"அடுத்தது",currentText:"இன்று",monthNames:["தை","மாசி","பங்குனி","சித்திரை","வைகாசி","ஆனி","ஆடி","ஆவணி","புரட்டாசி","ஐப்பசி","கார்த்திகை","மார்கழி"],monthNamesShort:["தை","மாசி","பங்","சித்","வைகா","ஆனி","ஆடி","ஆவ","புர","ஐப்","கார்","மார்"],dayNames:["ஞாயிற்றுக்கிழமை","திங்கட்கிழமை","செவ்வாய்க்கிழமை","புதன்கிழமை","வியாழக்கிழமை","வெள்ளிக்கிழமை","சனிக்கிழமை"],dayNamesShort:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"],dayNamesMin:["ஞா","தி","செ","பு","வி","வெ","ச"],weekHeader:"Не",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.ta)}),jQuery(function(e){e.datepicker.regional.th={closeText:"ปิด",prevText:"&#xAB;&#xA0;ย้อน",nextText:"ถัดไป&#xA0;&#xBB;",currentText:"วันนี้",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.th)}),jQuery(function(e){e.datepicker.regional.tj={closeText:"Идома",prevText:"&#x3c;Қафо",nextText:"Пеш&#x3e;",currentText:"Имрӯз",monthNames:["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["якшанбе","душанбе","сешанбе","чоршанбе","панҷшанбе","ҷумъа","шанбе"],dayNamesShort:["якш","душ","сеш","чор","пан","ҷум","шан"],dayNamesMin:["Як","Дш","Сш","Чш","Пш","Ҷм","Шн"],weekHeader:"Хф",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.tj)}),jQuery(function(e){e.datepicker.regional.tr={closeText:"kapat",prevText:"&#x3C;geri",nextText:"ileri&#x3e",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],weekHeader:"Hf",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.tr)}),jQuery(function(e){e.datepicker.regional.uk={closeText:"Закрити",prevText:"&#x3C;",nextText:"&#x3E;",currentText:"Сьогодні",monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],dayNames:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"],dayNamesShort:["нед","пнд","вів","срд","чтв","птн","сбт"],dayNamesMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Тиж",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.uk)}),jQuery(function(e){e.datepicker.regional.vi={closeText:"Đóng",prevText:"&#x3C;Trước",nextText:"Tiếp&#x3E;",currentText:"Hôm nay",monthNames:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"],monthNamesShort:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayNames:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],dayNamesShort:["CN","T2","T3","T4","T5","T6","T7"],dayNamesMin:["CN","T2","T3","T4","T5","T6","T7"],weekHeader:"Tu",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.vi)}),jQuery(function(e){e.datepicker.regional["zh-CN"]={closeText:"关闭",prevText:"&#x3C;上月",nextText:"下月&#x3E;",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"},e.datepicker.setDefaults(e.datepicker.regional["zh-CN"])}),jQuery(function(e){e.datepicker.regional["zh-HK"]={closeText:"關閉",prevText:"&#x3C;上月",nextText:"下月&#x3E;",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"dd-mm-yy",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"},e.datepicker.setDefaults(e.datepicker.regional["zh-HK"])}),jQuery(function(e){e.datepicker.regional["zh-TW"]={closeText:"關閉",prevText:"&#x3C;上月",nextText:"下月&#x3E;",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy/mm/dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"},e.datepicker.setDefaults(e.datepicker.regional["zh-TW"])}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-timepicker-hu.js b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-timepicker-hu.js
new file mode 100644
index 00000000..fd1f5e19
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery-ui-timepicker-hu.js
@@ -0,0 +1,21 @@
+/* Hungarian translation for the jQuery Timepicker Addon */
+/* Written by Vas Gábor */
+(function($) {
+ $.timepicker.regional['hu'] = {
+ timeOnlyTitle: 'Válasszon időpontot',
+ timeText: 'Idő',
+ hourText: 'Óra',
+ minuteText: 'Perc',
+ secondText: 'Másodperc',
+ millisecText: 'Milliszekundumos',
+ microsecText: 'Ezredmásodperc',
+ timezoneText: 'Időzóna',
+ currentText: 'Most',
+ closeText: 'Kész',
+ timeFormat: 'HH:mm',
+ amNames: ['de.', 'AM', 'A'],
+ pmNames: ['du.', 'PM', 'P'],
+ isRTL: false
+ };
+ $.timepicker.setDefaults($.timepicker.regional['hu']);
+})(jQuery);
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js
new file mode 100644
index 00000000..5b6d141b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js
@@ -0,0 +1,4 @@
+/*! jQuery UI - v1.10.3 - 2013-05-03
+* http://jqueryui.com
+* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
+jQuery(function(e){e.datepicker.regional.hu={closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],dayNames:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],weekHeader:"Hét",dateFormat:"yy.mm.dd.",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""},e.datepicker.setDefaults(e.datepicker.regional.hu)}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui-timepicker-addon.js b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui-timepicker-addon.js
new file mode 100644
index 00000000..eccc6a7b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui-timepicker-addon.js
@@ -0,0 +1,2128 @@
+/*
+ * jQuery timepicker addon
+ * By: Trent Richardson [http://trentrichardson.com]
+ * Version 1.3.1
+ * Last Modified: 07/07/2013
+ *
+ * Copyright 2013 Trent Richardson
+ * You may use this project under MIT or GPL licenses.
+ * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt
+ * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
+ */
+
+/*jslint evil: true, white: false, undef: false, nomen: false */
+
+(function($) {
+
+ /*
+ * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded"
+ */
+ $.ui.timepicker = $.ui.timepicker || {};
+ if ($.ui.timepicker.version) {
+ return;
+ }
+
+ /*
+ * Extend jQueryUI, get it started with our version number
+ */
+ $.extend($.ui, {
+ timepicker: {
+ version: "1.3.1"
+ }
+ });
+
+ /*
+ * Timepicker manager.
+ * Use the singleton instance of this class, $.timepicker, to interact with the time picker.
+ * Settings for (groups of) time pickers are maintained in an instance object,
+ * allowing multiple different settings on the same page.
+ */
+ var Timepicker = function() {
+ this.regional = []; // Available regional settings, indexed by language code
+ this.regional[''] = { // Default regional settings
+ currentText: 'Now',
+ closeText: 'Done',
+ amNames: ['AM', 'A'],
+ pmNames: ['PM', 'P'],
+ timeFormat: 'HH:mm',
+ timeSuffix: '',
+ timeOnlyTitle: 'Choose Time',
+ timeText: 'Time',
+ hourText: 'Hour',
+ minuteText: 'Minute',
+ secondText: 'Second',
+ millisecText: 'Millisecond',
+ microsecText: 'Microsecond',
+ timezoneText: 'Time Zone',
+ isRTL: false
+ };
+ this._defaults = { // Global defaults for all the datetime picker instances
+ showButtonPanel: true,
+ timeOnly: false,
+ showHour: null,
+ showMinute: null,
+ showSecond: null,
+ showMillisec: null,
+ showMicrosec: null,
+ showTimezone: null,
+ showTime: true,
+ stepHour: 1,
+ stepMinute: 1,
+ stepSecond: 1,
+ stepMillisec: 1,
+ stepMicrosec: 1,
+ hour: 0,
+ minute: 0,
+ second: 0,
+ millisec: 0,
+ microsec: 0,
+ timezone: null,
+ hourMin: 0,
+ minuteMin: 0,
+ secondMin: 0,
+ millisecMin: 0,
+ microsecMin: 0,
+ hourMax: 23,
+ minuteMax: 59,
+ secondMax: 59,
+ millisecMax: 999,
+ microsecMax: 999,
+ minDateTime: null,
+ maxDateTime: null,
+ onSelect: null,
+ hourGrid: 0,
+ minuteGrid: 0,
+ secondGrid: 0,
+ millisecGrid: 0,
+ microsecGrid: 0,
+ alwaysSetTime: true,
+ separator: ' ',
+ altFieldTimeOnly: true,
+ altTimeFormat: null,
+ altSeparator: null,
+ altTimeSuffix: null,
+ pickerTimeFormat: null,
+ pickerTimeSuffix: null,
+ showTimepicker: true,
+ timezoneList: null,
+ addSliderAccess: false,
+ sliderAccessArgs: null,
+ controlType: 'slider',
+ defaultValue: null,
+ parse: 'strict'
+ };
+ $.extend(this._defaults, this.regional['']);
+ };
+
+ $.extend(Timepicker.prototype, {
+ $input: null,
+ $altInput: null,
+ $timeObj: null,
+ inst: null,
+ hour_slider: null,
+ minute_slider: null,
+ second_slider: null,
+ millisec_slider: null,
+ microsec_slider: null,
+ timezone_select: null,
+ hour: 0,
+ minute: 0,
+ second: 0,
+ millisec: 0,
+ microsec: 0,
+ timezone: null,
+ hourMinOriginal: null,
+ minuteMinOriginal: null,
+ secondMinOriginal: null,
+ millisecMinOriginal: null,
+ microsecMinOriginal: null,
+ hourMaxOriginal: null,
+ minuteMaxOriginal: null,
+ secondMaxOriginal: null,
+ millisecMaxOriginal: null,
+ microsecMaxOriginal: null,
+ ampm: '',
+ formattedDate: '',
+ formattedTime: '',
+ formattedDateTime: '',
+ timezoneList: null,
+ units: ['hour','minute','second','millisec', 'microsec'],
+ support: {},
+ control: null,
+
+ /*
+ * Override the default settings for all instances of the time picker.
+ * @param settings object - the new settings to use as defaults (anonymous object)
+ * @return the manager object
+ */
+ setDefaults: function(settings) {
+ extendRemove(this._defaults, settings || {});
+ return this;
+ },
+
+ /*
+ * Create a new Timepicker instance
+ */
+ _newInst: function($input, opts) {
+ var tp_inst = new Timepicker(),
+ inlineSettings = {},
+ fns = {},
+ overrides, i;
+
+ for (var attrName in this._defaults) {
+ if(this._defaults.hasOwnProperty(attrName)){
+ var attrValue = $input.attr('time:' + attrName);
+ if (attrValue) {
+ try {
+ inlineSettings[attrName] = eval(attrValue);
+ } catch (err) {
+ inlineSettings[attrName] = attrValue;
+ }
+ }
+ }
+ }
+
+ overrides = {
+ beforeShow: function (input, dp_inst) {
+ if ($.isFunction(tp_inst._defaults.evnts.beforeShow)) {
+ return tp_inst._defaults.evnts.beforeShow.call($input[0], input, dp_inst, tp_inst);
+ }
+ },
+ onChangeMonthYear: function (year, month, dp_inst) {
+ // Update the time as well : this prevents the time from disappearing from the $input field.
+ tp_inst._updateDateTime(dp_inst);
+ if ($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)) {
+ tp_inst._defaults.evnts.onChangeMonthYear.call($input[0], year, month, dp_inst, tp_inst);
+ }
+ },
+ onClose: function (dateText, dp_inst) {
+ if (tp_inst.timeDefined === true && $input.val() !== '') {
+ tp_inst._updateDateTime(dp_inst);
+ }
+ if ($.isFunction(tp_inst._defaults.evnts.onClose)) {
+ tp_inst._defaults.evnts.onClose.call($input[0], dateText, dp_inst, tp_inst);
+ }
+ }
+ };
+ for (i in overrides) {
+ if (overrides.hasOwnProperty(i)) {
+ fns[i] = opts[i] || null;
+ }
+ }
+
+ tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, opts, overrides, {
+ evnts:fns,
+ timepicker: tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker');
+ });
+ tp_inst.amNames = $.map(tp_inst._defaults.amNames, function(val) {
+ return val.toUpperCase();
+ });
+ tp_inst.pmNames = $.map(tp_inst._defaults.pmNames, function(val) {
+ return val.toUpperCase();
+ });
+
+ // detect which units are supported
+ tp_inst.support = detectSupport(
+ tp_inst._defaults.timeFormat +
+ (tp_inst._defaults.pickerTimeFormat? tp_inst._defaults.pickerTimeFormat:'') +
+ (tp_inst._defaults.altTimeFormat? tp_inst._defaults.altTimeFormat:''));
+
+ // controlType is string - key to our this._controls
+ if(typeof(tp_inst._defaults.controlType) === 'string'){
+ if(tp_inst._defaults.controlType == 'slider' && typeof(jQuery.ui.slider) === 'undefined'){
+ tp_inst._defaults.controlType = 'select';
+ }
+ tp_inst.control = tp_inst._controls[tp_inst._defaults.controlType];
+ }
+ // controlType is an object and must implement create, options, value methods
+ else{
+ tp_inst.control = tp_inst._defaults.controlType;
+ }
+
+ // prep the timezone options
+ var timezoneList = [-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,
+ 0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];
+ if (tp_inst._defaults.timezoneList !== null) {
+ timezoneList = tp_inst._defaults.timezoneList;
+ }
+ var tzl=timezoneList.length,tzi=0,tzv=null;
+ if (tzl > 0 && typeof timezoneList[0] !== 'object') {
+ for(; tzi<tzl; tzi++){
+ tzv = timezoneList[tzi];
+ timezoneList[tzi] = { value: tzv, label: $.timepicker.timezoneOffsetString(tzv, tp_inst.support.iso8601) };
+ }
+ }
+ tp_inst._defaults.timezoneList = timezoneList;
+
+ // set the default units
+ tp_inst.timezone = tp_inst._defaults.timezone !== null? $.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone) :
+ ((new Date()).getTimezoneOffset()*-1);
+ tp_inst.hour = tp_inst._defaults.hour < tp_inst._defaults.hourMin? tp_inst._defaults.hourMin :
+ tp_inst._defaults.hour > tp_inst._defaults.hourMax? tp_inst._defaults.hourMax : tp_inst._defaults.hour;
+ tp_inst.minute = tp_inst._defaults.minute < tp_inst._defaults.minuteMin? tp_inst._defaults.minuteMin :
+ tp_inst._defaults.minute > tp_inst._defaults.minuteMax? tp_inst._defaults.minuteMax : tp_inst._defaults.minute;
+ tp_inst.second = tp_inst._defaults.second < tp_inst._defaults.secondMin? tp_inst._defaults.secondMin :
+ tp_inst._defaults.second > tp_inst._defaults.secondMax? tp_inst._defaults.secondMax : tp_inst._defaults.second;
+ tp_inst.millisec = tp_inst._defaults.millisec < tp_inst._defaults.millisecMin? tp_inst._defaults.millisecMin :
+ tp_inst._defaults.millisec > tp_inst._defaults.millisecMax? tp_inst._defaults.millisecMax : tp_inst._defaults.millisec;
+ tp_inst.microsec = tp_inst._defaults.microsec < tp_inst._defaults.microsecMin? tp_inst._defaults.microsecMin :
+ tp_inst._defaults.microsec > tp_inst._defaults.microsecMax? tp_inst._defaults.microsecMax : tp_inst._defaults.microsec;
+ tp_inst.ampm = '';
+ tp_inst.$input = $input;
+
+ if (tp_inst._defaults.altField) {
+ tp_inst.$altInput = $(tp_inst._defaults.altField).css({
+ cursor: 'pointer'
+ }).focus(function() {
+ $input.trigger("focus");
+ });
+ }
+
+ if (tp_inst._defaults.minDate === 0 || tp_inst._defaults.minDateTime === 0) {
+ tp_inst._defaults.minDate = new Date();
+ }
+ if (tp_inst._defaults.maxDate === 0 || tp_inst._defaults.maxDateTime === 0) {
+ tp_inst._defaults.maxDate = new Date();
+ }
+
+ // datepicker needs minDate/maxDate, timepicker needs minDateTime/maxDateTime..
+ if (tp_inst._defaults.minDate !== undefined && tp_inst._defaults.minDate instanceof Date) {
+ tp_inst._defaults.minDateTime = new Date(tp_inst._defaults.minDate.getTime());
+ }
+ if (tp_inst._defaults.minDateTime !== undefined && tp_inst._defaults.minDateTime instanceof Date) {
+ tp_inst._defaults.minDate = new Date(tp_inst._defaults.minDateTime.getTime());
+ }
+ if (tp_inst._defaults.maxDate !== undefined && tp_inst._defaults.maxDate instanceof Date) {
+ tp_inst._defaults.maxDateTime = new Date(tp_inst._defaults.maxDate.getTime());
+ }
+ if (tp_inst._defaults.maxDateTime !== undefined && tp_inst._defaults.maxDateTime instanceof Date) {
+ tp_inst._defaults.maxDate = new Date(tp_inst._defaults.maxDateTime.getTime());
+ }
+ tp_inst.$input.bind('focus', function() {
+ tp_inst._onFocus();
+ });
+
+ return tp_inst;
+ },
+
+ /*
+ * add our sliders to the calendar
+ */
+ _addTimePicker: function(dp_inst) {
+ var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val();
+
+ this.timeDefined = this._parseTime(currDT);
+ this._limitMinMaxDateTime(dp_inst, false);
+ this._injectTimePicker();
+ },
+
+ /*
+ * parse the time string from input value or _setTime
+ */
+ _parseTime: function(timeString, withDate) {
+ if (!this.inst) {
+ this.inst = $.datepicker._getInst(this.$input[0]);
+ }
+
+ if (withDate || !this._defaults.timeOnly) {
+ var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat');
+ try {
+ var parseRes = parseDateTimeInternal(dp_dateFormat, this._defaults.timeFormat, timeString, $.datepicker._getFormatConfig(this.inst), this._defaults);
+ if (!parseRes.timeObj) {
+ return false;
+ }
+ $.extend(this, parseRes.timeObj);
+ } catch (err) {
+ $.timepicker.log("Error parsing the date/time string: " + err +
+ "\ndate/time string = " + timeString +
+ "\ntimeFormat = " + this._defaults.timeFormat +
+ "\ndateFormat = " + dp_dateFormat);
+ return false;
+ }
+ return true;
+ } else {
+ var timeObj = $.datepicker.parseTime(this._defaults.timeFormat, timeString, this._defaults);
+ if (!timeObj) {
+ return false;
+ }
+ $.extend(this, timeObj);
+ return true;
+ }
+ },
+
+ /*
+ * generate and inject html for timepicker into ui datepicker
+ */
+ _injectTimePicker: function() {
+ var $dp = this.inst.dpDiv,
+ o = this.inst.settings,
+ tp_inst = this,
+ litem = '',
+ uitem = '',
+ show = null,
+ max = {},
+ gridSize = {},
+ size = null,
+ i=0,
+ l=0;
+
+ // Prevent displaying twice
+ if ($dp.find("div.ui-timepicker-div").length === 0 && o.showTimepicker) {
+ var noDisplay = ' style="display:none;"',
+ html = '<div class="ui-timepicker-div'+ (o.isRTL? ' ui-timepicker-rtl' : '') +'"><dl>' + '<dt class="ui_tpicker_time_label"' + ((o.showTime) ? '' : noDisplay) + '>' + o.timeText + '</dt>' +
+ '<dd class="ui_tpicker_time"' + ((o.showTime) ? '' : noDisplay) + '></dd>';
+
+ // Create the markup
+ for(i=0,l=this.units.length; i<l; i++){
+ litem = this.units[i];
+ uitem = litem.substr(0,1).toUpperCase() + litem.substr(1);
+ show = o['show'+uitem] !== null? o['show'+uitem] : this.support[litem];
+
+ // Added by Peter Medeiros:
+ // - Figure out what the hour/minute/second max should be based on the step values.
+ // - Example: if stepMinute is 15, then minMax is 45.
+ max[litem] = parseInt((o[litem+'Max'] - ((o[litem+'Max'] - o[litem+'Min']) % o['step'+uitem])), 10);
+ gridSize[litem] = 0;
+
+ html += '<dt class="ui_tpicker_'+ litem +'_label"' + (show ? '' : noDisplay) + '>' + o[litem +'Text'] + '</dt>' +
+ '<dd class="ui_tpicker_'+ litem +'"><div class="ui_tpicker_'+ litem +'_slider"' + (show ? '' : noDisplay) + '></div>';
+
+ if (show && o[litem+'Grid'] > 0) {
+ html += '<div style="padding-left: 1px"><table class="ui-tpicker-grid-label"><tr>';
+
+ if(litem == 'hour'){
+ for (var h = o[litem+'Min']; h <= max[litem]; h += parseInt(o[litem+'Grid'], 10)) {
+ gridSize[litem]++;
+ var tmph = $.datepicker.formatTime(this.support.ampm? 'hht':'HH', {hour:h}, o);
+ html += '<td data-for="'+litem+'">' + tmph + '</td>';
+ }
+ }
+ else{
+ for (var m = o[litem+'Min']; m <= max[litem]; m += parseInt(o[litem+'Grid'], 10)) {
+ gridSize[litem]++;
+ html += '<td data-for="'+litem+'">' + ((m < 10) ? '0' : '') + m + '</td>';
+ }
+ }
+
+ html += '</tr></table></div>';
+ }
+ html += '</dd>';
+ }
+
+ // Timezone
+ var showTz = o.showTimezone !== null? o.showTimezone : this.support.timezone;
+ html += '<dt class="ui_tpicker_timezone_label"' + (showTz ? '' : noDisplay) + '>' + o.timezoneText + '</dt>';
+ html += '<dd class="ui_tpicker_timezone" ' + (showTz ? '' : noDisplay) + '></dd>';
+
+ // Create the elements from string
+ html += '</dl></div>';
+ var $tp = $(html);
+
+ // if we only want time picker...
+ if (o.timeOnly === true) {
+ $tp.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all">' + '<div class="ui-datepicker-title">' + o.timeOnlyTitle + '</div>' + '</div>');
+ $dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide();
+ }
+
+ // add sliders, adjust grids, add events
+ for(i=0,l=tp_inst.units.length; i<l; i++){
+ litem = tp_inst.units[i];
+ uitem = litem.substr(0,1).toUpperCase() + litem.substr(1);
+ show = o['show'+uitem] !== null? o['show'+uitem] : this.support[litem];
+
+ // add the slider
+ tp_inst[litem+'_slider'] = tp_inst.control.create(tp_inst, $tp.find('.ui_tpicker_'+litem+'_slider'), litem, tp_inst[litem], o[litem+'Min'], max[litem], o['step'+uitem]);
+
+ // adjust the grid and add click event
+ if (show && o[litem+'Grid'] > 0) {
+ size = 100 * gridSize[litem] * o[litem+'Grid'] / (max[litem] - o[litem+'Min']);
+ $tp.find('.ui_tpicker_'+litem+' table').css({
+ width: size + "%",
+ marginLeft: o.isRTL? '0' : ((size / (-2 * gridSize[litem])) + "%"),
+ marginRight: o.isRTL? ((size / (-2 * gridSize[litem])) + "%") : '0',
+ borderCollapse: 'collapse'
+ }).find("td").click(function(e){
+ var $t = $(this),
+ h = $t.html(),
+ n = parseInt(h.replace(/[^0-9]/g),10),
+ ap = h.replace(/[^apm]/ig),
+ f = $t.data('for'); // loses scope, so we use data-for
+
+ if(f == 'hour'){
+ if(ap.indexOf('p') !== -1 && n < 12){
+ n += 12;
+ }
+ else{
+ if(ap.indexOf('a') !== -1 && n === 12){
+ n = 0;
+ }
+ }
+ }
+
+ tp_inst.control.value(tp_inst, tp_inst[f+'_slider'], litem, n);
+
+ tp_inst._onTimeChange();
+ tp_inst._onSelectHandler();
+ }).css({
+ cursor: 'pointer',
+ width: (100 / gridSize[litem]) + '%',
+ textAlign: 'center',
+ overflow: 'hidden'
+ });
+ } // end if grid > 0
+ } // end for loop
+
+ // Add timezone options
+ this.timezone_select = $tp.find('.ui_tpicker_timezone').append('<select></select>').find("select");
+ $.fn.append.apply(this.timezone_select,
+ $.map(o.timezoneList, function(val, idx) {
+ return $("<option />").val(typeof val == "object" ? val.value : val).text(typeof val == "object" ? val.label : val);
+ }));
+ if (typeof(this.timezone) != "undefined" && this.timezone !== null && this.timezone !== "") {
+ var local_timezone = (new Date(this.inst.selectedYear, this.inst.selectedMonth, this.inst.selectedDay, 12)).getTimezoneOffset()*-1;
+ if (local_timezone == this.timezone) {
+ selectLocalTimezone(tp_inst);
+ } else {
+ this.timezone_select.val(this.timezone);
+ }
+ } else {
+ if (typeof(this.hour) != "undefined" && this.hour !== null && this.hour !== "") {
+ this.timezone_select.val(o.timezone);
+ } else {
+ selectLocalTimezone(tp_inst);
+ }
+ }
+ this.timezone_select.change(function() {
+ tp_inst._onTimeChange();
+ tp_inst._onSelectHandler();
+ });
+ // End timezone options
+
+ // inject timepicker into datepicker
+ var $buttonPanel = $dp.find('.ui-datepicker-buttonpane');
+ if ($buttonPanel.length) {
+ $buttonPanel.before($tp);
+ } else {
+ $dp.append($tp);
+ }
+
+ this.$timeObj = $tp.find('.ui_tpicker_time');
+
+ if (this.inst !== null) {
+ var timeDefined = this.timeDefined;
+ this._onTimeChange();
+ this.timeDefined = timeDefined;
+ }
+
+ // slideAccess integration: http://trentrichardson.com/2011/11/11/jquery-ui-sliders-and-touch-accessibility/
+ if (this._defaults.addSliderAccess) {
+ var sliderAccessArgs = this._defaults.sliderAccessArgs,
+ rtl = this._defaults.isRTL;
+ sliderAccessArgs.isRTL = rtl;
+
+ setTimeout(function() { // fix for inline mode
+ if ($tp.find('.ui-slider-access').length === 0) {
+ $tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs);
+
+ // fix any grids since sliders are shorter
+ var sliderAccessWidth = $tp.find('.ui-slider-access:eq(0)').outerWidth(true);
+ if (sliderAccessWidth) {
+ $tp.find('table:visible').each(function() {
+ var $g = $(this),
+ oldWidth = $g.outerWidth(),
+ oldMarginLeft = $g.css(rtl? 'marginRight':'marginLeft').toString().replace('%', ''),
+ newWidth = oldWidth - sliderAccessWidth,
+ newMarginLeft = ((oldMarginLeft * newWidth) / oldWidth) + '%',
+ css = { width: newWidth, marginRight: 0, marginLeft: 0 };
+ css[rtl? 'marginRight':'marginLeft'] = newMarginLeft;
+ $g.css(css);
+ });
+ }
+ }
+ }, 10);
+ }
+ // end slideAccess integration
+
+ tp_inst._limitMinMaxDateTime(this.inst, true);
+ }
+ },
+
+ /*
+ * This function tries to limit the ability to go outside the
+ * min/max date range
+ */
+ _limitMinMaxDateTime: function(dp_inst, adjustSliders) {
+ var o = this._defaults,
+ dp_date = new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay);
+
+ if (!this._defaults.showTimepicker) {
+ return;
+ } // No time so nothing to check here
+
+ if ($.datepicker._get(dp_inst, 'minDateTime') !== null && $.datepicker._get(dp_inst, 'minDateTime') !== undefined && dp_date) {
+ var minDateTime = $.datepicker._get(dp_inst, 'minDateTime'),
+ minDateTimeDate = new Date(minDateTime.getFullYear(), minDateTime.getMonth(), minDateTime.getDate(), 0, 0, 0, 0);
+
+ if (this.hourMinOriginal === null || this.minuteMinOriginal === null || this.secondMinOriginal === null || this.millisecMinOriginal === null || this.microsecMinOriginal === null) {
+ this.hourMinOriginal = o.hourMin;
+ this.minuteMinOriginal = o.minuteMin;
+ this.secondMinOriginal = o.secondMin;
+ this.millisecMinOriginal = o.millisecMin;
+ this.microsecMinOriginal = o.microsecMin;
+ }
+
+ if (dp_inst.settings.timeOnly || minDateTimeDate.getTime() == dp_date.getTime()) {
+ this._defaults.hourMin = minDateTime.getHours();
+ if (this.hour <= this._defaults.hourMin) {
+ this.hour = this._defaults.hourMin;
+ this._defaults.minuteMin = minDateTime.getMinutes();
+ if (this.minute <= this._defaults.minuteMin) {
+ this.minute = this._defaults.minuteMin;
+ this._defaults.secondMin = minDateTime.getSeconds();
+ if (this.second <= this._defaults.secondMin) {
+ this.second = this._defaults.secondMin;
+ this._defaults.millisecMin = minDateTime.getMilliseconds();
+ if(this.millisec <= this._defaults.millisecMin) {
+ this.millisec = this._defaults.millisecMin;
+ this._defaults.microsecMin = minDateTime.getMicroseconds();
+ } else {
+ if (this.microsec < this._defaults.microsecMin) {
+ this.microsec = this._defaults.microsecMin;
+ }
+ this._defaults.microsecMin = this.microsecMinOriginal;
+ }
+ } else {
+ this._defaults.millisecMin = this.millisecMinOriginal;
+ this._defaults.microsecMin = this.microsecMinOriginal;
+ }
+ } else {
+ this._defaults.secondMin = this.secondMinOriginal;
+ this._defaults.millisecMin = this.millisecMinOriginal;
+ this._defaults.microsecMin = this.microsecMinOriginal;
+ }
+ } else {
+ this._defaults.minuteMin = this.minuteMinOriginal;
+ this._defaults.secondMin = this.secondMinOriginal;
+ this._defaults.millisecMin = this.millisecMinOriginal;
+ this._defaults.microsecMin = this.microsecMinOriginal;
+ }
+ } else {
+ this._defaults.hourMin = this.hourMinOriginal;
+ this._defaults.minuteMin = this.minuteMinOriginal;
+ this._defaults.secondMin = this.secondMinOriginal;
+ this._defaults.millisecMin = this.millisecMinOriginal;
+ this._defaults.microsecMin = this.microsecMinOriginal;
+ }
+ }
+
+ if ($.datepicker._get(dp_inst, 'maxDateTime') !== null && $.datepicker._get(dp_inst, 'maxDateTime') !== undefined && dp_date) {
+ var maxDateTime = $.datepicker._get(dp_inst, 'maxDateTime'),
+ maxDateTimeDate = new Date(maxDateTime.getFullYear(), maxDateTime.getMonth(), maxDateTime.getDate(), 0, 0, 0, 0);
+
+ if (this.hourMaxOriginal === null || this.minuteMaxOriginal === null || this.secondMaxOriginal === null || this.millisecMaxOriginal === null) {
+ this.hourMaxOriginal = o.hourMax;
+ this.minuteMaxOriginal = o.minuteMax;
+ this.secondMaxOriginal = o.secondMax;
+ this.millisecMaxOriginal = o.millisecMax;
+ this.microsecMaxOriginal = o.microsecMax;
+ }
+
+ if (dp_inst.settings.timeOnly || maxDateTimeDate.getTime() == dp_date.getTime()) {
+ this._defaults.hourMax = maxDateTime.getHours();
+ if (this.hour >= this._defaults.hourMax) {
+ this.hour = this._defaults.hourMax;
+ this._defaults.minuteMax = maxDateTime.getMinutes();
+ if (this.minute >= this._defaults.minuteMax) {
+ this.minute = this._defaults.minuteMax;
+ this._defaults.secondMax = maxDateTime.getSeconds();
+ if (this.second >= this._defaults.secondMax) {
+ this.second = this._defaults.secondMax;
+ this._defaults.millisecMax = maxDateTime.getMilliseconds();
+ if (this.millisec >= this._defaults.millisecMax) {
+ this.millisec = this._defaults.millisecMax;
+ this._defaults.microsecMax = maxDateTime.getMicroseconds();
+ } else {
+ if (this.microsec > this._defaults.microsecMax) {
+ this.microsec = this._defaults.microsecMax;
+ }
+ this._defaults.microsecMax = this.microsecMaxOriginal;
+ }
+ } else {
+ this._defaults.millisecMax = this.millisecMaxOriginal;
+ this._defaults.microsecMax = this.microsecMaxOriginal;
+ }
+ } else {
+ this._defaults.secondMax = this.secondMaxOriginal;
+ this._defaults.millisecMax = this.millisecMaxOriginal;
+ this._defaults.microsecMax = this.microsecMaxOriginal;
+ }
+ } else {
+ this._defaults.minuteMax = this.minuteMaxOriginal;
+ this._defaults.secondMax = this.secondMaxOriginal;
+ this._defaults.millisecMax = this.millisecMaxOriginal;
+ this._defaults.microsecMax = this.microsecMaxOriginal;
+ }
+ } else {
+ this._defaults.hourMax = this.hourMaxOriginal;
+ this._defaults.minuteMax = this.minuteMaxOriginal;
+ this._defaults.secondMax = this.secondMaxOriginal;
+ this._defaults.millisecMax = this.millisecMaxOriginal;
+ this._defaults.microsecMax = this.microsecMaxOriginal;
+ }
+ }
+
+ if (adjustSliders !== undefined && adjustSliders === true) {
+ var hourMax = parseInt((this._defaults.hourMax - ((this._defaults.hourMax - this._defaults.hourMin) % this._defaults.stepHour)), 10),
+ minMax = parseInt((this._defaults.minuteMax - ((this._defaults.minuteMax - this._defaults.minuteMin) % this._defaults.stepMinute)), 10),
+ secMax = parseInt((this._defaults.secondMax - ((this._defaults.secondMax - this._defaults.secondMin) % this._defaults.stepSecond)), 10),
+ millisecMax = parseInt((this._defaults.millisecMax - ((this._defaults.millisecMax - this._defaults.millisecMin) % this._defaults.stepMillisec)), 10);
+ microsecMax = parseInt((this._defaults.microsecMax - ((this._defaults.microsecMax - this._defaults.microsecMin) % this._defaults.stepMicrosec)), 10);
+
+ if (this.hour_slider) {
+ this.control.options(this, this.hour_slider, 'hour', { min: this._defaults.hourMin, max: hourMax });
+ this.control.value(this, this.hour_slider, 'hour', this.hour - (this.hour % this._defaults.stepHour));
+ }
+ if (this.minute_slider) {
+ this.control.options(this, this.minute_slider, 'minute', { min: this._defaults.minuteMin, max: minMax });
+ this.control.value(this, this.minute_slider, 'minute', this.minute - (this.minute % this._defaults.stepMinute));
+ }
+ if (this.second_slider) {
+ this.control.options(this, this.second_slider, 'second', { min: this._defaults.secondMin, max: secMax });
+ this.control.value(this, this.second_slider, 'second', this.second - (this.second % this._defaults.stepSecond));
+ }
+ if (this.millisec_slider) {
+ this.control.options(this, this.millisec_slider, 'millisec', { min: this._defaults.millisecMin, max: millisecMax });
+ this.control.value(this, this.millisec_slider, 'millisec', this.millisec - (this.millisec % this._defaults.stepMillisec));
+ }
+ if (this.microsec_slider) {
+ this.control.options(this, this.microsec_slider, 'microsec', { min: this._defaults.microsecMin, max: microsecMax });
+ this.control.value(this, this.microsec_slider, 'microsec', this.microsec - (this.microsec % this._defaults.stepMicrosec));
+ }
+ }
+
+ },
+
+ /*
+ * when a slider moves, set the internal time...
+ * on time change is also called when the time is updated in the text field
+ */
+ _onTimeChange: function() {
+ var hour = (this.hour_slider) ? this.control.value(this, this.hour_slider, 'hour') : false,
+ minute = (this.minute_slider) ? this.control.value(this, this.minute_slider, 'minute') : false,
+ second = (this.second_slider) ? this.control.value(this, this.second_slider, 'second') : false,
+ millisec = (this.millisec_slider) ? this.control.value(this, this.millisec_slider, 'millisec') : false,
+ microsec = (this.microsec_slider) ? this.control.value(this, this.microsec_slider, 'microsec') : false,
+ timezone = (this.timezone_select) ? this.timezone_select.val() : false,
+ o = this._defaults,
+ pickerTimeFormat = o.pickerTimeFormat || o.timeFormat,
+ pickerTimeSuffix = o.pickerTimeSuffix || o.timeSuffix;
+
+ if (typeof(hour) == 'object') {
+ hour = false;
+ }
+ if (typeof(minute) == 'object') {
+ minute = false;
+ }
+ if (typeof(second) == 'object') {
+ second = false;
+ }
+ if (typeof(millisec) == 'object') {
+ millisec = false;
+ }
+ if (typeof(microsec) == 'object') {
+ microsec = false;
+ }
+ if (typeof(timezone) == 'object') {
+ timezone = false;
+ }
+
+ if (hour !== false) {
+ hour = parseInt(hour, 10);
+ }
+ if (minute !== false) {
+ minute = parseInt(minute, 10);
+ }
+ if (second !== false) {
+ second = parseInt(second, 10);
+ }
+ if (millisec !== false) {
+ millisec = parseInt(millisec, 10);
+ }
+ if (microsec !== false) {
+ microsec = parseInt(microsec, 10);
+ }
+
+ var ampm = o[hour < 12 ? 'amNames' : 'pmNames'][0];
+
+ // If the update was done in the input field, the input field should not be updated.
+ // If the update was done using the sliders, update the input field.
+ var hasChanged = (hour != this.hour || minute != this.minute || second != this.second || millisec != this.millisec || microsec != this.microsec
+ || (this.ampm.length > 0 && (hour < 12) != ($.inArray(this.ampm.toUpperCase(), this.amNames) !== -1))
+ || (this.timezone !== null && timezone != this.timezone));
+
+ if (hasChanged) {
+
+ if (hour !== false) {
+ this.hour = hour;
+ }
+ if (minute !== false) {
+ this.minute = minute;
+ }
+ if (second !== false) {
+ this.second = second;
+ }
+ if (millisec !== false) {
+ this.millisec = millisec;
+ }
+ if (microsec !== false) {
+ this.microsec = microsec;
+ }
+ if (timezone !== false) {
+ this.timezone = timezone;
+ }
+
+ if (!this.inst) {
+ this.inst = $.datepicker._getInst(this.$input[0]);
+ }
+
+ this._limitMinMaxDateTime(this.inst, true);
+ }
+ if (this.support.ampm) {
+ this.ampm = ampm;
+ }
+
+ // Updates the time within the timepicker
+ this.formattedTime = $.datepicker.formatTime(o.timeFormat, this, o);
+ if (this.$timeObj) {
+ if(pickerTimeFormat === o.timeFormat){
+ this.$timeObj.text(this.formattedTime + pickerTimeSuffix);
+ }
+ else{
+ this.$timeObj.text($.datepicker.formatTime(pickerTimeFormat, this, o) + pickerTimeSuffix);
+ }
+ }
+
+ this.timeDefined = true;
+ if (hasChanged) {
+ this._updateDateTime();
+ }
+ },
+
+ /*
+ * call custom onSelect.
+ * bind to sliders slidestop, and grid click.
+ */
+ _onSelectHandler: function() {
+ var onSelect = this._defaults.onSelect || this.inst.settings.onSelect;
+ var inputEl = this.$input ? this.$input[0] : null;
+ if (onSelect && inputEl) {
+ onSelect.apply(inputEl, [this.formattedDateTime, this]);
+ }
+ },
+
+ /*
+ * update our input with the new date time..
+ */
+ _updateDateTime: function(dp_inst) {
+ dp_inst = this.inst || dp_inst;
+ //var dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
+ var dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.currentYear, dp_inst.currentMonth, dp_inst.currentDay)),
+ dateFmt = $.datepicker._get(dp_inst, 'dateFormat'),
+ formatCfg = $.datepicker._getFormatConfig(dp_inst),
+ timeAvailable = dt !== null && this.timeDefined;
+ this.formattedDate = $.datepicker.formatDate(dateFmt, (dt === null ? new Date() : dt), formatCfg);
+ var formattedDateTime = this.formattedDate;
+
+ // if a slider was changed but datepicker doesn't have a value yet, set it
+ if(dp_inst.lastVal===""){
+ dp_inst.currentYear=dp_inst.selectedYear;
+ dp_inst.currentMonth=dp_inst.selectedMonth;
+ dp_inst.currentDay=dp_inst.selectedDay;
+ }
+
+ /*
+ * remove following lines to force every changes in date picker to change the input value
+ * Bug descriptions: when an input field has a default value, and click on the field to pop up the date picker.
+ * If the user manually empty the value in the input field, the date picker will never change selected value.
+ */
+ //if (dp_inst.lastVal !== undefined && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0)) {
+ // return;
+ //}
+
+ if (this._defaults.timeOnly === true) {
+ formattedDateTime = this.formattedTime;
+ } else if (this._defaults.timeOnly !== true && (this._defaults.alwaysSetTime || timeAvailable)) {
+ formattedDateTime += this._defaults.separator + this.formattedTime + this._defaults.timeSuffix;
+ }
+
+ this.formattedDateTime = formattedDateTime;
+
+ if (!this._defaults.showTimepicker) {
+ this.$input.val(this.formattedDate);
+ } else if (this.$altInput && this._defaults.timeOnly === false && this._defaults.altFieldTimeOnly === true) {
+ this.$altInput.val(this.formattedTime);
+ this.$input.val(this.formattedDate);
+ } else if (this.$altInput) {
+ this.$input.val(formattedDateTime);
+ var altFormattedDateTime = '',
+ altSeparator = this._defaults.altSeparator ? this._defaults.altSeparator : this._defaults.separator,
+ altTimeSuffix = this._defaults.altTimeSuffix ? this._defaults.altTimeSuffix : this._defaults.timeSuffix;
+
+ if(!this._defaults.timeOnly){
+ if (this._defaults.altFormat){
+ altFormattedDateTime = $.datepicker.formatDate(this._defaults.altFormat, (dt === null ? new Date() : dt), formatCfg);
+ }
+ else{
+ altFormattedDateTime = this.formattedDate;
+ }
+
+ if (altFormattedDateTime){
+ altFormattedDateTime += altSeparator;
+ }
+ }
+
+ if(this._defaults.altTimeFormat){
+ altFormattedDateTime += $.datepicker.formatTime(this._defaults.altTimeFormat, this, this._defaults) + altTimeSuffix;
+ }
+ else{
+ altFormattedDateTime += this.formattedTime + altTimeSuffix;
+ }
+ this.$altInput.val(altFormattedDateTime);
+ } else {
+ this.$input.val(formattedDateTime);
+ }
+
+ this.$input.trigger("change");
+ },
+
+ _onFocus: function() {
+ if (!this.$input.val() && this._defaults.defaultValue) {
+ this.$input.val(this._defaults.defaultValue);
+ var inst = $.datepicker._getInst(this.$input.get(0)),
+ tp_inst = $.datepicker._get(inst, 'timepicker');
+ if (tp_inst) {
+ if (tp_inst._defaults.timeOnly && (inst.input.val() != inst.lastVal)) {
+ try {
+ $.datepicker._updateDatepicker(inst);
+ } catch (err) {
+ $.timepicker.log(err);
+ }
+ }
+ }
+ }
+ },
+
+ /*
+ * Small abstraction to control types
+ * We can add more, just be sure to follow the pattern: create, options, value
+ */
+ _controls: {
+ // slider methods
+ slider: {
+ create: function(tp_inst, obj, unit, val, min, max, step){
+ var rtl = tp_inst._defaults.isRTL; // if rtl go -60->0 instead of 0->60
+ return obj.prop('slide', null).slider({
+ orientation: "horizontal",
+ value: rtl? val*-1 : val,
+ min: rtl? max*-1 : min,
+ max: rtl? min*-1 : max,
+ step: step,
+ slide: function(event, ui) {
+ tp_inst.control.value(tp_inst, $(this), unit, rtl? ui.value*-1:ui.value);
+ tp_inst._onTimeChange();
+ },
+ stop: function(event, ui) {
+ tp_inst._onSelectHandler();
+ }
+ });
+ },
+ options: function(tp_inst, obj, unit, opts, val){
+ if(tp_inst._defaults.isRTL){
+ if(typeof(opts) == 'string'){
+ if(opts == 'min' || opts == 'max'){
+ if(val !== undefined){
+ return obj.slider(opts, val*-1);
+ }
+ return Math.abs(obj.slider(opts));
+ }
+ return obj.slider(opts);
+ }
+ var min = opts.min,
+ max = opts.max;
+ opts.min = opts.max = null;
+ if(min !== undefined){
+ opts.max = min * -1;
+ }
+ if(max !== undefined){
+ opts.min = max * -1;
+ }
+ return obj.slider(opts);
+ }
+ if(typeof(opts) == 'string' && val !== undefined){
+ return obj.slider(opts, val);
+ }
+ return obj.slider(opts);
+ },
+ value: function(tp_inst, obj, unit, val){
+ if(tp_inst._defaults.isRTL){
+ if(val !== undefined){
+ return obj.slider('value', val*-1);
+ }
+ return Math.abs(obj.slider('value'));
+ }
+ if(val !== undefined){
+ return obj.slider('value', val);
+ }
+ return obj.slider('value');
+ }
+ },
+ // select methods
+ select: {
+ create: function(tp_inst, obj, unit, val, min, max, step){
+ var sel = '<select class="ui-timepicker-select" data-unit="'+ unit +'" data-min="'+ min +'" data-max="'+ max +'" data-step="'+ step +'">',
+ format = tp_inst._defaults.pickerTimeFormat || tp_inst._defaults.timeFormat;
+
+ for(var i=min; i<=max; i+=step){
+ sel += '<option value="'+ i +'"'+ (i==val? ' selected':'') +'>';
+ if(unit == 'hour'){
+ sel += $.datepicker.formatTime($.trim(format.replace(/[^ht ]/ig,'')), {hour:i}, tp_inst._defaults);
+ }
+ else if(unit == 'millisec' || unit == 'microsec' || i >= 10){ sel += i; }
+ else {sel += '0'+ i.toString(); }
+ sel += '</option>';
+ }
+ sel += '</select>';
+
+ obj.children('select').remove();
+
+ $(sel).appendTo(obj).change(function(e){
+ tp_inst._onTimeChange();
+ tp_inst._onSelectHandler();
+ });
+
+ return obj;
+ },
+ options: function(tp_inst, obj, unit, opts, val){
+ var o = {},
+ $t = obj.children('select');
+ if(typeof(opts) == 'string'){
+ if(val === undefined){
+ return $t.data(opts);
+ }
+ o[opts] = val;
+ }
+ else{ o = opts; }
+ return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
+ },
+ value: function(tp_inst, obj, unit, val){
+ var $t = obj.children('select');
+ if(val !== undefined){
+ return $t.val(val);
+ }
+ return $t.val();
+ }
+ }
+ } // end _controls
+
+ });
+
+ $.fn.extend({
+ /*
+ * shorthand just to use timepicker..
+ */
+ timepicker: function(o) {
+ o = o || {};
+ var tmp_args = Array.prototype.slice.call(arguments);
+
+ if (typeof o == 'object') {
+ tmp_args[0] = $.extend(o, {
+ timeOnly: true
+ });
+ }
+
+ return $(this).each(function() {
+ $.fn.datetimepicker.apply($(this), tmp_args);
+ });
+ },
+
+ /*
+ * extend timepicker to datepicker
+ */
+ datetimepicker: function(o) {
+ o = o || {};
+ var tmp_args = arguments;
+
+ if (typeof(o) == 'string') {
+ if (o == 'getDate') {
+ return $.fn.datepicker.apply($(this[0]), tmp_args);
+ } else {
+ return this.each(function() {
+ var $t = $(this);
+ $t.datepicker.apply($t, tmp_args);
+ });
+ }
+ } else {
+ return this.each(function() {
+ var $t = $(this);
+ $t.datepicker($.timepicker._newInst($t, o)._defaults);
+ });
+ }
+ }
+ });
+
+ /*
+ * Public Utility to parse date and time
+ */
+ $.datepicker.parseDateTime = function(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
+ var parseRes = parseDateTimeInternal(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings);
+ if (parseRes.timeObj) {
+ var t = parseRes.timeObj;
+ parseRes.date.setHours(t.hour, t.minute, t.second, t.millisec);
+ parseRes.date.setMicroseconds(t.microsec);
+ }
+
+ return parseRes.date;
+ };
+
+ /*
+ * Public utility to parse time
+ */
+ $.datepicker.parseTime = function(timeFormat, timeString, options) {
+ var o = extendRemove(extendRemove({}, $.timepicker._defaults), options || {}),
+ iso8601 = (timeFormat.replace(/\'.*?\'/g,'').indexOf('Z') !== -1);
+
+ // Strict parse requires the timeString to match the timeFormat exactly
+ var strictParse = function(f, s, o){
+
+ // pattern for standard and localized AM/PM markers
+ var getPatternAmpm = function(amNames, pmNames) {
+ var markers = [];
+ if (amNames) {
+ $.merge(markers, amNames);
+ }
+ if (pmNames) {
+ $.merge(markers, pmNames);
+ }
+ markers = $.map(markers, function(val) {
+ return val.replace(/[.*+?|()\[\]{}\\]/g, '\\$&');
+ });
+ return '(' + markers.join('|') + ')?';
+ };
+
+ // figure out position of time elements.. cause js cant do named captures
+ var getFormatPositions = function(timeFormat) {
+ var finds = timeFormat.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|c{1}|t{1,2}|z|'.*?')/g),
+ orders = {
+ h: -1,
+ m: -1,
+ s: -1,
+ l: -1,
+ c: -1,
+ t: -1,
+ z: -1
+ };
+
+ if (finds) {
+ for (var i = 0; i < finds.length; i++) {
+ if (orders[finds[i].toString().charAt(0)] == -1) {
+ orders[finds[i].toString().charAt(0)] = i + 1;
+ }
+ }
+ }
+ return orders;
+ };
+
+ var regstr = '^' + f.toString()
+ .replace(/([hH]{1,2}|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|'.*?')/g, function (match) {
+ var ml = match.length;
+ switch (match.charAt(0).toLowerCase()) {
+ case 'h': return ml === 1? '(\\d?\\d)':'(\\d{'+ml+'})';
+ case 'm': return ml === 1? '(\\d?\\d)':'(\\d{'+ml+'})';
+ case 's': return ml === 1? '(\\d?\\d)':'(\\d{'+ml+'})';
+ case 'l': return '(\\d?\\d?\\d)';
+ case 'c': return '(\\d?\\d?\\d)';
+ case 'z': return '(z|[-+]\\d\\d:?\\d\\d|\\S+)?';
+ case 't': return getPatternAmpm(o.amNames, o.pmNames);
+ default: // literal escaped in quotes
+ return '(' + match.replace(/\'/g, "").replace(/(\.|\$|\^|\\|\/|\(|\)|\[|\]|\?|\+|\*)/g, function (m) { return "\\" + m; }) + ')?';
+ }
+ })
+ .replace(/\s/g, '\\s?') +
+ o.timeSuffix + '$',
+ order = getFormatPositions(f),
+ ampm = '',
+ treg;
+
+ treg = s.match(new RegExp(regstr, 'i'));
+
+ var resTime = {
+ hour: 0,
+ minute: 0,
+ second: 0,
+ millisec: 0,
+ microsec: 0
+ };
+
+ if (treg) {
+ if (order.t !== -1) {
+ if (treg[order.t] === undefined || treg[order.t].length === 0) {
+ ampm = '';
+ resTime.ampm = '';
+ } else {
+ ampm = $.inArray(treg[order.t].toUpperCase(), o.amNames) !== -1 ? 'AM' : 'PM';
+ resTime.ampm = o[ampm == 'AM' ? 'amNames' : 'pmNames'][0];
+ }
+ }
+
+ if (order.h !== -1) {
+ if (ampm == 'AM' && treg[order.h] == '12') {
+ resTime.hour = 0; // 12am = 0 hour
+ } else {
+ if (ampm == 'PM' && treg[order.h] != '12') {
+ resTime.hour = parseInt(treg[order.h], 10) + 12; // 12pm = 12 hour, any other pm = hour + 12
+ } else {
+ resTime.hour = Number(treg[order.h]);
+ }
+ }
+ }
+
+ if (order.m !== -1) {
+ resTime.minute = Number(treg[order.m]);
+ }
+ if (order.s !== -1) {
+ resTime.second = Number(treg[order.s]);
+ }
+ if (order.l !== -1) {
+ resTime.millisec = Number(treg[order.l]);
+ }
+ if (order.c !== -1) {
+ resTime.microsec = Number(treg[order.c]);
+ }
+ if (order.z !== -1 && treg[order.z] !== undefined) {
+ resTime.timezone = $.timepicker.timezoneOffsetNumber(treg[order.z]);
+ }
+
+
+ return resTime;
+ }
+ return false;
+ };// end strictParse
+
+ // First try JS Date, if that fails, use strictParse
+ var looseParse = function(f,s,o){
+ try{
+ var d = new Date('2012-01-01 '+ s);
+ if(isNaN(d.getTime())){
+ d = new Date('2012-01-01T'+ s);
+ if(isNaN(d.getTime())){
+ d = new Date('01/01/2012 '+ s);
+ if(isNaN(d.getTime())){
+ throw "Unable to parse time with native Date: "+ s;
+ }
+ }
+ }
+
+ return {
+ hour: d.getHours(),
+ minute: d.getMinutes(),
+ second: d.getSeconds(),
+ millisec: d.getMilliseconds(),
+ microsec: d.getMicroseconds(),
+ timezone: d.getTimezoneOffset()*-1
+ };
+ }
+ catch(err){
+ try{
+ return strictParse(f,s,o);
+ }
+ catch(err2){
+ $.timepicker.log("Unable to parse \ntimeString: "+ s +"\ntimeFormat: "+ f);
+ }
+ }
+ return false;
+ }; // end looseParse
+
+ if(typeof o.parse === "function"){
+ return o.parse(timeFormat, timeString, o);
+ }
+ if(o.parse === 'loose'){
+ return looseParse(timeFormat, timeString, o);
+ }
+ return strictParse(timeFormat, timeString, o);
+ };
+
+ /*
+ * Public utility to format the time
+ * format = string format of the time
+ * time = a {}, not a Date() for timezones
+ * options = essentially the regional[].. amNames, pmNames, ampm
+ */
+ $.datepicker.formatTime = function(format, time, options) {
+ options = options || {};
+ options = $.extend({}, $.timepicker._defaults, options);
+ time = $.extend({
+ hour: 0,
+ minute: 0,
+ second: 0,
+ millisec: 0,
+ timezone: 0
+ }, time);
+
+ var tmptime = format,
+ ampmName = options.amNames[0],
+ hour = parseInt(time.hour, 10);
+
+ if (hour > 11) {
+ ampmName = options.pmNames[0];
+ }
+
+ tmptime = tmptime.replace(/(?:HH?|hh?|mm?|ss?|[tT]{1,2}|[zZ]|[lc]|('.*?'|".*?"))/g, function(match) {
+ switch (match) {
+ case 'HH':
+ return ('0' + hour).slice(-2);
+ case 'H':
+ return hour;
+ case 'hh':
+ return ('0' + convert24to12(hour)).slice(-2);
+ case 'h':
+ return convert24to12(hour);
+ case 'mm':
+ return ('0' + time.minute).slice(-2);
+ case 'm':
+ return time.minute;
+ case 'ss':
+ return ('0' + time.second).slice(-2);
+ case 's':
+ return time.second;
+ case 'l':
+ return ('00' + time.millisec).slice(-3);
+ case 'c':
+ return ('00' + time.microsec).slice(-3);
+ case 'z':
+ return $.timepicker.timezoneOffsetString(time.timezone === null? options.timezone : time.timezone, false);
+ case 'Z':
+ return $.timepicker.timezoneOffsetString(time.timezone === null? options.timezone : time.timezone, true);
+ case 'T':
+ return ampmName.charAt(0).toUpperCase();
+ case 'TT':
+ return ampmName.toUpperCase();
+ case 't':
+ return ampmName.charAt(0).toLowerCase();
+ case 'tt':
+ return ampmName.toLowerCase();
+ default:
+ return match.replace(/\'/g, "") || "'";
+ }
+ });
+
+ tmptime = $.trim(tmptime);
+ return tmptime;
+ };
+
+ /*
+ * the bad hack :/ override datepicker so it doesnt close on select
+ // inspired: http://stackoverflow.com/questions/1252512/jquery-datepicker-prevent-closing-picker-when-clicking-a-date/1762378#1762378
+ */
+ $.datepicker._base_selectDate = $.datepicker._selectDate;
+ $.datepicker._selectDate = function(id, dateStr) {
+ var inst = this._getInst($(id)[0]),
+ tp_inst = this._get(inst, 'timepicker');
+
+ if (tp_inst) {
+ tp_inst._limitMinMaxDateTime(inst, true);
+ inst.inline = inst.stay_open = true;
+ //This way the onSelect handler called from calendarpicker get the full dateTime
+ this._base_selectDate(id, dateStr);
+ inst.inline = inst.stay_open = false;
+ this._notifyChange(inst);
+ this._updateDatepicker(inst);
+ } else {
+ this._base_selectDate(id, dateStr);
+ }
+ };
+
+ /*
+ * second bad hack :/ override datepicker so it triggers an event when changing the input field
+ * and does not redraw the datepicker on every selectDate event
+ */
+ $.datepicker._base_updateDatepicker = $.datepicker._updateDatepicker;
+ $.datepicker._updateDatepicker = function(inst) {
+
+ // don't popup the datepicker if there is another instance already opened
+ var input = inst.input[0];
+ if ($.datepicker._curInst && $.datepicker._curInst != inst && $.datepicker._datepickerShowing && $.datepicker._lastInput != input) {
+ return;
+ }
+
+ if (typeof(inst.stay_open) !== 'boolean' || inst.stay_open === false) {
+
+ this._base_updateDatepicker(inst);
+
+ // Reload the time control when changing something in the input text field.
+ var tp_inst = this._get(inst, 'timepicker');
+ if (tp_inst) {
+ tp_inst._addTimePicker(inst);
+ }
+ }
+ };
+
+ /*
+ * third bad hack :/ override datepicker so it allows spaces and colon in the input field
+ */
+ $.datepicker._base_doKeyPress = $.datepicker._doKeyPress;
+ $.datepicker._doKeyPress = function(event) {
+ var inst = $.datepicker._getInst(event.target),
+ tp_inst = $.datepicker._get(inst, 'timepicker');
+
+ if (tp_inst) {
+ if ($.datepicker._get(inst, 'constrainInput')) {
+ var ampm = tp_inst.support.ampm,
+ tz = tp_inst._defaults.showTimezone !== null? tp_inst._defaults.showTimezone : tp_inst.support.timezone,
+ dateChars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat')),
+ datetimeChars = tp_inst._defaults.timeFormat.toString()
+ .replace(/[hms]/g, '')
+ .replace(/TT/g, ampm ? 'APM' : '')
+ .replace(/Tt/g, ampm ? 'AaPpMm' : '')
+ .replace(/tT/g, ampm ? 'AaPpMm' : '')
+ .replace(/T/g, ampm ? 'AP' : '')
+ .replace(/tt/g, ampm ? 'apm' : '')
+ .replace(/t/g, ampm ? 'ap' : '') +
+ " " + tp_inst._defaults.separator +
+ tp_inst._defaults.timeSuffix +
+ (tz ? tp_inst._defaults.timezoneList.join('') : '') +
+ (tp_inst._defaults.amNames.join('')) + (tp_inst._defaults.pmNames.join('')) +
+ dateChars,
+ chr = String.fromCharCode(event.charCode === undefined ? event.keyCode : event.charCode);
+ return event.ctrlKey || (chr < ' ' || !dateChars || datetimeChars.indexOf(chr) > -1);
+ }
+ }
+
+ return $.datepicker._base_doKeyPress(event);
+ };
+
+ /*
+ * Fourth bad hack :/ override _updateAlternate function used in inline mode to init altField
+ */
+ $.datepicker._base_updateAlternate = $.datepicker._updateAlternate;
+ /* Update any alternate field to synchronise with the main field. */
+ $.datepicker._updateAlternate = function(inst) {
+ var tp_inst = this._get(inst, 'timepicker');
+ if(tp_inst){
+ var altField = tp_inst._defaults.altField;
+ if (altField) { // update alternate field too
+ var altFormat = tp_inst._defaults.altFormat || tp_inst._defaults.dateFormat,
+ date = this._getDate(inst),
+ formatCfg = $.datepicker._getFormatConfig(inst),
+ altFormattedDateTime = '',
+ altSeparator = tp_inst._defaults.altSeparator ? tp_inst._defaults.altSeparator : tp_inst._defaults.separator,
+ altTimeSuffix = tp_inst._defaults.altTimeSuffix ? tp_inst._defaults.altTimeSuffix : tp_inst._defaults.timeSuffix,
+ altTimeFormat = tp_inst._defaults.altTimeFormat !== null ? tp_inst._defaults.altTimeFormat : tp_inst._defaults.timeFormat;
+
+ altFormattedDateTime += $.datepicker.formatTime(altTimeFormat, tp_inst, tp_inst._defaults) + altTimeSuffix;
+ if(!tp_inst._defaults.timeOnly && !tp_inst._defaults.altFieldTimeOnly && date !== null){
+ if(tp_inst._defaults.altFormat){
+ altFormattedDateTime = $.datepicker.formatDate(tp_inst._defaults.altFormat, date, formatCfg) + altSeparator + altFormattedDateTime;
+ }
+ else{
+ altFormattedDateTime = tp_inst.formattedDate + altSeparator + altFormattedDateTime;
+ }
+ }
+ $(altField).val(altFormattedDateTime);
+ }
+ }
+ else{
+ $.datepicker._base_updateAlternate(inst);
+ }
+ };
+
+ /*
+ * Override key up event to sync manual input changes.
+ */
+ $.datepicker._base_doKeyUp = $.datepicker._doKeyUp;
+ $.datepicker._doKeyUp = function(event) {
+ var inst = $.datepicker._getInst(event.target),
+ tp_inst = $.datepicker._get(inst, 'timepicker');
+
+ if (tp_inst) {
+ if (tp_inst._defaults.timeOnly && (inst.input.val() != inst.lastVal)) {
+ try {
+ $.datepicker._updateDatepicker(inst);
+ } catch (err) {
+ $.timepicker.log(err);
+ }
+ }
+ }
+
+ return $.datepicker._base_doKeyUp(event);
+ };
+
+ /*
+ * override "Today" button to also grab the time.
+ */
+ $.datepicker._base_gotoToday = $.datepicker._gotoToday;
+ $.datepicker._gotoToday = function(id) {
+ var inst = this._getInst($(id)[0]),
+ $dp = inst.dpDiv;
+ this._base_gotoToday(id);
+ var tp_inst = this._get(inst, 'timepicker');
+ selectLocalTimezone(tp_inst);
+ var now = new Date();
+ this._setTime(inst, now);
+ $('.ui-datepicker-today', $dp).click();
+ };
+
+ /*
+ * Disable & enable the Time in the datetimepicker
+ */
+ $.datepicker._disableTimepickerDatepicker = function(target) {
+ var inst = this._getInst(target);
+ if (!inst) {
+ return;
+ }
+
+ var tp_inst = this._get(inst, 'timepicker');
+ $(target).datepicker('getDate'); // Init selected[Year|Month|Day]
+ if (tp_inst) {
+ tp_inst._defaults.showTimepicker = false;
+ tp_inst._updateDateTime(inst);
+ }
+ };
+
+ $.datepicker._enableTimepickerDatepicker = function(target) {
+ var inst = this._getInst(target);
+ if (!inst) {
+ return;
+ }
+
+ var tp_inst = this._get(inst, 'timepicker');
+ $(target).datepicker('getDate'); // Init selected[Year|Month|Day]
+ if (tp_inst) {
+ tp_inst._defaults.showTimepicker = true;
+ tp_inst._addTimePicker(inst); // Could be disabled on page load
+ tp_inst._updateDateTime(inst);
+ }
+ };
+
+ /*
+ * Create our own set time function
+ */
+ $.datepicker._setTime = function(inst, date) {
+ var tp_inst = this._get(inst, 'timepicker');
+ if (tp_inst) {
+ var defaults = tp_inst._defaults;
+
+ // calling _setTime with no date sets time to defaults
+ tp_inst.hour = date ? date.getHours() : defaults.hour;
+ tp_inst.minute = date ? date.getMinutes() : defaults.minute;
+ tp_inst.second = date ? date.getSeconds() : defaults.second;
+ tp_inst.millisec = date ? date.getMilliseconds() : defaults.millisec;
+ tp_inst.microsec = date ? date.getMicroseconds() : defaults.microsec;
+
+ //check if within min/max times..
+ tp_inst._limitMinMaxDateTime(inst, true);
+
+ tp_inst._onTimeChange();
+ tp_inst._updateDateTime(inst);
+ }
+ };
+
+ /*
+ * Create new public method to set only time, callable as $().datepicker('setTime', date)
+ */
+ $.datepicker._setTimeDatepicker = function(target, date, withDate) {
+ var inst = this._getInst(target);
+ if (!inst) {
+ return;
+ }
+
+ var tp_inst = this._get(inst, 'timepicker');
+
+ if (tp_inst) {
+ this._setDateFromField(inst);
+ var tp_date;
+ if (date) {
+ if (typeof date == "string") {
+ tp_inst._parseTime(date, withDate);
+ tp_date = new Date();
+ tp_date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second, tp_inst.millisec);
+ tp_date.setMicroseconds(tp_inst.microsec);
+ } else {
+ tp_date = new Date(date.getTime());
+ tp_date.setMicroseconds(date.getMicroseconds());
+ }
+ if (tp_date.toString() == 'Invalid Date') {
+ tp_date = undefined;
+ }
+ this._setTime(inst, tp_date);
+ }
+ }
+
+ };
+
+ /*
+ * override setDate() to allow setting time too within Date object
+ */
+ $.datepicker._base_setDateDatepicker = $.datepicker._setDateDatepicker;
+ $.datepicker._setDateDatepicker = function(target, date) {
+ var inst = this._getInst(target);
+ if (!inst) {
+ return;
+ }
+
+ if(typeof(date) === 'string'){
+ date = new Date(date);
+ if(!date.getTime()){
+ $.timepicker.log("Error creating Date object from string.");
+ }
+ }
+
+ var tp_inst = this._get(inst, 'timepicker');
+ var tp_date;
+ if (date instanceof Date) {
+ tp_date = new Date(date.getTime());
+ tp_date.setMicroseconds(date.getMicroseconds());
+ } else {
+ tp_date = date;
+ }
+
+ // This is important if you are using the timezone option, javascript's Date
+ // object will only return the timezone offset for the current locale, so we
+ // adjust it accordingly. If not using timezone option this won't matter..
+ // If a timezone is different in tp, keep the timezone as is
+ if(tp_inst){
+ // look out for DST if tz wasn't specified
+ if(!tp_inst.support.timezone && tp_inst._defaults.timezone === null){
+ tp_inst.timezone = tp_date.getTimezoneOffset()*-1;
+ }
+ date = $.timepicker.timezoneAdjust(date, tp_inst.timezone);
+ tp_date = $.timepicker.timezoneAdjust(tp_date, tp_inst.timezone);
+ }
+
+ this._updateDatepicker(inst);
+ this._base_setDateDatepicker.apply(this, arguments);
+ this._setTimeDatepicker(target, tp_date, true);
+ };
+
+ /*
+ * override getDate() to allow getting time too within Date object
+ */
+ $.datepicker._base_getDateDatepicker = $.datepicker._getDateDatepicker;
+ $.datepicker._getDateDatepicker = function(target, noDefault) {
+ var inst = this._getInst(target);
+ if (!inst) {
+ return;
+ }
+
+ var tp_inst = this._get(inst, 'timepicker');
+
+ if (tp_inst) {
+ // if it hasn't yet been defined, grab from field
+ if(inst.lastVal === undefined){
+ this._setDateFromField(inst, noDefault);
+ }
+
+ var date = this._getDate(inst);
+ if (date && tp_inst._parseTime($(target).val(), tp_inst.timeOnly)) {
+ date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second, tp_inst.millisec);
+ date.setMicroseconds(tp_inst.microsec);
+
+ // This is important if you are using the timezone option, javascript's Date
+ // object will only return the timezone offset for the current locale, so we
+ // adjust it accordingly. If not using timezone option this won't matter..
+ if(tp_inst.timezone != null){
+ // look out for DST if tz wasn't specified
+ if(!tp_inst.support.timezone && tp_inst._defaults.timezone === null){
+ tp_inst.timezone = date.getTimezoneOffset()*-1;
+ }
+ date = $.timepicker.timezoneAdjust(date, tp_inst.timezone);
+ }
+ }
+ return date;
+ }
+ return this._base_getDateDatepicker(target, noDefault);
+ };
+
+ /*
+ * override parseDate() because UI 1.8.14 throws an error about "Extra characters"
+ * An option in datapicker to ignore extra format characters would be nicer.
+ */
+ $.datepicker._base_parseDate = $.datepicker.parseDate;
+ $.datepicker.parseDate = function(format, value, settings) {
+ var date;
+ try {
+ date = this._base_parseDate(format, value, settings);
+ } catch (err) {
+ // Hack! The error message ends with a colon, a space, and
+ // the "extra" characters. We rely on that instead of
+ // attempting to perfectly reproduce the parsing algorithm.
+ if (err.indexOf(":") >= 0) {
+ date = this._base_parseDate(format, value.substring(0,value.length-(err.length-err.indexOf(':')-2)), settings);
+ $.timepicker.log("Error parsing the date string: " + err + "\ndate string = " + value + "\ndate format = " + format);
+ } else {
+ throw err;
+ }
+ }
+ return date;
+ };
+
+ /*
+ * override formatDate to set date with time to the input
+ */
+ $.datepicker._base_formatDate = $.datepicker._formatDate;
+ $.datepicker._formatDate = function(inst, day, month, year) {
+ var tp_inst = this._get(inst, 'timepicker');
+ if (tp_inst) {
+ tp_inst._updateDateTime(inst);
+ return tp_inst.$input.val();
+ }
+ return this._base_formatDate(inst);
+ };
+
+ /*
+ * override options setter to add time to maxDate(Time) and minDate(Time). MaxDate
+ */
+ $.datepicker._base_optionDatepicker = $.datepicker._optionDatepicker;
+ $.datepicker._optionDatepicker = function(target, name, value) {
+ var inst = this._getInst(target),
+ name_clone;
+ if (!inst) {
+ return null;
+ }
+
+ var tp_inst = this._get(inst, 'timepicker');
+ if (tp_inst) {
+ var min = null,
+ max = null,
+ onselect = null,
+ overrides = tp_inst._defaults.evnts,
+ fns = {},
+ prop;
+ if (typeof name == 'string') { // if min/max was set with the string
+ if (name === 'minDate' || name === 'minDateTime') {
+ min = value;
+ } else if (name === 'maxDate' || name === 'maxDateTime') {
+ max = value;
+ } else if (name === 'onSelect') {
+ onselect = value;
+ } else if (overrides.hasOwnProperty(name)) {
+ if (typeof (value) === 'undefined') {
+ return overrides[name];
+ }
+ fns[name] = value;
+ name_clone = {}; //empty results in exiting function after overrides updated
+ }
+ } else if (typeof name == 'object') { //if min/max was set with the JSON
+ if (name.minDate) {
+ min = name.minDate;
+ } else if (name.minDateTime) {
+ min = name.minDateTime;
+ } else if (name.maxDate) {
+ max = name.maxDate;
+ } else if (name.maxDateTime) {
+ max = name.maxDateTime;
+ }
+ for (prop in overrides) {
+ if (overrides.hasOwnProperty(prop) && name[prop]) {
+ fns[prop] = name[prop];
+ }
+ }
+ }
+ for (prop in fns) {
+ if (fns.hasOwnProperty(prop)) {
+ overrides[prop] = fns[prop];
+ if (!name_clone) { name_clone = $.extend({}, name);}
+ delete name_clone[prop];
+ }
+ }
+ if (name_clone && isEmptyObject(name_clone)) { return; }
+ if (min) { //if min was set
+ if (min === 0) {
+ min = new Date();
+ } else {
+ min = new Date(min);
+ }
+ tp_inst._defaults.minDate = min;
+ tp_inst._defaults.minDateTime = min;
+ } else if (max) { //if max was set
+ if (max === 0) {
+ max = new Date();
+ } else {
+ max = new Date(max);
+ }
+ tp_inst._defaults.maxDate = max;
+ tp_inst._defaults.maxDateTime = max;
+ } else if (onselect) {
+ tp_inst._defaults.onSelect = onselect;
+ }
+ }
+ if (value === undefined) {
+ return this._base_optionDatepicker.call($.datepicker, target, name);
+ }
+ return this._base_optionDatepicker.call($.datepicker, target, name_clone || name, value);
+ };
+
+ /*
+ * jQuery isEmptyObject does not check hasOwnProperty - if someone has added to the object prototype,
+ * it will return false for all objects
+ */
+ var isEmptyObject = function(obj) {
+ var prop;
+ for (prop in obj) {
+ if (obj.hasOwnProperty(obj)) {
+ return false;
+ }
+ }
+ return true;
+ };
+
+ /*
+ * jQuery extend now ignores nulls!
+ */
+ var extendRemove = function(target, props) {
+ $.extend(target, props);
+ for (var name in props) {
+ if (props[name] === null || props[name] === undefined) {
+ target[name] = props[name];
+ }
+ }
+ return target;
+ };
+
+ /*
+ * Determine by the time format which units are supported
+ * Returns an object of booleans for each unit
+ */
+ var detectSupport = function(timeFormat){
+ var tf = timeFormat.replace(/\'.*?\'/g,'').toLowerCase(), // removes literals
+ isIn = function(f, t){ // does the format contain the token?
+ return f.indexOf(t) !== -1? true:false;
+ };
+ return {
+ hour: isIn(tf,'h'),
+ minute: isIn(tf,'m'),
+ second: isIn(tf,'s'),
+ millisec: isIn(tf,'l'),
+ microsec: isIn(tf,'c'),
+ timezone: isIn(tf,'z'),
+ ampm: isIn(tf,'t') && isIn(timeFormat,'h'),
+ iso8601: isIn(timeFormat, 'Z')
+ };
+ };
+
+ /*
+ * Converts 24 hour format into 12 hour
+ * Returns 12 hour without leading 0
+ */
+ var convert24to12 = function(hour) {
+ if (hour > 12) {
+ hour = hour - 12;
+ }
+
+ if (hour === 0) {
+ hour = 12;
+ }
+
+ return String(hour);
+ };
+
+ /*
+ * Splits datetime string into date ans time substrings.
+ * Throws exception when date can't be parsed
+ * Returns [dateString, timeString]
+ */
+ var splitDateTime = function(dateFormat, dateTimeString, dateSettings, timeSettings) {
+ try {
+ // The idea is to get the number separator occurances in datetime and the time format requested (since time has
+ // fewer unknowns, mostly numbers and am/pm). We will use the time pattern to split.
+ var separator = timeSettings && timeSettings.separator ? timeSettings.separator : $.timepicker._defaults.separator,
+ format = timeSettings && timeSettings.timeFormat ? timeSettings.timeFormat : $.timepicker._defaults.timeFormat,
+ timeParts = format.split(separator), // how many occurances of separator may be in our format?
+ timePartsLen = timeParts.length,
+ allParts = dateTimeString.split(separator),
+ allPartsLen = allParts.length;
+
+ if (allPartsLen > 1) {
+ return [
+ allParts.splice(0,allPartsLen-timePartsLen).join(separator),
+ allParts.splice(0,timePartsLen).join(separator)
+ ];
+ }
+
+ } catch (err) {
+ $.timepicker.log('Could not split the date from the time. Please check the following datetimepicker options' +
+ "\nthrown error: " + err +
+ "\ndateTimeString" + dateTimeString +
+ "\ndateFormat = " + dateFormat +
+ "\nseparator = " + timeSettings.separator +
+ "\ntimeFormat = " + timeSettings.timeFormat);
+
+ if (err.indexOf(":") >= 0) {
+ // Hack! The error message ends with a colon, a space, and
+ // the "extra" characters. We rely on that instead of
+ // attempting to perfectly reproduce the parsing algorithm.
+ var dateStringLength = dateTimeString.length - (err.length - err.indexOf(':') - 2),
+ timeString = dateTimeString.substring(dateStringLength);
+
+ return [$.trim(dateTimeString.substring(0, dateStringLength)), $.trim(dateTimeString.substring(dateStringLength))];
+
+ } else {
+ throw err;
+ }
+ }
+ return [dateTimeString, ''];
+ };
+
+ /*
+ * Internal function to parse datetime interval
+ * Returns: {date: Date, timeObj: Object}, where
+ * date - parsed date without time (type Date)
+ * timeObj = {hour: , minute: , second: , millisec: , microsec: } - parsed time. Optional
+ */
+ var parseDateTimeInternal = function(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
+ var date;
+ var splitRes = splitDateTime(dateFormat, dateTimeString, dateSettings, timeSettings);
+ date = $.datepicker._base_parseDate(dateFormat, splitRes[0], dateSettings);
+ if (splitRes[1] !== '') {
+ var timeString = splitRes[1],
+ parsedTime = $.datepicker.parseTime(timeFormat, timeString, timeSettings);
+
+ if (parsedTime === null) {
+ throw 'Wrong time format';
+ }
+ return {
+ date: date,
+ timeObj: parsedTime
+ };
+ } else {
+ return {
+ date: date
+ };
+ }
+ };
+
+ /*
+ * Internal function to set timezone_select to the local timezone
+ */
+ var selectLocalTimezone = function(tp_inst, date) {
+ if (tp_inst && tp_inst.timezone_select) {
+ var now = typeof date !== 'undefined' ? date : new Date();
+ tp_inst.timezone_select.val(now.getTimezoneOffset()*-1);
+ }
+ };
+
+ /*
+ * Create a Singleton Insance
+ */
+ $.timepicker = new Timepicker();
+
+ /**
+ * Get the timezone offset as string from a date object (eg '+0530' for UTC+5.5)
+ * @param number if not a number this value is returned
+ * @param boolean if true formats in accordance to iso8601 "+12:45"
+ * @return string
+ */
+ $.timepicker.timezoneOffsetString = function(tzMinutes, iso8601) {
+ if(isNaN(tzMinutes) || tzMinutes > 840){
+ return tzMinutes;
+ }
+
+ var off = tzMinutes,
+ minutes = off % 60,
+ hours = (off - minutes) / 60,
+ iso = iso8601? ':':'',
+ tz = (off >= 0 ? '+' : '-') + ('0' + (hours * 101).toString()).slice(-2) + iso + ('0' + (minutes * 101).toString()).slice(-2);
+
+ if(tz == '+00:00'){
+ return 'Z';
+ }
+ return tz;
+ };
+
+ /**
+ * Get the number in minutes that represents a timezone string
+ * @param string formated like "+0500", "-1245"
+ * @return number
+ */
+ $.timepicker.timezoneOffsetNumber = function(tzString) {
+ tzString = tzString.toString().replace(':',''); // excuse any iso8601, end up with "+1245"
+
+ if(tzString.toUpperCase() === 'Z'){ // if iso8601 with Z, its 0 minute offset
+ return 0;
+ }
+
+ if(!/^(\-|\+)\d{4}$/.test(tzString)){ // possibly a user defined tz, so just give it back
+ return tzString;
+ }
+
+ return ((tzString.substr(0,1) =='-'? -1 : 1) * // plus or minus
+ ((parseInt(tzString.substr(1,2),10)*60) + // hours (converted to minutes)
+ parseInt(tzString.substr(3,2),10))); // minutes
+ };
+
+ /**
+ * No way to set timezone in js Date, so we must adjust the minutes to compensate. (think setDate, getDate)
+ * @param date
+ * @param string formated like "+0500", "-1245"
+ * @return date
+ */
+ $.timepicker.timezoneAdjust = function(date, toTimezone) {
+ var toTz = $.timepicker.timezoneOffsetNumber(toTimezone);
+ if(!isNaN(toTz)){
+ date.setMinutes(date.getMinutes()*1 + (date.getTimezoneOffset()*-1 - toTz*1) );
+ }
+ return date;
+ };
+
+ /**
+ * Calls `timepicker()` on the `startTime` and `endTime` elements, and configures them to
+ * enforce date range limits.
+ * n.b. The input value must be correctly formatted (reformatting is not supported)
+ * @param Element startTime
+ * @param Element endTime
+ * @param obj options Options for the timepicker() call
+ * @return jQuery
+ */
+ $.timepicker.timeRange = function(startTime, endTime, options) {
+ return $.timepicker.handleRange('timepicker', startTime, endTime, options);
+ };
+
+ /**
+ * Calls `datetimepicker` on the `startTime` and `endTime` elements, and configures them to
+ * enforce date range limits.
+ * @param Element startTime
+ * @param Element endTime
+ * @param obj options Options for the `timepicker()` call. Also supports `reformat`,
+ * a boolean value that can be used to reformat the input values to the `dateFormat`.
+ * @param string method Can be used to specify the type of picker to be added
+ * @return jQuery
+ */
+ $.timepicker.datetimeRange = function(startTime, endTime, options) {
+ $.timepicker.handleRange('datetimepicker', startTime, endTime, options);
+ };
+
+ /**
+ * Calls `method` on the `startTime` and `endTime` elements, and configures them to
+ * enforce date range limits.
+ * @param Element startTime
+ * @param Element endTime
+ * @param obj options Options for the `timepicker()` call. Also supports `reformat`,
+ * a boolean value that can be used to reformat the input values to the `dateFormat`.
+ * @return jQuery
+ */
+ $.timepicker.dateRange = function(startTime, endTime, options) {
+ $.timepicker.handleRange('datepicker', startTime, endTime, options);
+ };
+
+ /**
+ * Calls `method` on the `startTime` and `endTime` elements, and configures them to
+ * enforce date range limits.
+ * @param string method Can be used to specify the type of picker to be added
+ * @param Element startTime
+ * @param Element endTime
+ * @param obj options Options for the `timepicker()` call. Also supports `reformat`,
+ * a boolean value that can be used to reformat the input values to the `dateFormat`.
+ * @return jQuery
+ */
+ $.timepicker.handleRange = function(method, startTime, endTime, options) {
+ options = $.extend({}, {
+ minInterval: 0, // min allowed interval in milliseconds
+ maxInterval: 0, // max allowed interval in milliseconds
+ start: {}, // options for start picker
+ end: {} // options for end picker
+ }, options);
+
+ $.fn[method].call(startTime, $.extend({
+ onClose: function(dateText, inst) {
+ checkDates($(this), endTime);
+ },
+ onSelect: function(selectedDateTime) {
+ selected($(this), endTime, 'minDate');
+ }
+ }, options, options.start));
+ $.fn[method].call(endTime, $.extend({
+ onClose: function(dateText, inst) {
+ checkDates($(this), startTime);
+ },
+ onSelect: function(selectedDateTime) {
+ selected($(this), startTime, 'maxDate');
+ }
+ }, options, options.end));
+
+ checkDates(startTime, endTime);
+ selected(startTime, endTime, 'minDate');
+ selected(endTime, startTime, 'maxDate');
+
+ function checkDates(changed, other) {
+ var startdt = startTime[method]('getDate'),
+ enddt = endTime[method]('getDate'),
+ changeddt = changed[method]('getDate');
+
+ if(startdt !== null){
+ var minDate = new Date(startdt.getTime()),
+ maxDate = new Date(startdt.getTime());
+
+ minDate.setMilliseconds(minDate.getMilliseconds() + options.minInterval);
+ maxDate.setMilliseconds(maxDate.getMilliseconds() + options.maxInterval);
+
+ if(options.minInterval > 0 && minDate > enddt){ // minInterval check
+ endTime[method]('setDate',minDate);
+ }
+ else if(options.maxInterval > 0 && maxDate < enddt){ // max interval check
+ endTime[method]('setDate',maxDate);
+ }
+ else if (startdt > enddt) {
+ other[method]('setDate',changeddt);
+ }
+ }
+ }
+
+ function selected(changed, other, option) {
+ if (!changed.val()) {
+ return;
+ }
+ var date = changed[method].call(changed, 'getDate');
+ if(date !== null && options.minInterval > 0){
+ if(option == 'minDate'){
+ date.setMilliseconds(date.getMilliseconds() + options.minInterval);
+ }
+ if(option == 'maxDate'){
+ date.setMilliseconds(date.getMilliseconds() - options.minInterval);
+ }
+ }
+ if (date.getTime) {
+ other[method].call(other, 'option', option, date);
+ }
+ }
+ return $([startTime.get(0), endTime.get(0)]);
+ };
+
+ /**
+ * Log error or data to the console during error or debugging
+ * @param Object err pass any type object to log to the console during error or debugging
+ * @return void
+ */
+ $.timepicker.log = function(err){
+ if(window.console){
+ console.log(err);
+ }
+ };
+
+ /*
+ * Microsecond support
+ */
+ if(!Date.prototype.getMicroseconds){
+ Date.prototype.microseconds = 0;
+ Date.prototype.getMicroseconds = function(){ return this.microseconds; };
+ Date.prototype.setMicroseconds = function(m){
+ this.setMilliseconds(this.getMilliseconds() + Math.floor(m/1000));
+ this.microseconds = m%1000;
+ return this;
+ };
+ }
+
+ /*
+ * Keep up with the version
+ */
+ $.timepicker.version = "1.3.1";
+
+})(jQuery);
diff --git a/mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui.min.js b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui.min.js
new file mode 100644
index 00000000..82bbb671
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/jquery-ui/jquery-ui.min.js
@@ -0,0 +1,12 @@
+/*! jQuery UI - v1.10.3 - 2013-05-03
+* http://jqueryui.com
+* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
+* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
+(function(t,e){function i(e,i){var n,o,a,r=e.nodeName.toLowerCase();return"area"===r?(n=e.parentNode,o=n.name,e.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap=#"+o+"]")[0],!!a&&s(a)):!1):(/input|select|textarea|button|object/.test(r)?!e.disabled:"a"===r?e.href||i:i)&&s(e)}function s(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var n=0,o=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,s){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),s&&s.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var s,n,o=t(this[0]);o.length&&o[0]!==document;){if(s=o.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(n=parseInt(o.css("zIndex"),10),!isNaN(n)&&0!==n))return n;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var s=t.attr(e,"tabindex"),n=isNaN(s);return(n||s>=0)&&i(e,!n)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,s){function n(e,i,s,n){return t.each(o,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),n&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var o="Width"===s?["Left","Right"]:["Top","Bottom"],a=s.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+s]=function(i){return i===e?r["inner"+s].call(this):this.each(function(){t(this).css(a,n(this,i)+"px")})},t.fn["outer"+s]=function(e,i){return"number"!=typeof e?r["outer"+s].call(this,e):this.each(function(){t(this).css(a,n(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i){var s,n=t.plugins[e];if(n&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(s=0;n.length>s;s++)t.options[n[s][0]]&&n[s][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)}})})(jQuery),function(t,e){var i=0,s=Array.prototype.slice,n=t.cleanData;t.cleanData=function(e){for(var i,s=0;null!=(i=e[s]);s++)try{t(i).triggerHandler("remove")}catch(o){}n(e)},t.widget=function(i,s,n){var o,a,r,h,l={},c=i.split(".")[0];i=i.split(".")[1],o=c+"-"+i,n||(n=s,s=t.Widget),t.expr[":"][o.toLowerCase()]=function(e){return!!t.data(e,o)},t[c]=t[c]||{},a=t[c][i],r=t[c][i]=function(t,i){return this._createWidget?(arguments.length&&this._createWidget(t,i),e):new r(t,i)},t.extend(r,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),h=new s,h.options=t.widget.extend({},h.options),t.each(n,function(i,n){return t.isFunction(n)?(l[i]=function(){var t=function(){return s.prototype[i].apply(this,arguments)},e=function(t){return s.prototype[i].apply(this,t)};return function(){var i,s=this._super,o=this._superApply;return this._super=t,this._superApply=e,i=n.apply(this,arguments),this._super=s,this._superApply=o,i}}(),e):(l[i]=n,e)}),r.prototype=t.widget.extend(h,{widgetEventPrefix:a?h.widgetEventPrefix:i},l,{constructor:r,namespace:c,widgetName:i,widgetFullName:o}),a?(t.each(a._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,r,i._proto)}),delete a._childConstructors):s._childConstructors.push(r),t.widget.bridge(i,r)},t.widget.extend=function(i){for(var n,o,a=s.call(arguments,1),r=0,h=a.length;h>r;r++)for(n in a[r])o=a[r][n],a[r].hasOwnProperty(n)&&o!==e&&(i[n]=t.isPlainObject(o)?t.isPlainObject(i[n])?t.widget.extend({},i[n],o):t.widget.extend({},o):o);return i},t.widget.bridge=function(i,n){var o=n.prototype.widgetFullName||i;t.fn[i]=function(a){var r="string"==typeof a,h=s.call(arguments,1),l=this;return a=!r&&h.length?t.widget.extend.apply(null,[a].concat(h)):a,r?this.each(function(){var s,n=t.data(this,o);return n?t.isFunction(n[a])&&"_"!==a.charAt(0)?(s=n[a].apply(n,h),s!==n&&s!==e?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):e):t.error("no such method '"+a+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+a+"'")}):this.each(function(){var e=t.data(this,o);e?e.option(a||{})._init():t.data(this,o,new n(a,this))}),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,s){var n,o,a,r=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(r={},n=i.split("."),i=n.shift(),n.length){for(o=r[i]=t.widget.extend({},this.options[i]),a=0;n.length-1>a;a++)o[n[a]]=o[n[a]]||{},o=o[n[a]];if(i=n.pop(),s===e)return o[i]===e?null:o[i];o[i]=s}else{if(s===e)return this.options[i]===e?null:this.options[i];r[i]=s}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var o,a=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=o=t(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,o=this.widget()),t.each(n,function(n,r){function h(){return i||a.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):e}"string"!=typeof r&&(h.guid=r.guid=r.guid||h.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?o.delegate(u,c,h):s.bind(c,h)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}})}(jQuery),function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,o="string"==typeof this.options.cancel&&i.target.nodeName?t(i.target).closest(this.options.cancel).length:!1;return n&&!o&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return s._mouseMove(t)},this._mouseUpDelegate=function(t){return s._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;return n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):"document"===n.containment?(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):n.containment.constructor===Array?(this.containment=n.containment,undefined):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i),undefined):(this.containment=null,undefined)},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:n.scrollTop(),left:n.scrollLeft()}),{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*s}},_generatePosition:function(e){var i,s,n,o,a=this.options,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=e.pageX,l=e.pageY;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,h=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var s=t(this).data("ui-draggable"),n=s.options,o=t.extend({},i,{item:s.element});s.sortables=[],t(n.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i){var s=t(this).data("ui-draggable"),n=t.extend({},i,{item:s.element});t.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,n))})},drag:function(e,i){var s=t(this).data("ui-draggable"),n=this;t.each(s.sortables,function(){var o=!1,a=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,t.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==a&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(a.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",e),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",e),s.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var s=t(i.helper),n=t(this).data("ui-draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),s=i.options,n=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<s.scrollSensitivity?i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop+s.scrollSpeed:e.pageY-i.overflowOffset.top<s.scrollSensitivity&&(i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<s.scrollSensitivity?i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft+s.scrollSpeed:e.pageX-i.overflowOffset.left<s.scrollSensitivity&&(i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t(document).scrollTop()<s.scrollSensitivity?n=t(document).scrollTop(t(document).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<s.scrollSensitivity&&(n=t(document).scrollTop(t(document).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(document).scrollLeft()<s.scrollSensitivity?n=t(document).scrollLeft(t(document).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<s.scrollSensitivity&&(n=t(document).scrollLeft(t(document).scrollLeft()+s.scrollSpeed)))),n!==!1&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),s=i.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:s.top,left:s.left})})},drag:function(e,i){var s,n,o,a,r,h,l,c,u,d,p=t(this).data("ui-draggable"),f=p.options,g=f.snapTolerance,m=i.offset.left,v=m+p.helperProportions.width,_=i.offset.top,b=_+p.helperProportions.height;for(u=p.snapElements.length-1;u>=0;u--)r=p.snapElements[u].left,h=r+p.snapElements[u].width,l=p.snapElements[u].top,c=l+p.snapElements[u].height,r-g>v||m>h+g||l-g>b||_>c+g||!t.contains(p.snapElements[u].item.ownerDocument,p.snapElements[u].item)?(p.snapElements[u].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=!1):("inner"!==f.snapMode&&(s=g>=Math.abs(l-b),n=g>=Math.abs(c-_),o=g>=Math.abs(r-v),a=g>=Math.abs(h-m),s&&(i.position.top=p._convertPositionTo("relative",{top:l-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r-p.helperProportions.width}).left-p.margins.left),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h}).left-p.margins.left)),d=s||n||o||a,"outer"!==f.snapMode&&(s=g>=Math.abs(l-_),n=g>=Math.abs(c-b),o=g>=Math.abs(r-m),a=g>=Math.abs(h-v),s&&(i.position.top=p._convertPositionTo("relative",{top:l,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:c-p.helperProportions.height,left:0}).top-p.margins.top),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r}).left-p.margins.left),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[u].snapping&&(s||n||o||a||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=s||n||o||a||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,s=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});s.length&&(e=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var s=t(i.helper),n=t(this).data("ui-draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)
+},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];i.length>e;e++)i[e]===this&&i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope===s.options.scope&&e.accept.call(e.element[0],s.currentItem||s.element)&&t.ui.intersect(s,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(n=!0,!1):undefined}),n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(s)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,i,s){if(!i.offset)return!1;var n,o,a=(t.positionAbs||t.position.absolute).left,r=a+t.helperProportions.width,h=(t.positionAbs||t.position.absolute).top,l=h+t.helperProportions.height,c=i.offset.left,u=c+i.proportions.width,d=i.offset.top,p=d+i.proportions.height;switch(s){case"fit":return a>=c&&u>=r&&h>=d&&p>=l;case"intersect":return a+t.helperProportions.width/2>c&&u>r-t.helperProportions.width/2&&h+t.helperProportions.height/2>d&&p>l-t.helperProportions.height/2;case"pointer":return n=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,o=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,e(o,d,i.proportions.height)&&e(n,c,i.proportions.width);case"touch":return(h>=d&&p>=h||l>=d&&p>=l||d>h&&l>p)&&(a>=c&&u>=a||r>=c&&u>=r||c>a&&r>u);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions.height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions={width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight})}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=t.ui.intersect(e,this,this.options.tolerance),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===n}),o.length&&(s=t.data(o[0],"ui-droppable"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t){function e(t){return parseInt(t,10)||0}function i(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,s,n,o,a=this,r=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;e.length>i;i++)s=t.trim(e[i]),o="ui-resizable-"+s,n=t("<div class='ui-resizable-handle "+o+"'></div>"),n.css({zIndex:r.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),r.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(t(this).removeClass("ui-resizable-autohide"),a._handles.show())}).mouseleave(function(){r.disabled||a.resizing||(t(this).addClass("ui-resizable-autohide"),a._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(i){var s,n,o,a=this.options,r=this.element.position(),h=this.element;return this.resizing=!0,/absolute/.test(h.css("position"))?h.css({position:"absolute",top:h.css("top"),left:h.css("left")}):h.is(".ui-draggable")&&h.css({position:"absolute",top:r.top,left:r.left}),this._renderProxy(),s=e(this.helper.css("left")),n=e(this.helper.css("top")),a.containment&&(s+=t(a.containment).scrollLeft()||0,n+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:n},this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalPosition={left:s,top:n},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===o?this.axis+"-resize":o),h.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i,s=this.helper,n={},o=this.originalMousePosition,a=this.axis,r=this.position.top,h=this.position.left,l=this.size.width,c=this.size.height,u=e.pageX-o.left||0,d=e.pageY-o.top||0,p=this._change[a];return p?(i=p.apply(this,[e,u,d]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==r&&(n.top=this.position.top+"px"),this.position.left!==h&&(n.left=this.position.left+"px"),this.size.width!==l&&(n.width=this.size.width+"px"),this.size.height!==c&&(n.height=this.size.height+"px"),s.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||this._trigger("resize",e,this.ui()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,h,l=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&t.ui.hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,h=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(a,{top:h,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,s,n,o,a,r=this.options;a={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:1/0,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,s=a.maxHeight*this.aspectRatio,o=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),n>a.minHeight&&(a.minHeight=n),a.maxWidth>s&&(a.maxWidth=s),a.maxHeight>o&&(a.maxHeight=o)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,s=this.size,n=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(s.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(s.height-t.height),t.left=e.left+(s.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,s=this.axis,n=i(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=i(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=i(t.width)&&e.minWidth&&e.minWidth>t.width,r=i(t.height)&&e.minHeight&&e.minHeight>t.height,h=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,c=/sw|nw|w/.test(s),u=/nw|ne|n/.test(s);return a&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),a&&c&&(t.left=h-e.minWidth),n&&c&&(t.left=h-e.maxWidth),r&&u&&(t.top=l-e.minHeight),o&&u&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,s,n,o=this.helper||this.element;for(t=0;this._proportionallyResizeElements.length>t;t++){if(n=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],s=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],e=0;i.length>e;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(s[e],10)||0);n.css({height:o.height()-this.borderDif[0]-this.borderDif[2]||0,width:o.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&t.ui.hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-a},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i,s,n,o,a,r,h,l=t(this).data("ui-resizable"),c=l.options,u=l.element,d=c.containment,p=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;p&&(l.containerElement=t(p),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(i=t(p),s=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){s[t]=e(i.css("padding"+n))}),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},n=l.containerOffset,o=l.containerSize.height,a=l.containerSize.width,r=t.ui.hasScroll(p,"left")?p.scrollWidth:a,h=t.ui.hasScroll(p)?p.scrollHeight:o,l.parentData={element:p,left:n.left,top:n.top,width:r,height:h}))},resize:function(e){var i,s,n,o,a=t(this).data("ui-resizable"),r=a.options,h=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-h.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio),a.position.top=a._helper?h.top:0),a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top,i=Math.abs((a._helper?a.offset.left-u.left:a.offset.left-u.left)+a.sizeDiff.width),s=Math.abs((a._helper?a.offset.top-u.top:a.offset.top-h.top)+a.sizeDiff.height),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o&&(i-=a.parentData.left),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),h=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,s=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?s(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):t.each(i.alsoResize,function(t){s(t)})},resize:function(e,i){var s=t(this).data("ui-resizable"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0},h=function(e,s){t(e).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),o={},a=s&&s.length?s:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var i=(n[e]||0)+(r[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?h(n.alsoResize):t.each(n.alsoResize,function(t,e){h(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,h=r[0]||1,l=r[1]||1,c=Math.round((s.width-n.width)/h)*h,u=Math.round((s.height-n.height)/l)*l,d=n.width+c,p=n.height+u,f=i.maxWidth&&d>i.maxWidth,g=i.maxHeight&&p>i.maxHeight,m=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=r,m&&(d+=h),v&&(p+=l),f&&(d-=h),g&&(p-=l),/^(se|s|e)$/.test(a)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.top=o.top-u):/^(sw)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.left=o.left-c):(e.size.width=d,e.size.height=p,e.position.top=o.top-u,e.position.left=o.left-c)}})}(jQuery),function(t){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().addBack().each(function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):undefined}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=e.pageX,h=e.pageY;return o>r&&(i=r,r=o,o=i),a>h&&(i=h,h=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:h-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),l=!1;i&&i.element!==s.element[0]&&("touch"===n.tolerance?l=!(i.left>r||o>i.right||i.top>h||a>i.bottom):"fit"===n.tolerance&&(l=i.left>o&&r>i.right&&i.top>a&&h>i.bottom),l?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}function i(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||i(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):undefined}),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),n)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-t(document).scrollTop()<a.scrollSensitivity?r=t(document).scrollTop(t(document).scrollTop()-a.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<a.scrollSensitivity&&(r=t(document).scrollTop(t(document).scrollTop()+a.scrollSpeed)),e.pageX-t(document).scrollLeft()<a.scrollSensitivity?r=t(document).scrollLeft(t(document).scrollLeft()-a.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<a.scrollSensitivity&&(r=t(document).scrollLeft(t(document).scrollLeft()+a.scrollSpeed))),r!==!1&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=this.items[i],n=s.item[0],o=this._intersectsWithPointer(s),o&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;
+this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,h=r+t.height,l=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+l>r&&h>s+l,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&h>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=i&&s,o=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return n?this.floating?a&&"right"===a||"down"===o?2:1:o&&("down"===o?2:1):!1},_intersectsWithSides:function(t){var i=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),s=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&s||"left"===o&&!s:n&&("down"===n&&i||"up"===n&&!i)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,s,n,o,a=[],r=[],h=this._connectWith();if(h&&e)for(i=h.length-1;i>=0;i--)for(n=t(h[i]),s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&r.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(r.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=r.length-1;i>=0;i--)r[i][0].each(function(){a.push(this)});return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,h,l,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=t(d[i]),s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=u[i][0],s=0,l=r.length;l>s;s++)h=t(r[s]),h.data(this.widgetName+"-item",a),c.push({item:h,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,o;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===s?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)}):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_contactContainers:function(s){var n,o,a,r,h,l,c,u,d,p,f=null,g=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&t.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],g=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",s,this._uiHash(this)),this.containers[n].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",s,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(a=1e4,r=null,p=f.floating||i(this.currentItem),h=p?"left":"top",l=p?"width":"height",c=this.positionAbs[h]+this.offset.click[h],o=this.items.length-1;o>=0;o--)t.contains(this.containers[g].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(!p||e(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height))&&(u=this.items[o].item.offset()[h],d=!1,Math.abs(u-c)>Math.abs(u+this.items[o][l]-c)&&(d=!0,u+=this.items[o][l]),a>Math.abs(u-c)&&(a=Math.abs(u-c),r=this.items[o],this.direction=d?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;r?this._rearrange(s,r,null,!0):this._rearrange(s,null,this.containers[g].element,!0),this._trigger("change",s,this._uiHash()),this.containers[g]._trigger("change",s,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",s,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||s.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;s.length>i;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;s.length>i;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(jQuery),function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(t,o){var a,r=o.re.exec(i),h=r&&o.parse(r),l=o.space||"rgba";return h?(a=s[l](h),s[c[l].cache]=a[c[l].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(n,a,r,h){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,h],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof l?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=l(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=l(t),n=s._space(),o=c[n],a=0===this.alpha()?l("transparent"):this,r=a[o.cache]||o.to(a._rgba),h=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],l=s[o],c=u[n.type]||{};null!==l&&(null===a?h[o]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),h[o]=i((l-a)*e+a,n)))}),this[n](h)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(e)._rgba;return l(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),h=Math.min(s,n,o),l=r-h,c=r+h,u=.5*c;return e=h===r?0:s===r?60*(n-o)/l+360:n===r?60*(o-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=u?l/c:l/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,h=n.to,c=n.from;l.fn[s]=function(s){if(h&&!this[a]&&(this[a]=h(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=l(c(d)),n[a]=d,n):l(d)},f(o,function(e,i){l.fn[e]||(l.fn[e]=function(n){var o,a=t.type(n),h="alpha"===e?this._hsla?"hsla":"rgba":s,l=this[h](),c=l[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=l(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(h){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function s(e,i){var s,n,a={};for(s in i)n=i[s],e[s]!==n&&(o[s]||(t.fx.step[s]||!isNaN(parseFloat(n)))&&(a[s]=n));return a}var n=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,o,a,r){var h=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",l=h.children?a.find("*").addBack():a;l=l.map(function(){var e=t(this);return{el:e,start:i(this)}}),o=function(){t.each(n,function(t,i){e[i]&&a[i+"Class"](e[i])})},o(),l=l.map(function(){return this.end=i(this.el[0]),this.diff=s(this.start,this.end),this}),a.attr("class",r),l=l.map(function(){var e=this,i=t.Deferred(),s=t.extend({},h,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,l.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),h.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(s,n,o,a,r){return"boolean"==typeof n||n===e?o?t.effects.animateClass.call(this,n?{add:s}:{remove:s},o,a,r):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:s},n,o,a)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function s(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function n(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var s=0;e.length>s;s++)null!==e[s]&&t.data(i+e[s],t[0].style[e[s]])},restore:function(t,s){var n,o;for(o=0;s.length>o;o++)null!==s[o]&&(n=t.data(i+s[o]),n===e&&(n=""),t.css(s[o],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function e(e){function s(){t.isFunction(o)&&o.call(n[0]),t.isFunction(e)&&e()}var n=t(this),o=i.complete,r=i.mode;(n.is(":hidden")?"hide"===r:"show"===r)?(n[r](),s()):a.call(n[0],i,s)}var i=s.apply(this,arguments),n=i.mode,o=i.queue,a=t.effects.effect[i.effect];return t.fx.off||!a?n?this[n](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):o===!1?this.each(e):this.queue(o||"fx",e)},show:function(t){return function(e){if(n(e))return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(n(e))return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(n(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=s.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}()}(jQuery),function(t){var e=0,i={},s={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",s.height=s.paddingTop=s.paddingBottom=s.borderTopWidth=s.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))
+},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?(this._activate(e),undefined):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e),undefined)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,s=this.options,n=s.heightStyle,o=this.element.parent(),a=this.accordionId="ui-accordion-"+(this.element.attr("id")||++e);this.active=this._findActive(s.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),s=i.attr("id"),n=i.next(),o=n.attr("id");s||(s=a+"-header-"+e,i.attr("id",s)),o||(o=a+"-panel-"+e,n.attr("id",o)),i.attr("aria-controls",o),n.attr("aria-labelledby",s)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(s.event),"fill"===n?(i=o.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(i=0,this.headers.next().each(function(){i=Math.max(i,t(this).css("height","").height())}).height(i))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n[0]===s[0],a=o&&i.collapsible,r=a?t():n.next(),h=s.next(),l={oldHeader:s,oldPanel:h,newHeader:a?t():n,newPanel:r};e.preventDefault(),o&&!i.collapsible||this._trigger("beforeActivate",e,l)===!1||(i.active=a?!1:this.headers.index(n),this.active=o?t():n,this._toggle(l),s.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),o||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-expanded":"false","aria-hidden":"true"}),s.prev().attr("aria-selected","false"),i.length&&s.length?s.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,n){var o,a,r,h=this,l=0,c=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},d=c&&u.down||u,p=function(){h._toggleComplete(n)};return"number"==typeof d&&(r=d),"string"==typeof d&&(a=d),a=a||d.easing||u.easing,r=r||d.duration||u.duration,e.length?t.length?(o=t.show().outerHeight(),e.animate(i,{duration:r,easing:a,step:function(t,e){e.now=Math.round(t)}}),t.hide().animate(s,{duration:r,easing:a,complete:p,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?l+=i.now:"content"!==h.options.heightStyle&&(i.now=Math.round(o-e.outerHeight()-l),l=0)}}),undefined):e.animate(i,r,a,p):t.animate(s,r,a,p)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}})}(jQuery),function(t){var e=0;t.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o?!0:a?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,undefined;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:case o.NUMPAD_ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),undefined;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),undefined):(this._searchTimeout(t),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(t),this._change(t),undefined)}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(s){s.target===e.element[0]||s.target===i||t.contains(i,s.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),undefined;var s=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:s})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value):this.liveRegion.text(s.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):undefined},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,i=++e;return function(s){i===e&&t.__response(s),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<a>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),this.menu.blur(),undefined):(this.menu[t](e),undefined):(this.search(null,e),undefined)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(jQuery),function(t){var e,i,s,n,o="ui-button ui-widget ui-state-default ui-corner-all",a="ui-state-hover ui-state-active ",r="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",h=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},l=function(e){var i=e.name,s=e.form,n=t([]);return i&&(i=i.replace(/'/g,"\\'"),n=s?t(s).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),n};t.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,h),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var a=this,r=this.options,c="checkbox"===this.type||"radio"===this.type,u=c?"":"ui-state-active",d="ui-state-focus";null===r.label&&(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(o).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){r.disabled||this===e&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){r.disabled||t(this).removeClass(u)}).bind("click"+this.eventNamespace,function(t){r.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){a.buttonElement.addClass(d)}).bind("blur"+this.eventNamespace,function(){a.buttonElement.removeClass(d)}),c&&(this.element.bind("change"+this.eventNamespace,function(){n||a.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){r.disabled||(n=!1,i=t.pageX,s=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){r.disabled||(i!==t.pageX||s!==t.pageY)&&(n=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return r.disabled||n?!1:undefined}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled||n)return!1;t(this).addClass("ui-state-active"),a.buttonElement.attr("aria-pressed","true");var e=a.element[0];l(e).not(e).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return r.disabled?!1:(t(this).addClass("ui-state-active"),e=this,a.document.one("mouseup",function(){e=null}),undefined)}).bind("mouseup"+this.eventNamespace,function(){return r.disabled?!1:(t(this).removeClass("ui-state-active"),undefined)}).bind("keydown"+this.eventNamespace,function(e){return r.disabled?!1:((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"),undefined)}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(o+" "+a+" "+r).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(e?this.element.prop("disabled",!0):this.element.prop("disabled",!1),undefined):(this._resetButton(),undefined)},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?l(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return this.options.label&&this.element.val(this.options.label),undefined;var e=this.buttonElement.removeClass(r),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),s=this.options.icons,n=s.primary&&s.secondary,o=[];s.primary||s.secondary?(this.options.text&&o.push("ui-button-text-icon"+(n?"s":s.primary?"-primary":"-secondary")),s.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(o.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):o.push("ui-button-text-only"),e.addClass(o.join(" "))}}),t.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(o.inline?e.parent()[0]:o.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))})}function n(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}t.extend(t.ui,{datepicker:{version:"1.10.3"}});var o,a="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return n(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,o;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),o=this._newInst(t(e),n),o.settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:function(e,i){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,a,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,o,a=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&e.focus(this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,a,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,o,r){var h,l,c,u,d,p=this._dialogInst;return p||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),p=this._dialogInst=this._newInst(this._dialogInput,!1),p.settings={},t.data(this._dialogInput[0],a,p)),n(p.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],a,p),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,a);s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,a),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,a);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,a);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,a)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,s,o){var a,r,h,l,c=this._getInst(i);return 2===arguments.length&&"string"==typeof s?"defaults"===s?t.extend({},t.datepicker._defaults):c?"all"===s?t.extend({},c.settings):this._get(c,s):null:(a=s||{},"string"==typeof s&&(a={},a[s]=o),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(i,!0),h=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),n(c.settings,a),null!==h&&a.dateFormat!==e&&a.minDate===e&&(c.settings.minDate=this._formatDate(c,h)),null!==l&&a.dateFormat!==e&&a.maxDate===e&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in a&&(a.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c)),e)},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,s,n,o=t.datepicker._getInst(e.target),a=!0,r=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv),n[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),i=t.datepicker._get(o,"onSelect"),i?(s=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[s,o])):t.datepicker._hideDatepicker(),!1;
+case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(i){var s,n,o=t.datepicker._getInst(i.target);return t.datepicker._get(o,"constrainInput")?(s=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),n=String.fromCharCode(null==i.charCode?i.keyCode:i.charCode),i.ctrlKey||i.metaKey||" ">n||!s||s.indexOf(n)>-1):e},_doKeyUp:function(e){var i,s=t.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.datepicker._updateDatepicker(s))}catch(n){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,s,o,a,r,h,l;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),s=t.datepicker._get(i,"beforeShow"),o=s?s.apply(e,[e,i]):{},o!==!1&&(n(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),a=!1,t(e).parents().each(function(){return a|="fixed"===t(this).css("position"),!a}),r={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),r=t.datepicker._checkOffset(i,r,a),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":a?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),i.inline||(h=t.datepicker._get(i,"showAnim"),l=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[h]?i.dpDiv.show(h,t.datepicker._get(i,"showOptions"),l):i.dpDiv[h||"show"](h?l:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,o=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,s=this._getNumberOfMonths(e),n=s[1],a=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+o>l&&l>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,r=this._curInst;!r||e&&r!==t.data(e,a)||this._datepickerShowing&&(i=this._get(r,"showAnim"),s=this._get(r,"duration"),n=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[i]||t.effects[i])?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),s,n):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(r,"onClose"),o&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(o).each(function(){t(this).val(n)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(i,s,n){if(null==i||null==s)throw"Invalid arguments";if(s="object"==typeof s?""+s:s+"",""===s)return null;var o,a,r,h,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,g=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,v=-1,_=-1,b=-1,y=!1,w=function(t){var e=i.length>o+1&&i.charAt(o+1)===t;return e&&o++,e},k=function(t){var e=w(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n=RegExp("^\\d{1,"+i+"}"),o=s.substring(l).match(n);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},x=function(i,n,o){var a=-1,r=t.map(w(i)?o:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,i){var n=i[1];return s.substr(l,n.length).toLowerCase()===n.toLowerCase()?(a=i[0],l+=n.length,!1):e}),-1!==a)return a+1;throw"Unknown name at position "+l},D=function(){if(s.charAt(l)!==i.charAt(o))throw"Unexpected literal at position "+l;l++};for(o=0;i.length>o;o++)if(y)"'"!==i.charAt(o)||w("'")?D():y=!1;else switch(i.charAt(o)){case"d":_=k("d");break;case"D":x("D",d,p);break;case"o":b=k("o");break;case"m":v=k("m");break;case"M":v=x("M",f,g);break;case"y":m=k("y");break;case"@":h=new Date(k("@")),m=h.getFullYear(),v=h.getMonth()+1,_=h.getDate();break;case"!":h=new Date((k("!")-this._ticksTo1970)/1e4),m=h.getFullYear(),v=h.getMonth()+1,_=h.getDate();break;case"'":w("'")?D():y=!0;break;default:D()}if(s.length>l&&(r=s.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=(new Date).getFullYear():100>m&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=m?0:-100)),b>-1)for(v=1,_=b;;){if(a=this._getDaysInMonth(m,v-1),a>=_)break;v++,_-=a}if(h=this._daylightSavingAdjust(new Date(m,v-1,_)),h.getFullYear()!==m||h.getMonth()+1!==v||h.getDate()!==_)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,h=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},l=function(t,e,i){var s=""+e;if(h(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return h(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||h("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=l("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,o);break;case"o":u+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=l("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,r);break;case"y":u+=h("y")?e.getFullYear():(10>e.getYear()%100?"0":"")+e.getYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(r){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),a=n.getMonth(),r=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a))}l=h.exec(i)}return new Date(o,a,r)},a=null==i||""===i?s:"string"==typeof i?o(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return a=a&&"Invalid Date"==""+a?s:a,a&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(s,-i,"M")},next:function(){t.datepicker._adjustDate(s,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(s)},selectDay:function(){return t.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,h,l,c,u,d,p,f,g,m,v,_,b,y,w,k,x,D,C,I,P,T,M,S,z,A,H,E,N,W,O,F,R,L=new Date,j=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth(),L.getDate())),Y=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),K=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),q=this._get(t,"showCurrentAtPos"),Q=this._get(t,"stepMonths"),X=1!==U[0]||1!==U[1],$=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Z=t.drawMonth-q,te=t.drawYear;if(0>Z&&(Z+=12,te--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-U[0]*U[1]+1,J.getDate())),e=G&&G>e?G:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i=K?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-Q,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=K?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+Q,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?$:j,a=K?this.formatDate(a,r,this._getFormatConfig(t)):a,h=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",l=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+(this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(Y?"":h)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),_=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;U[0]>k;k++){for(x="",this.maxRows=4,D=0;U[1]>D;D++){if(C=this._daylightSavingAdjust(new Date(te,Z,t.selectedDay)),I=" ui-corner-all",P="",X){if(P+="<div class='ui-datepicker-group",U[1]>1)switch(D){case 0:P+=" ui-datepicker-group-first",I=" ui-corner-"+(Y?"right":"left");break;case U[1]-1:P+=" ui-datepicker-group-last",I=" ui-corner-"+(Y?"left":"right");break;default:P+=" ui-datepicker-group-middle",I=""}P+="'>"}for(P+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===k?Y?o:s:"")+(/all|right/.test(I)&&0===k?Y?s:o:"")+this._generateMonthYearHeader(t,Z,te,G,J,k>0||D>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",T=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)M=(w+c)%7,T+="<th"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[M]+"'>"+p[M]+"</span></th>";for(P+=T+"</tr></thead><tbody>",S=this._getDaysInMonth(te,Z),te===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,S)),z=(this._getFirstDayOfMonth(te,Z)-c+7)%7,A=Math.ceil((z+S)/7),H=X?this.maxRows>A?this.maxRows:A:A,this.maxRows=H,E=this._daylightSavingAdjust(new Date(te,Z,1-z)),N=0;H>N;N++){for(P+="<tr>",W=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(E)+"</td>":"",w=0;7>w;w++)O=m?m.apply(t.input?t.input[0]:null,[E]):[!0,""],F=E.getMonth()!==Z,R=F&&!_||!O[0]||G&&G>E||J&&E>J,W+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(E.getTime()===C.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===E.getTime()&&b.getTime()===C.getTime()?" "+this._dayOverClass:"")+(R?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!v?"":" "+O[1]+(E.getTime()===$.getTime()?" "+this._currentClass:"")+(E.getTime()===j.getTime()?" ui-datepicker-today":""))+"'"+(F&&!v||!O[2]?"":" title='"+O[2].replace(/'/g,"&#39;")+"'")+(R?"":" data-handler='selectDay' data-event='click' data-month='"+E.getMonth()+"' data-year='"+E.getFullYear()+"'")+">"+(F&&!v?"&#xa0;":R?"<span class='ui-state-default'>"+E.getDate()+"</span>":"<a class='ui-state-default"+(E.getTime()===j.getTime()?" ui-state-highlight":"")+(E.getTime()===$.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+E.getDate()+"</a>")+"</td>",E.setDate(E.getDate()+1),E=this._daylightSavingAdjust(E);P+=W+"</tr>"}Z++,Z>11&&(Z=0,te++),P+="</tbody></table>"+(X?"</div>"+(U[0]>0&&D===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=P}y+=x}return y+=l,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var h,l,c,u,d,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!h||c>=s.getMonth())&&(!l||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(_||(b+=y+(!o&&m&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),_&&(b+=(!o&&m&&v?"":"&#xa0;")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.drawYear+("Y"===i?e:0),n=t.drawMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&i>e?i:e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,s+(0>e?e:n[0]*n[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,s,n=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,r=null,h=this._get(t,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),a=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||e.getTime()>=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.3"}(jQuery),function(t){var e={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),undefined):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._trigger("open"),undefined)},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),undefined;if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(n.focus(1),e.preventDefault()):(s.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this.uiDialog.removeClass("ui-dialog-buttons"),undefined):(t.each(i,function(i,s){var n,o;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,s.click=function(){n.apply(e.element[0],arguments)},o={icons:s.icons,text:s.showText},delete s.icons,delete s.showText,t("<button></button>",s).button(o).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),undefined)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,e(n))},drag:function(t,s){i._trigger("drag",t,e(s))},stop:function(n,o){s.position=[o.position.left-i.document.scrollLeft(),o.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}
+}var i=this,s=this.options,n=s.resizable,o=this.uiDialog.css("position"),a="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:a,start:function(s,n){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,e(n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,o){s.height=t(this).height(),s.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(o))}}).css("position",o)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(s){var n=this,o=!1,a={};t.each(s,function(t,s){n._setOption(t,s),t in e&&(o=!0),t in i&&(a[t]=s)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(t,e){var i,s,n=this.uiDialog;"dialogClass"===t&&n.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(i=n.is(":data(ui-draggable)"),i&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(s=n.is(":data(ui-resizable)"),s&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||e===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(s){e._allowInteraction(s)||(s.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,s=[],n=[0,0];i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(s=i.split?i.split(" "):[i[0],i[1]],1===s.length&&(s[1]=s[0]),t.each(["left","top"],function(t,e){+s[t]===s[t]&&(n[t]=s[t],s[t]=e)}),i={my:s[0]+(0>n[0]?n[0]:"+"+n[0])+" "+s[1]+(0>n[1]?n[1]:"+"+n[1]),at:s.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(jQuery),function(t){var e=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(s,n){var o,a,r,h=t(this),l=["position","top","bottom","left","right","height","width"],c=t.effects.setMode(h,s.mode||"hide"),u=s.direction||"up",d=e.test(u),p=d?"height":"width",f=d?"top":"left",g=i.test(u),m={},v="show"===c;h.parent().is(".ui-effects-wrapper")?t.effects.save(h.parent(),l):t.effects.save(h,l),h.show(),o=t.effects.createWrapper(h).css({overflow:"hidden"}),a=o[p](),r=parseFloat(o.css(f))||0,m[p]=v?a:0,g||(h.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),m[f]=v?r:a+r),v&&(o.css(p,0),g||o.css(f,r+a)),o.animate(m,{duration:s.duration,easing:s.easing,queue:!1,complete:function(){"hide"===c&&h.hide(),t.effects.restore(h,l),t.effects.removeWrapper(h),n()}})}}(jQuery),function(t){t.effects.effect.bounce=function(e,i){var s,n,o,a=t(this),r=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(a,e.mode||"effect"),l="hide"===h,c="show"===h,u=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(c||l?1:0),g=e.duration/f,m=e.easing,v="up"===u||"down"===u?"top":"left",_="up"===u||"left"===u,b=a.queue(),y=b.length;for((c||l)&&r.push("opacity"),t.effects.save(a,r),a.show(),t.effects.createWrapper(a),d||(d=a["top"===v?"outerHeight":"outerWidth"]()/3),c&&(o={opacity:1},o[v]=0,a.css("opacity",0).css(v,_?2*-d:2*d).animate(o,g,m)),l&&(d/=Math.pow(2,p-1)),o={},o[v]=0,s=0;p>s;s++)n={},n[v]=(_?"-=":"+=")+d,a.animate(n,g,m).animate(o,g,m),d=l?2*d:d/2;l&&(n={opacity:0},n[v]=(_?"-=":"+=")+d,a.animate(n,g,m)),a.queue(function(){l&&a.hide(),t.effects.restore(a,r),t.effects.removeWrapper(a),i()}),y>1&&b.splice.apply(b,[1,0].concat(b.splice(y,f+1))),a.dequeue()}}(jQuery),function(t){t.effects.effect.clip=function(e,i){var s,n,o,a=t(this),r=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(a,e.mode||"hide"),l="show"===h,c=e.direction||"vertical",u="vertical"===c,d=u?"height":"width",p=u?"top":"left",f={};t.effects.save(a,r),a.show(),s=t.effects.createWrapper(a).css({overflow:"hidden"}),n="IMG"===a[0].tagName?s:a,o=n[d](),l&&(n.css(d,0),n.css(p,o/2)),f[d]=l?o:0,f[p]=l?0:o/2,n.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||a.hide(),t.effects.restore(a,r),t.effects.removeWrapper(a),i()}})}}(jQuery),function(t){t.effects.effect.drop=function(e,i){var s,n=t(this),o=["position","top","bottom","left","right","opacity","height","width"],a=t.effects.setMode(n,e.mode||"hide"),r="show"===a,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h?"pos":"neg",u={opacity:r?1:0};t.effects.save(n,o),n.show(),t.effects.createWrapper(n),s=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===c?-s:s),u[l]=(r?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+s,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&n.hide(),t.effects.restore(n,o),t.effects.removeWrapper(n),i()}})}}(jQuery),function(t){t.effects.effect.explode=function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),g||p.hide(),i()}var o,a,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=t.effects.setMode(p,e.mode||"hide"),g="show"===f,m=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),_=Math.ceil(p.outerHeight()/u),b=[];for(o=0;u>o;o++)for(h=m.top+o*_,c=o-(u-1)/2,a=0;d>a;a++)r=m.left+a*v,l=a-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*v,top:-o*_}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:_,left:r+(g?l*v:0),top:h+(g?c*_:0),opacity:g?0:1}).animate({left:r+(g?0:l*v),top:h+(g?0:c*_),opacity:g?1:0},e.duration||500,e.easing,s)}}(jQuery),function(t){t.effects.effect.fade=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(jQuery),function(t){t.effects.effect.fold=function(e,i){var s,n,o=t(this),a=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(o,e.mode||"hide"),h="show"===r,l="hide"===r,c=e.size||15,u=/([0-9]+)%/.exec(c),d=!!e.horizFirst,p=h!==d,f=p?["width","height"]:["height","width"],g=e.duration/2,m={},v={};t.effects.save(o,a),o.show(),s=t.effects.createWrapper(o).css({overflow:"hidden"}),n=p?[s.width(),s.height()]:[s.height(),s.width()],u&&(c=parseInt(u[1],10)/100*n[l?0:1]),h&&s.css(d?{height:0,width:c}:{height:c,width:0}),m[f[0]]=h?n[0]:c,v[f[1]]=h?n[1]:0,s.animate(m,g,e.easing).animate(v,g,e.easing,function(){l&&o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()})}}(jQuery),function(t){t.effects.effect.highlight=function(e,i){var s=t(this),n=["backgroundImage","backgroundColor","opacity"],o=t.effects.setMode(s,e.mode||"show"),a={backgroundColor:s.css("backgroundColor")};"hide"===o&&(a.opacity=0),t.effects.save(s,n),s.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&s.hide(),t.effects.restore(s,n),i()}})}}(jQuery),function(t){t.effects.effect.pulsate=function(e,i){var s,n=t(this),o=t.effects.setMode(n,e.mode||"show"),a="show"===o,r="hide"===o,h=a||"hide"===o,l=2*(e.times||5)+(h?1:0),c=e.duration/l,u=0,d=n.queue(),p=d.length;for((a||!n.is(":visible"))&&(n.css("opacity",0).show(),u=1),s=1;l>s;s++)n.animate({opacity:u},c,e.easing),u=1-u;n.animate({opacity:u},c,e.easing),n.queue(function(){r&&n.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,l+1))),n.dequeue()}}(jQuery),function(t){t.effects.effect.puff=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"hide"),o="hide"===n,a=parseInt(e.percent,10)||150,r=a/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:o?a:100,from:o?h:{height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h.outerWidth*r}}),s.effect(e)},t.effects.effect.scale=function(e,i){var s=t(this),n=t.extend(!0,{},e),o=t.effects.setMode(s,e.mode||"effect"),a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===o?0:100),r=e.direction||"both",h=e.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},c={y:"horizontal"!==r?a/100:1,x:"vertical"!==r?a/100:1};n.effect="size",n.queue=!1,n.complete=i,"effect"!==o&&(n.origin=h||["middle","center"],n.restore=!0),n.from=e.from||("show"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*c.y,width:l.width*c.x,outerHeight:l.outerHeight*c.y,outerWidth:l.outerWidth*c.x},n.fade&&("show"===o&&(n.from.opacity=0,n.to.opacity=1),"hide"===o&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},t.effects.effect.size=function(e,i){var s,n,o,a=t(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(a,e.mode||"effect"),f=e.restore||"effect"!==p,g=e.scale||"both",m=e.origin||["middle","center"],v=a.css("position"),_=f?r:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&a.show(),s={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===e.mode&&"show"===p?(a.from=e.to||b,a.to=e.from||s):(a.from=e.from||("show"===p?b:s),a.to=e.to||("hide"===p?b:s)),o={from:{y:a.from.height/s.height,x:a.from.width/s.width},to:{y:a.to.height/s.height,x:a.to.width/s.width}},("box"===g||"both"===g)&&(o.from.y!==o.to.y&&(_=_.concat(u),a.from=t.effects.setTransition(a,u,o.from.y,a.from),a.to=t.effects.setTransition(a,u,o.to.y,a.to)),o.from.x!==o.to.x&&(_=_.concat(d),a.from=t.effects.setTransition(a,d,o.from.x,a.from),a.to=t.effects.setTransition(a,d,o.to.x,a.to))),("content"===g||"both"===g)&&o.from.y!==o.to.y&&(_=_.concat(c).concat(l),a.from=t.effects.setTransition(a,c,o.from.y,a.from),a.to=t.effects.setTransition(a,c,o.to.y,a.to)),t.effects.save(a,_),a.show(),t.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),m&&(n=t.effects.getBaseline(m,s),a.from.top=(s.outerHeight-a.outerHeight())*n.y,a.from.left=(s.outerWidth-a.outerWidth())*n.x,a.to.top=(s.outerHeight-a.to.outerHeight)*n.y,a.to.left=(s.outerWidth-a.to.outerWidth)*n.x),a.css(a.from),("content"===g||"both"===g)&&(u=u.concat(["marginTop","marginBottom"]).concat(c),d=d.concat(["marginLeft","marginRight"]),l=r.concat(u).concat(d),a.find("*[width]").each(function(){var i=t(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,l),i.from={height:s.height*o.from.y,width:s.width*o.from.x,outerHeight:s.outerHeight*o.from.y,outerWidth:s.outerWidth*o.from.x},i.to={height:s.height*o.to.y,width:s.width*o.to.x,outerHeight:s.height*o.to.y,outerWidth:s.width*o.to.x},o.from.y!==o.to.y&&(i.from=t.effects.setTransition(i,u,o.from.y,i.from),i.to=t.effects.setTransition(i,u,o.to.y,i.to)),o.from.x!==o.to.x&&(i.from=t.effects.setTransition(i,d,o.from.x,i.from),i.to=t.effects.setTransition(i,d,o.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,l)})})),a.animate(a.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===p&&a.hide(),t.effects.restore(a,_),f||("static"===v?a.css({position:"relative",top:a.to.top,left:a.to.left}):t.each(["top","left"],function(t,e){a.css(e,function(e,i){var s=parseInt(i,10),n=t?a.to.left:a.to.top;return"auto"===i?n+"px":s+n+"px"})})),t.effects.removeWrapper(a),i()}})}}(jQuery),function(t){t.effects.effect.shake=function(e,i){var s,n=t(this),o=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(n,e.mode||"effect"),r=e.direction||"left",h=e.distance||20,l=e.times||3,c=2*l+1,u=Math.round(e.duration/c),d="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},g={},m={},v=n.queue(),_=v.length;for(t.effects.save(n,o),n.show(),t.effects.createWrapper(n),f[d]=(p?"-=":"+=")+h,g[d]=(p?"+=":"-=")+2*h,m[d]=(p?"-=":"+=")+2*h,n.animate(f,u,e.easing),s=1;l>s;s++)n.animate(g,u,e.easing).animate(m,u,e.easing);n.animate(g,u,e.easing).animate(f,u/2,e.easing).queue(function(){"hide"===a&&n.hide(),t.effects.restore(n,o),t.effects.removeWrapper(n),i()}),_>1&&v.splice.apply(v,[1,0].concat(v.splice(_,c+1))),n.dequeue()}}(jQuery),function(t){t.effects.effect.slide=function(e,i){var s,n=t(this),o=["position","top","bottom","left","right","width","height"],a=t.effects.setMode(n,e.mode||"show"),r="show"===a,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h,u={};t.effects.save(n,o),n.show(),s=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(n).css({overflow:"hidden"}),r&&n.css(l,c?isNaN(s)?"-"+s:-s:s),u[l]=(r?c?"+=":"-=":c?"-=":"+=")+s,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&n.hide(),t.effects.restore(n,o),t.effects.removeWrapper(n),i()}})}}(jQuery),function(t){t.effects.effect.transfer=function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,h=o?a.scrollLeft():0,l=n.offset(),c={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:u.top-r,left:u.left-h,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),i()})}}(jQuery),function(t){t.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,n,o,a,r,h=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:h=!1,n=this.previousFilter||"",o=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),o===n?a=!0:o=n+o,r=RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())}),s=a&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s,s.length||(o=String.fromCharCode(e.keyCode),r=RegExp("^"+i(o),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())})),s.length?(this.focus(e,s),s.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,s=this.element.find(this.options.menus);s.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),s=e.prev("a"),n=t("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);s.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",s.attr("id"))}),e=s.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.height(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(e),undefined)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(e),undefined)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var o,a=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(o!==e)return o;var i,s,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=n.children()[0];return t("body").append(n),i=a.offsetWidth,n.css("overflow","scroll"),s=a.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),o=i-s},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var o,p,g,m,v,_,b=t(e.of),y=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(y),k=(e.collision||"flip").split(" "),x={};return _=n(b),b[0].preventDefault&&(e.at="left top"),p=_.width,g=_.height,m=_.offset,v=t.extend({},m),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):c.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[1]=c.test(s[1])?s[1]:"center",t=u.exec(s[0]),i=u.exec(s[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(s[0])[0],d.exec(s[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=g:"center"===e.at[1]&&(v.top+=g/2),o=i(x.at,p,g),v.left+=o[0],v.top+=o[1],this.each(function(){var n,l,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=s(this,"marginLeft"),_=s(this,"marginTop"),D=u+f+s(this,"marginRight")+w.width,C=d+_+s(this,"marginBottom")+w.height,I=t.extend({},v),P=i(x.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?I.left-=u:"center"===e.my[0]&&(I.left-=u/2),"bottom"===e.my[1]?I.top-=d:"center"===e.my[1]&&(I.top-=d/2),I.left+=P[0],I.top+=P[1],t.support.offsetFractions||(I.left=h(I.left),I.top=h(I.top)),n={marginLeft:f,marginTop:_},t.each(["left","top"],function(i,s){t.ui.position[k[i]]&&t.ui.position[k[i]][s](I,{targetWidth:p,targetHeight:g,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:D,collisionHeight:C,offset:[o[0]+P[0],o[1]+P[1]],my:e.my,at:e.at,within:y,elem:c})}),e.using&&(l=function(t){var i=m.left-I.left,s=i+p-u,n=m.top-I.top,o=n+g-d,h={target:{element:b,left:m.left,top:m.top,width:p,height:g},element:{element:c,left:I.left,top:I.top,width:u,height:d},horizontal:0>s?"left":i>0?"right":"center",vertical:0>o?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(h.horizontal="center"),d>g&&g>r(n+o)&&(h.vertical="middle"),h.important=a(r(i),r(s))>a(r(n),r(o))?"horizontal":"vertical",e.using.call(this,t,h)}),c.offset(t.extend(I,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,o=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-o-n;e.collisionWidth>o?h>0&&0>=l?(i=t.left+h+e.collisionWidth-o-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+o-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=a(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,o=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-o-n;e.collisionHeight>o?h>0&&0>=l?(i=t.top+h+e.collisionHeight-o-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+o-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=a(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,a=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-a-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-a-o,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,a=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-a-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-a-o,t.top+p+f+g>c&&(0>s||r(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-h,t.top+p+f+g>u&&(i>0||u>r(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,o,a=document.getElementsByTagName("body")[0],r=document.createElement("div");e=document.createElement(a?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(o in s)e.style[o]=s[o];e.appendChild(r),i=a||document.documentElement,i.insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t,e){t.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()
+},value:function(t){return t===e?this.options.value:(this.options.value=this._constrainedValue(t),this._refreshValue(),e)},_constrainedValue:function(t){return t===e&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}})}(jQuery),function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",a=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):this.range=t([])},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,h,l,c=this,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._start(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,o.addClass("ui-state-active").focus(),h=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-h.left-o.width()/2,top:e.pageY-h.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var s,n,o;this.options.values&&this.options.values.length?(s=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&i>s||1===e&&s>i)&&(i=s),i!==this.values(e)&&(n=this.values(),n[e]=i,o=this._trigger("slide",t,{handle:this.handles[e],value:i,values:n}),s=this.values(e?0:1),o!==!1&&this.values(e,i,!0))):i!==this.value()&&(o=this._trigger("slide",t,{handle:this.handles[e],value:i}),o!==!1&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),undefined):this._value()},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),undefined;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;n>s;s+=1)this._change(null,s);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,s,n,o,a=this.options.range,r=this.options,h=this,l=this._animateOff?!1:r.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())),c["horizontal"===h.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[l?"animate":"css"](c,r.animate),h.options.range===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?100*((s-n)/(o-n)):0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:r.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:r.animate}))},_handleEvents:{keydown:function(i){var s,n,o,a,r=t(i.target).data("ui-slider-handle-index");switch(i.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(i.target).addClass("ui-state-active"),s=this._start(i,r),s===!1))return}switch(a=this.options.step,n=o=this.options.values&&this.options.values.length?this.values(r):this.value(),i.keyCode){case t.ui.keyCode.HOME:o=this._valueMin();break;case t.ui.keyCode.END:o=this._valueMax();break;case t.ui.keyCode.PAGE_UP:o=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:o=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;o=this._trimAlignValue(n+a);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;o=this._trimAlignValue(n-a)}this._slide(i,r,o)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})}(jQuery),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);void 0!==n&&n.length&&(e[s]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,s=t.ui.keyCode;switch(e.keyCode){case s.UP:return this._repeat(null,1,e),!0;case s.DOWN:return this._repeat(null,-1,e),!0;case s.PAGE_UP:return this._repeat(null,i.page,e),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span>"+"</a>"+"<a class='ui-spinner-button ui-spinner-down ui-corner-br'>"+"<span class='ui-icon "+this.options.icons.down+"'>&#9660;</span>"+"</a>"},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,s=this.options;return e=null!==s.min?s.min:0,i=t-e,i=Math.round(i/s.step)*s.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==s.max&&t>s.max?s.max:null!==s.min&&s.min>t?s.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,this.element.val(this._format(i)),void 0}("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?(e(this._value).call(this,t),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(jQuery),function(t,e){function i(){return++n}function s(t){return t.hash.length>1&&decodeURIComponent(t.href.replace(o,""))===decodeURIComponent(location.href.replace(o,""))}var n=0,o=/#.*$/;t.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var i=this.options.active,s=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(s,o){return t(o).attr("aria-controls")===n?(i=s,!1):e}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=this.tabs.length?0:!1)),i!==!1&&(i=this.tabs.index(this.tabs.eq(i)),-1===i&&(i=s?!1:0)),!s&&i===!1&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(i){var s=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(s),o=!0;if(!this._handlePageNav(i)){switch(i.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return i.preventDefault(),clearTimeout(this.activating),this._activate(n),e;case t.ui.keyCode.ENTER:return i.preventDefault(),clearTimeout(this.activating),this._activate(n===this.options.active?!1:n),e;default:return}i.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),i.ctrlKey||(s.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(i){return i.altKey&&i.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):i.altKey&&i.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):e},_findNextTab:function(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-1;-1!==t.inArray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,i){return"active"===t?(this._activate(i),e):"disabled"===t?(this._setupDisabled(i),e):(this._super(t,i),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",i),i||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(i),"heightStyle"===t&&this._setupHeightStyle(i),e)},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,n){var o,a,r,h=t(n).uniqueId().attr("id"),l=t(n).closest("li"),c=l.attr("aria-controls");s(n)?(o=n.hash,a=e.element.find(e._sanitizeSelector(o))):(r=e._tabId(l),o="#"+r,a=e.element.find(o),a.length||(a=e._createPanel(r),a.insertAfter(e.panels[i-1]||e.tablist)),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":o.substring(1),"aria-labelledby":h}),a.attr("aria-labelledby",h)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,s=0;i=this.tabs[s];s++)e===!0||-1!==t.inArray(s,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n.closest("li"),a=o[0]===s[0],r=a&&i.collapsible,h=r?t():this._getPanelForTab(o),l=s.length?this._getPanelForTab(s):t(),c={oldTab:s,oldPanel:l,newTab:r?t():o,newPanel:h};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1||(i.active=r?!1:this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),l.length||h.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function s(){o.running=!1,o._trigger("activate",e,i)}function n(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),n()),r.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),a.length&&r.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,s=this._findActive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var s=this.options.disabled;s!==!1&&(i===e?s=!1:(i=this._getIndex(i),s=t.isArray(s)?t.map(s,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(s))},disable:function(i){var s=this.options.disabled;if(s!==!0){if(i===e)s=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,s))return;s=t.isArray(s)?t.merge([i],s).sort():[i]}this._setupDisabled(s)}},load:function(e,i){e=this._getIndex(e);var n=this,o=this.tabs.eq(e),a=o.find(".ui-tabs-anchor"),r=this._getPanelForTab(o),h={tab:o,panel:r};s(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,i,h)),this.xhr&&"canceled"!==this.xhr.statusText&&(o.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){r.html(t),n._trigger("load",i,h)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&n.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{url:e.attr("href"),beforeSend:function(e,o){return n._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},s))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(jQuery),function(t){function e(e,i){var s=(e.attr("aria-describedby")||"").split(/\s+/);s.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(s.join(" ")))}function i(e){var i=e.data("ui-tooltip-id"),s=(e.attr("aria-describedby")||"").split(/\s+/),n=t.inArray(i,s);-1!==n&&s.splice(n,1),e.removeData("ui-tooltip-id"),s=t.trim(s.join(" ")),s?e.attr("aria-describedby",s):e.removeAttr("aria-describedby")}var s=0;t.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,i){var s=this;return"disabled"===e?(this[i?"_disable":"_enable"](),this.options[e]=i,void 0):(this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){s._updateContent(e)}),void 0)},_disable:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur");n.target=n.currentTarget=s[0],e.close(n,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,s=t(e?e.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&s.parents().each(function(){var e,s=t(this);s.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._updateContent(s,e))},_updateContent:function(t,e){var i,s=this.options.content,n=this,o=e?e.type:null;return"string"==typeof s?this._open(e,t,s):(i=s.call(t[0],function(i){t.data("ui-tooltip-open")&&n._delay(function(){e&&(e.type=o),this._open(e,t,i)})}),i&&this._open(e,t,i),void 0)},_open:function(i,s,n){function o(t){l.of=t,a.is(":hidden")||a.position(l)}var a,r,h,l=t.extend({},this.options.position);
+if(n){if(a=this._find(s),a.length)return a.find(".ui-tooltip-content").html(n),void 0;s.is("[title]")&&(i&&"mouseover"===i.type?s.attr("title",""):s.removeAttr("title")),a=this._tooltip(s),e(s,a.attr("id")),a.find(".ui-tooltip-content").html(n),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:o}),o(i)):a.position(t.extend({of:s},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){a.is(":visible")&&(o(l.of),clearInterval(h))},t.fx.interval)),this._trigger("open",i,{tooltip:a}),r={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=s[0],this.close(i,!0)}},remove:function(){this._removeTooltip(a)}},i&&"mouseover"!==i.type||(r.mouseleave="close"),i&&"focusin"!==i.type||(r.focusout="close"),this._on(!0,s,r)}},close:function(e){var s=this,n=t(e?e.currentTarget:this.element),o=this._find(n);this.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&n.attr("title",n.data("ui-tooltip-title")),i(n),o.stop(!0),this._hide(o,this.options.hide,function(){s._removeTooltip(t(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete s.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:o}),this.closing=!1)},_tooltip:function(e){var i="ui-tooltip-"+s++,n=t("<div>").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("<div>").addClass("ui-tooltip-content").appendTo(n),n.appendTo(this.document[0].body),this.tooltips[i]=e,n},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur");n.target=n.currentTarget=s[0],e.close(n,!0),t("#"+i).remove(),s.data("ui-tooltip-title")&&(s.attr("title",s.data("ui-tooltip-title")),s.removeData("ui-tooltip-title"))})}})}(jQuery); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/changelog.txt b/mayor-orig/www/skin/classic/share/javascript/koschtit/changelog.txt
new file mode 100644
index 00000000..cf9c8772
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/changelog.txt
@@ -0,0 +1,81 @@
+
+ MaYoR változat - released 2012-11-04
+ ki_config/ki_setup: szövegek magyar fordítása
+
+ ---------
+ KoschtIT Image Gallery v3.1b released on 10/05/2012
+ by Konstantin Tabere
+
+ Changelog
+ ---------
+
+ Fixed: Problem with manual display order of picture gets lost ( /thread-422.html )
+
+//---------------------------------------------------------------------------------------
+
+ Old Releases:
+
+ v3.1
+ - Added: Drag'n'drop in the admin panel for changing position of images in gallery
+ - Added: Deleting images animation
+ - Added: Tooltips in admin panel
+ - Added: Link to documentation in admin panel
+ - Added: New parameter $show_explorer for enabling/disabling gallery explorer
+ - Added: "Manage folder"-section in admin panel for easy managing of gallery folders
+ - Added: "Label Images" in admin menu with tooltips for new users
+ - Added: Email notifications if somebody comments on an image ($admin_mail)
+ - Added: Many new parameters ($show_explorer, $th_shadow, $vcomm..., $admin_mail...)
+ - Added: Language support for flipped images ($vcomm - params)
+ - Added: Viewer comments moderation ($moderate_posts - parameter)
+ - Added: New animation when a new user comment is made
+ - Added: User account (?user=user) with image uploading rights
+ - Changed: Redesigned viewer comments section
+ - Changed: Admin password is saved and transmitted only in md5-format now
+ - Changed: Preview pictures stay hidden if there is not enough browser window width (4:3 format)
+ - Changed: Admin menu slides out in "Settings" and "Manage folders" for not blocking the content behind it
+ - Fixed: Some smaller bugs
+ - Removed: AddThis Social Bookmarks
+
+ v3.0
+ - Added: "Deleting Images" in admin panel
+ - Added: Some nicer image borders and shadows
+ - Added: AddThis social bookmarking service for sharing
+ - Added: Default values for missing parameters
+ - Added: Changable maximum image size on image upload
+ - Added: Addable watermarks on image upload
+ - Changed: Navigation icons below thumbnails don't consume space if hidden
+ - Changed: Looks of admin pages
+ - Changed: New default design
+ - Changed: Navigation icons
+ - Fixed: Split()-function deprecated warnings since PHP5.3
+ - Fixed: Some smaller bugs ...
+
+ Last v2.X update:
+
+ v2.6
+ - Added: Some more CSS Shadows
+ - Added: Caching of folder scan results: much faster folder scans possible
+ - Added: Enable/Disable - settings in the admin-panel
+ - Added: Admin can delete viewer comments
+ - Added: Picture uploading through admin-panel
+ - Added: New parameter ($image_nav_always) in "ki_setup.php"
+ - Changed: No-JavaScript gallery reworked: looks and feels almost like JS-enabled gallery now
+ - Changed: Position of "Close"-button when $nav_style = 2
+ - Fixed: Navigation icons for displayed images sometimes not centered
+ - Fixed: Navigation icons sometimes in vertical order instead of horicontal
+ - Fixed: Images didn't show up cause of corrupted meta-information (fix in ki_makepic.php)
+ - Fixed: Loading animation stops
+ - Fixed: "ERROR: ... needs too much memory" on some server configurations ( /forum/thread-120.html )
+ - Fixed: Thumbs getting blurred on mouseover
+ - Fixed: Some smaller bugs ...
+ - Removed: Icon for "back to Website" (not needed anymore)
+
+ Last v1.X update:
+
+ v1.82
+ - Fixed: Comment was visible while closing slideshow
+ - Fixed: Problems with different charsets e.g. "default_charset=iso-8859-1"
+ - Fixed: Galleries don't expand page on startup anymore
+ - Fixed: Some security issues
+ - Added: HTML viewing mode when JavaScript disabled
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/custom b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/custom
new file mode 100644
index 00000000..860c9b2e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/custom
@@ -0,0 +1 @@
+kos-epulet_iskolahomlokzat1.jpg=0.14388489208633093|kos-epulet_iskolahomlokzat1-k.jpg=0.2805755395683453 \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_arrow.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_arrow.php
new file mode 100644
index 00000000..7f410652
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_arrow.php
@@ -0,0 +1,101 @@
+<?php
+if(!isset($_GET['ot']))
+ exit();
+else
+ $ot = $_GET['ot'];
+
+
+function imageBoldLine($resource, $x1, $y1, $x2, $y2, $Color, $BoldNess=2)
+{
+ $center = round($BoldNess/2);
+ for($i=0;$i<$BoldNess;$i++)
+ {
+ $a = $center-$i; if($a<0){$a -= $a;}
+ for($j=0;$j<$BoldNess;$j++)
+ {
+ $b = $center-$j; if($b<0){$b -= $b;}
+ $c = sqrt($a*$a + $b*$b);
+ if($c<=$BoldNess)
+ {
+ imageline($resource, $x1 +$i, $y1+$j, $x2 +$i, $y2+$j, $Color);
+ }
+ }
+ }
+}
+
+
+
+
+
+include_once("../ki_config/ki_setup.php");
+
+if($ot == 0){
+ $polygon = array(25,25, 5,15, 25,5);
+ $polygon2 = array(26,25, 5,15, 26,5);
+}elseif($ot == 1){
+ $polygon = array(25,25, 15,5, 5,25);
+ $polygon2 = array(25,26, 15,5, 5,26);
+}elseif($ot == 2){
+ $polygon = array(5,25, 25,15, 5,5);
+ $polygon2 = array(4,25, 25,15, 4,5);
+}else{
+ $polygon = array(25,5, 15,25, 5,5);
+ $polygon2 = array(25,4, 15,25, 5,4);
+}
+
+
+header("Content-type: image/png"); //Picture Format
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [7-9]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser === "ie6"){
+ $bild = imagecreatetruecolor(30, 30);
+} else {
+ $bild = imagecreate(30, 30);
+}
+
+imagealphablending($bild, false);
+imagesavealpha($bild, true);
+
+if(function_exists('imageantialias')){
+ imageantialias($bild, true);
+}
+
+$transparent = imagecolorallocatealpha($bild, 0, 0, 0, 127);
+imagefilledrectangle($bild, 0, 0, 30, 30, $transparent);
+imagecolortransparent($bild, $transparent);
+
+$r = hexdec(substr($bord_color, 1, 2));
+$g = hexdec(substr($bord_color, 3, 2));
+$b = hexdec(substr($bord_color, 5, 2));
+$farbe = imagecolorallocatealpha($bild, $r, $g, $b, 0);
+imagefilledpolygon($bild, $polygon2, 3, $farbe);
+
+$r = hexdec(substr($nav_border_color, 1, 2));
+$g = hexdec(substr($nav_border_color, 3, 2));
+$b = hexdec(substr($nav_border_color, 5, 2));
+$farbe = imagecolorallocatealpha($bild, $r, $g, $b, 255);
+
+for($i = 0; $i < 3; $i+=2){
+ imageBoldLine($bild, $polygon[$i], $polygon[$i+1], $polygon[$i+2], $polygon[$i+3], $farbe, 2);
+}
+
+imagepng($bild);
+imagedestroy($bild);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_back.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_back.png
new file mode 100644
index 00000000..26bbb975
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_back.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_cellid.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_cellid.php
new file mode 100644
index 00000000..2911d76f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_cellid.php
@@ -0,0 +1,62 @@
+<?php
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else
+ exit;
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+// ---------------------------------------------- Try to find Position -------------------------------------------
+$latitude = 0;
+$longitude = 0;
+
+if(function_exists("curl_init")){
+ ob_start();
+ readfile("../ki_galleries/".$gallery."/".$file);
+ $source = ob_get_contents();
+ ob_end_clean();
+ $xmpdata_start = strpos($source, "<x:xmpmeta");
+ $xmpdata_end = strpos($source, "</x:xmpmeta>");
+ $xmplength = $xmpdata_end - $xmpdata_start;
+ $xmpdata = substr($source, $xmpdata_start, $xmplength + 12);
+ if(preg_match("/<cell:mcc>(.+)<\/cell:mcc>/", $xmpdata, $temp)){ // country code
+ $mcc = $temp[1];
+ if(preg_match("/<cell:mnc>(.+)<\/cell:mnc>/", $xmpdata, $temp)){ // network code
+ $mnc = $temp[1];
+ if(preg_match("/<cell:cellid>(.+)<\/cell:cellid>/", $xmpdata, $temp)){
+ $cellid = $temp[1];
+ $myapikey = "b07aa008a74d3d0dc81d77dac2c8aaeb"; // opencellid api key
+ $lac = ""; // location area code
+ if(preg_match("/<cell:lac>(.+)<\/cell:lac>/", $xmpdata, $temp)){
+ $lac = $temp[1];
+ }
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_URL, "http://www.opencellid.org/cell/get?key=".$myapikey."&mcc=".$mcc."&mnc=".$mnc."&cellid=".$cellid."&lac=".$lac."&fmt=txt");
+ curl_setopt($ch, CURLOPT_HEADER, 0);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ $response = curl_exec($ch);
+ curl_close($ch);
+ $temp = explode(",", $response);
+ if(count($temp) > 1){
+ if($temp[0] != "0.0" && $temp[1] != "0.0"){
+ $latitude = $temp[0];
+ $longitude = $temp[1];
+ }
+ }
+ }
+ }
+ }
+}
+
+echo $latitude.",".$longitude;
+//----------------------------------------- thats what I found --------------------------
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_checkpw.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_checkpw.php
new file mode 100644
index 00000000..ca945fc1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_checkpw.php
@@ -0,0 +1,169 @@
+<?php
+header("Content-Type: application/x-javascript");
+
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser === "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+include_once("../ki_config/ki_setup.php");
+
+if(isset($_POST['query']))
+ $query = $_POST['query'];
+else
+ exit;
+
+if(isset($_POST['reldir']))
+ $reldir = $_POST['reldir'];
+else
+ $reldir = "";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+if(isset($_POST['against']))
+ $against = $_POST['against'];
+else
+ exit;
+
+if($against === "adm"){
+ if(md5($query) === $pw){
+ session_start();
+ $_SESSION["pwquery"] = $pw;
+ ?>
+ var params = location.search.substr(1).split('&');
+ var newparams = "";
+ for(var i = 0; i < params.length; i++){
+ var param = params[i].split('=');
+ if(param[0] != 'admin'){
+ if(newparams.length == 0)
+ newparams += "?";
+ else
+ newparams += "&";
+ newparams += params[i];
+ }
+ }
+ kib.checkpw = null;
+ var slash = "";
+ if(location.pathname.substr(0, 1) != "/")slash = "/";
+ $('authorization').innerHTML = "<a href='javascript:kib.edit_ki_setup();' style='color:#ffffff; display:block; margin:5px;'>Settings</a><a href='javascript:kib.fileupload();' style='color:#ffffff; display:block; margin:5px;'>Upload images</a><a href='javascript:kib.deleteexplorer();' style='color:#ffffff; display:block; margin:5px;'>Delete images</a><a href='javascript:kib.changeorder();' style='color:#ffffff; display:block; margin:5px;'>Change order</a><a href='javascript:return false;' onmouseover='kib.showhelp(this, 1, 1)' onmouseout='kib.hidehelp()' style='color:#ffffff; display:block; margin:5px;'>Label images</a><a href='javascript:kib.managefolders();' style='color:#ffffff; display:block; margin:5px;'>Manage folders</a><a href='http://"+location.hostname+slash+location.pathname+newparams+"' style='color:#ffffff; display:block; margin:5px;'>Logout</a>";
+ fw.resize( 'authorization', 2, 100, 132, Array( fw.move, 'authorization', 1, 50 + 5, 66 + 5, Array( fw.shadebody, 0 ) ) );
+ setTimeout( function(){
+ var node = document.createElement("div");
+ node.id = "kit_docu";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 999;
+ node.style.padding = "0px";
+ node.style.border = "1px dashed #fff";
+ node.style.left = "-300px";
+ node.style.bottom = "2px";
+ node.innerHTML = "<a href='http://koschtit.tabere.net/en/documentation/adminpanel' target='_blank' style='border:none; padding:0px; margin:0px;'><img src='<?php echo $basedir ?>ki_online_docu.jpg' alt='Online documentation' style='border:none; padding:0px; margin:0px;' /></a>";
+ document.body.appendChild(node);
+ fw.move2(node, 2, 26, 0, Array( fw.move2, "kit_docu", 2, -14, 0, Array( fw.move2, "kit_docu", 2, 5, 0, Array( fw.move2, "kit_docu", 2, 1, 0, Array( fw.move, "kit_docu", 2, 2, 0 ) ) ) ) );
+ }, 1300);
+
+ if(!$("kib_helpbox")){
+ var node = document.createElement("div");
+ node.id = "kib_helpbox";
+ node.style.color = "<?php echo $comm_text_color ?>";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "100px";
+ node.style.top = "200px";
+ node.style.lineHeight = "19px";
+ node.style.textAlign = "left";
+ node.style.zIndex = "10001";
+ node.style.width = "150px";
+ node.style.padding = "8px";
+ node.style.visibility = "hidden";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ document.body.appendChild(node);
+ }
+ <?php
+ } else {
+ ?>
+ $("pwform").style.border = "1px solid #ff0000";
+ <?php
+ }
+} else {
+ if(md5($query) === $userpw){
+ session_start();
+ $_SESSION["pwquery"] = $pw;
+ ?>
+ var params = location.search.substr(1).split('&');
+ var newparams = "";
+ for(var i = 0; i < params.length; i++){
+ var param = params[i].split('=');
+ if(param[0] != 'user'){
+ if(newparams.length == 0)
+ newparams += "?";
+ else
+ newparams += "&";
+ newparams += params[i];
+ }
+ }
+ kib.checkpw = null;
+ var slash = "";
+ if(location.pathname.substr(0, 1) != "/")slash = "/";
+ $('authorization').innerHTML = "<a href='javascript:kib.fileupload();' style='color:#ffffff; display:block; margin:5px;'>Upload images</a><a href='http://"+location.hostname+slash+location.pathname+newparams+"' style='color:#ffffff; display:block; margin:5px;'>Logout</a>";
+ fw.resize( 'authorization', 2, 100, 44, Array( fw.move, 'authorization', 1, 50 + 5, 22 + 5, Array( fw.shadebody, 0 ) ) );
+
+ if(!$("kib_helpbox")){
+ var node = document.createElement("div");
+ node.id = "kib_helpbox";
+ node.style.color = "<?php echo $comm_text_color ?>";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "100px";
+ node.style.top = "200px";
+ node.style.lineHeight = "19px";
+ node.style.textAlign = "left";
+ node.style.zIndex = "10001";
+ node.style.width = "150px";
+ node.style.padding = "8px";
+ node.style.visibility = "hidden";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ document.body.appendChild(node);
+ }
+ <?php
+ } else {
+ ?>
+ $("pwform").style.border = "1px solid #ff0000";
+ <?php
+ }
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_deleteimage.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_deleteimage.php
new file mode 100644
index 00000000..eb48b5e7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_deleteimage.php
@@ -0,0 +1,43 @@
+<?php
+session_start();
+
+include_once("../ki_config/ki_setup.php");
+
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else
+ exit;
+
+if(isset($_POST['thumb']))
+ $thumb = rawurldecode($_POST['thumb']);
+else
+ exit;
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+if($pwok == 1){
+ $imgfile = "../ki_galleries/".$gallery."/".$file;
+ $commfile = "../ki_galleries/".$gallery."/comments/".substr($file, 0, -4).".txt";
+ $vcommfile = "../ki_galleries/".$gallery."/viewercomments/".substr($file, 0, -4).".txt";
+ $thumbfile = "../ki_galleries/".$gallery."/thumbs/".$thumb;
+ if(is_file($imgfile))@unlink($imgfile);
+ if(is_file($commfile))@unlink($commfile);
+ if(is_file($vcommfile))@unlink($vcommfile);
+ if(is_file($thumbfile))@unlink($thumbfile);
+}
+?>
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_download.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_download.php
new file mode 100644
index 00000000..1997bf1a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_download.php
@@ -0,0 +1,32 @@
+<?php
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else if(isset($_GET['file']))
+ $file = rawurldecode($_GET['file']);
+else
+ exit;
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+header("Cache-Control: public");
+header("Content-Description: File Transfer");
+header("Content-Disposition: attachment; filename=".$file);
+header("Content-Type: image");
+header("Content-Transfer-Encoding: binary");
+
+readfile("../ki_galleries/".$gallery."/".$file);
+?>
+
+
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_explorer.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_explorer.php
new file mode 100644
index 00000000..a8b227fd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_explorer.php
@@ -0,0 +1,301 @@
+<?php
+ob_start("ob_gzhandler");
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+function cmp_0($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) < filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_1($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) > filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_2($a, $b)
+{
+ global $galleryfolder;
+
+ $exif = @exif_read_data($galleryfolder.$a[0]);
+ $date1 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date1 = $exif['DateTimeOriginal'];
+ if (empty($date1) && isset($exif['DateTime']))
+ $date1 = $exif['DateTime'];
+ if (!empty($date1)){
+ $date1 = split(':', str_replace(' ',':', $date1));
+ $date1 = "{$date1[0]}-{$date1[1]}-{$date1[2]} {$date1[3]}:{$date1[4]}";
+ if(sizeof($date1) > 5)$date1 .= ":{$date1[5]}";
+ $date1 = strtotime($date1);
+ } else {
+ $date1 = filemtime($galleryfolder.$a[0]);
+ }
+ $exif = @exif_read_data($galleryfolder.$b[0]);
+ $date2 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date2 = $exif['DateTimeOriginal'];
+ if (empty($date2) && isset($exif['DateTime']))
+ $date2 = $exif['DateTime'];
+ if (!empty($date2)){
+ $date2 = split(':', str_replace(' ',':', $date2));
+ $date2 = "{$date2[0]}-{$date2[1]}-{$date2[2]} {$date2[3]}:{$date2[4]}";
+ if(sizeof($date2) > 5)$date2 .= ":{$date1[5]}";
+ $date2 = strtotime($date2);
+ } else {
+ $date2 = filemtime($galleryfolder.$b[0]);
+ }
+
+ return $date1 > $date2 ? 1 : -1;
+}
+
+function cmp_3($a, $b)
+{
+ return strcmp($a[0], $b[0]);
+}
+
+//-------------------------------------------------------------------------- end functions --------------------------------------------------------------------------------
+
+$supported = array("jpg","png","gif");
+
+$reldir = "";
+if(isset($_POST['reldir']))$reldir = $_POST['reldir'];
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit();
+
+if(isset($_POST['gallerynumber']))
+ $gallerynumber = $_POST['gallerynumber'];
+else
+ exit();
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php")){
+ include_once("../ki_config/".$gallery."_ki_setup.php");
+ $configfile = "../ki_config/".$gallery."_ki_setup.php";
+} else {
+ $configfile = "../ki_config/ki_setup.php";
+}
+$galleryfolder = "../ki_galleries/".$gallery."/";
+$thumbsfolder = $galleryfolder."thumbs/";
+$commentsfolder = $galleryfolder."comments/";
+
+$pwok = 0;
+session_start();
+if(isset($_POST['todelete']) || isset($_POST['tochange'])){
+ if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+ }
+ if($pwok == 0)exit();
+}
+
+$temp = getimagesize("ki_nav_next.png");
+if($nav_always == 1 && $show_nav == 1)$fr_height -= ($temp[1]+18);
+if($th_lines == "auto")$th_lines = ceil($thumbs/($th_per_line));
+if($th_width == "auto")$th_width = round($fr_width/($th_per_line)) - round($fr_height*0.04) - 4;
+if($th_height == "auto")$th_height = round($fr_height/($th_lines)) - round($fr_height*0.04) - 4;
+$th_width = $th_width - 2*$th_bord_size;
+$th_height = $th_height - 2*$th_bord_size;
+
+/*------------------- error/warning checking ------------------*/
+if(!is_dir($galleryfolder)) {
+ echo "<div style='background:#ffbbbb; color:#000000; padding:4px;'>ERROR: KoschtIT Image Gallery could't find the following folder on the server: '".htmlentities($gallery)."' . Please check if the folder is available in the 'ki_galleries' folder.</div>";
+ exit();
+}
+if($pic_order == 3){
+ if(!function_exists("exif_read_data")){
+ $pic_order = 2;
+ }
+}
+/*------------------- end error/warning checking ------------------*/
+
+/*------------------- config settings ------------------*/
+$savefile = $gallery."_lastmodified";
+$lastmodified = filemtime($configfile);
+$saved = $fr_width.$fr_height.$thumbs.$th_per_line.$th_lines.$th_width.$th_height.$th_bord_size.$th_bord_hover_increase.$th_to_square.$th_2sq_crop_vert.$th_2sq_crop_hori.$show_nav.$nav_always;
+$writestring = "<?php\r\n\$lm_saved = \"".$saved."\";\r\n";
+$writestring .= "\$lm_lastmodified = ".$lastmodified.";\r\n?>";
+if(!file_exists($savefile))@file_put_contents($savefile, $writestring);
+if(!file_exists($savefile)) {
+ $thumbs_to_disk = 0;
+} else {
+ include_once($savefile);
+ if($lm_saved !== $saved){
+ @file_put_contents($savefile, $writestring);
+ $matches = @glob($thumbsfolder."*.*", GLOB_ERR);
+ if(is_array($matches)){
+ foreach($matches as $sf) {
+ if(!is_dir($sf) && !is_link($sf)){
+ @unlink($sf);
+ }
+ }
+ }
+ } else {
+ $lastmodified = $lm_lastmodified;
+ }
+}
+/*------------------- end config settings ------------------*/
+
+$files = array();
+$temp = array();
+$savedfolderhash = 0;
+if(is_file($gallery."_dir")){
+ $temp = explode(PHP_EOL, file_get_contents($gallery."_dir"));
+ $savedfolderhash = unserialize($temp[0]);
+}
+//$folderhash = pic_order + MTime of $galleryfolder + fileSize of all files
+$folderhash = $pic_order;
+$iterator = new DirectoryIterator($galleryfolder);
+foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ $folderhash += $fileInfo->getMTime();
+ continue;
+ } elseif($fileInfo->isFile()) {
+ $folderhash += $fileInfo->getSize();
+ }
+}
+if($folderhash != $savedfolderhash){
+ if($pic_order == 4 && sizeof($temp) > 1){
+ $files = unserialize($temp[1]);
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $newcandidate = array($file, $imgsize[0], $imgsize[1]);
+ if(!in_array($newcandidate, $files))$files[] = $newcandidate;
+ }
+ }
+ reset($files);
+ } else {
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $files[] = array($file, $imgsize[0], $imgsize[1]);
+ }
+ }
+ switch($pic_order){
+ case 0:
+ usort($files, "cmp_1");
+ break;
+ case 1:
+ usort($files, "cmp_0");
+ break;
+ case 2:
+ usort($files, "cmp_3");
+ break;
+ case 3:
+ usort($files, "cmp_2");
+ break;
+ default:
+ usort($files, "cmp_1");
+ break;
+ }
+ reset($files);
+ }
+} else {
+ $files = unserialize($temp[1]);
+}
+
+$id = 0;
+foreach ($files as $file) {
+ $id++;
+
+ $breite = $file[1];
+ $hoehe = $file[2];
+
+ if( ($breite / $hoehe) > 1){
+ $k = $hoehe / $breite;
+ $breite = $th_width;
+ $hoehe = $k*$breite;
+ if($hoehe > $th_height){
+ $hoehe = $th_height;
+ $breite = (1/$k) * $hoehe;
+ }
+ } else {
+ $k = $breite / $hoehe;
+ $hoehe = $th_height;
+ $breite = $k*$hoehe;
+ if($breite > $th_width){
+ $breite = $th_width;
+ $hoehe = (1/$k) * $breite;
+ }
+ }
+
+ if($th_to_square == 1) {
+ if($th_width < $th_height){
+ $breite = $th_width;
+ } else {
+ $breite = $th_height;
+ }
+ $hoehe = $breite;
+ }
+
+ $breite = round($breite);
+ $hoehe = round($hoehe);
+
+ if($th_bord_hover_increase > 1){
+ $inc_breite = round($breite*$th_bord_hover_increase);
+ $inc_hoehe = round($breite*$th_bord_hover_increase);
+ } else {
+ $inc_breite = $breite;
+ $inc_hoehe = $hoehe;
+ }
+
+ $src = $basedir."ki_makepic.php?file=".$gallery."/".rawurlencode($file[0])."&width=".$inc_breite."&height=".$inc_hoehe;
+ $style = "border:".$th_bord_size."px solid ".$th_bord_color."; visibility:hidden; display:block; position:absolute; width:".$breite."px; height:".$hoehe."px;";
+ if($thumbs_to_disk == 1){
+ if(!is_file($thumbsfolder.$lastmodified.$file[0])){
+ $src .= "&picname=".$lastmodified.rawurlencode($file[0]);
+ } else {
+ $src = $galleriesdir.$gallery."/thumbs/".$lastmodified.$file[0];
+ }
+ }
+ if(isset($_POST['todelete']))
+ echo "<img id='".$gallerynumber."_".($id-1)."' src='".$src."' style='".$style." cursor:pointer;' onclick='kid.deleteImage(this)' onload=\"this.style.visibility='visible'\" alt='".$breite."_".$hoehe."' onmouseover='fw.fade(this, 33)' onmouseout='fw.fade(this, 100)' />";
+ elseif(isset($_POST['tochange']))
+ echo "<img id='".$gallerynumber."_".($id-1)."' src='".$src."' style='".$style." z-index:1; cursor:move;' onmousedown='kic.selectForDrag(this)' onmouseup='kic.releaseForDrag(this)' onmouseover='kic.hoverDrag(this)' oncontextmenu='return false' ondragstart='return false' onselectstart='return false' onload=\"this.style.visibility='visible'\" moved='0' alt='".$breite."_".$hoehe."' />";
+ else
+ echo "<img id='".$gallerynumber."_".($id-1)."' src='".$src."' style='".$style." cursor:pointer;' onclick='kie.getImage(this.id)' onload=\"this.style.visibility='visible'\" onmouseover='kib.makebigger(this)' onmouseout='kib.makesmaller(this)' alt='".$breite."_".$hoehe."' />";
+
+}
+echo "<div style='position:absolute; width:1px; left:0px;'></div>";
+?>
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_flip.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_flip.php
new file mode 100644
index 00000000..3e473bc6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_flip.php
@@ -0,0 +1,52 @@
+<?php
+if(!isset($_GET['ot']))
+ exit();
+else
+ $ot = $_GET['ot'];
+
+if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+if($ot == 0)
+ $polygon = array(0,0, 0,200, 200,200);
+elseif($ot == 1)
+ $polygon = array(0,0, 0,200, 200,0);
+elseif($ot == 2)
+ $polygon = array(0,200, 200,200, 200,0);
+else
+ $polygon = array(0,0, 200,200, 200,0);
+
+header("Content-type: image/gif"); //Picture Format
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+$bild = imagecreate(200, 200);
+
+imagealphablending($bild, false);
+imagesavealpha($bild, true);
+
+$transparent = imagecolorallocatealpha($bild, 0, 0, 0, 127);
+imagefilledrectangle($bild, 0, 0, 200, 200, $transparent);
+imagecolortransparent($bild, $transparent);
+
+$r = hexdec(substr($bord_color, 1, 2));
+$g = hexdec(substr($bord_color, 3, 2));
+$b = hexdec(substr($bord_color, 5, 2));
+
+$farbe = imagecolorallocatealpha($bild, $r, $g, $b, 0);
+imagefilledpolygon($bild, $polygon, 3, $farbe);
+
+imagegif($bild);
+imagedestroy($bild);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_fullimg.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_fullimg.php
new file mode 100644
index 00000000..ddb6d546
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_fullimg.php
@@ -0,0 +1,231 @@
+<?php
+session_start();
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+$reldir = "";
+if(isset($_POST['reldir']))$reldir = $_POST['reldir'];
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+/* --------------------------------------------------------- functions ------------------------------------------------------ */
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+/* ---------------------------------------------------------- end functions -------------------------------------------------- */
+
+/* --------------------------------------------------------- Display full image ---------------------------------------------------------------------- */
+
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else
+ exit;
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+$imgsize = getimagesize("../ki_galleries/".$gallery."/".$file);
+
+// ---------------- exif data --------------------------------------
+if($checkgps == 1){
+ $latitude = 0;
+ $longitude = 0;
+ if(function_exists("exif_read_data")){
+ $exif = @exif_read_data("../ki_galleries/".$gallery."/".$file);
+ if(isset($exif['GPSLatitude']) && isset($exif['GPSLongitude'])){
+ if(isset($exif['GPSLatitudeRef']) && isset($exif['GPSLongitudeRef'])){
+ if(count($exif['GPSLatitude']) == 3 && count($exif['GPSLongitude']) == 3){
+ $temp = $exif['GPSLatitude'][0];
+ $temp = explode("/", $temp);
+ $latitude = intval($temp[0])/intval($temp[1]);
+ $temp = $exif['GPSLatitude'][1];
+ $temp = explode("/", $temp);
+ $latitude += ((intval($temp[0])/intval($temp[1]))/60);
+ $temp = $exif['GPSLatitude'][2];
+ $temp = explode("/", $temp);
+ $latitude += ((intval($temp[0])/intval($temp[1]))/3600);
+ if($exif['GPSLatitudeRef'] == "S")$latitude*=-1;
+ $temp = $exif['GPSLongitude'][0];
+ $temp = explode("/", $temp);
+ $longitude = intval($temp[0])/intval($temp[1]);
+ $temp = $exif['GPSLongitude'][1];
+ $temp = explode("/", $temp);
+ $longitude += ((intval($temp[0])/intval($temp[1]))/60);
+ $temp = $exif['GPSLongitude'][2];
+ $temp = explode("/", $temp);
+ $longitude += ((intval($temp[0])/intval($temp[1]))/3600);
+ if($exif['GPSLongitudeRef'] == "W")$longitude*=-1;
+ }
+ }
+ }
+ }
+}
+// ---------------- end exif data --------------------------------------
+
+if(isset($_POST['x']))
+ $x = $_POST['x'];
+else
+ $x = $imgsize[0];
+
+if(isset($_POST['y']))
+ $y = $_POST['y'];
+else
+ $y = $imgsize[1];
+
+$commfile = "../ki_galleries/".$gallery."/comments/".substr($file, 0, -4).".txt";
+$srcfile = $gallery."/".$file;
+
+if($x != $imgsize[0] || $y != $imgsize[1]){
+ $srcfile = $basedir."ki_makepic.php?fullimg=1&file=".$gallery."/".rawurlencode($file)."&width=".$x."&height=".$y;
+} else {
+ $srcfile = $galleriesdir.$srcfile;
+}
+?>
+<img id='thepicture' style='visibility:hidden; position:absolute; left:50%; top:50%; margin-left:-<?php echo floor($x*0.5) ?>px; margin-top:-<?php echo floor($y*0.5) ?>px; padding:0px; border:0px; width:<?php echo $x ?>px; height:<?php echo $y ?>px; display:block; cursor:pointer;' alt='<?php echo $srcfile ?>' onclick='kiv.goon(1)' />
+<?php
+if(is_file($commfile)){
+ $comm = file_get_contents($commfile);
+} else {
+ $comm = "";
+}
+
+if($comm_auto == 1){
+ $comm = $comm_auto_string;
+}
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+if($comments == 1){
+ if($pwok == 0){
+ if($comm != ""){
+ $comm = nl2br($comm);
+ echo "<div id='thecomment' style='display:none;'>".stripslashes($comm)."</div>";
+ }
+ } else {
+ echo "<div id='thecomment' style='display:none;'><textarea style='font:".$comm_text_size."px ".$comm_text_font."; color:".$comm_text_color."; width:".($x+(2*$bord_size)-22)."px; text-align:".$comm_text_align."; height:50px; overflow:hidden; resize:none; overflow-y:scroll; float:none; margin:0px; padding:0px; background:".$bord_color."; border:1px dashed ".$comm_text_color.";' onkeyup='kiv.savecomment(event, this.value)' id='focusme'>".stripslashes($comm)."</textarea></div>";
+ }
+}
+
+if($checkgps == 1){
+ echo "<input id='kiv_gps' type='hidden' value='".$latitude.",".$longitude."' />";
+}
+
+if($viewercomments == 1){
+ $vcommfile = "../ki_galleries/".$gallery."/viewercomments/".substr($file, 0, -4).".txt";
+ $value = 0;
+ if(is_file($vcommfile)){
+ $value = 1;
+ }
+ echo "<input id='kiv_vcomm' type='hidden' value='".$value."' />";
+}
+
+if($pwok == 1 && $th_to_square == 1 && $thumbs_to_disk == 1){
+ if($x >= $y){
+ $aspect = $x/$y;
+ $x = round($aspect*100);
+ $y = 100;
+ switch($th_2sq_crop_hori){
+ case "left":
+ $posx = 0;
+ break;
+ case "center";
+ $posx = round($x*0.5 - 50);
+ break;
+ case "right":
+ $posx = $x - 100;
+ break;
+ }
+ $stylestring1 = "height:100px; width:".$posx."px;";
+ $stylestring2 = "height:100px; width:".($x-($posx+100))."px;";
+ } else {
+ $aspect = $y/$x;
+ $y = round($aspect*100);
+ $x = 100;
+ switch($th_2sq_crop_vert){
+ case "top":
+ $posy = 0;
+ break;
+ case "middle";
+ $posy = round($y*0.5 - 50);
+ break;
+ case "bottom":
+ $posy = $y - 100;
+ break;
+ }
+ $stylestring1 = "width:100px; height:".$posy."px;";
+ $stylestring2 = "width:100px; height:".($y-($posy+100))."px;";
+ }
+ if($browser == "ie6" || $browser == "ie7"){
+ $more = "filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);";
+ } else {
+ $more = "opacity:0.7;";
+ }
+ $stylestring1 .= $more;
+ $stylestring2 .= $more;
+ $srcfile = $basedir."ki_makepic.php?file=".$gallery."/".rawurlencode($file)."&width=".$x."&height=".$y."&fullimg=1";
+ echo "<div id='square_selector' style='position:absolute; left:".$bord_size."px; top:".$bord_size."px; width:".$x."px; height:".$y."px; z-index:1001; padding:2px; background:#000000; overflow:hidden; cursor:pointer; display:none;'><img src='".$srcfile."' style='visibility:hidden;' onload=\"this.style.visibility='visible';\" /><div id='square_1' style='background:#000000; position:absolute; left:2px; top:2px; overflow:hidden;".$stylestring1."'></div><div id='square_2' style='background:#000000; position:absolute; right:2px; bottom:2px; overflow:hidden;".$stylestring2."'></div></div>";
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getcustomsettings.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getcustomsettings.php
new file mode 100644
index 00000000..26731a29
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getcustomsettings.php
@@ -0,0 +1,25 @@
+<?php
+ob_start("ob_gzhandler");
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+$verz = @opendir("../ki_config/");
+while($file = @readdir($verz))
+{
+ if($file != "." && $file != ".." && strtolower(substr($file, -12)) === "ki_setup.php"){
+ include("../ki_config/ki_setup.php");
+ if($file === "ki_setup.php")
+ $temp = "default";
+ else {
+ $temp = substr($file, 0, -13);
+ include("../ki_config/".$file);
+ }
+
+ echo "kib.customsettings['".$temp."'] = Array(".$fr_width.", ".$fr_height.", \"".$fr_color."\", \"".$th_bord_color."\", \"".$th_bord_hover_color."\", ".$th_bord_hover_increase.", ".$resize_auto.", ".$nav_style.", ".$th_bord_size.", ".$show_nav.", ".$nav_always.", ".$slideshow.", \"".$nav_color."\", \"".$nav_border_color."\", \"".$nav_pos."\", ".$show_explorer.", ".$th_shadow.");\r\n";
+ }
+}
+@closedir($verz);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getsetsettings.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getsetsettings.php
new file mode 100644
index 00000000..9687e355
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getsetsettings.php
@@ -0,0 +1,161 @@
+<?php
+session_start();
+
+/* --------------------------------------------------------- functions ------------------------------------------------------ */
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+/* ---------------------------------------------------------- end functions -------------------------------------------------- */
+
+include_once("../ki_config/ki_setup.php");
+
+if (get_magic_quotes_gpc()) {
+ function stripslashes_gpc(&$value)
+ {
+ $value = stripslashes($value);
+ }
+ array_walk_recursive($_GET, 'stripslashes_gpc');
+ array_walk_recursive($_POST, 'stripslashes_gpc');
+ array_walk_recursive($_COOKIE, 'stripslashes_gpc');
+ array_walk_recursive($_REQUEST, 'stripslashes_gpc');
+}
+
+$global_start = -1;
+$global_length = -1;
+$global_count = -1;
+
+reset($GLOBALS);
+while (list($key, $val) = each($GLOBALS)) {
+ $global_count++;
+ if($global_start == -1){
+ if($key === "fr_width"){
+ $global_start = $global_count;
+ continue;
+ }
+ }
+ if($global_length == -1){
+ if($key === "global_start"){
+ $global_length = $global_count - $global_start;
+ break;
+ }
+ }
+}
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+if($pwok == 1){
+ if(isset($_POST['get'])){
+ if(isset($_POST['file'])){
+ $file = $_POST['file'];
+
+ // -------------- Sicherheitsabfragen!
+ if(preg_match("/[\.]*\//", $file))exit();
+ // ---------- Ende Sicherheitsabfragen!
+
+ if(is_file("../ki_config/".$file."_ki_setup.php")){
+ reset($GLOBALS);
+ for($i = 0; $i < $global_start; $i++)next($GLOBALS);
+ for($i = 0; $i < $global_length; $i++){
+ list($key, $val) = each($GLOBALS);
+ unset($GLOBALS[$key]);
+ }
+ include_once("../ki_config/".$file."_ki_setup.php");
+ } else
+ exit();
+ }
+ $setting = "";
+ echo "{ ";
+ reset($GLOBALS);
+ for($i = 0; $i < $global_start; $i++)next($GLOBALS);
+ for($i = 0; $i < $global_length; $i++){
+ list($key, $val) = each($GLOBALS);
+ if(isset($GLOBALS[$key]))$setting .= "\"$key\" : \"".addslashes($val)."\", ";
+ }
+ $setting = substr($setting, 0, -2)." ";
+ echo $setting;
+ echo "}";
+ }
+ if(isset($_POST['set'])){
+ if(!isset($_POST['pw']))$_POST['pw'] = $_SESSION['pwquery'];
+ if(!isset($_POST['userpw']))$_POST['userpw'] = $userpw;
+ if(isset($_POST['file'])){
+ $file = $_POST['file'];
+ if($file === "default")
+ $file = "";
+ else
+ $file .= "_";
+
+ // -------------- Sicherheitsabfragen!
+ if(preg_match("/[\.]*\//", $file))exit();
+ // ---------- Ende Sicherheitsabfragen!
+
+ $params = "";
+ reset($GLOBALS);
+ for($i = 0; $i < $global_start; $i++)next($GLOBALS);
+ for($i = 0; $i < $global_length; $i++){
+ list($key, $val) = each($GLOBALS);
+ if(isset($_POST[$key])){
+ $val = rawurldecode($_POST[$key]);
+ if($key === "pw"){
+ if($val !== $_SESSION['pwquery']){
+ $val = "\"".md5($val)."\"";
+ } else {
+ $val = "\"".$val."\"";
+ }
+ } else if($key === "userpw"){
+ if($val !== $userpw){
+ $val = "\"".md5($val)."\"";
+ } else {
+ $val = "\"".$val."\"";
+ }
+ } else {
+ if(!is_numeric($val))$val = "\"".addslashes($val)."\"";
+ }
+ $params .= "\$$key = $val;\r\n";
+ }
+ }
+
+ $setupfile = "../ki_config/".$file."ki_setup.php";
+ if($file !== ""){
+ if($params !== ""){
+ $params = "<?php\r\n".$params."?>";
+ if(!@file_put_contents($setupfile, $params))
+ echo "failure";
+ else
+ echo "modified";
+ } else {
+ if(!@unlink($setupfile))
+ echo "failure";
+ else
+ echo "modified";
+ }
+ } else {
+ $params = "<?php\r\n".$params."?>";
+ if(!@file_put_contents($setupfile, $params)){
+ echo "failure";
+ } else {
+ if($_POST['admin'].$_POST['pw'] !== $admin.$pw){
+ echo "adminchanged";
+ } else {
+ echo "modified";
+ }
+ }
+ }
+ }
+ }
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getuploadinfo.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getuploadinfo.php
new file mode 100644
index 00000000..1d3bd54e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_getuploadinfo.php
@@ -0,0 +1,76 @@
+<?php
+session_start();
+
+if(isset($_POST['form']))
+ $form = $_POST['form'];
+else
+ exit();
+
+if($form === "debug"){
+ var_dump($_SESSION['uploads']);
+ exit();
+}
+
+if($form === "reset"){
+ $_SESSION['uploads'] = array(-1, -1, -1, -1, -1, -1, -1, -1, -1);
+ exit();
+}
+
+$tmpfolder = ini_get('upload_tmp_dir');
+
+function getTempFile(){
+ global $tmpfolder;
+ global $form;
+
+ if($form == -1){
+ return 0;
+ }
+
+ if(is_dir($tmpfolder)) {
+ $phptempfiles = glob($tmpfolder."/[p][h][p]*.tmp");
+ //$phptempfiles = glob($tmpfolder."/[p][h][p]*");
+ if(is_array($phptempfiles)){
+ if(sizeof($phptempfiles) != 0){ // es laufen Uploads
+ foreach($phptempfiles as $sf){
+ if(!in_array($sf, $_SESSION['uploads'])){ // Der zuletzt gestartete Upload läuft, aber wir können den nächsten starten ( laufender upload gespeichert )
+ $_SESSION['uploads'][$form] = $sf;
+ //return 1; // für alle uploads parallel
+ }
+ }
+ } else { // Alle bisher gestartete Upload sind schon abgeschlossen, d.h. wir können den nächsten starten
+ $_SESSION['uploads'][$form] = "finished";
+ return 1;
+ }
+ }
+ } else {
+ $_SESSION['uploads'][$form] = "error";
+ return 1;
+ }
+
+ return 0;
+}
+
+function getPercentage(){
+ foreach($_SESSION['uploads'] as $sf){
+ $val = 0;
+ if($sf === "finished")
+ $val = "finished";
+ else {
+ if($sf == -1){
+ $val = 0;
+ } else {
+ if(is_file($sf)){
+ $val = filesize($sf);
+ } else {
+ $val = "finished";
+ }
+ }
+ }
+ echo "<input type='hidden' value='".$val."' />";
+ }
+}
+
+
+echo "<input type='hidden' value='".getTempFile()."' />";
+getPercentage();
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_basic.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_basic.php
new file mode 100644
index 00000000..ce6f7681
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_basic.php
@@ -0,0 +1,635 @@
+<?php
+ob_start("ob_gzhandler");
+
+session_start();
+if(isset($_SESSION['pwquery']))unset($_SESSION['pwquery']);
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//-------------------------------------- functions -------------------------------------
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+//-------------------------------------- end functions -----------------------------------
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+include("../ki_config/ki_setup.php");
+
+$admin_ok = 0;
+if(isset($_GET['admin']) && $admin === $_GET['admin']){
+ $admin_ok = 1;
+}
+$user_ok = 0;
+if(isset($_GET['user']) && $user === $_GET['user']){
+ $user_ok = 1;
+}
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Basic module 'kib' --------------------------------------------------------------------
+
+function kib_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var galleries; // gallery objects
+ this.dirs; // gallery folders
+ this.pics; // pic names and dimensions
+ this.customsettings = new Array(); // individual width, heights and backgrounds
+ var mouseover; // Array for mouseover
+
+<?php
+ $verz = @opendir("../ki_config/");
+ while($file = @readdir($verz))
+ {
+ if($file != "." && $file != ".." && strtolower(substr($file, -12)) === "ki_setup.php"){
+ include("../ki_config/ki_setup.php");
+ if($file === "ki_setup.php")
+ $temp = "default";
+ else {
+ $temp = substr($file, 0, -13);
+ include("../ki_config/".$file);
+ }
+ echo "this.customsettings['".$temp."'] = Array(".$fr_width.", ".$fr_height.", \"".$fr_color."\", \"".$th_bord_color."\", \"".$th_bord_hover_color."\", ".$th_bord_hover_increase.", ".$resize_auto.", ".$nav_style.", ".$th_bord_size.", ".$show_nav.", ".$nav_always.", ".$slideshow.", \"".$nav_color."\", \"".$nav_border_color."\", \"".$nav_pos."\", ".$show_explorer.", ".$th_shadow.");\r\n";
+ }
+ }
+ @closedir($verz);
+?>
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function() {
+ galleries = new Array();
+ this.dirs = new Array();
+ mouseover = new Array();
+ var temp = document.getElementsByTagName("div");
+ var found = 0;
+ for(var i = 0; i < temp.length; i++){
+ if(temp[i].className.indexOf("koschtitgallery") >= 0){
+ temp[i].id = temp[i].title + "_" + found;
+ temp[i].style.position = "relative";
+ temp[i].style.padding = "0px";
+ temp[i].style.overflow = "hidden";
+ var obj = kib.customsettings[temp[i].title] ? kib.customsettings[temp[i].title] : kib.customsettings['default'];
+ temp[i].style.width = obj[0] + "px";
+ temp[i].style.height = obj[1] + "px";
+ temp[i].style.minHeight = "0";
+ temp[i].style.background = obj[2];
+ this.dirs.push(temp[i].title);
+ temp[i].title = "";
+ galleries.push(temp[i]);
+ mouseover.push(0);
+ found++;
+ }
+ }
+ if(galleries.length == 0){
+ <?php if($shade_while_loading == 1)echo "shadebody(0);" ?>
+ <?php if($show_warnings == 1)echo "alert(\"WARNING: KoschtIT Image Gallery didn't find any gallery to display. Set '\$show_warnings = 0' if you don't want to see this warning again.\");"; ?>
+ return;
+ } else {
+ this.pics = new Array(galleries.length);
+ showgallery(0);
+ }
+ }
+
+ this.destr = function(){
+
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ this.reinit = function(){
+ var count = this.dirs.length;
+ for(var i = 0; i < count; i++){
+ $(this.dirs[i]+"_"+i).title = this.dirs[i];
+ }
+ for(var i = 0; i < count; i++){
+ var temp = galleries[i].cloneNode(false);
+ galleries[i].parentNode.insertBefore(temp, galleries[i]);
+ galleries[i].parentNode.removeChild(galleries[i]);
+ }
+ kib.constr();
+ }
+
+ this.reloadcsandreinit = function(){
+ fw.getHTTP("<?php echo $basedir ?>ki_getcustomsettings.php", gotcustomsettings);
+ }
+
+ function gotcustomsettings(responseText){
+ if(responseText != ""){
+ eval(responseText);
+ kib.reinit();
+ }
+ }
+
+ function showgallery(gallerynumber){
+
+ var gallery = galleries[gallerynumber];
+ gallery.innerHTML = "<div style='background:<?php echo $bord_color ?>; position:absolute; left:50%; top:50%; width:200px; height:40px; margin-left:-106px; margin-top:-26px; border:2px solid <?php echo $nav_border_color ?>; color:<?php echo $comm_text_color ?>; font: 14px normal <?php echo $comm_text_font ?>; padding:8px 4px 0px; text-align:center; line-height:17px;' id='" + gallery.id + "_wait" + "'>Please wait, while folder being scanned ...</div>";
+
+ var node = document.createElement("div");
+ node.id = gallery.id + "_see";
+ node.style.position = "absolute";
+ node.style.height = "100%";
+ node.style.width = "100%";
+ node.style.overflow = "hidden";
+ node.style.display = "none";
+ gallery.appendChild(node);
+
+ node = document.createElement("div");
+ node.id = gallery.id + "_hide";
+ node.style.position = "absolute";
+ node.style.height = "100%";
+ node.style.width = "100%";
+ node.style.overflow = "hidden";
+ node.style.display = "none";
+ gallery.appendChild(node);
+
+ kib.inc(gallerynumber, 0, 0, 1);
+
+ fw.addevent( gallery, "mousemove", function(){ if(mouseover[gallerynumber] == 0)expandfornav(gallerynumber, 1); } );
+ fw.addevent( gallery, "mouseout", function(){ expandfornav(gallerynumber, 0); } );
+
+ if(gallerynumber+1 < galleries.length){
+ showgallery(gallerynumber+1);
+ } else {
+ <?php if($admin_ok == 1 || $user_ok == 1){ ?>
+ adminlogin();
+ <?php } ?>
+ }
+ }
+
+ function expandfornav(gallerynumber, type){
+ var gallery = galleries[gallerynumber];
+ var container = $(gallery.id + "_hide");
+
+ if(type == 1){
+ mouseover[gallerynumber] = 1;
+ container.style.overflow = "visible";
+ gallery.style.overflow = "visible";
+ } else {
+ mouseover[gallerynumber] = 0;
+ container.style.overflow = "hidden";
+ gallery.style.overflow = "hidden";
+ }
+
+ var cs = kib.customsettings[kib.dirs[gallerynumber]] ? kib.customsettings[kib.dirs[gallerynumber]] : kib.customsettings['default'];
+ if(cs[9] == 1 && cs[10] == 0){
+ <?php
+ $temp = getimagesize("ki_nav_next.png");
+ ?>
+ var ysize = cs[1];
+ if(cs[6] == 1){
+ for(var i = container.childNodes.length-1; i > 0; i--){
+ if(container.childNodes[i]){
+ if(container.childNodes[i].nodeName == "IMG"){
+ var temp2 = container.childNodes[i].alt.split("_");
+ ysize = parseInt(parseInt(temp2[3]) + 0.5*(parseInt(temp2[1]) + cs[8]*2));
+ break;
+ }
+ }
+ }
+ for(var j = 0; j < 10; j++){
+ if(container.childNodes[j]){
+ if(container.childNodes[j].nodeName == "IMG"){
+ temp2 = container.childNodes[j].alt.split("_");
+ ysize = ysize + parseInt(parseInt(temp2[3]) + 0.5*(parseInt(temp2[1]) + cs[8]*2));
+ if(ysize > cs[1])ysize = cs[1];
+ break;
+ }
+ }
+ }
+ }
+ var tb = $(container.id + "_tb");
+ if(tb != null){
+ if(type == 1){
+ if(cs[10] == 0)fw.fade(tb, 100);
+ fw.resize(gallery, 4, 0, ysize + <?php echo ($temp[1] + 18) ?>);
+ } else {
+ if(cs[10] == 0)fw.fade(tb, 0);
+ fw.resize(gallery, 4, 0, ysize);
+ }
+ }
+ }
+ }
+
+ <?php if($admin_ok == 1 || $user_ok == 1){ ?>
+
+ function adminlogin(){
+ if(!$("authorization")){
+ node = document.createElement("div");
+ node.id = "authorization";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.top = "50%";
+ node.style.left = "50%";
+ node.style.width = "150px";
+ node.style.height = "70px";
+ node.style.margin = "-35px 0px 0px -75px";
+ node.style.background = "#444444";
+ node.style.border = "1px dashed #ffffff";
+ node.style.textAlign = "center";
+ node.style.color = "#ffffff";
+ node.style.font = "11px Tahoma, sans-serif";
+ node.style.lineHeight = "13px";
+ node.style.zIndex = 2000;
+ document.body.appendChild(node);
+ $("authorization").appendChild(document.createElement("br"));
+ node = document.createTextNode("Enter password here:");
+ $("authorization").appendChild(node);
+ $("authorization").appendChild(document.createElement("br"));
+ $("authorization").appendChild(document.createElement("br"));
+ node = document.createElement("span");
+ node.innerHTML = "<input type='password' id='pwform' style='border:1px solid #ffffff; background:#000; width:140px; color:#ffffff; text-align:center; float:none; font:11px Tahoma, sans-serif; padding:1px;' />";
+ $("authorization").appendChild(node);
+ $("pwform").onkeyup = function() { kib.checkpw(this.value) };
+ $("pwform").focus();
+ }
+ }
+
+ this.checkpw = function(query){
+ if(query != "")fw.getHTTP("<?php echo $basedir ?>ki_checkpw.php?&query="+query+"&reldir=<?php echo $reldir ?>&against=<?php echo $admin_ok == 1 ? "adm" : "usr" ?>", gotcheck, null);
+ }
+
+ function gotcheck(responseText){
+ if(responseText != "")eval(responseText);
+ }
+
+ this.edit_ki_setup = function(){
+ fw.addjs("<?php echo $basedir ?>ki_js_settings.php?reldir=<?php echo $reldir ?>", "kis");
+ }
+
+ this.fileupload = function(){
+ fw.addjs("<?php echo $basedir ?>ki_js_upload.php?reldir=<?php echo $reldir ?>", "kiu");
+ }
+
+ this.deleteexplorer = function(){
+ fw.addjs("<?php echo $basedir ?>ki_js_delete.php?reldir=<?php echo $reldir ?>&gallery=" + this.dirs[0], "kid");
+ }
+
+ this.changeorder = function(){
+ fw.addjs("<?php echo $basedir ?>ki_js_changeorder.php?reldir=<?php echo $reldir ?>&gallery=" + this.dirs[0], "kic");
+ }
+
+ this.managefolders = function(){
+ fw.addjs("<?php echo $basedir ?>ki_js_managefolders.php?reldir=<?php echo $reldir ?>", "kim");
+ }
+
+ this.showhelp = function(obj, direction, messCode){
+
+ var message = "";
+ var helpBox = $("kib_helpbox");
+
+ var pointer;
+ var infosymbol = "<?php draw_image("ki_nav_info.png", "", "border:0px; vertical-align:bottom; display:inline; float:right; padding:0px 0px 8px 8px;", ""); ?>";
+
+ switch(messCode){
+ case 1:
+ message = "If you want to label an image just click on it and start typing. Press \"CTRL + Enter\" to save it. The next image will open automatically and you can keep labeling ...";
+ break;
+ case 2:
+ message = "Press \"CTRL + Enter\" to save your label.";
+ break;
+ case 3:
+ message = "Drag'n'Drop an image to change it's position in the gallery. There is also the '$pic_order'-parameter in the Settings-section which sets the main image order strategy for individual galleries.";
+ break;
+ case 4:
+ message = "Click on an image to delete it from the gallery.";
+ break;
+ case 5:
+ message = "You can upload a watermark first. Afterwards you can add this watermark to images which you upload to the gallery. The watermark position and size are controlled by the $watermark_hori/vert/size - parameters.";
+ break;
+ }
+
+ var pos = fw.findPos(obj);
+ var dim = fw.getDim(obj);
+
+ helpBox.style.visibility = "hidden";
+ helpBox.innerHTML = infosymbol + message;
+ var boxH = fw.getDim(helpBox)[1];
+
+ switch(direction){
+ case 1:
+ pointer = "<?php draw_image("ki_arrow.php?ot=0", "", "border:0px; vertical-align:bottom; position:absolute; left:-27px; top:0px; padding:0px;", ""); ?>";
+ helpBox.style.left = pos[0] + dim[0] + 15 + "px";
+ helpBox.style.top = pos[1] + 0.5*dim[1] - 15 + "px";
+ break;
+ case 2:
+ pointer = "<?php draw_image("ki_arrow.php?ot=1", "", "border:0px; vertical-align:bottom; position:absolute; left:70px; top:-27px; padding:0px;", ""); ?>";
+ helpBox.style.left = pos[0] + 0.5*dim[0] - 85 + "px";
+ helpBox.style.top = pos[1] + dim[1] + 30 + "px";
+ break;
+ case 3:
+ pointer = "<?php draw_image("ki_arrow.php?ot=2", "", "border:0px; vertical-align:bottom; position:absolute; right:-26px; top:0px; padding:0px;", ""); ?>";
+ helpBox.style.left = pos[0] - 170 - 15 + "px";
+ helpBox.style.top = pos[1] + 0.5*dim[1] - 15 + "px";
+ break;
+ case 4:
+ pointer = "<?php draw_image("ki_arrow.php?ot=3", "", "border:0px; vertical-align:bottom; position:absolute; left:70px; bottom:-26px; padding:0px;", ""); ?>";
+ helpBox.style.left = pos[0] + 0.5*dim[0] - 85 + "px";
+ helpBox.style.top = pos[1] - boxH - 30 + "px";
+ break;
+ }
+
+ helpBox.innerHTML += pointer;
+
+ helpBox.style.display = "none";
+ helpBox.style.visibility = "visible";
+ fw.fade(helpBox, 100);
+
+ }
+
+ this.hidehelp = function(){
+ var helpBox = $("kib_helpbox");
+ fw.fade(helpBox, 0, Array(function(){
+ helpBox.style.visibility = "hidden";
+ helpBox.style.display = "block";
+ }));
+ }
+ <?php } ?>
+
+ //direction: 0 = static 1 = left, 2 = right, 3 = top, 4 = bottom
+ this.inc = function(gallerynumber, direction, startfrom, collectinfo) {
+ var params = "?reldir=<?php echo $reldir ?>&gallery=" + this.dirs[gallerynumber] + "&gallerynumber=" + gallerynumber;
+ if(startfrom)params += "&startfrom="+startfrom;
+ if(collectinfo)
+ params += "&collectinfo=1";
+ else {
+ collectinfo = 0;
+ }
+ fw.getHTTP("<?php echo $basedir ?>ki_koschtit.php" + params, gotinc, new Array(direction, gallerynumber, collectinfo));
+ }
+
+ function gotinc(responseText, params) {
+ var direction = params[0];
+ var gallerynumber = params[1];
+ var collectinfo = params[2];
+
+ var container = $(kib.dirs[gallerynumber]+"_"+gallerynumber+"_see");
+ var switcher = $(kib.dirs[gallerynumber]+"_"+gallerynumber+"_hide");
+ container.id = kib.dirs[gallerynumber]+"_"+gallerynumber+"_hide";
+ switcher.id = kib.dirs[gallerynumber]+"_"+gallerynumber+"_see";
+
+ if(collectinfo == 1)container.parentNode.removeChild($(kib.dirs[gallerynumber]+"_"+gallerynumber+"_wait"));
+
+ container.innerHTML = responseText;
+
+ if(collectinfo == 1){
+ var jsontxt = $(gallerynumber+"_info").value;
+ kib.pics[gallerynumber] = eval("(" + jsontxt + ")");
+ <?php if($shade_while_loading == 1){ ?>
+ if(gallerynumber == kib.dirs.length - 1){
+ setTimeout( function(){
+ fw.shadebody(0);
+ }, 1000);
+ }
+ <?php } ?>
+ if(gallerynumber == galleries.length-1){
+ if(typeof(kit_opensharedpic) == "function")kit_opensharedpic();
+ }
+ }
+
+ var x = parseInt(container.parentNode.style.width);
+ var y = parseInt(container.parentNode.style.height);
+ var xto = 0;
+ var yto = 0;
+ if(direction > 2)
+ var onlydir = 3;
+ else
+ var onlydir = 2;
+ if(direction == 1){xto = x;}
+ if(direction == 2){xto = -x;}
+ if(direction == 3){yto = y;}
+ if(direction == 4){yto = -y;}
+
+ container.style.overflow = "hidden";
+ container.parentNode.style.overflow = "hidden";
+ container.style.left = -1*xto+"px";
+ container.style.top = -1*yto+"px";
+ container.style.display = "block";
+
+ fw.move(container, onlydir, 0, 0);
+ fw.move(switcher, onlydir, xto, yto, Array( function(){
+ var node = document.createElement("div");
+ node.id = switcher.id;
+ node.style.position = "absolute";
+ node.style.height = "100%";
+ node.style.width = "100%";
+ node.style.overflow = "hidden";
+ node.style.lineHeight = "12px";
+ node.style.display = "none";
+ var parnt = switcher.parentNode;
+ parnt.removeChild(switcher);
+ parnt.appendChild(node);
+
+ container.style.overflow = "visible";
+ container.parentNode.style.overflow = "visible";
+
+ <?php $breite = getimagesize("ki_nav_next.png"); ?>
+ var cs = kib.customsettings[kib.dirs[gallerynumber]] ? kib.customsettings[kib.dirs[gallerynumber]] : kib.customsettings['default'];
+ var ysize = cs[1];
+ if(cs[6] == 1){
+ for(var i = container.childNodes.length-1; i > 0; i--){
+ if(container.childNodes[i]){
+ if(container.childNodes[i].nodeName == "IMG"){
+ var temp2 = container.childNodes[i].alt.split("_");
+ ysize = parseInt(parseInt(temp2[3]) + 0.5*(parseInt(temp2[1]) + cs[8]*2));
+ break;
+ }
+ }
+ }
+ for(var j = 0; j < 10; j++){
+ if(container.childNodes[j]){
+ if(container.childNodes[j].nodeName == "IMG"){
+ temp2 = container.childNodes[j].alt.split("_");
+ ysize = ysize + parseInt(parseInt(temp2[3]) + 0.5*(parseInt(temp2[1]) + cs[8]*2));
+ if((cs[9] == 1 && cs[10] == 1) || (mouseover[gallerynumber] == 1 && cs[9] == 1 && cs[10] == 0))ysize += <?php echo $breite[1]+18 ?>;
+ if(ysize <= cs[1]){
+ fw.resize(parnt, 4, 0, ysize);
+ } else {
+ var temp = fw.getDim(parnt, 1)[1];
+ if(cs[9] == 1)temp += <?php echo $breite[1]+18 ?>;
+ if(ysize > temp){
+ fw.resize(parnt, 4, 0, ysize);
+ }
+ }
+ if(mouseover[gallerynumber] == 1 && cs[9] == 1 && cs[10] == 0)ysize -= <?php echo $breite[1]+18 ?>;
+ break;
+ }
+ }
+ }
+ }
+ if(cs[9] == 1){
+ var tbcontent = "";
+ var breite = 0;
+ if(cs[15] == 1){
+ tbcontent += "<?php draw_image("ki_nav_full.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kib.startExplorer(\" + gallerynumber + \");\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_maxi), ENT_QUOTES, "UTF-8")."'"); ?>";
+ breite += (4 + <?php echo $breite[0] ?>);
+ }
+ if(cs[11] == 1 && kib.pics[gallerynumber].length > 0){
+ tbcontent += "<?php draw_image("ki_nav_play.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kib.slideshow(\" + gallerynumber + \");\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($slideshow_start), ENT_QUOTES, "UTF-8")."'"); ?>";
+ breite += (4 + <?php echo $breite[0] ?>);
+ }
+ if($(gallerynumber+"_prev")){
+ tbcontent += "<?php draw_image("ki_nav_prev.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kib.inc(\" + gallerynumber + \", 1, \" + $(gallerynumber+\"_prev\").innerHTML + \");\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_back), ENT_QUOTES, "UTF-8")."'"); ?>";
+ breite += (4 + <?php echo $breite[0] ?>);
+ }
+ if($(gallerynumber+"_next")){
+ tbcontent += "<?php draw_image("ki_nav_next.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kib.inc(\" + gallerynumber + \", 2, \" + $(gallerynumber+\"_next\").innerHTML + \");\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_next), ENT_QUOTES, "UTF-8")."'"); ?>";
+ breite += (4 + <?php echo $breite[0] ?>);
+ }
+ if(breite != 0){
+ breite -= 4;
+ } else {
+ return;
+ }
+ var navpos = 0;
+ if(cs[14] == "right"){
+ navpos = -4;
+ } else if(cs[14] == "left"){
+ navpos = 4;
+ } else {
+ breite += 16;
+ navpos = (cs[0]-breite+2)*0.5;
+ }
+ if(cs[9] == 1 && cs[10] == 0)ysize += (<?php echo $breite[1] ?> + 18);
+ fw.addtoolbar(container, tbcontent, navpos, ysize - <?php echo $breite[1] ?> - 14, 1);
+ var tb = $(container.id + "_tb");
+ tb.style.background = cs[12];
+ if(cs[7] == 2){
+ tb.style.borderRadius = "20px";
+ tb.style.MozBorderRadius = "20px";
+ tb.style.WebkitBorderRadius = "20px";
+ }
+ tb.style.border = "2px solid " + cs[13];
+ tb.style.padding = "1px 3px 3px 3px";
+ tb.style.lineHeight = "12px";
+ if(collectinfo == 1 && cs[10] == 0)tb.style.display = "none";
+ }
+ } ));
+ }
+
+ this.getImage = function(picstring) {
+ var temp = picstring.indexOf("_");
+ var gallerynumber = Number(picstring.substr(0, temp));
+ var picnumber = Number(picstring.substr(temp+1));
+ var params = Array( gallerynumber, picnumber );
+ var error = 0;
+ if(gallerynumber >= this.pics.length){
+ error = 1;
+ } else {
+ if(picnumber >= this.pics[gallerynumber].length)error = 1;
+ }
+ if(error == 1 || isNaN(picnumber)|| isNaN(gallerynumber)){
+ alert("ERROR: KoschtIT Image Gallery didn't find the picture you want to display.");
+ return;
+ }
+ <?php if($admin_ok == 1){ ?>
+ fw.addjs("<?php echo $basedir ?>ki_js_view.php?reldir=<?php echo $reldir ?>&gallery="+kib.dirs[gallerynumber]+"&admin=<?php echo $_GET['admin'] ?>", "kiv", params);
+ <?php } else { ?>
+ fw.addjs("<?php echo $basedir ?>ki_js_view.php?reldir=<?php echo $reldir ?>&gallery="+kib.dirs[gallerynumber], "kiv", params);
+ <?php } ?>
+ }
+
+ this.slideshow = function(gallerynumber) {
+ kib.getImage(gallerynumber + "_0");
+ (function(){
+ if($("thepicture")){
+ var sspic = $("ssbutton");
+ <?php if($browser != "ie6"){ ?>
+ sspic.src = "<?php echo $basedir ?>ki_nav_stop.png";
+ <?php } else { ?>
+ sspic.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo $basedir ?>ki_nav_stop.png)";
+ <?php } ?>
+ sspic.title = "<?php echo htmlentities(stripslashes($slideshow_stop), ENT_QUOTES, "UTF-8") ?>";
+ if($("kiv_gps"))$("kiv_gps").value = "0,0";
+ if($("kiv_help"))$("kiv_help").style.display = "none";
+ kiv.sshelp(1);
+ return;
+ }
+ setTimeout(arguments.callee, 10);
+ })();
+ }
+
+ this.startExplorer = function(gallerynumber) {
+ var params = Array();
+ params.push(gallerynumber);
+ fw.addjs("<?php echo $basedir ?>ki_js_explorer.php?reldir=<?php echo $reldir ?>&gallery="+kib.dirs[gallerynumber], "kie", params);
+ }
+
+ this.makebigger = function(obj){
+ var temp = obj.id.split("_");
+ var cs = kib.customsettings[kib.dirs[temp[0]]] ? kib.customsettings[kib.dirs[temp[0]]] : kib.customsettings['default'];
+ var faktor = cs[5];
+ var temp = obj.alt.split("_");
+ var size = Array( temp[0], temp[1] );
+ var newsize = Array( Math.round(size[0]*faktor), Math.round(size[1]*faktor) );
+ var pos = Array( temp[2], temp[3] );
+ var newpos = Array( pos[0]-0.5*(newsize[0]-size[0]), pos[1]-0.5*(newsize[1]-size[1]) );
+ fw.move(obj, 1, newpos[0], newpos[1]);
+ fw.resize(obj, 1, newsize[0], newsize[1]);
+ obj.style.zIndex = 100;
+ obj.style.borderColor = cs[4];
+ if(cs[16] == 1)fw.dropshadow(obj, 1);
+ }
+
+ this.makesmaller = function(obj){
+ var temp = obj.alt.split("_");
+ var newsize = Array( temp[0], temp[1] );
+ var newpos = Array( temp[2], temp[3] );
+ fw.move(obj, 1, newpos[0], newpos[1]);
+ fw.resize(obj, 1, newsize[0], newsize[1]);
+ obj.style.zIndex = 0;
+ temp = obj.id.split("_");
+ var cs = kib.customsettings[kib.dirs[temp[0]]] ? kib.customsettings[kib.dirs[temp[0]]] : kib.customsettings['default'];
+ obj.style.borderColor = cs[3];
+ if(cs[16] == 1)fw.dropshadow(obj, 0);
+ }
+}
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_changeorder.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_changeorder.php
new file mode 100644
index 00000000..7bb06e65
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_changeorder.php
@@ -0,0 +1,593 @@
+<?php
+ob_start("ob_gzhandler");
+
+session_start();
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser === "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+function removeEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".detachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".removeEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+//------------------------------------------------------------------------ end functions ----------------------------------------------------------------------------------
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ $gallery = "";
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+if($pwok == 0)exit();
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Change image order module 'kic' --------------------------------------------------------------------
+
+function kic_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var windowX;
+ var windowY;
+ var currentfolder = "";
+ var gallerynumber = -1;
+
+ var waitforanim = 0;
+ var dragobj = -1;
+ var hoverobj = -1;
+ var direction = 0;
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function(params){
+ if(typeof(kiv_module) == "function")kiv.closeImage();
+ if(typeof(kie_module) == "function")kie.closeGallery();
+ if(typeof(kis_module) == "function")kis.closeSettings();
+ if(typeof(kid_module) == "function")kid.close();
+ if(typeof(kiu_module) == "function")kiu.closeUpload();
+ if(typeof(kim_module) == "function")kim.close();
+ fw.shadebody(1);
+ var node;
+ if(!$("kic_maindiv")){
+ node = document.createElement("div");
+ node.id = "kic_maindiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ node.style.zIndex = 1000;
+ node.style.overflowX = "hidden";
+ node.style.overflowY = "auto";
+ node.style.display = "block";
+ node.style.padding = "4px";
+ node.innerHTML = "<div id='kic_changediv' style='background:#D2D2D2; border:1px solid #000000; display:none; position:relative;'></div>";
+ document.body.appendChild(node);
+ }
+ if(!$("kic_topdiv")){
+ node = document.createElement("div");
+ node.id = "kic_topdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.height = "45px";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px 20px 0px 120px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderBottom = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ var dirs = "";
+ for(var i = 0; i < kib.dirs.length; i++){
+ dirs = dirs + "<span style='cursor:pointer; text-decoration:underline;margin-right:5px; line-height:14px;' onclick=\"kic.setFolder(" + i + ")\">" + kib.dirs[i] + "</span>";
+ if(kib.dirs[i] == "<?php echo $gallery ?>")gallerynumber = i;
+ }
+ currentfolder = "<?php echo $gallery ?>";
+ node.innerHTML = "<div style='margin-bottom:5px;'><span style='font-size:14px; line-height:18px; font-weight:bold; color:#003; margin-right:5px;'>Selected gallery folder</span><span style='background:#003; border:1px solid #CCC; padding:3px; color:#ffffff;' id='kic_selfolder'>" + currentfolder + "</span></div>" + dirs;
+ document.body.appendChild(node);
+ }
+ if(!$("kic_botdiv")){
+ node = document.createElement("div");
+ node.id = "kic_botdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderTop = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.borderLeft = "1px solid #000000";
+ node.style.right = "25px";
+ node.style.bottom = "0px";
+ node.innerHTML = "<input type='button' value='Close' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px;' onclick='kic.close()' />";
+ document.body.appendChild(node);
+ kib.showhelp(node, 4, 3);
+ node.onmouseover = function(){
+ kib.hidehelp();
+ }
+ }
+ if(!$("kic_wait")){
+ node = document.createElement("div");
+ node.id = "kic_wait";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "50%";
+ node.style.top = "50%";
+ node.style.zIndex = 10000;
+ node.style.width = "200px";
+ node.style.height = "40px";
+ node.style.marginLeft = "-106px";
+ node.style.marginTop = "-26px";
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ node.style.color = "<?php echo $comm_text_color ?>";
+ node.style.font = "14px normal <?php echo $comm_text_font ?>";
+ node.style.padding = "8px 4px 0px 4px";
+ node.style.textAlign = "center";
+ node.style.lineHeight = "17px";
+ node.style.display = "none";
+ node.innerHTML = "Please wait, while folder being scanned ...";
+ document.body.appendChild(node);
+ }
+ <?php addEvent("window", "resize", "viewdim"); ?>
+ viewdim();
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ addEvent("document", "keypress", "kic_taste");
+ } else {
+ addEvent("document", "keydown", "kic_taste");
+ }
+ ?>
+ <?php addEvent("document", "mousemove", "mousemoved"); ?>
+ openGallery();
+ }
+
+ this.destr = function(){
+ <?php removeEvent("window", "resize", "viewdim"); ?>
+ document.body.removeChild($("kic_maindiv"));
+ document.body.removeChild($("kic_wait"));
+ document.body.removeChild($("kic_topdiv"));
+ document.body.removeChild($("kic_botdiv"));
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ removeEvent("document", "keypress", "kic_taste");
+ } else {
+ removeEvent("document", "keydown", "kic_taste");
+ }
+ ?>
+ <?php removeEvent("document", "mousemove", "mousemoved"); ?>
+ fw.shadebody(0);
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ function viewdim(){
+ if(window.innerHeight){
+ windowX = window.innerWidth - 10;
+ windowY = window.innerHeight - 10;
+ } else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
+ windowX = document.documentElement.clientWidth - 10;
+ windowY = document.documentElement.clientHeight - 10;
+ } else if (document.body){ // other Explorers
+ windowX = document.body.clientWidth - 10;
+ windowY = document.body.clientHeight - 10;
+ }
+ var maindiv = $("kic_maindiv");
+ maindiv.style.width = windowX + 2 + "px";
+ maindiv.style.height = windowY + 2 + "px";
+ var container = $("kic_changediv").childNodes;
+ var laenge = container.length - 1;
+ if(laenge != -1){
+ for(var i = 0; i < laenge; i++){
+ var temp = container[i].alt.split("_");
+ container[i].alt = temp[0] + "_" + temp[1];
+ }
+ placeimages();
+ }
+ }
+
+ function openGallery(){
+ $("kic_wait").style.display = "block";
+ var params = "?reldir=<?php echo $reldir ?>&gallery=" + currentfolder + "&gallerynumber=" + gallerynumber + "&tochange=1";
+ fw.getHTTP("<?php echo $basedir ?>ki_explorer.php" + params, kic.gotGallery);
+ }
+
+ this.gotGallery = function(responseText){
+ $("kic_wait").style.display = "none";
+ var changediv = $("kic_changediv");
+ changediv.innerHTML = responseText;
+ changediv.style.display = "block";
+ placeimages();
+ }
+
+ function placeimages(){
+<?php
+$temp = getimagesize("ki_nav_next.png");
+if($nav_always == 1 && $show_nav == 1)$fr_height -= ($temp[1]+18);
+if($th_lines == "auto")$th_lines = ceil($thumbs/($th_per_line));
+if($th_width == "auto")$th_width = round($fr_width/($th_per_line)) - round($fr_height*0.04) - 4;
+if($th_height == "auto")$th_height = round($fr_height/($th_lines)) - round($fr_height*0.04) - 4;
+if($th_to_square == 1) {
+ if($th_width >= $th_height){
+ $th_width = $th_height;
+ }
+ $th_height = $th_width;
+}
+echo "var th_width = ".($th_width-2*$th_bord_size).";";
+echo "var th_height = ".($th_height-2*$th_bord_size).";";
+?>
+ var prozeile = Math.floor(windowX/(th_width+<?php echo $explorer_padding+2*$th_bord_size ?>));
+ var offsetx = (windowX - (prozeile*(th_width+<?php echo $explorer_padding+2*$th_bord_size ?>)))*0.5;
+ var spaltenbreite = (windowX - 2*offsetx)/prozeile;
+ var zeilenhoehe = th_height+<?php echo $explorer_padding+2*$th_bord_size ?>;
+ var offsety = <?php echo $explorer_padding*0.5 ?>;
+
+ var zeile = 1;
+ var spalte = 1;
+
+ var zaehler = 0;
+ var container = $("kic_changediv").childNodes;
+ var act_width;
+ var act_height;
+ for(var i = 0; i < container.length - 1; i++){
+ var bild = container[i];
+ <?php if($th_to_square == 0){ ?>
+ var bildalt = bild.alt.split("_");
+ if(bildalt[0] >= bildalt[1]){
+ var k = bildalt[1]/bildalt[0];
+ act_width = th_width;
+ act_height = k*act_width;
+ if(act_height > th_height){
+ act_height = th_height;
+ act_width = (1/k) * act_height;
+ }
+ } else {
+ var k = bildalt[0]/bildalt[1];
+ act_height = th_height;
+ act_width = k*act_height;
+ if(act_width > th_width){
+ act_width = th_width;
+ act_height = (1/k) * act_width;
+ }
+ }
+ <?php } else { ?>
+ if(th_width < th_height){
+ act_width = th_width;
+ } else {
+ act_width = th_height;
+ }
+ act_height = act_width;
+ <?php } ?>
+ xpos = Math.round(offsetx + spaltenbreite*(spalte-0.5) - 0.5*act_width - <?php echo $th_bord_size ?>);
+ ypos = Math.round(offsety + zeilenhoehe*(zeile-0.5) - 0.5*act_height - <?php echo $th_bord_size ?>);
+
+ bild.style.left = xpos + "px";
+ bild.style.top = ypos + "px";
+ bild.alt = bild.alt + "_"+xpos+"_"+ypos;
+ zaehler++;
+ spalte++;
+ if(zaehler >= prozeile){
+ zaehler = 0;
+ zeile++;
+ spalte = 1;
+ }
+ }
+ $("kic_changediv").lastChild.style.position = "static";
+ $("kic_changediv").lastChild.style.paddingTop = ypos + (0.5*act_height) + "px";
+ $("kic_changediv").lastChild.style.height = 0.5*th_height + <?php echo 2*$th_bord_size+$explorer_padding ?> + "px";
+ }
+
+ this.setFolder = function(folder){
+ if(kib.dirs[folder] !== currentfolder){
+ fw.removejs("kic");
+ fw.addjs("<?php echo $basedir ?>ki_js_changeorder.php?reldir=<?php echo $reldir ?>&gallery=" + kib.dirs[folder], "kic");
+ }
+ }
+
+ this.selectForDrag = function(obj){
+ if(dragobj != -1)return;
+ var temp = obj.id.indexOf("_");
+ var picnumber = Number(obj.id.substr(temp+1));
+ obj.style.zIndex = 0;
+ fw.fade(obj, 50);
+ dragobj = obj;
+ }
+
+ function mousemoved(aEvent) {
+ if(dragobj == -1)return;
+ aEvent = aEvent ? aEvent : window.event;
+ var x = aEvent.clientX ? aEvent.clientX : aEvent.pageX;
+ var y = aEvent.clientY ? aEvent.clientY : aEvent.pageY;
+
+ var maindiv = $("kic_maindiv");
+ y += maindiv.scrollTop;
+
+ var objalt = dragobj.alt.split("_");
+
+ dragobj.style.left = x - 0.5*objalt[0] + "px";
+ dragobj.style.top = y - 0.5*objalt[1] + "px";
+ }
+
+ this.releaseForDrag = function(obj){
+ if(dragobj == -1 || obj != dragobj){
+ return;
+ }
+ var objalt = dragobj.alt.split("_");
+ if(hoverobj == -1){
+ obj.style.zIndex = 1;
+ fw.fade(dragobj, 100);
+ fw.move(dragobj, 1, objalt[2], objalt[3]);
+ } else {
+ var temp = hoverobj.id.indexOf("_");
+ var picnumber = Number(hoverobj.id.substr(temp+1))-1;
+ var newpos = -1;
+ var hoverobjalt = hoverobj.alt.split("_");
+ if(direction == 1){
+ if(hoverobj.getAttribute("moved") == 0){
+ newpos = picnumber;
+ hoverobjalt = hoverobj.previousSibling.alt.split("_");
+ } else {
+ newpos = picnumber + 1;
+ }
+ }
+ if(direction == -1){
+ if(hoverobj.getAttribute("moved") == 0){
+ newpos = picnumber + 2;
+ hoverobjalt = hoverobj.nextSibling.alt.split("_");
+ } else {
+ newpos = picnumber + 1;
+ }
+ }
+ temp = dragobj.id.indexOf("_");
+ var oldpos = Number(dragobj.id.substr(temp+1));
+ if(oldpos == newpos){
+ obj.style.zIndex = 1;
+ fw.fade(dragobj, 100);
+ fw.move(dragobj, 1, objalt[2], objalt[3]);
+ } else {
+ obj.style.zIndex = 1;
+ fw.fade(dragobj, 100);
+ var left = parseInt(hoverobjalt[2]) + 0.5*(parseInt(hoverobjalt[0])-parseInt(objalt[0]));
+ var top = parseInt(hoverobjalt[3]) + 0.5*(parseInt(hoverobjalt[1])-parseInt(objalt[1]));
+ var forcopy = dragobj;
+ fw.move(dragobj, 1, left, top, Array(function(){
+ var clone = forcopy.cloneNode(true);
+ clone.id = gallerynumber + "_" + newpos;
+ if(direction == -1){
+ forcopy.parentNode.insertBefore(clone, forcopy.parentNode.childNodes[newpos]);
+ } else {
+ forcopy.parentNode.insertBefore(clone, forcopy.parentNode.childNodes[newpos+1]);
+ }
+ forcopy.parentNode.removeChild(forcopy);
+ for(var i = 0; i < clone.parentNode.childNodes.length-1; i++){
+ var tempobj = clone.parentNode.childNodes[i];
+ var tempobjalt = tempobj.alt.split("_");
+ tempobj.alt = tempobjalt[0]+"_"+tempobjalt[1];
+ tempobj.id = gallerynumber + "_" + i;
+ tempobj.setAttribute("moved", 0);
+ }
+ placeimages();
+ }));
+ saveneworder(oldpos, newpos);
+ }
+ }
+ dragobj = -1;
+ hoverobj = -1;
+ }
+
+ this.hoverDrag = function(obj){
+ if(dragobj == -1)return;
+ if(obj == dragobj)return;
+
+ var temp = obj.id.indexOf("_");
+ var picnumber = Number(obj.id.substr(temp+1))+1;
+
+ temp = dragobj.id.indexOf("_");
+ var dragpicnumber = Number(dragobj.id.substr(temp+1))+1;
+
+ if(dragpicnumber > picnumber){
+ if(direction == 1){
+ for(var i = dragpicnumber; i < obj.parentNode.childNodes.length; i++){
+ var tempobj = obj.parentNode.childNodes[i-1];
+ if(tempobj.getAttribute("moved") == 1){
+ tempobj.setAttribute("moved", 0);
+ var tempobjalt = tempobj.alt.split("_");
+ var left = tempobjalt[2];
+ var top = tempobjalt[3];
+ fw.move(tempobj, 1, left, top);
+ }
+ }
+ }
+ direction = -1;
+ if(obj.getAttribute("moved") == 0){
+ for(var i = picnumber; i < dragpicnumber; i++){
+ var tempobj = obj.parentNode.childNodes[i-1];
+ tempobj.setAttribute("moved", 1);
+ var tempobjalt = tempobj.alt.split("_");
+ var movethumb = obj.parentNode.childNodes[i];
+ var movethumbalt = movethumb.alt.split("_");
+ var left = parseInt(movethumbalt[2]) + 0.5*(parseInt(movethumbalt[0])-parseInt(tempobjalt[0]));
+ var top = parseInt(movethumbalt[3]) + 0.5*(parseInt(movethumbalt[1])-parseInt(tempobjalt[1]));
+ fw.move(tempobj, 1, left, top);
+ }
+ } else {
+ for(var i = picnumber; i > 0; i--){
+ var tempobj = obj.parentNode.childNodes[i-1];
+ if(tempobj.getAttribute("moved") == 1){
+ tempobj.setAttribute("moved", 0);
+ var tempobjalt = tempobj.alt.split("_");
+ var left = tempobjalt[2];
+ var top = tempobjalt[3];
+ fw.move(tempobj, 1, left, top);
+ } else {
+ break;
+ }
+ }
+ }
+ } else {
+ if(direction == -1){
+ for(var i = dragpicnumber; i > 0; i--){
+ var tempobj = obj.parentNode.childNodes[i-1];
+ if(tempobj.getAttribute("moved") == 1){
+ tempobj.setAttribute("moved", 0);
+ var tempobjalt = tempobj.alt.split("_");
+ var left = tempobjalt[2];
+ var top = tempobjalt[3];
+ fw.move(tempobj, 1, left, top);
+ }
+ }
+ }
+ direction = 1;
+ if(obj.getAttribute("moved") == 0){
+ for(var i = picnumber; i > dragpicnumber; i--){
+ var tempobj = obj.parentNode.childNodes[i-1];
+ tempobj.setAttribute("moved", 1);
+ var tempobjalt = tempobj.alt.split("_");
+ var movethumb = obj.parentNode.childNodes[i-2];
+ var movethumbalt = movethumb.alt.split("_");
+ var left = parseInt(movethumbalt[2]) + 0.5*(parseInt(movethumbalt[0])-parseInt(tempobjalt[0]));
+ var top = parseInt(movethumbalt[3]) + 0.5*(parseInt(movethumbalt[1])-parseInt(tempobjalt[1]));
+ fw.move(tempobj, 1, left, top);
+ }
+ } else {
+ for(var i = picnumber; i < obj.parentNode.childNodes.length; i++){
+ var tempobj = obj.parentNode.childNodes[i-1];
+ if(tempobj.getAttribute("moved") == 1){
+ tempobj.setAttribute("moved", 0);
+ var tempobjalt = tempobj.alt.split("_");
+ var left = tempobjalt[2];
+ var top = tempobjalt[3];
+ fw.move(tempobj, 1, left, top);
+ } else {
+ break;
+ }
+ }
+ }
+ }
+
+ hoverobj = obj;
+ }
+
+ function saveneworder(oldpos, newpos){
+ var params = "?gallery=" + currentfolder + "&oldpos=" + oldpos + "&newpos=" + newpos;
+ fw.getHTTP("<?php echo $basedir ?>ki_saveneworder.php" + params, savedneworder);
+ }
+
+ function savedneworder(responseText){
+ if(responseText != "ok"){
+ var savedfile = currentfolder + "_dir";
+ alert("ERROR: File '"+savedfile+"' could not be saved/modified.");
+ }
+ }
+
+ this.close = function(){
+ kib.hidehelp();
+ var obj = $("kic_changediv").childNodes;
+ for(var i = 0; i < obj.length - 1; i++){
+ obj[i].src = "";
+ }
+ fw.removejs("kic");
+ kib.reinit();
+ }
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ function kic_taste(aEvent) {
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ if(keyCode == 27){
+ kic.close();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_delete.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_delete.php
new file mode 100644
index 00000000..10f82757
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_delete.php
@@ -0,0 +1,425 @@
+<?php
+ob_start("ob_gzhandler");
+
+session_start();
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser === "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+function removeEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".detachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".removeEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+//------------------------------------------------------------------------ end functions ----------------------------------------------------------------------------------
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ $gallery = "";
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+if($pwok == 0)exit();
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Delete Images module 'kid' --------------------------------------------------------------------
+
+function kid_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var windowX;
+ var windowY;
+ var currentfolder = "";
+ var gallerynumber = -1;
+
+ var waitforanim = 0;
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function(params){
+ if(typeof(kiv_module) == "function")kiv.closeImage();
+ if(typeof(kie_module) == "function")kie.closeGallery();
+ if(typeof(kis_module) == "function")kis.closeSettings();
+ if(typeof(kiu_module) == "function")kiu.closeUpload();
+ if(typeof(kic_module) == "function")kic.close();
+ if(typeof(kim_module) == "function")kim.close();
+ fw.shadebody(1);
+ var node;
+ if(!$("kid_maindiv")){
+ node = document.createElement("div");
+ node.id = "kid_maindiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ node.style.zIndex = 1000;
+ node.style.overflowX = "hidden";
+ node.style.overflowY = "auto";
+ node.style.display = "block";
+ node.style.padding = "4px";
+ node.innerHTML = "<div id='kid_deletediv' style='background:#D2D2D2; border:1px solid #000000; display:none; position:relative;'></div>";
+ document.body.appendChild(node);
+ }
+ if(!$("kid_topdiv")){
+ node = document.createElement("div");
+ node.id = "kid_topdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.height = "45px";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px 20px 0px 120px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderBottom = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ var dirs = "";
+ for(var i = 0; i < kib.dirs.length; i++){
+ dirs = dirs + "<span style='cursor:pointer; text-decoration:underline;margin-right:5px; line-height:14px;' onclick=\"kid.setFolder(" + i + ")\">" + kib.dirs[i] + "</span>";
+ if(kib.dirs[i] == "<?php echo $gallery ?>")gallerynumber = i;
+ }
+ currentfolder = "<?php echo $gallery ?>";
+ node.innerHTML = "<div style='margin-bottom:5px;'><span style='font-size:14px; line-height:18px; font-weight:bold; color:#003; margin-right:5px;'>Selected gallery folder</span><span style='background:#003; border:1px solid #CCC; padding:3px; color:#ffffff;' id='kid_selfolder'>" + currentfolder + "</span></div>" + dirs;
+ document.body.appendChild(node);
+ }
+ if(!$("kid_botdiv")){
+ node = document.createElement("div");
+ node.id = "kid_botdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderTop = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.borderLeft = "1px solid #000000";
+ node.style.right = "25px";
+ node.style.bottom = "0px";
+ node.innerHTML = "<input type='button' value='Close' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px;' onclick='kid.close()' />";
+ document.body.appendChild(node);
+ kib.showhelp(node, 4, 4);
+ node.onmouseover = function(){
+ kib.hidehelp();
+ }
+ }
+ if(!$("kid_wait")){
+ node = document.createElement("div");
+ node.id = "kid_wait";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "50%";
+ node.style.top = "50%";
+ node.style.zIndex = 10000;
+ node.style.width = "200px";
+ node.style.height = "40px";
+ node.style.marginLeft = "-106px";
+ node.style.marginTop = "-26px";
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ node.style.color = "<?php echo $comm_text_color ?>";
+ node.style.font = "14px normal <?php echo $comm_text_font ?>";
+ node.style.padding = "8px 4px 0px 4px";
+ node.style.textAlign = "center";
+ node.style.lineHeight = "17px";
+ node.style.display = "none";
+ node.innerHTML = "Please wait, while folder being scanned ...";
+ document.body.appendChild(node);
+ }
+ <?php addEvent("window", "resize", "viewdim"); ?>
+ viewdim();
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ addEvent("document", "keypress", "kid_taste");
+ } else {
+ addEvent("document", "keydown", "kid_taste");
+ }
+ ?>
+ openGallery();
+ }
+
+ this.destr = function(){
+ <?php removeEvent("window", "resize", "viewdim"); ?>
+ document.body.removeChild($("kid_maindiv"));
+ document.body.removeChild($("kid_wait"));
+ document.body.removeChild($("kid_topdiv"));
+ document.body.removeChild($("kid_botdiv"));
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ removeEvent("document", "keypress", "kid_taste");
+ } else {
+ removeEvent("document", "keydown", "kid_taste");
+ }
+ ?>
+ fw.shadebody(0);
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ function viewdim(){
+ if(window.innerHeight){
+ windowX = window.innerWidth - 10;
+ windowY = window.innerHeight - 10;
+ } else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
+ windowX = document.documentElement.clientWidth - 10;
+ windowY = document.documentElement.clientHeight - 10;
+ } else if (document.body){ // other Explorers
+ windowX = document.body.clientWidth - 10;
+ windowY = document.body.clientHeight - 10;
+ }
+ var maindiv = $("kid_maindiv");
+ maindiv.style.width = windowX + 2 + "px";
+ maindiv.style.height = windowY + 2 + "px";
+ var container = $("kid_deletediv").childNodes;
+ var laenge = container.length - 1;
+ if(laenge != -1){
+ for(var i = 0; i < laenge; i++){
+ var temp = container[i].alt.split("_");
+ container[i].alt = temp[0] + "_" + temp[1];
+ }
+ placeimages();
+ }
+ }
+
+ function openGallery(){
+ $("kid_wait").style.display = "block";
+ var params = "?reldir=<?php echo $reldir ?>&gallery=" + currentfolder + "&gallerynumber=" + gallerynumber + "&todelete=1";
+ fw.getHTTP("<?php echo $basedir ?>ki_explorer.php" + params, kid.gotGallery);
+ }
+
+ this.gotGallery = function(responseText){
+ $("kid_wait").style.display = "none";
+ var deletediv = $("kid_deletediv");
+ deletediv.innerHTML = responseText;
+ deletediv.style.display = "block";
+ placeimages();
+ }
+
+ function placeimages(){
+<?php
+$temp = getimagesize("ki_nav_next.png");
+if($nav_always == 1 && $show_nav == 1)$fr_height -= ($temp[1]+18);
+if($th_lines == "auto")$th_lines = ceil($thumbs/($th_per_line));
+if($th_width == "auto")$th_width = round($fr_width/($th_per_line)) - round($fr_height*0.04) - 4;
+if($th_height == "auto")$th_height = round($fr_height/($th_lines)) - round($fr_height*0.04) - 4;
+if($th_to_square == 1) {
+ if($th_width >= $th_height){
+ $th_width = $th_height;
+ }
+ $th_height = $th_width;
+}
+echo "var th_width = ".($th_width-2*$th_bord_size).";";
+echo "var th_height = ".($th_height-2*$th_bord_size).";";
+?>
+ var prozeile = Math.floor(windowX/(th_width+<?php echo $explorer_padding+2*$th_bord_size ?>));
+ var offsetx = (windowX - (prozeile*(th_width+<?php echo $explorer_padding+2*$th_bord_size ?>)))*0.5;
+ var spaltenbreite = (windowX - 2*offsetx)/prozeile;
+ var zeilenhoehe = th_height+<?php echo $explorer_padding+2*$th_bord_size ?>;
+ var offsety = <?php echo $explorer_padding*0.5 ?>;
+
+ var zeile = 1;
+ var spalte = 1;
+
+ var zaehler = 0;
+ var container = $("kid_deletediv").childNodes;
+ var act_width;
+ var act_height;
+ for(var i = 0; i < container.length - 1; i++){
+ <?php if($th_to_square == 0){ ?>
+ var obj = kib.pics[gallerynumber][i];
+ if(obj.x >= obj.y){
+ var k = obj.y/obj.x;
+ act_width = th_width;
+ act_height = k*act_width;
+ if(act_height > th_height){
+ act_height = th_height;
+ act_width = (1/k) * act_height;
+ }
+ } else {
+ var k = obj.x/obj.y;
+ act_height = th_height;
+ act_width = k*act_height;
+ if(act_width > th_width){
+ act_width = th_width;
+ act_height = (1/k) * act_width;
+ }
+ }
+ <?php } else { ?>
+ if(th_width < th_height){
+ act_width = th_width;
+ } else {
+ act_width = th_height;
+ }
+ act_height = act_width;
+ <?php } ?>
+ xpos = Math.round(offsetx + spaltenbreite*(spalte-0.5) - 0.5*act_width - <?php echo $th_bord_size ?>);
+ ypos = Math.round(offsety + zeilenhoehe*(zeile-0.5) - 0.5*act_height - <?php echo $th_bord_size ?>);
+
+ var bild = container[i];
+ bild.style.left = xpos + "px";
+ bild.style.top = ypos + "px";
+ bild.alt = bild.alt + "_"+xpos+"_"+ypos;
+ zaehler++;
+ spalte++;
+ if(zaehler >= prozeile){
+ zaehler = 0;
+ zeile++;
+ spalte = 1;
+ }
+ }
+ $("kid_deletediv").lastChild.style.position = "static";
+ $("kid_deletediv").lastChild.style.paddingTop = ypos + (0.5*act_height) + "px";
+ $("kid_deletediv").lastChild.style.height = 0.5*th_height + <?php echo 2*$th_bord_size+$explorer_padding ?> + "px";
+ }
+
+ this.setFolder = function(folder){
+ if(kib.dirs[folder] !== currentfolder){
+ fw.removejs("kid");
+ fw.addjs("<?php echo $basedir ?>ki_js_delete.php?reldir=<?php echo $reldir ?>&gallery=" + kib.dirs[folder], "kid");
+ }
+ }
+
+ this.deleteImage = function(obj) {
+ if(waitforanim > 0)return;
+ var temp = obj.id.indexOf("_");
+ var picnumber = Number(obj.id.substr(temp+1));
+ var thumb = obj.src.substr(obj.src.lastIndexOf("/")+1);
+ var params = "?gallery=" + kib.dirs[gallerynumber] + "&file=" + encodeURIComponent(kib.pics[gallerynumber][picnumber].file) + "&thumb=" + encodeURIComponent(thumb);
+ fw.getHTTP("<?php echo $basedir ?>ki_deleteimage.php" + params, null, null);
+
+ var go = 0;
+ for(var i = 1; i < obj.parentNode.childNodes.length-1; i++){
+ var tempobj = obj.parentNode.childNodes[i-1];
+ if(tempobj == obj){
+ waitforanim = obj.parentNode.childNodes.length-1-i;
+ go = 1;
+ }
+ if(go == 0)continue;
+ var tempobjalt = tempobj.alt.split("_");
+ var movethumb = obj.parentNode.childNodes[i];
+ var movethumbalt = movethumb.alt.split("_");
+ var left = parseInt(tempobjalt[2]) + 0.5*(parseInt(tempobjalt[0])-parseInt(movethumbalt[0]));
+ var top = parseInt(tempobjalt[3]) + 0.5*(parseInt(tempobjalt[1])-parseInt(movethumbalt[1]));
+ fw.move(movethumb, 1, left, top, Array( newaltforthumb, movethumb, movethumbalt[0], movethumbalt[1], left, top));
+ }
+ obj.parentNode.removeChild(obj);
+
+ if(go == 0)waitforanim = 0;
+ }
+
+ function newaltforthumb(obj, w, h, l, t){
+ obj.alt = w+"_"+h+"_"+l+"_"+t;
+ waitforanim--;
+ }
+
+ this.close = function(){
+ kib.hidehelp();
+ var obj = $("kid_deletediv").childNodes;
+ for(var i = 0; i < obj.length - 1; i++){
+ obj[i].src = "";
+ }
+ fw.removejs("kid");
+ kib.reinit();
+ }
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ function kid_taste(aEvent) {
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ if(keyCode == 27){
+ kid.close();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_explorer.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_explorer.php
new file mode 100644
index 00000000..8615ec7d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_explorer.php
@@ -0,0 +1,349 @@
+<?php
+ob_start("ob_gzhandler");
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser === "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+function removeEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".detachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".removeEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+//------------------------------------------------------------------------ end functions ----------------------------------------------------------------------------------
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ $gallery = "";
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Explorer module 'kie' --------------------------------------------------------------------
+
+function kie_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var windowX;
+ var windowY;
+ var gallerynumber = -1;
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function(params){
+ gallerynumber = params[0];
+ var node;
+ if(!$("kie_maindiv")){
+ node = document.createElement("div");
+ node.id = "kie_maindiv";
+ node.style.background = "<?php echo $fr_color ?>";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ node.style.zIndex = 1000;
+ node.style.overflowX = "hidden";
+ node.style.overflowY = "auto";
+ node.style.display = "none";
+ document.body.appendChild(node);
+ }
+ if(!$("kie_tb")){
+ <?php $breite = getimagesize("ki_nav_close.png"); ?>
+ var tbcontent = "<?php draw_image("ki_nav_close.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kie.closeGallery();\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_kiv_close), ENT_QUOTES, "UTF-8")."'"); ?>";
+ node = document.createElement("div");
+ node.id = "kie_tb";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.top = "-20px";
+ node.style.left = "50%";
+ node.style.marginLeft = "-<?php echo 0.5*($breite[0]+14) ?>px";
+ node.style.background = "<?php echo $nav_color ?>";
+ <?php if($nav_style == 2){ ?>
+ node.style.borderRadius = "20px";
+ node.style.MozBorderRadius = "20px";
+ node.style.WebkitBorderRadius = "20px";
+ <?php } ?>
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ node.style.zIndex = 10000;
+ node.style.padding = "20px 3px 3px 3px";
+ node.style.lineHeight = "12px";
+ node.innerHTML = tbcontent;
+ document.body.appendChild(node);
+ }
+ if(!$("kie_wait")){
+ node = document.createElement("div");
+ node.id = "kie_wait";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "50%";
+ node.style.top = "50%";
+ node.style.zIndex = 10000;
+ node.style.width = "200px";
+ node.style.height = "40px";
+ node.style.marginLeft = "-106px";
+ node.style.marginTop = "-26px";
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ node.style.color = "<?php echo $comm_text_color ?>";
+ node.style.font = "14px normal <?php echo $comm_text_font ?>";
+ node.style.padding = "8px 4px 0px 4px";
+ node.style.textAlign = "center";
+ node.style.lineHeight = "17px";
+ node.innerHTML = "Please wait, while folder being scanned ...";
+ document.body.appendChild(node);
+ }
+ <?php addEvent("window", "resize", "viewdim"); ?>
+ viewdim();
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ addEvent("document", "keypress", "taste");
+ } else {
+ addEvent("document", "keydown", "taste");
+ }
+ ?>
+ openGallery();
+ }
+
+ this.destr = function(){
+ <?php removeEvent("window", "resize", "viewdim"); ?>
+ document.body.removeChild($("kie_maindiv"));
+ document.body.removeChild($("kie_tb"));
+ document.body.removeChild($("kie_wait"));
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ removeEvent("document", "keypress", "taste");
+ } else {
+ removeEvent("document", "keydown", "taste");
+ }
+ ?>
+
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ function viewdim(){
+ if(window.innerHeight){
+ windowX = window.innerWidth;
+ windowY = window.innerHeight;
+ } else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
+ windowX = document.documentElement.clientWidth;
+ windowY = document.documentElement.clientHeight;
+ } else if (document.body){ // other Explorers
+ windowX = document.body.clientWidth;
+ windowY = document.body.clientHeight;
+ }
+ var maindiv = $("kie_maindiv");
+ maindiv.style.width = windowX + "px";
+ maindiv.style.height = windowY + "px";
+ var container = $("kie_maindiv").childNodes;
+ var laenge = container.length - 1;
+ if(laenge != -1){
+ for(var i = 0; i < laenge; i++){
+ var temp = container[i].alt.split("_");
+ container[i].alt = temp[0] + "_" + temp[1];
+ }
+ placeimages();
+ }
+ }
+
+ function openGallery(){
+ fw.shadebody(1, Array( function(){
+ $("kie_tb").style.display = "block";
+ var params = "?reldir=<?php echo $reldir ?>&gallery=" + kib.dirs[gallerynumber] + "&gallerynumber=" + gallerynumber;
+ fw.getHTTP("<?php echo $basedir ?>ki_explorer.php" + params, kie.gotGallery);
+ } ));
+ }
+
+ this.gotGallery = function(responseText){
+ $("kie_wait").style.display = "none";
+ var maindiv = $("kie_maindiv");
+ maindiv.innerHTML = responseText;
+ maindiv.style.display = "block";
+ placeimages();
+ }
+
+ function placeimages(){
+<?php
+$temp = getimagesize("ki_nav_next.png");
+if($nav_always == 1 && $show_nav == 1)$fr_height -= ($temp[1]+18);
+if($th_lines == "auto")$th_lines = ceil($thumbs/($th_per_line));
+if($th_width == "auto")$th_width = round($fr_width/($th_per_line)) - round($fr_height*0.04) - 4;
+if($th_height == "auto")$th_height = round($fr_height/($th_lines)) - round($fr_height*0.04) - 4;
+if($th_to_square == 1) {
+ if($th_width >= $th_height){
+ $th_width = $th_height;
+ }
+ $th_height = $th_width;
+}
+echo "var th_width = ".($th_width-2*$th_bord_size).";";
+echo "var th_height = ".($th_height-2*$th_bord_size).";";
+?>
+ var prozeile = Math.floor(windowX/(th_width+<?php echo $explorer_padding+2*$th_bord_size ?>));
+ var offsetx = (windowX - (prozeile*(th_width+<?php echo $explorer_padding+2*$th_bord_size ?>)))*0.5;
+ var spaltenbreite = (windowX - 2*offsetx)/prozeile;
+ var zeilenhoehe = th_height+<?php echo $explorer_padding+2*$th_bord_size ?>;
+ var offsety = <?php echo $explorer_padding*0.5 ?>;
+
+ var zeile = 1;
+ var spalte = 1;
+
+ var zaehler = 0;
+ var container = $("kie_maindiv").childNodes;
+ var act_width;
+ var act_height;
+ for(var i = 0; i < container.length - 1; i++){
+ <?php if($th_to_square == 0){ ?>
+ var obj = kib.pics[gallerynumber][i];
+ if(obj.x >= obj.y){
+ var k = obj.y/obj.x;
+ act_width = th_width;
+ act_height = k*act_width;
+ if(act_height > th_height){
+ act_height = th_height;
+ act_width = (1/k) * act_height;
+ }
+ } else {
+ var k = obj.x/obj.y;
+ act_height = th_height;
+ act_width = k*act_height;
+ if(act_width > th_width){
+ act_width = th_width;
+ act_height = (1/k) * act_width;
+ }
+ }
+ <?php } else { ?>
+ if(th_width < th_height){
+ act_width = th_width;
+ } else {
+ act_width = th_height;
+ }
+ act_height = act_width;
+ <?php } ?>
+ xpos = Math.round(offsetx + spaltenbreite*(spalte-0.5) - 0.5*act_width - <?php echo $th_bord_size ?>);
+ ypos = Math.round(offsety + zeilenhoehe*(zeile-0.5) - 0.5*act_height - <?php echo $th_bord_size ?>);
+
+ var bild = container[i];
+ bild.style.left = xpos + "px";
+ bild.style.top = ypos + "px";
+ bild.alt = bild.alt + "_"+xpos+"_"+ypos;
+ zaehler++;
+ spalte++;
+ if(zaehler >= prozeile){
+ zaehler = 0;
+ zeile++;
+ spalte = 1;
+ }
+ }
+ $("kie_maindiv").lastChild.style.top = ypos + (0.5*act_height) + "px";
+ $("kie_maindiv").lastChild.style.height = 0.5*th_height + <?php echo 2*$th_bord_size+$explorer_padding ?> + "px";
+ }
+
+ this.getImage = function(picstring) {
+ $("kie_maindiv").style.zIndex = 99;
+ $("kie_tb").style.display = "none";
+ kib.getImage(picstring);
+ }
+
+ this.closeGallery = function(){
+ var obj = $("kie_maindiv").childNodes;
+ for(var i = 0; i < obj.length - 1; i++){
+ obj[i].src = "";
+ }
+ fw.removejs("kie");
+ fw.shadebody(0);
+ }
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ function taste(aEvent) {
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ if(keyCode == 27){
+ if(typeof(kiv_module) == "function")return;
+ kie.closeGallery();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_framework.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_framework.php
new file mode 100644
index 00000000..be51112d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_framework.php
@@ -0,0 +1,1070 @@
+<?php
+ob_start("ob_gzhandler");
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser === "ie6" || $browser === "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+//------------------------------------------------------------------------ end functions ----------------------------------------------------------------------------------
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+include_once("../ki_config/ki_setup.php");
+
+$admin_ok = 0;
+if(isset($_GET['admin']) && $admin === $_GET['admin']){
+ $admin_ok = 1;
+}
+$user_ok = 0;
+if(isset($_GET['user']) && $user === $_GET['user']){
+ $user_ok = 1;
+}
+
+$resizespeed = 5;
+$movespeed = 5;
+$fadespeed = 8;
+
+header("Content-Type: application/x-javascript");
+?>
+
+//-------------------------------------------------------------------------- FRAMEWORK -------------------------------------------------------------------------------
+
+var fw;
+
+(function(){
+ (function(){
+ <?php if(in_array($browser, array("ie6", "ie7"))) { ?>
+ try {
+ document.documentElement.doScroll("left");
+ if(document.body)
+ fw_ready();
+ else {
+ setTimeout(arguments.callee, 5);
+ }
+ } catch(error) {
+ setTimeout(arguments.callee, 5);
+ }
+ <?php } else if(in_array($browser, array("opera", "gecko", "ie9"))) { ?>
+ document.addEventListener("DOMContentLoaded", fw_ready, false);
+ <?php } else if($browser === "webkit") { ?>
+ var state = document.readyState;
+ if (state == 'loaded' || state == 'complete'){
+ fw_ready();
+ } else {
+ setTimeout(arguments.callee, 5);
+ }
+ <?php } else { ?>
+ <?php addEvent("window", "load", "function(){fw_ready();}"); ?>
+ <?php } ?>
+ })();
+})();
+
+function fw_ready(){
+ if(fw)return;
+ fw = new fw_framework();
+ fw.init();
+}
+
+function fw_framework(){
+
+ /* intern ----------------------------------------------------------------------------- Globals --------------------------------------------------------------------------- */
+
+ var animation = Array();
+ var intanimation = 0;
+ var bodyscroll = 0;
+
+ /* intern ----------------------------------------------------------------------------- Helper functions --------------------------------------------------------------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ this.findPos = function(obj){
+ var curleft = curtop = 0;
+ if (obj.offsetParent) {
+ curleft = obj.offsetLeft;
+ curtop = obj.offsetTop;
+ while (obj = obj.offsetParent) {
+ curleft += obj.offsetLeft;
+ curtop += obj.offsetTop;
+ }
+ }
+ return [curleft,curtop];
+ }
+
+ // type: 1 = normal, 2 = komplett mit padding
+ this.getDim = function(obj, type){
+ var y = obj.offsetHeight;
+ var x = obj.offsetWidth;
+ <?php if($browser === "ie6" || $browser === "ie7" || $browser === "ie9") { ?>
+ if(type == 1){
+ x = x - parseInt(getStyle(obj, "paddingLeft")) - parseInt(getStyle(obj, "paddingRight"));
+ y = y - parseInt(getStyle(obj, "paddingTop")) - parseInt(getStyle(obj, "paddingBottom"));
+ var temp = parseInt(getStyle(obj, "borderLeftWidth"));
+ if(!isNaN(temp))x -= temp;
+ temp = parseInt(getStyle(obj, "borderRightWidth"));
+ if(!isNaN(temp))x -= temp;
+ temp = parseInt(getStyle(obj, "borderTopWidth"));
+ if(!isNaN(temp))y -= temp;
+ temp = parseInt(getStyle(obj, "borderBottomWidth"));
+ if(!isNaN(temp))y -= temp;
+ }
+ <?php } else { ?>
+ if(type == 1){
+ x = x - parseInt(getStyle(obj, "padding-left")) - parseInt(getStyle(obj, "padding-right"));
+ y = y - parseInt(getStyle(obj, "padding-top")) - parseInt(getStyle(obj, "padding-bottom"));
+ x = x - parseInt(getStyle(obj, "border-left-width")) - parseInt(getStyle(obj, "border-right-width"));
+ y = y - parseInt(getStyle(obj, "border-top-width")) - parseInt(getStyle(obj, "border-bottom-width"));
+ }
+ <?php } ?>
+ return [x, y];
+ }
+
+ function getStyle(obj, styleProp){
+ <?php if($browser === "ie6" || $browser === "ie7" || $browser === "ie9") { ?>
+ return obj.currentStyle[styleProp];
+ <?php } else { ?>
+ return document.defaultView.getComputedStyle(obj,null).getPropertyValue(styleProp);
+ <?php } ?>
+ }
+
+ function ANIOBJ(type_, aniarray_, original_, after_){
+ this.type = type_;
+ this.aniarray = aniarray_;
+ this.original = original_;
+ this.after = after_;
+ this.step = 0;
+ switch(type_){
+ case 1:
+ this.aniarraylength = aniarray_.length/2;
+ break;
+ case 2:
+ this.aniarraylength = aniarray_.length/2;
+ break;
+ case 5:
+ this.aniarraylength = aniarray_.length/2;
+ break;
+ default:
+ this.aniarraylength = aniarray_.length;
+ break;
+ }
+ }
+
+ function startanimation(type, ma, obj, continueobj){
+ <?php if($disable_animation == 0){ ?>
+ var found = 0;
+ for(var i = 0; i < animation.length; i++){
+ if(animation[i].original == obj){
+ if(animation[i].type == type){
+ animation[i] = new ANIOBJ(type, ma, obj, continueobj);
+ found = 1;
+ break;
+ }
+ }
+ }
+ if(found == 0)animation.push( new ANIOBJ(type, ma, obj, continueobj) );
+ if(intanimation == 0)doanimation();
+ <?php } else { ?>
+ var actobj = new ANIOBJ(type, ma, obj, continueobj);
+ var style = actobj.original.style;
+ var last = actobj.aniarraylength - 1;
+ switch(actobj.type){
+ case 1: // resize normal
+ style.width = actobj.aniarray[2*last] + "px";
+ style.height = actobj.aniarray[2*last+1] + "px";
+ break;
+ case 2: // resize centered
+ style.width = actobj.aniarray[2*last] + "px";
+ style.height = actobj.aniarray[2*last+1] + "px"
+ style.marginLeft = -(0.5*actobj.aniarray[2*last]) + "px";
+ style.marginTop = -(0.5*actobj.aniarray[2*last+1]) + "px";
+ break;
+ case 3: // resize only width
+ style.width = actobj.aniarray[last] + "px";
+ break;
+ case 4: // resize only height
+ style.height = actobj.aniarray[last] + "px";
+ break;
+ case 5: // move normal
+ style.left = actobj.aniarray[2*last] + "px";
+ style.top = actobj.aniarray[2*last+1] + "px";
+ break;
+ case 6: // move only left
+ style.left = actobj.aniarray[last] + "px";
+ break;
+ case 7: // move only top
+ style.top = actobj.aniarray[last] + "px";
+ break;
+ case 8: // fade
+ <?php
+ if($browser === "ie7" || $browser === "ie6") {
+ ?>
+ actobj.original.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + actobj.aniarray[last] + ')';
+ <?php
+ } else {
+ ?>
+ actobj.original.style.opacity = actobj.aniarray[last]*0.01;
+ <?php } ?>
+ break;
+ }
+ if(actobj.type == 8){
+ if(actobj.aniarray[last] == 0)
+ actobj.original.style.display = "none";
+ <?php if($browser == "ie6" || $browser == "ie7"){ ?>
+ if(actobj.aniarray[last] == 100){
+ actobj.original.style.filter = "";
+ }
+ <?php } ?>
+ }
+ if(actobj.after != null){
+ actobj.after[0](actobj.after[1], actobj.after[2], actobj.after[3], actobj.after[4], actobj.after[5], actobj.after[6]);
+ }
+ <?php } ?>
+ }
+
+ function doanimation(){
+ if(animation.length == 0){
+ clearInterval(intanimation);
+ intanimation = 0;
+ return;
+ }
+
+ if(intanimation == 0)intanimation = setInterval( doanimation, 30 );
+ for(var i = 0; i < animation.length; i++){
+ var actobj = animation[i];
+ if( actobj.step >= actobj.aniarraylength ){
+ animation.splice(i, 1);
+ if(i != animation.length-1)i--;
+ if(actobj.type == 8){
+ if(actobj.aniarray[actobj.step-1] == 0)
+ actobj.original.style.display = "none";
+ <?php if($browser === "ie6" || $browser === "ie7"){ ?>
+ if(actobj.aniarray[actobj.step-1] == 100){
+ actobj.original.style.filter = "";
+ }
+ <?php } ?>
+ }
+ if(actobj.after != null){
+ actobj.after[0](actobj.after[1], actobj.after[2], actobj.after[3], actobj.after[4], actobj.after[5], actobj.after[6]);
+ }
+ continue;
+ }
+ var style = actobj.original.style;
+ switch(actobj.type){
+ case 1: // resize normal
+ style.width = actobj.aniarray[2*actobj.step] + "px";
+ style.height = actobj.aniarray[2*actobj.step+1] + "px";
+ break;
+ case 2: // resize centered
+ style.width = actobj.aniarray[2*actobj.step] + "px";
+ style.height = actobj.aniarray[2*actobj.step+1] + "px"
+ style.marginLeft = -(0.5*actobj.aniarray[2*actobj.step]) + "px";
+ style.marginTop = -(0.5*actobj.aniarray[2*actobj.step+1]) + "px";
+ break;
+ case 3: // resize only width
+ style.width = actobj.aniarray[actobj.step] + "px";
+ break;
+ case 4: // resize only height
+ style.height = actobj.aniarray[actobj.step] + "px";
+ break;
+ case 5: // move normal
+ style.left = actobj.aniarray[2*actobj.step] + "px";
+ style.top = actobj.aniarray[2*actobj.step+1] + "px";
+ break;
+ case 6: // move only left
+ style.left = actobj.aniarray[actobj.step] + "px";
+ break;
+ case 7: // move only top
+ style.top = actobj.aniarray[actobj.step] + "px";
+ break;
+ case 8: // fade
+ <?php if($browser !== "ie7" && $browser !== "ie6") { ?>
+ style.opacity = actobj.aniarray[actobj.step]*0.01;
+ <?php } ?>
+ break;
+ }
+ actobj.step++;
+ }
+ }
+
+ /* ----------------------------------------------------------------------------- Animation functions --------------------------------------------------------------------------- */
+
+ this.shadebody = function(yes, continueobj){
+ if(yes == 1){
+ <?php if($browser !== "webkit") { ?>
+ bodyscroll = document.getElementsByTagName("html")[0].scrollTop;
+ <?php } else { ?>
+ bodyscroll = document.body.scrollTop;
+ <?php } ?>
+ <?php if($browser === "ie6") { ?>
+ document.getElementsByTagName("html")[0].style.overflowX = "hidden";
+ document.getElementsByTagName("html")[0].style.overflowY = "hidden";
+ window.scrollTo(0,0);
+ <?php } else { ?>
+ document.getElementsByTagName("html")[0].style.overflow = "hidden";
+ <?php if($browser !== "webkit") { ?>
+ document.getElementsByTagName("html")[0].scrollTop = bodyscroll;
+ <?php } else { ?>
+ document.body.scrollTop = bodyscroll;
+ <?php } ?>
+ <?php } ?>
+ $("fw_blend").style.display = "block";
+ } else {
+ $("fw_blend").style.display = "none";
+ <?php if($browser === "ie6") { ?>
+ document.getElementsByTagName("html")[0].style.overflowY = "scroll";
+ document.getElementsByTagName("html")[0].style.overflowX = "auto";
+ <?php } else { ?>
+ document.getElementsByTagName("html")[0].style.overflow = "auto";
+ <?php } ?>
+ <?php if($browser == "opera" || $browser == "webkit") { ?>
+ window.scrollBy(0, 1);
+ window.scrollBy(0, -1);
+ <?php } ?>
+ <?php if($browser !== "webkit") { ?>
+ document.getElementsByTagName("html")[0].scrollTop = bodyscroll;
+ <?php } else { ?>
+ document.body.scrollTop = bodyscroll;
+ <?php } ?>
+ }
+ if(continueobj != null){
+ continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ }
+ }
+
+ // type: 0 = none, 1 = outside, 2 = inside, 3 = with divs inside, 4 = none with divs inside
+ this.dropshadow = function(id, type, continueobj){
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ if(continueobj != null)continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ return;
+ }
+ <?php if(in_array($browser, array("ie9", "opera", "gecko", "webkit"))){ ?>
+ if(type == 1){
+ obj.style.boxShadow = "0px 0px 10px #000";
+ } else if(type == 2){
+ obj.style.boxShadow = "inside 0px 0px 10px #000";
+ } else if(type == 0){
+ obj.style.boxShadow = "none";
+ } else if(type == 3){
+ for(var i = 0; i < 4; i++){
+ for(var j = 0; j < 5; j++){
+ var node = document.createElement("div");
+ node.style.position = "absolute";
+ if(i != 1){
+ node.style.left = "0%";
+ } else {
+ node.style.right = "0%";
+ }
+ if(i != 2){
+ node.style.top = "0%";
+ } else {
+ node.style.bottom = "0%";
+ }
+ if(i == 0 || i == 2){
+ node.style.width = "100%";
+ node.style.height = (j+1) + "px";
+ } else {
+ node.style.width = (j+1) + "px";
+ node.style.height = "100%";
+ }
+ node.style.opacity = 0.1 - j*0.02;
+ node.className = "ki_se";
+ node.style.background = "#000";
+ node.style.padding = "0px";
+ node.style.border = "none";
+ obj.appendChild(node);
+ }
+ }
+ } else if(type == 4){
+ var temp = obj.childNodes.length;
+ var cn = obj.childNodes;
+ for(var i = 0; i < temp; i++){
+ if(cn[i].className.indexOf("ki_se") >= 0){
+ obj.removeChild(cn[i]);
+ }
+ }
+ }
+ <?php } ?>
+ if(continueobj != null){
+ continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ }
+ }
+
+ // type: 1 = normal, 2 = horizontal/vertikal zentriert, 3 = nur horizontal, 4 = nur vertikal
+ this.resize = function(id, type, endwidth, endheight, continueobj){
+ var count = <?php echo $resizespeed ?>;
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ if(continueobj != null)continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ return;
+ }
+ var temp = fw.getDim(obj, 1);
+ var actw = temp[0];
+ var acth = temp[1];
+ var step;
+ var mawidth = Array();
+ var maheight = Array();
+ var ma = Array();
+ if(type != 4){
+ step = Math.round((endwidth - actw)/count);
+ while(step != 0){
+ if( Math.abs(endwidth-actw) < Math.abs(2*step) ){
+ step = Math.round(0.4*step);
+ }
+ actw += step;
+ mawidth.push(actw);
+ }
+ mawidth.push(endwidth);
+ }
+ if(type != 3){
+ step = Math.round((endheight - acth)/count);
+ while(step != 0){
+ if( Math.abs(endheight-acth) < Math.abs(2*step) ){
+ step = Math.round(0.4*step);
+ }
+ acth += step;
+ maheight.push(acth);
+ }
+ maheight.push(endheight);
+ }
+ if(type < 3){
+ if(mawidth.length > maheight.length){
+ var diff = mawidth.length - maheight.length;
+ for(var i = 0; i < diff; i++)maheight.push(endheight);
+ } else {
+ var diff = maheight.length - mawidth.length;
+ for(var i = 0; i < diff; i++)mawidth.push(endwidth);
+ }
+ for(var i = 0; i < maheight.length; i++){
+ ma.push(mawidth[i]);
+ ma.push(maheight[i]);
+ }
+ }
+ switch(type){
+ case 3:
+ for(var i = 0; i < mawidth.length; i++){
+ ma.push(mawidth[i]);
+ }
+ break;
+ case 4:
+ for(var i = 0; i < maheight.length; i++){
+ ma.push(maheight[i]);
+ }
+ break;
+ }
+ startanimation(type, ma, obj, continueobj);
+ }
+
+ // type: 1 = normal, 2 = horizontal/vertikal zentriert, 3 = nur horizontal, 4 = nur vertikal
+ // resize ohne abbremsen, d.h. kostante geschwindigkeit
+ this.resize2 = function(id, type, endwidth, endheight, continueobj){
+ var count = 8;
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ if(continueobj != null)continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ return;
+ }
+ var temp = fw.getDim(obj, 1);
+ var actw = temp[0];
+ var acth = temp[1];
+ var stepw;
+ var steph;
+ var ma = Array();
+ stepw = (endwidth - actw)/count;
+ steph = (endheight - acth)/count;
+ if(type < 3){
+ for(var i = 0; i < count; i++){
+ actw+=stepw;
+ acth+=steph;
+ ma.push(actw);
+ ma.push(acth);
+ }
+ ma.push(endwidth);
+ ma.push(endheight);
+ }
+ switch(type){
+ case 3:
+ for(var i = 0; i < count; i++){
+ actw+=stepw;
+ ma.push(actw);
+ }
+ ma.push(endwidth);
+ break;
+ case 4:
+ for(var i = 0; i < count; i++){
+ acth+=steph;
+ ma.push(acth);
+ }
+ ma.push(endheight);
+ break;
+ }
+ startanimation(type, ma, obj, continueobj);
+ }
+
+ // type: 1 = normal, 2 = nur horizontal, 3 = nur vertikal
+ this.move = function(id, type, endleft, endtop, continueobj) {
+ var count = <?php echo $movespeed ?>;
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ if(continueobj != null)continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ return;
+ }
+ obj.style.display = "block";
+ if(getStyle(obj, "position") == "static")obj.style.position = "relative";
+ var actx = getStyle(obj, "left");
+ var acty = getStyle(obj, "top");
+ if(actx == "auto")
+ actx = 0;
+ else
+ actx = parseInt(actx);
+ if(acty == "auto")
+ acty = 0;
+ else
+ acty = parseInt(acty);
+ if(type != 3)obj.style.left = actx + "px";
+ if(type != 2)obj.style.top = acty + "px";
+ //obj.style.margin = "0px";
+ var step;
+ var maleft = Array();
+ var matop = Array();
+ var ma = Array();
+ if(type != 3){
+ step = (endleft - actx)/count;
+ while(step != 0){
+ if( Math.abs(endleft-actx) < Math.abs(2*step) ){
+ step = Math.round(0.4*step);
+ }
+ actx += step;
+ maleft.push(actx);
+ }
+ maleft.push(endleft);
+ }
+ if(type != 2){
+ step = (endtop - acty)/count;
+ while(step != 0){
+ if( Math.abs(endtop-acty) < Math.abs(2*step) ){
+ step = Math.round(0.4*step);
+ }
+ acty += step;
+ matop.push(acty);
+ }
+ matop.push(endtop);
+ }
+ if(type < 2){
+ if(maleft.length > matop.length){
+ var diff = maleft.length - matop.length;
+ for(var i = 0; i < diff; i++)matop.push(endtop);
+ } else {
+ var diff = matop.length - maleft.length;
+ for(var i = 0; i < diff; i++)maleft.push(endleft);
+ }
+ for(var i = 0; i < matop.length; i++){
+ ma.push(maleft[i]);
+ ma.push(matop[i]);
+ }
+ }
+ switch(type){
+ case 1:
+ type = 5;
+ break;
+ case 2:
+ type = 6;
+ for(var i = 0; i < maleft.length; i++){
+ ma.push(maleft[i]);
+ }
+ break;
+ case 3:
+ type = 7;
+ for(var i = 0; i < matop.length; i++){
+ ma.push(matop[i]);
+ }
+ break;
+ }
+ startanimation(type, ma, obj, continueobj);
+ }
+
+ // type: 1 = normal, 2 = nur horizontal, 3 = nur vertikal
+ this.move2 = function(id, type, endleft, endtop, continueobj) {
+ var count = 6;
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ if(continueobj != null)continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ return;
+ }
+ obj.style.display = "block";
+ if(getStyle(obj, "position") == "static")obj.style.position = "relative";
+ var actx = getStyle(obj, "left");
+ var acty = getStyle(obj, "top");
+ if(actx == "auto")
+ actx = 0;
+ else
+ actx = parseInt(actx);
+ if(acty == "auto")
+ acty = 0;
+ else
+ acty = parseInt(acty);
+ if(type != 3)obj.style.left = actx + "px";
+ if(type != 2)obj.style.top = acty + "px";
+ var steph;
+ var stepv;
+ var maleft = Array();
+ var matop = Array();
+ var ma = Array();
+ steph = (endleft - actx)/count;
+ stepv = (endtop - acty)/count;
+ if(type != 3){
+ for(var i = 0; i < count; i++){
+ actx+=steph;
+ maleft.push(actx);
+ }
+ maleft.push(endleft);
+ }
+ if(type != 2){
+ for(var i = 0; i < count; i++){
+ acty+=stepv;
+ matop.push(acty);
+ }
+ matop.push(endtop);
+ }
+ if(type < 2){
+ for(var i = 0; i < ma.length; i++){
+ ma.push(maleft[i]);
+ ma.push(matop[i]);
+ }
+ }
+ switch(type){
+ case 1:
+ type = 5;
+ break;
+ case 2:
+ type = 6;
+ ma = maleft;
+ break;
+ case 3:
+ type = 7;
+ ma = matop;
+ break;
+ }
+ startanimation(type, ma, obj, continueobj);
+ }
+
+ this.fade = function(id, endfade, continueobj){
+ var count = <?php echo $fadespeed ?>;
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ if(continueobj != null)continueobj[0](continueobj[1], continueobj[2], continueobj[3], continueobj[4], continueobj[5], continueobj[6]);
+ return;
+ }
+ var actfade;
+ if(getStyle(obj, "display") == "none"){
+ actfade = 0;
+ obj.style.display = "block";
+ } else {
+ <?php
+ if($browser === "ie7" || $browser === "ie6") {
+ ?>
+ if(!getStyle(obj, "filter")){
+ actfade = 100;
+ } else {
+ try {
+ actfade = obj.filters.item("DXImageTransform.Microsoft.Alpha").opacity;
+ } catch(e) {
+ actfade = 100;
+ };
+ }
+ <?php
+ } else {
+ ?>
+ actfade = parseInt(getStyle(obj, "opacity")*100);
+ <?php } ?>
+ }
+ <?php if($browser !== "ie7" && $browser !== "ie6") { ?>
+ obj.style.opacity = actfade*0.01;
+ <?php } ?>
+ var step;
+ var ma = Array();
+ step = parseInt((endfade - actfade)/count);
+ for(var i = 0; i < count; i++){
+ ma.push(actfade+i*step);
+ }
+ ma.push(endfade);
+ <?php
+ if($browser === "ie7" || $browser === "ie6") {
+ if($disable_animation == 0){
+ ?>
+ if(obj.style.filter){
+ if(obj.filters.item("DXImageTransform.Microsoft.Fade")){
+ if(obj.filters.item("DXImageTransform.Microsoft.Fade").status == 2){
+ obj.filters.item("DXImageTransform.Microsoft.Fade").stop();
+ }
+ }
+ }
+ obj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + actfade + ") progid:DXImageTransform.Microsoft.Fade(duration=" + ma.length * 0.035 + ")";
+ obj.filters.item("DXImageTransform.Microsoft.Fade").apply();
+ obj.filters.item("DXImageTransform.Microsoft.Alpha").opacity = endfade;
+ obj.filters.item("DXImageTransform.Microsoft.Fade").play();
+ <?php
+ }
+ }
+ ?>
+
+ startanimation(8, ma, obj, continueobj);
+ }
+
+ /* ----------------------------------------------------------------------------- AJAX functions --------------------------------------------------------------------------- */
+
+ function checkforajax(){
+ var xmlhttp;
+ try {
+ xmlhttp = new XMLHttpRequest();
+ } catch (e) {
+ try {
+ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
+ } catch (e) {
+ try {
+ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
+ } catch (e) { return -1; }
+ }
+ }
+ return 1;
+ }
+
+ // adr = site adress with post variables to send, result = function called when ready, params[] = additional params besides responseText as first param
+ this.getHTTP = function(adr, result, params) {
+ var xmlhttp;
+ try {
+ xmlhttp = new XMLHttpRequest();
+ } catch (e) {
+ try {
+ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
+ } catch (e) {
+ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
+ }
+ }
+ var temp = adr.indexOf("?");
+ var sendstring = "";
+ if(temp != -1){
+ sendstring = adr.substr(temp+1);
+ adr = adr.substr(0, temp);
+ }
+ xmlhttp.onreadystatechange = function() {
+ if(xmlhttp.readyState == 4){
+ if(xmlhttp.status == 200){
+ if(result)result(xmlhttp.responseText, params);
+ } else {
+ if(xmlhttp.status == 404)alert("ERROR: Site '" + adr + "' not found or internal error during getHTTP-call.");
+ }
+ }
+ }
+ xmlhttp.open("POST", adr, true);
+ xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
+ xmlhttp.send(sendstring);
+ }
+
+ /* ----------------------------------------------------------------------------- Dynamicliy add/remove JavaScript functions ----------------------------------------------------- */
+
+ this.addjs = function(adr, modulename, params){
+ if($(modulename+"_id"))return;
+ var head = document.getElementsByTagName("head")[0];
+ var script = document.createElement('script');
+ script.id = modulename+"_id";
+ script.type = 'text/javascript';
+ script.src = adr;
+ head.appendChild(script);
+ eval( "(function(){ if(typeof "+modulename+"_module == 'function'){ "+modulename+" = new "+modulename+"_module(); "+modulename+".constr(params); return; } setTimeout( arguments.callee, 100); })();" );
+ }
+
+ this.removejs = function(modulename){
+ if(!$(modulename+"_id"))return;
+ eval(modulename + ".destr();");
+ var head = document.getElementsByTagName("head")[0];
+ var script = $(modulename+"_id");
+ head.removeChild(script);
+ eval(modulename+" = null;"+modulename+"_module = null;");
+ }
+
+ /* ----------------------------------------------------------------------------- Event functions --------------------------------------------------------------------------- */
+
+
+
+ function on_mouseover(obj, execfunc, offsL, offsT){
+ <?php addEvent("obj", "mouseover", "
+ function(event){
+ event = event ? event : window.event;
+ var from = event.relatedTarget ? event.relatedTarget : event.fromElement;
+ if(!from)return;
+ while(from.parentNode){
+ if(from == obj){
+ return;
+ }
+ from = from.parentNode;
+ }
+ var x = event.clientX ? event.clientX + document.documentElement.scrollLeft : event.pageX;
+ var y = event.clientY ? event.clientY + document.documentElement.scrollTop: event.pageY;
+ x -= offsL;
+ y -= offsT;
+ execfunc(x, y);
+ }
+ "); ?>
+ }
+
+ function on_mouseout(obj, execfunc, offsL, offsT){
+ <?php addEvent("obj", "mouseout", "
+ function(event){
+ event = event ? event : window.event;
+ var to = event.relatedTarget ? event.relatedTarget : event.toElement;
+ if(!to)return;
+ while(to.parentNode){
+ if(to == obj)return;
+ to = to.parentNode;
+ }
+ var x = event.clientX ? event.clientX + document.documentElement.scrollLeft : event.pageX;
+ var y = event.clientY ? event.clientY + document.documentElement.scrollTop: event.pageY;
+ x -= offsL;
+ y -= offsT;
+ execfunc(x, y);
+ }
+ "); ?>
+ }
+
+ function on_mouseevent(obj, evnt, execfunc, offsL, offsT){
+ <?php if($browser === "ie6" || $browser === "ie7"){
+ echo "obj.attachEvent('on'+evnt,
+ function(event){
+ event = event ? event : window.event;
+ var x = event.clientX + document.documentElement.scrollLeft - offsL;
+ var y = event.clientY + document.documentElement.scrollTop - offsT;
+ execfunc(x, y);
+ return false;
+ }
+ );";
+ } else {
+ echo "obj.addEventListener(evnt,
+ function(event){
+ event = event ? event : window.event;
+ var x = event.pageX - offsL;
+ var y = event.pageY - offsT;
+ execfunc(x, y);
+ preventDefaultAction(event);
+ }
+ , false);";
+ } ?>
+ }
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ // type: 1 = normal, 2 = x,y coordinate for static/relative positioned element
+ this.addevent = function(id, evnt, execfunc, type){
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ return;
+ }
+ var offsL = 0;
+ var offsT = 0;
+ if(type == 2){
+ if(getStyle(obj, "position") == "relative"){
+ obj.style.position = "static";
+ offsL = obj.offsetLeft;
+ offsT = obj.offsetTop;
+ obj.style.position = "relative";
+ }
+ if(getStyle(obj, "position") == "static"){
+ offsL = obj.offsetLeft;
+ offsT = obj.offsetTop;
+ }
+ }
+ switch(evnt){
+ case "mouseover": on_mouseover(obj, execfunc, offsL, offsT); break;
+ case "mouseout": on_mouseout(obj, execfunc, offsL, offsT); break;
+ case "click": on_mouseevent(obj, evnt, execfunc, offsL, offsT); break;
+ case "dblclick": on_mouseevent(obj, evnt, execfunc, offsL, offsT); break;
+ case "mousedown": on_mouseevent(obj, evnt, execfunc, offsL, offsT); break;
+ case "mousemove": on_mouseevent(obj, evnt, execfunc, offsL, offsT); break;
+ case "mouseup": on_mouseevent(obj, evnt, execfunc, offsL, offsT); break;
+ case "keycapture":
+ <?php if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ addEvent("obj", "keypress", "execfunc");
+ } else {
+ addEvent("obj", "keydown", "execfunc");
+ } ?>
+ break;
+ default:
+ <?php if($browser === "ie6" || $browser === "ie7"){
+ echo "obj.attachEvent('on'+evnt, execfunc);";
+ } else {
+ echo "obj.addEventListener(evnt, execfunc, false);";
+ } ?>
+ break;
+ }
+ }
+
+ /* extern ----------------------------------------------------------------------------- Toolbars --------------------------------------------------------------------------- */
+
+ this.addtoolbar = function(id, content, x, y, permanent){
+ var obj;
+ if(id.length)
+ obj = $(id);
+ else
+ obj = id;
+ if(!obj){
+ return;
+ }
+ id = obj.id;
+ if(!$(id+"_tb")){
+ var tb = document.createElement("div");
+ tb.id = id+"_tb";
+ tb.style.position = "absolute";
+ if(permanent == 0)tb.style.display = "none";
+ if(x > 0)
+ tb.style.left = x + "px";
+ else
+ tb.style.right = x*-1 + "px";
+ if(y > 0)
+ tb.style.top = y + "px";
+ else
+ tb.style.bottom = y*-1 + "px";
+ tb.innerHTML = content;
+ obj.appendChild(tb);
+ if(permanent == 0){
+ fw.addevent( obj, "mouseout", function(){ fw.fade(tb, 0); } );
+ fw.addevent( obj, "mouseover", function(){ fw.fade(tb, 100); } );
+ //fw.addevent( id, "mousemove", function(x, y){ $("tooltip").style.left = x + 20 + "px"; $("tooltip").style.top = y + 20 + "px"; } );
+ }
+ }
+ }
+
+ /* Init code ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
+
+ this.init = function(){
+ var node;
+ if(checkforajax() == -1){
+ var temp = document.getElementsByTagName("div");
+ for(var i = 0; i < temp.length; i++){
+ if(temp[i].className.indexOf("koschtitgallery") >= 0){
+ var titlefound = temp[i].title;
+ temp[i].innerHTML = "<p>AJAX not supported. See a plain HTML version of <a href='<?php echo $basedir ?>ki_nojs.php?gallery="+titlefound+"&amp;site="+window.location+"'>"+titlefound+"</a> here.</p>";
+ temp[i].title = "";
+ }
+ }
+ <?php if($show_warnings == 1)echo "alert(\"WARNING: Your browser doesn't support AJAX.\\nPlease upgrade your browser to view this gallery.\");"; ?>
+ return;
+ }
+ if(!$("fw_blend")){
+ <?php if($browser === "ie7" || $browser === "opera"){ ?>
+ node = document.createElement("img");
+ node.src = "<?php echo $basedir ?>ki_shade.php";
+ node.alt = "";
+ <?php } elseif($browser == "ie6"){ ?>
+ node = document.createElement("img");
+ node.alt = "";
+ node.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo $basedir ?>ki_shade.php, sizingMethod='scale')";
+ node.style.width = "2880px";
+ node.style.height = "1800px";
+ node.src="<?php echo $basedir ?>ki_noimage.gif";
+ <?php } else { ?>
+ node = document.createElement("div");
+ node.style.width = "100%";
+ node.style.height = "100%";
+ node.style.background = "<?php echo $fade_color ?>";
+ node.style.opacity = <?php echo $fade_alpha/10 ?>;
+ <?php } ?>
+ node.id = "fw_blend";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ node.style.zIndex = 100;
+ node.style.display = "none";
+ document.body.appendChild(node);
+ }
+ <?php if($shade_while_loading == 1 || $admin_ok == 1 || $user_ok == 1){ ?>
+ this.shadebody(1);
+ <?php } ?>
+ <?php if($admin_ok == 1){ ?>
+ fw.addjs("<?php echo $basedir ?>ki_js_basic.php?reldir=<?php echo $reldir ?>&admin=<?php echo $_GET['admin'] ?>", "kib");
+ <?php } elseif($user_ok == 1){ ?>
+ fw.addjs("<?php echo $basedir ?>ki_js_basic.php?reldir=<?php echo $reldir ?>&user=<?php echo $_GET['user'] ?>", "kib");
+ <?php } else { ?>
+ fw.addjs("<?php echo $basedir ?>ki_js_basic.php?reldir=<?php echo $reldir ?>", "kib");
+ <?php } ?>
+ }
+
+}
+//-------------------------------------------------------------------------------- END FRAMEWORK ----------------------------------------------------------------- \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_managefolders.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_managefolders.php
new file mode 100644
index 00000000..e0cde524
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_managefolders.php
@@ -0,0 +1,266 @@
+<?php
+ob_start("ob_gzhandler");
+
+session_start();
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//-------------------------------------- functions -------------------------------------
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser === "ie6" || $browser === "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+function removeEvent($el, $event, $function){
+ global $browser;
+ if($browser === "ie6" || $browser === "ie7"){
+ echo $el.".detachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".removeEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+//-------------------------------------- end functions -----------------------------------
+
+include("../ki_config/ki_setup.php");
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser === "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+if($pwok == 0)exit();
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Manage folders module 'kim' --------------------------------------------------------------------
+
+function kim_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var windowX;
+ var windowY;
+ var open = 0;
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function(){
+ if(typeof(kiv_module) == "function")kiv.closeImage();
+ if(typeof(kie_module) == "function")kie.closeGallery();
+ if(typeof(kis_module) == "function")kis.closeSettings();
+ if(typeof(kid_module) == "function")kid.close();
+ if(typeof(kiu_module) == "function")kiu.closeUpload();
+ if(typeof(kic_module) == "function")kic.close();
+ fw.shadebody(1);
+ var node;
+ if(!$("kim_maindiv")){
+ node = document.createElement("div");
+ node.id = "kim_maindiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ node.style.zIndex = 1000;
+ node.style.overflowX = "hidden";
+ node.style.overflowY = "auto";
+ node.style.display = "block";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.padding = "4px";
+ node.innerHTML = "<div id='manage_div' style='background:#D2D2D2; padding:4px; width:960px; margin:auto; border:1px solid #000;'><div style='width:300px; margin:auto; text-align:center;'><input type='button' value='Create new folder' style='margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px; background:#A5ACCF; font-weight:bold;' onclick=\"kim.createnew()\"' /></div><b>Folders in \"ki_galleries\":</b><div id='manage_div_cont' style='padding-top:5px;'></div></div>";
+ document.body.appendChild(node);
+ }
+ if(!$("kim_botdiv")){
+ node = document.createElement("div");
+ node.id = "kim_botdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderTop = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.borderLeft = "1px solid #000000";
+ node.style.right = "25px";
+ node.style.bottom = "0px";
+ node.innerHTML = "<input type='button' value='Close' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px;' onclick='kim.close()' />";
+ document.body.appendChild(node);
+ }
+ <?php addEvent("window", "resize", "viewdim"); ?>
+ viewdim();
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ addEvent("document", "keypress", "taste_kim");
+ } else {
+ addEvent("document", "keydown", "taste_kim");
+ }
+ ?>
+ <?php addEvent("document", "mousemove", "mousemoved"); ?>
+ listFolders();
+ fw.move("authorization", 2, -42, 0);
+ }
+
+ this.destr = function(){
+ <?php removeEvent("window", "resize", "viewdim"); ?>
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ removeEvent("document", "keypress", "taste_kim");
+ } else {
+ removeEvent("document", "keydown", "taste_kim");
+ }
+ ?>
+ <?php removeEvent("document", "mousemove", "mousemoved"); ?>
+ document.body.removeChild($("kim_maindiv"));
+ document.body.removeChild($("kim_botdiv"));
+ fw.shadebody(0);
+ fw.move("authorization", 2, 55, 0);
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ function listFolders(){
+ fw.getHTTP("<?php echo $basedir ?>ki_managefolders.php?list=1", listingFolders, null);
+ }
+
+ function listingFolders(responseText){
+ var managediv = $("manage_div_cont");
+ var newC = "";
+ var info = eval("(" + responseText + ")");
+ if(info.error){
+ alert(info.error);
+ } else {
+ for(var i = 0; i < info.length; i++){
+ newC += "<div style='padding:4px; margin:4px; border:1px solid #000; position:relative; background:#fff;'><input type='button' value='Delete folder' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px; margin-top:6px; margin-left:10px; background:#f5998f;' onclick=\"kim.delete('" + info[i].folder + "')\"' /><input type='button' value='Empty folder' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px; margin-top:6px;' onclick=\"kim.empty('" + info[i].folder + "')\"' /><b style='font-size:14px;'>" + info[i].folder + "</b><br /><div style='padding-top:5px; font-size:11px; color:#222;'>Image files: " + info[i].num + "<span style='position:absolute; left:140px;'>Disk usage: " + info[i].size + " MB</span></div></div>";
+ }
+ managediv.innerHTML = newC;
+ }
+ }
+
+ this.empty = function(folder){
+ fw.getHTTP("<?php echo $basedir ?>ki_managefolders.php?empty=" + folder, listingFolders, null);
+ }
+
+ this.delete = function(folder){
+ fw.getHTTP("<?php echo $basedir ?>ki_managefolders.php?delete=" + folder, listingFolders, null);
+ }
+
+ this.createnew = function(){
+ var name = prompt("Please enter a folder name", "");
+ if(name != null && name != ""){
+ fw.getHTTP("<?php echo $basedir ?>ki_managefolders.php?createnew=" + name, listingFolders, null);
+ }
+ }
+
+ function viewdim(){
+ if(window.innerHeight){
+ windowX = window.innerWidth;
+ windowY = window.innerHeight;
+ } else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
+ windowX = document.documentElement.clientWidth;
+ windowY = document.documentElement.clientHeight;
+ } else if (document.body){ // other Explorers
+ windowX = document.body.clientWidth;
+ windowY = document.body.clientHeight;
+ }
+ var maindiv = $("kim_maindiv");
+ maindiv.style.width = windowX - 8 + "px";
+ maindiv.style.height = windowY - 8 + "px";
+ }
+
+ this.close = function(){
+ fw.removejs("kim");
+ }
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ function taste_kim(aEvent) {
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ if(keyCode == 27){
+ kim.close();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+
+ function mousemoved(aEvent){
+ aEvent = aEvent ? aEvent : window.event;
+ var x = aEvent.clientX ? aEvent.clientX : aEvent.pageX;
+ var y = aEvent.clientY ? aEvent.clientY : aEvent.pageY;
+ if(y < 180 && x < 30 && !open){
+ open = 1;
+ fw.move("authorization", 2, 55, 0);
+ return;
+ }
+ if(x > 120 || y > 180){
+ open = 0;
+ fw.move("authorization", 2, -42, 0);
+ }
+ }
+}
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_settings.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_settings.php
new file mode 100644
index 00000000..b9e7fdf6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_settings.php
@@ -0,0 +1,530 @@
+<?php
+ob_start("ob_gzhandler");
+
+session_start();
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//-------------------------------------- functions -------------------------------------
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser === "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser === "ie6" || $browser === "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+function removeEvent($el, $event, $function){
+ global $browser;
+ if($browser === "ie6" || $browser === "ie7"){
+ echo $el.".detachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".removeEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+//-------------------------------------- end functions -----------------------------------
+
+include("../ki_config/ki_setup.php");
+
+$global_start = -1;
+$global_length = -1;
+$global_count = -1;
+
+reset($GLOBALS);
+
+while (list($key, $val) = each($GLOBALS)) {
+ $global_count++;
+ if($global_start == -1){
+ if($key === "fr_width"){
+ $global_start = $global_count;
+ continue;
+ }
+ }
+ if($global_length == -1){
+ if($key === "global_start"){
+ $global_length = $global_count - $global_start;
+ break;
+ }
+ }
+}
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser === "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+if($pwok == 0)exit();
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Settings module 'kis' --------------------------------------------------------------------
+
+function kis_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var windowX;
+ var windowY;
+ var currentfile = "";
+ var open = 0;
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function(){
+ if(typeof(kiv_module) == "function")kiv.closeImage();
+ if(typeof(kie_module) == "function")kie.closeGallery();
+ if(typeof(kiu_module) == "function")kiu.closeUpload();
+ if(typeof(kid_module) == "function")kid.close();
+ if(typeof(kic_module) == "function")kic.close();
+ if(typeof(kim_module) == "function")kim.close();
+ fw.shadebody(1);
+ var node;
+ if(!$("kis_maindiv")){
+ node = document.createElement("div");
+ node.id = "kis_maindiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ node.style.zIndex = 1000;
+ node.style.overflowX = "hidden";
+ node.style.overflowY = "auto";
+ node.style.display = "block";
+ node.style.padding = "4px";
+ node.innerHTML = "<div id='settings_div' style='background:#D2D2D2; width:960px; margin:auto; font:12px Tahoma, sans-serif; color:#222222; border:1px solid #000000; padding:46px 4px 36px 4px;'></div>";
+ document.body.appendChild(node);
+ }
+ if(!$("kis_topdiv")){
+ node = document.createElement("div");
+ node.id = "kis_topdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.height = "45px";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px 20px 0px 120px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderBottom = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ var dirs = "";
+ for(var i = 0; i < kib.dirs.length; i++){
+ dirs = dirs + "<span style='cursor:pointer; text-decoration:underline; margin-right:5px; line-height:14px;' onclick=\"kis.getSettings('" + kib.dirs[i] + "')\">" + kib.dirs[i] + "</span>";
+ }
+ node.innerHTML = "<div style='margin-bottom:5px;'><span style='font-size:14px; line-height:18px; font-weight:bold; color:#003; margin-right:5px;'>Config Files</span><span style='background:#003; border:1px solid #CCC; padding:3px; color:#ffffff;' id='kis_selfile'></span></div><span style='cursor:pointer; text-decoration:underline; font-weight:bold; margin-right:5px; line-height:14px;' onclick='kis.getSettings()'>default</span>" + dirs;
+ document.body.appendChild(node);
+ }
+ if(!$("kis_botdiv")){
+ node = document.createElement("div");
+ node.id = "kis_botdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderTop = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.borderLeft = "1px solid #000000";
+ node.style.right = "25px";
+ node.style.bottom = "0px";
+ node.innerHTML = "<input type='button' value='Close' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px;' onclick='kis.closeSettings()' /><input type='button' value='Reset' style='float:right; margin:0px; margin-right:10px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px; display:none;' onclick='kis.resetSettings()' id='kis_resetbutton' /><input type='button' value='Save' style='float:left; margin:0px; margin-right:10px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px; background:#b8e8d4;' onclick='kis.saveSettings()' />";
+ document.body.appendChild(node);
+ }
+
+ node = $("settings_div");
+ node.innerHTML = "<table style='padding:0px; color:#006; font-size:11px;' cellpadding='4' cellspacing='0'><tr><td style='width:150px;' class='kis_paramname'>$fr_width</td><td style='width:200px;'><input id='fr_width' class='kis_param' /></td><td rowspan='2'>This two parameters set the dimension of the gallery in pixels. They are equivallent to css-width and height of the koschtitgallery-div.</td></tr><tr><td class='kis_paramname'>$fr_height</td><td><input id='fr_height' class='kis_param' /></td></tr><tr><td class='kis_paramname'>$fr_color</td><td><input id='fr_color' class='kis_param' /></td><td>The background color of the gallery. Set a hex-color '#rrggbb' or 'none'.</td></tr><tr><td colspan='3' class='kis_spacer'></td></tr><tr><td class='kis_paramname'>$thumbs</td><td><input id='thumbs' class='kis_param' /></td><td>Sets the amount of thumbnails that are visible on one page of the gallery.</td></tr><tr><td class='kis_paramname'>$th_per_line</td><td><input id='th_per_line' class='kis_param' /></td><td>Sets the amout of thumbnails in one row. This should be less or equal to the <b>$thumbs</b> - parameter.</td></tr><tr><td class='kis_paramname'>$th_lines</td><td><input id='th_lines' class='kis_param' /></td><td>Here you can set how many thumbnail rows you want to have. Set to 'auto' or a number.</td></tr><tr><td class='kis_paramname'>$th_width</td><td><input id='th_width' class='kis_param' /></td><td rowspan='2'>This two parameters set the maximum dimension of the thumbnails in pixels. Set to 'auto' or a number.</td></tr><tr><td class='kis_paramname'>$th_height</td><td><input id='th_height' class='kis_param' /></td></tr><tr><td class='kis_paramname'>$th_bord_size</td><td><input id='th_bord_size' class='kis_param' /></td><td>The border width of the thumbnails in pixels. Set to a number greater or equal to zero.</td></tr><tr><td class='kis_paramname'>$th_bord_color</td><td><input id='th_bord_color' class='kis_param' /></td><td>The border color of the thumbnails. Set a hex-color '#rrggbb' or 'none'.</td></tr><tr><td class='kis_paramname'>$th_bord_hover_color</td><td><input id='th_bord_hover_color' class='kis_param' /></td><td>If you hover over the thumbnails their border color will change to this. Set a hex-color '#rrggbb' or 'none'.</td></tr><tr><td class='kis_paramname'>$th_bord_hover_increase</td><td><input id='th_bord_hover_increase' class='kis_param' /></td><td>You can also change the size of the thumbnails when you hover over them. They will be increased by this value. Set to a decimal with a dot.</td></tr><tr><td class='kis_paramname'>$th_shadow</td><td><input id='th_shadow' class='kis_param' yn='1' /></td><td>Enables or disables the shadow which displays when mouse hovers a thumbnail.</td></tr><tr><td class='kis_paramname'>$th_to_square</td><td><input id='th_to_square' class='kis_param' yn='1' /></td><td>For square thumbs set to 1, or else set to 0.</td></tr><tr><td class='kis_paramname'>$th_2sq_crop_hori</td><td><input id='th_2sq_crop_hori' class='kis_param' /></td><td>If $th_to_square is set to 1, you can change the horizontal cropping of the thumbmails with this parameter. Set to 'left', 'center' or 'right'.</td></tr><tr><td class='kis_paramname'>$th_2sq_crop_vert</td><td><input id='th_2sq_crop_vert' class='kis_param' /></td><td>If $th_to_square is set to 1, you can change the vertical cropping of the thumbmails with this parameter. Set to 'top', 'middle' or 'bottom'.</td></tr><tr><td class='kis_paramname'>$thumbs_to_disk</td><td><input id='thumbs_to_disk' class='kis_param' yn='1' /></td><td>Set this parameter to 1, if you want your thumbnails to be saved on the server. If you want to generate your thumbnails 'on the fly', set this to 0.</td></tr><tr><td colspan='3' style='color:#666;'><b>Remember</b>: If $th_to_square is set to 1, you can also adjust the cropping for each thumbnail individually by clicking on the respective thumbnail when logged in as administrator.</td></tr><tr><td colspan='3' class='kis_spacer'></td></tr><tr><td class='kis_paramname'>$pic_order</td><td><input id='pic_order' class='kis_param' /></td><td>This parameter sets the order of your pictures in your gallery. Set to 0 for newest pictures first, set to 1 for oldest pictures first, set to 2 for alphabetical order or set to 3 for image creation order (uses EXIF). If you want to adjust the order of your pictures manually with the admin panel (Change order) set this to 4.</td></tr><tr><td class='kis_paramname'>$resize_auto</td><td><input id='resize_auto' class='kis_param' yn='1' /></td><td>If set to 1 the gallery resizes automatically to smaller size if vertical space is available. If set to 0 the gallery stays always fixed size.</td></tr><tr><td class='kis_paramname'>$bord_size</td><td><input id='bord_size' class='kis_param' /></td><td>Sets the border size of displayed pictures in pixels. Set to a number greater or equal to zero.</td></tr><tr><td class='kis_paramname'>$bord_color</td><td><input id='bord_color' class='kis_param' /></td><td>The border color of displayed pictures. Set a hex-color '#rrggbb' or 'none'.</td></tr><tr><td class='kis_paramname'>$max_pic_width</td><td><input id='max_pic_width' class='kis_param' /></td><td rowspan='2'>You can set a maximum width and height for displayed pictures. Set to a number (for total pixel size) or leave 'none' for no limits. You can also set a value between 0 and 1.0 to indicate a percentage of window size.</td></tr><tr><td class='kis_paramname'>$max_pic_height</td><td><input id='max_pic_height' class='kis_param' /></td></tr><tr><td class='kis_paramname'>$oversize_allowed</td><td><input id='oversize_allowed' class='kis_param' yn='1' /></td><td>Set to 0, if you want to adjust the size of displayed pictures to the browser window size. If you want to show your displayed pictures in full resolution set to 1.</td></tr><tr><td colspan='3' class='kis_spacer'></td></tr><tr><td class='kis_paramname'>$comments</td><td><input id='comments' class='kis_param' yn='1' /></td><td>1 enables picture comments and 0 disables them.</td></tr><tr><td class='kis_paramname'>$comm_text_size</td><td><input id='comm_text_size' class='kis_param' /></td><td>Set the font size in pixels for comments here.</td></tr><tr><td class='kis_paramname'>$comm_text_color</td><td><input id='comm_text_color' class='kis_param' /></td><td>Sets the font color for comments. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$comm_text_font</td><td><input id='comm_text_font' class='kis_param' /></td><td>The font face for picture- and viewer comments . This is equal to css-font-face.</td></tr><tr><td class='kis_paramname'>$comm_text_align</td><td><input id='comm_text_align' class='kis_param' /></td><td>You can change the text alignment for comments with this parameter. Set to 'left', 'center' or 'right'.</td></tr><tr><td class='kis_paramname'>$comm_auto</td><td><input id='comm_auto' class='kis_param' yn='1' /></td><td>If you want to have automatic picture comments set this to 1, or else set to 0.</td></tr><tr><td class='kis_paramname'>$comm_auto_string</td><td><input id='comm_auto_string' class='kis_param' /></td><td>If <b>$comm_auto</b> is set to 1, you can enter your automatic picture comment here. There are some variables available: '%x' = picture number / '%X' = number of all pictures / '%f' = filename / '%g' = gallery folder</td></tr><tr><td colspan='3' style='color:#666;'><b>Remember</b>: If $comm_auto is set to 1, all custom comments won't be displayed or saved.</td></tr><tr><td colspan='3' class='kis_spacer'></td></tr><tr><td class='kis_paramname'>$viewercomments</td><td><input id='viewercomments' class='kis_param' yn='1' /></td><td>1 = viewer comments are turned on / 0 = viewer comments are turned off</td></tr><tr><td class='kis_paramname'>$moderate_posts</td><td><input id='moderate_posts' class='kis_param' yn='1' /></td><td>1 = moderate new viewer comments / 0 = no moderation<br />Enable $admin_mail if you want to receive notification for new picture comments.</td></tr><tr><td class='kis_paramname'>$vcomm_header_color</td><td><input id='vcomm_header_color' class='kis_param' /></td><td>This font color is used for viewer comment form descriptions. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$vcomm_box_color</td><td><input id='vcomm_box_color' class='kis_param' /></td><td>This is the text color that is used for the comment form. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$vcomm_text_color</td><td><input id='vcomm_text_color' class='kis_param' /></td><td>Defines the text color for viewer comments and their name. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$vcomm_timedate_color</td><td><input id='vcomm_timedate_color' class='kis_param' /></td><td>Defines the text color for date and time line on the viewer comments page. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$vcomm_back_color</td><td><input id='vcomm_back_color' class='kis_param' /></td><td>The background color of the viewer comment form is defined here. Set a hex-color '#rrggbb' or 'none'.</td></tr><tr><td class='kis_paramname'>$vcomm_bord_color</td><td><input id='vcomm_bord_color' class='kis_param' /></td><td>Sets the border color for all forms and inputs on the viewer comments page. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$vcomm_horline_color</td><td><input id='vcomm_horline_color' class='kis_param' /></td><td>Defines the color for the horizontal lines between viewer comments. Set a hex-color '#rrggbb'.</td></tr><tr><td colspan='3' class='kis_spacer'></td></tr><tr><td class='kis_paramname'>$slideshow</td><td><input id='slideshow' class='kis_param' yn='1' /></td><td>Set to 1 if you want to enable a slideshow, or set to 0 else.</td></tr><tr><td class='kis_paramname'>$downloadpics</td><td><input id='downloadpics' class='kis_param' yn='1' /></td><td>Set to 1 if you want to allow full resolution picture downloads, or set to 0 else.</td></tr><tr><td class='kis_paramname'>$checkgps</td><td><input id='checkgps' class='kis_param' yn='1' /></td><td>If set to 1, a link to Googlemaps is displayed when an image contains geodetic coordinates in the exif metadata. Set to 0 if you don't need this feature.</td></tr><tr><td class='kis_paramname'>$cellinfo</td><td><input id='cellinfo' class='kis_param' yn='1' /></td><td>If <b>$checkgps</b> is set to 1, you can additionally check the image metadata for cellid information added by mobile phones. This information is then send to opencellid.org and if the cell gps position is deposed there a link to Googlemaps will be displayed too.</td></tr><tr><td class='kis_paramname'>$show_nav</td><td><input id='show_nav' class='kis_param' yn='1' /></td><td>Set this parameter to 0, if you don't need the navigation icons below the thumbnails. Otherwise set to 1.</td></tr><tr><td class='kis_paramname'>$nav_always</td><td><input id='nav_always' class='kis_param' yn='1' /></td><td>If this is set to 0, the navigation icons will only be visible if you hover with your mouse over the gallery.</td></tr><tr><td class='kis_paramname'>$nav_pos</td><td><input id='nav_pos' class='kis_param' /></td><td>Aligns the navigation icons below the thumbnails. Set to 'left', 'center' or 'right'.</td></tr><tr><td class='kis_paramname'>$nav_color</td><td><input id='nav_color' class='kis_param' /></td><td>Defines the background color of the navigation icons toolbar. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$nav_border_color</td><td><input id='nav_border_color' class='kis_param' /></td><td>Defines the border color of the navigation icons toolbar. Set a hex-color '#rrggbb'.</td></tr><tr><td class='kis_paramname'>$nav_style</td><td><input id='nav_style' class='kis_param' /></td><td>1 = rectangular navigation icons / 2 = round navigation icons (doesn't work for Internet Explorer <= 8)</td></tr><tr><td class='kis_paramname'>$show_image_nav</td><td><input id='show_image_nav' class='kis_param' yn='1' /></td><td>Enables or disables the navigation icons for displayed pictures. Set to 1 or either to 0.</td></tr><tr><td class='kis_paramname'>$image_nav_always</td><td><input id='image_nav_always' class='kis_param' yn='1' /></td><td>If this is set to 0, the image navigation icons and the image sharing link will slide out if mouse moves away from them. Otherwise they stay visible (set to 1).</td></tr><tr><td class='kis_paramname'>$show_share</td><td><input id='show_share' class='kis_param' yn='1' /></td><td>Enables or disables the display of the image sharing link. Set to 1 or either to 0. (not visible when logged in as admin)</td></tr><tr><td class='kis_paramname'>$show_help</td><td><input id='show_help' class='kis_param' yn='1' /></td><td>If set to 1, a small help icon is displayed on bottom right/left of displayed pictures. Set to 0 if you don't need this.</td></tr><tr><td class='kis_paramname'>$help_pos</td><td><input id='help_pos' class='kis_param' /></td><td>Set to 'left' or 'right' to define where to place the help icon.</td></tr><tr><td class='kis_paramname'>$show_preview</td><td><input id='show_preview' class='kis_param' yn='1' /></td><td>You can disable/enable preview pictures that are displayed when you move your mouse beyond the sides of displayed pictures. Set to 1 or 0.</td></tr><tr><td class='kis_paramname'>$preview_style</td><td><input id='preview_style' class='kis_param' /></td><td>If set to 1, it displays the next/previous picture as preview. The further you move your mouse, the bigger the preview images get. If set to 2, only the icons 'ki_next.png'/'ki_back.png' are displayed. This parameter is only valid, when $show_preview is set to 1.</td></tr><tr><td class='kis_paramname'>$preview_pics</td><td><input id='preview_pics' class='kis_param' /></td><td>You can adjust the number of preview pictures that are displayed, if you move your mouse to the border of the browser window. If this is set to 0 no preview pictures will be displayed.</td></tr><tr><td colspan='3' class='kis_spacer'></td></tr><tr><td class='kis_paramname'>$show_explorer</td><td><input id='show_explorer' class='kis_param' yn='1' /></td><td>This parameter enables/disables the gallery explorer (maximized full window view).</td><tr><td class='kis_paramname'>$explorer_padding</td><td><input id='explorer_padding' class='kis_param' /></td><td>Sets the padding ( in pixels ) between pictures in 'maximized' view.</td></tr><tr><td colspan='3' class='kis_spacer'></td></tr><tr><td class='kis_paramname'>$watermark_hori</td><td><input id='watermark_hori' class='kis_param' /></td><td>Defines the horicontal position of the watermark on images. Set to 'left', 'center' or 'right'.</td></tr><tr><td class='kis_paramname'>$watermark_vert</td><td><input id='watermark_vert' class='kis_param' /></td><td>Defines the vertical position of the watermark on images. Set to 'top', 'middle' or 'bottom'.</td></tr><tr><td class='kis_paramname'>$watermark_size</td><td><input id='watermark_size' class='kis_param' /></td><td>You can adjust the size of the watermark. If you want to spread the watermark over the whole image set this to 1. Leave this at 0 if you want to leave the watermark size as it is. Otherwise set to a decimal from 0.01 to 0.99 .</td></tr><tr class='kis_global'><td colspan='3' class='kis_spacer'></td></tr><tr class='kis_global'><td class='kis_paramname'>$fade_color</td><td><input id='fade_color' class='kis_param' /></td><td>Adjust the shade color with this parameter. Set a hex-color '#rrggbb'.</td></tr><tr class='kis_global'><td class='kis_paramname'>$fade_alpha</td><td><input id='fade_alpha' class='kis_param' /></td><td>Changes the opacity of the shade. Set a number from 0 to 10, where 10 is for full opacity and 0 for no opacity at all.</td></tr><tr class='kis_global'><td class='kis_paramname'>$shade_while_loading</td><td><input id='shade_while_loading' class='kis_param' yn='1' /></td><td>If this is set to 1, the website will be shaded during the galleries will be initialized. Set to 0, if you don't need this.</td></tr><tr class='kis_global'><td class='kis_paramname'>$disable_animation</td><td><input id='disable_animation' class='kis_param' yn='1' /></td><td>You can disable all script animations if you set this to 1. If you wish to enable animations, set this to 0.</td></tr><tr class='kis_global'><td class='kis_paramname'>$slideshow_time</td><td><input id='slideshow_time' class='kis_param' /></td><td>This is the time an image will be displayed during slideshow. Enter a value in milliseconds.</td></tr><tr class='kis_global'><td colspan='3' style='color:#666;'><b>Remember</b>: These are global settings. The changes will only be applied if you refresh your website.</td></tr><tr class='kis_global'><td colspan='3' class='kis_spacer'></td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_next</td><td><input id='nav_next' class='kis_param' /></td><td>Next thumbnails page icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_back</td><td><input id='nav_back' class='kis_param' /></td><td>Previous thumbnails page icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_maxi</td><td><input id='nav_maxi' class='kis_param' /></td><td>Maximize gallery icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_kiv_next</td><td><input id='nav_kiv_next' class='kis_param' /></td><td>Next gallery picture icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_kiv_back</td><td><input id='nav_kiv_back' class='kis_param' /></td><td>Previous gallery picture icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_kiv_close</td><td><input id='nav_kiv_close' class='kis_param' /></td><td>Close icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_gps_coord</td><td><input id='nav_gps_coord' class='kis_param' /></td><td>Googlemaps icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_kiv_vcomm</td><td><input id='nav_kiv_vcomm' class='kis_param' /></td><td>Show/Add viewer comments icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$nav_kiv_download</td><td><input id='nav_kiv_download' class='kis_param' /></td><td>Download full picture icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$slideshow_start</td><td><input id='slideshow_start' class='kis_param' /></td><td>Start slideshow icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$slideshow_stop</td><td><input id='slideshow_stop' class='kis_param' /></td><td>Stop slideshow icon description.</td></tr><tr class='kis_global'><td class='kis_paramname'>$help_text</td><td><input id='help_text' class='kis_param' /></td><td>The help text, that is displayed when you hover over the info icon. The following variable is available: '[mouse]' = mouse moving image</td></tr><tr class='kis_global'><td class='kis_paramname'>$vcomm_lac</td><td><input id='vcomm_lac' class='kis_param' /></td><td>\"Leave a comment\"</td></tr><tr class='kis_global'><td class='kis_paramname'>$vcomm_name</td><td><input id='vcomm_name' class='kis_param' /></td><td>\"Name\"</td></tr><tr class='kis_global'><td class='kis_paramname'>$vcomm_comm</td><td><input id='vcomm_comm' class='kis_param' /></td><td>\"Comment\"</td></tr><tr class='kis_global'><td class='kis_paramname'>$vcomm_post</td><td><input id='vcomm_post' class='kis_param' /></td><td>\"Post comment\"</td></tr><tr class='kis_global'><td class='kis_paramname'>$vcomm_clk</td><td><input id='vcomm_clk' class='kis_param' /></td><td>\"Click on the image to flip back to the full image.\"</td></tr><tr class='kis_global'><td class='kis_paramname'>$vcomm_ncy</td><td><input id='vcomm_ncy' class='kis_param' /></td><td>\"No comments yet.\"</td></tr><tr class='kis_global'><td colspan='3' class='kis_spacer'></td></tr><tr class='kis_global'><td class='kis_paramname'>$admin_mail</td><td><input id='admin_mail' class='kis_param' yn='1' /></td><td>Enable or disable Email notifications for new image viewer comments.</td></tr><tr class='kis_global'><td class='kis_paramname'>$admin_mail_from</td><td><input id='admin_mail_from' class='kis_param' /></td><td>Email-address from where the Emails are send.</td></tr><tr class='kis_global'><td class='kis_paramname'>$admin_mail_to</td><td><input id='admin_mail_to' class='kis_param' /></td><td>Email-address where the Emails are send to.</td></tr><tr class='kis_global'><td colspan='3' style='color:#666;'><b>Remember</b>: The Email notifications system may only work if the '$admin_mail_from'-address actually belongs to this server. The PHP mail()-method needs to be working on your server.</td></tr><tr class='kis_global'><td colspan='3' class='kis_spacer'></td></tr><tr class='kis_global'><td class='kis_paramname'>$show_warnings</td><td><input id='show_warnings' class='kis_param' yn='1' /></td><td>Set to 0, if you don't need to get script warnings displayed.</td></tr><tr class='kis_global'><td colspan='3' class='kis_spacer'></td></tr><tr class='kis_global'><td class='kis_paramname'>$user</td><td><input id='user' class='kis_param' /></td><td>Change the user login name. Users can only upload new images.</td></tr><tr class='kis_global'><td class='kis_paramname'>$userpw</td><td><input id='userpw' class='kis_param' type='password' /></td><td>Change the user login password.</td></tr><tr class='kis_global'><td colspan='3' class='kis_spacer'></td></tr><tr class='kis_global'><td class='kis_paramname'>$admin</td><td><input id='admin' class='kis_param' /></td><td>Change the admin login name.</td></tr><tr class='kis_global'><td class='kis_paramname'>$pw</td><td><input id='pw' class='kis_param' type='password' /></td><td>Change the admin login password.</td></tr><tr class='kis_global'><td colspan='3' style='color:#666;'><b>Remember</b>: If you change your username and/or password you have to logout first and then login again before you can change any other settings.</td></tr></table>";
+ placeparams();
+ <?php addEvent("window", "resize", "viewdim"); ?>
+ viewdim();
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ addEvent("document", "keypress", "taste_kis");
+ } else {
+ addEvent("document", "keydown", "taste_kis");
+ }
+ ?>
+ <?php addEvent("document", "mousemove", "mousemoved"); ?>
+ kis.getSettings();
+ fw.move("authorization", 2, -42, 0);
+ fw.move("kis_topdiv", 2, -96, 0);
+ }
+
+ this.destr = function(){
+ <?php removeEvent("window", "resize", "viewdim"); ?>
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ removeEvent("document", "keypress", "taste_kis");
+ } else {
+ removeEvent("document", "keydown", "taste_kis");
+ }
+ ?>
+ <?php removeEvent("document", "mousemove", "mousemoved"); ?>
+ document.body.removeChild($("kis_maindiv"));
+ document.body.removeChild($("kis_topdiv"));
+ document.body.removeChild($("kis_botdiv"));
+ fw.shadebody(0);
+ fw.move("authorization", 2, 55, 0);
+ fw.move("kis_topdiv", 2, 0, 0);
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ function viewdim(){
+ if(window.innerHeight){
+ windowX = window.innerWidth;
+ windowY = window.innerHeight;
+ } else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
+ windowX = document.documentElement.clientWidth;
+ windowY = document.documentElement.clientHeight;
+ } else if (document.body){ // other Explorers
+ windowX = document.body.clientWidth;
+ windowY = document.body.clientHeight;
+ }
+ var maindiv = $("kis_maindiv");
+ maindiv.style.width = windowX - 8 + "px";
+ maindiv.style.height = windowY - 8 + "px";
+ }
+
+ this.closeSettings = function(){
+ fw.removejs("kis");
+ }
+
+ this.resetSettings = function(){
+ if(currentfile != "default"){
+ var nodes = document.getElementsByTagName("input");
+ var counter = 0;
+ for(var i = 0; i < nodes.length; i++){
+ if(nodes[i].className == 'kis_param'){
+ nodes[i].value = "";
+ if(nodes[i].getAttribute("yn")){
+ document.getElementsByName("kis_group"+counter)[0].checked = false;
+ document.getElementsByName("kis_group"+counter)[1].checked = false;
+ counter++;
+ }
+ }
+ }
+ }
+ }
+
+ function placeparams(){
+ var nodes = document.getElementsByTagName("input");
+ var counter = 0;
+ for(var i = 0; i < nodes.length; i++){
+ if(nodes[i].className == 'kis_param'){
+ nodes[i].id = "kis_" + nodes[i].id;
+ if(nodes[i].getAttribute("yn")){
+ nodes[i].style.display = "none";
+ nodes[i].parentNode.style.color = "#000000";
+ var node = document.createElement("label");
+ node.style.border = "1px solid #8c8c8c";
+ node.style.padding = "2px 0px 2px 15px";
+ node.style.background = "#D6ECA6";
+ node.style.width = "74px";
+ node.style.height = "16px";
+ node.style.lineHeight = "15px";
+ node.style.display = "block";
+ <?php if(in_array($browser, array("ie6", "ie7"))){ ?>
+ node.style.styleFloat = "left";
+ <?php } else { ?>
+ node.style.cssFloat = "left";
+ <?php } ?>
+ node.style.marginRight = "13px";
+ node.innerHTML = "<input type='radio' style='float:left; vertical-align:middle; height:16px; width:16px; padding:0px; margin:0px 3px 0px 0px;' name='kis_group"+counter+"' onclick=\"document.getElementById('"+nodes[i].id+"').value = '1';\" /><span style='float:left;'>Enable</span>";
+ nodes[i].parentNode.appendChild(node);
+ node = document.createElement("label");
+ node.style.border = "1px solid #8c8c8c";
+ node.style.padding = "2px 0px 2px 15px";
+ node.style.background = "#ECA6D6";
+ node.style.width = "74px";
+ node.style.height = "16px";
+ node.style.lineHeight = "15px";
+ node.style.display = "block";
+ <?php if(in_array($browser, array("ie6", "ie7"))){ ?>
+ node.style.styleFloat = "left";
+ <?php } else { ?>
+ node.style.cssFloat = "left";
+ <?php } ?>
+ node.innerHTML = "<input type='radio' style='float:left; vertical-align:middle; height:16px; width:16px; padding:0px; margin:0px 3px 0px 0px;' name='kis_group"+counter+"' onclick=\"document.getElementById('"+nodes[i].id+"').value = '0';\" /><span style='float:left;'>Disable</span>";
+ nodes[i].parentNode.appendChild(node);
+ counter++;
+ } else {
+ nodes[i].style.width = "190px";
+ nodes[i].style.border = "1px solid #8c8c8c";
+ nodes[i].style.padding = "2px";
+ nodes[i].style.margin = "0px";
+ nodes[i].style.background = "#e1edfc";
+ nodes[i].style.color = "#000000";
+ nodes[i].style.textAlign = "center";
+ }
+ }
+ }
+ nodes = document.getElementsByTagName("td");
+ for(var i = 0; i < nodes.length; i++){
+ nodes[i].style.padding = "4px";
+ if(nodes[i].className == 'kis_paramname'){
+ nodes[i].style.fontWeight = "bold";
+ nodes[i].style.color = "#5f443b";
+ nodes[i].style.fontSize = "12px";
+ }
+ if(nodes[i].className == 'kis_spacer'){
+ nodes[i].innerHTML = "<hr style='color:#398789;' />";
+ nodes[i].style.height = "19px";
+ }
+ }
+ }
+
+ this.getSettings = function(setupfile){
+ var params = "?file=";
+ if(setupfile)
+ params += setupfile + "&get=1";
+ else
+ params = "?get=1";
+ var nodes = document.getElementsByTagName("input");
+ var counter = 0;
+ for(var i = 0; i < nodes.length; i++){
+ if(nodes[i].className == 'kis_param'){
+ nodes[i].value = "";
+ if(nodes[i].getAttribute("yn")){
+ document.getElementsByName("kis_group"+counter)[0].checked = false;
+ document.getElementsByName("kis_group"+counter)[1].checked = false;
+ counter++;
+ }
+ }
+ }
+ nodes = document.getElementsByTagName("tr");
+ if(setupfile){
+ for(var i = 0; i < nodes.length; i++){
+ if(nodes[i].className == 'kis_global'){
+ nodes[i].style.display = "none";
+ }
+ }
+ } else {
+ for(var i = 0; i < nodes.length; i++){
+ if(nodes[i].className == 'kis_global'){
+ <?php if($browser === "ie6"){ ?>
+ nodes[i].style.display = "block";
+ <?php } else { ?>
+ nodes[i].style.display = "table-row";
+ <?php } ?>
+ }
+ }
+ }
+ $("kis_selfile").innerHTML = "";
+ $("kis_resetbutton").style.display = "none";
+ fw.getHTTP("<?php echo $basedir ?>ki_getsetsettings.php" + params, gotSettings, setupfile);
+ }
+
+ function gotSettings(responseText, setupfile){
+ if(!setupfile)setupfile = "default";
+ currentfile = setupfile;
+ if(currentfile == "default"){
+ $("kis_selfile").innerHTML = "ki_setup.php";
+ } else {
+ $("kis_selfile").innerHTML = setupfile + "_ki_setup.php";
+ }
+ if(currentfile != "default"){
+ $("kis_resetbutton").style.display = "block";
+ }
+ if(responseText != ""){
+ var jsontxt = responseText;
+ var settings = eval("(" + jsontxt + ")");
+
+ <?php
+ reset($GLOBALS);
+ for($i = 0; $i < $global_start; $i++)next($GLOBALS);
+ for($i = 0; $i < $global_length; $i++){
+ list($key, $val) = each($GLOBALS);
+ echo "\$(\"kis_$key\").value = settings.$key ? stripslashes(settings.$key) : \"\";\r\n";
+ }
+ ?>
+ $("kis_pw").value = "";
+ $("kis_userpw").value = "";
+
+ var nodes = document.getElementsByTagName("input");
+ var counter = 0;
+ for(var i = 0; i < nodes.length; i++){
+ if(nodes[i].className == 'kis_param'){
+ if(nodes[i].getAttribute("yn")){
+ if(nodes[i].value == "1")document.getElementsByName("kis_group"+counter)[0].checked = true;
+ if(nodes[i].value == "0")document.getElementsByName("kis_group"+counter)[1].checked = true;
+ counter++;
+ }
+ }
+ }
+
+ }
+ }
+
+ function stripslashes(str) {
+ str = str.replace(/\\'/g,'\'');
+ str = str.replace(/\\"/g,'"');
+ str = str.replace(/\\0/g,'\0');
+ str = str.replace(/\\\\/g,'\\');
+ return str;
+ }
+
+ this.saveSettings = function(){
+ if(currentfile != ""){
+ var params = "?file=" + currentfile + "&set=1";
+ <?php
+ reset($GLOBALS);
+ for($i = 0; $i < $global_start; $i++)next($GLOBALS);
+ for($i = 0; $i < $global_length; $i++){
+ list($key, $val) = each($GLOBALS);
+ echo "params += helpsave(\"$key\");\r\n";
+ }
+ ?>
+ var errors = lastcheck();
+ if(errors == 0){
+ fw.getHTTP("<?php echo $basedir ?>ki_getsetsettings.php" + params, savedSettings, currentfile);
+ } else {
+ alert("Error: All fields must be set for 'ki_setup.php'!");
+ }
+ }
+ }
+
+ function lastcheck(){
+ if(currentfile == "default"){
+ var nodes = document.getElementsByTagName("input");
+ for(var i = 0; i < nodes.length; i++){
+ if(nodes[i].className == 'kis_param'){
+ if(nodes[i].value == "" && nodes[i].id != "kis_pw" && nodes[i].id != "kis_userpw")return 1; // check all fields, except pw
+ }
+ }
+ }
+ return 0;
+ }
+
+ function helpsave(param){
+ return $("kis_"+param).value != "" ? "&"+param+"=" + encodeURIComponent($("kis_"+param).value) : "";
+ }
+
+ function savedSettings(responseText, savedfile){
+ var dirname = savedfile;
+ if(savedfile == "default")
+ savedfile = "ki_setup.php";
+ else
+ savedfile += "_ki_setup.php";
+ if(responseText == 'adminchanged'){
+ alert("File '"+savedfile+"' modified. You changed also your login username and/or password. You will now be logged out. Please login with your new data.");
+ var params = location.search.substr(1).split('&');
+ var newparams = "";
+ for(var i = 0; i < params.length; i++){
+ var param = params[i].split('=');
+ if(param[0] != 'admin'){
+ if(newparams.length == 0)
+ newparams += "?";
+ else
+ newparams += "&";
+ newparams += params[i];
+ } else {
+ if(newparams.length == 0)
+ newparams += "?";
+ else
+ newparams += "&";
+ newparams += "admin=" + $("kis_admin").value;
+ }
+ }
+ location.href = "./" + newparams;
+ } else if(responseText == 'modified'){
+ alert("File '"+savedfile+"' modified.");
+ kib.reloadcsandreinit();
+ } else {
+ alert("ERROR: File '"+savedfile+"' could not be saved/modified.");
+ }
+ }
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ function taste_kis(aEvent) {
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ if(keyCode == 27){
+ kis.closeSettings();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+
+ function mousemoved(aEvent){
+ aEvent = aEvent ? aEvent : window.event;
+ var x = aEvent.clientX ? aEvent.clientX : aEvent.pageX;
+ var y = aEvent.clientY ? aEvent.clientY : aEvent.pageY;
+ if(y < 180 && x < 30 && !open){
+ open = 1;
+ fw.move("authorization", 2, 55, 0);
+ fw.move("kis_topdiv", 2, 0, 0);
+ return;
+ }
+ if(x > 120 || y > 180){
+ open = 0;
+ fw.move("authorization", 2, -42, 0);
+ fw.move("kis_topdiv", 2, -96, 0);
+ }
+ }
+}
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_upload.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_upload.php
new file mode 100644
index 00000000..97a5ea6d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_upload.php
@@ -0,0 +1,611 @@
+<?php
+ob_start("ob_gzhandler");
+
+session_start();
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//-------------------------------------- functions -------------------------------------
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser === "ie6" || $browser === "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+function removeEvent($el, $event, $function){
+ global $browser;
+ if($browser === "ie6" || $browser === "ie7"){
+ echo $el.".detachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".removeEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+//-------------------------------------- end functions -----------------------------------
+
+include("../ki_config/ki_setup.php");
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser === "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+if($pwok == 0)exit();
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Settings module 'kiu' --------------------------------------------------------------------
+
+function kiu_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var windowX;
+ var windowY;
+ var currentfolder = "";
+ var finalsizes = Array();
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function(){
+ if(typeof(kiv_module) == "function")kiv.closeImage();
+ if(typeof(kie_module) == "function")kie.closeGallery();
+ if(typeof(kis_module) == "function")kis.closeSettings();
+ if(typeof(kid_module) == "function")kid.close();
+ if(typeof(kic_module) == "function")kic.close();
+ if(typeof(kim_module) == "function")kim.close();
+ fw.shadebody(1);
+ var node;
+ if(!$("kiu_maindiv")){
+ node = document.createElement("div");
+ node.id = "kiu_maindiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ node.style.zIndex = 1000;
+ node.style.overflowX = "hidden";
+ node.style.overflowY = "auto";
+ node.style.display = "block";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.padding = "4px";
+ node.innerHTML = "<div id='upload_div' style='background:#D2D2D2; position:absolute; left:50%; top:50%; margin-left:-481px; margin-top:-266px; border:1px solid #000000; padding:4px; height:530px; width:960px;'></div><div style='position:absolute; left:50%; top:50%; margin-left:-481px; margin-top:-266px; width:960px; height:480px; padding:4px; z-index:3; background:#D2D2D2; text-align:center; border:1px solid #000000; padding-top:54px; display:none;' id='kiu_progress'><span style='font-size:14px; font-weight:bold;'>Uploading files</span><div style='position:absolute; left:180px; top:150px; height:24px; width:600px; border:1px dashed #fff; line-height:24px; background:#afafaf;'><div id='kiu_progress_cur' style='position:absolute; left:0px; top:0px; width:0%; height:100%; background:#F63;'></div><div style='position:relative; color:#fff; overflow:hidden;'></div></div><div style='position:absolute; left:180px; top:250px; height:24px; width:600px; border:1px dashed #fff; line-height:24px; background:#afafaf;'><div id='kiu_progress_tot' style='position:absolute; left:0px; top:0px; width:0%; height:100%; background:#F63;'></div><div style='position:relative; color:#fff; overflow:hidden;'></div></div></div><div id='kiu_uploaddata' style='display:none;'></div>";
+ document.body.appendChild(node);
+ node = $("upload_div");
+ var uploadfield = "";
+ if(supportAjaxUploadWithProgress()){
+ uploadfield += "<form id='kiu_m_file_form'><div style='font-size:12px; text-align:center; padding-bottom:40px; padding-top:40px;'>Your browser supports uploading multiple files. Select all files from the \"Browse files\" upload field.</div><div style='position:relative; width:580px; margin:auto;'><input type='file' size='74' style='width:575px; padding:2px; margin:0px; border:1px solid #000; display:block; position:relative; <?php echo in_array($browser, array("ie6", "ie7")) ? "filter:alpha(opacity:0);" : "opacity:0;" ?> z-index:2;' onchange='kiu.choseMFiles(this)' multiple='multiple' name='pic' id='kiu_m_file' /><div style='position:absolute; left:0px; top:0px; z-index:1;'><div style='width:475px; height:18px; padding:2px; margin:0px; border:1px solid #8c8c8c; float:left; margin-right:5px; background:#fff; line-height:18px; margin-bottom:20px;'></div><input type='button' value='Browse files' style='float:left; display:block; margin:0px; padding:2px; border:1px solid #8c8c8c; height:24px; line-height:18px; width:90px;' /></div></div></form>";
+ } else {
+ for(var i = 0; i < 9; i++){
+ uploadfield += "<div style='position:relative; width:580px; margin:auto; margin-top:18px; height:27px; overflow:hidden;'><form action='<?php echo $basedir ?>ki_upload.php' target='kiu_uploadframe"+i+"' name='kiu_upform"+i+"' enctype='multipart/form-data' method='post'><input type='hidden' value='' name='dir'><input type='hidden' value='0' name='addwatermark'><input type='hidden' value='' name='maxx'><input type='hidden' value='' name='maxy'><iframe name='kiu_uploadframe"+i+"' src='about:blank' style='display:none;'></iframe><input type='file' size='74' style='width:575px; padding:2px; margin:0px; border:1px solid #000; display:block; position:relative; <?php echo in_array($browser, array("ie6", "ie7")) ? "filter:alpha(opacity:0);" : "opacity:0;" ?> z-index:2;' onchange='kiu.choseFiles(this)' name='pic' /><div style='position:absolute; left:0px; top:0px; z-index:1;'><input type='text' style='width:475px; height:18px; padding:2px; margin:0px; border:1px solid #8c8c8c; float:left; margin-right:5px;' /><input type='button' value='Browse file' style='float:left; display:block; margin:0px; padding:2px; border:1px solid #8c8c8c; height:24px; line-height:18px; width:90px;' /></div></form></div>";
+ }
+ }
+ uploadfield += "<div style='position:absolute; bottom:20px; left:195px; width:580px; margin:0px; line-height:22px; vertical-align:middle;'><span style='float:left;'>Upload a watermark:</span><div style='position:relative; width:450px; margin:auto; height:27px; overflow:hidden; float:right;'><form action='<?php echo $basedir ?>ki_upload.php' target='kiu_watermark' name='kiu_watermark_form' enctype='multipart/form-data' method='post'><iframe name='kiu_watermark' src='about:blank' style='display:none;'></iframe><input type='file' size='74' style='width:445px; padding:2px; margin:0px; border:1px solid #000; display:block; position:relative; <?php echo in_array($browser, array("ie6", "ie7")) ? "filter:alpha(opacity:0);" : "opacity:0;" ?> z-index:2;' onchange='kiu.choseFiles(this)' name='pic' /><div style='position:absolute; left:0px; top:0px; z-index:1;'><input type='text' style='width:345px; height:18px; padding:2px; margin:0px; border:1px solid #8c8c8c; float:left; margin-right:5px;' /><input type='button' value='Browse file' style='float:left; display:block; margin:0px; padding:2px; border:1px solid #8c8c8c; height:24px; line-height:18px; width:90px;' /></div><input type='hidden' name='watermark' value='1' /></form></div><span style='float:left; margin-right:15px; margin-top:8px; width:150px;'>Add watermark to images:</span><input type='checkbox' style='display:block; margin:0px; margin-top:10px; float:left;' onclick='kiu.toggleWatermark(this)' id='kiu_wmcb' /><br /><span style='float:left; margin-right:15px; margin-top:8px; clear:both;'>Reduce maximum image size to:</span><input type='text' style='width:50px; height:18px; padding:2px; margin:0px; margin-top:8px; margin-right:8px; border:1px solid #8c8c8c; float:left; text-align:center;' id='kiu_maxx' /><span style='float:left; margin-top:8px;'>x</span><input type='text' style='width:50px; height:18px; padding:2px; margin:0px; margin-top:8px; margin-left:10px; border:1px solid #8c8c8c; float:left; text-align:center;' id='kiu_maxy' /><div style='float:right; margin-left:10px; margin-top:-20px; margin-right:5px; height:52px; width:220px;'><?php draw_image("ki_watermark.pic", "kiu_wm_preview", "max-height:100%; max-width:100%; float:right; visibility:hidden;", "alt='Watermark'"); ?></div></div>";
+ node.innerHTML = uploadfield;
+ <?php if(is_file("ki_watermark.pic"))echo "$('kiu_wm_preview').style.visibility = 'visible';"; ?>
+ }
+ if(!$("kiu_topdiv")){
+ node = document.createElement("div");
+ node.id = "kiu_topdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.height = "45px";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px 20px 0px 120px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderBottom = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.left = "0px";
+ node.style.top = "0px";
+ var dirs = "";
+ for(var i = 0; i < kib.dirs.length; i++){
+ dirs = dirs + "<span style='cursor:pointer; text-decoration:underline; margin-right:5px; line-height:14px;' onclick=\"kiu.setFolder('" + kib.dirs[i] + "')\">" + kib.dirs[i] + "</span>";
+ }
+ currentfolder = kib.dirs[0];
+ node.innerHTML = "<div style='margin-bottom:5px;'><span style='font-size:14px; line-height:18px; font-weight:bold; color:#003; margin-right:5px;'>Selected gallery upload folder</span><span style='background:#003; border:1px solid #CCC; padding:3px; color:#ffffff;' id='kiu_selfolder'>" + currentfolder + "</span></div>" + dirs;
+ document.body.appendChild(node);
+ }
+ if(!$("kiu_botdiv")){
+ node = document.createElement("div");
+ node.id = "kiu_botdiv";
+ node.style.background = "#aaaaaa";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1001;
+ node.style.padding = "5px";
+ node.style.font = "12px Tahoma, sans-serif";
+ node.style.color = "#222222";
+ node.style.borderTop = "1px solid #000000";
+ node.style.borderRight = "1px solid #000000";
+ node.style.borderLeft = "1px solid #000000";
+ node.style.right = "25px";
+ node.style.bottom = "0px";
+ node.innerHTML = "<input type='button' value='Close' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px;' onclick='kiu.closeUpload()' /><input type='button' value='Upload files' style='margin:0px; margin-right:10px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px; background:#B8E8D4;' onclick='kiu.startUpload()' /><input type='button' value='Upload watermark' style='margin:0px; margin-right:10px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:150px;' onclick='kiu.uploadWatermark()' />";
+ document.body.appendChild(node);
+ kib.showhelp(node, 4, 5);
+ node.onmouseover = function(){
+ kib.hidehelp();
+ }
+ }
+ <?php addEvent("window", "resize", "viewdim"); ?>
+ viewdim();
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ addEvent("document", "keypress", "taste_kiu");
+ } else {
+ addEvent("document", "keydown", "taste_kiu");
+ }
+ ?>
+ kiu.setFolder(currentfolder);
+ }
+
+ this.destr = function(){
+ <?php removeEvent("window", "resize", "viewdim"); ?>
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ removeEvent("document", "keypress", "taste_kiu");
+ } else {
+ removeEvent("document", "keydown", "taste_kiu");
+ }
+ ?>
+ document.body.removeChild($("kiu_maindiv"));
+ document.body.removeChild($("kiu_topdiv"));
+ document.body.removeChild($("kiu_botdiv"));
+ fw.shadebody(0);
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ function viewdim(){
+ if(window.innerHeight){
+ windowX = window.innerWidth;
+ windowY = window.innerHeight;
+ } else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
+ windowX = document.documentElement.clientWidth;
+ windowY = document.documentElement.clientHeight;
+ } else if (document.body){ // other Explorers
+ windowX = document.body.clientWidth;
+ windowY = document.body.clientHeight;
+ }
+ var maindiv = $("kiu_maindiv");
+ maindiv.style.width = windowX - 8 + "px";
+ maindiv.style.height = windowY - 8 + "px";
+ }
+
+ this.closeUpload = function(){
+ kib.hidehelp();
+ fw.removejs("kiu");
+ kib.reinit();
+ }
+
+ function supportAjaxUploadWithProgress() {
+ var xhr = new XMLHttpRequest();
+ if (window.File && window.FileReader && window.FileList && ('upload' in xhr) && ('onprogress' in xhr.upload)) {
+ if(window.FormData){
+ return 1;
+ } else if('sendAsBinary' in xhr){
+ return 1;
+ }
+ }
+ return 0;
+ }
+
+ this.choseFiles = function(obj){
+ var fakefield = obj.nextSibling.firstChild;
+ var fileInput = obj;
+ var ret = "";
+ <?php if(in_array($browser, array("ie6", "ie7", "ie9", "opera"))) { ?>
+ var temp = fileInput.value.split("\\");
+ ret = temp[temp.length-1];
+ <?php } else { ?>
+ ret = fileInput.files[0].name;
+ <?php } ?>
+ fakefield.value = ret;
+ }
+
+ this.choseMFiles = function(obj){
+ var fakefield = obj.nextSibling.firstChild;
+ var fileInput = obj;
+ var ret = "";
+
+ for(var i = 0; i < fileInput.files.length; i++){
+ if(i != 0)ret += ", ";
+ ret += fileInput.files[i].name;
+ }
+
+ var temp = fw.getDim(fakefield, 1);
+ fakefield.style.visibility = "hidden";
+ fakefield.style.height = "auto";
+ fakefield.style.overflow = "visible";
+ fakefield.innerHTML = ret;
+ temp2 = fw.getDim(fakefield, 1);
+ fakefield.style.overflow = "hidden";
+ fakefield.style.height = temp[1] + "px";
+ fakefield.style.visibility = "visible";
+ fw.resize(fakefield, 4, 0, temp2[1]);
+ }
+
+ this.setFolder = function(folder){
+ currentfolder = folder;
+ var i = 0;
+ while(document.getElementsByName("kiu_upform"+i)[0]){
+ var obj = document.getElementsByName("kiu_upform"+i)[0];
+ obj.dir.value = folder;
+ i++;
+ }
+ $("kiu_selfolder").innerHTML = folder;
+ }
+
+ this.uploadWatermark = function(){
+ var myform = document.getElementsByName("kiu_watermark_form")[0];
+ myform.submit();
+ }
+
+ this.uploadedWatermark = function(){
+ var obj = $("kiu_wm_preview");
+ obj.src = "<?php echo $basedir ?>ki_watermark.pic?" + Math.round(Math.random()*10000);
+ obj.style.visibility = 'visible';
+ }
+
+ this.toggleWatermark = function(wm){
+ var i = 0;
+ while(document.getElementsByName("kiu_upform"+i)[0]){
+ var obj = document.getElementsByName("kiu_upform"+i)[0];
+ if(wm.checked == true){
+ obj.addwatermark.value = "1";
+ } else {
+ obj.addwatermark.value = "0";
+ }
+ i++;
+ }
+ }
+
+ this.startUpload = function(){
+ $("kiu_progress").style.display = "block";
+ if(supportAjaxUploadWithProgress()){
+ sendfile(0);
+ } else {
+ $("kiu_progress_cur").style.width = "0%";
+ $("kiu_progress_tot").style.width = "0%";
+ var myform = document.getElementsByName("kiu_upform0");
+ var loop = 0;
+ while(myform[0]){
+ myform[0].maxx.value = $("kiu_maxx").value;
+ myform[0].maxy.value = $("kiu_maxy").value;
+ <?php if( in_array($browser, array("gecko", "webkit")) ){ ?>
+ if(myform[0].pic.files[0]){
+ finalsizes.push(myform[0].pic.files[0].size);
+ } else {
+ finalsizes.push(0);
+ }
+ <?php } else { ?>
+ if(myform[0].pic.value){
+ finalsizes.push(1);
+ } else {
+ finalsizes.push(0);
+ }
+ <?php } ?>
+ loop++;
+ myform = document.getElementsByName("kiu_upform"+loop);
+ }
+ fw.getHTTP("<?php echo $basedir ?>ki_getuploadinfo.php?form=reset", submitform, 0);
+ }
+ }
+
+ function sendfile(no){
+ var fileInput = $('kiu_m_file');
+ var file = fileInput.files[no];
+
+ if(!file){
+ allfinished();
+ return -1;
+ }
+
+ var allsize = 0;
+ var completesize = 0;
+ for(var i = 0; i < no; i++){
+ completesize += fileInput.files[i].size;
+ }
+ for(var i = 0; i < fileInput.files.length; i++){
+ allsize += fileInput.files[i].size;
+ }
+
+ var reader = new FileReader();
+
+ reader.onloadend = function(evt){
+
+ var xhr = new XMLHttpRequest();
+
+ var bar_cur = $("kiu_progress_cur");
+ var bar_tot = $("kiu_progress_tot");
+
+ bar_cur.nextSibling.innerHTML = "Current '" + file.name + "'";
+
+ xhr.upload.addEventListener("progress", function(e) {
+ if(e.lengthComputable){
+ var curfilecomplete = Math.round((e.loaded / e.total)*file.size);
+ var barsize = Math.round(((completesize+curfilecomplete)/allsize)*100);
+ bar_cur.style.width = Math.round((e.loaded / e.total)*100) + "%";
+ bar_tot.style.width = barsize + "%";
+ bar_tot.nextSibling.innerHTML = "Total: " + barsize + " %";
+ }
+ }, false);
+
+ xhr.onload = function(e) {
+ completesize += file.size;
+ bar_cur.style.width = "100%";
+ bar_cur.nextSibling.innerHTML = "'" + file.name + "' uploaded.";
+ var barsize = Math.round((completesize/allsize)*100);
+ bar_tot.style.width = barsize + "%";
+ bar_tot.nextSibling.innerHTML = "Total: " + barsize + " %";
+ setTimeout(function(){
+ sendfile(no+1);
+ }, 1000);
+ };
+
+ xhr.open('POST', '<?php echo $basedir ?>ki_upload.php', true);
+
+ var wm = $("kiu_wmcb");
+ if(wm.checked == true){
+ wm = "1";
+ }else{
+ wm = "0";
+ }
+
+ if(window.FormData){
+ var formData = new FormData();
+ formData.append("dir", currentfolder);
+ formData.append("addwatermark", wm);
+ formData.append("pic", file);
+ formData.append("maxx", $("kiu_maxx").value);
+ formData.append("maxy", $("kiu_maxy").value);
+ xhr.send(formData);
+ } else {
+ //xhr.setRequestHeader("Cache-Control", "no-cache");
+ //xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
+
+ var CRLF = "\r\n";
+ var boundary = "AJAX-----------------------" + (new Date).getTime();
+
+ var requestBody = "Content-Type: multipart/form-data; boundary="+boundary+CRLF+CRLF;
+ //requestBody += "Content-Length: "+file.size+CRLF+CRLF;
+ requestBody += "--"+boundary+CRLF;
+
+ requestBody += "Content-Disposition: form-data; name=\"dir\""+CRLF+CRLF;
+ requestBody += currentfolder+CRLF;
+ requestBody += "--"+boundary+CRLF;
+
+ requestBody += "Content-Disposition: form-data; name=\"addwatermark\""+CRLF+CRLF;
+ requestBody += wm+CRLF;
+ requestBody += "--"+boundary+CRLF;
+
+ requestBody += "Content-Disposition: form-data; name=\"maxx\""+CRLF+CRLF;
+ requestBody += $("kiu_maxx").value+CRLF;
+ requestBody += "--"+boundary+CRLF;
+
+ requestBody += "Content-Disposition: form-data; name=\"maxy\""+CRLF+CRLF;
+ requestBody += $("kiu_maxy").value+CRLF;
+ requestBody += "--"+boundary+CRLF;
+
+ requestBody += "Content-Disposition: form-data; name=\"pic\"; filename=\""+file.name+"\""+CRLF;
+ requestBody += "Content-Type: application/octet-stream"+CRLF+CRLF;
+ requestBody += evt.target.result+CRLF;
+ requestBody += "--"+boundary+"--"+CRLF;
+
+ xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=" + boundary);
+ xhr.sendAsBinary(requestBody);
+ }
+ };
+ reader.readAsBinaryString(file);
+ }
+
+
+ function submitform(responseText, nextform){
+ for(var i = nextform; i < finalsizes.length; i++){
+ if(finalsizes[i] != 0){
+ //alert("started " + i);
+ document.getElementsByName("kiu_upform"+i)[0].submit();
+ setTimeout( function(){
+ fw.getHTTP("<?php echo $basedir ?>ki_getuploadinfo.php?form="+i, gotuploadinfo, i);
+ }, 1000);
+ return;
+ }
+ }
+ var counter = 0;
+ for(var i = 0; i < finalsizes.length; i++){
+ if(finalsizes[i] == 0)counter++;
+ }
+ if(counter == finalsizes.length){
+ allfinished();
+ } else { // alle gestartet, aber es laufen noch uploads
+ setTimeout( function(){
+ fw.getHTTP("<?php echo $basedir ?>ki_getuploadinfo.php?form="+(nextform-1), gotuploadinfo, nextform-1);
+ }, 1000);
+ }
+ }
+
+ function allfinished(){
+ $("kiu_progress").style.display = "none";
+ var bar_cur = $("kiu_progress_cur");
+ var bar_tot = $("kiu_progress_tot");
+ bar_cur.nextSibling.innerHTML = "";
+ bar_tot.nextSibling.innerHTML = "";
+ bar_cur.style.width = "0%";
+ bar_tot.style.width = "0%";
+ if(!supportAjaxUploadWithProgress()){
+ finalsizes = Array();
+ var myform = document.getElementsByName("kiu_upform0");
+ var loop = 0;
+ while(myform[0]){
+ myform[0].reset();
+ loop++;
+ myform = document.getElementsByName("kiu_upform"+loop);
+ }
+ } else {
+ $('kiu_m_file_form').reset();
+ var fakefield = $('kiu_m_file').nextSibling.firstChild;
+ fakefield.innerHTML = "";
+ fw.resize(fakefield, 4, 0, 18);
+ }
+ }
+
+ function gotuploadinfo(responseText, nextform){
+ var obj = $("kiu_uploaddata");
+ var counter;
+ var currentsizes = Array();
+
+ obj.innerHTML = responseText;
+
+ for(var i = 1; i < obj.childNodes.length; i++){
+ currentsizes.push(obj.childNodes[i].value);
+ }
+
+ var bar_cur = $("kiu_progress_cur");
+ var bar_tot = $("kiu_progress_tot");
+ <?php if( in_array($browser, array("gecko", "webkit")) ){ ?>
+ var fileName = document.getElementsByName("kiu_upform"+nextform)[0].pic.files[0].name;
+ if(currentsizes[nextform] != "finished"){
+ var barsize = Math.round((currentsizes[nextform]/finalsizes[nextform])*100);
+ bar_cur.style.width = barsize + "%";
+ bar_cur.nextSibling.innerHTML = "Current '" + fileName + "'";
+ var total = 0;
+ var current = 0;
+ for(var i = 0; i < finalsizes.length; i++){
+ total += finalsizes[i];
+ if(currentsizes[i] != "finished"){
+ current += parseInt(currentsizes[i]);
+ } else {
+ current += parseInt(finalsizes[i]);
+ }
+ }
+ barsize = Math.round((current/total)*100);
+ bar_tot.style.width = barsize + "%";
+ bar_tot.nextSibling.innerHTML = "Total: " + barsize + " %";
+ } else {
+ bar_cur.style.width = "100%";
+ bar_cur.nextSibling.innerHTML = "'" + fileName + "' uploaded.";
+ }
+ <?php } else { ?>
+ var fileName = document.getElementsByName("kiu_upform"+nextform)[0].pic.value.split("\\");
+ fileName = fileName[fileName.length-1];
+ if(currentsizes[nextform] != "finished"){
+ bar_cur.style.width = "100%";
+ bar_cur.nextSibling.innerHTML = "Current '" + fileName + "' " + Math.round(currentsizes[nextform]/1024) + " KB uploaded";
+ var total = 0;
+ var current = 0;
+ for(var i = 0; i < finalsizes.length; i++){
+ total += finalsizes[i];
+ if(currentsizes[i] == "finished"){
+ current += 1;
+ }
+ }
+ var barsize = Math.round((current/total)*100);
+ bar_tot.style.width = barsize + "%";
+ bar_tot.nextSibling.innerHTML = "Total: " + barsize + " %";
+ } else {
+ bar_cur.style.width = "100%";
+ bar_cur.nextSibling.innerHTML = "'" + fileName + "' uploaded.";
+ }
+ <?php } ?>
+
+ counter = 0;
+ for(var i = 0; i < currentsizes.length; i++){
+ if(currentsizes[i] == "finished" || finalsizes[i] == 0)counter++;
+ }
+ if(counter == currentsizes.length){
+ allfinished();
+ } else {
+ for(var i = 0; i < currentsizes.length; i++){
+ if(currentsizes[i] != "finished" && finalsizes[i] != 0){
+ if(obj.firstChild.value == 1){
+ submitform("", nextform+1);
+ } else { // upload läuft, aber nächster kann noch nicht gestartet werden
+ setTimeout( function(){
+ fw.getHTTP("<?php echo $basedir ?>ki_getuploadinfo.php?form="+nextform, gotuploadinfo, nextform);
+ }, 1000);
+ }
+ return;
+ }
+ }
+ }
+
+ }
+
+
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ function taste_kiu(aEvent) {
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ if(keyCode == 27){
+ kiu.closeUpload();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+}
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_view.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_view.php
new file mode 100644
index 00000000..e2edf708
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_js_view.php
@@ -0,0 +1,1789 @@
+<?php
+ob_start("ob_gzhandler");
+
+session_start();
+
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$basedir.$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$basedir.$filename."'".$style.$params." />";
+ }
+}
+
+function addEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".attachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".addEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+function removeEvent($el, $event, $function){
+ global $browser;
+ if($browser == "ie6" || $browser == "ie7"){
+ echo $el.".detachEvent('on".$event."', ".$function.");\n";
+ } else {
+ echo $el.".removeEventListener('".$event."', ".$function.", false);\n";
+ }
+}
+
+//------------------------------------------------------------------------ end functions ----------------------------------------------------------------------------------
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+if(isset($_GET['reldir']))
+ $reldir = $_GET['reldir'];
+else
+ $reldir = "";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ $gallery = "";
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+header("Content-Type: application/x-javascript");
+?>
+
+// Viewing module 'kiv' --------------------------------------------------------------------
+
+function kiv_module(){
+
+ /* -------------------------------- variables ----------------------------------- */
+
+ var cur_gallery = -1;
+ var cur_pic = -1;
+ var preloading;
+ var breakpreloading = 0;
+ var cur_load = 0;
+ var windowX;
+ var windowY;
+ var oversizeX = 0;
+ var oversizeY = 0;
+ var posX;
+ var posY;
+ var previewing = 0;
+ var ss = -1;
+ var stop = 0;
+ var flipped = 2;
+
+ /* -------------------------------- getElementById function --------------------- */
+
+ function $(id){
+ return document.getElementById(id);
+ }
+
+ /* -------------------------------- constructor/descturctor --------------------- */
+
+ this.constr = function(params){
+ <?php addEvent("window", "resize", "viewdim"); ?>
+ viewdim();
+ var node;
+ if(!$("kiv_picdiv")){
+ node = document.createElement("div");
+ node.id = "kiv_picdiv";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1000;
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.padding = "0px";
+ node.style.display = "none";
+ node.style.overflow = "hidden";
+ document.body.appendChild(node);
+ }
+
+ if(!$("kiv_comdiv")){
+ node = document.createElement("div");
+ node.id = "kiv_comdiv";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1000;
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.padding = "10px";
+ node.style.display = "none";
+ node.style.overflow = "hidden";
+ node.style.font = "<?php echo $comm_text_size."px ".$comm_text_font ?>";
+ node.style.color = "<?php echo $comm_text_color ?>";
+ fw.dropshadow(node, 1);
+ document.body.appendChild(node);
+ }
+
+ if(!$("kiv_inshadow")){
+ node = document.createElement("div");
+ node.id = "kiv_inshadow";
+ node.style.position = "relative";
+ node.style.left = "0%";
+ node.style.top = "0%";
+ node.style.zIndex = 1000;
+ node.style.background = "none";
+ node.style.padding = "0px";
+ node.style.border = "<?php echo $bord_size ?>px solid <?php echo $bord_color ?>";
+ node.style.width = "0px";
+ node.style.height = "0px";
+ node.style.display = "none";
+ node.style.overflow = "hidden";
+ node.style.cursor = "pointer";
+ node.onclick = function(){
+ kiv.goon(1);
+ }
+ fw.dropshadow(node, 3);
+ $("kiv_picdiv").appendChild(node);
+ }
+ if(!$("kiv_closebutton")){
+ var tbcontent = "<?php draw_image("ki_nav_close.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.closeImage();\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_kiv_close), ENT_QUOTES, "UTF-8")."'"); ?>";
+ node = document.createElement("div");
+ node.id = "kiv_closebutton";
+ node.style.position = "absolute";
+ node.style.top = "0px";
+ node.style.right = "0px";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.zIndex = 10000;
+ node.style.padding = "1px 1px 3px 1px";
+ node.style.lineHeight = "12px";
+ fw.dropshadow(node, 1);
+ node.innerHTML = tbcontent;
+ $("kiv_inshadow").appendChild(node);
+ }
+ <?php if($show_help == 1){ ?>
+ if(!$("kiv_help")){
+ var nodeh = document.createElement("div");
+ nodeh.id = "kiv_help";
+ nodeh.style.color = "<?php echo $comm_text_color ?>";
+ nodeh.style.font = "12px Tahoma, sans-serif";
+ nodeh.style.position = "absolute";
+ <?php if($help_pos === "left"){ ?>
+ nodeh.style.left = "4px";
+ <?php } else { ?>
+ nodeh.style.right = "4px";
+ <?php } ?>
+ nodeh.style.bottom = "4px";
+ nodeh.style.lineHeight = "19px";
+ nodeh.style.textAlign = "left";
+ nodeh.style.zIndex = "10";
+ if(ss == 1)nodeh.style.display = "none";
+ var infosymbol = "<?php draw_image("ki_nav_info.png", "", "border:0px; vertical-align:bottom; display:inline;", ""); ?>";
+ var infocontent = "<?php echo htmlentities(stripslashes($help_text), ENT_QUOTES, "UTF-8") ?>";
+ infocontent = infocontent.replace("[mouse]", "<?php draw_image("ki_mouse_help.png", "", "vertical-align:middle; padding:0px 2px 0px 2px;", ""); ?>");
+ nodeh.innerHTML = infosymbol;
+ fw.addevent( nodeh, "mouseover", function(){
+ nodeh.style.width = "250px";
+ nodeh.style.padding = "4px";
+ nodeh.style.background = "<?php echo $bord_color ?>";
+ nodeh.style.border = "2px solid <?php echo $nav_border_color ?>";
+ nodeh.innerHTML = infocontent;
+ fw.fade(nodeh, 100);
+ } );
+ fw.addevent( nodeh, "mouseout", function(){
+ nodeh.style.width = "auto";
+ nodeh.style.padding = "0px";
+ nodeh.style.background = "none";
+ nodeh.style.border = "0px";
+ nodeh.innerHTML = infosymbol;
+ fw.fade(nodeh, 51);
+ } );
+ $("kiv_inshadow").appendChild(nodeh);
+ setTimeout( function(){
+ if(nodeh && ss != 1 && nodeh.style.width != "250px" && nodeh.style.display != "none")fw.fade(nodeh, 51);
+ }, 5000);
+ }
+ <?php } ?>
+ <?php if($checkgps == 1){ ?>
+ if(!$("kiv_gpspic")){
+ var tbcontent = "<?php draw_image("ki_nav_globe.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.opengps();\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_gps_coord), ENT_QUOTES, "UTF-8")."'"); ?>";
+ node = document.createElement("div");
+ node.id = "kiv_gpspic";
+ node.style.position = "absolute";
+ node.style.top = "0px";
+ node.style.left = "0px";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.zIndex = 10000;
+ node.style.padding = "1px 1px 3px 1px";
+ node.style.lineHeight = "12px";
+ fw.dropshadow(node, 1);
+ node.style.display = "none";
+ node.innerHTML = tbcontent;
+ $("kiv_inshadow").appendChild(node);
+ }
+ <?php } ?>
+
+
+ if(!$("kiv_loading")){
+ node = document.createElement("img");
+ node.id = "kiv_loading";
+ <?php $loadimgsize = getimagesize("ki_loading.gif"); ?>
+ node.style.margin = "0px";
+ node.style.marginLeft = "-<?php echo 0.5*$loadimgsize[0] ?>px";
+ node.style.marginTop = "-<?php echo 0.5*$loadimgsize[1] ?>px";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.top = "50%";
+ node.style.left = "50%";
+ node.style.zIndex = 10000;
+ node.src = "<?php echo $basedir."ki_loading.gif" ?>";
+ node.style.padding = "0px";
+ node.style.border = "0px";
+ node.style.display = "none";
+ document.body.appendChild(node);
+ }
+ if(!$("kiv_prevdiv")){
+ node = document.createElement("div");
+ node.id = "kiv_prevdiv";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 10000;
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.padding = "4px 2px 4px 2px";
+ node.style.height = "100px";
+ node.style.overflow = "hidden";
+ node.style.display = "none";
+ fw.dropshadow(node, 1);
+ document.body.appendChild(node);
+ }
+ <?php if($show_preview == 1){ ?>
+ if(!$("kiv_wowdiv")){
+ node = document.createElement("div");
+ node.id = "kiv_wowdiv";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.zIndex = 1001;
+ node.style.padding = "0px";
+ node.style.display = "none";
+ <?php if($preview_style == 1){ ?>
+ node.style.padding = "<?php echo $bord_size ?>px";
+ node.style.background = "<?php echo $bord_color ?>";
+ <?php } ?>
+ document.body.appendChild(node);
+ }
+ <?php } ?>
+ <?php $breite = getimagesize("ki_nav_next.png"); ?>
+ <?php if($pwok == 0 && $show_share == 1){ ?>
+ if(!$("kiv_share")){
+ node = document.createElement("div");
+ node.id = "kiv_share";
+ node.style.width = "280";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.top = windowY + "px";
+ node.style.left = "50%";
+ node.style.marginLeft = "-145px";
+ node.style.background = "<?php echo $nav_color ?>";
+ <?php if($nav_style == 2){ ?>
+ node.style.borderRadius = "20px";
+ node.style.MozBorderRadius = "20px";
+ node.style.WebkitBorderRadius = "20px";
+ <?php } ?>
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ node.style.zIndex = 1000;
+ node.style.padding = "3px 3px 30px 3px";
+ node.style.overflow = "hidden";
+ node.style.lineHeight = "12px";
+ node.style.display = "none";
+ var tbcontent = "<?php draw_image("ki_nav_link.png", "", "border:0px; margin:0px 2px 0px 0px; padding:0px; vertical-align:top; display:inline;", "title='Link'"); ?>";
+ node.innerHTML = tbcontent + "<input type='text' readonly='readonly' onclick='this.select()' style='width:<?php echo 276-$breite[0]-2 ?>px; height:17px; padding:1px; line-height:17px; margin:0px; background-color:#fff; font-size:12px; font-weight:normal; color:#000; border:1px solid #000;' />";
+ document.body.appendChild(node);
+ }
+ <?php } ?>
+ fw.shadebody(1);
+ <?php if($show_image_nav == 1){ ?>
+ if(!$("kiv_tb")){
+ var breite = <?php echo $breite[0] ?>;
+ var tbcontent = "<?php draw_image("ki_nav_close.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.closeImage();\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_kiv_close), ENT_QUOTES, "UTF-8")."'"); ?>";
+ <?php if($viewercomments == 1){ ?>
+ breite += <?php echo ($breite[0]+4) ?>;
+ tbcontent += "<?php draw_image("ki_nav_vcomm.png", "vcommbutton", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.flip_vcomm();\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_kiv_vcomm), ENT_QUOTES, "UTF-8")."'"); ?>";
+ <?php } ?>
+ <?php if($downloadpics == 1){ ?>
+ breite += <?php echo ($breite[0]+4) ?>;
+ tbcontent += "<?php draw_image("ki_nav_download.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.download();\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_kiv_download), ENT_QUOTES, "UTF-8")."'"); ?>";
+ <?php } ?>
+ if(kib.pics[params[0]].length > 1){
+ <?php
+ if($slideshow == 1){
+ echo "breite += ".($breite[0]+4).";";
+ ?>
+ tbcontent += "<?php draw_image("ki_nav_play.png", "ssbutton", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.slideshow();\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($slideshow_start), ENT_QUOTES, "UTF-8")."'"); ?>";
+ <?php
+ }
+ echo "breite += ".(2*($breite[0]+4)).";";
+ ?>
+ tbcontent += "<?php draw_image("ki_nav_prev.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.goon(-1);\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_kiv_back), ENT_QUOTES, "UTF-8")."'"); ?>";
+ tbcontent += "<?php draw_image("ki_nav_next.png", "", "cursor:pointer; border:0px; margin:0px 2px 0px 2px; padding-top:2px; display:inline;", "onclick=\\\"kiv.goon(1);\\\" onmouseover=\\\"this.style.padding = '0px 0px 2px 0px';\\\" onmouseout=\\\"this.style.padding = '2px 0px 0px 0px';\\\" title='".htmlentities(stripslashes($nav_kiv_next), ENT_QUOTES, "UTF-8")."'"); ?>";
+ }
+ node = document.createElement("div");
+ node.id = "kiv_tb";
+ node.style.position = "<?php echo $posfix ?>";
+ node.style.top = "-<?php echo 2*$breite[0] ?>px";
+ node.style.left = "50%";
+ node.style.marginLeft = -(breite+10)/2+"px";
+ node.style.background = "<?php echo $nav_color ?>";
+ <?php if($nav_style == 2){ ?>
+ node.style.borderRadius = "20px";
+ node.style.MozBorderRadius = "20px";
+ node.style.WebkitBorderRadius = "20px";
+ <?php } ?>
+ node.style.border = "2px solid <?php echo $nav_border_color ?>";
+ node.style.zIndex = 10000;
+ node.style.padding = "20px 3px 3px 3px";
+ node.style.lineHeight = "12px";
+ node.style.display = "none";
+ node.innerHTML = tbcontent;
+ document.body.appendChild(node);
+ }
+ <?php } ?>
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ if($pwok == 0)addEvent("document", "keypress", "taste");
+ } else {
+ if($pwok == 0)addEvent("document", "keydown", "taste");
+ }
+ ?>
+ <?php if($pwok == 1 && $comm_auto == 1 && $show_warnings == 1){ ?>
+ alert("WARNING: If you want to write custom comments you have to set '$comm_auto = 0'. Custom comments won't get saved. Set '$show_warnings = 0' if you don't want to see this warning again.");
+ <?php } ?>
+ kiv.getImage(params[0], params[1]);
+ }
+
+ this.destr = function(){
+ document.body.removeChild($("kiv_picdiv"));
+ document.body.removeChild($("kiv_comdiv"));
+ <?php if($show_image_nav == 1){ ?>
+ document.body.removeChild($("kiv_tb"));
+ <?php } ?>
+ document.body.removeChild($("kiv_loading"));
+ document.body.removeChild($("kiv_prevdiv"));
+ <?php if($show_preview == 1){ ?>document.body.removeChild($("kiv_wowdiv"));<?php } ?>
+ <?php if($pwok == 0 && $show_share == 1){ ?>document.body.removeChild($("kiv_share"));<?php } ?>
+ <?php removeEvent("window", "resize", "viewdim"); ?>
+ <?php
+ if(!in_array($browser, array("ie6", "ie7", "ie9", "webkit"))){
+ if($pwok == 0)removeEvent("document", "keypress", "taste");
+ } else {
+ if($pwok == 0)removeEvent("document", "keydown", "taste");
+ }
+ ?>
+ }
+
+ /* -------------------------------- methodes ------------------------------------ */
+
+ <?php if($pwok == 1){ ?>
+ this.deleteVComm = function(counter){
+ fw.getHTTP("<?php echo $basedir ?>ki_vcomm.php?file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&gallery=" + kib.dirs[cur_gallery] + "&counter=" + counter + "&get=1", kiv.getvcomm, null);
+ }
+
+ this.publishVComm = function(counter){
+ fw.getHTTP("<?php echo $basedir ?>ki_vcomm.php?file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&gallery=" + kib.dirs[cur_gallery] + "&publish=" + counter + "&get=1", kiv.getvcomm, null);
+ }
+
+ this.savecomment = function(aEvent, commstring){
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ if(keyCode == 27){
+ kiv.closeImage();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(keyCode == 33 && !aEvent.shiftKey){
+ kiv.goon(-1);
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(keyCode == 34 && !aEvent.shiftKey){
+ kiv.goon(1);
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if((aEvent.ctrlKey == true && keyCode == 13) || keyCode == 10){
+ fw.getHTTP("<?php echo $basedir ?>ki_savecomment.php?file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&gallery=" + kib.dirs[cur_gallery] + "&comment=" + encodeURIComponent(commstring), saved, null);
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+
+ function saved(){
+ stop = 0;
+ kiv.goon(1);
+ }
+
+ function squarethumbhandling(){
+ if($("square_selector")){
+ var sths = 0;
+ var startx = 0;
+ var starty = 0;
+ var obj = $("square_selector");
+ obj.style.display = "block";
+ var sub = fw.findPos(obj);
+ var objx = parseInt(obj.style.width);
+ var objy = parseInt(obj.style.height);
+ if(objx == objy)return;
+ var wide = objx > objy ? 1 : 0;
+ var square_1 = $("square_1").style;
+ var square_2 = $("square_2").style;
+ var posx = parseInt(square_1.width);
+ var posy = parseInt(square_1.height);
+ fw.addevent( obj, "mousedown", function(x, y){
+ if(sths == 0){
+ sths = 1;
+ startx = x - sub[0];
+ starty = y - sub[1];
+ }
+ } );
+ fw.addevent( obj, "mousemove", function(x, y){
+ if(sths == 1){
+ var movx = (x - sub[0]) - startx;
+ var movy = (y - sub[1]) - starty;
+ if(wide == 1){
+ var temp = posx + movx;
+ if(temp < 0)temp = 0;
+ if(temp > (objx - 100))temp = objx - 100;
+ square_1.width = temp + "px";
+ square_2.width = objx - (temp + 100) + "px";
+ } else {
+ var temp = posy + movy;
+ if(temp < 0)temp = 0;
+ if(temp > (objy - 100))temp = objy - 100;
+ square_1.height = temp + "px";
+ square_2.height = objy - (temp + 100) + "px";
+ }
+ }
+ } );
+ fw.addevent( obj, "mouseup", function(x, y){
+ if(sths == 1){
+ var final = -1;
+ if(wide == 1){
+ var final = posx + (x - sub[0]) - startx;
+ if(final < 0)final = 0;
+ if(final > (objx - 100))final = objx - 100;
+ final = final / objx;
+ } else {
+ var final = posy + (y - sub[1]) - starty;
+ if(final < 0)final = 0;
+ if(final > (objy - 100))final = objy - 100;
+ final = final / objy;
+ }
+ var params = "?file=" + kib.dirs[cur_gallery] + "/" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&pos=" + final;
+ fw.getHTTP("<?php echo $basedir ?>ki_savesquarethumb.php" + params, null);
+ var long = new Date();
+ long.setTime(long.getTime() + (10 * 365 * 24 * 60 * 60 * 1000));
+ document.cookie = "koschtit_" + kib.dirs[cur_gallery] + cur_gallery + "_" + kib.pics[cur_gallery][cur_pic].file + "=" + final + "; path=/; expires=" + long.toGMTString();
+ obj.style.background = "#00ff00";
+ setTimeout( function(){
+ obj.style.background = "#000000";
+ }, 400);
+ }
+ sths = 0;
+ } );
+ var custompos = -1;
+ var nameEQ = "koschtit_" + kib.dirs[cur_gallery] + cur_gallery + "_" + kib.pics[cur_gallery][cur_pic].file + "=";
+ var ca = document.cookie.split(';');
+ for(var i = 0; i < ca.length; i++) {
+ var c = ca[i];
+ while (c.charAt(0)==' ')c = c.substring(1,c.length);
+ if(c.indexOf(nameEQ) == 0)custompos = c.substring(nameEQ.length,c.length);
+ }
+ if(custompos != -1){
+ if(wide == 1){
+ var temp = Math.round(custompos*objx);
+ square_1.width = temp + "px";
+ square_2.width = objx - (temp + 100) + "px";
+ } else {
+ var temp = Math.round(custompos*objy);
+ square_1.height = temp + "px";
+ square_2.height = objy - (temp + 100) + "px";
+ }
+ }
+ }
+ }
+ <?php } ?>
+
+ function viewdim(){
+ if(window.innerHeight){
+ windowX = window.innerWidth;
+ windowY = window.innerHeight;
+ } else if(document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
+ windowX = document.documentElement.clientWidth;
+ windowY = document.documentElement.clientHeight;
+ } else if (document.body){ // other Explorers
+ windowX = document.body.clientWidth;
+ windowY = document.body.clientHeight;
+ }
+ if($("kiv_share"))$("kiv_share").style.top = windowY + "px";
+ if($("kiv_comdiv")){
+ var com_div = $("kiv_comdiv");
+ var sizes = fw.getDim($("kiv_picdiv"), 1);
+ var comm_x = com_div.offsetWidth;
+ var comm_y = com_div.offsetHeight;
+ if(comm_x > sizes[0]){
+ comm_x = sizes[0];
+ com_div.style.width = (sizes[0] - 2*10) + "px";
+ comm_y = com_div.offsetHeight;
+ }
+ <?php
+ if($comm_text_align === "left"){
+ ?>
+ var x_pos = $("kiv_picdiv").offsetLeft;
+ var y_pos = $("kiv_picdiv").offsetHeight + $("kiv_picdiv").offsetTop + 5;
+ if(y_pos + comm_y > windowY){
+ y_pos -= comm_y + 10;
+ <?php if($pwok == 0){ ?>if(comm_x != sizes[0])x_pos += 5;<?php } ?>
+ }
+ <?php
+ }elseif($comm_text_align === "right"){
+ ?>
+ var x_pos = $("kiv_picdiv").offsetLeft + sizes[0] - comm_x;
+ var y_pos = $("kiv_picdiv").offsetHeight + $("kiv_picdiv").offsetTop + 5;
+ if(y_pos + comm_y > windowY){
+ y_pos -= comm_y + 10;
+ <?php if($pwok == 0){ ?>if(comm_x != sizes[0])x_pos -= 5;<?php } ?>
+ }
+ <?php
+ }else{
+ ?>
+ var x_pos = $("kiv_picdiv").offsetLeft + 0.5*(sizes[0] - comm_x);
+ var y_pos = $("kiv_picdiv").offsetHeight + $("kiv_picdiv").offsetTop + 5;
+ if(y_pos + comm_y > windowY){
+ y_pos -= comm_y + 10;
+ }
+ <?php
+ }
+ ?>
+ com_div.style.left = x_pos + "px";
+ com_div.style.top = y_pos + "px";
+ }
+ }
+
+ function preloadgallery(){
+ if(breakpreloading == 1)return;
+ var files = kib.pics[cur_gallery].length;
+ cur_load = cur_pic + 1;
+ if(cur_load == files)return;
+ var loaded = 0;
+ while(preloading[cur_load] != null){
+ cur_load++;
+ loaded++;
+ if(loaded == files){
+ return;
+ }
+ if(cur_load == files || cur_load - cur_pic > 3)return;
+ }
+ preloading[cur_load] = document.createElement('img');
+ preloading[cur_load].onload = function(){
+ preloadgallery();
+ };
+ var picsize = calcpicsize(cur_load);
+ if(picsize[0] != kib.pics[cur_gallery][cur_load].x){
+ preloading[cur_load].src = "<?php echo $basedir ?>ki_makepic.php?fullimg=1&file=" + kib.dirs[cur_gallery] + "/" + encodeURIComponent(kib.pics[cur_gallery][cur_load].file) + "&width=" + picsize[0] + "&height=" + picsize[1];
+ } else {
+ preloading[cur_load].src = "<?php echo $galleriesdir ?>" + kib.dirs[cur_gallery] + "/" + kib.pics[cur_gallery][cur_load].file;
+ }
+ }
+
+ this.getImage = function(gallerynumber, picnumber){
+ if(stop == 1)return;
+ var firsttoshow = 0;
+ if(cur_gallery == -1){
+ firsttoshow = 1;
+ preloading = new Array(kib.pics[gallerynumber].length);
+ }
+ if($("kib_helpbox")){
+ kib.hidehelp();
+ }
+ <?php removeEvent("document", "mousemove", "mousemoved"); ?>
+ if($("kiv_vcomments_form")){
+ $("kiv_picdiv").removeChild($("kiv_vcomments_form"));
+ if($("kiv_vcomments_list"))$("kiv_picdiv").removeChild($("kiv_vcomments_list"));
+ }
+ <?php if($show_preview == 1){ ?>kiv.removewow();<?php } ?>
+ <?php if($checkgps == 1){ ?>fw.fade("kiv_gpspic", 0);<?php } ?>
+ if(gallerynumber == -1)gallerynumber = cur_gallery;
+ breakpreloading = 1;
+ preloading[cur_load] = null;
+ cur_gallery = gallerynumber;
+ cur_pic = picnumber;
+ var picsize = calcpicsize(picnumber);
+ <?php if($oversize_allowed == 1){ ?>
+ oversizeX = posX = 0;
+ oversizeY = posY = 0;
+ if(picsize[0]+2*<?php echo $bord_size ?> > windowX)oversizeX = Math.round((picsize[0] - windowX)*0.5) + <?php echo $bord_size ?>;
+ if(picsize[1]+2*<?php echo $bord_size ?> > windowY)oversizeY = Math.round((picsize[1] - windowY)*0.5) + <?php echo $bord_size ?>;
+ <?php } ?>
+ var params = "?reldir=<?php echo $reldir ?>&gallery=" + kib.dirs[cur_gallery] + "&file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&x=" + picsize[0] + "&y=" + picsize[1];
+ fw.getHTTP("<?php echo $basedir ?>ki_fullimg.php" + params, kiv.gotImage, Array(picsize, firsttoshow, 0));
+ }
+
+ this.gotImage = function(responseText, params){
+ if(stop == 1)return;
+ var picdiv = $("kiv_picdiv");
+ var inshad = $("kiv_inshadow");
+ var picdivsize = params[0];
+ var firsttoshow = params[1];
+ if(params[2] == 0){ // Bild wird geladen
+ picdivsize[0] += <?php echo 2*$bord_size ?>;
+ picdivsize[1] += <?php echo 2*$bord_size ?>;
+
+ if(firsttoshow == 1){ // Einfgen/Warten von onload beim ersten ffnen
+
+ picdiv.style.top = "50%";
+ picdiv.style.left = "50%";
+ picdiv.style.width = "0px";
+ picdiv.style.height = "1px";
+ picdiv.style.display = "block";
+
+ var node = document.createElement("div");
+ node.innerHTML = responseText;
+ var temp = node.childNodes.length;
+ for(var i = 0; i < temp; i++){
+ picdiv.appendChild(node.childNodes[0]);
+ }
+
+ var thepic = $("thepicture");
+ thepic.onload = function(){
+ if(kiv != null && thepic == $("thepicture"))kiv.gotImage("", Array(picdivsize, firsttoshow, 1));
+ };
+ thepic.src = thepic.alt;
+ setTimeout( function(){ if(kiv != null && thepic != null){if(thepic.alt != "" && !thepic.complete){fw.fade("kiv_loading", 100, Array(function(){$("kiv_loading").src = "<?php echo $basedir."ki_loading.gif" ?>";}));$("kiv_picdiv").style.zIndex = 99;}} }, 750);
+
+ } else { // Einfgen/Warten von onload beim Weiterklicken
+
+ <?php if($pwok == 1){ ?>
+ if($("square_selector"))picdiv.removeChild($("square_selector"));
+ <?php } ?>
+ <?php if($checkgps == 1){ ?>
+ if($("kiv_gps"))picdiv.removeChild($("kiv_gps"));
+ <?php } ?>
+ <?php if($viewercomments == 1){ ?>
+ if($("kiv_vcomm"))picdiv.removeChild($("kiv_vcomm"));
+ <?php } ?>
+ if($("thepicture"))$("thepicture").id = "oldpic";
+
+ fw.fade("kiv_comdiv", 0);
+
+ var node = document.createElement("div");
+ node.innerHTML = responseText;
+ var temp = node.childNodes.length;
+ for(var i = 0; i < temp; i++){
+ picdiv.appendChild(node.childNodes[0]);
+ }
+ var thepic = $("thepicture");
+ thepic.onload = function(){
+ if(kiv != null && thepic == $("thepicture"))kiv.gotImage("", Array(picdivsize, firsttoshow, 1));
+ };
+ thepic.src = thepic.alt;
+ setTimeout( function(){ if(kiv != null && thepic != null){if(thepic.alt != "" && !thepic.complete){fw.fade("kiv_loading", 100, Array(function(){$("kiv_loading").src = "<?php echo $basedir."ki_loading.gif" ?>";}));$("kiv_picdiv").style.zIndex = 99;}} }, 750);
+
+
+ }
+
+ } else { // Bild wurde geladen -> Bild anzeigen
+
+ $("kiv_loading").style.display = "none";
+ if(previewing == 0){
+ $("kiv_picdiv").style.zIndex = 1000;
+ $("kiv_comdiv").style.zIndex = 1000;
+ }
+ preloading[cur_pic] = 1;
+ breakpreloading = 0;
+ preloadgallery();
+
+ <?php if($pwok == 0 && $show_share == 1){ ?>
+ var shareadd = location.search;
+ if(shareadd.indexOf('kit_code=') != -1)
+ shareadd = shareadd.substr(0, shareadd.indexOf('kit_code=')-1);
+ if(shareadd.indexOf('?') == -1)
+ shareadd = "?" + shareadd;
+ else
+ shareadd += "&";
+ var slash = "";
+ if(location.pathname.substr(0, 1) != "/")slash = "/";
+ shareadd = "http://" + location.hostname + slash + location.pathname + shareadd + "kit_code=" + cur_gallery+"_"+cur_pic + location.hash;
+ $("kiv_share").childNodes[1].value = shareadd;
+ <?php } ?>
+
+ var thepic = $("thepicture");
+ if(thepic != null){
+ thepic.alt = "";
+ thepic.style.display = "none";
+ thepic.style.visibility = "visible";
+ }
+ flipped = 0;
+
+ if(firsttoshow == 1){ // Bild wurde geladen -> Bild anzeigen beim ersten ffnen
+
+ fw.resize( picdiv, 2, picdivsize[0], 1, Array( function(){
+
+ fw.resize( picdiv, 2, picdivsize[0], picdivsize[1], Array( function(){
+ inshad.style.width = picdivsize[0] - 2*<?php echo $bord_size ?> + "px";
+ inshad.style.height = picdivsize[1] - 2*<?php echo $bord_size ?> + "px";
+ inshad.style.display = "block";
+ fw.dropshadow(picdiv, 1);
+ fw.fade("thepicture", 100, Array( function(){
+
+ <?php if($show_image_nav == 1){ ?>
+ fw.move("kiv_tb", 3, 0, -<?php echo $breite[0] ?>);
+ $("kiv_tb").setAttribute("contr", "stay");
+ setTimeout( function() {
+ if($("kiv_tb"))$("kiv_tb").setAttribute("contr", "");
+ }, 5000);
+ <?php } ?>
+ <?php if($pwok == 0 && $show_share == 1){ ?>
+ fw.move("kiv_share", 3, 0, windowY - 29);
+ $("kiv_share").setAttribute("contr", "stay");
+ setTimeout( function() {
+ if($("kiv_share"))$("kiv_share").setAttribute("contr", "");
+ }, 5000);
+ <?php } ?>
+ viewdim();
+ showcomment();
+ checkgps();
+ checkvcomment();
+ var focme = $("focusme");
+ if(focme){
+ kib.showhelp(focme, 4, 2);
+ }
+ <?php addEvent("document", "mousemove", "mousemoved"); ?>
+ <?php if($pwok == 1){ ?>
+ squarethumbhandling();
+ <?php } ?>
+ if(ss == 1)setTimeout( function(){if(kiv != null){if(ss == 1){ss = 2;kiv.goon(1);}}} , <?php echo $slideshow_time ?>);
+
+ } ));
+ } ));
+ } ));
+
+ } else { // Bild wurde geladen -> Bild anzeigen beim Weiterklicken
+
+ fw.fade("oldpic", 0, Array( function(){
+ var picdiv = $("kiv_picdiv");
+ for(var i = 0; i < picdiv.childNodes.length; i++){
+ if(picdiv.childNodes[i].id == "oldpic"){
+ picdiv.removeChild(picdiv.childNodes[i]);
+ i-=1;
+ }
+ }
+ } ));
+ fw.fade("thepicture", 100, Array( function(){
+ inshad.style.display = "block";
+ fw.resize( inshad, 1, picdivsize[0] - 2*<?php echo $bord_size ?>, picdivsize[1] - 2*<?php echo $bord_size ?> );
+ fw.resize( picdiv, 2, picdivsize[0], picdivsize[1], Array( function(){
+ showcomment();
+ checkgps();
+ checkvcomment();
+ if(previewing == 0){
+ <?php addEvent("document", "mousemove", "mousemoved"); ?>
+ }
+ <?php if($pwok == 1){ ?>
+ squarethumbhandling();
+ <?php } ?>
+ <?php if($show_help == 1){ ?>if(ss != 1)fw.fade("kiv_help", 51);<?php } ?>
+ if(ss == 1)setTimeout( function(){if(kiv != null){if(ss == 1){ss = 2;kiv.goon(1);}}} , <?php echo $slideshow_time ?>);
+ } ));
+ } ));
+ }
+ }
+ }
+
+ function checkgps(){
+ <?php if($checkgps == 1){ ?>
+ if(stop == 1 || ss == 1)return;
+ if(!$("kiv_gps"))return;
+ var coordinates = $("kiv_gps").value;
+ if(coordinates != "0,0"){
+ fw.fade("kiv_gpspic", 100);
+ } else {
+ <?php if($cellinfo == 1){ ?>
+ var params = "?gallery=" + kib.dirs[cur_gallery] + "&file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file);
+ fw.getHTTP("<?php echo $basedir ?>ki_cellid.php" + params, gotCellInfo, Array(cur_gallery, cur_pic));
+ <?php } ?>
+ }
+ <?php } ?>
+ }
+
+ <?php if($cellinfo == 1 && $checkgps == 1){ ?>
+ function gotCellInfo(responseText, params){
+ if(stop == 1 || ss == 1)return;
+ if(cur_gallery != params[0] || cur_pic != params[1])return;
+ if(responseText == "0,0")return;
+ $("kiv_gps").value = responseText;
+ fw.fade("kiv_gpspic", 100);
+ }
+ <?php } ?>
+
+ <?php if($checkgps == 1){ ?>
+ this.opengps = function(){
+ if($("kiv_gps")){
+ if($("kiv_gps").value != "0,0"){
+ var coordinates = $("kiv_gps").value;
+ var filename = kib.pics[cur_gallery][cur_pic].file;
+ filename = filename.substr(0, filename.length-4);
+ window.open("http://maps.google.com/?q=" + filename + "@" + coordinates);
+ }
+ }
+ }
+ <?php } ?>
+
+ function checkvcomment(){
+ <?php if($viewercomments == 1 && $show_image_nav == 1){ ?>
+ if(stop == 1 || ss == 1)return;
+ if(!$("vcommbutton"))return;
+ if(!$("kiv_vcomm"))return;
+ var obj = $("vcommbutton");
+ if($("kiv_vcomm").value == "1"){
+ var tb = obj.parentNode;
+ tb.setAttribute("contr", "stay");
+ fw.move(tb, 3, 0, -<?php echo $breite[0] ?>, Array(function(){
+ <?php if($browser !== "ie6"){ ?>
+ fw.fade(obj, 10, Array(fw.fade, obj, 100, Array(fw.fade, obj, 10, Array(fw.fade, obj, 100, Array(fw.fade, obj, 10, Array(fw.fade, obj, 100, Array(function(){
+ if(tb){
+ tb.setAttribute("contr", "");
+ }
+ })))))));
+ <?php } else { ?>
+ setTimeout( function(){
+ if(tb){
+ tb.setAttribute("contr", "");
+ }
+ }, 2000);
+ <?php } ?>
+ }));
+ }
+ <?php } ?>
+ }
+
+ <?php if($show_preview == 1){ ?>
+ this.removewow = function(){
+ var wowdiv = $("kiv_wowdiv");
+ wowdiv.innerHTML = "";
+ wowdiv.style.display = "none";
+ fw.dropshadow(wowdiv, 0);
+ <?php if($preview_style == 2){ ?>
+ var blende = $("fw_blend");
+ blende.style.cursor = "auto";
+ blende.onclick = null;
+ <?php } ?>
+ }
+ <?php } ?>
+
+ function mousemoved(aEvent) {
+ if(stop == 1)return;
+ aEvent = aEvent ? aEvent : window.event;
+ var x = aEvent.clientX ? aEvent.clientX : aEvent.pageX;
+ var y = aEvent.clientY ? aEvent.clientY : aEvent.pageY;
+
+ <?php if($show_image_nav == 1 && $image_nav_always == 0){ ?>
+ var tb = $("kiv_tb");
+ if(y > windowY * 0.33 || x > (windowX/2+200) || x < (windowX/2-200)){
+ if(tb.getAttribute("contr") == ""){
+ fw.move(tb, 3, 0, -<?php echo $breite[0]*3 ?>);
+ tb.setAttribute("contr", "open");
+ }
+ } else {
+ if(tb.getAttribute("contr") == "open"){
+ fw.move(tb, 3, 20, -<?php echo $breite[0] ?>);
+ tb.setAttribute("contr", "");
+ }
+ }
+ <?php } ?>
+
+ <?php if($pwok == 0 && $show_share == 1 && $image_nav_always == 0){ ?>
+ var sh = $("kiv_share");
+ if(y < windowY - 150 || x > (windowX/2+300) || x < (windowX/2-300)){
+ if(sh.getAttribute("contr") == ""){
+ <?php if(in_array($browser, array("ie6", "ie7", "ie9"))){ ?>
+ if(aEvent.srcElement.nodeName == "INPUT")return;
+ <?php } ?>
+ fw.move(sh, 3, 0, windowY);
+ sh.setAttribute("contr", "open");
+ }
+ } else {
+ if(sh.getAttribute("contr") == "open"){
+ fw.move(sh, 3, 20, windowY - 29);
+ sh.setAttribute("contr", "");
+ }
+ }
+ <?php } ?>
+
+ if(!x)x = 1;
+ if(ss == 1)return;
+
+ var dim = fw.getDim($("kiv_picdiv"));
+ var wowdiv = $("kiv_wowdiv");
+
+ <?php
+ if($show_preview == 1){
+ if($preview_style == 1){
+ ?>
+ if(windowX - dim[0] >= 0.33*windowX){ // Bild bedeckt max 2/3 des Bildschirmplatzes
+ if(x > (windowX + dim[0])*0.5 && cur_pic != kib.pics[cur_gallery].length-1){
+ if(y > (windowY-dim[1])*0.5 && y < (windowY+dim[1])*0.5){
+ if(!wowdiv.firstChild){
+ var picsize = calcpicsize(cur_pic+1);
+ var picsrc = "";
+ if(picsize[0] != kib.pics[cur_gallery][cur_pic+1].x){
+ picsrc = "<?php echo $basedir ?>ki_makepic.php?fullimg=1&file=" + kib.dirs[cur_gallery] + "/" + encodeURIComponent(kib.pics[cur_gallery][cur_pic+1].file) + "&width=" + picsize[0] + "&height=" + picsize[1];
+ } else {
+ picsrc = "<?php echo $galleriesdir ?>" + kib.dirs[cur_gallery] + "/" + kib.pics[cur_gallery][cur_pic+1].file;
+ }
+ wowdiv.style.zIndex = 10000;
+ wowdiv.innerHTML = "<img src='"+picsrc+"' style='vertical-align:middle; visibility:hidden; cursor:pointer;' onload=\"this.style.visibility='visible'\" onclick='kiv.goon(1);' /><div id='kiv_wowdiv_inshadow' style='position:absolute; left:0%; top:0%; background:none; padding:0px; border:<?php echo $bord_size ?>px solid <?php echo $bord_color ?>; cursor:pointer;' onclick='kiv.goon(1);'></div>";
+ wowdiv.style.left = (windowX + dim[0])*0.5 - 30 + "px";
+ fw.dropshadow("kiv_wowdiv_inshadow", 3);
+ fw.dropshadow(wowdiv, 1);
+ fw.fade(wowdiv, 100);
+ }
+ var obj = kib.pics[cur_gallery][cur_pic+1];
+ var breite = x - (windowX + dim[0])*0.5 + 50;
+ var hoehe = (obj.y/obj.x)*breite;
+ var maxh = dim[1]*0.66;
+ if(hoehe > maxh){
+ hoehe = maxh;
+ breite = (obj.x/obj.y)*hoehe;
+ }
+ var pic = wowdiv.firstChild;
+ pic.style.width = breite + "px";
+ pic.style.height = hoehe + "px";
+ wowdiv.style.top = y + "px";
+ wowdiv.style.marginTop = -0.5*(hoehe+<?php echo $bord_size ?>*2) + "px";
+ var inshad = $("kiv_wowdiv_inshadow");
+ inshad.style.width = breite + "px";
+ inshad.style.height = hoehe + "px";
+ }
+ } else if(x < (windowX - dim[0])*0.5 && cur_pic != 0){
+ if(y > (windowY-dim[1])*0.5 && y < (windowY+dim[1])*0.5){
+ if(!wowdiv.firstChild){
+ var picsize = calcpicsize(cur_pic-1);
+ var picsrc = "";
+ if(picsize[0] != kib.pics[cur_gallery][cur_pic-1].x){
+ picsrc = "<?php echo $basedir ?>ki_makepic.php?fullimg=1&file=" + kib.dirs[cur_gallery] + "/" + encodeURIComponent(kib.pics[cur_gallery][cur_pic-1].file) + "&width=" + picsize[0] + "&height=" + picsize[1];
+ } else {
+ picsrc = "<?php echo $galleriesdir ?>" + kib.dirs[cur_gallery] + "/" + kib.pics[cur_gallery][cur_pic-1].file;
+ }
+ wowdiv.style.zIndex = 999;
+ wowdiv.innerHTML = "<img src='"+picsrc+"' style='vertical-align:middle; visibility:hidden; cursor:pointer;' onload=\"this.style.visibility='visible'\" onclick='kiv.goon(-1);' /><div id='kiv_wowdiv_inshadow' style='position:absolute; left:0%; top:0%; background:none; padding:0px; border:<?php echo $bord_size ?>px solid <?php echo $bord_color ?>; cursor:pointer;' onclick='kiv.goon(-1);'></div>";
+ fw.dropshadow("kiv_wowdiv_inshadow", 3);
+ fw.dropshadow(wowdiv, 1);
+ fw.fade(wowdiv, 100);
+ }
+ var obj = kib.pics[cur_gallery][cur_pic-1];
+ var breite = (windowX - dim[0])*0.5 - x + 50;
+ var hoehe = (obj.y/obj.x)*breite;
+ var maxh = dim[1]*0.66;
+ if(hoehe > maxh){
+ hoehe = maxh;
+ breite = (obj.x/obj.y)*hoehe;
+ }
+ var pic = wowdiv.firstChild;
+ pic.style.width = breite + "px";
+ pic.style.height = hoehe + "px";
+ wowdiv.style.left = (windowX - dim[0])*0.5 + 30 - breite - <?php echo $bord_size ?>*2 + "px";
+ wowdiv.style.top = y + "px";
+ wowdiv.style.marginTop = -0.5*(hoehe+<?php echo $bord_size ?>*2) + "px";
+ var inshad = $("kiv_wowdiv_inshadow");
+ inshad.style.width = breite + "px";
+ inshad.style.height = hoehe + "px";
+ }
+ } else {
+ if(wowdiv.firstChild){
+ kiv.removewow();
+ }
+ }
+ }
+ <?php
+ } else {
+ $temp = getimagesize("ki_next.png");
+ ?>
+ if(windowX - dim[0] >= 80){ // Mindestens 40 Pixel Platz zu jeder Seite
+ if(x > (windowX + dim[0])*0.5 && cur_pic != kib.pics[cur_gallery].length-1){
+ if(y > (windowY-dim[1])*0.5 && y < (windowY+dim[1])*0.5){
+ if(!wowdiv.firstChild){
+ wowdiv.innerHTML = "<?php draw_image("ki_next.png", "", "cursor:pointer; vertical-align:middle;", "onclick='kiv.goon(1);' alt='' "); ?>";
+ wowdiv.style.left = (windowX + dim[0])*0.5 + 5 + "px";
+ wowdiv.style.top = "50%";
+ wowdiv.style.marginTop = -0.5*(<?php echo $temp[1] ?>) + "px";
+ fw.fade(wowdiv, 100);
+ var blende = $("fw_blend");
+ blende.style.cursor = "pointer";
+ blende.onclick = function(){
+ kiv.goon(1);
+ }
+ }
+ }
+ } else if(x < (windowX - dim[0])*0.5 && cur_pic != 0){
+ if(y > (windowY-dim[1])*0.5 && y < (windowY+dim[1])*0.5){
+ if(!wowdiv.firstChild){
+ wowdiv.innerHTML = "<?php draw_image("ki_back.png", "", "cursor:pointer; vertical-align:middle;", "onclick='kiv.goon(-1);' alt='' "); ?>";
+ wowdiv.style.left = (windowX - dim[0])*0.5 - 5 - <?php echo $temp[0] ?> + "px";
+ wowdiv.style.top = "50%";
+ wowdiv.style.marginTop = -0.5*(<?php echo $temp[1] ?>) + "px";
+ fw.fade(wowdiv, 100);
+ var blende = $("fw_blend");
+ blende.style.cursor = "pointer";
+ blende.onclick = function(){
+ kiv.goon(-1);
+ }
+ }
+ }
+
+ } else {
+ if(wowdiv.firstChild){
+ kiv.removewow();
+ }
+ }
+ }
+ <?php
+ }
+ }
+ ?>
+
+ <?php if($preview_pics > 0){ ?>
+ if(windowX - dim[0] < 200)return; // Mindestens 100 Pixel Platz zu jeder Seite
+ if(x > windowX - 40 && cur_pic != kib.pics[cur_gallery].length-1){
+ <?php if($show_preview == 1){ ?>
+ if(wowdiv.firstChild){
+ fw.dropshadow(wowdiv, 0);
+ fw.fade(wowdiv, 0, Array( function(){
+ wowdiv.innerHTML = "";
+ } ));
+ }
+ <?php } ?>
+ <?php removeEvent("document", "mousemove", "mousemoved"); ?>
+ previewing = 1;
+ var prevdiv = $("kiv_prevdiv");
+ prevdiv.style.top = y - 54 + "px";
+ prevdiv.style.left = windowX + 500 + "px";
+ prevdiv.style.width = "20px";
+ $("kiv_picdiv").style.zIndex = 99;
+ $("kiv_comdiv").style.zIndex = 99;
+ prevdiv.style.display = "block";
+ fw.move(prevdiv, 2, windowX - 20, 0, Array( function(){
+ var params = "?reldir=<?php echo $reldir ?>&gallery=" + kib.dirs[cur_gallery] + "&file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&topic=1";
+ fw.getHTTP("<?php echo $basedir ?>ki_preview.php" + params, kiv.showpreview, 1);
+ <?php addEvent("$('fw_blend')", "mousemove", "closepreview"); ?>
+ } ));
+ } else if(x < 40 && cur_pic != 0){
+ <?php if($show_preview == 1){ ?>
+ if(wowdiv.firstChild){
+ fw.dropshadow(wowdiv, 0);
+ fw.fade(wowdiv, 0, Array( function(){
+ wowdiv.innerHTML = "";
+ } ));
+ }
+ <?php } ?>
+ <?php removeEvent("document", "mousemove", "mousemoved"); ?>
+ previewing = 1;
+ var prevdiv = $("kiv_prevdiv");
+ prevdiv.style.top = y - 54 + "px";
+ prevdiv.style.left = "-500px";
+ prevdiv.style.width = "20px";
+ $("kiv_picdiv").style.zIndex = 99;
+ $("kiv_comdiv").style.zIndex = 99;
+ prevdiv.style.display = "block";
+ fw.move(prevdiv, 2, 0, 0, Array( function(){
+ var params = "?reldir=<?php echo $reldir ?>&gallery=" + kib.dirs[cur_gallery] + "&file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&topic=-1";
+ fw.getHTTP("<?php echo $basedir ?>ki_preview.php" + params, kiv.showpreview, -1);
+ <?php addEvent("$('fw_blend')", "mousemove", "closepreview"); ?>
+ } ));
+ }
+ <?php } ?>
+ }
+
+ this.showpreview = function(responseText, topic){
+ if(stop == 1 || previewing == 0)return;
+ var prevdiv = $("kiv_prevdiv");
+ prevdiv.innerHTML = responseText;
+ var gesbreite = $("gesbreite").value;
+ if(topic == 1){
+ prevdiv.style.width = gesbreite + "px";
+ fw.move(prevdiv, 2, windowX - gesbreite - 4, 0);
+ } else {
+ prevdiv.style.left = -1*gesbreite + 20 + "px";
+ prevdiv.style.width = gesbreite + "px";
+ fw.move(prevdiv, 2, 0, 0);
+ }
+ }
+
+ function closepreview(aEvent){
+ if(stop == 1)return;
+ aEvent = aEvent ? aEvent : window.event;
+ var x = aEvent.clientX ? aEvent.clientX : aEvent.pageX;
+ var y = aEvent.clientY ? aEvent.clientY : aEvent.pageY;
+
+ if(x > windowX - 40 || x < 40)return;
+
+ <?php removeEvent("$('fw_blend')", "mousemove", "closepreview"); ?>
+ previewing = 0;
+ var prevdiv = $("kiv_prevdiv");
+ if($("kiv_loading").style.display == "none"){
+ $("kiv_picdiv").style.zIndex = 1000;
+ $("kiv_comdiv").style.zIndex = 1000;
+ }
+ if(parseInt(prevdiv.style.left) > 0){
+ fw.move(prevdiv, 2, windowX, 0, Array( function(){
+ prevdiv.innerHTML = "";
+ prevdiv.style.display = "none";
+ <?php addEvent("document", "mousemove", "mousemoved"); ?>
+ } ));
+ } else {
+ fw.move(prevdiv, 2, -prevdiv.offsetWidth, 0, Array( function(){
+ prevdiv.innerHTML = "";
+ prevdiv.style.display = "none";
+ <?php addEvent("document", "mousemove", "mousemoved"); ?>
+ } ));
+ }
+ }
+
+ function showcomment(){
+ if(stop == 1)return;
+ var com_div = $("kiv_comdiv");
+ var sizes = fw.getDim($("kiv_picdiv"), 1);
+ if($("thecomment")){
+ com_div.style.visibility = "hidden";
+ com_div.style.display = "block";
+ com_div.style.width = "auto";
+
+ var commstring = $("thecomment").innerHTML;
+ <?php if($comm_auto == 1){ ?>
+ commstring = commstring.replace(/%x/, cur_pic+1);
+ commstring = commstring.replace(/%X/, kib.pics[cur_gallery].length);
+ commstring = commstring.replace(/%g/, kib.dirs[cur_gallery]);
+ var filename = kib.pics[cur_gallery][cur_pic].file;
+ commstring = commstring.replace(/%f/, filename.substr(0, filename.length-4));
+ <?php } ?>
+ com_div.innerHTML = commstring;
+
+ $("kiv_picdiv").removeChild($("thecomment"));
+
+ var comm_x = com_div.offsetWidth;
+ var comm_y = com_div.offsetHeight;
+
+ if(comm_x > sizes[0]){
+ comm_x = sizes[0];
+ com_div.style.width = (sizes[0] - 2*10) + "px";
+ comm_y = com_div.offsetHeight;
+ }
+
+ <?php
+ if($comm_text_align === "left"){
+ ?>
+ var x_pos = $("kiv_picdiv").offsetLeft;
+ var y_pos = $("kiv_picdiv").offsetHeight + $("kiv_picdiv").offsetTop + 5;
+ if(y_pos + comm_y > windowY){
+ y_pos -= comm_y + 10;
+ <?php if($pwok == 0){ ?>if(comm_x != sizes[0])x_pos += 5;<?php } ?>
+ }
+ <?php
+ }elseif($comm_text_align === "right"){
+ ?>
+ var x_pos = $("kiv_picdiv").offsetLeft + sizes[0] - comm_x;
+ var y_pos = $("kiv_picdiv").offsetHeight + $("kiv_picdiv").offsetTop + 5;
+ if(y_pos + comm_y > windowY){
+ y_pos -= comm_y + 10;
+ <?php if($pwok == 0){ ?>if(comm_x != sizes[0])x_pos -= 5;<?php } ?>
+ }
+ <?php
+ }else{
+ ?>
+ var x_pos = $("kiv_picdiv").offsetLeft + 0.5*(sizes[0] - comm_x);
+ var y_pos = $("kiv_picdiv").offsetHeight + $("kiv_picdiv").offsetTop + 5;
+ if(y_pos + comm_y > windowY){
+ y_pos -= comm_y + 10;
+ }
+ <?php
+ }
+ ?>
+
+ com_div.style.left = x_pos + "px";
+ com_div.style.top = y_pos + "px";
+ com_div.style.display = "none";
+ com_div.style.visibility = "visible";
+ fw.fade(com_div, 100);
+
+ var focme = $("focusme");
+ if(focme){
+ focme.focus();
+ }
+ }
+
+ }
+
+ function calcpicsize(fileno){
+ var picx = kib.pics[cur_gallery][fileno].x;
+ var picy = kib.pics[cur_gallery][fileno].y;
+ var winx = picx + <?php echo 2*$bord_size ?>;
+ var winy = picy + <?php echo 2*$bord_size ?>;
+ <?php
+ $x_limiter = 10000;
+ $y_limiter = 10000;
+ if($max_pic_width != "none")$x_limiter = $max_pic_width;
+ if($max_pic_height != "none")$y_limiter = $max_pic_height;
+ if($max_pic_height != "none" || $max_pic_width != "none" || $oversize_allowed == 0){
+ ?>
+ var xlimiter = <?php echo $x_limiter ?>;
+ var ylimiter = <?php echo $y_limiter ?>;
+ if(xlimiter < 1)xlimiter = parseInt(<?php echo $x_limiter ?>*windowX);
+ if(ylimiter < 1)ylimiter = parseInt(<?php echo $y_limiter ?>*windowY);
+ <?php if($oversize_allowed == 0){ ?>
+ if(xlimiter > windowX)xlimiter = windowX - 20;
+ if(ylimiter > windowY)ylimiter = windowY - 34;
+ <?php } ?>
+ if(winy > ylimiter || winx > xlimiter){
+ var k;
+ if( (picx / picy) > 1){
+ k = picy / picx;
+ picx = xlimiter-<?php echo 2*$bord_size ?>;
+ picy = k*picx;
+ if(picy > ylimiter-<?php echo 2*$bord_size ?>){
+ picy = ylimiter-<?php echo 2*$bord_size ?>;
+ picx = (1/k) * picy;
+ }
+ } else {
+ k = picx / picy;
+ picy = ylimiter-<?php echo 2*$bord_size ?>;
+ picx = k*picy;
+ if(picx > xlimiter-<?php echo 2*$bord_size ?>){
+ picx = xlimiter-<?php echo 2*$bord_size ?>;
+ picy = (1/k) * picx;
+ }
+ }
+ picx = Math.round(picx);
+ picy = Math.round(picy);
+ }
+ <?php } ?>
+ return new Array(picx, picy);
+ }
+
+ this.slideshow = function(){
+ if(stop == 1)return;
+ if(ss == 2)ss = 1;
+ ss *= -1;
+ var sspic = $("ssbutton");
+ if(ss == 1){
+ <?php if($browser != "ie6"){ ?>
+ sspic.src = "<?php echo $basedir ?>ki_nav_stop.png";
+ <?php } else { ?>
+ sspic.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo $basedir ?>ki_nav_stop.png)";
+ <?php } ?>
+ sspic.title = "<?php echo html_entity_decode(htmlentities(stripslashes($slideshow_stop), ENT_QUOTES, "UTF-8"), ENT_NOQUOTES, "UTF-8") ?>";
+ <?php if($show_help == 1){ ?>$("kiv_help").style.display = "none";<?php } ?>
+ ss = 2;
+ kiv.goon(1);
+ } else {
+ <?php if($browser != "ie6"){ ?>
+ sspic.src = "<?php echo $basedir ?>ki_nav_play.png";
+ <?php } else { ?>
+ sspic.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo $basedir ?>ki_nav_play.png)";
+ <?php } ?>
+ sspic.title = "<?php echo html_entity_decode(htmlentities(stripslashes($slideshow_start), ENT_QUOTES, "UTF-8"), ENT_NOQUOTES, "UTF-8") ?>";
+ <?php if($show_help == 1){ ?>fw.fade("kiv_help", 51);<?php } ?>
+ }
+ }
+
+ this.sshelp = function(val){
+ ss = val;
+ }
+
+ this.goon = function(topic){
+ if(stop == 1 || ss == 1)return;
+ if(ss == 2)ss = 1;
+ if(topic > 0){
+ if(cur_pic + topic <= kib.pics[cur_gallery].length-1){
+ kiv.getImage(cur_gallery, cur_pic+topic);
+ } else {
+ kiv.getImage(cur_gallery, (cur_pic+topic)-kib.pics[cur_gallery].length);
+ }
+ } else {
+ if(cur_pic + topic >= 0){
+ kiv.getImage(cur_gallery, cur_pic+topic);
+ } else {
+ kiv.getImage(cur_gallery, kib.pics[cur_gallery].length+(cur_pic+topic));
+ }
+ }
+ }
+
+ this.closeImage = function(){
+ stop = 1;
+ if($("kib_helpbox")){
+ kib.hidehelp();
+ }
+ <?php removeEvent("document", "mousemove", "mousemoved"); ?>
+ <?php if($show_preview == 1){ ?>kiv.removewow();<?php } ?>
+ if(window.stop !== undefined){
+ window.stop();
+ }else if(document.execCommand !== undefined){
+ document.execCommand("Stop", false);
+ }
+ var picdiv = $("kiv_picdiv");
+ <?php if($pwok == 1){ ?>
+ if($("square_selector")){
+ var obj = $("square_selector");
+ obj.parentNode.removeChild(obj);
+ }
+ <?php } ?>
+ if($("kiv_vcomments_form"))$("kiv_picdiv").removeChild($("kiv_vcomments_form"));
+ if($("kiv_vcomments_list"))$("kiv_picdiv").removeChild($("kiv_vcomments_list"));
+ fw.fade("kiv_share", 0);
+ fw.fade("kiv_closebutton", 0);
+ fw.fade("kiv_help", 0);
+ fw.fade("kiv_gpspic", 0);
+ fw.fade("kiv_prevdiv", 0);
+ fw.fade("kiv_tb", 0);
+ fw.fade("kiv_inshadow", 0);
+
+ fw.fade("kiv_comdiv", 0, Array( function() {
+ fw.fade("thepicture", 0, Array( fw.resize, picdiv, 2, parseInt(picdiv.style.width), 1, Array( fw.resize, picdiv, 2, 0, 1, Array( function(){fw.removejs("kiv");if(typeof(kie_module) == "function"){$("kie_maindiv").style.zIndex = 1000;$("kie_tb").style.display = "block";}else{if(typeof(kis_module) != "function")fw.shadebody(0);}} ))));
+ } ));
+
+ }
+
+ function preventDefaultAction(aEvent) {
+ <?php if($browser !== "ie6" && $browser !== "ie7") { ?>
+ aEvent.stopPropagation();
+ <?php } ?>
+ <?php if($browser === "gecko") { ?>
+ aEvent.preventDefault();
+ <?php } ?>
+ <?php if($browser === "opera") { ?>
+ aEvent.returnValue = false;
+ <?php } ?>
+ }
+
+ function taste(aEvent) {
+ aEvent = aEvent ? aEvent : window.event;
+ var keyCode = aEvent.keyCode;
+ var charCode = aEvent.charCode ? aEvent.charCode : 0;
+ if(keyCode == 27){
+ kiv.closeImage();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(stop == 1 || flipped != 0)return;
+ <?php if($slideshow == 1){ ?>
+ if(keyCode == 19 || keyCode == 32 || charCode == 32){
+ if(kib.pics[cur_gallery].length > 1)kiv.slideshow($("ssbutton"));
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(ss == 1)return false;
+ <?php } ?>
+ <?php if($viewercomments == 1){ ?>
+ if(keyCode == 70 || charCode == 102 || keyCode == 102){
+ kiv.flip_vcomm();
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ <?php } ?>
+ if(keyCode == 33 || keyCode == 36){
+ kiv.goon(-1);
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(keyCode == 34 || keyCode == 35){
+ kiv.goon(1);
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(keyCode == 38){
+ <?php if($oversize_allowed == 1){ ?>
+ if(kib.pics[cur_gallery][cur_pic].y+2*<?php echo $bord_size ?> > windowY){
+ if(posY < oversizeY){
+ posY += 20;
+ var picdiv = $("kiv_picdiv");
+ picdiv.style.marginTop = -(0.5*picdiv.offsetHeight) + posY + "px";
+ }
+ }
+ <?php } ?>
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(keyCode == 40){
+ <?php if($oversize_allowed == 1){ ?>
+ if(kib.pics[cur_gallery][cur_pic].y+2*<?php echo $bord_size ?> > windowY){
+ if(oversizeY + posY > 0){
+ posY -= 20;
+ var picdiv = $("kiv_picdiv");
+ picdiv.style.marginTop = -(0.5*picdiv.offsetHeight) + posY + "px";
+ }
+ }
+ <?php } ?>
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(keyCode == 37){
+ <?php if($oversize_allowed == 1){ ?>
+ if(kib.pics[cur_gallery][cur_pic].x+2*<?php echo $bord_size ?> > windowX){
+ if(posX < oversizeX){
+ posX += 20;
+ var picdiv = $("kiv_picdiv");
+ picdiv.style.marginLeft = -(0.5*picdiv.offsetWidth) + posX + "px";
+ }
+ } else {
+ kiv.goon(-1);
+ }
+ <?php } else { ?>
+ kiv.goon(-1);
+ <?php } ?>
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ if(keyCode == 39){
+ <?php if($oversize_allowed == 1){ ?>
+ if(kib.pics[cur_gallery][cur_pic].x+2*<?php echo $bord_size ?> > windowX){
+ if(oversizeX + posX > 0){
+ posX -= 20;
+ var picdiv = $("kiv_picdiv");
+ picdiv.style.marginLeft = -(0.5*picdiv.offsetWidth) + posX + "px";
+ }
+ } else {
+ kiv.goon(1);
+ }
+ <?php } else { ?>
+ kiv.goon(1);
+ <?php } ?>
+ preventDefaultAction(aEvent);
+ return false;
+ }
+ }
+
+ <?php if($viewercomments == 1){ ?>
+ this.flip_vcomm = function(){
+ if(flipped == 0){
+ if($("kib_helpbox")){
+ kib.hidehelp();
+ }
+ flip(1);
+ flipped = 2;
+ return;
+ }
+ if(flipped == 1){
+ flip(-1);
+ flipped = 2;
+ return;
+ }
+ }
+
+ function flip(direction){
+ if(stop == 1 || ss == 1 || flipped == 2)return;
+
+ stop = 1;
+
+ var picsize = calcpicsize(cur_pic);
+ picsize[0] += <?php echo 2*$bord_size ?>;
+ picsize[1] += <?php echo 2*$bord_size ?>;
+
+ if(direction == 1){
+ if(picsize[0] < 700)picsize[0] = 700;
+ if(picsize[1] < 410)picsize[1] = 410;
+ } else {
+ $("kiv_picdiv").removeChild($("kiv_vcomments_form"));
+ $("kiv_picdiv").removeChild($("kiv_vcomments_list"));
+ }
+
+ var flipZ = (picsize[0]/(1.2*picsize[1]))*0.25;
+ if(flipZ > 0.5)flipZ = 0.5;
+ if(flipZ < 0.05)flipZ = 0.05;
+
+ <?php if($pwok == 1){ ?>
+ if($("square_selector"))$("square_selector").style.display = "none";
+ <?php } ?>
+ <?php if($checkgps == 1){ ?>
+ if($("kiv_gpspic"))$("kiv_gpspic").style.display = "none";
+ <?php } ?>
+ <?php if($show_help){ ?>
+ $("kiv_help").style.display = "none";
+ <?php } ?>
+ $("kiv_comdiv").style.visibility = "hidden";
+ var node = $("kiv_inshadow");
+ node.style.display = "none";
+ node.style.width = picsize[0] - <?php echo 2*$bord_size ?> + "px";
+ node.style.height = picsize[1] - <?php echo 2*$bord_size ?> + "px";
+
+ var temp = 0;
+
+ var node = document.createElement("div");
+ node.innerHTML = "<img id='kiv_flipT1' style='margin:0px; position:absolute; left:0px; top:0px; padding:0px; border:0px; width:100%; height:0px;' src='<?php echo $basedir."ki_flip.php?ot=0&gallery=" ?>"+kib.dirs[cur_gallery]+"' /><img id='kiv_flipB1' style='margin:0px; position:absolute; left:0px; bottom:0px; padding:0px; border:0px; width:100%; height:0px;' src='<?php echo $basedir."ki_flip.php?ot=1&gallery=" ?>"+kib.dirs[cur_gallery]+"' /><img id='kiv_flipT2' style='margin:0px; position:absolute; left:0px; top:0px; padding:0px; border:0px; width:0%; height:"+Math.round(picsize[1]*flipZ)+"px;' src='<?php echo $basedir."ki_flip.php?ot=2&gallery=" ?>"+kib.dirs[cur_gallery]+"' /><img id='kiv_flipB2' style='margin:0px; position:absolute; left:0px; bottom:0px; padding:0px; border:0px; width:0%; height:"+Math.round(picsize[1]*flipZ)+"px;' src='<?php echo $basedir."ki_flip.php?ot=3&gallery=" ?>"+kib.dirs[cur_gallery]+"' />";
+ var what = node.childNodes.length;
+ for(var i = 0; i < what; i++){
+ $("kiv_picdiv").appendChild(node.childNodes[0]);
+ }
+ $("kiv_flipT1").onload = function(){
+ temp++;
+ if(temp == 4)kiv.flip2(direction, picsize, flipZ);
+ };
+ $("kiv_flipB1").onload = function(){
+ temp++;
+ if(temp == 4)kiv.flip2(direction, picsize, flipZ);
+ };
+ $("kiv_flipT2").onload = function(){
+ temp++;
+ if(temp == 4)kiv.flip2(direction, picsize, flipZ);
+ };
+ $("kiv_flipB2").onload = function(){
+ temp++;
+ if(temp == 4)kiv.flip2(direction, picsize, flipZ);
+ };
+ }
+
+ this.flip2 = function(direction, picsize, flipZ){
+ var obj = $("kiv_picdiv");
+ fw.dropshadow(obj, 0);
+ fw.fade("thepicture", 0, Array( function(){
+
+ var node = document.createElement("div");
+ node.id = "kiv_flip_";
+ node.style.margin = "0px";
+ node.style.position = "absolute";
+ node.style.marginLeft = "-50%";
+ node.style.marginTop = "-50%";
+ node.style.top = "50%";
+ node.style.left = "50%";
+ node.style.padding = "0px";
+ node.style.border = "0px";
+ node.style.width = "100%";
+ node.style.height = "100%";
+ node.style.background = "<?php echo $bord_color ?>";
+ obj.appendChild(node);
+
+ obj.style.background = "none";
+
+ fw.resize2( "kiv_picdiv", 2, 0, picsize[1], Array( function() {
+ $("kiv_flipT1").style.display = "none";
+ $("kiv_flipB1").style.display = "none";
+ $("kiv_flipT2").style.width = "100%";
+ $("kiv_flipB2").style.width = "100%";
+ fw.resize2( "kiv_picdiv", 2, picsize[0], picsize[1], Array( function() {
+ $("kiv_picdiv").removeChild($("kiv_flipT1"));
+ $("kiv_picdiv").removeChild($("kiv_flipB1"));
+ $("kiv_picdiv").removeChild($("kiv_flipT2"));
+ $("kiv_picdiv").removeChild($("kiv_flipB2"));
+ $("kiv_picdiv").removeChild($("kiv_flip_"));
+ $("kiv_picdiv").style.background = "<?php echo $bord_color ?>";
+ fw.dropshadow(obj, 1);
+ obj = $("thepicture");
+ var picsize = calcpicsize(cur_pic);
+ if(direction == 1){
+ obj.style.left = "<?php echo $bord_size ?>px";
+ obj.style.top = "<?php echo $bord_size ?>px";
+ obj.style.margin = "0px";
+ obj.style.width = "230px";
+ obj.style.padding = "5px";
+ obj.style.height = (picsize[1]/picsize[0])*230 + "px";
+ <?php
+ if($browser !== "ie6" && $browser !== "ie7")
+ echo "obj.style.clip = 'rect(0px,240px,247px,0px)';";
+ else
+ echo "obj.style.clip = 'rect(0px 240px 247px 0px)';";
+ ?>
+ obj.onclick = function(){
+ kiv.flip_vcomm();
+ };
+ fw.fade(obj, 100);
+
+ picsize[0] += <?php echo 2*$bord_size ?>;
+ picsize[1] += <?php echo 2*$bord_size ?>;
+ if(picsize[0] < 700)picsize[0] = 700;
+ if(picsize[1] < 410)picsize[1] = 410;
+ picsize[0] -= <?php echo (2*$bord_size+20+1) ?>;
+ picsize[1] -= <?php echo (2*$bord_size+20+1) ?>;
+
+ var node = document.createElement("div");
+ node.id = "kiv_vcomments_form";
+ node.style.margin = "0px";
+ node.style.position = "absolute";
+ node.style.top = "<?php echo $bord_size+5 ?>px";
+ node.style.left = "<?php echo $bord_size+230+20 ?>px";
+ node.style.padding = "0px";
+ node.style.textAlign = "left";
+ node.style.border = "0px";
+ node.style.lineHeight = "12px";
+ node.style.font = "<?php echo "12px ".$comm_text_font ?>";
+ node.style.color = "<?php echo $vcomm_header_color ?>";
+ node.innerHTML = "<div style='margin:0px 0px 11px; font-size:16px; line-height:16px; color:<?php echo $vcomm_header_color ?>;'><b><?php echo $vcomm_lac ?></b></div><label><?php echo $vcomm_name ?></label><input type='text' style='width:240px; line-height:24px; border:1px solid <?php echo $vcomm_bord_color ?>; padding:2px; margin:9px 0px 0px; font:16px <?php echo $comm_text_font ?>; color:<?php echo $vcomm_box_color ?>; display:block; text-align:left; background:<?php echo $vcomm_back_color ?>;' name='email' id='vcomm_email'/><br /><label><?php echo $vcomm_comm ?></label><textarea style='width:400px; height:80px; line-height:24px; border:1px solid <?php echo $vcomm_bord_color ?>; padding:2px; margin:9px 0px 0px; color:<?php echo $vcomm_box_color ?>; font:16px <?php echo $comm_text_font ?>; display:block; text-align:left; background:<?php echo $vcomm_back_color ?>;' name='assystem' id='vcomm_assystem'></textarea><input type='button' value='<?php echo $vcomm_post ?>' style='line-height:16px; padding:2px; width:110px; margin:9px 9px 0px 0px; font:14px <?php echo $comm_text_font ?>; border:1px solid <?php echo $vcomm_bord_color ?>; color:#000000; background:#eeeeee; cursor:pointer;' onclick='kiv.sendvcomment()' /><?php echo $vcomm_clk ?>";
+ $("kiv_picdiv").appendChild(node);
+ $("vcomm_email").focus();
+ $("vcomm_assystem").style.width = picsize[0]-240 + "px";
+
+ node = document.createElement("div");
+ node.id = "kiv_vcomments_list";
+ node.style.margin = "0px";
+ node.style.position = "absolute";
+ node.style.top = "<?php echo $bord_size+260+10 ?>px";
+ node.style.left = "<?php echo $bord_size+5 ?>px";
+ node.style.padding = "5px";
+ node.style.textAlign = "left";
+ node.style.lineHeight = "12px";
+ node.style.width = picsize[0] + 10 - 10 + "px";
+ node.style.height = picsize[1] - 260 - 5 + "px";
+ node.style.background = "<?php echo $bord_color ?>";
+ node.style.overflowY = "scroll";
+ node.style.font = "<?php echo "12px ".$comm_text_font ?>";
+ node.style.color = "<?php echo $vcomm_text_color ?>";
+ node.innerHTML = "";
+ $("kiv_picdiv").appendChild(node);
+ var params = "?file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&gallery=" + kib.dirs[cur_gallery] + "&get=1";
+ fw.getHTTP("<?php echo $basedir ?>ki_vcomm.php" + params, kiv.getvcomm, null);
+
+ } else {
+ flipped = 0;
+ obj.style.left = "50%";
+ obj.style.top = "50%";
+ obj.style.padding = "0px";
+ obj.style.marginLeft = -0.5*picsize[0]+"px";
+ obj.style.marginTop = -0.5*picsize[1]+"px";
+ obj.style.width = picsize[0]+"px";
+ obj.style.height = picsize[1]+"px";
+ <?php
+ if($browser !== "ie6" && $browser !== "ie7")
+ echo "obj.style.clip = 'auto';";
+ else
+ echo "obj.style.clip = 'rect(auto auto auto auto)';";
+ ?>
+ obj.onclick = function(){
+ kiv.goon(1);
+ };
+ fw.fade(obj, 100, Array( function(){
+
+ <?php if($pwok == 1){ ?>
+ if($("square_selector"))$("square_selector").style.display = "block";
+ <?php } ?>
+ <?php if($checkgps == 1){ ?>
+ checkgps();
+ <?php } ?>
+ <?php if($show_help){ ?>
+ fw.fade("kiv_help", 51);
+ <?php } ?>
+
+ $("kiv_comdiv").style.visibility = "visible";
+ $("kiv_inshadow").style.display = "block";
+
+ if($("focusme"))$("focusme").focus();
+
+ flipped = 0;
+ } ) );
+ }
+ stop = 0;
+ } ) );
+ fw.resize2( "kiv_flipT2", 4, 0, 0 );
+ fw.resize2( "kiv_flipB2", 4, 0, 0 );
+ fw.resize2( "kiv_flip_", 2, picsize[0], picsize[1] );
+ } ) );
+ fw.resize2( "kiv_flipT1", 4, 0, Math.round(picsize[1]*flipZ) );
+ fw.resize2( "kiv_flipB1", 4, 0, Math.round(picsize[1]*flipZ) );
+ fw.resize2( "kiv_flip_", 2, 0, Math.round(picsize[1]*(1-2*flipZ))+8 );
+
+ } ) );
+ }
+
+ this.sendvcomment = function(){
+ var email = $("vcomm_email").value;
+ var assystem = $("vcomm_assystem").value;
+ if(email != "" && assystem != ""){
+ var shareadd = location.search;
+ if(shareadd.indexOf('kit_code=') != -1)
+ shareadd = shareadd.substr(0, shareadd.indexOf('kit_code=')-1);
+ if(shareadd.indexOf('?') == -1)
+ shareadd = "?" + shareadd;
+ else
+ shareadd += "&";
+ var slash = "";
+ if(location.pathname.substr(0, 1) != "/")slash = "/";
+ shareadd = encodeURIComponent(location.hostname + slash + location.pathname + shareadd + "kit_code=" + cur_gallery+"_"+cur_pic + location.hash);
+ var params = "?file=" + encodeURIComponent(kib.pics[cur_gallery][cur_pic].file) + "&gallery=" + kib.dirs[cur_gallery] + "&email=" + encodeURIComponent(email) + "&assystem=" + encodeURIComponent(assystem) + "&address=" + shareadd;
+ fw.getHTTP("<?php echo $basedir ?>ki_vcomm.php" + params, kiv.savedvcomm, null);
+ } else {
+ alert("ERROR: Name and/or comment empty.");
+ }
+ }
+
+ this.savedvcomm = function(responseText){
+ if(responseText == "1"){
+ alert("ERROR: For spam avoiding reasons you are only allowed to post a comment every 3 minutes.");
+ } else if(responseText == "2") {
+ alert("ERROR: Your comment has been identified as spam.");
+ } else {
+ $("vcomm_email").value = "";
+ $("vcomm_assystem").value = "";
+ var vlist = $("kiv_vcomments_list");
+ <?php if($moderate_posts == 0){ ?>
+ var old = vlist.innerHTML;
+ vlist.style.visibility = "hidden";
+ var oldd = parseInt(vlist.style.height);
+ vlist.style.height = "auto";
+ var olds = fw.getDim(vlist, 1)[1];
+ vlist.innerHTML = responseText;
+ var news = fw.getDim(vlist, 1)[1];
+ vlist.innerHTML = old;
+ vlist.style.height = oldd + "px";
+ vlist.style.visibility = "visible";
+ fw.move(vlist, 3, 0, 280 + (news - olds), Array(function(){
+ vlist.innerHTML = responseText;
+ vlist.style.top = "280px";
+ }));
+ <?php } else { ?>
+ alert("Thanks. Your comment will be visible after moderation.");
+ <?php } ?>
+ }
+ }
+
+ this.getvcomm = function(responseText){
+ if(responseText != ""){
+ if($("kiv_vcomments_list")){
+ $("kiv_vcomments_list").innerHTML = responseText;
+ }
+ }
+ flipped = 1;
+ }
+ <?php } ?>
+
+ this.download = function(){
+ var node = document.createElement("form");
+ node.action = "<?php echo $basedir ?>ki_download.php";
+ node.method = "post";
+ node.innerHTML = "<input type='hidden' name='file' value='" + kib.pics[cur_gallery][cur_pic].file + "' /><input type='hidden' name='gallery' value='" + kib.dirs[cur_gallery] + "' />";
+ document.body.appendChild(node);
+ node.submit();
+ document.body.removeChild(node);
+ }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_koschtit.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_koschtit.php
new file mode 100644
index 00000000..bad23817
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_koschtit.php
@@ -0,0 +1,404 @@
+<?php
+ob_start("ob_gzhandler");
+if(!ini_get('date.timezone') && function_exists("date_default_timezone_set"))date_default_timezone_set('Europe/Berlin');
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+function cmp_0($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) < filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_1($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) > filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_2($a, $b)
+{
+ global $galleryfolder;
+
+ $exif = @exif_read_data($galleryfolder.$a[0]);
+ $date1 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date1 = $exif['DateTimeOriginal'];
+ if (empty($date1) && isset($exif['DateTime']))
+ $date1 = $exif['DateTime'];
+ if (!empty($date1)){
+ $date1 = explode(':', str_replace(' ',':', $date1));
+ if(sizeof($date1) > 4){
+ $date1 = "{$date1[0]}-{$date1[1]}-{$date1[2]} {$date1[3]}:{$date1[4]}";
+ if(sizeof($date1) > 5)$date1 .= ":{$date1[5]}";
+ $date1 = strtotime($date1);
+ }
+ } else {
+ $date1 = filemtime($galleryfolder.$a[0]);
+ }
+ $exif = @exif_read_data($galleryfolder.$b[0]);
+ $date2 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date2 = $exif['DateTimeOriginal'];
+ if (empty($date2) && isset($exif['DateTime']))
+ $date2 = $exif['DateTime'];
+ if (!empty($date2)){
+ $date2 = explode(':', str_replace(' ',':', $date2));
+ if(sizeof($date2) > 4){
+ $date2 = "{$date2[0]}-{$date2[1]}-{$date2[2]} {$date2[3]}:{$date2[4]}";
+ if(sizeof($date2) > 5)$date2 .= ":{$date1[5]}";
+ $date2 = strtotime($date2);
+ } else {
+ $date2 = filemtime($galleryfolder.$b[0]);
+ }
+ } else {
+ $date2 = filemtime($galleryfolder.$b[0]);
+ }
+
+ return $date1 > $date2 ? 1 : -1;
+}
+
+function cmp_3($a, $b)
+{
+ return strcmp($a[0], $b[0]);
+}
+
+//-------------------------------------------------------------------------- end functions --------------------------------------------------------------------------------
+
+$supported = array("jpg","png","gif");
+
+$reldir = "";
+if(isset($_POST['reldir']))$reldir = $_POST['reldir'];
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit();
+
+if(isset($_POST['gallerynumber']))
+ $gallerynumber = $_POST['gallerynumber'];
+else
+ exit();
+
+if(isset($_POST['startfrom']))
+ $startfrom = $_POST['startfrom'];
+else
+ $startfrom = 0;
+
+if(isset($_POST['collectinfo']))
+ $collectinfo = 1;
+else
+ $collectinfo = 0;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php")){
+ include_once("../ki_config/".$gallery."_ki_setup.php");
+ $configfile = "../ki_config/".$gallery."_ki_setup.php";
+} else {
+ $configfile = "../ki_config/ki_setup.php";
+}
+$galleryfolder = "../ki_galleries/".$gallery."/";
+$thumbsfolder = $galleryfolder."thumbs/";
+$commentsfolder = $galleryfolder."comments/";
+$viewercommentsfolder = $galleryfolder."viewercomments/";
+
+$temp = getimagesize("ki_nav_next.png");
+if($nav_always == 1 && $show_nav == 1)$fr_height -= ($temp[1]+18);
+if($th_lines == "auto")$th_lines = ceil($thumbs/($th_per_line));
+if($th_width == "auto")$th_width = round($fr_width/($th_per_line)) - round($fr_height*0.04) - 4;
+if($th_height == "auto")$th_height = round($fr_height/($th_lines)) - round($fr_height*0.04) - 4;
+$th_width = $th_width - 2*$th_bord_size;
+$th_height = $th_height - 2*$th_bord_size;
+if(($th_lines*$th_per_line) < $thumbs)$thumbs = $th_lines*$th_per_line;
+
+$zeile = 1;
+$spalte = 0;
+
+$spaltenbreite = $fr_width/($th_per_line);
+$zeilenhoehe = $fr_height/($th_lines);
+
+/*------------------- error/warning checking ------------------*/
+if($collectinfo == 1){
+ if (!function_exists('imagecreatetruecolor')) {
+ echo "<div style='background:#ffbbbb; color:#000000; margin-bottom:5px; position:relative; z-index:10; padding:4px;'>ERROR: KoschtIT Image Gallery can't find the PHP GD2 Library available. Please make sure you have removed the semicolon from this line ';extension=php_gd2.dll' in your php.ini and the library is correctly installed.</div>";
+ }
+ if(!is_dir($galleryfolder)) {
+ echo "<div style='background:#ffbbbb; color:#000000; margin-bottom:5px; position:relative; z-index:10; padding:4px;'>ERROR: KoschtIT Image Gallery can't find the following folder on the server: '".htmlentities($gallery)."' . Please check if the folder is available in the 'ki_galleries' folder.</div>";
+ echo "<input type='hidden' id='".$gallerynumber."_info' value='[ ]' />";
+ exit();
+ }
+ if($checkgps == 1){
+ if(!function_exists("exif_read_data")){
+ if($show_warnings == 1)echo "<div style='background:#bbbbff; color:#000000; margin-bottom:5px; position:relative; z-index:10; padding:4px;'>WARNING: You don't have the exif extension for PHP installed. The script won't be able to read any positioning metadata from your pictures. Please disable '\$checkgps' for fixing this issue. Set '\$show_warnings = 0' if you don't want to see this warning again.</div>";
+ }
+ }
+ if($pic_order == 3){
+ if(!function_exists("exif_read_data")){
+ $pic_order = 2;
+ if($show_warnings == 1)echo "<div style='background:#bbbbff; color:#000000; margin-bottom:5px; position:relative; z-index:10; padding:4px;'>WARNING: You don't have the exif extension for PHP installed. You can't set \'$pic_order\' to 3. Please set a different value for '\$pic_order'. Set '\$show_warnings = 0' if you don't want to see this warning again.</div>";
+ }
+ }
+ if($checkgps == 1 && $cellinfo == 1){
+ if(!function_exists("curl_init")){
+ if($show_warnings == 1)echo "<div style='background:#bbbbff; color:#000000; margin-bottom:5px; position:relative; z-index:10; padding:4px;'>WARNING: You don't have the curl extension for PHP installed. You will need this extension for retrieving geo-tagging information from opencellid.com . Please disable '\$cellinfo' for fixing this issue. Set '\$show_warnings = 0' if you don't want to see this warning again.</div>";
+ }
+ }
+ if($thumbs_to_disk == 1){
+ $error = 0;
+ if(!is_dir($thumbsfolder)){
+ @chmod($galleryfolder, 0777);
+ if( !@mkdir($thumbsfolder, 0777) ) {
+ $error = 1;
+ }
+ } else {
+ if(!is_file($thumbsfolder."test") && !$f = @fopen($thumbsfolder."test", 'w')){
+ $error = 1;
+ }
+ @fclose($f);
+ @unlink($thumbsfolder."test");
+ }
+ if($error == 1 && $show_warnings == 1)echo "<div style='background:#bbbbff; color:#000000; margin-bottom:5px; position:relative; z-index:10; padding:4px;'>WARNING: KoschtIT Image Gallery can't get writing permission on the server (\"ki_galleries\\".$gallery."\\thumbs\"-folder). Thumbs won't be saved. Please disable '\$thumbs_to_disk' or grant writing permission. Set '\$show_warnings = 0' if you don't want to see this warning again.</div>";
+ }
+ if($comments == 1){
+ $error = 0;
+ if(!is_dir($commentsfolder)){
+ @chmod($galleryfolder, 0777);
+ if( !@mkdir($commentsfolder, 0777) ) {
+ $error = 1;
+ }
+ } else {
+ if(!is_file($commentsfolder."test") && !$f = @fopen($commentsfolder."test", 'w')){
+ $error = 1;
+ }
+ @fclose($f);
+ @unlink($commentsfolder."test");
+ }
+ if($error == 1 && $show_warnings == 1)echo "<div style='background:#bbbbff; color:#000000; margin-bottom:5px; z-index:3000; position:relative; z-index:10; padding:4px;'>WARNING: KoschtIT Image Gallery can't get writing permission on the server (\"ki_galleries\\".$gallery."\\comments\"-folder). Picture comments won't be saved, but you can still use '\$comm_auto'. Please disable '\$comments' or grant writing permission. Set '\$show_warnings = 0' if you don't want to see this warning again.</div>";
+ }
+ if($viewercomments == 1){
+ $error = 0;
+ if(!is_dir($viewercommentsfolder)){
+ @chmod($galleryfolder, 0777);
+ if( !@mkdir($viewercommentsfolder, 0777) ) {
+ $error = 1;
+ }
+ } else {
+ if(!is_file($viewercommentsfolder."test") && !$f = @fopen($viewercommentsfolder."test", 'w')){
+ $error = 1;
+ }
+ @fclose($f);
+ @unlink($viewercommentsfolder."test");
+ }
+ if($error == 1 && $show_warnings == 1)echo "<div style='background:#bbbbff; color:#000000; margin-bottom:5px; z-index:3000; position:relative; z-index:10; padding:4px;'>WARNING: KoschtIT Image Gallery can't get writing permission on the server (\"ki_galleries\\".$gallery."\\viewercomments\"-folder). User comments won't be saved. Please disable '\$viewercomments' or grant writing permission. Set '\$show_warnings = 0' if you don't want to see this warning again.</div>";
+ }
+}
+/*------------------- end error/warning checking ------------------*/
+
+/*------------------- config settings ------------------*/
+$savefile = $gallery."_lastmodified";
+$lastmodified = filemtime($configfile);
+$saved = $fr_width.$fr_height.$thumbs.$th_per_line.$th_lines.$th_width.$th_height.$th_bord_size.$th_bord_hover_increase.$th_to_square.$th_2sq_crop_vert.$th_2sq_crop_hori.$show_nav.$nav_always;
+$writestring = "<?php\r\n\$lm_saved = \"".$saved."\";\r\n";
+$writestring .= "\$lm_lastmodified = ".$lastmodified.";\r\n?>";
+if(!file_exists($savefile))@file_put_contents($savefile, $writestring);
+if(!file_exists($savefile)) {
+ $thumbs_to_disk = 0;
+} else {
+ include_once($savefile);
+ if($lm_saved !== $saved){
+ @file_put_contents($savefile, $writestring);
+ $matches = @glob($thumbsfolder."*.*", GLOB_ERR);
+ if(is_array($matches)){
+ foreach($matches as $sf) {
+ if(!is_dir($sf) && !is_link($sf)){
+ @unlink($sf);
+ }
+ }
+ }
+ } else {
+ $lastmodified = $lm_lastmodified;
+ }
+}
+/*------------------- end config settings ------------------*/
+
+$files = array();
+$temp = array();
+$savedfolderhash = 0;
+if(is_file($gallery."_dir")){
+ $temp = explode(PHP_EOL, file_get_contents($gallery."_dir"));
+ $savedfolderhash = unserialize($temp[0]);
+}
+//$folderhash = pic_order + MTime of $galleryfolder + fileSize of all files
+$folderhash = $pic_order;
+$iterator = new DirectoryIterator($galleryfolder);
+foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ $folderhash += $fileInfo->getMTime();
+ continue;
+ } elseif($fileInfo->isFile()) {
+ $folderhash += $fileInfo->getSize();
+ }
+}
+if($folderhash != $savedfolderhash){
+ if($pic_order == 4 && sizeof($temp) > 1){
+ $files = unserialize($temp[1]);
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $newcandidate = array($file, $imgsize[0], $imgsize[1]);
+ if(!in_array($newcandidate, $files))$files[] = $newcandidate;
+ }
+ }
+ reset($files);
+ } else {
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $files[] = array($file, $imgsize[0], $imgsize[1]);
+ }
+ }
+ switch($pic_order){
+ case 0:
+ usort($files, "cmp_1");
+ break;
+ case 1:
+ usort($files, "cmp_0");
+ break;
+ case 2:
+ usort($files, "cmp_3");
+ break;
+ case 3:
+ usort($files, "cmp_2");
+ break;
+ default:
+ usort($files, "cmp_1");
+ break;
+ }
+ reset($files);
+ }
+} else {
+ $files = unserialize($temp[1]);
+}
+
+if($collectinfo == 1){
+ $id = 0;
+ $fileinfo = "";
+ foreach ($files as $file) {
+ if($id != 0)$fileinfo .= ", ";
+ $id++;
+ $fileinfo .= "{ \"file\" : \"".$file[0]."\", \"x\" : ".$file[1].", \"y\" : ".$file[2]." }";
+ }
+ echo "<input id='".$gallerynumber."_info' type='hidden' value='[ ".$fileinfo." ]' />";
+ @file_put_contents($gallery."_dir", serialize($folderhash).PHP_EOL.serialize($files));
+}
+
+$id = 0;
+foreach ($files as $file) {
+ $id++;
+ if($id > $startfrom) {
+
+ $spalte++;
+ if($spalte == $th_per_line+1){
+ $zeile++;
+ $spalte = 1;
+ }
+
+ $breite = $file[1];
+ $hoehe = $file[2];
+
+ if( ($breite / $hoehe) > 1){
+ $k = $hoehe / $breite;
+ $breite = $th_width;
+ $hoehe = $k*$breite;
+ if($hoehe > $th_height){
+ $hoehe = $th_height;
+ $breite = (1/$k) * $hoehe;
+ }
+ } else {
+ $k = $breite / $hoehe;
+ $hoehe = $th_height;
+ $breite = $k*$hoehe;
+ if($breite > $th_width){
+ $breite = $th_width;
+ $hoehe = (1/$k) * $breite;
+ }
+ }
+
+ if($th_to_square == 1) {
+ if($th_width < $th_height){
+ $breite = $th_width;
+ } else {
+ $breite = $th_height;
+ }
+ $hoehe = $breite;
+ }
+
+ $x_pos = round($spaltenbreite*($spalte - 0.5) - 0.5*$breite) - $th_bord_size;
+ $y_pos = round($zeilenhoehe*($zeile - 0.5) - 0.5*$hoehe) - $th_bord_size;
+
+ $breite = round($breite);
+ $hoehe = round($hoehe);
+
+ if($th_bord_hover_increase > 1){
+ $inc_breite = round($breite*$th_bord_hover_increase);
+ $inc_hoehe = round($breite*$th_bord_hover_increase);
+ } else {
+ $inc_breite = $breite;
+ $inc_hoehe = $hoehe;
+ }
+
+ if($zeile <= $th_lines && ($id-$startfrom) <= $thumbs)
+ {
+ $src = $basedir."ki_makepic.php?file=".$gallery."/".rawurlencode($file[0])."&width=".$inc_breite."&height=".$inc_hoehe;
+ $style = "border:".$th_bord_size."px solid ".$th_bord_color."; position:absolute; left:".$x_pos."px; top:".$y_pos."px; cursor:pointer; visibility:hidden; margin:0px; width:".$breite."px; height:".$hoehe."px;";
+ if($thumbs_to_disk == 1){
+ if(!is_file($thumbsfolder.$lastmodified.$file[0])){
+ $src .= "&picname=".$lastmodified.rawurlencode($file[0]);
+ } else {
+ $src = $galleriesdir.$gallery."/thumbs/".$lastmodified.$file[0];
+ }
+ }
+ echo "<img id='".$gallerynumber."_".($id-1)."' src='".$src."' style='".$style."' onclick='kib.getImage(this.id)' onload=\"this.style.visibility='visible'\" onmouseover='kib.makebigger(this)' onmouseout='kib.makesmaller(this)' alt='".$breite."_".$hoehe."_".$x_pos."_".$y_pos."' />";
+ }
+ }
+}
+
+if(($id-$startfrom) > $thumbs)echo "<span id='".$gallerynumber."_next' style='display:none;'>".($startfrom+$thumbs)."</span>";
+if($startfrom != 0)echo "<span id='".$gallerynumber."_prev' style='display:none;'>".($startfrom-$thumbs)."</span>";
+?>
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_loading.gif b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_loading.gif
new file mode 100644
index 00000000..3cd7d9de
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_loading.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_makepic.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_makepic.php
new file mode 100644
index 00000000..93606187
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_makepic.php
@@ -0,0 +1,317 @@
+<?php
+// -------------------------------------------------------- functions --------------------------------------------------------------
+
+//------------------ Start Caching ---------------------------------
+if(!ini_get('date.timezone') && function_exists("date_default_timezone_set"))date_default_timezone_set('Europe/Berlin');
+$mtime = filemtime($_SERVER['SCRIPT_FILENAME']);
+$gmt_mtime = gmdate('D, d M Y H:i:s', $mtime).' GMT';
+header('ETag: "'.md5($mtime.$_SERVER['SCRIPT_FILENAME']).'"');
+if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE']))
+{
+ if ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $gmt_mtime)
+ {
+ header('HTTP/1.1 304 Not Modified');
+ exit();
+ }
+}
+if (isset($_SERVER['HTTP_IF_NONE_MATCH']))
+{
+ if (str_replace('"', '', stripslashes($_SERVER['HTTP_IF_NONE_MATCH'])) == md5($mtime.$_SERVER['SCRIPT_FILENAME']))
+ {
+ header("HTTP/1.1 304 Not Modified");
+ exit();
+ }
+}
+//------------------ Ende Caching ---------------------------------
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+function getMemLimit(){
+ if(ini_get("memory_limit"))return return_bytes(ini_get("memory_limit")) - memory_get_usage();
+ if(ini_get("se_memory_limit"))return return_bytes(ini_get("se_memory_limit")) - memory_get_usage();
+ return -1;
+}
+
+
+function return_bytes($size_str){
+ switch (substr ($size_str, -1))
+ {
+ case 'M': case 'm': return (int)$size_str * 1048576;
+ case 'K': case 'k': return (int)$size_str * 1024;
+ case 'G': case 'g': return (int)$size_str * 1073741824;
+ default: return $size_str;
+ }
+}
+
+function getNeededMemoryForImageCreate($width, $height) {
+ return $width*$height*5.2;
+}
+
+function imagestringwrap($image, $font, $x, $y, $text, $color, $maxwidth){
+
+ $fontwidth = imagefontwidth($font);
+ $fontheight = imagefontheight($font);
+
+ if ($maxwidth != NULL){
+ $maxcharsperline = floor($maxwidth / $fontwidth);
+ $text = wordwrap($text, $maxcharsperline, "\n", 1);
+ }
+
+ $lines = explode("\n", $text);
+ while (list($numl, $line) = each($lines)) {
+ imagestring($image, $font, $x, $y, $line, $color);
+ $y += $fontheight;
+ }
+}
+
+// -------------------------------------------------------- end functions --------------------------------------------------------------
+
+include_once("../ki_config/ki_setup.php");
+
+if(isset($_GET['file']))
+ $file = rawurldecode($_GET['file']);
+else
+ exit();
+
+$gallery = substr($file, 0, strpos($file, "/"));
+$file = substr($file, strpos($file, "/")+1);
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))
+ include_once("../ki_config/".$gallery."_ki_setup.php");
+
+$filename = $file;
+$file = "../ki_galleries/".$gallery."/".$file;
+$imgsize = getimagesize($file);
+
+if(isset($_GET['height']))
+ $hoehe = $_GET['height'];
+else
+ $hoehe = 100;
+
+if(isset($_GET['width']))
+ $breite = $_GET['width'];
+else
+ $breite = $imgsize[0]/$imgsize[1]*$hoehe;
+
+$src_x = 0;
+$src_y = 0;
+$src_w = $imgsize[0];
+$src_h = $imgsize[1];
+
+if($th_to_square == 1 && isset($_GET['width']) && !isset($_GET['fullimg'])){
+ if($imgsize[0]/$imgsize[1] >= 1)
+ $wide = 1;
+ else
+ $wide = 0;
+
+ $custom = -1;
+ if(is_file("custom")){
+ $content = @file_get_contents("custom");
+ $pictures = explode("|", $content);
+ $picname = $gallery."_".$filename;
+ for($i = 0; $i < count($pictures); $i++){
+ if(strpos($pictures[$i], $picname) !== FALSE){
+ $custom = substr($pictures[$i], strpos($pictures[$i], "=") + 1);
+ }
+ }
+ }
+
+ if($custom == -1){
+ switch($th_2sq_crop_vert){
+ case "top":
+ $src_y = 0;
+ if($wide == 1)
+ $src_h = $imgsize[1];
+ else
+ $src_h = $imgsize[0];
+ break;
+ case "middle";
+ if($wide == 1){
+ $src_y = 0;
+ $src_h = $imgsize[1];
+ } else {
+ $src_y = $imgsize[1]*0.5-0.5*$imgsize[0];
+ $src_h = $imgsize[0];
+ }
+ break;
+ case "bottom":
+ if($wide == 1){
+ $src_y = 0;
+ $src_h = $imgsize[1];
+ } else {
+ $src_y = $imgsize[1]-$imgsize[0];
+ $src_h = $imgsize[0];
+ }
+ break;
+ }
+ switch($th_2sq_crop_hori){
+ case "left":
+ $src_x = 0;
+ if($wide == 1)
+ $src_w = $imgsize[1];
+ else
+ $src_w = $imgsize[0];
+ break;
+ case "center";
+ if($wide == 1){
+ $src_x = $imgsize[0]*0.5-0.5*$imgsize[1];
+ $src_w = $imgsize[1];
+ } else {
+ $src_x = 0;
+ $src_w = $imgsize[0];
+ }
+ break;
+ case "right":
+ if($wide == 1){
+ $src_x = $imgsize[0]-$imgsize[1];
+ $src_w = $imgsize[1];
+ } else {
+ $src_x = 0;
+ $src_w = $imgsize[0];
+ }
+ break;
+ }
+ } else {
+ if($wide == 1){
+ $src_x = $custom*$imgsize[0];
+ $src_y = 0;
+ $src_w = $imgsize[1];
+ $src_h = $imgsize[1];
+ } else {
+ $src_y = $custom*$imgsize[1];
+ $src_x = 0;
+ $src_h = $imgsize[0];
+ $src_w = $imgsize[0];
+ }
+ }
+}
+
+
+$limit = getMemLimit();
+$need = getNeededMemoryForImageCreate($imgsize[0], $imgsize[1]);
+if($need > $limit){
+ while($limit < $need){
+ if(!@ini_set("memory_limit", strval(round(return_bytes(ini_get("memory_limit"))*2))) || $limit < 0){
+ if(!isset($_GET['fullimg'])){
+ $im = imagecreate($breite, $hoehe);
+ $bg = imagecolorallocate($im, 255, 255, 255);
+ imagefill($im, 0, 0, $bg);
+ $textcolor = imagecolorallocate($im, 255, 0, 0);
+ imagestringwrap($im, 2, 2, 2, "ERROR: '".substr($file, strrpos($file, "/")+1)."' needs too much memory to create this thumb. Please reduce it's size by hand.", $textcolor, $breite-2);
+ header('Content-type: image/png');
+ imagepng($im);
+ imagedestroy($im);
+ exit();
+ } else {
+ header("Location: ".$file);
+ exit();
+ }
+ } else {
+ $limit = return_bytes(ini_get("memory_limit")) - memory_get_usage();
+ }
+ }
+}
+
+ini_set("gd.jpeg_ignore_warning", true);
+
+switch(strtolower(substr($file, -3))){
+ case "jpg":
+ $image = @imagecreatefromjpeg($file);
+ break;
+ case "png":
+ $image = @imagecreatefrompng($file);
+ break;
+ case "gif":
+ $image = @imagecreatefromgif($file);
+ break;
+ default:
+ exit;
+ break;
+}
+
+$limit = getMemLimit();
+$need = getNeededMemoryForImageCreate($breite, $hoehe);
+if($need > $limit){
+ while($limit < $need){
+ if(!@ini_set("memory_limit", strval(round(return_bytes(ini_get("memory_limit"))*2))) || $limit < 0){
+ if(!isset($_GET['fullimg'])){
+ $im = imagecreate($breite, $hoehe);
+ $bg = imagecolorallocate($im, 255, 255, 255);
+ imagefill($im, 0, 0, $bg);
+ $textcolor = imagecolorallocate($im, 255, 0, 0);
+ imagestringwrap($im, 2, 2, 2, "ERROR: '".substr($file, strrpos($file, "/")+1)."' needs too much memory to create this thumb. Please reduce it's size by hand.", $textcolor, $breite-2);
+ header('Content-type: image/png');
+ imagepng($im);
+ imagedestroy($im);
+ exit();
+ } else {
+ header("Location: ".$file);
+ exit();
+ }
+ } else {
+ $limit = return_bytes(ini_get("memory_limit")) - memory_get_usage();
+ }
+ }
+}
+
+$bild = imagecreatetruecolor($breite, $hoehe);
+imagealphablending($bild, false);
+imagesavealpha($bild, true);
+imagecopyresampled($bild, $image, 0, 0, $src_x, $src_y, $breite, $hoehe, $src_w, $src_h);
+imagedestroy($image);
+
+if(isset($_GET['picname'])){
+ $picname = rawurldecode($_GET['picname']);
+ // -------------- Sicherheitsabfragen!
+ if(preg_match("/[\.]*\//", $picname))exit();
+ // ---------- Ende Sicherheitsabfragen!
+ switch(strtolower(substr($file, -3))){
+ case "jpg":
+ @imagejpeg($bild, "../ki_galleries/".$gallery."/thumbs/".$_GET['picname'], 80);
+ break;
+ case "png":
+ @imagepng($bild, "../ki_galleries/".$gallery."/thumbs/".$_GET['picname']);
+ break;
+ case "gif":
+ @imagegif($bild, "../ki_galleries/".$gallery."/thumbs/".$_GET['picname']);
+ break;
+ }
+} else {
+ //------------------ Start Caching ---------------------------------
+ header('Last-Modified: '.$gmt_mtime);
+ header('Cache-Control: public');
+ header('Expires: '.gmdate('D, d M Y H:i:s', strtotime('+1 month')).' GMT');
+ //------------------ Ende Caching ---------------------------------
+}
+
+switch(strtolower(substr($file, -3))){
+ case "jpg":
+ header("Content-Type: image/jpeg");
+ imagejpeg($bild, "", 80);
+ break;
+ case "png":
+ header("Content-Type: image/png");
+ imagepng($bild);
+ break;
+ case "gif":
+ header("Content-Type: image/gif");
+ imagegif($bild);
+ break;
+}
+
+imagedestroy($bild);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_managefolders.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_managefolders.php
new file mode 100644
index 00000000..1b8956fd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_managefolders.php
@@ -0,0 +1,122 @@
+<?php
+session_start();
+
+/* --------------------------------------------------------- functions ------------------------------------------------------ */
+
+function calcSize($dir){
+ $size = 0;
+ $num = 0;
+ $iterator = new DirectoryIterator($dir);
+ foreach ($iterator as $fileInfo){
+ if($fileInfo->isDot()){
+ continue;
+ } else if($fileInfo->isDir()){
+ $info = calcSize($dir.$fileInfo->getBasename()."/");
+ $size += $info[1];
+ } else if($fileInfo->isFile()){
+ $size += $fileInfo->getSize();
+ $num += 1;
+ }
+ }
+ return array($num, $size);
+}
+
+function listFolders(){
+ $setting = "";
+ $iterator = new DirectoryIterator("../ki_galleries/");
+ foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ continue;
+ } else if($fileInfo->isDir()) {
+ $info = calcSize("../ki_galleries/".$fileInfo->getBasename()."/");
+ $setting .= "{\"folder\":\"".addslashes($fileInfo->getBasename())."\", \"size\":".round(($info[1]/1024/1024), 2).", \"num\":".$info[0]." }, ";
+ }
+ }
+ $setting = substr($setting, 0, -2)." ";
+ return $setting;
+}
+
+function deleteAll($folder){
+ $iterator = new DirectoryIterator($folder);
+ foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ continue;
+ } else if($fileInfo->isFile()){
+ @unlink($folder.$fileInfo->getBasename());
+ } else if($fileInfo->isDir()){
+ deleteAll($folder.$fileInfo->getBasename()."/");
+ }
+ }
+ return @rmdir($folder);
+}
+
+function emptyAll($folder){
+ $iterator = new DirectoryIterator($folder);
+ foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ continue;
+ } else if($fileInfo->isFile()){
+ if(!@unlink($folder.$fileInfo->getBasename()))return false;
+ } else if($fileInfo->isDir()){
+ deleteAll($folder.$fileInfo->getBasename()."/");
+ }
+ }
+ return true;
+}
+
+/* ---------------------------------------------------------- end functions -------------------------------------------------- */
+
+include_once("../ki_config/ki_setup.php");
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+if($pwok == 1){
+ if(isset($_POST['list'])){
+ echo "[ ".listFolders()." ]";
+ }
+ if(isset($_POST['createnew'])){
+ $error = "";
+ $folder = "../ki_galleries/".$_POST['createnew']."/";
+ if(!is_dir($folder)){
+ if( !@mkdir($folder, 0777) ) {
+ $error = "ERROR: Could not create new folder. Check permissions.";
+ }
+ } else {
+ $error = "ERROR: Folder already exists.";
+ }
+ if($error === "")
+ echo "[ ".listFolders()." ]";
+ else
+ echo "{\"error\":\"".$error."\" }";
+ }
+ if(isset($_POST['delete'])){
+ $error = "";
+ $folder = "../ki_galleries/".$_POST['delete']."/";
+ if(is_dir($folder)){
+ if(!deleteAll($folder))$error = "ERROR: Could not delete folder. Check permissions.";
+ } else {
+ $error = "ERROR: Folder not existent.";
+ }
+ if($error === "")
+ echo "[ ".listFolders()." ]";
+ else
+ echo "{\"error\":\"".$error."\" }";
+ }
+ if(isset($_POST['empty'])){
+ $error = "";
+ $folder = "../ki_galleries/".$_POST['empty']."/";
+ if(is_dir($folder)){
+ if(!emptyAll($folder))$error = "ERROR: Could not empty folder. Check permissions.";
+ } else {
+ $error = "ERROR: Folder not existent.";
+ }
+ if($error === "")
+ echo "[ ".listFolders()." ]";
+ else
+ echo "{\"error\":\"".$error."\" }";
+ }
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_mouse_help.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_mouse_help.png
new file mode 100644
index 00000000..74624e72
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_mouse_help.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_close.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_close.png
new file mode 100644
index 00000000..b2c2d106
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_close.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_download.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_download.png
new file mode 100644
index 00000000..4e9c99b2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_download.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_full.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_full.png
new file mode 100644
index 00000000..30e18e04
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_full.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_globe.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_globe.png
new file mode 100644
index 00000000..d4aaa8fd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_globe.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_info.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_info.png
new file mode 100644
index 00000000..431a975d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_info.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_link.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_link.png
new file mode 100644
index 00000000..c2ac959d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_link.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_next.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_next.png
new file mode 100644
index 00000000..45c77753
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_next.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_play.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_play.png
new file mode 100644
index 00000000..1603a9d6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_play.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_prev.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_prev.png
new file mode 100644
index 00000000..11ef619c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_prev.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_stop.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_stop.png
new file mode 100644
index 00000000..685a4cbe
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_stop.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_vcomm.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_vcomm.png
new file mode 100644
index 00000000..50ef6f1d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nav_vcomm.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_next.png b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_next.png
new file mode 100644
index 00000000..699a849b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_next.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_noimage.gif b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_noimage.gif
new file mode 100644
index 00000000..35d42e80
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_noimage.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojs.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojs.php
new file mode 100644
index 00000000..90bc2fc7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojs.php
@@ -0,0 +1,447 @@
+<?php
+ob_start("ob_gzhandler");
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$filename."'".$style.$params." />";
+ }
+}
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+function cmp_0($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) < filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_1($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) > filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_2($a, $b)
+{
+ global $galleryfolder;
+
+ $exif = @exif_read_data($galleryfolder.$a[0]);
+ $date1 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date1 = $exif['DateTimeOriginal'];
+ if (empty($date1) && isset($exif['DateTime']))
+ $date1 = $exif['DateTime'];
+ if (!empty($date1)){
+ $date1 = explode(':', str_replace(' ',':', $date1));
+ $date1 = "{$date1[0]}-{$date1[1]}-{$date1[2]} {$date1[3]}:{$date1[4]}";
+ if(sizeof($date1) > 5)$date1 .= ":{$date1[5]}";
+ $date1 = strtotime($date1);
+ } else {
+ $date1 = filemtime($galleryfolder.$a[0]);
+ }
+ $exif = @exif_read_data($galleryfolder.$b[0]);
+ $date2 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date2 = $exif['DateTimeOriginal'];
+ if (empty($date2) && isset($exif['DateTime']))
+ $date2 = $exif['DateTime'];
+ if (!empty($date2)){
+ $date2 = explode(':', str_replace(' ',':', $date2));
+ $date2 = "{$date2[0]}-{$date2[1]}-{$date2[2]} {$date2[3]}:{$date2[4]}";
+ if(sizeof($date2) > 5)$date2 .= ":{$date1[5]}";
+ $date2 = strtotime($date2);
+ } else {
+ $date2 = filemtime($galleryfolder.$b[0]);
+ }
+
+ return $date1 > $date2 ? 1 : -1;
+}
+
+function cmp_3($a, $b)
+{
+ return strcmp($a[0], $b[0]);
+}
+
+//-------------------------------------------------------------------------- end functions --------------------------------------------------------------------------------
+
+@ini_set("default_charset", "utf-8");
+header('Content-type: text/html; charset=utf-8');
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+$supported = array("jpg","png","gif");
+
+if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ exit();
+
+if(isset($_GET['site']))
+ $site = $_GET['site'];
+else
+ exit();
+
+if(isset($_GET['startfrom']))
+ $startfrom = $_GET['startfrom'];
+else
+ $startfrom = 0;
+
+if(isset($_GET['explorer']))
+ $explorer = 1;
+else
+ $explorer = 0;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php")){
+ include_once("../ki_config/".$gallery."_ki_setup.php");
+ $configfile = "../ki_config/".$gallery."_ki_setup.php";
+} else {
+ $configfile = "../ki_config/ki_setup.php";
+}
+$galleryfolder = "../ki_galleries/".$gallery."/";
+$thumbsfolder = $galleryfolder."thumbs/";
+$commentsfolder = $galleryfolder."comments/";
+
+$temp = getimagesize("ki_nav_next.png");
+if($nav_always == 1 && $show_nav == 1)$fr_height -= ($temp[1]+18);
+if($th_lines == "auto")$th_lines = ceil($thumbs/($th_per_line));
+if($th_width == "auto")$th_width = round($fr_width/($th_per_line)) - round($fr_height*0.04) - 4;
+if($th_height == "auto")$th_height = round($fr_height/($th_lines)) - round($fr_height*0.04) - 4;
+$th_width = $th_width - 2*$th_bord_size;
+$th_height = $th_height - 2*$th_bord_size;
+if(($th_lines*$th_per_line) < $thumbs)$thumbs = $th_lines*$th_per_line;
+
+$zeile = 1;
+$spalte = 0;
+
+$spaltenbreite = $fr_width/($th_per_line);
+$zeilenhoehe = $fr_height/($th_lines);
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="koschtit_version" content="KoschtIT Image Gallery v3.1b by Konstantin Tabere" />
+<title>KoschtIT Image Gallery: <?php echo $gallery ?></title>
+<style type="text/css">
+a.nav:hover img{
+ top:-2px;
+}
+
+a.pic {
+ <?php if($th_to_square == 0) { ?>
+ line-height:<?php echo $th_height+$explorer_padding+2*$th_bord_size ?>px;
+ <?php } ?>
+}
+a.pic img {
+ border:<?php echo $th_bord_size ?>px solid <?php echo $th_bord_color ?>;
+ <?php if($explorer == 1)echo "margin:".(0.5*$explorer_padding)."px;" ?>
+ vertical-align:middle;
+}
+a.pic:hover img {
+ border-color:<?php echo $th_bord_hover_color ?>;
+ <?php if(in_array($browser, array("ie9", "opera", "gecko", "webkit"))){ ?>
+ box-shadow:0px 0px 10px #000;
+ <?php } ?>
+}
+</style>
+</head>
+<body style="background:<?php echo $fr_color ?>; padding:0px; margin:0px;">
+
+
+<?php
+
+/*------------------- error/warning checking ------------------*/
+if(!function_exists('imagecreatetruecolor')){
+ echo "<div style='background:#ffbbbb; color:#000000; padding:4px;'>ERROR: KoschtIT Image Gallery can't find the PHP GD2 Library available. Please make sure you have removed the semicolon from this line ';extension=php_gd2.dll' in your php.ini and the library is correctly installed.</div>";
+}
+if(!is_dir($galleryfolder)) {
+ echo "<div style='background:#ffbbbb; color:#000000; padding:4px;'>ERROR: KoschtIT Image Gallery can't find the following folder on the server: '".htmlentities($gallery)."' . Please check if the folder is available in the 'ki_galleries' folder.</div>";
+ exit();
+}
+if($pic_order == 3){
+ if(!function_exists("exif_read_data")){
+ $pic_order = 2;
+ }
+}
+/*------------------- end error/warning checking ------------------*/
+
+/*------------------- config settings ------------------*/
+$savefile = $gallery."_lastmodified";
+$lastmodified = filemtime($configfile);
+$saved = $fr_width.$fr_height.$thumbs.$th_per_line.$th_lines.$th_width.$th_height.$th_bord_size.$th_bord_hover_increase.$th_to_square.$th_2sq_crop_vert.$th_2sq_crop_hori.$show_nav.$nav_always;
+$writestring = "<?php\r\n\$lm_saved = \"".$saved."\";\r\n";
+$writestring .= "\$lm_lastmodified = ".$lastmodified.";\r\n?>";
+if(!file_exists($savefile))@file_put_contents($savefile, $writestring);
+if(!file_exists($savefile)) {
+ $thumbs_to_disk = 0;
+} else {
+ include_once($savefile);
+ if($lm_saved !== $saved){
+ @file_put_contents($savefile, $writestring);
+ $matches = @glob($thumbsfolder."*.*", GLOB_ERR);
+ if(is_array($matches)){
+ foreach($matches as $sf) {
+ if(!is_dir($sf) && !is_link($sf)){
+ @unlink($sf);
+ }
+ }
+ }
+ } else {
+ $lastmodified = $lm_lastmodified;
+ }
+}
+/*------------------- end config settings ------------------*/
+
+$files = array();
+$temp = array();
+$savedfolderhash = 0;
+if(is_file($gallery."_dir")){
+ $temp = explode(PHP_EOL, file_get_contents($gallery."_dir"));
+ $savedfolderhash = unserialize($temp[0]);
+}
+//$folderhash = pic_order + MTime of $galleryfolder + fileSize of all files
+$folderhash = $pic_order;
+$iterator = new DirectoryIterator($galleryfolder);
+foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ $folderhash += $fileInfo->getMTime();
+ continue;
+ } elseif($fileInfo->isFile()) {
+ $folderhash += $fileInfo->getSize();
+ }
+}
+if($folderhash != $savedfolderhash){
+ if($pic_order == 4 && sizeof($temp) > 1){
+ $files = unserialize($temp[1]);
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $newcandidate = array($file, $imgsize[0], $imgsize[1]);
+ if(!in_array($newcandidate, $files))$files[] = $newcandidate;
+ }
+ }
+ reset($files);
+ } else {
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $files[] = array($file, $imgsize[0], $imgsize[1]);
+ }
+ }
+ switch($pic_order){
+ case 0:
+ usort($files, "cmp_1");
+ break;
+ case 1:
+ usort($files, "cmp_0");
+ break;
+ case 2:
+ usort($files, "cmp_3");
+ break;
+ case 3:
+ usort($files, "cmp_2");
+ break;
+ default:
+ usort($files, "cmp_1");
+ break;
+ }
+ reset($files);
+ }
+} else {
+ $files = unserialize($temp[1]);
+}
+
+if($explorer == 1){
+ $temp = getimagesize("ki_nav_close.png");
+?>
+<div style="position:<?php echo $posfix ?>; left:50%; top:-20px; background:<?php echo $nav_color ?>; <?php if($nav_style == 2){ ?>border-radius:20px; -moz-border-radius:20px; -webkit-border-radius:20px;<?php } ?> border:2px solid <?php echo $nav_border_color ?>; z-index:10000; padding:22px 3px 3px 3px; margin-left:-<?php echo 0.5*($temp[0]+14) ?>px;">
+ <a class="nav" href="<?php echo $site ?>"><?php draw_image("ki_nav_close.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_kiv_close), ENT_QUOTES, "UTF-8")."'") ?></a>
+</div>
+<?php
+ echo "<div style='text-align:center; padding:".($explorer_padding*0.5)."px;'>";
+}
+
+
+$id = 0;
+foreach ($files as $file) {
+ $id++;
+ if($id > $startfrom) {
+
+ $spalte++;
+ if($spalte == $th_per_line+1){
+ $zeile++;
+ $spalte = 1;
+ }
+
+ $breite = $file[1];
+ $hoehe = $file[2];
+
+ if( ($breite / $hoehe) > 1){
+ $k = $hoehe / $breite;
+ $breite = $th_width;
+ $hoehe = $k*$breite;
+ if($hoehe > $th_height){
+ $hoehe = $th_height;
+ $breite = (1/$k) * $hoehe;
+ }
+ } else {
+ $k = $breite / $hoehe;
+ $hoehe = $th_height;
+ $breite = $k*$hoehe;
+ if($breite > $th_width){
+ $breite = $th_width;
+ $hoehe = (1/$k) * $breite;
+ }
+ }
+
+ if($th_to_square == 1) {
+ if($th_width < $th_height){
+ $breite = $th_width;
+ } else {
+ $breite = $th_height;
+ }
+ $hoehe = $breite;
+ }
+
+ $x_pos = round($spaltenbreite*($spalte - 0.5) - 0.5*$breite) - $th_bord_size;
+ $y_pos = round($zeilenhoehe*($zeile - 0.5) - 0.5*$hoehe) - $th_bord_size;
+
+ $breite = round($breite);
+ $hoehe = round($hoehe);
+
+ if($th_bord_hover_increase > 1){
+ $inc_breite = round($breite*$th_bord_hover_increase);
+ $inc_hoehe = round($breite*$th_bord_hover_increase);
+ } else {
+ $inc_breite = $breite;
+ $inc_hoehe = $hoehe;
+ }
+
+ if(($zeile <= $th_lines && ($id-$startfrom) <= $thumbs) || $explorer == 1)
+ {
+ $src = "ki_makepic.php?file=".$gallery."/".rawurlencode($file[0])."&width=".$inc_breite."&height=".$inc_hoehe;
+ $style = "width:".$breite."px; height:".$hoehe."px;";
+ $exp = "";
+ if($explorer == 0){
+ $style .= " position:absolute; left:".$x_pos."px; top:".$y_pos."px;";
+ } else {
+ $exp .= "&explorer=1";
+ }
+ if($thumbs_to_disk == 1){
+ if(!is_file($thumbsfolder.$lastmodified.$file[0])){
+ $src .= "&picname=".$lastmodified.rawurlencode($file[0]);
+ } else {
+ $src = "../ki_galleries/".$gallery."/thumbs/".$lastmodified.$file[0];
+ }
+ }
+ echo "<a class='pic' href='ki_nojsdisplayimage.php?fileno=".($id-1)."&gallery=".$gallery."&site=".$site.$exp."' target='_top'><img src='".$src."' style='".$style."' /></a>";
+ }
+ }
+}
+
+
+if($explorer == 0 && $show_nav == 1){
+ $breite = 0;
+ if($nav_pos === "right"){
+ $xpos = "right:3px;";
+ } elseif($nav_pos === "left"){
+ $xpos = "left:3px;";
+ } else {
+ $temp = getimagesize("ki_nav_close.png");
+ $temp = $temp[0]+4;
+ $breite = $temp;
+ if($slideshow == 1 && $id > 1)$breite += $temp;
+ if($startfrom != 0)$breite += $temp;
+ if(($id-$startfrom) > $thumbs)$breite += $temp;
+ $xpos = "left:50%; margin-left:-".(0.5*($breite+10))."px;";
+ }
+?>
+<div style="position:<?php echo $posfix ?>; <?php echo $xpos ?> bottom:4px; background:<?php echo $nav_color ?>; <?php if($nav_style == 2){ ?>border-radius:20px; -moz-border-radius:20px; -webkit-border-radius:20px;<?php } ?> border:2px solid <?php echo $nav_border_color ?>; z-index:10000; padding:3px;">
+<a class='nav' href='ki_nojs.php?gallery=<?php echo $gallery ?>&amp;site=<?php echo $site ?>&explorer=1' target='_top' style='float:left;'><?php draw_image("ki_nav_full.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_maxi), ENT_QUOTES, "UTF-8")."'") ?></a>
+<?php
+if($slideshow == 1 && $id > 1){
+?>
+<a class='nav' href='ki_nojsdisplayimage.php?fileno=0&amp;gallery=<?php echo $gallery ?>&amp;site=<?php echo $site ?>&ss=1' target='_top' style='float:left;'><?php draw_image("ki_nav_play.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($slideshow_start), ENT_QUOTES, "UTF-8")."'") ?></a>
+<?php
+}
+if($startfrom != 0){
+?>
+<a class='nav' href='ki_nojs.php?gallery=<?php echo $gallery ?>&amp;site=<?php echo $site ?>&startfrom=<?php echo ($startfrom-$thumbs) ?>' style='float:left;'><?php draw_image("ki_nav_prev.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_back), ENT_QUOTES, "UTF-8")."'") ?></a>
+<?php
+}
+if(($id-$startfrom) > $thumbs){
+?>
+<a class='nav' href='ki_nojs.php?gallery=<?php echo $gallery ?>&amp;site=<?php echo $site ?>&startfrom=<?php echo ($startfrom+$thumbs) ?>' style='float:left;'><?php draw_image("ki_nav_next.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_next), ENT_QUOTES, "UTF-8")."'") ?></a>
+<?php
+}
+?>
+</div>
+<?php
+}
+
+
+if($explorer == 1)echo "</div>";
+?>
+
+
+</body>
+</html> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojsdisplayimage.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojsdisplayimage.php
new file mode 100644
index 00000000..10a35720
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_nojsdisplayimage.php
@@ -0,0 +1,427 @@
+<?php
+ob_start("ob_gzhandler");
+
+/* --------------------------------------------------------- functions ------------------------------------------------------ */
+
+function draw_image($filename, $id, $style, $params) {
+ global $browser, $basedir;
+ $idstring = "";
+ if($id != "")$idstring = "id='".$id."' ";
+ if($browser == "ie6") {
+ $imgsize = getimagesize($filename);
+ echo "<img ".$idstring."style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=".$filename."); width:".$imgsize[0]."px; height:".$imgsize[1]."px; ".$style."' src='".$basedir."ki_noimage.gif' ".$params." />";
+ } else {
+ if($style != "")$style = " style='".$style."' ";
+ echo "<img ".$idstring."src='".$filename."'".$style.$params." />";
+ }
+}
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+function cmp_0($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) < filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_1($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) > filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_2($a, $b)
+{
+ global $galleryfolder;
+
+ $exif = @exif_read_data($galleryfolder.$a[0]);
+ $date1 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date1 = $exif['DateTimeOriginal'];
+ if (empty($date1) && isset($exif['DateTime']))
+ $date1 = $exif['DateTime'];
+ if (!empty($date1)){
+ $date1 = explode(':', str_replace(' ',':', $date1));
+ $date1 = "{$date1[0]}-{$date1[1]}-{$date1[2]} {$date1[3]}:{$date1[4]}";
+ if(sizeof($date1) > 5)$date1 .= ":{$date1[5]}";
+ $date1 = strtotime($date1);
+ } else {
+ $date1 = filemtime($galleryfolder.$a[0]);
+ }
+ $exif = @exif_read_data($galleryfolder.$b[0]);
+ $date2 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date2 = $exif['DateTimeOriginal'];
+ if (empty($date2) && isset($exif['DateTime']))
+ $date2 = $exif['DateTime'];
+ if (!empty($date2)){
+ $date2 = explode(':', str_replace(' ',':', $date2));
+ $date2 = "{$date2[0]}-{$date2[1]}-{$date2[2]} {$date2[3]}:{$date2[4]}";
+ if(sizeof($date2) > 5)$date2 .= ":{$date1[5]}";
+ $date2 = strtotime($date2);
+ } else {
+ $date2 = filemtime($galleryfolder.$b[0]);
+ }
+
+ return $date1 > $date2 ? 1 : -1;
+}
+
+function cmp_3($a, $b)
+{
+ return strcmp($a[0], $b[0]);
+}
+
+function is_utf8($str) {
+ $c=0; $b=0;
+ $bits=0;
+ $len=strlen($str);
+ for($i=0; $i<$len; $i++){
+ $c=ord($str[$i]);
+ if($c > 128){
+ if(($c >= 254)) return false;
+ elseif($c >= 252) $bits=6;
+ elseif($c >= 248) $bits=5;
+ elseif($c >= 240) $bits=4;
+ elseif($c >= 224) $bits=3;
+ elseif($c >= 192) $bits=2;
+ else return false;
+ if(($i+$bits) > $len) return false;
+ while($bits > 1){
+ $i++;
+ $b=ord($str[$i]);
+ if($b < 128 || $b > 191) return false;
+ $bits--;
+ }
+ }
+ }
+ return true;
+}
+
+function utf8_encode_safe($string){
+
+ if( is_utf8($string) )
+ return $string;
+ else
+ return utf8_encode($string);
+}
+
+/* ---------------------------------------------------------- end functions -------------------------------------------------- */
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+if($browser == "ie6")
+ $posfix = "absolute";
+else
+ $posfix = "fixed";
+
+/* --------------------------------------------------------- Display full image ---------------------------------------------------------------------- */
+
+@ini_set("default_charset", "utf-8");
+header('Content-type: text/html; charset=utf-8');
+
+if(isset($_GET['fileno']))
+ $fileno = $_GET['fileno'];
+else
+ exit;
+
+if(isset($_GET['gallery']))
+ $gallery = $_GET['gallery'];
+else
+ exit;
+
+if(isset($_GET['site']))
+ $site = $_GET['site'];
+else
+ exit;
+
+if(isset($_GET['explorer']))
+ $explorer = 1;
+else
+ $explorer = 0;
+
+if(isset($_GET['ss']))
+ $ss = 1;
+else
+ $ss = 0;
+
+// -------------- Sicherheitsabfragen!
+if(!is_int(intval($fileno)))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+$supported = array("jpg","png","gif");
+
+$galleryfolder = "../ki_galleries/".$gallery."/";
+
+/*------------------- error/warning checking ------------------*/
+if(!is_dir($galleryfolder)) {
+ echo "<div style='background:#ffbbbb; color:#000000; padding:4px;'>ERROR: KoschtIT Image Gallery could't find the following folder on the server: '".htmlentities($gallery)."' . Please check if the folder is available in the 'ki_galleries' folder.</div>";
+ exit();
+}
+if($pic_order == 3){
+ if(!function_exists("exif_read_data")){
+ $pic_order = 2;
+ }
+}
+/*------------------- end error/warning checking ------------------*/
+
+$files = array();
+$temp = array();
+$savedfolderhash = 0;
+if(is_file($gallery."_dir")){
+ $temp = explode(PHP_EOL, file_get_contents($gallery."_dir"));
+ $savedfolderhash = unserialize($temp[0]);
+}
+//$folderhash = pic_order + MTime of $galleryfolder + fileSize of all files
+$folderhash = $pic_order;
+$iterator = new DirectoryIterator($galleryfolder);
+foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ $folderhash += $fileInfo->getMTime();
+ continue;
+ } elseif($fileInfo->isFile()) {
+ $folderhash += $fileInfo->getSize();
+ }
+}
+if($folderhash != $savedfolderhash){
+ if($pic_order == 4 && sizeof($temp) > 1){
+ $files = unserialize($temp[1]);
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $newcandidate = array($file, $imgsize[0], $imgsize[1]);
+ if(!in_array($newcandidate, $files))$files[] = $newcandidate;
+ }
+ }
+ reset($files);
+ } else {
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $files[] = array($file, $imgsize[0], $imgsize[1]);
+ }
+ }
+ switch($pic_order){
+ case 0:
+ usort($files, "cmp_1");
+ break;
+ case 1:
+ usort($files, "cmp_0");
+ break;
+ case 2:
+ usort($files, "cmp_3");
+ break;
+ case 3:
+ usort($files, "cmp_2");
+ break;
+ default:
+ usort($files, "cmp_1");
+ break;
+ }
+ reset($files);
+ }
+} else {
+ $files = unserialize($temp[1]);
+}
+
+$file = $files[$fileno][0];
+
+$x = $files[$fileno][1];
+$y = $files[$fileno][2];
+
+$xlimiter = 10000;
+$ylimiter = 10000;
+if(is_int($max_pic_width)){
+ $xlimiter = $max_pic_width;
+}
+if(is_int($max_pic_height)){
+ $ylimiter = $max_pic_height;
+}
+if($y > $ylimiter || $x > $xlimiter){
+ if(($x / $y) > 1){
+ $k = $y / $x;
+ $x = $xlimiter-2*$bord_size;
+ $y = $k*$x;
+ if($y > $ylimiter-2*$bord_size){
+ $y = $ylimiter-2*$bord_size;
+ $x = (1/$k) * $y;
+ }
+ } else {
+ $k = $x / $y;
+ $y = $ylimiter-2*$bord_size;
+ $x = $k*$y;
+ if($x > $xlimiter-2*$bord_size){
+ $x = $xlimiter-2*$bord_size;
+ $y = (1/$k) * $x;
+ }
+ }
+ $x = round($x);
+ $y = round($y);
+}
+
+$commfile = "../ki_galleries/".$gallery."/comments/".substr($file, 0, -4).".txt";
+$srcfile = $gallery."/".$file;
+
+if($x != $files[$fileno][1] || $y != $files[$fileno][2]){
+ $srcfile = "ki_makepic.php?fullimg=1&file=".$srcfile."&width=".$x."&height=".$y;
+} else {
+ $srcfile = "../ki_galleries/".$srcfile;
+}
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="koschtit_version" content="KoschtIT Image Gallery v3.1b by Konstantin Tabere" />
+<?php
+$next = $fileno+1;
+if($next == count($files))$next = 0;
+if($ss == 1 && $slideshow == 1){
+?>
+<meta http-equiv="refresh" content="<?php echo $slideshow_time/1000 ?>; url=ki_nojsdisplayimage.php?fileno=<?php echo $next ?>&gallery=<?php echo $gallery ?>&site=<?php echo $site;if($explorer == 1)echo "&explorer=1"; ?>&ss=1">
+<?php
+}
+?>
+<title>KoschtIT Image Gallery: <?php echo $gallery ?></title>
+<style type="text/css">
+a.nav:hover img{
+ top:-2px;
+}
+</style>
+</head>
+<body style="background:<?php echo $fade_color ?>; padding:0px; margin:0px;">
+
+<?php
+if($show_image_nav == 1){
+ $temp = getimagesize("ki_nav_close.png");
+ if(count($files > 1))
+ $breite = ($temp[0]+4)*3;
+ else
+ $breite = ($temp[0]+4)*2;
+ if($downloadpics == 1)$breite += ($temp[0]+4);
+ if($slideshow == 1)$breite += ($temp[0]+4);
+?>
+<div style="position:<?php echo $posfix ?>; left:50%; top:-20px; background:<?php echo $nav_color ?>; <?php if($nav_style == 2){ ?>border-radius:20px; -moz-border-radius:20px; -webkit-border-radius:20px;<?php } ?> border:2px solid <?php echo $nav_border_color ?>; z-index:10000; padding:22px 3px 3px 3px; margin-left:-<?php echo 0.5*($breite+10) ?>px;">
+ <a class="nav" href="<?php echo ($explorer == 0) ? $site : "ki_nojs.php?gallery=".$gallery."&site=".$site."&explorer=1"; ?>" style="float:left;"><?php draw_image("ki_nav_close.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_kiv_close), ENT_QUOTES, "UTF-8")."'") ?></a>
+ <?php
+ if($slideshow == 1){
+ if($ss == 1){
+ $sstitle = $slideshow_stop;
+ $sspic = "ki_nav_stop";
+ $sshref = "?fileno=".$fileno."&gallery=".$gallery."&site=".$site;
+ } else {
+ $sstitle = $slideshow_start;
+ $sspic = "ki_nav_play";
+ $sshref = "?fileno=".$next."&gallery=".$gallery."&site=".$site."&ss=1";
+ }
+ if($explorer == 1)$sshref .= "&explorer=1";
+ ?>
+ <a class="nav" href="<?php echo $sshref ?>" style="float:left;"><?php draw_image($sspic.".png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($sstitle), ENT_QUOTES, "UTF-8")."'") ?></a>
+ <?php
+ }
+ ?>
+ <?php if($downloadpics == 1){ ?>
+ <a class="nav" href="ki_download.php?gallery=<?php echo $gallery ?>&file=<?php echo $file ?>" style="float:left;" target="_blank"><?php draw_image("ki_nav_download.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_kiv_download), ENT_QUOTES, "UTF-8")."'") ?></a>
+ <?php } ?>
+ <?php
+ $next = $fileno+1;
+ $prev = $fileno-1;
+ if(count($files) > 1){
+ if($next == count($files))$next = 0;
+ if($prev == -1)$prev = count($files)-1;
+ ?>
+ <a class="nav" href="?fileno=<?php echo $prev ?>&gallery=<?php echo $gallery ?>&site=<?php echo $site;if($explorer == 1)echo "&explorer=1"; ?>" style="float:left;"><?php draw_image("ki_nav_prev.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_kiv_back), ENT_QUOTES, "UTF-8")."'") ?></a>
+ <a class="nav" href="?fileno=<?php echo $next ?>&gallery=<?php echo $gallery ?>&site=<?php echo $site;if($explorer == 1)echo "&explorer=1"; ?>" style="float:left;"><?php draw_image("ki_nav_next.png", "", "display:block; border:0px; margin:0px 2px 0px 2px; position:relative;", "title='".htmlentities(stripslashes($nav_kiv_next), ENT_QUOTES, "UTF-8")."'") ?></a>
+ <?php
+ }
+ ?>
+</div>
+<?php
+}
+?>
+
+<div style="position:<?php echo $posfix ?>; left:50%; top:50%; margin-left:-<?php echo round($x*0.5+$bord_size) ?>px; margin-top:-<?php echo round($y*0.5+$bord_size) ?>px; width:<?php echo ($x+2*$bord_size) ?>px; height:<?php echo ($y+2*$bord_size) ?>px; background:<?php echo $bord_color ?>">
+<a href="?fileno=<?php echo $next ?>&gallery=<?php echo $gallery ?>&site=<?php echo $site;if($explorer == 1)echo "&explorer=1"; ?>" style="display:block; text-decoration:none;">
+<?php
+$addshadow = "";
+if(in_array($browser, array("ie9", "opera", "gecko", "webkit"))){
+$addshadow = "box-shadow:inset 0px 0px 10px #000; ";
+}
+echo "<img src='".$srcfile."' style='border:none; padding:".$bord_size."px;' /><div style='width:".$x."px; height:".$y."px; z-index:1000; ".$addshadow."position:absolute; top:0px; left:0px; border:".$bord_size."px solid ".$bord_color."'></div>";
+?>
+</a>
+<?php
+if(is_file($commfile)){
+ $comm = file_get_contents($commfile);
+} else {
+ $comm = "";
+}
+
+if($comm_auto == 1){
+ $comm = $comm_auto_string;
+ $comm = str_replace("%x", ($fileno+1), $comm);
+ $comm = str_replace("%X", count($files), $comm);
+ $comm = str_replace("%g", $gallery, $comm);
+ $comm = str_replace("%f", substr($file, 0, -4), $comm);
+}
+
+if($comments == 1){
+ if($comm != ""){
+ $pos = "left:0px;";
+ if($comm_text_align === "left"){
+ echo "<div style='position:absolute; left:0px; top:100%; background:".$bord_color."; padding:10px; overflow:hidden; font:".$comm_text_size."px ".$comm_text_font."; color:".$comm_text_color."; margin-top:5px; text-align:".$comm_text_align.";'>".utf8_encode_safe(stripslashes($comm))."</div>";
+ }elseif($comm_text_align === "right"){
+ echo "<div style='position:absolute; right:0px; top:100%; background:".$bord_color."; padding:10px; overflow:hidden; font:".$comm_text_size."px ".$comm_text_font."; color:".$comm_text_color."; margin-top:5px; text-align:".$comm_text_align.";'>".utf8_encode_safe(stripslashes($comm))."</div>";
+ }else{
+ echo "<div style='position:absolute; left:50%; top:100%;'><div style='position:relative; left:-50%; background:".$bord_color."; padding:10px; overflow:hidden; font:".$comm_text_size."px ".$comm_text_font."; color:".$comm_text_color."; margin-top:5px; text-align:".$comm_text_align.";'>".utf8_encode_safe(stripslashes($comm))."</div></div>";
+ }
+ }
+}
+?>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_online_docu.jpg b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_online_docu.jpg
new file mode 100644
index 00000000..be39a2c6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_online_docu.jpg
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_preview.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_preview.php
new file mode 100644
index 00000000..6298e9dc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_preview.php
@@ -0,0 +1,240 @@
+<?php
+ob_start("ob_gzhandler");
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [7-9]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+$reldir = "";
+if(isset($_POST['reldir']))$reldir = $_POST['reldir'];
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+function cmp_0($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) < filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_1($a, $b)
+{
+ global $galleryfolder;
+ return (filemtime($galleryfolder.$a[0]) > filemtime($galleryfolder.$b[0])) ? -1 : 1;
+}
+
+function cmp_2($a, $b)
+{
+ global $galleryfolder;
+
+ $exif = @exif_read_data($galleryfolder.$a[0]);
+ $date1 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date1 = $exif['DateTimeOriginal'];
+ if (empty($date1) && isset($exif['DateTime']))
+ $date1 = $exif['DateTime'];
+ if (!empty($date1)){
+ $date1 = explode(':', str_replace(' ',':', $date1));
+ $date1 = "{$date1[0]}-{$date1[1]}-{$date1[2]} {$date1[3]}:{$date1[4]}";
+ if(sizeof($date1) > 5)$date1 .= ":{$date1[5]}";
+ $date1 = strtotime($date1);
+ } else {
+ $date1 = filemtime($galleryfolder.$a[0]);
+ }
+ $exif = @exif_read_data($galleryfolder.$b[0]);
+ $date2 = "";
+ if (isset($exif['DateTimeOriginal']))
+ $date2 = $exif['DateTimeOriginal'];
+ if (empty($date2) && isset($exif['DateTime']))
+ $date2 = $exif['DateTime'];
+ if (!empty($date2)){
+ $date2 = explode(':', str_replace(' ',':', $date2));
+ $date2 = "{$date2[0]}-{$date2[1]}-{$date2[2]} {$date2[3]}:{$date2[4]}";
+ if(sizeof($date2) > 5)$date2 .= ":{$date1[5]}";
+ $date2 = strtotime($date2);
+ } else {
+ $date2 = filemtime($galleryfolder.$b[0]);
+ }
+
+ return $date1 > $date2 ? 1 : -1;
+}
+
+function cmp_3($a, $b)
+{
+ return strcmp($a[0], $b[0]);
+}
+
+//-------------------------------------------------------------------------- end functions --------------------------------------------------------------------------------
+
+
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else
+ exit;
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit;
+
+if(isset($_POST['topic']))
+ $topic = $_POST['topic'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+/*------------------- error/warning checking ------------------*/
+if($pic_order == 3){
+ if(!function_exists("exif_read_data")){
+ $pic_order = 2;
+ }
+}
+/*------------------- end error/warning checking ------------------*/
+
+$supported = array("jpg","png","gif");
+$galleryfolder = "../ki_galleries/".$gallery."/";
+if(!is_dir($galleryfolder))exit();
+
+$files = array();
+$temp = array();
+$savedfolderhash = 0;
+if(is_file($gallery."_dir")){
+ $temp = explode(PHP_EOL, file_get_contents($gallery."_dir"));
+ $savedfolderhash = unserialize($temp[0]);
+}
+//$folderhash = pic_order + MTime of $galleryfolder + fileSize of all files
+$folderhash = $pic_order;
+$iterator = new DirectoryIterator($galleryfolder);
+foreach ($iterator as $fileInfo) {
+ if($fileInfo->isDot()){
+ $folderhash += $fileInfo->getMTime();
+ continue;
+ } elseif($fileInfo->isFile()) {
+ $folderhash += $fileInfo->getSize();
+ }
+}
+if($folderhash != $savedfolderhash){
+ if($pic_order == 4 && sizeof($temp) > 1){
+ $files = unserialize($temp[1]);
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $file = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($file, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$file);
+ if($imgsize[0]){
+ $newcandidate = array($file, $imgsize[0], $imgsize[1]);
+ if(!in_array($newcandidate, $files))$files[] = $newcandidate;
+ }
+ }
+ reset($files);
+ } else {
+ $iterator->rewind();
+ foreach ($iterator as $fileInfo) {
+ $tfile = $fileInfo->getFilename();
+ if(!in_array(strtolower(substr($tfile, -3)), $supported))$continue;
+ $imgsize = @getimagesize($galleryfolder.$tfile);
+ if($imgsize[0]){
+ $files[] = array($tfile, $imgsize[0], $imgsize[1]);
+ }
+ }
+ switch($pic_order){
+ case 0:
+ usort($files, "cmp_1");
+ break;
+ case 1:
+ usort($files, "cmp_0");
+ break;
+ case 2:
+ usort($files, "cmp_3");
+ break;
+ case 3:
+ usort($files, "cmp_2");
+ break;
+ default:
+ usort($files, "cmp_1");
+ break;
+ }
+ reset($files);
+ }
+} else {
+ $files = unserialize($temp[1]);
+}
+
+$id = -1;
+foreach ($files as $picfile) {
+ $id++;
+ if($picfile[0] == $file){
+ break;
+ }
+}
+
+$gesbreite = 0;
+
+if($topic == 1){
+ $id++;
+ for($i = 0; $i < $preview_pics; $i++){
+ if($id + $i >= count($files))break;
+ $srcfile = $basedir."ki_makepic.php?file=".$gallery."/".rawurlencode($files[$id+$i][0]);
+ $y = 100;
+ $x = floor($files[$id+$i][1]/$files[$id+$i][2]*100);
+ $gesbreite += $x + 4;
+ echo "<img src='".$srcfile."' style='float:left; display:block; margin:0px 2px 0px 2px; border:0px; padding:0px; cursor:pointer; visibility:hidden; width:".$x."px; height:".$y."px;' onclick=\"kiv.getImage(-1, ".($id+$i).")\" onload=\"this.style.visibility='visible'\" />";
+
+ }
+} else {
+ $id--;
+ for($i = 0; $i < $preview_pics; $i++){
+ if($id - $i < 0)break;
+ $srcfile = $basedir."ki_makepic.php?file=".$gallery."/".rawurlencode($files[$id-$i][0]);
+ $y = 100;
+ $x = floor($files[$id-$i][1]/$files[$id-$i][2]*100);
+ $gesbreite += $x + 4;
+ echo "<img src='".$srcfile."' style='float:right; display:block; margin:0px 2px 0px 2px; border:0px; padding:0px; cursor:pointer; visibility:hidden; width:".$x."px; height:".$y."px;' onclick=\"kiv.getImage(-1, ".($id-$i).")\" onload=\"this.style.visibility='visible'\" />";
+ }
+}
+
+echo "<input id='gesbreite' type='hidden' value='".($gesbreite)."' />";
+?>
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savecomment.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savecomment.php
new file mode 100644
index 00000000..365f6d5b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savecomment.php
@@ -0,0 +1,65 @@
+<?php
+session_start();
+
+/* --------------------------------------------------------- functions ------------------------------------------------------ */
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+/* ---------------------------------------------------------- end functions -------------------------------------------------- */
+
+include_once("../ki_config/ki_setup.php");
+
+if (get_magic_quotes_gpc()) {
+ function stripslashes_gpc(&$value)
+ {
+ $value = stripslashes($value);
+ }
+ array_walk_recursive($_GET, 'stripslashes_gpc');
+ array_walk_recursive($_POST, 'stripslashes_gpc');
+ array_walk_recursive($_COOKIE, 'stripslashes_gpc');
+ array_walk_recursive($_REQUEST, 'stripslashes_gpc');
+}
+
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else
+ exit;
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+if(isset($_POST['comment']))
+ $comment = addslashes(rawurldecode($_POST['comment']));
+else
+ $comment = "";
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+if($pwok == 1){
+ $commfile = "../ki_galleries/".$gallery."/comments/".substr($file, 0, -4).".txt";
+ file_put_contents($commfile, $comment);
+}
+?>
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_saveneworder.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_saveneworder.php
new file mode 100644
index 00000000..3aa7eaec
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_saveneworder.php
@@ -0,0 +1,129 @@
+<?php
+session_start();
+
+/* --------------------------------------------------------- functions ------------------------------------------------------ */
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+/* ---------------------------------------------------------- end functions -------------------------------------------------- */
+
+include_once("../ki_config/ki_setup.php");
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit;
+
+if(isset($_POST['oldpos']))
+ $oldpos = intval($_POST['oldpos']);
+else
+ exit;
+
+if(isset($_POST['newpos']))
+ $newpos = intval($_POST['newpos']);
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $gallery))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+if($pwok == 1){
+
+ $files = array();
+ $temp = array();
+ $newfiles = array();
+ $savedfolderhash = 0;
+ if(is_file($gallery."_dir")){
+ $temp = explode(PHP_EOL, file_get_contents($gallery."_dir"));
+ $savedfolderhash = unserialize($temp[0]);
+ $files = unserialize($temp[1]);
+
+ if($oldpos > $newpos){
+ for($i = 0; $i < sizeof($files); $i++){
+ if($i < $newpos || $i > $oldpos){
+ $newfiles[] = $files[$i];
+ continue;
+ }
+ if($i == $newpos){
+ $newfiles[] = $files[$oldpos];
+ continue;
+ }
+ if($i <= $oldpos){
+ $newfiles[] = $files[$i-1];
+ continue;
+ }
+ }
+ } else {
+ for($i = 0; $i < sizeof($files); $i++){
+ if($i < $oldpos || $i > $newpos){
+ $newfiles[] = $files[$i];
+ continue;
+ }
+ if($i < $newpos){
+ $newfiles[] = $files[$i+1];
+ continue;
+ }
+ if($i == $newpos){
+ $newfiles[] = $files[$oldpos];
+ continue;
+ }
+ }
+ }
+
+ if(@file_put_contents($gallery."_dir", serialize($savedfolderhash).PHP_EOL.serialize($newfiles)) > 0){
+ $setupfile = "../ki_config/".$gallery."_ki_setup.php";
+ $params = "";
+ if(is_file($setupfile)){
+ $temp = explode(PHP_EOL, file_get_contents($setupfile));
+ $set = 0;
+ for($i = 1; $i < sizeof($temp) - 1; $i++){
+ if(strpos($temp[$i], "\$pic_order") !== FALSE){
+ $params .= "\$pic_order = 4;\r\n";
+ $set = 1;
+ } else {
+ $params .= $temp[$i]."\r\n";
+ }
+ }
+ if($set == 0){
+ $params .= "\$pic_order = 4;\r\n";
+ }
+ } else {
+ $params = "\$pic_order = 4;\r\n";
+ }
+ $params = "<?php\r\n".$params."?>";
+ if(@file_put_contents($setupfile, $params) > 0){
+ echo "ok";
+ }
+ }
+
+ }
+
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savesquarethumb.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savesquarethumb.php
new file mode 100644
index 00000000..28f1993d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_savesquarethumb.php
@@ -0,0 +1,101 @@
+<?php
+session_start();
+
+//----------------------------------------------------------------------------- functions --------------------------------------------------------------------------------
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+//-------------------------------------------------------------------------- end functions --------------------------------------------------------------------------------
+
+include_once("../ki_config/ki_setup.php");
+
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else
+ exit();
+
+if(isset($_POST['pos']))
+ $pos = $_POST['pos'];
+else
+ exit();
+
+$gallery = substr($file, 0, strpos($file, "/"));
+$file = substr($file, strpos($file, "/")+1);
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+if($pwok == 1){
+ if(is_file("../ki_config/".$gallery."_ki_setup.php")){
+ include_once("../ki_config/".$gallery."_ki_setup.php");
+ $configfile = "../ki_config/".$gallery."_ki_setup.php";
+ } else {
+ $configfile = "../ki_config/ki_setup.php";
+ }
+
+ /*------------------- change config settings ------------------*/
+ $savefile = $gallery."_lastmodified";
+ $writestring = "<?php\r\n\$lm_saved = \"1\";\r\n";
+ $writestring .= "\$lm_lastmodified = \"1\";\r\n?>";
+ @file_put_contents($savefile, $writestring);
+ $oldcontent = file_get_contents($configfile);
+ if(substr($oldcontent, -1) === "\n"){
+ $oldcontent = substr($oldcontent, 0, -1);
+ } else {
+ $oldcontent .= "\n";
+ }
+ @file_put_contents($configfile, $oldcontent);
+ /*------------------- end change config settings ------------------*/
+
+ $picname = $gallery."_".$file;
+ if(!is_file("custom")){
+ @file_put_contents("custom", $picname."=".$pos);
+ } else {
+ $content = @file_get_contents("custom");
+ $pictures = explode("|", $content);
+ $newcontent = "";
+ $found = 0;
+ for($i = 0; $i < count($pictures); $i++){
+ if(strpos($pictures[$i], $picname) !== FALSE){
+ $pictures[$i] = $picname."=".$pos;
+ $found = 1;
+ }
+ $newcontent .= $pictures[$i]."|";
+ }
+ if($found == 0){
+ $newcontent .= $picname."=".$pos."|";
+ }
+ $newcontent = substr($newcontent, 0, -1);
+ @file_put_contents("custom", $newcontent);
+ }
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_shade.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_shade.php
new file mode 100644
index 00000000..ff203826
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_shade.php
@@ -0,0 +1,41 @@
+<?php
+include("../ki_config/ki_setup.php");
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [7-9]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+header("Content-type: image/png"); //Picture Format
+header("Expires: Mon, 01 Jul 2003 00:00:00 GMT"); // Past date
+header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Consitnuously modified
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Pragma: no-cache"); // NO CACHE
+
+if($browser === "ie6"){
+ $bild = imagecreatetruecolor(1, 1);
+} else {
+ $bild = imagecreate(2880, 1800);
+}
+imagealphablending($bild, false);
+imagesavealpha($bild, true);
+$r = hexdec(substr($fade_color, 1, 2));
+$g = hexdec(substr($fade_color, 3, 2));
+$b = hexdec(substr($fade_color, 5, 2));
+$farbe = imagecolorallocatealpha($bild, $r, $g, $b, ((10-$fade_alpha)/10)*127);
+if($browser === "ie6"){
+ ImageFilledRectangle($bild,0,0,1,1,$farbe);
+} else {
+ ImageFilledRectangle($bild,0,0,2880,1800,$farbe);
+}
+imagepng($bild);
+imagedestroy($bild);
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_upload.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_upload.php
new file mode 100644
index 00000000..afd72d8b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_upload.php
@@ -0,0 +1,243 @@
+<?php
+session_start();
+
+include_once("../ki_config/ki_setup.php");
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw || $_SESSION['pwquery'] === $userpw)$pwok = 1;
+}
+
+if($pwok == 1){
+ $supported = array("jpg","png","gif", "jpeg");
+
+ if(is_uploaded_file($_FILES['pic']['tmp_name'])){
+
+ $thefile = $_FILES['pic'];
+
+ if(isset($_POST['watermark'])){
+ $target_name = "../ki_base/ki_watermark.pic";
+ $temp = explode('.', strtolower($thefile['name']));
+ if(in_array($temp[1], $supported)){
+ if(move_uploaded_file($thefile['tmp_name'], $target_name)){
+?>
+<script>
+parent.kiu.uploadedWatermark();
+</script>
+<?php
+ }
+ }
+ } else {
+
+ if(!isset($_POST['dir']))
+ exit();
+ else
+ $dir = $_POST['dir'];
+
+ if(!isset($_POST['addwatermark']))
+ exit();
+ else
+ $addwatermak = intval($_POST['addwatermark']);
+
+ // -------------- Sicherheitsabfragen!
+ if(preg_match("/[\.]*\//", $dir))exit();
+ // ---------- Ende Sicherheitsabfragen!
+
+ if(is_file("../ki_config/".$dir."_ki_setup.php"))include_once("../ki_config/".$dir."_ki_setup.php");
+
+ $target_path = "../ki_galleries/".$dir."/";
+ $temp = explode('.', strtolower($thefile['name']));
+ if(in_array($temp[1], $supported)){
+ if($temp[1] === "jpeg")$temp[1] = "jpg";
+ $target_name = $target_path.$temp[0].".".$temp[1]; // Endgltige Pfad+Name
+ if(move_uploaded_file($thefile['tmp_name'], $target_name)){
+
+ // Load the image where the logo will be embeded into
+ switch($temp[1]){
+ case "jpg":
+ $image = imagecreatefromjpeg($target_name);
+ break;
+ case "png":
+ $image = imagecreatefrompng($target_name);
+ break;
+ case "gif":
+ $image = imagecreatefromgif($target_name);
+ break;
+ }
+ imagealphablending($image, true);
+ imagesavealpha($image, true);
+
+ // Get dimensions
+ $imageWidth = imagesx($image);
+ $imageHeight = imagesy($image);
+ $imageWidth_o = $imageWidth;
+ $imageHeight_o = $imageHeight;
+
+ if($addwatermak == 1){
+ if(is_file("../ki_base/ki_watermark.pic")){
+ // Load the logo image
+ $logoImage = imagecreatefrompng("../ki_base/ki_watermark.pic");
+ if(!$logoImage){
+ $logoImage = imagecreatefromjpeg("../ki_base/ki_watermark.pic");
+ }
+ if(!$logoImage){
+ $logoImage = imagecreatefromgif("../ki_base/ki_watermark.pic");
+ }
+ if(!$logoImage){
+ exit();
+ }
+ imagealphablending($logoImage, true);
+ imagesavealpha($logoImage, true);
+
+ $logoWidth = imagesx($logoImage);
+ $logoHeight = imagesy($logoImage);
+ $logoWidth_o = $logoWidth;
+ $logoHeight_o = $logoHeight;
+
+ if($watermark_size > 0){
+ $logoAspect = $logoWidth / $logoHeight;
+
+ if($imageWidth > $imageHeight){
+ $wide = 1;
+ } else {
+ $wide = 0;
+ }
+
+ if($logoWidth > $logoHeight){
+ $logoWide = 1;
+ } else {
+ $logoWide = 0;
+ }
+
+ if($wide == 1){
+ if($logoWide == 1){
+ $logoWidth = round($watermark_size * $imageWidth);
+ $logoHeight = round((1/$logoAspect) * $logoWidth);
+ if($logoHeight > $imageHeight){
+ $logoHeight = round($watermark_size * $imageHeight);
+ $logoWidth = round($logoAspect * $logoHeight);
+ }
+ } else {
+ $logoHeight = round($watermark_size * $imageHeight);
+ $logoWidth = round($logoAspect * $logoHeight);
+ }
+ } else {
+ if($logoWide == 0){
+ $logoHeight = round($watermark_size * $imageHeight);
+ $logoWidth = round($logoAspect * $logoHeight);
+ if($logoWidth > $imageWidth){
+ $logoWidth = round($watermark_size * $imageWidth);
+ $logoHeight = round((1/$logoAspect) * $logoWidth);
+ } else {
+ $logoWidth = round($watermark_size * $imageWidth);
+ $logoHeight = round((1/$logoAspect) * $logoWidth);
+ }
+ }
+ }
+ }
+
+ switch($watermark_vert){
+ case "top":
+ $starty = 0;
+ break;
+ case "middle";
+ $starty = round(($imageHeight - $logoHeight)*0.5);
+ break;
+ case "bottom":
+ $starty = $imageHeight-$logoHeight;
+ break;
+ }
+ switch($watermark_hori){
+ case "left":
+ $startx = 0;
+ break;
+ case "center";
+ $startx = round(($imageWidth - $logoWidth)*0.5);
+ break;
+ case "right":
+ $startx = $imageWidth-$logoWidth;
+ break;
+ }
+
+ // Paste the logo
+ imagecopyresampled($image, $logoImage, $startx, $starty, 0, 0, $logoWidth, $logoHeight, $logoWidth_o, $logoHeight_o);
+
+ imageDestroy($logoImage);
+ }
+ }
+
+ $maxx = 10000;
+ $maxy = 10000;
+ if(isset($_POST['maxx'])){
+ if(intval($_POST['maxx']) > 0)$maxx = intval($_POST['maxx']);
+ }
+ if(isset($_POST['maxy'])){
+ if(intval($_POST['maxy']) > 0)$maxy = intval($_POST['maxy']);
+ }
+
+ $aspect = $imageWidth / $imageHeight;
+
+ if($aspect > 1){
+ if($imageWidth > $maxx){
+ $imageWidth = $maxx;
+ $imageHeight = round((1/$aspect) * $imageWidth);
+ }
+ if($imageHeight > $maxy){
+ $imageHeight = $maxy;
+ $imageWidth = round($aspect * $imageHeight);
+ }
+ } else {
+ if($imageHeight > $maxy){
+ $imageHeight = $maxy;
+ $imageWidth = round($aspect * $imageHeight);
+ }
+ if($imageWidth > $maxx){
+ $imageWidth = $maxx;
+ $imageHeight = round((1/$aspect) * $imageWidth);
+ }
+ }
+
+ if($imageWidth_o != $imageWidth || $imageHeight_o != $imageHeight){
+ $bild = imagecreatetruecolor($imageWidth, $imageHeight);
+ imagealphablending($bild, false);
+ imagesavealpha($bild, true);
+ imagecopyresampled($bild, $image, 0, 0, 0, 0, $imageWidth, $imageHeight, $imageWidth_o, $imageHeight_o);
+ switch($temp[1]){
+ case "jpg":
+ imagejpeg($bild, $target_name, 80);
+ break;
+ case "png":
+ imagepng($bild, $target_name);
+ break;
+ case "gif":
+ imagegif($bild, $target_name);
+ break;
+ }
+ imageDestroy($bild);
+ } else {
+ if($addwatermak == 1){
+ // Save image
+ switch($temp[1]){
+ case "jpg":
+ imagejpeg($image, $target_name, 80);
+ break;
+ case "png":
+ imagepng($image, $target_name);
+ break;
+ case "gif":
+ imagegif($image, $target_name);
+ break;
+ }
+ }
+ }
+
+ // Release memory
+ imageDestroy($image);
+
+ echo "done";
+ }
+ }
+ }
+ }
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_vcomm.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_vcomm.php
new file mode 100644
index 00000000..78b73cc0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/ki_vcomm.php
@@ -0,0 +1,221 @@
+<?php
+session_start();
+
+/* --------------------------------------------------------- functions ------------------------------------------------------ */
+
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename) {
+ if ($handle = @fopen($filename, 'rb')) {
+ $data = fread($handle, filesize($filename));
+ fclose($fh);
+ return $data;
+ }
+ }
+}
+
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+function sendAmail($to, $betreff, $content){
+
+ $content = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
+<html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title>".$betreff."</title></head><body><div style=\"font:13px Arial,Verdana,sans-serif;\">".nl2br($content)."</div></body></html>";
+
+ $header = "MIME-Version: 1.0\n";
+ $header .= "Content-type: text/html; charset=UTF-8\n";
+ $header .= "Content-Transfer-Encoding: 8bit\n";
+ $header .= "From: ".$admin_mail_from."\n";
+ //$header .= "Reply-To: ".$admin_mail_from."\n";
+
+ // verschicke die E-Mail
+ @ini_set(sendmail_from, $admin_mail_from);
+ @mail($to, $betreff, $content, $header);
+ @ini_restore(sendmail_from);
+}
+
+
+
+/* ---------------------------------------------------------- end functions -------------------------------------------------- */
+
+if (get_magic_quotes_gpc()) {
+ function stripslashes_gpc(&$value)
+ {
+ $value = stripslashes($value);
+ }
+ array_walk_recursive($_GET, 'stripslashes_gpc');
+ array_walk_recursive($_POST, 'stripslashes_gpc');
+ array_walk_recursive($_COOKIE, 'stripslashes_gpc');
+ array_walk_recursive($_REQUEST, 'stripslashes_gpc');
+}
+
+if(isset($_POST['file']))
+ $file = rawurldecode($_POST['file']);
+else
+ exit;
+
+if(isset($_POST['gallery']))
+ $gallery = $_POST['gallery'];
+else
+ exit;
+
+// -------------- Sicherheitsabfragen!
+if(preg_match("/[\.]*\//", $file))exit();
+if(preg_match("/[\.]*\//", $gallery))exit();
+if(!is_file("../ki_galleries/".$gallery."/".$file))exit();
+// ---------- Ende Sicherheitsabfragen!
+
+include_once("../ki_config/ki_setup.php");
+if(is_file("../ki_config/".$gallery."_ki_setup.php"))include_once("../ki_config/".$gallery."_ki_setup.php");
+
+$pwok = 0;
+if(isset($_SESSION['pwquery'])){
+ if($_SESSION['pwquery'] === $pw)$pwok = 1;
+}
+
+$commfile = "../ki_galleries/".$gallery."/viewercomments/".substr($file, 0, -4).".txt";
+
+if(!isset($_POST['get'])){
+
+ if(isset($_POST['email']))
+ $name = addslashes(htmlentities(rawurldecode($_POST['email']), ENT_QUOTES, "UTF-8"));
+ else
+ exit;
+
+ if(isset($_POST['assystem']))
+ $comment = addslashes(htmlentities(rawurldecode($_POST['assystem']), ENT_QUOTES, "UTF-8"));
+ else
+ exit;
+
+ if(isset($_POST['address']))
+ $address = rawurldecode($_POST['address']);
+ else
+ exit;
+
+ if (!ini_get('date.timezone') && function_exists("date_default_timezone_set"))date_default_timezone_set('Europe/Berlin');
+
+ if( stripos($name, "@") !== false ){
+ echo "2";
+ exit();
+ }
+
+ $ip = $_SERVER["REMOTE_ADDR"];
+ $date = date("m/d/Y");
+ $time = date('H').":".date('i');
+
+ $moderate = "";
+ if($moderate_posts == 1)$moderate = "._.1";
+ $post = $name."._.".$date."._.".$time."._.".$ip.$moderate."\r\n".$comment."\r\n:_:\r\n";
+
+ $oldcomments = "";
+ if(is_file($commfile)){
+ $oldcomments = file_get_contents($commfile);
+ $handle = @fopen($commfile, "r");
+ if($handle) {
+ $lastcomment = fgets($handle);
+ $data = explode("._.", $lastcomment, 4);
+ $lastip = rtrim($data[3]);
+ $lastdate = $data[1];
+ $lasttime = substr($data[2], 0, 2)*60+substr($data[2], 3, 2);
+ $newtime = substr($time, 0, 2)*60+substr($time, 3, 2);
+ if($lastip === $ip && $lastdate === $date){
+ if($newtime - $lasttime < 3){
+ echo "1";
+ exit();
+ }
+ }
+ }
+ fclose($handle);
+ }
+ file_put_contents($commfile, $post);
+ if($oldcomments !== ""){
+ file_put_contents($commfile, $oldcomments, FILE_APPEND);
+ }
+
+ if($admin_mail != 0){
+ $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
+ $address = "http".$s."://".$address;
+ $message = stripslashes($comment);
+
+ $betreff = "New comment on picture (".$_SERVER['HTTP_HOST'].")";
+ if($moderate_posts == 1){
+ $content = "A new comment has been made for one of your images. Visit '<a href='".$address."'>".$address."</a>' and flip the picture to read all comments for this image.\nThis is the last comment:\n\n\"".$message."\"\n\nThis comment is moderated and is not readable in public yet. You have the option publish this comment when you login as admin.\n\n\n<small>E-Mail generated by KoschtIT Image Gallery.\n<a href='http://koschtit.tabere.net/en/'>http://koschtit.tabere.net/en/</a></small>";
+ } else {
+ $content = "A new comment has been made for one of your images. Visit '<a href='".$address."'>".$address."</a>' and flip the picture to read all comments for this image.\nThis is the last comment:\n\n\"".$message."\"\n\n\n<small>E-Mail generated by KoschtIT Image Gallery.\n<a href='http://koschtit.tabere.net/en/'>http://koschtit.tabere.net/en/</a></small>";
+ }
+ sendAmail($admin_mail_to, $betreff, $content);
+ }
+}
+
+if(isset($_POST['counter']) || isset($_POST['publish'])){
+ $newfile = "";
+}
+$counter = 0;
+$handle = @fopen($commfile, "r");
+if($handle) {
+ while(!feof($handle)){
+ $head = fgets($handle);
+ $headdata = explode("._.", $head);
+ $comment = "";
+ while($acommentline = fgets($handle)){
+ if($acommentline === ":_:\r\n")break;
+ $comment .= $acommentline;
+ }
+ if(sizeof($headdata) == 4 || ($pwok == 1 && sizeof($headdata) == 5)){
+ $buttons = "";
+ if($pwok == 1){
+ if(isset($_POST['publish'])){
+ if($counter == $_POST['publish']){
+ array_pop($headdata);
+ $newfile .= $headdata[0]."._.".$headdata[1]."._.".$headdata[2]."._.".$headdata[3]."\r\n".$comment.":_:\r\n";
+ } else {
+ $newfile .= $head.$comment.":_:\r\n";
+ }
+ }
+ $buttons = "<input type='button' value='Delete' style='float:right; margin:0px; padding:0px; cursor:pointer; border:1px solid #000; height:26px; width:100px; background:#bd8b8b; color:#fff;' onclick='kiv.deleteVComm(".$counter.")' />";
+ if($moderate_posts == 1 && sizeof($headdata) == 5)$buttons .= "<input type='button' value='Publish' style='float:right; margin:0px; padding:0px; margin-right:10px; cursor:pointer; border:1px solid #000; height:26px; width:100px; background:#658342; color:#fff;' onclick='kiv.publishVComm(".$counter.")' />";
+ }
+ $skip = 0;
+ if(isset($_POST['counter'])){
+ if($_POST['counter'] != $counter){
+ $newfile .= $head.$comment.":_:\r\n";
+ } else {
+ $skip = 1;
+ }
+ }
+ if($skip == 0){
+?>
+<div style='margin:0px 0px 5px 0px; padding:4px; text-align:left; <?php if($counter != 0)echo "margin-top:10px;" ?>'><?php echo nl2br(stripslashes($comment)) ?></div><div style='font-size:10px; text-align:left; padding:0px 0px 10px 0px;'>&raquo; <span style='padding-left:0px; margin-bottom:10px; color:<?php echo $vcomm_timedate_color ?>;'><?php echo $headdata[1] ?> <?php echo $headdata[2] ?> </span><?php echo $buttons.stripslashes($headdata[0]) ?></div>
+<?php
+ }
+ $counter++;
+ }
+ }
+ fclose($handle);
+} else {
+ echo "<p style='margin-top:20px; text-align:center; font-weight:bold;'>".$vcomm_ncy."</p>";
+}
+if(isset($_POST['counter']) || isset($_POST['publish'])){
+ if($pwok == 1){
+ if(strlen($newfile) > 2){
+ file_put_contents($commfile, $newfile);
+ } else {
+ @unlink($commfile);
+ echo "<p style='margin-top:20px; text-align:center; font-weight:bold;'".$vcomm_ncy."</p>";
+ }
+ }
+}
+?>
+
+
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_dir b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_dir
new file mode 100644
index 00000000..18896e28
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_dir
@@ -0,0 +1,2 @@
+i:2707615525;
+a:16:{i:0;a:3:{i:0;s:20:"iskolahomlokzat1.jpg";i:1;i:1865;i:2;i:2592;}i:1;a:3:{i:0;s:22:"iskolahomlokzat1-k.jpg";i:1;i:187;i:2;i:260;}i:2;a:3:{i:0;s:9:"terem.jpg";i:1;i:2189;i:2;i:1406;}i:3;a:3:{i:0;s:11:"terem-k.jpg";i:1;i:219;i:2;i:141;}i:4;a:3:{i:0;s:12:"folyoso3.jpg";i:1;i:1894;i:2;i:1398;}i:5;a:3:{i:0;s:14:"folyoso3-k.jpg";i:1;i:189;i:2;i:140;}i:6;a:3:{i:0;s:14:"konyvtar-k.jpg";i:1;i:170;i:2;i:165;}i:7;a:3:{i:0;s:12:"konyvtar.jpg";i:1;i:1704;i:2;i:1649;}i:8;a:3:{i:0;s:12:"folyoso2.jpg";i:1;i:1519;i:2;i:1719;}i:9;a:3:{i:0;s:15:"hatsolepcso.jpg";i:1;i:1209;i:2;i:1986;}i:10;a:3:{i:0;s:17:"hatsolepcso-k.jpg";i:1;i:121;i:2;i:199;}i:11;a:3:{i:0;s:14:"folyoso2-k.jpg";i:1;i:152;i:2;i:172;}i:12;a:3:{i:0;s:14:"folyoso1-k.jpg";i:1;i:124;i:2;i:176;}i:13;a:3:{i:0;s:12:"folyoso1.jpg";i:1;i:1240;i:2;i:1757;}i:14;a:3:{i:0;s:16:"elsolepcso-k.jpg";i:1;i:158;i:2;i:190;}i:15;a:3:{i:0;s:14:"elsolepcso.jpg";i:1;i:1588;i:2;i:1909;}} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_lastmodified b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_lastmodified
new file mode 100644
index 00000000..eb79d55a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/kos-epulet_lastmodified
@@ -0,0 +1,4 @@
+<?php
+$lm_saved = "948300147210912451.21middlecenter10";
+$lm_lastmodified = 1351903878;
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_dir b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_dir
new file mode 100644
index 00000000..5975e58f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_dir
@@ -0,0 +1,2 @@
+i:2703855617;
+a:3:{i:0;a:3:{i:0;s:19:"mayor-vasarely4.png";i:1;i:400;i:2;i:400;}i:1;a:3:{i:0;s:7:"ml1.png";i:1;i:295;i:2;i:196;}i:2;a:3:{i:0;s:13:"mm-bw-pro.png";i:1;i:500;i:2;i:253;}} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_lastmodified b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_lastmodified
new file mode 100644
index 00000000..61d1a8d0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_base/mayor logo_lastmodified
@@ -0,0 +1,4 @@
+<?php
+$lm_saved = "9483001472109124510middlecenter10";
+$lm_lastmodified = 1351902692;
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/ki_setup.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/ki_setup.php
new file mode 100644
index 00000000..da86d1bf
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/ki_setup.php
@@ -0,0 +1,96 @@
+<?php
+$fr_width = 640;
+$fr_height = 300;
+$fr_color = "#666666";
+$thumbs = 14;
+$th_per_line = 7;
+$th_lines = "auto";
+$th_width = "auto";
+$th_height = "auto";
+$th_bord_size = 5;
+$th_bord_color = "#ffffff";
+$th_bord_hover_color = "#bbbbbb";
+$th_bord_hover_increase = 1.2;
+$th_shadow = 1;
+$th_to_square = 1;
+$th_2sq_crop_hori = "center";
+$th_2sq_crop_vert = "middle";
+$thumbs_to_disk = 1;
+$pic_order = 3;
+$resize_auto = 1;
+$bord_size = 10;
+$bord_color = "#ffffff";
+$max_pic_width = "none";
+$max_pic_height = 0.75;
+$oversize_allowed = 0;
+$comments = 1;
+$comm_text_size = 12;
+$comm_text_color = "#000000";
+$comm_text_font = "Tahoma, sans-serif";
+$comm_text_align = "left";
+$comm_auto = 0;
+$comm_auto_string = "Picture %x of %X Filename: %f, Gallery: %g";
+$viewercomments = 1;
+$moderate_posts = 0;
+$vcomm_header_color = "#000000";
+$vcomm_box_color = "#000000";
+$vcomm_text_color = "#000000";
+$vcomm_timedate_color = "#888888";
+$vcomm_back_color = "none";
+$vcomm_bord_color = "#888888";
+$vcomm_horline_color = "#888888";
+$slideshow = 1;
+$downloadpics = 1;
+$checkgps = 1;
+$cellinfo = 0;
+$show_nav = 1;
+$nav_always = 0;
+$nav_pos = "right";
+$nav_color = "#ffffff";
+$nav_border_color = "#000000";
+$nav_style = 1;
+$show_image_nav = 1;
+$image_nav_always = 0;
+$show_share = 1;
+$show_help = 1;
+$help_pos = "left";
+$show_preview = 1;
+$preview_style = 1;
+$preview_pics = 6;
+$show_explorer = 1;
+$explorer_padding = 50;
+$watermark_hori = "right";
+$watermark_vert = "bottom";
+$watermark_size = 0;
+$fade_color = "#000000";
+$fade_alpha = 8;
+$shade_while_loading = 0;
+$disable_animation = 0;
+$slideshow_time = 4000;
+$nav_next = "Next page";
+$nav_back = "Previous page";
+$nav_maxi = "Maximize gallery";
+$nav_kiv_next = "Next picture";
+$nav_kiv_back = "Previous picture";
+$nav_kiv_close = "Close";
+$nav_gps_coord = "Show location on map";
+$nav_kiv_vcomm = "Add/See viewer comments";
+$nav_kiv_download = "Download full resolution picture";
+$slideshow_start = "Start slideshow";
+$slideshow_stop = "Stop slideshow";
+$help_text = "Move your mouse [mouse] beyond the sides of the image to see what image comes next/was last in the gallery. If you move your mouse even further to the border of the window you can see the next/last couple of images. Move your mouse up to the top to view navigation controls and move it down to see a link address of the picture displayed.";
+$vcomm_lac = "Leave a comment";
+$vcomm_name = "Name";
+$vcomm_comm = "Comment";
+$vcomm_post = "Post comment";
+$vcomm_clk = "Click on the image to flip back to the full image.";
+$vcomm_ncy = "No comments yet.";
+$admin_mail = 0;
+$admin_mail_from = "support@vmg.sulinet.hu";
+$admin_mail_to = $admin_mail_from;
+$show_warnings = 0;
+$user = "user22";
+$userpw = "5f4dcc3b5aa765d61d8327deb882cf99";
+$admin = "admin22";
+$pw = "5f4dcc3b5aa765d61d8327deb882cf99";
+?>
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/kos-epulet_ki_setup.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/kos-epulet_ki_setup.php
new file mode 100644
index 00000000..a92dea52
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_config/kos-epulet_ki_setup.php
@@ -0,0 +1,96 @@
+<?php
+$fr_width = 948;
+$fr_height = 300;
+$fr_color = "#66f";
+$thumbs = 8;
+$th_per_line = 4;
+$th_lines = "auto";
+$th_width = "auto";
+$th_height = "auto";
+$th_bord_size = 5;
+$th_bord_color = "#ffffff";
+$th_bord_hover_color = "#bbbbbb";
+$th_bord_hover_increase = 1.2;
+$th_shadow = 1;
+$th_to_square = 1;
+$th_2sq_crop_hori = "center";
+$th_2sq_crop_vert = "middle";
+$thumbs_to_disk = 1;
+$pic_order = 3;
+$resize_auto = 1;
+$bord_size = 10;
+$bord_color = "#ffffff";
+$max_pic_width = "none";
+$max_pic_height = 0.75;
+$oversize_allowed = 0;
+$comments = 1;
+$comm_text_size = 12;
+$comm_text_color = "#000000";
+$comm_text_font = "Tahoma, sans-serif";
+$comm_text_align = "left";
+$comm_auto = 0;
+$comm_auto_string = "KoschtIT Image Gallery - Picture %x of %X Filename: %f, Gallery: %g";
+$viewercomments = 1;
+$moderate_posts = 0;
+$vcomm_header_color = "#000000";
+$vcomm_box_color = "#000000";
+$vcomm_text_color = "#000000";
+$vcomm_timedate_color = "#888888";
+$vcomm_back_color = "none";
+$vcomm_bord_color = "#888888";
+$vcomm_horline_color = "#888888";
+$slideshow = 1;
+$downloadpics = 1;
+$checkgps = 1;
+$cellinfo = 0;
+$show_nav = 1;
+$nav_always = 0;
+$nav_pos = "right";
+$nav_color = "#ffffff";
+$nav_border_color = "#000000";
+$nav_style = 1;
+$show_image_nav = 1;
+$image_nav_always = 0;
+$show_share = 1;
+$show_help = 1;
+$help_pos = "left";
+$show_preview = 1;
+$preview_style = 1;
+$preview_pics = 6;
+$show_explorer = 1;
+$explorer_padding = 50;
+$watermark_hori = "right";
+$watermark_vert = "bottom";
+$watermark_size = 0;
+$fade_color = "#000000";
+$fade_alpha = 8;
+$shade_while_loading = 0;
+$disable_animation = 0;
+$slideshow_time = 4000;
+$nav_next = "Next page";
+$nav_back = "Previous page";
+$nav_maxi = "Maximize gallery";
+$nav_kiv_next = "Next picture";
+$nav_kiv_back = "Previous picture";
+$nav_kiv_close = "Close";
+$nav_gps_coord = "Show location on map";
+$nav_kiv_vcomm = "Add/See viewer comments";
+$nav_kiv_download = "Download full resolution picture";
+$slideshow_start = "Start slideshow";
+$slideshow_stop = "Stop slideshow";
+$help_text = "Move your mouse [mouse] beyond the sides of the image to see what image comes next/was last in the gallery. If you move your mouse even further to the border of the window you can see the next/last couple of images. Move your mouse up to the top to view navigation controls and move it down to see a link address of the picture displayed.";
+$vcomm_lac = "Leave a comment";
+$vcomm_name = "Name";
+$vcomm_comm = "Comment";
+$vcomm_post = "Post comment";
+$vcomm_clk = "Click on the image to flip back to the full image.";
+$vcomm_ncy = "No comments yet.";
+$admin_mail = 0;
+$admin_mail_from = "admin@localhost";
+$admin_mail_to = "admin@localhost";
+$show_warnings = 0;
+$user = "user";
+$userpw = "5f4dcc3b5aa765d61d8327deb882cf99";
+$admin = "admin";
+$pw = "5f4dcc3b5aa765d61d8327deb882cf99";
+?>
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_include.php b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_include.php
new file mode 100644
index 00000000..db30e454
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/ki_include.php
@@ -0,0 +1,306 @@
+<?php
+$reldir = $_SERVER['PHP_SELF'];
+$basedir = $_SERVER['SCRIPT_FILENAME'];
+$confdir = __FILE__;
+
+$reldir = explode("/", dirname(trim(str_replace("\\", "/", $reldir), "/")));
+$basedir = explode("/", dirname(trim(str_replace("\\", "/", $basedir), "/")));
+$confdir = explode("/", dirname(trim(str_replace("\\", "/", $confdir), "/")));
+
+$reldirsize = count($reldir);
+$basedirsize = count($basedir);
+$confdirsize = count($confdir);
+
+$foundat = -1;
+$reldir = "";
+
+for($i = $basedirsize - 1; $i >= $basedirsize - $reldirsize - 1 && $i >= 0; $i--){
+ for($j = $confdirsize - 1; $j >= 0; $j--){
+ if($basedir[$i] === $confdir[$j]){
+ $foundat = $j;
+ break;
+ }
+ }
+ if($foundat != -1)
+ break;
+ else
+ $reldir .= "../";
+}
+
+if($foundat != -1){
+ for($i = $foundat + 1; $i < $confdirsize; $i++){
+ $reldir .= $confdir[$i]."/";
+ }
+} else {
+
+// Enter the relative path here, if the script asks you to. Example: $reldir = "../script/";
+$reldir = "";
+// ----------------------------------------------------------------------------------------
+
+}
+
+if (!function_exists('file_put_contents')) {
+ function file_put_contents($filename, $data) {
+ $f = @fopen($filename, 'w');
+ if (!$f) {
+ return false;
+ } else {
+ $bytes = fwrite($f, $data);
+ fclose($f);
+ return $bytes;
+ }
+ }
+}
+
+$browser = $_SERVER['HTTP_USER_AGENT'];
+
+if(preg_match("/Opera/",$browser))
+ $browser = "opera";
+elseif(preg_match("/MSIE [9]/",$browser))
+ $browser = "ie9";
+elseif(preg_match("/MSIE [7-8]/",$browser))
+ $browser = "ie7";
+elseif(preg_match("/MSIE [1-6]/",$browser))
+ $browser = "ie6";
+elseif(preg_match("/AppleWebKit/",$browser))
+ $browser = "webkit";
+else
+ $browser = "gecko";
+
+$confdir = $reldir."ki_config/";
+$galleriesdir = $reldir."ki_galleries/";
+$basedir = $reldir."ki_base/";
+
+if(!is_file($basedir."ki_js_view.php")){
+?>
+<script type="text/javascript">
+alert("ERROR: KoschtIT Image Gallery couldn't find the path to the script folder. Please enter the relative path from '<?php echo $_SERVER['PHP_SELF'] ?>' to the folder where the 'ki_config' folder is, into the 'ki_include.php' on line 37.");
+</script>
+<?php
+} else {
+ $def_fr_width = 948;
+ $def_fr_height = 300;
+ $def_fr_color = "#666666";
+ $def_thumbs = 14;
+ $def_th_per_line = 7;
+ $def_th_lines = "auto";
+ $def_th_width = "auto";
+ $def_th_height = "auto";
+ $def_th_bord_size = 5;
+ $def_th_bord_color = "#ffffff";
+ $def_th_bord_hover_color = "#bbbbbb";
+ $def_th_bord_hover_increase = 1.2;
+ $def_th_shadow = 1;
+ $def_th_to_square = 1;
+ $def_th_2sq_crop_hori = "center";
+ $def_th_2sq_crop_vert = "middle";
+ $def_thumbs_to_disk = 1;
+ $def_pic_order = 2;
+ $def_resize_auto = 1;
+ $def_bord_size = 10;
+ $def_bord_color = "#ffffff";
+ $def_max_pic_width = "none";
+ $def_max_pic_height = 0.75;
+ $def_oversize_allowed = 0;
+ $def_comments = 1;
+ $def_comm_text_size = 12;
+ $def_comm_text_color = "#000000";
+ $def_comm_text_font = "Tahoma, sans-serif";
+ $def_comm_text_align = "left";
+ $def_comm_auto = 0;
+ $def_comm_auto_string = "KoschtIT Image Gallery - Picture %x of %X Filename: %f, Gallery: %g";
+ $def_viewercomments = 1;
+ $def_moderate_posts = 0;
+ $def_vcomm_header_color = "#000000";
+ $def_vcomm_box_color = "#000000";
+ $def_vcomm_text_color = "#000000";
+ $def_vcomm_timedate_color = "#888888";
+ $def_vcomm_back_color = "none";
+ $def_vcomm_bord_color = "#888888";
+ $def_vcomm_horline_color = "#888888";
+ $def_slideshow = 1;
+ $def_downloadpics = 1;
+ $def_checkgps = 1;
+ $def_cellinfo = 0;
+ $def_show_nav = 1;
+ $def_nav_always = 0;
+ $def_nav_pos = "right";
+ $def_nav_color = "#ffffff";
+ $def_nav_border_color = "#000000";
+ $def_nav_style = 1;
+ $def_show_image_nav = 1;
+ $def_image_nav_always = 0;
+ $def_show_share = 1;
+ $def_show_help = 1;
+ $def_help_pos = "left";
+ $def_show_preview = 1;
+ $def_preview_style = 1;
+ $def_preview_pics = 6;
+ $def_show_explorer = 1;
+ $def_explorer_padding = 50;
+ $def_watermark_hori = "right";
+ $def_watermark_vert = "bottom";
+ $def_watermark_size = 0;
+ $def_fade_color = "#000000";
+ $def_fade_alpha = 8;
+ $def_shade_while_loading = 0;
+ $def_disable_animation = 0;
+ $def_slideshow_time = 4000;
+ $def_nav_next = "Next page";
+ $def_nav_back = "Previous page";
+ $def_nav_maxi = "Maximize gallery";
+ $def_nav_kiv_next = "Next picture";
+ $def_nav_kiv_back = "Previous picture";
+ $def_nav_kiv_close = "Close";
+ $def_nav_gps_coord = "Show location on map";
+ $def_nav_kiv_vcomm = "Add/See viewer comments";
+ $def_nav_kiv_download = "Download full resolution picture";
+ $def_slideshow_start = "Start slideshow";
+ $def_slideshow_stop = "Stop slideshow";
+ $def_help_text = "Move your mouse [mouse] beyond the sides of the image to see what image comes next/was last in the gallery. If you move your mouse even further to the border of the window you can see the next/last couple of images. Move your mouse up to the top to view navigation controls and move it down to see a link address of the picture displayed.";
+ $def_vcomm_lac = "Leave a comment";
+ $def_vcomm_name = "Name";
+ $def_vcomm_comm = "Comment";
+ $def_vcomm_post = "Post comment";
+ $def_vcomm_clk = "Click on the image to flip back to the full image.";
+ $def_vcomm_ncy = "No comments yet.";
+ $def_admin_mail = 0;
+ $def_admin_mail_from = "admin@localhost";
+ $def_admin_mail_to = "admin@localhost";
+ $def_show_warnings = 1;
+ $def_user = "user";
+ $def_userpw = "5f4dcc3b5aa765d61d8327deb882cf99";
+ $def_admin = "admin";
+ $def_pw = "5f4dcc3b5aa765d61d8327deb882cf99";
+
+ $global_start = -1;
+ $global_length = -1;
+ $global_count = -1;
+
+ reset($GLOBALS);
+ while (list($key, $val) = each($GLOBALS)) {
+ $global_count++;
+ if($global_start == -1){
+ if($key === "def_fr_width"){
+ $global_start = $global_count;
+ continue;
+ }
+ }
+ if($global_length == -1){
+ if($key === "global_start"){
+ $global_length = $global_count - $global_start;
+ break;
+ }
+ }
+ }
+
+ if(!is_file($confdir."ki_setup.php")){
+?>
+<script type="text/javascript">
+alert("ERROR: KoschtIT Image Gallery couldn't find the main config file 'ki_setup.php' in the 'ki_config' folder. A new 'ki_setup.php'-file with the default parameters has been created. Please change your username and password.");
+</script>
+<?php
+ } else {
+ include($confdir."ki_setup.php");
+ }
+
+ $switchtodefaults = 0;
+ $params = "";
+ reset($GLOBALS);
+ for($i = 0; $i < $global_start; $i++)next($GLOBALS);
+ for($i = 0; $i < $global_length; $i++){
+ list($key, $val) = each($GLOBALS);
+ $param = substr($key, 4);
+ if(!isset($GLOBALS[$param])){
+ $switchtodefaults = 1;
+ if(!is_numeric($val))$val = "\"".addslashes($val)."\"";
+ $params .= "\$$param = $val;\r\n";
+ } else {
+ $val = $GLOBALS[$param];
+ if($param === "pw"){
+ if(strlen($val) != 32){
+ $switchtodefaults = 1;
+ $val = md5($val);
+ }
+ }
+ if(!is_numeric($val))$val = "\"".addslashes($val)."\"";
+ $params .= "\$$param = $val;\r\n";
+ }
+ }
+
+ if($switchtodefaults == 1){
+ $params = "<?php\r\n".$params."?>";
+ if(!@file_put_contents($confdir."ki_setup.php", $params)){
+?>
+<script type="text/javascript">
+alert("ERROR: Your 'ki_setup.php' does not match this script version. Please grant writing permission to the 'ki_config'-folder and reload this site to finish the upgrade procedure.");
+</script>
+<?php
+ exit();
+ }
+
+ include($confdir."ki_setup.php");
+ }
+
+ $access = "?reldir=".$reldir;
+ if(isset($_GET['admin'])){
+ $access .= "&admin=".$_GET['admin'];
+ }
+ if(isset($_GET['user'])){
+ $access .= "&user=".$_GET['user'];
+ }
+?>
+<meta name="koschtit_version" content="KoschtIT Image Gallery v3.1b by Konstantin Tabere" />
+<script type="text/javascript" src="<?php echo $basedir ?>ki_js_framework.php<?php echo $access ?>"></script>
+<?php
+if(isset($_GET['kit_code']))
+ $kitcode = $_GET['kit_code'];
+else
+ $kitcode = "";
+
+ if($kitcode !== ""){
+?>
+<script type="text/javascript">
+ function kit_opensharedpic(){
+ kib.getImage("<?php echo $kitcode ?>");
+ }
+</script>
+<?php
+ }
+ ob_start("jsdisabled");
+}
+
+function jsdisabled($buffer){
+ global $basedir, $confdir, $galleriesdir, $browser;
+ global $fr_width, $fr_height, $fr_color, $text_size, $text_color, $text_font;
+ @chdir(dirname((strstr($_SERVER["SCRIPT_FILENAME"], $_SERVER["PHP_SELF"]) ? $_SERVER["SCRIPT_FILENAME"] : $_SERVER["PATH_TRANSLATED"])));
+ preg_match_all("|(<div[^>]+class\s*=\s*[\"'][^>]*koschtitgallery[^>]*[\"'][^>]*)>.*</div>|U", $buffer, $out, PREG_PATTERN_ORDER);
+ $navimgsize = getimagesize($basedir."ki_nav_next.png");
+ if(is_array($out)){
+ if(is_array($out[0])){
+ for($i = 0; $i < count($out[0]); $i++){
+ if(preg_match("|<div[^>]+title\s*=\s*[\"']([^>]+)[\"'][^>]*>|U", $out[0][$i], $temp)){
+ $titlefound = $temp[1];
+ include($confdir."ki_setup.php");
+ if(is_file($confdir.$titlefound."_ki_setup.php"))
+ include($confdir.$titlefound."_ki_setup.php");
+ $stylestring = "position:relative; padding:0px; width:".$fr_width."px; min-height:".$fr_height."px; background:".$fr_color.";";
+ if($show_nav == 1 && $nav_always == 0)$fr_height += ($navimgsize[1]+18);
+ $noscript = "<object type='application/xhtml+xml' data='".$basedir."ki_nojs.php?gallery=".$titlefound."&amp;site=".$_SERVER['REQUEST_URI']."' width='".$fr_width."' height='".$fr_height."'>";
+ if(in_array($browser, array("ie6", "ie7"))){
+ $noscript = "<!--[if IE]><iframe src='".$basedir."ki_nojs.php?gallery=".$titlefound."&amp;site=".$_SERVER['REQUEST_URI']."' style='width:".$fr_width."px; height:".$fr_height."px;' frameborder='0'></iframe><!--[if IE]>";
+ }
+ $noscript .= "</object>";
+ if(preg_match("|(<div[^>]+style\s*=\s*[\"'])([^>]+)([\"'][^>]*>)|U", $out[0][$i], $temp)){
+ $buffer = str_replace($out[0][$i], $temp[1].$temp[2]."; ".$stylestring.$temp[3]."<noscript>".$noscript."</noscript></div>", $buffer);
+ } else {
+ $buffer = str_replace($out[0][$i], $out[1][$i]." style='".$stylestring."'><noscript>".$noscript."</noscript></div>", $buffer);
+ }
+ }
+ }
+ }
+ }
+
+ return $buffer;
+}
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/koschtit/readme.txt b/mayor-orig/www/skin/classic/share/javascript/koschtit/readme.txt
new file mode 100644
index 00000000..7b505237
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/koschtit/readme.txt
@@ -0,0 +1,61 @@
+ KoschtIT Image Gallery
+ by Konstantin Tabere
+
+
+ Latest version
+ --------------
+
+ The most recent script version can be downloaded at <http://koschtit.tabere.net/en/>.
+ Beta versions will be available in the script forum.
+
+
+ Documentation
+ -------------
+
+ The script documentation is also available online at <http://koschtit.tabere.net/en/documentation/install>.
+ If you want to add the script to your website, follow these steps:
+
+ 1. Upload the script to your webserver. Please note, that the script needs PHP5 with GD2 enabled.
+
+ 2. Set the correct DOCTYPE for your webpage on the first line of your source code.
+ If you have HTML use:
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+ If you have XHTML use:
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+ 3. Add: <?php include_once("...../ki_include.php"); ?> into your header ( between <head> and </head> ).
+ Make sure the path to the "ki_include.php" is entered correctly.
+
+ 4. Add: <div class="koschtitgallery" title="sample"></div> to the spot where your gallery should be.
+ Edit 'title' to specify which gallery folder you want to display.
+
+ 5. Create gallery folders inside the "ki_galleries"-folder. For each new gallery a seperate folder is neccessary.
+ This is the place where your images will go to. A "sample" gallery comes with this package.
+
+ 6. You can open the admin panel for each gallery directly on your website. Therefore add an additional parameter "?admin=admin" to the url
+ e.g. "http://somedomain.com/mygallery/?admin=admin". Login to the admin panel with the default password: "password"
+
+ 7. Change the default admin/user-username and password for both admins and users in the "Settings"-menu. Now you can upload your images either through the "Upload Images"-menu
+ or if you want you can use a FTP-client.
+
+ 8. Edit further parameters through the "Settings"-menu. The "ki_setup.php" - config file is applied to all galleries. If you want to make
+ custom settings for individual galleries you will need to select the "galleryfolder_ki_setup.php" - config file.
+
+ 9. You can label pictures (image descriptions) when logged in as admin. Therefore just open the picture and write your text in the box
+ below the image. To save the picture comments press 'CTRL + Enter'.
+
+ If the script gives you warning messages you can disable them with the "$show_warnings"-parameter.
+
+
+ Licensing
+ ---------
+
+ The script is free and available for everyone without limitations. If you are using the script in a commercial project a donation
+ would be strongly appreciated. You can make a Donation via PayPal (they also accept credit cards) on my website <http://koschtit.tabere.net/en/>.
+
+
+ Contact
+ -------
+
+ If you want to contact me write me an E-mail to: kkokus [at] web [dot] de .
+ Please use the forum at <http://koschtit.tabere.net/forum/> in case you need script support.
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/MIT-LICENSE b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/MIT-LICENSE
new file mode 100644
index 00000000..b5e74b40
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/builder.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/builder.js
new file mode 100644
index 00000000..73250380
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/builder.js
@@ -0,0 +1,136 @@
+// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+var Builder = {
+ NODEMAP: {
+ AREA: 'map',
+ CAPTION: 'table',
+ COL: 'table',
+ COLGROUP: 'table',
+ LEGEND: 'fieldset',
+ OPTGROUP: 'select',
+ OPTION: 'select',
+ PARAM: 'object',
+ TBODY: 'table',
+ TD: 'table',
+ TFOOT: 'table',
+ TH: 'table',
+ THEAD: 'table',
+ TR: 'table'
+ },
+ // note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken,
+ // due to a Firefox bug
+ node: function(elementName) {
+ elementName = elementName.toUpperCase();
+
+ // try innerHTML approach
+ var parentTag = this.NODEMAP[elementName] || 'div';
+ var parentElement = document.createElement(parentTag);
+ try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
+ parentElement.innerHTML = "<" + elementName + "></" + elementName + ">";
+ } catch(e) {}
+ var element = parentElement.firstChild || null;
+
+ // see if browser added wrapping tags
+ if(element && (element.tagName.toUpperCase() != elementName))
+ element = element.getElementsByTagName(elementName)[0];
+
+ // fallback to createElement approach
+ if(!element) element = document.createElement(elementName);
+
+ // abort if nothing could be created
+ if(!element) return;
+
+ // attributes (or text)
+ if(arguments[1])
+ if(this._isStringOrNumber(arguments[1]) ||
+ (arguments[1] instanceof Array) ||
+ arguments[1].tagName) {
+ this._children(element, arguments[1]);
+ } else {
+ var attrs = this._attributes(arguments[1]);
+ if(attrs.length) {
+ try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
+ parentElement.innerHTML = "<" +elementName + " " +
+ attrs + "></" + elementName + ">";
+ } catch(e) {}
+ element = parentElement.firstChild || null;
+ // workaround firefox 1.0.X bug
+ if(!element) {
+ element = document.createElement(elementName);
+ for(attr in arguments[1])
+ element[attr == 'class' ? 'className' : attr] = arguments[1][attr];
+ }
+ if(element.tagName.toUpperCase() != elementName)
+ element = parentElement.getElementsByTagName(elementName)[0];
+ }
+ }
+
+ // text, or array of children
+ if(arguments[2])
+ this._children(element, arguments[2]);
+
+ return $(element);
+ },
+ _text: function(text) {
+ return document.createTextNode(text);
+ },
+
+ ATTR_MAP: {
+ 'className': 'class',
+ 'htmlFor': 'for'
+ },
+
+ _attributes: function(attributes) {
+ var attrs = [];
+ for(attribute in attributes)
+ attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) +
+ '="' + attributes[attribute].toString().escapeHTML().gsub(/"/,'&quot;') + '"');
+ return attrs.join(" ");
+ },
+ _children: function(element, children) {
+ if(children.tagName) {
+ element.appendChild(children);
+ return;
+ }
+ if(typeof children=='object') { // array can hold nodes and text
+ children.flatten().each( function(e) {
+ if(typeof e=='object')
+ element.appendChild(e);
+ else
+ if(Builder._isStringOrNumber(e))
+ element.appendChild(Builder._text(e));
+ });
+ } else
+ if(Builder._isStringOrNumber(children))
+ element.appendChild(Builder._text(children));
+ },
+ _isStringOrNumber: function(param) {
+ return(typeof param=='string' || typeof param=='number');
+ },
+ build: function(html) {
+ var element = this.node('div');
+ $(element).update(html.strip());
+ return element.down();
+ },
+ dump: function(scope) {
+ if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope
+
+ var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " +
+ "BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " +
+ "FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+
+ "KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+
+ "PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+
+ "TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);
+
+ tags.each( function(tag){
+ scope[tag] = function() {
+ return Builder.node.apply(Builder, [tag].concat($A(arguments)));
+ };
+ });
+ }
+}; \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/controls.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/controls.js
new file mode 100644
index 00000000..5137ab51
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/controls.js
@@ -0,0 +1,965 @@
+// script.aculo.us controls.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+// (c) 2005-2010 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
+// (c) 2005-2010 Jon Tirsen (http://www.tirsen.com)
+// Contributors:
+// Richard Livsey
+// Rahul Bhargava
+// Rob Wills
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+// Autocompleter.Base handles all the autocompletion functionality
+// that's independent of the data source for autocompletion. This
+// includes drawing the autocompletion menu, observing keyboard
+// and mouse events, and similar.
+//
+// Specific autocompleters need to provide, at the very least,
+// a getUpdatedChoices function that will be invoked every time
+// the text inside the monitored textbox changes. This method
+// should get the text for which to provide autocompletion by
+// invoking this.getToken(), NOT by directly accessing
+// this.element.value. This is to allow incremental tokenized
+// autocompletion. Specific auto-completion logic (AJAX, etc)
+// belongs in getUpdatedChoices.
+//
+// Tokenized incremental autocompletion is enabled automatically
+// when an autocompleter is instantiated with the 'tokens' option
+// in the options parameter, e.g.:
+// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' });
+// will incrementally autocomplete with a comma as the token.
+// Additionally, ',' in the above example can be replaced with
+// a token array, e.g. { tokens: [',', '\n'] } which
+// enables autocompletion on multiple tokens. This is most
+// useful when one of the tokens is \n (a newline), as it
+// allows smart autocompletion after linebreaks.
+
+if(typeof Effect == 'undefined')
+ throw("controls.js requires including script.aculo.us' effects.js library");
+
+var Autocompleter = { };
+Autocompleter.Base = Class.create({
+ baseInitialize: function(element, update, options) {
+ element = $(element);
+ this.element = element;
+ this.update = $(update);
+ this.hasFocus = false;
+ this.changed = false;
+ this.active = false;
+ this.index = 0;
+ this.entryCount = 0;
+ this.oldElementValue = this.element.value;
+
+ if(this.setOptions)
+ this.setOptions(options);
+ else
+ this.options = options || { };
+
+ this.options.paramName = this.options.paramName || this.element.name;
+ this.options.tokens = this.options.tokens || [];
+ this.options.frequency = this.options.frequency || 0.4;
+ this.options.minChars = this.options.minChars || 1;
+ this.options.onShow = this.options.onShow ||
+ function(element, update){
+ if(!update.style.position || update.style.position=='absolute') {
+ update.style.position = 'absolute';
+ Position.clone(element, update, {
+ setHeight: false,
+ offsetTop: element.offsetHeight
+ });
+ }
+ Effect.Appear(update,{duration:0.15});
+ };
+ this.options.onHide = this.options.onHide ||
+ function(element, update){ new Effect.Fade(update,{duration:0.15}) };
+
+ if(typeof(this.options.tokens) == 'string')
+ this.options.tokens = new Array(this.options.tokens);
+ // Force carriage returns as token delimiters anyway
+ if (!this.options.tokens.include('\n'))
+ this.options.tokens.push('\n');
+
+ this.observer = null;
+
+ this.element.setAttribute('autocomplete','off');
+
+ Element.hide(this.update);
+
+ Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this));
+ Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this));
+ },
+
+ show: function() {
+ if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update);
+ if(!this.iefix &&
+ (Prototype.Browser.IE) &&
+ (Element.getStyle(this.update, 'position')=='absolute')) {
+ new Insertion.After(this.update,
+ '<iframe id="' + this.update.id + '_iefix" '+
+ 'style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" ' +
+ 'src="javascript:false;" frameborder="0" scrolling="no"></iframe>');
+ this.iefix = $(this.update.id+'_iefix');
+ }
+ if(this.iefix) setTimeout(this.fixIEOverlapping.bind(this), 50);
+ },
+
+ fixIEOverlapping: function() {
+ Position.clone(this.update, this.iefix, {setTop:(!this.update.style.height)});
+ this.iefix.style.zIndex = 1;
+ this.update.style.zIndex = 2;
+ Element.show(this.iefix);
+ },
+
+ hide: function() {
+ this.stopIndicator();
+ if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update);
+ if(this.iefix) Element.hide(this.iefix);
+ },
+
+ startIndicator: function() {
+ if(this.options.indicator) Element.show(this.options.indicator);
+ },
+
+ stopIndicator: function() {
+ if(this.options.indicator) Element.hide(this.options.indicator);
+ },
+
+ onKeyPress: function(event) {
+ if(this.active)
+ switch(event.keyCode) {
+ case Event.KEY_TAB:
+ case Event.KEY_RETURN:
+ this.selectEntry();
+ Event.stop(event);
+ case Event.KEY_ESC:
+ this.hide();
+ this.active = false;
+ Event.stop(event);
+ return;
+ case Event.KEY_LEFT:
+ case Event.KEY_RIGHT:
+ return;
+ case Event.KEY_UP:
+ this.markPrevious();
+ this.render();
+ Event.stop(event);
+ return;
+ case Event.KEY_DOWN:
+ this.markNext();
+ this.render();
+ Event.stop(event);
+ return;
+ }
+ else
+ if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN ||
+ (Prototype.Browser.WebKit > 0 && event.keyCode == 0)) return;
+
+ this.changed = true;
+ this.hasFocus = true;
+
+ if(this.observer) clearTimeout(this.observer);
+ this.observer =
+ setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000);
+ },
+
+ activate: function() {
+ this.changed = false;
+ this.hasFocus = true;
+ this.getUpdatedChoices();
+ },
+
+ onHover: function(event) {
+ var element = Event.findElement(event, 'LI');
+ if(this.index != element.autocompleteIndex)
+ {
+ this.index = element.autocompleteIndex;
+ this.render();
+ }
+ Event.stop(event);
+ },
+
+ onClick: function(event) {
+ var element = Event.findElement(event, 'LI');
+ this.index = element.autocompleteIndex;
+ this.selectEntry();
+ this.hide();
+ },
+
+ onBlur: function(event) {
+ // needed to make click events working
+ setTimeout(this.hide.bind(this), 250);
+ this.hasFocus = false;
+ this.active = false;
+ },
+
+ render: function() {
+ if(this.entryCount > 0) {
+ for (var i = 0; i < this.entryCount; i++)
+ this.index==i ?
+ Element.addClassName(this.getEntry(i),"selected") :
+ Element.removeClassName(this.getEntry(i),"selected");
+ if(this.hasFocus) {
+ this.show();
+ this.active = true;
+ }
+ } else {
+ this.active = false;
+ this.hide();
+ }
+ },
+
+ markPrevious: function() {
+ if(this.index > 0) this.index--;
+ else this.index = this.entryCount-1;
+ this.getEntry(this.index).scrollIntoView(true);
+ },
+
+ markNext: function() {
+ if(this.index < this.entryCount-1) this.index++;
+ else this.index = 0;
+ this.getEntry(this.index).scrollIntoView(false);
+ },
+
+ getEntry: function(index) {
+ return this.update.firstChild.childNodes[index];
+ },
+
+ getCurrentEntry: function() {
+ return this.getEntry(this.index);
+ },
+
+ selectEntry: function() {
+ this.active = false;
+ this.updateElement(this.getCurrentEntry());
+ },
+
+ updateElement: function(selectedElement) {
+ if (this.options.updateElement) {
+ this.options.updateElement(selectedElement);
+ return;
+ }
+ var value = '';
+ if (this.options.select) {
+ var nodes = $(selectedElement).select('.' + this.options.select) || [];
+ if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select);
+ } else
+ value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal');
+
+ var bounds = this.getTokenBounds();
+ if (bounds[0] != -1) {
+ var newValue = this.element.value.substr(0, bounds[0]);
+ var whitespace = this.element.value.substr(bounds[0]).match(/^\s+/);
+ if (whitespace)
+ newValue += whitespace[0];
+ this.element.value = newValue + value + this.element.value.substr(bounds[1]);
+ } else {
+ this.element.value = value;
+ }
+ this.oldElementValue = this.element.value;
+ this.element.focus();
+
+ if (this.options.afterUpdateElement)
+ this.options.afterUpdateElement(this.element, selectedElement);
+ },
+
+ updateChoices: function(choices) {
+ if(!this.changed && this.hasFocus) {
+ this.update.innerHTML = choices;
+ Element.cleanWhitespace(this.update);
+ Element.cleanWhitespace(this.update.down());
+
+ if(this.update.firstChild && this.update.down().childNodes) {
+ this.entryCount =
+ this.update.down().childNodes.length;
+ for (var i = 0; i < this.entryCount; i++) {
+ var entry = this.getEntry(i);
+ entry.autocompleteIndex = i;
+ this.addObservers(entry);
+ }
+ } else {
+ this.entryCount = 0;
+ }
+
+ this.stopIndicator();
+ this.index = 0;
+
+ if(this.entryCount==1 && this.options.autoSelect) {
+ this.selectEntry();
+ this.hide();
+ } else {
+ this.render();
+ }
+ }
+ },
+
+ addObservers: function(element) {
+ Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this));
+ Event.observe(element, "click", this.onClick.bindAsEventListener(this));
+ },
+
+ onObserverEvent: function() {
+ this.changed = false;
+ this.tokenBounds = null;
+ if(this.getToken().length>=this.options.minChars) {
+ this.getUpdatedChoices();
+ } else {
+ this.active = false;
+ this.hide();
+ }
+ this.oldElementValue = this.element.value;
+ },
+
+ getToken: function() {
+ var bounds = this.getTokenBounds();
+ return this.element.value.substring(bounds[0], bounds[1]).strip();
+ },
+
+ getTokenBounds: function() {
+ if (null != this.tokenBounds) return this.tokenBounds;
+ var value = this.element.value;
+ if (value.strip().empty()) return [-1, 0];
+ var diff = arguments.callee.getFirstDifferencePos(value, this.oldElementValue);
+ var offset = (diff == this.oldElementValue.length ? 1 : 0);
+ var prevTokenPos = -1, nextTokenPos = value.length;
+ var tp;
+ for (var index = 0, l = this.options.tokens.length; index < l; ++index) {
+ tp = value.lastIndexOf(this.options.tokens[index], diff + offset - 1);
+ if (tp > prevTokenPos) prevTokenPos = tp;
+ tp = value.indexOf(this.options.tokens[index], diff + offset);
+ if (-1 != tp && tp < nextTokenPos) nextTokenPos = tp;
+ }
+ return (this.tokenBounds = [prevTokenPos + 1, nextTokenPos]);
+ }
+});
+
+Autocompleter.Base.prototype.getTokenBounds.getFirstDifferencePos = function(newS, oldS) {
+ var boundary = Math.min(newS.length, oldS.length);
+ for (var index = 0; index < boundary; ++index)
+ if (newS[index] != oldS[index])
+ return index;
+ return boundary;
+};
+
+Ajax.Autocompleter = Class.create(Autocompleter.Base, {
+ initialize: function(element, update, url, options) {
+ this.baseInitialize(element, update, options);
+ this.options.asynchronous = true;
+ this.options.onComplete = this.onComplete.bind(this);
+ this.options.defaultParams = this.options.parameters || null;
+ this.url = url;
+ },
+
+ getUpdatedChoices: function() {
+ this.startIndicator();
+
+ var entry = encodeURIComponent(this.options.paramName) + '=' +
+ encodeURIComponent(this.getToken());
+
+ this.options.parameters = this.options.callback ?
+ this.options.callback(this.element, entry) : entry;
+
+ if(this.options.defaultParams)
+ this.options.parameters += '&' + this.options.defaultParams;
+
+ new Ajax.Request(this.url, this.options);
+ },
+
+ onComplete: function(request) {
+ this.updateChoices(request.responseText);
+ }
+});
+
+// The local array autocompleter. Used when you'd prefer to
+// inject an array of autocompletion options into the page, rather
+// than sending out Ajax queries, which can be quite slow sometimes.
+//
+// The constructor takes four parameters. The first two are, as usual,
+// the id of the monitored textbox, and id of the autocompletion menu.
+// The third is the array you want to autocomplete from, and the fourth
+// is the options block.
+//
+// Extra local autocompletion options:
+// - choices - How many autocompletion choices to offer
+//
+// - partialSearch - If false, the autocompleter will match entered
+// text only at the beginning of strings in the
+// autocomplete array. Defaults to true, which will
+// match text at the beginning of any *word* in the
+// strings in the autocomplete array. If you want to
+// search anywhere in the string, additionally set
+// the option fullSearch to true (default: off).
+//
+// - fullSsearch - Search anywhere in autocomplete array strings.
+//
+// - partialChars - How many characters to enter before triggering
+// a partial match (unlike minChars, which defines
+// how many characters are required to do any match
+// at all). Defaults to 2.
+//
+// - ignoreCase - Whether to ignore case when autocompleting.
+// Defaults to true.
+//
+// It's possible to pass in a custom function as the 'selector'
+// option, if you prefer to write your own autocompletion logic.
+// In that case, the other options above will not apply unless
+// you support them.
+
+Autocompleter.Local = Class.create(Autocompleter.Base, {
+ initialize: function(element, update, array, options) {
+ this.baseInitialize(element, update, options);
+ this.options.array = array;
+ },
+
+ getUpdatedChoices: function() {
+ this.updateChoices(this.options.selector(this));
+ },
+
+ setOptions: function(options) {
+ this.options = Object.extend({
+ choices: 10,
+ partialSearch: true,
+ partialChars: 2,
+ ignoreCase: true,
+ fullSearch: false,
+ selector: function(instance) {
+ var ret = []; // Beginning matches
+ var partial = []; // Inside matches
+ var entry = instance.getToken();
+ var count = 0;
+
+ for (var i = 0; i < instance.options.array.length &&
+ ret.length < instance.options.choices ; i++) {
+
+ var elem = instance.options.array[i];
+ var foundPos = instance.options.ignoreCase ?
+ elem.toLowerCase().indexOf(entry.toLowerCase()) :
+ elem.indexOf(entry);
+
+ while (foundPos != -1) {
+ if (foundPos == 0 && elem.length != entry.length) {
+ ret.push("<li><strong>" + elem.substr(0, entry.length) + "</strong>" +
+ elem.substr(entry.length) + "</li>");
+ break;
+ } else if (entry.length >= instance.options.partialChars &&
+ instance.options.partialSearch && foundPos != -1) {
+ if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) {
+ partial.push("<li>" + elem.substr(0, foundPos) + "<strong>" +
+ elem.substr(foundPos, entry.length) + "</strong>" + elem.substr(
+ foundPos + entry.length) + "</li>");
+ break;
+ }
+ }
+
+ foundPos = instance.options.ignoreCase ?
+ elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) :
+ elem.indexOf(entry, foundPos + 1);
+
+ }
+ }
+ if (partial.length)
+ ret = ret.concat(partial.slice(0, instance.options.choices - ret.length));
+ return "<ul>" + ret.join('') + "</ul>";
+ }
+ }, options || { });
+ }
+});
+
+// AJAX in-place editor and collection editor
+// Full rewrite by Christophe Porteneuve <tdd@tddsworld.com> (April 2007).
+
+// Use this if you notice weird scrolling problems on some browsers,
+// the DOM might be a bit confused when this gets called so do this
+// waits 1 ms (with setTimeout) until it does the activation
+Field.scrollFreeActivate = function(field) {
+ setTimeout(function() {
+ Field.activate(field);
+ }, 1);
+};
+
+Ajax.InPlaceEditor = Class.create({
+ initialize: function(element, url, options) {
+ this.url = url;
+ this.element = element = $(element);
+ this.prepareOptions();
+ this._controls = { };
+ arguments.callee.dealWithDeprecatedOptions(options); // DEPRECATION LAYER!!!
+ Object.extend(this.options, options || { });
+ if (!this.options.formId && this.element.id) {
+ this.options.formId = this.element.id + '-inplaceeditor';
+ if ($(this.options.formId))
+ this.options.formId = '';
+ }
+ if (this.options.externalControl)
+ this.options.externalControl = $(this.options.externalControl);
+ if (!this.options.externalControl)
+ this.options.externalControlOnly = false;
+ this._originalBackground = this.element.getStyle('background-color') || 'transparent';
+ this.element.title = this.options.clickToEditText;
+ this._boundCancelHandler = this.handleFormCancellation.bind(this);
+ this._boundComplete = (this.options.onComplete || Prototype.emptyFunction).bind(this);
+ this._boundFailureHandler = this.handleAJAXFailure.bind(this);
+ this._boundSubmitHandler = this.handleFormSubmission.bind(this);
+ this._boundWrapperHandler = this.wrapUp.bind(this);
+ this.registerListeners();
+ },
+ checkForEscapeOrReturn: function(e) {
+ if (!this._editing || e.ctrlKey || e.altKey || e.shiftKey) return;
+ if (Event.KEY_ESC == e.keyCode)
+ this.handleFormCancellation(e);
+ else if (Event.KEY_RETURN == e.keyCode)
+ this.handleFormSubmission(e);
+ },
+ createControl: function(mode, handler, extraClasses) {
+ var control = this.options[mode + 'Control'];
+ var text = this.options[mode + 'Text'];
+ if ('button' == control) {
+ var btn = document.createElement('input');
+ btn.type = 'submit';
+ btn.value = text;
+ btn.className = 'editor_' + mode + '_button';
+ if ('cancel' == mode)
+ btn.onclick = this._boundCancelHandler;
+ this._form.appendChild(btn);
+ this._controls[mode] = btn;
+ } else if ('link' == control) {
+ var link = document.createElement('a');
+ link.href = '#';
+ link.appendChild(document.createTextNode(text));
+ link.onclick = 'cancel' == mode ? this._boundCancelHandler : this._boundSubmitHandler;
+ link.className = 'editor_' + mode + '_link';
+ if (extraClasses)
+ link.className += ' ' + extraClasses;
+ this._form.appendChild(link);
+ this._controls[mode] = link;
+ }
+ },
+ createEditField: function() {
+ var text = (this.options.loadTextURL ? this.options.loadingText : this.getText());
+ var fld;
+ if (1 >= this.options.rows && !/\r|\n/.test(this.getText())) {
+ fld = document.createElement('input');
+ fld.type = 'text';
+ var size = this.options.size || this.options.cols || 0;
+ if (0 < size) fld.size = size;
+ } else {
+ fld = document.createElement('textarea');
+ fld.rows = (1 >= this.options.rows ? this.options.autoRows : this.options.rows);
+ fld.cols = this.options.cols || 40;
+ }
+ fld.name = this.options.paramName;
+ fld.value = text; // No HTML breaks conversion anymore
+ fld.className = 'editor_field';
+ if (this.options.submitOnBlur)
+ fld.onblur = this._boundSubmitHandler;
+ this._controls.editor = fld;
+ if (this.options.loadTextURL)
+ this.loadExternalText();
+ this._form.appendChild(this._controls.editor);
+ },
+ createForm: function() {
+ var ipe = this;
+ function addText(mode, condition) {
+ var text = ipe.options['text' + mode + 'Controls'];
+ if (!text || condition === false) return;
+ ipe._form.appendChild(document.createTextNode(text));
+ };
+ this._form = $(document.createElement('form'));
+ this._form.id = this.options.formId;
+ this._form.addClassName(this.options.formClassName);
+ this._form.onsubmit = this._boundSubmitHandler;
+ this.createEditField();
+ if ('textarea' == this._controls.editor.tagName.toLowerCase())
+ this._form.appendChild(document.createElement('br'));
+ if (this.options.onFormCustomization)
+ this.options.onFormCustomization(this, this._form);
+ addText('Before', this.options.okControl || this.options.cancelControl);
+ this.createControl('ok', this._boundSubmitHandler);
+ addText('Between', this.options.okControl && this.options.cancelControl);
+ this.createControl('cancel', this._boundCancelHandler, 'editor_cancel');
+ addText('After', this.options.okControl || this.options.cancelControl);
+ },
+ destroy: function() {
+ if (this._oldInnerHTML)
+ this.element.innerHTML = this._oldInnerHTML;
+ this.leaveEditMode();
+ this.unregisterListeners();
+ },
+ enterEditMode: function(e) {
+ if (this._saving || this._editing) return;
+ this._editing = true;
+ this.triggerCallback('onEnterEditMode');
+ if (this.options.externalControl)
+ this.options.externalControl.hide();
+ this.element.hide();
+ this.createForm();
+ this.element.parentNode.insertBefore(this._form, this.element);
+ if (!this.options.loadTextURL)
+ this.postProcessEditField();
+ if (e) Event.stop(e);
+ },
+ enterHover: function(e) {
+ if (this.options.hoverClassName)
+ this.element.addClassName(this.options.hoverClassName);
+ if (this._saving) return;
+ this.triggerCallback('onEnterHover');
+ },
+ getText: function() {
+ return this.element.innerHTML.unescapeHTML();
+ },
+ handleAJAXFailure: function(transport) {
+ this.triggerCallback('onFailure', transport);
+ if (this._oldInnerHTML) {
+ this.element.innerHTML = this._oldInnerHTML;
+ this._oldInnerHTML = null;
+ }
+ },
+ handleFormCancellation: function(e) {
+ this.wrapUp();
+ if (e) Event.stop(e);
+ },
+ handleFormSubmission: function(e) {
+ var form = this._form;
+ var value = $F(this._controls.editor);
+ this.prepareSubmission();
+ var params = this.options.callback(form, value) || '';
+ if (Object.isString(params))
+ params = params.toQueryParams();
+ params.editorId = this.element.id;
+ if (this.options.htmlResponse) {
+ var options = Object.extend({ evalScripts: true }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: params,
+ onComplete: this._boundWrapperHandler,
+ onFailure: this._boundFailureHandler
+ });
+ new Ajax.Updater({ success: this.element }, this.url, options);
+ } else {
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: params,
+ onComplete: this._boundWrapperHandler,
+ onFailure: this._boundFailureHandler
+ });
+ new Ajax.Request(this.url, options);
+ }
+ if (e) Event.stop(e);
+ },
+ leaveEditMode: function() {
+ this.element.removeClassName(this.options.savingClassName);
+ this.removeForm();
+ this.leaveHover();
+ this.element.style.backgroundColor = this._originalBackground;
+ this.element.show();
+ if (this.options.externalControl)
+ this.options.externalControl.show();
+ this._saving = false;
+ this._editing = false;
+ this._oldInnerHTML = null;
+ this.triggerCallback('onLeaveEditMode');
+ },
+ leaveHover: function(e) {
+ if (this.options.hoverClassName)
+ this.element.removeClassName(this.options.hoverClassName);
+ if (this._saving) return;
+ this.triggerCallback('onLeaveHover');
+ },
+ loadExternalText: function() {
+ this._form.addClassName(this.options.loadingClassName);
+ this._controls.editor.disabled = true;
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: 'editorId=' + encodeURIComponent(this.element.id),
+ onComplete: Prototype.emptyFunction,
+ onSuccess: function(transport) {
+ this._form.removeClassName(this.options.loadingClassName);
+ var text = transport.responseText;
+ if (this.options.stripLoadedTextTags)
+ text = text.stripTags();
+ this._controls.editor.value = text;
+ this._controls.editor.disabled = false;
+ this.postProcessEditField();
+ }.bind(this),
+ onFailure: this._boundFailureHandler
+ });
+ new Ajax.Request(this.options.loadTextURL, options);
+ },
+ postProcessEditField: function() {
+ var fpc = this.options.fieldPostCreation;
+ if (fpc)
+ $(this._controls.editor)['focus' == fpc ? 'focus' : 'activate']();
+ },
+ prepareOptions: function() {
+ this.options = Object.clone(Ajax.InPlaceEditor.DefaultOptions);
+ Object.extend(this.options, Ajax.InPlaceEditor.DefaultCallbacks);
+ [this._extraDefaultOptions].flatten().compact().each(function(defs) {
+ Object.extend(this.options, defs);
+ }.bind(this));
+ },
+ prepareSubmission: function() {
+ this._saving = true;
+ this.removeForm();
+ this.leaveHover();
+ this.showSaving();
+ },
+ registerListeners: function() {
+ this._listeners = { };
+ var listener;
+ $H(Ajax.InPlaceEditor.Listeners).each(function(pair) {
+ listener = this[pair.value].bind(this);
+ this._listeners[pair.key] = listener;
+ if (!this.options.externalControlOnly)
+ this.element.observe(pair.key, listener);
+ if (this.options.externalControl)
+ this.options.externalControl.observe(pair.key, listener);
+ }.bind(this));
+ },
+ removeForm: function() {
+ if (!this._form) return;
+ this._form.remove();
+ this._form = null;
+ this._controls = { };
+ },
+ showSaving: function() {
+ this._oldInnerHTML = this.element.innerHTML;
+ this.element.innerHTML = this.options.savingText;
+ this.element.addClassName(this.options.savingClassName);
+ this.element.style.backgroundColor = this._originalBackground;
+ this.element.show();
+ },
+ triggerCallback: function(cbName, arg) {
+ if ('function' == typeof this.options[cbName]) {
+ this.options[cbName](this, arg);
+ }
+ },
+ unregisterListeners: function() {
+ $H(this._listeners).each(function(pair) {
+ if (!this.options.externalControlOnly)
+ this.element.stopObserving(pair.key, pair.value);
+ if (this.options.externalControl)
+ this.options.externalControl.stopObserving(pair.key, pair.value);
+ }.bind(this));
+ },
+ wrapUp: function(transport) {
+ this.leaveEditMode();
+ // Can't use triggerCallback due to backward compatibility: requires
+ // binding + direct element
+ this._boundComplete(transport, this.element);
+ }
+});
+
+Object.extend(Ajax.InPlaceEditor.prototype, {
+ dispose: Ajax.InPlaceEditor.prototype.destroy
+});
+
+Ajax.InPlaceCollectionEditor = Class.create(Ajax.InPlaceEditor, {
+ initialize: function($super, element, url, options) {
+ this._extraDefaultOptions = Ajax.InPlaceCollectionEditor.DefaultOptions;
+ $super(element, url, options);
+ },
+
+ createEditField: function() {
+ var list = document.createElement('select');
+ list.name = this.options.paramName;
+ list.size = 1;
+ this._controls.editor = list;
+ this._collection = this.options.collection || [];
+ if (this.options.loadCollectionURL)
+ this.loadCollection();
+ else
+ this.checkForExternalText();
+ this._form.appendChild(this._controls.editor);
+ },
+
+ loadCollection: function() {
+ this._form.addClassName(this.options.loadingClassName);
+ this.showLoadingText(this.options.loadingCollectionText);
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: 'editorId=' + encodeURIComponent(this.element.id),
+ onComplete: Prototype.emptyFunction,
+ onSuccess: function(transport) {
+ var js = transport.responseText.strip();
+ if (!/^\[.*\]$/.test(js)) // TODO: improve sanity check
+ throw('Server returned an invalid collection representation.');
+ this._collection = eval(js);
+ this.checkForExternalText();
+ }.bind(this),
+ onFailure: this.onFailure
+ });
+ new Ajax.Request(this.options.loadCollectionURL, options);
+ },
+
+ showLoadingText: function(text) {
+ this._controls.editor.disabled = true;
+ var tempOption = this._controls.editor.firstChild;
+ if (!tempOption) {
+ tempOption = document.createElement('option');
+ tempOption.value = '';
+ this._controls.editor.appendChild(tempOption);
+ tempOption.selected = true;
+ }
+ tempOption.update((text || '').stripScripts().stripTags());
+ },
+
+ checkForExternalText: function() {
+ this._text = this.getText();
+ if (this.options.loadTextURL)
+ this.loadExternalText();
+ else
+ this.buildOptionList();
+ },
+
+ loadExternalText: function() {
+ this.showLoadingText(this.options.loadingText);
+ var options = Object.extend({ method: 'get' }, this.options.ajaxOptions);
+ Object.extend(options, {
+ parameters: 'editorId=' + encodeURIComponent(this.element.id),
+ onComplete: Prototype.emptyFunction,
+ onSuccess: function(transport) {
+ this._text = transport.responseText.strip();
+ this.buildOptionList();
+ }.bind(this),
+ onFailure: this.onFailure
+ });
+ new Ajax.Request(this.options.loadTextURL, options);
+ },
+
+ buildOptionList: function() {
+ this._form.removeClassName(this.options.loadingClassName);
+ this._collection = this._collection.map(function(entry) {
+ return 2 === entry.length ? entry : [entry, entry].flatten();
+ });
+ var marker = ('value' in this.options) ? this.options.value : this._text;
+ var textFound = this._collection.any(function(entry) {
+ return entry[0] == marker;
+ }.bind(this));
+ this._controls.editor.update('');
+ var option;
+ this._collection.each(function(entry, index) {
+ option = document.createElement('option');
+ option.value = entry[0];
+ option.selected = textFound ? entry[0] == marker : 0 == index;
+ option.appendChild(document.createTextNode(entry[1]));
+ this._controls.editor.appendChild(option);
+ }.bind(this));
+ this._controls.editor.disabled = false;
+ Field.scrollFreeActivate(this._controls.editor);
+ }
+});
+
+//**** DEPRECATION LAYER FOR InPlace[Collection]Editor! ****
+//**** This only exists for a while, in order to let ****
+//**** users adapt to the new API. Read up on the new ****
+//**** API and convert your code to it ASAP! ****
+
+Ajax.InPlaceEditor.prototype.initialize.dealWithDeprecatedOptions = function(options) {
+ if (!options) return;
+ function fallback(name, expr) {
+ if (name in options || expr === undefined) return;
+ options[name] = expr;
+ };
+ fallback('cancelControl', (options.cancelLink ? 'link' : (options.cancelButton ? 'button' :
+ options.cancelLink == options.cancelButton == false ? false : undefined)));
+ fallback('okControl', (options.okLink ? 'link' : (options.okButton ? 'button' :
+ options.okLink == options.okButton == false ? false : undefined)));
+ fallback('highlightColor', options.highlightcolor);
+ fallback('highlightEndColor', options.highlightendcolor);
+};
+
+Object.extend(Ajax.InPlaceEditor, {
+ DefaultOptions: {
+ ajaxOptions: { },
+ autoRows: 3, // Use when multi-line w/ rows == 1
+ cancelControl: 'link', // 'link'|'button'|false
+ cancelText: 'cancel',
+ clickToEditText: 'Click to edit',
+ externalControl: null, // id|elt
+ externalControlOnly: false,
+ fieldPostCreation: 'activate', // 'activate'|'focus'|false
+ formClassName: 'inplaceeditor-form',
+ formId: null, // id|elt
+ highlightColor: '#ffff99',
+ highlightEndColor: '#ffffff',
+ hoverClassName: '',
+ htmlResponse: true,
+ loadingClassName: 'inplaceeditor-loading',
+ loadingText: 'Loading...',
+ okControl: 'button', // 'link'|'button'|false
+ okText: 'ok',
+ paramName: 'value',
+ rows: 1, // If 1 and multi-line, uses autoRows
+ savingClassName: 'inplaceeditor-saving',
+ savingText: 'Saving...',
+ size: 0,
+ stripLoadedTextTags: false,
+ submitOnBlur: false,
+ textAfterControls: '',
+ textBeforeControls: '',
+ textBetweenControls: ''
+ },
+ DefaultCallbacks: {
+ callback: function(form) {
+ return Form.serialize(form);
+ },
+ onComplete: function(transport, element) {
+ // For backward compatibility, this one is bound to the IPE, and passes
+ // the element directly. It was too often customized, so we don't break it.
+ new Effect.Highlight(element, {
+ startcolor: this.options.highlightColor, keepBackgroundImage: true });
+ },
+ onEnterEditMode: null,
+ onEnterHover: function(ipe) {
+ ipe.element.style.backgroundColor = ipe.options.highlightColor;
+ if (ipe._effect)
+ ipe._effect.cancel();
+ },
+ onFailure: function(transport, ipe) {
+ alert('Error communication with the server: ' + transport.responseText.stripTags());
+ },
+ onFormCustomization: null, // Takes the IPE and its generated form, after editor, before controls.
+ onLeaveEditMode: null,
+ onLeaveHover: function(ipe) {
+ ipe._effect = new Effect.Highlight(ipe.element, {
+ startcolor: ipe.options.highlightColor, endcolor: ipe.options.highlightEndColor,
+ restorecolor: ipe._originalBackground, keepBackgroundImage: true
+ });
+ }
+ },
+ Listeners: {
+ click: 'enterEditMode',
+ keydown: 'checkForEscapeOrReturn',
+ mouseover: 'enterHover',
+ mouseout: 'leaveHover'
+ }
+});
+
+Ajax.InPlaceCollectionEditor.DefaultOptions = {
+ loadingCollectionText: 'Loading options...'
+};
+
+// Delayed observer, like Form.Element.Observer,
+// but waits for delay after last key input
+// Ideal for live-search fields
+
+Form.Element.DelayedObserver = Class.create({
+ initialize: function(element, delay, callback) {
+ this.delay = delay || 0.5;
+ this.element = $(element);
+ this.callback = callback;
+ this.timer = null;
+ this.lastValue = $F(this.element);
+ Event.observe(this.element,'keyup',this.delayedListener.bindAsEventListener(this));
+ },
+ delayedListener: function(event) {
+ if(this.lastValue == $F(this.element)) return;
+ if(this.timer) clearTimeout(this.timer);
+ this.timer = setTimeout(this.onTimerEvent.bind(this), this.delay * 1000);
+ this.lastValue = $F(this.element);
+ },
+ onTimerEvent: function() {
+ this.timer = null;
+ this.callback(this.element, $F(this.element));
+ }
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/dragdrop.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/dragdrop.js
new file mode 100644
index 00000000..9ebfe24d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/dragdrop.js
@@ -0,0 +1,974 @@
+// script.aculo.us dragdrop.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+if(Object.isUndefined(Effect))
+ throw("dragdrop.js requires including script.aculo.us' effects.js library");
+
+var Droppables = {
+ drops: [],
+
+ remove: function(element) {
+ this.drops = this.drops.reject(function(d) { return d.element==$(element) });
+ },
+
+ add: function(element) {
+ element = $(element);
+ var options = Object.extend({
+ greedy: true,
+ hoverclass: null,
+ tree: false
+ }, arguments[1] || { });
+
+ // cache containers
+ if(options.containment) {
+ options._containers = [];
+ var containment = options.containment;
+ if(Object.isArray(containment)) {
+ containment.each( function(c) { options._containers.push($(c)) });
+ } else {
+ options._containers.push($(containment));
+ }
+ }
+
+ if(options.accept) options.accept = [options.accept].flatten();
+
+ Element.makePositioned(element); // fix IE
+ options.element = element;
+
+ this.drops.push(options);
+ },
+
+ findDeepestChild: function(drops) {
+ deepest = drops[0];
+
+ for (i = 1; i < drops.length; ++i)
+ if (Element.isParent(drops[i].element, deepest.element))
+ deepest = drops[i];
+
+ return deepest;
+ },
+
+ isContained: function(element, drop) {
+ var containmentNode;
+ if(drop.tree) {
+ containmentNode = element.treeNode;
+ } else {
+ containmentNode = element.parentNode;
+ }
+ return drop._containers.detect(function(c) { return containmentNode == c });
+ },
+
+ isAffected: function(point, element, drop) {
+ return (
+ (drop.element!=element) &&
+ ((!drop._containers) ||
+ this.isContained(element, drop)) &&
+ ((!drop.accept) ||
+ (Element.classNames(element).detect(
+ function(v) { return drop.accept.include(v) } ) )) &&
+ Position.within(drop.element, point[0], point[1]) );
+ },
+
+ deactivate: function(drop) {
+ if(drop.hoverclass)
+ Element.removeClassName(drop.element, drop.hoverclass);
+ this.last_active = null;
+ },
+
+ activate: function(drop) {
+ if(drop.hoverclass)
+ Element.addClassName(drop.element, drop.hoverclass);
+ this.last_active = drop;
+ },
+
+ show: function(point, element) {
+ if(!this.drops.length) return;
+ var drop, affected = [];
+
+ this.drops.each( function(drop) {
+ if(Droppables.isAffected(point, element, drop))
+ affected.push(drop);
+ });
+
+ if(affected.length>0)
+ drop = Droppables.findDeepestChild(affected);
+
+ if(this.last_active && this.last_active != drop) this.deactivate(this.last_active);
+ if (drop) {
+ Position.within(drop.element, point[0], point[1]);
+ if(drop.onHover)
+ drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element));
+
+ if (drop != this.last_active) Droppables.activate(drop);
+ }
+ },
+
+ fire: function(event, element) {
+ if(!this.last_active) return;
+ Position.prepare();
+
+ if (this.isAffected([Event.pointerX(event), Event.pointerY(event)], element, this.last_active))
+ if (this.last_active.onDrop) {
+ this.last_active.onDrop(element, this.last_active.element, event);
+ return true;
+ }
+ },
+
+ reset: function() {
+ if(this.last_active)
+ this.deactivate(this.last_active);
+ }
+};
+
+var Draggables = {
+ drags: [],
+ observers: [],
+
+ register: function(draggable) {
+ if(this.drags.length == 0) {
+ this.eventMouseUp = this.endDrag.bindAsEventListener(this);
+ this.eventMouseMove = this.updateDrag.bindAsEventListener(this);
+ this.eventKeypress = this.keyPress.bindAsEventListener(this);
+
+ Event.observe(document, "mouseup", this.eventMouseUp);
+ Event.observe(document, "mousemove", this.eventMouseMove);
+ Event.observe(document, "keypress", this.eventKeypress);
+ }
+ this.drags.push(draggable);
+ },
+
+ unregister: function(draggable) {
+ this.drags = this.drags.reject(function(d) { return d==draggable });
+ if(this.drags.length == 0) {
+ Event.stopObserving(document, "mouseup", this.eventMouseUp);
+ Event.stopObserving(document, "mousemove", this.eventMouseMove);
+ Event.stopObserving(document, "keypress", this.eventKeypress);
+ }
+ },
+
+ activate: function(draggable) {
+ if(draggable.options.delay) {
+ this._timeout = setTimeout(function() {
+ Draggables._timeout = null;
+ window.focus();
+ Draggables.activeDraggable = draggable;
+ }.bind(this), draggable.options.delay);
+ } else {
+ window.focus(); // allows keypress events if window isn't currently focused, fails for Safari
+ this.activeDraggable = draggable;
+ }
+ },
+
+ deactivate: function() {
+ this.activeDraggable = null;
+ },
+
+ updateDrag: function(event) {
+ if(!this.activeDraggable) return;
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ // Mozilla-based browsers fire successive mousemove events with
+ // the same coordinates, prevent needless redrawing (moz bug?)
+ if(this._lastPointer && (this._lastPointer.inspect() == pointer.inspect())) return;
+ this._lastPointer = pointer;
+
+ this.activeDraggable.updateDrag(event, pointer);
+ },
+
+ endDrag: function(event) {
+ if(this._timeout) {
+ clearTimeout(this._timeout);
+ this._timeout = null;
+ }
+ if(!this.activeDraggable) return;
+ this._lastPointer = null;
+ this.activeDraggable.endDrag(event);
+ this.activeDraggable = null;
+ },
+
+ keyPress: function(event) {
+ if(this.activeDraggable)
+ this.activeDraggable.keyPress(event);
+ },
+
+ addObserver: function(observer) {
+ this.observers.push(observer);
+ this._cacheObserverCallbacks();
+ },
+
+ removeObserver: function(element) { // element instead of observer fixes mem leaks
+ this.observers = this.observers.reject( function(o) { return o.element==element });
+ this._cacheObserverCallbacks();
+ },
+
+ notify: function(eventName, draggable, event) { // 'onStart', 'onEnd', 'onDrag'
+ if(this[eventName+'Count'] > 0)
+ this.observers.each( function(o) {
+ if(o[eventName]) o[eventName](eventName, draggable, event);
+ });
+ if(draggable.options[eventName]) draggable.options[eventName](draggable, event);
+ },
+
+ _cacheObserverCallbacks: function() {
+ ['onStart','onEnd','onDrag'].each( function(eventName) {
+ Draggables[eventName+'Count'] = Draggables.observers.select(
+ function(o) { return o[eventName]; }
+ ).length;
+ });
+ }
+};
+
+/*--------------------------------------------------------------------------*/
+
+var Draggable = Class.create({
+ initialize: function(element) {
+ var defaults = {
+ handle: false,
+ reverteffect: function(element, top_offset, left_offset) {
+ var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02;
+ new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur,
+ queue: {scope:'_draggable', position:'end'}
+ });
+ },
+ endeffect: function(element) {
+ var toOpacity = Object.isNumber(element._opacity) ? element._opacity : 1.0;
+ new Effect.Opacity(element, {duration:0.2, from:0.7, to:toOpacity,
+ queue: {scope:'_draggable', position:'end'},
+ afterFinish: function(){
+ Draggable._dragging[element] = false
+ }
+ });
+ },
+ zindex: 1000,
+ revert: false,
+ quiet: false,
+ scroll: false,
+ scrollSensitivity: 20,
+ scrollSpeed: 15,
+ snap: false, // false, or xy or [x,y] or function(x,y){ return [x,y] }
+ delay: 0
+ };
+
+ if(!arguments[1] || Object.isUndefined(arguments[1].endeffect))
+ Object.extend(defaults, {
+ starteffect: function(element) {
+ element._opacity = Element.getOpacity(element);
+ Draggable._dragging[element] = true;
+ new Effect.Opacity(element, {duration:0.2, from:element._opacity, to:0.7});
+ }
+ });
+
+ var options = Object.extend(defaults, arguments[1] || { });
+
+ this.element = $(element);
+
+ if(options.handle && Object.isString(options.handle))
+ this.handle = this.element.down('.'+options.handle, 0);
+
+ if(!this.handle) this.handle = $(options.handle);
+ if(!this.handle) this.handle = this.element;
+
+ if(options.scroll && !options.scroll.scrollTo && !options.scroll.outerHTML) {
+ options.scroll = $(options.scroll);
+ this._isScrollChild = Element.childOf(this.element, options.scroll);
+ }
+
+ Element.makePositioned(this.element); // fix IE
+
+ this.options = options;
+ this.dragging = false;
+
+ this.eventMouseDown = this.initDrag.bindAsEventListener(this);
+ Event.observe(this.handle, "mousedown", this.eventMouseDown);
+
+ Draggables.register(this);
+ },
+
+ destroy: function() {
+ Event.stopObserving(this.handle, "mousedown", this.eventMouseDown);
+ Draggables.unregister(this);
+ },
+
+ currentDelta: function() {
+ return([
+ parseInt(Element.getStyle(this.element,'left') || '0'),
+ parseInt(Element.getStyle(this.element,'top') || '0')]);
+ },
+
+ initDrag: function(event) {
+ if(!Object.isUndefined(Draggable._dragging[this.element]) &&
+ Draggable._dragging[this.element]) return;
+ if(Event.isLeftClick(event)) {
+ // abort on form elements, fixes a Firefox issue
+ var src = Event.element(event);
+ if((tag_name = src.tagName.toUpperCase()) && (
+ tag_name=='INPUT' ||
+ tag_name=='SELECT' ||
+ tag_name=='OPTION' ||
+ tag_name=='BUTTON' ||
+ tag_name=='TEXTAREA')) return;
+
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ var pos = this.element.cumulativeOffset();
+ this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) });
+
+ Draggables.activate(this);
+ Event.stop(event);
+ }
+ },
+
+ startDrag: function(event) {
+ this.dragging = true;
+ if(!this.delta)
+ this.delta = this.currentDelta();
+
+ if(this.options.zindex) {
+ this.originalZ = parseInt(Element.getStyle(this.element,'z-index') || 0);
+ this.element.style.zIndex = this.options.zindex;
+ }
+
+ if(this.options.ghosting) {
+ this._clone = this.element.cloneNode(true);
+ this._originallyAbsolute = (this.element.getStyle('position') == 'absolute');
+ if (!this._originallyAbsolute)
+ Position.absolutize(this.element);
+ this.element.parentNode.insertBefore(this._clone, this.element);
+ }
+
+ if(this.options.scroll) {
+ if (this.options.scroll == window) {
+ var where = this._getWindowScroll(this.options.scroll);
+ this.originalScrollLeft = where.left;
+ this.originalScrollTop = where.top;
+ } else {
+ this.originalScrollLeft = this.options.scroll.scrollLeft;
+ this.originalScrollTop = this.options.scroll.scrollTop;
+ }
+ }
+
+ Draggables.notify('onStart', this, event);
+
+ if(this.options.starteffect) this.options.starteffect(this.element);
+ },
+
+ updateDrag: function(event, pointer) {
+ if(!this.dragging) this.startDrag(event);
+
+ if(!this.options.quiet){
+ Position.prepare();
+ Droppables.show(pointer, this.element);
+ }
+
+ Draggables.notify('onDrag', this, event);
+
+ this.draw(pointer);
+ if(this.options.change) this.options.change(this);
+
+ if(this.options.scroll) {
+ this.stopScrolling();
+
+ var p;
+ if (this.options.scroll == window) {
+ with(this._getWindowScroll(this.options.scroll)) { p = [ left, top, left+width, top+height ]; }
+ } else {
+ p = Position.page(this.options.scroll).toArray();
+ p[0] += this.options.scroll.scrollLeft + Position.deltaX;
+ p[1] += this.options.scroll.scrollTop + Position.deltaY;
+ p.push(p[0]+this.options.scroll.offsetWidth);
+ p.push(p[1]+this.options.scroll.offsetHeight);
+ }
+ var speed = [0,0];
+ if(pointer[0] < (p[0]+this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[0]+this.options.scrollSensitivity);
+ if(pointer[1] < (p[1]+this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[1]+this.options.scrollSensitivity);
+ if(pointer[0] > (p[2]-this.options.scrollSensitivity)) speed[0] = pointer[0]-(p[2]-this.options.scrollSensitivity);
+ if(pointer[1] > (p[3]-this.options.scrollSensitivity)) speed[1] = pointer[1]-(p[3]-this.options.scrollSensitivity);
+ this.startScrolling(speed);
+ }
+
+ // fix AppleWebKit rendering
+ if(Prototype.Browser.WebKit) window.scrollBy(0,0);
+
+ Event.stop(event);
+ },
+
+ finishDrag: function(event, success) {
+ this.dragging = false;
+
+ if(this.options.quiet){
+ Position.prepare();
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ Droppables.show(pointer, this.element);
+ }
+
+ if(this.options.ghosting) {
+ if (!this._originallyAbsolute)
+ Position.relativize(this.element);
+ delete this._originallyAbsolute;
+ Element.remove(this._clone);
+ this._clone = null;
+ }
+
+ var dropped = false;
+ if(success) {
+ dropped = Droppables.fire(event, this.element);
+ if (!dropped) dropped = false;
+ }
+ if(dropped && this.options.onDropped) this.options.onDropped(this.element);
+ Draggables.notify('onEnd', this, event);
+
+ var revert = this.options.revert;
+ if(revert && Object.isFunction(revert)) revert = revert(this.element);
+
+ var d = this.currentDelta();
+ if(revert && this.options.reverteffect) {
+ if (dropped == 0 || revert != 'failure')
+ this.options.reverteffect(this.element,
+ d[1]-this.delta[1], d[0]-this.delta[0]);
+ } else {
+ this.delta = d;
+ }
+
+ if(this.options.zindex)
+ this.element.style.zIndex = this.originalZ;
+
+ if(this.options.endeffect)
+ this.options.endeffect(this.element);
+
+ Draggables.deactivate(this);
+ Droppables.reset();
+ },
+
+ keyPress: function(event) {
+ if(event.keyCode!=Event.KEY_ESC) return;
+ this.finishDrag(event, false);
+ Event.stop(event);
+ },
+
+ endDrag: function(event) {
+ if(!this.dragging) return;
+ this.stopScrolling();
+ this.finishDrag(event, true);
+ Event.stop(event);
+ },
+
+ draw: function(point) {
+ var pos = this.element.cumulativeOffset();
+ if(this.options.ghosting) {
+ var r = Position.realOffset(this.element);
+ pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
+ }
+
+ var d = this.currentDelta();
+ pos[0] -= d[0]; pos[1] -= d[1];
+
+ if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) {
+ pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft;
+ pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop;
+ }
+
+ var p = [0,1].map(function(i){
+ return (point[i]-pos[i]-this.offset[i])
+ }.bind(this));
+
+ if(this.options.snap) {
+ if(Object.isFunction(this.options.snap)) {
+ p = this.options.snap(p[0],p[1],this);
+ } else {
+ if(Object.isArray(this.options.snap)) {
+ p = p.map( function(v, i) {
+ return (v/this.options.snap[i]).round()*this.options.snap[i] }.bind(this));
+ } else {
+ p = p.map( function(v) {
+ return (v/this.options.snap).round()*this.options.snap }.bind(this));
+ }
+ }}
+
+ var style = this.element.style;
+ if((!this.options.constraint) || (this.options.constraint=='horizontal'))
+ style.left = p[0] + "px";
+ if((!this.options.constraint) || (this.options.constraint=='vertical'))
+ style.top = p[1] + "px";
+
+ if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering
+ },
+
+ stopScrolling: function() {
+ if(this.scrollInterval) {
+ clearInterval(this.scrollInterval);
+ this.scrollInterval = null;
+ Draggables._lastScrollPointer = null;
+ }
+ },
+
+ startScrolling: function(speed) {
+ if(!(speed[0] || speed[1])) return;
+ this.scrollSpeed = [speed[0]*this.options.scrollSpeed,speed[1]*this.options.scrollSpeed];
+ this.lastScrolled = new Date();
+ this.scrollInterval = setInterval(this.scroll.bind(this), 10);
+ },
+
+ scroll: function() {
+ var current = new Date();
+ var delta = current - this.lastScrolled;
+ this.lastScrolled = current;
+ if(this.options.scroll == window) {
+ with (this._getWindowScroll(this.options.scroll)) {
+ if (this.scrollSpeed[0] || this.scrollSpeed[1]) {
+ var d = delta / 1000;
+ this.options.scroll.scrollTo( left + d*this.scrollSpeed[0], top + d*this.scrollSpeed[1] );
+ }
+ }
+ } else {
+ this.options.scroll.scrollLeft += this.scrollSpeed[0] * delta / 1000;
+ this.options.scroll.scrollTop += this.scrollSpeed[1] * delta / 1000;
+ }
+
+ Position.prepare();
+ Droppables.show(Draggables._lastPointer, this.element);
+ Draggables.notify('onDrag', this);
+ if (this._isScrollChild) {
+ Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer);
+ Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000;
+ Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000;
+ if (Draggables._lastScrollPointer[0] < 0)
+ Draggables._lastScrollPointer[0] = 0;
+ if (Draggables._lastScrollPointer[1] < 0)
+ Draggables._lastScrollPointer[1] = 0;
+ this.draw(Draggables._lastScrollPointer);
+ }
+
+ if(this.options.change) this.options.change(this);
+ },
+
+ _getWindowScroll: function(w) {
+ var T, L, W, H;
+ with (w.document) {
+ if (w.document.documentElement && documentElement.scrollTop) {
+ T = documentElement.scrollTop;
+ L = documentElement.scrollLeft;
+ } else if (w.document.body) {
+ T = body.scrollTop;
+ L = body.scrollLeft;
+ }
+ if (w.innerWidth) {
+ W = w.innerWidth;
+ H = w.innerHeight;
+ } else if (w.document.documentElement && documentElement.clientWidth) {
+ W = documentElement.clientWidth;
+ H = documentElement.clientHeight;
+ } else {
+ W = body.offsetWidth;
+ H = body.offsetHeight;
+ }
+ }
+ return { top: T, left: L, width: W, height: H };
+ }
+});
+
+Draggable._dragging = { };
+
+/*--------------------------------------------------------------------------*/
+
+var SortableObserver = Class.create({
+ initialize: function(element, observer) {
+ this.element = $(element);
+ this.observer = observer;
+ this.lastValue = Sortable.serialize(this.element);
+ },
+
+ onStart: function() {
+ this.lastValue = Sortable.serialize(this.element);
+ },
+
+ onEnd: function() {
+ Sortable.unmark();
+ if(this.lastValue != Sortable.serialize(this.element))
+ this.observer(this.element)
+ }
+});
+
+var Sortable = {
+ SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,
+
+ sortables: { },
+
+ _findRootElement: function(element) {
+ while (element.tagName.toUpperCase() != "BODY") {
+ if(element.id && Sortable.sortables[element.id]) return element;
+ element = element.parentNode;
+ }
+ },
+
+ options: function(element) {
+ element = Sortable._findRootElement($(element));
+ if(!element) return;
+ return Sortable.sortables[element.id];
+ },
+
+ destroy: function(element){
+ element = $(element);
+ var s = Sortable.sortables[element.id];
+
+ if(s) {
+ Draggables.removeObserver(s.element);
+ s.droppables.each(function(d){ Droppables.remove(d) });
+ s.draggables.invoke('destroy');
+
+ delete Sortable.sortables[s.element.id];
+ }
+ },
+
+ create: function(element) {
+ element = $(element);
+ var options = Object.extend({
+ element: element,
+ tag: 'li', // assumes li children, override with tag: 'tagname'
+ dropOnEmpty: false,
+ tree: false,
+ treeTag: 'ul',
+ overlap: 'vertical', // one of 'vertical', 'horizontal'
+ constraint: 'vertical', // one of 'vertical', 'horizontal', false
+ containment: element, // also takes array of elements (or id's); or false
+ handle: false, // or a CSS class
+ only: false,
+ delay: 0,
+ hoverclass: null,
+ ghosting: false,
+ quiet: false,
+ scroll: false,
+ scrollSensitivity: 20,
+ scrollSpeed: 15,
+ format: this.SERIALIZE_RULE,
+
+ // these take arrays of elements or ids and can be
+ // used for better initialization performance
+ elements: false,
+ handles: false,
+
+ onChange: Prototype.emptyFunction,
+ onUpdate: Prototype.emptyFunction
+ }, arguments[1] || { });
+
+ // clear any old sortable with same element
+ this.destroy(element);
+
+ // build options for the draggables
+ var options_for_draggable = {
+ revert: true,
+ quiet: options.quiet,
+ scroll: options.scroll,
+ scrollSpeed: options.scrollSpeed,
+ scrollSensitivity: options.scrollSensitivity,
+ delay: options.delay,
+ ghosting: options.ghosting,
+ constraint: options.constraint,
+ handle: options.handle };
+
+ if(options.starteffect)
+ options_for_draggable.starteffect = options.starteffect;
+
+ if(options.reverteffect)
+ options_for_draggable.reverteffect = options.reverteffect;
+ else
+ if(options.ghosting) options_for_draggable.reverteffect = function(element) {
+ element.style.top = 0;
+ element.style.left = 0;
+ };
+
+ if(options.endeffect)
+ options_for_draggable.endeffect = options.endeffect;
+
+ if(options.zindex)
+ options_for_draggable.zindex = options.zindex;
+
+ // build options for the droppables
+ var options_for_droppable = {
+ overlap: options.overlap,
+ containment: options.containment,
+ tree: options.tree,
+ hoverclass: options.hoverclass,
+ onHover: Sortable.onHover
+ };
+
+ var options_for_tree = {
+ onHover: Sortable.onEmptyHover,
+ overlap: options.overlap,
+ containment: options.containment,
+ hoverclass: options.hoverclass
+ };
+
+ // fix for gecko engine
+ Element.cleanWhitespace(element);
+
+ options.draggables = [];
+ options.droppables = [];
+
+ // drop on empty handling
+ if(options.dropOnEmpty || options.tree) {
+ Droppables.add(element, options_for_tree);
+ options.droppables.push(element);
+ }
+
+ (options.elements || this.findElements(element, options) || []).each( function(e,i) {
+ var handle = options.handles ? $(options.handles[i]) :
+ (options.handle ? $(e).select('.' + options.handle)[0] : e);
+ options.draggables.push(
+ new Draggable(e, Object.extend(options_for_draggable, { handle: handle })));
+ Droppables.add(e, options_for_droppable);
+ if(options.tree) e.treeNode = element;
+ options.droppables.push(e);
+ });
+
+ if(options.tree) {
+ (Sortable.findTreeElements(element, options) || []).each( function(e) {
+ Droppables.add(e, options_for_tree);
+ e.treeNode = element;
+ options.droppables.push(e);
+ });
+ }
+
+ // keep reference
+ this.sortables[element.identify()] = options;
+
+ // for onupdate
+ Draggables.addObserver(new SortableObserver(element, options.onUpdate));
+
+ },
+
+ // return all suitable-for-sortable elements in a guaranteed order
+ findElements: function(element, options) {
+ return Element.findChildren(
+ element, options.only, options.tree ? true : false, options.tag);
+ },
+
+ findTreeElements: function(element, options) {
+ return Element.findChildren(
+ element, options.only, options.tree ? true : false, options.treeTag);
+ },
+
+ onHover: function(element, dropon, overlap) {
+ if(Element.isParent(dropon, element)) return;
+
+ if(overlap > .33 && overlap < .66 && Sortable.options(dropon).tree) {
+ return;
+ } else if(overlap>0.5) {
+ Sortable.mark(dropon, 'before');
+ if(dropon.previousSibling != element) {
+ var oldParentNode = element.parentNode;
+ element.style.visibility = "hidden"; // fix gecko rendering
+ dropon.parentNode.insertBefore(element, dropon);
+ if(dropon.parentNode!=oldParentNode)
+ Sortable.options(oldParentNode).onChange(element);
+ Sortable.options(dropon.parentNode).onChange(element);
+ }
+ } else {
+ Sortable.mark(dropon, 'after');
+ var nextElement = dropon.nextSibling || null;
+ if(nextElement != element) {
+ var oldParentNode = element.parentNode;
+ element.style.visibility = "hidden"; // fix gecko rendering
+ dropon.parentNode.insertBefore(element, nextElement);
+ if(dropon.parentNode!=oldParentNode)
+ Sortable.options(oldParentNode).onChange(element);
+ Sortable.options(dropon.parentNode).onChange(element);
+ }
+ }
+ },
+
+ onEmptyHover: function(element, dropon, overlap) {
+ var oldParentNode = element.parentNode;
+ var droponOptions = Sortable.options(dropon);
+
+ if(!Element.isParent(dropon, element)) {
+ var index;
+
+ var children = Sortable.findElements(dropon, {tag: droponOptions.tag, only: droponOptions.only});
+ var child = null;
+
+ if(children) {
+ var offset = Element.offsetSize(dropon, droponOptions.overlap) * (1.0 - overlap);
+
+ for (index = 0; index < children.length; index += 1) {
+ if (offset - Element.offsetSize (children[index], droponOptions.overlap) >= 0) {
+ offset -= Element.offsetSize (children[index], droponOptions.overlap);
+ } else if (offset - (Element.offsetSize (children[index], droponOptions.overlap) / 2) >= 0) {
+ child = index + 1 < children.length ? children[index + 1] : null;
+ break;
+ } else {
+ child = children[index];
+ break;
+ }
+ }
+ }
+
+ dropon.insertBefore(element, child);
+
+ Sortable.options(oldParentNode).onChange(element);
+ droponOptions.onChange(element);
+ }
+ },
+
+ unmark: function() {
+ if(Sortable._marker) Sortable._marker.hide();
+ },
+
+ mark: function(dropon, position) {
+ // mark on ghosting only
+ var sortable = Sortable.options(dropon.parentNode);
+ if(sortable && !sortable.ghosting) return;
+
+ if(!Sortable._marker) {
+ Sortable._marker =
+ ($('dropmarker') || Element.extend(document.createElement('DIV'))).
+ hide().addClassName('dropmarker').setStyle({position:'absolute'});
+ document.getElementsByTagName("body").item(0).appendChild(Sortable._marker);
+ }
+ var offsets = dropon.cumulativeOffset();
+ Sortable._marker.setStyle({left: offsets[0]+'px', top: offsets[1] + 'px'});
+
+ if(position=='after')
+ if(sortable.overlap == 'horizontal')
+ Sortable._marker.setStyle({left: (offsets[0]+dropon.clientWidth) + 'px'});
+ else
+ Sortable._marker.setStyle({top: (offsets[1]+dropon.clientHeight) + 'px'});
+
+ Sortable._marker.show();
+ },
+
+ _tree: function(element, options, parent) {
+ var children = Sortable.findElements(element, options) || [];
+
+ for (var i = 0; i < children.length; ++i) {
+ var match = children[i].id.match(options.format);
+
+ if (!match) continue;
+
+ var child = {
+ id: encodeURIComponent(match ? match[1] : null),
+ element: element,
+ parent: parent,
+ children: [],
+ position: parent.children.length,
+ container: $(children[i]).down(options.treeTag)
+ };
+
+ /* Get the element containing the children and recurse over it */
+ if (child.container)
+ this._tree(child.container, options, child);
+
+ parent.children.push (child);
+ }
+
+ return parent;
+ },
+
+ tree: function(element) {
+ element = $(element);
+ var sortableOptions = this.options(element);
+ var options = Object.extend({
+ tag: sortableOptions.tag,
+ treeTag: sortableOptions.treeTag,
+ only: sortableOptions.only,
+ name: element.id,
+ format: sortableOptions.format
+ }, arguments[1] || { });
+
+ var root = {
+ id: null,
+ parent: null,
+ children: [],
+ container: element,
+ position: 0
+ };
+
+ return Sortable._tree(element, options, root);
+ },
+
+ /* Construct a [i] index for a particular node */
+ _constructIndex: function(node) {
+ var index = '';
+ do {
+ if (node.id) index = '[' + node.position + ']' + index;
+ } while ((node = node.parent) != null);
+ return index;
+ },
+
+ sequence: function(element) {
+ element = $(element);
+ var options = Object.extend(this.options(element), arguments[1] || { });
+
+ return $(this.findElements(element, options) || []).map( function(item) {
+ return item.id.match(options.format) ? item.id.match(options.format)[1] : '';
+ });
+ },
+
+ setSequence: function(element, new_sequence) {
+ element = $(element);
+ var options = Object.extend(this.options(element), arguments[2] || { });
+
+ var nodeMap = { };
+ this.findElements(element, options).each( function(n) {
+ if (n.id.match(options.format))
+ nodeMap[n.id.match(options.format)[1]] = [n, n.parentNode];
+ n.parentNode.removeChild(n);
+ });
+
+ new_sequence.each(function(ident) {
+ var n = nodeMap[ident];
+ if (n) {
+ n[1].appendChild(n[0]);
+ delete nodeMap[ident];
+ }
+ });
+ },
+
+ serialize: function(element) {
+ element = $(element);
+ var options = Object.extend(Sortable.options(element), arguments[1] || { });
+ var name = encodeURIComponent(
+ (arguments[1] && arguments[1].name) ? arguments[1].name : element.id);
+
+ if (options.tree) {
+ return Sortable.tree(element, arguments[1]).children.map( function (item) {
+ return [name + Sortable._constructIndex(item) + "[id]=" +
+ encodeURIComponent(item.id)].concat(item.children.map(arguments.callee));
+ }).flatten().join('&');
+ } else {
+ return Sortable.sequence(element, arguments[1]).map( function(item) {
+ return name + "[]=" + encodeURIComponent(item);
+ }).join('&');
+ }
+ }
+};
+
+// Returns true if child is contained within element
+Element.isParent = function(child, element) {
+ if (!child.parentNode || child == element) return false;
+ if (child.parentNode == element) return true;
+ return Element.isParent(child.parentNode, element);
+};
+
+Element.findChildren = function(element, only, recursive, tagName) {
+ if(!element.hasChildNodes()) return null;
+ tagName = tagName.toUpperCase();
+ if(only) only = [only].flatten();
+ var elements = [];
+ $A(element.childNodes).each( function(e) {
+ if(e.tagName && e.tagName.toUpperCase()==tagName &&
+ (!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
+ elements.push(e);
+ if(recursive) {
+ var grandchildren = Element.findChildren(e, only, recursive, tagName);
+ if(grandchildren) elements.push(grandchildren);
+ }
+ });
+
+ return (elements.length>0 ? elements.flatten() : []);
+};
+
+Element.offsetSize = function (element, type) {
+ return element['offset' + ((type=='vertical' || type=='height') ? 'Height' : 'Width')];
+}; \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/effects.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/effects.js
new file mode 100644
index 00000000..860ddc09
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/effects.js
@@ -0,0 +1,1123 @@
+// script.aculo.us effects.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+// Contributors:
+// Justin Palmer (http://encytemedia.com/)
+// Mark Pilgrim (http://diveintomark.org/)
+// Martin Bialasinki
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+// converts rgb() and #xxx to #xxxxxx format,
+// returns self (or first argument) if not convertable
+String.prototype.parseColor = function() {
+ var color = '#';
+ if (this.slice(0,4) == 'rgb(') {
+ var cols = this.slice(4,this.length-1).split(',');
+ var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);
+ } else {
+ if (this.slice(0,1) == '#') {
+ if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase();
+ if (this.length==7) color = this.toLowerCase();
+ }
+ }
+ return (color.length==7 ? color : (arguments[0] || this));
+};
+
+/*--------------------------------------------------------------------------*/
+
+Element.collectTextNodes = function(element) {
+ return $A($(element).childNodes).collect( function(node) {
+ return (node.nodeType==3 ? node.nodeValue :
+ (node.hasChildNodes() ? Element.collectTextNodes(node) : ''));
+ }).flatten().join('');
+};
+
+Element.collectTextNodesIgnoreClass = function(element, className) {
+ return $A($(element).childNodes).collect( function(node) {
+ return (node.nodeType==3 ? node.nodeValue :
+ ((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
+ Element.collectTextNodesIgnoreClass(node, className) : ''));
+ }).flatten().join('');
+};
+
+Element.setContentZoom = function(element, percent) {
+ element = $(element);
+ element.setStyle({fontSize: (percent/100) + 'em'});
+ if (Prototype.Browser.WebKit) window.scrollBy(0,0);
+ return element;
+};
+
+Element.getInlineOpacity = function(element){
+ return $(element).style.opacity || '';
+};
+
+Element.forceRerendering = function(element) {
+ try {
+ element = $(element);
+ var n = document.createTextNode(' ');
+ element.appendChild(n);
+ element.removeChild(n);
+ } catch(e) { }
+};
+
+/*--------------------------------------------------------------------------*/
+
+var Effect = {
+ _elementDoesNotExistError: {
+ name: 'ElementDoesNotExistError',
+ message: 'The specified DOM element does not exist, but is required for this effect to operate'
+ },
+ Transitions: {
+ linear: Prototype.K,
+ sinoidal: function(pos) {
+ return (-Math.cos(pos*Math.PI)/2) + .5;
+ },
+ reverse: function(pos) {
+ return 1-pos;
+ },
+ flicker: function(pos) {
+ var pos = ((-Math.cos(pos*Math.PI)/4) + .75) + Math.random()/4;
+ return pos > 1 ? 1 : pos;
+ },
+ wobble: function(pos) {
+ return (-Math.cos(pos*Math.PI*(9*pos))/2) + .5;
+ },
+ pulse: function(pos, pulses) {
+ return (-Math.cos((pos*((pulses||5)-.5)*2)*Math.PI)/2) + .5;
+ },
+ spring: function(pos) {
+ return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6));
+ },
+ none: function(pos) {
+ return 0;
+ },
+ full: function(pos) {
+ return 1;
+ }
+ },
+ DefaultOptions: {
+ duration: 1.0, // seconds
+ fps: 100, // 100= assume 66fps max.
+ sync: false, // true for combining
+ from: 0.0,
+ to: 1.0,
+ delay: 0.0,
+ queue: 'parallel'
+ },
+ tagifyText: function(element) {
+ var tagifyStyle = 'position:relative';
+ if (Prototype.Browser.IE) tagifyStyle += ';zoom:1';
+
+ element = $(element);
+ $A(element.childNodes).each( function(child) {
+ if (child.nodeType==3) {
+ child.nodeValue.toArray().each( function(character) {
+ element.insertBefore(
+ new Element('span', {style: tagifyStyle}).update(
+ character == ' ' ? String.fromCharCode(160) : character),
+ child);
+ });
+ Element.remove(child);
+ }
+ });
+ },
+ multiple: function(element, effect) {
+ var elements;
+ if (((typeof element == 'object') ||
+ Object.isFunction(element)) &&
+ (element.length))
+ elements = element;
+ else
+ elements = $(element).childNodes;
+
+ var options = Object.extend({
+ speed: 0.1,
+ delay: 0.0
+ }, arguments[2] || { });
+ var masterDelay = options.delay;
+
+ $A(elements).each( function(element, index) {
+ new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay }));
+ });
+ },
+ PAIRS: {
+ 'slide': ['SlideDown','SlideUp'],
+ 'blind': ['BlindDown','BlindUp'],
+ 'appear': ['Appear','Fade']
+ },
+ toggle: function(element, effect, options) {
+ element = $(element);
+ effect = (effect || 'appear').toLowerCase();
+
+ return Effect[ Effect.PAIRS[ effect ][ element.visible() ? 1 : 0 ] ](element, Object.extend({
+ queue: { position:'end', scope:(element.id || 'global'), limit: 1 }
+ }, options || {}));
+ }
+};
+
+Effect.DefaultOptions.transition = Effect.Transitions.sinoidal;
+
+/* ------------- core effects ------------- */
+
+Effect.ScopedQueue = Class.create(Enumerable, {
+ initialize: function() {
+ this.effects = [];
+ this.interval = null;
+ },
+ _each: function(iterator) {
+ this.effects._each(iterator);
+ },
+ add: function(effect) {
+ var timestamp = new Date().getTime();
+
+ var position = Object.isString(effect.options.queue) ?
+ effect.options.queue : effect.options.queue.position;
+
+ switch(position) {
+ case 'front':
+ // move unstarted effects after this effect
+ this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
+ e.startOn += effect.finishOn;
+ e.finishOn += effect.finishOn;
+ });
+ break;
+ case 'with-last':
+ timestamp = this.effects.pluck('startOn').max() || timestamp;
+ break;
+ case 'end':
+ // start effect after last queued effect has finished
+ timestamp = this.effects.pluck('finishOn').max() || timestamp;
+ break;
+ }
+
+ effect.startOn += timestamp;
+ effect.finishOn += timestamp;
+
+ if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit))
+ this.effects.push(effect);
+
+ if (!this.interval)
+ this.interval = setInterval(this.loop.bind(this), 15);
+ },
+ remove: function(effect) {
+ this.effects = this.effects.reject(function(e) { return e==effect });
+ if (this.effects.length == 0) {
+ clearInterval(this.interval);
+ this.interval = null;
+ }
+ },
+ loop: function() {
+ var timePos = new Date().getTime();
+ for(var i=0, len=this.effects.length;i<len;i++)
+ this.effects[i] && this.effects[i].loop(timePos);
+ }
+});
+
+Effect.Queues = {
+ instances: $H(),
+ get: function(queueName) {
+ if (!Object.isString(queueName)) return queueName;
+
+ return this.instances.get(queueName) ||
+ this.instances.set(queueName, new Effect.ScopedQueue());
+ }
+};
+Effect.Queue = Effect.Queues.get('global');
+
+Effect.Base = Class.create({
+ position: null,
+ start: function(options) {
+ if (options && options.transition === false) options.transition = Effect.Transitions.linear;
+ this.options = Object.extend(Object.extend({ },Effect.DefaultOptions), options || { });
+ this.currentFrame = 0;
+ this.state = 'idle';
+ this.startOn = this.options.delay*1000;
+ this.finishOn = this.startOn+(this.options.duration*1000);
+ this.fromToDelta = this.options.to-this.options.from;
+ this.totalTime = this.finishOn-this.startOn;
+ this.totalFrames = this.options.fps*this.options.duration;
+
+ this.render = (function() {
+ function dispatch(effect, eventName) {
+ if (effect.options[eventName + 'Internal'])
+ effect.options[eventName + 'Internal'](effect);
+ if (effect.options[eventName])
+ effect.options[eventName](effect);
+ }
+
+ return function(pos) {
+ if (this.state === "idle") {
+ this.state = "running";
+ dispatch(this, 'beforeSetup');
+ if (this.setup) this.setup();
+ dispatch(this, 'afterSetup');
+ }
+ if (this.state === "running") {
+ pos = (this.options.transition(pos) * this.fromToDelta) + this.options.from;
+ this.position = pos;
+ dispatch(this, 'beforeUpdate');
+ if (this.update) this.update(pos);
+ dispatch(this, 'afterUpdate');
+ }
+ };
+ })();
+
+ this.event('beforeStart');
+ if (!this.options.sync)
+ Effect.Queues.get(Object.isString(this.options.queue) ?
+ 'global' : this.options.queue.scope).add(this);
+ },
+ loop: function(timePos) {
+ if (timePos >= this.startOn) {
+ if (timePos >= this.finishOn) {
+ this.render(1.0);
+ this.cancel();
+ this.event('beforeFinish');
+ if (this.finish) this.finish();
+ this.event('afterFinish');
+ return;
+ }
+ var pos = (timePos - this.startOn) / this.totalTime,
+ frame = (pos * this.totalFrames).round();
+ if (frame > this.currentFrame) {
+ this.render(pos);
+ this.currentFrame = frame;
+ }
+ }
+ },
+ cancel: function() {
+ if (!this.options.sync)
+ Effect.Queues.get(Object.isString(this.options.queue) ?
+ 'global' : this.options.queue.scope).remove(this);
+ this.state = 'finished';
+ },
+ event: function(eventName) {
+ if (this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this);
+ if (this.options[eventName]) this.options[eventName](this);
+ },
+ inspect: function() {
+ var data = $H();
+ for(property in this)
+ if (!Object.isFunction(this[property])) data.set(property, this[property]);
+ return '#<Effect:' + data.inspect() + ',options:' + $H(this.options).inspect() + '>';
+ }
+});
+
+Effect.Parallel = Class.create(Effect.Base, {
+ initialize: function(effects) {
+ this.effects = effects || [];
+ this.start(arguments[1]);
+ },
+ update: function(position) {
+ this.effects.invoke('render', position);
+ },
+ finish: function(position) {
+ this.effects.each( function(effect) {
+ effect.render(1.0);
+ effect.cancel();
+ effect.event('beforeFinish');
+ if (effect.finish) effect.finish(position);
+ effect.event('afterFinish');
+ });
+ }
+});
+
+Effect.Tween = Class.create(Effect.Base, {
+ initialize: function(object, from, to) {
+ object = Object.isString(object) ? $(object) : object;
+ var args = $A(arguments), method = args.last(),
+ options = args.length == 5 ? args[3] : null;
+ this.method = Object.isFunction(method) ? method.bind(object) :
+ Object.isFunction(object[method]) ? object[method].bind(object) :
+ function(value) { object[method] = value };
+ this.start(Object.extend({ from: from, to: to }, options || { }));
+ },
+ update: function(position) {
+ this.method(position);
+ }
+});
+
+Effect.Event = Class.create(Effect.Base, {
+ initialize: function() {
+ this.start(Object.extend({ duration: 0 }, arguments[0] || { }));
+ },
+ update: Prototype.emptyFunction
+});
+
+Effect.Opacity = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ // make this work on IE on elements without 'layout'
+ if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
+ this.element.setStyle({zoom: 1});
+ var options = Object.extend({
+ from: this.element.getOpacity() || 0.0,
+ to: 1.0
+ }, arguments[1] || { });
+ this.start(options);
+ },
+ update: function(position) {
+ this.element.setOpacity(position);
+ }
+});
+
+Effect.Move = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({
+ x: 0,
+ y: 0,
+ mode: 'relative'
+ }, arguments[1] || { });
+ this.start(options);
+ },
+ setup: function() {
+ this.element.makePositioned();
+ this.originalLeft = parseFloat(this.element.getStyle('left') || '0');
+ this.originalTop = parseFloat(this.element.getStyle('top') || '0');
+ if (this.options.mode == 'absolute') {
+ this.options.x = this.options.x - this.originalLeft;
+ this.options.y = this.options.y - this.originalTop;
+ }
+ },
+ update: function(position) {
+ this.element.setStyle({
+ left: (this.options.x * position + this.originalLeft).round() + 'px',
+ top: (this.options.y * position + this.originalTop).round() + 'px'
+ });
+ }
+});
+
+// for backwards compatibility
+Effect.MoveBy = function(element, toTop, toLeft) {
+ return new Effect.Move(element,
+ Object.extend({ x: toLeft, y: toTop }, arguments[3] || { }));
+};
+
+Effect.Scale = Class.create(Effect.Base, {
+ initialize: function(element, percent) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({
+ scaleX: true,
+ scaleY: true,
+ scaleContent: true,
+ scaleFromCenter: false,
+ scaleMode: 'box', // 'box' or 'contents' or { } with provided values
+ scaleFrom: 100.0,
+ scaleTo: percent
+ }, arguments[2] || { });
+ this.start(options);
+ },
+ setup: function() {
+ this.restoreAfterFinish = this.options.restoreAfterFinish || false;
+ this.elementPositioning = this.element.getStyle('position');
+
+ this.originalStyle = { };
+ ['top','left','width','height','fontSize'].each( function(k) {
+ this.originalStyle[k] = this.element.style[k];
+ }.bind(this));
+
+ this.originalTop = this.element.offsetTop;
+ this.originalLeft = this.element.offsetLeft;
+
+ var fontSize = this.element.getStyle('font-size') || '100%';
+ ['em','px','%','pt'].each( function(fontSizeType) {
+ if (fontSize.indexOf(fontSizeType)>0) {
+ this.fontSize = parseFloat(fontSize);
+ this.fontSizeType = fontSizeType;
+ }
+ }.bind(this));
+
+ this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;
+
+ this.dims = null;
+ if (this.options.scaleMode=='box')
+ this.dims = [this.element.offsetHeight, this.element.offsetWidth];
+ if (/^content/.test(this.options.scaleMode))
+ this.dims = [this.element.scrollHeight, this.element.scrollWidth];
+ if (!this.dims)
+ this.dims = [this.options.scaleMode.originalHeight,
+ this.options.scaleMode.originalWidth];
+ },
+ update: function(position) {
+ var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position);
+ if (this.options.scaleContent && this.fontSize)
+ this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType });
+ this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale);
+ },
+ finish: function(position) {
+ if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle);
+ },
+ setDimensions: function(height, width) {
+ var d = { };
+ if (this.options.scaleX) d.width = width.round() + 'px';
+ if (this.options.scaleY) d.height = height.round() + 'px';
+ if (this.options.scaleFromCenter) {
+ var topd = (height - this.dims[0])/2;
+ var leftd = (width - this.dims[1])/2;
+ if (this.elementPositioning == 'absolute') {
+ if (this.options.scaleY) d.top = this.originalTop-topd + 'px';
+ if (this.options.scaleX) d.left = this.originalLeft-leftd + 'px';
+ } else {
+ if (this.options.scaleY) d.top = -topd + 'px';
+ if (this.options.scaleX) d.left = -leftd + 'px';
+ }
+ }
+ this.element.setStyle(d);
+ }
+});
+
+Effect.Highlight = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { });
+ this.start(options);
+ },
+ setup: function() {
+ // Prevent executing on elements not in the layout flow
+ if (this.element.getStyle('display')=='none') { this.cancel(); return; }
+ // Disable background image during the effect
+ this.oldStyle = { };
+ if (!this.options.keepBackgroundImage) {
+ this.oldStyle.backgroundImage = this.element.getStyle('background-image');
+ this.element.setStyle({backgroundImage: 'none'});
+ }
+ if (!this.options.endcolor)
+ this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff');
+ if (!this.options.restorecolor)
+ this.options.restorecolor = this.element.getStyle('background-color');
+ // init color calculations
+ this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));
+ this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] }.bind(this));
+ },
+ update: function(position) {
+ this.element.setStyle({backgroundColor: $R(0,2).inject('#',function(m,v,i){
+ return m+((this._base[i]+(this._delta[i]*position)).round().toColorPart()); }.bind(this)) });
+ },
+ finish: function() {
+ this.element.setStyle(Object.extend(this.oldStyle, {
+ backgroundColor: this.options.restorecolor
+ }));
+ }
+});
+
+Effect.ScrollTo = function(element) {
+ var options = arguments[1] || { },
+ scrollOffsets = document.viewport.getScrollOffsets(),
+ elementOffsets = $(element).cumulativeOffset();
+
+ if (options.offset) elementOffsets[1] += options.offset;
+
+ return new Effect.Tween(null,
+ scrollOffsets.top,
+ elementOffsets[1],
+ options,
+ function(p){ scrollTo(scrollOffsets.left, p.round()); }
+ );
+};
+
+/* ------------- combination effects ------------- */
+
+Effect.Fade = function(element) {
+ element = $(element);
+ var oldOpacity = element.getInlineOpacity();
+ var options = Object.extend({
+ from: element.getOpacity() || 1.0,
+ to: 0.0,
+ afterFinishInternal: function(effect) {
+ if (effect.options.to!=0) return;
+ effect.element.hide().setStyle({opacity: oldOpacity});
+ }
+ }, arguments[1] || { });
+ return new Effect.Opacity(element,options);
+};
+
+Effect.Appear = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ from: (element.getStyle('display') == 'none' ? 0.0 : element.getOpacity() || 0.0),
+ to: 1.0,
+ // force Safari to render floated elements properly
+ afterFinishInternal: function(effect) {
+ effect.element.forceRerendering();
+ },
+ beforeSetup: function(effect) {
+ effect.element.setOpacity(effect.options.from).show();
+ }}, arguments[1] || { });
+ return new Effect.Opacity(element,options);
+};
+
+Effect.Puff = function(element) {
+ element = $(element);
+ var oldStyle = {
+ opacity: element.getInlineOpacity(),
+ position: element.getStyle('position'),
+ top: element.style.top,
+ left: element.style.left,
+ width: element.style.width,
+ height: element.style.height
+ };
+ return new Effect.Parallel(
+ [ new Effect.Scale(element, 200,
+ { sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }),
+ new Effect.Opacity(element, { sync: true, to: 0.0 } ) ],
+ Object.extend({ duration: 1.0,
+ beforeSetupInternal: function(effect) {
+ Position.absolutize(effect.effects[0].element);
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.hide().setStyle(oldStyle); }
+ }, arguments[1] || { })
+ );
+};
+
+Effect.BlindUp = function(element) {
+ element = $(element);
+ element.makeClipping();
+ return new Effect.Scale(element, 0,
+ Object.extend({ scaleContent: false,
+ scaleX: false,
+ restoreAfterFinish: true,
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping();
+ }
+ }, arguments[1] || { })
+ );
+};
+
+Effect.BlindDown = function(element) {
+ element = $(element);
+ var elementDimensions = element.getDimensions();
+ return new Effect.Scale(element, 100, Object.extend({
+ scaleContent: false,
+ scaleX: false,
+ scaleFrom: 0,
+ scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
+ restoreAfterFinish: true,
+ afterSetup: function(effect) {
+ effect.element.makeClipping().setStyle({height: '0px'}).show();
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.undoClipping();
+ }
+ }, arguments[1] || { }));
+};
+
+Effect.SwitchOff = function(element) {
+ element = $(element);
+ var oldOpacity = element.getInlineOpacity();
+ return new Effect.Appear(element, Object.extend({
+ duration: 0.4,
+ from: 0,
+ transition: Effect.Transitions.flicker,
+ afterFinishInternal: function(effect) {
+ new Effect.Scale(effect.element, 1, {
+ duration: 0.3, scaleFromCenter: true,
+ scaleX: false, scaleContent: false, restoreAfterFinish: true,
+ beforeSetup: function(effect) {
+ effect.element.makePositioned().makeClipping();
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: oldOpacity});
+ }
+ });
+ }
+ }, arguments[1] || { }));
+};
+
+Effect.DropOut = function(element) {
+ element = $(element);
+ var oldStyle = {
+ top: element.getStyle('top'),
+ left: element.getStyle('left'),
+ opacity: element.getInlineOpacity() };
+ return new Effect.Parallel(
+ [ new Effect.Move(element, {x: 0, y: 100, sync: true }),
+ new Effect.Opacity(element, { sync: true, to: 0.0 }) ],
+ Object.extend(
+ { duration: 0.5,
+ beforeSetup: function(effect) {
+ effect.effects[0].element.makePositioned();
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle);
+ }
+ }, arguments[1] || { }));
+};
+
+Effect.Shake = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ distance: 20,
+ duration: 0.5
+ }, arguments[1] || {});
+ var distance = parseFloat(options.distance);
+ var split = parseFloat(options.duration) / 10.0;
+ var oldStyle = {
+ top: element.getStyle('top'),
+ left: element.getStyle('left') };
+ return new Effect.Move(element,
+ { x: distance, y: 0, duration: split, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: distance*2, y: 0, duration: split*2, afterFinishInternal: function(effect) {
+ new Effect.Move(effect.element,
+ { x: -distance, y: 0, duration: split, afterFinishInternal: function(effect) {
+ effect.element.undoPositioned().setStyle(oldStyle);
+ }}); }}); }}); }}); }}); }});
+};
+
+Effect.SlideDown = function(element) {
+ element = $(element).cleanWhitespace();
+ // SlideDown need to have the content of the element wrapped in a container element with fixed height!
+ var oldInnerBottom = element.down().getStyle('bottom');
+ var elementDimensions = element.getDimensions();
+ return new Effect.Scale(element, 100, Object.extend({
+ scaleContent: false,
+ scaleX: false,
+ scaleFrom: window.opera ? 0 : 1,
+ scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
+ restoreAfterFinish: true,
+ afterSetup: function(effect) {
+ effect.element.makePositioned();
+ effect.element.down().makePositioned();
+ if (window.opera) effect.element.setStyle({top: ''});
+ effect.element.makeClipping().setStyle({height: '0px'}).show();
+ },
+ afterUpdateInternal: function(effect) {
+ effect.element.down().setStyle({bottom:
+ (effect.dims[0] - effect.element.clientHeight) + 'px' });
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.undoClipping().undoPositioned();
+ effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom}); }
+ }, arguments[1] || { })
+ );
+};
+
+Effect.SlideUp = function(element) {
+ element = $(element).cleanWhitespace();
+ var oldInnerBottom = element.down().getStyle('bottom');
+ var elementDimensions = element.getDimensions();
+ return new Effect.Scale(element, window.opera ? 0 : 1,
+ Object.extend({ scaleContent: false,
+ scaleX: false,
+ scaleMode: 'box',
+ scaleFrom: 100,
+ scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
+ restoreAfterFinish: true,
+ afterSetup: function(effect) {
+ effect.element.makePositioned();
+ effect.element.down().makePositioned();
+ if (window.opera) effect.element.setStyle({top: ''});
+ effect.element.makeClipping().show();
+ },
+ afterUpdateInternal: function(effect) {
+ effect.element.down().setStyle({bottom:
+ (effect.dims[0] - effect.element.clientHeight) + 'px' });
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping().undoPositioned();
+ effect.element.down().undoPositioned().setStyle({bottom: oldInnerBottom});
+ }
+ }, arguments[1] || { })
+ );
+};
+
+// Bug in opera makes the TD containing this element expand for a instance after finish
+Effect.Squish = function(element) {
+ return new Effect.Scale(element, window.opera ? 1 : 0, {
+ restoreAfterFinish: true,
+ beforeSetup: function(effect) {
+ effect.element.makeClipping();
+ },
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping();
+ }
+ });
+};
+
+Effect.Grow = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ direction: 'center',
+ moveTransition: Effect.Transitions.sinoidal,
+ scaleTransition: Effect.Transitions.sinoidal,
+ opacityTransition: Effect.Transitions.full
+ }, arguments[1] || { });
+ var oldStyle = {
+ top: element.style.top,
+ left: element.style.left,
+ height: element.style.height,
+ width: element.style.width,
+ opacity: element.getInlineOpacity() };
+
+ var dims = element.getDimensions();
+ var initialMoveX, initialMoveY;
+ var moveX, moveY;
+
+ switch (options.direction) {
+ case 'top-left':
+ initialMoveX = initialMoveY = moveX = moveY = 0;
+ break;
+ case 'top-right':
+ initialMoveX = dims.width;
+ initialMoveY = moveY = 0;
+ moveX = -dims.width;
+ break;
+ case 'bottom-left':
+ initialMoveX = moveX = 0;
+ initialMoveY = dims.height;
+ moveY = -dims.height;
+ break;
+ case 'bottom-right':
+ initialMoveX = dims.width;
+ initialMoveY = dims.height;
+ moveX = -dims.width;
+ moveY = -dims.height;
+ break;
+ case 'center':
+ initialMoveX = dims.width / 2;
+ initialMoveY = dims.height / 2;
+ moveX = -dims.width / 2;
+ moveY = -dims.height / 2;
+ break;
+ }
+
+ return new Effect.Move(element, {
+ x: initialMoveX,
+ y: initialMoveY,
+ duration: 0.01,
+ beforeSetup: function(effect) {
+ effect.element.hide().makeClipping().makePositioned();
+ },
+ afterFinishInternal: function(effect) {
+ new Effect.Parallel(
+ [ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }),
+ new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }),
+ new Effect.Scale(effect.element, 100, {
+ scaleMode: { originalHeight: dims.height, originalWidth: dims.width },
+ sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true})
+ ], Object.extend({
+ beforeSetup: function(effect) {
+ effect.effects[0].element.setStyle({height: '0px'}).show();
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle);
+ }
+ }, options)
+ );
+ }
+ });
+};
+
+Effect.Shrink = function(element) {
+ element = $(element);
+ var options = Object.extend({
+ direction: 'center',
+ moveTransition: Effect.Transitions.sinoidal,
+ scaleTransition: Effect.Transitions.sinoidal,
+ opacityTransition: Effect.Transitions.none
+ }, arguments[1] || { });
+ var oldStyle = {
+ top: element.style.top,
+ left: element.style.left,
+ height: element.style.height,
+ width: element.style.width,
+ opacity: element.getInlineOpacity() };
+
+ var dims = element.getDimensions();
+ var moveX, moveY;
+
+ switch (options.direction) {
+ case 'top-left':
+ moveX = moveY = 0;
+ break;
+ case 'top-right':
+ moveX = dims.width;
+ moveY = 0;
+ break;
+ case 'bottom-left':
+ moveX = 0;
+ moveY = dims.height;
+ break;
+ case 'bottom-right':
+ moveX = dims.width;
+ moveY = dims.height;
+ break;
+ case 'center':
+ moveX = dims.width / 2;
+ moveY = dims.height / 2;
+ break;
+ }
+
+ return new Effect.Parallel(
+ [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }),
+ new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}),
+ new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition })
+ ], Object.extend({
+ beforeStartInternal: function(effect) {
+ effect.effects[0].element.makePositioned().makeClipping();
+ },
+ afterFinishInternal: function(effect) {
+ effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); }
+ }, options)
+ );
+};
+
+Effect.Pulsate = function(element) {
+ element = $(element);
+ var options = arguments[1] || { },
+ oldOpacity = element.getInlineOpacity(),
+ transition = options.transition || Effect.Transitions.linear,
+ reverser = function(pos){
+ return 1 - transition((-Math.cos((pos*(options.pulses||5)*2)*Math.PI)/2) + .5);
+ };
+
+ return new Effect.Opacity(element,
+ Object.extend(Object.extend({ duration: 2.0, from: 0,
+ afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); }
+ }, options), {transition: reverser}));
+};
+
+Effect.Fold = function(element) {
+ element = $(element);
+ var oldStyle = {
+ top: element.style.top,
+ left: element.style.left,
+ width: element.style.width,
+ height: element.style.height };
+ element.makeClipping();
+ return new Effect.Scale(element, 5, Object.extend({
+ scaleContent: false,
+ scaleX: false,
+ afterFinishInternal: function(effect) {
+ new Effect.Scale(element, 1, {
+ scaleContent: false,
+ scaleY: false,
+ afterFinishInternal: function(effect) {
+ effect.element.hide().undoClipping().setStyle(oldStyle);
+ } });
+ }}, arguments[1] || { }));
+};
+
+Effect.Morph = Class.create(Effect.Base, {
+ initialize: function(element) {
+ this.element = $(element);
+ if (!this.element) throw(Effect._elementDoesNotExistError);
+ var options = Object.extend({
+ style: { }
+ }, arguments[1] || { });
+
+ if (!Object.isString(options.style)) this.style = $H(options.style);
+ else {
+ if (options.style.include(':'))
+ this.style = options.style.parseStyle();
+ else {
+ this.element.addClassName(options.style);
+ this.style = $H(this.element.getStyles());
+ this.element.removeClassName(options.style);
+ var css = this.element.getStyles();
+ this.style = this.style.reject(function(style) {
+ return style.value == css[style.key];
+ });
+ options.afterFinishInternal = function(effect) {
+ effect.element.addClassName(effect.options.style);
+ effect.transforms.each(function(transform) {
+ effect.element.style[transform.style] = '';
+ });
+ };
+ }
+ }
+ this.start(options);
+ },
+
+ setup: function(){
+ function parseColor(color){
+ if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff';
+ color = color.parseColor();
+ return $R(0,2).map(function(i){
+ return parseInt( color.slice(i*2+1,i*2+3), 16 );
+ });
+ }
+ this.transforms = this.style.map(function(pair){
+ var property = pair[0], value = pair[1], unit = null;
+
+ if (value.parseColor('#zzzzzz') != '#zzzzzz') {
+ value = value.parseColor();
+ unit = 'color';
+ } else if (property == 'opacity') {
+ value = parseFloat(value);
+ if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout))
+ this.element.setStyle({zoom: 1});
+ } else if (Element.CSS_LENGTH.test(value)) {
+ var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/);
+ value = parseFloat(components[1]);
+ unit = (components.length == 3) ? components[2] : null;
+ }
+
+ var originalValue = this.element.getStyle(property);
+ return {
+ style: property.camelize(),
+ originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0),
+ targetValue: unit=='color' ? parseColor(value) : value,
+ unit: unit
+ };
+ }.bind(this)).reject(function(transform){
+ return (
+ (transform.originalValue == transform.targetValue) ||
+ (
+ transform.unit != 'color' &&
+ (isNaN(transform.originalValue) || isNaN(transform.targetValue))
+ )
+ );
+ });
+ },
+ update: function(position) {
+ var style = { }, transform, i = this.transforms.length;
+ while(i--)
+ style[(transform = this.transforms[i]).style] =
+ transform.unit=='color' ? '#'+
+ (Math.round(transform.originalValue[0]+
+ (transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() +
+ (Math.round(transform.originalValue[1]+
+ (transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart() +
+ (Math.round(transform.originalValue[2]+
+ (transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() :
+ (transform.originalValue +
+ (transform.targetValue - transform.originalValue) * position).toFixed(3) +
+ (transform.unit === null ? '' : transform.unit);
+ this.element.setStyle(style, true);
+ }
+});
+
+Effect.Transform = Class.create({
+ initialize: function(tracks){
+ this.tracks = [];
+ this.options = arguments[1] || { };
+ this.addTracks(tracks);
+ },
+ addTracks: function(tracks){
+ tracks.each(function(track){
+ track = $H(track);
+ var data = track.values().first();
+ this.tracks.push($H({
+ ids: track.keys().first(),
+ effect: Effect.Morph,
+ options: { style: data }
+ }));
+ }.bind(this));
+ return this;
+ },
+ play: function(){
+ return new Effect.Parallel(
+ this.tracks.map(function(track){
+ var ids = track.get('ids'), effect = track.get('effect'), options = track.get('options');
+ var elements = [$(ids) || $$(ids)].flatten();
+ return elements.map(function(e){ return new effect(e, Object.extend({ sync:true }, options)) });
+ }).flatten(),
+ this.options
+ );
+ }
+});
+
+Element.CSS_PROPERTIES = $w(
+ 'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' +
+ 'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' +
+ 'borderRightColor borderRightStyle borderRightWidth borderSpacing ' +
+ 'borderTopColor borderTopStyle borderTopWidth bottom clip color ' +
+ 'fontSize fontWeight height left letterSpacing lineHeight ' +
+ 'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+
+ 'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' +
+ 'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' +
+ 'right textIndent top width wordSpacing zIndex');
+
+Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;
+
+String.__parseStyleElement = document.createElement('div');
+String.prototype.parseStyle = function(){
+ var style, styleRules = $H();
+ if (Prototype.Browser.WebKit)
+ style = new Element('div',{style:this}).style;
+ else {
+ String.__parseStyleElement.innerHTML = '<div style="' + this + '"></div>';
+ style = String.__parseStyleElement.childNodes[0].style;
+ }
+
+ Element.CSS_PROPERTIES.each(function(property){
+ if (style[property]) styleRules.set(property, style[property]);
+ });
+
+ if (Prototype.Browser.IE && this.include('opacity'))
+ styleRules.set('opacity', this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]);
+
+ return styleRules;
+};
+
+if (document.defaultView && document.defaultView.getComputedStyle) {
+ Element.getStyles = function(element) {
+ var css = document.defaultView.getComputedStyle($(element), null);
+ return Element.CSS_PROPERTIES.inject({ }, function(styles, property) {
+ styles[property] = css[property];
+ return styles;
+ });
+ };
+} else {
+ Element.getStyles = function(element) {
+ element = $(element);
+ var css = element.currentStyle, styles;
+ styles = Element.CSS_PROPERTIES.inject({ }, function(results, property) {
+ results[property] = css[property];
+ return results;
+ });
+ if (!styles.opacity) styles.opacity = element.getOpacity();
+ return styles;
+ };
+}
+
+Effect.Methods = {
+ morph: function(element, style) {
+ element = $(element);
+ new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { }));
+ return element;
+ },
+ visualEffect: function(element, effect, options) {
+ element = $(element);
+ var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1);
+ new Effect[klass](element, options);
+ return element;
+ },
+ highlight: function(element, options) {
+ element = $(element);
+ new Effect.Highlight(element, options);
+ return element;
+ }
+};
+
+$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+
+ 'pulsate shake puff squish switchOff dropOut').each(
+ function(effect) {
+ Effect.Methods[effect] = function(element, options){
+ element = $(element);
+ Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);
+ return element;
+ };
+ }
+);
+
+$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each(
+ function(f) { Effect.Methods[f] = Element[f]; }
+);
+
+Element.addMethods(Effect.Methods); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/scriptaculous.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/scriptaculous.js
new file mode 100644
index 00000000..0ea5c445
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/scriptaculous.js
@@ -0,0 +1,68 @@
+// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+var Scriptaculous = {
+ Version: '1.9.0',
+ require: function(libraryName) {
+ try{
+ // inserting via DOM fails in Safari 2.0, so brute force approach
+ document.write('<script type="text/javascript" src="'+libraryName+'"><\/script>');
+ } catch(e) {
+ // for xhtml+xml served content, fall back to DOM methods
+ var script = document.createElement('script');
+ script.type = 'text/javascript';
+ script.src = libraryName;
+ document.getElementsByTagName('head')[0].appendChild(script);
+ }
+ },
+ REQUIRED_PROTOTYPE: '1.6.0.3',
+ load: function() {
+ function convertVersionString(versionString) {
+ var v = versionString.replace(/_.*|\./g, '');
+ v = parseInt(v + '0'.times(4-v.length));
+ return versionString.indexOf('_') > -1 ? v-1 : v;
+ }
+
+ if((typeof Prototype=='undefined') ||
+ (typeof Element == 'undefined') ||
+ (typeof Element.Methods=='undefined') ||
+ (convertVersionString(Prototype.Version) <
+ convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))
+ throw("script.aculo.us requires the Prototype JavaScript framework >= " +
+ Scriptaculous.REQUIRED_PROTOTYPE);
+
+ var js = /scriptaculous\.js(\?.*)?$/;
+ $$('script[src]').findAll(function(s) {
+ return s.src.match(js);
+ }).each(function(s) {
+ var path = s.src.replace(js, ''),
+ includes = s.src.match(/\?.*load=([a-z,]*)/);
+ (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
+ function(include) { Scriptaculous.require(path+include+'.js') });
+ });
+ }
+};
+
+Scriptaculous.load(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/slider.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/slider.js
new file mode 100644
index 00000000..438e6892
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/slider.js
@@ -0,0 +1,275 @@
+// script.aculo.us slider.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Marty Haught, Thomas Fuchs
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+if (!Control) var Control = { };
+
+// options:
+// axis: 'vertical', or 'horizontal' (default)
+//
+// callbacks:
+// onChange(value)
+// onSlide(value)
+Control.Slider = Class.create({
+ initialize: function(handle, track, options) {
+ var slider = this;
+
+ if (Object.isArray(handle)) {
+ this.handles = handle.collect( function(e) { return $(e) });
+ } else {
+ this.handles = [$(handle)];
+ }
+
+ this.track = $(track);
+ this.options = options || { };
+
+ this.axis = this.options.axis || 'horizontal';
+ this.increment = this.options.increment || 1;
+ this.step = parseInt(this.options.step || '1');
+ this.range = this.options.range || $R(0,1);
+
+ this.value = 0; // assure backwards compat
+ this.values = this.handles.map( function() { return 0 });
+ this.spans = this.options.spans ? this.options.spans.map(function(s){ return $(s) }) : false;
+ this.options.startSpan = $(this.options.startSpan || null);
+ this.options.endSpan = $(this.options.endSpan || null);
+
+ this.restricted = this.options.restricted || false;
+
+ this.maximum = this.options.maximum || this.range.end;
+ this.minimum = this.options.minimum || this.range.start;
+
+ // Will be used to align the handle onto the track, if necessary
+ this.alignX = parseInt(this.options.alignX || '0');
+ this.alignY = parseInt(this.options.alignY || '0');
+
+ this.trackLength = this.maximumOffset() - this.minimumOffset();
+
+ this.handleLength = this.isVertical() ?
+ (this.handles[0].offsetHeight != 0 ?
+ this.handles[0].offsetHeight : this.handles[0].style.height.replace(/px$/,"")) :
+ (this.handles[0].offsetWidth != 0 ? this.handles[0].offsetWidth :
+ this.handles[0].style.width.replace(/px$/,""));
+
+ this.active = false;
+ this.dragging = false;
+ this.disabled = false;
+
+ if (this.options.disabled) this.setDisabled();
+
+ // Allowed values array
+ this.allowedValues = this.options.values ? this.options.values.sortBy(Prototype.K) : false;
+ if (this.allowedValues) {
+ this.minimum = this.allowedValues.min();
+ this.maximum = this.allowedValues.max();
+ }
+
+ this.eventMouseDown = this.startDrag.bindAsEventListener(this);
+ this.eventMouseUp = this.endDrag.bindAsEventListener(this);
+ this.eventMouseMove = this.update.bindAsEventListener(this);
+
+ // Initialize handles in reverse (make sure first handle is active)
+ this.handles.each( function(h,i) {
+ i = slider.handles.length-1-i;
+ slider.setValue(parseFloat(
+ (Object.isArray(slider.options.sliderValue) ?
+ slider.options.sliderValue[i] : slider.options.sliderValue) ||
+ slider.range.start), i);
+ h.makePositioned().observe("mousedown", slider.eventMouseDown);
+ });
+
+ this.track.observe("mousedown", this.eventMouseDown);
+ document.observe("mouseup", this.eventMouseUp);
+ document.observe("mousemove", this.eventMouseMove);
+
+ this.initialized = true;
+ },
+ dispose: function() {
+ var slider = this;
+ Event.stopObserving(this.track, "mousedown", this.eventMouseDown);
+ Event.stopObserving(document, "mouseup", this.eventMouseUp);
+ Event.stopObserving(document, "mousemove", this.eventMouseMove);
+ this.handles.each( function(h) {
+ Event.stopObserving(h, "mousedown", slider.eventMouseDown);
+ });
+ },
+ setDisabled: function(){
+ this.disabled = true;
+ },
+ setEnabled: function(){
+ this.disabled = false;
+ },
+ getNearestValue: function(value){
+ if (this.allowedValues){
+ if (value >= this.allowedValues.max()) return(this.allowedValues.max());
+ if (value <= this.allowedValues.min()) return(this.allowedValues.min());
+
+ var offset = Math.abs(this.allowedValues[0] - value);
+ var newValue = this.allowedValues[0];
+ this.allowedValues.each( function(v) {
+ var currentOffset = Math.abs(v - value);
+ if (currentOffset <= offset){
+ newValue = v;
+ offset = currentOffset;
+ }
+ });
+ return newValue;
+ }
+ if (value > this.range.end) return this.range.end;
+ if (value < this.range.start) return this.range.start;
+ return value;
+ },
+ setValue: function(sliderValue, handleIdx){
+ if (!this.active) {
+ this.activeHandleIdx = handleIdx || 0;
+ this.activeHandle = this.handles[this.activeHandleIdx];
+ this.updateStyles();
+ }
+ handleIdx = handleIdx || this.activeHandleIdx || 0;
+ if (this.initialized && this.restricted) {
+ if ((handleIdx>0) && (sliderValue<this.values[handleIdx-1]))
+ sliderValue = this.values[handleIdx-1];
+ if ((handleIdx < (this.handles.length-1)) && (sliderValue>this.values[handleIdx+1]))
+ sliderValue = this.values[handleIdx+1];
+ }
+ sliderValue = this.getNearestValue(sliderValue);
+ this.values[handleIdx] = sliderValue;
+ this.value = this.values[0]; // assure backwards compat
+
+ this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] =
+ this.translateToPx(sliderValue);
+
+ this.drawSpans();
+ if (!this.dragging || !this.event) this.updateFinished();
+ },
+ setValueBy: function(delta, handleIdx) {
+ this.setValue(this.values[handleIdx || this.activeHandleIdx || 0] + delta,
+ handleIdx || this.activeHandleIdx || 0);
+ },
+ translateToPx: function(value) {
+ return Math.round(
+ ((this.trackLength-this.handleLength)/(this.range.end-this.range.start)) *
+ (value - this.range.start)) + "px";
+ },
+ translateToValue: function(offset) {
+ return ((offset/(this.trackLength-this.handleLength) *
+ (this.range.end-this.range.start)) + this.range.start);
+ },
+ getRange: function(range) {
+ var v = this.values.sortBy(Prototype.K);
+ range = range || 0;
+ return $R(v[range],v[range+1]);
+ },
+ minimumOffset: function(){
+ return(this.isVertical() ? this.alignY : this.alignX);
+ },
+ maximumOffset: function(){
+ return(this.isVertical() ?
+ (this.track.offsetHeight != 0 ? this.track.offsetHeight :
+ this.track.style.height.replace(/px$/,"")) - this.alignY :
+ (this.track.offsetWidth != 0 ? this.track.offsetWidth :
+ this.track.style.width.replace(/px$/,"")) - this.alignX);
+ },
+ isVertical: function(){
+ return (this.axis == 'vertical');
+ },
+ drawSpans: function() {
+ var slider = this;
+ if (this.spans)
+ $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) });
+ if (this.options.startSpan)
+ this.setSpan(this.options.startSpan,
+ $R(0, this.values.length>1 ? this.getRange(0).min() : this.value ));
+ if (this.options.endSpan)
+ this.setSpan(this.options.endSpan,
+ $R(this.values.length>1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum));
+ },
+ setSpan: function(span, range) {
+ if (this.isVertical()) {
+ span.style.top = this.translateToPx(range.start);
+ span.style.height = this.translateToPx(range.end - range.start + this.range.start);
+ } else {
+ span.style.left = this.translateToPx(range.start);
+ span.style.width = this.translateToPx(range.end - range.start + this.range.start);
+ }
+ },
+ updateStyles: function() {
+ this.handles.each( function(h){ Element.removeClassName(h, 'selected') });
+ Element.addClassName(this.activeHandle, 'selected');
+ },
+ startDrag: function(event) {
+ if (Event.isLeftClick(event)) {
+ if (!this.disabled){
+ this.active = true;
+
+ var handle = Event.element(event);
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ var track = handle;
+ if (track==this.track) {
+ var offsets = this.track.cumulativeOffset();
+ this.event = event;
+ this.setValue(this.translateToValue(
+ (this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2)
+ ));
+ var offsets = this.activeHandle.cumulativeOffset();
+ this.offsetX = (pointer[0] - offsets[0]);
+ this.offsetY = (pointer[1] - offsets[1]);
+ } else {
+ // find the handle (prevents issues with Safari)
+ while((this.handles.indexOf(handle) == -1) && handle.parentNode)
+ handle = handle.parentNode;
+
+ if (this.handles.indexOf(handle)!=-1) {
+ this.activeHandle = handle;
+ this.activeHandleIdx = this.handles.indexOf(this.activeHandle);
+ this.updateStyles();
+
+ var offsets = this.activeHandle.cumulativeOffset();
+ this.offsetX = (pointer[0] - offsets[0]);
+ this.offsetY = (pointer[1] - offsets[1]);
+ }
+ }
+ }
+ Event.stop(event);
+ }
+ },
+ update: function(event) {
+ if (this.active) {
+ if (!this.dragging) this.dragging = true;
+ this.draw(event);
+ if (Prototype.Browser.WebKit) window.scrollBy(0,0);
+ Event.stop(event);
+ }
+ },
+ draw: function(event) {
+ var pointer = [Event.pointerX(event), Event.pointerY(event)];
+ var offsets = this.track.cumulativeOffset();
+ pointer[0] -= this.offsetX + offsets[0];
+ pointer[1] -= this.offsetY + offsets[1];
+ this.event = event;
+ this.setValue(this.translateToValue( this.isVertical() ? pointer[1] : pointer[0] ));
+ if (this.initialized && this.options.onSlide)
+ this.options.onSlide(this.values.length>1 ? this.values : this.value, this);
+ },
+ endDrag: function(event) {
+ if (this.active && this.dragging) {
+ this.finishDrag(event, true);
+ Event.stop(event);
+ }
+ this.active = false;
+ this.dragging = false;
+ },
+ finishDrag: function(event, success) {
+ this.active = false;
+ this.dragging = false;
+ this.updateFinished();
+ },
+ updateFinished: function() {
+ if (this.initialized && this.options.onChange)
+ this.options.onChange(this.values.length>1 ? this.values : this.value, this);
+ this.event = null;
+ }
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/sound.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/sound.js
new file mode 100644
index 00000000..d3f84646
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/sound.js
@@ -0,0 +1,59 @@
+// script.aculo.us sound.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+//
+// Based on code created by Jules Gravinese (http://www.webveteran.com/)
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+Sound = {
+ tracks: {},
+ _enabled: true,
+ template:
+ new Template('<embed style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>'),
+ enable: function(){
+ Sound._enabled = true;
+ },
+ disable: function(){
+ Sound._enabled = false;
+ },
+ play: function(url){
+ if(!Sound._enabled) return;
+ var options = Object.extend({
+ track: 'global', url: url, replace: false
+ }, arguments[1] || {});
+
+ if(options.replace && this.tracks[options.track]) {
+ $R(0, this.tracks[options.track].id).each(function(id){
+ var sound = $('sound_'+options.track+'_'+id);
+ sound.Stop && sound.Stop();
+ sound.remove();
+ });
+ this.tracks[options.track] = null;
+ }
+
+ if(!this.tracks[options.track])
+ this.tracks[options.track] = { id: 0 };
+ else
+ this.tracks[options.track].id++;
+
+ options.id = this.tracks[options.track].id;
+ $$('body')[0].insert(
+ Prototype.Browser.IE ? new Element('bgsound',{
+ id: 'sound_'+options.track+'_'+options.id,
+ src: options.url, loop: 1, autostart: true
+ }) : Sound.template.evaluate(options));
+ }
+};
+
+if(Prototype.Browser.Gecko && navigator.userAgent.indexOf("Win") > 0){
+ if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('QuickTime') != -1 }))
+ Sound.template = new Template('<object id="sound_#{track}_#{id}" width="0" height="0" type="audio/mpeg" data="#{url}"/>');
+ else if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('Windows Media') != -1 }))
+ Sound.template = new Template('<object id="sound_#{track}_#{id}" type="application/x-mplayer2" data="#{url}"></object>');
+ else if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('RealPlayer') != -1 }))
+ Sound.template = new Template('<embed type="audio/x-pn-realaudio-plugin" style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>');
+ else
+ Sound.play = function(){};
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/scriptaculous/unittest.js b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/unittest.js
new file mode 100644
index 00000000..9555c22c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/scriptaculous/unittest.js
@@ -0,0 +1,568 @@
+// script.aculo.us unittest.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
+
+// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+// (c) 2005-2010 Jon Tirsen (http://www.tirsen.com)
+// (c) 2005-2010 Michael Schuerig (http://www.schuerig.de/michael/)
+//
+// script.aculo.us is freely distributable under the terms of an MIT-style license.
+// For details, see the script.aculo.us web site: http://script.aculo.us/
+
+// experimental, Firefox-only
+Event.simulateMouse = function(element, eventName) {
+ var options = Object.extend({
+ pointerX: 0,
+ pointerY: 0,
+ buttons: 0,
+ ctrlKey: false,
+ altKey: false,
+ shiftKey: false,
+ metaKey: false
+ }, arguments[2] || {});
+ var oEvent = document.createEvent("MouseEvents");
+ oEvent.initMouseEvent(eventName, true, true, document.defaultView,
+ options.buttons, options.pointerX, options.pointerY, options.pointerX, options.pointerY,
+ options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, 0, $(element));
+
+ if(this.mark) Element.remove(this.mark);
+ this.mark = document.createElement('div');
+ this.mark.appendChild(document.createTextNode(" "));
+ document.body.appendChild(this.mark);
+ this.mark.style.position = 'absolute';
+ this.mark.style.top = options.pointerY + "px";
+ this.mark.style.left = options.pointerX + "px";
+ this.mark.style.width = "5px";
+ this.mark.style.height = "5px;";
+ this.mark.style.borderTop = "1px solid red;";
+ this.mark.style.borderLeft = "1px solid red;";
+
+ if(this.step)
+ alert('['+new Date().getTime().toString()+'] '+eventName+'/'+Test.Unit.inspect(options));
+
+ $(element).dispatchEvent(oEvent);
+};
+
+// Note: Due to a fix in Firefox 1.0.5/6 that probably fixed "too much", this doesn't work in 1.0.6 or DP2.
+// You need to downgrade to 1.0.4 for now to get this working
+// See https://bugzilla.mozilla.org/show_bug.cgi?id=289940 for the fix that fixed too much
+Event.simulateKey = function(element, eventName) {
+ var options = Object.extend({
+ ctrlKey: false,
+ altKey: false,
+ shiftKey: false,
+ metaKey: false,
+ keyCode: 0,
+ charCode: 0
+ }, arguments[2] || {});
+
+ var oEvent = document.createEvent("KeyEvents");
+ oEvent.initKeyEvent(eventName, true, true, window,
+ options.ctrlKey, options.altKey, options.shiftKey, options.metaKey,
+ options.keyCode, options.charCode );
+ $(element).dispatchEvent(oEvent);
+};
+
+Event.simulateKeys = function(element, command) {
+ for(var i=0; i<command.length; i++) {
+ Event.simulateKey(element,'keypress',{charCode:command.charCodeAt(i)});
+ }
+};
+
+var Test = {};
+Test.Unit = {};
+
+// security exception workaround
+Test.Unit.inspect = Object.inspect;
+
+Test.Unit.Logger = Class.create();
+Test.Unit.Logger.prototype = {
+ initialize: function(log) {
+ this.log = $(log);
+ if (this.log) {
+ this._createLogTable();
+ }
+ },
+ start: function(testName) {
+ if (!this.log) return;
+ this.testName = testName;
+ this.lastLogLine = document.createElement('tr');
+ this.statusCell = document.createElement('td');
+ this.nameCell = document.createElement('td');
+ this.nameCell.className = "nameCell";
+ this.nameCell.appendChild(document.createTextNode(testName));
+ this.messageCell = document.createElement('td');
+ this.lastLogLine.appendChild(this.statusCell);
+ this.lastLogLine.appendChild(this.nameCell);
+ this.lastLogLine.appendChild(this.messageCell);
+ this.loglines.appendChild(this.lastLogLine);
+ },
+ finish: function(status, summary) {
+ if (!this.log) return;
+ this.lastLogLine.className = status;
+ this.statusCell.innerHTML = status;
+ this.messageCell.innerHTML = this._toHTML(summary);
+ this.addLinksToResults();
+ },
+ message: function(message) {
+ if (!this.log) return;
+ this.messageCell.innerHTML = this._toHTML(message);
+ },
+ summary: function(summary) {
+ if (!this.log) return;
+ this.logsummary.innerHTML = this._toHTML(summary);
+ },
+ _createLogTable: function() {
+ this.log.innerHTML =
+ '<div id="logsummary"></div>' +
+ '<table id="logtable">' +
+ '<thead><tr><th>Status</th><th>Test</th><th>Message</th></tr></thead>' +
+ '<tbody id="loglines"></tbody>' +
+ '</table>';
+ this.logsummary = $('logsummary');
+ this.loglines = $('loglines');
+ },
+ _toHTML: function(txt) {
+ return txt.escapeHTML().replace(/\n/g,"<br/>");
+ },
+ addLinksToResults: function(){
+ $$("tr.failed .nameCell").each( function(td){ // todo: limit to children of this.log
+ td.title = "Run only this test";
+ Event.observe(td, 'click', function(){ window.location.search = "?tests=" + td.innerHTML;});
+ });
+ $$("tr.passed .nameCell").each( function(td){ // todo: limit to children of this.log
+ td.title = "Run all tests";
+ Event.observe(td, 'click', function(){ window.location.search = "";});
+ });
+ }
+};
+
+Test.Unit.Runner = Class.create();
+Test.Unit.Runner.prototype = {
+ initialize: function(testcases) {
+ this.options = Object.extend({
+ testLog: 'testlog'
+ }, arguments[1] || {});
+ this.options.resultsURL = this.parseResultsURLQueryParameter();
+ this.options.tests = this.parseTestsQueryParameter();
+ if (this.options.testLog) {
+ this.options.testLog = $(this.options.testLog) || null;
+ }
+ if(this.options.tests) {
+ this.tests = [];
+ for(var i = 0; i < this.options.tests.length; i++) {
+ if(/^test/.test(this.options.tests[i])) {
+ this.tests.push(new Test.Unit.Testcase(this.options.tests[i], testcases[this.options.tests[i]], testcases["setup"], testcases["teardown"]));
+ }
+ }
+ } else {
+ if (this.options.test) {
+ this.tests = [new Test.Unit.Testcase(this.options.test, testcases[this.options.test], testcases["setup"], testcases["teardown"])];
+ } else {
+ this.tests = [];
+ for(var testcase in testcases) {
+ if(/^test/.test(testcase)) {
+ this.tests.push(
+ new Test.Unit.Testcase(
+ this.options.context ? ' -> ' + this.options.titles[testcase] : testcase,
+ testcases[testcase], testcases["setup"], testcases["teardown"]
+ ));
+ }
+ }
+ }
+ }
+ this.currentTest = 0;
+ this.logger = new Test.Unit.Logger(this.options.testLog);
+ setTimeout(this.runTests.bind(this), 1000);
+ },
+ parseResultsURLQueryParameter: function() {
+ return window.location.search.parseQuery()["resultsURL"];
+ },
+ parseTestsQueryParameter: function(){
+ if (window.location.search.parseQuery()["tests"]){
+ return window.location.search.parseQuery()["tests"].split(',');
+ };
+ },
+ // Returns:
+ // "ERROR" if there was an error,
+ // "FAILURE" if there was a failure, or
+ // "SUCCESS" if there was neither
+ getResult: function() {
+ var hasFailure = false;
+ for(var i=0;i<this.tests.length;i++) {
+ if (this.tests[i].errors > 0) {
+ return "ERROR";
+ }
+ if (this.tests[i].failures > 0) {
+ hasFailure = true;
+ }
+ }
+ if (hasFailure) {
+ return "FAILURE";
+ } else {
+ return "SUCCESS";
+ }
+ },
+ postResults: function() {
+ if (this.options.resultsURL) {
+ new Ajax.Request(this.options.resultsURL,
+ { method: 'get', parameters: 'result=' + this.getResult(), asynchronous: false });
+ }
+ },
+ runTests: function() {
+ var test = this.tests[this.currentTest];
+ if (!test) {
+ // finished!
+ this.postResults();
+ this.logger.summary(this.summary());
+ return;
+ }
+ if(!test.isWaiting) {
+ this.logger.start(test.name);
+ }
+ test.run();
+ if(test.isWaiting) {
+ this.logger.message("Waiting for " + test.timeToWait + "ms");
+ setTimeout(this.runTests.bind(this), test.timeToWait || 1000);
+ } else {
+ this.logger.finish(test.status(), test.summary());
+ this.currentTest++;
+ // tail recursive, hopefully the browser will skip the stackframe
+ this.runTests();
+ }
+ },
+ summary: function() {
+ var assertions = 0;
+ var failures = 0;
+ var errors = 0;
+ var messages = [];
+ for(var i=0;i<this.tests.length;i++) {
+ assertions += this.tests[i].assertions;
+ failures += this.tests[i].failures;
+ errors += this.tests[i].errors;
+ }
+ return (
+ (this.options.context ? this.options.context + ': ': '') +
+ this.tests.length + " tests, " +
+ assertions + " assertions, " +
+ failures + " failures, " +
+ errors + " errors");
+ }
+};
+
+Test.Unit.Assertions = Class.create();
+Test.Unit.Assertions.prototype = {
+ initialize: function() {
+ this.assertions = 0;
+ this.failures = 0;
+ this.errors = 0;
+ this.messages = [];
+ },
+ summary: function() {
+ return (
+ this.assertions + " assertions, " +
+ this.failures + " failures, " +
+ this.errors + " errors" + "\n" +
+ this.messages.join("\n"));
+ },
+ pass: function() {
+ this.assertions++;
+ },
+ fail: function(message) {
+ this.failures++;
+ this.messages.push("Failure: " + message);
+ },
+ info: function(message) {
+ this.messages.push("Info: " + message);
+ },
+ error: function(error) {
+ this.errors++;
+ this.messages.push(error.name + ": "+ error.message + "(" + Test.Unit.inspect(error) +")");
+ },
+ status: function() {
+ if (this.failures > 0) return 'failed';
+ if (this.errors > 0) return 'error';
+ return 'passed';
+ },
+ assert: function(expression) {
+ var message = arguments[1] || 'assert: got "' + Test.Unit.inspect(expression) + '"';
+ try { expression ? this.pass() :
+ this.fail(message); }
+ catch(e) { this.error(e); }
+ },
+ assertEqual: function(expected, actual) {
+ var message = arguments[2] || "assertEqual";
+ try { (expected == actual) ? this.pass() :
+ this.fail(message + ': expected "' + Test.Unit.inspect(expected) +
+ '", actual "' + Test.Unit.inspect(actual) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertInspect: function(expected, actual) {
+ var message = arguments[2] || "assertInspect";
+ try { (expected == actual.inspect()) ? this.pass() :
+ this.fail(message + ': expected "' + Test.Unit.inspect(expected) +
+ '", actual "' + Test.Unit.inspect(actual) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertEnumEqual: function(expected, actual) {
+ var message = arguments[2] || "assertEnumEqual";
+ try { $A(expected).length == $A(actual).length &&
+ expected.zip(actual).all(function(pair) { return pair[0] == pair[1] }) ?
+ this.pass() : this.fail(message + ': expected ' + Test.Unit.inspect(expected) +
+ ', actual ' + Test.Unit.inspect(actual)); }
+ catch(e) { this.error(e); }
+ },
+ assertNotEqual: function(expected, actual) {
+ var message = arguments[2] || "assertNotEqual";
+ try { (expected != actual) ? this.pass() :
+ this.fail(message + ': got "' + Test.Unit.inspect(actual) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertIdentical: function(expected, actual) {
+ var message = arguments[2] || "assertIdentical";
+ try { (expected === actual) ? this.pass() :
+ this.fail(message + ': expected "' + Test.Unit.inspect(expected) +
+ '", actual "' + Test.Unit.inspect(actual) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertNotIdentical: function(expected, actual) {
+ var message = arguments[2] || "assertNotIdentical";
+ try { !(expected === actual) ? this.pass() :
+ this.fail(message + ': expected "' + Test.Unit.inspect(expected) +
+ '", actual "' + Test.Unit.inspect(actual) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertNull: function(obj) {
+ var message = arguments[1] || 'assertNull';
+ try { (obj==null) ? this.pass() :
+ this.fail(message + ': got "' + Test.Unit.inspect(obj) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertMatch: function(expected, actual) {
+ var message = arguments[2] || 'assertMatch';
+ var regex = new RegExp(expected);
+ try { (regex.exec(actual)) ? this.pass() :
+ this.fail(message + ' : regex: "' + Test.Unit.inspect(expected) + ' did not match: ' + Test.Unit.inspect(actual) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertHidden: function(element) {
+ var message = arguments[1] || 'assertHidden';
+ this.assertEqual("none", element.style.display, message);
+ },
+ assertNotNull: function(object) {
+ var message = arguments[1] || 'assertNotNull';
+ this.assert(object != null, message);
+ },
+ assertType: function(expected, actual) {
+ var message = arguments[2] || 'assertType';
+ try {
+ (actual.constructor == expected) ? this.pass() :
+ this.fail(message + ': expected "' + Test.Unit.inspect(expected) +
+ '", actual "' + (actual.constructor) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertNotOfType: function(expected, actual) {
+ var message = arguments[2] || 'assertNotOfType';
+ try {
+ (actual.constructor != expected) ? this.pass() :
+ this.fail(message + ': expected "' + Test.Unit.inspect(expected) +
+ '", actual "' + (actual.constructor) + '"'); }
+ catch(e) { this.error(e); }
+ },
+ assertInstanceOf: function(expected, actual) {
+ var message = arguments[2] || 'assertInstanceOf';
+ try {
+ (actual instanceof expected) ? this.pass() :
+ this.fail(message + ": object was not an instance of the expected type"); }
+ catch(e) { this.error(e); }
+ },
+ assertNotInstanceOf: function(expected, actual) {
+ var message = arguments[2] || 'assertNotInstanceOf';
+ try {
+ !(actual instanceof expected) ? this.pass() :
+ this.fail(message + ": object was an instance of the not expected type"); }
+ catch(e) { this.error(e); }
+ },
+ assertRespondsTo: function(method, obj) {
+ var message = arguments[2] || 'assertRespondsTo';
+ try {
+ (obj[method] && typeof obj[method] == 'function') ? this.pass() :
+ this.fail(message + ": object doesn't respond to [" + method + "]"); }
+ catch(e) { this.error(e); }
+ },
+ assertReturnsTrue: function(method, obj) {
+ var message = arguments[2] || 'assertReturnsTrue';
+ try {
+ var m = obj[method];
+ if(!m) m = obj['is'+method.charAt(0).toUpperCase()+method.slice(1)];
+ m() ? this.pass() :
+ this.fail(message + ": method returned false"); }
+ catch(e) { this.error(e); }
+ },
+ assertReturnsFalse: function(method, obj) {
+ var message = arguments[2] || 'assertReturnsFalse';
+ try {
+ var m = obj[method];
+ if(!m) m = obj['is'+method.charAt(0).toUpperCase()+method.slice(1)];
+ !m() ? this.pass() :
+ this.fail(message + ": method returned true"); }
+ catch(e) { this.error(e); }
+ },
+ assertRaise: function(exceptionName, method) {
+ var message = arguments[2] || 'assertRaise';
+ try {
+ method();
+ this.fail(message + ": exception expected but none was raised"); }
+ catch(e) {
+ ((exceptionName == null) || (e.name==exceptionName)) ? this.pass() : this.error(e);
+ }
+ },
+ assertElementsMatch: function() {
+ var expressions = $A(arguments), elements = $A(expressions.shift());
+ if (elements.length != expressions.length) {
+ this.fail('assertElementsMatch: size mismatch: ' + elements.length + ' elements, ' + expressions.length + ' expressions');
+ return false;
+ }
+ elements.zip(expressions).all(function(pair, index) {
+ var element = $(pair.first()), expression = pair.last();
+ if (element.match(expression)) return true;
+ this.fail('assertElementsMatch: (in index ' + index + ') expected ' + expression.inspect() + ' but got ' + element.inspect());
+ }.bind(this)) && this.pass();
+ },
+ assertElementMatches: function(element, expression) {
+ this.assertElementsMatch([element], expression);
+ },
+ benchmark: function(operation, iterations) {
+ var startAt = new Date();
+ (iterations || 1).times(operation);
+ var timeTaken = ((new Date())-startAt);
+ this.info((arguments[2] || 'Operation') + ' finished ' +
+ iterations + ' iterations in ' + (timeTaken/1000)+'s' );
+ return timeTaken;
+ },
+ _isVisible: function(element) {
+ element = $(element);
+ if(!element.parentNode) return true;
+ this.assertNotNull(element);
+ if(element.style && Element.getStyle(element, 'display') == 'none')
+ return false;
+
+ return this._isVisible(element.parentNode);
+ },
+ assertNotVisible: function(element) {
+ this.assert(!this._isVisible(element), Test.Unit.inspect(element) + " was not hidden and didn't have a hidden parent either. " + ("" || arguments[1]));
+ },
+ assertVisible: function(element) {
+ this.assert(this._isVisible(element), Test.Unit.inspect(element) + " was not visible. " + ("" || arguments[1]));
+ },
+ benchmark: function(operation, iterations) {
+ var startAt = new Date();
+ (iterations || 1).times(operation);
+ var timeTaken = ((new Date())-startAt);
+ this.info((arguments[2] || 'Operation') + ' finished ' +
+ iterations + ' iterations in ' + (timeTaken/1000)+'s' );
+ return timeTaken;
+ }
+};
+
+Test.Unit.Testcase = Class.create();
+Object.extend(Object.extend(Test.Unit.Testcase.prototype, Test.Unit.Assertions.prototype), {
+ initialize: function(name, test, setup, teardown) {
+ Test.Unit.Assertions.prototype.initialize.bind(this)();
+ this.name = name;
+
+ if(typeof test == 'string') {
+ test = test.gsub(/(\.should[^\(]+\()/,'#{0}this,');
+ test = test.gsub(/(\.should[^\(]+)\(this,\)/,'#{1}(this)');
+ this.test = function() {
+ eval('with(this){'+test+'}');
+ }
+ } else {
+ this.test = test || function() {};
+ }
+
+ this.setup = setup || function() {};
+ this.teardown = teardown || function() {};
+ this.isWaiting = false;
+ this.timeToWait = 1000;
+ },
+ wait: function(time, nextPart) {
+ this.isWaiting = true;
+ this.test = nextPart;
+ this.timeToWait = time;
+ },
+ run: function() {
+ try {
+ try {
+ if (!this.isWaiting) this.setup.bind(this)();
+ this.isWaiting = false;
+ this.test.bind(this)();
+ } finally {
+ if(!this.isWaiting) {
+ this.teardown.bind(this)();
+ }
+ }
+ }
+ catch(e) { this.error(e); }
+ }
+});
+
+// *EXPERIMENTAL* BDD-style testing to please non-technical folk
+// This draws many ideas from RSpec http://rspec.rubyforge.org/
+
+Test.setupBDDExtensionMethods = function(){
+ var METHODMAP = {
+ shouldEqual: 'assertEqual',
+ shouldNotEqual: 'assertNotEqual',
+ shouldEqualEnum: 'assertEnumEqual',
+ shouldBeA: 'assertType',
+ shouldNotBeA: 'assertNotOfType',
+ shouldBeAn: 'assertType',
+ shouldNotBeAn: 'assertNotOfType',
+ shouldBeNull: 'assertNull',
+ shouldNotBeNull: 'assertNotNull',
+
+ shouldBe: 'assertReturnsTrue',
+ shouldNotBe: 'assertReturnsFalse',
+ shouldRespondTo: 'assertRespondsTo'
+ };
+ var makeAssertion = function(assertion, args, object) {
+ this[assertion].apply(this,(args || []).concat([object]));
+ };
+
+ Test.BDDMethods = {};
+ $H(METHODMAP).each(function(pair) {
+ Test.BDDMethods[pair.key] = function() {
+ var args = $A(arguments);
+ var scope = args.shift();
+ makeAssertion.apply(scope, [pair.value, args, this]); };
+ });
+
+ [Array.prototype, String.prototype, Number.prototype, Boolean.prototype].each(
+ function(p){ Object.extend(p, Test.BDDMethods) }
+ );
+};
+
+Test.context = function(name, spec, log){
+ Test.setupBDDExtensionMethods();
+
+ var compiledSpec = {};
+ var titles = {};
+ for(specName in spec) {
+ switch(specName){
+ case "setup":
+ case "teardown":
+ compiledSpec[specName] = spec[specName];
+ break;
+ default:
+ var testName = 'test'+specName.gsub(/\s+/,'-').camelize();
+ var body = spec[specName].toString().split('\n').slice(1);
+ if(/^\{/.test(body[0])) body = body.slice(1);
+ body.pop();
+ body = body.map(function(statement){
+ return statement.strip()
+ });
+ compiledSpec[testName] = body.join('\n');
+ titles[testName] = specName;
+ }
+ }
+ new Test.Unit.Runner(compiledSpec, { titles: titles, testLog: log || 'testlog', context: name });
+}; \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/de.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/de.js
new file mode 100755
index 00000000..0144c9ac
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/de.js
@@ -0,0 +1 @@
+tinyMCE.addI18n({de:{common:{"more_colors":"Weitere Farben","invalid_data":"Fehler: Es wurden ung\u00fcltige Werte eingegeben (rot markiert).","popup_blocked":"Leider hat der Popup-Blocker ein Fenster unterbunden, das f\u00fcr den Betrieb dieses Programms n\u00f6tig ist. Bitte den Popup-Blocker f\u00fcr diese Seite deaktivieren.","clipboard_no_support":"Wird derzeit im verwendeten Browser nicht unterst\u00fctzt. Bitte stattdessen die Tastenk\u00fcrzel benutzen.","clipboard_msg":"Kopieren, Ausschneiden und Einf\u00fcgen sind im Mozilla Firefox nicht m\u00f6glich.\nMehr \u00fcber dieses Problem erfahren?","not_set":"- unbestimmt -","class_name":"CSS-Klasse",browse:"Durchsuchen",close:"Schlie\u00dfen",cancel:"Abbrechen",update:"Aktualisieren",insert:"Einf\u00fcgen",apply:"\u00dcbernehmen","edit_confirm":"Soll dieser Text jetzt bearbeitet werden?","invalid_data_number":"{#field} muss eine Zahl sein","invalid_data_min":"{#field} muss eine Zahl gr\u00f6\u00dfer als {#min} sein","invalid_data_size":"{#field} muss eine Zahl oder ein Prozentwert sein",value:"(Wert)"},contextmenu:{full:"Blocksatz",right:"Rechtsb\u00fcndig",center:"Zentriert",left:"Linksb\u00fcndig",align:"Ausrichtung"},insertdatetime:{"day_short":"So,Mo,Di,Mi,Do,Fr,Sa,So","day_long":"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag","months_short":"Jan,Feb,M\u00e4r,Apr,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez","months_long":"Januar,Februar,M\u00e4rz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember","inserttime_desc":"Zeit einf\u00fcgen","insertdate_desc":"Datum einf\u00fcgen","time_fmt":"%H:%M:%S","date_fmt":"%d.%m.%Y"},print:{"print_desc":"Drucken"},preview:{"preview_desc":"Vorschau"},directionality:{"rtl_desc":"Schrift von rechts nach links","ltr_desc":"Schrift von links nach rechts"},layer:{content:"Neue Ebene...","absolute_desc":"Absolute Positionierung","backward_desc":"Nach hinten legen","forward_desc":"Nach vorne holen","insertlayer_desc":"Neue Ebene einf\u00fcgen"},save:{"save_desc":"Speichern","cancel_desc":"Alle \u00c4nderungen verwerfen"},nonbreaking:{"nonbreaking_desc":"Gesch\u00fctztes Leerzeichen einf\u00fcgen"},iespell:{download:"ieSpell konnte nicht gefunden werden. Soll es installiert werden?","iespell_desc":"Rechtschreibpr\u00fcfung"},advhr:{"advhr_desc":"Trennlinie","delta_height":"","delta_width":""},emotions:{"emotions_desc":"Smileys","delta_height":"","delta_width":""},searchreplace:{"replace_desc":"Suchen/Ersetzen","search_desc":"Suchen","delta_width":"","delta_height":""},advimage:{"image_desc":"Bild einf\u00fcgen/ver\u00e4ndern","delta_width":"","delta_height":""},advlink:{"link_desc":"Link einf\u00fcgen/ver\u00e4ndern","delta_height":"","delta_width":""},xhtmlxtras:{"attribs_desc":"Attribute einf\u00fcgen/bearbeiten","ins_desc":"Eingef\u00fcgter Text","del_desc":"Entfernter Text","acronym_desc":"Akronym","abbr_desc":"Abk\u00fcrzung","cite_desc":"Quellenangabe","attribs_delta_height":"","attribs_delta_width":"","ins_delta_height":"","ins_delta_width":"","del_delta_height":"","del_delta_width":"","acronym_delta_height":"","acronym_delta_width":"","abbr_delta_height":"","abbr_delta_width":"","cite_delta_height":"","cite_delta_width":""},style:{desc:"CSS-Styles bearbeiten","delta_height":"","delta_width":""},paste:{"plaintext_mode":"Einf\u00fcgemodus ist nun \"Nur Text\". Erneut klicken stellt den Normalmodus wieder her.","plaintext_mode_sticky":"Einf\u00fcgemodus ist nun \"Nur Text\". Erneut klicken (oder das Einf\u00fcgen aus der Zwischenablage) stellt den Normalmodus wieder her.","selectall_desc":"Alles ausw\u00e4hlen","paste_word_desc":"Mit Formatierungen (aus Word) einf\u00fcgen","paste_text_desc":"Als einfachen Text einf\u00fcgen"},"paste_dlg":{"word_title":"Strg V auf der Tastatur dr\u00fccken, um den Text einzuf\u00fcgen.","text_linebreaks":"Zeilenumbr\u00fcche beibehalten","text_title":"Strg V auf der Tastatur dr\u00fccken, um den Text einzuf\u00fcgen."},table:{"cellprops_delta_width":"150",cell:"Zelle",col:"Spalte",row:"Zeile",del:"Tabelle l\u00f6schen","copy_row_desc":"Zeile kopieren","cut_row_desc":"Zeile ausschneiden","paste_row_after_desc":"Zeile unterhalb aus der Zwischenablage einf\u00fcgen","paste_row_before_desc":"Zeile oberhalb aus der Zwischenablage einf\u00fcgen","props_desc":"Eigenschaften der Tabelle","cell_desc":"Eigenschaften der Zelle","row_desc":"Eigenschaften der Zeile","merge_cells_desc":"Zellen verbinden","split_cells_desc":"Verbundene Zellen trennen","delete_col_desc":"Spalte l\u00f6schen","col_after_desc":"Spalte rechts einf\u00fcgen","col_before_desc":"Spalte links einf\u00fcgen","delete_row_desc":"Zeile l\u00f6schen","row_after_desc":"Zeile unterhalb einf\u00fcgen","row_before_desc":"Zeile oberhalb einf\u00fcgen",desc:"Tabelle erstellen/bearbeiten","merge_cells_delta_height":"","merge_cells_delta_width":"","table_delta_height":"","table_delta_width":"","cellprops_delta_height":"","rowprops_delta_height":"","rowprops_delta_width":""},autosave:{"warning_message":"Beim wiederherstellen des gespeicherten Inhalts gehen die aktuellen Daten im Editor verloren.\n\nSoll der gespeicherte Inhalt wirklich wiederhergestellt werden?","restore_content":"Automatisch gespeicherten Inhalt wiederherstellen.","unload_msg":"Beim verlassen der Seite werden die \u00c4nderungen verloren gehen."},fullscreen:{desc:"Vollbildschirm"},media:{edit:"Multimediaeinbettung bearbeiten",desc:"Multimedia einbetten/bearbeiten","delta_height":"","delta_width":""},fullpage:{desc:"Dokument-Eigenschaften","delta_width":"","delta_height":""},template:{desc:"Inhalt aus Vorlage einf\u00fcgen"},visualchars:{desc:"Sichtbarkeit der Steuerzeichen an/aus"},spellchecker:{desc:"Rechtschreibpr\u00fcfung an/aus",menu:"Einstellungen der Rechtschreibpr\u00fcfung","ignore_word":"Wort ignorieren","ignore_words":"Alle ignorieren",langs:"Sprachen",wait:"Bitte warten...",sug:"Vorschl\u00e4ge","no_sug":"Keine Vorschl\u00e4ge","no_mpell":"Keine Rechtschreibfehler gefunden.","learn_word":"Zum W\u00f6rterbuch hinzuf\u00fcgen"},pagebreak:{desc:"Seitenumbruch einf\u00fcgen"},advlist:{types:"Typen",def:"Standard","lower_alpha":"a. b. c.","lower_greek":"1. 2. 3.","lower_roman":"i. ii. iii.","upper_alpha":"A. B. C.","upper_roman":"I. II. III.",circle:"Kreis",disc:"Punkt",square:"Quadrat"},colors:{"333300":"Dunkeloliv","993300":"Orange","000000":"Schwarz","003300":"Dunkelgr\u00fcn","003366":"Dunkles himmelblau","000080":"Marineblau","333399":"Indigoblau","333333":"Sehr dunkelgrau","800000":"Kastanienbraun",FF6600:"Orange","808000":"Oliv","008000":"Gr\u00fcn","008080":"Blaugr\u00fcn","0000FF":"Blau","666699":"Graublau","808080":"Grau",FF0000:"Rot",FF9900:"Bernsteinfarben","99CC00":"Gelbgr\u00fcn","339966":"Meergr\u00fcn","33CCCC":"T\u00fcrkis","3366FF":"K\u00f6nigsblau","800080":"Violett","999999":"Mittelgrau",FF00FF:"Magenta",FFCC00:"Gold",FFFF00:"Gelb","00FF00":"Hellgr\u00fcn","00FFFF":"Aquamarinblau","00CCFF":"Himmelblau","993366":"Braun",C0C0C0:"Silber",FF99CC:"Rosa",FFCC99:"Pfirsichfarben",FFFF99:"Hellgelb",CCFFCC:"Blassgr\u00fcn",CCFFFF:"Blasst\u00fcrkis","99CCFF":"Helles himmelblau",CC99FF:"Pflaumenblau",FFFFFF:"Wei\u00df"},aria:{"rich_text_area":"Rich Text Bereich"},wordcount:{words:"W\u00f6rter: "}}}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/en.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/en.js
new file mode 100755
index 00000000..16d7a93e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/en.js
@@ -0,0 +1 @@
+tinyMCE.addI18n({en:{common:{"more_colors":"More Colors...","invalid_data":"Error: Invalid values entered, these are marked in red.","popup_blocked":"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.","clipboard_no_support":"Currently not supported by your browser, use keyboard shortcuts instead.","clipboard_msg":"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?","not_set":"-- Not Set --","class_name":"Class",browse:"Browse",close:"Close",cancel:"Cancel",update:"Update",insert:"Insert",apply:"Apply","edit_confirm":"Do you want to use the WYSIWYG mode for this textarea?","invalid_data_number":"{#field} must be a number","invalid_data_min":"{#field} must be a number greater than {#min}","invalid_data_size":"{#field} must be a number or percentage",value:"(value)"},contextmenu:{full:"Full",right:"Right",center:"Center",left:"Left",align:"Alignment"},insertdatetime:{"day_short":"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun","day_long":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday","months_short":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","months_long":"January,February,March,April,May,June,July,August,September,October,November,December","inserttime_desc":"Insert Time","insertdate_desc":"Insert Date","time_fmt":"%H:%M:%S","date_fmt":"%Y-%m-%d"},print:{"print_desc":"Print"},preview:{"preview_desc":"Preview"},directionality:{"rtl_desc":"Direction Right to Left","ltr_desc":"Direction Left to Right"},layer:{content:"New layer...","absolute_desc":"Toggle Absolute Positioning","backward_desc":"Move Backward","forward_desc":"Move Forward","insertlayer_desc":"Insert New Layer"},save:{"save_desc":"Save","cancel_desc":"Cancel All Changes"},nonbreaking:{"nonbreaking_desc":"Insert Non-Breaking Space Character"},iespell:{download:"ieSpell not detected. Do you want to install it now?","iespell_desc":"Check Spelling"},advhr:{"delta_height":"","delta_width":"","advhr_desc":"Insert Horizontal Line"},emotions:{"delta_height":"","delta_width":"","emotions_desc":"Emotions"},searchreplace:{"replace_desc":"Find/Replace","delta_width":"","delta_height":"","search_desc":"Find"},advimage:{"delta_width":"","image_desc":"Insert/Edit Image","delta_height":""},advlink:{"delta_height":"","delta_width":"","link_desc":"Insert/Edit Link"},xhtmlxtras:{"attribs_delta_height":"","attribs_delta_width":"","ins_delta_height":"","ins_delta_width":"","del_delta_height":"","del_delta_width":"","acronym_delta_height":"","acronym_delta_width":"","abbr_delta_height":"","abbr_delta_width":"","cite_delta_height":"","cite_delta_width":"","attribs_desc":"Insert/Edit Attributes","ins_desc":"Insertion","del_desc":"Deletion","acronym_desc":"Acronym","abbr_desc":"Abbreviation","cite_desc":"Citation"},style:{"delta_height":"","delta_width":"",desc:"Edit CSS Style"},paste:{"plaintext_mode":"Paste is now in plain text mode. Click again to toggle back to regular paste mode.","plaintext_mode_sticky":"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.","selectall_desc":"Select All","paste_word_desc":"Paste from Word","paste_text_desc":"Paste as Plain Text"},"paste_dlg":{"word_title":"Use Ctrl+V on your keyboard to paste the text into the window.","text_linebreaks":"Keep Linebreaks","text_title":"Use Ctrl+V on your keyboard to paste the text into the window."},table:{"merge_cells_delta_height":"","merge_cells_delta_width":"","table_delta_height":"","table_delta_width":"","cellprops_delta_height":"","cellprops_delta_width":"","rowprops_delta_height":"","rowprops_delta_width":"",cell:"Cell",col:"Column",row:"Row",del:"Delete Table","copy_row_desc":"Copy Table Row","cut_row_desc":"Cut Table Row","paste_row_after_desc":"Paste Table Row After","paste_row_before_desc":"Paste Table Row Before","props_desc":"Table Properties","cell_desc":"Table Cell Properties","row_desc":"Table Row Properties","merge_cells_desc":"Merge Table Cells","split_cells_desc":"Split Merged Table Cells","delete_col_desc":"Delete Column","col_after_desc":"Insert Column After","col_before_desc":"Insert Column Before","delete_row_desc":"Delete Row","row_after_desc":"Insert Row After","row_before_desc":"Insert Row Before",desc:"Insert/Edit Table"},autosave:{"warning_message":"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?","restore_content":"Restore auto-saved content.","unload_msg":"The changes you made will be lost if you navigate away from this page."},fullscreen:{desc:"Toggle Full Screen Mode"},media:{"delta_height":"","delta_width":"",edit:"Edit Embedded Media",desc:"Insert/Edit Embedded Media"},fullpage:{desc:"Document Properties","delta_width":"","delta_height":""},template:{desc:"Insert Predefined Template Content"},visualchars:{desc:"Show/Hide Visual Control Characters"},spellchecker:{desc:"Toggle Spell Checker",menu:"Spell Checker Settings","ignore_word":"Ignore Word","ignore_words":"Ignore All",langs:"Languages",wait:"Please wait...",sug:"Suggestions","no_sug":"No Suggestions","no_mpell":"No misspellings found.","learn_word":"Learn word"},pagebreak:{desc:"Insert Page Break for Printing"},advlist:{types:"Types",def:"Default","lower_alpha":"Lower Alpha","lower_greek":"Lower Greek","lower_roman":"Lower Roman","upper_alpha":"Upper Alpha","upper_roman":"Upper Roman",circle:"Circle",disc:"Disc",square:"Square"},colors:{"333300":"Dark olive","993300":"Burnt orange","000000":"Black","003300":"Dark green","003366":"Dark azure","000080":"Navy Blue","333399":"Indigo","333333":"Very dark gray","800000":"Maroon",FF6600:"Orange","808000":"Olive","008000":"Green","008080":"Teal","0000FF":"Blue","666699":"Grayish blue","808080":"Gray",FF0000:"Red",FF9900:"Amber","99CC00":"Yellow green","339966":"Sea green","33CCCC":"Turquoise","3366FF":"Royal blue","800080":"Purple","999999":"Medium gray",FF00FF:"Magenta",FFCC00:"Gold",FFFF00:"Yellow","00FF00":"Lime","00FFFF":"Aqua","00CCFF":"Sky blue","993366":"Brown",C0C0C0:"Silver",FF99CC:"Pink",FFCC99:"Peach",FFFF99:"Light yellow",CCFFCC:"Pale green",CCFFFF:"Pale cyan","99CCFF":"Light sky blue",CC99FF:"Plum",FFFFFF:"White"},aria:{"rich_text_area":"Rich Text Area"},wordcount:{words:"Words:"}}}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/hu.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/hu.js
new file mode 100644
index 00000000..71a3b76e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/hu.js
@@ -0,0 +1 @@
+tinyMCE.addI18n({hu:{common:{"more_colors":"Tov\u00e1bbi sz\u00ednek...","invalid_data":"Hiba: Az \u00e9rv\u00e9nytelen adatok, pirossal jel\u00f6lve.","popup_blocked":"A felugr\u00f3 ablakok tilt\u00e1sa miatt nem siker\u00fclt megjelen\u00edteni egy, az alkalmaz\u00e1shoz sz\u00fcks\u00e9ges ablakot. Enged\u00e9lyezze a b\u00f6ng\u00e9sz\u0151j\u00e9ben a felugr\u00f3 ablakokat, hogy minden funkci\u00f3t haszn\u00e1lhasson.","clipboard_no_support":"Jelenleg nem t\u00e1mogatja a b\u00f6ng\u00e9sz\u0151je, haszn\u00e1lja a billenty\u0171kombin\u00e1ci\u00f3kat helyette.","clipboard_msg":"A M\u00e1sol\u00e1s/Kiv\u00e1g\u00e1s/Besz\u00far\u00e1s funkci\u00f3k nem \u00e9rhet\u0151k el Mozilla \u00e9s Firefox alatt.\nK\u00edv\u00e1n t\u00f6bbet megtudni err\u0151l a t\u00e9m\u00e1r\u00f3l?","not_set":"-- Nincs megadva --","class_name":"Oszt\u00e1ly",browse:"Tall\u00f3z\u00e1s",close:"Bez\u00e1r\u00e1s",cancel:"M\u00e9gsem",update:"Friss\u00edt\u00e9s",insert:"Besz\u00far\u00e1s",apply:"Alkalmaz","edit_confirm":"Haszn\u00e1lni k\u00edv\u00e1nja a (WYSIWYG) sz\u00f6vegszerkeszt\u0151 m\u00f3dot ebben a sz\u00f6vegdobozban?","invalid_data_number":"{#field} sz\u00e1m kell legyen","invalid_data_min":"{#field} egy nagyobb sz\u00e1m kell legyen, mint {#min}","invalid_data_size":"{#field} egy sz\u00e1m vagy sz\u00e1zal\u00e9k kell legyen",value:"(\u00e9rt\u00e9k)"},contextmenu:{full:"Sorkiz\u00e1rt",right:"Jobbra",center:"K\u00f6z\u00e9pre",left:"Balra",align:"Igaz\u00edt\u00e1s"},insertdatetime:{"day_short":"V,H,K,Sze,Cs,P,Szo,V","day_long":"vas\u00e1rnap,h\u00e9tf\u0151,kedd,szerda,cs\u00fct\u00f6rt\u00f6k,p\u00e9ntek,szombat,vas\u00e1rnap","months_short":"Jan,Feb,M\u00e1r,\u00c1pr,M\u00e1j,J\u00fan,J\u00fal,Aug,Szept,Okt,Nov,Dec","months_long":"janu\u00e1r,febru\u00e1r,m\u00e1rcius,\u00e1prilis,m\u00e1jus,j\u00fanius,j\u00falius,augusztus,szeptember,okt\u00f3ber,november,december","inserttime_desc":"Id\u0151 besz\u00far\u00e1sa","insertdate_desc":"D\u00e1tum besz\u00far\u00e1sa","time_fmt":"%H:%M:%S","date_fmt":"%Y. %m. %d."},print:{"print_desc":"Nyomtat\u00e1s"},preview:{"preview_desc":"El\u0151n\u00e9zet"},directionality:{"rtl_desc":"Jobbr\u00f3l balra","ltr_desc":"Balr\u00f3l jobbra"},layer:{content:"\u00daj r\u00e9teg...","absolute_desc":"Abszol\u00fat poz\u00edci\u00f3 megad\u00e1s ki-/bekapcsol\u00e1sa","backward_desc":"Mozgat\u00e1s h\u00e1tra","forward_desc":"Mozgat\u00e1s el\u0151re","insertlayer_desc":"\u00daj r\u00e9teg besz\u00far\u00e1sa"},save:{"save_desc":"Ment\u00e9s","cancel_desc":"Minden m\u00f3dos\u00edt\u00e1s elvet\u00e9se"},nonbreaking:{"nonbreaking_desc":"Nem (sor)t\u00f6rhet\u0151 sz\u00f3k\u00f6z besz\u00far\u00e1sa"},iespell:{download:"ieSpell nem tal\u00e1lhat\u00f3. Telep\u00edti most?","iespell_desc":"Helyes\u00edr\u00e1s-ellen\u0151rz\u00e9s futtat\u00e1sa"},advhr:{"advhr_desc":"V\u00edzszintes vonal","delta_height":"","delta_width":""},emotions:{"emotions_desc":"Hangulatjelek","delta_height":"","delta_width":""},searchreplace:{"replace_desc":"Keres\u00e9s/Csere","search_desc":"Keres\u00e9s","delta_width":"","delta_height":""},advimage:{"image_desc":"K\u00e9p besz\u00far\u00e1sa/szerkeszt\u00e9se","delta_width":"","delta_height":""},advlink:{"link_desc":"Link besz\u00far\u00e1sa/szerkeszt\u00e9se","delta_height":"","delta_width":""},xhtmlxtras:{"attribs_desc":"Tulajdons\u00e1gok besz\u00far\u00e1sa/szerkeszt\u00e9se","ins_desc":"Besz\u00far\u00e1s","del_desc":"T\u00f6r\u00f6l\u00e9s","acronym_desc":"Bet\u0171sz\u00f3","abbr_desc":"R\u00f6vid\u00edt\u00e9s","cite_desc":"Id\u00e9zet","attribs_delta_height":"","attribs_delta_width":"","ins_delta_height":"","ins_delta_width":"","del_delta_height":"","del_delta_width":"","acronym_delta_height":"","acronym_delta_width":"","abbr_delta_height":"","abbr_delta_width":"","cite_delta_height":"","cite_delta_width":""},style:{desc:"CSS st\u00edlus szerkeszt\u00e9se","delta_height":"","delta_width":""},paste:{"plaintext_mode":"A besz\u00far\u00e1s mostant\u00f3l egyszer\u0171 sz\u00f6veg m\u00f3dban van. Kattintson ide \u00fajra ezen m\u00f3d ki/be kapcsol\u00e1s\u00e1hoz.","plaintext_mode_sticky":"A besz\u00far\u00e1s mostant\u00f3l egyszer\u0171 sz\u00f6veg m\u00f3dban van. Kattintson ide \u00fajra ezen m\u00f3d ki/be kapcsol\u00e1s\u00e1hoz. Miut\u00e1n besz\u00far valamit, visszaker\u00fcl norm\u00e1l m\u00f3dba.","selectall_desc":"Mindent kijel\u00f6l","paste_word_desc":"Besz\u00far\u00e1s Wordb\u0151l","paste_text_desc":"Besz\u00far\u00e1s egyszer\u0171 sz\u00f6vegk\u00e9nt"},"paste_dlg":{"word_title":"Haszn\u00e1lja a Ctrl V-t a billenty\u0171zet\u00e9n a sz\u00f6veg beilleszt\u00e9shez.","text_linebreaks":"Sort\u00f6r\u00e9sek megtart\u00e1sa","text_title":"Haszn\u00e1lja a Ctrl V-t a billenty\u0171zet\u00e9n a sz\u00f6veg beilleszt\u00e9shez."},table:{cell:"Cella",col:"Oszlop",row:"Sor",del:"T\u00e1bl\u00e1zat t\u00f6rl\u00e9se","copy_row_desc":"Sor m\u00e1sol\u00e1sa","cut_row_desc":"Sor kiv\u00e1g\u00e1sa","paste_row_after_desc":"Sor bem\u00e1sol\u00e1sa ut\u00e1na","paste_row_before_desc":"Sor bem\u00e1sol\u00e1sa el\u00e9","props_desc":"T\u00e1bl\u00e1zat tulajdons\u00e1gai","cell_desc":"Cella tulajdons\u00e1gai","row_desc":"Sor tulajdons\u00e1gai","merge_cells_desc":"Cell\u00e1k egyes\u00edt\u00e9se","split_cells_desc":"Egyes\u00edtett cell\u00e1k feloszt\u00e1sa","delete_col_desc":"Oszlop t\u00f6rl\u00e9se","col_after_desc":"Oszlop besz\u00far\u00e1sa ut\u00e1na","col_before_desc":"Oszlop besz\u00far\u00e1sa el\u00e9","delete_row_desc":"Sor t\u00f6rl\u00e9se","row_after_desc":"Sor besz\u00far\u00e1sa ut\u00e1na","row_before_desc":"Sor besz\u00far\u00e1sa el\u00e9",desc:"T\u00e1bl\u00e1zat besz\u00far\u00e1sa/szerkeszt\u00e9se","merge_cells_delta_height":"","merge_cells_delta_width":"","table_delta_height":"","table_delta_width":"","cellprops_delta_height":"","cellprops_delta_width":"","rowprops_delta_height":"","rowprops_delta_width":""},autosave:{"warning_message":"Ha visszat\u00f6lti a mentett be\u00e1ll\u00edt\u00e1sokat, a jelenlegi \u00e1llapot elv\u00e9sz.\n\nBiztosan visszat\u00f6lti a mentett \u00e1llapotot?","restore_content":"Automatikus ment\u00e9s bet\u00f6lt\u00e9se.","unload_msg":"A m\u00f3dos\u00edt\u00e1sok nem lesznek mentve, ha elhagyja az oldalt."},fullscreen:{desc:"Teljesk\u00e9perny\u0151s m\u00f3d ki-/bekapcsol\u00e1sa"},media:{edit:"Be\u00e1gyazott m\u00e9dia szerkeszt\u00e9se",desc:"Be\u00e1gyazott m\u00e9dia besz\u00far\u00e1sa/szerkeszt\u00e9se","delta_height":"","delta_width":""},fullpage:{desc:"Dokumentum tulajdons\u00e1gai","delta_width":"","delta_height":""},template:{desc:"Sablon beilleszt\u00e9se"},visualchars:{desc:"Vizu\u00e1lis vez\u00e9rl\u0151karakterek be-/kikapcsol\u00e1sa"},spellchecker:{desc:"Helyes\u00edr\u00e1s-ellen\u0151rz\u0151 ki-/bekapcsol\u00e1sa",menu:"Helyes\u00edr\u00e1s-ellen\u0151rz\u0151 be\u00e1ll\u00edt\u00e1sok","ignore_word":"Sz\u00f3 kihagy\u00e1sa","ignore_words":"Mindet kihagy",langs:"Nyelvek",wait:"K\u00e9rem, v\u00e1rjon...",sug:"Aj\u00e1nl\u00e1sok","no_sug":"Nincs aj\u00e1nl\u00e1s","no_mpell":"Nem tal\u00e1ltam helyes\u00edr\u00e1si hib\u00e1t.","learn_word":"Sz\u00f3 megjegyz\u00e9se"},pagebreak:{desc:"Oldalt\u00f6r\u00e9s besz\u00far\u00e1sa a nyomtat\u00e1shoz"},advlist:{types:"T\u00edpusok",def:"Alap\u00e9rtelmezett","lower_alpha":"Kisbet\u0171s abc","lower_greek":"Kisbet\u0171s g\u00f6r\u00f6g","lower_roman":"Kisbet\u0171s r\u00f3mai","upper_alpha":"Nagybet\u0171s ABC","upper_roman":"Nagybet\u0171s r\u00f3mai",circle:"Karika",disc:"P\u00f6tty",square:"N\u00e9gyzet"},colors:{"333300":"S\u00f6t\u00e9t ol\u00edv","993300":"\u00c9g\u0151 narancs","000000":"Fekete","003300":"S\u00f6t\u00e9t z\u00f6ld","003366":"S\u00f6t\u00e9t az\u00far","000080":"Tenger k\u00e9k","333399":"Indig\u00f3","333333":"Nagyon s\u00f6t\u00e9tsz\u00fcrke","800000":"Gesztenyebarna",FF6600:"Narancs","808000":"Ol\u00edv","008000":"Z\u00f6ld","008080":"P\u00e1vak\u00e9k","0000FF":"K\u00e9k","666699":"Sz\u00fcrk\u00e9s k\u00e9k","808080":"Sz\u00fcrke",FF0000:"V\u00f6r\u00f6s",FF9900:"Borosty\u00e1ns\u00e1rga","99CC00":"S\u00e1rg\u00e1s z\u00f6ld","339966":"Tengerz\u00f6ld","33CCCC":"T\u00fcrk\u00edz","3366FF":"Kir\u00e1lyk\u00e9k","800080":"B\u00edbor","999999":"K\u00f6z\u00e9psz\u00fcrke",FF00FF:"B\u00edborv\u00f6r\u00f6s",FFCC00:"Arany",FFFF00:"S\u00e1rga","00FF00":"Vil\u00e1gos borosty\u00e1n","00FFFF":"V\u00edz","00CCFF":"\u00c9gk\u00e9k","993366":"Barna",C0C0C0:"Ez\u00fcst",FF99CC:"R\u00f3zsasz\u00edn",FFCC99:"Barack",FFFF99:"Vil\u00e1gos s\u00e1rga",CCFFCC:"Halv\u00e1ny z\u00f6ld",CCFFFF:"Halv\u00e1ny ci\u00e1n","99CCFF":"Vil\u00e1gos \u00e9gk\u00e9k",CC99FF:"Szilvak\u00e9k",FFFFFF:"Feh\u00e9r"},aria:{"rich_text_area":"Rich Text mez\u0151"},wordcount:{words:"Szavak sz\u00e1ma: "}}}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/ja.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/ja.js
new file mode 100755
index 00000000..cdd5399a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/langs/ja.js
@@ -0,0 +1 @@
+tinyMCE.addI18n({ja:{common:{"more_colors":"\u3055\u3089\u306b\u8272\u3092\u4f7f\u7528...","invalid_data":"\u30a8\u30e9\u30fc: \u5165\u529b\u306b\u8aa4\u308a\u304c\u3042\u308a\u307e\u3059\u3002\uff08\u8d64\u5b57\u306e\u9805\u76ee\uff09","popup_blocked":"\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u8868\u793a\u3092\u8a31\u53ef\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306e\u6a5f\u80fd\u3092\u5b8c\u5168\u306b\u6d3b\u7528\u3059\u308b\u306b\u306f\u3001\u3053\u306e\u30b5\u30a4\u30c8\u3067\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3092\u8a31\u53ef\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002","clipboard_no_support":"\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u64cd\u4f5c\u306f\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u30d6\u30e9\u30a6\u30b6\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3092\u4ee3\u308f\u308a\u306b\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3044\u3002","clipboard_msg":"\u30b3\u30d4\u30fc/\u5207\u308a\u53d6\u308a/\u8cbc\u308a\u4ed8\u3051\u306fMozilla\u3068Firefox\u3067\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\n\u3053\u306e\u554f\u984c\u306e\u8a73\u7d30\u3092\u5f97\u305f\u3044\u3067\u3059\u304b?","not_set":"-- \u672a\u8a2d\u5b9a --","class_name":"\u30af\u30e9\u30b9",browse:"\u95b2\u89a7",close:"\u9589\u3058\u308b",cancel:"\u53d6\u308a\u6d88\u3057",update:"\u66f4\u65b0",insert:"\u633f\u5165",apply:"\u9069\u7528","edit_confirm":"\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u3092WYSIWYG\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048\u307e\u3059\u304b\uff1f","invalid_data_number":"{#field} \u306f\u6570\u5024\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002","invalid_data_min":"{#field} \u306f{#min}\u3088\u308a\u3082\u5927\u304d\u306a\u6570\u5024\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002","invalid_data_size":"{#field}\u306f\u6570\u5024\u307e\u305f\u306f\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002",value:"(\u5024)"},contextmenu:{full:"\u5747\u7b49\u5272\u4ed8",right:"\u53f3\u63c3\u3048",center:"\u4e2d\u592e\u63c3\u3048",left:"\u5de6\u63c3\u3048",align:"\u914d\u7f6e"},insertdatetime:{"day_short":"(\u65e5),(\u6708),(\u706b),(\u6c34),(\u6728),(\u91d1),(\u571f),(\u65e5)","day_long":"\u65e5\u66dc\u65e5,\u6708\u66dc\u65e5,\u706b\u66dc\u65e5,\u6c34\u66dc\u65e5,\u6728\u66dc\u65e5,\u91d1\u66dc\u65e5,\u571f\u66dc\u65e5,\u65e5\u66dc\u65e5","months_short":"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708","months_long":"1,2,3,4,5,6,7,8,9,10,11,12","inserttime_desc":"\u6642\u523b\u3092\u633f\u5165","insertdate_desc":"\u65e5\u4ed8\u3092\u633f\u5165","time_fmt":"%H:%M:%S","date_fmt":"%Y-%m-%d"},print:{"print_desc":"\u5370\u5237"},preview:{"preview_desc":"\u30d7\u30ec\u30d3\u30e5\u30fc"},directionality:{"rtl_desc":"\u53f3\u304b\u3089\u5de6","ltr_desc":"\u5de6\u304b\u3089\u53f3"},layer:{content:"\u65b0\u3057\u3044\u30ec\u30a4\u30e4\u30fc...","absolute_desc":"\u7d76\u5bfe\u4f4d\u7f6e\u306e\u6307\u5b9a\u3092\u5207\u66ff","backward_desc":"\u80cc\u9762\u3078\u79fb\u52d5","forward_desc":"\u524d\u9762\u3078\u79fb\u52d5","insertlayer_desc":"\u65b0\u3057\u3044\u30ec\u30a4\u30e4\u30fc\u3092\u633f\u5165"},save:{"save_desc":"\u4fdd\u5b58","cancel_desc":"\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u53d6\u308a\u6d88\u3057"},nonbreaking:{"nonbreaking_desc":"\u6539\u884c\u3057\u306a\u3044\u30b9\u30da\u30fc\u30b9\u6587\u5b57(NBSP)\u3092\u633f\u5165"},iespell:{download:"ieSpell\u304c\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u4eca\u3059\u3050\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u304b\uff1f","iespell_desc":"\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af"},advhr:{"advhr_desc":"\u6c34\u5e73\u7dda\u3092\u633f\u5165","delta_height":"","delta_width":""},emotions:{"emotions_desc":"\u8868\u60c5\u30a2\u30a4\u30b3\u30f3","delta_height":"","delta_width":""},searchreplace:{"replace_desc":"\u691c\u7d22\u3068\u7f6e\u63db","search_desc":"\u691c\u7d22","delta_width":"","delta_height":""},advimage:{"image_desc":"\u753b\u50cf\u306e\u633f\u5165\u3084\u7de8\u96c6","delta_width":"","delta_height":""},advlink:{"link_desc":"\u30ea\u30f3\u30af\u306e\u633f\u5165\u3084\u7de8\u96c6","delta_height":"","delta_width":""},xhtmlxtras:{"attribs_desc":"\u5c5e\u6027\u306e\u633f\u5165\u3084\u7de8\u96c6","ins_desc":"\u633f\u5165","del_desc":"\u524a\u9664","acronym_desc":"\u982d\u5b57\u8a9e","abbr_desc":"\u7565\u8a9e","cite_desc":"\u5f15\u7528","attribs_delta_height":"","attribs_delta_width":"","ins_delta_height":"","ins_delta_width":"","del_delta_height":"","del_delta_width":"","acronym_delta_height":"","acronym_delta_width":"","abbr_delta_height":"","abbr_delta_width":"","cite_delta_height":"","cite_delta_width":""},style:{desc:"CSS\u306e\u7de8\u96c6","delta_height":"","delta_width":""},paste:{"plaintext_mode":"\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u306e\u30e2\u30fc\u30c9\u3067\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002\u3082\u3046\u4e00\u5ea6\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u901a\u5e38\u306e\u8cbc\u308a\u4ed8\u3051\u306e\u30e2\u30fc\u30c9\u306b\u623b\u3057\u307e\u3059\u3002","plaintext_mode_sticky":"\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u306e\u30e2\u30fc\u30c9\u3067\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002\u3082\u3046\u4e00\u5ea6\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u901a\u5e38\u306e\u8cbc\u308a\u4ed8\u3051\u306e\u30e2\u30fc\u30c9\u306b\u623b\u3057\u307e\u3059\u3002\u4f55\u304b\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001\u305d\u306e\u5f8c\u306f\u901a\u5e38\u306e\u8cbc\u308a\u4ed8\u3051\u30e2\u30fc\u30c9\u306b\u623b\u308a\u307e\u3059\u3002","selectall_desc":"\u3059\u3079\u3066\u9078\u629e","paste_word_desc":"Word\u304b\u3089\u8cbc\u308a\u4ed8\u3051","paste_text_desc":"\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u3067\u8cbc\u308a\u4ed8\u3051"},"paste_dlg":{"word_title":"Ctrl V(\u30ad\u30fc\u30dc\u30fc\u30c9)\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002","text_linebreaks":"\u6539\u884c\u3092\u4fdd\u6301","text_title":"Ctrl V(\u30ad\u30fc\u30dc\u30fc\u30c9)\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002"},table:{cell:"\u30bb\u30eb",col:"\u5217",row:"\u884c",del:"\u8868\u3092\u524a\u9664","copy_row_desc":"\u884c\u3092\u30b3\u30d4\u30fc","cut_row_desc":"\u884c\u3092\u5207\u308a\u53d6\u308a","paste_row_after_desc":"\u4e0b\u306b\u884c\u3092\u8cbc\u308a\u4ed8\u3051","paste_row_before_desc":"\u4e0a\u306b\u884c\u3092\u8cbc\u308a\u4ed8\u3051","props_desc":"\u8868\u306e\u5c5e\u6027","cell_desc":"\u30bb\u30eb\u306e\u5c5e\u6027","row_desc":"\u884c\u306e\u5c5e\u6027","merge_cells_desc":"\u30bb\u30eb\u3092\u7d50\u5408","split_cells_desc":"\u30bb\u30eb\u306e\u7d50\u5408\u3092\u89e3\u9664","delete_col_desc":"\u5217\u3092\u524a\u9664","col_after_desc":"\u53f3\u306b\u5217\u3092\u633f\u5165","col_before_desc":"\u5de6\u306b\u5217\u3092\u633f\u5165","delete_row_desc":"\u884c\u3092\u524a\u9664","row_after_desc":"\u4e0b\u306b\u884c\u3092\u633f\u5165","row_before_desc":"\u4e0a\u306b\u884c\u3092\u633f\u5165",desc:"\u8868\u306e\u633f\u5165","merge_cells_delta_height":"","merge_cells_delta_width":"","table_delta_height":"","table_delta_width":"","cellprops_delta_height":"","cellprops_delta_width":"","rowprops_delta_height":"","rowprops_delta_width":""},autosave:{"warning_message":"\u4fdd\u5b58\u3057\u305f\u30c7\u30fc\u30bf\u3092\u5fa9\u5143\u3059\u308b\u3068\u3001\u73fe\u5728\u306e\u7de8\u96c6\u5185\u5bb9\u3092\u3059\u3079\u3066\u5931\u3044\u307e\u3059\u3002\n\n\u672c\u5f53\u306b\u4fdd\u5b58\u3057\u305f\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u304b?","restore_content":"\u81ea\u52d5\u4fdd\u5b58\u30c7\u30fc\u30bf\u3092\u5fa9\u5143","unload_msg":"\u4ed6\u306e\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3059\u308b\u3068\u3001\u5909\u66f4\u3092\u3059\u3079\u3066\u5931\u3044\u307e\u3059\u3002"},fullscreen:{desc:"\u5168\u753b\u9762"},media:{"delta_height":"",edit:"\u57cb\u3081\u8fbc\u307f\u30e1\u30c7\u30a3\u30a2\u306e\u7de8\u96c6",desc:"\u57cb\u3081\u8fbc\u307f\u30e1\u30c7\u30a3\u30a2\u306e\u633f\u5165\u3084\u7de8\u96c6","delta_width":""},fullpage:{desc:"\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u5c5e\u6027","delta_width":"","delta_height":""},template:{desc:"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u633f\u5165"},visualchars:{desc:"\u5236\u5fa1\u6587\u5b57\u306e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048"},spellchecker:{desc:"\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af\u306e\u4f7f\u7528\u3092\u5207\u308a\u66ff\u3048",menu:"\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af\u306e\u8a2d\u5b9a","ignore_word":"\u3053\u306e\u5358\u8a9e\u3092\u7121\u8996","ignore_words":"\u3059\u3079\u3066\u7121\u8996",langs:"\u8a00\u8a9e",wait:"\u3057\u3070\u3089\u304f\u304a\u5f85\u3061\u304f\u3060\u3055\u3044...",sug:"\u5019\u88dc","no_sug":"\u5019\u88dc\u306a\u3057","no_mpell":"\u30b9\u30da\u30eb\u306e\u8aa4\u308a\u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002","learn_word":"\u3053\u306e\u5358\u8a9e\u3092\u5b66\u7fd2"},pagebreak:{desc:"\u5370\u5237\u7528\u306e\u6539\u30da\u30fc\u30b8\u3092\u633f\u5165"},advlist:{types:"\u7a2e\u985e",def:"\u30c7\u30d5\u30a9\u30eb\u30c8","lower_alpha":"a b c ...","lower_greek":"\u03b1 \u03b2 \u03b3 \u2026","lower_roman":"i ii iii ...","upper_alpha":"A B C ...","upper_roman":"I II III ...",circle:"\u767d\u4e38\uff08circle\uff09",disc:"\u9ed2\u4e38\uff08disc\uff09",square:"\u56db\u89d2\uff08square\uff09"},colors:{"333300":"\u6fc3\u3044\u30aa\u30ea\u30fc\u30d6\u8272","993300":"\u6fc3\u3044\u30aa\u30ec\u30f3\u30b8\u8272","000000":"\u9ed2\u8272","003300":"\u6fc3\u3044\u7dd1\u8272","003366":"\u6fc3\u3044\u7fa4\u9752\u8272","000080":"\u6fc3\u7d3a\u8272","333399":"\u85cd\u8272","333333":"\u3068\u3066\u3082\u6fc3\u3044\u7070\u8272","800000":"\u6817\u8272",FF6600:"\u6a59\u8272","808000":"\u30aa\u30ea\u30fc\u30d6\u8272","008000":"\u7dd1\u8272","008080":"\u7dd1\u304c\u304b\u304b\u3063\u305f\u9752\u8272","0000FF":"\u9752\u8272","666699":"\u7d0d\u6238\u8272","808080":"\u7070\u8272",FF0000:"\u8d64",FF9900:"\u7425\u73c0\u8272","99CC00":"\u9ec4\u7dd1\u8272","339966":"\u6d77\u7dd1\u8272","33CCCC":"\u9752\u7dd1\u8272","3366FF":"\u85e4\u7d2b\u8272","800080":"\u7d2b\u8272","999999":"\u4e2d\u304f\u3089\u3044\u306e\u7070\u8272",FF00FF:"\u8d64\u7d2b\u8272",FFCC00:"\u91d1\u8272",FFFF00:"\u9ec4\u8272","00FF00":"\u30e9\u30a4\u30e0\u8272","00FFFF":"\u6c34\u8272","00CCFF":"\u7a7a\u8272","993366":"\u8336\u8272",C0C0C0:"\u9280\u8272",FF99CC:"\u30d4\u30f3\u30af\u8272",FFCC99:"\u6843\u8272",FFFF99:"\u8584\u3044\u9ec4\u8272",CCFFCC:"\u6de1\u7dd1\u8272",CCFFFF:"\u6de1\u9752\u7dd1\u8272","99CCFF":"\u8584\u3044\u6c34\u8272",CC99FF:"\u6fc3\u3044\u8d64\u7d2b\u8272",FFFFFF:"\u767d\u8272"},aria:{"rich_text_area":"\u30ea\u30c3\u30c1\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2"},wordcount:{words:"\u5358\u8a9e\u306e\u6570"}}}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/license.txt b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/license.txt
new file mode 100755
index 00000000..60d6d4c8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/license.txt
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/css/advhr.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/css/advhr.css
new file mode 100755
index 00000000..0e228349
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/css/advhr.css
@@ -0,0 +1,5 @@
+input.radio {border:1px none #000; background:transparent; vertical-align:middle;}
+.panel_wrapper div.current {height:80px;}
+#width {width:50px; vertical-align:middle;}
+#width2 {width:50px; vertical-align:middle;}
+#size {width:100px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin.js
new file mode 100755
index 00000000..4d3b062d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin_src.js
new file mode 100755
index 00000000..0c652d33
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/editor_plugin_src.js
@@ -0,0 +1,57 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceAdvancedHr', function() {
+ ed.windowManager.open({
+ file : url + '/rule.htm',
+ width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
+ height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('advhr', {
+ title : 'advhr.advhr_desc',
+ cmd : 'mceAdvancedHr'
+ });
+
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('advhr', n.nodeName == 'HR');
+ });
+
+ ed.onClick.add(function(ed, e) {
+ e = e.target;
+
+ if (e.nodeName === 'HR')
+ ed.selection.select(e);
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced HR',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/js/rule.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/js/rule.js
new file mode 100644
index 00000000..b6cbd66c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/js/rule.js
@@ -0,0 +1,43 @@
+var AdvHRDialog = {
+ init : function(ed) {
+ var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w;
+
+ w = dom.getAttrib(n, 'width');
+ f.width.value = w ? parseInt(w) : (dom.getStyle('width') || '');
+ f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || '';
+ f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width');
+ selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px');
+ },
+
+ update : function() {
+ var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = '';
+
+ h = '<hr';
+
+ if (f.size.value) {
+ h += ' size="' + f.size.value + '"';
+ st += ' height:' + f.size.value + 'px;';
+ }
+
+ if (f.width.value) {
+ h += ' width="' + f.width.value + (f.width2.value == '%' ? '%' : '') + '"';
+ st += ' width:' + f.width.value + (f.width2.value == '%' ? '%' : 'px') + ';';
+ }
+
+ if (f.noshade.checked) {
+ h += ' noshade="noshade"';
+ st += ' border-width: 1px; border-style: solid; border-color: #CCCCCC; color: #ffffff;';
+ }
+
+ if (ed.settings.inline_styles)
+ h += ' style="' + tinymce.trim(st) + '"';
+
+ h += ' />';
+
+ ed.execCommand("mceInsertContent", false, h);
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.requireLangPack();
+tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/de_dlg.js
new file mode 100644
index 00000000..7c5143e5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.advhr_dlg',{size:"H\u00f6he",noshade:"Kein Schatten",width:"Breite",normal:"Normal",widthunits:"Einheiten"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/en_dlg.js
new file mode 100644
index 00000000..0c3bf15e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.advhr_dlg',{size:"Height",noshade:"No Shadow",width:"Width",normal:"Normal",widthunits:"Units"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/hu_dlg.js
new file mode 100644
index 00000000..8dafd82e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.advhr_dlg',{size:"Magass\u00e1g",noshade:"Nincs \u00e1rny\u00e9k",width:"Sz\u00e9less\u00e9g",normal:"Norm\u00e1l",widthunits:"M\u00e9rt\u00e9kegys\u00e9gek"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/ja_dlg.js
new file mode 100644
index 00000000..70adc8b5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.advhr_dlg',{size:"\u9ad8\u3055",noshade:"\u5f71\u306a\u3057",width:"\u5e45",normal:"\u901a\u5e38",widthunits:"\u5358\u4f4d"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/rule.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/rule.htm
new file mode 100755
index 00000000..843e1f8f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advhr/rule.htm
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advhr.advhr_desc}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/rule.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <link href="css/advhr.css" rel="stylesheet" type="text/css" />
+</head>
+<body role="application">
+<form onsubmit="AdvHRDialog.update();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr role="group" aria-labelledby="width_label">
+ <td><label id="width_label" for="width">{#advhr_dlg.width}</label></td>
+ <td class="nowrap">
+ <input id="width" name="width" type="text" value="" class="mceFocus" />
+ <span style="display:none;" id="width_unit_label">{#advhr_dlg.widthunits}</span>
+ <select name="width2" id="width2" aria-labelledby="width_unit_label">
+ <option value="">px</option>
+ <option value="%">%</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="size">{#advhr_dlg.size}</label></td>
+ <td><select id="size" name="size">
+ <option value="">{#advhr_dlg.normal}</option>
+ <option value="1">1</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4</option>
+ <option value="5">5</option>
+ </select></td>
+ </tr>
+ <tr>
+ <td><label for="noshade">{#advhr_dlg.noshade}</label></td>
+ <td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/css/advimage.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/css/advimage.css
new file mode 100755
index 00000000..0a6251a6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/css/advimage.css
@@ -0,0 +1,13 @@
+#src_list, #over_list, #out_list {width:280px;}
+.mceActionPanel {margin-top:7px;}
+.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;}
+.checkbox {border:0;}
+.panel_wrapper div.current {height:305px;}
+#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;}
+#align, #classlist {width:150px;}
+#width, #height {vertical-align:middle; width:50px; text-align:center;}
+#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;}
+#class_list {width:180px;}
+input {width: 280px;}
+#constrain, #onmousemovecheck {width:auto;}
+#id, #dir, #lang, #usemap, #longdesc {width:200px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin.js
new file mode 100755
index 00000000..d613a613
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin_src.js
new file mode 100755
index 00000000..d2678cbc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/editor_plugin_src.js
@@ -0,0 +1,50 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceAdvImage', function() {
+ // Internal image object like a flash placeholder
+ if (ed.dom.getAttrib(ed.selection.getNode(), 'class', '').indexOf('mceItem') != -1)
+ return;
+
+ ed.windowManager.open({
+ file : url + '/image.htm',
+ width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
+ height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('image', {
+ title : 'advimage.image_desc',
+ cmd : 'mceAdvImage'
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced image',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/image.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/image.htm
new file mode 100755
index 00000000..ed16b3d4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/image.htm
@@ -0,0 +1,235 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advimage_dlg.dialog_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/image.js"></script>
+ <link href="css/advimage.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="advimage" style="display: none" role="application" aria-labelledby="app_title">
+ <span id="app_title" style="display:none">{#advimage_dlg.dialog_title}</span>
+ <form onsubmit="ImageDialog.insert();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
+ <li id="appearance_tab" aria-controls="appearance_panel"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#advimage_dlg.general}</legend>
+
+ <table role="presentation" class="properties">
+ <tr>
+ <td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
+ <td colspan="2"><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input name="src" type="text" id="src" value="" class="mceFocus" onchange="ImageDialog.showPreviewImage(this.value);" aria-required="true" /></td>
+ <td id="srcbrowsercontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="src_list">{#advimage_dlg.image_list}</label></td>
+ <td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"><option value=""></option></select></td>
+ </tr>
+ <tr>
+ <td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td>
+ <td colspan="2"><input id="alt" name="alt" type="text" value="" /></td>
+ </tr>
+ <tr>
+ <td class="column1"><label id="titlelabel" for="title">{#advimage_dlg.title}</label></td>
+ <td colspan="2"><input id="title" name="title" type="text" value="" /></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#advimage_dlg.preview}</legend>
+ <div id="prev"></div>
+ </fieldset>
+ </div>
+
+ <div id="appearance_panel" class="panel">
+ <fieldset>
+ <legend>{#advimage_dlg.tab_appearance}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
+ <td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
+ <option value="">{#not_set}</option>
+ <option value="baseline">{#advimage_dlg.align_baseline}</option>
+ <option value="top">{#advimage_dlg.align_top}</option>
+ <option value="middle">{#advimage_dlg.align_middle}</option>
+ <option value="bottom">{#advimage_dlg.align_bottom}</option>
+ <option value="text-top">{#advimage_dlg.align_texttop}</option>
+ <option value="text-bottom">{#advimage_dlg.align_textbottom}</option>
+ <option value="left">{#advimage_dlg.align_left}</option>
+ <option value="right">{#advimage_dlg.align_right}</option>
+ </select>
+ </td>
+ <td rowspan="6" valign="top">
+ <div class="alignPreview">
+ <img id="alignSampleImg" src="img/sample.gif" alt="{#advimage_dlg.example_img}" />
+ Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
+ nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
+ edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
+ erat volutpat.
+ </div>
+ </td>
+ </tr>
+
+ <tr role="group" aria-labelledby="widthlabel">
+ <td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
+ <td class="nowrap">
+ <span style="display:none" id="width_voiceLabel">{#advimage_dlg.width}</span>
+ <input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" aria-labelledby="width_voiceLabel" /> x
+ <span style="display:none" id="height_voiceLabel">{#advimage_dlg.height}</span>
+ <input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" aria-labelledby="height_voiceLabel" /> px
+ </td>
+ </tr>
+
+ <tr>
+ <td>&nbsp;</td>
+ <td><table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
+ <td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
+ </tr>
+ </table></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="vspacelabel" for="vspace">{#advimage_dlg.vspace}</label></td>
+ <td><input name="vspace" type="text" id="vspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="hspacelabel" for="hspace">{#advimage_dlg.hspace}</label></td>
+ <td><input name="hspace" type="text" id="hspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="borderlabel" for="border">{#advimage_dlg.border}</label></td>
+ <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="class_list">{#class_name}</label></td>
+ <td colspan="2"><select id="class_list" name="class_list" class="mceEditableSelect"><option value=""></option></select></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="stylelabel" for="style">{#advimage_dlg.style}</label></td>
+ <td colspan="2"><input id="style" name="style" type="text" value="" onchange="ImageDialog.changeAppearance();" /></td>
+ </tr>
+
+ <!-- <tr>
+ <td class="column1"><label id="classeslabel" for="classes">{#advimage_dlg.classes}</label></td>
+ <td colspan="2"><input id="classes" name="classes" type="text" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
+ </tr> -->
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="advanced_panel" class="panel">
+ <fieldset>
+ <legend>{#advimage_dlg.swap_image}</legend>
+
+ <input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" aria-controls="onmouseoversrc onmouseoutsrc" />
+ <label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0" width="100%">
+ <tr>
+ <td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
+ <td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
+ <td id="onmouseoversrccontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="over_list">{#advimage_dlg.image_list}</label></td>
+ <td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
+ </tr>
+ <tr>
+ <td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
+ <td class="column2"><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
+ <td id="onmouseoutsrccontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="out_list">{#advimage_dlg.image_list}</label></td>
+ <td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#advimage_dlg.misc}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
+ <td><input id="id" name="id" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="dirlabel" for="dir">{#advimage_dlg.langdir}</label></td>
+ <td>
+ <select id="dir" name="dir" onchange="ImageDialog.changeAppearance();">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#advimage_dlg.ltr}</option>
+ <option value="rtl">{#advimage_dlg.rtl}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="langlabel" for="lang">{#advimage_dlg.langcode}</label></td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="usemaplabel" for="usemap">{#advimage_dlg.map}</label></td>
+ <td>
+ <input id="usemap" name="usemap" type="text" value="" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
+ <td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="longdesc" name="longdesc" type="text" value="" /></td>
+ <td id="longdesccontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/img/sample.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/img/sample.gif
new file mode 100644
index 00000000..53bf6890
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/img/sample.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/js/image.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/js/image.js
new file mode 100644
index 00000000..f0b7c6ee
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/js/image.js
@@ -0,0 +1,464 @@
+var ImageDialog = {
+ preInit : function() {
+ var url;
+
+ tinyMCEPopup.requireLangPack();
+
+ if (url = tinyMCEPopup.getParam("external_image_list_url"))
+ document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
+ },
+
+ init : function(ed) {
+ var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(), fl = tinyMCEPopup.getParam('external_image_list', 'tinyMCEImageList');
+
+ tinyMCEPopup.resizeToInnerSize();
+ this.fillClassList('class_list');
+ this.fillFileList('src_list', fl);
+ this.fillFileList('over_list', fl);
+ this.fillFileList('out_list', fl);
+ TinyMCE_EditableSelects.init();
+
+ if (n.nodeName == 'IMG') {
+ nl.src.value = dom.getAttrib(n, 'src');
+ nl.width.value = dom.getAttrib(n, 'width');
+ nl.height.value = dom.getAttrib(n, 'height');
+ nl.alt.value = dom.getAttrib(n, 'alt');
+ nl.title.value = dom.getAttrib(n, 'title');
+ nl.vspace.value = this.getAttrib(n, 'vspace');
+ nl.hspace.value = this.getAttrib(n, 'hspace');
+ nl.border.value = this.getAttrib(n, 'border');
+ selectByValue(f, 'align', this.getAttrib(n, 'align'));
+ selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true);
+ nl.style.value = dom.getAttrib(n, 'style');
+ nl.id.value = dom.getAttrib(n, 'id');
+ nl.dir.value = dom.getAttrib(n, 'dir');
+ nl.lang.value = dom.getAttrib(n, 'lang');
+ nl.usemap.value = dom.getAttrib(n, 'usemap');
+ nl.longdesc.value = dom.getAttrib(n, 'longdesc');
+ nl.insert.value = ed.getLang('update');
+
+ if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover')))
+ nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
+
+ if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout')))
+ nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
+
+ if (ed.settings.inline_styles) {
+ // Move attribs to styles
+ if (dom.getAttrib(n, 'align'))
+ this.updateStyle('align');
+
+ if (dom.getAttrib(n, 'hspace'))
+ this.updateStyle('hspace');
+
+ if (dom.getAttrib(n, 'border'))
+ this.updateStyle('border');
+
+ if (dom.getAttrib(n, 'vspace'))
+ this.updateStyle('vspace');
+ }
+ }
+
+ // Setup browse button
+ document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
+ if (isVisible('srcbrowser'))
+ document.getElementById('src').style.width = '260px';
+
+ // Setup browse button
+ document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image');
+ if (isVisible('overbrowser'))
+ document.getElementById('onmouseoversrc').style.width = '260px';
+
+ // Setup browse button
+ document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image');
+ if (isVisible('outbrowser'))
+ document.getElementById('onmouseoutsrc').style.width = '260px';
+
+ // If option enabled default contrain proportions to checked
+ if (ed.getParam("advimage_constrain_proportions", true))
+ f.constrain.checked = true;
+
+ // Check swap image if valid data
+ if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value)
+ this.setSwapImage(true);
+ else
+ this.setSwapImage(false);
+
+ this.changeAppearance();
+ this.showPreviewImage(nl.src.value, 1);
+ },
+
+ insert : function(file, title) {
+ var ed = tinyMCEPopup.editor, t = this, f = document.forms[0];
+
+ if (f.src.value === '') {
+ if (ed.selection.getNode().nodeName == 'IMG') {
+ ed.dom.remove(ed.selection.getNode());
+ ed.execCommand('mceRepaint');
+ }
+
+ tinyMCEPopup.close();
+ return;
+ }
+
+ if (tinyMCEPopup.getParam("accessibility_warnings", 1)) {
+ if (!f.alt.value) {
+ tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) {
+ if (s)
+ t.insertAndClose();
+ });
+
+ return;
+ }
+ }
+
+ t.insertAndClose();
+ },
+
+ insertAndClose : function() {
+ var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el;
+
+ tinyMCEPopup.restoreSelection();
+
+ // Fixes crash in Safari
+ if (tinymce.isWebKit)
+ ed.getWin().focus();
+
+ if (!ed.settings.inline_styles) {
+ args = {
+ vspace : nl.vspace.value,
+ hspace : nl.hspace.value,
+ border : nl.border.value,
+ align : getSelectValue(f, 'align')
+ };
+ } else {
+ // Remove deprecated values
+ args = {
+ vspace : '',
+ hspace : '',
+ border : '',
+ align : ''
+ };
+ }
+
+ tinymce.extend(args, {
+ src : nl.src.value.replace(/ /g, '%20'),
+ width : nl.width.value,
+ height : nl.height.value,
+ alt : nl.alt.value,
+ title : nl.title.value,
+ 'class' : getSelectValue(f, 'class_list'),
+ style : nl.style.value,
+ id : nl.id.value,
+ dir : nl.dir.value,
+ lang : nl.lang.value,
+ usemap : nl.usemap.value,
+ longdesc : nl.longdesc.value
+ });
+
+ args.onmouseover = args.onmouseout = '';
+
+ if (f.onmousemovecheck.checked) {
+ if (nl.onmouseoversrc.value)
+ args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';";
+
+ if (nl.onmouseoutsrc.value)
+ args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';";
+ }
+
+ el = ed.selection.getNode();
+
+ if (el && el.nodeName == 'IMG') {
+ ed.dom.setAttribs(el, args);
+ } else {
+ tinymce.each(args, function(value, name) {
+ if (value === "") {
+ delete args[name];
+ }
+ });
+
+ ed.execCommand('mceInsertContent', false, tinyMCEPopup.editor.dom.createHTML('img', args), {skip_undo : 1});
+ ed.undoManager.add();
+ }
+
+ tinyMCEPopup.editor.execCommand('mceRepaint');
+ tinyMCEPopup.editor.focus();
+ tinyMCEPopup.close();
+ },
+
+ getAttrib : function(e, at) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
+
+ if (ed.settings.inline_styles) {
+ switch (at) {
+ case 'align':
+ if (v = dom.getStyle(e, 'float'))
+ return v;
+
+ if (v = dom.getStyle(e, 'vertical-align'))
+ return v;
+
+ break;
+
+ case 'hspace':
+ v = dom.getStyle(e, 'margin-left')
+ v2 = dom.getStyle(e, 'margin-right');
+
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'vspace':
+ v = dom.getStyle(e, 'margin-top')
+ v2 = dom.getStyle(e, 'margin-bottom');
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'border':
+ v = 0;
+
+ tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) {
+ sv = dom.getStyle(e, 'border-' + sv + '-width');
+
+ // False or not the same as prev
+ if (!sv || (sv != v && v !== 0)) {
+ v = 0;
+ return false;
+ }
+
+ if (sv)
+ v = sv;
+ });
+
+ if (v)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+ }
+ }
+
+ if (v = dom.getAttrib(e, at))
+ return v;
+
+ return '';
+ },
+
+ setSwapImage : function(st) {
+ var f = document.forms[0];
+
+ f.onmousemovecheck.checked = st;
+ setBrowserDisabled('overbrowser', !st);
+ setBrowserDisabled('outbrowser', !st);
+
+ if (f.over_list)
+ f.over_list.disabled = !st;
+
+ if (f.out_list)
+ f.out_list.disabled = !st;
+
+ f.onmouseoversrc.disabled = !st;
+ f.onmouseoutsrc.disabled = !st;
+ },
+
+ fillClassList : function(id) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ if (v = tinyMCEPopup.getParam('theme_advanced_styles')) {
+ cl = [];
+
+ tinymce.each(v.split(';'), function(v) {
+ var p = v.split('=');
+
+ cl.push({'title' : p[0], 'class' : p[1]});
+ });
+ } else
+ cl = tinyMCEPopup.editor.dom.getClasses();
+
+ if (cl.length > 0) {
+ lst.options.length = 0;
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
+
+ tinymce.each(cl, function(o) {
+ lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ fillFileList : function(id, l) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ l = typeof(l) === 'function' ? l() : window[l];
+ lst.options.length = 0;
+
+ if (l && l.length > 0) {
+ lst.options[lst.options.length] = new Option('', '');
+
+ tinymce.each(l, function(o) {
+ lst.options[lst.options.length] = new Option(o[0], o[1]);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ resetImageData : function() {
+ var f = document.forms[0];
+
+ f.elements.width.value = f.elements.height.value = '';
+ },
+
+ updateImageData : function(img, st) {
+ var f = document.forms[0];
+
+ if (!st) {
+ f.elements.width.value = img.width;
+ f.elements.height.value = img.height;
+ }
+
+ this.preloadImg = img;
+ },
+
+ changeAppearance : function() {
+ var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg');
+
+ if (img) {
+ if (ed.getParam('inline_styles')) {
+ ed.dom.setAttrib(img, 'style', f.style.value);
+ } else {
+ img.align = f.align.value;
+ img.border = f.border.value;
+ img.hspace = f.hspace.value;
+ img.vspace = f.vspace.value;
+ }
+ }
+ },
+
+ changeHeight : function() {
+ var f = document.forms[0], tp, t = this;
+
+ if (!f.constrain.checked || !t.preloadImg) {
+ return;
+ }
+
+ if (f.width.value == "" || f.height.value == "")
+ return;
+
+ tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height;
+ f.height.value = tp.toFixed(0);
+ },
+
+ changeWidth : function() {
+ var f = document.forms[0], tp, t = this;
+
+ if (!f.constrain.checked || !t.preloadImg) {
+ return;
+ }
+
+ if (f.width.value == "" || f.height.value == "")
+ return;
+
+ tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width;
+ f.width.value = tp.toFixed(0);
+ },
+
+ updateStyle : function(ty) {
+ var dom = tinyMCEPopup.dom, b, bStyle, bColor, v, isIE = tinymce.isIE, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value});
+
+ if (tinyMCEPopup.editor.settings.inline_styles) {
+ // Handle align
+ if (ty == 'align') {
+ dom.setStyle(img, 'float', '');
+ dom.setStyle(img, 'vertical-align', '');
+
+ v = getSelectValue(f, 'align');
+ if (v) {
+ if (v == 'left' || v == 'right')
+ dom.setStyle(img, 'float', v);
+ else
+ img.style.verticalAlign = v;
+ }
+ }
+
+ // Handle border
+ if (ty == 'border') {
+ b = img.style.border ? img.style.border.split(' ') : [];
+ bStyle = dom.getStyle(img, 'border-style');
+ bColor = dom.getStyle(img, 'border-color');
+
+ dom.setStyle(img, 'border', '');
+
+ v = f.border.value;
+ if (v || v == '0') {
+ if (v == '0')
+ img.style.border = isIE ? '0' : '0 none none';
+ else {
+ var isOldIE = tinymce.isIE && (!document.documentMode || document.documentMode < 9);
+
+ if (b.length == 3 && b[isOldIE ? 2 : 1])
+ bStyle = b[isOldIE ? 2 : 1];
+ else if (!bStyle || bStyle == 'none')
+ bStyle = 'solid';
+ if (b.length == 3 && b[isIE ? 0 : 2])
+ bColor = b[isOldIE ? 0 : 2];
+ else if (!bColor || bColor == 'none')
+ bColor = 'black';
+ img.style.border = v + 'px ' + bStyle + ' ' + bColor;
+ }
+ }
+ }
+
+ // Handle hspace
+ if (ty == 'hspace') {
+ dom.setStyle(img, 'marginLeft', '');
+ dom.setStyle(img, 'marginRight', '');
+
+ v = f.hspace.value;
+ if (v) {
+ img.style.marginLeft = v + 'px';
+ img.style.marginRight = v + 'px';
+ }
+ }
+
+ // Handle vspace
+ if (ty == 'vspace') {
+ dom.setStyle(img, 'marginTop', '');
+ dom.setStyle(img, 'marginBottom', '');
+
+ v = f.vspace.value;
+ if (v) {
+ img.style.marginTop = v + 'px';
+ img.style.marginBottom = v + 'px';
+ }
+ }
+
+ // Merge
+ dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img');
+ }
+ },
+
+ changeMouseMove : function() {
+ },
+
+ showPreviewImage : function(u, st) {
+ if (!u) {
+ tinyMCEPopup.dom.setHTML('prev', '');
+ return;
+ }
+
+ if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true))
+ this.resetImageData();
+
+ u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u);
+
+ if (!st)
+ tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this);" onerror="ImageDialog.resetImageData();" />');
+ else
+ tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this, 1);" />');
+ }
+};
+
+ImageDialog.preInit();
+tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/de_dlg.js
new file mode 100644
index 00000000..c5ea891a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.advimage_dlg',{"image_list":"Bilderliste","align_right":"Rechts","align_left":"Links","align_textbottom":"Unten im Text","align_texttop":"Oben im Text","align_bottom":"Unten","align_middle":"Mittig","align_top":"Oben","align_baseline":"Zeile",align:"Ausrichtung",hspace:"Horizontaler Abstand",vspace:"Vertikaler Abstand",dimensions:"Ausma\u00dfe",border:"Rahmen",list:"Bilderliste",alt:"Beschreibung",src:"Adresse","dialog_title":"Bild einf\u00fcgen/ver\u00e4ndern","missing_alt":"Soll wirklich keine Beschreibung f\u00fcr das Bild eingegeben werden? Bestimmte Benutzer mit k\u00f6rperlichen Einschr\u00e4nkungen k\u00f6nnen so nicht darauf zugreifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.","example_img":"Vorschau auf das Aussehen",misc:"Verschiedenes",mouseout:"bei keinem Mauskontakt",mouseover:"bei Mauskontakt","alt_image":"Alternatives Bild","swap_image":"Bild austauschen",map:"Image-Map",id:"ID",rtl:"Rechts nach links",ltr:"Links nach rechts",classes:"Klassen",style:"Format","long_desc":"Ausf\u00fchrliche Beschreibung",langcode:"Sprachcode",langdir:"Schriftrichtung","constrain_proportions":"Seitenverh\u00e4ltnis beibehalten",preview:"Vorschau",title:"Titel",general:"Allgemein","tab_advanced":"Erweitert","tab_appearance":"Aussehen","tab_general":"Allgemein",width:"Breite",height:"H\u00f6he"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/en_dlg.js
new file mode 100644
index 00000000..5f122e2c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.advimage_dlg',{"image_list":"Image List","align_right":"Right","align_left":"Left","align_textbottom":"Text Bottom","align_texttop":"Text Top","align_bottom":"Bottom","align_middle":"Middle","align_top":"Top","align_baseline":"Baseline",align:"Alignment",hspace:"Horizontal Space",vspace:"Vertical Space",dimensions:"Dimensions",border:"Border",list:"Image List",alt:"Image Description",src:"Image URL","dialog_title":"Insert/Edit Image","missing_alt":"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.","example_img":"Appearance Preview Image",misc:"Miscellaneous",mouseout:"For Mouse Out",mouseover:"For Mouse Over","alt_image":"Alternative Image","swap_image":"Swap Image",map:"Image Map",id:"ID",rtl:"Right to Left",ltr:"Left to Right",classes:"Classes",style:"Style","long_desc":"Long Description Link",langcode:"Language Code",langdir:"Language Direction","constrain_proportions":"Constrain Proportions",preview:"Preview",title:"Title",general:"General","tab_advanced":"Advanced","tab_appearance":"Appearance","tab_general":"General",width:"Width",height:"Height"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/hu_dlg.js
new file mode 100644
index 00000000..37c93464
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.advimage_dlg',{"image_list":"K\u00e9plista","align_right":"Jobbra","align_left":"Balra","align_textbottom":"Sz\u00f6veg alj\u00e1hoz","align_texttop":"Sz\u00f6veg tetej\u00e9hez","align_bottom":"Lentre","align_middle":"K\u00f6z\u00e9pre","align_top":"Fentre","align_baseline":"Alapvonalhoz",align:"Igaz\u00edt\u00e1s",hspace:"V\u00edzszintes t\u00e1vols\u00e1g",vspace:"F\u00fcgg\u0151leges t\u00e1vols\u00e1g",dimensions:"M\u00e9retek",border:"Keret",list:"K\u00e9plista",alt:"K\u00e9p helyettes\u00edt\u0151 sz\u00f6vege",src:"K\u00e9p internet c\u00edme","dialog_title":"K\u00e9p besz\u00far\u00e1sa/szerkeszt\u00e9se","missing_alt":"Biztosan folytatja k\u00e9pet le\u00edr\u00f3 sz\u00f6veg n\u00e9lk\u00fcl? En\u00e9lk\u00fcl a fogyat\u00e9koss\u00e1ggal \u00e9l\u0151k, sz\u00f6veges b\u00f6ng\u00e9sz\u0151t haszn\u00e1l\u00f3k \u00e9s a k\u00e9pek megjelen\u00edt\u00e9s\u00e9t letilt\u00f3 felhaszn\u00e1l\u00f3k h\u00e1tr\u00e1nyba ker\u00fclnek.","example_img":"El\u0151n\u00e9zeti k\u00e9p megjelen\u00edt\u00e9se",misc:"Vegyes",mouseout:"K\u00e9p az eg\u00e9rkurzor lev\u00e9telekor",mouseover:"K\u00e9p az eg\u00e9rkurzor f\u00f6l\u00e9vitelekor","alt_image":"Alternat\u00edv k\u00e9p","swap_image":"K\u00e9pcsere",map:"K\u00e9p t\u00e9rk\u00e9p",id:"ID",rtl:"Jobbr\u00f3l balra",ltr:"Balr\u00f3l jobbra",classes:"Oszt\u00e1lyok",style:"CSS St\u00edlus","long_desc":"B\u0151vebb le\u00edr\u00e1s\u00fa link",langcode:"Nyelv k\u00f3d",langdir:"Nyelv \u00edr\u00e1s ir\u00e1ny","constrain_proportions":"Ar\u00e1nytart\u00e1s",preview:"El\u0151n\u00e9zet",title:"C\u00edm",general:"\u00c1ltal\u00e1nos","tab_advanced":"Halad\u00f3","tab_appearance":"Megjelen\u00e9s","tab_general":"\u00c1ltal\u00e1nos",width:"Sz\u00e9less\u00e9g",height:"Magass\u00e1g"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/ja_dlg.js
new file mode 100644
index 00000000..f8449c42
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advimage/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.advimage_dlg',{"image_list":"\u753b\u50cf\u306e\u4e00\u89a7","align_right":"\u53f3\u5bc4\u305b","align_left":"\u5de6\u5bc4\u305b","align_textbottom":"\u30c6\u30ad\u30b9\u30c8\u3092\u4e0b\u7aef\u63c3\u3048","align_texttop":"\u30c6\u30ad\u30b9\u30c8\u3092\u4e0a\u7aef\u63c3\u3048","align_bottom":"\u4e0b\u63c3\u3048","align_middle":"\u4e2d\u592e\u63c3\u3048","align_top":"\u4e0a\u63c3\u3048","align_baseline":"\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u63c3\u3048",align:"\u914d\u7f6e",hspace:"\u5de6\u53f3\u306e\u4f59\u767d",vspace:"\u4e0a\u4e0b\u306e\u4f59\u767d",dimensions:"\u5bf8\u6cd5",border:"\u67a0\u7dda",list:"\u753b\u50cf\u306e\u4e00\u89a7",alt:"\u753b\u50cf\u306e\u8aac\u660e",src:"\u753b\u50cf\u306eURL","dialog_title":"\u753b\u50cf\u3092\u633f\u5165/\u7de8\u96c6","missing_alt":"\u753b\u50cf\u306e\u8aac\u660e\u3092\u542b\u3081\u305a\u306b\u7d9a\u3051\u307e\u3059\u304b? \u753b\u50cf\u306e\u8aac\u660e\u304c\u306a\u3044\u3068\u76ee\u306e\u4e0d\u81ea\u7531\u306a\u65b9\u3001\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u3060\u3051\u306e\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u65b9\u3001\u753b\u50cf\u306e\u8868\u793a\u3092\u6b62\u3081\u3066\u308b\u65b9\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002","example_img":"\u753b\u50cf\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u306e\u69d8\u5b50",misc:"\u305d\u306e\u4ed6",mouseout:"\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u5916\u308c\u308b\u6642",mouseover:"\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u304b\u304b\u308b\u6642","alt_image":"\u5225\u306e\u753b\u50cf","swap_image":"\u753b\u50cf\u306e\u5165\u308c\u66ff\u3048",map:"\u30a4\u30e1\u30fc\u30b8\u30de\u30c3\u30d7",id:"ID",rtl:"\u53f3\u304b\u3089\u5de6",ltr:"\u5de6\u304b\u3089\u53f3",classes:"\u30af\u30e9\u30b9",style:"\u30b9\u30bf\u30a4\u30eb","long_desc":"\u8a73\u7d30\u306a\u8aac\u660e\u306e\u30ea\u30f3\u30af",langcode:"\u8a00\u8a9e\u30b3\u30fc\u30c9",langdir:"\u6587\u7ae0\u306e\u65b9\u5411","constrain_proportions":"\u7e26\u6a2a\u6bd4\u306e\u7dad\u6301",preview:"\u30d7\u30ec\u30d3\u30e5\u30fc",title:"\u30bf\u30a4\u30c8\u30eb",general:"\u4e00\u822c","tab_advanced":"\u9ad8\u5ea6\u306a\u8a2d\u5b9a","tab_appearance":"\u8868\u793a","tab_general":"\u4e00\u822c",width:"\u5e45",height:"\u9ad8\u3055"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/css/advlink.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/css/advlink.css
new file mode 100755
index 00000000..14364316
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/css/advlink.css
@@ -0,0 +1,8 @@
+.mceLinkList, .mceAnchorList, #targetlist {width:280px;}
+.mceActionPanel {margin-top:7px;}
+.panel_wrapper div.current {height:320px;}
+#classlist, #title, #href {width:280px;}
+#popupurl, #popupname {width:200px;}
+#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;}
+#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;}
+#events_panel input {width:200px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin.js
new file mode 100755
index 00000000..983fe5a9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin_src.js
new file mode 100755
index 00000000..14e46a76
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/editor_plugin_src.js
@@ -0,0 +1,61 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AdvancedLinkPlugin', {
+ init : function(ed, url) {
+ this.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceAdvLink', function() {
+ var se = ed.selection;
+
+ // No selection and not in link
+ if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
+ return;
+
+ ed.windowManager.open({
+ file : url + '/link.htm',
+ width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)),
+ height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('link', {
+ title : 'advlink.link_desc',
+ cmd : 'mceAdvLink'
+ });
+
+ ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink');
+
+ ed.onNodeChange.add(function(ed, cm, n, co) {
+ cm.setDisabled('link', co && n.nodeName != 'A');
+ cm.setActive('link', n.nodeName == 'A' && !n.name);
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced link',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/js/advlink.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/js/advlink.js
new file mode 100644
index 00000000..f013aac1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/js/advlink.js
@@ -0,0 +1,543 @@
+/* Functions for the advlink plugin popup */
+
+tinyMCEPopup.requireLangPack();
+
+var templates = {
+ "window.open" : "window.open('${url}','${target}','${options}')"
+};
+
+function preinit() {
+ var url;
+
+ if (url = tinyMCEPopup.getParam("external_link_list_url"))
+ document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
+}
+
+function changeClass() {
+ var f = document.forms[0];
+
+ f.classes.value = getSelectValue(f, 'classlist');
+}
+
+function init() {
+ tinyMCEPopup.resizeToInnerSize();
+
+ var formObj = document.forms[0];
+ var inst = tinyMCEPopup.editor;
+ var elm = inst.selection.getNode();
+ var action = "insert";
+ var html;
+
+ document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
+ document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
+ document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
+
+ // Link list
+ html = getLinkListHTML('linklisthref','href');
+ if (html == "")
+ document.getElementById("linklisthrefrow").style.display = 'none';
+ else
+ document.getElementById("linklisthrefcontainer").innerHTML = html;
+
+ // Anchor list
+ html = getAnchorListHTML('anchorlist','href');
+ if (html == "")
+ document.getElementById("anchorlistrow").style.display = 'none';
+ else
+ document.getElementById("anchorlistcontainer").innerHTML = html;
+
+ // Resize some elements
+ if (isVisible('hrefbrowser'))
+ document.getElementById('href').style.width = '260px';
+
+ if (isVisible('popupurlbrowser'))
+ document.getElementById('popupurl').style.width = '180px';
+
+ elm = inst.dom.getParent(elm, "A");
+ if (elm == null) {
+ var prospect = inst.dom.create("p", null, inst.selection.getContent());
+ if (prospect.childNodes.length === 1) {
+ elm = prospect.firstChild;
+ }
+ }
+
+ if (elm != null && elm.nodeName == "A")
+ action = "update";
+
+ formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true);
+
+ setPopupControlsDisabled(true);
+
+ if (action == "update") {
+ var href = inst.dom.getAttrib(elm, 'href');
+ var onclick = inst.dom.getAttrib(elm, 'onclick');
+ var linkTarget = inst.dom.getAttrib(elm, 'target') ? inst.dom.getAttrib(elm, 'target') : "_self";
+
+ // Setup form data
+ setFormValue('href', href);
+ setFormValue('title', inst.dom.getAttrib(elm, 'title'));
+ setFormValue('id', inst.dom.getAttrib(elm, 'id'));
+ setFormValue('style', inst.dom.getAttrib(elm, "style"));
+ setFormValue('rel', inst.dom.getAttrib(elm, 'rel'));
+ setFormValue('rev', inst.dom.getAttrib(elm, 'rev'));
+ setFormValue('charset', inst.dom.getAttrib(elm, 'charset'));
+ setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang'));
+ setFormValue('dir', inst.dom.getAttrib(elm, 'dir'));
+ setFormValue('lang', inst.dom.getAttrib(elm, 'lang'));
+ setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
+ setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
+ setFormValue('type', inst.dom.getAttrib(elm, 'type'));
+ setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus'));
+ setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur'));
+ setFormValue('onclick', onclick);
+ setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick'));
+ setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown'));
+ setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup'));
+ setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover'));
+ setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove'));
+ setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout'));
+ setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress'));
+ setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown'));
+ setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup'));
+ setFormValue('target', linkTarget);
+ setFormValue('classes', inst.dom.getAttrib(elm, 'class'));
+
+ // Parse onclick data
+ if (onclick != null && onclick.indexOf('window.open') != -1)
+ parseWindowOpen(onclick);
+ else
+ parseFunction(onclick);
+
+ // Select by the values
+ selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir'));
+ selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel'));
+ selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev'));
+ selectByValue(formObj, 'linklisthref', href);
+
+ if (href.charAt(0) == '#')
+ selectByValue(formObj, 'anchorlist', href);
+
+ addClassesToList('classlist', 'advlink_styles');
+
+ selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true);
+ selectByValue(formObj, 'targetlist', linkTarget, true);
+ } else
+ addClassesToList('classlist', 'advlink_styles');
+}
+
+function checkPrefix(n) {
+ if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
+ n.value = 'mailto:' + n.value;
+
+ if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
+ n.value = 'http://' + n.value;
+}
+
+function setFormValue(name, value) {
+ document.forms[0].elements[name].value = value;
+}
+
+function parseWindowOpen(onclick) {
+ var formObj = document.forms[0];
+
+ // Preprocess center code
+ if (onclick.indexOf('return false;') != -1) {
+ formObj.popupreturn.checked = true;
+ onclick = onclick.replace('return false;', '');
+ } else
+ formObj.popupreturn.checked = false;
+
+ var onClickData = parseLink(onclick);
+
+ if (onClickData != null) {
+ formObj.ispopup.checked = true;
+ setPopupControlsDisabled(false);
+
+ var onClickWindowOptions = parseOptions(onClickData['options']);
+ var url = onClickData['url'];
+
+ formObj.popupname.value = onClickData['target'];
+ formObj.popupurl.value = url;
+ formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
+ formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
+
+ formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
+ formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
+
+ if (formObj.popupleft.value.indexOf('screen') != -1)
+ formObj.popupleft.value = "c";
+
+ if (formObj.popuptop.value.indexOf('screen') != -1)
+ formObj.popuptop.value = "c";
+
+ formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
+ formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
+ formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
+ formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
+ formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
+ formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
+ formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
+
+ buildOnClick();
+ }
+}
+
+function parseFunction(onclick) {
+ var formObj = document.forms[0];
+ var onClickData = parseLink(onclick);
+
+ // TODO: Add stuff here
+}
+
+function getOption(opts, name) {
+ return typeof(opts[name]) == "undefined" ? "" : opts[name];
+}
+
+function setPopupControlsDisabled(state) {
+ var formObj = document.forms[0];
+
+ formObj.popupname.disabled = state;
+ formObj.popupurl.disabled = state;
+ formObj.popupwidth.disabled = state;
+ formObj.popupheight.disabled = state;
+ formObj.popupleft.disabled = state;
+ formObj.popuptop.disabled = state;
+ formObj.popuplocation.disabled = state;
+ formObj.popupscrollbars.disabled = state;
+ formObj.popupmenubar.disabled = state;
+ formObj.popupresizable.disabled = state;
+ formObj.popuptoolbar.disabled = state;
+ formObj.popupstatus.disabled = state;
+ formObj.popupreturn.disabled = state;
+ formObj.popupdependent.disabled = state;
+
+ setBrowserDisabled('popupurlbrowser', state);
+}
+
+function parseLink(link) {
+ link = link.replace(new RegExp('&#39;', 'g'), "'");
+
+ var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
+
+ // Is function name a template function
+ var template = templates[fnName];
+ if (template) {
+ // Build regexp
+ var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
+ var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
+ var replaceStr = "";
+ for (var i=0; i<variableNames.length; i++) {
+ // Is string value
+ if (variableNames[i].indexOf("'${") != -1)
+ regExp += "'(.*)'";
+ else // Number value
+ regExp += "([0-9]*)";
+
+ replaceStr += "$" + (i+1);
+
+ // Cleanup variable name
+ variableNames[i] = variableNames[i].replace(new RegExp("[^A-Za-z0-9]", "gi"), "");
+
+ if (i != variableNames.length-1) {
+ regExp += "\\s*,\\s*";
+ replaceStr += "<delim>";
+ } else
+ regExp += ".*";
+ }
+
+ regExp += "\\);?";
+
+ // Build variable array
+ var variables = [];
+ variables["_function"] = fnName;
+ var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('<delim>');
+ for (var i=0; i<variableNames.length; i++)
+ variables[variableNames[i]] = variableValues[i];
+
+ return variables;
+ }
+
+ return null;
+}
+
+function parseOptions(opts) {
+ if (opts == null || opts == "")
+ return [];
+
+ // Cleanup the options
+ opts = opts.toLowerCase();
+ opts = opts.replace(/;/g, ",");
+ opts = opts.replace(/[^0-9a-z=,]/g, "");
+
+ var optionChunks = opts.split(',');
+ var options = [];
+
+ for (var i=0; i<optionChunks.length; i++) {
+ var parts = optionChunks[i].split('=');
+
+ if (parts.length == 2)
+ options[parts[0]] = parts[1];
+ }
+
+ return options;
+}
+
+function buildOnClick() {
+ var formObj = document.forms[0];
+
+ if (!formObj.ispopup.checked) {
+ formObj.onclick.value = "";
+ return;
+ }
+
+ var onclick = "window.open('";
+ var url = formObj.popupurl.value;
+
+ onclick += url + "','";
+ onclick += formObj.popupname.value + "','";
+
+ if (formObj.popuplocation.checked)
+ onclick += "location=yes,";
+
+ if (formObj.popupscrollbars.checked)
+ onclick += "scrollbars=yes,";
+
+ if (formObj.popupmenubar.checked)
+ onclick += "menubar=yes,";
+
+ if (formObj.popupresizable.checked)
+ onclick += "resizable=yes,";
+
+ if (formObj.popuptoolbar.checked)
+ onclick += "toolbar=yes,";
+
+ if (formObj.popupstatus.checked)
+ onclick += "status=yes,";
+
+ if (formObj.popupdependent.checked)
+ onclick += "dependent=yes,";
+
+ if (formObj.popupwidth.value != "")
+ onclick += "width=" + formObj.popupwidth.value + ",";
+
+ if (formObj.popupheight.value != "")
+ onclick += "height=" + formObj.popupheight.value + ",";
+
+ if (formObj.popupleft.value != "") {
+ if (formObj.popupleft.value != "c")
+ onclick += "left=" + formObj.popupleft.value + ",";
+ else
+ onclick += "left='+(screen.availWidth/2-" + (formObj.popupwidth.value/2) + ")+',";
+ }
+
+ if (formObj.popuptop.value != "") {
+ if (formObj.popuptop.value != "c")
+ onclick += "top=" + formObj.popuptop.value + ",";
+ else
+ onclick += "top='+(screen.availHeight/2-" + (formObj.popupheight.value/2) + ")+',";
+ }
+
+ if (onclick.charAt(onclick.length-1) == ',')
+ onclick = onclick.substring(0, onclick.length-1);
+
+ onclick += "');";
+
+ if (formObj.popupreturn.checked)
+ onclick += "return false;";
+
+ // tinyMCE.debug(onclick);
+
+ formObj.onclick.value = onclick;
+
+ if (formObj.href.value == "")
+ formObj.href.value = url;
+}
+
+function setAttrib(elm, attrib, value) {
+ var formObj = document.forms[0];
+ var valueElm = formObj.elements[attrib.toLowerCase()];
+ var dom = tinyMCEPopup.editor.dom;
+
+ if (typeof(value) == "undefined" || value == null) {
+ value = "";
+
+ if (valueElm)
+ value = valueElm.value;
+ }
+
+ // Clean up the style
+ if (attrib == 'style')
+ value = dom.serializeStyle(dom.parseStyle(value), 'a');
+
+ dom.setAttrib(elm, attrib, value);
+}
+
+function getAnchorListHTML(id, target) {
+ var ed = tinyMCEPopup.editor, nodes = ed.dom.select('a'), name, i, len, html = "";
+
+ for (i=0, len=nodes.length; i<len; i++) {
+ if ((name = ed.dom.getAttrib(nodes[i], "name")) != "")
+ html += '<option value="#' + name + '">' + name + '</option>';
+
+ if ((name = nodes[i].id) != "" && !nodes[i].href)
+ html += '<option value="#' + name + '">' + name + '</option>';
+ }
+
+ if (html == "")
+ return "";
+
+ html = '<select id="' + id + '" name="' + id + '" class="mceAnchorList"'
+ + ' onchange="this.form.' + target + '.value=this.options[this.selectedIndex].value"'
+ + '>'
+ + '<option value="">---</option>'
+ + html
+ + '</select>';
+
+ return html;
+}
+
+function insertAction() {
+ var inst = tinyMCEPopup.editor;
+ var elm, elementArray, i;
+
+ elm = inst.selection.getNode();
+ checkPrefix(document.forms[0].href);
+
+ elm = inst.dom.getParent(elm, "A");
+
+ // Remove element if there is no href
+ if (!document.forms[0].href.value) {
+ i = inst.selection.getBookmark();
+ inst.dom.remove(elm, 1);
+ inst.selection.moveToBookmark(i);
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
+ tinyMCEPopup.close();
+ return;
+ }
+
+ // Create new anchor elements
+ if (elm == null) {
+ inst.getDoc().execCommand("unlink", false, null);
+ tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
+
+ elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
+ for (i=0; i<elementArray.length; i++)
+ setAllAttribs(elm = elementArray[i]);
+ } else
+ setAllAttribs(elm);
+
+ // Don't move caret if selection was image
+ if (elm.childNodes.length != 1 || elm.firstChild.nodeName != 'IMG') {
+ inst.focus();
+ inst.selection.select(elm);
+ inst.selection.collapse(0);
+ tinyMCEPopup.storeSelection();
+ }
+
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
+ tinyMCEPopup.close();
+}
+
+function setAllAttribs(elm) {
+ var formObj = document.forms[0];
+ var href = formObj.href.value.replace(/ /g, '%20');
+ var target = getSelectValue(formObj, 'targetlist');
+
+ setAttrib(elm, 'href', href);
+ setAttrib(elm, 'title');
+ setAttrib(elm, 'target', target == '_self' ? '' : target);
+ setAttrib(elm, 'id');
+ setAttrib(elm, 'style');
+ setAttrib(elm, 'class', getSelectValue(formObj, 'classlist'));
+ setAttrib(elm, 'rel');
+ setAttrib(elm, 'rev');
+ setAttrib(elm, 'charset');
+ setAttrib(elm, 'hreflang');
+ setAttrib(elm, 'dir');
+ setAttrib(elm, 'lang');
+ setAttrib(elm, 'tabindex');
+ setAttrib(elm, 'accesskey');
+ setAttrib(elm, 'type');
+ setAttrib(elm, 'onfocus');
+ setAttrib(elm, 'onblur');
+ setAttrib(elm, 'onclick');
+ setAttrib(elm, 'ondblclick');
+ setAttrib(elm, 'onmousedown');
+ setAttrib(elm, 'onmouseup');
+ setAttrib(elm, 'onmouseover');
+ setAttrib(elm, 'onmousemove');
+ setAttrib(elm, 'onmouseout');
+ setAttrib(elm, 'onkeypress');
+ setAttrib(elm, 'onkeydown');
+ setAttrib(elm, 'onkeyup');
+
+ // Refresh in old MSIE
+ if (tinyMCE.isMSIE5)
+ elm.outerHTML = elm.outerHTML;
+}
+
+function getSelectValue(form_obj, field_name) {
+ var elm = form_obj.elements[field_name];
+
+ if (!elm || elm.options == null || elm.selectedIndex == -1)
+ return "";
+
+ return elm.options[elm.selectedIndex].value;
+}
+
+function getLinkListHTML(elm_id, target_form_element, onchange_func) {
+ if (typeof(tinyMCELinkList) == "undefined" || tinyMCELinkList.length == 0)
+ return "";
+
+ var html = "";
+
+ html += '<select id="' + elm_id + '" name="' + elm_id + '"';
+ html += ' class="mceLinkList" onchange="this.form.' + target_form_element + '.value=';
+ html += 'this.options[this.selectedIndex].value;';
+
+ if (typeof(onchange_func) != "undefined")
+ html += onchange_func + '(\'' + target_form_element + '\',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);';
+
+ html += '"><option value="">---</option>';
+
+ for (var i=0; i<tinyMCELinkList.length; i++)
+ html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
+
+ html += '</select>';
+
+ return html;
+
+ // tinyMCE.debug('-- image list start --', html, '-- image list end --');
+}
+
+function getTargetListHTML(elm_id, target_form_element) {
+ var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
+ var html = '';
+
+ html += '<select id="' + elm_id + '" name="' + elm_id + '" onchange="this.form.' + target_form_element + '.value=';
+ html += 'this.options[this.selectedIndex].value;">';
+ html += '<option value="_self">' + tinyMCEPopup.getLang('advlink_dlg.target_same') + '</option>';
+ html += '<option value="_blank">' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)</option>';
+ html += '<option value="_parent">' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)</option>';
+ html += '<option value="_top">' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)</option>';
+
+ for (var i=0; i<targets.length; i++) {
+ var key, value;
+
+ if (targets[i] == "")
+ continue;
+
+ key = targets[i].split('=')[0];
+ value = targets[i].split('=')[1];
+
+ html += '<option value="' + key + '">' + value + ' (' + key + ')</option>';
+ }
+
+ html += '</select>';
+
+ return html;
+}
+
+// While loading
+preinit();
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/de_dlg.js
new file mode 100644
index 00000000..475dfe95
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.advlink_dlg',{"target_name":"Name der Zielseite",classes:"Klassen",style:"Format",id:"ID","popup_position":"Position (X/Y)",langdir:"Schriftrichtung","popup_size":"Gr\u00f6\u00dfe","popup_dependent":"Vom Elternfenster abh\u00e4ngig <br /> (nur Mozilla/Firefox) ","popup_resizable":"Vergr\u00f6\u00dfern des Fenster zulassen","popup_location":"Adressleiste anzeigen","popup_menubar":"Browsermen\u00fc anzeigen","popup_toolbar":"Werkzeugleisten anzeigen","popup_statusbar":"Statusleiste anzeigen","popup_scrollbars":"Scrollbalken anzeigen","popup_return":"Link trotz Popup folgen","popup_name":"Name des Fensters","popup_url":"Popup-Adresse",popup:"JavaScript-Popup","target_blank":"In neuem Fenster \u00f6ffnen","target_top":"Im obersten Frame \u00f6ffnen (sprengt das Frameset)","target_parent":"Im \u00fcbergeordneten Fenster/Frame \u00f6ffnen","target_same":"Im selben Fenster/Frame \u00f6ffnen","anchor_names":"Anker","popup_opts":"Optionen","advanced_props":"Erweiterte Eigenschaften","event_props":"Ereignisse","popup_props":"Popup-Eigenschaften","general_props":"Allemeine Eigenschaften","advanced_tab":"Erweitert","events_tab":"Ereignisse","popup_tab":"Popup","general_tab":"Allgemein",list:"Linkliste","is_external":"Diese Adresse scheint ein externer Link zu sein. Soll das dazu ben\u00f6tigte \"http://\" vorangestellt werden?","is_email":"Diese Adresse scheint eine E-Mail Adresse zu sein. Soll das dazu ben\u00f6tigte \"mailto:\" vorangestellt werden?",titlefield:"Titel",target:"Fenster",url:"Adresse",title:"Link einf\u00fcgen/bearbeiten","link_list":"Linkliste",rtl:"Rechts nach links",ltr:"Links nach rechts",accesskey:"Tastenk\u00fcrzel",tabindex:"Tabindex",rev:"Beziehung des Linkziels zur Seite",rel:"Beziehung der Seite zum Linkziel",mime:"MIME-Type der Zielseite",encoding:"Zeichenkodierung der Zielseite",langcode:"Sprachcode","target_langcode":"Sprache der Zielseite",width:"Breite",height:"H\u00f6he"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/en_dlg.js
new file mode 100644
index 00000000..3169a565
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.advlink_dlg',{"target_name":"Target Name",classes:"Classes",style:"Style",id:"ID","popup_position":"Position (X/Y)",langdir:"Language Direction","popup_size":"Size","popup_dependent":"Dependent (Mozilla/Firefox Only)","popup_resizable":"Make Window Resizable","popup_location":"Show Location Bar","popup_menubar":"Show Menu Bar","popup_toolbar":"Show Toolbars","popup_statusbar":"Show Status Bar","popup_scrollbars":"Show Scrollbars","popup_return":"Insert \'return false\'","popup_name":"Window Name","popup_url":"Popup URL",popup:"JavaScript Popup","target_blank":"Open in New Window","target_top":"Open in Top Frame (Replaces All Frames)","target_parent":"Open in Parent Window/Frame","target_same":"Open in This Window/Frame","anchor_names":"Anchors","popup_opts":"Options","advanced_props":"Advanced Properties","event_props":"Events","popup_props":"Popup Properties","general_props":"General Properties","advanced_tab":"Advanced","events_tab":"Events","popup_tab":"Popup","general_tab":"General",list:"Link List","is_external":"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?","is_email":"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",titlefield:"Title",target:"Target",url:"Link URL",title:"Insert/Edit Link","link_list":"Link List",rtl:"Right to Left",ltr:"Left to Right",accesskey:"AccessKey",tabindex:"TabIndex",rev:"Relationship Target to Page",rel:"Relationship Page to Target",mime:"Target MIME Type",encoding:"Target Character Encoding",langcode:"Language Code","target_langcode":"Target Language",width:"Width",height:"Height"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/hu_dlg.js
new file mode 100644
index 00000000..ec82452c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.advlink_dlg',{"target_name":"C\u00e9l neve",classes:"Oszt\u00e1lyok",style:"St\u00edlus",id:"ID","popup_position":" (X/Y) Poz\u00edci\u00f3",langdir:"Nyelv \u00edr\u00e1s ir\u00e1ny","popup_size":"M\u00e9ret","popup_dependent":"F\u00fcgg\u0151 (csak Mozilla/Firefox)","popup_resizable":"\u00c1tm\u00e9retezhet\u0151 ablak k\u00e9sz\u00edt\u00e9se","popup_location":"C\u00edm mez\u0151 mutat\u00e1sa","popup_menubar":"Men\u00fcsor mutat\u00e1sa","popup_toolbar":"Eszk\u00f6zsor mutat\u00e1sa","popup_statusbar":"St\u00e1tuszsor mutat\u00e1sa","popup_scrollbars":"G\u00f6rget\u0151s\u00e1vok mutat\u00e1sa","popup_return":"\'return false\' besz\u00far\u00e1sa","popup_name":"Ablakn\u00e9v","popup_url":"Felugr\u00f3 ablak URL",popup:"JavaScript felugr\u00f3 ablak","target_blank":"Megnyit\u00e1s \u00faj ablakban ","target_top":"Megnyit\u00e1s azonos ablakban/keretben legfel\u00fcl","target_parent":"Megnyit\u00e1s sz\u00fcl\u0151 ablakban/keretben ","target_same":"Megnyit\u00e1s azonos ablakban/keretben ","anchor_names":"Horgonyok","popup_opts":"Be\u00e1ll\u00edt\u00e1sok","advanced_props":"Halad\u00f3 tulajdons\u00e1gok","event_props":"Esem\u00e9nyek","popup_props":"Felugr\u00f3 ablak tulajdons\u00e1gai","general_props":"\u00c1ltal\u00e1nos tulajdons\u00e1gok","advanced_tab":"Halad\u00f3","events_tab":"Esem\u00e9nyek","popup_tab":"Felugr\u00f3 ablak","general_tab":"\u00c1ltal\u00e1nos",list:"Link lista","is_external":"A be\u00edrt URL k\u00fcls\u0151 hivatkoz\u00e1snak t\u0171nik, k\u00edv\u00e1nja a sz\u00fcks\u00e9ges http:// -t el\u00e9 tenni?","is_email":"A be\u00edrt URL e-mail c\u00edmnek t\u0171nik, k\u00edv\u00e1nja a sz\u00fcks\u00e9ges mailto: el\u0151tagot el\u00e9 tenni?",titlefield:"C\u00edm",target:"C\u00e9l (target)",url:"Link URL",title:"Hivatkoz\u00e1s besz\u00far\u00e1s/szerkeszt\u00e9s","link_list":"Link lista",rtl:"Jobbr\u00f3l balra",ltr:"Balr\u00f3l jobbra",accesskey:"Gyorsgomb",tabindex:"Tabindex",rev:"C\u00e9l kapcsolata az oldallal",rel:"Oldal kapcsolata a c\u00e9llal",mime:"C\u00e9l MIME t\u00edpus",encoding:"C\u00e9l karakterk\u00f3dol\u00e1s",langcode:"Nyelv k\u00f3d","target_langcode":"C\u00e9l nyelv",width:"Sz\u00e9less\u00e9g",height:"Magass\u00e1g"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/ja_dlg.js
new file mode 100644
index 00000000..68ebcd2e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.advlink_dlg',{"target_name":"\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u540d\u524d",classes:"\u30af\u30e9\u30b9",style:"\u30b9\u30bf\u30a4\u30eb",id:"ID","popup_position":"\u4f4d\u7f6e (X/Y)",langdir:"\u6587\u7ae0\u306e\u65b9\u5411","popup_size":"\u5927\u304d\u3055","popup_dependent":"\u4f9d\u5b58(Mozilla\u3068Firefox\u3060\u3051)","popup_resizable":"\u30a6\u30a4\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u5909\u66f4\u3092\u8a31\u53ef","popup_location":"\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u3092\u8868\u793a","popup_menubar":"\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u3092\u8868\u793a","popup_toolbar":"\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u8868\u793a","popup_statusbar":"\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc\u3092\u8868\u793a","popup_scrollbars":"\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u3092\u8868\u793a","popup_return":"\'return false\'\u3092\u633f\u5165","popup_name":"\u30a6\u30a4\u30f3\u30c9\u30a6\u306e\u540d\u524d","popup_url":"\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u306eURL",popup:"Javascript\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7","target_blank":"\u65b0\u3057\u3044\u30a6\u30a4\u30f3\u30c9\u30a6\u3067\u958b\u304f","target_top":"\u30c8\u30c3\u30d7\u306e\u30d5\u30ec\u30fc\u30e0\u3067\u958b\u304f(\u3059\u3079\u3066\u306e\u30d5\u30ec\u30fc\u30e0\u3092\u7f6e\u304d\u63db\u3048)","target_parent":"\u89aa\u30a6\u30a4\u30f3\u30c9\u30a6/\u89aa\u30d5\u30ec\u30fc\u30e0\u3067\u958b\u304f","target_same":"\u3053\u306e\u30a6\u30a4\u30f3\u30c9\u30a6/\u30d5\u30ec\u30fc\u30e0\u3067\u958b\u304f","anchor_names":"\u30a2\u30f3\u30ab\u30fc","popup_opts":"\u30aa\u30d7\u30b7\u30e7\u30f3","advanced_props":"\u9ad8\u5ea6\u306a\u5c5e\u6027","event_props":"\u30a4\u30d9\u30f3\u30c8","popup_props":"\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7","general_props":"\u4e00\u822c","advanced_tab":"\u5c02\u9580\u7684","events_tab":"\u30a4\u30d9\u30f3\u30c8","popup_tab":"\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7","general_tab":"\u4e00\u822c",list:"\u30ea\u30f3\u30af\u306e\u4e00\u89a7","is_external":"\u5165\u529b\u3057\u305fURL\u306f\u5916\u90e8\u306e\u30ea\u30f3\u30af\u306e\u3088\u3046\u3067\u3059\u3002\u30ea\u30f3\u30af\u306b http:// \u3092\u8ffd\u52a0\u3057\u307e\u3059\u304b?","is_email":"\u5165\u529b\u3057\u305fURL\u306f\u96fb\u5b50\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u3088\u3046\u3067\u3059\u3002\u30ea\u30f3\u30af\u306b mailto: \u3092\u8ffd\u52a0\u3057\u307e\u3059\u304b?",titlefield:"\u30bf\u30a4\u30c8\u30eb",target:"\u30bf\u30fc\u30b2\u30c3\u30c8",url:"\u30ea\u30f3\u30af\u306eURL",title:"\u30ea\u30f3\u30af\u306e\u633f\u5165/\u7de8\u96c6","link_list":"\u30ea\u30f3\u30af\u306e\u4e00\u89a7",rtl:"\u53f3\u304b\u3089\u5de6",ltr:"\u5de6\u304b\u3089\u53f3",accesskey:"\u30a2\u30af\u30bb\u30b9\u30ad\u30fc",tabindex:"\u30bf\u30d6\u30a4\u30f3\u30c7\u30c3\u30af\u30b9",rev:"\u30bf\u30fc\u30b2\u30c3\u30c8\u304b\u3089\u30da\u30fc\u30b8\u306e\u95a2\u4fc2",rel:"\u30da\u30fc\u30b8\u304b\u3089\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u95a2\u4fc2",mime:"\u30bf\u30fc\u30b2\u30c3\u30c8\u306eMIME\u30bf\u30a4\u30d7",encoding:"\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0",langcode:"\u8a00\u8a9e\u30b3\u30fc\u30c9","target_langcode":"\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u8a00\u8a9e",width:"\u5e45",height:"\u9ad8\u3055"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/link.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/link.htm
new file mode 100755
index 00000000..8ab7c2a9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlink/link.htm
@@ -0,0 +1,338 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advlink_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="js/advlink.js"></script>
+ <link href="css/advlink.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="advlink" style="display: none" role="application" onload="javascript:mcTabs.displayTab('general_tab','general_panel', true);" aria-labelledby="app_label">
+ <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advlink_dlg.title}</span>
+ <form onsubmit="insertAction();return false;" action="#">
+ <div class="tabs" role="presentation">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel" ><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
+ <li id="popup_tab" aria-controls="popup_panel" ><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
+ <li id="events_tab" aria-controls="events_panel"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper" role="presentation">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#advlink_dlg.general_props}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0" role="presentation">
+ <tr>
+ <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
+ <td><table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" aria-required="true" /></td>
+ <td id="hrefbrowsercontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr id="linklisthrefrow">
+ <td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
+ <td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
+ </tr>
+ <tr id="anchorlistrow">
+ <td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
+ <td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
+ </tr>
+ <tr>
+ <td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td>
+ <td id="targetlistcontainer"><select id="targetlist"><option value=""></option></select></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td>
+ <td><input id="title" name="title" type="text" value="" /></td>
+ </tr>
+ <tr>
+ <td><label id="classlabel" for="classlist">{#class_name}</label></td>
+ <td>
+ <select id="classlist" name="classlist" onchange="changeClass();">
+ <option value="" selected="selected">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="popup_panel" class="panel">
+ <fieldset>
+ <legend>{#advlink_dlg.popup_props}</legend>
+
+ <input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
+ <label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
+
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
+ <tr>
+ <td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label>&nbsp;</td>
+ <td>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" name="popupurl" id="popupurl" value="" onchange="buildOnClick();" /></td>
+ <td id="popupurlbrowsercontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label>&nbsp;</td>
+ <td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
+ </tr>
+ <tr role="group" aria-labelledby="popup_size_label">
+ <td class="nowrap"><label id="popup_size_label">{#advlink_dlg.popup_size}</label>&nbsp;</td>
+ <td class="nowrap">
+ <span style="display:none" id="width_voiceLabel">{#advlink_dlg.width}</span>
+ <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" aria-labelledby="width_voiceLabel" /> x
+ <span style="display:none" id="height_voiceLabel">{#advlink_dlg.height}</span>
+ <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" aria-labelledby="height_voiceLabel" /> px
+ </td>
+ </tr>
+ <tr role="group" aria-labelledby="popup_position_label center_hint">
+ <td class="nowrap" id="labelleft"><label id="popup_position_label">{#advlink_dlg.popup_position}</label>&nbsp;</td>
+ <td class="nowrap">
+ <span style="display:none" id="x_voiceLabel">X</span>
+ <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" aria-labelledby="x_voiceLabel" /> /
+ <span style="display:none" id="y_voiceLabel">Y</span>
+ <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" aria-labelledby="y_voiceLabel" /> <span id="center_hint">(c /c = center)</span>
+ </td>
+ </tr>
+ </table>
+
+ <fieldset>
+ <legend>{#advlink_dlg.popup_opts}</legend>
+
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
+ <tr>
+ <td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
+ <td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
+ <td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td>
+ <td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td>
+ <td class="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td>
+ <td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td>
+ <td class="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td>
+ <td class="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td>
+ <td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td>
+ <td class="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
+ <td class="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td>
+ <td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
+ <td class="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td>
+ </tr>
+ </table>
+ </fieldset>
+ </fieldset>
+ </div>
+
+ <div id="advanced_panel" class="panel">
+ <fieldset>
+ <legend>{#advlink_dlg.advanced_props}</legend>
+
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
+ <tr>
+ <td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
+ <td><input id="id" name="id" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td><label id="stylelabel" for="style">{#advlink_dlg.style}</label></td>
+ <td><input type="text" id="style" name="style" value="" /></td>
+ </tr>
+
+ <tr>
+ <td><label id="classeslabel" for="classes">{#advlink_dlg.classes}</label></td>
+ <td><input type="text" id="classes" name="classes" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
+ </tr>
+
+ <tr>
+ <td><label id="targetlabel" for="target">{#advlink_dlg.target_name}</label></td>
+ <td><input type="text" id="target" name="target" value="" onchange="selectByValue(this.form,'targetlist',this.value,true);" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="dirlabel" for="dir">{#advlink_dlg.langdir}</label></td>
+ <td>
+ <select id="dir" name="dir">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#advlink_dlg.ltr}</option>
+ <option value="rtl">{#advlink_dlg.rtl}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label id="hreflanglabel" for="hreflang">{#advlink_dlg.target_langcode}</label></td>
+ <td><input type="text" id="hreflang" name="hreflang" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="langlabel" for="lang">{#advlink_dlg.langcode}</label></td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" />
+ </td>
+ </tr>
+
+ <tr>
+ <td><label id="charsetlabel" for="charset">{#advlink_dlg.encoding}</label></td>
+ <td><input type="text" id="charset" name="charset" value="" /></td>
+ </tr>
+
+ <tr>
+ <td><label id="typelabel" for="type">{#advlink_dlg.mime}</label></td>
+ <td><input type="text" id="type" name="type" value="" /></td>
+ </tr>
+
+ <tr>
+ <td><label id="rellabel" for="rel">{#advlink_dlg.rel}</label></td>
+ <td><select id="rel" name="rel">
+ <option value="">{#not_set}</option>
+ <option value="lightbox">Lightbox</option>
+ <option value="alternate">Alternate</option>
+ <option value="designates">Designates</option>
+ <option value="stylesheet">Stylesheet</option>
+ <option value="start">Start</option>
+ <option value="next">Next</option>
+ <option value="prev">Prev</option>
+ <option value="contents">Contents</option>
+ <option value="index">Index</option>
+ <option value="glossary">Glossary</option>
+ <option value="copyright">Copyright</option>
+ <option value="chapter">Chapter</option>
+ <option value="subsection">Subsection</option>
+ <option value="appendix">Appendix</option>
+ <option value="help">Help</option>
+ <option value="bookmark">Bookmark</option>
+ <option value="nofollow">No Follow</option>
+ <option value="tag">Tag</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label id="revlabel" for="rev">{#advlink_dlg.rev}</label></td>
+ <td><select id="rev" name="rev">
+ <option value="">{#not_set}</option>
+ <option value="alternate">Alternate</option>
+ <option value="designates">Designates</option>
+ <option value="stylesheet">Stylesheet</option>
+ <option value="start">Start</option>
+ <option value="next">Next</option>
+ <option value="prev">Prev</option>
+ <option value="contents">Contents</option>
+ <option value="index">Index</option>
+ <option value="glossary">Glossary</option>
+ <option value="copyright">Copyright</option>
+ <option value="chapter">Chapter</option>
+ <option value="subsection">Subsection</option>
+ <option value="appendix">Appendix</option>
+ <option value="help">Help</option>
+ <option value="bookmark">Bookmark</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label id="tabindexlabel" for="tabindex">{#advlink_dlg.tabindex}</label></td>
+ <td><input type="text" id="tabindex" name="tabindex" value="" /></td>
+ </tr>
+
+ <tr>
+ <td><label id="accesskeylabel" for="accesskey">{#advlink_dlg.accesskey}</label></td>
+ <td><input type="text" id="accesskey" name="accesskey" value="" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="events_panel" class="panel">
+ <fieldset>
+ <legend>{#advlink_dlg.event_props}</legend>
+
+ <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
+ <tr>
+ <td class="column1"><label for="onfocus">onfocus</label></td>
+ <td><input id="onfocus" name="onfocus" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onblur">onblur</label></td>
+ <td><input id="onblur" name="onblur" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onclick">onclick</label></td>
+ <td><input id="onclick" name="onclick" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="ondblclick">ondblclick</label></td>
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onmousedown">onmousedown</label></td>
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onmouseup">onmouseup</label></td>
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onmouseover">onmouseover</label></td>
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onmousemove">onmousemove</label></td>
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onmouseout">onmouseout</label></td>
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onkeypress">onkeypress</label></td>
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onkeydown">onkeydown</label></td>
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="onkeyup">onkeyup</label></td>
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin.js
new file mode 100644
index 00000000..57ecce6e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square");if(tinymce.isIE&&/MSIE [2-7]/.test(navigator.userAgent)){d.isIE7=true}},createControl:function(d,b){var f=this,e,i,g=f.editor;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){i=f[d][0]}function c(j,l){var k=true;a(l.styles,function(n,m){if(g.dom.getStyle(j,m)!=n){k=false;return false}});return k}function h(){var k,l=g.dom,j=g.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,i)){g.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(i){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,i.styles);k.removeAttribute("data-mce-style")}}g.focus()}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){h()}});e.onRenderMenu.add(function(j,k){k.onHideMenu.add(function(){if(f.bookmark){g.selection.moveToBookmark(f.bookmark);f.bookmark=0}});k.onShowMenu.add(function(){var n=g.dom,m=n.getParent(g.selection.getNode(),"ol,ul"),l;if(m||i){l=f[d];a(k.items,function(o){var p=true;o.setSelected(0);if(m&&!o.isDisabled()){a(l,function(q){if(q.id==o.id){if(!c(m,q)){p=false;return false}}});if(p){o.setSelected(1)}}});if(!m){k.items[i.id].setSelected(1)}}g.focus();if(tinymce.isIE){f.bookmark=g.selection.getBookmark(1)}});k.add({id:g.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle",titleItem:true}).setDisabled(1);a(f[d],function(l){if(f.isIE7&&l.styles.listStyleType=="lower-greek"){return}l.id=g.dom.uniqueId();k.add({id:l.id,title:l.title,onclick:function(){i=l;h()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin_src.js
new file mode 100644
index 00000000..a8f046b4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/advlist/editor_plugin_src.js
@@ -0,0 +1,176 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var each = tinymce.each;
+
+ tinymce.create('tinymce.plugins.AdvListPlugin', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ function buildFormats(str) {
+ var formats = [];
+
+ each(str.split(/,/), function(type) {
+ formats.push({
+ title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')),
+ styles : {
+ listStyleType : type == 'default' ? '' : type
+ }
+ });
+ });
+
+ return formats;
+ };
+
+ // Setup number formats from config or default
+ t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");
+ t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square");
+
+ if (tinymce.isIE && /MSIE [2-7]/.test(navigator.userAgent))
+ t.isIE7 = true;
+ },
+
+ createControl: function(name, cm) {
+ var t = this, btn, format, editor = t.editor;
+
+ if (name == 'numlist' || name == 'bullist') {
+ // Default to first item if it's a default item
+ if (t[name][0].title == 'advlist.def')
+ format = t[name][0];
+
+ function hasFormat(node, format) {
+ var state = true;
+
+ each(format.styles, function(value, name) {
+ // Format doesn't match
+ if (editor.dom.getStyle(node, name) != value) {
+ state = false;
+ return false;
+ }
+ });
+
+ return state;
+ };
+
+ function applyListFormat() {
+ var list, dom = editor.dom, sel = editor.selection;
+
+ // Check for existing list element
+ list = dom.getParent(sel.getNode(), 'ol,ul');
+
+ // Switch/add list type if needed
+ if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format))
+ editor.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList');
+
+ // Append styles to new list element
+ if (format) {
+ list = dom.getParent(sel.getNode(), 'ol,ul');
+ if (list) {
+ dom.setStyles(list, format.styles);
+ list.removeAttribute('data-mce-style');
+ }
+ }
+
+ editor.focus();
+ };
+
+ btn = cm.createSplitButton(name, {
+ title : 'advanced.' + name + '_desc',
+ 'class' : 'mce_' + name,
+ onclick : function() {
+ applyListFormat();
+ }
+ });
+
+ btn.onRenderMenu.add(function(btn, menu) {
+ menu.onHideMenu.add(function() {
+ if (t.bookmark) {
+ editor.selection.moveToBookmark(t.bookmark);
+ t.bookmark = 0;
+ }
+ });
+
+ menu.onShowMenu.add(function() {
+ var dom = editor.dom, list = dom.getParent(editor.selection.getNode(), 'ol,ul'), fmtList;
+
+ if (list || format) {
+ fmtList = t[name];
+
+ // Unselect existing items
+ each(menu.items, function(item) {
+ var state = true;
+
+ item.setSelected(0);
+
+ if (list && !item.isDisabled()) {
+ each(fmtList, function(fmt) {
+ if (fmt.id == item.id) {
+ if (!hasFormat(list, fmt)) {
+ state = false;
+ return false;
+ }
+ }
+ });
+
+ if (state)
+ item.setSelected(1);
+ }
+ });
+
+ // Select the current format
+ if (!list)
+ menu.items[format.id].setSelected(1);
+ }
+
+ editor.focus();
+
+ // IE looses it's selection so store it away and restore it later
+ if (tinymce.isIE) {
+ t.bookmark = editor.selection.getBookmark(1);
+ }
+ });
+
+ menu.add({id : editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle', titleItem: true}).setDisabled(1);
+
+ each(t[name], function(item) {
+ // IE<8 doesn't support lower-greek, skip it
+ if (t.isIE7 && item.styles.listStyleType == 'lower-greek')
+ return;
+
+ item.id = editor.dom.uniqueId();
+
+ menu.add({id : item.id, title : item.title, onclick : function() {
+ format = item;
+ applyListFormat();
+ }});
+ });
+ });
+
+ return btn;
+ }
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced lists',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin.js
new file mode 100644
index 00000000..d1c3502a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AutolinkPlugin",{init:function(a,b){var c=this;a.onKeyDown.addToTop(function(d,f){if(f.keyCode==13){return c.handleEnter(d)}});if(tinyMCE.isIE){return}a.onKeyPress.add(function(d,f){if(f.which==41){return c.handleEclipse(d)}});a.onKeyUp.add(function(d,f){if(f.keyCode==32){return c.handleSpacebar(d)}})},handleEclipse:function(a){this.parseCurrentLine(a,-1,"(",true)},handleSpacebar:function(a){this.parseCurrentLine(a,0,"",true)},handleEnter:function(a){this.parseCurrentLine(a,-1,"",false)},parseCurrentLine:function(i,d,b,g){var a,f,c,n,k,m,h,e,j;a=i.selection.getRng(true).cloneRange();if(a.startOffset<5){e=a.endContainer.previousSibling;if(e==null){if(a.endContainer.firstChild==null||a.endContainer.firstChild.nextSibling==null){return}e=a.endContainer.firstChild.nextSibling}j=e.length;a.setStart(e,j);a.setEnd(e,j);if(a.endOffset<5){return}f=a.endOffset;n=e}else{n=a.endContainer;if(n.nodeType!=3&&n.firstChild){while(n.nodeType!=3&&n.firstChild){n=n.firstChild}if(n.nodeType==3){a.setStart(n,0);a.setEnd(n,n.nodeValue.length)}}if(a.endOffset==1){f=2}else{f=a.endOffset-1-d}}c=f;do{a.setStart(n,f-2);a.setEnd(n,f-1);f-=1}while(a.toString()!=" "&&a.toString()!=""&&a.toString().charCodeAt(0)!=160&&(f-2)>=0&&a.toString()!=b);if(a.toString()==b||a.toString().charCodeAt(0)==160){a.setStart(n,f);a.setEnd(n,c);f+=1}else{if(a.startOffset==0){a.setStart(n,0);a.setEnd(n,c)}else{a.setStart(n,f);a.setEnd(n,c)}}var m=a.toString();if(m.charAt(m.length-1)=="."){a.setEnd(n,c-1)}m=a.toString();h=m.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+-]+@)(.+)$/i);if(h){if(h[1]=="www."){h[1]="http://www."}else{if(/@$/.test(h[1])&&!/^mailto:/.test(h[1])){h[1]="mailto:"+h[1]}}k=i.selection.getBookmark();i.selection.setRng(a);tinyMCE.execCommand("createlink",false,h[1]+h[2]);i.selection.moveToBookmark(k);i.nodeChanged();if(tinyMCE.isWebKit){i.selection.collapse(false);var l=Math.min(n.length,c+1);a.setStart(n,l);a.setEnd(n,l);i.selection.setRng(a)}}},getInfo:function(){return{longname:"Autolink",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autolink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autolink",tinymce.plugins.AutolinkPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin_src.js
new file mode 100644
index 00000000..c05fbbc0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autolink/editor_plugin_src.js
@@ -0,0 +1,184 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2011, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.AutolinkPlugin', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+
+ init : function(ed, url) {
+ var t = this;
+
+ // Add a key down handler
+ ed.onKeyDown.addToTop(function(ed, e) {
+ if (e.keyCode == 13)
+ return t.handleEnter(ed);
+ });
+
+ // Internet Explorer has built-in automatic linking for most cases
+ if (tinyMCE.isIE)
+ return;
+
+ ed.onKeyPress.add(function(ed, e) {
+ if (e.which == 41)
+ return t.handleEclipse(ed);
+ });
+
+ // Add a key up handler
+ ed.onKeyUp.add(function(ed, e) {
+ if (e.keyCode == 32)
+ return t.handleSpacebar(ed);
+ });
+ },
+
+ handleEclipse : function(ed) {
+ this.parseCurrentLine(ed, -1, '(', true);
+ },
+
+ handleSpacebar : function(ed) {
+ this.parseCurrentLine(ed, 0, '', true);
+ },
+
+ handleEnter : function(ed) {
+ this.parseCurrentLine(ed, -1, '', false);
+ },
+
+ parseCurrentLine : function(ed, end_offset, delimiter, goback) {
+ var r, end, start, endContainer, bookmark, text, matches, prev, len;
+
+ // We need at least five characters to form a URL,
+ // hence, at minimum, five characters from the beginning of the line.
+ r = ed.selection.getRng(true).cloneRange();
+ if (r.startOffset < 5) {
+ // During testing, the caret is placed inbetween two text nodes.
+ // The previous text node contains the URL.
+ prev = r.endContainer.previousSibling;
+ if (prev == null) {
+ if (r.endContainer.firstChild == null || r.endContainer.firstChild.nextSibling == null)
+ return;
+
+ prev = r.endContainer.firstChild.nextSibling;
+ }
+ len = prev.length;
+ r.setStart(prev, len);
+ r.setEnd(prev, len);
+
+ if (r.endOffset < 5)
+ return;
+
+ end = r.endOffset;
+ endContainer = prev;
+ } else {
+ endContainer = r.endContainer;
+
+ // Get a text node
+ if (endContainer.nodeType != 3 && endContainer.firstChild) {
+ while (endContainer.nodeType != 3 && endContainer.firstChild)
+ endContainer = endContainer.firstChild;
+
+ // Move range to text node
+ if (endContainer.nodeType == 3) {
+ r.setStart(endContainer, 0);
+ r.setEnd(endContainer, endContainer.nodeValue.length);
+ }
+ }
+
+ if (r.endOffset == 1)
+ end = 2;
+ else
+ end = r.endOffset - 1 - end_offset;
+ }
+
+ start = end;
+
+ do
+ {
+ // Move the selection one character backwards.
+ r.setStart(endContainer, end - 2);
+ r.setEnd(endContainer, end - 1);
+ end -= 1;
+
+ // Loop until one of the following is found: a blank space, &nbsp;, delimeter, (end-2) >= 0
+ } while (r.toString() != ' ' && r.toString() != '' && r.toString().charCodeAt(0) != 160 && (end -2) >= 0 && r.toString() != delimiter);
+
+ if (r.toString() == delimiter || r.toString().charCodeAt(0) == 160) {
+ r.setStart(endContainer, end);
+ r.setEnd(endContainer, start);
+ end += 1;
+ } else if (r.startOffset == 0) {
+ r.setStart(endContainer, 0);
+ r.setEnd(endContainer, start);
+ }
+ else {
+ r.setStart(endContainer, end);
+ r.setEnd(endContainer, start);
+ }
+
+ // Exclude last . from word like "www.site.com."
+ var text = r.toString();
+ if (text.charAt(text.length - 1) == '.') {
+ r.setEnd(endContainer, start - 1);
+ }
+
+ text = r.toString();
+ matches = text.match(/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+-]+@)(.+)$/i);
+
+ if (matches) {
+ if (matches[1] == 'www.') {
+ matches[1] = 'http://www.';
+ } else if (/@$/.test(matches[1]) && !/^mailto:/.test(matches[1])) {
+ matches[1] = 'mailto:' + matches[1];
+ }
+
+ bookmark = ed.selection.getBookmark();
+
+ ed.selection.setRng(r);
+ tinyMCE.execCommand('createlink',false, matches[1] + matches[2]);
+ ed.selection.moveToBookmark(bookmark);
+ ed.nodeChanged();
+
+ // TODO: Determine if this is still needed.
+ if (tinyMCE.isWebKit) {
+ // move the caret to its original position
+ ed.selection.collapse(false);
+ var max = Math.min(endContainer.length, start + 1);
+ r.setStart(endContainer, max);
+ r.setEnd(endContainer, max);
+ ed.selection.setRng(r);
+ }
+ }
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Autolink',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autolink',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('autolink', tinymce.plugins.AutolinkPlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin.js
new file mode 100644
index 00000000..46d9dc3d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this,e=0;if(a.getParam("fullscreen_is_enabled")){return}function b(){var j,i=a.getDoc(),f=i.body,l=i.documentElement,h=tinymce.DOM,k=d.autoresize_min_height,g;g=tinymce.isIE?f.scrollHeight:(tinymce.isWebKit&&f.clientHeight==0?0:f.offsetHeight);if(g>d.autoresize_min_height){k=g}if(d.autoresize_max_height&&g>d.autoresize_max_height){k=d.autoresize_max_height;f.style.overflowY="auto";l.style.overflowY="auto"}else{f.style.overflowY="hidden";l.style.overflowY="hidden";f.scrollTop=0}if(k!==e){j=k-e;h.setStyle(h.get(a.id+"_ifr"),"height",k+"px");e=k;if(tinymce.isWebKit&&j<0){b()}}}d.editor=a;d.autoresize_min_height=parseInt(a.getParam("autoresize_min_height",a.getElement().offsetHeight));d.autoresize_max_height=parseInt(a.getParam("autoresize_max_height",0));a.onInit.add(function(f){f.dom.setStyle(f.getBody(),"paddingBottom",f.getParam("autoresize_bottom_margin",50)+"px")});a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onLoad.add(b);a.onLoadContent.add(b)}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin_src.js
new file mode 100644
index 00000000..7673bcff
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autoresize/editor_plugin_src.js
@@ -0,0 +1,119 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ /**
+ * Auto Resize
+ *
+ * This plugin automatically resizes the content area to fit its content height.
+ * It will retain a minimum height, which is the height of the content area when
+ * it's initialized.
+ */
+ tinymce.create('tinymce.plugins.AutoResizePlugin', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+ var t = this, oldSize = 0;
+
+ if (ed.getParam('fullscreen_is_enabled'))
+ return;
+
+ /**
+ * This method gets executed each time the editor needs to resize.
+ */
+ function resize() {
+ var deltaSize, d = ed.getDoc(), body = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight;
+
+ // Get height differently depending on the browser used
+ myHeight = tinymce.isIE ? body.scrollHeight : (tinymce.isWebKit && body.clientHeight == 0 ? 0 : body.offsetHeight);
+
+ // Don't make it smaller than the minimum height
+ if (myHeight > t.autoresize_min_height)
+ resizeHeight = myHeight;
+
+ // If a maximum height has been defined don't exceed this height
+ if (t.autoresize_max_height && myHeight > t.autoresize_max_height) {
+ resizeHeight = t.autoresize_max_height;
+ body.style.overflowY = "auto";
+ de.style.overflowY = "auto"; // Old IE
+ } else {
+ body.style.overflowY = "hidden";
+ de.style.overflowY = "hidden"; // Old IE
+ body.scrollTop = 0;
+ }
+
+ // Resize content element
+ if (resizeHeight !== oldSize) {
+ deltaSize = resizeHeight - oldSize;
+ DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px');
+ oldSize = resizeHeight;
+
+ // WebKit doesn't decrease the size of the body element until the iframe gets resized
+ // So we need to continue to resize the iframe down until the size gets fixed
+ if (tinymce.isWebKit && deltaSize < 0)
+ resize();
+ }
+ };
+
+ t.editor = ed;
+
+ // Define minimum height
+ t.autoresize_min_height = parseInt(ed.getParam('autoresize_min_height', ed.getElement().offsetHeight));
+
+ // Define maximum height
+ t.autoresize_max_height = parseInt(ed.getParam('autoresize_max_height', 0));
+
+ // Add padding at the bottom for better UX
+ ed.onInit.add(function(ed){
+ ed.dom.setStyle(ed.getBody(), 'paddingBottom', ed.getParam('autoresize_bottom_margin', 50) + 'px');
+ });
+
+ // Add appropriate listeners for resizing content area
+ ed.onChange.add(resize);
+ ed.onSetContent.add(resize);
+ ed.onPaste.add(resize);
+ ed.onKeyUp.add(resize);
+ ed.onPostRender.add(resize);
+
+ if (ed.getParam('autoresize_on_init', true)) {
+ ed.onLoad.add(resize);
+ ed.onLoadContent.add(resize);
+ }
+
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
+ ed.addCommand('mceAutoResize', resize);
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Auto Resize',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin.js
new file mode 100755
index 00000000..6da98ff3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin.js
@@ -0,0 +1 @@
+(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s|&nbsp;|<\/?p[^>]*>|<br[^>]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){if(!i.removed){h.storeDraft();i.nodeChanged()}},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();try{m.save("TinyMCE")}catch(o){}},getItem:function(l){var m=i.getElement();try{m.load("TinyMCE");return m.getAttribute(l)}catch(n){return null}},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,j=h.storage,i;if(j){i=j.getItem(h.key);if(i){h.editor.setContent(i);h.onRestoreDraft.dispatch(h,{content:i})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()<i.getTime()){return b}h.removeDraft()}else{return b}}}return false},removeDraft:function(){var h=this,k=h.storage,i=h.key,j;if(k){j=k.getItem(i);k.removeItem(i);k.removeItem(i+"_expires");if(j){h.onRemoveDraft.dispatch(h,{content:j})}}},"static":{_beforeUnloadHandler:function(h){var i;e.each(tinyMCE.editors,function(j){if(j.plugins.autosave){j.plugins.autosave.storeDraft()}if(j.getParam("fullscreen_is_enabled")){return}if(!i&&j.isDirty()&&j.getParam("autosave_ask_before_unload")){i=j.getLang("autosave.unload_msg")}});return i}}});e.PluginManager.add("autosave",e.plugins.AutoSave)})(tinymce); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin_src.js
new file mode 100755
index 00000000..8b308f5a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/editor_plugin_src.js
@@ -0,0 +1,433 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ *
+ * Adds auto-save capability to the TinyMCE text editor to rescue content
+ * inadvertently lost. This plugin was originally developed by Speednet
+ * and that project can be found here: http://code.google.com/p/tinyautosave/
+ *
+ * TECHNOLOGY DISCUSSION:
+ *
+ * The plugin attempts to use the most advanced features available in the current browser to save
+ * as much content as possible. There are a total of four different methods used to autosave the
+ * content. In order of preference, they are:
+ *
+ * 1. localStorage - A new feature of HTML 5, localStorage can store megabytes of data per domain
+ * on the client computer. Data stored in the localStorage area has no expiration date, so we must
+ * manage expiring the data ourselves. localStorage is fully supported by IE8, and it is supposed
+ * to be working in Firefox 3 and Safari 3.2, but in reality is is flaky in those browsers. As
+ * HTML 5 gets wider support, the AutoSave plugin will use it automatically. In Windows Vista/7,
+ * localStorage is stored in the following folder:
+ * C:\Users\[username]\AppData\Local\Microsoft\Internet Explorer\DOMStore\[tempFolder]
+ *
+ * 2. sessionStorage - A new feature of HTML 5, sessionStorage works similarly to localStorage,
+ * except it is designed to expire after a certain amount of time. Because the specification
+ * around expiration date/time is very loosely-described, it is preferrable to use locaStorage and
+ * manage the expiration ourselves. sessionStorage has similar storage characteristics to
+ * localStorage, although it seems to have better support by Firefox 3 at the moment. (That will
+ * certainly change as Firefox continues getting better at HTML 5 adoption.)
+ *
+ * 3. UserData - A very under-exploited feature of Microsoft Internet Explorer, UserData is a
+ * way to store up to 128K of data per "document", or up to 1MB of data per domain, on the client
+ * computer. The feature is available for IE 5+, which makes it available for every version of IE
+ * supported by TinyMCE. The content is persistent across browser restarts and expires on the
+ * date/time specified, just like a cookie. However, the data is not cleared when the user clears
+ * cookies on the browser, which makes it well-suited for rescuing autosaved content. UserData,
+ * like other Microsoft IE browser technologies, is implemented as a behavior attached to a
+ * specific DOM object, so in this case we attach the behavior to the same DOM element that the
+ * TinyMCE editor instance is attached to.
+ */
+
+(function(tinymce) {
+ // Setup constants to help the compressor to reduce script size
+ var PLUGIN_NAME = 'autosave',
+ RESTORE_DRAFT = 'restoredraft',
+ TRUE = true,
+ undefined,
+ unloadHandlerAdded,
+ Dispatcher = tinymce.util.Dispatcher;
+
+ /**
+ * This plugin adds auto-save capability to the TinyMCE text editor to rescue content
+ * inadvertently lost. By using localStorage.
+ *
+ * @class tinymce.plugins.AutoSave
+ */
+ tinymce.create('tinymce.plugins.AutoSave', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @method init
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+ var self = this, settings = ed.settings;
+
+ self.editor = ed;
+
+ // Parses the specified time string into a milisecond number 10m, 10s etc.
+ function parseTime(time) {
+ var multipels = {
+ s : 1000,
+ m : 60000
+ };
+
+ time = /^(\d+)([ms]?)$/.exec('' + time);
+
+ return (time[2] ? multipels[time[2]] : 1) * parseInt(time);
+ };
+
+ // Default config
+ tinymce.each({
+ ask_before_unload : TRUE,
+ interval : '30s',
+ retention : '20m',
+ minlength : 50
+ }, function(value, key) {
+ key = PLUGIN_NAME + '_' + key;
+
+ if (settings[key] === undefined)
+ settings[key] = value;
+ });
+
+ // Parse times
+ settings.autosave_interval = parseTime(settings.autosave_interval);
+ settings.autosave_retention = parseTime(settings.autosave_retention);
+
+ // Register restore button
+ ed.addButton(RESTORE_DRAFT, {
+ title : PLUGIN_NAME + ".restore_content",
+ onclick : function() {
+ if (ed.getContent({draft: true}).replace(/\s|&nbsp;|<\/?p[^>]*>|<br[^>]*>/gi, "").length > 0) {
+ // Show confirm dialog if the editor isn't empty
+ ed.windowManager.confirm(
+ PLUGIN_NAME + ".warning_message",
+ function(ok) {
+ if (ok)
+ self.restoreDraft();
+ }
+ );
+ } else
+ self.restoreDraft();
+ }
+ });
+
+ // Enable/disable restoredraft button depending on if there is a draft stored or not
+ ed.onNodeChange.add(function() {
+ var controlManager = ed.controlManager;
+
+ if (controlManager.get(RESTORE_DRAFT))
+ controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft());
+ });
+
+ ed.onInit.add(function() {
+ // Check if the user added the restore button, then setup auto storage logic
+ if (ed.controlManager.get(RESTORE_DRAFT)) {
+ // Setup storage engine
+ self.setupStorage(ed);
+
+ // Auto save contents each interval time
+ setInterval(function() {
+ if (!ed.removed) {
+ self.storeDraft();
+ ed.nodeChanged();
+ }
+ }, settings.autosave_interval);
+ }
+ });
+
+ /**
+ * This event gets fired when a draft is stored to local storage.
+ *
+ * @event onStoreDraft
+ * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
+ * @param {Object} draft Draft object containing the HTML contents of the editor.
+ */
+ self.onStoreDraft = new Dispatcher(self);
+
+ /**
+ * This event gets fired when a draft is restored from local storage.
+ *
+ * @event onStoreDraft
+ * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
+ * @param {Object} draft Draft object containing the HTML contents of the editor.
+ */
+ self.onRestoreDraft = new Dispatcher(self);
+
+ /**
+ * This event gets fired when a draft removed/expired.
+ *
+ * @event onRemoveDraft
+ * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event.
+ * @param {Object} draft Draft object containing the HTML contents of the editor.
+ */
+ self.onRemoveDraft = new Dispatcher(self);
+
+ // Add ask before unload dialog only add one unload handler
+ if (!unloadHandlerAdded) {
+ window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler;
+ unloadHandlerAdded = TRUE;
+ }
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @method getInfo
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Auto save',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ /**
+ * Returns an expiration date UTC string.
+ *
+ * @method getExpDate
+ * @return {String} Expiration date UTC string.
+ */
+ getExpDate : function() {
+ return new Date(
+ new Date().getTime() + this.editor.settings.autosave_retention
+ ).toUTCString();
+ },
+
+ /**
+ * This method will setup the storage engine. If the browser has support for it.
+ *
+ * @method setupStorage
+ */
+ setupStorage : function(ed) {
+ var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK";
+
+ self.key = PLUGIN_NAME + ed.id;
+
+ // Loop though each storage engine type until we find one that works
+ tinymce.each([
+ function() {
+ // Try HTML5 Local Storage
+ if (localStorage) {
+ localStorage.setItem(testKey, testVal);
+
+ if (localStorage.getItem(testKey) === testVal) {
+ localStorage.removeItem(testKey);
+
+ return localStorage;
+ }
+ }
+ },
+
+ function() {
+ // Try HTML5 Session Storage
+ if (sessionStorage) {
+ sessionStorage.setItem(testKey, testVal);
+
+ if (sessionStorage.getItem(testKey) === testVal) {
+ sessionStorage.removeItem(testKey);
+
+ return sessionStorage;
+ }
+ }
+ },
+
+ function() {
+ // Try IE userData
+ if (tinymce.isIE) {
+ ed.getElement().style.behavior = "url('#default#userData')";
+
+ // Fake localStorage on old IE
+ return {
+ autoExpires : TRUE,
+
+ setItem : function(key, value) {
+ var userDataElement = ed.getElement();
+
+ userDataElement.setAttribute(key, value);
+ userDataElement.expires = self.getExpDate();
+
+ try {
+ userDataElement.save("TinyMCE");
+ } catch (e) {
+ // Ignore, saving might fail if "Userdata Persistence" is disabled in IE
+ }
+ },
+
+ getItem : function(key) {
+ var userDataElement = ed.getElement();
+
+ try {
+ userDataElement.load("TinyMCE");
+ return userDataElement.getAttribute(key);
+ } catch (e) {
+ // Ignore, loading might fail if "Userdata Persistence" is disabled in IE
+ return null;
+ }
+ },
+
+ removeItem : function(key) {
+ ed.getElement().removeAttribute(key);
+ }
+ };
+ }
+ },
+ ], function(setup) {
+ // Try executing each function to find a suitable storage engine
+ try {
+ self.storage = setup();
+
+ if (self.storage)
+ return false;
+ } catch (e) {
+ // Ignore
+ }
+ });
+ },
+
+ /**
+ * This method will store the current contents in the the storage engine.
+ *
+ * @method storeDraft
+ */
+ storeDraft : function() {
+ var self = this, storage = self.storage, editor = self.editor, expires, content;
+
+ // Is the contents dirty
+ if (storage) {
+ // If there is no existing key and the contents hasn't been changed since
+ // it's original value then there is no point in saving a draft
+ if (!storage.getItem(self.key) && !editor.isDirty())
+ return;
+
+ // Store contents if the contents if longer than the minlength of characters
+ content = editor.getContent({draft: true});
+ if (content.length > editor.settings.autosave_minlength) {
+ expires = self.getExpDate();
+
+ // Store expiration date if needed IE userData has auto expire built in
+ if (!self.storage.autoExpires)
+ self.storage.setItem(self.key + "_expires", expires);
+
+ self.storage.setItem(self.key, content);
+ self.onStoreDraft.dispatch(self, {
+ expires : expires,
+ content : content
+ });
+ }
+ }
+ },
+
+ /**
+ * This method will restore the contents from the storage engine back to the editor.
+ *
+ * @method restoreDraft
+ */
+ restoreDraft : function() {
+ var self = this, storage = self.storage, content;
+
+ if (storage) {
+ content = storage.getItem(self.key);
+
+ if (content) {
+ self.editor.setContent(content);
+ self.onRestoreDraft.dispatch(self, {
+ content : content
+ });
+ }
+ }
+ },
+
+ /**
+ * This method will return true/false if there is a local storage draft available.
+ *
+ * @method hasDraft
+ * @return {boolean} true/false state if there is a local draft.
+ */
+ hasDraft : function() {
+ var self = this, storage = self.storage, expDate, exists;
+
+ if (storage) {
+ // Does the item exist at all
+ exists = !!storage.getItem(self.key);
+ if (exists) {
+ // Storage needs autoexpire
+ if (!self.storage.autoExpires) {
+ expDate = new Date(storage.getItem(self.key + "_expires"));
+
+ // Contents hasn't expired
+ if (new Date().getTime() < expDate.getTime())
+ return TRUE;
+
+ // Remove it if it has
+ self.removeDraft();
+ } else
+ return TRUE;
+ }
+ }
+
+ return false;
+ },
+
+ /**
+ * Removes the currently stored draft.
+ *
+ * @method removeDraft
+ */
+ removeDraft : function() {
+ var self = this, storage = self.storage, key = self.key, content;
+
+ if (storage) {
+ // Get current contents and remove the existing draft
+ content = storage.getItem(key);
+ storage.removeItem(key);
+ storage.removeItem(key + "_expires");
+
+ // Dispatch remove event if we had any contents
+ if (content) {
+ self.onRemoveDraft.dispatch(self, {
+ content : content
+ });
+ }
+ }
+ },
+
+ "static" : {
+ // Internal unload handler will be called before the page is unloaded
+ _beforeUnloadHandler : function(e) {
+ var msg;
+
+ tinymce.each(tinyMCE.editors, function(ed) {
+ // Store a draft for each editor instance
+ if (ed.plugins.autosave)
+ ed.plugins.autosave.storeDraft();
+
+ // Never ask in fullscreen mode
+ if (ed.getParam("fullscreen_is_enabled"))
+ return;
+
+ // Setup a return message if the editor is dirty
+ if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload"))
+ msg = ed.getLang("autosave.unload_msg");
+ });
+
+ return msg;
+ }
+ }
+ });
+
+ tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave);
+})(tinymce);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/langs/en.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/langs/en.js
new file mode 100755
index 00000000..fce6bd3e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/autosave/langs/en.js
@@ -0,0 +1,4 @@
+tinyMCE.addI18n('en.autosave',{
+restore_content: "Restore auto-saved content",
+warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?"
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin.js
new file mode 100755
index 00000000..8f8821fd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/<font>(.*?)<\/font>/gi,"$1");b(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");b(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]");b(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]");b(/<u>/gi,"[u]");b(/<blockquote[^>]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/<br \/>/gi,"\n");b(/<br\/>/gi,"\n");b(/<br>/gi,"\n");b(/<p>/gi,"");b(/<\/p>/gi,"\n");b(/&nbsp;|\u00a0/gi," ");b(/&quot;/gi,'"');b(/&lt;/gi,"<");b(/&gt;/gi,">");b(/&amp;/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"<br />");b(/\[b\]/gi,"<strong>");b(/\[\/b\]/gi,"</strong>");b(/\[i\]/gi,"<em>");b(/\[\/i\]/gi,"</em>");b(/\[u\]/gi,"<u>");b(/\[\/u\]/gi,"</u>");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>');b(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>');b(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>');b(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin_src.js
new file mode 100755
index 00000000..4e7eb337
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/bbcode/editor_plugin_src.js
@@ -0,0 +1,120 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.BBCodePlugin', {
+ init : function(ed, url) {
+ var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase();
+
+ ed.onBeforeSetContent.add(function(ed, o) {
+ o.content = t['_' + dialect + '_bbcode2html'](o.content);
+ });
+
+ ed.onPostProcess.add(function(ed, o) {
+ if (o.set)
+ o.content = t['_' + dialect + '_bbcode2html'](o.content);
+
+ if (o.get)
+ o.content = t['_' + dialect + '_html2bbcode'](o.content);
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'BBCode Plugin',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private methods
+
+ // HTML -> BBCode in PunBB dialect
+ _punbb_html2bbcode : function(s) {
+ s = tinymce.trim(s);
+
+ function rep(re, str) {
+ s = s.replace(re, str);
+ };
+
+ // example: <strong> to [b]
+ rep(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]");
+ rep(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
+ rep(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
+ rep(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");
+ rep(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");
+ rep(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]");
+ rep(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]");
+ rep(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]");
+ rep(/<font>(.*?)<\/font>/gi,"$1");
+ rep(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");
+ rep(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]");
+ rep(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]");
+ rep(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");
+ rep(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");
+ rep(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");
+ rep(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");
+ rep(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");
+ rep(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");
+ rep(/<\/(strong|b)>/gi,"[/b]");
+ rep(/<(strong|b)>/gi,"[b]");
+ rep(/<\/(em|i)>/gi,"[/i]");
+ rep(/<(em|i)>/gi,"[i]");
+ rep(/<\/u>/gi,"[/u]");
+ rep(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]");
+ rep(/<u>/gi,"[u]");
+ rep(/<blockquote[^>]*>/gi,"[quote]");
+ rep(/<\/blockquote>/gi,"[/quote]");
+ rep(/<br \/>/gi,"\n");
+ rep(/<br\/>/gi,"\n");
+ rep(/<br>/gi,"\n");
+ rep(/<p>/gi,"");
+ rep(/<\/p>/gi,"\n");
+ rep(/&nbsp;|\u00a0/gi," ");
+ rep(/&quot;/gi,"\"");
+ rep(/&lt;/gi,"<");
+ rep(/&gt;/gi,">");
+ rep(/&amp;/gi,"&");
+
+ return s;
+ },
+
+ // BBCode -> HTML from PunBB dialect
+ _punbb_bbcode2html : function(s) {
+ s = tinymce.trim(s);
+
+ function rep(re, str) {
+ s = s.replace(re, str);
+ };
+
+ // example: [b] to <strong>
+ rep(/\n/gi,"<br />");
+ rep(/\[b\]/gi,"<strong>");
+ rep(/\[\/b\]/gi,"</strong>");
+ rep(/\[i\]/gi,"<em>");
+ rep(/\[\/i\]/gi,"</em>");
+ rep(/\[u\]/gi,"<u>");
+ rep(/\[\/u\]/gi,"</u>");
+ rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"<a href=\"$1\">$2</a>");
+ rep(/\[url\](.*?)\[\/url\]/gi,"<a href=\"$1\">$1</a>");
+ rep(/\[img\](.*?)\[\/img\]/gi,"<img src=\"$1\" />");
+ rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"<font color=\"$1\">$2</font>");
+ rep(/\[code\](.*?)\[\/code\]/gi,"<span class=\"codeStyle\">$1</span>&nbsp;");
+ rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"<span class=\"quoteStyle\">$1</span>&nbsp;");
+
+ return s;
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin.js
new file mode 100755
index 00000000..2ed042c3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(f){var i=this,g,d,j,e;i.editor=f;d=f.settings.contextmenu_never_use_native;i.onContextMenu=new tinymce.util.Dispatcher(this);e=function(k){h(f,k)};g=f.onContextMenu.add(function(k,l){if((j!==0?j:l.ctrlKey)&&!d){return}a.cancel(l);if(l.target.nodeName=="IMG"){k.selection.select(l.target)}i._getMenu(k).showMenu(l.clientX||l.pageX,l.clientY||l.pageY);a.add(k.getDoc(),"click",e);k.nodeChanged()});f.onRemove.add(function(){if(i._menu){i._menu.removeAll()}});function h(k,l){j=0;if(l&&l.button==2){j=l.ctrlKey;return}if(i._menu){i._menu.removeAll();i._menu.destroy();a.remove(k.getDoc(),"click",e);i._menu=null}}f.onMouseDown.add(h);f.onKeyDown.add(h);f.onKeyDown.add(function(k,l){if(l.shiftKey&&!l.ctrlKey&&!l.altKey&&l.keyCode===121){a.cancel(l);g(k,l)}})},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(e){var g=this,d=g._menu,j=e.selection,f=j.isCollapsed(),h=j.getNode()||e.getBody(),i,k;if(d){d.removeAll();d.destroy()}k=b.getPos(e.getContentAreaContainer());d=e.controlManager.createDropMenu("contextmenu",{offset_x:k.x+e.getParam("contextmenu_offset_x",0),offset_y:k.y+e.getParam("contextmenu_offset_y",0),constrain:1,keyboard_focus:true});g._menu=d;d.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(f);d.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(f);d.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((h.nodeName=="A"&&!e.dom.getAttrib(h,"name"))||!f){d.addSeparator();d.add({title:"advanced.link_desc",icon:"link",cmd:e.plugins.advlink?"mceAdvLink":"mceLink",ui:true});d.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}d.addSeparator();d.add({title:"advanced.image_desc",icon:"image",cmd:e.plugins.advimage?"mceAdvImage":"mceImage",ui:true});d.addSeparator();i=d.addMenu({title:"contextmenu.align"});i.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});i.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});i.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});i.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});g.onContextMenu.dispatch(g,d,h,f);return d}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin_src.js
new file mode 100755
index 00000000..48b0fff9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/contextmenu/editor_plugin_src.js
@@ -0,0 +1,163 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM;
+
+ /**
+ * This plugin a context menu to TinyMCE editor instances.
+ *
+ * @class tinymce.plugins.ContextMenu
+ */
+ tinymce.create('tinymce.plugins.ContextMenu', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @method init
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed) {
+ var t = this, showMenu, contextmenuNeverUseNative, realCtrlKey, hideMenu;
+
+ t.editor = ed;
+
+ contextmenuNeverUseNative = ed.settings.contextmenu_never_use_native;
+
+ /**
+ * This event gets fired when the context menu is shown.
+ *
+ * @event onContextMenu
+ * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event.
+ * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed.
+ */
+ t.onContextMenu = new tinymce.util.Dispatcher(this);
+
+ hideMenu = function(e) {
+ hide(ed, e);
+ };
+
+ showMenu = ed.onContextMenu.add(function(ed, e) {
+ // Block TinyMCE menu on ctrlKey and work around Safari issue
+ if ((realCtrlKey !== 0 ? realCtrlKey : e.ctrlKey) && !contextmenuNeverUseNative)
+ return;
+
+ Event.cancel(e);
+
+ // Select the image if it's clicked. WebKit would other wise expand the selection
+ if (e.target.nodeName == 'IMG')
+ ed.selection.select(e.target);
+
+ t._getMenu(ed).showMenu(e.clientX || e.pageX, e.clientY || e.pageY);
+ Event.add(ed.getDoc(), 'click', hideMenu);
+
+ ed.nodeChanged();
+ });
+
+ ed.onRemove.add(function() {
+ if (t._menu)
+ t._menu.removeAll();
+ });
+
+ function hide(ed, e) {
+ realCtrlKey = 0;
+
+ // Since the contextmenu event moves
+ // the selection we need to store it away
+ if (e && e.button == 2) {
+ realCtrlKey = e.ctrlKey;
+ return;
+ }
+
+ if (t._menu) {
+ t._menu.removeAll();
+ t._menu.destroy();
+ Event.remove(ed.getDoc(), 'click', hideMenu);
+ t._menu = null;
+ }
+ };
+
+ ed.onMouseDown.add(hide);
+ ed.onKeyDown.add(hide);
+ ed.onKeyDown.add(function(ed, e) {
+ if (e.shiftKey && !e.ctrlKey && !e.altKey && e.keyCode === 121) {
+ Event.cancel(e);
+ showMenu(ed, e);
+ }
+ });
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @method getInfo
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Contextmenu',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ _getMenu : function(ed) {
+ var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p;
+
+ if (m) {
+ m.removeAll();
+ m.destroy();
+ }
+
+ p = DOM.getPos(ed.getContentAreaContainer());
+
+ m = ed.controlManager.createDropMenu('contextmenu', {
+ offset_x : p.x + ed.getParam('contextmenu_offset_x', 0),
+ offset_y : p.y + ed.getParam('contextmenu_offset_y', 0),
+ constrain : 1,
+ keyboard_focus: true
+ });
+
+ t._menu = m;
+
+ m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col);
+ m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col);
+ m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'});
+
+ if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) {
+ m.addSeparator();
+ m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});
+ m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'});
+ }
+
+ m.addSeparator();
+ m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true});
+
+ m.addSeparator();
+ am = m.addMenu({title : 'contextmenu.align'});
+ am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'});
+ am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'});
+ am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'});
+ am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'});
+
+ t.onContextMenu.dispatch(t, m, el, col);
+
+ return m;
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin.js
new file mode 100755
index 00000000..90847e78
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(b,c){var d=this;d.editor=b;function a(e){var h=b.dom,g,f=b.selection.getSelectedBlocks();if(f.length){g=h.getAttrib(f[0],"dir");tinymce.each(f,function(i){if(!h.getParent(i.parentNode,"*[dir='"+e+"']",h.getRoot())){if(g!=e){h.setAttrib(i,"dir",e)}else{h.setAttrib(i,"dir",null)}}});b.nodeChanged()}}b.addCommand("mceDirectionLTR",function(){a("ltr")});b.addCommand("mceDirectionRTL",function(){a("rtl")});b.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});b.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});b.onNodeChange.add(d._nodeChange,d)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin_src.js
new file mode 100755
index 00000000..b1340141
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/directionality/editor_plugin_src.js
@@ -0,0 +1,85 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.Directionality', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ function setDir(dir) {
+ var dom = ed.dom, curDir, blocks = ed.selection.getSelectedBlocks();
+
+ if (blocks.length) {
+ curDir = dom.getAttrib(blocks[0], "dir");
+
+ tinymce.each(blocks, function(block) {
+ // Add dir to block if the parent block doesn't already have that dir
+ if (!dom.getParent(block.parentNode, "*[dir='" + dir + "']", dom.getRoot())) {
+ if (curDir != dir) {
+ dom.setAttrib(block, "dir", dir);
+ } else {
+ dom.setAttrib(block, "dir", null);
+ }
+ }
+ });
+
+ ed.nodeChanged();
+ }
+ }
+
+ ed.addCommand('mceDirectionLTR', function() {
+ setDir("ltr");
+ });
+
+ ed.addCommand('mceDirectionRTL', function() {
+ setDir("rtl");
+ });
+
+ ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'});
+ ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'});
+
+ ed.onNodeChange.add(t._nodeChange, t);
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Directionality',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private methods
+
+ _nodeChange : function(ed, cm, n) {
+ var dom = ed.dom, dir;
+
+ n = dom.getParent(n, dom.isBlock);
+ if (!n) {
+ cm.setDisabled('ltr', 1);
+ cm.setDisabled('rtl', 1);
+ return;
+ }
+
+ dir = dom.getAttrib(n, 'dir');
+ cm.setActive('ltr', dir == "ltr");
+ cm.setDisabled('ltr', 0);
+ cm.setActive('rtl', dir == "rtl");
+ cm.setDisabled('rtl', 0);
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin.js
new file mode 100755
index 00000000..dbdd8ffb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin.js
@@ -0,0 +1 @@
+(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin_src.js
new file mode 100755
index 00000000..71d54169
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/editor_plugin_src.js
@@ -0,0 +1,43 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function(tinymce) {
+ tinymce.create('tinymce.plugins.EmotionsPlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceEmotion', function() {
+ ed.windowManager.open({
+ file : url + '/emotions.htm',
+ width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
+ height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Emotions',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
+})(tinymce); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/emotions.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/emotions.htm
new file mode 100755
index 00000000..10135565
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/emotions.htm
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#emotions_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/emotions.js"></script>
+</head>
+<body style="display: none" role="application" aria-labelledby="app_title">
+<span style="display:none;" id="app_title">{#emotions_dlg.title}</span>
+<div align="center">
+ <div class="title">{#emotions_dlg.title}:<br /><br /></div>
+
+ <table id="emoticon_table" role="presentation" border="0" cellspacing="0" cellpadding="4">
+ <tr>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.cool}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-cool.gif','emotions_dlg.cool');"><img src="img/smiley-cool.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cool}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.cry}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-cry.gif','emotions_dlg.cry');"><img src="img/smiley-cry.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cry}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.embarassed}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-embarassed.gif','emotions_dlg.embarassed');"><img src="img/smiley-embarassed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.embarassed}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.foot_in_mouth}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-foot-in-mouth.gif','emotions_dlg.foot_in_mouth');"><img src="img/smiley-foot-in-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.foot_in_mouth}. {#emotions_dlg.usage}" /></a></td>
+ </tr>
+ <tr>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.frown}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-frown.gif','emotions_dlg.frown');"><img src="img/smiley-frown.gif" width="18" height="18" border="0" alt="{#emotions_dlg.frown}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.innocent}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-innocent.gif','emotions_dlg.innocent');"><img src="img/smiley-innocent.gif" width="18" height="18" border="0" alt="{#emotions_dlg.innocent}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.kiss}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-kiss.gif','emotions_dlg.kiss');"><img src="img/smiley-kiss.gif" width="18" height="18" border="0" alt="{#emotions_dlg.kiss}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.laughing}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-laughing.gif','emotions_dlg.laughing');"><img src="img/smiley-laughing.gif" width="18" height="18" border="0" alt="{#emotions_dlg.laughing}. {#emotions_dlg.usage}" /></a></td>
+ </tr>
+ <tr>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.money_mouth}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-money-mouth.gif','emotions_dlg.money_mouth');"><img src="img/smiley-money-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.money_mouth}. {#emotions_dlg.usage}"/></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.sealed}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-sealed.gif','emotions_dlg.sealed');"><img src="img/smiley-sealed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.sealed}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.smile}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-smile.gif','emotions_dlg.smile');"><img src="img/smiley-smile.gif" width="18" height="18" border="0" alt="{#emotions_dlg.smile}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.surprised}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-surprised.gif','emotions_dlg.surprised');"><img src="img/smiley-surprised.gif" width="18" height="18" border="0" alt="{#emotions_dlg.surprised}. {#emotions_dlg.usage}" /></a></td>
+ </tr>
+ <tr>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.tongue_out}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-tongue-out.gif','emotions_dlg.tongue_out');"><img src="img/smiley-tongue-out.gif" width="18" height="18" border="0" alt="{#emotions_dlg.tongue-out}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.undecided}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-undecided.gif','emotions_dlg.undecided');"><img src="img/smiley-undecided.gif" width="18" height="18" border="0" alt="{#emotions_dlg.undecided}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.wink}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-wink.gif','emotions_dlg.wink');"><img src="img/smiley-wink.gif" width="18" height="18" border="0" alt="{#emotions_dlg.wink}. {#emotions_dlg.usage}" /></a></td>
+ <td><a class="emoticon_link" role="button" title="{#emotions_dlg.yell}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-yell.gif','emotions_dlg.yell');"><img src="img/smiley-yell.gif" width="18" height="18" border="0" alt="{#emotions_dlg.yell}. {#emotions_dlg.usage}" /></a></td>
+ </tr>
+ </table>
+ <div>{#emotions_dlg.usage}</div>
+</div>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cool.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cool.gif
new file mode 100644
index 00000000..ba90cc36
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cool.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cry.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cry.gif
new file mode 100644
index 00000000..74d897a4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-cry.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-embarassed.gif
new file mode 100644
index 00000000..963a96b8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-embarassed.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif
new file mode 100644
index 00000000..c7cf1011
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-frown.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-frown.gif
new file mode 100644
index 00000000..716f55e1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-frown.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-innocent.gif
new file mode 100644
index 00000000..334d49e0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-innocent.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-kiss.gif
new file mode 100644
index 00000000..4efd549e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-kiss.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-laughing.gif
new file mode 100644
index 00000000..82c5b182
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-laughing.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif
new file mode 100644
index 00000000..ca2451e1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-sealed.gif
new file mode 100644
index 00000000..fe66220c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-sealed.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-smile.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-smile.gif
new file mode 100644
index 00000000..fd27edfa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-smile.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-surprised.gif
new file mode 100644
index 00000000..0cc9bb71
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-surprised.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif
new file mode 100644
index 00000000..2075dc16
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-undecided.gif
new file mode 100644
index 00000000..bef7e257
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-undecided.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-wink.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-wink.gif
new file mode 100644
index 00000000..0631c761
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-wink.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-yell.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-yell.gif
new file mode 100644
index 00000000..648e6e87
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/img/smiley-yell.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/js/emotions.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/js/emotions.js
new file mode 100644
index 00000000..b360f20b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/js/emotions.js
@@ -0,0 +1,43 @@
+tinyMCEPopup.requireLangPack();
+
+var EmotionsDialog = {
+ addKeyboardNavigation: function(){
+ var tableElm, cells, settings;
+
+ cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table");
+
+ settings ={
+ root: "emoticon_table",
+ items: cells
+ };
+ cells[0].tabindex=0;
+ tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
+ if (tinymce.isGecko) {
+ cells[0].focus();
+ } else {
+ setTimeout(function(){
+ cells[0].focus();
+ }, 100);
+ }
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
+ },
+ init : function(ed) {
+ tinyMCEPopup.resizeToInnerSize();
+ this.addKeyboardNavigation();
+ },
+
+ insert : function(file, title) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom;
+
+ tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
+ src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
+ alt : ed.getLang(title),
+ title : ed.getLang(title),
+ border : 0
+ }));
+
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/de_dlg.js
new file mode 100644
index 00000000..7489e35e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.emotions_dlg',{cry:"Weinend",cool:"Cool",desc:"Smileys",title:"Smiley einf\u00fcgen",yell:"Br\u00fcllend",wink:"Zwinkernd",undecided:"Unentschlossen","tongue_out":"Zunge raus",surprised:"\u00dcberrascht",smile:"L\u00e4chelnd",sealed:"Verschlossen","money_mouth":"Geld",laughing:"Lachend",kiss:"K\u00fcssend",innocent:"Unschuldig",frown:"Stirnrunzelnd","foot_in_mouth":"Reingefallen",embarassed:"Verlegen",usage:"Navigation mit linken und rechten Pfeilen."}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/en_dlg.js
new file mode 100644
index 00000000..f5aafc39
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.emotions_dlg',{cry:"Cry",cool:"Cool",desc:"Emotions",title:"Insert Emotion",yell:"Yell",wink:"Wink",undecided:"Undecided","tongue_out":"Tongue Out",surprised:"Surprised",smile:"Smile",sealed:"Sealed","money_mouth":"Money Mouth",laughing:"Laughing",kiss:"Kiss",innocent:"Innocent",frown:"Frown","foot_in_mouth":"Foot in Mouth",embarassed:"Embarassed",usage:"Use left and right arrows to navigate."}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/hu_dlg.js
new file mode 100644
index 00000000..b48285bb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.emotions_dlg',{cry:"S\u00edr\u00f3s",cool:"Kir\u00e1ly",desc:"Hangulatjelek",title:"Hangulatjel besz\u00far\u00e1sa",yell:"\u00dcv\u00f6lt\u00e9s",wink:"Kacsint\u00e1s",undecided:"Hat\u00e1rozatlan","tongue_out":"Nyelv\u00f6lt\u00e9s",surprised:"Meglepett",smile:"Vigyor",sealed:"Lakat a sz\u00e1j\u00e1n","money_mouth":"P\u00e9nz besz\u00e9l",laughing:"Nevet\u00e9s",kiss:"Cs\u00f3k",innocent:"\u00c1rtatlan",frown:"Rosszall","foot_in_mouth":"L\u00e1b a sz\u00e1jban",embarassed:"Zavarban van",usage:"A navig\u00e1l\u00e1shoz haszn\u00e1ld a bal \u00e9s jobb oldali nyilat."}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/ja_dlg.js
new file mode 100644
index 00000000..7ff287f3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/emotions/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.emotions_dlg',{cry:"\u6ce3\u304d\u9854",cool:"\u30af\u30fc\u30eb",desc:"\u8868\u60c5\u30a2\u30a4\u30b3\u30f3",title:"\u8868\u60c5\u30a2\u30a4\u30b3\u30f3\u306e\u633f\u5165",yell:"\u30a8\u30fc\u30eb",wink:"\u30a6\u30a3\u30f3\u30af",undecided:"\u672a\u6c7a\u5b9a","tongue_out":"\u30a2\u30c3\u30ab\u30f3\u30d9\u30fc",surprised:"\u9a5a\u304d",smile:"\u7b11\u9854",sealed:"\u5c01\u5370","money_mouth":"\u53e3\u306b\u304a\u91d1",laughing:"\u7b11\u3044",kiss:"\u30ad\u30b9",innocent:"\u7d14\u771f\u7121\u57a2",frown:"\u6e0b\u9762","foot_in_mouth":"\u53e3\u306b\u8db3",embarassed:"\u56f0\u60d1",usage:"\u5de6\u3068\u53f3\u306e\u30ab\u30fc\u30bd\u30eb\u30ad\u30fc\u3067\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/dialog.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/dialog.htm
new file mode 100644
index 00000000..50b2b344
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/dialog.htm
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#example_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/dialog.js"></script>
+</head>
+<body>
+
+<form onsubmit="ExampleDialog.insert();return false;" action="#">
+ <p>Here is a example dialog.</p>
+ <p>Selected text: <input id="someval" name="someval" type="text" class="text" /></p>
+ <p>Custom arg: <input id="somearg" name="somearg" type="text" class="text" /></p>
+
+ <div class="mceActionPanel">
+ <input type="button" id="insert" name="insert" value="{#insert}" onclick="ExampleDialog.insert();" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin.js
new file mode 100644
index 00000000..ec1f81ea
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin_src.js
new file mode 100644
index 00000000..9a0e7da1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/editor_plugin_src.js
@@ -0,0 +1,84 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ // Load plugin specific language pack
+ tinymce.PluginManager.requireLangPack('example');
+
+ tinymce.create('tinymce.plugins.ExamplePlugin', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
+ ed.addCommand('mceExample', function() {
+ ed.windowManager.open({
+ file : url + '/dialog.htm',
+ width : 320 + parseInt(ed.getLang('example.delta_width', 0)),
+ height : 120 + parseInt(ed.getLang('example.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url, // Plugin absolute URL
+ some_custom_arg : 'custom arg' // Custom argument
+ });
+ });
+
+ // Register example button
+ ed.addButton('example', {
+ title : 'example.desc',
+ cmd : 'mceExample',
+ image : url + '/img/example.gif'
+ });
+
+ // Add a node change handler, selects the button in the UI when a image is selected
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('example', n.nodeName == 'IMG');
+ });
+ },
+
+ /**
+ * Creates control instances based in the incomming name. This method is normally not
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
+ * method can be used to create those.
+ *
+ * @param {String} n Name of the control to create.
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
+ */
+ createControl : function(n, cm) {
+ return null;
+ },
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Example plugin',
+ author : 'Some author',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
+ version : "1.0"
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/img/example.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/img/example.gif
new file mode 100644
index 00000000..1ab5da44
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/img/example.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/js/dialog.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/js/dialog.js
new file mode 100644
index 00000000..fa834113
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/js/dialog.js
@@ -0,0 +1,19 @@
+tinyMCEPopup.requireLangPack();
+
+var ExampleDialog = {
+ init : function() {
+ var f = document.forms[0];
+
+ // Get the selected contents as text and place it in the input
+ f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'});
+ f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg');
+ },
+
+ insert : function() {
+ // Insert the contents from the input into the document
+ tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value);
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en.js
new file mode 100644
index 00000000..e0784f80
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en.js
@@ -0,0 +1,3 @@
+tinyMCE.addI18n('en.example',{
+ desc : 'This is just a template button'
+});
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en_dlg.js
new file mode 100644
index 00000000..ebcf948d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example/langs/en_dlg.js
@@ -0,0 +1,3 @@
+tinyMCE.addI18n('en.example_dlg',{
+ title : 'This is just a example title'
+});
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin.js
new file mode 100644
index 00000000..0a4551d3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.ExampleDependencyPlugin",{init:function(a,b){},getInfo:function(){return{longname:"Example Dependency plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency",version:"1.0"}}});tinymce.PluginManager.add("example_dependency",tinymce.plugins.ExampleDependencyPlugin,["example"])})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin_src.js
new file mode 100644
index 00000000..e1c55e41
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/example_dependency/editor_plugin_src.js
@@ -0,0 +1,50 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+
+ tinymce.create('tinymce.plugins.ExampleDependencyPlugin', {
+ /**
+ * Initializes the plugin, this will be executed after the plugin has been created.
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
+ * of the editor instance to intercept that event.
+ *
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
+ * @param {string} url Absolute URL to where the plugin is located.
+ */
+ init : function(ed, url) {
+ },
+
+
+ /**
+ * Returns information about the plugin as a name/value array.
+ * The current keys are longname, author, authorurl, infourl and version.
+ *
+ * @return {Object} Name/value array containing information about the plugin.
+ */
+ getInfo : function() {
+ return {
+ longname : 'Example Dependency plugin',
+ author : 'Some author',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency',
+ version : "1.0"
+ };
+ }
+ });
+
+ /**
+ * Register the plugin, specifying the list of the plugins that this plugin depends on. They are specified in a list, with the list loaded in order.
+ * plugins in this list will be initialised when this plugin is initialized. (before the init method is called).
+ * plugins in a depends list should typically be specified using the short name). If neccesary this can be done
+ * with an object which has the url to the plugin and the shortname.
+ */
+ tinymce.PluginManager.add('example_dependency', tinymce.plugins.ExampleDependencyPlugin, ['example']);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/css/fullpage.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/css/fullpage.css
new file mode 100755
index 00000000..2675cec1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/css/fullpage.css
@@ -0,0 +1,143 @@
+/* Hide the advanced tab */
+#advanced_tab {
+ display: none;
+}
+
+#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright {
+ width: 280px;
+}
+
+#doctype, #docencoding {
+ width: 200px;
+}
+
+#langcode {
+ width: 30px;
+}
+
+#bgimage {
+ width: 220px;
+}
+
+#fontface {
+ width: 240px;
+}
+
+#leftmargin, #rightmargin, #topmargin, #bottommargin {
+ width: 50px;
+}
+
+.panel_wrapper div.current {
+ height: 400px;
+}
+
+#stylesheet, #style {
+ width: 240px;
+}
+
+#doctypes {
+ width: 200px;
+}
+
+/* Head list classes */
+
+.headlistwrapper {
+ width: 100%;
+}
+
+.selected {
+ border: 1px solid #0A246A;
+ background-color: #B6BDD2;
+}
+
+.toolbar {
+ width: 100%;
+}
+
+#headlist {
+ width: 100%;
+ margin-top: 3px;
+ font-size: 11px;
+}
+
+#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element {
+ display: none;
+}
+
+#addmenu {
+ position: absolute;
+ border: 1px solid gray;
+ display: none;
+ z-index: 100;
+ background-color: white;
+}
+
+#addmenu a {
+ display: block;
+ width: 100%;
+ line-height: 20px;
+ text-decoration: none;
+ background-color: white;
+}
+
+#addmenu a:hover {
+ background-color: #B6BDD2;
+ color: black;
+}
+
+#addmenu span {
+ padding-left: 10px;
+ padding-right: 10px;
+}
+
+#updateElementPanel {
+ display: none;
+}
+
+#script_element .panel_wrapper div.current {
+ height: 108px;
+}
+
+#style_element .panel_wrapper div.current {
+ height: 108px;
+}
+
+#link_element .panel_wrapper div.current {
+ height: 140px;
+}
+
+#element_script_value {
+ width: 100%;
+ height: 100px;
+}
+
+#element_comment_value {
+ width: 100%;
+ height: 120px;
+}
+
+#element_style_value {
+ width: 100%;
+ height: 100px;
+}
+
+#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title {
+ width: 250px;
+}
+
+.updateElementButton {
+ margin-top: 3px;
+}
+
+/* MSIE specific styles */
+
+* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton {
+ width: 22px;
+ height: 22px;
+}
+
+textarea {
+ height: 55px;
+}
+
+.panel_wrapper div.current {height:420px;} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin.js
new file mode 100755
index 00000000..dcf76024
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var b=tinymce.each,a=tinymce.html.Node;tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(c,d){var e=this;e.editor=c;c.addCommand("mceFullPageProperties",function(){c.windowManager.open({file:d+"/fullpage.htm",width:430+parseInt(c.getLang("fullpage.delta_width",0)),height:495+parseInt(c.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:d,data:e._htmlToData()})});c.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});c.onBeforeSetContent.add(e._setContent,e);c.onGetContent.add(e._getContent,e)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_htmlToData:function(){var f=this._parseHeader(),h={},c,i,g,e=this.editor;function d(l,j){var k=l.attr(j);return k||""}h.fontface=e.getParam("fullpage_default_fontface","");h.fontsize=e.getParam("fullpage_default_fontsize","");i=f.firstChild;if(i.type==7){h.xml_pi=true;g=/encoding="([^"]+)"/.exec(i.value);if(g){h.docencoding=g[1]}}i=f.getAll("#doctype")[0];if(i){h.doctype="<!DOCTYPE"+i.value+">"}i=f.getAll("title")[0];if(i&&i.firstChild){h.metatitle=i.firstChild.value}b(f.getAll("meta"),function(m){var k=m.attr("name"),j=m.attr("http-equiv"),l;if(k){h["meta"+k.toLowerCase()]=m.attr("content")}else{if(j=="Content-Type"){l=/charset\s*=\s*(.*)\s*/gi.exec(m.attr("content"));if(l){h.docencoding=l[1]}}}});i=f.getAll("html")[0];if(i){h.langcode=d(i,"lang")||d(i,"xml:lang")}i=f.getAll("link")[0];if(i&&i.attr("rel")=="stylesheet"){h.stylesheet=i.attr("href")}i=f.getAll("body")[0];if(i){h.langdir=d(i,"dir");h.style=d(i,"style");h.visited_color=d(i,"vlink");h.link_color=d(i,"link");h.active_color=d(i,"alink")}return h},_dataToHtml:function(g){var f,d,h,j,k,e=this.editor.dom;function c(n,l,m){n.attr(l,m?m:undefined)}function i(l){if(d.firstChild){d.insert(l,d.firstChild)}else{d.append(l)}}f=this._parseHeader();d=f.getAll("head")[0];if(!d){j=f.getAll("html")[0];d=new a("head",1);if(j.firstChild){j.insert(d,j.firstChild,true)}else{j.append(d)}}j=f.firstChild;if(g.xml_pi){k='version="1.0"';if(g.docencoding){k+=' encoding="'+g.docencoding+'"'}if(j.type!=7){j=new a("xml",7);f.insert(j,f.firstChild,true)}j.value=k}else{if(j&&j.type==7){j.remove()}}j=f.getAll("#doctype")[0];if(g.doctype){if(!j){j=new a("#doctype",10);if(g.xml_pi){f.insert(j,f.firstChild)}else{i(j)}}j.value=g.doctype.substring(9,g.doctype.length-1)}else{if(j){j.remove()}}j=f.getAll("title")[0];if(g.metatitle){if(!j){j=new a("title",1);j.append(new a("#text",3)).value=g.metatitle;i(j)}}if(g.docencoding){j=null;b(f.getAll("meta"),function(l){if(l.attr("http-equiv")=="Content-Type"){j=l}});if(!j){j=new a("meta",1);j.attr("http-equiv","Content-Type");j.shortEnded=true;i(j)}j.attr("content","text/html; charset="+g.docencoding)}b("keywords,description,author,copyright,robots".split(","),function(m){var l=f.getAll("meta"),n,p,o=g["meta"+m];for(n=0;n<l.length;n++){p=l[n];if(p.attr("name")==m){if(o){p.attr("content",o)}else{p.remove()}return}}if(o){j=new a("meta",1);j.attr("name",m);j.attr("content",o);j.shortEnded=true;i(j)}});j=f.getAll("link")[0];if(j&&j.attr("rel")=="stylesheet"){if(g.stylesheet){j.attr("href",g.stylesheet)}else{j.remove()}}else{if(g.stylesheet){j=new a("link",1);j.attr({rel:"stylesheet",text:"text/css",href:g.stylesheet});j.shortEnded=true;i(j)}}j=f.getAll("body")[0];if(j){c(j,"dir",g.langdir);c(j,"style",g.style);c(j,"vlink",g.visited_color);c(j,"link",g.link_color);c(j,"alink",g.active_color);e.setAttribs(this.editor.getBody(),{style:g.style,dir:g.dir,vLink:g.visited_color,link:g.link_color,aLink:g.active_color})}j=f.getAll("html")[0];if(j){c(j,"lang",g.langcode);c(j,"xml:lang",g.langcode)}h=new tinymce.html.Serializer({validate:false,indent:true,apply_source_formatting:true,indent_before:"head,html,body,meta,title,script,link,style",indent_after:"head,html,body,meta,title,script,link,style"}).serialize(f);this.head=h.substring(0,h.indexOf("</body>"))},_parseHeader:function(){return new tinymce.html.DomParser({validate:false,root_name:"#document"}).parse(this.head)},_setContent:function(g,d){var m=this,i,c,h=d.content,f,l="",e=m.editor.dom,j;function k(n){return n.replace(/<\/?[A-Z]+/g,function(o){return o.toLowerCase()})}if(d.format=="raw"&&m.head){return}if(d.source_view&&g.getParam("fullpage_hide_in_source_view")){return}h=h.replace(/<(\/?)BODY/gi,"<$1body");i=h.indexOf("<body");if(i!=-1){i=h.indexOf(">",i);m.head=k(h.substring(0,i+1));c=h.indexOf("</body",i);if(c==-1){c=h.length}d.content=h.substring(i+1,c);m.foot=k(h.substring(c))}else{m.head=this._getDefaultHeader();m.foot="\n</body>\n</html>"}f=m._parseHeader();b(f.getAll("style"),function(n){if(n.firstChild){l+=n.firstChild.value}});j=f.getAll("body")[0];if(j){e.setAttribs(m.editor.getBody(),{style:j.attr("style")||"",dir:j.attr("dir")||"",vLink:j.attr("vlink")||"",link:j.attr("link")||"",aLink:j.attr("alink")||""})}e.remove("fullpage_styles");if(l){e.add(m.editor.getDoc().getElementsByTagName("head")[0],"style",{id:"fullpage_styles"},l);j=e.get("fullpage_styles");if(j.styleSheet){j.styleSheet.cssText=l}}},_getDefaultHeader:function(){var f="",c=this.editor,e,d="";if(c.getParam("fullpage_default_xml_pi")){f+='<?xml version="1.0" encoding="'+c.getParam("fullpage_default_encoding","ISO-8859-1")+'" ?>\n'}f+=c.getParam("fullpage_default_doctype",'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');f+="\n<html>\n<head>\n";if(e=c.getParam("fullpage_default_title")){f+="<title>"+e+"</title>\n"}if(e=c.getParam("fullpage_default_encoding")){f+='<meta http-equiv="Content-Type" content="text/html; charset='+e+'" />\n'}if(e=c.getParam("fullpage_default_font_family")){d+="font-family: "+e+";"}if(e=c.getParam("fullpage_default_font_size")){d+="font-size: "+e+";"}if(e=c.getParam("fullpage_default_text_color")){d+="color: "+e+";"}f+="</head>\n<body"+(d?' style="'+d+'"':"")+">\n";return f},_getContent:function(d,e){var c=this;if(!e.source_view||!d.getParam("fullpage_hide_in_source_view")){e.content=tinymce.trim(c.head)+"\n"+tinymce.trim(e.content)+"\n"+tinymce.trim(c.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin_src.js
new file mode 100755
index 00000000..23de7c5a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/editor_plugin_src.js
@@ -0,0 +1,405 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var each = tinymce.each, Node = tinymce.html.Node;
+
+ tinymce.create('tinymce.plugins.FullPagePlugin', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceFullPageProperties', function() {
+ ed.windowManager.open({
+ file : url + '/fullpage.htm',
+ width : 430 + parseInt(ed.getLang('fullpage.delta_width', 0)),
+ height : 495 + parseInt(ed.getLang('fullpage.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url,
+ data : t._htmlToData()
+ });
+ });
+
+ // Register buttons
+ ed.addButton('fullpage', {title : 'fullpage.desc', cmd : 'mceFullPageProperties'});
+
+ ed.onBeforeSetContent.add(t._setContent, t);
+ ed.onGetContent.add(t._getContent, t);
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Fullpage',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private plugin internal methods
+
+ _htmlToData : function() {
+ var headerFragment = this._parseHeader(), data = {}, nodes, elm, matches, editor = this.editor;
+
+ function getAttr(elm, name) {
+ var value = elm.attr(name);
+
+ return value || '';
+ };
+
+ // Default some values
+ data.fontface = editor.getParam("fullpage_default_fontface", "");
+ data.fontsize = editor.getParam("fullpage_default_fontsize", "");
+
+ // Parse XML PI
+ elm = headerFragment.firstChild;
+ if (elm.type == 7) {
+ data.xml_pi = true;
+ matches = /encoding="([^"]+)"/.exec(elm.value);
+ if (matches)
+ data.docencoding = matches[1];
+ }
+
+ // Parse doctype
+ elm = headerFragment.getAll('#doctype')[0];
+ if (elm)
+ data.doctype = '<!DOCTYPE' + elm.value + ">";
+
+ // Parse title element
+ elm = headerFragment.getAll('title')[0];
+ if (elm && elm.firstChild) {
+ data.metatitle = elm.firstChild.value;
+ }
+
+ // Parse meta elements
+ each(headerFragment.getAll('meta'), function(meta) {
+ var name = meta.attr('name'), httpEquiv = meta.attr('http-equiv'), matches;
+
+ if (name)
+ data['meta' + name.toLowerCase()] = meta.attr('content');
+ else if (httpEquiv == "Content-Type") {
+ matches = /charset\s*=\s*(.*)\s*/gi.exec(meta.attr('content'));
+
+ if (matches)
+ data.docencoding = matches[1];
+ }
+ });
+
+ // Parse html attribs
+ elm = headerFragment.getAll('html')[0];
+ if (elm)
+ data.langcode = getAttr(elm, 'lang') || getAttr(elm, 'xml:lang');
+
+ // Parse stylesheet
+ elm = headerFragment.getAll('link')[0];
+ if (elm && elm.attr('rel') == 'stylesheet')
+ data.stylesheet = elm.attr('href');
+
+ // Parse body parts
+ elm = headerFragment.getAll('body')[0];
+ if (elm) {
+ data.langdir = getAttr(elm, 'dir');
+ data.style = getAttr(elm, 'style');
+ data.visited_color = getAttr(elm, 'vlink');
+ data.link_color = getAttr(elm, 'link');
+ data.active_color = getAttr(elm, 'alink');
+ }
+
+ return data;
+ },
+
+ _dataToHtml : function(data) {
+ var headerFragment, headElement, html, elm, value, dom = this.editor.dom;
+
+ function setAttr(elm, name, value) {
+ elm.attr(name, value ? value : undefined);
+ };
+
+ function addHeadNode(node) {
+ if (headElement.firstChild)
+ headElement.insert(node, headElement.firstChild);
+ else
+ headElement.append(node);
+ };
+
+ headerFragment = this._parseHeader();
+ headElement = headerFragment.getAll('head')[0];
+ if (!headElement) {
+ elm = headerFragment.getAll('html')[0];
+ headElement = new Node('head', 1);
+
+ if (elm.firstChild)
+ elm.insert(headElement, elm.firstChild, true);
+ else
+ elm.append(headElement);
+ }
+
+ // Add/update/remove XML-PI
+ elm = headerFragment.firstChild;
+ if (data.xml_pi) {
+ value = 'version="1.0"';
+
+ if (data.docencoding)
+ value += ' encoding="' + data.docencoding + '"';
+
+ if (elm.type != 7) {
+ elm = new Node('xml', 7);
+ headerFragment.insert(elm, headerFragment.firstChild, true);
+ }
+
+ elm.value = value;
+ } else if (elm && elm.type == 7)
+ elm.remove();
+
+ // Add/update/remove doctype
+ elm = headerFragment.getAll('#doctype')[0];
+ if (data.doctype) {
+ if (!elm) {
+ elm = new Node('#doctype', 10);
+
+ if (data.xml_pi)
+ headerFragment.insert(elm, headerFragment.firstChild);
+ else
+ addHeadNode(elm);
+ }
+
+ elm.value = data.doctype.substring(9, data.doctype.length - 1);
+ } else if (elm)
+ elm.remove();
+
+ // Add/update/remove title
+ elm = headerFragment.getAll('title')[0];
+ if (data.metatitle) {
+ if (!elm) {
+ elm = new Node('title', 1);
+ elm.append(new Node('#text', 3)).value = data.metatitle;
+ addHeadNode(elm);
+ }
+ }
+
+ // Add meta encoding
+ if (data.docencoding) {
+ elm = null;
+ each(headerFragment.getAll('meta'), function(meta) {
+ if (meta.attr('http-equiv') == 'Content-Type')
+ elm = meta;
+ });
+
+ if (!elm) {
+ elm = new Node('meta', 1);
+ elm.attr('http-equiv', 'Content-Type');
+ elm.shortEnded = true;
+ addHeadNode(elm);
+ }
+
+ elm.attr('content', 'text/html; charset=' + data.docencoding);
+ }
+
+ // Add/update/remove meta
+ each('keywords,description,author,copyright,robots'.split(','), function(name) {
+ var nodes = headerFragment.getAll('meta'), i, meta, value = data['meta' + name];
+
+ for (i = 0; i < nodes.length; i++) {
+ meta = nodes[i];
+
+ if (meta.attr('name') == name) {
+ if (value)
+ meta.attr('content', value);
+ else
+ meta.remove();
+
+ return;
+ }
+ }
+
+ if (value) {
+ elm = new Node('meta', 1);
+ elm.attr('name', name);
+ elm.attr('content', value);
+ elm.shortEnded = true;
+
+ addHeadNode(elm);
+ }
+ });
+
+ // Add/update/delete link
+ elm = headerFragment.getAll('link')[0];
+ if (elm && elm.attr('rel') == 'stylesheet') {
+ if (data.stylesheet)
+ elm.attr('href', data.stylesheet);
+ else
+ elm.remove();
+ } else if (data.stylesheet) {
+ elm = new Node('link', 1);
+ elm.attr({
+ rel : 'stylesheet',
+ text : 'text/css',
+ href : data.stylesheet
+ });
+ elm.shortEnded = true;
+
+ addHeadNode(elm);
+ }
+
+ // Update body attributes
+ elm = headerFragment.getAll('body')[0];
+ if (elm) {
+ setAttr(elm, 'dir', data.langdir);
+ setAttr(elm, 'style', data.style);
+ setAttr(elm, 'vlink', data.visited_color);
+ setAttr(elm, 'link', data.link_color);
+ setAttr(elm, 'alink', data.active_color);
+
+ // Update iframe body as well
+ dom.setAttribs(this.editor.getBody(), {
+ style : data.style,
+ dir : data.dir,
+ vLink : data.visited_color,
+ link : data.link_color,
+ aLink : data.active_color
+ });
+ }
+
+ // Set html attributes
+ elm = headerFragment.getAll('html')[0];
+ if (elm) {
+ setAttr(elm, 'lang', data.langcode);
+ setAttr(elm, 'xml:lang', data.langcode);
+ }
+
+ // Serialize header fragment and crop away body part
+ html = new tinymce.html.Serializer({
+ validate: false,
+ indent: true,
+ apply_source_formatting : true,
+ indent_before: 'head,html,body,meta,title,script,link,style',
+ indent_after: 'head,html,body,meta,title,script,link,style'
+ }).serialize(headerFragment);
+
+ this.head = html.substring(0, html.indexOf('</body>'));
+ },
+
+ _parseHeader : function() {
+ // Parse the contents with a DOM parser
+ return new tinymce.html.DomParser({
+ validate: false,
+ root_name: '#document'
+ }).parse(this.head);
+ },
+
+ _setContent : function(ed, o) {
+ var self = this, startPos, endPos, content = o.content, headerFragment, styles = '', dom = self.editor.dom, elm;
+
+ function low(s) {
+ return s.replace(/<\/?[A-Z]+/g, function(a) {
+ return a.toLowerCase();
+ })
+ };
+
+ // Ignore raw updated if we already have a head, this will fix issues with undo/redo keeping the head/foot separate
+ if (o.format == 'raw' && self.head)
+ return;
+
+ if (o.source_view && ed.getParam('fullpage_hide_in_source_view'))
+ return;
+
+ // Parse out head, body and footer
+ content = content.replace(/<(\/?)BODY/gi, '<$1body');
+ startPos = content.indexOf('<body');
+
+ if (startPos != -1) {
+ startPos = content.indexOf('>', startPos);
+ self.head = low(content.substring(0, startPos + 1));
+
+ endPos = content.indexOf('</body', startPos);
+ if (endPos == -1)
+ endPos = content.length;
+
+ o.content = content.substring(startPos + 1, endPos);
+ self.foot = low(content.substring(endPos));
+ } else {
+ self.head = this._getDefaultHeader();
+ self.foot = '\n</body>\n</html>';
+ }
+
+ // Parse header and update iframe
+ headerFragment = self._parseHeader();
+ each(headerFragment.getAll('style'), function(node) {
+ if (node.firstChild)
+ styles += node.firstChild.value;
+ });
+
+ elm = headerFragment.getAll('body')[0];
+ if (elm) {
+ dom.setAttribs(self.editor.getBody(), {
+ style : elm.attr('style') || '',
+ dir : elm.attr('dir') || '',
+ vLink : elm.attr('vlink') || '',
+ link : elm.attr('link') || '',
+ aLink : elm.attr('alink') || ''
+ });
+ }
+
+ dom.remove('fullpage_styles');
+
+ if (styles) {
+ dom.add(self.editor.getDoc().getElementsByTagName('head')[0], 'style', {id : 'fullpage_styles'}, styles);
+
+ // Needed for IE 6/7
+ elm = dom.get('fullpage_styles');
+ if (elm.styleSheet)
+ elm.styleSheet.cssText = styles;
+ }
+ },
+
+ _getDefaultHeader : function() {
+ var header = '', editor = this.editor, value, styles = '';
+
+ if (editor.getParam('fullpage_default_xml_pi'))
+ header += '<?xml version="1.0" encoding="' + editor.getParam('fullpage_default_encoding', 'ISO-8859-1') + '" ?>\n';
+
+ header += editor.getParam('fullpage_default_doctype', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
+ header += '\n<html>\n<head>\n';
+
+ if (value = editor.getParam('fullpage_default_title'))
+ header += '<title>' + value + '</title>\n';
+
+ if (value = editor.getParam('fullpage_default_encoding'))
+ header += '<meta http-equiv="Content-Type" content="text/html; charset=' + value + '" />\n';
+
+ if (value = editor.getParam('fullpage_default_font_family'))
+ styles += 'font-family: ' + value + ';';
+
+ if (value = editor.getParam('fullpage_default_font_size'))
+ styles += 'font-size: ' + value + ';';
+
+ if (value = editor.getParam('fullpage_default_text_color'))
+ styles += 'color: ' + value + ';';
+
+ header += '</head>\n<body' + (styles ? ' style="' + styles + '"' : '') + '>\n';
+
+ return header;
+ },
+
+ _getContent : function(ed, o) {
+ var self = this;
+
+ if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view'))
+ o.content = tinymce.trim(self.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(self.foot);
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('fullpage', tinymce.plugins.FullPagePlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/fullpage.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/fullpage.htm
new file mode 100755
index 00000000..14ab8652
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/fullpage.htm
@@ -0,0 +1,259 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#fullpage_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="js/fullpage.js"></script>
+ <link href="css/fullpage.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="fullpage" style="display: none">
+<form onsubmit="FullPageDialog.update();return false;" name="fullpage" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="meta_tab" class="current"><span><a href="javascript:mcTabs.displayTab('meta_tab','meta_panel');" onmousedown="return false;">{#fullpage_dlg.meta_tab}</a></span></li>
+ <li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#fullpage_dlg.appearance_tab}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="meta_panel" class="panel current">
+ <fieldset>
+ <legend>{#fullpage_dlg.meta_props}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="nowrap"><label for="metatitle">{#fullpage_dlg.meta_title}</label>&nbsp;</td>
+ <td><input type="text" id="metatitle" name="metatitle" value="" class="mceFocus" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="metakeywords">{#fullpage_dlg.meta_keywords}</label>&nbsp;</td>
+ <td><textarea id="metakeywords" name="metakeywords" rows="4"></textarea></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="metadescription">{#fullpage_dlg.meta_description}</label>&nbsp;</td>
+ <td><textarea id="metadescription" name="metadescription" rows="4"></textarea></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="metaauthor">{#fullpage_dlg.author}</label>&nbsp;</td>
+ <td><input type="text" id="metaauthor" name="metaauthor" value="" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="metacopyright">{#fullpage_dlg.copyright}</label>&nbsp;</td>
+ <td><input type="text" id="metacopyright" name="metacopyright" value="" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="metarobots">{#fullpage_dlg.meta_robots}</label>&nbsp;</td>
+ <td>
+ <select id="metarobots" name="metarobots">
+ <option value="">{#not_set}</option>
+ <option value="index,follow">{#fullpage_dlg.meta_index_follow}</option>
+ <option value="index,nofollow">{#fullpage_dlg.meta_index_nofollow}</option>
+ <option value="noindex,follow">{#fullpage_dlg.meta_noindex_follow}</option>
+ <option value="noindex,nofollow">{#fullpage_dlg.meta_noindex_nofollow}</option>
+ </select>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#fullpage_dlg.langprops}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label for="docencoding">{#fullpage_dlg.encoding}</label></td>
+ <td>
+ <select id="docencoding" name="docencoding">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="doctype">{#fullpage_dlg.doctypes}</label>&nbsp;</td>
+ <td>
+ <select id="doctype" name="doctype">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="langcode">{#fullpage_dlg.langcode}</label>&nbsp;</td>
+ <td><input type="text" id="langcode" name="langcode" value="" /></td>
+ </tr>
+ <tr>
+ <td class="column1"><label for="langdir">{#fullpage_dlg.langdir}</label></td>
+ <td>
+ <select id="langdir" name="langdir">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#fullpage_dlg.ltr}</option>
+ <option value="rtl">{#fullpage_dlg.rtl}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="xml_pi">{#fullpage_dlg.xml_pi}</label>&nbsp;</td>
+ <td><input type="checkbox" id="xml_pi" name="xml_pi" class="checkbox" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="appearance_panel" class="panel">
+ <fieldset>
+ <legend>{#fullpage_dlg.appearance_textprops}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label for="fontface">{#fullpage_dlg.fontface}</label></td>
+ <td>
+ <select id="fontface" name="fontface" onchange="FullPageDialog.changedStyleProp();">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="fontsize">{#fullpage_dlg.fontsize}</label></td>
+ <td>
+ <select id="fontsize" name="fontsize" onchange="FullPageDialog.changedStyleProp();">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="textcolor">{#fullpage_dlg.textcolor}</label></td>
+ <td>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="textcolor" name="textcolor" type="text" value="" size="9" onchange="updateColor('textcolor_pick','textcolor');FullPageDialog.changedStyleProp();" /></td>
+ <td id="textcolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#fullpage_dlg.appearance_bgprops}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label for="bgimage">{#fullpage_dlg.bgimage}</label></td>
+ <td>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bgimage" name="bgimage" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
+ <td id="bgimage_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class="column1"><label for="bgcolor">{#fullpage_dlg.bgcolor}</label></td>
+ <td>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');FullPageDialog.changedStyleProp();" /></td>
+ <td id="bgcolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#fullpage_dlg.appearance_marginprops}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label for="leftmargin">{#fullpage_dlg.left_margin}</label></td>
+ <td><input id="leftmargin" name="leftmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
+ <td class="column1"><label for="rightmargin">{#fullpage_dlg.right_margin}</label></td>
+ <td><input id="rightmargin" name="rightmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
+ </tr>
+ <tr>
+ <td class="column1"><label for="topmargin">{#fullpage_dlg.top_margin}</label></td>
+ <td><input id="topmargin" name="topmargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
+ <td class="column1"><label for="bottommargin">{#fullpage_dlg.bottom_margin}</label></td>
+ <td><input id="bottommargin" name="bottommargin" type="text" value="" onchange="FullPageDialog.changedStyleProp();" /></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#fullpage_dlg.appearance_linkprops}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label for="link_color">{#fullpage_dlg.link_color}</label></td>
+ <td>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="link_color" name="link_color" type="text" value="" size="9" onchange="updateColor('link_color_pick','link_color');FullPageDialog.changedStyleProp();" /></td>
+ <td id="link_color_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+
+ <td class="column1"><label for="visited_color">{#fullpage_dlg.visited_color}</label></td>
+ <td>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="visited_color" name="visited_color" type="text" value="" size="9" onchange="updateColor('visited_color_pick','visited_color');FullPageDialog.changedStyleProp();" /></td>
+ <td id="visited_color_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="active_color">{#fullpage_dlg.active_color}</label></td>
+ <td>
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="active_color" name="active_color" type="text" value="" size="9" onchange="updateColor('active_color_pick','active_color');FullPageDialog.changedStyleProp();" /></td>
+ <td id="active_color_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#fullpage_dlg.appearance_style}</legend>
+
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="column1"><label for="stylesheet">{#fullpage_dlg.stylesheet}</label></td>
+ <td><table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="stylesheet" name="stylesheet" type="text" value="" /></td>
+ <td id="stylesheet_browsercontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td class="column1"><label for="style">{#fullpage_dlg.style}</label></td>
+ <td><input id="style" name="style" type="text" value="" onchange="FullPageDialog.changedStyle();" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="update" value="{#update}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/js/fullpage.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/js/fullpage.js
new file mode 100644
index 00000000..3f672ad3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/js/fullpage.js
@@ -0,0 +1,232 @@
+/**
+ * fullpage.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinyMCEPopup.requireLangPack();
+
+ var defaultDocTypes =
+ 'XHTML 1.0 Transitional=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">,' +
+ 'XHTML 1.0 Frameset=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">,' +
+ 'XHTML 1.0 Strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">,' +
+ 'XHTML 1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">,' +
+ 'HTML 4.01 Transitional=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">,' +
+ 'HTML 4.01 Strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">,' +
+ 'HTML 4.01 Frameset=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';
+
+ var defaultEncodings =
+ 'Western european (iso-8859-1)=iso-8859-1,' +
+ 'Central European (iso-8859-2)=iso-8859-2,' +
+ 'Unicode (UTF-8)=utf-8,' +
+ 'Chinese traditional (Big5)=big5,' +
+ 'Cyrillic (iso-8859-5)=iso-8859-5,' +
+ 'Japanese (iso-2022-jp)=iso-2022-jp,' +
+ 'Greek (iso-8859-7)=iso-8859-7,' +
+ 'Korean (iso-2022-kr)=iso-2022-kr,' +
+ 'ASCII (us-ascii)=us-ascii';
+
+ var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings';
+ var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px';
+
+ function setVal(id, value) {
+ var elm = document.getElementById(id);
+
+ if (elm) {
+ value = value || '';
+
+ if (elm.nodeName == "SELECT")
+ selectByValue(document.forms[0], id, value);
+ else if (elm.type == "checkbox")
+ elm.checked = !!value;
+ else
+ elm.value = value;
+ }
+ };
+
+ function getVal(id) {
+ var elm = document.getElementById(id);
+
+ if (elm.nodeName == "SELECT")
+ return elm.options[elm.selectedIndex].value;
+
+ if (elm.type == "checkbox")
+ return elm.checked;
+
+ return elm.value;
+ };
+
+ window.FullPageDialog = {
+ changedStyle : function() {
+ var val, styles = tinyMCEPopup.editor.dom.parseStyle(getVal('style'));
+
+ setVal('fontface', styles['font-face']);
+ setVal('fontsize', styles['font-size']);
+ setVal('textcolor', styles['color']);
+
+ if (val = styles['background-image'])
+ setVal('bgimage', val.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"));
+ else
+ setVal('bgimage', '');
+
+ setVal('bgcolor', styles['background-color']);
+
+ // Reset margin form elements
+ setVal('topmargin', '');
+ setVal('rightmargin', '');
+ setVal('bottommargin', '');
+ setVal('leftmargin', '');
+
+ // Expand margin
+ if (val = styles['margin']) {
+ val = val.split(' ');
+ styles['margin-top'] = val[0] || '';
+ styles['margin-right'] = val[1] || val[0] || '';
+ styles['margin-bottom'] = val[2] || val[0] || '';
+ styles['margin-left'] = val[3] || val[0] || '';
+ }
+
+ if (val = styles['margin-top'])
+ setVal('topmargin', val.replace(/px/, ''));
+
+ if (val = styles['margin-right'])
+ setVal('rightmargin', val.replace(/px/, ''));
+
+ if (val = styles['margin-bottom'])
+ setVal('bottommargin', val.replace(/px/, ''));
+
+ if (val = styles['margin-left'])
+ setVal('leftmargin', val.replace(/px/, ''));
+
+ updateColor('bgcolor_pick', 'bgcolor');
+ updateColor('textcolor_pick', 'textcolor');
+ },
+
+ changedStyleProp : function() {
+ var val, dom = tinyMCEPopup.editor.dom, styles = dom.parseStyle(getVal('style'));
+
+ styles['font-face'] = getVal('fontface');
+ styles['font-size'] = getVal('fontsize');
+ styles['color'] = getVal('textcolor');
+ styles['background-color'] = getVal('bgcolor');
+
+ if (val = getVal('bgimage'))
+ styles['background-image'] = "url('" + val + "')";
+ else
+ styles['background-image'] = '';
+
+ delete styles['margin'];
+
+ if (val = getVal('topmargin'))
+ styles['margin-top'] = val + "px";
+ else
+ styles['margin-top'] = '';
+
+ if (val = getVal('rightmargin'))
+ styles['margin-right'] = val + "px";
+ else
+ styles['margin-right'] = '';
+
+ if (val = getVal('bottommargin'))
+ styles['margin-bottom'] = val + "px";
+ else
+ styles['margin-bottom'] = '';
+
+ if (val = getVal('leftmargin'))
+ styles['margin-left'] = val + "px";
+ else
+ styles['margin-left'] = '';
+
+ // Serialize, parse and reserialize this will compress redundant styles
+ setVal('style', dom.serializeStyle(dom.parseStyle(dom.serializeStyle(styles))));
+ this.changedStyle();
+ },
+
+ update : function() {
+ var data = {};
+
+ tinymce.each(tinyMCEPopup.dom.select('select,input,textarea'), function(node) {
+ data[node.id] = getVal(node.id);
+ });
+
+ tinyMCEPopup.editor.plugins.fullpage._dataToHtml(data);
+ tinyMCEPopup.close();
+ }
+ };
+
+ function init() {
+ var form = document.forms[0], i, item, list, editor = tinyMCEPopup.editor;
+
+ // Setup doctype select box
+ list = editor.getParam("fullpage_doctypes", defaultDocTypes).split(',');
+ for (i = 0; i < list.length; i++) {
+ item = list[i].split('=');
+
+ if (item.length > 1)
+ addSelectValue(form, 'doctype', item[0], item[1]);
+ }
+
+ // Setup fonts select box
+ list = editor.getParam("fullpage_fonts", defaultFontNames).split(';');
+ for (i = 0; i < list.length; i++) {
+ item = list[i].split('=');
+
+ if (item.length > 1)
+ addSelectValue(form, 'fontface', item[0], item[1]);
+ }
+
+ // Setup fontsize select box
+ list = editor.getParam("fullpage_fontsizes", defaultFontSizes).split(',');
+ for (i = 0; i < list.length; i++)
+ addSelectValue(form, 'fontsize', list[i], list[i]);
+
+ // Setup encodings select box
+ list = editor.getParam("fullpage_encodings", defaultEncodings).split(',');
+ for (i = 0; i < list.length; i++) {
+ item = list[i].split('=');
+
+ if (item.length > 1)
+ addSelectValue(form, 'docencoding', item[0], item[1]);
+ }
+
+ // Setup color pickers
+ document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
+ document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color');
+ document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color');
+ document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color');
+ document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor');
+ document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage');
+ document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage');
+
+ // Resize some elements
+ if (isVisible('stylesheetbrowser'))
+ document.getElementById('stylesheet').style.width = '220px';
+
+ if (isVisible('link_href_browser'))
+ document.getElementById('element_link_href').style.width = '230px';
+
+ if (isVisible('bgimage_browser'))
+ document.getElementById('bgimage').style.width = '210px';
+
+ // Update form
+ tinymce.each(tinyMCEPopup.getWindowArg('data'), function(value, key) {
+ setVal(key, value);
+ });
+
+ FullPageDialog.changedStyle();
+
+ // Update colors
+ updateColor('textcolor_pick', 'textcolor');
+ updateColor('bgcolor_pick', 'bgcolor');
+ updateColor('visited_color_pick', 'visited_color');
+ updateColor('active_color_pick', 'active_color');
+ updateColor('link_color_pick', 'link_color');
+ };
+
+ tinyMCEPopup.onInit.add(init);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/de_dlg.js
new file mode 100644
index 00000000..ecdff9ed
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.fullpage_dlg',{title:"Dokument-Eigenschaften","meta_tab":"Allgemein","appearance_tab":"Aussehen","advanced_tab":"Erweitert","meta_props":"Meta-Information",langprops:"Sprache und Codierung","meta_title":"Titel","meta_keywords":"Keywords","meta_description":"Beschreibung","meta_robots":"Robots",doctypes:"DocType",langcode:"Sprachcode",langdir:"Sprachrichtung",ltr:"Links nach Rechts",rtl:"Rechts nach Links","xml_pi":"XML Deklaration",encoding:"Zeichencodierung","appearance_bgprops":"Hintergrund-Eigenschaften","appearance_marginprops":"Abst\u00e4nde des Body","appearance_linkprops":"Linkfarben","appearance_textprops":"Text-Eigenschaften",bgcolor:"Hintergrundfarbe",bgimage:"Hintergrundbild","left_margin":"Linker Abstand","right_margin":"Rechter Abstand","top_margin":"Oberer Abstand","bottom_margin":"Unterer Abstand","text_color":"Textfarbe","font_size":"Schriftgr\u00f6\u00dfe","font_face":"Schriftart","link_color":"Linkfarbe","hover_color":"Hover-Farbe","visited_color":"Visited-Farbe","active_color":"Active-Farbe",textcolor:"Farbe",fontsize:"Schriftgr\u00f6\u00dfe",fontface:"Schriftart","meta_index_follow":"Indizieren und den Links folgen","meta_index_nofollow":"Indizieren, aber den Links nicht folgen","meta_noindex_follow":"Nicht indizieren, aber den Links folgen","meta_noindex_nofollow":"Nicht indizieren und auch nicht den Links folgen","appearance_style":"CSS-Stylesheet und Stileigenschaften",stylesheet:"CSS-Stylesheet",style:"CSS-Stil",author:"Autor",copyright:"Copyright",add:"Neues Element hinzuf\u00fcgen",remove:"Ausgew\u00e4hltes Element entfernen",moveup:"Ausgew\u00e4hltes Element nach oben bewegen",movedown:"Ausgew\u00e4hltes Element nach unten bewegen","head_elements":"\u00dcberschriftenelemente",info:"Information","add_title":"Titel-Element","add_meta":"Meta-Element","add_script":"Script-Element","add_style":"Style-Element","add_link":"Link-Element","add_base":"Base-Element","add_comment":"HTML-Kommentar","title_element":"Titel-Element","script_element":"Script-Element","style_element":"Style-Element","base_element":"Base-Element","link_element":"Link-Element","meta_element":"Meta_Element","comment_element":"Kommentar",src:"Src",language:"Sprache",href:"Href",target:"Ziel",type:"Typ",charset:"Zeichensatz",defer:"Defer",media:"Media",properties:"Eigenschaften",name:"Name",value:"Wert",content:"Inhalt",rel:"Rel",rev:"Rev",hreflang:"Href lang","general_props":"Allgemein","advanced_props":"Erweitert"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/en_dlg.js
new file mode 100644
index 00000000..516edc74
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.fullpage_dlg',{title:"Document Properties","meta_tab":"General","appearance_tab":"Appearance","advanced_tab":"Advanced","meta_props":"Meta Information",langprops:"Language and Encoding","meta_title":"Title","meta_keywords":"Keywords","meta_description":"Description","meta_robots":"Robots",doctypes:"Doctype",langcode:"Language Code",langdir:"Language Direction",ltr:"Left to Right",rtl:"Right to Left","xml_pi":"XML Declaration",encoding:"Character Encoding","appearance_bgprops":"Background Properties","appearance_marginprops":"Body Margins","appearance_linkprops":"Link Colors","appearance_textprops":"Text Properties",bgcolor:"Background Color",bgimage:"Background Image","left_margin":"Left Margin","right_margin":"Right Margin","top_margin":"Top Margin","bottom_margin":"Bottom Margin","text_color":"Text Color","font_size":"Font Size","font_face":"Font Face","link_color":"Link Color","hover_color":"Hover Color","visited_color":"Visited Color","active_color":"Active Color",textcolor:"Color",fontsize:"Font Size",fontface:"Font Family","meta_index_follow":"Index and Follow the Links","meta_index_nofollow":"Index and Don\'t Follow the Links","meta_noindex_follow":"Do Not Index but Follow the Links","meta_noindex_nofollow":"Do Not Index and Don\'t Follow the Links","appearance_style":"Stylesheet and Style Properties",stylesheet:"Stylesheet",style:"Style",author:"Author",copyright:"Copyright",add:"Add New Element",remove:"Remove Selected Element",moveup:"Move Selected Element Up",movedown:"Move Selected Element Down","head_elements":"Head Elements",info:"Information","add_title":"Title Element","add_meta":"Meta Element","add_script":"Script Element","add_style":"Style Element","add_link":"Link Element","add_base":"Base Element","add_comment":"Comment Node","title_element":"Title Element","script_element":"Script Element","style_element":"Style Element","base_element":"Base Element","link_element":"Link Element","meta_element":"Meta Element","comment_element":"Comment",src:"Source",language:"Language",href:"HREF",target:"Target",type:"Type",charset:"Charset",defer:"Defer",media:"Media",properties:"Properties",name:"Name",value:"Value",content:"Content",rel:"Rel",rev:"Rev",hreflang:"HREF Lang","general_props":"General","advanced_props":"Advanced"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/hu_dlg.js
new file mode 100644
index 00000000..e9f911e3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.fullpage_dlg',{title:"Dokumentum tulajdons\u00e1gai","meta_tab":"\u00c1ltal\u00e1nos","appearance_tab":"Megjelen\u00e9s","advanced_tab":"Halad\u00f3","meta_props":"Meta inform\u00e1ci\u00f3",langprops:"Nyelv \u00e9s k\u00f3dol\u00e1s","meta_title":"C\u00edm","meta_keywords":"Kulcsszavak","meta_description":"Le\u00edr\u00e1s","meta_robots":"Robotok",doctypes:"Dokumentum t\u00edpus",langcode:"Nyelvk\u00f3d",langdir:"\u00cdr\u00e1s ir\u00e1nya",ltr:"Balr\u00f3l jobra",rtl:"Jobbr\u00f3l balra","xml_pi":"XML deklar\u00e1ci\u00f3",encoding:"Karakterk\u00f3dol\u00e1s","appearance_bgprops":"H\u00e1tt\u00e9r tulajdons\u00e1gai","appearance_marginprops":"Body marg\u00f3k","appearance_linkprops":"Link sz\u00ednek","appearance_textprops":"Sz\u00f6veg tulajdons\u00e1gai",bgcolor:"H\u00e1tt\u00e9rsz\u00edn",bgimage:"H\u00e1tt\u00e9rk\u00e9p","left_margin":"Bal marg\u00f3","right_margin":"Jobb marg\u00f3","top_margin":"Fels\u0151 marg\u00f3","bottom_margin":"Als\u00f3 marg\u00f3","text_color":"Sz\u00f6vegsz\u00edn","font_size":"Bet\u0171m\u00e9ret","font_face":"Bet\u0171t\u00edpus","link_color":"Link sz\u00edn","hover_color":"Sz\u00edn eg\u00e9r fel\u00e9vitelekor","visited_color":"Sz\u00edn, ha l\u00e1togatott","active_color":"Akt\u00edv sz\u00edn",textcolor:"Sz\u00edn",fontsize:"Bet\u0171m\u00e9ret",fontface:"Bet\u0171 csal\u00e1d","meta_index_follow":"Linkek indexel\u00e9se \u00e9s k\u00f6vet\u00e9se","meta_index_nofollow":"Indexel, de nem k\u00f6veti a linkeket","meta_noindex_follow":"Nincs indexel\u00e9s, de van link-k\u00f6vet\u00e9s","meta_noindex_nofollow":"Nem indexel \u00e9s nem k\u00f6veti a linkeket","appearance_style":"Stylesheet \u00e9s style tulajdons\u00e1gok",stylesheet:"St\u00edluslap",style:"St\u00edlus",author:"Szerz\u0151",copyright:"Copyright",add:"\u00daj elem hozz\u00e1ad\u00e1sa",remove:"Kijel\u00f6lt elem t\u00f6rl\u00e9se",moveup:"Kijel\u00f6lt elem felfel\u00e9 mozgat\u00e1sa",movedown:"Kijel\u00f6lt elem lefel\u00e9 mozgat\u00e1sa","head_elements":"Fej elemek",info:"Inform\u00e1ci\u00f3","add_title":"C\u00edm elem","add_meta":"Meta elem","add_script":"Script elem","add_style":"Style elem","add_link":"Link elem","add_base":"Base elem","add_comment":"Comment elem","title_element":"Title elem","script_element":"Script elem","style_element":"Style elem","base_element":"Base elem","link_element":"Link elem","meta_element":"Meta elem","comment_element":"Megjegyz\u00e9s",src:"Forr\u00e1s",language:"Nyelv",href:"HREF",target:"C\u00e9l",type:"T\u00edpus",charset:"Charset",defer:"Defer",media:"M\u00e9dia",properties:"Tulajdons\u00e1gok",name:"N\u00e9v",value:"\u00c9rt\u00e9k",content:"Tartalom",rel:"Rel",rev:"Rev",hreflang:"HREF nyelv","general_props":"\u00c1ltal\u00e1nos","advanced_props":"Halad\u00f3"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/ja_dlg.js
new file mode 100644
index 00000000..65643630
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullpage/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.fullpage_dlg',{title:"\u30da\u30fc\u30b8\u306e\u5c5e\u6027","meta_tab":"\u4e00\u822c","appearance_tab":"\u8868\u793a","advanced_tab":"\u9ad8\u5ea6\u306a\u8a2d\u5b9a","meta_props":"\u30e1\u30bf\u60c5\u5831",langprops:"\u8a00\u8a9e\u3068\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0","meta_title":"\u30bf\u30a4\u30c8\u30eb","meta_keywords":"\u30ad\u30fc\u30ef\u30fc\u30c9","meta_description":"\u8aac\u660e","meta_robots":"\u691c\u7d22\u30ed\u30dc\u30c3\u30c8\u306e\u5236\u5fa1",doctypes:"\u6587\u66f8\u578b",langcode:"\u8a00\u8a9e\u30b3\u30fc\u30c9",langdir:"\u6587\u7ae0\u306e\u65b9\u5411",ltr:"\u5de6\u304b\u3089\u53f3",rtl:"\u53f3\u304b\u3089\u5de6","xml_pi":"XML\u5ba3\u8a00",encoding:"\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0","appearance_bgprops":"\u80cc\u666f\u306e\u5c5e\u6027","appearance_marginprops":"Body\u306e\u4f59\u767d","appearance_linkprops":"\u30ea\u30f3\u30af\u306e\u8272","appearance_textprops":"\u6587\u5b57\u306e\u5c5e\u6027",bgcolor:"\u80cc\u666f\u306e\u8272",bgimage:"\u80cc\u666f\u306e\u753b\u50cf","left_margin":"\u5de6\u306e\u4f59\u767d","right_margin":"\u53f3\u306e\u4f59\u767d","top_margin":"\u4e0a\u306e\u4f59\u767d","bottom_margin":"\u4e0b\u306e\u4f59\u767d","text_color":"\u6587\u5b57\u306e\u8272","font_size":"\u6587\u5b57\u306e\u5927\u304d\u3055","font_face":"\u30d5\u30a9\u30f3\u30c8","link_color":"\u30ea\u30f3\u30af\u306e\u8272","hover_color":"\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u3042\u308b\u30ea\u30f3\u30af\u306e\u8272(hover)","visited_color":"\u65e2\u306b\u8aad\u3093\u3060\u30ea\u30f3\u30af\u306e\u8272(visited)","active_color":"\u30af\u30ea\u30c3\u30af\u3057\u305f\u77ac\u9593\u306e\u30ea\u30f3\u30af\u306e\u8272(active)",textcolor:"\u8272",fontsize:"\u6587\u5b57\u306e\u5927\u304d\u3055",fontface:"\u30d5\u30a9\u30f3\u30c8","meta_index_follow":"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u4f7f\u7528\u3057\u3066\u30ea\u30f3\u30af\u3092\u305f\u3069\u308b","meta_index_nofollow":"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u4f7f\u7528\u3057\u3066\u30ea\u30f3\u30af\u306f\u305f\u3069\u3089\u306a\u3044","meta_noindex_follow":"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u4f7f\u7528\u3057\u306a\u3044\u304c\u30ea\u30f3\u30af\u3092\u305f\u3069\u308b","meta_noindex_nofollow":"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u4f7f\u7528\u3057\u306a\u3044\u3067\u30ea\u30f3\u30af\u3082\u305f\u3069\u3089\u306a\u3044","appearance_style":"\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3068\u30b9\u30bf\u30a4\u30eb\u306e\u5c5e\u6027",stylesheet:"\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8",style:"\u30b9\u30bf\u30a4\u30eb",author:"\u4f5c\u6210\u8005",copyright:"\u8457\u4f5c\u6a29",add:"\u65b0\u3057\u304f\u8981\u7d20\u3092\u8ffd\u52a0",remove:"\u9078\u629e\u3057\u305f\u8981\u7d20\u3092\u524a\u9664",moveup:"\u9078\u629e\u3057\u305f\u8981\u7d20\u3092\u4e0a\u306b\u79fb\u52d5",movedown:"\u9078\u629e\u3057\u305f\u8981\u7d20\u3092\u4e0b\u306b\u79fb\u52d5","head_elements":"Head\u8981\u7d20",info:"\u60c5\u5831","add_title":"Title\u8981\u7d20","add_meta":"Meta\u8981\u7d20","add_script":"Script\u8981\u7d20","add_style":"Style\u8981\u7d20","add_link":"Link\u8981\u7d20","add_base":"Base\u8981\u7d20","add_comment":"Comment\u30ce\u30fc\u30c9","title_element":"Title\u8981\u7d20","script_element":"Script\u8981\u7d20","style_element":"Style\u8981\u7d20","base_element":"Base\u8981\u7d20","link_element":"Link\u8981\u7d20","meta_element":"Meta\u8981\u7d20","comment_element":"\u30b3\u30e1\u30f3\u30c8",src:"src",language:"\u8a00\u8a9e",href:"Href",target:"Target",type:"Type",charset:"Charset",defer:"Defer",media:"Media",properties:"Properties",name:"Name",value:"Value",content:"Content",rel:"Rel",rev:"Rev",hreflang:"Href\u306e\u8a00\u8a9e","general_props":"\u4e00\u822c","advanced_props":"\u8a73\u7d30\u306a\u8a2d\u5b9a"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin.js
new file mode 100755
index 00000000..a2eb0348
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent());tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6||document.compatMode=="BackCompat"){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent());d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().getElementsByTagName("table")[0]);m=l.dom.getSize(l.getContainer().getElementsByTagName("iframe")[0]);l.theme.resizeTo(o.w-k.w+m.w,o.h-k.h+m.h)})}});d.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});d.onNodeChange.add(function(i,h){h.setActive("fullscreen",i.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin_src.js
new file mode 100755
index 00000000..524b487a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/editor_plugin_src.js
@@ -0,0 +1,159 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var DOM = tinymce.DOM;
+
+ tinymce.create('tinymce.plugins.FullScreenPlugin', {
+ init : function(ed, url) {
+ var t = this, s = {}, vp, posCss;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceFullScreen', function() {
+ var win, de = DOM.doc.documentElement;
+
+ if (ed.getParam('fullscreen_is_enabled')) {
+ if (ed.getParam('fullscreen_new_window'))
+ closeFullscreen(); // Call to close in new window
+ else {
+ DOM.win.setTimeout(function() {
+ tinymce.dom.Event.remove(DOM.win, 'resize', t.resizeFunc);
+ tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent());
+ tinyMCE.remove(ed);
+ DOM.remove('mce_fullscreen_container');
+ de.style.overflow = ed.getParam('fullscreen_html_overflow');
+ DOM.setStyle(DOM.doc.body, 'overflow', ed.getParam('fullscreen_overflow'));
+ DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'), ed.getParam('fullscreen_scrolly'));
+ tinyMCE.settings = tinyMCE.oldSettings; // Restore old settings
+ }, 10);
+ }
+
+ return;
+ }
+
+ if (ed.getParam('fullscreen_new_window')) {
+ win = DOM.win.open(url + "/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
+ try {
+ win.resizeTo(screen.availWidth, screen.availHeight);
+ } catch (e) {
+ // Ignore
+ }
+ } else {
+ tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
+ s.fullscreen_overflow = DOM.getStyle(DOM.doc.body, 'overflow', 1) || 'auto';
+ s.fullscreen_html_overflow = DOM.getStyle(de, 'overflow', 1);
+ vp = DOM.getViewPort();
+ s.fullscreen_scrollx = vp.x;
+ s.fullscreen_scrolly = vp.y;
+
+ // Fixes an Opera bug where the scrollbars doesn't reappear
+ if (tinymce.isOpera && s.fullscreen_overflow == 'visible')
+ s.fullscreen_overflow = 'auto';
+
+ // Fixes an IE bug where horizontal scrollbars would appear
+ if (tinymce.isIE && s.fullscreen_overflow == 'scroll')
+ s.fullscreen_overflow = 'auto';
+
+ // Fixes an IE bug where the scrollbars doesn't reappear
+ if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll'))
+ s.fullscreen_html_overflow = 'auto';
+
+ if (s.fullscreen_overflow == '0px')
+ s.fullscreen_overflow = '';
+
+ DOM.setStyle(DOM.doc.body, 'overflow', 'hidden');
+ de.style.overflow = 'hidden'; //Fix for IE6/7
+ vp = DOM.getViewPort();
+ DOM.win.scrollTo(0, 0);
+
+ if (tinymce.isIE)
+ vp.h -= 1;
+
+ // Use fixed position if it exists
+ if (tinymce.isIE6 || document.compatMode == 'BackCompat')
+ posCss = 'absolute;top:' + vp.y;
+ else
+ posCss = 'fixed;top:0';
+
+ n = DOM.add(DOM.doc.body, 'div', {
+ id : 'mce_fullscreen_container',
+ style : 'position:' + posCss + ';left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'});
+ DOM.add(n, 'div', {id : 'mce_fullscreen'});
+
+ tinymce.each(ed.settings, function(v, n) {
+ s[n] = v;
+ });
+
+ s.id = 'mce_fullscreen';
+ s.width = n.clientWidth;
+ s.height = n.clientHeight - 15;
+ s.fullscreen_is_enabled = true;
+ s.fullscreen_editor_id = ed.id;
+ s.theme_advanced_resizing = false;
+ s.save_onsavecallback = function() {
+ ed.setContent(tinyMCE.get(s.id).getContent());
+ ed.execCommand('mceSave');
+ };
+
+ tinymce.each(ed.getParam('fullscreen_settings'), function(v, k) {
+ s[k] = v;
+ });
+
+ if (s.theme_advanced_toolbar_location === 'external')
+ s.theme_advanced_toolbar_location = 'top';
+
+ t.fullscreenEditor = new tinymce.Editor('mce_fullscreen', s);
+ t.fullscreenEditor.onInit.add(function() {
+ t.fullscreenEditor.setContent(ed.getContent());
+ t.fullscreenEditor.focus();
+ });
+
+ t.fullscreenEditor.render();
+
+ t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
+ t.fullscreenElement.update();
+ //document.body.overflow = 'hidden';
+
+ t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() {
+ var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
+
+ // Get outer/inner size to get a delta size that can be used to calc the new iframe size
+ outerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('table')[0]);
+ innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
+
+ fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
+ });
+ }
+ });
+
+ // Register buttons
+ ed.addButton('fullscreen', {title : 'fullscreen.desc', cmd : 'mceFullScreen'});
+
+ ed.onNodeChange.add(function(ed, cm) {
+ cm.setActive('fullscreen', ed.getParam('fullscreen_is_enabled'));
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Fullscreen',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('fullscreen', tinymce.plugins.FullScreenPlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/fullscreen.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/fullscreen.htm
new file mode 100755
index 00000000..ffe528e4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/fullscreen/fullscreen.htm
@@ -0,0 +1,110 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title></title>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <script type="text/javascript" src="../../tiny_mce.js"></script>
+ <script type="text/javascript">
+ function patchCallback(settings, key) {
+ if (settings[key])
+ settings[key] = "window.opener." + settings[key];
+ }
+
+ var settings = {}, paSe = window.opener.tinyMCE.activeEditor.settings, oeID = window.opener.tinyMCE.activeEditor.id;
+
+ // Clone array
+ for (var n in paSe)
+ settings[n] = paSe[n];
+
+ // Override options for fullscreen
+ for (var n in paSe.fullscreen_settings)
+ settings[n] = paSe.fullscreen_settings[n];
+
+ // Patch callbacks, make them point to window.opener
+ patchCallback(settings, 'urlconverter_callback');
+ patchCallback(settings, 'insertlink_callback');
+ patchCallback(settings, 'insertimage_callback');
+ patchCallback(settings, 'setupcontent_callback');
+ patchCallback(settings, 'save_callback');
+ patchCallback(settings, 'onchange_callback');
+ patchCallback(settings, 'init_instance_callback');
+ patchCallback(settings, 'file_browser_callback');
+ patchCallback(settings, 'cleanup_callback');
+ patchCallback(settings, 'execcommand_callback');
+ patchCallback(settings, 'oninit');
+
+ // Set options
+ delete settings.id;
+ settings['mode'] = 'exact';
+ settings['elements'] = 'fullscreenarea';
+ settings['add_unload_trigger'] = false;
+ settings['ask'] = false;
+ settings['document_base_url'] = window.opener.tinyMCE.activeEditor.documentBaseURI.getURI();
+ settings['fullscreen_is_enabled'] = true;
+ settings['fullscreen_editor_id'] = oeID;
+ settings['theme_advanced_resizing'] = false;
+ settings['strict_loading_mode'] = true;
+
+ settings.save_onsavecallback = function() {
+ window.opener.tinyMCE.get(oeID).setContent(tinyMCE.get('fullscreenarea').getContent({format : 'raw'}), {format : 'raw'});
+ window.opener.tinyMCE.get(oeID).execCommand('mceSave');
+ window.close();
+ };
+
+ function unloadHandler(e) {
+ moveContent();
+ }
+
+ function moveContent() {
+ window.opener.tinyMCE.get(oeID).setContent(tinyMCE.activeEditor.getContent());
+ }
+
+ function closeFullscreen() {
+ moveContent();
+ window.close();
+ }
+
+ function doParentSubmit() {
+ moveContent();
+
+ if (window.opener.tinyMCE.selectedInstance.formElement.form)
+ window.opener.tinyMCE.selectedInstance.formElement.form.submit();
+
+ window.close();
+
+ return false;
+ }
+
+ function render() {
+ var e = document.getElementById('fullscreenarea'), vp, ed, ow, oh, dom = tinymce.DOM;
+
+ e.value = window.opener.tinyMCE.get(oeID).getContent();
+
+ vp = dom.getViewPort();
+ settings.width = vp.w;
+ settings.height = vp.h - 15;
+
+ tinymce.dom.Event.add(window, 'resize', function() {
+ var vp = dom.getViewPort();
+
+ tinyMCE.activeEditor.theme.resizeTo(vp.w, vp.h);
+ });
+
+ tinyMCE.init(settings);
+ }
+
+ // Add onunload
+ tinymce.dom.Event.add(window, "beforeunload", unloadHandler);
+ </script>
+</head>
+<body style="margin:0;overflow:hidden;width:100%;height:100%" scrolling="no" scroll="no">
+<form onsubmit="doParentSubmit();">
+<textarea id="fullscreenarea" style="width:100%; height:100%"></textarea>
+</form>
+
+<script type="text/javascript">
+ render();
+</script>
+
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin.js
new file mode 100755
index 00000000..e9cba106
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin_src.js
new file mode 100755
index 00000000..1b2bb984
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/iespell/editor_plugin_src.js
@@ -0,0 +1,54 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.IESpell', {
+ init : function(ed, url) {
+ var t = this, sp;
+
+ if (!tinymce.isIE)
+ return;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceIESpell', function() {
+ try {
+ sp = new ActiveXObject("ieSpell.ieSpellExtension");
+ sp.CheckDocumentNode(ed.getDoc().documentElement);
+ } catch (e) {
+ if (e.number == -2146827859) {
+ ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) {
+ if (s)
+ window.open('http://www.iespell.com/download.php', 'ieSpellDownload', '');
+ });
+ } else
+ ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number);
+ }
+ });
+
+ // Register buttons
+ ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'IESpell (IE Only)',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin.js
new file mode 100755
index 00000000..8bb96f9c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(s,j){var z=this,i,k="",r=z.editor,g=0,v=0,h,m,o,q,l,x,y,n;s=s||{};j=j||{};if(!s.inline){return z.parent(s,j)}n=z._frontWindow();if(n&&d.get(n.id+"_ifr")){n.focussedElement=d.get(n.id+"_ifr").contentWindow.document.activeElement}if(!s.type){z.bookmark=r.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();s.width=parseInt(s.width||320);s.height=parseInt(s.height||240)+(tinymce.isIE?8:0);s.min_width=parseInt(s.min_width||150);s.min_height=parseInt(s.min_height||100);s.max_width=parseInt(s.max_width||2000);s.max_height=parseInt(s.max_height||2000);s.left=s.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(s.width/2)));s.top=s.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(s.height/2)));s.movable=s.resizable=true;j.mce_width=s.width;j.mce_height=s.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=s.auto_focus;z.features=s;z.params=j;z.onOpen.dispatch(z,s,j);if(s.type){k+=" mceModal";if(s.type){k+=" mce"+s.type.substring(0,1).toUpperCase()+s.type.substring(1)}s.resizable=false}if(s.statusbar){k+=" mceStatusbar"}if(s.resizable){k+=" mceResizable"}if(s.minimizable){k+=" mceMinimizable"}if(s.maximizable){k+=" mceMaximizable"}if(s.movable){k+=" mceMovable"}z._addAll(d.doc.body,["div",{id:i,role:"dialog","aria-labelledby":s.type?i+"_content":i+"_title","class":(r.settings.inlinepopups_skin||"clearlooks2")+(tinymce.isIE&&window.getSelection?" ie9":""),style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},s.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft",tabindex:"0"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight",tabindex:"0"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!s.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;v+=d.get(i+"_top").clientHeight;v+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:s.top,left:s.left,width:s.width+g,height:s.height+v});y=s.url||s.file;if(y){if(tinymce.relaxedDomain){y+=(y.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}y=tinymce._addVer(y)}if(!s.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:s.width,height:s.height});d.setAttrib(i+"_ifr","src",y)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(s.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",s.content.replace("\n","<br />"));a.add(i,"keyup",function(f){var p=27;if(f.keyCode===p){s.button_func(false);return a.cancel(f)}});a.add(i,"keydown",function(f){var t,p=9;if(f.keyCode===p){t=d.select("a.mceCancel",i+"_wrapper")[0];if(t&&t!==f.target){t.focus()}else{d.get(i+"_ok").focus()}return a.cancel(f)}})}o=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=z.windows[i];z.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceClose"){z.close(null,i);return a.cancel(t)}else{if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return z._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return z._startDrag(i,t,u.className.substring(13))}}}}}}});q=a.add(i,"click",function(f){var p=f.target;z.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":z.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":s.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});a.add([i+"_left",i+"_right"],"focus",function(p){var t=d.get(i+"_ifr");if(t){var f=t.contentWindow.document.body;var u=d.select(":input:enabled,*[tabindex=0]",f);if(p.target.id===(i+"_left")){u[u.length-1].focus()}else{u[0].focus()}}else{d.get(i+"_ok").focus()}});x=z.windows[i]={id:i,mousedown_func:o,click_func:q,element:new b(i,{blocker:1,container:r.getContainer()}),iframeElement:new b(i+"_ifr"),features:s,deltaWidth:g,deltaHeight:v};x.iframeElement.on("focus",function(){z.focus(i)});if(z.count==0&&z.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(z.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:z.zIndex-1}});d.show("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","true")}else{d.setStyle("mceModalBlocker","z-index",z.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}d.setAttrib(i,"aria-hidden","false");z.focus(i);z._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}z.count++;return x},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h;if(f.focussedElement){f.focussedElement.focus()}else{if(d.get(h+"_ok")){d.get(f.id+"_ok").focus()}else{if(d.get(f.id+"_ifr")){d.get(f.id+"_ifr").focus()}}}}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;g<h.length;g++){f._addAll(k,h[g])}}}},_startDrag:function(v,G,E){var o=this,u,z,C=d.doc,f,l=o.windows[v],h=l.element,y=h.getXY(),x,q,F,g,A,s,r,j,i,m,k,n,B;g={x:0,y:0};A=d.getViewPort();A.w-=2;A.h-=2;j=G.screenX;i=G.screenY;m=k=n=B=0;u=a.add(C,"mouseup",function(p){a.remove(C,"mouseup",u);a.remove(C,"mousemove",z);if(f){f.remove()}h.moveBy(m,k);h.resizeBy(n,B);q=h.getSize();d.setStyles(v+"_ifr",{width:q.w-l.deltaWidth,height:q.h-l.deltaHeight});o._fixIELayout(v,1);return a.cancel(p)});if(E!="Move"){D()}function D(){if(f){return}o._fixIELayout(v,0);d.add(C.body,"div",{id:"mceEventBlocker","class":"mceEventBlocker "+(o.editor.settings.inlinepopups_skin||"clearlooks2"),style:{zIndex:o.zIndex+1}});if(tinymce.isIE6||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceEventBlocker",{position:"absolute",left:A.x,top:A.y,width:A.w-2,height:A.h-2})}f=new b("mceEventBlocker");f.update();x=h.getXY();q=h.getSize();s=g.x+x.x-A.x;r=g.y+x.y-A.y;d.add(f.get(),"div",{id:"mcePlaceHolder","class":"mcePlaceHolder",style:{left:s,top:r,width:q.w,height:q.h}});F=new b("mcePlaceHolder")}z=a.add(C,"mousemove",function(w){var p,H,t;D();p=w.screenX-j;H=w.screenY-i;switch(E){case"ResizeW":m=p;n=0-p;break;case"ResizeE":n=p;break;case"ResizeN":case"ResizeNW":case"ResizeNE":if(E=="ResizeNW"){m=p;n=0-p}else{if(E=="ResizeNE"){n=p}}k=H;B=0-H;break;case"ResizeS":case"ResizeSW":case"ResizeSE":if(E=="ResizeSW"){m=p;n=0-p}else{if(E=="ResizeSE"){n=p}}B=H;break;case"mceMove":m=p;k=H;break}if(n<(t=l.features.min_width-q.w)){if(m!==0){m+=n-t}n=t}if(B<(t=l.features.min_height-q.h)){if(k!==0){k+=B-t}B=t}n=Math.min(n,l.features.max_width-q.w);B=Math.min(B,l.features.max_height-q.h);m=Math.max(m,A.x-(s+A.x));k=Math.max(k,A.y-(r+A.y));m=Math.min(m,(A.w+A.x)-(s+q.w+A.x));k=Math.min(k,(A.h+A.y)-(r+q.h+A.y));if(m+k!==0){if(s+m<0){m=0}if(r+k<0){k=0}F.moveTo(s+m,r+k)}if(n+B!==0){F.resizeTo(q.w+n,q.h+B)}return a.cancel(w)});return a.cancel(G)},resizeBy:function(g,h,i){var f=this.windows[i];if(f){f.element.resizeBy(g,h);f.iframeElement.resizeBy(g,h)}},close:function(i,k){var g=this,f,j=d.doc,h,k;k=g._findId(k||i);if(!g.windows[k]){g.parent(i);return}g.count--;if(g.count==0){d.remove("mceModalBlocker");d.setAttrib(d.doc.body,"aria-hidden","false");g.editor.focus()}if(f=g.windows[k]){g.onClose.dispatch(g);a.remove(j,"mousedown",f.mousedownFunc);a.remove(j,"click",f.clickFunc);a.clear(k);a.clear(k+"_ifr");d.setAttrib(k+"_ifr","src",'javascript:""');f.element.remove();delete g.windows[k];h=g._frontWindow();if(h){g.focus(h.id)}}},_frontWindow:function(){var g,f=0;e(this.windows,function(h){if(h.zIndex>f){g=h;f=h.zIndex}});return g},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
new file mode 100755
index 00000000..67123ca3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/editor_plugin_src.js
@@ -0,0 +1,699 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.Event, each = tinymce.each, is = tinymce.is;
+
+ tinymce.create('tinymce.plugins.InlinePopups', {
+ init : function(ed, url) {
+ // Replace window manager
+ ed.onBeforeRenderUI.add(function() {
+ ed.windowManager = new tinymce.InlineWindowManager(ed);
+ DOM.loadCSS(url + '/skins/' + (ed.settings.inlinepopups_skin || 'clearlooks2') + "/window.css");
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'InlinePopups',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ tinymce.create('tinymce.InlineWindowManager:tinymce.WindowManager', {
+ InlineWindowManager : function(ed) {
+ var t = this;
+
+ t.parent(ed);
+ t.zIndex = 300000;
+ t.count = 0;
+ t.windows = {};
+ },
+
+ open : function(f, p) {
+ var t = this, id, opt = '', ed = t.editor, dw = 0, dh = 0, vp, po, mdf, clf, we, w, u, parentWindow;
+
+ f = f || {};
+ p = p || {};
+
+ // Run native windows
+ if (!f.inline)
+ return t.parent(f, p);
+
+ parentWindow = t._frontWindow();
+ if (parentWindow && DOM.get(parentWindow.id + '_ifr')) {
+ parentWindow.focussedElement = DOM.get(parentWindow.id + '_ifr').contentWindow.document.activeElement;
+ }
+
+ // Only store selection if the type is a normal window
+ if (!f.type)
+ t.bookmark = ed.selection.getBookmark(1);
+
+ id = DOM.uniqueId();
+ vp = DOM.getViewPort();
+ f.width = parseInt(f.width || 320);
+ f.height = parseInt(f.height || 240) + (tinymce.isIE ? 8 : 0);
+ f.min_width = parseInt(f.min_width || 150);
+ f.min_height = parseInt(f.min_height || 100);
+ f.max_width = parseInt(f.max_width || 2000);
+ f.max_height = parseInt(f.max_height || 2000);
+ f.left = f.left || Math.round(Math.max(vp.x, vp.x + (vp.w / 2.0) - (f.width / 2.0)));
+ f.top = f.top || Math.round(Math.max(vp.y, vp.y + (vp.h / 2.0) - (f.height / 2.0)));
+ f.movable = f.resizable = true;
+ p.mce_width = f.width;
+ p.mce_height = f.height;
+ p.mce_inline = true;
+ p.mce_window_id = id;
+ p.mce_auto_focus = f.auto_focus;
+
+ // Transpose
+// po = DOM.getPos(ed.getContainer());
+// f.left -= po.x;
+// f.top -= po.y;
+
+ t.features = f;
+ t.params = p;
+ t.onOpen.dispatch(t, f, p);
+
+ if (f.type) {
+ opt += ' mceModal';
+
+ if (f.type)
+ opt += ' mce' + f.type.substring(0, 1).toUpperCase() + f.type.substring(1);
+
+ f.resizable = false;
+ }
+
+ if (f.statusbar)
+ opt += ' mceStatusbar';
+
+ if (f.resizable)
+ opt += ' mceResizable';
+
+ if (f.minimizable)
+ opt += ' mceMinimizable';
+
+ if (f.maximizable)
+ opt += ' mceMaximizable';
+
+ if (f.movable)
+ opt += ' mceMovable';
+
+ // Create DOM objects
+ t._addAll(DOM.doc.body,
+ ['div', {id : id, role : 'dialog', 'aria-labelledby': f.type ? id + '_content' : id + '_title', 'class' : (ed.settings.inlinepopups_skin || 'clearlooks2') + (tinymce.isIE && window.getSelection ? ' ie9' : ''), style : 'width:100px;height:100px'},
+ ['div', {id : id + '_wrapper', 'class' : 'mceWrapper' + opt},
+ ['div', {id : id + '_top', 'class' : 'mceTop'},
+ ['div', {'class' : 'mceLeft'}],
+ ['div', {'class' : 'mceCenter'}],
+ ['div', {'class' : 'mceRight'}],
+ ['span', {id : id + '_title'}, f.title || '']
+ ],
+
+ ['div', {id : id + '_middle', 'class' : 'mceMiddle'},
+ ['div', {id : id + '_left', 'class' : 'mceLeft', tabindex : '0'}],
+ ['span', {id : id + '_content'}],
+ ['div', {id : id + '_right', 'class' : 'mceRight', tabindex : '0'}]
+ ],
+
+ ['div', {id : id + '_bottom', 'class' : 'mceBottom'},
+ ['div', {'class' : 'mceLeft'}],
+ ['div', {'class' : 'mceCenter'}],
+ ['div', {'class' : 'mceRight'}],
+ ['span', {id : id + '_status'}, 'Content']
+ ],
+
+ ['a', {'class' : 'mceMove', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {'class' : 'mceMin', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
+ ['a', {'class' : 'mceMax', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
+ ['a', {'class' : 'mceMed', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
+ ['a', {'class' : 'mceClose', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}],
+ ['a', {id : id + '_resize_n', 'class' : 'mceResize mceResizeN', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {id : id + '_resize_s', 'class' : 'mceResize mceResizeS', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {id : id + '_resize_w', 'class' : 'mceResize mceResizeW', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {id : id + '_resize_e', 'class' : 'mceResize mceResizeE', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {id : id + '_resize_nw', 'class' : 'mceResize mceResizeNW', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {id : id + '_resize_ne', 'class' : 'mceResize mceResizeNE', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {id : id + '_resize_sw', 'class' : 'mceResize mceResizeSW', tabindex : '-1', href : 'javascript:;'}],
+ ['a', {id : id + '_resize_se', 'class' : 'mceResize mceResizeSE', tabindex : '-1', href : 'javascript:;'}]
+ ]
+ ]
+ );
+
+ DOM.setStyles(id, {top : -10000, left : -10000});
+
+ // Fix gecko rendering bug, where the editors iframe messed with window contents
+ if (tinymce.isGecko)
+ DOM.setStyle(id, 'overflow', 'auto');
+
+ // Measure borders
+ if (!f.type) {
+ dw += DOM.get(id + '_left').clientWidth;
+ dw += DOM.get(id + '_right').clientWidth;
+ dh += DOM.get(id + '_top').clientHeight;
+ dh += DOM.get(id + '_bottom').clientHeight;
+ }
+
+ // Resize window
+ DOM.setStyles(id, {top : f.top, left : f.left, width : f.width + dw, height : f.height + dh});
+
+ u = f.url || f.file;
+ if (u) {
+ if (tinymce.relaxedDomain)
+ u += (u.indexOf('?') == -1 ? '?' : '&') + 'mce_rdomain=' + tinymce.relaxedDomain;
+
+ u = tinymce._addVer(u);
+ }
+
+ if (!f.type) {
+ DOM.add(id + '_content', 'iframe', {id : id + '_ifr', src : 'javascript:""', frameBorder : 0, style : 'border:0;width:10px;height:10px'});
+ DOM.setStyles(id + '_ifr', {width : f.width, height : f.height});
+ DOM.setAttrib(id + '_ifr', 'src', u);
+ } else {
+ DOM.add(id + '_wrapper', 'a', {id : id + '_ok', 'class' : 'mceButton mceOk', href : 'javascript:;', onmousedown : 'return false;'}, 'Ok');
+
+ if (f.type == 'confirm')
+ DOM.add(id + '_wrapper', 'a', {'class' : 'mceButton mceCancel', href : 'javascript:;', onmousedown : 'return false;'}, 'Cancel');
+
+ DOM.add(id + '_middle', 'div', {'class' : 'mceIcon'});
+ DOM.setHTML(id + '_content', f.content.replace('\n', '<br />'));
+
+ Event.add(id, 'keyup', function(evt) {
+ var VK_ESCAPE = 27;
+ if (evt.keyCode === VK_ESCAPE) {
+ f.button_func(false);
+ return Event.cancel(evt);
+ }
+ });
+
+ Event.add(id, 'keydown', function(evt) {
+ var cancelButton, VK_TAB = 9;
+ if (evt.keyCode === VK_TAB) {
+ cancelButton = DOM.select('a.mceCancel', id + '_wrapper')[0];
+ if (cancelButton && cancelButton !== evt.target) {
+ cancelButton.focus();
+ } else {
+ DOM.get(id + '_ok').focus();
+ }
+ return Event.cancel(evt);
+ }
+ });
+ }
+
+ // Register events
+ mdf = Event.add(id, 'mousedown', function(e) {
+ var n = e.target, w, vp;
+
+ w = t.windows[id];
+ t.focus(id);
+
+ if (n.nodeName == 'A' || n.nodeName == 'a') {
+ if (n.className == 'mceClose') {
+ t.close(null, id);
+ return Event.cancel(e);
+ } else if (n.className == 'mceMax') {
+ w.oldPos = w.element.getXY();
+ w.oldSize = w.element.getSize();
+
+ vp = DOM.getViewPort();
+
+ // Reduce viewport size to avoid scrollbars
+ vp.w -= 2;
+ vp.h -= 2;
+
+ w.element.moveTo(vp.x, vp.y);
+ w.element.resizeTo(vp.w, vp.h);
+ DOM.setStyles(id + '_ifr', {width : vp.w - w.deltaWidth, height : vp.h - w.deltaHeight});
+ DOM.addClass(id + '_wrapper', 'mceMaximized');
+ } else if (n.className == 'mceMed') {
+ // Reset to old size
+ w.element.moveTo(w.oldPos.x, w.oldPos.y);
+ w.element.resizeTo(w.oldSize.w, w.oldSize.h);
+ w.iframeElement.resizeTo(w.oldSize.w - w.deltaWidth, w.oldSize.h - w.deltaHeight);
+
+ DOM.removeClass(id + '_wrapper', 'mceMaximized');
+ } else if (n.className == 'mceMove')
+ return t._startDrag(id, e, n.className);
+ else if (DOM.hasClass(n, 'mceResize'))
+ return t._startDrag(id, e, n.className.substring(13));
+ }
+ });
+
+ clf = Event.add(id, 'click', function(e) {
+ var n = e.target;
+
+ t.focus(id);
+
+ if (n.nodeName == 'A' || n.nodeName == 'a') {
+ switch (n.className) {
+ case 'mceClose':
+ t.close(null, id);
+ return Event.cancel(e);
+
+ case 'mceButton mceOk':
+ case 'mceButton mceCancel':
+ f.button_func(n.className == 'mceButton mceOk');
+ return Event.cancel(e);
+ }
+ }
+ });
+
+ // Make sure the tab order loops within the dialog.
+ Event.add([id + '_left', id + '_right'], 'focus', function(evt) {
+ var iframe = DOM.get(id + '_ifr');
+ if (iframe) {
+ var body = iframe.contentWindow.document.body;
+ var focusable = DOM.select(':input:enabled,*[tabindex=0]', body);
+ if (evt.target.id === (id + '_left')) {
+ focusable[focusable.length - 1].focus();
+ } else {
+ focusable[0].focus();
+ }
+ } else {
+ DOM.get(id + '_ok').focus();
+ }
+ });
+
+ // Add window
+ w = t.windows[id] = {
+ id : id,
+ mousedown_func : mdf,
+ click_func : clf,
+ element : new Element(id, {blocker : 1, container : ed.getContainer()}),
+ iframeElement : new Element(id + '_ifr'),
+ features : f,
+ deltaWidth : dw,
+ deltaHeight : dh
+ };
+
+ w.iframeElement.on('focus', function() {
+ t.focus(id);
+ });
+
+ // Setup blocker
+ if (t.count == 0 && t.editor.getParam('dialog_type', 'modal') == 'modal') {
+ DOM.add(DOM.doc.body, 'div', {
+ id : 'mceModalBlocker',
+ 'class' : (t.editor.settings.inlinepopups_skin || 'clearlooks2') + '_modalBlocker',
+ style : {zIndex : t.zIndex - 1}
+ });
+
+ DOM.show('mceModalBlocker'); // Reduces flicker in IE
+ DOM.setAttrib(DOM.doc.body, 'aria-hidden', 'true');
+ } else
+ DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1);
+
+ if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel))
+ DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
+
+ DOM.setAttrib(id, 'aria-hidden', 'false');
+ t.focus(id);
+ t._fixIELayout(id, 1);
+
+ // Focus ok button
+ if (DOM.get(id + '_ok'))
+ DOM.get(id + '_ok').focus();
+ t.count++;
+
+ return w;
+ },
+
+ focus : function(id) {
+ var t = this, w;
+
+ if (w = t.windows[id]) {
+ w.zIndex = this.zIndex++;
+ w.element.setStyle('zIndex', w.zIndex);
+ w.element.update();
+
+ id = id + '_wrapper';
+ DOM.removeClass(t.lastId, 'mceFocus');
+ DOM.addClass(id, 'mceFocus');
+ t.lastId = id;
+
+ if (w.focussedElement) {
+ w.focussedElement.focus();
+ } else if (DOM.get(id + '_ok')) {
+ DOM.get(w.id + '_ok').focus();
+ } else if (DOM.get(w.id + '_ifr')) {
+ DOM.get(w.id + '_ifr').focus();
+ }
+ }
+ },
+
+ _addAll : function(te, ne) {
+ var i, n, t = this, dom = tinymce.DOM;
+
+ if (is(ne, 'string'))
+ te.appendChild(dom.doc.createTextNode(ne));
+ else if (ne.length) {
+ te = te.appendChild(dom.create(ne[0], ne[1]));
+
+ for (i=2; i<ne.length; i++)
+ t._addAll(te, ne[i]);
+ }
+ },
+
+ _startDrag : function(id, se, ac) {
+ var t = this, mu, mm, d = DOM.doc, eb, w = t.windows[id], we = w.element, sp = we.getXY(), p, sz, ph, cp, vp, sx, sy, sex, sey, dx, dy, dw, dh;
+
+ // Get positons and sizes
+// cp = DOM.getPos(t.editor.getContainer());
+ cp = {x : 0, y : 0};
+ vp = DOM.getViewPort();
+
+ // Reduce viewport size to avoid scrollbars while dragging
+ vp.w -= 2;
+ vp.h -= 2;
+
+ sex = se.screenX;
+ sey = se.screenY;
+ dx = dy = dw = dh = 0;
+
+ // Handle mouse up
+ mu = Event.add(d, 'mouseup', function(e) {
+ Event.remove(d, 'mouseup', mu);
+ Event.remove(d, 'mousemove', mm);
+
+ if (eb)
+ eb.remove();
+
+ we.moveBy(dx, dy);
+ we.resizeBy(dw, dh);
+ sz = we.getSize();
+ DOM.setStyles(id + '_ifr', {width : sz.w - w.deltaWidth, height : sz.h - w.deltaHeight});
+ t._fixIELayout(id, 1);
+
+ return Event.cancel(e);
+ });
+
+ if (ac != 'Move')
+ startMove();
+
+ function startMove() {
+ if (eb)
+ return;
+
+ t._fixIELayout(id, 0);
+
+ // Setup event blocker
+ DOM.add(d.body, 'div', {
+ id : 'mceEventBlocker',
+ 'class' : 'mceEventBlocker ' + (t.editor.settings.inlinepopups_skin || 'clearlooks2'),
+ style : {zIndex : t.zIndex + 1}
+ });
+
+ if (tinymce.isIE6 || (tinymce.isIE && !DOM.boxModel))
+ DOM.setStyles('mceEventBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2});
+
+ eb = new Element('mceEventBlocker');
+ eb.update();
+
+ // Setup placeholder
+ p = we.getXY();
+ sz = we.getSize();
+ sx = cp.x + p.x - vp.x;
+ sy = cp.y + p.y - vp.y;
+ DOM.add(eb.get(), 'div', {id : 'mcePlaceHolder', 'class' : 'mcePlaceHolder', style : {left : sx, top : sy, width : sz.w, height : sz.h}});
+ ph = new Element('mcePlaceHolder');
+ };
+
+ // Handle mouse move/drag
+ mm = Event.add(d, 'mousemove', function(e) {
+ var x, y, v;
+
+ startMove();
+
+ x = e.screenX - sex;
+ y = e.screenY - sey;
+
+ switch (ac) {
+ case 'ResizeW':
+ dx = x;
+ dw = 0 - x;
+ break;
+
+ case 'ResizeE':
+ dw = x;
+ break;
+
+ case 'ResizeN':
+ case 'ResizeNW':
+ case 'ResizeNE':
+ if (ac == "ResizeNW") {
+ dx = x;
+ dw = 0 - x;
+ } else if (ac == "ResizeNE")
+ dw = x;
+
+ dy = y;
+ dh = 0 - y;
+ break;
+
+ case 'ResizeS':
+ case 'ResizeSW':
+ case 'ResizeSE':
+ if (ac == "ResizeSW") {
+ dx = x;
+ dw = 0 - x;
+ } else if (ac == "ResizeSE")
+ dw = x;
+
+ dh = y;
+ break;
+
+ case 'mceMove':
+ dx = x;
+ dy = y;
+ break;
+ }
+
+ // Boundary check
+ if (dw < (v = w.features.min_width - sz.w)) {
+ if (dx !== 0)
+ dx += dw - v;
+
+ dw = v;
+ }
+
+ if (dh < (v = w.features.min_height - sz.h)) {
+ if (dy !== 0)
+ dy += dh - v;
+
+ dh = v;
+ }
+
+ dw = Math.min(dw, w.features.max_width - sz.w);
+ dh = Math.min(dh, w.features.max_height - sz.h);
+ dx = Math.max(dx, vp.x - (sx + vp.x));
+ dy = Math.max(dy, vp.y - (sy + vp.y));
+ dx = Math.min(dx, (vp.w + vp.x) - (sx + sz.w + vp.x));
+ dy = Math.min(dy, (vp.h + vp.y) - (sy + sz.h + vp.y));
+
+ // Move if needed
+ if (dx + dy !== 0) {
+ if (sx + dx < 0)
+ dx = 0;
+
+ if (sy + dy < 0)
+ dy = 0;
+
+ ph.moveTo(sx + dx, sy + dy);
+ }
+
+ // Resize if needed
+ if (dw + dh !== 0)
+ ph.resizeTo(sz.w + dw, sz.h + dh);
+
+ return Event.cancel(e);
+ });
+
+ return Event.cancel(se);
+ },
+
+ resizeBy : function(dw, dh, id) {
+ var w = this.windows[id];
+
+ if (w) {
+ w.element.resizeBy(dw, dh);
+ w.iframeElement.resizeBy(dw, dh);
+ }
+ },
+
+ close : function(win, id) {
+ var t = this, w, d = DOM.doc, fw, id;
+
+ id = t._findId(id || win);
+
+ // Probably not inline
+ if (!t.windows[id]) {
+ t.parent(win);
+ return;
+ }
+
+ t.count--;
+
+ if (t.count == 0) {
+ DOM.remove('mceModalBlocker');
+ DOM.setAttrib(DOM.doc.body, 'aria-hidden', 'false');
+ t.editor.focus();
+ }
+
+ if (w = t.windows[id]) {
+ t.onClose.dispatch(t);
+ Event.remove(d, 'mousedown', w.mousedownFunc);
+ Event.remove(d, 'click', w.clickFunc);
+ Event.clear(id);
+ Event.clear(id + '_ifr');
+
+ DOM.setAttrib(id + '_ifr', 'src', 'javascript:""'); // Prevent leak
+ w.element.remove();
+ delete t.windows[id];
+
+ fw = t._frontWindow();
+
+ if (fw)
+ t.focus(fw.id);
+ }
+ },
+
+ // Find front most window
+ _frontWindow : function() {
+ var fw, ix = 0;
+ // Find front most window and focus that
+ each (this.windows, function(w) {
+ if (w.zIndex > ix) {
+ fw = w;
+ ix = w.zIndex;
+ }
+ });
+ return fw;
+ },
+
+ setTitle : function(w, ti) {
+ var e;
+
+ w = this._findId(w);
+
+ if (e = DOM.get(w + '_title'))
+ e.innerHTML = DOM.encode(ti);
+ },
+
+ alert : function(txt, cb, s) {
+ var t = this, w;
+
+ w = t.open({
+ title : t,
+ type : 'alert',
+ button_func : function(s) {
+ if (cb)
+ cb.call(s || t, s);
+
+ t.close(null, w.id);
+ },
+ content : DOM.encode(t.editor.getLang(txt, txt)),
+ inline : 1,
+ width : 400,
+ height : 130
+ });
+ },
+
+ confirm : function(txt, cb, s) {
+ var t = this, w;
+
+ w = t.open({
+ title : t,
+ type : 'confirm',
+ button_func : function(s) {
+ if (cb)
+ cb.call(s || t, s);
+
+ t.close(null, w.id);
+ },
+ content : DOM.encode(t.editor.getLang(txt, txt)),
+ inline : 1,
+ width : 400,
+ height : 130
+ });
+ },
+
+ // Internal functions
+
+ _findId : function(w) {
+ var t = this;
+
+ if (typeof(w) == 'string')
+ return w;
+
+ each(t.windows, function(wo) {
+ var ifr = DOM.get(wo.id + '_ifr');
+
+ if (ifr && w == ifr.contentWindow) {
+ w = wo.id;
+ return false;
+ }
+ });
+
+ return w;
+ },
+
+ _fixIELayout : function(id, s) {
+ var w, img;
+
+ if (!tinymce.isIE6)
+ return;
+
+ // Fixes the bug where hover flickers and does odd things in IE6
+ each(['n','s','w','e','nw','ne','sw','se'], function(v) {
+ var e = DOM.get(id + '_resize_' + v);
+
+ DOM.setStyles(e, {
+ width : s ? e.clientWidth : '',
+ height : s ? e.clientHeight : '',
+ cursor : DOM.getStyle(e, 'cursor', 1)
+ });
+
+ DOM.setStyle(id + "_bottom", 'bottom', '-1px');
+
+ e = 0;
+ });
+
+ // Fixes graphics glitch
+ if (w = this.windows[id]) {
+ // Fixes rendering bug after resize
+ w.element.hide();
+ w.element.show();
+
+ // Forced a repaint of the window
+ //DOM.get(id).style.filter = '';
+
+ // IE has a bug where images used in CSS won't get loaded
+ // sometimes when the cache in the browser is disabled
+ // This fix tries to solve it by loading the images using the image object
+ each(DOM.select('div,a', id), function(e, i) {
+ if (e.currentStyle.backgroundImage != 'none') {
+ img = new Image();
+ img.src = e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/, '$1');
+ }
+ });
+
+ DOM.get(id).style.filter = '';
+ }
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('inlinepopups', tinymce.plugins.InlinePopups);
+})();
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
new file mode 100644
index 00000000..21913985
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif
new file mode 100644
index 00000000..f957e49a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
new file mode 100644
index 00000000..6baf64ad
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
new file mode 100644
index 00000000..20acbbf7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
new file mode 100644
index 00000000..d5de1cc2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
new file mode 100644
index 00000000..c2a2ad45
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
new file mode 100644
index 00000000..0b4cc368
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css
new file mode 100644
index 00000000..a50d4fc5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css
@@ -0,0 +1,90 @@
+/* Clearlooks 2 */
+
+/* Reset */
+.clearlooks2, .clearlooks2 div, .clearlooks2 span, .clearlooks2 a {vertical-align:baseline; text-align:left; position:absolute; border:0; padding:0; margin:0; background:transparent; font-family:Arial,Verdana; font-size:11px; color:#000; text-decoration:none; font-weight:normal; width:auto; height:auto; overflow:hidden; display:block}
+
+/* General */
+.clearlooks2 {position:absolute; direction:ltr}
+.clearlooks2 .mceWrapper {position:static}
+.mceEventBlocker {position:fixed; left:0; top:0; background:url(img/horizontal.gif) no-repeat 0 -75px; width:100%; height:100%}
+.clearlooks2 .mcePlaceHolder {border:1px solid #000; background:#888; top:0; left:0; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50)}
+.clearlooks2_modalBlocker {position:fixed; left:0; top:0; width:100%; height:100%; background:#FFF; opacity:0.6; -ms-filter:'alpha(opacity=60)'; filter:alpha(opacity=60); display:none}
+
+/* Top */
+.clearlooks2 .mceTop, .clearlooks2 .mceTop div {top:0; width:100%; height:23px}
+.clearlooks2 .mceTop .mceLeft {width:6px; background:url(img/corners.gif)}
+.clearlooks2 .mceTop .mceCenter {right:6px; width:100%; height:23px; background:url(img/horizontal.gif) 12px 0; clip:rect(auto auto auto 12px)}
+.clearlooks2 .mceTop .mceRight {right:0; width:6px; height:23px; background:url(img/corners.gif) -12px 0}
+.clearlooks2 .mceTop span {width:100%; text-align:center; vertical-align:middle; line-height:23px; font-weight:bold}
+.clearlooks2 .mceFocus .mceTop .mceLeft {background:url(img/corners.gif) -6px 0}
+.clearlooks2 .mceFocus .mceTop .mceCenter {background:url(img/horizontal.gif) 0 -23px}
+.clearlooks2 .mceFocus .mceTop .mceRight {background:url(img/corners.gif) -18px 0}
+.clearlooks2 .mceFocus .mceTop span {color:#FFF}
+
+/* Middle */
+.clearlooks2 .mceMiddle, .clearlooks2 .mceMiddle div {top:0}
+.clearlooks2 .mceMiddle {width:100%; height:100%; clip:rect(23px auto auto auto)}
+.clearlooks2 .mceMiddle .mceLeft {left:0; width:5px; height:100%; background:url(img/vertical.gif) -5px 0}
+.clearlooks2 .mceMiddle span {top:23px; left:5px; width:100%; height:100%; background:#FFF}
+.clearlooks2 .mceMiddle .mceRight {right:0; width:5px; height:100%; background:url(img/vertical.gif)}
+
+/* Bottom */
+.clearlooks2 .mceBottom, .clearlooks2 .mceBottom div {height:6px}
+.clearlooks2 .mceBottom {left:0; bottom:0; width:100%}
+.clearlooks2 .mceBottom div {top:0}
+.clearlooks2 .mceBottom .mceLeft {left:0; width:5px; background:url(img/corners.gif) -34px -6px}
+.clearlooks2 .mceBottom .mceCenter {left:5px; width:100%; background:url(img/horizontal.gif) 0 -46px}
+.clearlooks2 .mceBottom .mceRight {right:0; width:5px; background: url(img/corners.gif) -34px 0}
+.clearlooks2 .mceBottom span {display:none}
+.clearlooks2 .mceStatusbar .mceBottom, .clearlooks2 .mceStatusbar .mceBottom div {height:23px}
+.clearlooks2 .mceStatusbar .mceBottom .mceLeft {background:url(img/corners.gif) -29px 0}
+.clearlooks2 .mceStatusbar .mceBottom .mceCenter {background:url(img/horizontal.gif) 0 -52px}
+.clearlooks2 .mceStatusbar .mceBottom .mceRight {background:url(img/corners.gif) -24px 0}
+.clearlooks2 .mceStatusbar .mceBottom span {display:block; left:7px; font-family:Arial, Verdana; font-size:11px; line-height:23px}
+
+/* Actions */
+.clearlooks2 a {width:29px; height:16px; top:3px;}
+.clearlooks2 .mceClose {right:6px; background:url(img/buttons.gif) -87px 0}
+.clearlooks2 .mceMin {display:none; right:68px; background:url(img/buttons.gif) 0 0}
+.clearlooks2 .mceMed {display:none; right:37px; background:url(img/buttons.gif) -29px 0}
+.clearlooks2 .mceMax {display:none; right:37px; background:url(img/buttons.gif) -58px 0}
+.clearlooks2 .mceMove {display:none;width:100%;cursor:move;background:url(img/corners.gif) no-repeat -100px -100px}
+.clearlooks2 .mceMovable .mceMove {display:block}
+.clearlooks2 .mceFocus .mceClose {right:6px; background:url(img/buttons.gif) -87px -16px}
+.clearlooks2 .mceFocus .mceMin {right:68px; background:url(img/buttons.gif) 0 -16px}
+.clearlooks2 .mceFocus .mceMed {right:37px; background:url(img/buttons.gif) -29px -16px}
+.clearlooks2 .mceFocus .mceMax {right:37px; background:url(img/buttons.gif) -58px -16px}
+.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px}
+.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px}
+.clearlooks2 .mceFocus .mceMin:hover {right:68px; background:url(img/buttons.gif) 0 -32px}
+.clearlooks2 .mceFocus .mceMed:hover {right:37px; background:url(img/buttons.gif) -29px -32px}
+.clearlooks2 .mceFocus .mceMax:hover {right:37px; background:url(img/buttons.gif) -58px -32px}
+
+/* Resize */
+.clearlooks2 .mceResize {top:auto; left:auto; display:none; width:5px; height:5px; background:url(img/horizontal.gif) no-repeat 0 -75px}
+.clearlooks2 .mceResizable .mceResize {display:block}
+.clearlooks2 .mceResizable .mceMin, .clearlooks2 .mceMax {display:none}
+.clearlooks2 .mceMinimizable .mceMin {display:block}
+.clearlooks2 .mceMaximizable .mceMax {display:block}
+.clearlooks2 .mceMaximized .mceMed {display:block}
+.clearlooks2 .mceMaximized .mceMax {display:none}
+.clearlooks2 a.mceResizeN {top:0; left:0; width:100%; cursor:n-resize}
+.clearlooks2 a.mceResizeNW {top:0; left:0; cursor:nw-resize}
+.clearlooks2 a.mceResizeNE {top:0; right:0; cursor:ne-resize}
+.clearlooks2 a.mceResizeW {top:0; left:0; height:100%; cursor:w-resize;}
+.clearlooks2 a.mceResizeE {top:0; right:0; height:100%; cursor:e-resize}
+.clearlooks2 a.mceResizeS {bottom:0; left:0; width:100%; cursor:s-resize}
+.clearlooks2 a.mceResizeSW {bottom:0; left:0; cursor:sw-resize}
+.clearlooks2 a.mceResizeSE {bottom:0; right:0; cursor:se-resize}
+
+/* Alert/Confirm */
+.clearlooks2 .mceButton {font-weight:bold; bottom:10px; width:80px; height:30px; background:url(img/button.gif); line-height:30px; vertical-align:middle; text-align:center; outline:0}
+.clearlooks2 .mceMiddle .mceIcon {left:15px; top:35px; width:32px; height:32px}
+.clearlooks2 .mceAlert .mceMiddle span, .clearlooks2 .mceConfirm .mceMiddle span {background:transparent;left:60px; top:35px; width:320px; height:50px; font-weight:bold; overflow:auto; white-space:normal}
+.clearlooks2 a:hover {font-weight:bold;}
+.clearlooks2 .mceAlert .mceMiddle, .clearlooks2 .mceConfirm .mceMiddle {background:#D6D7D5}
+.clearlooks2 .mceAlert .mceOk {left:50%; top:auto; margin-left: -40px}
+.clearlooks2 .mceAlert .mceIcon {background:url(img/alert.gif)}
+.clearlooks2 .mceConfirm .mceOk {left:50%; top:auto; margin-left: -90px}
+.clearlooks2 .mceConfirm .mceCancel {left:50%; top:auto}
+.clearlooks2 .mceConfirm .mceIcon {background:url(img/confirm.gif)}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/template.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/template.htm
new file mode 100644
index 00000000..f9ec6421
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/inlinepopups/template.htm
@@ -0,0 +1,387 @@
+<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Template for dialogs</title>
+<link rel="stylesheet" type="text/css" href="skins/clearlooks2/window.css" />
+</head>
+<body>
+
+<div class="mceEditor">
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px;">
+ <div class="mceWrapper">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Blured</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px;">
+ <div class="mceWrapper mceMovable mceFocus">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Focused</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px; top:120px;">
+ <div class="mceWrapper mceMovable mceFocus mceStatusbar">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px; top:120px;">
+ <div class="mceWrapper mceMovable mceFocus mceStatusbar mceResizable">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar, Resizable</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px; top:230px;">
+ <div class="mceWrapper mceMovable mceFocus mceResizable mceMaximizable">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Resizable, Maximizable</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px; top:230px;">
+ <div class="mceWrapper mceMovable mceStatusbar mceResizable mceMaximizable">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Blurred, Maximizable, Statusbar, Resizable</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:100px; left:10px; top:340px;">
+ <div class="mceWrapper mceMovable mceFocus mceResizable mceMaximized mceMinimizable mceMaximizable">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Maximized, Maximizable, Minimizable</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:100px; left:420px; top:340px;">
+ <div class="mceWrapper mceMovable mceStatusbar mceResizable mceMaximized mceMinimizable mceMaximizable">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Blured</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>Content</span>
+ <div class="mceRight"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Statusbar text.</span>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceMin" href="#"></a>
+ <a class="mceMax" href="#"></a>
+ <a class="mceMed" href="#"></a>
+ <a class="mceClose" href="#"></a>
+ <a class="mceResize mceResizeN" href="#"></a>
+ <a class="mceResize mceResizeS" href="#"></a>
+ <a class="mceResize mceResizeW" href="#"></a>
+ <a class="mceResize mceResizeE" href="#"></a>
+ <a class="mceResize mceResizeNW" href="#"></a>
+ <a class="mceResize mceResizeNE" href="#"></a>
+ <a class="mceResize mceResizeSW" href="#"></a>
+ <a class="mceResize mceResizeSE" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:130px; left:10px; top:450px;">
+ <div class="mceWrapper mceMovable mceFocus mceModal mceAlert">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Alert</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ </span>
+ <div class="mceRight"></div>
+ <div class="mceIcon"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceButton mceOk" href="#">Ok</a>
+ <a class="mceClose" href="#"></a>
+ </div>
+ </div>
+
+ <div class="clearlooks2" style="width:400px; height:130px; left:420px; top:450px;">
+ <div class="mceWrapper mceMovable mceFocus mceModal mceConfirm">
+ <div class="mceTop">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ <span>Confirm</span>
+ </div>
+
+ <div class="mceMiddle">
+ <div class="mceLeft"></div>
+ <span>
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ This is a very long error message. This is a very long error message.
+ </span>
+ <div class="mceRight"></div>
+ <div class="mceIcon"></div>
+ </div>
+
+ <div class="mceBottom">
+ <div class="mceLeft"></div>
+ <div class="mceCenter"></div>
+ <div class="mceRight"></div>
+ </div>
+
+ <a class="mceMove" href="#"></a>
+ <a class="mceButton mceOk" href="#">Ok</a>
+ <a class="mceButton mceCancel" href="#">Cancel</a>
+ <a class="mceClose" href="#"></a>
+ </div>
+ </div>
+</div>
+
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin.js
new file mode 100755
index 00000000..938ce6b1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.InsertDateTime",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertDate",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_dateFormat",a.getLang("insertdatetime.date_fmt")));a.execCommand("mceInsertContent",false,d)});a.addCommand("mceInsertTime",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_timeFormat",a.getLang("insertdatetime.time_fmt")));a.execCommand("mceInsertContent",false,d)});a.addButton("insertdate",{title:"insertdatetime.insertdate_desc",cmd:"mceInsertDate"});a.addButton("inserttime",{title:"insertdatetime.inserttime_desc",cmd:"mceInsertTime"})},getInfo:function(){return{longname:"Insert date/time",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getDateTime:function(e,a){var c=this.editor;function b(g,d){g=""+g;if(g.length<d){for(var f=0;f<(d-g.length);f++){g="0"+g}}return g}a=a.replace("%D","%m/%d/%y");a=a.replace("%r","%I:%M:%S %p");a=a.replace("%Y",""+e.getFullYear());a=a.replace("%y",""+e.getYear());a=a.replace("%m",b(e.getMonth()+1,2));a=a.replace("%d",b(e.getDate(),2));a=a.replace("%H",""+b(e.getHours(),2));a=a.replace("%M",""+b(e.getMinutes(),2));a=a.replace("%S",""+b(e.getSeconds(),2));a=a.replace("%I",""+((e.getHours()+11)%12+1));a=a.replace("%p",""+(e.getHours()<12?"AM":"PM"));a=a.replace("%B",""+c.getLang("insertdatetime.months_long").split(",")[e.getMonth()]);a=a.replace("%b",""+c.getLang("insertdatetime.months_short").split(",")[e.getMonth()]);a=a.replace("%A",""+c.getLang("insertdatetime.day_long").split(",")[e.getDay()]);a=a.replace("%a",""+c.getLang("insertdatetime.day_short").split(",")[e.getDay()]);a=a.replace("%%","%");return a}});tinymce.PluginManager.add("insertdatetime",tinymce.plugins.InsertDateTime)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin_src.js
new file mode 100755
index 00000000..181c791e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/insertdatetime/editor_plugin_src.js
@@ -0,0 +1,83 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.InsertDateTime', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ ed.addCommand('mceInsertDate', function() {
+ var str = t._getDateTime(new Date(), ed.getParam("plugin_insertdate_dateFormat", ed.getLang('insertdatetime.date_fmt')));
+
+ ed.execCommand('mceInsertContent', false, str);
+ });
+
+ ed.addCommand('mceInsertTime', function() {
+ var str = t._getDateTime(new Date(), ed.getParam("plugin_insertdate_timeFormat", ed.getLang('insertdatetime.time_fmt')));
+
+ ed.execCommand('mceInsertContent', false, str);
+ });
+
+ ed.addButton('insertdate', {title : 'insertdatetime.insertdate_desc', cmd : 'mceInsertDate'});
+ ed.addButton('inserttime', {title : 'insertdatetime.inserttime_desc', cmd : 'mceInsertTime'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Insert date/time',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private methods
+
+ _getDateTime : function(d, fmt) {
+ var ed = this.editor;
+
+ function addZeros(value, len) {
+ value = "" + value;
+
+ if (value.length < len) {
+ for (var i=0; i<(len-value.length); i++)
+ value = "0" + value;
+ }
+
+ return value;
+ };
+
+ fmt = fmt.replace("%D", "%m/%d/%y");
+ fmt = fmt.replace("%r", "%I:%M:%S %p");
+ fmt = fmt.replace("%Y", "" + d.getFullYear());
+ fmt = fmt.replace("%y", "" + d.getYear());
+ fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2));
+ fmt = fmt.replace("%d", addZeros(d.getDate(), 2));
+ fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2));
+ fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2));
+ fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2));
+ fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1));
+ fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM"));
+ fmt = fmt.replace("%B", "" + ed.getLang("insertdatetime.months_long").split(',')[d.getMonth()]);
+ fmt = fmt.replace("%b", "" + ed.getLang("insertdatetime.months_short").split(',')[d.getMonth()]);
+ fmt = fmt.replace("%A", "" + ed.getLang("insertdatetime.day_long").split(',')[d.getDay()]);
+ fmt = fmt.replace("%a", "" + ed.getLang("insertdatetime.day_short").split(',')[d.getDay()]);
+ fmt = fmt.replace("%%", "%");
+
+ return fmt;
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('insertdatetime', tinymce.plugins.InsertDateTime);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin.js
new file mode 100755
index 00000000..ca3857a7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin.js
@@ -0,0 +1 @@
+(function(){function a(b){do{if(b.className&&b.className.indexOf("mceItemLayer")!=-1){return b}}while(b=b.parentNode)}tinymce.create("tinymce.plugins.Layer",{init:function(b,c){var d=this;d.editor=b;b.addCommand("mceInsertLayer",d._insertLayer,d);b.addCommand("mceMoveForward",function(){d._move(1)});b.addCommand("mceMoveBackward",function(){d._move(-1)});b.addCommand("mceMakeAbsolute",function(){d._toggleAbsolute()});b.addButton("moveforward",{title:"layer.forward_desc",cmd:"mceMoveForward"});b.addButton("movebackward",{title:"layer.backward_desc",cmd:"mceMoveBackward"});b.addButton("absolute",{title:"layer.absolute_desc",cmd:"mceMakeAbsolute"});b.addButton("insertlayer",{title:"layer.insertlayer_desc",cmd:"mceInsertLayer"});b.onInit.add(function(){var e=b.dom;if(tinymce.isIE){b.getDoc().execCommand("2D-Position",false,true)}});b.onMouseUp.add(function(f,h){var g=a(h.target);if(g){f.dom.setAttrib(g,"data-mce-style","")}});b.onMouseDown.add(function(f,j){var h=j.target,i=f.getDoc(),g;if(tinymce.isGecko){if(a(h)){if(i.designMode!=="on"){i.designMode="on";h=i.body;g=h.parentNode;g.removeChild(h);g.appendChild(h)}}else{if(i.designMode=="on"){i.designMode="off"}}}});b.onNodeChange.add(d._nodeChange,d);b.onVisualAid.add(d._visualAid,d)},getInfo:function(){return{longname:"Layer",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(c,b,f){var d,e;d=this._getParentLayer(f);e=c.dom.getParent(f,"DIV,P,IMG");if(!e){b.setDisabled("absolute",1);b.setDisabled("moveforward",1);b.setDisabled("movebackward",1)}else{b.setDisabled("absolute",0);b.setDisabled("moveforward",!d);b.setDisabled("movebackward",!d);b.setActive("absolute",d&&d.style.position.toLowerCase()=="absolute")}},_visualAid:function(b,d,c){var f=b.dom;tinymce.each(f.select("div,p",d),function(g){if(/^(absolute|relative|fixed)$/i.test(g.style.position)){if(c){f.addClass(g,"mceItemVisualAid")}else{f.removeClass(g,"mceItemVisualAid")}f.addClass(g,"mceItemLayer")}})},_move:function(j){var c=this.editor,g,h=[],f=this._getParentLayer(c.selection.getNode()),e=-1,k=-1,b;b=[];tinymce.walk(c.getBody(),function(d){if(d.nodeType==1&&/^(absolute|relative|static)$/i.test(d.style.position)){b.push(d)}},"childNodes");for(g=0;g<b.length;g++){h[g]=b[g].style.zIndex?parseInt(b[g].style.zIndex):0;if(e<0&&b[g]==f){e=g}}if(j<0){for(g=0;g<h.length;g++){if(h[g]<h[e]){k=g;break}}if(k>-1){b[e].style.zIndex=h[k];b[k].style.zIndex=h[e]}else{if(h[e]>0){b[e].style.zIndex=h[e]-1}}}else{for(g=0;g<h.length;g++){if(h[g]>h[e]){k=g;break}}if(k>-1){b[e].style.zIndex=h[k];b[k].style.zIndex=h[e]}else{b[e].style.zIndex=h[e]+1}}c.execCommand("mceRepaint")},_getParentLayer:function(b){return this.editor.dom.getParent(b,function(c){return c.nodeType==1&&/^(absolute|relative|static)$/i.test(c.style.position)})},_insertLayer:function(){var c=this.editor,e=c.dom,d=e.getPos(e.getParent(c.selection.getNode(),"*")),b=c.getBody();c.dom.add(b,"div",{style:{position:"absolute",left:d.x,top:(d.y>20?d.y:20),width:100,height:100},"class":"mceItemVisualAid mceItemLayer"},c.selection.getContent()||c.getLang("layer.content"));if(tinymce.isIE){e.setHTML(b,b.innerHTML)}},_toggleAbsolute:function(){var b=this.editor,c=this._getParentLayer(b.selection.getNode());if(!c){c=b.dom.getParent(b.selection.getNode(),"DIV,P,IMG")}if(c){if(c.style.position.toLowerCase()=="absolute"){b.dom.setStyles(c,{position:"",left:"",top:"",width:"",height:""});b.dom.removeClass(c,"mceItemVisualAid");b.dom.removeClass(c,"mceItemLayer")}else{if(c.style.left==""){c.style.left=20+"px"}if(c.style.top==""){c.style.top=20+"px"}if(c.style.width==""){c.style.width=c.width?(c.width+"px"):"100px"}if(c.style.height==""){c.style.height=c.height?(c.height+"px"):"100px"}c.style.position="absolute";b.dom.setAttrib(c,"data-mce-style","");b.addVisual(b.getBody())}b.execCommand("mceRepaint");b.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin_src.js
new file mode 100755
index 00000000..daed2806
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/layer/editor_plugin_src.js
@@ -0,0 +1,262 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ function findParentLayer(node) {
+ do {
+ if (node.className && node.className.indexOf('mceItemLayer') != -1) {
+ return node;
+ }
+ } while (node = node.parentNode);
+ };
+
+ tinymce.create('tinymce.plugins.Layer', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceInsertLayer', t._insertLayer, t);
+
+ ed.addCommand('mceMoveForward', function() {
+ t._move(1);
+ });
+
+ ed.addCommand('mceMoveBackward', function() {
+ t._move(-1);
+ });
+
+ ed.addCommand('mceMakeAbsolute', function() {
+ t._toggleAbsolute();
+ });
+
+ // Register buttons
+ ed.addButton('moveforward', {title : 'layer.forward_desc', cmd : 'mceMoveForward'});
+ ed.addButton('movebackward', {title : 'layer.backward_desc', cmd : 'mceMoveBackward'});
+ ed.addButton('absolute', {title : 'layer.absolute_desc', cmd : 'mceMakeAbsolute'});
+ ed.addButton('insertlayer', {title : 'layer.insertlayer_desc', cmd : 'mceInsertLayer'});
+
+ ed.onInit.add(function() {
+ var dom = ed.dom;
+
+ if (tinymce.isIE)
+ ed.getDoc().execCommand('2D-Position', false, true);
+ });
+
+ // Remove serialized styles when selecting a layer since it might be changed by a drag operation
+ ed.onMouseUp.add(function(ed, e) {
+ var layer = findParentLayer(e.target);
+
+ if (layer) {
+ ed.dom.setAttrib(layer, 'data-mce-style', '');
+ }
+ });
+
+ // Fixes edit focus issues with layers on Gecko
+ // This will enable designMode while inside a layer and disable it when outside
+ ed.onMouseDown.add(function(ed, e) {
+ var node = e.target, doc = ed.getDoc(), parent;
+
+ if (tinymce.isGecko) {
+ if (findParentLayer(node)) {
+ if (doc.designMode !== 'on') {
+ doc.designMode = 'on';
+
+ // Repaint caret
+ node = doc.body;
+ parent = node.parentNode;
+ parent.removeChild(node);
+ parent.appendChild(node);
+ }
+ } else if (doc.designMode == 'on') {
+ doc.designMode = 'off';
+ }
+ }
+ });
+
+ ed.onNodeChange.add(t._nodeChange, t);
+ ed.onVisualAid.add(t._visualAid, t);
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Layer',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private methods
+
+ _nodeChange : function(ed, cm, n) {
+ var le, p;
+
+ le = this._getParentLayer(n);
+ p = ed.dom.getParent(n, 'DIV,P,IMG');
+
+ if (!p) {
+ cm.setDisabled('absolute', 1);
+ cm.setDisabled('moveforward', 1);
+ cm.setDisabled('movebackward', 1);
+ } else {
+ cm.setDisabled('absolute', 0);
+ cm.setDisabled('moveforward', !le);
+ cm.setDisabled('movebackward', !le);
+ cm.setActive('absolute', le && le.style.position.toLowerCase() == "absolute");
+ }
+ },
+
+ // Private methods
+
+ _visualAid : function(ed, e, s) {
+ var dom = ed.dom;
+
+ tinymce.each(dom.select('div,p', e), function(e) {
+ if (/^(absolute|relative|fixed)$/i.test(e.style.position)) {
+ if (s)
+ dom.addClass(e, 'mceItemVisualAid');
+ else
+ dom.removeClass(e, 'mceItemVisualAid');
+
+ dom.addClass(e, 'mceItemLayer');
+ }
+ });
+ },
+
+ _move : function(d) {
+ var ed = this.editor, i, z = [], le = this._getParentLayer(ed.selection.getNode()), ci = -1, fi = -1, nl;
+
+ nl = [];
+ tinymce.walk(ed.getBody(), function(n) {
+ if (n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position))
+ nl.push(n);
+ }, 'childNodes');
+
+ // Find z-indexes
+ for (i=0; i<nl.length; i++) {
+ z[i] = nl[i].style.zIndex ? parseInt(nl[i].style.zIndex) : 0;
+
+ if (ci < 0 && nl[i] == le)
+ ci = i;
+ }
+
+ if (d < 0) {
+ // Move back
+
+ // Try find a lower one
+ for (i=0; i<z.length; i++) {
+ if (z[i] < z[ci]) {
+ fi = i;
+ break;
+ }
+ }
+
+ if (fi > -1) {
+ nl[ci].style.zIndex = z[fi];
+ nl[fi].style.zIndex = z[ci];
+ } else {
+ if (z[ci] > 0)
+ nl[ci].style.zIndex = z[ci] - 1;
+ }
+ } else {
+ // Move forward
+
+ // Try find a higher one
+ for (i=0; i<z.length; i++) {
+ if (z[i] > z[ci]) {
+ fi = i;
+ break;
+ }
+ }
+
+ if (fi > -1) {
+ nl[ci].style.zIndex = z[fi];
+ nl[fi].style.zIndex = z[ci];
+ } else
+ nl[ci].style.zIndex = z[ci] + 1;
+ }
+
+ ed.execCommand('mceRepaint');
+ },
+
+ _getParentLayer : function(n) {
+ return this.editor.dom.getParent(n, function(n) {
+ return n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position);
+ });
+ },
+
+ _insertLayer : function() {
+ var ed = this.editor, dom = ed.dom, p = dom.getPos(dom.getParent(ed.selection.getNode(), '*')), body = ed.getBody();
+
+ ed.dom.add(body, 'div', {
+ style : {
+ position : 'absolute',
+ left : p.x,
+ top : (p.y > 20 ? p.y : 20),
+ width : 100,
+ height : 100
+ },
+ 'class' : 'mceItemVisualAid mceItemLayer'
+ }, ed.selection.getContent() || ed.getLang('layer.content'));
+
+ // Workaround for IE where it messes up the JS engine if you insert a layer on IE 6,7
+ if (tinymce.isIE)
+ dom.setHTML(body, body.innerHTML);
+ },
+
+ _toggleAbsolute : function() {
+ var ed = this.editor, le = this._getParentLayer(ed.selection.getNode());
+
+ if (!le)
+ le = ed.dom.getParent(ed.selection.getNode(), 'DIV,P,IMG');
+
+ if (le) {
+ if (le.style.position.toLowerCase() == "absolute") {
+ ed.dom.setStyles(le, {
+ position : '',
+ left : '',
+ top : '',
+ width : '',
+ height : ''
+ });
+
+ ed.dom.removeClass(le, 'mceItemVisualAid');
+ ed.dom.removeClass(le, 'mceItemLayer');
+ } else {
+ if (le.style.left == "")
+ le.style.left = 20 + 'px';
+
+ if (le.style.top == "")
+ le.style.top = 20 + 'px';
+
+ if (le.style.width == "")
+ le.style.width = le.width ? (le.width + 'px') : '100px';
+
+ if (le.style.height == "")
+ le.style.height = le.height ? (le.height + 'px') : '100px';
+
+ le.style.position = "absolute";
+
+ ed.dom.setAttrib(le, 'data-mce-style', '');
+ ed.addVisual(ed.getBody());
+ }
+
+ ed.execCommand('mceRepaint');
+ ed.nodeChanged();
+ }
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('layer', tinymce.plugins.Layer);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin.js
new file mode 100644
index 00000000..2ed5f41a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin.js
@@ -0,0 +1 @@
+(function(a){a.onAddEditor.addToTop(function(c,b){b.settings.inline_styles=false});a.create("tinymce.plugins.LegacyOutput",{init:function(b){b.onInit.add(function(){var c="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",e=a.explode(b.settings.font_size_style_values),d=b.schema;b.formatter.register({alignleft:{selector:c,attributes:{align:"left"}},aligncenter:{selector:c,attributes:{align:"center"}},alignright:{selector:c,attributes:{align:"right"}},alignfull:{selector:c,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:true}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:true}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(f){return a.inArray(e,f.value)+1}}},forecolor:{inline:"font",attributes:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}});a.each("b,i,u,strike".split(","),function(f){d.addValidElements(f+"[*]")});if(!d.getElementRule("font")){d.addValidElements("font[face|size|color|style]")}a.each(c.split(","),function(f){var h=d.getElementRule(f),g;if(h){if(!h.attributes.align){h.attributes.align={};h.attributesOrder.push("align")}}});b.onNodeChange.add(function(g,k){var j,f,h,i;f=g.dom.getParent(g.selection.getNode(),"font");if(f){h=f.face;i=f.size}if(j=k.get("fontselect")){j.select(function(l){return l==h})}if(j=k.get("fontsizeselect")){j.select(function(m){var l=a.inArray(e,m.fontSize);return l+1==i})}})})},getInfo:function(){return{longname:"LegacyOutput",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("legacyoutput",a.plugins.LegacyOutput)})(tinymce); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin_src.js
new file mode 100644
index 00000000..3cdcde57
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/legacyoutput/editor_plugin_src.js
@@ -0,0 +1,139 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ *
+ * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align
+ * attributes and so forth. There are a few cases where these old items might be needed for example in email applications or with Flash
+ *
+ * However you should NOT use this plugin if you are building some system that produces web contents such as a CMS. All these elements are
+ * not apart of the newer specifications for HTML and XHTML.
+ */
+
+(function(tinymce) {
+ // Override inline_styles setting to force TinyMCE to produce deprecated contents
+ tinymce.onAddEditor.addToTop(function(tinymce, editor) {
+ editor.settings.inline_styles = false;
+ });
+
+ // Create the legacy ouput plugin
+ tinymce.create('tinymce.plugins.LegacyOutput', {
+ init : function(editor) {
+ editor.onInit.add(function() {
+ var alignElements = 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img',
+ fontSizes = tinymce.explode(editor.settings.font_size_style_values),
+ schema = editor.schema;
+
+ // Override some internal formats to produce legacy elements and attributes
+ editor.formatter.register({
+ // Change alignment formats to use the deprecated align attribute
+ alignleft : {selector : alignElements, attributes : {align : 'left'}},
+ aligncenter : {selector : alignElements, attributes : {align : 'center'}},
+ alignright : {selector : alignElements, attributes : {align : 'right'}},
+ alignfull : {selector : alignElements, attributes : {align : 'justify'}},
+
+ // Change the basic formatting elements to use deprecated element types
+ bold : [
+ {inline : 'b', remove : 'all'},
+ {inline : 'strong', remove : 'all'},
+ {inline : 'span', styles : {fontWeight : 'bold'}}
+ ],
+ italic : [
+ {inline : 'i', remove : 'all'},
+ {inline : 'em', remove : 'all'},
+ {inline : 'span', styles : {fontStyle : 'italic'}}
+ ],
+ underline : [
+ {inline : 'u', remove : 'all'},
+ {inline : 'span', styles : {textDecoration : 'underline'}, exact : true}
+ ],
+ strikethrough : [
+ {inline : 'strike', remove : 'all'},
+ {inline : 'span', styles : {textDecoration: 'line-through'}, exact : true}
+ ],
+
+ // Change font size and font family to use the deprecated font element
+ fontname : {inline : 'font', attributes : {face : '%value'}},
+ fontsize : {
+ inline : 'font',
+ attributes : {
+ size : function(vars) {
+ return tinymce.inArray(fontSizes, vars.value) + 1;
+ }
+ }
+ },
+
+ // Setup font elements for colors as well
+ forecolor : {inline : 'font', attributes : {color : '%value'}},
+ hilitecolor : {inline : 'font', styles : {backgroundColor : '%value'}}
+ });
+
+ // Check that deprecated elements are allowed if not add them
+ tinymce.each('b,i,u,strike'.split(','), function(name) {
+ schema.addValidElements(name + '[*]');
+ });
+
+ // Add font element if it's missing
+ if (!schema.getElementRule("font"))
+ schema.addValidElements("font[face|size|color|style]");
+
+ // Add the missing and depreacted align attribute for the serialization engine
+ tinymce.each(alignElements.split(','), function(name) {
+ var rule = schema.getElementRule(name), found;
+
+ if (rule) {
+ if (!rule.attributes.align) {
+ rule.attributes.align = {};
+ rule.attributesOrder.push('align');
+ }
+ }
+ });
+
+ // Listen for the onNodeChange event so that we can do special logic for the font size and font name drop boxes
+ editor.onNodeChange.add(function(editor, control_manager) {
+ var control, fontElm, fontName, fontSize;
+
+ // Find font element get it's name and size
+ fontElm = editor.dom.getParent(editor.selection.getNode(), 'font');
+ if (fontElm) {
+ fontName = fontElm.face;
+ fontSize = fontElm.size;
+ }
+
+ // Select/unselect the font name in droplist
+ if (control = control_manager.get('fontselect')) {
+ control.select(function(value) {
+ return value == fontName;
+ });
+ }
+
+ // Select/unselect the font size in droplist
+ if (control = control_manager.get('fontsizeselect')) {
+ control.select(function(value) {
+ var index = tinymce.inArray(fontSizes, value.fontSize);
+
+ return index + 1 == fontSize;
+ });
+ }
+ });
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'LegacyOutput',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('legacyoutput', tinymce.plugins.LegacyOutput);
+})(tinymce);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin.js
new file mode 100644
index 00000000..ec21b256
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var e=tinymce.each,r=tinymce.dom.Event,g;function p(t,s){while(t&&(t.nodeType===8||(t.nodeType===3&&/^[ \t\n\r]*$/.test(t.nodeValue)))){t=s(t)}return t}function b(s){return p(s,function(t){return t.previousSibling})}function i(s){return p(s,function(t){return t.nextSibling})}function d(s,u,t){return s.dom.getParent(u,function(v){return tinymce.inArray(t,v)!==-1})}function n(s){return s&&(s.tagName==="OL"||s.tagName==="UL")}function c(u,v){var t,w,s;t=b(u.lastChild);while(n(t)){w=t;t=b(w.previousSibling)}if(w){s=v.create("li",{style:"list-style-type: none;"});v.split(u,w);v.insertAfter(s,w);s.appendChild(w);s.appendChild(w);u=s.previousSibling}return u}function m(t,s,u){t=a(t,s,u);return o(t,s,u)}function a(u,s,v){var t=b(u.previousSibling);if(t){return h(t,u,s?t:false,v)}else{return u}}function o(u,t,v){var s=i(u.nextSibling);if(s){return h(u,s,t?s:false,v)}else{return u}}function h(u,s,t,v){if(l(u,s,!!t,v)){return f(u,s,t)}else{if(u&&u.tagName==="LI"&&n(s)){u.appendChild(s)}}return s}function l(u,t,s,v){if(!u||!t){return false}else{if(u.tagName==="LI"&&t.tagName==="LI"){return t.style.listStyleType==="none"||j(t)}else{if(n(u)){return(u.tagName===t.tagName&&(s||u.style.listStyleType===t.style.listStyleType))||q(t)}else{return v&&u.tagName==="P"&&t.tagName==="P"}}}}function q(t){var s=i(t.firstChild),u=b(t.lastChild);return s&&u&&n(t)&&s===u&&(n(s)||s.style.listStyleType==="none"||j(s))}function j(u){var t=i(u.firstChild),s=b(u.lastChild);return t&&s&&t===s&&n(t)}function f(w,v,s){var u=b(w.lastChild),t=i(v.firstChild);if(w.tagName==="P"){w.appendChild(w.ownerDocument.createElement("br"))}while(v.firstChild){w.appendChild(v.firstChild)}if(s){w.style.listStyleType=s.style.listStyleType}v.parentNode.removeChild(v);h(u,t,false);return w}function k(t,u){var s;if(!u.is(t,"li,ol,ul")){s=u.getParent(t,"li");if(s){t=s}}return t}tinymce.create("tinymce.plugins.Lists",{init:function(y){var v="TABBING";var s="EMPTY";var J="ESCAPE";var z="PARAGRAPH";var N="UNKNOWN";var x=N;function E(U){return U.keyCode===tinymce.VK.TAB&&!(U.altKey||U.ctrlKey)&&(y.queryCommandState("InsertUnorderedList")||y.queryCommandState("InsertOrderedList"))}function w(){var U=B();var W=U.parentNode.parentNode;var V=U.parentNode.lastChild===U;return V&&!t(W)&&P(U)}function t(U){if(n(U)){return U.parentNode&&U.parentNode.tagName==="LI"}else{return U.tagName==="LI"}}function F(){return y.selection.isCollapsed()&&P(B())}function B(){var U=y.selection.getStart();return((U.tagName=="BR"||U.tagName=="")&&U.parentNode.tagName=="LI")?U.parentNode:U}function P(U){var V=U.childNodes.length;if(U.tagName==="LI"){return V==0?true:V==1&&(U.firstChild.tagName==""||U.firstChild.tagName=="BR"||H(U))}return false}function H(U){var V=tinymce.grep(U.parentNode.childNodes,function(Y){return Y.tagName=="LI"});var W=U==V[V.length-1];var X=U.firstChild;return tinymce.isIE9&&W&&(X.nodeValue==String.fromCharCode(160)||X.nodeValue==String.fromCharCode(32))}function T(U){return U.keyCode===tinymce.VK.ENTER}function A(U){return T(U)&&!U.shiftKey}function M(U){if(E(U)){return v}else{if(A(U)&&w()){return N}else{if(A(U)&&F()){return s}else{return N}}}}function D(U,V){if(x==v||x==s||tinymce.isGecko&&x==J){r.cancel(V)}}function C(){var U=y.selection.getRng(true);var V=U.startContainer;if(V.nodeType==3){var W=V.nodeValue;if(tinymce.isIE9&&W.length>1&&W.charCodeAt(W.length-1)==32){return(U.endOffset==W.length-1)}else{return(U.endOffset==W.length)}}else{if(V.nodeType==1){return U.endOffset==V.childNodes.length}}return false}function I(){var W=y.selection.getNode();var V="h1,h2,h3,h4,h5,h6,p,div";var U=y.dom.is(W,V)&&W.parentNode.tagName==="LI"&&W.parentNode.lastChild===W;return y.selection.isCollapsed()&&U&&C()}function K(W,Y){if(A(Y)&&I()){var X=W.selection.getNode();var V=W.dom.create("li");var U=W.dom.getParent(X,"li");W.dom.insertAfter(V,U);if(tinymce.isIE6||tinymce.isIE7||tinyMCE.isIE8){W.selection.setCursorLocation(V,1)}else{W.selection.setCursorLocation(V,0)}Y.preventDefault()}}function u(X,Z){var ac;if(!tinymce.isGecko){return}var V=X.selection.getStart();if(Z.keyCode!=tinymce.VK.BACKSPACE||V.tagName!=="IMG"){return}function W(ag){var ah=ag.firstChild;var af=null;do{if(!ah){break}if(ah.tagName==="LI"){af=ah}}while(ah=ah.nextSibling);return af}function ae(ag,af){while(ag.childNodes.length>0){af.appendChild(ag.childNodes[0])}}ac=V.parentNode.previousSibling;if(!ac){return}var aa;if(ac.tagName==="UL"||ac.tagName==="OL"){aa=ac}else{if(ac.previousSibling&&(ac.previousSibling.tagName==="UL"||ac.previousSibling.tagName==="OL")){aa=ac.previousSibling}else{return}}var ad=W(aa);var U=X.dom.createRng();U.setStart(ad,1);U.setEnd(ad,1);X.selection.setRng(U);X.selection.collapse(true);var Y=X.selection.getBookmark();var ab=V.parentNode.cloneNode(true);if(ab.tagName==="P"||ab.tagName==="DIV"){ae(ab,ad)}else{ad.appendChild(ab)}V.parentNode.parentNode.removeChild(V.parentNode);X.selection.moveToBookmark(Y)}function G(U){var V=y.dom.getParent(U,"ol,ul");if(V!=null){var W=V.lastChild;y.selection.setCursorLocation(W,0)}}this.ed=y;y.addCommand("Indent",this.indent,this);y.addCommand("Outdent",this.outdent,this);y.addCommand("InsertUnorderedList",function(){this.applyList("UL","OL")},this);y.addCommand("InsertOrderedList",function(){this.applyList("OL","UL")},this);y.onInit.add(function(){y.editorCommands.addCommands({outdent:function(){var V=y.selection,W=y.dom;function U(X){X=W.getParent(X,W.isBlock);return X&&(parseInt(y.dom.getStyle(X,"margin-left")||0,10)+parseInt(y.dom.getStyle(X,"padding-left")||0,10))>0}return U(V.getStart())||U(V.getEnd())||y.queryCommandState("InsertOrderedList")||y.queryCommandState("InsertUnorderedList")}},"state")});y.onKeyUp.add(function(V,W){if(x==v){V.execCommand(W.shiftKey?"Outdent":"Indent",true,null);x=N;return r.cancel(W)}else{if(x==s){var U=B();var Y=V.settings.list_outdent_on_enter===true||W.shiftKey;V.execCommand(Y?"Outdent":"Indent",true,null);if(tinymce.isIE){G(U)}return r.cancel(W)}else{if(x==J){if(tinymce.isIE6||tinymce.isIE7||tinymce.isIE8){var X=V.getDoc().createTextNode("\uFEFF");V.selection.getNode().appendChild(X)}else{if(tinymce.isIE9||tinymce.isGecko){V.execCommand("Outdent");return r.cancel(W)}}}}}});function L(V,U){var W=y.getDoc().createTextNode("\uFEFF");V.insertBefore(W,U);y.selection.setCursorLocation(W,0);y.execCommand("mceRepaint")}function R(V,X){if(T(X)){var U=B();if(U){var W=U.parentNode;var Y=W&&W.parentNode;if(Y&&Y.nodeName=="LI"&&Y.firstChild==W&&U==W.firstChild){L(Y,W)}}}}function S(V,X){if(T(X)){var U=B();if(V.dom.select("ul li",U).length===1){var W=U.firstChild;L(U,W)}}}function Q(W,aa){function X(ab){var ad=[];var ae=new tinymce.dom.TreeWalker(ab.firstChild,ab);for(var ac=ae.current();ac;ac=ae.next()){if(W.dom.is(ac,"ol,ul,li")){ad.push(ac)}}return ad}if(aa.keyCode==tinymce.VK.BACKSPACE){var U=B();if(U){var Z=W.dom.getParent(U,"ol,ul"),V=W.selection.getRng();if(Z&&Z.firstChild===U&&V.startOffset==0){var Y=X(U);Y.unshift(U);W.execCommand("Outdent",false,Y);W.undoManager.add();return r.cancel(aa)}}}}function O(V,X){var U=B();if(X.keyCode===tinymce.VK.BACKSPACE&&V.dom.is(U,"li")&&U.parentNode.firstChild!==U){if(V.dom.select("ul,ol",U).length===1){var Z=U.previousSibling;V.dom.remove(V.dom.select("br",U));V.dom.remove(U,true);var W=tinymce.grep(Z.childNodes,function(aa){return aa.nodeType===3});if(W.length===1){var Y=W[0];V.selection.setCursorLocation(Y,Y.length)}V.undoManager.add();return r.cancel(X)}}}y.onKeyDown.add(function(U,V){x=M(V)});y.onKeyDown.add(D);y.onKeyDown.add(u);y.onKeyDown.add(K);if(tinymce.isGecko){y.onKeyUp.add(R)}if(tinymce.isIE8){y.onKeyUp.add(S)}if(tinymce.isGecko||tinymce.isWebKit){y.onKeyDown.add(Q)}if(tinymce.isWebKit){y.onKeyDown.add(O)}},applyList:function(y,v){var C=this,z=C.ed,I=z.dom,s=[],H=false,u=false,w=false,B,G=z.selection.getSelectedBlocks();function E(t){if(t&&t.tagName==="BR"){I.remove(t)}}function F(M){var N=I.create(y),t;function L(O){if(O.style.marginLeft||O.style.paddingLeft){C.adjustPaddingFunction(false)(O)}}if(M.tagName==="LI"){}else{if(M.tagName==="P"||M.tagName==="DIV"||M.tagName==="BODY"){K(M,function(P,O){J(P,O,M.tagName==="BODY"?null:P.parentNode);t=P.parentNode;L(t);E(O)});if(t){if(t.tagName==="LI"&&(M.tagName==="P"||G.length>1)){I.split(t.parentNode.parentNode,t.parentNode)}m(t.parentNode,true)}return}else{t=I.create("li");I.insertAfter(t,M);t.appendChild(M);L(M);M=t}}I.insertAfter(N,M);N.appendChild(M);m(N,true);s.push(M)}function J(P,L,N){var t,O=P,M;while(!I.isBlock(P.parentNode)&&P.parentNode!==I.getRoot()){P=I.split(P.parentNode,P.previousSibling);P=P.nextSibling;O=P}if(N){t=N.cloneNode(true);P.parentNode.insertBefore(t,P);while(t.firstChild){I.remove(t.firstChild)}t=I.rename(t,"li")}else{t=I.create("li");P.parentNode.insertBefore(t,P)}while(O&&O!=L){M=O.nextSibling;t.appendChild(O);O=M}if(t.childNodes.length===0){t.innerHTML='<br _mce_bogus="1" />'}F(t)}function K(Q,T){var N,R,O=3,L=1,t="br,ul,ol,p,div,h1,h2,h3,h4,h5,h6,table,blockquote,address,pre,form,center,dl";function P(X,U){var V=I.createRng(),W;g.keep=true;z.selection.moveToBookmark(g);g.keep=false;W=z.selection.getRng(true);if(!U){U=X.parentNode.lastChild}V.setStartBefore(X);V.setEndAfter(U);return !(V.compareBoundaryPoints(O,W)>0||V.compareBoundaryPoints(L,W)<=0)}function S(U){if(U.nextSibling){return U.nextSibling}if(!I.isBlock(U.parentNode)&&U.parentNode!==I.getRoot()){return S(U.parentNode)}}N=Q.firstChild;var M=false;e(I.select(t,Q),function(U){if(U.hasAttribute&&U.hasAttribute("_mce_bogus")){return true}if(P(N,U)){I.addClass(U,"_mce_tagged_br");N=S(U)}});M=(N&&P(N,undefined));N=Q.firstChild;e(I.select(t,Q),function(V){var U=S(V);if(V.hasAttribute&&V.hasAttribute("_mce_bogus")){return true}if(I.hasClass(V,"_mce_tagged_br")){T(N,V,R);R=null}else{R=V}N=U});if(M){T(N,undefined,R)}}function D(t){K(t,function(M,L,N){J(M,L);E(L);E(N)})}function A(t){if(tinymce.inArray(s,t)!==-1){return}if(t.parentNode.tagName===v){I.split(t.parentNode,t);F(t);o(t.parentNode,false)}s.push(t)}function x(M){var O,N,L,t;if(tinymce.inArray(s,M)!==-1){return}M=c(M,I);while(I.is(M.parentNode,"ol,ul,li")){I.split(M.parentNode,M)}s.push(M);M=I.rename(M,"p");L=m(M,false,z.settings.force_br_newlines);if(L===M){O=M.firstChild;while(O){if(I.isBlock(O)){O=I.split(O.parentNode,O);t=true;N=O.nextSibling&&O.nextSibling.firstChild}else{N=O.nextSibling;if(t&&O.tagName==="BR"){I.remove(O)}t=false}O=N}}}e(G,function(t){t=k(t,I);if(t.tagName===v||(t.tagName==="LI"&&t.parentNode.tagName===v)){u=true}else{if(t.tagName===y||(t.tagName==="LI"&&t.parentNode.tagName===y)){H=true}else{w=true}}});if(w&&!H||u||G.length===0){B={LI:A,H1:F,H2:F,H3:F,H4:F,H5:F,H6:F,P:F,BODY:F,DIV:G.length>1?F:D,defaultAction:D,elements:this.selectedBlocks()}}else{B={defaultAction:x,elements:this.selectedBlocks(),processEvenIfEmpty:true}}this.process(B)},indent:function(){var u=this.ed,w=u.dom,x=[];function s(z){var y=w.create("li",{style:"list-style-type: none;"});w.insertAfter(y,z);return y}function t(B){var y=s(B),D=w.getParent(B,"ol,ul"),C=D.tagName,E=w.getStyle(D,"list-style-type"),A={},z;if(E!==""){A.style="list-style-type: "+E+";"}z=w.create(C,A);y.appendChild(z);return z}function v(z){if(!d(u,z,x)){z=c(z,w);var y=t(z);y.appendChild(z);m(y.parentNode,false);m(y,false);x.push(z)}}this.process({LI:v,defaultAction:this.adjustPaddingFunction(true),elements:this.selectedBlocks()})},outdent:function(y,x){var w=this,u=w.ed,z=u.dom,s=[];function A(t){var C,B,D;if(!d(u,t,s)){if(z.getStyle(t,"margin-left")!==""||z.getStyle(t,"padding-left")!==""){return w.adjustPaddingFunction(false)(t)}D=z.getStyle(t,"text-align",true);if(D==="center"||D==="right"){z.setStyle(t,"text-align","left");return}t=c(t,z);C=t.parentNode;B=t.parentNode.parentNode;if(B.tagName==="P"){z.split(B,t.parentNode)}else{z.split(C,t);if(B.tagName==="LI"){z.split(B,t)}else{if(!z.is(B,"ol,ul")){z.rename(t,"p")}}}s.push(t)}}var v=x&&tinymce.is(x,"array")?x:this.selectedBlocks();this.process({LI:A,defaultAction:this.adjustPaddingFunction(false),elements:v});e(s,m)},process:function(y){var F=this,w=F.ed.selection,z=F.ed.dom,E,u;function B(t){var s=tinymce.grep(t.childNodes,function(H){return !(H.nodeName==="BR"||H.nodeName==="SPAN"&&z.getAttrib(H,"data-mce-type")=="bookmark"||H.nodeType==3&&(H.nodeValue==String.fromCharCode(160)||H.nodeValue==""))});return s.length===0}function x(s){z.removeClass(s,"_mce_act_on");if(!s||s.nodeType!==1||!y.processEvenIfEmpty&&E.length>1&&B(s)){return}s=k(s,z);var t=y[s.tagName];if(!t){t=y.defaultAction}t(s)}function v(s){F.splitSafeEach(s.childNodes,x,true)}function C(s,t){return t>=0&&s.hasChildNodes()&&t<s.childNodes.length&&s.childNodes[t].tagName==="BR"}function D(){var t=w.getNode();var s=z.getParent(t,"td");return s!==null}E=y.elements;u=w.getRng(true);if(!u.collapsed){if(C(u.endContainer,u.endOffset-1)){u.setEnd(u.endContainer,u.endOffset-1);w.setRng(u)}if(C(u.startContainer,u.startOffset)){u.setStart(u.startContainer,u.startOffset+1);w.setRng(u)}}if(tinymce.isIE8){var G=F.ed.selection.getNode();if(G.tagName==="LI"&&!(G.parentNode.lastChild===G)){var A=F.ed.getDoc().createTextNode("\uFEFF");G.appendChild(A)}}g=w.getBookmark();y.OL=y.UL=v;F.splitSafeEach(E,x);w.moveToBookmark(g);g=null;if(!D()){F.ed.execCommand("mceRepaint")}},splitSafeEach:function(u,t,s){if(s||(tinymce.isGecko&&(/Firefox\/[12]\.[0-9]/.test(navigator.userAgent)||/Firefox\/3\.[0-4]/.test(navigator.userAgent)))){this.classBasedEach(u,t)}else{e(u,t)}},classBasedEach:function(v,u){var w=this.ed.dom,s,t;e(v,function(x){w.addClass(x,"_mce_act_on")});s=w.select("._mce_act_on");while(s.length>0){t=s.shift();w.removeClass(t,"_mce_act_on");u(t);s=w.select("._mce_act_on")}},adjustPaddingFunction:function(u){var s,v,t=this.ed;s=t.settings.indentation;v=/[a-z%]+/i.exec(s);s=parseInt(s,10);return function(w){var y,x;y=parseInt(t.dom.getStyle(w,"margin-left")||0,10)+parseInt(t.dom.getStyle(w,"padding-left")||0,10);if(u){x=y+s}else{x=y-s}t.dom.setStyle(w,"padding-left","");t.dom.setStyle(w,"margin-left",x>0?x+v:"")}},selectedBlocks:function(){var s=this.ed,t=s.selection.getSelectedBlocks();return t.length==0?[s.dom.getRoot()]:t},getInfo:function(){return{longname:"Lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/lists",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("lists",tinymce.plugins.Lists)}()); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin_src.js
new file mode 100644
index 00000000..1000ef74
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/lists/editor_plugin_src.js
@@ -0,0 +1,955 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2011, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var each = tinymce.each, Event = tinymce.dom.Event, bookmark;
+
+ // Skips text nodes that only contain whitespace since they aren't semantically important.
+ function skipWhitespaceNodes(e, next) {
+ while (e && (e.nodeType === 8 || (e.nodeType === 3 && /^[ \t\n\r]*$/.test(e.nodeValue)))) {
+ e = next(e);
+ }
+ return e;
+ }
+
+ function skipWhitespaceNodesBackwards(e) {
+ return skipWhitespaceNodes(e, function(e) {
+ return e.previousSibling;
+ });
+ }
+
+ function skipWhitespaceNodesForwards(e) {
+ return skipWhitespaceNodes(e, function(e) {
+ return e.nextSibling;
+ });
+ }
+
+ function hasParentInList(ed, e, list) {
+ return ed.dom.getParent(e, function(p) {
+ return tinymce.inArray(list, p) !== -1;
+ });
+ }
+
+ function isList(e) {
+ return e && (e.tagName === 'OL' || e.tagName === 'UL');
+ }
+
+ function splitNestedLists(element, dom) {
+ var tmp, nested, wrapItem;
+ tmp = skipWhitespaceNodesBackwards(element.lastChild);
+ while (isList(tmp)) {
+ nested = tmp;
+ tmp = skipWhitespaceNodesBackwards(nested.previousSibling);
+ }
+ if (nested) {
+ wrapItem = dom.create('li', { style: 'list-style-type: none;'});
+ dom.split(element, nested);
+ dom.insertAfter(wrapItem, nested);
+ wrapItem.appendChild(nested);
+ wrapItem.appendChild(nested);
+ element = wrapItem.previousSibling;
+ }
+ return element;
+ }
+
+ function attemptMergeWithAdjacent(e, allowDifferentListStyles, mergeParagraphs) {
+ e = attemptMergeWithPrevious(e, allowDifferentListStyles, mergeParagraphs);
+ return attemptMergeWithNext(e, allowDifferentListStyles, mergeParagraphs);
+ }
+
+ function attemptMergeWithPrevious(e, allowDifferentListStyles, mergeParagraphs) {
+ var prev = skipWhitespaceNodesBackwards(e.previousSibling);
+ if (prev) {
+ return attemptMerge(prev, e, allowDifferentListStyles ? prev : false, mergeParagraphs);
+ } else {
+ return e;
+ }
+ }
+
+ function attemptMergeWithNext(e, allowDifferentListStyles, mergeParagraphs) {
+ var next = skipWhitespaceNodesForwards(e.nextSibling);
+ if (next) {
+ return attemptMerge(e, next, allowDifferentListStyles ? next : false, mergeParagraphs);
+ } else {
+ return e;
+ }
+ }
+
+ function attemptMerge(e1, e2, differentStylesMasterElement, mergeParagraphs) {
+ if (canMerge(e1, e2, !!differentStylesMasterElement, mergeParagraphs)) {
+ return merge(e1, e2, differentStylesMasterElement);
+ } else if (e1 && e1.tagName === 'LI' && isList(e2)) {
+ // Fix invalidly nested lists.
+ e1.appendChild(e2);
+ }
+ return e2;
+ }
+
+ function canMerge(e1, e2, allowDifferentListStyles, mergeParagraphs) {
+ if (!e1 || !e2) {
+ return false;
+ } else if (e1.tagName === 'LI' && e2.tagName === 'LI') {
+ return e2.style.listStyleType === 'none' || containsOnlyAList(e2);
+ } else if (isList(e1)) {
+ return (e1.tagName === e2.tagName && (allowDifferentListStyles || e1.style.listStyleType === e2.style.listStyleType)) || isListForIndent(e2);
+ } else return mergeParagraphs && e1.tagName === 'P' && e2.tagName === 'P';
+ }
+
+ function isListForIndent(e) {
+ var firstLI = skipWhitespaceNodesForwards(e.firstChild), lastLI = skipWhitespaceNodesBackwards(e.lastChild);
+ return firstLI && lastLI && isList(e) && firstLI === lastLI && (isList(firstLI) || firstLI.style.listStyleType === 'none' || containsOnlyAList(firstLI));
+ }
+
+ function containsOnlyAList(e) {
+ var firstChild = skipWhitespaceNodesForwards(e.firstChild), lastChild = skipWhitespaceNodesBackwards(e.lastChild);
+ return firstChild && lastChild && firstChild === lastChild && isList(firstChild);
+ }
+
+ function merge(e1, e2, masterElement) {
+ var lastOriginal = skipWhitespaceNodesBackwards(e1.lastChild), firstNew = skipWhitespaceNodesForwards(e2.firstChild);
+ if (e1.tagName === 'P') {
+ e1.appendChild(e1.ownerDocument.createElement('br'));
+ }
+ while (e2.firstChild) {
+ e1.appendChild(e2.firstChild);
+ }
+ if (masterElement) {
+ e1.style.listStyleType = masterElement.style.listStyleType;
+ }
+ e2.parentNode.removeChild(e2);
+ attemptMerge(lastOriginal, firstNew, false);
+ return e1;
+ }
+
+ function findItemToOperateOn(e, dom) {
+ var item;
+ if (!dom.is(e, 'li,ol,ul')) {
+ item = dom.getParent(e, 'li');
+ if (item) {
+ e = item;
+ }
+ }
+ return e;
+ }
+
+ tinymce.create('tinymce.plugins.Lists', {
+ init: function(ed) {
+ var LIST_TABBING = 'TABBING';
+ var LIST_EMPTY_ITEM = 'EMPTY';
+ var LIST_ESCAPE = 'ESCAPE';
+ var LIST_PARAGRAPH = 'PARAGRAPH';
+ var LIST_UNKNOWN = 'UNKNOWN';
+ var state = LIST_UNKNOWN;
+
+ function isTabInList(e) {
+ // Don't indent on Ctrl+Tab or Alt+Tab
+ return e.keyCode === tinymce.VK.TAB && !(e.altKey || e.ctrlKey) &&
+ (ed.queryCommandState('InsertUnorderedList') || ed.queryCommandState('InsertOrderedList'));
+ }
+
+ function isOnLastListItem() {
+ var li = getLi();
+ var grandParent = li.parentNode.parentNode;
+ var isLastItem = li.parentNode.lastChild === li;
+ return isLastItem && !isNestedList(grandParent) && isEmptyListItem(li);
+ }
+
+ function isNestedList(grandParent) {
+ if (isList(grandParent)) {
+ return grandParent.parentNode && grandParent.parentNode.tagName === 'LI';
+ } else {
+ return grandParent.tagName === 'LI';
+ }
+ }
+
+ function isInEmptyListItem() {
+ return ed.selection.isCollapsed() && isEmptyListItem(getLi());
+ }
+
+ function getLi() {
+ var n = ed.selection.getStart();
+ // Get start will return BR if the LI only contains a BR or an empty element as we use these to fix caret position
+ return ((n.tagName == 'BR' || n.tagName == '') && n.parentNode.tagName == 'LI') ? n.parentNode : n;
+ }
+
+ function isEmptyListItem(li) {
+ var numChildren = li.childNodes.length;
+ if (li.tagName === 'LI') {
+ return numChildren == 0 ? true : numChildren == 1 && (li.firstChild.tagName == '' || li.firstChild.tagName == 'BR' || isEmptyIE9Li(li));
+ }
+ return false;
+ }
+
+ function isEmptyIE9Li(li) {
+ // only consider this to be last item if there is no list item content or that content is nbsp or space since IE9 creates these
+ var lis = tinymce.grep(li.parentNode.childNodes, function(n) {return n.tagName == 'LI'});
+ var isLastLi = li == lis[lis.length - 1];
+ var child = li.firstChild;
+ return tinymce.isIE9 && isLastLi && (child.nodeValue == String.fromCharCode(160) || child.nodeValue == String.fromCharCode(32));
+ }
+
+ function isEnter(e) {
+ return e.keyCode === tinymce.VK.ENTER;
+ }
+
+ function isEnterWithoutShift(e) {
+ return isEnter(e) && !e.shiftKey;
+ }
+
+ function getListKeyState(e) {
+ if (isTabInList(e)) {
+ return LIST_TABBING;
+ } else if (isEnterWithoutShift(e) && isOnLastListItem()) {
+ // Returns LIST_UNKNOWN since breaking out of lists is handled by the EnterKey.js logic now
+ //return LIST_ESCAPE;
+ return LIST_UNKNOWN;
+ } else if (isEnterWithoutShift(e) && isInEmptyListItem()) {
+ return LIST_EMPTY_ITEM;
+ } else {
+ return LIST_UNKNOWN;
+ }
+ }
+
+ function cancelDefaultEvents(ed, e) {
+ // list escape is done manually using outdent as it does not create paragraphs correctly in td's
+ if (state == LIST_TABBING || state == LIST_EMPTY_ITEM || tinymce.isGecko && state == LIST_ESCAPE) {
+ Event.cancel(e);
+ }
+ }
+
+ function isCursorAtEndOfContainer() {
+ var range = ed.selection.getRng(true);
+ var startContainer = range.startContainer;
+ if (startContainer.nodeType == 3) {
+ var value = startContainer.nodeValue;
+ if (tinymce.isIE9 && value.length > 1 && value.charCodeAt(value.length-1) == 32) {
+ // IE9 places a space on the end of the text in some cases so ignore last char
+ return (range.endOffset == value.length-1);
+ } else {
+ return (range.endOffset == value.length);
+ }
+ } else if (startContainer.nodeType == 1) {
+ return range.endOffset == startContainer.childNodes.length;
+ }
+ return false;
+ }
+
+ /*
+ If we are at the end of a list item surrounded with an element, pressing enter should create a
+ new list item instead without splitting the element e.g. don't want to create new P or H1 tag
+ */
+ function isEndOfListItem() {
+ var node = ed.selection.getNode();
+ var validElements = 'h1,h2,h3,h4,h5,h6,p,div';
+ var isLastParagraphOfLi = ed.dom.is(node, validElements) && node.parentNode.tagName === 'LI' && node.parentNode.lastChild === node;
+ return ed.selection.isCollapsed() && isLastParagraphOfLi && isCursorAtEndOfContainer();
+ }
+
+ // Creates a new list item after the current selection's list item parent
+ function createNewLi(ed, e) {
+ if (isEnterWithoutShift(e) && isEndOfListItem()) {
+ var node = ed.selection.getNode();
+ var li = ed.dom.create("li");
+ var parentLi = ed.dom.getParent(node, 'li');
+ ed.dom.insertAfter(li, parentLi);
+
+ // Move caret to new list element.
+ if (tinymce.isIE6 || tinymce.isIE7 || tinyMCE.isIE8) {
+ // Removed this line since it would create an odd <&nbsp;> tag and placing the caret inside an empty LI is handled and should be handled by the selection logic
+ //li.appendChild(ed.dom.create("&nbsp;")); // IE needs an element within the bullet point
+ ed.selection.setCursorLocation(li, 1);
+ } else {
+ ed.selection.setCursorLocation(li, 0);
+ }
+ e.preventDefault();
+ }
+ }
+
+ function imageJoiningListItem(ed, e) {
+ var prevSibling;
+
+ if (!tinymce.isGecko)
+ return;
+
+ var n = ed.selection.getStart();
+ if (e.keyCode != tinymce.VK.BACKSPACE || n.tagName !== 'IMG')
+ return;
+
+ function lastLI(node) {
+ var child = node.firstChild;
+ var li = null;
+ do {
+ if (!child)
+ break;
+
+ if (child.tagName === 'LI')
+ li = child;
+ } while (child = child.nextSibling);
+
+ return li;
+ }
+
+ function addChildren(parentNode, destination) {
+ while (parentNode.childNodes.length > 0)
+ destination.appendChild(parentNode.childNodes[0]);
+ }
+
+ // Check if there is a previous sibling
+ prevSibling = n.parentNode.previousSibling;
+ if (!prevSibling)
+ return;
+
+ var ul;
+ if (prevSibling.tagName === 'UL' || prevSibling.tagName === 'OL')
+ ul = prevSibling;
+ else if (prevSibling.previousSibling && (prevSibling.previousSibling.tagName === 'UL' || prevSibling.previousSibling.tagName === 'OL'))
+ ul = prevSibling.previousSibling;
+ else
+ return;
+
+ var li = lastLI(ul);
+
+ // move the caret to the end of the list item
+ var rng = ed.dom.createRng();
+ rng.setStart(li, 1);
+ rng.setEnd(li, 1);
+ ed.selection.setRng(rng);
+ ed.selection.collapse(true);
+
+ // save a bookmark at the end of the list item
+ var bookmark = ed.selection.getBookmark();
+
+ // copy the image an its text to the list item
+ var clone = n.parentNode.cloneNode(true);
+ if (clone.tagName === 'P' || clone.tagName === 'DIV')
+ addChildren(clone, li);
+ else
+ li.appendChild(clone);
+
+ // remove the old copy of the image
+ n.parentNode.parentNode.removeChild(n.parentNode);
+
+ // move the caret where we saved the bookmark
+ ed.selection.moveToBookmark(bookmark);
+ }
+
+ // fix the cursor position to ensure it is correct in IE
+ function setCursorPositionToOriginalLi(li) {
+ var list = ed.dom.getParent(li, 'ol,ul');
+ if (list != null) {
+ var lastLi = list.lastChild;
+ // Removed this line since IE9 would report an DOM character error and placing the caret inside an empty LI is handled and should be handled by the selection logic
+ //lastLi.appendChild(ed.getDoc().createElement(''));
+ ed.selection.setCursorLocation(lastLi, 0);
+ }
+ }
+
+ this.ed = ed;
+ ed.addCommand('Indent', this.indent, this);
+ ed.addCommand('Outdent', this.outdent, this);
+ ed.addCommand('InsertUnorderedList', function() {
+ this.applyList('UL', 'OL');
+ }, this);
+ ed.addCommand('InsertOrderedList', function() {
+ this.applyList('OL', 'UL');
+ }, this);
+
+ ed.onInit.add(function() {
+ ed.editorCommands.addCommands({
+ 'outdent': function() {
+ var sel = ed.selection, dom = ed.dom;
+
+ function hasStyleIndent(n) {
+ n = dom.getParent(n, dom.isBlock);
+ return n && (parseInt(ed.dom.getStyle(n, 'margin-left') || 0, 10) + parseInt(ed.dom.getStyle(n, 'padding-left') || 0, 10)) > 0;
+ }
+
+ return hasStyleIndent(sel.getStart()) || hasStyleIndent(sel.getEnd()) || ed.queryCommandState('InsertOrderedList') || ed.queryCommandState('InsertUnorderedList');
+ }
+ }, 'state');
+ });
+
+ ed.onKeyUp.add(function(ed, e) {
+ if (state == LIST_TABBING) {
+ ed.execCommand(e.shiftKey ? 'Outdent' : 'Indent', true, null);
+ state = LIST_UNKNOWN;
+ return Event.cancel(e);
+ } else if (state == LIST_EMPTY_ITEM) {
+ var li = getLi();
+ var shouldOutdent = ed.settings.list_outdent_on_enter === true || e.shiftKey;
+ ed.execCommand(shouldOutdent ? 'Outdent' : 'Indent', true, null);
+ if (tinymce.isIE) {
+ setCursorPositionToOriginalLi(li);
+ }
+
+ return Event.cancel(e);
+ } else if (state == LIST_ESCAPE) {
+ if (tinymce.isIE6 || tinymce.isIE7 || tinymce.isIE8) {
+ // append a zero sized nbsp so that caret is positioned correctly in IE after escaping and applying formatting.
+ // if there is no text then applying formatting for e.g a H1 to the P tag immediately following list after
+ // escaping from it will cause the caret to be positioned on the last li instead of staying the in P tag.
+ var n = ed.getDoc().createTextNode('\uFEFF');
+ ed.selection.getNode().appendChild(n);
+ } else if (tinymce.isIE9 || tinymce.isGecko) {
+ // IE9 does not escape the list so we use outdent to do this and cancel the default behaviour
+ // Gecko does not create a paragraph outdenting inside a TD so default behaviour is cancelled and we outdent ourselves
+ ed.execCommand('Outdent');
+ return Event.cancel(e);
+ }
+ }
+ });
+
+ function fixListItem(parent, reference) {
+ // a zero-sized non-breaking space is placed in the empty list item so that the nested list is
+ // displayed on the below line instead of next to it
+ var n = ed.getDoc().createTextNode('\uFEFF');
+ parent.insertBefore(n, reference);
+ ed.selection.setCursorLocation(n, 0);
+ // repaint to remove rendering artifact. only visible when creating new list
+ ed.execCommand('mceRepaint');
+ }
+
+ function fixIndentedListItemForGecko(ed, e) {
+ if (isEnter(e)) {
+ var li = getLi();
+ if (li) {
+ var parent = li.parentNode;
+ var grandParent = parent && parent.parentNode;
+ if (grandParent && grandParent.nodeName == 'LI' && grandParent.firstChild == parent && li == parent.firstChild) {
+ fixListItem(grandParent, parent);
+ }
+ }
+ }
+ }
+
+ function fixIndentedListItemForIE8(ed, e) {
+ if (isEnter(e)) {
+ var li = getLi();
+ if (ed.dom.select('ul li', li).length === 1) {
+ var list = li.firstChild;
+ fixListItem(li, list);
+ }
+ }
+ }
+
+ function fixDeletingFirstCharOfList(ed, e) {
+ function listElements(li) {
+ var elements = [];
+ var walker = new tinymce.dom.TreeWalker(li.firstChild, li);
+ for (var node = walker.current(); node; node = walker.next()) {
+ if (ed.dom.is(node, 'ol,ul,li')) {
+ elements.push(node);
+ }
+ }
+ return elements;
+ }
+
+ if (e.keyCode == tinymce.VK.BACKSPACE) {
+ var li = getLi();
+ if (li) {
+ var list = ed.dom.getParent(li, 'ol,ul'),
+ rng = ed.selection.getRng();
+ if (list && list.firstChild === li && rng.startOffset == 0) {
+ var elements = listElements(li);
+ elements.unshift(li);
+ ed.execCommand("Outdent", false, elements);
+ ed.undoManager.add();
+ return Event.cancel(e);
+ }
+ }
+ }
+ }
+
+ function fixDeletingEmptyLiInWebkit(ed, e) {
+ var li = getLi();
+ if (e.keyCode === tinymce.VK.BACKSPACE && ed.dom.is(li, 'li') && li.parentNode.firstChild!==li) {
+ if (ed.dom.select('ul,ol', li).length === 1) {
+ var prevLi = li.previousSibling;
+ ed.dom.remove(ed.dom.select('br', li));
+ ed.dom.remove(li, true);
+ var textNodes = tinymce.grep(prevLi.childNodes, function(n){ return n.nodeType === 3 });
+ if (textNodes.length === 1) {
+ var textNode = textNodes[0];
+ ed.selection.setCursorLocation(textNode, textNode.length);
+ }
+ ed.undoManager.add();
+ return Event.cancel(e);
+ }
+ }
+ }
+
+ ed.onKeyDown.add(function(_, e) { state = getListKeyState(e); });
+ ed.onKeyDown.add(cancelDefaultEvents);
+ ed.onKeyDown.add(imageJoiningListItem);
+ ed.onKeyDown.add(createNewLi);
+
+ if (tinymce.isGecko) {
+ ed.onKeyUp.add(fixIndentedListItemForGecko);
+ }
+ if (tinymce.isIE8) {
+ ed.onKeyUp.add(fixIndentedListItemForIE8);
+ }
+ if (tinymce.isGecko || tinymce.isWebKit) {
+ ed.onKeyDown.add(fixDeletingFirstCharOfList);
+ }
+ if (tinymce.isWebKit) {
+ ed.onKeyDown.add(fixDeletingEmptyLiInWebkit);
+ }
+ },
+
+ applyList: function(targetListType, oppositeListType) {
+ var t = this, ed = t.ed, dom = ed.dom, applied = [], hasSameType = false, hasOppositeType = false, hasNonList = false, actions,
+ selectedBlocks = ed.selection.getSelectedBlocks();
+
+ function cleanupBr(e) {
+ if (e && e.tagName === 'BR') {
+ dom.remove(e);
+ }
+ }
+
+ function makeList(element) {
+ var list = dom.create(targetListType), li;
+
+ function adjustIndentForNewList(element) {
+ // If there's a margin-left, outdent one level to account for the extra list margin.
+ if (element.style.marginLeft || element.style.paddingLeft) {
+ t.adjustPaddingFunction(false)(element);
+ }
+ }
+
+ if (element.tagName === 'LI') {
+ // No change required.
+ } else if (element.tagName === 'P' || element.tagName === 'DIV' || element.tagName === 'BODY') {
+ processBrs(element, function(startSection, br) {
+ doWrapList(startSection, br, element.tagName === 'BODY' ? null : startSection.parentNode);
+ li = startSection.parentNode;
+ adjustIndentForNewList(li);
+ cleanupBr(br);
+ });
+ if (li) {
+ if (li.tagName === 'LI' && (element.tagName === 'P' || selectedBlocks.length > 1)) {
+ dom.split(li.parentNode.parentNode, li.parentNode);
+ }
+ attemptMergeWithAdjacent(li.parentNode, true);
+ }
+ return;
+ } else {
+ // Put the list around the element.
+ li = dom.create('li');
+ dom.insertAfter(li, element);
+ li.appendChild(element);
+ adjustIndentForNewList(element);
+ element = li;
+ }
+ dom.insertAfter(list, element);
+ list.appendChild(element);
+ attemptMergeWithAdjacent(list, true);
+ applied.push(element);
+ }
+
+ function doWrapList(start, end, template) {
+ var li, n = start, tmp;
+ while (!dom.isBlock(start.parentNode) && start.parentNode !== dom.getRoot()) {
+ start = dom.split(start.parentNode, start.previousSibling);
+ start = start.nextSibling;
+ n = start;
+ }
+ if (template) {
+ li = template.cloneNode(true);
+ start.parentNode.insertBefore(li, start);
+ while (li.firstChild) dom.remove(li.firstChild);
+ li = dom.rename(li, 'li');
+ } else {
+ li = dom.create('li');
+ start.parentNode.insertBefore(li, start);
+ }
+ while (n && n != end) {
+ tmp = n.nextSibling;
+ li.appendChild(n);
+ n = tmp;
+ }
+ if (li.childNodes.length === 0) {
+ li.innerHTML = '<br _mce_bogus="1" />';
+ }
+ makeList(li);
+ }
+
+ function processBrs(element, callback) {
+ var startSection, previousBR, END_TO_START = 3, START_TO_END = 1,
+ breakElements = 'br,ul,ol,p,div,h1,h2,h3,h4,h5,h6,table,blockquote,address,pre,form,center,dl';
+
+ function isAnyPartSelected(start, end) {
+ var r = dom.createRng(), sel;
+ bookmark.keep = true;
+ ed.selection.moveToBookmark(bookmark);
+ bookmark.keep = false;
+ sel = ed.selection.getRng(true);
+ if (!end) {
+ end = start.parentNode.lastChild;
+ }
+ r.setStartBefore(start);
+ r.setEndAfter(end);
+ return !(r.compareBoundaryPoints(END_TO_START, sel) > 0 || r.compareBoundaryPoints(START_TO_END, sel) <= 0);
+ }
+
+ function nextLeaf(br) {
+ if (br.nextSibling)
+ return br.nextSibling;
+ if (!dom.isBlock(br.parentNode) && br.parentNode !== dom.getRoot())
+ return nextLeaf(br.parentNode);
+ }
+
+ // Split on BRs within the range and process those.
+ startSection = element.firstChild;
+ // First mark the BRs that have any part of the previous section selected.
+ var trailingContentSelected = false;
+ each(dom.select(breakElements, element), function(br) {
+ if (br.hasAttribute && br.hasAttribute('_mce_bogus')) {
+ return true; // Skip the bogus Brs that are put in to appease Firefox and Safari.
+ }
+ if (isAnyPartSelected(startSection, br)) {
+ dom.addClass(br, '_mce_tagged_br');
+ startSection = nextLeaf(br);
+ }
+ });
+ trailingContentSelected = (startSection && isAnyPartSelected(startSection, undefined));
+ startSection = element.firstChild;
+ each(dom.select(breakElements, element), function(br) {
+ // Got a section from start to br.
+ var tmp = nextLeaf(br);
+ if (br.hasAttribute && br.hasAttribute('_mce_bogus')) {
+ return true; // Skip the bogus Brs that are put in to appease Firefox and Safari.
+ }
+ if (dom.hasClass(br, '_mce_tagged_br')) {
+ callback(startSection, br, previousBR);
+ previousBR = null;
+ } else {
+ previousBR = br;
+ }
+ startSection = tmp;
+ });
+ if (trailingContentSelected) {
+ callback(startSection, undefined, previousBR);
+ }
+ }
+
+ function wrapList(element) {
+ processBrs(element, function(startSection, br, previousBR) {
+ // Need to indent this part
+ doWrapList(startSection, br);
+ cleanupBr(br);
+ cleanupBr(previousBR);
+ });
+ }
+
+ function changeList(element) {
+ if (tinymce.inArray(applied, element) !== -1) {
+ return;
+ }
+ if (element.parentNode.tagName === oppositeListType) {
+ dom.split(element.parentNode, element);
+ makeList(element);
+ attemptMergeWithNext(element.parentNode, false);
+ }
+ applied.push(element);
+ }
+
+ function convertListItemToParagraph(element) {
+ var child, nextChild, mergedElement, splitLast;
+ if (tinymce.inArray(applied, element) !== -1) {
+ return;
+ }
+ element = splitNestedLists(element, dom);
+ while (dom.is(element.parentNode, 'ol,ul,li')) {
+ dom.split(element.parentNode, element);
+ }
+ // Push the original element we have from the selection, not the renamed one.
+ applied.push(element);
+ element = dom.rename(element, 'p');
+ mergedElement = attemptMergeWithAdjacent(element, false, ed.settings.force_br_newlines);
+ if (mergedElement === element) {
+ // Now split out any block elements that can't be contained within a P.
+ // Manually iterate to ensure we handle modifications correctly (doesn't work with tinymce.each)
+ child = element.firstChild;
+ while (child) {
+ if (dom.isBlock(child)) {
+ child = dom.split(child.parentNode, child);
+ splitLast = true;
+ nextChild = child.nextSibling && child.nextSibling.firstChild;
+ } else {
+ nextChild = child.nextSibling;
+ if (splitLast && child.tagName === 'BR') {
+ dom.remove(child);
+ }
+ splitLast = false;
+ }
+ child = nextChild;
+ }
+ }
+ }
+
+ each(selectedBlocks, function(e) {
+ e = findItemToOperateOn(e, dom);
+ if (e.tagName === oppositeListType || (e.tagName === 'LI' && e.parentNode.tagName === oppositeListType)) {
+ hasOppositeType = true;
+ } else if (e.tagName === targetListType || (e.tagName === 'LI' && e.parentNode.tagName === targetListType)) {
+ hasSameType = true;
+ } else {
+ hasNonList = true;
+ }
+ });
+
+ if (hasNonList &&!hasSameType || hasOppositeType || selectedBlocks.length === 0) {
+ actions = {
+ 'LI': changeList,
+ 'H1': makeList,
+ 'H2': makeList,
+ 'H3': makeList,
+ 'H4': makeList,
+ 'H5': makeList,
+ 'H6': makeList,
+ 'P': makeList,
+ 'BODY': makeList,
+ 'DIV': selectedBlocks.length > 1 ? makeList : wrapList,
+ defaultAction: wrapList,
+ elements: this.selectedBlocks()
+ };
+ } else {
+ actions = {
+ defaultAction: convertListItemToParagraph,
+ elements: this.selectedBlocks(),
+ processEvenIfEmpty: true
+ };
+ }
+ this.process(actions);
+ },
+
+ indent: function() {
+ var ed = this.ed, dom = ed.dom, indented = [];
+
+ function createWrapItem(element) {
+ var wrapItem = dom.create('li', { style: 'list-style-type: none;'});
+ dom.insertAfter(wrapItem, element);
+ return wrapItem;
+ }
+
+ function createWrapList(element) {
+ var wrapItem = createWrapItem(element),
+ list = dom.getParent(element, 'ol,ul'),
+ listType = list.tagName,
+ listStyle = dom.getStyle(list, 'list-style-type'),
+ attrs = {},
+ wrapList;
+ if (listStyle !== '') {
+ attrs.style = 'list-style-type: ' + listStyle + ';';
+ }
+ wrapList = dom.create(listType, attrs);
+ wrapItem.appendChild(wrapList);
+ return wrapList;
+ }
+
+ function indentLI(element) {
+ if (!hasParentInList(ed, element, indented)) {
+ element = splitNestedLists(element, dom);
+ var wrapList = createWrapList(element);
+ wrapList.appendChild(element);
+ attemptMergeWithAdjacent(wrapList.parentNode, false);
+ attemptMergeWithAdjacent(wrapList, false);
+ indented.push(element);
+ }
+ }
+
+ this.process({
+ 'LI': indentLI,
+ defaultAction: this.adjustPaddingFunction(true),
+ elements: this.selectedBlocks()
+ });
+
+ },
+
+ outdent: function(ui, elements) {
+ var t = this, ed = t.ed, dom = ed.dom, outdented = [];
+
+ function outdentLI(element) {
+ var listElement, targetParent, align;
+ if (!hasParentInList(ed, element, outdented)) {
+ if (dom.getStyle(element, 'margin-left') !== '' || dom.getStyle(element, 'padding-left') !== '') {
+ return t.adjustPaddingFunction(false)(element);
+ }
+ align = dom.getStyle(element, 'text-align', true);
+ if (align === 'center' || align === 'right') {
+ dom.setStyle(element, 'text-align', 'left');
+ return;
+ }
+ element = splitNestedLists(element, dom);
+ listElement = element.parentNode;
+ targetParent = element.parentNode.parentNode;
+ if (targetParent.tagName === 'P') {
+ dom.split(targetParent, element.parentNode);
+ } else {
+ dom.split(listElement, element);
+ if (targetParent.tagName === 'LI') {
+ // Nested list, need to split the LI and go back out to the OL/UL element.
+ dom.split(targetParent, element);
+ } else if (!dom.is(targetParent, 'ol,ul')) {
+ dom.rename(element, 'p');
+ }
+ }
+ outdented.push(element);
+ }
+ }
+
+ var listElements = elements && tinymce.is(elements, 'array') ? elements : this.selectedBlocks();
+ this.process({
+ 'LI': outdentLI,
+ defaultAction: this.adjustPaddingFunction(false),
+ elements: listElements
+ });
+
+ each(outdented, attemptMergeWithAdjacent);
+ },
+
+ process: function(actions) {
+ var t = this, sel = t.ed.selection, dom = t.ed.dom, selectedBlocks, r;
+
+ function isEmptyElement(element) {
+ var excludeBrsAndBookmarks = tinymce.grep(element.childNodes, function(n) {
+ return !(n.nodeName === 'BR' || n.nodeName === 'SPAN' && dom.getAttrib(n, 'data-mce-type') == 'bookmark'
+ || n.nodeType == 3 && (n.nodeValue == String.fromCharCode(160) || n.nodeValue == ''));
+ });
+ return excludeBrsAndBookmarks.length === 0;
+ }
+
+ function processElement(element) {
+ dom.removeClass(element, '_mce_act_on');
+ if (!element || element.nodeType !== 1 || ! actions.processEvenIfEmpty && selectedBlocks.length > 1 && isEmptyElement(element)) {
+ return;
+ }
+ element = findItemToOperateOn(element, dom);
+ var action = actions[element.tagName];
+ if (!action) {
+ action = actions.defaultAction;
+ }
+ action(element);
+ }
+
+ function recurse(element) {
+ t.splitSafeEach(element.childNodes, processElement, true);
+ }
+
+ function brAtEdgeOfSelection(container, offset) {
+ return offset >= 0 && container.hasChildNodes() && offset < container.childNodes.length &&
+ container.childNodes[offset].tagName === 'BR';
+ }
+
+ function isInTable() {
+ var n = sel.getNode();
+ var p = dom.getParent(n, 'td');
+ return p !== null;
+ }
+
+ selectedBlocks = actions.elements;
+
+ r = sel.getRng(true);
+ if (!r.collapsed) {
+ if (brAtEdgeOfSelection(r.endContainer, r.endOffset - 1)) {
+ r.setEnd(r.endContainer, r.endOffset - 1);
+ sel.setRng(r);
+ }
+ if (brAtEdgeOfSelection(r.startContainer, r.startOffset)) {
+ r.setStart(r.startContainer, r.startOffset + 1);
+ sel.setRng(r);
+ }
+ }
+
+
+ if (tinymce.isIE8) {
+ // append a zero sized nbsp so that caret is restored correctly using bookmark
+ var s = t.ed.selection.getNode();
+ if (s.tagName === 'LI' && !(s.parentNode.lastChild === s)) {
+ var i = t.ed.getDoc().createTextNode('\uFEFF');
+ s.appendChild(i);
+ }
+ }
+
+ bookmark = sel.getBookmark();
+ actions.OL = actions.UL = recurse;
+ t.splitSafeEach(selectedBlocks, processElement);
+ sel.moveToBookmark(bookmark);
+ bookmark = null;
+
+ // we avoid doing repaint in a table as this will move the caret out of the table in Firefox 3.6
+ if (!isInTable()) {
+ // Avoids table or image handles being left behind in Firefox.
+ t.ed.execCommand('mceRepaint');
+ }
+ },
+
+ splitSafeEach: function(elements, f, forceClassBase) {
+ if (forceClassBase ||
+ (tinymce.isGecko &&
+ (/Firefox\/[12]\.[0-9]/.test(navigator.userAgent) ||
+ /Firefox\/3\.[0-4]/.test(navigator.userAgent)))) {
+ this.classBasedEach(elements, f);
+ } else {
+ each(elements, f);
+ }
+ },
+
+ classBasedEach: function(elements, f) {
+ var dom = this.ed.dom, nodes, element;
+ // Mark nodes
+ each(elements, function(element) {
+ dom.addClass(element, '_mce_act_on');
+ });
+ nodes = dom.select('._mce_act_on');
+ while (nodes.length > 0) {
+ element = nodes.shift();
+ dom.removeClass(element, '_mce_act_on');
+ f(element);
+ nodes = dom.select('._mce_act_on');
+ }
+ },
+
+ adjustPaddingFunction: function(isIndent) {
+ var indentAmount, indentUnits, ed = this.ed;
+ indentAmount = ed.settings.indentation;
+ indentUnits = /[a-z%]+/i.exec(indentAmount);
+ indentAmount = parseInt(indentAmount, 10);
+ return function(element) {
+ var currentIndent, newIndentAmount;
+ currentIndent = parseInt(ed.dom.getStyle(element, 'margin-left') || 0, 10) + parseInt(ed.dom.getStyle(element, 'padding-left') || 0, 10);
+ if (isIndent) {
+ newIndentAmount = currentIndent + indentAmount;
+ } else {
+ newIndentAmount = currentIndent - indentAmount;
+ }
+ ed.dom.setStyle(element, 'padding-left', '');
+ ed.dom.setStyle(element, 'margin-left', newIndentAmount > 0 ? newIndentAmount + indentUnits : '');
+ };
+ },
+
+ selectedBlocks: function() {
+ var ed = this.ed, selectedBlocks = ed.selection.getSelectedBlocks();
+ return selectedBlocks.length == 0 ? [ ed.dom.getRoot() ] : selectedBlocks;
+ },
+
+ getInfo: function() {
+ return {
+ longname : 'Lists',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/lists',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+ tinymce.PluginManager.add("lists", tinymce.plugins.Lists);
+}());
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/css/media.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/css/media.css
new file mode 100755
index 00000000..0c45c7ff
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/css/media.css
@@ -0,0 +1,17 @@
+#id, #name, #hspace, #vspace, #class_name, #align { width: 100px }
+#hspace, #vspace { width: 50px }
+#flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: 100px }
+#flash_base, #flash_flashvars, #html5_altsource1, #html5_altsource2, #html5_poster { width: 240px }
+#width, #height { width: 40px }
+#src, #media_type { width: 250px }
+#class { width: 120px }
+#prev { margin: 0; border: 1px solid black; width: 380px; height: 260px; overflow: auto }
+.panel_wrapper div.current { height: 420px; overflow: auto }
+#flash_options, #shockwave_options, #qt_options, #wmp_options, #rmp_options { display: none }
+.mceAddSelectValue { background-color: #DDDDDD }
+#qt_starttime, #qt_endtime, #qt_fov, #qt_href, #qt_moveid, #qt_moviename, #qt_node, #qt_pan, #qt_qtsrc, #qt_qtsrcchokespeed, #qt_target, #qt_tilt, #qt_urlsubstituten, #qt_volume { width: 70px }
+#wmp_balance, #wmp_baseurl, #wmp_captioningid, #wmp_currentmarker, #wmp_currentposition, #wmp_defaultframe, #wmp_playcount, #wmp_rate, #wmp_uimode, #wmp_volume { width: 70px }
+#rmp_console, #rmp_numloop, #rmp_controls, #rmp_scriptcallbacks { width: 70px }
+#shockwave_swvolume, #shockwave_swframe, #shockwave_swurl, #shockwave_swstretchvalign, #shockwave_swstretchhalign, #shockwave_swstretchstyle { width: 90px }
+#qt_qtsrc { width: 200px }
+iframe {border: 1px solid gray}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin.js
new file mode 100755
index 00000000..9ac42e0d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var b=tinymce.explode("id,name,width,height,style,align,class,hspace,vspace,bgcolor,type"),a=tinymce.makeMap(b.join(",")),f=tinymce.html.Node,d,i,h=tinymce.util.JSON,g;d=[["Flash","d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],["ShockWave","166b1bca-3f9c-11cf-8075-444553540000","application/x-director","http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"],["WindowsMedia","6bf52a52-394a-11d3-b153-00c04f79faa6,22d6f312-b0f6-11d0-94ab-0080c74c7e95,05589fa1-c356-11ce-bf01-00aa0055595a","application/x-mplayer2","http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"],["QuickTime","02bf25d5-8c17-4b23-bc80-d3488abddc6b","video/quicktime","http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"],["RealMedia","cfcdaa03-8be4-11cf-b84b-0020afbbccfa","audio/x-pn-realaudio-plugin","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],["Java","8ad9c840-044e-11d1-b3e9-00805f499d93","application/x-java-applet","http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0"],["Silverlight","dfeaf541-f3e1-4c24-acac-99c30715084a","application/x-silverlight-2"],["Iframe"],["Video"],["EmbeddedAudio"],["Audio"]];function e(j){return typeof(j)=="string"?j.replace(/[^0-9%]/g,""):j}function c(m){var l,j,k;if(m&&!m.splice){j=[];for(k=0;true;k++){if(m[k]){j[k]=m[k]}else{break}}return j}return m}tinymce.create("tinymce.plugins.MediaPlugin",{init:function(n,j){var r=this,l={},m,p,q,k;function o(s){return s&&s.nodeName==="IMG"&&n.dom.hasClass(s,"mceItemMedia")}r.editor=n;r.url=j;i="";for(m=0;m<d.length;m++){k=d[m][0];q={name:k,clsids:tinymce.explode(d[m][1]||""),mimes:tinymce.explode(d[m][2]||""),codebase:d[m][3]};for(p=0;p<q.clsids.length;p++){l["clsid:"+q.clsids[p]]=q}for(p=0;p<q.mimes.length;p++){l[q.mimes[p]]=q}l["mceItem"+k]=q;l[k.toLowerCase()]=q;i+=(i?"|":"")+k}tinymce.each(n.getParam("media_types","video=mp4,m4v,ogv,webm;silverlight=xap;flash=swf,flv;shockwave=dcr;quicktime=mov,qt,mpg,mpeg;shockwave=dcr;windowsmedia=avi,wmv,wm,asf,asx,wmx,wvx;realmedia=rm,ra,ram;java=jar;audio=mp3,ogg").split(";"),function(v){var s,u,t;v=v.split(/=/);u=tinymce.explode(v[1].toLowerCase());for(s=0;s<u.length;s++){t=l[v[0].toLowerCase()];if(t){l[u[s]]=t}}});i=new RegExp("write("+i+")\\(([^)]+)\\)");r.lookup=l;n.onPreInit.add(function(){n.schema.addValidElements("object[id|style|width|height|classid|codebase|*],param[name|value],embed[id|style|width|height|type|src|*],video[*],audio[*],source[*]");n.parser.addNodeFilter("object,embed,video,audio,script,iframe",function(s){var t=s.length;while(t--){r.objectToImg(s[t])}});n.serializer.addNodeFilter("img",function(s,u,t){var v=s.length,w;while(v--){w=s[v];if((w.attr("class")||"").indexOf("mceItemMedia")!==-1){r.imgToObject(w,t)}}})});n.onInit.add(function(){if(n.theme&&n.theme.onResolveName){n.theme.onResolveName.add(function(s,t){if(t.name==="img"&&n.dom.hasClass(t.node,"mceItemMedia")){t.name="media"}})}if(n&&n.plugins.contextmenu){n.plugins.contextmenu.onContextMenu.add(function(t,u,s){if(s.nodeName==="IMG"&&s.className.indexOf("mceItemMedia")!==-1){u.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});n.addCommand("mceMedia",function(){var t,s;s=n.selection.getNode();if(o(s)){t=n.dom.getAttrib(s,"data-mce-json");if(t){t=h.parse(t);tinymce.each(b,function(u){var v=n.dom.getAttrib(s,u);if(v){t[u]=v}});t.type=r.getType(s.className).name.toLowerCase()}}if(!t){t={type:"flash",video:{sources:[]},params:{}}}n.windowManager.open({file:j+"/media.htm",width:430+parseInt(n.getLang("media.delta_width",0)),height:500+parseInt(n.getLang("media.delta_height",0)),inline:1},{plugin_url:j,data:t})});n.addButton("media",{title:"media.desc",cmd:"mceMedia"});n.onNodeChange.add(function(t,s,u){s.setActive("media",o(u))})},convertUrl:function(l,o){var k=this,n=k.editor,m=n.settings,p=m.url_converter,j=m.url_converter_scope||k;if(!l){return l}if(o){return n.documentBaseURI.toAbsolute(l)}return p.call(j,l,"src","object")},getInfo:function(){return{longname:"Media",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media",version:tinymce.majorVersion+"."+tinymce.minorVersion}},dataToImg:function(m,k){var r=this,o=r.editor,p=o.documentBaseURI,j,q,n,l;m.params.src=r.convertUrl(m.params.src,k);q=m.video.attrs;if(q){q.src=r.convertUrl(q.src,k)}if(q){q.poster=r.convertUrl(q.poster,k)}j=c(m.video.sources);if(j){for(l=0;l<j.length;l++){j[l].src=r.convertUrl(j[l].src,k)}}n=r.editor.dom.create("img",{id:m.id,style:m.style,align:m.align,hspace:m.hspace,vspace:m.vspace,src:r.editor.theme.url+"/img/trans.gif","class":"mceItemMedia mceItem"+r.getType(m.type).name,"data-mce-json":h.serialize(m,"'")});n.width=m.width=e(m.width||(m.type=="audio"?"300":"320"));n.height=m.height=e(m.height||(m.type=="audio"?"32":"240"));return n},dataToHtml:function(j,k){return this.editor.serializer.serialize(this.dataToImg(j,k),{forced_root_block:"",force_absolute:k})},htmlToData:function(l){var k,j,m;m={type:"flash",video:{sources:[]},params:{}};k=this.editor.parser.parse(l);j=k.getAll("img")[0];if(j){m=h.parse(j.attr("data-mce-json"));m.type=this.getType(j.attr("class")).name.toLowerCase();tinymce.each(b,function(n){var o=j.attr(n);if(o){m[n]=o}})}return m},getType:function(m){var k,j,l;j=tinymce.explode(m," ");for(k=0;k<j.length;k++){l=this.lookup[j[k]];if(l){return l}}},imgToObject:function(z,o){var u=this,p=u.editor,C,H,j,t,I,y,G,w,k,E,s,q,A,D,m,x,l,B,F;function r(n,J){var N,M,O,L,K;K=p.getParam("flash_video_player_url",u.convertUrl(u.url+"/moxieplayer.swf"));if(K){N=p.documentBaseURI;G.params.src=K;if(p.getParam("flash_video_player_absvideourl",true)){n=N.toAbsolute(n||"",true);J=N.toAbsolute(J||"",true)}O="";M=p.getParam("flash_video_player_flashvars",{url:"$url",poster:"$poster"});tinymce.each(M,function(Q,P){Q=Q.replace(/\$url/,n||"");Q=Q.replace(/\$poster/,J||"");if(Q.length>0){O+=(O?"&":"")+P+"="+escape(Q)}});if(O.length){G.params.flashvars=O}L=p.getParam("flash_video_player_params",{allowfullscreen:true,allowscriptaccess:true});tinymce.each(L,function(Q,P){G.params[P]=""+Q})}}G=z.attr("data-mce-json");if(!G){return}G=h.parse(G);q=this.getType(z.attr("class"));B=z.attr("data-mce-style");if(!B){B=z.attr("style");if(B){B=p.dom.serializeStyle(p.dom.parseStyle(B,"img"))}}G.width=z.attr("width")||G.width;G.height=z.attr("height")||G.height;if(q.name==="Iframe"){x=new f("iframe",1);tinymce.each(b,function(n){var J=z.attr(n);if(n=="class"&&J){J=J.replace(/mceItem.+ ?/g,"")}if(J&&J.length>0){x.attr(n,J)}});for(I in G.params){x.attr(I,G.params[I])}x.attr({style:B,src:G.params.src});z.replace(x);return}if(this.editor.settings.media_use_script){x=new f("script",1).attr("type","text/javascript");y=new f("#text",3);y.value="write"+q.name+"("+h.serialize(tinymce.extend(G.params,{width:z.attr("width"),height:z.attr("height")}))+");";x.append(y);z.replace(x);return}if(q.name==="Video"&&G.video.sources[0]){C=new f("video",1).attr(tinymce.extend({id:z.attr("id"),width:e(z.attr("width")),height:e(z.attr("height")),style:B},G.video.attrs));if(G.video.attrs){l=G.video.attrs.poster}k=G.video.sources=c(G.video.sources);for(A=0;A<k.length;A++){if(/\.mp4$/.test(k[A].src)){m=k[A].src}}if(!k[0].type){C.attr("src",k[0].src);k.splice(0,1)}for(A=0;A<k.length;A++){w=new f("source",1).attr(k[A]);w.shortEnded=true;C.append(w)}if(m){r(m,l);q=u.getType("flash")}else{G.params.src=""}}if(q.name==="Audio"&&G.video.sources[0]){F=new f("audio",1).attr(tinymce.extend({id:z.attr("id"),width:e(z.attr("width")),height:e(z.attr("height")),style:B},G.video.attrs));if(G.video.attrs){l=G.video.attrs.poster}k=G.video.sources=c(G.video.sources);if(!k[0].type){F.attr("src",k[0].src);k.splice(0,1)}for(A=0;A<k.length;A++){w=new f("source",1).attr(k[A]);w.shortEnded=true;F.append(w)}G.params.src=""}if(q.name==="EmbeddedAudio"){j=new f("embed",1);j.shortEnded=true;j.attr({id:z.attr("id"),width:e(z.attr("width")),height:e(z.attr("height")),style:B,type:z.attr("type")});for(I in G.params){j.attr(I,G.params[I])}tinymce.each(b,function(n){if(G[n]&&n!="type"){j.attr(n,G[n])}});G.params.src=""}if(G.params.src){if(/\.flv$/i.test(G.params.src)){r(G.params.src,"")}if(o&&o.force_absolute){G.params.src=p.documentBaseURI.toAbsolute(G.params.src)}H=new f("object",1).attr({id:z.attr("id"),width:e(z.attr("width")),height:e(z.attr("height")),style:B});tinymce.each(b,function(n){var J=G[n];if(n=="class"&&J){J=J.replace(/mceItem.+ ?/g,"")}if(J&&n!="type"){H.attr(n,J)}});for(I in G.params){s=new f("param",1);s.shortEnded=true;y=G.params[I];if(I==="src"&&q.name==="WindowsMedia"){I="url"}s.attr({name:I,value:y});H.append(s)}if(this.editor.getParam("media_strict",true)){H.attr({data:G.params.src,type:q.mimes[0]})}else{H.attr({classid:"clsid:"+q.clsids[0],codebase:q.codebase});j=new f("embed",1);j.shortEnded=true;j.attr({id:z.attr("id"),width:e(z.attr("width")),height:e(z.attr("height")),style:B,type:q.mimes[0]});for(I in G.params){j.attr(I,G.params[I])}tinymce.each(b,function(n){if(G[n]&&n!="type"){j.attr(n,G[n])}});H.append(j)}if(G.object_html){y=new f("#text",3);y.raw=true;y.value=G.object_html;H.append(y)}if(C){C.append(H)}}if(C){if(G.video_html){y=new f("#text",3);y.raw=true;y.value=G.video_html;C.append(y)}}if(F){if(G.video_html){y=new f("#text",3);y.raw=true;y.value=G.video_html;F.append(y)}}var v=C||F||H||j;if(v){z.replace(v)}else{z.remove()}},objectToImg:function(C){var L,k,F,s,M,N,y,A,x,G,E,t,q,I,B,l,K,o,H=this.lookup,m,z,v=this.editor.settings.url_converter,n=this.editor.settings.url_converter_scope,w,r,D,j;function u(O){return new tinymce.html.Serializer({inner:true,validate:false}).serialize(O)}function J(P,O){return H[(P.attr(O)||"").toLowerCase()]}function p(P){var O=P.replace(/^.*\.([^.]+)$/,"$1");return H[O.toLowerCase()||""]}if(!C.parent){return}if(C.name==="script"){if(C.firstChild){m=i.exec(C.firstChild.value)}if(!m){return}o=m[1];K={video:{},params:h.parse(m[2])};A=K.params.width;x=K.params.height}K=K||{video:{},params:{}};M=new f("img",1);M.attr({src:this.editor.theme.url+"/img/trans.gif"});N=C.name;if(N==="video"||N=="audio"){F=C;L=C.getAll("object")[0];k=C.getAll("embed")[0];A=F.attr("width");x=F.attr("height");y=F.attr("id");K.video={attrs:{},sources:[]};z=K.video.attrs;for(N in F.attributes.map){z[N]=F.attributes.map[N]}B=C.attr("src");if(B){K.video.sources.push({src:v.call(n,B,"src",C.name)})}l=F.getAll("source");for(E=0;E<l.length;E++){B=l[E].remove();K.video.sources.push({src:v.call(n,B.attr("src"),"src","source"),type:B.attr("type"),media:B.attr("media")})}if(z.poster){z.poster=v.call(n,z.poster,"poster",C.name)}}if(C.name==="object"){L=C;k=C.getAll("embed")[0]}if(C.name==="embed"){k=C}if(C.name==="iframe"){s=C;o="Iframe"}if(L){A=A||L.attr("width");x=x||L.attr("height");G=G||L.attr("style");y=y||L.attr("id");w=w||L.attr("hspace");r=r||L.attr("vspace");D=D||L.attr("align");j=j||L.attr("bgcolor");K.name=L.attr("name");I=L.getAll("param");for(E=0;E<I.length;E++){q=I[E];N=q.remove().attr("name");if(!a[N]){K.params[N]=q.attr("value")}}K.params.src=K.params.src||L.attr("data")}if(k){A=A||k.attr("width");x=x||k.attr("height");G=G||k.attr("style");y=y||k.attr("id");w=w||k.attr("hspace");r=r||k.attr("vspace");D=D||k.attr("align");j=j||k.attr("bgcolor");for(N in k.attributes.map){if(!a[N]&&!K.params[N]){K.params[N]=k.attributes.map[N]}}}if(s){A=e(s.attr("width"));x=e(s.attr("height"));G=G||s.attr("style");y=s.attr("id");w=s.attr("hspace");r=s.attr("vspace");D=s.attr("align");j=s.attr("bgcolor");tinymce.each(b,function(O){M.attr(O,s.attr(O))});for(N in s.attributes.map){if(!a[N]&&!K.params[N]){K.params[N]=s.attributes.map[N]}}}if(K.params.movie){K.params.src=K.params.src||K.params.movie;delete K.params.movie}if(K.params.src){K.params.src=v.call(n,K.params.src,"src","object")}if(F){if(C.name==="video"){o=H.video.name}else{if(C.name==="audio"){o=H.audio.name}}}if(L&&!o){o=(J(L,"clsid")||J(L,"classid")||J(L,"type")||{}).name}if(k&&!o){o=(J(k,"type")||p(K.params.src)||{}).name}if(k&&o=="EmbeddedAudio"){K.params.type=k.attr("type")}C.replace(M);if(k){k.remove()}if(L){t=u(L.remove());if(t){K.object_html=t}}if(F){t=u(F.remove());if(t){K.video_html=t}}K.hspace=w;K.vspace=r;K.align=D;K.bgcolor=j;M.attr({id:y,"class":"mceItemMedia mceItem"+(o||"Flash"),style:G,width:A||(C.name=="audio"?"300":"320"),height:x||(C.name=="audio"?"32":"240"),hspace:w,vspace:r,align:D,bgcolor:j,"data-mce-json":h.serialize(K,"'")})}});tinymce.PluginManager.add("media",tinymce.plugins.MediaPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin_src.js
new file mode 100755
index 00000000..33a58050
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/editor_plugin_src.js
@@ -0,0 +1,898 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var rootAttributes = tinymce.explode('id,name,width,height,style,align,class,hspace,vspace,bgcolor,type'), excludedAttrs = tinymce.makeMap(rootAttributes.join(',')), Node = tinymce.html.Node,
+ mediaTypes, scriptRegExp, JSON = tinymce.util.JSON, mimeTypes;
+
+ // Media types supported by this plugin
+ mediaTypes = [
+ // Type, clsid:s, mime types, codebase
+ ["Flash", "d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],
+ ["ShockWave", "166b1bca-3f9c-11cf-8075-444553540000", "application/x-director", "http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"],
+ ["WindowsMedia", "6bf52a52-394a-11d3-b153-00c04f79faa6,22d6f312-b0f6-11d0-94ab-0080c74c7e95,05589fa1-c356-11ce-bf01-00aa0055595a", "application/x-mplayer2", "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"],
+ ["QuickTime", "02bf25d5-8c17-4b23-bc80-d3488abddc6b", "video/quicktime", "http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"],
+ ["RealMedia", "cfcdaa03-8be4-11cf-b84b-0020afbbccfa", "audio/x-pn-realaudio-plugin", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"],
+ ["Java", "8ad9c840-044e-11d1-b3e9-00805f499d93", "application/x-java-applet", "http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0"],
+ ["Silverlight", "dfeaf541-f3e1-4c24-acac-99c30715084a", "application/x-silverlight-2"],
+ ["Iframe"],
+ ["Video"],
+ ["EmbeddedAudio"],
+ ["Audio"]
+ ];
+
+ function normalizeSize(size) {
+ return typeof(size) == "string" ? size.replace(/[^0-9%]/g, '') : size;
+ }
+
+ function toArray(obj) {
+ var undef, out, i;
+
+ if (obj && !obj.splice) {
+ out = [];
+
+ for (i = 0; true; i++) {
+ if (obj[i])
+ out[i] = obj[i];
+ else
+ break;
+ }
+
+ return out;
+ }
+
+ return obj;
+ };
+
+ tinymce.create('tinymce.plugins.MediaPlugin', {
+ init : function(ed, url) {
+ var self = this, lookup = {}, i, y, item, name;
+
+ function isMediaImg(node) {
+ return node && node.nodeName === 'IMG' && ed.dom.hasClass(node, 'mceItemMedia');
+ };
+
+ self.editor = ed;
+ self.url = url;
+
+ // Parse media types into a lookup table
+ scriptRegExp = '';
+ for (i = 0; i < mediaTypes.length; i++) {
+ name = mediaTypes[i][0];
+
+ item = {
+ name : name,
+ clsids : tinymce.explode(mediaTypes[i][1] || ''),
+ mimes : tinymce.explode(mediaTypes[i][2] || ''),
+ codebase : mediaTypes[i][3]
+ };
+
+ for (y = 0; y < item.clsids.length; y++)
+ lookup['clsid:' + item.clsids[y]] = item;
+
+ for (y = 0; y < item.mimes.length; y++)
+ lookup[item.mimes[y]] = item;
+
+ lookup['mceItem' + name] = item;
+ lookup[name.toLowerCase()] = item;
+
+ scriptRegExp += (scriptRegExp ? '|' : '') + name;
+ }
+
+ // Handle the media_types setting
+ tinymce.each(ed.getParam("media_types",
+ "video=mp4,m4v,ogv,webm;" +
+ "silverlight=xap;" +
+ "flash=swf,flv;" +
+ "shockwave=dcr;" +
+ "quicktime=mov,qt,mpg,mpeg;" +
+ "shockwave=dcr;" +
+ "windowsmedia=avi,wmv,wm,asf,asx,wmx,wvx;" +
+ "realmedia=rm,ra,ram;" +
+ "java=jar;" +
+ "audio=mp3,ogg"
+ ).split(';'), function(item) {
+ var i, extensions, type;
+
+ item = item.split(/=/);
+ extensions = tinymce.explode(item[1].toLowerCase());
+ for (i = 0; i < extensions.length; i++) {
+ type = lookup[item[0].toLowerCase()];
+
+ if (type)
+ lookup[extensions[i]] = type;
+ }
+ });
+
+ scriptRegExp = new RegExp('write(' + scriptRegExp + ')\\(([^)]+)\\)');
+ self.lookup = lookup;
+
+ ed.onPreInit.add(function() {
+ // Allow video elements
+ ed.schema.addValidElements('object[id|style|width|height|classid|codebase|*],param[name|value],embed[id|style|width|height|type|src|*],video[*],audio[*],source[*]');
+
+ // Convert video elements to image placeholder
+ ed.parser.addNodeFilter('object,embed,video,audio,script,iframe', function(nodes) {
+ var i = nodes.length;
+
+ while (i--)
+ self.objectToImg(nodes[i]);
+ });
+
+ // Convert image placeholders to video elements
+ ed.serializer.addNodeFilter('img', function(nodes, name, args) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+ if ((node.attr('class') || '').indexOf('mceItemMedia') !== -1)
+ self.imgToObject(node, args);
+ }
+ });
+ });
+
+ ed.onInit.add(function() {
+ // Display "media" instead of "img" in element path
+ if (ed.theme && ed.theme.onResolveName) {
+ ed.theme.onResolveName.add(function(theme, path_object) {
+ if (path_object.name === 'img' && ed.dom.hasClass(path_object.node, 'mceItemMedia'))
+ path_object.name = 'media';
+ });
+ }
+
+ // Add contect menu if it's loaded
+ if (ed && ed.plugins.contextmenu) {
+ ed.plugins.contextmenu.onContextMenu.add(function(plugin, menu, element) {
+ if (element.nodeName === 'IMG' && element.className.indexOf('mceItemMedia') !== -1)
+ menu.add({title : 'media.edit', icon : 'media', cmd : 'mceMedia'});
+ });
+ }
+ });
+
+ // Register commands
+ ed.addCommand('mceMedia', function() {
+ var data, img;
+
+ img = ed.selection.getNode();
+ if (isMediaImg(img)) {
+ data = ed.dom.getAttrib(img, 'data-mce-json');
+ if (data) {
+ data = JSON.parse(data);
+
+ // Add some extra properties to the data object
+ tinymce.each(rootAttributes, function(name) {
+ var value = ed.dom.getAttrib(img, name);
+
+ if (value)
+ data[name] = value;
+ });
+
+ data.type = self.getType(img.className).name.toLowerCase();
+ }
+ }
+
+ if (!data) {
+ data = {
+ type : 'flash',
+ video: {sources:[]},
+ params: {}
+ };
+ }
+
+ ed.windowManager.open({
+ file : url + '/media.htm',
+ width : 430 + parseInt(ed.getLang('media.delta_width', 0)),
+ height : 500 + parseInt(ed.getLang('media.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url,
+ data : data
+ });
+ });
+
+ // Register buttons
+ ed.addButton('media', {title : 'media.desc', cmd : 'mceMedia'});
+
+ // Update media selection status
+ ed.onNodeChange.add(function(ed, cm, node) {
+ cm.setActive('media', isMediaImg(node));
+ });
+ },
+
+ convertUrl : function(url, force_absolute) {
+ var self = this, editor = self.editor, settings = editor.settings,
+ urlConverter = settings.url_converter,
+ urlConverterScope = settings.url_converter_scope || self;
+
+ if (!url)
+ return url;
+
+ if (force_absolute)
+ return editor.documentBaseURI.toAbsolute(url);
+
+ return urlConverter.call(urlConverterScope, url, 'src', 'object');
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Media',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ /**
+ * Converts the JSON data object to an img node.
+ */
+ dataToImg : function(data, force_absolute) {
+ var self = this, editor = self.editor, baseUri = editor.documentBaseURI, sources, attrs, img, i;
+
+ data.params.src = self.convertUrl(data.params.src, force_absolute);
+
+ attrs = data.video.attrs;
+ if (attrs)
+ attrs.src = self.convertUrl(attrs.src, force_absolute);
+
+ if (attrs)
+ attrs.poster = self.convertUrl(attrs.poster, force_absolute);
+
+ sources = toArray(data.video.sources);
+ if (sources) {
+ for (i = 0; i < sources.length; i++)
+ sources[i].src = self.convertUrl(sources[i].src, force_absolute);
+ }
+
+ img = self.editor.dom.create('img', {
+ id : data.id,
+ style : data.style,
+ align : data.align,
+ hspace : data.hspace,
+ vspace : data.vspace,
+ src : self.editor.theme.url + '/img/trans.gif',
+ 'class' : 'mceItemMedia mceItem' + self.getType(data.type).name,
+ 'data-mce-json' : JSON.serialize(data, "'")
+ });
+
+ img.width = data.width = normalizeSize(data.width || (data.type == 'audio' ? "300" : "320"));
+ img.height = data.height = normalizeSize(data.height || (data.type == 'audio' ? "32" : "240"));
+
+ return img;
+ },
+
+ /**
+ * Converts the JSON data object to a HTML string.
+ */
+ dataToHtml : function(data, force_absolute) {
+ return this.editor.serializer.serialize(this.dataToImg(data, force_absolute), {forced_root_block : '', force_absolute : force_absolute});
+ },
+
+ /**
+ * Converts the JSON data object to a HTML string.
+ */
+ htmlToData : function(html) {
+ var fragment, img, data;
+
+ data = {
+ type : 'flash',
+ video: {sources:[]},
+ params: {}
+ };
+
+ fragment = this.editor.parser.parse(html);
+ img = fragment.getAll('img')[0];
+
+ if (img) {
+ data = JSON.parse(img.attr('data-mce-json'));
+ data.type = this.getType(img.attr('class')).name.toLowerCase();
+
+ // Add some extra properties to the data object
+ tinymce.each(rootAttributes, function(name) {
+ var value = img.attr(name);
+
+ if (value)
+ data[name] = value;
+ });
+ }
+
+ return data;
+ },
+
+ /**
+ * Get type item by extension, class, clsid or mime type.
+ *
+ * @method getType
+ * @param {String} value Value to get type item by.
+ * @return {Object} Type item object or undefined.
+ */
+ getType : function(value) {
+ var i, values, typeItem;
+
+ // Find type by checking the classes
+ values = tinymce.explode(value, ' ');
+ for (i = 0; i < values.length; i++) {
+ typeItem = this.lookup[values[i]];
+
+ if (typeItem)
+ return typeItem;
+ }
+ },
+
+ /**
+ * Converts a tinymce.html.Node image element to video/object/embed.
+ */
+ imgToObject : function(node, args) {
+ var self = this, editor = self.editor, video, object, embed, iframe, name, value, data,
+ source, sources, params, param, typeItem, i, item, mp4Source, replacement,
+ posterSrc, style, audio;
+
+ // Adds the flash player
+ function addPlayer(video_src, poster_src) {
+ var baseUri, flashVars, flashVarsOutput, params, flashPlayer;
+
+ flashPlayer = editor.getParam('flash_video_player_url', self.convertUrl(self.url + '/moxieplayer.swf'));
+ if (flashPlayer) {
+ baseUri = editor.documentBaseURI;
+ data.params.src = flashPlayer;
+
+ // Convert the movie url to absolute urls
+ if (editor.getParam('flash_video_player_absvideourl', true)) {
+ video_src = baseUri.toAbsolute(video_src || '', true);
+ poster_src = baseUri.toAbsolute(poster_src || '', true);
+ }
+
+ // Generate flash vars
+ flashVarsOutput = '';
+ flashVars = editor.getParam('flash_video_player_flashvars', {url : '$url', poster : '$poster'});
+ tinymce.each(flashVars, function(value, name) {
+ // Replace $url and $poster variables in flashvars value
+ value = value.replace(/\$url/, video_src || '');
+ value = value.replace(/\$poster/, poster_src || '');
+
+ if (value.length > 0)
+ flashVarsOutput += (flashVarsOutput ? '&' : '') + name + '=' + escape(value);
+ });
+
+ if (flashVarsOutput.length)
+ data.params.flashvars = flashVarsOutput;
+
+ params = editor.getParam('flash_video_player_params', {
+ allowfullscreen: true,
+ allowscriptaccess: true
+ });
+
+ tinymce.each(params, function(value, name) {
+ data.params[name] = "" + value;
+ });
+ }
+ };
+
+ data = node.attr('data-mce-json');
+ if (!data)
+ return;
+
+ data = JSON.parse(data);
+ typeItem = this.getType(node.attr('class'));
+
+ style = node.attr('data-mce-style');
+ if (!style) {
+ style = node.attr('style');
+
+ if (style)
+ style = editor.dom.serializeStyle(editor.dom.parseStyle(style, 'img'));
+ }
+
+ // Use node width/height to override the data width/height when the placeholder is resized
+ data.width = node.attr('width') || data.width;
+ data.height = node.attr('height') || data.height;
+
+ // Handle iframe
+ if (typeItem.name === 'Iframe') {
+ replacement = new Node('iframe', 1);
+
+ tinymce.each(rootAttributes, function(name) {
+ var value = node.attr(name);
+
+ if (name == 'class' && value)
+ value = value.replace(/mceItem.+ ?/g, '');
+
+ if (value && value.length > 0)
+ replacement.attr(name, value);
+ });
+
+ for (name in data.params)
+ replacement.attr(name, data.params[name]);
+
+ replacement.attr({
+ style: style,
+ src: data.params.src
+ });
+
+ node.replace(replacement);
+
+ return;
+ }
+
+ // Handle scripts
+ if (this.editor.settings.media_use_script) {
+ replacement = new Node('script', 1).attr('type', 'text/javascript');
+
+ value = new Node('#text', 3);
+ value.value = 'write' + typeItem.name + '(' + JSON.serialize(tinymce.extend(data.params, {
+ width: node.attr('width'),
+ height: node.attr('height')
+ })) + ');';
+
+ replacement.append(value);
+ node.replace(replacement);
+
+ return;
+ }
+
+ // Add HTML5 video element
+ if (typeItem.name === 'Video' && data.video.sources[0]) {
+ // Create new object element
+ video = new Node('video', 1).attr(tinymce.extend({
+ id : node.attr('id'),
+ width: normalizeSize(node.attr('width')),
+ height: normalizeSize(node.attr('height')),
+ style : style
+ }, data.video.attrs));
+
+ // Get poster source and use that for flash fallback
+ if (data.video.attrs)
+ posterSrc = data.video.attrs.poster;
+
+ sources = data.video.sources = toArray(data.video.sources);
+ for (i = 0; i < sources.length; i++) {
+ if (/\.mp4$/.test(sources[i].src))
+ mp4Source = sources[i].src;
+ }
+
+ if (!sources[0].type) {
+ video.attr('src', sources[0].src);
+ sources.splice(0, 1);
+ }
+
+ for (i = 0; i < sources.length; i++) {
+ source = new Node('source', 1).attr(sources[i]);
+ source.shortEnded = true;
+ video.append(source);
+ }
+
+ // Create flash fallback for video if we have a mp4 source
+ if (mp4Source) {
+ addPlayer(mp4Source, posterSrc);
+ typeItem = self.getType('flash');
+ } else
+ data.params.src = '';
+ }
+
+ // Add HTML5 audio element
+ if (typeItem.name === 'Audio' && data.video.sources[0]) {
+ // Create new object element
+ audio = new Node('audio', 1).attr(tinymce.extend({
+ id : node.attr('id'),
+ width: normalizeSize(node.attr('width')),
+ height: normalizeSize(node.attr('height')),
+ style : style
+ }, data.video.attrs));
+
+ // Get poster source and use that for flash fallback
+ if (data.video.attrs)
+ posterSrc = data.video.attrs.poster;
+
+ sources = data.video.sources = toArray(data.video.sources);
+ if (!sources[0].type) {
+ audio.attr('src', sources[0].src);
+ sources.splice(0, 1);
+ }
+
+ for (i = 0; i < sources.length; i++) {
+ source = new Node('source', 1).attr(sources[i]);
+ source.shortEnded = true;
+ audio.append(source);
+ }
+
+ data.params.src = '';
+ }
+
+ if (typeItem.name === 'EmbeddedAudio') {
+ embed = new Node('embed', 1);
+ embed.shortEnded = true;
+ embed.attr({
+ id: node.attr('id'),
+ width: normalizeSize(node.attr('width')),
+ height: normalizeSize(node.attr('height')),
+ style : style,
+ type: node.attr('type')
+ });
+
+ for (name in data.params)
+ embed.attr(name, data.params[name]);
+
+ tinymce.each(rootAttributes, function(name) {
+ if (data[name] && name != 'type')
+ embed.attr(name, data[name]);
+ });
+
+ data.params.src = '';
+ }
+
+ // Do we have a params src then we can generate object
+ if (data.params.src) {
+ // Is flv movie add player for it
+ if (/\.flv$/i.test(data.params.src))
+ addPlayer(data.params.src, '');
+
+ if (args && args.force_absolute)
+ data.params.src = editor.documentBaseURI.toAbsolute(data.params.src);
+
+ // Create new object element
+ object = new Node('object', 1).attr({
+ id : node.attr('id'),
+ width: normalizeSize(node.attr('width')),
+ height: normalizeSize(node.attr('height')),
+ style : style
+ });
+
+ tinymce.each(rootAttributes, function(name) {
+ var value = data[name];
+
+ if (name == 'class' && value)
+ value = value.replace(/mceItem.+ ?/g, '');
+
+ if (value && name != 'type')
+ object.attr(name, value);
+ });
+
+ // Add params
+ for (name in data.params) {
+ param = new Node('param', 1);
+ param.shortEnded = true;
+ value = data.params[name];
+
+ // Windows media needs to use url instead of src for the media URL
+ if (name === 'src' && typeItem.name === 'WindowsMedia')
+ name = 'url';
+
+ param.attr({name: name, value: value});
+ object.append(param);
+ }
+
+ // Setup add type and classid if strict is disabled
+ if (this.editor.getParam('media_strict', true)) {
+ object.attr({
+ data: data.params.src,
+ type: typeItem.mimes[0]
+ });
+ } else {
+ object.attr({
+ classid: "clsid:" + typeItem.clsids[0],
+ codebase: typeItem.codebase
+ });
+
+ embed = new Node('embed', 1);
+ embed.shortEnded = true;
+ embed.attr({
+ id: node.attr('id'),
+ width: normalizeSize(node.attr('width')),
+ height: normalizeSize(node.attr('height')),
+ style : style,
+ type: typeItem.mimes[0]
+ });
+
+ for (name in data.params)
+ embed.attr(name, data.params[name]);
+
+ tinymce.each(rootAttributes, function(name) {
+ if (data[name] && name != 'type')
+ embed.attr(name, data[name]);
+ });
+
+ object.append(embed);
+ }
+
+ // Insert raw HTML
+ if (data.object_html) {
+ value = new Node('#text', 3);
+ value.raw = true;
+ value.value = data.object_html;
+ object.append(value);
+ }
+
+ // Append object to video element if it exists
+ if (video)
+ video.append(object);
+ }
+
+ if (video) {
+ // Insert raw HTML
+ if (data.video_html) {
+ value = new Node('#text', 3);
+ value.raw = true;
+ value.value = data.video_html;
+ video.append(value);
+ }
+ }
+
+ if (audio) {
+ // Insert raw HTML
+ if (data.video_html) {
+ value = new Node('#text', 3);
+ value.raw = true;
+ value.value = data.video_html;
+ audio.append(value);
+ }
+ }
+
+ var n = video || audio || object || embed;
+ if (n)
+ node.replace(n);
+ else
+ node.remove();
+ },
+
+ /**
+ * Converts a tinymce.html.Node video/object/embed to an img element.
+ *
+ * The video/object/embed will be converted into an image placeholder with a JSON data attribute like this:
+ * <img class="mceItemMedia mceItemFlash" width="100" height="100" data-mce-json="{..}" />
+ *
+ * The JSON structure will be like this:
+ * {'params':{'flashvars':'something','quality':'high','src':'someurl'}, 'video':{'sources':[{src: 'someurl', type: 'video/mp4'}]}}
+ */
+ objectToImg : function(node) {
+ var object, embed, video, iframe, img, name, id, width, height, style, i, html,
+ param, params, source, sources, data, type, lookup = this.lookup,
+ matches, attrs, urlConverter = this.editor.settings.url_converter,
+ urlConverterScope = this.editor.settings.url_converter_scope,
+ hspace, vspace, align, bgcolor;
+
+ function getInnerHTML(node) {
+ return new tinymce.html.Serializer({
+ inner: true,
+ validate: false
+ }).serialize(node);
+ };
+
+ function lookupAttribute(o, attr) {
+ return lookup[(o.attr(attr) || '').toLowerCase()];
+ }
+
+ function lookupExtension(src) {
+ var ext = src.replace(/^.*\.([^.]+)$/, '$1');
+ return lookup[ext.toLowerCase() || ''];
+ }
+
+ // If node isn't in document
+ if (!node.parent)
+ return;
+
+ // Handle media scripts
+ if (node.name === 'script') {
+ if (node.firstChild)
+ matches = scriptRegExp.exec(node.firstChild.value);
+
+ if (!matches)
+ return;
+
+ type = matches[1];
+ data = {video : {}, params : JSON.parse(matches[2])};
+ width = data.params.width;
+ height = data.params.height;
+ }
+
+ // Setup data objects
+ data = data || {
+ video : {},
+ params : {}
+ };
+
+ // Setup new image object
+ img = new Node('img', 1);
+ img.attr({
+ src : this.editor.theme.url + '/img/trans.gif'
+ });
+
+ // Video element
+ name = node.name;
+ if (name === 'video' || name == 'audio') {
+ video = node;
+ object = node.getAll('object')[0];
+ embed = node.getAll('embed')[0];
+ width = video.attr('width');
+ height = video.attr('height');
+ id = video.attr('id');
+ data.video = {attrs : {}, sources : []};
+
+ // Get all video attributes
+ attrs = data.video.attrs;
+ for (name in video.attributes.map)
+ attrs[name] = video.attributes.map[name];
+
+ source = node.attr('src');
+ if (source)
+ data.video.sources.push({src : urlConverter.call(urlConverterScope, source, 'src', node.name)});
+
+ // Get all sources
+ sources = video.getAll("source");
+ for (i = 0; i < sources.length; i++) {
+ source = sources[i].remove();
+
+ data.video.sources.push({
+ src: urlConverter.call(urlConverterScope, source.attr('src'), 'src', 'source'),
+ type: source.attr('type'),
+ media: source.attr('media')
+ });
+ }
+
+ // Convert the poster URL
+ if (attrs.poster)
+ attrs.poster = urlConverter.call(urlConverterScope, attrs.poster, 'poster', node.name);
+ }
+
+ // Object element
+ if (node.name === 'object') {
+ object = node;
+ embed = node.getAll('embed')[0];
+ }
+
+ // Embed element
+ if (node.name === 'embed')
+ embed = node;
+
+ // Iframe element
+ if (node.name === 'iframe') {
+ iframe = node;
+ type = 'Iframe';
+ }
+
+ if (object) {
+ // Get width/height
+ width = width || object.attr('width');
+ height = height || object.attr('height');
+ style = style || object.attr('style');
+ id = id || object.attr('id');
+ hspace = hspace || object.attr('hspace');
+ vspace = vspace || object.attr('vspace');
+ align = align || object.attr('align');
+ bgcolor = bgcolor || object.attr('bgcolor');
+ data.name = object.attr('name');
+
+ // Get all object params
+ params = object.getAll("param");
+ for (i = 0; i < params.length; i++) {
+ param = params[i];
+ name = param.remove().attr('name');
+
+ if (!excludedAttrs[name])
+ data.params[name] = param.attr('value');
+ }
+
+ data.params.src = data.params.src || object.attr('data');
+ }
+
+ if (embed) {
+ // Get width/height
+ width = width || embed.attr('width');
+ height = height || embed.attr('height');
+ style = style || embed.attr('style');
+ id = id || embed.attr('id');
+ hspace = hspace || embed.attr('hspace');
+ vspace = vspace || embed.attr('vspace');
+ align = align || embed.attr('align');
+ bgcolor = bgcolor || embed.attr('bgcolor');
+
+ // Get all embed attributes
+ for (name in embed.attributes.map) {
+ if (!excludedAttrs[name] && !data.params[name])
+ data.params[name] = embed.attributes.map[name];
+ }
+ }
+
+ if (iframe) {
+ // Get width/height
+ width = normalizeSize(iframe.attr('width'));
+ height = normalizeSize(iframe.attr('height'));
+ style = style || iframe.attr('style');
+ id = iframe.attr('id');
+ hspace = iframe.attr('hspace');
+ vspace = iframe.attr('vspace');
+ align = iframe.attr('align');
+ bgcolor = iframe.attr('bgcolor');
+
+ tinymce.each(rootAttributes, function(name) {
+ img.attr(name, iframe.attr(name));
+ });
+
+ // Get all iframe attributes
+ for (name in iframe.attributes.map) {
+ if (!excludedAttrs[name] && !data.params[name])
+ data.params[name] = iframe.attributes.map[name];
+ }
+ }
+
+ // Use src not movie
+ if (data.params.movie) {
+ data.params.src = data.params.src || data.params.movie;
+ delete data.params.movie;
+ }
+
+ // Convert the URL to relative/absolute depending on configuration
+ if (data.params.src)
+ data.params.src = urlConverter.call(urlConverterScope, data.params.src, 'src', 'object');
+
+ if (video) {
+ if (node.name === 'video')
+ type = lookup.video.name;
+ else if (node.name === 'audio')
+ type = lookup.audio.name;
+ }
+
+ if (object && !type)
+ type = (lookupAttribute(object, 'clsid') || lookupAttribute(object, 'classid') || lookupAttribute(object, 'type') || {}).name;
+
+ if (embed && !type)
+ type = (lookupAttribute(embed, 'type') || lookupExtension(data.params.src) || {}).name;
+
+ // for embedded audio we preserve the original specified type
+ if (embed && type == 'EmbeddedAudio') {
+ data.params.type = embed.attr('type');
+ }
+
+ // Replace the video/object/embed element with a placeholder image containing the data
+ node.replace(img);
+
+ // Remove embed
+ if (embed)
+ embed.remove();
+
+ // Serialize the inner HTML of the object element
+ if (object) {
+ html = getInnerHTML(object.remove());
+
+ if (html)
+ data.object_html = html;
+ }
+
+ // Serialize the inner HTML of the video element
+ if (video) {
+ html = getInnerHTML(video.remove());
+
+ if (html)
+ data.video_html = html;
+ }
+
+ data.hspace = hspace;
+ data.vspace = vspace;
+ data.align = align;
+ data.bgcolor = bgcolor;
+
+ // Set width/height of placeholder
+ img.attr({
+ id : id,
+ 'class' : 'mceItemMedia mceItem' + (type || 'Flash'),
+ style : style,
+ width : width || (node.name == 'audio' ? "300" : "320"),
+ height : height || (node.name == 'audio' ? "32" : "240"),
+ hspace : hspace,
+ vspace : vspace,
+ align : align,
+ bgcolor : bgcolor,
+ "data-mce-json" : JSON.serialize(data, "'")
+ });
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('media', tinymce.plugins.MediaPlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/embed.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/embed.js
new file mode 100644
index 00000000..f8dc8105
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/embed.js
@@ -0,0 +1,73 @@
+/**
+ * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
+ */
+
+function writeFlash(p) {
+ writeEmbed(
+ 'D27CDB6E-AE6D-11cf-96B8-444553540000',
+ 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
+ 'application/x-shockwave-flash',
+ p
+ );
+}
+
+function writeShockWave(p) {
+ writeEmbed(
+ '166B1BCA-3F9C-11CF-8075-444553540000',
+ 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
+ 'application/x-director',
+ p
+ );
+}
+
+function writeQuickTime(p) {
+ writeEmbed(
+ '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
+ 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
+ 'video/quicktime',
+ p
+ );
+}
+
+function writeRealMedia(p) {
+ writeEmbed(
+ 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
+ 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
+ 'audio/x-pn-realaudio-plugin',
+ p
+ );
+}
+
+function writeWindowsMedia(p) {
+ p.url = p.src;
+ writeEmbed(
+ '6BF52A52-394A-11D3-B153-00C04F79FAA6',
+ 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
+ 'application/x-mplayer2',
+ p
+ );
+}
+
+function writeEmbed(cls, cb, mt, p) {
+ var h = '', n;
+
+ h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
+ h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
+ h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
+ h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
+ h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
+ h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
+ h += '>';
+
+ for (n in p)
+ h += '<param name="' + n + '" value="' + p[n] + '">';
+
+ h += '<embed type="' + mt + '"';
+
+ for (n in p)
+ h += n + '="' + p[n] + '" ';
+
+ h += '></embed></object>';
+
+ document.write(h);
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/media.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/media.js
new file mode 100644
index 00000000..f6a081a6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/js/media.js
@@ -0,0 +1,503 @@
+(function() {
+ var url;
+
+ if (url = tinyMCEPopup.getParam("media_external_list_url"))
+ document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
+
+ function get(id) {
+ return document.getElementById(id);
+ }
+
+ function clone(obj) {
+ var i, len, copy, attr;
+
+ if (null == obj || "object" != typeof obj)
+ return obj;
+
+ // Handle Array
+ if ('length' in obj) {
+ copy = [];
+
+ for (i = 0, len = obj.length; i < len; ++i) {
+ copy[i] = clone(obj[i]);
+ }
+
+ return copy;
+ }
+
+ // Handle Object
+ copy = {};
+ for (attr in obj) {
+ if (obj.hasOwnProperty(attr))
+ copy[attr] = clone(obj[attr]);
+ }
+
+ return copy;
+ }
+
+ function getVal(id) {
+ var elm = get(id);
+
+ if (elm.nodeName == "SELECT")
+ return elm.options[elm.selectedIndex].value;
+
+ if (elm.type == "checkbox")
+ return elm.checked;
+
+ return elm.value;
+ }
+
+ function setVal(id, value, name) {
+ if (typeof(value) != 'undefined' && value != null) {
+ var elm = get(id);
+
+ if (elm.nodeName == "SELECT")
+ selectByValue(document.forms[0], id, value);
+ else if (elm.type == "checkbox") {
+ if (typeof(value) == 'string') {
+ value = value.toLowerCase();
+ value = (!name && value === 'true') || (name && value === name.toLowerCase());
+ }
+ elm.checked = !!value;
+ } else
+ elm.value = value;
+ }
+ }
+
+ window.Media = {
+ init : function() {
+ var html, editor, self = this;
+
+ self.editor = editor = tinyMCEPopup.editor;
+
+ // Setup file browsers and color pickers
+ get('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media');
+ get('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','quicktime_qtsrc','media','media');
+ get('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
+ get('video_altsource1_filebrowser').innerHTML = getBrowserHTML('video_filebrowser_altsource1','video_altsource1','media','media');
+ get('video_altsource2_filebrowser').innerHTML = getBrowserHTML('video_filebrowser_altsource2','video_altsource2','media','media');
+ get('audio_altsource1_filebrowser').innerHTML = getBrowserHTML('audio_filebrowser_altsource1','audio_altsource1','media','media');
+ get('audio_altsource2_filebrowser').innerHTML = getBrowserHTML('audio_filebrowser_altsource2','audio_altsource2','media','media');
+ get('video_poster_filebrowser').innerHTML = getBrowserHTML('filebrowser_poster','video_poster','image','media');
+
+ html = self.getMediaListHTML('medialist', 'src', 'media', 'media');
+ if (html == "")
+ get("linklistrow").style.display = 'none';
+ else
+ get("linklistcontainer").innerHTML = html;
+
+ if (isVisible('filebrowser'))
+ get('src').style.width = '230px';
+
+ if (isVisible('video_filebrowser_altsource1'))
+ get('video_altsource1').style.width = '220px';
+
+ if (isVisible('video_filebrowser_altsource2'))
+ get('video_altsource2').style.width = '220px';
+
+ if (isVisible('audio_filebrowser_altsource1'))
+ get('audio_altsource1').style.width = '220px';
+
+ if (isVisible('audio_filebrowser_altsource2'))
+ get('audio_altsource2').style.width = '220px';
+
+ if (isVisible('filebrowser_poster'))
+ get('video_poster').style.width = '220px';
+
+ editor.dom.setOuterHTML(get('media_type'), self.getMediaTypeHTML(editor));
+
+ self.setDefaultDialogSettings(editor);
+ self.data = clone(tinyMCEPopup.getWindowArg('data'));
+ self.dataToForm();
+ self.preview();
+
+ updateColor('bgcolor_pick', 'bgcolor');
+ },
+
+ insert : function() {
+ var editor = tinyMCEPopup.editor;
+
+ this.formToData();
+ editor.execCommand('mceRepaint');
+ tinyMCEPopup.restoreSelection();
+ editor.selection.setNode(editor.plugins.media.dataToImg(this.data));
+ tinyMCEPopup.close();
+ },
+
+ preview : function() {
+ get('prev').innerHTML = this.editor.plugins.media.dataToHtml(this.data, true);
+ },
+
+ moveStates : function(to_form, field) {
+ var data = this.data, editor = this.editor,
+ mediaPlugin = editor.plugins.media, ext, src, typeInfo, defaultStates, src;
+
+ defaultStates = {
+ // QuickTime
+ quicktime_autoplay : true,
+ quicktime_controller : true,
+
+ // Flash
+ flash_play : true,
+ flash_loop : true,
+ flash_menu : true,
+
+ // WindowsMedia
+ windowsmedia_autostart : true,
+ windowsmedia_enablecontextmenu : true,
+ windowsmedia_invokeurls : true,
+
+ // RealMedia
+ realmedia_autogotourl : true,
+ realmedia_imagestatus : true
+ };
+
+ function parseQueryParams(str) {
+ var out = {};
+
+ if (str) {
+ tinymce.each(str.split('&'), function(item) {
+ var parts = item.split('=');
+
+ out[unescape(parts[0])] = unescape(parts[1]);
+ });
+ }
+
+ return out;
+ };
+
+ function setOptions(type, names) {
+ var i, name, formItemName, value, list;
+
+ if (type == data.type || type == 'global') {
+ names = tinymce.explode(names);
+ for (i = 0; i < names.length; i++) {
+ name = names[i];
+ formItemName = type == 'global' ? name : type + '_' + name;
+
+ if (type == 'global')
+ list = data;
+ else if (type == 'video' || type == 'audio') {
+ list = data.video.attrs;
+
+ if (!list && !to_form)
+ data.video.attrs = list = {};
+ } else
+ list = data.params;
+
+ if (list) {
+ if (to_form) {
+ setVal(formItemName, list[name], type == 'video' || type == 'audio' ? name : '');
+ } else {
+ delete list[name];
+
+ value = getVal(formItemName);
+ if ((type == 'video' || type == 'audio') && value === true)
+ value = name;
+
+ if (defaultStates[formItemName]) {
+ if (value !== defaultStates[formItemName]) {
+ value = "" + value;
+ list[name] = value;
+ }
+ } else if (value) {
+ value = "" + value;
+ list[name] = value;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ if (!to_form) {
+ data.type = get('media_type').options[get('media_type').selectedIndex].value;
+ data.width = getVal('width');
+ data.height = getVal('height');
+
+ // Switch type based on extension
+ src = getVal('src');
+ if (field == 'src') {
+ ext = src.replace(/^.*\.([^.]+)$/, '$1');
+ if (typeInfo = mediaPlugin.getType(ext))
+ data.type = typeInfo.name.toLowerCase();
+
+ setVal('media_type', data.type);
+ }
+
+ if (data.type == "video" || data.type == "audio") {
+ if (!data.video.sources)
+ data.video.sources = [];
+
+ data.video.sources[0] = {src: getVal('src')};
+ }
+ }
+
+ // Hide all fieldsets and show the one active
+ get('video_options').style.display = 'none';
+ get('audio_options').style.display = 'none';
+ get('flash_options').style.display = 'none';
+ get('quicktime_options').style.display = 'none';
+ get('shockwave_options').style.display = 'none';
+ get('windowsmedia_options').style.display = 'none';
+ get('realmedia_options').style.display = 'none';
+ get('embeddedaudio_options').style.display = 'none';
+
+ if (get(data.type + '_options'))
+ get(data.type + '_options').style.display = 'block';
+
+ setVal('media_type', data.type);
+
+ setOptions('flash', 'play,loop,menu,swliveconnect,quality,scale,salign,wmode,base,flashvars');
+ setOptions('quicktime', 'loop,autoplay,cache,controller,correction,enablejavascript,kioskmode,autohref,playeveryframe,targetcache,scale,starttime,endtime,target,qtsrcchokespeed,volume,qtsrc');
+ setOptions('shockwave', 'sound,progress,autostart,swliveconnect,swvolume,swstretchstyle,swstretchhalign,swstretchvalign');
+ setOptions('windowsmedia', 'autostart,enabled,enablecontextmenu,fullscreen,invokeurls,mute,stretchtofit,windowlessvideo,balance,baseurl,captioningid,currentmarker,currentposition,defaultframe,playcount,rate,uimode,volume');
+ setOptions('realmedia', 'autostart,loop,autogotourl,center,imagestatus,maintainaspect,nojava,prefetch,shuffle,console,controls,numloop,scriptcallbacks');
+ setOptions('video', 'poster,autoplay,loop,muted,preload,controls');
+ setOptions('audio', 'autoplay,loop,preload,controls');
+ setOptions('embeddedaudio', 'autoplay,loop,controls');
+ setOptions('global', 'id,name,vspace,hspace,bgcolor,align,width,height');
+
+ if (to_form) {
+ if (data.type == 'video') {
+ if (data.video.sources[0])
+ setVal('src', data.video.sources[0].src);
+
+ src = data.video.sources[1];
+ if (src)
+ setVal('video_altsource1', src.src);
+
+ src = data.video.sources[2];
+ if (src)
+ setVal('video_altsource2', src.src);
+ } else if (data.type == 'audio') {
+ if (data.video.sources[0])
+ setVal('src', data.video.sources[0].src);
+
+ src = data.video.sources[1];
+ if (src)
+ setVal('audio_altsource1', src.src);
+
+ src = data.video.sources[2];
+ if (src)
+ setVal('audio_altsource2', src.src);
+ } else {
+ // Check flash vars
+ if (data.type == 'flash') {
+ tinymce.each(editor.getParam('flash_video_player_flashvars', {url : '$url', poster : '$poster'}), function(value, name) {
+ if (value == '$url')
+ data.params.src = parseQueryParams(data.params.flashvars)[name] || data.params.src || '';
+ });
+ }
+
+ setVal('src', data.params.src);
+ }
+ } else {
+ src = getVal("src");
+
+ // YouTube *NEW*
+ if (src.match(/youtu.be\/[a-z1-9.-_]+/)) {
+ data.width = 425;
+ data.height = 350;
+ data.params.frameborder = '0';
+ data.type = 'iframe';
+ src = 'http://www.youtube.com/embed/' + src.match(/youtu.be\/([a-z1-9.-_]+)/)[1];
+ setVal('src', src);
+ setVal('media_type', data.type);
+ }
+
+ // YouTube
+ if (src.match(/youtube.com(.+)v=([^&]+)/)) {
+ data.width = 425;
+ data.height = 350;
+ data.params.frameborder = '0';
+ data.type = 'iframe';
+ src = 'http://www.youtube.com/embed/' + src.match(/v=([^&]+)/)[1];
+ setVal('src', src);
+ setVal('media_type', data.type);
+ }
+
+ // Google video
+ if (src.match(/video.google.com(.+)docid=([^&]+)/)) {
+ data.width = 425;
+ data.height = 326;
+ data.type = 'flash';
+ src = 'http://video.google.com/googleplayer.swf?docId=' + src.match(/docid=([^&]+)/)[1] + '&hl=en';
+ setVal('src', src);
+ setVal('media_type', data.type);
+ }
+
+ // Vimeo
+ if (src.match(/vimeo.com\/([0-9]+)/)) {
+ data.width = 425;
+ data.height = 350;
+ data.params.frameborder = '0';
+ data.type = 'iframe';
+ src = 'http://player.vimeo.com/video/' + src.match(/vimeo.com\/([0-9]+)/)[1];
+ setVal('src', src);
+ setVal('media_type', data.type);
+ }
+
+ // stream.cz
+ if (src.match(/stream.cz\/((?!object).)*\/([0-9]+)/)) {
+ data.width = 425;
+ data.height = 350;
+ data.params.frameborder = '0';
+ data.type = 'iframe';
+ src = 'http://www.stream.cz/object/' + src.match(/stream.cz\/[^/]+\/([0-9]+)/)[1];
+ setVal('src', src);
+ setVal('media_type', data.type);
+ }
+
+ // Google maps
+ if (src.match(/maps.google.([a-z]{2,3})\/maps\/(.+)msid=(.+)/)) {
+ data.width = 425;
+ data.height = 350;
+ data.params.frameborder = '0';
+ data.type = 'iframe';
+ src = 'http://maps.google.com/maps/ms?msid=' + src.match(/msid=(.+)/)[1] + "&output=embed";
+ setVal('src', src);
+ setVal('media_type', data.type);
+ }
+
+ if (data.type == 'video') {
+ if (!data.video.sources)
+ data.video.sources = [];
+
+ data.video.sources[0] = {src : src};
+
+ src = getVal("video_altsource1");
+ if (src)
+ data.video.sources[1] = {src : src};
+
+ src = getVal("video_altsource2");
+ if (src)
+ data.video.sources[2] = {src : src};
+ } else if (data.type == 'audio') {
+ if (!data.video.sources)
+ data.video.sources = [];
+
+ data.video.sources[0] = {src : src};
+
+ src = getVal("audio_altsource1");
+ if (src)
+ data.video.sources[1] = {src : src};
+
+ src = getVal("audio_altsource2");
+ if (src)
+ data.video.sources[2] = {src : src};
+ } else
+ data.params.src = src;
+
+ // Set default size
+ setVal('width', data.width || (data.type == 'audio' ? 300 : 320));
+ setVal('height', data.height || (data.type == 'audio' ? 32 : 240));
+ }
+ },
+
+ dataToForm : function() {
+ this.moveStates(true);
+ },
+
+ formToData : function(field) {
+ if (field == "width" || field == "height")
+ this.changeSize(field);
+
+ if (field == 'source') {
+ this.moveStates(false, field);
+ setVal('source', this.editor.plugins.media.dataToHtml(this.data));
+ this.panel = 'source';
+ } else {
+ if (this.panel == 'source') {
+ this.data = clone(this.editor.plugins.media.htmlToData(getVal('source')));
+ this.dataToForm();
+ this.panel = '';
+ }
+
+ this.moveStates(false, field);
+ this.preview();
+ }
+ },
+
+ beforeResize : function() {
+ this.width = parseInt(getVal('width') || (this.data.type == 'audio' ? "300" : "320"), 10);
+ this.height = parseInt(getVal('height') || (this.data.type == 'audio' ? "32" : "240"), 10);
+ },
+
+ changeSize : function(type) {
+ var width, height, scale, size;
+
+ if (get('constrain').checked) {
+ width = parseInt(getVal('width') || (this.data.type == 'audio' ? "300" : "320"), 10);
+ height = parseInt(getVal('height') || (this.data.type == 'audio' ? "32" : "240"), 10);
+
+ if (type == 'width') {
+ this.height = Math.round((width / this.width) * height);
+ setVal('height', this.height);
+ } else {
+ this.width = Math.round((height / this.height) * width);
+ setVal('width', this.width);
+ }
+ }
+ },
+
+ getMediaListHTML : function() {
+ if (typeof(tinyMCEMediaList) != "undefined" && tinyMCEMediaList.length > 0) {
+ var html = "";
+
+ html += '<select id="linklist" name="linklist" style="width: 250px" onchange="this.form.src.value=this.options[this.selectedIndex].value;Media.formToData(\'src\');">';
+ html += '<option value="">---</option>';
+
+ for (var i=0; i<tinyMCEMediaList.length; i++)
+ html += '<option value="' + tinyMCEMediaList[i][1] + '">' + tinyMCEMediaList[i][0] + '</option>';
+
+ html += '</select>';
+
+ return html;
+ }
+
+ return "";
+ },
+
+ getMediaTypeHTML : function(editor) {
+ function option(media_type, element) {
+ if (!editor.schema.getElementRule(element || media_type)) {
+ return '';
+ }
+
+ return '<option value="'+media_type+'">'+tinyMCEPopup.editor.translate("media_dlg."+media_type)+'</option>'
+ }
+
+ var html = "";
+
+ html += '<select id="media_type" name="media_type" onchange="Media.formToData(\'type\');">';
+ html += option("video");
+ html += option("audio");
+ html += option("flash", "object");
+ html += option("quicktime", "object");
+ html += option("shockwave", "object");
+ html += option("windowsmedia", "object");
+ html += option("realmedia", "object");
+ html += option("iframe");
+
+ if (editor.getParam('media_embedded_audio', false)) {
+ html += option('embeddedaudio', "object");
+ }
+
+ html += '</select>';
+ return html;
+ },
+
+ setDefaultDialogSettings : function(editor) {
+ var defaultDialogSettings = editor.getParam("media_dialog_defaults", {});
+ tinymce.each(defaultDialogSettings, function(v, k) {
+ setVal(k, v);
+ });
+ }
+ };
+
+ tinyMCEPopup.requireLangPack();
+ tinyMCEPopup.onInit.add(function() {
+ Media.init();
+ });
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/de_dlg.js
new file mode 100644
index 00000000..e64e083f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.media_dlg',{list:"Liste",file:"Datei/URL",advanced:"Erweitert",general:"Allgemein",title:"Multimedia-Inhalte einf\u00fcgen/bearbeiten","align_top_left":"Oben Links","align_center":"Zentriert","align_left":"Links","align_bottom":"Unten","align_right":"Rechts","align_top":"Oben","qt_stream_warn":"In den Erweiterten Einstellungen sollten im Feld \'QT Src\' gestreamte RTSP Resourcen hinzugef\u00fcgt werden.\nZus\u00e4tzlich sollte dort auch eine nicht-gestreamte Resource angegeben werden.",qtsrc:"Angabe zu QT Src",progress:"Fortschritt",sound:"Ton",swstretchvalign:"Stretch V-Ausrichtung",swstretchhalign:"Stretch H-Ausrichtung",swstretchstyle:"Stretch-Art",scriptcallbacks:"Script callbacks","align_top_right":"Oben Rechts",uimode:"UI Modus",rate:"Rate",playcount:"Z\u00e4hler",defaultframe:"Frame-Voreinstellung",currentposition:"Aktuelle Position",currentmarker:"Aktueller Marker",captioningid:"Captioning id",baseurl:"Base URL",balance:"Balance",windowlessvideo:"Fensterloses Video",stretchtofit:"Anzeigefl\u00e4che an verf\u00fcgbaren Platz anpassen",mute:"Stumm",invokeurls:"Invoke URLs",fullscreen:"Vollbild",enabled:"Aktiviert",autostart:"Autostart",volume:"Lautst\u00e4rke",target:"Ziel",qtsrcchokespeed:"Choke speed",href:"Href",endtime:"Endzeitpunkt",starttime:"Startzeitpunkt",enablejavascript:"JavaScript aktivieren",correction:"Ohne Korrektur",targetcache:"Ziel zwischenspeichern",playeveryframe:"Jeden Frame abspielen",kioskmode:"Kioskmodus",controller:"Controller",menu:"Men\u00fc anzeigen",loop:"Wiederholung",play:"Automatisches Abspielen",hspace:"Horizontaler Abstand",vspace:"Vertikaler Abstand","class_name":"CSS-Klasse",name:"Name",id:"Id",type:"Typ",size:"Abmessungen",preview:"Vorschau","constrain_proportions":"Proportionen erhalten",controls:"Steuerung",numloop:"Anzahl Wiederholungen",console:"Konsole",cache:"Zwischenspeicher",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Flashvariablen",base:"Base",bgcolor:"Hintergrund",wmode:"WMode",salign:"S-Ausrichtung",align:"Ausrichtung",scale:"Skalierung",quality:"Qualit\u00e4t",shuffle:"Zuf\u00e4llige Wiedergabe",prefetch:"Prefetch",nojava:"Kein Java",maintainaspect:"Bildverh\u00e4ltnis beibehalten",imagestatus:"Bildstatus",center:"Zentriert",autogotourl:"Auto goto URL","shockwave_options":"Shockwave-Optionen","rmp_options":"Optionen f\u00fcr Real Media Player","wmp_options":"Optionen f\u00fcr Windows Media Player","qt_options":"Quicktime-Optionen","flash_options":"Flash-Optionen",hidden:"Versteckt","align_bottom_left":"Unten Links","align_bottom_right":"Unten Rechts",flash:"Flash",quicktime:"QuickTime","embedded_audio_options":"Integrierte Audio Optionen",windowsmedia:"WindowsMedia",realmedia:"RealMedia",shockwave:"ShockWave",audio:"Audio",video:"Video","html5_video_options":"HTML5 Video Optionen",altsource1:"Alternative Quelle 1",altsource2:"Alternative Quelle 2",preload:"Preload",poster:"Poster",source:"Quelle","html5_audio_options":"Audio Optionen","preload_none":"Nicht vorladen","preload_metadata":"Video Metadaten vorladen","preload_auto":"Benutzer Browser entscheidet automatisch",iframe:"iFrame",embeddedaudio:"Audio (eingebunden)"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/en_dlg.js
new file mode 100644
index 00000000..b247f85c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.media_dlg',{list:"List",file:"File/URL",advanced:"Advanced",general:"General",title:"Insert/Edit Embedded Media","align_top_left":"Top Left","align_center":"Center","align_left":"Left","align_bottom":"Bottom","align_right":"Right","align_top":"Top","qt_stream_warn":"Streamed RTSP resources should be added to the QT Source field under the Advanced tab.\nYou should also add a non-streamed version to the Source field.",qtsrc:"QT Source",progress:"Progress",sound:"Sound",swstretchvalign:"Stretch V-Align",swstretchhalign:"Stretch H-Align",swstretchstyle:"Stretch Style",scriptcallbacks:"Script Callbacks","align_top_right":"Top Right",uimode:"UI Mode",rate:"Rate",playcount:"Play Count",defaultframe:"Default Frame",currentposition:"Current Position",currentmarker:"Current Marker",captioningid:"Captioning ID",baseurl:"Base URL",balance:"Balance",windowlessvideo:"Windowless Video",stretchtofit:"Stretch to Fit",mute:"Mute",invokeurls:"Invoke URLs",fullscreen:"Full Screen",enabled:"Enabled",autostart:"Auto Start",volume:"Volume",target:"Target",qtsrcchokespeed:"Choke Speed",href:"HREF",endtime:"End Time",starttime:"Start Time",enablejavascript:"Enable JavaScript",correction:"No Correction",targetcache:"Target Cache",playeveryframe:"Play Every Frame",kioskmode:"Kiosk Mode",controller:"Controller",menu:"Show Menu",loop:"Loop",play:"Auto Play",hspace:"H-Space",vspace:"V-Space","class_name":"Class",name:"Name",id:"ID",type:"Type",size:"Dimensions",preview:"Preview","constrain_proportions":"Constrain Proportions",controls:"Controls",numloop:"Num Loops",console:"Console",cache:"Cache",autohref:"Auto HREF",liveconnect:"SWLiveConnect",flashvars:"Flash Vars",base:"Base",bgcolor:"Background",wmode:"WMode",salign:"SAlign",align:"Align",scale:"Scale",quality:"Quality",shuffle:"Shuffle",prefetch:"Prefetch",nojava:"No Java",maintainaspect:"Maintain Aspect",imagestatus:"Image Status",center:"Center",autogotourl:"Auto Goto URL","shockwave_options":"Shockwave Options","rmp_options":"Real Media Player Options","wmp_options":"Windows Media Player Options","qt_options":"QuickTime Options","flash_options":"Flash Options",hidden:"Hidden","align_bottom_left":"Bottom Left","align_bottom_right":"Bottom Right",flash:"",quicktime:"","embedded_audio_options":"Embedded Audio Options",windowsmedia:"",realmedia:"",shockwave:"",audio:"",video:"","html5_video_options":"HTML5 Video Options",altsource1:"Alternative source 1",altsource2:"Alternative source 2",preload:"Preload",poster:"Poster",source:"Source","html5_audio_options":"Audio Options","preload_none":"Don\'t Preload","preload_metadata":"Preload video metadata","preload_auto":"Let user\'s browser decide",iframe:"",embeddedaudio:""}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/hu_dlg.js
new file mode 100644
index 00000000..b42e07a1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.media_dlg',{list:"Lista",file:"F\u00e1jl/URL",advanced:"Halad\u00f3",general:"\u00c1ltal\u00e1nos",title:"Be\u00e1gyazott m\u00e9dia besz\u00far\u00e1sa/szerkeszt\u00e9se","align_top_left":"Bal-fent","align_center":"K\u00f6z\u00e9pen","align_left":"Balra","align_bottom":"Lent","align_right":"Jobbra","align_top":"Fent","qt_stream_warn":"Streamelt rtsp forr\u00e1sok a QT Src mez\u0151be val\u00f3k a halad\u00f3 lapon.\nHozz\u00e1 kellene adnia egy nem streamelt verzi\u00f3t a Src mez\u0151ben.",qtsrc:"QT Src",progress:"Folyamat",sound:"Hang",swstretchvalign:"Ny\u00fajt\u00e1s F-igaz\u00edt\u00e1s",swstretchhalign:"Ny\u00fajt\u00e1s V-igaz\u00edt\u00e1s",swstretchstyle:"Ny\u00fajt\u00e1s st\u00edlusa",scriptcallbacks:"Script callbacks","align_top_right":"Jobbra fent",uimode:"UI M\u00f3d",rate:"\u00c9rt\u00e9kel\u00e9s",playcount:"Lej\u00e1tsz\u00e1ssz\u00e1m",defaultframe:"Alap\u00e9rtelmezett frame",currentposition:"Aktu\u00e1lis poz\u00edci\u00f3",currentmarker:"Aktu\u00e1lis marker",captioningid:"Captioning id",baseurl:"Alap URL",balance:"Balance",windowlessvideo:"Ablak n\u00e9lk\u00fcli vide\u00f3",stretchtofit:"Ny\u00fajtva igaz\u00edt\u00e1s",mute:"N\u00e9ma",invokeurls:"URL-ek bevon\u00e1sa",fullscreen:"Teljes k\u00e9perny\u0151",enabled:"Enged\u00e9lyezve",autostart:"Automatikus kezd\u00e9s",volume:"Hanger\u0151",target:"C\u00e9l",qtsrcchokespeed:"Folyt\u00e1s sebess\u00e9ge",href:"Href",endtime:"Z\u00e1r\u00f3 id\u0151",starttime:"Kezd\u00e9si id\u0151",enablejavascript:"JavaScript enged\u00e9se",correction:"Nincs jav\u00edt\u00e1s",targetcache:"C\u00e9l cache",playeveryframe:"Minden kocka lej\u00e1tsz\u00e1sa",kioskmode:"Kiosk m\u00f3d",controller:"Vez\u00e9rl\u0151",menu:"Men\u00fc mutat\u00e1sa",loop:"Ism\u00e9tl\u00e9s",play:"Automatikus lej\u00e1tsz\u00e1s",hspace:"V\u00edzszintes-t\u00e1v",vspace:"F\u00fcgg\u0151leges-t\u00e1v","class_name":"Oszt\u00e1ly",name:"N\u00e9v",id:"ID",type:"T\u00edpus",size:"M\u00e9retek",preview:"El\u0151n\u00e9zet","constrain_proportions":"Ar\u00e1nytart\u00e1s",controls:"Kezel\u0151k",numloop:"Ism\u00e9tl\u00e9ssz\u00e1m",console:"Konzol",cache:"Cache",autohref:"AutoHREF",liveconnect:"SWLiveConnect",flashvars:"Flashvars",base:"Base",bgcolor:"H\u00e1tt\u00e9r",wmode:"WM\u00f3d",salign:"SElrendez\u00e9s",align:"Elrendez\u00e9s",scale:"Nagy\u00edt\u00e1s",quality:"Min\u0151s\u00e9g",shuffle:"V\u00e9letlenszer\u0171",prefetch:"El\u0151t\u00f6lt\u00e9s",nojava:"Nincs Java",maintainaspect:"Ar\u00e1nytart\u00e1s",imagestatus:"K\u00e9p \u00e1llapot",center:"K\u00f6z\u00e9pre",autogotourl:"Automatikus URL-re ugr\u00e1s","shockwave_options":"Shockwave be\u00e1ll\u00edt\u00e1sai","rmp_options":"Real Media Player be\u00e1ll\u00edt\u00e1sai","wmp_options":"Windows Media Player be\u00e1ll\u00edt\u00e1sai","qt_options":"Quicktime be\u00e1ll\u00edt\u00e1sai","flash_options":"Flash be\u00e1ll\u00edt\u00e1sai",hidden:"Rejtett","align_bottom_left":"Bal-lent","align_bottom_right":"Bal-jobbra",flash:"flash",quicktime:"quicktime","embedded_audio_options":"Be\u00e1gyazott hang be\u00e1ll\u00edt\u00e1sok",windowsmedia:"windows m\u00e9dia",realmedia:"realmedia",shockwave:"shockwave",audio:"hang",video:"vide\u00f3","html5_video_options":"HTML5 Vide\u00f3 Be\u00e1ll\u00edt\u00e1sok",altsource1:"Alternat\u00edv forr\u00e1s 1",altsource2:"Alternat\u00edv forr\u00e1s 2",preload:"El\u0151t\u00f6lt\u00e9s",poster:"Hozz\u00e1ad\u00f3",source:"Forr\u00e1s","html5_audio_options":"Audi\u00f3 Be\u00e1ll\u00edt\u00e1sok","preload_none":"Nincs el\u0151reolvas\u00e1s","preload_metadata":"Vide\u00f3 metaadatok el\u0151reolvas\u00e1sa","preload_auto":"Hagyjuk a felhaszn\u00e1l\u00f3 b\u00f6ng\u00e9sz\u0151j\u00e9nek eld\u00f6nteni",iframe:"iframe (keret)",embeddedaudio:"be\u00e1gyazott hang"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/ja_dlg.js
new file mode 100644
index 00000000..9752ca22
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.media_dlg',{list:"\u4e00\u89a7",file:"\u30d5\u30a1\u30a4\u30eb\u3084URL",advanced:"\u8a73\u7d30",general:"\u4e00\u822c",title:"\u57cb\u3081\u8fbc\u307f\u30e1\u30c7\u30a3\u30a2\u306e\u633f\u5165\u3084\u7de8\u96c6","align_top_left":"\u5de6\u4e0a","align_center":"\u4e2d\u592e","align_left":"\u5de6","align_bottom":"\u4e0b","align_right":"\u53f3","align_top":"\u4e0a","qt_stream_warn":"RTSP\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30ea\u30bd\u30fc\u30b9\u3092\u300c\u9ad8\u5ea6\u300d\u306e\u30bf\u30d6\u306e\u300cQT\u306e\u30bd\u30fc\u30b9\u300d\u6b04\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u307e\u305f\u3001\u300c\u30bd\u30fc\u30b9\u300d\u6b04\u306b\u306f\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3067\u306f\u306a\u3044\u30d0\u30fc\u30b8\u30e7\u30fc\u30f3\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",qtsrc:"QT\u306e\u30bd\u30fc\u30b9",progress:"\u9032\u5c55",sound:"\u30b5\u30a6\u30f3\u30c9",swstretchvalign:"\u5782\u76f4\u306e\u914d\u7f6e",swstretchhalign:"\u6c34\u5e73\u306e\u914d\u7f6e",swstretchstyle:"\u4f38\u7e2e\u306e\u30b9\u30bf\u30a4\u30eb",scriptcallbacks:"\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af","align_top_right":"\u53f3\u4e0a",uimode:"UI\u3092\u8868\u793a\u3059\u308b\u30e2\u30fc\u30c9",rate:"\u518d\u751f\u30ec\u30fc\u30c8",playcount:"\u518d\u751f\u56de\u6570",defaultframe:"\u521d\u671f\u72b6\u614b\u306e\u30d5\u30ec\u30fc\u30e0",currentposition:"\u518d\u751f\u4f4d\u7f6e(\u79d2\u5358\u4f4d)",currentmarker:"\u30de\u30fc\u30ab\u30fc\u756a\u53f7",captioningid:"\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u8868\u793a\u8981\u7d20ID",baseurl:"\u57fa\u6e96\u306eURL",balance:"\u30b9\u30c6\u30ec\u30aa\u306e\u30d0\u30e9\u30f3\u30b9",windowlessvideo:"\u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u3057\u306e\u52d5\u753b",stretchtofit:"\u5408\u308f\u305b\u3066\u62e1\u5927",mute:"\u6d88\u97f3",invokeurls:"URL\u3092\u958b\u304f",fullscreen:"\u5168\u753b\u9762",enabled:"\u6709\u52b9",autostart:"\u81ea\u52d5\u518d\u751f",volume:"\u97f3\u91cf",target:"\u30bf\u30fc\u30b2\u30c3\u30c8",qtsrcchokespeed:"\u518d\u751f\u30c7\u30fc\u30bf\u30ec\u30fc\u30c8",href:"\u30ea\u30f3\u30af\u5148URL",endtime:"\u7d42\u4e86\u6642\u9593",starttime:"\u958b\u59cb\u6642\u9593",enablejavascript:"JavaScript\u3092\u6709\u52b9",correction:"\u8a02\u6b63\u306a\u3057",targetcache:"\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5",playeveryframe:"\u3059\u3079\u3066\u306e\u30d5\u30ec\u30fc\u30e0\u3092\u518d\u751f",kioskmode:"Kiosk\u30e2\u30fc\u30c9",controller:"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u8868\u793a",menu:"\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a",loop:"\u7e70\u308a\u8fd4\u3057",play:"\u81ea\u52d5\u518d\u751f",hspace:"\u5de6\u53f3\u306e\u4f59\u767d",vspace:"\u4e0a\u4e0b\u306e\u4f59\u767d","class_name":"\u30af\u30e9\u30b9",name:"\u540d\u524d",id:"ID",type:"\u30bf\u30a4\u30d7",size:"\u5bf8\u6cd5",preview:"\u30d7\u30ec\u30d3\u30e5\u30fc","constrain_proportions":"\u7e26\u6a2a\u6bd4\u3092\u7dad\u6301",controls:"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u8868\u793a",numloop:"\u7e70\u308a\u8fd4\u3057\u306e\u56de\u6570",console:"\u30b3\u30f3\u30bd\u30fc\u30eb",cache:"\u30ad\u30e3\u30c3\u30b7\u30e5",autohref:"\u81ea\u52d5\u8aad\u8fbc",liveconnect:"SWLiveConnect\u5c5e\u6027",flashvars:"Flash Vars",base:"Base",bgcolor:"\u80cc\u666f\u8272",wmode:"WMode",salign:"SAlign",align:"\u914d\u7f6e",scale:"\u4f38\u7e2e",quality:"\u54c1\u8cea",shuffle:"\u30b7\u30e3\u30c3\u30d5\u30eb",prefetch:"\u5148\u8aad\u307f",nojava:"Java\u3092\u7981\u6b62",maintainaspect:"\u7e26\u6a2a\u6bd4\u306e\u7dad\u6301",imagestatus:"\u753b\u50cf\u306e\u72b6\u614b",center:"\u4e2d\u592e\u63c3\u3048",autogotourl:"URL\u306b\u81ea\u52d5\u79fb\u52d5","shockwave_options":"Shockwave\u306e\u30aa\u30d7\u30b7\u30e7\u30f3","rmp_options":"Real media player\u306e\u30aa\u30d7\u30b7\u30e7\u30f3","wmp_options":"Windows media player\u306e\u30aa\u30d7\u30b7\u30e7\u30f3","qt_options":"Quicktime\u306e\u30aa\u30d7\u30b7\u30e7\u30f3","flash_options":"Flash\u306e\u30aa\u30d7\u30b7\u30e7\u30f3",hidden:"\u975e\u8868\u793a","align_bottom_left":"\u5de6\u4e0b","align_bottom_right":"\u53f3\u4e0b",flash:"flash",quicktime:"quicktime","embedded_audio_options":"\u57cb\u3081\u8fbc\u307fAudio\u306e\u30aa\u30d7\u30b7\u30e7\u30f3",windowsmedia:"Windows\u30e1\u30c7\u30a3\u30a2",realmedia:"realmedia",shockwave:"shockwave",audio:"\u30aa\u30fc\u30c7\u30a3\u30aa",video:"\u52d5\u753b","html5_video_options":"HTML5 Video\u306e\u30aa\u30d7\u30b7\u30e7\u30f3",altsource1:"\u4ee3\u66ff\u30bd\u30fc\u30b91",altsource2:"\u4ee3\u66ff\u30bd\u30fc\u30b92",preload:"preload\u5c5e\u6027",poster:"poster\u5c5e\u6027",source:"HTML","html5_audio_options":"Audio \u30aa\u30d7\u30b7\u30e7\u30f3","preload_none":"\u5148\u8aad\u307f\u3057\u306a\u3044","preload_metadata":"\u52d5\u753b\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u5148\u8aad\u307f","preload_auto":"\u30e6\u30fc\u30b6\u30fc\u306e\u30d6\u30e9\u30a6\u30b6\u30fc\u306b\u5f93\u3046",iframe:"iframe",embeddedaudio:"\u57cb\u3081\u8fbc\u307f\u97f3\u58f0"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/media.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/media.htm
new file mode 100755
index 00000000..957d83a6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/media.htm
@@ -0,0 +1,922 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#media_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/media.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <link href="css/media.css" rel="stylesheet" type="text/css" />
+</head>
+<body style="display: none" role="application">
+<form onsubmit="Media.insert();return false;" action="#">
+ <div class="tabs" role="presentation">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');Media.formToData();" onmousedown="return false;">{#media_dlg.general}</a></span></li>
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');Media.formToData();" onmousedown="return false;">{#media_dlg.advanced}</a></span></li>
+ <li id="source_tab" aria-controls="source_panel"><span><a href="javascript:mcTabs.displayTab('source_tab','source_panel');Media.formToData('source');" onmousedown="return false;">{#media_dlg.source}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#media_dlg.general}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td><label for="media_type">{#media_dlg.type}</label></td>
+ <td>
+ <select id="media_type"></select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="src">{#media_dlg.file}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="src" name="src" type="text" value="" class="mceFocus" onchange="Media.formToData();" /></td>
+ <td id="filebrowsercontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr id="linklistrow">
+ <td><label for="linklist">{#media_dlg.list}</label></td>
+ <td id="linklistcontainer"><select id="linklist"><option value=""></option></select></td>
+ </tr>
+ <tr>
+ <td><label for="width">{#media_dlg.size}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="text" id="width" name="width" value="" class="size" onchange="Media.formToData('width');" onfocus="Media.beforeResize();" /> x <input type="text" id="height" name="height" value="" class="size" onfocus="Media.beforeResize();" onchange="Media.formToData('height');" /></td>
+ <td>&nbsp;&nbsp;<input id="constrain" type="checkbox" name="constrain" class="checkbox" checked="checked" /></td>
+ <td><label id="constrainlabel" for="constrain">{#media_dlg.constrain_proportions}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset>
+ <legend>{#media_dlg.preview}</legend>
+ <div id="prev"></div>
+ </fieldset>
+ </div>
+
+ <div id="advanced_panel" class="panel">
+ <fieldset>
+ <legend>{#media_dlg.advanced}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0" width="100%">
+ <tr>
+ <td><label for="id">{#media_dlg.id}</label></td>
+ <td><input type="text" id="id" name="id" onchange="Media.formToData();" /></td>
+ <td><label for="name">{#media_dlg.name}</label></td>
+ <td><input type="text" id="name" name="name" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="align">{#media_dlg.align}</label></td>
+ <td>
+ <select id="align" name="align" onchange="Media.formToData();">
+ <option value="">{#not_set}</option>
+ <option value="top">{#media_dlg.align_top}</option>
+ <option value="right">{#media_dlg.align_right}</option>
+ <option value="bottom">{#media_dlg.align_bottom}</option>
+ <option value="left">{#media_dlg.align_left}</option>
+ </select>
+ </td>
+
+ <td><label for="bgcolor">{#media_dlg.bgcolor}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');Media.formToData();" /></td>
+ <td id="bgcolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="vspace">{#media_dlg.vspace}</label></td>
+ <td><input type="text" id="vspace" name="vspace" class="number" onchange="Media.formToData();" /></td>
+ <td><label for="hspace">{#media_dlg.hspace}</label></td>
+ <td><input type="text" id="hspace" name="hspace" class="number" onchange="Media.formToData();" /></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset id="video_options">
+ <legend>{#media_dlg.html5_video_options}</legend>
+
+ <table role="presentation">
+ <tr>
+ <td><label for="video_altsource1">{#media_dlg.altsource1}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="video_altsource1" name="video_altsource1" onchange="Media.formToData();" style="width: 240px" /></td>
+ <td id="video_altsource1_filebrowser">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="video_altsource2">{#media_dlg.altsource2}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="video_altsource2" name="video_altsource2" onchange="Media.formToData();" style="width: 240px" /></td>
+ <td id="video_altsource2_filebrowser">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="video_poster">{#media_dlg.poster}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="video_poster" name="video_poster" onchange="Media.formToData();" style="width: 240px" /></td>
+ <td id="video_poster_filebrowser">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="video_preload">{#media_dlg.preload}</label></td>
+ <td>
+ <select id="video_preload" name="video_preload" onchange="Media.formToData();">
+ <option value="none">{#media_dlg.preload_none}</option>
+ <option value="metadata">{#media_dlg.preload_metadata}</option>
+ <option value="auto">{#media_dlg.preload_auto}</option>
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="video_autoplay" name="video_autoplay" onchange="Media.formToData();" /></td>
+ <td><label for="video_autoplay">{#media_dlg.play}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="video_muted" name="video_muted" onchange="Media.formToData();" /></td>
+ <td><label for="video_muted">{#media_dlg.mute}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="video_loop" name="video_loop" onchange="Media.formToData();" /></td>
+ <td><label for="video_loop">{#media_dlg.loop}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="video_controls" name="video_controls" onchange="Media.formToData();" /></td>
+ <td><label for="video_controls">{#media_dlg.controls}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset id="embeddedaudio_options">
+ <legend>{#media_dlg.embedded_audio_options}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="embeddedaudio_autoplay" name="audio_autoplay" onchange="Media.formToData();" /></td>
+ <td><label for="audio_autoplay">{#media_dlg.play}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="embeddedaudio_loop" name="audio_loop" onchange="Media.formToData();" /></td>
+ <td><label for="audio_loop">{#media_dlg.loop}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="embeddedaudio_controls" name="audio_controls" onchange="Media.formToData();" /></td>
+ <td><label for="audio_controls">{#media_dlg.controls}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset id="audio_options">
+ <legend>{#media_dlg.html5_audio_options}</legend>
+
+ <table role="presentation">
+ <tr>
+ <td><label for="audio_altsource1">{#media_dlg.altsource1}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="audio_altsource1" name="audio_altsource1" onchange="Media.formToData();" style="width: 240px" /></td>
+ <td id="audio_altsource1_filebrowser">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="audio_altsource2">{#media_dlg.altsource2}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="audio_altsource2" name="audio_altsource2" onchange="Media.formToData();" style="width: 240px" /></td>
+ <td id="audio_altsource2_filebrowser">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="audio_preload">{#media_dlg.preload}</label></td>
+ <td>
+ <select id="audio_preload" name="audio_preload" onchange="Media.formToData();">
+ <option value="none">{#media_dlg.preload_none}</option>
+ <option value="metadata">{#media_dlg.preload_metadata}</option>
+ <option value="auto">{#media_dlg.preload_auto}</option>
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="audio_autoplay" name="audio_autoplay" onchange="Media.formToData();" /></td>
+ <td><label for="audio_autoplay">{#media_dlg.play}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="audio_loop" name="audio_loop" onchange="Media.formToData();" /></td>
+ <td><label for="audio_loop">{#media_dlg.loop}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="audio_controls" name="audio_controls" onchange="Media.formToData();" /></td>
+ <td><label for="audio_controls">{#media_dlg.controls}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset id="flash_options">
+ <legend>{#media_dlg.flash_options}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td><label for="flash_quality">{#media_dlg.quality}</label></td>
+ <td>
+ <select id="flash_quality" name="flash_quality" onchange="Media.formToData();">
+ <option value="">{#not_set}</option>
+ <option value="high">high</option>
+ <option value="low">low</option>
+ <option value="autolow">autolow</option>
+ <option value="autohigh">autohigh</option>
+ <option value="best">best</option>
+ </select>
+ </td>
+
+ <td><label for="flash_scale">{#media_dlg.scale}</label></td>
+ <td>
+ <select id="flash_scale" name="flash_scale" onchange="Media.formToData();">
+ <option value="">{#not_set}</option>
+ <option value="showall">showall</option>
+ <option value="noborder">noborder</option>
+ <option value="exactfit">exactfit</option>
+ <option value="noscale">noscale</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="flash_wmode">{#media_dlg.wmode}</label></td>
+ <td>
+ <select id="flash_wmode" name="flash_wmode" onchange="Media.formToData();">
+ <option value="">{#not_set}</option>
+ <option value="window">window</option>
+ <option value="opaque">opaque</option>
+ <option value="transparent">transparent</option>
+ </select>
+ </td>
+
+ <td><label for="flash_salign">{#media_dlg.salign}</label></td>
+ <td>
+ <select id="flash_salign" name="flash_salign" onchange="Media.formToData();">
+ <option value="">{#not_set}</option>
+ <option value="l">{#media_dlg.align_left}</option>
+ <option value="t">{#media_dlg.align_top}</option>
+ <option value="r">{#media_dlg.align_right}</option>
+ <option value="b">{#media_dlg.align_bottom}</option>
+ <option value="tl">{#media_dlg.align_top_left}</option>
+ <option value="tr">{#media_dlg.align_top_right}</option>
+ <option value="bl">{#media_dlg.align_bottom_left}</option>
+ <option value="br">{#media_dlg.align_bottom_right}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="flash_play" name="flash_play" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="flash_play">{#media_dlg.play}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="flash_loop" name="flash_loop" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="flash_loop">{#media_dlg.loop}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="flash_menu" name="flash_menu" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="flash_menu">{#media_dlg.menu}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="flash_swliveconnect" name="flash_swliveconnect" onchange="Media.formToData();" /></td>
+ <td><label for="flash_swliveconnect">{#media_dlg.liveconnect}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ <table role="presentation">
+ <tr>
+ <td><label for="flash_base">{#media_dlg.base}</label></td>
+ <td><input type="text" id="flash_base" name="flash_base" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="flash_flashvars">{#media_dlg.flashvars}</label></td>
+ <td><input type="text" id="flash_flashvars" name="flash_flashvars" onchange="Media.formToData();" /></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset id="quicktime_options">
+ <legend>{#media_dlg.qt_options}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_loop" name="quicktime_loop" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_loop">{#media_dlg.loop}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_autoplay" name="quicktime_autoplay" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_autoplay">{#media_dlg.play}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_cache" name="quicktime_cache" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_cache">{#media_dlg.cache}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_controller" name="quicktime_controller" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_controller">{#media_dlg.controller}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_correction" name="quicktime_correction" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_correction">{#media_dlg.correction}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_enablejavascript" name="quicktime_enablejavascript" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_enablejavascript">{#media_dlg.enablejavascript}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_kioskmode" name="quicktime_kioskmode" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_kioskmode">{#media_dlg.kioskmode}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_autohref" name="quicktime_autohref" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_autohref">{#media_dlg.autohref}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_playeveryframe" name="quicktime_playeveryframe" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_playeveryframe">{#media_dlg.playeveryframe}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="quicktime_targetcache" name="quicktime_targetcache" onchange="Media.formToData();" /></td>
+ <td><label for="quicktime_targetcache">{#media_dlg.targetcache}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="quicktime_scale">{#media_dlg.scale}</label></td>
+ <td><select id="quicktime_scale" name="quicktime_scale" class="mceEditableSelect" onchange="Media.formToData();">
+ <option value="">{#not_set}</option>
+ <option value="tofit">tofit</option>
+ <option value="aspect">aspect</option>
+ </select>
+ </td>
+
+ <td colspan="2">&nbsp;</td>
+ </tr>
+
+ <tr>
+ <td><label for="quicktime_starttime">{#media_dlg.starttime}</label></td>
+ <td><input type="text" id="quicktime_starttime" name="quicktime_starttime" onchange="Media.formToData();" /></td>
+
+ <td><label for="quicktime_endtime">{#media_dlg.endtime}</label></td>
+ <td><input type="text" id="quicktime_endtime" name="quicktime_endtime" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="quicktime_target">{#media_dlg.target}</label></td>
+ <td><input type="text" id="quicktime_target" name="quicktime_target" onchange="Media.formToData();" /></td>
+
+ <td><label for="quicktime_href">{#media_dlg.href}</label></td>
+ <td><input type="text" id="quicktime_href" name="quicktime_href" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="quicktime_qtsrcchokespeed">{#media_dlg.qtsrcchokespeed}</label></td>
+ <td><input type="text" id="quicktime_qtsrcchokespeed" name="quicktime_qtsrcchokespeed" onchange="Media.formToData();" /></td>
+
+ <td><label for="quicktime_volume">{#media_dlg.volume}</label></td>
+ <td><input type="text" id="quicktime_volume" name="quicktime_volume" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="quicktime_qtsrc">{#media_dlg.qtsrc}</label></td>
+ <td colspan="4">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="quicktime_qtsrc" name="quicktime_qtsrc" onchange="Media.formToData();" /></td>
+ <td id="qtsrcfilebrowsercontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset id="windowsmedia_options">
+ <legend>{#media_dlg.wmp_options}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_autostart" name="windowsmedia_autostart" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_autostart">{#media_dlg.autostart}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_enabled" name="windowsmedia_enabled" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_enabled">{#media_dlg.enabled}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_enablecontextmenu" name="windowsmedia_enablecontextmenu" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_enablecontextmenu">{#media_dlg.menu}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_fullscreen" name="windowsmedia_fullscreen" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_fullscreen">{#media_dlg.fullscreen}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_invokeurls" name="windowsmedia_invokeurls" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_invokeurls">{#media_dlg.invokeurls}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_mute" name="windowsmedia_mute" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_mute">{#media_dlg.mute}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_stretchtofit" name="windowsmedia_stretchtofit" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_stretchtofit">{#media_dlg.stretchtofit}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="windowsmedia_windowlessvideo" name="windowsmedia_windowlessvideo" onchange="Media.formToData();" /></td>
+ <td><label for="windowsmedia_windowlessvideo">{#media_dlg.windowlessvideo}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="windowsmedia_balance">{#media_dlg.balance}</label></td>
+ <td><input type="text" id="windowsmedia_balance" name="windowsmedia_balance" onchange="Media.formToData();" /></td>
+
+ <td><label for="windowsmedia_baseurl">{#media_dlg.baseurl}</label></td>
+ <td><input type="text" id="windowsmedia_baseurl" name="windowsmedia_baseurl" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="windowsmedia_captioningid">{#media_dlg.captioningid}</label></td>
+ <td><input type="text" id="windowsmedia_captioningid" name="windowsmedia_captioningid" onchange="Media.formToData();" /></td>
+
+ <td><label for="windowsmedia_currentmarker">{#media_dlg.currentmarker}</label></td>
+ <td><input type="text" id="windowsmedia_currentmarker" name="windowsmedia_currentmarker" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="windowsmedia_currentposition">{#media_dlg.currentposition}</label></td>
+ <td><input type="text" id="windowsmedia_currentposition" name="windowsmedia_currentposition" onchange="Media.formToData();" /></td>
+
+ <td><label for="windowsmedia_defaultframe">{#media_dlg.defaultframe}</label></td>
+ <td><input type="text" id="windowsmedia_defaultframe" name="windowsmedia_defaultframe" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="windowsmedia_playcount">{#media_dlg.playcount}</label></td>
+ <td><input type="text" id="windowsmedia_playcount" name="windowsmedia_playcount" onchange="Media.formToData();" /></td>
+
+ <td><label for="windowsmedia_rate">{#media_dlg.rate}</label></td>
+ <td><input type="text" id="windowsmedia_rate" name="windowsmedia_rate" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="windowsmedia_uimode">{#media_dlg.uimode}</label></td>
+ <td><input type="text" id="windowsmedia_uimode" name="windowsmedia_uimode" onchange="Media.formToData();" /></td>
+
+ <td><label for="windowsmedia_volume">{#media_dlg.volume}</label></td>
+ <td><input type="text" id="windowsmedia_volume" name="windowsmedia_volume" onchange="Media.formToData();" /></td>
+ </tr>
+
+ </table>
+ </fieldset>
+
+ <fieldset id="realmedia_options">
+ <legend>{#media_dlg.rmp_options}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_autostart" name="realmedia_autostart" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_autostart">{#media_dlg.autostart}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_loop" name="realmedia_loop" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_loop">{#media_dlg.loop}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_autogotourl" name="realmedia_autogotourl" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_autogotourl">{#media_dlg.autogotourl}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_center" name="realmedia_center" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_center">{#media_dlg.center}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_imagestatus" name="realmedia_imagestatus" checked="checked" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_imagestatus">{#media_dlg.imagestatus}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_maintainaspect" name="realmedia_maintainaspect" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_maintainaspect">{#media_dlg.maintainaspect}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_nojava" name="realmedia_nojava" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_nojava">{#media_dlg.nojava}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_prefetch" name="realmedia_prefetch" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_prefetch">{#media_dlg.prefetch}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="realmedia_shuffle" name="realmedia_shuffle" onchange="Media.formToData();" /></td>
+ <td><label for="realmedia_shuffle">{#media_dlg.shuffle}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ &nbsp;
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="realmedia_console">{#media_dlg.console}</label></td>
+ <td><input type="text" id="realmedia_console" name="realmedia_console" onchange="Media.formToData();" /></td>
+
+ <td><label for="realmedia_controls">{#media_dlg.controls}</label></td>
+ <td><input type="text" id="realmedia_controls" name="realmedia_controls" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="realmedia_numloop">{#media_dlg.numloop}</label></td>
+ <td><input type="text" id="realmedia_numloop" name="realmedia_numloop" onchange="Media.formToData();" /></td>
+
+ <td><label for="realmedia_scriptcallbacks">{#media_dlg.scriptcallbacks}</label></td>
+ <td><input type="text" id="realmedia_scriptcallbacks" name="realmedia_scriptcallbacks" onchange="Media.formToData();" /></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <fieldset id="shockwave_options">
+ <legend>{#media_dlg.shockwave_options}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td><label for="shockwave_swstretchstyle">{#media_dlg.swstretchstyle}</label></td>
+ <td>
+ <select id="shockwave_swstretchstyle" name="shockwave_swstretchstyle" onchange="Media.formToData();">
+ <option value="none">{#not_set}</option>
+ <option value="meet">Meet</option>
+ <option value="fill">Fill</option>
+ <option value="stage">Stage</option>
+ </select>
+ </td>
+
+ <td><label for="shockwave_swvolume">{#media_dlg.volume}</label></td>
+ <td><input type="text" id="shockwave_swvolume" name="shockwave_swvolume" onchange="Media.formToData();" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="shockwave_swstretchhalign">{#media_dlg.swstretchhalign}</label></td>
+ <td>
+ <select id="shockwave_swstretchhalign" name="shockwave_swstretchhalign" onchange="Media.formToData();">
+ <option value="none">{#not_set}</option>
+ <option value="left">{#media_dlg.align_left}</option>
+ <option value="center">{#media_dlg.align_center}</option>
+ <option value="right">{#media_dlg.align_right}</option>
+ </select>
+ </td>
+
+ <td><label for="shockwave_swstretchvalign">{#media_dlg.swstretchvalign}</label></td>
+ <td>
+ <select id="shockwave_swstretchvalign" name="shockwave_swstretchvalign" onchange="Media.formToData();">
+ <option value="none">{#not_set}</option>
+ <option value="meet">Meet</option>
+ <option value="fill">Fill</option>
+ <option value="stage">Stage</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="shockwave_autostart" name="shockwave_autostart" onchange="Media.formToData();" checked="checked" /></td>
+ <td><label for="shockwave_autostart">{#media_dlg.autostart}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="shockwave_sound" name="shockwave_sound" onchange="Media.formToData();" checked="checked" /></td>
+ <td><label for="shockwave_sound">{#media_dlg.sound}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="shockwave_swliveconnect" name="shockwave_swliveconnect" onchange="Media.formToData();" /></td>
+ <td><label for="shockwave_swliveconnect">{#media_dlg.liveconnect}</label></td>
+ </tr>
+ </table>
+ </td>
+
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="checkbox" class="checkbox" id="shockwave_progress" name="shockwave_progress" onchange="Media.formToData();" checked="checked" /></td>
+ <td><label for="shockwave_progress">{#media_dlg.progress}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="source_panel" class="panel">
+ <fieldset>
+ <legend>{#media_dlg.source}</legend>
+ <textarea id="source" style="width: 99%; height: 390px"></textarea>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/moxieplayer.swf b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/moxieplayer.swf
new file mode 100644
index 00000000..585d772d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/media/moxieplayer.swf
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin.js
new file mode 100755
index 00000000..687f5486
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">&nbsp;</span>':"&nbsp;")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(f.keyCode==9){f.preventDefault();d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking")}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
new file mode 100755
index 00000000..d492fbef
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
@@ -0,0 +1,54 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.Nonbreaking', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceNonBreaking', function() {
+ ed.execCommand('mceInsertContent', false, (ed.plugins.visualchars && ed.plugins.visualchars.state) ? '<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">&nbsp;</span>' : '&nbsp;');
+ });
+
+ // Register buttons
+ ed.addButton('nonbreaking', {title : 'nonbreaking.nonbreaking_desc', cmd : 'mceNonBreaking'});
+
+ if (ed.getParam('nonbreaking_force_tab')) {
+ ed.onKeyDown.add(function(ed, e) {
+ if (e.keyCode == 9) {
+ e.preventDefault();
+
+ ed.execCommand('mceNonBreaking');
+ ed.execCommand('mceNonBreaking');
+ ed.execCommand('mceNonBreaking');
+ }
+ });
+ }
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Nonbreaking space',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+
+ // Private methods
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('nonbreaking', tinymce.plugins.Nonbreaking);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin.js
new file mode 100755
index 00000000..da411ebc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var c=tinymce.dom.TreeWalker;var a="contenteditable",d="data-mce-"+a;var e=tinymce.VK;function b(n){var j=n.dom,p=n.selection,r,o="mce_noneditablecaret",r="\uFEFF";function m(t){var s;if(t.nodeType===1){s=t.getAttribute(d);if(s&&s!=="inherit"){return s}s=t.contentEditable;if(s!=="inherit"){return s}}return null}function g(s){var t;while(s){t=m(s);if(t){return t==="false"?s:null}s=s.parentNode}}function l(s){while(s){if(s.id===o){return s}s=s.parentNode}}function k(s){var t;if(s){t=new c(s,s);for(s=t.current();s;s=t.next()){if(s.nodeType===3){return s}}}}function f(v,u){var s,t;if(m(v)==="false"){if(j.isBlock(v)){p.select(v);return}}t=j.createRng();if(m(v)==="true"){if(!v.firstChild){v.appendChild(n.getDoc().createTextNode("\u00a0"))}v=v.firstChild;u=true}s=j.create("span",{id:o,"data-mce-bogus":true},r);if(u){v.parentNode.insertBefore(s,v)}else{j.insertAfter(s,v)}t.setStart(s.firstChild,1);t.collapse(true);p.setRng(t);return s}function i(s){var v,t,u;if(s){rng=p.getRng(true);rng.setStartBefore(s);rng.setEndBefore(s);v=k(s);if(v&&v.nodeValue.charAt(0)==r){v=v.deleteData(0,1)}j.remove(s,true);p.setRng(rng)}else{t=l(p.getStart());while((s=j.get(o))&&s!==u){if(t!==s){v=k(s);if(v&&v.nodeValue.charAt(0)==r){v=v.deleteData(0,1)}j.remove(s,true)}u=s}}}function q(){var s,w,u,t,v;function x(B,D){var A,F,E,C,z;A=t.startContainer;F=t.startOffset;if(A.nodeType==3){z=A.nodeValue.length;if((F>0&&F<z)||(D?F==z:F==0)){return}}else{if(F<A.childNodes.length){var G=!D&&F>0?F-1:F;A=A.childNodes[G];if(A.hasChildNodes()){A=A.firstChild}}else{return !D?B:null}}E=new c(A,B);while(C=E[D?"prev":"next"]()){if(C.nodeType===3&&C.nodeValue.length>0){return}else{if(m(C)==="true"){return C}}}return B}i();u=p.isCollapsed();s=g(p.getStart());w=g(p.getEnd());if(s||w){t=p.getRng(true);if(u){s=s||w;var y=p.getStart();if(v=x(s,true)){f(v,true)}else{if(v=x(s,false)){f(v,false)}else{p.select(s)}}}else{t=p.getRng(true);if(s){t.setStartBefore(s)}if(w){t.setEndAfter(w)}p.setRng(t)}}}function h(z,B){var F=B.keyCode,x,C,D,v;function u(H,G){while(H=H[G?"previousSibling":"nextSibling"]){if(H.nodeType!==3||H.nodeValue.length>0){return H}}}function y(G,H){p.select(G);p.collapse(H)}function t(K){var J,I,M,H;function G(O){var N=I;while(N){if(N===O){return}N=N.parentNode}j.remove(O);q()}function L(){var O,P,N=z.schema.getNonEmptyElements();P=new tinymce.dom.TreeWalker(I,z.getBody());while(O=(K?P.prev():P.next())){if(N[O.nodeName.toLowerCase()]){break}if(O.nodeType===3&&tinymce.trim(O.nodeValue).length>0){break}if(m(O)==="false"){G(O);return true}}if(g(O)){return true}return false}if(p.isCollapsed()){J=p.getRng(true);I=J.startContainer;M=J.startOffset;I=l(I)||I;if(H=g(I)){G(H);return false}if(I.nodeType==3&&(K?M>0:M<I.nodeValue.length)){return true}if(I.nodeType==1){I=I.childNodes[M]||I}if(L()){return false}}return true}D=p.getStart();v=p.getEnd();x=g(D)||g(v);if(x&&(F<112||F>124)&&F!=e.DELETE&&F!=e.BACKSPACE){if((tinymce.isMac?B.metaKey:B.ctrlKey)&&(F==67||F==88||F==86)){return}B.preventDefault();if(F==e.LEFT||F==e.RIGHT){var w=F==e.LEFT;if(z.dom.isBlock(x)){var A=w?x.previousSibling:x.nextSibling;var s=new c(A,A);var E=w?s.prev():s.next();y(E,!w)}else{y(x,w)}}}else{if(F==e.LEFT||F==e.RIGHT||F==e.BACKSPACE||F==e.DELETE){C=l(D);if(C){if(F==e.LEFT||F==e.BACKSPACE){x=u(C,true);if(x&&m(x)==="false"){B.preventDefault();if(F==e.LEFT){y(x,true)}else{j.remove(x);return}}else{i(C)}}if(F==e.RIGHT||F==e.DELETE){x=u(C);if(x&&m(x)==="false"){B.preventDefault();if(F==e.RIGHT){y(x,false)}else{j.remove(x);return}}else{i(C)}}}if((F==e.BACKSPACE||F==e.DELETE)&&!t(F==e.BACKSPACE)){B.preventDefault();return false}}}}n.onMouseDown.addToTop(function(s,u){var t=s.selection.getNode();if(m(t)==="false"&&t==u.target){q()}});n.onMouseUp.addToTop(q);n.onKeyDown.addToTop(h);n.onKeyUp.addToTop(q)}tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(i,k){var h,g,j;function f(m,n){var o=j.length,p=n.content,l=tinymce.trim(g);if(n.format=="raw"){return}while(o--){p=p.replace(j[o],function(s){var r=arguments,q=r[r.length-2];if(q>0&&p.charAt(q-1)=='"'){return s}return'<span class="'+l+'" data-mce-content="'+m.dom.encode(r[0])+'">'+m.dom.encode(typeof(r[1])==="string"?r[1]:r[0])+"</span>"})}n.content=p}h=" "+tinymce.trim(i.getParam("noneditable_editable_class","mceEditable"))+" ";g=" "+tinymce.trim(i.getParam("noneditable_noneditable_class","mceNonEditable"))+" ";j=i.getParam("noneditable_regexp");if(j&&!j.length){j=[j]}i.onPreInit.add(function(){b(i);if(j){i.selection.onBeforeSetContent.add(f);i.onBeforeSetContent.add(f)}i.parser.addAttributeFilter("class",function(l){var m=l.length,n,o;while(m--){o=l[m];n=" "+o.attr("class")+" ";if(n.indexOf(h)!==-1){o.attr(d,"true")}else{if(n.indexOf(g)!==-1){o.attr(d,"false")}}}});i.serializer.addAttributeFilter(d,function(l,m){var n=l.length,o;while(n--){o=l[n];if(j&&o.attr("data-mce-content")){o.name="#text";o.type=3;o.raw=true;o.value=o.attr("data-mce-content")}else{o.attr(a,null);o.attr(d,null)}}});i.parser.addAttributeFilter(a,function(l,m){var n=l.length,o;while(n--){o=l[n];o.attr(d,o.attr(a));o.attr(a,null)}})})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin_src.js
new file mode 100755
index 00000000..a18bcd78
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/noneditable/editor_plugin_src.js
@@ -0,0 +1,537 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var TreeWalker = tinymce.dom.TreeWalker;
+ var externalName = 'contenteditable', internalName = 'data-mce-' + externalName;
+ var VK = tinymce.VK;
+
+ function handleContentEditableSelection(ed) {
+ var dom = ed.dom, selection = ed.selection, invisibleChar, caretContainerId = 'mce_noneditablecaret', invisibleChar = '\uFEFF';
+
+ // Returns the content editable state of a node "true/false" or null
+ function getContentEditable(node) {
+ var contentEditable;
+
+ // Ignore non elements
+ if (node.nodeType === 1) {
+ // Check for fake content editable
+ contentEditable = node.getAttribute(internalName);
+ if (contentEditable && contentEditable !== "inherit") {
+ return contentEditable;
+ }
+
+ // Check for real content editable
+ contentEditable = node.contentEditable;
+ if (contentEditable !== "inherit") {
+ return contentEditable;
+ }
+ }
+
+ return null;
+ };
+
+ // Returns the noneditable parent or null if there is a editable before it or if it wasn't found
+ function getNonEditableParent(node) {
+ var state;
+
+ while (node) {
+ state = getContentEditable(node);
+ if (state) {
+ return state === "false" ? node : null;
+ }
+
+ node = node.parentNode;
+ }
+ };
+
+ // Get caret container parent for the specified node
+ function getParentCaretContainer(node) {
+ while (node) {
+ if (node.id === caretContainerId) {
+ return node;
+ }
+
+ node = node.parentNode;
+ }
+ };
+
+ // Finds the first text node in the specified node
+ function findFirstTextNode(node) {
+ var walker;
+
+ if (node) {
+ walker = new TreeWalker(node, node);
+
+ for (node = walker.current(); node; node = walker.next()) {
+ if (node.nodeType === 3) {
+ return node;
+ }
+ }
+ }
+ };
+
+ // Insert caret container before/after target or expand selection to include block
+ function insertCaretContainerOrExpandToBlock(target, before) {
+ var caretContainer, rng;
+
+ // Select block
+ if (getContentEditable(target) === "false") {
+ if (dom.isBlock(target)) {
+ selection.select(target);
+ return;
+ }
+ }
+
+ rng = dom.createRng();
+
+ if (getContentEditable(target) === "true") {
+ if (!target.firstChild) {
+ target.appendChild(ed.getDoc().createTextNode('\u00a0'));
+ }
+
+ target = target.firstChild;
+ before = true;
+ }
+
+ //caretContainer = dom.create('span', {id: caretContainerId, 'data-mce-bogus': true, style:'border: 1px solid red'}, invisibleChar);
+ caretContainer = dom.create('span', {id: caretContainerId, 'data-mce-bogus': true}, invisibleChar);
+
+ if (before) {
+ target.parentNode.insertBefore(caretContainer, target);
+ } else {
+ dom.insertAfter(caretContainer, target);
+ }
+
+ rng.setStart(caretContainer.firstChild, 1);
+ rng.collapse(true);
+ selection.setRng(rng);
+
+ return caretContainer;
+ };
+
+ // Removes any caret container except the one we might be in
+ function removeCaretContainer(caretContainer) {
+ var child, currentCaretContainer, lastContainer;
+
+ if (caretContainer) {
+ rng = selection.getRng(true);
+ rng.setStartBefore(caretContainer);
+ rng.setEndBefore(caretContainer);
+
+ child = findFirstTextNode(caretContainer);
+ if (child && child.nodeValue.charAt(0) == invisibleChar) {
+ child = child.deleteData(0, 1);
+ }
+
+ dom.remove(caretContainer, true);
+
+ selection.setRng(rng);
+ } else {
+ currentCaretContainer = getParentCaretContainer(selection.getStart());
+ while ((caretContainer = dom.get(caretContainerId)) && caretContainer !== lastContainer) {
+ if (currentCaretContainer !== caretContainer) {
+ child = findFirstTextNode(caretContainer);
+ if (child && child.nodeValue.charAt(0) == invisibleChar) {
+ child = child.deleteData(0, 1);
+ }
+
+ dom.remove(caretContainer, true);
+ }
+
+ lastContainer = caretContainer;
+ }
+ }
+ };
+
+ // Modifies the selection to include contentEditable false elements or insert caret containers
+ function moveSelection() {
+ var nonEditableStart, nonEditableEnd, isCollapsed, rng, element;
+
+ // Checks if there is any contents to the left/right side of caret returns the noneditable element or any editable element if it finds one inside
+ function hasSideContent(element, left) {
+ var container, offset, walker, node, len;
+
+ container = rng.startContainer;
+ offset = rng.startOffset;
+
+ // If endpoint is in middle of text node then expand to beginning/end of element
+ if (container.nodeType == 3) {
+ len = container.nodeValue.length;
+ if ((offset > 0 && offset < len) || (left ? offset == len : offset == 0)) {
+ return;
+ }
+ } else {
+ // Can we resolve the node by index
+ if (offset < container.childNodes.length) {
+ // Browser represents caret position as the offset at the start of an element. When moving right
+ // this is the element we are moving into so we consider our container to be child node at offset-1
+ var pos = !left && offset > 0 ? offset-1 : offset;
+ container = container.childNodes[pos];
+ if (container.hasChildNodes()) {
+ container = container.firstChild;
+ }
+ } else {
+ // If not then the caret is at the last position in it's container and the caret container should be inserted after the noneditable element
+ return !left ? element : null;
+ }
+ }
+
+ // Walk left/right to look for contents
+ walker = new TreeWalker(container, element);
+ while (node = walker[left ? 'prev' : 'next']()) {
+ if (node.nodeType === 3 && node.nodeValue.length > 0) {
+ return;
+ } else if (getContentEditable(node) === "true") {
+ // Found contentEditable=true element return this one to we can move the caret inside it
+ return node;
+ }
+ }
+
+ return element;
+ };
+
+ // Remove any existing caret containers
+ removeCaretContainer();
+
+ // Get noneditable start/end elements
+ isCollapsed = selection.isCollapsed();
+ nonEditableStart = getNonEditableParent(selection.getStart());
+ nonEditableEnd = getNonEditableParent(selection.getEnd());
+
+ // Is any fo the range endpoints noneditable
+ if (nonEditableStart || nonEditableEnd) {
+ rng = selection.getRng(true);
+
+ // If it's a caret selection then look left/right to see if we need to move the caret out side or expand
+ if (isCollapsed) {
+ nonEditableStart = nonEditableStart || nonEditableEnd;
+ var start = selection.getStart();
+ if (element = hasSideContent(nonEditableStart, true)) {
+ // We have no contents to the left of the caret then insert a caret container before the noneditable element
+ insertCaretContainerOrExpandToBlock(element, true);
+ } else if (element = hasSideContent(nonEditableStart, false)) {
+ // We have no contents to the right of the caret then insert a caret container after the noneditable element
+ insertCaretContainerOrExpandToBlock(element, false);
+ } else {
+ // We are in the middle of a noneditable so expand to select it
+ selection.select(nonEditableStart);
+ }
+ } else {
+ rng = selection.getRng(true);
+
+ // Expand selection to include start non editable element
+ if (nonEditableStart) {
+ rng.setStartBefore(nonEditableStart);
+ }
+
+ // Expand selection to include end non editable element
+ if (nonEditableEnd) {
+ rng.setEndAfter(nonEditableEnd);
+ }
+
+ selection.setRng(rng);
+ }
+ }
+ };
+
+ function handleKey(ed, e) {
+ var keyCode = e.keyCode, nonEditableParent, caretContainer, startElement, endElement;
+
+ function getNonEmptyTextNodeSibling(node, prev) {
+ while (node = node[prev ? 'previousSibling' : 'nextSibling']) {
+ if (node.nodeType !== 3 || node.nodeValue.length > 0) {
+ return node;
+ }
+ }
+ };
+
+ function positionCaretOnElement(element, start) {
+ selection.select(element);
+ selection.collapse(start);
+ }
+
+ function canDelete(backspace) {
+ var rng, container, offset, nonEditableParent;
+
+ function removeNodeIfNotParent(node) {
+ var parent = container;
+
+ while (parent) {
+ if (parent === node) {
+ return;
+ }
+
+ parent = parent.parentNode;
+ }
+
+ dom.remove(node);
+ moveSelection();
+ }
+
+ function isNextPrevTreeNodeNonEditable() {
+ var node, walker, nonEmptyElements = ed.schema.getNonEmptyElements();
+
+ walker = new tinymce.dom.TreeWalker(container, ed.getBody());
+ while (node = (backspace ? walker.prev() : walker.next())) {
+ // Found IMG/INPUT etc
+ if (nonEmptyElements[node.nodeName.toLowerCase()]) {
+ break;
+ }
+
+ // Found text node with contents
+ if (node.nodeType === 3 && tinymce.trim(node.nodeValue).length > 0) {
+ break;
+ }
+
+ // Found non editable node
+ if (getContentEditable(node) === "false") {
+ removeNodeIfNotParent(node);
+ return true;
+ }
+ }
+
+ // Check if the content node is within a non editable parent
+ if (getNonEditableParent(node)) {
+ return true;
+ }
+
+ return false;
+ }
+
+ if (selection.isCollapsed()) {
+ rng = selection.getRng(true);
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ container = getParentCaretContainer(container) || container;
+
+ // Is in noneditable parent
+ if (nonEditableParent = getNonEditableParent(container)) {
+ removeNodeIfNotParent(nonEditableParent);
+ return false;
+ }
+
+ // Check if the caret is in the middle of a text node
+ if (container.nodeType == 3 && (backspace ? offset > 0 : offset < container.nodeValue.length)) {
+ return true;
+ }
+
+ // Resolve container index
+ if (container.nodeType == 1) {
+ container = container.childNodes[offset] || container;
+ }
+
+ // Check if previous or next tree node is non editable then block the event
+ if (isNextPrevTreeNodeNonEditable()) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ startElement = selection.getStart()
+ endElement = selection.getEnd();
+
+ // Disable all key presses in contentEditable=false except delete or backspace
+ nonEditableParent = getNonEditableParent(startElement) || getNonEditableParent(endElement);
+ if (nonEditableParent && (keyCode < 112 || keyCode > 124) && keyCode != VK.DELETE && keyCode != VK.BACKSPACE) {
+ // Is Ctrl+c, Ctrl+v or Ctrl+x then use default browser behavior
+ if ((tinymce.isMac ? e.metaKey : e.ctrlKey) && (keyCode == 67 || keyCode == 88 || keyCode == 86)) {
+ return;
+ }
+
+ e.preventDefault();
+
+ // Arrow left/right select the element and collapse left/right
+ if (keyCode == VK.LEFT || keyCode == VK.RIGHT) {
+ var left = keyCode == VK.LEFT;
+ // If a block element find previous or next element to position the caret
+ if (ed.dom.isBlock(nonEditableParent)) {
+ var targetElement = left ? nonEditableParent.previousSibling : nonEditableParent.nextSibling;
+ var walker = new TreeWalker(targetElement, targetElement);
+ var caretElement = left ? walker.prev() : walker.next();
+ positionCaretOnElement(caretElement, !left);
+ } else {
+ positionCaretOnElement(nonEditableParent, left);
+ }
+ }
+ } else {
+ // Is arrow left/right, backspace or delete
+ if (keyCode == VK.LEFT || keyCode == VK.RIGHT || keyCode == VK.BACKSPACE || keyCode == VK.DELETE) {
+ caretContainer = getParentCaretContainer(startElement);
+ if (caretContainer) {
+ // Arrow left or backspace
+ if (keyCode == VK.LEFT || keyCode == VK.BACKSPACE) {
+ nonEditableParent = getNonEmptyTextNodeSibling(caretContainer, true);
+
+ if (nonEditableParent && getContentEditable(nonEditableParent) === "false") {
+ e.preventDefault();
+
+ if (keyCode == VK.LEFT) {
+ positionCaretOnElement(nonEditableParent, true);
+ } else {
+ dom.remove(nonEditableParent);
+ return;
+ }
+ } else {
+ removeCaretContainer(caretContainer);
+ }
+ }
+
+ // Arrow right or delete
+ if (keyCode == VK.RIGHT || keyCode == VK.DELETE) {
+ nonEditableParent = getNonEmptyTextNodeSibling(caretContainer);
+
+ if (nonEditableParent && getContentEditable(nonEditableParent) === "false") {
+ e.preventDefault();
+
+ if (keyCode == VK.RIGHT) {
+ positionCaretOnElement(nonEditableParent, false);
+ } else {
+ dom.remove(nonEditableParent);
+ return;
+ }
+ } else {
+ removeCaretContainer(caretContainer);
+ }
+ }
+ }
+
+ if ((keyCode == VK.BACKSPACE || keyCode == VK.DELETE) && !canDelete(keyCode == VK.BACKSPACE)) {
+ e.preventDefault();
+ return false;
+ }
+ }
+ }
+ };
+
+ ed.onMouseDown.addToTop(function(ed, e) {
+ var node = ed.selection.getNode();
+
+ if (getContentEditable(node) === "false" && node == e.target) {
+ // Expand selection on mouse down we can't block the default event since it's used for drag/drop
+ moveSelection();
+ }
+ });
+
+ ed.onMouseUp.addToTop(moveSelection);
+ ed.onKeyDown.addToTop(handleKey);
+ ed.onKeyUp.addToTop(moveSelection);
+ };
+
+ tinymce.create('tinymce.plugins.NonEditablePlugin', {
+ init : function(ed, url) {
+ var editClass, nonEditClass, nonEditableRegExps;
+
+ // Converts configured regexps to noneditable span items
+ function convertRegExpsToNonEditable(ed, args) {
+ var i = nonEditableRegExps.length, content = args.content, cls = tinymce.trim(nonEditClass);
+
+ // Don't replace the variables when raw is used for example on undo/redo
+ if (args.format == "raw") {
+ return;
+ }
+
+ while (i--) {
+ content = content.replace(nonEditableRegExps[i], function(match) {
+ var args = arguments, index = args[args.length - 2];
+
+ // Is value inside an attribute then don't replace
+ if (index > 0 && content.charAt(index - 1) == '"') {
+ return match;
+ }
+
+ return '<span class="' + cls + '" data-mce-content="' + ed.dom.encode(args[0]) + '">' + ed.dom.encode(typeof(args[1]) === "string" ? args[1] : args[0]) + '</span>';
+ });
+ }
+
+ args.content = content;
+ };
+
+ editClass = " " + tinymce.trim(ed.getParam("noneditable_editable_class", "mceEditable")) + " ";
+ nonEditClass = " " + tinymce.trim(ed.getParam("noneditable_noneditable_class", "mceNonEditable")) + " ";
+
+ // Setup noneditable regexps array
+ nonEditableRegExps = ed.getParam("noneditable_regexp");
+ if (nonEditableRegExps && !nonEditableRegExps.length) {
+ nonEditableRegExps = [nonEditableRegExps];
+ }
+
+ ed.onPreInit.add(function() {
+ handleContentEditableSelection(ed);
+
+ if (nonEditableRegExps) {
+ ed.selection.onBeforeSetContent.add(convertRegExpsToNonEditable);
+ ed.onBeforeSetContent.add(convertRegExpsToNonEditable);
+ }
+
+ // Apply contentEditable true/false on elements with the noneditable/editable classes
+ ed.parser.addAttributeFilter('class', function(nodes) {
+ var i = nodes.length, className, node;
+
+ while (i--) {
+ node = nodes[i];
+ className = " " + node.attr("class") + " ";
+
+ if (className.indexOf(editClass) !== -1) {
+ node.attr(internalName, "true");
+ } else if (className.indexOf(nonEditClass) !== -1) {
+ node.attr(internalName, "false");
+ }
+ }
+ });
+
+ // Remove internal name
+ ed.serializer.addAttributeFilter(internalName, function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+
+ if (nonEditableRegExps && node.attr('data-mce-content')) {
+ node.name = "#text";
+ node.type = 3;
+ node.raw = true;
+ node.value = node.attr('data-mce-content');
+ } else {
+ node.attr(externalName, null);
+ node.attr(internalName, null);
+ }
+ }
+ });
+
+ // Convert external name into internal name
+ ed.parser.addAttributeFilter(externalName, function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+ node.attr(internalName, node.attr(externalName));
+ node.attr(externalName, null);
+ }
+ });
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Non editable elements',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('noneditable', tinymce.plugins.NonEditablePlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin.js
new file mode 100644
index 00000000..35085e8a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(b,d){var f='<img src="'+b.theme.url+'/img/trans.gif" class="mcePageBreak mceItemNoResize" />',a="mcePageBreak",c=b.getParam("pagebreak_separator","<!-- pagebreak -->"),e;e=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(g){return"\\"+g}),"g");b.addCommand("mcePageBreak",function(){b.execCommand("mceInsertContent",0,f)});b.addButton("pagebreak",{title:"pagebreak.desc",cmd:a});b.onInit.add(function(){if(b.theme.onResolveName){b.theme.onResolveName.add(function(g,h){if(h.node.nodeName=="IMG"&&b.dom.hasClass(h.node,a)){h.name="pagebreak"}})}});b.onClick.add(function(g,h){h=h.target;if(h.nodeName==="IMG"&&g.dom.hasClass(h,a)){g.selection.select(h)}});b.onNodeChange.add(function(h,g,i){g.setActive("pagebreak",i.nodeName==="IMG"&&h.dom.hasClass(i,a))});b.onBeforeSetContent.add(function(g,h){h.content=h.content.replace(e,f)});b.onPostProcess.add(function(g,h){if(h.get){h.content=h.content.replace(/<img[^>]+>/g,function(i){if(i.indexOf('class="mcePageBreak')!==-1){i=c}return i})}})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin_src.js
new file mode 100644
index 00000000..a094c191
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/pagebreak/editor_plugin_src.js
@@ -0,0 +1,74 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.PageBreakPlugin', {
+ init : function(ed, url) {
+ var pb = '<img src="' + ed.theme.url + '/img/trans.gif" class="mcePageBreak mceItemNoResize" />', cls = 'mcePageBreak', sep = ed.getParam('pagebreak_separator', '<!-- pagebreak -->'), pbRE;
+
+ pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {return '\\' + a;}), 'g');
+
+ // Register commands
+ ed.addCommand('mcePageBreak', function() {
+ ed.execCommand('mceInsertContent', 0, pb);
+ });
+
+ // Register buttons
+ ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls});
+
+ ed.onInit.add(function() {
+ if (ed.theme.onResolveName) {
+ ed.theme.onResolveName.add(function(th, o) {
+ if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls))
+ o.name = 'pagebreak';
+ });
+ }
+ });
+
+ ed.onClick.add(function(ed, e) {
+ e = e.target;
+
+ if (e.nodeName === 'IMG' && ed.dom.hasClass(e, cls))
+ ed.selection.select(e);
+ });
+
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setActive('pagebreak', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls));
+ });
+
+ ed.onBeforeSetContent.add(function(ed, o) {
+ o.content = o.content.replace(pbRE, pb);
+ });
+
+ ed.onPostProcess.add(function(ed, o) {
+ if (o.get)
+ o.content = o.content.replace(/<img[^>]+>/g, function(im) {
+ if (im.indexOf('class="mcePageBreak') !== -1)
+ im = sep;
+
+ return im;
+ });
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'PageBreak',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('pagebreak', tinymce.plugins.PageBreakPlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin.js
new file mode 100755
index 00000000..0ab05ebb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var c=tinymce.each,a={paste_auto_cleanup_on_paste:true,paste_enable_default_filters:true,paste_block_drop:false,paste_retain_style_properties:"none",paste_strip_class_attributes:"mso",paste_remove_spans:false,paste_remove_styles:false,paste_remove_styles_if_webkit:true,paste_convert_middot_lists:true,paste_convert_headers_to_strong:false,paste_dialog_width:"450",paste_dialog_height:"400",paste_max_consecutive_linebreaks:2,paste_text_use_dialog:false,paste_text_sticky:false,paste_text_sticky_default:false,paste_text_notifyalways:false,paste_text_linebreaktype:"combined",paste_text_replacements:[[/\u2026/g,"..."],[/[\x93\x94\u201c\u201d]/g,'"'],[/[\x60\x91\x92\u2018\u2019]/g,"'"]]};function b(d,e){return d.getParam(e,a[e])}tinymce.create("tinymce.plugins.PastePlugin",{init:function(d,e){var f=this;f.editor=d;f.url=e;f.onPreProcess=new tinymce.util.Dispatcher(f);f.onPostProcess=new tinymce.util.Dispatcher(f);f.onPreProcess.add(f._preProcess);f.onPostProcess.add(f._postProcess);f.onPreProcess.add(function(i,j){d.execCallback("paste_preprocess",i,j)});f.onPostProcess.add(function(i,j){d.execCallback("paste_postprocess",i,j)});d.onKeyDown.addToTop(function(i,j){if(((tinymce.isMac?j.metaKey:j.ctrlKey)&&j.keyCode==86)||(j.shiftKey&&j.keyCode==45)){return false}});d.pasteAsPlainText=b(d,"paste_text_sticky_default");function h(l,j){var k=d.dom,i;f.onPreProcess.dispatch(f,l);l.node=k.create("div",0,l.content);if(tinymce.isGecko){i=d.selection.getRng(true);if(i.startContainer==i.endContainer&&i.startContainer.nodeType==3){if(l.node.childNodes.length===1&&/^(p|h[1-6]|pre)$/i.test(l.node.firstChild.nodeName)&&l.content.indexOf("__MCE_ITEM__")===-1){k.remove(l.node.firstChild,true)}}}f.onPostProcess.dispatch(f,l);l.content=d.serializer.serialize(l.node,{getInner:1,forced_root_block:""});if((!j)&&(d.pasteAsPlainText)){f._insertPlainText(l.content);if(!b(d,"paste_text_sticky")){d.pasteAsPlainText=false;d.controlManager.setActive("pastetext",false)}}else{f._insert(l.content)}}d.addCommand("mceInsertClipboardContent",function(i,j){h(j,true)});if(!b(d,"paste_text_use_dialog")){d.addCommand("mcePasteText",function(j,i){var k=tinymce.util.Cookie;d.pasteAsPlainText=!d.pasteAsPlainText;d.controlManager.setActive("pastetext",d.pasteAsPlainText);if((d.pasteAsPlainText)&&(!k.get("tinymcePasteText"))){if(b(d,"paste_text_sticky")){d.windowManager.alert(d.translate("paste.plaintext_mode_sticky"))}else{d.windowManager.alert(d.translate("paste.plaintext_mode"))}if(!b(d,"paste_text_notifyalways")){k.set("tinymcePasteText","1",new Date(new Date().getFullYear()+1,12,31))}}})}d.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});d.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"});function g(s){var l,p,j,t,k=d.selection,o=d.dom,q=d.getBody(),i,r;if(s.clipboardData||o.doc.dataTransfer){r=(s.clipboardData||o.doc.dataTransfer).getData("Text");if(d.pasteAsPlainText){s.preventDefault();h({content:o.encode(r).replace(/\r?\n/g,"<br />")});return}}if(o.get("_mcePaste")){return}l=o.add(q,"div",{id:"_mcePaste","class":"mcePaste","data-mce-bogus":"1"},"\uFEFF\uFEFF");if(q!=d.getDoc().body){i=o.getPos(d.selection.getStart(),q).y}else{i=q.scrollTop+o.getViewPort(d.getWin()).y}o.setStyles(l,{position:"absolute",left:tinymce.isGecko?-40:0,top:i-25,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){t=k.getRng();j=o.doc.body.createTextRange();j.moveToElementText(l);j.execCommand("Paste");o.remove(l);if(l.innerHTML==="\uFEFF\uFEFF"){d.execCommand("mcePasteWord");s.preventDefault();return}k.setRng(t);k.setContent("");setTimeout(function(){h({content:l.innerHTML})},0);return tinymce.dom.Event.cancel(s)}else{function m(n){n.preventDefault()}o.bind(d.getDoc(),"mousedown",m);o.bind(d.getDoc(),"keydown",m);p=d.selection.getRng();l=l.firstChild;j=d.getDoc().createRange();j.setStart(l,0);j.setEnd(l,2);k.setRng(j);window.setTimeout(function(){var u="",n;if(!o.select("div.mcePaste > div.mcePaste").length){n=o.select("div.mcePaste");c(n,function(w){var v=w.firstChild;if(v&&v.nodeName=="DIV"&&v.style.marginTop&&v.style.backgroundColor){o.remove(v,1)}c(o.select("span.Apple-style-span",w),function(x){o.remove(x,1)});c(o.select("br[data-mce-bogus]",w),function(x){o.remove(x)});if(w.parentNode.className!="mcePaste"){u+=w.innerHTML}})}else{u="<p>"+o.encode(r).replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br />")+"</p>"}c(o.select("div.mcePaste"),function(v){o.remove(v)});if(p){k.setRng(p)}h({content:u});o.unbind(d.getDoc(),"mousedown",m);o.unbind(d.getDoc(),"keydown",m)},0)}}if(b(d,"paste_auto_cleanup_on_paste")){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){d.onKeyDown.addToTop(function(i,j){if(((tinymce.isMac?j.metaKey:j.ctrlKey)&&j.keyCode==86)||(j.shiftKey&&j.keyCode==45)){g(j)}})}else{d.onPaste.addToTop(function(i,j){return g(j)})}}d.onInit.add(function(){d.controlManager.setActive("pastetext",d.pasteAsPlainText);if(b(d,"paste_block_drop")){d.dom.bind(d.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(i){i.preventDefault();i.stopPropagation();return false})}});f._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(g,e){var k=this.editor,j=e.content,p=tinymce.grep,n=tinymce.explode,f=tinymce.trim,l,i;function d(h){c(h,function(o){if(o.constructor==RegExp){j=j.replace(o,"")}else{j=j.replace(o[0],o[1])}})}if(k.settings.paste_enable_default_filters==false){return}if(tinymce.isIE&&document.documentMode>=9&&/<(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)/.test(e.content)){d([[/(?:<br>&nbsp;[\s\r\n]+|<br>)*(<\/?(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br>&nbsp;[\s\r\n]+|<br>)*/g,"$1"]]);d([[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])}if(/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(j)||e.wordContent){e.wordContent=true;d([/^\s*(&nbsp;)+/gi,/(&nbsp;|<br[^>]*>)+\s*$/gi]);if(b(k,"paste_convert_headers_to_strong")){j=j.replace(/<p [^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"<p><strong>$1</strong></p>")}if(b(k,"paste_convert_middot_lists")){d([[/<!--\[if !supportLists\]-->/gi,"$&__MCE_ITEM__"],[/(<span[^>]+(?:mso-list:|:\s*symbol)[^>]+>)/gi,"$1__MCE_ITEM__"],[/(<p[^>]+(?:MsoListParagraph)[^>]+>)/gi,"$1__MCE_ITEM__"]])}d([/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/&nbsp;/gi,"\u00a0"]]);do{l=j.length;j=j.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi,"$1")}while(l!=j.length);if(b(k,"paste_retain_style_properties").replace(/^none$/i,"").length==0){j=j.replace(/<\/?span[^>]*>/gi,"")}else{d([[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(o,h){return(h.length>0)?h.replace(/./," ").slice(Math.floor(h.length/2)).split("").join("\u00a0"):""}],[/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,function(t,h,r){var u=[],o=0,q=n(f(r).replace(/&quot;/gi,"'"),";");c(q,function(s){var w,y,z=n(s,":");function x(A){return A+((A!=="0")&&(/\d$/.test(A)))?"px":""}if(z.length==2){w=z[0].toLowerCase();y=z[1].toLowerCase();switch(w){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-table-layout-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":u[o++]=w.replace(/^mso-|-alt$/g,"")+":"+x(y);return;case"horiz-align":u[o++]="text-align:"+y;return;case"vert-align":u[o++]="vertical-align:"+y;return;case"font-color":case"mso-foreground":u[o++]="color:"+y;return;case"mso-background":case"mso-highlight":u[o++]="background:"+y;return;case"mso-default-height":u[o++]="min-height:"+x(y);return;case"mso-default-width":u[o++]="min-width:"+x(y);return;case"mso-padding-between-alt":u[o++]="border-collapse:separate;border-spacing:"+x(y);return;case"text-line-through":if((y=="single")||(y=="double")){u[o++]="text-decoration:line-through"}return;case"mso-zero-height":if(y=="yes"){u[o++]="display:none"}return}if(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(w)){return}u[o++]=w+":"+z[1]}});if(o>0){return h+' style="'+u.join(";")+'"'}else{return h}}]])}}if(b(k,"paste_convert_headers_to_strong")){d([[/<h[1-6][^>]*>/gi,"<p><strong>"],[/<\/h[1-6][^>]*>/gi,"</strong></p>"]])}d([[/Version:[\d.]+\nStartHTML:\d+\nEndHTML:\d+\nStartFragment:\d+\nEndFragment:\d+/gi,""]]);i=b(k,"paste_strip_class_attributes");if(i!=="none"){function m(q,o){if(i==="all"){return""}var h=p(n(o.replace(/^(["'])(.*)\1$/,"$2")," "),function(r){return(/^(?!mso)/i.test(r))});return h.length?' class="'+h.join(" ")+'"':""}j=j.replace(/ class="([^"]+)"/gi,m);j=j.replace(/ class=([\-\w]+)/gi,m)}if(b(k,"paste_remove_spans")){j=j.replace(/<\/?span[^>]*>/gi,"")}e.content=j},_postProcess:function(g,i){var f=this,e=f.editor,h=e.dom,d;if(e.settings.paste_enable_default_filters==false){return}if(i.wordContent){c(h.select("a",i.node),function(j){if(!j.href||j.href.indexOf("#_Toc")!=-1){h.remove(j,1)}});if(b(e,"paste_convert_middot_lists")){f._convertLists(g,i)}d=b(e,"paste_retain_style_properties");if((tinymce.is(d,"string"))&&(d!=="all")&&(d!=="*")){d=tinymce.explode(d.replace(/^none$/i,""));c(h.select("*",i.node),function(m){var n={},k=0,l,o,j;if(d){for(l=0;l<d.length;l++){o=d[l];j=h.getStyle(m,o);if(j){n[o]=j;k++}}}h.setAttrib(m,"style","");if(d&&k>0){h.setStyles(m,n)}else{if(m.nodeName=="SPAN"&&!m.className){h.remove(m,true)}}})}}if(b(e,"paste_remove_styles")||(b(e,"paste_remove_styles_if_webkit")&&tinymce.isWebKit)){c(h.select("*[style]",i.node),function(j){j.removeAttribute("style");j.removeAttribute("data-mce-style")})}else{if(tinymce.isWebKit){c(h.select("*",i.node),function(j){j.removeAttribute("data-mce-style")})}}},_convertLists:function(g,e){var i=g.editor.dom,h,l,d=-1,f,m=[],k,j;c(i.select("p",e.node),function(t){var q,u="",s,r,n,o;for(q=t.firstChild;q&&q.nodeType==3;q=q.nextSibling){u+=q.nodeValue}u=t.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/&nbsp;/g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*\u00a0*/.test(u)){s="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0+/.test(u)){s="ol"}if(s){f=parseFloat(t.style.marginLeft||0);if(f>d){m.push(f)}if(!h||s!=k){h=i.create(s);i.insertAfter(h,t)}else{if(f>d){h=l.appendChild(i.create(s))}else{if(f<d){n=tinymce.inArray(m,f);o=i.getParents(h.parentNode,s);h=o[o.length-1-n]||h}}}c(i.select("span",t),function(v){var p=v.innerHTML.replace(/<\/?\w+[^>]*>/gi,"");if(s=="ul"&&/^__MCE_ITEM__[\u2022\u00b7\u00a7\u00d8o\u25CF]/.test(p)){i.remove(v)}else{if(/^__MCE_ITEM__[\s\S]*\w+\.(&nbsp;|\u00a0)*\s*/.test(p)){i.remove(v)}}});r=t.innerHTML;if(s=="ul"){r=t.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*(&nbsp;|\u00a0)+\s*/,"")}else{r=t.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.(&nbsp;|\u00a0)+\s*/,"")}l=h.appendChild(i.create("li",0,r));i.remove(t);d=f;k=s}else{h=d=0}});j=e.node.innerHTML;if(j.indexOf("__MCE_ITEM__")!=-1){e.node.innerHTML=j.replace(/__MCE_ITEM__/g,"")}},_insert:function(f,d){var e=this.editor,g=e.selection.getRng();if(!e.selection.isCollapsed()&&g.startContainer!=g.endContainer){e.getDoc().execCommand("Delete",false,null)}e.execCommand("mceInsertContent",false,f,{skip_undo:d})},_insertPlainText:function(j){var h=this.editor,f=b(h,"paste_text_linebreaktype"),k=b(h,"paste_text_replacements"),g=tinymce.is;function e(m){c(m,function(n){if(n.constructor==RegExp){j=j.replace(n,"")}else{j=j.replace(n[0],n[1])}})}if((typeof(j)==="string")&&(j.length>0)){if(/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(j)){e([/[\n\r]+/g])}else{e([/\r+/g])}e([[/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi,"\n\n"],[/<br[^>]*>|<\/tr>/gi,"\n"],[/<\/t[dh]>\s*<t[dh][^>]*>/gi,"\t"],/<[a-z!\/?][^>]*>/gi,[/&nbsp;/gi," "],[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi,"$1"]]);var d=Number(b(h,"paste_max_consecutive_linebreaks"));if(d>-1){var l=new RegExp("\n{"+(d+1)+",}","g");var i="";while(i.length<d){i+="\n"}e([[l,i]])}j=h.dom.decode(tinymce.html.Entities.encodeRaw(j));if(g(k,"array")){e(k)}else{if(g(k,"string")){e(new RegExp(k,"gi"))}}if(f=="none"){e([[/\n+/g," "]])}else{if(f=="br"){e([[/\n/g,"<br />"]])}else{if(f=="p"){e([[/\n+/g,"</p><p>"],[/^(.*<\/p>)(<p>)$/,"<p>$1"]])}else{e([[/\n\n/g,"</p><p>"],[/^(.*<\/p>)(<p>)$/,"<p>$1"],[/\n/g,"<br />"]])}}}h.execCommand("mceInsertContent",false,j)}},_legacySupport:function(){var e=this,d=e.editor;d.addCommand("mcePasteWord",function(){d.windowManager.open({file:e.url+"/pasteword.htm",width:parseInt(b(d,"paste_dialog_width")),height:parseInt(b(d,"paste_dialog_height")),inline:1})});if(b(d,"paste_text_use_dialog")){d.addCommand("mcePasteText",function(){d.windowManager.open({file:e.url+"/pastetext.htm",width:parseInt(b(d,"paste_dialog_width")),height:parseInt(b(d,"paste_dialog_height")),inline:1})})}d.addButton("pasteword",{title:"paste.paste_word_desc",cmd:"mcePasteWord"})}});tinymce.PluginManager.add("paste",tinymce.plugins.PastePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin_src.js
new file mode 100755
index 00000000..0154eceb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/editor_plugin_src.js
@@ -0,0 +1,885 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var each = tinymce.each,
+ defs = {
+ paste_auto_cleanup_on_paste : true,
+ paste_enable_default_filters : true,
+ paste_block_drop : false,
+ paste_retain_style_properties : "none",
+ paste_strip_class_attributes : "mso",
+ paste_remove_spans : false,
+ paste_remove_styles : false,
+ paste_remove_styles_if_webkit : true,
+ paste_convert_middot_lists : true,
+ paste_convert_headers_to_strong : false,
+ paste_dialog_width : "450",
+ paste_dialog_height : "400",
+ paste_max_consecutive_linebreaks: 2,
+ paste_text_use_dialog : false,
+ paste_text_sticky : false,
+ paste_text_sticky_default : false,
+ paste_text_notifyalways : false,
+ paste_text_linebreaktype : "combined",
+ paste_text_replacements : [
+ [/\u2026/g, "..."],
+ [/[\x93\x94\u201c\u201d]/g, '"'],
+ [/[\x60\x91\x92\u2018\u2019]/g, "'"]
+ ]
+ };
+
+ function getParam(ed, name) {
+ return ed.getParam(name, defs[name]);
+ }
+
+ tinymce.create('tinymce.plugins.PastePlugin', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+ t.url = url;
+
+ // Setup plugin events
+ t.onPreProcess = new tinymce.util.Dispatcher(t);
+ t.onPostProcess = new tinymce.util.Dispatcher(t);
+
+ // Register default handlers
+ t.onPreProcess.add(t._preProcess);
+ t.onPostProcess.add(t._postProcess);
+
+ // Register optional preprocess handler
+ t.onPreProcess.add(function(pl, o) {
+ ed.execCallback('paste_preprocess', pl, o);
+ });
+
+ // Register optional postprocess
+ t.onPostProcess.add(function(pl, o) {
+ ed.execCallback('paste_postprocess', pl, o);
+ });
+
+ ed.onKeyDown.addToTop(function(ed, e) {
+ // Block ctrl+v from adding an undo level since the default logic in tinymce.Editor will add that
+ if (((tinymce.isMac ? e.metaKey : e.ctrlKey) && e.keyCode == 86) || (e.shiftKey && e.keyCode == 45))
+ return false; // Stop other listeners
+ });
+
+ // Initialize plain text flag
+ ed.pasteAsPlainText = getParam(ed, 'paste_text_sticky_default');
+
+ // This function executes the process handlers and inserts the contents
+ // force_rich overrides plain text mode set by user, important for pasting with execCommand
+ function process(o, force_rich) {
+ var dom = ed.dom, rng;
+
+ // Execute pre process handlers
+ t.onPreProcess.dispatch(t, o);
+
+ // Create DOM structure
+ o.node = dom.create('div', 0, o.content);
+
+ // If pasting inside the same element and the contents is only one block
+ // remove the block and keep the text since Firefox will copy parts of pre and h1-h6 as a pre element
+ if (tinymce.isGecko) {
+ rng = ed.selection.getRng(true);
+ if (rng.startContainer == rng.endContainer && rng.startContainer.nodeType == 3) {
+ // Is only one block node and it doesn't contain word stuff
+ if (o.node.childNodes.length === 1 && /^(p|h[1-6]|pre)$/i.test(o.node.firstChild.nodeName) && o.content.indexOf('__MCE_ITEM__') === -1)
+ dom.remove(o.node.firstChild, true);
+ }
+ }
+
+ // Execute post process handlers
+ t.onPostProcess.dispatch(t, o);
+
+ // Serialize content
+ o.content = ed.serializer.serialize(o.node, {getInner : 1, forced_root_block : ''});
+
+ // Plain text option active?
+ if ((!force_rich) && (ed.pasteAsPlainText)) {
+ t._insertPlainText(o.content);
+
+ if (!getParam(ed, "paste_text_sticky")) {
+ ed.pasteAsPlainText = false;
+ ed.controlManager.setActive("pastetext", false);
+ }
+ } else {
+ t._insert(o.content);
+ }
+ }
+
+ // Add command for external usage
+ ed.addCommand('mceInsertClipboardContent', function(u, o) {
+ process(o, true);
+ });
+
+ if (!getParam(ed, "paste_text_use_dialog")) {
+ ed.addCommand('mcePasteText', function(u, v) {
+ var cookie = tinymce.util.Cookie;
+
+ ed.pasteAsPlainText = !ed.pasteAsPlainText;
+ ed.controlManager.setActive('pastetext', ed.pasteAsPlainText);
+
+ if ((ed.pasteAsPlainText) && (!cookie.get("tinymcePasteText"))) {
+ if (getParam(ed, "paste_text_sticky")) {
+ ed.windowManager.alert(ed.translate('paste.plaintext_mode_sticky'));
+ } else {
+ ed.windowManager.alert(ed.translate('paste.plaintext_mode'));
+ }
+
+ if (!getParam(ed, "paste_text_notifyalways")) {
+ cookie.set("tinymcePasteText", "1", new Date(new Date().getFullYear() + 1, 12, 31))
+ }
+ }
+ });
+ }
+
+ ed.addButton('pastetext', {title: 'paste.paste_text_desc', cmd: 'mcePasteText'});
+ ed.addButton('selectall', {title: 'paste.selectall_desc', cmd: 'selectall'});
+
+ // This function grabs the contents from the clipboard by adding a
+ // hidden div and placing the caret inside it and after the browser paste
+ // is done it grabs that contents and processes that
+ function grabContent(e) {
+ var n, or, rng, oldRng, sel = ed.selection, dom = ed.dom, body = ed.getBody(), posY, textContent;
+
+ // Check if browser supports direct plaintext access
+ if (e.clipboardData || dom.doc.dataTransfer) {
+ textContent = (e.clipboardData || dom.doc.dataTransfer).getData('Text');
+
+ if (ed.pasteAsPlainText) {
+ e.preventDefault();
+ process({content : dom.encode(textContent).replace(/\r?\n/g, '<br />')});
+ return;
+ }
+ }
+
+ if (dom.get('_mcePaste'))
+ return;
+
+ // Create container to paste into
+ n = dom.add(body, 'div', {id : '_mcePaste', 'class' : 'mcePaste', 'data-mce-bogus' : '1'}, '\uFEFF\uFEFF');
+
+ // If contentEditable mode we need to find out the position of the closest element
+ if (body != ed.getDoc().body)
+ posY = dom.getPos(ed.selection.getStart(), body).y;
+ else
+ posY = body.scrollTop + dom.getViewPort(ed.getWin()).y;
+
+ // Styles needs to be applied after the element is added to the document since WebKit will otherwise remove all styles
+ // If also needs to be in view on IE or the paste would fail
+ dom.setStyles(n, {
+ position : 'absolute',
+ left : tinymce.isGecko ? -40 : 0, // Need to move it out of site on Gecko since it will othewise display a ghost resize rect for the div
+ top : posY - 25,
+ width : 1,
+ height : 1,
+ overflow : 'hidden'
+ });
+
+ if (tinymce.isIE) {
+ // Store away the old range
+ oldRng = sel.getRng();
+
+ // Select the container
+ rng = dom.doc.body.createTextRange();
+ rng.moveToElementText(n);
+ rng.execCommand('Paste');
+
+ // Remove container
+ dom.remove(n);
+
+ // Check if the contents was changed, if it wasn't then clipboard extraction failed probably due
+ // to IE security settings so we pass the junk though better than nothing right
+ if (n.innerHTML === '\uFEFF\uFEFF') {
+ ed.execCommand('mcePasteWord');
+ e.preventDefault();
+ return;
+ }
+
+ // Restore the old range and clear the contents before pasting
+ sel.setRng(oldRng);
+ sel.setContent('');
+
+ // For some odd reason we need to detach the the mceInsertContent call from the paste event
+ // It's like IE has a reference to the parent element that you paste in and the selection gets messed up
+ // when it tries to restore the selection
+ setTimeout(function() {
+ // Process contents
+ process({content : n.innerHTML});
+ }, 0);
+
+ // Block the real paste event
+ return tinymce.dom.Event.cancel(e);
+ } else {
+ function block(e) {
+ e.preventDefault();
+ };
+
+ // Block mousedown and click to prevent selection change
+ dom.bind(ed.getDoc(), 'mousedown', block);
+ dom.bind(ed.getDoc(), 'keydown', block);
+
+ or = ed.selection.getRng();
+
+ // Move select contents inside DIV
+ n = n.firstChild;
+ rng = ed.getDoc().createRange();
+ rng.setStart(n, 0);
+ rng.setEnd(n, 2);
+ sel.setRng(rng);
+
+ // Wait a while and grab the pasted contents
+ window.setTimeout(function() {
+ var h = '', nl;
+
+ // Paste divs duplicated in paste divs seems to happen when you paste plain text so lets first look for that broken behavior in WebKit
+ if (!dom.select('div.mcePaste > div.mcePaste').length) {
+ nl = dom.select('div.mcePaste');
+
+ // WebKit will split the div into multiple ones so this will loop through then all and join them to get the whole HTML string
+ each(nl, function(n) {
+ var child = n.firstChild;
+
+ // WebKit inserts a DIV container with lots of odd styles
+ if (child && child.nodeName == 'DIV' && child.style.marginTop && child.style.backgroundColor) {
+ dom.remove(child, 1);
+ }
+
+ // Remove apply style spans
+ each(dom.select('span.Apple-style-span', n), function(n) {
+ dom.remove(n, 1);
+ });
+
+ // Remove bogus br elements
+ each(dom.select('br[data-mce-bogus]', n), function(n) {
+ dom.remove(n);
+ });
+
+ // WebKit will make a copy of the DIV for each line of plain text pasted and insert them into the DIV
+ if (n.parentNode.className != 'mcePaste')
+ h += n.innerHTML;
+ });
+ } else {
+ // Found WebKit weirdness so force the content into paragraphs this seems to happen when you paste plain text from Nodepad etc
+ // So this logic will replace double enter with paragraphs and single enter with br so it kind of looks the same
+ h = '<p>' + dom.encode(textContent).replace(/\r?\n\r?\n/g, '</p><p>').replace(/\r?\n/g, '<br />') + '</p>';
+ }
+
+ // Remove the nodes
+ each(dom.select('div.mcePaste'), function(n) {
+ dom.remove(n);
+ });
+
+ // Restore the old selection
+ if (or)
+ sel.setRng(or);
+
+ process({content : h});
+
+ // Unblock events ones we got the contents
+ dom.unbind(ed.getDoc(), 'mousedown', block);
+ dom.unbind(ed.getDoc(), 'keydown', block);
+ }, 0);
+ }
+ }
+
+ // Check if we should use the new auto process method
+ if (getParam(ed, "paste_auto_cleanup_on_paste")) {
+ // Is it's Opera or older FF use key handler
+ if (tinymce.isOpera || /Firefox\/2/.test(navigator.userAgent)) {
+ ed.onKeyDown.addToTop(function(ed, e) {
+ if (((tinymce.isMac ? e.metaKey : e.ctrlKey) && e.keyCode == 86) || (e.shiftKey && e.keyCode == 45))
+ grabContent(e);
+ });
+ } else {
+ // Grab contents on paste event on Gecko and WebKit
+ ed.onPaste.addToTop(function(ed, e) {
+ return grabContent(e);
+ });
+ }
+ }
+
+ ed.onInit.add(function() {
+ ed.controlManager.setActive("pastetext", ed.pasteAsPlainText);
+
+ // Block all drag/drop events
+ if (getParam(ed, "paste_block_drop")) {
+ ed.dom.bind(ed.getBody(), ['dragend', 'dragover', 'draggesture', 'dragdrop', 'drop', 'drag'], function(e) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ return false;
+ });
+ }
+ });
+
+ // Add legacy support
+ t._legacySupport();
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Paste text/word',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ _preProcess : function(pl, o) {
+ var ed = this.editor,
+ h = o.content,
+ grep = tinymce.grep,
+ explode = tinymce.explode,
+ trim = tinymce.trim,
+ len, stripClass;
+
+ //console.log('Before preprocess:' + o.content);
+
+ function process(items) {
+ each(items, function(v) {
+ // Remove or replace
+ if (v.constructor == RegExp)
+ h = h.replace(v, '');
+ else
+ h = h.replace(v[0], v[1]);
+ });
+ }
+
+ if (ed.settings.paste_enable_default_filters == false) {
+ return;
+ }
+
+ // IE9 adds BRs before/after block elements when contents is pasted from word or for example another browser
+ if (tinymce.isIE && document.documentMode >= 9 && /<(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)/.test(o.content)) {
+ // IE9 adds BRs before/after block elements when contents is pasted from word or for example another browser
+ process([[/(?:<br>&nbsp;[\s\r\n]+|<br>)*(<\/?(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br>&nbsp;[\s\r\n]+|<br>)*/g, '$1']]);
+
+ // IE9 also adds an extra BR element for each soft-linefeed and it also adds a BR for each word wrap break
+ process([
+ [/<br><br>/g, '<BR><BR>'], // Replace multiple BR elements with uppercase BR to keep them intact
+ [/<br>/g, ' '], // Replace single br elements with space since they are word wrap BR:s
+ [/<BR><BR>/g, '<br>'] // Replace back the double brs but into a single BR
+ ]);
+ }
+
+ // Detect Word content and process it more aggressive
+ if (/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(h) || o.wordContent) {
+ o.wordContent = true; // Mark the pasted contents as word specific content
+ //console.log('Word contents detected.');
+
+ // Process away some basic content
+ process([
+ /^\s*(&nbsp;)+/gi, // &nbsp; entities at the start of contents
+ /(&nbsp;|<br[^>]*>)+\s*$/gi // &nbsp; entities at the end of contents
+ ]);
+
+ if (getParam(ed, "paste_convert_headers_to_strong")) {
+ h = h.replace(/<p [^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi, "<p><strong>$1</strong></p>");
+ }
+
+ if (getParam(ed, "paste_convert_middot_lists")) {
+ process([
+ [/<!--\[if !supportLists\]-->/gi, '$&__MCE_ITEM__'], // Convert supportLists to a list item marker
+ [/(<span[^>]+(?:mso-list:|:\s*symbol)[^>]+>)/gi, '$1__MCE_ITEM__'], // Convert mso-list and symbol spans to item markers
+ [/(<p[^>]+(?:MsoListParagraph)[^>]+>)/gi, '$1__MCE_ITEM__'] // Convert mso-list and symbol paragraphs to item markers (FF)
+ ]);
+ }
+
+ process([
+ // Word comments like conditional comments etc
+ /<!--[\s\S]+?-->/gi,
+
+ // Remove comments, scripts (e.g., msoShowComment), XML tag, VML content, MS Office namespaced tags, and a few other tags
+ /<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,
+
+ // Convert <s> into <strike> for line-though
+ [/<(\/?)s>/gi, "<$1strike>"],
+
+ // Replace nsbp entites to char since it's easier to handle
+ [/&nbsp;/gi, "\u00a0"]
+ ]);
+
+ // Remove bad attributes, with or without quotes, ensuring that attribute text is really inside a tag.
+ // If JavaScript had a RegExp look-behind, we could have integrated this with the last process() array and got rid of the loop. But alas, it does not, so we cannot.
+ do {
+ len = h.length;
+ h = h.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi, "$1");
+ } while (len != h.length);
+
+ // Remove all spans if no styles is to be retained
+ if (getParam(ed, "paste_retain_style_properties").replace(/^none$/i, "").length == 0) {
+ h = h.replace(/<\/?span[^>]*>/gi, "");
+ } else {
+ // We're keeping styles, so at least clean them up.
+ // CSS Reference: http://msdn.microsoft.com/en-us/library/aa155477.aspx
+
+ process([
+ // Convert <span style="mso-spacerun:yes">___</span> to string of alternating breaking/non-breaking spaces of same length
+ [/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,
+ function(str, spaces) {
+ return (spaces.length > 0)? spaces.replace(/./, " ").slice(Math.floor(spaces.length/2)).split("").join("\u00a0") : "";
+ }
+ ],
+
+ // Examine all styles: delete junk, transform some, and keep the rest
+ [/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,
+ function(str, tag, style) {
+ var n = [],
+ i = 0,
+ s = explode(trim(style).replace(/&quot;/gi, "'"), ";");
+
+ // Examine each style definition within the tag's style attribute
+ each(s, function(v) {
+ var name, value,
+ parts = explode(v, ":");
+
+ function ensureUnits(v) {
+ return v + ((v !== "0") && (/\d$/.test(v)))? "px" : "";
+ }
+
+ if (parts.length == 2) {
+ name = parts[0].toLowerCase();
+ value = parts[1].toLowerCase();
+
+ // Translate certain MS Office styles into their CSS equivalents
+ switch (name) {
+ case "mso-padding-alt":
+ case "mso-padding-top-alt":
+ case "mso-padding-right-alt":
+ case "mso-padding-bottom-alt":
+ case "mso-padding-left-alt":
+ case "mso-margin-alt":
+ case "mso-margin-top-alt":
+ case "mso-margin-right-alt":
+ case "mso-margin-bottom-alt":
+ case "mso-margin-left-alt":
+ case "mso-table-layout-alt":
+ case "mso-height":
+ case "mso-width":
+ case "mso-vertical-align-alt":
+ n[i++] = name.replace(/^mso-|-alt$/g, "") + ":" + ensureUnits(value);
+ return;
+
+ case "horiz-align":
+ n[i++] = "text-align:" + value;
+ return;
+
+ case "vert-align":
+ n[i++] = "vertical-align:" + value;
+ return;
+
+ case "font-color":
+ case "mso-foreground":
+ n[i++] = "color:" + value;
+ return;
+
+ case "mso-background":
+ case "mso-highlight":
+ n[i++] = "background:" + value;
+ return;
+
+ case "mso-default-height":
+ n[i++] = "min-height:" + ensureUnits(value);
+ return;
+
+ case "mso-default-width":
+ n[i++] = "min-width:" + ensureUnits(value);
+ return;
+
+ case "mso-padding-between-alt":
+ n[i++] = "border-collapse:separate;border-spacing:" + ensureUnits(value);
+ return;
+
+ case "text-line-through":
+ if ((value == "single") || (value == "double")) {
+ n[i++] = "text-decoration:line-through";
+ }
+ return;
+
+ case "mso-zero-height":
+ if (value == "yes") {
+ n[i++] = "display:none";
+ }
+ return;
+ }
+
+ // Eliminate all MS Office style definitions that have no CSS equivalent by examining the first characters in the name
+ if (/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(name)) {
+ return;
+ }
+
+ // If it reached this point, it must be a valid CSS style
+ n[i++] = name + ":" + parts[1]; // Lower-case name, but keep value case
+ }
+ });
+
+ // If style attribute contained any valid styles the re-write it; otherwise delete style attribute.
+ if (i > 0) {
+ return tag + ' style="' + n.join(';') + '"';
+ } else {
+ return tag;
+ }
+ }
+ ]
+ ]);
+ }
+ }
+
+ // Replace headers with <strong>
+ if (getParam(ed, "paste_convert_headers_to_strong")) {
+ process([
+ [/<h[1-6][^>]*>/gi, "<p><strong>"],
+ [/<\/h[1-6][^>]*>/gi, "</strong></p>"]
+ ]);
+ }
+
+ process([
+ // Copy paste from Java like Open Office will produce this junk on FF
+ [/Version:[\d.]+\nStartHTML:\d+\nEndHTML:\d+\nStartFragment:\d+\nEndFragment:\d+/gi, '']
+ ]);
+
+ // Class attribute options are: leave all as-is ("none"), remove all ("all"), or remove only those starting with mso ("mso").
+ // Note:- paste_strip_class_attributes: "none", verify_css_classes: true is also a good variation.
+ stripClass = getParam(ed, "paste_strip_class_attributes");
+
+ if (stripClass !== "none") {
+ function removeClasses(match, g1) {
+ if (stripClass === "all")
+ return '';
+
+ var cls = grep(explode(g1.replace(/^(["'])(.*)\1$/, "$2"), " "),
+ function(v) {
+ return (/^(?!mso)/i.test(v));
+ }
+ );
+
+ return cls.length ? ' class="' + cls.join(" ") + '"' : '';
+ };
+
+ h = h.replace(/ class="([^"]+)"/gi, removeClasses);
+ h = h.replace(/ class=([\-\w]+)/gi, removeClasses);
+ }
+
+ // Remove spans option
+ if (getParam(ed, "paste_remove_spans")) {
+ h = h.replace(/<\/?span[^>]*>/gi, "");
+ }
+
+ //console.log('After preprocess:' + h);
+
+ o.content = h;
+ },
+
+ /**
+ * Various post process items.
+ */
+ _postProcess : function(pl, o) {
+ var t = this, ed = t.editor, dom = ed.dom, styleProps;
+
+ if (ed.settings.paste_enable_default_filters == false) {
+ return;
+ }
+
+ if (o.wordContent) {
+ // Remove named anchors or TOC links
+ each(dom.select('a', o.node), function(a) {
+ if (!a.href || a.href.indexOf('#_Toc') != -1)
+ dom.remove(a, 1);
+ });
+
+ if (getParam(ed, "paste_convert_middot_lists")) {
+ t._convertLists(pl, o);
+ }
+
+ // Process styles
+ styleProps = getParam(ed, "paste_retain_style_properties"); // retained properties
+
+ // Process only if a string was specified and not equal to "all" or "*"
+ if ((tinymce.is(styleProps, "string")) && (styleProps !== "all") && (styleProps !== "*")) {
+ styleProps = tinymce.explode(styleProps.replace(/^none$/i, ""));
+
+ // Retains some style properties
+ each(dom.select('*', o.node), function(el) {
+ var newStyle = {}, npc = 0, i, sp, sv;
+
+ // Store a subset of the existing styles
+ if (styleProps) {
+ for (i = 0; i < styleProps.length; i++) {
+ sp = styleProps[i];
+ sv = dom.getStyle(el, sp);
+
+ if (sv) {
+ newStyle[sp] = sv;
+ npc++;
+ }
+ }
+ }
+
+ // Remove all of the existing styles
+ dom.setAttrib(el, 'style', '');
+
+ if (styleProps && npc > 0)
+ dom.setStyles(el, newStyle); // Add back the stored subset of styles
+ else // Remove empty span tags that do not have class attributes
+ if (el.nodeName == 'SPAN' && !el.className)
+ dom.remove(el, true);
+ });
+ }
+ }
+
+ // Remove all style information or only specifically on WebKit to avoid the style bug on that browser
+ if (getParam(ed, "paste_remove_styles") || (getParam(ed, "paste_remove_styles_if_webkit") && tinymce.isWebKit)) {
+ each(dom.select('*[style]', o.node), function(el) {
+ el.removeAttribute('style');
+ el.removeAttribute('data-mce-style');
+ });
+ } else {
+ if (tinymce.isWebKit) {
+ // We need to compress the styles on WebKit since if you paste <img border="0" /> it will become <img border="0" style="... lots of junk ..." />
+ // Removing the mce_style that contains the real value will force the Serializer engine to compress the styles
+ each(dom.select('*', o.node), function(el) {
+ el.removeAttribute('data-mce-style');
+ });
+ }
+ }
+ },
+
+ /**
+ * Converts the most common bullet and number formats in Office into a real semantic UL/LI list.
+ */
+ _convertLists : function(pl, o) {
+ var dom = pl.editor.dom, listElm, li, lastMargin = -1, margin, levels = [], lastType, html;
+
+ // Convert middot lists into real semantic lists
+ each(dom.select('p', o.node), function(p) {
+ var sib, val = '', type, html, idx, parents;
+
+ // Get text node value at beginning of paragraph
+ for (sib = p.firstChild; sib && sib.nodeType == 3; sib = sib.nextSibling)
+ val += sib.nodeValue;
+
+ val = p.innerHTML.replace(/<\/?\w+[^>]*>/gi, '').replace(/&nbsp;/g, '\u00a0');
+
+ // Detect unordered lists look for bullets
+ if (/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*\u00a0*/.test(val))
+ type = 'ul';
+
+ // Detect ordered lists 1., a. or ixv.
+ if (/^__MCE_ITEM__\s*\w+\.\s*\u00a0+/.test(val))
+ type = 'ol';
+
+ // Check if node value matches the list pattern: o&nbsp;&nbsp;
+ if (type) {
+ margin = parseFloat(p.style.marginLeft || 0);
+
+ if (margin > lastMargin)
+ levels.push(margin);
+
+ if (!listElm || type != lastType) {
+ listElm = dom.create(type);
+ dom.insertAfter(listElm, p);
+ } else {
+ // Nested list element
+ if (margin > lastMargin) {
+ listElm = li.appendChild(dom.create(type));
+ } else if (margin < lastMargin) {
+ // Find parent level based on margin value
+ idx = tinymce.inArray(levels, margin);
+ parents = dom.getParents(listElm.parentNode, type);
+ listElm = parents[parents.length - 1 - idx] || listElm;
+ }
+ }
+
+ // Remove middot or number spans if they exists
+ each(dom.select('span', p), function(span) {
+ var html = span.innerHTML.replace(/<\/?\w+[^>]*>/gi, '');
+
+ // Remove span with the middot or the number
+ if (type == 'ul' && /^__MCE_ITEM__[\u2022\u00b7\u00a7\u00d8o\u25CF]/.test(html))
+ dom.remove(span);
+ else if (/^__MCE_ITEM__[\s\S]*\w+\.(&nbsp;|\u00a0)*\s*/.test(html))
+ dom.remove(span);
+ });
+
+ html = p.innerHTML;
+
+ // Remove middot/list items
+ if (type == 'ul')
+ html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*(&nbsp;|\u00a0)+\s*/, '');
+ else
+ html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^\s*\w+\.(&nbsp;|\u00a0)+\s*/, '');
+
+ // Create li and add paragraph data into the new li
+ li = listElm.appendChild(dom.create('li', 0, html));
+ dom.remove(p);
+
+ lastMargin = margin;
+ lastType = type;
+ } else
+ listElm = lastMargin = 0; // End list element
+ });
+
+ // Remove any left over makers
+ html = o.node.innerHTML;
+ if (html.indexOf('__MCE_ITEM__') != -1)
+ o.node.innerHTML = html.replace(/__MCE_ITEM__/g, '');
+ },
+
+ /**
+ * Inserts the specified contents at the caret position.
+ */
+ _insert : function(h, skip_undo) {
+ var ed = this.editor, r = ed.selection.getRng();
+
+ // First delete the contents seems to work better on WebKit when the selection spans multiple list items or multiple table cells.
+ if (!ed.selection.isCollapsed() && r.startContainer != r.endContainer)
+ ed.getDoc().execCommand('Delete', false, null);
+
+ ed.execCommand('mceInsertContent', false, h, {skip_undo : skip_undo});
+ },
+
+ /**
+ * Instead of the old plain text method which tried to re-create a paste operation, the
+ * new approach adds a plain text mode toggle switch that changes the behavior of paste.
+ * This function is passed the same input that the regular paste plugin produces.
+ * It performs additional scrubbing and produces (and inserts) the plain text.
+ * This approach leverages all of the great existing functionality in the paste
+ * plugin, and requires minimal changes to add the new functionality.
+ * Speednet - June 2009
+ */
+ _insertPlainText : function(content) {
+ var ed = this.editor,
+ linebr = getParam(ed, "paste_text_linebreaktype"),
+ rl = getParam(ed, "paste_text_replacements"),
+ is = tinymce.is;
+
+ function process(items) {
+ each(items, function(v) {
+ if (v.constructor == RegExp)
+ content = content.replace(v, "");
+ else
+ content = content.replace(v[0], v[1]);
+ });
+ };
+
+ if ((typeof(content) === "string") && (content.length > 0)) {
+ // If HTML content with line-breaking tags, then remove all cr/lf chars because only tags will break a line
+ if (/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(content)) {
+ process([
+ /[\n\r]+/g
+ ]);
+ } else {
+ // Otherwise just get rid of carriage returns (only need linefeeds)
+ process([
+ /\r+/g
+ ]);
+ }
+
+ process([
+ [/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi, "\n\n"], // Block tags get a blank line after them
+ [/<br[^>]*>|<\/tr>/gi, "\n"], // Single linebreak for <br /> tags and table rows
+ [/<\/t[dh]>\s*<t[dh][^>]*>/gi, "\t"], // Table cells get tabs betweem them
+ /<[a-z!\/?][^>]*>/gi, // Delete all remaining tags
+ [/&nbsp;/gi, " "], // Convert non-break spaces to regular spaces (remember, *plain text*)
+ [/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi, "$1"] // Cool little RegExp deletes whitespace around linebreak chars.
+ ]);
+
+ var maxLinebreaks = Number(getParam(ed, "paste_max_consecutive_linebreaks"));
+ if (maxLinebreaks > -1) {
+ var maxLinebreaksRegex = new RegExp("\n{" + (maxLinebreaks + 1) + ",}", "g");
+ var linebreakReplacement = "";
+
+ while (linebreakReplacement.length < maxLinebreaks) {
+ linebreakReplacement += "\n";
+ }
+
+ process([
+ [maxLinebreaksRegex, linebreakReplacement] // Limit max consecutive linebreaks
+ ]);
+ }
+
+ content = ed.dom.decode(tinymce.html.Entities.encodeRaw(content));
+
+ // Perform default or custom replacements
+ if (is(rl, "array")) {
+ process(rl);
+ } else if (is(rl, "string")) {
+ process(new RegExp(rl, "gi"));
+ }
+
+ // Treat paragraphs as specified in the config
+ if (linebr == "none") {
+ // Convert all line breaks to space
+ process([
+ [/\n+/g, " "]
+ ]);
+ } else if (linebr == "br") {
+ // Convert all line breaks to <br />
+ process([
+ [/\n/g, "<br />"]
+ ]);
+ } else if (linebr == "p") {
+ // Convert all line breaks to <p>...</p>
+ process([
+ [/\n+/g, "</p><p>"],
+ [/^(.*<\/p>)(<p>)$/, '<p>$1']
+ ]);
+ } else {
+ // defaults to "combined"
+ // Convert single line breaks to <br /> and double line breaks to <p>...</p>
+ process([
+ [/\n\n/g, "</p><p>"],
+ [/^(.*<\/p>)(<p>)$/, '<p>$1'],
+ [/\n/g, "<br />"]
+ ]);
+ }
+
+ ed.execCommand('mceInsertContent', false, content);
+ }
+ },
+
+ /**
+ * This method will open the old style paste dialogs. Some users might want the old behavior but still use the new cleanup engine.
+ */
+ _legacySupport : function() {
+ var t = this, ed = t.editor;
+
+ // Register command(s) for backwards compatibility
+ ed.addCommand("mcePasteWord", function() {
+ ed.windowManager.open({
+ file: t.url + "/pasteword.htm",
+ width: parseInt(getParam(ed, "paste_dialog_width")),
+ height: parseInt(getParam(ed, "paste_dialog_height")),
+ inline: 1
+ });
+ });
+
+ if (getParam(ed, "paste_text_use_dialog")) {
+ ed.addCommand("mcePasteText", function() {
+ ed.windowManager.open({
+ file : t.url + "/pastetext.htm",
+ width: parseInt(getParam(ed, "paste_dialog_width")),
+ height: parseInt(getParam(ed, "paste_dialog_height")),
+ inline : 1
+ });
+ });
+ }
+
+ // Register button for backwards compatibility
+ ed.addButton("pasteword", {title : "paste.paste_word_desc", cmd : "mcePasteWord"});
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add("paste", tinymce.plugins.PastePlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pastetext.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pastetext.js
new file mode 100644
index 00000000..c524f9eb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pastetext.js
@@ -0,0 +1,36 @@
+tinyMCEPopup.requireLangPack();
+
+var PasteTextDialog = {
+ init : function() {
+ this.resize();
+ },
+
+ insert : function() {
+ var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
+
+ // Convert linebreaks into paragraphs
+ if (document.getElementById('linebreaks').checked) {
+ lines = h.split(/\r?\n/);
+ if (lines.length > 1) {
+ h = '';
+ tinymce.each(lines, function(row) {
+ h += '<p>' + row + '</p>';
+ });
+ }
+ }
+
+ tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h});
+ tinyMCEPopup.close();
+ },
+
+ resize : function() {
+ var vp = tinyMCEPopup.dom.getViewPort(window), el;
+
+ el = document.getElementById('content');
+
+ el.style.width = (vp.w - 20) + 'px';
+ el.style.height = (vp.h - 90) + 'px';
+ }
+};
+
+tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pasteword.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pasteword.js
new file mode 100644
index 00000000..a52731c3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/js/pasteword.js
@@ -0,0 +1,51 @@
+tinyMCEPopup.requireLangPack();
+
+var PasteWordDialog = {
+ init : function() {
+ var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = '';
+
+ // Create iframe
+ el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></iframe>';
+ ifr = document.getElementById('iframe');
+ doc = ifr.contentWindow.document;
+
+ // Force absolute CSS urls
+ css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")];
+ css = css.concat(tinymce.explode(ed.settings.content_css) || []);
+ tinymce.each(css, function(u) {
+ cssHTML += '<link href="' + ed.documentBaseURI.toAbsolute('' + u) + '" rel="stylesheet" type="text/css" />';
+ });
+
+ // Write content into iframe
+ doc.open();
+ doc.write('<html><head>' + cssHTML + '</head><body class="mceContentBody" spellcheck="false"></body></html>');
+ doc.close();
+
+ doc.designMode = 'on';
+ this.resize();
+
+ window.setTimeout(function() {
+ ifr.contentWindow.focus();
+ }, 10);
+ },
+
+ insert : function() {
+ var h = document.getElementById('iframe').contentWindow.document.body.innerHTML;
+
+ tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true});
+ tinyMCEPopup.close();
+ },
+
+ resize : function() {
+ var vp = tinyMCEPopup.dom.getViewPort(window), el;
+
+ el = document.getElementById('iframe');
+
+ if (el) {
+ el.style.width = (vp.w - 20) + 'px';
+ el.style.height = (vp.h - 90) + 'px';
+ }
+ }
+};
+
+tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/de_dlg.js
new file mode 100644
index 00000000..d7bbe93d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.paste_dlg',{"word_title":"Strg V auf der Tastatur dr\u00fccken, um den Text einzuf\u00fcgen.","text_linebreaks":"Zeilenumbr\u00fcche beibehalten","text_title":"Strg V auf der Tastatur dr\u00fccken, um den Text einzuf\u00fcgen."}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/en_dlg.js
new file mode 100644
index 00000000..bc74daf8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.paste_dlg',{"word_title":"Use Ctrl+V on your keyboard to paste the text into the window.","text_linebreaks":"Keep Linebreaks","text_title":"Use Ctrl+V on your keyboard to paste the text into the window."}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/hu_dlg.js
new file mode 100644
index 00000000..826a7bfb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.paste_dlg',{"word_title":"Haszn\u00e1lja a Ctrl V-t a billenty\u0171zet\u00e9n a sz\u00f6veg beilleszt\u00e9shez.","text_linebreaks":"Sort\u00f6r\u00e9sek megtart\u00e1sa","text_title":"Haszn\u00e1lja a Ctrl V-t a billenty\u0171zet\u00e9n a sz\u00f6veg beilleszt\u00e9shez."}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/ja_dlg.js
new file mode 100644
index 00000000..5af59822
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.paste_dlg',{"word_title":"Ctrl V(\u30ad\u30fc\u30dc\u30fc\u30c9)\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002","text_linebreaks":"\u6539\u884c\u3092\u4fdd\u6301","text_title":"Ctrl V(\u30ad\u30fc\u30dc\u30fc\u30c9)\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pastetext.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pastetext.htm
new file mode 100755
index 00000000..b6559454
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pastetext.htm
@@ -0,0 +1,27 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#paste.paste_text_desc}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/pastetext.js"></script>
+</head>
+<body onresize="PasteTextDialog.resize();" style="display:none; overflow:hidden;">
+ <form name="source" onsubmit="return PasteTextDialog.insert();" action="#">
+ <div style="float: left" class="title">{#paste.paste_text_desc}</div>
+
+ <div style="float: right">
+ <input type="checkbox" name="linebreaks" id="linebreaks" class="wordWrapCode" checked="checked" /><label for="linebreaks">{#paste_dlg.text_linebreaks}</label>
+ </div>
+
+ <br style="clear: both" />
+
+ <div>{#paste_dlg.text_title}</div>
+
+ <textarea id="content" name="content" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft" class="mceFocus"></textarea>
+
+ <div class="mceActionPanel">
+ <input type="submit" name="insert" value="{#insert}" id="insert" />
+ <input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
+ </div>
+ </form>
+</body>
+</html> \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pasteword.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pasteword.htm
new file mode 100755
index 00000000..0f6bb412
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/paste/pasteword.htm
@@ -0,0 +1,21 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#paste.paste_word_desc}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/pasteword.js"></script>
+</head>
+<body onresize="PasteWordDialog.resize();" style="display:none; overflow:hidden;">
+ <form name="source" onsubmit="return PasteWordDialog.insert();" action="#">
+ <div class="title">{#paste.paste_word_desc}</div>
+
+ <div>{#paste_dlg.word_title}</div>
+
+ <div id="iframecontainer"></div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin.js
new file mode 100755
index 00000000..507909c5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.Preview",{init:function(a,b){var d=this,c=tinymce.explode(a.settings.content_css);d.editor=a;tinymce.each(c,function(f,e){c[e]=a.documentBaseURI.toAbsolute(f)});a.addCommand("mcePreview",function(){a.windowManager.open({file:a.getParam("plugin_preview_pageurl",b+"/preview.html"),width:parseInt(a.getParam("plugin_preview_width","550")),height:parseInt(a.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:c?c.join(","):a.baseURI.toAbsolute("themes/"+a.settings.theme+"/skins/"+a.settings.skin+"/content.css"),inline:a.getParam("plugin_preview_inline",1)},{base:a.documentBaseURI.getURI()})});a.addButton("preview",{title:"preview.preview_desc",cmd:"mcePreview"})},getInfo:function(){return{longname:"Preview",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("preview",tinymce.plugins.Preview)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin_src.js
new file mode 100755
index 00000000..80f00f0d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/editor_plugin_src.js
@@ -0,0 +1,53 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.Preview', {
+ init : function(ed, url) {
+ var t = this, css = tinymce.explode(ed.settings.content_css);
+
+ t.editor = ed;
+
+ // Force absolute CSS urls
+ tinymce.each(css, function(u, k) {
+ css[k] = ed.documentBaseURI.toAbsolute(u);
+ });
+
+ ed.addCommand('mcePreview', function() {
+ ed.windowManager.open({
+ file : ed.getParam("plugin_preview_pageurl", url + "/preview.html"),
+ width : parseInt(ed.getParam("plugin_preview_width", "550")),
+ height : parseInt(ed.getParam("plugin_preview_height", "600")),
+ resizable : "yes",
+ scrollbars : "yes",
+ popup_css : css ? css.join(',') : ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css"),
+ inline : ed.getParam("plugin_preview_inline", 1)
+ }, {
+ base : ed.documentBaseURI.getURI()
+ });
+ });
+
+ ed.addButton('preview', {title : 'preview.preview_desc', cmd : 'mcePreview'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Preview',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('preview', tinymce.plugins.Preview);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/example.html b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/example.html
new file mode 100755
index 00000000..b2c3d90c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/example.html
@@ -0,0 +1,28 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<script language="javascript" src="../../tiny_mce_popup.js"></script>
+<script type="text/javascript" src="jscripts/embed.js"></script>
+<script type="text/javascript">
+tinyMCEPopup.onInit.add(function(ed) {
+ var dom = tinyMCEPopup.dom;
+
+ // Load editor content_css
+ tinymce.each(ed.settings.content_css.split(','), function(u) {
+ dom.loadCSS(ed.documentBaseURI.toAbsolute(u));
+ });
+
+ // Place contents inside div container
+ dom.setHTML('content', ed.getContent());
+});
+</script>
+<title>Example of a custom preview page</title>
+</head>
+<body>
+
+Editor contents: <br />
+<div id="content">
+<!-- Gets filled with editor contents -->
+</div>
+
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/jscripts/embed.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/jscripts/embed.js
new file mode 100755
index 00000000..f8dc8105
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/jscripts/embed.js
@@ -0,0 +1,73 @@
+/**
+ * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
+ */
+
+function writeFlash(p) {
+ writeEmbed(
+ 'D27CDB6E-AE6D-11cf-96B8-444553540000',
+ 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
+ 'application/x-shockwave-flash',
+ p
+ );
+}
+
+function writeShockWave(p) {
+ writeEmbed(
+ '166B1BCA-3F9C-11CF-8075-444553540000',
+ 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0',
+ 'application/x-director',
+ p
+ );
+}
+
+function writeQuickTime(p) {
+ writeEmbed(
+ '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',
+ 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0',
+ 'video/quicktime',
+ p
+ );
+}
+
+function writeRealMedia(p) {
+ writeEmbed(
+ 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA',
+ 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
+ 'audio/x-pn-realaudio-plugin',
+ p
+ );
+}
+
+function writeWindowsMedia(p) {
+ p.url = p.src;
+ writeEmbed(
+ '6BF52A52-394A-11D3-B153-00C04F79FAA6',
+ 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701',
+ 'application/x-mplayer2',
+ p
+ );
+}
+
+function writeEmbed(cls, cb, mt, p) {
+ var h = '', n;
+
+ h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
+ h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
+ h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
+ h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
+ h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
+ h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
+ h += '>';
+
+ for (n in p)
+ h += '<param name="' + n + '" value="' + p[n] + '">';
+
+ h += '<embed type="' + mt + '"';
+
+ for (n in p)
+ h += n + '="' + p[n] + '" ';
+
+ h += '></embed></object>';
+
+ document.write(h);
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/preview.html b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/preview.html
new file mode 100644
index 00000000..67e7b142
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/preview/preview.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+<script type="text/javascript" src="jscripts/embed.js"></script>
+<script type="text/javascript"><!--
+document.write('<base href="' + tinyMCEPopup.getWindowArg("base") + '">');
+// -->
+</script>
+<title>{#preview.preview_desc}</title>
+</head>
+<body id="content">
+<script type="text/javascript">
+ document.write(tinyMCEPopup.editor.getContent());
+</script>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin.js
new file mode 100755
index 00000000..b5b3a55e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.Print",{init:function(a,b){a.addCommand("mcePrint",function(){a.getWin().print()});a.addButton("print",{title:"print.print_desc",cmd:"mcePrint"})},getInfo:function(){return{longname:"Print",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("print",tinymce.plugins.Print)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin_src.js
new file mode 100755
index 00000000..3933fe65
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/print/editor_plugin_src.js
@@ -0,0 +1,34 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.Print', {
+ init : function(ed, url) {
+ ed.addCommand('mcePrint', function() {
+ ed.getWin().print();
+ });
+
+ ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Print',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('print', tinymce.plugins.Print);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin.js
new file mode 100755
index 00000000..8e939966
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.Save",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceSave",c._save,c);a.addCommand("mceCancel",c._cancel,c);a.addButton("save",{title:"save.save_desc",cmd:"mceSave"});a.addButton("cancel",{title:"save.cancel_desc",cmd:"mceCancel"});a.onNodeChange.add(c._nodeChange,c);a.addShortcut("ctrl+s",a.getLang("save.save_desc"),"mceSave")},getInfo:function(){return{longname:"Save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,c){var b=this.editor;if(b.getParam("save_enablewhendirty")){a.setDisabled("save",!b.isDirty());a.setDisabled("cancel",!b.isDirty())}},_save:function(){var c=this.editor,a,e,d,b;a=tinymce.DOM.get(c.id).form||tinymce.DOM.getParent(c.id,"form");if(c.getParam("save_enablewhendirty")&&!c.isDirty()){return}tinyMCE.triggerSave();if(e=c.getParam("save_onsavecallback")){if(c.execCallback("save_onsavecallback",c)){c.startContent=tinymce.trim(c.getContent({format:"raw"}));c.nodeChanged()}return}if(a){c.isNotDirty=true;if(a.onsubmit==null||a.onsubmit()!=false){a.submit()}c.nodeChanged()}else{c.windowManager.alert("Error: No form element found.")}},_cancel:function(){var a=this.editor,c,b=tinymce.trim(a.startContent);if(c=a.getParam("save_oncancelcallback")){a.execCallback("save_oncancelcallback",a);return}a.setContent(b);a.undoManager.clear();a.nodeChanged()}});tinymce.PluginManager.add("save",tinymce.plugins.Save)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin_src.js
new file mode 100755
index 00000000..f5a3de8f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/save/editor_plugin_src.js
@@ -0,0 +1,101 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.Save', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceSave', t._save, t);
+ ed.addCommand('mceCancel', t._cancel, t);
+
+ // Register buttons
+ ed.addButton('save', {title : 'save.save_desc', cmd : 'mceSave'});
+ ed.addButton('cancel', {title : 'save.cancel_desc', cmd : 'mceCancel'});
+
+ ed.onNodeChange.add(t._nodeChange, t);
+ ed.addShortcut('ctrl+s', ed.getLang('save.save_desc'), 'mceSave');
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Save',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private methods
+
+ _nodeChange : function(ed, cm, n) {
+ var ed = this.editor;
+
+ if (ed.getParam('save_enablewhendirty')) {
+ cm.setDisabled('save', !ed.isDirty());
+ cm.setDisabled('cancel', !ed.isDirty());
+ }
+ },
+
+ // Private methods
+
+ _save : function() {
+ var ed = this.editor, formObj, os, i, elementId;
+
+ formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form');
+
+ if (ed.getParam("save_enablewhendirty") && !ed.isDirty())
+ return;
+
+ tinyMCE.triggerSave();
+
+ // Use callback instead
+ if (os = ed.getParam("save_onsavecallback")) {
+ if (ed.execCallback('save_onsavecallback', ed)) {
+ ed.startContent = tinymce.trim(ed.getContent({format : 'raw'}));
+ ed.nodeChanged();
+ }
+
+ return;
+ }
+
+ if (formObj) {
+ ed.isNotDirty = true;
+
+ if (formObj.onsubmit == null || formObj.onsubmit() != false)
+ formObj.submit();
+
+ ed.nodeChanged();
+ } else
+ ed.windowManager.alert("Error: No form element found.");
+ },
+
+ _cancel : function() {
+ var ed = this.editor, os, h = tinymce.trim(ed.startContent);
+
+ // Use callback instead
+ if (os = ed.getParam("save_oncancelcallback")) {
+ ed.execCallback('save_oncancelcallback', ed);
+ return;
+ }
+
+ ed.setContent(h);
+ ed.undoManager.clear();
+ ed.nodeChanged();
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('save', tinymce.plugins.Save);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/css/searchreplace.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/css/searchreplace.css
new file mode 100755
index 00000000..ecdf58c7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/css/searchreplace.css
@@ -0,0 +1,6 @@
+.panel_wrapper {height:85px;}
+.panel_wrapper div.current {height:85px;}
+
+/* IE */
+* html .panel_wrapper {height:100px;}
+* html .panel_wrapper div.current {height:100px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin.js
new file mode 100755
index 00000000..165bc12d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(a,c){function b(d){window.focus();a.windowManager.open({file:c+"/searchreplace.htm",width:420+parseInt(a.getLang("searchreplace.delta_width",0)),height:170+parseInt(a.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:a.selection.getContent({format:"text"}),plugin_url:c})}a.addCommand("mceSearch",function(){b("search")});a.addCommand("mceReplace",function(){b("replace")});a.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});a.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});a.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin_src.js
new file mode 100755
index 00000000..4c87e8fa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/editor_plugin_src.js
@@ -0,0 +1,61 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.SearchReplacePlugin', {
+ init : function(ed, url) {
+ function open(m) {
+ // Keep IE from writing out the f/r character to the editor
+ // instance while initializing a new dialog. See: #3131190
+ window.focus();
+
+ ed.windowManager.open({
+ file : url + '/searchreplace.htm',
+ width : 420 + parseInt(ed.getLang('searchreplace.delta_width', 0)),
+ height : 170 + parseInt(ed.getLang('searchreplace.delta_height', 0)),
+ inline : 1,
+ auto_focus : 0
+ }, {
+ mode : m,
+ search_string : ed.selection.getContent({format : 'text'}),
+ plugin_url : url
+ });
+ };
+
+ // Register commands
+ ed.addCommand('mceSearch', function() {
+ open('search');
+ });
+
+ ed.addCommand('mceReplace', function() {
+ open('replace');
+ });
+
+ // Register buttons
+ ed.addButton('search', {title : 'searchreplace.search_desc', cmd : 'mceSearch'});
+ ed.addButton('replace', {title : 'searchreplace.replace_desc', cmd : 'mceReplace'});
+
+ ed.addShortcut('ctrl+f', 'searchreplace.search_desc', 'mceSearch');
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Search/Replace',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('searchreplace', tinymce.plugins.SearchReplacePlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/js/searchreplace.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/js/searchreplace.js
new file mode 100644
index 00000000..80284b9f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/js/searchreplace.js
@@ -0,0 +1,142 @@
+tinyMCEPopup.requireLangPack();
+
+var SearchReplaceDialog = {
+ init : function(ed) {
+ var t = this, f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode");
+
+ t.switchMode(m);
+
+ f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string");
+
+ // Focus input field
+ f[m + '_panel_searchstring'].focus();
+
+ mcTabs.onChange.add(function(tab_id, panel_id) {
+ t.switchMode(tab_id.substring(0, tab_id.indexOf('_')));
+ });
+ },
+
+ switchMode : function(m) {
+ var f, lm = this.lastMode;
+
+ if (lm != m) {
+ f = document.forms[0];
+
+ if (lm) {
+ f[m + '_panel_searchstring'].value = f[lm + '_panel_searchstring'].value;
+ f[m + '_panel_backwardsu'].checked = f[lm + '_panel_backwardsu'].checked;
+ f[m + '_panel_backwardsd'].checked = f[lm + '_panel_backwardsd'].checked;
+ f[m + '_panel_casesensitivebox'].checked = f[lm + '_panel_casesensitivebox'].checked;
+ }
+
+ mcTabs.displayTab(m + '_tab', m + '_panel');
+ document.getElementById("replaceBtn").style.display = (m == "replace") ? "inline" : "none";
+ document.getElementById("replaceAllBtn").style.display = (m == "replace") ? "inline" : "none";
+ this.lastMode = m;
+ }
+ },
+
+ searchNext : function(a) {
+ var ed = tinyMCEPopup.editor, se = ed.selection, r = se.getRng(), f, m = this.lastMode, s, b, fl = 0, w = ed.getWin(), wm = ed.windowManager, fo = 0;
+
+ // Get input
+ f = document.forms[0];
+ s = f[m + '_panel_searchstring'].value;
+ b = f[m + '_panel_backwardsu'].checked;
+ ca = f[m + '_panel_casesensitivebox'].checked;
+ rs = f['replace_panel_replacestring'].value;
+
+ if (tinymce.isIE) {
+ r = ed.getDoc().selection.createRange();
+ }
+
+ if (s == '')
+ return;
+
+ function fix() {
+ // Correct Firefox graphics glitches
+ // TODO: Verify if this is actually needed any more, maybe it was for very old FF versions?
+ r = se.getRng().cloneRange();
+ ed.getDoc().execCommand('SelectAll', false, null);
+ se.setRng(r);
+ };
+
+ function replace() {
+ ed.selection.setContent(rs); // Needs to be duplicated due to selection bug in IE
+ };
+
+ // IE flags
+ if (ca)
+ fl = fl | 4;
+
+ switch (a) {
+ case 'all':
+ // Move caret to beginning of text
+ ed.execCommand('SelectAll');
+ ed.selection.collapse(true);
+
+ if (tinymce.isIE) {
+ ed.focus();
+ r = ed.getDoc().selection.createRange();
+
+ while (r.findText(s, b ? -1 : 1, fl)) {
+ r.scrollIntoView();
+ r.select();
+ replace();
+ fo = 1;
+
+ if (b) {
+ r.moveEnd("character", -(rs.length)); // Otherwise will loop forever
+ }
+ }
+
+ tinyMCEPopup.storeSelection();
+ } else {
+ while (w.find(s, ca, b, false, false, false, false)) {
+ replace();
+ fo = 1;
+ }
+ }
+
+ if (fo)
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.allreplaced'));
+ else
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound'));
+
+ return;
+
+ case 'current':
+ if (!ed.selection.isCollapsed())
+ replace();
+
+ break;
+ }
+
+ se.collapse(b);
+ r = se.getRng();
+
+ // Whats the point
+ if (!s)
+ return;
+
+ if (tinymce.isIE) {
+ ed.focus();
+ r = ed.getDoc().selection.createRange();
+
+ if (r.findText(s, b ? -1 : 1, fl)) {
+ r.scrollIntoView();
+ r.select();
+ } else
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound'));
+
+ tinyMCEPopup.storeSelection();
+ } else {
+ if (!w.find(s, ca, b, false, false, false, false))
+ tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound'));
+ else
+ fix();
+ }
+ }
+};
+
+tinyMCEPopup.onInit.add(SearchReplaceDialog.init, SearchReplaceDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/de_dlg.js
new file mode 100644
index 00000000..7c40acd9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.searchreplace_dlg',{findwhat:"Zu suchender Text",replacewith:"Ersetzen durch",direction:"Suchrichtung",up:"Aufw\u00e4rts",down:"Abw\u00e4rts",mcase:"Gro\u00df-/Kleinschreibung beachten",findnext:"Weitersuchen",allreplaced:"Alle Vorkommen der Zeichenkette wurden ersetzt.","searchnext_desc":"Weitersuchen",notfound:"Die Suche ist am Ende angelangt. Die Zeichenkette konnte nicht gefunden werden.","search_title":"Suchen","replace_title":"Suchen/Ersetzen",replaceall:"Alle ersetzen",replace:"Ersetzen"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/en_dlg.js
new file mode 100644
index 00000000..8a659009
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.searchreplace_dlg',{findwhat:"Find What",replacewith:"Replace with",direction:"Direction",up:"Up",down:"Down",mcase:"Match Case",findnext:"Find Next",allreplaced:"All occurrences of the search string were replaced.","searchnext_desc":"Find Again",notfound:"The search has been completed. The search string could not be found.","search_title":"Find","replace_title":"Find/Replace",replaceall:"Replace All",replace:"Replace"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/hu_dlg.js
new file mode 100644
index 00000000..c34352d6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.searchreplace_dlg',{findwhat:"Mit keres",replacewith:"Mire cser\u00e9l",direction:"Ir\u00e1ny",up:"Fel",down:"Le",mcase:"Kis- \u00e9s nagybet\u0171k megk\u00fcl\u00f6nb\u00f6ztet\u00e9se",findnext:"K\u00f6vetkez\u0151 keres\u00e9se",allreplaced:"A keresett r\u00e9szsz\u00f6veg minden el\u0151fordul\u00e1sa cser\u00e9lve lett.","searchnext_desc":"Keres\u00e9s megint",notfound:"A keres\u00e9s v\u00e9get \u00e9rt. A keresett sz\u00f6vegr\u00e9sz nem tal\u00e1lhat\u00f3.","search_title":"Keres\u00e9s","replace_title":"Keres\u00e9s/Csere",replaceall:"\u00d6sszes cser\u00e9je",replace:"Csere"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/ja_dlg.js
new file mode 100644
index 00000000..a12eb783
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.searchreplace_dlg',{findwhat:"\u691c\u7d22\u3059\u308b\u6587\u5b57\u5217",replacewith:"\u7f6e\u63db\u5f8c\u306e\u6587\u5b57\u5217",direction:"\u65b9\u5411",up:"\u4e0a\u3078",down:"\u4e0b\u3078",mcase:"\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u306e\u533a\u5225",findnext:"\u6b21\u3092\u691c\u7d22",allreplaced:"\u3059\u3079\u3066\u7f6e\u63db\u3057\u307e\u3057\u305f\u3002","searchnext_desc":"\u518d\u691c\u7d22",notfound:"\u691c\u7d22\u3092\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002\u691c\u7d22\u6587\u5b57\u5217\u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002","search_title":"\u691c\u7d22","replace_title":"\u691c\u7d22\u3068\u7f6e\u63db",replaceall:"\u3059\u3079\u3066\u7f6e\u63db",replace:"\u7f6e\u63db"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/searchreplace.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/searchreplace.htm
new file mode 100755
index 00000000..2443a918
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/searchreplace/searchreplace.htm
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#searchreplace_dlg.replace_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="js/searchreplace.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/searchreplace.css" />
+</head>
+<body style="display:none;" role="application" aria-labelledby="app_title">
+<span id="app_title" style="display:none">{#searchreplace_dlg.replace_title}</span>
+<form onsubmit="SearchReplaceDialog.searchNext('none');return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="search_tab" aria-controls="search_panel"><span><a href="javascript:SearchReplaceDialog.switchMode('search');" onmousedown="return false;">{#searchreplace.search_desc}</a></span></li>
+ <li id="replace_tab" aria-controls="replace_panel"><span><a href="javascript:SearchReplaceDialog.switchMode('replace');" onmousedown="return false;">{#searchreplace_dlg.replace}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="search_panel" class="panel">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="2">
+ <tr>
+ <td><label for="search_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
+ <td><input type="text" id="search_panel_searchstring" name="search_panel_searchstring" style="width: 200px" aria-required="true" /></td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0" class="direction">
+ <tr role="group" aria-labelledby="search_panel_backwards_label">
+ <td><label id="search_panel_backwards_label">{#searchreplace_dlg.direction}</label></td>
+ <td><input id="search_panel_backwardsu" name="search_panel_backwards" class="radio" type="radio" /></td>
+ <td><label for="search_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
+ <td><input id="search_panel_backwardsd" name="search_panel_backwards" class="radio" type="radio" checked="checked" /></td>
+ <td><label for="search_panel_backwardsd">{#searchreplace_dlg.down}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="search_panel_casesensitivebox" name="search_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
+ <td><label for="search_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ <div id="replace_panel" class="panel">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="2">
+ <tr>
+ <td><label for="replace_panel_searchstring">{#searchreplace_dlg.findwhat}</label></td>
+ <td><input type="text" id="replace_panel_searchstring" name="replace_panel_searchstring" style="width: 200px" aria-required="true" /></td>
+ </tr>
+ <tr>
+ <td><label for="replace_panel_replacestring">{#searchreplace_dlg.replacewith}</label></td>
+ <td><input type="text" id="replace_panel_replacestring" name="replace_panel_replacestring" style="width: 200px" aria-required="true" /></td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0" class="direction">
+ <tr role="group" aria-labelledby="replace_panel_dir_label">
+ <td><label id="replace_panel_dir_label">{#searchreplace_dlg.direction}</label></td>
+ <td><input id="replace_panel_backwardsu" name="replace_panel_backwards" class="radio" type="radio" /></td>
+ <td><label for="replace_panel_backwardsu">{#searchreplace_dlg.up}</label></td>
+ <td><input id="replace_panel_backwardsd" name="replace_panel_backwards" class="radio" type="radio" checked="checked" /></td>
+ <td><label for="replace_panel_backwardsd">{#searchreplace_dlg.down}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="replace_panel_casesensitivebox" name="replace_panel_casesensitivebox" class="checkbox" type="checkbox" /></td>
+ <td><label for="replace_panel_casesensitivebox">{#searchreplace_dlg.mcase}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#searchreplace_dlg.findnext}" />
+ <input type="button" class="button" id="replaceBtn" name="replaceBtn" value="{#searchreplace_dlg.replace}" onclick="SearchReplaceDialog.searchNext('current');" />
+ <input type="button" class="button" id="replaceAllBtn" name="replaceAllBtn" value="{#searchreplace_dlg.replaceall}" onclick="SearchReplaceDialog.searchNext('all');" />
+ <input type="button" id="cancel" name="close" value="{#close}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/css/content.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/css/content.css
new file mode 100644
index 00000000..24efa021
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/css/content.css
@@ -0,0 +1 @@
+.mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin.js
new file mode 100644
index 00000000..48549c92
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.SpellcheckerPlugin",{getInfo:function(){return{longname:"Spellchecker",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker",version:tinymce.majorVersion+"."+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;g.rpcUrl=e.getParam("spellchecker_rpc_url","{backend}");if(g.rpcUrl=="{backend}"){if(tinymce.isIE){return}g.hasSupport=true;e.onContextMenu.addToTop(function(h,i){if(g.active){return false}})}e.addCommand("mceSpellCheck",function(){if(g.rpcUrl=="{backend}"){g.editor.getBody().spellcheck=g.active=!g.active;return}if(!g.active){e.setProgressState(1);g._sendRPC("checkWords",[g.selectedLang,g._getWords()],function(h){if(h.length>0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);if(e.getParam("spellchecker_report_no_misspellings",true)){e.windowManager.alert("spellchecker.no_mpell")}}})}else{g._done()}});if(e.settings.content_css!==false){e.contentCSS.push(f+"/css/content.css")}e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive("spellchecker",g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i=="mceFullScreen"){g._done()}});g.languages={};c(e.getParam("spellchecker_languages","+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv","hash"),function(i,h){if(h.indexOf("+")===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h=="spellchecker"){if(f.rpcUrl=="{backend}"){if(f.hasSupport){g=d.createButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f})}return g}g=d.createSplitButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f});g.onRenderMenu.add(function(j,i){i.add({title:"spellchecker.langs","class":"mceMenuItemTitle"}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){if(n==f.selectedLang){return}l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,"childNodes")}},_getSeparators:function(){var e="",d,f=this.editor.getParam("spellchecker_word_separator_chars",'\\s!"#$%&()*+,-./:;<=>?@[]^_{|}\u201d\u201c');for(d=0;d<f.length;d++){e+="\\"+f.charAt(d)}return e},_getWords:function(){var e=this.editor,g=[],d="",f={},h=[];this._walk(e.getBody(),function(i){if(i.nodeType==3){d+=i.nodeValue+" "}});if(e.getParam("spellchecker_word_pattern")){h=d.match("("+e.getParam("spellchecker_word_pattern")+")","gi")}else{d=d.replace(new RegExp("([0-9]|["+this._getSeparators()+"])","g")," ");d=tinymce.trim(d.replace(/(\s+)/g," "));h=d.split(" ")}c(h,function(i){if(!f[i]){g.push(i);f[i]=1}});return g},_removeWords:function(d){var e=this.editor,h=e.dom,g=e.selection,f=g.getRng(true);c(h.select("span").reverse(),function(i){if(i&&(h.hasClass(i,"mceItemHiddenSpellWord")||h.hasClass(i,"mceItemHidden"))){if(!d||h.decode(i.innerHTML)==d){h.remove(i,1)}}});g.setRng(f)},_markWords:function(l){var h=this.editor,g=h.dom,j=h.getDoc(),i=h.selection,d=i.getRng(true),e=[],k=l.join("|"),m=this._getSeparators(),f=new RegExp("(^|["+m+"])("+k+")(?=["+m+"]|$)","g");this._walk(h.getBody(),function(o){if(o.nodeType==3){e.push(o)}});c(e,function(t){var r,q,o,s,p=t.nodeValue;if(f.test(p)){p=g.encode(p);q=g.create("span",{"class":"mceItemHidden"});if(tinymce.isIE){p=p.replace(f,"$1<mcespell>$2</mcespell>");while((s=p.indexOf("<mcespell>"))!=-1){o=p.substring(0,s);if(o.length){r=j.createTextNode(g.decode(o));q.appendChild(r)}p=p.substring(s+10);s=p.indexOf("</mcespell>");o=p.substring(0,s);p=p.substring(s+11);q.appendChild(g.create("span",{"class":"mceItemHiddenSpellWord"},o))}if(p.length){r=j.createTextNode(g.decode(p));q.appendChild(r)}}else{q.innerHTML=p.replace(f,'$1<span class="mceItemHiddenSpellWord">$2</span>')}g.replace(q,t)}});i.setRng(d)},_showMenu:function(h,j){var i=this,h=i.editor,d=i._menu,l,k=h.dom,g=k.getViewPort(h.getWin()),f=j.target;j=0;if(!d){d=h.controlManager.createDropMenu("spellcheckermenu",{"class":"mceNoIcons"});i._menu=d}if(k.hasClass(f,"mceItemHiddenSpellWord")){d.removeAll();d.add({title:"spellchecker.wait","class":"mceMenuItemTitle"}).setDisabled(1);i._sendRPC("getSuggestions",[i.selectedLang,k.decode(f.innerHTML)],function(m){var e;d.removeAll();if(m.length>0){d.add({title:"spellchecker.sug","class":"mceMenuItemTitle"}).setDisabled(1);c(m,function(n){d.add({title:n,onclick:function(){k.replace(h.getDoc().createTextNode(n),f);i._checkDone()}})});d.addSeparator()}else{d.add({title:"spellchecker.no_sug","class":"mceMenuItemTitle"}).setDisabled(1)}if(h.getParam("show_ignore_words",true)){e=i.editor.getParam("spellchecker_enable_ignore_rpc","");d.add({title:"spellchecker.ignore_word",onclick:function(){var n=f.innerHTML;k.remove(f,1);i._checkDone();if(e){h.setProgressState(1);i._sendRPC("ignoreWord",[i.selectedLang,n],function(o){h.setProgressState(0)})}}});d.add({title:"spellchecker.ignore_words",onclick:function(){var n=f.innerHTML;i._removeWords(k.decode(n));i._checkDone();if(e){h.setProgressState(1);i._sendRPC("ignoreWords",[i.selectedLang,n],function(o){h.setProgressState(0)})}}})}if(i.editor.getParam("spellchecker_enable_learn_rpc")){d.add({title:"spellchecker.learn_word",onclick:function(){var n=f.innerHTML;k.remove(f,1);i._checkDone();h.setProgressState(1);i._sendRPC("learnWord",[i.selectedLang,n],function(o){h.setProgressState(0)})}})}d.update()});l=b.getPos(h.getContentAreaContainer());d.settings.offset_x=l.x;d.settings.offset_y=l.y;h.selection.select(f);l=k.getPos(f);d.showMenu(l.x,l.y+f.offsetHeight-g.y);return tinymce.dom.Event.cancel(j)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select("span"),function(h){if(h&&g.hasClass(h,"mceItemHiddenSpellWord")){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,g,d){var f=this;a.sendRPC({url:f.rpcUrl,method:e,params:g,success:d,error:function(i,h){f.editor.setProgressState(0);f.editor.windowManager.alert(i.errstr||("Error response: "+h.responseText))}})}});tinymce.PluginManager.add("spellchecker",tinymce.plugins.SpellcheckerPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin_src.js
new file mode 100644
index 00000000..86fdfceb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/editor_plugin_src.js
@@ -0,0 +1,436 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var JSONRequest = tinymce.util.JSONRequest, each = tinymce.each, DOM = tinymce.DOM;
+
+ tinymce.create('tinymce.plugins.SpellcheckerPlugin', {
+ getInfo : function() {
+ return {
+ longname : 'Spellchecker',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ init : function(ed, url) {
+ var t = this, cm;
+
+ t.url = url;
+ t.editor = ed;
+ t.rpcUrl = ed.getParam("spellchecker_rpc_url", "{backend}");
+
+ if (t.rpcUrl == '{backend}') {
+ // Sniff if the browser supports native spellchecking (Don't know of a better way)
+ if (tinymce.isIE)
+ return;
+
+ t.hasSupport = true;
+
+ // Disable the context menu when spellchecking is active
+ ed.onContextMenu.addToTop(function(ed, e) {
+ if (t.active)
+ return false;
+ });
+ }
+
+ // Register commands
+ ed.addCommand('mceSpellCheck', function() {
+ if (t.rpcUrl == '{backend}') {
+ // Enable/disable native spellchecker
+ t.editor.getBody().spellcheck = t.active = !t.active;
+ return;
+ }
+
+ if (!t.active) {
+ ed.setProgressState(1);
+ t._sendRPC('checkWords', [t.selectedLang, t._getWords()], function(r) {
+ if (r.length > 0) {
+ t.active = 1;
+ t._markWords(r);
+ ed.setProgressState(0);
+ ed.nodeChanged();
+ } else {
+ ed.setProgressState(0);
+
+ if (ed.getParam('spellchecker_report_no_misspellings', true))
+ ed.windowManager.alert('spellchecker.no_mpell');
+ }
+ });
+ } else
+ t._done();
+ });
+
+ if (ed.settings.content_css !== false)
+ ed.contentCSS.push(url + '/css/content.css');
+
+ ed.onClick.add(t._showMenu, t);
+ ed.onContextMenu.add(t._showMenu, t);
+ ed.onBeforeGetContent.add(function() {
+ if (t.active)
+ t._removeWords();
+ });
+
+ ed.onNodeChange.add(function(ed, cm) {
+ cm.setActive('spellchecker', t.active);
+ });
+
+ ed.onSetContent.add(function() {
+ t._done();
+ });
+
+ ed.onBeforeGetContent.add(function() {
+ t._done();
+ });
+
+ ed.onBeforeExecCommand.add(function(ed, cmd) {
+ if (cmd == 'mceFullScreen')
+ t._done();
+ });
+
+ // Find selected language
+ t.languages = {};
+ each(ed.getParam('spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv', 'hash'), function(v, k) {
+ if (k.indexOf('+') === 0) {
+ k = k.substring(1);
+ t.selectedLang = v;
+ }
+
+ t.languages[k] = v;
+ });
+ },
+
+ createControl : function(n, cm) {
+ var t = this, c, ed = t.editor;
+
+ if (n == 'spellchecker') {
+ // Use basic button if we use the native spellchecker
+ if (t.rpcUrl == '{backend}') {
+ // Create simple toggle button if we have native support
+ if (t.hasSupport)
+ c = cm.createButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t});
+
+ return c;
+ }
+
+ c = cm.createSplitButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t});
+
+ c.onRenderMenu.add(function(c, m) {
+ m.add({title : 'spellchecker.langs', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
+ each(t.languages, function(v, k) {
+ var o = {icon : 1}, mi;
+
+ o.onclick = function() {
+ if (v == t.selectedLang) {
+ return;
+ }
+ mi.setSelected(1);
+ t.selectedItem.setSelected(0);
+ t.selectedItem = mi;
+ t.selectedLang = v;
+ };
+
+ o.title = k;
+ mi = m.add(o);
+ mi.setSelected(v == t.selectedLang);
+
+ if (v == t.selectedLang)
+ t.selectedItem = mi;
+ })
+ });
+
+ return c;
+ }
+ },
+
+ // Internal functions
+
+ _walk : function(n, f) {
+ var d = this.editor.getDoc(), w;
+
+ if (d.createTreeWalker) {
+ w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false);
+
+ while ((n = w.nextNode()) != null)
+ f.call(this, n);
+ } else
+ tinymce.walk(n, f, 'childNodes');
+ },
+
+ _getSeparators : function() {
+ var re = '', i, str = this.editor.getParam('spellchecker_word_separator_chars', '\\s!"#$%&()*+,-./:;<=>?@[\]^_{|}\u201d\u201c');
+
+ // Build word separator regexp
+ for (i=0; i<str.length; i++)
+ re += '\\' + str.charAt(i);
+
+ return re;
+ },
+
+ _getWords : function() {
+ var ed = this.editor, wl = [], tx = '', lo = {}, rawWords = [];
+
+ // Get area text
+ this._walk(ed.getBody(), function(n) {
+ if (n.nodeType == 3)
+ tx += n.nodeValue + ' ';
+ });
+
+ // split the text up into individual words
+ if (ed.getParam('spellchecker_word_pattern')) {
+ // look for words that match the pattern
+ rawWords = tx.match('(' + ed.getParam('spellchecker_word_pattern') + ')', 'gi');
+ } else {
+ // Split words by separator
+ tx = tx.replace(new RegExp('([0-9]|[' + this._getSeparators() + '])', 'g'), ' ');
+ tx = tinymce.trim(tx.replace(/(\s+)/g, ' '));
+ rawWords = tx.split(' ');
+ }
+
+ // Build word array and remove duplicates
+ each(rawWords, function(v) {
+ if (!lo[v]) {
+ wl.push(v);
+ lo[v] = 1;
+ }
+ });
+
+ return wl;
+ },
+
+ _removeWords : function(w) {
+ var ed = this.editor, dom = ed.dom, se = ed.selection, r = se.getRng(true);
+
+ each(dom.select('span').reverse(), function(n) {
+ if (n && (dom.hasClass(n, 'mceItemHiddenSpellWord') || dom.hasClass(n, 'mceItemHidden'))) {
+ if (!w || dom.decode(n.innerHTML) == w)
+ dom.remove(n, 1);
+ }
+ });
+
+ se.setRng(r);
+ },
+
+ _markWords : function(wl) {
+ var ed = this.editor, dom = ed.dom, doc = ed.getDoc(), se = ed.selection, r = se.getRng(true), nl = [],
+ w = wl.join('|'), re = this._getSeparators(), rx = new RegExp('(^|[' + re + '])(' + w + ')(?=[' + re + ']|$)', 'g');
+
+ // Collect all text nodes
+ this._walk(ed.getBody(), function(n) {
+ if (n.nodeType == 3) {
+ nl.push(n);
+ }
+ });
+
+ // Wrap incorrect words in spans
+ each(nl, function(n) {
+ var node, elem, txt, pos, v = n.nodeValue;
+
+ if (rx.test(v)) {
+ // Encode the content
+ v = dom.encode(v);
+ // Create container element
+ elem = dom.create('span', {'class' : 'mceItemHidden'});
+
+ // Following code fixes IE issues by creating text nodes
+ // using DOM methods instead of innerHTML.
+ // Bug #3124: <PRE> elements content is broken after spellchecking.
+ // Bug #1408: Preceding whitespace characters are removed
+ // @TODO: I'm not sure that both are still issues on IE9.
+ if (tinymce.isIE) {
+ // Enclose mispelled words with temporal tag
+ v = v.replace(rx, '$1<mcespell>$2</mcespell>');
+ // Loop over the content finding mispelled words
+ while ((pos = v.indexOf('<mcespell>')) != -1) {
+ // Add text node for the content before the word
+ txt = v.substring(0, pos);
+ if (txt.length) {
+ node = doc.createTextNode(dom.decode(txt));
+ elem.appendChild(node);
+ }
+ v = v.substring(pos+10);
+ pos = v.indexOf('</mcespell>');
+ txt = v.substring(0, pos);
+ v = v.substring(pos+11);
+ // Add span element for the word
+ elem.appendChild(dom.create('span', {'class' : 'mceItemHiddenSpellWord'}, txt));
+ }
+ // Add text node for the rest of the content
+ if (v.length) {
+ node = doc.createTextNode(dom.decode(v));
+ elem.appendChild(node);
+ }
+ } else {
+ // Other browsers preserve whitespace characters on innerHTML usage
+ elem.innerHTML = v.replace(rx, '$1<span class="mceItemHiddenSpellWord">$2</span>');
+ }
+
+ // Finally, replace the node with the container
+ dom.replace(elem, n);
+ }
+ });
+
+ se.setRng(r);
+ },
+
+ _showMenu : function(ed, e) {
+ var t = this, ed = t.editor, m = t._menu, p1, dom = ed.dom, vp = dom.getViewPort(ed.getWin()), wordSpan = e.target;
+
+ e = 0; // Fixes IE memory leak
+
+ if (!m) {
+ m = ed.controlManager.createDropMenu('spellcheckermenu', {'class' : 'mceNoIcons'});
+ t._menu = m;
+ }
+
+ if (dom.hasClass(wordSpan, 'mceItemHiddenSpellWord')) {
+ m.removeAll();
+ m.add({title : 'spellchecker.wait', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
+
+ t._sendRPC('getSuggestions', [t.selectedLang, dom.decode(wordSpan.innerHTML)], function(r) {
+ var ignoreRpc;
+
+ m.removeAll();
+
+ if (r.length > 0) {
+ m.add({title : 'spellchecker.sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
+ each(r, function(v) {
+ m.add({title : v, onclick : function() {
+ dom.replace(ed.getDoc().createTextNode(v), wordSpan);
+ t._checkDone();
+ }});
+ });
+
+ m.addSeparator();
+ } else
+ m.add({title : 'spellchecker.no_sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1);
+
+ if (ed.getParam('show_ignore_words', true)) {
+ ignoreRpc = t.editor.getParam("spellchecker_enable_ignore_rpc", '');
+ m.add({
+ title : 'spellchecker.ignore_word',
+ onclick : function() {
+ var word = wordSpan.innerHTML;
+
+ dom.remove(wordSpan, 1);
+ t._checkDone();
+
+ // tell the server if we need to
+ if (ignoreRpc) {
+ ed.setProgressState(1);
+ t._sendRPC('ignoreWord', [t.selectedLang, word], function(r) {
+ ed.setProgressState(0);
+ });
+ }
+ }
+ });
+
+ m.add({
+ title : 'spellchecker.ignore_words',
+ onclick : function() {
+ var word = wordSpan.innerHTML;
+
+ t._removeWords(dom.decode(word));
+ t._checkDone();
+
+ // tell the server if we need to
+ if (ignoreRpc) {
+ ed.setProgressState(1);
+ t._sendRPC('ignoreWords', [t.selectedLang, word], function(r) {
+ ed.setProgressState(0);
+ });
+ }
+ }
+ });
+ }
+
+ if (t.editor.getParam("spellchecker_enable_learn_rpc")) {
+ m.add({
+ title : 'spellchecker.learn_word',
+ onclick : function() {
+ var word = wordSpan.innerHTML;
+
+ dom.remove(wordSpan, 1);
+ t._checkDone();
+
+ ed.setProgressState(1);
+ t._sendRPC('learnWord', [t.selectedLang, word], function(r) {
+ ed.setProgressState(0);
+ });
+ }
+ });
+ }
+
+ m.update();
+ });
+
+ p1 = DOM.getPos(ed.getContentAreaContainer());
+ m.settings.offset_x = p1.x;
+ m.settings.offset_y = p1.y;
+
+ ed.selection.select(wordSpan);
+ p1 = dom.getPos(wordSpan);
+ m.showMenu(p1.x, p1.y + wordSpan.offsetHeight - vp.y);
+
+ return tinymce.dom.Event.cancel(e);
+ } else
+ m.hideMenu();
+ },
+
+ _checkDone : function() {
+ var t = this, ed = t.editor, dom = ed.dom, o;
+
+ each(dom.select('span'), function(n) {
+ if (n && dom.hasClass(n, 'mceItemHiddenSpellWord')) {
+ o = true;
+ return false;
+ }
+ });
+
+ if (!o)
+ t._done();
+ },
+
+ _done : function() {
+ var t = this, la = t.active;
+
+ if (t.active) {
+ t.active = 0;
+ t._removeWords();
+
+ if (t._menu)
+ t._menu.hideMenu();
+
+ if (la)
+ t.editor.nodeChanged();
+ }
+ },
+
+ _sendRPC : function(m, p, cb) {
+ var t = this;
+
+ JSONRequest.sendRPC({
+ url : t.rpcUrl,
+ method : m,
+ params : p,
+ success : cb,
+ error : function(e, x) {
+ t.editor.setProgressState(0);
+ t.editor.windowManager.alert(e.errstr || ('Error response: ' + x.responseText));
+ }
+ });
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('spellchecker', tinymce.plugins.SpellcheckerPlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/img/wline.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/img/wline.gif
new file mode 100644
index 00000000..7d0a4dbc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/spellchecker/img/wline.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/css/props.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/css/props.css
new file mode 100755
index 00000000..3b8f0ee7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/css/props.css
@@ -0,0 +1,14 @@
+#text_font {width:250px;}
+#text_size {width:70px;}
+.mceAddSelectValue {background:#DDD;}
+select, #block_text_indent, #box_width, #box_height, #box_padding_top, #box_padding_right, #box_padding_bottom, #box_padding_left {width:70px;}
+#box_margin_top, #box_margin_right, #box_margin_bottom, #box_margin_left, #positioning_width, #positioning_height, #positioning_zindex {width:70px;}
+#positioning_placement_top, #positioning_placement_right, #positioning_placement_bottom, #positioning_placement_left {width:70px;}
+#positioning_clip_top, #positioning_clip_right, #positioning_clip_bottom, #positioning_clip_left {width:70px;}
+.panel_toggle_insert_span {padding-top:10px;}
+.panel_wrapper div.current {padding-top:10px;height:230px;}
+.delim {border-left:1px solid gray;}
+.tdelim {border-bottom:1px solid gray;}
+#block_display {width:145px;}
+#list_type {width:115px;}
+.disabled {background:#EEE;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin.js
new file mode 100755
index 00000000..dda9f928
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.StylePlugin",{init:function(a,b){a.addCommand("mceStyleProps",function(){var c=false;var f=a.selection.getSelectedBlocks();var d=[];if(f.length===1){d.push(a.selection.getNode().style.cssText)}else{tinymce.each(f,function(g){d.push(a.dom.getAttrib(g,"style"))});c=true}a.windowManager.open({file:b+"/props.htm",width:480+parseInt(a.getLang("style.delta_width",0)),height:340+parseInt(a.getLang("style.delta_height",0)),inline:1},{applyStyleToBlocks:c,plugin_url:b,styles:d})});a.addCommand("mceSetElementStyle",function(d,c){if(e=a.selection.getNode()){a.dom.setAttrib(e,"style",c);a.execCommand("mceRepaint")}});a.onNodeChange.add(function(d,c,f){c.setDisabled("styleprops",f.nodeName==="BODY")});a.addButton("styleprops",{title:"style.desc",cmd:"mceStyleProps"})},getInfo:function(){return{longname:"Style",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("style",tinymce.plugins.StylePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin_src.js
new file mode 100755
index 00000000..eaa7c771
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/editor_plugin_src.js
@@ -0,0 +1,71 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.StylePlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceStyleProps', function() {
+
+ var applyStyleToBlocks = false;
+ var blocks = ed.selection.getSelectedBlocks();
+ var styles = [];
+
+ if (blocks.length === 1) {
+ styles.push(ed.selection.getNode().style.cssText);
+ }
+ else {
+ tinymce.each(blocks, function(block) {
+ styles.push(ed.dom.getAttrib(block, 'style'));
+ });
+ applyStyleToBlocks = true;
+ }
+
+ ed.windowManager.open({
+ file : url + '/props.htm',
+ width : 480 + parseInt(ed.getLang('style.delta_width', 0)),
+ height : 340 + parseInt(ed.getLang('style.delta_height', 0)),
+ inline : 1
+ }, {
+ applyStyleToBlocks : applyStyleToBlocks,
+ plugin_url : url,
+ styles : styles
+ });
+ });
+
+ ed.addCommand('mceSetElementStyle', function(ui, v) {
+ if (e = ed.selection.getNode()) {
+ ed.dom.setAttrib(e, 'style', v);
+ ed.execCommand('mceRepaint');
+ }
+ });
+
+ ed.onNodeChange.add(function(ed, cm, n) {
+ cm.setDisabled('styleprops', n.nodeName === 'BODY');
+ });
+
+ // Register buttons
+ ed.addButton('styleprops', {title : 'style.desc', cmd : 'mceStyleProps'});
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Style',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('style', tinymce.plugins.StylePlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/js/props.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/js/props.js
new file mode 100644
index 00000000..0a8a8ec3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/js/props.js
@@ -0,0 +1,709 @@
+tinyMCEPopup.requireLangPack();
+
+var defaultFonts = "" +
+ "Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" +
+ "Times New Roman, Times, serif=Times New Roman, Times, serif;" +
+ "Courier New, Courier, mono=Courier New, Courier, mono;" +
+ "Times New Roman, Times, serif=Times New Roman, Times, serif;" +
+ "Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" +
+ "Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" +
+ "Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif";
+
+var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger";
+var defaultMeasurement = "+pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%";
+var defaultSpacingMeasurement = "pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;+ems=em;exs=ex;%";
+var defaultIndentMeasurement = "pixels=px;+points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%";
+var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900";
+var defaultTextStyle = "normal;italic;oblique";
+var defaultVariant = "normal;small-caps";
+var defaultLineHeight = "normal";
+var defaultAttachment = "fixed;scroll";
+var defaultRepeat = "no-repeat;repeat;repeat-x;repeat-y";
+var defaultPosH = "left;center;right";
+var defaultPosV = "top;center;bottom";
+var defaultVAlign = "baseline;sub;super;top;text-top;middle;bottom;text-bottom";
+var defaultDisplay = "inline;block;list-item;run-in;compact;marker;table;inline-table;table-row-group;table-header-group;table-footer-group;table-row;table-column-group;table-column;table-cell;table-caption;none";
+var defaultBorderStyle = "none;solid;dashed;dotted;double;groove;ridge;inset;outset";
+var defaultBorderWidth = "thin;medium;thick";
+var defaultListType = "disc;circle;square;decimal;lower-roman;upper-roman;lower-alpha;upper-alpha;none";
+
+function aggregateStyles(allStyles) {
+ var mergedStyles = {};
+
+ tinymce.each(allStyles, function(style) {
+ if (style !== '') {
+ var parsedStyles = tinyMCEPopup.editor.dom.parseStyle(style);
+ for (var name in parsedStyles) {
+ if (parsedStyles.hasOwnProperty(name)) {
+ if (mergedStyles[name] === undefined) {
+ mergedStyles[name] = parsedStyles[name];
+ }
+ else if (name === 'text-decoration') {
+ if (mergedStyles[name].indexOf(parsedStyles[name]) === -1) {
+ mergedStyles[name] = mergedStyles[name] +' '+ parsedStyles[name];
+ }
+ }
+ }
+ }
+ }
+ });
+
+ return mergedStyles;
+}
+
+var applyActionIsInsert;
+var existingStyles;
+
+function init(ed) {
+ var ce = document.getElementById('container'), h;
+
+ existingStyles = aggregateStyles(tinyMCEPopup.getWindowArg('styles'));
+ ce.style.cssText = tinyMCEPopup.editor.dom.serializeStyle(existingStyles);
+
+ applyActionIsInsert = ed.getParam("edit_css_style_insert_span", false);
+ document.getElementById('toggle_insert_span').checked = applyActionIsInsert;
+
+ h = getBrowserHTML('background_image_browser','background_image','image','advimage');
+ document.getElementById("background_image_browser").innerHTML = h;
+
+ document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color');
+ document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color');
+ document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top');
+ document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right');
+ document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom');
+ document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left');
+
+ fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true);
+ fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true);
+ fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true);
+ fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true);
+ fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true);
+ fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true);
+ fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true);
+ fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true);
+
+ fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true);
+ fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true);
+
+ fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true);
+
+ fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true);
+ fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true);
+
+ fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true);
+ fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true);
+ fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true);
+ fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true);
+ fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true);
+ fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true);
+ fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true);
+ fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true);
+ fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true);
+
+ fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true);
+ fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true);
+ fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true);
+
+ fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true);
+ fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true);
+ fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true);
+ fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true);
+
+ fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true);
+ fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true);
+ fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true);
+ fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true);
+
+ fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true);
+
+ fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true);
+ fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true);
+
+ fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true);
+ fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true);
+
+ fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true);
+
+ fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true);
+
+ fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true);
+ fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true);
+
+ TinyMCE_EditableSelects.init();
+ setupFormData();
+ showDisabledControls();
+}
+
+function setupFormData() {
+ var ce = document.getElementById('container'), f = document.forms[0], s, b, i;
+
+ // Setup text fields
+
+ selectByValue(f, 'text_font', ce.style.fontFamily, true, true);
+ selectByValue(f, 'text_size', getNum(ce.style.fontSize), true, true);
+ selectByValue(f, 'text_size_measurement', getMeasurement(ce.style.fontSize));
+ selectByValue(f, 'text_weight', ce.style.fontWeight, true, true);
+ selectByValue(f, 'text_style', ce.style.fontStyle, true, true);
+ selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true);
+ selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight));
+ selectByValue(f, 'text_case', ce.style.textTransform, true, true);
+ selectByValue(f, 'text_variant', ce.style.fontVariant, true, true);
+ f.text_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.color);
+ updateColor('text_color_pick', 'text_color');
+ f.text_underline.checked = inStr(ce.style.textDecoration, 'underline');
+ f.text_overline.checked = inStr(ce.style.textDecoration, 'overline');
+ f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through');
+ f.text_blink.checked = inStr(ce.style.textDecoration, 'blink');
+ f.text_none.checked = inStr(ce.style.textDecoration, 'none');
+ updateTextDecorations();
+
+ // Setup background fields
+
+ f.background_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.backgroundColor);
+ updateColor('background_color_pick', 'background_color');
+ f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
+ selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true);
+ selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true);
+ selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true);
+ selectByValue(f, 'background_hpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 0)));
+ selectByValue(f, 'background_vpos', getNum(getVal(ce.style.backgroundPosition, 1)), true, true);
+ selectByValue(f, 'background_vpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 1)));
+
+ // Setup block fields
+
+ selectByValue(f, 'block_wordspacing', getNum(ce.style.wordSpacing), true, true);
+ selectByValue(f, 'block_wordspacing_measurement', getMeasurement(ce.style.wordSpacing));
+ selectByValue(f, 'block_letterspacing', getNum(ce.style.letterSpacing), true, true);
+ selectByValue(f, 'block_letterspacing_measurement', getMeasurement(ce.style.letterSpacing));
+ selectByValue(f, 'block_vertical_alignment', ce.style.verticalAlign, true, true);
+ selectByValue(f, 'block_text_align', ce.style.textAlign, true, true);
+ f.block_text_indent.value = getNum(ce.style.textIndent);
+ selectByValue(f, 'block_text_indent_measurement', getMeasurement(ce.style.textIndent));
+ selectByValue(f, 'block_whitespace', ce.style.whiteSpace, true, true);
+ selectByValue(f, 'block_display', ce.style.display, true, true);
+
+ // Setup box fields
+
+ f.box_width.value = getNum(ce.style.width);
+ selectByValue(f, 'box_width_measurement', getMeasurement(ce.style.width));
+
+ f.box_height.value = getNum(ce.style.height);
+ selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height));
+ selectByValue(f, 'box_float', ce.style.cssFloat || ce.style.styleFloat, true, true);
+
+ selectByValue(f, 'box_clear', ce.style.clear, true, true);
+
+ setupBox(f, ce, 'box_padding', 'padding', '');
+ setupBox(f, ce, 'box_margin', 'margin', '');
+
+ // Setup border fields
+
+ setupBox(f, ce, 'border_style', 'border', 'Style');
+ setupBox(f, ce, 'border_width', 'border', 'Width');
+ setupBox(f, ce, 'border_color', 'border', 'Color');
+
+ updateColor('border_color_top_pick', 'border_color_top');
+ updateColor('border_color_right_pick', 'border_color_right');
+ updateColor('border_color_bottom_pick', 'border_color_bottom');
+ updateColor('border_color_left_pick', 'border_color_left');
+
+ f.elements.border_color_top.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_top.value);
+ f.elements.border_color_right.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_right.value);
+ f.elements.border_color_bottom.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_bottom.value);
+ f.elements.border_color_left.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_left.value);
+
+ // Setup list fields
+
+ selectByValue(f, 'list_type', ce.style.listStyleType, true, true);
+ selectByValue(f, 'list_position', ce.style.listStylePosition, true, true);
+ f.list_bullet_image.value = ce.style.listStyleImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
+
+ // Setup box fields
+
+ selectByValue(f, 'positioning_type', ce.style.position, true, true);
+ selectByValue(f, 'positioning_visibility', ce.style.visibility, true, true);
+ selectByValue(f, 'positioning_overflow', ce.style.overflow, true, true);
+ f.positioning_zindex.value = ce.style.zIndex ? ce.style.zIndex : "";
+
+ f.positioning_width.value = getNum(ce.style.width);
+ selectByValue(f, 'positioning_width_measurement', getMeasurement(ce.style.width));
+
+ f.positioning_height.value = getNum(ce.style.height);
+ selectByValue(f, 'positioning_height_measurement', getMeasurement(ce.style.height));
+
+ setupBox(f, ce, 'positioning_placement', '', '', ['top', 'right', 'bottom', 'left']);
+
+ s = ce.style.clip.replace(new RegExp("rect\\('?([^']*)'?\\)", 'gi'), "$1");
+ s = s.replace(/,/g, ' ');
+
+ if (!hasEqualValues([getVal(s, 0), getVal(s, 1), getVal(s, 2), getVal(s, 3)])) {
+ f.positioning_clip_top.value = getNum(getVal(s, 0));
+ selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0)));
+ f.positioning_clip_right.value = getNum(getVal(s, 1));
+ selectByValue(f, 'positioning_clip_right_measurement', getMeasurement(getVal(s, 1)));
+ f.positioning_clip_bottom.value = getNum(getVal(s, 2));
+ selectByValue(f, 'positioning_clip_bottom_measurement', getMeasurement(getVal(s, 2)));
+ f.positioning_clip_left.value = getNum(getVal(s, 3));
+ selectByValue(f, 'positioning_clip_left_measurement', getMeasurement(getVal(s, 3)));
+ } else {
+ f.positioning_clip_top.value = getNum(getVal(s, 0));
+ selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0)));
+ f.positioning_clip_right.value = f.positioning_clip_bottom.value = f.positioning_clip_left.value;
+ }
+
+// setupBox(f, ce, '', 'border', 'Color');
+}
+
+function getMeasurement(s) {
+ return s.replace(/^([0-9.]+)(.*)$/, "$2");
+}
+
+function getNum(s) {
+ if (new RegExp('^(?:[0-9.]+)(?:[a-z%]+)$', 'gi').test(s))
+ return s.replace(/[^0-9.]/g, '');
+
+ return s;
+}
+
+function inStr(s, n) {
+ return new RegExp(n, 'gi').test(s);
+}
+
+function getVal(s, i) {
+ var a = s.split(' ');
+
+ if (a.length > 1)
+ return a[i];
+
+ return "";
+}
+
+function setValue(f, n, v) {
+ if (f.elements[n].type == "text")
+ f.elements[n].value = v;
+ else
+ selectByValue(f, n, v, true, true);
+}
+
+function setupBox(f, ce, fp, pr, sf, b) {
+ if (typeof(b) == "undefined")
+ b = ['Top', 'Right', 'Bottom', 'Left'];
+
+ if (isSame(ce, pr, sf, b)) {
+ f.elements[fp + "_same"].checked = true;
+
+ setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf]));
+ f.elements[fp + "_top"].disabled = false;
+
+ f.elements[fp + "_right"].value = "";
+ f.elements[fp + "_right"].disabled = true;
+ f.elements[fp + "_bottom"].value = "";
+ f.elements[fp + "_bottom"].disabled = true;
+ f.elements[fp + "_left"].value = "";
+ f.elements[fp + "_left"].disabled = true;
+
+ if (f.elements[fp + "_top_measurement"]) {
+ selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf]));
+ f.elements[fp + "_left_measurement"].disabled = true;
+ f.elements[fp + "_bottom_measurement"].disabled = true;
+ f.elements[fp + "_right_measurement"].disabled = true;
+ }
+ } else {
+ f.elements[fp + "_same"].checked = false;
+
+ setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf]));
+ f.elements[fp + "_top"].disabled = false;
+
+ setValue(f, fp + "_right", getNum(ce.style[pr + b[1] + sf]));
+ f.elements[fp + "_right"].disabled = false;
+
+ setValue(f, fp + "_bottom", getNum(ce.style[pr + b[2] + sf]));
+ f.elements[fp + "_bottom"].disabled = false;
+
+ setValue(f, fp + "_left", getNum(ce.style[pr + b[3] + sf]));
+ f.elements[fp + "_left"].disabled = false;
+
+ if (f.elements[fp + "_top_measurement"]) {
+ selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf]));
+ selectByValue(f, fp + '_right_measurement', getMeasurement(ce.style[pr + b[1] + sf]));
+ selectByValue(f, fp + '_bottom_measurement', getMeasurement(ce.style[pr + b[2] + sf]));
+ selectByValue(f, fp + '_left_measurement', getMeasurement(ce.style[pr + b[3] + sf]));
+ f.elements[fp + "_left_measurement"].disabled = false;
+ f.elements[fp + "_bottom_measurement"].disabled = false;
+ f.elements[fp + "_right_measurement"].disabled = false;
+ }
+ }
+}
+
+function isSame(e, pr, sf, b) {
+ var a = [], i, x;
+
+ if (typeof(b) == "undefined")
+ b = ['Top', 'Right', 'Bottom', 'Left'];
+
+ if (typeof(sf) == "undefined" || sf == null)
+ sf = "";
+
+ a[0] = e.style[pr + b[0] + sf];
+ a[1] = e.style[pr + b[1] + sf];
+ a[2] = e.style[pr + b[2] + sf];
+ a[3] = e.style[pr + b[3] + sf];
+
+ for (i=0; i<a.length; i++) {
+ if (a[i] == null)
+ return false;
+
+ for (x=0; x<a.length; x++) {
+ if (a[x] != a[i])
+ return false;
+ }
+ }
+
+ return true;
+};
+
+function hasEqualValues(a) {
+ var i, x;
+
+ for (i=0; i<a.length; i++) {
+ if (a[i] == null)
+ return false;
+
+ for (x=0; x<a.length; x++) {
+ if (a[x] != a[i])
+ return false;
+ }
+ }
+
+ return true;
+}
+
+function toggleApplyAction() {
+ applyActionIsInsert = ! applyActionIsInsert;
+}
+
+function applyAction() {
+ var ce = document.getElementById('container'), ed = tinyMCEPopup.editor;
+
+ generateCSS();
+
+ tinyMCEPopup.restoreSelection();
+
+ var newStyles = tinyMCEPopup.editor.dom.parseStyle(ce.style.cssText);
+
+ if (applyActionIsInsert) {
+ ed.formatter.register('plugin_style', {
+ inline: 'span', styles: existingStyles
+ });
+ ed.formatter.remove('plugin_style');
+
+ ed.formatter.register('plugin_style', {
+ inline: 'span', styles: newStyles
+ });
+ ed.formatter.apply('plugin_style');
+ } else {
+ var nodes;
+
+ if (tinyMCEPopup.getWindowArg('applyStyleToBlocks')) {
+ nodes = ed.selection.getSelectedBlocks();
+ }
+ else {
+ nodes = ed.selection.getNode();
+ }
+
+ ed.dom.setAttrib(nodes, 'style', tinyMCEPopup.editor.dom.serializeStyle(newStyles));
+ }
+}
+
+function updateAction() {
+ applyAction();
+ tinyMCEPopup.close();
+}
+
+function generateCSS() {
+ var ce = document.getElementById('container'), f = document.forms[0], num = new RegExp('[0-9]+', 'g'), s, t;
+
+ ce.style.cssText = "";
+
+ // Build text styles
+ ce.style.fontFamily = f.text_font.value;
+ ce.style.fontSize = f.text_size.value + (isNum(f.text_size.value) ? (f.text_size_measurement.value || 'px') : "");
+ ce.style.fontStyle = f.text_style.value;
+ ce.style.lineHeight = f.text_lineheight.value + (isNum(f.text_lineheight.value) ? f.text_lineheight_measurement.value : "");
+ ce.style.textTransform = f.text_case.value;
+ ce.style.fontWeight = f.text_weight.value;
+ ce.style.fontVariant = f.text_variant.value;
+ ce.style.color = f.text_color.value;
+
+ s = "";
+ s += f.text_underline.checked ? " underline" : "";
+ s += f.text_overline.checked ? " overline" : "";
+ s += f.text_linethrough.checked ? " line-through" : "";
+ s += f.text_blink.checked ? " blink" : "";
+ s = s.length > 0 ? s.substring(1) : s;
+
+ if (f.text_none.checked)
+ s = "none";
+
+ ce.style.textDecoration = s;
+
+ // Build background styles
+
+ ce.style.backgroundColor = f.background_color.value;
+ ce.style.backgroundImage = f.background_image.value != "" ? "url(" + f.background_image.value + ")" : "";
+ ce.style.backgroundRepeat = f.background_repeat.value;
+ ce.style.backgroundAttachment = f.background_attachment.value;
+
+ if (f.background_hpos.value != "") {
+ s = "";
+ s += f.background_hpos.value + (isNum(f.background_hpos.value) ? f.background_hpos_measurement.value : "") + " ";
+ s += f.background_vpos.value + (isNum(f.background_vpos.value) ? f.background_vpos_measurement.value : "");
+ ce.style.backgroundPosition = s;
+ }
+
+ // Build block styles
+
+ ce.style.wordSpacing = f.block_wordspacing.value + (isNum(f.block_wordspacing.value) ? f.block_wordspacing_measurement.value : "");
+ ce.style.letterSpacing = f.block_letterspacing.value + (isNum(f.block_letterspacing.value) ? f.block_letterspacing_measurement.value : "");
+ ce.style.verticalAlign = f.block_vertical_alignment.value;
+ ce.style.textAlign = f.block_text_align.value;
+ ce.style.textIndent = f.block_text_indent.value + (isNum(f.block_text_indent.value) ? f.block_text_indent_measurement.value : "");
+ ce.style.whiteSpace = f.block_whitespace.value;
+ ce.style.display = f.block_display.value;
+
+ // Build box styles
+
+ ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : "");
+ ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : "");
+ ce.style.styleFloat = f.box_float.value;
+ ce.style.cssFloat = f.box_float.value;
+
+ ce.style.clear = f.box_clear.value;
+
+ if (!f.box_padding_same.checked) {
+ ce.style.paddingTop = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : "");
+ ce.style.paddingRight = f.box_padding_right.value + (isNum(f.box_padding_right.value) ? f.box_padding_right_measurement.value : "");
+ ce.style.paddingBottom = f.box_padding_bottom.value + (isNum(f.box_padding_bottom.value) ? f.box_padding_bottom_measurement.value : "");
+ ce.style.paddingLeft = f.box_padding_left.value + (isNum(f.box_padding_left.value) ? f.box_padding_left_measurement.value : "");
+ } else
+ ce.style.padding = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : "");
+
+ if (!f.box_margin_same.checked) {
+ ce.style.marginTop = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : "");
+ ce.style.marginRight = f.box_margin_right.value + (isNum(f.box_margin_right.value) ? f.box_margin_right_measurement.value : "");
+ ce.style.marginBottom = f.box_margin_bottom.value + (isNum(f.box_margin_bottom.value) ? f.box_margin_bottom_measurement.value : "");
+ ce.style.marginLeft = f.box_margin_left.value + (isNum(f.box_margin_left.value) ? f.box_margin_left_measurement.value : "");
+ } else
+ ce.style.margin = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : "");
+
+ // Build border styles
+
+ if (!f.border_style_same.checked) {
+ ce.style.borderTopStyle = f.border_style_top.value;
+ ce.style.borderRightStyle = f.border_style_right.value;
+ ce.style.borderBottomStyle = f.border_style_bottom.value;
+ ce.style.borderLeftStyle = f.border_style_left.value;
+ } else
+ ce.style.borderStyle = f.border_style_top.value;
+
+ if (!f.border_width_same.checked) {
+ ce.style.borderTopWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : "");
+ ce.style.borderRightWidth = f.border_width_right.value + (isNum(f.border_width_right.value) ? f.border_width_right_measurement.value : "");
+ ce.style.borderBottomWidth = f.border_width_bottom.value + (isNum(f.border_width_bottom.value) ? f.border_width_bottom_measurement.value : "");
+ ce.style.borderLeftWidth = f.border_width_left.value + (isNum(f.border_width_left.value) ? f.border_width_left_measurement.value : "");
+ } else
+ ce.style.borderWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : "");
+
+ if (!f.border_color_same.checked) {
+ ce.style.borderTopColor = f.border_color_top.value;
+ ce.style.borderRightColor = f.border_color_right.value;
+ ce.style.borderBottomColor = f.border_color_bottom.value;
+ ce.style.borderLeftColor = f.border_color_left.value;
+ } else
+ ce.style.borderColor = f.border_color_top.value;
+
+ // Build list styles
+
+ ce.style.listStyleType = f.list_type.value;
+ ce.style.listStylePosition = f.list_position.value;
+ ce.style.listStyleImage = f.list_bullet_image.value != "" ? "url(" + f.list_bullet_image.value + ")" : "";
+
+ // Build positioning styles
+
+ ce.style.position = f.positioning_type.value;
+ ce.style.visibility = f.positioning_visibility.value;
+
+ if (ce.style.width == "")
+ ce.style.width = f.positioning_width.value + (isNum(f.positioning_width.value) ? f.positioning_width_measurement.value : "");
+
+ if (ce.style.height == "")
+ ce.style.height = f.positioning_height.value + (isNum(f.positioning_height.value) ? f.positioning_height_measurement.value : "");
+
+ ce.style.zIndex = f.positioning_zindex.value;
+ ce.style.overflow = f.positioning_overflow.value;
+
+ if (!f.positioning_placement_same.checked) {
+ ce.style.top = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : "");
+ ce.style.right = f.positioning_placement_right.value + (isNum(f.positioning_placement_right.value) ? f.positioning_placement_right_measurement.value : "");
+ ce.style.bottom = f.positioning_placement_bottom.value + (isNum(f.positioning_placement_bottom.value) ? f.positioning_placement_bottom_measurement.value : "");
+ ce.style.left = f.positioning_placement_left.value + (isNum(f.positioning_placement_left.value) ? f.positioning_placement_left_measurement.value : "");
+ } else {
+ s = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : "");
+ ce.style.top = s;
+ ce.style.right = s;
+ ce.style.bottom = s;
+ ce.style.left = s;
+ }
+
+ if (!f.positioning_clip_same.checked) {
+ s = "rect(";
+ s += (isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto") + " ";
+ s += (isNum(f.positioning_clip_right.value) ? f.positioning_clip_right.value + f.positioning_clip_right_measurement.value : "auto") + " ";
+ s += (isNum(f.positioning_clip_bottom.value) ? f.positioning_clip_bottom.value + f.positioning_clip_bottom_measurement.value : "auto") + " ";
+ s += (isNum(f.positioning_clip_left.value) ? f.positioning_clip_left.value + f.positioning_clip_left_measurement.value : "auto");
+ s += ")";
+
+ if (s != "rect(auto auto auto auto)")
+ ce.style.clip = s;
+ } else {
+ s = "rect(";
+ t = isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto";
+ s += t + " ";
+ s += t + " ";
+ s += t + " ";
+ s += t + ")";
+
+ if (s != "rect(auto auto auto auto)")
+ ce.style.clip = s;
+ }
+
+ ce.style.cssText = ce.style.cssText;
+}
+
+function isNum(s) {
+ return new RegExp('[0-9]+', 'g').test(s);
+}
+
+function showDisabledControls() {
+ var f = document.forms, i, a;
+
+ for (i=0; i<f.length; i++) {
+ for (a=0; a<f[i].elements.length; a++) {
+ if (f[i].elements[a].disabled)
+ tinyMCEPopup.editor.dom.addClass(f[i].elements[a], "disabled");
+ else
+ tinyMCEPopup.editor.dom.removeClass(f[i].elements[a], "disabled");
+ }
+ }
+}
+
+function fillSelect(f, s, param, dval, sep, em) {
+ var i, ar, p, se;
+
+ f = document.forms[f];
+ sep = typeof(sep) == "undefined" ? ";" : sep;
+
+ if (em)
+ addSelectValue(f, s, "", "");
+
+ ar = tinyMCEPopup.getParam(param, dval).split(sep);
+ for (i=0; i<ar.length; i++) {
+ se = false;
+
+ if (ar[i].charAt(0) == '+') {
+ ar[i] = ar[i].substring(1);
+ se = true;
+ }
+
+ p = ar[i].split('=');
+
+ if (p.length > 1) {
+ addSelectValue(f, s, p[0], p[1]);
+
+ if (se)
+ selectByValue(f, s, p[1]);
+ } else {
+ addSelectValue(f, s, p[0], p[0]);
+
+ if (se)
+ selectByValue(f, s, p[0]);
+ }
+ }
+}
+
+function toggleSame(ce, pre) {
+ var el = document.forms[0].elements, i;
+
+ if (ce.checked) {
+ el[pre + "_top"].disabled = false;
+ el[pre + "_right"].disabled = true;
+ el[pre + "_bottom"].disabled = true;
+ el[pre + "_left"].disabled = true;
+
+ if (el[pre + "_top_measurement"]) {
+ el[pre + "_top_measurement"].disabled = false;
+ el[pre + "_right_measurement"].disabled = true;
+ el[pre + "_bottom_measurement"].disabled = true;
+ el[pre + "_left_measurement"].disabled = true;
+ }
+ } else {
+ el[pre + "_top"].disabled = false;
+ el[pre + "_right"].disabled = false;
+ el[pre + "_bottom"].disabled = false;
+ el[pre + "_left"].disabled = false;
+
+ if (el[pre + "_top_measurement"]) {
+ el[pre + "_top_measurement"].disabled = false;
+ el[pre + "_right_measurement"].disabled = false;
+ el[pre + "_bottom_measurement"].disabled = false;
+ el[pre + "_left_measurement"].disabled = false;
+ }
+ }
+
+ showDisabledControls();
+}
+
+function synch(fr, to) {
+ var f = document.forms[0];
+
+ f.elements[to].value = f.elements[fr].value;
+
+ if (f.elements[fr + "_measurement"])
+ selectByValue(f, to + "_measurement", f.elements[fr + "_measurement"].value);
+}
+
+function updateTextDecorations(){
+ var el = document.forms[0].elements;
+
+ var textDecorations = ["text_underline", "text_overline", "text_linethrough", "text_blink"];
+ var noneChecked = el["text_none"].checked;
+ tinymce.each(textDecorations, function(id) {
+ el[id].disabled = noneChecked;
+ if (noneChecked) {
+ el[id].checked = false;
+ }
+ });
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/de_dlg.js
new file mode 100644
index 00000000..ad04664e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.style_dlg',{"text_lineheight":"Zeilenh\u00f6he","text_variant":"Variante","text_style":"Stil","text_weight":"Dicke","text_size":"Gr\u00f6\u00dfe","text_font":"Schriftart","text_props":"Text","positioning_tab":"Positionierung","list_tab":"Liste","border_tab":"Rahmen","box_tab":"Box","block_tab":"Block","background_tab":"Hintergrund","text_tab":"Text",apply:"\u00dcbernehmen",title:"CSS-Styles bearbeiten",clip:"Ausschnitt",placement:"Platzierung",overflow:"Verhalten bei \u00dcbergr\u00f6\u00dfe",zindex:"Z-Wert",visibility:"Sichtbar","positioning_type":"Art der Positionierung",position:"Positionierung","bullet_image":"Listenpunkt-Grafik","list_type":"Listenpunkt-Art",color:"Textfarbe",height:"H\u00f6he",width:"Breite",style:"Format",margin:"\u00c4u\u00dferer Abstand",left:"Links",bottom:"Unten",right:"Rechts",top:"Oben",same:"Alle gleich",padding:"Innerer Abstand","box_clear":"Umflie\u00dfung verhindern","box_float":"Umflie\u00dfung","box_height":"H\u00f6he","box_width":"Breite","block_display":"Umbruchverhalten","block_whitespace":"Automatischer Umbruch","block_text_indent":"Einr\u00fcckung","block_text_align":"Ausrichtung","block_vertical_alignment":"Vertikale Ausrichtung","block_letterspacing":"Buchstabenabstand","block_wordspacing":"Wortabstand","background_vpos":"Position Y","background_hpos":"Position X","background_attachment":"Wasserzeicheneffekt","background_repeat":"Wiederholung","background_image":"Hintergrundbild","background_color":"Hintergrundfarbe","text_none":"keine","text_blink":"blinkend","text_case":"Schreibung","text_striketrough":"durchgestrichen","text_underline":"unterstrichen","text_overline":"\u00fcberstrichen","text_decoration":"Gestaltung","text_color":"Farbe",text:"Text",background:"Hintergrund",block:"Block",box:"Box",border:"Rahmen",list:"Liste"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/en_dlg.js
new file mode 100644
index 00000000..9a1d4a22
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.style_dlg',{"text_lineheight":"Line Height","text_variant":"Variant","text_style":"Style","text_weight":"Weight","text_size":"Size","text_font":"Font","text_props":"Text","positioning_tab":"Positioning","list_tab":"List","border_tab":"Border","box_tab":"Box","block_tab":"Block","background_tab":"Background","text_tab":"Text",apply:"Apply",title:"Edit CSS Style",clip:"Clip",placement:"Placement",overflow:"Overflow",zindex:"Z-index",visibility:"Visibility","positioning_type":"Type",position:"Position","bullet_image":"Bullet Image","list_type":"Type",color:"Color",height:"Height",width:"Width",style:"Style",margin:"Margin",left:"Left",bottom:"Bottom",right:"Right",top:"Top",same:"Same for All",padding:"Padding","box_clear":"Clear","box_float":"Float","box_height":"Height","box_width":"Width","block_display":"Display","block_whitespace":"Whitespace","block_text_indent":"Text Indent","block_text_align":"Text Align","block_vertical_alignment":"Vertical Alignment","block_letterspacing":"Letter Spacing","block_wordspacing":"Word Spacing","background_vpos":"Vertical Position","background_hpos":"Horizontal Position","background_attachment":"Attachment","background_repeat":"Repeat","background_image":"Background Image","background_color":"Background Color","text_none":"None","text_blink":"Blink","text_case":"Case","text_striketrough":"Strikethrough","text_underline":"Underline","text_overline":"Overline","text_decoration":"Decoration","text_color":"Color",text:"Text",background:"Background",block:"Block",box:"Box",border:"Border",list:"List"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/hu_dlg.js
new file mode 100644
index 00000000..b60f3f73
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.style_dlg',{"text_lineheight":"Sormagass\u00e1g","text_variant":"V\u00e1ltozat","text_style":"St\u00edlus","text_weight":"Sz\u00e9less\u00e9g","text_size":"M\u00e9ret","text_font":"Bet\u0171t\u00edpus","text_props":"Sz\u00f6veg","positioning_tab":"Poz\u00edci\u00f3","list_tab":"Lista","border_tab":"Keret","box_tab":"Doboz","block_tab":"Blokk","background_tab":"H\u00e1tt\u00e9r","text_tab":"Sz\u00f6veg",apply:"Alkalmaz",title:"CSS st\u00edlus szerkest\u00e9se",clip:"Lev\u00e1g\u00e1s",placement:"Elhelyez\u00e9s",overflow:"Kifut\u00e1s",zindex:"Z-index",visibility:"L\u00e1that\u00f3s\u00e1g","positioning_type":"T\u00edpus",position:"Poz\u00edci\u00f3","bullet_image":"Elemk\u00e9p","list_type":"T\u00edpus",color:"Sz\u00edn",height:"Magass\u00e1g",width:"Sz\u00e9less\u00e9g",style:"St\u00edlus",margin:"Marg\u00f3",left:"Balra",bottom:"Lent",right:"Jobbra",top:"Fel\u00fcl",same:"Mindenhol ugyanaz",padding:"Bels\u0151 marg\u00f3","box_clear":"Lebeg\u00e9s (float) t\u00f6rl\u00e9se","box_float":"Lebeg\u00e9s (float)","box_height":"Magass\u00e1g","box_width":"Sz\u00e9less\u00e9g","block_display":"Megjelen\u00edt\u00e9s","block_whitespace":"T\u00e9rk\u00f6z","block_text_indent":"Sz\u00f6veg beh\u00faz\u00e1sa","block_text_align":"Sz\u00f6veg igaz\u00edt\u00e1sa","block_vertical_alignment":"F\u00fcgg\u0151leges igaz\u00edt\u00e1s","block_letterspacing":"Bet\u0171t\u00e1vols\u00e1g","block_wordspacing":"Sz\u00f3t\u00e1vols\u00e1g","background_vpos":"F\u00fcgg\u0151leges hely","background_hpos":"V\u00edzszintes hely","background_attachment":"Csatolm\u00e1ny","background_repeat":"Ism\u00e9tl\u00e9s","background_image":"H\u00e1tt\u00e9rk\u00e9p","background_color":"H\u00e1tt\u00e9rsz\u00edn","text_none":"egyik sem","text_blink":"villog\u00e1s","text_case":"eset","text_striketrough":"\u00e1th\u00fazott","text_underline":"al\u00e1h\u00fazott","text_overline":"fel\u00fclh\u00fazott","text_decoration":"dekor\u00e1ci\u00f3","text_color":"sz\u00edn",text:"Sz\u00f6veg",background:"H\u00e1tt\u00e9r",block:"Blokk",box:"Doboz",border:"Keret",list:"Lista"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/ja_dlg.js
new file mode 100644
index 00000000..4d5953cf
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.style_dlg',{"text_lineheight":"\u884c\u306e\u9ad8\u3055","text_variant":"\u5909\u5f62","text_style":"\u30b9\u30bf\u30a4\u30eb","text_weight":"\u592a\u3055","text_size":"\u5927\u304d\u3055","text_font":"\u30d5\u30a9\u30f3\u30c8","text_props":"\u30c6\u30ad\u30b9\u30c8","positioning_tab":"\u4f4d\u7f6e","list_tab":"\u7b87\u6761\u66f8\u304d","border_tab":"\u67a0\u7dda","box_tab":"\u30dc\u30c3\u30af\u30b9","block_tab":"\u30d6\u30ed\u30c3\u30af","background_tab":"\u80cc\u666f","text_tab":"\u6587\u5b57",apply:"\u9069\u7528",title:"CSS\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u7de8\u96c6",clip:"\u5207\u308a\u629c\u304d",placement:"\u914d\u7f6e",overflow:"\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc",zindex:"Z-index",visibility:"\u53ef\u8996\u6027","positioning_type":"\u914d\u7f6e\u65b9\u6cd5",position:"\u8868\u793a\u4f4d\u7f6e","bullet_image":"\u884c\u982d\u6587\u5b57","list_type":"\u7b87\u6761\u66f8\u304d\u306e\u7a2e\u985e",color:"\u8272",height:"\u9ad8\u3055",width:"\u5e45",style:"\u30b9\u30bf\u30a4\u30eb",margin:"\u30de\u30fc\u30b8\u30f3",left:"\u5de6",bottom:"\u4e0b",right:"\u53f3",top:"\u4e0a",same:"\u3059\u3079\u3066\u540c\u3058",padding:"\u30d1\u30c7\u30a3\u30f3\u30b0","box_clear":"\u56de\u308a\u8fbc\u307f\u89e3\u9664","box_float":"\u56de\u308a\u8fbc\u307f","box_height":"\u9ad8\u3055","box_width":"\u5e45","block_display":"\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4","block_whitespace":"\u7a7a\u767d\u6587\u5b57","block_text_indent":"\u30c6\u30ad\u30b9\u30c8\u306e\u5b57\u4e0b\u3052","block_text_align":"\u30c6\u30ad\u30b9\u30c8\u306e\u6c34\u5e73\u914d\u7f6e","block_vertical_alignment":"\u5782\u76f4\u914d\u7f6e","block_letterspacing":"\u6587\u5b57\u9593\u9694","block_wordspacing":"\u5358\u8a9e\u9593\u9694","background_vpos":"\u5782\u76f4\u4f4d\u7f6e","background_hpos":"\u6c34\u5e73\u4f4d\u7f6e","background_attachment":"\u6dfb\u4ed8","background_repeat":"\u7e70\u308a\u8fd4\u3057","background_image":"\u80cc\u666f\u753b\u50cf","background_color":"\u80cc\u666f\u8272","text_none":"\u306a\u3057","text_blink":"\u70b9\u6ec5","text_case":"\u5927\u6587\u5b57/\u5c0f\u6587\u5b57","text_striketrough":"\u6253\u6d88\u3057\u7dda","text_underline":"\u4e0b\u7dda","text_overline":"\u4e0a\u7dda","text_decoration":"\u88c5\u98fe","text_color":"\u8272",text:"\u6587\u5b57",background:"\u80cc\u666f",block:"\u30d6\u30ed\u30c3\u30af",box:"\u30dc\u30c3\u30af\u30b9",border:"\u67a0\u7dda",list:"\u7b87\u6761\u66f8\u304d"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/props.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/props.htm
new file mode 100755
index 00000000..7dc087a3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/props.htm
@@ -0,0 +1,845 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#style_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="js/props.js"></script>
+ <link href="css/props.css" rel="stylesheet" type="text/css" />
+</head>
+
+<body id="styleprops" style="display: none" role="application" aria-labelledby="app_title">
+<span id="app_title" style="display:none">{#style_dlg.title}</span>
+<form onsubmit="updateAction();return false;" action="#">
+<div class="tabs">
+ <ul>
+ <li id="text_tab" class="current" aria-controls="text_panel"><span><a href="javascript:mcTabs.displayTab('text_tab','text_panel');" onMouseDown="return false;">{#style_dlg.text_tab}</a></span></li>
+ <li id="background_tab" aria-controls="background_panel"><span><a href="javascript:mcTabs.displayTab('background_tab','background_panel');" onMouseDown="return false;">{#style_dlg.background_tab}</a></span></li>
+ <li id="block_tab" aria-controls="block_panel"><span><a href="javascript:mcTabs.displayTab('block_tab','block_panel');" onMouseDown="return false;">{#style_dlg.block_tab}</a></span></li>
+ <li id="box_tab" aria-controls="box_panel"><span><a href="javascript:mcTabs.displayTab('box_tab','box_panel');" onMouseDown="return false;">{#style_dlg.box_tab}</a></span></li>
+ <li id="border_tab" aria-controls="border_panel"><span><a href="javascript:mcTabs.displayTab('border_tab','border_panel');" onMouseDown="return false;">{#style_dlg.border_tab}</a></span></li>
+ <li id="list_tab" aria-controls="list_panel"><span><a href="javascript:mcTabs.displayTab('list_tab','list_panel');" onMouseDown="return false;">{#style_dlg.list_tab}</a></span></li>
+ <li id="positioning_tab" aria-controls="positioning_panel"><span><a href="javascript:mcTabs.displayTab('positioning_tab','positioning_panel');" onMouseDown="return false;">{#style_dlg.positioning_tab}</a></span></li>
+ </ul>
+</div>
+
+<div class="panel_wrapper">
+<div id="text_panel" class="panel current">
+ <fieldset>
+ <legend>{#style_dlg.text}</legend>
+ <table role="presentation" border="0" width="100%">
+ <tr>
+ <td><label for="text_font">{#style_dlg.text_font}</label></td>
+ <td colspan="3">
+ <select id="text_font" name="text_font" class="mceEditableSelect mceFocus"></select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="text_size">{#style_dlg.text_size}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="text_size" name="text_size" class="mceEditableSelect"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="text_size_measurement_label" for="text_size_measurement" style="display: none; visibility: hidden;">Text Size Measurement Unit</label>
+ <select id="text_size_measurement" name="text_size_measurement" aria-labelledby="text_size_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td><label for="text_weight">{#style_dlg.text_weight}</label></td>
+ <td>
+ <select id="text_weight" name="text_weight"></select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="text_style">{#style_dlg.text_style}</label></td>
+ <td>
+ <select id="text_style" name="text_style" class="mceEditableSelect"></select>
+ </td>
+ <td><label for="text_variant">{#style_dlg.text_variant}</label></td>
+ <td>
+ <select id="text_variant" name="text_variant"></select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="text_lineheight">{#style_dlg.text_lineheight}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td>
+ <select id="text_lineheight" name="text_lineheight" class="mceEditableSelect"></select>
+ </td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="text_lineheight_measurement_label" for="text_lineheight_measurement" style="display: none; visibility: hidden;">Line Height Measurement Unit</label>
+ <select id="text_lineheight_measurement" name="text_lineheight_measurement" aria-labelledby="text_lineheight_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td><label for="text_case">{#style_dlg.text_case}</label></td>
+ <td>
+ <select id="text_case" name="text_case"></select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="text_color">{#style_dlg.text_color}</label></td>
+ <td colspan="2">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="text_color" name="text_color" type="text" value="" size="9" onChange="updateColor('text_color_pick','text_color');" /></td>
+ <td id="text_color_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" style="vertical-align: top; padding-top: 3px;">{#style_dlg.text_decoration}</td>
+ <td colspan="2">
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="text_underline" name="text_underline" class="checkbox" type="checkbox" /></td>
+ <td><label for="text_underline">{#style_dlg.text_underline}</label></td>
+ </tr>
+ <tr>
+ <td><input id="text_overline" name="text_overline" class="checkbox" type="checkbox" /></td>
+ <td><label for="text_overline">{#style_dlg.text_overline}</label></td>
+ </tr>
+ <tr>
+ <td><input id="text_linethrough" name="text_linethrough" class="checkbox" type="checkbox" /></td>
+ <td><label for="text_linethrough">{#style_dlg.text_striketrough}</label></td>
+ </tr>
+ <tr>
+ <td><input id="text_blink" name="text_blink" class="checkbox" type="checkbox" /></td>
+ <td><label for="text_blink">{#style_dlg.text_blink}</label></td>
+ </tr>
+ <tr>
+ <td><input id="text_none" name="text_none" class="checkbox" type="checkbox" onclick="updateTextDecorations();"/></td>
+ <td><label for="text_none">{#style_dlg.text_none}</label></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+
+<div id="background_panel" class="panel">
+ <fieldset>
+ <legend>{#style_dlg.background}</legend>
+ <table role="presentation" border="0">
+ <tr>
+ <td><label for="background_color">{#style_dlg.background_color}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="background_color" name="background_color" type="text" value="" size="9" onChange="updateColor('background_color_pick','background_color');" /></td>
+ <td id="background_color_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="background_image">{#style_dlg.background_image}</label></td>
+ <td><table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="background_image" name="background_image" type="text" /></td>
+ <td id="background_image_browser">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="background_repeat">{#style_dlg.background_repeat}</label></td>
+ <td><select id="background_repeat" name="background_repeat" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="background_attachment">{#style_dlg.background_attachment}</label></td>
+ <td><select id="background_attachment" name="background_attachment" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="background_hpos">{#style_dlg.background_hpos}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="background_hpos" name="background_hpos" class="mceEditableSelect"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="background_hpos_measurement_label" for="background_hpos_measurement" style="display: none; visibility: hidden;">Horizontal position measurement unit</label>
+ <select id="background_hpos_measurement" name="background_hpos_measurement" aria-labelledby="background_hpos_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="background_vpos">{#style_dlg.background_vpos}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="background_vpos" name="background_vpos" class="mceEditableSelect"></select></td>
+ <td>&nbsp;</td>
+ <td>
+
+ <label id="background_vpos_measurement_label" for="background_vpos_measurement" style="display: none; visibility: hidden;">Vertical position measurement unit</label>
+ <select id="background_vpos_measurement" name="background_vpos_measurement" aria-labelledby="background_vpos_measurement_label">></select></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+
+<div id="block_panel" class="panel">
+ <fieldset>
+ <legend>{#style_dlg.block}</legend>
+ <table role="presentation" border="0">
+ <tr>
+ <td><label for="block_wordspacing">{#style_dlg.block_wordspacing}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="block_wordspacing" name="block_wordspacing" class="mceEditableSelect"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="block_wordspacing_measurement_label" for="block_wordspacing_measurement" style="display: none; visibility: hidden;">Word spacing measurement unit</label>
+ <select id="block_wordspacing_measurement" name="block_wordspacing_measurement" aria-labelledby="block_wordspacing_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="block_letterspacing">{#style_dlg.block_letterspacing}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="block_letterspacing" name="block_letterspacing" class="mceEditableSelect"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="block_letterspacing_measurement_label" for="block_letterspacing_measurement" style="display: none; visibility: hidden;">Letter spacing measurement unit</label>
+ <select id="block_letterspacing_measurement" name="block_letterspacing_measurement" aria-labelledby="block_letterspacing_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="block_vertical_alignment">{#style_dlg.block_vertical_alignment}</label></td>
+ <td><select id="block_vertical_alignment" name="block_vertical_alignment" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="block_text_align">{#style_dlg.block_text_align}</label></td>
+ <td><select id="block_text_align" name="block_text_align" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="block_text_indent">{#style_dlg.block_text_indent}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="block_text_indent" name="block_text_indent" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="block_text_indent_measurement_label" for="block_text_indent_measurement" style="display: none; visibility: hidden;">Text Indent Measurement Unit</label>
+
+ <select id="block_text_indent_measurement" name="block_text_indent_measurement" aria-labelledby="block_text_indent_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="block_whitespace">{#style_dlg.block_whitespace}</label></td>
+ <td><select id="block_whitespace" name="block_whitespace" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="block_display">{#style_dlg.block_display}</label></td>
+ <td><select id="block_display" name="block_display" class="mceEditableSelect"></select></td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+
+<div id="box_panel" class="panel">
+ <fieldset>
+ <legend>{#style_dlg.box}</legend>
+ <table role="presentation" border="0">
+ <tr>
+ <td><label for="box_width">{#style_dlg.box_width}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_width" name="box_width" class="mceEditableSelect" onChange="synch('box_width','positioning_width');" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_width_measurement_label" for="box_width_measurement" style="display: none; visibility: hidden;">Box Width Measurement Unit</label>
+ <select id="box_width_measurement" name="box_width_measurement" aria-labelledby="box_width_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td>&nbsp;&nbsp;&nbsp;<label for="box_float">{#style_dlg.box_float}</label></td>
+ <td><select id="box_float" name="box_float" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="box_height">{#style_dlg.box_height}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_height" name="box_height" class="mceEditableSelect" onChange="synch('box_height','positioning_height');" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_height_measurement_label" for="box_height_measurement" style="display: none; visibility: hidden;">Box Height Measurement Unit</label>
+ <select id="box_height_measurement" name="box_height_measurement" aria-labelledby="box_height_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td>&nbsp;&nbsp;&nbsp;<label for="box_clear">{#style_dlg.box_clear}</label></td>
+ <td><select id="box_clear" name="box_clear" class="mceEditableSelect"></select></td>
+ </tr>
+ </table>
+ </fieldset>
+
+<div style="float: left; width: 49%">
+ <fieldset>
+ <legend>{#style_dlg.padding}</legend>
+
+ <table role="presentation" border="0">
+ <tr>
+ <td>&nbsp;</td>
+ <td><input type="checkbox" id="box_padding_same" name="box_padding_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_padding');" /> <label for="box_padding_same">{#style_dlg.same}</label></td>
+ </tr>
+ <tr>
+ <td><label for="box_padding_top">{#style_dlg.top}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_padding_top" name="box_padding_top" class="mceEditableSelect" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_padding_top_measurement_label" for="box_padding_top_measurement" style="display: none; visibility: hidden;">Padding Top Measurement Unit</label>
+ <select id="box_padding_top_measurement" name="box_padding_top_measurement" aria-labelledby="box_padding_top_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="box_padding_right">{#style_dlg.right}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_padding_right" name="box_padding_right" class="mceEditableSelect" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_padding_right_measurement_label" for="box_padding_right_measurement" style="display: none; visibility: hidden;">Padding Right Measurement Unit</label>
+ <select id="box_padding_right_measurement" name="box_padding_right_measurement" disabled="disabled" aria-labelledby="box_padding_right_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="box_padding_bottom">{#style_dlg.bottom}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_padding_bottom" name="box_padding_bottom" class="mceEditableSelect" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_padding_bottom_measurement_label" for="box_padding_bottom_measurement" style="display: none; visibility: hidden;">Padding Bottom Measurement Unit</label>
+ <select id="box_padding_bottom_measurement" name="box_padding_bottom_measurement" disabled="disabled" aria-labelledby="box_padding_bottom_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="box_padding_left">{#style_dlg.left}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_padding_left" name="box_padding_left" class="mceEditableSelect" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_padding_left_measurement_label" for="box_padding_left_measurement" style="display: none; visibility: hidden;">Padding Left Measurement Unit</label>
+ <select id="box_padding_left_measurement" name="box_padding_left_measurement" disabled="disabled" aria-labelledby="box_padding_left_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+
+<div style="float: right; width: 49%">
+ <fieldset>
+ <legend>{#style_dlg.margin}</legend>
+
+ <table role="presentation" border="0">
+ <tr>
+ <td>&nbsp;</td>
+ <td><input type="checkbox" id="box_margin_same" name="box_margin_same" class="checkbox" checked="checked" onClick="toggleSame(this,'box_margin');" /> <label for="box_margin_same">{#style_dlg.same}</label></td>
+ </tr>
+ <tr>
+ <td><label for="box_margin_top">{#style_dlg.top}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_margin_top" name="box_margin_top" class="mceEditableSelect" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_margin_top_measurement_label" for="box_margin_top_measurement" style="display: none; visibility: hidden;">Margin Top Measurement Unit</label>
+ <select id="box_margin_top_measurement" name="box_margin_top_measurement" aria-labelledby="box_margin_top_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="box_margin_right">{#style_dlg.right}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_margin_right" name="box_margin_right" class="mceEditableSelect" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_margin_right_measurement_label" for="box_margin_right_measurement" style="display: none; visibility: hidden;">Margin Right Measurement Unit</label>
+ <select id="box_margin_right_measurement" name="box_margin_right_measurement" disabled="disabled" aria-labelledby="box_margin_right_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="box_margin_bottom">{#style_dlg.bottom}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_margin_bottom" name="box_margin_bottom" class="mceEditableSelect" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_margin_bottom_measurement_label" for="box_margin_bottom_measurement" style="display: none; visibility: hidden;">Margin Bottom Measurement Unit</label>
+ <select id="box_margin_bottom_measurement" name="box_margin_bottom_measurement" disabled="disabled" aria-labelledby="box_margin_bottom_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="box_margin_left">{#style_dlg.left}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="box_margin_left" name="box_margin_left" class="mceEditableSelect" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="box_margin_left_measurement_label" for="box_margin_left_measurement" style="display: none; visibility: hidden;">Margin Left Measurement Unit</label>
+ <select id="box_margin_left_measurement" name="box_margin_left_measurement" disabled="disabled" aria-labelledby="box_margin_left_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+<br style="clear: both" />
+</div>
+
+<div id="border_panel" class="panel">
+ <fieldset>
+ <legend>{#style_dlg.border}</legend>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%">
+ <tr>
+ <td class="tdelim">&nbsp;</td>
+ <td class="tdelim delim">&nbsp;</td>
+ <td class="tdelim">{#style_dlg.style}</td>
+ <td class="tdelim delim">&nbsp;</td>
+ <td class="tdelim">{#style_dlg.width}</td>
+ <td class="tdelim delim">&nbsp;</td>
+ <td class="tdelim">{#style_dlg.color}</td>
+ </tr>
+
+ <tr>
+ <td>&nbsp;</td>
+ <td class="delim">&nbsp;</td>
+ <td><input type="checkbox" id="border_style_same" name="border_style_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_style');" /> <label for="border_style_same">{#style_dlg.same}</label></td>
+ <td class="delim">&nbsp;</td>
+ <td><input type="checkbox" id="border_width_same" name="border_width_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_width');" /> <label for="border_width_same">{#style_dlg.same}</label></td>
+ <td class="delim">&nbsp;</td>
+ <td><input type="checkbox" id="border_color_same" name="border_color_same" class="checkbox" checked="checked" onClick="toggleSame(this,'border_color');" /> <label for="border_color_same">{#style_dlg.same}</label></td>
+ </tr>
+
+ <tr>
+ <td>{#style_dlg.top}</td>
+ <td class="delim">&nbsp;</td>
+ <td><select id="border_style_top" name="border_style_top" class="mceEditableSelect"></select></td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="border_width_top" name="border_width_top" class="mceEditableSelect"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="border_width_top_measurement_label" for="border_width_top_measurement" style="display: none; visibility: hidden;">Width top Measurement Unit</label>
+ <select id="border_width_top_measurement" name="border_width_top_measurement" aria-labelledby="border_width_top_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="border_color_top" name="border_color_top" type="text" value="" size="9" onChange="updateColor('border_color_top_pick','border_color_top');" /></td>
+ <td id="border_color_top_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td>{#style_dlg.right}</td>
+ <td class="delim">&nbsp;</td>
+ <td><select id="border_style_right" name="border_style_right" class="mceEditableSelect" disabled="disabled"></select></td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="border_width_right" name="border_width_right" class="mceEditableSelect" disabled="disabled"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="border_width_right_measurement_label" for="border_width_right_measurement" style="display: none; visibility: hidden;">Width Right Measurement Unit</label>
+ <select id="border_width_right_measurement" name="border_width_right_measurement" disabled="disabled" aria-labelledby="border_width_right_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="border_color_right" name="border_color_right" type="text" value="" size="9" onChange="updateColor('border_color_right_pick','border_color_right');" disabled="disabled" /></td>
+ <td id="border_color_right_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td>{#style_dlg.bottom}</td>
+ <td class="delim">&nbsp;</td>
+ <td><select id="border_style_bottom" name="border_style_bottom" class="mceEditableSelect" disabled="disabled"></select></td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="border_width_bottom" name="border_width_bottom" class="mceEditableSelect" disabled="disabled"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="border_width_bottom_measurement_label" for="border_width_bottom_measurement" style="display: none; visibility: hidden;">Width Bottom Measurement Unit</label>
+ <select id="border_width_bottom_measurement" name="border_width_bottom_measurement" disabled="disabled" aria-labelledby="border_width_bottom_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="border_color_bottom" name="border_color_bottom" type="text" value="" size="9" onChange="updateColor('border_color_bottom_pick','border_color_bottom');" disabled="disabled" /></td>
+ <td id="border_color_bottom_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td>{#style_dlg.left}</td>
+ <td class="delim">&nbsp;</td>
+ <td><select id="border_style_left" name="border_style_left" class="mceEditableSelect" disabled="disabled"></select></td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><select id="border_width_left" name="border_width_left" class="mceEditableSelect" disabled="disabled"></select></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="border_width_left_measurement_label" for="border_width_left_measurement" style="display: none; visibility: hidden;">Width Left Measurement Unit</label>
+ <select id="border_width_left_measurement" name="border_width_left_measurement" disabled="disabled" aria-labelledby="border_width_left_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td class="delim">&nbsp;</td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="border_color_left" name="border_color_left" type="text" value="" size="9" onChange="updateColor('border_color_left_pick','border_color_left');" disabled="disabled" /></td>
+ <td id="border_color_left_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+
+<div id="list_panel" class="panel">
+<fieldset>
+ <legend>{#style_dlg.list}</legend>
+ <table role="presentation" border="0">
+ <tr>
+ <td><label for="list_type">{#style_dlg.list_type}</label></td>
+ <td><select id="list_type" name="list_type" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="list_bullet_image">{#style_dlg.bullet_image}</label></td>
+ <td><input id="list_bullet_image" name="list_bullet_image" type="text" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="list_position">{#style_dlg.position}</label></td>
+ <td><select id="list_position" name="list_position" class="mceEditableSelect"></select></td>
+ </tr>
+ </table>
+</fieldset>
+</div>
+
+<div id="positioning_panel" class="panel">
+<fieldset>
+ <legend>{#style_dlg.position}</legend>
+<table role="presentation" border="0">
+ <tr>
+ <td><label for="positioning_type">{#style_dlg.positioning_type}</label></td>
+ <td><select id="positioning_type" name="positioning_type" class="mceEditableSelect"></select></td>
+ <td>&nbsp;&nbsp;&nbsp;<label for="positioning_visibility">{#style_dlg.visibility}</label></td>
+ <td><select id="positioning_visibility" name="positioning_visibility" class="mceEditableSelect"></select></td>
+ </tr>
+
+ <tr>
+ <td><label for="positioning_width">{#style_dlg.width}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_width" name="positioning_width" onChange="synch('positioning_width','box_width');" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_width_measurement_label" for="positioning_width_measurement" style="display: none; visibility: hidden;">Positioning width Measurement Unit</label>
+ <select id="positioning_width_measurement" name="positioning_width_measurement" aria-labelledby="positioning_width_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td>&nbsp;&nbsp;&nbsp;<label for="positioning_zindex">{#style_dlg.zindex}</label></td>
+ <td><input type="text" id="positioning_zindex" name="positioning_zindex" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="positioning_height">{#style_dlg.height}</label></td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_height" name="positioning_height" onChange="synch('positioning_height','box_height');" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_height_measurement_label" for="positioning_height_measurement" style="display: none; visibility: hidden;">Positioning Height Measurement Unit</label>
+ <select id="positioning_height_measurement" name="positioning_height_measurement" aria-labelledby="positioning_height_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td>&nbsp;&nbsp;&nbsp;<label for="positioning_overflow">{#style_dlg.overflow}</label></td>
+ <td><select id="positioning_overflow" name="positioning_overflow" class="mceEditableSelect"></select></td>
+ </tr>
+</table>
+</fieldset>
+
+<div style="float: left; width: 49%">
+ <fieldset>
+ <legend>{#style_dlg.placement}</legend>
+
+ <table role="presentation" border="0">
+ <tr>
+ <td>&nbsp;</td>
+ <td><input type="checkbox" id="positioning_placement_same" name="positioning_placement_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_placement');" /> <label for="positioning_placement_same">{#style_dlg.same}</label></td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.top}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_placement_top" name="positioning_placement_top" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_placement_top_measurement_label" for="positioning_placement_top_measurement" style="display: none; visibility: hidden;">Placement Top Measurement Unit</label>
+ <select id="positioning_placement_top_measurement" name="positioning_placement_top_measurement" aria-labelledby="positioning_placement_top_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.right}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_placement_right" name="positioning_placement_right" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_placement_right_measurement_label" for="positioning_placement_right_measurement" style="display: none; visibility: hidden;">Placement Right Measurement Unit</label>
+ <select id="positioning_placement_right_measurement" name="positioning_placement_right_measurement" disabled="disabled" aria-labelledby="positioning_placement_right_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.bottom}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_placement_bottom" name="positioning_placement_bottom" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_placement_bottom_measurement_label" for="positioning_placement_bottom_measurement" style="display: none; visibility: hidden;">Placement Bottom Measurement Unit</label>
+ <select id="positioning_placement_bottom_measurement" name="positioning_placement_bottom_measurement" disabled="disabled" aria-labelledby="positioning_placement_bottom_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.left}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_placement_left" name="positioning_placement_left" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_placement_left_measurement_label" for="positioning_placement_left_measurement" style="display: none; visibility: hidden;">Placement Left Measurement Unit</label>
+ <select id="positioning_placement_left_measurement" name="positioning_placement_left_measurement" disabled="disabled" aria-labelledby="positioning_placement_left_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+
+<div style="float: right; width: 49%">
+ <fieldset>
+ <legend>{#style_dlg.clip}</legend>
+
+ <table role="presentation" border="0">
+ <tr>
+ <td>&nbsp;</td>
+ <td><input type="checkbox" id="positioning_clip_same" name="positioning_clip_same" class="checkbox" checked="checked" onClick="toggleSame(this,'positioning_clip');" /> <label for="positioning_clip_same">{#style_dlg.same}</label></td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.top}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_clip_top" name="positioning_clip_top" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_clip_top_measurement_label" for="positioning_clip_top_measurement" style="display: none; visibility: hidden;">Clip Top Measurement Unit</label>
+ <select id="positioning_clip_top_measurement" name="positioning_clip_top_measurement" aria-labelledby="positioning_clip_top_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.right}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_clip_right" name="positioning_clip_right" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_clip_right_measurement_label" for="positioning_clip_right_measurement" style="display: none; visibility: hidden;">Clip Right Measurement Unit</label>
+ <select id="positioning_clip_right_measurement" name="positioning_clip_right_measurement" disabled="disabled" aria-labelledby="positioning_clip_right_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.bottom}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_clip_bottom" name="positioning_clip_bottom" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_clip_bottom_measurement_label" for="positioning_clip_bottom_measurement" style="display: none; visibility: hidden;">Clip Bottom Measurement Unit</label>
+ <select id="positioning_clip_bottom_measurement" name="positioning_clip_bottom_measurement" disabled="disabled" aria-labelledby="positioning_clip_bottom_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>{#style_dlg.left}</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input type="text" id="positioning_clip_left" name="positioning_clip_left" disabled="disabled" /></td>
+ <td>&nbsp;</td>
+ <td>
+ <label id="positioning_clip_left_measurement_label" for="positioning_clip_left_measurement" style="display: none; visibility: hidden;">Clip Left Measurement Unit</label>
+ <select id="positioning_clip_left_measurement" name="positioning_clip_left_measurement" disabled="disabled" aria-labelledby="positioning_clip_left_measurement_label"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+</div>
+<br style="clear: both" />
+</div>
+</div>
+
+<div class="panel_toggle_insert_span">
+ <input type="checkbox" class="checkbox" id="toggle_insert_span" name="toggle_insert_span" onClick="toggleApplyAction();" />
+ <label for="toggle_insert_span">{#style_dlg.toggle_insert_span}</label>
+</div>
+
+<div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" class="button" id="apply" name="apply" value="{#style_dlg.apply}" onClick="applyAction();" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onClick="tinyMCEPopup.close();" />
+</div>
+</form>
+
+<div style="display: none">
+ <div id="container"></div>
+</div>
+
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/readme.txt b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/readme.txt
new file mode 100755
index 00000000..5bac3020
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/style/readme.txt
@@ -0,0 +1,19 @@
+Edit CSS Style plug-in notes
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Unlike WYSIWYG editor functionality that operates only on the selected text,
+typically by inserting new HTML elements with the specified styles.
+This plug-in operates on the HTML blocks surrounding the selected text.
+No new HTML elements are created.
+
+This plug-in only operates on the surrounding blocks and not the nearest
+parent node. This means that if a block encapsulates a node,
+e.g <p><span>text</span></p>, then only the styles in the block are
+recognized, not those in the span.
+
+When selecting text that includes multiple blocks at the same level (peers),
+this plug-in accumulates the specified styles in all of the surrounding blocks
+and populates the dialogue checkboxes accordingly. There is no differentiation
+between styles set in all the blocks versus styles set in some of the blocks.
+
+When the [Update] or [Apply] buttons are pressed, the styles selected in the
+checkboxes are applied to all blocks that surround the selected text.
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin.js
new file mode 100644
index 00000000..2c512916
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var c=tinymce.DOM,a=tinymce.dom.Event,d=tinymce.each,b=tinymce.explode;tinymce.create("tinymce.plugins.TabFocusPlugin",{init:function(f,g){function e(i,j){if(j.keyCode===9){return a.cancel(j)}}function h(l,p){var j,m,o,n,k;function q(t){n=c.select(":input:enabled,*[tabindex]:not(iframe)");function s(v){return v.nodeName==="BODY"||(v.type!="hidden"&&!(v.style.display=="none")&&!(v.style.visibility=="hidden")&&s(v.parentNode))}function i(v){return v.attributes.tabIndex.specified||v.nodeName=="INPUT"||v.nodeName=="TEXTAREA"}function u(){return tinymce.isIE6||tinymce.isIE7}function r(v){return((!u()||i(v)))&&v.getAttribute("tabindex")!="-1"&&s(v)}d(n,function(w,v){if(w.id==l.id){j=v;return false}});if(t>0){for(m=j+1;m<n.length;m++){if(r(n[m])){return n[m]}}}else{for(m=j-1;m>=0;m--){if(r(n[m])){return n[m]}}}return null}if(p.keyCode===9){k=b(l.getParam("tab_focus",l.getParam("tabfocus_elements",":prev,:next")));if(k.length==1){k[1]=k[0];k[0]=":prev"}if(p.shiftKey){if(k[0]==":prev"){n=q(-1)}else{n=c.get(k[0])}}else{if(k[1]==":next"){n=q(1)}else{n=c.get(k[1])}}if(n){if(n.id&&(l=tinymce.get(n.id||n.name))){l.focus()}else{window.setTimeout(function(){if(!tinymce.isWebKit){window.focus()}n.focus()},10)}return a.cancel(p)}}}f.onKeyUp.add(e);if(tinymce.isGecko){f.onKeyPress.add(h);f.onKeyDown.add(e)}else{f.onKeyDown.add(h)}},getInfo:function(){return{longname:"Tabfocus",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("tabfocus",tinymce.plugins.TabFocusPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin_src.js
new file mode 100644
index 00000000..94f45320
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/tabfocus/editor_plugin_src.js
@@ -0,0 +1,122 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, explode = tinymce.explode;
+
+ tinymce.create('tinymce.plugins.TabFocusPlugin', {
+ init : function(ed, url) {
+ function tabCancel(ed, e) {
+ if (e.keyCode === 9)
+ return Event.cancel(e);
+ }
+
+ function tabHandler(ed, e) {
+ var x, i, f, el, v;
+
+ function find(d) {
+ el = DOM.select(':input:enabled,*[tabindex]:not(iframe)');
+
+ function canSelectRecursive(e) {
+ return e.nodeName==="BODY" || (e.type != 'hidden' &&
+ !(e.style.display == "none") &&
+ !(e.style.visibility == "hidden") && canSelectRecursive(e.parentNode));
+ }
+ function canSelectInOldIe(el) {
+ return el.attributes["tabIndex"].specified || el.nodeName == "INPUT" || el.nodeName == "TEXTAREA";
+ }
+ function isOldIe() {
+ return tinymce.isIE6 || tinymce.isIE7;
+ }
+ function canSelect(el) {
+ return ((!isOldIe() || canSelectInOldIe(el))) && el.getAttribute("tabindex") != '-1' && canSelectRecursive(el);
+ }
+
+ each(el, function(e, i) {
+ if (e.id == ed.id) {
+ x = i;
+ return false;
+ }
+ });
+ if (d > 0) {
+ for (i = x + 1; i < el.length; i++) {
+ if (canSelect(el[i]))
+ return el[i];
+ }
+ } else {
+ for (i = x - 1; i >= 0; i--) {
+ if (canSelect(el[i]))
+ return el[i];
+ }
+ }
+
+ return null;
+ }
+
+ if (e.keyCode === 9) {
+ v = explode(ed.getParam('tab_focus', ed.getParam('tabfocus_elements', ':prev,:next')));
+
+ if (v.length == 1) {
+ v[1] = v[0];
+ v[0] = ':prev';
+ }
+
+ // Find element to focus
+ if (e.shiftKey) {
+ if (v[0] == ':prev')
+ el = find(-1);
+ else
+ el = DOM.get(v[0]);
+ } else {
+ if (v[1] == ':next')
+ el = find(1);
+ else
+ el = DOM.get(v[1]);
+ }
+
+ if (el) {
+ if (el.id && (ed = tinymce.get(el.id || el.name)))
+ ed.focus();
+ else
+ window.setTimeout(function() {
+ if (!tinymce.isWebKit)
+ window.focus();
+ el.focus();
+ }, 10);
+
+ return Event.cancel(e);
+ }
+ }
+ }
+
+ ed.onKeyUp.add(tabCancel);
+
+ if (tinymce.isGecko) {
+ ed.onKeyPress.add(tabHandler);
+ ed.onKeyDown.add(tabCancel);
+ } else
+ ed.onKeyDown.add(tabHandler);
+
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Tabfocus',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('tabfocus', tinymce.plugins.TabFocusPlugin);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/cell.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/cell.htm
new file mode 100755
index 00000000..a72a8d69
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/cell.htm
@@ -0,0 +1,180 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#table_dlg.cell_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/cell.js"></script>
+ <link href="css/cell.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="tablecell" style="display: none" role="application">
+ <form onsubmit="updateAction();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#table_dlg.general_props}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td><label for="align">{#table_dlg.align}</label></td>
+ <td>
+ <select id="align" name="align" class="mceFocus">
+ <option value="">{#not_set}</option>
+ <option value="center">{#table_dlg.align_middle}</option>
+ <option value="left">{#table_dlg.align_left}</option>
+ <option value="right">{#table_dlg.align_right}</option>
+ </select>
+ </td>
+
+ <td><label for="celltype">{#table_dlg.cell_type}</label></td>
+ <td>
+ <select id="celltype" name="celltype">
+ <option value="td">{#table_dlg.td}</option>
+ <option value="th">{#table_dlg.th}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="valign">{#table_dlg.valign}</label></td>
+ <td>
+ <select id="valign" name="valign">
+ <option value="">{#not_set}</option>
+ <option value="top">{#table_dlg.align_top}</option>
+ <option value="middle">{#table_dlg.align_middle}</option>
+ <option value="bottom">{#table_dlg.align_bottom}</option>
+ </select>
+ </td>
+
+ <td><label for="scope">{#table_dlg.scope}</label></td>
+ <td>
+ <select id="scope" name="scope">
+ <option value="">{#not_set}</option>
+ <option value="col">{#table.col}</option>
+ <option value="row">{#table.row}</option>
+ <option value="rowgroup">{#table_dlg.rowgroup}</option>
+ <option value="colgroup">{#table_dlg.colgroup}</option>
+ </select>
+ </td>
+
+ </tr>
+
+ <tr>
+ <td><label for="width">{#table_dlg.width}</label></td>
+ <td><input id="width" name="width" type="text" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
+
+ <td><label for="height">{#table_dlg.height}</label></td>
+ <td><input id="height" name="height" type="text" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
+ </tr>
+
+ <tr id="styleSelectRow">
+ <td><label for="class">{#class_name}</label></td>
+ <td colspan="3">
+ <select id="class" name="class" class="mceEditableSelect">
+ <option value="" selected="selected">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="advanced_panel" class="panel">
+ <fieldset>
+ <legend>{#table_dlg.advanced_props}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="column1"><label for="id">{#table_dlg.id}</label></td>
+ <td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="style">{#table_dlg.style}</label></td>
+ <td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
+ <td>
+ <select id="dir" name="dir" style="width: 200px">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#table_dlg.ltr}</option>
+ <option value="rtl">{#table_dlg.rtl}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" style="width: 200px" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
+ <td id="backgroundimagebrowsercontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr role="group" aria-labelledby="bordercolor_label">
+ <td class="column1"><label id="bordercolor_label" for="bordercolor">{#table_dlg.bordercolor}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
+ <td id="bordercolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr role="group" aria-labelledby="bgcolor_label">
+ <td class="column1"><label id="bgcolor_label" for="bgcolor">{#table_dlg.bgcolor}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
+ <td id="bgcolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <div>
+ <select id="action" name="action">
+ <option value="cell">{#table_dlg.cell_cell}</option>
+ <option value="row">{#table_dlg.cell_row}</option>
+ <option value="col">{#table_dlg.cell_col}</option>
+ <option value="all">{#table_dlg.cell_all}</option>
+ </select>
+ </div>
+
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/cell.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/cell.css
new file mode 100755
index 00000000..a067ecdf
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/cell.css
@@ -0,0 +1,17 @@
+/* CSS file for cell dialog in the table plugin */
+
+.panel_wrapper div.current {
+ height: 200px;
+}
+
+.advfield {
+ width: 200px;
+}
+
+#action {
+ margin-bottom: 3px;
+}
+
+#class {
+ width: 150px;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/row.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/row.css
new file mode 100755
index 00000000..1f7755da
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/row.css
@@ -0,0 +1,25 @@
+/* CSS file for row dialog in the table plugin */
+
+.panel_wrapper div.current {
+ height: 200px;
+}
+
+.advfield {
+ width: 200px;
+}
+
+#action {
+ margin-bottom: 3px;
+}
+
+#rowtype,#align,#valign,#class,#height {
+ width: 150px;
+}
+
+#height {
+ width: 50px;
+}
+
+.col2 {
+ padding-left: 20px;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/table.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/table.css
new file mode 100755
index 00000000..d11c3f69
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/css/table.css
@@ -0,0 +1,13 @@
+/* CSS file for table dialog in the table plugin */
+
+.panel_wrapper div.current {
+ height: 245px;
+}
+
+.advfield {
+ width: 200px;
+}
+
+#class {
+ width: 150px;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin.js
new file mode 100755
index 00000000..c4c3264e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin.js
@@ -0,0 +1 @@
+(function(d){var e=d.each;function c(g,h){var j=h.ownerDocument,f=j.createRange(),k;f.setStartBefore(h);f.setEnd(g.endContainer,g.endOffset);k=j.createElement("body");k.appendChild(f.cloneContents());return k.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}function a(g,f){return parseInt(g.getAttribute(f)||1)}function b(H,G,K){var g,L,D,o;t();o=G.getParent(K.getStart(),"th,td");if(o){L=F(o);D=I();o=z(L.x,L.y)}function A(N,M){N=N.cloneNode(M);N.removeAttribute("id");return N}function t(){var M=0;g=[];e(["thead","tbody","tfoot"],function(N){var O=G.select("> "+N+" tr",H);e(O,function(P,Q){Q+=M;e(G.select("> td, > th",P),function(W,R){var S,T,U,V;if(g[Q]){while(g[Q][R]){R++}}U=a(W,"rowspan");V=a(W,"colspan");for(T=Q;T<Q+U;T++){if(!g[T]){g[T]=[]}for(S=R;S<R+V;S++){g[T][S]={part:N,real:T==Q&&S==R,elm:W,rowspan:U,colspan:V}}}})});M+=O.length})}function z(M,O){var N;N=g[O];if(N){return N[M]}}function s(O,M,N){if(O){N=parseInt(N);if(N===1){O.removeAttribute(M,1)}else{O.setAttribute(M,N,1)}}}function j(M){return M&&(G.hasClass(M.elm,"mceSelected")||M==o)}function k(){var M=[];e(H.rows,function(N){e(N.cells,function(O){if(G.hasClass(O,"mceSelected")||O==o.elm){M.push(N);return false}})});return M}function r(){var M=G.createRng();M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H)}function f(M){var N;d.walk(M,function(P){var O;if(P.nodeType==3){e(G.getParents(P.parentNode,null,M).reverse(),function(Q){Q=A(Q,false);if(!N){N=O=Q}else{if(O){O.appendChild(Q)}}O=Q});if(O){O.innerHTML=d.isIE?"&nbsp;":'<br data-mce-bogus="1" />'}return false}},"childNodes");M=A(M,false);s(M,"rowSpan",1);s(M,"colSpan",1);if(N){M.appendChild(N)}else{if(!d.isIE){M.innerHTML='<br data-mce-bogus="1" />'}}return M}function q(){var M=G.createRng();e(G.select("tr",H),function(N){if(N.cells.length==0){G.remove(N)}});if(G.select("tr",H).length==0){M.setStartAfter(H);M.setEndAfter(H);K.setRng(M);G.remove(H);return}e(G.select("thead,tbody,tfoot",H),function(N){if(N.rows.length==0){G.remove(N)}});t();row=g[Math.min(g.length-1,L.y)];if(row){K.select(row[Math.min(row.length-1,L.x)].elm,true);K.collapse(true)}}function u(S,Q,U,R){var P,N,M,O,T;P=g[Q][S].elm.parentNode;for(M=1;M<=U;M++){P=G.getNext(P,"tr");if(P){for(N=S;N>=0;N--){T=g[Q+M][N].elm;if(T.parentNode==P){for(O=1;O<=R;O++){G.insertAfter(f(T),T)}break}}if(N==-1){for(O=1;O<=R;O++){P.insertBefore(f(P.cells[0]),P.cells[0])}}}}}function C(){e(g,function(M,N){e(M,function(P,O){var S,R,T,Q;if(j(P)){P=P.elm;S=a(P,"colspan");R=a(P,"rowspan");if(S>1||R>1){s(P,"rowSpan",1);s(P,"colSpan",1);for(Q=0;Q<S-1;Q++){G.insertAfter(f(P),P)}u(O,N,R-1,S)}}})})}function p(V,S,Y){var P,O,X,W,U,R,T,M,V,N,Q;if(V){pos=F(V);P=pos.x;O=pos.y;X=P+(S-1);W=O+(Y-1)}else{L=D=null;e(g,function(Z,aa){e(Z,function(ac,ab){if(j(ac)){if(!L){L={x:ab,y:aa}}D={x:ab,y:aa}}})});P=L.x;O=L.y;X=D.x;W=D.y}T=z(P,O);M=z(X,W);if(T&&M&&T.part==M.part){C();t();T=z(P,O).elm;s(T,"colSpan",(X-P)+1);s(T,"rowSpan",(W-O)+1);for(R=O;R<=W;R++){for(U=P;U<=X;U++){if(!g[R]||!g[R][U]){continue}V=g[R][U].elm;if(V!=T){N=d.grep(V.childNodes);e(N,function(Z){T.appendChild(Z)});if(N.length){N=d.grep(T.childNodes);Q=0;e(N,function(Z){if(Z.nodeName=="BR"&&G.getAttrib(Z,"data-mce-bogus")&&Q++<N.length-1){T.removeChild(Z)}})}G.remove(V)}}}q()}}function l(Q){var M,S,P,R,T,U,N,V,O;e(g,function(W,X){e(W,function(Z,Y){if(j(Z)){Z=Z.elm;T=Z.parentNode;U=A(T,false);M=X;if(Q){return false}}});if(Q){return !M}});for(R=0;R<g[0].length;R++){if(!g[M][R]){continue}S=g[M][R].elm;if(S!=P){if(!Q){O=a(S,"rowspan");if(O>1){s(S,"rowSpan",O+1);continue}}else{if(M>0&&g[M-1][R]){V=g[M-1][R].elm;O=a(V,"rowSpan");if(O>1){s(V,"rowSpan",O+1);continue}}}N=f(S);s(N,"colSpan",S.colSpan);U.appendChild(N);P=S}}if(U.hasChildNodes()){if(!Q){G.insertAfter(U,T)}else{T.parentNode.insertBefore(U,T)}}}function h(N){var O,M;e(g,function(P,Q){e(P,function(S,R){if(j(S)){O=R;if(N){return false}}});if(N){return !O}});e(g,function(S,T){var P,Q,R;if(!S[O]){return}P=S[O].elm;if(P!=M){R=a(P,"colspan");Q=a(P,"rowspan");if(R==1){if(!N){G.insertAfter(f(P),P);u(O,T,Q-1,R)}else{P.parentNode.insertBefore(f(P),P);u(O,T,Q-1,R)}}else{s(P,"colSpan",P.colSpan+1)}M=P}})}function n(){var M=[];e(g,function(N,O){e(N,function(Q,P){if(j(Q)&&d.inArray(M,P)===-1){e(g,function(T){var R=T[P].elm,S;S=a(R,"colSpan");if(S>1){s(R,"colSpan",S-1)}else{G.remove(R)}});M.push(P)}})});q()}function m(){var N;function M(Q){var P,R,O;P=G.getNext(Q,"tr");e(Q.cells,function(S){var T=a(S,"rowSpan");if(T>1){s(S,"rowSpan",T-1);R=F(S);u(R.x,R.y,1,1)}});R=F(Q.cells[0]);e(g[R.y],function(S){var T;S=S.elm;if(S!=O){T=a(S,"rowSpan");if(T<=1){G.remove(S)}else{s(S,"rowSpan",T-1)}O=S}})}N=k();e(N.reverse(),function(O){M(O)});q()}function E(){var M=k();G.remove(M);q();return M}function J(){var M=k();e(M,function(O,N){M[N]=A(O,true)});return M}function B(O,N){var P=k(),M=P[N?0:P.length-1],Q=M.cells.length;e(g,function(S){var R;Q=0;e(S,function(U,T){if(U.real){Q+=U.colspan}if(U.elm.parentNode==M){R=1}});if(R){return false}});if(!N){O.reverse()}e(O,function(T){var S=T.cells.length,R;for(i=0;i<S;i++){R=T.cells[i];s(R,"colSpan",1);s(R,"rowSpan",1)}for(i=S;i<Q;i++){T.appendChild(f(T.cells[S-1]))}for(i=Q;i<S;i++){G.remove(T.cells[i])}if(N){M.parentNode.insertBefore(T,M)}else{G.insertAfter(T,M)}});G.removeClass(G.select("td.mceSelected,th.mceSelected"),"mceSelected")}function F(M){var N;e(g,function(O,P){e(O,function(R,Q){if(R.elm==M){N={x:Q,y:P};return false}});return !N});return N}function w(M){L=F(M)}function I(){var O,N,M;N=M=0;e(g,function(P,Q){e(P,function(S,R){var U,T;if(j(S)){S=g[Q][R];if(R>N){N=R}if(Q>M){M=Q}if(S.real){U=S.colspan-1;T=S.rowspan-1;if(U){if(R+U>N){N=R+U}}if(T){if(Q+T>M){M=Q+T}}}}})});return{x:N,y:M}}function v(S){var P,O,U,T,N,M,Q,R;D=F(S);if(L&&D){P=Math.min(L.x,D.x);O=Math.min(L.y,D.y);U=Math.max(L.x,D.x);T=Math.max(L.y,D.y);N=U;M=T;for(y=O;y<=M;y++){S=g[y][P];if(!S.real){if(P-(S.colspan-1)<P){P-=S.colspan-1}}}for(x=P;x<=N;x++){S=g[O][x];if(!S.real){if(O-(S.rowspan-1)<O){O-=S.rowspan-1}}}for(y=O;y<=T;y++){for(x=P;x<=U;x++){S=g[y][x];if(S.real){Q=S.colspan-1;R=S.rowspan-1;if(Q){if(x+Q>N){N=x+Q}}if(R){if(y+R>M){M=y+R}}}}}G.removeClass(G.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=O;y<=M;y++){for(x=P;x<=N;x++){if(g[y][x]){G.addClass(g[y][x].elm,"mceSelected")}}}}}d.extend(this,{deleteTable:r,split:C,merge:p,insertRow:l,insertCol:h,deleteCols:n,deleteRows:m,cutRows:E,copyRows:J,pasteRows:B,getPos:F,setStartCell:w,setEndCell:v})}d.create("tinymce.plugins.TablePlugin",{init:function(g,h){var f,m,j=true;function l(p){var o=g.selection,n=g.dom.getParent(p||o.getNode(),"table");if(n){return new b(n,g.dom,o)}}function k(){g.getBody().style.webkitUserSelect="";if(j){g.dom.removeClass(g.dom.select("td.mceSelected,th.mceSelected"),"mceSelected");j=false}}e([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(n){g.addButton(n[0],{title:n[1],cmd:n[2],ui:n[3]})});if(!d.isIE){g.onClick.add(function(n,o){o=o.target;if(o.nodeName==="TABLE"){n.selection.select(o);n.nodeChanged()}})}g.onPreProcess.add(function(o,p){var n,q,r,t=o.dom,s;n=t.select("table",p.node);q=n.length;while(q--){r=n[q];t.setAttrib(r,"data-mce-style","");if((s=t.getAttrib(r,"width"))){t.setStyle(r,"width",s);t.setAttrib(r,"width","")}if((s=t.getAttrib(r,"height"))){t.setStyle(r,"height",s);t.setAttrib(r,"height","")}}});g.onNodeChange.add(function(q,o,s){var r;s=q.selection.getStart();r=q.dom.getParent(s,"td,th,caption");o.setActive("table",s.nodeName==="TABLE"||!!r);if(r&&r.nodeName==="CAPTION"){r=0}o.setDisabled("delete_table",!r);o.setDisabled("delete_col",!r);o.setDisabled("delete_table",!r);o.setDisabled("delete_row",!r);o.setDisabled("col_after",!r);o.setDisabled("col_before",!r);o.setDisabled("row_after",!r);o.setDisabled("row_before",!r);o.setDisabled("row_props",!r);o.setDisabled("cell_props",!r);o.setDisabled("split_cells",!r);o.setDisabled("merge_cells",!r)});g.onInit.add(function(r){var p,t,q=r.dom,u;f=r.windowManager;r.onMouseDown.add(function(w,z){if(z.button!=2){k();t=q.getParent(z.target,"td,th");p=q.getParent(t,"table")}});q.bind(r.getDoc(),"mouseover",function(C){var A,z,B=C.target;if(t&&(u||B!=t)&&(B.nodeName=="TD"||B.nodeName=="TH")){z=q.getParent(B,"table");if(z==p){if(!u){u=l(z);u.setStartCell(t);r.getBody().style.webkitUserSelect="none"}u.setEndCell(B);j=true}A=r.selection.getSel();try{if(A.removeAllRanges){A.removeAllRanges()}else{A.empty()}}catch(w){}C.preventDefault()}});r.onMouseUp.add(function(F,G){var z,B=F.selection,H,I=B.getSel(),w,C,A,E;if(t){if(u){F.getBody().style.webkitUserSelect=""}function D(J,L){var K=new d.dom.TreeWalker(J,J);do{if(J.nodeType==3&&d.trim(J.nodeValue).length!=0){if(L){z.setStart(J,0)}else{z.setEnd(J,J.nodeValue.length)}return}if(J.nodeName=="BR"){if(L){z.setStartBefore(J)}else{z.setEndBefore(J)}return}}while(J=(L?K.next():K.prev()))}H=q.select("td.mceSelected,th.mceSelected");if(H.length>0){z=q.createRng();C=H[0];E=H[H.length-1];z.setStartBefore(C);z.setEndAfter(C);D(C,1);w=new d.dom.TreeWalker(C,q.getParent(H[0],"table"));do{if(C.nodeName=="TD"||C.nodeName=="TH"){if(!q.hasClass(C,"mceSelected")){break}A=C}}while(C=w.next());D(A);B.setRng(z)}F.nodeChanged();t=u=p=null}});r.onKeyUp.add(function(w,z){k()});r.onKeyDown.add(function(w,z){n(w)});r.onMouseDown.add(function(w,z){if(z.button!=2){n(w)}});function o(D,z,A,F){var B=3,G=D.dom.getParent(z.startContainer,"TABLE"),C,w,E;if(G){C=G.parentNode}w=z.startContainer.nodeType==B&&z.startOffset==0&&z.endOffset==0&&F&&(A.nodeName=="TR"||A==C);E=(A.nodeName=="TD"||A.nodeName=="TH")&&!F;return w||E}function n(A){if(!d.isWebKit){return}var z=A.selection.getRng();var C=A.selection.getNode();var B=A.dom.getParent(z.startContainer,"TD,TH");if(!o(A,z,C,B)){return}if(!B){B=C}var w=B.lastChild;while(w.lastChild){w=w.lastChild}z.setEnd(w,w.nodeValue.length);A.selection.setRng(z)}r.plugins.table.fixTableCellSelection=n;if(r&&r.plugins.contextmenu){r.plugins.contextmenu.onContextMenu.add(function(A,w,C){var D,B=r.selection,z=B.getNode()||r.getBody();if(r.dom.getParent(C,"td")||r.dom.getParent(C,"th")||r.dom.select("td.mceSelected,th.mceSelected").length){w.removeAll();if(z.nodeName=="A"&&!r.dom.getAttrib(z,"name")){w.add({title:"advanced.link_desc",icon:"link",cmd:r.plugins.advlink?"mceAdvLink":"mceLink",ui:true});w.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});w.addSeparator()}if(z.nodeName=="IMG"&&z.className.indexOf("mceItem")==-1){w.add({title:"advanced.image_desc",icon:"image",cmd:r.plugins.advimage?"mceAdvImage":"mceImage",ui:true});w.addSeparator()}w.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",value:{action:"insert"}});w.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable"});w.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete"});w.addSeparator();D=w.addMenu({title:"table.cell"});D.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps"});D.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells"});D.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells"});D=w.addMenu({title:"table.row"});D.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps"});D.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});D.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});D.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});D.addSeparator();D.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});D.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});D.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"}).setDisabled(!m);D.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"}).setDisabled(!m);D=w.addMenu({title:"table.col"});D.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});D.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});D.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{w.add({title:"table.desc",icon:"table",cmd:"mceInsertTable"})}})}if(d.isWebKit){function v(C,N){var L=d.VK;var Q=N.keyCode;function O(Y,U,S){var T=Y?"previousSibling":"nextSibling";var Z=C.dom.getParent(U,"tr");var X=Z[T];if(X){z(C,U,X,Y);d.dom.Event.cancel(S);return true}else{var aa=C.dom.getParent(Z,"table");var W=Z.parentNode;var R=W.nodeName.toLowerCase();if(R==="tbody"||R===(Y?"tfoot":"thead")){var V=w(Y,aa,W,"tbody");if(V!==null){return K(Y,V,U,S)}}return M(Y,Z,T,aa,S)}}function w(V,T,U,X){var S=C.dom.select(">"+X,T);var R=S.indexOf(U);if(V&&R===0||!V&&R===S.length-1){return B(V,T)}else{if(R===-1){var W=U.tagName.toLowerCase()==="thead"?0:S.length-1;return S[W]}else{return S[R+(V?-1:1)]}}}function B(U,T){var S=U?"thead":"tfoot";var R=C.dom.select(">"+S,T);return R.length!==0?R[0]:null}function K(V,T,S,U){var R=J(T,V);R&&z(C,S,R,V);d.dom.Event.cancel(U);return true}function M(Y,U,R,X,W){var S=X[R];if(S){F(S);return true}else{var V=C.dom.getParent(X,"td,th");if(V){return O(Y,V,W)}else{var T=J(U,!Y);F(T);return d.dom.Event.cancel(W)}}}function J(S,R){var T=S&&S[R?"lastChild":"firstChild"];return T&&T.nodeName==="BR"?C.dom.getParent(T,"td,th"):T}function F(R){C.selection.setCursorLocation(R,0)}function A(){return Q==L.UP||Q==L.DOWN}function D(R){var T=R.selection.getNode();var S=R.dom.getParent(T,"tr");return S!==null}function P(S){var R=0;var T=S;while(T.previousSibling){T=T.previousSibling;R=R+a(T,"colspan")}return R}function E(T,R){var U=0;var S=0;e(T.children,function(V,W){U=U+a(V,"colspan");S=W;if(U>R){return false}});return S}function z(T,W,Y,V){var X=P(T.dom.getParent(W,"td,th"));var S=E(Y,X);var R=Y.childNodes[S];var U=J(R,V);F(U||R)}function H(R){var T=C.selection.getNode();var U=C.dom.getParent(T,"td,th");var S=C.dom.getParent(R,"td,th");return U&&U!==S&&I(U,S)}function I(S,R){return C.dom.getParent(S,"TABLE")===C.dom.getParent(R,"TABLE")}if(A()&&D(C)){var G=C.selection.getNode();setTimeout(function(){if(H(G)){O(!N.shiftKey&&Q===L.UP,G,N)}},0)}}r.onKeyDown.add(v)}function s(){var w;for(w=r.getBody().lastChild;w&&w.nodeType==3&&!w.nodeValue.length;w=w.previousSibling){}if(w&&w.nodeName=="TABLE"){if(r.settings.forced_root_block){r.dom.add(r.getBody(),r.settings.forced_root_block,null,d.isIE?"&nbsp;":'<br data-mce-bogus="1" />')}else{r.dom.add(r.getBody(),"br",{"data-mce-bogus":"1"})}}}if(d.isGecko){r.onKeyDown.add(function(z,B){var w,A,C=z.dom;if(B.keyCode==37||B.keyCode==38){w=z.selection.getRng();A=C.getParent(w.startContainer,"table");if(A&&z.getBody().firstChild==A){if(c(w,A)){w=C.createRng();w.setStartBefore(A);w.setEndBefore(A);z.selection.setRng(w);B.preventDefault()}}}})}r.onKeyUp.add(s);r.onSetContent.add(s);r.onVisualAid.add(s);r.onPreProcess.add(function(w,A){var z=A.node.lastChild;if(z&&(z.nodeName=="BR"||(z.childNodes.length==1&&(z.firstChild.nodeName=="BR"||z.firstChild.nodeValue=="\u00a0")))&&z.previousSibling&&z.previousSibling.nodeName=="TABLE"){w.dom.remove(z)}});s();r.startContent=r.getContent({format:"raw"})});e({mceTableSplitCells:function(n){n.split()},mceTableMergeCells:function(o){var p,q,n;n=g.dom.getParent(g.selection.getNode(),"th,td");if(n){p=n.rowSpan;q=n.colSpan}if(!g.dom.select("td.mceSelected,th.mceSelected").length){f.open({url:h+"/merge_cells.htm",width:240+parseInt(g.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(g.getLang("table.merge_cells_delta_height",0)),inline:1},{rows:p,cols:q,onaction:function(r){o.merge(n,r.cols,r.rows)},plugin_url:h})}else{o.merge()}},mceTableInsertRowBefore:function(n){n.insertRow(true)},mceTableInsertRowAfter:function(n){n.insertRow()},mceTableInsertColBefore:function(n){n.insertCol(true)},mceTableInsertColAfter:function(n){n.insertCol()},mceTableDeleteCol:function(n){n.deleteCols()},mceTableDeleteRow:function(n){n.deleteRows()},mceTableCutRow:function(n){m=n.cutRows()},mceTableCopyRow:function(n){m=n.copyRows()},mceTablePasteRowBefore:function(n){n.pasteRows(m,true)},mceTablePasteRowAfter:function(n){n.pasteRows(m)},mceTableDelete:function(n){n.deleteTable()}},function(o,n){g.addCommand(n,function(){var p=l();if(p){o(p);g.execCommand("mceRepaint");k()}})});e({mceInsertTable:function(n){f.open({url:h+"/table.htm",width:400+parseInt(g.getLang("table.table_delta_width",0)),height:320+parseInt(g.getLang("table.table_delta_height",0)),inline:1},{plugin_url:h,action:n?n.action:0})},mceTableRowProps:function(){f.open({url:h+"/row.htm",width:400+parseInt(g.getLang("table.rowprops_delta_width",0)),height:295+parseInt(g.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:h})},mceTableCellProps:function(){f.open({url:h+"/cell.htm",width:400+parseInt(g.getLang("table.cellprops_delta_width",0)),height:295+parseInt(g.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:h})}},function(o,n){g.addCommand(n,function(p,q){o(q)})})}});d.PluginManager.add("table",d.plugins.TablePlugin)})(tinymce); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin_src.js
new file mode 100755
index 00000000..dc20b386
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/editor_plugin_src.js
@@ -0,0 +1,1452 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function(tinymce) {
+ var each = tinymce.each;
+
+ // Checks if the selection/caret is at the start of the specified block element
+ function isAtStart(rng, par) {
+ var doc = par.ownerDocument, rng2 = doc.createRange(), elm;
+
+ rng2.setStartBefore(par);
+ rng2.setEnd(rng.endContainer, rng.endOffset);
+
+ elm = doc.createElement('body');
+ elm.appendChild(rng2.cloneContents());
+
+ // Check for text characters of other elements that should be treated as content
+ return elm.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi, '-').replace(/<[^>]+>/g, '').length == 0;
+ };
+
+ function getSpanVal(td, name) {
+ return parseInt(td.getAttribute(name) || 1);
+ }
+
+ /**
+ * Table Grid class.
+ */
+ function TableGrid(table, dom, selection) {
+ var grid, startPos, endPos, selectedCell;
+
+ buildGrid();
+ selectedCell = dom.getParent(selection.getStart(), 'th,td');
+ if (selectedCell) {
+ startPos = getPos(selectedCell);
+ endPos = findEndPos();
+ selectedCell = getCell(startPos.x, startPos.y);
+ }
+
+ function cloneNode(node, children) {
+ node = node.cloneNode(children);
+ node.removeAttribute('id');
+
+ return node;
+ }
+
+ function buildGrid() {
+ var startY = 0;
+
+ grid = [];
+
+ each(['thead', 'tbody', 'tfoot'], function(part) {
+ var rows = dom.select('> ' + part + ' tr', table);
+
+ each(rows, function(tr, y) {
+ y += startY;
+
+ each(dom.select('> td, > th', tr), function(td, x) {
+ var x2, y2, rowspan, colspan;
+
+ // Skip over existing cells produced by rowspan
+ if (grid[y]) {
+ while (grid[y][x])
+ x++;
+ }
+
+ // Get col/rowspan from cell
+ rowspan = getSpanVal(td, 'rowspan');
+ colspan = getSpanVal(td, 'colspan');
+
+ // Fill out rowspan/colspan right and down
+ for (y2 = y; y2 < y + rowspan; y2++) {
+ if (!grid[y2])
+ grid[y2] = [];
+
+ for (x2 = x; x2 < x + colspan; x2++) {
+ grid[y2][x2] = {
+ part : part,
+ real : y2 == y && x2 == x,
+ elm : td,
+ rowspan : rowspan,
+ colspan : colspan
+ };
+ }
+ }
+ });
+ });
+
+ startY += rows.length;
+ });
+ };
+
+ function getCell(x, y) {
+ var row;
+
+ row = grid[y];
+ if (row)
+ return row[x];
+ };
+
+ function setSpanVal(td, name, val) {
+ if (td) {
+ val = parseInt(val);
+
+ if (val === 1)
+ td.removeAttribute(name, 1);
+ else
+ td.setAttribute(name, val, 1);
+ }
+ }
+
+ function isCellSelected(cell) {
+ return cell && (dom.hasClass(cell.elm, 'mceSelected') || cell == selectedCell);
+ };
+
+ function getSelectedRows() {
+ var rows = [];
+
+ each(table.rows, function(row) {
+ each(row.cells, function(cell) {
+ if (dom.hasClass(cell, 'mceSelected') || cell == selectedCell.elm) {
+ rows.push(row);
+ return false;
+ }
+ });
+ });
+
+ return rows;
+ };
+
+ function deleteTable() {
+ var rng = dom.createRng();
+
+ rng.setStartAfter(table);
+ rng.setEndAfter(table);
+
+ selection.setRng(rng);
+
+ dom.remove(table);
+ };
+
+ function cloneCell(cell) {
+ var formatNode;
+
+ // Clone formats
+ tinymce.walk(cell, function(node) {
+ var curNode;
+
+ if (node.nodeType == 3) {
+ each(dom.getParents(node.parentNode, null, cell).reverse(), function(node) {
+ node = cloneNode(node, false);
+
+ if (!formatNode)
+ formatNode = curNode = node;
+ else if (curNode)
+ curNode.appendChild(node);
+
+ curNode = node;
+ });
+
+ // Add something to the inner node
+ if (curNode)
+ curNode.innerHTML = tinymce.isIE ? '&nbsp;' : '<br data-mce-bogus="1" />';
+
+ return false;
+ }
+ }, 'childNodes');
+
+ cell = cloneNode(cell, false);
+ setSpanVal(cell, 'rowSpan', 1);
+ setSpanVal(cell, 'colSpan', 1);
+
+ if (formatNode) {
+ cell.appendChild(formatNode);
+ } else {
+ if (!tinymce.isIE)
+ cell.innerHTML = '<br data-mce-bogus="1" />';
+ }
+
+ return cell;
+ };
+
+ function cleanup() {
+ var rng = dom.createRng();
+
+ // Empty rows
+ each(dom.select('tr', table), function(tr) {
+ if (tr.cells.length == 0)
+ dom.remove(tr);
+ });
+
+ // Empty table
+ if (dom.select('tr', table).length == 0) {
+ rng.setStartAfter(table);
+ rng.setEndAfter(table);
+ selection.setRng(rng);
+ dom.remove(table);
+ return;
+ }
+
+ // Empty header/body/footer
+ each(dom.select('thead,tbody,tfoot', table), function(part) {
+ if (part.rows.length == 0)
+ dom.remove(part);
+ });
+
+ // Restore selection to start position if it still exists
+ buildGrid();
+
+ // Restore the selection to the closest table position
+ row = grid[Math.min(grid.length - 1, startPos.y)];
+ if (row) {
+ selection.select(row[Math.min(row.length - 1, startPos.x)].elm, true);
+ selection.collapse(true);
+ }
+ };
+
+ function fillLeftDown(x, y, rows, cols) {
+ var tr, x2, r, c, cell;
+
+ tr = grid[y][x].elm.parentNode;
+ for (r = 1; r <= rows; r++) {
+ tr = dom.getNext(tr, 'tr');
+
+ if (tr) {
+ // Loop left to find real cell
+ for (x2 = x; x2 >= 0; x2--) {
+ cell = grid[y + r][x2].elm;
+
+ if (cell.parentNode == tr) {
+ // Append clones after
+ for (c = 1; c <= cols; c++)
+ dom.insertAfter(cloneCell(cell), cell);
+
+ break;
+ }
+ }
+
+ if (x2 == -1) {
+ // Insert nodes before first cell
+ for (c = 1; c <= cols; c++)
+ tr.insertBefore(cloneCell(tr.cells[0]), tr.cells[0]);
+ }
+ }
+ }
+ };
+
+ function split() {
+ each(grid, function(row, y) {
+ each(row, function(cell, x) {
+ var colSpan, rowSpan, newCell, i;
+
+ if (isCellSelected(cell)) {
+ cell = cell.elm;
+ colSpan = getSpanVal(cell, 'colspan');
+ rowSpan = getSpanVal(cell, 'rowspan');
+
+ if (colSpan > 1 || rowSpan > 1) {
+ setSpanVal(cell, 'rowSpan', 1);
+ setSpanVal(cell, 'colSpan', 1);
+
+ // Insert cells right
+ for (i = 0; i < colSpan - 1; i++)
+ dom.insertAfter(cloneCell(cell), cell);
+
+ fillLeftDown(x, y, rowSpan - 1, colSpan);
+ }
+ }
+ });
+ });
+ };
+
+ function merge(cell, cols, rows) {
+ var startX, startY, endX, endY, x, y, startCell, endCell, cell, children, count;
+
+ // Use specified cell and cols/rows
+ if (cell) {
+ pos = getPos(cell);
+ startX = pos.x;
+ startY = pos.y;
+ endX = startX + (cols - 1);
+ endY = startY + (rows - 1);
+ } else {
+ startPos = endPos = null;
+
+ // Calculate start/end pos by checking for selected cells in grid works better with context menu
+ each(grid, function(row, y) {
+ each(row, function(cell, x) {
+ if (isCellSelected(cell)) {
+ if (!startPos) {
+ startPos = {x: x, y: y};
+ }
+
+ endPos = {x: x, y: y};
+ }
+ });
+ });
+
+ // Use selection
+ startX = startPos.x;
+ startY = startPos.y;
+ endX = endPos.x;
+ endY = endPos.y;
+ }
+
+ // Find start/end cells
+ startCell = getCell(startX, startY);
+ endCell = getCell(endX, endY);
+
+ // Check if the cells exists and if they are of the same part for example tbody = tbody
+ if (startCell && endCell && startCell.part == endCell.part) {
+ // Split and rebuild grid
+ split();
+ buildGrid();
+
+ // Set row/col span to start cell
+ startCell = getCell(startX, startY).elm;
+ setSpanVal(startCell, 'colSpan', (endX - startX) + 1);
+ setSpanVal(startCell, 'rowSpan', (endY - startY) + 1);
+
+ // Remove other cells and add it's contents to the start cell
+ for (y = startY; y <= endY; y++) {
+ for (x = startX; x <= endX; x++) {
+ if (!grid[y] || !grid[y][x])
+ continue;
+
+ cell = grid[y][x].elm;
+
+ if (cell != startCell) {
+ // Move children to startCell
+ children = tinymce.grep(cell.childNodes);
+ each(children, function(node) {
+ startCell.appendChild(node);
+ });
+
+ // Remove bogus nodes if there is children in the target cell
+ if (children.length) {
+ children = tinymce.grep(startCell.childNodes);
+ count = 0;
+ each(children, function(node) {
+ if (node.nodeName == 'BR' && dom.getAttrib(node, 'data-mce-bogus') && count++ < children.length - 1)
+ startCell.removeChild(node);
+ });
+ }
+
+ // Remove cell
+ dom.remove(cell);
+ }
+ }
+ }
+
+ // Remove empty rows etc and restore caret location
+ cleanup();
+ }
+ };
+
+ function insertRow(before) {
+ var posY, cell, lastCell, x, rowElm, newRow, newCell, otherCell, rowSpan;
+
+ // Find first/last row
+ each(grid, function(row, y) {
+ each(row, function(cell, x) {
+ if (isCellSelected(cell)) {
+ cell = cell.elm;
+ rowElm = cell.parentNode;
+ newRow = cloneNode(rowElm, false);
+ posY = y;
+
+ if (before)
+ return false;
+ }
+ });
+
+ if (before)
+ return !posY;
+ });
+
+ for (x = 0; x < grid[0].length; x++) {
+ // Cell not found could be because of an invalid table structure
+ if (!grid[posY][x])
+ continue;
+
+ cell = grid[posY][x].elm;
+
+ if (cell != lastCell) {
+ if (!before) {
+ rowSpan = getSpanVal(cell, 'rowspan');
+ if (rowSpan > 1) {
+ setSpanVal(cell, 'rowSpan', rowSpan + 1);
+ continue;
+ }
+ } else {
+ // Check if cell above can be expanded
+ if (posY > 0 && grid[posY - 1][x]) {
+ otherCell = grid[posY - 1][x].elm;
+ rowSpan = getSpanVal(otherCell, 'rowSpan');
+ if (rowSpan > 1) {
+ setSpanVal(otherCell, 'rowSpan', rowSpan + 1);
+ continue;
+ }
+ }
+ }
+
+ // Insert new cell into new row
+ newCell = cloneCell(cell);
+ setSpanVal(newCell, 'colSpan', cell.colSpan);
+
+ newRow.appendChild(newCell);
+
+ lastCell = cell;
+ }
+ }
+
+ if (newRow.hasChildNodes()) {
+ if (!before)
+ dom.insertAfter(newRow, rowElm);
+ else
+ rowElm.parentNode.insertBefore(newRow, rowElm);
+ }
+ };
+
+ function insertCol(before) {
+ var posX, lastCell;
+
+ // Find first/last column
+ each(grid, function(row, y) {
+ each(row, function(cell, x) {
+ if (isCellSelected(cell)) {
+ posX = x;
+
+ if (before)
+ return false;
+ }
+ });
+
+ if (before)
+ return !posX;
+ });
+
+ each(grid, function(row, y) {
+ var cell, rowSpan, colSpan;
+
+ if (!row[posX])
+ return;
+
+ cell = row[posX].elm;
+ if (cell != lastCell) {
+ colSpan = getSpanVal(cell, 'colspan');
+ rowSpan = getSpanVal(cell, 'rowspan');
+
+ if (colSpan == 1) {
+ if (!before) {
+ dom.insertAfter(cloneCell(cell), cell);
+ fillLeftDown(posX, y, rowSpan - 1, colSpan);
+ } else {
+ cell.parentNode.insertBefore(cloneCell(cell), cell);
+ fillLeftDown(posX, y, rowSpan - 1, colSpan);
+ }
+ } else
+ setSpanVal(cell, 'colSpan', cell.colSpan + 1);
+
+ lastCell = cell;
+ }
+ });
+ };
+
+ function deleteCols() {
+ var cols = [];
+
+ // Get selected column indexes
+ each(grid, function(row, y) {
+ each(row, function(cell, x) {
+ if (isCellSelected(cell) && tinymce.inArray(cols, x) === -1) {
+ each(grid, function(row) {
+ var cell = row[x].elm, colSpan;
+
+ colSpan = getSpanVal(cell, 'colSpan');
+
+ if (colSpan > 1)
+ setSpanVal(cell, 'colSpan', colSpan - 1);
+ else
+ dom.remove(cell);
+ });
+
+ cols.push(x);
+ }
+ });
+ });
+
+ cleanup();
+ };
+
+ function deleteRows() {
+ var rows;
+
+ function deleteRow(tr) {
+ var nextTr, pos, lastCell;
+
+ nextTr = dom.getNext(tr, 'tr');
+
+ // Move down row spanned cells
+ each(tr.cells, function(cell) {
+ var rowSpan = getSpanVal(cell, 'rowSpan');
+
+ if (rowSpan > 1) {
+ setSpanVal(cell, 'rowSpan', rowSpan - 1);
+ pos = getPos(cell);
+ fillLeftDown(pos.x, pos.y, 1, 1);
+ }
+ });
+
+ // Delete cells
+ pos = getPos(tr.cells[0]);
+ each(grid[pos.y], function(cell) {
+ var rowSpan;
+
+ cell = cell.elm;
+
+ if (cell != lastCell) {
+ rowSpan = getSpanVal(cell, 'rowSpan');
+
+ if (rowSpan <= 1)
+ dom.remove(cell);
+ else
+ setSpanVal(cell, 'rowSpan', rowSpan - 1);
+
+ lastCell = cell;
+ }
+ });
+ };
+
+ // Get selected rows and move selection out of scope
+ rows = getSelectedRows();
+
+ // Delete all selected rows
+ each(rows.reverse(), function(tr) {
+ deleteRow(tr);
+ });
+
+ cleanup();
+ };
+
+ function cutRows() {
+ var rows = getSelectedRows();
+
+ dom.remove(rows);
+ cleanup();
+
+ return rows;
+ };
+
+ function copyRows() {
+ var rows = getSelectedRows();
+
+ each(rows, function(row, i) {
+ rows[i] = cloneNode(row, true);
+ });
+
+ return rows;
+ };
+
+ function pasteRows(rows, before) {
+ var selectedRows = getSelectedRows(),
+ targetRow = selectedRows[before ? 0 : selectedRows.length - 1],
+ targetCellCount = targetRow.cells.length;
+
+ // Calc target cell count
+ each(grid, function(row) {
+ var match;
+
+ targetCellCount = 0;
+ each(row, function(cell, x) {
+ if (cell.real)
+ targetCellCount += cell.colspan;
+
+ if (cell.elm.parentNode == targetRow)
+ match = 1;
+ });
+
+ if (match)
+ return false;
+ });
+
+ if (!before)
+ rows.reverse();
+
+ each(rows, function(row) {
+ var cellCount = row.cells.length, cell;
+
+ // Remove col/rowspans
+ for (i = 0; i < cellCount; i++) {
+ cell = row.cells[i];
+ setSpanVal(cell, 'colSpan', 1);
+ setSpanVal(cell, 'rowSpan', 1);
+ }
+
+ // Needs more cells
+ for (i = cellCount; i < targetCellCount; i++)
+ row.appendChild(cloneCell(row.cells[cellCount - 1]));
+
+ // Needs less cells
+ for (i = targetCellCount; i < cellCount; i++)
+ dom.remove(row.cells[i]);
+
+ // Add before/after
+ if (before)
+ targetRow.parentNode.insertBefore(row, targetRow);
+ else
+ dom.insertAfter(row, targetRow);
+ });
+
+ // Remove current selection
+ dom.removeClass(dom.select('td.mceSelected,th.mceSelected'), 'mceSelected');
+ };
+
+ function getPos(target) {
+ var pos;
+
+ each(grid, function(row, y) {
+ each(row, function(cell, x) {
+ if (cell.elm == target) {
+ pos = {x : x, y : y};
+ return false;
+ }
+ });
+
+ return !pos;
+ });
+
+ return pos;
+ };
+
+ function setStartCell(cell) {
+ startPos = getPos(cell);
+ };
+
+ function findEndPos() {
+ var pos, maxX, maxY;
+
+ maxX = maxY = 0;
+
+ each(grid, function(row, y) {
+ each(row, function(cell, x) {
+ var colSpan, rowSpan;
+
+ if (isCellSelected(cell)) {
+ cell = grid[y][x];
+
+ if (x > maxX)
+ maxX = x;
+
+ if (y > maxY)
+ maxY = y;
+
+ if (cell.real) {
+ colSpan = cell.colspan - 1;
+ rowSpan = cell.rowspan - 1;
+
+ if (colSpan) {
+ if (x + colSpan > maxX)
+ maxX = x + colSpan;
+ }
+
+ if (rowSpan) {
+ if (y + rowSpan > maxY)
+ maxY = y + rowSpan;
+ }
+ }
+ }
+ });
+ });
+
+ return {x : maxX, y : maxY};
+ };
+
+ function setEndCell(cell) {
+ var startX, startY, endX, endY, maxX, maxY, colSpan, rowSpan;
+
+ endPos = getPos(cell);
+
+ if (startPos && endPos) {
+ // Get start/end positions
+ startX = Math.min(startPos.x, endPos.x);
+ startY = Math.min(startPos.y, endPos.y);
+ endX = Math.max(startPos.x, endPos.x);
+ endY = Math.max(startPos.y, endPos.y);
+
+ // Expand end positon to include spans
+ maxX = endX;
+ maxY = endY;
+
+ // Expand startX
+ for (y = startY; y <= maxY; y++) {
+ cell = grid[y][startX];
+
+ if (!cell.real) {
+ if (startX - (cell.colspan - 1) < startX)
+ startX -= cell.colspan - 1;
+ }
+ }
+
+ // Expand startY
+ for (x = startX; x <= maxX; x++) {
+ cell = grid[startY][x];
+
+ if (!cell.real) {
+ if (startY - (cell.rowspan - 1) < startY)
+ startY -= cell.rowspan - 1;
+ }
+ }
+
+ // Find max X, Y
+ for (y = startY; y <= endY; y++) {
+ for (x = startX; x <= endX; x++) {
+ cell = grid[y][x];
+
+ if (cell.real) {
+ colSpan = cell.colspan - 1;
+ rowSpan = cell.rowspan - 1;
+
+ if (colSpan) {
+ if (x + colSpan > maxX)
+ maxX = x + colSpan;
+ }
+
+ if (rowSpan) {
+ if (y + rowSpan > maxY)
+ maxY = y + rowSpan;
+ }
+ }
+ }
+ }
+
+ // Remove current selection
+ dom.removeClass(dom.select('td.mceSelected,th.mceSelected'), 'mceSelected');
+
+ // Add new selection
+ for (y = startY; y <= maxY; y++) {
+ for (x = startX; x <= maxX; x++) {
+ if (grid[y][x])
+ dom.addClass(grid[y][x].elm, 'mceSelected');
+ }
+ }
+ }
+ };
+
+ // Expose to public
+ tinymce.extend(this, {
+ deleteTable : deleteTable,
+ split : split,
+ merge : merge,
+ insertRow : insertRow,
+ insertCol : insertCol,
+ deleteCols : deleteCols,
+ deleteRows : deleteRows,
+ cutRows : cutRows,
+ copyRows : copyRows,
+ pasteRows : pasteRows,
+ getPos : getPos,
+ setStartCell : setStartCell,
+ setEndCell : setEndCell
+ });
+ };
+
+ tinymce.create('tinymce.plugins.TablePlugin', {
+ init : function(ed, url) {
+ var winMan, clipboardRows, hasCellSelection = true; // Might be selected cells on reload
+
+ function createTableGrid(node) {
+ var selection = ed.selection, tblElm = ed.dom.getParent(node || selection.getNode(), 'table');
+
+ if (tblElm)
+ return new TableGrid(tblElm, ed.dom, selection);
+ };
+
+ function cleanup() {
+ // Restore selection possibilities
+ ed.getBody().style.webkitUserSelect = '';
+
+ if (hasCellSelection) {
+ ed.dom.removeClass(ed.dom.select('td.mceSelected,th.mceSelected'), 'mceSelected');
+ hasCellSelection = false;
+ }
+ };
+
+ // Register buttons
+ each([
+ ['table', 'table.desc', 'mceInsertTable', true],
+ ['delete_table', 'table.del', 'mceTableDelete'],
+ ['delete_col', 'table.delete_col_desc', 'mceTableDeleteCol'],
+ ['delete_row', 'table.delete_row_desc', 'mceTableDeleteRow'],
+ ['col_after', 'table.col_after_desc', 'mceTableInsertColAfter'],
+ ['col_before', 'table.col_before_desc', 'mceTableInsertColBefore'],
+ ['row_after', 'table.row_after_desc', 'mceTableInsertRowAfter'],
+ ['row_before', 'table.row_before_desc', 'mceTableInsertRowBefore'],
+ ['row_props', 'table.row_desc', 'mceTableRowProps', true],
+ ['cell_props', 'table.cell_desc', 'mceTableCellProps', true],
+ ['split_cells', 'table.split_cells_desc', 'mceTableSplitCells', true],
+ ['merge_cells', 'table.merge_cells_desc', 'mceTableMergeCells', true]
+ ], function(c) {
+ ed.addButton(c[0], {title : c[1], cmd : c[2], ui : c[3]});
+ });
+
+ // Select whole table is a table border is clicked
+ if (!tinymce.isIE) {
+ ed.onClick.add(function(ed, e) {
+ e = e.target;
+
+ if (e.nodeName === 'TABLE') {
+ ed.selection.select(e);
+ ed.nodeChanged();
+ }
+ });
+ }
+
+ ed.onPreProcess.add(function(ed, args) {
+ var nodes, i, node, dom = ed.dom, value;
+
+ nodes = dom.select('table', args.node);
+ i = nodes.length;
+ while (i--) {
+ node = nodes[i];
+ dom.setAttrib(node, 'data-mce-style', '');
+
+ if ((value = dom.getAttrib(node, 'width'))) {
+ dom.setStyle(node, 'width', value);
+ dom.setAttrib(node, 'width', '');
+ }
+
+ if ((value = dom.getAttrib(node, 'height'))) {
+ dom.setStyle(node, 'height', value);
+ dom.setAttrib(node, 'height', '');
+ }
+ }
+ });
+
+ // Handle node change updates
+ ed.onNodeChange.add(function(ed, cm, n) {
+ var p;
+
+ n = ed.selection.getStart();
+ p = ed.dom.getParent(n, 'td,th,caption');
+ cm.setActive('table', n.nodeName === 'TABLE' || !!p);
+
+ // Disable table tools if we are in caption
+ if (p && p.nodeName === 'CAPTION')
+ p = 0;
+
+ cm.setDisabled('delete_table', !p);
+ cm.setDisabled('delete_col', !p);
+ cm.setDisabled('delete_table', !p);
+ cm.setDisabled('delete_row', !p);
+ cm.setDisabled('col_after', !p);
+ cm.setDisabled('col_before', !p);
+ cm.setDisabled('row_after', !p);
+ cm.setDisabled('row_before', !p);
+ cm.setDisabled('row_props', !p);
+ cm.setDisabled('cell_props', !p);
+ cm.setDisabled('split_cells', !p);
+ cm.setDisabled('merge_cells', !p);
+ });
+
+ ed.onInit.add(function(ed) {
+ var startTable, startCell, dom = ed.dom, tableGrid;
+
+ winMan = ed.windowManager;
+
+ // Add cell selection logic
+ ed.onMouseDown.add(function(ed, e) {
+ if (e.button != 2) {
+ cleanup();
+
+ startCell = dom.getParent(e.target, 'td,th');
+ startTable = dom.getParent(startCell, 'table');
+ }
+ });
+
+ dom.bind(ed.getDoc(), 'mouseover', function(e) {
+ var sel, table, target = e.target;
+
+ if (startCell && (tableGrid || target != startCell) && (target.nodeName == 'TD' || target.nodeName == 'TH')) {
+ table = dom.getParent(target, 'table');
+ if (table == startTable) {
+ if (!tableGrid) {
+ tableGrid = createTableGrid(table);
+ tableGrid.setStartCell(startCell);
+
+ ed.getBody().style.webkitUserSelect = 'none';
+ }
+
+ tableGrid.setEndCell(target);
+ hasCellSelection = true;
+ }
+
+ // Remove current selection
+ sel = ed.selection.getSel();
+
+ try {
+ if (sel.removeAllRanges)
+ sel.removeAllRanges();
+ else
+ sel.empty();
+ } catch (ex) {
+ // IE9 might throw errors here
+ }
+
+ e.preventDefault();
+ }
+ });
+
+ ed.onMouseUp.add(function(ed, e) {
+ var rng, sel = ed.selection, selectedCells, nativeSel = sel.getSel(), walker, node, lastNode, endNode;
+
+ // Move selection to startCell
+ if (startCell) {
+ if (tableGrid)
+ ed.getBody().style.webkitUserSelect = '';
+
+ function setPoint(node, start) {
+ var walker = new tinymce.dom.TreeWalker(node, node);
+
+ do {
+ // Text node
+ if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length != 0) {
+ if (start)
+ rng.setStart(node, 0);
+ else
+ rng.setEnd(node, node.nodeValue.length);
+
+ return;
+ }
+
+ // BR element
+ if (node.nodeName == 'BR') {
+ if (start)
+ rng.setStartBefore(node);
+ else
+ rng.setEndBefore(node);
+
+ return;
+ }
+ } while (node = (start ? walker.next() : walker.prev()));
+ }
+
+ // Try to expand text selection as much as we can only Gecko supports cell selection
+ selectedCells = dom.select('td.mceSelected,th.mceSelected');
+ if (selectedCells.length > 0) {
+ rng = dom.createRng();
+ node = selectedCells[0];
+ endNode = selectedCells[selectedCells.length - 1];
+ rng.setStartBefore(node);
+ rng.setEndAfter(node);
+
+ setPoint(node, 1);
+ walker = new tinymce.dom.TreeWalker(node, dom.getParent(selectedCells[0], 'table'));
+
+ do {
+ if (node.nodeName == 'TD' || node.nodeName == 'TH') {
+ if (!dom.hasClass(node, 'mceSelected'))
+ break;
+
+ lastNode = node;
+ }
+ } while (node = walker.next());
+
+ setPoint(lastNode);
+
+ sel.setRng(rng);
+ }
+
+ ed.nodeChanged();
+ startCell = tableGrid = startTable = null;
+ }
+ });
+
+ ed.onKeyUp.add(function(ed, e) {
+ cleanup();
+ });
+
+ ed.onKeyDown.add(function (ed, e) {
+ fixTableCellSelection(ed);
+ });
+
+ ed.onMouseDown.add(function (ed, e) {
+ if (e.button != 2) {
+ fixTableCellSelection(ed);
+ }
+ });
+ function tableCellSelected(ed, rng, n, currentCell) {
+ // The decision of when a table cell is selected is somewhat involved. The fact that this code is
+ // required is actually a pointer to the root cause of this bug. A cell is selected when the start
+ // and end offsets are 0, the start container is a text, and the selection node is either a TR (most cases)
+ // or the parent of the table (in the case of the selection containing the last cell of a table).
+ var TEXT_NODE = 3, table = ed.dom.getParent(rng.startContainer, 'TABLE'),
+ tableParent, allOfCellSelected, tableCellSelection;
+ if (table)
+ tableParent = table.parentNode;
+ allOfCellSelected =rng.startContainer.nodeType == TEXT_NODE &&
+ rng.startOffset == 0 &&
+ rng.endOffset == 0 &&
+ currentCell &&
+ (n.nodeName=="TR" || n==tableParent);
+ tableCellSelection = (n.nodeName=="TD"||n.nodeName=="TH")&& !currentCell;
+ return allOfCellSelected || tableCellSelection;
+ // return false;
+ }
+
+ // this nasty hack is here to work around some WebKit selection bugs.
+ function fixTableCellSelection(ed) {
+ if (!tinymce.isWebKit)
+ return;
+
+ var rng = ed.selection.getRng();
+ var n = ed.selection.getNode();
+ var currentCell = ed.dom.getParent(rng.startContainer, 'TD,TH');
+
+ if (!tableCellSelected(ed, rng, n, currentCell))
+ return;
+ if (!currentCell) {
+ currentCell=n;
+ }
+
+ // Get the very last node inside the table cell
+ var end = currentCell.lastChild;
+ while (end.lastChild)
+ end = end.lastChild;
+
+ // Select the entire table cell. Nothing outside of the table cell should be selected.
+ rng.setEnd(end, end.nodeValue.length);
+ ed.selection.setRng(rng);
+ }
+ ed.plugins.table.fixTableCellSelection=fixTableCellSelection;
+
+ // Add context menu
+ if (ed && ed.plugins.contextmenu) {
+ ed.plugins.contextmenu.onContextMenu.add(function(th, m, e) {
+ var sm, se = ed.selection, el = se.getNode() || ed.getBody();
+
+ if (ed.dom.getParent(e, 'td') || ed.dom.getParent(e, 'th') || ed.dom.select('td.mceSelected,th.mceSelected').length) {
+ m.removeAll();
+
+ if (el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) {
+ m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});
+ m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'});
+ m.addSeparator();
+ }
+
+ if (el.nodeName == 'IMG' && el.className.indexOf('mceItem') == -1) {
+ m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true});
+ m.addSeparator();
+ }
+
+ m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable', value : {action : 'insert'}});
+ m.add({title : 'table.props_desc', icon : 'table_props', cmd : 'mceInsertTable'});
+ m.add({title : 'table.del', icon : 'delete_table', cmd : 'mceTableDelete'});
+ m.addSeparator();
+
+ // Cell menu
+ sm = m.addMenu({title : 'table.cell'});
+ sm.add({title : 'table.cell_desc', icon : 'cell_props', cmd : 'mceTableCellProps'});
+ sm.add({title : 'table.split_cells_desc', icon : 'split_cells', cmd : 'mceTableSplitCells'});
+ sm.add({title : 'table.merge_cells_desc', icon : 'merge_cells', cmd : 'mceTableMergeCells'});
+
+ // Row menu
+ sm = m.addMenu({title : 'table.row'});
+ sm.add({title : 'table.row_desc', icon : 'row_props', cmd : 'mceTableRowProps'});
+ sm.add({title : 'table.row_before_desc', icon : 'row_before', cmd : 'mceTableInsertRowBefore'});
+ sm.add({title : 'table.row_after_desc', icon : 'row_after', cmd : 'mceTableInsertRowAfter'});
+ sm.add({title : 'table.delete_row_desc', icon : 'delete_row', cmd : 'mceTableDeleteRow'});
+ sm.addSeparator();
+ sm.add({title : 'table.cut_row_desc', icon : 'cut', cmd : 'mceTableCutRow'});
+ sm.add({title : 'table.copy_row_desc', icon : 'copy', cmd : 'mceTableCopyRow'});
+ sm.add({title : 'table.paste_row_before_desc', icon : 'paste', cmd : 'mceTablePasteRowBefore'}).setDisabled(!clipboardRows);
+ sm.add({title : 'table.paste_row_after_desc', icon : 'paste', cmd : 'mceTablePasteRowAfter'}).setDisabled(!clipboardRows);
+
+ // Column menu
+ sm = m.addMenu({title : 'table.col'});
+ sm.add({title : 'table.col_before_desc', icon : 'col_before', cmd : 'mceTableInsertColBefore'});
+ sm.add({title : 'table.col_after_desc', icon : 'col_after', cmd : 'mceTableInsertColAfter'});
+ sm.add({title : 'table.delete_col_desc', icon : 'delete_col', cmd : 'mceTableDeleteCol'});
+ } else
+ m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable'});
+ });
+ }
+
+ // Fix to allow navigating up and down in a table in WebKit browsers.
+ if (tinymce.isWebKit) {
+ function moveSelection(ed, e) {
+ var VK = tinymce.VK;
+ var key = e.keyCode;
+
+ function handle(upBool, sourceNode, event) {
+ var siblingDirection = upBool ? 'previousSibling' : 'nextSibling';
+ var currentRow = ed.dom.getParent(sourceNode, 'tr');
+ var siblingRow = currentRow[siblingDirection];
+
+ if (siblingRow) {
+ moveCursorToRow(ed, sourceNode, siblingRow, upBool);
+ tinymce.dom.Event.cancel(event);
+ return true;
+ } else {
+ var tableNode = ed.dom.getParent(currentRow, 'table');
+ var middleNode = currentRow.parentNode;
+ var parentNodeName = middleNode.nodeName.toLowerCase();
+ if (parentNodeName === 'tbody' || parentNodeName === (upBool ? 'tfoot' : 'thead')) {
+ var targetParent = getTargetParent(upBool, tableNode, middleNode, 'tbody');
+ if (targetParent !== null) {
+ return moveToRowInTarget(upBool, targetParent, sourceNode, event);
+ }
+ }
+ return escapeTable(upBool, currentRow, siblingDirection, tableNode, event);
+ }
+ }
+
+ function getTargetParent(upBool, topNode, secondNode, nodeName) {
+ var tbodies = ed.dom.select('>' + nodeName, topNode);
+ var position = tbodies.indexOf(secondNode);
+ if (upBool && position === 0 || !upBool && position === tbodies.length - 1) {
+ return getFirstHeadOrFoot(upBool, topNode);
+ } else if (position === -1) {
+ var topOrBottom = secondNode.tagName.toLowerCase() === 'thead' ? 0 : tbodies.length - 1;
+ return tbodies[topOrBottom];
+ } else {
+ return tbodies[position + (upBool ? -1 : 1)];
+ }
+ }
+
+ function getFirstHeadOrFoot(upBool, parent) {
+ var tagName = upBool ? 'thead' : 'tfoot';
+ var headOrFoot = ed.dom.select('>' + tagName, parent);
+ return headOrFoot.length !== 0 ? headOrFoot[0] : null;
+ }
+
+ function moveToRowInTarget(upBool, targetParent, sourceNode, event) {
+ var targetRow = getChildForDirection(targetParent, upBool);
+ targetRow && moveCursorToRow(ed, sourceNode, targetRow, upBool);
+ tinymce.dom.Event.cancel(event);
+ return true;
+ }
+
+ function escapeTable(upBool, currentRow, siblingDirection, table, event) {
+ var tableSibling = table[siblingDirection];
+ if (tableSibling) {
+ moveCursorToStartOfElement(tableSibling);
+ return true;
+ } else {
+ var parentCell = ed.dom.getParent(table, 'td,th');
+ if (parentCell) {
+ return handle(upBool, parentCell, event);
+ } else {
+ var backUpSibling = getChildForDirection(currentRow, !upBool);
+ moveCursorToStartOfElement(backUpSibling);
+ return tinymce.dom.Event.cancel(event);
+ }
+ }
+ }
+
+ function getChildForDirection(parent, up) {
+ var child = parent && parent[up ? 'lastChild' : 'firstChild'];
+ // BR is not a valid table child to return in this case we return the table cell
+ return child && child.nodeName === 'BR' ? ed.dom.getParent(child, 'td,th') : child;
+ }
+
+ function moveCursorToStartOfElement(n) {
+ ed.selection.setCursorLocation(n, 0);
+ }
+
+ function isVerticalMovement() {
+ return key == VK.UP || key == VK.DOWN;
+ }
+
+ function isInTable(ed) {
+ var node = ed.selection.getNode();
+ var currentRow = ed.dom.getParent(node, 'tr');
+ return currentRow !== null;
+ }
+
+ function columnIndex(column) {
+ var colIndex = 0;
+ var c = column;
+ while (c.previousSibling) {
+ c = c.previousSibling;
+ colIndex = colIndex + getSpanVal(c, "colspan");
+ }
+ return colIndex;
+ }
+
+ function findColumn(rowElement, columnIndex) {
+ var c = 0;
+ var r = 0;
+ each(rowElement.children, function(cell, i) {
+ c = c + getSpanVal(cell, "colspan");
+ r = i;
+ if (c > columnIndex)
+ return false;
+ });
+ return r;
+ }
+
+ function moveCursorToRow(ed, node, row, upBool) {
+ var srcColumnIndex = columnIndex(ed.dom.getParent(node, 'td,th'));
+ var tgtColumnIndex = findColumn(row, srcColumnIndex);
+ var tgtNode = row.childNodes[tgtColumnIndex];
+ var rowCellTarget = getChildForDirection(tgtNode, upBool);
+ moveCursorToStartOfElement(rowCellTarget || tgtNode);
+ }
+
+ function shouldFixCaret(preBrowserNode) {
+ var newNode = ed.selection.getNode();
+ var newParent = ed.dom.getParent(newNode, 'td,th');
+ var oldParent = ed.dom.getParent(preBrowserNode, 'td,th');
+ return newParent && newParent !== oldParent && checkSameParentTable(newParent, oldParent)
+ }
+
+ function checkSameParentTable(nodeOne, NodeTwo) {
+ return ed.dom.getParent(nodeOne, 'TABLE') === ed.dom.getParent(NodeTwo, 'TABLE');
+ }
+
+ if (isVerticalMovement() && isInTable(ed)) {
+ var preBrowserNode = ed.selection.getNode();
+ setTimeout(function() {
+ if (shouldFixCaret(preBrowserNode)) {
+ handle(!e.shiftKey && key === VK.UP, preBrowserNode, e);
+ }
+ }, 0);
+ }
+ }
+
+ ed.onKeyDown.add(moveSelection);
+ }
+
+ // Fixes an issue on Gecko where it's impossible to place the caret behind a table
+ // This fix will force a paragraph element after the table but only when the forced_root_block setting is enabled
+ function fixTableCaretPos() {
+ var last;
+
+ // Skip empty text nodes form the end
+ for (last = ed.getBody().lastChild; last && last.nodeType == 3 && !last.nodeValue.length; last = last.previousSibling) ;
+
+ if (last && last.nodeName == 'TABLE') {
+ if (ed.settings.forced_root_block)
+ ed.dom.add(ed.getBody(), ed.settings.forced_root_block, null, tinymce.isIE ? '&nbsp;' : '<br data-mce-bogus="1" />');
+ else
+ ed.dom.add(ed.getBody(), 'br', {'data-mce-bogus': '1'});
+ }
+ };
+
+ // Fixes an bug where it's impossible to place the caret before a table in Gecko
+ // this fix solves it by detecting when the caret is at the beginning of such a table
+ // and then manually moves the caret infront of the table
+ if (tinymce.isGecko) {
+ ed.onKeyDown.add(function(ed, e) {
+ var rng, table, dom = ed.dom;
+
+ // On gecko it's not possible to place the caret before a table
+ if (e.keyCode == 37 || e.keyCode == 38) {
+ rng = ed.selection.getRng();
+ table = dom.getParent(rng.startContainer, 'table');
+
+ if (table && ed.getBody().firstChild == table) {
+ if (isAtStart(rng, table)) {
+ rng = dom.createRng();
+
+ rng.setStartBefore(table);
+ rng.setEndBefore(table);
+
+ ed.selection.setRng(rng);
+
+ e.preventDefault();
+ }
+ }
+ }
+ });
+ }
+
+ ed.onKeyUp.add(fixTableCaretPos);
+ ed.onSetContent.add(fixTableCaretPos);
+ ed.onVisualAid.add(fixTableCaretPos);
+
+ ed.onPreProcess.add(function(ed, o) {
+ var last = o.node.lastChild;
+
+ if (last && (last.nodeName == "BR" || (last.childNodes.length == 1 && (last.firstChild.nodeName == 'BR' || last.firstChild.nodeValue == '\u00a0'))) && last.previousSibling && last.previousSibling.nodeName == "TABLE") {
+ ed.dom.remove(last);
+ }
+ });
+
+
+ /**
+ * Fixes bug in Gecko where shift-enter in table cell does not place caret on new line
+ *
+ * Removed: Since the new enter logic seems to fix this one.
+ */
+ /*
+ if (tinymce.isGecko) {
+ ed.onKeyDown.add(function(ed, e) {
+ if (e.keyCode === tinymce.VK.ENTER && e.shiftKey) {
+ var node = ed.selection.getRng().startContainer;
+ var tableCell = dom.getParent(node, 'td,th');
+ if (tableCell) {
+ var zeroSizedNbsp = ed.getDoc().createTextNode("\uFEFF");
+ dom.insertAfter(zeroSizedNbsp, node);
+ }
+ }
+ });
+ }
+ */
+
+ fixTableCaretPos();
+ ed.startContent = ed.getContent({format : 'raw'});
+ });
+
+ // Register action commands
+ each({
+ mceTableSplitCells : function(grid) {
+ grid.split();
+ },
+
+ mceTableMergeCells : function(grid) {
+ var rowSpan, colSpan, cell;
+
+ cell = ed.dom.getParent(ed.selection.getNode(), 'th,td');
+ if (cell) {
+ rowSpan = cell.rowSpan;
+ colSpan = cell.colSpan;
+ }
+
+ if (!ed.dom.select('td.mceSelected,th.mceSelected').length) {
+ winMan.open({
+ url : url + '/merge_cells.htm',
+ width : 240 + parseInt(ed.getLang('table.merge_cells_delta_width', 0)),
+ height : 110 + parseInt(ed.getLang('table.merge_cells_delta_height', 0)),
+ inline : 1
+ }, {
+ rows : rowSpan,
+ cols : colSpan,
+ onaction : function(data) {
+ grid.merge(cell, data.cols, data.rows);
+ },
+ plugin_url : url
+ });
+ } else
+ grid.merge();
+ },
+
+ mceTableInsertRowBefore : function(grid) {
+ grid.insertRow(true);
+ },
+
+ mceTableInsertRowAfter : function(grid) {
+ grid.insertRow();
+ },
+
+ mceTableInsertColBefore : function(grid) {
+ grid.insertCol(true);
+ },
+
+ mceTableInsertColAfter : function(grid) {
+ grid.insertCol();
+ },
+
+ mceTableDeleteCol : function(grid) {
+ grid.deleteCols();
+ },
+
+ mceTableDeleteRow : function(grid) {
+ grid.deleteRows();
+ },
+
+ mceTableCutRow : function(grid) {
+ clipboardRows = grid.cutRows();
+ },
+
+ mceTableCopyRow : function(grid) {
+ clipboardRows = grid.copyRows();
+ },
+
+ mceTablePasteRowBefore : function(grid) {
+ grid.pasteRows(clipboardRows, true);
+ },
+
+ mceTablePasteRowAfter : function(grid) {
+ grid.pasteRows(clipboardRows);
+ },
+
+ mceTableDelete : function(grid) {
+ grid.deleteTable();
+ }
+ }, function(func, name) {
+ ed.addCommand(name, function() {
+ var grid = createTableGrid();
+
+ if (grid) {
+ func(grid);
+ ed.execCommand('mceRepaint');
+ cleanup();
+ }
+ });
+ });
+
+ // Register dialog commands
+ each({
+ mceInsertTable : function(val) {
+ winMan.open({
+ url : url + '/table.htm',
+ width : 400 + parseInt(ed.getLang('table.table_delta_width', 0)),
+ height : 320 + parseInt(ed.getLang('table.table_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url,
+ action : val ? val.action : 0
+ });
+ },
+
+ mceTableRowProps : function() {
+ winMan.open({
+ url : url + '/row.htm',
+ width : 400 + parseInt(ed.getLang('table.rowprops_delta_width', 0)),
+ height : 295 + parseInt(ed.getLang('table.rowprops_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ },
+
+ mceTableCellProps : function() {
+ winMan.open({
+ url : url + '/cell.htm',
+ width : 400 + parseInt(ed.getLang('table.cellprops_delta_width', 0)),
+ height : 295 + parseInt(ed.getLang('table.cellprops_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ }
+ }, function(func, name) {
+ ed.addCommand(name, function(ui, val) {
+ func(val);
+ });
+ });
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('table', tinymce.plugins.TablePlugin);
+})(tinymce);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/cell.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/cell.js
new file mode 100644
index 00000000..02ecf22c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/cell.js
@@ -0,0 +1,319 @@
+tinyMCEPopup.requireLangPack();
+
+var ed;
+
+function init() {
+ ed = tinyMCEPopup.editor;
+ tinyMCEPopup.resizeToInnerSize();
+
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
+ document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
+ document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor')
+
+ var inst = ed;
+ var tdElm = ed.dom.getParent(ed.selection.getStart(), "td,th");
+ var formObj = document.forms[0];
+ var st = ed.dom.parseStyle(ed.dom.getAttrib(tdElm, "style"));
+
+ // Get table cell data
+ var celltype = tdElm.nodeName.toLowerCase();
+ var align = ed.dom.getAttrib(tdElm, 'align');
+ var valign = ed.dom.getAttrib(tdElm, 'valign');
+ var width = trimSize(getStyle(tdElm, 'width', 'width'));
+ var height = trimSize(getStyle(tdElm, 'height', 'height'));
+ var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor'));
+ var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor'));
+ var className = ed.dom.getAttrib(tdElm, 'class');
+ var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
+ var id = ed.dom.getAttrib(tdElm, 'id');
+ var lang = ed.dom.getAttrib(tdElm, 'lang');
+ var dir = ed.dom.getAttrib(tdElm, 'dir');
+ var scope = ed.dom.getAttrib(tdElm, 'scope');
+
+ // Setup form
+ addClassesToList('class', 'table_cell_styles');
+ TinyMCE_EditableSelects.init();
+
+ if (!ed.dom.hasClass(tdElm, 'mceSelected')) {
+ formObj.bordercolor.value = bordercolor;
+ formObj.bgcolor.value = bgcolor;
+ formObj.backgroundimage.value = backgroundimage;
+ formObj.width.value = width;
+ formObj.height.value = height;
+ formObj.id.value = id;
+ formObj.lang.value = lang;
+ formObj.style.value = ed.dom.serializeStyle(st);
+ selectByValue(formObj, 'align', align);
+ selectByValue(formObj, 'valign', valign);
+ selectByValue(formObj, 'class', className, true, true);
+ selectByValue(formObj, 'celltype', celltype);
+ selectByValue(formObj, 'dir', dir);
+ selectByValue(formObj, 'scope', scope);
+
+ // Resize some elements
+ if (isVisible('backgroundimagebrowser'))
+ document.getElementById('backgroundimage').style.width = '180px';
+
+ updateColor('bordercolor_pick', 'bordercolor');
+ updateColor('bgcolor_pick', 'bgcolor');
+ } else
+ tinyMCEPopup.dom.hide('action');
+}
+
+function updateAction() {
+ var el, inst = ed, tdElm, trElm, tableElm, formObj = document.forms[0];
+
+ if (!AutoValidator.validate(formObj)) {
+ tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
+ return false;
+ }
+
+ tinyMCEPopup.restoreSelection();
+ el = ed.selection.getStart();
+ tdElm = ed.dom.getParent(el, "td,th");
+ trElm = ed.dom.getParent(el, "tr");
+ tableElm = ed.dom.getParent(el, "table");
+
+ // Cell is selected
+ if (ed.dom.hasClass(tdElm, 'mceSelected')) {
+ // Update all selected sells
+ tinymce.each(ed.dom.select('td.mceSelected,th.mceSelected'), function(td) {
+ updateCell(td);
+ });
+
+ ed.addVisual();
+ ed.nodeChanged();
+ inst.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+ return;
+ }
+
+ switch (getSelectValue(formObj, 'action')) {
+ case "cell":
+ var celltype = getSelectValue(formObj, 'celltype');
+ var scope = getSelectValue(formObj, 'scope');
+
+ function doUpdate(s) {
+ if (s) {
+ updateCell(tdElm);
+
+ ed.addVisual();
+ ed.nodeChanged();
+ inst.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+ }
+ };
+
+ if (ed.getParam("accessibility_warnings", 1)) {
+ if (celltype == "th" && scope == "")
+ tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate);
+ else
+ doUpdate(1);
+
+ return;
+ }
+
+ updateCell(tdElm);
+ break;
+
+ case "row":
+ var cell = trElm.firstChild;
+
+ if (cell.nodeName != "TD" && cell.nodeName != "TH")
+ cell = nextCell(cell);
+
+ do {
+ cell = updateCell(cell, true);
+ } while ((cell = nextCell(cell)) != null);
+
+ break;
+
+ case "col":
+ var curr, col = 0, cell = trElm.firstChild, rows = tableElm.getElementsByTagName("tr");
+
+ if (cell.nodeName != "TD" && cell.nodeName != "TH")
+ cell = nextCell(cell);
+
+ do {
+ if (cell == tdElm)
+ break;
+ col += cell.getAttribute("colspan")?cell.getAttribute("colspan"):1;
+ } while ((cell = nextCell(cell)) != null);
+
+ for (var i=0; i<rows.length; i++) {
+ cell = rows[i].firstChild;
+
+ if (cell.nodeName != "TD" && cell.nodeName != "TH")
+ cell = nextCell(cell);
+
+ curr = 0;
+ do {
+ if (curr == col) {
+ cell = updateCell(cell, true);
+ break;
+ }
+ curr += cell.getAttribute("colspan")?cell.getAttribute("colspan"):1;
+ } while ((cell = nextCell(cell)) != null);
+ }
+
+ break;
+
+ case "all":
+ var rows = tableElm.getElementsByTagName("tr");
+
+ for (var i=0; i<rows.length; i++) {
+ var cell = rows[i].firstChild;
+
+ if (cell.nodeName != "TD" && cell.nodeName != "TH")
+ cell = nextCell(cell);
+
+ do {
+ cell = updateCell(cell, true);
+ } while ((cell = nextCell(cell)) != null);
+ }
+
+ break;
+ }
+
+ ed.addVisual();
+ ed.nodeChanged();
+ inst.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+}
+
+function nextCell(elm) {
+ while ((elm = elm.nextSibling) != null) {
+ if (elm.nodeName == "TD" || elm.nodeName == "TH")
+ return elm;
+ }
+
+ return null;
+}
+
+function updateCell(td, skip_id) {
+ var inst = ed;
+ var formObj = document.forms[0];
+ var curCellType = td.nodeName.toLowerCase();
+ var celltype = getSelectValue(formObj, 'celltype');
+ var doc = inst.getDoc();
+ var dom = ed.dom;
+
+ if (!skip_id)
+ dom.setAttrib(td, 'id', formObj.id.value);
+
+ dom.setAttrib(td, 'align', formObj.align.value);
+ dom.setAttrib(td, 'vAlign', formObj.valign.value);
+ dom.setAttrib(td, 'lang', formObj.lang.value);
+ dom.setAttrib(td, 'dir', getSelectValue(formObj, 'dir'));
+ dom.setAttrib(td, 'style', ed.dom.serializeStyle(ed.dom.parseStyle(formObj.style.value)));
+ dom.setAttrib(td, 'scope', formObj.scope.value);
+ dom.setAttrib(td, 'class', getSelectValue(formObj, 'class'));
+
+ // Clear deprecated attributes
+ ed.dom.setAttrib(td, 'width', '');
+ ed.dom.setAttrib(td, 'height', '');
+ ed.dom.setAttrib(td, 'bgColor', '');
+ ed.dom.setAttrib(td, 'borderColor', '');
+ ed.dom.setAttrib(td, 'background', '');
+
+ // Set styles
+ td.style.width = getCSSSize(formObj.width.value);
+ td.style.height = getCSSSize(formObj.height.value);
+ if (formObj.bordercolor.value != "") {
+ td.style.borderColor = formObj.bordercolor.value;
+ td.style.borderStyle = td.style.borderStyle == "" ? "solid" : td.style.borderStyle;
+ td.style.borderWidth = td.style.borderWidth == "" ? "1px" : td.style.borderWidth;
+ } else
+ td.style.borderColor = '';
+
+ td.style.backgroundColor = formObj.bgcolor.value;
+
+ if (formObj.backgroundimage.value != "")
+ td.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
+ else
+ td.style.backgroundImage = '';
+
+ if (curCellType != celltype) {
+ // changing to a different node type
+ var newCell = doc.createElement(celltype);
+
+ for (var c=0; c<td.childNodes.length; c++)
+ newCell.appendChild(td.childNodes[c].cloneNode(1));
+
+ for (var a=0; a<td.attributes.length; a++)
+ ed.dom.setAttrib(newCell, td.attributes[a].name, ed.dom.getAttrib(td, td.attributes[a].name));
+
+ td.parentNode.replaceChild(newCell, td);
+ td = newCell;
+ }
+
+ dom.setAttrib(td, 'style', dom.serializeStyle(dom.parseStyle(td.style.cssText)));
+
+ return td;
+}
+
+function changedBackgroundImage() {
+ var formObj = document.forms[0];
+ var st = ed.dom.parseStyle(formObj.style.value);
+
+ st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
+
+ formObj.style.value = ed.dom.serializeStyle(st);
+}
+
+function changedSize() {
+ var formObj = document.forms[0];
+ var st = ed.dom.parseStyle(formObj.style.value);
+
+ var width = formObj.width.value;
+ if (width != "")
+ st['width'] = getCSSSize(width);
+ else
+ st['width'] = "";
+
+ var height = formObj.height.value;
+ if (height != "")
+ st['height'] = getCSSSize(height);
+ else
+ st['height'] = "";
+
+ formObj.style.value = ed.dom.serializeStyle(st);
+}
+
+function changedColor() {
+ var formObj = document.forms[0];
+ var st = ed.dom.parseStyle(formObj.style.value);
+
+ st['background-color'] = formObj.bgcolor.value;
+ st['border-color'] = formObj.bordercolor.value;
+
+ formObj.style.value = ed.dom.serializeStyle(st);
+}
+
+function changedStyle() {
+ var formObj = document.forms[0];
+ var st = ed.dom.parseStyle(formObj.style.value);
+
+ if (st['background-image'])
+ formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
+ else
+ formObj.backgroundimage.value = '';
+
+ if (st['width'])
+ formObj.width.value = trimSize(st['width']);
+
+ if (st['height'])
+ formObj.height.value = trimSize(st['height']);
+
+ if (st['background-color']) {
+ formObj.bgcolor.value = st['background-color'];
+ updateColor('bgcolor_pick','bgcolor');
+ }
+
+ if (st['border-color']) {
+ formObj.bordercolor.value = st['border-color'];
+ updateColor('bordercolor_pick','bordercolor');
+ }
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/merge_cells.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/merge_cells.js
new file mode 100644
index 00000000..7ee4bf04
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/merge_cells.js
@@ -0,0 +1,27 @@
+tinyMCEPopup.requireLangPack();
+
+var MergeCellsDialog = {
+ init : function() {
+ var f = document.forms[0];
+
+ f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1);
+ f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1);
+ },
+
+ merge : function() {
+ var func, f = document.forms[0];
+
+ tinyMCEPopup.restoreSelection();
+
+ func = tinyMCEPopup.getWindowArg('onaction');
+
+ func({
+ cols : f.numcols.value,
+ rows : f.numrows.value
+ });
+
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/row.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/row.js
new file mode 100644
index 00000000..a13d6959
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/row.js
@@ -0,0 +1,237 @@
+tinyMCEPopup.requireLangPack();
+
+function init() {
+ tinyMCEPopup.resizeToInnerSize();
+
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
+ document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
+
+ var inst = tinyMCEPopup.editor;
+ var dom = inst.dom;
+ var trElm = dom.getParent(inst.selection.getStart(), "tr");
+ var formObj = document.forms[0];
+ var st = dom.parseStyle(dom.getAttrib(trElm, "style"));
+
+ // Get table row data
+ var rowtype = trElm.parentNode.nodeName.toLowerCase();
+ var align = dom.getAttrib(trElm, 'align');
+ var valign = dom.getAttrib(trElm, 'valign');
+ var height = trimSize(getStyle(trElm, 'height', 'height'));
+ var className = dom.getAttrib(trElm, 'class');
+ var bgcolor = convertRGBToHex(getStyle(trElm, 'bgcolor', 'backgroundColor'));
+ var backgroundimage = getStyle(trElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
+ var id = dom.getAttrib(trElm, 'id');
+ var lang = dom.getAttrib(trElm, 'lang');
+ var dir = dom.getAttrib(trElm, 'dir');
+
+ selectByValue(formObj, 'rowtype', rowtype);
+
+ // Any cells selected
+ if (dom.select('td.mceSelected,th.mceSelected', trElm).length == 0) {
+ // Setup form
+ addClassesToList('class', 'table_row_styles');
+ TinyMCE_EditableSelects.init();
+
+ formObj.bgcolor.value = bgcolor;
+ formObj.backgroundimage.value = backgroundimage;
+ formObj.height.value = height;
+ formObj.id.value = id;
+ formObj.lang.value = lang;
+ formObj.style.value = dom.serializeStyle(st);
+ selectByValue(formObj, 'align', align);
+ selectByValue(formObj, 'valign', valign);
+ selectByValue(formObj, 'class', className, true, true);
+ selectByValue(formObj, 'dir', dir);
+
+ // Resize some elements
+ if (isVisible('backgroundimagebrowser'))
+ document.getElementById('backgroundimage').style.width = '180px';
+
+ updateColor('bgcolor_pick', 'bgcolor');
+ } else
+ tinyMCEPopup.dom.hide('action');
+}
+
+function updateAction() {
+ var inst = tinyMCEPopup.editor, dom = inst.dom, trElm, tableElm, formObj = document.forms[0];
+ var action = getSelectValue(formObj, 'action');
+
+ if (!AutoValidator.validate(formObj)) {
+ tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
+ return false;
+ }
+
+ tinyMCEPopup.restoreSelection();
+ trElm = dom.getParent(inst.selection.getStart(), "tr");
+ tableElm = dom.getParent(inst.selection.getStart(), "table");
+
+ // Update all selected rows
+ if (dom.select('td.mceSelected,th.mceSelected', trElm).length > 0) {
+ tinymce.each(tableElm.rows, function(tr) {
+ var i;
+
+ for (i = 0; i < tr.cells.length; i++) {
+ if (dom.hasClass(tr.cells[i], 'mceSelected')) {
+ updateRow(tr, true);
+ return;
+ }
+ }
+ });
+
+ inst.addVisual();
+ inst.nodeChanged();
+ inst.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+ return;
+ }
+
+ switch (action) {
+ case "row":
+ updateRow(trElm);
+ break;
+
+ case "all":
+ var rows = tableElm.getElementsByTagName("tr");
+
+ for (var i=0; i<rows.length; i++)
+ updateRow(rows[i], true);
+
+ break;
+
+ case "odd":
+ case "even":
+ var rows = tableElm.getElementsByTagName("tr");
+
+ for (var i=0; i<rows.length; i++) {
+ if ((i % 2 == 0 && action == "odd") || (i % 2 != 0 && action == "even"))
+ updateRow(rows[i], true, true);
+ }
+
+ break;
+ }
+
+ inst.addVisual();
+ inst.nodeChanged();
+ inst.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+}
+
+function updateRow(tr_elm, skip_id, skip_parent) {
+ var inst = tinyMCEPopup.editor;
+ var formObj = document.forms[0];
+ var dom = inst.dom;
+ var curRowType = tr_elm.parentNode.nodeName.toLowerCase();
+ var rowtype = getSelectValue(formObj, 'rowtype');
+ var doc = inst.getDoc();
+
+ // Update row element
+ if (!skip_id)
+ dom.setAttrib(tr_elm, 'id', formObj.id.value);
+
+ dom.setAttrib(tr_elm, 'align', getSelectValue(formObj, 'align'));
+ dom.setAttrib(tr_elm, 'vAlign', getSelectValue(formObj, 'valign'));
+ dom.setAttrib(tr_elm, 'lang', formObj.lang.value);
+ dom.setAttrib(tr_elm, 'dir', getSelectValue(formObj, 'dir'));
+ dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(formObj.style.value)));
+ dom.setAttrib(tr_elm, 'class', getSelectValue(formObj, 'class'));
+
+ // Clear deprecated attributes
+ dom.setAttrib(tr_elm, 'background', '');
+ dom.setAttrib(tr_elm, 'bgColor', '');
+ dom.setAttrib(tr_elm, 'height', '');
+
+ // Set styles
+ tr_elm.style.height = getCSSSize(formObj.height.value);
+ tr_elm.style.backgroundColor = formObj.bgcolor.value;
+
+ if (formObj.backgroundimage.value != "")
+ tr_elm.style.backgroundImage = "url('" + formObj.backgroundimage.value + "')";
+ else
+ tr_elm.style.backgroundImage = '';
+
+ // Setup new rowtype
+ if (curRowType != rowtype && !skip_parent) {
+ // first, clone the node we are working on
+ var newRow = tr_elm.cloneNode(1);
+
+ // next, find the parent of its new destination (creating it if necessary)
+ var theTable = dom.getParent(tr_elm, "table");
+ var dest = rowtype;
+ var newParent = null;
+ for (var i = 0; i < theTable.childNodes.length; i++) {
+ if (theTable.childNodes[i].nodeName.toLowerCase() == dest)
+ newParent = theTable.childNodes[i];
+ }
+
+ if (newParent == null) {
+ newParent = doc.createElement(dest);
+
+ if (theTable.firstChild.nodeName == 'CAPTION')
+ inst.dom.insertAfter(newParent, theTable.firstChild);
+ else
+ theTable.insertBefore(newParent, theTable.firstChild);
+ }
+
+ // append the row to the new parent
+ newParent.appendChild(newRow);
+
+ // remove the original
+ tr_elm.parentNode.removeChild(tr_elm);
+
+ // set tr_elm to the new node
+ tr_elm = newRow;
+ }
+
+ dom.setAttrib(tr_elm, 'style', dom.serializeStyle(dom.parseStyle(tr_elm.style.cssText)));
+}
+
+function changedBackgroundImage() {
+ var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
+ var st = dom.parseStyle(formObj.style.value);
+
+ st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
+
+ formObj.style.value = dom.serializeStyle(st);
+}
+
+function changedStyle() {
+ var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
+ var st = dom.parseStyle(formObj.style.value);
+
+ if (st['background-image'])
+ formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1");
+ else
+ formObj.backgroundimage.value = '';
+
+ if (st['height'])
+ formObj.height.value = trimSize(st['height']);
+
+ if (st['background-color']) {
+ formObj.bgcolor.value = st['background-color'];
+ updateColor('bgcolor_pick','bgcolor');
+ }
+}
+
+function changedSize() {
+ var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
+ var st = dom.parseStyle(formObj.style.value);
+
+ var height = formObj.height.value;
+ if (height != "")
+ st['height'] = getCSSSize(height);
+ else
+ st['height'] = "";
+
+ formObj.style.value = dom.serializeStyle(st);
+}
+
+function changedColor() {
+ var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
+ var st = dom.parseStyle(formObj.style.value);
+
+ st['background-color'] = formObj.bgcolor.value;
+
+ formObj.style.value = dom.serializeStyle(st);
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/table.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/table.js
new file mode 100644
index 00000000..1db243b6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/js/table.js
@@ -0,0 +1,501 @@
+tinyMCEPopup.requireLangPack();
+
+var action, orgTableWidth, orgTableHeight, dom = tinyMCEPopup.editor.dom;
+
+function insertTable() {
+ var formObj = document.forms[0];
+ var inst = tinyMCEPopup.editor, dom = inst.dom;
+ var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, className, caption, frame, rules;
+ var html = '', capEl, elm;
+ var cellLimit, rowLimit, colLimit;
+
+ tinyMCEPopup.restoreSelection();
+
+ if (!AutoValidator.validate(formObj)) {
+ tinyMCEPopup.alert(AutoValidator.getErrorMessages(formObj).join('. ') + '.');
+ return false;
+ }
+
+ elm = dom.getParent(inst.selection.getNode(), 'table');
+
+ // Get form data
+ cols = formObj.elements['cols'].value;
+ rows = formObj.elements['rows'].value;
+ border = formObj.elements['border'].value != "" ? formObj.elements['border'].value : 0;
+ cellpadding = formObj.elements['cellpadding'].value != "" ? formObj.elements['cellpadding'].value : "";
+ cellspacing = formObj.elements['cellspacing'].value != "" ? formObj.elements['cellspacing'].value : "";
+ align = getSelectValue(formObj, "align");
+ frame = getSelectValue(formObj, "tframe");
+ rules = getSelectValue(formObj, "rules");
+ width = formObj.elements['width'].value;
+ height = formObj.elements['height'].value;
+ bordercolor = formObj.elements['bordercolor'].value;
+ bgcolor = formObj.elements['bgcolor'].value;
+ className = getSelectValue(formObj, "class");
+ id = formObj.elements['id'].value;
+ summary = formObj.elements['summary'].value;
+ style = formObj.elements['style'].value;
+ dir = formObj.elements['dir'].value;
+ lang = formObj.elements['lang'].value;
+ background = formObj.elements['backgroundimage'].value;
+ caption = formObj.elements['caption'].checked;
+
+ cellLimit = tinyMCEPopup.getParam('table_cell_limit', false);
+ rowLimit = tinyMCEPopup.getParam('table_row_limit', false);
+ colLimit = tinyMCEPopup.getParam('table_col_limit', false);
+
+ // Validate table size
+ if (colLimit && cols > colLimit) {
+ tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit));
+ return false;
+ } else if (rowLimit && rows > rowLimit) {
+ tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit));
+ return false;
+ } else if (cellLimit && cols * rows > cellLimit) {
+ tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit));
+ return false;
+ }
+
+ // Update table
+ if (action == "update") {
+ dom.setAttrib(elm, 'cellPadding', cellpadding, true);
+ dom.setAttrib(elm, 'cellSpacing', cellspacing, true);
+
+ if (!isCssSize(border)) {
+ dom.setAttrib(elm, 'border', border);
+ } else {
+ dom.setAttrib(elm, 'border', '');
+ }
+
+ if (border == '') {
+ dom.setStyle(elm, 'border-width', '');
+ dom.setStyle(elm, 'border', '');
+ dom.setAttrib(elm, 'border', '');
+ }
+
+ dom.setAttrib(elm, 'align', align);
+ dom.setAttrib(elm, 'frame', frame);
+ dom.setAttrib(elm, 'rules', rules);
+ dom.setAttrib(elm, 'class', className);
+ dom.setAttrib(elm, 'style', style);
+ dom.setAttrib(elm, 'id', id);
+ dom.setAttrib(elm, 'summary', summary);
+ dom.setAttrib(elm, 'dir', dir);
+ dom.setAttrib(elm, 'lang', lang);
+
+ capEl = inst.dom.select('caption', elm)[0];
+
+ if (capEl && !caption)
+ capEl.parentNode.removeChild(capEl);
+
+ if (!capEl && caption) {
+ capEl = elm.ownerDocument.createElement('caption');
+
+ if (!tinymce.isIE)
+ capEl.innerHTML = '<br data-mce-bogus="1"/>';
+
+ elm.insertBefore(capEl, elm.firstChild);
+ }
+
+ if (width && inst.settings.inline_styles) {
+ dom.setStyle(elm, 'width', width);
+ dom.setAttrib(elm, 'width', '');
+ } else {
+ dom.setAttrib(elm, 'width', width, true);
+ dom.setStyle(elm, 'width', '');
+ }
+
+ // Remove these since they are not valid XHTML
+ dom.setAttrib(elm, 'borderColor', '');
+ dom.setAttrib(elm, 'bgColor', '');
+ dom.setAttrib(elm, 'background', '');
+
+ if (height && inst.settings.inline_styles) {
+ dom.setStyle(elm, 'height', height);
+ dom.setAttrib(elm, 'height', '');
+ } else {
+ dom.setAttrib(elm, 'height', height, true);
+ dom.setStyle(elm, 'height', '');
+ }
+
+ if (background != '')
+ elm.style.backgroundImage = "url('" + background + "')";
+ else
+ elm.style.backgroundImage = '';
+
+/* if (tinyMCEPopup.getParam("inline_styles")) {
+ if (width != '')
+ elm.style.width = getCSSSize(width);
+ }*/
+
+ if (bordercolor != "") {
+ elm.style.borderColor = bordercolor;
+ elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle;
+ elm.style.borderWidth = cssSize(border);
+ } else
+ elm.style.borderColor = '';
+
+ elm.style.backgroundColor = bgcolor;
+ elm.style.height = getCSSSize(height);
+
+ inst.addVisual();
+
+ // Fix for stange MSIE align bug
+ //elm.outerHTML = elm.outerHTML;
+
+ inst.nodeChanged();
+ inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
+
+ // Repaint if dimensions changed
+ if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight)
+ inst.execCommand('mceRepaint');
+
+ tinyMCEPopup.close();
+ return true;
+ }
+
+ // Create new table
+ html += '<table';
+
+ html += makeAttrib('id', id);
+ if (!isCssSize(border)) {
+ html += makeAttrib('border', border);
+ }
+
+ html += makeAttrib('cellpadding', cellpadding);
+ html += makeAttrib('cellspacing', cellspacing);
+ html += makeAttrib('data-mce-new', '1');
+
+ if (width && inst.settings.inline_styles) {
+ if (style)
+ style += '; ';
+
+ // Force px
+ if (/^[0-9\.]+$/.test(width))
+ width += 'px';
+
+ style += 'width: ' + width;
+ } else
+ html += makeAttrib('width', width);
+
+/* if (height) {
+ if (style)
+ style += '; ';
+
+ style += 'height: ' + height;
+ }*/
+
+ //html += makeAttrib('height', height);
+ //html += makeAttrib('bordercolor', bordercolor);
+ //html += makeAttrib('bgcolor', bgcolor);
+ html += makeAttrib('align', align);
+ html += makeAttrib('frame', frame);
+ html += makeAttrib('rules', rules);
+ html += makeAttrib('class', className);
+ html += makeAttrib('style', style);
+ html += makeAttrib('summary', summary);
+ html += makeAttrib('dir', dir);
+ html += makeAttrib('lang', lang);
+ html += '>';
+
+ if (caption) {
+ if (!tinymce.isIE)
+ html += '<caption><br data-mce-bogus="1"/></caption>';
+ else
+ html += '<caption></caption>';
+ }
+
+ for (var y=0; y<rows; y++) {
+ html += "<tr>";
+
+ for (var x=0; x<cols; x++) {
+ if (!tinymce.isIE)
+ html += '<td><br data-mce-bogus="1"/></td>';
+ else
+ html += '<td></td>';
+ }
+
+ html += "</tr>";
+ }
+
+ html += "</table>";
+
+ // Move table
+ if (inst.settings.fix_table_elements) {
+ var patt = '';
+
+ inst.focus();
+ inst.selection.setContent('<br class="_mce_marker" />');
+
+ tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) {
+ if (patt)
+ patt += ',';
+
+ patt += n + ' ._mce_marker';
+ });
+
+ tinymce.each(inst.dom.select(patt), function(n) {
+ inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n);
+ });
+
+ dom.setOuterHTML(dom.select('br._mce_marker')[0], html);
+ } else
+ inst.execCommand('mceInsertContent', false, html);
+
+ tinymce.each(dom.select('table[data-mce-new]'), function(node) {
+ var tdorth = dom.select('td,th', node);
+
+ // Fixes a bug in IE where the caret cannot be placed after the table if the table is at the end of the document
+ if (tinymce.isIE && node.nextSibling == null) {
+ if (inst.settings.forced_root_block)
+ dom.insertAfter(dom.create(inst.settings.forced_root_block), node);
+ else
+ dom.insertAfter(dom.create('br', {'data-mce-bogus': '1'}), node);
+ }
+
+ try {
+ // IE9 might fail to do this selection
+ inst.selection.setCursorLocation(tdorth[0], 0);
+ } catch (ex) {
+ // Ignore
+ }
+
+ dom.setAttrib(node, 'data-mce-new', '');
+ });
+
+ inst.addVisual();
+ inst.execCommand('mceEndUndoLevel', false, {}, {skip_undo: true});
+
+ tinyMCEPopup.close();
+}
+
+function makeAttrib(attrib, value) {
+ var formObj = document.forms[0];
+ var valueElm = formObj.elements[attrib];
+
+ if (typeof(value) == "undefined" || value == null) {
+ value = "";
+
+ if (valueElm)
+ value = valueElm.value;
+ }
+
+ if (value == "")
+ return "";
+
+ // XML encode it
+ value = value.replace(/&/g, '&amp;');
+ value = value.replace(/\"/g, '&quot;');
+ value = value.replace(/</g, '&lt;');
+ value = value.replace(/>/g, '&gt;');
+
+ return ' ' + attrib + '="' + value + '"';
+}
+
+function init() {
+ tinyMCEPopup.resizeToInnerSize();
+
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
+ document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
+ document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor');
+ document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
+
+ var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', '');
+ var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = "";
+ var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules = "", frame = "";
+ var inst = tinyMCEPopup.editor, dom = inst.dom;
+ var formObj = document.forms[0];
+ var elm = dom.getParent(inst.selection.getNode(), "table");
+
+ // Hide advanced fields that isn't available in the schema
+ tinymce.each("summary id rules dir style frame".split(" "), function(name) {
+ var tr = tinyMCEPopup.dom.getParent(name, "tr") || tinyMCEPopup.dom.getParent("t" + name, "tr");
+
+ if (tr && !tinyMCEPopup.editor.schema.isValid("table", name)) {
+ tr.style.display = 'none';
+ }
+ });
+
+ action = tinyMCEPopup.getWindowArg('action');
+
+ if (!action)
+ action = elm ? "update" : "insert";
+
+ if (elm && action != "insert") {
+ var rowsAr = elm.rows;
+ var cols = 0;
+ for (var i=0; i<rowsAr.length; i++)
+ if (rowsAr[i].cells.length > cols)
+ cols = rowsAr[i].cells.length;
+
+ cols = cols;
+ rows = rowsAr.length;
+
+ st = dom.parseStyle(dom.getAttrib(elm, "style"));
+ border = trimSize(getStyle(elm, 'border', 'borderWidth'));
+ cellpadding = dom.getAttrib(elm, 'cellpadding', "");
+ cellspacing = dom.getAttrib(elm, 'cellspacing', "");
+ width = trimSize(getStyle(elm, 'width', 'width'));
+ height = trimSize(getStyle(elm, 'height', 'height'));
+ bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor'));
+ bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor'));
+ align = dom.getAttrib(elm, 'align', align);
+ frame = dom.getAttrib(elm, 'frame');
+ rules = dom.getAttrib(elm, 'rules');
+ className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, ''));
+ id = dom.getAttrib(elm, 'id');
+ summary = dom.getAttrib(elm, 'summary');
+ style = dom.serializeStyle(st);
+ dir = dom.getAttrib(elm, 'dir');
+ lang = dom.getAttrib(elm, 'lang');
+ background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
+ formObj.caption.checked = elm.getElementsByTagName('caption').length > 0;
+
+ orgTableWidth = width;
+ orgTableHeight = height;
+
+ action = "update";
+ formObj.insert.value = inst.getLang('update');
+ }
+
+ addClassesToList('class', "table_styles");
+ TinyMCE_EditableSelects.init();
+
+ // Update form
+ selectByValue(formObj, 'align', align);
+ selectByValue(formObj, 'tframe', frame);
+ selectByValue(formObj, 'rules', rules);
+ selectByValue(formObj, 'class', className, true, true);
+ formObj.cols.value = cols;
+ formObj.rows.value = rows;
+ formObj.border.value = border;
+ formObj.cellpadding.value = cellpadding;
+ formObj.cellspacing.value = cellspacing;
+ formObj.width.value = width;
+ formObj.height.value = height;
+ formObj.bordercolor.value = bordercolor;
+ formObj.bgcolor.value = bgcolor;
+ formObj.id.value = id;
+ formObj.summary.value = summary;
+ formObj.style.value = style;
+ formObj.dir.value = dir;
+ formObj.lang.value = lang;
+ formObj.backgroundimage.value = background;
+
+ updateColor('bordercolor_pick', 'bordercolor');
+ updateColor('bgcolor_pick', 'bgcolor');
+
+ // Resize some elements
+ if (isVisible('backgroundimagebrowser'))
+ document.getElementById('backgroundimage').style.width = '180px';
+
+ // Disable some fields in update mode
+ if (action == "update") {
+ formObj.cols.disabled = true;
+ formObj.rows.disabled = true;
+ }
+}
+
+function changedSize() {
+ var formObj = document.forms[0];
+ var st = dom.parseStyle(formObj.style.value);
+
+/* var width = formObj.width.value;
+ if (width != "")
+ st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : "";
+ else
+ st['width'] = "";*/
+
+ var height = formObj.height.value;
+ if (height != "")
+ st['height'] = getCSSSize(height);
+ else
+ st['height'] = "";
+
+ formObj.style.value = dom.serializeStyle(st);
+}
+
+function isCssSize(value) {
+ return /^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)$/.test(value);
+}
+
+function cssSize(value, def) {
+ value = tinymce.trim(value || def);
+
+ if (!isCssSize(value)) {
+ return parseInt(value, 10) + 'px';
+ }
+
+ return value;
+}
+
+function changedBackgroundImage() {
+ var formObj = document.forms[0];
+ var st = dom.parseStyle(formObj.style.value);
+
+ st['background-image'] = "url('" + formObj.backgroundimage.value + "')";
+
+ formObj.style.value = dom.serializeStyle(st);
+}
+
+function changedBorder() {
+ var formObj = document.forms[0];
+ var st = dom.parseStyle(formObj.style.value);
+
+ // Update border width if the element has a color
+ if (formObj.border.value != "" && (isCssSize(formObj.border.value) || formObj.bordercolor.value != ""))
+ st['border-width'] = cssSize(formObj.border.value);
+ else {
+ if (!formObj.border.value) {
+ st['border'] = '';
+ st['border-width'] = '';
+ }
+ }
+
+ formObj.style.value = dom.serializeStyle(st);
+}
+
+function changedColor() {
+ var formObj = document.forms[0];
+ var st = dom.parseStyle(formObj.style.value);
+
+ st['background-color'] = formObj.bgcolor.value;
+
+ if (formObj.bordercolor.value != "") {
+ st['border-color'] = formObj.bordercolor.value;
+
+ // Add border-width if it's missing
+ if (!st['border-width'])
+ st['border-width'] = cssSize(formObj.border.value, 1);
+ }
+
+ formObj.style.value = dom.serializeStyle(st);
+}
+
+function changedStyle() {
+ var formObj = document.forms[0];
+ var st = dom.parseStyle(formObj.style.value);
+
+ if (st['background-image'])
+ formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1");
+ else
+ formObj.backgroundimage.value = '';
+
+ if (st['width'])
+ formObj.width.value = trimSize(st['width']);
+
+ if (st['height'])
+ formObj.height.value = trimSize(st['height']);
+
+ if (st['background-color']) {
+ formObj.bgcolor.value = st['background-color'];
+ updateColor('bgcolor_pick','bgcolor');
+ }
+
+ if (st['border-color']) {
+ formObj.bordercolor.value = st['border-color'];
+ updateColor('bordercolor_pick','bordercolor');
+ }
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/de_dlg.js
new file mode 100644
index 00000000..1498c148
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.table_dlg',{"rules_border":"alle 4 Seiten (Border)","rules_box":"alle 4 Seiten (Box)","rules_vsides":"links und rechts","rules_rhs":"nur rechts","rules_lhs":"nur links","rules_hsides":"oben und unten","rules_below":"nur unten","rules_above":"nur oben","rules_void":"keins",rules:"Gitter","frame_all":"zwischen allen Zellen","frame_cols":"zwischen Spalten","frame_rows":"zwischen Zeilen","frame_groups":"zwischen Gruppen","frame_none":"keine",frame:"Rahmen",caption:"Beschriftung der Tabelle","missing_scope":"Soll f\u00fcr diese \u00dcberschrift wirklich kein Bereich angegeben werden? Benutzer mit k\u00f6rperlichen Einschr\u00e4nkungen k\u00f6nnten Schwierigkeiten haben, den Inhalt der Tabelle zu verstehen.","cell_limit":"Die maximale Zellenzahl von {$cells} wurde \u00fcberschritten.","row_limit":"Die maximale Zeilenzahl von {$rows} wurde \u00fcberschritten.","col_limit":"Die maximale Spaltenzahl von {$cols} wurde \u00fcberschritten.",colgroup:"Horizontal gruppieren",rowgroup:"Vertikal gruppieren",scope:"Bezug",tfoot:"Tabellenfu\u00df",tbody:"Tabelleninhalt",thead:"Tabellenkopf","row_all":"Alle Zeilen ver\u00e4ndern","row_even":"Gerade Zeilen ver\u00e4ndern","row_odd":"Ungerade Zeilen ver\u00e4ndern","row_row":"Diese Zeile ver\u00e4ndern","cell_all":"Alle Zellen der Tabelle ver\u00e4ndern","cell_row":"Alle Zellen in dieser Zeile ver\u00e4ndern","cell_cell":"Diese Zelle ver\u00e4ndern",th:"\u00dcberschrift",td:"Textzelle",summary:"Zusammenfassung",bgimage:"Hintergrundbild",rtl:"Rechts nach links",ltr:"Links nach rechts",mime:"MIME-Type des Inhalts",langcode:"Sprachcode",langdir:"Schriftrichtung",style:"Format",id:"ID","merge_cells_title":"Zellen vereinen",bgcolor:"Hintergrundfarbe",bordercolor:"Rahmenfarbe","align_bottom":"Unten","align_top":"Oben",valign:"Vertikale Ausrichtung","cell_type":"Zellentyp","cell_title":"Eigenschaften der Zelle","row_title":"Eigenschaften der Zeile","align_middle":"Mittig","align_right":"Rechts","align_left":"Links","align_default":"Standard",align:"Ausrichtung",border:"Rahmen",cellpadding:"Abstand innerhalb der Zellen",cellspacing:"Zellenabstand",rows:"Zeilen",cols:"Spalten",height:"H\u00f6he",width:"Breite",title:"Tabelle einf\u00fcgen/bearbeiten",rowtype:"Gruppierung","advanced_props":"Erweiterte Einstellungen","general_props":"Allgemeine Einstellungen","advanced_tab":"Erweitert","general_tab":"Allgemein","cell_col":"Alle Zellen in dieser Spalte aktualisieren"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/en_dlg.js
new file mode 100644
index 00000000..463e09ee
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.table_dlg',{"rules_border":"border","rules_box":"box","rules_vsides":"vsides","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"hsides","rules_below":"below","rules_above":"above","rules_void":"void",rules:"Rules","frame_all":"all","frame_cols":"cols","frame_rows":"rows","frame_groups":"groups","frame_none":"none",frame:"Frame",caption:"Table Caption","missing_scope":"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.","cell_limit":"You\'ve exceeded the maximum number of cells of {$cells}.","row_limit":"You\'ve exceeded the maximum number of rows of {$rows}.","col_limit":"You\'ve exceeded the maximum number of columns of {$cols}.",colgroup:"Col Group",rowgroup:"Row Group",scope:"Scope",tfoot:"Footer",tbody:"Body",thead:"Header","row_all":"Update All Rows in Table","row_even":"Update Even Rows in Table","row_odd":"Update Odd Rows in Table","row_row":"Update Current Row","cell_all":"Update All Cells in Table","cell_row":"Update All Cells in Row","cell_cell":"Update Current Cell",th:"Header",td:"Data",summary:"Summary",bgimage:"Background Image",rtl:"Right to Left",ltr:"Left to Right",mime:"Target MIME Type",langcode:"Language Code",langdir:"Language Direction",style:"Style",id:"ID","merge_cells_title":"Merge Table Cells",bgcolor:"Background Color",bordercolor:"Border Color","align_bottom":"Bottom","align_top":"Top",valign:"Vertical Alignment","cell_type":"Cell Type","cell_title":"Table Cell Properties","row_title":"Table Row Properties","align_middle":"Center","align_right":"Right","align_left":"Left","align_default":"Default",align:"Alignment",border:"Border",cellpadding:"Cell Padding",cellspacing:"Cell Spacing",rows:"Rows",cols:"Columns",height:"Height",width:"Width",title:"Insert/Edit Table",rowtype:"Row Type","advanced_props":"Advanced Properties","general_props":"General Properties","advanced_tab":"Advanced","general_tab":"General","cell_col":"Update all cells in column"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/hu_dlg.js
new file mode 100644
index 00000000..1dd89fdb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.table_dlg',{"rules_border":"keret","rules_box":"doboz","rules_vsides":"f. oldalak","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"v. oldalak","rules_below":"alatta","rules_above":"f\u00f6l\u00f6tte","rules_void":"sehol/\u00fcres",rules:"Vonalak","frame_all":"mind","frame_cols":"oszlopok","frame_rows":"sorok","frame_groups":"csoportok","frame_none":"nincs",frame:"Keret",caption:"C\u00edmsor","missing_scope":"Biztosan folytatni akarja an\u00e9lk\u00fcl, hogy hat\u00f3k\u00f6rt adna ennek a fejl\u00e9ccell\u00e1nak? Korl\u00e1toz\u00e1sokkal \u00e9l\u0151k sz\u00e1m\u00e1ra neh\u00e9z lesz meg\u00e9rteni a t\u00e1bl\u00e1zat tartalm\u00e1t.","cell_limit":"T\u00fall\u00e9pte a maxim\u00e1lis cellasz\u00e1mot, ami {$cells}.","row_limit":"T\u00fall\u00e9pte a maxim\u00e1lis sorsz\u00e1mot, ami {$rows}.","col_limit":"T\u00fall\u00e9pte a maxim\u00e1lis oszlopsz\u00e1mot, ami {$cols}.",colgroup:"Oszlop csoport",rowgroup:"Sor csoport",scope:"Hat\u00f3k\u00f6r",tfoot:"T\u00e1bl\u00e1zat l\u00e1bl\u00e9c",tbody:"T\u00e1bl\u00e1zat tartalom",thead:"T\u00e1bl\u00e1zat fejl\u00e9c","row_all":"Minden sor friss\u00edt\u00e9se","row_even":"P\u00e1ros sorok friss\u00edt\u00e9se","row_odd":"P\u00e1ratlan sorok friss\u00edt\u00e9se","row_row":"Sor friss\u00edt\u00e9se","cell_all":"T\u00e1bl\u00e1zat \u00f6sszes cell\u00e1j\u00e1nak friss\u00edt\u00e9se","cell_row":"Sor \u00f6sszes cell\u00e1j\u00e1nak friss\u00edt\u00e9se","cell_cell":"Cella friss\u00edt\u00e9se",th:"Fejl\u00e9c",td:"Adat",summary:"\u00d6sszegz\u00e9s",bgimage:"H\u00e1tt\u00e9rk\u00e9p",rtl:"Jobbr\u00f3l balra",ltr:"Balr\u00f3l jobbra",mime:"C\u00e9l MIME t\u00edpus",langcode:"Nyelvk\u00f3d",langdir:"\u00cdr\u00e1s ir\u00e1ny",style:"St\u00edlus",id:"ID","merge_cells_title":"Cell\u00e1k Egyes\u00edt\u00e9se",bgcolor:"H\u00e1tt\u00e9rsz\u00edn",bordercolor:"Keretsz\u00edn","align_bottom":"Le","align_top":"Fel",valign:"F\u00fcgg\u0151leges igaz\u00edt\u00e1s","cell_type":"Cellat\u00edpus","cell_title":"Cella tulajdons\u00e1gai","row_title":"Sor tulajdons\u00e1gai","align_middle":"K\u00f6z\u00e9pre","align_right":"Jobbra","align_left":"Balra","align_default":"Alap\u00e9rtelmezett",align:"Igaz\u00edt\u00e1s",border:"Keret",cellpadding:"Cella bels\u0151 marg\u00f3",cellspacing:"Cella t\u00e1vols\u00e1g",rows:"Sorok",cols:"Oszlopok",height:"Magass\u00e1g",width:"Sz\u00e9less\u00e9g",title:"T\u00e1bl\u00e1zat besz\u00far\u00e1sa/szerkeszt\u00e9se",rowtype:"Sor a t\u00e1bl\u00e1ban","advanced_props":"Halad\u00f3 tulajdons\u00e1gok","general_props":"\u00c1ltal\u00e1nos tulajdons\u00e1gok","advanced_tab":"Halad\u00f3","general_tab":"\u00c1ltal\u00e1nos","cell_col":"\u00d6sszes cella friss\u00edt\u00e9se az oszlopban"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/ja_dlg.js
new file mode 100644
index 00000000..ad335864
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.table_dlg',{"rules_border":"\u67a0\u7dda(\u4e0a\u4e0b\u5de6\u53f3)","rules_box":"\u30dc\u30c3\u30af\u30b9(\u4e0a\u4e0b\u5de6\u53f3)","rules_vsides":"\u5de6\u53f3\u306e\u7e26\u7dda","rules_rhs":"\u53f3\u306e\u7e26\u7dda","rules_lhs":"\u5de6\u306e\u7e26\u7dda","rules_hsides":"\u4e0a\u4e0b\u306e\u6a2a\u7dda","rules_below":"\u4e0b\u306e\u6a2a\u7dda","rules_above":"\u4e0a\u306e\u6a2a\u7dda","rules_void":"\u306a\u3057",rules:"\u8868\u306e\u5916\u67a0","frame_all":"\u3059\u3079\u3066","frame_cols":"\u5217","frame_rows":"\u884c","frame_groups":"\u30b0\u30eb\u30fc\u30d7\u6bce","frame_none":"\u306a\u3057",frame:"\u30bb\u30eb\u306e\u67a0",caption:"\u8868\u306e\u898b\u51fa\u3057","missing_scope":"\u3053\u306e\u8868\u306e\u30d8\u30c3\u30c0\u30fc\u306e\u30bb\u30eb\u306e\u7bc4\u56f2\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u3067\u672c\u5f53\u306b\u7d9a\u3051\u307e\u3059\u304b? \u3053\u306e\u307e\u307e\u3067\u306f\u76ee\u306e\u4e0d\u81ea\u7531\u306a\u65b9\u304c\u8868\u306e\u5185\u5bb9\u3084\u8868\u793a\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u7406\u89e3\u3059\u308b\u306e\u304c\u56f0\u96e3\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002","cell_limit":"\u30bb\u30eb\u306e\u6700\u5927\u6570\u306e${cells}\u3092\u8d85\u3048\u307e\u3057\u305f\u3002","row_limit":"\u884c\u306e\u6700\u5927\u6570\u306e${rows}\u3092\u8d85\u3048\u307e\u3057\u305f\u3002","col_limit":"\u5217\u306e\u6700\u5927\u6570\u306e${cols}\u3092\u8d85\u3048\u307e\u3057\u305f\u3002",colgroup:"\u5217\u30b0\u30eb\u30fc\u30d7",rowgroup:"\u884c\u30b0\u30eb\u30fc\u30d7",scope:"\u30b9\u30b3\u30fc\u30d7",tfoot:"\u8868\u306e\u30d5\u30c3\u30bf\u30fc",tbody:"\u8868\u306e\u30dc\u30c7\u30a3",thead:"\u8868\u306e\u30d8\u30c3\u30c0\u30fc","row_all":"\u3059\u3079\u3066\u306e\u884c\u3092\u66f4\u65b0","row_even":"\u5076\u6570\u884c\u3092\u66f4\u65b0","row_odd":"\u5947\u6570\u884c\u3092\u66f4\u65b0","row_row":"\u9078\u629e\u3057\u3066\u3044\u308b\u884c\u3092\u66f4\u65b0","cell_all":"\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u66f4\u65b0","cell_row":"\u884c\u5185\u306e\u30bb\u30eb\u3092\u66f4\u65b0","cell_cell":"\u9078\u629e\u3057\u3066\u3044\u308b\u30bb\u30eb\u3092\u66f4\u65b0",th:"\u30d8\u30c3\u30c0\u30fc",td:"\u30c7\u30fc\u30bf",summary:"\u30b5\u30de\u30ea\u30fc",bgimage:"\u80cc\u666f\u306e\u753b\u50cf",rtl:"\u53f3\u304b\u3089\u5de6",ltr:"\u5de6\u304b\u3089\u53f3",mime:"\u30bf\u30fc\u30b2\u30c3\u30c8\u306eMIME\u30bf\u30a4\u30d7",langcode:"\u8a00\u8a9e\u30b3\u30fc\u30c9",langdir:"\u6587\u7ae0\u306e\u65b9\u5411",style:"\u30b9\u30bf\u30a4\u30eb",id:"ID","merge_cells_title":"\u30bb\u30eb\u3092\u7d50\u5408",bgcolor:"\u80cc\u666f\u306e\u8272",bordercolor:"\u67a0\u7dda\u306e\u8272","align_bottom":"\u4e0b\u63c3\u3048","align_top":"\u4e0a\u63c3\u3048",valign:"\u5782\u76f4\u65b9\u5411\u306e\u914d\u7f6e","cell_type":"\u30bb\u30eb\u306e\u7a2e\u985e","cell_title":"\u30bb\u30eb\u306e\u5c5e\u6027","row_title":"\u884c\u306e\u5c5e\u6027","align_middle":"\u4e2d\u592e\u63c3\u3048","align_right":"\u53f3\u63c3\u3048","align_left":"\u5de6\u63c3\u3048","align_default":"\u521d\u671f\u72b6\u614b",align:"\u914d\u7f6e",border:"\u67a0\u7dda",cellpadding:"\u30bb\u30eb\u306e\u30d1\u30c7\u30a3\u30f3\u30b0(cellpadding)",cellspacing:"\u30bb\u30eb\u306e\u9593\u9694(cellspacing)",rows:"\u884c",cols:"\u5217",height:"\u9ad8\u3055",width:"\u5e45",title:"\u8868\u306e\u633f\u5165\u3084\u7de8\u96c6",rowtype:"\u884c","advanced_props":"\u9ad8\u5ea6\u306a\u5c5e\u6027","general_props":"\u4e00\u822c\u7684\u306a\u5c5e\u6027","advanced_tab":"\u9ad8\u5ea6","general_tab":"\u4e00\u822c","cell_col":"\u3059\u3079\u3066\u306e\u30bb\u30eb\u3092\u66f4\u65b0"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/merge_cells.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/merge_cells.htm
new file mode 100755
index 00000000..d231090e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/merge_cells.htm
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#table_dlg.merge_cells_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="js/merge_cells.js"></script>
+</head>
+<body style="margin: 8px" role="application">
+<form onsubmit="MergeCellsDialog.merge();return false;" action="#">
+ <fieldset>
+ <legend>{#table_dlg.merge_cells_title}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="3" width="100%">
+ <tr>
+ <td><label for="numcols">{#table_dlg.cols}</label>:</td>
+ <td align="right"><input type="text" id="numcols" name="numcols" value="" class="number min1 mceFocus" style="width: 30px" aria-required="true" /></td>
+ </tr>
+ <tr>
+ <td><label for="numrows">{#table_dlg.rows}</label>:</td>
+ <td align="right"><input type="text" id="numrows" name="numrows" value="" class="number min1" style="width: 30px" aria-required="true" /></td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/row.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/row.htm
new file mode 100755
index 00000000..1885401f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/row.htm
@@ -0,0 +1,158 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#table_dlg.row_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/row.js"></script>
+ <link href="css/row.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="tablerow" style="display: none" role="application">
+ <form onsubmit="updateAction();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#table_dlg.general_props}</legend>
+
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td><label for="rowtype">{#table_dlg.rowtype}</label></td>
+ <td class="col2">
+ <select id="rowtype" name="rowtype" class="mceFocus">
+ <option value="thead">{#table_dlg.thead}</option>
+ <option value="tbody">{#table_dlg.tbody}</option>
+ <option value="tfoot">{#table_dlg.tfoot}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="align">{#table_dlg.align}</label></td>
+ <td class="col2">
+ <select id="align" name="align">
+ <option value="">{#not_set}</option>
+ <option value="center">{#table_dlg.align_middle}</option>
+ <option value="left">{#table_dlg.align_left}</option>
+ <option value="right">{#table_dlg.align_right}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="valign">{#table_dlg.valign}</label></td>
+ <td class="col2">
+ <select id="valign" name="valign">
+ <option value="">{#not_set}</option>
+ <option value="top">{#table_dlg.align_top}</option>
+ <option value="middle">{#table_dlg.align_middle}</option>
+ <option value="bottom">{#table_dlg.align_bottom}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr id="styleSelectRow">
+ <td><label for="class">{#class_name}</label></td>
+ <td class="col2">
+ <select id="class" name="class" class="mceEditableSelect">
+ <option value="" selected="selected">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td><label for="height">{#table_dlg.height}</label></td>
+ <td class="col2"><input name="height" type="text" id="height" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="advanced_panel" class="panel">
+ <fieldset>
+ <legend>{#table_dlg.advanced_props}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="column1"><label for="id">{#table_dlg.id}</label></td>
+ <td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="style">{#table_dlg.style}</label></td>
+ <td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
+ <td>
+ <select id="dir" name="dir" style="width: 200px">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#table_dlg.ltr}</option>
+ <option value="rtl">{#table_dlg.rtl}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" style="width: 200px" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
+ <td id="backgroundimagebrowsercontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
+ <td>
+ <span role="group" aria-labelledby="bgcolor_label">
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
+ <td id="bgcolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </span>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <div>
+ <select id="action" name="action">
+ <option value="row">{#table_dlg.row_row}</option>
+ <option value="odd">{#table_dlg.row_odd}</option>
+ <option value="even">{#table_dlg.row_even}</option>
+ <option value="all">{#table_dlg.row_all}</option>
+ </select>
+ </div>
+
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/table.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/table.htm
new file mode 100755
index 00000000..b92fa741
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/table/table.htm
@@ -0,0 +1,188 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#table_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/table.js"></script>
+ <link href="css/table.css" rel="stylesheet" type="text/css" />
+</head>
+<body id="table" style="display: none" role="application" aria-labelledby="app_title">
+ <span style="display:none;" id="app_title">{#table_dlg.title}</span>
+ <form onsubmit="insertTable();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" aria-controls="general_panel" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
+ <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#table_dlg.general_props}</legend>
+ <table role="presentation" border="0" cellpadding="4" cellspacing="0" width="100%">
+ <tr>
+ <td><label id="colslabel" for="cols">{#table_dlg.cols}</label></td>
+ <td><input id="cols" name="cols" type="text" value="" size="3" maxlength="3" class="required number min1 mceFocus" aria-required="true" /></td>
+ <td><label id="rowslabel" for="rows">{#table_dlg.rows}</label></td>
+ <td><input id="rows" name="rows" type="text" value="" size="3" maxlength="3" class="required number min1" aria-required="true" /></td>
+ </tr>
+ <tr>
+ <td><label id="cellpaddinglabel" for="cellpadding">{#table_dlg.cellpadding}</label></td>
+ <td><input id="cellpadding" name="cellpadding" type="text" value="" size="3" maxlength="3" class="number" /></td>
+ <td><label id="cellspacinglabel" for="cellspacing">{#table_dlg.cellspacing}</label></td>
+ <td><input id="cellspacing" name="cellspacing" type="text" value="" size="3" maxlength="3" class="number" /></td>
+ </tr>
+ <tr>
+ <td><label id="alignlabel" for="align">{#table_dlg.align}</label></td>
+ <td><select id="align" name="align">
+ <option value="">{#not_set}</option>
+ <option value="center">{#table_dlg.align_middle}</option>
+ <option value="left">{#table_dlg.align_left}</option>
+ <option value="right">{#table_dlg.align_right}</option>
+ </select></td>
+ <td><label id="borderlabel" for="border">{#table_dlg.border}</label></td>
+ <td><input id="border" name="border" type="text" value="" size="3" maxlength="5" onchange="changedBorder();" class="size" /></td>
+ </tr>
+ <tr id="width_row">
+ <td><label id="widthlabel" for="width">{#table_dlg.width}</label></td>
+ <td><input name="width" type="text" id="width" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
+ <td><label id="heightlabel" for="height">{#table_dlg.height}</label></td>
+ <td><input name="height" type="text" id="height" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
+ </tr>
+ <tr id="styleSelectRow" >
+ <td><label id="classlabel" for="class">{#class_name}</label></td>
+ <td colspan="3" >
+ <select id="class" name="class" class="mceEditableSelect">
+ <option value="" selected="selected">{#not_set}</option>
+ </select></td>
+ </tr>
+ <tr>
+ <td class="column1" ><label for="caption">{#table_dlg.caption}</label></td>
+ <td><input id="caption" name="caption" type="checkbox" class="checkbox" value="true" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="advanced_panel" class="panel">
+ <fieldset>
+ <legend>{#table_dlg.advanced_props}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="column1"><label for="id">{#table_dlg.id}</label></td>
+ <td><input id="id" name="id" type="text" value="" class="advfield" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="summary">{#table_dlg.summary}</label></td>
+ <td><input id="summary" name="summary" type="text" value="" class="advfield" /></td>
+ </tr>
+
+ <tr>
+ <td><label for="style">{#table_dlg.style}</label></td>
+ <td><input type="text" id="style" name="style" value="" class="advfield" onchange="changedStyle();" /></td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label id="langlabel" for="lang">{#table_dlg.langcode}</label></td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" class="advfield" />
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
+ <td>
+ <table role="presentation" aria-labelledby="backgroundimage_label" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="backgroundimage" name="backgroundimage" type="text" value="" class="advfield" onchange="changedBackgroundImage();" /></td>
+ <td id="backgroundimagebrowsercontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="tframe">{#table_dlg.frame}</label></td>
+ <td>
+ <select id="tframe" name="tframe" class="advfield">
+ <option value="">{#not_set}</option>
+ <option value="void">{#table_dlg.rules_void}</option>
+ <option value="above">{#table_dlg.rules_above}</option>
+ <option value="below">{#table_dlg.rules_below}</option>
+ <option value="hsides">{#table_dlg.rules_hsides}</option>
+ <option value="lhs">{#table_dlg.rules_lhs}</option>
+ <option value="rhs">{#table_dlg.rules_rhs}</option>
+ <option value="vsides">{#table_dlg.rules_vsides}</option>
+ <option value="box">{#table_dlg.rules_box}</option>
+ <option value="border">{#table_dlg.rules_border}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="rules">{#table_dlg.rules}</label></td>
+ <td>
+ <select id="rules" name="rules" class="advfield">
+ <option value="">{#not_set}</option>
+ <option value="none">{#table_dlg.frame_none}</option>
+ <option value="groups">{#table_dlg.frame_groups}</option>
+ <option value="rows">{#table_dlg.frame_rows}</option>
+ <option value="cols">{#table_dlg.frame_cols}</option>
+ <option value="all">{#table_dlg.frame_all}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
+ <td>
+ <select id="dir" name="dir" class="advfield">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#table_dlg.ltr}</option>
+ <option value="rtl">{#table_dlg.rtl}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr role="group" aria-labelledby="bordercolor_label">
+ <td class="column1"><label id="bordercolor_label" for="bordercolor">{#table_dlg.bordercolor}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
+ <td id="bordercolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr role="group" aria-labelledby="bgcolor_label">
+ <td class="column1"><label id="bgcolor_label" for="bgcolor">{#table_dlg.bgcolor}</label></td>
+ <td>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
+ <td id="bgcolor_pickcontainer">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/blank.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/blank.htm
new file mode 100755
index 00000000..ecde53fa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/blank.htm
@@ -0,0 +1,12 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>blank_page</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <script type="text/javascript">
+ parent.TemplateDialog.loadCSSFiles(document);
+ </script>
+</head>
+<body id="mceTemplatePreview" class="mceContentBody">
+
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/css/template.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/css/template.css
new file mode 100755
index 00000000..2d23a493
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/css/template.css
@@ -0,0 +1,23 @@
+#frmbody {
+ padding: 10px;
+ background-color: #FFF;
+ border: 1px solid #CCC;
+}
+
+.frmRow {
+ margin-bottom: 10px;
+}
+
+#templatesrc {
+ border: none;
+ width: 320px;
+ height: 240px;
+}
+
+.title {
+ padding-bottom: 5px;
+}
+
+.mceActionPanel {
+ padding-top: 5px;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin.js
new file mode 100755
index 00000000..ebe3c27d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.TemplatePlugin",{init:function(b,c){var d=this;d.editor=b;b.addCommand("mceTemplate",function(e){b.windowManager.open({file:c+"/template.htm",width:b.getParam("template_popup_width",750),height:b.getParam("template_popup_height",600),inline:1},{plugin_url:c})});b.addCommand("mceInsertTemplate",d._insertTemplate,d);b.addButton("template",{title:"template.desc",cmd:"mceTemplate"});b.onPreProcess.add(function(e,g){var f=e.dom;a(f.select("div",g.node),function(h){if(f.hasClass(h,"mceTmpl")){a(f.select("*",h),function(i){if(f.hasClass(i,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){i.innerHTML=d._getDateTime(new Date(),e.getParam("template_mdate_format",e.getLang("template.mdate_format")))}});d._replaceVals(h)}})})},getInfo:function(){return{longname:"Template plugin",author:"Moxiecode Systems AB",authorurl:"http://www.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_insertTemplate:function(i,j){var k=this,g=k.editor,f,c,d=g.dom,b=g.selection.getContent();f=j.content;a(k.editor.getParam("template_replace_values"),function(l,h){if(typeof(l)!="function"){f=f.replace(new RegExp("\\{\\$"+h+"\\}","g"),l)}});c=d.create("div",null,f);n=d.select(".mceTmpl",c);if(n&&n.length>0){c=d.create("div",null);c.appendChild(n[0].cloneNode(true))}function e(l,h){return new RegExp("\\b"+h+"\\b","g").test(l.className)}a(d.select("*",c),function(h){if(e(h,g.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_cdate_format",g.getLang("template.cdate_format")))}if(e(h,g.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_mdate_format",g.getLang("template.mdate_format")))}if(e(h,g.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))){h.innerHTML=b}});k._replaceVals(c);g.execCommand("mceInsertContent",false,c.innerHTML);g.addVisual()},_replaceVals:function(c){var d=this.editor.dom,b=this.editor.getParam("template_replace_values");a(d.select("*",c),function(f){a(b,function(g,e){if(d.hasClass(f,e)){if(typeof(b[e])=="function"){b[e](f)}}})})},_getDateTime:function(e,b){if(!b){return""}function c(g,d){var f;g=""+g;if(g.length<d){for(f=0;f<(d-g.length);f++){g="0"+g}}return g}b=b.replace("%D","%m/%d/%y");b=b.replace("%r","%I:%M:%S %p");b=b.replace("%Y",""+e.getFullYear());b=b.replace("%y",""+e.getYear());b=b.replace("%m",c(e.getMonth()+1,2));b=b.replace("%d",c(e.getDate(),2));b=b.replace("%H",""+c(e.getHours(),2));b=b.replace("%M",""+c(e.getMinutes(),2));b=b.replace("%S",""+c(e.getSeconds(),2));b=b.replace("%I",""+((e.getHours()+11)%12+1));b=b.replace("%p",""+(e.getHours()<12?"AM":"PM"));b=b.replace("%B",""+this.editor.getLang("template_months_long").split(",")[e.getMonth()]);b=b.replace("%b",""+this.editor.getLang("template_months_short").split(",")[e.getMonth()]);b=b.replace("%A",""+this.editor.getLang("template_day_long").split(",")[e.getDay()]);b=b.replace("%a",""+this.editor.getLang("template_day_short").split(",")[e.getDay()]);b=b.replace("%%","%");return b}});tinymce.PluginManager.add("template",tinymce.plugins.TemplatePlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin_src.js
new file mode 100755
index 00000000..9cac2699
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/editor_plugin_src.js
@@ -0,0 +1,159 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var each = tinymce.each;
+
+ tinymce.create('tinymce.plugins.TemplatePlugin', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceTemplate', function(ui) {
+ ed.windowManager.open({
+ file : url + '/template.htm',
+ width : ed.getParam('template_popup_width', 750),
+ height : ed.getParam('template_popup_height', 600),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ ed.addCommand('mceInsertTemplate', t._insertTemplate, t);
+
+ // Register buttons
+ ed.addButton('template', {title : 'template.desc', cmd : 'mceTemplate'});
+
+ ed.onPreProcess.add(function(ed, o) {
+ var dom = ed.dom;
+
+ each(dom.select('div', o.node), function(e) {
+ if (dom.hasClass(e, 'mceTmpl')) {
+ each(dom.select('*', e), function(e) {
+ if (dom.hasClass(e, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|')))
+ e.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format")));
+ });
+
+ t._replaceVals(e);
+ }
+ });
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Template plugin',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://www.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ _insertTemplate : function(ui, v) {
+ var t = this, ed = t.editor, h, el, dom = ed.dom, sel = ed.selection.getContent();
+
+ h = v.content;
+
+ each(t.editor.getParam('template_replace_values'), function(v, k) {
+ if (typeof(v) != 'function')
+ h = h.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v);
+ });
+
+ el = dom.create('div', null, h);
+
+ // Find template element within div
+ n = dom.select('.mceTmpl', el);
+ if (n && n.length > 0) {
+ el = dom.create('div', null);
+ el.appendChild(n[0].cloneNode(true));
+ }
+
+ function hasClass(n, c) {
+ return new RegExp('\\b' + c + '\\b', 'g').test(n.className);
+ };
+
+ each(dom.select('*', el), function(n) {
+ // Replace cdate
+ if (hasClass(n, ed.getParam('template_cdate_classes', 'cdate').replace(/\s+/g, '|')))
+ n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_cdate_format", ed.getLang("template.cdate_format")));
+
+ // Replace mdate
+ if (hasClass(n, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|')))
+ n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format")));
+
+ // Replace selection
+ if (hasClass(n, ed.getParam('template_selected_content_classes', 'selcontent').replace(/\s+/g, '|')))
+ n.innerHTML = sel;
+ });
+
+ t._replaceVals(el);
+
+ ed.execCommand('mceInsertContent', false, el.innerHTML);
+ ed.addVisual();
+ },
+
+ _replaceVals : function(e) {
+ var dom = this.editor.dom, vl = this.editor.getParam('template_replace_values');
+
+ each(dom.select('*', e), function(e) {
+ each(vl, function(v, k) {
+ if (dom.hasClass(e, k)) {
+ if (typeof(vl[k]) == 'function')
+ vl[k](e);
+ }
+ });
+ });
+ },
+
+ _getDateTime : function(d, fmt) {
+ if (!fmt)
+ return "";
+
+ function addZeros(value, len) {
+ var i;
+
+ value = "" + value;
+
+ if (value.length < len) {
+ for (i=0; i<(len-value.length); i++)
+ value = "0" + value;
+ }
+
+ return value;
+ }
+
+ fmt = fmt.replace("%D", "%m/%d/%y");
+ fmt = fmt.replace("%r", "%I:%M:%S %p");
+ fmt = fmt.replace("%Y", "" + d.getFullYear());
+ fmt = fmt.replace("%y", "" + d.getYear());
+ fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2));
+ fmt = fmt.replace("%d", addZeros(d.getDate(), 2));
+ fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2));
+ fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2));
+ fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2));
+ fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1));
+ fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM"));
+ fmt = fmt.replace("%B", "" + this.editor.getLang("template_months_long").split(',')[d.getMonth()]);
+ fmt = fmt.replace("%b", "" + this.editor.getLang("template_months_short").split(',')[d.getMonth()]);
+ fmt = fmt.replace("%A", "" + this.editor.getLang("template_day_long").split(',')[d.getDay()]);
+ fmt = fmt.replace("%a", "" + this.editor.getLang("template_day_short").split(',')[d.getDay()]);
+ fmt = fmt.replace("%%", "%");
+
+ return fmt;
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('template', tinymce.plugins.TemplatePlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/js/template.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/js/template.js
new file mode 100644
index 00000000..bc3045d2
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/js/template.js
@@ -0,0 +1,106 @@
+tinyMCEPopup.requireLangPack();
+
+var TemplateDialog = {
+ preInit : function() {
+ var url = tinyMCEPopup.getParam("template_external_list_url");
+
+ if (url != null)
+ document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></sc'+'ript>');
+ },
+
+ init : function() {
+ var ed = tinyMCEPopup.editor, tsrc, sel, x, u;
+
+ tsrc = ed.getParam("template_templates", false);
+ sel = document.getElementById('tpath');
+
+ // Setup external template list
+ if (!tsrc && typeof(tinyMCETemplateList) != 'undefined') {
+ for (x=0, tsrc = []; x<tinyMCETemplateList.length; x++)
+ tsrc.push({title : tinyMCETemplateList[x][0], src : tinyMCETemplateList[x][1], description : tinyMCETemplateList[x][2]});
+ }
+
+ for (x=0; x<tsrc.length; x++)
+ sel.options[sel.options.length] = new Option(tsrc[x].title, tinyMCEPopup.editor.documentBaseURI.toAbsolute(tsrc[x].src));
+
+ this.resize();
+ this.tsrc = tsrc;
+ },
+
+ resize : function() {
+ var w, h, e;
+
+ if (!self.innerWidth) {
+ w = document.body.clientWidth - 50;
+ h = document.body.clientHeight - 160;
+ } else {
+ w = self.innerWidth - 50;
+ h = self.innerHeight - 170;
+ }
+
+ e = document.getElementById('templatesrc');
+
+ if (e) {
+ e.style.height = Math.abs(h) + 'px';
+ e.style.width = Math.abs(w - 5) + 'px';
+ }
+ },
+
+ loadCSSFiles : function(d) {
+ var ed = tinyMCEPopup.editor;
+
+ tinymce.each(ed.getParam("content_css", '').split(','), function(u) {
+ d.write('<link href="' + ed.documentBaseURI.toAbsolute(u) + '" rel="stylesheet" type="text/css" />');
+ });
+ },
+
+ selectTemplate : function(u, ti) {
+ var d = window.frames['templatesrc'].document, x, tsrc = this.tsrc;
+
+ if (!u)
+ return;
+
+ d.body.innerHTML = this.templateHTML = this.getFileContents(u);
+
+ for (x=0; x<tsrc.length; x++) {
+ if (tsrc[x].title == ti)
+ document.getElementById('tmpldesc').innerHTML = tsrc[x].description || '';
+ }
+ },
+
+ insert : function() {
+ tinyMCEPopup.execCommand('mceInsertTemplate', false, {
+ content : this.templateHTML,
+ selection : tinyMCEPopup.editor.selection.getContent()
+ });
+
+ tinyMCEPopup.close();
+ },
+
+ getFileContents : function(u) {
+ var x, d, t = 'text/plain';
+
+ function g(s) {
+ x = 0;
+
+ try {
+ x = new ActiveXObject(s);
+ } catch (s) {
+ }
+
+ return x;
+ };
+
+ x = window.ActiveXObject ? g('Msxml2.XMLHTTP') || g('Microsoft.XMLHTTP') : new XMLHttpRequest();
+
+ // Synchronous AJAX load file
+ x.overrideMimeType && x.overrideMimeType(t);
+ x.open("GET", u, false);
+ x.send(null);
+
+ return x.responseText;
+ }
+};
+
+TemplateDialog.preInit();
+tinyMCEPopup.onInit.add(TemplateDialog.init, TemplateDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/de_dlg.js
new file mode 100644
index 00000000..04c9fa1a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.template_dlg',{title:"Vorlagen",label:"Vorlage","desc_label":"Beschreibung",desc:"Inhalt aus Vorlage einf\u00fcgen",select:"Vorlage ausw\u00e4hlen",preview:"Vorschau",warning:"Warnung: Eine Vorlage mit einer anderen zu aktualisieren kann zu einem Datenverlust f\u00fchren!","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"Januar,Februar,M\u00e4rz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember","months_short":"Jan,Feb,M\u00e4r,Apr,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez","day_long":"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag","day_short":"So,Mo,Di,Mi,Do,Fr,Sa,So"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/en_dlg.js
new file mode 100644
index 00000000..83e599d6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.template_dlg',{title:"Templates",label:"Template","desc_label":"Description",desc:"Insert Predefined Template Content",select:"Select a Template",preview:"Preview",warning:"Warning: Updating a template with a different one may cause data loss.","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"January,February,March,April,May,June,July,August,September,October,November,December","months_short":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","day_long":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday","day_short":"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/hu_dlg.js
new file mode 100644
index 00000000..3f272a9e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.template_dlg',{title:"Sablon beilleszt\u00e9se",label:"Sablon","desc_label":"Le\u00edr\u00e1s",desc:"Sablon beilleszt\u00e9se",select:"Sablon v\u00e1laszt\u00e1sa",preview:"El\u0151n\u00e9zet",warning:"Figyelem: Egy m\u00e1r alkalmazott sablon friss\u00edt\u00e9se m\u00e1sikkal adatveszt\u00e9ssel j\u00e1rhat.","mdate_format":"%Y.%m.%d. %H:%M:%S","cdate_format":"%Y.%m.%d. %H:%M:%S","months_long":"janu\u00e1r,febru\u00e1r,m\u00e1rcius,\u00e1prilis,m\u00e1jus,j\u00fanius,j\u00falius,augusztus,szeptember,okt\u00f3ber,november,december","months_short":"Jan,Feb,M\u00e1r,\u00c1pr,M\u00e1j,J\u00fan,J\u00fal,Aug,Szept,Okt,Nov,Dec","day_long":"vas\u00e1rnap,h\u00e9tf\u0151,kedd,szerda,cs\u00fct\u00f6rt\u00f6k,p\u00e9ntek,szombat,vas\u00e1rnap","day_short":"V,H,K,Sze,Cs,P,Szo,V"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/ja_dlg.js
new file mode 100644
index 00000000..4aae9337
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.template_dlg',{title:"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8",label:"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8","desc_label":"\u8aac\u660e",desc:"\u5b9a\u7fa9\u6e08\u307f\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u633f\u5165",select:"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e",preview:"\u30d7\u30ec\u30d3\u30e5\u30fc",warning:"\u8b66\u544a\uff1a\u7570\u306a\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u66f4\u65b0\u3059\u308b\u3068\u30c7\u30fc\u30bf\u3092\u5931\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708","months_short":"1,2,3,4,5,6,7,8,9,10,11,12","day_long":"\u65e5\u66dc\u65e5,\u6708\u66dc\u65e5,\u706b\u66dc\u65e5,\u6c34\u66dc\u65e5,\u6728\u66dc\u65e5,\u91d1\u66dc\u65e5,\u571f\u66dc\u65e5,\u65e5\u66dc\u65e5","day_short":"(\u65e5),(\u6708),(\u706b),(\u6c34),(\u6728),(\u91d1),(\u571f),(\u65e5)"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/template.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/template.htm
new file mode 100755
index 00000000..b2182e63
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/template/template.htm
@@ -0,0 +1,31 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#template_dlg.title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/template.js"></script>
+ <link href="css/template.css" rel="stylesheet" type="text/css" />
+</head>
+<body onresize="TemplateDialog.resize();">
+ <form onsubmit="TemplateDialog.insert();return false;">
+ <div id="frmbody">
+ <div class="title">{#template_dlg.desc}</div>
+ <div class="frmRow"><label for="tpath" title="{#template_dlg.select}">{#template_dlg.label}:</label>
+ <select id="tpath" name="tpath" onchange="TemplateDialog.selectTemplate(this.options[this.selectedIndex].value, this.options[this.selectedIndex].text);" class="mceFocus">
+ <option value="">{#template_dlg.select}...</option>
+ </select>
+ <span id="warning"></span></div>
+ <div class="frmRow"><label for="tdesc">{#template_dlg.desc_label}:</label>
+ <span id="tmpldesc"></span></div>
+ <fieldset>
+ <legend>{#template_dlg.preview}</legend>
+ <iframe id="templatesrc" name="templatesrc" src="blank.htm" width="690" height="400" frameborder="0"></iframe>
+ </fieldset>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/css/visualblocks.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/css/visualblocks.css
new file mode 100644
index 00000000..76bc92b5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/css/visualblocks.css
@@ -0,0 +1,21 @@
+p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, blockquote, address, pre, figure {display: block; padding-top: 10px; border: 1px dashed #BBB; background: transparent no-repeat}
+p, h1, h2, h3, h4, h5, h6, hgroup, aside, div, section, article, address, pre, figure {margin-left: 3px}
+section, article, address, hgroup, aside, figure {margin: 0 0 1em 3px}
+
+p {background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}
+h1 {background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}
+h2 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}
+h3 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}
+h4 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}
+h5 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}
+h6 {background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}
+div {background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}
+section {background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}
+article {background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}
+blockquote {background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}
+address {background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}
+pre {background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}
+hgroup {background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}
+aside {background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}
+figure {background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}
+figcaption {border: 1px dashed #BBB}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin.js
new file mode 100644
index 00000000..c65eaf2b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.VisualBlocks",{init:function(a,b){var c;if(!window.NodeList){return}a.addCommand("mceVisualBlocks",function(){var e=a.dom,d;if(!c){c=e.uniqueId();d=e.create("link",{id:c,rel:"stylesheet",href:b+"/css/visualblocks.css"});a.getDoc().getElementsByTagName("head")[0].appendChild(d)}else{d=e.get(c);d.disabled=!d.disabled}a.controlManager.setActive("visualblocks",!d.disabled)});a.addButton("visualblocks",{title:"visualblocks.desc",cmd:"mceVisualBlocks"});a.onInit.add(function(){if(a.settings.visualblocks_default_state){a.execCommand("mceVisualBlocks",false,null,{skip_focus:true})}})},getInfo:function(){return{longname:"Visual blocks",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualblocks",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("visualblocks",tinymce.plugins.VisualBlocks)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin_src.js
new file mode 100644
index 00000000..b9d2ab2e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualblocks/editor_plugin_src.js
@@ -0,0 +1,63 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2012, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.VisualBlocks', {
+ init : function(ed, url) {
+ var cssId;
+
+ // We don't support older browsers like IE6/7 and they don't provide prototypes for DOM objects
+ if (!window.NodeList) {
+ return;
+ }
+
+ ed.addCommand('mceVisualBlocks', function() {
+ var dom = ed.dom, linkElm;
+
+ if (!cssId) {
+ cssId = dom.uniqueId();
+ linkElm = dom.create('link', {
+ id: cssId,
+ rel : 'stylesheet',
+ href : url + '/css/visualblocks.css'
+ });
+
+ ed.getDoc().getElementsByTagName('head')[0].appendChild(linkElm);
+ } else {
+ linkElm = dom.get(cssId);
+ linkElm.disabled = !linkElm.disabled;
+ }
+
+ ed.controlManager.setActive('visualblocks', !linkElm.disabled);
+ });
+
+ ed.addButton('visualblocks', {title : 'visualblocks.desc', cmd : 'mceVisualBlocks'});
+
+ ed.onInit.add(function() {
+ if (ed.settings.visualblocks_default_state) {
+ ed.execCommand('mceVisualBlocks', false, null, {skip_focus : true});
+ }
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Visual blocks',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualblocks',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('visualblocks', tinymce.plugins.VisualBlocks);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin.js
new file mode 100755
index 00000000..1a148e8b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state&&e.format!="raw"&&!e.draft){c.state=true;c._toggleVisualChars(false)}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(m){var p=this,k=p.editor,a,g,j,n=k.getDoc(),o=k.getBody(),l,q=k.selection,e,c,f;p.state=!p.state;k.controlManager.setActive("visualchars",p.state);if(m){f=q.getBookmark()}if(p.state){a=[];tinymce.walk(o,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(g=0;g<a.length;g++){l=a[g].nodeValue;l=l.replace(/(\u00a0)/g,'<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">$1</span>');c=k.dom.create("div",null,l);while(node=c.lastChild){k.dom.insertAfter(node,a[g])}k.dom.remove(a[g])}}else{a=k.dom.select("span.mceItemNbsp",o);for(g=a.length-1;g>=0;g--){k.dom.remove(a[g],1)}}q.moveToBookmark(f)}});tinymce.PluginManager.add("visualchars",tinymce.plugins.VisualChars)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin_src.js
new file mode 100755
index 00000000..df985905
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/visualchars/editor_plugin_src.js
@@ -0,0 +1,83 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.VisualChars', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+
+ // Register commands
+ ed.addCommand('mceVisualChars', t._toggleVisualChars, t);
+
+ // Register buttons
+ ed.addButton('visualchars', {title : 'visualchars.desc', cmd : 'mceVisualChars'});
+
+ ed.onBeforeGetContent.add(function(ed, o) {
+ if (t.state && o.format != 'raw' && !o.draft) {
+ t.state = true;
+ t._toggleVisualChars(false);
+ }
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Visual characters',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ },
+
+ // Private methods
+
+ _toggleVisualChars : function(bookmark) {
+ var t = this, ed = t.editor, nl, i, h, d = ed.getDoc(), b = ed.getBody(), nv, s = ed.selection, bo, div, bm;
+
+ t.state = !t.state;
+ ed.controlManager.setActive('visualchars', t.state);
+
+ if (bookmark)
+ bm = s.getBookmark();
+
+ if (t.state) {
+ nl = [];
+ tinymce.walk(b, function(n) {
+ if (n.nodeType == 3 && n.nodeValue && n.nodeValue.indexOf('\u00a0') != -1)
+ nl.push(n);
+ }, 'childNodes');
+
+ for (i = 0; i < nl.length; i++) {
+ nv = nl[i].nodeValue;
+ nv = nv.replace(/(\u00a0)/g, '<span data-mce-bogus="1" class="mceItemHidden mceItemNbsp">$1</span>');
+
+ div = ed.dom.create('div', null, nv);
+ while (node = div.lastChild)
+ ed.dom.insertAfter(node, nl[i]);
+
+ ed.dom.remove(nl[i]);
+ }
+ } else {
+ nl = ed.dom.select('span.mceItemNbsp', b);
+
+ for (i = nl.length - 1; i >= 0; i--)
+ ed.dom.remove(nl[i], 1);
+ }
+
+ s.moveToBookmark(bm);
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('visualchars', tinymce.plugins.VisualChars);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin.js
new file mode 100644
index 00000000..42ece209
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.WordCount",{block:0,id:null,countre:null,cleanre:null,init:function(c,d){var e=this,f=0,g=tinymce.VK;e.countre=c.getParam("wordcount_countregex",/[\w\u2019\'-]+/g);e.cleanre=c.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);e.update_rate=c.getParam("wordcount_update_rate",2000);e.update_on_delete=c.getParam("wordcount_update_on_delete",false);e.id=c.id+"-word-count";c.onPostRender.add(function(i,h){var j,k;k=i.getParam("wordcount_target_id");if(!k){j=tinymce.DOM.get(i.id+"_path_row");if(j){tinymce.DOM.add(j.parentNode,"div",{style:"float: right"},i.getLang("wordcount.words","Words: ")+'<span id="'+e.id+'">0</span>')}}else{tinymce.DOM.add(k,"span",{},'<span id="'+e.id+'">0</span>')}});c.onInit.add(function(h){h.selection.onSetContent.add(function(){e._count(h)});e._count(h)});c.onSetContent.add(function(h){e._count(h)});function b(h){return h!==f&&(h===g.ENTER||f===g.SPACEBAR||a(f))}function a(h){return h===g.DELETE||h===g.BACKSPACE}c.onKeyUp.add(function(h,i){if(b(i.keyCode)||e.update_on_delete&&a(i.keyCode)){e._count(h)}f=i.keyCode})},_getCount:function(c){var a=0;var b=c.getContent({format:"raw"});if(b){b=b.replace(/\.\.\./g," ");b=b.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ");b=b.replace(/(\w+)(&.+?;)+(\w+)/,"$1$3").replace(/&.+?;/g," ");b=b.replace(this.cleanre,"");var d=b.match(this.countre);if(d){a=d.length}}return a},_count:function(a){var b=this;if(b.block){return}b.block=1;setTimeout(function(){if(!a.destroyed){var c=b._getCount(a);tinymce.DOM.setHTML(b.id,c.toString());setTimeout(function(){b.block=0},b.update_rate)}},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin_src.js
new file mode 100644
index 00000000..34b26555
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/wordcount/editor_plugin_src.js
@@ -0,0 +1,122 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.WordCount', {
+ block : 0,
+ id : null,
+ countre : null,
+ cleanre : null,
+
+ init : function(ed, url) {
+ var t = this, last = 0, VK = tinymce.VK;
+
+ t.countre = ed.getParam('wordcount_countregex', /[\w\u2019\'-]+/g); // u2019 == &rsquo;
+ t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);
+ t.update_rate = ed.getParam('wordcount_update_rate', 2000);
+ t.update_on_delete = ed.getParam('wordcount_update_on_delete', false);
+ t.id = ed.id + '-word-count';
+
+ ed.onPostRender.add(function(ed, cm) {
+ var row, id;
+
+ // Add it to the specified id or the theme advanced path
+ id = ed.getParam('wordcount_target_id');
+ if (!id) {
+ row = tinymce.DOM.get(ed.id + '_path_row');
+
+ if (row)
+ tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '<span id="' + t.id + '">0</span>');
+ } else {
+ tinymce.DOM.add(id, 'span', {}, '<span id="' + t.id + '">0</span>');
+ }
+ });
+
+ ed.onInit.add(function(ed) {
+ ed.selection.onSetContent.add(function() {
+ t._count(ed);
+ });
+
+ t._count(ed);
+ });
+
+ ed.onSetContent.add(function(ed) {
+ t._count(ed);
+ });
+
+ function checkKeys(key) {
+ return key !== last && (key === VK.ENTER || last === VK.SPACEBAR || checkDelOrBksp(last));
+ }
+
+ function checkDelOrBksp(key) {
+ return key === VK.DELETE || key === VK.BACKSPACE;
+ }
+
+ ed.onKeyUp.add(function(ed, e) {
+ if (checkKeys(e.keyCode) || t.update_on_delete && checkDelOrBksp(e.keyCode)) {
+ t._count(ed);
+ }
+
+ last = e.keyCode;
+ });
+ },
+
+ _getCount : function(ed) {
+ var tc = 0;
+ var tx = ed.getContent({ format: 'raw' });
+
+ if (tx) {
+ tx = tx.replace(/\.\.\./g, ' '); // convert ellipses to spaces
+ tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/&nbsp;|&#160;/gi, ' '); // remove html tags and space chars
+
+ // deal with html entities
+ tx = tx.replace(/(\w+)(&.+?;)+(\w+)/, "$1$3").replace(/&.+?;/g, ' ');
+ tx = tx.replace(this.cleanre, ''); // remove numbers and punctuation
+
+ var wordArray = tx.match(this.countre);
+ if (wordArray) {
+ tc = wordArray.length;
+ }
+ }
+
+ return tc;
+ },
+
+ _count : function(ed) {
+ var t = this;
+
+ // Keep multiple calls from happening at the same time
+ if (t.block)
+ return;
+
+ t.block = 1;
+
+ setTimeout(function() {
+ if (!ed.destroyed) {
+ var tc = t._getCount(ed);
+ tinymce.DOM.setHTML(t.id, tc.toString());
+ setTimeout(function() {t.block = 0;}, t.update_rate);
+ }
+ }, 1);
+ },
+
+ getInfo: function() {
+ return {
+ longname : 'Word Count plugin',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount);
+})();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/abbr.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/abbr.htm
new file mode 100755
index 00000000..30a894f7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/abbr.htm
@@ -0,0 +1,142 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#xhtmlxtras_dlg.title_abbr_element}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/element_common.js"></script>
+ <script type="text/javascript" src="js/abbr.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/popup.css" />
+</head>
+<body style="display: none" role="application" aria-labelledby="app_title">
+<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_abbr_element}</span>
+<form onsubmit="insertAbbr();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
+ <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
+ <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
+ <td><input id="id" name="id" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
+ <td>
+ <select id="class" name="class" class="field mceEditableSelect">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
+ <td><input id="style" name="style" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
+ <td>
+ <select id="dir" name="dir" class="field">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
+ <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" class="field" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ <div id="events_panel" class="panel">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label for="onfocus">onfocus</label>:</td>
+ <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onblur">onblur</label>:</td>
+ <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onclick">onclick</label>:</td>
+ <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="ondblclick">ondblclick</label>:</td>
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousedown">onmousedown</label>:</td>
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseup">onmouseup</label>:</td>
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseover">onmouseover</label>:</td>
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousemove">onmousemove</label>:</td>
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseout">onmouseout</label>:</td>
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeypress">onkeypress</label>:</td>
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeydown">onkeydown</label>:</td>
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeyup">onkeyup</label>:</td>
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAbbr();" style="display: none;" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/acronym.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/acronym.htm
new file mode 100755
index 00000000..c1093459
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/acronym.htm
@@ -0,0 +1,142 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#xhtmlxtras_dlg.title_acronym_element}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/element_common.js"></script>
+ <script type="text/javascript" src="js/acronym.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/popup.css" />
+</head>
+<body style="display: none" role="application" aria-labelledby="app_title">
+<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_acronym_element}</span>
+<form onsubmit="insertAcronym();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
+ <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
+ <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
+ <td><input id="id" name="id" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
+ <td>
+ <select id="class" name="class" class="field mceEditableSelect">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
+ <td><input id="style" name="style" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
+ <td>
+ <select id="dir" name="dir" class="field">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
+ <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" class="field" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ <div id="events_panel" class="panel">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label for="onfocus">onfocus</label>:</td>
+ <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onblur">onblur</label>:</td>
+ <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onclick">onclick</label>:</td>
+ <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="ondblclick">ondblclick</label>:</td>
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousedown">onmousedown</label>:</td>
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseup">onmouseup</label>:</td>
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseover">onmouseover</label>:</td>
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousemove">onmousemove</label>:</td>
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseout">onmouseout</label>:</td>
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeypress">onkeypress</label>:</td>
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeydown">onkeydown</label>:</td>
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeyup">onkeyup</label>:</td>
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAcronym();" style="display: none;" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/attributes.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/attributes.htm
new file mode 100755
index 00000000..e8d606a3
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/attributes.htm
@@ -0,0 +1,149 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#xhtmlxtras_dlg.attribs_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="js/attributes.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/attributes.css" />
+</head>
+<body style="display: none" role="application" aria-labelledby="app_title">
+<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.attribs_title}</span>
+<form onsubmit="insertAction();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_attrib_tab}</a></span></li>
+ <li id="events_tab" aria-controls="events_panel"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_events_tab}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.attribute_attrib_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
+ <td><input id="title" name="title" type="text" value="" class="mceFocus" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
+ <td><input id="id" name="id" type="text" value="" /></td>
+ </tr>
+ <tr>
+ <td><label id="classlabel" for="classlist">{#class_name}</label></td>
+ <td>
+ <select id="classlist" name="classlist" class="mceEditableSelect">
+ <option value="" selected="selected">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
+ <td><input id="style" name="style" type="text" value="" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
+ <td>
+ <select id="dir" name="dir">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#xhtmlxtras_dlg.option_ltr}</option>
+ <option value="rtl">{#xhtmlxtras_dlg.option_rtl}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" />
+ </td>
+ </tr>
+ <tr>
+ <td><label id="tabindexlabel" for="tabindex">{#xhtmlxtras_dlg.attribute_label_tabindex}</label></td>
+ <td><input type="text" id="tabindex" name="tabindex" value="" /></td>
+ </tr>
+
+ <tr>
+ <td><label id="accesskeylabel" for="accesskey">{#xhtmlxtras_dlg.attribute_label_accesskey}</label></td>
+ <td><input type="text" id="accesskey" name="accesskey" value="" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ <div id="events_panel" class="panel">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.attribute_events_tab}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label for="onfocus">onfocus</label>:</td>
+ <td><input id="onfocus" name="onfocus" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onblur">onblur</label>:</td>
+ <td><input id="onblur" name="onblur" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onclick">onclick</label>:</td>
+ <td><input id="onclick" name="onclick" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="ondblclick">ondblclick</label>:</td>
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousedown">onmousedown</label>:</td>
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseup">onmouseup</label>:</td>
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseover">onmouseover</label>:</td>
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousemove">onmousemove</label>:</td>
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseout">onmouseout</label>:</td>
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeypress">onkeypress</label>:</td>
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeydown">onkeydown</label>:</td>
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeyup">onkeyup</label>:</td>
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/cite.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/cite.htm
new file mode 100755
index 00000000..0ac6bdb6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/cite.htm
@@ -0,0 +1,142 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#xhtmlxtras_dlg.title_cite_element}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/element_common.js"></script>
+ <script type="text/javascript" src="js/cite.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/popup.css" />
+</head>
+<body style="display: none" role="application" aria-labelledby="app_title">
+<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_cite_element}</span>
+<form onsubmit="insertCite();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
+ <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
+ <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
+ <td><input id="id" name="id" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
+ <td>
+ <select id="class" name="class" class="field mceEditableSelect">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
+ <td><input id="style" name="style" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
+ <td>
+ <select id="dir" name="dir" class="field">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
+ <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" class="field" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ <div id="events_panel" class="panel">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label for="onfocus">onfocus</label>:</td>
+ <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onblur">onblur</label>:</td>
+ <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onclick">onclick</label>:</td>
+ <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="ondblclick">ondblclick</label>:</td>
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousedown">onmousedown</label>:</td>
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseup">onmouseup</label>:</td>
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseover">onmouseover</label>:</td>
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousemove">onmousemove</label>:</td>
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseout">onmouseout</label>:</td>
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeypress">onkeypress</label>:</td>
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeydown">onkeydown</label>:</td>
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeyup">onkeyup</label>:</td>
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeCite();" style="display: none;" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/attributes.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/attributes.css
new file mode 100755
index 00000000..9a6a235c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/attributes.css
@@ -0,0 +1,11 @@
+.panel_wrapper div.current {
+ height: 290px;
+}
+
+#id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey {
+ width: 200px;
+}
+
+#events_panel input {
+ width: 200px;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/popup.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/popup.css
new file mode 100755
index 00000000..e67114db
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/css/popup.css
@@ -0,0 +1,9 @@
+input.field, select.field {width:200px;}
+input.picker {width:179px; margin-left: 5px;}
+input.disabled {border-color:#F2F2F2;}
+img.picker {vertical-align:text-bottom; cursor:pointer;}
+h1 {padding: 0 0 5px 0;}
+.panel_wrapper div.current {height:160px;}
+#xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;}
+a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;}
+#datetime {width:180px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/del.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/del.htm
new file mode 100755
index 00000000..5f667510
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/del.htm
@@ -0,0 +1,162 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#xhtmlxtras_dlg.title_del_element}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/element_common.js"></script>
+ <script type="text/javascript" src="js/del.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/popup.css" />
+</head>
+<body id="xhtmlxtrasins" style="display: none" role="application" aria-labelledby="app_title">
+<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_del_element}</span>
+<form onsubmit="insertDel();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
+ <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
+ <td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse" role="button" aria-labelledby="datetimelabel"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td>
+ <td><input id="cite" name="cite" type="text" value="" class="field" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
+ <td><input id="title" name="title" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
+ <td><input id="id" name="id" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
+ <td>
+ <select id="class" name="class" class="field mceEditableSelect">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
+ <td><input id="style" name="style" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
+ <td>
+ <select id="dir" name="dir" class="field">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
+ <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" class="field" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ <div id="events_panel" class="panel">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label for="onfocus">onfocus</label>:</td>
+ <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onblur">onblur</label>:</td>
+ <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onclick">onclick</label>:</td>
+ <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="ondblclick">ondblclick</label>:</td>
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousedown">onmousedown</label>:</td>
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseup">onmouseup</label>:</td>
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseover">onmouseover</label>:</td>
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousemove">onmousemove</label>:</td>
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseout">onmouseout</label>:</td>
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeypress">onkeypress</label>:</td>
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeydown">onkeydown</label>:</td>
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeyup">onkeyup</label>:</td>
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeDel();" style="display: none;" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin.js
new file mode 100755
index 00000000..9b98a515
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(a,b){a.addCommand("mceCite",function(){a.windowManager.open({file:b+"/cite.htm",width:350+parseInt(a.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAcronym",function(){a.windowManager.open({file:b+"/acronym.htm",width:350+parseInt(a.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.acronym_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAbbr",function(){a.windowManager.open({file:b+"/abbr.htm",width:350+parseInt(a.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(a.getLang("xhtmlxtras.abbr_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceDel",function(){a.windowManager.open({file:b+"/del.htm",width:340+parseInt(a.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(a.getLang("xhtmlxtras.del_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceIns",function(){a.windowManager.open({file:b+"/ins.htm",width:340+parseInt(a.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(a.getLang("xhtmlxtras.ins_delta_height",0)),inline:1},{plugin_url:b})});a.addCommand("mceAttributes",function(){a.windowManager.open({file:b+"/attributes.htm",width:380+parseInt(a.getLang("xhtmlxtras.attr_delta_width",0)),height:370+parseInt(a.getLang("xhtmlxtras.attr_delta_height",0)),inline:1},{plugin_url:b})});a.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});a.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});a.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});a.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});a.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});a.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});a.onNodeChange.add(function(d,c,f,e){f=d.dom.getParent(f,"CITE,ACRONYM,ABBR,DEL,INS");c.setDisabled("cite",e);c.setDisabled("acronym",e);c.setDisabled("abbr",e);c.setDisabled("del",e);c.setDisabled("ins",e);c.setDisabled("attribs",f&&f.nodeName=="BODY");c.setActive("cite",0);c.setActive("acronym",0);c.setActive("abbr",0);c.setActive("del",0);c.setActive("ins",0);if(f){do{c.setDisabled(f.nodeName.toLowerCase(),0);c.setActive(f.nodeName.toLowerCase(),1)}while(f=f.parentNode)}});a.onPreInit.add(function(){a.dom.create("abbr")})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js
new file mode 100755
index 00000000..f2405721
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js
@@ -0,0 +1,132 @@
+/**
+ * editor_plugin_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ tinymce.create('tinymce.plugins.XHTMLXtrasPlugin', {
+ init : function(ed, url) {
+ // Register commands
+ ed.addCommand('mceCite', function() {
+ ed.windowManager.open({
+ file : url + '/cite.htm',
+ width : 350 + parseInt(ed.getLang('xhtmlxtras.cite_delta_width', 0)),
+ height : 250 + parseInt(ed.getLang('xhtmlxtras.cite_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ ed.addCommand('mceAcronym', function() {
+ ed.windowManager.open({
+ file : url + '/acronym.htm',
+ width : 350 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)),
+ height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ ed.addCommand('mceAbbr', function() {
+ ed.windowManager.open({
+ file : url + '/abbr.htm',
+ width : 350 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)),
+ height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ ed.addCommand('mceDel', function() {
+ ed.windowManager.open({
+ file : url + '/del.htm',
+ width : 340 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)),
+ height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ ed.addCommand('mceIns', function() {
+ ed.windowManager.open({
+ file : url + '/ins.htm',
+ width : 340 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)),
+ height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ ed.addCommand('mceAttributes', function() {
+ ed.windowManager.open({
+ file : url + '/attributes.htm',
+ width : 380 + parseInt(ed.getLang('xhtmlxtras.attr_delta_width', 0)),
+ height : 370 + parseInt(ed.getLang('xhtmlxtras.attr_delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('cite', {title : 'xhtmlxtras.cite_desc', cmd : 'mceCite'});
+ ed.addButton('acronym', {title : 'xhtmlxtras.acronym_desc', cmd : 'mceAcronym'});
+ ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'});
+ ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'});
+ ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'});
+ ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'});
+
+ ed.onNodeChange.add(function(ed, cm, n, co) {
+ n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS');
+
+ cm.setDisabled('cite', co);
+ cm.setDisabled('acronym', co);
+ cm.setDisabled('abbr', co);
+ cm.setDisabled('del', co);
+ cm.setDisabled('ins', co);
+ cm.setDisabled('attribs', n && n.nodeName == 'BODY');
+ cm.setActive('cite', 0);
+ cm.setActive('acronym', 0);
+ cm.setActive('abbr', 0);
+ cm.setActive('del', 0);
+ cm.setActive('ins', 0);
+
+ // Activate all
+ if (n) {
+ do {
+ cm.setDisabled(n.nodeName.toLowerCase(), 0);
+ cm.setActive(n.nodeName.toLowerCase(), 1);
+ } while (n = n.parentNode);
+ }
+ });
+
+ ed.onPreInit.add(function() {
+ // Fixed IE issue where it can't handle these elements correctly
+ ed.dom.create('abbr');
+ });
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'XHTML Xtras Plugin',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ };
+ }
+ });
+
+ // Register plugin
+ tinymce.PluginManager.add('xhtmlxtras', tinymce.plugins.XHTMLXtrasPlugin);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/ins.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/ins.htm
new file mode 100755
index 00000000..d001ac7c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/ins.htm
@@ -0,0 +1,162 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#xhtmlxtras_dlg.title_ins_element}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/editable_selects.js"></script>
+ <script type="text/javascript" src="js/element_common.js"></script>
+ <script type="text/javascript" src="js/ins.js"></script>
+ <link rel="stylesheet" type="text/css" href="css/popup.css" />
+</head>
+<body id="xhtmlxtrasins" style="display: none" role="application" aria-labelledby="app_title">
+<span style="display:none;" id="app_title">{#xhtmlxtras_dlg.title_ins_element}</span>
+<form onsubmit="insertIns();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li>
+ <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> -->
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td>
+ <td>
+ <table role="presentation" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td>
+ <td ><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse" role="button" aria-labelledby="datetimelabel"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr >
+ <td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td>
+ <td><input id="cite" name="cite" type="text" value="" class="field" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend>
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td>
+ <td><input id="title" name="title" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td>
+ <td><input id="id" name="id" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td>
+ <td>
+ <select id="class" name="class" class="field mceEditableSelect">
+ <option value="">{#not_set}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td>
+ <td><input id="style" name="style" type="text" value="" class="field" /></td>
+ </tr>
+ <tr>
+ <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td>
+ <td>
+ <select id="dir" name="dir" class="field">
+ <option value="">{#not_set}</option>
+ <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option>
+ <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td>
+ <td>
+ <input id="lang" name="lang" type="text" value="" class="field" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ <div id="events_panel" class="panel">
+ <fieldset>
+ <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend>
+
+ <table role="presentation" border="0" cellpadding="0" cellspacing="4">
+ <tr>
+ <td class="label"><label for="onfocus">onfocus</label>:</td>
+ <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onblur">onblur</label>:</td>
+ <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onclick">onclick</label>:</td>
+ <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="ondblclick">ondblclick</label>:</td>
+ <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousedown">onmousedown</label>:</td>
+ <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseup">onmouseup</label>:</td>
+ <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseover">onmouseover</label>:</td>
+ <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmousemove">onmousemove</label>:</td>
+ <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onmouseout">onmouseout</label>:</td>
+ <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeypress">onkeypress</label>:</td>
+ <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeydown">onkeydown</label>:</td>
+ <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td>
+ </tr>
+
+ <tr>
+ <td class="label"><label for="onkeyup">onkeyup</label>:</td>
+ <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </div>
+ </div>
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeIns();" style="display: none;" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/abbr.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/abbr.js
new file mode 100644
index 00000000..4b51a257
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/abbr.js
@@ -0,0 +1,28 @@
+/**
+ * abbr.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+function init() {
+ SXE.initElementDialog('abbr');
+ if (SXE.currentAction == "update") {
+ SXE.showRemoveButton();
+ }
+}
+
+function insertAbbr() {
+ SXE.insertElement('abbr');
+ tinyMCEPopup.close();
+}
+
+function removeAbbr() {
+ SXE.removeElement('abbr');
+ tinyMCEPopup.close();
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/acronym.js
new file mode 100644
index 00000000..6ec2f887
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/acronym.js
@@ -0,0 +1,28 @@
+/**
+ * acronym.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+function init() {
+ SXE.initElementDialog('acronym');
+ if (SXE.currentAction == "update") {
+ SXE.showRemoveButton();
+ }
+}
+
+function insertAcronym() {
+ SXE.insertElement('acronym');
+ tinyMCEPopup.close();
+}
+
+function removeAcronym() {
+ SXE.removeElement('acronym');
+ tinyMCEPopup.close();
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/attributes.js
new file mode 100644
index 00000000..9c99995a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/attributes.js
@@ -0,0 +1,111 @@
+/**
+ * attributes.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+function init() {
+ tinyMCEPopup.resizeToInnerSize();
+ var inst = tinyMCEPopup.editor;
+ var dom = inst.dom;
+ var elm = inst.selection.getNode();
+ var f = document.forms[0];
+ var onclick = dom.getAttrib(elm, 'onclick');
+
+ setFormValue('title', dom.getAttrib(elm, 'title'));
+ setFormValue('id', dom.getAttrib(elm, 'id'));
+ setFormValue('style', dom.getAttrib(elm, "style"));
+ setFormValue('dir', dom.getAttrib(elm, 'dir'));
+ setFormValue('lang', dom.getAttrib(elm, 'lang'));
+ setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
+ setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
+ setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
+ setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
+ setFormValue('onclick', onclick);
+ setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
+ setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
+ setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
+ setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
+ setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
+ setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
+ setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
+ setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
+ setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
+ className = dom.getAttrib(elm, 'class');
+
+ addClassesToList('classlist', 'advlink_styles');
+ selectByValue(f, 'classlist', className, true);
+
+ TinyMCE_EditableSelects.init();
+}
+
+function setFormValue(name, value) {
+ if(value && document.forms[0].elements[name]){
+ document.forms[0].elements[name].value = value;
+ }
+}
+
+function insertAction() {
+ var inst = tinyMCEPopup.editor;
+ var elm = inst.selection.getNode();
+
+ setAllAttribs(elm);
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
+ tinyMCEPopup.close();
+}
+
+function setAttrib(elm, attrib, value) {
+ var formObj = document.forms[0];
+ var valueElm = formObj.elements[attrib.toLowerCase()];
+ var inst = tinyMCEPopup.editor;
+ var dom = inst.dom;
+
+ if (typeof(value) == "undefined" || value == null) {
+ value = "";
+
+ if (valueElm)
+ value = valueElm.value;
+ }
+
+ dom.setAttrib(elm, attrib.toLowerCase(), value);
+}
+
+function setAllAttribs(elm) {
+ var f = document.forms[0];
+
+ setAttrib(elm, 'title');
+ setAttrib(elm, 'id');
+ setAttrib(elm, 'style');
+ setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
+ setAttrib(elm, 'dir');
+ setAttrib(elm, 'lang');
+ setAttrib(elm, 'tabindex');
+ setAttrib(elm, 'accesskey');
+ setAttrib(elm, 'onfocus');
+ setAttrib(elm, 'onblur');
+ setAttrib(elm, 'onclick');
+ setAttrib(elm, 'ondblclick');
+ setAttrib(elm, 'onmousedown');
+ setAttrib(elm, 'onmouseup');
+ setAttrib(elm, 'onmouseover');
+ setAttrib(elm, 'onmousemove');
+ setAttrib(elm, 'onmouseout');
+ setAttrib(elm, 'onkeypress');
+ setAttrib(elm, 'onkeydown');
+ setAttrib(elm, 'onkeyup');
+
+ // Refresh in old MSIE
+// if (tinyMCE.isMSIE5)
+// elm.outerHTML = elm.outerHTML;
+}
+
+function insertAttribute() {
+ tinyMCEPopup.close();
+}
+
+tinyMCEPopup.onInit.add(init);
+tinyMCEPopup.requireLangPack();
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/cite.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/cite.js
new file mode 100644
index 00000000..009b7154
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/cite.js
@@ -0,0 +1,28 @@
+/**
+ * cite.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+function init() {
+ SXE.initElementDialog('cite');
+ if (SXE.currentAction == "update") {
+ SXE.showRemoveButton();
+ }
+}
+
+function insertCite() {
+ SXE.insertElement('cite');
+ tinyMCEPopup.close();
+}
+
+function removeCite() {
+ SXE.removeElement('cite');
+ tinyMCEPopup.close();
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/del.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/del.js
new file mode 100644
index 00000000..1f957dc7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/del.js
@@ -0,0 +1,53 @@
+/**
+ * del.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+function init() {
+ SXE.initElementDialog('del');
+ if (SXE.currentAction == "update") {
+ setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
+ setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
+ SXE.showRemoveButton();
+ }
+}
+
+function setElementAttribs(elm) {
+ setAllCommonAttribs(elm);
+ setAttrib(elm, 'datetime');
+ setAttrib(elm, 'cite');
+ elm.removeAttribute('data-mce-new');
+}
+
+function insertDel() {
+ var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
+
+ if (elm == null) {
+ var s = SXE.inst.selection.getContent();
+ if(s.length > 0) {
+ insertInlineElement('del');
+ var elementArray = SXE.inst.dom.select('del[data-mce-new]');
+ for (var i=0; i<elementArray.length; i++) {
+ var elm = elementArray[i];
+ setElementAttribs(elm);
+ }
+ }
+ } else {
+ setElementAttribs(elm);
+ }
+ tinyMCEPopup.editor.nodeChanged();
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+}
+
+function removeDel() {
+ SXE.removeElement('del');
+ tinyMCEPopup.close();
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/element_common.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/element_common.js
new file mode 100644
index 00000000..4e5d9c3b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/element_common.js
@@ -0,0 +1,229 @@
+/**
+ * element_common.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+tinyMCEPopup.requireLangPack();
+
+function initCommonAttributes(elm) {
+ var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom;
+
+ // Setup form data for common element attributes
+ setFormValue('title', dom.getAttrib(elm, 'title'));
+ setFormValue('id', dom.getAttrib(elm, 'id'));
+ selectByValue(formObj, 'class', dom.getAttrib(elm, 'class'), true);
+ setFormValue('style', dom.getAttrib(elm, 'style'));
+ selectByValue(formObj, 'dir', dom.getAttrib(elm, 'dir'));
+ setFormValue('lang', dom.getAttrib(elm, 'lang'));
+ setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
+ setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
+ setFormValue('onclick', dom.getAttrib(elm, 'onclick'));
+ setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
+ setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
+ setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
+ setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
+ setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
+ setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
+ setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
+ setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
+ setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
+}
+
+function setFormValue(name, value) {
+ if(document.forms[0].elements[name]) document.forms[0].elements[name].value = value;
+}
+
+function insertDateTime(id) {
+ document.getElementById(id).value = getDateTime(new Date(), "%Y-%m-%dT%H:%M:%S");
+}
+
+function getDateTime(d, fmt) {
+ fmt = fmt.replace("%D", "%m/%d/%y");
+ fmt = fmt.replace("%r", "%I:%M:%S %p");
+ fmt = fmt.replace("%Y", "" + d.getFullYear());
+ fmt = fmt.replace("%y", "" + d.getYear());
+ fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2));
+ fmt = fmt.replace("%d", addZeros(d.getDate(), 2));
+ fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2));
+ fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2));
+ fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2));
+ fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1));
+ fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM"));
+ fmt = fmt.replace("%%", "%");
+
+ return fmt;
+}
+
+function addZeros(value, len) {
+ var i;
+
+ value = "" + value;
+
+ if (value.length < len) {
+ for (i=0; i<(len-value.length); i++)
+ value = "0" + value;
+ }
+
+ return value;
+}
+
+function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
+ if (!form_obj || !form_obj.elements[field_name])
+ return;
+
+ var sel = form_obj.elements[field_name];
+
+ var found = false;
+ for (var i=0; i<sel.options.length; i++) {
+ var option = sel.options[i];
+
+ if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
+ option.selected = true;
+ found = true;
+ } else
+ option.selected = false;
+ }
+
+ if (!found && add_custom && value != '') {
+ var option = new Option('Value: ' + value, value);
+ option.selected = true;
+ sel.options[sel.options.length] = option;
+ }
+
+ return found;
+}
+
+function setAttrib(elm, attrib, value) {
+ var formObj = document.forms[0];
+ var valueElm = formObj.elements[attrib.toLowerCase()];
+ tinyMCEPopup.editor.dom.setAttrib(elm, attrib, value || valueElm.value);
+}
+
+function setAllCommonAttribs(elm) {
+ setAttrib(elm, 'title');
+ setAttrib(elm, 'id');
+ setAttrib(elm, 'class');
+ setAttrib(elm, 'style');
+ setAttrib(elm, 'dir');
+ setAttrib(elm, 'lang');
+ /*setAttrib(elm, 'onfocus');
+ setAttrib(elm, 'onblur');
+ setAttrib(elm, 'onclick');
+ setAttrib(elm, 'ondblclick');
+ setAttrib(elm, 'onmousedown');
+ setAttrib(elm, 'onmouseup');
+ setAttrib(elm, 'onmouseover');
+ setAttrib(elm, 'onmousemove');
+ setAttrib(elm, 'onmouseout');
+ setAttrib(elm, 'onkeypress');
+ setAttrib(elm, 'onkeydown');
+ setAttrib(elm, 'onkeyup');*/
+}
+
+SXE = {
+ currentAction : "insert",
+ inst : tinyMCEPopup.editor,
+ updateElement : null
+}
+
+SXE.focusElement = SXE.inst.selection.getNode();
+
+SXE.initElementDialog = function(element_name) {
+ addClassesToList('class', 'xhtmlxtras_styles');
+ TinyMCE_EditableSelects.init();
+
+ element_name = element_name.toLowerCase();
+ var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
+ if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) {
+ SXE.currentAction = "update";
+ }
+
+ if (SXE.currentAction == "update") {
+ initCommonAttributes(elm);
+ SXE.updateElement = elm;
+ }
+
+ document.forms[0].insert.value = tinyMCEPopup.getLang(SXE.currentAction, 'Insert', true);
+}
+
+SXE.insertElement = function(element_name) {
+ var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()), h, tagName;
+
+ if (elm == null) {
+ var s = SXE.inst.selection.getContent();
+ if(s.length > 0) {
+ tagName = element_name;
+
+ insertInlineElement(element_name);
+ var elementArray = tinymce.grep(SXE.inst.dom.select(element_name));
+ for (var i=0; i<elementArray.length; i++) {
+ var elm = elementArray[i];
+
+ if (SXE.inst.dom.getAttrib(elm, 'data-mce-new')) {
+ elm.id = '';
+ elm.setAttribute('id', '');
+ elm.removeAttribute('id');
+ elm.removeAttribute('data-mce-new');
+
+ setAllCommonAttribs(elm);
+ }
+ }
+ }
+ } else {
+ setAllCommonAttribs(elm);
+ }
+ SXE.inst.nodeChanged();
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
+}
+
+SXE.removeElement = function(element_name){
+ element_name = element_name.toLowerCase();
+ elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase());
+ if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){
+ tinyMCE.execCommand('mceRemoveNode', false, elm);
+ SXE.inst.nodeChanged();
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
+ }
+}
+
+SXE.showRemoveButton = function() {
+ document.getElementById("remove").style.display = '';
+}
+
+SXE.containsClass = function(elm,cl) {
+ return (elm.className.indexOf(cl) > -1) ? true : false;
+}
+
+SXE.removeClass = function(elm,cl) {
+ if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) {
+ return true;
+ }
+ var classNames = elm.className.split(" ");
+ var newClassNames = "";
+ for (var x = 0, cnl = classNames.length; x < cnl; x++) {
+ if (classNames[x] != cl) {
+ newClassNames += (classNames[x] + " ");
+ }
+ }
+ elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end
+}
+
+SXE.addClass = function(elm,cl) {
+ if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl;
+ return true;
+}
+
+function insertInlineElement(en) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom;
+
+ ed.getDoc().execCommand('FontName', false, 'mceinline');
+ tinymce.each(dom.select('span,font'), function(n) {
+ if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
+ dom.replace(dom.create(en, {'data-mce-new' : 1}), n, 1);
+ });
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/ins.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/ins.js
new file mode 100644
index 00000000..c4addfb0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/js/ins.js
@@ -0,0 +1,53 @@
+/**
+ * ins.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+function init() {
+ SXE.initElementDialog('ins');
+ if (SXE.currentAction == "update") {
+ setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
+ setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
+ SXE.showRemoveButton();
+ }
+}
+
+function setElementAttribs(elm) {
+ setAllCommonAttribs(elm);
+ setAttrib(elm, 'datetime');
+ setAttrib(elm, 'cite');
+ elm.removeAttribute('data-mce-new');
+}
+
+function insertIns() {
+ var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS');
+
+ if (elm == null) {
+ var s = SXE.inst.selection.getContent();
+ if(s.length > 0) {
+ insertInlineElement('ins');
+ var elementArray = SXE.inst.dom.select('ins[data-mce-new]');
+ for (var i=0; i<elementArray.length; i++) {
+ var elm = elementArray[i];
+ setElementAttribs(elm);
+ }
+ }
+ } else {
+ setElementAttribs(elm);
+ }
+ tinyMCEPopup.editor.nodeChanged();
+ tinyMCEPopup.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+}
+
+function removeIns() {
+ SXE.removeElement('ins');
+ tinyMCEPopup.close();
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js
new file mode 100644
index 00000000..4994355b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.xhtmlxtras_dlg',{"attribs_title":"Attribute einf\u00fcgen/bearbeiten","option_rtl":"Rechts nach links","option_ltr":"Links nach rechts","insert_date":"Aktuelle Zeit/Datum einf\u00fcgen",remove:"Entfernen","title_cite_element":"Quellenangabe","title_abbr_element":"Abk\u00fcrzung","title_acronym_element":"Akronym","title_del_element":"Entfernter Text","title_ins_element":"Eingef\u00fcgter Text","fieldset_events_tab":"Ereignisse","fieldset_attrib_tab":"Attribute","fieldset_general_tab":"Allgemeine Einstellungen","events_tab":"Ereignisse","attrib_tab":"Attribute","general_tab":"Allgemein","attribute_attrib_tab":"Attribute","attribute_events_tab":"Ereignisse","attribute_label_accesskey":"Tastenk\u00fcrzel","attribute_label_tabindex":"Tabindex","attribute_label_langcode":"Sprache","attribute_option_rtl":"Rechts nach links","attribute_option_ltr":"Links nach rechts","attribute_label_langdir":"Schriftrichtung","attribute_label_datetime":"Zeit/Datum","attribute_label_cite":"Quellenangabe","attribute_label_style":"Format","attribute_label_class":"Klasse","attribute_label_id":"ID","attribute_label_title":"Titel"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js
new file mode 100644
index 00000000..c4569f85
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.xhtmlxtras_dlg',{"attribs_title":"Insert/Edit Attributes","option_rtl":"Right to Left","option_ltr":"Left to Right","insert_date":"Insert Current Date/Time",remove:"Remove","title_cite_element":"Citation Element","title_abbr_element":"Abbreviation Element","title_acronym_element":"Acronym Element","title_del_element":"Deletion Element","title_ins_element":"Insertion Element","fieldset_events_tab":"Element Events","fieldset_attrib_tab":"Element Attributes","fieldset_general_tab":"General Settings","events_tab":"Events","attrib_tab":"Attributes","general_tab":"General","attribute_attrib_tab":"Attributes","attribute_events_tab":"Events","attribute_label_accesskey":"AccessKey","attribute_label_tabindex":"TabIndex","attribute_label_langcode":"Language","attribute_option_rtl":"Right to Left","attribute_option_ltr":"Left to Right","attribute_label_langdir":"Text Direction","attribute_label_datetime":"Date/Time","attribute_label_cite":"Cite","attribute_label_style":"Style","attribute_label_class":"Class","attribute_label_id":"ID","attribute_label_title":"Title"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/hu_dlg.js
new file mode 100644
index 00000000..28b5cb8a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.xhtmlxtras_dlg',{"attribs_title":"Tulajdons\u00e1gok besz\u00far\u00e1sa/szerkeszt\u00e9se","option_rtl":"Jobbr\u00f3l balra","option_ltr":"Balr\u00f3l jobra","insert_date":"Aktu\u00e1lis d\u00e1tum/id\u0151 besz\u00far\u00e1sa",remove:"Elt\u00e1vol\u00edt\u00e1s","title_cite_element":"Id\u00e9zet elem","title_abbr_element":"R\u00f6vid\u00edt\u00e9s elem","title_acronym_element":"Bet\u0171sz\u00f3 elem","title_del_element":"T\u00f6r\u00f6lt elem","title_ins_element":"Besz\u00fart elem","fieldset_events_tab":"Elem esem\u00e9nyek","fieldset_attrib_tab":"Elem tulajdons\u00e1gok","fieldset_general_tab":"\u00c1ltal\u00e1nos be\u00e1ll\u00edt\u00e1sok","events_tab":"Esem\u00e9nyek","attrib_tab":"Tulajdons\u00e1gok","general_tab":"\u00c1ltal\u00e1nos","attribute_attrib_tab":"Tulajdons\u00e1gok","attribute_events_tab":"Esem\u00e9nyek","attribute_label_accesskey":"Gyorsbilenty\u0171","attribute_label_tabindex":"TabIndex","attribute_label_langcode":"Nyelv","attribute_option_rtl":"Jobbr\u00f3l balra","attribute_option_ltr":"Balr\u00f3l jobbra","attribute_label_langdir":"Sz\u00f6veg ir\u00e1nya","attribute_label_datetime":"D\u00e1tum/Id\u0151","attribute_label_cite":"Id\u00e9zet","attribute_label_style":"Style","attribute_label_class":"Oszt\u00e1ly (class)","attribute_label_id":"ID","attribute_label_title":"C\u00edm"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/ja_dlg.js
new file mode 100644
index 00000000..888522c9
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/plugins/xhtmlxtras/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.xhtmlxtras_dlg',{"attribs_title":"\u5c5e\u6027\u306e\u633f\u5165\u3084\u524a\u9664","option_rtl":"\u53f3\u304b\u3089\u5de6","option_ltr":"\u5de6\u304b\u3089\u53f3","insert_date":"\u73fe\u5728\u306e\u65e5\u4ed8\u3084\u6642\u523b\u3092\u633f\u5165",remove:"\u524a\u9664","title_cite_element":"\u5f15\u7528\u8981\u7d20","title_abbr_element":"\u7565\u8a9e\u8981\u7d20","title_acronym_element":"\u982d\u5b57\u8a9e\u8981\u7d20","title_del_element":"\u8981\u7d20\u3092\u524a\u9664","title_ins_element":"\u8981\u7d20\u3092\u633f\u5165","fieldset_events_tab":"\u8981\u7d20\u306e\u30a4\u30d9\u30f3\u30c8","fieldset_attrib_tab":"\u8981\u7d20\u306e\u5c5e\u6027","fieldset_general_tab":"\u4e00\u822c\u7684\u306a\u8a2d\u5b9a","events_tab":"\u30a4\u30d9\u30f3\u30c8","attrib_tab":"\u5c5e\u6027","general_tab":"\u4e00\u822c","attribute_attrib_tab":"\u5c5e\u6027","attribute_events_tab":"\u30a4\u30d9\u30f3\u30c8","attribute_label_accesskey":"\u30a2\u30af\u30bb\u30b9\u30ad\u30fc","attribute_label_tabindex":"\u30bf\u30d6\u30a4\u30f3\u30c7\u30c3\u30af\u30b9","attribute_label_langcode":"\u8a00\u8a9e","attribute_option_rtl":"\u53f3\u304b\u3089\u5de6","attribute_option_ltr":"\u5de6\u304b\u3089\u53f3","attribute_label_langdir":"\u6587\u7ae0\u306e\u65b9\u5411","attribute_label_datetime":"\u65e5\u4ed8/\u6642\u523b","attribute_label_cite":"\u5f15\u7528","attribute_label_style":"\u30b9\u30bf\u30a4\u30eb","attribute_label_class":"\u30af\u30e9\u30b9","attribute_label_id":"ID","attribute_label_title":"\u30bf\u30a4\u30c8\u30eb"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/about.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/about.htm
new file mode 100755
index 00000000..7a97cb71
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/about.htm
@@ -0,0 +1,52 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advanced_dlg.about_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="js/about.js"></script>
+</head>
+<body id="about" style="display: none">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.about_general}</a></span></li>
+ <li id="help_tab" style="display:none" aria-hidden="true" aria-controls="help_panel"><span><a href="javascript:mcTabs.displayTab('help_tab','help_panel');" onmousedown="return false;">{#advanced_dlg.about_help}</a></span></li>
+ <li id="plugins_tab" aria-controls="plugins_panel"><span><a href="javascript:mcTabs.displayTab('plugins_tab','plugins_panel');" onmousedown="return false;">{#advanced_dlg.about_plugins}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <h3>{#advanced_dlg.about_title}</h3>
+ <p>Version: <span id="version"></span> (<span id="date"></span>)</p>
+ <p>TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under <a href="../../license.txt" target="_blank">LGPL</a>
+ by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.</p>
+ <p>Copyright &copy; 2003-2008, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.</p>
+ <p>For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.</p>
+
+ <div id="buttoncontainer">
+ <a href="http://www.moxiecode.com" target="_blank"><img src="http://tinymce.moxiecode.com/images/gotmoxie.png" alt="Got Moxie?" border="0" /></a>
+ </div>
+ </div>
+
+ <div id="plugins_panel" class="panel">
+ <div id="pluginscontainer">
+ <h3>{#advanced_dlg.about_loaded}</h3>
+
+ <div id="plugintablecontainer">
+ </div>
+
+ <p>&nbsp;</p>
+ </div>
+ </div>
+
+ <div id="help_panel" class="panel noscroll" style="overflow: visible;">
+ <div id="iframecontainer"></div>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="button" id="cancel" name="cancel" value="{#close}" onclick="tinyMCEPopup.close();" />
+ </div>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/anchor.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/anchor.htm
new file mode 100755
index 00000000..75c93b79
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/anchor.htm
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advanced_dlg.anchor_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/anchor.js"></script>
+</head>
+<body style="display: none" role="application" aria-labelledby="app_title">
+<form onsubmit="AnchorDialog.update();return false;" action="#">
+ <table border="0" cellpadding="4" cellspacing="0" role="presentation">
+ <tr>
+ <td colspan="2" class="title" id="app_title">{#advanced_dlg.anchor_title}</td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="anchorName">{#advanced_dlg.anchor_name}:</label></td>
+ <td><input name="anchorName" type="text" class="mceFocus" id="anchorName" value="" style="width: 200px" aria-required="true" /></td>
+ </tr>
+ </table>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#update}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/charmap.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/charmap.htm
new file mode 100755
index 00000000..d4b6bdfb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/charmap.htm
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advanced_dlg.charmap_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/charmap.js"></script>
+</head>
+<body id="charmap" style="display:none" role="application">
+<table align="center" border="0" cellspacing="0" cellpadding="2" role="presentation">
+ <tr>
+ <td colspan="2" class="title" ><label for="charmapView" id="charmap_label">{#advanced_dlg.charmap_title}</label></td>
+ </tr>
+ <tr>
+ <td id="charmapView" rowspan="2" align="left" valign="top">
+ <!-- Chars will be rendered here -->
+ </td>
+ <td width="100" align="center" valign="top">
+ <table border="0" cellpadding="0" cellspacing="0" width="100" style="height:100px" role="presentation">
+ <tr>
+ <td id="codeV">&nbsp;</td>
+ </tr>
+ <tr>
+ <td id="codeN">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td valign="bottom" style="padding-bottom: 3px;">
+ <table width="100" align="center" border="0" cellpadding="2" cellspacing="0" role="presentation">
+ <tr>
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeA">HTML-Code</label></td>
+ </tr>
+ <tr>
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center">&nbsp;</td>
+ </tr>
+ <tr>
+ <td style="font-size: 1px;">&nbsp;</td>
+ </tr>
+ <tr>
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeB">NUM-Code</label></td>
+ </tr>
+ <tr>
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center">&nbsp;</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" id="charmap_usage">{#advanced_dlg.charmap_usage}</td>
+ </tr>
+
+</table>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/color_picker.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/color_picker.htm
new file mode 100755
index 00000000..b625531a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/color_picker.htm
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advanced_dlg.colorpicker_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="js/color_picker.js"></script>
+</head>
+<body id="colorpicker" style="display: none" role="application" aria-labelledby="app_label">
+ <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advanced_dlg.colorpicker_title}</span>
+<form onsubmit="insertAction();return false" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="picker_tab" aria-controls="picker_panel" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
+ <li id="rgb_tab" aria-controls="rgb_panel"><span><a href="javascript:;" onclick="mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
+ <li id="named_tab" aria-controls="named_panel"><span><a href="javascript:;" onclick="javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="picker_panel" class="panel current">
+ <fieldset>
+ <legend>{#advanced_dlg.colorpicker_picker_title}</legend>
+ <div id="picker">
+ <img id="colors" src="img/colorpicker.jpg" onclick="computeColor(event)" onmousedown="isMouseDown = true;return false;" onmouseup="isMouseDown = false;" onmousemove="if (isMouseDown && isMouseOver) computeColor(event); return false;" onmouseover="isMouseOver=true;" onmouseout="isMouseOver=false;" alt="" />
+
+ <div id="light">
+ <!-- Will be filled with divs -->
+ </div>
+
+ <br style="clear: both" />
+ </div>
+ </fieldset>
+ </div>
+
+ <div id="rgb_panel" class="panel">
+ <fieldset>
+ <legend id="webcolors_title">{#advanced_dlg.colorpicker_palette_title}</legend>
+ <div id="webcolors">
+ <!-- Gets filled with web safe colors-->
+ </div>
+
+ <br style="clear: both" />
+ </fieldset>
+ </div>
+
+ <div id="named_panel" class="panel">
+ <fieldset id="named_picker_label">
+ <legend id="named_title">{#advanced_dlg.colorpicker_named_title}</legend>
+ <div id="namedcolors" role="listbox" tabindex="0" aria-labelledby="named_picker_label">
+ <!-- Gets filled with named colors-->
+ </div>
+
+ <br style="clear: both" />
+
+ <div id="colornamecontainer">
+ {#advanced_dlg.colorpicker_name} <span id="colorname"></span>
+ </div>
+ </fieldset>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#apply}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();"/>
+ <div id="preview_wrapper"><div id="previewblock"><label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" class="text mceFocus" aria-required="true" /></div><span id="preview"></span></div>
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template.js
new file mode 100755
index 00000000..cbae1c88
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template.js
@@ -0,0 +1 @@
+(function(h){var i=h.DOM,g=h.dom.Event,c=h.extend,f=h.each,a=h.util.Cookie,e,d=h.explode;function b(p,m){var k,l,o=p.dom,j="",n,r;previewStyles=p.settings.preview_styles;if(previewStyles===false){return""}if(!previewStyles){previewStyles="font-family font-size font-weight text-decoration text-transform color background-color"}function q(s){return s.replace(/%(\w+)/g,"")}k=m.block||m.inline||"span";l=o.create(k);f(m.styles,function(t,s){t=q(t);if(t){o.setStyle(l,s,t)}});f(m.attributes,function(t,s){t=q(t);if(t){o.setAttrib(l,s,t)}});f(m.classes,function(s){s=q(s);if(!o.hasClass(l,s)){o.addClass(l,s)}});o.setStyles(l,{position:"absolute",left:-65535});p.getBody().appendChild(l);n=o.getStyle(p.getBody(),"fontSize",true);n=/px$/.test(n)?parseInt(n,10):0;f(previewStyles.split(" "),function(s){var t=o.getStyle(l,s,true);if(s=="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)){t=o.getStyle(p.getBody(),s,true);if(o.toHex(t).toLowerCase()=="#ffffff"){return}}if(s=="font-size"){if(/em|%$/.test(t)){if(n===0){return}t=parseFloat(t,10)/(/%$/.test(t)?100:1);t=(t*n)+"px"}}j+=s+":"+t+";"});o.remove(l);return j}h.ThemeManager.requireLangPack("advanced");h.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(k,l){var m=this,n,j,p;m.editor=k;m.url=l;m.onResolveName=new h.util.Dispatcher(this);n=k.settings;k.forcedHighContrastMode=k.settings.detect_highcontrast&&m._isHighContrast();k.settings.skin=k.forcedHighContrastMode?"highcontrast":k.settings.skin;if(!n.theme_advanced_buttons1){n=c({theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap"},n)}m.settings=n=c({theme_advanced_path:true,theme_advanced_toolbar_location:"top",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"left",theme_advanced_statusbar_location:"bottom",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",theme_advanced_font_selector:"span",theme_advanced_show_current_color:0,readonly:k.settings.readonly},n);if(!n.font_size_style_values){n.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(h.is(n.theme_advanced_font_sizes,"string")){n.font_size_style_values=h.explode(n.font_size_style_values);n.font_size_classes=h.explode(n.font_size_classes||"");p={};k.settings.theme_advanced_font_sizes=n.theme_advanced_font_sizes;f(k.getParam("theme_advanced_font_sizes","","hash"),function(r,q){var o;if(q==r&&r>=1&&r<=7){q=r+" ("+m.sizes[r-1]+"pt)";o=n.font_size_classes[r-1];r=n.font_size_style_values[r-1]||(m.sizes[r-1]+"pt")}if(/^\s*\./.test(r)){o=r.replace(/\./g,"")}p[q]=o?{"class":o}:{fontSize:r}});n.theme_advanced_font_sizes=p}if((j=n.theme_advanced_path_location)&&j!="none"){n.theme_advanced_statusbar_location=n.theme_advanced_path_location}if(n.theme_advanced_statusbar_location=="none"){n.theme_advanced_statusbar_location=0}if(k.settings.content_css!==false){k.contentCSS.push(k.baseURI.toAbsolute(l+"/skins/"+k.settings.skin+"/content.css"))}k.onInit.add(function(){if(!k.settings.readonly){k.onNodeChange.add(m._nodeChanged,m);k.onKeyUp.add(m._updateUndoStatus,m);k.onMouseUp.add(m._updateUndoStatus,m);k.dom.bind(k.dom.getRoot(),"dragend",function(){m._updateUndoStatus(k)})}});k.onSetProgressState.add(function(r,o,s){var t,u=r.id,q;if(o){m.progressTimer=setTimeout(function(){t=r.getContainer();t=t.insertBefore(i.create("DIV",{style:"position:relative"}),t.firstChild);q=i.get(r.id+"_tbl");i.add(t,"div",{id:u+"_blocker","class":"mceBlocker",style:{width:q.clientWidth+2,height:q.clientHeight+2}});i.add(t,"div",{id:u+"_progress","class":"mceProgress",style:{left:q.clientWidth/2,top:q.clientHeight/2}})},s||0)}else{i.remove(u+"_blocker");i.remove(u+"_progress");clearTimeout(m.progressTimer)}});i.loadCSS(n.editor_css?k.documentBaseURI.toAbsolute(n.editor_css):l+"/skins/"+k.settings.skin+"/ui.css");if(n.skin_variant){i.loadCSS(l+"/skins/"+k.settings.skin+"/ui_"+n.skin_variant+".css")}},_isHighContrast:function(){var j,k=i.add(i.getRoot(),"div",{style:"background-color: rgb(171,239,86);"});j=(i.getStyle(k,"background-color",true)+"").toLowerCase().replace(/ /g,"");i.remove(k);return j!="rgb(171,239,86)"&&j!="#abef56"},createControl:function(m,j){var k,l;if(l=j.createControl(m)){return l}switch(m){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((k=this.controls[m])){return j.createButton(m,{title:"advanced."+k[0],cmd:k[1],ui:k[2],value:k[3]})}},execCommand:function(l,k,m){var j=this["_"+l];if(j){j.call(this,k,m);return true}return false},_importClasses:function(l){var j=this.editor,k=j.controlManager.get("styleselect");if(k.getLength()==0){f(j.dom.getClasses(),function(q,m){var p="style_"+m,n;n={inline:"span",attributes:{"class":q["class"]},selector:"*"};j.formatter.register(p,n);k.add(q["class"],p,{style:function(){return b(j,n)}})})}},_createStyleSelect:function(o){var l=this,j=l.editor,k=j.controlManager,m;m=k.createListBox("styleselect",{title:"advanced.style_select",onselect:function(q){var r,n=[],p;f(m.items,function(s){n.push(s.value)});j.focus();j.undoManager.add();r=j.formatter.matchAll(n);h.each(r,function(s){if(!q||s==q){if(s){j.formatter.remove(s)}p=true}});if(!p){j.formatter.apply(q)}j.undoManager.add();j.nodeChanged();return false}});j.onPreInit.add(function(){var p=0,n=j.getParam("style_formats");if(n){f(n,function(q){var r,s=0;f(q,function(){s++});if(s>1){r=q.name=q.name||"style_"+(p++);j.formatter.register(r,q);m.add(q.title,r,{style:function(){return b(j,q)}})}else{m.add(q.title)}})}else{f(j.getParam("theme_advanced_styles","","hash"),function(t,s){var r,q;if(t){r="style_"+(p++);q={inline:"span",classes:t,selector:"*"};j.formatter.register(r,q);m.add(l.editor.translate(s),r,{style:function(){return b(j,q)}})}})}});if(m.getLength()==0){m.onPostRender.add(function(p,q){if(!m.NativeListBox){g.add(q.id+"_text","focus",l._importClasses,l);g.add(q.id+"_text","mousedown",l._importClasses,l);g.add(q.id+"_open","focus",l._importClasses,l);g.add(q.id+"_open","mousedown",l._importClasses,l)}else{g.add(q.id,"focus",l._importClasses,l)}})}return m},_createFontSelect:function(){var l,k=this,j=k.editor;l=j.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(m){var n=l.items[l.selectedIndex];if(!m&&n){j.execCommand("FontName",false,n.value);return}j.execCommand("FontName",false,m);l.select(function(o){return m==o});if(n&&n.value==m){l.select(null)}return false}});if(l){f(j.getParam("theme_advanced_fonts",k.settings.theme_advanced_fonts,"hash"),function(n,m){l.add(j.translate(m),n,{style:n.indexOf("dings")==-1?"font-family:"+n:""})})}return l},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(o){var p=n.items[n.selectedIndex];if(!o&&p){p=p.value;if(p["class"]){k.formatter.toggle("fontsize_class",{value:p["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,p.fontSize)}return}if(o["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}n.select(function(q){return o==q});if(p&&(p.value.fontSize==o.fontSize||p.value["class"]&&p.value["class"]==o["class"])){n.select(null)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(p,o){var q=p.fontSize;if(q>=1&&q<=7){q=m.sizes[parseInt(q)-1]+"pt"}n.add(o,p,{style:"font-size:"+q,"class":"mceFontSize"+(l++)+(" "+(p["class"]||""))})})}return n},_createBlockFormats:function(){var l,j={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},k=this;l=k.editor.controlManager.createListBox("formatselect",{title:"advanced.block",onselect:function(m){k.editor.execCommand("FormatBlock",false,m);return false}});if(l){f(k.editor.getParam("theme_advanced_blockformats",k.settings.theme_advanced_blockformats,"hash"),function(n,m){l.add(k.editor.translate(m!=n?m:j[n]),n,{"class":"mce_formatPreview mce_"+n,style:function(){return b(k.editor,{block:n})}})})}return l},_createForeColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_text_colors){m.colors=j}if(l.theme_advanced_default_foreground_color){m.default_color=l.theme_advanced_default_foreground_color}m.title="advanced.forecolor_desc";m.cmd="ForeColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("forecolor",m);return n},_createBackColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_background_colors){m.colors=j}if(l.theme_advanced_default_background_color){m.default_color=l.theme_advanced_default_background_color}m.title="advanced.backcolor_desc";m.cmd="HiliteColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("backcolor",m);return n},renderUI:function(l){var q,m,r,w=this,u=w.editor,x=w.settings,v,k,j;if(u.settings){u.settings.aria_label=x.aria_label+u.getLang("advanced.help_shortcut")}q=k=i.create("span",{role:"application","aria-labelledby":u.id+"_voice",id:u.id+"_parent","class":"mceEditor "+u.settings.skin+"Skin"+(x.skin_variant?" "+u.settings.skin+"Skin"+w._ufirst(x.skin_variant):"")+(u.settings.directionality=="rtl"?" mceRtl":"")});i.add(q,"span",{"class":"mceVoiceLabel",style:"display:none;",id:u.id+"_voice"},x.aria_label);if(!i.boxModel){q=i.add(q,"div",{"class":"mceOldBoxModel"})}q=v=i.add(q,"table",{role:"presentation",id:u.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});q=r=i.add(q,"tbody");switch((x.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":m=w._rowLayout(x,r,l);break;case"customlayout":m=u.execCallback("theme_advanced_custom_layout",x,r,l,k);break;default:m=w._simpleLayout(x,r,l,k)}q=l.targetNode;j=v.rows;i.addClass(j[0],"mceFirst");i.addClass(j[j.length-1],"mceLast");f(i.select("tr",r),function(o){i.addClass(o.firstChild,"mceFirst");i.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(i.get(x.theme_advanced_toolbar_container)){i.get(x.theme_advanced_toolbar_container).appendChild(k)}else{i.insertAfter(k,q)}g.add(u.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){w._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return false}});if(!u.getParam("accessibility_focus")){g.add(i.add(k,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(u.id).focus()})}if(x.theme_advanced_toolbar_location=="external"){l.deltaHeight=0}w.deltaHeight=l.deltaHeight;l.targetNode=null;u.onKeyDown.add(function(p,n){var s=121,o=122;if(n.altKey){if(n.keyCode===s){if(h.isWebKit){window.focus()}w.toolbarGroup.focus();return g.cancel(n)}else{if(n.keyCode===o){i.get(p.id+"_path_row").focus();return g.cancel(n)}}}});u.addShortcut("alt+0","","mceShortcuts",w);return{iframeContainer:m,editorContainer:u.id+"_parent",sizeContainer:v,deltaHeight:l.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:h.majorVersion+"."+h.minorVersion}},resizeBy:function(j,k){var l=i.get(this.editor.id+"_ifr");this.resizeTo(l.clientWidth+j,l.clientHeight+k)},resizeTo:function(j,n,l){var k=this.editor,m=this.settings,o=i.get(k.id+"_tbl"),p=i.get(k.id+"_ifr");j=Math.max(m.theme_advanced_resizing_min_width||100,j);n=Math.max(m.theme_advanced_resizing_min_height||100,n);j=Math.min(m.theme_advanced_resizing_max_width||65535,j);n=Math.min(m.theme_advanced_resizing_max_height||65535,n);i.setStyle(o,"height","");i.setStyle(p,"height",n);if(m.theme_advanced_resize_horizontal){i.setStyle(o,"width","");i.setStyle(p,"width",j);if(j<o.clientWidth){j=o.clientWidth;i.setStyle(p,"width",o.clientWidth)}}if(l&&m.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+k.id+"_size",{cw:j,ch:n})}},destroy:function(){var j=this.editor.id;g.clear(j+"_resize");g.clear(j+"_path_row");g.clear(j+"_external_close")},_simpleLayout:function(z,u,l,j){var y=this,v=y.editor,w=z.theme_advanced_toolbar_location,q=z.theme_advanced_statusbar_location,m,k,r,x;if(z.readonly){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});return k}if(w=="top"){y._addToolbars(u,l)}if(w=="external"){m=x=i.create("div",{style:"position:relative"});m=i.add(m,"div",{id:v.id+"_external","class":"mceExternalToolbar"});i.add(m,"a",{id:v.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});m=i.add(m,"table",{id:v.id+"_tblext",cellSpacing:0,cellPadding:0});r=i.add(m,"tbody");if(j.firstChild.className=="mceOldBoxModel"){j.firstChild.appendChild(x)}else{j.insertBefore(x,j.firstChild)}y._addToolbars(r,l);v.onMouseUp.add(function(){var o=i.get(v.id+"_external");i.show(o);i.hide(e);var n=g.add(v.id+"_external_close","click",function(){i.hide(v.id+"_external");g.remove(v.id+"_external_close","click",n);return false});i.show(o);i.setStyle(o,"top",0-i.getRect(v.id+"_tblext").h-1);i.hide(o);i.show(o);o.style.filter="";e=v.id+"_external";o=null})}if(q=="top"){y._addStatusBar(u,l)}if(!z.theme_advanced_toolbar_container){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"})}if(w=="bottom"){y._addToolbars(u,l)}if(q=="bottom"){y._addStatusBar(u,l)}return k},_rowLayout:function(x,p,l){var w=this,q=w.editor,v,y,j=q.controlManager,m,k,u,r;v=x.theme_advanced_containers_default_class||"";y=x.theme_advanced_containers_default_align||"center";f(d(x.theme_advanced_containers||""),function(s,o){var n=x["theme_advanced_container_"+s]||"";switch(s.toLowerCase()){case"mceeditor":m=i.add(p,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":w._addStatusBar(p,l);break;default:r=(x["theme_advanced_container_"+s+"_align"]||y).toLowerCase();r="mce"+w._ufirst(r);m=i.add(i.add(p,"tr"),"td",{"class":"mceToolbar "+(x["theme_advanced_container_"+s+"_class"]||v)+" "+r||y});u=j.createToolbar("toolbar"+o);w._addControls(n,u);i.setHTML(m,u.renderHTML());l.deltaHeight-=x.theme_advanced_row_height}});return k},_addControls:function(k,j){var l=this,m=l.settings,n,o=l.editor.controlManager;if(m.theme_advanced_disable&&!l._disabled){n={};f(d(m.theme_advanced_disable),function(p){n[p]=1});l._disabled=n}else{n=l._disabled}f(d(k),function(q){var p;if(n&&n[q]){return}if(q=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(r){r=l.createControl(r,o);if(r){j.add(r)}});return}p=l.createControl(q,o);if(p){j.add(p)}})},_addToolbars:function(y,k){var B=this,q,p,u=B.editor,C=B.settings,A,j=u.controlManager,w,l,r=[],z,x,m=false;x=j.createToolbarGroup("toolbargroup",{name:u.getLang("advanced.toolbar"),tab_focus_toolbar:u.getParam("theme_advanced_tab_focus_toolbar")});B.toolbarGroup=x;z=C.theme_advanced_toolbar_align.toLowerCase();z="mce"+B._ufirst(z);l=i.add(i.add(y,"tr",{role:"toolbar"}),"td",{"class":"mceToolbar "+z,role:"toolbar"});for(q=1;(A=C["theme_advanced_buttons"+q]);q++){m=true;p=j.createToolbar("toolbar"+q,{"class":"mceToolbarRow"+q});if(C["theme_advanced_buttons"+q+"_add"]){A+=","+C["theme_advanced_buttons"+q+"_add"]}if(C["theme_advanced_buttons"+q+"_add_before"]){A=C["theme_advanced_buttons"+q+"_add_before"]+","+A}B._addControls(A,p);x.add(p);k.deltaHeight-=C.theme_advanced_row_height}if(!m){k.deltaHeight-=C.theme_advanced_row_height}r.push(x.renderHTML());r.push(i.createHTML("a",{href:"#",accesskey:"z",title:u.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+u.id+"').focus();"},"<!-- IE -->"));i.setHTML(l,r.join(""))},_addStatusBar:function(p,k){var l,w=this,q=w.editor,x=w.settings,j,u,v,m;l=i.add(p,"tr");l=m=i.add(l,"td",{"class":"mceStatusbar"});l=i.add(l,"div",{id:q.id+"_path_row",role:"group","aria-labelledby":q.id+"_path_voice"});if(x.theme_advanced_path){i.add(l,"span",{id:q.id+"_path_voice"},q.translate("advanced.path"));i.add(l,"span",{},": ")}else{i.add(l,"span",{},"&#160;")}if(x.theme_advanced_resizing){i.add(m,"a",{id:q.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize",tabIndex:"-1"});if(x.theme_advanced_resizing_use_cookie){q.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+q.id+"_size"),r=i.get(q.id+"_tbl");if(!n){return}w.resizeTo(n.cw,n.ch)})}q.onPostRender.add(function(){g.add(q.id+"_resize","click",function(n){n.preventDefault()});g.add(q.id+"_resize","mousedown",function(E){var t,r,s,o,D,A,B,G,n,F,y;function z(H){H.preventDefault();n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F)}function C(H){g.remove(i.doc,"mousemove",t);g.remove(q.getDoc(),"mousemove",r);g.remove(i.doc,"mouseup",s);g.remove(q.getDoc(),"mouseup",o);n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F,true);q.nodeChanged()}E.preventDefault();D=E.screenX;A=E.screenY;y=i.get(w.editor.id+"_ifr");B=n=y.clientWidth;G=F=y.clientHeight;t=g.add(i.doc,"mousemove",z);r=g.add(q.getDoc(),"mousemove",z);s=g.add(i.doc,"mouseup",C);o=g.add(q.getDoc(),"mouseup",C)})})}k.deltaHeight-=21;l=p=null},_updateUndoStatus:function(k){var j=k.controlManager,l=k.undoManager;j.setDisabled("undo",!l.hasUndo()&&!l.typing);j.setDisabled("redo",!l.hasRedo())},_nodeChanged:function(o,u,E,r,F){var z=this,D,G=0,y,H,A=z.settings,x,l,w,C,m,k,j;h.each(z.stateControls,function(n){u.setActive(n,o.queryCommandState(z.controls[n][1]))});function q(p){var s,n=F.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s<n.length;s++){if(t(n[s])){return n[s]}}}u.setActive("visualaid",o.hasVisual);z._updateUndoStatus(o);u.setDisabled("outdent",!o.queryCommandState("Outdent"));D=q("A");if(H=u.get("link")){H.setDisabled((!D&&r)||(D&&!D.href));H.setActive(!!D&&(!D.name&&!D.id))}if(H=u.get("unlink")){H.setDisabled(!D&&r);H.setActive(!!D&&!D.name&&!D.id)}if(H=u.get("anchor")){H.setActive(!r&&!!D&&(D.name||(D.id&&!D.href)))}D=q("IMG");if(H=u.get("image")){H.setActive(!r&&!!D&&E.className.indexOf("mceItem")==-1)}if(H=u.get("styleselect")){z._importClasses();k=[];f(H.items,function(n){k.push(n.value)});j=o.formatter.matchAll(k);H.select(j[0]);h.each(j,function(p,n){if(n>0){H.mark(p)}})}if(H=u.get("formatselect")){D=q(o.dom.isBlock);if(D){H.select(D.nodeName.toLowerCase())}}q(function(p){if(p.nodeName==="SPAN"){if(!x&&p.className){x=p.className}}if(o.dom.is(p,A.theme_advanced_font_selector)){if(!l&&p.style.fontSize){l=p.style.fontSize}if(!w&&p.style.fontFamily){w=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}if(!C&&p.style.color){C=p.style.color}if(!m&&p.style.backgroundColor){m=p.style.backgroundColor}}return false});if(H=u.get("fontselect")){H.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==w})}if(H=u.get("fontsizeselect")){if(A.theme_advanced_runtime_fontsize&&!l&&!x){l=o.dom.getStyle(E,"fontSize",true)}H.select(function(n){if(n.fontSize&&n.fontSize===l){return true}if(n["class"]&&n["class"]===x){return true}})}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_path&&A.theme_advanced_statusbar_location){D=i.get(o.id+"_path")||i.add(o.id+"_path_row","span",{id:o.id+"_path"});if(z.statusKeyboardNavigation){z.statusKeyboardNavigation.destroy();z.statusKeyboardNavigation=null}i.setHTML(D,"");q(function(I){var p=I.nodeName.toLowerCase(),s,v,t="";if(I.nodeType!=1||p==="br"||I.getAttribute("data-mce-bogus")||i.hasClass(I,"mceItemHidden")||i.hasClass(I,"mceItemRemoved")){return}if(h.isIE&&I.scopeName!=="HTML"&&I.scopeName){p=I.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(y=i.getAttrib(I,"src")){t+="src: "+y+" "}break;case"a":if(y=i.getAttrib(I,"name")){t+="name: "+y+" ";p+="#"+y}if(y=i.getAttrib(I,"href")){t+="href: "+y+" "}break;case"font":if(y=i.getAttrib(I,"face")){t+="font: "+y+" "}if(y=i.getAttrib(I,"size")){t+="size: "+y+" "}if(y=i.getAttrib(I,"color")){t+="color: "+y+" "}break;case"span":if(y=i.getAttrib(I,"style")){t+="style: "+y+" "}break}if(y=i.getAttrib(I,"id")){t+="id: "+y+" "}if(y=I.className){y=y.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(y){t+="class: "+y+" ";if(o.dom.isBlock(I)||p=="img"||p=="span"){p+="."+y}}}p=p.replace(/(html:)/g,"");p={name:p,node:I,title:t};z.onResolveName.dispatch(z,p);t=p.title;p=p.name;v=i.create("a",{href:"javascript:;",role:"button",onmousedown:"return false;",title:t,"class":"mcePath_"+(G++)},p);if(D.hasChildNodes()){D.insertBefore(i.create("span",{"aria-hidden":"true"},"\u00a0\u00bb "),D.firstChild);D.insertBefore(v,D.firstChild)}else{D.appendChild(v)}},o.getBody());if(i.select("a",D).length>0){z.statusKeyboardNavigation=new h.ui.KeyboardNavigation({root:o.id+"_path_row",items:i.select("a",D),excludeFromTabOrder:true,onCancel:function(){o.focus()}},i)}}},_sel:function(j){this.editor.execCommand("mceSelectNodeDepth",false,j)},_mceInsertAnchor:function(l,k){var j=this.editor;j.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(j.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(j.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var j=this.editor;j.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(j.getLang("advanced.charmap_delta_width",0)),height:265+parseInt(j.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var j=this.editor;j.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceShortcuts:function(){var j=this.editor;j.windowManager.open({url:this.url+"/shortcuts.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(l,k){var j=this.editor;k=k||{};j.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(j.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(j.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:k.color,func:k.func,theme_url:this.url})},_mceCodeEditor:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(j.getParam("theme_advanced_source_editor_width",720)),height:parseInt(j.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(k,l){var j=this.editor;if(j.dom.getAttrib(j.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}j.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(j.getLang("advanced.image_delta_width",0)),height:275+parseInt(j.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(j.getLang("advanced.link_delta_width",0)),height:200+parseInt(j.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var j=this.editor;j.windowManager.confirm("advanced.newdocument",function(k){if(k){j.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var j=this;this._mceColorPicker(0,{color:j.fgColor,func:function(k){j.fgColor=k;j.editor.execCommand("ForeColor",false,k)}})},_mceBackColor:function(){var j=this;this._mceColorPicker(0,{color:j.bgColor,func:function(k){j.bgColor=k;j.editor.execCommand("HiliteColor",false,k)}})},_ufirst:function(j){return j.substring(0,1).toUpperCase()+j.substring(1)}});h.ThemeManager.add("advanced",h.themes.AdvancedTheme)}(tinymce)); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template_src.js
new file mode 100755
index 00000000..12deb49c
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/editor_template_src.js
@@ -0,0 +1,1490 @@
+/**
+ * editor_template_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function(tinymce) {
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, each = tinymce.each, Cookie = tinymce.util.Cookie, lastExtID, explode = tinymce.explode;
+
+ // Generates a preview for a format
+ function getPreviewCss(ed, fmt) {
+ var name, previewElm, dom = ed.dom, previewCss = '', parentFontSize, previewStylesName;
+
+ previewStyles = ed.settings.preview_styles;
+
+ // No preview forced
+ if (previewStyles === false)
+ return '';
+
+ // Default preview
+ if (!previewStyles)
+ previewStyles = 'font-family font-size font-weight text-decoration text-transform color background-color';
+
+ // Removes any variables since these can't be previewed
+ function removeVars(val) {
+ return val.replace(/%(\w+)/g, '');
+ };
+
+ // Create block/inline element to use for preview
+ name = fmt.block || fmt.inline || 'span';
+ previewElm = dom.create(name);
+
+ // Add format styles to preview element
+ each(fmt.styles, function(value, name) {
+ value = removeVars(value);
+
+ if (value)
+ dom.setStyle(previewElm, name, value);
+ });
+
+ // Add attributes to preview element
+ each(fmt.attributes, function(value, name) {
+ value = removeVars(value);
+
+ if (value)
+ dom.setAttrib(previewElm, name, value);
+ });
+
+ // Add classes to preview element
+ each(fmt.classes, function(value) {
+ value = removeVars(value);
+
+ if (!dom.hasClass(previewElm, value))
+ dom.addClass(previewElm, value);
+ });
+
+ // Add the previewElm outside the visual area
+ dom.setStyles(previewElm, {position: 'absolute', left: -0xFFFF});
+ ed.getBody().appendChild(previewElm);
+
+ // Get parent container font size so we can compute px values out of em/% for older IE:s
+ parentFontSize = dom.getStyle(ed.getBody(), 'fontSize', true);
+ parentFontSize = /px$/.test(parentFontSize) ? parseInt(parentFontSize, 10) : 0;
+
+ each(previewStyles.split(' '), function(name) {
+ var value = dom.getStyle(previewElm, name, true);
+
+ // If background is transparent then check if the body has a background color we can use
+ if (name == 'background-color' && /transparent|rgba\s*\([^)]+,\s*0\)/.test(value)) {
+ value = dom.getStyle(ed.getBody(), name, true);
+
+ // Ignore white since it's the default color, not the nicest fix
+ if (dom.toHex(value).toLowerCase() == '#ffffff') {
+ return;
+ }
+ }
+
+ // Old IE won't calculate the font size so we need to do that manually
+ if (name == 'font-size') {
+ if (/em|%$/.test(value)) {
+ if (parentFontSize === 0) {
+ return;
+ }
+
+ // Convert font size from em/% to px
+ value = parseFloat(value, 10) / (/%$/.test(value) ? 100 : 1);
+ value = (value * parentFontSize) + 'px';
+ }
+ }
+
+ previewCss += name + ':' + value + ';';
+ });
+
+ dom.remove(previewElm);
+
+ return previewCss;
+ };
+
+ // Tell it to load theme specific language pack(s)
+ tinymce.ThemeManager.requireLangPack('advanced');
+
+ tinymce.create('tinymce.themes.AdvancedTheme', {
+ sizes : [8, 10, 12, 14, 18, 24, 36],
+
+ // Control name lookup, format: title, command
+ controls : {
+ bold : ['bold_desc', 'Bold'],
+ italic : ['italic_desc', 'Italic'],
+ underline : ['underline_desc', 'Underline'],
+ strikethrough : ['striketrough_desc', 'Strikethrough'],
+ justifyleft : ['justifyleft_desc', 'JustifyLeft'],
+ justifycenter : ['justifycenter_desc', 'JustifyCenter'],
+ justifyright : ['justifyright_desc', 'JustifyRight'],
+ justifyfull : ['justifyfull_desc', 'JustifyFull'],
+ bullist : ['bullist_desc', 'InsertUnorderedList'],
+ numlist : ['numlist_desc', 'InsertOrderedList'],
+ outdent : ['outdent_desc', 'Outdent'],
+ indent : ['indent_desc', 'Indent'],
+ cut : ['cut_desc', 'Cut'],
+ copy : ['copy_desc', 'Copy'],
+ paste : ['paste_desc', 'Paste'],
+ undo : ['undo_desc', 'Undo'],
+ redo : ['redo_desc', 'Redo'],
+ link : ['link_desc', 'mceLink'],
+ unlink : ['unlink_desc', 'unlink'],
+ image : ['image_desc', 'mceImage'],
+ cleanup : ['cleanup_desc', 'mceCleanup'],
+ help : ['help_desc', 'mceHelp'],
+ code : ['code_desc', 'mceCodeEditor'],
+ hr : ['hr_desc', 'InsertHorizontalRule'],
+ removeformat : ['removeformat_desc', 'RemoveFormat'],
+ sub : ['sub_desc', 'subscript'],
+ sup : ['sup_desc', 'superscript'],
+ forecolor : ['forecolor_desc', 'ForeColor'],
+ forecolorpicker : ['forecolor_desc', 'mceForeColor'],
+ backcolor : ['backcolor_desc', 'HiliteColor'],
+ backcolorpicker : ['backcolor_desc', 'mceBackColor'],
+ charmap : ['charmap_desc', 'mceCharMap'],
+ visualaid : ['visualaid_desc', 'mceToggleVisualAid'],
+ anchor : ['anchor_desc', 'mceInsertAnchor'],
+ newdocument : ['newdocument_desc', 'mceNewDocument'],
+ blockquote : ['blockquote_desc', 'mceBlockQuote']
+ },
+
+ stateControls : ['bold', 'italic', 'underline', 'strikethrough', 'bullist', 'numlist', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'sub', 'sup', 'blockquote'],
+
+ init : function(ed, url) {
+ var t = this, s, v, o;
+
+ t.editor = ed;
+ t.url = url;
+ t.onResolveName = new tinymce.util.Dispatcher(this);
+ s = ed.settings;
+
+ ed.forcedHighContrastMode = ed.settings.detect_highcontrast && t._isHighContrast();
+ ed.settings.skin = ed.forcedHighContrastMode ? 'highcontrast' : ed.settings.skin;
+
+ // Setup default buttons
+ if (!s.theme_advanced_buttons1) {
+ s = extend({
+ theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
+ theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",
+ theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap"
+ }, s);
+ }
+
+ // Default settings
+ t.settings = s = extend({
+ theme_advanced_path : true,
+ theme_advanced_toolbar_location : 'top',
+ theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
+ theme_advanced_toolbar_align : "left",
+ theme_advanced_statusbar_location : "bottom",
+ theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
+ theme_advanced_more_colors : 1,
+ theme_advanced_row_height : 23,
+ theme_advanced_resize_horizontal : 1,
+ theme_advanced_resizing_use_cookie : 1,
+ theme_advanced_font_sizes : "1,2,3,4,5,6,7",
+ theme_advanced_font_selector : "span",
+ theme_advanced_show_current_color: 0,
+ readonly : ed.settings.readonly
+ }, s);
+
+ // Setup default font_size_style_values
+ if (!s.font_size_style_values)
+ s.font_size_style_values = "8pt,10pt,12pt,14pt,18pt,24pt,36pt";
+
+ if (tinymce.is(s.theme_advanced_font_sizes, 'string')) {
+ s.font_size_style_values = tinymce.explode(s.font_size_style_values);
+ s.font_size_classes = tinymce.explode(s.font_size_classes || '');
+
+ // Parse string value
+ o = {};
+ ed.settings.theme_advanced_font_sizes = s.theme_advanced_font_sizes;
+ each(ed.getParam('theme_advanced_font_sizes', '', 'hash'), function(v, k) {
+ var cl;
+
+ if (k == v && v >= 1 && v <= 7) {
+ k = v + ' (' + t.sizes[v - 1] + 'pt)';
+ cl = s.font_size_classes[v - 1];
+ v = s.font_size_style_values[v - 1] || (t.sizes[v - 1] + 'pt');
+ }
+
+ if (/^\s*\./.test(v))
+ cl = v.replace(/\./g, '');
+
+ o[k] = cl ? {'class' : cl} : {fontSize : v};
+ });
+
+ s.theme_advanced_font_sizes = o;
+ }
+
+ if ((v = s.theme_advanced_path_location) && v != 'none')
+ s.theme_advanced_statusbar_location = s.theme_advanced_path_location;
+
+ if (s.theme_advanced_statusbar_location == 'none')
+ s.theme_advanced_statusbar_location = 0;
+
+ if (ed.settings.content_css !== false)
+ ed.contentCSS.push(ed.baseURI.toAbsolute(url + "/skins/" + ed.settings.skin + "/content.css"));
+
+ // Init editor
+ ed.onInit.add(function() {
+ if (!ed.settings.readonly) {
+ ed.onNodeChange.add(t._nodeChanged, t);
+ ed.onKeyUp.add(t._updateUndoStatus, t);
+ ed.onMouseUp.add(t._updateUndoStatus, t);
+ ed.dom.bind(ed.dom.getRoot(), 'dragend', function() {
+ t._updateUndoStatus(ed);
+ });
+ }
+ });
+
+ ed.onSetProgressState.add(function(ed, b, ti) {
+ var co, id = ed.id, tb;
+
+ if (b) {
+ t.progressTimer = setTimeout(function() {
+ co = ed.getContainer();
+ co = co.insertBefore(DOM.create('DIV', {style : 'position:relative'}), co.firstChild);
+ tb = DOM.get(ed.id + '_tbl');
+
+ DOM.add(co, 'div', {id : id + '_blocker', 'class' : 'mceBlocker', style : {width : tb.clientWidth + 2, height : tb.clientHeight + 2}});
+ DOM.add(co, 'div', {id : id + '_progress', 'class' : 'mceProgress', style : {left : tb.clientWidth / 2, top : tb.clientHeight / 2}});
+ }, ti || 0);
+ } else {
+ DOM.remove(id + '_blocker');
+ DOM.remove(id + '_progress');
+ clearTimeout(t.progressTimer);
+ }
+ });
+
+ DOM.loadCSS(s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : url + "/skins/" + ed.settings.skin + "/ui.css");
+
+ if (s.skin_variant)
+ DOM.loadCSS(url + "/skins/" + ed.settings.skin + "/ui_" + s.skin_variant + ".css");
+ },
+
+ _isHighContrast : function() {
+ var actualColor, div = DOM.add(DOM.getRoot(), 'div', {'style': 'background-color: rgb(171,239,86);'});
+
+ actualColor = (DOM.getStyle(div, 'background-color', true) + '').toLowerCase().replace(/ /g, '');
+ DOM.remove(div);
+
+ return actualColor != 'rgb(171,239,86)' && actualColor != '#abef56';
+ },
+
+ createControl : function(n, cf) {
+ var cd, c;
+
+ if (c = cf.createControl(n))
+ return c;
+
+ switch (n) {
+ case "styleselect":
+ return this._createStyleSelect();
+
+ case "formatselect":
+ return this._createBlockFormats();
+
+ case "fontselect":
+ return this._createFontSelect();
+
+ case "fontsizeselect":
+ return this._createFontSizeSelect();
+
+ case "forecolor":
+ return this._createForeColorMenu();
+
+ case "backcolor":
+ return this._createBackColorMenu();
+ }
+
+ if ((cd = this.controls[n]))
+ return cf.createButton(n, {title : "advanced." + cd[0], cmd : cd[1], ui : cd[2], value : cd[3]});
+ },
+
+ execCommand : function(cmd, ui, val) {
+ var f = this['_' + cmd];
+
+ if (f) {
+ f.call(this, ui, val);
+ return true;
+ }
+
+ return false;
+ },
+
+ _importClasses : function(e) {
+ var ed = this.editor, ctrl = ed.controlManager.get('styleselect');
+
+ if (ctrl.getLength() == 0) {
+ each(ed.dom.getClasses(), function(o, idx) {
+ var name = 'style_' + idx, fmt;
+
+ fmt = {
+ inline : 'span',
+ attributes : {'class' : o['class']},
+ selector : '*'
+ };
+
+ ed.formatter.register(name, fmt);
+
+ ctrl.add(o['class'], name, {
+ style: function() {
+ return getPreviewCss(ed, fmt);
+ }
+ });
+ });
+ }
+ },
+
+ _createStyleSelect : function(n) {
+ var t = this, ed = t.editor, ctrlMan = ed.controlManager, ctrl;
+
+ // Setup style select box
+ ctrl = ctrlMan.createListBox('styleselect', {
+ title : 'advanced.style_select',
+ onselect : function(name) {
+ var matches, formatNames = [], removedFormat;
+
+ each(ctrl.items, function(item) {
+ formatNames.push(item.value);
+ });
+
+ ed.focus();
+ ed.undoManager.add();
+
+ // Toggle off the current format(s)
+ matches = ed.formatter.matchAll(formatNames);
+ tinymce.each(matches, function(match) {
+ if (!name || match == name) {
+ if (match)
+ ed.formatter.remove(match);
+
+ removedFormat = true;
+ }
+ });
+
+ if (!removedFormat)
+ ed.formatter.apply(name);
+
+ ed.undoManager.add();
+ ed.nodeChanged();
+
+ return false; // No auto select
+ }
+ });
+
+ // Handle specified format
+ ed.onPreInit.add(function() {
+ var counter = 0, formats = ed.getParam('style_formats');
+
+ if (formats) {
+ each(formats, function(fmt) {
+ var name, keys = 0;
+
+ each(fmt, function() {keys++;});
+
+ if (keys > 1) {
+ name = fmt.name = fmt.name || 'style_' + (counter++);
+ ed.formatter.register(name, fmt);
+ ctrl.add(fmt.title, name, {
+ style: function() {
+ return getPreviewCss(ed, fmt);
+ }
+ });
+ } else
+ ctrl.add(fmt.title);
+ });
+ } else {
+ each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) {
+ var name, fmt;
+
+ if (val) {
+ name = 'style_' + (counter++);
+ fmt = {
+ inline : 'span',
+ classes : val,
+ selector : '*'
+ };
+
+ ed.formatter.register(name, fmt);
+ ctrl.add(t.editor.translate(key), name, {
+ style: function() {
+ return getPreviewCss(ed, fmt);
+ }
+ });
+ }
+ });
+ }
+ });
+
+ // Auto import classes if the ctrl box is empty
+ if (ctrl.getLength() == 0) {
+ ctrl.onPostRender.add(function(ed, n) {
+ if (!ctrl.NativeListBox) {
+ Event.add(n.id + '_text', 'focus', t._importClasses, t);
+ Event.add(n.id + '_text', 'mousedown', t._importClasses, t);
+ Event.add(n.id + '_open', 'focus', t._importClasses, t);
+ Event.add(n.id + '_open', 'mousedown', t._importClasses, t);
+ } else
+ Event.add(n.id, 'focus', t._importClasses, t);
+ });
+ }
+
+ return ctrl;
+ },
+
+ _createFontSelect : function() {
+ var c, t = this, ed = t.editor;
+
+ c = ed.controlManager.createListBox('fontselect', {
+ title : 'advanced.fontdefault',
+ onselect : function(v) {
+ var cur = c.items[c.selectedIndex];
+
+ if (!v && cur) {
+ ed.execCommand('FontName', false, cur.value);
+ return;
+ }
+
+ ed.execCommand('FontName', false, v);
+
+ // Fake selection, execCommand will fire a nodeChange and update the selection
+ c.select(function(sv) {
+ return v == sv;
+ });
+
+ if (cur && cur.value == v) {
+ c.select(null);
+ }
+
+ return false; // No auto select
+ }
+ });
+
+ if (c) {
+ each(ed.getParam('theme_advanced_fonts', t.settings.theme_advanced_fonts, 'hash'), function(v, k) {
+ c.add(ed.translate(k), v, {style : v.indexOf('dings') == -1 ? 'font-family:' + v : ''});
+ });
+ }
+
+ return c;
+ },
+
+ _createFontSizeSelect : function() {
+ var t = this, ed = t.editor, c, i = 0, cl = [];
+
+ c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) {
+ var cur = c.items[c.selectedIndex];
+
+ if (!v && cur) {
+ cur = cur.value;
+
+ if (cur['class']) {
+ ed.formatter.toggle('fontsize_class', {value : cur['class']});
+ ed.undoManager.add();
+ ed.nodeChanged();
+ } else {
+ ed.execCommand('FontSize', false, cur.fontSize);
+ }
+
+ return;
+ }
+
+ if (v['class']) {
+ ed.focus();
+ ed.undoManager.add();
+ ed.formatter.toggle('fontsize_class', {value : v['class']});
+ ed.undoManager.add();
+ ed.nodeChanged();
+ } else
+ ed.execCommand('FontSize', false, v.fontSize);
+
+ // Fake selection, execCommand will fire a nodeChange and update the selection
+ c.select(function(sv) {
+ return v == sv;
+ });
+
+ if (cur && (cur.value.fontSize == v.fontSize || cur.value['class'] && cur.value['class'] == v['class'])) {
+ c.select(null);
+ }
+
+ return false; // No auto select
+ }});
+
+ if (c) {
+ each(t.settings.theme_advanced_font_sizes, function(v, k) {
+ var fz = v.fontSize;
+
+ if (fz >= 1 && fz <= 7)
+ fz = t.sizes[parseInt(fz) - 1] + 'pt';
+
+ c.add(k, v, {'style' : 'font-size:' + fz, 'class' : 'mceFontSize' + (i++) + (' ' + (v['class'] || ''))});
+ });
+ }
+
+ return c;
+ },
+
+ _createBlockFormats : function() {
+ var c, fmts = {
+ p : 'advanced.paragraph',
+ address : 'advanced.address',
+ pre : 'advanced.pre',
+ h1 : 'advanced.h1',
+ h2 : 'advanced.h2',
+ h3 : 'advanced.h3',
+ h4 : 'advanced.h4',
+ h5 : 'advanced.h5',
+ h6 : 'advanced.h6',
+ div : 'advanced.div',
+ blockquote : 'advanced.blockquote',
+ code : 'advanced.code',
+ dt : 'advanced.dt',
+ dd : 'advanced.dd',
+ samp : 'advanced.samp'
+ }, t = this;
+
+ c = t.editor.controlManager.createListBox('formatselect', {title : 'advanced.block', onselect : function(v) {
+ t.editor.execCommand('FormatBlock', false, v);
+ return false;
+ }});
+
+ if (c) {
+ each(t.editor.getParam('theme_advanced_blockformats', t.settings.theme_advanced_blockformats, 'hash'), function(v, k) {
+ c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v, style: function() {
+ return getPreviewCss(t.editor, {block: v});
+ }});
+ });
+ }
+
+ return c;
+ },
+
+ _createForeColorMenu : function() {
+ var c, t = this, s = t.settings, o = {}, v;
+
+ if (s.theme_advanced_more_colors) {
+ o.more_colors_func = function() {
+ t._mceColorPicker(0, {
+ color : c.value,
+ func : function(co) {
+ c.setColor(co);
+ }
+ });
+ };
+ }
+
+ if (v = s.theme_advanced_text_colors)
+ o.colors = v;
+
+ if (s.theme_advanced_default_foreground_color)
+ o.default_color = s.theme_advanced_default_foreground_color;
+
+ o.title = 'advanced.forecolor_desc';
+ o.cmd = 'ForeColor';
+ o.scope = this;
+
+ c = t.editor.controlManager.createColorSplitButton('forecolor', o);
+
+ return c;
+ },
+
+ _createBackColorMenu : function() {
+ var c, t = this, s = t.settings, o = {}, v;
+
+ if (s.theme_advanced_more_colors) {
+ o.more_colors_func = function() {
+ t._mceColorPicker(0, {
+ color : c.value,
+ func : function(co) {
+ c.setColor(co);
+ }
+ });
+ };
+ }
+
+ if (v = s.theme_advanced_background_colors)
+ o.colors = v;
+
+ if (s.theme_advanced_default_background_color)
+ o.default_color = s.theme_advanced_default_background_color;
+
+ o.title = 'advanced.backcolor_desc';
+ o.cmd = 'HiliteColor';
+ o.scope = this;
+
+ c = t.editor.controlManager.createColorSplitButton('backcolor', o);
+
+ return c;
+ },
+
+ renderUI : function(o) {
+ var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl;
+
+ if (ed.settings) {
+ ed.settings.aria_label = s.aria_label + ed.getLang('advanced.help_shortcut');
+ }
+
+ // TODO: ACC Should have an aria-describedby attribute which is user-configurable to describe what this field is actually for.
+ // Maybe actually inherit it from the original textara?
+ n = p = DOM.create('span', {role : 'application', 'aria-labelledby' : ed.id + '_voice', id : ed.id + '_parent', 'class' : 'mceEditor ' + ed.settings.skin + 'Skin' + (s.skin_variant ? ' ' + ed.settings.skin + 'Skin' + t._ufirst(s.skin_variant) : '') + (ed.settings.directionality == "rtl" ? ' mceRtl' : '')});
+ DOM.add(n, 'span', {'class': 'mceVoiceLabel', 'style': 'display:none;', id: ed.id + '_voice'}, s.aria_label);
+
+ if (!DOM.boxModel)
+ n = DOM.add(n, 'div', {'class' : 'mceOldBoxModel'});
+
+ n = sc = DOM.add(n, 'table', {role : "presentation", id : ed.id + '_tbl', 'class' : 'mceLayout', cellSpacing : 0, cellPadding : 0});
+ n = tb = DOM.add(n, 'tbody');
+
+ switch ((s.theme_advanced_layout_manager || '').toLowerCase()) {
+ case "rowlayout":
+ ic = t._rowLayout(s, tb, o);
+ break;
+
+ case "customlayout":
+ ic = ed.execCallback("theme_advanced_custom_layout", s, tb, o, p);
+ break;
+
+ default:
+ ic = t._simpleLayout(s, tb, o, p);
+ }
+
+ n = o.targetNode;
+
+ // Add classes to first and last TRs
+ nl = sc.rows;
+ DOM.addClass(nl[0], 'mceFirst');
+ DOM.addClass(nl[nl.length - 1], 'mceLast');
+
+ // Add classes to first and last TDs
+ each(DOM.select('tr', tb), function(n) {
+ DOM.addClass(n.firstChild, 'mceFirst');
+ DOM.addClass(n.childNodes[n.childNodes.length - 1], 'mceLast');
+ });
+
+ if (DOM.get(s.theme_advanced_toolbar_container))
+ DOM.get(s.theme_advanced_toolbar_container).appendChild(p);
+ else
+ DOM.insertAfter(p, n);
+
+ Event.add(ed.id + '_path_row', 'click', function(e) {
+ e = e.target;
+
+ if (e.nodeName == 'A') {
+ t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1'));
+ return false;
+ }
+ });
+/*
+ if (DOM.get(ed.id + '_path_row')) {
+ Event.add(ed.id + '_tbl', 'mouseover', function(e) {
+ var re;
+
+ e = e.target;
+
+ if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) {
+ re = DOM.get(ed.id + '_path_row');
+ t.lastPath = re.innerHTML;
+ DOM.setHTML(re, e.parentNode.title);
+ }
+ });
+
+ Event.add(ed.id + '_tbl', 'mouseout', function(e) {
+ if (t.lastPath) {
+ DOM.setHTML(ed.id + '_path_row', t.lastPath);
+ t.lastPath = 0;
+ }
+ });
+ }
+*/
+
+ if (!ed.getParam('accessibility_focus'))
+ Event.add(DOM.add(p, 'a', {href : '#'}, '<!-- IE -->'), 'focus', function() {tinyMCE.get(ed.id).focus();});
+
+ if (s.theme_advanced_toolbar_location == 'external')
+ o.deltaHeight = 0;
+
+ t.deltaHeight = o.deltaHeight;
+ o.targetNode = null;
+
+ ed.onKeyDown.add(function(ed, evt) {
+ var DOM_VK_F10 = 121, DOM_VK_F11 = 122;
+
+ if (evt.altKey) {
+ if (evt.keyCode === DOM_VK_F10) {
+ // Make sure focus is given to toolbar in Safari.
+ // We can't do this in IE as it prevents giving focus to toolbar when editor is in a frame
+ if (tinymce.isWebKit) {
+ window.focus();
+ }
+ t.toolbarGroup.focus();
+ return Event.cancel(evt);
+ } else if (evt.keyCode === DOM_VK_F11) {
+ DOM.get(ed.id + '_path_row').focus();
+ return Event.cancel(evt);
+ }
+ }
+ });
+
+ // alt+0 is the UK recommended shortcut for accessing the list of access controls.
+ ed.addShortcut('alt+0', '', 'mceShortcuts', t);
+
+ return {
+ iframeContainer : ic,
+ editorContainer : ed.id + '_parent',
+ sizeContainer : sc,
+ deltaHeight : o.deltaHeight
+ };
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Advanced theme',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ }
+ },
+
+ resizeBy : function(dw, dh) {
+ var e = DOM.get(this.editor.id + '_ifr');
+
+ this.resizeTo(e.clientWidth + dw, e.clientHeight + dh);
+ },
+
+ resizeTo : function(w, h, store) {
+ var ed = this.editor, s = this.settings, e = DOM.get(ed.id + '_tbl'), ifr = DOM.get(ed.id + '_ifr');
+
+ // Boundery fix box
+ w = Math.max(s.theme_advanced_resizing_min_width || 100, w);
+ h = Math.max(s.theme_advanced_resizing_min_height || 100, h);
+ w = Math.min(s.theme_advanced_resizing_max_width || 0xFFFF, w);
+ h = Math.min(s.theme_advanced_resizing_max_height || 0xFFFF, h);
+
+ // Resize iframe and container
+ DOM.setStyle(e, 'height', '');
+ DOM.setStyle(ifr, 'height', h);
+
+ if (s.theme_advanced_resize_horizontal) {
+ DOM.setStyle(e, 'width', '');
+ DOM.setStyle(ifr, 'width', w);
+
+ // Make sure that the size is never smaller than the over all ui
+ if (w < e.clientWidth) {
+ w = e.clientWidth;
+ DOM.setStyle(ifr, 'width', e.clientWidth);
+ }
+ }
+
+ // Store away the size
+ if (store && s.theme_advanced_resizing_use_cookie) {
+ Cookie.setHash("TinyMCE_" + ed.id + "_size", {
+ cw : w,
+ ch : h
+ });
+ }
+ },
+
+ destroy : function() {
+ var id = this.editor.id;
+
+ Event.clear(id + '_resize');
+ Event.clear(id + '_path_row');
+ Event.clear(id + '_external_close');
+ },
+
+ // Internal functions
+
+ _simpleLayout : function(s, tb, o, p) {
+ var t = this, ed = t.editor, lo = s.theme_advanced_toolbar_location, sl = s.theme_advanced_statusbar_location, n, ic, etb, c;
+
+ if (s.readonly) {
+ n = DOM.add(tb, 'tr');
+ n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
+ return ic;
+ }
+
+ // Create toolbar container at top
+ if (lo == 'top')
+ t._addToolbars(tb, o);
+
+ // Create external toolbar
+ if (lo == 'external') {
+ n = c = DOM.create('div', {style : 'position:relative'});
+ n = DOM.add(n, 'div', {id : ed.id + '_external', 'class' : 'mceExternalToolbar'});
+ DOM.add(n, 'a', {id : ed.id + '_external_close', href : 'javascript:;', 'class' : 'mceExternalClose'});
+ n = DOM.add(n, 'table', {id : ed.id + '_tblext', cellSpacing : 0, cellPadding : 0});
+ etb = DOM.add(n, 'tbody');
+
+ if (p.firstChild.className == 'mceOldBoxModel')
+ p.firstChild.appendChild(c);
+ else
+ p.insertBefore(c, p.firstChild);
+
+ t._addToolbars(etb, o);
+
+ ed.onMouseUp.add(function() {
+ var e = DOM.get(ed.id + '_external');
+ DOM.show(e);
+
+ DOM.hide(lastExtID);
+
+ var f = Event.add(ed.id + '_external_close', 'click', function() {
+ DOM.hide(ed.id + '_external');
+ Event.remove(ed.id + '_external_close', 'click', f);
+ return false;
+ });
+
+ DOM.show(e);
+ DOM.setStyle(e, 'top', 0 - DOM.getRect(ed.id + '_tblext').h - 1);
+
+ // Fixes IE rendering bug
+ DOM.hide(e);
+ DOM.show(e);
+ e.style.filter = '';
+
+ lastExtID = ed.id + '_external';
+
+ e = null;
+ });
+ }
+
+ if (sl == 'top')
+ t._addStatusBar(tb, o);
+
+ // Create iframe container
+ if (!s.theme_advanced_toolbar_container) {
+ n = DOM.add(tb, 'tr');
+ n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
+ }
+
+ // Create toolbar container at bottom
+ if (lo == 'bottom')
+ t._addToolbars(tb, o);
+
+ if (sl == 'bottom')
+ t._addStatusBar(tb, o);
+
+ return ic;
+ },
+
+ _rowLayout : function(s, tb, o) {
+ var t = this, ed = t.editor, dc, da, cf = ed.controlManager, n, ic, to, a;
+
+ dc = s.theme_advanced_containers_default_class || '';
+ da = s.theme_advanced_containers_default_align || 'center';
+
+ each(explode(s.theme_advanced_containers || ''), function(c, i) {
+ var v = s['theme_advanced_container_' + c] || '';
+
+ switch (c.toLowerCase()) {
+ case 'mceeditor':
+ n = DOM.add(tb, 'tr');
+ n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
+ break;
+
+ case 'mceelementpath':
+ t._addStatusBar(tb, o);
+ break;
+
+ default:
+ a = (s['theme_advanced_container_' + c + '_align'] || da).toLowerCase();
+ a = 'mce' + t._ufirst(a);
+
+ n = DOM.add(DOM.add(tb, 'tr'), 'td', {
+ 'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + a || da
+ });
+
+ to = cf.createToolbar("toolbar" + i);
+ t._addControls(v, to);
+ DOM.setHTML(n, to.renderHTML());
+ o.deltaHeight -= s.theme_advanced_row_height;
+ }
+ });
+
+ return ic;
+ },
+
+ _addControls : function(v, tb) {
+ var t = this, s = t.settings, di, cf = t.editor.controlManager;
+
+ if (s.theme_advanced_disable && !t._disabled) {
+ di = {};
+
+ each(explode(s.theme_advanced_disable), function(v) {
+ di[v] = 1;
+ });
+
+ t._disabled = di;
+ } else
+ di = t._disabled;
+
+ each(explode(v), function(n) {
+ var c;
+
+ if (di && di[n])
+ return;
+
+ // Compatiblity with 2.x
+ if (n == 'tablecontrols') {
+ each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"], function(n) {
+ n = t.createControl(n, cf);
+
+ if (n)
+ tb.add(n);
+ });
+
+ return;
+ }
+
+ c = t.createControl(n, cf);
+
+ if (c)
+ tb.add(c);
+ });
+ },
+
+ _addToolbars : function(c, o) {
+ var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a, toolbarGroup, toolbarsExist = false;
+
+ toolbarGroup = cf.createToolbarGroup('toolbargroup', {
+ 'name': ed.getLang('advanced.toolbar'),
+ 'tab_focus_toolbar':ed.getParam('theme_advanced_tab_focus_toolbar')
+ });
+
+ t.toolbarGroup = toolbarGroup;
+
+ a = s.theme_advanced_toolbar_align.toLowerCase();
+ a = 'mce' + t._ufirst(a);
+
+ n = DOM.add(DOM.add(c, 'tr', {role: 'toolbar'}), 'td', {'class' : 'mceToolbar ' + a, "role":"toolbar"});
+
+ // Create toolbar and add the controls
+ for (i=1; (v = s['theme_advanced_buttons' + i]); i++) {
+ toolbarsExist = true;
+ tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i});
+
+ if (s['theme_advanced_buttons' + i + '_add'])
+ v += ',' + s['theme_advanced_buttons' + i + '_add'];
+
+ if (s['theme_advanced_buttons' + i + '_add_before'])
+ v = s['theme_advanced_buttons' + i + '_add_before'] + ',' + v;
+
+ t._addControls(v, tb);
+ toolbarGroup.add(tb);
+
+ o.deltaHeight -= s.theme_advanced_row_height;
+ }
+ // Handle case when there are no toolbar buttons and ensure editor height is adjusted accordingly
+ if (!toolbarsExist)
+ o.deltaHeight -= s.theme_advanced_row_height;
+ h.push(toolbarGroup.renderHTML());
+ h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '<!-- IE -->'));
+ DOM.setHTML(n, h.join(''));
+ },
+
+ _addStatusBar : function(tb, o) {
+ var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td;
+
+ n = DOM.add(tb, 'tr');
+ n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'});
+ n = DOM.add(n, 'div', {id : ed.id + '_path_row', 'role': 'group', 'aria-labelledby': ed.id + '_path_voice'});
+ if (s.theme_advanced_path) {
+ DOM.add(n, 'span', {id: ed.id + '_path_voice'}, ed.translate('advanced.path'));
+ DOM.add(n, 'span', {}, ': ');
+ } else {
+ DOM.add(n, 'span', {}, '&#160;');
+ }
+
+
+ if (s.theme_advanced_resizing) {
+ DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize', tabIndex:"-1"});
+
+ if (s.theme_advanced_resizing_use_cookie) {
+ ed.onPostRender.add(function() {
+ var o = Cookie.getHash("TinyMCE_" + ed.id + "_size"), c = DOM.get(ed.id + '_tbl');
+
+ if (!o)
+ return;
+
+ t.resizeTo(o.cw, o.ch);
+ });
+ }
+
+ ed.onPostRender.add(function() {
+ Event.add(ed.id + '_resize', 'click', function(e) {
+ e.preventDefault();
+ });
+
+ Event.add(ed.id + '_resize', 'mousedown', function(e) {
+ var mouseMoveHandler1, mouseMoveHandler2,
+ mouseUpHandler1, mouseUpHandler2,
+ startX, startY, startWidth, startHeight, width, height, ifrElm;
+
+ function resizeOnMove(e) {
+ e.preventDefault();
+
+ width = startWidth + (e.screenX - startX);
+ height = startHeight + (e.screenY - startY);
+
+ t.resizeTo(width, height);
+ };
+
+ function endResize(e) {
+ // Stop listening
+ Event.remove(DOM.doc, 'mousemove', mouseMoveHandler1);
+ Event.remove(ed.getDoc(), 'mousemove', mouseMoveHandler2);
+ Event.remove(DOM.doc, 'mouseup', mouseUpHandler1);
+ Event.remove(ed.getDoc(), 'mouseup', mouseUpHandler2);
+
+ width = startWidth + (e.screenX - startX);
+ height = startHeight + (e.screenY - startY);
+ t.resizeTo(width, height, true);
+
+ ed.nodeChanged();
+ };
+
+ e.preventDefault();
+
+ // Get the current rect size
+ startX = e.screenX;
+ startY = e.screenY;
+ ifrElm = DOM.get(t.editor.id + '_ifr');
+ startWidth = width = ifrElm.clientWidth;
+ startHeight = height = ifrElm.clientHeight;
+
+ // Register envent handlers
+ mouseMoveHandler1 = Event.add(DOM.doc, 'mousemove', resizeOnMove);
+ mouseMoveHandler2 = Event.add(ed.getDoc(), 'mousemove', resizeOnMove);
+ mouseUpHandler1 = Event.add(DOM.doc, 'mouseup', endResize);
+ mouseUpHandler2 = Event.add(ed.getDoc(), 'mouseup', endResize);
+ });
+ });
+ }
+
+ o.deltaHeight -= 21;
+ n = tb = null;
+ },
+
+ _updateUndoStatus : function(ed) {
+ var cm = ed.controlManager, um = ed.undoManager;
+
+ cm.setDisabled('undo', !um.hasUndo() && !um.typing);
+ cm.setDisabled('redo', !um.hasRedo());
+ },
+
+ _nodeChanged : function(ed, cm, n, co, ob) {
+ var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, fc, bc, formatNames, matches;
+
+ tinymce.each(t.stateControls, function(c) {
+ cm.setActive(c, ed.queryCommandState(t.controls[c][1]));
+ });
+
+ function getParent(name) {
+ var i, parents = ob.parents, func = name;
+
+ if (typeof(name) == 'string') {
+ func = function(node) {
+ return node.nodeName == name;
+ };
+ }
+
+ for (i = 0; i < parents.length; i++) {
+ if (func(parents[i]))
+ return parents[i];
+ }
+ };
+
+ cm.setActive('visualaid', ed.hasVisual);
+ t._updateUndoStatus(ed);
+ cm.setDisabled('outdent', !ed.queryCommandState('Outdent'));
+
+ p = getParent('A');
+ if (c = cm.get('link')) {
+ c.setDisabled((!p && co) || (p && !p.href));
+ c.setActive(!!p && (!p.name && !p.id));
+ }
+
+ if (c = cm.get('unlink')) {
+ c.setDisabled(!p && co);
+ c.setActive(!!p && !p.name && !p.id);
+ }
+
+ if (c = cm.get('anchor')) {
+ c.setActive(!co && !!p && (p.name || (p.id && !p.href)));
+ }
+
+ p = getParent('IMG');
+ if (c = cm.get('image'))
+ c.setActive(!co && !!p && n.className.indexOf('mceItem') == -1);
+
+ if (c = cm.get('styleselect')) {
+ t._importClasses();
+
+ formatNames = [];
+ each(c.items, function(item) {
+ formatNames.push(item.value);
+ });
+
+ matches = ed.formatter.matchAll(formatNames);
+ c.select(matches[0]);
+ tinymce.each(matches, function(match, index) {
+ if (index > 0) {
+ c.mark(match);
+ }
+ });
+ }
+
+ if (c = cm.get('formatselect')) {
+ p = getParent(ed.dom.isBlock);
+
+ if (p)
+ c.select(p.nodeName.toLowerCase());
+ }
+
+ // Find out current fontSize, fontFamily and fontClass
+ getParent(function(n) {
+ if (n.nodeName === 'SPAN') {
+ if (!cl && n.className)
+ cl = n.className;
+ }
+
+ if (ed.dom.is(n, s.theme_advanced_font_selector)) {
+ if (!fz && n.style.fontSize)
+ fz = n.style.fontSize;
+
+ if (!fn && n.style.fontFamily)
+ fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase();
+
+ if (!fc && n.style.color)
+ fc = n.style.color;
+
+ if (!bc && n.style.backgroundColor)
+ bc = n.style.backgroundColor;
+ }
+
+ return false;
+ });
+
+ if (c = cm.get('fontselect')) {
+ c.select(function(v) {
+ return v.replace(/^([^,]+).*/, '$1').toLowerCase() == fn;
+ });
+ }
+
+ // Select font size
+ if (c = cm.get('fontsizeselect')) {
+ // Use computed style
+ if (s.theme_advanced_runtime_fontsize && !fz && !cl)
+ fz = ed.dom.getStyle(n, 'fontSize', true);
+
+ c.select(function(v) {
+ if (v.fontSize && v.fontSize === fz)
+ return true;
+
+ if (v['class'] && v['class'] === cl)
+ return true;
+ });
+ }
+
+ if (s.theme_advanced_show_current_color) {
+ function updateColor(controlId, color) {
+ if (c = cm.get(controlId)) {
+ if (!color)
+ color = c.settings.default_color;
+ if (color !== c.value) {
+ c.displayColor(color);
+ }
+ }
+ }
+ updateColor('forecolor', fc);
+ updateColor('backcolor', bc);
+ }
+
+ if (s.theme_advanced_show_current_color) {
+ function updateColor(controlId, color) {
+ if (c = cm.get(controlId)) {
+ if (!color)
+ color = c.settings.default_color;
+ if (color !== c.value) {
+ c.displayColor(color);
+ }
+ }
+ };
+
+ updateColor('forecolor', fc);
+ updateColor('backcolor', bc);
+ }
+
+ if (s.theme_advanced_path && s.theme_advanced_statusbar_location) {
+ p = DOM.get(ed.id + '_path') || DOM.add(ed.id + '_path_row', 'span', {id : ed.id + '_path'});
+
+ if (t.statusKeyboardNavigation) {
+ t.statusKeyboardNavigation.destroy();
+ t.statusKeyboardNavigation = null;
+ }
+
+ DOM.setHTML(p, '');
+
+ getParent(function(n) {
+ var na = n.nodeName.toLowerCase(), u, pi, ti = '';
+
+ // Ignore non element and bogus/hidden elements
+ if (n.nodeType != 1 || na === 'br' || n.getAttribute('data-mce-bogus') || DOM.hasClass(n, 'mceItemHidden') || DOM.hasClass(n, 'mceItemRemoved'))
+ return;
+
+ // Handle prefix
+ if (tinymce.isIE && n.scopeName !== 'HTML' && n.scopeName)
+ na = n.scopeName + ':' + na;
+
+ // Remove internal prefix
+ na = na.replace(/mce\:/g, '');
+
+ // Handle node name
+ switch (na) {
+ case 'b':
+ na = 'strong';
+ break;
+
+ case 'i':
+ na = 'em';
+ break;
+
+ case 'img':
+ if (v = DOM.getAttrib(n, 'src'))
+ ti += 'src: ' + v + ' ';
+
+ break;
+
+ case 'a':
+ if (v = DOM.getAttrib(n, 'name')) {
+ ti += 'name: ' + v + ' ';
+ na += '#' + v;
+ }
+
+ if (v = DOM.getAttrib(n, 'href'))
+ ti += 'href: ' + v + ' ';
+
+ break;
+
+ case 'font':
+ if (v = DOM.getAttrib(n, 'face'))
+ ti += 'font: ' + v + ' ';
+
+ if (v = DOM.getAttrib(n, 'size'))
+ ti += 'size: ' + v + ' ';
+
+ if (v = DOM.getAttrib(n, 'color'))
+ ti += 'color: ' + v + ' ';
+
+ break;
+
+ case 'span':
+ if (v = DOM.getAttrib(n, 'style'))
+ ti += 'style: ' + v + ' ';
+
+ break;
+ }
+
+ if (v = DOM.getAttrib(n, 'id'))
+ ti += 'id: ' + v + ' ';
+
+ if (v = n.className) {
+ v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '');
+
+ if (v) {
+ ti += 'class: ' + v + ' ';
+
+ if (ed.dom.isBlock(n) || na == 'img' || na == 'span')
+ na += '.' + v;
+ }
+ }
+
+ na = na.replace(/(html:)/g, '');
+ na = {name : na, node : n, title : ti};
+ t.onResolveName.dispatch(t, na);
+ ti = na.title;
+ na = na.name;
+
+ //u = "javascript:tinymce.EditorManager.get('" + ed.id + "').theme._sel('" + (de++) + "');";
+ pi = DOM.create('a', {'href' : "javascript:;", role: 'button', onmousedown : "return false;", title : ti, 'class' : 'mcePath_' + (de++)}, na);
+
+ if (p.hasChildNodes()) {
+ p.insertBefore(DOM.create('span', {'aria-hidden': 'true'}, '\u00a0\u00bb '), p.firstChild);
+ p.insertBefore(pi, p.firstChild);
+ } else
+ p.appendChild(pi);
+ }, ed.getBody());
+
+ if (DOM.select('a', p).length > 0) {
+ t.statusKeyboardNavigation = new tinymce.ui.KeyboardNavigation({
+ root: ed.id + "_path_row",
+ items: DOM.select('a', p),
+ excludeFromTabOrder: true,
+ onCancel: function() {
+ ed.focus();
+ }
+ }, DOM);
+ }
+ }
+ },
+
+ // Commands gets called by execCommand
+
+ _sel : function(v) {
+ this.editor.execCommand('mceSelectNodeDepth', false, v);
+ },
+
+ _mceInsertAnchor : function(ui, v) {
+ var ed = this.editor;
+
+ ed.windowManager.open({
+ url : this.url + '/anchor.htm',
+ width : 320 + parseInt(ed.getLang('advanced.anchor_delta_width', 0)),
+ height : 90 + parseInt(ed.getLang('advanced.anchor_delta_height', 0)),
+ inline : true
+ }, {
+ theme_url : this.url
+ });
+ },
+
+ _mceCharMap : function() {
+ var ed = this.editor;
+
+ ed.windowManager.open({
+ url : this.url + '/charmap.htm',
+ width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)),
+ height : 265 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)),
+ inline : true
+ }, {
+ theme_url : this.url
+ });
+ },
+
+ _mceHelp : function() {
+ var ed = this.editor;
+
+ ed.windowManager.open({
+ url : this.url + '/about.htm',
+ width : 480,
+ height : 380,
+ inline : true
+ }, {
+ theme_url : this.url
+ });
+ },
+
+ _mceShortcuts : function() {
+ var ed = this.editor;
+ ed.windowManager.open({
+ url: this.url + '/shortcuts.htm',
+ width: 480,
+ height: 380,
+ inline: true
+ }, {
+ theme_url: this.url
+ });
+ },
+
+ _mceColorPicker : function(u, v) {
+ var ed = this.editor;
+
+ v = v || {};
+
+ ed.windowManager.open({
+ url : this.url + '/color_picker.htm',
+ width : 375 + parseInt(ed.getLang('advanced.colorpicker_delta_width', 0)),
+ height : 250 + parseInt(ed.getLang('advanced.colorpicker_delta_height', 0)),
+ close_previous : false,
+ inline : true
+ }, {
+ input_color : v.color,
+ func : v.func,
+ theme_url : this.url
+ });
+ },
+
+ _mceCodeEditor : function(ui, val) {
+ var ed = this.editor;
+
+ ed.windowManager.open({
+ url : this.url + '/source_editor.htm',
+ width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)),
+ height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)),
+ inline : true,
+ resizable : true,
+ maximizable : true
+ }, {
+ theme_url : this.url
+ });
+ },
+
+ _mceImage : function(ui, val) {
+ var ed = this.editor;
+
+ // Internal image object like a flash placeholder
+ if (ed.dom.getAttrib(ed.selection.getNode(), 'class', '').indexOf('mceItem') != -1)
+ return;
+
+ ed.windowManager.open({
+ url : this.url + '/image.htm',
+ width : 355 + parseInt(ed.getLang('advanced.image_delta_width', 0)),
+ height : 275 + parseInt(ed.getLang('advanced.image_delta_height', 0)),
+ inline : true
+ }, {
+ theme_url : this.url
+ });
+ },
+
+ _mceLink : function(ui, val) {
+ var ed = this.editor;
+
+ ed.windowManager.open({
+ url : this.url + '/link.htm',
+ width : 310 + parseInt(ed.getLang('advanced.link_delta_width', 0)),
+ height : 200 + parseInt(ed.getLang('advanced.link_delta_height', 0)),
+ inline : true
+ }, {
+ theme_url : this.url
+ });
+ },
+
+ _mceNewDocument : function() {
+ var ed = this.editor;
+
+ ed.windowManager.confirm('advanced.newdocument', function(s) {
+ if (s)
+ ed.execCommand('mceSetContent', false, '');
+ });
+ },
+
+ _mceForeColor : function() {
+ var t = this;
+
+ this._mceColorPicker(0, {
+ color: t.fgColor,
+ func : function(co) {
+ t.fgColor = co;
+ t.editor.execCommand('ForeColor', false, co);
+ }
+ });
+ },
+
+ _mceBackColor : function() {
+ var t = this;
+
+ this._mceColorPicker(0, {
+ color: t.bgColor,
+ func : function(co) {
+ t.bgColor = co;
+ t.editor.execCommand('HiliteColor', false, co);
+ }
+ });
+ },
+
+ _ufirst : function(s) {
+ return s.substring(0, 1).toUpperCase() + s.substring(1);
+ }
+ });
+
+ tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme);
+}(tinymce));
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/image.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/image.htm
new file mode 100755
index 00000000..b8ba729f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/image.htm
@@ -0,0 +1,80 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advanced_dlg.image_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="js/image.js"></script>
+</head>
+<body id="image" style="display: none">
+<form onsubmit="ImageDialog.update();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.image_title}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
+ <td><table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
+ <td id="srcbrowsercontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
+ <td><select id="image_list" name="image_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;"></select></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
+ <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
+ <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
+ <option value="">{#not_set}</option>
+ <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
+ <option value="top">{#advanced_dlg.image_align_top}</option>
+ <option value="middle">{#advanced_dlg.image_align_middle}</option>
+ <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
+ <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
+ <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
+ <option value="left">{#advanced_dlg.image_align_left}</option>
+ <option value="right">{#advanced_dlg.image_align_right}</option>
+ </select></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
+ <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
+ x
+ <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
+ <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
+ <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
+ <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/colorpicker.jpg b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/colorpicker.jpg
new file mode 100644
index 00000000..b1a377ab
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/colorpicker.jpg
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/flash.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/flash.gif
new file mode 100644
index 00000000..dec3f7c7
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/flash.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/icons.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/icons.gif
new file mode 100644
index 00000000..ca222490
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/icons.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/iframe.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/iframe.gif
new file mode 100644
index 00000000..410c7ad0
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/iframe.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/pagebreak.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/pagebreak.gif
new file mode 100644
index 00000000..acdf4085
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/pagebreak.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/quicktime.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/quicktime.gif
new file mode 100644
index 00000000..8f10e7aa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/quicktime.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/realmedia.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/realmedia.gif
new file mode 100644
index 00000000..fdfe0b9a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/realmedia.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/shockwave.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/shockwave.gif
new file mode 100644
index 00000000..9314d044
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/shockwave.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/trans.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/trans.gif
new file mode 100644
index 00000000..38848651
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/trans.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/video.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/video.gif
new file mode 100644
index 00000000..35701040
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/video.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/windowsmedia.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/windowsmedia.gif
new file mode 100644
index 00000000..ab50f2d8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/img/windowsmedia.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/about.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/about.js
new file mode 100644
index 00000000..5b358457
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/about.js
@@ -0,0 +1,73 @@
+tinyMCEPopup.requireLangPack();
+
+function init() {
+ var ed, tcont;
+
+ tinyMCEPopup.resizeToInnerSize();
+ ed = tinyMCEPopup.editor;
+
+ // Give FF some time
+ window.setTimeout(insertHelpIFrame, 10);
+
+ tcont = document.getElementById('plugintablecontainer');
+ document.getElementById('plugins_tab').style.display = 'none';
+
+ var html = "";
+ html += '<table id="plugintable">';
+ html += '<thead>';
+ html += '<tr>';
+ html += '<td>' + ed.getLang('advanced_dlg.about_plugin') + '</td>';
+ html += '<td>' + ed.getLang('advanced_dlg.about_author') + '</td>';
+ html += '<td>' + ed.getLang('advanced_dlg.about_version') + '</td>';
+ html += '</tr>';
+ html += '</thead>';
+ html += '<tbody>';
+
+ tinymce.each(ed.plugins, function(p, n) {
+ var info;
+
+ if (!p.getInfo)
+ return;
+
+ html += '<tr>';
+
+ info = p.getInfo();
+
+ if (info.infourl != null && info.infourl != '')
+ html += '<td width="50%" title="' + n + '"><a href="' + info.infourl + '" target="_blank">' + info.longname + '</a></td>';
+ else
+ html += '<td width="50%" title="' + n + '">' + info.longname + '</td>';
+
+ if (info.authorurl != null && info.authorurl != '')
+ html += '<td width="35%"><a href="' + info.authorurl + '" target="_blank">' + info.author + '</a></td>';
+ else
+ html += '<td width="35%">' + info.author + '</td>';
+
+ html += '<td width="15%">' + info.version + '</td>';
+ html += '</tr>';
+
+ document.getElementById('plugins_tab').style.display = '';
+
+ });
+
+ html += '</tbody>';
+ html += '</table>';
+
+ tcont.innerHTML = html;
+
+ tinyMCEPopup.dom.get('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion;
+ tinyMCEPopup.dom.get('date').innerHTML = tinymce.releaseDate;
+}
+
+function insertHelpIFrame() {
+ var html;
+
+ if (tinyMCEPopup.getParam('docs_url')) {
+ html = '<iframe width="100%" height="300" src="' + tinyMCEPopup.editor.baseURI.toAbsolute(tinyMCEPopup.getParam('docs_url')) + '"></iframe>';
+ document.getElementById('iframecontainer').innerHTML = html;
+ document.getElementById('help_tab').style.display = 'block';
+ document.getElementById('help_tab').setAttribute("aria-hidden", "false");
+ }
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/anchor.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/anchor.js
new file mode 100644
index 00000000..2909a3a4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/anchor.js
@@ -0,0 +1,56 @@
+tinyMCEPopup.requireLangPack();
+
+var AnchorDialog = {
+ init : function(ed) {
+ var action, elm, f = document.forms[0];
+
+ this.editor = ed;
+ elm = ed.dom.getParent(ed.selection.getNode(), 'A');
+ v = ed.dom.getAttrib(elm, 'name') || ed.dom.getAttrib(elm, 'id');
+
+ if (v) {
+ this.action = 'update';
+ f.anchorName.value = v;
+ }
+
+ f.insert.value = ed.getLang(elm ? 'update' : 'insert');
+ },
+
+ update : function() {
+ var ed = this.editor, elm, name = document.forms[0].anchorName.value, attribName;
+
+ if (!name || !/^[a-z][a-z0-9\-\_:\.]*$/i.test(name)) {
+ tinyMCEPopup.alert('advanced_dlg.anchor_invalid');
+ return;
+ }
+
+ tinyMCEPopup.restoreSelection();
+
+ if (this.action != 'update')
+ ed.selection.collapse(1);
+
+ var aRule = ed.schema.getElementRule('a');
+ if (!aRule || aRule.attributes.name) {
+ attribName = 'name';
+ } else {
+ attribName = 'id';
+ }
+
+ elm = ed.dom.getParent(ed.selection.getNode(), 'A');
+ if (elm) {
+ elm.setAttribute(attribName, name);
+ elm[attribName] = name;
+ ed.undoManager.add();
+ } else {
+ // create with zero-sized nbsp so that in Webkit where anchor is on last line by itself caret cannot be placed after it
+ var attrs = {'class' : 'mceItemAnchor'};
+ attrs[attribName] = name;
+ ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', attrs, '\uFEFF'));
+ ed.nodeChanged();
+ }
+
+ tinyMCEPopup.close();
+ }
+};
+
+tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/charmap.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/charmap.js
new file mode 100644
index 00000000..bb186955
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/charmap.js
@@ -0,0 +1,363 @@
+/**
+ * charmap.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+tinyMCEPopup.requireLangPack();
+
+var charmap = [
+ ['&nbsp;', '&#160;', true, 'no-break space'],
+ ['&amp;', '&#38;', true, 'ampersand'],
+ ['&quot;', '&#34;', true, 'quotation mark'],
+// finance
+ ['&cent;', '&#162;', true, 'cent sign'],
+ ['&euro;', '&#8364;', true, 'euro sign'],
+ ['&pound;', '&#163;', true, 'pound sign'],
+ ['&yen;', '&#165;', true, 'yen sign'],
+// signs
+ ['&copy;', '&#169;', true, 'copyright sign'],
+ ['&reg;', '&#174;', true, 'registered sign'],
+ ['&trade;', '&#8482;', true, 'trade mark sign'],
+ ['&permil;', '&#8240;', true, 'per mille sign'],
+ ['&micro;', '&#181;', true, 'micro sign'],
+ ['&middot;', '&#183;', true, 'middle dot'],
+ ['&bull;', '&#8226;', true, 'bullet'],
+ ['&hellip;', '&#8230;', true, 'three dot leader'],
+ ['&prime;', '&#8242;', true, 'minutes / feet'],
+ ['&Prime;', '&#8243;', true, 'seconds / inches'],
+ ['&sect;', '&#167;', true, 'section sign'],
+ ['&para;', '&#182;', true, 'paragraph sign'],
+ ['&szlig;', '&#223;', true, 'sharp s / ess-zed'],
+// quotations
+ ['&lsaquo;', '&#8249;', true, 'single left-pointing angle quotation mark'],
+ ['&rsaquo;', '&#8250;', true, 'single right-pointing angle quotation mark'],
+ ['&laquo;', '&#171;', true, 'left pointing guillemet'],
+ ['&raquo;', '&#187;', true, 'right pointing guillemet'],
+ ['&lsquo;', '&#8216;', true, 'left single quotation mark'],
+ ['&rsquo;', '&#8217;', true, 'right single quotation mark'],
+ ['&ldquo;', '&#8220;', true, 'left double quotation mark'],
+ ['&rdquo;', '&#8221;', true, 'right double quotation mark'],
+ ['&sbquo;', '&#8218;', true, 'single low-9 quotation mark'],
+ ['&bdquo;', '&#8222;', true, 'double low-9 quotation mark'],
+ ['&lt;', '&#60;', true, 'less-than sign'],
+ ['&gt;', '&#62;', true, 'greater-than sign'],
+ ['&le;', '&#8804;', true, 'less-than or equal to'],
+ ['&ge;', '&#8805;', true, 'greater-than or equal to'],
+ ['&ndash;', '&#8211;', true, 'en dash'],
+ ['&mdash;', '&#8212;', true, 'em dash'],
+ ['&macr;', '&#175;', true, 'macron'],
+ ['&oline;', '&#8254;', true, 'overline'],
+ ['&curren;', '&#164;', true, 'currency sign'],
+ ['&brvbar;', '&#166;', true, 'broken bar'],
+ ['&uml;', '&#168;', true, 'diaeresis'],
+ ['&iexcl;', '&#161;', true, 'inverted exclamation mark'],
+ ['&iquest;', '&#191;', true, 'turned question mark'],
+ ['&circ;', '&#710;', true, 'circumflex accent'],
+ ['&tilde;', '&#732;', true, 'small tilde'],
+ ['&deg;', '&#176;', true, 'degree sign'],
+ ['&minus;', '&#8722;', true, 'minus sign'],
+ ['&plusmn;', '&#177;', true, 'plus-minus sign'],
+ ['&divide;', '&#247;', true, 'division sign'],
+ ['&frasl;', '&#8260;', true, 'fraction slash'],
+ ['&times;', '&#215;', true, 'multiplication sign'],
+ ['&sup1;', '&#185;', true, 'superscript one'],
+ ['&sup2;', '&#178;', true, 'superscript two'],
+ ['&sup3;', '&#179;', true, 'superscript three'],
+ ['&frac14;', '&#188;', true, 'fraction one quarter'],
+ ['&frac12;', '&#189;', true, 'fraction one half'],
+ ['&frac34;', '&#190;', true, 'fraction three quarters'],
+// math / logical
+ ['&fnof;', '&#402;', true, 'function / florin'],
+ ['&int;', '&#8747;', true, 'integral'],
+ ['&sum;', '&#8721;', true, 'n-ary sumation'],
+ ['&infin;', '&#8734;', true, 'infinity'],
+ ['&radic;', '&#8730;', true, 'square root'],
+ ['&sim;', '&#8764;', false,'similar to'],
+ ['&cong;', '&#8773;', false,'approximately equal to'],
+ ['&asymp;', '&#8776;', true, 'almost equal to'],
+ ['&ne;', '&#8800;', true, 'not equal to'],
+ ['&equiv;', '&#8801;', true, 'identical to'],
+ ['&isin;', '&#8712;', false,'element of'],
+ ['&notin;', '&#8713;', false,'not an element of'],
+ ['&ni;', '&#8715;', false,'contains as member'],
+ ['&prod;', '&#8719;', true, 'n-ary product'],
+ ['&and;', '&#8743;', false,'logical and'],
+ ['&or;', '&#8744;', false,'logical or'],
+ ['&not;', '&#172;', true, 'not sign'],
+ ['&cap;', '&#8745;', true, 'intersection'],
+ ['&cup;', '&#8746;', false,'union'],
+ ['&part;', '&#8706;', true, 'partial differential'],
+ ['&forall;', '&#8704;', false,'for all'],
+ ['&exist;', '&#8707;', false,'there exists'],
+ ['&empty;', '&#8709;', false,'diameter'],
+ ['&nabla;', '&#8711;', false,'backward difference'],
+ ['&lowast;', '&#8727;', false,'asterisk operator'],
+ ['&prop;', '&#8733;', false,'proportional to'],
+ ['&ang;', '&#8736;', false,'angle'],
+// undefined
+ ['&acute;', '&#180;', true, 'acute accent'],
+ ['&cedil;', '&#184;', true, 'cedilla'],
+ ['&ordf;', '&#170;', true, 'feminine ordinal indicator'],
+ ['&ordm;', '&#186;', true, 'masculine ordinal indicator'],
+ ['&dagger;', '&#8224;', true, 'dagger'],
+ ['&Dagger;', '&#8225;', true, 'double dagger'],
+// alphabetical special chars
+ ['&Agrave;', '&#192;', true, 'A - grave'],
+ ['&Aacute;', '&#193;', true, 'A - acute'],
+ ['&Acirc;', '&#194;', true, 'A - circumflex'],
+ ['&Atilde;', '&#195;', true, 'A - tilde'],
+ ['&Auml;', '&#196;', true, 'A - diaeresis'],
+ ['&Aring;', '&#197;', true, 'A - ring above'],
+ ['&AElig;', '&#198;', true, 'ligature AE'],
+ ['&Ccedil;', '&#199;', true, 'C - cedilla'],
+ ['&Egrave;', '&#200;', true, 'E - grave'],
+ ['&Eacute;', '&#201;', true, 'E - acute'],
+ ['&Ecirc;', '&#202;', true, 'E - circumflex'],
+ ['&Euml;', '&#203;', true, 'E - diaeresis'],
+ ['&Igrave;', '&#204;', true, 'I - grave'],
+ ['&Iacute;', '&#205;', true, 'I - acute'],
+ ['&Icirc;', '&#206;', true, 'I - circumflex'],
+ ['&Iuml;', '&#207;', true, 'I - diaeresis'],
+ ['&ETH;', '&#208;', true, 'ETH'],
+ ['&Ntilde;', '&#209;', true, 'N - tilde'],
+ ['&Ograve;', '&#210;', true, 'O - grave'],
+ ['&Oacute;', '&#211;', true, 'O - acute'],
+ ['&Ocirc;', '&#212;', true, 'O - circumflex'],
+ ['&Otilde;', '&#213;', true, 'O - tilde'],
+ ['&Ouml;', '&#214;', true, 'O - diaeresis'],
+ ['&Oslash;', '&#216;', true, 'O - slash'],
+ ['&OElig;', '&#338;', true, 'ligature OE'],
+ ['&Scaron;', '&#352;', true, 'S - caron'],
+ ['&Ugrave;', '&#217;', true, 'U - grave'],
+ ['&Uacute;', '&#218;', true, 'U - acute'],
+ ['&Ucirc;', '&#219;', true, 'U - circumflex'],
+ ['&Uuml;', '&#220;', true, 'U - diaeresis'],
+ ['&Yacute;', '&#221;', true, 'Y - acute'],
+ ['&Yuml;', '&#376;', true, 'Y - diaeresis'],
+ ['&THORN;', '&#222;', true, 'THORN'],
+ ['&agrave;', '&#224;', true, 'a - grave'],
+ ['&aacute;', '&#225;', true, 'a - acute'],
+ ['&acirc;', '&#226;', true, 'a - circumflex'],
+ ['&atilde;', '&#227;', true, 'a - tilde'],
+ ['&auml;', '&#228;', true, 'a - diaeresis'],
+ ['&aring;', '&#229;', true, 'a - ring above'],
+ ['&aelig;', '&#230;', true, 'ligature ae'],
+ ['&ccedil;', '&#231;', true, 'c - cedilla'],
+ ['&egrave;', '&#232;', true, 'e - grave'],
+ ['&eacute;', '&#233;', true, 'e - acute'],
+ ['&ecirc;', '&#234;', true, 'e - circumflex'],
+ ['&euml;', '&#235;', true, 'e - diaeresis'],
+ ['&igrave;', '&#236;', true, 'i - grave'],
+ ['&iacute;', '&#237;', true, 'i - acute'],
+ ['&icirc;', '&#238;', true, 'i - circumflex'],
+ ['&iuml;', '&#239;', true, 'i - diaeresis'],
+ ['&eth;', '&#240;', true, 'eth'],
+ ['&ntilde;', '&#241;', true, 'n - tilde'],
+ ['&ograve;', '&#242;', true, 'o - grave'],
+ ['&oacute;', '&#243;', true, 'o - acute'],
+ ['&ocirc;', '&#244;', true, 'o - circumflex'],
+ ['&otilde;', '&#245;', true, 'o - tilde'],
+ ['&ouml;', '&#246;', true, 'o - diaeresis'],
+ ['&oslash;', '&#248;', true, 'o slash'],
+ ['&oelig;', '&#339;', true, 'ligature oe'],
+ ['&scaron;', '&#353;', true, 's - caron'],
+ ['&ugrave;', '&#249;', true, 'u - grave'],
+ ['&uacute;', '&#250;', true, 'u - acute'],
+ ['&ucirc;', '&#251;', true, 'u - circumflex'],
+ ['&uuml;', '&#252;', true, 'u - diaeresis'],
+ ['&yacute;', '&#253;', true, 'y - acute'],
+ ['&thorn;', '&#254;', true, 'thorn'],
+ ['&yuml;', '&#255;', true, 'y - diaeresis'],
+ ['&Alpha;', '&#913;', true, 'Alpha'],
+ ['&Beta;', '&#914;', true, 'Beta'],
+ ['&Gamma;', '&#915;', true, 'Gamma'],
+ ['&Delta;', '&#916;', true, 'Delta'],
+ ['&Epsilon;', '&#917;', true, 'Epsilon'],
+ ['&Zeta;', '&#918;', true, 'Zeta'],
+ ['&Eta;', '&#919;', true, 'Eta'],
+ ['&Theta;', '&#920;', true, 'Theta'],
+ ['&Iota;', '&#921;', true, 'Iota'],
+ ['&Kappa;', '&#922;', true, 'Kappa'],
+ ['&Lambda;', '&#923;', true, 'Lambda'],
+ ['&Mu;', '&#924;', true, 'Mu'],
+ ['&Nu;', '&#925;', true, 'Nu'],
+ ['&Xi;', '&#926;', true, 'Xi'],
+ ['&Omicron;', '&#927;', true, 'Omicron'],
+ ['&Pi;', '&#928;', true, 'Pi'],
+ ['&Rho;', '&#929;', true, 'Rho'],
+ ['&Sigma;', '&#931;', true, 'Sigma'],
+ ['&Tau;', '&#932;', true, 'Tau'],
+ ['&Upsilon;', '&#933;', true, 'Upsilon'],
+ ['&Phi;', '&#934;', true, 'Phi'],
+ ['&Chi;', '&#935;', true, 'Chi'],
+ ['&Psi;', '&#936;', true, 'Psi'],
+ ['&Omega;', '&#937;', true, 'Omega'],
+ ['&alpha;', '&#945;', true, 'alpha'],
+ ['&beta;', '&#946;', true, 'beta'],
+ ['&gamma;', '&#947;', true, 'gamma'],
+ ['&delta;', '&#948;', true, 'delta'],
+ ['&epsilon;', '&#949;', true, 'epsilon'],
+ ['&zeta;', '&#950;', true, 'zeta'],
+ ['&eta;', '&#951;', true, 'eta'],
+ ['&theta;', '&#952;', true, 'theta'],
+ ['&iota;', '&#953;', true, 'iota'],
+ ['&kappa;', '&#954;', true, 'kappa'],
+ ['&lambda;', '&#955;', true, 'lambda'],
+ ['&mu;', '&#956;', true, 'mu'],
+ ['&nu;', '&#957;', true, 'nu'],
+ ['&xi;', '&#958;', true, 'xi'],
+ ['&omicron;', '&#959;', true, 'omicron'],
+ ['&pi;', '&#960;', true, 'pi'],
+ ['&rho;', '&#961;', true, 'rho'],
+ ['&sigmaf;', '&#962;', true, 'final sigma'],
+ ['&sigma;', '&#963;', true, 'sigma'],
+ ['&tau;', '&#964;', true, 'tau'],
+ ['&upsilon;', '&#965;', true, 'upsilon'],
+ ['&phi;', '&#966;', true, 'phi'],
+ ['&chi;', '&#967;', true, 'chi'],
+ ['&psi;', '&#968;', true, 'psi'],
+ ['&omega;', '&#969;', true, 'omega'],
+// symbols
+ ['&alefsym;', '&#8501;', false,'alef symbol'],
+ ['&piv;', '&#982;', false,'pi symbol'],
+ ['&real;', '&#8476;', false,'real part symbol'],
+ ['&thetasym;','&#977;', false,'theta symbol'],
+ ['&upsih;', '&#978;', false,'upsilon - hook symbol'],
+ ['&weierp;', '&#8472;', false,'Weierstrass p'],
+ ['&image;', '&#8465;', false,'imaginary part'],
+// arrows
+ ['&larr;', '&#8592;', true, 'leftwards arrow'],
+ ['&uarr;', '&#8593;', true, 'upwards arrow'],
+ ['&rarr;', '&#8594;', true, 'rightwards arrow'],
+ ['&darr;', '&#8595;', true, 'downwards arrow'],
+ ['&harr;', '&#8596;', true, 'left right arrow'],
+ ['&crarr;', '&#8629;', false,'carriage return'],
+ ['&lArr;', '&#8656;', false,'leftwards double arrow'],
+ ['&uArr;', '&#8657;', false,'upwards double arrow'],
+ ['&rArr;', '&#8658;', false,'rightwards double arrow'],
+ ['&dArr;', '&#8659;', false,'downwards double arrow'],
+ ['&hArr;', '&#8660;', false,'left right double arrow'],
+ ['&there4;', '&#8756;', false,'therefore'],
+ ['&sub;', '&#8834;', false,'subset of'],
+ ['&sup;', '&#8835;', false,'superset of'],
+ ['&nsub;', '&#8836;', false,'not a subset of'],
+ ['&sube;', '&#8838;', false,'subset of or equal to'],
+ ['&supe;', '&#8839;', false,'superset of or equal to'],
+ ['&oplus;', '&#8853;', false,'circled plus'],
+ ['&otimes;', '&#8855;', false,'circled times'],
+ ['&perp;', '&#8869;', false,'perpendicular'],
+ ['&sdot;', '&#8901;', false,'dot operator'],
+ ['&lceil;', '&#8968;', false,'left ceiling'],
+ ['&rceil;', '&#8969;', false,'right ceiling'],
+ ['&lfloor;', '&#8970;', false,'left floor'],
+ ['&rfloor;', '&#8971;', false,'right floor'],
+ ['&lang;', '&#9001;', false,'left-pointing angle bracket'],
+ ['&rang;', '&#9002;', false,'right-pointing angle bracket'],
+ ['&loz;', '&#9674;', true, 'lozenge'],
+ ['&spades;', '&#9824;', true, 'black spade suit'],
+ ['&clubs;', '&#9827;', true, 'black club suit'],
+ ['&hearts;', '&#9829;', true, 'black heart suit'],
+ ['&diams;', '&#9830;', true, 'black diamond suit'],
+ ['&ensp;', '&#8194;', false,'en space'],
+ ['&emsp;', '&#8195;', false,'em space'],
+ ['&thinsp;', '&#8201;', false,'thin space'],
+ ['&zwnj;', '&#8204;', false,'zero width non-joiner'],
+ ['&zwj;', '&#8205;', false,'zero width joiner'],
+ ['&lrm;', '&#8206;', false,'left-to-right mark'],
+ ['&rlm;', '&#8207;', false,'right-to-left mark'],
+ ['&shy;', '&#173;', false,'soft hyphen']
+];
+
+tinyMCEPopup.onInit.add(function() {
+ tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML());
+ addKeyboardNavigation();
+});
+
+function addKeyboardNavigation(){
+ var tableElm, cells, settings;
+
+ cells = tinyMCEPopup.dom.select("a.charmaplink", "charmapgroup");
+
+ settings ={
+ root: "charmapgroup",
+ items: cells
+ };
+ cells[0].tabindex=0;
+ tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
+ if (tinymce.isGecko) {
+ cells[0].focus();
+ } else {
+ setTimeout(function(){
+ cells[0].focus();
+ }, 100);
+ }
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
+}
+
+function renderCharMapHTML() {
+ var charsPerRow = 20, tdWidth=20, tdHeight=20, i;
+ var html = '<div id="charmapgroup" aria-labelledby="charmap_label" tabindex="0" role="listbox">'+
+ '<table role="presentation" border="0" cellspacing="1" cellpadding="0" width="' + (tdWidth*charsPerRow) +
+ '"><tr height="' + tdHeight + '">';
+ var cols=-1;
+
+ for (i=0; i<charmap.length; i++) {
+ var previewCharFn;
+
+ if (charmap[i][2]==true) {
+ cols++;
+ previewCharFn = 'previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');';
+ html += ''
+ + '<td class="charmap">'
+ + '<a class="charmaplink" role="button" onmouseover="'+previewCharFn+'" onfocus="'+previewCharFn+'" href="javascript:void(0)" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + ' '+ tinyMCEPopup.editor.translate("advanced_dlg.charmap_usage")+'">'
+ + charmap[i][1]
+ + '</a></td>';
+ if ((cols+1) % charsPerRow == 0)
+ html += '</tr><tr height="' + tdHeight + '">';
+ }
+ }
+
+ if (cols % charsPerRow > 0) {
+ var padd = charsPerRow - (cols % charsPerRow);
+ for (var i=0; i<padd-1; i++)
+ html += '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap">&nbsp;</td>';
+ }
+
+ html += '</tr></table></div>';
+ html = html.replace(/<tr height="20"><\/tr>/g, '');
+
+ return html;
+}
+
+function insertChar(chr) {
+ tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';');
+
+ // Refocus in window
+ if (tinyMCEPopup.isWindow)
+ window.focus();
+
+ tinyMCEPopup.editor.focus();
+ tinyMCEPopup.close();
+}
+
+function previewChar(codeA, codeB, codeN) {
+ var elmA = document.getElementById('codeA');
+ var elmB = document.getElementById('codeB');
+ var elmV = document.getElementById('codeV');
+ var elmN = document.getElementById('codeN');
+
+ if (codeA=='#160;') {
+ elmV.innerHTML = '__';
+ } else {
+ elmV.innerHTML = '&' + codeA;
+ }
+
+ elmB.innerHTML = '&amp;' + codeA;
+ elmA.innerHTML = '&amp;' + codeB;
+ elmN.innerHTML = codeN;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/color_picker.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/color_picker.js
new file mode 100644
index 00000000..cc891c17
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/color_picker.js
@@ -0,0 +1,345 @@
+tinyMCEPopup.requireLangPack();
+
+var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false;
+
+var colors = [
+ "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033",
+ "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099",
+ "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff",
+ "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033",
+ "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399",
+ "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff",
+ "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333",
+ "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399",
+ "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff",
+ "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633",
+ "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699",
+ "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff",
+ "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633",
+ "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999",
+ "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff",
+ "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933",
+ "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999",
+ "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff",
+ "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33",
+ "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99",
+ "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff",
+ "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33",
+ "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99",
+ "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff",
+ "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33",
+ "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99",
+ "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff"
+];
+
+var named = {
+ '#F0F8FF':'Alice Blue','#FAEBD7':'Antique White','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige',
+ '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'Blanched Almond','#0000FF':'Blue','#8A2BE2':'Blue Violet','#A52A2A':'Brown',
+ '#DEB887':'Burly Wood','#5F9EA0':'Cadet Blue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'Cornflower Blue',
+ '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'Dark Blue','#008B8B':'Dark Cyan','#B8860B':'Dark Golden Rod',
+ '#A9A9A9':'Dark Gray','#A9A9A9':'Dark Grey','#006400':'Dark Green','#BDB76B':'Dark Khaki','#8B008B':'Dark Magenta','#556B2F':'Dark Olive Green',
+ '#FF8C00':'Darkorange','#9932CC':'Dark Orchid','#8B0000':'Dark Red','#E9967A':'Dark Salmon','#8FBC8F':'Dark Sea Green','#483D8B':'Dark Slate Blue',
+ '#2F4F4F':'Dark Slate Gray','#2F4F4F':'Dark Slate Grey','#00CED1':'Dark Turquoise','#9400D3':'Dark Violet','#FF1493':'Deep Pink','#00BFFF':'Deep Sky Blue',
+ '#696969':'Dim Gray','#696969':'Dim Grey','#1E90FF':'Dodger Blue','#B22222':'Fire Brick','#FFFAF0':'Floral White','#228B22':'Forest Green',
+ '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'Ghost White','#FFD700':'Gold','#DAA520':'Golden Rod','#808080':'Gray','#808080':'Grey',
+ '#008000':'Green','#ADFF2F':'Green Yellow','#F0FFF0':'Honey Dew','#FF69B4':'Hot Pink','#CD5C5C':'Indian Red','#4B0082':'Indigo','#FFFFF0':'Ivory',
+ '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'Lavender Blush','#7CFC00':'Lawn Green','#FFFACD':'Lemon Chiffon','#ADD8E6':'Light Blue',
+ '#F08080':'Light Coral','#E0FFFF':'Light Cyan','#FAFAD2':'Light Golden Rod Yellow','#D3D3D3':'Light Gray','#D3D3D3':'Light Grey','#90EE90':'Light Green',
+ '#FFB6C1':'Light Pink','#FFA07A':'Light Salmon','#20B2AA':'Light Sea Green','#87CEFA':'Light Sky Blue','#778899':'Light Slate Gray','#778899':'Light Slate Grey',
+ '#B0C4DE':'Light Steel Blue','#FFFFE0':'Light Yellow','#00FF00':'Lime','#32CD32':'Lime Green','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon',
+ '#66CDAA':'Medium Aqua Marine','#0000CD':'Medium Blue','#BA55D3':'Medium Orchid','#9370D8':'Medium Purple','#3CB371':'Medium Sea Green','#7B68EE':'Medium Slate Blue',
+ '#00FA9A':'Medium Spring Green','#48D1CC':'Medium Turquoise','#C71585':'Medium Violet Red','#191970':'Midnight Blue','#F5FFFA':'Mint Cream','#FFE4E1':'Misty Rose','#FFE4B5':'Moccasin',
+ '#FFDEAD':'Navajo White','#000080':'Navy','#FDF5E6':'Old Lace','#808000':'Olive','#6B8E23':'Olive Drab','#FFA500':'Orange','#FF4500':'Orange Red','#DA70D6':'Orchid',
+ '#EEE8AA':'Pale Golden Rod','#98FB98':'Pale Green','#AFEEEE':'Pale Turquoise','#D87093':'Pale Violet Red','#FFEFD5':'Papaya Whip','#FFDAB9':'Peach Puff',
+ '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'Powder Blue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'Rosy Brown','#4169E1':'Royal Blue',
+ '#8B4513':'Saddle Brown','#FA8072':'Salmon','#F4A460':'Sandy Brown','#2E8B57':'Sea Green','#FFF5EE':'Sea Shell','#A0522D':'Sienna','#C0C0C0':'Silver',
+ '#87CEEB':'Sky Blue','#6A5ACD':'Slate Blue','#708090':'Slate Gray','#708090':'Slate Grey','#FFFAFA':'Snow','#00FF7F':'Spring Green',
+ '#4682B4':'Steel Blue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet',
+ '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'White Smoke','#FFFF00':'Yellow','#9ACD32':'Yellow Green'
+};
+
+var namedLookup = {};
+
+function init() {
+ var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color')), key, value;
+
+ tinyMCEPopup.resizeToInnerSize();
+
+ generatePicker();
+ generateWebColors();
+ generateNamedColors();
+
+ if (inputColor) {
+ changeFinalColor(inputColor);
+
+ col = convertHexToRGB(inputColor);
+
+ if (col)
+ updateLight(col.r, col.g, col.b);
+ }
+
+ for (key in named) {
+ value = named[key];
+ namedLookup[value.replace(/\s+/, '').toLowerCase()] = key.replace(/#/, '').toLowerCase();
+ }
+}
+
+function toHexColor(color) {
+ var matches, red, green, blue, toInt = parseInt;
+
+ function hex(value) {
+ value = parseInt(value).toString(16);
+
+ return value.length > 1 ? value : '0' + value; // Padd with leading zero
+ };
+
+ color = tinymce.trim(color);
+ color = color.replace(/^[#]/, '').toLowerCase(); // remove leading '#'
+ color = namedLookup[color] || color;
+
+ matches = /^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/.exec(color);
+
+ if (matches) {
+ red = toInt(matches[1]);
+ green = toInt(matches[2]);
+ blue = toInt(matches[3]);
+ } else {
+ matches = /^([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/.exec(color);
+
+ if (matches) {
+ red = toInt(matches[1], 16);
+ green = toInt(matches[2], 16);
+ blue = toInt(matches[3], 16);
+ } else {
+ matches = /^([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(color);
+
+ if (matches) {
+ red = toInt(matches[1] + matches[1], 16);
+ green = toInt(matches[2] + matches[2], 16);
+ blue = toInt(matches[3] + matches[3], 16);
+ } else {
+ return '';
+ }
+ }
+ }
+
+ return '#' + hex(red) + hex(green) + hex(blue);
+}
+
+function insertAction() {
+ var color = document.getElementById("color").value, f = tinyMCEPopup.getWindowArg('func');
+
+ var hexColor = toHexColor(color);
+
+ if (hexColor === '') {
+ var text = tinyMCEPopup.editor.getLang('advanced_dlg.invalid_color_value');
+ tinyMCEPopup.alert(text + ': ' + color);
+ }
+ else {
+ tinyMCEPopup.restoreSelection();
+
+ if (f)
+ f(hexColor);
+
+ tinyMCEPopup.close();
+ }
+}
+
+function showColor(color, name) {
+ if (name)
+ document.getElementById("colorname").innerHTML = name;
+
+ document.getElementById("preview").style.backgroundColor = color;
+ document.getElementById("color").value = color.toUpperCase();
+}
+
+function convertRGBToHex(col) {
+ var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
+
+ if (!col)
+ return col;
+
+ var rgb = col.replace(re, "$1,$2,$3").split(',');
+ if (rgb.length == 3) {
+ r = parseInt(rgb[0]).toString(16);
+ g = parseInt(rgb[1]).toString(16);
+ b = parseInt(rgb[2]).toString(16);
+
+ r = r.length == 1 ? '0' + r : r;
+ g = g.length == 1 ? '0' + g : g;
+ b = b.length == 1 ? '0' + b : b;
+
+ return "#" + r + g + b;
+ }
+
+ return col;
+}
+
+function convertHexToRGB(col) {
+ if (col.indexOf('#') != -1) {
+ col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
+
+ r = parseInt(col.substring(0, 2), 16);
+ g = parseInt(col.substring(2, 4), 16);
+ b = parseInt(col.substring(4, 6), 16);
+
+ return {r : r, g : g, b : b};
+ }
+
+ return null;
+}
+
+function generatePicker() {
+ var el = document.getElementById('light'), h = '', i;
+
+ for (i = 0; i < detail; i++){
+ h += '<div id="gs'+i+'" style="background-color:#000000; width:15px; height:3px; border-style:none; border-width:0px;"'
+ + ' onclick="changeFinalColor(this.style.backgroundColor)"'
+ + ' onmousedown="isMouseDown = true; return false;"'
+ + ' onmouseup="isMouseDown = false;"'
+ + ' onmousemove="if (isMouseDown && isMouseOver) changeFinalColor(this.style.backgroundColor); return false;"'
+ + ' onmouseover="isMouseOver = true;"'
+ + ' onmouseout="isMouseOver = false;"'
+ + '></div>';
+ }
+
+ el.innerHTML = h;
+}
+
+function generateWebColors() {
+ var el = document.getElementById('webcolors'), h = '', i;
+
+ if (el.className == 'generated')
+ return;
+
+ // TODO: VoiceOver doesn't seem to support legend as a label referenced by labelledby.
+ h += '<div role="listbox" aria-labelledby="webcolors_title" tabindex="0"><table role="presentation" border="0" cellspacing="1" cellpadding="0">'
+ + '<tr>';
+
+ for (i=0; i<colors.length; i++) {
+ h += '<td bgcolor="' + colors[i] + '" width="10" height="10">'
+ + '<a href="javascript:insertAction();" role="option" tabindex="-1" aria-labelledby="web_colors_' + i + '" onfocus="showColor(\'' + colors[i] + '\');" onmouseover="showColor(\'' + colors[i] + '\');" style="display:block;width:10px;height:10px;overflow:hidden;">';
+ if (tinyMCEPopup.editor.forcedHighContrastMode) {
+ h += '<canvas class="mceColorSwatch" height="10" width="10" data-color="' + colors[i] + '"></canvas>';
+ }
+ h += '<span class="mceVoiceLabel" style="display:none;" id="web_colors_' + i + '">' + colors[i].toUpperCase() + '</span>';
+ h += '</a></td>';
+ if ((i+1) % 18 == 0)
+ h += '</tr><tr>';
+ }
+
+ h += '</table></div>';
+
+ el.innerHTML = h;
+ el.className = 'generated';
+
+ paintCanvas(el);
+ enableKeyboardNavigation(el.firstChild);
+}
+
+function paintCanvas(el) {
+ tinyMCEPopup.getWin().tinymce.each(tinyMCEPopup.dom.select('canvas.mceColorSwatch', el), function(canvas) {
+ var context;
+ if (canvas.getContext && (context = canvas.getContext("2d"))) {
+ context.fillStyle = canvas.getAttribute('data-color');
+ context.fillRect(0, 0, 10, 10);
+ }
+ });
+}
+function generateNamedColors() {
+ var el = document.getElementById('namedcolors'), h = '', n, v, i = 0;
+
+ if (el.className == 'generated')
+ return;
+
+ for (n in named) {
+ v = named[n];
+ h += '<a href="javascript:insertAction();" role="option" tabindex="-1" aria-labelledby="named_colors_' + i + '" onfocus="showColor(\'' + n + '\',\'' + v + '\');" onmouseover="showColor(\'' + n + '\',\'' + v + '\');" style="background-color: ' + n + '">';
+ if (tinyMCEPopup.editor.forcedHighContrastMode) {
+ h += '<canvas class="mceColorSwatch" height="10" width="10" data-color="' + colors[i] + '"></canvas>';
+ }
+ h += '<span class="mceVoiceLabel" style="display:none;" id="named_colors_' + i + '">' + v + '</span>';
+ h += '</a>';
+ i++;
+ }
+
+ el.innerHTML = h;
+ el.className = 'generated';
+
+ paintCanvas(el);
+ enableKeyboardNavigation(el);
+}
+
+function enableKeyboardNavigation(el) {
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
+ root: el,
+ items: tinyMCEPopup.dom.select('a', el)
+ }, tinyMCEPopup.dom);
+}
+
+function dechex(n) {
+ return strhex.charAt(Math.floor(n / 16)) + strhex.charAt(n % 16);
+}
+
+function computeColor(e) {
+ var x, y, partWidth, partDetail, imHeight, r, g, b, coef, i, finalCoef, finalR, finalG, finalB, pos = tinyMCEPopup.dom.getPos(e.target);
+
+ x = e.offsetX ? e.offsetX : (e.target ? e.clientX - pos.x : 0);
+ y = e.offsetY ? e.offsetY : (e.target ? e.clientY - pos.y : 0);
+
+ partWidth = document.getElementById('colors').width / 6;
+ partDetail = detail / 2;
+ imHeight = document.getElementById('colors').height;
+
+ r = (x >= 0)*(x < partWidth)*255 + (x >= partWidth)*(x < 2*partWidth)*(2*255 - x * 255 / partWidth) + (x >= 4*partWidth)*(x < 5*partWidth)*(-4*255 + x * 255 / partWidth) + (x >= 5*partWidth)*(x < 6*partWidth)*255;
+ g = (x >= 0)*(x < partWidth)*(x * 255 / partWidth) + (x >= partWidth)*(x < 3*partWidth)*255 + (x >= 3*partWidth)*(x < 4*partWidth)*(4*255 - x * 255 / partWidth);
+ b = (x >= 2*partWidth)*(x < 3*partWidth)*(-2*255 + x * 255 / partWidth) + (x >= 3*partWidth)*(x < 5*partWidth)*255 + (x >= 5*partWidth)*(x < 6*partWidth)*(6*255 - x * 255 / partWidth);
+
+ coef = (imHeight - y) / imHeight;
+ r = 128 + (r - 128) * coef;
+ g = 128 + (g - 128) * coef;
+ b = 128 + (b - 128) * coef;
+
+ changeFinalColor('#' + dechex(r) + dechex(g) + dechex(b));
+ updateLight(r, g, b);
+}
+
+function updateLight(r, g, b) {
+ var i, partDetail = detail / 2, finalCoef, finalR, finalG, finalB, color;
+
+ for (i=0; i<detail; i++) {
+ if ((i>=0) && (i<partDetail)) {
+ finalCoef = i / partDetail;
+ finalR = dechex(255 - (255 - r) * finalCoef);
+ finalG = dechex(255 - (255 - g) * finalCoef);
+ finalB = dechex(255 - (255 - b) * finalCoef);
+ } else {
+ finalCoef = 2 - i / partDetail;
+ finalR = dechex(r * finalCoef);
+ finalG = dechex(g * finalCoef);
+ finalB = dechex(b * finalCoef);
+ }
+
+ color = finalR + finalG + finalB;
+
+ setCol('gs' + i, '#'+color);
+ }
+}
+
+function changeFinalColor(color) {
+ if (color.indexOf('#') == -1)
+ color = convertRGBToHex(color);
+
+ setCol('preview', color);
+ document.getElementById('color').value = color;
+}
+
+function setCol(e, c) {
+ try {
+ document.getElementById(e).style.backgroundColor = c;
+ } catch (ex) {
+ // Ignore IE warning
+ }
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/image.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/image.js
new file mode 100644
index 00000000..bb09e75b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/image.js
@@ -0,0 +1,253 @@
+var ImageDialog = {
+ preInit : function() {
+ var url;
+
+ tinyMCEPopup.requireLangPack();
+
+ if (url = tinyMCEPopup.getParam("external_image_list_url"))
+ document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
+ },
+
+ init : function() {
+ var f = document.forms[0], ed = tinyMCEPopup.editor;
+
+ // Setup browse button
+ document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
+ if (isVisible('srcbrowser'))
+ document.getElementById('src').style.width = '180px';
+
+ e = ed.selection.getNode();
+
+ this.fillFileList('image_list', tinyMCEPopup.getParam('external_image_list', 'tinyMCEImageList'));
+
+ if (e.nodeName == 'IMG') {
+ f.src.value = ed.dom.getAttrib(e, 'src');
+ f.alt.value = ed.dom.getAttrib(e, 'alt');
+ f.border.value = this.getAttrib(e, 'border');
+ f.vspace.value = this.getAttrib(e, 'vspace');
+ f.hspace.value = this.getAttrib(e, 'hspace');
+ f.width.value = ed.dom.getAttrib(e, 'width');
+ f.height.value = ed.dom.getAttrib(e, 'height');
+ f.insert.value = ed.getLang('update');
+ this.styleVal = ed.dom.getAttrib(e, 'style');
+ selectByValue(f, 'image_list', f.src.value);
+ selectByValue(f, 'align', this.getAttrib(e, 'align'));
+ this.updateStyle();
+ }
+ },
+
+ fillFileList : function(id, l) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ l = typeof(l) === 'function' ? l() : window[l];
+
+ if (l && l.length > 0) {
+ lst.options[lst.options.length] = new Option('', '');
+
+ tinymce.each(l, function(o) {
+ lst.options[lst.options.length] = new Option(o[0], o[1]);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ update : function() {
+ var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el;
+
+ tinyMCEPopup.restoreSelection();
+
+ if (f.src.value === '') {
+ if (ed.selection.getNode().nodeName == 'IMG') {
+ ed.dom.remove(ed.selection.getNode());
+ ed.execCommand('mceRepaint');
+ }
+
+ tinyMCEPopup.close();
+ return;
+ }
+
+ if (!ed.settings.inline_styles) {
+ args = tinymce.extend(args, {
+ vspace : nl.vspace.value,
+ hspace : nl.hspace.value,
+ border : nl.border.value,
+ align : getSelectValue(f, 'align')
+ });
+ } else
+ args.style = this.styleVal;
+
+ tinymce.extend(args, {
+ src : f.src.value.replace(/ /g, '%20'),
+ alt : f.alt.value,
+ width : f.width.value,
+ height : f.height.value
+ });
+
+ el = ed.selection.getNode();
+
+ if (el && el.nodeName == 'IMG') {
+ ed.dom.setAttribs(el, args);
+ tinyMCEPopup.editor.execCommand('mceRepaint');
+ tinyMCEPopup.editor.focus();
+ } else {
+ tinymce.each(args, function(value, name) {
+ if (value === "") {
+ delete args[name];
+ }
+ });
+
+ ed.execCommand('mceInsertContent', false, tinyMCEPopup.editor.dom.createHTML('img', args), {skip_undo : 1});
+ ed.undoManager.add();
+ }
+
+ tinyMCEPopup.close();
+ },
+
+ updateStyle : function() {
+ var dom = tinyMCEPopup.dom, st = {}, v, f = document.forms[0];
+
+ if (tinyMCEPopup.editor.settings.inline_styles) {
+ tinymce.each(tinyMCEPopup.dom.parseStyle(this.styleVal), function(value, key) {
+ st[key] = value;
+ });
+
+ // Handle align
+ v = getSelectValue(f, 'align');
+ if (v) {
+ if (v == 'left' || v == 'right') {
+ st['float'] = v;
+ delete st['vertical-align'];
+ } else {
+ st['vertical-align'] = v;
+ delete st['float'];
+ }
+ } else {
+ delete st['float'];
+ delete st['vertical-align'];
+ }
+
+ // Handle border
+ v = f.border.value;
+ if (v || v == '0') {
+ if (v == '0')
+ st['border'] = '0';
+ else
+ st['border'] = v + 'px solid black';
+ } else
+ delete st['border'];
+
+ // Handle hspace
+ v = f.hspace.value;
+ if (v) {
+ delete st['margin'];
+ st['margin-left'] = v + 'px';
+ st['margin-right'] = v + 'px';
+ } else {
+ delete st['margin-left'];
+ delete st['margin-right'];
+ }
+
+ // Handle vspace
+ v = f.vspace.value;
+ if (v) {
+ delete st['margin'];
+ st['margin-top'] = v + 'px';
+ st['margin-bottom'] = v + 'px';
+ } else {
+ delete st['margin-top'];
+ delete st['margin-bottom'];
+ }
+
+ // Merge
+ st = tinyMCEPopup.dom.parseStyle(dom.serializeStyle(st), 'img');
+ this.styleVal = dom.serializeStyle(st, 'img');
+ }
+ },
+
+ getAttrib : function(e, at) {
+ var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
+
+ if (ed.settings.inline_styles) {
+ switch (at) {
+ case 'align':
+ if (v = dom.getStyle(e, 'float'))
+ return v;
+
+ if (v = dom.getStyle(e, 'vertical-align'))
+ return v;
+
+ break;
+
+ case 'hspace':
+ v = dom.getStyle(e, 'margin-left')
+ v2 = dom.getStyle(e, 'margin-right');
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'vspace':
+ v = dom.getStyle(e, 'margin-top')
+ v2 = dom.getStyle(e, 'margin-bottom');
+ if (v && v == v2)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+
+ case 'border':
+ v = 0;
+
+ tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) {
+ sv = dom.getStyle(e, 'border-' + sv + '-width');
+
+ // False or not the same as prev
+ if (!sv || (sv != v && v !== 0)) {
+ v = 0;
+ return false;
+ }
+
+ if (sv)
+ v = sv;
+ });
+
+ if (v)
+ return parseInt(v.replace(/[^0-9]/g, ''));
+
+ break;
+ }
+ }
+
+ if (v = dom.getAttrib(e, at))
+ return v;
+
+ return '';
+ },
+
+ resetImageData : function() {
+ var f = document.forms[0];
+
+ f.width.value = f.height.value = "";
+ },
+
+ updateImageData : function() {
+ var f = document.forms[0], t = ImageDialog;
+
+ if (f.width.value == "")
+ f.width.value = t.preloadImg.width;
+
+ if (f.height.value == "")
+ f.height.value = t.preloadImg.height;
+ },
+
+ getImageData : function() {
+ var f = document.forms[0];
+
+ this.preloadImg = new Image();
+ this.preloadImg.onload = this.updateImageData;
+ this.preloadImg.onerror = this.resetImageData;
+ this.preloadImg.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(f.src.value);
+ }
+};
+
+ImageDialog.preInit();
+tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/link.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/link.js
new file mode 100644
index 00000000..8c1d73c5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/link.js
@@ -0,0 +1,159 @@
+tinyMCEPopup.requireLangPack();
+
+var LinkDialog = {
+ preInit : function() {
+ var url;
+
+ if (url = tinyMCEPopup.getParam("external_link_list_url"))
+ document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
+ },
+
+ init : function() {
+ var f = document.forms[0], ed = tinyMCEPopup.editor;
+
+ // Setup browse button
+ document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser', 'href', 'file', 'theme_advanced_link');
+ if (isVisible('hrefbrowser'))
+ document.getElementById('href').style.width = '180px';
+
+ this.fillClassList('class_list');
+ this.fillFileList('link_list', 'tinyMCELinkList');
+ this.fillTargetList('target_list');
+
+ if (e = ed.dom.getParent(ed.selection.getNode(), 'A')) {
+ f.href.value = ed.dom.getAttrib(e, 'href');
+ f.linktitle.value = ed.dom.getAttrib(e, 'title');
+ f.insert.value = ed.getLang('update');
+ selectByValue(f, 'link_list', f.href.value);
+ selectByValue(f, 'target_list', ed.dom.getAttrib(e, 'target'));
+ selectByValue(f, 'class_list', ed.dom.getAttrib(e, 'class'));
+ }
+ },
+
+ update : function() {
+ var f = document.forms[0], ed = tinyMCEPopup.editor, e, b, href = f.href.value.replace(/ /g, '%20');
+
+ tinyMCEPopup.restoreSelection();
+ e = ed.dom.getParent(ed.selection.getNode(), 'A');
+
+ // Remove element if there is no href
+ if (!f.href.value) {
+ if (e) {
+ b = ed.selection.getBookmark();
+ ed.dom.remove(e, 1);
+ ed.selection.moveToBookmark(b);
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
+ tinyMCEPopup.close();
+ return;
+ }
+ }
+
+ // Create new anchor elements
+ if (e == null) {
+ ed.getDoc().execCommand("unlink", false, null);
+ tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
+
+ tinymce.each(ed.dom.select("a"), function(n) {
+ if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') {
+ e = n;
+
+ ed.dom.setAttribs(e, {
+ href : href,
+ title : f.linktitle.value,
+ target : f.target_list ? getSelectValue(f, "target_list") : null,
+ 'class' : f.class_list ? getSelectValue(f, "class_list") : null
+ });
+ }
+ });
+ } else {
+ ed.dom.setAttribs(e, {
+ href : href,
+ title : f.linktitle.value
+ });
+
+ if (f.target_list) {
+ ed.dom.setAttrib(e, 'target', getSelectValue(f, "target_list"));
+ }
+
+ if (f.class_list) {
+ ed.dom.setAttrib(e, 'class', getSelectValue(f, "class_list"));
+ }
+ }
+
+ // Don't move caret if selection was image
+ if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') {
+ ed.focus();
+ ed.selection.select(e);
+ ed.selection.collapse(0);
+ tinyMCEPopup.storeSelection();
+ }
+
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
+ tinyMCEPopup.close();
+ },
+
+ checkPrefix : function(n) {
+ if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_email')))
+ n.value = 'mailto:' + n.value;
+
+ if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_external')))
+ n.value = 'http://' + n.value;
+ },
+
+ fillFileList : function(id, l) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ l = window[l];
+
+ if (l && l.length > 0) {
+ lst.options[lst.options.length] = new Option('', '');
+
+ tinymce.each(l, function(o) {
+ lst.options[lst.options.length] = new Option(o[0], o[1]);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ fillClassList : function(id) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
+
+ if (v = tinyMCEPopup.getParam('theme_advanced_styles')) {
+ cl = [];
+
+ tinymce.each(v.split(';'), function(v) {
+ var p = v.split('=');
+
+ cl.push({'title' : p[0], 'class' : p[1]});
+ });
+ } else
+ cl = tinyMCEPopup.editor.dom.getClasses();
+
+ if (cl.length > 0) {
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
+
+ tinymce.each(cl, function(o) {
+ lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
+ });
+ } else
+ dom.remove(dom.getParent(id, 'tr'));
+ },
+
+ fillTargetList : function(id) {
+ var dom = tinyMCEPopup.dom, lst = dom.get(id), v;
+
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_same'), '_self');
+ lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_blank'), '_blank');
+
+ if (v = tinyMCEPopup.getParam('theme_advanced_link_targets')) {
+ tinymce.each(v.split(','), function(v) {
+ v = v.split('=');
+ lst.options[lst.options.length] = new Option(v[0], v[1]);
+ });
+ }
+ }
+};
+
+LinkDialog.preInit();
+tinyMCEPopup.onInit.add(LinkDialog.init, LinkDialog);
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/source_editor.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/source_editor.js
new file mode 100644
index 00000000..dd5e366f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/js/source_editor.js
@@ -0,0 +1,78 @@
+tinyMCEPopup.requireLangPack();
+tinyMCEPopup.onInit.add(onLoadInit);
+
+function saveContent() {
+ tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true});
+ tinyMCEPopup.close();
+}
+
+function onLoadInit() {
+ tinyMCEPopup.resizeToInnerSize();
+
+ // Remove Gecko spellchecking
+ if (tinymce.isGecko)
+ document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck");
+
+ document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true});
+
+ if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) {
+ turnWrapOn();
+ document.getElementById('wraped').checked = true;
+ }
+
+ resizeInputs();
+}
+
+function setWrap(val) {
+ var v, n, s = document.getElementById('htmlSource');
+
+ s.wrap = val;
+
+ if (!tinymce.isIE) {
+ v = s.value;
+ n = s.cloneNode(false);
+ n.setAttribute("wrap", val);
+ s.parentNode.replaceChild(n, s);
+ n.value = v;
+ }
+}
+
+function setWhiteSpaceCss(value) {
+ var el = document.getElementById('htmlSource');
+ tinymce.DOM.setStyle(el, 'white-space', value);
+}
+
+function turnWrapOff() {
+ if (tinymce.isWebKit) {
+ setWhiteSpaceCss('pre');
+ } else {
+ setWrap('off');
+ }
+}
+
+function turnWrapOn() {
+ if (tinymce.isWebKit) {
+ setWhiteSpaceCss('pre-wrap');
+ } else {
+ setWrap('soft');
+ }
+}
+
+function toggleWordWrap(elm) {
+ if (elm.checked) {
+ turnWrapOn();
+ } else {
+ turnWrapOff();
+ }
+}
+
+function resizeInputs() {
+ var vp = tinyMCEPopup.dom.getViewPort(window), el;
+
+ el = document.getElementById('htmlSource');
+
+ if (el) {
+ el.style.width = (vp.w - 20) + 'px';
+ el.style.height = (vp.h - 65) + 'px';
+ }
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de.js
new file mode 100755
index 00000000..4bd5419f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.advanced',{"underline_desc":"Unterstrichen (Strg+U)","italic_desc":"Kursiv (Strg+I)","bold_desc":"Fett (Strg+B)",dd:"Definitionsbeschreibung",dt:"Definitionsbegriff",samp:"Beispiel",code:"Code",blockquote:"Zitatblock",h6:"\u00dcberschrift 6",h5:"\u00dcberschrift 5",h4:"\u00dcberschrift 4",h3:"\u00dcberschrift 3",h2:"\u00dcberschrift 2",h1:"\u00dcberschrift 1",pre:"Rohdaten",address:"Adresse",div:"Zusammenh\u00e4ngender Bereich",paragraph:"Absatz",block:"Vorlage",fontdefault:"Schriftart","font_size":"Schriftgr\u00f6\u00dfe","style_select":"Format","anchor_delta_width":"13","more_colors":"Weitere Farben","toolbar_focus":"Zur Werkzeugleiste springen: Alt+Q; Zum Editor springen: Alt-Z; Zum Elementpfad springen: Alt-X",newdocument:"Soll wirklich der ganze Inhalt gel\u00f6scht werden?",path:"Pfad","clipboard_msg":"Kopieren, Ausschneiden und Einf\u00fcgen sind im Mozilla Firefox nicht m\u00f6glich. Mehr \u00fcber dieses Problem erfahren?","blockquote_desc":"Zitatblock","help_desc":"Hilfe","newdocument_desc":"Neues Dokument","image_props_desc":"Bildeigenschaften","paste_desc":"Einf\u00fcgen","copy_desc":"Kopieren","cut_desc":"Ausschneiden","anchor_desc":"Anker einf\u00fcgen/ver\u00e4ndern","visualaid_desc":"Hilfslinien und unsichtbare Elemente ein-/ausblenden","charmap_desc":"Sonderzeichen einf\u00fcgen","backcolor_desc":"Hintergrundfarbe","forecolor_desc":"Textfarbe","custom1_desc":"Benutzerdefinierte Beschreibung","removeformat_desc":"Formatierungen zur\u00fccksetzen","hr_desc":"Trennlinie einf\u00fcgen","sup_desc":"Hochgestellt","sub_desc":"Tiefgestellt","code_desc":"HTML-Quellcode bearbeiten","cleanup_desc":"Quellcode aufr\u00e4umen","image_desc":"Bild einf\u00fcgen/ver\u00e4ndern","unlink_desc":"Link entfernen","link_desc":"Link einf\u00fcgen/ver\u00e4ndern","redo_desc":"Wiederholen (Strg+Y)","undo_desc":"R\u00fcckg\u00e4ngig (Strg+Z)","indent_desc":"Einr\u00fccken","outdent_desc":"Ausr\u00fccken","numlist_desc":"Sortierte Liste","bullist_desc":"Unsortierte Liste","justifyfull_desc":"Blocksatz","justifyright_desc":"Rechtsb\u00fcndig","justifycenter_desc":"Zentriert","justifyleft_desc":"Linksb\u00fcndig","striketrough_desc":"Durchgestrichen","help_shortcut":"F\u00fcr die Toolbar ALT-F10 dr\u00fccken. F\u00fcr die Hilfe ALT-0 dr\u00fccken","rich_text_area":"Rich Text Feld","shortcuts_desc":"Eingabehilfe",toolbar:"Pfeiltasten verwenden um Funktionen auszuw\u00e4hlen","anchor_delta_height":"","charmap_delta_height":"","charmap_delta_width":"","colorpicker_delta_height":"","colorpicker_delta_width":"","link_delta_height":"","link_delta_width":"","image_delta_height":"","image_delta_width":""}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de_dlg.js
new file mode 100644
index 00000000..0ee5af90
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/de_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.advanced_dlg',{"link_list":"Linkliste","link_is_external":"Diese Adresse scheint ein externer Link zu sein. Soll das dazu ben\u00f6tigte \"http://\" vorangestellt werden?","link_is_email":"Diese Adresse scheint eine E-Mail Adresse zu sein. Soll das dazu ben\u00f6tigte \"mailto:\" vorangestellt werden?","link_titlefield":"Titel","link_target_blank":"In neuem Fenster \u00f6ffnen","link_target_same":"Im selben Fenster \u00f6ffnen","link_target":"Fenster","link_url":"Adresse","link_title":"Link einf\u00fcgen/ver\u00e4ndern","image_align_right":"Rechts","image_align_left":"Links","image_align_textbottom":"Unten im Text","image_align_texttop":"Oben im Text","image_align_bottom":"Unten","image_align_middle":"Mittig","image_align_top":"Oben","image_align_baseline":"Zeile","image_align":"Ausrichtung","image_hspace":"Horizontaler Abstand","image_vspace":"Vertikaler Abstand","image_dimensions":"Abmessungen","image_alt":"Alternativtext","image_list":"Bilderliste","image_border":"Rahmen","image_src":"Adresse","image_title":"Bild einf\u00fcgen/ver\u00e4ndern","charmap_title":"Sonderzeichen","colorpicker_name":"Name:","colorpicker_color":"Farbe:","colorpicker_named_title":"Benannte Farben","colorpicker_named_tab":"Benannte Farben","colorpicker_palette_title":"Farbpalette","colorpicker_palette_tab":"Palette","colorpicker_picker_title":"Farbwahl","colorpicker_picker_tab":"Farbwahl","colorpicker_title":"Farbe","code_wordwrap":"Automatischer Zeilenumbruch","code_title":"HTML-Quellcode bearbeiten","anchor_name":"Name des Ankers","anchor_title":"Anker einf\u00fcgen/ver\u00e4ndern","about_loaded":"Geladene Plugins","about_version":"Version","about_author":"Urheber","about_plugin":"Plugin","about_plugins":"Plugins","about_license":"Lizenzbedingungen","about_help":"Hilfe","about_general":"\u00dcber","about_title":"\u00dcber TinyMCE","charmap_usage":"Navigation mit linken und rechten Pfeiltasten.","anchor_invalid":"Bitte einen g\u00fcltigen Namen f\u00fcr den Anker eingeben!","accessibility_help":"Eingabehilfe","accessibility_usage_title":"Allgemeine Verwendung","invalid_color_value":"Ung\u00fcltige Farbangabe"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en.js
new file mode 100755
index 00000000..f89eb92a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.advanced',{"underline_desc":"Underline (Ctrl+U)","italic_desc":"Italic (Ctrl+I)","bold_desc":"Bold (Ctrl+B)",dd:"Definition Description",dt:"Definition Term ",samp:"Code Sample",code:"Code",blockquote:"Block Quote",h6:"Heading 6",h5:"Heading 5",h4:"Heading 4",h3:"Heading 3",h2:"Heading 2",h1:"Heading 1",pre:"Preformatted",address:"Address",div:"DIV",paragraph:"Paragraph",block:"Format",fontdefault:"Font Family","font_size":"Font Size","style_select":"Styles","anchor_delta_height":"","anchor_delta_width":"","charmap_delta_height":"","charmap_delta_width":"","colorpicker_delta_height":"","colorpicker_delta_width":"","link_delta_height":"","link_delta_width":"","image_delta_height":"","image_delta_width":"","more_colors":"More Colors...","toolbar_focus":"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X",newdocument:"Are you sure you want clear all contents?",path:"Path","clipboard_msg":"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?","blockquote_desc":"Block Quote","help_desc":"Help","newdocument_desc":"New Document","image_props_desc":"Image Properties","paste_desc":"Paste (Ctrl+V)","copy_desc":"Copy (Ctrl+C)","cut_desc":"Cut (Ctrl+X)","anchor_desc":"Insert/Edit Anchor","visualaid_desc":"show/Hide Guidelines/Invisible Elements","charmap_desc":"Insert Special Character","backcolor_desc":"Select Background Color","forecolor_desc":"Select Text Color","custom1_desc":"Your Custom Description Here","removeformat_desc":"Remove Formatting","hr_desc":"Insert Horizontal Line","sup_desc":"Superscript","sub_desc":"Subscript","code_desc":"Edit HTML Source","cleanup_desc":"Cleanup Messy Code","image_desc":"Insert/Edit Image","unlink_desc":"Unlink","link_desc":"Insert/Edit Link","redo_desc":"Redo (Ctrl+Y)","undo_desc":"Undo (Ctrl+Z)","indent_desc":"Increase Indent","outdent_desc":"Decrease Indent","numlist_desc":"Insert/Remove Numbered List","bullist_desc":"Insert/Remove Bulleted List","justifyfull_desc":"Align Full","justifyright_desc":"Align Right","justifycenter_desc":"Align Center","justifyleft_desc":"Align Left","striketrough_desc":"Strikethrough","help_shortcut":"Press ALT-F10 for toolbar. Press ALT-0 for help","rich_text_area":"Rich Text Area","shortcuts_desc":"Accessability Help",toolbar:"Use arrow keys to select functions"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en_dlg.js
new file mode 100644
index 00000000..e451f377
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/en_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.advanced_dlg',{"link_list":"Link List","link_is_external":"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?","link_is_email":"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?","link_titlefield":"Title","link_target_blank":"Open Link in a New Window","link_target_same":"Open Link in the Same Window","link_target":"Target","link_url":"Link URL","link_title":"Insert/Edit Link","image_align_right":"Right","image_align_left":"Left","image_align_textbottom":"Text Bottom","image_align_texttop":"Text Top","image_align_bottom":"Bottom","image_align_middle":"Middle","image_align_top":"Top","image_align_baseline":"Baseline","image_align":"Alignment","image_hspace":"Horizontal Space","image_vspace":"Vertical Space","image_dimensions":"Dimensions","image_alt":"Image Description","image_list":"Image List","image_border":"Border","image_src":"Image URL","image_title":"Insert/Edit Image","charmap_title":"Select Special Character","colorpicker_name":"Name:","colorpicker_color":"Color:","colorpicker_named_title":"Named Colors","colorpicker_named_tab":"Named","colorpicker_palette_title":"Palette Colors","colorpicker_palette_tab":"Palette","colorpicker_picker_title":"Color Picker","colorpicker_picker_tab":"Picker","colorpicker_title":"Select a Color","code_wordwrap":"Word Wrap","code_title":"HTML Source Editor","anchor_name":"Anchor Name","anchor_title":"Insert/Edit Anchor","about_loaded":"Loaded Plugins","about_version":"Version","about_author":"Author","about_plugin":"Plugin","about_plugins":"Plugins","about_license":"License","about_help":"Help","about_general":"About","about_title":"About TinyMCE","charmap_usage":"Use left and right arrows to navigate.","anchor_invalid":"Please specify a valid anchor name.","accessibility_help":"Accessibility Help","accessibility_usage_title":"General Usage","invalid_color_value":"Invalid color value"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu.js
new file mode 100644
index 00000000..ddd85347
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.advanced',{"underline_desc":"Al\u00e1h\u00fazott (Ctrl+U)","italic_desc":"D\u0151lt (Ctrl+I)","bold_desc":"F\u00e9lk\u00f6v\u00e9r (Ctrl+B)",dd:"Defin\u00edci\u00f3 a defin\u00edci\u00f3s list\u00e1ban",dt:"Defini\u00e1lt kifejez\u00e9s a defin\u00edci\u00f3s list\u00e1ban",samp:"K\u00f3d minta",code:"K\u00f3d",blockquote:"Id\u00e9zet",h6:"C\u00edmsor 6",h5:"C\u00edmsor 5",h4:"C\u00edmsor 4",h3:"C\u00edmsor 3",h2:"C\u00edmsor 2",h1:"C\u00edmsor 1",pre:"El\u0151form\u00e1zott",address:"C\u00edm",div:"DIV",paragraph:"Bekezd\u00e9s",block:"Form\u00e1tum",fontdefault:"Bet\u0171t\u00edpus","font_size":"Bet\u0171m\u00e9ret","style_select":"St\u00edlusok","image_delta_height":"","image_delta_width":"","more_colors":"Tov\u00e1bbi sz\u00ednek...","toolbar_focus":"Eszk\u00f6z-gombokra ugr\u00e1s - Alt Q, Szerkeszt\u0151h\u00f6z ugr\u00e1s - Alt-Z, Elem\u00fatvonalhoz ugr\u00e1s - Alt-X",newdocument:"Biztosan t\u00f6rli az \u00f6sszes tartalmat?",path:"\u00datvonal","clipboard_msg":"A M\u00e1sol\u00e1s/Kiv\u00e1g\u00e1s/Besz\u00far\u00e1s funkci\u00f3k nem \u00e9rhet\u0151ek el Mozilla \u00e9s Firefox alatt. Szeretne t\u00f6bbet megtudni err\u0151l?","blockquote_desc":"Id\u00e9zet","help_desc":"Seg\u00edts\u00e9g","newdocument_desc":"\u00daj dokumentum","image_props_desc":"K\u00e9p tulajdons\u00e1gai","paste_desc":"Besz\u00far\u00e1s (Ctrl V)","copy_desc":"M\u00e1sol\u00e1s (Ctrl C)","cut_desc":"Kiv\u00e1g\u00e1s (Ctrl X) ","anchor_desc":"Horgony besz\u00far\u00e1sa/szerkeszt\u00e9se","visualaid_desc":"Vezet\u0151vonalak/nem l\u00e1that\u00f3 elemek ki-/bekapcsol\u00e1sa","charmap_desc":"Speci\u00e1lis karakter besz\u00far\u00e1sa","backcolor_desc":"H\u00e1tt\u00e9rsz\u00edn v\u00e1laszt\u00e1sa","forecolor_desc":"Sz\u00f6vegsz\u00edn v\u00e1laszt\u00e1sa","custom1_desc":"Az \u00f6n egyedi le\u00edr\u00e1sa","removeformat_desc":"Form\u00e1z\u00e1s elt\u00e1vol\u00edt\u00e1sa","hr_desc":"V\u00edzszintes elv\u00e1laszt\u00f3 vonal besz\u00far\u00e1sa","sup_desc":"Fels\u0151 index","sub_desc":"Als\u00f3 index","code_desc":"HTML forr\u00e1sk\u00f3d szerkeszt\u00e9se","cleanup_desc":"Minden form\u00e1z\u00e1s elt\u00e1vol\u00edt\u00e1sa","image_desc":"K\u00e9p besz\u00far\u00e1sa/szerkeszt\u00e9se","unlink_desc":"Link elt\u00e1vol\u00edt\u00e1sa","link_desc":"Link besz\u00far\u00e1sa/szerkeszt\u00e9se","redo_desc":"M\u00e9gis v\u00e9grehajt (Ctrl+Y)","undo_desc":"Visszavon\u00e1s (Ctrl+Z)","indent_desc":"Beh\u00faz\u00e1s n\u00f6vel\u00e9se","outdent_desc":"Beh\u00faz\u00e1s cs\u00f6kkent\u00e9se","numlist_desc":"Sz\u00e1mozott lista besz\u00far\u00e1sa/elt\u00e1vol\u00edt\u00e1sa","bullist_desc":"Felsorol\u00e1s besz\u00far\u00e1sa/elt\u00e1vol\u00edt\u00e1sa","justifyfull_desc":"Sorkiz\u00e1rt","justifyright_desc":"Jobbra z\u00e1rt","justifycenter_desc":"K\u00f6z\u00e9pre z\u00e1rt","justifyleft_desc":"Balra z\u00e1rt","striketrough_desc":"\u00c1th\u00fazott","help_shortcut":"Ugr\u00e1s az eszk\u00f6zt\u00e1rhoz: ALT-F10. Seg\u00edts\u00e9g: ALT-0.","rich_text_area":"Rich Text ter\u00fclet","shortcuts_desc":"El\u00e9rhet\u0151s\u00e9g s\u00fag\u00f3",toolbar:"Eszk\u00f6zt\u00e1r","anchor_delta_height":"","anchor_delta_width":"","charmap_delta_height":"","charmap_delta_width":"","colorpicker_delta_height":"","colorpicker_delta_width":"","link_delta_height":"","link_delta_width":""}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu_dlg.js
new file mode 100644
index 00000000..4322cb69
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/hu_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.advanced_dlg',{"link_list":"Link lista","link_is_external":"A be\u00edrt internet c\u00edm k\u00fcls\u0151 hivatkoz\u00e1snak t\u0171nik, k\u00edv\u00e1nja a sz\u00fcks\u00e9ges http:// el\u0151taggal kieg\u00e9sz\u00edteni?","link_is_email":"A be\u00edrt internet c\u00edm e-mail c\u00edmnek t\u0171nik, k\u00edv\u00e1nja a sz\u00fcks\u00e9ges mailto: el\u0151taggal kieg\u00e9sz\u00edteni?","link_titlefield":"C\u00edm","link_target_blank":"Hivatkoz\u00e1s megnyit\u00e1sa \u00faj ablakban","link_target_same":"Hivatkoz\u00e1s megnyit\u00e1sa ugyanabban az ablakban","link_target":"Hivatkoz\u00e1s c\u00e9lja","link_url":"Internet c\u00edm","link_title":"Link besz\u00far\u00e1sa/szerkeszt\u00e9se","image_align_right":"Jobbra","image_align_left":"Balra","image_align_textbottom":"Sz\u00f6veg alj\u00e1hoz","image_align_texttop":"Sz\u00f6veg tetej\u00e9hez","image_align_bottom":"Lentre","image_align_middle":"K\u00f6z\u00e9pre","image_align_top":"Fentre","image_align_baseline":"Alapvonalhoz","image_align":"Igaz\u00edt\u00e1s","image_hspace":"V\u00edzszintes t\u00e1v","image_vspace":"F\u00fcgg\u0151leges t\u00e1v","image_dimensions":"M\u00e9retek","image_alt":"K\u00e9p le\u00edr\u00e1s","image_list":"K\u00e9p lista","image_border":"Keret","image_src":"K\u00e9p URL","image_title":"K\u00e9p besz\u00far\u00e1sa/szerkeszt\u00e9se","charmap_title":"Speci\u00e1lis karakter v\u00e1laszt\u00e1sa","colorpicker_name":"N\u00e9v:","colorpicker_color":"Sz\u00edn:","colorpicker_named_title":"Elnevezett sz\u00ednek","colorpicker_named_tab":"Elnevezett","colorpicker_palette_title":"Paletta sz\u00ednek","colorpicker_palette_tab":"Paletta","colorpicker_picker_title":"Sz\u00ednv\u00e1laszt\u00f3","colorpicker_picker_tab":"V\u00e1laszt\u00f3","colorpicker_title":"Sz\u00ednv\u00e1laszt\u00e1s","code_wordwrap":"Sz\u00f6veg t\u00f6rdel\u00e9se","code_title":"HTML forr\u00e1s szerkeszt\u00e9se","anchor_name":"Horgonyn\u00e9v","anchor_title":"Horgony besz\u00far\u00e1sa/szerkeszt\u00e9se","about_loaded":"Bet\u00f6lt\u00f6tt pluginok","about_version":"Verzi\u00f3","about_author":"Szerz\u0151","about_plugin":"Plugin","about_plugins":"Pluginok","about_license":"Licensz","about_help":"Seg\u00edts\u00e9g","about_general":"R\u00f3lunk","about_title":"A TinyMCE-r\u0151l","charmap_usage":"A navig\u00e1l\u00e1shoz haszn\u00e1ld a bal \u00e9s jobb oldali nyilat.","anchor_invalid":"Adjon meg egy helyes horgony nevet.","accessibility_help":"El\u00e9rhet\u0151s\u00e9g s\u00fag\u00f3","accessibility_usage_title":"\u00c1ltal\u00e1nos haszn\u00e1lat","invalid_color_value":"\u00c9rv\u00e9nytelen sz\u00edn \u00e9rt\u00e9k"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja.js
new file mode 100755
index 00000000..f5533c54
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.advanced',{"underline_desc":"\u4e0b\u7dda (Ctrl+U)","italic_desc":"\u659c\u4f53 (Ctrl+I)","bold_desc":"\u592a\u5b57 (Ctrl+B)",dd:"\u8a9e\u53e5\u306e\u8aac\u660e",dt:"\u8a9e\u53e5\u306e\u5b9a\u7fa9",samp:"\u30b3\u30fc\u30c9\u306e\u4f8b",code:"\u30b3\u30fc\u30c9",blockquote:"\u5f15\u7528",h6:"\u898b\u51fa\u30576",h5:"\u898b\u51fa\u30575",h4:"\u898b\u51fa\u30574",h3:"\u898b\u51fa\u30573",h2:"\u898b\u51fa\u30572",h1:"\u898b\u51fa\u30571",pre:"\u6574\u5f62\u6e08\u307f",address:"\u4f4f\u6240",div:"div\u8981\u7d20",paragraph:"\u6bb5\u843d",block:"\u66f8\u5f0f",fontdefault:"\u30d5\u30a9\u30f3\u30c8","font_size":"\u30d5\u30a9\u30f3\u30c8\u306e\u5927\u304d\u3055","style_select":"\u30b9\u30bf\u30a4\u30eb","more_colors":"\u3055\u3089\u306b\u8272\u3092\u4f7f\u7528...","toolbar_focus":"\u30c4\u30fc\u30eb\u30dc\u30bf\u30f3\u3078\u79fb\u52d5 - Alt Q, \u30a8\u30c7\u30a3\u30bf\u306b\u79fb\u52d5 - Alt-Z, \u8981\u7d20\u306e\u30d1\u30b9\u3078\u79fb\u52d5 - Alt-X",newdocument:"\u672c\u5f53\u306b\u3059\u3079\u3066\u306e\u5185\u5bb9\u3092\u6d88\u53bb\u3057\u3066\u3088\u3044\u3067\u3059\u304b?",path:"\u30d1\u30b9","clipboard_msg":"\u30b3\u30d4\u30fc/\u5207\u308a\u53d6\u308a/\u8cbc\u308a\u4ed8\u3051\u306fMozilla\u3068Firefox\u3067\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\n\u3053\u306e\u554f\u984c\u306e\u8a73\u7d30\u3092\u77e5\u308a\u305f\u3044\u3067\u3059\u304b?","blockquote_desc":"\u5f15\u7528\u30d6\u30ed\u30c3\u30af","help_desc":"\u30d8\u30eb\u30d7","newdocument_desc":"\u65b0\u3057\u3044\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8","image_props_desc":"\u753b\u50cf\u306e\u5c5e\u6027","paste_desc":"\u8cbc\u308a\u4ed8\u3051","copy_desc":"\u30b3\u30d4\u30fc","cut_desc":"\u5207\u308a\u53d6\u308a","anchor_desc":"\u30a2\u30f3\u30ab\u30fc\u306e\u633f\u5165/\u7de8\u96c6","visualaid_desc":"\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u3068\u975e\u8868\u793a\u8981\u7d20\u306e\u8868\u793a\u3092\u5207\u66ff","charmap_desc":"\u7279\u6b8a\u6587\u5b57","backcolor_desc":"\u80cc\u666f\u306e\u8272","forecolor_desc":"\u6587\u5b57\u306e\u8272","custom1_desc":"\u8aac\u660e\u6587\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002","removeformat_desc":"\u66f8\u5f0f\u306e\u524a\u9664","hr_desc":"\u6c34\u5e73\u7dda\u3092\u633f\u5165","sup_desc":"\u4e0a\u4ed8\u304d\u6587\u5b57","sub_desc":"\u4e0b\u4ed8\u304d\u6587\u5b57","code_desc":"HTML\u306e\u30bd\u30fc\u30b9\u3092\u7de8\u96c6","cleanup_desc":"\u4e71\u96d1\u306a\u30b3\u30fc\u30c9\u3092\u6574\u5f62","image_desc":"\u753b\u50cf\u306e\u633f\u5165/\u7de8\u96c6","unlink_desc":"\u30ea\u30f3\u30af\u3092\u89e3\u9664","link_desc":"\u30ea\u30f3\u30af\u306e\u633f\u5165/\u7de8\u96c6","redo_desc":"\u3084\u308a\u76f4\u3059 (Ctrl+Y)","undo_desc":"\u5143\u306b\u623b\u3059 (Ctrl+Z)","indent_desc":"\u5b57\u4e0b\u3052\u3092\u5897\u3084\u3059","outdent_desc":"\u5b57\u4e0b\u3052\u3092\u6e1b\u3089\u3059","numlist_desc":"\u756a\u53f7\u3064\u304d\u30ea\u30b9\u30c8","bullist_desc":"\u756a\u53f7\u306a\u3057\u30ea\u30b9\u30c8","justifyfull_desc":"\u5747\u7b49\u5272\u4ed8","justifyright_desc":"\u53f3\u63c3\u3048","justifycenter_desc":"\u4e2d\u592e\u63c3\u3048","justifyleft_desc":"\u5de6\u63c3\u3048","striketrough_desc":"\u53d6\u308a\u6d88\u3057\u7dda","help_shortcut":"ALT-F10 \u3067\u30c4\u30fc\u30eb\u30d0\u30fc\u3001ALT-0 \u3067\u30d8\u30eb\u30d7","rich_text_area":"\u30ea\u30c3\u30c1\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2","shortcuts_desc":"\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306e\u30d8\u30eb\u30d7",toolbar:"\u30c4\u30fc\u30eb\u30d0\u30fc","anchor_delta_height":"","anchor_delta_width":"","charmap_delta_height":"","charmap_delta_width":"","colorpicker_delta_height":"","colorpicker_delta_width":"","link_delta_height":"","link_delta_width":"","image_delta_height":"","image_delta_width":""}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja_dlg.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja_dlg.js
new file mode 100644
index 00000000..234fb71a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/langs/ja_dlg.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.advanced_dlg',{"link_list":"\u30ea\u30f3\u30af\u306e\u4e00\u89a7","link_is_external":"\u5165\u529b\u3057\u305fURL\u306f\u5916\u90e8\u306e\u30ea\u30f3\u30af\u306e\u3088\u3046\u3067\u3059\u3002\u30ea\u30f3\u30af\u306b http:// \u3092\u8ffd\u52a0\u3057\u307e\u3059\u304b?","link_is_email":"\u5165\u529b\u3057\u305fURL\u306f\u96fb\u5b50\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u3088\u3046\u3067\u3059\u3002\u30ea\u30f3\u30af\u306b mailto: \u3092\u8ffd\u52a0\u3057\u307e\u3059\u304b?","link_titlefield":"\u30bf\u30a4\u30c8\u30eb","link_target_blank":"\u65b0\u3057\u3044\u30a6\u30a4\u30f3\u30c9\u30a6\u3067\u958b\u304f","link_target_same":"\u540c\u3058\u30a6\u30a4\u30f3\u30c9\u30a6\u3067\u958b\u304f","link_target":"\u30bf\u30fc\u30b2\u30c3\u30c8","link_url":"\u30ea\u30f3\u30af\u306eURL","link_title":"\u30ea\u30f3\u30af\u306e\u633f\u5165\u3084\u7de8\u96c6","image_align_right":"\u53f3\u63c3\u3048","image_align_left":"\u5de6\u63c3\u3048","image_align_textbottom":"\u30c6\u30ad\u30b9\u30c8\u306e\u4e0b\u7aef\u63c3\u3048","image_align_texttop":"\u30c6\u30ad\u30b9\u30c8\u306e\u4e0a\u7aef\u63c3\u3048","image_align_bottom":"\u4e0b\u63c3\u3048","image_align_middle":"\u4e2d\u592e\u63c3\u3048","image_align_top":"\u4e0a\u63c3\u3048","image_align_baseline":"\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u63c3\u3048","image_align":"\u914d\u7f6e","image_hspace":"\u5de6\u53f3\u306e\u4f59\u767d","image_vspace":"\u4e0a\u4e0b\u306e\u4f59\u767d","image_dimensions":"\u5bf8\u6cd5","image_alt":"\u753b\u50cf\u306e\u8aac\u660e","image_list":"\u753b\u50cf\u306e\u4e00\u89a7","image_border":"\u67a0\u7dda","image_src":"\u753b\u50cf\u306eURL","image_title":"\u753b\u50cf\u306e\u633f\u5165\u3084\u7de8\u96c6","charmap_title":"\u7279\u6b8a\u6587\u5b57","colorpicker_name":"\u540d\u524d:","colorpicker_color":"\u8272:","colorpicker_named_title":"\u5b9a\u7fa9\u6e08\u307f\u306e\u8272","colorpicker_named_tab":"\u5b9a\u7fa9\u6e08\u307f","colorpicker_palette_title":"\u30d1\u30ec\u30c3\u30c8\u306e\u8272","colorpicker_palette_tab":"\u30d1\u30ec\u30c3\u30c8","colorpicker_picker_title":"\u8272\u9078\u629e","colorpicker_picker_tab":"\u9078\u629e","colorpicker_title":"\u8272\u3092\u9078\u629e","code_wordwrap":"\u884c\u306e\u6298\u308a\u8fd4\u3057","code_title":"HTML\u306e\u30bd\u30fc\u30b9\u30a8\u30c7\u30a3\u30bf","anchor_name":"\u30a2\u30f3\u30ab\u30fc\u306e\u540d\u524d","anchor_title":"\u30a2\u30f3\u30ab\u30fc\u306e\u633f\u5165\u3084\u7de8\u96c6","about_loaded":"\u8aad\u307f\u8fbc\u307f\u6e08\u307f\u306e\u30d7\u30e9\u30b0\u30a4\u30f3","about_version":"\u30d0\u30fc\u30b8\u30e7\u30f3","about_author":"\u4f5c\u6210\u8005","about_plugin":"\u30d7\u30e9\u30b0\u30a4\u30f3","about_plugins":"\u30d7\u30e9\u30b0\u30a4\u30f3","about_license":"\u30e9\u30a4\u30bb\u30f3\u30b9","about_help":"\u30d8\u30eb\u30d7","about_general":"TinyMCE\u306b\u3064\u3044\u3066","about_title":"TinyMCE\u306b\u3064\u3044\u3066","charmap_usage":"\u5de6\u53f3\u306e\u30ab\u30fc\u30bd\u30eb\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002","anchor_invalid":"\u6709\u52b9\u306a\u30a2\u30f3\u30ab\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002","accessibility_help":"\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3\u306e\u30d8\u30eb\u30d7","accessibility_usage_title":"\u5168\u822c\u7684\u306a\u4f7f\u3044\u65b9","invalid_color_value":"\u7121\u52b9\u306a\u5024"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/link.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/link.htm
new file mode 100755
index 00000000..5d9dea9b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/link.htm
@@ -0,0 +1,57 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advanced_dlg.link_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
+ <script type="text/javascript" src="../../utils/form_utils.js"></script>
+ <script type="text/javascript" src="../../utils/validate.js"></script>
+ <script type="text/javascript" src="js/link.js"></script>
+</head>
+<body id="link" style="display: none">
+<form onsubmit="LinkDialog.update();return false;" action="#">
+ <div class="tabs">
+ <ul>
+ <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.link_title}</a></span></li>
+ </ul>
+ </div>
+
+ <div class="panel_wrapper">
+ <div id="general_panel" class="panel current">
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="nowrap"><label for="href">{#advanced_dlg.link_url}</label></td>
+ <td><table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="href" name="href" type="text" class="mceFocus" value="" style="width: 200px" onchange="LinkDialog.checkPrefix(this);" /></td>
+ <td id="hrefbrowsercontainer">&nbsp;</td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="link_list">{#advanced_dlg.link_list}</label></td>
+ <td><select id="link_list" name="link_list" onchange="document.getElementById('href').value=this.options[this.selectedIndex].value;"></select></td>
+ </tr>
+ <tr>
+ <td><label id="targetlistlabel" for="targetlist">{#advanced_dlg.link_target}</label></td>
+ <td><select id="target_list" name="target_list"></select></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="linktitle">{#advanced_dlg.link_titlefield}</label></td>
+ <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px" /></td>
+ </tr>
+ <tr>
+ <td><label for="class_list">{#class_name}</label></td>
+ <td><select id="class_list" name="class_list"></select></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ <div class="mceActionPanel">
+ <input type="submit" id="insert" name="insert" value="{#insert}" />
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
+ </div>
+</form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/shortcuts.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/shortcuts.htm
new file mode 100644
index 00000000..20ec2f5a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/shortcuts.htm
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>{#advanced_dlg.accessibility_help}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript">tinyMCEPopup.requireLangPack();</script>
+ </head>
+ <body id="content">
+ <h1>{#advanced_dlg.accessibility_usage_title}</h1>
+ <h2>Toolbars</h2>
+ <p>Press ALT-F10 to move focus to the toolbars. Navigate through the buttons using the arrow keys.
+ Press enter to activate a button and return focus to the editor.
+ Press escape to return focus to the editor without performing any actions.</p>
+
+ <h2>Status Bar</h2>
+ <p>To access the editor status bar, press ALT-F11. Use the left and right arrow keys to navigate between elements in the path.
+ Press enter or space to select an element. Press escape to return focus to the editor without changing the selection.</p>
+
+ <h2>Context Menu</h2>
+ <p>Press shift-F10 to activate the context menu. Use the up and down arrow keys to move between menu items. To open sub-menus press the right arrow key.
+ To close submenus press the left arrow key. Press escape to close the context menu.</p>
+
+ <h1>Keyboard Shortcuts</h1>
+ <table>
+ <thead>
+ <tr>
+ <th>Keystroke</th>
+ <th>Function</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Control-B</td><td>Bold</td>
+ </tr>
+ <tr>
+ <td>Control-I</td><td>Italic</td>
+ </tr>
+ <tr>
+ <td>Control-Z</td><td>Undo</td>
+ </tr>
+ <tr>
+ <td>Control-Y</td><td>Redo</td>
+ </tr>
+ </tbody>
+ </table>
+ </body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/content.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/content.css
new file mode 100644
index 00000000..2fd94a1f
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/content.css
@@ -0,0 +1,50 @@
+body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;}
+body {background:#FFF;}
+body.mceForceColors {background:#FFF; color:#000;}
+body.mceBrowserDefaults {background:transparent; color:inherit; font-size:inherit; font-family:inherit;}
+h1 {font-size: 2em}
+h2 {font-size: 1.5em}
+h3 {font-size: 1.17em}
+h4 {font-size: 1em}
+h5 {font-size: .83em}
+h6 {font-size: .75em}
+.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;}
+a.mceItemAnchor {display:inline-block; -webkit-user-select:all; -webkit-user-modify:read-only; -moz-user-select:all; -moz-user-modify:read-only; width:11px !important; height:11px !important; background:url(img/items.gif) no-repeat center center}
+span.mceItemNbsp {background: #DDD}
+td.mceSelected, th.mceSelected {background-color:#3399ff !important}
+img {border:0;}
+table, img, hr, .mceItemAnchor {cursor:default}
+table td, table th {cursor:text}
+ins {border-bottom:1px solid green; text-decoration: none; color:green}
+del {color:red; text-decoration:line-through}
+cite {border-bottom:1px dashed blue}
+acronym {border-bottom:1px dotted #CCC; cursor:help}
+abbr {border-bottom:1px dashed #CCC; cursor:help}
+
+/* IE */
+* html body {
+scrollbar-3dlight-color:#F0F0EE;
+scrollbar-arrow-color:#676662;
+scrollbar-base-color:#F0F0EE;
+scrollbar-darkshadow-color:#DDD;
+scrollbar-face-color:#E0E0DD;
+scrollbar-highlight-color:#F0F0EE;
+scrollbar-shadow-color:#F0F0EE;
+scrollbar-track-color:#F5F5F5;
+}
+
+img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px}
+font[face=mceinline] {font-family:inherit !important}
+*[contentEditable]:focus {outline:0}
+
+.mceItemMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc}
+.mceItemShockWave {background-image:url(../../img/shockwave.gif)}
+.mceItemFlash {background-image:url(../../img/flash.gif)}
+.mceItemQuickTime {background-image:url(../../img/quicktime.gif)}
+.mceItemWindowsMedia {background-image:url(../../img/windowsmedia.gif)}
+.mceItemRealMedia {background-image:url(../../img/realmedia.gif)}
+.mceItemVideo {background-image:url(../../img/video.gif)}
+.mceItemAudio {background-image:url(../../img/video.gif)}
+.mceItemEmbeddedAudio {background-image:url(../../img/video.gif)}
+.mceItemIframe {background-image:url(../../img/iframe.gif)}
+.mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../../img/pagebreak.gif) no-repeat center top;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/dialog.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/dialog.css
new file mode 100644
index 00000000..879786fc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/dialog.css
@@ -0,0 +1,118 @@
+/* Generic */
+body {
+font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px;
+scrollbar-3dlight-color:#F0F0EE;
+scrollbar-arrow-color:#676662;
+scrollbar-base-color:#F0F0EE;
+scrollbar-darkshadow-color:#DDDDDD;
+scrollbar-face-color:#E0E0DD;
+scrollbar-highlight-color:#F0F0EE;
+scrollbar-shadow-color:#F0F0EE;
+scrollbar-track-color:#F5F5F5;
+background:#F0F0EE;
+padding:0;
+margin:8px 8px 0 8px;
+}
+
+html {background:#F0F0EE;}
+td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
+textarea {resize:none;outline:none;}
+a:link, a:visited {color:black;}
+a:hover {color:#2B6FB6;}
+.nowrap {white-space: nowrap}
+
+/* Forms */
+fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;}
+legend {color:#2B6FB6; font-weight:bold;}
+label.msg {display:none;}
+label.invalid {color:#EE0000; display:inline;}
+input.invalid {border:1px solid #EE0000;}
+input {background:#FFF; border:1px solid #CCC;}
+input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
+input, select, textarea {border:1px solid #808080;}
+input.radio {border:1px none #000000; background:transparent; vertical-align:middle;}
+input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;}
+.input_noborder {border:0;}
+
+/* Buttons */
+#insert, #cancel, input.button, .updateButton {
+border:0; margin:0; padding:0;
+font-weight:bold;
+width:94px; height:26px;
+background:url(img/buttons.png) 0 -26px;
+cursor:pointer;
+padding-bottom:2px;
+float:left;
+}
+
+#insert {background:url(img/buttons.png) 0 -52px}
+#cancel {background:url(img/buttons.png) 0 0; float:right}
+
+/* Browse */
+a.pickcolor, a.browse {text-decoration:none}
+a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;}
+.mceOldBoxModel a.browse span {width:22px; height:20px;}
+a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;}
+a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+a.browse:hover span.disabled {border:1px solid white; background-color:transparent;}
+a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;}
+.mceOldBoxModel a.pickcolor span {width:21px; height:17px;}
+a.pickcolor:hover span {background-color:#B2BBD0;}
+a.pickcolor:hover span.disabled {}
+
+/* Charmap */
+table.charmap {border:1px solid #AAA; text-align:center}
+td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;}
+#charmap a {display:block; color:#000; text-decoration:none; border:0}
+#charmap a:hover {background:#CCC;color:#2B6FB6}
+#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center}
+#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center}
+
+/* Source */
+.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;}
+.mceActionPanel {margin-top:5px;}
+
+/* Tabs classes */
+.tabs {width:100%; height:18px; line-height:normal; background:url(img/tabs.gif) repeat-x 0 -72px;}
+.tabs ul {margin:0; padding:0; list-style:none;}
+.tabs li {float:left; background:url(img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;}
+.tabs li.current {background:url(img/tabs.gif) no-repeat 0 -18px; margin-right:2px;}
+.tabs span {float:left; display:block; background:url(img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;}
+.tabs .current span {background:url(img/tabs.gif) no-repeat right -54px;}
+.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;}
+.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;}
+
+/* Panels */
+.panel_wrapper div.panel {display:none;}
+.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;}
+.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;}
+
+/* Columns */
+.column {float:left;}
+.properties {width:100%;}
+.properties .column1 {}
+.properties .column2 {text-align:left;}
+
+/* Titles */
+h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;}
+h3 {font-size:14px;}
+.title {font-size:12px; font-weight:bold; color:#2B6FB6;}
+
+/* Dialog specific */
+#link .panel_wrapper, #link div.current {height:125px;}
+#image .panel_wrapper, #image div.current {height:200px;}
+#plugintable thead {font-weight:bold; background:#DDD;}
+#plugintable, #about #plugintable td {border:1px solid #919B9C;}
+#plugintable {width:96%; margin-top:10px;}
+#pluginscontainer {height:290px; overflow:auto;}
+#colorpicker #preview {display:inline-block; padding-left:40px; height:14px; border:1px solid black; margin-left:5px; margin-right: 5px}
+#colorpicker #previewblock {position: relative; top: -3px; padding-left:5px; padding-top: 0px; display:inline}
+#colorpicker #preview_wrapper { text-align:center; padding-top:4px; white-space: nowrap}
+#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;}
+#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;}
+#colorpicker #light div {overflow:hidden;}
+#colorpicker .panel_wrapper div.current {height:175px;}
+#colorpicker #namedcolors {width:150px;}
+#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;}
+#colorpicker #colornamecontainer {margin-top:5px;}
+#colorpicker #picker_panel fieldset {margin:auto;width:325px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/buttons.png b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/buttons.png
new file mode 100644
index 00000000..1e53560e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/buttons.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/items.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/items.gif
new file mode 100644
index 00000000..d2f93671
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/items.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif
new file mode 100644
index 00000000..85e31dfb
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_check.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_check.gif
new file mode 100644
index 00000000..adfdddcc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/menu_check.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/progress.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/progress.gif
new file mode 100644
index 00000000..5bb90fd6
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/progress.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/tabs.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/tabs.gif
new file mode 100644
index 00000000..06812cb4
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/img/tabs.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/ui.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/ui.css
new file mode 100644
index 00000000..77083f31
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/default/ui.css
@@ -0,0 +1,219 @@
+/* Reset */
+.defaultSkin table, .defaultSkin tbody, .defaultSkin a, .defaultSkin img, .defaultSkin tr, .defaultSkin div, .defaultSkin td, .defaultSkin iframe, .defaultSkin span, .defaultSkin *, .defaultSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left}
+.defaultSkin a:hover, .defaultSkin a:link, .defaultSkin a:visited, .defaultSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000}
+.defaultSkin table td {vertical-align:middle}
+
+/* Containers */
+.defaultSkin table {direction:ltr;background:transparent}
+.defaultSkin iframe {display:block;}
+.defaultSkin .mceToolbar {height:26px}
+.defaultSkin .mceLeft {text-align:left}
+.defaultSkin .mceRight {text-align:right}
+
+/* External */
+.defaultSkin .mceExternalToolbar {position:absolute; border:1px solid #CCC; border-bottom:0; display:none;}
+.defaultSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;}
+.defaultSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0}
+
+/* Layout */
+.defaultSkin table.mceLayout {border:0; border-left:1px solid #CCC; border-right:1px solid #CCC}
+.defaultSkin table.mceLayout tr.mceFirst td {border-top:1px solid #CCC}
+.defaultSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #CCC}
+.defaultSkin table.mceToolbar, .defaultSkin tr.mceFirst .mceToolbar tr td, .defaultSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0;}
+.defaultSkin td.mceToolbar {background:#F0F0EE; padding-top:1px; vertical-align:top}
+.defaultSkin .mceIframeContainer {border-top:1px solid #CCC; border-bottom:1px solid #CCC}
+.defaultSkin .mceStatusbar {background:#F0F0EE; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px}
+.defaultSkin .mceStatusbar div {float:left; margin:2px}
+.defaultSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0}
+.defaultSkin .mceStatusbar a:hover {text-decoration:underline}
+.defaultSkin table.mceToolbar {margin-left:3px}
+.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; width:20px; height:20px}
+.defaultSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
+.defaultSkin td.mceCenter {text-align:center;}
+.defaultSkin td.mceCenter table {margin:0 auto; text-align:left;}
+.defaultSkin td.mceRight table {margin:0 0 0 auto;}
+
+/* Button */
+.defaultSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px; margin-right:1px}
+.defaultSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0}
+.defaultSkin a.mceButtonActive, .defaultSkin a.mceButtonSelected {border:1px solid #0A246A; background-color:#C2CBE0}
+.defaultSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+.defaultSkin .mceButtonLabeled {width:auto}
+.defaultSkin .mceButtonLabeled span.mceIcon {float:left}
+.defaultSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica}
+.defaultSkin .mceButtonDisabled .mceButtonLabel {color:#888}
+
+/* Separator */
+.defaultSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:2px 2px 0 4px}
+
+/* ListBox */
+.defaultSkin .mceListBox, .defaultSkin .mceListBox a {display:block}
+.defaultSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; border:1px solid #CCC; border-right:0; background:#FFF; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden}
+.defaultSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/icons.gif) -741px 0; margin-right:2px; border:1px solid #CCC;}
+.defaultSkin table.mceListBoxEnabled:hover .mceText, .defaultSkin .mceListBoxHover .mceText, .defaultSkin .mceListBoxSelected .mceText {border:1px solid #A2ABC0; border-right:0; background:#FFF}
+.defaultSkin table.mceListBoxEnabled:hover .mceOpen, .defaultSkin .mceListBoxHover .mceOpen, .defaultSkin .mceListBoxSelected .mceOpen {background-color:#FFF; border:1px solid #A2ABC0}
+.defaultSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;}
+.defaultSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden}
+.defaultSkin .mceOldBoxModel .mceListBox .mceText {height:22px}
+.defaultSkin .mceOldBoxModel .mceListBox .mceOpen {width:11px; height:22px;}
+.defaultSkin select.mceNativeListBox {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:7pt; background:#F0F0EE; border:1px solid gray; margin-right:2px;}
+
+/* SplitButton */
+.defaultSkin .mceSplitButton {width:32px; height:20px; direction:ltr}
+.defaultSkin .mceSplitButton a, .defaultSkin .mceSplitButton span {height:20px; display:block}
+.defaultSkin .mceSplitButton a.mceAction {width:20px; border:1px solid #F0F0EE; border-right:0;}
+.defaultSkin .mceSplitButton span.mceAction {width:20px; background-image:url(../../img/icons.gif);}
+.defaultSkin .mceSplitButton a.mceOpen {width:9px; background:url(../../img/icons.gif) -741px 0; border:1px solid #F0F0EE;}
+.defaultSkin .mceSplitButton span.mceOpen {display:none}
+.defaultSkin table.mceSplitButtonEnabled:hover a.mceAction, .defaultSkin .mceSplitButtonHover a.mceAction, .defaultSkin .mceSplitButtonSelected a.mceAction {border:1px solid #0A246A; border-right:0; background-color:#B2BBD0}
+.defaultSkin table.mceSplitButtonEnabled:hover a.mceOpen, .defaultSkin .mceSplitButtonHover a.mceOpen, .defaultSkin .mceSplitButtonSelected a.mceOpen {background-color:#B2BBD0; border:1px solid #0A246A;}
+.defaultSkin .mceSplitButtonDisabled .mceAction, .defaultSkin .mceSplitButtonDisabled a.mceOpen {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+.defaultSkin .mceSplitButtonActive a.mceAction {border:1px solid #0A246A; background-color:#C2CBE0}
+.defaultSkin .mceSplitButtonActive a.mceOpen {border-left:0;}
+
+/* ColorSplitButton */
+.defaultSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray}
+.defaultSkin .mceColorSplitMenu td {padding:2px}
+.defaultSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080}
+.defaultSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px}
+.defaultSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF}
+.defaultSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2}
+.defaultSkin a.mceMoreColors:hover {border:1px solid #0A246A}
+.defaultSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a}
+.defaultSkin .mce_forecolor span.mceAction, .defaultSkin .mce_backcolor span.mceAction {overflow:hidden; height:16px}
+
+/* Menu */
+.defaultSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D4D0C8; direction:ltr}
+.defaultSkin .mceNoIcons span.mceIcon {width:0;}
+.defaultSkin .mceNoIcons a .mceText {padding-left:10px}
+.defaultSkin .mceMenu table {background:#FFF}
+.defaultSkin .mceMenu a, .defaultSkin .mceMenu span, .defaultSkin .mceMenu {display:block}
+.defaultSkin .mceMenu td {height:20px}
+.defaultSkin .mceMenu a {position:relative;padding:3px 0 4px 0}
+.defaultSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block}
+.defaultSkin .mceMenu span.mceText, .defaultSkin .mceMenu .mcePreview {font-size:11px}
+.defaultSkin .mceMenu pre.mceText {font-family:Monospace}
+.defaultSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;}
+.defaultSkin .mceMenu .mceMenuItemEnabled a:hover, .defaultSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3}
+.defaultSkin td.mceMenuItemSeparator {background:#DDD; height:1px}
+.defaultSkin .mceMenuItemTitle a {border:0; background:#EEE; border-bottom:1px solid #DDD}
+.defaultSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px}
+.defaultSkin .mceMenuItemDisabled .mceText {color:#888}
+.defaultSkin .mceMenuItemSelected .mceIcon {background:url(img/menu_check.gif)}
+.defaultSkin .mceNoIcons .mceMenuItemSelected a {background:url(img/menu_arrow.gif) no-repeat -6px center}
+.defaultSkin .mceMenu span.mceMenuLine {display:none}
+.defaultSkin .mceMenuItemSub a {background:url(img/menu_arrow.gif) no-repeat top right;}
+.defaultSkin .mceMenuItem td, .defaultSkin .mceMenuItem th {line-height: normal}
+
+/* Progress,Resize */
+.defaultSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50); background:#FFF}
+.defaultSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px}
+
+/* Rtl */
+.mceRtl .mceListBox .mceText {text-align: right; padding: 0 4px 0 0}
+.mceRtl .mceMenuItem .mceText {text-align: right}
+
+/* Formats */
+.defaultSkin .mce_formatPreview a {font-size:10px}
+.defaultSkin .mce_p span.mceText {}
+.defaultSkin .mce_address span.mceText {font-style:italic}
+.defaultSkin .mce_pre span.mceText {font-family:monospace}
+.defaultSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em}
+.defaultSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em}
+.defaultSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em}
+.defaultSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em}
+.defaultSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em}
+.defaultSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em}
+
+/* Theme */
+.defaultSkin span.mce_bold {background-position:0 0}
+.defaultSkin span.mce_italic {background-position:-60px 0}
+.defaultSkin span.mce_underline {background-position:-140px 0}
+.defaultSkin span.mce_strikethrough {background-position:-120px 0}
+.defaultSkin span.mce_undo {background-position:-160px 0}
+.defaultSkin span.mce_redo {background-position:-100px 0}
+.defaultSkin span.mce_cleanup {background-position:-40px 0}
+.defaultSkin span.mce_bullist {background-position:-20px 0}
+.defaultSkin span.mce_numlist {background-position:-80px 0}
+.defaultSkin span.mce_justifyleft {background-position:-460px 0}
+.defaultSkin span.mce_justifyright {background-position:-480px 0}
+.defaultSkin span.mce_justifycenter {background-position:-420px 0}
+.defaultSkin span.mce_justifyfull {background-position:-440px 0}
+.defaultSkin span.mce_anchor {background-position:-200px 0}
+.defaultSkin span.mce_indent {background-position:-400px 0}
+.defaultSkin span.mce_outdent {background-position:-540px 0}
+.defaultSkin span.mce_link {background-position:-500px 0}
+.defaultSkin span.mce_unlink {background-position:-640px 0}
+.defaultSkin span.mce_sub {background-position:-600px 0}
+.defaultSkin span.mce_sup {background-position:-620px 0}
+.defaultSkin span.mce_removeformat {background-position:-580px 0}
+.defaultSkin span.mce_newdocument {background-position:-520px 0}
+.defaultSkin span.mce_image {background-position:-380px 0}
+.defaultSkin span.mce_help {background-position:-340px 0}
+.defaultSkin span.mce_code {background-position:-260px 0}
+.defaultSkin span.mce_hr {background-position:-360px 0}
+.defaultSkin span.mce_visualaid {background-position:-660px 0}
+.defaultSkin span.mce_charmap {background-position:-240px 0}
+.defaultSkin span.mce_paste {background-position:-560px 0}
+.defaultSkin span.mce_copy {background-position:-700px 0}
+.defaultSkin span.mce_cut {background-position:-680px 0}
+.defaultSkin span.mce_blockquote {background-position:-220px 0}
+.defaultSkin .mce_forecolor span.mceAction {background-position:-720px 0}
+.defaultSkin .mce_backcolor span.mceAction {background-position:-760px 0}
+.defaultSkin span.mce_forecolorpicker {background-position:-720px 0}
+.defaultSkin span.mce_backcolorpicker {background-position:-760px 0}
+
+/* Plugins */
+.defaultSkin span.mce_advhr {background-position:-0px -20px}
+.defaultSkin span.mce_ltr {background-position:-20px -20px}
+.defaultSkin span.mce_rtl {background-position:-40px -20px}
+.defaultSkin span.mce_emotions {background-position:-60px -20px}
+.defaultSkin span.mce_fullpage {background-position:-80px -20px}
+.defaultSkin span.mce_fullscreen {background-position:-100px -20px}
+.defaultSkin span.mce_iespell {background-position:-120px -20px}
+.defaultSkin span.mce_insertdate {background-position:-140px -20px}
+.defaultSkin span.mce_inserttime {background-position:-160px -20px}
+.defaultSkin span.mce_absolute {background-position:-180px -20px}
+.defaultSkin span.mce_backward {background-position:-200px -20px}
+.defaultSkin span.mce_forward {background-position:-220px -20px}
+.defaultSkin span.mce_insert_layer {background-position:-240px -20px}
+.defaultSkin span.mce_insertlayer {background-position:-260px -20px}
+.defaultSkin span.mce_movebackward {background-position:-280px -20px}
+.defaultSkin span.mce_moveforward {background-position:-300px -20px}
+.defaultSkin span.mce_media {background-position:-320px -20px}
+.defaultSkin span.mce_nonbreaking {background-position:-340px -20px}
+.defaultSkin span.mce_pastetext {background-position:-360px -20px}
+.defaultSkin span.mce_pasteword {background-position:-380px -20px}
+.defaultSkin span.mce_selectall {background-position:-400px -20px}
+.defaultSkin span.mce_preview {background-position:-420px -20px}
+.defaultSkin span.mce_print {background-position:-440px -20px}
+.defaultSkin span.mce_cancel {background-position:-460px -20px}
+.defaultSkin span.mce_save {background-position:-480px -20px}
+.defaultSkin span.mce_replace {background-position:-500px -20px}
+.defaultSkin span.mce_search {background-position:-520px -20px}
+.defaultSkin span.mce_styleprops {background-position:-560px -20px}
+.defaultSkin span.mce_table {background-position:-580px -20px}
+.defaultSkin span.mce_cell_props {background-position:-600px -20px}
+.defaultSkin span.mce_delete_table {background-position:-620px -20px}
+.defaultSkin span.mce_delete_col {background-position:-640px -20px}
+.defaultSkin span.mce_delete_row {background-position:-660px -20px}
+.defaultSkin span.mce_col_after {background-position:-680px -20px}
+.defaultSkin span.mce_col_before {background-position:-700px -20px}
+.defaultSkin span.mce_row_after {background-position:-720px -20px}
+.defaultSkin span.mce_row_before {background-position:-740px -20px}
+.defaultSkin span.mce_merge_cells {background-position:-760px -20px}
+.defaultSkin span.mce_table_props {background-position:-980px -20px}
+.defaultSkin span.mce_row_props {background-position:-780px -20px}
+.defaultSkin span.mce_split_cells {background-position:-800px -20px}
+.defaultSkin span.mce_template {background-position:-820px -20px}
+.defaultSkin span.mce_visualchars {background-position:-840px -20px}
+.defaultSkin span.mce_abbr {background-position:-860px -20px}
+.defaultSkin span.mce_acronym {background-position:-880px -20px}
+.defaultSkin span.mce_attribs {background-position:-900px -20px}
+.defaultSkin span.mce_cite {background-position:-920px -20px}
+.defaultSkin span.mce_del {background-position:-940px -20px}
+.defaultSkin span.mce_ins {background-position:-960px -20px}
+.defaultSkin span.mce_pagebreak {background-position:0 -40px}
+.defaultSkin span.mce_restoredraft {background-position:-20px -40px}
+.defaultSkin span.mce_spellchecker {background-position:-540px -20px}
+.defaultSkin span.mce_visualblocks {background-position: -40px -40px}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/content.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/content.css
new file mode 100644
index 00000000..cbce6c6a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/content.css
@@ -0,0 +1,24 @@
+body, td, pre { margin:8px;}
+body.mceForceColors {background:#FFF; color:#000;}
+h1 {font-size: 2em}
+h2 {font-size: 1.5em}
+h3 {font-size: 1.17em}
+h4 {font-size: 1em}
+h5 {font-size: .83em}
+h6 {font-size: .75em}
+.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;}
+a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(../default/img/items.gif) no-repeat 0 0;}
+span.mceItemNbsp {background: #DDD}
+td.mceSelected, th.mceSelected {background-color:#3399ff !important}
+img {border:0;}
+table, img, hr, .mceItemAnchor {cursor:default}
+table td, table th {cursor:text}
+ins {border-bottom:1px solid green; text-decoration: none; color:green}
+del {color:red; text-decoration:line-through}
+cite {border-bottom:1px dashed blue}
+acronym {border-bottom:1px dotted #CCC; cursor:help}
+abbr {border-bottom:1px dashed #CCC; cursor:help}
+
+img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px}
+font[face=mceinline] {font-family:inherit !important}
+*[contentEditable]:focus {outline:0}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/dialog.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/dialog.css
new file mode 100644
index 00000000..6d9fc8dd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/dialog.css
@@ -0,0 +1,106 @@
+/* Generic */
+body {
+font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px;
+background:#F0F0EE;
+color: black;
+padding:0;
+margin:8px 8px 0 8px;
+}
+
+html {background:#F0F0EE; color:#000;}
+td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
+textarea {resize:none;outline:none;}
+a:link, a:visited {color:black;background-color:transparent;}
+a:hover {color:#2B6FB6;background-color:transparent;}
+.nowrap {white-space: nowrap}
+
+/* Forms */
+fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;}
+legend {color:#2B6FB6; font-weight:bold;}
+label.msg {display:none;}
+label.invalid {color:#EE0000; display:inline;background-color:transparent;}
+input.invalid {border:1px solid #EE0000;background-color:transparent;}
+input {background:#FFF; border:1px solid #CCC;color:black;}
+input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
+input, select, textarea {border:1px solid #808080;}
+input.radio {border:1px none #000000; background:transparent; vertical-align:middle;}
+input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;}
+.input_noborder {border:0;}
+
+/* Buttons */
+#insert, #cancel, input.button, .updateButton {
+font-weight:bold;
+width:94px; height:23px;
+cursor:pointer;
+padding-bottom:2px;
+float:left;
+}
+
+#cancel {float:right}
+
+/* Browse */
+a.pickcolor, a.browse {text-decoration:none}
+a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;}
+.mceOldBoxModel a.browse span {width:22px; height:20px;}
+a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;}
+a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+a.browse:hover span.disabled {border:1px solid white; background-color:transparent;}
+a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;}
+.mceOldBoxModel a.pickcolor span {width:21px; height:17px;}
+a.pickcolor:hover span {background-color:#B2BBD0;}
+a.pickcolor:hover span.disabled {}
+
+/* Charmap */
+table.charmap {border:1px solid #AAA; text-align:center}
+td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;}
+#charmap a {display:block; color:#000; text-decoration:none; border:0}
+#charmap a:hover {background:#CCC;color:#2B6FB6}
+#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center}
+#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center}
+
+/* Source */
+.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;}
+.mceActionPanel {margin-top:5px;}
+
+/* Tabs classes */
+.tabs {width:100%; height:18px; line-height:normal;}
+.tabs ul {margin:0; padding:0; list-style:none;}
+.tabs li {float:left; border: 1px solid black; border-bottom:0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block; cursor:pointer;}
+.tabs li.current {font-weight: bold; margin-right:2px;}
+.tabs span {float:left; display:block; padding:0px 10px 0 0;}
+.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;}
+.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;}
+
+/* Panels */
+.panel_wrapper div.panel {display:none;}
+.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;}
+.panel_wrapper {border:1px solid #919B9C; padding:10px; padding-top:5px; clear:both; background:white;}
+
+/* Columns */
+.column {float:left;}
+.properties {width:100%;}
+.properties .column1 {}
+.properties .column2 {text-align:left;}
+
+/* Titles */
+h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;}
+h3 {font-size:14px;}
+.title {font-size:12px; font-weight:bold; color:#2B6FB6;}
+
+/* Dialog specific */
+#link .panel_wrapper, #link div.current {height:125px;}
+#image .panel_wrapper, #image div.current {height:200px;}
+#plugintable thead {font-weight:bold; background:#DDD;}
+#plugintable, #about #plugintable td {border:1px solid #919B9C;}
+#plugintable {width:96%; margin-top:10px;}
+#pluginscontainer {height:290px; overflow:auto;}
+#colorpicker #preview {display:inline-block; padding-left:40px; height:14px; border:1px solid black; margin-left:5px; margin-right: 5px}
+#colorpicker #previewblock {position: relative; top: -3px; padding-left:5px; padding-top: 0px; display:inline}
+#colorpicker #preview_wrapper { text-align:center; padding-top:4px; white-space: nowrap}
+#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;}
+#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;}
+#colorpicker #light div {overflow:hidden;}
+#colorpicker .panel_wrapper div.current {height:175px;}
+#colorpicker #namedcolors {width:150px;}
+#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;}
+#colorpicker #colornamecontainer {margin-top:5px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/ui.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/ui.css
new file mode 100644
index 00000000..effbbe15
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/highcontrast/ui.css
@@ -0,0 +1,106 @@
+/* Reset */
+.highcontrastSkin table, .highcontrastSkin tbody, .highcontrastSkin a, .highcontrastSkin img, .highcontrastSkin tr, .highcontrastSkin div, .highcontrastSkin td, .highcontrastSkin iframe, .highcontrastSkin span, .highcontrastSkin *, .highcontrastSkin .mceText {border:0; margin:0; padding:0; vertical-align:baseline; border-collapse:separate;}
+.highcontrastSkin a:hover, .highcontrastSkin a:link, .highcontrastSkin a:visited, .highcontrastSkin a:active {text-decoration:none; font-weight:normal; cursor:default;}
+.highcontrastSkin table td {vertical-align:middle}
+
+.highcontrastSkin .mceIconOnly {display: block !important;}
+
+/* External */
+.highcontrastSkin .mceExternalToolbar {position:absolute; border:1px solid; border-bottom:0; display:none; background-color: white;}
+.highcontrastSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;}
+.highcontrastSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px;}
+
+/* Layout */
+.highcontrastSkin table.mceLayout {border: 1px solid;}
+.highcontrastSkin .mceIframeContainer {border-top:1px solid; border-bottom:1px solid}
+.highcontrastSkin .mceStatusbar a:hover {text-decoration:underline}
+.highcontrastSkin .mceStatusbar {display:block; line-height:1.5em; overflow:visible;}
+.highcontrastSkin .mceStatusbar div {float:left}
+.highcontrastSkin .mceStatusbar a.mceResize {display:block; float:right; width:20px; height:20px; cursor:se-resize; outline:0}
+
+.highcontrastSkin .mceToolbar td { display: inline-block; float: left;}
+.highcontrastSkin .mceToolbar tr { display: block;}
+.highcontrastSkin .mceToolbar table { display: block; }
+
+/* Button */
+
+.highcontrastSkin .mceButton { display:block; margin: 2px; padding: 5px 10px;border: 1px solid; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; -ms-border-radius: 3px; height: 2em;}
+.highcontrastSkin .mceButton .mceVoiceLabel { height: 100%; vertical-align: center; line-height: 2em}
+.highcontrastSkin .mceButtonDisabled .mceVoiceLabel { opacity:0.6; -ms-filter:'alpha(opacity=60)'; filter:alpha(opacity=60);}
+.highcontrastSkin .mceButtonActive, .highcontrastSkin .mceButton:focus, .highcontrastSkin .mceButton:active { border: 5px solid; padding: 1px 6px;-webkit-focus-ring-color:none;outline:none;}
+
+/* Separator */
+.highcontrastSkin .mceSeparator {display:block; width:16px; height:26px;}
+
+/* ListBox */
+.highcontrastSkin .mceListBox { display: block; margin:2px;-webkit-focus-ring-color:none;outline:none;}
+.highcontrastSkin .mceListBox .mceText {padding: 5px 6px; line-height: 2em; width: 15ex; overflow: hidden;}
+.highcontrastSkin .mceListBoxDisabled .mceText { opacity:0.6; -ms-filter:'alpha(opacity=60)'; filter:alpha(opacity=60);}
+.highcontrastSkin .mceListBox a.mceText { padding: 5px 10px; display: block; height: 2em; line-height: 2em; border: 1px solid; border-right: 0; border-radius: 3px 0px 0px 3px; -moz-border-radius: 3px 0px 0px 3px; -webkit-border-radius: 3px 0px 0px 3px; -ms-border-radius: 3px 0px 0px 3px;}
+.highcontrastSkin .mceListBox a.mceOpen { padding: 5px 4px; display: block; height: 2em; line-height: 2em; border: 1px solid; border-left: 0; border-radius: 0px 3px 3px 0px; -moz-border-radius: 0px 3px 3px 0px; -webkit-border-radius: 0px 3px 3px 0px; -ms-border-radius: 0px 3px 3px 0px;}
+.highcontrastSkin .mceListBox:focus a.mceText, .highcontrastSkin .mceListBox:active a.mceText { border-width: 5px; padding: 1px 10px 1px 6px;}
+.highcontrastSkin .mceListBox:focus a.mceOpen, .highcontrastSkin .mceListBox:active a.mceOpen { border-width: 5px; padding: 1px 0px 1px 4px;}
+
+.highcontrastSkin .mceListBoxMenu {overflow-y:auto}
+
+/* SplitButton */
+.highcontrastSkin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+
+.highcontrastSkin .mceSplitButton { border-collapse: collapse; margin: 2px; height: 2em; line-height: 2em;-webkit-focus-ring-color:none;outline:none;}
+.highcontrastSkin .mceSplitButton td { display: table-cell; float: none; margin: 0; padding: 0; height: 2em;}
+.highcontrastSkin .mceSplitButton tr { display: table-row; }
+.highcontrastSkin table.mceSplitButton { display: table; }
+.highcontrastSkin .mceSplitButton a.mceAction { padding: 5px 10px; display: block; height: 2em; line-height: 2em; overflow: hidden; border: 1px solid; border-right: 0; border-radius: 3px 0px 0px 3px; -moz-border-radius: 3px 0px 0px 3px; -webkit-border-radius: 3px 0px 0px 3px; -ms-border-radius: 3px 0px 0px 3px;}
+.highcontrastSkin .mceSplitButton a.mceOpen { padding: 5px 4px; display: block; height: 2em; line-height: 2em; border: 1px solid; border-radius: 0px 3px 3px 0px; -moz-border-radius: 0px 3px 3px 0px; -webkit-border-radius: 0px 3px 3px 0px; -ms-border-radius: 0px 3px 3px 0px;}
+.highcontrastSkin .mceSplitButton .mceVoiceLabel { height: 2em; vertical-align: center; line-height: 2em; }
+.highcontrastSkin .mceSplitButton:focus a.mceAction, .highcontrastSkin .mceSplitButton:active a.mceAction { border-width: 5px; border-right-width: 1px; padding: 1px 10px 1px 6px;-webkit-focus-ring-color:none;outline:none;}
+.highcontrastSkin .mceSplitButton:focus a.mceOpen, .highcontrastSkin .mceSplitButton:active a.mceOpen { border-width: 5px; border-left-width: 1px; padding: 1px 0px 1px 4px;-webkit-focus-ring-color:none;outline:none;}
+
+/* Menu */
+.highcontrastSkin .mceNoIcons span.mceIcon {width:0;}
+.highcontrastSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid; direction:ltr}
+.highcontrastSkin .mceMenu table {background:white; color: black}
+.highcontrastSkin .mceNoIcons a .mceText {padding-left:10px}
+.highcontrastSkin .mceMenu a, .highcontrastSkin .mceMenu span, .highcontrastSkin .mceMenu {display:block;background:white; color: black}
+.highcontrastSkin .mceMenu td {height:2em}
+.highcontrastSkin .mceMenu a {position:relative;padding:3px 0 4px 0; display: block;}
+.highcontrastSkin .mceMenu .mceText {position:relative; display:block; cursor:default; margin:0; padding:0 25px 0 25px;}
+.highcontrastSkin .mceMenu pre.mceText {font-family:Monospace}
+.highcontrastSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:26px;}
+.highcontrastSkin td.mceMenuItemSeparator {border-top:1px solid; height:1px}
+.highcontrastSkin .mceMenuItemTitle a {border:0; border-bottom:1px solid}
+.highcontrastSkin .mceMenuItemTitle span.mceText {font-weight:bold; padding-left:4px}
+.highcontrastSkin .mceNoIcons .mceMenuItemSelected span.mceText:before {content: "\2713\A0";}
+.highcontrastSkin .mceMenu span.mceMenuLine {display:none}
+.highcontrastSkin .mceMenuItemSub a .mceText:after {content: "\A0\25B8"}
+.highcontrastSkin .mceMenuItem td, .highcontrastSkin .mceMenuItem th {line-height: normal}
+
+/* ColorSplitButton */
+.highcontrastSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid; color: #000}
+.highcontrastSkin .mceColorSplitMenu td {padding:2px}
+.highcontrastSkin .mceColorSplitMenu a {display:block; width:16px; height:16px; overflow:hidden; color:#000; margin: 0; padding: 0;}
+.highcontrastSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px}
+.highcontrastSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF}
+.highcontrastSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid; background-color:#B6BDD2}
+.highcontrastSkin a.mceMoreColors:hover {border:1px solid #0A246A; color: #000;}
+.highcontrastSkin .mceColorPreview {display:none;}
+.highcontrastSkin .mce_forecolor span.mceAction, .highcontrastSkin .mce_backcolor span.mceAction {height:17px;overflow:hidden}
+
+/* Progress,Resize */
+.highcontrastSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF}
+.highcontrastSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px}
+
+/* Rtl */
+.mceRtl .mceListBox .mceText {text-align: right; padding: 0 4px 0 0}
+.mceRtl .mceMenuItem .mceText {text-align: right}
+
+/* Formats */
+.highcontrastSkin .mce_p span.mceText {}
+.highcontrastSkin .mce_address span.mceText {font-style:italic}
+.highcontrastSkin .mce_pre span.mceText {font-family:monospace}
+.highcontrastSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em}
+.highcontrastSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em}
+.highcontrastSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em}
+.highcontrastSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em}
+.highcontrastSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em}
+.highcontrastSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/content.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/content.css
new file mode 100644
index 00000000..a1a8f9bd
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/content.css
@@ -0,0 +1,48 @@
+body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;}
+body {background:#FFF;}
+body.mceForceColors {background:#FFF; color:#000;}
+h1 {font-size: 2em}
+h2 {font-size: 1.5em}
+h3 {font-size: 1.17em}
+h4 {font-size: 1em}
+h5 {font-size: .83em}
+h6 {font-size: .75em}
+.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;}
+a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(../default/img/items.gif) no-repeat 0 0;}
+span.mceItemNbsp {background: #DDD}
+td.mceSelected, th.mceSelected {background-color:#3399ff !important}
+img {border:0;}
+table, img, hr, .mceItemAnchor {cursor:default}
+table td, table th {cursor:text}
+ins {border-bottom:1px solid green; text-decoration: none; color:green}
+del {color:red; text-decoration:line-through}
+cite {border-bottom:1px dashed blue}
+acronym {border-bottom:1px dotted #CCC; cursor:help}
+abbr {border-bottom:1px dashed #CCC; cursor:help}
+
+/* IE */
+* html body {
+scrollbar-3dlight-color:#F0F0EE;
+scrollbar-arrow-color:#676662;
+scrollbar-base-color:#F0F0EE;
+scrollbar-darkshadow-color:#DDD;
+scrollbar-face-color:#E0E0DD;
+scrollbar-highlight-color:#F0F0EE;
+scrollbar-shadow-color:#F0F0EE;
+scrollbar-track-color:#F5F5F5;
+}
+
+img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px}
+font[face=mceinline] {font-family:inherit !important}
+*[contentEditable]:focus {outline:0}
+
+.mceItemMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc}
+.mceItemShockWave {background-image:url(../../img/shockwave.gif)}
+.mceItemFlash {background-image:url(../../img/flash.gif)}
+.mceItemQuickTime {background-image:url(../../img/quicktime.gif)}
+.mceItemWindowsMedia {background-image:url(../../img/windowsmedia.gif)}
+.mceItemRealMedia {background-image:url(../../img/realmedia.gif)}
+.mceItemVideo {background-image:url(../../img/video.gif)}
+.mceItemAudio {background-image:url(../../img/video.gif)}
+.mceItemIframe {background-image:url(../../img/iframe.gif)}
+.mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../../img/pagebreak.gif) no-repeat center top;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/dialog.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/dialog.css
new file mode 100644
index 00000000..a54db98d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/dialog.css
@@ -0,0 +1,118 @@
+/* Generic */
+body {
+font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px;
+scrollbar-3dlight-color:#F0F0EE;
+scrollbar-arrow-color:#676662;
+scrollbar-base-color:#F0F0EE;
+scrollbar-darkshadow-color:#DDDDDD;
+scrollbar-face-color:#E0E0DD;
+scrollbar-highlight-color:#F0F0EE;
+scrollbar-shadow-color:#F0F0EE;
+scrollbar-track-color:#F5F5F5;
+background:#F0F0EE;
+padding:0;
+margin:8px 8px 0 8px;
+}
+
+html {background:#F0F0EE;}
+td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
+textarea {resize:none;outline:none;}
+a:link, a:visited {color:black;}
+a:hover {color:#2B6FB6;}
+.nowrap {white-space: nowrap}
+
+/* Forms */
+fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;}
+legend {color:#2B6FB6; font-weight:bold;}
+label.msg {display:none;}
+label.invalid {color:#EE0000; display:inline;}
+input.invalid {border:1px solid #EE0000;}
+input {background:#FFF; border:1px solid #CCC;}
+input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
+input, select, textarea {border:1px solid #808080;}
+input.radio {border:1px none #000000; background:transparent; vertical-align:middle;}
+input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;}
+.input_noborder {border:0;}
+
+/* Buttons */
+#insert, #cancel, input.button, .updateButton {
+border:0; margin:0; padding:0;
+font-weight:bold;
+width:94px; height:26px;
+background:url(../default/img/buttons.png) 0 -26px;
+cursor:pointer;
+padding-bottom:2px;
+float:left;
+}
+
+#insert {background:url(../default/img/buttons.png) 0 -52px}
+#cancel {background:url(../default/img/buttons.png) 0 0; float:right}
+
+/* Browse */
+a.pickcolor, a.browse {text-decoration:none}
+a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;}
+.mceOldBoxModel a.browse span {width:22px; height:20px;}
+a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;}
+a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+a.browse:hover span.disabled {border:1px solid white; background-color:transparent;}
+a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;}
+.mceOldBoxModel a.pickcolor span {width:21px; height:17px;}
+a.pickcolor:hover span {background-color:#B2BBD0;}
+a.pickcolor:hover span.disabled {}
+
+/* Charmap */
+table.charmap {border:1px solid #AAA; text-align:center}
+td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;}
+#charmap a {display:block; color:#000; text-decoration:none; border:0}
+#charmap a:hover {background:#CCC;color:#2B6FB6}
+#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center}
+#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center}
+
+/* Source */
+.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;}
+.mceActionPanel {margin-top:5px;}
+
+/* Tabs classes */
+.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;}
+.tabs ul {margin:0; padding:0; list-style:none;}
+.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;}
+.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;}
+.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;}
+.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;}
+.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;}
+.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;}
+
+/* Panels */
+.panel_wrapper div.panel {display:none;}
+.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;}
+.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;}
+
+/* Columns */
+.column {float:left;}
+.properties {width:100%;}
+.properties .column1 {}
+.properties .column2 {text-align:left;}
+
+/* Titles */
+h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;}
+h3 {font-size:14px;}
+.title {font-size:12px; font-weight:bold; color:#2B6FB6;}
+
+/* Dialog specific */
+#link .panel_wrapper, #link div.current {height:125px;}
+#image .panel_wrapper, #image div.current {height:200px;}
+#plugintable thead {font-weight:bold; background:#DDD;}
+#plugintable, #about #plugintable td {border:1px solid #919B9C;}
+#plugintable {width:96%; margin-top:10px;}
+#pluginscontainer {height:290px; overflow:auto;}
+#colorpicker #preview {display:inline-block; padding-left:40px; height:14px; border:1px solid black; margin-left:5px; margin-right: 5px}
+#colorpicker #previewblock {position: relative; top: -3px; padding-left:5px; padding-top: 0px; display:inline}
+#colorpicker #preview_wrapper { text-align:center; padding-top:4px; white-space: nowrap}
+#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;}
+#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;}
+#colorpicker #light div {overflow:hidden;}
+#colorpicker .panel_wrapper div.current {height:175px;}
+#colorpicker #namedcolors {width:150px;}
+#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;}
+#colorpicker #colornamecontainer {margin-top:5px;}
+#colorpicker #picker_panel fieldset {margin:auto;width:325px;}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png
new file mode 100644
index 00000000..13a5cb03
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png
new file mode 100644
index 00000000..7fc57f2b
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png
new file mode 100644
index 00000000..c0dcc6ca
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui.css
new file mode 100644
index 00000000..a3102237
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui.css
@@ -0,0 +1,222 @@
+/* Reset */
+.o2k7Skin table, .o2k7Skin tbody, .o2k7Skin a, .o2k7Skin img, .o2k7Skin tr, .o2k7Skin div, .o2k7Skin td, .o2k7Skin iframe, .o2k7Skin span, .o2k7Skin *, .o2k7Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left}
+.o2k7Skin a:hover, .o2k7Skin a:link, .o2k7Skin a:visited, .o2k7Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000}
+.o2k7Skin table td {vertical-align:middle}
+
+/* Containers */
+.o2k7Skin table {background:transparent}
+.o2k7Skin iframe {display:block;}
+.o2k7Skin .mceToolbar {height:26px}
+
+/* External */
+.o2k7Skin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none}
+.o2k7Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;}
+.o2k7Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0}
+
+/* Layout */
+.o2k7Skin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD}
+.o2k7Skin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD}
+.o2k7Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD}
+.o2k7Skin table.mceToolbar, .o2k7Skin tr.mceFirst .mceToolbar tr td, .o2k7Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0}
+.o2k7Skin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD}
+.o2k7Skin td.mceToolbar{background:#E5EFFD}
+.o2k7Skin .mceStatusbar {background:#E5EFFD; display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px}
+.o2k7Skin .mceStatusbar div {float:left; padding:2px}
+.o2k7Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0}
+.o2k7Skin .mceStatusbar a:hover {text-decoration:underline}
+.o2k7Skin table.mceToolbar {margin-left:3px}
+.o2k7Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;}
+.o2k7Skin .mceToolbar td.mceFirst span {margin:0}
+.o2k7Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px}
+.o2k7Skin .mceToolbar .mceToolbarEndListBox span, .o2k7Skin .mceToolbar .mceToolbarStartListBox span {display:none}
+.o2k7Skin span.mceIcon, .o2k7Skin img.mceIcon {display:block; width:20px; height:20px}
+.o2k7Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
+.o2k7Skin td.mceCenter {text-align:center;}
+.o2k7Skin td.mceCenter table {margin:0 auto; text-align:left;}
+.o2k7Skin td.mceRight table {margin:0 0 0 auto;}
+
+/* Button */
+.o2k7Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px}
+.o2k7Skin a.mceButton span, .o2k7Skin a.mceButton img {margin-left:1px}
+.o2k7Skin .mceOldBoxModel a.mceButton span, .o2k7Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px}
+.o2k7Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px}
+.o2k7Skin a.mceButtonActive, .o2k7Skin a.mceButtonSelected {background-position:0 -44px}
+.o2k7Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+.o2k7Skin .mceButtonLabeled {width:auto}
+.o2k7Skin .mceButtonLabeled span.mceIcon {float:left}
+.o2k7Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica}
+.o2k7Skin .mceButtonDisabled .mceButtonLabel {color:#888}
+
+/* Separator */
+.o2k7Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px}
+
+/* ListBox */
+.o2k7Skin .mceListBox {padding-left: 3px}
+.o2k7Skin .mceListBox, .o2k7Skin .mceListBox a {display:block}
+.o2k7Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden}
+.o2k7Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0}
+.o2k7Skin table.mceListBoxEnabled:hover .mceText, .o2k7Skin .mceListBoxHover .mceText, .o2k7Skin .mceListBoxSelected .mceText {background:#FFF}
+.o2k7Skin table.mceListBoxEnabled:hover .mceOpen, .o2k7Skin .mceListBoxHover .mceOpen, .o2k7Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px}
+.o2k7Skin .mceListBoxDisabled .mceText {color:gray}
+.o2k7Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden; margin-left:3px}
+.o2k7Skin .mceOldBoxModel .mceListBox .mceText {height:22px}
+.o2k7Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;}
+
+/* SplitButton */
+.o2k7Skin .mceSplitButton, .o2k7Skin .mceSplitButton a, .o2k7Skin .mceSplitButton span {display:block; height:22px; direction:ltr}
+.o2k7Skin .mceSplitButton {background:url(img/button_bg.png)}
+.o2k7Skin .mceSplitButton a.mceAction {width:22px}
+.o2k7Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)}
+.o2k7Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0}
+.o2k7Skin .mceSplitButton span.mceOpen {display:none}
+.o2k7Skin table.mceSplitButtonEnabled:hover a.mceAction, .o2k7Skin .mceSplitButtonHover a.mceAction, .o2k7Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px}
+.o2k7Skin table.mceSplitButtonEnabled:hover a.mceOpen, .o2k7Skin .mceSplitButtonHover a.mceOpen, .o2k7Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px}
+.o2k7Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+.o2k7Skin .mceSplitButtonActive {background-position:0 -44px}
+
+/* ColorSplitButton */
+.o2k7Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray}
+.o2k7Skin .mceColorSplitMenu td {padding:2px}
+.o2k7Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080}
+.o2k7Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px}
+.o2k7Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF}
+.o2k7Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2}
+.o2k7Skin a.mceMoreColors:hover {border:1px solid #0A246A}
+.o2k7Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden}
+.o2k7Skin .mce_forecolor span.mceAction, .o2k7Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden}
+
+/* Menu */
+.o2k7Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD; direction:ltr}
+.o2k7Skin .mceNoIcons span.mceIcon {width:0;}
+.o2k7Skin .mceNoIcons a .mceText {padding-left:10px}
+.o2k7Skin .mceMenu table {background:#FFF}
+.o2k7Skin .mceMenu a, .o2k7Skin .mceMenu span, .o2k7Skin .mceMenu {display:block}
+.o2k7Skin .mceMenu td {height:20px}
+.o2k7Skin .mceMenu a {position:relative;padding:3px 0 4px 0}
+.o2k7Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block}
+.o2k7Skin .mceMenu span.mceText, .o2k7Skin .mceMenu .mcePreview {font-size:11px}
+.o2k7Skin .mceMenu pre.mceText {font-family:Monospace}
+.o2k7Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;}
+.o2k7Skin .mceMenu .mceMenuItemEnabled a:hover, .o2k7Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3}
+.o2k7Skin td.mceMenuItemSeparator {background:#DDD; height:1px}
+.o2k7Skin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD}
+.o2k7Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px}
+.o2k7Skin .mceMenuItemDisabled .mceText {color:#888}
+.o2k7Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)}
+.o2k7Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center}
+.o2k7Skin .mceMenu span.mceMenuLine {display:none}
+.o2k7Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;}
+.o2k7Skin .mceMenuItem td, .o2k7Skin .mceMenuItem th {line-height: normal}
+
+/* Progress,Resize */
+.o2k7Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF}
+.o2k7Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px}
+
+/* Rtl */
+.mceRtl .mceListBox .mceText {text-align: right; padding: 0 4px 0 0}
+.mceRtl .mceMenuItem .mceText {text-align: right}
+
+/* Formats */
+.o2k7Skin .mce_formatPreview a {font-size:10px}
+.o2k7Skin .mce_p span.mceText {}
+.o2k7Skin .mce_address span.mceText {font-style:italic}
+.o2k7Skin .mce_pre span.mceText {font-family:monospace}
+.o2k7Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em}
+.o2k7Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em}
+.o2k7Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em}
+.o2k7Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em}
+.o2k7Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em}
+.o2k7Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em}
+
+/* Theme */
+.o2k7Skin span.mce_bold {background-position:0 0}
+.o2k7Skin span.mce_italic {background-position:-60px 0}
+.o2k7Skin span.mce_underline {background-position:-140px 0}
+.o2k7Skin span.mce_strikethrough {background-position:-120px 0}
+.o2k7Skin span.mce_undo {background-position:-160px 0}
+.o2k7Skin span.mce_redo {background-position:-100px 0}
+.o2k7Skin span.mce_cleanup {background-position:-40px 0}
+.o2k7Skin span.mce_bullist {background-position:-20px 0}
+.o2k7Skin span.mce_numlist {background-position:-80px 0}
+.o2k7Skin span.mce_justifyleft {background-position:-460px 0}
+.o2k7Skin span.mce_justifyright {background-position:-480px 0}
+.o2k7Skin span.mce_justifycenter {background-position:-420px 0}
+.o2k7Skin span.mce_justifyfull {background-position:-440px 0}
+.o2k7Skin span.mce_anchor {background-position:-200px 0}
+.o2k7Skin span.mce_indent {background-position:-400px 0}
+.o2k7Skin span.mce_outdent {background-position:-540px 0}
+.o2k7Skin span.mce_link {background-position:-500px 0}
+.o2k7Skin span.mce_unlink {background-position:-640px 0}
+.o2k7Skin span.mce_sub {background-position:-600px 0}
+.o2k7Skin span.mce_sup {background-position:-620px 0}
+.o2k7Skin span.mce_removeformat {background-position:-580px 0}
+.o2k7Skin span.mce_newdocument {background-position:-520px 0}
+.o2k7Skin span.mce_image {background-position:-380px 0}
+.o2k7Skin span.mce_help {background-position:-340px 0}
+.o2k7Skin span.mce_code {background-position:-260px 0}
+.o2k7Skin span.mce_hr {background-position:-360px 0}
+.o2k7Skin span.mce_visualaid {background-position:-660px 0}
+.o2k7Skin span.mce_charmap {background-position:-240px 0}
+.o2k7Skin span.mce_paste {background-position:-560px 0}
+.o2k7Skin span.mce_copy {background-position:-700px 0}
+.o2k7Skin span.mce_cut {background-position:-680px 0}
+.o2k7Skin span.mce_blockquote {background-position:-220px 0}
+.o2k7Skin .mce_forecolor span.mceAction {background-position:-720px 0}
+.o2k7Skin .mce_backcolor span.mceAction {background-position:-760px 0}
+.o2k7Skin span.mce_forecolorpicker {background-position:-720px 0}
+.o2k7Skin span.mce_backcolorpicker {background-position:-760px 0}
+
+/* Plugins */
+.o2k7Skin span.mce_advhr {background-position:-0px -20px}
+.o2k7Skin span.mce_ltr {background-position:-20px -20px}
+.o2k7Skin span.mce_rtl {background-position:-40px -20px}
+.o2k7Skin span.mce_emotions {background-position:-60px -20px}
+.o2k7Skin span.mce_fullpage {background-position:-80px -20px}
+.o2k7Skin span.mce_fullscreen {background-position:-100px -20px}
+.o2k7Skin span.mce_iespell {background-position:-120px -20px}
+.o2k7Skin span.mce_insertdate {background-position:-140px -20px}
+.o2k7Skin span.mce_inserttime {background-position:-160px -20px}
+.o2k7Skin span.mce_absolute {background-position:-180px -20px}
+.o2k7Skin span.mce_backward {background-position:-200px -20px}
+.o2k7Skin span.mce_forward {background-position:-220px -20px}
+.o2k7Skin span.mce_insert_layer {background-position:-240px -20px}
+.o2k7Skin span.mce_insertlayer {background-position:-260px -20px}
+.o2k7Skin span.mce_movebackward {background-position:-280px -20px}
+.o2k7Skin span.mce_moveforward {background-position:-300px -20px}
+.o2k7Skin span.mce_media {background-position:-320px -20px}
+.o2k7Skin span.mce_nonbreaking {background-position:-340px -20px}
+.o2k7Skin span.mce_pastetext {background-position:-360px -20px}
+.o2k7Skin span.mce_pasteword {background-position:-380px -20px}
+.o2k7Skin span.mce_selectall {background-position:-400px -20px}
+.o2k7Skin span.mce_preview {background-position:-420px -20px}
+.o2k7Skin span.mce_print {background-position:-440px -20px}
+.o2k7Skin span.mce_cancel {background-position:-460px -20px}
+.o2k7Skin span.mce_save {background-position:-480px -20px}
+.o2k7Skin span.mce_replace {background-position:-500px -20px}
+.o2k7Skin span.mce_search {background-position:-520px -20px}
+.o2k7Skin span.mce_styleprops {background-position:-560px -20px}
+.o2k7Skin span.mce_table {background-position:-580px -20px}
+.o2k7Skin span.mce_cell_props {background-position:-600px -20px}
+.o2k7Skin span.mce_delete_table {background-position:-620px -20px}
+.o2k7Skin span.mce_delete_col {background-position:-640px -20px}
+.o2k7Skin span.mce_delete_row {background-position:-660px -20px}
+.o2k7Skin span.mce_col_after {background-position:-680px -20px}
+.o2k7Skin span.mce_col_before {background-position:-700px -20px}
+.o2k7Skin span.mce_row_after {background-position:-720px -20px}
+.o2k7Skin span.mce_row_before {background-position:-740px -20px}
+.o2k7Skin span.mce_merge_cells {background-position:-760px -20px}
+.o2k7Skin span.mce_table_props {background-position:-980px -20px}
+.o2k7Skin span.mce_row_props {background-position:-780px -20px}
+.o2k7Skin span.mce_split_cells {background-position:-800px -20px}
+.o2k7Skin span.mce_template {background-position:-820px -20px}
+.o2k7Skin span.mce_visualchars {background-position:-840px -20px}
+.o2k7Skin span.mce_abbr {background-position:-860px -20px}
+.o2k7Skin span.mce_acronym {background-position:-880px -20px}
+.o2k7Skin span.mce_attribs {background-position:-900px -20px}
+.o2k7Skin span.mce_cite {background-position:-920px -20px}
+.o2k7Skin span.mce_del {background-position:-940px -20px}
+.o2k7Skin span.mce_ins {background-position:-960px -20px}
+.o2k7Skin span.mce_pagebreak {background-position:0 -40px}
+.o2k7Skin span.mce_restoredraft {background-position:-20px -40px}
+.o2k7Skin span.mce_spellchecker {background-position:-540px -20px}
+.o2k7Skin span.mce_visualblocks {background-position: -40px -40px}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_black.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_black.css
new file mode 100644
index 00000000..50c9b76a
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_black.css
@@ -0,0 +1,8 @@
+/* Black */
+.o2k7SkinBlack .mceToolbar .mceToolbarStart span, .o2k7SkinBlack .mceToolbar .mceToolbarEnd span, .o2k7SkinBlack .mceButton, .o2k7SkinBlack .mceSplitButton, .o2k7SkinBlack .mceSeparator, .o2k7SkinBlack .mceSplitButton a.mceOpen, .o2k7SkinBlack .mceListBox a.mceOpen {background-image:url(img/button_bg_black.png)}
+.o2k7SkinBlack td.mceToolbar, .o2k7SkinBlack td.mceStatusbar, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack .mceMenuItemTitle span.mceText, .o2k7SkinBlack .mceStatusbar div, .o2k7SkinBlack .mceStatusbar span, .o2k7SkinBlack .mceStatusbar a {background:#535353; color:#FFF}
+.o2k7SkinBlack table.mceListBoxEnabled .mceText, o2k7SkinBlack .mceListBox .mceText {background:#FFF; border:1px solid #CBCFD4; border-bottom-color:#989FA9; border-right:0}
+.o2k7SkinBlack table.mceListBoxEnabled:hover .mceText, .o2k7SkinBlack .mceListBoxHover .mceText, .o2k7SkinBlack .mceListBoxSelected .mceText {background:#FFF; border:1px solid #FFBD69; border-right:0}
+.o2k7SkinBlack .mceExternalToolbar, .o2k7SkinBlack .mceListBox .mceText, .o2k7SkinBlack div.mceMenu, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceFirst td, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceLast td, .o2k7SkinBlack .mceIframeContainer {border-color: #535353;}
+.o2k7SkinBlack table.mceSplitButtonEnabled:hover a.mceAction, .o2k7SkinBlack .mceSplitButtonHover a.mceAction, .o2k7SkinBlack .mceSplitButtonSelected {background-image:url(img/button_bg_black.png)}
+.o2k7SkinBlack .mceMenu .mceMenuItemEnabled a:hover, .o2k7SkinBlack .mceMenu .mceMenuItemActive {background-color:#FFE7A1} \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css
new file mode 100644
index 00000000..960a8e47
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css
@@ -0,0 +1,5 @@
+/* Silver */
+.o2k7SkinSilver .mceToolbar .mceToolbarStart span, .o2k7SkinSilver .mceButton, .o2k7SkinSilver .mceSplitButton, .o2k7SkinSilver .mceSeparator, .o2k7SkinSilver .mceSplitButton a.mceOpen, .o2k7SkinSilver .mceListBox a.mceOpen {background-image:url(img/button_bg_silver.png)}
+.o2k7SkinSilver td.mceToolbar, .o2k7SkinSilver td.mceStatusbar, .o2k7SkinSilver .mceMenuItemTitle a {background:#eee}
+.o2k7SkinSilver .mceListBox .mceText {background:#FFF}
+.o2k7SkinSilver .mceExternalToolbar, .o2k7SkinSilver .mceListBox .mceText, .o2k7SkinSilver div.mceMenu, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceFirst td, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceLast td, .o2k7SkinSilver .mceIframeContainer {border-color: #bbb}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/source_editor.htm b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/source_editor.htm
new file mode 100755
index 00000000..dd973fcc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/advanced/source_editor.htm
@@ -0,0 +1,25 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>{#advanced_dlg.code_title}</title>
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
+ <script type="text/javascript" src="js/source_editor.js"></script>
+</head>
+<body onresize="resizeInputs();" style="display:none; overflow:hidden;" spellcheck="false">
+ <form name="source" onsubmit="saveContent();return false;" action="#">
+ <div style="float: left" class="title"><label for="htmlSource">{#advanced_dlg.code_title}</label></div>
+
+ <div id="wrapline" style="float: right">
+ <input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{#advanced_dlg.code_wordwrap}</label>
+ </div>
+
+ <br style="clear: both" />
+
+ <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,monospace; font-size: 12px;" dir="ltr" wrap="off" class="mceFocus"></textarea>
+
+ <div class="mceActionPanel">
+ <input type="submit" role="button" name="insert" value="{#update}" id="insert" />
+ <input type="button" role="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
+ </div>
+ </form>
+</body>
+</html>
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template.js
new file mode 100755
index 00000000..4b3209cc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template.js
@@ -0,0 +1 @@
+(function(){var a=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(c,d){var e=this,b=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],f=c.settings;e.editor=c;c.contentCSS.push(d+"/skins/"+f.skin+"/content.css");c.onInit.add(function(){c.onNodeChange.add(function(h,g){tinymce.each(b,function(i){g.get(i.toLowerCase()).setActive(h.queryCommandState(i))})})});a.loadCSS((f.editor_css?c.documentBaseURI.toAbsolute(f.editor_css):"")||d+"/skins/"+f.skin+"/ui.css")},renderUI:function(h){var e=this,i=h.targetNode,b,c,d=e.editor,f=d.controlManager,g;i=a.insertAfter(a.create("span",{id:d.id+"_container","class":"mceEditor "+d.settings.skin+"SimpleSkin"}),i);i=g=a.add(i,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});i=c=a.add(i,"tbody");i=a.add(c,"tr");i=b=a.add(a.add(i,"td"),"div",{"class":"mceIframeContainer"});i=a.add(a.add(c,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});c=e.toolbar=f.createToolbar("tools1");c.add(f.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));c.add(f.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));c.add(f.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));c.add(f.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));c.add(f.createSeparator());c.add(f.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));c.add(f.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));c.add(f.createSeparator());c.add(f.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));c.add(f.createSeparator());c.add(f.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));c.add(f.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));c.renderTo(i);return{iframeContainer:b,editorContainer:d.id+"_container",sizeContainer:g,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template_src.js
new file mode 100755
index 00000000..01ce87c5
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/editor_template_src.js
@@ -0,0 +1,84 @@
+/**
+ * editor_template_src.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+(function() {
+ var DOM = tinymce.DOM;
+
+ // Tell it to load theme specific language pack(s)
+ tinymce.ThemeManager.requireLangPack('simple');
+
+ tinymce.create('tinymce.themes.SimpleTheme', {
+ init : function(ed, url) {
+ var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings;
+
+ t.editor = ed;
+ ed.contentCSS.push(url + "/skins/" + s.skin + "/content.css");
+
+ ed.onInit.add(function() {
+ ed.onNodeChange.add(function(ed, cm) {
+ tinymce.each(states, function(c) {
+ cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c));
+ });
+ });
+ });
+
+ DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css");
+ },
+
+ renderUI : function(o) {
+ var t = this, n = o.targetNode, ic, tb, ed = t.editor, cf = ed.controlManager, sc;
+
+ n = DOM.insertAfter(DOM.create('span', {id : ed.id + '_container', 'class' : 'mceEditor ' + ed.settings.skin + 'SimpleSkin'}), n);
+ n = sc = DOM.add(n, 'table', {cellPadding : 0, cellSpacing : 0, 'class' : 'mceLayout'});
+ n = tb = DOM.add(n, 'tbody');
+
+ // Create iframe container
+ n = DOM.add(tb, 'tr');
+ n = ic = DOM.add(DOM.add(n, 'td'), 'div', {'class' : 'mceIframeContainer'});
+
+ // Create toolbar container
+ n = DOM.add(DOM.add(tb, 'tr', {'class' : 'last'}), 'td', {'class' : 'mceToolbar mceLast', align : 'center'});
+
+ // Create toolbar
+ tb = t.toolbar = cf.createToolbar("tools1");
+ tb.add(cf.createButton('bold', {title : 'simple.bold_desc', cmd : 'Bold'}));
+ tb.add(cf.createButton('italic', {title : 'simple.italic_desc', cmd : 'Italic'}));
+ tb.add(cf.createButton('underline', {title : 'simple.underline_desc', cmd : 'Underline'}));
+ tb.add(cf.createButton('strikethrough', {title : 'simple.striketrough_desc', cmd : 'Strikethrough'}));
+ tb.add(cf.createSeparator());
+ tb.add(cf.createButton('undo', {title : 'simple.undo_desc', cmd : 'Undo'}));
+ tb.add(cf.createButton('redo', {title : 'simple.redo_desc', cmd : 'Redo'}));
+ tb.add(cf.createSeparator());
+ tb.add(cf.createButton('cleanup', {title : 'simple.cleanup_desc', cmd : 'mceCleanup'}));
+ tb.add(cf.createSeparator());
+ tb.add(cf.createButton('insertunorderedlist', {title : 'simple.bullist_desc', cmd : 'InsertUnorderedList'}));
+ tb.add(cf.createButton('insertorderedlist', {title : 'simple.numlist_desc', cmd : 'InsertOrderedList'}));
+ tb.renderTo(n);
+
+ return {
+ iframeContainer : ic,
+ editorContainer : ed.id + '_container',
+ sizeContainer : sc,
+ deltaHeight : -20
+ };
+ },
+
+ getInfo : function() {
+ return {
+ longname : 'Simple theme',
+ author : 'Moxiecode Systems AB',
+ authorurl : 'http://tinymce.moxiecode.com',
+ version : tinymce.majorVersion + "." + tinymce.minorVersion
+ }
+ }
+ });
+
+ tinymce.ThemeManager.add('simple', tinymce.themes.SimpleTheme);
+})(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/img/icons.gif b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/img/icons.gif
new file mode 100644
index 00000000..6fcbcb5d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/img/icons.gif
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/de.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/de.js
new file mode 100644
index 00000000..59bf788d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/de.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('de.simple',{"cleanup_desc":"Quellcode aufr\u00e4umen","redo_desc":"Wiederholen (Strg+Y)","undo_desc":"R\u00fcckg\u00e4ngig (Strg+Z)","numlist_desc":"Nummerierung","bullist_desc":"Aufz\u00e4hlung","striketrough_desc":"Durchgestrichen","underline_desc":"Unterstrichen (Strg+U)","italic_desc":"Kursiv (Strg+I)","bold_desc":"Fett (Strg+B)"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/en.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/en.js
new file mode 100644
index 00000000..088ed0fc
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/en.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('en.simple',{"cleanup_desc":"Cleanup Messy Code","redo_desc":"Redo (Ctrl+Y)","undo_desc":"Undo (Ctrl+Z)","numlist_desc":"Insert/Remove Numbered List","bullist_desc":"Insert/Remove Bulleted List","striketrough_desc":"Strikethrough","underline_desc":"Underline (Ctrl+U)","italic_desc":"Italic (Ctrl+I)","bold_desc":"Bold (Ctrl+B)"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/hu.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/hu.js
new file mode 100644
index 00000000..6eff1750
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/hu.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('hu.simple',{"cleanup_desc":"Minden form\u00e1z\u00e1s elt\u00e1vol\u00edt\u00e1sa","redo_desc":"M\u00e9gis v\u00e9grehajt (Ctrl+Y)","undo_desc":"Visszavon\u00e1s (Ctrl+Z)","numlist_desc":"Sz\u00e1mozott lista besz\u00far\u00e1sa/elt\u00e1vol\u00edt\u00e1sa","bullist_desc":"Felsorol\u00e1s besz\u00far\u00e1sa/elt\u00e1vol\u00edt\u00e1sa","striketrough_desc":"\u00c1th\u00fazott","underline_desc":"Al\u00e1h\u00fazott (Ctrl+U)","italic_desc":"D\u0151lt (Ctrl+I)","bold_desc":"F\u00e9lk\u00f6v\u00e9r (Ctrl+B)"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/ja.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/ja.js
new file mode 100644
index 00000000..b3acbb54
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/langs/ja.js
@@ -0,0 +1 @@
+tinyMCE.addI18n('ja.simple',{"cleanup_desc":"\u4e71\u96d1\u306a\u30b3\u30fc\u30c9\u3092\u6574\u5f62","redo_desc":"\u3084\u308a\u76f4\u3059 (Ctrl+Y)","undo_desc":"\u5143\u306b\u623b\u3059 (Ctrl+Z)","numlist_desc":"\u756a\u53f7\u3064\u304d\u30ea\u30b9\u30c8","bullist_desc":"\u756a\u53f7\u306a\u3057\u30ea\u30b9\u30c8","striketrough_desc":"\u53d6\u308a\u6d88\u3057\u7dda","underline_desc":"\u4e0b\u7dda (Ctrl+U)","italic_desc":"\u659c\u4f53 (Ctrl+I)","bold_desc":"\u592a\u5b57 (Ctrl+B)"}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/content.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/content.css
new file mode 100644
index 00000000..2506c807
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/content.css
@@ -0,0 +1,25 @@
+body, td, pre {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 10px;
+}
+
+body {
+ background-color: #FFFFFF;
+}
+
+.mceVisualAid {
+ border: 1px dashed #BBBBBB;
+}
+
+/* MSIE specific */
+
+* html body {
+ scrollbar-3dlight-color: #F0F0EE;
+ scrollbar-arrow-color: #676662;
+ scrollbar-base-color: #F0F0EE;
+ scrollbar-darkshadow-color: #DDDDDD;
+ scrollbar-face-color: #E0E0DD;
+ scrollbar-highlight-color: #F0F0EE;
+ scrollbar-shadow-color: #F0F0EE;
+ scrollbar-track-color: #F5F5F5;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/ui.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/ui.css
new file mode 100644
index 00000000..076fe84e
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/default/ui.css
@@ -0,0 +1,32 @@
+/* Reset */
+.defaultSimpleSkin table, .defaultSimpleSkin tbody, .defaultSimpleSkin a, .defaultSimpleSkin img, .defaultSimpleSkin tr, .defaultSimpleSkin div, .defaultSimpleSkin td, .defaultSimpleSkin iframe, .defaultSimpleSkin span, .defaultSimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
+
+/* Containers */
+.defaultSimpleSkin {position:relative}
+.defaultSimpleSkin table.mceLayout {background:#F0F0EE; border:1px solid #CCC;}
+.defaultSimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #CCC;}
+.defaultSimpleSkin .mceToolbar {height:24px;}
+
+/* Layout */
+.defaultSimpleSkin span.mceIcon, .defaultSimpleSkin img.mceIcon {display:block; width:20px; height:20px}
+.defaultSimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
+
+/* Button */
+.defaultSimpleSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px}
+.defaultSimpleSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0}
+.defaultSimpleSkin a.mceButtonActive {border:1px solid #0A246A; background-color:#C2CBE0}
+.defaultSimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+
+/* Separator */
+.defaultSimpleSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:0 2px 0 4px}
+
+/* Theme */
+.defaultSimpleSkin span.mce_bold {background-position:0 0}
+.defaultSimpleSkin span.mce_italic {background-position:-60px 0}
+.defaultSimpleSkin span.mce_underline {background-position:-140px 0}
+.defaultSimpleSkin span.mce_strikethrough {background-position:-120px 0}
+.defaultSimpleSkin span.mce_undo {background-position:-160px 0}
+.defaultSimpleSkin span.mce_redo {background-position:-100px 0}
+.defaultSimpleSkin span.mce_cleanup {background-position:-40px 0}
+.defaultSimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
+.defaultSimpleSkin span.mce_insertorderedlist {background-position:-80px 0}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/content.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/content.css
new file mode 100644
index 00000000..595809fa
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/content.css
@@ -0,0 +1,17 @@
+body, td, pre {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;}
+
+body {background: #FFF;}
+.mceVisualAid {border: 1px dashed #BBB;}
+
+/* IE */
+
+* html body {
+scrollbar-3dlight-color: #F0F0EE;
+scrollbar-arrow-color: #676662;
+scrollbar-base-color: #F0F0EE;
+scrollbar-darkshadow-color: #DDDDDD;
+scrollbar-face-color: #E0E0DD;
+scrollbar-highlight-color: #F0F0EE;
+scrollbar-shadow-color: #F0F0EE;
+scrollbar-track-color: #F5F5F5;
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png
new file mode 100644
index 00000000..527e3495
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png
Binary files differ
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/ui.css b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/ui.css
new file mode 100644
index 00000000..cf6c35d1
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/themes/simple/skins/o2k7/ui.css
@@ -0,0 +1,35 @@
+/* Reset */
+.o2k7SimpleSkin table, .o2k7SimpleSkin tbody, .o2k7SimpleSkin a, .o2k7SimpleSkin img, .o2k7SimpleSkin tr, .o2k7SimpleSkin div, .o2k7SimpleSkin td, .o2k7SimpleSkin iframe, .o2k7SimpleSkin span, .o2k7SimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000}
+
+/* Containers */
+.o2k7SimpleSkin {position:relative}
+.o2k7SimpleSkin table.mceLayout {background:#E5EFFD; border:1px solid #ABC6DD;}
+.o2k7SimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #ABC6DD;}
+.o2k7SimpleSkin .mceToolbar {height:26px;}
+
+/* Layout */
+.o2k7SimpleSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; }
+.o2k7SimpleSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px}
+.o2k7SimpleSkin span.mceIcon, .o2k7SimpleSkin img.mceIcon {display:block; width:20px; height:20px}
+.o2k7SimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px}
+
+/* Button */
+.o2k7SimpleSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px}
+.o2k7SimpleSkin a.mceButton span, .o2k7SimpleSkin a.mceButton img {margin:1px 0 0 1px}
+.o2k7SimpleSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px}
+.o2k7SimpleSkin a.mceButtonActive {background-position:0 -44px}
+.o2k7SimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)}
+
+/* Separator */
+.o2k7SimpleSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px}
+
+/* Theme */
+.o2k7SimpleSkin span.mce_bold {background-position:0 0}
+.o2k7SimpleSkin span.mce_italic {background-position:-60px 0}
+.o2k7SimpleSkin span.mce_underline {background-position:-140px 0}
+.o2k7SimpleSkin span.mce_strikethrough {background-position:-120px 0}
+.o2k7SimpleSkin span.mce_undo {background-position:-160px 0}
+.o2k7SimpleSkin span.mce_redo {background-position:-100px 0}
+.o2k7SimpleSkin span.mce_cleanup {background-position:-40px 0}
+.o2k7SimpleSkin span.mce_insertunorderedlist {background-position:-20px 0}
+.o2k7SimpleSkin span.mce_insertorderedlist {background-position:-80px 0}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce.js
new file mode 100755
index 00000000..7cad8b78
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce.js
@@ -0,0 +1 @@
+(function(e){var a=/^\s*|\s*$/g,b,d="B".replace(/A(.)|B/,"$1")==="$1";var c={majorVersion:"3",minorVersion:"5.7",releaseDate:"2012-09-20",_init:function(){var s=this,q=document,o=navigator,g=o.userAgent,m,f,l,k,j,r;s.isOpera=e.opera&&opera.buildNumber;s.isWebKit=/WebKit/.test(g);s.isIE=!s.isWebKit&&!s.isOpera&&(/MSIE/gi).test(g)&&(/Explorer/gi).test(o.appName);s.isIE6=s.isIE&&/MSIE [56]/.test(g);s.isIE7=s.isIE&&/MSIE [7]/.test(g);s.isIE8=s.isIE&&/MSIE [8]/.test(g);s.isIE9=s.isIE&&/MSIE [9]/.test(g);s.isGecko=!s.isWebKit&&/Gecko/.test(g);s.isMac=g.indexOf("Mac")!=-1;s.isAir=/adobeair/i.test(g);s.isIDevice=/(iPad|iPhone)/.test(g);s.isIOS5=s.isIDevice&&g.match(/AppleWebKit\/(\d*)/)[1]>=534;if(e.tinyMCEPreInit){s.suffix=tinyMCEPreInit.suffix;s.baseURL=tinyMCEPreInit.base;s.query=tinyMCEPreInit.query;return}s.suffix="";f=q.getElementsByTagName("base");for(m=0;m<f.length;m++){r=f[m].href;if(r){if(/^https?:\/\/[^\/]+$/.test(r)){r+="/"}k=r?r.match(/.*\//)[0]:""}}function h(i){if(i.src&&/tiny_mce(|_gzip|_jquery|_prototype|_full)(_dev|_src)?.js/.test(i.src)){if(/_(src|dev)\.js/g.test(i.src)){s.suffix="_src"}if((j=i.src.indexOf("?"))!=-1){s.query=i.src.substring(j+1)}s.baseURL=i.src.substring(0,i.src.lastIndexOf("/"));if(k&&s.baseURL.indexOf("://")==-1&&s.baseURL.indexOf("/")!==0){s.baseURL=k+s.baseURL}return s.baseURL}return null}f=q.getElementsByTagName("script");for(m=0;m<f.length;m++){if(h(f[m])){return}}l=q.getElementsByTagName("head")[0];if(l){f=l.getElementsByTagName("script");for(m=0;m<f.length;m++){if(h(f[m])){return}}}return},is:function(g,f){if(!f){return g!==b}if(f=="array"&&c.isArray(g)){return true}return typeof(g)==f},isArray:Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},makeMap:function(f,j,h){var g;f=f||[];j=j||",";if(typeof(f)=="string"){f=f.split(j)}h=h||{};g=f.length;while(g--){h[f[g]]={}}return h},each:function(i,f,h){var j,g;if(!i){return 0}h=h||i;if(i.length!==b){for(j=0,g=i.length;j<g;j++){if(f.call(h,i[j],j,i)===false){return 0}}}else{for(j in i){if(i.hasOwnProperty(j)){if(f.call(h,i[j],j,i)===false){return 0}}}}return 1},map:function(g,h){var i=[];c.each(g,function(f){i.push(h(f))});return i},grep:function(g,h){var i=[];c.each(g,function(f){if(!h||h(f)){i.push(f)}});return i},inArray:function(g,h){var j,f;if(g){for(j=0,f=g.length;j<f;j++){if(g[j]===h){return j}}}return -1},extend:function(n,k){var j,f,h,g=arguments,m;for(j=1,f=g.length;j<f;j++){k=g[j];for(h in k){if(k.hasOwnProperty(h)){m=k[h];if(m!==b){n[h]=m}}}}return n},trim:function(f){return(f?""+f:"").replace(a,"")},create:function(o,f,j){var n=this,g,i,k,l,h,m=0;o=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(o);k=o[3].match(/(^|\.)(\w+)$/i)[2];i=n.createNS(o[3].replace(/\.\w+$/,""),j);if(i[k]){return}if(o[2]=="static"){i[k]=f;if(this.onCreate){this.onCreate(o[2],o[3],i[k])}return}if(!f[k]){f[k]=function(){};m=1}i[k]=f[k];n.extend(i[k].prototype,f);if(o[5]){g=n.resolve(o[5]).prototype;l=o[5].match(/\.(\w+)$/i)[1];h=i[k];if(m){i[k]=function(){return g[l].apply(this,arguments)}}else{i[k]=function(){this.parent=g[l];return h.apply(this,arguments)}}i[k].prototype[k]=i[k];n.each(g,function(p,q){i[k].prototype[q]=g[q]});n.each(f,function(p,q){if(g[q]){i[k].prototype[q]=function(){this.parent=g[q];return p.apply(this,arguments)}}else{if(q!=k){i[k].prototype[q]=p}}})}n.each(f["static"],function(p,q){i[k][q]=p});if(this.onCreate){this.onCreate(o[2],o[3],i[k].prototype)}},walk:function(i,h,j,g){g=g||this;if(i){if(j){i=i[j]}c.each(i,function(k,f){if(h.call(g,k,f,j)===false){return false}c.walk(k,h,j,g)})}},createNS:function(j,h){var g,f;h=h||e;j=j.split(".");for(g=0;g<j.length;g++){f=j[g];if(!h[f]){h[f]={}}h=h[f]}return h},resolve:function(j,h){var g,f;h=h||e;j=j.split(".");for(g=0,f=j.length;g<f;g++){h=h[j[g]];if(!h){break}}return h},addUnload:function(j,i){var h=this,g;g=function(){var f=h.unloads,l,m;if(f){for(m in f){l=f[m];if(l&&l.func){l.func.call(l.scope,1)}}if(e.detachEvent){e.detachEvent("onbeforeunload",k);e.detachEvent("onunload",g)}else{if(e.removeEventListener){e.removeEventListener("unload",g,false)}}h.unloads=l=f=w=g=0;if(e.CollectGarbage){CollectGarbage()}}};function k(){var l=document;function f(){l.detachEvent("onstop",f);if(g){g()}l=0}if(l.readyState=="interactive"){if(l){l.attachEvent("onstop",f)}e.setTimeout(function(){if(l){l.detachEvent("onstop",f)}},0)}}j={func:j,scope:i||this};if(!h.unloads){if(e.attachEvent){e.attachEvent("onunload",g);e.attachEvent("onbeforeunload",k)}else{if(e.addEventListener){e.addEventListener("unload",g,false)}}h.unloads=[j]}else{h.unloads.push(j)}return j},removeUnload:function(i){var g=this.unloads,h=null;c.each(g,function(j,f){if(j&&j.func==i){g.splice(f,1);h=i;return false}});return h},explode:function(f,g){if(!f||c.is(f,"array")){return f}return c.map(f.split(g||","),c.trim)},_addVer:function(g){var f;if(!this.query){return g}f=(g.indexOf("?")==-1?"?":"&")+this.query;if(g.indexOf("#")==-1){return g+f}return g.replace("#",f+"#")},_replace:function(h,f,g){if(d){return g.replace(h,function(){var l=f,j=arguments,k;for(k=0;k<j.length-2;k++){if(j[k]===b){l=l.replace(new RegExp("\\$"+k,"g"),"")}else{l=l.replace(new RegExp("\\$"+k,"g"),j[k])}}return l})}return g.replace(h,f)}};c._init();e.tinymce=e.tinyMCE=c})(window);tinymce.create("tinymce.util.Dispatcher",{scope:null,listeners:null,inDispatch:false,Dispatcher:function(a){this.scope=a||this;this.listeners=[]},add:function(b,a){this.listeners.push({cb:b,scope:a||this.scope});return b},addToTop:function(d,b){var a=this,c={cb:d,scope:b||a.scope};if(a.inDispatch){a.listeners=[c].concat(a.listeners)}else{a.listeners.unshift(c)}return d},remove:function(c){var b=this.listeners,a=null;tinymce.each(b,function(e,d){if(c==e.cb){a=e;b.splice(d,1);return false}});return a},dispatch:function(){var a=this,e,b=arguments,c,d=a.listeners,f;a.inDispatch=true;for(c=0;c<d.length;c++){f=d[c];e=f.cb.apply(f.scope,b.length>0?b:[f.scope]);if(e===false){break}}a.inDispatch=false;return e}});(function(){var a=tinymce.each;tinymce.create("tinymce.util.URI",{URI:function(e,g){var f=this,i,d,c,h;e=tinymce.trim(e);g=f.settings=g||{};if(/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e)){f.source=e;return}if(e.indexOf("/")===0&&e.indexOf("//")!==0){e=(g.base_uri?g.base_uri.protocol||"http":"http")+"://mce_host"+e}if(!/^[\w\-]*:?\/\//.test(e)){h=g.base_uri?g.base_uri.path:new tinymce.util.URI(location.href).directory;e=((g.base_uri&&g.base_uri.protocol)||"http")+"://mce_host"+f.toAbsPath(h,e)}e=e.replace(/@@/g,"(mce_at)");e=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);a(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(b,j){var k=e[j];if(k){k=k.replace(/\(mce_at\)/g,"@@")}f[b]=k});c=g.base_uri;if(c){if(!f.protocol){f.protocol=c.protocol}if(!f.userInfo){f.userInfo=c.userInfo}if(!f.port&&f.host==="mce_host"){f.port=c.port}if(!f.host||f.host==="mce_host"){f.host=c.host}f.source=""}},setPath:function(c){var b=this;c=/^(.*?)\/?(\w+)?$/.exec(c);b.path=c[0];b.directory=c[1];b.file=c[2];b.source="";b.getURI()},toRelative:function(b){var d=this,f;if(b==="./"){return b}b=new tinymce.util.URI(b,{base_uri:d});if((b.host!="mce_host"&&d.host!=b.host&&b.host)||d.port!=b.port||d.protocol!=b.protocol){return b.getURI()}var c=d.getURI(),e=b.getURI();if(c==e||(c.charAt(c.length-1)=="/"&&c.substr(0,c.length-1)==e)){return c}f=d.toRelPath(d.path,b.path);if(b.query){f+="?"+b.query}if(b.anchor){f+="#"+b.anchor}return f},toAbsolute:function(b,c){b=new tinymce.util.URI(b,{base_uri:this});return b.getURI(this.host==b.host&&this.protocol==b.protocol?c:0)},toRelPath:function(g,h){var c,f=0,d="",e,b;g=g.substring(0,g.lastIndexOf("/"));g=g.split("/");c=h.split("/");if(g.length>=c.length){for(e=0,b=g.length;e<b;e++){if(e>=c.length||g[e]!=c[e]){f=e+1;break}}}if(g.length<c.length){for(e=0,b=c.length;e<b;e++){if(e>=g.length||g[e]!=c[e]){f=e+1;break}}}if(f===1){return h}for(e=0,b=g.length-(f-1);e<b;e++){d+="../"}for(e=f-1,b=c.length;e<b;e++){if(e!=f-1){d+="/"+c[e]}else{d+=c[e]}}return d},toAbsPath:function(e,f){var c,b=0,h=[],d,g;d=/\/$/.test(f)?"/":"";e=e.split("/");f=f.split("/");a(e,function(i){if(i){h.push(i)}});e=h;for(c=f.length-1,h=[];c>=0;c--){if(f[c].length===0||f[c]==="."){continue}if(f[c]===".."){b++;continue}if(b>0){b--;continue}h.push(f[c])}c=e.length-b;if(c<=0){g=h.reverse().join("/")}else{g=e.slice(0,c).join("/")+"/"+h.reverse().join("/")}if(g.indexOf("/")!==0){g="/"+g}if(d&&g.lastIndexOf("/")!==g.length-1){g+=d}return g},getURI:function(d){var c,b=this;if(!b.source||d){c="";if(!d){if(b.protocol){c+=b.protocol+"://"}if(b.userInfo){c+=b.userInfo+"@"}if(b.host){c+=b.host}if(b.port){c+=":"+b.port}}if(b.path){c+=b.path}if(b.query){c+="?"+b.query}if(b.anchor){c+="#"+b.anchor}b.source=c}return b.source}})})();(function(){var a=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(d){var b=this.get(d),c;if(b){a(b.split("&"),function(e){e=e.split("=");c=c||{};c[unescape(e[0])]=unescape(e[1])})}return c},setHash:function(j,b,g,f,i,c){var h="";a(b,function(e,d){h+=(!h?"":"&")+escape(d)+"="+escape(e)});this.set(j,h,g,f,i,c)},get:function(i){var h=document.cookie,g,f=i+"=",d;if(!h){return}d=h.indexOf("; "+f);if(d==-1){d=h.indexOf(f);if(d!==0){return null}}else{d+=2}g=h.indexOf(";",d);if(g==-1){g=h.length}return unescape(h.substring(d+f.length,g))},set:function(i,b,g,f,h,c){document.cookie=i+"="+escape(b)+((g)?"; expires="+g.toGMTString():"")+((f)?"; path="+escape(f):"")+((h)?"; domain="+h:"")+((c)?"; secure":"")},remove:function(c,e,d){var b=new Date();b.setTime(b.getTime()-1000);this.set(c,"",b,e,d)}})})();(function(){function serialize(o,quote){var i,v,t,name;quote=quote||'"';if(o==null){return"null"}t=typeof o;if(t=="string"){v="\bb\tt\nn\ff\rr\"\"''\\\\";return quote+o.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(a,b){if(quote==='"'&&a==="'"){return a}i=v.indexOf(b);if(i+1){return"\\"+v.charAt(i+1)}a=b.charCodeAt().toString(16);return"\\u"+"0000".substring(a.length)+a})+quote}if(t=="object"){if(o.hasOwnProperty&&Object.prototype.toString.call(o)==="[object Array]"){for(i=0,v="[";i<o.length;i++){v+=(i>0?",":"")+serialize(o[i],quote)}return v+"]"}v="{";for(name in o){if(o.hasOwnProperty(name)){v+=typeof o[name]!="function"?(v.length>1?","+quote:quote)+name+quote+":"+serialize(o[name],quote):""}}return v+"}"}return""+o}tinymce.util.JSON={serialize:serialize,parse:function(s){try{return eval("("+s+")")}catch(ex){}}}})();tinymce.create("static tinymce.util.XHR",{send:function(g){var a,e,b=window,h=0;function f(){if(!g.async||a.readyState==4||h++>10000){if(g.success&&h<10000&&a.status==200){g.success.call(g.success_scope,""+a.responseText,a,g)}else{if(g.error){g.error.call(g.error_scope,h>10000?"TIMED_OUT":"GENERAL",a,g)}}a=null}else{b.setTimeout(f,10)}}g.scope=g.scope||this;g.success_scope=g.success_scope||g.scope;g.error_scope=g.error_scope||g.scope;g.async=g.async===false?false:true;g.data=g.data||"";function d(i){a=0;try{a=new ActiveXObject(i)}catch(c){}return a}a=b.XMLHttpRequest?new XMLHttpRequest():d("Microsoft.XMLHTTP")||d("Msxml2.XMLHTTP");if(a){if(a.overrideMimeType){a.overrideMimeType(g.content_type)}a.open(g.type||(g.data?"POST":"GET"),g.url,g.async);if(g.content_type){a.setRequestHeader("Content-Type",g.content_type)}a.setRequestHeader("X-Requested-With","XMLHttpRequest");a.send(g.data);if(!g.async){return f()}e=b.setTimeout(f,10)}}});(function(){var c=tinymce.extend,b=tinymce.util.JSON,a=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(d){this.settings=c({},d);this.count=0},send:function(f){var e=f.error,d=f.success;f=c(this.settings,f);f.success=function(h,g){h=b.parse(h);if(typeof(h)=="undefined"){h={error:"JSON Parse error."}}if(h.error){e.call(f.error_scope||f.scope,h.error,g)}else{d.call(f.success_scope||f.scope,h.result)}};f.error=function(h,g){if(e){e.call(f.error_scope||f.scope,h,g)}};f.data=b.serialize({id:f.id||"c"+(this.count++),method:f.method,params:f.params});f.content_type="application/json";a.send(f)},"static":{sendRPC:function(d){return new tinymce.util.JSONRequest().send(d)}}})}());(function(a){a.VK={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(b){return b.shiftKey||b.ctrlKey||b.altKey},metaKeyPressed:function(b){return a.isMac?b.metaKey:b.ctrlKey&&!b.altKey}}})(tinymce);tinymce.util.Quirks=function(e){var n=tinymce.VK,x=n.BACKSPACE,y=n.DELETE,q=e.dom,I=e.selection,v=e.settings,c=e.parser,u=e.serializer;function d(M,L){try{e.getDoc().execCommand(M,false,L)}catch(K){}}function C(){var K=e.getDoc().documentMode;return K?K:6}function H(K){return K.isDefaultPrevented()}function k(){function K(N){var L,P,M,O;L=I.getRng();P=q.getParent(L.startContainer,q.isBlock);if(N){P=q.getNext(P,q.isBlock)}if(P){M=P.firstChild;while(M&&M.nodeType==3&&M.nodeValue.length===0){M=M.nextSibling}if(M&&M.nodeName==="SPAN"){O=M.cloneNode(false)}}e.getDoc().execCommand(N?"ForwardDelete":"Delete",false,null);P=q.getParent(L.startContainer,q.isBlock);tinymce.each(q.select("span.Apple-style-span,font.Apple-style-span",P),function(Q){var R=I.getBookmark();if(O){q.replace(O.cloneNode(false),Q,true)}else{q.remove(Q,true)}I.moveToBookmark(R)})}e.onKeyDown.add(function(L,N){var M;M=N.keyCode==y;if(!H(N)&&(M||N.keyCode==x)&&!n.modifierPressed(N)){N.preventDefault();K(M)}});e.addCommand("Delete",function(){K()})}function J(){function K(N){var M=q.create("body");var O=N.cloneContents();M.appendChild(O);return I.serializer.serialize(M,{format:"html"})}function L(M){var O=K(M);var P=q.createRng();P.selectNode(e.getBody());var N=K(P);return O===N}e.onKeyDown.add(function(N,P){var O=P.keyCode,M;if(!H(P)&&(O==y||O==x)){M=N.selection.isCollapsed();if(M&&!q.isEmpty(N.getBody())){return}if(tinymce.isIE&&!M){return}if(!M&&!L(N.selection.getRng())){return}N.setContent("");N.selection.setCursorLocation(N.getBody(),0);N.nodeChanged()}})}function A(){e.onKeyDown.add(function(K,L){if(!H(L)&&L.keyCode==65&&n.metaKeyPressed(L)){L.preventDefault();K.execCommand("SelectAll")}})}function B(){if(!e.settings.content_editable){q.bind(e.getDoc(),"focusin",function(K){I.setRng(I.getRng())});q.bind(e.getDoc(),"mousedown",function(K){if(K.target==e.getDoc().documentElement){e.getWin().focus();I.setRng(I.getRng())}})}}function o(){e.onKeyDown.add(function(K,N){if(!H(N)&&N.keyCode===x){if(I.isCollapsed()&&I.getRng(true).startOffset===0){var M=I.getNode();var L=M.previousSibling;if(L&&L.nodeName&&L.nodeName.toLowerCase()==="hr"){q.remove(L);tinymce.dom.Event.cancel(N)}}}})}function b(){if(!Range.prototype.getClientRects){e.onMouseDown.add(function(L,M){if(!H(M)&&M.target.nodeName==="HTML"){var K=L.getBody();K.blur();setTimeout(function(){K.focus()},0)}})}}function F(){e.onClick.add(function(K,L){L=L.target;if(/^(IMG|HR)$/.test(L.nodeName)){I.getSel().setBaseAndExtent(L,0,L,1)}if(L.nodeName=="A"&&q.hasClass(L,"mceItemAnchor")){I.select(L)}K.nodeChanged()})}function E(){function L(){var N=q.getAttribs(I.getStart().cloneNode(false));return function(){var O=I.getStart();if(O!==e.getBody()){q.setAttrib(O,"style",null);tinymce.each(N,function(P){O.setAttributeNode(P.cloneNode(true))})}}}function K(){return !I.isCollapsed()&&q.getParent(I.getStart(),q.isBlock)!=q.getParent(I.getEnd(),q.isBlock)}function M(N,O){O.preventDefault();return false}e.onKeyPress.add(function(N,P){var O;if(!H(P)&&(P.keyCode==8||P.keyCode==46)&&K()){O=L();N.getDoc().execCommand("delete",false,null);O();P.preventDefault();return false}});q.bind(e.getDoc(),"cut",function(O){var N;if(!H(O)&&K()){N=L();e.onKeyUp.addToTop(M);setTimeout(function(){N();e.onKeyUp.remove(M)},0)}})}function l(){var L,K;q.bind(e.getDoc(),"selectionchange",function(){if(K){clearTimeout(K);K=0}K=window.setTimeout(function(){var M=I.getRng();if(!L||!tinymce.dom.RangeUtils.compareRanges(M,L)){e.nodeChanged();L=M}},50)})}function G(){document.body.setAttribute("role","application")}function D(){e.onKeyDown.add(function(K,M){if(!H(M)&&M.keyCode===x){if(I.isCollapsed()&&I.getRng(true).startOffset===0){var L=I.getNode().previousSibling;if(L&&L.nodeName&&L.nodeName.toLowerCase()==="table"){return tinymce.dom.Event.cancel(M)}}}})}function i(){if(C()>7){return}d("RespectVisibilityInDesign",true);e.contentStyles.push(".mceHideBrInPre pre br {display: none}");q.addClass(e.getBody(),"mceHideBrInPre");c.addNodeFilter("pre",function(K,M){var N=K.length,P,L,Q,O;while(N--){P=K[N].getAll("br");L=P.length;while(L--){Q=P[L];O=Q.prev;if(O&&O.type===3&&O.value.charAt(O.value-1)!="\n"){O.value+="\n"}else{Q.parent.insert(new tinymce.html.Node("#text",3),Q,true).value="\n"}}}});u.addNodeFilter("pre",function(K,M){var N=K.length,P,L,Q,O;while(N--){P=K[N].getAll("br");L=P.length;while(L--){Q=P[L];O=Q.prev;if(O&&O.type==3){O.value=O.value.replace(/\r?\n$/,"")}}}})}function g(){q.bind(e.getBody(),"mouseup",function(M){var L,K=I.getNode();if(K.nodeName=="IMG"){if(L=q.getStyle(K,"width")){q.setAttrib(K,"width",L.replace(/[^0-9%]+/g,""));q.setStyle(K,"width","")}if(L=q.getStyle(K,"height")){q.setAttrib(K,"height",L.replace(/[^0-9%]+/g,""));q.setStyle(K,"height","")}}})}function s(){e.onKeyDown.add(function(Q,R){var P,K,L,N,O,S,M;P=R.keyCode==y;if(!H(R)&&(P||R.keyCode==x)&&!n.modifierPressed(R)){K=I.getRng();L=K.startContainer;N=K.startOffset;M=K.collapsed;if(L.nodeType==3&&L.nodeValue.length>0&&((N===0&&!M)||(M&&N===(P?0:1)))){nonEmptyElements=Q.schema.getNonEmptyElements();R.preventDefault();O=q.create("br",{id:"__tmp"});L.parentNode.insertBefore(O,L);Q.getDoc().execCommand(P?"ForwardDelete":"Delete",false,null);L=I.getRng().startContainer;S=L.previousSibling;if(S&&S.nodeType==1&&!q.isBlock(S)&&q.isEmpty(S)&&!nonEmptyElements[S.nodeName.toLowerCase()]){q.remove(S)}q.remove("__tmp")}}})}function f(){e.onKeyDown.add(function(O,P){var M,L,Q,K,N;if(H(P)||P.keyCode!=n.BACKSPACE){return}M=I.getRng();L=M.startContainer;Q=M.startOffset;K=q.getRoot();N=L;if(!M.collapsed||Q!==0){return}while(N&&N.parentNode&&N.parentNode.firstChild==N&&N.parentNode!=K){N=N.parentNode}if(N.tagName==="BLOCKQUOTE"){O.formatter.toggle("blockquote",null,N);M=q.createRng();M.setStart(L,0);M.setEnd(L,0);I.setRng(M)}})}function m(){function K(){e._refreshContentEditable();d("StyleWithCSS",false);d("enableInlineTableEditing",false);if(!v.object_resizing){d("enableObjectResizing",false)}}if(!v.readonly){e.onBeforeExecCommand.add(K);e.onMouseDown.add(K)}}function p(){function K(L,M){tinymce.each(q.select("a"),function(P){var N=P.parentNode,O=q.getRoot();if(N.lastChild===P){while(N&&!q.isBlock(N)){if(N.parentNode.lastChild!==N||N===O){return}N=N.parentNode}q.add(N,"br",{"data-mce-bogus":1})}})}e.onExecCommand.add(function(L,M){if(M==="CreateLink"){K(L)}});e.onSetContent.add(I.onSetContent.add(K))}function z(){if(v.forced_root_block){e.onInit.add(function(){d("DefaultParagraphSeparator",v.forced_root_block)})}}function a(){function K(M,L){if(!M||!L.initial){e.execCommand("mceRepaint")}}e.onUndo.add(K);e.onRedo.add(K);e.onSetContent.add(K)}function r(){e.onKeyDown.add(function(L,M){var K;if(!H(M)&&M.keyCode==x){K=L.getDoc().selection.createRange();if(K&&K.item){M.preventDefault();L.undoManager.beforeChange();q.remove(K.item(0));L.undoManager.add()}}})}function j(){var K;if(C()>=10){K="";tinymce.each("p div h1 h2 h3 h4 h5 h6".split(" "),function(L,M){K+=(M>0?",":"")+L+":empty"});e.contentStyles.push(K+"{padding-right: 1px !important}")}}function h(){var M,L,ac,K,X,aa,Y,ab,N,O,Z,V,U,W=document,S=e.getDoc();if(!v.object_resizing||v.webkit_fake_resize===false){return}d("enableObjectResizing",false);Z={n:[0.5,0,0,-1],e:[1,0.5,1,0],s:[0.5,1,0,1],w:[0,0.5,-1,0],nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};function Q(ag){var af,ae;af=ag.screenX-aa;ae=ag.screenY-Y;V=af*X[2]+ab;U=ae*X[3]+N;V=V<5?5:V;U=U<5?5:U;if(n.modifierPressed(ag)||(ac.nodeName=="IMG"&&X[2]*X[3]!==0)){V=Math.round(U/O);U=Math.round(V*O)}q.setStyles(K,{width:V,height:U});if(X[2]<0&&K.clientWidth<=V){q.setStyle(K,"left",M+(ab-V))}if(X[3]<0&&K.clientHeight<=U){q.setStyle(K,"top",L+(N-U))}}function ad(){function ae(af,ag){if(ag){if(ac.style[af]||!e.schema.isValid(ac.nodeName.toLowerCase(),af)){q.setStyle(ac,af,ag)}else{q.setAttrib(ac,af,ag)}}}ae("width",V);ae("height",U);q.unbind(S,"mousemove",Q);q.unbind(S,"mouseup",ad);if(W!=S){q.unbind(W,"mousemove",Q);q.unbind(W,"mouseup",ad)}q.remove(K);P(ac)}function P(ah){var af,ag,ae;R();af=q.getPos(ah);M=af.x;L=af.y;ag=ah.offsetWidth;ae=ah.offsetHeight;if(ac!=ah){ac=ah;V=U=0}tinymce.each(Z,function(ak,ai){var aj;aj=q.get("mceResizeHandle"+ai);if(!aj){aj=q.add(S.documentElement,"div",{id:"mceResizeHandle"+ai,"class":"mceResizeHandle",style:"cursor:"+ai+"-resize; margin:0; padding:0"});q.bind(aj,"mousedown",function(al){al.preventDefault();ad();aa=al.screenX;Y=al.screenY;ab=ac.clientWidth;N=ac.clientHeight;O=N/ab;X=ak;K=ac.cloneNode(true);q.addClass(K,"mceClonedResizable");q.setStyles(K,{left:M,top:L,margin:0});S.documentElement.appendChild(K);q.bind(S,"mousemove",Q);q.bind(S,"mouseup",ad);if(W!=S){q.bind(W,"mousemove",Q);q.bind(W,"mouseup",ad)}})}else{q.show(aj)}q.setStyles(aj,{left:(ag*ak[0]+M)-(aj.offsetWidth/2),top:(ae*ak[1]+L)-(aj.offsetHeight/2)})});if(!tinymce.isOpera&&ac.nodeName=="IMG"){ac.setAttribute("data-mce-selected","1")}}function R(){if(ac){ac.removeAttribute("data-mce-selected")}for(var ae in Z){q.hide("mceResizeHandle"+ae)}}e.contentStyles.push(".mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}");function T(){var ae=q.getParent(I.getNode(),"table,img");tinymce.each(q.select("img[data-mce-selected]"),function(af){af.removeAttribute("data-mce-selected")});if(ae){P(ae)}else{R()}}e.onNodeChange.add(T);q.bind(S,"selectionchange",T);e.serializer.addAttributeFilter("data-mce-selected",function(ae,af){var ag=ae.length;while(ag--){ae[ag].attr(af,null)}})}function t(){if(C()<9){c.addNodeFilter("noscript",function(K){var L=K.length,M,N;while(L--){M=K[L];N=M.firstChild;if(N){M.attr("data-mce-innertext",N.value)}}});u.addNodeFilter("noscript",function(K){var L=K.length,M,O,N;while(L--){M=K[L];O=K[L].firstChild;if(O){O.value=tinymce.html.Entities.decode(O.value)}else{N=M.attributes.map["data-mce-innertext"];if(N){M.attr("data-mce-innertext",null);O=new tinymce.html.Node("#text",3);O.value=N;O.raw=true;M.append(O)}}}})}}D();f();J();if(tinymce.isWebKit){s();k();B();F();z();if(tinymce.isIDevice){l()}else{h();A()}}if(tinymce.isIE){o();G();i();g();r();j();t()}if(tinymce.isGecko){o();b();E();m();p();a()}if(tinymce.isOpera){h()}};(function(j){var a,g,d,k=/[&<>\"\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=/[<>&\"\']/g,c=/&(#x|#)?([\w]+);/g,i={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"};g={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;"};d={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};function h(l){var m;m=document.createElement("div");m.innerHTML=l;return m.textContent||m.innerText||l}function e(m,p){var n,o,l,q={};if(m){m=m.split(",");p=p||10;for(n=0;n<m.length;n+=2){o=String.fromCharCode(parseInt(m[n],p));if(!g[o]){l="&"+m[n+1]+";";q[o]=l;q[l]=o}}return q}}a=e("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);j.html=j.html||{};j.html.Entities={encodeRaw:function(m,l){return m.replace(l?k:b,function(n){return g[n]||n})},encodeAllRaw:function(l){return(""+l).replace(f,function(m){return g[m]||m})},encodeNumeric:function(m,l){return m.replace(l?k:b,function(n){if(n.length>1){return"&#"+(((n.charCodeAt(0)-55296)*1024)+(n.charCodeAt(1)-56320)+65536)+";"}return g[n]||"&#"+n.charCodeAt(0)+";"})},encodeNamed:function(n,l,m){m=m||a;return n.replace(l?k:b,function(o){return g[o]||m[o]||o})},getEncodeFunc:function(l,o){var p=j.html.Entities;o=e(o)||a;function m(r,q){return r.replace(q?k:b,function(s){return g[s]||o[s]||"&#"+s.charCodeAt(0)+";"||s})}function n(r,q){return p.encodeNamed(r,q,o)}l=j.makeMap(l.replace(/\+/g,","));if(l.named&&l.numeric){return m}if(l.named){if(o){return n}return p.encodeNamed}if(l.numeric){return p.encodeNumeric}return p.encodeRaw},decode:function(l){return l.replace(c,function(n,m,o){if(m){o=parseInt(o,m.length===2?16:10);if(o>65535){o-=65536;return String.fromCharCode(55296+(o>>10),56320+(o&1023))}else{return i[o]||String.fromCharCode(o)}}return d[n]||a[n]||h(n)})}}})(tinymce);tinymce.html.Styles=function(d,f){var k=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,h=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,b=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,m=/rgb/,e,g,a={},j;d=d||{};j="\\\" \\' \\; \\: ; : \uFEFF".split(" ");for(g=0;g<j.length;g++){a[j[g]]="\uFEFF"+g;a["\uFEFF"+g]=j[g]}function c(n,q,p,i){function o(r){r=parseInt(r).toString(16);return r.length>1?r:"0"+r}return"#"+o(q)+o(p)+o(i)}return{toHex:function(i){return i.replace(k,c)},parse:function(s){var z={},q,n,x,r,v=d.url_converter,y=d.url_converter_scope||this;function p(D,G){var F,C,B,E;F=z[D+"-top"+G];if(!F){return}C=z[D+"-right"+G];if(F!=C){return}B=z[D+"-bottom"+G];if(C!=B){return}E=z[D+"-left"+G];if(B!=E){return}z[D+G]=E;delete z[D+"-top"+G];delete z[D+"-right"+G];delete z[D+"-bottom"+G];delete z[D+"-left"+G]}function u(C){var D=z[C],B;if(!D||D.indexOf(" ")<0){return}D=D.split(" ");B=D.length;while(B--){if(D[B]!==D[0]){return false}}z[C]=D[0];return true}function A(D,C,B,E){if(!u(C)){return}if(!u(B)){return}if(!u(E)){return}z[D]=z[C]+" "+z[B]+" "+z[E];delete z[C];delete z[B];delete z[E]}function t(B){r=true;return a[B]}function i(C,B){if(r){C=C.replace(/\uFEFF[0-9]/g,function(D){return a[D]})}if(!B){C=C.replace(/\\([\'\";:])/g,"$1")}return C}function o(C,B,F,E,G,D){G=G||D;if(G){G=i(G);return"'"+G.replace(/\'/g,"\\'")+"'"}B=i(B||F||E);if(v){B=v.call(y,B,"style")}return"url('"+B.replace(/\'/g,"\\'")+"')"}if(s){s=s.replace(/\\[\"\';:\uFEFF]/g,t).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(B){return B.replace(/[;:]/g,t)});while(q=b.exec(s)){n=q[1].replace(l,"").toLowerCase();x=q[2].replace(l,"");if(n&&x.length>0){if(n==="font-weight"&&x==="700"){x="bold"}else{if(n==="color"||n==="background-color"){x=x.toLowerCase()}}x=x.replace(k,c);x=x.replace(h,o);z[n]=r?i(x,true):x}b.lastIndex=q.index+q[0].length}p("border","");p("border","-width");p("border","-color");p("border","-style");p("padding","");p("margin","");A("border","border-width","border-style","border-color");if(z.border==="medium none"){delete z.border}}return z},serialize:function(p,r){var o="",n,q;function i(t){var x,u,s,v;x=f.styles[t];if(x){for(u=0,s=x.length;u<s;u++){t=x[u];v=p[t];if(v!==e&&v.length>0){o+=(o.length>0?" ":"")+t+": "+v+";"}}}}if(r&&f&&f.styles){i("*");i(r)}else{for(n in p){q=p[n];if(q!==e&&q.length>0){o+=(o.length>0?" ":"")+n+": "+q+";"}}}return o}}};(function(f){var a={},e=f.makeMap,g=f.each;function d(j,i){return j.split(i||",")}function h(m,l){var j,k={};function i(n){return n.replace(/[A-Z]+/g,function(o){return i(m[o])})}for(j in m){if(m.hasOwnProperty(j)){m[j]=i(m[j])}}i(l).replace(/#/g,"#text").replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g,function(q,o,n,p){n=d(n,"|");k[o]={attributes:e(n),attributesOrder:n,children:e(p,"|",{"#comment":{}})}});return k}function b(){var i=a.html5;if(!i){i=a.html5=h({A:"id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"#|a|abbr|area|audio|b|bdo|br|button|canvas|cite|code|command|datalist|del|dfn|em|embed|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|meta|meter|noscript|object|output|progress|q|ruby|samp|script|select|small|span|strong|sub|sup|svg|textarea|time|var|video|wbr",C:"#|a|abbr|area|address|article|aside|audio|b|bdo|blockquote|br|button|canvas|cite|code|command|datalist|del|details|dfn|dialog|div|dl|em|embed|fieldset|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|menu|meta|meter|nav|noscript|ol|object|output|p|pre|progress|q|ruby|samp|script|section|select|small|span|strong|style|sub|sup|svg|table|textarea|time|ul|var|video"},"html[A|manifest][body|head]head[A][base|command|link|meta|noscript|script|style|title]title[A][#]base[A|href|target][]link[A|href|rel|media|type|sizes][]meta[A|http-equiv|name|content|charset][]style[A|type|media|scoped][#]script[A|charset|type|src|defer|async][#]noscript[A][C]body[A][C]section[A][C]nav[A][C]article[A][C]aside[A][C]h1[A][B]h2[A][B]h3[A][B]h4[A][B]h5[A][B]h6[A][B]hgroup[A][h1|h2|h3|h4|h5|h6]header[A][C]footer[A][C]address[A][C]p[A][B]br[A][]pre[A][B]dialog[A][dd|dt]blockquote[A|cite][C]ol[A|start|reversed][li]ul[A][li]li[A|value][C]dl[A][dd|dt]dt[A][B]dd[A][C]a[A|href|target|ping|rel|media|type][B]em[A][B]strong[A][B]small[A][B]cite[A][B]q[A|cite][B]dfn[A][B]abbr[A][B]code[A][B]var[A][B]samp[A][B]kbd[A][B]sub[A][B]sup[A][B]i[A][B]b[A][B]mark[A][B]progress[A|value|max][B]meter[A|value|min|max|low|high|optimum][B]time[A|datetime][B]ruby[A][B|rt|rp]rt[A][B]rp[A][B]bdo[A][B]span[A][B]ins[A|cite|datetime][B]del[A|cite|datetime][B]figure[A][C|legend|figcaption]figcaption[A][C]img[A|alt|src|height|width|usemap|ismap][]iframe[A|name|src|height|width|sandbox|seamless][]embed[A|src|height|width|type][]object[A|data|type|height|width|usemap|name|form|classid][param]param[A|name|value][]details[A|open][C|legend]command[A|type|label|icon|disabled|checked|radiogroup][]menu[A|type|label][C|li]legend[A][C|B]div[A][C]source[A|src|type|media][]audio[A|src|autobuffer|autoplay|loop|controls][source]video[A|src|autobuffer|autoplay|loop|controls|width|height|poster][source]hr[A][]form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target][C]fieldset[A|disabled|form|name][C|legend]label[A|form|for][B]input[A|type|accept|alt|autocomplete|autofocus|checked|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|height|list|max|maxlength|min|multiple|pattern|placeholder|readonly|required|size|src|step|width|files|value|name][]button[A|autofocus|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|name|value|type][B]select[A|autofocus|disabled|form|multiple|name|size][option|optgroup]datalist[A][B|option]optgroup[A|disabled|label][option]option[A|disabled|selected|label|value][]textarea[A|autofocus|disabled|form|maxlength|name|placeholder|readonly|required|rows|cols|wrap][]keygen[A|autofocus|challenge|disabled|form|keytype|name][]output[A|for|form|name][B]canvas[A|width|height][]map[A|name][B|C]area[A|shape|coords|href|alt|target|media|rel|ping|type][]mathml[A][]svg[A][]table[A|border][caption|colgroup|thead|tfoot|tbody|tr]caption[A][C]colgroup[A|span][col]col[A|span][]thead[A][tr]tfoot[A][tr]tbody[A][tr]tr[A][th|td]th[A|headers|rowspan|colspan|scope][B]td[A|headers|rowspan|colspan][C]wbr[A][]")}return i}function c(){var i=a.html4;if(!i){i=a.html4=h({Z:"H|K|N|O|P",Y:"X|form|R|Q",ZG:"E|span|width|align|char|charoff|valign",X:"p|T|div|U|W|isindex|fieldset|table",ZF:"E|align|char|charoff|valign",W:"pre|hr|blockquote|address|center|noframes",ZE:"abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height",ZD:"[E][S]",U:"ul|ol|dl|menu|dir",ZC:"p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q",T:"h1|h2|h3|h4|h5|h6",ZB:"X|S|Q",S:"R|P",ZA:"a|G|J|M|O|P",R:"a|H|K|N|O",Q:"noscript|P",P:"ins|del|script",O:"input|select|textarea|label|button",N:"M|L",M:"em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym",L:"sub|sup",K:"J|I",J:"tt|i|b|u|s|strike",I:"big|small|font|basefont",H:"G|F",G:"br|span|bdo",F:"object|applet|img|map|iframe",E:"A|B|C",D:"accesskey|tabindex|onfocus|onblur",C:"onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"lang|xml:lang|dir",A:"id|class|style|title"},"script[id|charset|type|language|src|defer|xml:space][]style[B|id|type|media|title|xml:space][]object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]param[id|name|value|valuetype|type][]p[E|align][#|S]a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]br[A|clear][]span[E][#|S]bdo[A|C|B][#|S]applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]h1[E|align][#|S]img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]map[B|C|A|name][X|form|Q|area]h2[E|align][#|S]iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]h3[E|align][#|S]tt[E][#|S]i[E][#|S]b[E][#|S]u[E][#|S]s[E][#|S]strike[E][#|S]big[E][#|S]small[E][#|S]font[A|B|size|color|face][#|S]basefont[id|size|color|face][]em[E][#|S]strong[E][#|S]dfn[E][#|S]code[E][#|S]q[E|cite][#|S]samp[E][#|S]kbd[E][#|S]var[E][#|S]cite[E][#|S]abbr[E][#|S]acronym[E][#|S]sub[E][#|S]sup[E][#|S]input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]optgroup[E|disabled|label][option]option[E|selected|disabled|label|value][]textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]label[E|for|accesskey|onfocus|onblur][#|S]button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]h4[E|align][#|S]ins[E|cite|datetime][#|Y]h5[E|align][#|S]del[E|cite|datetime][#|Y]h6[E|align][#|S]div[E|align][#|Y]ul[E|type|compact][li]li[E|type|value][#|Y]ol[E|type|compact|start][li]dl[E|compact][dt|dd]dt[E][#|S]dd[E][#|Y]menu[E|compact][li]dir[E|compact][li]pre[E|width|xml:space][#|ZA]hr[E|align|noshade|size|width][]blockquote[E|cite][#|Y]address[E][#|S|p]center[E][#|Y]noframes[E][#|Y]isindex[A|B|prompt][]fieldset[E][#|legend|Y]legend[E|accesskey|align][#|S]table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]caption[E|align][#|S]col[ZG][]colgroup[ZG][col]thead[ZF][tr]tr[ZF|bgcolor][th|td]th[E|ZE][#|Y]form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]noscript[E][#|Y]td[E|ZE][#|Y]tfoot[ZF][tr]tbody[ZF][tr]area[E|D|shape|coords|href|nohref|alt|target][]base[id|href|target][]body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]")}return i}f.html.Schema=function(A){var u=this,s={},k={},j=[],D,y;var o,q,z,r,v,n,p={};function m(F,E,H){var G=A[F];if(!G){G=a[F];if(!G){G=e(E," ",e(E.toUpperCase()," "));G=f.extend(G,H);a[F]=G}}else{G=e(G,",",e(G.toUpperCase()," "))}return G}A=A||{};y=A.schema=="html5"?b():c();if(A.verify_html===false){A.valid_elements="*[*]"}if(A.valid_styles){D={};g(A.valid_styles,function(F,E){D[E]=f.explode(F)})}o=m("whitespace_elements","pre script noscript style textarea");q=m("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr");z=m("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr");r=m("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls");n=m("non_empty_elements","td th iframe video audio object",z);textBlockElementsMap=m("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure");v=m("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex samp option datalist select optgroup",textBlockElementsMap);function i(E){return new RegExp("^"+E.replace(/([?+*])/g,".$1")+"$")}function C(L){var K,G,Z,V,aa,F,I,U,X,Q,Y,ac,O,J,W,E,S,H,ab,ad,P,T,N=/^([#+\-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,R=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,M=/[*?+]/;if(L){L=d(L);if(s["@"]){S=s["@"].attributes;H=s["@"].attributesOrder}for(K=0,G=L.length;K<G;K++){F=N.exec(L[K]);if(F){W=F[1];Q=F[2];E=F[3];X=F[4];O={};J=[];I={attributes:O,attributesOrder:J};if(W==="#"){I.paddEmpty=true}if(W==="-"){I.removeEmpty=true}if(S){for(ad in S){O[ad]=S[ad]}J.push.apply(J,H)}if(X){X=d(X,"|");for(Z=0,V=X.length;Z<V;Z++){F=R.exec(X[Z]);if(F){U={};ac=F[1];Y=F[2].replace(/::/g,":");W=F[3];T=F[4];if(ac==="!"){I.attributesRequired=I.attributesRequired||[];I.attributesRequired.push(Y);U.required=true}if(ac==="-"){delete O[Y];J.splice(f.inArray(J,Y),1);continue}if(W){if(W==="="){I.attributesDefault=I.attributesDefault||[];I.attributesDefault.push({name:Y,value:T});U.defaultValue=T}if(W===":"){I.attributesForced=I.attributesForced||[];I.attributesForced.push({name:Y,value:T});U.forcedValue=T}if(W==="<"){U.validValues=e(T,"?")}}if(M.test(Y)){I.attributePatterns=I.attributePatterns||[];U.pattern=i(Y);I.attributePatterns.push(U)}else{if(!O[Y]){J.push(Y)}O[Y]=U}}}}if(!S&&Q=="@"){S=O;H=J}if(E){I.outputName=Q;s[E]=I}if(M.test(Q)){I.pattern=i(Q);j.push(I)}else{s[Q]=I}}}}}function t(E){s={};j=[];C(E);g(y,function(G,F){k[F]=G.children})}function l(F){var E=/^(~)?(.+)$/;if(F){g(d(F),function(J){var H=E.exec(J),I=H[1]==="~",K=I?"span":"div",G=H[2];k[G]=k[K];p[G]=K;if(!I){v[G.toUpperCase()]={};v[G]={}}if(!s[G]){s[G]=s[K]}g(k,function(L,M){if(L[K]){L[G]=L[K]}})})}}function x(F){var E=/^([+\-]?)(\w+)\[([^\]]+)\]$/;if(F){g(d(F),function(J){var I=E.exec(J),G,H;if(I){H=I[1];if(H){G=k[I[2]]}else{G=k[I[2]]={"#comment":{}}}G=k[I[2]];g(d(I[3],"|"),function(K){if(H==="-"){delete G[K]}else{G[K]={}}})}})}}function B(E){var G=s[E],F;if(G){return G}F=j.length;while(F--){G=j[F];if(G.pattern.test(E)){return G}}}if(!A.valid_elements){g(y,function(F,E){s[E]={attributes:F.attributes,attributesOrder:F.attributesOrder};k[E]=F.children});if(A.schema!="html5"){g(d("strong/b,em/i"),function(E){E=d(E,"/");s[E[1]].outputName=E[0]})}s.img.attributesDefault=[{name:"alt",value:""}];g(d("ol,ul,sub,sup,blockquote,span,font,a,table,tbody,tr,strong,em,b,i"),function(E){if(s[E]){s[E].removeEmpty=true}});g(d("p,h1,h2,h3,h4,h5,h6,th,td,pre,div,address,caption"),function(E){s[E].paddEmpty=true})}else{t(A.valid_elements)}l(A.custom_elements);x(A.valid_children);C(A.extended_valid_elements);x("+ol[ul|ol],+ul[ul|ol]");if(A.invalid_elements){f.each(f.explode(A.invalid_elements),function(E){if(s[E]){delete s[E]}})}if(!B("span")){C("span[!data-mce-type|*]")}u.children=k;u.styles=D;u.getBoolAttrs=function(){return r};u.getBlockElements=function(){return v};u.getTextBlockElements=function(){return textBlockElementsMap};u.getShortEndedElements=function(){return z};u.getSelfClosingElements=function(){return q};u.getNonEmptyElements=function(){return n};u.getWhiteSpaceElements=function(){return o};u.isValidChild=function(E,G){var F=k[E];return !!(F&&F[G])};u.isValid=function(F,E){var H,G,I=B(F);if(I){if(E){if(I.attributes[E]){return true}H=I.attributePatterns;if(H){G=H.length;while(G--){if(H[G].pattern.test(F)){return true}}}}else{return true}}return false};u.getElementRule=B;u.getCustomElements=function(){return p};u.addValidElements=C;u.setValidElements=t;u.addCustomElements=l;u.addValidChildren=x;u.elements=s}})(tinymce);(function(a){a.html.SaxParser=function(c,e){var b=this,d=function(){};c=c||{};b.schema=e=e||new a.html.Schema();if(c.fix_self_closing!==false){c.fix_self_closing=true}a.each("comment cdata text start end pi doctype".split(" "),function(f){if(f){b[f]=c[f]||d}});b.parse=function(E){var n=this,g,G=0,I,B,A=[],N,Q,C,r,z,s,M,H,O,v,m,k,t,R,o,P,F,S,L,f,J,l,D,K,h,x=0,j=a.html.Entities.decode,y,q;function u(T){var V,U;V=A.length;while(V--){if(A[V].name===T){break}}if(V>=0){for(U=A.length-1;U>=V;U--){T=A[U];if(T.valid){n.end(T.name)}}A.length=V}}function p(U,T,Y,X,W){var Z,V;T=T.toLowerCase();Y=T in H?T:j(Y||X||W||"");if(v&&!z&&T.indexOf("data-mce-")!==0){Z=P[T];if(!Z&&F){V=F.length;while(V--){Z=F[V];if(Z.pattern.test(T)){break}}if(V===-1){Z=null}}if(!Z){return}if(Z.validValues&&!(Y in Z.validValues)){return}}N.map[T]=Y;N.push({name:T,value:Y})}l=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([A-Za-z0-9\\-\\:\\.]+)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g");D=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g;K={script:/<\/script[^>]*>/gi,style:/<\/style[^>]*>/gi,noscript:/<\/noscript[^>]*>/gi};M=e.getShortEndedElements();J=c.self_closing_elements||e.getSelfClosingElements();H=e.getBoolAttrs();v=c.validate;s=c.remove_internals;y=c.fix_self_closing;q=a.isIE;o=/^:/;while(g=l.exec(E)){if(G<g.index){n.text(j(E.substr(G,g.index-G)))}if(I=g[6]){I=I.toLowerCase();if(q&&o.test(I)){I=I.substr(1)}u(I)}else{if(I=g[7]){I=I.toLowerCase();if(q&&o.test(I)){I=I.substr(1)}O=I in M;if(y&&J[I]&&A.length>0&&A[A.length-1].name===I){u(I)}if(!v||(m=e.getElementRule(I))){k=true;if(v){P=m.attributes;F=m.attributePatterns}if(R=g[8]){z=R.indexOf("data-mce-type")!==-1;if(z&&s){k=false}N=[];N.map={};R.replace(D,p)}else{N=[];N.map={}}if(v&&!z){S=m.attributesRequired;L=m.attributesDefault;f=m.attributesForced;if(f){Q=f.length;while(Q--){t=f[Q];r=t.name;h=t.value;if(h==="{$uid}"){h="mce_"+x++}N.map[r]=h;N.push({name:r,value:h})}}if(L){Q=L.length;while(Q--){t=L[Q];r=t.name;if(!(r in N.map)){h=t.value;if(h==="{$uid}"){h="mce_"+x++}N.map[r]=h;N.push({name:r,value:h})}}}if(S){Q=S.length;while(Q--){if(S[Q] in N.map){break}}if(Q===-1){k=false}}if(N.map["data-mce-bogus"]){k=false}}if(k){n.start(I,N,O)}}else{k=false}if(B=K[I]){B.lastIndex=G=g.index+g[0].length;if(g=B.exec(E)){if(k){C=E.substr(G,g.index-G)}G=g.index+g[0].length}else{C=E.substr(G);G=E.length}if(k&&C.length>0){n.text(C,true)}if(k){n.end(I)}l.lastIndex=G;continue}if(!O){if(!R||R.indexOf("/")!=R.length-1){A.push({name:I,valid:k})}else{if(k){n.end(I)}}}}else{if(I=g[1]){n.comment(I)}else{if(I=g[2]){n.cdata(I)}else{if(I=g[3]){n.doctype(I)}else{if(I=g[4]){n.pi(I,g[5])}}}}}}G=g.index+g[0].length}if(G<E.length){n.text(j(E.substr(G)))}for(Q=A.length-1;Q>=0;Q--){I=A[Q];if(I.valid){n.end(I.name)}}}}})(tinymce);(function(d){var c=/^[ \t\r\n]*$/,e={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};function a(k,l,j){var i,h,f=j?"lastChild":"firstChild",g=j?"prev":"next";if(k[f]){return k[f]}if(k!==l){i=k[g];if(i){return i}for(h=k.parent;h&&h!==l;h=h.parent){i=h[g];if(i){return i}}}}function b(f,g){this.name=f;this.type=g;if(g===1){this.attributes=[];this.attributes.map={}}}d.extend(b.prototype,{replace:function(g){var f=this;if(g.parent){g.remove()}f.insert(g,f);f.remove();return f},attr:function(h,l){var f=this,g,j,k;if(typeof h!=="string"){for(j in h){f.attr(j,h[j])}return f}if(g=f.attributes){if(l!==k){if(l===null){if(h in g.map){delete g.map[h];j=g.length;while(j--){if(g[j].name===h){g=g.splice(j,1);return f}}}return f}if(h in g.map){j=g.length;while(j--){if(g[j].name===h){g[j].value=l;break}}}else{g.push({name:h,value:l})}g.map[h]=l;return f}else{return g.map[h]}}},clone:function(){var g=this,n=new b(g.name,g.type),h,f,m,j,k;if(m=g.attributes){k=[];k.map={};for(h=0,f=m.length;h<f;h++){j=m[h];if(j.name!=="id"){k[k.length]={name:j.name,value:j.value};k.map[j.name]=j.value}}n.attributes=k}n.value=g.value;n.shortEnded=g.shortEnded;return n},wrap:function(g){var f=this;f.parent.insert(g,f);g.append(f);return f},unwrap:function(){var f=this,h,g;for(h=f.firstChild;h;){g=h.next;f.insert(h,f,true);h=g}f.remove()},remove:function(){var f=this,h=f.parent,g=f.next,i=f.prev;if(h){if(h.firstChild===f){h.firstChild=g;if(g){g.prev=null}}else{i.next=g}if(h.lastChild===f){h.lastChild=i;if(i){i.next=null}}else{g.prev=i}f.parent=f.next=f.prev=null}return f},append:function(h){var f=this,g;if(h.parent){h.remove()}g=f.lastChild;if(g){g.next=h;h.prev=g;f.lastChild=h}else{f.lastChild=f.firstChild=h}h.parent=f;return h},insert:function(h,f,i){var g;if(h.parent){h.remove()}g=f.parent||this;if(i){if(f===g.firstChild){g.firstChild=h}else{f.prev.next=h}h.prev=f.prev;h.next=f;f.prev=h}else{if(f===g.lastChild){g.lastChild=h}else{f.next.prev=h}h.next=f.next;h.prev=f;f.next=h}h.parent=g;return h},getAll:function(g){var f=this,h,i=[];for(h=f.firstChild;h;h=a(h,f)){if(h.name===g){i.push(h)}}return i},empty:function(){var g=this,f,h,j;if(g.firstChild){f=[];for(j=g.firstChild;j;j=a(j,g)){f.push(j)}h=f.length;while(h--){j=f[h];j.parent=j.firstChild=j.lastChild=j.next=j.prev=null}}g.firstChild=g.lastChild=null;return g},isEmpty:function(k){var f=this,j=f.firstChild,h,g;if(j){do{if(j.type===1){if(j.attributes.map["data-mce-bogus"]){continue}if(k[j.name]){return false}h=j.attributes.length;while(h--){g=j.attributes[h].name;if(g==="name"||g.indexOf("data-mce-")===0){return false}}}if(j.type===8){return false}if((j.type===3&&!c.test(j.value))){return false}}while(j=a(j,f))}return true},walk:function(f){return a(this,null,f)}});d.extend(b,{create:function(g,f){var i,h;i=new b(g,e[g]||1);if(f){for(h in f){i.attr(h,f[h])}}return i}});d.html.Node=b})(tinymce);(function(b){var a=b.html.Node;b.html.DomParser=function(g,h){var f=this,e={},d=[],i={},c={};g=g||{};g.validate="validate" in g?g.validate:true;g.root_name=g.root_name||"body";f.schema=h=h||new b.html.Schema();function j(n){var p,q,y,x,A,o,r,l,u,v,k,t,m,z,s;t=b.makeMap("tr,td,th,tbody,thead,tfoot,table");k=h.getNonEmptyElements();m=h.getTextBlockElements();for(p=0;p<n.length;p++){q=n[p];if(!q.parent||q.fixed){continue}if(m[q.name]&&q.parent.name=="li"){z=q.next;while(z){if(m[z.name]){z.name="li";z.fixed=true;q.parent.insert(z,q.parent)}else{break}z=z.next}q.unwrap(q);continue}x=[q];for(y=q.parent;y&&!h.isValidChild(y.name,q.name)&&!t[y.name];y=y.parent){x.push(y)}if(y&&x.length>1){x.reverse();A=o=f.filterNode(x[0].clone());for(u=0;u<x.length-1;u++){if(h.isValidChild(o.name,x[u].name)){r=f.filterNode(x[u].clone());o.append(r)}else{r=o}for(l=x[u].firstChild;l&&l!=x[u+1];){s=l.next;r.append(l);l=s}o=r}if(!A.isEmpty(k)){y.insert(A,x[0],true);y.insert(q,A)}else{y.insert(q,x[0],true)}y=x[0];if(y.isEmpty(k)||y.firstChild===y.lastChild&&y.firstChild.name==="br"){y.empty().remove()}}else{if(q.parent){if(q.name==="li"){z=q.prev;if(z&&(z.name==="ul"||z.name==="ul")){z.append(q);continue}z=q.next;if(z&&(z.name==="ul"||z.name==="ul")){z.insert(q,z.firstChild,true);continue}q.wrap(f.filterNode(new a("ul",1)));continue}if(h.isValidChild(q.parent.name,"div")&&h.isValidChild("div",q.name)){q.wrap(f.filterNode(new a("div",1)))}else{if(q.name==="style"||q.name==="script"){q.empty().remove()}else{q.unwrap()}}}}}}f.filterNode=function(m){var l,k,n;if(k in e){n=i[k];if(n){n.push(m)}else{i[k]=[m]}}l=d.length;while(l--){k=d[l].name;if(k in m.attributes.map){n=c[k];if(n){n.push(m)}else{c[k]=[m]}}}return m};f.addNodeFilter=function(k,l){b.each(b.explode(k),function(m){var n=e[m];if(!n){e[m]=n=[]}n.push(l)})};f.addAttributeFilter=function(k,l){b.each(b.explode(k),function(m){var n;for(n=0;n<d.length;n++){if(d[n].name===m){d[n].callbacks.push(l);return}}d.push({name:m,callbacks:[l]})})};f.parse=function(v,m){var n,J,B,A,D,C,x,r,F,N,z,o,E,M=[],L,t,k,y,s,p,u,q;m=m||{};i={};c={};o=b.extend(b.makeMap("script,style,head,html,body,title,meta,param"),h.getBlockElements());u=h.getNonEmptyElements();p=h.children;z=g.validate;q="forced_root_block" in m?m.forced_root_block:g.forced_root_block;s=h.getWhiteSpaceElements();E=/^[ \t\r\n]+/;t=/[ \t\r\n]+$/;k=/[ \t\r\n]+/g;y=/^[ \t\r\n]+$/;function G(){var O=J.firstChild,l,P;while(O){l=O.next;if(O.type==3||(O.type==1&&O.name!=="p"&&!o[O.name]&&!O.attr("data-mce-type"))){if(!P){P=K(q,1);J.insert(P,O);P.append(O)}else{P.append(O)}}else{P=null}O=l}}function K(l,O){var P=new a(l,O),Q;if(l in e){Q=i[l];if(Q){Q.push(P)}else{i[l]=[P]}}return P}function I(P){var Q,l,O;for(Q=P.prev;Q&&Q.type===3;){l=Q.value.replace(t,"");if(l.length>0){Q.value=l;Q=Q.prev}else{O=Q.prev;Q.remove();Q=O}}}function H(O){var P,l={};for(P in O){if(P!=="li"&&P!="p"){l[P]=O[P]}}return l}n=new b.html.SaxParser({validate:z,self_closing_elements:H(h.getSelfClosingElements()),cdata:function(l){B.append(K("#cdata",4)).value=l},text:function(P,l){var O;if(!L){P=P.replace(k," ");if(B.lastChild&&o[B.lastChild.name]){P=P.replace(E,"")}}if(P.length!==0){O=K("#text",3);O.raw=!!l;B.append(O).value=P}},comment:function(l){B.append(K("#comment",8)).value=l},pi:function(l,O){B.append(K(l,7)).value=O;I(B)},doctype:function(O){var l;l=B.append(K("#doctype",10));l.value=O;I(B)},start:function(l,W,P){var U,R,Q,O,S,X,V,T;Q=z?h.getElementRule(l):{};if(Q){U=K(Q.outputName||l,1);U.attributes=W;U.shortEnded=P;B.append(U);T=p[B.name];if(T&&p[U.name]&&!T[U.name]){M.push(U)}R=d.length;while(R--){S=d[R].name;if(S in W.map){F=c[S];if(F){F.push(U)}else{c[S]=[U]}}}if(o[l]){I(U)}if(!P){B=U}if(!L&&s[l]){L=true}}},end:function(l){var S,P,R,O,Q;P=z?h.getElementRule(l):{};if(P){if(o[l]){if(!L){S=B.firstChild;if(S&&S.type===3){R=S.value.replace(E,"");if(R.length>0){S.value=R;S=S.next}else{O=S.next;S.remove();S=O}while(S&&S.type===3){R=S.value;O=S.next;if(R.length===0||y.test(R)){S.remove();S=O}S=O}}S=B.lastChild;if(S&&S.type===3){R=S.value.replace(t,"");if(R.length>0){S.value=R;S=S.prev}else{O=S.prev;S.remove();S=O}while(S&&S.type===3){R=S.value;O=S.prev;if(R.length===0||y.test(R)){S.remove();S=O}S=O}}}}if(L&&s[l]){L=false}if(P.removeEmpty||P.paddEmpty){if(B.isEmpty(u)){if(P.paddEmpty){B.empty().append(new a("#text","3")).value="\u00a0"}else{if(!B.attributes.map.name&&!B.attributes.map.id){Q=B.parent;B.empty().remove();B=Q;return}}}}B=B.parent}}},h);J=B=new a(m.context||g.root_name,11);n.parse(v);if(z&&M.length){if(!m.context){j(M)}else{m.invalid=true}}if(q&&J.name=="body"){G()}if(!m.invalid){for(N in i){F=e[N];A=i[N];x=A.length;while(x--){if(!A[x].parent){A.splice(x,1)}}for(D=0,C=F.length;D<C;D++){F[D](A,N,m)}}for(D=0,C=d.length;D<C;D++){F=d[D];if(F.name in c){A=c[F.name];x=A.length;while(x--){if(!A[x].parent){A.splice(x,1)}}for(x=0,r=F.callbacks.length;x<r;x++){F.callbacks[x](A,F.name,m)}}}}return J};if(g.remove_trailing_brs){f.addNodeFilter("br",function(n,m){var r,q=n.length,o,v=b.extend({},h.getBlockElements()),k=h.getNonEmptyElements(),t,s,p,u;v.body=1;for(r=0;r<q;r++){o=n[r];t=o.parent;if(v[o.parent.name]&&o===t.lastChild){p=o.prev;while(p){u=p.name;if(u!=="span"||p.attr("data-mce-type")!=="bookmark"){if(u!=="br"){break}if(u==="br"){o=null;break}}p=p.prev}if(o){o.remove();if(t.isEmpty(k)){elementRule=h.getElementRule(t.name);if(elementRule){if(elementRule.removeEmpty){t.remove()}else{if(elementRule.paddEmpty){t.empty().append(new b.html.Node("#text",3)).value="\u00a0"}}}}}}else{s=o;while(t.firstChild===s&&t.lastChild===s){s=t;if(v[t.name]){break}t=t.parent}if(s===t){textNode=new b.html.Node("#text",3);textNode.value="\u00a0";o.replace(textNode)}}}})}if(!g.allow_html_in_named_anchor){f.addAttributeFilter("id,name",function(k,l){var n=k.length,p,m,o,q;while(n--){q=k[n];if(q.name==="a"&&q.firstChild&&!q.attr("href")){o=q.parent;p=q.lastChild;do{m=p.prev;o.insert(p,q);p=m}while(p)}}})}}})(tinymce);tinymce.html.Writer=function(e){var c=[],a,b,d,f,g;e=e||{};a=e.indent;b=tinymce.makeMap(e.indent_before||"");d=tinymce.makeMap(e.indent_after||"");f=tinymce.html.Entities.getEncodeFunc(e.entity_encoding||"raw",e.entities);g=e.element_format=="html";return{start:function(m,k,p){var n,j,h,o;if(a&&b[m]&&c.length>0){o=c[c.length-1];if(o.length>0&&o!=="\n"){c.push("\n")}}c.push("<",m);if(k){for(n=0,j=k.length;n<j;n++){h=k[n];c.push(" ",h.name,'="',f(h.value,true),'"')}}if(!p||g){c[c.length]=">"}else{c[c.length]=" />"}if(p&&a&&d[m]&&c.length>0){o=c[c.length-1];if(o.length>0&&o!=="\n"){c.push("\n")}}},end:function(h){var i;c.push("</",h,">");if(a&&d[h]&&c.length>0){i=c[c.length-1];if(i.length>0&&i!=="\n"){c.push("\n")}}},text:function(i,h){if(i.length>0){c[c.length]=h?i:f(i)}},cdata:function(h){c.push("<![CDATA[",h,"]]>")},comment:function(h){c.push("<!--",h,"-->")},pi:function(h,i){if(i){c.push("<?",h," ",i,"?>")}else{c.push("<?",h,"?>")}if(a){c.push("\n")}},doctype:function(h){c.push("<!DOCTYPE",h,">",a?"\n":"")},reset:function(){c.length=0},getContent:function(){return c.join("").replace(/\n$/,"")}}};(function(a){a.html.Serializer=function(c,d){var b=this,e=new a.html.Writer(c);c=c||{};c.validate="validate" in c?c.validate:true;b.schema=d=d||new a.html.Schema();b.writer=e;b.serialize=function(h){var g,i;i=c.validate;g={3:function(k,j){e.text(k.value,k.raw)},8:function(j){e.comment(j.value)},7:function(j){e.pi(j.name,j.value)},10:function(j){e.doctype(j.value)},4:function(j){e.cdata(j.value)},11:function(j){if((j=j.firstChild)){do{f(j)}while(j=j.next)}}};e.reset();function f(k){var t=g[k.type],j,o,s,r,p,u,n,m,q;if(!t){j=k.name;o=k.shortEnded;s=k.attributes;if(i&&s&&s.length>1){u=[];u.map={};q=d.getElementRule(k.name);for(n=0,m=q.attributesOrder.length;n<m;n++){r=q.attributesOrder[n];if(r in s.map){p=s.map[r];u.map[r]=p;u.push({name:r,value:p})}}for(n=0,m=s.length;n<m;n++){r=s[n].name;if(!(r in u.map)){p=s.map[r];u.map[r]=p;u.push({name:r,value:p})}}s=u}e.start(k.name,s,o);if(!o){if((k=k.firstChild)){do{f(k)}while(k=k.next)}e.end(j)}}else{t(k)}}if(h.type==1&&!c.inner){f(h)}else{g[11](h)}return e.getContent()}}})(tinymce);tinymce.dom={};(function(b,h){var g=!!document.addEventListener;function c(k,j,l,i){if(k.addEventListener){k.addEventListener(j,l,i||false)}else{if(k.attachEvent){k.attachEvent("on"+j,l)}}}function e(k,j,l,i){if(k.removeEventListener){k.removeEventListener(j,l,i||false)}else{if(k.detachEvent){k.detachEvent("on"+j,l)}}}function a(n,l){var i,k=l||{};function j(){return false}function m(){return true}for(i in n){if(i!=="layerX"&&i!=="layerY"){k[i]=n[i]}}if(!k.target){k.target=k.srcElement||document}k.preventDefault=function(){k.isDefaultPrevented=m;if(n){if(n.preventDefault){n.preventDefault()}else{n.returnValue=false}}};k.stopPropagation=function(){k.isPropagationStopped=m;if(n){if(n.stopPropagation){n.stopPropagation()}else{n.cancelBubble=true}}};k.stopImmediatePropagation=function(){k.isImmediatePropagationStopped=m;k.stopPropagation()};if(!k.isDefaultPrevented){k.isDefaultPrevented=j;k.isPropagationStopped=j;k.isImmediatePropagationStopped=j}return k}function d(m,n,l){var k=m.document,j={type:"ready"};function i(){if(!l.domLoaded){l.domLoaded=true;n(j)}}if(k.readyState=="complete"){i();return}if(g){c(m,"DOMContentLoaded",i)}else{c(k,"readystatechange",function(){if(k.readyState==="complete"){e(k,"readystatechange",arguments.callee);i()}});if(k.documentElement.doScroll&&m===m.top){(function(){try{k.documentElement.doScroll("left")}catch(o){setTimeout(arguments.callee,0);return}i()})()}}c(m,"load",i)}function f(k){var q=this,p={},i,o,n,m,l;m="onmouseenter" in document.documentElement;n="onfocusin" in document.documentElement;l={mouseenter:"mouseover",mouseleave:"mouseout"};i=1;q.domLoaded=false;q.events=p;function j(t,x){var s,u,r,v;s=p[x][t.type];if(s){for(u=0,r=s.length;u<r;u++){v=s[u];if(v&&v.func.call(v.scope,t)===false){t.preventDefault()}if(t.isImmediatePropagationStopped()){return}}}}q.bind=function(x,A,D,E){var s,t,u,r,B,z,C,v=window;function y(F){j(a(F||v.event),s)}if(!x||x.nodeType===3||x.nodeType===8){return}if(!x[h]){s=i++;x[h]=s;p[s]={}}else{s=x[h];if(!p[s]){p[s]={}}}E=E||x;A=A.split(" ");u=A.length;while(u--){r=A[u];z=y;B=C=false;if(r==="DOMContentLoaded"){r="ready"}if((q.domLoaded||x.readyState=="complete")&&r==="ready"){q.domLoaded=true;D.call(E,a({type:r}));continue}if(!m){B=l[r];if(B){z=function(F){var H,G;H=F.currentTarget;G=F.relatedTarget;if(G&&H.contains){G=H.contains(G)}else{while(G&&G!==H){G=G.parentNode}}if(!G){F=a(F||v.event);F.type=F.type==="mouseout"?"mouseleave":"mouseenter";F.target=H;j(F,s)}}}}if(!n&&(r==="focusin"||r==="focusout")){C=true;B=r==="focusin"?"focus":"blur";z=function(F){F=a(F||v.event);F.type=F.type==="focus"?"focusin":"focusout";j(F,s)}}t=p[s][r];if(!t){p[s][r]=t=[{func:D,scope:E}];t.fakeName=B;t.capture=C;t.nativeHandler=z;if(!g){t.proxyHandler=k(s)}if(r==="ready"){d(x,z,q)}else{c(x,B||r,g?z:t.proxyHandler,C)}}else{t.push({func:D,scope:E})}}x=t=0;return D};q.unbind=function(x,z,A){var s,u,v,B,r,t;if(!x||x.nodeType===3||x.nodeType===8){return q}s=x[h];if(s){t=p[s];if(z){z=z.split(" ");v=z.length;while(v--){r=z[v];u=t[r];if(u){if(A){B=u.length;while(B--){if(u[B].func===A){u.splice(B,1)}}}if(!A||u.length===0){delete t[r];e(x,u.fakeName||r,g?u.nativeHandler:u.proxyHandler,u.capture)}}}}else{for(r in t){u=t[r];e(x,u.fakeName||r,g?u.nativeHandler:u.proxyHandler,u.capture)}t={}}for(r in t){return q}delete p[s];try{delete x[h]}catch(y){x[h]=null}}return q};q.fire=function(u,s,r){var v,t;if(!u||u.nodeType===3||u.nodeType===8){return q}t=a(null,r);t.type=s;do{v=u[h];if(v){j(t,v)}u=u.parentNode||u.ownerDocument||u.defaultView||u.parentWindow}while(u&&!t.isPropagationStopped());return q};q.clean=function(u){var s,r,t=q.unbind;if(!u||u.nodeType===3||u.nodeType===8){return q}if(u[h]){t(u)}if(!u.getElementsByTagName){u=u.document}if(u&&u.getElementsByTagName){t(u);r=u.getElementsByTagName("*");s=r.length;while(s--){u=r[s];if(u[h]){t(u)}}}return q};q.callNativeHandler=function(s,r){if(p){p[s][r.type].nativeHandler(r)}};q.destory=function(){p={}};q.add=function(v,s,u,t){if(typeof(v)==="string"){v=document.getElementById(v)}if(v&&v instanceof Array){var r=v.length;while(r--){q.add(v[r],s,u,t)}return}if(s==="init"){s="ready"}return q.bind(v,s instanceof Array?s.join(" "):s,u,t)};q.remove=function(v,s,u,t){if(!v){return q}if(typeof(v)==="string"){v=document.getElementById(v)}if(v instanceof Array){var r=v.length;while(r--){q.remove(v[r],s,u,t)}return q}return q.unbind(v,s instanceof Array?s.join(" "):s,u)};q.clear=function(r){if(typeof(r)==="string"){r=document.getElementById(r)}return q.clean(r)};q.cancel=function(r){if(r){q.prevent(r);q.stop(r)}return false};q.prevent=function(r){if(!r.preventDefault){r=a(r)}r.preventDefault();return false};q.stop=function(r){if(!r.stopPropagation){r=a(r)}r.stopPropagation();return false}}b.EventUtils=f;b.Event=new f(function(i){return function(j){tinymce.dom.Event.callNativeHandler(i,j)}});b.Event.bind(window,"ready",function(){});b=0})(tinymce.dom,"data-mce-expando");tinymce.dom.TreeWalker=function(a,c){var b=a;function d(i,f,e,j){var h,g;if(i){if(!j&&i[f]){return i[f]}if(i!=c){h=i[e];if(h){return h}for(g=i.parentNode;g&&g!=c;g=g.parentNode){h=g[e];if(h){return h}}}}}this.current=function(){return b};this.next=function(e){return(b=d(b,"firstChild","nextSibling",e))};this.prev=function(e){return(b=d(b,"lastChild","previousSibling",e))}};(function(e){var g=e.each,d=e.is,f=e.isWebKit,b=e.isIE,h=e.html.Entities,c=/^([a-z0-9],?)+$/i,a=/^[ \t\r\n]*$/;e.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(o,l){var k=this,i,j,n;k.doc=o;k.win=window;k.files={};k.cssFlicker=false;k.counter=0;k.stdMode=!e.isIE||o.documentMode>=8;k.boxModel=!e.isIE||o.compatMode=="CSS1Compat"||k.stdMode;k.hasOuterHTML="outerHTML" in o.createElement("a");k.settings=l=e.extend({keep_values:false,hex_colors:1},l);k.schema=l.schema;k.styles=new e.html.Styles({url_converter:l.url_converter,url_converter_scope:l.url_converter_scope},l.schema);if(e.isIE6){try{o.execCommand("BackgroundImageCache",false,true)}catch(m){k.cssFlicker=true}}k.fixDoc(o);k.events=l.ownEvents?new e.dom.EventUtils(l.proxy):e.dom.Event;e.addUnload(k.destroy,k);n=l.schema?l.schema.getBlockElements():{};k.isBlock=function(q){var p=q.nodeType;if(p){return !!(p===1&&n[q.nodeName])}return !!n[q]}},fixDoc:function(k){var j=this.settings,i;if(b&&j.schema){("abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video").replace(/\w+/g,function(l){k.createElement(l)});for(i in j.schema.getCustomElements()){k.createElement(i)}}},clone:function(k,i){var j=this,m,l;if(!b||k.nodeType!==1||i){return k.cloneNode(i)}l=j.doc;if(!i){m=l.createElement(k.nodeName);g(j.getAttribs(k),function(n){j.setAttrib(m,n.nodeName,j.getAttrib(k,n.nodeName))});return m}return m.firstChild},getRoot:function(){var i=this,j=i.settings;return(j&&i.get(j.root_element))||i.doc.body},getViewPort:function(j){var k,i;j=!j?this.win:j;k=j.document;i=this.boxModel?k.documentElement:k.body;return{x:j.pageXOffset||i.scrollLeft,y:j.pageYOffset||i.scrollTop,w:j.innerWidth||i.clientWidth,h:j.innerHeight||i.clientHeight}},getRect:function(l){var k,i=this,j;l=i.get(l);k=i.getPos(l);j=i.getSize(l);return{x:k.x,y:k.y,w:j.w,h:j.h}},getSize:function(l){var j=this,i,k;l=j.get(l);i=j.getStyle(l,"width");k=j.getStyle(l,"height");if(i.indexOf("px")===-1){i=0}if(k.indexOf("px")===-1){k=0}return{w:parseInt(i,10)||l.offsetWidth||l.clientWidth,h:parseInt(k,10)||l.offsetHeight||l.clientHeight}},getParent:function(k,j,i){return this.getParents(k,j,i,false)},getParents:function(s,m,k,q){var j=this,i,l=j.settings,p=[];s=j.get(s);q=q===undefined;if(l.strict_root){k=k||j.getRoot()}if(d(m,"string")){i=m;if(m==="*"){m=function(o){return o.nodeType==1}}else{m=function(o){return j.is(o,i)}}}while(s){if(s==k||!s.nodeType||s.nodeType===9){break}if(!m||m(s)){if(q){p.push(s)}else{return s}}s=s.parentNode}return q?p:null},get:function(i){var j;if(i&&this.doc&&typeof(i)=="string"){j=i;i=this.doc.getElementById(i);if(i&&i.id!==j){return this.doc.getElementsByName(j)[1]}}return i},getNext:function(j,i){return this._findSib(j,i,"nextSibling")},getPrev:function(j,i){return this._findSib(j,i,"previousSibling")},select:function(k,j){var i=this;return e.dom.Sizzle(k,i.get(j)||i.get(i.settings.root_element)||i.doc,[])},is:function(l,j){var k;if(l.length===undefined){if(j==="*"){return l.nodeType==1}if(c.test(j)){j=j.toLowerCase().split(/,/);l=l.nodeName.toLowerCase();for(k=j.length-1;k>=0;k--){if(j[k]==l){return true}}return false}}return e.dom.Sizzle.matches(j,l.nodeType?[l]:l).length>0},add:function(l,o,i,k,m){var j=this;return this.run(l,function(r){var q,n;q=d(o,"string")?j.doc.createElement(o):o;j.setAttribs(q,i);if(k){if(k.nodeType){q.appendChild(k)}else{j.setHTML(q,k)}}return !m?r.appendChild(q):q})},create:function(k,i,j){return this.add(this.doc.createElement(k),k,i,j,1)},createHTML:function(q,i,m){var p="",l=this,j;p+="<"+q;for(j in i){if(i.hasOwnProperty(j)){p+=" "+j+'="'+l.encode(i[j])+'"'}}if(typeof(m)!="undefined"){return p+">"+m+"</"+q+">"}return p+" />"},remove:function(i,j){return this.run(i,function(l){var m,k=l.parentNode;if(!k){return null}if(j){while(m=l.firstChild){if(!e.isIE||m.nodeType!==3||m.nodeValue){k.insertBefore(m,l)}else{l.removeChild(m)}}}return k.removeChild(l)})},setStyle:function(l,i,j){var k=this;return k.run(l,function(o){var n,m;n=o.style;i=i.replace(/-(\D)/g,function(q,p){return p.toUpperCase()});if(k.pixelStyles.test(i)&&(e.is(j,"number")||/^[\-0-9\.]+$/.test(j))){j+="px"}switch(i){case"opacity":if(b){n.filter=j===""?"":"alpha(opacity="+(j*100)+")";if(!l.currentStyle||!l.currentStyle.hasLayout){n.display="inline-block"}}n[i]=n["-moz-opacity"]=n["-khtml-opacity"]=j||"";break;case"float":b?n.styleFloat=j:n.cssFloat=j;break;default:n[i]=j||""}if(k.settings.update_styles){k.setAttrib(o,"data-mce-style")}})},getStyle:function(l,i,k){l=this.get(l);if(!l){return}if(this.doc.defaultView&&k){i=i.replace(/[A-Z]/g,function(m){return"-"+m});try{return this.doc.defaultView.getComputedStyle(l,null).getPropertyValue(i)}catch(j){return null}}i=i.replace(/-(\D)/g,function(n,m){return m.toUpperCase()});if(i=="float"){i=b?"styleFloat":"cssFloat"}if(l.currentStyle&&k){return l.currentStyle[i]}return l.style?l.style[i]:undefined},setStyles:function(l,m){var j=this,k=j.settings,i;i=k.update_styles;k.update_styles=0;g(m,function(o,p){j.setStyle(l,p,o)});k.update_styles=i;if(k.update_styles){j.setAttrib(l,k.cssText)}},removeAllAttribs:function(i){return this.run(i,function(l){var k,j=l.attributes;for(k=j.length-1;k>=0;k--){l.removeAttributeNode(j.item(k))}})},setAttrib:function(k,l,i){var j=this;if(!k||!l){return}if(j.settings.strict){l=l.toLowerCase()}return this.run(k,function(p){var o=j.settings;var m=p.getAttribute(l);if(i!==null){switch(l){case"style":if(!d(i,"string")){g(i,function(q,r){j.setStyle(p,r,q)});return}if(o.keep_values){if(i&&!j._isRes(i)){p.setAttribute("data-mce-style",i,2)}else{p.removeAttribute("data-mce-style",2)}}p.style.cssText=i;break;case"class":p.className=i||"";break;case"src":case"href":if(o.keep_values){if(o.url_converter){i=o.url_converter.call(o.url_converter_scope||j,i,l,p)}j.setAttrib(p,"data-mce-"+l,i,2)}break;case"shape":p.setAttribute("data-mce-style",i);break}}if(d(i)&&i!==null&&i.length!==0){p.setAttribute(l,""+i,2)}else{p.removeAttribute(l,2)}if(tinyMCE.activeEditor&&m!=i){var n=tinyMCE.activeEditor;n.onSetAttrib.dispatch(n,p,l,i)}})},setAttribs:function(j,k){var i=this;return this.run(j,function(l){g(k,function(m,o){i.setAttrib(l,o,m)})})},getAttrib:function(m,o,k){var i,j=this,l;m=j.get(m);if(!m||m.nodeType!==1){return k===l?false:k}if(!d(k)){k=""}if(/^(src|href|style|coords|shape)$/.test(o)){i=m.getAttribute("data-mce-"+o);if(i){return i}}if(b&&j.props[o]){i=m[j.props[o]];i=i&&i.nodeValue?i.nodeValue:i}if(!i){i=m.getAttribute(o,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(o)){if(m[j.props[o]]===true&&i===""){return o}return i?o:""}if(m.nodeName==="FORM"&&m.getAttributeNode(o)){return m.getAttributeNode(o).nodeValue}if(o==="style"){i=i||m.style.cssText;if(i){i=j.serializeStyle(j.parseStyle(i),m.nodeName);if(j.settings.keep_values&&!j._isRes(i)){m.setAttribute("data-mce-style",i)}}}if(f&&o==="class"&&i){i=i.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(b){switch(o){case"rowspan":case"colspan":if(i===1){i=""}break;case"size":if(i==="+0"||i===20||i===0){i=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(i===0){i=""}break;case"hspace":if(i===-1){i=""}break;case"maxlength":case"tabindex":if(i===32768||i===2147483647||i==="32768"){i=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(i===65535){return o}return k;case"shape":i=i.toLowerCase();break;default:if(o.indexOf("on")===0&&i){i=e._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1",""+i)}}}return(i!==l&&i!==null&&i!=="")?""+i:k},getPos:function(q,l){var j=this,i=0,p=0,m,o=j.doc,k;q=j.get(q);l=l||o.body;if(q){if(q.getBoundingClientRect){q=q.getBoundingClientRect();m=j.boxModel?o.documentElement:o.body;i=q.left+(o.documentElement.scrollLeft||o.body.scrollLeft)-m.clientTop;p=q.top+(o.documentElement.scrollTop||o.body.scrollTop)-m.clientLeft;return{x:i,y:p}}k=q;while(k&&k!=l&&k.nodeType){i+=k.offsetLeft||0;p+=k.offsetTop||0;k=k.offsetParent}k=q.parentNode;while(k&&k!=l&&k.nodeType){i-=k.scrollLeft||0;p-=k.scrollTop||0;k=k.parentNode}}return{x:i,y:p}},parseStyle:function(i){return this.styles.parse(i)},serializeStyle:function(j,i){return this.styles.serialize(j,i)},addStyle:function(j){var k=this.doc,i;styleElm=k.getElementById("mceDefaultStyles");if(!styleElm){styleElm=k.createElement("style"),styleElm.id="mceDefaultStyles";styleElm.type="text/css";i=k.getElementsByTagName("head")[0];if(i.firstChild){i.insertBefore(styleElm,i.firstChild)}else{i.appendChild(styleElm)}}if(styleElm.styleSheet){styleElm.styleSheet.cssText+=j}else{styleElm.appendChild(k.createTextNode(j))}},loadCSS:function(i){var k=this,l=k.doc,j;if(!i){i=""}j=l.getElementsByTagName("head")[0];g(i.split(","),function(m){var n;if(k.files[m]){return}k.files[m]=true;n=k.create("link",{rel:"stylesheet",href:e._addVer(m)});if(b&&l.documentMode&&l.recalc){n.onload=function(){if(l.recalc){l.recalc()}n.onload=null}}j.appendChild(n)})},addClass:function(i,j){return this.run(i,function(k){var l;if(!j){return 0}if(this.hasClass(k,j)){return k.className}l=this.removeClass(k,j);return k.className=(l!=""?(l+" "):"")+j})},removeClass:function(k,l){var i=this,j;return i.run(k,function(n){var m;if(i.hasClass(n,l)){if(!j){j=new RegExp("(^|\\s+)"+l+"(\\s+|$)","g")}m=n.className.replace(j," ");m=e.trim(m!=" "?m:"");n.className=m;if(!m){n.removeAttribute("class");n.removeAttribute("className")}return m}return n.className})},hasClass:function(j,i){j=this.get(j);if(!j||!i){return false}return(" "+j.className+" ").indexOf(" "+i+" ")!==-1},show:function(i){return this.setStyle(i,"display","block")},hide:function(i){return this.setStyle(i,"display","none")},isHidden:function(i){i=this.get(i);return !i||i.style.display=="none"||this.getStyle(i,"display")=="none"},uniqueId:function(i){return(!i?"mce_":i)+(this.counter++)},setHTML:function(k,j){var i=this;return i.run(k,function(m){if(b){while(m.firstChild){m.removeChild(m.firstChild)}try{m.innerHTML="<br />"+j;m.removeChild(m.firstChild)}catch(l){var n=i.create("div");n.innerHTML="<br />"+j;g(e.grep(n.childNodes),function(p,o){if(o&&m.canHaveHTML){m.appendChild(p)}})}}else{m.innerHTML=j}return j})},getOuterHTML:function(k){var j,i=this;k=i.get(k);if(!k){return null}if(k.nodeType===1&&i.hasOuterHTML){return k.outerHTML}j=(k.ownerDocument||i.doc).createElement("body");j.appendChild(k.cloneNode(true));return j.innerHTML},setOuterHTML:function(l,j,m){var i=this;function k(p,o,r){var s,q;q=r.createElement("body");q.innerHTML=o;s=q.lastChild;while(s){i.insertAfter(s.cloneNode(true),p);s=s.previousSibling}i.remove(p)}return this.run(l,function(o){o=i.get(o);if(o.nodeType==1){m=m||o.ownerDocument||i.doc;if(b){try{if(b&&o.nodeType==1){o.outerHTML=j}else{k(o,j,m)}}catch(n){k(o,j,m)}}else{k(o,j,m)}}})},decode:h.decode,encode:h.encodeAllRaw,insertAfter:function(i,j){j=this.get(j);return this.run(i,function(l){var k,m;k=j.parentNode;m=j.nextSibling;if(m){k.insertBefore(l,m)}else{k.appendChild(l)}return l})},replace:function(m,l,i){var j=this;if(d(l,"array")){m=m.cloneNode(true)}return j.run(l,function(k){if(i){g(e.grep(k.childNodes),function(n){m.appendChild(n)})}return k.parentNode.replaceChild(m,k)})},rename:function(l,i){var k=this,j;if(l.nodeName!=i.toUpperCase()){j=k.create(i);g(k.getAttribs(l),function(m){k.setAttrib(j,m.nodeName,k.getAttrib(l,m.nodeName))});k.replace(j,l,1)}return j||l},findCommonAncestor:function(k,i){var l=k,j;while(l){j=i;while(j&&l!=j){j=j.parentNode}if(l==j){break}l=l.parentNode}if(!l&&k.ownerDocument){return k.ownerDocument.documentElement}return l},toHex:function(i){var k=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(i);function j(l){l=parseInt(l,10).toString(16);return l.length>1?l:"0"+l}if(k){i="#"+j(k[1])+j(k[2])+j(k[3]);return i}return i},getClasses:function(){var n=this,j=[],m,o={},p=n.settings.class_filter,l;if(n.classes){return n.classes}function q(i){g(i.imports,function(s){q(s)});g(i.cssRules||i.rules,function(s){switch(s.type||1){case 1:if(s.selectorText){g(s.selectorText.split(","),function(r){r=r.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(r)||!/\.[\w\-]+$/.test(r)){return}l=r;r=e._replace(/.*\.([a-z0-9_\-]+).*/i,"$1",r);if(p&&!(r=p(r,l))){return}if(!o[r]){j.push({"class":r});o[r]=1}})}break;case 3:q(s.styleSheet);break}})}try{g(n.doc.styleSheets,q)}catch(k){}if(j.length>0){n.classes=j}return j},run:function(l,k,j){var i=this,m;if(i.doc&&typeof(l)==="string"){l=i.get(l)}if(!l){return false}j=j||this;if(!l.nodeType&&(l.length||l.length===0)){m=[];g(l,function(o,n){if(o){if(typeof(o)=="string"){o=i.doc.getElementById(o)}m.push(k.call(j,o,n))}});return m}return k.call(j,l)},getAttribs:function(j){var i;j=this.get(j);if(!j){return[]}if(b){i=[];if(j.nodeName=="OBJECT"){return j.attributes}if(j.nodeName==="OPTION"&&this.getAttrib(j,"selected")){i.push({specified:1,nodeName:"selected"})}j.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(k){i.push({specified:1,nodeName:k})});return i}return j.attributes},isEmpty:function(m,k){var r=this,o,n,q,j,l,p=0;m=m.firstChild;if(m){j=new e.dom.TreeWalker(m,m.parentNode);k=k||r.schema?r.schema.getNonEmptyElements():null;do{q=m.nodeType;if(q===1){if(m.getAttribute("data-mce-bogus")){continue}l=m.nodeName.toLowerCase();if(k&&k[l]){if(l==="br"){p++;continue}return false}n=r.getAttribs(m);o=m.attributes.length;while(o--){l=m.attributes[o].nodeName;if(l==="name"||l==="data-mce-bookmark"){return false}}}if(q==8){return false}if((q===3&&!a.test(m.nodeValue))){return false}}while(m=j.next())}return p<=1},destroy:function(j){var i=this;i.win=i.doc=i.root=i.events=i.frag=null;if(!j){e.removeUnload(i.destroy)}},createRng:function(){var i=this.doc;return i.createRange?i.createRange():new e.dom.Range(this)},nodeIndex:function(m,n){var i=0,k,l,j;if(m){for(k=m.nodeType,m=m.previousSibling,l=m;m;m=m.previousSibling){j=m.nodeType;if(n&&j==3){if(j==k||!m.nodeValue.length){continue}}i++;k=j}}return i},split:function(m,l,p){var q=this,i=q.createRng(),n,k,o;function j(v){var t,s=v.childNodes,u=v.nodeType;function x(A){var z=A.previousSibling&&A.previousSibling.nodeName=="SPAN";var y=A.nextSibling&&A.nextSibling.nodeName=="SPAN";return z&&y}if(u==1&&v.getAttribute("data-mce-type")=="bookmark"){return}for(t=s.length-1;t>=0;t--){j(s[t])}if(u!=9){if(u==3&&v.nodeValue.length>0){var r=e.trim(v.nodeValue).length;if(!q.isBlock(v.parentNode)||r>0||r===0&&x(v)){return}}else{if(u==1){s=v.childNodes;if(s.length==1&&s[0]&&s[0].nodeType==1&&s[0].getAttribute("data-mce-type")=="bookmark"){v.parentNode.insertBefore(s[0],v)}if(s.length||/^(br|hr|input|img)$/i.test(v.nodeName)){return}}}q.remove(v)}return v}if(m&&l){i.setStart(m.parentNode,q.nodeIndex(m));i.setEnd(l.parentNode,q.nodeIndex(l));n=i.extractContents();i=q.createRng();i.setStart(l.parentNode,q.nodeIndex(l)+1);i.setEnd(m.parentNode,q.nodeIndex(m)+1);k=i.extractContents();o=m.parentNode;o.insertBefore(j(n),m);if(p){o.replaceChild(p,l)}else{o.insertBefore(l,m)}o.insertBefore(j(k),m);q.remove(m);return p||l}},bind:function(l,i,k,j){return this.events.add(l,i,k,j||this)},unbind:function(k,i,j){return this.events.remove(k,i,j)},fire:function(k,j,i){return this.events.fire(k,j,i)},getContentEditable:function(j){var i;if(j.nodeType!=1){return null}i=j.getAttribute("data-mce-contenteditable");if(i&&i!=="inherit"){return i}return j.contentEditable!=="inherit"?j.contentEditable:null},_findSib:function(l,i,j){var k=this,m=i;if(l){if(d(m,"string")){m=function(n){return k.is(n,i)}}for(l=l[j];l;l=l[j]){if(m(l)){return l}}}return null},_isRes:function(i){return/^(top|left|bottom|right|width|height)/i.test(i)||/;\s*(top|left|bottom|right|width|height)/i.test(i)}});e.DOM=new e.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(a){function b(c){var O=this,e=c.doc,U=0,F=1,j=2,E=true,S=false,W="startOffset",h="startContainer",Q="endContainer",A="endOffset",k=tinymce.extend,n=c.nodeIndex;k(O,{startContainer:e,startOffset:0,endContainer:e,endOffset:0,collapsed:E,commonAncestorContainer:e,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:q,setEnd:s,setStartBefore:g,setStartAfter:J,setEndBefore:K,setEndAfter:u,collapse:B,selectNode:y,selectNodeContents:G,compareBoundaryPoints:v,deleteContents:p,extractContents:I,cloneContents:d,insertNode:D,surroundContents:N,cloneRange:L,toStringIE:T});function x(){return e.createDocumentFragment()}function q(X,t){C(E,X,t)}function s(X,t){C(S,X,t)}function g(t){q(t.parentNode,n(t))}function J(t){q(t.parentNode,n(t)+1)}function K(t){s(t.parentNode,n(t))}function u(t){s(t.parentNode,n(t)+1)}function B(t){if(t){O[Q]=O[h];O[A]=O[W]}else{O[h]=O[Q];O[W]=O[A]}O.collapsed=E}function y(t){g(t);u(t)}function G(t){q(t,0);s(t,t.nodeType===1?t.childNodes.length:t.nodeValue.length)}function v(aa,t){var ad=O[h],Y=O[W],ac=O[Q],X=O[A],ab=t.startContainer,af=t.startOffset,Z=t.endContainer,ae=t.endOffset;if(aa===0){return H(ad,Y,ab,af)}if(aa===1){return H(ac,X,ab,af)}if(aa===2){return H(ac,X,Z,ae)}if(aa===3){return H(ad,Y,Z,ae)}}function p(){l(j)}function I(){return l(U)}function d(){return l(F)}function D(aa){var X=this[h],t=this[W],Z,Y;if((X.nodeType===3||X.nodeType===4)&&X.nodeValue){if(!t){X.parentNode.insertBefore(aa,X)}else{if(t>=X.nodeValue.length){c.insertAfter(aa,X)}else{Z=X.splitText(t);X.parentNode.insertBefore(aa,Z)}}}else{if(X.childNodes.length>0){Y=X.childNodes[t]}if(Y){X.insertBefore(aa,Y)}else{X.appendChild(aa)}}}function N(X){var t=O.extractContents();O.insertNode(X);X.appendChild(t);O.selectNode(X)}function L(){return k(new b(c),{startContainer:O[h],startOffset:O[W],endContainer:O[Q],endOffset:O[A],collapsed:O.collapsed,commonAncestorContainer:O.commonAncestorContainer})}function P(t,X){var Y;if(t.nodeType==3){return t}if(X<0){return t}Y=t.firstChild;while(Y&&X>0){--X;Y=Y.nextSibling}if(Y){return Y}return t}function m(){return(O[h]==O[Q]&&O[W]==O[A])}function H(Z,ab,X,aa){var ac,Y,t,ad,af,ae;if(Z==X){if(ab==aa){return 0}if(ab<aa){return -1}return 1}ac=X;while(ac&&ac.parentNode!=Z){ac=ac.parentNode}if(ac){Y=0;t=Z.firstChild;while(t!=ac&&Y<ab){Y++;t=t.nextSibling}if(ab<=Y){return -1}return 1}ac=Z;while(ac&&ac.parentNode!=X){ac=ac.parentNode}if(ac){Y=0;t=X.firstChild;while(t!=ac&&Y<aa){Y++;t=t.nextSibling}if(Y<aa){return -1}return 1}ad=c.findCommonAncestor(Z,X);af=Z;while(af&&af.parentNode!=ad){af=af.parentNode}if(!af){af=ad}ae=X;while(ae&&ae.parentNode!=ad){ae=ae.parentNode}if(!ae){ae=ad}if(af==ae){return 0}t=ad.firstChild;while(t){if(t==af){return -1}if(t==ae){return 1}t=t.nextSibling}}function C(X,aa,Z){var t,Y;if(X){O[h]=aa;O[W]=Z}else{O[Q]=aa;O[A]=Z}t=O[Q];while(t.parentNode){t=t.parentNode}Y=O[h];while(Y.parentNode){Y=Y.parentNode}if(Y==t){if(H(O[h],O[W],O[Q],O[A])>0){O.collapse(X)}}else{O.collapse(X)}O.collapsed=m();O.commonAncestorContainer=c.findCommonAncestor(O[h],O[Q])}function l(ad){var ac,Z=0,af=0,X,ab,Y,aa,t,ae;if(O[h]==O[Q]){return f(ad)}for(ac=O[Q],X=ac.parentNode;X;ac=X,X=X.parentNode){if(X==O[h]){return r(ac,ad)}++Z}for(ac=O[h],X=ac.parentNode;X;ac=X,X=X.parentNode){if(X==O[Q]){return V(ac,ad)}++af}ab=af-Z;Y=O[h];while(ab>0){Y=Y.parentNode;ab--}aa=O[Q];while(ab<0){aa=aa.parentNode;ab++}for(t=Y.parentNode,ae=aa.parentNode;t!=ae;t=t.parentNode,ae=ae.parentNode){Y=t;aa=ae}return o(Y,aa,ad)}function f(ac){var ae,af,t,Y,Z,ad,aa,X,ab;if(ac!=j){ae=x()}if(O[W]==O[A]){return ae}if(O[h].nodeType==3){af=O[h].nodeValue;t=af.substring(O[W],O[A]);if(ac!=F){Y=O[h];X=O[W];ab=O[A]-O[W];if(X===0&&ab>=Y.nodeValue.length-1){Y.parentNode.removeChild(Y)}else{Y.deleteData(X,ab)}O.collapse(E)}if(ac==j){return}if(t.length>0){ae.appendChild(e.createTextNode(t))}return ae}Y=P(O[h],O[W]);Z=O[A]-O[W];while(Y&&Z>0){ad=Y.nextSibling;aa=z(Y,ac);if(ae){ae.appendChild(aa)}--Z;Y=ad}if(ac!=F){O.collapse(E)}return ae}function r(ad,aa){var ac,ab,X,t,Z,Y;if(aa!=j){ac=x()}ab=i(ad,aa);if(ac){ac.appendChild(ab)}X=n(ad);t=X-O[W];if(t<=0){if(aa!=F){O.setEndBefore(ad);O.collapse(S)}return ac}ab=ad.previousSibling;while(t>0){Z=ab.previousSibling;Y=z(ab,aa);if(ac){ac.insertBefore(Y,ac.firstChild)}--t;ab=Z}if(aa!=F){O.setEndBefore(ad);O.collapse(S)}return ac}function V(ab,aa){var ad,X,ac,t,Z,Y;if(aa!=j){ad=x()}ac=R(ab,aa);if(ad){ad.appendChild(ac)}X=n(ab);++X;t=O[A]-X;ac=ab.nextSibling;while(ac&&t>0){Z=ac.nextSibling;Y=z(ac,aa);if(ad){ad.appendChild(Y)}--t;ac=Z}if(aa!=F){O.setStartAfter(ab);O.collapse(E)}return ad}function o(ab,t,ae){var Y,ag,aa,ac,ad,X,af,Z;if(ae!=j){ag=x()}Y=R(ab,ae);if(ag){ag.appendChild(Y)}aa=ab.parentNode;ac=n(ab);ad=n(t);++ac;X=ad-ac;af=ab.nextSibling;while(X>0){Z=af.nextSibling;Y=z(af,ae);if(ag){ag.appendChild(Y)}af=Z;--X}Y=i(t,ae);if(ag){ag.appendChild(Y)}if(ae!=F){O.setStartAfter(ab);O.collapse(E)}return ag}function i(ac,ad){var Y=P(O[Q],O[A]-1),ae,ab,aa,t,X,Z=Y!=O[Q];if(Y==ac){return M(Y,Z,S,ad)}ae=Y.parentNode;ab=M(ae,S,S,ad);while(ae){while(Y){aa=Y.previousSibling;t=M(Y,Z,S,ad);if(ad!=j){ab.insertBefore(t,ab.firstChild)}Z=E;Y=aa}if(ae==ac){return ab}Y=ae.previousSibling;ae=ae.parentNode;X=M(ae,S,S,ad);if(ad!=j){X.appendChild(ab)}ab=X}}function R(ac,ad){var Z=P(O[h],O[W]),aa=Z!=O[h],ae,ab,Y,t,X;if(Z==ac){return M(Z,aa,E,ad)}ae=Z.parentNode;ab=M(ae,S,E,ad);while(ae){while(Z){Y=Z.nextSibling;t=M(Z,aa,E,ad);if(ad!=j){ab.appendChild(t)}aa=E;Z=Y}if(ae==ac){return ab}Z=ae.nextSibling;ae=ae.parentNode;X=M(ae,S,E,ad);if(ad!=j){X.appendChild(ab)}ab=X}}function M(t,aa,ad,ae){var Z,Y,ab,X,ac;if(aa){return z(t,ae)}if(t.nodeType==3){Z=t.nodeValue;if(ad){X=O[W];Y=Z.substring(X);ab=Z.substring(0,X)}else{X=O[A];Y=Z.substring(0,X);ab=Z.substring(X)}if(ae!=F){t.nodeValue=ab}if(ae==j){return}ac=c.clone(t,S);ac.nodeValue=Y;return ac}if(ae==j){return}return c.clone(t,S)}function z(X,t){if(t!=j){return t==F?c.clone(X,E):X}X.parentNode.removeChild(X)}function T(){return c.create("body",null,d()).outerText}return O}a.Range=b;b.prototype.toString=function(){return this.toStringIE()}})(tinymce.dom);(function(){function a(d){var b=this,h=d.dom,c=true,f=false;function e(i,j){var k,t=0,q,n,m,l,o,r,p=-1,s;k=i.duplicate();k.collapse(j);s=k.parentElement();if(s.ownerDocument!==d.dom.doc){return}while(s.contentEditable==="false"){s=s.parentNode}if(!s.hasChildNodes()){return{node:s,inside:1}}m=s.children;q=m.length-1;while(t<=q){r=Math.floor((t+q)/2);l=m[r];k.moveToElementText(l);p=k.compareEndPoints(j?"StartToStart":"EndToEnd",i);if(p>0){q=r-1}else{if(p<0){t=r+1}else{return{node:l}}}}if(p<0){if(!l){k.moveToElementText(s);k.collapse(true);l=s;n=true}else{k.collapse(false)}o=0;while(k.compareEndPoints(j?"StartToStart":"StartToEnd",i)!==0){if(k.move("character",1)===0||s!=k.parentElement()){break}o++}}else{k.collapse(true);o=0;while(k.compareEndPoints(j?"StartToStart":"StartToEnd",i)!==0){if(k.move("character",-1)===0||s!=k.parentElement()){break}o++}}return{node:l,position:p,offset:o,inside:n}}function g(){var i=d.getRng(),r=h.createRng(),l,k,p,q,m,j;l=i.item?i.item(0):i.parentElement();if(l.ownerDocument!=h.doc){return r}k=d.isCollapsed();if(i.item){r.setStart(l.parentNode,h.nodeIndex(l));r.setEnd(r.startContainer,r.startOffset+1);return r}function o(A){var u=e(i,A),s,y,z=0,x,v,t;s=u.node;y=u.offset;if(u.inside&&!s.hasChildNodes()){r[A?"setStart":"setEnd"](s,0);return}if(y===v){r[A?"setStartBefore":"setEndAfter"](s);return}if(u.position<0){x=u.inside?s.firstChild:s.nextSibling;if(!x){r[A?"setStartAfter":"setEndAfter"](s);return}if(!y){if(x.nodeType==3){r[A?"setStart":"setEnd"](x,0)}else{r[A?"setStartBefore":"setEndBefore"](x)}return}while(x){t=x.nodeValue;z+=t.length;if(z>=y){s=x;z-=y;z=t.length-z;break}x=x.nextSibling}}else{x=s.previousSibling;if(!x){return r[A?"setStartBefore":"setEndBefore"](s)}if(!y){if(s.nodeType==3){r[A?"setStart":"setEnd"](x,s.nodeValue.length)}else{r[A?"setStartAfter":"setEndAfter"](x)}return}while(x){z+=x.nodeValue.length;if(z>=y){s=x;z-=y;break}x=x.previousSibling}}r[A?"setStart":"setEnd"](s,z)}try{o(true);if(!k){o()}}catch(n){if(n.number==-2147024809){m=b.getBookmark(2);p=i.duplicate();p.collapse(true);l=p.parentElement();if(!k){p=i.duplicate();p.collapse(false);q=p.parentElement();q.innerHTML=q.innerHTML}l.innerHTML=l.innerHTML;b.moveToBookmark(m);i=d.getRng();o(true);if(!k){o()}}else{throw n}}return r}this.getBookmark=function(m){var j=d.getRng(),o,i,l={};function n(u){var t,p,s,r,q=[];t=u.parentNode;p=h.getRoot().parentNode;while(t!=p&&t.nodeType!==9){s=t.children;r=s.length;while(r--){if(u===s[r]){q.push(r);break}}u=t;t=t.parentNode}return q}function k(q){var p;p=e(j,q);if(p){return{position:p.position,offset:p.offset,indexes:n(p.node),inside:p.inside}}}if(m===2){if(!j.item){l.start=k(true);if(!d.isCollapsed()){l.end=k()}}else{l.start={ctrl:true,indexes:n(j.item(0))}}}return l};this.moveToBookmark=function(k){var j,i=h.doc.body;function m(o){var r,q,n,p;r=h.getRoot();for(q=o.length-1;q>=0;q--){p=r.children;n=o[q];if(n<=p.length-1){r=p[n]}}return r}function l(r){var n=k[r?"start":"end"],q,p,o;if(n){q=n.position>0;p=i.createTextRange();p.moveToElementText(m(n.indexes));offset=n.offset;if(offset!==o){p.collapse(n.inside||q);p.moveStart("character",q?-offset:offset)}else{p.collapse(r)}j.setEndPoint(r?"StartToStart":"EndToStart",p);if(r){j.collapse(true)}}}if(k.start){if(k.start.ctrl){j=i.createControlRange();j.addElement(m(k.start.indexes));j.select()}else{j=i.createTextRange();l(true);l();j.select()}}};this.addRange=function(i){var n,l,k,p,v,q,t,s=d.dom.doc,m=s.body,r,u;function j(C){var y,B,x,A,z;x=h.create("a");y=C?k:v;B=C?p:q;A=n.duplicate();if(y==s||y==s.documentElement){y=m;B=0}if(y.nodeType==3){y.parentNode.insertBefore(x,y);A.moveToElementText(x);A.moveStart("character",B);h.remove(x);n.setEndPoint(C?"StartToStart":"EndToEnd",A)}else{z=y.childNodes;if(z.length){if(B>=z.length){h.insertAfter(x,z[z.length-1])}else{y.insertBefore(x,z[B])}A.moveToElementText(x)}else{if(y.canHaveHTML){y.innerHTML="<span>\uFEFF</span>";x=y.firstChild;A.moveToElementText(x);A.collapse(f)}}n.setEndPoint(C?"StartToStart":"EndToEnd",A);h.remove(x)}}k=i.startContainer;p=i.startOffset;v=i.endContainer;q=i.endOffset;n=m.createTextRange();if(k==v&&k.nodeType==1){if(p==q&&!k.hasChildNodes()){if(k.canHaveHTML){t=k.previousSibling;if(t&&!t.hasChildNodes()&&h.isBlock(t)){t.innerHTML="\uFEFF"}else{t=null}k.innerHTML="<span>\uFEFF</span><span>\uFEFF</span>";n.moveToElementText(k.lastChild);n.select();h.doc.selection.clear();k.innerHTML="";if(t){t.innerHTML=""}return}else{p=h.nodeIndex(k);k=k.parentNode}}if(p==q-1){try{u=k.childNodes[p];l=m.createControlRange();l.addElement(u);l.select();r=d.getRng();if(r.item&&u===r.item(0)){return}}catch(o){}}}j(true);j();n.select()};this.getRangeAt=g}tinymce.dom.TridentSelection=a})();(function(){var n=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache",o=0,r=Object.prototype.toString,h=false,g=true,q=/\\/g,u=/\r\n/g,x=/\W/;[0,0].sort(function(){g=false;return 0});var d=function(C,e,F,G){F=F||[];e=e||document;var I=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!C||typeof C!=="string"){return F}var z,K,N,y,J,M,L,E,B=true,A=d.isXML(e),D=[],H=C;do{n.exec("");z=n.exec(H);if(z){H=z[3];D.push(z[1]);if(z[2]){y=z[3];break}}}while(z);if(D.length>1&&j.exec(C)){if(D.length===2&&k.relative[D[0]]){K=s(D[0]+D[1],e,G)}else{K=k.relative[D[0]]?[e]:d(D.shift(),e);while(D.length){C=D.shift();if(k.relative[C]){C+=D.shift()}K=s(C,K,G)}}}else{if(!G&&D.length>1&&e.nodeType===9&&!A&&k.match.ID.test(D[0])&&!k.match.ID.test(D[D.length-1])){J=d.find(D.shift(),e,A);e=J.expr?d.filter(J.expr,J.set)[0]:J.set[0]}if(e){J=G?{expr:D.pop(),set:l(G)}:d.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&e.parentNode?e.parentNode:e,A);K=J.expr?d.filter(J.expr,J.set):J.set;if(D.length>0){N=l(K)}else{B=false}while(D.length){M=D.pop();L=M;if(!k.relative[M]){M=""}else{L=D.pop()}if(L==null){L=e}k.relative[M](N,L,A)}}else{N=D=[]}}if(!N){N=K}if(!N){d.error(M||C)}if(r.call(N)==="[object Array]"){if(!B){F.push.apply(F,N)}else{if(e&&e.nodeType===1){for(E=0;N[E]!=null;E++){if(N[E]&&(N[E]===true||N[E].nodeType===1&&d.contains(e,N[E]))){F.push(K[E])}}}else{for(E=0;N[E]!=null;E++){if(N[E]&&N[E].nodeType===1){F.push(K[E])}}}}}else{l(N,F)}if(y){d(y,I,F,G);d.uniqueSort(F)}return F};d.uniqueSort=function(y){if(p){h=g;y.sort(p);if(h){for(var e=1;e<y.length;e++){if(y[e]===y[e-1]){y.splice(e--,1)}}}}return y};d.matches=function(e,y){return d(e,null,null,y)};d.matchesSelector=function(e,y){return d(y,null,null,[e]).length>0};d.find=function(E,e,F){var D,z,B,A,C,y;if(!E){return[]}for(z=0,B=k.order.length;z<B;z++){C=k.order[z];if((A=k.leftMatch[C].exec(E))){y=A[1];A.splice(1,1);if(y.substr(y.length-1)!=="\\"){A[1]=(A[1]||"").replace(q,"");D=k.find[C](A,e,F);if(D!=null){E=E.replace(k.match[C],"");break}}}}if(!D){D=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:D,expr:E}};d.filter=function(I,H,L,B){var D,e,G,N,K,y,A,C,J,z=I,M=[],F=H,E=H&&H[0]&&d.isXML(H[0]);while(I&&H.length){for(G in k.filter){if((D=k.leftMatch[G].exec(I))!=null&&D[2]){y=k.filter[G];A=D[1];e=false;D.splice(1,1);if(A.substr(A.length-1)==="\\"){continue}if(F===M){M=[]}if(k.preFilter[G]){D=k.preFilter[G](D,F,L,M,B,E);if(!D){e=N=true}else{if(D===true){continue}}}if(D){for(C=0;(K=F[C])!=null;C++){if(K){N=y(K,D,C,F);J=B^N;if(L&&N!=null){if(J){e=true}else{F[C]=false}}else{if(J){M.push(K);e=true}}}}}if(N!==undefined){if(!L){F=M}I=I.replace(k.match[G],"");if(!e){return[]}break}}}if(I===z){if(e==null){d.error(I)}else{break}}z=I}return F};d.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var b=d.getText=function(B){var z,A,e=B.nodeType,y="";if(e){if(e===1||e===9||e===11){if(typeof B.textContent==="string"){return B.textContent}else{if(typeof B.innerText==="string"){return B.innerText.replace(u,"")}else{for(B=B.firstChild;B;B=B.nextSibling){y+=b(B)}}}}else{if(e===3||e===4){return B.nodeValue}}}else{for(z=0;(A=B[z]);z++){if(A.nodeType!==8){y+=b(A)}}}return y};var k=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(D,y){var A=typeof y==="string",C=A&&!x.test(y),E=A&&!C;if(C){y=y.toLowerCase()}for(var z=0,e=D.length,B;z<e;z++){if((B=D[z])){while((B=B.previousSibling)&&B.nodeType!==1){}D[z]=E||B&&B.nodeName.toLowerCase()===y?B||false:B===y}}if(E){d.filter(y,D,true)}},">":function(D,y){var C,B=typeof y==="string",z=0,e=D.length;if(B&&!x.test(y)){y=y.toLowerCase();for(;z<e;z++){C=D[z];if(C){var A=C.parentNode;D[z]=A.nodeName.toLowerCase()===y?A:false}}}else{for(;z<e;z++){C=D[z];if(C){D[z]=B?C.parentNode:C.parentNode===y}}if(B){d.filter(y,D,true)}}},"":function(A,y,C){var B,z=o++,e=t;if(typeof y==="string"&&!x.test(y)){y=y.toLowerCase();B=y;e=a}e("parentNode",y,z,A,B,C)},"~":function(A,y,C){var B,z=o++,e=t;if(typeof y==="string"&&!x.test(y)){y=y.toLowerCase();B=y;e=a}e("previousSibling",y,z,A,B,C)}},find:{ID:function(y,z,A){if(typeof z.getElementById!=="undefined"&&!A){var e=z.getElementById(y[1]);return e&&e.parentNode?[e]:[]}},NAME:function(z,C){if(typeof C.getElementsByName!=="undefined"){var y=[],B=C.getElementsByName(z[1]);for(var A=0,e=B.length;A<e;A++){if(B[A].getAttribute("name")===z[1]){y.push(B[A])}}return y.length===0?null:y}},TAG:function(e,y){if(typeof y.getElementsByTagName!=="undefined"){return y.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(A,y,z,e,D,E){A=" "+A[1].replace(q,"")+" ";if(E){return A}for(var B=0,C;(C=y[B])!=null;B++){if(C){if(D^(C.className&&(" "+C.className+" ").replace(/[\t\n\r]/g," ").indexOf(A)>=0)){if(!z){e.push(C)}}else{if(z){y[B]=false}}}}return false},ID:function(e){return e[1].replace(q,"")},TAG:function(y,e){return y[1].replace(q,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){d.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var y=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(y[1]+(y[2]||1))-0;e[3]=y[3]-0}else{if(e[2]){d.error(e[0])}}e[0]=o++;return e},ATTR:function(B,y,z,e,C,D){var A=B[1]=B[1].replace(q,"");if(!D&&k.attrMap[A]){B[1]=k.attrMap[A]}B[4]=(B[4]||B[5]||"").replace(q,"");if(B[2]==="~="){B[4]=" "+B[4]+" "}return B},PSEUDO:function(B,y,z,e,C){if(B[1]==="not"){if((n.exec(B[3])||"").length>1||/^\w/.test(B[3])){B[3]=d(B[3],null,null,y)}else{var A=d.filter(B[3],y,z,true^C);if(!z){e.push.apply(e,A)}return false}}else{if(k.match.POS.test(B[0])||k.match.CHILD.test(B[0])){return true}}return B},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(z,y,e){return !!d(e[3],z).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(z){var e=z.getAttribute("type"),y=z.type;return z.nodeName.toLowerCase()==="input"&&"text"===y&&(e===y||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(y){var e=y.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===y.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(y){var e=y.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===y.type},button:function(y){var e=y.nodeName.toLowerCase();return e==="input"&&"button"===y.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(y,e){return e===0},last:function(z,y,e,A){return y===A.length-1},even:function(y,e){return e%2===0},odd:function(y,e){return e%2===1},lt:function(z,y,e){return y<e[3]-0},gt:function(z,y,e){return y>e[3]-0},nth:function(z,y,e){return e[3]-0===y},eq:function(z,y,e){return e[3]-0===y}},filter:{PSEUDO:function(z,E,D,F){var e=E[1],y=k.filters[e];if(y){return y(z,D,E,F)}else{if(e==="contains"){return(z.textContent||z.innerText||b([z])||"").indexOf(E[3])>=0}else{if(e==="not"){var A=E[3];for(var C=0,B=A.length;C<B;C++){if(A[C]===z){return false}}return true}else{d.error(e)}}}},CHILD:function(z,B){var A,H,D,G,e,C,F,E=B[1],y=z;switch(E){case"only":case"first":while((y=y.previousSibling)){if(y.nodeType===1){return false}}if(E==="first"){return true}y=z;case"last":while((y=y.nextSibling)){if(y.nodeType===1){return false}}return true;case"nth":A=B[2];H=B[3];if(A===1&&H===0){return true}D=B[0];G=z.parentNode;if(G&&(G[i]!==D||!z.nodeIndex)){C=0;for(y=G.firstChild;y;y=y.nextSibling){if(y.nodeType===1){y.nodeIndex=++C}}G[i]=D}F=z.nodeIndex-H;if(A===0){return F===0}else{return(F%A===0&&F/A>=0)}}},ID:function(y,e){return y.nodeType===1&&y.getAttribute("id")===e},TAG:function(y,e){return(e==="*"&&y.nodeType===1)||!!y.nodeName&&y.nodeName.toLowerCase()===e},CLASS:function(y,e){return(" "+(y.className||y.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(C,A){var z=A[1],e=d.attr?d.attr(C,z):k.attrHandle[z]?k.attrHandle[z](C):C[z]!=null?C[z]:C.getAttribute(z),D=e+"",B=A[2],y=A[4];return e==null?B==="!=":!B&&d.attr?e!=null:B==="="?D===y:B==="*="?D.indexOf(y)>=0:B==="~="?(" "+D+" ").indexOf(y)>=0:!y?D&&e!==false:B==="!="?D!==y:B==="^="?D.indexOf(y)===0:B==="$="?D.substr(D.length-y.length)===y:B==="|="?D===y||D.substr(0,y.length+1)===y+"-":false},POS:function(B,y,z,C){var e=y[2],A=k.setFilters[e];if(A){return A(B,z,y,C)}}}};var j=k.match.POS,c=function(y,e){return"\\"+(e-0+1)};for(var f in k.match){k.match[f]=new RegExp(k.match[f].source+(/(?![^\[]*\])(?![^\(]*\))/.source));k.leftMatch[f]=new RegExp(/(^(?:.|\r|\n)*?)/.source+k.match[f].source.replace(/\\(\d+)/g,c))}k.match.globalPOS=j;var l=function(y,e){y=Array.prototype.slice.call(y,0);if(e){e.push.apply(e,y);return e}return y};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(v){l=function(B,A){var z=0,y=A||[];if(r.call(B)==="[object Array]"){Array.prototype.push.apply(y,B)}else{if(typeof B.length==="number"){for(var e=B.length;z<e;z++){y.push(B[z])}}else{for(;B[z];z++){y.push(B[z])}}}return y}}var p,m;if(document.documentElement.compareDocumentPosition){p=function(y,e){if(y===e){h=true;return 0}if(!y.compareDocumentPosition||!e.compareDocumentPosition){return y.compareDocumentPosition?-1:1}return y.compareDocumentPosition(e)&4?-1:1}}else{p=function(F,E){if(F===E){h=true;return 0}else{if(F.sourceIndex&&E.sourceIndex){return F.sourceIndex-E.sourceIndex}}var C,y,z=[],e=[],B=F.parentNode,D=E.parentNode,G=B;if(B===D){return m(F,E)}else{if(!B){return -1}else{if(!D){return 1}}}while(G){z.unshift(G);G=G.parentNode}G=D;while(G){e.unshift(G);G=G.parentNode}C=z.length;y=e.length;for(var A=0;A<C&&A<y;A++){if(z[A]!==e[A]){return m(z[A],e[A])}}return A===C?m(F,e[A],-1):m(z[A],E,1)};m=function(y,e,z){if(y===e){return z}var A=y.nextSibling;while(A){if(A===e){return -1}A=A.nextSibling}return 1}}(function(){var y=document.createElement("div"),z="script"+(new Date()).getTime(),e=document.documentElement;y.innerHTML="<a name='"+z+"'/>";e.insertBefore(y,e.firstChild);if(document.getElementById(z)){k.find.ID=function(B,C,D){if(typeof C.getElementById!=="undefined"&&!D){var A=C.getElementById(B[1]);return A?A.id===B[1]||typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id").nodeValue===B[1]?[A]:undefined:[]}};k.filter.ID=function(C,A){var B=typeof C.getAttributeNode!=="undefined"&&C.getAttributeNode("id");return C.nodeType===1&&B&&B.nodeValue===A}}e.removeChild(y);e=y=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){k.find.TAG=function(y,C){var B=C.getElementsByTagName(y[1]);if(y[1]==="*"){var A=[];for(var z=0;B[z];z++){if(B[z].nodeType===1){A.push(B[z])}}B=A}return B}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(y){return y.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=d,A=document.createElement("div"),z="__sizzle__";A.innerHTML="<p class='TEST'></p>";if(A.querySelectorAll&&A.querySelectorAll(".TEST").length===0){return}d=function(L,C,G,K){C=C||document;if(!K&&!d.isXML(C)){var J=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(L);if(J&&(C.nodeType===1||C.nodeType===9)){if(J[1]){return l(C.getElementsByTagName(L),G)}else{if(J[2]&&k.find.CLASS&&C.getElementsByClassName){return l(C.getElementsByClassName(J[2]),G)}}}if(C.nodeType===9){if(L==="body"&&C.body){return l([C.body],G)}else{if(J&&J[3]){var F=C.getElementById(J[3]);if(F&&F.parentNode){if(F.id===J[3]){return l([F],G)}}else{return l([],G)}}}try{return l(C.querySelectorAll(L),G)}catch(H){}}else{if(C.nodeType===1&&C.nodeName.toLowerCase()!=="object"){var D=C,E=C.getAttribute("id"),B=E||z,N=C.parentNode,M=/^\s*[+~]/.test(L);if(!E){C.setAttribute("id",B)}else{B=B.replace(/'/g,"\\$&")}if(M&&N){C=C.parentNode}try{if(!M||N){return l(C.querySelectorAll("[id='"+B+"'] "+L),G)}}catch(I){}finally{if(!E){D.removeAttribute("id")}}}}}return e(L,C,G,K)};for(var y in e){d[y]=e[y]}A=null})()}(function(){var e=document.documentElement,z=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(z){var B=!z.call(document.createElement("div"),"div"),y=false;try{z.call(document.documentElement,"[test!='']:sizzle")}catch(A){y=true}d.matchesSelector=function(D,F){F=F.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d.isXML(D)){try{if(y||!k.match.PSEUDO.test(F)&&!/!=/.test(F)){var C=z.call(D,F);if(C||!B||D.document&&D.document.nodeType!==11){return C}}}catch(E){}}return d(F,null,null,[D]).length>0}}})();(function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}k.order.splice(1,0,"CLASS");k.find.CLASS=function(y,z,A){if(typeof z.getElementsByClassName!=="undefined"&&!A){return z.getElementsByClassName(y[1])}};e=null})();function a(y,D,C,G,E,F){for(var A=0,z=G.length;A<z;A++){var e=G[A];if(e){var B=false;e=e[y];while(e){if(e[i]===C){B=G[e.sizset];break}if(e.nodeType===1&&!F){e[i]=C;e.sizset=A}if(e.nodeName.toLowerCase()===D){B=e;break}e=e[y]}G[A]=B}}}function t(y,D,C,G,E,F){for(var A=0,z=G.length;A<z;A++){var e=G[A];if(e){var B=false;e=e[y];while(e){if(e[i]===C){B=G[e.sizset];break}if(e.nodeType===1){if(!F){e[i]=C;e.sizset=A}if(typeof D!=="string"){if(e===D){B=true;break}}else{if(d.filter(D,[e]).length>0){B=e;break}}}e=e[y]}G[A]=B}}}if(document.documentElement.contains){d.contains=function(y,e){return y!==e&&(y.contains?y.contains(e):true)}}else{if(document.documentElement.compareDocumentPosition){d.contains=function(y,e){return !!(y.compareDocumentPosition(e)&16)}}else{d.contains=function(){return false}}}d.isXML=function(e){var y=(e?e.ownerDocument||e:0).documentElement;return y?y.nodeName!=="HTML":false};var s=function(z,e,D){var C,E=[],B="",F=e.nodeType?[e]:e;while((C=k.match.PSEUDO.exec(z))){B+=C[0];z=z.replace(k.match.PSEUDO,"")}z=k.relative[z]?z+"*":z;for(var A=0,y=F.length;A<y;A++){d(z,F[A],E,D)}return d.filter(B,E)};window.tinymce.dom.Sizzle=d})();(function(a){a.dom.Element=function(f,d){var b=this,e,c;b.settings=d=d||{};b.id=f;b.dom=e=d.dom||a.DOM;if(!a.isIE){c=e.get(b.id)}a.each(("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get").split(/,/),function(g){b[g]=function(){var h=[f],j;for(j=0;j<arguments.length;j++){h.push(arguments[j])}h=e[g].apply(e,h);b.update(g);return h}});a.extend(b,{on:function(i,h,g){return a.dom.Event.add(b.id,i,h,g)},getXY:function(){return{x:parseInt(b.getStyle("left")),y:parseInt(b.getStyle("top"))}},getSize:function(){var g=e.get(b.id);return{w:parseInt(b.getStyle("width")||g.clientWidth),h:parseInt(b.getStyle("height")||g.clientHeight)}},moveTo:function(g,h){b.setStyles({left:g,top:h})},moveBy:function(g,i){var h=b.getXY();b.moveTo(h.x+g,h.y+i)},resizeTo:function(g,i){b.setStyles({width:g,height:i})},resizeBy:function(g,j){var i=b.getSize();b.resizeTo(i.w+g,i.h+j)},update:function(h){var g;if(a.isIE6&&d.blocker){h=h||"";if(h.indexOf("get")===0||h.indexOf("has")===0||h.indexOf("is")===0){return}if(h=="remove"){e.remove(b.blocker);return}if(!b.blocker){b.blocker=e.uniqueId();g=e.add(d.container||e.getRoot(),"iframe",{id:b.blocker,style:"position:absolute;",frameBorder:0,src:'javascript:""'});e.setStyle(g,"opacity",0)}else{g=e.get(b.blocker)}e.setStyles(g,{left:b.getStyle("left",1),top:b.getStyle("top",1),width:b.getStyle("width",1),height:b.getStyle("height",1),display:b.getStyle("display",1),zIndex:parseInt(b.getStyle("zIndex",1)||0)-1})}}})}})(tinymce);(function(d){function f(g){return g.replace(/[\n\r]+/g,"")}var c=d.is,b=d.isIE,e=d.each,a=d.dom.TreeWalker;d.create("tinymce.dom.Selection",{Selection:function(k,j,i,h){var g=this;g.dom=k;g.win=j;g.serializer=i;g.editor=h;e(["onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent"],function(l){g[l]=new d.util.Dispatcher(g)});if(!g.win.getSelection){g.tridentSel=new d.dom.TridentSelection(g)}if(d.isIE&&k.boxModel){this._fixIESelection()}d.addUnload(g.destroy,g)},setCursorLocation:function(i,j){var g=this;var h=g.dom.createRng();h.setStart(i,j);h.setEnd(i,j);g.setRng(h);g.collapse(false)},getContent:function(h){var g=this,i=g.getRng(),m=g.dom.create("body"),k=g.getSel(),j,l,o;h=h||{};j=l="";h.get=true;h.format=h.format||"html";h.forced_root_block="";g.onBeforeGetContent.dispatch(g,h);if(h.format=="text"){return g.isCollapsed()?"":(i.text||(k.toString?k.toString():""))}if(i.cloneContents){o=i.cloneContents();if(o){m.appendChild(o)}}else{if(c(i.item)||c(i.htmlText)){m.innerHTML="<br>"+(i.item?i.item(0).outerHTML:i.htmlText);m.removeChild(m.firstChild)}else{m.innerHTML=i.toString()}}if(/^\s/.test(m.innerHTML)){j=" "}if(/\s+$/.test(m.innerHTML)){l=" "}h.getInner=true;h.content=g.isCollapsed()?"":j+g.serializer.serialize(m,h)+l;g.onGetContent.dispatch(g,h);return h.content},setContent:function(h,j){var o=this,g=o.getRng(),k,l=o.win.document,n,m;j=j||{format:"html"};j.set=true;h=j.content=h;if(!j.no_events){o.onBeforeSetContent.dispatch(o,j)}h=j.content;if(g.insertNode){h+='<span id="__caret">_</span>';if(g.startContainer==l&&g.endContainer==l){l.body.innerHTML=h}else{g.deleteContents();if(l.body.childNodes.length===0){l.body.innerHTML=h}else{if(g.createContextualFragment){g.insertNode(g.createContextualFragment(h))}else{n=l.createDocumentFragment();m=l.createElement("div");n.appendChild(m);m.outerHTML=h;g.insertNode(n)}}}k=o.dom.get("__caret");g=l.createRange();g.setStartBefore(k);g.setEndBefore(k);o.setRng(g);o.dom.remove("__caret");try{o.setRng(g)}catch(i){}}else{if(g.item){l.execCommand("Delete",false,null);g=o.getRng()}if(/^\s+/.test(h)){g.pasteHTML('<span id="__mce_tmp">_</span>'+h);o.dom.remove("__mce_tmp")}else{g.pasteHTML(h)}}if(!j.no_events){o.onSetContent.dispatch(o,j)}},getStart:function(){var i=this,h=i.getRng(),j,g,l,k;if(h.duplicate||h.item){if(h.item){return h.item(0)}l=h.duplicate();l.collapse(1);j=l.parentElement();if(j.ownerDocument!==i.dom.doc){j=i.dom.getRoot()}g=k=h.parentElement();while(k=k.parentNode){if(k==j){j=g;break}}return j}else{j=h.startContainer;if(j.nodeType==1&&j.hasChildNodes()){j=j.childNodes[Math.min(j.childNodes.length-1,h.startOffset)]}if(j&&j.nodeType==3){return j.parentNode}return j}},getEnd:function(){var h=this,g=h.getRng(),j,i;if(g.duplicate||g.item){if(g.item){return g.item(0)}g=g.duplicate();g.collapse(0);j=g.parentElement();if(j.ownerDocument!==h.dom.doc){j=h.dom.getRoot()}if(j&&j.nodeName=="BODY"){return j.lastChild||j}return j}else{j=g.endContainer;i=g.endOffset;if(j.nodeType==1&&j.hasChildNodes()){j=j.childNodes[i>0?i-1:i]}if(j&&j.nodeType==3){return j.parentNode}return j}},getBookmark:function(s,v){var y=this,n=y.dom,h,k,j,o,i,p,q,m="\uFEFF",x;function g(z,A){var t=0;e(n.select(z),function(C,B){if(C==A){t=B}});return t}function u(t){function z(E){var A,D,C,B=E?"start":"end";A=t[B+"Container"];D=t[B+"Offset"];if(A.nodeType==1&&A.nodeName=="TR"){C=A.childNodes;A=C[Math.min(E?D:D-1,C.length-1)];if(A){D=E?0:A.childNodes.length;t["set"+(E?"Start":"End")](A,D)}}}z(true);z();return t}function l(){var z=y.getRng(true),t=n.getRoot(),A={};function B(E,J){var D=E[J?"startContainer":"endContainer"],I=E[J?"startOffset":"endOffset"],C=[],F,H,G=0;if(D.nodeType==3){if(v){for(F=D.previousSibling;F&&F.nodeType==3;F=F.previousSibling){I+=F.nodeValue.length}}C.push(I)}else{H=D.childNodes;if(I>=H.length&&H.length){G=1;I=Math.max(0,H.length-1)}C.push(y.dom.nodeIndex(H[I],v)+G)}for(;D&&D!=t;D=D.parentNode){C.push(y.dom.nodeIndex(D,v))}return C}A.start=B(z,true);if(!y.isCollapsed()){A.end=B(z)}return A}if(s==2){if(y.tridentSel){return y.tridentSel.getBookmark(s)}return l()}if(s){return{rng:y.getRng()}}h=y.getRng();j=n.uniqueId();o=tinyMCE.activeEditor.selection.isCollapsed();x="overflow:hidden;line-height:0px";if(h.duplicate||h.item){if(!h.item){k=h.duplicate();try{h.collapse();h.pasteHTML('<span data-mce-type="bookmark" id="'+j+'_start" style="'+x+'">'+m+"</span>");if(!o){k.collapse(false);h.moveToElementText(k.parentElement());if(h.compareEndPoints("StartToEnd",k)===0){k.move("character",-1)}k.pasteHTML('<span data-mce-type="bookmark" id="'+j+'_end" style="'+x+'">'+m+"</span>")}}catch(r){return null}}else{p=h.item(0);i=p.nodeName;return{name:i,index:g(i,p)}}}else{p=y.getNode();i=p.nodeName;if(i=="IMG"){return{name:i,index:g(i,p)}}k=u(h.cloneRange());if(!o){k.collapse(false);k.insertNode(n.create("span",{"data-mce-type":"bookmark",id:j+"_end",style:x},m))}h=u(h);h.collapse(true);h.insertNode(n.create("span",{"data-mce-type":"bookmark",id:j+"_start",style:x},m))}y.moveToBookmark({id:j,keep:1});return{id:j}},moveToBookmark:function(o){var s=this,m=s.dom,j,i,g,r,k,u,p,q;function h(A){var t=o[A?"start":"end"],x,y,z,v;if(t){z=t[0];for(y=r,x=t.length-1;x>=1;x--){v=y.childNodes;if(t[x]>v.length-1){return}y=v[t[x]]}if(y.nodeType===3){z=Math.min(t[0],y.nodeValue.length)}if(y.nodeType===1){z=Math.min(t[0],y.childNodes.length)}if(A){g.setStart(y,z)}else{g.setEnd(y,z)}}return true}function l(B){var v=m.get(o.id+"_"+B),A,t,y,z,x=o.keep;if(v){A=v.parentNode;if(B=="start"){if(!x){t=m.nodeIndex(v)}else{A=v.firstChild;t=1}k=u=A;p=q=t}else{if(!x){t=m.nodeIndex(v)}else{A=v.firstChild;t=1}u=A;q=t}if(!x){z=v.previousSibling;y=v.nextSibling;e(d.grep(v.childNodes),function(C){if(C.nodeType==3){C.nodeValue=C.nodeValue.replace(/\uFEFF/g,"")}});while(v=m.get(o.id+"_"+B)){m.remove(v,1)}if(z&&y&&z.nodeType==y.nodeType&&z.nodeType==3&&!d.isOpera){t=z.nodeValue.length;z.appendData(y.nodeValue);m.remove(y);if(B=="start"){k=u=z;p=q=t}else{u=z;q=t}}}}}function n(t){if(m.isBlock(t)&&!t.innerHTML&&!b){t.innerHTML='<br data-mce-bogus="1" />'}return t}if(o){if(o.start){g=m.createRng();r=m.getRoot();if(s.tridentSel){return s.tridentSel.moveToBookmark(o)}if(h(true)&&h()){s.setRng(g)}}else{if(o.id){l("start");l("end");if(k){g=m.createRng();g.setStart(n(k),p);g.setEnd(n(u),q);s.setRng(g)}}else{if(o.name){s.select(m.select(o.name)[o.index])}else{if(o.rng){s.setRng(o.rng)}}}}}},select:function(l,k){var j=this,m=j.dom,h=m.createRng(),g;function i(n,p){var o=new a(n,n);do{if(n.nodeType==3&&d.trim(n.nodeValue).length!==0){if(p){h.setStart(n,0)}else{h.setEnd(n,n.nodeValue.length)}return}if(n.nodeName=="BR"){if(p){h.setStartBefore(n)}else{h.setEndBefore(n)}return}}while(n=(p?o.next():o.prev()))}if(l){g=m.nodeIndex(l);h.setStart(l.parentNode,g);h.setEnd(l.parentNode,g+1);if(k){i(l,1);i(l)}j.setRng(h)}return l},isCollapsed:function(){var g=this,i=g.getRng(),h=g.getSel();if(!i||i.item){return false}if(i.compareEndPoints){return i.compareEndPoints("StartToEnd",i)===0}return !h||i.collapsed},collapse:function(g){var i=this,h=i.getRng(),j;if(h.item){j=h.item(0);h=i.win.document.body.createTextRange();h.moveToElementText(j)}h.collapse(!!g);i.setRng(h)},getSel:function(){var h=this,g=this.win;return g.getSelection?g.getSelection():g.document.selection},getRng:function(m){var h=this,j,g,l,k=h.win.document;if(m&&h.tridentSel){return h.tridentSel.getRangeAt(0)}try{if(j=h.getSel()){g=j.rangeCount>0?j.getRangeAt(0):(j.createRange?j.createRange():k.createRange())}}catch(i){}if(d.isIE&&g&&g.setStart&&k.selection.createRange().item){l=k.selection.createRange().item(0);g=k.createRange();g.setStartBefore(l);g.setEndAfter(l)}if(!g){g=k.createRange?k.createRange():k.body.createTextRange()}if(g.setStart&&g.startContainer.nodeType===9&&g.collapsed){l=h.dom.getRoot();g.setStart(l,0);g.setEnd(l,0)}if(h.selectedRange&&h.explicitRange){if(g.compareBoundaryPoints(g.START_TO_START,h.selectedRange)===0&&g.compareBoundaryPoints(g.END_TO_END,h.selectedRange)===0){g=h.explicitRange}else{h.selectedRange=null;h.explicitRange=null}}return g},setRng:function(k,g){var j,i=this;if(!i.tridentSel){j=i.getSel();if(j){i.explicitRange=k;try{j.removeAllRanges()}catch(h){}j.addRange(k);if(g===false&&j.extend){j.collapse(k.endContainer,k.endOffset);j.extend(k.startContainer,k.startOffset)}i.selectedRange=j.rangeCount>0?j.getRangeAt(0):null}}else{if(k.cloneRange){try{i.tridentSel.addRange(k);return}catch(h){}}try{k.select()}catch(h){}}},setNode:function(h){var g=this;g.setContent(g.dom.getOuterHTML(h));return h},getNode:function(){var i=this,h=i.getRng(),j=i.getSel(),m,l=h.startContainer,g=h.endContainer;function k(q,o){var p=q;while(q&&q.nodeType===3&&q.length===0){q=o?q.nextSibling:q.previousSibling}return q||p}if(!h){return i.dom.getRoot()}if(h.setStart){m=h.commonAncestorContainer;if(!h.collapsed){if(h.startContainer==h.endContainer){if(h.endOffset-h.startOffset<2){if(h.startContainer.hasChildNodes()){m=h.startContainer.childNodes[h.startOffset]}}}if(l.nodeType===3&&g.nodeType===3){if(l.length===h.startOffset){l=k(l.nextSibling,true)}else{l=l.parentNode}if(h.endOffset===0){g=k(g.previousSibling,false)}else{g=g.parentNode}if(l&&l===g){return l}}}if(m&&m.nodeType==3){return m.parentNode}return m}return h.item?h.item(0):h.parentElement()},getSelectedBlocks:function(p,h){var o=this,k=o.dom,m,l,i,j=[];m=k.getParent(p||o.getStart(),k.isBlock);l=k.getParent(h||o.getEnd(),k.isBlock);if(m){j.push(m)}if(m&&l&&m!=l){i=m;var g=new a(m,k.getRoot());while((i=g.next())&&i!=l){if(k.isBlock(i)){j.push(i)}}}if(l&&m!=l){j.push(l)}return j},isForward:function(){var i=this.dom,g=this.getSel(),j,h;if(!g||g.anchorNode==null||g.focusNode==null){return true}j=i.createRng();j.setStart(g.anchorNode,g.anchorOffset);j.collapse(true);h=i.createRng();h.setStart(g.focusNode,g.focusOffset);h.collapse(true);return j.compareBoundaryPoints(j.START_TO_START,h)<=0},normalize:function(){var h=this,g,m,l,j,i;function k(p){var o,r,n,s=h.dom,u=s.getRoot(),q,t,v;function y(z,A){var B=new a(z,s.getParent(z.parentNode,s.isBlock)||u);while(z=B[A?"prev":"next"]()){if(z.nodeName==="BR"){return true}}}function x(B,z){var C,A;z=z||o;C=new a(z,s.getParent(z.parentNode,s.isBlock)||u);while(q=C[B?"prev":"next"]()){if(q.nodeType===3&&q.nodeValue.length>0){o=q;r=B?q.nodeValue.length:0;m=true;return}if(s.isBlock(q)||t[q.nodeName.toLowerCase()]){return}A=q}if(l&&A){o=A;m=true;r=0}}o=g[(p?"start":"end")+"Container"];r=g[(p?"start":"end")+"Offset"];t=s.schema.getNonEmptyElements();if(o.nodeType===9){o=s.getRoot();r=0}if(o===u){if(p){q=o.childNodes[r>0?r-1:0];if(q){v=q.nodeName.toLowerCase();if(t[q.nodeName]||q.nodeName=="TABLE"){return}}}if(o.hasChildNodes()){o=o.childNodes[Math.min(!p&&r>0?r-1:r,o.childNodes.length-1)];r=0;if(o.hasChildNodes()&&!/TABLE/.test(o.nodeName)){q=o;n=new a(o,u);do{if(q.nodeType===3&&q.nodeValue.length>0){r=p?0:q.nodeValue.length;o=q;m=true;break}if(t[q.nodeName.toLowerCase()]){r=s.nodeIndex(q);o=q.parentNode;if(q.nodeName=="IMG"&&!p){r++}m=true;break}}while(q=(p?n.next():n.prev()))}}}if(l){if(o.nodeType===3&&r===0){x(true)}if(o.nodeType===1){q=o.childNodes[r];if(q&&q.nodeName==="BR"&&!y(q)&&!y(q,true)){x(true,o.childNodes[r])}}}if(p&&!l&&o.nodeType===3&&r===o.nodeValue.length){x(false)}if(m){g["set"+(p?"Start":"End")](o,r)}}if(d.isIE){return}g=h.getRng();l=g.collapsed;k(true);if(!l){k()}if(m){if(l){g.collapse(true)}h.setRng(g,h.isForward())}},selectorChanged:function(g,j){var h=this,i;if(!h.selectorChangedData){h.selectorChangedData={};i={};h.editor.onNodeChange.addToTop(function(l,k,o){var p=h.dom,m=p.getParents(o,null,p.getRoot()),n={};e(h.selectorChangedData,function(r,q){e(m,function(s){if(p.is(s,q)){if(!i[q]){e(r,function(t){t(true,{node:s,selector:q,parents:m})});i[q]=r}n[q]=r;return false}})});e(i,function(r,q){if(!n[q]){delete i[q];e(r,function(s){s(false,{node:o,selector:q,parents:m})})}})})}if(!h.selectorChangedData[g]){h.selectorChangedData[g]=[]}h.selectorChangedData[g].push(j);return h},destroy:function(h){var g=this;g.win=null;if(!h){d.removeUnload(g.destroy)}},_fixIESelection:function(){var h=this.dom,n=h.doc,i=n.body,k,o,g;function j(p,s){var q=i.createTextRange();try{q.moveToPoint(p,s)}catch(r){q=null}return q}function m(q){var p;if(q.button){p=j(q.x,q.y);if(p){if(p.compareEndPoints("StartToStart",o)>0){p.setEndPoint("StartToStart",o)}else{p.setEndPoint("EndToEnd",o)}p.select()}}else{l()}}function l(){var p=n.selection.createRange();if(o&&!p.item&&p.compareEndPoints("StartToEnd",p)===0){o.select()}h.unbind(n,"mouseup",l);h.unbind(n,"mousemove",m);o=k=0}n.documentElement.unselectable=true;h.bind(n,["mousedown","contextmenu"],function(p){if(p.target.nodeName==="HTML"){if(k){l()}g=n.documentElement;if(g.scrollHeight>g.clientHeight){return}k=1;o=j(p.x,p.y);if(o){h.bind(n,"mouseup",l);h.bind(n,"mousemove",m);h.win.focus();o.select()}}})}})})(tinymce);(function(a){a.dom.Serializer=function(e,i,f){var h,b,d=a.isIE,g=a.each,c;if(!e.apply_source_formatting){e.indent=false}i=i||a.DOM;f=f||new a.html.Schema(e);e.entity_encoding=e.entity_encoding||"named";e.remove_trailing_brs="remove_trailing_brs" in e?e.remove_trailing_brs:true;h=new a.util.Dispatcher(self);b=new a.util.Dispatcher(self);c=new a.html.DomParser(e,f);c.addAttributeFilter("src,href,style",function(k,j){var o=k.length,l,q,n="data-mce-"+j,p=e.url_converter,r=e.url_converter_scope,m;while(o--){l=k[o];q=l.attributes.map[n];if(q!==m){l.attr(j,q.length>0?q:null);l.attr(n,null)}else{q=l.attributes.map[j];if(j==="style"){q=i.serializeStyle(i.parseStyle(q),l.name)}else{if(p){q=p.call(r,q,j,l.name)}}l.attr(j,q.length>0?q:null)}}});c.addAttributeFilter("class",function(j,k){var l=j.length,m,n;while(l--){m=j[l];n=m.attr("class").replace(/(?:^|\s)mce(Item\w+|Selected)(?!\S)/g,"");m.attr("class",n.length>0?n:null)}});c.addAttributeFilter("data-mce-type",function(j,l,k){var m=j.length,n;while(m--){n=j[m];if(n.attributes.map["data-mce-type"]==="bookmark"&&!k.cleanup){n.remove()}}});c.addAttributeFilter("data-mce-expando",function(j,l,k){var m=j.length;while(m--){j[m].attr(l,null)}});c.addNodeFilter("noscript",function(j){var k=j.length,l;while(k--){l=j[k].firstChild;if(l){l.value=a.html.Entities.decode(l.value)}}});c.addNodeFilter("script,style",function(k,l){var m=k.length,n,o;function j(p){return p.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")}while(m--){n=k[m];o=n.firstChild?n.firstChild.value:"";if(l==="script"){n.attr("type",(n.attr("type")||"text/javascript").replace(/^mce\-/,""));if(o.length>0){n.firstChild.value="// <![CDATA[\n"+j(o)+"\n// ]]>"}}else{if(o.length>0){n.firstChild.value="<!--\n"+j(o)+"\n-->"}}}});c.addNodeFilter("#comment",function(j,k){var l=j.length,m;while(l--){m=j[l];if(m.value.indexOf("[CDATA[")===0){m.name="#cdata";m.type=4;m.value=m.value.replace(/^\[CDATA\[|\]\]$/g,"")}else{if(m.value.indexOf("mce:protected ")===0){m.name="#text";m.type=3;m.raw=true;m.value=unescape(m.value).substr(14)}}}});c.addNodeFilter("xml:namespace,input",function(j,k){var l=j.length,m;while(l--){m=j[l];if(m.type===7){m.remove()}else{if(m.type===1){if(k==="input"&&!("type" in m.attributes.map)){m.attr("type","text")}}}}});if(e.fix_list_elements){c.addNodeFilter("ul,ol",function(k,l){var m=k.length,n,j;while(m--){n=k[m];j=n.parent;if(j.name==="ul"||j.name==="ol"){if(n.prev&&n.prev.name==="li"){n.prev.append(n)}}}})}c.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style",function(j,k){var l=j.length;while(l--){j[l].attr(k,null)}});return{schema:f,addNodeFilter:c.addNodeFilter,addAttributeFilter:c.addAttributeFilter,onPreProcess:h,onPostProcess:b,serialize:function(o,m){var l,p,k,j,n;if(d&&i.select("script,style,select,map").length>0){n=o.innerHTML;o=o.cloneNode(false);i.setHTML(o,n)}else{o=o.cloneNode(true)}l=o.ownerDocument.implementation;if(l.createHTMLDocument){p=l.createHTMLDocument("");g(o.nodeName=="BODY"?o.childNodes:[o],function(q){p.body.appendChild(p.importNode(q,true))});if(o.nodeName!="BODY"){o=p.body.firstChild}else{o=p.body}k=i.doc;i.doc=p}m=m||{};m.format=m.format||"html";if(!m.no_events){m.node=o;h.dispatch(self,m)}j=new a.html.Serializer(e,f);m.content=j.serialize(c.parse(a.trim(m.getInner?o.innerHTML:i.getOuterHTML(o)),m));if(!m.cleanup){m.content=m.content.replace(/\uFEFF/g,"")}if(!m.no_events){b.dispatch(self,m)}if(k){i.doc=k}m.node=null;return m.content},addRules:function(j){f.addValidElements(j)},setRules:function(j){f.setValidElements(j)}}}})(tinymce);(function(a){a.dom.ScriptLoader=function(h){var c=0,k=1,i=2,l={},j=[],e={},d=[],g=0,f;function b(m,v){var x=this,q=a.DOM,s,o,r,n;function p(){q.remove(n);if(s){s.onreadystatechange=s.onload=s=null}v()}function u(){if(typeof(console)!=="undefined"&&console.log){console.log("Failed to load: "+m)}}n=q.uniqueId();if(a.isIE6){o=new a.util.URI(m);r=location;if(o.host==r.hostname&&o.port==r.port&&(o.protocol+":")==r.protocol&&o.protocol.toLowerCase()!="file"){a.util.XHR.send({url:a._addVer(o.getURI()),success:function(y){var t=q.create("script",{type:"text/javascript"});t.text=y;document.getElementsByTagName("head")[0].appendChild(t);q.remove(t);p()},error:u});return}}s=document.createElement("script");s.id=n;s.type="text/javascript";s.src=a._addVer(m);if(!a.isIE){s.onload=p}s.onerror=u;if(!a.isOpera){s.onreadystatechange=function(){var t=s.readyState;if(t=="complete"||t=="loaded"){p()}}}(document.getElementsByTagName("head")[0]||document.body).appendChild(s)}this.isDone=function(m){return l[m]==i};this.markDone=function(m){l[m]=i};this.add=this.load=function(m,q,n){var o,p=l[m];if(p==f){j.push(m);l[m]=c}if(q){if(!e[m]){e[m]=[]}e[m].push({func:q,scope:n||this})}};this.loadQueue=function(n,m){this.loadScripts(j,n,m)};this.loadScripts=function(m,q,p){var o;function n(r){a.each(e[r],function(s){s.func.call(s.scope)});e[r]=f}d.push({func:q,scope:p||this});o=function(){var r=a.grep(m);m.length=0;a.each(r,function(s){if(l[s]==i){n(s);return}if(l[s]!=k){l[s]=k;g++;b(s,function(){l[s]=i;g--;n(s);o()})}});if(!g){a.each(d,function(s){s.func.call(s.scope)});d.length=0}};o()}};a.ScriptLoader=new a.dom.ScriptLoader()})(tinymce);(function(a){a.dom.RangeUtils=function(c){var b="\uFEFF";this.walk=function(d,s){var i=d.startContainer,l=d.startOffset,t=d.endContainer,m=d.endOffset,j,g,o,h,r,q,e;e=c.select("td.mceSelected,th.mceSelected");if(e.length>0){a.each(e,function(u){s([u])});return}function f(u){var v;v=u[0];if(v.nodeType===3&&v===i&&l>=v.nodeValue.length){u.splice(0,1)}v=u[u.length-1];if(m===0&&u.length>0&&v===t&&v.nodeType===3){u.splice(u.length-1,1)}return u}function p(x,v,u){var y=[];for(;x&&x!=u;x=x[v]){y.push(x)}return y}function n(v,u){do{if(v.parentNode==u){return v}v=v.parentNode}while(v)}function k(x,v,y){var u=y?"nextSibling":"previousSibling";for(h=x,r=h.parentNode;h&&h!=v;h=r){r=h.parentNode;q=p(h==x?h:h[u],u);if(q.length){if(!y){q.reverse()}s(f(q))}}}if(i.nodeType==1&&i.hasChildNodes()){i=i.childNodes[l]}if(t.nodeType==1&&t.hasChildNodes()){t=t.childNodes[Math.min(m-1,t.childNodes.length-1)]}if(i==t){return s(f([i]))}j=c.findCommonAncestor(i,t);for(h=i;h;h=h.parentNode){if(h===t){return k(i,j,true)}if(h===j){break}}for(h=t;h;h=h.parentNode){if(h===i){return k(t,j)}if(h===j){break}}g=n(i,j)||i;o=n(t,j)||t;k(i,g,true);q=p(g==i?g:g.nextSibling,"nextSibling",o==t?o.nextSibling:o);if(q.length){s(f(q))}k(t,o)};this.split=function(e){var h=e.startContainer,d=e.startOffset,i=e.endContainer,g=e.endOffset;function f(j,k){return j.splitText(k)}if(h==i&&h.nodeType==3){if(d>0&&d<h.nodeValue.length){i=f(h,d);h=i.previousSibling;if(g>d){g=g-d;h=i=f(i,g).previousSibling;g=i.nodeValue.length;d=0}else{g=0}}}else{if(h.nodeType==3&&d>0&&d<h.nodeValue.length){h=f(h,d);d=0}if(i.nodeType==3&&g>0&&g<i.nodeValue.length){i=f(i,g).previousSibling;g=i.nodeValue.length}}return{startContainer:h,startOffset:d,endContainer:i,endOffset:g}}};a.dom.RangeUtils.compareRanges=function(c,b){if(c&&b){if(c.item||c.duplicate){if(c.item&&b.item&&c.item(0)===b.item(0)){return true}if(c.isEqual&&b.isEqual&&b.isEqual(c)){return true}}else{return c.startContainer==b.startContainer&&c.startOffset==b.startOffset}}return false}})(tinymce);(function(b){var a=b.dom.Event,c=b.each;b.create("tinymce.ui.KeyboardNavigation",{KeyboardNavigation:function(e,f){var q=this,n=e.root,m=e.items,o=e.enableUpDown,i=e.enableLeftRight||!e.enableUpDown,l=e.excludeFromTabOrder,k,h,p,d,g;f=f||b.DOM;k=function(r){g=r.target.id};h=function(r){f.setAttrib(r.target.id,"tabindex","-1")};d=function(r){var s=f.get(g);f.setAttrib(s,"tabindex","0");s.focus()};q.focus=function(){f.get(g).focus()};q.destroy=function(){c(m,function(s){var t=f.get(s.id);f.unbind(t,"focus",k);f.unbind(t,"blur",h)});var r=f.get(n);f.unbind(r,"focus",d);f.unbind(r,"keydown",p);m=f=n=q.focus=k=h=p=d=null;q.destroy=function(){}};q.moveFocus=function(v,s){var r=-1,u=q.controls,t;if(!g){return}c(m,function(y,x){if(y.id===g){r=x;return false}});r+=v;if(r<0){r=m.length-1}else{if(r>=m.length){r=0}}t=m[r];f.setAttrib(g,"tabindex","-1");f.setAttrib(t.id,"tabindex","0");f.get(t.id).focus();if(e.actOnFocus){e.onAction(t.id)}if(s){a.cancel(s)}};p=function(z){var v=37,u=39,y=38,A=40,r=27,t=14,s=13,x=32;switch(z.keyCode){case v:if(i){q.moveFocus(-1)}break;case u:if(i){q.moveFocus(1)}break;case y:if(o){q.moveFocus(-1)}break;case A:if(o){q.moveFocus(1)}break;case r:if(e.onCancel){e.onCancel();a.cancel(z)}break;case t:case s:case x:if(e.onAction){e.onAction(g);a.cancel(z)}break}};c(m,function(t,r){var s,u;if(!t.id){t.id=f.uniqueId("_mce_item_")}u=f.get(t.id);if(l){f.bind(u,"blur",h);s="-1"}else{s=(r===0?"0":"-1")}u.setAttribute("tabindex",s);f.bind(u,"focus",k)});if(m[0]){g=m[0].id}f.setAttrib(n,"tabindex","-1");var j=f.get(n);f.bind(j,"focus",d);f.bind(j,"keydown",p)}})})(tinymce);(function(c){var b=c.DOM,a=c.is;c.create("tinymce.ui.Control",{Control:function(f,e,d){this.id=f;this.settings=e=e||{};this.rendered=false;this.onRender=new c.util.Dispatcher(this);this.classPrefix="";this.scope=e.scope||this;this.disabled=0;this.active=0;this.editor=d},setAriaProperty:function(f,e){var d=b.get(this.id+"_aria")||b.get(this.id);if(d){b.setAttrib(d,"aria-"+f,!!e)}},focus:function(){b.get(this.id).focus()},setDisabled:function(d){if(d!=this.disabled){this.setAriaProperty("disabled",d);this.setState("Disabled",d);this.setState("Enabled",!d);this.disabled=d}},isDisabled:function(){return this.disabled},setActive:function(d){if(d!=this.active){this.setState("Active",d);this.active=d;this.setAriaProperty("pressed",d)}},isActive:function(){return this.active},setState:function(f,d){var e=b.get(this.id);f=this.classPrefix+f;if(d){b.addClass(e,f)}else{b.removeClass(e,f)}},isRendered:function(){return this.rendered},renderHTML:function(){},renderTo:function(d){b.setHTML(d,this.renderHTML())},postRender:function(){var e=this,d;if(a(e.disabled)){d=e.disabled;e.disabled=-1;e.setDisabled(d)}if(a(e.active)){d=e.active;e.active=-1;e.setActive(d)}},remove:function(){b.remove(this.id);this.destroy()},destroy:function(){c.dom.Event.clear(this.id)}})})(tinymce);tinymce.create("tinymce.ui.Container:tinymce.ui.Control",{Container:function(c,b,a){this.parent(c,b,a);this.controls=[];this.lookup={}},add:function(a){this.lookup[a.id]=a;this.controls.push(a);return a},get:function(a){return this.lookup[a]}});tinymce.create("tinymce.ui.Separator:tinymce.ui.Control",{Separator:function(b,a){this.parent(b,a);this.classPrefix="mceSeparator";this.setDisabled(true)},renderHTML:function(){return tinymce.DOM.createHTML("span",{"class":this.classPrefix,role:"separator","aria-orientation":"vertical",tabindex:"-1"})}});(function(d){var c=d.is,b=d.DOM,e=d.each,a=d.walk;d.create("tinymce.ui.MenuItem:tinymce.ui.Control",{MenuItem:function(g,f){this.parent(g,f);this.classPrefix="mceMenuItem"},setSelected:function(f){this.setState("Selected",f);this.setAriaProperty("checked",!!f);this.selected=f},isSelected:function(){return this.selected},postRender:function(){var f=this;f.parent();if(c(f.selected)){f.setSelected(f.selected)}}})})(tinymce);(function(d){var c=d.is,b=d.DOM,e=d.each,a=d.walk;d.create("tinymce.ui.Menu:tinymce.ui.MenuItem",{Menu:function(h,g){var f=this;f.parent(h,g);f.items={};f.collapsed=false;f.menuCount=0;f.onAddItem=new d.util.Dispatcher(this)},expand:function(g){var f=this;if(g){a(f,function(h){if(h.expand){h.expand()}},"items",f)}f.collapsed=false},collapse:function(g){var f=this;if(g){a(f,function(h){if(h.collapse){h.collapse()}},"items",f)}f.collapsed=true},isCollapsed:function(){return this.collapsed},add:function(f){if(!f.settings){f=new d.ui.MenuItem(f.id||b.uniqueId(),f)}this.onAddItem.dispatch(this,f);return this.items[f.id]=f},addSeparator:function(){return this.add({separator:true})},addMenu:function(f){if(!f.collapse){f=this.createMenu(f)}this.menuCount++;return this.add(f)},hasMenus:function(){return this.menuCount!==0},remove:function(f){delete this.items[f.id]},removeAll:function(){var f=this;a(f,function(g){if(g.removeAll){g.removeAll()}else{g.remove()}g.destroy()},"items",f);f.items={}},createMenu:function(g){var f=new d.ui.Menu(g.id||b.uniqueId(),g);f.onAddItem.add(this.onAddItem.dispatch,this.onAddItem);return f}})})(tinymce);(function(e){var d=e.is,c=e.DOM,f=e.each,a=e.dom.Event,b=e.dom.Element;e.create("tinymce.ui.DropMenu:tinymce.ui.Menu",{DropMenu:function(h,g){g=g||{};g.container=g.container||c.doc.body;g.offset_x=g.offset_x||0;g.offset_y=g.offset_y||0;g.vp_offset_x=g.vp_offset_x||0;g.vp_offset_y=g.vp_offset_y||0;if(d(g.icons)&&!g.icons){g["class"]+=" mceNoIcons"}this.parent(h,g);this.onShowMenu=new e.util.Dispatcher(this);this.onHideMenu=new e.util.Dispatcher(this);this.classPrefix="mceMenu"},createMenu:function(j){var h=this,i=h.settings,g;j.container=j.container||i.container;j.parent=h;j.constrain=j.constrain||i.constrain;j["class"]=j["class"]||i["class"];j.vp_offset_x=j.vp_offset_x||i.vp_offset_x;j.vp_offset_y=j.vp_offset_y||i.vp_offset_y;j.keyboard_focus=i.keyboard_focus;g=new e.ui.DropMenu(j.id||c.uniqueId(),j);g.onAddItem.add(h.onAddItem.dispatch,h.onAddItem);return g},focus:function(){var g=this;if(g.keyboardNav){g.keyboardNav.focus()}},update:function(){var i=this,j=i.settings,g=c.get("menu_"+i.id+"_tbl"),l=c.get("menu_"+i.id+"_co"),h,k;h=j.max_width?Math.min(g.offsetWidth,j.max_width):g.offsetWidth;k=j.max_height?Math.min(g.offsetHeight,j.max_height):g.offsetHeight;if(!c.boxModel){i.element.setStyles({width:h+2,height:k+2})}else{i.element.setStyles({width:h,height:k})}if(j.max_width){c.setStyle(l,"width",h)}if(j.max_height){c.setStyle(l,"height",k);if(g.clientHeight<j.max_height){c.setStyle(l,"overflow","hidden")}}},showMenu:function(p,n,r){var z=this,A=z.settings,o,g=c.getViewPort(),u,l,v,q,i=2,k,j,m=z.classPrefix;z.collapse(1);if(z.isMenuVisible){return}if(!z.rendered){o=c.add(z.settings.container,z.renderNode());f(z.items,function(h){h.postRender()});z.element=new b("menu_"+z.id,{blocker:1,container:A.container})}else{o=c.get("menu_"+z.id)}if(!e.isOpera){c.setStyles(o,{left:-65535,top:-65535})}c.show(o);z.update();p+=A.offset_x||0;n+=A.offset_y||0;g.w-=4;g.h-=4;if(A.constrain){u=o.clientWidth-i;l=o.clientHeight-i;v=g.x+g.w;q=g.y+g.h;if((p+A.vp_offset_x+u)>v){p=r?r-u:Math.max(0,(v-A.vp_offset_x)-u)}if((n+A.vp_offset_y+l)>q){n=Math.max(0,(q-A.vp_offset_y)-l)}}c.setStyles(o,{left:p,top:n});z.element.update();z.isMenuVisible=1;z.mouseClickFunc=a.add(o,"click",function(s){var h;s=s.target;if(s&&(s=c.getParent(s,"tr"))&&!c.hasClass(s,m+"ItemSub")){h=z.items[s.id];if(h.isDisabled()){return}k=z;while(k){if(k.hideMenu){k.hideMenu()}k=k.settings.parent}if(h.settings.onclick){h.settings.onclick(s)}return false}});if(z.hasMenus()){z.mouseOverFunc=a.add(o,"mouseover",function(x){var h,t,s;x=x.target;if(x&&(x=c.getParent(x,"tr"))){h=z.items[x.id];if(z.lastMenu){z.lastMenu.collapse(1)}if(h.isDisabled()){return}if(x&&c.hasClass(x,m+"ItemSub")){t=c.getRect(x);h.showMenu((t.x+t.w-i),t.y-i,t.x);z.lastMenu=h;c.addClass(c.get(h.id).firstChild,m+"ItemActive")}}})}a.add(o,"keydown",z._keyHandler,z);z.onShowMenu.dispatch(z);if(A.keyboard_focus){z._setupKeyboardNav()}},hideMenu:function(j){var g=this,i=c.get("menu_"+g.id),h;if(!g.isMenuVisible){return}if(g.keyboardNav){g.keyboardNav.destroy()}a.remove(i,"mouseover",g.mouseOverFunc);a.remove(i,"click",g.mouseClickFunc);a.remove(i,"keydown",g._keyHandler);c.hide(i);g.isMenuVisible=0;if(!j){g.collapse(1)}if(g.element){g.element.hide()}if(h=c.get(g.id)){c.removeClass(h.firstChild,g.classPrefix+"ItemActive")}g.onHideMenu.dispatch(g)},add:function(i){var g=this,h;i=g.parent(i);if(g.isRendered&&(h=c.get("menu_"+g.id))){g._add(c.select("tbody",h)[0],i)}return i},collapse:function(g){this.parent(g);this.hideMenu(1)},remove:function(g){c.remove(g.id);this.destroy();return this.parent(g)},destroy:function(){var g=this,h=c.get("menu_"+g.id);if(g.keyboardNav){g.keyboardNav.destroy()}a.remove(h,"mouseover",g.mouseOverFunc);a.remove(c.select("a",h),"focus",g.mouseOverFunc);a.remove(h,"click",g.mouseClickFunc);a.remove(h,"keydown",g._keyHandler);if(g.element){g.element.remove()}c.remove(h)},renderNode:function(){var i=this,j=i.settings,l,h,k,g;g=c.create("div",{role:"listbox",id:"menu_"+i.id,"class":j["class"],style:"position:absolute;left:0;top:0;z-index:200000;outline:0"});if(i.settings.parent){c.setAttrib(g,"aria-parent","menu_"+i.settings.parent.id)}k=c.add(g,"div",{role:"presentation",id:"menu_"+i.id+"_co","class":i.classPrefix+(j["class"]?" "+j["class"]:"")});i.element=new b("menu_"+i.id,{blocker:1,container:j.container});if(j.menu_line){c.add(k,"span",{"class":i.classPrefix+"Line"})}l=c.add(k,"table",{role:"presentation",id:"menu_"+i.id+"_tbl",border:0,cellPadding:0,cellSpacing:0});h=c.add(l,"tbody");f(i.items,function(m){i._add(h,m)});i.rendered=true;return g},_setupKeyboardNav:function(){var i,h,g=this;i=c.get("menu_"+g.id);h=c.select("a[role=option]","menu_"+g.id);h.splice(0,0,i);g.keyboardNav=new e.ui.KeyboardNavigation({root:"menu_"+g.id,items:h,onCancel:function(){g.hideMenu()},enableUpDown:true});i.focus()},_keyHandler:function(g){var h=this,i;switch(g.keyCode){case 37:if(h.settings.parent){h.hideMenu();h.settings.parent.focus();a.cancel(g)}break;case 39:if(h.mouseOverFunc){h.mouseOverFunc(g)}break}},_add:function(j,h){var i,q=h.settings,p,l,k,m=this.classPrefix,g;if(q.separator){l=c.add(j,"tr",{id:h.id,"class":m+"ItemSeparator"});c.add(l,"td",{"class":m+"ItemSeparator"});if(i=l.previousSibling){c.addClass(i,"mceLast")}return}i=l=c.add(j,"tr",{id:h.id,"class":m+"Item "+m+"ItemEnabled"});i=k=c.add(i,q.titleItem?"th":"td");i=p=c.add(i,"a",{id:h.id+"_aria",role:q.titleItem?"presentation":"option",href:"javascript:;",onclick:"return false;",onmousedown:"return false;"});if(q.parent){c.setAttrib(p,"aria-haspopup","true");c.setAttrib(p,"aria-owns","menu_"+h.id)}c.addClass(k,q["class"]);g=c.add(i,"span",{"class":"mceIcon"+(q.icon?" mce_"+q.icon:"")});if(q.icon_src){c.add(g,"img",{src:q.icon_src})}i=c.add(i,q.element||"span",{"class":"mceText",title:h.settings.title},h.settings.title);if(h.settings.style){if(typeof h.settings.style=="function"){h.settings.style=h.settings.style()}c.setAttrib(i,"style",h.settings.style)}if(j.childNodes.length==1){c.addClass(l,"mceFirst")}if((i=l.previousSibling)&&c.hasClass(i,m+"ItemSeparator")){c.addClass(l,"mceFirst")}if(h.collapse){c.addClass(l,m+"ItemSub")}if(i=l.previousSibling){c.removeClass(i,"mceLast")}c.addClass(l,"mceLast")}})})(tinymce);(function(b){var a=b.DOM;b.create("tinymce.ui.Button:tinymce.ui.Control",{Button:function(e,d,c){this.parent(e,d,c);this.classPrefix="mceButton"},renderHTML:function(){var f=this.classPrefix,e=this.settings,d,c;c=a.encode(e.label||"");d='<a role="button" id="'+this.id+'" href="javascript:;" class="'+f+" "+f+"Enabled "+e["class"]+(c?" "+f+"Labeled":"")+'" onmousedown="return false;" onclick="return false;" aria-labelledby="'+this.id+'_voice" title="'+a.encode(e.title)+'">';if(e.image&&!(this.editor&&this.editor.forcedHighContrastMode)){d+='<span class="mceIcon '+e["class"]+'"><img class="mceIcon" src="'+e.image+'" alt="'+a.encode(e.title)+'" /></span>'+(c?'<span class="'+f+'Label">'+c+"</span>":"")}else{d+='<span class="mceIcon '+e["class"]+'"></span>'+(c?'<span class="'+f+'Label">'+c+"</span>":"")}d+='<span class="mceVoiceLabel mceIconOnly" style="display: none;" id="'+this.id+'_voice">'+e.title+"</span>";d+="</a>";return d},postRender:function(){var d=this,e=d.settings,c;if(b.isIE&&d.editor){b.dom.Event.add(d.id,"mousedown",function(f){var g=d.editor.selection.getNode().nodeName;c=g==="IMG"?d.editor.selection.getBookmark():null})}b.dom.Event.add(d.id,"click",function(f){if(!d.isDisabled()){if(b.isIE&&d.editor&&c!==null){d.editor.selection.moveToBookmark(c)}return e.onclick.call(e.scope,f)}});b.dom.Event.add(d.id,"keyup",function(f){if(!d.isDisabled()&&f.keyCode==b.VK.SPACEBAR){return e.onclick.call(e.scope,f)}})}})})(tinymce);(function(e){var d=e.DOM,b=e.dom.Event,f=e.each,a=e.util.Dispatcher,c;e.create("tinymce.ui.ListBox:tinymce.ui.Control",{ListBox:function(j,i,g){var h=this;h.parent(j,i,g);h.items=[];h.onChange=new a(h);h.onPostRender=new a(h);h.onAdd=new a(h);h.onRenderMenu=new e.util.Dispatcher(this);h.classPrefix="mceListBox";h.marked={}},select:function(h){var g=this,j,i;g.marked={};if(h==c){return g.selectByIndex(-1)}if(h&&typeof(h)=="function"){i=h}else{i=function(k){return k==h}}if(h!=g.selectedValue){f(g.items,function(l,k){if(i(l.value)){j=1;g.selectByIndex(k);return false}});if(!j){g.selectByIndex(-1)}}},selectByIndex:function(g){var i=this,j,k,h;i.marked={};if(g!=i.selectedIndex){j=d.get(i.id+"_text");h=d.get(i.id+"_voiceDesc");k=i.items[g];if(k){i.selectedValue=k.value;i.selectedIndex=g;d.setHTML(j,d.encode(k.title));d.setHTML(h,i.settings.title+" - "+k.title);d.removeClass(j,"mceTitle");d.setAttrib(i.id,"aria-valuenow",k.title)}else{d.setHTML(j,d.encode(i.settings.title));d.setHTML(h,d.encode(i.settings.title));d.addClass(j,"mceTitle");i.selectedValue=i.selectedIndex=null;d.setAttrib(i.id,"aria-valuenow",i.settings.title)}j=0}},mark:function(g){this.marked[g]=true},add:function(j,g,i){var h=this;i=i||{};i=e.extend(i,{title:j,value:g});h.items.push(i);h.onAdd.dispatch(h,i)},getLength:function(){return this.items.length},renderHTML:function(){var j="",g=this,i=g.settings,k=g.classPrefix;j='<span role="listbox" aria-haspopup="true" aria-labelledby="'+g.id+'_voiceDesc" aria-describedby="'+g.id+'_voiceDesc"><table role="presentation" tabindex="0" id="'+g.id+'" cellpadding="0" cellspacing="0" class="'+k+" "+k+"Enabled"+(i["class"]?(" "+i["class"]):"")+'"><tbody><tr>';j+="<td>"+d.createHTML("span",{id:g.id+"_voiceDesc","class":"voiceLabel",style:"display:none;"},g.settings.title);j+=d.createHTML("a",{id:g.id+"_text",tabindex:-1,href:"javascript:;","class":"mceText",onclick:"return false;",onmousedown:"return false;"},d.encode(g.settings.title))+"</td>";j+="<td>"+d.createHTML("a",{id:g.id+"_open",tabindex:-1,href:"javascript:;","class":"mceOpen",onclick:"return false;",onmousedown:"return false;"},'<span><span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span></span>')+"</td>";j+="</tr></tbody></table></span>";return j},showMenu:function(){var h=this,j,i=d.get(this.id),g;if(h.isDisabled()||h.items.length===0){return}if(h.menu&&h.menu.isMenuVisible){return h.hideMenu()}if(!h.isMenuRendered){h.renderMenu();h.isMenuRendered=true}j=d.getPos(i);g=h.menu;g.settings.offset_x=j.x;g.settings.offset_y=j.y;g.settings.keyboard_focus=!e.isOpera;f(h.items,function(k){if(g.items[k.id]){g.items[k.id].setSelected(0)}});f(h.items,function(k){if(g.items[k.id]&&h.marked[k.value]){g.items[k.id].setSelected(1)}if(k.value===h.selectedValue){g.items[k.id].setSelected(1)}});g.showMenu(0,i.clientHeight);b.add(d.doc,"mousedown",h.hideMenu,h);d.addClass(h.id,h.classPrefix+"Selected")},hideMenu:function(h){var g=this;if(g.menu&&g.menu.isMenuVisible){d.removeClass(g.id,g.classPrefix+"Selected");if(h&&h.type=="mousedown"&&(h.target.id==g.id+"_text"||h.target.id==g.id+"_open")){return}if(!h||!d.getParent(h.target,".mceMenu")){d.removeClass(g.id,g.classPrefix+"Selected");b.remove(d.doc,"mousedown",g.hideMenu,g);g.menu.hideMenu()}}},renderMenu:function(){var h=this,g;g=h.settings.control_manager.createDropMenu(h.id+"_menu",{menu_line:1,"class":h.classPrefix+"Menu mceNoIcons",max_width:250,max_height:150});g.onHideMenu.add(function(){h.hideMenu();h.focus()});g.add({title:h.settings.title,"class":"mceMenuItemTitle",onclick:function(){if(h.settings.onselect("")!==false){h.select("")}}});f(h.items,function(i){if(i.value===c){g.add({title:i.title,role:"option","class":"mceMenuItemTitle",onclick:function(){if(h.settings.onselect("")!==false){h.select("")}}})}else{i.id=d.uniqueId();i.role="option";i.onclick=function(){if(h.settings.onselect(i.value)!==false){h.select(i.value)}};g.add(i)}});h.onRenderMenu.dispatch(h,g);h.menu=g},postRender:function(){var g=this,h=g.classPrefix;b.add(g.id,"click",g.showMenu,g);b.add(g.id,"keydown",function(i){if(i.keyCode==32){g.showMenu(i);b.cancel(i)}});b.add(g.id,"focus",function(){if(!g._focused){g.keyDownHandler=b.add(g.id,"keydown",function(i){if(i.keyCode==40){g.showMenu();b.cancel(i)}});g.keyPressHandler=b.add(g.id,"keypress",function(j){var i;if(j.keyCode==13){i=g.selectedValue;g.selectedValue=null;b.cancel(j);g.settings.onselect(i)}})}g._focused=1});b.add(g.id,"blur",function(){b.remove(g.id,"keydown",g.keyDownHandler);b.remove(g.id,"keypress",g.keyPressHandler);g._focused=0});if(e.isIE6||!d.boxModel){b.add(g.id,"mouseover",function(){if(!d.hasClass(g.id,h+"Disabled")){d.addClass(g.id,h+"Hover")}});b.add(g.id,"mouseout",function(){if(!d.hasClass(g.id,h+"Disabled")){d.removeClass(g.id,h+"Hover")}})}g.onPostRender.dispatch(g,d.get(g.id))},destroy:function(){this.parent();b.clear(this.id+"_text");b.clear(this.id+"_open")}})})(tinymce);(function(e){var d=e.DOM,b=e.dom.Event,f=e.each,a=e.util.Dispatcher,c;e.create("tinymce.ui.NativeListBox:tinymce.ui.ListBox",{NativeListBox:function(h,g){this.parent(h,g);this.classPrefix="mceNativeListBox"},setDisabled:function(g){d.get(this.id).disabled=g;this.setAriaProperty("disabled",g)},isDisabled:function(){return d.get(this.id).disabled},select:function(h){var g=this,j,i;if(h==c){return g.selectByIndex(-1)}if(h&&typeof(h)=="function"){i=h}else{i=function(k){return k==h}}if(h!=g.selectedValue){f(g.items,function(l,k){if(i(l.value)){j=1;g.selectByIndex(k);return false}});if(!j){g.selectByIndex(-1)}}},selectByIndex:function(g){d.get(this.id).selectedIndex=g+1;this.selectedValue=this.items[g]?this.items[g].value:null},add:function(k,h,g){var j,i=this;g=g||{};g.value=h;if(i.isRendered()){d.add(d.get(this.id),"option",g,k)}j={title:k,value:h,attribs:g};i.items.push(j);i.onAdd.dispatch(i,j)},getLength:function(){return this.items.length},renderHTML:function(){var i,g=this;i=d.createHTML("option",{value:""},"-- "+g.settings.title+" --");f(g.items,function(h){i+=d.createHTML("option",{value:h.value},h.title)});i=d.createHTML("select",{id:g.id,"class":"mceNativeListBox","aria-labelledby":g.id+"_aria"},i);i+=d.createHTML("span",{id:g.id+"_aria",style:"display: none"},g.settings.title);return i},postRender:function(){var h=this,i,j=true;h.rendered=true;function g(l){var k=h.items[l.target.selectedIndex-1];if(k&&(k=k.value)){h.onChange.dispatch(h,k);if(h.settings.onselect){h.settings.onselect(k)}}}b.add(h.id,"change",g);b.add(h.id,"keydown",function(l){var k;b.remove(h.id,"change",i);j=false;k=b.add(h.id,"blur",function(){if(j){return}j=true;b.add(h.id,"change",g);b.remove(h.id,"blur",k)});if(e.isWebKit&&(l.keyCode==37||l.keyCode==39)){return b.prevent(l)}if(l.keyCode==13||l.keyCode==32){g(l);return b.cancel(l)}});h.onPostRender.dispatch(h,d.get(h.id))}})})(tinymce);(function(c){var b=c.DOM,a=c.dom.Event,d=c.each;c.create("tinymce.ui.MenuButton:tinymce.ui.Button",{MenuButton:function(g,f,e){this.parent(g,f,e);this.onRenderMenu=new c.util.Dispatcher(this);f.menu_container=f.menu_container||b.doc.body},showMenu:function(){var g=this,j,i,h=b.get(g.id),f;if(g.isDisabled()){return}if(!g.isMenuRendered){g.renderMenu();g.isMenuRendered=true}if(g.isMenuVisible){return g.hideMenu()}j=b.getPos(g.settings.menu_container);i=b.getPos(h);f=g.menu;f.settings.offset_x=i.x;f.settings.offset_y=i.y;f.settings.vp_offset_x=i.x;f.settings.vp_offset_y=i.y;f.settings.keyboard_focus=g._focused;f.showMenu(0,h.firstChild.clientHeight);a.add(b.doc,"mousedown",g.hideMenu,g);g.setState("Selected",1);g.isMenuVisible=1},renderMenu:function(){var f=this,e;e=f.settings.control_manager.createDropMenu(f.id+"_menu",{menu_line:1,"class":this.classPrefix+"Menu",icons:f.settings.icons});e.onHideMenu.add(function(){f.hideMenu();f.focus()});f.onRenderMenu.dispatch(f,e);f.menu=e},hideMenu:function(g){var f=this;if(g&&g.type=="mousedown"&&b.getParent(g.target,function(h){return h.id===f.id||h.id===f.id+"_open"})){return}if(!g||!b.getParent(g.target,".mceMenu")){f.setState("Selected",0);a.remove(b.doc,"mousedown",f.hideMenu,f);if(f.menu){f.menu.hideMenu()}}f.isMenuVisible=0},postRender:function(){var e=this,f=e.settings;a.add(e.id,"click",function(){if(!e.isDisabled()){if(f.onclick){f.onclick(e.value)}e.showMenu()}})}})})(tinymce);(function(c){var b=c.DOM,a=c.dom.Event,d=c.each;c.create("tinymce.ui.SplitButton:tinymce.ui.MenuButton",{SplitButton:function(g,f,e){this.parent(g,f,e);this.classPrefix="mceSplitButton"},renderHTML:function(){var i,f=this,g=f.settings,e;i="<tbody><tr>";if(g.image){e=b.createHTML("img ",{src:g.image,role:"presentation","class":"mceAction "+g["class"]})}else{e=b.createHTML("span",{"class":"mceAction "+g["class"]},"")}e+=b.createHTML("span",{"class":"mceVoiceLabel mceIconOnly",id:f.id+"_voice",style:"display:none;"},g.title);i+="<td >"+b.createHTML("a",{role:"button",id:f.id+"_action",tabindex:"-1",href:"javascript:;","class":"mceAction "+g["class"],onclick:"return false;",onmousedown:"return false;",title:g.title},e)+"</td>";e=b.createHTML("span",{"class":"mceOpen "+g["class"]},'<span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span>');i+="<td >"+b.createHTML("a",{role:"button",id:f.id+"_open",tabindex:"-1",href:"javascript:;","class":"mceOpen "+g["class"],onclick:"return false;",onmousedown:"return false;",title:g.title},e)+"</td>";i+="</tr></tbody>";i=b.createHTML("table",{role:"presentation","class":"mceSplitButton mceSplitButtonEnabled "+g["class"],cellpadding:"0",cellspacing:"0",title:g.title},i);return b.createHTML("div",{id:f.id,role:"button",tabindex:"0","aria-labelledby":f.id+"_voice","aria-haspopup":"true"},i)},postRender:function(){var e=this,g=e.settings,f;if(g.onclick){f=function(h){if(!e.isDisabled()){g.onclick(e.value);a.cancel(h)}};a.add(e.id+"_action","click",f);a.add(e.id,["click","keydown"],function(h){var k=32,m=14,i=13,j=38,l=40;if((h.keyCode===32||h.keyCode===13||h.keyCode===14)&&!h.altKey&&!h.ctrlKey&&!h.metaKey){f();a.cancel(h)}else{if(h.type==="click"||h.keyCode===l){e.showMenu();a.cancel(h)}}})}a.add(e.id+"_open","click",function(h){e.showMenu();a.cancel(h)});a.add([e.id,e.id+"_open"],"focus",function(){e._focused=1});a.add([e.id,e.id+"_open"],"blur",function(){e._focused=0});if(c.isIE6||!b.boxModel){a.add(e.id,"mouseover",function(){if(!b.hasClass(e.id,"mceSplitButtonDisabled")){b.addClass(e.id,"mceSplitButtonHover")}});a.add(e.id,"mouseout",function(){if(!b.hasClass(e.id,"mceSplitButtonDisabled")){b.removeClass(e.id,"mceSplitButtonHover")}})}},destroy:function(){this.parent();a.clear(this.id+"_action");a.clear(this.id+"_open");a.clear(this.id)}})})(tinymce);(function(d){var c=d.DOM,a=d.dom.Event,b=d.is,e=d.each;d.create("tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton",{ColorSplitButton:function(i,h,f){var g=this;g.parent(i,h,f);g.settings=h=d.extend({colors:"000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",grid_width:8,default_color:"#888888"},g.settings);g.onShowMenu=new d.util.Dispatcher(g);g.onHideMenu=new d.util.Dispatcher(g);g.value=h.default_color},showMenu:function(){var f=this,g,j,i,h;if(f.isDisabled()){return}if(!f.isMenuRendered){f.renderMenu();f.isMenuRendered=true}if(f.isMenuVisible){return f.hideMenu()}i=c.get(f.id);c.show(f.id+"_menu");c.addClass(i,"mceSplitButtonSelected");h=c.getPos(i);c.setStyles(f.id+"_menu",{left:h.x,top:h.y+i.firstChild.clientHeight,zIndex:200000});i=0;a.add(c.doc,"mousedown",f.hideMenu,f);f.onShowMenu.dispatch(f);if(f._focused){f._keyHandler=a.add(f.id+"_menu","keydown",function(k){if(k.keyCode==27){f.hideMenu()}});c.select("a",f.id+"_menu")[0].focus()}f.keyboardNav=new d.ui.KeyboardNavigation({root:f.id+"_menu",items:c.select("a",f.id+"_menu"),onCancel:function(){f.hideMenu();f.focus()}});f.keyboardNav.focus();f.isMenuVisible=1},hideMenu:function(g){var f=this;if(f.isMenuVisible){if(g&&g.type=="mousedown"&&c.getParent(g.target,function(h){return h.id===f.id+"_open"})){return}if(!g||!c.getParent(g.target,".mceSplitButtonMenu")){c.removeClass(f.id,"mceSplitButtonSelected");a.remove(c.doc,"mousedown",f.hideMenu,f);a.remove(f.id+"_menu","keydown",f._keyHandler);c.hide(f.id+"_menu")}f.isMenuVisible=0;f.onHideMenu.dispatch();f.keyboardNav.destroy()}},renderMenu:function(){var p=this,h,k=0,q=p.settings,g,j,l,o,f;o=c.add(q.menu_container,"div",{role:"listbox",id:p.id+"_menu","class":q.menu_class+" "+q["class"],style:"position:absolute;left:0;top:-1000px;"});h=c.add(o,"div",{"class":q["class"]+" mceSplitButtonMenu"});c.add(h,"span",{"class":"mceMenuLine"});g=c.add(h,"table",{role:"presentation","class":"mceColorSplitMenu"});j=c.add(g,"tbody");k=0;e(b(q.colors,"array")?q.colors:q.colors.split(","),function(m){m=m.replace(/^#/,"");if(!k--){l=c.add(j,"tr");k=q.grid_width-1}g=c.add(l,"td");var i={href:"javascript:;",style:{backgroundColor:"#"+m},title:p.editor.getLang("colors."+m,m),"data-mce-color":"#"+m};if(!d.isIE){i.role="option"}g=c.add(g,"a",i);if(p.editor.forcedHighContrastMode){g=c.add(g,"canvas",{width:16,height:16,"aria-hidden":"true"});if(g.getContext&&(f=g.getContext("2d"))){f.fillStyle="#"+m;f.fillRect(0,0,16,16)}else{c.remove(g)}}});if(q.more_colors_func){g=c.add(j,"tr");g=c.add(g,"td",{colspan:q.grid_width,"class":"mceMoreColors"});g=c.add(g,"a",{role:"option",id:p.id+"_more",href:"javascript:;",onclick:"return false;","class":"mceMoreColors"},q.more_colors_title);a.add(g,"click",function(i){q.more_colors_func.call(q.more_colors_scope||this);return a.cancel(i)})}c.addClass(h,"mceColorSplitMenu");a.add(p.id+"_menu","mousedown",function(i){return a.cancel(i)});a.add(p.id+"_menu","click",function(i){var m;i=c.getParent(i.target,"a",j);if(i&&i.nodeName.toLowerCase()=="a"&&(m=i.getAttribute("data-mce-color"))){p.setColor(m)}return false});return o},setColor:function(f){this.displayColor(f);this.hideMenu();this.settings.onselect(f)},displayColor:function(g){var f=this;c.setStyle(f.id+"_preview","backgroundColor",g);f.value=g},postRender:function(){var f=this,g=f.id;f.parent();c.add(g+"_action","div",{id:g+"_preview","class":"mceColorPreview"});c.setStyle(f.id+"_preview","backgroundColor",f.value)},destroy:function(){var f=this;f.parent();a.clear(f.id+"_menu");a.clear(f.id+"_more");c.remove(f.id+"_menu");if(f.keyboardNav){f.keyboardNav.destroy()}}})})(tinymce);(function(b){var d=b.DOM,c=b.each,a=b.dom.Event;b.create("tinymce.ui.ToolbarGroup:tinymce.ui.Container",{renderHTML:function(){var f=this,i=[],e=f.controls,j=b.each,g=f.settings;i.push('<div id="'+f.id+'" role="group" aria-labelledby="'+f.id+'_voice">');i.push("<span role='application'>");i.push('<span id="'+f.id+'_voice" class="mceVoiceLabel" style="display:none;">'+d.encode(g.name)+"</span>");j(e,function(h){i.push(h.renderHTML())});i.push("</span>");i.push("</div>");return i.join("")},focus:function(){var e=this;d.get(e.id).focus()},postRender:function(){var f=this,e=[];c(f.controls,function(g){c(g.controls,function(h){if(h.id){e.push(h)}})});f.keyNav=new b.ui.KeyboardNavigation({root:f.id,items:e,onCancel:function(){if(b.isWebKit){d.get(f.editor.id+"_ifr").focus()}f.editor.focus()},excludeFromTabOrder:!f.settings.tab_focus_toolbar})},destroy:function(){var e=this;e.parent();e.keyNav.destroy();a.clear(e.id)}})})(tinymce);(function(a){var c=a.DOM,b=a.each;a.create("tinymce.ui.Toolbar:tinymce.ui.Container",{renderHTML:function(){var m=this,f="",j,k,n=m.settings,e,d,g,l;l=m.controls;for(e=0;e<l.length;e++){k=l[e];d=l[e-1];g=l[e+1];if(e===0){j="mceToolbarStart";if(k.Button){j+=" mceToolbarStartButton"}else{if(k.SplitButton){j+=" mceToolbarStartSplitButton"}else{if(k.ListBox){j+=" mceToolbarStartListBox"}}}f+=c.createHTML("td",{"class":j},c.createHTML("span",null,"<!-- IE -->"))}if(d&&k.ListBox){if(d.Button||d.SplitButton){f+=c.createHTML("td",{"class":"mceToolbarEnd"},c.createHTML("span",null,"<!-- IE -->"))}}if(c.stdMode){f+='<td style="position: relative">'+k.renderHTML()+"</td>"}else{f+="<td>"+k.renderHTML()+"</td>"}if(g&&k.ListBox){if(g.Button||g.SplitButton){f+=c.createHTML("td",{"class":"mceToolbarStart"},c.createHTML("span",null,"<!-- IE -->"))}}}j="mceToolbarEnd";if(k.Button){j+=" mceToolbarEndButton"}else{if(k.SplitButton){j+=" mceToolbarEndSplitButton"}else{if(k.ListBox){j+=" mceToolbarEndListBox"}}}f+=c.createHTML("td",{"class":j},c.createHTML("span",null,"<!-- IE -->"));return c.createHTML("table",{id:m.id,"class":"mceToolbar"+(n["class"]?" "+n["class"]:""),cellpadding:"0",cellspacing:"0",align:m.settings.align||"",role:"presentation",tabindex:"-1"},"<tbody><tr>"+f+"</tr></tbody>")}})})(tinymce);(function(b){var a=b.util.Dispatcher,c=b.each;b.create("tinymce.AddOnManager",{AddOnManager:function(){var d=this;d.items=[];d.urls={};d.lookup={};d.onAdd=new a(d)},get:function(d){if(this.lookup[d]){return this.lookup[d].instance}else{return undefined}},dependencies:function(e){var d;if(this.lookup[e]){d=this.lookup[e].dependencies}return d||[]},requireLangPack:function(e){var d=b.settings;if(d&&d.language&&d.language_load!==false){b.ScriptLoader.add(this.urls[e]+"/langs/"+d.language+".js")}},add:function(f,e,d){this.items.push(e);this.lookup[f]={instance:e,dependencies:d};this.onAdd.dispatch(this,f,e);return e},createUrl:function(d,e){if(typeof e==="object"){return e}else{return{prefix:d.prefix,resource:e,suffix:d.suffix}}},addComponents:function(f,d){var e=this.urls[f];b.each(d,function(g){b.ScriptLoader.add(e+"/"+g)})},load:function(j,f,d,h){var g=this,e=f;function i(){var k=g.dependencies(j);b.each(k,function(m){var l=g.createUrl(f,m);g.load(l.resource,l,undefined,undefined)});if(d){if(h){d.call(h)}else{d.call(b.ScriptLoader)}}}if(g.urls[j]){return}if(typeof f==="object"){e=f.prefix+f.resource+f.suffix}if(e.indexOf("/")!==0&&e.indexOf("://")==-1){e=b.baseURL+"/"+e}g.urls[j]=e.substring(0,e.lastIndexOf("/"));if(g.lookup[j]){i()}else{b.ScriptLoader.add(e,i,h)}}});b.PluginManager=new b.AddOnManager();b.ThemeManager=new b.AddOnManager()}(tinymce));(function(j){var g=j.each,d=j.extend,k=j.DOM,i=j.dom.Event,f=j.ThemeManager,b=j.PluginManager,e=j.explode,h=j.util.Dispatcher,a,c=0;j.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(j.documentBaseURL)){j.documentBaseURL+="/"}j.baseURL=new j.util.URI(j.documentBaseURL).toAbsolute(j.baseURL);j.baseURI=new j.util.URI(j.baseURL);j.onBeforeUnload=new h(j);i.add(window,"beforeunload",function(l){j.onBeforeUnload.dispatch(j,l)});j.onAddEditor=new h(j);j.onRemoveEditor=new h(j);j.EditorManager=d(j,{editors:[],i18n:{},activeEditor:null,init:function(x){var v=this,o,n=j.ScriptLoader,u,l=[],r;function q(t){var s=t.id;if(!s){s=t.name;if(s&&!k.get(s)){s=t.name}else{s=k.uniqueId()}t.setAttribute("id",s)}return s}function m(z,A,t){var y=z[A];if(!y){return}if(j.is(y,"string")){t=y.replace(/\.\w+$/,"");t=t?j.resolve(t):0;y=j.resolve(y)}return y.apply(t||this,Array.prototype.slice.call(arguments,2))}function p(t,s){return s.constructor===RegExp?s.test(t.className):k.hasClass(t,s)}v.settings=x;i.bind(window,"ready",function(){var s,t;m(x,"onpageload");switch(x.mode){case"exact":s=x.elements||"";if(s.length>0){g(e(s),function(y){if(k.get(y)){r=new j.Editor(y,x);l.push(r);r.render(1)}else{g(document.forms,function(z){g(z.elements,function(A){if(A.name===y){y="mce_editor_"+c++;k.setAttrib(A,"id",y);r=new j.Editor(y,x);l.push(r);r.render(1)}})})}})}break;case"textareas":case"specific_textareas":g(k.select("textarea"),function(y){if(x.editor_deselector&&p(y,x.editor_deselector)){return}if(!x.editor_selector||p(y,x.editor_selector)){r=new j.Editor(q(y),x);l.push(r);r.render(1)}});break;default:if(x.types){g(x.types,function(y){g(k.select(y.selector),function(A){var z=new j.Editor(q(A),j.extend({},x,y));l.push(z);z.render(1)})})}else{if(x.selector){g(k.select(x.selector),function(z){var y=new j.Editor(q(z),x);l.push(y);y.render(1)})}}}if(x.oninit){s=t=0;g(l,function(y){t++;if(!y.initialized){y.onInit.add(function(){s++;if(s==t){m(x,"oninit")}})}else{s++}if(s==t){m(x,"oninit")}})}})},get:function(l){if(l===a){return this.editors}if(!this.editors.hasOwnProperty(l)){return a}return this.editors[l]},getInstanceById:function(l){return this.get(l)},add:function(m){var l=this,n=l.editors;n[m.id]=m;n.push(m);l._setActive(m);l.onAddEditor.dispatch(l,m);return m},remove:function(n){var m=this,l,o=m.editors;if(!o[n.id]){return null}delete o[n.id];for(l=0;l<o.length;l++){if(o[l]==n){o.splice(l,1);break}}if(m.activeEditor==n){m._setActive(o[0])}n.destroy();m.onRemoveEditor.dispatch(m,n);return n},execCommand:function(r,p,o){var q=this,n=q.get(o),l;function m(){n.destroy();l.detachEvent("onunload",m);l=l.tinyMCE=l.tinymce=null}switch(r){case"mceFocus":n.focus();return true;case"mceAddEditor":case"mceAddControl":if(!q.get(o)){new j.Editor(o,q.settings).render()}return true;case"mceAddFrameControl":l=o.window;l.tinyMCE=tinyMCE;l.tinymce=j;j.DOM.doc=l.document;j.DOM.win=l;n=new j.Editor(o.element_id,o);n.render();if(j.isIE){l.attachEvent("onunload",m)}o.page_window=null;return true;case"mceRemoveEditor":case"mceRemoveControl":if(n){n.remove()}return true;case"mceToggleEditor":if(!n){q.execCommand("mceAddControl",0,o);return true}if(n.isHidden()){n.show()}else{n.hide()}return true}if(q.activeEditor){return q.activeEditor.execCommand(r,p,o)}return false},execInstanceCommand:function(p,o,n,m){var l=this.get(p);if(l){return l.execCommand(o,n,m)}return false},triggerSave:function(){g(this.editors,function(l){l.save()})},addI18n:function(n,q){var l,m=this.i18n;if(!j.is(n,"string")){g(n,function(r,p){g(r,function(t,s){g(t,function(v,u){if(s==="common"){m[p+"."+u]=v}else{m[p+"."+s+"."+u]=v}})})})}else{g(q,function(r,p){m[n+"."+p]=r})}},_setActive:function(l){this.selectedInstance=this.activeEditor=l}})})(tinymce);(function(k){var l=k.DOM,j=k.dom.Event,f=k.extend,i=k.each,a=k.isGecko,b=k.isIE,e=k.isWebKit,d=k.is,h=k.ThemeManager,c=k.PluginManager,g=k.explode;k.create("tinymce.Editor",{Editor:function(p,o){var m=this,n=true;m.settings=o=f({id:p,language:"en",theme:"advanced",skin:"default",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:k.documentBaseURL,add_form_submit_trigger:n,submit_patch:n,add_unload_trigger:n,convert_urls:n,relative_urls:n,remove_script_host:n,table_inline_editing:false,object_resizing:n,accessibility_focus:n,doctype:k.isIE6?'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">':"<!DOCTYPE>",visual:n,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",apply_source_formatting:n,directionality:"ltr",forced_root_block:"p",hidden_input:n,padd_empty_editor:n,render_ui:n,indentation:"30px",fix_table_elements:n,inline_styles:n,convert_fonts_to_spans:n,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist",validate:n,entity_encoding:"named",url_converter:m.convertURL,url_converter_scope:m,ie7_compat:n},o);m.id=m.editorId=p;m.isNotDirty=false;m.plugins={};m.documentBaseURI=new k.util.URI(o.document_base_url||k.documentBaseURL,{base_uri:tinyMCE.baseURI});m.baseURI=k.baseURI;m.contentCSS=[];m.contentStyles=[];m.setupEvents();m.execCommands={};m.queryStateCommands={};m.queryValueCommands={};m.execCallback("setup",m)},render:function(o){var p=this,q=p.settings,r=p.id,m=k.ScriptLoader;if(!j.domLoaded){j.add(window,"ready",function(){p.render()});return}tinyMCE.settings=q;if(!p.getElement()){return}if(k.isIDevice&&!k.isIOS5){return}if(!/TEXTAREA|INPUT/i.test(p.getElement().nodeName)&&q.hidden_input&&l.getParent(r,"form")){l.insertAfter(l.create("input",{type:"hidden",name:r}),r)}if(!q.content_editable){p.orgVisibility=p.getElement().style.visibility;p.getElement().style.visibility="hidden"}if(k.WindowManager){p.windowManager=new k.WindowManager(p)}if(q.encoding=="xml"){p.onGetContent.add(function(s,t){if(t.save){t.content=l.encode(t.content)}})}if(q.add_form_submit_trigger){p.onSubmit.addToTop(function(){if(p.initialized){p.save();p.isNotDirty=1}})}if(q.add_unload_trigger){p._beforeUnload=tinyMCE.onBeforeUnload.add(function(){if(p.initialized&&!p.destroyed&&!p.isHidden()){p.save({format:"raw",no_events:true})}})}k.addUnload(p.destroy,p);if(q.submit_patch){p.onBeforeRenderUI.add(function(){var s=p.getElement().form;if(!s){return}if(s._mceOldSubmit){return}if(!s.submit.nodeType&&!s.submit.length){p.formElement=s;s._mceOldSubmit=s.submit;s.submit=function(){k.triggerSave();p.isNotDirty=1;return p.formElement._mceOldSubmit(p.formElement)}}s=null})}function n(){if(q.language&&q.language_load!==false){m.add(k.baseURL+"/langs/"+q.language+".js")}if(q.theme&&typeof q.theme!="function"&&q.theme.charAt(0)!="-"&&!h.urls[q.theme]){h.load(q.theme,"themes/"+q.theme+"/editor_template"+k.suffix+".js")}i(g(q.plugins),function(t){if(t&&!c.urls[t]){if(t.charAt(0)=="-"){t=t.substr(1,t.length);var s=c.dependencies(t);i(s,function(v){var u={prefix:"plugins/",resource:v,suffix:"/editor_plugin"+k.suffix+".js"};v=c.createUrl(u,v);c.load(v.resource,v)})}else{if(t=="safari"){return}c.load(t,{prefix:"plugins/",resource:t,suffix:"/editor_plugin"+k.suffix+".js"})}}});m.loadQueue(function(){if(!p.removed){p.init()}})}n()},init:function(){var q,G=this,H=G.settings,D,y,z,C=G.getElement(),p,m,E,v,B,F,x,r=[];k.add(G);H.aria_label=H.aria_label||l.getAttrib(C,"aria-label",G.getLang("aria.rich_text_area"));if(H.theme){if(typeof H.theme!="function"){H.theme=H.theme.replace(/-/,"");p=h.get(H.theme);G.theme=new p();if(G.theme.init){G.theme.init(G,h.urls[H.theme]||k.documentBaseURL.replace(/\/$/,""))}}else{G.theme=H.theme}}function A(s){var t=c.get(s),o=c.urls[s]||k.documentBaseURL.replace(/\/$/,""),n;if(t&&k.inArray(r,s)===-1){i(c.dependencies(s),function(u){A(u)});n=new t(G,o);G.plugins[s]=n;if(n.init){n.init(G,o);r.push(s)}}}i(g(H.plugins.replace(/\-/g,"")),A);if(H.popup_css!==false){if(H.popup_css){H.popup_css=G.documentBaseURI.toAbsolute(H.popup_css)}else{H.popup_css=G.baseURI.toAbsolute("themes/"+H.theme+"/skins/"+H.skin+"/dialog.css")}}if(H.popup_css_add){H.popup_css+=","+G.documentBaseURI.toAbsolute(H.popup_css_add)}G.controlManager=new k.ControlManager(G);G.onBeforeRenderUI.dispatch(G,G.controlManager);if(H.render_ui&&G.theme){G.orgDisplay=C.style.display;if(typeof H.theme!="function"){D=H.width||C.style.width||C.offsetWidth;y=H.height||C.style.height||C.offsetHeight;z=H.min_height||100;F=/^[0-9\.]+(|px)$/i;if(F.test(""+D)){D=Math.max(parseInt(D,10)+(p.deltaWidth||0),100)}if(F.test(""+y)){y=Math.max(parseInt(y,10)+(p.deltaHeight||0),z)}p=G.theme.renderUI({targetNode:C,width:D,height:y,deltaWidth:H.delta_width,deltaHeight:H.delta_height});l.setStyles(p.sizeContainer||p.editorContainer,{width:D,height:y});y=(p.iframeHeight||y)+(typeof(y)=="number"?(p.deltaHeight||0):"");if(y<z){y=z}}else{p=H.theme(G,C);if(p.editorContainer.nodeType){p.editorContainer=p.editorContainer.id=p.editorContainer.id||G.id+"_parent"}if(p.iframeContainer.nodeType){p.iframeContainer=p.iframeContainer.id=p.iframeContainer.id||G.id+"_iframecontainer"}y=p.iframeHeight||C.offsetHeight;if(b){G.onInit.add(function(n){n.dom.bind(n.getBody(),"beforedeactivate keydown",function(){n.lastIERng=n.selection.getRng()})})}}G.editorContainer=p.editorContainer}if(H.content_css){i(g(H.content_css),function(n){G.contentCSS.push(G.documentBaseURI.toAbsolute(n))})}if(H.content_style){G.contentStyles.push(H.content_style)}if(H.content_editable){C=q=p=null;return G.initContentBody()}if(document.domain&&location.hostname!=document.domain){k.relaxedDomain=document.domain}G.iframeHTML=H.doctype+'<html><head xmlns="http://www.w3.org/1999/xhtml">';if(H.document_base_url!=k.documentBaseURL){G.iframeHTML+='<base href="'+G.documentBaseURI.getURI()+'" />'}if(H.ie7_compat){G.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=7" />'}else{G.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=edge" />'}G.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';for(x=0;x<G.contentCSS.length;x++){G.iframeHTML+='<link type="text/css" rel="stylesheet" href="'+G.contentCSS[x]+'" />'}G.contentCSS=[];v=H.body_id||"tinymce";if(v.indexOf("=")!=-1){v=G.getParam("body_id","","hash");v=v[G.id]||v}B=H.body_class||"";if(B.indexOf("=")!=-1){B=G.getParam("body_class","","hash");B=B[G.id]||""}G.iframeHTML+='</head><body id="'+v+'" class="mceContentBody '+B+'" onload="window.parent.tinyMCE.get(\''+G.id+"').onLoad.dispatch();\"><br></body></html>";if(k.relaxedDomain&&(b||(k.isOpera&&parseFloat(opera.version())<11))){E='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinyMCE.get("'+G.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody();})()'}q=l.add(p.iframeContainer,"iframe",{id:G.id+"_ifr",src:E||'javascript:""',frameBorder:"0",allowTransparency:"true",title:H.aria_label,style:{width:"100%",height:y,display:"block"}});G.contentAreaContainer=p.iframeContainer;if(p.editorContainer){l.get(p.editorContainer).style.display=G.orgDisplay}C.style.visibility=G.orgVisibility;l.get(G.id).style.display="none";l.setAttrib(G.id,"aria-hidden",true);if(!k.relaxedDomain||!E){G.initContentBody()}C=q=p=null},initContentBody:function(){var n=this,p=n.settings,q=l.get(n.id),r=n.getDoc(),o,m,s;if((!b||!k.relaxedDomain)&&!p.content_editable){r.open();r.write(n.iframeHTML);r.close();if(k.relaxedDomain){r.domain=k.relaxedDomain}}if(p.content_editable){l.addClass(q,"mceContentBody");n.contentDocument=r=p.content_document||document;n.contentWindow=p.content_window||window;n.bodyElement=q;p.content_document=p.content_window=null}m=n.getBody();m.disabled=true;if(!p.readonly){m.contentEditable=n.getParam("content_editable_state",true)}m.disabled=false;n.schema=new k.html.Schema(p);n.dom=new k.dom.DOMUtils(r,{keep_values:true,url_converter:n.convertURL,url_converter_scope:n,hex_colors:p.force_hex_style_colors,class_filter:p.class_filter,update_styles:true,root_element:p.content_editable?n.id:null,schema:n.schema});n.parser=new k.html.DomParser(p,n.schema);n.parser.addAttributeFilter("src,href,style",function(t,u){var v=t.length,y,A=n.dom,z,x;while(v--){y=t[v];z=y.attr(u);x="data-mce-"+u;if(!y.attributes.map[x]){if(u==="style"){y.attr(x,A.serializeStyle(A.parseStyle(z),y.name))}else{y.attr(x,n.convertURL(z,u,y.name))}}}});n.parser.addNodeFilter("script",function(t,u){var v=t.length,x;while(v--){x=t[v];x.attr("type","mce-"+(x.attr("type")||"text/javascript"))}});n.parser.addNodeFilter("#cdata",function(t,u){var v=t.length,x;while(v--){x=t[v];x.type=8;x.name="#comment";x.value="[CDATA["+x.value+"]]"}});n.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(u,v){var x=u.length,y,t=n.schema.getNonEmptyElements();while(x--){y=u[x];if(y.isEmpty(t)){y.empty().append(new k.html.Node("br",1)).shortEnded=true}}});n.serializer=new k.dom.Serializer(p,n.dom,n.schema);n.selection=new k.dom.Selection(n.dom,n.getWin(),n.serializer,n);n.formatter=new k.Formatter(n);n.undoManager=new k.UndoManager(n);n.forceBlocks=new k.ForceBlocks(n);n.enterKey=new k.EnterKey(n);n.editorCommands=new k.EditorCommands(n);n.onExecCommand.add(function(t,u){if(!/^(FontName|FontSize)$/.test(u)){n.nodeChanged()}});n.serializer.onPreProcess.add(function(t,u){return n.onPreProcess.dispatch(n,u,t)});n.serializer.onPostProcess.add(function(t,u){return n.onPostProcess.dispatch(n,u,t)});n.onPreInit.dispatch(n);if(!p.browser_spellcheck&&!p.gecko_spellcheck){r.body.spellcheck=false}if(!p.readonly){n.bindNativeEvents()}n.controlManager.onPostRender.dispatch(n,n.controlManager);n.onPostRender.dispatch(n);n.quirks=k.util.Quirks(n);if(p.directionality){m.dir=p.directionality}if(p.nowrap){m.style.whiteSpace="nowrap"}if(p.protect){n.onBeforeSetContent.add(function(t,u){i(p.protect,function(v){u.content=u.content.replace(v,function(x){return"<!--mce:protected "+escape(x)+"-->"})})})}n.onSetContent.add(function(){n.addVisual(n.getBody())});if(p.padd_empty_editor){n.onPostProcess.add(function(t,u){u.content=u.content.replace(/^(<p[^>]*>(&nbsp;|&#160;|\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")})}n.load({initial:true,format:"html"});n.startContent=n.getContent({format:"raw"});n.initialized=true;n.onInit.dispatch(n);n.execCallback("setupcontent_callback",n.id,m,r);n.execCallback("init_instance_callback",n);n.focus(true);n.nodeChanged({initial:true});if(n.contentStyles.length>0){s="";i(n.contentStyles,function(t){s+=t+"\r\n"});n.dom.addStyle(s)}i(n.contentCSS,function(t){n.dom.loadCSS(t)});if(p.auto_focus){setTimeout(function(){var t=k.get(p.auto_focus);t.selection.select(t.getBody(),1);t.selection.collapse(1);t.getBody().focus();t.getWin().focus()},100)}q=r=m=null},focus:function(p){var o,u=this,t=u.selection,q=u.settings.content_editable,n,r,s=u.getDoc(),m;if(!p){if(u.lastIERng){t.setRng(u.lastIERng)}n=t.getRng();if(n.item){r=n.item(0)}u._refreshContentEditable();if(!q){u.getWin().focus()}if(k.isGecko||q){m=u.getBody();if(m.setActive){m.setActive()}else{m.focus()}if(q){t.normalize()}}if(r&&r.ownerDocument==s){n=s.body.createControlRange();n.addElement(r);n.select()}}if(k.activeEditor!=u){if((o=k.activeEditor)!=null){o.onDeactivate.dispatch(o,u)}u.onActivate.dispatch(u,o)}k._setActive(u)},execCallback:function(q){var m=this,p=m.settings[q],o;if(!p){return}if(m.callbackLookup&&(o=m.callbackLookup[q])){p=o.func;o=o.scope}if(d(p,"string")){o=p.replace(/\.\w+$/,"");o=o?k.resolve(o):0;p=k.resolve(p);m.callbackLookup=m.callbackLookup||{};m.callbackLookup[q]={func:p,scope:o}}return p.apply(o||m,Array.prototype.slice.call(arguments,1))},translate:function(m){var o=this.settings.language||"en",n=k.i18n;if(!m){return""}return n[o+"."+m]||m.replace(/\{\#([^\}]+)\}/g,function(q,p){return n[o+"."+p]||"{#"+p+"}"})},getLang:function(o,m){return k.i18n[(this.settings.language||"en")+"."+o]||(d(m)?m:"{#"+o+"}")},getParam:function(t,q,m){var r=k.trim,p=d(this.settings[t])?this.settings[t]:q,s;if(m==="hash"){s={};if(d(p,"string")){i(p.indexOf("=")>0?p.split(/[;,](?![^=;,]*(?:[;,]|$))/):p.split(","),function(n){n=n.split("=");if(n.length>1){s[r(n[0])]=r(n[1])}else{s[r(n[0])]=r(n)}})}else{s=p}return s}return p},nodeChanged:function(q){var m=this,n=m.selection,p;if(m.initialized){q=q||{};p=n.getStart()||m.getBody();p=b&&p.ownerDocument!=m.getDoc()?m.getBody():p;q.parents=[];m.dom.getParent(p,function(o){if(o.nodeName=="BODY"){return true}q.parents.push(o)});m.onNodeChange.dispatch(m,q?q.controlManager||m.controlManager:m.controlManager,p,n.isCollapsed(),q)}},addButton:function(n,o){var m=this;m.buttons=m.buttons||{};m.buttons[n]=o},addCommand:function(m,o,n){this.execCommands[m]={func:o,scope:n||this}},addQueryStateHandler:function(m,o,n){this.queryStateCommands[m]={func:o,scope:n||this}},addQueryValueHandler:function(m,o,n){this.queryValueCommands[m]={func:o,scope:n||this}},addShortcut:function(o,q,m,p){var n=this,r;if(n.settings.custom_shortcuts===false){return false}n.shortcuts=n.shortcuts||{};if(d(m,"string")){r=m;m=function(){n.execCommand(r,false,null)}}if(d(m,"object")){r=m;m=function(){n.execCommand(r[0],r[1],r[2])}}i(g(o),function(s){var t={func:m,scope:p||this,desc:n.translate(q),alt:false,ctrl:false,shift:false};i(g(s,"+"),function(u){switch(u){case"alt":case"ctrl":case"shift":t[u]=true;break;default:t.charCode=u.charCodeAt(0);t.keyCode=u.toUpperCase().charCodeAt(0)}});n.shortcuts[(t.ctrl?"ctrl":"")+","+(t.alt?"alt":"")+","+(t.shift?"shift":"")+","+t.keyCode]=t});return true},execCommand:function(u,r,x,m){var p=this,q=0,v,n;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(u)&&(!m||!m.skip_focus)){p.focus()}m=f({},m);p.onBeforeExecCommand.dispatch(p,u,r,x,m);if(m.terminate){return false}if(p.execCallback("execcommand_callback",p.id,p.selection.getNode(),u,r,x)){p.onExecCommand.dispatch(p,u,r,x,m);return true}if(v=p.execCommands[u]){n=v.func.call(v.scope,r,x);if(n!==true){p.onExecCommand.dispatch(p,u,r,x,m);return n}}i(p.plugins,function(o){if(o.execCommand&&o.execCommand(u,r,x)){p.onExecCommand.dispatch(p,u,r,x,m);q=1;return false}});if(q){return true}if(p.theme&&p.theme.execCommand&&p.theme.execCommand(u,r,x)){p.onExecCommand.dispatch(p,u,r,x,m);return true}if(p.editorCommands.execCommand(u,r,x)){p.onExecCommand.dispatch(p,u,r,x,m);return true}p.getDoc().execCommand(u,r,x);p.onExecCommand.dispatch(p,u,r,x,m)},queryCommandState:function(q){var n=this,r,p;if(n._isHidden()){return}if(r=n.queryStateCommands[q]){p=r.func.call(r.scope);if(p!==true){return p}}r=n.editorCommands.queryCommandState(q);if(r!==-1){return r}try{return this.getDoc().queryCommandState(q)}catch(m){}},queryCommandValue:function(r){var n=this,q,p;if(n._isHidden()){return}if(q=n.queryValueCommands[r]){p=q.func.call(q.scope);if(p!==true){return p}}q=n.editorCommands.queryCommandValue(r);if(d(q)){return q}try{return this.getDoc().queryCommandValue(r)}catch(m){}},show:function(){var m=this;l.show(m.getContainer());l.hide(m.id);m.load()},hide:function(){var m=this,n=m.getDoc();if(b&&n){n.execCommand("SelectAll")}m.save();setTimeout(function(){l.hide(m.getContainer())},1);l.setStyle(m.id,"display",m.orgDisplay)},isHidden:function(){return !l.isHidden(this.id)},setProgressState:function(m,n,p){this.onSetProgressState.dispatch(this,m,n,p);return m},load:function(q){var m=this,p=m.getElement(),n;if(p){q=q||{};q.load=true;n=m.setContent(d(p.value)?p.value:p.innerHTML,q);q.element=p;if(!q.no_events){m.onLoadContent.dispatch(m,q)}q.element=p=null;return n}},save:function(r){var m=this,q=m.getElement(),n,p;if(!q||!m.initialized){return}r=r||{};r.save=true;r.element=q;n=r.content=m.getContent(r);if(!r.no_events){m.onSaveContent.dispatch(m,r)}n=r.content;if(!/TEXTAREA|INPUT/i.test(q.nodeName)){q.innerHTML=n;if(p=l.getParent(m.id,"form")){i(p.elements,function(o){if(o.name==m.id){o.value=n;return false}})}}else{q.value=n}r.element=q=null;return n},setContent:function(r,p){var o=this,n,m=o.getBody(),q;p=p||{};p.format=p.format||"html";p.set=true;p.content=r;if(!p.no_events){o.onBeforeSetContent.dispatch(o,p)}r=p.content;if(!k.isIE&&(r.length===0||/^\s+$/.test(r))){q=o.settings.forced_root_block;if(q){r="<"+q+'><br data-mce-bogus="1"></'+q+">"}else{r='<br data-mce-bogus="1">'}m.innerHTML=r;o.selection.select(m,true);o.selection.collapse(true);return}if(p.format!=="raw"){r=new k.html.Serializer({},o.schema).serialize(o.parser.parse(r))}p.content=k.trim(r);o.dom.setHTML(m,p.content);if(!p.no_events){o.onSetContent.dispatch(o,p)}if(!o.settings.content_editable||document.activeElement===o.getBody()){o.selection.normalize()}return p.content},getContent:function(o){var n=this,p,m=n.getBody();o=o||{};o.format=o.format||"html";o.get=true;o.getInner=true;if(!o.no_events){n.onBeforeGetContent.dispatch(n,o)}if(o.format=="raw"){p=m.innerHTML}else{if(o.format=="text"){p=m.innerText||m.textContent}else{p=n.serializer.serialize(m,o)}}if(o.format!="text"){o.content=k.trim(p)}else{o.content=p}if(!o.no_events){n.onGetContent.dispatch(n,o)}return o.content},isDirty:function(){var m=this;return k.trim(m.startContent)!=k.trim(m.getContent({format:"raw",no_events:1}))&&!m.isNotDirty},getContainer:function(){var m=this;if(!m.container){m.container=l.get(m.editorContainer||m.id+"_parent")}return m.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return l.get(this.settings.content_element||this.id)},getWin:function(){var m=this,n;if(!m.contentWindow){n=l.get(m.id+"_ifr");if(n){m.contentWindow=n.contentWindow}}return m.contentWindow},getDoc:function(){var m=this,n;if(!m.contentDocument){n=m.getWin();if(n){m.contentDocument=n.document}}return m.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(o,n,q){var m=this,p=m.settings;if(p.urlconverter_callback){return m.execCallback("urlconverter_callback",o,q,true,n)}if(!p.convert_urls||(q&&q.nodeName=="LINK")||o.indexOf("file:")===0){return o}if(p.relative_urls){return m.documentBaseURI.toRelative(o)}o=m.documentBaseURI.toAbsolute(o,p.remove_script_host);return o},addVisual:function(q){var n=this,o=n.settings,p=n.dom,m;q=q||n.getBody();if(!d(n.hasVisual)){n.hasVisual=o.visual}i(p.select("table,a",q),function(s){var r;switch(s.nodeName){case"TABLE":m=o.visual_table_class||"mceItemTable";r=p.getAttrib(s,"border");if(!r||r=="0"){if(n.hasVisual){p.addClass(s,m)}else{p.removeClass(s,m)}}return;case"A":if(!p.getAttrib(s,"href",false)){r=p.getAttrib(s,"name")||s.id;m="mceItemAnchor";if(r){if(n.hasVisual){p.addClass(s,m)}else{p.removeClass(s,m)}}}return}});n.onVisualAid.dispatch(n,q,n.hasVisual)},remove:function(){var m=this,n=m.getContainer();if(!m.removed){m.removed=1;m.hide();if(!m.settings.content_editable){j.unbind(m.getWin());j.unbind(m.getDoc())}j.unbind(m.getBody());j.clear(n);m.execCallback("remove_instance_callback",m);m.onRemove.dispatch(m);m.onExecCommand.listeners=[];k.remove(m);l.remove(n)}},destroy:function(n){var m=this;if(m.destroyed){return}if(a){j.unbind(m.getDoc());j.unbind(m.getWin());j.unbind(m.getBody())}if(!n){k.removeUnload(m.destroy);tinyMCE.onBeforeUnload.remove(m._beforeUnload);if(m.theme&&m.theme.destroy){m.theme.destroy()}m.controlManager.destroy();m.selection.destroy();m.dom.destroy()}if(m.formElement){m.formElement.submit=m.formElement._mceOldSubmit;m.formElement._mceOldSubmit=null}m.contentAreaContainer=m.formElement=m.container=m.settings.content_element=m.bodyElement=m.contentDocument=m.contentWindow=null;if(m.selection){m.selection=m.selection.win=m.selection.dom=m.selection.dom.doc=null}m.destroyed=1},_refreshContentEditable:function(){var n=this,m,o;if(n._isHidden()){m=n.getBody();o=m.parentNode;o.removeChild(m);o.appendChild(m);m.focus()}},_isHidden:function(){var m;if(!a){return 0}m=this.selection.getSel();return(!m||!m.rangeCount||m.rangeCount===0)}})})(tinymce);(function(a){var b=a.each;a.Editor.prototype.setupEvents=function(){var c=this,d=c.settings;b(["onPreInit","onBeforeRenderUI","onPostRender","onLoad","onInit","onRemove","onActivate","onDeactivate","onClick","onEvent","onMouseUp","onMouseDown","onDblClick","onKeyDown","onKeyUp","onKeyPress","onContextMenu","onSubmit","onReset","onPaste","onPreProcess","onPostProcess","onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent","onLoadContent","onSaveContent","onNodeChange","onChange","onBeforeExecCommand","onExecCommand","onUndo","onRedo","onVisualAid","onSetProgressState","onSetAttrib"],function(e){c[e]=new a.util.Dispatcher(c)});if(d.cleanup_callback){c.onBeforeSetContent.add(function(e,f){f.content=e.execCallback("cleanup_callback","insert_to_editor",f.content,f)});c.onPreProcess.add(function(e,f){if(f.set){e.execCallback("cleanup_callback","insert_to_editor_dom",f.node,f)}if(f.get){e.execCallback("cleanup_callback","get_from_editor_dom",f.node,f)}});c.onPostProcess.add(function(e,f){if(f.set){f.content=e.execCallback("cleanup_callback","insert_to_editor",f.content,f)}if(f.get){f.content=e.execCallback("cleanup_callback","get_from_editor",f.content,f)}})}if(d.save_callback){c.onGetContent.add(function(e,f){if(f.save){f.content=e.execCallback("save_callback",e.id,f.content,e.getBody())}})}if(d.handle_event_callback){c.onEvent.add(function(f,g,h){if(c.execCallback("handle_event_callback",g,f,h)===false){g.preventDefault();g.stopPropagation()}})}if(d.handle_node_change_callback){c.onNodeChange.add(function(f,e,g){f.execCallback("handle_node_change_callback",f.id,g,-1,-1,true,f.selection.isCollapsed())})}if(d.save_callback){c.onSaveContent.add(function(e,g){var f=e.execCallback("save_callback",e.id,g.content,e.getBody());if(f){g.content=f}})}if(d.onchange_callback){c.onChange.add(function(f,e){f.execCallback("onchange_callback",f,e)})}};a.Editor.prototype.bindNativeEvents=function(){var l=this,f,d=l.settings,e=l.dom,h;h={mouseup:"onMouseUp",mousedown:"onMouseDown",click:"onClick",keyup:"onKeyUp",keydown:"onKeyDown",keypress:"onKeyPress",submit:"onSubmit",reset:"onReset",contextmenu:"onContextMenu",dblclick:"onDblClick",paste:"onPaste"};function c(i,m){var n=i.type;if(l.removed){return}if(l.onEvent.dispatch(l,i,m)!==false){l[h[i.fakeType||i.type]].dispatch(l,i,m)}}function j(i){l.focus(true)}function k(i,m){if(m.keyCode!=65||!a.VK.metaKeyPressed(m)){l.selection.normalize()}l.nodeChanged()}b(h,function(m,n){var i=d.content_editable?l.getBody():l.getDoc();switch(n){case"contextmenu":e.bind(i,n,c);break;case"paste":e.bind(l.getBody(),n,c);break;case"submit":case"reset":e.bind(l.getElement().form||a.DOM.getParent(l.id,"form"),n,c);break;default:e.bind(i,n,c)}});e.bind(d.content_editable?l.getBody():(a.isGecko?l.getDoc():l.getWin()),"focus",function(i){l.focus(true)});if(d.content_editable&&a.isOpera){e.bind(l.getBody(),"click",j);e.bind(l.getBody(),"keydown",j)}l.onMouseUp.add(k);l.onKeyUp.add(function(i,n){var m=n.keyCode;if((m>=33&&m<=36)||(m>=37&&m<=40)||m==13||m==45||m==46||m==8||(a.isMac&&(m==91||m==93))||n.ctrlKey){k(i,n)}});l.onReset.add(function(){l.setContent(l.startContent,{format:"raw"})});function g(m,i){if(m.altKey||m.ctrlKey||m.metaKey){b(l.shortcuts,function(n){var o=a.isMac?m.metaKey:m.ctrlKey;if(n.ctrl!=o||n.alt!=m.altKey||n.shift!=m.shiftKey){return}if(m.keyCode==n.keyCode||(m.charCode&&m.charCode==n.charCode)){m.preventDefault();if(i){n.func.call(n.scope)}return true}})}}l.onKeyUp.add(function(i,m){g(m)});l.onKeyPress.add(function(i,m){g(m)});l.onKeyDown.add(function(i,m){g(m,true)});if(a.isOpera){l.onClick.add(function(i,m){m.preventDefault()})}}})(tinymce);(function(d){var e=d.each,b,a=true,c=false;d.EditorCommands=function(n){var m=n.dom,p=n.selection,j={state:{},exec:{},value:{}},k=n.settings,q=n.formatter,o;function r(z,y,x){var v;z=z.toLowerCase();if(v=j.exec[z]){v(z,y,x);return a}return c}function l(x){var v;x=x.toLowerCase();if(v=j.state[x]){return v(x)}return -1}function h(x){var v;x=x.toLowerCase();if(v=j.value[x]){return v(x)}return c}function u(v,x){x=x||"exec";e(v,function(z,y){e(y.toLowerCase().split(","),function(A){j[x][A]=z})})}d.extend(this,{execCommand:r,queryCommandState:l,queryCommandValue:h,addCommands:u});function f(y,x,v){if(x===b){x=c}if(v===b){v=null}return n.getDoc().execCommand(y,x,v)}function t(v){return q.match(v)}function s(v,x){q.toggle(v,x?{value:x}:b)}function i(v){o=p.getBookmark(v)}function g(){p.moveToBookmark(o)}u({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){n.undoManager.add()},"Cut,Copy,Paste":function(z){var y=n.getDoc(),v;try{f(z)}catch(x){v=a}if(v||!y.queryCommandSupported(z)){if(d.isGecko){n.windowManager.confirm(n.getLang("clipboard_msg"),function(A){if(A){open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","_blank")}})}else{n.windowManager.alert(n.getLang("clipboard_no_support"))}}},unlink:function(v){if(p.isCollapsed()){p.select(p.getNode())}f(v);p.collapse(c)},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(v){var x=v.substring(7);e("left,center,right,full".split(","),function(y){if(x!=y){q.remove("align"+y)}});s("align"+x);r("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(y){var v,x;f(y);v=m.getParent(p.getNode(),"ol,ul");if(v){x=v.parentNode;if(/^(H[1-6]|P|ADDRESS|PRE)$/.test(x.nodeName)){i();m.split(x,v);g()}}},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(v){s(v)},"ForeColor,HiliteColor,FontName":function(y,x,v){s(y,v)},FontSize:function(z,y,x){var v,A;if(x>=1&&x<=7){A=d.explode(k.font_size_style_values);v=d.explode(k.font_size_classes);if(v){x=v[x-1]||x}else{x=A[x-1]||x}}s(z,x)},RemoveFormat:function(v){q.remove(v)},mceBlockQuote:function(v){s("blockquote")},FormatBlock:function(y,x,v){return s(v||"p")},mceCleanup:function(){var v=p.getBookmark();n.setContent(n.getContent({cleanup:a}),{cleanup:a});p.moveToBookmark(v)},mceRemoveNode:function(z,y,x){var v=x||p.getNode();if(v!=n.getBody()){i();n.dom.remove(v,a);g()}},mceSelectNodeDepth:function(z,y,x){var v=0;m.getParent(p.getNode(),function(A){if(A.nodeType==1&&v++==x){p.select(A);return c}},n.getBody())},mceSelectNode:function(y,x,v){p.select(v)},mceInsertContent:function(B,I,K){var y,J,E,z,F,G,D,C,L,x,A,M,v,H;y=n.parser;J=new d.html.Serializer({},n.schema);v='<span id="mce_marker" data-mce-type="bookmark">\uFEFF</span>';G={content:K,format:"html"};p.onBeforeSetContent.dispatch(p,G);K=G.content;if(K.indexOf("{$caret}")==-1){K+="{$caret}"}K=K.replace(/\{\$caret\}/,v);if(!p.isCollapsed()){n.getDoc().execCommand("Delete",false,null)}E=p.getNode();G={context:E.nodeName.toLowerCase()};F=y.parse(K,G);A=F.lastChild;if(A.attr("id")=="mce_marker"){D=A;for(A=A.prev;A;A=A.walk(true)){if(A.type==3||!m.isBlock(A.name)){A.parent.insert(D,A,A.name==="br");break}}}if(!G.invalid){K=J.serialize(F);A=E.firstChild;M=E.lastChild;if(!A||(A===M&&A.nodeName==="BR")){m.setHTML(E,K)}else{p.setContent(K)}}else{p.setContent(v);E=p.getNode();z=n.getBody();if(E.nodeType==9){E=A=z}else{A=E}while(A!==z){E=A;A=A.parentNode}K=E==z?z.innerHTML:m.getOuterHTML(E);K=J.serialize(y.parse(K.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return J.serialize(F)})));if(E==z){m.setHTML(z,K)}else{m.setOuterHTML(E,K)}}D=m.get("mce_marker");C=m.getRect(D);L=m.getViewPort(n.getWin());if((C.y+C.h>L.y+L.h||C.y<L.y)||(C.x>L.x+L.w||C.x<L.x)){H=d.isIE?n.getDoc().documentElement:n.getBody();H.scrollLeft=C.x;H.scrollTop=C.y-L.h+25}x=m.createRng();A=D.previousSibling;if(A&&A.nodeType==3){x.setStart(A,A.nodeValue.length)}else{x.setStartBefore(D);x.setEndBefore(D)}m.remove(D);p.setRng(x);p.onSetContent.dispatch(p,G);n.addVisual()},mceInsertRawHTML:function(y,x,v){p.setContent("tiny_mce_marker");n.setContent(n.getContent().replace(/tiny_mce_marker/g,function(){return v}))},mceToggleFormat:function(y,x,v){s(v)},mceSetContent:function(y,x,v){n.setContent(v)},"Indent,Outdent":function(z){var x,v,y;x=k.indentation;v=/[a-z%]+$/i.exec(x);x=parseInt(x);if(!l("InsertUnorderedList")&&!l("InsertOrderedList")){if(!k.forced_root_block&&!m.getParent(p.getNode(),m.isBlock)){q.apply("div")}e(p.getSelectedBlocks(),function(A){if(z=="outdent"){y=Math.max(0,parseInt(A.style.paddingLeft||0)-x);m.setStyle(A,"paddingLeft",y?y+v:"")}else{m.setStyle(A,"paddingLeft",(parseInt(A.style.paddingLeft||0)+x)+v)}})}else{f(z)}},mceRepaint:function(){var x;if(d.isGecko){try{i(a);if(p.getSel()){p.getSel().selectAllChildren(n.getBody())}p.collapse(a);g()}catch(v){}}},mceToggleFormat:function(y,x,v){q.toggle(v)},InsertHorizontalRule:function(){n.execCommand("mceInsertContent",false,"<hr />")},mceToggleVisualAid:function(){n.hasVisual=!n.hasVisual;n.addVisual()},mceReplaceContent:function(y,x,v){n.execCommand("mceInsertContent",false,v.replace(/\{\$selection\}/g,p.getContent({format:"text"})))},mceInsertLink:function(z,y,x){var v;if(typeof(x)=="string"){x={href:x}}v=m.getParent(p.getNode(),"a");x.href=x.href.replace(" ","%20");if(!v||!x.href){q.remove("link")}if(x.href){q.apply("link",x,v)}},selectAll:function(){var x=m.getRoot(),v=m.createRng();if(p.getRng().setStart){v.setStart(x,0);v.setEnd(x,x.childNodes.length);p.setRng(v)}else{f("SelectAll")}}});u({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(z){var x="align"+z.substring(7);var v=p.isCollapsed()?[m.getParent(p.getNode(),m.isBlock)]:p.getSelectedBlocks();var y=d.map(v,function(A){return !!q.matchNode(A,x)});return d.inArray(y,a)!==-1},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(v){return t(v)},mceBlockQuote:function(){return t("blockquote")},Outdent:function(){var v;if(k.inline_styles){if((v=m.getParent(p.getStart(),m.isBlock))&&parseInt(v.style.paddingLeft)>0){return a}if((v=m.getParent(p.getEnd(),m.isBlock))&&parseInt(v.style.paddingLeft)>0){return a}}return l("InsertUnorderedList")||l("InsertOrderedList")||(!k.inline_styles&&!!m.getParent(p.getNode(),"BLOCKQUOTE"))},"InsertUnorderedList,InsertOrderedList":function(x){var v=m.getParent(p.getNode(),"ul,ol");return v&&(x==="insertunorderedlist"&&v.tagName==="UL"||x==="insertorderedlist"&&v.tagName==="OL")}},"state");u({"FontSize,FontName":function(y){var x=0,v;if(v=m.getParent(p.getNode(),"span")){if(y=="fontsize"){x=v.style.fontSize}else{x=v.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()}}return x}},"value");u({Undo:function(){n.undoManager.undo()},Redo:function(){n.undoManager.redo()}})}})(tinymce);(function(b){var a=b.util.Dispatcher;b.UndoManager=function(h){var l,i=0,e=[],g,k,j,f;function c(){return b.trim(h.getContent({format:"raw",no_events:1}).replace(/<span[^>]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\/span>/g,""))}function d(){l.typing=false;l.add()}onBeforeAdd=new a(l);k=new a(l);j=new a(l);f=new a(l);k.add(function(m,n){if(m.hasUndo()){return h.onChange.dispatch(h,n,m)}});j.add(function(m,n){return h.onUndo.dispatch(h,n,m)});f.add(function(m,n){return h.onRedo.dispatch(h,n,m)});h.onInit.add(function(){l.add()});h.onBeforeExecCommand.add(function(m,p,o,q,n){if(p!="Undo"&&p!="Redo"&&p!="mceRepaint"&&(!n||!n.skip_undo)){l.beforeChange()}});h.onExecCommand.add(function(m,p,o,q,n){if(p!="Undo"&&p!="Redo"&&p!="mceRepaint"&&(!n||!n.skip_undo)){l.add()}});h.onSaveContent.add(d);h.dom.bind(h.dom.getRoot(),"dragend",d);h.dom.bind(h.getDoc(),b.isGecko?"blur":"focusout",function(m){if(!h.removed&&l.typing){d()}});h.onKeyUp.add(function(m,o){var n=o.keyCode;if((n>=33&&n<=36)||(n>=37&&n<=40)||n==45||n==13||o.ctrlKey){d()}});h.onKeyDown.add(function(m,o){var n=o.keyCode;if((n>=33&&n<=36)||(n>=37&&n<=40)||n==45){if(l.typing){d()}return}if((n<16||n>20)&&n!=224&&n!=91&&!l.typing){l.beforeChange();l.typing=true;l.add()}});h.onMouseDown.add(function(m,n){if(l.typing){d()}});h.addShortcut("ctrl+z","undo_desc","Undo");h.addShortcut("ctrl+y","redo_desc","Redo");l={data:e,typing:false,onBeforeAdd:onBeforeAdd,onAdd:k,onUndo:j,onRedo:f,beforeChange:function(){g=h.selection.getBookmark(2,true)},add:function(p){var m,n=h.settings,o;p=p||{};p.content=c();l.onBeforeAdd.dispatch(l,p);o=e[i];if(o&&o.content==p.content){return null}if(e[i]){e[i].beforeBookmark=g}if(n.custom_undo_redo_levels){if(e.length>n.custom_undo_redo_levels){for(m=0;m<e.length-1;m++){e[m]=e[m+1]}e.length--;i=e.length}}p.bookmark=h.selection.getBookmark(2,true);if(i<e.length-1){e.length=i+1}e.push(p);i=e.length-1;l.onAdd.dispatch(l,p);h.isNotDirty=0;return p},undo:function(){var n,m;if(l.typing){l.add();l.typing=false}if(i>0){n=e[--i];h.setContent(n.content,{format:"raw"});h.selection.moveToBookmark(n.beforeBookmark);l.onUndo.dispatch(l,n)}return n},redo:function(){var m;if(i<e.length-1){m=e[++i];h.setContent(m.content,{format:"raw"});h.selection.moveToBookmark(m.bookmark);l.onRedo.dispatch(l,m)}return m},clear:function(){e=[];i=0;l.typing=false},hasUndo:function(){return i>0||this.typing},hasRedo:function(){return i<e.length-1&&!this.typing}};return l}})(tinymce);tinymce.ForceBlocks=function(c){var b=c.settings,e=c.dom,a=c.selection,d=c.schema.getBlockElements();function f(){var j=a.getStart(),h=c.getBody(),g,k,o,s,q,i,l,m=-16777215,p,r;if(!j||j.nodeType!==1||!b.forced_root_block){return}while(j&&j!=h){if(d[j.nodeName]){return}j=j.parentNode}g=a.getRng();if(g.setStart){k=g.startContainer;o=g.startOffset;s=g.endContainer;q=g.endOffset}else{if(g.item){j=g.item(0);g=c.getDoc().body.createTextRange();g.moveToElementText(j)}r=g.parentElement().ownerDocument===c.getDoc();tmpRng=g.duplicate();tmpRng.collapse(true);o=tmpRng.move("character",m)*-1;if(!tmpRng.collapsed){tmpRng=g.duplicate();tmpRng.collapse(false);q=(tmpRng.move("character",m)*-1)-o}}j=h.firstChild;while(j){if(j.nodeType===3||(j.nodeType==1&&!d[j.nodeName])){if(j.nodeType===3&&j.nodeValue.length==0){l=j;j=j.nextSibling;e.remove(l);continue}if(!i){i=e.create(b.forced_root_block);j.parentNode.insertBefore(i,j);p=true}l=j;j=j.nextSibling;i.appendChild(l)}else{i=null;j=j.nextSibling}}if(p){if(g.setStart){g.setStart(k,o);g.setEnd(s,q);a.setRng(g)}else{if(r){try{g=c.getDoc().body.createTextRange();g.moveToElementText(h);g.collapse(true);g.moveStart("character",o);if(q>0){g.moveEnd("character",q)}g.select()}catch(n){}}}c.nodeChanged()}}if(b.forced_root_block){c.onKeyUp.add(f);c.onNodeChange.add(f)}};(function(c){var b=c.DOM,a=c.dom.Event,d=c.each,e=c.extend;c.create("tinymce.ControlManager",{ControlManager:function(f,j){var h=this,g;j=j||{};h.editor=f;h.controls={};h.onAdd=new c.util.Dispatcher(h);h.onPostRender=new c.util.Dispatcher(h);h.prefix=j.prefix||f.id+"_";h._cls={};h.onPostRender.add(function(){d(h.controls,function(i){i.postRender()})})},get:function(f){return this.controls[this.prefix+f]||this.controls[f]},setActive:function(h,f){var g=null;if(g=this.get(h)){g.setActive(f)}return g},setDisabled:function(h,f){var g=null;if(g=this.get(h)){g.setDisabled(f)}return g},add:function(g){var f=this;if(g){f.controls[g.id]=g;f.onAdd.dispatch(g,f)}return g},createControl:function(j){var o,k,g,h=this,m=h.editor,n,f;if(!h.controlFactories){h.controlFactories=[];d(m.plugins,function(i){if(i.createControl){h.controlFactories.push(i)}})}n=h.controlFactories;for(k=0,g=n.length;k<g;k++){o=n[k].createControl(j,h);if(o){return h.add(o)}}if(j==="|"||j==="separator"){return h.createSeparator()}if(m.buttons&&(o=m.buttons[j])){return h.createButton(j,o)}return h.add(o)},createDropMenu:function(f,n,h){var m=this,i=m.editor,j,g,k,l;n=e({"class":"mceDropDown",constrain:i.settings.constrain_menus},n);n["class"]=n["class"]+" "+i.getParam("skin")+"Skin";if(k=i.getParam("skin_variant")){n["class"]+=" "+i.getParam("skin")+"Skin"+k.substring(0,1).toUpperCase()+k.substring(1)}n["class"]+=i.settings.directionality=="rtl"?" mceRtl":"";f=m.prefix+f;l=h||m._cls.dropmenu||c.ui.DropMenu;j=m.controls[f]=new l(f,n);j.onAddItem.add(function(r,q){var p=q.settings;p.title=i.getLang(p.title,p.title);if(!p.onclick){p.onclick=function(o){if(p.cmd){i.execCommand(p.cmd,p.ui||false,p.value)}}}});i.onRemove.add(function(){j.destroy()});if(c.isIE){j.onShowMenu.add(function(){i.focus();g=i.selection.getBookmark(1)});j.onHideMenu.add(function(){if(g){i.selection.moveToBookmark(g);g=0}})}return m.add(j)},createListBox:function(f,n,h){var l=this,j=l.editor,i,k,m;if(l.get(f)){return null}n.title=j.translate(n.title);n.scope=n.scope||j;if(!n.onselect){n.onselect=function(o){j.execCommand(n.cmd,n.ui||false,o||n.value)}}n=e({title:n.title,"class":"mce_"+f,scope:n.scope,control_manager:l},n);f=l.prefix+f;function g(o){return o.settings.use_accessible_selects&&!c.isGecko}if(j.settings.use_native_selects||g(j)){k=new c.ui.NativeListBox(f,n)}else{m=h||l._cls.listbox||c.ui.ListBox;k=new m(f,n,j)}l.controls[f]=k;if(c.isWebKit){k.onPostRender.add(function(p,o){a.add(o,"mousedown",function(){j.bookmark=j.selection.getBookmark(1)});a.add(o,"focus",function(){j.selection.moveToBookmark(j.bookmark);j.bookmark=null})})}if(k.hideMenu){j.onMouseDown.add(k.hideMenu,k)}return l.add(k)},createButton:function(m,i,l){var h=this,g=h.editor,j,k,f;if(h.get(m)){return null}i.title=g.translate(i.title);i.label=g.translate(i.label);i.scope=i.scope||g;if(!i.onclick&&!i.menu_button){i.onclick=function(){g.execCommand(i.cmd,i.ui||false,i.value)}}i=e({title:i.title,"class":"mce_"+m,unavailable_prefix:g.getLang("unavailable",""),scope:i.scope,control_manager:h},i);m=h.prefix+m;if(i.menu_button){f=l||h._cls.menubutton||c.ui.MenuButton;k=new f(m,i,g);g.onMouseDown.add(k.hideMenu,k)}else{f=h._cls.button||c.ui.Button;k=new f(m,i,g)}return h.add(k)},createMenuButton:function(h,f,g){f=f||{};f.menu_button=1;return this.createButton(h,f,g)},createSplitButton:function(m,i,l){var h=this,g=h.editor,j,k,f;if(h.get(m)){return null}i.title=g.translate(i.title);i.scope=i.scope||g;if(!i.onclick){i.onclick=function(n){g.execCommand(i.cmd,i.ui||false,n||i.value)}}if(!i.onselect){i.onselect=function(n){g.execCommand(i.cmd,i.ui||false,n||i.value)}}i=e({title:i.title,"class":"mce_"+m,scope:i.scope,control_manager:h},i);m=h.prefix+m;f=l||h._cls.splitbutton||c.ui.SplitButton;k=h.add(new f(m,i,g));g.onMouseDown.add(k.hideMenu,k);return k},createColorSplitButton:function(f,n,h){var l=this,j=l.editor,i,k,m,g;if(l.get(f)){return null}n.title=j.translate(n.title);n.scope=n.scope||j;if(!n.onclick){n.onclick=function(o){if(c.isIE){g=j.selection.getBookmark(1)}j.execCommand(n.cmd,n.ui||false,o||n.value)}}if(!n.onselect){n.onselect=function(o){j.execCommand(n.cmd,n.ui||false,o||n.value)}}n=e({title:n.title,"class":"mce_"+f,menu_class:j.getParam("skin")+"Skin",scope:n.scope,more_colors_title:j.getLang("more_colors")},n);f=l.prefix+f;m=h||l._cls.colorsplitbutton||c.ui.ColorSplitButton;k=new m(f,n,j);j.onMouseDown.add(k.hideMenu,k);j.onRemove.add(function(){k.destroy()});if(c.isIE){k.onShowMenu.add(function(){j.focus();g=j.selection.getBookmark(1)});k.onHideMenu.add(function(){if(g){j.selection.moveToBookmark(g);g=0}})}return l.add(k)},createToolbar:function(k,h,j){var i,g=this,f;k=g.prefix+k;f=j||g._cls.toolbar||c.ui.Toolbar;i=new f(k,h,g.editor);if(g.get(k)){return null}return g.add(i)},createToolbarGroup:function(k,h,j){var i,g=this,f;k=g.prefix+k;f=j||this._cls.toolbarGroup||c.ui.ToolbarGroup;i=new f(k,h,g.editor);if(g.get(k)){return null}return g.add(i)},createSeparator:function(g){var f=g||this._cls.separator||c.ui.Separator;return new f()},setControlType:function(g,f){return this._cls[g.toLowerCase()]=f},destroy:function(){d(this.controls,function(f){f.destroy()});this.controls=null}})})(tinymce);(function(d){var a=d.util.Dispatcher,e=d.each,c=d.isIE,b=d.isOpera;d.create("tinymce.WindowManager",{WindowManager:function(f){var g=this;g.editor=f;g.onOpen=new a(g);g.onClose=new a(g);g.params={};g.features={}},open:function(z,h){var v=this,k="",n,m,i=v.editor.settings.dialog_type=="modal",q,o,j,g=d.DOM.getViewPort(),r;z=z||{};h=h||{};o=b?g.w:screen.width;j=b?g.h:screen.height;z.name=z.name||"mc_"+new Date().getTime();z.width=parseInt(z.width||320);z.height=parseInt(z.height||240);z.resizable=true;z.left=z.left||parseInt(o/2)-(z.width/2);z.top=z.top||parseInt(j/2)-(z.height/2);h.inline=false;h.mce_width=z.width;h.mce_height=z.height;h.mce_auto_focus=z.auto_focus;if(i){if(c){z.center=true;z.help=false;z.dialogWidth=z.width+"px";z.dialogHeight=z.height+"px";z.scroll=z.scrollbars||false}}e(z,function(p,f){if(d.is(p,"boolean")){p=p?"yes":"no"}if(!/^(name|url)$/.test(f)){if(c&&i){k+=(k?";":"")+f+":"+p}else{k+=(k?",":"")+f+"="+p}}});v.features=z;v.params=h;v.onOpen.dispatch(v,z,h);r=z.url||z.file;r=d._addVer(r);try{if(c&&i){q=1;window.showModalDialog(r,window,k)}else{q=window.open(r,z.name,k)}}catch(l){}if(!q){alert(v.editor.getLang("popup_blocked"))}},close:function(f){f.close();this.onClose.dispatch(this)},createInstance:function(i,h,g,m,l,k){var j=d.resolve(i);return new j(h,g,m,l,k)},confirm:function(h,f,i,g){g=g||window;f.call(i||this,g.confirm(this._decode(this.editor.getLang(h,h))))},alert:function(h,f,j,g){var i=this;g=g||window;g.alert(i._decode(i.editor.getLang(h,h)));if(f){f.call(j||i)}},resizeBy:function(f,g,h){h.resizeBy(f,g)},_decode:function(f){return d.DOM.decode(f).replace(/\\n/g,"\n")}})}(tinymce));(function(a){a.Formatter=function(aa){var Q={},T=a.each,c=aa.dom,r=aa.selection,t=a.dom.TreeWalker,N=new a.dom.RangeUtils(c),d=aa.schema.isValidChild,A=a.isArray,H=c.isBlock,m=aa.settings.forced_root_block,s=c.nodeIndex,G="\uFEFF",e=/^(src|href|style)$/,X=false,C=true,P,D,x=c.getContentEditable;function I(ab){return !!aa.schema.getTextBlocks()[ab.toLowerCase()]}function n(ac,ab){return c.getParents(ac,ab,c.getRoot())}function b(ab){return ab.nodeType===1&&ab.id==="_mce_caret"}function j(){l({alignleft:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"},defaultBlock:"div"},{selector:"img,table",collapsed:false,styles:{"float":"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"},defaultBlock:"div"},{selector:"img",collapsed:false,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:false,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"},defaultBlock:"div"},{selector:"img,table",collapsed:false,styles:{"float":"right"}}],alignfull:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"justify"},defaultBlock:"div"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:true},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:true},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},wrap_links:false},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},wrap_links:false},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},link:{inline:"a",selector:"a",remove:"all",split:true,deep:true,onmatch:function(ab){return true},onformat:function(ad,ab,ac){T(ac,function(af,ae){c.setAttrib(ad,ae,af)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike",remove:"all",split:true,expand:false,block_expand:true,deep:true},{selector:"span",attributes:["style","class"],remove:"empty",split:true,expand:false,deep:true},{selector:"*",attributes:["style","class"],split:false,expand:false,deep:true}]});T("p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp".split(/\s/),function(ab){l(ab,{block:ab,remove:"all"})});l(aa.settings.formats)}function W(){aa.addShortcut("ctrl+b","bold_desc","Bold");aa.addShortcut("ctrl+i","italic_desc","Italic");aa.addShortcut("ctrl+u","underline_desc","Underline");for(var ab=1;ab<=6;ab++){aa.addShortcut("ctrl+"+ab,"",["FormatBlock",false,"h"+ab])}aa.addShortcut("ctrl+7","",["FormatBlock",false,"p"]);aa.addShortcut("ctrl+8","",["FormatBlock",false,"div"]);aa.addShortcut("ctrl+9","",["FormatBlock",false,"address"])}function V(ab){return ab?Q[ab]:Q}function l(ab,ac){if(ab){if(typeof(ab)!=="string"){T(ab,function(ae,ad){l(ad,ae)})}else{ac=ac.length?ac:[ac];T(ac,function(ad){if(ad.deep===D){ad.deep=!ad.selector}if(ad.split===D){ad.split=!ad.selector||ad.inline}if(ad.remove===D&&ad.selector&&!ad.inline){ad.remove="none"}if(ad.selector&&ad.inline){ad.mixed=true;ad.block_expand=true}if(typeof(ad.classes)==="string"){ad.classes=ad.classes.split(/\s+/)}});Q[ab]=ac}}}var i=function(ac){var ab;aa.dom.getParent(ac,function(ad){ab=aa.dom.getStyle(ad,"text-decoration");return ab&&ab!=="none"});return ab};var L=function(ab){var ac;if(ab.nodeType===1&&ab.parentNode&&ab.parentNode.nodeType===1){ac=i(ab.parentNode);if(aa.dom.getStyle(ab,"color")&&ac){aa.dom.setStyle(ab,"text-decoration",ac)}else{if(aa.dom.getStyle(ab,"textdecoration")===ac){aa.dom.setStyle(ab,"text-decoration",null)}}}};function Y(ae,al,ag){var ah=V(ae),am=ah[0],ak,ac,aj,ai=r.isCollapsed();function ab(aq,ap){ap=ap||am;if(aq){if(ap.onformat){ap.onformat(aq,ap,al,ag)}T(ap.styles,function(at,ar){c.setStyle(aq,ar,q(at,al))});T(ap.attributes,function(at,ar){c.setAttrib(aq,ar,q(at,al))});T(ap.classes,function(ar){ar=q(ar,al);if(!c.hasClass(aq,ar)){c.addClass(aq,ar)}})}}function af(){function ar(ay,aw){var ax=new t(aw);for(ag=ax.current();ag;ag=ax.prev()){if(ag.childNodes.length>1||ag==ay||ag.tagName=="BR"){return ag}}}var aq=aa.selection.getRng();var av=aq.startContainer;var ap=aq.endContainer;if(av!=ap&&aq.endOffset===0){var au=ar(av,ap);var at=au.nodeType==3?au.length:au.childNodes.length;aq.setEnd(au,at)}return aq}function ad(at,ay,aw,av,aq){var ap=[],ar=-1,ax,aA=-1,au=-1,az;T(at.childNodes,function(aC,aB){if(aC.nodeName==="UL"||aC.nodeName==="OL"){ar=aB;ax=aC;return false}});T(at.childNodes,function(aC,aB){if(aC.nodeName==="SPAN"&&c.getAttrib(aC,"data-mce-type")=="bookmark"){if(aC.id==ay.id+"_start"){aA=aB}else{if(aC.id==ay.id+"_end"){au=aB}}}});if(ar<=0||(aA<ar&&au>ar)){T(a.grep(at.childNodes),aq);return 0}else{az=c.clone(aw,X);T(a.grep(at.childNodes),function(aC,aB){if((aA<ar&&aB<ar)||(aA>ar&&aB>ar)){ap.push(aC);aC.parentNode.removeChild(aC)}});if(aA<ar){at.insertBefore(az,ax)}else{if(aA>ar){at.insertBefore(az,ax.nextSibling)}}av.push(az);T(ap,function(aB){az.appendChild(aB)});return az}}function an(aq,at,aw){var ap=[],av,ar,au=true;av=am.inline||am.block;ar=c.create(av);ab(ar);N.walk(aq,function(ax){var ay;function az(aA){var aF,aD,aB,aC,aE;aE=au;aF=aA.nodeName.toLowerCase();aD=aA.parentNode.nodeName.toLowerCase();if(aA.nodeType===1&&x(aA)){aE=au;au=x(aA)==="true";aC=true}if(g(aF,"br")){ay=0;if(am.block){c.remove(aA)}return}if(am.wrapper&&y(aA,ae,al)){ay=0;return}if(au&&!aC&&am.block&&!am.wrapper&&I(aF)){aA=c.rename(aA,av);ab(aA);ap.push(aA);ay=0;return}if(am.selector){T(ah,function(aG){if("collapsed" in aG&&aG.collapsed!==ai){return}if(c.is(aA,aG.selector)&&!b(aA)){ab(aA,aG);aB=true}});if(!am.inline||aB){ay=0;return}}if(au&&!aC&&d(av,aF)&&d(aD,av)&&!(!aw&&aA.nodeType===3&&aA.nodeValue.length===1&&aA.nodeValue.charCodeAt(0)===65279)&&!b(aA)){if(!ay){ay=c.clone(ar,X);aA.parentNode.insertBefore(ay,aA);ap.push(ay)}ay.appendChild(aA)}else{if(aF=="li"&&at){ay=ad(aA,at,ar,ap,az)}else{ay=0;T(a.grep(aA.childNodes),az);if(aC){au=aE}ay=0}}}T(ax,az)});if(am.wrap_links===false){T(ap,function(ax){function ay(aC){var aB,aA,az;if(aC.nodeName==="A"){aA=c.clone(ar,X);ap.push(aA);az=a.grep(aC.childNodes);for(aB=0;aB<az.length;aB++){aA.appendChild(az[aB])}aC.appendChild(aA)}T(a.grep(aC.childNodes),ay)}ay(ax)})}T(ap,function(az){var ax;function aA(aC){var aB=0;T(aC.childNodes,function(aD){if(!f(aD)&&!K(aD)){aB++}});return aB}function ay(aB){var aD,aC;T(aB.childNodes,function(aE){if(aE.nodeType==1&&!K(aE)&&!b(aE)){aD=aE;return X}});if(aD&&h(aD,am)){aC=c.clone(aD,X);ab(aC);c.replace(aC,aB,C);c.remove(aD,1)}return aC||aB}ax=aA(az);if((ap.length>1||!H(az))&&ax===0){c.remove(az,1);return}if(am.inline||am.wrapper){if(!am.exact&&ax===1){az=ay(az)}T(ah,function(aB){T(c.select(aB.inline,az),function(aD){var aC;if(aB.wrap_links===false){aC=aD.parentNode;do{if(aC.nodeName==="A"){return}}while(aC=aC.parentNode)}Z(aB,al,aD,aB.exact?aD:null)})});if(y(az.parentNode,ae,al)){c.remove(az,1);az=0;return C}if(am.merge_with_parents){c.getParent(az.parentNode,function(aB){if(y(aB,ae,al)){c.remove(az,1);az=0;return C}})}if(az&&am.merge_siblings!==false){az=u(E(az),az);az=u(az,E(az,C))}}})}if(am){if(ag){if(ag.nodeType){ac=c.createRng();ac.setStartBefore(ag);ac.setEndAfter(ag);an(p(ac,ah),null,true)}else{an(ag,null,true)}}else{if(!ai||!am.inline||c.select("td.mceSelected,th.mceSelected").length){var ao=aa.selection.getNode();if(!m&&ah[0].defaultBlock&&!c.getParent(ao,c.isBlock)){Y(ah[0].defaultBlock)}aa.selection.setRng(af());ak=r.getBookmark();an(p(r.getRng(C),ah),ak);if(am.styles&&(am.styles.color||am.styles.textDecoration)){a.walk(ao,L,"childNodes");L(ao)}r.moveToBookmark(ak);R(r.getRng(C));aa.nodeChanged()}else{U("apply",ae,al)}}}}function B(ad,am,af){var ag=V(ad),ao=ag[0],ak,aj,ac,al=true;function ae(av){var au,at,ar,aq,ax,aw;if(av.nodeType===1&&x(av)){ax=al;al=x(av)==="true";aw=true}au=a.grep(av.childNodes);if(al&&!aw){for(at=0,ar=ag.length;at<ar;at++){if(Z(ag[at],am,av,av)){break}}}if(ao.deep){if(au.length){for(at=0,ar=au.length;at<ar;at++){ae(au[at])}if(aw){al=ax}}}}function ah(aq){var ar;T(n(aq.parentNode).reverse(),function(at){var au;if(!ar&&at.id!="_start"&&at.id!="_end"){au=y(at,ad,am);if(au&&au.split!==false){ar=at}}});return ar}function ab(au,aq,aw,az){var aA,ay,ax,at,av,ar;if(au){ar=au.parentNode;for(aA=aq.parentNode;aA&&aA!=ar;aA=aA.parentNode){ay=c.clone(aA,X);for(av=0;av<ag.length;av++){if(Z(ag[av],am,ay,ay)){ay=0;break}}if(ay){if(ax){ay.appendChild(ax)}if(!at){at=ay}ax=ay}}if(az&&(!ao.mixed||!H(au))){aq=c.split(au,aq)}if(ax){aw.parentNode.insertBefore(ax,aw);at.appendChild(aw)}}return aq}function an(aq){return ab(ah(aq),aq,aq,true)}function ai(at){var ar=c.get(at?"_start":"_end"),aq=ar[at?"firstChild":"lastChild"];if(K(aq)){aq=aq[at?"firstChild":"lastChild"]}c.remove(ar,true);return aq}function ap(aq){var at,au,ar;aq=p(aq,ag,C);if(ao.split){at=M(aq,C);au=M(aq);if(at!=au){if(/^(TR|TD)$/.test(at.nodeName)&&at.firstChild){at=(at.nodeName=="TD"?at.firstChild:at.firstChild.firstChild)||at}at=S(at,"span",{id:"_start","data-mce-type":"bookmark"});au=S(au,"span",{id:"_end","data-mce-type":"bookmark"});an(at);an(au);at=ai(C);au=ai()}else{at=au=an(at)}aq.startContainer=at.parentNode;aq.startOffset=s(at);aq.endContainer=au.parentNode;aq.endOffset=s(au)+1}N.walk(aq,function(av){T(av,function(aw){ae(aw);if(aw.nodeType===1&&aa.dom.getStyle(aw,"text-decoration")==="underline"&&aw.parentNode&&i(aw.parentNode)==="underline"){Z({deep:false,exact:true,inline:"span",styles:{textDecoration:"underline"}},null,aw)}})})}if(af){if(af.nodeType){ac=c.createRng();ac.setStartBefore(af);ac.setEndAfter(af);ap(ac)}else{ap(af)}return}if(!r.isCollapsed()||!ao.inline||c.select("td.mceSelected,th.mceSelected").length){ak=r.getBookmark();ap(r.getRng(C));r.moveToBookmark(ak);if(ao.inline&&k(ad,am,r.getStart())){R(r.getRng(true))}aa.nodeChanged()}else{U("remove",ad,am)}}function F(ac,ae,ad){var ab=V(ac);if(k(ac,ae,ad)&&(!("toggle" in ab[0])||ab[0].toggle)){B(ac,ae,ad)}else{Y(ac,ae,ad)}}function y(ac,ab,ah,af){var ad=V(ab),ai,ag,ae;function aj(an,ap,aq){var am,ao,ak=ap[aq],al;if(ap.onmatch){return ap.onmatch(an,ap,aq)}if(ak){if(ak.length===D){for(am in ak){if(ak.hasOwnProperty(am)){if(aq==="attributes"){ao=c.getAttrib(an,am)}else{ao=O(an,am)}if(af&&!ao&&!ap.exact){return}if((!af||ap.exact)&&!g(ao,q(ak[am],ah))){return}}}}else{for(al=0;al<ak.length;al++){if(aq==="attributes"?c.getAttrib(an,ak[al]):O(an,ak[al])){return ap}}}}return ap}if(ad&&ac){for(ag=0;ag<ad.length;ag++){ai=ad[ag];if(h(ac,ai)&&aj(ac,ai,"attributes")&&aj(ac,ai,"styles")){if(ae=ai.classes){for(ag=0;ag<ae.length;ag++){if(!c.hasClass(ac,ae[ag])){return}}}return ai}}}}function k(ad,af,ae){var ac;function ab(ag){ag=c.getParent(ag,function(ah){return !!y(ah,ad,af,true)});return y(ag,ad,af)}if(ae){return ab(ae)}ae=r.getNode();if(ab(ae)){return C}ac=r.getStart();if(ac!=ae){if(ab(ac)){return C}}return X}function v(ai,ah){var af,ag=[],ae={},ad,ac,ab;af=r.getStart();c.getParent(af,function(al){var ak,aj;for(ak=0;ak<ai.length;ak++){aj=ai[ak];if(!ae[aj]&&y(al,aj,ah)){ae[aj]=true;ag.push(aj)}}},c.getRoot());return ag}function z(af){var ah=V(af),ae,ad,ag,ac,ab;if(ah){ae=r.getStart();ad=n(ae);for(ac=ah.length-1;ac>=0;ac--){ab=ah[ac].selector;if(!ab){return C}for(ag=ad.length-1;ag>=0;ag--){if(c.is(ad[ag],ab)){return C}}}}return X}function J(ab,ae,ac){var ad;if(!P){P={};ad={};aa.onNodeChange.addToTop(function(ag,af,ai){var ah=n(ai),aj={};T(P,function(ak,al){T(ah,function(am){if(y(am,al,{},ak.similar)){if(!ad[al]){T(ak,function(an){an(true,{node:am,format:al,parents:ah})});ad[al]=ak}aj[al]=ak;return false}})});T(ad,function(ak,al){if(!aj[al]){delete ad[al];T(ak,function(am){am(false,{node:ai,format:al,parents:ah})})}})})}T(ab.split(","),function(af){if(!P[af]){P[af]=[];P[af].similar=ac}P[af].push(ae)});return this}a.extend(this,{get:V,register:l,apply:Y,remove:B,toggle:F,match:k,matchAll:v,matchNode:y,canApply:z,formatChanged:J});j();W();function h(ab,ac){if(g(ab,ac.inline)){return C}if(g(ab,ac.block)){return C}if(ac.selector){return c.is(ab,ac.selector)}}function g(ac,ab){ac=ac||"";ab=ab||"";ac=""+(ac.nodeName||ac);ab=""+(ab.nodeName||ab);return ac.toLowerCase()==ab.toLowerCase()}function O(ac,ab){var ad=c.getStyle(ac,ab);if(ab=="color"||ab=="backgroundColor"){ad=c.toHex(ad)}if(ab=="fontWeight"&&ad==700){ad="bold"}return""+ad}function q(ab,ac){if(typeof(ab)!="string"){ab=ab(ac)}else{if(ac){ab=ab.replace(/%(\w+)/g,function(ae,ad){return ac[ad]||ae})}}return ab}function f(ab){return ab&&ab.nodeType===3&&/^([\t \r\n]+|)$/.test(ab.nodeValue)}function S(ad,ac,ab){var ae=c.create(ac,ab);ad.parentNode.insertBefore(ae,ad);ae.appendChild(ad);return ae}function p(ab,am,ae){var ap,an,ah,al,ad=ab.startContainer,ai=ab.startOffset,ar=ab.endContainer,ak=ab.endOffset;function ao(aA){var au,ax,az,aw,av,at;au=ax=aA?ad:ar;av=aA?"previousSibling":"nextSibling";at=c.getRoot();function ay(aB){return aB.nodeName=="BR"&&aB.getAttribute("data-mce-bogus")&&!aB.nextSibling}if(au.nodeType==3&&!f(au)){if(aA?ai>0:ak<au.nodeValue.length){return au}}for(;;){if(!am[0].block_expand&&H(ax)){return ax}for(aw=ax[av];aw;aw=aw[av]){if(!K(aw)&&!f(aw)&&!ay(aw)){return ax}}if(ax.parentNode==at){au=ax;break}ax=ax.parentNode}return au}function ag(at,au){if(au===D){au=at.nodeType===3?at.length:at.childNodes.length}while(at&&at.hasChildNodes()){at=at.childNodes[au];if(at){au=at.nodeType===3?at.length:at.childNodes.length}}return{node:at,offset:au}}if(ad.nodeType==1&&ad.hasChildNodes()){an=ad.childNodes.length-1;ad=ad.childNodes[ai>an?an:ai];if(ad.nodeType==3){ai=0}}if(ar.nodeType==1&&ar.hasChildNodes()){an=ar.childNodes.length-1;ar=ar.childNodes[ak>an?an:ak-1];if(ar.nodeType==3){ak=ar.nodeValue.length}}function aq(au){var at=au;while(at){if(at.nodeType===1&&x(at)){return x(at)==="false"?at:au}at=at.parentNode}return au}function aj(au,ay,aA){var ax,av,az,at;function aw(aC,aE){var aF,aB,aD=aC.nodeValue;if(typeof(aE)=="undefined"){aE=aA?aD.length:0}if(aA){aF=aD.lastIndexOf(" ",aE);aB=aD.lastIndexOf("\u00a0",aE);aF=aF>aB?aF:aB;if(aF!==-1&&!ae){aF++}}else{aF=aD.indexOf(" ",aE);aB=aD.indexOf("\u00a0",aE);aF=aF!==-1&&(aB===-1||aF<aB)?aF:aB}return aF}if(au.nodeType===3){az=aw(au,ay);if(az!==-1){return{container:au,offset:az}}at=au}ax=new t(au,c.getParent(au,H)||aa.getBody());while(av=ax[aA?"prev":"next"]()){if(av.nodeType===3){at=av;az=aw(av);if(az!==-1){return{container:av,offset:az}}}else{if(H(av)){break}}}if(at){if(aA){ay=0}else{ay=at.length}return{container:at,offset:ay}}}function af(au,at){var av,aw,ay,ax;if(au.nodeType==3&&au.nodeValue.length===0&&au[at]){au=au[at]}av=n(au);for(aw=0;aw<av.length;aw++){for(ay=0;ay<am.length;ay++){ax=am[ay];if("collapsed" in ax&&ax.collapsed!==ab.collapsed){continue}if(c.is(av[aw],ax.selector)){return av[aw]}}}return au}function ac(au,at,aw){var av;if(!am[0].wrapper){av=c.getParent(au,am[0].block)}if(!av){av=c.getParent(au.nodeType==3?au.parentNode:au,I)}if(av&&am[0].wrapper){av=n(av,"ul,ol").reverse()[0]||av}if(!av){av=au;while(av[at]&&!H(av[at])){av=av[at];if(g(av,"br")){break}}}return av||au}ad=aq(ad);ar=aq(ar);if(K(ad.parentNode)||K(ad)){ad=K(ad)?ad:ad.parentNode;ad=ad.nextSibling||ad;if(ad.nodeType==3){ai=0}}if(K(ar.parentNode)||K(ar)){ar=K(ar)?ar:ar.parentNode;ar=ar.previousSibling||ar;if(ar.nodeType==3){ak=ar.length}}if(am[0].inline){if(ab.collapsed){al=aj(ad,ai,true);if(al){ad=al.container;ai=al.offset}al=aj(ar,ak);if(al){ar=al.container;ak=al.offset}}ah=ag(ar,ak);if(ah.node){while(ah.node&&ah.offset===0&&ah.node.previousSibling){ah=ag(ah.node.previousSibling)}if(ah.node&&ah.offset>0&&ah.node.nodeType===3&&ah.node.nodeValue.charAt(ah.offset-1)===" "){if(ah.offset>1){ar=ah.node;ar.splitText(ah.offset-1)}}}}if(am[0].inline||am[0].block_expand){if(!am[0].inline||(ad.nodeType!=3||ai===0)){ad=ao(true)}if(!am[0].inline||(ar.nodeType!=3||ak===ar.nodeValue.length)){ar=ao()}}if(am[0].selector&&am[0].expand!==X&&!am[0].inline){ad=af(ad,"previousSibling");ar=af(ar,"nextSibling")}if(am[0].block||am[0].selector){ad=ac(ad,"previousSibling");ar=ac(ar,"nextSibling");if(am[0].block){if(!H(ad)){ad=ao(true)}if(!H(ar)){ar=ao()}}}if(ad.nodeType==1){ai=s(ad);ad=ad.parentNode}if(ar.nodeType==1){ak=s(ar)+1;ar=ar.parentNode}return{startContainer:ad,startOffset:ai,endContainer:ar,endOffset:ak}}function Z(ah,ag,ae,ab){var ad,ac,af;if(!h(ae,ah)){return X}if(ah.remove!="all"){T(ah.styles,function(aj,ai){aj=q(aj,ag);if(typeof(ai)==="number"){ai=aj;ab=0}if(!ab||g(O(ab,ai),aj)){c.setStyle(ae,ai,"")}af=1});if(af&&c.getAttrib(ae,"style")==""){ae.removeAttribute("style");ae.removeAttribute("data-mce-style")}T(ah.attributes,function(ak,ai){var aj;ak=q(ak,ag);if(typeof(ai)==="number"){ai=ak;ab=0}if(!ab||g(c.getAttrib(ab,ai),ak)){if(ai=="class"){ak=c.getAttrib(ae,ai);if(ak){aj="";T(ak.split(/\s+/),function(al){if(/mce\w+/.test(al)){aj+=(aj?" ":"")+al}});if(aj){c.setAttrib(ae,ai,aj);return}}}if(ai=="class"){ae.removeAttribute("className")}if(e.test(ai)){ae.removeAttribute("data-mce-"+ai)}ae.removeAttribute(ai)}});T(ah.classes,function(ai){ai=q(ai,ag);if(!ab||c.hasClass(ab,ai)){c.removeClass(ae,ai)}});ac=c.getAttribs(ae);for(ad=0;ad<ac.length;ad++){if(ac[ad].nodeName.indexOf("_")!==0){return X}}}if(ah.remove!="none"){o(ae,ah);return C}}function o(ad,ae){var ab=ad.parentNode,ac;function af(ah,ag,ai){ah=E(ah,ag,ai);return !ah||(ah.nodeName=="BR"||H(ah))}if(ae.block){if(!m){if(H(ad)&&!H(ab)){if(!af(ad,X)&&!af(ad.firstChild,C,1)){ad.insertBefore(c.create("br"),ad.firstChild)}if(!af(ad,C)&&!af(ad.lastChild,X,1)){ad.appendChild(c.create("br"))}}}else{if(ab==c.getRoot()){if(!ae.list_block||!g(ad,ae.list_block)){T(a.grep(ad.childNodes),function(ag){if(d(m,ag.nodeName.toLowerCase())){if(!ac){ac=S(ag,m)}else{ac.appendChild(ag)}}else{ac=0}})}}}}if(ae.selector&&ae.inline&&!g(ae.inline,ad)){return}c.remove(ad,1)}function E(ac,ab,ad){if(ac){ab=ab?"nextSibling":"previousSibling";for(ac=ad?ac:ac[ab];ac;ac=ac[ab]){if(ac.nodeType==1||!f(ac)){return ac}}}}function K(ab){return ab&&ab.nodeType==1&&ab.getAttribute("data-mce-type")=="bookmark"}function u(af,ae){var ab,ad,ac;function ah(ak,aj){if(ak.nodeName!=aj.nodeName){return X}function ai(am){var an={};T(c.getAttribs(am),function(ao){var ap=ao.nodeName.toLowerCase();if(ap.indexOf("_")!==0&&ap!=="style"){an[ap]=c.getAttrib(am,ap)}});return an}function al(ap,ao){var an,am;for(am in ap){if(ap.hasOwnProperty(am)){an=ao[am];if(an===D){return X}if(ap[am]!=an){return X}delete ao[am]}}for(am in ao){if(ao.hasOwnProperty(am)){return X}}return C}if(!al(ai(ak),ai(aj))){return X}if(!al(c.parseStyle(c.getAttrib(ak,"style")),c.parseStyle(c.getAttrib(aj,"style")))){return X}return C}function ag(aj,ai){for(ad=aj;ad;ad=ad[ai]){if(ad.nodeType==3&&ad.nodeValue.length!==0){return aj}if(ad.nodeType==1&&!K(ad)){return ad}}return aj}if(af&&ae){af=ag(af,"previousSibling");ae=ag(ae,"nextSibling");if(ah(af,ae)){for(ad=af.nextSibling;ad&&ad!=ae;){ac=ad;ad=ad.nextSibling;af.appendChild(ac)}c.remove(ae);T(a.grep(ae.childNodes),function(ai){af.appendChild(ai)});return af}}return ae}function I(ab){return/^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(ab)}function M(ac,ag){var ab,af,ad,ae;ab=ac[ag?"startContainer":"endContainer"];af=ac[ag?"startOffset":"endOffset"];if(ab.nodeType==1){ad=ab.childNodes.length-1;if(!ag&&af){af--}ab=ab.childNodes[af>ad?ad:af]}if(ab.nodeType===3&&ag&&af>=ab.nodeValue.length){ab=new t(ab,aa.getBody()).next()||ab}if(ab.nodeType===3&&!ag&&af===0){ab=new t(ab,aa.getBody()).prev()||ab}return ab}function U(ak,ab,ai){var al="_mce_caret",ac=aa.settings.caret_debug;function ad(ap){var ao=c.create("span",{id:al,"data-mce-bogus":true,style:ac?"color:red":""});if(ap){ao.appendChild(aa.getDoc().createTextNode(G))}return ao}function aj(ap,ao){while(ap){if((ap.nodeType===3&&ap.nodeValue!==G)||ap.childNodes.length>1){return false}if(ao&&ap.nodeType===1){ao.push(ap)}ap=ap.firstChild}return true}function ag(ao){while(ao){if(ao.id===al){return ao}ao=ao.parentNode}}function af(ao){var ap;if(ao){ap=new t(ao,ao);for(ao=ap.current();ao;ao=ap.next()){if(ao.nodeType===3){return ao}}}}function ae(aq,ap){var ar,ao;if(!aq){aq=ag(r.getStart());if(!aq){while(aq=c.get(al)){ae(aq,false)}}}else{ao=r.getRng(true);if(aj(aq)){if(ap!==false){ao.setStartBefore(aq);ao.setEndBefore(aq)}c.remove(aq)}else{ar=af(aq);if(ar.nodeValue.charAt(0)===G){ar=ar.deleteData(0,1)}c.remove(aq,1)}r.setRng(ao)}}function ah(){var aq,ao,av,au,ar,ap,at;aq=r.getRng(true);au=aq.startOffset;ap=aq.startContainer;at=ap.nodeValue;ao=ag(r.getStart());if(ao){av=af(ao)}if(at&&au>0&&au<at.length&&/\w/.test(at.charAt(au))&&/\w/.test(at.charAt(au-1))){ar=r.getBookmark();aq.collapse(true);aq=p(aq,V(ab));aq=N.split(aq);Y(ab,ai,aq);r.moveToBookmark(ar)}else{if(!ao||av.nodeValue!==G){ao=ad(true);av=ao.firstChild;aq.insertNode(ao);au=1;Y(ab,ai,ao)}else{Y(ab,ai,ao)}r.setCursorLocation(av,au)}}function am(){var ao=r.getRng(true),ap,ar,av,au,aq,ay,ax=[],at,aw;ap=ao.startContainer;ar=ao.startOffset;aq=ap;if(ap.nodeType==3){if(ar!=ap.nodeValue.length||ap.nodeValue===G){au=true}aq=aq.parentNode}while(aq){if(y(aq,ab,ai)){ay=aq;break}if(aq.nextSibling){au=true}ax.push(aq);aq=aq.parentNode}if(!ay){return}if(au){av=r.getBookmark();ao.collapse(true);ao=p(ao,V(ab),true);ao=N.split(ao);B(ab,ai,ao);r.moveToBookmark(av)}else{aw=ad();aq=aw;for(at=ax.length-1;at>=0;at--){aq.appendChild(c.clone(ax[at],false));aq=aq.firstChild}aq.appendChild(c.doc.createTextNode(G));aq=aq.firstChild;c.insertAfter(aw,ay);r.setCursorLocation(aq,1)}}function an(){var ap,ao,aq;ao=ag(r.getStart());if(ao&&!c.isEmpty(ao)){a.walk(ao,function(ar){if(ar.nodeType==1&&ar.id!==al&&!c.isEmpty(ar)){c.setAttrib(ar,"data-mce-bogus",null)}},"childNodes")}}if(!self._hasCaretEvents){aa.onBeforeGetContent.addToTop(function(){var ao=[],ap;if(aj(ag(r.getStart()),ao)){ap=ao.length;while(ap--){c.setAttrib(ao[ap],"data-mce-bogus","1")}}});a.each("onMouseUp onKeyUp".split(" "),function(ao){aa[ao].addToTop(function(){ae();an()})});aa.onKeyDown.addToTop(function(ao,aq){var ap=aq.keyCode;if(ap==8||ap==37||ap==39){ae(ag(r.getStart()))}an()});r.onSetContent.add(an);self._hasCaretEvents=true}if(ak=="apply"){ah()}else{am()}}function R(ac){var ab=ac.startContainer,ai=ac.startOffset,ae,ah,ag,ad,af;if(ab.nodeType==3&&ai>=ab.nodeValue.length){ai=s(ab);ab=ab.parentNode;ae=true}if(ab.nodeType==1){ad=ab.childNodes;ab=ad[Math.min(ai,ad.length-1)];ah=new t(ab,c.getParent(ab,c.isBlock));if(ai>ad.length-1||ae){ah.next()}for(ag=ah.current();ag;ag=ah.next()){if(ag.nodeType==3&&!f(ag)){af=c.create("a",null,G);ag.parentNode.insertBefore(af,ag);ac.setStart(ag,0);r.setRng(ac);c.remove(af);return}}}}}})(tinymce);tinymce.onAddEditor.add(function(e,a){var d,h,g,c=a.settings;function b(j,i){e.each(i,function(l,k){if(l){g.setStyle(j,k,l)}});g.rename(j,"span")}function f(i,j){g=i.dom;if(c.convert_fonts_to_spans){e.each(g.select("font,u,strike",j.node),function(k){d[k.nodeName.toLowerCase()](a.dom,k)})}}if(c.inline_styles){h=e.explode(c.font_size_legacy_values);d={font:function(j,i){b(i,{backgroundColor:i.style.backgroundColor,color:i.color,fontFamily:i.face,fontSize:h[parseInt(i.size,10)-1]})},u:function(j,i){b(i,{textDecoration:"underline"})},strike:function(j,i){b(i,{textDecoration:"line-through"})}};a.onPreProcess.add(f);a.onSetContent.add(f);a.onInit.add(function(){a.selection.onSetContent.add(f)})}});(function(b){var a=b.dom.TreeWalker;b.EnterKey=function(f){var i=f.dom,e=f.selection,d=f.settings,h=f.undoManager,c=f.schema.getNonEmptyElements();function g(A){var v=e.getRng(true),G,j,z,u,p,M,B,o,k,n,t,J,x,C;function E(N){return N&&i.isBlock(N)&&!/^(TD|TH|CAPTION|FORM)$/.test(N.nodeName)&&!/^(fixed|absolute)/i.test(N.style.position)&&i.getContentEditable(N)!=="true"}function F(O){var N;if(b.isIE&&i.isBlock(O)){N=e.getRng();O.appendChild(i.create("span",null,"\u00a0"));e.select(O);O.lastChild.outerHTML="";e.setRng(N)}}function y(P){var O=P,Q=[],N;while(O=O.firstChild){if(i.isBlock(O)){return}if(O.nodeType==1&&!c[O.nodeName.toLowerCase()]){Q.push(O)}}N=Q.length;while(N--){O=Q[N];if(!O.hasChildNodes()||(O.firstChild==O.lastChild&&O.firstChild.nodeValue==="")){i.remove(O)}else{if(O.nodeName=="A"&&(O.innerText||O.textContent)===" "){i.remove(O)}}}}function m(O){var T,R,N,U,S,Q=O,P;N=i.createRng();if(O.hasChildNodes()){T=new a(O,O);while(R=T.current()){if(R.nodeType==3){N.setStart(R,0);N.setEnd(R,0);break}if(c[R.nodeName.toLowerCase()]){N.setStartBefore(R);N.setEndBefore(R);break}Q=R;R=T.next()}if(!R){N.setStart(Q,0);N.setEnd(Q,0)}}else{if(O.nodeName=="BR"){if(O.nextSibling&&i.isBlock(O.nextSibling)){if(!M||M<9){P=i.create("br");O.parentNode.insertBefore(P,O)}N.setStartBefore(O);N.setEndBefore(O)}else{N.setStartAfter(O);N.setEndAfter(O)}}else{N.setStart(O,0);N.setEnd(O,0)}}e.setRng(N);i.remove(P);S=i.getViewPort(f.getWin());U=i.getPos(O).y;if(U<S.y||U+25>S.y+S.h){f.getWin().scrollTo(0,U<S.y?U:U-S.h+25)}}function r(O){var P=z,R,Q,N;R=O||t=="TABLE"?i.create(O||x):p.cloneNode(false);N=R;if(d.keep_styles!==false){do{if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(P.nodeName)){if(P.id=="_mce_caret"){continue}Q=P.cloneNode(false);i.setAttrib(Q,"id","");if(R.hasChildNodes()){Q.appendChild(R.firstChild);R.appendChild(Q)}else{N=Q;R.appendChild(Q)}}}while(P=P.parentNode)}if(!b.isIE){N.innerHTML='<br data-mce-bogus="1">'}return R}function q(Q){var P,O,N;if(z.nodeType==3&&(Q?u>0:u<z.nodeValue.length)){return false}if(z.parentNode==p&&C&&!Q){return true}if(Q&&z.nodeType==1&&z==p.firstChild){return true}if(z.nodeName==="TABLE"||(z.previousSibling&&z.previousSibling.nodeName=="TABLE")){return(C&&!Q)||(!C&&Q)}P=new a(z,p);if(z.nodeType==3){if(Q&&u==0){P.prev()}else{if(!Q&&u==z.nodeValue.length){P.next()}}}while(O=P.current()){if(O.nodeType===1){if(!O.getAttribute("data-mce-bogus")){N=O.nodeName.toLowerCase();if(c[N]&&N!=="br"){return false}}}else{if(O.nodeType===3&&!/^[ \t\r\n]*$/.test(O.nodeValue)){return false}}if(Q){P.prev()}else{P.next()}}return true}function l(N,T){var U,S,P,R,Q,O=x||"P";S=i.getParent(N,i.isBlock);if(!S||!E(S)){S=S||j;if(!S.hasChildNodes()){U=i.create(O);S.appendChild(U);v.setStart(U,0);v.setEnd(U,0);return U}R=N;while(R.parentNode!=S){R=R.parentNode}while(R&&!i.isBlock(R)){P=R;R=R.previousSibling}if(P){U=i.create(O);P.parentNode.insertBefore(U,P);R=P;while(R&&!i.isBlock(R)){Q=R.nextSibling;U.appendChild(R);R=Q}v.setStart(N,T);v.setEnd(N,T)}}return N}function H(){function N(P){var O=n[P?"firstChild":"lastChild"];while(O){if(O.nodeType==1){break}O=O[P?"nextSibling":"previousSibling"]}return O===p}o=x?r(x):i.create("BR");if(N(true)&&N()){i.replace(o,n)}else{if(N(true)){n.parentNode.insertBefore(o,n)}else{if(N()){i.insertAfter(o,n);F(o)}else{G=v.cloneRange();G.setStartAfter(p);G.setEndAfter(n);k=G.extractContents();i.insertAfter(k,n);i.insertAfter(o,n)}}}i.remove(p);m(o);h.add()}function D(){var O=new a(z,p),N;while(N=O.current()){if(N.nodeName=="BR"){return true}N=O.next()}}function L(){var O,N;if(z&&z.nodeType==3&&u>=z.nodeValue.length){if(!b.isIE&&!D()){O=i.create("br");v.insertNode(O);v.setStartAfter(O);v.setEndAfter(O);N=true}}O=i.create("br");v.insertNode(O);if(b.isIE&&t=="PRE"&&(!M||M<8)){O.parentNode.insertBefore(i.doc.createTextNode("\r"),O)}if(!N){v.setStartAfter(O);v.setEndAfter(O)}else{v.setStartBefore(O);v.setEndBefore(O)}e.setRng(v);h.add()}function s(N){do{if(N.nodeType===3){N.nodeValue=N.nodeValue.replace(/^[\r\n]+/,"")}N=N.firstChild}while(N)}function K(P){var N=i.getRoot(),O,Q;O=P;while(O!==N&&i.getContentEditable(O)!=="false"){if(i.getContentEditable(O)==="true"){Q=O}O=O.parentNode}return O!==N?Q:N}function I(O){var N;if(!b.isIE){O.normalize();N=O.lastChild;if(!N||(/^(left|right)$/gi.test(i.getStyle(N,"float",true)))){i.add(O,"br")}}}if(!v.collapsed){f.execCommand("Delete");return}if(A.isDefaultPrevented()){return}z=v.startContainer;u=v.startOffset;x=(d.force_p_newlines?"p":"")||d.forced_root_block;x=x?x.toUpperCase():"";M=i.doc.documentMode;B=A.shiftKey;if(z.nodeType==1&&z.hasChildNodes()){C=u>z.childNodes.length-1;z=z.childNodes[Math.min(u,z.childNodes.length-1)]||z;if(C&&z.nodeType==3){u=z.nodeValue.length}else{u=0}}j=K(z);if(!j){return}h.beforeChange();if(!i.isBlock(j)&&j!=i.getRoot()){if(!x||B){L()}return}if((x&&!B)||(!x&&B)){z=l(z,u)}p=i.getParent(z,i.isBlock);n=p?i.getParent(p.parentNode,i.isBlock):null;t=p?p.nodeName.toUpperCase():"";J=n?n.nodeName.toUpperCase():"";if(J=="LI"&&!A.ctrlKey){p=n;t=J}if(t=="LI"){if(!x&&B){L();return}if(i.isEmpty(p)){if(/^(UL|OL|LI)$/.test(n.parentNode.nodeName)){return false}H();return}}if(t=="PRE"&&d.br_in_pre!==false){if(!B){L();return}}else{if((!x&&!B&&t!="LI")||(x&&B)){L();return}}x=x||"P";if(q()){if(/^(H[1-6]|PRE)$/.test(t)&&J!="HGROUP"){o=r(x)}else{o=r()}if(d.end_container_on_empty_block&&E(n)&&i.isEmpty(p)){o=i.split(n,p)}else{i.insertAfter(o,p)}m(o)}else{if(q(true)){o=p.parentNode.insertBefore(r(),p);F(o)}else{G=v.cloneRange();G.setEndAfter(p);k=G.extractContents();s(k);o=k.firstChild;i.insertAfter(k,p);y(o);I(p);m(o)}}i.setAttrib(o,"id","");h.add()}f.onKeyDown.add(function(k,j){if(j.keyCode==13){if(g(j)!==false){j.preventDefault()}}})}})(tinymce); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_popup.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_popup.js
new file mode 100755
index 00000000..bb8e58c8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_popup.js
@@ -0,0 +1,5 @@
+
+// Uncomment and change this document.domain value if you are loading the script cross subdomains
+// document.domain = 'moxiecode.com';
+
+var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document,{ownEvents:true,proxy:tinyMCEPopup._eventProxy});b.dom.bind(window,"ready",b._onDOMLoaded,b);if(b.features.popup_css!==false){b.dom.loadCSS(b.features.popup_css||b.editor.settings.popup_css)}b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg("mce_inline");b.id=b.getWindowArg("mce_window_id");b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg("mce_width")-b.w,a.getWindowArg("mce_height")-b.h,a.id||window)},10)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&&tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg("plugin_url")||b.getWindowArg("theme_url");if(a&&b.editor.settings.language&&b.features.translate_i18n!==false&&b.editor.settings.language_load!==false){a+="/langs/"+b.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(a)){document.write('<script type="text/javascript" src="'+tinymce._addVer(a)+'"><\/script>');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand("mceColorPicker",true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback("file_browser_callback",a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName=="INPUT"&&(a.type=="submit"||a.type=="button")){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')}document.dir=b.editor.getParam("directionality","");if((a=b.editor.translate(c))&&a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&&a!=d){document.title=d=a}}if(!b.editor.getParam("browser_preferred_colors",false)||!b.isWindow){b.dom.addClass(document.body,"forceColors")}document.body.style.display="";if(tinymce.isIE){document.attachEvent("onmouseup",tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select("head")[0],"base",{target:"_self"})}b.restoreSelection();b.resizeToInnerSize();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&&!b.isWindow){b.dom.bind(document,"focus",function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select("select"),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg("mce_auto_focus",true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,"mceFocus")&&!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){var b=a.target||a.srcElement;if(b.onchange){b.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_eventProxy:function(a){return function(b){tinyMCEPopup.dom.events.callNativeHandler(a,b)}}};tinyMCEPopup.init(); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_src.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_src.js
new file mode 100755
index 00000000..fab0d301
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/tiny_mce_src.js
@@ -0,0 +1,18988 @@
+// FILE IS GENERATED BY COMBINING THE SOURCES IN THE "classes" DIRECTORY SO DON'T MODIFY THIS FILE DIRECTLY
+(function(win) {
+ var whiteSpaceRe = /^\s*|\s*$/g,
+ undef, isRegExpBroken = 'B'.replace(/A(.)|B/, '$1') === '$1';
+
+ var tinymce = {
+ majorVersion : '3',
+
+ minorVersion : '5.7',
+
+ releaseDate : '2012-09-20',
+
+ _init : function() {
+ var t = this, d = document, na = navigator, ua = na.userAgent, i, nl, n, base, p, v;
+
+ t.isOpera = win.opera && opera.buildNumber;
+
+ t.isWebKit = /WebKit/.test(ua);
+
+ t.isIE = !t.isWebKit && !t.isOpera && (/MSIE/gi).test(ua) && (/Explorer/gi).test(na.appName);
+
+ t.isIE6 = t.isIE && /MSIE [56]/.test(ua);
+
+ t.isIE7 = t.isIE && /MSIE [7]/.test(ua);
+
+ t.isIE8 = t.isIE && /MSIE [8]/.test(ua);
+
+ t.isIE9 = t.isIE && /MSIE [9]/.test(ua);
+
+ t.isGecko = !t.isWebKit && /Gecko/.test(ua);
+
+ t.isMac = ua.indexOf('Mac') != -1;
+
+ t.isAir = /adobeair/i.test(ua);
+
+ t.isIDevice = /(iPad|iPhone)/.test(ua);
+
+ t.isIOS5 = t.isIDevice && ua.match(/AppleWebKit\/(\d*)/)[1]>=534;
+
+ // TinyMCE .NET webcontrol might be setting the values for TinyMCE
+ if (win.tinyMCEPreInit) {
+ t.suffix = tinyMCEPreInit.suffix;
+ t.baseURL = tinyMCEPreInit.base;
+ t.query = tinyMCEPreInit.query;
+ return;
+ }
+
+ // Get suffix and base
+ t.suffix = '';
+
+ // If base element found, add that infront of baseURL
+ nl = d.getElementsByTagName('base');
+ for (i=0; i<nl.length; i++) {
+ v = nl[i].href;
+ if (v) {
+ // Host only value like http://site.com or http://site.com:8008
+ if (/^https?:\/\/[^\/]+$/.test(v))
+ v += '/';
+
+ base = v ? v.match(/.*\//)[0] : ''; // Get only directory
+ }
+ }
+
+ function getBase(n) {
+ if (n.src && /tiny_mce(|_gzip|_jquery|_prototype|_full)(_dev|_src)?.js/.test(n.src)) {
+ if (/_(src|dev)\.js/g.test(n.src))
+ t.suffix = '_src';
+
+ if ((p = n.src.indexOf('?')) != -1)
+ t.query = n.src.substring(p + 1);
+
+ t.baseURL = n.src.substring(0, n.src.lastIndexOf('/'));
+
+ // If path to script is relative and a base href was found add that one infront
+ // the src property will always be an absolute one on non IE browsers and IE 8
+ // so this logic will basically only be executed on older IE versions
+ if (base && t.baseURL.indexOf('://') == -1 && t.baseURL.indexOf('/') !== 0)
+ t.baseURL = base + t.baseURL;
+
+ return t.baseURL;
+ }
+
+ return null;
+ };
+
+ // Check document
+ nl = d.getElementsByTagName('script');
+ for (i=0; i<nl.length; i++) {
+ if (getBase(nl[i]))
+ return;
+ }
+
+ // Check head
+ n = d.getElementsByTagName('head')[0];
+ if (n) {
+ nl = n.getElementsByTagName('script');
+ for (i=0; i<nl.length; i++) {
+ if (getBase(nl[i]))
+ return;
+ }
+ }
+
+ return;
+ },
+
+ is : function(o, t) {
+ if (!t)
+ return o !== undef;
+
+ if (t == 'array' && tinymce.isArray(o))
+ return true;
+
+ return typeof(o) == t;
+ },
+
+ isArray: Array.isArray || function(obj) {
+ return Object.prototype.toString.call(obj) === "[object Array]";
+ },
+
+ makeMap : function(items, delim, map) {
+ var i;
+
+ items = items || [];
+ delim = delim || ',';
+
+ if (typeof(items) == "string")
+ items = items.split(delim);
+
+ map = map || {};
+
+ i = items.length;
+ while (i--)
+ map[items[i]] = {};
+
+ return map;
+ },
+
+ each : function(o, cb, s) {
+ var n, l;
+
+ if (!o)
+ return 0;
+
+ s = s || o;
+
+ if (o.length !== undef) {
+ // Indexed arrays, needed for Safari
+ for (n=0, l = o.length; n < l; n++) {
+ if (cb.call(s, o[n], n, o) === false)
+ return 0;
+ }
+ } else {
+ // Hashtables
+ for (n in o) {
+ if (o.hasOwnProperty(n)) {
+ if (cb.call(s, o[n], n, o) === false)
+ return 0;
+ }
+ }
+ }
+
+ return 1;
+ },
+
+
+ map : function(a, f) {
+ var o = [];
+
+ tinymce.each(a, function(v) {
+ o.push(f(v));
+ });
+
+ return o;
+ },
+
+ grep : function(a, f) {
+ var o = [];
+
+ tinymce.each(a, function(v) {
+ if (!f || f(v))
+ o.push(v);
+ });
+
+ return o;
+ },
+
+ inArray : function(a, v) {
+ var i, l;
+
+ if (a) {
+ for (i = 0, l = a.length; i < l; i++) {
+ if (a[i] === v)
+ return i;
+ }
+ }
+
+ return -1;
+ },
+
+ extend : function(obj, ext) {
+ var i, l, name, args = arguments, value;
+
+ for (i = 1, l = args.length; i < l; i++) {
+ ext = args[i];
+ for (name in ext) {
+ if (ext.hasOwnProperty(name)) {
+ value = ext[name];
+
+ if (value !== undef) {
+ obj[name] = value;
+ }
+ }
+ }
+ }
+
+ return obj;
+ },
+
+
+ trim : function(s) {
+ return (s ? '' + s : '').replace(whiteSpaceRe, '');
+ },
+
+ create : function(s, p, root) {
+ var t = this, sp, ns, cn, scn, c, de = 0;
+
+ // Parse : <prefix> <class>:<super class>
+ s = /^((static) )?([\w.]+)(:([\w.]+))?/.exec(s);
+ cn = s[3].match(/(^|\.)(\w+)$/i)[2]; // Class name
+
+ // Create namespace for new class
+ ns = t.createNS(s[3].replace(/\.\w+$/, ''), root);
+
+ // Class already exists
+ if (ns[cn])
+ return;
+
+ // Make pure static class
+ if (s[2] == 'static') {
+ ns[cn] = p;
+
+ if (this.onCreate)
+ this.onCreate(s[2], s[3], ns[cn]);
+
+ return;
+ }
+
+ // Create default constructor
+ if (!p[cn]) {
+ p[cn] = function() {};
+ de = 1;
+ }
+
+ // Add constructor and methods
+ ns[cn] = p[cn];
+ t.extend(ns[cn].prototype, p);
+
+ // Extend
+ if (s[5]) {
+ sp = t.resolve(s[5]).prototype;
+ scn = s[5].match(/\.(\w+)$/i)[1]; // Class name
+
+ // Extend constructor
+ c = ns[cn];
+ if (de) {
+ // Add passthrough constructor
+ ns[cn] = function() {
+ return sp[scn].apply(this, arguments);
+ };
+ } else {
+ // Add inherit constructor
+ ns[cn] = function() {
+ this.parent = sp[scn];
+ return c.apply(this, arguments);
+ };
+ }
+ ns[cn].prototype[cn] = ns[cn];
+
+ // Add super methods
+ t.each(sp, function(f, n) {
+ ns[cn].prototype[n] = sp[n];
+ });
+
+ // Add overridden methods
+ t.each(p, function(f, n) {
+ // Extend methods if needed
+ if (sp[n]) {
+ ns[cn].prototype[n] = function() {
+ this.parent = sp[n];
+ return f.apply(this, arguments);
+ };
+ } else {
+ if (n != cn)
+ ns[cn].prototype[n] = f;
+ }
+ });
+ }
+
+ // Add static methods
+ t.each(p['static'], function(f, n) {
+ ns[cn][n] = f;
+ });
+
+ if (this.onCreate)
+ this.onCreate(s[2], s[3], ns[cn].prototype);
+ },
+
+ walk : function(o, f, n, s) {
+ s = s || this;
+
+ if (o) {
+ if (n)
+ o = o[n];
+
+ tinymce.each(o, function(o, i) {
+ if (f.call(s, o, i, n) === false)
+ return false;
+
+ tinymce.walk(o, f, n, s);
+ });
+ }
+ },
+
+ createNS : function(n, o) {
+ var i, v;
+
+ o = o || win;
+
+ n = n.split('.');
+ for (i=0; i<n.length; i++) {
+ v = n[i];
+
+ if (!o[v])
+ o[v] = {};
+
+ o = o[v];
+ }
+
+ return o;
+ },
+
+ resolve : function(n, o) {
+ var i, l;
+
+ o = o || win;
+
+ n = n.split('.');
+ for (i = 0, l = n.length; i < l; i++) {
+ o = o[n[i]];
+
+ if (!o)
+ break;
+ }
+
+ return o;
+ },
+
+ addUnload : function(f, s) {
+ var t = this, unload;
+
+ unload = function() {
+ var li = t.unloads, o, n;
+
+ if (li) {
+ // Call unload handlers
+ for (n in li) {
+ o = li[n];
+
+ if (o && o.func)
+ o.func.call(o.scope, 1); // Send in one arg to distinct unload and user destroy
+ }
+
+ // Detach unload function
+ if (win.detachEvent) {
+ win.detachEvent('onbeforeunload', fakeUnload);
+ win.detachEvent('onunload', unload);
+ } else if (win.removeEventListener)
+ win.removeEventListener('unload', unload, false);
+
+ // Destroy references
+ t.unloads = o = li = w = unload = 0;
+
+ // Run garbarge collector on IE
+ if (win.CollectGarbage)
+ CollectGarbage();
+ }
+ };
+
+ function fakeUnload() {
+ var d = document;
+
+ function stop() {
+ // Prevent memory leak
+ d.detachEvent('onstop', stop);
+
+ // Call unload handler
+ if (unload)
+ unload();
+
+ d = 0;
+ };
+
+ // Is there things still loading, then do some magic
+ if (d.readyState == 'interactive') {
+ // Fire unload when the currently loading page is stopped
+ if (d)
+ d.attachEvent('onstop', stop);
+
+ // Remove onstop listener after a while to prevent the unload function
+ // to execute if the user presses cancel in an onbeforeunload
+ // confirm dialog and then presses the browser stop button
+ win.setTimeout(function() {
+ if (d)
+ d.detachEvent('onstop', stop);
+ }, 0);
+ }
+ };
+
+ f = {func : f, scope : s || this};
+
+ if (!t.unloads) {
+ // Attach unload handler
+ if (win.attachEvent) {
+ win.attachEvent('onunload', unload);
+ win.attachEvent('onbeforeunload', fakeUnload);
+ } else if (win.addEventListener)
+ win.addEventListener('unload', unload, false);
+
+ // Setup initial unload handler array
+ t.unloads = [f];
+ } else
+ t.unloads.push(f);
+
+ return f;
+ },
+
+ removeUnload : function(f) {
+ var u = this.unloads, r = null;
+
+ tinymce.each(u, function(o, i) {
+ if (o && o.func == f) {
+ u.splice(i, 1);
+ r = f;
+ return false;
+ }
+ });
+
+ return r;
+ },
+
+ explode : function(s, d) {
+ if (!s || tinymce.is(s, 'array')) {
+ return s;
+ }
+
+ return tinymce.map(s.split(d || ','), tinymce.trim);
+ },
+
+ _addVer : function(u) {
+ var v;
+
+ if (!this.query)
+ return u;
+
+ v = (u.indexOf('?') == -1 ? '?' : '&') + this.query;
+
+ if (u.indexOf('#') == -1)
+ return u + v;
+
+ return u.replace('#', v + '#');
+ },
+
+ // Fix function for IE 9 where regexps isn't working correctly
+ // Todo: remove me once MS fixes the bug
+ _replace : function(find, replace, str) {
+ // On IE9 we have to fake $x replacement
+ if (isRegExpBroken) {
+ return str.replace(find, function() {
+ var val = replace, args = arguments, i;
+
+ for (i = 0; i < args.length - 2; i++) {
+ if (args[i] === undef) {
+ val = val.replace(new RegExp('\\$' + i, 'g'), '');
+ } else {
+ val = val.replace(new RegExp('\\$' + i, 'g'), args[i]);
+ }
+ }
+
+ return val;
+ });
+ }
+
+ return str.replace(find, replace);
+ }
+
+ };
+
+ // Initialize the API
+ tinymce._init();
+
+ // Expose tinymce namespace to the global namespace (window)
+ win.tinymce = win.tinyMCE = tinymce;
+
+ // Describe the different namespaces
+
+ })(window);
+
+
+
+tinymce.create('tinymce.util.Dispatcher', {
+ scope : null,
+ listeners : null,
+ inDispatch: false,
+
+ Dispatcher : function(scope) {
+ this.scope = scope || this;
+ this.listeners = [];
+ },
+
+ add : function(callback, scope) {
+ this.listeners.push({cb : callback, scope : scope || this.scope});
+
+ return callback;
+ },
+
+ addToTop : function(callback, scope) {
+ var self = this, listener = {cb : callback, scope : scope || self.scope};
+
+ // Create new listeners if addToTop is executed in a dispatch loop
+ if (self.inDispatch) {
+ self.listeners = [listener].concat(self.listeners);
+ } else {
+ self.listeners.unshift(listener);
+ }
+
+ return callback;
+ },
+
+ remove : function(callback) {
+ var listeners = this.listeners, output = null;
+
+ tinymce.each(listeners, function(listener, i) {
+ if (callback == listener.cb) {
+ output = listener;
+ listeners.splice(i, 1);
+ return false;
+ }
+ });
+
+ return output;
+ },
+
+ dispatch : function() {
+ var self = this, returnValue, args = arguments, i, listeners = self.listeners, listener;
+
+ self.inDispatch = true;
+
+ // Needs to be a real loop since the listener count might change while looping
+ // And this is also more efficient
+ for (i = 0; i < listeners.length; i++) {
+ listener = listeners[i];
+ returnValue = listener.cb.apply(listener.scope, args.length > 0 ? args : [listener.scope]);
+
+ if (returnValue === false)
+ break;
+ }
+
+ self.inDispatch = false;
+
+ return returnValue;
+ }
+
+ });
+
+(function() {
+ var each = tinymce.each;
+
+ tinymce.create('tinymce.util.URI', {
+ URI : function(u, s) {
+ var t = this, o, a, b, base_url;
+
+ // Trim whitespace
+ u = tinymce.trim(u);
+
+ // Default settings
+ s = t.settings = s || {};
+
+ // Strange app protocol that isn't http/https or local anchor
+ // For example: mailto,skype,tel etc.
+ if (/^([\w\-]+):([^\/]{2})/i.test(u) || /^\s*#/.test(u)) {
+ t.source = u;
+ return;
+ }
+
+ // Absolute path with no host, fake host and protocol
+ if (u.indexOf('/') === 0 && u.indexOf('//') !== 0)
+ u = (s.base_uri ? s.base_uri.protocol || 'http' : 'http') + '://mce_host' + u;
+
+ // Relative path http:// or protocol relative //path
+ if (!/^[\w\-]*:?\/\//.test(u)) {
+ base_url = s.base_uri ? s.base_uri.path : new tinymce.util.URI(location.href).directory;
+ u = ((s.base_uri && s.base_uri.protocol) || 'http') + '://mce_host' + t.toAbsPath(base_url, u);
+ }
+
+ // Parse URL (Credits goes to Steave, http://blog.stevenlevithan.com/archives/parseuri)
+ u = u.replace(/@@/g, '(mce_at)'); // Zope 3 workaround, they use @@something
+ u = /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(u);
+ each(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], function(v, i) {
+ var s = u[i];
+
+ // Zope 3 workaround, they use @@something
+ if (s)
+ s = s.replace(/\(mce_at\)/g, '@@');
+
+ t[v] = s;
+ });
+
+ b = s.base_uri;
+ if (b) {
+ if (!t.protocol)
+ t.protocol = b.protocol;
+
+ if (!t.userInfo)
+ t.userInfo = b.userInfo;
+
+ if (!t.port && t.host === 'mce_host')
+ t.port = b.port;
+
+ if (!t.host || t.host === 'mce_host')
+ t.host = b.host;
+
+ t.source = '';
+ }
+
+ //t.path = t.path || '/';
+ },
+
+ setPath : function(p) {
+ var t = this;
+
+ p = /^(.*?)\/?(\w+)?$/.exec(p);
+
+ // Update path parts
+ t.path = p[0];
+ t.directory = p[1];
+ t.file = p[2];
+
+ // Rebuild source
+ t.source = '';
+ t.getURI();
+ },
+
+ toRelative : function(u) {
+ var t = this, o;
+
+ if (u === "./")
+ return u;
+
+ u = new tinymce.util.URI(u, {base_uri : t});
+
+ // Not on same domain/port or protocol
+ if ((u.host != 'mce_host' && t.host != u.host && u.host) || t.port != u.port || t.protocol != u.protocol)
+ return u.getURI();
+
+ var tu = t.getURI(), uu = u.getURI();
+
+ // Allow usage of the base_uri when relative_urls = true
+ if(tu == uu || (tu.charAt(tu.length - 1) == "/" && tu.substr(0, tu.length - 1) == uu))
+ return tu;
+
+ o = t.toRelPath(t.path, u.path);
+
+ // Add query
+ if (u.query)
+ o += '?' + u.query;
+
+ // Add anchor
+ if (u.anchor)
+ o += '#' + u.anchor;
+
+ return o;
+ },
+
+ toAbsolute : function(u, nh) {
+ u = new tinymce.util.URI(u, {base_uri : this});
+
+ return u.getURI(this.host == u.host && this.protocol == u.protocol ? nh : 0);
+ },
+
+ toRelPath : function(base, path) {
+ var items, bp = 0, out = '', i, l;
+
+ // Split the paths
+ base = base.substring(0, base.lastIndexOf('/'));
+ base = base.split('/');
+ items = path.split('/');
+
+ if (base.length >= items.length) {
+ for (i = 0, l = base.length; i < l; i++) {
+ if (i >= items.length || base[i] != items[i]) {
+ bp = i + 1;
+ break;
+ }
+ }
+ }
+
+ if (base.length < items.length) {
+ for (i = 0, l = items.length; i < l; i++) {
+ if (i >= base.length || base[i] != items[i]) {
+ bp = i + 1;
+ break;
+ }
+ }
+ }
+
+ if (bp === 1)
+ return path;
+
+ for (i = 0, l = base.length - (bp - 1); i < l; i++)
+ out += "../";
+
+ for (i = bp - 1, l = items.length; i < l; i++) {
+ if (i != bp - 1)
+ out += "/" + items[i];
+ else
+ out += items[i];
+ }
+
+ return out;
+ },
+
+ toAbsPath : function(base, path) {
+ var i, nb = 0, o = [], tr, outPath;
+
+ // Split paths
+ tr = /\/$/.test(path) ? '/' : '';
+ base = base.split('/');
+ path = path.split('/');
+
+ // Remove empty chunks
+ each(base, function(k) {
+ if (k)
+ o.push(k);
+ });
+
+ base = o;
+
+ // Merge relURLParts chunks
+ for (i = path.length - 1, o = []; i >= 0; i--) {
+ // Ignore empty or .
+ if (path[i].length === 0 || path[i] === ".")
+ continue;
+
+ // Is parent
+ if (path[i] === '..') {
+ nb++;
+ continue;
+ }
+
+ // Move up
+ if (nb > 0) {
+ nb--;
+ continue;
+ }
+
+ o.push(path[i]);
+ }
+
+ i = base.length - nb;
+
+ // If /a/b/c or /
+ if (i <= 0)
+ outPath = o.reverse().join('/');
+ else
+ outPath = base.slice(0, i).join('/') + '/' + o.reverse().join('/');
+
+ // Add front / if it's needed
+ if (outPath.indexOf('/') !== 0)
+ outPath = '/' + outPath;
+
+ // Add traling / if it's needed
+ if (tr && outPath.lastIndexOf('/') !== outPath.length - 1)
+ outPath += tr;
+
+ return outPath;
+ },
+
+ getURI : function(nh) {
+ var s, t = this;
+
+ // Rebuild source
+ if (!t.source || nh) {
+ s = '';
+
+ if (!nh) {
+ if (t.protocol)
+ s += t.protocol + '://';
+
+ if (t.userInfo)
+ s += t.userInfo + '@';
+
+ if (t.host)
+ s += t.host;
+
+ if (t.port)
+ s += ':' + t.port;
+ }
+
+ if (t.path)
+ s += t.path;
+
+ if (t.query)
+ s += '?' + t.query;
+
+ if (t.anchor)
+ s += '#' + t.anchor;
+
+ t.source = s;
+ }
+
+ return t.source;
+ }
+ });
+})();
+
+(function() {
+ var each = tinymce.each;
+
+ tinymce.create('static tinymce.util.Cookie', {
+ getHash : function(n) {
+ var v = this.get(n), h;
+
+ if (v) {
+ each(v.split('&'), function(v) {
+ v = v.split('=');
+ h = h || {};
+ h[unescape(v[0])] = unescape(v[1]);
+ });
+ }
+
+ return h;
+ },
+
+ setHash : function(n, v, e, p, d, s) {
+ var o = '';
+
+ each(v, function(v, k) {
+ o += (!o ? '' : '&') + escape(k) + '=' + escape(v);
+ });
+
+ this.set(n, o, e, p, d, s);
+ },
+
+ get : function(n) {
+ var c = document.cookie, e, p = n + "=", b;
+
+ // Strict mode
+ if (!c)
+ return;
+
+ b = c.indexOf("; " + p);
+
+ if (b == -1) {
+ b = c.indexOf(p);
+
+ if (b !== 0)
+ return null;
+ } else
+ b += 2;
+
+ e = c.indexOf(";", b);
+
+ if (e == -1)
+ e = c.length;
+
+ return unescape(c.substring(b + p.length, e));
+ },
+
+ set : function(n, v, e, p, d, s) {
+ document.cookie = n + "=" + escape(v) +
+ ((e) ? "; expires=" + e.toGMTString() : "") +
+ ((p) ? "; path=" + escape(p) : "") +
+ ((d) ? "; domain=" + d : "") +
+ ((s) ? "; secure" : "");
+ },
+
+ remove : function(name, path, domain) {
+ var date = new Date();
+
+ date.setTime(date.getTime() - 1000);
+
+ this.set(name, '', date, path, domain);
+ }
+ });
+})();
+
+(function() {
+ function serialize(o, quote) {
+ var i, v, t, name;
+
+ quote = quote || '"';
+
+ if (o == null)
+ return 'null';
+
+ t = typeof o;
+
+ if (t == 'string') {
+ v = '\bb\tt\nn\ff\rr\""\'\'\\\\';
+
+ return quote + o.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g, function(a, b) {
+ // Make sure single quotes never get encoded inside double quotes for JSON compatibility
+ if (quote === '"' && a === "'")
+ return a;
+
+ i = v.indexOf(b);
+
+ if (i + 1)
+ return '\\' + v.charAt(i + 1);
+
+ a = b.charCodeAt().toString(16);
+
+ return '\\u' + '0000'.substring(a.length) + a;
+ }) + quote;
+ }
+
+ if (t == 'object') {
+ if (o.hasOwnProperty && Object.prototype.toString.call(o) === '[object Array]') {
+ for (i=0, v = '['; i<o.length; i++)
+ v += (i > 0 ? ',' : '') + serialize(o[i], quote);
+
+ return v + ']';
+ }
+
+ v = '{';
+
+ for (name in o) {
+ if (o.hasOwnProperty(name)) {
+ v += typeof o[name] != 'function' ? (v.length > 1 ? ',' + quote : quote) + name + quote +':' + serialize(o[name], quote) : '';
+ }
+ }
+
+ return v + '}';
+ }
+
+ return '' + o;
+ };
+
+ tinymce.util.JSON = {
+ serialize: serialize,
+
+ parse: function(s) {
+ try {
+ return eval('(' + s + ')');
+ } catch (ex) {
+ // Ignore
+ }
+ }
+
+ };
+})();
+
+tinymce.create('static tinymce.util.XHR', {
+ send : function(o) {
+ var x, t, w = window, c = 0;
+
+ function ready() {
+ if (!o.async || x.readyState == 4 || c++ > 10000) {
+ if (o.success && c < 10000 && x.status == 200)
+ o.success.call(o.success_scope, '' + x.responseText, x, o);
+ else if (o.error)
+ o.error.call(o.error_scope, c > 10000 ? 'TIMED_OUT' : 'GENERAL', x, o);
+
+ x = null;
+ } else
+ w.setTimeout(ready, 10);
+ };
+
+ // Default settings
+ o.scope = o.scope || this;
+ o.success_scope = o.success_scope || o.scope;
+ o.error_scope = o.error_scope || o.scope;
+ o.async = o.async === false ? false : true;
+ o.data = o.data || '';
+
+ function get(s) {
+ x = 0;
+
+ try {
+ x = new ActiveXObject(s);
+ } catch (ex) {
+ }
+
+ return x;
+ };
+
+ x = w.XMLHttpRequest ? new XMLHttpRequest() : get('Microsoft.XMLHTTP') || get('Msxml2.XMLHTTP');
+
+ if (x) {
+ if (x.overrideMimeType)
+ x.overrideMimeType(o.content_type);
+
+ x.open(o.type || (o.data ? 'POST' : 'GET'), o.url, o.async);
+
+ if (o.content_type)
+ x.setRequestHeader('Content-Type', o.content_type);
+
+ x.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
+
+ x.send(o.data);
+
+ // Syncronous request
+ if (!o.async)
+ return ready();
+
+ // Wait for response, onReadyStateChange can not be used since it leaks memory in IE
+ t = w.setTimeout(ready, 10);
+ }
+ }
+});
+
+(function() {
+ var extend = tinymce.extend, JSON = tinymce.util.JSON, XHR = tinymce.util.XHR;
+
+ tinymce.create('tinymce.util.JSONRequest', {
+ JSONRequest : function(s) {
+ this.settings = extend({
+ }, s);
+ this.count = 0;
+ },
+
+ send : function(o) {
+ var ecb = o.error, scb = o.success;
+
+ o = extend(this.settings, o);
+
+ o.success = function(c, x) {
+ c = JSON.parse(c);
+
+ if (typeof(c) == 'undefined') {
+ c = {
+ error : 'JSON Parse error.'
+ };
+ }
+
+ if (c.error)
+ ecb.call(o.error_scope || o.scope, c.error, x);
+ else
+ scb.call(o.success_scope || o.scope, c.result);
+ };
+
+ o.error = function(ty, x) {
+ if (ecb)
+ ecb.call(o.error_scope || o.scope, ty, x);
+ };
+
+ o.data = JSON.serialize({
+ id : o.id || 'c' + (this.count++),
+ method : o.method,
+ params : o.params
+ });
+
+ // JSON content type for Ruby on rails. Bug: #1883287
+ o.content_type = 'application/json';
+
+ XHR.send(o);
+ },
+
+ 'static' : {
+ sendRPC : function(o) {
+ return new tinymce.util.JSONRequest().send(o);
+ }
+ }
+ });
+}());
+(function(tinymce){
+ tinymce.VK = {
+ BACKSPACE: 8,
+ DELETE: 46,
+ DOWN: 40,
+ ENTER: 13,
+ LEFT: 37,
+ RIGHT: 39,
+ SPACEBAR: 32,
+ TAB: 9,
+ UP: 38,
+
+ modifierPressed: function (e) {
+ return e.shiftKey || e.ctrlKey || e.altKey;
+ },
+
+ metaKeyPressed: function(e) {
+ // Check if ctrl or meta key is pressed also check if alt is false for Polish users
+ return tinymce.isMac ? e.metaKey : e.ctrlKey && !e.altKey;
+ }
+ };
+})(tinymce);
+
+tinymce.util.Quirks = function(editor) {
+ var VK = tinymce.VK, BACKSPACE = VK.BACKSPACE, DELETE = VK.DELETE, dom = editor.dom, selection = editor.selection,
+ settings = editor.settings, parser = editor.parser, serializer = editor.serializer;
+
+ function setEditorCommandState(cmd, state) {
+ try {
+ editor.getDoc().execCommand(cmd, false, state);
+ } catch (ex) {
+ // Ignore
+ }
+ }
+
+ function getDocumentMode() {
+ var documentMode = editor.getDoc().documentMode;
+
+ return documentMode ? documentMode : 6;
+ };
+
+ function isDefaultPrevented(e) {
+ return e.isDefaultPrevented();
+ };
+
+ function cleanupStylesWhenDeleting() {
+ function removeMergedFormatSpans(isDelete) {
+ var rng, blockElm, node, clonedSpan;
+
+ rng = selection.getRng();
+
+ // Find root block
+ blockElm = dom.getParent(rng.startContainer, dom.isBlock);
+
+ // On delete clone the root span of the next block element
+ if (isDelete)
+ blockElm = dom.getNext(blockElm, dom.isBlock);
+
+ // Locate root span element and clone it since it would otherwise get merged by the "apple-style-span" on delete/backspace
+ if (blockElm) {
+ node = blockElm.firstChild;
+
+ // Ignore empty text nodes
+ while (node && node.nodeType == 3 && node.nodeValue.length === 0)
+ node = node.nextSibling;
+
+ if (node && node.nodeName === 'SPAN') {
+ clonedSpan = node.cloneNode(false);
+ }
+ }
+
+ // Do the backspace/delete action
+ editor.getDoc().execCommand(isDelete ? 'ForwardDelete' : 'Delete', false, null);
+
+ // Find all odd apple-style-spans
+ blockElm = dom.getParent(rng.startContainer, dom.isBlock);
+ tinymce.each(dom.select('span.Apple-style-span,font.Apple-style-span', blockElm), function(span) {
+ var bm = selection.getBookmark();
+
+ if (clonedSpan) {
+ dom.replace(clonedSpan.cloneNode(false), span, true);
+ } else {
+ dom.remove(span, true);
+ }
+
+ // Restore the selection
+ selection.moveToBookmark(bm);
+ });
+ };
+
+ editor.onKeyDown.add(function(editor, e) {
+ var isDelete;
+
+ isDelete = e.keyCode == DELETE;
+ if (!isDefaultPrevented(e) && (isDelete || e.keyCode == BACKSPACE) && !VK.modifierPressed(e)) {
+ e.preventDefault();
+ removeMergedFormatSpans(isDelete);
+ }
+ });
+
+ editor.addCommand('Delete', function() {removeMergedFormatSpans();});
+ };
+
+ function emptyEditorWhenDeleting() {
+ function serializeRng(rng) {
+ var body = dom.create("body");
+ var contents = rng.cloneContents();
+ body.appendChild(contents);
+ return selection.serializer.serialize(body, {format: 'html'});
+ }
+
+ function allContentsSelected(rng) {
+ var selection = serializeRng(rng);
+
+ var allRng = dom.createRng();
+ allRng.selectNode(editor.getBody());
+
+ var allSelection = serializeRng(allRng);
+ return selection === allSelection;
+ }
+
+ editor.onKeyDown.add(function(editor, e) {
+ var keyCode = e.keyCode, isCollapsed;
+
+ // Empty the editor if it's needed for example backspace at <p><b>|</b></p>
+ if (!isDefaultPrevented(e) && (keyCode == DELETE || keyCode == BACKSPACE)) {
+ isCollapsed = editor.selection.isCollapsed();
+
+ // Selection is collapsed but the editor isn't empty
+ if (isCollapsed && !dom.isEmpty(editor.getBody())) {
+ return;
+ }
+
+ // IE deletes all contents correctly when everything is selected
+ if (tinymce.isIE && !isCollapsed) {
+ return;
+ }
+
+ // Selection isn't collapsed but not all the contents is selected
+ if (!isCollapsed && !allContentsSelected(editor.selection.getRng())) {
+ return;
+ }
+
+ // Manually empty the editor
+ editor.setContent('');
+ editor.selection.setCursorLocation(editor.getBody(), 0);
+ editor.nodeChanged();
+ }
+ });
+ };
+
+ function selectAll() {
+ editor.onKeyDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.keyCode == 65 && VK.metaKeyPressed(e)) {
+ e.preventDefault();
+ editor.execCommand('SelectAll');
+ }
+ });
+ };
+
+ function inputMethodFocus() {
+ if (!editor.settings.content_editable) {
+ // Case 1 IME doesn't initialize if you focus the document
+ dom.bind(editor.getDoc(), 'focusin', function(e) {
+ selection.setRng(selection.getRng());
+ });
+
+ // Case 2 IME doesn't initialize if you click the documentElement it also doesn't properly fire the focusin event
+ dom.bind(editor.getDoc(), 'mousedown', function(e) {
+ if (e.target == editor.getDoc().documentElement) {
+ editor.getWin().focus();
+ selection.setRng(selection.getRng());
+ }
+ });
+ }
+ };
+
+ function removeHrOnBackspace() {
+ editor.onKeyDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.keyCode === BACKSPACE) {
+ if (selection.isCollapsed() && selection.getRng(true).startOffset === 0) {
+ var node = selection.getNode();
+ var previousSibling = node.previousSibling;
+
+ if (previousSibling && previousSibling.nodeName && previousSibling.nodeName.toLowerCase() === "hr") {
+ dom.remove(previousSibling);
+ tinymce.dom.Event.cancel(e);
+ }
+ }
+ }
+ })
+ }
+
+ function focusBody() {
+ // Fix for a focus bug in FF 3.x where the body element
+ // wouldn't get proper focus if the user clicked on the HTML element
+ if (!Range.prototype.getClientRects) { // Detect getClientRects got introduced in FF 4
+ editor.onMouseDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.target.nodeName === "HTML") {
+ var body = editor.getBody();
+
+ // Blur the body it's focused but not correctly focused
+ body.blur();
+
+ // Refocus the body after a little while
+ setTimeout(function() {
+ body.focus();
+ }, 0);
+ }
+ });
+ }
+ };
+
+ function selectControlElements() {
+ editor.onClick.add(function(editor, e) {
+ e = e.target;
+
+ // Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250
+ // WebKit can't even do simple things like selecting an image
+ // Needs tobe the setBaseAndExtend or it will fail to select floated images
+ if (/^(IMG|HR)$/.test(e.nodeName)) {
+ selection.getSel().setBaseAndExtent(e, 0, e, 1);
+ }
+
+ if (e.nodeName == 'A' && dom.hasClass(e, 'mceItemAnchor')) {
+ selection.select(e);
+ }
+
+ editor.nodeChanged();
+ });
+ };
+
+ function removeStylesWhenDeletingAccrossBlockElements() {
+ function getAttributeApplyFunction() {
+ var template = dom.getAttribs(selection.getStart().cloneNode(false));
+
+ return function() {
+ var target = selection.getStart();
+
+ if (target !== editor.getBody()) {
+ dom.setAttrib(target, "style", null);
+
+ tinymce.each(template, function(attr) {
+ target.setAttributeNode(attr.cloneNode(true));
+ });
+ }
+ };
+ }
+
+ function isSelectionAcrossElements() {
+ return !selection.isCollapsed() && dom.getParent(selection.getStart(), dom.isBlock) != dom.getParent(selection.getEnd(), dom.isBlock);
+ }
+
+ function blockEvent(editor, e) {
+ e.preventDefault();
+ return false;
+ }
+
+ editor.onKeyPress.add(function(editor, e) {
+ var applyAttributes;
+
+ if (!isDefaultPrevented(e) && (e.keyCode == 8 || e.keyCode == 46) && isSelectionAcrossElements()) {
+ applyAttributes = getAttributeApplyFunction();
+ editor.getDoc().execCommand('delete', false, null);
+ applyAttributes();
+ e.preventDefault();
+ return false;
+ }
+ });
+
+ dom.bind(editor.getDoc(), 'cut', function(e) {
+ var applyAttributes;
+
+ if (!isDefaultPrevented(e) && isSelectionAcrossElements()) {
+ applyAttributes = getAttributeApplyFunction();
+ editor.onKeyUp.addToTop(blockEvent);
+
+ setTimeout(function() {
+ applyAttributes();
+ editor.onKeyUp.remove(blockEvent);
+ }, 0);
+ }
+ });
+ }
+
+ function selectionChangeNodeChanged() {
+ var lastRng, selectionTimer;
+
+ dom.bind(editor.getDoc(), 'selectionchange', function() {
+ if (selectionTimer) {
+ clearTimeout(selectionTimer);
+ selectionTimer = 0;
+ }
+
+ selectionTimer = window.setTimeout(function() {
+ var rng = selection.getRng();
+
+ // Compare the ranges to see if it was a real change or not
+ if (!lastRng || !tinymce.dom.RangeUtils.compareRanges(rng, lastRng)) {
+ editor.nodeChanged();
+ lastRng = rng;
+ }
+ }, 50);
+ });
+ }
+
+ function ensureBodyHasRoleApplication() {
+ document.body.setAttribute("role", "application");
+ }
+
+ function disableBackspaceIntoATable() {
+ editor.onKeyDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.keyCode === BACKSPACE) {
+ if (selection.isCollapsed() && selection.getRng(true).startOffset === 0) {
+ var previousSibling = selection.getNode().previousSibling;
+ if (previousSibling && previousSibling.nodeName && previousSibling.nodeName.toLowerCase() === "table") {
+ return tinymce.dom.Event.cancel(e);
+ }
+ }
+ }
+ })
+ }
+
+ function addNewLinesBeforeBrInPre() {
+ // IE8+ rendering mode does the right thing with BR in PRE
+ if (getDocumentMode() > 7) {
+ return;
+ }
+
+ // Enable display: none in area and add a specific class that hides all BR elements in PRE to
+ // avoid the caret from getting stuck at the BR elements while pressing the right arrow key
+ setEditorCommandState('RespectVisibilityInDesign', true);
+ editor.contentStyles.push('.mceHideBrInPre pre br {display: none}');
+ dom.addClass(editor.getBody(), 'mceHideBrInPre');
+
+ // Adds a \n before all BR elements in PRE to get them visual
+ parser.addNodeFilter('pre', function(nodes, name) {
+ var i = nodes.length, brNodes, j, brElm, sibling;
+
+ while (i--) {
+ brNodes = nodes[i].getAll('br');
+ j = brNodes.length;
+ while (j--) {
+ brElm = brNodes[j];
+
+ // Add \n before BR in PRE elements on older IE:s so the new lines get rendered
+ sibling = brElm.prev;
+ if (sibling && sibling.type === 3 && sibling.value.charAt(sibling.value - 1) != '\n') {
+ sibling.value += '\n';
+ } else {
+ brElm.parent.insert(new tinymce.html.Node('#text', 3), brElm, true).value = '\n';
+ }
+ }
+ }
+ });
+
+ // Removes any \n before BR elements in PRE since other browsers and in contentEditable=false mode they will be visible
+ serializer.addNodeFilter('pre', function(nodes, name) {
+ var i = nodes.length, brNodes, j, brElm, sibling;
+
+ while (i--) {
+ brNodes = nodes[i].getAll('br');
+ j = brNodes.length;
+ while (j--) {
+ brElm = brNodes[j];
+ sibling = brElm.prev;
+ if (sibling && sibling.type == 3) {
+ sibling.value = sibling.value.replace(/\r?\n$/, '');
+ }
+ }
+ }
+ });
+ }
+
+ function removePreSerializedStylesWhenSelectingControls() {
+ dom.bind(editor.getBody(), 'mouseup', function(e) {
+ var value, node = selection.getNode();
+
+ // Moved styles to attributes on IMG eements
+ if (node.nodeName == 'IMG') {
+ // Convert style width to width attribute
+ if (value = dom.getStyle(node, 'width')) {
+ dom.setAttrib(node, 'width', value.replace(/[^0-9%]+/g, ''));
+ dom.setStyle(node, 'width', '');
+ }
+
+ // Convert style height to height attribute
+ if (value = dom.getStyle(node, 'height')) {
+ dom.setAttrib(node, 'height', value.replace(/[^0-9%]+/g, ''));
+ dom.setStyle(node, 'height', '');
+ }
+ }
+ });
+ }
+
+ function keepInlineElementOnDeleteBackspace() {
+ editor.onKeyDown.add(function(editor, e) {
+ var isDelete, rng, container, offset, brElm, sibling, collapsed;
+
+ isDelete = e.keyCode == DELETE;
+ if (!isDefaultPrevented(e) && (isDelete || e.keyCode == BACKSPACE) && !VK.modifierPressed(e)) {
+ rng = selection.getRng();
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ collapsed = rng.collapsed;
+
+ // Override delete if the start container is a text node and is at the beginning of text or
+ // just before/after the last character to be deleted in collapsed mode
+ if (container.nodeType == 3 && container.nodeValue.length > 0 && ((offset === 0 && !collapsed) || (collapsed && offset === (isDelete ? 0 : 1)))) {
+ nonEmptyElements = editor.schema.getNonEmptyElements();
+
+ // Prevent default logic since it's broken
+ e.preventDefault();
+
+ // Insert a BR before the text node this will prevent the containing element from being deleted/converted
+ brElm = dom.create('br', {id: '__tmp'});
+ container.parentNode.insertBefore(brElm, container);
+
+ // Do the browser delete
+ editor.getDoc().execCommand(isDelete ? 'ForwardDelete' : 'Delete', false, null);
+
+ // Check if the previous sibling is empty after deleting for example: <p><b></b>|</p>
+ container = selection.getRng().startContainer;
+ sibling = container.previousSibling;
+ if (sibling && sibling.nodeType == 1 && !dom.isBlock(sibling) && dom.isEmpty(sibling) && !nonEmptyElements[sibling.nodeName.toLowerCase()]) {
+ dom.remove(sibling);
+ }
+
+ // Remove the temp element we inserted
+ dom.remove('__tmp');
+ }
+ }
+ });
+ }
+
+ function removeBlockQuoteOnBackSpace() {
+ // Add block quote deletion handler
+ editor.onKeyDown.add(function(editor, e) {
+ var rng, container, offset, root, parent;
+
+ if (isDefaultPrevented(e) || e.keyCode != VK.BACKSPACE) {
+ return;
+ }
+
+ rng = selection.getRng();
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ root = dom.getRoot();
+ parent = container;
+
+ if (!rng.collapsed || offset !== 0) {
+ return;
+ }
+
+ while (parent && parent.parentNode && parent.parentNode.firstChild == parent && parent.parentNode != root) {
+ parent = parent.parentNode;
+ }
+
+ // Is the cursor at the beginning of a blockquote?
+ if (parent.tagName === 'BLOCKQUOTE') {
+ // Remove the blockquote
+ editor.formatter.toggle('blockquote', null, parent);
+
+ // Move the caret to the beginning of container
+ rng = dom.createRng();
+ rng.setStart(container, 0);
+ rng.setEnd(container, 0);
+ selection.setRng(rng);
+ }
+ });
+ };
+
+ function setGeckoEditingOptions() {
+ function setOpts() {
+ editor._refreshContentEditable();
+
+ setEditorCommandState("StyleWithCSS", false);
+ setEditorCommandState("enableInlineTableEditing", false);
+
+ if (!settings.object_resizing) {
+ setEditorCommandState("enableObjectResizing", false);
+ }
+ };
+
+ if (!settings.readonly) {
+ editor.onBeforeExecCommand.add(setOpts);
+ editor.onMouseDown.add(setOpts);
+ }
+ };
+
+ function addBrAfterLastLinks() {
+ function fixLinks(editor, o) {
+ tinymce.each(dom.select('a'), function(node) {
+ var parentNode = node.parentNode, root = dom.getRoot();
+
+ if (parentNode.lastChild === node) {
+ while (parentNode && !dom.isBlock(parentNode)) {
+ if (parentNode.parentNode.lastChild !== parentNode || parentNode === root) {
+ return;
+ }
+
+ parentNode = parentNode.parentNode;
+ }
+
+ dom.add(parentNode, 'br', {'data-mce-bogus' : 1});
+ }
+ });
+ };
+
+ editor.onExecCommand.add(function(editor, cmd) {
+ if (cmd === 'CreateLink') {
+ fixLinks(editor);
+ }
+ });
+
+ editor.onSetContent.add(selection.onSetContent.add(fixLinks));
+ };
+
+ function setDefaultBlockType() {
+ if (settings.forced_root_block) {
+ editor.onInit.add(function() {
+ setEditorCommandState('DefaultParagraphSeparator', settings.forced_root_block);
+ });
+ }
+ }
+
+ function removeGhostSelection() {
+ function repaint(sender, args) {
+ if (!sender || !args.initial) {
+ editor.execCommand('mceRepaint');
+ }
+ };
+
+ editor.onUndo.add(repaint);
+ editor.onRedo.add(repaint);
+ editor.onSetContent.add(repaint);
+ };
+
+ function deleteControlItemOnBackSpace() {
+ editor.onKeyDown.add(function(editor, e) {
+ var rng;
+
+ if (!isDefaultPrevented(e) && e.keyCode == BACKSPACE) {
+ rng = editor.getDoc().selection.createRange();
+ if (rng && rng.item) {
+ e.preventDefault();
+ editor.undoManager.beforeChange();
+ dom.remove(rng.item(0));
+ editor.undoManager.add();
+ }
+ }
+ });
+ };
+
+ function renderEmptyBlocksFix() {
+ var emptyBlocksCSS;
+
+ // IE10+
+ if (getDocumentMode() >= 10) {
+ emptyBlocksCSS = '';
+ tinymce.each('p div h1 h2 h3 h4 h5 h6'.split(' '), function(name, i) {
+ emptyBlocksCSS += (i > 0 ? ',' : '') + name + ':empty';
+ });
+
+ editor.contentStyles.push(emptyBlocksCSS + '{padding-right: 1px !important}');
+ }
+ };
+
+ function fakeImageResize() {
+ var selectedElmX, selectedElmY, selectedElm, selectedElmGhost, selectedHandle, startX, startY, startW, startH, ratio,
+ resizeHandles, width, height, rootDocument = document, editableDoc = editor.getDoc();
+
+ if (!settings.object_resizing || settings.webkit_fake_resize === false) {
+ return;
+ }
+
+ // Try disabling object resizing if WebKit implements resizing in the future
+ setEditorCommandState("enableObjectResizing", false);
+
+ // Details about each resize handle how to scale etc
+ resizeHandles = {
+ // Name: x multiplier, y multiplier, delta size x, delta size y
+ n: [.5, 0, 0, -1],
+ e: [1, .5, 1, 0],
+ s: [.5, 1, 0, 1],
+ w: [0, .5, -1, 0],
+ nw: [0, 0, -1, -1],
+ ne: [1, 0, 1, -1],
+ se: [1, 1, 1, 1],
+ sw : [0, 1, -1, 1]
+ };
+
+ function resizeElement(e) {
+ var deltaX, deltaY;
+
+ // Calc new width/height
+ deltaX = e.screenX - startX;
+ deltaY = e.screenY - startY;
+
+ // Calc new size
+ width = deltaX * selectedHandle[2] + startW;
+ height = deltaY * selectedHandle[3] + startH;
+
+ // Never scale down lower than 5 pixels
+ width = width < 5 ? 5 : width;
+ height = height < 5 ? 5 : height;
+
+ // Constrain proportions when modifier key is pressed or if the nw, ne, sw, se corners are moved on an image
+ if (VK.modifierPressed(e) || (selectedElm.nodeName == "IMG" && selectedHandle[2] * selectedHandle[3] !== 0)) {
+ width = Math.round(height / ratio);
+ height = Math.round(width * ratio);
+ }
+
+ // Update ghost size
+ dom.setStyles(selectedElmGhost, {
+ width: width,
+ height: height
+ });
+
+ // Update ghost X position if needed
+ if (selectedHandle[2] < 0 && selectedElmGhost.clientWidth <= width) {
+ dom.setStyle(selectedElmGhost, 'left', selectedElmX + (startW - width));
+ }
+
+ // Update ghost Y position if needed
+ if (selectedHandle[3] < 0 && selectedElmGhost.clientHeight <= height) {
+ dom.setStyle(selectedElmGhost, 'top', selectedElmY + (startH - height));
+ }
+ }
+
+ function endResize() {
+ function setSizeProp(name, value) {
+ if (value) {
+ // Resize by using style or attribute
+ if (selectedElm.style[name] || !editor.schema.isValid(selectedElm.nodeName.toLowerCase(), name)) {
+ dom.setStyle(selectedElm, name, value);
+ } else {
+ dom.setAttrib(selectedElm, name, value);
+ }
+ }
+ }
+
+ // Set width/height properties
+ setSizeProp('width', width);
+ setSizeProp('height', height);
+
+ dom.unbind(editableDoc, 'mousemove', resizeElement);
+ dom.unbind(editableDoc, 'mouseup', endResize);
+
+ if (rootDocument != editableDoc) {
+ dom.unbind(rootDocument, 'mousemove', resizeElement);
+ dom.unbind(rootDocument, 'mouseup', endResize);
+ }
+
+ // Remove ghost and update resize handle positions
+ dom.remove(selectedElmGhost);
+ showResizeRect(selectedElm);
+ }
+
+ function showResizeRect(targetElm) {
+ var position, targetWidth, targetHeight;
+
+ hideResizeRect();
+
+ // Get position and size of target
+ position = dom.getPos(targetElm);
+ selectedElmX = position.x;
+ selectedElmY = position.y;
+ targetWidth = targetElm.offsetWidth;
+ targetHeight = targetElm.offsetHeight;
+
+ // Reset width/height if user selects a new image/table
+ if (selectedElm != targetElm) {
+ selectedElm = targetElm;
+ width = height = 0;
+ }
+
+ tinymce.each(resizeHandles, function(handle, name) {
+ var handleElm;
+
+ // Get existing or render resize handle
+ handleElm = dom.get('mceResizeHandle' + name);
+ if (!handleElm) {
+ handleElm = dom.add(editableDoc.documentElement, 'div', {
+ id: 'mceResizeHandle' + name,
+ 'class': 'mceResizeHandle',
+ style: 'cursor:' + name + '-resize; margin:0; padding:0'
+ });
+
+ dom.bind(handleElm, 'mousedown', function(e) {
+ e.preventDefault();
+
+ endResize();
+
+ startX = e.screenX;
+ startY = e.screenY;
+ startW = selectedElm.clientWidth;
+ startH = selectedElm.clientHeight;
+ ratio = startH / startW;
+ selectedHandle = handle;
+
+ selectedElmGhost = selectedElm.cloneNode(true);
+ dom.addClass(selectedElmGhost, 'mceClonedResizable');
+ dom.setStyles(selectedElmGhost, {
+ left: selectedElmX,
+ top: selectedElmY,
+ margin: 0
+ });
+
+ editableDoc.documentElement.appendChild(selectedElmGhost);
+
+ dom.bind(editableDoc, 'mousemove', resizeElement);
+ dom.bind(editableDoc, 'mouseup', endResize);
+
+ if (rootDocument != editableDoc) {
+ dom.bind(rootDocument, 'mousemove', resizeElement);
+ dom.bind(rootDocument, 'mouseup', endResize);
+ }
+ });
+ } else {
+ dom.show(handleElm);
+ }
+
+ // Position element
+ dom.setStyles(handleElm, {
+ left: (targetWidth * handle[0] + selectedElmX) - (handleElm.offsetWidth / 2),
+ top: (targetHeight * handle[1] + selectedElmY) - (handleElm.offsetHeight / 2)
+ });
+ });
+
+ // Only add resize rectangle on WebKit and only on images
+ if (!tinymce.isOpera && selectedElm.nodeName == "IMG") {
+ selectedElm.setAttribute('data-mce-selected', '1');
+ }
+ }
+
+ function hideResizeRect() {
+ if (selectedElm) {
+ selectedElm.removeAttribute('data-mce-selected');
+ }
+
+ for (var name in resizeHandles) {
+ dom.hide('mceResizeHandle' + name);
+ }
+ }
+
+ // Add CSS for resize handles, cloned element and selected
+ editor.contentStyles.push(
+ '.mceResizeHandle {' +
+ 'position: absolute;' +
+ 'border: 1px solid black;' +
+ 'background: #FFF;' +
+ 'width: 5px;' +
+ 'height: 5px;' +
+ 'z-index: 10000' +
+ '}' +
+ '.mceResizeHandle:hover {' +
+ 'background: #000' +
+ '}' +
+ 'img[data-mce-selected] {' +
+ 'outline: 1px solid black' +
+ '}' +
+ 'img.mceClonedResizable, table.mceClonedResizable {' +
+ 'position: absolute;' +
+ 'outline: 1px dashed black;' +
+ 'opacity: .5;' +
+ 'z-index: 10000' +
+ '}'
+ );
+
+ function updateResizeRect() {
+ var controlElm = dom.getParent(selection.getNode(), 'table,img');
+
+ // Remove data-mce-selected from all elements since they might have been copied using Ctrl+c/v
+ tinymce.each(dom.select('img[data-mce-selected]'), function(img) {
+ img.removeAttribute('data-mce-selected');
+ });
+
+ if (controlElm) {
+ showResizeRect(controlElm);
+ } else {
+ hideResizeRect();
+ }
+ }
+
+ // Show/hide resize rect when image is selected
+ editor.onNodeChange.add(updateResizeRect);
+
+ // Fixes WebKit quirk where it returns IMG on getNode if caret is after last image in container
+ dom.bind(editableDoc, 'selectionchange', updateResizeRect);
+
+ // Remove the internal attribute when serializing the DOM
+ editor.serializer.addAttributeFilter('data-mce-selected', function(nodes, name) {
+ var i = nodes.length;
+
+ while (i--) {
+ nodes[i].attr(name, null);
+ }
+ });
+ }
+
+ function keepNoScriptContents() {
+ if (getDocumentMode() < 9) {
+ parser.addNodeFilter('noscript', function(nodes) {
+ var i = nodes.length, node, textNode;
+
+ while (i--) {
+ node = nodes[i];
+ textNode = node.firstChild;
+
+ if (textNode) {
+ node.attr('data-mce-innertext', textNode.value);
+ }
+ }
+ });
+
+ serializer.addNodeFilter('noscript', function(nodes) {
+ var i = nodes.length, node, textNode, value;
+
+ while (i--) {
+ node = nodes[i];
+ textNode = nodes[i].firstChild;
+
+ if (textNode) {
+ textNode.value = tinymce.html.Entities.decode(textNode.value);
+ } else {
+ // Old IE can't retain noscript value so an attribute is used to store it
+ value = node.attributes.map['data-mce-innertext'];
+ if (value) {
+ node.attr('data-mce-innertext', null);
+ textNode = new tinymce.html.Node('#text', 3);
+ textNode.value = value;
+ textNode.raw = true;
+ node.append(textNode);
+ }
+ }
+ }
+ });
+ }
+ }
+
+ // All browsers
+ disableBackspaceIntoATable();
+ removeBlockQuoteOnBackSpace();
+ emptyEditorWhenDeleting();
+
+ // WebKit
+ if (tinymce.isWebKit) {
+ keepInlineElementOnDeleteBackspace();
+ cleanupStylesWhenDeleting();
+ inputMethodFocus();
+ selectControlElements();
+ setDefaultBlockType();
+
+ // iOS
+ if (tinymce.isIDevice) {
+ selectionChangeNodeChanged();
+ } else {
+ fakeImageResize();
+ selectAll();
+ }
+ }
+
+ // IE
+ if (tinymce.isIE) {
+ removeHrOnBackspace();
+ ensureBodyHasRoleApplication();
+ addNewLinesBeforeBrInPre();
+ removePreSerializedStylesWhenSelectingControls();
+ deleteControlItemOnBackSpace();
+ renderEmptyBlocksFix();
+ keepNoScriptContents();
+ }
+
+ // Gecko
+ if (tinymce.isGecko) {
+ removeHrOnBackspace();
+ focusBody();
+ removeStylesWhenDeletingAccrossBlockElements();
+ setGeckoEditingOptions();
+ addBrAfterLastLinks();
+ removeGhostSelection();
+ }
+
+ // Opera
+ if (tinymce.isOpera) {
+ fakeImageResize();
+ }
+};
+(function(tinymce) {
+ var namedEntities, baseEntities, reverseEntities,
+ attrsCharsRegExp = /[&<>\"\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
+ textCharsRegExp = /[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
+ rawCharsRegExp = /[<>&\"\']/g,
+ entityRegExp = /&(#x|#)?([\w]+);/g,
+ asciiMap = {
+ 128 : "\u20AC", 130 : "\u201A", 131 : "\u0192", 132 : "\u201E", 133 : "\u2026", 134 : "\u2020",
+ 135 : "\u2021", 136 : "\u02C6", 137 : "\u2030", 138 : "\u0160", 139 : "\u2039", 140 : "\u0152",
+ 142 : "\u017D", 145 : "\u2018", 146 : "\u2019", 147 : "\u201C", 148 : "\u201D", 149 : "\u2022",
+ 150 : "\u2013", 151 : "\u2014", 152 : "\u02DC", 153 : "\u2122", 154 : "\u0161", 155 : "\u203A",
+ 156 : "\u0153", 158 : "\u017E", 159 : "\u0178"
+ };
+
+ // Raw entities
+ baseEntities = {
+ '\"' : '&quot;', // Needs to be escaped since the YUI compressor would otherwise break the code
+ "'" : '&#39;',
+ '<' : '&lt;',
+ '>' : '&gt;',
+ '&' : '&amp;'
+ };
+
+ // Reverse lookup table for raw entities
+ reverseEntities = {
+ '&lt;' : '<',
+ '&gt;' : '>',
+ '&amp;' : '&',
+ '&quot;' : '"',
+ '&apos;' : "'"
+ };
+
+ // Decodes text by using the browser
+ function nativeDecode(text) {
+ var elm;
+
+ elm = document.createElement("div");
+ elm.innerHTML = text;
+
+ return elm.textContent || elm.innerText || text;
+ };
+
+ // Build a two way lookup table for the entities
+ function buildEntitiesLookup(items, radix) {
+ var i, chr, entity, lookup = {};
+
+ if (items) {
+ items = items.split(',');
+ radix = radix || 10;
+
+ // Build entities lookup table
+ for (i = 0; i < items.length; i += 2) {
+ chr = String.fromCharCode(parseInt(items[i], radix));
+
+ // Only add non base entities
+ if (!baseEntities[chr]) {
+ entity = '&' + items[i + 1] + ';';
+ lookup[chr] = entity;
+ lookup[entity] = chr;
+ }
+ }
+
+ return lookup;
+ }
+ };
+
+ // Unpack entities lookup where the numbers are in radix 32 to reduce the size
+ namedEntities = buildEntitiesLookup(
+ '50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,' +
+ '5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,' +
+ '5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,' +
+ '5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,' +
+ '68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,' +
+ '6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,' +
+ '6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,' +
+ '75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,' +
+ '7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,' +
+ '7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,' +
+ 'sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,' +
+ 'st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,' +
+ 't9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,' +
+ 'tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,' +
+ 'u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,' +
+ '81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,' +
+ '8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,' +
+ '8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,' +
+ '8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,' +
+ '8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,' +
+ 'nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,' +
+ 'rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,' +
+ 'Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,' +
+ '80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,' +
+ '811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro', 32);
+
+ tinymce.html = tinymce.html || {};
+
+ tinymce.html.Entities = {
+ encodeRaw : function(text, attr) {
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ return baseEntities[chr] || chr;
+ });
+ },
+
+ encodeAllRaw : function(text) {
+ return ('' + text).replace(rawCharsRegExp, function(chr) {
+ return baseEntities[chr] || chr;
+ });
+ },
+
+ encodeNumeric : function(text, attr) {
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ // Multi byte sequence convert it to a single entity
+ if (chr.length > 1)
+ return '&#' + (((chr.charCodeAt(0) - 0xD800) * 0x400) + (chr.charCodeAt(1) - 0xDC00) + 0x10000) + ';';
+
+ return baseEntities[chr] || '&#' + chr.charCodeAt(0) + ';';
+ });
+ },
+
+ encodeNamed : function(text, attr, entities) {
+ entities = entities || namedEntities;
+
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ return baseEntities[chr] || entities[chr] || chr;
+ });
+ },
+
+ getEncodeFunc : function(name, entities) {
+ var Entities = tinymce.html.Entities;
+
+ entities = buildEntitiesLookup(entities) || namedEntities;
+
+ function encodeNamedAndNumeric(text, attr) {
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ return baseEntities[chr] || entities[chr] || '&#' + chr.charCodeAt(0) + ';' || chr;
+ });
+ };
+
+ function encodeCustomNamed(text, attr) {
+ return Entities.encodeNamed(text, attr, entities);
+ };
+
+ // Replace + with , to be compatible with previous TinyMCE versions
+ name = tinymce.makeMap(name.replace(/\+/g, ','));
+
+ // Named and numeric encoder
+ if (name.named && name.numeric)
+ return encodeNamedAndNumeric;
+
+ // Named encoder
+ if (name.named) {
+ // Custom names
+ if (entities)
+ return encodeCustomNamed;
+
+ return Entities.encodeNamed;
+ }
+
+ // Numeric
+ if (name.numeric)
+ return Entities.encodeNumeric;
+
+ // Raw encoder
+ return Entities.encodeRaw;
+ },
+
+ decode : function(text) {
+ return text.replace(entityRegExp, function(all, numeric, value) {
+ if (numeric) {
+ value = parseInt(value, numeric.length === 2 ? 16 : 10);
+
+ // Support upper UTF
+ if (value > 0xFFFF) {
+ value -= 0x10000;
+
+ return String.fromCharCode(0xD800 + (value >> 10), 0xDC00 + (value & 0x3FF));
+ } else
+ return asciiMap[value] || String.fromCharCode(value);
+ }
+
+ return reverseEntities[all] || namedEntities[all] || nativeDecode(all);
+ });
+ }
+ };
+})(tinymce);
+
+tinymce.html.Styles = function(settings, schema) {
+ var rgbRegExp = /rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,
+ urlOrStrRegExp = /(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,
+ styleRegExp = /\s*([^:]+):\s*([^;]+);?/g,
+ trimRightRegExp = /\s+$/,
+ urlColorRegExp = /rgb/,
+ undef, i, encodingLookup = {}, encodingItems;
+
+ settings = settings || {};
+
+ encodingItems = '\\" \\\' \\; \\: ; : \uFEFF'.split(' ');
+ for (i = 0; i < encodingItems.length; i++) {
+ encodingLookup[encodingItems[i]] = '\uFEFF' + i;
+ encodingLookup['\uFEFF' + i] = encodingItems[i];
+ }
+
+ function toHex(match, r, g, b) {
+ function hex(val) {
+ val = parseInt(val).toString(16);
+
+ return val.length > 1 ? val : '0' + val; // 0 -> 00
+ };
+
+ return '#' + hex(r) + hex(g) + hex(b);
+ };
+
+ return {
+ toHex : function(color) {
+ return color.replace(rgbRegExp, toHex);
+ },
+
+ parse : function(css) {
+ var styles = {}, matches, name, value, isEncoded, urlConverter = settings.url_converter, urlConverterScope = settings.url_converter_scope || this;
+
+ function compress(prefix, suffix) {
+ var top, right, bottom, left;
+
+ // Get values and check it it needs compressing
+ top = styles[prefix + '-top' + suffix];
+ if (!top)
+ return;
+
+ right = styles[prefix + '-right' + suffix];
+ if (top != right)
+ return;
+
+ bottom = styles[prefix + '-bottom' + suffix];
+ if (right != bottom)
+ return;
+
+ left = styles[prefix + '-left' + suffix];
+ if (bottom != left)
+ return;
+
+ // Compress
+ styles[prefix + suffix] = left;
+ delete styles[prefix + '-top' + suffix];
+ delete styles[prefix + '-right' + suffix];
+ delete styles[prefix + '-bottom' + suffix];
+ delete styles[prefix + '-left' + suffix];
+ };
+
+ function canCompress(key) {
+ var value = styles[key], i;
+
+ if (!value || value.indexOf(' ') < 0)
+ return;
+
+ value = value.split(' ');
+ i = value.length;
+ while (i--) {
+ if (value[i] !== value[0])
+ return false;
+ }
+
+ styles[key] = value[0];
+
+ return true;
+ };
+
+ function compress2(target, a, b, c) {
+ if (!canCompress(a))
+ return;
+
+ if (!canCompress(b))
+ return;
+
+ if (!canCompress(c))
+ return;
+
+ // Compress
+ styles[target] = styles[a] + ' ' + styles[b] + ' ' + styles[c];
+ delete styles[a];
+ delete styles[b];
+ delete styles[c];
+ };
+
+ // Encodes the specified string by replacing all \" \' ; : with _<num>
+ function encode(str) {
+ isEncoded = true;
+
+ return encodingLookup[str];
+ };
+
+ // Decodes the specified string by replacing all _<num> with it's original value \" \' etc
+ // It will also decode the \" \' if keep_slashes is set to fale or omitted
+ function decode(str, keep_slashes) {
+ if (isEncoded) {
+ str = str.replace(/\uFEFF[0-9]/g, function(str) {
+ return encodingLookup[str];
+ });
+ }
+
+ if (!keep_slashes)
+ str = str.replace(/\\([\'\";:])/g, "$1");
+
+ return str;
+ };
+
+ function processUrl(match, url, url2, url3, str, str2) {
+ str = str || str2;
+
+ if (str) {
+ str = decode(str);
+
+ // Force strings into single quote format
+ return "'" + str.replace(/\'/g, "\\'") + "'";
+ }
+
+ url = decode(url || url2 || url3);
+
+ // Convert the URL to relative/absolute depending on config
+ if (urlConverter)
+ url = urlConverter.call(urlConverterScope, url, 'style');
+
+ // Output new URL format
+ return "url('" + url.replace(/\'/g, "\\'") + "')";
+ };
+
+ if (css) {
+ // Encode \" \' % and ; and : inside strings so they don't interfere with the style parsing
+ css = css.replace(/\\[\"\';:\uFEFF]/g, encode).replace(/\"[^\"]+\"|\'[^\']+\'/g, function(str) {
+ return str.replace(/[;:]/g, encode);
+ });
+
+ // Parse styles
+ while (matches = styleRegExp.exec(css)) {
+ name = matches[1].replace(trimRightRegExp, '').toLowerCase();
+ value = matches[2].replace(trimRightRegExp, '');
+
+ if (name && value.length > 0) {
+ // Opera will produce 700 instead of bold in their style values
+ if (name === 'font-weight' && value === '700')
+ value = 'bold';
+ else if (name === 'color' || name === 'background-color') // Lowercase colors like RED
+ value = value.toLowerCase();
+
+ // Convert RGB colors to HEX
+ value = value.replace(rgbRegExp, toHex);
+
+ // Convert URLs and force them into url('value') format
+ value = value.replace(urlOrStrRegExp, processUrl);
+ styles[name] = isEncoded ? decode(value, true) : value;
+ }
+
+ styleRegExp.lastIndex = matches.index + matches[0].length;
+ }
+
+ // Compress the styles to reduce it's size for example IE will expand styles
+ compress("border", "");
+ compress("border", "-width");
+ compress("border", "-color");
+ compress("border", "-style");
+ compress("padding", "");
+ compress("margin", "");
+ compress2('border', 'border-width', 'border-style', 'border-color');
+
+ // Remove pointless border, IE produces these
+ if (styles.border === 'medium none')
+ delete styles.border;
+ }
+
+ return styles;
+ },
+
+ serialize : function(styles, element_name) {
+ var css = '', name, value;
+
+ function serializeStyles(name) {
+ var styleList, i, l, value;
+
+ styleList = schema.styles[name];
+ if (styleList) {
+ for (i = 0, l = styleList.length; i < l; i++) {
+ name = styleList[i];
+ value = styles[name];
+
+ if (value !== undef && value.length > 0)
+ css += (css.length > 0 ? ' ' : '') + name + ': ' + value + ';';
+ }
+ }
+ };
+
+ // Serialize styles according to schema
+ if (element_name && schema && schema.styles) {
+ // Serialize global styles and element specific styles
+ serializeStyles('*');
+ serializeStyles(element_name);
+ } else {
+ // Output the styles in the order they are inside the object
+ for (name in styles) {
+ value = styles[name];
+
+ if (value !== undef && value.length > 0)
+ css += (css.length > 0 ? ' ' : '') + name + ': ' + value + ';';
+ }
+ }
+
+ return css;
+ }
+ };
+};
+
+(function(tinymce) {
+ var mapCache = {}, makeMap = tinymce.makeMap, each = tinymce.each;
+
+ function split(str, delim) {
+ return str.split(delim || ',');
+ };
+
+ function unpack(lookup, data) {
+ var key, elements = {};
+
+ function replace(value) {
+ return value.replace(/[A-Z]+/g, function(key) {
+ return replace(lookup[key]);
+ });
+ };
+
+ // Unpack lookup
+ for (key in lookup) {
+ if (lookup.hasOwnProperty(key))
+ lookup[key] = replace(lookup[key]);
+ }
+
+ // Unpack and parse data into object map
+ replace(data).replace(/#/g, '#text').replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g, function(str, name, attributes, children) {
+ attributes = split(attributes, '|');
+
+ elements[name] = {
+ attributes : makeMap(attributes),
+ attributesOrder : attributes,
+ children : makeMap(children, '|', {'#comment' : {}})
+ }
+ });
+
+ return elements;
+ };
+
+ function getHTML5() {
+ var html5 = mapCache.html5;
+
+ if (!html5) {
+ html5 = mapCache.html5 = unpack({
+ A : 'id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup',
+ B : '#|a|abbr|area|audio|b|bdo|br|button|canvas|cite|code|command|datalist|del|dfn|em|embed|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|meta|' +
+ 'meter|noscript|object|output|progress|q|ruby|samp|script|select|small|span|strong|sub|sup|svg|textarea|time|var|video|wbr',
+ C : '#|a|abbr|area|address|article|aside|audio|b|bdo|blockquote|br|button|canvas|cite|code|command|datalist|del|details|dfn|dialog|div|dl|em|embed|fieldset|' +
+ 'figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|menu|meta|meter|nav|noscript|ol|object|output|' +
+ 'p|pre|progress|q|ruby|samp|script|section|select|small|span|strong|style|sub|sup|svg|table|textarea|time|ul|var|video'
+ }, 'html[A|manifest][body|head]' +
+ 'head[A][base|command|link|meta|noscript|script|style|title]' +
+ 'title[A][#]' +
+ 'base[A|href|target][]' +
+ 'link[A|href|rel|media|type|sizes][]' +
+ 'meta[A|http-equiv|name|content|charset][]' +
+ 'style[A|type|media|scoped][#]' +
+ 'script[A|charset|type|src|defer|async][#]' +
+ 'noscript[A][C]' +
+ 'body[A][C]' +
+ 'section[A][C]' +
+ 'nav[A][C]' +
+ 'article[A][C]' +
+ 'aside[A][C]' +
+ 'h1[A][B]' +
+ 'h2[A][B]' +
+ 'h3[A][B]' +
+ 'h4[A][B]' +
+ 'h5[A][B]' +
+ 'h6[A][B]' +
+ 'hgroup[A][h1|h2|h3|h4|h5|h6]' +
+ 'header[A][C]' +
+ 'footer[A][C]' +
+ 'address[A][C]' +
+ 'p[A][B]' +
+ 'br[A][]' +
+ 'pre[A][B]' +
+ 'dialog[A][dd|dt]' +
+ 'blockquote[A|cite][C]' +
+ 'ol[A|start|reversed][li]' +
+ 'ul[A][li]' +
+ 'li[A|value][C]' +
+ 'dl[A][dd|dt]' +
+ 'dt[A][B]' +
+ 'dd[A][C]' +
+ 'a[A|href|target|ping|rel|media|type][B]' +
+ 'em[A][B]' +
+ 'strong[A][B]' +
+ 'small[A][B]' +
+ 'cite[A][B]' +
+ 'q[A|cite][B]' +
+ 'dfn[A][B]' +
+ 'abbr[A][B]' +
+ 'code[A][B]' +
+ 'var[A][B]' +
+ 'samp[A][B]' +
+ 'kbd[A][B]' +
+ 'sub[A][B]' +
+ 'sup[A][B]' +
+ 'i[A][B]' +
+ 'b[A][B]' +
+ 'mark[A][B]' +
+ 'progress[A|value|max][B]' +
+ 'meter[A|value|min|max|low|high|optimum][B]' +
+ 'time[A|datetime][B]' +
+ 'ruby[A][B|rt|rp]' +
+ 'rt[A][B]' +
+ 'rp[A][B]' +
+ 'bdo[A][B]' +
+ 'span[A][B]' +
+ 'ins[A|cite|datetime][B]' +
+ 'del[A|cite|datetime][B]' +
+ 'figure[A][C|legend|figcaption]' +
+ 'figcaption[A][C]' +
+ 'img[A|alt|src|height|width|usemap|ismap][]' +
+ 'iframe[A|name|src|height|width|sandbox|seamless][]' +
+ 'embed[A|src|height|width|type][]' +
+ 'object[A|data|type|height|width|usemap|name|form|classid][param]' +
+ 'param[A|name|value][]' +
+ 'details[A|open][C|legend]' +
+ 'command[A|type|label|icon|disabled|checked|radiogroup][]' +
+ 'menu[A|type|label][C|li]' +
+ 'legend[A][C|B]' +
+ 'div[A][C]' +
+ 'source[A|src|type|media][]' +
+ 'audio[A|src|autobuffer|autoplay|loop|controls][source]' +
+ 'video[A|src|autobuffer|autoplay|loop|controls|width|height|poster][source]' +
+ 'hr[A][]' +
+ 'form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target][C]' +
+ 'fieldset[A|disabled|form|name][C|legend]' +
+ 'label[A|form|for][B]' +
+ 'input[A|type|accept|alt|autocomplete|autofocus|checked|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|height|list|max|maxlength|min|' +
+ 'multiple|pattern|placeholder|readonly|required|size|src|step|width|files|value|name][]' +
+ 'button[A|autofocus|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|name|value|type][B]' +
+ 'select[A|autofocus|disabled|form|multiple|name|size][option|optgroup]' +
+ 'datalist[A][B|option]' +
+ 'optgroup[A|disabled|label][option]' +
+ 'option[A|disabled|selected|label|value][]' +
+ 'textarea[A|autofocus|disabled|form|maxlength|name|placeholder|readonly|required|rows|cols|wrap][]' +
+ 'keygen[A|autofocus|challenge|disabled|form|keytype|name][]' +
+ 'output[A|for|form|name][B]' +
+ 'canvas[A|width|height][]' +
+ 'map[A|name][B|C]' +
+ 'area[A|shape|coords|href|alt|target|media|rel|ping|type][]' +
+ 'mathml[A][]' +
+ 'svg[A][]' +
+ 'table[A|border][caption|colgroup|thead|tfoot|tbody|tr]' +
+ 'caption[A][C]' +
+ 'colgroup[A|span][col]' +
+ 'col[A|span][]' +
+ 'thead[A][tr]' +
+ 'tfoot[A][tr]' +
+ 'tbody[A][tr]' +
+ 'tr[A][th|td]' +
+ 'th[A|headers|rowspan|colspan|scope][B]' +
+ 'td[A|headers|rowspan|colspan][C]' +
+ 'wbr[A][]'
+ );
+ }
+
+ return html5;
+ };
+
+ function getHTML4() {
+ var html4 = mapCache.html4;
+
+ if (!html4) {
+ // This is the XHTML 1.0 transitional elements with it's attributes and children packed to reduce it's size
+ html4 = mapCache.html4 = unpack({
+ Z : 'H|K|N|O|P',
+ Y : 'X|form|R|Q',
+ ZG : 'E|span|width|align|char|charoff|valign',
+ X : 'p|T|div|U|W|isindex|fieldset|table',
+ ZF : 'E|align|char|charoff|valign',
+ W : 'pre|hr|blockquote|address|center|noframes',
+ ZE : 'abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height',
+ ZD : '[E][S]',
+ U : 'ul|ol|dl|menu|dir',
+ ZC : 'p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q',
+ T : 'h1|h2|h3|h4|h5|h6',
+ ZB : 'X|S|Q',
+ S : 'R|P',
+ ZA : 'a|G|J|M|O|P',
+ R : 'a|H|K|N|O',
+ Q : 'noscript|P',
+ P : 'ins|del|script',
+ O : 'input|select|textarea|label|button',
+ N : 'M|L',
+ M : 'em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym',
+ L : 'sub|sup',
+ K : 'J|I',
+ J : 'tt|i|b|u|s|strike',
+ I : 'big|small|font|basefont',
+ H : 'G|F',
+ G : 'br|span|bdo',
+ F : 'object|applet|img|map|iframe',
+ E : 'A|B|C',
+ D : 'accesskey|tabindex|onfocus|onblur',
+ C : 'onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup',
+ B : 'lang|xml:lang|dir',
+ A : 'id|class|style|title'
+ }, 'script[id|charset|type|language|src|defer|xml:space][]' +
+ 'style[B|id|type|media|title|xml:space][]' +
+ 'object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]' +
+ 'param[id|name|value|valuetype|type][]' +
+ 'p[E|align][#|S]' +
+ 'a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]' +
+ 'br[A|clear][]' +
+ 'span[E][#|S]' +
+ 'bdo[A|C|B][#|S]' +
+ 'applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]' +
+ 'h1[E|align][#|S]' +
+ 'img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]' +
+ 'map[B|C|A|name][X|form|Q|area]' +
+ 'h2[E|align][#|S]' +
+ 'iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]' +
+ 'h3[E|align][#|S]' +
+ 'tt[E][#|S]' +
+ 'i[E][#|S]' +
+ 'b[E][#|S]' +
+ 'u[E][#|S]' +
+ 's[E][#|S]' +
+ 'strike[E][#|S]' +
+ 'big[E][#|S]' +
+ 'small[E][#|S]' +
+ 'font[A|B|size|color|face][#|S]' +
+ 'basefont[id|size|color|face][]' +
+ 'em[E][#|S]' +
+ 'strong[E][#|S]' +
+ 'dfn[E][#|S]' +
+ 'code[E][#|S]' +
+ 'q[E|cite][#|S]' +
+ 'samp[E][#|S]' +
+ 'kbd[E][#|S]' +
+ 'var[E][#|S]' +
+ 'cite[E][#|S]' +
+ 'abbr[E][#|S]' +
+ 'acronym[E][#|S]' +
+ 'sub[E][#|S]' +
+ 'sup[E][#|S]' +
+ 'input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]' +
+ 'select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]' +
+ 'optgroup[E|disabled|label][option]' +
+ 'option[E|selected|disabled|label|value][]' +
+ 'textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]' +
+ 'label[E|for|accesskey|onfocus|onblur][#|S]' +
+ 'button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]' +
+ 'h4[E|align][#|S]' +
+ 'ins[E|cite|datetime][#|Y]' +
+ 'h5[E|align][#|S]' +
+ 'del[E|cite|datetime][#|Y]' +
+ 'h6[E|align][#|S]' +
+ 'div[E|align][#|Y]' +
+ 'ul[E|type|compact][li]' +
+ 'li[E|type|value][#|Y]' +
+ 'ol[E|type|compact|start][li]' +
+ 'dl[E|compact][dt|dd]' +
+ 'dt[E][#|S]' +
+ 'dd[E][#|Y]' +
+ 'menu[E|compact][li]' +
+ 'dir[E|compact][li]' +
+ 'pre[E|width|xml:space][#|ZA]' +
+ 'hr[E|align|noshade|size|width][]' +
+ 'blockquote[E|cite][#|Y]' +
+ 'address[E][#|S|p]' +
+ 'center[E][#|Y]' +
+ 'noframes[E][#|Y]' +
+ 'isindex[A|B|prompt][]' +
+ 'fieldset[E][#|legend|Y]' +
+ 'legend[E|accesskey|align][#|S]' +
+ 'table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]' +
+ 'caption[E|align][#|S]' +
+ 'col[ZG][]' +
+ 'colgroup[ZG][col]' +
+ 'thead[ZF][tr]' +
+ 'tr[ZF|bgcolor][th|td]' +
+ 'th[E|ZE][#|Y]' +
+ 'form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]' +
+ 'noscript[E][#|Y]' +
+ 'td[E|ZE][#|Y]' +
+ 'tfoot[ZF][tr]' +
+ 'tbody[ZF][tr]' +
+ 'area[E|D|shape|coords|href|nohref|alt|target][]' +
+ 'base[id|href|target][]' +
+ 'body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]'
+ );
+ }
+
+ return html4;
+ };
+
+ tinymce.html.Schema = function(settings) {
+ var self = this, elements = {}, children = {}, patternElements = [], validStyles, schemaItems;
+ var whiteSpaceElementsMap, selfClosingElementsMap, shortEndedElementsMap, boolAttrMap, blockElementsMap, nonEmptyElementsMap, customElementsMap = {};
+
+ // Creates an lookup table map object for the specified option or the default value
+ function createLookupTable(option, default_value, extend) {
+ var value = settings[option];
+
+ if (!value) {
+ // Get cached default map or make it if needed
+ value = mapCache[option];
+
+ if (!value) {
+ value = makeMap(default_value, ' ', makeMap(default_value.toUpperCase(), ' '));
+ value = tinymce.extend(value, extend);
+
+ mapCache[option] = value;
+ }
+ } else {
+ // Create custom map
+ value = makeMap(value, ',', makeMap(value.toUpperCase(), ' '));
+ }
+
+ return value;
+ };
+
+ settings = settings || {};
+ schemaItems = settings.schema == "html5" ? getHTML5() : getHTML4();
+
+ // Allow all elements and attributes if verify_html is set to false
+ if (settings.verify_html === false)
+ settings.valid_elements = '*[*]';
+
+ // Build styles list
+ if (settings.valid_styles) {
+ validStyles = {};
+
+ // Convert styles into a rule list
+ each(settings.valid_styles, function(value, key) {
+ validStyles[key] = tinymce.explode(value);
+ });
+ }
+
+ // Setup map objects
+ whiteSpaceElementsMap = createLookupTable('whitespace_elements', 'pre script noscript style textarea');
+ selfClosingElementsMap = createLookupTable('self_closing_elements', 'colgroup dd dt li option p td tfoot th thead tr');
+ shortEndedElementsMap = createLookupTable('short_ended_elements', 'area base basefont br col frame hr img input isindex link meta param embed source wbr');
+ boolAttrMap = createLookupTable('boolean_attributes', 'checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls');
+ nonEmptyElementsMap = createLookupTable('non_empty_elements', 'td th iframe video audio object', shortEndedElementsMap);
+ textBlockElementsMap = createLookupTable('text_block_elements', 'h1 h2 h3 h4 h5 h6 p div address pre form ' +
+ 'blockquote center dir fieldset header footer article section hgroup aside nav figure');
+ blockElementsMap = createLookupTable('block_elements', 'hr table tbody thead tfoot ' +
+ 'th tr td li ol ul caption dl dt dd noscript menu isindex samp option datalist select optgroup', textBlockElementsMap);
+
+ // Converts a wildcard expression string to a regexp for example *a will become /.*a/.
+ function patternToRegExp(str) {
+ return new RegExp('^' + str.replace(/([?+*])/g, '.$1') + '$');
+ };
+
+ // Parses the specified valid_elements string and adds to the current rules
+ // This function is a bit hard to read since it's heavily optimized for speed
+ function addValidElements(valid_elements) {
+ var ei, el, ai, al, yl, matches, element, attr, attrData, elementName, attrName, attrType, attributes, attributesOrder,
+ prefix, outputName, globalAttributes, globalAttributesOrder, transElement, key, childKey, value,
+ elementRuleRegExp = /^([#+\-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,
+ attrRuleRegExp = /^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,
+ hasPatternsRegExp = /[*?+]/;
+
+ if (valid_elements) {
+ // Split valid elements into an array with rules
+ valid_elements = split(valid_elements);
+
+ if (elements['@']) {
+ globalAttributes = elements['@'].attributes;
+ globalAttributesOrder = elements['@'].attributesOrder;
+ }
+
+ // Loop all rules
+ for (ei = 0, el = valid_elements.length; ei < el; ei++) {
+ // Parse element rule
+ matches = elementRuleRegExp.exec(valid_elements[ei]);
+ if (matches) {
+ // Setup local names for matches
+ prefix = matches[1];
+ elementName = matches[2];
+ outputName = matches[3];
+ attrData = matches[4];
+
+ // Create new attributes and attributesOrder
+ attributes = {};
+ attributesOrder = [];
+
+ // Create the new element
+ element = {
+ attributes : attributes,
+ attributesOrder : attributesOrder
+ };
+
+ // Padd empty elements prefix
+ if (prefix === '#')
+ element.paddEmpty = true;
+
+ // Remove empty elements prefix
+ if (prefix === '-')
+ element.removeEmpty = true;
+
+ // Copy attributes from global rule into current rule
+ if (globalAttributes) {
+ for (key in globalAttributes)
+ attributes[key] = globalAttributes[key];
+
+ attributesOrder.push.apply(attributesOrder, globalAttributesOrder);
+ }
+
+ // Attributes defined
+ if (attrData) {
+ attrData = split(attrData, '|');
+ for (ai = 0, al = attrData.length; ai < al; ai++) {
+ matches = attrRuleRegExp.exec(attrData[ai]);
+ if (matches) {
+ attr = {};
+ attrType = matches[1];
+ attrName = matches[2].replace(/::/g, ':');
+ prefix = matches[3];
+ value = matches[4];
+
+ // Required
+ if (attrType === '!') {
+ element.attributesRequired = element.attributesRequired || [];
+ element.attributesRequired.push(attrName);
+ attr.required = true;
+ }
+
+ // Denied from global
+ if (attrType === '-') {
+ delete attributes[attrName];
+ attributesOrder.splice(tinymce.inArray(attributesOrder, attrName), 1);
+ continue;
+ }
+
+ // Default value
+ if (prefix) {
+ // Default value
+ if (prefix === '=') {
+ element.attributesDefault = element.attributesDefault || [];
+ element.attributesDefault.push({name: attrName, value: value});
+ attr.defaultValue = value;
+ }
+
+ // Forced value
+ if (prefix === ':') {
+ element.attributesForced = element.attributesForced || [];
+ element.attributesForced.push({name: attrName, value: value});
+ attr.forcedValue = value;
+ }
+
+ // Required values
+ if (prefix === '<')
+ attr.validValues = makeMap(value, '?');
+ }
+
+ // Check for attribute patterns
+ if (hasPatternsRegExp.test(attrName)) {
+ element.attributePatterns = element.attributePatterns || [];
+ attr.pattern = patternToRegExp(attrName);
+ element.attributePatterns.push(attr);
+ } else {
+ // Add attribute to order list if it doesn't already exist
+ if (!attributes[attrName])
+ attributesOrder.push(attrName);
+
+ attributes[attrName] = attr;
+ }
+ }
+ }
+ }
+
+ // Global rule, store away these for later usage
+ if (!globalAttributes && elementName == '@') {
+ globalAttributes = attributes;
+ globalAttributesOrder = attributesOrder;
+ }
+
+ // Handle substitute elements such as b/strong
+ if (outputName) {
+ element.outputName = elementName;
+ elements[outputName] = element;
+ }
+
+ // Add pattern or exact element
+ if (hasPatternsRegExp.test(elementName)) {
+ element.pattern = patternToRegExp(elementName);
+ patternElements.push(element);
+ } else
+ elements[elementName] = element;
+ }
+ }
+ }
+ };
+
+ function setValidElements(valid_elements) {
+ elements = {};
+ patternElements = [];
+
+ addValidElements(valid_elements);
+
+ each(schemaItems, function(element, name) {
+ children[name] = element.children;
+ });
+ };
+
+ // Adds custom non HTML elements to the schema
+ function addCustomElements(custom_elements) {
+ var customElementRegExp = /^(~)?(.+)$/;
+
+ if (custom_elements) {
+ each(split(custom_elements), function(rule) {
+ var matches = customElementRegExp.exec(rule),
+ inline = matches[1] === '~',
+ cloneName = inline ? 'span' : 'div',
+ name = matches[2];
+
+ children[name] = children[cloneName];
+ customElementsMap[name] = cloneName;
+
+ // If it's not marked as inline then add it to valid block elements
+ if (!inline) {
+ blockElementsMap[name.toUpperCase()] = {};
+ blockElementsMap[name] = {};
+ }
+
+ // Add elements clone if needed
+ if (!elements[name]) {
+ elements[name] = elements[cloneName];
+ }
+
+ // Add custom elements at span/div positions
+ each(children, function(element, child) {
+ if (element[cloneName])
+ element[name] = element[cloneName];
+ });
+ });
+ }
+ };
+
+ // Adds valid children to the schema object
+ function addValidChildren(valid_children) {
+ var childRuleRegExp = /^([+\-]?)(\w+)\[([^\]]+)\]$/;
+
+ if (valid_children) {
+ each(split(valid_children), function(rule) {
+ var matches = childRuleRegExp.exec(rule), parent, prefix;
+
+ if (matches) {
+ prefix = matches[1];
+
+ // Add/remove items from default
+ if (prefix)
+ parent = children[matches[2]];
+ else
+ parent = children[matches[2]] = {'#comment' : {}};
+
+ parent = children[matches[2]];
+
+ each(split(matches[3], '|'), function(child) {
+ if (prefix === '-')
+ delete parent[child];
+ else
+ parent[child] = {};
+ });
+ }
+ });
+ }
+ };
+
+ function getElementRule(name) {
+ var element = elements[name], i;
+
+ // Exact match found
+ if (element)
+ return element;
+
+ // No exact match then try the patterns
+ i = patternElements.length;
+ while (i--) {
+ element = patternElements[i];
+
+ if (element.pattern.test(name))
+ return element;
+ }
+ };
+
+ if (!settings.valid_elements) {
+ // No valid elements defined then clone the elements from the schema spec
+ each(schemaItems, function(element, name) {
+ elements[name] = {
+ attributes : element.attributes,
+ attributesOrder : element.attributesOrder
+ };
+
+ children[name] = element.children;
+ });
+
+ // Switch these on HTML4
+ if (settings.schema != "html5") {
+ each(split('strong/b,em/i'), function(item) {
+ item = split(item, '/');
+ elements[item[1]].outputName = item[0];
+ });
+ }
+
+ // Add default alt attribute for images
+ elements.img.attributesDefault = [{name: 'alt', value: ''}];
+
+ // Remove these if they are empty by default
+ each(split('ol,ul,sub,sup,blockquote,span,font,a,table,tbody,tr,strong,em,b,i'), function(name) {
+ if (elements[name]) {
+ elements[name].removeEmpty = true;
+ }
+ });
+
+ // Padd these by default
+ each(split('p,h1,h2,h3,h4,h5,h6,th,td,pre,div,address,caption'), function(name) {
+ elements[name].paddEmpty = true;
+ });
+ } else
+ setValidElements(settings.valid_elements);
+
+ addCustomElements(settings.custom_elements);
+ addValidChildren(settings.valid_children);
+ addValidElements(settings.extended_valid_elements);
+
+ // Todo: Remove this when we fix list handling to be valid
+ addValidChildren('+ol[ul|ol],+ul[ul|ol]');
+
+ // Delete invalid elements
+ if (settings.invalid_elements) {
+ tinymce.each(tinymce.explode(settings.invalid_elements), function(item) {
+ if (elements[item])
+ delete elements[item];
+ });
+ }
+
+ // If the user didn't allow span only allow internal spans
+ if (!getElementRule('span'))
+ addValidElements('span[!data-mce-type|*]');
+
+ self.children = children;
+
+ self.styles = validStyles;
+
+ self.getBoolAttrs = function() {
+ return boolAttrMap;
+ };
+
+ self.getBlockElements = function() {
+ return blockElementsMap;
+ };
+
+ self.getTextBlockElements = function() {
+ return textBlockElementsMap;
+ };
+
+ self.getShortEndedElements = function() {
+ return shortEndedElementsMap;
+ };
+
+ self.getSelfClosingElements = function() {
+ return selfClosingElementsMap;
+ };
+
+ self.getNonEmptyElements = function() {
+ return nonEmptyElementsMap;
+ };
+
+ self.getWhiteSpaceElements = function() {
+ return whiteSpaceElementsMap;
+ };
+
+ self.isValidChild = function(name, child) {
+ var parent = children[name];
+
+ return !!(parent && parent[child]);
+ };
+
+ self.isValid = function(name, attr) {
+ var attrPatterns, i, rule = getElementRule(name);
+
+ // Check if it's a valid element
+ if (rule) {
+ if (attr) {
+ // Check if attribute name exists
+ if (rule.attributes[attr]) {
+ return true;
+ }
+
+ // Check if attribute matches a regexp pattern
+ attrPatterns = rule.attributePatterns;
+ if (attrPatterns) {
+ i = attrPatterns.length;
+ while (i--) {
+ if (attrPatterns[i].pattern.test(name)) {
+ return true;
+ }
+ }
+ }
+ } else {
+ return true;
+ }
+ }
+
+ // No match
+ return false;
+ };
+
+ self.getElementRule = getElementRule;
+
+ self.getCustomElements = function() {
+ return customElementsMap;
+ };
+
+ self.addValidElements = addValidElements;
+
+ self.setValidElements = setValidElements;
+
+ self.addCustomElements = addCustomElements;
+
+ self.addValidChildren = addValidChildren;
+
+ self.elements = elements;
+ };
+})(tinymce);
+
+(function(tinymce) {
+ tinymce.html.SaxParser = function(settings, schema) {
+ var self = this, noop = function() {};
+
+ settings = settings || {};
+ self.schema = schema = schema || new tinymce.html.Schema();
+
+ if (settings.fix_self_closing !== false)
+ settings.fix_self_closing = true;
+
+ // Add handler functions from settings and setup default handlers
+ tinymce.each('comment cdata text start end pi doctype'.split(' '), function(name) {
+ if (name)
+ self[name] = settings[name] || noop;
+ });
+
+ self.parse = function(html) {
+ var self = this, matches, index = 0, value, endRegExp, stack = [], attrList, i, text, name, isInternalElement, removeInternalElements,
+ shortEndedElements, fillAttrsMap, isShortEnded, validate, elementRule, isValidElement, attr, attribsValue, invalidPrefixRegExp,
+ validAttributesMap, validAttributePatterns, attributesRequired, attributesDefault, attributesForced, selfClosing,
+ tokenRegExp, attrRegExp, specialElements, attrValue, idCount = 0, decode = tinymce.html.Entities.decode, fixSelfClosing, isIE;
+
+ function processEndTag(name) {
+ var pos, i;
+
+ // Find position of parent of the same type
+ pos = stack.length;
+ while (pos--) {
+ if (stack[pos].name === name)
+ break;
+ }
+
+ // Found parent
+ if (pos >= 0) {
+ // Close all the open elements
+ for (i = stack.length - 1; i >= pos; i--) {
+ name = stack[i];
+
+ if (name.valid)
+ self.end(name.name);
+ }
+
+ // Remove the open elements from the stack
+ stack.length = pos;
+ }
+ };
+
+ function parseAttribute(match, name, value, val2, val3) {
+ var attrRule, i;
+
+ name = name.toLowerCase();
+ value = name in fillAttrsMap ? name : decode(value || val2 || val3 || ''); // Handle boolean attribute than value attribute
+
+ // Validate name and value
+ if (validate && !isInternalElement && name.indexOf('data-mce-') !== 0) {
+ attrRule = validAttributesMap[name];
+
+ // Find rule by pattern matching
+ if (!attrRule && validAttributePatterns) {
+ i = validAttributePatterns.length;
+ while (i--) {
+ attrRule = validAttributePatterns[i];
+ if (attrRule.pattern.test(name))
+ break;
+ }
+
+ // No rule matched
+ if (i === -1)
+ attrRule = null;
+ }
+
+ // No attribute rule found
+ if (!attrRule)
+ return;
+
+ // Validate value
+ if (attrRule.validValues && !(value in attrRule.validValues))
+ return;
+ }
+
+ // Add attribute to list and map
+ attrList.map[name] = value;
+ attrList.push({
+ name: name,
+ value: value
+ });
+ };
+
+ // Precompile RegExps and map objects
+ tokenRegExp = new RegExp('<(?:' +
+ '(?:!--([\\w\\W]*?)-->)|' + // Comment
+ '(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|' + // CDATA
+ '(?:!DOCTYPE([\\w\\W]*?)>)|' + // DOCTYPE
+ '(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|' + // PI
+ '(?:\\/([^>]+)>)|' + // End element
+ '(?:([A-Za-z0-9\\-\\:\\.]+)((?:\\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\\/|\\s+)>)' + // Start element
+ ')', 'g');
+
+ attrRegExp = /([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g;
+ specialElements = {
+ 'script' : /<\/script[^>]*>/gi,
+ 'style' : /<\/style[^>]*>/gi,
+ 'noscript' : /<\/noscript[^>]*>/gi
+ };
+
+ // Setup lookup tables for empty elements and boolean attributes
+ shortEndedElements = schema.getShortEndedElements();
+ selfClosing = settings.self_closing_elements || schema.getSelfClosingElements();
+ fillAttrsMap = schema.getBoolAttrs();
+ validate = settings.validate;
+ removeInternalElements = settings.remove_internals;
+ fixSelfClosing = settings.fix_self_closing;
+ isIE = tinymce.isIE;
+ invalidPrefixRegExp = /^:/;
+
+ while (matches = tokenRegExp.exec(html)) {
+ // Text
+ if (index < matches.index)
+ self.text(decode(html.substr(index, matches.index - index)));
+
+ if (value = matches[6]) { // End element
+ value = value.toLowerCase();
+
+ // IE will add a ":" in front of elements it doesn't understand like custom elements or HTML5 elements
+ if (isIE && invalidPrefixRegExp.test(value))
+ value = value.substr(1);
+
+ processEndTag(value);
+ } else if (value = matches[7]) { // Start element
+ value = value.toLowerCase();
+
+ // IE will add a ":" in front of elements it doesn't understand like custom elements or HTML5 elements
+ if (isIE && invalidPrefixRegExp.test(value))
+ value = value.substr(1);
+
+ isShortEnded = value in shortEndedElements;
+
+ // Is self closing tag for example an <li> after an open <li>
+ if (fixSelfClosing && selfClosing[value] && stack.length > 0 && stack[stack.length - 1].name === value)
+ processEndTag(value);
+
+ // Validate element
+ if (!validate || (elementRule = schema.getElementRule(value))) {
+ isValidElement = true;
+
+ // Grab attributes map and patters when validation is enabled
+ if (validate) {
+ validAttributesMap = elementRule.attributes;
+ validAttributePatterns = elementRule.attributePatterns;
+ }
+
+ // Parse attributes
+ if (attribsValue = matches[8]) {
+ isInternalElement = attribsValue.indexOf('data-mce-type') !== -1; // Check if the element is an internal element
+
+ // If the element has internal attributes then remove it if we are told to do so
+ if (isInternalElement && removeInternalElements)
+ isValidElement = false;
+
+ attrList = [];
+ attrList.map = {};
+
+ attribsValue.replace(attrRegExp, parseAttribute);
+ } else {
+ attrList = [];
+ attrList.map = {};
+ }
+
+ // Process attributes if validation is enabled
+ if (validate && !isInternalElement) {
+ attributesRequired = elementRule.attributesRequired;
+ attributesDefault = elementRule.attributesDefault;
+ attributesForced = elementRule.attributesForced;
+
+ // Handle forced attributes
+ if (attributesForced) {
+ i = attributesForced.length;
+ while (i--) {
+ attr = attributesForced[i];
+ name = attr.name;
+ attrValue = attr.value;
+
+ if (attrValue === '{$uid}')
+ attrValue = 'mce_' + idCount++;
+
+ attrList.map[name] = attrValue;
+ attrList.push({name: name, value: attrValue});
+ }
+ }
+
+ // Handle default attributes
+ if (attributesDefault) {
+ i = attributesDefault.length;
+ while (i--) {
+ attr = attributesDefault[i];
+ name = attr.name;
+
+ if (!(name in attrList.map)) {
+ attrValue = attr.value;
+
+ if (attrValue === '{$uid}')
+ attrValue = 'mce_' + idCount++;
+
+ attrList.map[name] = attrValue;
+ attrList.push({name: name, value: attrValue});
+ }
+ }
+ }
+
+ // Handle required attributes
+ if (attributesRequired) {
+ i = attributesRequired.length;
+ while (i--) {
+ if (attributesRequired[i] in attrList.map)
+ break;
+ }
+
+ // None of the required attributes where found
+ if (i === -1)
+ isValidElement = false;
+ }
+
+ // Invalidate element if it's marked as bogus
+ if (attrList.map['data-mce-bogus'])
+ isValidElement = false;
+ }
+
+ if (isValidElement)
+ self.start(value, attrList, isShortEnded);
+ } else
+ isValidElement = false;
+
+ // Treat script, noscript and style a bit different since they may include code that looks like elements
+ if (endRegExp = specialElements[value]) {
+ endRegExp.lastIndex = index = matches.index + matches[0].length;
+
+ if (matches = endRegExp.exec(html)) {
+ if (isValidElement)
+ text = html.substr(index, matches.index - index);
+
+ index = matches.index + matches[0].length;
+ } else {
+ text = html.substr(index);
+ index = html.length;
+ }
+
+ if (isValidElement && text.length > 0)
+ self.text(text, true);
+
+ if (isValidElement)
+ self.end(value);
+
+ tokenRegExp.lastIndex = index;
+ continue;
+ }
+
+ // Push value on to stack
+ if (!isShortEnded) {
+ if (!attribsValue || attribsValue.indexOf('/') != attribsValue.length - 1)
+ stack.push({name: value, valid: isValidElement});
+ else if (isValidElement)
+ self.end(value);
+ }
+ } else if (value = matches[1]) { // Comment
+ self.comment(value);
+ } else if (value = matches[2]) { // CDATA
+ self.cdata(value);
+ } else if (value = matches[3]) { // DOCTYPE
+ self.doctype(value);
+ } else if (value = matches[4]) { // PI
+ self.pi(value, matches[5]);
+ }
+
+ index = matches.index + matches[0].length;
+ }
+
+ // Text
+ if (index < html.length)
+ self.text(decode(html.substr(index)));
+
+ // Close any open elements
+ for (i = stack.length - 1; i >= 0; i--) {
+ value = stack[i];
+
+ if (value.valid)
+ self.end(value.name);
+ }
+ };
+ }
+})(tinymce);
+
+(function(tinymce) {
+ var whiteSpaceRegExp = /^[ \t\r\n]*$/, typeLookup = {
+ '#text' : 3,
+ '#comment' : 8,
+ '#cdata' : 4,
+ '#pi' : 7,
+ '#doctype' : 10,
+ '#document-fragment' : 11
+ };
+
+ // Walks the tree left/right
+ function walk(node, root_node, prev) {
+ var sibling, parent, startName = prev ? 'lastChild' : 'firstChild', siblingName = prev ? 'prev' : 'next';
+
+ // Walk into nodes if it has a start
+ if (node[startName])
+ return node[startName];
+
+ // Return the sibling if it has one
+ if (node !== root_node) {
+ sibling = node[siblingName];
+
+ if (sibling)
+ return sibling;
+
+ // Walk up the parents to look for siblings
+ for (parent = node.parent; parent && parent !== root_node; parent = parent.parent) {
+ sibling = parent[siblingName];
+
+ if (sibling)
+ return sibling;
+ }
+ }
+ };
+
+ function Node(name, type) {
+ this.name = name;
+ this.type = type;
+
+ if (type === 1) {
+ this.attributes = [];
+ this.attributes.map = {};
+ }
+ }
+
+ tinymce.extend(Node.prototype, {
+ replace : function(node) {
+ var self = this;
+
+ if (node.parent)
+ node.remove();
+
+ self.insert(node, self);
+ self.remove();
+
+ return self;
+ },
+
+ attr : function(name, value) {
+ var self = this, attrs, i, undef;
+
+ if (typeof name !== "string") {
+ for (i in name)
+ self.attr(i, name[i]);
+
+ return self;
+ }
+
+ if (attrs = self.attributes) {
+ if (value !== undef) {
+ // Remove attribute
+ if (value === null) {
+ if (name in attrs.map) {
+ delete attrs.map[name];
+
+ i = attrs.length;
+ while (i--) {
+ if (attrs[i].name === name) {
+ attrs = attrs.splice(i, 1);
+ return self;
+ }
+ }
+ }
+
+ return self;
+ }
+
+ // Set attribute
+ if (name in attrs.map) {
+ // Set attribute
+ i = attrs.length;
+ while (i--) {
+ if (attrs[i].name === name) {
+ attrs[i].value = value;
+ break;
+ }
+ }
+ } else
+ attrs.push({name: name, value: value});
+
+ attrs.map[name] = value;
+
+ return self;
+ } else {
+ return attrs.map[name];
+ }
+ }
+ },
+
+ clone : function() {
+ var self = this, clone = new Node(self.name, self.type), i, l, selfAttrs, selfAttr, cloneAttrs;
+
+ // Clone element attributes
+ if (selfAttrs = self.attributes) {
+ cloneAttrs = [];
+ cloneAttrs.map = {};
+
+ for (i = 0, l = selfAttrs.length; i < l; i++) {
+ selfAttr = selfAttrs[i];
+
+ // Clone everything except id
+ if (selfAttr.name !== 'id') {
+ cloneAttrs[cloneAttrs.length] = {name: selfAttr.name, value: selfAttr.value};
+ cloneAttrs.map[selfAttr.name] = selfAttr.value;
+ }
+ }
+
+ clone.attributes = cloneAttrs;
+ }
+
+ clone.value = self.value;
+ clone.shortEnded = self.shortEnded;
+
+ return clone;
+ },
+
+ wrap : function(wrapper) {
+ var self = this;
+
+ self.parent.insert(wrapper, self);
+ wrapper.append(self);
+
+ return self;
+ },
+
+ unwrap : function() {
+ var self = this, node, next;
+
+ for (node = self.firstChild; node; ) {
+ next = node.next;
+ self.insert(node, self, true);
+ node = next;
+ }
+
+ self.remove();
+ },
+
+ remove : function() {
+ var self = this, parent = self.parent, next = self.next, prev = self.prev;
+
+ if (parent) {
+ if (parent.firstChild === self) {
+ parent.firstChild = next;
+
+ if (next)
+ next.prev = null;
+ } else {
+ prev.next = next;
+ }
+
+ if (parent.lastChild === self) {
+ parent.lastChild = prev;
+
+ if (prev)
+ prev.next = null;
+ } else {
+ next.prev = prev;
+ }
+
+ self.parent = self.next = self.prev = null;
+ }
+
+ return self;
+ },
+
+ append : function(node) {
+ var self = this, last;
+
+ if (node.parent)
+ node.remove();
+
+ last = self.lastChild;
+ if (last) {
+ last.next = node;
+ node.prev = last;
+ self.lastChild = node;
+ } else
+ self.lastChild = self.firstChild = node;
+
+ node.parent = self;
+
+ return node;
+ },
+
+ insert : function(node, ref_node, before) {
+ var parent;
+
+ if (node.parent)
+ node.remove();
+
+ parent = ref_node.parent || this;
+
+ if (before) {
+ if (ref_node === parent.firstChild)
+ parent.firstChild = node;
+ else
+ ref_node.prev.next = node;
+
+ node.prev = ref_node.prev;
+ node.next = ref_node;
+ ref_node.prev = node;
+ } else {
+ if (ref_node === parent.lastChild)
+ parent.lastChild = node;
+ else
+ ref_node.next.prev = node;
+
+ node.next = ref_node.next;
+ node.prev = ref_node;
+ ref_node.next = node;
+ }
+
+ node.parent = parent;
+
+ return node;
+ },
+
+ getAll : function(name) {
+ var self = this, node, collection = [];
+
+ for (node = self.firstChild; node; node = walk(node, self)) {
+ if (node.name === name)
+ collection.push(node);
+ }
+
+ return collection;
+ },
+
+ empty : function() {
+ var self = this, nodes, i, node;
+
+ // Remove all children
+ if (self.firstChild) {
+ nodes = [];
+
+ // Collect the children
+ for (node = self.firstChild; node; node = walk(node, self))
+ nodes.push(node);
+
+ // Remove the children
+ i = nodes.length;
+ while (i--) {
+ node = nodes[i];
+ node.parent = node.firstChild = node.lastChild = node.next = node.prev = null;
+ }
+ }
+
+ self.firstChild = self.lastChild = null;
+
+ return self;
+ },
+
+ isEmpty : function(elements) {
+ var self = this, node = self.firstChild, i, name;
+
+ if (node) {
+ do {
+ if (node.type === 1) {
+ // Ignore bogus elements
+ if (node.attributes.map['data-mce-bogus'])
+ continue;
+
+ // Keep empty elements like <img />
+ if (elements[node.name])
+ return false;
+
+ // Keep elements with data attributes or name attribute like <a name="1"></a>
+ i = node.attributes.length;
+ while (i--) {
+ name = node.attributes[i].name;
+ if (name === "name" || name.indexOf('data-mce-') === 0)
+ return false;
+ }
+ }
+
+ // Keep comments
+ if (node.type === 8)
+ return false;
+
+ // Keep non whitespace text nodes
+ if ((node.type === 3 && !whiteSpaceRegExp.test(node.value)))
+ return false;
+ } while (node = walk(node, self));
+ }
+
+ return true;
+ },
+
+ walk : function(prev) {
+ return walk(this, null, prev);
+ }
+ });
+
+ tinymce.extend(Node, {
+ create : function(name, attrs) {
+ var node, attrName;
+
+ // Create node
+ node = new Node(name, typeLookup[name] || 1);
+
+ // Add attributes if needed
+ if (attrs) {
+ for (attrName in attrs)
+ node.attr(attrName, attrs[attrName]);
+ }
+
+ return node;
+ }
+ });
+
+ tinymce.html.Node = Node;
+})(tinymce);
+
+(function(tinymce) {
+ var Node = tinymce.html.Node;
+
+ tinymce.html.DomParser = function(settings, schema) {
+ var self = this, nodeFilters = {}, attributeFilters = [], matchedNodes = {}, matchedAttributes = {};
+
+ settings = settings || {};
+ settings.validate = "validate" in settings ? settings.validate : true;
+ settings.root_name = settings.root_name || 'body';
+ self.schema = schema = schema || new tinymce.html.Schema();
+
+ function fixInvalidChildren(nodes) {
+ var ni, node, parent, parents, newParent, currentNode, tempNode, childNode, i,
+ childClone, nonEmptyElements, nonSplitableElements, textBlockElements, sibling, nextNode;
+
+ nonSplitableElements = tinymce.makeMap('tr,td,th,tbody,thead,tfoot,table');
+ nonEmptyElements = schema.getNonEmptyElements();
+ textBlockElements = schema.getTextBlockElements();
+
+ for (ni = 0; ni < nodes.length; ni++) {
+ node = nodes[ni];
+
+ // Already removed or fixed
+ if (!node.parent || node.fixed)
+ continue;
+
+ // If the invalid element is a text block and the text block is within a parent LI element
+ // Then unwrap the first text block and convert other sibling text blocks to LI elements similar to Word/Open Office
+ if (textBlockElements[node.name] && node.parent.name == 'li') {
+ // Move sibling text blocks after LI element
+ sibling = node.next;
+ while (sibling) {
+ if (textBlockElements[sibling.name]) {
+ sibling.name = 'li';
+ sibling.fixed = true;
+ node.parent.insert(sibling, node.parent);
+ } else {
+ break;
+ }
+
+ sibling = sibling.next;
+ }
+
+ // Unwrap current text block
+ node.unwrap(node);
+ continue;
+ }
+
+ // Get list of all parent nodes until we find a valid parent to stick the child into
+ parents = [node];
+ for (parent = node.parent; parent && !schema.isValidChild(parent.name, node.name) && !nonSplitableElements[parent.name]; parent = parent.parent)
+ parents.push(parent);
+
+ // Found a suitable parent
+ if (parent && parents.length > 1) {
+ // Reverse the array since it makes looping easier
+ parents.reverse();
+
+ // Clone the related parent and insert that after the moved node
+ newParent = currentNode = self.filterNode(parents[0].clone());
+
+ // Start cloning and moving children on the left side of the target node
+ for (i = 0; i < parents.length - 1; i++) {
+ if (schema.isValidChild(currentNode.name, parents[i].name)) {
+ tempNode = self.filterNode(parents[i].clone());
+ currentNode.append(tempNode);
+ } else
+ tempNode = currentNode;
+
+ for (childNode = parents[i].firstChild; childNode && childNode != parents[i + 1]; ) {
+ nextNode = childNode.next;
+ tempNode.append(childNode);
+ childNode = nextNode;
+ }
+
+ currentNode = tempNode;
+ }
+
+ if (!newParent.isEmpty(nonEmptyElements)) {
+ parent.insert(newParent, parents[0], true);
+ parent.insert(node, newParent);
+ } else {
+ parent.insert(node, parents[0], true);
+ }
+
+ // Check if the element is empty by looking through it's contents and special treatment for <p><br /></p>
+ parent = parents[0];
+ if (parent.isEmpty(nonEmptyElements) || parent.firstChild === parent.lastChild && parent.firstChild.name === 'br') {
+ parent.empty().remove();
+ }
+ } else if (node.parent) {
+ // If it's an LI try to find a UL/OL for it or wrap it
+ if (node.name === 'li') {
+ sibling = node.prev;
+ if (sibling && (sibling.name === 'ul' || sibling.name === 'ul')) {
+ sibling.append(node);
+ continue;
+ }
+
+ sibling = node.next;
+ if (sibling && (sibling.name === 'ul' || sibling.name === 'ul')) {
+ sibling.insert(node, sibling.firstChild, true);
+ continue;
+ }
+
+ node.wrap(self.filterNode(new Node('ul', 1)));
+ continue;
+ }
+
+ // Try wrapping the element in a DIV
+ if (schema.isValidChild(node.parent.name, 'div') && schema.isValidChild('div', node.name)) {
+ node.wrap(self.filterNode(new Node('div', 1)));
+ } else {
+ // We failed wrapping it, then remove or unwrap it
+ if (node.name === 'style' || node.name === 'script')
+ node.empty().remove();
+ else
+ node.unwrap();
+ }
+ }
+ }
+ };
+
+ self.filterNode = function(node) {
+ var i, name, list;
+
+ // Run element filters
+ if (name in nodeFilters) {
+ list = matchedNodes[name];
+
+ if (list)
+ list.push(node);
+ else
+ matchedNodes[name] = [node];
+ }
+
+ // Run attribute filters
+ i = attributeFilters.length;
+ while (i--) {
+ name = attributeFilters[i].name;
+
+ if (name in node.attributes.map) {
+ list = matchedAttributes[name];
+
+ if (list)
+ list.push(node);
+ else
+ matchedAttributes[name] = [node];
+ }
+ }
+
+ return node;
+ };
+
+ self.addNodeFilter = function(name, callback) {
+ tinymce.each(tinymce.explode(name), function(name) {
+ var list = nodeFilters[name];
+
+ if (!list)
+ nodeFilters[name] = list = [];
+
+ list.push(callback);
+ });
+ };
+
+ self.addAttributeFilter = function(name, callback) {
+ tinymce.each(tinymce.explode(name), function(name) {
+ var i;
+
+ for (i = 0; i < attributeFilters.length; i++) {
+ if (attributeFilters[i].name === name) {
+ attributeFilters[i].callbacks.push(callback);
+ return;
+ }
+ }
+
+ attributeFilters.push({name: name, callbacks: [callback]});
+ });
+ };
+
+ self.parse = function(html, args) {
+ var parser, rootNode, node, nodes, i, l, fi, fl, list, name, validate,
+ blockElements, startWhiteSpaceRegExp, invalidChildren = [], isInWhiteSpacePreservedElement,
+ endWhiteSpaceRegExp, allWhiteSpaceRegExp, isAllWhiteSpaceRegExp, whiteSpaceElements, children, nonEmptyElements, rootBlockName;
+
+ args = args || {};
+ matchedNodes = {};
+ matchedAttributes = {};
+ blockElements = tinymce.extend(tinymce.makeMap('script,style,head,html,body,title,meta,param'), schema.getBlockElements());
+ nonEmptyElements = schema.getNonEmptyElements();
+ children = schema.children;
+ validate = settings.validate;
+ rootBlockName = "forced_root_block" in args ? args.forced_root_block : settings.forced_root_block;
+
+ whiteSpaceElements = schema.getWhiteSpaceElements();
+ startWhiteSpaceRegExp = /^[ \t\r\n]+/;
+ endWhiteSpaceRegExp = /[ \t\r\n]+$/;
+ allWhiteSpaceRegExp = /[ \t\r\n]+/g;
+ isAllWhiteSpaceRegExp = /^[ \t\r\n]+$/;
+
+ function addRootBlocks() {
+ var node = rootNode.firstChild, next, rootBlockNode;
+
+ while (node) {
+ next = node.next;
+
+ if (node.type == 3 || (node.type == 1 && node.name !== 'p' && !blockElements[node.name] && !node.attr('data-mce-type'))) {
+ if (!rootBlockNode) {
+ // Create a new root block element
+ rootBlockNode = createNode(rootBlockName, 1);
+ rootNode.insert(rootBlockNode, node);
+ rootBlockNode.append(node);
+ } else
+ rootBlockNode.append(node);
+ } else {
+ rootBlockNode = null;
+ }
+
+ node = next;
+ };
+ };
+
+ function createNode(name, type) {
+ var node = new Node(name, type), list;
+
+ if (name in nodeFilters) {
+ list = matchedNodes[name];
+
+ if (list)
+ list.push(node);
+ else
+ matchedNodes[name] = [node];
+ }
+
+ return node;
+ };
+
+ function removeWhitespaceBefore(node) {
+ var textNode, textVal, sibling;
+
+ for (textNode = node.prev; textNode && textNode.type === 3; ) {
+ textVal = textNode.value.replace(endWhiteSpaceRegExp, '');
+
+ if (textVal.length > 0) {
+ textNode.value = textVal;
+ textNode = textNode.prev;
+ } else {
+ sibling = textNode.prev;
+ textNode.remove();
+ textNode = sibling;
+ }
+ }
+ };
+
+ function cloneAndExcludeBlocks(input) {
+ var name, output = {};
+
+ for (name in input) {
+ if (name !== 'li' && name != 'p') {
+ output[name] = input[name];
+ }
+ }
+
+ return output;
+ };
+
+ parser = new tinymce.html.SaxParser({
+ validate : validate,
+
+ // Exclude P and LI from DOM parsing since it's treated better by the DOM parser
+ self_closing_elements: cloneAndExcludeBlocks(schema.getSelfClosingElements()),
+
+ cdata: function(text) {
+ node.append(createNode('#cdata', 4)).value = text;
+ },
+
+ text: function(text, raw) {
+ var textNode;
+
+ // Trim all redundant whitespace on non white space elements
+ if (!isInWhiteSpacePreservedElement) {
+ text = text.replace(allWhiteSpaceRegExp, ' ');
+
+ if (node.lastChild && blockElements[node.lastChild.name])
+ text = text.replace(startWhiteSpaceRegExp, '');
+ }
+
+ // Do we need to create the node
+ if (text.length !== 0) {
+ textNode = createNode('#text', 3);
+ textNode.raw = !!raw;
+ node.append(textNode).value = text;
+ }
+ },
+
+ comment: function(text) {
+ node.append(createNode('#comment', 8)).value = text;
+ },
+
+ pi: function(name, text) {
+ node.append(createNode(name, 7)).value = text;
+ removeWhitespaceBefore(node);
+ },
+
+ doctype: function(text) {
+ var newNode;
+
+ newNode = node.append(createNode('#doctype', 10));
+ newNode.value = text;
+ removeWhitespaceBefore(node);
+ },
+
+ start: function(name, attrs, empty) {
+ var newNode, attrFiltersLen, elementRule, textNode, attrName, text, sibling, parent;
+
+ elementRule = validate ? schema.getElementRule(name) : {};
+ if (elementRule) {
+ newNode = createNode(elementRule.outputName || name, 1);
+ newNode.attributes = attrs;
+ newNode.shortEnded = empty;
+
+ node.append(newNode);
+
+ // Check if node is valid child of the parent node is the child is
+ // unknown we don't collect it since it's probably a custom element
+ parent = children[node.name];
+ if (parent && children[newNode.name] && !parent[newNode.name])
+ invalidChildren.push(newNode);
+
+ attrFiltersLen = attributeFilters.length;
+ while (attrFiltersLen--) {
+ attrName = attributeFilters[attrFiltersLen].name;
+
+ if (attrName in attrs.map) {
+ list = matchedAttributes[attrName];
+
+ if (list)
+ list.push(newNode);
+ else
+ matchedAttributes[attrName] = [newNode];
+ }
+ }
+
+ // Trim whitespace before block
+ if (blockElements[name])
+ removeWhitespaceBefore(newNode);
+
+ // Change current node if the element wasn't empty i.e not <br /> or <img />
+ if (!empty)
+ node = newNode;
+
+ // Check if we are inside a whitespace preserved element
+ if (!isInWhiteSpacePreservedElement && whiteSpaceElements[name]) {
+ isInWhiteSpacePreservedElement = true;
+ }
+ }
+ },
+
+ end: function(name) {
+ var textNode, elementRule, text, sibling, tempNode;
+
+ elementRule = validate ? schema.getElementRule(name) : {};
+ if (elementRule) {
+ if (blockElements[name]) {
+ if (!isInWhiteSpacePreservedElement) {
+ // Trim whitespace of the first node in a block
+ textNode = node.firstChild;
+ if (textNode && textNode.type === 3) {
+ text = textNode.value.replace(startWhiteSpaceRegExp, '');
+
+ // Any characters left after trim or should we remove it
+ if (text.length > 0) {
+ textNode.value = text;
+ textNode = textNode.next;
+ } else {
+ sibling = textNode.next;
+ textNode.remove();
+ textNode = sibling;
+ }
+
+ // Remove any pure whitespace siblings
+ while (textNode && textNode.type === 3) {
+ text = textNode.value;
+ sibling = textNode.next;
+
+ if (text.length === 0 || isAllWhiteSpaceRegExp.test(text)) {
+ textNode.remove();
+ textNode = sibling;
+ }
+
+ textNode = sibling;
+ }
+ }
+
+ // Trim whitespace of the last node in a block
+ textNode = node.lastChild;
+ if (textNode && textNode.type === 3) {
+ text = textNode.value.replace(endWhiteSpaceRegExp, '');
+
+ // Any characters left after trim or should we remove it
+ if (text.length > 0) {
+ textNode.value = text;
+ textNode = textNode.prev;
+ } else {
+ sibling = textNode.prev;
+ textNode.remove();
+ textNode = sibling;
+ }
+
+ // Remove any pure whitespace siblings
+ while (textNode && textNode.type === 3) {
+ text = textNode.value;
+ sibling = textNode.prev;
+
+ if (text.length === 0 || isAllWhiteSpaceRegExp.test(text)) {
+ textNode.remove();
+ textNode = sibling;
+ }
+
+ textNode = sibling;
+ }
+ }
+ }
+
+ // Trim start white space
+ // Removed due to: #5424
+ /*textNode = node.prev;
+ if (textNode && textNode.type === 3) {
+ text = textNode.value.replace(startWhiteSpaceRegExp, '');
+
+ if (text.length > 0)
+ textNode.value = text;
+ else
+ textNode.remove();
+ }*/
+ }
+
+ // Check if we exited a whitespace preserved element
+ if (isInWhiteSpacePreservedElement && whiteSpaceElements[name]) {
+ isInWhiteSpacePreservedElement = false;
+ }
+
+ // Handle empty nodes
+ if (elementRule.removeEmpty || elementRule.paddEmpty) {
+ if (node.isEmpty(nonEmptyElements)) {
+ if (elementRule.paddEmpty)
+ node.empty().append(new Node('#text', '3')).value = '\u00a0';
+ else {
+ // Leave nodes that have a name like <a name="name">
+ if (!node.attributes.map.name && !node.attributes.map.id) {
+ tempNode = node.parent;
+ node.empty().remove();
+ node = tempNode;
+ return;
+ }
+ }
+ }
+ }
+
+ node = node.parent;
+ }
+ }
+ }, schema);
+
+ rootNode = node = new Node(args.context || settings.root_name, 11);
+
+ parser.parse(html);
+
+ // Fix invalid children or report invalid children in a contextual parsing
+ if (validate && invalidChildren.length) {
+ if (!args.context)
+ fixInvalidChildren(invalidChildren);
+ else
+ args.invalid = true;
+ }
+
+ // Wrap nodes in the root into block elements if the root is body
+ if (rootBlockName && rootNode.name == 'body')
+ addRootBlocks();
+
+ // Run filters only when the contents is valid
+ if (!args.invalid) {
+ // Run node filters
+ for (name in matchedNodes) {
+ list = nodeFilters[name];
+ nodes = matchedNodes[name];
+
+ // Remove already removed children
+ fi = nodes.length;
+ while (fi--) {
+ if (!nodes[fi].parent)
+ nodes.splice(fi, 1);
+ }
+
+ for (i = 0, l = list.length; i < l; i++)
+ list[i](nodes, name, args);
+ }
+
+ // Run attribute filters
+ for (i = 0, l = attributeFilters.length; i < l; i++) {
+ list = attributeFilters[i];
+
+ if (list.name in matchedAttributes) {
+ nodes = matchedAttributes[list.name];
+
+ // Remove already removed children
+ fi = nodes.length;
+ while (fi--) {
+ if (!nodes[fi].parent)
+ nodes.splice(fi, 1);
+ }
+
+ for (fi = 0, fl = list.callbacks.length; fi < fl; fi++)
+ list.callbacks[fi](nodes, list.name, args);
+ }
+ }
+ }
+
+ return rootNode;
+ };
+
+ // Remove <br> at end of block elements Gecko and WebKit injects BR elements to
+ // make it possible to place the caret inside empty blocks. This logic tries to remove
+ // these elements and keep br elements that where intended to be there intact
+ if (settings.remove_trailing_brs) {
+ self.addNodeFilter('br', function(nodes, name) {
+ var i, l = nodes.length, node, blockElements = tinymce.extend({}, schema.getBlockElements()),
+ nonEmptyElements = schema.getNonEmptyElements(), parent, lastParent, prev, prevName;
+
+ // Remove brs from body element as well
+ blockElements.body = 1;
+
+ // Must loop forwards since it will otherwise remove all brs in <p>a<br><br><br></p>
+ for (i = 0; i < l; i++) {
+ node = nodes[i];
+ parent = node.parent;
+
+ if (blockElements[node.parent.name] && node === parent.lastChild) {
+ // Loop all nodes to the left of the current node and check for other BR elements
+ // excluding bookmarks since they are invisible
+ prev = node.prev;
+ while (prev) {
+ prevName = prev.name;
+
+ // Ignore bookmarks
+ if (prevName !== "span" || prev.attr('data-mce-type') !== 'bookmark') {
+ // Found a non BR element
+ if (prevName !== "br")
+ break;
+
+ // Found another br it's a <br><br> structure then don't remove anything
+ if (prevName === 'br') {
+ node = null;
+ break;
+ }
+ }
+
+ prev = prev.prev;
+ }
+
+ if (node) {
+ node.remove();
+
+ // Is the parent to be considered empty after we removed the BR
+ if (parent.isEmpty(nonEmptyElements)) {
+ elementRule = schema.getElementRule(parent.name);
+
+ // Remove or padd the element depending on schema rule
+ if (elementRule) {
+ if (elementRule.removeEmpty)
+ parent.remove();
+ else if (elementRule.paddEmpty)
+ parent.empty().append(new tinymce.html.Node('#text', 3)).value = '\u00a0';
+ }
+ }
+ }
+ } else {
+ // Replaces BR elements inside inline elements like <p><b><i><br></i></b></p> so they become <p><b><i>&nbsp;</i></b></p>
+ lastParent = node;
+ while (parent.firstChild === lastParent && parent.lastChild === lastParent) {
+ lastParent = parent;
+
+ if (blockElements[parent.name]) {
+ break;
+ }
+
+ parent = parent.parent;
+ }
+
+ if (lastParent === parent) {
+ textNode = new tinymce.html.Node('#text', 3);
+ textNode.value = '\u00a0';
+ node.replace(textNode);
+ }
+ }
+ }
+ });
+ }
+
+ // Force anchor names closed, unless the setting "allow_html_in_named_anchor" is explicitly included.
+ if (!settings.allow_html_in_named_anchor) {
+ self.addAttributeFilter('id,name', function(nodes, name) {
+ var i = nodes.length, sibling, prevSibling, parent, node;
+
+ while (i--) {
+ node = nodes[i];
+ if (node.name === 'a' && node.firstChild && !node.attr('href')) {
+ parent = node.parent;
+
+ // Move children after current node
+ sibling = node.lastChild;
+ do {
+ prevSibling = sibling.prev;
+ parent.insert(sibling, node);
+ sibling = prevSibling;
+ } while (sibling);
+ }
+ }
+ });
+ }
+ }
+})(tinymce);
+
+tinymce.html.Writer = function(settings) {
+ var html = [], indent, indentBefore, indentAfter, encode, htmlOutput;
+
+ settings = settings || {};
+ indent = settings.indent;
+ indentBefore = tinymce.makeMap(settings.indent_before || '');
+ indentAfter = tinymce.makeMap(settings.indent_after || '');
+ encode = tinymce.html.Entities.getEncodeFunc(settings.entity_encoding || 'raw', settings.entities);
+ htmlOutput = settings.element_format == "html";
+
+ return {
+ start: function(name, attrs, empty) {
+ var i, l, attr, value;
+
+ if (indent && indentBefore[name] && html.length > 0) {
+ value = html[html.length - 1];
+
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
+ }
+
+ html.push('<', name);
+
+ if (attrs) {
+ for (i = 0, l = attrs.length; i < l; i++) {
+ attr = attrs[i];
+ html.push(' ', attr.name, '="', encode(attr.value, true), '"');
+ }
+ }
+
+ if (!empty || htmlOutput)
+ html[html.length] = '>';
+ else
+ html[html.length] = ' />';
+
+ if (empty && indent && indentAfter[name] && html.length > 0) {
+ value = html[html.length - 1];
+
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
+ }
+ },
+
+ end: function(name) {
+ var value;
+
+ /*if (indent && indentBefore[name] && html.length > 0) {
+ value = html[html.length - 1];
+
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
+ }*/
+
+ html.push('</', name, '>');
+
+ if (indent && indentAfter[name] && html.length > 0) {
+ value = html[html.length - 1];
+
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
+ }
+ },
+
+ text: function(text, raw) {
+ if (text.length > 0)
+ html[html.length] = raw ? text : encode(text);
+ },
+
+ cdata: function(text) {
+ html.push('<![CDATA[', text, ']]>');
+ },
+
+ comment: function(text) {
+ html.push('<!--', text, '-->');
+ },
+
+ pi: function(name, text) {
+ if (text)
+ html.push('<?', name, ' ', text, '?>');
+ else
+ html.push('<?', name, '?>');
+
+ if (indent)
+ html.push('\n');
+ },
+
+ doctype: function(text) {
+ html.push('<!DOCTYPE', text, '>', indent ? '\n' : '');
+ },
+
+ reset: function() {
+ html.length = 0;
+ },
+
+ getContent: function() {
+ return html.join('').replace(/\n$/, '');
+ }
+ };
+};
+
+(function(tinymce) {
+ tinymce.html.Serializer = function(settings, schema) {
+ var self = this, writer = new tinymce.html.Writer(settings);
+
+ settings = settings || {};
+ settings.validate = "validate" in settings ? settings.validate : true;
+
+ self.schema = schema = schema || new tinymce.html.Schema();
+ self.writer = writer;
+
+ self.serialize = function(node) {
+ var handlers, validate;
+
+ validate = settings.validate;
+
+ handlers = {
+ // #text
+ 3: function(node, raw) {
+ writer.text(node.value, node.raw);
+ },
+
+ // #comment
+ 8: function(node) {
+ writer.comment(node.value);
+ },
+
+ // Processing instruction
+ 7: function(node) {
+ writer.pi(node.name, node.value);
+ },
+
+ // Doctype
+ 10: function(node) {
+ writer.doctype(node.value);
+ },
+
+ // CDATA
+ 4: function(node) {
+ writer.cdata(node.value);
+ },
+
+ // Document fragment
+ 11: function(node) {
+ if ((node = node.firstChild)) {
+ do {
+ walk(node);
+ } while (node = node.next);
+ }
+ }
+ };
+
+ writer.reset();
+
+ function walk(node) {
+ var handler = handlers[node.type], name, isEmpty, attrs, attrName, attrValue, sortedAttrs, i, l, elementRule;
+
+ if (!handler) {
+ name = node.name;
+ isEmpty = node.shortEnded;
+ attrs = node.attributes;
+
+ // Sort attributes
+ if (validate && attrs && attrs.length > 1) {
+ sortedAttrs = [];
+ sortedAttrs.map = {};
+
+ elementRule = schema.getElementRule(node.name);
+ for (i = 0, l = elementRule.attributesOrder.length; i < l; i++) {
+ attrName = elementRule.attributesOrder[i];
+
+ if (attrName in attrs.map) {
+ attrValue = attrs.map[attrName];
+ sortedAttrs.map[attrName] = attrValue;
+ sortedAttrs.push({name: attrName, value: attrValue});
+ }
+ }
+
+ for (i = 0, l = attrs.length; i < l; i++) {
+ attrName = attrs[i].name;
+
+ if (!(attrName in sortedAttrs.map)) {
+ attrValue = attrs.map[attrName];
+ sortedAttrs.map[attrName] = attrValue;
+ sortedAttrs.push({name: attrName, value: attrValue});
+ }
+ }
+
+ attrs = sortedAttrs;
+ }
+
+ writer.start(node.name, attrs, isEmpty);
+
+ if (!isEmpty) {
+ if ((node = node.firstChild)) {
+ do {
+ walk(node);
+ } while (node = node.next);
+ }
+
+ writer.end(name);
+ }
+ } else
+ handler(node);
+ }
+
+ // Serialize element and treat all non elements as fragments
+ if (node.type == 1 && !settings.inner)
+ walk(node);
+ else
+ handlers[11](node);
+
+ return writer.getContent();
+ };
+ }
+})(tinymce);
+
+// JSLint defined globals
+/*global tinymce:false, window:false */
+
+tinymce.dom = {};
+
+(function(namespace, expando) {
+ var w3cEventModel = !!document.addEventListener;
+
+ function addEvent(target, name, callback, capture) {
+ if (target.addEventListener) {
+ target.addEventListener(name, callback, capture || false);
+ } else if (target.attachEvent) {
+ target.attachEvent('on' + name, callback);
+ }
+ }
+
+ function removeEvent(target, name, callback, capture) {
+ if (target.removeEventListener) {
+ target.removeEventListener(name, callback, capture || false);
+ } else if (target.detachEvent) {
+ target.detachEvent('on' + name, callback);
+ }
+ }
+
+ function fix(original_event, data) {
+ var name, event = data || {};
+
+ // Dummy function that gets replaced on the delegation state functions
+ function returnFalse() {
+ return false;
+ }
+
+ // Dummy function that gets replaced on the delegation state functions
+ function returnTrue() {
+ return true;
+ }
+
+ // Copy all properties from the original event
+ for (name in original_event) {
+ // layerX/layerY is deprecated in Chrome and produces a warning
+ if (name !== "layerX" && name !== "layerY") {
+ event[name] = original_event[name];
+ }
+ }
+
+ // Normalize target IE uses srcElement
+ if (!event.target) {
+ event.target = event.srcElement || document;
+ }
+
+ // Add preventDefault method
+ event.preventDefault = function() {
+ event.isDefaultPrevented = returnTrue;
+
+ // Execute preventDefault on the original event object
+ if (original_event) {
+ if (original_event.preventDefault) {
+ original_event.preventDefault();
+ } else {
+ original_event.returnValue = false; // IE
+ }
+ }
+ };
+
+ // Add stopPropagation
+ event.stopPropagation = function() {
+ event.isPropagationStopped = returnTrue;
+
+ // Execute stopPropagation on the original event object
+ if (original_event) {
+ if (original_event.stopPropagation) {
+ original_event.stopPropagation();
+ } else {
+ original_event.cancelBubble = true; // IE
+ }
+ }
+ };
+
+ // Add stopImmediatePropagation
+ event.stopImmediatePropagation = function() {
+ event.isImmediatePropagationStopped = returnTrue;
+ event.stopPropagation();
+ };
+
+ // Add event delegation states
+ if (!event.isDefaultPrevented) {
+ event.isDefaultPrevented = returnFalse;
+ event.isPropagationStopped = returnFalse;
+ event.isImmediatePropagationStopped = returnFalse;
+ }
+
+ return event;
+ }
+
+ function bindOnReady(win, callback, event_utils) {
+ var doc = win.document, event = {type: 'ready'};
+
+ // Gets called when the DOM is ready
+ function readyHandler() {
+ if (!event_utils.domLoaded) {
+ event_utils.domLoaded = true;
+ callback(event);
+ }
+ }
+
+ // Page already loaded then fire it directly
+ if (doc.readyState == "complete") {
+ readyHandler();
+ return;
+ }
+
+ // Use W3C method
+ if (w3cEventModel) {
+ addEvent(win, 'DOMContentLoaded', readyHandler);
+ } else {
+ // Use IE method
+ addEvent(doc, "readystatechange", function() {
+ if (doc.readyState === "complete") {
+ removeEvent(doc, "readystatechange", arguments.callee);
+ readyHandler();
+ }
+ });
+
+ // Wait until we can scroll, when we can the DOM is initialized
+ if (doc.documentElement.doScroll && win === win.top) {
+ (function() {
+ try {
+ // If IE is used, use the trick by Diego Perini licensed under MIT by request to the author.
+ // http://javascript.nwbox.com/IEContentLoaded/
+ doc.documentElement.doScroll("left");
+ } catch (ex) {
+ setTimeout(arguments.callee, 0);
+ return;
+ }
+
+ readyHandler();
+ })();
+ }
+ }
+
+ // Fallback if any of the above methods should fail for some odd reason
+ addEvent(win, 'load', readyHandler);
+ }
+
+ function EventUtils(proxy) {
+ var self = this, events = {}, count, isFocusBlurBound, hasFocusIn, hasMouseEnterLeave, mouseEnterLeave;
+
+ hasMouseEnterLeave = "onmouseenter" in document.documentElement;
+ hasFocusIn = "onfocusin" in document.documentElement;
+ mouseEnterLeave = {mouseenter: 'mouseover', mouseleave: 'mouseout'};
+ count = 1;
+
+ // State if the DOMContentLoaded was executed or not
+ self.domLoaded = false;
+ self.events = events;
+
+ function executeHandlers(evt, id) {
+ var callbackList, i, l, callback;
+
+ callbackList = events[id][evt.type];
+ if (callbackList) {
+ for (i = 0, l = callbackList.length; i < l; i++) {
+ callback = callbackList[i];
+
+ // Check if callback exists might be removed if a unbind is called inside the callback
+ if (callback && callback.func.call(callback.scope, evt) === false) {
+ evt.preventDefault();
+ }
+
+ // Should we stop propagation to immediate listeners
+ if (evt.isImmediatePropagationStopped()) {
+ return;
+ }
+ }
+ }
+ }
+
+ self.bind = function(target, names, callback, scope) {
+ var id, callbackList, i, name, fakeName, nativeHandler, capture, win = window;
+
+ // Native event handler function patches the event and executes the callbacks for the expando
+ function defaultNativeHandler(evt) {
+ executeHandlers(fix(evt || win.event), id);
+ }
+
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return;
+ }
+
+ // Create or get events id for the target
+ if (!target[expando]) {
+ id = count++;
+ target[expando] = id;
+ events[id] = {};
+ } else {
+ id = target[expando];
+
+ if (!events[id]) {
+ events[id] = {};
+ }
+ }
+
+ // Setup the specified scope or use the target as a default
+ scope = scope || target;
+
+ // Split names and bind each event, enables you to bind multiple events with one call
+ names = names.split(' ');
+ i = names.length;
+ while (i--) {
+ name = names[i];
+ nativeHandler = defaultNativeHandler;
+ fakeName = capture = false;
+
+ // Use ready instead of DOMContentLoaded
+ if (name === "DOMContentLoaded") {
+ name = "ready";
+ }
+
+ // DOM is already ready
+ if ((self.domLoaded || target.readyState == 'complete') && name === "ready") {
+ self.domLoaded = true;
+ callback.call(scope, fix({type: name}));
+ continue;
+ }
+
+ // Handle mouseenter/mouseleaver
+ if (!hasMouseEnterLeave) {
+ fakeName = mouseEnterLeave[name];
+
+ if (fakeName) {
+ nativeHandler = function(evt) {
+ var current, related;
+
+ current = evt.currentTarget;
+ related = evt.relatedTarget;
+
+ // Check if related is inside the current target if it's not then the event should be ignored since it's a mouseover/mouseout inside the element
+ if (related && current.contains) {
+ // Use contains for performance
+ related = current.contains(related);
+ } else {
+ while (related && related !== current) {
+ related = related.parentNode;
+ }
+ }
+
+ // Fire fake event
+ if (!related) {
+ evt = fix(evt || win.event);
+ evt.type = evt.type === 'mouseout' ? 'mouseleave' : 'mouseenter';
+ evt.target = current;
+ executeHandlers(evt, id);
+ }
+ };
+ }
+ }
+
+ // Fake bubbeling of focusin/focusout
+ if (!hasFocusIn && (name === "focusin" || name === "focusout")) {
+ capture = true;
+ fakeName = name === "focusin" ? "focus" : "blur";
+ nativeHandler = function(evt) {
+ evt = fix(evt || win.event);
+ evt.type = evt.type === 'focus' ? 'focusin' : 'focusout';
+ executeHandlers(evt, id);
+ };
+ }
+
+ // Setup callback list and bind native event
+ callbackList = events[id][name];
+ if (!callbackList) {
+ events[id][name] = callbackList = [{func: callback, scope: scope}];
+ callbackList.fakeName = fakeName;
+ callbackList.capture = capture;
+
+ // Add the nativeHandler to the callback list so that we can later unbind it
+ callbackList.nativeHandler = nativeHandler;
+ if (!w3cEventModel) {
+ callbackList.proxyHandler = proxy(id);
+ }
+
+ // Check if the target has native events support
+ if (name === "ready") {
+ bindOnReady(target, nativeHandler, self);
+ } else {
+ addEvent(target, fakeName || name, w3cEventModel ? nativeHandler : callbackList.proxyHandler, capture);
+ }
+ } else {
+ // If it already has an native handler then just push the callback
+ callbackList.push({func: callback, scope: scope});
+ }
+ }
+
+ target = callbackList = 0; // Clean memory for IE
+
+ return callback;
+ };
+
+ self.unbind = function(target, names, callback) {
+ var id, callbackList, i, ci, name, eventMap;
+
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return self;
+ }
+
+ // Unbind event or events if the target has the expando
+ id = target[expando];
+ if (id) {
+ eventMap = events[id];
+
+ // Specific callback
+ if (names) {
+ names = names.split(' ');
+ i = names.length;
+ while (i--) {
+ name = names[i];
+ callbackList = eventMap[name];
+
+ // Unbind the event if it exists in the map
+ if (callbackList) {
+ // Remove specified callback
+ if (callback) {
+ ci = callbackList.length;
+ while (ci--) {
+ if (callbackList[ci].func === callback) {
+ callbackList.splice(ci, 1);
+ }
+ }
+ }
+
+ // Remove all callbacks if there isn't a specified callback or there is no callbacks left
+ if (!callback || callbackList.length === 0) {
+ delete eventMap[name];
+ removeEvent(target, callbackList.fakeName || name, w3cEventModel ? callbackList.nativeHandler : callbackList.proxyHandler, callbackList.capture);
+ }
+ }
+ }
+ } else {
+ // All events for a specific element
+ for (name in eventMap) {
+ callbackList = eventMap[name];
+ removeEvent(target, callbackList.fakeName || name, w3cEventModel ? callbackList.nativeHandler : callbackList.proxyHandler, callbackList.capture);
+ }
+
+ eventMap = {};
+ }
+
+ // Check if object is empty, if it isn't then we won't remove the expando map
+ for (name in eventMap) {
+ return self;
+ }
+
+ // Delete event object
+ delete events[id];
+
+ // Remove expando from target
+ try {
+ // IE will fail here since it can't delete properties from window
+ delete target[expando];
+ } catch (ex) {
+ // IE will set it to null
+ target[expando] = null;
+ }
+ }
+
+ return self;
+ };
+
+ self.fire = function(target, name, args) {
+ var id, event;
+
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return self;
+ }
+
+ // Build event object by patching the args
+ event = fix(null, args);
+ event.type = name;
+
+ do {
+ // Found an expando that means there is listeners to execute
+ id = target[expando];
+ if (id) {
+ executeHandlers(event, id);
+ }
+
+ // Walk up the DOM
+ target = target.parentNode || target.ownerDocument || target.defaultView || target.parentWindow;
+ } while (target && !event.isPropagationStopped());
+
+ return self;
+ };
+
+ self.clean = function(target) {
+ var i, children, unbind = self.unbind;
+
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return self;
+ }
+
+ // Unbind any element on the specificed target
+ if (target[expando]) {
+ unbind(target);
+ }
+
+ // Target doesn't have getElementsByTagName it's probably a window object then use it's document to find the children
+ if (!target.getElementsByTagName) {
+ target = target.document;
+ }
+
+ // Remove events from each child element
+ if (target && target.getElementsByTagName) {
+ unbind(target);
+
+ children = target.getElementsByTagName('*');
+ i = children.length;
+ while (i--) {
+ target = children[i];
+
+ if (target[expando]) {
+ unbind(target);
+ }
+ }
+ }
+
+ return self;
+ };
+
+ self.callNativeHandler = function(id, evt) {
+ if (events) {
+ events[id][evt.type].nativeHandler(evt);
+ }
+ };
+
+ self.destory = function() {
+ events = {};
+ };
+
+ // Legacy function calls
+
+ self.add = function(target, events, func, scope) {
+ // Old API supported direct ID assignment
+ if (typeof(target) === "string") {
+ target = document.getElementById(target);
+ }
+
+ // Old API supported multiple targets
+ if (target && target instanceof Array) {
+ var i = target.length;
+
+ while (i--) {
+ self.add(target[i], events, func, scope);
+ }
+
+ return;
+ }
+
+ // Old API called ready init
+ if (events === "init") {
+ events = "ready";
+ }
+
+ return self.bind(target, events instanceof Array ? events.join(' ') : events, func, scope);
+ };
+
+ self.remove = function(target, events, func, scope) {
+ if (!target) {
+ return self;
+ }
+
+ // Old API supported direct ID assignment
+ if (typeof(target) === "string") {
+ target = document.getElementById(target);
+ }
+
+ // Old API supported multiple targets
+ if (target instanceof Array) {
+ var i = target.length;
+
+ while (i--) {
+ self.remove(target[i], events, func, scope);
+ }
+
+ return self;
+ }
+
+ return self.unbind(target, events instanceof Array ? events.join(' ') : events, func);
+ };
+
+ self.clear = function(target) {
+ // Old API supported direct ID assignment
+ if (typeof(target) === "string") {
+ target = document.getElementById(target);
+ }
+
+ return self.clean(target);
+ };
+
+ self.cancel = function(e) {
+ if (e) {
+ self.prevent(e);
+ self.stop(e);
+ }
+
+ return false;
+ };
+
+ self.prevent = function(e) {
+ if (!e.preventDefault) {
+ e = fix(e);
+ }
+
+ e.preventDefault();
+
+ return false;
+ };
+
+ self.stop = function(e) {
+ if (!e.stopPropagation) {
+ e = fix(e);
+ }
+
+ e.stopPropagation();
+
+ return false;
+ };
+ }
+
+ namespace.EventUtils = EventUtils;
+
+ namespace.Event = new EventUtils(function(id) {
+ return function(evt) {
+ tinymce.dom.Event.callNativeHandler(id, evt);
+ };
+ });
+
+ // Bind ready event when tinymce script is loaded
+ namespace.Event.bind(window, 'ready', function() {});
+
+ namespace = 0;
+})(tinymce.dom, 'data-mce-expando'); // Namespace and expando
+
+tinymce.dom.TreeWalker = function(start_node, root_node) {
+ var node = start_node;
+
+ function findSibling(node, start_name, sibling_name, shallow) {
+ var sibling, parent;
+
+ if (node) {
+ // Walk into nodes if it has a start
+ if (!shallow && node[start_name])
+ return node[start_name];
+
+ // Return the sibling if it has one
+ if (node != root_node) {
+ sibling = node[sibling_name];
+ if (sibling)
+ return sibling;
+
+ // Walk up the parents to look for siblings
+ for (parent = node.parentNode; parent && parent != root_node; parent = parent.parentNode) {
+ sibling = parent[sibling_name];
+ if (sibling)
+ return sibling;
+ }
+ }
+ }
+ };
+
+ this.current = function() {
+ return node;
+ };
+
+ this.next = function(shallow) {
+ return (node = findSibling(node, 'firstChild', 'nextSibling', shallow));
+ };
+
+ this.prev = function(shallow) {
+ return (node = findSibling(node, 'lastChild', 'previousSibling', shallow));
+ };
+};
+
+(function(tinymce) {
+ // Shorten names
+ var each = tinymce.each,
+ is = tinymce.is,
+ isWebKit = tinymce.isWebKit,
+ isIE = tinymce.isIE,
+ Entities = tinymce.html.Entities,
+ simpleSelectorRe = /^([a-z0-9],?)+$/i,
+ whiteSpaceRegExp = /^[ \t\r\n]*$/;
+
+ tinymce.create('tinymce.dom.DOMUtils', {
+ doc : null,
+ root : null,
+ files : null,
+ pixelStyles : /^(top|left|bottom|right|width|height|borderWidth)$/,
+ props : {
+ "for" : "htmlFor",
+ "class" : "className",
+ className : "className",
+ checked : "checked",
+ disabled : "disabled",
+ maxlength : "maxLength",
+ readonly : "readOnly",
+ selected : "selected",
+ value : "value",
+ id : "id",
+ name : "name",
+ type : "type"
+ },
+
+ DOMUtils : function(d, s) {
+ var t = this, globalStyle, name, blockElementsMap;
+
+ t.doc = d;
+ t.win = window;
+ t.files = {};
+ t.cssFlicker = false;
+ t.counter = 0;
+ t.stdMode = !tinymce.isIE || d.documentMode >= 8;
+ t.boxModel = !tinymce.isIE || d.compatMode == "CSS1Compat" || t.stdMode;
+ t.hasOuterHTML = "outerHTML" in d.createElement("a");
+
+ t.settings = s = tinymce.extend({
+ keep_values : false,
+ hex_colors : 1
+ }, s);
+
+ t.schema = s.schema;
+ t.styles = new tinymce.html.Styles({
+ url_converter : s.url_converter,
+ url_converter_scope : s.url_converter_scope
+ }, s.schema);
+
+ // Fix IE6SP2 flicker and check it failed for pre SP2
+ if (tinymce.isIE6) {
+ try {
+ d.execCommand('BackgroundImageCache', false, true);
+ } catch (e) {
+ t.cssFlicker = true;
+ }
+ }
+
+ t.fixDoc(d);
+ t.events = s.ownEvents ? new tinymce.dom.EventUtils(s.proxy) : tinymce.dom.Event;
+ tinymce.addUnload(t.destroy, t);
+ blockElementsMap = s.schema ? s.schema.getBlockElements() : {};
+
+ t.isBlock = function(node) {
+ // This function is called in module pattern style since it might be executed with the wrong this scope
+ var type = node.nodeType;
+
+ // If it's a node then check the type and use the nodeName
+ if (type)
+ return !!(type === 1 && blockElementsMap[node.nodeName]);
+
+ return !!blockElementsMap[node];
+ };
+ },
+
+ fixDoc: function(doc) {
+ var settings = this.settings, name;
+
+ if (isIE && settings.schema) {
+ // Add missing HTML 4/5 elements to IE
+ ('abbr article aside audio canvas ' +
+ 'details figcaption figure footer ' +
+ 'header hgroup mark menu meter nav ' +
+ 'output progress section summary ' +
+ 'time video').replace(/\w+/g, function(name) {
+ doc.createElement(name);
+ });
+
+ // Create all custom elements
+ for (name in settings.schema.getCustomElements()) {
+ doc.createElement(name);
+ }
+ }
+ },
+
+ clone: function(node, deep) {
+ var self = this, clone, doc;
+
+ // TODO: Add feature detection here in the future
+ if (!isIE || node.nodeType !== 1 || deep) {
+ return node.cloneNode(deep);
+ }
+
+ doc = self.doc;
+
+ // Make a HTML5 safe shallow copy
+ if (!deep) {
+ clone = doc.createElement(node.nodeName);
+
+ // Copy attribs
+ each(self.getAttribs(node), function(attr) {
+ self.setAttrib(clone, attr.nodeName, self.getAttrib(node, attr.nodeName));
+ });
+
+ return clone;
+ }
+/*
+ // Setup HTML5 patched document fragment
+ if (!self.frag) {
+ self.frag = doc.createDocumentFragment();
+ self.fixDoc(self.frag);
+ }
+
+ // Make a deep copy by adding it to the document fragment then removing it this removed the :section
+ clone = doc.createElement('div');
+ self.frag.appendChild(clone);
+ clone.innerHTML = node.outerHTML;
+ self.frag.removeChild(clone);
+*/
+ return clone.firstChild;
+ },
+
+ getRoot : function() {
+ var t = this, s = t.settings;
+
+ return (s && t.get(s.root_element)) || t.doc.body;
+ },
+
+ getViewPort : function(w) {
+ var d, b;
+
+ w = !w ? this.win : w;
+ d = w.document;
+ b = this.boxModel ? d.documentElement : d.body;
+
+ // Returns viewport size excluding scrollbars
+ return {
+ x : w.pageXOffset || b.scrollLeft,
+ y : w.pageYOffset || b.scrollTop,
+ w : w.innerWidth || b.clientWidth,
+ h : w.innerHeight || b.clientHeight
+ };
+ },
+
+ getRect : function(e) {
+ var p, t = this, sr;
+
+ e = t.get(e);
+ p = t.getPos(e);
+ sr = t.getSize(e);
+
+ return {
+ x : p.x,
+ y : p.y,
+ w : sr.w,
+ h : sr.h
+ };
+ },
+
+ getSize : function(e) {
+ var t = this, w, h;
+
+ e = t.get(e);
+ w = t.getStyle(e, 'width');
+ h = t.getStyle(e, 'height');
+
+ // Non pixel value, then force offset/clientWidth
+ if (w.indexOf('px') === -1)
+ w = 0;
+
+ // Non pixel value, then force offset/clientWidth
+ if (h.indexOf('px') === -1)
+ h = 0;
+
+ return {
+ w : parseInt(w, 10) || e.offsetWidth || e.clientWidth,
+ h : parseInt(h, 10) || e.offsetHeight || e.clientHeight
+ };
+ },
+
+ getParent : function(n, f, r) {
+ return this.getParents(n, f, r, false);
+ },
+
+ getParents : function(n, f, r, c) {
+ var t = this, na, se = t.settings, o = [];
+
+ n = t.get(n);
+ c = c === undefined;
+
+ if (se.strict_root)
+ r = r || t.getRoot();
+
+ // Wrap node name as func
+ if (is(f, 'string')) {
+ na = f;
+
+ if (f === '*') {
+ f = function(n) {return n.nodeType == 1;};
+ } else {
+ f = function(n) {
+ return t.is(n, na);
+ };
+ }
+ }
+
+ while (n) {
+ if (n == r || !n.nodeType || n.nodeType === 9)
+ break;
+
+ if (!f || f(n)) {
+ if (c)
+ o.push(n);
+ else
+ return n;
+ }
+
+ n = n.parentNode;
+ }
+
+ return c ? o : null;
+ },
+
+ get : function(e) {
+ var n;
+
+ if (e && this.doc && typeof(e) == 'string') {
+ n = e;
+ e = this.doc.getElementById(e);
+
+ // IE and Opera returns meta elements when they match the specified input ID, but getElementsByName seems to do the trick
+ if (e && e.id !== n)
+ return this.doc.getElementsByName(n)[1];
+ }
+
+ return e;
+ },
+
+ getNext : function(node, selector) {
+ return this._findSib(node, selector, 'nextSibling');
+ },
+
+ getPrev : function(node, selector) {
+ return this._findSib(node, selector, 'previousSibling');
+ },
+
+
+ select : function(pa, s) {
+ var t = this;
+
+ return tinymce.dom.Sizzle(pa, t.get(s) || t.get(t.settings.root_element) || t.doc, []);
+ },
+
+ is : function(n, selector) {
+ var i;
+
+ // If it isn't an array then try to do some simple selectors instead of Sizzle for to boost performance
+ if (n.length === undefined) {
+ // Simple all selector
+ if (selector === '*')
+ return n.nodeType == 1;
+
+ // Simple selector just elements
+ if (simpleSelectorRe.test(selector)) {
+ selector = selector.toLowerCase().split(/,/);
+ n = n.nodeName.toLowerCase();
+
+ for (i = selector.length - 1; i >= 0; i--) {
+ if (selector[i] == n)
+ return true;
+ }
+
+ return false;
+ }
+ }
+
+ return tinymce.dom.Sizzle.matches(selector, n.nodeType ? [n] : n).length > 0;
+ },
+
+
+ add : function(p, n, a, h, c) {
+ var t = this;
+
+ return this.run(p, function(p) {
+ var e, k;
+
+ e = is(n, 'string') ? t.doc.createElement(n) : n;
+ t.setAttribs(e, a);
+
+ if (h) {
+ if (h.nodeType)
+ e.appendChild(h);
+ else
+ t.setHTML(e, h);
+ }
+
+ return !c ? p.appendChild(e) : e;
+ });
+ },
+
+ create : function(n, a, h) {
+ return this.add(this.doc.createElement(n), n, a, h, 1);
+ },
+
+ createHTML : function(n, a, h) {
+ var o = '', t = this, k;
+
+ o += '<' + n;
+
+ for (k in a) {
+ if (a.hasOwnProperty(k))
+ o += ' ' + k + '="' + t.encode(a[k]) + '"';
+ }
+
+ // A call to tinymce.is doesn't work for some odd reason on IE9 possible bug inside their JS runtime
+ if (typeof(h) != "undefined")
+ return o + '>' + h + '</' + n + '>';
+
+ return o + ' />';
+ },
+
+ remove : function(node, keep_children) {
+ return this.run(node, function(node) {
+ var child, parent = node.parentNode;
+
+ if (!parent)
+ return null;
+
+ if (keep_children) {
+ while (child = node.firstChild) {
+ // IE 8 will crash if you don't remove completely empty text nodes
+ if (!tinymce.isIE || child.nodeType !== 3 || child.nodeValue)
+ parent.insertBefore(child, node);
+ else
+ node.removeChild(child);
+ }
+ }
+
+ return parent.removeChild(node);
+ });
+ },
+
+ setStyle : function(n, na, v) {
+ var t = this;
+
+ return t.run(n, function(e) {
+ var s, i;
+
+ s = e.style;
+
+ // Camelcase it, if needed
+ na = na.replace(/-(\D)/g, function(a, b){
+ return b.toUpperCase();
+ });
+
+ // Default px suffix on these
+ if (t.pixelStyles.test(na) && (tinymce.is(v, 'number') || /^[\-0-9\.]+$/.test(v)))
+ v += 'px';
+
+ switch (na) {
+ case 'opacity':
+ // IE specific opacity
+ if (isIE) {
+ s.filter = v === '' ? '' : "alpha(opacity=" + (v * 100) + ")";
+
+ if (!n.currentStyle || !n.currentStyle.hasLayout)
+ s.display = 'inline-block';
+ }
+
+ // Fix for older browsers
+ s[na] = s['-moz-opacity'] = s['-khtml-opacity'] = v || '';
+ break;
+
+ case 'float':
+ isIE ? s.styleFloat = v : s.cssFloat = v;
+ break;
+
+ default:
+ s[na] = v || '';
+ }
+
+ // Force update of the style data
+ if (t.settings.update_styles)
+ t.setAttrib(e, 'data-mce-style');
+ });
+ },
+
+ getStyle : function(n, na, c) {
+ n = this.get(n);
+
+ if (!n)
+ return;
+
+ // Gecko
+ if (this.doc.defaultView && c) {
+ // Remove camelcase
+ na = na.replace(/[A-Z]/g, function(a){
+ return '-' + a;
+ });
+
+ try {
+ return this.doc.defaultView.getComputedStyle(n, null).getPropertyValue(na);
+ } catch (ex) {
+ // Old safari might fail
+ return null;
+ }
+ }
+
+ // Camelcase it, if needed
+ na = na.replace(/-(\D)/g, function(a, b){
+ return b.toUpperCase();
+ });
+
+ if (na == 'float')
+ na = isIE ? 'styleFloat' : 'cssFloat';
+
+ // IE & Opera
+ if (n.currentStyle && c)
+ return n.currentStyle[na];
+
+ return n.style ? n.style[na] : undefined;
+ },
+
+ setStyles : function(e, o) {
+ var t = this, s = t.settings, ol;
+
+ ol = s.update_styles;
+ s.update_styles = 0;
+
+ each(o, function(v, n) {
+ t.setStyle(e, n, v);
+ });
+
+ // Update style info
+ s.update_styles = ol;
+ if (s.update_styles)
+ t.setAttrib(e, s.cssText);
+ },
+
+ removeAllAttribs: function(e) {
+ return this.run(e, function(e) {
+ var i, attrs = e.attributes;
+ for (i = attrs.length - 1; i >= 0; i--) {
+ e.removeAttributeNode(attrs.item(i));
+ }
+ });
+ },
+
+ setAttrib : function(e, n, v) {
+ var t = this;
+
+ // Whats the point
+ if (!e || !n)
+ return;
+
+ // Strict XML mode
+ if (t.settings.strict)
+ n = n.toLowerCase();
+
+ return this.run(e, function(e) {
+ var s = t.settings;
+ var originalValue = e.getAttribute(n);
+ if (v !== null) {
+ switch (n) {
+ case "style":
+ if (!is(v, 'string')) {
+ each(v, function(v, n) {
+ t.setStyle(e, n, v);
+ });
+
+ return;
+ }
+
+ // No mce_style for elements with these since they might get resized by the user
+ if (s.keep_values) {
+ if (v && !t._isRes(v))
+ e.setAttribute('data-mce-style', v, 2);
+ else
+ e.removeAttribute('data-mce-style', 2);
+ }
+
+ e.style.cssText = v;
+ break;
+
+ case "class":
+ e.className = v || ''; // Fix IE null bug
+ break;
+
+ case "src":
+ case "href":
+ if (s.keep_values) {
+ if (s.url_converter)
+ v = s.url_converter.call(s.url_converter_scope || t, v, n, e);
+
+ t.setAttrib(e, 'data-mce-' + n, v, 2);
+ }
+
+ break;
+
+ case "shape":
+ e.setAttribute('data-mce-style', v);
+ break;
+ }
+ }
+ if (is(v) && v !== null && v.length !== 0)
+ e.setAttribute(n, '' + v, 2);
+ else
+ e.removeAttribute(n, 2);
+
+ // fire onChangeAttrib event for attributes that have changed
+ if (tinyMCE.activeEditor && originalValue != v) {
+ var ed = tinyMCE.activeEditor;
+ ed.onSetAttrib.dispatch(ed, e, n, v);
+ }
+ });
+ },
+
+ setAttribs : function(e, o) {
+ var t = this;
+
+ return this.run(e, function(e) {
+ each(o, function(v, n) {
+ t.setAttrib(e, n, v);
+ });
+ });
+ },
+
+ getAttrib : function(e, n, dv) {
+ var v, t = this, undef;
+
+ e = t.get(e);
+
+ if (!e || e.nodeType !== 1)
+ return dv === undef ? false : dv;
+
+ if (!is(dv))
+ dv = '';
+
+ // Try the mce variant for these
+ if (/^(src|href|style|coords|shape)$/.test(n)) {
+ v = e.getAttribute("data-mce-" + n);
+
+ if (v)
+ return v;
+ }
+
+ if (isIE && t.props[n]) {
+ v = e[t.props[n]];
+ v = v && v.nodeValue ? v.nodeValue : v;
+ }
+
+ if (!v)
+ v = e.getAttribute(n, 2);
+
+ // Check boolean attribs
+ if (/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(n)) {
+ if (e[t.props[n]] === true && v === '')
+ return n;
+
+ return v ? n : '';
+ }
+
+ // Inner input elements will override attributes on form elements
+ if (e.nodeName === "FORM" && e.getAttributeNode(n))
+ return e.getAttributeNode(n).nodeValue;
+
+ if (n === 'style') {
+ v = v || e.style.cssText;
+
+ if (v) {
+ v = t.serializeStyle(t.parseStyle(v), e.nodeName);
+
+ if (t.settings.keep_values && !t._isRes(v))
+ e.setAttribute('data-mce-style', v);
+ }
+ }
+
+ // Remove Apple and WebKit stuff
+ if (isWebKit && n === "class" && v)
+ v = v.replace(/(apple|webkit)\-[a-z\-]+/gi, '');
+
+ // Handle IE issues
+ if (isIE) {
+ switch (n) {
+ case 'rowspan':
+ case 'colspan':
+ // IE returns 1 as default value
+ if (v === 1)
+ v = '';
+
+ break;
+
+ case 'size':
+ // IE returns +0 as default value for size
+ if (v === '+0' || v === 20 || v === 0)
+ v = '';
+
+ break;
+
+ case 'width':
+ case 'height':
+ case 'vspace':
+ case 'checked':
+ case 'disabled':
+ case 'readonly':
+ if (v === 0)
+ v = '';
+
+ break;
+
+ case 'hspace':
+ // IE returns -1 as default value
+ if (v === -1)
+ v = '';
+
+ break;
+
+ case 'maxlength':
+ case 'tabindex':
+ // IE returns default value
+ if (v === 32768 || v === 2147483647 || v === '32768')
+ v = '';
+
+ break;
+
+ case 'multiple':
+ case 'compact':
+ case 'noshade':
+ case 'nowrap':
+ if (v === 65535)
+ return n;
+
+ return dv;
+
+ case 'shape':
+ v = v.toLowerCase();
+ break;
+
+ default:
+ // IE has odd anonymous function for event attributes
+ if (n.indexOf('on') === 0 && v)
+ v = tinymce._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/, '$1', '' + v);
+ }
+ }
+
+ return (v !== undef && v !== null && v !== '') ? '' + v : dv;
+ },
+
+ getPos : function(n, ro) {
+ var t = this, x = 0, y = 0, e, d = t.doc, r;
+
+ n = t.get(n);
+ ro = ro || d.body;
+
+ if (n) {
+ // Use getBoundingClientRect if it exists since it's faster than looping offset nodes
+ if (n.getBoundingClientRect) {
+ n = n.getBoundingClientRect();
+ e = t.boxModel ? d.documentElement : d.body;
+
+ // Add scroll offsets from documentElement or body since IE with the wrong box model will use d.body and so do WebKit
+ // Also remove the body/documentelement clientTop/clientLeft on IE 6, 7 since they offset the position
+ x = n.left + (d.documentElement.scrollLeft || d.body.scrollLeft) - e.clientTop;
+ y = n.top + (d.documentElement.scrollTop || d.body.scrollTop) - e.clientLeft;
+
+ return {x : x, y : y};
+ }
+
+ r = n;
+ while (r && r != ro && r.nodeType) {
+ x += r.offsetLeft || 0;
+ y += r.offsetTop || 0;
+ r = r.offsetParent;
+ }
+
+ r = n.parentNode;
+ while (r && r != ro && r.nodeType) {
+ x -= r.scrollLeft || 0;
+ y -= r.scrollTop || 0;
+ r = r.parentNode;
+ }
+ }
+
+ return {x : x, y : y};
+ },
+
+ parseStyle : function(st) {
+ return this.styles.parse(st);
+ },
+
+ serializeStyle : function(o, name) {
+ return this.styles.serialize(o, name);
+ },
+
+ addStyle: function(cssText) {
+ var doc = this.doc, head;
+
+ // Create style element if needed
+ styleElm = doc.getElementById('mceDefaultStyles');
+ if (!styleElm) {
+ styleElm = doc.createElement('style'),
+ styleElm.id = 'mceDefaultStyles';
+ styleElm.type = 'text/css';
+
+ head = doc.getElementsByTagName('head')[0];
+ if (head.firstChild) {
+ head.insertBefore(styleElm, head.firstChild);
+ } else {
+ head.appendChild(styleElm);
+ }
+ }
+
+ // Append style data to old or new style element
+ if (styleElm.styleSheet) {
+ styleElm.styleSheet.cssText += cssText;
+ } else {
+ styleElm.appendChild(doc.createTextNode(cssText));
+ }
+ },
+
+ loadCSS : function(u) {
+ var t = this, d = t.doc, head;
+
+ if (!u)
+ u = '';
+
+ head = d.getElementsByTagName('head')[0];
+
+ each(u.split(','), function(u) {
+ var link;
+
+ if (t.files[u])
+ return;
+
+ t.files[u] = true;
+ link = t.create('link', {rel : 'stylesheet', href : tinymce._addVer(u)});
+
+ // IE 8 has a bug where dynamically loading stylesheets would produce a 1 item remaining bug
+ // This fix seems to resolve that issue by realcing the document ones a stylesheet finishes loading
+ // It's ugly but it seems to work fine.
+ if (isIE && d.documentMode && d.recalc) {
+ link.onload = function() {
+ if (d.recalc)
+ d.recalc();
+
+ link.onload = null;
+ };
+ }
+
+ head.appendChild(link);
+ });
+ },
+
+ addClass : function(e, c) {
+ return this.run(e, function(e) {
+ var o;
+
+ if (!c)
+ return 0;
+
+ if (this.hasClass(e, c))
+ return e.className;
+
+ o = this.removeClass(e, c);
+
+ return e.className = (o != '' ? (o + ' ') : '') + c;
+ });
+ },
+
+ removeClass : function(e, c) {
+ var t = this, re;
+
+ return t.run(e, function(e) {
+ var v;
+
+ if (t.hasClass(e, c)) {
+ if (!re)
+ re = new RegExp("(^|\\s+)" + c + "(\\s+|$)", "g");
+
+ v = e.className.replace(re, ' ');
+ v = tinymce.trim(v != ' ' ? v : '');
+
+ e.className = v;
+
+ // Empty class attr
+ if (!v) {
+ e.removeAttribute('class');
+ e.removeAttribute('className');
+ }
+
+ return v;
+ }
+
+ return e.className;
+ });
+ },
+
+ hasClass : function(n, c) {
+ n = this.get(n);
+
+ if (!n || !c)
+ return false;
+
+ return (' ' + n.className + ' ').indexOf(' ' + c + ' ') !== -1;
+ },
+
+ show : function(e) {
+ return this.setStyle(e, 'display', 'block');
+ },
+
+ hide : function(e) {
+ return this.setStyle(e, 'display', 'none');
+ },
+
+ isHidden : function(e) {
+ e = this.get(e);
+
+ return !e || e.style.display == 'none' || this.getStyle(e, 'display') == 'none';
+ },
+
+ uniqueId : function(p) {
+ return (!p ? 'mce_' : p) + (this.counter++);
+ },
+
+ setHTML : function(element, html) {
+ var self = this;
+
+ return self.run(element, function(element) {
+ if (isIE) {
+ // Remove all child nodes, IE keeps empty text nodes in DOM
+ while (element.firstChild)
+ element.removeChild(element.firstChild);
+
+ try {
+ // IE will remove comments from the beginning
+ // unless you padd the contents with something
+ element.innerHTML = '<br />' + html;
+ element.removeChild(element.firstChild);
+ } catch (ex) {
+ // IE sometimes produces an unknown runtime error on innerHTML if it's an block element within a block element for example a div inside a p
+ // This seems to fix this problem
+
+ // Create new div with HTML contents and a BR infront to keep comments
+ var newElement = self.create('div');
+ newElement.innerHTML = '<br />' + html;
+
+ // Add all children from div to target
+ each (tinymce.grep(newElement.childNodes), function(node, i) {
+ // Skip br element
+ if (i && element.canHaveHTML)
+ element.appendChild(node);
+ });
+ }
+ } else
+ element.innerHTML = html;
+
+ return html;
+ });
+ },
+
+ getOuterHTML : function(elm) {
+ var doc, self = this;
+
+ elm = self.get(elm);
+
+ if (!elm)
+ return null;
+
+ if (elm.nodeType === 1 && self.hasOuterHTML)
+ return elm.outerHTML;
+
+ doc = (elm.ownerDocument || self.doc).createElement("body");
+ doc.appendChild(elm.cloneNode(true));
+
+ return doc.innerHTML;
+ },
+
+ setOuterHTML : function(e, h, d) {
+ var t = this;
+
+ function setHTML(e, h, d) {
+ var n, tp;
+
+ tp = d.createElement("body");
+ tp.innerHTML = h;
+
+ n = tp.lastChild;
+ while (n) {
+ t.insertAfter(n.cloneNode(true), e);
+ n = n.previousSibling;
+ }
+
+ t.remove(e);
+ };
+
+ return this.run(e, function(e) {
+ e = t.get(e);
+
+ // Only set HTML on elements
+ if (e.nodeType == 1) {
+ d = d || e.ownerDocument || t.doc;
+
+ if (isIE) {
+ try {
+ // Try outerHTML for IE it sometimes produces an unknown runtime error
+ if (isIE && e.nodeType == 1)
+ e.outerHTML = h;
+ else
+ setHTML(e, h, d);
+ } catch (ex) {
+ // Fix for unknown runtime error
+ setHTML(e, h, d);
+ }
+ } else
+ setHTML(e, h, d);
+ }
+ });
+ },
+
+ decode : Entities.decode,
+
+ encode : Entities.encodeAllRaw,
+
+ insertAfter : function(node, reference_node) {
+ reference_node = this.get(reference_node);
+
+ return this.run(node, function(node) {
+ var parent, nextSibling;
+
+ parent = reference_node.parentNode;
+ nextSibling = reference_node.nextSibling;
+
+ if (nextSibling)
+ parent.insertBefore(node, nextSibling);
+ else
+ parent.appendChild(node);
+
+ return node;
+ });
+ },
+
+ replace : function(n, o, k) {
+ var t = this;
+
+ if (is(o, 'array'))
+ n = n.cloneNode(true);
+
+ return t.run(o, function(o) {
+ if (k) {
+ each(tinymce.grep(o.childNodes), function(c) {
+ n.appendChild(c);
+ });
+ }
+
+ return o.parentNode.replaceChild(n, o);
+ });
+ },
+
+ rename : function(elm, name) {
+ var t = this, newElm;
+
+ if (elm.nodeName != name.toUpperCase()) {
+ // Rename block element
+ newElm = t.create(name);
+
+ // Copy attribs to new block
+ each(t.getAttribs(elm), function(attr_node) {
+ t.setAttrib(newElm, attr_node.nodeName, t.getAttrib(elm, attr_node.nodeName));
+ });
+
+ // Replace block
+ t.replace(newElm, elm, 1);
+ }
+
+ return newElm || elm;
+ },
+
+ findCommonAncestor : function(a, b) {
+ var ps = a, pe;
+
+ while (ps) {
+ pe = b;
+
+ while (pe && ps != pe)
+ pe = pe.parentNode;
+
+ if (ps == pe)
+ break;
+
+ ps = ps.parentNode;
+ }
+
+ if (!ps && a.ownerDocument)
+ return a.ownerDocument.documentElement;
+
+ return ps;
+ },
+
+ toHex : function(s) {
+ var c = /^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(s);
+
+ function hex(s) {
+ s = parseInt(s, 10).toString(16);
+
+ return s.length > 1 ? s : '0' + s; // 0 -> 00
+ };
+
+ if (c) {
+ s = '#' + hex(c[1]) + hex(c[2]) + hex(c[3]);
+
+ return s;
+ }
+
+ return s;
+ },
+
+ getClasses : function() {
+ var t = this, cl = [], i, lo = {}, f = t.settings.class_filter, ov;
+
+ if (t.classes)
+ return t.classes;
+
+ function addClasses(s) {
+ // IE style imports
+ each(s.imports, function(r) {
+ addClasses(r);
+ });
+
+ each(s.cssRules || s.rules, function(r) {
+ // Real type or fake it on IE
+ switch (r.type || 1) {
+ // Rule
+ case 1:
+ if (r.selectorText) {
+ each(r.selectorText.split(','), function(v) {
+ v = v.replace(/^\s*|\s*$|^\s\./g, "");
+
+ // Is internal or it doesn't contain a class
+ if (/\.mce/.test(v) || !/\.[\w\-]+$/.test(v))
+ return;
+
+ // Remove everything but class name
+ ov = v;
+ v = tinymce._replace(/.*\.([a-z0-9_\-]+).*/i, '$1', v);
+
+ // Filter classes
+ if (f && !(v = f(v, ov)))
+ return;
+
+ if (!lo[v]) {
+ cl.push({'class' : v});
+ lo[v] = 1;
+ }
+ });
+ }
+ break;
+
+ // Import
+ case 3:
+ addClasses(r.styleSheet);
+ break;
+ }
+ });
+ };
+
+ try {
+ each(t.doc.styleSheets, addClasses);
+ } catch (ex) {
+ // Ignore
+ }
+
+ if (cl.length > 0)
+ t.classes = cl;
+
+ return cl;
+ },
+
+ run : function(e, f, s) {
+ var t = this, o;
+
+ if (t.doc && typeof(e) === 'string')
+ e = t.get(e);
+
+ if (!e)
+ return false;
+
+ s = s || this;
+ if (!e.nodeType && (e.length || e.length === 0)) {
+ o = [];
+
+ each(e, function(e, i) {
+ if (e) {
+ if (typeof(e) == 'string')
+ e = t.doc.getElementById(e);
+
+ o.push(f.call(s, e, i));
+ }
+ });
+
+ return o;
+ }
+
+ return f.call(s, e);
+ },
+
+ getAttribs : function(n) {
+ var o;
+
+ n = this.get(n);
+
+ if (!n)
+ return [];
+
+ if (isIE) {
+ o = [];
+
+ // Object will throw exception in IE
+ if (n.nodeName == 'OBJECT')
+ return n.attributes;
+
+ // IE doesn't keep the selected attribute if you clone option elements
+ if (n.nodeName === 'OPTION' && this.getAttrib(n, 'selected'))
+ o.push({specified : 1, nodeName : 'selected'});
+
+ // It's crazy that this is faster in IE but it's because it returns all attributes all the time
+ n.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi, '').replace(/[\w:\-]+/gi, function(a) {
+ o.push({specified : 1, nodeName : a});
+ });
+
+ return o;
+ }
+
+ return n.attributes;
+ },
+
+ isEmpty : function(node, elements) {
+ var self = this, i, attributes, type, walker, name, brCount = 0;
+
+ node = node.firstChild;
+ if (node) {
+ walker = new tinymce.dom.TreeWalker(node, node.parentNode);
+ elements = elements || self.schema ? self.schema.getNonEmptyElements() : null;
+
+ do {
+ type = node.nodeType;
+
+ if (type === 1) {
+ // Ignore bogus elements
+ if (node.getAttribute('data-mce-bogus'))
+ continue;
+
+ // Keep empty elements like <img />
+ name = node.nodeName.toLowerCase();
+ if (elements && elements[name]) {
+ // Ignore single BR elements in blocks like <p><br /></p> or <p><span><br /></span></p>
+ if (name === 'br') {
+ brCount++;
+ continue;
+ }
+
+ return false;
+ }
+
+ // Keep elements with data-bookmark attributes or name attribute like <a name="1"></a>
+ attributes = self.getAttribs(node);
+ i = node.attributes.length;
+ while (i--) {
+ name = node.attributes[i].nodeName;
+ if (name === "name" || name === 'data-mce-bookmark')
+ return false;
+ }
+ }
+
+ // Keep comment nodes
+ if (type == 8)
+ return false;
+
+ // Keep non whitespace text nodes
+ if ((type === 3 && !whiteSpaceRegExp.test(node.nodeValue)))
+ return false;
+ } while (node = walker.next());
+ }
+
+ return brCount <= 1;
+ },
+
+ destroy : function(s) {
+ var t = this;
+
+ t.win = t.doc = t.root = t.events = t.frag = null;
+
+ // Manual destroy then remove unload handler
+ if (!s)
+ tinymce.removeUnload(t.destroy);
+ },
+
+ createRng : function() {
+ var d = this.doc;
+
+ return d.createRange ? d.createRange() : new tinymce.dom.Range(this);
+ },
+
+ nodeIndex : function(node, normalized) {
+ var idx = 0, lastNodeType, lastNode, nodeType;
+
+ if (node) {
+ for (lastNodeType = node.nodeType, node = node.previousSibling, lastNode = node; node; node = node.previousSibling) {
+ nodeType = node.nodeType;
+
+ // Normalize text nodes
+ if (normalized && nodeType == 3) {
+ if (nodeType == lastNodeType || !node.nodeValue.length)
+ continue;
+ }
+ idx++;
+ lastNodeType = nodeType;
+ }
+ }
+
+ return idx;
+ },
+
+ split : function(pe, e, re) {
+ var t = this, r = t.createRng(), bef, aft, pa;
+
+ // W3C valid browsers tend to leave empty nodes to the left/right side of the contents, this makes sense
+ // but we don't want that in our code since it serves no purpose for the end user
+ // For example if this is chopped:
+ // <p>text 1<span><b>CHOP</b></span>text 2</p>
+ // would produce:
+ // <p>text 1<span></span></p><b>CHOP</b><p><span></span>text 2</p>
+ // this function will then trim of empty edges and produce:
+ // <p>text 1</p><b>CHOP</b><p>text 2</p>
+ function trim(node) {
+ var i, children = node.childNodes, type = node.nodeType;
+
+ function surroundedBySpans(node) {
+ var previousIsSpan = node.previousSibling && node.previousSibling.nodeName == 'SPAN';
+ var nextIsSpan = node.nextSibling && node.nextSibling.nodeName == 'SPAN';
+ return previousIsSpan && nextIsSpan;
+ }
+
+ if (type == 1 && node.getAttribute('data-mce-type') == 'bookmark')
+ return;
+
+ for (i = children.length - 1; i >= 0; i--)
+ trim(children[i]);
+
+ if (type != 9) {
+ // Keep non whitespace text nodes
+ if (type == 3 && node.nodeValue.length > 0) {
+ // If parent element isn't a block or there isn't any useful contents for example "<p> </p>"
+ // Also keep text nodes with only spaces if surrounded by spans.
+ // eg. "<p><span>a</span> <span>b</span></p>" should keep space between a and b
+ var trimmedLength = tinymce.trim(node.nodeValue).length;
+ if (!t.isBlock(node.parentNode) || trimmedLength > 0 || trimmedLength === 0 && surroundedBySpans(node))
+ return;
+ } else if (type == 1) {
+ // If the only child is a bookmark then move it up
+ children = node.childNodes;
+ if (children.length == 1 && children[0] && children[0].nodeType == 1 && children[0].getAttribute('data-mce-type') == 'bookmark')
+ node.parentNode.insertBefore(children[0], node);
+
+ // Keep non empty elements or img, hr etc
+ if (children.length || /^(br|hr|input|img)$/i.test(node.nodeName))
+ return;
+ }
+
+ t.remove(node);
+ }
+
+ return node;
+ };
+
+ if (pe && e) {
+ // Get before chunk
+ r.setStart(pe.parentNode, t.nodeIndex(pe));
+ r.setEnd(e.parentNode, t.nodeIndex(e));
+ bef = r.extractContents();
+
+ // Get after chunk
+ r = t.createRng();
+ r.setStart(e.parentNode, t.nodeIndex(e) + 1);
+ r.setEnd(pe.parentNode, t.nodeIndex(pe) + 1);
+ aft = r.extractContents();
+
+ // Insert before chunk
+ pa = pe.parentNode;
+ pa.insertBefore(trim(bef), pe);
+
+ // Insert middle chunk
+ if (re)
+ pa.replaceChild(re, e);
+ else
+ pa.insertBefore(e, pe);
+
+ // Insert after chunk
+ pa.insertBefore(trim(aft), pe);
+ t.remove(pe);
+
+ return re || e;
+ }
+ },
+
+ bind : function(target, name, func, scope) {
+ return this.events.add(target, name, func, scope || this);
+ },
+
+ unbind : function(target, name, func) {
+ return this.events.remove(target, name, func);
+ },
+
+ fire : function(target, name, evt) {
+ return this.events.fire(target, name, evt);
+ },
+
+ // Returns the content editable state of a node
+ getContentEditable: function(node) {
+ var contentEditable;
+
+ // Check type
+ if (node.nodeType != 1) {
+ return null;
+ }
+
+ // Check for fake content editable
+ contentEditable = node.getAttribute("data-mce-contenteditable");
+ if (contentEditable && contentEditable !== "inherit") {
+ return contentEditable;
+ }
+
+ // Check for real content editable
+ return node.contentEditable !== "inherit" ? node.contentEditable : null;
+ },
+
+
+ _findSib : function(node, selector, name) {
+ var t = this, f = selector;
+
+ if (node) {
+ // If expression make a function of it using is
+ if (is(f, 'string')) {
+ f = function(node) {
+ return t.is(node, selector);
+ };
+ }
+
+ // Loop all siblings
+ for (node = node[name]; node; node = node[name]) {
+ if (f(node))
+ return node;
+ }
+ }
+
+ return null;
+ },
+
+ _isRes : function(c) {
+ // Is live resizble element
+ return /^(top|left|bottom|right|width|height)/i.test(c) || /;\s*(top|left|bottom|right|width|height)/i.test(c);
+ }
+
+ /*
+ walk : function(n, f, s) {
+ var d = this.doc, w;
+
+ if (d.createTreeWalker) {
+ w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false);
+
+ while ((n = w.nextNode()) != null)
+ f.call(s || this, n);
+ } else
+ tinymce.walk(n, f, 'childNodes', s);
+ }
+ */
+
+ /*
+ toRGB : function(s) {
+ var c = /^\s*?#([0-9A-F]{2})([0-9A-F]{1,2})([0-9A-F]{2})?\s*?$/.exec(s);
+
+ if (c) {
+ // #FFF -> #FFFFFF
+ if (!is(c[3]))
+ c[3] = c[2] = c[1];
+
+ return "rgb(" + parseInt(c[1], 16) + "," + parseInt(c[2], 16) + "," + parseInt(c[3], 16) + ")";
+ }
+
+ return s;
+ }
+ */
+ });
+
+ tinymce.DOM = new tinymce.dom.DOMUtils(document, {process_html : 0});
+})(tinymce);
+
+(function(ns) {
+ // Range constructor
+ function Range(dom) {
+ var t = this,
+ doc = dom.doc,
+ EXTRACT = 0,
+ CLONE = 1,
+ DELETE = 2,
+ TRUE = true,
+ FALSE = false,
+ START_OFFSET = 'startOffset',
+ START_CONTAINER = 'startContainer',
+ END_CONTAINER = 'endContainer',
+ END_OFFSET = 'endOffset',
+ extend = tinymce.extend,
+ nodeIndex = dom.nodeIndex;
+
+ extend(t, {
+ // Inital states
+ startContainer : doc,
+ startOffset : 0,
+ endContainer : doc,
+ endOffset : 0,
+ collapsed : TRUE,
+ commonAncestorContainer : doc,
+
+ // Range constants
+ START_TO_START : 0,
+ START_TO_END : 1,
+ END_TO_END : 2,
+ END_TO_START : 3,
+
+ // Public methods
+ setStart : setStart,
+ setEnd : setEnd,
+ setStartBefore : setStartBefore,
+ setStartAfter : setStartAfter,
+ setEndBefore : setEndBefore,
+ setEndAfter : setEndAfter,
+ collapse : collapse,
+ selectNode : selectNode,
+ selectNodeContents : selectNodeContents,
+ compareBoundaryPoints : compareBoundaryPoints,
+ deleteContents : deleteContents,
+ extractContents : extractContents,
+ cloneContents : cloneContents,
+ insertNode : insertNode,
+ surroundContents : surroundContents,
+ cloneRange : cloneRange,
+ toStringIE : toStringIE
+ });
+
+ function createDocumentFragment() {
+ return doc.createDocumentFragment();
+ };
+
+ function setStart(n, o) {
+ _setEndPoint(TRUE, n, o);
+ };
+
+ function setEnd(n, o) {
+ _setEndPoint(FALSE, n, o);
+ };
+
+ function setStartBefore(n) {
+ setStart(n.parentNode, nodeIndex(n));
+ };
+
+ function setStartAfter(n) {
+ setStart(n.parentNode, nodeIndex(n) + 1);
+ };
+
+ function setEndBefore(n) {
+ setEnd(n.parentNode, nodeIndex(n));
+ };
+
+ function setEndAfter(n) {
+ setEnd(n.parentNode, nodeIndex(n) + 1);
+ };
+
+ function collapse(ts) {
+ if (ts) {
+ t[END_CONTAINER] = t[START_CONTAINER];
+ t[END_OFFSET] = t[START_OFFSET];
+ } else {
+ t[START_CONTAINER] = t[END_CONTAINER];
+ t[START_OFFSET] = t[END_OFFSET];
+ }
+
+ t.collapsed = TRUE;
+ };
+
+ function selectNode(n) {
+ setStartBefore(n);
+ setEndAfter(n);
+ };
+
+ function selectNodeContents(n) {
+ setStart(n, 0);
+ setEnd(n, n.nodeType === 1 ? n.childNodes.length : n.nodeValue.length);
+ };
+
+ function compareBoundaryPoints(h, r) {
+ var sc = t[START_CONTAINER], so = t[START_OFFSET], ec = t[END_CONTAINER], eo = t[END_OFFSET],
+ rsc = r.startContainer, rso = r.startOffset, rec = r.endContainer, reo = r.endOffset;
+
+ // Check START_TO_START
+ if (h === 0)
+ return _compareBoundaryPoints(sc, so, rsc, rso);
+
+ // Check START_TO_END
+ if (h === 1)
+ return _compareBoundaryPoints(ec, eo, rsc, rso);
+
+ // Check END_TO_END
+ if (h === 2)
+ return _compareBoundaryPoints(ec, eo, rec, reo);
+
+ // Check END_TO_START
+ if (h === 3)
+ return _compareBoundaryPoints(sc, so, rec, reo);
+ };
+
+ function deleteContents() {
+ _traverse(DELETE);
+ };
+
+ function extractContents() {
+ return _traverse(EXTRACT);
+ };
+
+ function cloneContents() {
+ return _traverse(CLONE);
+ };
+
+ function insertNode(n) {
+ var startContainer = this[START_CONTAINER],
+ startOffset = this[START_OFFSET], nn, o;
+
+ // Node is TEXT_NODE or CDATA
+ if ((startContainer.nodeType === 3 || startContainer.nodeType === 4) && startContainer.nodeValue) {
+ if (!startOffset) {
+ // At the start of text
+ startContainer.parentNode.insertBefore(n, startContainer);
+ } else if (startOffset >= startContainer.nodeValue.length) {
+ // At the end of text
+ dom.insertAfter(n, startContainer);
+ } else {
+ // Middle, need to split
+ nn = startContainer.splitText(startOffset);
+ startContainer.parentNode.insertBefore(n, nn);
+ }
+ } else {
+ // Insert element node
+ if (startContainer.childNodes.length > 0)
+ o = startContainer.childNodes[startOffset];
+
+ if (o)
+ startContainer.insertBefore(n, o);
+ else
+ startContainer.appendChild(n);
+ }
+ };
+
+ function surroundContents(n) {
+ var f = t.extractContents();
+
+ t.insertNode(n);
+ n.appendChild(f);
+ t.selectNode(n);
+ };
+
+ function cloneRange() {
+ return extend(new Range(dom), {
+ startContainer : t[START_CONTAINER],
+ startOffset : t[START_OFFSET],
+ endContainer : t[END_CONTAINER],
+ endOffset : t[END_OFFSET],
+ collapsed : t.collapsed,
+ commonAncestorContainer : t.commonAncestorContainer
+ });
+ };
+
+ // Private methods
+
+ function _getSelectedNode(container, offset) {
+ var child;
+
+ if (container.nodeType == 3 /* TEXT_NODE */)
+ return container;
+
+ if (offset < 0)
+ return container;
+
+ child = container.firstChild;
+ while (child && offset > 0) {
+ --offset;
+ child = child.nextSibling;
+ }
+
+ if (child)
+ return child;
+
+ return container;
+ };
+
+ function _isCollapsed() {
+ return (t[START_CONTAINER] == t[END_CONTAINER] && t[START_OFFSET] == t[END_OFFSET]);
+ };
+
+ function _compareBoundaryPoints(containerA, offsetA, containerB, offsetB) {
+ var c, offsetC, n, cmnRoot, childA, childB;
+
+ // In the first case the boundary-points have the same container. A is before B
+ // if its offset is less than the offset of B, A is equal to B if its offset is
+ // equal to the offset of B, and A is after B if its offset is greater than the
+ // offset of B.
+ if (containerA == containerB) {
+ if (offsetA == offsetB)
+ return 0; // equal
+
+ if (offsetA < offsetB)
+ return -1; // before
+
+ return 1; // after
+ }
+
+ // In the second case a child node C of the container of A is an ancestor
+ // container of B. In this case, A is before B if the offset of A is less than or
+ // equal to the index of the child node C and A is after B otherwise.
+ c = containerB;
+ while (c && c.parentNode != containerA)
+ c = c.parentNode;
+
+ if (c) {
+ offsetC = 0;
+ n = containerA.firstChild;
+
+ while (n != c && offsetC < offsetA) {
+ offsetC++;
+ n = n.nextSibling;
+ }
+
+ if (offsetA <= offsetC)
+ return -1; // before
+
+ return 1; // after
+ }
+
+ // In the third case a child node C of the container of B is an ancestor container
+ // of A. In this case, A is before B if the index of the child node C is less than
+ // the offset of B and A is after B otherwise.
+ c = containerA;
+ while (c && c.parentNode != containerB) {
+ c = c.parentNode;
+ }
+
+ if (c) {
+ offsetC = 0;
+ n = containerB.firstChild;
+
+ while (n != c && offsetC < offsetB) {
+ offsetC++;
+ n = n.nextSibling;
+ }
+
+ if (offsetC < offsetB)
+ return -1; // before
+
+ return 1; // after
+ }
+
+ // In the fourth case, none of three other cases hold: the containers of A and B
+ // are siblings or descendants of sibling nodes. In this case, A is before B if
+ // the container of A is before the container of B in a pre-order traversal of the
+ // Ranges' context tree and A is after B otherwise.
+ cmnRoot = dom.findCommonAncestor(containerA, containerB);
+ childA = containerA;
+
+ while (childA && childA.parentNode != cmnRoot)
+ childA = childA.parentNode;
+
+ if (!childA)
+ childA = cmnRoot;
+
+ childB = containerB;
+ while (childB && childB.parentNode != cmnRoot)
+ childB = childB.parentNode;
+
+ if (!childB)
+ childB = cmnRoot;
+
+ if (childA == childB)
+ return 0; // equal
+
+ n = cmnRoot.firstChild;
+ while (n) {
+ if (n == childA)
+ return -1; // before
+
+ if (n == childB)
+ return 1; // after
+
+ n = n.nextSibling;
+ }
+ };
+
+ function _setEndPoint(st, n, o) {
+ var ec, sc;
+
+ if (st) {
+ t[START_CONTAINER] = n;
+ t[START_OFFSET] = o;
+ } else {
+ t[END_CONTAINER] = n;
+ t[END_OFFSET] = o;
+ }
+
+ // If one boundary-point of a Range is set to have a root container
+ // other than the current one for the Range, the Range is collapsed to
+ // the new position. This enforces the restriction that both boundary-
+ // points of a Range must have the same root container.
+ ec = t[END_CONTAINER];
+ while (ec.parentNode)
+ ec = ec.parentNode;
+
+ sc = t[START_CONTAINER];
+ while (sc.parentNode)
+ sc = sc.parentNode;
+
+ if (sc == ec) {
+ // The start position of a Range is guaranteed to never be after the
+ // end position. To enforce this restriction, if the start is set to
+ // be at a position after the end, the Range is collapsed to that
+ // position.
+ if (_compareBoundaryPoints(t[START_CONTAINER], t[START_OFFSET], t[END_CONTAINER], t[END_OFFSET]) > 0)
+ t.collapse(st);
+ } else
+ t.collapse(st);
+
+ t.collapsed = _isCollapsed();
+ t.commonAncestorContainer = dom.findCommonAncestor(t[START_CONTAINER], t[END_CONTAINER]);
+ };
+
+ function _traverse(how) {
+ var c, endContainerDepth = 0, startContainerDepth = 0, p, depthDiff, startNode, endNode, sp, ep;
+
+ if (t[START_CONTAINER] == t[END_CONTAINER])
+ return _traverseSameContainer(how);
+
+ for (c = t[END_CONTAINER], p = c.parentNode; p; c = p, p = p.parentNode) {
+ if (p == t[START_CONTAINER])
+ return _traverseCommonStartContainer(c, how);
+
+ ++endContainerDepth;
+ }
+
+ for (c = t[START_CONTAINER], p = c.parentNode; p; c = p, p = p.parentNode) {
+ if (p == t[END_CONTAINER])
+ return _traverseCommonEndContainer(c, how);
+
+ ++startContainerDepth;
+ }
+
+ depthDiff = startContainerDepth - endContainerDepth;
+
+ startNode = t[START_CONTAINER];
+ while (depthDiff > 0) {
+ startNode = startNode.parentNode;
+ depthDiff--;
+ }
+
+ endNode = t[END_CONTAINER];
+ while (depthDiff < 0) {
+ endNode = endNode.parentNode;
+ depthDiff++;
+ }
+
+ // ascend the ancestor hierarchy until we have a common parent.
+ for (sp = startNode.parentNode, ep = endNode.parentNode; sp != ep; sp = sp.parentNode, ep = ep.parentNode) {
+ startNode = sp;
+ endNode = ep;
+ }
+
+ return _traverseCommonAncestors(startNode, endNode, how);
+ };
+
+ function _traverseSameContainer(how) {
+ var frag, s, sub, n, cnt, sibling, xferNode, start, len;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ // If selection is empty, just return the fragment
+ if (t[START_OFFSET] == t[END_OFFSET])
+ return frag;
+
+ // Text node needs special case handling
+ if (t[START_CONTAINER].nodeType == 3 /* TEXT_NODE */) {
+ // get the substring
+ s = t[START_CONTAINER].nodeValue;
+ sub = s.substring(t[START_OFFSET], t[END_OFFSET]);
+
+ // set the original text node to its new value
+ if (how != CLONE) {
+ n = t[START_CONTAINER];
+ start = t[START_OFFSET];
+ len = t[END_OFFSET] - t[START_OFFSET];
+
+ if (start === 0 && len >= n.nodeValue.length - 1) {
+ n.parentNode.removeChild(n);
+ } else {
+ n.deleteData(start, len);
+ }
+
+ // Nothing is partially selected, so collapse to start point
+ t.collapse(TRUE);
+ }
+
+ if (how == DELETE)
+ return;
+
+ if (sub.length > 0) {
+ frag.appendChild(doc.createTextNode(sub));
+ }
+
+ return frag;
+ }
+
+ // Copy nodes between the start/end offsets.
+ n = _getSelectedNode(t[START_CONTAINER], t[START_OFFSET]);
+ cnt = t[END_OFFSET] - t[START_OFFSET];
+
+ while (n && cnt > 0) {
+ sibling = n.nextSibling;
+ xferNode = _traverseFullySelected(n, how);
+
+ if (frag)
+ frag.appendChild( xferNode );
+
+ --cnt;
+ n = sibling;
+ }
+
+ // Nothing is partially selected, so collapse to start point
+ if (how != CLONE)
+ t.collapse(TRUE);
+
+ return frag;
+ };
+
+ function _traverseCommonStartContainer(endAncestor, how) {
+ var frag, n, endIdx, cnt, sibling, xferNode;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ n = _traverseRightBoundary(endAncestor, how);
+
+ if (frag)
+ frag.appendChild(n);
+
+ endIdx = nodeIndex(endAncestor);
+ cnt = endIdx - t[START_OFFSET];
+
+ if (cnt <= 0) {
+ // Collapse to just before the endAncestor, which
+ // is partially selected.
+ if (how != CLONE) {
+ t.setEndBefore(endAncestor);
+ t.collapse(FALSE);
+ }
+
+ return frag;
+ }
+
+ n = endAncestor.previousSibling;
+ while (cnt > 0) {
+ sibling = n.previousSibling;
+ xferNode = _traverseFullySelected(n, how);
+
+ if (frag)
+ frag.insertBefore(xferNode, frag.firstChild);
+
+ --cnt;
+ n = sibling;
+ }
+
+ // Collapse to just before the endAncestor, which
+ // is partially selected.
+ if (how != CLONE) {
+ t.setEndBefore(endAncestor);
+ t.collapse(FALSE);
+ }
+
+ return frag;
+ };
+
+ function _traverseCommonEndContainer(startAncestor, how) {
+ var frag, startIdx, n, cnt, sibling, xferNode;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ n = _traverseLeftBoundary(startAncestor, how);
+ if (frag)
+ frag.appendChild(n);
+
+ startIdx = nodeIndex(startAncestor);
+ ++startIdx; // Because we already traversed it
+
+ cnt = t[END_OFFSET] - startIdx;
+ n = startAncestor.nextSibling;
+ while (n && cnt > 0) {
+ sibling = n.nextSibling;
+ xferNode = _traverseFullySelected(n, how);
+
+ if (frag)
+ frag.appendChild(xferNode);
+
+ --cnt;
+ n = sibling;
+ }
+
+ if (how != CLONE) {
+ t.setStartAfter(startAncestor);
+ t.collapse(TRUE);
+ }
+
+ return frag;
+ };
+
+ function _traverseCommonAncestors(startAncestor, endAncestor, how) {
+ var n, frag, commonParent, startOffset, endOffset, cnt, sibling, nextSibling;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ n = _traverseLeftBoundary(startAncestor, how);
+ if (frag)
+ frag.appendChild(n);
+
+ commonParent = startAncestor.parentNode;
+ startOffset = nodeIndex(startAncestor);
+ endOffset = nodeIndex(endAncestor);
+ ++startOffset;
+
+ cnt = endOffset - startOffset;
+ sibling = startAncestor.nextSibling;
+
+ while (cnt > 0) {
+ nextSibling = sibling.nextSibling;
+ n = _traverseFullySelected(sibling, how);
+
+ if (frag)
+ frag.appendChild(n);
+
+ sibling = nextSibling;
+ --cnt;
+ }
+
+ n = _traverseRightBoundary(endAncestor, how);
+
+ if (frag)
+ frag.appendChild(n);
+
+ if (how != CLONE) {
+ t.setStartAfter(startAncestor);
+ t.collapse(TRUE);
+ }
+
+ return frag;
+ };
+
+ function _traverseRightBoundary(root, how) {
+ var next = _getSelectedNode(t[END_CONTAINER], t[END_OFFSET] - 1), parent, clonedParent, prevSibling, clonedChild, clonedGrandParent, isFullySelected = next != t[END_CONTAINER];
+
+ if (next == root)
+ return _traverseNode(next, isFullySelected, FALSE, how);
+
+ parent = next.parentNode;
+ clonedParent = _traverseNode(parent, FALSE, FALSE, how);
+
+ while (parent) {
+ while (next) {
+ prevSibling = next.previousSibling;
+ clonedChild = _traverseNode(next, isFullySelected, FALSE, how);
+
+ if (how != DELETE)
+ clonedParent.insertBefore(clonedChild, clonedParent.firstChild);
+
+ isFullySelected = TRUE;
+ next = prevSibling;
+ }
+
+ if (parent == root)
+ return clonedParent;
+
+ next = parent.previousSibling;
+ parent = parent.parentNode;
+
+ clonedGrandParent = _traverseNode(parent, FALSE, FALSE, how);
+
+ if (how != DELETE)
+ clonedGrandParent.appendChild(clonedParent);
+
+ clonedParent = clonedGrandParent;
+ }
+ };
+
+ function _traverseLeftBoundary(root, how) {
+ var next = _getSelectedNode(t[START_CONTAINER], t[START_OFFSET]), isFullySelected = next != t[START_CONTAINER], parent, clonedParent, nextSibling, clonedChild, clonedGrandParent;
+
+ if (next == root)
+ return _traverseNode(next, isFullySelected, TRUE, how);
+
+ parent = next.parentNode;
+ clonedParent = _traverseNode(parent, FALSE, TRUE, how);
+
+ while (parent) {
+ while (next) {
+ nextSibling = next.nextSibling;
+ clonedChild = _traverseNode(next, isFullySelected, TRUE, how);
+
+ if (how != DELETE)
+ clonedParent.appendChild(clonedChild);
+
+ isFullySelected = TRUE;
+ next = nextSibling;
+ }
+
+ if (parent == root)
+ return clonedParent;
+
+ next = parent.nextSibling;
+ parent = parent.parentNode;
+
+ clonedGrandParent = _traverseNode(parent, FALSE, TRUE, how);
+
+ if (how != DELETE)
+ clonedGrandParent.appendChild(clonedParent);
+
+ clonedParent = clonedGrandParent;
+ }
+ };
+
+ function _traverseNode(n, isFullySelected, isLeft, how) {
+ var txtValue, newNodeValue, oldNodeValue, offset, newNode;
+
+ if (isFullySelected)
+ return _traverseFullySelected(n, how);
+
+ if (n.nodeType == 3 /* TEXT_NODE */) {
+ txtValue = n.nodeValue;
+
+ if (isLeft) {
+ offset = t[START_OFFSET];
+ newNodeValue = txtValue.substring(offset);
+ oldNodeValue = txtValue.substring(0, offset);
+ } else {
+ offset = t[END_OFFSET];
+ newNodeValue = txtValue.substring(0, offset);
+ oldNodeValue = txtValue.substring(offset);
+ }
+
+ if (how != CLONE)
+ n.nodeValue = oldNodeValue;
+
+ if (how == DELETE)
+ return;
+
+ newNode = dom.clone(n, FALSE);
+ newNode.nodeValue = newNodeValue;
+
+ return newNode;
+ }
+
+ if (how == DELETE)
+ return;
+
+ return dom.clone(n, FALSE);
+ };
+
+ function _traverseFullySelected(n, how) {
+ if (how != DELETE)
+ return how == CLONE ? dom.clone(n, TRUE) : n;
+
+ n.parentNode.removeChild(n);
+ };
+
+ function toStringIE() {
+ return dom.create('body', null, cloneContents()).outerText;
+ }
+
+ return t;
+ };
+
+ ns.Range = Range;
+
+ // Older IE versions doesn't let you override toString by it's constructor so we have to stick it in the prototype
+ Range.prototype.toString = function() {
+ return this.toStringIE();
+ };
+})(tinymce.dom);
+
+(function() {
+ function Selection(selection) {
+ var self = this, dom = selection.dom, TRUE = true, FALSE = false;
+
+ function getPosition(rng, start) {
+ var checkRng, startIndex = 0, endIndex, inside,
+ children, child, offset, index, position = -1, parent;
+
+ // Setup test range, collapse it and get the parent
+ checkRng = rng.duplicate();
+ checkRng.collapse(start);
+ parent = checkRng.parentElement();
+
+ // Check if the selection is within the right document
+ if (parent.ownerDocument !== selection.dom.doc)
+ return;
+
+ // IE will report non editable elements as it's parent so look for an editable one
+ while (parent.contentEditable === "false") {
+ parent = parent.parentNode;
+ }
+
+ // If parent doesn't have any children then return that we are inside the element
+ if (!parent.hasChildNodes()) {
+ return {node : parent, inside : 1};
+ }
+
+ // Setup node list and endIndex
+ children = parent.children;
+ endIndex = children.length - 1;
+
+ // Perform a binary search for the position
+ while (startIndex <= endIndex) {
+ index = Math.floor((startIndex + endIndex) / 2);
+
+ // Move selection to node and compare the ranges
+ child = children[index];
+ checkRng.moveToElementText(child);
+ position = checkRng.compareEndPoints(start ? 'StartToStart' : 'EndToEnd', rng);
+
+ // Before/after or an exact match
+ if (position > 0) {
+ endIndex = index - 1;
+ } else if (position < 0) {
+ startIndex = index + 1;
+ } else {
+ return {node : child};
+ }
+ }
+
+ // Check if child position is before or we didn't find a position
+ if (position < 0) {
+ // No element child was found use the parent element and the offset inside that
+ if (!child) {
+ checkRng.moveToElementText(parent);
+ checkRng.collapse(true);
+ child = parent;
+ inside = true;
+ } else
+ checkRng.collapse(false);
+
+ // Walk character by character in text node until we hit the selected range endpoint, hit the end of document or parent isn't the right one
+ // We need to walk char by char since rng.text or rng.htmlText will trim line endings
+ offset = 0;
+ while (checkRng.compareEndPoints(start ? 'StartToStart' : 'StartToEnd', rng) !== 0) {
+ if (checkRng.move('character', 1) === 0 || parent != checkRng.parentElement()) {
+ break;
+ }
+
+ offset++;
+ }
+ } else {
+ // Child position is after the selection endpoint
+ checkRng.collapse(true);
+
+ // Walk character by character in text node until we hit the selected range endpoint, hit the end of document or parent isn't the right one
+ offset = 0;
+ while (checkRng.compareEndPoints(start ? 'StartToStart' : 'StartToEnd', rng) !== 0) {
+ if (checkRng.move('character', -1) === 0 || parent != checkRng.parentElement()) {
+ break;
+ }
+
+ offset++;
+ }
+ }
+
+ return {node : child, position : position, offset : offset, inside : inside};
+ };
+
+ // Returns a W3C DOM compatible range object by using the IE Range API
+ function getRange() {
+ var ieRange = selection.getRng(), domRange = dom.createRng(), element, collapsed, tmpRange, element2, bookmark, fail;
+
+ // If selection is outside the current document just return an empty range
+ element = ieRange.item ? ieRange.item(0) : ieRange.parentElement();
+ if (element.ownerDocument != dom.doc)
+ return domRange;
+
+ collapsed = selection.isCollapsed();
+
+ // Handle control selection
+ if (ieRange.item) {
+ domRange.setStart(element.parentNode, dom.nodeIndex(element));
+ domRange.setEnd(domRange.startContainer, domRange.startOffset + 1);
+
+ return domRange;
+ }
+
+ function findEndPoint(start) {
+ var endPoint = getPosition(ieRange, start), container, offset, textNodeOffset = 0, sibling, undef, nodeValue;
+
+ container = endPoint.node;
+ offset = endPoint.offset;
+
+ if (endPoint.inside && !container.hasChildNodes()) {
+ domRange[start ? 'setStart' : 'setEnd'](container, 0);
+ return;
+ }
+
+ if (offset === undef) {
+ domRange[start ? 'setStartBefore' : 'setEndAfter'](container);
+ return;
+ }
+
+ if (endPoint.position < 0) {
+ sibling = endPoint.inside ? container.firstChild : container.nextSibling;
+
+ if (!sibling) {
+ domRange[start ? 'setStartAfter' : 'setEndAfter'](container);
+ return;
+ }
+
+ if (!offset) {
+ if (sibling.nodeType == 3)
+ domRange[start ? 'setStart' : 'setEnd'](sibling, 0);
+ else
+ domRange[start ? 'setStartBefore' : 'setEndBefore'](sibling);
+
+ return;
+ }
+
+ // Find the text node and offset
+ while (sibling) {
+ nodeValue = sibling.nodeValue;
+ textNodeOffset += nodeValue.length;
+
+ // We are at or passed the position we where looking for
+ if (textNodeOffset >= offset) {
+ container = sibling;
+ textNodeOffset -= offset;
+ textNodeOffset = nodeValue.length - textNodeOffset;
+ break;
+ }
+
+ sibling = sibling.nextSibling;
+ }
+ } else {
+ // Find the text node and offset
+ sibling = container.previousSibling;
+
+ if (!sibling)
+ return domRange[start ? 'setStartBefore' : 'setEndBefore'](container);
+
+ // If there isn't any text to loop then use the first position
+ if (!offset) {
+ if (container.nodeType == 3)
+ domRange[start ? 'setStart' : 'setEnd'](sibling, container.nodeValue.length);
+ else
+ domRange[start ? 'setStartAfter' : 'setEndAfter'](sibling);
+
+ return;
+ }
+
+ while (sibling) {
+ textNodeOffset += sibling.nodeValue.length;
+
+ // We are at or passed the position we where looking for
+ if (textNodeOffset >= offset) {
+ container = sibling;
+ textNodeOffset -= offset;
+ break;
+ }
+
+ sibling = sibling.previousSibling;
+ }
+ }
+
+ domRange[start ? 'setStart' : 'setEnd'](container, textNodeOffset);
+ };
+
+ try {
+ // Find start point
+ findEndPoint(true);
+
+ // Find end point if needed
+ if (!collapsed)
+ findEndPoint();
+ } catch (ex) {
+ // IE has a nasty bug where text nodes might throw "invalid argument" when you
+ // access the nodeValue or other properties of text nodes. This seems to happend when
+ // text nodes are split into two nodes by a delete/backspace call. So lets detect it and try to fix it.
+ if (ex.number == -2147024809) {
+ // Get the current selection
+ bookmark = self.getBookmark(2);
+
+ // Get start element
+ tmpRange = ieRange.duplicate();
+ tmpRange.collapse(true);
+ element = tmpRange.parentElement();
+
+ // Get end element
+ if (!collapsed) {
+ tmpRange = ieRange.duplicate();
+ tmpRange.collapse(false);
+ element2 = tmpRange.parentElement();
+ element2.innerHTML = element2.innerHTML;
+ }
+
+ // Remove the broken elements
+ element.innerHTML = element.innerHTML;
+
+ // Restore the selection
+ self.moveToBookmark(bookmark);
+
+ // Since the range has moved we need to re-get it
+ ieRange = selection.getRng();
+
+ // Find start point
+ findEndPoint(true);
+
+ // Find end point if needed
+ if (!collapsed)
+ findEndPoint();
+ } else
+ throw ex; // Throw other errors
+ }
+
+ return domRange;
+ };
+
+ this.getBookmark = function(type) {
+ var rng = selection.getRng(), start, end, bookmark = {};
+
+ function getIndexes(node) {
+ var parent, root, children, i, indexes = [];
+
+ parent = node.parentNode;
+ root = dom.getRoot().parentNode;
+
+ while (parent != root && parent.nodeType !== 9) {
+ children = parent.children;
+
+ i = children.length;
+ while (i--) {
+ if (node === children[i]) {
+ indexes.push(i);
+ break;
+ }
+ }
+
+ node = parent;
+ parent = parent.parentNode;
+ }
+
+ return indexes;
+ };
+
+ function getBookmarkEndPoint(start) {
+ var position;
+
+ position = getPosition(rng, start);
+ if (position) {
+ return {
+ position : position.position,
+ offset : position.offset,
+ indexes : getIndexes(position.node),
+ inside : position.inside
+ };
+ }
+ };
+
+ // Non ubstructive bookmark
+ if (type === 2) {
+ // Handle text selection
+ if (!rng.item) {
+ bookmark.start = getBookmarkEndPoint(true);
+
+ if (!selection.isCollapsed())
+ bookmark.end = getBookmarkEndPoint();
+ } else
+ bookmark.start = {ctrl : true, indexes : getIndexes(rng.item(0))};
+ }
+
+ return bookmark;
+ };
+
+ this.moveToBookmark = function(bookmark) {
+ var rng, body = dom.doc.body;
+
+ function resolveIndexes(indexes) {
+ var node, i, idx, children;
+
+ node = dom.getRoot();
+ for (i = indexes.length - 1; i >= 0; i--) {
+ children = node.children;
+ idx = indexes[i];
+
+ if (idx <= children.length - 1) {
+ node = children[idx];
+ }
+ }
+
+ return node;
+ };
+
+ function setBookmarkEndPoint(start) {
+ var endPoint = bookmark[start ? 'start' : 'end'], moveLeft, moveRng, undef;
+
+ if (endPoint) {
+ moveLeft = endPoint.position > 0;
+
+ moveRng = body.createTextRange();
+ moveRng.moveToElementText(resolveIndexes(endPoint.indexes));
+
+ offset = endPoint.offset;
+ if (offset !== undef) {
+ moveRng.collapse(endPoint.inside || moveLeft);
+ moveRng.moveStart('character', moveLeft ? -offset : offset);
+ } else
+ moveRng.collapse(start);
+
+ rng.setEndPoint(start ? 'StartToStart' : 'EndToStart', moveRng);
+
+ if (start)
+ rng.collapse(true);
+ }
+ };
+
+ if (bookmark.start) {
+ if (bookmark.start.ctrl) {
+ rng = body.createControlRange();
+ rng.addElement(resolveIndexes(bookmark.start.indexes));
+ rng.select();
+ } else {
+ rng = body.createTextRange();
+ setBookmarkEndPoint(true);
+ setBookmarkEndPoint();
+ rng.select();
+ }
+ }
+ };
+
+ this.addRange = function(rng) {
+ var ieRng, ctrlRng, startContainer, startOffset, endContainer, endOffset, sibling,
+ doc = selection.dom.doc, body = doc.body, nativeRng, ctrlElm;
+
+ function setEndPoint(start) {
+ var container, offset, marker, tmpRng, nodes;
+
+ marker = dom.create('a');
+ container = start ? startContainer : endContainer;
+ offset = start ? startOffset : endOffset;
+ tmpRng = ieRng.duplicate();
+
+ if (container == doc || container == doc.documentElement) {
+ container = body;
+ offset = 0;
+ }
+
+ if (container.nodeType == 3) {
+ container.parentNode.insertBefore(marker, container);
+ tmpRng.moveToElementText(marker);
+ tmpRng.moveStart('character', offset);
+ dom.remove(marker);
+ ieRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', tmpRng);
+ } else {
+ nodes = container.childNodes;
+
+ if (nodes.length) {
+ if (offset >= nodes.length) {
+ dom.insertAfter(marker, nodes[nodes.length - 1]);
+ } else {
+ container.insertBefore(marker, nodes[offset]);
+ }
+
+ tmpRng.moveToElementText(marker);
+ } else if (container.canHaveHTML) {
+ // Empty node selection for example <div>|</div>
+ // Setting innerHTML with a span marker then remove that marker seems to keep empty block elements open
+ container.innerHTML = '<span>\uFEFF</span>';
+ marker = container.firstChild;
+ tmpRng.moveToElementText(marker);
+ tmpRng.collapse(FALSE); // Collapse false works better than true for some odd reason
+ }
+
+ ieRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', tmpRng);
+ dom.remove(marker);
+ }
+ }
+
+ // Setup some shorter versions
+ startContainer = rng.startContainer;
+ startOffset = rng.startOffset;
+ endContainer = rng.endContainer;
+ endOffset = rng.endOffset;
+ ieRng = body.createTextRange();
+
+ // If single element selection then try making a control selection out of it
+ if (startContainer == endContainer && startContainer.nodeType == 1) {
+ // Trick to place the caret inside an empty block element like <p></p>
+ if (startOffset == endOffset && !startContainer.hasChildNodes()) {
+ if (startContainer.canHaveHTML) {
+ // Check if previous sibling is an empty block if it is then we need to render it
+ // IE would otherwise move the caret into the sibling instead of the empty startContainer see: #5236
+ // Example this: <p></p><p>|</p> would become this: <p>|</p><p></p>
+ sibling = startContainer.previousSibling;
+ if (sibling && !sibling.hasChildNodes() && dom.isBlock(sibling)) {
+ sibling.innerHTML = '\uFEFF';
+ } else {
+ sibling = null;
+ }
+
+ startContainer.innerHTML = '<span>\uFEFF</span><span>\uFEFF</span>';
+ ieRng.moveToElementText(startContainer.lastChild);
+ ieRng.select();
+ dom.doc.selection.clear();
+ startContainer.innerHTML = '';
+
+ if (sibling) {
+ sibling.innerHTML = '';
+ }
+ return;
+ } else {
+ startOffset = dom.nodeIndex(startContainer);
+ startContainer = startContainer.parentNode;
+ }
+ }
+
+ if (startOffset == endOffset - 1) {
+ try {
+ ctrlElm = startContainer.childNodes[startOffset];
+ ctrlRng = body.createControlRange();
+ ctrlRng.addElement(ctrlElm);
+ ctrlRng.select();
+
+ // Check if the range produced is on the correct element and is a control range
+ // On IE 8 it will select the parent contentEditable container if you select an inner element see: #5398
+ nativeRng = selection.getRng();
+ if (nativeRng.item && ctrlElm === nativeRng.item(0)) {
+ return;
+ }
+ } catch (ex) {
+ // Ignore
+ }
+ }
+ }
+
+ // Set start/end point of selection
+ setEndPoint(true);
+ setEndPoint();
+
+ // Select the new range and scroll it into view
+ ieRng.select();
+ };
+
+ // Expose range method
+ this.getRangeAt = getRange;
+ };
+
+ // Expose the selection object
+ tinymce.dom.TridentSelection = Selection;
+})();
+
+
+/*
+ * Sizzle CSS Selector Engine
+ * Copyright, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ * More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+ expando = "sizcache",
+ done = 0,
+ toString = Object.prototype.toString,
+ hasDuplicate = false,
+ baseHasDuplicate = true,
+ rBackslash = /\\/g,
+ rReturn = /\r\n/g,
+ rNonWord = /\W/;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+// Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+ baseHasDuplicate = false;
+ return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+ results = results || [];
+ context = context || document;
+
+ var origContext = context;
+
+ if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+ return [];
+ }
+
+ if ( !selector || typeof selector !== "string" ) {
+ return results;
+ }
+
+ var m, set, checkSet, extra, ret, cur, pop, i,
+ prune = true,
+ contextXML = Sizzle.isXML( context ),
+ parts = [],
+ soFar = selector;
+
+ // Reset the position of the chunker regexp (start from head)
+ do {
+ chunker.exec( "" );
+ m = chunker.exec( soFar );
+
+ if ( m ) {
+ soFar = m[3];
+
+ parts.push( m[1] );
+
+ if ( m[2] ) {
+ extra = m[3];
+ break;
+ }
+ }
+ } while ( m );
+
+ if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+ if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+ set = posProcess( parts[0] + parts[1], context, seed );
+
+ } else {
+ set = Expr.relative[ parts[0] ] ?
+ [ context ] :
+ Sizzle( parts.shift(), context );
+
+ while ( parts.length ) {
+ selector = parts.shift();
+
+ if ( Expr.relative[ selector ] ) {
+ selector += parts.shift();
+ }
+
+ set = posProcess( selector, set, seed );
+ }
+ }
+
+ } else {
+ // Take a shortcut and set the context if the root selector is an ID
+ // (but not if it'll be faster if the inner selector is an ID)
+ if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+ Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+ ret = Sizzle.find( parts.shift(), context, contextXML );
+ context = ret.expr ?
+ Sizzle.filter( ret.expr, ret.set )[0] :
+ ret.set[0];
+ }
+
+ if ( context ) {
+ ret = seed ?
+ { expr: parts.pop(), set: makeArray(seed) } :
+ Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+ set = ret.expr ?
+ Sizzle.filter( ret.expr, ret.set ) :
+ ret.set;
+
+ if ( parts.length > 0 ) {
+ checkSet = makeArray( set );
+
+ } else {
+ prune = false;
+ }
+
+ while ( parts.length ) {
+ cur = parts.pop();
+ pop = cur;
+
+ if ( !Expr.relative[ cur ] ) {
+ cur = "";
+ } else {
+ pop = parts.pop();
+ }
+
+ if ( pop == null ) {
+ pop = context;
+ }
+
+ Expr.relative[ cur ]( checkSet, pop, contextXML );
+ }
+
+ } else {
+ checkSet = parts = [];
+ }
+ }
+
+ if ( !checkSet ) {
+ checkSet = set;
+ }
+
+ if ( !checkSet ) {
+ Sizzle.error( cur || selector );
+ }
+
+ if ( toString.call(checkSet) === "[object Array]" ) {
+ if ( !prune ) {
+ results.push.apply( results, checkSet );
+
+ } else if ( context && context.nodeType === 1 ) {
+ for ( i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+ results.push( set[i] );
+ }
+ }
+
+ } else {
+ for ( i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+ results.push( set[i] );
+ }
+ }
+ }
+
+ } else {
+ makeArray( checkSet, results );
+ }
+
+ if ( extra ) {
+ Sizzle( extra, origContext, results, seed );
+ Sizzle.uniqueSort( results );
+ }
+
+ return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+ if ( sortOrder ) {
+ hasDuplicate = baseHasDuplicate;
+ results.sort( sortOrder );
+
+ if ( hasDuplicate ) {
+ for ( var i = 1; i < results.length; i++ ) {
+ if ( results[i] === results[ i - 1 ] ) {
+ results.splice( i--, 1 );
+ }
+ }
+ }
+ }
+
+ return results;
+};
+
+Sizzle.matches = function( expr, set ) {
+ return Sizzle( expr, null, null, set );
+};
+
+Sizzle.matchesSelector = function( node, expr ) {
+ return Sizzle( expr, null, null, [node] ).length > 0;
+};
+
+Sizzle.find = function( expr, context, isXML ) {
+ var set, i, len, match, type, left;
+
+ if ( !expr ) {
+ return [];
+ }
+
+ for ( i = 0, len = Expr.order.length; i < len; i++ ) {
+ type = Expr.order[i];
+
+ if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+ left = match[1];
+ match.splice( 1, 1 );
+
+ if ( left.substr( left.length - 1 ) !== "\\" ) {
+ match[1] = (match[1] || "").replace( rBackslash, "" );
+ set = Expr.find[ type ]( match, context, isXML );
+
+ if ( set != null ) {
+ expr = expr.replace( Expr.match[ type ], "" );
+ break;
+ }
+ }
+ }
+ }
+
+ if ( !set ) {
+ set = typeof context.getElementsByTagName !== "undefined" ?
+ context.getElementsByTagName( "*" ) :
+ [];
+ }
+
+ return { set: set, expr: expr };
+};
+
+Sizzle.filter = function( expr, set, inplace, not ) {
+ var match, anyFound,
+ type, found, item, filter, left,
+ i, pass,
+ old = expr,
+ result = [],
+ curLoop = set,
+ isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+ while ( expr && set.length ) {
+ for ( type in Expr.filter ) {
+ if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+ filter = Expr.filter[ type ];
+ left = match[1];
+
+ anyFound = false;
+
+ match.splice(1,1);
+
+ if ( left.substr( left.length - 1 ) === "\\" ) {
+ continue;
+ }
+
+ if ( curLoop === result ) {
+ result = [];
+ }
+
+ if ( Expr.preFilter[ type ] ) {
+ match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+ if ( !match ) {
+ anyFound = found = true;
+
+ } else if ( match === true ) {
+ continue;
+ }
+ }
+
+ if ( match ) {
+ for ( i = 0; (item = curLoop[i]) != null; i++ ) {
+ if ( item ) {
+ found = filter( item, match, i, curLoop );
+ pass = not ^ found;
+
+ if ( inplace && found != null ) {
+ if ( pass ) {
+ anyFound = true;
+
+ } else {
+ curLoop[i] = false;
+ }
+
+ } else if ( pass ) {
+ result.push( item );
+ anyFound = true;
+ }
+ }
+ }
+ }
+
+ if ( found !== undefined ) {
+ if ( !inplace ) {
+ curLoop = result;
+ }
+
+ expr = expr.replace( Expr.match[ type ], "" );
+
+ if ( !anyFound ) {
+ return [];
+ }
+
+ break;
+ }
+ }
+ }
+
+ // Improper expression
+ if ( expr === old ) {
+ if ( anyFound == null ) {
+ Sizzle.error( expr );
+
+ } else {
+ break;
+ }
+ }
+
+ old = expr;
+ }
+
+ return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+ throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+var getText = Sizzle.getText = function( elem ) {
+ var i, node,
+ nodeType = elem.nodeType,
+ ret = "";
+
+ if ( nodeType ) {
+ if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
+ // Use textContent || innerText for elements
+ if ( typeof elem.textContent === 'string' ) {
+ return elem.textContent;
+ } else if ( typeof elem.innerText === 'string' ) {
+ // Replace IE's carriage returns
+ return elem.innerText.replace( rReturn, '' );
+ } else {
+ // Traverse it's children
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
+ ret += getText( elem );
+ }
+ }
+ } else if ( nodeType === 3 || nodeType === 4 ) {
+ return elem.nodeValue;
+ }
+ } else {
+
+ // If no nodeType, this is expected to be an array
+ for ( i = 0; (node = elem[i]); i++ ) {
+ // Do not traverse comment nodes
+ if ( node.nodeType !== 8 ) {
+ ret += getText( node );
+ }
+ }
+ }
+ return ret;
+};
+
+var Expr = Sizzle.selectors = {
+ order: [ "ID", "NAME", "TAG" ],
+
+ match: {
+ ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+ CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+ NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+ ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+ TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+ CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+ POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+ PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+ },
+
+ leftMatch: {},
+
+ attrMap: {
+ "class": "className",
+ "for": "htmlFor"
+ },
+
+ attrHandle: {
+ href: function( elem ) {
+ return elem.getAttribute( "href" );
+ },
+ type: function( elem ) {
+ return elem.getAttribute( "type" );
+ }
+ },
+
+ relative: {
+ "+": function(checkSet, part){
+ var isPartStr = typeof part === "string",
+ isTag = isPartStr && !rNonWord.test( part ),
+ isPartStrNotTag = isPartStr && !isTag;
+
+ if ( isTag ) {
+ part = part.toLowerCase();
+ }
+
+ for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+ if ( (elem = checkSet[i]) ) {
+ while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+ checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+ elem || false :
+ elem === part;
+ }
+ }
+
+ if ( isPartStrNotTag ) {
+ Sizzle.filter( part, checkSet, true );
+ }
+ },
+
+ ">": function( checkSet, part ) {
+ var elem,
+ isPartStr = typeof part === "string",
+ i = 0,
+ l = checkSet.length;
+
+ if ( isPartStr && !rNonWord.test( part ) ) {
+ part = part.toLowerCase();
+
+ for ( ; i < l; i++ ) {
+ elem = checkSet[i];
+
+ if ( elem ) {
+ var parent = elem.parentNode;
+ checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+ }
+ }
+
+ } else {
+ for ( ; i < l; i++ ) {
+ elem = checkSet[i];
+
+ if ( elem ) {
+ checkSet[i] = isPartStr ?
+ elem.parentNode :
+ elem.parentNode === part;
+ }
+ }
+
+ if ( isPartStr ) {
+ Sizzle.filter( part, checkSet, true );
+ }
+ }
+ },
+
+ "": function(checkSet, part, isXML){
+ var nodeCheck,
+ doneName = done++,
+ checkFn = dirCheck;
+
+ if ( typeof part === "string" && !rNonWord.test( part ) ) {
+ part = part.toLowerCase();
+ nodeCheck = part;
+ checkFn = dirNodeCheck;
+ }
+
+ checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+ },
+
+ "~": function( checkSet, part, isXML ) {
+ var nodeCheck,
+ doneName = done++,
+ checkFn = dirCheck;
+
+ if ( typeof part === "string" && !rNonWord.test( part ) ) {
+ part = part.toLowerCase();
+ nodeCheck = part;
+ checkFn = dirNodeCheck;
+ }
+
+ checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
+ }
+ },
+
+ find: {
+ ID: function( match, context, isXML ) {
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ return m && m.parentNode ? [m] : [];
+ }
+ },
+
+ NAME: function( match, context ) {
+ if ( typeof context.getElementsByName !== "undefined" ) {
+ var ret = [],
+ results = context.getElementsByName( match[1] );
+
+ for ( var i = 0, l = results.length; i < l; i++ ) {
+ if ( results[i].getAttribute("name") === match[1] ) {
+ ret.push( results[i] );
+ }
+ }
+
+ return ret.length === 0 ? null : ret;
+ }
+ },
+
+ TAG: function( match, context ) {
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
+ return context.getElementsByTagName( match[1] );
+ }
+ }
+ },
+ preFilter: {
+ CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+ match = " " + match[1].replace( rBackslash, "" ) + " ";
+
+ if ( isXML ) {
+ return match;
+ }
+
+ for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+ if ( elem ) {
+ if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+ if ( !inplace ) {
+ result.push( elem );
+ }
+
+ } else if ( inplace ) {
+ curLoop[i] = false;
+ }
+ }
+ }
+
+ return false;
+ },
+
+ ID: function( match ) {
+ return match[1].replace( rBackslash, "" );
+ },
+
+ TAG: function( match, curLoop ) {
+ return match[1].replace( rBackslash, "" ).toLowerCase();
+ },
+
+ CHILD: function( match ) {
+ if ( match[1] === "nth" ) {
+ if ( !match[2] ) {
+ Sizzle.error( match[0] );
+ }
+
+ match[2] = match[2].replace(/^\+|\s*/g, '');
+
+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+ var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+ match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+ !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+ // calculate the numbers (first)n+(last) including if they are negative
+ match[2] = (test[1] + (test[2] || 1)) - 0;
+ match[3] = test[3] - 0;
+ }
+ else if ( match[2] ) {
+ Sizzle.error( match[0] );
+ }
+
+ // TODO: Move to normal caching system
+ match[0] = done++;
+
+ return match;
+ },
+
+ ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+ var name = match[1] = match[1].replace( rBackslash, "" );
+
+ if ( !isXML && Expr.attrMap[name] ) {
+ match[1] = Expr.attrMap[name];
+ }
+
+ // Handle if an un-quoted value was used
+ match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
+
+ if ( match[2] === "~=" ) {
+ match[4] = " " + match[4] + " ";
+ }
+
+ return match;
+ },
+
+ PSEUDO: function( match, curLoop, inplace, result, not ) {
+ if ( match[1] === "not" ) {
+ // If we're dealing with a complex expression, or a simple one
+ if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+ match[3] = Sizzle(match[3], null, null, curLoop);
+
+ } else {
+ var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+
+ if ( !inplace ) {
+ result.push.apply( result, ret );
+ }
+
+ return false;
+ }
+
+ } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+ return true;
+ }
+
+ return match;
+ },
+
+ POS: function( match ) {
+ match.unshift( true );
+
+ return match;
+ }
+ },
+
+ filters: {
+ enabled: function( elem ) {
+ return elem.disabled === false && elem.type !== "hidden";
+ },
+
+ disabled: function( elem ) {
+ return elem.disabled === true;
+ },
+
+ checked: function( elem ) {
+ return elem.checked === true;
+ },
+
+ selected: function( elem ) {
+ // Accessing this property makes selected-by-default
+ // options in Safari work properly
+ if ( elem.parentNode ) {
+ elem.parentNode.selectedIndex;
+ }
+
+ return elem.selected === true;
+ },
+
+ parent: function( elem ) {
+ return !!elem.firstChild;
+ },
+
+ empty: function( elem ) {
+ return !elem.firstChild;
+ },
+
+ has: function( elem, i, match ) {
+ return !!Sizzle( match[3], elem ).length;
+ },
+
+ header: function( elem ) {
+ return (/h\d/i).test( elem.nodeName );
+ },
+
+ text: function( elem ) {
+ var attr = elem.getAttribute( "type" ), type = elem.type;
+ // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
+ // use getAttribute instead to test this case
+ return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
+ },
+
+ radio: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
+ },
+
+ checkbox: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
+ },
+
+ file: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
+ },
+
+ password: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
+ },
+
+ submit: function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return (name === "input" || name === "button") && "submit" === elem.type;
+ },
+
+ image: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
+ },
+
+ reset: function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return (name === "input" || name === "button") && "reset" === elem.type;
+ },
+
+ button: function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return name === "input" && "button" === elem.type || name === "button";
+ },
+
+ input: function( elem ) {
+ return (/input|select|textarea|button/i).test( elem.nodeName );
+ },
+
+ focus: function( elem ) {
+ return elem === elem.ownerDocument.activeElement;
+ }
+ },
+ setFilters: {
+ first: function( elem, i ) {
+ return i === 0;
+ },
+
+ last: function( elem, i, match, array ) {
+ return i === array.length - 1;
+ },
+
+ even: function( elem, i ) {
+ return i % 2 === 0;
+ },
+
+ odd: function( elem, i ) {
+ return i % 2 === 1;
+ },
+
+ lt: function( elem, i, match ) {
+ return i < match[3] - 0;
+ },
+
+ gt: function( elem, i, match ) {
+ return i > match[3] - 0;
+ },
+
+ nth: function( elem, i, match ) {
+ return match[3] - 0 === i;
+ },
+
+ eq: function( elem, i, match ) {
+ return match[3] - 0 === i;
+ }
+ },
+ filter: {
+ PSEUDO: function( elem, match, i, array ) {
+ var name = match[1],
+ filter = Expr.filters[ name ];
+
+ if ( filter ) {
+ return filter( elem, i, match, array );
+
+ } else if ( name === "contains" ) {
+ return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
+
+ } else if ( name === "not" ) {
+ var not = match[3];
+
+ for ( var j = 0, l = not.length; j < l; j++ ) {
+ if ( not[j] === elem ) {
+ return false;
+ }
+ }
+
+ return true;
+
+ } else {
+ Sizzle.error( name );
+ }
+ },
+
+ CHILD: function( elem, match ) {
+ var first, last,
+ doneName, parent, cache,
+ count, diff,
+ type = match[1],
+ node = elem;
+
+ switch ( type ) {
+ case "only":
+ case "first":
+ while ( (node = node.previousSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
+
+ if ( type === "first" ) {
+ return true;
+ }
+
+ node = elem;
+
+ /* falls through */
+ case "last":
+ while ( (node = node.nextSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
+
+ return true;
+
+ case "nth":
+ first = match[2];
+ last = match[3];
+
+ if ( first === 1 && last === 0 ) {
+ return true;
+ }
+
+ doneName = match[0];
+ parent = elem.parentNode;
+
+ if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
+ count = 0;
+
+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
+ if ( node.nodeType === 1 ) {
+ node.nodeIndex = ++count;
+ }
+ }
+
+ parent[ expando ] = doneName;
+ }
+
+ diff = elem.nodeIndex - last;
+
+ if ( first === 0 ) {
+ return diff === 0;
+
+ } else {
+ return ( diff % first === 0 && diff / first >= 0 );
+ }
+ }
+ },
+
+ ID: function( elem, match ) {
+ return elem.nodeType === 1 && elem.getAttribute("id") === match;
+ },
+
+ TAG: function( elem, match ) {
+ return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
+ },
+
+ CLASS: function( elem, match ) {
+ return (" " + (elem.className || elem.getAttribute("class")) + " ")
+ .indexOf( match ) > -1;
+ },
+
+ ATTR: function( elem, match ) {
+ var name = match[1],
+ result = Sizzle.attr ?
+ Sizzle.attr( elem, name ) :
+ Expr.attrHandle[ name ] ?
+ Expr.attrHandle[ name ]( elem ) :
+ elem[ name ] != null ?
+ elem[ name ] :
+ elem.getAttribute( name ),
+ value = result + "",
+ type = match[2],
+ check = match[4];
+
+ return result == null ?
+ type === "!=" :
+ !type && Sizzle.attr ?
+ result != null :
+ type === "=" ?
+ value === check :
+ type === "*=" ?
+ value.indexOf(check) >= 0 :
+ type === "~=" ?
+ (" " + value + " ").indexOf(check) >= 0 :
+ !check ?
+ value && result !== false :
+ type === "!=" ?
+ value !== check :
+ type === "^=" ?
+ value.indexOf(check) === 0 :
+ type === "$=" ?
+ value.substr(value.length - check.length) === check :
+ type === "|=" ?
+ value === check || value.substr(0, check.length + 1) === check + "-" :
+ false;
+ },
+
+ POS: function( elem, match, i, array ) {
+ var name = match[2],
+ filter = Expr.setFilters[ name ];
+
+ if ( filter ) {
+ return filter( elem, i, match, array );
+ }
+ }
+ }
+};
+
+var origPOS = Expr.match.POS,
+ fescape = function(all, num){
+ return "\\" + (num - 0 + 1);
+ };
+
+for ( var type in Expr.match ) {
+ Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+ Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+// Expose origPOS
+// "global" as in regardless of relation to brackets/parens
+Expr.match.globalPOS = origPOS;
+
+var makeArray = function( array, results ) {
+ array = Array.prototype.slice.call( array, 0 );
+
+ if ( results ) {
+ results.push.apply( results, array );
+ return results;
+ }
+
+ return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+ Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch( e ) {
+ makeArray = function( array, results ) {
+ var i = 0,
+ ret = results || [];
+
+ if ( toString.call(array) === "[object Array]" ) {
+ Array.prototype.push.apply( ret, array );
+
+ } else {
+ if ( typeof array.length === "number" ) {
+ for ( var l = array.length; i < l; i++ ) {
+ ret.push( array[i] );
+ }
+
+ } else {
+ for ( ; array[i]; i++ ) {
+ ret.push( array[i] );
+ }
+ }
+ }
+
+ return ret;
+ };
+}
+
+var sortOrder, siblingCheck;
+
+if ( document.documentElement.compareDocumentPosition ) {
+ sortOrder = function( a, b ) {
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+ }
+
+ if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+ return a.compareDocumentPosition ? -1 : 1;
+ }
+
+ return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+ };
+
+} else {
+ sortOrder = function( a, b ) {
+ // The nodes are identical, we can exit early
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+
+ // Fallback to using sourceIndex (in IE) if it's available on both nodes
+ } else if ( a.sourceIndex && b.sourceIndex ) {
+ return a.sourceIndex - b.sourceIndex;
+ }
+
+ var al, bl,
+ ap = [],
+ bp = [],
+ aup = a.parentNode,
+ bup = b.parentNode,
+ cur = aup;
+
+ // If the nodes are siblings (or identical) we can do a quick check
+ if ( aup === bup ) {
+ return siblingCheck( a, b );
+
+ // If no parents were found then the nodes are disconnected
+ } else if ( !aup ) {
+ return -1;
+
+ } else if ( !bup ) {
+ return 1;
+ }
+
+ // Otherwise they're somewhere else in the tree so we need
+ // to build up a full list of the parentNodes for comparison
+ while ( cur ) {
+ ap.unshift( cur );
+ cur = cur.parentNode;
+ }
+
+ cur = bup;
+
+ while ( cur ) {
+ bp.unshift( cur );
+ cur = cur.parentNode;
+ }
+
+ al = ap.length;
+ bl = bp.length;
+
+ // Start walking down the tree looking for a discrepancy
+ for ( var i = 0; i < al && i < bl; i++ ) {
+ if ( ap[i] !== bp[i] ) {
+ return siblingCheck( ap[i], bp[i] );
+ }
+ }
+
+ // We ended someplace up the tree so do a sibling check
+ return i === al ?
+ siblingCheck( a, bp[i], -1 ) :
+ siblingCheck( ap[i], b, 1 );
+ };
+
+ siblingCheck = function( a, b, ret ) {
+ if ( a === b ) {
+ return ret;
+ }
+
+ var cur = a.nextSibling;
+
+ while ( cur ) {
+ if ( cur === b ) {
+ return -1;
+ }
+
+ cur = cur.nextSibling;
+ }
+
+ return 1;
+ };
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+ // We're going to inject a fake input element with a specified name
+ var form = document.createElement("div"),
+ id = "script" + (new Date()).getTime(),
+ root = document.documentElement;
+
+ form.innerHTML = "<a name='" + id + "'/>";
+
+ // Inject it into the root element, check its status, and remove it quickly
+ root.insertBefore( form, root.firstChild );
+
+ // The workaround has to do additional checks after a getElementById
+ // Which slows things down for other browsers (hence the branching)
+ if ( document.getElementById( id ) ) {
+ Expr.find.ID = function( match, context, isXML ) {
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+
+ return m ?
+ m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+ [m] :
+ undefined :
+ [];
+ }
+ };
+
+ Expr.filter.ID = function( elem, match ) {
+ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+
+ return elem.nodeType === 1 && node && node.nodeValue === match;
+ };
+ }
+
+ root.removeChild( form );
+
+ // release memory in IE
+ root = form = null;
+})();
+
+(function(){
+ // Check to see if the browser returns only elements
+ // when doing getElementsByTagName("*")
+
+ // Create a fake element
+ var div = document.createElement("div");
+ div.appendChild( document.createComment("") );
+
+ // Make sure no comments are found
+ if ( div.getElementsByTagName("*").length > 0 ) {
+ Expr.find.TAG = function( match, context ) {
+ var results = context.getElementsByTagName( match[1] );
+
+ // Filter out possible comments
+ if ( match[1] === "*" ) {
+ var tmp = [];
+
+ for ( var i = 0; results[i]; i++ ) {
+ if ( results[i].nodeType === 1 ) {
+ tmp.push( results[i] );
+ }
+ }
+
+ results = tmp;
+ }
+
+ return results;
+ };
+ }
+
+ // Check to see if an attribute returns normalized href attributes
+ div.innerHTML = "<a href='#'></a>";
+
+ if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+ div.firstChild.getAttribute("href") !== "#" ) {
+
+ Expr.attrHandle.href = function( elem ) {
+ return elem.getAttribute( "href", 2 );
+ };
+ }
+
+ // release memory in IE
+ div = null;
+})();
+
+if ( document.querySelectorAll ) {
+ (function(){
+ var oldSizzle = Sizzle,
+ div = document.createElement("div"),
+ id = "__sizzle__";
+
+ div.innerHTML = "<p class='TEST'></p>";
+
+ // Safari can't handle uppercase or unicode characters when
+ // in quirks mode.
+ if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+ return;
+ }
+
+ Sizzle = function( query, context, extra, seed ) {
+ context = context || document;
+
+ // Only use querySelectorAll on non-XML documents
+ // (ID selectors don't work in non-HTML documents)
+ if ( !seed && !Sizzle.isXML(context) ) {
+ // See if we find a selector to speed up
+ var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+
+ if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+ // Speed-up: Sizzle("TAG")
+ if ( match[1] ) {
+ return makeArray( context.getElementsByTagName( query ), extra );
+
+ // Speed-up: Sizzle(".CLASS")
+ } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+ return makeArray( context.getElementsByClassName( match[2] ), extra );
+ }
+ }
+
+ if ( context.nodeType === 9 ) {
+ // Speed-up: Sizzle("body")
+ // The body element only exists once, optimize finding it
+ if ( query === "body" && context.body ) {
+ return makeArray( [ context.body ], extra );
+
+ // Speed-up: Sizzle("#ID")
+ } else if ( match && match[3] ) {
+ var elem = context.getElementById( match[3] );
+
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ if ( elem && elem.parentNode ) {
+ // Handle the case where IE and Opera return items
+ // by name instead of ID
+ if ( elem.id === match[3] ) {
+ return makeArray( [ elem ], extra );
+ }
+
+ } else {
+ return makeArray( [], extra );
+ }
+ }
+
+ try {
+ return makeArray( context.querySelectorAll(query), extra );
+ } catch(qsaError) {}
+
+ // qSA works strangely on Element-rooted queries
+ // We can work around this by specifying an extra ID on the root
+ // and working up from there (Thanks to Andrew Dupont for the technique)
+ // IE 8 doesn't work on object elements
+ } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+ var oldContext = context,
+ old = context.getAttribute( "id" ),
+ nid = old || id,
+ hasParent = context.parentNode,
+ relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+ if ( !old ) {
+ context.setAttribute( "id", nid );
+ } else {
+ nid = nid.replace( /'/g, "\\$&" );
+ }
+ if ( relativeHierarchySelector && hasParent ) {
+ context = context.parentNode;
+ }
+
+ try {
+ if ( !relativeHierarchySelector || hasParent ) {
+ return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+ }
+
+ } catch(pseudoError) {
+ } finally {
+ if ( !old ) {
+ oldContext.removeAttribute( "id" );
+ }
+ }
+ }
+ }
+
+ return oldSizzle(query, context, extra, seed);
+ };
+
+ for ( var prop in oldSizzle ) {
+ Sizzle[ prop ] = oldSizzle[ prop ];
+ }
+
+ // release memory in IE
+ div = null;
+ })();
+}
+
+(function(){
+ var html = document.documentElement,
+ matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
+
+ if ( matches ) {
+ // Check to see if it's possible to do matchesSelector
+ // on a disconnected node (IE 9 fails this)
+ var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
+ pseudoWorks = false;
+
+ try {
+ // This should fail with an exception
+ // Gecko does not error, returns false instead
+ matches.call( document.documentElement, "[test!='']:sizzle" );
+
+ } catch( pseudoError ) {
+ pseudoWorks = true;
+ }
+
+ Sizzle.matchesSelector = function( node, expr ) {
+ // Make sure that attribute selectors are quoted
+ expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
+
+ if ( !Sizzle.isXML( node ) ) {
+ try {
+ if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+ var ret = matches.call( node, expr );
+
+ // IE 9's matchesSelector returns false on disconnected nodes
+ if ( ret || !disconnectedMatch ||
+ // As well, disconnected nodes are said to be in a document
+ // fragment in IE 9, so check for that
+ node.document && node.document.nodeType !== 11 ) {
+ return ret;
+ }
+ }
+ } catch(e) {}
+ }
+
+ return Sizzle(expr, null, null, [node]).length > 0;
+ };
+ }
+})();
+
+(function(){
+ var div = document.createElement("div");
+
+ div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+ // Opera can't find a second classname (in 9.6)
+ // Also, make sure that getElementsByClassName actually exists
+ if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+ return;
+ }
+
+ // Safari caches class attributes, doesn't catch changes (in 3.2)
+ div.lastChild.className = "e";
+
+ if ( div.getElementsByClassName("e").length === 1 ) {
+ return;
+ }
+
+ Expr.order.splice(1, 0, "CLASS");
+ Expr.find.CLASS = function( match, context, isXML ) {
+ if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+ return context.getElementsByClassName(match[1]);
+ }
+ };
+
+ // release memory in IE
+ div = null;
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+
+ if ( elem ) {
+ var match = false;
+
+ elem = elem[dir];
+
+ while ( elem ) {
+ if ( elem[ expando ] === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
+
+ if ( elem.nodeType === 1 && !isXML ){
+ elem[ expando ] = doneName;
+ elem.sizset = i;
+ }
+
+ if ( elem.nodeName.toLowerCase() === cur ) {
+ match = elem;
+ break;
+ }
+
+ elem = elem[dir];
+ }
+
+ checkSet[i] = match;
+ }
+ }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+
+ if ( elem ) {
+ var match = false;
+
+ elem = elem[dir];
+
+ while ( elem ) {
+ if ( elem[ expando ] === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
+
+ if ( elem.nodeType === 1 ) {
+ if ( !isXML ) {
+ elem[ expando ] = doneName;
+ elem.sizset = i;
+ }
+
+ if ( typeof cur !== "string" ) {
+ if ( elem === cur ) {
+ match = true;
+ break;
+ }
+
+ } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+ match = elem;
+ break;
+ }
+ }
+
+ elem = elem[dir];
+ }
+
+ checkSet[i] = match;
+ }
+ }
+}
+
+if ( document.documentElement.contains ) {
+ Sizzle.contains = function( a, b ) {
+ return a !== b && (a.contains ? a.contains(b) : true);
+ };
+
+} else if ( document.documentElement.compareDocumentPosition ) {
+ Sizzle.contains = function( a, b ) {
+ return !!(a.compareDocumentPosition(b) & 16);
+ };
+
+} else {
+ Sizzle.contains = function() {
+ return false;
+ };
+}
+
+Sizzle.isXML = function( elem ) {
+ // documentElement is verified for cases where it doesn't yet exist
+ // (such as loading iframes in IE - #4833)
+ var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function( selector, context, seed ) {
+ var match,
+ tmpSet = [],
+ later = "",
+ root = context.nodeType ? [context] : context;
+
+ // Position selectors must be done after the filter
+ // And so must :not(positional) so we move all PSEUDOs to the end
+ while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+ later += match[0];
+ selector = selector.replace( Expr.match.PSEUDO, "" );
+ }
+
+ selector = Expr.relative[selector] ? selector + "*" : selector;
+
+ for ( var i = 0, l = root.length; i < l; i++ ) {
+ Sizzle( selector, root[i], tmpSet, seed );
+ }
+
+ return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+
+window.tinymce.dom.Sizzle = Sizzle;
+
+})();
+
+
+(function(tinymce) {
+ tinymce.dom.Element = function(id, settings) {
+ var t = this, dom, el;
+
+ t.settings = settings = settings || {};
+ t.id = id;
+ t.dom = dom = settings.dom || tinymce.DOM;
+
+ // Only IE leaks DOM references, this is a lot faster
+ if (!tinymce.isIE)
+ el = dom.get(t.id);
+
+ tinymce.each(
+ ('getPos,getRect,getParent,add,setStyle,getStyle,setStyles,' +
+ 'setAttrib,setAttribs,getAttrib,addClass,removeClass,' +
+ 'hasClass,getOuterHTML,setOuterHTML,remove,show,hide,' +
+ 'isHidden,setHTML,get').split(/,/), function(k) {
+ t[k] = function() {
+ var a = [id], i;
+
+ for (i = 0; i < arguments.length; i++)
+ a.push(arguments[i]);
+
+ a = dom[k].apply(dom, a);
+ t.update(k);
+
+ return a;
+ };
+ }
+ );
+
+ tinymce.extend(t, {
+ on : function(n, f, s) {
+ return tinymce.dom.Event.add(t.id, n, f, s);
+ },
+
+ getXY : function() {
+ return {
+ x : parseInt(t.getStyle('left')),
+ y : parseInt(t.getStyle('top'))
+ };
+ },
+
+ getSize : function() {
+ var n = dom.get(t.id);
+
+ return {
+ w : parseInt(t.getStyle('width') || n.clientWidth),
+ h : parseInt(t.getStyle('height') || n.clientHeight)
+ };
+ },
+
+ moveTo : function(x, y) {
+ t.setStyles({left : x, top : y});
+ },
+
+ moveBy : function(x, y) {
+ var p = t.getXY();
+
+ t.moveTo(p.x + x, p.y + y);
+ },
+
+ resizeTo : function(w, h) {
+ t.setStyles({width : w, height : h});
+ },
+
+ resizeBy : function(w, h) {
+ var s = t.getSize();
+
+ t.resizeTo(s.w + w, s.h + h);
+ },
+
+ update : function(k) {
+ var b;
+
+ if (tinymce.isIE6 && settings.blocker) {
+ k = k || '';
+
+ // Ignore getters
+ if (k.indexOf('get') === 0 || k.indexOf('has') === 0 || k.indexOf('is') === 0)
+ return;
+
+ // Remove blocker on remove
+ if (k == 'remove') {
+ dom.remove(t.blocker);
+ return;
+ }
+
+ if (!t.blocker) {
+ t.blocker = dom.uniqueId();
+ b = dom.add(settings.container || dom.getRoot(), 'iframe', {id : t.blocker, style : 'position:absolute;', frameBorder : 0, src : 'javascript:""'});
+ dom.setStyle(b, 'opacity', 0);
+ } else
+ b = dom.get(t.blocker);
+
+ dom.setStyles(b, {
+ left : t.getStyle('left', 1),
+ top : t.getStyle('top', 1),
+ width : t.getStyle('width', 1),
+ height : t.getStyle('height', 1),
+ display : t.getStyle('display', 1),
+ zIndex : parseInt(t.getStyle('zIndex', 1) || 0) - 1
+ });
+ }
+ }
+ });
+ };
+})(tinymce);
+
+(function(tinymce) {
+ function trimNl(s) {
+ return s.replace(/[\n\r]+/g, '');
+ };
+
+ // Shorten names
+ var is = tinymce.is, isIE = tinymce.isIE, each = tinymce.each, TreeWalker = tinymce.dom.TreeWalker;
+
+ tinymce.create('tinymce.dom.Selection', {
+ Selection : function(dom, win, serializer, editor) {
+ var t = this;
+
+ t.dom = dom;
+ t.win = win;
+ t.serializer = serializer;
+ t.editor = editor;
+
+ // Add events
+ each([
+ 'onBeforeSetContent',
+
+ 'onBeforeGetContent',
+
+ 'onSetContent',
+
+ 'onGetContent'
+ ], function(e) {
+ t[e] = new tinymce.util.Dispatcher(t);
+ });
+
+ // No W3C Range support
+ if (!t.win.getSelection)
+ t.tridentSel = new tinymce.dom.TridentSelection(t);
+
+ if (tinymce.isIE && dom.boxModel)
+ this._fixIESelection();
+
+ // Prevent leaks
+ tinymce.addUnload(t.destroy, t);
+ },
+
+ setCursorLocation: function(node, offset) {
+ var t = this; var r = t.dom.createRng();
+ r.setStart(node, offset);
+ r.setEnd(node, offset);
+ t.setRng(r);
+ t.collapse(false);
+ },
+ getContent : function(s) {
+ var t = this, r = t.getRng(), e = t.dom.create("body"), se = t.getSel(), wb, wa, n;
+
+ s = s || {};
+ wb = wa = '';
+ s.get = true;
+ s.format = s.format || 'html';
+ s.forced_root_block = '';
+ t.onBeforeGetContent.dispatch(t, s);
+
+ if (s.format == 'text')
+ return t.isCollapsed() ? '' : (r.text || (se.toString ? se.toString() : ''));
+
+ if (r.cloneContents) {
+ n = r.cloneContents();
+
+ if (n)
+ e.appendChild(n);
+ } else if (is(r.item) || is(r.htmlText)) {
+ // IE will produce invalid markup if elements are present that
+ // it doesn't understand like custom elements or HTML5 elements.
+ // Adding a BR in front of the contents and then remoiving it seems to fix it though.
+ e.innerHTML = '<br>' + (r.item ? r.item(0).outerHTML : r.htmlText);
+ e.removeChild(e.firstChild);
+ } else
+ e.innerHTML = r.toString();
+
+ // Keep whitespace before and after
+ if (/^\s/.test(e.innerHTML))
+ wb = ' ';
+
+ if (/\s+$/.test(e.innerHTML))
+ wa = ' ';
+
+ s.getInner = true;
+
+ s.content = t.isCollapsed() ? '' : wb + t.serializer.serialize(e, s) + wa;
+ t.onGetContent.dispatch(t, s);
+
+ return s.content;
+ },
+
+ setContent : function(content, args) {
+ var self = this, rng = self.getRng(), caretNode, doc = self.win.document, frag, temp;
+
+ args = args || {format : 'html'};
+ args.set = true;
+ content = args.content = content;
+
+ // Dispatch before set content event
+ if (!args.no_events)
+ self.onBeforeSetContent.dispatch(self, args);
+
+ content = args.content;
+
+ if (rng.insertNode) {
+ // Make caret marker since insertNode places the caret in the beginning of text after insert
+ content += '<span id="__caret">_</span>';
+
+ // Delete and insert new node
+ if (rng.startContainer == doc && rng.endContainer == doc) {
+ // WebKit will fail if the body is empty since the range is then invalid and it can't insert contents
+ doc.body.innerHTML = content;
+ } else {
+ rng.deleteContents();
+
+ if (doc.body.childNodes.length === 0) {
+ doc.body.innerHTML = content;
+ } else {
+ // createContextualFragment doesn't exists in IE 9 DOMRanges
+ if (rng.createContextualFragment) {
+ rng.insertNode(rng.createContextualFragment(content));
+ } else {
+ // Fake createContextualFragment call in IE 9
+ frag = doc.createDocumentFragment();
+ temp = doc.createElement('div');
+
+ frag.appendChild(temp);
+ temp.outerHTML = content;
+
+ rng.insertNode(frag);
+ }
+ }
+ }
+
+ // Move to caret marker
+ caretNode = self.dom.get('__caret');
+
+ // Make sure we wrap it compleatly, Opera fails with a simple select call
+ rng = doc.createRange();
+ rng.setStartBefore(caretNode);
+ rng.setEndBefore(caretNode);
+ self.setRng(rng);
+
+ // Remove the caret position
+ self.dom.remove('__caret');
+
+ try {
+ self.setRng(rng);
+ } catch (ex) {
+ // Might fail on Opera for some odd reason
+ }
+ } else {
+ if (rng.item) {
+ // Delete content and get caret text selection
+ doc.execCommand('Delete', false, null);
+ rng = self.getRng();
+ }
+
+ // Explorer removes spaces from the beginning of pasted contents
+ if (/^\s+/.test(content)) {
+ rng.pasteHTML('<span id="__mce_tmp">_</span>' + content);
+ self.dom.remove('__mce_tmp');
+ } else
+ rng.pasteHTML(content);
+ }
+
+ // Dispatch set content event
+ if (!args.no_events)
+ self.onSetContent.dispatch(self, args);
+ },
+
+ getStart : function() {
+ var self = this, rng = self.getRng(), startElement, parentElement, checkRng, node;
+
+ if (rng.duplicate || rng.item) {
+ // Control selection, return first item
+ if (rng.item)
+ return rng.item(0);
+
+ // Get start element
+ checkRng = rng.duplicate();
+ checkRng.collapse(1);
+ startElement = checkRng.parentElement();
+ if (startElement.ownerDocument !== self.dom.doc) {
+ startElement = self.dom.getRoot();
+ }
+
+ // Check if range parent is inside the start element, then return the inner parent element
+ // This will fix issues when a single element is selected, IE would otherwise return the wrong start element
+ parentElement = node = rng.parentElement();
+ while (node = node.parentNode) {
+ if (node == startElement) {
+ startElement = parentElement;
+ break;
+ }
+ }
+
+ return startElement;
+ } else {
+ startElement = rng.startContainer;
+
+ if (startElement.nodeType == 1 && startElement.hasChildNodes())
+ startElement = startElement.childNodes[Math.min(startElement.childNodes.length - 1, rng.startOffset)];
+
+ if (startElement && startElement.nodeType == 3)
+ return startElement.parentNode;
+
+ return startElement;
+ }
+ },
+
+ getEnd : function() {
+ var self = this, rng = self.getRng(), endElement, endOffset;
+
+ if (rng.duplicate || rng.item) {
+ if (rng.item)
+ return rng.item(0);
+
+ rng = rng.duplicate();
+ rng.collapse(0);
+ endElement = rng.parentElement();
+ if (endElement.ownerDocument !== self.dom.doc) {
+ endElement = self.dom.getRoot();
+ }
+
+ if (endElement && endElement.nodeName == 'BODY')
+ return endElement.lastChild || endElement;
+
+ return endElement;
+ } else {
+ endElement = rng.endContainer;
+ endOffset = rng.endOffset;
+
+ if (endElement.nodeType == 1 && endElement.hasChildNodes())
+ endElement = endElement.childNodes[endOffset > 0 ? endOffset - 1 : endOffset];
+
+ if (endElement && endElement.nodeType == 3)
+ return endElement.parentNode;
+
+ return endElement;
+ }
+ },
+
+ getBookmark : function(type, normalized) {
+ var t = this, dom = t.dom, rng, rng2, id, collapsed, name, element, index, chr = '\uFEFF', styles;
+
+ function findIndex(name, element) {
+ var index = 0;
+
+ each(dom.select(name), function(node, i) {
+ if (node == element)
+ index = i;
+ });
+
+ return index;
+ };
+
+ function normalizeTableCellSelection(rng) {
+ function moveEndPoint(start) {
+ var container, offset, childNodes, prefix = start ? 'start' : 'end';
+
+ container = rng[prefix + 'Container'];
+ offset = rng[prefix + 'Offset'];
+
+ if (container.nodeType == 1 && container.nodeName == "TR") {
+ childNodes = container.childNodes;
+ container = childNodes[Math.min(start ? offset : offset - 1, childNodes.length - 1)];
+ if (container) {
+ offset = start ? 0 : container.childNodes.length;
+ rng['set' + (start ? 'Start' : 'End')](container, offset);
+ }
+ }
+ };
+
+ moveEndPoint(true);
+ moveEndPoint();
+
+ return rng;
+ };
+
+ function getLocation() {
+ var rng = t.getRng(true), root = dom.getRoot(), bookmark = {};
+
+ function getPoint(rng, start) {
+ var container = rng[start ? 'startContainer' : 'endContainer'],
+ offset = rng[start ? 'startOffset' : 'endOffset'], point = [], node, childNodes, after = 0;
+
+ if (container.nodeType == 3) {
+ if (normalized) {
+ for (node = container.previousSibling; node && node.nodeType == 3; node = node.previousSibling)
+ offset += node.nodeValue.length;
+ }
+
+ point.push(offset);
+ } else {
+ childNodes = container.childNodes;
+
+ if (offset >= childNodes.length && childNodes.length) {
+ after = 1;
+ offset = Math.max(0, childNodes.length - 1);
+ }
+
+ point.push(t.dom.nodeIndex(childNodes[offset], normalized) + after);
+ }
+
+ for (; container && container != root; container = container.parentNode)
+ point.push(t.dom.nodeIndex(container, normalized));
+
+ return point;
+ };
+
+ bookmark.start = getPoint(rng, true);
+
+ if (!t.isCollapsed())
+ bookmark.end = getPoint(rng);
+
+ return bookmark;
+ };
+
+ if (type == 2) {
+ if (t.tridentSel)
+ return t.tridentSel.getBookmark(type);
+
+ return getLocation();
+ }
+
+ // Handle simple range
+ if (type)
+ return {rng : t.getRng()};
+
+ rng = t.getRng();
+ id = dom.uniqueId();
+ collapsed = tinyMCE.activeEditor.selection.isCollapsed();
+ styles = 'overflow:hidden;line-height:0px';
+
+ // Explorer method
+ if (rng.duplicate || rng.item) {
+ // Text selection
+ if (!rng.item) {
+ rng2 = rng.duplicate();
+
+ try {
+ // Insert start marker
+ rng.collapse();
+ rng.pasteHTML('<span data-mce-type="bookmark" id="' + id + '_start" style="' + styles + '">' + chr + '</span>');
+
+ // Insert end marker
+ if (!collapsed) {
+ rng2.collapse(false);
+
+ // Detect the empty space after block elements in IE and move the end back one character <p></p>] becomes <p>]</p>
+ rng.moveToElementText(rng2.parentElement());
+ if (rng.compareEndPoints('StartToEnd', rng2) === 0)
+ rng2.move('character', -1);
+
+ rng2.pasteHTML('<span data-mce-type="bookmark" id="' + id + '_end" style="' + styles + '">' + chr + '</span>');
+ }
+ } catch (ex) {
+ // IE might throw unspecified error so lets ignore it
+ return null;
+ }
+ } else {
+ // Control selection
+ element = rng.item(0);
+ name = element.nodeName;
+
+ return {name : name, index : findIndex(name, element)};
+ }
+ } else {
+ element = t.getNode();
+ name = element.nodeName;
+ if (name == 'IMG')
+ return {name : name, index : findIndex(name, element)};
+
+ // W3C method
+ rng2 = normalizeTableCellSelection(rng.cloneRange());
+
+ // Insert end marker
+ if (!collapsed) {
+ rng2.collapse(false);
+ rng2.insertNode(dom.create('span', {'data-mce-type' : "bookmark", id : id + '_end', style : styles}, chr));
+ }
+
+ rng = normalizeTableCellSelection(rng);
+ rng.collapse(true);
+ rng.insertNode(dom.create('span', {'data-mce-type' : "bookmark", id : id + '_start', style : styles}, chr));
+ }
+
+ t.moveToBookmark({id : id, keep : 1});
+
+ return {id : id};
+ },
+
+ moveToBookmark : function(bookmark) {
+ var t = this, dom = t.dom, marker1, marker2, rng, root, startContainer, endContainer, startOffset, endOffset;
+
+ function setEndPoint(start) {
+ var point = bookmark[start ? 'start' : 'end'], i, node, offset, children;
+
+ if (point) {
+ offset = point[0];
+
+ // Find container node
+ for (node = root, i = point.length - 1; i >= 1; i--) {
+ children = node.childNodes;
+
+ if (point[i] > children.length - 1)
+ return;
+
+ node = children[point[i]];
+ }
+
+ // Move text offset to best suitable location
+ if (node.nodeType === 3)
+ offset = Math.min(point[0], node.nodeValue.length);
+
+ // Move element offset to best suitable location
+ if (node.nodeType === 1)
+ offset = Math.min(point[0], node.childNodes.length);
+
+ // Set offset within container node
+ if (start)
+ rng.setStart(node, offset);
+ else
+ rng.setEnd(node, offset);
+ }
+
+ return true;
+ };
+
+ function restoreEndPoint(suffix) {
+ var marker = dom.get(bookmark.id + '_' + suffix), node, idx, next, prev, keep = bookmark.keep;
+
+ if (marker) {
+ node = marker.parentNode;
+
+ if (suffix == 'start') {
+ if (!keep) {
+ idx = dom.nodeIndex(marker);
+ } else {
+ node = marker.firstChild;
+ idx = 1;
+ }
+
+ startContainer = endContainer = node;
+ startOffset = endOffset = idx;
+ } else {
+ if (!keep) {
+ idx = dom.nodeIndex(marker);
+ } else {
+ node = marker.firstChild;
+ idx = 1;
+ }
+
+ endContainer = node;
+ endOffset = idx;
+ }
+
+ if (!keep) {
+ prev = marker.previousSibling;
+ next = marker.nextSibling;
+
+ // Remove all marker text nodes
+ each(tinymce.grep(marker.childNodes), function(node) {
+ if (node.nodeType == 3)
+ node.nodeValue = node.nodeValue.replace(/\uFEFF/g, '');
+ });
+
+ // Remove marker but keep children if for example contents where inserted into the marker
+ // Also remove duplicated instances of the marker for example by a split operation or by WebKit auto split on paste feature
+ while (marker = dom.get(bookmark.id + '_' + suffix))
+ dom.remove(marker, 1);
+
+ // If siblings are text nodes then merge them unless it's Opera since it some how removes the node
+ // and we are sniffing since adding a lot of detection code for a browser with 3% of the market isn't worth the effort. Sorry, Opera but it's just a fact
+ if (prev && next && prev.nodeType == next.nodeType && prev.nodeType == 3 && !tinymce.isOpera) {
+ idx = prev.nodeValue.length;
+ prev.appendData(next.nodeValue);
+ dom.remove(next);
+
+ if (suffix == 'start') {
+ startContainer = endContainer = prev;
+ startOffset = endOffset = idx;
+ } else {
+ endContainer = prev;
+ endOffset = idx;
+ }
+ }
+ }
+ }
+ };
+
+ function addBogus(node) {
+ // Adds a bogus BR element for empty block elements
+ if (dom.isBlock(node) && !node.innerHTML && !isIE)
+ node.innerHTML = '<br data-mce-bogus="1" />';
+
+ return node;
+ };
+
+ if (bookmark) {
+ if (bookmark.start) {
+ rng = dom.createRng();
+ root = dom.getRoot();
+
+ if (t.tridentSel)
+ return t.tridentSel.moveToBookmark(bookmark);
+
+ if (setEndPoint(true) && setEndPoint()) {
+ t.setRng(rng);
+ }
+ } else if (bookmark.id) {
+ // Restore start/end points
+ restoreEndPoint('start');
+ restoreEndPoint('end');
+
+ if (startContainer) {
+ rng = dom.createRng();
+ rng.setStart(addBogus(startContainer), startOffset);
+ rng.setEnd(addBogus(endContainer), endOffset);
+ t.setRng(rng);
+ }
+ } else if (bookmark.name) {
+ t.select(dom.select(bookmark.name)[bookmark.index]);
+ } else if (bookmark.rng)
+ t.setRng(bookmark.rng);
+ }
+ },
+
+ select : function(node, content) {
+ var t = this, dom = t.dom, rng = dom.createRng(), idx;
+
+ function setPoint(node, start) {
+ var walker = new TreeWalker(node, node);
+
+ do {
+ // Text node
+ if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length !== 0) {
+ if (start)
+ rng.setStart(node, 0);
+ else
+ rng.setEnd(node, node.nodeValue.length);
+
+ return;
+ }
+
+ // BR element
+ if (node.nodeName == 'BR') {
+ if (start)
+ rng.setStartBefore(node);
+ else
+ rng.setEndBefore(node);
+
+ return;
+ }
+ } while (node = (start ? walker.next() : walker.prev()));
+ };
+
+ if (node) {
+ idx = dom.nodeIndex(node);
+ rng.setStart(node.parentNode, idx);
+ rng.setEnd(node.parentNode, idx + 1);
+
+ // Find first/last text node or BR element
+ if (content) {
+ setPoint(node, 1);
+ setPoint(node);
+ }
+
+ t.setRng(rng);
+ }
+
+ return node;
+ },
+
+ isCollapsed : function() {
+ var t = this, r = t.getRng(), s = t.getSel();
+
+ if (!r || r.item)
+ return false;
+
+ if (r.compareEndPoints)
+ return r.compareEndPoints('StartToEnd', r) === 0;
+
+ return !s || r.collapsed;
+ },
+
+ collapse : function(to_start) {
+ var self = this, rng = self.getRng(), node;
+
+ // Control range on IE
+ if (rng.item) {
+ node = rng.item(0);
+ rng = self.win.document.body.createTextRange();
+ rng.moveToElementText(node);
+ }
+
+ rng.collapse(!!to_start);
+ self.setRng(rng);
+ },
+
+ getSel : function() {
+ var t = this, w = this.win;
+
+ return w.getSelection ? w.getSelection() : w.document.selection;
+ },
+
+ getRng : function(w3c) {
+ var self = this, selection, rng, elm, doc = self.win.document;
+
+ // Found tridentSel object then we need to use that one
+ if (w3c && self.tridentSel) {
+ return self.tridentSel.getRangeAt(0);
+ }
+
+ try {
+ if (selection = self.getSel()) {
+ rng = selection.rangeCount > 0 ? selection.getRangeAt(0) : (selection.createRange ? selection.createRange() : doc.createRange());
+ }
+ } catch (ex) {
+ // IE throws unspecified error here if TinyMCE is placed in a frame/iframe
+ }
+
+ // We have W3C ranges and it's IE then fake control selection since IE9 doesn't handle that correctly yet
+ if (tinymce.isIE && rng && rng.setStart && doc.selection.createRange().item) {
+ elm = doc.selection.createRange().item(0);
+ rng = doc.createRange();
+ rng.setStartBefore(elm);
+ rng.setEndAfter(elm);
+ }
+
+ // No range found then create an empty one
+ // This can occur when the editor is placed in a hidden container element on Gecko
+ // Or on IE when there was an exception
+ if (!rng) {
+ rng = doc.createRange ? doc.createRange() : doc.body.createTextRange();
+ }
+
+ // If range is at start of document then move it to start of body
+ if (rng.setStart && rng.startContainer.nodeType === 9 && rng.collapsed) {
+ elm = self.dom.getRoot();
+ rng.setStart(elm, 0);
+ rng.setEnd(elm, 0);
+ }
+
+ if (self.selectedRange && self.explicitRange) {
+ if (rng.compareBoundaryPoints(rng.START_TO_START, self.selectedRange) === 0 && rng.compareBoundaryPoints(rng.END_TO_END, self.selectedRange) === 0) {
+ // Safari, Opera and Chrome only ever select text which causes the range to change.
+ // This lets us use the originally set range if the selection hasn't been changed by the user.
+ rng = self.explicitRange;
+ } else {
+ self.selectedRange = null;
+ self.explicitRange = null;
+ }
+ }
+
+ return rng;
+ },
+
+ setRng : function(r, forward) {
+ var s, t = this;
+
+ if (!t.tridentSel) {
+ s = t.getSel();
+
+ if (s) {
+ t.explicitRange = r;
+
+ try {
+ s.removeAllRanges();
+ } catch (ex) {
+ // IE9 might throw errors here don't know why
+ }
+
+ s.addRange(r);
+
+ // Forward is set to false and we have an extend function
+ if (forward === false && s.extend) {
+ s.collapse(r.endContainer, r.endOffset);
+ s.extend(r.startContainer, r.startOffset);
+ }
+
+ // adding range isn't always successful so we need to check range count otherwise an exception can occur
+ t.selectedRange = s.rangeCount > 0 ? s.getRangeAt(0) : null;
+ }
+ } else {
+ // Is W3C Range
+ if (r.cloneRange) {
+ try {
+ t.tridentSel.addRange(r);
+ return;
+ } catch (ex) {
+ //IE9 throws an error here if called before selection is placed in the editor
+ }
+ }
+
+ // Is IE specific range
+ try {
+ r.select();
+ } catch (ex) {
+ // Needed for some odd IE bug #1843306
+ }
+ }
+ },
+
+ setNode : function(n) {
+ var t = this;
+
+ t.setContent(t.dom.getOuterHTML(n));
+
+ return n;
+ },
+
+ getNode : function() {
+ var t = this, rng = t.getRng(), sel = t.getSel(), elm, start = rng.startContainer, end = rng.endContainer;
+
+ function skipEmptyTextNodes(n, forwards) {
+ var orig = n;
+ while (n && n.nodeType === 3 && n.length === 0) {
+ n = forwards ? n.nextSibling : n.previousSibling;
+ }
+ return n || orig;
+ };
+
+ // Range maybe lost after the editor is made visible again
+ if (!rng)
+ return t.dom.getRoot();
+
+ if (rng.setStart) {
+ elm = rng.commonAncestorContainer;
+
+ // Handle selection a image or other control like element such as anchors
+ if (!rng.collapsed) {
+ if (rng.startContainer == rng.endContainer) {
+ if (rng.endOffset - rng.startOffset < 2) {
+ if (rng.startContainer.hasChildNodes())
+ elm = rng.startContainer.childNodes[rng.startOffset];
+ }
+ }
+
+ // If the anchor node is a element instead of a text node then return this element
+ //if (tinymce.isWebKit && sel.anchorNode && sel.anchorNode.nodeType == 1)
+ // return sel.anchorNode.childNodes[sel.anchorOffset];
+
+ // Handle cases where the selection is immediately wrapped around a node and return that node instead of it's parent.
+ // This happens when you double click an underlined word in FireFox.
+ if (start.nodeType === 3 && end.nodeType === 3) {
+ if (start.length === rng.startOffset) {
+ start = skipEmptyTextNodes(start.nextSibling, true);
+ } else {
+ start = start.parentNode;
+ }
+ if (rng.endOffset === 0) {
+ end = skipEmptyTextNodes(end.previousSibling, false);
+ } else {
+ end = end.parentNode;
+ }
+
+ if (start && start === end)
+ return start;
+ }
+ }
+
+ if (elm && elm.nodeType == 3)
+ return elm.parentNode;
+
+ return elm;
+ }
+
+ return rng.item ? rng.item(0) : rng.parentElement();
+ },
+
+ getSelectedBlocks : function(st, en) {
+ var t = this, dom = t.dom, sb, eb, n, bl = [];
+
+ sb = dom.getParent(st || t.getStart(), dom.isBlock);
+ eb = dom.getParent(en || t.getEnd(), dom.isBlock);
+
+ if (sb)
+ bl.push(sb);
+
+ if (sb && eb && sb != eb) {
+ n = sb;
+
+ var walker = new TreeWalker(sb, dom.getRoot());
+ while ((n = walker.next()) && n != eb) {
+ if (dom.isBlock(n))
+ bl.push(n);
+ }
+ }
+
+ if (eb && sb != eb)
+ bl.push(eb);
+
+ return bl;
+ },
+
+ isForward: function(){
+ var dom = this.dom, sel = this.getSel(), anchorRange, focusRange;
+
+ // No support for selection direction then always return true
+ if (!sel || sel.anchorNode == null || sel.focusNode == null) {
+ return true;
+ }
+
+ anchorRange = dom.createRng();
+ anchorRange.setStart(sel.anchorNode, sel.anchorOffset);
+ anchorRange.collapse(true);
+
+ focusRange = dom.createRng();
+ focusRange.setStart(sel.focusNode, sel.focusOffset);
+ focusRange.collapse(true);
+
+ return anchorRange.compareBoundaryPoints(anchorRange.START_TO_START, focusRange) <= 0;
+ },
+
+ normalize : function() {
+ var self = this, rng, normalized, collapsed, node, sibling;
+
+ function normalizeEndPoint(start) {
+ var container, offset, walker, dom = self.dom, body = dom.getRoot(), node, nonEmptyElementsMap, nodeName;
+
+ function hasBrBeforeAfter(node, left) {
+ var walker = new TreeWalker(node, dom.getParent(node.parentNode, dom.isBlock) || body);
+
+ while (node = walker[left ? 'prev' : 'next']()) {
+ if (node.nodeName === "BR") {
+ return true;
+ }
+ }
+ };
+
+ // Walks the dom left/right to find a suitable text node to move the endpoint into
+ // It will only walk within the current parent block or body and will stop if it hits a block or a BR/IMG
+ function findTextNodeRelative(left, startNode) {
+ var walker, lastInlineElement;
+
+ startNode = startNode || container;
+ walker = new TreeWalker(startNode, dom.getParent(startNode.parentNode, dom.isBlock) || body);
+
+ // Walk left until we hit a text node we can move to or a block/br/img
+ while (node = walker[left ? 'prev' : 'next']()) {
+ // Found text node that has a length
+ if (node.nodeType === 3 && node.nodeValue.length > 0) {
+ container = node;
+ offset = left ? node.nodeValue.length : 0;
+ normalized = true;
+ return;
+ }
+
+ // Break if we find a block or a BR/IMG/INPUT etc
+ if (dom.isBlock(node) || nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ return;
+ }
+
+ lastInlineElement = node;
+ }
+
+ // Only fetch the last inline element when in caret mode for now
+ if (collapsed && lastInlineElement) {
+ container = lastInlineElement;
+ normalized = true;
+ offset = 0;
+ }
+ };
+
+ container = rng[(start ? 'start' : 'end') + 'Container'];
+ offset = rng[(start ? 'start' : 'end') + 'Offset'];
+ nonEmptyElementsMap = dom.schema.getNonEmptyElements();
+
+ // If the container is a document move it to the body element
+ if (container.nodeType === 9) {
+ container = dom.getRoot();
+ offset = 0;
+ }
+
+ // If the container is body try move it into the closest text node or position
+ if (container === body) {
+ // If start is before/after a image, table etc
+ if (start) {
+ node = container.childNodes[offset > 0 ? offset - 1 : 0];
+ if (node) {
+ nodeName = node.nodeName.toLowerCase();
+ if (nonEmptyElementsMap[node.nodeName] || node.nodeName == "TABLE") {
+ return;
+ }
+ }
+ }
+
+ // Resolve the index
+ if (container.hasChildNodes()) {
+ container = container.childNodes[Math.min(!start && offset > 0 ? offset - 1 : offset, container.childNodes.length - 1)];
+ offset = 0;
+
+ // Don't walk into elements that doesn't have any child nodes like a IMG
+ if (container.hasChildNodes() && !/TABLE/.test(container.nodeName)) {
+ // Walk the DOM to find a text node to place the caret at or a BR
+ node = container;
+ walker = new TreeWalker(container, body);
+
+ do {
+ // Found a text node use that position
+ if (node.nodeType === 3 && node.nodeValue.length > 0) {
+ offset = start ? 0 : node.nodeValue.length;
+ container = node;
+ normalized = true;
+ break;
+ }
+
+ // Found a BR/IMG element that we can place the caret before
+ if (nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ offset = dom.nodeIndex(node);
+ container = node.parentNode;
+
+ // Put caret after image when moving the end point
+ if (node.nodeName == "IMG" && !start) {
+ offset++;
+ }
+
+ normalized = true;
+ break;
+ }
+ } while (node = (start ? walker.next() : walker.prev()));
+ }
+ }
+ }
+
+ // Lean the caret to the left if possible
+ if (collapsed) {
+ // So this: <b>x</b><i>|x</i>
+ // Becomes: <b>x|</b><i>x</i>
+ // Seems that only gecko has issues with this
+ if (container.nodeType === 3 && offset === 0) {
+ findTextNodeRelative(true);
+ }
+
+ // Lean left into empty inline elements when the caret is before a BR
+ // So this: <i><b></b><i>|<br></i>
+ // Becomes: <i><b>|</b><i><br></i>
+ // Seems that only gecko has issues with this
+ if (container.nodeType === 1) {
+ node = container.childNodes[offset];
+ if(node && node.nodeName === 'BR' && !hasBrBeforeAfter(node) && !hasBrBeforeAfter(node, true)) {
+ findTextNodeRelative(true, container.childNodes[offset]);
+ }
+ }
+ }
+
+ // Lean the start of the selection right if possible
+ // So this: x[<b>x]</b>
+ // Becomes: x<b>[x]</b>
+ if (start && !collapsed && container.nodeType === 3 && offset === container.nodeValue.length) {
+ findTextNodeRelative(false);
+ }
+
+ // Set endpoint if it was normalized
+ if (normalized)
+ rng['set' + (start ? 'Start' : 'End')](container, offset);
+ };
+
+ // Normalize only on non IE browsers for now
+ if (tinymce.isIE)
+ return;
+
+ rng = self.getRng();
+ collapsed = rng.collapsed;
+
+ // Normalize the end points
+ normalizeEndPoint(true);
+
+ if (!collapsed)
+ normalizeEndPoint();
+
+ // Set the selection if it was normalized
+ if (normalized) {
+ // If it was collapsed then make sure it still is
+ if (collapsed) {
+ rng.collapse(true);
+ }
+
+ //console.log(self.dom.dumpRng(rng));
+ self.setRng(rng, self.isForward());
+ }
+ },
+
+ selectorChanged: function(selector, callback) {
+ var self = this, currentSelectors;
+
+ if (!self.selectorChangedData) {
+ self.selectorChangedData = {};
+ currentSelectors = {};
+
+ self.editor.onNodeChange.addToTop(function(ed, cm, node) {
+ var dom = self.dom, parents = dom.getParents(node, null, dom.getRoot()), matchedSelectors = {};
+
+ // Check for new matching selectors
+ each(self.selectorChangedData, function(callbacks, selector) {
+ each(parents, function(node) {
+ if (dom.is(node, selector)) {
+ if (!currentSelectors[selector]) {
+ // Execute callbacks
+ each(callbacks, function(callback) {
+ callback(true, {node: node, selector: selector, parents: parents});
+ });
+
+ currentSelectors[selector] = callbacks;
+ }
+
+ matchedSelectors[selector] = callbacks;
+ return false;
+ }
+ });
+ });
+
+ // Check if current selectors still match
+ each(currentSelectors, function(callbacks, selector) {
+ if (!matchedSelectors[selector]) {
+ delete currentSelectors[selector];
+
+ each(callbacks, function(callback) {
+ callback(false, {node: node, selector: selector, parents: parents});
+ });
+ }
+ });
+ });
+ }
+
+ // Add selector listeners
+ if (!self.selectorChangedData[selector]) {
+ self.selectorChangedData[selector] = [];
+ }
+
+ self.selectorChangedData[selector].push(callback);
+
+ return self;
+ },
+
+ destroy : function(manual) {
+ var self = this;
+
+ self.win = null;
+
+ // Manual destroy then remove unload handler
+ if (!manual)
+ tinymce.removeUnload(self.destroy);
+ },
+
+ // IE has an issue where you can't select/move the caret by clicking outside the body if the document is in standards mode
+ _fixIESelection : function() {
+ var dom = this.dom, doc = dom.doc, body = doc.body, started, startRng, htmlElm;
+
+ // Return range from point or null if it failed
+ function rngFromPoint(x, y) {
+ var rng = body.createTextRange();
+
+ try {
+ rng.moveToPoint(x, y);
+ } catch (ex) {
+ // IE sometimes throws and exception, so lets just ignore it
+ rng = null;
+ }
+
+ return rng;
+ };
+
+ // Fires while the selection is changing
+ function selectionChange(e) {
+ var pointRng;
+
+ // Check if the button is down or not
+ if (e.button) {
+ // Create range from mouse position
+ pointRng = rngFromPoint(e.x, e.y);
+
+ if (pointRng) {
+ // Check if pointRange is before/after selection then change the endPoint
+ if (pointRng.compareEndPoints('StartToStart', startRng) > 0)
+ pointRng.setEndPoint('StartToStart', startRng);
+ else
+ pointRng.setEndPoint('EndToEnd', startRng);
+
+ pointRng.select();
+ }
+ } else
+ endSelection();
+ }
+
+ // Removes listeners
+ function endSelection() {
+ var rng = doc.selection.createRange();
+
+ // If the range is collapsed then use the last start range
+ if (startRng && !rng.item && rng.compareEndPoints('StartToEnd', rng) === 0)
+ startRng.select();
+
+ dom.unbind(doc, 'mouseup', endSelection);
+ dom.unbind(doc, 'mousemove', selectionChange);
+ startRng = started = 0;
+ };
+
+ // Make HTML element unselectable since we are going to handle selection by hand
+ doc.documentElement.unselectable = true;
+
+ // Detect when user selects outside BODY
+ dom.bind(doc, ['mousedown', 'contextmenu'], function(e) {
+ if (e.target.nodeName === 'HTML') {
+ if (started)
+ endSelection();
+
+ // Detect vertical scrollbar, since IE will fire a mousedown on the scrollbar and have target set as HTML
+ htmlElm = doc.documentElement;
+ if (htmlElm.scrollHeight > htmlElm.clientHeight)
+ return;
+
+ started = 1;
+ // Setup start position
+ startRng = rngFromPoint(e.x, e.y);
+ if (startRng) {
+ // Listen for selection change events
+ dom.bind(doc, 'mouseup', endSelection);
+ dom.bind(doc, 'mousemove', selectionChange);
+
+ dom.win.focus();
+ startRng.select();
+ }
+ }
+ });
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ tinymce.dom.Serializer = function(settings, dom, schema) {
+ var onPreProcess, onPostProcess, isIE = tinymce.isIE, each = tinymce.each, htmlParser;
+
+ // Support the old apply_source_formatting option
+ if (!settings.apply_source_formatting)
+ settings.indent = false;
+
+ // Default DOM and Schema if they are undefined
+ dom = dom || tinymce.DOM;
+ schema = schema || new tinymce.html.Schema(settings);
+ settings.entity_encoding = settings.entity_encoding || 'named';
+ settings.remove_trailing_brs = "remove_trailing_brs" in settings ? settings.remove_trailing_brs : true;
+
+ onPreProcess = new tinymce.util.Dispatcher(self);
+
+ onPostProcess = new tinymce.util.Dispatcher(self);
+
+ htmlParser = new tinymce.html.DomParser(settings, schema);
+
+ // Convert move data-mce-src, data-mce-href and data-mce-style into nodes or process them if needed
+ htmlParser.addAttributeFilter('src,href,style', function(nodes, name) {
+ var i = nodes.length, node, value, internalName = 'data-mce-' + name, urlConverter = settings.url_converter, urlConverterScope = settings.url_converter_scope, undef;
+
+ while (i--) {
+ node = nodes[i];
+
+ value = node.attributes.map[internalName];
+ if (value !== undef) {
+ // Set external name to internal value and remove internal
+ node.attr(name, value.length > 0 ? value : null);
+ node.attr(internalName, null);
+ } else {
+ // No internal attribute found then convert the value we have in the DOM
+ value = node.attributes.map[name];
+
+ if (name === "style")
+ value = dom.serializeStyle(dom.parseStyle(value), node.name);
+ else if (urlConverter)
+ value = urlConverter.call(urlConverterScope, value, name, node.name);
+
+ node.attr(name, value.length > 0 ? value : null);
+ }
+ }
+ });
+
+ // Remove internal classes mceItem<..> or mceSelected
+ htmlParser.addAttributeFilter('class', function(nodes, name) {
+ var i = nodes.length, node, value;
+
+ while (i--) {
+ node = nodes[i];
+ value = node.attr('class').replace(/(?:^|\s)mce(Item\w+|Selected)(?!\S)/g, '');
+ node.attr('class', value.length > 0 ? value : null);
+ }
+ });
+
+ // Remove bookmark elements
+ htmlParser.addAttributeFilter('data-mce-type', function(nodes, name, args) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+
+ if (node.attributes.map['data-mce-type'] === 'bookmark' && !args.cleanup)
+ node.remove();
+ }
+ });
+
+ // Remove expando attributes
+ htmlParser.addAttributeFilter('data-mce-expando', function(nodes, name, args) {
+ var i = nodes.length;
+
+ while (i--) {
+ nodes[i].attr(name, null);
+ }
+ });
+
+ htmlParser.addNodeFilter('noscript', function(nodes) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i].firstChild;
+
+ if (node) {
+ node.value = tinymce.html.Entities.decode(node.value);
+ }
+ }
+ });
+
+ // Force script into CDATA sections and remove the mce- prefix also add comments around styles
+ htmlParser.addNodeFilter('script,style', function(nodes, name) {
+ var i = nodes.length, node, value;
+
+ function trim(value) {
+ return value.replace(/(<!--\[CDATA\[|\]\]-->)/g, '\n')
+ .replace(/^[\r\n]*|[\r\n]*$/g, '')
+ .replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi, '')
+ .replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g, '');
+ };
+
+ while (i--) {
+ node = nodes[i];
+ value = node.firstChild ? node.firstChild.value : '';
+
+ if (name === "script") {
+ // Remove mce- prefix from script elements
+ node.attr('type', (node.attr('type') || 'text/javascript').replace(/^mce\-/, ''));
+
+ if (value.length > 0)
+ node.firstChild.value = '// <![CDATA[\n' + trim(value) + '\n// ]]>';
+ } else {
+ if (value.length > 0)
+ node.firstChild.value = '<!--\n' + trim(value) + '\n-->';
+ }
+ }
+ });
+
+ // Convert comments to cdata and handle protected comments
+ htmlParser.addNodeFilter('#comment', function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+
+ if (node.value.indexOf('[CDATA[') === 0) {
+ node.name = '#cdata';
+ node.type = 4;
+ node.value = node.value.replace(/^\[CDATA\[|\]\]$/g, '');
+ } else if (node.value.indexOf('mce:protected ') === 0) {
+ node.name = "#text";
+ node.type = 3;
+ node.raw = true;
+ node.value = unescape(node.value).substr(14);
+ }
+ }
+ });
+
+ htmlParser.addNodeFilter('xml:namespace,input', function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+ if (node.type === 7)
+ node.remove();
+ else if (node.type === 1) {
+ if (name === "input" && !("type" in node.attributes.map))
+ node.attr('type', 'text');
+ }
+ }
+ });
+
+ // Fix list elements, TODO: Replace this later
+ if (settings.fix_list_elements) {
+ htmlParser.addNodeFilter('ul,ol', function(nodes, name) {
+ var i = nodes.length, node, parentNode;
+
+ while (i--) {
+ node = nodes[i];
+ parentNode = node.parent;
+
+ if (parentNode.name === 'ul' || parentNode.name === 'ol') {
+ if (node.prev && node.prev.name === 'li') {
+ node.prev.append(node);
+ }
+ }
+ }
+ });
+ }
+
+ // Remove internal data attributes
+ htmlParser.addAttributeFilter('data-mce-src,data-mce-href,data-mce-style', function(nodes, name) {
+ var i = nodes.length;
+
+ while (i--) {
+ nodes[i].attr(name, null);
+ }
+ });
+
+ // Return public methods
+ return {
+ schema : schema,
+
+ addNodeFilter : htmlParser.addNodeFilter,
+
+ addAttributeFilter : htmlParser.addAttributeFilter,
+
+ onPreProcess : onPreProcess,
+
+ onPostProcess : onPostProcess,
+
+ serialize : function(node, args) {
+ var impl, doc, oldDoc, htmlSerializer, content;
+
+ // Explorer won't clone contents of script and style and the
+ // selected index of select elements are cleared on a clone operation.
+ if (isIE && dom.select('script,style,select,map').length > 0) {
+ content = node.innerHTML;
+ node = node.cloneNode(false);
+ dom.setHTML(node, content);
+ } else
+ node = node.cloneNode(true);
+
+ // Nodes needs to be attached to something in WebKit/Opera
+ // Older builds of Opera crashes if you attach the node to an document created dynamically
+ // and since we can't feature detect a crash we need to sniff the acutal build number
+ // This fix will make DOM ranges and make Sizzle happy!
+ impl = node.ownerDocument.implementation;
+ if (impl.createHTMLDocument) {
+ // Create an empty HTML document
+ doc = impl.createHTMLDocument("");
+
+ // Add the element or it's children if it's a body element to the new document
+ each(node.nodeName == 'BODY' ? node.childNodes : [node], function(node) {
+ doc.body.appendChild(doc.importNode(node, true));
+ });
+
+ // Grab first child or body element for serialization
+ if (node.nodeName != 'BODY')
+ node = doc.body.firstChild;
+ else
+ node = doc.body;
+
+ // set the new document in DOMUtils so createElement etc works
+ oldDoc = dom.doc;
+ dom.doc = doc;
+ }
+
+ args = args || {};
+ args.format = args.format || 'html';
+
+ // Pre process
+ if (!args.no_events) {
+ args.node = node;
+ onPreProcess.dispatch(self, args);
+ }
+
+ // Setup serializer
+ htmlSerializer = new tinymce.html.Serializer(settings, schema);
+
+ // Parse and serialize HTML
+ args.content = htmlSerializer.serialize(
+ htmlParser.parse(tinymce.trim(args.getInner ? node.innerHTML : dom.getOuterHTML(node)), args)
+ );
+
+ // Replace all BOM characters for now until we can find a better solution
+ if (!args.cleanup)
+ args.content = args.content.replace(/\uFEFF/g, '');
+
+ // Post process
+ if (!args.no_events)
+ onPostProcess.dispatch(self, args);
+
+ // Restore the old document if it was changed
+ if (oldDoc)
+ dom.doc = oldDoc;
+
+ args.node = null;
+
+ return args.content;
+ },
+
+ addRules : function(rules) {
+ schema.addValidElements(rules);
+ },
+
+ setRules : function(rules) {
+ schema.setValidElements(rules);
+ }
+ };
+ };
+})(tinymce);
+(function(tinymce) {
+ tinymce.dom.ScriptLoader = function(settings) {
+ var QUEUED = 0,
+ LOADING = 1,
+ LOADED = 2,
+ states = {},
+ queue = [],
+ scriptLoadedCallbacks = {},
+ queueLoadedCallbacks = [],
+ loading = 0,
+ undef;
+
+ function loadScript(url, callback) {
+ var t = this, dom = tinymce.DOM, elm, uri, loc, id;
+
+ // Execute callback when script is loaded
+ function done() {
+ dom.remove(id);
+
+ if (elm)
+ elm.onreadystatechange = elm.onload = elm = null;
+
+ callback();
+ };
+
+ function error() {
+ // Report the error so it's easier for people to spot loading errors
+ if (typeof(console) !== "undefined" && console.log)
+ console.log("Failed to load: " + url);
+
+ // We can't mark it as done if there is a load error since
+ // A) We don't want to produce 404 errors on the server and
+ // B) the onerror event won't fire on all browsers.
+ // done();
+ };
+
+ id = dom.uniqueId();
+
+ if (tinymce.isIE6) {
+ uri = new tinymce.util.URI(url);
+ loc = location;
+
+ // If script is from same domain and we
+ // use IE 6 then use XHR since it's more reliable
+ if (uri.host == loc.hostname && uri.port == loc.port && (uri.protocol + ':') == loc.protocol && uri.protocol.toLowerCase() != 'file') {
+ tinymce.util.XHR.send({
+ url : tinymce._addVer(uri.getURI()),
+ success : function(content) {
+ // Create new temp script element
+ var script = dom.create('script', {
+ type : 'text/javascript'
+ });
+
+ // Evaluate script in global scope
+ script.text = content;
+ document.getElementsByTagName('head')[0].appendChild(script);
+ dom.remove(script);
+
+ done();
+ },
+
+ error : error
+ });
+
+ return;
+ }
+ }
+
+ // Create new script element
+ elm = document.createElement('script');
+ elm.id = id;
+ elm.type = 'text/javascript';
+ elm.src = tinymce._addVer(url);
+
+ // Add onload listener for non IE browsers since IE9
+ // fires onload event before the script is parsed and executed
+ if (!tinymce.isIE)
+ elm.onload = done;
+
+ // Add onerror event will get fired on some browsers but not all of them
+ elm.onerror = error;
+
+ // Opera 9.60 doesn't seem to fire the onreadystate event at correctly
+ if (!tinymce.isOpera) {
+ elm.onreadystatechange = function() {
+ var state = elm.readyState;
+
+ // Loaded state is passed on IE 6 however there
+ // are known issues with this method but we can't use
+ // XHR in a cross domain loading
+ if (state == 'complete' || state == 'loaded')
+ done();
+ };
+ }
+
+ // Most browsers support this feature so we report errors
+ // for those at least to help users track their missing plugins etc
+ // todo: Removed since it produced error if the document is unloaded by navigating away, re-add it as an option
+ /*elm.onerror = function() {
+ alert('Failed to load: ' + url);
+ };*/
+
+ // Add script to document
+ (document.getElementsByTagName('head')[0] || document.body).appendChild(elm);
+ };
+
+ this.isDone = function(url) {
+ return states[url] == LOADED;
+ };
+
+ this.markDone = function(url) {
+ states[url] = LOADED;
+ };
+
+ this.add = this.load = function(url, callback, scope) {
+ var item, state = states[url];
+
+ // Add url to load queue
+ if (state == undef) {
+ queue.push(url);
+ states[url] = QUEUED;
+ }
+
+ if (callback) {
+ // Store away callback for later execution
+ if (!scriptLoadedCallbacks[url])
+ scriptLoadedCallbacks[url] = [];
+
+ scriptLoadedCallbacks[url].push({
+ func : callback,
+ scope : scope || this
+ });
+ }
+ };
+
+ this.loadQueue = function(callback, scope) {
+ this.loadScripts(queue, callback, scope);
+ };
+
+ this.loadScripts = function(scripts, callback, scope) {
+ var loadScripts;
+
+ function execScriptLoadedCallbacks(url) {
+ // Execute URL callback functions
+ tinymce.each(scriptLoadedCallbacks[url], function(callback) {
+ callback.func.call(callback.scope);
+ });
+
+ scriptLoadedCallbacks[url] = undef;
+ };
+
+ queueLoadedCallbacks.push({
+ func : callback,
+ scope : scope || this
+ });
+
+ loadScripts = function() {
+ var loadingScripts = tinymce.grep(scripts);
+
+ // Current scripts has been handled
+ scripts.length = 0;
+
+ // Load scripts that needs to be loaded
+ tinymce.each(loadingScripts, function(url) {
+ // Script is already loaded then execute script callbacks directly
+ if (states[url] == LOADED) {
+ execScriptLoadedCallbacks(url);
+ return;
+ }
+
+ // Is script not loading then start loading it
+ if (states[url] != LOADING) {
+ states[url] = LOADING;
+ loading++;
+
+ loadScript(url, function() {
+ states[url] = LOADED;
+ loading--;
+
+ execScriptLoadedCallbacks(url);
+
+ // Load more scripts if they where added by the recently loaded script
+ loadScripts();
+ });
+ }
+ });
+
+ // No scripts are currently loading then execute all pending queue loaded callbacks
+ if (!loading) {
+ tinymce.each(queueLoadedCallbacks, function(callback) {
+ callback.func.call(callback.scope);
+ });
+
+ queueLoadedCallbacks.length = 0;
+ }
+ };
+
+ loadScripts();
+ };
+ };
+
+ // Global script loader
+ tinymce.ScriptLoader = new tinymce.dom.ScriptLoader();
+})(tinymce);
+
+(function(tinymce) {
+ tinymce.dom.RangeUtils = function(dom) {
+ var INVISIBLE_CHAR = '\uFEFF';
+
+ this.walk = function(rng, callback) {
+ var startContainer = rng.startContainer,
+ startOffset = rng.startOffset,
+ endContainer = rng.endContainer,
+ endOffset = rng.endOffset,
+ ancestor, startPoint,
+ endPoint, node, parent, siblings, nodes;
+
+ // Handle table cell selection the table plugin enables
+ // you to fake select table cells and perform formatting actions on them
+ nodes = dom.select('td.mceSelected,th.mceSelected');
+ if (nodes.length > 0) {
+ tinymce.each(nodes, function(node) {
+ callback([node]);
+ });
+
+ return;
+ }
+
+ function exclude(nodes) {
+ var node;
+
+ // First node is excluded
+ node = nodes[0];
+ if (node.nodeType === 3 && node === startContainer && startOffset >= node.nodeValue.length) {
+ nodes.splice(0, 1);
+ }
+
+ // Last node is excluded
+ node = nodes[nodes.length - 1];
+ if (endOffset === 0 && nodes.length > 0 && node === endContainer && node.nodeType === 3) {
+ nodes.splice(nodes.length - 1, 1);
+ }
+
+ return nodes;
+ };
+
+ function collectSiblings(node, name, end_node) {
+ var siblings = [];
+
+ for (; node && node != end_node; node = node[name])
+ siblings.push(node);
+
+ return siblings;
+ };
+
+ function findEndPoint(node, root) {
+ do {
+ if (node.parentNode == root)
+ return node;
+
+ node = node.parentNode;
+ } while(node);
+ };
+
+ function walkBoundary(start_node, end_node, next) {
+ var siblingName = next ? 'nextSibling' : 'previousSibling';
+
+ for (node = start_node, parent = node.parentNode; node && node != end_node; node = parent) {
+ parent = node.parentNode;
+ siblings = collectSiblings(node == start_node ? node : node[siblingName], siblingName);
+
+ if (siblings.length) {
+ if (!next)
+ siblings.reverse();
+
+ callback(exclude(siblings));
+ }
+ }
+ };
+
+ // If index based start position then resolve it
+ if (startContainer.nodeType == 1 && startContainer.hasChildNodes())
+ startContainer = startContainer.childNodes[startOffset];
+
+ // If index based end position then resolve it
+ if (endContainer.nodeType == 1 && endContainer.hasChildNodes())
+ endContainer = endContainer.childNodes[Math.min(endOffset - 1, endContainer.childNodes.length - 1)];
+
+ // Same container
+ if (startContainer == endContainer)
+ return callback(exclude([startContainer]));
+
+ // Find common ancestor and end points
+ ancestor = dom.findCommonAncestor(startContainer, endContainer);
+
+ // Process left side
+ for (node = startContainer; node; node = node.parentNode) {
+ if (node === endContainer)
+ return walkBoundary(startContainer, ancestor, true);
+
+ if (node === ancestor)
+ break;
+ }
+
+ // Process right side
+ for (node = endContainer; node; node = node.parentNode) {
+ if (node === startContainer)
+ return walkBoundary(endContainer, ancestor);
+
+ if (node === ancestor)
+ break;
+ }
+
+ // Find start/end point
+ startPoint = findEndPoint(startContainer, ancestor) || startContainer;
+ endPoint = findEndPoint(endContainer, ancestor) || endContainer;
+
+ // Walk left leaf
+ walkBoundary(startContainer, startPoint, true);
+
+ // Walk the middle from start to end point
+ siblings = collectSiblings(
+ startPoint == startContainer ? startPoint : startPoint.nextSibling,
+ 'nextSibling',
+ endPoint == endContainer ? endPoint.nextSibling : endPoint
+ );
+
+ if (siblings.length)
+ callback(exclude(siblings));
+
+ // Walk right leaf
+ walkBoundary(endContainer, endPoint);
+ };
+
+ this.split = function(rng) {
+ var startContainer = rng.startContainer,
+ startOffset = rng.startOffset,
+ endContainer = rng.endContainer,
+ endOffset = rng.endOffset;
+
+ function splitText(node, offset) {
+ return node.splitText(offset);
+ };
+
+ // Handle single text node
+ if (startContainer == endContainer && startContainer.nodeType == 3) {
+ if (startOffset > 0 && startOffset < startContainer.nodeValue.length) {
+ endContainer = splitText(startContainer, startOffset);
+ startContainer = endContainer.previousSibling;
+
+ if (endOffset > startOffset) {
+ endOffset = endOffset - startOffset;
+ startContainer = endContainer = splitText(endContainer, endOffset).previousSibling;
+ endOffset = endContainer.nodeValue.length;
+ startOffset = 0;
+ } else {
+ endOffset = 0;
+ }
+ }
+ } else {
+ // Split startContainer text node if needed
+ if (startContainer.nodeType == 3 && startOffset > 0 && startOffset < startContainer.nodeValue.length) {
+ startContainer = splitText(startContainer, startOffset);
+ startOffset = 0;
+ }
+
+ // Split endContainer text node if needed
+ if (endContainer.nodeType == 3 && endOffset > 0 && endOffset < endContainer.nodeValue.length) {
+ endContainer = splitText(endContainer, endOffset).previousSibling;
+ endOffset = endContainer.nodeValue.length;
+ }
+ }
+
+ return {
+ startContainer : startContainer,
+ startOffset : startOffset,
+ endContainer : endContainer,
+ endOffset : endOffset
+ };
+ };
+
+ };
+
+ tinymce.dom.RangeUtils.compareRanges = function(rng1, rng2) {
+ if (rng1 && rng2) {
+ // Compare native IE ranges
+ if (rng1.item || rng1.duplicate) {
+ // Both are control ranges and the selected element matches
+ if (rng1.item && rng2.item && rng1.item(0) === rng2.item(0))
+ return true;
+
+ // Both are text ranges and the range matches
+ if (rng1.isEqual && rng2.isEqual && rng2.isEqual(rng1))
+ return true;
+ } else {
+ // Compare w3c ranges
+ return rng1.startContainer == rng2.startContainer && rng1.startOffset == rng2.startOffset;
+ }
+ }
+
+ return false;
+ };
+})(tinymce);
+
+(function(tinymce) {
+ var Event = tinymce.dom.Event, each = tinymce.each;
+
+ tinymce.create('tinymce.ui.KeyboardNavigation', {
+ KeyboardNavigation: function(settings, dom) {
+ var t = this, root = settings.root, items = settings.items,
+ enableUpDown = settings.enableUpDown, enableLeftRight = settings.enableLeftRight || !settings.enableUpDown,
+ excludeFromTabOrder = settings.excludeFromTabOrder,
+ itemFocussed, itemBlurred, rootKeydown, rootFocussed, focussedId;
+
+ dom = dom || tinymce.DOM;
+
+ itemFocussed = function(evt) {
+ focussedId = evt.target.id;
+ };
+
+ itemBlurred = function(evt) {
+ dom.setAttrib(evt.target.id, 'tabindex', '-1');
+ };
+
+ rootFocussed = function(evt) {
+ var item = dom.get(focussedId);
+ dom.setAttrib(item, 'tabindex', '0');
+ item.focus();
+ };
+
+ t.focus = function() {
+ dom.get(focussedId).focus();
+ };
+
+ t.destroy = function() {
+ each(items, function(item) {
+ var elm = dom.get(item.id);
+
+ dom.unbind(elm, 'focus', itemFocussed);
+ dom.unbind(elm, 'blur', itemBlurred);
+ });
+
+ var rootElm = dom.get(root);
+ dom.unbind(rootElm, 'focus', rootFocussed);
+ dom.unbind(rootElm, 'keydown', rootKeydown);
+
+ items = dom = root = t.focus = itemFocussed = itemBlurred = rootKeydown = rootFocussed = null;
+ t.destroy = function() {};
+ };
+
+ t.moveFocus = function(dir, evt) {
+ var idx = -1, controls = t.controls, newFocus;
+
+ if (!focussedId)
+ return;
+
+ each(items, function(item, index) {
+ if (item.id === focussedId) {
+ idx = index;
+ return false;
+ }
+ });
+
+ idx += dir;
+ if (idx < 0) {
+ idx = items.length - 1;
+ } else if (idx >= items.length) {
+ idx = 0;
+ }
+
+ newFocus = items[idx];
+ dom.setAttrib(focussedId, 'tabindex', '-1');
+ dom.setAttrib(newFocus.id, 'tabindex', '0');
+ dom.get(newFocus.id).focus();
+
+ if (settings.actOnFocus) {
+ settings.onAction(newFocus.id);
+ }
+
+ if (evt)
+ Event.cancel(evt);
+ };
+
+ rootKeydown = function(evt) {
+ var DOM_VK_LEFT = 37, DOM_VK_RIGHT = 39, DOM_VK_UP = 38, DOM_VK_DOWN = 40, DOM_VK_ESCAPE = 27, DOM_VK_ENTER = 14, DOM_VK_RETURN = 13, DOM_VK_SPACE = 32;
+
+ switch (evt.keyCode) {
+ case DOM_VK_LEFT:
+ if (enableLeftRight) t.moveFocus(-1);
+ break;
+
+ case DOM_VK_RIGHT:
+ if (enableLeftRight) t.moveFocus(1);
+ break;
+
+ case DOM_VK_UP:
+ if (enableUpDown) t.moveFocus(-1);
+ break;
+
+ case DOM_VK_DOWN:
+ if (enableUpDown) t.moveFocus(1);
+ break;
+
+ case DOM_VK_ESCAPE:
+ if (settings.onCancel) {
+ settings.onCancel();
+ Event.cancel(evt);
+ }
+ break;
+
+ case DOM_VK_ENTER:
+ case DOM_VK_RETURN:
+ case DOM_VK_SPACE:
+ if (settings.onAction) {
+ settings.onAction(focussedId);
+ Event.cancel(evt);
+ }
+ break;
+ }
+ };
+
+ // Set up state and listeners for each item.
+ each(items, function(item, idx) {
+ var tabindex, elm;
+
+ if (!item.id) {
+ item.id = dom.uniqueId('_mce_item_');
+ }
+
+ elm = dom.get(item.id);
+
+ if (excludeFromTabOrder) {
+ dom.bind(elm, 'blur', itemBlurred);
+ tabindex = '-1';
+ } else {
+ tabindex = (idx === 0 ? '0' : '-1');
+ }
+
+ elm.setAttribute('tabindex', tabindex);
+ dom.bind(elm, 'focus', itemFocussed);
+ });
+
+ // Setup initial state for root element.
+ if (items[0]){
+ focussedId = items[0].id;
+ }
+
+ dom.setAttrib(root, 'tabindex', '-1');
+
+ // Setup listeners for root element.
+ var rootElm = dom.get(root);
+ dom.bind(rootElm, 'focus', rootFocussed);
+ dom.bind(rootElm, 'keydown', rootKeydown);
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ // Shorten class names
+ var DOM = tinymce.DOM, is = tinymce.is;
+
+ tinymce.create('tinymce.ui.Control', {
+ Control : function(id, s, editor) {
+ this.id = id;
+ this.settings = s = s || {};
+ this.rendered = false;
+ this.onRender = new tinymce.util.Dispatcher(this);
+ this.classPrefix = '';
+ this.scope = s.scope || this;
+ this.disabled = 0;
+ this.active = 0;
+ this.editor = editor;
+ },
+
+ setAriaProperty : function(property, value) {
+ var element = DOM.get(this.id + '_aria') || DOM.get(this.id);
+ if (element) {
+ DOM.setAttrib(element, 'aria-' + property, !!value);
+ }
+ },
+
+ focus : function() {
+ DOM.get(this.id).focus();
+ },
+
+ setDisabled : function(s) {
+ if (s != this.disabled) {
+ this.setAriaProperty('disabled', s);
+
+ this.setState('Disabled', s);
+ this.setState('Enabled', !s);
+ this.disabled = s;
+ }
+ },
+
+ isDisabled : function() {
+ return this.disabled;
+ },
+
+ setActive : function(s) {
+ if (s != this.active) {
+ this.setState('Active', s);
+ this.active = s;
+ this.setAriaProperty('pressed', s);
+ }
+ },
+
+ isActive : function() {
+ return this.active;
+ },
+
+ setState : function(c, s) {
+ var n = DOM.get(this.id);
+
+ c = this.classPrefix + c;
+
+ if (s)
+ DOM.addClass(n, c);
+ else
+ DOM.removeClass(n, c);
+ },
+
+ isRendered : function() {
+ return this.rendered;
+ },
+
+ renderHTML : function() {
+ },
+
+ renderTo : function(n) {
+ DOM.setHTML(n, this.renderHTML());
+ },
+
+ postRender : function() {
+ var t = this, b;
+
+ // Set pending states
+ if (is(t.disabled)) {
+ b = t.disabled;
+ t.disabled = -1;
+ t.setDisabled(b);
+ }
+
+ if (is(t.active)) {
+ b = t.active;
+ t.active = -1;
+ t.setActive(b);
+ }
+ },
+
+ remove : function() {
+ DOM.remove(this.id);
+ this.destroy();
+ },
+
+ destroy : function() {
+ tinymce.dom.Event.clear(this.id);
+ }
+ });
+})(tinymce);
+tinymce.create('tinymce.ui.Container:tinymce.ui.Control', {
+ Container : function(id, s, editor) {
+ this.parent(id, s, editor);
+
+ this.controls = [];
+
+ this.lookup = {};
+ },
+
+ add : function(c) {
+ this.lookup[c.id] = c;
+ this.controls.push(c);
+
+ return c;
+ },
+
+ get : function(n) {
+ return this.lookup[n];
+ }
+});
+
+
+tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
+ Separator : function(id, s) {
+ this.parent(id, s);
+ this.classPrefix = 'mceSeparator';
+ this.setDisabled(true);
+ },
+
+ renderHTML : function() {
+ return tinymce.DOM.createHTML('span', {'class' : this.classPrefix, role : 'separator', 'aria-orientation' : 'vertical', tabindex : '-1'});
+ }
+});
+
+(function(tinymce) {
+ var is = tinymce.is, DOM = tinymce.DOM, each = tinymce.each, walk = tinymce.walk;
+
+ tinymce.create('tinymce.ui.MenuItem:tinymce.ui.Control', {
+ MenuItem : function(id, s) {
+ this.parent(id, s);
+ this.classPrefix = 'mceMenuItem';
+ },
+
+ setSelected : function(s) {
+ this.setState('Selected', s);
+ this.setAriaProperty('checked', !!s);
+ this.selected = s;
+ },
+
+ isSelected : function() {
+ return this.selected;
+ },
+
+ postRender : function() {
+ var t = this;
+
+ t.parent();
+
+ // Set pending state
+ if (is(t.selected))
+ t.setSelected(t.selected);
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ var is = tinymce.is, DOM = tinymce.DOM, each = tinymce.each, walk = tinymce.walk;
+
+ tinymce.create('tinymce.ui.Menu:tinymce.ui.MenuItem', {
+ Menu : function(id, s) {
+ var t = this;
+
+ t.parent(id, s);
+ t.items = {};
+ t.collapsed = false;
+ t.menuCount = 0;
+ t.onAddItem = new tinymce.util.Dispatcher(this);
+ },
+
+ expand : function(d) {
+ var t = this;
+
+ if (d) {
+ walk(t, function(o) {
+ if (o.expand)
+ o.expand();
+ }, 'items', t);
+ }
+
+ t.collapsed = false;
+ },
+
+ collapse : function(d) {
+ var t = this;
+
+ if (d) {
+ walk(t, function(o) {
+ if (o.collapse)
+ o.collapse();
+ }, 'items', t);
+ }
+
+ t.collapsed = true;
+ },
+
+ isCollapsed : function() {
+ return this.collapsed;
+ },
+
+ add : function(o) {
+ if (!o.settings)
+ o = new tinymce.ui.MenuItem(o.id || DOM.uniqueId(), o);
+
+ this.onAddItem.dispatch(this, o);
+
+ return this.items[o.id] = o;
+ },
+
+ addSeparator : function() {
+ return this.add({separator : true});
+ },
+
+ addMenu : function(o) {
+ if (!o.collapse)
+ o = this.createMenu(o);
+
+ this.menuCount++;
+
+ return this.add(o);
+ },
+
+ hasMenus : function() {
+ return this.menuCount !== 0;
+ },
+
+ remove : function(o) {
+ delete this.items[o.id];
+ },
+
+ removeAll : function() {
+ var t = this;
+
+ walk(t, function(o) {
+ if (o.removeAll)
+ o.removeAll();
+ else
+ o.remove();
+
+ o.destroy();
+ }, 'items', t);
+
+ t.items = {};
+ },
+
+ createMenu : function(o) {
+ var m = new tinymce.ui.Menu(o.id || DOM.uniqueId(), o);
+
+ m.onAddItem.add(this.onAddItem.dispatch, this.onAddItem);
+
+ return m;
+ }
+ });
+})(tinymce);
+(function(tinymce) {
+ var is = tinymce.is, DOM = tinymce.DOM, each = tinymce.each, Event = tinymce.dom.Event, Element = tinymce.dom.Element;
+
+ tinymce.create('tinymce.ui.DropMenu:tinymce.ui.Menu', {
+ DropMenu : function(id, s) {
+ s = s || {};
+ s.container = s.container || DOM.doc.body;
+ s.offset_x = s.offset_x || 0;
+ s.offset_y = s.offset_y || 0;
+ s.vp_offset_x = s.vp_offset_x || 0;
+ s.vp_offset_y = s.vp_offset_y || 0;
+
+ if (is(s.icons) && !s.icons)
+ s['class'] += ' mceNoIcons';
+
+ this.parent(id, s);
+ this.onShowMenu = new tinymce.util.Dispatcher(this);
+ this.onHideMenu = new tinymce.util.Dispatcher(this);
+ this.classPrefix = 'mceMenu';
+ },
+
+ createMenu : function(s) {
+ var t = this, cs = t.settings, m;
+
+ s.container = s.container || cs.container;
+ s.parent = t;
+ s.constrain = s.constrain || cs.constrain;
+ s['class'] = s['class'] || cs['class'];
+ s.vp_offset_x = s.vp_offset_x || cs.vp_offset_x;
+ s.vp_offset_y = s.vp_offset_y || cs.vp_offset_y;
+ s.keyboard_focus = cs.keyboard_focus;
+ m = new tinymce.ui.DropMenu(s.id || DOM.uniqueId(), s);
+
+ m.onAddItem.add(t.onAddItem.dispatch, t.onAddItem);
+
+ return m;
+ },
+
+ focus : function() {
+ var t = this;
+ if (t.keyboardNav) {
+ t.keyboardNav.focus();
+ }
+ },
+
+ update : function() {
+ var t = this, s = t.settings, tb = DOM.get('menu_' + t.id + '_tbl'), co = DOM.get('menu_' + t.id + '_co'), tw, th;
+
+ tw = s.max_width ? Math.min(tb.offsetWidth, s.max_width) : tb.offsetWidth;
+ th = s.max_height ? Math.min(tb.offsetHeight, s.max_height) : tb.offsetHeight;
+
+ if (!DOM.boxModel)
+ t.element.setStyles({width : tw + 2, height : th + 2});
+ else
+ t.element.setStyles({width : tw, height : th});
+
+ if (s.max_width)
+ DOM.setStyle(co, 'width', tw);
+
+ if (s.max_height) {
+ DOM.setStyle(co, 'height', th);
+
+ if (tb.clientHeight < s.max_height)
+ DOM.setStyle(co, 'overflow', 'hidden');
+ }
+ },
+
+ showMenu : function(x, y, px) {
+ var t = this, s = t.settings, co, vp = DOM.getViewPort(), w, h, mx, my, ot = 2, dm, tb, cp = t.classPrefix;
+
+ t.collapse(1);
+
+ if (t.isMenuVisible)
+ return;
+
+ if (!t.rendered) {
+ co = DOM.add(t.settings.container, t.renderNode());
+
+ each(t.items, function(o) {
+ o.postRender();
+ });
+
+ t.element = new Element('menu_' + t.id, {blocker : 1, container : s.container});
+ } else
+ co = DOM.get('menu_' + t.id);
+
+ // Move layer out of sight unless it's Opera since it scrolls to top of page due to an bug
+ if (!tinymce.isOpera)
+ DOM.setStyles(co, {left : -0xFFFF , top : -0xFFFF});
+
+ DOM.show(co);
+ t.update();
+
+ x += s.offset_x || 0;
+ y += s.offset_y || 0;
+ vp.w -= 4;
+ vp.h -= 4;
+
+ // Move inside viewport if not submenu
+ if (s.constrain) {
+ w = co.clientWidth - ot;
+ h = co.clientHeight - ot;
+ mx = vp.x + vp.w;
+ my = vp.y + vp.h;
+
+ if ((x + s.vp_offset_x + w) > mx)
+ x = px ? px - w : Math.max(0, (mx - s.vp_offset_x) - w);
+
+ if ((y + s.vp_offset_y + h) > my)
+ y = Math.max(0, (my - s.vp_offset_y) - h);
+ }
+
+ DOM.setStyles(co, {left : x , top : y});
+ t.element.update();
+
+ t.isMenuVisible = 1;
+ t.mouseClickFunc = Event.add(co, 'click', function(e) {
+ var m;
+
+ e = e.target;
+
+ if (e && (e = DOM.getParent(e, 'tr')) && !DOM.hasClass(e, cp + 'ItemSub')) {
+ m = t.items[e.id];
+
+ if (m.isDisabled())
+ return;
+
+ dm = t;
+
+ while (dm) {
+ if (dm.hideMenu)
+ dm.hideMenu();
+
+ dm = dm.settings.parent;
+ }
+
+ if (m.settings.onclick)
+ m.settings.onclick(e);
+
+ return false; // Cancel to fix onbeforeunload problem
+ }
+ });
+
+ if (t.hasMenus()) {
+ t.mouseOverFunc = Event.add(co, 'mouseover', function(e) {
+ var m, r, mi;
+
+ e = e.target;
+ if (e && (e = DOM.getParent(e, 'tr'))) {
+ m = t.items[e.id];
+
+ if (t.lastMenu)
+ t.lastMenu.collapse(1);
+
+ if (m.isDisabled())
+ return;
+
+ if (e && DOM.hasClass(e, cp + 'ItemSub')) {
+ //p = DOM.getPos(s.container);
+ r = DOM.getRect(e);
+ m.showMenu((r.x + r.w - ot), r.y - ot, r.x);
+ t.lastMenu = m;
+ DOM.addClass(DOM.get(m.id).firstChild, cp + 'ItemActive');
+ }
+ }
+ });
+ }
+
+ Event.add(co, 'keydown', t._keyHandler, t);
+
+ t.onShowMenu.dispatch(t);
+
+ if (s.keyboard_focus) {
+ t._setupKeyboardNav();
+ }
+ },
+
+ hideMenu : function(c) {
+ var t = this, co = DOM.get('menu_' + t.id), e;
+
+ if (!t.isMenuVisible)
+ return;
+
+ if (t.keyboardNav) t.keyboardNav.destroy();
+ Event.remove(co, 'mouseover', t.mouseOverFunc);
+ Event.remove(co, 'click', t.mouseClickFunc);
+ Event.remove(co, 'keydown', t._keyHandler);
+ DOM.hide(co);
+ t.isMenuVisible = 0;
+
+ if (!c)
+ t.collapse(1);
+
+ if (t.element)
+ t.element.hide();
+
+ if (e = DOM.get(t.id))
+ DOM.removeClass(e.firstChild, t.classPrefix + 'ItemActive');
+
+ t.onHideMenu.dispatch(t);
+ },
+
+ add : function(o) {
+ var t = this, co;
+
+ o = t.parent(o);
+
+ if (t.isRendered && (co = DOM.get('menu_' + t.id)))
+ t._add(DOM.select('tbody', co)[0], o);
+
+ return o;
+ },
+
+ collapse : function(d) {
+ this.parent(d);
+ this.hideMenu(1);
+ },
+
+ remove : function(o) {
+ DOM.remove(o.id);
+ this.destroy();
+
+ return this.parent(o);
+ },
+
+ destroy : function() {
+ var t = this, co = DOM.get('menu_' + t.id);
+
+ if (t.keyboardNav) t.keyboardNav.destroy();
+ Event.remove(co, 'mouseover', t.mouseOverFunc);
+ Event.remove(DOM.select('a', co), 'focus', t.mouseOverFunc);
+ Event.remove(co, 'click', t.mouseClickFunc);
+ Event.remove(co, 'keydown', t._keyHandler);
+
+ if (t.element)
+ t.element.remove();
+
+ DOM.remove(co);
+ },
+
+ renderNode : function() {
+ var t = this, s = t.settings, n, tb, co, w;
+
+ w = DOM.create('div', {role: 'listbox', id : 'menu_' + t.id, 'class' : s['class'], 'style' : 'position:absolute;left:0;top:0;z-index:200000;outline:0'});
+ if (t.settings.parent) {
+ DOM.setAttrib(w, 'aria-parent', 'menu_' + t.settings.parent.id);
+ }
+ co = DOM.add(w, 'div', {role: 'presentation', id : 'menu_' + t.id + '_co', 'class' : t.classPrefix + (s['class'] ? ' ' + s['class'] : '')});
+ t.element = new Element('menu_' + t.id, {blocker : 1, container : s.container});
+
+ if (s.menu_line)
+ DOM.add(co, 'span', {'class' : t.classPrefix + 'Line'});
+
+// n = DOM.add(co, 'div', {id : 'menu_' + t.id + '_co', 'class' : 'mceMenuContainer'});
+ n = DOM.add(co, 'table', {role: 'presentation', id : 'menu_' + t.id + '_tbl', border : 0, cellPadding : 0, cellSpacing : 0});
+ tb = DOM.add(n, 'tbody');
+
+ each(t.items, function(o) {
+ t._add(tb, o);
+ });
+
+ t.rendered = true;
+
+ return w;
+ },
+
+ // Internal functions
+ _setupKeyboardNav : function(){
+ var contextMenu, menuItems, t=this;
+ contextMenu = DOM.get('menu_' + t.id);
+ menuItems = DOM.select('a[role=option]', 'menu_' + t.id);
+ menuItems.splice(0,0,contextMenu);
+ t.keyboardNav = new tinymce.ui.KeyboardNavigation({
+ root: 'menu_' + t.id,
+ items: menuItems,
+ onCancel: function() {
+ t.hideMenu();
+ },
+ enableUpDown: true
+ });
+ contextMenu.focus();
+ },
+
+ _keyHandler : function(evt) {
+ var t = this, e;
+ switch (evt.keyCode) {
+ case 37: // Left
+ if (t.settings.parent) {
+ t.hideMenu();
+ t.settings.parent.focus();
+ Event.cancel(evt);
+ }
+ break;
+ case 39: // Right
+ if (t.mouseOverFunc)
+ t.mouseOverFunc(evt);
+ break;
+ }
+ },
+
+ _add : function(tb, o) {
+ var n, s = o.settings, a, ro, it, cp = this.classPrefix, ic;
+
+ if (s.separator) {
+ ro = DOM.add(tb, 'tr', {id : o.id, 'class' : cp + 'ItemSeparator'});
+ DOM.add(ro, 'td', {'class' : cp + 'ItemSeparator'});
+
+ if (n = ro.previousSibling)
+ DOM.addClass(n, 'mceLast');
+
+ return;
+ }
+
+ n = ro = DOM.add(tb, 'tr', {id : o.id, 'class' : cp + 'Item ' + cp + 'ItemEnabled'});
+ n = it = DOM.add(n, s.titleItem ? 'th' : 'td');
+ n = a = DOM.add(n, 'a', {id: o.id + '_aria', role: s.titleItem ? 'presentation' : 'option', href : 'javascript:;', onclick : "return false;", onmousedown : 'return false;'});
+
+ if (s.parent) {
+ DOM.setAttrib(a, 'aria-haspopup', 'true');
+ DOM.setAttrib(a, 'aria-owns', 'menu_' + o.id);
+ }
+
+ DOM.addClass(it, s['class']);
+// n = DOM.add(n, 'span', {'class' : 'item'});
+
+ ic = DOM.add(n, 'span', {'class' : 'mceIcon' + (s.icon ? ' mce_' + s.icon : '')});
+
+ if (s.icon_src)
+ DOM.add(ic, 'img', {src : s.icon_src});
+
+ n = DOM.add(n, s.element || 'span', {'class' : 'mceText', title : o.settings.title}, o.settings.title);
+
+ if (o.settings.style) {
+ if (typeof o.settings.style == "function")
+ o.settings.style = o.settings.style();
+
+ DOM.setAttrib(n, 'style', o.settings.style);
+ }
+
+ if (tb.childNodes.length == 1)
+ DOM.addClass(ro, 'mceFirst');
+
+ if ((n = ro.previousSibling) && DOM.hasClass(n, cp + 'ItemSeparator'))
+ DOM.addClass(ro, 'mceFirst');
+
+ if (o.collapse)
+ DOM.addClass(ro, cp + 'ItemSub');
+
+ if (n = ro.previousSibling)
+ DOM.removeClass(n, 'mceLast');
+
+ DOM.addClass(ro, 'mceLast');
+ }
+ });
+})(tinymce);
+(function(tinymce) {
+ var DOM = tinymce.DOM;
+
+ tinymce.create('tinymce.ui.Button:tinymce.ui.Control', {
+ Button : function(id, s, ed) {
+ this.parent(id, s, ed);
+ this.classPrefix = 'mceButton';
+ },
+
+ renderHTML : function() {
+ var cp = this.classPrefix, s = this.settings, h, l;
+
+ l = DOM.encode(s.label || '');
+ h = '<a role="button" id="' + this.id + '" href="javascript:;" class="' + cp + ' ' + cp + 'Enabled ' + s['class'] + (l ? ' ' + cp + 'Labeled' : '') +'" onmousedown="return false;" onclick="return false;" aria-labelledby="' + this.id + '_voice" title="' + DOM.encode(s.title) + '">';
+ if (s.image && !(this.editor &&this.editor.forcedHighContrastMode) )
+ h += '<span class="mceIcon ' + s['class'] + '"><img class="mceIcon" src="' + s.image + '" alt="' + DOM.encode(s.title) + '" /></span>' + (l ? '<span class="' + cp + 'Label">' + l + '</span>' : '');
+ else
+ h += '<span class="mceIcon ' + s['class'] + '"></span>' + (l ? '<span class="' + cp + 'Label">' + l + '</span>' : '');
+
+ h += '<span class="mceVoiceLabel mceIconOnly" style="display: none;" id="' + this.id + '_voice">' + s.title + '</span>';
+ h += '</a>';
+ return h;
+ },
+
+ postRender : function() {
+ var t = this, s = t.settings, imgBookmark;
+
+ // In IE a large image that occupies the entire editor area will be deselected when a button is clicked, so
+ // need to keep the selection in case the selection is lost
+ if (tinymce.isIE && t.editor) {
+ tinymce.dom.Event.add(t.id, 'mousedown', function(e) {
+ var nodeName = t.editor.selection.getNode().nodeName;
+ imgBookmark = nodeName === 'IMG' ? t.editor.selection.getBookmark() : null;
+ });
+ }
+ tinymce.dom.Event.add(t.id, 'click', function(e) {
+ if (!t.isDisabled()) {
+ // restore the selection in case the selection is lost in IE
+ if (tinymce.isIE && t.editor && imgBookmark !== null) {
+ t.editor.selection.moveToBookmark(imgBookmark);
+ }
+ return s.onclick.call(s.scope, e);
+ }
+ });
+ tinymce.dom.Event.add(t.id, 'keyup', function(e) {
+ if (!t.isDisabled() && e.keyCode==tinymce.VK.SPACEBAR)
+ return s.onclick.call(s.scope, e);
+ });
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher, undef;
+
+ tinymce.create('tinymce.ui.ListBox:tinymce.ui.Control', {
+ ListBox : function(id, s, ed) {
+ var t = this;
+
+ t.parent(id, s, ed);
+
+ t.items = [];
+
+ t.onChange = new Dispatcher(t);
+
+ t.onPostRender = new Dispatcher(t);
+
+ t.onAdd = new Dispatcher(t);
+
+ t.onRenderMenu = new tinymce.util.Dispatcher(this);
+
+ t.classPrefix = 'mceListBox';
+ t.marked = {};
+ },
+
+ select : function(va) {
+ var t = this, fv, f;
+
+ t.marked = {};
+
+ if (va == undef)
+ return t.selectByIndex(-1);
+
+ // Is string or number make function selector
+ if (va && typeof(va)=="function")
+ f = va;
+ else {
+ f = function(v) {
+ return v == va;
+ };
+ }
+
+ // Do we need to do something?
+ if (va != t.selectedValue) {
+ // Find item
+ each(t.items, function(o, i) {
+ if (f(o.value)) {
+ fv = 1;
+ t.selectByIndex(i);
+ return false;
+ }
+ });
+
+ if (!fv)
+ t.selectByIndex(-1);
+ }
+ },
+
+ selectByIndex : function(idx) {
+ var t = this, e, o, label;
+
+ t.marked = {};
+
+ if (idx != t.selectedIndex) {
+ e = DOM.get(t.id + '_text');
+ label = DOM.get(t.id + '_voiceDesc');
+ o = t.items[idx];
+
+ if (o) {
+ t.selectedValue = o.value;
+ t.selectedIndex = idx;
+ DOM.setHTML(e, DOM.encode(o.title));
+ DOM.setHTML(label, t.settings.title + " - " + o.title);
+ DOM.removeClass(e, 'mceTitle');
+ DOM.setAttrib(t.id, 'aria-valuenow', o.title);
+ } else {
+ DOM.setHTML(e, DOM.encode(t.settings.title));
+ DOM.setHTML(label, DOM.encode(t.settings.title));
+ DOM.addClass(e, 'mceTitle');
+ t.selectedValue = t.selectedIndex = null;
+ DOM.setAttrib(t.id, 'aria-valuenow', t.settings.title);
+ }
+ e = 0;
+ }
+ },
+
+ mark : function(value) {
+ this.marked[value] = true;
+ },
+
+ add : function(n, v, o) {
+ var t = this;
+
+ o = o || {};
+ o = tinymce.extend(o, {
+ title : n,
+ value : v
+ });
+
+ t.items.push(o);
+ t.onAdd.dispatch(t, o);
+ },
+
+ getLength : function() {
+ return this.items.length;
+ },
+
+ renderHTML : function() {
+ var h = '', t = this, s = t.settings, cp = t.classPrefix;
+
+ h = '<span role="listbox" aria-haspopup="true" aria-labelledby="' + t.id +'_voiceDesc" aria-describedby="' + t.id + '_voiceDesc"><table role="presentation" tabindex="0" id="' + t.id + '" cellpadding="0" cellspacing="0" class="' + cp + ' ' + cp + 'Enabled' + (s['class'] ? (' ' + s['class']) : '') + '"><tbody><tr>';
+ h += '<td>' + DOM.createHTML('span', {id: t.id + '_voiceDesc', 'class': 'voiceLabel', style:'display:none;'}, t.settings.title);
+ h += DOM.createHTML('a', {id : t.id + '_text', tabindex : -1, href : 'javascript:;', 'class' : 'mceText', onclick : "return false;", onmousedown : 'return false;'}, DOM.encode(t.settings.title)) + '</td>';
+ h += '<td>' + DOM.createHTML('a', {id : t.id + '_open', tabindex : -1, href : 'javascript:;', 'class' : 'mceOpen', onclick : "return false;", onmousedown : 'return false;'}, '<span><span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span></span>') + '</td>';
+ h += '</tr></tbody></table></span>';
+
+ return h;
+ },
+
+ showMenu : function() {
+ var t = this, p2, e = DOM.get(this.id), m;
+
+ if (t.isDisabled() || t.items.length === 0)
+ return;
+
+ if (t.menu && t.menu.isMenuVisible)
+ return t.hideMenu();
+
+ if (!t.isMenuRendered) {
+ t.renderMenu();
+ t.isMenuRendered = true;
+ }
+
+ p2 = DOM.getPos(e);
+
+ m = t.menu;
+ m.settings.offset_x = p2.x;
+ m.settings.offset_y = p2.y;
+ m.settings.keyboard_focus = !tinymce.isOpera; // Opera is buggy when it comes to auto focus
+
+ // Select in menu
+ each(t.items, function(o) {
+ if (m.items[o.id]) {
+ m.items[o.id].setSelected(0);
+ }
+ });
+
+ each(t.items, function(o) {
+ if (m.items[o.id] && t.marked[o.value]) {
+ m.items[o.id].setSelected(1);
+ }
+
+ if (o.value === t.selectedValue) {
+ m.items[o.id].setSelected(1);
+ }
+ });
+
+ m.showMenu(0, e.clientHeight);
+
+ Event.add(DOM.doc, 'mousedown', t.hideMenu, t);
+ DOM.addClass(t.id, t.classPrefix + 'Selected');
+
+ //DOM.get(t.id + '_text').focus();
+ },
+
+ hideMenu : function(e) {
+ var t = this;
+
+ if (t.menu && t.menu.isMenuVisible) {
+ DOM.removeClass(t.id, t.classPrefix + 'Selected');
+
+ // Prevent double toogles by canceling the mouse click event to the button
+ if (e && e.type == "mousedown" && (e.target.id == t.id + '_text' || e.target.id == t.id + '_open'))
+ return;
+
+ if (!e || !DOM.getParent(e.target, '.mceMenu')) {
+ DOM.removeClass(t.id, t.classPrefix + 'Selected');
+ Event.remove(DOM.doc, 'mousedown', t.hideMenu, t);
+ t.menu.hideMenu();
+ }
+ }
+ },
+
+ renderMenu : function() {
+ var t = this, m;
+
+ m = t.settings.control_manager.createDropMenu(t.id + '_menu', {
+ menu_line : 1,
+ 'class' : t.classPrefix + 'Menu mceNoIcons',
+ max_width : 250,
+ max_height : 150
+ });
+
+ m.onHideMenu.add(function() {
+ t.hideMenu();
+ t.focus();
+ });
+
+ m.add({
+ title : t.settings.title,
+ 'class' : 'mceMenuItemTitle',
+ onclick : function() {
+ if (t.settings.onselect('') !== false)
+ t.select(''); // Must be runned after
+ }
+ });
+
+ each(t.items, function(o) {
+ // No value then treat it as a title
+ if (o.value === undef) {
+ m.add({
+ title : o.title,
+ role : "option",
+ 'class' : 'mceMenuItemTitle',
+ onclick : function() {
+ if (t.settings.onselect('') !== false)
+ t.select(''); // Must be runned after
+ }
+ });
+ } else {
+ o.id = DOM.uniqueId();
+ o.role= "option";
+ o.onclick = function() {
+ if (t.settings.onselect(o.value) !== false)
+ t.select(o.value); // Must be runned after
+ };
+
+ m.add(o);
+ }
+ });
+
+ t.onRenderMenu.dispatch(t, m);
+ t.menu = m;
+ },
+
+ postRender : function() {
+ var t = this, cp = t.classPrefix;
+
+ Event.add(t.id, 'click', t.showMenu, t);
+ Event.add(t.id, 'keydown', function(evt) {
+ if (evt.keyCode == 32) { // Space
+ t.showMenu(evt);
+ Event.cancel(evt);
+ }
+ });
+ Event.add(t.id, 'focus', function() {
+ if (!t._focused) {
+ t.keyDownHandler = Event.add(t.id, 'keydown', function(e) {
+ if (e.keyCode == 40) {
+ t.showMenu();
+ Event.cancel(e);
+ }
+ });
+ t.keyPressHandler = Event.add(t.id, 'keypress', function(e) {
+ var v;
+ if (e.keyCode == 13) {
+ // Fake select on enter
+ v = t.selectedValue;
+ t.selectedValue = null; // Needs to be null to fake change
+ Event.cancel(e);
+ t.settings.onselect(v);
+ }
+ });
+ }
+
+ t._focused = 1;
+ });
+ Event.add(t.id, 'blur', function() {
+ Event.remove(t.id, 'keydown', t.keyDownHandler);
+ Event.remove(t.id, 'keypress', t.keyPressHandler);
+ t._focused = 0;
+ });
+
+ // Old IE doesn't have hover on all elements
+ if (tinymce.isIE6 || !DOM.boxModel) {
+ Event.add(t.id, 'mouseover', function() {
+ if (!DOM.hasClass(t.id, cp + 'Disabled'))
+ DOM.addClass(t.id, cp + 'Hover');
+ });
+
+ Event.add(t.id, 'mouseout', function() {
+ if (!DOM.hasClass(t.id, cp + 'Disabled'))
+ DOM.removeClass(t.id, cp + 'Hover');
+ });
+ }
+
+ t.onPostRender.dispatch(t, DOM.get(t.id));
+ },
+
+ destroy : function() {
+ this.parent();
+
+ Event.clear(this.id + '_text');
+ Event.clear(this.id + '_open');
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher, undef;
+
+ tinymce.create('tinymce.ui.NativeListBox:tinymce.ui.ListBox', {
+ NativeListBox : function(id, s) {
+ this.parent(id, s);
+ this.classPrefix = 'mceNativeListBox';
+ },
+
+ setDisabled : function(s) {
+ DOM.get(this.id).disabled = s;
+ this.setAriaProperty('disabled', s);
+ },
+
+ isDisabled : function() {
+ return DOM.get(this.id).disabled;
+ },
+
+ select : function(va) {
+ var t = this, fv, f;
+
+ if (va == undef)
+ return t.selectByIndex(-1);
+
+ // Is string or number make function selector
+ if (va && typeof(va)=="function")
+ f = va;
+ else {
+ f = function(v) {
+ return v == va;
+ };
+ }
+
+ // Do we need to do something?
+ if (va != t.selectedValue) {
+ // Find item
+ each(t.items, function(o, i) {
+ if (f(o.value)) {
+ fv = 1;
+ t.selectByIndex(i);
+ return false;
+ }
+ });
+
+ if (!fv)
+ t.selectByIndex(-1);
+ }
+ },
+
+ selectByIndex : function(idx) {
+ DOM.get(this.id).selectedIndex = idx + 1;
+ this.selectedValue = this.items[idx] ? this.items[idx].value : null;
+ },
+
+ add : function(n, v, a) {
+ var o, t = this;
+
+ a = a || {};
+ a.value = v;
+
+ if (t.isRendered())
+ DOM.add(DOM.get(this.id), 'option', a, n);
+
+ o = {
+ title : n,
+ value : v,
+ attribs : a
+ };
+
+ t.items.push(o);
+ t.onAdd.dispatch(t, o);
+ },
+
+ getLength : function() {
+ return this.items.length;
+ },
+
+ renderHTML : function() {
+ var h, t = this;
+
+ h = DOM.createHTML('option', {value : ''}, '-- ' + t.settings.title + ' --');
+
+ each(t.items, function(it) {
+ h += DOM.createHTML('option', {value : it.value}, it.title);
+ });
+
+ h = DOM.createHTML('select', {id : t.id, 'class' : 'mceNativeListBox', 'aria-labelledby': t.id + '_aria'}, h);
+ h += DOM.createHTML('span', {id : t.id + '_aria', 'style': 'display: none'}, t.settings.title);
+ return h;
+ },
+
+ postRender : function() {
+ var t = this, ch, changeListenerAdded = true;
+
+ t.rendered = true;
+
+ function onChange(e) {
+ var v = t.items[e.target.selectedIndex - 1];
+
+ if (v && (v = v.value)) {
+ t.onChange.dispatch(t, v);
+
+ if (t.settings.onselect)
+ t.settings.onselect(v);
+ }
+ };
+
+ Event.add(t.id, 'change', onChange);
+
+ // Accessibility keyhandler
+ Event.add(t.id, 'keydown', function(e) {
+ var bf;
+
+ Event.remove(t.id, 'change', ch);
+ changeListenerAdded = false;
+
+ bf = Event.add(t.id, 'blur', function() {
+ if (changeListenerAdded) return;
+ changeListenerAdded = true;
+ Event.add(t.id, 'change', onChange);
+ Event.remove(t.id, 'blur', bf);
+ });
+
+ //prevent default left and right keys on chrome - so that the keyboard navigation is used.
+ if (tinymce.isWebKit && (e.keyCode==37 ||e.keyCode==39)) {
+ return Event.prevent(e);
+ }
+
+ if (e.keyCode == 13 || e.keyCode == 32) {
+ onChange(e);
+ return Event.cancel(e);
+ }
+ });
+
+ t.onPostRender.dispatch(t, DOM.get(t.id));
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each;
+
+ tinymce.create('tinymce.ui.MenuButton:tinymce.ui.Button', {
+ MenuButton : function(id, s, ed) {
+ this.parent(id, s, ed);
+
+ this.onRenderMenu = new tinymce.util.Dispatcher(this);
+
+ s.menu_container = s.menu_container || DOM.doc.body;
+ },
+
+ showMenu : function() {
+ var t = this, p1, p2, e = DOM.get(t.id), m;
+
+ if (t.isDisabled())
+ return;
+
+ if (!t.isMenuRendered) {
+ t.renderMenu();
+ t.isMenuRendered = true;
+ }
+
+ if (t.isMenuVisible)
+ return t.hideMenu();
+
+ p1 = DOM.getPos(t.settings.menu_container);
+ p2 = DOM.getPos(e);
+
+ m = t.menu;
+ m.settings.offset_x = p2.x;
+ m.settings.offset_y = p2.y;
+ m.settings.vp_offset_x = p2.x;
+ m.settings.vp_offset_y = p2.y;
+ m.settings.keyboard_focus = t._focused;
+ m.showMenu(0, e.firstChild.clientHeight);
+
+ Event.add(DOM.doc, 'mousedown', t.hideMenu, t);
+ t.setState('Selected', 1);
+
+ t.isMenuVisible = 1;
+ },
+
+ renderMenu : function() {
+ var t = this, m;
+
+ m = t.settings.control_manager.createDropMenu(t.id + '_menu', {
+ menu_line : 1,
+ 'class' : this.classPrefix + 'Menu',
+ icons : t.settings.icons
+ });
+
+ m.onHideMenu.add(function() {
+ t.hideMenu();
+ t.focus();
+ });
+
+ t.onRenderMenu.dispatch(t, m);
+ t.menu = m;
+ },
+
+ hideMenu : function(e) {
+ var t = this;
+
+ // Prevent double toogles by canceling the mouse click event to the button
+ if (e && e.type == "mousedown" && DOM.getParent(e.target, function(e) {return e.id === t.id || e.id === t.id + '_open';}))
+ return;
+
+ if (!e || !DOM.getParent(e.target, '.mceMenu')) {
+ t.setState('Selected', 0);
+ Event.remove(DOM.doc, 'mousedown', t.hideMenu, t);
+ if (t.menu)
+ t.menu.hideMenu();
+ }
+
+ t.isMenuVisible = 0;
+ },
+
+ postRender : function() {
+ var t = this, s = t.settings;
+
+ Event.add(t.id, 'click', function() {
+ if (!t.isDisabled()) {
+ if (s.onclick)
+ s.onclick(t.value);
+
+ t.showMenu();
+ }
+ });
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each;
+
+ tinymce.create('tinymce.ui.SplitButton:tinymce.ui.MenuButton', {
+ SplitButton : function(id, s, ed) {
+ this.parent(id, s, ed);
+ this.classPrefix = 'mceSplitButton';
+ },
+
+ renderHTML : function() {
+ var h, t = this, s = t.settings, h1;
+
+ h = '<tbody><tr>';
+
+ if (s.image)
+ h1 = DOM.createHTML('img ', {src : s.image, role: 'presentation', 'class' : 'mceAction ' + s['class']});
+ else
+ h1 = DOM.createHTML('span', {'class' : 'mceAction ' + s['class']}, '');
+
+ h1 += DOM.createHTML('span', {'class': 'mceVoiceLabel mceIconOnly', id: t.id + '_voice', style: 'display:none;'}, s.title);
+ h += '<td >' + DOM.createHTML('a', {role: 'button', id : t.id + '_action', tabindex: '-1', href : 'javascript:;', 'class' : 'mceAction ' + s['class'], onclick : "return false;", onmousedown : 'return false;', title : s.title}, h1) + '</td>';
+
+ h1 = DOM.createHTML('span', {'class' : 'mceOpen ' + s['class']}, '<span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span>');
+ h += '<td >' + DOM.createHTML('a', {role: 'button', id : t.id + '_open', tabindex: '-1', href : 'javascript:;', 'class' : 'mceOpen ' + s['class'], onclick : "return false;", onmousedown : 'return false;', title : s.title}, h1) + '</td>';
+
+ h += '</tr></tbody>';
+ h = DOM.createHTML('table', { role: 'presentation', 'class' : 'mceSplitButton mceSplitButtonEnabled ' + s['class'], cellpadding : '0', cellspacing : '0', title : s.title}, h);
+ return DOM.createHTML('div', {id : t.id, role: 'button', tabindex: '0', 'aria-labelledby': t.id + '_voice', 'aria-haspopup': 'true'}, h);
+ },
+
+ postRender : function() {
+ var t = this, s = t.settings, activate;
+
+ if (s.onclick) {
+ activate = function(evt) {
+ if (!t.isDisabled()) {
+ s.onclick(t.value);
+ Event.cancel(evt);
+ }
+ };
+ Event.add(t.id + '_action', 'click', activate);
+ Event.add(t.id, ['click', 'keydown'], function(evt) {
+ var DOM_VK_SPACE = 32, DOM_VK_ENTER = 14, DOM_VK_RETURN = 13, DOM_VK_UP = 38, DOM_VK_DOWN = 40;
+ if ((evt.keyCode === 32 || evt.keyCode === 13 || evt.keyCode === 14) && !evt.altKey && !evt.ctrlKey && !evt.metaKey) {
+ activate();
+ Event.cancel(evt);
+ } else if (evt.type === 'click' || evt.keyCode === DOM_VK_DOWN) {
+ t.showMenu();
+ Event.cancel(evt);
+ }
+ });
+ }
+
+ Event.add(t.id + '_open', 'click', function (evt) {
+ t.showMenu();
+ Event.cancel(evt);
+ });
+ Event.add([t.id, t.id + '_open'], 'focus', function() {t._focused = 1;});
+ Event.add([t.id, t.id + '_open'], 'blur', function() {t._focused = 0;});
+
+ // Old IE doesn't have hover on all elements
+ if (tinymce.isIE6 || !DOM.boxModel) {
+ Event.add(t.id, 'mouseover', function() {
+ if (!DOM.hasClass(t.id, 'mceSplitButtonDisabled'))
+ DOM.addClass(t.id, 'mceSplitButtonHover');
+ });
+
+ Event.add(t.id, 'mouseout', function() {
+ if (!DOM.hasClass(t.id, 'mceSplitButtonDisabled'))
+ DOM.removeClass(t.id, 'mceSplitButtonHover');
+ });
+ }
+ },
+
+ destroy : function() {
+ this.parent();
+
+ Event.clear(this.id + '_action');
+ Event.clear(this.id + '_open');
+ Event.clear(this.id);
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, is = tinymce.is, each = tinymce.each;
+
+ tinymce.create('tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton', {
+ ColorSplitButton : function(id, s, ed) {
+ var t = this;
+
+ t.parent(id, s, ed);
+
+ t.settings = s = tinymce.extend({
+ colors : '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF',
+ grid_width : 8,
+ default_color : '#888888'
+ }, t.settings);
+
+ t.onShowMenu = new tinymce.util.Dispatcher(t);
+
+ t.onHideMenu = new tinymce.util.Dispatcher(t);
+
+ t.value = s.default_color;
+ },
+
+ showMenu : function() {
+ var t = this, r, p, e, p2;
+
+ if (t.isDisabled())
+ return;
+
+ if (!t.isMenuRendered) {
+ t.renderMenu();
+ t.isMenuRendered = true;
+ }
+
+ if (t.isMenuVisible)
+ return t.hideMenu();
+
+ e = DOM.get(t.id);
+ DOM.show(t.id + '_menu');
+ DOM.addClass(e, 'mceSplitButtonSelected');
+ p2 = DOM.getPos(e);
+ DOM.setStyles(t.id + '_menu', {
+ left : p2.x,
+ top : p2.y + e.firstChild.clientHeight,
+ zIndex : 200000
+ });
+ e = 0;
+
+ Event.add(DOM.doc, 'mousedown', t.hideMenu, t);
+ t.onShowMenu.dispatch(t);
+
+ if (t._focused) {
+ t._keyHandler = Event.add(t.id + '_menu', 'keydown', function(e) {
+ if (e.keyCode == 27)
+ t.hideMenu();
+ });
+
+ DOM.select('a', t.id + '_menu')[0].focus(); // Select first link
+ }
+
+ t.keyboardNav = new tinymce.ui.KeyboardNavigation({
+ root: t.id + '_menu',
+ items: DOM.select('a', t.id + '_menu'),
+ onCancel: function() {
+ t.hideMenu();
+ t.focus();
+ }
+ });
+
+ t.keyboardNav.focus();
+ t.isMenuVisible = 1;
+ },
+
+ hideMenu : function(e) {
+ var t = this;
+
+ if (t.isMenuVisible) {
+ // Prevent double toogles by canceling the mouse click event to the button
+ if (e && e.type == "mousedown" && DOM.getParent(e.target, function(e) {return e.id === t.id + '_open';}))
+ return;
+
+ if (!e || !DOM.getParent(e.target, '.mceSplitButtonMenu')) {
+ DOM.removeClass(t.id, 'mceSplitButtonSelected');
+ Event.remove(DOM.doc, 'mousedown', t.hideMenu, t);
+ Event.remove(t.id + '_menu', 'keydown', t._keyHandler);
+ DOM.hide(t.id + '_menu');
+ }
+
+ t.isMenuVisible = 0;
+ t.onHideMenu.dispatch();
+ t.keyboardNav.destroy();
+ }
+ },
+
+ renderMenu : function() {
+ var t = this, m, i = 0, s = t.settings, n, tb, tr, w, context;
+
+ w = DOM.add(s.menu_container, 'div', {role: 'listbox', id : t.id + '_menu', 'class' : s.menu_class + ' ' + s['class'], style : 'position:absolute;left:0;top:-1000px;'});
+ m = DOM.add(w, 'div', {'class' : s['class'] + ' mceSplitButtonMenu'});
+ DOM.add(m, 'span', {'class' : 'mceMenuLine'});
+
+ n = DOM.add(m, 'table', {role: 'presentation', 'class' : 'mceColorSplitMenu'});
+ tb = DOM.add(n, 'tbody');
+
+ // Generate color grid
+ i = 0;
+ each(is(s.colors, 'array') ? s.colors : s.colors.split(','), function(c) {
+ c = c.replace(/^#/, '');
+
+ if (!i--) {
+ tr = DOM.add(tb, 'tr');
+ i = s.grid_width - 1;
+ }
+
+ n = DOM.add(tr, 'td');
+ var settings = {
+ href : 'javascript:;',
+ style : {
+ backgroundColor : '#' + c
+ },
+ 'title': t.editor.getLang('colors.' + c, c),
+ 'data-mce-color' : '#' + c
+ };
+
+ // adding a proper ARIA role = button causes JAWS to read things incorrectly on IE.
+ if (!tinymce.isIE ) {
+ settings.role = 'option';
+ }
+
+ n = DOM.add(n, 'a', settings);
+
+ if (t.editor.forcedHighContrastMode) {
+ n = DOM.add(n, 'canvas', { width: 16, height: 16, 'aria-hidden': 'true' });
+ if (n.getContext && (context = n.getContext("2d"))) {
+ context.fillStyle = '#' + c;
+ context.fillRect(0, 0, 16, 16);
+ } else {
+ // No point leaving a canvas element around if it's not supported for drawing on anyway.
+ DOM.remove(n);
+ }
+ }
+ });
+
+ if (s.more_colors_func) {
+ n = DOM.add(tb, 'tr');
+ n = DOM.add(n, 'td', {colspan : s.grid_width, 'class' : 'mceMoreColors'});
+ n = DOM.add(n, 'a', {role: 'option', id : t.id + '_more', href : 'javascript:;', onclick : 'return false;', 'class' : 'mceMoreColors'}, s.more_colors_title);
+
+ Event.add(n, 'click', function(e) {
+ s.more_colors_func.call(s.more_colors_scope || this);
+ return Event.cancel(e); // Cancel to fix onbeforeunload problem
+ });
+ }
+
+ DOM.addClass(m, 'mceColorSplitMenu');
+
+ // Prevent IE from scrolling and hindering click to occur #4019
+ Event.add(t.id + '_menu', 'mousedown', function(e) {return Event.cancel(e);});
+
+ Event.add(t.id + '_menu', 'click', function(e) {
+ var c;
+
+ e = DOM.getParent(e.target, 'a', tb);
+
+ if (e && e.nodeName.toLowerCase() == 'a' && (c = e.getAttribute('data-mce-color')))
+ t.setColor(c);
+
+ return false; // Prevent IE auto save warning
+ });
+
+ return w;
+ },
+
+ setColor : function(c) {
+ this.displayColor(c);
+ this.hideMenu();
+ this.settings.onselect(c);
+ },
+
+ displayColor : function(c) {
+ var t = this;
+
+ DOM.setStyle(t.id + '_preview', 'backgroundColor', c);
+
+ t.value = c;
+ },
+
+ postRender : function() {
+ var t = this, id = t.id;
+
+ t.parent();
+ DOM.add(id + '_action', 'div', {id : id + '_preview', 'class' : 'mceColorPreview'});
+ DOM.setStyle(t.id + '_preview', 'backgroundColor', t.value);
+ },
+
+ destroy : function() {
+ var self = this;
+
+ self.parent();
+
+ Event.clear(self.id + '_menu');
+ Event.clear(self.id + '_more');
+ DOM.remove(self.id + '_menu');
+
+ if (self.keyboardNav) {
+ self.keyboardNav.destroy();
+ }
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+// Shorten class names
+var dom = tinymce.DOM, each = tinymce.each, Event = tinymce.dom.Event;
+tinymce.create('tinymce.ui.ToolbarGroup:tinymce.ui.Container', {
+ renderHTML : function() {
+ var t = this, h = [], controls = t.controls, each = tinymce.each, settings = t.settings;
+
+ h.push('<div id="' + t.id + '" role="group" aria-labelledby="' + t.id + '_voice">');
+ //TODO: ACC test this out - adding a role = application for getting the landmarks working well.
+ h.push("<span role='application'>");
+ h.push('<span id="' + t.id + '_voice" class="mceVoiceLabel" style="display:none;">' + dom.encode(settings.name) + '</span>');
+ each(controls, function(toolbar) {
+ h.push(toolbar.renderHTML());
+ });
+ h.push("</span>");
+ h.push('</div>');
+
+ return h.join('');
+ },
+
+ focus : function() {
+ var t = this;
+ dom.get(t.id).focus();
+ },
+
+ postRender : function() {
+ var t = this, items = [];
+
+ each(t.controls, function(toolbar) {
+ each (toolbar.controls, function(control) {
+ if (control.id) {
+ items.push(control);
+ }
+ });
+ });
+
+ t.keyNav = new tinymce.ui.KeyboardNavigation({
+ root: t.id,
+ items: items,
+ onCancel: function() {
+ //Move focus if webkit so that navigation back will read the item.
+ if (tinymce.isWebKit) {
+ dom.get(t.editor.id+"_ifr").focus();
+ }
+ t.editor.focus();
+ },
+ excludeFromTabOrder: !t.settings.tab_focus_toolbar
+ });
+ },
+
+ destroy : function() {
+ var self = this;
+
+ self.parent();
+ self.keyNav.destroy();
+ Event.clear(self.id);
+ }
+});
+})(tinymce);
+
+(function(tinymce) {
+// Shorten class names
+var dom = tinymce.DOM, each = tinymce.each;
+tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
+ renderHTML : function() {
+ var t = this, h = '', c, co, s = t.settings, i, pr, nx, cl;
+
+ cl = t.controls;
+ for (i=0; i<cl.length; i++) {
+ // Get current control, prev control, next control and if the control is a list box or not
+ co = cl[i];
+ pr = cl[i - 1];
+ nx = cl[i + 1];
+
+ // Add toolbar start
+ if (i === 0) {
+ c = 'mceToolbarStart';
+
+ if (co.Button)
+ c += ' mceToolbarStartButton';
+ else if (co.SplitButton)
+ c += ' mceToolbarStartSplitButton';
+ else if (co.ListBox)
+ c += ' mceToolbarStartListBox';
+
+ h += dom.createHTML('td', {'class' : c}, dom.createHTML('span', null, '<!-- IE -->'));
+ }
+
+ // Add toolbar end before list box and after the previous button
+ // This is to fix the o2k7 editor skins
+ if (pr && co.ListBox) {
+ if (pr.Button || pr.SplitButton)
+ h += dom.createHTML('td', {'class' : 'mceToolbarEnd'}, dom.createHTML('span', null, '<!-- IE -->'));
+ }
+
+ // Render control HTML
+
+ // IE 8 quick fix, needed to propertly generate a hit area for anchors
+ if (dom.stdMode)
+ h += '<td style="position: relative">' + co.renderHTML() + '</td>';
+ else
+ h += '<td>' + co.renderHTML() + '</td>';
+
+ // Add toolbar start after list box and before the next button
+ // This is to fix the o2k7 editor skins
+ if (nx && co.ListBox) {
+ if (nx.Button || nx.SplitButton)
+ h += dom.createHTML('td', {'class' : 'mceToolbarStart'}, dom.createHTML('span', null, '<!-- IE -->'));
+ }
+ }
+
+ c = 'mceToolbarEnd';
+
+ if (co.Button)
+ c += ' mceToolbarEndButton';
+ else if (co.SplitButton)
+ c += ' mceToolbarEndSplitButton';
+ else if (co.ListBox)
+ c += ' mceToolbarEndListBox';
+
+ h += dom.createHTML('td', {'class' : c}, dom.createHTML('span', null, '<!-- IE -->'));
+
+ return dom.createHTML('table', {id : t.id, 'class' : 'mceToolbar' + (s['class'] ? ' ' + s['class'] : ''), cellpadding : '0', cellspacing : '0', align : t.settings.align || '', role: 'presentation', tabindex: '-1'}, '<tbody><tr>' + h + '</tr></tbody>');
+ }
+});
+})(tinymce);
+
+(function(tinymce) {
+ var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each;
+
+ tinymce.create('tinymce.AddOnManager', {
+ AddOnManager : function() {
+ var self = this;
+
+ self.items = [];
+ self.urls = {};
+ self.lookup = {};
+ self.onAdd = new Dispatcher(self);
+ },
+
+ get : function(n) {
+ if (this.lookup[n]) {
+ return this.lookup[n].instance;
+ } else {
+ return undefined;
+ }
+ },
+
+ dependencies : function(n) {
+ var result;
+ if (this.lookup[n]) {
+ result = this.lookup[n].dependencies;
+ }
+ return result || [];
+ },
+
+ requireLangPack : function(n) {
+ var s = tinymce.settings;
+
+ if (s && s.language && s.language_load !== false)
+ tinymce.ScriptLoader.add(this.urls[n] + '/langs/' + s.language + '.js');
+ },
+
+ add : function(id, o, dependencies) {
+ this.items.push(o);
+ this.lookup[id] = {instance:o, dependencies:dependencies};
+ this.onAdd.dispatch(this, id, o);
+
+ return o;
+ },
+ createUrl: function(baseUrl, dep) {
+ if (typeof dep === "object") {
+ return dep
+ } else {
+ return {prefix: baseUrl.prefix, resource: dep, suffix: baseUrl.suffix};
+ }
+ },
+
+ addComponents: function(pluginName, scripts) {
+ var pluginUrl = this.urls[pluginName];
+ tinymce.each(scripts, function(script){
+ tinymce.ScriptLoader.add(pluginUrl+"/"+script);
+ });
+ },
+
+ load : function(n, u, cb, s) {
+ var t = this, url = u;
+
+ function loadDependencies() {
+ var dependencies = t.dependencies(n);
+ tinymce.each(dependencies, function(dep) {
+ var newUrl = t.createUrl(u, dep);
+ t.load(newUrl.resource, newUrl, undefined, undefined);
+ });
+ if (cb) {
+ if (s) {
+ cb.call(s);
+ } else {
+ cb.call(tinymce.ScriptLoader);
+ }
+ }
+ }
+
+ if (t.urls[n])
+ return;
+ if (typeof u === "object")
+ url = u.prefix + u.resource + u.suffix;
+
+ if (url.indexOf('/') !== 0 && url.indexOf('://') == -1)
+ url = tinymce.baseURL + '/' + url;
+
+ t.urls[n] = url.substring(0, url.lastIndexOf('/'));
+
+ if (t.lookup[n]) {
+ loadDependencies();
+ } else {
+ tinymce.ScriptLoader.add(url, loadDependencies, s);
+ }
+ }
+ });
+
+ // Create plugin and theme managers
+ tinymce.PluginManager = new tinymce.AddOnManager();
+ tinymce.ThemeManager = new tinymce.AddOnManager();
+}(tinymce));
+
+(function(tinymce) {
+ // Shorten names
+ var each = tinymce.each, extend = tinymce.extend,
+ DOM = tinymce.DOM, Event = tinymce.dom.Event,
+ ThemeManager = tinymce.ThemeManager, PluginManager = tinymce.PluginManager,
+ explode = tinymce.explode,
+ Dispatcher = tinymce.util.Dispatcher, undef, instanceCounter = 0;
+
+ // Setup some URLs where the editor API is located and where the document is
+ tinymce.documentBaseURL = window.location.href.replace(/[\?#].*$/, '').replace(/[\/\\][^\/]+$/, '');
+ if (!/[\/\\]$/.test(tinymce.documentBaseURL))
+ tinymce.documentBaseURL += '/';
+
+ tinymce.baseURL = new tinymce.util.URI(tinymce.documentBaseURL).toAbsolute(tinymce.baseURL);
+
+ tinymce.baseURI = new tinymce.util.URI(tinymce.baseURL);
+
+ // Add before unload listener
+ // This was required since IE was leaking memory if you added and removed beforeunload listeners
+ // with attachEvent/detatchEvent so this only adds one listener and instances can the attach to the onBeforeUnload event
+ tinymce.onBeforeUnload = new Dispatcher(tinymce);
+
+ // Must be on window or IE will leak if the editor is placed in frame or iframe
+ Event.add(window, 'beforeunload', function(e) {
+ tinymce.onBeforeUnload.dispatch(tinymce, e);
+ });
+
+ tinymce.onAddEditor = new Dispatcher(tinymce);
+
+ tinymce.onRemoveEditor = new Dispatcher(tinymce);
+
+ tinymce.EditorManager = extend(tinymce, {
+ editors : [],
+
+ i18n : {},
+
+ activeEditor : null,
+
+ init : function(s) {
+ var t = this, pl, sl = tinymce.ScriptLoader, e, el = [], ed;
+
+ function createId(elm) {
+ var id = elm.id;
+
+ // Use element id, or unique name or generate a unique id
+ if (!id) {
+ id = elm.name;
+
+ if (id && !DOM.get(id)) {
+ id = elm.name;
+ } else {
+ // Generate unique name
+ id = DOM.uniqueId();
+ }
+
+ elm.setAttribute('id', id);
+ }
+
+ return id;
+ };
+
+ function execCallback(se, n, s) {
+ var f = se[n];
+
+ if (!f)
+ return;
+
+ if (tinymce.is(f, 'string')) {
+ s = f.replace(/\.\w+$/, '');
+ s = s ? tinymce.resolve(s) : 0;
+ f = tinymce.resolve(f);
+ }
+
+ return f.apply(s || this, Array.prototype.slice.call(arguments, 2));
+ };
+
+ function hasClass(n, c) {
+ return c.constructor === RegExp ? c.test(n.className) : DOM.hasClass(n, c);
+ };
+
+ t.settings = s;
+
+ // Legacy call
+ Event.bind(window, 'ready', function() {
+ var l, co;
+
+ execCallback(s, 'onpageload');
+
+ switch (s.mode) {
+ case "exact":
+ l = s.elements || '';
+
+ if(l.length > 0) {
+ each(explode(l), function(v) {
+ if (DOM.get(v)) {
+ ed = new tinymce.Editor(v, s);
+ el.push(ed);
+ ed.render(1);
+ } else {
+ each(document.forms, function(f) {
+ each(f.elements, function(e) {
+ if (e.name === v) {
+ v = 'mce_editor_' + instanceCounter++;
+ DOM.setAttrib(e, 'id', v);
+
+ ed = new tinymce.Editor(v, s);
+ el.push(ed);
+ ed.render(1);
+ }
+ });
+ });
+ }
+ });
+ }
+ break;
+
+ case "textareas":
+ case "specific_textareas":
+ each(DOM.select('textarea'), function(elm) {
+ if (s.editor_deselector && hasClass(elm, s.editor_deselector))
+ return;
+
+ if (!s.editor_selector || hasClass(elm, s.editor_selector)) {
+ ed = new tinymce.Editor(createId(elm), s);
+ el.push(ed);
+ ed.render(1);
+ }
+ });
+ break;
+
+ default:
+ if (s.types) {
+ // Process type specific selector
+ each(s.types, function(type) {
+ each(DOM.select(type.selector), function(elm) {
+ var editor = new tinymce.Editor(createId(elm), tinymce.extend({}, s, type));
+ el.push(editor);
+ editor.render(1);
+ });
+ });
+ } else if (s.selector) {
+ // Process global selector
+ each(DOM.select(s.selector), function(elm) {
+ var editor = new tinymce.Editor(createId(elm), s);
+ el.push(editor);
+ editor.render(1);
+ });
+ }
+ }
+
+ // Call onInit when all editors are initialized
+ if (s.oninit) {
+ l = co = 0;
+
+ each(el, function(ed) {
+ co++;
+
+ if (!ed.initialized) {
+ // Wait for it
+ ed.onInit.add(function() {
+ l++;
+
+ // All done
+ if (l == co)
+ execCallback(s, 'oninit');
+ });
+ } else
+ l++;
+
+ // All done
+ if (l == co)
+ execCallback(s, 'oninit');
+ });
+ }
+ });
+ },
+
+ get : function(id) {
+ if (id === undef)
+ return this.editors;
+
+ if (!this.editors.hasOwnProperty(id))
+ return undef;
+
+ return this.editors[id];
+ },
+
+ getInstanceById : function(id) {
+ return this.get(id);
+ },
+
+ add : function(editor) {
+ var self = this, editors = self.editors;
+
+ // Add named and index editor instance
+ editors[editor.id] = editor;
+ editors.push(editor);
+
+ self._setActive(editor);
+ self.onAddEditor.dispatch(self, editor);
+
+
+ return editor;
+ },
+
+ remove : function(editor) {
+ var t = this, i, editors = t.editors;
+
+ // Not in the collection
+ if (!editors[editor.id])
+ return null;
+
+ delete editors[editor.id];
+
+ for (i = 0; i < editors.length; i++) {
+ if (editors[i] == editor) {
+ editors.splice(i, 1);
+ break;
+ }
+ }
+
+ // Select another editor since the active one was removed
+ if (t.activeEditor == editor)
+ t._setActive(editors[0]);
+
+ editor.destroy();
+ t.onRemoveEditor.dispatch(t, editor);
+
+ return editor;
+ },
+
+ execCommand : function(c, u, v) {
+ var t = this, ed = t.get(v), w;
+
+ function clr() {
+ ed.destroy();
+ w.detachEvent('onunload', clr);
+ w = w.tinyMCE = w.tinymce = null; // IE leak
+ };
+
+ // Manager commands
+ switch (c) {
+ case "mceFocus":
+ ed.focus();
+ return true;
+
+ case "mceAddEditor":
+ case "mceAddControl":
+ if (!t.get(v))
+ new tinymce.Editor(v, t.settings).render();
+
+ return true;
+
+ case "mceAddFrameControl":
+ w = v.window;
+
+ // Add tinyMCE global instance and tinymce namespace to specified window
+ w.tinyMCE = tinyMCE;
+ w.tinymce = tinymce;
+
+ tinymce.DOM.doc = w.document;
+ tinymce.DOM.win = w;
+
+ ed = new tinymce.Editor(v.element_id, v);
+ ed.render();
+
+ // Fix IE memory leaks
+ if (tinymce.isIE) {
+ w.attachEvent('onunload', clr);
+ }
+
+ v.page_window = null;
+
+ return true;
+
+ case "mceRemoveEditor":
+ case "mceRemoveControl":
+ if (ed)
+ ed.remove();
+
+ return true;
+
+ case 'mceToggleEditor':
+ if (!ed) {
+ t.execCommand('mceAddControl', 0, v);
+ return true;
+ }
+
+ if (ed.isHidden())
+ ed.show();
+ else
+ ed.hide();
+
+ return true;
+ }
+
+ // Run command on active editor
+ if (t.activeEditor)
+ return t.activeEditor.execCommand(c, u, v);
+
+ return false;
+ },
+
+ execInstanceCommand : function(id, c, u, v) {
+ var ed = this.get(id);
+
+ if (ed)
+ return ed.execCommand(c, u, v);
+
+ return false;
+ },
+
+ triggerSave : function() {
+ each(this.editors, function(e) {
+ e.save();
+ });
+ },
+
+ addI18n : function(p, o) {
+ var lo, i18n = this.i18n;
+
+ if (!tinymce.is(p, 'string')) {
+ each(p, function(o, lc) {
+ each(o, function(o, g) {
+ each(o, function(o, k) {
+ if (g === 'common')
+ i18n[lc + '.' + k] = o;
+ else
+ i18n[lc + '.' + g + '.' + k] = o;
+ });
+ });
+ });
+ } else {
+ each(o, function(o, k) {
+ i18n[p + '.' + k] = o;
+ });
+ }
+ },
+
+ // Private methods
+
+ _setActive : function(editor) {
+ this.selectedInstance = this.activeEditor = editor;
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ // Shorten these names
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend,
+ each = tinymce.each, isGecko = tinymce.isGecko,
+ isIE = tinymce.isIE, isWebKit = tinymce.isWebKit, is = tinymce.is,
+ ThemeManager = tinymce.ThemeManager, PluginManager = tinymce.PluginManager,
+ explode = tinymce.explode;
+
+ tinymce.create('tinymce.Editor', {
+ Editor : function(id, settings) {
+ var self = this, TRUE = true;
+
+ self.settings = settings = extend({
+ id : id,
+ language : 'en',
+ theme : 'advanced',
+ skin : 'default',
+ delta_width : 0,
+ delta_height : 0,
+ popup_css : '',
+ plugins : '',
+ document_base_url : tinymce.documentBaseURL,
+ add_form_submit_trigger : TRUE,
+ submit_patch : TRUE,
+ add_unload_trigger : TRUE,
+ convert_urls : TRUE,
+ relative_urls : TRUE,
+ remove_script_host : TRUE,
+ table_inline_editing : false,
+ object_resizing : TRUE,
+ accessibility_focus : TRUE,
+ doctype : tinymce.isIE6 ? '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' : '<!DOCTYPE>', // Use old doctype on IE 6 to avoid horizontal scroll
+ visual : TRUE,
+ font_size_style_values : 'xx-small,x-small,small,medium,large,x-large,xx-large',
+ font_size_legacy_values : 'xx-small,small,medium,large,x-large,xx-large,300%', // See: http://www.w3.org/TR/CSS2/fonts.html#propdef-font-size
+ apply_source_formatting : TRUE,
+ directionality : 'ltr',
+ forced_root_block : 'p',
+ hidden_input : TRUE,
+ padd_empty_editor : TRUE,
+ render_ui : TRUE,
+ indentation : '30px',
+ fix_table_elements : TRUE,
+ inline_styles : TRUE,
+ convert_fonts_to_spans : TRUE,
+ indent : 'simple',
+ indent_before : 'p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist',
+ indent_after : 'p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist',
+ validate : TRUE,
+ entity_encoding : 'named',
+ url_converter : self.convertURL,
+ url_converter_scope : self,
+ ie7_compat : TRUE
+ }, settings);
+
+ self.id = self.editorId = id;
+
+ self.isNotDirty = false;
+
+ self.plugins = {};
+
+ self.documentBaseURI = new tinymce.util.URI(settings.document_base_url || tinymce.documentBaseURL, {
+ base_uri : tinyMCE.baseURI
+ });
+
+ self.baseURI = tinymce.baseURI;
+
+ self.contentCSS = [];
+
+ self.contentStyles = [];
+
+ // Creates all events like onClick, onSetContent etc see Editor.Events.js for the actual logic
+ self.setupEvents();
+
+ // Internal command handler objects
+ self.execCommands = {};
+ self.queryStateCommands = {};
+ self.queryValueCommands = {};
+
+ // Call setup
+ self.execCallback('setup', self);
+ },
+
+ render : function(nst) {
+ var t = this, s = t.settings, id = t.id, sl = tinymce.ScriptLoader;
+
+ // Page is not loaded yet, wait for it
+ if (!Event.domLoaded) {
+ Event.add(window, 'ready', function() {
+ t.render();
+ });
+ return;
+ }
+
+ tinyMCE.settings = s;
+
+ // Element not found, then skip initialization
+ if (!t.getElement())
+ return;
+
+ // Is a iPad/iPhone and not on iOS5, then skip initialization. We need to sniff
+ // here since the browser says it has contentEditable support but there is no visible caret.
+ if (tinymce.isIDevice && !tinymce.isIOS5)
+ return;
+
+ // Add hidden input for non input elements inside form elements
+ if (!/TEXTAREA|INPUT/i.test(t.getElement().nodeName) && s.hidden_input && DOM.getParent(id, 'form'))
+ DOM.insertAfter(DOM.create('input', {type : 'hidden', name : id}), id);
+
+ // Hide target element early to prevent content flashing
+ if (!s.content_editable) {
+ t.orgVisibility = t.getElement().style.visibility;
+ t.getElement().style.visibility = 'hidden';
+ }
+
+ if (tinymce.WindowManager)
+ t.windowManager = new tinymce.WindowManager(t);
+
+ if (s.encoding == 'xml') {
+ t.onGetContent.add(function(ed, o) {
+ if (o.save)
+ o.content = DOM.encode(o.content);
+ });
+ }
+
+ if (s.add_form_submit_trigger) {
+ t.onSubmit.addToTop(function() {
+ if (t.initialized) {
+ t.save();
+ t.isNotDirty = 1;
+ }
+ });
+ }
+
+ if (s.add_unload_trigger) {
+ t._beforeUnload = tinyMCE.onBeforeUnload.add(function() {
+ if (t.initialized && !t.destroyed && !t.isHidden())
+ t.save({format : 'raw', no_events : true});
+ });
+ }
+
+ tinymce.addUnload(t.destroy, t);
+
+ if (s.submit_patch) {
+ t.onBeforeRenderUI.add(function() {
+ var n = t.getElement().form;
+
+ if (!n)
+ return;
+
+ // Already patched
+ if (n._mceOldSubmit)
+ return;
+
+ // Check page uses id="submit" or name="submit" for it's submit button
+ if (!n.submit.nodeType && !n.submit.length) {
+ t.formElement = n;
+ n._mceOldSubmit = n.submit;
+ n.submit = function() {
+ // Save all instances
+ tinymce.triggerSave();
+ t.isNotDirty = 1;
+
+ return t.formElement._mceOldSubmit(t.formElement);
+ };
+ }
+
+ n = null;
+ });
+ }
+
+ // Load scripts
+ function loadScripts() {
+ if (s.language && s.language_load !== false)
+ sl.add(tinymce.baseURL + '/langs/' + s.language + '.js');
+
+ if (s.theme && typeof s.theme != "function" && s.theme.charAt(0) != '-' && !ThemeManager.urls[s.theme])
+ ThemeManager.load(s.theme, 'themes/' + s.theme + '/editor_template' + tinymce.suffix + '.js');
+
+ each(explode(s.plugins), function(p) {
+ if (p &&!PluginManager.urls[p]) {
+ if (p.charAt(0) == '-') {
+ p = p.substr(1, p.length);
+ var dependencies = PluginManager.dependencies(p);
+ each(dependencies, function(dep) {
+ var defaultSettings = {prefix:'plugins/', resource: dep, suffix:'/editor_plugin' + tinymce.suffix + '.js'};
+ dep = PluginManager.createUrl(defaultSettings, dep);
+ PluginManager.load(dep.resource, dep);
+ });
+ } else {
+ // Skip safari plugin, since it is removed as of 3.3b1
+ if (p == 'safari') {
+ return;
+ }
+ PluginManager.load(p, {prefix:'plugins/', resource: p, suffix:'/editor_plugin' + tinymce.suffix + '.js'});
+ }
+ }
+ });
+
+ // Init when que is loaded
+ sl.loadQueue(function() {
+ if (!t.removed)
+ t.init();
+ });
+ };
+
+ loadScripts();
+ },
+
+ init : function() {
+ var n, t = this, s = t.settings, w, h, mh, e = t.getElement(), o, ti, u, bi, bc, re, i, initializedPlugins = [];
+
+ tinymce.add(t);
+
+ s.aria_label = s.aria_label || DOM.getAttrib(e, 'aria-label', t.getLang('aria.rich_text_area'));
+
+ if (s.theme) {
+ if (typeof s.theme != "function") {
+ s.theme = s.theme.replace(/-/, '');
+ o = ThemeManager.get(s.theme);
+ t.theme = new o();
+
+ if (t.theme.init)
+ t.theme.init(t, ThemeManager.urls[s.theme] || tinymce.documentBaseURL.replace(/\/$/, ''));
+ } else {
+ t.theme = s.theme;
+ }
+ }
+
+ function initPlugin(p) {
+ var c = PluginManager.get(p), u = PluginManager.urls[p] || tinymce.documentBaseURL.replace(/\/$/, ''), po;
+ if (c && tinymce.inArray(initializedPlugins,p) === -1) {
+ each(PluginManager.dependencies(p), function(dep){
+ initPlugin(dep);
+ });
+ po = new c(t, u);
+
+ t.plugins[p] = po;
+
+ if (po.init) {
+ po.init(t, u);
+ initializedPlugins.push(p);
+ }
+ }
+ }
+
+ // Create all plugins
+ each(explode(s.plugins.replace(/\-/g, '')), initPlugin);
+
+ // Setup popup CSS path(s)
+ if (s.popup_css !== false) {
+ if (s.popup_css)
+ s.popup_css = t.documentBaseURI.toAbsolute(s.popup_css);
+ else
+ s.popup_css = t.baseURI.toAbsolute("themes/" + s.theme + "/skins/" + s.skin + "/dialog.css");
+ }
+
+ if (s.popup_css_add)
+ s.popup_css += ',' + t.documentBaseURI.toAbsolute(s.popup_css_add);
+
+ t.controlManager = new tinymce.ControlManager(t);
+
+ // Enables users to override the control factory
+ t.onBeforeRenderUI.dispatch(t, t.controlManager);
+
+ // Measure box
+ if (s.render_ui && t.theme) {
+ t.orgDisplay = e.style.display;
+
+ if (typeof s.theme != "function") {
+ w = s.width || e.style.width || e.offsetWidth;
+ h = s.height || e.style.height || e.offsetHeight;
+ mh = s.min_height || 100;
+ re = /^[0-9\.]+(|px)$/i;
+
+ if (re.test('' + w))
+ w = Math.max(parseInt(w, 10) + (o.deltaWidth || 0), 100);
+
+ if (re.test('' + h))
+ h = Math.max(parseInt(h, 10) + (o.deltaHeight || 0), mh);
+
+ // Render UI
+ o = t.theme.renderUI({
+ targetNode : e,
+ width : w,
+ height : h,
+ deltaWidth : s.delta_width,
+ deltaHeight : s.delta_height
+ });
+
+ // Resize editor
+ DOM.setStyles(o.sizeContainer || o.editorContainer, {
+ width : w,
+ height : h
+ });
+
+ h = (o.iframeHeight || h) + (typeof(h) == 'number' ? (o.deltaHeight || 0) : '');
+ if (h < mh)
+ h = mh;
+ } else {
+ o = s.theme(t, e);
+
+ // Convert element type to id:s
+ if (o.editorContainer.nodeType) {
+ o.editorContainer = o.editorContainer.id = o.editorContainer.id || t.id + "_parent";
+ }
+
+ // Convert element type to id:s
+ if (o.iframeContainer.nodeType) {
+ o.iframeContainer = o.iframeContainer.id = o.iframeContainer.id || t.id + "_iframecontainer";
+ }
+
+ // Use specified iframe height or the targets offsetHeight
+ h = o.iframeHeight || e.offsetHeight;
+
+ // Store away the selection when it's changed to it can be restored later with a editor.focus() call
+ if (isIE) {
+ t.onInit.add(function(ed) {
+ ed.dom.bind(ed.getBody(), 'beforedeactivate keydown', function() {
+ ed.lastIERng = ed.selection.getRng();
+ });
+ });
+ }
+ }
+
+ t.editorContainer = o.editorContainer;
+ }
+
+ // Load specified content CSS last
+ if (s.content_css) {
+ each(explode(s.content_css), function(u) {
+ t.contentCSS.push(t.documentBaseURI.toAbsolute(u));
+ });
+ }
+
+ // Load specified content CSS last
+ if (s.content_style) {
+ t.contentStyles.push(s.content_style);
+ }
+
+ // Content editable mode ends here
+ if (s.content_editable) {
+ e = n = o = null; // Fix IE leak
+ return t.initContentBody();
+ }
+
+ // User specified a document.domain value
+ if (document.domain && location.hostname != document.domain)
+ tinymce.relaxedDomain = document.domain;
+
+ t.iframeHTML = s.doctype + '<html><head xmlns="http://www.w3.org/1999/xhtml">';
+
+ // We only need to override paths if we have to
+ // IE has a bug where it remove site absolute urls to relative ones if this is specified
+ if (s.document_base_url != tinymce.documentBaseURL)
+ t.iframeHTML += '<base href="' + t.documentBaseURI.getURI() + '" />';
+
+ // IE8 doesn't support carets behind images setting ie7_compat would force IE8+ to run in IE7 compat mode.
+ if (s.ie7_compat)
+ t.iframeHTML += '<meta http-equiv="X-UA-Compatible" content="IE=7" />';
+ else
+ t.iframeHTML += '<meta http-equiv="X-UA-Compatible" content="IE=edge" />';
+
+ t.iframeHTML += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
+
+ // Load the CSS by injecting them into the HTML this will reduce "flicker"
+ for (i = 0; i < t.contentCSS.length; i++) {
+ t.iframeHTML += '<link type="text/css" rel="stylesheet" href="' + t.contentCSS[i] + '" />';
+ }
+
+ t.contentCSS = [];
+
+ bi = s.body_id || 'tinymce';
+ if (bi.indexOf('=') != -1) {
+ bi = t.getParam('body_id', '', 'hash');
+ bi = bi[t.id] || bi;
+ }
+
+ bc = s.body_class || '';
+ if (bc.indexOf('=') != -1) {
+ bc = t.getParam('body_class', '', 'hash');
+ bc = bc[t.id] || '';
+ }
+
+ t.iframeHTML += '</head><body id="' + bi + '" class="mceContentBody ' + bc + '" onload="window.parent.tinyMCE.get(\'' + t.id + '\').onLoad.dispatch();"><br></body></html>';
+
+ // Domain relaxing enabled, then set document domain
+ if (tinymce.relaxedDomain && (isIE || (tinymce.isOpera && parseFloat(opera.version()) < 11))) {
+ // We need to write the contents here in IE since multiple writes messes up refresh button and back button
+ u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";var ed = window.parent.tinyMCE.get("' + t.id + '");document.write(ed.iframeHTML);document.close();ed.initContentBody();})()';
+ }
+
+ // Create iframe
+ // TODO: ACC add the appropriate description on this.
+ n = DOM.add(o.iframeContainer, 'iframe', {
+ id : t.id + "_ifr",
+ src : u || 'javascript:""', // Workaround for HTTPS warning in IE6/7
+ frameBorder : '0',
+ allowTransparency : "true",
+ title : s.aria_label,
+ style : {
+ width : '100%',
+ height : h,
+ display : 'block' // Important for Gecko to render the iframe correctly
+ }
+ });
+
+ t.contentAreaContainer = o.iframeContainer;
+
+ if (o.editorContainer) {
+ DOM.get(o.editorContainer).style.display = t.orgDisplay;
+ }
+
+ // Restore visibility on target element
+ e.style.visibility = t.orgVisibility;
+
+ DOM.get(t.id).style.display = 'none';
+ DOM.setAttrib(t.id, 'aria-hidden', true);
+
+ if (!tinymce.relaxedDomain || !u)
+ t.initContentBody();
+
+ e = n = o = null; // Cleanup
+ },
+
+ initContentBody : function() {
+ var self = this, settings = self.settings, targetElm = DOM.get(self.id), doc = self.getDoc(), html, body, contentCssText;
+
+ // Setup iframe body
+ if ((!isIE || !tinymce.relaxedDomain) && !settings.content_editable) {
+ doc.open();
+ doc.write(self.iframeHTML);
+ doc.close();
+
+ if (tinymce.relaxedDomain)
+ doc.domain = tinymce.relaxedDomain;
+ }
+
+ if (settings.content_editable) {
+ DOM.addClass(targetElm, 'mceContentBody');
+ self.contentDocument = doc = settings.content_document || document;
+ self.contentWindow = settings.content_window || window;
+ self.bodyElement = targetElm;
+
+ // Prevent leak in IE
+ settings.content_document = settings.content_window = null;
+ }
+
+ // It will not steal focus while setting contentEditable
+ body = self.getBody();
+ body.disabled = true;
+
+ if (!settings.readonly)
+ body.contentEditable = self.getParam('content_editable_state', true);
+
+ body.disabled = false;
+
+ self.schema = new tinymce.html.Schema(settings);
+
+ self.dom = new tinymce.dom.DOMUtils(doc, {
+ keep_values : true,
+ url_converter : self.convertURL,
+ url_converter_scope : self,
+ hex_colors : settings.force_hex_style_colors,
+ class_filter : settings.class_filter,
+ update_styles : true,
+ root_element : settings.content_editable ? self.id : null,
+ schema : self.schema
+ });
+
+ self.parser = new tinymce.html.DomParser(settings, self.schema);
+
+ // Convert src and href into data-mce-src, data-mce-href and data-mce-style
+ self.parser.addAttributeFilter('src,href,style', function(nodes, name) {
+ var i = nodes.length, node, dom = self.dom, value, internalName;
+
+ while (i--) {
+ node = nodes[i];
+ value = node.attr(name);
+ internalName = 'data-mce-' + name;
+
+ // Add internal attribute if we need to we don't on a refresh of the document
+ if (!node.attributes.map[internalName]) {
+ if (name === "style")
+ node.attr(internalName, dom.serializeStyle(dom.parseStyle(value), node.name));
+ else
+ node.attr(internalName, self.convertURL(value, name, node.name));
+ }
+ }
+ });
+
+ // Keep scripts from executing
+ self.parser.addNodeFilter('script', function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+ node.attr('type', 'mce-' + (node.attr('type') || 'text/javascript'));
+ }
+ });
+
+ self.parser.addNodeFilter('#cdata', function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+ node.type = 8;
+ node.name = '#comment';
+ node.value = '[CDATA[' + node.value + ']]';
+ }
+ });
+
+ self.parser.addNodeFilter('p,h1,h2,h3,h4,h5,h6,div', function(nodes, name) {
+ var i = nodes.length, node, nonEmptyElements = self.schema.getNonEmptyElements();
+
+ while (i--) {
+ node = nodes[i];
+
+ if (node.isEmpty(nonEmptyElements))
+ node.empty().append(new tinymce.html.Node('br', 1)).shortEnded = true;
+ }
+ });
+
+ self.serializer = new tinymce.dom.Serializer(settings, self.dom, self.schema);
+
+ self.selection = new tinymce.dom.Selection(self.dom, self.getWin(), self.serializer, self);
+
+ self.formatter = new tinymce.Formatter(self);
+
+ self.undoManager = new tinymce.UndoManager(self);
+
+ self.forceBlocks = new tinymce.ForceBlocks(self);
+ self.enterKey = new tinymce.EnterKey(self);
+ self.editorCommands = new tinymce.EditorCommands(self);
+
+ self.onExecCommand.add(function(editor, command) {
+ // Don't refresh the select lists until caret move
+ if (!/^(FontName|FontSize)$/.test(command))
+ self.nodeChanged();
+ });
+
+ // Pass through
+ self.serializer.onPreProcess.add(function(se, o) {
+ return self.onPreProcess.dispatch(self, o, se);
+ });
+
+ self.serializer.onPostProcess.add(function(se, o) {
+ return self.onPostProcess.dispatch(self, o, se);
+ });
+
+ self.onPreInit.dispatch(self);
+
+ if (!settings.browser_spellcheck && !settings.gecko_spellcheck)
+ doc.body.spellcheck = false;
+
+ if (!settings.readonly) {
+ self.bindNativeEvents();
+ }
+
+ self.controlManager.onPostRender.dispatch(self, self.controlManager);
+ self.onPostRender.dispatch(self);
+
+ self.quirks = tinymce.util.Quirks(self);
+
+ if (settings.directionality)
+ body.dir = settings.directionality;
+
+ if (settings.nowrap)
+ body.style.whiteSpace = "nowrap";
+
+ if (settings.protect) {
+ self.onBeforeSetContent.add(function(ed, o) {
+ each(settings.protect, function(pattern) {
+ o.content = o.content.replace(pattern, function(str) {
+ return '<!--mce:protected ' + escape(str) + '-->';
+ });
+ });
+ });
+ }
+
+ // Add visual aids when new contents is added
+ self.onSetContent.add(function() {
+ self.addVisual(self.getBody());
+ });
+
+ // Remove empty contents
+ if (settings.padd_empty_editor) {
+ self.onPostProcess.add(function(ed, o) {
+ o.content = o.content.replace(/^(<p[^>]*>(&nbsp;|&#160;|\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/, '');
+ });
+ }
+
+ self.load({initial : true, format : 'html'});
+ self.startContent = self.getContent({format : 'raw'});
+
+ self.initialized = true;
+
+ self.onInit.dispatch(self);
+ self.execCallback('setupcontent_callback', self.id, body, doc);
+ self.execCallback('init_instance_callback', self);
+ self.focus(true);
+ self.nodeChanged({initial : true});
+
+ // Add editor specific CSS styles
+ if (self.contentStyles.length > 0) {
+ contentCssText = '';
+
+ each(self.contentStyles, function(style) {
+ contentCssText += style + "\r\n";
+ });
+
+ self.dom.addStyle(contentCssText);
+ }
+
+ // Load specified content CSS last
+ each(self.contentCSS, function(url) {
+ self.dom.loadCSS(url);
+ });
+
+ // Handle auto focus
+ if (settings.auto_focus) {
+ setTimeout(function () {
+ var ed = tinymce.get(settings.auto_focus);
+
+ ed.selection.select(ed.getBody(), 1);
+ ed.selection.collapse(1);
+ ed.getBody().focus();
+ ed.getWin().focus();
+ }, 100);
+ }
+
+ // Clean up references for IE
+ targetElm = doc = body = null;
+ },
+
+ focus : function(skip_focus) {
+ var oed, self = this, selection = self.selection, contentEditable = self.settings.content_editable, ieRng, controlElm, doc = self.getDoc(), body;
+
+ if (!skip_focus) {
+ if (self.lastIERng) {
+ selection.setRng(self.lastIERng);
+ }
+
+ // Get selected control element
+ ieRng = selection.getRng();
+ if (ieRng.item) {
+ controlElm = ieRng.item(0);
+ }
+
+ self._refreshContentEditable();
+
+ // Focus the window iframe
+ if (!contentEditable) {
+ self.getWin().focus();
+ }
+
+ // Focus the body as well since it's contentEditable
+ if (tinymce.isGecko || contentEditable) {
+ body = self.getBody();
+
+ // Check for setActive since it doesn't scroll to the element
+ if (body.setActive) {
+ body.setActive();
+ } else {
+ body.focus();
+ }
+
+ if (contentEditable) {
+ selection.normalize();
+ }
+ }
+
+ // Restore selected control element
+ // This is needed when for example an image is selected within a
+ // layer a call to focus will then remove the control selection
+ if (controlElm && controlElm.ownerDocument == doc) {
+ ieRng = doc.body.createControlRange();
+ ieRng.addElement(controlElm);
+ ieRng.select();
+ }
+ }
+
+ if (tinymce.activeEditor != self) {
+ if ((oed = tinymce.activeEditor) != null)
+ oed.onDeactivate.dispatch(oed, self);
+
+ self.onActivate.dispatch(self, oed);
+ }
+
+ tinymce._setActive(self);
+ },
+
+ execCallback : function(n) {
+ var t = this, f = t.settings[n], s;
+
+ if (!f)
+ return;
+
+ // Look through lookup
+ if (t.callbackLookup && (s = t.callbackLookup[n])) {
+ f = s.func;
+ s = s.scope;
+ }
+
+ if (is(f, 'string')) {
+ s = f.replace(/\.\w+$/, '');
+ s = s ? tinymce.resolve(s) : 0;
+ f = tinymce.resolve(f);
+ t.callbackLookup = t.callbackLookup || {};
+ t.callbackLookup[n] = {func : f, scope : s};
+ }
+
+ return f.apply(s || t, Array.prototype.slice.call(arguments, 1));
+ },
+
+ translate : function(s) {
+ var c = this.settings.language || 'en', i18n = tinymce.i18n;
+
+ if (!s)
+ return '';
+
+ return i18n[c + '.' + s] || s.replace(/\{\#([^\}]+)\}/g, function(a, b) {
+ return i18n[c + '.' + b] || '{#' + b + '}';
+ });
+ },
+
+ getLang : function(n, dv) {
+ return tinymce.i18n[(this.settings.language || 'en') + '.' + n] || (is(dv) ? dv : '{#' + n + '}');
+ },
+
+ getParam : function(n, dv, ty) {
+ var tr = tinymce.trim, v = is(this.settings[n]) ? this.settings[n] : dv, o;
+
+ if (ty === 'hash') {
+ o = {};
+
+ if (is(v, 'string')) {
+ each(v.indexOf('=') > 0 ? v.split(/[;,](?![^=;,]*(?:[;,]|$))/) : v.split(','), function(v) {
+ v = v.split('=');
+
+ if (v.length > 1)
+ o[tr(v[0])] = tr(v[1]);
+ else
+ o[tr(v[0])] = tr(v);
+ });
+ } else
+ o = v;
+
+ return o;
+ }
+
+ return v;
+ },
+
+ nodeChanged : function(o) {
+ var self = this, selection = self.selection, node;
+
+ // Fix for bug #1896577 it seems that this can not be fired while the editor is loading
+ if (self.initialized) {
+ o = o || {};
+
+ // Get start node
+ node = selection.getStart() || self.getBody();
+ node = isIE && node.ownerDocument != self.getDoc() ? self.getBody() : node; // Fix for IE initial state
+
+ // Get parents and add them to object
+ o.parents = [];
+ self.dom.getParent(node, function(node) {
+ if (node.nodeName == 'BODY')
+ return true;
+
+ o.parents.push(node);
+ });
+
+ self.onNodeChange.dispatch(
+ self,
+ o ? o.controlManager || self.controlManager : self.controlManager,
+ node,
+ selection.isCollapsed(),
+ o
+ );
+ }
+ },
+
+ addButton : function(name, settings) {
+ var self = this;
+
+ self.buttons = self.buttons || {};
+ self.buttons[name] = settings;
+ },
+
+ addCommand : function(name, callback, scope) {
+ this.execCommands[name] = {func : callback, scope : scope || this};
+ },
+
+ addQueryStateHandler : function(name, callback, scope) {
+ this.queryStateCommands[name] = {func : callback, scope : scope || this};
+ },
+
+ addQueryValueHandler : function(name, callback, scope) {
+ this.queryValueCommands[name] = {func : callback, scope : scope || this};
+ },
+
+ addShortcut : function(pa, desc, cmd_func, sc) {
+ var t = this, c;
+
+ if (t.settings.custom_shortcuts === false)
+ return false;
+
+ t.shortcuts = t.shortcuts || {};
+
+ if (is(cmd_func, 'string')) {
+ c = cmd_func;
+
+ cmd_func = function() {
+ t.execCommand(c, false, null);
+ };
+ }
+
+ if (is(cmd_func, 'object')) {
+ c = cmd_func;
+
+ cmd_func = function() {
+ t.execCommand(c[0], c[1], c[2]);
+ };
+ }
+
+ each(explode(pa), function(pa) {
+ var o = {
+ func : cmd_func,
+ scope : sc || this,
+ desc : t.translate(desc),
+ alt : false,
+ ctrl : false,
+ shift : false
+ };
+
+ each(explode(pa, '+'), function(v) {
+ switch (v) {
+ case 'alt':
+ case 'ctrl':
+ case 'shift':
+ o[v] = true;
+ break;
+
+ default:
+ o.charCode = v.charCodeAt(0);
+ o.keyCode = v.toUpperCase().charCodeAt(0);
+ }
+ });
+
+ t.shortcuts[(o.ctrl ? 'ctrl' : '') + ',' + (o.alt ? 'alt' : '') + ',' + (o.shift ? 'shift' : '') + ',' + o.keyCode] = o;
+ });
+
+ return true;
+ },
+
+ execCommand : function(cmd, ui, val, a) {
+ var t = this, s = 0, o, st;
+
+ if (!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(cmd) && (!a || !a.skip_focus))
+ t.focus();
+
+ a = extend({}, a);
+ t.onBeforeExecCommand.dispatch(t, cmd, ui, val, a);
+ if (a.terminate)
+ return false;
+
+ // Command callback
+ if (t.execCallback('execcommand_callback', t.id, t.selection.getNode(), cmd, ui, val)) {
+ t.onExecCommand.dispatch(t, cmd, ui, val, a);
+ return true;
+ }
+
+ // Registred commands
+ if (o = t.execCommands[cmd]) {
+ st = o.func.call(o.scope, ui, val);
+
+ // Fall through on true
+ if (st !== true) {
+ t.onExecCommand.dispatch(t, cmd, ui, val, a);
+ return st;
+ }
+ }
+
+ // Plugin commands
+ each(t.plugins, function(p) {
+ if (p.execCommand && p.execCommand(cmd, ui, val)) {
+ t.onExecCommand.dispatch(t, cmd, ui, val, a);
+ s = 1;
+ return false;
+ }
+ });
+
+ if (s)
+ return true;
+
+ // Theme commands
+ if (t.theme && t.theme.execCommand && t.theme.execCommand(cmd, ui, val)) {
+ t.onExecCommand.dispatch(t, cmd, ui, val, a);
+ return true;
+ }
+
+ // Editor commands
+ if (t.editorCommands.execCommand(cmd, ui, val)) {
+ t.onExecCommand.dispatch(t, cmd, ui, val, a);
+ return true;
+ }
+
+ // Browser commands
+ t.getDoc().execCommand(cmd, ui, val);
+ t.onExecCommand.dispatch(t, cmd, ui, val, a);
+ },
+
+ queryCommandState : function(cmd) {
+ var t = this, o, s;
+
+ // Is hidden then return undefined
+ if (t._isHidden())
+ return;
+
+ // Registred commands
+ if (o = t.queryStateCommands[cmd]) {
+ s = o.func.call(o.scope);
+
+ // Fall though on true
+ if (s !== true)
+ return s;
+ }
+
+ // Registred commands
+ o = t.editorCommands.queryCommandState(cmd);
+ if (o !== -1)
+ return o;
+
+ // Browser commands
+ try {
+ return this.getDoc().queryCommandState(cmd);
+ } catch (ex) {
+ // Fails sometimes see bug: 1896577
+ }
+ },
+
+ queryCommandValue : function(c) {
+ var t = this, o, s;
+
+ // Is hidden then return undefined
+ if (t._isHidden())
+ return;
+
+ // Registred commands
+ if (o = t.queryValueCommands[c]) {
+ s = o.func.call(o.scope);
+
+ // Fall though on true
+ if (s !== true)
+ return s;
+ }
+
+ // Registred commands
+ o = t.editorCommands.queryCommandValue(c);
+ if (is(o))
+ return o;
+
+ // Browser commands
+ try {
+ return this.getDoc().queryCommandValue(c);
+ } catch (ex) {
+ // Fails sometimes see bug: 1896577
+ }
+ },
+
+ show : function() {
+ var self = this;
+
+ DOM.show(self.getContainer());
+ DOM.hide(self.id);
+ self.load();
+ },
+
+ hide : function() {
+ var self = this, doc = self.getDoc();
+
+ // Fixed bug where IE has a blinking cursor left from the editor
+ if (isIE && doc)
+ doc.execCommand('SelectAll');
+
+ // We must save before we hide so Safari doesn't crash
+ self.save();
+
+ // defer the call to hide to prevent an IE9 crash #4921
+ setTimeout(function() {
+ DOM.hide(self.getContainer());
+ }, 1);
+ DOM.setStyle(self.id, 'display', self.orgDisplay);
+ },
+
+ isHidden : function() {
+ return !DOM.isHidden(this.id);
+ },
+
+ setProgressState : function(b, ti, o) {
+ this.onSetProgressState.dispatch(this, b, ti, o);
+
+ return b;
+ },
+
+ load : function(o) {
+ var t = this, e = t.getElement(), h;
+
+ if (e) {
+ o = o || {};
+ o.load = true;
+
+ // Double encode existing entities in the value
+ h = t.setContent(is(e.value) ? e.value : e.innerHTML, o);
+ o.element = e;
+
+ if (!o.no_events)
+ t.onLoadContent.dispatch(t, o);
+
+ o.element = e = null;
+
+ return h;
+ }
+ },
+
+ save : function(o) {
+ var t = this, e = t.getElement(), h, f;
+
+ if (!e || !t.initialized)
+ return;
+
+ o = o || {};
+ o.save = true;
+
+ o.element = e;
+ h = o.content = t.getContent(o);
+
+ if (!o.no_events)
+ t.onSaveContent.dispatch(t, o);
+
+ h = o.content;
+
+ if (!/TEXTAREA|INPUT/i.test(e.nodeName)) {
+ e.innerHTML = h;
+
+ // Update hidden form element
+ if (f = DOM.getParent(t.id, 'form')) {
+ each(f.elements, function(e) {
+ if (e.name == t.id) {
+ e.value = h;
+ return false;
+ }
+ });
+ }
+ } else
+ e.value = h;
+
+ o.element = e = null;
+
+ return h;
+ },
+
+ setContent : function(content, args) {
+ var self = this, rootNode, body = self.getBody(), forcedRootBlockName;
+
+ // Setup args object
+ args = args || {};
+ args.format = args.format || 'html';
+ args.set = true;
+ args.content = content;
+
+ // Do preprocessing
+ if (!args.no_events)
+ self.onBeforeSetContent.dispatch(self, args);
+
+ content = args.content;
+
+ // Padd empty content in Gecko and Safari. Commands will otherwise fail on the content
+ // It will also be impossible to place the caret in the editor unless there is a BR element present
+ if (!tinymce.isIE && (content.length === 0 || /^\s+$/.test(content))) {
+ forcedRootBlockName = self.settings.forced_root_block;
+ if (forcedRootBlockName)
+ content = '<' + forcedRootBlockName + '><br data-mce-bogus="1"></' + forcedRootBlockName + '>';
+ else
+ content = '<br data-mce-bogus="1">';
+
+ body.innerHTML = content;
+ self.selection.select(body, true);
+ self.selection.collapse(true);
+ return;
+ }
+
+ // Parse and serialize the html
+ if (args.format !== 'raw') {
+ content = new tinymce.html.Serializer({}, self.schema).serialize(
+ self.parser.parse(content)
+ );
+ }
+
+ // Set the new cleaned contents to the editor
+ args.content = tinymce.trim(content);
+ self.dom.setHTML(body, args.content);
+
+ // Do post processing
+ if (!args.no_events)
+ self.onSetContent.dispatch(self, args);
+
+ // Don't normalize selection if the focused element isn't the body in content editable mode since it will steal focus otherwise
+ if (!self.settings.content_editable || document.activeElement === self.getBody()) {
+ self.selection.normalize();
+ }
+
+ return args.content;
+ },
+
+ getContent : function(args) {
+ var self = this, content, body = self.getBody();
+
+ // Setup args object
+ args = args || {};
+ args.format = args.format || 'html';
+ args.get = true;
+ args.getInner = true;
+
+ // Do preprocessing
+ if (!args.no_events)
+ self.onBeforeGetContent.dispatch(self, args);
+
+ // Get raw contents or by default the cleaned contents
+ if (args.format == 'raw')
+ content = body.innerHTML;
+ else if (args.format == 'text')
+ content = body.innerText || body.textContent;
+ else
+ content = self.serializer.serialize(body, args);
+
+ // Trim whitespace in beginning/end of HTML
+ if (args.format != 'text') {
+ args.content = tinymce.trim(content);
+ } else {
+ args.content = content;
+ }
+
+ // Do post processing
+ if (!args.no_events)
+ self.onGetContent.dispatch(self, args);
+
+ return args.content;
+ },
+
+ isDirty : function() {
+ var self = this;
+
+ return tinymce.trim(self.startContent) != tinymce.trim(self.getContent({format : 'raw', no_events : 1})) && !self.isNotDirty;
+ },
+
+ getContainer : function() {
+ var self = this;
+
+ if (!self.container)
+ self.container = DOM.get(self.editorContainer || self.id + '_parent');
+
+ return self.container;
+ },
+
+ getContentAreaContainer : function() {
+ return this.contentAreaContainer;
+ },
+
+ getElement : function() {
+ return DOM.get(this.settings.content_element || this.id);
+ },
+
+ getWin : function() {
+ var self = this, elm;
+
+ if (!self.contentWindow) {
+ elm = DOM.get(self.id + "_ifr");
+
+ if (elm)
+ self.contentWindow = elm.contentWindow;
+ }
+
+ return self.contentWindow;
+ },
+
+ getDoc : function() {
+ var self = this, win;
+
+ if (!self.contentDocument) {
+ win = self.getWin();
+
+ if (win)
+ self.contentDocument = win.document;
+ }
+
+ return self.contentDocument;
+ },
+
+ getBody : function() {
+ return this.bodyElement || this.getDoc().body;
+ },
+
+ convertURL : function(url, name, elm) {
+ var self = this, settings = self.settings;
+
+ // Use callback instead
+ if (settings.urlconverter_callback)
+ return self.execCallback('urlconverter_callback', url, elm, true, name);
+
+ // Don't convert link href since thats the CSS files that gets loaded into the editor also skip local file URLs
+ if (!settings.convert_urls || (elm && elm.nodeName == 'LINK') || url.indexOf('file:') === 0)
+ return url;
+
+ // Convert to relative
+ if (settings.relative_urls)
+ return self.documentBaseURI.toRelative(url);
+
+ // Convert to absolute
+ url = self.documentBaseURI.toAbsolute(url, settings.remove_script_host);
+
+ return url;
+ },
+
+ addVisual : function(elm) {
+ var self = this, settings = self.settings, dom = self.dom, cls;
+
+ elm = elm || self.getBody();
+
+ if (!is(self.hasVisual))
+ self.hasVisual = settings.visual;
+
+ each(dom.select('table,a', elm), function(elm) {
+ var value;
+
+ switch (elm.nodeName) {
+ case 'TABLE':
+ cls = settings.visual_table_class || 'mceItemTable';
+ value = dom.getAttrib(elm, 'border');
+
+ if (!value || value == '0') {
+ if (self.hasVisual)
+ dom.addClass(elm, cls);
+ else
+ dom.removeClass(elm, cls);
+ }
+
+ return;
+
+ case 'A':
+ if (!dom.getAttrib(elm, 'href', false)) {
+ value = dom.getAttrib(elm, 'name') || elm.id;
+ cls = 'mceItemAnchor';
+
+ if (value) {
+ if (self.hasVisual)
+ dom.addClass(elm, cls);
+ else
+ dom.removeClass(elm, cls);
+ }
+ }
+
+ return;
+ }
+ });
+
+ self.onVisualAid.dispatch(self, elm, self.hasVisual);
+ },
+
+ remove : function() {
+ var self = this, elm = self.getContainer();
+
+ if (!self.removed) {
+ self.removed = 1; // Cancels post remove event execution
+ self.hide();
+
+ // Don't clear the window or document if content editable
+ // is enabled since other instances might still be present
+ if (!self.settings.content_editable) {
+ Event.unbind(self.getWin());
+ Event.unbind(self.getDoc());
+ }
+
+ Event.unbind(self.getBody());
+ Event.clear(elm);
+
+ self.execCallback('remove_instance_callback', self);
+ self.onRemove.dispatch(self);
+
+ // Clear all execCommand listeners this is required to avoid errors if the editor was removed inside another command
+ self.onExecCommand.listeners = [];
+
+ tinymce.remove(self);
+ DOM.remove(elm);
+ }
+ },
+
+ destroy : function(s) {
+ var t = this;
+
+ // One time is enough
+ if (t.destroyed)
+ return;
+
+ // We must unbind on Gecko since it would otherwise produce the pesky "attempt to run compile-and-go script on a cleared scope" message
+ if (isGecko) {
+ Event.unbind(t.getDoc());
+ Event.unbind(t.getWin());
+ Event.unbind(t.getBody());
+ }
+
+ if (!s) {
+ tinymce.removeUnload(t.destroy);
+ tinyMCE.onBeforeUnload.remove(t._beforeUnload);
+
+ // Manual destroy
+ if (t.theme && t.theme.destroy)
+ t.theme.destroy();
+
+ // Destroy controls, selection and dom
+ t.controlManager.destroy();
+ t.selection.destroy();
+ t.dom.destroy();
+ }
+
+ if (t.formElement) {
+ t.formElement.submit = t.formElement._mceOldSubmit;
+ t.formElement._mceOldSubmit = null;
+ }
+
+ t.contentAreaContainer = t.formElement = t.container = t.settings.content_element = t.bodyElement = t.contentDocument = t.contentWindow = null;
+
+ if (t.selection)
+ t.selection = t.selection.win = t.selection.dom = t.selection.dom.doc = null;
+
+ t.destroyed = 1;
+ },
+
+ // Internal functions
+
+ _refreshContentEditable : function() {
+ var self = this, body, parent;
+
+ // Check if the editor was hidden and the re-initalize contentEditable mode by removing and adding the body again
+ if (self._isHidden()) {
+ body = self.getBody();
+ parent = body.parentNode;
+
+ parent.removeChild(body);
+ parent.appendChild(body);
+
+ body.focus();
+ }
+ },
+
+ _isHidden : function() {
+ var s;
+
+ if (!isGecko)
+ return 0;
+
+ // Weird, wheres that cursor selection?
+ s = this.selection.getSel();
+ return (!s || !s.rangeCount || s.rangeCount === 0);
+ }
+ });
+})(tinymce);
+(function(tinymce) {
+ var each = tinymce.each;
+
+ tinymce.Editor.prototype.setupEvents = function() {
+ var self = this, settings = self.settings;
+
+ // Add events to the editor
+ each([
+ 'onPreInit',
+
+ 'onBeforeRenderUI',
+
+ 'onPostRender',
+
+ 'onLoad',
+
+ 'onInit',
+
+ 'onRemove',
+
+ 'onActivate',
+
+ 'onDeactivate',
+
+ 'onClick',
+
+ 'onEvent',
+
+ 'onMouseUp',
+
+ 'onMouseDown',
+
+ 'onDblClick',
+
+ 'onKeyDown',
+
+ 'onKeyUp',
+
+ 'onKeyPress',
+
+ 'onContextMenu',
+
+ 'onSubmit',
+
+ 'onReset',
+
+ 'onPaste',
+
+ 'onPreProcess',
+
+ 'onPostProcess',
+
+ 'onBeforeSetContent',
+
+ 'onBeforeGetContent',
+
+ 'onSetContent',
+
+ 'onGetContent',
+
+ 'onLoadContent',
+
+ 'onSaveContent',
+
+ 'onNodeChange',
+
+ 'onChange',
+
+ 'onBeforeExecCommand',
+
+ 'onExecCommand',
+
+ 'onUndo',
+
+ 'onRedo',
+
+ 'onVisualAid',
+
+ 'onSetProgressState',
+
+ 'onSetAttrib'
+ ], function(name) {
+ self[name] = new tinymce.util.Dispatcher(self);
+ });
+
+ // Handle legacy cleanup_callback option
+ if (settings.cleanup_callback) {
+ self.onBeforeSetContent.add(function(ed, o) {
+ o.content = ed.execCallback('cleanup_callback', 'insert_to_editor', o.content, o);
+ });
+
+ self.onPreProcess.add(function(ed, o) {
+ if (o.set)
+ ed.execCallback('cleanup_callback', 'insert_to_editor_dom', o.node, o);
+
+ if (o.get)
+ ed.execCallback('cleanup_callback', 'get_from_editor_dom', o.node, o);
+ });
+
+ self.onPostProcess.add(function(ed, o) {
+ if (o.set)
+ o.content = ed.execCallback('cleanup_callback', 'insert_to_editor', o.content, o);
+
+ if (o.get)
+ o.content = ed.execCallback('cleanup_callback', 'get_from_editor', o.content, o);
+ });
+ }
+
+ // Handle legacy save_callback option
+ if (settings.save_callback) {
+ self.onGetContent.add(function(ed, o) {
+ if (o.save)
+ o.content = ed.execCallback('save_callback', ed.id, o.content, ed.getBody());
+ });
+ }
+
+ // Handle legacy handle_event_callback option
+ if (settings.handle_event_callback) {
+ self.onEvent.add(function(ed, e, o) {
+ if (self.execCallback('handle_event_callback', e, ed, o) === false) {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ });
+ }
+
+ // Handle legacy handle_node_change_callback option
+ if (settings.handle_node_change_callback) {
+ self.onNodeChange.add(function(ed, cm, n) {
+ ed.execCallback('handle_node_change_callback', ed.id, n, -1, -1, true, ed.selection.isCollapsed());
+ });
+ }
+
+ // Handle legacy save_callback option
+ if (settings.save_callback) {
+ self.onSaveContent.add(function(ed, o) {
+ var h = ed.execCallback('save_callback', ed.id, o.content, ed.getBody());
+
+ if (h)
+ o.content = h;
+ });
+ }
+
+ // Handle legacy onchange_callback option
+ if (settings.onchange_callback) {
+ self.onChange.add(function(ed, l) {
+ ed.execCallback('onchange_callback', ed, l);
+ });
+ }
+ };
+
+ tinymce.Editor.prototype.bindNativeEvents = function() {
+ // 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset
+ var self = this, i, settings = self.settings, dom = self.dom, nativeToDispatcherMap;
+
+ nativeToDispatcherMap = {
+ mouseup : 'onMouseUp',
+ mousedown : 'onMouseDown',
+ click : 'onClick',
+ keyup : 'onKeyUp',
+ keydown : 'onKeyDown',
+ keypress : 'onKeyPress',
+ submit : 'onSubmit',
+ reset : 'onReset',
+ contextmenu : 'onContextMenu',
+ dblclick : 'onDblClick',
+ paste : 'onPaste' // Doesn't work in all browsers yet
+ };
+
+ // Handler that takes a native event and sends it out to a dispatcher like onKeyDown
+ function eventHandler(evt, args) {
+ var type = evt.type;
+
+ // Don't fire events when it's removed
+ if (self.removed)
+ return;
+
+ // Sends the native event out to a global dispatcher then to the specific event dispatcher
+ if (self.onEvent.dispatch(self, evt, args) !== false) {
+ self[nativeToDispatcherMap[evt.fakeType || evt.type]].dispatch(self, evt, args);
+ }
+ };
+
+ // Opera doesn't support focus event for contentEditable elements so we need to fake it
+ function doOperaFocus(e) {
+ self.focus(true);
+ };
+
+ function nodeChanged(ed, e) {
+ // Normalize selection for example <b>a</b><i>|a</i> becomes <b>a|</b><i>a</i> except for Ctrl+A since it selects everything
+ if (e.keyCode != 65 || !tinymce.VK.metaKeyPressed(e)) {
+ self.selection.normalize();
+ }
+
+ self.nodeChanged();
+ }
+
+ // Add DOM events
+ each(nativeToDispatcherMap, function(dispatcherName, nativeName) {
+ var root = settings.content_editable ? self.getBody() : self.getDoc();
+
+ switch (nativeName) {
+ case 'contextmenu':
+ dom.bind(root, nativeName, eventHandler);
+ break;
+
+ case 'paste':
+ dom.bind(self.getBody(), nativeName, eventHandler);
+ break;
+
+ case 'submit':
+ case 'reset':
+ dom.bind(self.getElement().form || tinymce.DOM.getParent(self.id, 'form'), nativeName, eventHandler);
+ break;
+
+ default:
+ dom.bind(root, nativeName, eventHandler);
+ }
+ });
+
+ // Set the editor as active when focused
+ dom.bind(settings.content_editable ? self.getBody() : (tinymce.isGecko ? self.getDoc() : self.getWin()), 'focus', function(e) {
+ self.focus(true);
+ });
+
+ if (settings.content_editable && tinymce.isOpera) {
+ dom.bind(self.getBody(), 'click', doOperaFocus);
+ dom.bind(self.getBody(), 'keydown', doOperaFocus);
+ }
+
+ // Add node change handler
+ self.onMouseUp.add(nodeChanged);
+
+ self.onKeyUp.add(function(ed, e) {
+ var keyCode = e.keyCode;
+
+ if ((keyCode >= 33 && keyCode <= 36) || (keyCode >= 37 && keyCode <= 40) || keyCode == 13 || keyCode == 45 || keyCode == 46 || keyCode == 8 || (tinymce.isMac && (keyCode == 91 || keyCode == 93)) || e.ctrlKey)
+ nodeChanged(ed, e);
+ });
+
+ // Add reset handler
+ self.onReset.add(function() {
+ self.setContent(self.startContent, {format : 'raw'});
+ });
+
+ // Add shortcuts
+ function handleShortcut(e, execute) {
+ if (e.altKey || e.ctrlKey || e.metaKey) {
+ each(self.shortcuts, function(shortcut) {
+ var ctrlState = tinymce.isMac ? e.metaKey : e.ctrlKey;
+
+ if (shortcut.ctrl != ctrlState || shortcut.alt != e.altKey || shortcut.shift != e.shiftKey)
+ return;
+
+ if (e.keyCode == shortcut.keyCode || (e.charCode && e.charCode == shortcut.charCode)) {
+ e.preventDefault();
+
+ if (execute) {
+ shortcut.func.call(shortcut.scope);
+ }
+
+ return true;
+ }
+ });
+ }
+ };
+
+ self.onKeyUp.add(function(ed, e) {
+ handleShortcut(e);
+ });
+
+ self.onKeyPress.add(function(ed, e) {
+ handleShortcut(e);
+ });
+
+ self.onKeyDown.add(function(ed, e) {
+ handleShortcut(e, true);
+ });
+
+ if (tinymce.isOpera) {
+ self.onClick.add(function(ed, e) {
+ e.preventDefault();
+ });
+ }
+ };
+})(tinymce);
+(function(tinymce) {
+ // Added for compression purposes
+ var each = tinymce.each, undef, TRUE = true, FALSE = false;
+
+ tinymce.EditorCommands = function(editor) {
+ var dom = editor.dom,
+ selection = editor.selection,
+ commands = {state: {}, exec : {}, value : {}},
+ settings = editor.settings,
+ formatter = editor.formatter,
+ bookmark;
+
+ function execCommand(command, ui, value) {
+ var func;
+
+ command = command.toLowerCase();
+ if (func = commands.exec[command]) {
+ func(command, ui, value);
+ return TRUE;
+ }
+
+ return FALSE;
+ };
+
+ function queryCommandState(command) {
+ var func;
+
+ command = command.toLowerCase();
+ if (func = commands.state[command])
+ return func(command);
+
+ return -1;
+ };
+
+ function queryCommandValue(command) {
+ var func;
+
+ command = command.toLowerCase();
+ if (func = commands.value[command])
+ return func(command);
+
+ return FALSE;
+ };
+
+ function addCommands(command_list, type) {
+ type = type || 'exec';
+
+ each(command_list, function(callback, command) {
+ each(command.toLowerCase().split(','), function(command) {
+ commands[type][command] = callback;
+ });
+ });
+ };
+
+ // Expose public methods
+ tinymce.extend(this, {
+ execCommand : execCommand,
+ queryCommandState : queryCommandState,
+ queryCommandValue : queryCommandValue,
+ addCommands : addCommands
+ });
+
+ // Private methods
+
+ function execNativeCommand(command, ui, value) {
+ if (ui === undef)
+ ui = FALSE;
+
+ if (value === undef)
+ value = null;
+
+ return editor.getDoc().execCommand(command, ui, value);
+ };
+
+ function isFormatMatch(name) {
+ return formatter.match(name);
+ };
+
+ function toggleFormat(name, value) {
+ formatter.toggle(name, value ? {value : value} : undef);
+ };
+
+ function storeSelection(type) {
+ bookmark = selection.getBookmark(type);
+ };
+
+ function restoreSelection() {
+ selection.moveToBookmark(bookmark);
+ };
+
+ // Add execCommand overrides
+ addCommands({
+ // Ignore these, added for compatibility
+ 'mceResetDesignMode,mceBeginUndoLevel' : function() {},
+
+ // Add undo manager logic
+ 'mceEndUndoLevel,mceAddUndoLevel' : function() {
+ editor.undoManager.add();
+ },
+
+ 'Cut,Copy,Paste' : function(command) {
+ var doc = editor.getDoc(), failed;
+
+ // Try executing the native command
+ try {
+ execNativeCommand(command);
+ } catch (ex) {
+ // Command failed
+ failed = TRUE;
+ }
+
+ // Present alert message about clipboard access not being available
+ if (failed || !doc.queryCommandSupported(command)) {
+ if (tinymce.isGecko) {
+ editor.windowManager.confirm(editor.getLang('clipboard_msg'), function(state) {
+ if (state)
+ open('http://www.mozilla.org/editor/midasdemo/securityprefs.html', '_blank');
+ });
+ } else
+ editor.windowManager.alert(editor.getLang('clipboard_no_support'));
+ }
+ },
+
+ // Override unlink command
+ unlink : function(command) {
+ if (selection.isCollapsed())
+ selection.select(selection.getNode());
+
+ execNativeCommand(command);
+ selection.collapse(FALSE);
+ },
+
+ // Override justify commands to use the text formatter engine
+ 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) {
+ var align = command.substring(7);
+
+ // Remove all other alignments first
+ each('left,center,right,full'.split(','), function(name) {
+ if (align != name)
+ formatter.remove('align' + name);
+ });
+
+ toggleFormat('align' + align);
+ execCommand('mceRepaint');
+ },
+
+ // Override list commands to fix WebKit bug
+ 'InsertUnorderedList,InsertOrderedList' : function(command) {
+ var listElm, listParent;
+
+ execNativeCommand(command);
+
+ // WebKit produces lists within block elements so we need to split them
+ // we will replace the native list creation logic to custom logic later on
+ // TODO: Remove this when the list creation logic is removed
+ listElm = dom.getParent(selection.getNode(), 'ol,ul');
+ if (listElm) {
+ listParent = listElm.parentNode;
+
+ // If list is within a text block then split that block
+ if (/^(H[1-6]|P|ADDRESS|PRE)$/.test(listParent.nodeName)) {
+ storeSelection();
+ dom.split(listParent, listElm);
+ restoreSelection();
+ }
+ }
+ },
+
+ // Override commands to use the text formatter engine
+ 'Bold,Italic,Underline,Strikethrough,Superscript,Subscript' : function(command) {
+ toggleFormat(command);
+ },
+
+ // Override commands to use the text formatter engine
+ 'ForeColor,HiliteColor,FontName' : function(command, ui, value) {
+ toggleFormat(command, value);
+ },
+
+ FontSize : function(command, ui, value) {
+ var fontClasses, fontSizes;
+
+ // Convert font size 1-7 to styles
+ if (value >= 1 && value <= 7) {
+ fontSizes = tinymce.explode(settings.font_size_style_values);
+ fontClasses = tinymce.explode(settings.font_size_classes);
+
+ if (fontClasses)
+ value = fontClasses[value - 1] || value;
+ else
+ value = fontSizes[value - 1] || value;
+ }
+
+ toggleFormat(command, value);
+ },
+
+ RemoveFormat : function(command) {
+ formatter.remove(command);
+ },
+
+ mceBlockQuote : function(command) {
+ toggleFormat('blockquote');
+ },
+
+ FormatBlock : function(command, ui, value) {
+ return toggleFormat(value || 'p');
+ },
+
+ mceCleanup : function() {
+ var bookmark = selection.getBookmark();
+
+ editor.setContent(editor.getContent({cleanup : TRUE}), {cleanup : TRUE});
+
+ selection.moveToBookmark(bookmark);
+ },
+
+ mceRemoveNode : function(command, ui, value) {
+ var node = value || selection.getNode();
+
+ // Make sure that the body node isn't removed
+ if (node != editor.getBody()) {
+ storeSelection();
+ editor.dom.remove(node, TRUE);
+ restoreSelection();
+ }
+ },
+
+ mceSelectNodeDepth : function(command, ui, value) {
+ var counter = 0;
+
+ dom.getParent(selection.getNode(), function(node) {
+ if (node.nodeType == 1 && counter++ == value) {
+ selection.select(node);
+ return FALSE;
+ }
+ }, editor.getBody());
+ },
+
+ mceSelectNode : function(command, ui, value) {
+ selection.select(value);
+ },
+
+ mceInsertContent : function(command, ui, value) {
+ var parser, serializer, parentNode, rootNode, fragment, args,
+ marker, nodeRect, viewPortRect, rng, node, node2, bookmarkHtml, viewportBodyElement;
+
+ //selection.normalize();
+
+ // Setup parser and serializer
+ parser = editor.parser;
+ serializer = new tinymce.html.Serializer({}, editor.schema);
+ bookmarkHtml = '<span id="mce_marker" data-mce-type="bookmark">\uFEFF</span>';
+
+ // Run beforeSetContent handlers on the HTML to be inserted
+ args = {content: value, format: 'html'};
+ selection.onBeforeSetContent.dispatch(selection, args);
+ value = args.content;
+
+ // Add caret at end of contents if it's missing
+ if (value.indexOf('{$caret}') == -1)
+ value += '{$caret}';
+
+ // Replace the caret marker with a span bookmark element
+ value = value.replace(/\{\$caret\}/, bookmarkHtml);
+
+ // Insert node maker where we will insert the new HTML and get it's parent
+ if (!selection.isCollapsed())
+ editor.getDoc().execCommand('Delete', false, null);
+
+ parentNode = selection.getNode();
+
+ // Parse the fragment within the context of the parent node
+ args = {context : parentNode.nodeName.toLowerCase()};
+ fragment = parser.parse(value, args);
+
+ // Move the caret to a more suitable location
+ node = fragment.lastChild;
+ if (node.attr('id') == 'mce_marker') {
+ marker = node;
+
+ for (node = node.prev; node; node = node.walk(true)) {
+ if (node.type == 3 || !dom.isBlock(node.name)) {
+ node.parent.insert(marker, node, node.name === 'br');
+ break;
+ }
+ }
+ }
+
+ // If parser says valid we can insert the contents into that parent
+ if (!args.invalid) {
+ value = serializer.serialize(fragment);
+
+ // Check if parent is empty or only has one BR element then set the innerHTML of that parent
+ node = parentNode.firstChild;
+ node2 = parentNode.lastChild;
+ if (!node || (node === node2 && node.nodeName === 'BR'))
+ dom.setHTML(parentNode, value);
+ else
+ selection.setContent(value);
+ } else {
+ // If the fragment was invalid within that context then we need
+ // to parse and process the parent it's inserted into
+
+ // Insert bookmark node and get the parent
+ selection.setContent(bookmarkHtml);
+ parentNode = selection.getNode();
+ rootNode = editor.getBody();
+
+ // Opera will return the document node when selection is in root
+ if (parentNode.nodeType == 9)
+ parentNode = node = rootNode;
+ else
+ node = parentNode;
+
+ // Find the ancestor just before the root element
+ while (node !== rootNode) {
+ parentNode = node;
+ node = node.parentNode;
+ }
+
+ // Get the outer/inner HTML depending on if we are in the root and parser and serialize that
+ value = parentNode == rootNode ? rootNode.innerHTML : dom.getOuterHTML(parentNode);
+ value = serializer.serialize(
+ parser.parse(
+ // Need to replace by using a function since $ in the contents would otherwise be a problem
+ value.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i, function() {
+ return serializer.serialize(fragment);
+ })
+ )
+ );
+
+ // Set the inner/outer HTML depending on if we are in the root or not
+ if (parentNode == rootNode)
+ dom.setHTML(rootNode, value);
+ else
+ dom.setOuterHTML(parentNode, value);
+ }
+
+ marker = dom.get('mce_marker');
+
+ // Scroll range into view scrollIntoView on element can't be used since it will scroll the main view port as well
+ nodeRect = dom.getRect(marker);
+ viewPortRect = dom.getViewPort(editor.getWin());
+
+ // Check if node is out side the viewport if it is then scroll to it
+ if ((nodeRect.y + nodeRect.h > viewPortRect.y + viewPortRect.h || nodeRect.y < viewPortRect.y) ||
+ (nodeRect.x > viewPortRect.x + viewPortRect.w || nodeRect.x < viewPortRect.x)) {
+ viewportBodyElement = tinymce.isIE ? editor.getDoc().documentElement : editor.getBody();
+ viewportBodyElement.scrollLeft = nodeRect.x;
+ viewportBodyElement.scrollTop = nodeRect.y - viewPortRect.h + 25;
+ }
+
+ // Move selection before marker and remove it
+ rng = dom.createRng();
+
+ // If previous sibling is a text node set the selection to the end of that node
+ node = marker.previousSibling;
+ if (node && node.nodeType == 3) {
+ rng.setStart(node, node.nodeValue.length);
+ } else {
+ // If the previous sibling isn't a text node or doesn't exist set the selection before the marker node
+ rng.setStartBefore(marker);
+ rng.setEndBefore(marker);
+ }
+
+ // Remove the marker node and set the new range
+ dom.remove(marker);
+ selection.setRng(rng);
+
+ // Dispatch after event and add any visual elements needed
+ selection.onSetContent.dispatch(selection, args);
+ editor.addVisual();
+ },
+
+ mceInsertRawHTML : function(command, ui, value) {
+ selection.setContent('tiny_mce_marker');
+ editor.setContent(editor.getContent().replace(/tiny_mce_marker/g, function() { return value }));
+ },
+
+ mceToggleFormat : function(command, ui, value) {
+ toggleFormat(value);
+ },
+
+ mceSetContent : function(command, ui, value) {
+ editor.setContent(value);
+ },
+
+ 'Indent,Outdent' : function(command) {
+ var intentValue, indentUnit, value;
+
+ // Setup indent level
+ intentValue = settings.indentation;
+ indentUnit = /[a-z%]+$/i.exec(intentValue);
+ intentValue = parseInt(intentValue);
+
+ if (!queryCommandState('InsertUnorderedList') && !queryCommandState('InsertOrderedList')) {
+ // If forced_root_blocks is set to false we don't have a block to indent so lets create a div
+ if (!settings.forced_root_block && !dom.getParent(selection.getNode(), dom.isBlock)) {
+ formatter.apply('div');
+ }
+
+ each(selection.getSelectedBlocks(), function(element) {
+ if (command == 'outdent') {
+ value = Math.max(0, parseInt(element.style.paddingLeft || 0) - intentValue);
+ dom.setStyle(element, 'paddingLeft', value ? value + indentUnit : '');
+ } else
+ dom.setStyle(element, 'paddingLeft', (parseInt(element.style.paddingLeft || 0) + intentValue) + indentUnit);
+ });
+ } else
+ execNativeCommand(command);
+ },
+
+ mceRepaint : function() {
+ var bookmark;
+
+ if (tinymce.isGecko) {
+ try {
+ storeSelection(TRUE);
+
+ if (selection.getSel())
+ selection.getSel().selectAllChildren(editor.getBody());
+
+ selection.collapse(TRUE);
+ restoreSelection();
+ } catch (ex) {
+ // Ignore
+ }
+ }
+ },
+
+ mceToggleFormat : function(command, ui, value) {
+ formatter.toggle(value);
+ },
+
+ InsertHorizontalRule : function() {
+ editor.execCommand('mceInsertContent', false, '<hr />');
+ },
+
+ mceToggleVisualAid : function() {
+ editor.hasVisual = !editor.hasVisual;
+ editor.addVisual();
+ },
+
+ mceReplaceContent : function(command, ui, value) {
+ editor.execCommand('mceInsertContent', false, value.replace(/\{\$selection\}/g, selection.getContent({format : 'text'})));
+ },
+
+ mceInsertLink : function(command, ui, value) {
+ var anchor;
+
+ if (typeof(value) == 'string')
+ value = {href : value};
+
+ anchor = dom.getParent(selection.getNode(), 'a');
+
+ // Spaces are never valid in URLs and it's a very common mistake for people to make so we fix it here.
+ value.href = value.href.replace(' ', '%20');
+
+ // Remove existing links if there could be child links or that the href isn't specified
+ if (!anchor || !value.href) {
+ formatter.remove('link');
+ }
+
+ // Apply new link to selection
+ if (value.href) {
+ formatter.apply('link', value, anchor);
+ }
+ },
+
+ selectAll : function() {
+ var root = dom.getRoot(), rng = dom.createRng();
+
+ // Old IE does a better job with selectall than new versions
+ if (selection.getRng().setStart) {
+ rng.setStart(root, 0);
+ rng.setEnd(root, root.childNodes.length);
+
+ selection.setRng(rng);
+ } else {
+ execNativeCommand('SelectAll');
+ }
+ }
+ });
+
+ // Add queryCommandState overrides
+ addCommands({
+ // Override justify commands
+ 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) {
+ var name = 'align' + command.substring(7);
+ var nodes = selection.isCollapsed() ? [dom.getParent(selection.getNode(), dom.isBlock)] : selection.getSelectedBlocks();
+ var matches = tinymce.map(nodes, function(node) {
+ return !!formatter.matchNode(node, name);
+ });
+ return tinymce.inArray(matches, TRUE) !== -1;
+ },
+
+ 'Bold,Italic,Underline,Strikethrough,Superscript,Subscript' : function(command) {
+ return isFormatMatch(command);
+ },
+
+ mceBlockQuote : function() {
+ return isFormatMatch('blockquote');
+ },
+
+ Outdent : function() {
+ var node;
+
+ if (settings.inline_styles) {
+ if ((node = dom.getParent(selection.getStart(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0)
+ return TRUE;
+
+ if ((node = dom.getParent(selection.getEnd(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0)
+ return TRUE;
+ }
+
+ return queryCommandState('InsertUnorderedList') || queryCommandState('InsertOrderedList') || (!settings.inline_styles && !!dom.getParent(selection.getNode(), 'BLOCKQUOTE'));
+ },
+
+ 'InsertUnorderedList,InsertOrderedList' : function(command) {
+ var list = dom.getParent(selection.getNode(), 'ul,ol');
+ return list &&
+ (command === 'insertunorderedlist' && list.tagName === 'UL'
+ || command === 'insertorderedlist' && list.tagName === 'OL');
+ }
+ }, 'state');
+
+ // Add queryCommandValue overrides
+ addCommands({
+ 'FontSize,FontName' : function(command) {
+ var value = 0, parent;
+
+ if (parent = dom.getParent(selection.getNode(), 'span')) {
+ if (command == 'fontsize')
+ value = parent.style.fontSize;
+ else
+ value = parent.style.fontFamily.replace(/, /g, ',').replace(/[\'\"]/g, '').toLowerCase();
+ }
+
+ return value;
+ }
+ }, 'value');
+
+ // Add undo manager logic
+ addCommands({
+ Undo : function() {
+ editor.undoManager.undo();
+ },
+
+ Redo : function() {
+ editor.undoManager.redo();
+ }
+ });
+ };
+})(tinymce);
+
+(function(tinymce) {
+ var Dispatcher = tinymce.util.Dispatcher;
+
+ tinymce.UndoManager = function(editor) {
+ var self, index = 0, data = [], beforeBookmark, onAdd, onUndo, onRedo;
+
+ function getContent() {
+ // Remove whitespace before/after and remove pure bogus nodes
+ return tinymce.trim(editor.getContent({format : 'raw', no_events : 1}).replace(/<span[^>]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\/span>/g, ''));
+ };
+
+ function addNonTypingUndoLevel() {
+ self.typing = false;
+ self.add();
+ };
+
+ // Create event instances
+ onBeforeAdd = new Dispatcher(self);
+ onAdd = new Dispatcher(self);
+ onUndo = new Dispatcher(self);
+ onRedo = new Dispatcher(self);
+
+ // Pass though onAdd event from UndoManager to Editor as onChange
+ onAdd.add(function(undoman, level) {
+ if (undoman.hasUndo())
+ return editor.onChange.dispatch(editor, level, undoman);
+ });
+
+ // Pass though onUndo event from UndoManager to Editor
+ onUndo.add(function(undoman, level) {
+ return editor.onUndo.dispatch(editor, level, undoman);
+ });
+
+ // Pass though onRedo event from UndoManager to Editor
+ onRedo.add(function(undoman, level) {
+ return editor.onRedo.dispatch(editor, level, undoman);
+ });
+
+ // Add initial undo level when the editor is initialized
+ editor.onInit.add(function() {
+ self.add();
+ });
+
+ // Get position before an execCommand is processed
+ editor.onBeforeExecCommand.add(function(ed, cmd, ui, val, args) {
+ if (cmd != 'Undo' && cmd != 'Redo' && cmd != 'mceRepaint' && (!args || !args.skip_undo)) {
+ self.beforeChange();
+ }
+ });
+
+ // Add undo level after an execCommand call was made
+ editor.onExecCommand.add(function(ed, cmd, ui, val, args) {
+ if (cmd != 'Undo' && cmd != 'Redo' && cmd != 'mceRepaint' && (!args || !args.skip_undo)) {
+ self.add();
+ }
+ });
+
+ // Add undo level on save contents, drag end and blur/focusout
+ editor.onSaveContent.add(addNonTypingUndoLevel);
+ editor.dom.bind(editor.dom.getRoot(), 'dragend', addNonTypingUndoLevel);
+ editor.dom.bind(editor.getDoc(), tinymce.isGecko ? 'blur' : 'focusout', function(e) {
+ if (!editor.removed && self.typing) {
+ addNonTypingUndoLevel();
+ }
+ });
+
+ editor.onKeyUp.add(function(editor, e) {
+ var keyCode = e.keyCode;
+
+ if ((keyCode >= 33 && keyCode <= 36) || (keyCode >= 37 && keyCode <= 40) || keyCode == 45 || keyCode == 13 || e.ctrlKey) {
+ addNonTypingUndoLevel();
+ }
+ });
+
+ editor.onKeyDown.add(function(editor, e) {
+ var keyCode = e.keyCode;
+
+ // Is caracter positon keys left,right,up,down,home,end,pgdown,pgup,enter
+ if ((keyCode >= 33 && keyCode <= 36) || (keyCode >= 37 && keyCode <= 40) || keyCode == 45) {
+ if (self.typing) {
+ addNonTypingUndoLevel();
+ }
+
+ return;
+ }
+
+ // If key isn't shift,ctrl,alt,capslock,metakey
+ if ((keyCode < 16 || keyCode > 20) && keyCode != 224 && keyCode != 91 && !self.typing) {
+ self.beforeChange();
+ self.typing = true;
+ self.add();
+ }
+ });
+
+ editor.onMouseDown.add(function(editor, e) {
+ if (self.typing) {
+ addNonTypingUndoLevel();
+ }
+ });
+
+ // Add keyboard shortcuts for undo/redo keys
+ editor.addShortcut('ctrl+z', 'undo_desc', 'Undo');
+ editor.addShortcut('ctrl+y', 'redo_desc', 'Redo');
+
+ self = {
+ // Explose for debugging reasons
+ data : data,
+
+ typing : false,
+
+ onBeforeAdd: onBeforeAdd,
+
+ onAdd : onAdd,
+
+ onUndo : onUndo,
+
+ onRedo : onRedo,
+
+ beforeChange : function() {
+ beforeBookmark = editor.selection.getBookmark(2, true);
+ },
+
+ add : function(level) {
+ var i, settings = editor.settings, lastLevel;
+
+ level = level || {};
+ level.content = getContent();
+
+ self.onBeforeAdd.dispatch(self, level);
+
+ // Add undo level if needed
+ lastLevel = data[index];
+ if (lastLevel && lastLevel.content == level.content)
+ return null;
+
+ // Set before bookmark on previous level
+ if (data[index])
+ data[index].beforeBookmark = beforeBookmark;
+
+ // Time to compress
+ if (settings.custom_undo_redo_levels) {
+ if (data.length > settings.custom_undo_redo_levels) {
+ for (i = 0; i < data.length - 1; i++)
+ data[i] = data[i + 1];
+
+ data.length--;
+ index = data.length;
+ }
+ }
+
+ // Get a non intrusive normalized bookmark
+ level.bookmark = editor.selection.getBookmark(2, true);
+
+ // Crop array if needed
+ if (index < data.length - 1)
+ data.length = index + 1;
+
+ data.push(level);
+ index = data.length - 1;
+
+ self.onAdd.dispatch(self, level);
+ editor.isNotDirty = 0;
+
+ return level;
+ },
+
+ undo : function() {
+ var level, i;
+
+ if (self.typing) {
+ self.add();
+ self.typing = false;
+ }
+
+ if (index > 0) {
+ level = data[--index];
+
+ editor.setContent(level.content, {format : 'raw'});
+ editor.selection.moveToBookmark(level.beforeBookmark);
+
+ self.onUndo.dispatch(self, level);
+ }
+
+ return level;
+ },
+
+ redo : function() {
+ var level;
+
+ if (index < data.length - 1) {
+ level = data[++index];
+
+ editor.setContent(level.content, {format : 'raw'});
+ editor.selection.moveToBookmark(level.bookmark);
+
+ self.onRedo.dispatch(self, level);
+ }
+
+ return level;
+ },
+
+ clear : function() {
+ data = [];
+ index = 0;
+ self.typing = false;
+ },
+
+ hasUndo : function() {
+ return index > 0 || this.typing;
+ },
+
+ hasRedo : function() {
+ return index < data.length - 1 && !this.typing;
+ }
+ };
+
+ return self;
+ };
+})(tinymce);
+
+tinymce.ForceBlocks = function(editor) {
+ var settings = editor.settings, dom = editor.dom, selection = editor.selection, blockElements = editor.schema.getBlockElements();
+
+ function addRootBlocks() {
+ var node = selection.getStart(), rootNode = editor.getBody(), rng, startContainer, startOffset, endContainer, endOffset, rootBlockNode, tempNode, offset = -0xFFFFFF, wrapped, isInEditorDocument;
+
+ if (!node || node.nodeType !== 1 || !settings.forced_root_block)
+ return;
+
+ // Check if node is wrapped in block
+ while (node && node != rootNode) {
+ if (blockElements[node.nodeName])
+ return;
+
+ node = node.parentNode;
+ }
+
+ // Get current selection
+ rng = selection.getRng();
+ if (rng.setStart) {
+ startContainer = rng.startContainer;
+ startOffset = rng.startOffset;
+ endContainer = rng.endContainer;
+ endOffset = rng.endOffset;
+ } else {
+ // Force control range into text range
+ if (rng.item) {
+ node = rng.item(0);
+ rng = editor.getDoc().body.createTextRange();
+ rng.moveToElementText(node);
+ }
+
+ isInEditorDocument = rng.parentElement().ownerDocument === editor.getDoc();
+ tmpRng = rng.duplicate();
+ tmpRng.collapse(true);
+ startOffset = tmpRng.move('character', offset) * -1;
+
+ if (!tmpRng.collapsed) {
+ tmpRng = rng.duplicate();
+ tmpRng.collapse(false);
+ endOffset = (tmpRng.move('character', offset) * -1) - startOffset;
+ }
+ }
+
+ // Wrap non block elements and text nodes
+ node = rootNode.firstChild;
+ while (node) {
+ if (node.nodeType === 3 || (node.nodeType == 1 && !blockElements[node.nodeName])) {
+ // Remove empty text nodes
+ if (node.nodeType === 3 && node.nodeValue.length == 0) {
+ tempNode = node;
+ node = node.nextSibling;
+ dom.remove(tempNode);
+ continue;
+ }
+
+ if (!rootBlockNode) {
+ rootBlockNode = dom.create(settings.forced_root_block);
+ node.parentNode.insertBefore(rootBlockNode, node);
+ wrapped = true;
+ }
+
+ tempNode = node;
+ node = node.nextSibling;
+ rootBlockNode.appendChild(tempNode);
+ } else {
+ rootBlockNode = null;
+ node = node.nextSibling;
+ }
+ }
+
+ if (wrapped) {
+ if (rng.setStart) {
+ rng.setStart(startContainer, startOffset);
+ rng.setEnd(endContainer, endOffset);
+ selection.setRng(rng);
+ } else {
+ // Only select if the previous selection was inside the document to prevent auto focus in quirks mode
+ if (isInEditorDocument) {
+ try {
+ rng = editor.getDoc().body.createTextRange();
+ rng.moveToElementText(rootNode);
+ rng.collapse(true);
+ rng.moveStart('character', startOffset);
+
+ if (endOffset > 0)
+ rng.moveEnd('character', endOffset);
+
+ rng.select();
+ } catch (ex) {
+ // Ignore
+ }
+ }
+ }
+
+ editor.nodeChanged();
+ }
+ };
+
+ // Force root blocks
+ if (settings.forced_root_block) {
+ editor.onKeyUp.add(addRootBlocks);
+ editor.onNodeChange.add(addRootBlocks);
+ }
+};
+
+(function(tinymce) {
+ // Shorten names
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, extend = tinymce.extend;
+
+ tinymce.create('tinymce.ControlManager', {
+ ControlManager : function(ed, s) {
+ var t = this, i;
+
+ s = s || {};
+ t.editor = ed;
+ t.controls = {};
+ t.onAdd = new tinymce.util.Dispatcher(t);
+ t.onPostRender = new tinymce.util.Dispatcher(t);
+ t.prefix = s.prefix || ed.id + '_';
+ t._cls = {};
+
+ t.onPostRender.add(function() {
+ each(t.controls, function(c) {
+ c.postRender();
+ });
+ });
+ },
+
+ get : function(id) {
+ return this.controls[this.prefix + id] || this.controls[id];
+ },
+
+ setActive : function(id, s) {
+ var c = null;
+
+ if (c = this.get(id))
+ c.setActive(s);
+
+ return c;
+ },
+
+ setDisabled : function(id, s) {
+ var c = null;
+
+ if (c = this.get(id))
+ c.setDisabled(s);
+
+ return c;
+ },
+
+ add : function(c) {
+ var t = this;
+
+ if (c) {
+ t.controls[c.id] = c;
+ t.onAdd.dispatch(c, t);
+ }
+
+ return c;
+ },
+
+ createControl : function(name) {
+ var ctrl, i, l, self = this, editor = self.editor, factories, ctrlName;
+
+ // Build control factory cache
+ if (!self.controlFactories) {
+ self.controlFactories = [];
+ each(editor.plugins, function(plugin) {
+ if (plugin.createControl) {
+ self.controlFactories.push(plugin);
+ }
+ });
+ }
+
+ // Create controls by asking cached factories
+ factories = self.controlFactories;
+ for (i = 0, l = factories.length; i < l; i++) {
+ ctrl = factories[i].createControl(name, self);
+
+ if (ctrl) {
+ return self.add(ctrl);
+ }
+ }
+
+ // Create sepearator
+ if (name === "|" || name === "separator") {
+ return self.createSeparator();
+ }
+
+ // Create control from button collection
+ if (editor.buttons && (ctrl = editor.buttons[name])) {
+ return self.createButton(name, ctrl);
+ }
+
+ return self.add(ctrl);
+ },
+
+ createDropMenu : function(id, s, cc) {
+ var t = this, ed = t.editor, c, bm, v, cls;
+
+ s = extend({
+ 'class' : 'mceDropDown',
+ constrain : ed.settings.constrain_menus
+ }, s);
+
+ s['class'] = s['class'] + ' ' + ed.getParam('skin') + 'Skin';
+ if (v = ed.getParam('skin_variant'))
+ s['class'] += ' ' + ed.getParam('skin') + 'Skin' + v.substring(0, 1).toUpperCase() + v.substring(1);
+
+ s['class'] += ed.settings.directionality == "rtl" ? ' mceRtl' : '';
+
+ id = t.prefix + id;
+ cls = cc || t._cls.dropmenu || tinymce.ui.DropMenu;
+ c = t.controls[id] = new cls(id, s);
+ c.onAddItem.add(function(c, o) {
+ var s = o.settings;
+
+ s.title = ed.getLang(s.title, s.title);
+
+ if (!s.onclick) {
+ s.onclick = function(v) {
+ if (s.cmd)
+ ed.execCommand(s.cmd, s.ui || false, s.value);
+ };
+ }
+ });
+
+ ed.onRemove.add(function() {
+ c.destroy();
+ });
+
+ // Fix for bug #1897785, #1898007
+ if (tinymce.isIE) {
+ c.onShowMenu.add(function() {
+ // IE 8 needs focus in order to store away a range with the current collapsed caret location
+ ed.focus();
+
+ bm = ed.selection.getBookmark(1);
+ });
+
+ c.onHideMenu.add(function() {
+ if (bm) {
+ ed.selection.moveToBookmark(bm);
+ bm = 0;
+ }
+ });
+ }
+
+ return t.add(c);
+ },
+
+ createListBox : function(id, s, cc) {
+ var t = this, ed = t.editor, cmd, c, cls;
+
+ if (t.get(id))
+ return null;
+
+ s.title = ed.translate(s.title);
+ s.scope = s.scope || ed;
+
+ if (!s.onselect) {
+ s.onselect = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
+ }
+
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ scope : s.scope,
+ control_manager : t
+ }, s);
+
+ id = t.prefix + id;
+
+
+ function useNativeListForAccessibility(ed) {
+ return ed.settings.use_accessible_selects && !tinymce.isGecko
+ }
+
+ if (ed.settings.use_native_selects || useNativeListForAccessibility(ed))
+ c = new tinymce.ui.NativeListBox(id, s);
+ else {
+ cls = cc || t._cls.listbox || tinymce.ui.ListBox;
+ c = new cls(id, s, ed);
+ }
+
+ t.controls[id] = c;
+
+ // Fix focus problem in Safari
+ if (tinymce.isWebKit) {
+ c.onPostRender.add(function(c, n) {
+ // Store bookmark on mousedown
+ Event.add(n, 'mousedown', function() {
+ ed.bookmark = ed.selection.getBookmark(1);
+ });
+
+ // Restore on focus, since it might be lost
+ Event.add(n, 'focus', function() {
+ ed.selection.moveToBookmark(ed.bookmark);
+ ed.bookmark = null;
+ });
+ });
+ }
+
+ if (c.hideMenu)
+ ed.onMouseDown.add(c.hideMenu, c);
+
+ return t.add(c);
+ },
+
+ createButton : function(id, s, cc) {
+ var t = this, ed = t.editor, o, c, cls;
+
+ if (t.get(id))
+ return null;
+
+ s.title = ed.translate(s.title);
+ s.label = ed.translate(s.label);
+ s.scope = s.scope || ed;
+
+ if (!s.onclick && !s.menu_button) {
+ s.onclick = function() {
+ ed.execCommand(s.cmd, s.ui || false, s.value);
+ };
+ }
+
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ unavailable_prefix : ed.getLang('unavailable', ''),
+ scope : s.scope,
+ control_manager : t
+ }, s);
+
+ id = t.prefix + id;
+
+ if (s.menu_button) {
+ cls = cc || t._cls.menubutton || tinymce.ui.MenuButton;
+ c = new cls(id, s, ed);
+ ed.onMouseDown.add(c.hideMenu, c);
+ } else {
+ cls = t._cls.button || tinymce.ui.Button;
+ c = new cls(id, s, ed);
+ }
+
+ return t.add(c);
+ },
+
+ createMenuButton : function(id, s, cc) {
+ s = s || {};
+ s.menu_button = 1;
+
+ return this.createButton(id, s, cc);
+ },
+
+ createSplitButton : function(id, s, cc) {
+ var t = this, ed = t.editor, cmd, c, cls;
+
+ if (t.get(id))
+ return null;
+
+ s.title = ed.translate(s.title);
+ s.scope = s.scope || ed;
+
+ if (!s.onclick) {
+ s.onclick = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
+ }
+
+ if (!s.onselect) {
+ s.onselect = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
+ }
+
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ scope : s.scope,
+ control_manager : t
+ }, s);
+
+ id = t.prefix + id;
+ cls = cc || t._cls.splitbutton || tinymce.ui.SplitButton;
+ c = t.add(new cls(id, s, ed));
+ ed.onMouseDown.add(c.hideMenu, c);
+
+ return c;
+ },
+
+ createColorSplitButton : function(id, s, cc) {
+ var t = this, ed = t.editor, cmd, c, cls, bm;
+
+ if (t.get(id))
+ return null;
+
+ s.title = ed.translate(s.title);
+ s.scope = s.scope || ed;
+
+ if (!s.onclick) {
+ s.onclick = function(v) {
+ if (tinymce.isIE)
+ bm = ed.selection.getBookmark(1);
+
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
+ }
+
+ if (!s.onselect) {
+ s.onselect = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
+ }
+
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ 'menu_class' : ed.getParam('skin') + 'Skin',
+ scope : s.scope,
+ more_colors_title : ed.getLang('more_colors')
+ }, s);
+
+ id = t.prefix + id;
+ cls = cc || t._cls.colorsplitbutton || tinymce.ui.ColorSplitButton;
+ c = new cls(id, s, ed);
+ ed.onMouseDown.add(c.hideMenu, c);
+
+ // Remove the menu element when the editor is removed
+ ed.onRemove.add(function() {
+ c.destroy();
+ });
+
+ // Fix for bug #1897785, #1898007
+ if (tinymce.isIE) {
+ c.onShowMenu.add(function() {
+ // IE 8 needs focus in order to store away a range with the current collapsed caret location
+ ed.focus();
+ bm = ed.selection.getBookmark(1);
+ });
+
+ c.onHideMenu.add(function() {
+ if (bm) {
+ ed.selection.moveToBookmark(bm);
+ bm = 0;
+ }
+ });
+ }
+
+ return t.add(c);
+ },
+
+ createToolbar : function(id, s, cc) {
+ var c, t = this, cls;
+
+ id = t.prefix + id;
+ cls = cc || t._cls.toolbar || tinymce.ui.Toolbar;
+ c = new cls(id, s, t.editor);
+
+ if (t.get(id))
+ return null;
+
+ return t.add(c);
+ },
+
+ createToolbarGroup : function(id, s, cc) {
+ var c, t = this, cls;
+ id = t.prefix + id;
+ cls = cc || this._cls.toolbarGroup || tinymce.ui.ToolbarGroup;
+ c = new cls(id, s, t.editor);
+
+ if (t.get(id))
+ return null;
+
+ return t.add(c);
+ },
+
+ createSeparator : function(cc) {
+ var cls = cc || this._cls.separator || tinymce.ui.Separator;
+
+ return new cls();
+ },
+
+ setControlType : function(n, c) {
+ return this._cls[n.toLowerCase()] = c;
+ },
+
+ destroy : function() {
+ each(this.controls, function(c) {
+ c.destroy();
+ });
+
+ this.controls = null;
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
+ var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each, isIE = tinymce.isIE, isOpera = tinymce.isOpera;
+
+ tinymce.create('tinymce.WindowManager', {
+ WindowManager : function(ed) {
+ var t = this;
+
+ t.editor = ed;
+ t.onOpen = new Dispatcher(t);
+ t.onClose = new Dispatcher(t);
+ t.params = {};
+ t.features = {};
+ },
+
+ open : function(s, p) {
+ var t = this, f = '', x, y, mo = t.editor.settings.dialog_type == 'modal', w, sw, sh, vp = tinymce.DOM.getViewPort(), u;
+
+ // Default some options
+ s = s || {};
+ p = p || {};
+ sw = isOpera ? vp.w : screen.width; // Opera uses windows inside the Opera window
+ sh = isOpera ? vp.h : screen.height;
+ s.name = s.name || 'mc_' + new Date().getTime();
+ s.width = parseInt(s.width || 320);
+ s.height = parseInt(s.height || 240);
+ s.resizable = true;
+ s.left = s.left || parseInt(sw / 2.0) - (s.width / 2.0);
+ s.top = s.top || parseInt(sh / 2.0) - (s.height / 2.0);
+ p.inline = false;
+ p.mce_width = s.width;
+ p.mce_height = s.height;
+ p.mce_auto_focus = s.auto_focus;
+
+ if (mo) {
+ if (isIE) {
+ s.center = true;
+ s.help = false;
+ s.dialogWidth = s.width + 'px';
+ s.dialogHeight = s.height + 'px';
+ s.scroll = s.scrollbars || false;
+ }
+ }
+
+ // Build features string
+ each(s, function(v, k) {
+ if (tinymce.is(v, 'boolean'))
+ v = v ? 'yes' : 'no';
+
+ if (!/^(name|url)$/.test(k)) {
+ if (isIE && mo)
+ f += (f ? ';' : '') + k + ':' + v;
+ else
+ f += (f ? ',' : '') + k + '=' + v;
+ }
+ });
+
+ t.features = s;
+ t.params = p;
+ t.onOpen.dispatch(t, s, p);
+
+ u = s.url || s.file;
+ u = tinymce._addVer(u);
+
+ try {
+ if (isIE && mo) {
+ w = 1;
+ window.showModalDialog(u, window, f);
+ } else
+ w = window.open(u, s.name, f);
+ } catch (ex) {
+ // Ignore
+ }
+
+ if (!w)
+ alert(t.editor.getLang('popup_blocked'));
+ },
+
+ close : function(w) {
+ w.close();
+ this.onClose.dispatch(this);
+ },
+
+ createInstance : function(cl, a, b, c, d, e) {
+ var f = tinymce.resolve(cl);
+
+ return new f(a, b, c, d, e);
+ },
+
+ confirm : function(t, cb, s, w) {
+ w = w || window;
+
+ cb.call(s || this, w.confirm(this._decode(this.editor.getLang(t, t))));
+ },
+
+ alert : function(tx, cb, s, w) {
+ var t = this;
+
+ w = w || window;
+ w.alert(t._decode(t.editor.getLang(tx, tx)));
+
+ if (cb)
+ cb.call(s || t);
+ },
+
+ resizeBy : function(dw, dh, win) {
+ win.resizeBy(dw, dh);
+ },
+
+ // Internal functions
+
+ _decode : function(s) {
+ return tinymce.DOM.decode(s).replace(/\\n/g, '\n');
+ }
+ });
+}(tinymce));
+(function(tinymce) {
+ tinymce.Formatter = function(ed) {
+ var formats = {},
+ each = tinymce.each,
+ dom = ed.dom,
+ selection = ed.selection,
+ TreeWalker = tinymce.dom.TreeWalker,
+ rangeUtils = new tinymce.dom.RangeUtils(dom),
+ isValid = ed.schema.isValidChild,
+ isArray = tinymce.isArray,
+ isBlock = dom.isBlock,
+ forcedRootBlock = ed.settings.forced_root_block,
+ nodeIndex = dom.nodeIndex,
+ INVISIBLE_CHAR = '\uFEFF',
+ MCE_ATTR_RE = /^(src|href|style)$/,
+ FALSE = false,
+ TRUE = true,
+ formatChangeData,
+ undef,
+ getContentEditable = dom.getContentEditable;
+
+ function isTextBlock(name) {
+ return !!ed.schema.getTextBlocks()[name.toLowerCase()];
+ }
+
+ function getParents(node, selector) {
+ return dom.getParents(node, selector, dom.getRoot());
+ };
+
+ function isCaretNode(node) {
+ return node.nodeType === 1 && node.id === '_mce_caret';
+ };
+
+ function defaultFormats() {
+ register({
+ alignleft : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}, defaultBlock: 'div'},
+ {selector : 'img,table', collapsed : false, styles : {'float' : 'left'}}
+ ],
+
+ aligncenter : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}, defaultBlock: 'div'},
+ {selector : 'img', collapsed : false, styles : {display : 'block', marginLeft : 'auto', marginRight : 'auto'}},
+ {selector : 'table', collapsed : false, styles : {marginLeft : 'auto', marginRight : 'auto'}}
+ ],
+
+ alignright : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}, defaultBlock: 'div'},
+ {selector : 'img,table', collapsed : false, styles : {'float' : 'right'}}
+ ],
+
+ alignfull : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'justify'}, defaultBlock: 'div'}
+ ],
+
+ bold : [
+ {inline : 'strong', remove : 'all'},
+ {inline : 'span', styles : {fontWeight : 'bold'}},
+ {inline : 'b', remove : 'all'}
+ ],
+
+ italic : [
+ {inline : 'em', remove : 'all'},
+ {inline : 'span', styles : {fontStyle : 'italic'}},
+ {inline : 'i', remove : 'all'}
+ ],
+
+ underline : [
+ {inline : 'span', styles : {textDecoration : 'underline'}, exact : true},
+ {inline : 'u', remove : 'all'}
+ ],
+
+ strikethrough : [
+ {inline : 'span', styles : {textDecoration : 'line-through'}, exact : true},
+ {inline : 'strike', remove : 'all'}
+ ],
+
+ forecolor : {inline : 'span', styles : {color : '%value'}, wrap_links : false},
+ hilitecolor : {inline : 'span', styles : {backgroundColor : '%value'}, wrap_links : false},
+ fontname : {inline : 'span', styles : {fontFamily : '%value'}},
+ fontsize : {inline : 'span', styles : {fontSize : '%value'}},
+ fontsize_class : {inline : 'span', attributes : {'class' : '%value'}},
+ blockquote : {block : 'blockquote', wrapper : 1, remove : 'all'},
+ subscript : {inline : 'sub'},
+ superscript : {inline : 'sup'},
+
+ link : {inline : 'a', selector : 'a', remove : 'all', split : true, deep : true,
+ onmatch : function(node) {
+ return true;
+ },
+
+ onformat : function(elm, fmt, vars) {
+ each(vars, function(value, key) {
+ dom.setAttrib(elm, key, value);
+ });
+ }
+ },
+
+ removeformat : [
+ {selector : 'b,strong,em,i,font,u,strike', remove : 'all', split : true, expand : false, block_expand : true, deep : true},
+ {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true},
+ {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true}
+ ]
+ });
+
+ // Register default block formats
+ each('p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp'.split(/\s/), function(name) {
+ register(name, {block : name, remove : 'all'});
+ });
+
+ // Register user defined formats
+ register(ed.settings.formats);
+ };
+
+ function addKeyboardShortcuts() {
+ // Add some inline shortcuts
+ ed.addShortcut('ctrl+b', 'bold_desc', 'Bold');
+ ed.addShortcut('ctrl+i', 'italic_desc', 'Italic');
+ ed.addShortcut('ctrl+u', 'underline_desc', 'Underline');
+
+ // BlockFormat shortcuts keys
+ for (var i = 1; i <= 6; i++) {
+ ed.addShortcut('ctrl+' + i, '', ['FormatBlock', false, 'h' + i]);
+ }
+
+ ed.addShortcut('ctrl+7', '', ['FormatBlock', false, 'p']);
+ ed.addShortcut('ctrl+8', '', ['FormatBlock', false, 'div']);
+ ed.addShortcut('ctrl+9', '', ['FormatBlock', false, 'address']);
+ };
+
+ // Public functions
+
+ function get(name) {
+ return name ? formats[name] : formats;
+ };
+
+ function register(name, format) {
+ if (name) {
+ if (typeof(name) !== 'string') {
+ each(name, function(format, name) {
+ register(name, format);
+ });
+ } else {
+ // Force format into array and add it to internal collection
+ format = format.length ? format : [format];
+
+ each(format, function(format) {
+ // Set deep to false by default on selector formats this to avoid removing
+ // alignment on images inside paragraphs when alignment is changed on paragraphs
+ if (format.deep === undef)
+ format.deep = !format.selector;
+
+ // Default to true
+ if (format.split === undef)
+ format.split = !format.selector || format.inline;
+
+ // Default to true
+ if (format.remove === undef && format.selector && !format.inline)
+ format.remove = 'none';
+
+ // Mark format as a mixed format inline + block level
+ if (format.selector && format.inline) {
+ format.mixed = true;
+ format.block_expand = true;
+ }
+
+ // Split classes if needed
+ if (typeof(format.classes) === 'string')
+ format.classes = format.classes.split(/\s+/);
+ });
+
+ formats[name] = format;
+ }
+ }
+ };
+
+ var getTextDecoration = function(node) {
+ var decoration;
+
+ ed.dom.getParent(node, function(n) {
+ decoration = ed.dom.getStyle(n, 'text-decoration');
+ return decoration && decoration !== 'none';
+ });
+
+ return decoration;
+ };
+
+ var processUnderlineAndColor = function(node) {
+ var textDecoration;
+ if (node.nodeType === 1 && node.parentNode && node.parentNode.nodeType === 1) {
+ textDecoration = getTextDecoration(node.parentNode);
+ if (ed.dom.getStyle(node, 'color') && textDecoration) {
+ ed.dom.setStyle(node, 'text-decoration', textDecoration);
+ } else if (ed.dom.getStyle(node, 'textdecoration') === textDecoration) {
+ ed.dom.setStyle(node, 'text-decoration', null);
+ }
+ }
+ };
+
+ function apply(name, vars, node) {
+ var formatList = get(name), format = formatList[0], bookmark, rng, i, isCollapsed = selection.isCollapsed();
+
+ function setElementFormat(elm, fmt) {
+ fmt = fmt || format;
+
+ if (elm) {
+ if (fmt.onformat) {
+ fmt.onformat(elm, fmt, vars, node);
+ }
+
+ each(fmt.styles, function(value, name) {
+ dom.setStyle(elm, name, replaceVars(value, vars));
+ });
+
+ each(fmt.attributes, function(value, name) {
+ dom.setAttrib(elm, name, replaceVars(value, vars));
+ });
+
+ each(fmt.classes, function(value) {
+ value = replaceVars(value, vars);
+
+ if (!dom.hasClass(elm, value))
+ dom.addClass(elm, value);
+ });
+ }
+ };
+ function adjustSelectionToVisibleSelection() {
+ function findSelectionEnd(start, end) {
+ var walker = new TreeWalker(end);
+ for (node = walker.current(); node; node = walker.prev()) {
+ if (node.childNodes.length > 1 || node == start || node.tagName == 'BR') {
+ return node;
+ }
+ }
+ };
+
+ // Adjust selection so that a end container with a end offset of zero is not included in the selection
+ // as this isn't visible to the user.
+ var rng = ed.selection.getRng();
+ var start = rng.startContainer;
+ var end = rng.endContainer;
+
+ if (start != end && rng.endOffset === 0) {
+ var newEnd = findSelectionEnd(start, end);
+ var endOffset = newEnd.nodeType == 3 ? newEnd.length : newEnd.childNodes.length;
+
+ rng.setEnd(newEnd, endOffset);
+ }
+
+ return rng;
+ }
+
+ function applyStyleToList(node, bookmark, wrapElm, newWrappers, process){
+ var nodes = [], listIndex = -1, list, startIndex = -1, endIndex = -1, currentWrapElm;
+
+ // find the index of the first child list.
+ each(node.childNodes, function(n, index) {
+ if (n.nodeName === "UL" || n.nodeName === "OL") {
+ listIndex = index;
+ list = n;
+ return false;
+ }
+ });
+
+ // get the index of the bookmarks
+ each(node.childNodes, function(n, index) {
+ if (n.nodeName === "SPAN" && dom.getAttrib(n, "data-mce-type") == "bookmark") {
+ if (n.id == bookmark.id + "_start") {
+ startIndex = index;
+ } else if (n.id == bookmark.id + "_end") {
+ endIndex = index;
+ }
+ }
+ });
+
+ // if the selection spans across an embedded list, or there isn't an embedded list - handle processing normally
+ if (listIndex <= 0 || (startIndex < listIndex && endIndex > listIndex)) {
+ each(tinymce.grep(node.childNodes), process);
+ return 0;
+ } else {
+ currentWrapElm = dom.clone(wrapElm, FALSE);
+
+ // create a list of the nodes on the same side of the list as the selection
+ each(tinymce.grep(node.childNodes), function(n, index) {
+ if ((startIndex < listIndex && index < listIndex) || (startIndex > listIndex && index > listIndex)) {
+ nodes.push(n);
+ n.parentNode.removeChild(n);
+ }
+ });
+
+ // insert the wrapping element either before or after the list.
+ if (startIndex < listIndex) {
+ node.insertBefore(currentWrapElm, list);
+ } else if (startIndex > listIndex) {
+ node.insertBefore(currentWrapElm, list.nextSibling);
+ }
+
+ // add the new nodes to the list.
+ newWrappers.push(currentWrapElm);
+
+ each(nodes, function(node) {
+ currentWrapElm.appendChild(node);
+ });
+
+ return currentWrapElm;
+ }
+ };
+
+ function applyRngStyle(rng, bookmark, node_specific) {
+ var newWrappers = [], wrapName, wrapElm, contentEditable = true;
+
+ // Setup wrapper element
+ wrapName = format.inline || format.block;
+ wrapElm = dom.create(wrapName);
+ setElementFormat(wrapElm);
+
+ rangeUtils.walk(rng, function(nodes) {
+ var currentWrapElm;
+
+ function process(node) {
+ var nodeName, parentName, found, hasContentEditableState, lastContentEditable;
+
+ lastContentEditable = contentEditable;
+ nodeName = node.nodeName.toLowerCase();
+ parentName = node.parentNode.nodeName.toLowerCase();
+
+ // Node has a contentEditable value
+ if (node.nodeType === 1 && getContentEditable(node)) {
+ lastContentEditable = contentEditable;
+ contentEditable = getContentEditable(node) === "true";
+ hasContentEditableState = true; // We don't want to wrap the container only it's children
+ }
+
+ // Stop wrapping on br elements
+ if (isEq(nodeName, 'br')) {
+ currentWrapElm = 0;
+
+ // Remove any br elements when we wrap things
+ if (format.block)
+ dom.remove(node);
+
+ return;
+ }
+
+ // If node is wrapper type
+ if (format.wrapper && matchNode(node, name, vars)) {
+ currentWrapElm = 0;
+ return;
+ }
+
+ // Can we rename the block
+ if (contentEditable && !hasContentEditableState && format.block && !format.wrapper && isTextBlock(nodeName)) {
+ node = dom.rename(node, wrapName);
+ setElementFormat(node);
+ newWrappers.push(node);
+ currentWrapElm = 0;
+ return;
+ }
+
+ // Handle selector patterns
+ if (format.selector) {
+ // Look for matching formats
+ each(formatList, function(format) {
+ // Check collapsed state if it exists
+ if ('collapsed' in format && format.collapsed !== isCollapsed) {
+ return;
+ }
+
+ if (dom.is(node, format.selector) && !isCaretNode(node)) {
+ setElementFormat(node, format);
+ found = true;
+ }
+ });
+
+ // Continue processing if a selector match wasn't found and a inline element is defined
+ if (!format.inline || found) {
+ currentWrapElm = 0;
+ return;
+ }
+ }
+
+ // Is it valid to wrap this item
+ if (contentEditable && !hasContentEditableState && isValid(wrapName, nodeName) && isValid(parentName, wrapName) &&
+ !(!node_specific && node.nodeType === 3 && node.nodeValue.length === 1 && node.nodeValue.charCodeAt(0) === 65279) && !isCaretNode(node)) {
+ // Start wrapping
+ if (!currentWrapElm) {
+ // Wrap the node
+ currentWrapElm = dom.clone(wrapElm, FALSE);
+ node.parentNode.insertBefore(currentWrapElm, node);
+ newWrappers.push(currentWrapElm);
+ }
+
+ currentWrapElm.appendChild(node);
+ } else if (nodeName == 'li' && bookmark) {
+ // Start wrapping - if we are in a list node and have a bookmark, then we will always begin by wrapping in a new element.
+ currentWrapElm = applyStyleToList(node, bookmark, wrapElm, newWrappers, process);
+ } else {
+ // Start a new wrapper for possible children
+ currentWrapElm = 0;
+
+ each(tinymce.grep(node.childNodes), process);
+
+ if (hasContentEditableState) {
+ contentEditable = lastContentEditable; // Restore last contentEditable state from stack
+ }
+
+ // End the last wrapper
+ currentWrapElm = 0;
+ }
+ };
+
+ // Process siblings from range
+ each(nodes, process);
+ });
+
+ // Wrap links inside as well, for example color inside a link when the wrapper is around the link
+ if (format.wrap_links === false) {
+ each(newWrappers, function(node) {
+ function process(node) {
+ var i, currentWrapElm, children;
+
+ if (node.nodeName === 'A') {
+ currentWrapElm = dom.clone(wrapElm, FALSE);
+ newWrappers.push(currentWrapElm);
+
+ children = tinymce.grep(node.childNodes);
+ for (i = 0; i < children.length; i++)
+ currentWrapElm.appendChild(children[i]);
+
+ node.appendChild(currentWrapElm);
+ }
+
+ each(tinymce.grep(node.childNodes), process);
+ };
+
+ process(node);
+ });
+ }
+
+ // Cleanup
+
+ each(newWrappers, function(node) {
+ var childCount;
+
+ function getChildCount(node) {
+ var count = 0;
+
+ each(node.childNodes, function(node) {
+ if (!isWhiteSpaceNode(node) && !isBookmarkNode(node))
+ count++;
+ });
+
+ return count;
+ };
+
+ function mergeStyles(node) {
+ var child, clone;
+
+ each(node.childNodes, function(node) {
+ if (node.nodeType == 1 && !isBookmarkNode(node) && !isCaretNode(node)) {
+ child = node;
+ return FALSE; // break loop
+ }
+ });
+
+ // If child was found and of the same type as the current node
+ if (child && matchName(child, format)) {
+ clone = dom.clone(child, FALSE);
+ setElementFormat(clone);
+
+ dom.replace(clone, node, TRUE);
+ dom.remove(child, 1);
+ }
+
+ return clone || node;
+ };
+
+ childCount = getChildCount(node);
+
+ // Remove empty nodes but only if there is multiple wrappers and they are not block
+ // elements so never remove single <h1></h1> since that would remove the currrent empty block element where the caret is at
+ if ((newWrappers.length > 1 || !isBlock(node)) && childCount === 0) {
+ dom.remove(node, 1);
+ return;
+ }
+
+ if (format.inline || format.wrapper) {
+ // Merges the current node with it's children of similar type to reduce the number of elements
+ if (!format.exact && childCount === 1)
+ node = mergeStyles(node);
+
+ // Remove/merge children
+ each(formatList, function(format) {
+ // Merge all children of similar type will move styles from child to parent
+ // this: <span style="color:red"><b><span style="color:red; font-size:10px">text</span></b></span>
+ // will become: <span style="color:red"><b><span style="font-size:10px">text</span></b></span>
+ each(dom.select(format.inline, node), function(child) {
+ var parent;
+
+ // When wrap_links is set to false we don't want
+ // to remove the format on children within links
+ if (format.wrap_links === false) {
+ parent = child.parentNode;
+
+ do {
+ if (parent.nodeName === 'A')
+ return;
+ } while (parent = parent.parentNode);
+ }
+
+ removeFormat(format, vars, child, format.exact ? child : null);
+ });
+ });
+
+ // Remove child if direct parent is of same type
+ if (matchNode(node.parentNode, name, vars)) {
+ dom.remove(node, 1);
+ node = 0;
+ return TRUE;
+ }
+
+ // Look for parent with similar style format
+ if (format.merge_with_parents) {
+ dom.getParent(node.parentNode, function(parent) {
+ if (matchNode(parent, name, vars)) {
+ dom.remove(node, 1);
+ node = 0;
+ return TRUE;
+ }
+ });
+ }
+
+ // Merge next and previous siblings if they are similar <b>text</b><b>text</b> becomes <b>texttext</b>
+ if (node && format.merge_siblings !== false) {
+ node = mergeSiblings(getNonWhiteSpaceSibling(node), node);
+ node = mergeSiblings(node, getNonWhiteSpaceSibling(node, TRUE));
+ }
+ }
+ });
+ };
+
+ if (format) {
+ if (node) {
+ if (node.nodeType) {
+ rng = dom.createRng();
+ rng.setStartBefore(node);
+ rng.setEndAfter(node);
+ applyRngStyle(expandRng(rng, formatList), null, true);
+ } else {
+ applyRngStyle(node, null, true);
+ }
+ } else {
+ if (!isCollapsed || !format.inline || dom.select('td.mceSelected,th.mceSelected').length) {
+ // Obtain selection node before selection is unselected by applyRngStyle()
+ var curSelNode = ed.selection.getNode();
+
+ // If the formats have a default block and we can't find a parent block then start wrapping it with a DIV this is for forced_root_blocks: false
+ // It's kind of a hack but people should be using the default block type P since all desktop editors work that way
+ if (!forcedRootBlock && formatList[0].defaultBlock && !dom.getParent(curSelNode, dom.isBlock)) {
+ apply(formatList[0].defaultBlock);
+ }
+
+ // Apply formatting to selection
+ ed.selection.setRng(adjustSelectionToVisibleSelection());
+ bookmark = selection.getBookmark();
+ applyRngStyle(expandRng(selection.getRng(TRUE), formatList), bookmark);
+
+ // Colored nodes should be underlined so that the color of the underline matches the text color.
+ if (format.styles && (format.styles.color || format.styles.textDecoration)) {
+ tinymce.walk(curSelNode, processUnderlineAndColor, 'childNodes');
+ processUnderlineAndColor(curSelNode);
+ }
+
+ selection.moveToBookmark(bookmark);
+ moveStart(selection.getRng(TRUE));
+ ed.nodeChanged();
+ } else
+ performCaretAction('apply', name, vars);
+ }
+ }
+ };
+
+ function remove(name, vars, node) {
+ var formatList = get(name), format = formatList[0], bookmark, i, rng, contentEditable = true;
+
+ // Merges the styles for each node
+ function process(node) {
+ var children, i, l, localContentEditable, lastContentEditable, hasContentEditableState;
+
+ // Node has a contentEditable value
+ if (node.nodeType === 1 && getContentEditable(node)) {
+ lastContentEditable = contentEditable;
+ contentEditable = getContentEditable(node) === "true";
+ hasContentEditableState = true; // We don't want to wrap the container only it's children
+ }
+
+ // Grab the children first since the nodelist might be changed
+ children = tinymce.grep(node.childNodes);
+
+ // Process current node
+ if (contentEditable && !hasContentEditableState) {
+ for (i = 0, l = formatList.length; i < l; i++) {
+ if (removeFormat(formatList[i], vars, node, node))
+ break;
+ }
+ }
+
+ // Process the children
+ if (format.deep) {
+ if (children.length) {
+ for (i = 0, l = children.length; i < l; i++)
+ process(children[i]);
+
+ if (hasContentEditableState) {
+ contentEditable = lastContentEditable; // Restore last contentEditable state from stack
+ }
+ }
+ }
+ };
+
+ function findFormatRoot(container) {
+ var formatRoot;
+
+ // Find format root
+ each(getParents(container.parentNode).reverse(), function(parent) {
+ var format;
+
+ // Find format root element
+ if (!formatRoot && parent.id != '_start' && parent.id != '_end') {
+ // Is the node matching the format we are looking for
+ format = matchNode(parent, name, vars);
+ if (format && format.split !== false)
+ formatRoot = parent;
+ }
+ });
+
+ return formatRoot;
+ };
+
+ function wrapAndSplit(format_root, container, target, split) {
+ var parent, clone, lastClone, firstClone, i, formatRootParent;
+
+ // Format root found then clone formats and split it
+ if (format_root) {
+ formatRootParent = format_root.parentNode;
+
+ for (parent = container.parentNode; parent && parent != formatRootParent; parent = parent.parentNode) {
+ clone = dom.clone(parent, FALSE);
+
+ for (i = 0; i < formatList.length; i++) {
+ if (removeFormat(formatList[i], vars, clone, clone)) {
+ clone = 0;
+ break;
+ }
+ }
+
+ // Build wrapper node
+ if (clone) {
+ if (lastClone)
+ clone.appendChild(lastClone);
+
+ if (!firstClone)
+ firstClone = clone;
+
+ lastClone = clone;
+ }
+ }
+
+ // Never split block elements if the format is mixed
+ if (split && (!format.mixed || !isBlock(format_root)))
+ container = dom.split(format_root, container);
+
+ // Wrap container in cloned formats
+ if (lastClone) {
+ target.parentNode.insertBefore(lastClone, target);
+ firstClone.appendChild(target);
+ }
+ }
+
+ return container;
+ };
+
+ function splitToFormatRoot(container) {
+ return wrapAndSplit(findFormatRoot(container), container, container, true);
+ };
+
+ function unwrap(start) {
+ var node = dom.get(start ? '_start' : '_end'),
+ out = node[start ? 'firstChild' : 'lastChild'];
+
+ // If the end is placed within the start the result will be removed
+ // So this checks if the out node is a bookmark node if it is it
+ // checks for another more suitable node
+ if (isBookmarkNode(out))
+ out = out[start ? 'firstChild' : 'lastChild'];
+
+ dom.remove(node, true);
+
+ return out;
+ };
+
+ function removeRngStyle(rng) {
+ var startContainer, endContainer, node;
+
+ rng = expandRng(rng, formatList, TRUE);
+
+ if (format.split) {
+ startContainer = getContainer(rng, TRUE);
+ endContainer = getContainer(rng);
+
+ if (startContainer != endContainer) {
+ // WebKit will render the table incorrectly if we wrap a TD in a SPAN so lets see if the can use the first child instead
+ // This will happen if you tripple click a table cell and use remove formatting
+ if (/^(TR|TD)$/.test(startContainer.nodeName) && startContainer.firstChild) {
+ startContainer = (startContainer.nodeName == "TD" ? startContainer.firstChild : startContainer.firstChild.firstChild) || startContainer;
+ }
+
+ // Wrap start/end nodes in span element since these might be cloned/moved
+ startContainer = wrap(startContainer, 'span', {id : '_start', 'data-mce-type' : 'bookmark'});
+ endContainer = wrap(endContainer, 'span', {id : '_end', 'data-mce-type' : 'bookmark'});
+
+ // Split start/end
+ splitToFormatRoot(startContainer);
+ splitToFormatRoot(endContainer);
+
+ // Unwrap start/end to get real elements again
+ startContainer = unwrap(TRUE);
+ endContainer = unwrap();
+ } else
+ startContainer = endContainer = splitToFormatRoot(startContainer);
+
+ // Update range positions since they might have changed after the split operations
+ rng.startContainer = startContainer.parentNode;
+ rng.startOffset = nodeIndex(startContainer);
+ rng.endContainer = endContainer.parentNode;
+ rng.endOffset = nodeIndex(endContainer) + 1;
+ }
+
+ // Remove items between start/end
+ rangeUtils.walk(rng, function(nodes) {
+ each(nodes, function(node) {
+ process(node);
+
+ // Remove parent span if it only contains text-decoration: underline, yet a parent node is also underlined.
+ if (node.nodeType === 1 && ed.dom.getStyle(node, 'text-decoration') === 'underline' && node.parentNode && getTextDecoration(node.parentNode) === 'underline') {
+ removeFormat({'deep': false, 'exact': true, 'inline': 'span', 'styles': {'textDecoration' : 'underline'}}, null, node);
+ }
+ });
+ });
+ };
+
+ // Handle node
+ if (node) {
+ if (node.nodeType) {
+ rng = dom.createRng();
+ rng.setStartBefore(node);
+ rng.setEndAfter(node);
+ removeRngStyle(rng);
+ } else {
+ removeRngStyle(node);
+ }
+
+ return;
+ }
+
+ if (!selection.isCollapsed() || !format.inline || dom.select('td.mceSelected,th.mceSelected').length) {
+ bookmark = selection.getBookmark();
+ removeRngStyle(selection.getRng(TRUE));
+ selection.moveToBookmark(bookmark);
+
+ // Check if start element still has formatting then we are at: "<b>text|</b>text" and need to move the start into the next text node
+ if (format.inline && match(name, vars, selection.getStart())) {
+ moveStart(selection.getRng(true));
+ }
+
+ ed.nodeChanged();
+ } else
+ performCaretAction('remove', name, vars);
+ };
+
+ function toggle(name, vars, node) {
+ var fmt = get(name);
+
+ if (match(name, vars, node) && (!('toggle' in fmt[0]) || fmt[0].toggle))
+ remove(name, vars, node);
+ else
+ apply(name, vars, node);
+ };
+
+ function matchNode(node, name, vars, similar) {
+ var formatList = get(name), format, i, classes;
+
+ function matchItems(node, format, item_name) {
+ var key, value, items = format[item_name], i;
+
+ // Custom match
+ if (format.onmatch) {
+ return format.onmatch(node, format, item_name);
+ }
+
+ // Check all items
+ if (items) {
+ // Non indexed object
+ if (items.length === undef) {
+ for (key in items) {
+ if (items.hasOwnProperty(key)) {
+ if (item_name === 'attributes')
+ value = dom.getAttrib(node, key);
+ else
+ value = getStyle(node, key);
+
+ if (similar && !value && !format.exact)
+ return;
+
+ if ((!similar || format.exact) && !isEq(value, replaceVars(items[key], vars)))
+ return;
+ }
+ }
+ } else {
+ // Only one match needed for indexed arrays
+ for (i = 0; i < items.length; i++) {
+ if (item_name === 'attributes' ? dom.getAttrib(node, items[i]) : getStyle(node, items[i]))
+ return format;
+ }
+ }
+ }
+
+ return format;
+ };
+
+ if (formatList && node) {
+ // Check each format in list
+ for (i = 0; i < formatList.length; i++) {
+ format = formatList[i];
+
+ // Name name, attributes, styles and classes
+ if (matchName(node, format) && matchItems(node, format, 'attributes') && matchItems(node, format, 'styles')) {
+ // Match classes
+ if (classes = format.classes) {
+ for (i = 0; i < classes.length; i++) {
+ if (!dom.hasClass(node, classes[i]))
+ return;
+ }
+ }
+
+ return format;
+ }
+ }
+ }
+ };
+
+ function match(name, vars, node) {
+ var startNode;
+
+ function matchParents(node) {
+ // Find first node with similar format settings
+ node = dom.getParent(node, function(node) {
+ return !!matchNode(node, name, vars, true);
+ });
+
+ // Do an exact check on the similar format element
+ return matchNode(node, name, vars);
+ };
+
+ // Check specified node
+ if (node)
+ return matchParents(node);
+
+ // Check selected node
+ node = selection.getNode();
+ if (matchParents(node))
+ return TRUE;
+
+ // Check start node if it's different
+ startNode = selection.getStart();
+ if (startNode != node) {
+ if (matchParents(startNode))
+ return TRUE;
+ }
+
+ return FALSE;
+ };
+
+ function matchAll(names, vars) {
+ var startElement, matchedFormatNames = [], checkedMap = {}, i, ni, name;
+
+ // Check start of selection for formats
+ startElement = selection.getStart();
+ dom.getParent(startElement, function(node) {
+ var i, name;
+
+ for (i = 0; i < names.length; i++) {
+ name = names[i];
+
+ if (!checkedMap[name] && matchNode(node, name, vars)) {
+ checkedMap[name] = true;
+ matchedFormatNames.push(name);
+ }
+ }
+ }, dom.getRoot());
+
+ return matchedFormatNames;
+ };
+
+ function canApply(name) {
+ var formatList = get(name), startNode, parents, i, x, selector;
+
+ if (formatList) {
+ startNode = selection.getStart();
+ parents = getParents(startNode);
+
+ for (x = formatList.length - 1; x >= 0; x--) {
+ selector = formatList[x].selector;
+
+ // Format is not selector based, then always return TRUE
+ if (!selector)
+ return TRUE;
+
+ for (i = parents.length - 1; i >= 0; i--) {
+ if (dom.is(parents[i], selector))
+ return TRUE;
+ }
+ }
+ }
+
+ return FALSE;
+ };
+
+ function formatChanged(formats, callback, similar) {
+ var currentFormats;
+
+ // Setup format node change logic
+ if (!formatChangeData) {
+ formatChangeData = {};
+ currentFormats = {};
+
+ ed.onNodeChange.addToTop(function(ed, cm, node) {
+ var parents = getParents(node), matchedFormats = {};
+
+ // Check for new formats
+ each(formatChangeData, function(callbacks, format) {
+ each(parents, function(node) {
+ if (matchNode(node, format, {}, callbacks.similar)) {
+ if (!currentFormats[format]) {
+ // Execute callbacks
+ each(callbacks, function(callback) {
+ callback(true, {node: node, format: format, parents: parents});
+ });
+
+ currentFormats[format] = callbacks;
+ }
+
+ matchedFormats[format] = callbacks;
+ return false;
+ }
+ });
+ });
+
+ // Check if current formats still match
+ each(currentFormats, function(callbacks, format) {
+ if (!matchedFormats[format]) {
+ delete currentFormats[format];
+
+ each(callbacks, function(callback) {
+ callback(false, {node: node, format: format, parents: parents});
+ });
+ }
+ });
+ });
+ }
+
+ // Add format listeners
+ each(formats.split(','), function(format) {
+ if (!formatChangeData[format]) {
+ formatChangeData[format] = [];
+ formatChangeData[format].similar = similar;
+ }
+
+ formatChangeData[format].push(callback);
+ });
+
+ return this;
+ };
+
+ // Expose to public
+ tinymce.extend(this, {
+ get : get,
+ register : register,
+ apply : apply,
+ remove : remove,
+ toggle : toggle,
+ match : match,
+ matchAll : matchAll,
+ matchNode : matchNode,
+ canApply : canApply,
+ formatChanged: formatChanged
+ });
+
+ // Initialize
+ defaultFormats();
+ addKeyboardShortcuts();
+
+ // Private functions
+
+ function matchName(node, format) {
+ // Check for inline match
+ if (isEq(node, format.inline))
+ return TRUE;
+
+ // Check for block match
+ if (isEq(node, format.block))
+ return TRUE;
+
+ // Check for selector match
+ if (format.selector)
+ return dom.is(node, format.selector);
+ };
+
+ function isEq(str1, str2) {
+ str1 = str1 || '';
+ str2 = str2 || '';
+
+ str1 = '' + (str1.nodeName || str1);
+ str2 = '' + (str2.nodeName || str2);
+
+ return str1.toLowerCase() == str2.toLowerCase();
+ };
+
+ function getStyle(node, name) {
+ var styleVal = dom.getStyle(node, name);
+
+ // Force the format to hex
+ if (name == 'color' || name == 'backgroundColor')
+ styleVal = dom.toHex(styleVal);
+
+ // Opera will return bold as 700
+ if (name == 'fontWeight' && styleVal == 700)
+ styleVal = 'bold';
+
+ return '' + styleVal;
+ };
+
+ function replaceVars(value, vars) {
+ if (typeof(value) != "string")
+ value = value(vars);
+ else if (vars) {
+ value = value.replace(/%(\w+)/g, function(str, name) {
+ return vars[name] || str;
+ });
+ }
+
+ return value;
+ };
+
+ function isWhiteSpaceNode(node) {
+ return node && node.nodeType === 3 && /^([\t \r\n]+|)$/.test(node.nodeValue);
+ };
+
+ function wrap(node, name, attrs) {
+ var wrapper = dom.create(name, attrs);
+
+ node.parentNode.insertBefore(wrapper, node);
+ wrapper.appendChild(node);
+
+ return wrapper;
+ };
+
+ function expandRng(rng, format, remove) {
+ var sibling, lastIdx, leaf, endPoint,
+ startContainer = rng.startContainer,
+ startOffset = rng.startOffset,
+ endContainer = rng.endContainer,
+ endOffset = rng.endOffset;
+
+ // This function walks up the tree if there is no siblings before/after the node
+ function findParentContainer(start) {
+ var container, parent, child, sibling, siblingName, root;
+
+ container = parent = start ? startContainer : endContainer;
+ siblingName = start ? 'previousSibling' : 'nextSibling';
+ root = dom.getRoot();
+
+ function isBogusBr(node) {
+ return node.nodeName == "BR" && node.getAttribute('data-mce-bogus') && !node.nextSibling;
+ };
+
+ // If it's a text node and the offset is inside the text
+ if (container.nodeType == 3 && !isWhiteSpaceNode(container)) {
+ if (start ? startOffset > 0 : endOffset < container.nodeValue.length) {
+ return container;
+ }
+ }
+
+ for (;;) {
+ // Stop expanding on block elements
+ if (!format[0].block_expand && isBlock(parent))
+ return parent;
+
+ // Walk left/right
+ for (sibling = parent[siblingName]; sibling; sibling = sibling[siblingName]) {
+ if (!isBookmarkNode(sibling) && !isWhiteSpaceNode(sibling) && !isBogusBr(sibling)) {
+ return parent;
+ }
+ }
+
+ // Check if we can move up are we at root level or body level
+ if (parent.parentNode == root) {
+ container = parent;
+ break;
+ }
+
+ parent = parent.parentNode;
+ }
+
+ return container;
+ };
+
+ // This function walks down the tree to find the leaf at the selection.
+ // The offset is also returned as if node initially a leaf, the offset may be in the middle of the text node.
+ function findLeaf(node, offset) {
+ if (offset === undef)
+ offset = node.nodeType === 3 ? node.length : node.childNodes.length;
+ while (node && node.hasChildNodes()) {
+ node = node.childNodes[offset];
+ if (node)
+ offset = node.nodeType === 3 ? node.length : node.childNodes.length;
+ }
+ return { node: node, offset: offset };
+ }
+
+ // If index based start position then resolve it
+ if (startContainer.nodeType == 1 && startContainer.hasChildNodes()) {
+ lastIdx = startContainer.childNodes.length - 1;
+ startContainer = startContainer.childNodes[startOffset > lastIdx ? lastIdx : startOffset];
+
+ if (startContainer.nodeType == 3)
+ startOffset = 0;
+ }
+
+ // If index based end position then resolve it
+ if (endContainer.nodeType == 1 && endContainer.hasChildNodes()) {
+ lastIdx = endContainer.childNodes.length - 1;
+ endContainer = endContainer.childNodes[endOffset > lastIdx ? lastIdx : endOffset - 1];
+
+ if (endContainer.nodeType == 3)
+ endOffset = endContainer.nodeValue.length;
+ }
+
+ // Expands the node to the closes contentEditable false element if it exists
+ function findParentContentEditable(node) {
+ var parent = node;
+
+ while (parent) {
+ if (parent.nodeType === 1 && getContentEditable(parent)) {
+ return getContentEditable(parent) === "false" ? parent : node;
+ }
+
+ parent = parent.parentNode;
+ }
+
+ return node;
+ };
+
+ function findWordEndPoint(container, offset, start) {
+ var walker, node, pos, lastTextNode;
+
+ function findSpace(node, offset) {
+ var pos, pos2, str = node.nodeValue;
+
+ if (typeof(offset) == "undefined") {
+ offset = start ? str.length : 0;
+ }
+
+ if (start) {
+ pos = str.lastIndexOf(' ', offset);
+ pos2 = str.lastIndexOf('\u00a0', offset);
+ pos = pos > pos2 ? pos : pos2;
+
+ // Include the space on remove to avoid tag soup
+ if (pos !== -1 && !remove) {
+ pos++;
+ }
+ } else {
+ pos = str.indexOf(' ', offset);
+ pos2 = str.indexOf('\u00a0', offset);
+ pos = pos !== -1 && (pos2 === -1 || pos < pos2) ? pos : pos2;
+ }
+
+ return pos;
+ };
+
+ if (container.nodeType === 3) {
+ pos = findSpace(container, offset);
+
+ if (pos !== -1) {
+ return {container : container, offset : pos};
+ }
+
+ lastTextNode = container;
+ }
+
+ // Walk the nodes inside the block
+ walker = new TreeWalker(container, dom.getParent(container, isBlock) || ed.getBody());
+ while (node = walker[start ? 'prev' : 'next']()) {
+ if (node.nodeType === 3) {
+ lastTextNode = node;
+ pos = findSpace(node);
+
+ if (pos !== -1) {
+ return {container : node, offset : pos};
+ }
+ } else if (isBlock(node)) {
+ break;
+ }
+ }
+
+ if (lastTextNode) {
+ if (start) {
+ offset = 0;
+ } else {
+ offset = lastTextNode.length;
+ }
+
+ return {container: lastTextNode, offset: offset};
+ }
+ };
+
+ function findSelectorEndPoint(container, sibling_name) {
+ var parents, i, y, curFormat;
+
+ if (container.nodeType == 3 && container.nodeValue.length === 0 && container[sibling_name])
+ container = container[sibling_name];
+
+ parents = getParents(container);
+ for (i = 0; i < parents.length; i++) {
+ for (y = 0; y < format.length; y++) {
+ curFormat = format[y];
+
+ // If collapsed state is set then skip formats that doesn't match that
+ if ("collapsed" in curFormat && curFormat.collapsed !== rng.collapsed)
+ continue;
+
+ if (dom.is(parents[i], curFormat.selector))
+ return parents[i];
+ }
+ }
+
+ return container;
+ };
+
+ function findBlockEndPoint(container, sibling_name, sibling_name2) {
+ var node;
+
+ // Expand to block of similar type
+ if (!format[0].wrapper)
+ node = dom.getParent(container, format[0].block);
+
+ // Expand to first wrappable block element or any block element
+ if (!node)
+ node = dom.getParent(container.nodeType == 3 ? container.parentNode : container, isTextBlock);
+
+ // Exclude inner lists from wrapping
+ if (node && format[0].wrapper)
+ node = getParents(node, 'ul,ol').reverse()[0] || node;
+
+ // Didn't find a block element look for first/last wrappable element
+ if (!node) {
+ node = container;
+
+ while (node[sibling_name] && !isBlock(node[sibling_name])) {
+ node = node[sibling_name];
+
+ // Break on BR but include it will be removed later on
+ // we can't remove it now since we need to check if it can be wrapped
+ if (isEq(node, 'br'))
+ break;
+ }
+ }
+
+ return node || container;
+ };
+
+ // Expand to closest contentEditable element
+ startContainer = findParentContentEditable(startContainer);
+ endContainer = findParentContentEditable(endContainer);
+
+ // Exclude bookmark nodes if possible
+ if (isBookmarkNode(startContainer.parentNode) || isBookmarkNode(startContainer)) {
+ startContainer = isBookmarkNode(startContainer) ? startContainer : startContainer.parentNode;
+ startContainer = startContainer.nextSibling || startContainer;
+
+ if (startContainer.nodeType == 3)
+ startOffset = 0;
+ }
+
+ if (isBookmarkNode(endContainer.parentNode) || isBookmarkNode(endContainer)) {
+ endContainer = isBookmarkNode(endContainer) ? endContainer : endContainer.parentNode;
+ endContainer = endContainer.previousSibling || endContainer;
+
+ if (endContainer.nodeType == 3)
+ endOffset = endContainer.length;
+ }
+
+ if (format[0].inline) {
+ if (rng.collapsed) {
+ // Expand left to closest word boundery
+ endPoint = findWordEndPoint(startContainer, startOffset, true);
+ if (endPoint) {
+ startContainer = endPoint.container;
+ startOffset = endPoint.offset;
+ }
+
+ // Expand right to closest word boundery
+ endPoint = findWordEndPoint(endContainer, endOffset);
+ if (endPoint) {
+ endContainer = endPoint.container;
+ endOffset = endPoint.offset;
+ }
+ }
+
+ // Avoid applying formatting to a trailing space.
+ leaf = findLeaf(endContainer, endOffset);
+ if (leaf.node) {
+ while (leaf.node && leaf.offset === 0 && leaf.node.previousSibling)
+ leaf = findLeaf(leaf.node.previousSibling);
+
+ if (leaf.node && leaf.offset > 0 && leaf.node.nodeType === 3 &&
+ leaf.node.nodeValue.charAt(leaf.offset - 1) === ' ') {
+
+ if (leaf.offset > 1) {
+ endContainer = leaf.node;
+ endContainer.splitText(leaf.offset - 1);
+ }
+ }
+ }
+ }
+
+ // Move start/end point up the tree if the leaves are sharp and if we are in different containers
+ // Example * becomes !: !<p><b><i>*text</i><i>text*</i></b></p>!
+ // This will reduce the number of wrapper elements that needs to be created
+ // Move start point up the tree
+ if (format[0].inline || format[0].block_expand) {
+ if (!format[0].inline || (startContainer.nodeType != 3 || startOffset === 0)) {
+ startContainer = findParentContainer(true);
+ }
+
+ if (!format[0].inline || (endContainer.nodeType != 3 || endOffset === endContainer.nodeValue.length)) {
+ endContainer = findParentContainer();
+ }
+ }
+
+ // Expand start/end container to matching selector
+ if (format[0].selector && format[0].expand !== FALSE && !format[0].inline) {
+ // Find new startContainer/endContainer if there is better one
+ startContainer = findSelectorEndPoint(startContainer, 'previousSibling');
+ endContainer = findSelectorEndPoint(endContainer, 'nextSibling');
+ }
+
+ // Expand start/end container to matching block element or text node
+ if (format[0].block || format[0].selector) {
+ // Find new startContainer/endContainer if there is better one
+ startContainer = findBlockEndPoint(startContainer, 'previousSibling');
+ endContainer = findBlockEndPoint(endContainer, 'nextSibling');
+
+ // Non block element then try to expand up the leaf
+ if (format[0].block) {
+ if (!isBlock(startContainer))
+ startContainer = findParentContainer(true);
+
+ if (!isBlock(endContainer))
+ endContainer = findParentContainer();
+ }
+ }
+
+ // Setup index for startContainer
+ if (startContainer.nodeType == 1) {
+ startOffset = nodeIndex(startContainer);
+ startContainer = startContainer.parentNode;
+ }
+
+ // Setup index for endContainer
+ if (endContainer.nodeType == 1) {
+ endOffset = nodeIndex(endContainer) + 1;
+ endContainer = endContainer.parentNode;
+ }
+
+ // Return new range like object
+ return {
+ startContainer : startContainer,
+ startOffset : startOffset,
+ endContainer : endContainer,
+ endOffset : endOffset
+ };
+ }
+
+ function removeFormat(format, vars, node, compare_node) {
+ var i, attrs, stylesModified;
+
+ // Check if node matches format
+ if (!matchName(node, format))
+ return FALSE;
+
+ // Should we compare with format attribs and styles
+ if (format.remove != 'all') {
+ // Remove styles
+ each(format.styles, function(value, name) {
+ value = replaceVars(value, vars);
+
+ // Indexed array
+ if (typeof(name) === 'number') {
+ name = value;
+ compare_node = 0;
+ }
+
+ if (!compare_node || isEq(getStyle(compare_node, name), value))
+ dom.setStyle(node, name, '');
+
+ stylesModified = 1;
+ });
+
+ // Remove style attribute if it's empty
+ if (stylesModified && dom.getAttrib(node, 'style') == '') {
+ node.removeAttribute('style');
+ node.removeAttribute('data-mce-style');
+ }
+
+ // Remove attributes
+ each(format.attributes, function(value, name) {
+ var valueOut;
+
+ value = replaceVars(value, vars);
+
+ // Indexed array
+ if (typeof(name) === 'number') {
+ name = value;
+ compare_node = 0;
+ }
+
+ if (!compare_node || isEq(dom.getAttrib(compare_node, name), value)) {
+ // Keep internal classes
+ if (name == 'class') {
+ value = dom.getAttrib(node, name);
+ if (value) {
+ // Build new class value where everything is removed except the internal prefixed classes
+ valueOut = '';
+ each(value.split(/\s+/), function(cls) {
+ if (/mce\w+/.test(cls))
+ valueOut += (valueOut ? ' ' : '') + cls;
+ });
+
+ // We got some internal classes left
+ if (valueOut) {
+ dom.setAttrib(node, name, valueOut);
+ return;
+ }
+ }
+ }
+
+ // IE6 has a bug where the attribute doesn't get removed correctly
+ if (name == "class")
+ node.removeAttribute('className');
+
+ // Remove mce prefixed attributes
+ if (MCE_ATTR_RE.test(name))
+ node.removeAttribute('data-mce-' + name);
+
+ node.removeAttribute(name);
+ }
+ });
+
+ // Remove classes
+ each(format.classes, function(value) {
+ value = replaceVars(value, vars);
+
+ if (!compare_node || dom.hasClass(compare_node, value))
+ dom.removeClass(node, value);
+ });
+
+ // Check for non internal attributes
+ attrs = dom.getAttribs(node);
+ for (i = 0; i < attrs.length; i++) {
+ if (attrs[i].nodeName.indexOf('_') !== 0)
+ return FALSE;
+ }
+ }
+
+ // Remove the inline child if it's empty for example <b> or <span>
+ if (format.remove != 'none') {
+ removeNode(node, format);
+ return TRUE;
+ }
+ };
+
+ function removeNode(node, format) {
+ var parentNode = node.parentNode, rootBlockElm;
+
+ function find(node, next, inc) {
+ node = getNonWhiteSpaceSibling(node, next, inc);
+
+ return !node || (node.nodeName == 'BR' || isBlock(node));
+ };
+
+ if (format.block) {
+ if (!forcedRootBlock) {
+ // Append BR elements if needed before we remove the block
+ if (isBlock(node) && !isBlock(parentNode)) {
+ if (!find(node, FALSE) && !find(node.firstChild, TRUE, 1))
+ node.insertBefore(dom.create('br'), node.firstChild);
+
+ if (!find(node, TRUE) && !find(node.lastChild, FALSE, 1))
+ node.appendChild(dom.create('br'));
+ }
+ } else {
+ // Wrap the block in a forcedRootBlock if we are at the root of document
+ if (parentNode == dom.getRoot()) {
+ if (!format.list_block || !isEq(node, format.list_block)) {
+ each(tinymce.grep(node.childNodes), function(node) {
+ if (isValid(forcedRootBlock, node.nodeName.toLowerCase())) {
+ if (!rootBlockElm)
+ rootBlockElm = wrap(node, forcedRootBlock);
+ else
+ rootBlockElm.appendChild(node);
+ } else
+ rootBlockElm = 0;
+ });
+ }
+ }
+ }
+ }
+
+ // Never remove nodes that isn't the specified inline element if a selector is specified too
+ if (format.selector && format.inline && !isEq(format.inline, node))
+ return;
+
+ dom.remove(node, 1);
+ };
+
+ function getNonWhiteSpaceSibling(node, next, inc) {
+ if (node) {
+ next = next ? 'nextSibling' : 'previousSibling';
+
+ for (node = inc ? node : node[next]; node; node = node[next]) {
+ if (node.nodeType == 1 || !isWhiteSpaceNode(node))
+ return node;
+ }
+ }
+ };
+
+ function isBookmarkNode(node) {
+ return node && node.nodeType == 1 && node.getAttribute('data-mce-type') == 'bookmark';
+ };
+
+ function mergeSiblings(prev, next) {
+ var marker, sibling, tmpSibling;
+
+ function compareElements(node1, node2) {
+ // Not the same name
+ if (node1.nodeName != node2.nodeName)
+ return FALSE;
+
+ function getAttribs(node) {
+ var attribs = {};
+
+ each(dom.getAttribs(node), function(attr) {
+ var name = attr.nodeName.toLowerCase();
+
+ // Don't compare internal attributes or style
+ if (name.indexOf('_') !== 0 && name !== 'style')
+ attribs[name] = dom.getAttrib(node, name);
+ });
+
+ return attribs;
+ };
+
+ function compareObjects(obj1, obj2) {
+ var value, name;
+
+ for (name in obj1) {
+ // Obj1 has item obj2 doesn't have
+ if (obj1.hasOwnProperty(name)) {
+ value = obj2[name];
+
+ // Obj2 doesn't have obj1 item
+ if (value === undef)
+ return FALSE;
+
+ // Obj2 item has a different value
+ if (obj1[name] != value)
+ return FALSE;
+
+ // Delete similar value
+ delete obj2[name];
+ }
+ }
+
+ // Check if obj 2 has something obj 1 doesn't have
+ for (name in obj2) {
+ // Obj2 has item obj1 doesn't have
+ if (obj2.hasOwnProperty(name))
+ return FALSE;
+ }
+
+ return TRUE;
+ };
+
+ // Attribs are not the same
+ if (!compareObjects(getAttribs(node1), getAttribs(node2)))
+ return FALSE;
+
+ // Styles are not the same
+ if (!compareObjects(dom.parseStyle(dom.getAttrib(node1, 'style')), dom.parseStyle(dom.getAttrib(node2, 'style'))))
+ return FALSE;
+
+ return TRUE;
+ };
+
+ function findElementSibling(node, sibling_name) {
+ for (sibling = node; sibling; sibling = sibling[sibling_name]) {
+ if (sibling.nodeType == 3 && sibling.nodeValue.length !== 0)
+ return node;
+
+ if (sibling.nodeType == 1 && !isBookmarkNode(sibling))
+ return sibling;
+ }
+
+ return node;
+ };
+
+ // Check if next/prev exists and that they are elements
+ if (prev && next) {
+ // If previous sibling is empty then jump over it
+ prev = findElementSibling(prev, 'previousSibling');
+ next = findElementSibling(next, 'nextSibling');
+
+ // Compare next and previous nodes
+ if (compareElements(prev, next)) {
+ // Append nodes between
+ for (sibling = prev.nextSibling; sibling && sibling != next;) {
+ tmpSibling = sibling;
+ sibling = sibling.nextSibling;
+ prev.appendChild(tmpSibling);
+ }
+
+ // Remove next node
+ dom.remove(next);
+
+ // Move children into prev node
+ each(tinymce.grep(next.childNodes), function(node) {
+ prev.appendChild(node);
+ });
+
+ return prev;
+ }
+ }
+
+ return next;
+ };
+
+ function isTextBlock(name) {
+ return /^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(name);
+ };
+
+ function getContainer(rng, start) {
+ var container, offset, lastIdx, walker;
+
+ container = rng[start ? 'startContainer' : 'endContainer'];
+ offset = rng[start ? 'startOffset' : 'endOffset'];
+
+ if (container.nodeType == 1) {
+ lastIdx = container.childNodes.length - 1;
+
+ if (!start && offset)
+ offset--;
+
+ container = container.childNodes[offset > lastIdx ? lastIdx : offset];
+ }
+
+ // If start text node is excluded then walk to the next node
+ if (container.nodeType === 3 && start && offset >= container.nodeValue.length) {
+ container = new TreeWalker(container, ed.getBody()).next() || container;
+ }
+
+ // If end text node is excluded then walk to the previous node
+ if (container.nodeType === 3 && !start && offset === 0) {
+ container = new TreeWalker(container, ed.getBody()).prev() || container;
+ }
+
+ return container;
+ };
+
+ function performCaretAction(type, name, vars) {
+ var caretContainerId = '_mce_caret', debug = ed.settings.caret_debug;
+
+ // Creates a caret container bogus element
+ function createCaretContainer(fill) {
+ var caretContainer = dom.create('span', {id: caretContainerId, 'data-mce-bogus': true, style: debug ? 'color:red' : ''});
+
+ if (fill) {
+ caretContainer.appendChild(ed.getDoc().createTextNode(INVISIBLE_CHAR));
+ }
+
+ return caretContainer;
+ };
+
+ function isCaretContainerEmpty(node, nodes) {
+ while (node) {
+ if ((node.nodeType === 3 && node.nodeValue !== INVISIBLE_CHAR) || node.childNodes.length > 1) {
+ return false;
+ }
+
+ // Collect nodes
+ if (nodes && node.nodeType === 1) {
+ nodes.push(node);
+ }
+
+ node = node.firstChild;
+ }
+
+ return true;
+ };
+
+ // Returns any parent caret container element
+ function getParentCaretContainer(node) {
+ while (node) {
+ if (node.id === caretContainerId) {
+ return node;
+ }
+
+ node = node.parentNode;
+ }
+ };
+
+ // Finds the first text node in the specified node
+ function findFirstTextNode(node) {
+ var walker;
+
+ if (node) {
+ walker = new TreeWalker(node, node);
+
+ for (node = walker.current(); node; node = walker.next()) {
+ if (node.nodeType === 3) {
+ return node;
+ }
+ }
+ }
+ };
+
+ // Removes the caret container for the specified node or all on the current document
+ function removeCaretContainer(node, move_caret) {
+ var child, rng;
+
+ if (!node) {
+ node = getParentCaretContainer(selection.getStart());
+
+ if (!node) {
+ while (node = dom.get(caretContainerId)) {
+ removeCaretContainer(node, false);
+ }
+ }
+ } else {
+ rng = selection.getRng(true);
+
+ if (isCaretContainerEmpty(node)) {
+ if (move_caret !== false) {
+ rng.setStartBefore(node);
+ rng.setEndBefore(node);
+ }
+
+ dom.remove(node);
+ } else {
+ child = findFirstTextNode(node);
+
+ if (child.nodeValue.charAt(0) === INVISIBLE_CHAR) {
+ child = child.deleteData(0, 1);
+ }
+
+ dom.remove(node, 1);
+ }
+
+ selection.setRng(rng);
+ }
+ };
+
+ // Applies formatting to the caret postion
+ function applyCaretFormat() {
+ var rng, caretContainer, textNode, offset, bookmark, container, text;
+
+ rng = selection.getRng(true);
+ offset = rng.startOffset;
+ container = rng.startContainer;
+ text = container.nodeValue;
+
+ caretContainer = getParentCaretContainer(selection.getStart());
+ if (caretContainer) {
+ textNode = findFirstTextNode(caretContainer);
+ }
+
+ // Expand to word is caret is in the middle of a text node and the char before/after is a alpha numeric character
+ if (text && offset > 0 && offset < text.length && /\w/.test(text.charAt(offset)) && /\w/.test(text.charAt(offset - 1))) {
+ // Get bookmark of caret position
+ bookmark = selection.getBookmark();
+
+ // Collapse bookmark range (WebKit)
+ rng.collapse(true);
+
+ // Expand the range to the closest word and split it at those points
+ rng = expandRng(rng, get(name));
+ rng = rangeUtils.split(rng);
+
+ // Apply the format to the range
+ apply(name, vars, rng);
+
+ // Move selection back to caret position
+ selection.moveToBookmark(bookmark);
+ } else {
+ if (!caretContainer || textNode.nodeValue !== INVISIBLE_CHAR) {
+ caretContainer = createCaretContainer(true);
+ textNode = caretContainer.firstChild;
+
+ rng.insertNode(caretContainer);
+ offset = 1;
+
+ apply(name, vars, caretContainer);
+ } else {
+ apply(name, vars, caretContainer);
+ }
+
+ // Move selection to text node
+ selection.setCursorLocation(textNode, offset);
+ }
+ };
+
+ function removeCaretFormat() {
+ var rng = selection.getRng(true), container, offset, bookmark,
+ hasContentAfter, node, formatNode, parents = [], i, caretContainer;
+
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ node = container;
+
+ if (container.nodeType == 3) {
+ if (offset != container.nodeValue.length || container.nodeValue === INVISIBLE_CHAR) {
+ hasContentAfter = true;
+ }
+
+ node = node.parentNode;
+ }
+
+ while (node) {
+ if (matchNode(node, name, vars)) {
+ formatNode = node;
+ break;
+ }
+
+ if (node.nextSibling) {
+ hasContentAfter = true;
+ }
+
+ parents.push(node);
+ node = node.parentNode;
+ }
+
+ // Node doesn't have the specified format
+ if (!formatNode) {
+ return;
+ }
+
+ // Is there contents after the caret then remove the format on the element
+ if (hasContentAfter) {
+ // Get bookmark of caret position
+ bookmark = selection.getBookmark();
+
+ // Collapse bookmark range (WebKit)
+ rng.collapse(true);
+
+ // Expand the range to the closest word and split it at those points
+ rng = expandRng(rng, get(name), true);
+ rng = rangeUtils.split(rng);
+
+ // Remove the format from the range
+ remove(name, vars, rng);
+
+ // Move selection back to caret position
+ selection.moveToBookmark(bookmark);
+ } else {
+ caretContainer = createCaretContainer();
+
+ node = caretContainer;
+ for (i = parents.length - 1; i >= 0; i--) {
+ node.appendChild(dom.clone(parents[i], false));
+ node = node.firstChild;
+ }
+
+ // Insert invisible character into inner most format element
+ node.appendChild(dom.doc.createTextNode(INVISIBLE_CHAR));
+ node = node.firstChild;
+
+ // Insert caret container after the formated node
+ dom.insertAfter(caretContainer, formatNode);
+
+ // Move selection to text node
+ selection.setCursorLocation(node, 1);
+ }
+ };
+
+ // Checks if the parent caret container node isn't empty if that is the case it
+ // will remove the bogus state on all children that isn't empty
+ function unmarkBogusCaretParents() {
+ var i, caretContainer, node;
+
+ caretContainer = getParentCaretContainer(selection.getStart());
+ if (caretContainer && !dom.isEmpty(caretContainer)) {
+ tinymce.walk(caretContainer, function(node) {
+ if (node.nodeType == 1 && node.id !== caretContainerId && !dom.isEmpty(node)) {
+ dom.setAttrib(node, 'data-mce-bogus', null);
+ }
+ }, 'childNodes');
+ }
+ };
+
+ // Only bind the caret events once
+ if (!self._hasCaretEvents) {
+ // Mark current caret container elements as bogus when getting the contents so we don't end up with empty elements
+ ed.onBeforeGetContent.addToTop(function() {
+ var nodes = [], i;
+
+ if (isCaretContainerEmpty(getParentCaretContainer(selection.getStart()), nodes)) {
+ // Mark children
+ i = nodes.length;
+ while (i--) {
+ dom.setAttrib(nodes[i], 'data-mce-bogus', '1');
+ }
+ }
+ });
+
+ // Remove caret container on mouse up and on key up
+ tinymce.each('onMouseUp onKeyUp'.split(' '), function(name) {
+ ed[name].addToTop(function() {
+ removeCaretContainer();
+ unmarkBogusCaretParents();
+ });
+ });
+
+ // Remove caret container on keydown and it's a backspace, enter or left/right arrow keys
+ ed.onKeyDown.addToTop(function(ed, e) {
+ var keyCode = e.keyCode;
+
+ if (keyCode == 8 || keyCode == 37 || keyCode == 39) {
+ removeCaretContainer(getParentCaretContainer(selection.getStart()));
+ }
+
+ unmarkBogusCaretParents();
+ });
+
+ // Remove bogus state if they got filled by contents using editor.selection.setContent
+ selection.onSetContent.add(unmarkBogusCaretParents);
+
+ self._hasCaretEvents = true;
+ }
+
+ // Do apply or remove caret format
+ if (type == "apply") {
+ applyCaretFormat();
+ } else {
+ removeCaretFormat();
+ }
+ };
+
+ function moveStart(rng) {
+ var container = rng.startContainer,
+ offset = rng.startOffset, isAtEndOfText,
+ walker, node, nodes, tmpNode;
+
+ // Convert text node into index if possible
+ if (container.nodeType == 3 && offset >= container.nodeValue.length) {
+ // Get the parent container location and walk from there
+ offset = nodeIndex(container);
+ container = container.parentNode;
+ isAtEndOfText = true;
+ }
+
+ // Move startContainer/startOffset in to a suitable node
+ if (container.nodeType == 1) {
+ nodes = container.childNodes;
+ container = nodes[Math.min(offset, nodes.length - 1)];
+ walker = new TreeWalker(container, dom.getParent(container, dom.isBlock));
+
+ // If offset is at end of the parent node walk to the next one
+ if (offset > nodes.length - 1 || isAtEndOfText)
+ walker.next();
+
+ for (node = walker.current(); node; node = walker.next()) {
+ if (node.nodeType == 3 && !isWhiteSpaceNode(node)) {
+ // IE has a "neat" feature where it moves the start node into the closest element
+ // we can avoid this by inserting an element before it and then remove it after we set the selection
+ tmpNode = dom.create('a', null, INVISIBLE_CHAR);
+ node.parentNode.insertBefore(tmpNode, node);
+
+ // Set selection and remove tmpNode
+ rng.setStart(node, 0);
+ selection.setRng(rng);
+ dom.remove(tmpNode);
+
+ return;
+ }
+ }
+ }
+ };
+ };
+})(tinymce);
+
+tinymce.onAddEditor.add(function(tinymce, ed) {
+ var filters, fontSizes, dom, settings = ed.settings;
+
+ function replaceWithSpan(node, styles) {
+ tinymce.each(styles, function(value, name) {
+ if (value)
+ dom.setStyle(node, name, value);
+ });
+
+ dom.rename(node, 'span');
+ };
+
+ function convert(editor, params) {
+ dom = editor.dom;
+
+ if (settings.convert_fonts_to_spans) {
+ tinymce.each(dom.select('font,u,strike', params.node), function(node) {
+ filters[node.nodeName.toLowerCase()](ed.dom, node);
+ });
+ }
+ };
+
+ if (settings.inline_styles) {
+ fontSizes = tinymce.explode(settings.font_size_legacy_values);
+
+ filters = {
+ font : function(dom, node) {
+ replaceWithSpan(node, {
+ backgroundColor : node.style.backgroundColor,
+ color : node.color,
+ fontFamily : node.face,
+ fontSize : fontSizes[parseInt(node.size, 10) - 1]
+ });
+ },
+
+ u : function(dom, node) {
+ replaceWithSpan(node, {
+ textDecoration : 'underline'
+ });
+ },
+
+ strike : function(dom, node) {
+ replaceWithSpan(node, {
+ textDecoration : 'line-through'
+ });
+ }
+ };
+
+ ed.onPreProcess.add(convert);
+ ed.onSetContent.add(convert);
+
+ ed.onInit.add(function() {
+ ed.selection.onSetContent.add(convert);
+ });
+ }
+});
+
+(function(tinymce) {
+ var TreeWalker = tinymce.dom.TreeWalker;
+
+ tinymce.EnterKey = function(editor) {
+ var dom = editor.dom, selection = editor.selection, settings = editor.settings, undoManager = editor.undoManager, nonEmptyElementsMap = editor.schema.getNonEmptyElements();
+
+ function handleEnterKey(evt) {
+ var rng = selection.getRng(true), tmpRng, editableRoot, container, offset, parentBlock, documentMode, shiftKey,
+ newBlock, fragment, containerBlock, parentBlockName, containerBlockName, newBlockName, isAfterLastNodeInContainer;
+
+ // Returns true if the block can be split into two blocks or not
+ function canSplitBlock(node) {
+ return node &&
+ dom.isBlock(node) &&
+ !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) &&
+ !/^(fixed|absolute)/i.test(node.style.position) &&
+ dom.getContentEditable(node) !== "true";
+ };
+
+ // Renders empty block on IE
+ function renderBlockOnIE(block) {
+ var oldRng;
+
+ if (tinymce.isIE && dom.isBlock(block)) {
+ oldRng = selection.getRng();
+ block.appendChild(dom.create('span', null, '\u00a0'));
+ selection.select(block);
+ block.lastChild.outerHTML = '';
+ selection.setRng(oldRng);
+ }
+ };
+
+ // Remove the first empty inline element of the block so this: <p><b><em></em></b>x</p> becomes this: <p>x</p>
+ function trimInlineElementsOnLeftSideOfBlock(block) {
+ var node = block, firstChilds = [], i;
+
+ // Find inner most first child ex: <p><i><b>*</b></i></p>
+ while (node = node.firstChild) {
+ if (dom.isBlock(node)) {
+ return;
+ }
+
+ if (node.nodeType == 1 && !nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ firstChilds.push(node);
+ }
+ }
+
+ i = firstChilds.length;
+ while (i--) {
+ node = firstChilds[i];
+ if (!node.hasChildNodes() || (node.firstChild == node.lastChild && node.firstChild.nodeValue === '')) {
+ dom.remove(node);
+ } else {
+ // Remove <a> </a> see #5381
+ if (node.nodeName == "A" && (node.innerText || node.textContent) === ' ') {
+ dom.remove(node);
+ }
+ }
+ }
+ };
+
+ // Moves the caret to a suitable position within the root for example in the first non pure whitespace text node or before an image
+ function moveToCaretPosition(root) {
+ var walker, node, rng, y, viewPort, lastNode = root, tempElm;
+
+ rng = dom.createRng();
+
+ if (root.hasChildNodes()) {
+ walker = new TreeWalker(root, root);
+
+ while (node = walker.current()) {
+ if (node.nodeType == 3) {
+ rng.setStart(node, 0);
+ rng.setEnd(node, 0);
+ break;
+ }
+
+ if (nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ rng.setStartBefore(node);
+ rng.setEndBefore(node);
+ break;
+ }
+
+ lastNode = node;
+ node = walker.next();
+ }
+
+ if (!node) {
+ rng.setStart(lastNode, 0);
+ rng.setEnd(lastNode, 0);
+ }
+ } else {
+ if (root.nodeName == 'BR') {
+ if (root.nextSibling && dom.isBlock(root.nextSibling)) {
+ // Trick on older IE versions to render the caret before the BR between two lists
+ if (!documentMode || documentMode < 9) {
+ tempElm = dom.create('br');
+ root.parentNode.insertBefore(tempElm, root);
+ }
+
+ rng.setStartBefore(root);
+ rng.setEndBefore(root);
+ } else {
+ rng.setStartAfter(root);
+ rng.setEndAfter(root);
+ }
+ } else {
+ rng.setStart(root, 0);
+ rng.setEnd(root, 0);
+ }
+ }
+
+ selection.setRng(rng);
+
+ // Remove tempElm created for old IE:s
+ dom.remove(tempElm);
+
+ viewPort = dom.getViewPort(editor.getWin());
+
+ // scrollIntoView seems to scroll the parent window in most browsers now including FF 3.0b4 so it's time to stop using it and do it our selfs
+ y = dom.getPos(root).y;
+ if (y < viewPort.y || y + 25 > viewPort.y + viewPort.h) {
+ editor.getWin().scrollTo(0, y < viewPort.y ? y : y - viewPort.h + 25); // Needs to be hardcoded to roughly one line of text if a huge text block is broken into two blocks
+ }
+ };
+
+ // Creates a new block element by cloning the current one or creating a new one if the name is specified
+ // This function will also copy any text formatting from the parent block and add it to the new one
+ function createNewBlock(name) {
+ var node = container, block, clonedNode, caretNode;
+
+ block = name || parentBlockName == "TABLE" ? dom.create(name || newBlockName) : parentBlock.cloneNode(false);
+ caretNode = block;
+
+ // Clone any parent styles
+ if (settings.keep_styles !== false) {
+ do {
+ if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(node.nodeName)) {
+ // Never clone a caret containers
+ if (node.id == '_mce_caret') {
+ continue;
+ }
+
+ clonedNode = node.cloneNode(false);
+ dom.setAttrib(clonedNode, 'id', ''); // Remove ID since it needs to be document unique
+
+ if (block.hasChildNodes()) {
+ clonedNode.appendChild(block.firstChild);
+ block.appendChild(clonedNode);
+ } else {
+ caretNode = clonedNode;
+ block.appendChild(clonedNode);
+ }
+ }
+ } while (node = node.parentNode);
+ }
+
+ // BR is needed in empty blocks on non IE browsers
+ if (!tinymce.isIE) {
+ caretNode.innerHTML = '<br data-mce-bogus="1">';
+ }
+
+ return block;
+ };
+
+ // Returns true/false if the caret is at the start/end of the parent block element
+ function isCaretAtStartOrEndOfBlock(start) {
+ var walker, node, name;
+
+ // Caret is in the middle of a text node like "a|b"
+ if (container.nodeType == 3 && (start ? offset > 0 : offset < container.nodeValue.length)) {
+ return false;
+ }
+
+ // If after the last element in block node edge case for #5091
+ if (container.parentNode == parentBlock && isAfterLastNodeInContainer && !start) {
+ return true;
+ }
+
+ // If the caret if before the first element in parentBlock
+ if (start && container.nodeType == 1 && container == parentBlock.firstChild) {
+ return true;
+ }
+
+ // Caret can be before/after a table
+ if (container.nodeName === "TABLE" || (container.previousSibling && container.previousSibling.nodeName == "TABLE")) {
+ return (isAfterLastNodeInContainer && !start) || (!isAfterLastNodeInContainer && start);
+ }
+
+ // Walk the DOM and look for text nodes or non empty elements
+ walker = new TreeWalker(container, parentBlock);
+
+ // If caret is in beginning or end of a text block then jump to the next/previous node
+ if (container.nodeType == 3) {
+ if (start && offset == 0) {
+ walker.prev();
+ } else if (!start && offset == container.nodeValue.length) {
+ walker.next();
+ }
+ }
+
+ while (node = walker.current()) {
+ if (node.nodeType === 1) {
+ // Ignore bogus elements
+ if (!node.getAttribute('data-mce-bogus')) {
+ // Keep empty elements like <img /> <input /> but not trailing br:s like <p>text|<br></p>
+ name = node.nodeName.toLowerCase();
+ if (nonEmptyElementsMap[name] && name !== 'br') {
+ return false;
+ }
+ }
+ } else if (node.nodeType === 3 && !/^[ \t\r\n]*$/.test(node.nodeValue)) {
+ return false;
+ }
+
+ if (start) {
+ walker.prev();
+ } else {
+ walker.next();
+ }
+ }
+
+ return true;
+ };
+
+ // Wraps any text nodes or inline elements in the specified forced root block name
+ function wrapSelfAndSiblingsInDefaultBlock(container, offset) {
+ var newBlock, parentBlock, startNode, node, next, blockName = newBlockName || 'P';
+
+ // Not in a block element or in a table cell or caption
+ parentBlock = dom.getParent(container, dom.isBlock);
+ if (!parentBlock || !canSplitBlock(parentBlock)) {
+ parentBlock = parentBlock || editableRoot;
+
+ if (!parentBlock.hasChildNodes()) {
+ newBlock = dom.create(blockName);
+ parentBlock.appendChild(newBlock);
+ rng.setStart(newBlock, 0);
+ rng.setEnd(newBlock, 0);
+ return newBlock;
+ }
+
+ // Find parent that is the first child of parentBlock
+ node = container;
+ while (node.parentNode != parentBlock) {
+ node = node.parentNode;
+ }
+
+ // Loop left to find start node start wrapping at
+ while (node && !dom.isBlock(node)) {
+ startNode = node;
+ node = node.previousSibling;
+ }
+
+ if (startNode) {
+ newBlock = dom.create(blockName);
+ startNode.parentNode.insertBefore(newBlock, startNode);
+
+ // Start wrapping until we hit a block
+ node = startNode;
+ while (node && !dom.isBlock(node)) {
+ next = node.nextSibling;
+ newBlock.appendChild(node);
+ node = next;
+ }
+
+ // Restore range to it's past location
+ rng.setStart(container, offset);
+ rng.setEnd(container, offset);
+ }
+ }
+
+ return container;
+ };
+
+ // Inserts a block or br before/after or in the middle of a split list of the LI is empty
+ function handleEmptyListItem() {
+ function isFirstOrLastLi(first) {
+ var node = containerBlock[first ? 'firstChild' : 'lastChild'];
+
+ // Find first/last element since there might be whitespace there
+ while (node) {
+ if (node.nodeType == 1) {
+ break;
+ }
+
+ node = node[first ? 'nextSibling' : 'previousSibling'];
+ }
+
+ return node === parentBlock;
+ };
+
+ newBlock = newBlockName ? createNewBlock(newBlockName) : dom.create('BR');
+
+ if (isFirstOrLastLi(true) && isFirstOrLastLi()) {
+ // Is first and last list item then replace the OL/UL with a text block
+ dom.replace(newBlock, containerBlock);
+ } else if (isFirstOrLastLi(true)) {
+ // First LI in list then remove LI and add text block before list
+ containerBlock.parentNode.insertBefore(newBlock, containerBlock);
+ } else if (isFirstOrLastLi()) {
+ // Last LI in list then temove LI and add text block after list
+ dom.insertAfter(newBlock, containerBlock);
+ renderBlockOnIE(newBlock);
+ } else {
+ // Middle LI in list the split the list and insert a text block in the middle
+ // Extract after fragment and insert it after the current block
+ tmpRng = rng.cloneRange();
+ tmpRng.setStartAfter(parentBlock);
+ tmpRng.setEndAfter(containerBlock);
+ fragment = tmpRng.extractContents();
+ dom.insertAfter(fragment, containerBlock);
+ dom.insertAfter(newBlock, containerBlock);
+ }
+
+ dom.remove(parentBlock);
+ moveToCaretPosition(newBlock);
+ undoManager.add();
+ };
+
+ // Walks the parent block to the right and look for BR elements
+ function hasRightSideBr() {
+ var walker = new TreeWalker(container, parentBlock), node;
+
+ while (node = walker.current()) {
+ if (node.nodeName == 'BR') {
+ return true;
+ }
+
+ node = walker.next();
+ }
+ }
+
+ // Inserts a BR element if the forced_root_block option is set to false or empty string
+ function insertBr() {
+ var brElm, extraBr;
+
+ if (container && container.nodeType == 3 && offset >= container.nodeValue.length) {
+ // Insert extra BR element at the end block elements
+ if (!tinymce.isIE && !hasRightSideBr()) {
+ brElm = dom.create('br');
+ rng.insertNode(brElm);
+ rng.setStartAfter(brElm);
+ rng.setEndAfter(brElm);
+ extraBr = true;
+ }
+ }
+
+ brElm = dom.create('br');
+ rng.insertNode(brElm);
+
+ // Rendering modes below IE8 doesn't display BR elements in PRE unless we have a \n before it
+ if (tinymce.isIE && parentBlockName == 'PRE' && (!documentMode || documentMode < 8)) {
+ brElm.parentNode.insertBefore(dom.doc.createTextNode('\r'), brElm);
+ }
+
+ if (!extraBr) {
+ rng.setStartAfter(brElm);
+ rng.setEndAfter(brElm);
+ } else {
+ rng.setStartBefore(brElm);
+ rng.setEndBefore(brElm);
+ }
+
+ selection.setRng(rng);
+ undoManager.add();
+ };
+
+ // Trims any linebreaks at the beginning of node user for example when pressing enter in a PRE element
+ function trimLeadingLineBreaks(node) {
+ do {
+ if (node.nodeType === 3) {
+ node.nodeValue = node.nodeValue.replace(/^[\r\n]+/, '');
+ }
+
+ node = node.firstChild;
+ } while (node);
+ };
+
+ function getEditableRoot(node) {
+ var root = dom.getRoot(), parent, editableRoot;
+
+ // Get all parents until we hit a non editable parent or the root
+ parent = node;
+ while (parent !== root && dom.getContentEditable(parent) !== "false") {
+ if (dom.getContentEditable(parent) === "true") {
+ editableRoot = parent;
+ }
+
+ parent = parent.parentNode;
+ }
+
+ return parent !== root ? editableRoot : root;
+ };
+
+ // Adds a BR at the end of blocks that only contains an IMG or INPUT since these might be floated and then they won't expand the block
+ function addBrToBlockIfNeeded(block) {
+ var lastChild;
+
+ // IE will render the blocks correctly other browsers needs a BR
+ if (!tinymce.isIE) {
+ block.normalize(); // Remove empty text nodes that got left behind by the extract
+
+ // Check if the block is empty or contains a floated last child
+ lastChild = block.lastChild;
+ if (!lastChild || (/^(left|right)$/gi.test(dom.getStyle(lastChild, 'float', true)))) {
+ dom.add(block, 'br');
+ }
+ }
+ };
+
+ // Delete any selected contents
+ if (!rng.collapsed) {
+ editor.execCommand('Delete');
+ return;
+ }
+
+ // Event is blocked by some other handler for example the lists plugin
+ if (evt.isDefaultPrevented()) {
+ return;
+ }
+
+ // Setup range items and newBlockName
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ newBlockName = (settings.force_p_newlines ? 'p' : '') || settings.forced_root_block;
+ newBlockName = newBlockName ? newBlockName.toUpperCase() : '';
+ documentMode = dom.doc.documentMode;
+ shiftKey = evt.shiftKey;
+
+ // Resolve node index
+ if (container.nodeType == 1 && container.hasChildNodes()) {
+ isAfterLastNodeInContainer = offset > container.childNodes.length - 1;
+ container = container.childNodes[Math.min(offset, container.childNodes.length - 1)] || container;
+ if (isAfterLastNodeInContainer && container.nodeType == 3) {
+ offset = container.nodeValue.length;
+ } else {
+ offset = 0;
+ }
+ }
+
+ // Get editable root node normaly the body element but sometimes a div or span
+ editableRoot = getEditableRoot(container);
+
+ // If there is no editable root then enter is done inside a contentEditable false element
+ if (!editableRoot) {
+ return;
+ }
+
+ undoManager.beforeChange();
+
+ // If editable root isn't block nor the root of the editor
+ if (!dom.isBlock(editableRoot) && editableRoot != dom.getRoot()) {
+ if (!newBlockName || shiftKey) {
+ insertBr();
+ }
+
+ return;
+ }
+
+ // Wrap the current node and it's sibling in a default block if it's needed.
+ // for example this <td>text|<b>text2</b></td> will become this <td><p>text|<b>text2</p></b></td>
+ // This won't happen if root blocks are disabled or the shiftKey is pressed
+ if ((newBlockName && !shiftKey) || (!newBlockName && shiftKey)) {
+ container = wrapSelfAndSiblingsInDefaultBlock(container, offset);
+ }
+
+ // Find parent block and setup empty block paddings
+ parentBlock = dom.getParent(container, dom.isBlock);
+ containerBlock = parentBlock ? dom.getParent(parentBlock.parentNode, dom.isBlock) : null;
+
+ // Setup block names
+ parentBlockName = parentBlock ? parentBlock.nodeName.toUpperCase() : ''; // IE < 9 & HTML5
+ containerBlockName = containerBlock ? containerBlock.nodeName.toUpperCase() : ''; // IE < 9 & HTML5
+
+ // Enter inside block contained within a LI then split or insert before/after LI
+ if (containerBlockName == 'LI' && !evt.ctrlKey) {
+ parentBlock = containerBlock;
+ parentBlockName = containerBlockName;
+ }
+
+ // Handle enter in LI
+ if (parentBlockName == 'LI') {
+ if (!newBlockName && shiftKey) {
+ insertBr();
+ return;
+ }
+
+ // Handle enter inside an empty list item
+ if (dom.isEmpty(parentBlock)) {
+ // Let the list plugin or browser handle nested lists for now
+ if (/^(UL|OL|LI)$/.test(containerBlock.parentNode.nodeName)) {
+ return false;
+ }
+
+ handleEmptyListItem();
+ return;
+ }
+ }
+
+ // Don't split PRE tags but insert a BR instead easier when writing code samples etc
+ if (parentBlockName == 'PRE' && settings.br_in_pre !== false) {
+ if (!shiftKey) {
+ insertBr();
+ return;
+ }
+ } else {
+ // If no root block is configured then insert a BR by default or if the shiftKey is pressed
+ if ((!newBlockName && !shiftKey && parentBlockName != 'LI') || (newBlockName && shiftKey)) {
+ insertBr();
+ return;
+ }
+ }
+
+ // Default block name if it's not configured
+ newBlockName = newBlockName || 'P';
+
+ // Insert new block before/after the parent block depending on caret location
+ if (isCaretAtStartOrEndOfBlock()) {
+ // If the caret is at the end of a header we produce a P tag after it similar to Word unless we are in a hgroup
+ if (/^(H[1-6]|PRE)$/.test(parentBlockName) && containerBlockName != 'HGROUP') {
+ newBlock = createNewBlock(newBlockName);
+ } else {
+ newBlock = createNewBlock();
+ }
+
+ // Split the current container block element if enter is pressed inside an empty inner block element
+ if (settings.end_container_on_empty_block && canSplitBlock(containerBlock) && dom.isEmpty(parentBlock)) {
+ // Split container block for example a BLOCKQUOTE at the current blockParent location for example a P
+ newBlock = dom.split(containerBlock, parentBlock);
+ } else {
+ dom.insertAfter(newBlock, parentBlock);
+ }
+
+ moveToCaretPosition(newBlock);
+ } else if (isCaretAtStartOrEndOfBlock(true)) {
+ // Insert new block before
+ newBlock = parentBlock.parentNode.insertBefore(createNewBlock(), parentBlock);
+ renderBlockOnIE(newBlock);
+ } else {
+ // Extract after fragment and insert it after the current block
+ tmpRng = rng.cloneRange();
+ tmpRng.setEndAfter(parentBlock);
+ fragment = tmpRng.extractContents();
+ trimLeadingLineBreaks(fragment);
+ newBlock = fragment.firstChild;
+ dom.insertAfter(fragment, parentBlock);
+ trimInlineElementsOnLeftSideOfBlock(newBlock);
+ addBrToBlockIfNeeded(parentBlock);
+ moveToCaretPosition(newBlock);
+ }
+
+ dom.setAttrib(newBlock, 'id', ''); // Remove ID since it needs to be document unique
+ undoManager.add();
+ }
+
+ editor.onKeyDown.add(function(ed, evt) {
+ if (evt.keyCode == 13) {
+ if (handleEnterKey(evt) !== false) {
+ evt.preventDefault();
+ }
+ }
+ });
+ };
+})(tinymce);
+
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/editable_selects.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/editable_selects.js
new file mode 100755
index 00000000..4b920f3d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/editable_selects.js
@@ -0,0 +1,70 @@
+/**
+ * editable_selects.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+var TinyMCE_EditableSelects = {
+ editSelectElm : null,
+
+ init : function() {
+ var nl = document.getElementsByTagName("select"), i, d = document, o;
+
+ for (i=0; i<nl.length; i++) {
+ if (nl[i].className.indexOf('mceEditableSelect') != -1) {
+ o = new Option(tinyMCEPopup.editor.translate('value'), '__mce_add_custom__');
+
+ o.className = 'mceAddSelectValue';
+
+ nl[i].options[nl[i].options.length] = o;
+ nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
+ }
+ }
+ },
+
+ onChangeEditableSelect : function(e) {
+ var d = document, ne, se = window.event ? window.event.srcElement : e.target;
+
+ if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
+ ne = d.createElement("input");
+ ne.id = se.id + "_custom";
+ ne.name = se.name + "_custom";
+ ne.type = "text";
+
+ ne.style.width = se.offsetWidth + 'px';
+ se.parentNode.insertBefore(ne, se);
+ se.style.display = 'none';
+ ne.focus();
+ ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
+ ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
+ TinyMCE_EditableSelects.editSelectElm = se;
+ }
+ },
+
+ onBlurEditableSelectInput : function() {
+ var se = TinyMCE_EditableSelects.editSelectElm;
+
+ if (se) {
+ if (se.previousSibling.value != '') {
+ addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
+ selectByValue(document.forms[0], se.id, se.previousSibling.value);
+ } else
+ selectByValue(document.forms[0], se.id, '');
+
+ se.style.display = 'inline';
+ se.parentNode.removeChild(se.previousSibling);
+ TinyMCE_EditableSelects.editSelectElm = null;
+ }
+ },
+
+ onKeyDown : function(e) {
+ e = e || window.event;
+
+ if (e.keyCode == 13)
+ TinyMCE_EditableSelects.onBlurEditableSelectInput();
+ }
+};
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/form_utils.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/form_utils.js
new file mode 100755
index 00000000..59da0139
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/form_utils.js
@@ -0,0 +1,210 @@
+/**
+ * form_utils.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
+
+function getColorPickerHTML(id, target_form_element) {
+ var h = "", dom = tinyMCEPopup.dom;
+
+ if (label = dom.select('label[for=' + target_form_element + ']')[0]) {
+ label.id = label.id || dom.uniqueId();
+ }
+
+ h += '<a role="button" aria-labelledby="' + id + '_label" id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
+ h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;<span id="' + id + '_label" class="mceVoiceLabel mceIconOnly" style="display:none;">' + tinyMCEPopup.getLang('browse') + '</span></span></a>';
+
+ return h;
+}
+
+function updateColor(img_id, form_element_id) {
+ document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value;
+}
+
+function setBrowserDisabled(id, state) {
+ var img = document.getElementById(id);
+ var lnk = document.getElementById(id + "_link");
+
+ if (lnk) {
+ if (state) {
+ lnk.setAttribute("realhref", lnk.getAttribute("href"));
+ lnk.removeAttribute("href");
+ tinyMCEPopup.dom.addClass(img, 'disabled');
+ } else {
+ if (lnk.getAttribute("realhref"))
+ lnk.setAttribute("href", lnk.getAttribute("realhref"));
+
+ tinyMCEPopup.dom.removeClass(img, 'disabled');
+ }
+ }
+}
+
+function getBrowserHTML(id, target_form_element, type, prefix) {
+ var option = prefix + "_" + type + "_browser_callback", cb, html;
+
+ cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback"));
+
+ if (!cb)
+ return "";
+
+ html = "";
+ html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">';
+ html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '">&nbsp;</span></a>';
+
+ return html;
+}
+
+function openBrowser(img_id, target_form_element, type, option) {
+ var img = document.getElementById(img_id);
+
+ if (img.className != "mceButtonDisabled")
+ tinyMCEPopup.openBrowser(target_form_element, type, option);
+}
+
+function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
+ if (!form_obj || !form_obj.elements[field_name])
+ return;
+
+ if (!value)
+ value = "";
+
+ var sel = form_obj.elements[field_name];
+
+ var found = false;
+ for (var i=0; i<sel.options.length; i++) {
+ var option = sel.options[i];
+
+ if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) {
+ option.selected = true;
+ found = true;
+ } else
+ option.selected = false;
+ }
+
+ if (!found && add_custom && value != '') {
+ var option = new Option(value, value);
+ option.selected = true;
+ sel.options[sel.options.length] = option;
+ sel.selectedIndex = sel.options.length - 1;
+ }
+
+ return found;
+}
+
+function getSelectValue(form_obj, field_name) {
+ var elm = form_obj.elements[field_name];
+
+ if (elm == null || elm.options == null || elm.selectedIndex === -1)
+ return "";
+
+ return elm.options[elm.selectedIndex].value;
+}
+
+function addSelectValue(form_obj, field_name, name, value) {
+ var s = form_obj.elements[field_name];
+ var o = new Option(name, value);
+ s.options[s.options.length] = o;
+}
+
+function addClassesToList(list_id, specific_option) {
+ // Setup class droplist
+ var styleSelectElm = document.getElementById(list_id);
+ var styles = tinyMCEPopup.getParam('theme_advanced_styles', false);
+ styles = tinyMCEPopup.getParam(specific_option, styles);
+
+ if (styles) {
+ var stylesAr = styles.split(';');
+
+ for (var i=0; i<stylesAr.length; i++) {
+ if (stylesAr != "") {
+ var key, value;
+
+ key = stylesAr[i].split('=')[0];
+ value = stylesAr[i].split('=')[1];
+
+ styleSelectElm.options[styleSelectElm.length] = new Option(key, value);
+ }
+ }
+ } else {
+ tinymce.each(tinyMCEPopup.editor.dom.getClasses(), function(o) {
+ styleSelectElm.options[styleSelectElm.length] = new Option(o.title || o['class'], o['class']);
+ });
+ }
+}
+
+function isVisible(element_id) {
+ var elm = document.getElementById(element_id);
+
+ return elm && elm.style.display != "none";
+}
+
+function convertRGBToHex(col) {
+ var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
+
+ var rgb = col.replace(re, "$1,$2,$3").split(',');
+ if (rgb.length == 3) {
+ r = parseInt(rgb[0]).toString(16);
+ g = parseInt(rgb[1]).toString(16);
+ b = parseInt(rgb[2]).toString(16);
+
+ r = r.length == 1 ? '0' + r : r;
+ g = g.length == 1 ? '0' + g : g;
+ b = b.length == 1 ? '0' + b : b;
+
+ return "#" + r + g + b;
+ }
+
+ return col;
+}
+
+function convertHexToRGB(col) {
+ if (col.indexOf('#') != -1) {
+ col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
+
+ r = parseInt(col.substring(0, 2), 16);
+ g = parseInt(col.substring(2, 4), 16);
+ b = parseInt(col.substring(4, 6), 16);
+
+ return "rgb(" + r + "," + g + "," + b + ")";
+ }
+
+ return col;
+}
+
+function trimSize(size) {
+ return size.replace(/([0-9\.]+)(px|%|in|cm|mm|em|ex|pt|pc)/i, '$1$2');
+}
+
+function getCSSSize(size) {
+ size = trimSize(size);
+
+ if (size == "")
+ return "";
+
+ // Add px
+ if (/^[0-9]+$/.test(size))
+ size += 'px';
+ // Sanity check, IE doesn't like broken values
+ else if (!(/^[0-9\.]+(px|%|in|cm|mm|em|ex|pt|pc)$/i.test(size)))
+ return "";
+
+ return size;
+}
+
+function getStyle(elm, attrib, style) {
+ var val = tinyMCEPopup.dom.getAttrib(elm, attrib);
+
+ if (val != '')
+ return '' + val;
+
+ if (typeof(style) == 'undefined')
+ style = attrib;
+
+ return tinyMCEPopup.dom.getStyle(elm, style);
+}
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/mctabs.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/mctabs.js
new file mode 100755
index 00000000..458ec86d
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/mctabs.js
@@ -0,0 +1,162 @@
+/**
+ * mctabs.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+function MCTabs() {
+ this.settings = [];
+ this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatcher');
+};
+
+MCTabs.prototype.init = function(settings) {
+ this.settings = settings;
+};
+
+MCTabs.prototype.getParam = function(name, default_value) {
+ var value = null;
+
+ value = (typeof(this.settings[name]) == "undefined") ? default_value : this.settings[name];
+
+ // Fix bool values
+ if (value == "true" || value == "false")
+ return (value == "true");
+
+ return value;
+};
+
+MCTabs.prototype.showTab =function(tab){
+ tab.className = 'current';
+ tab.setAttribute("aria-selected", true);
+ tab.setAttribute("aria-expanded", true);
+ tab.tabIndex = 0;
+};
+
+MCTabs.prototype.hideTab =function(tab){
+ var t=this;
+
+ tab.className = '';
+ tab.setAttribute("aria-selected", false);
+ tab.setAttribute("aria-expanded", false);
+ tab.tabIndex = -1;
+};
+
+MCTabs.prototype.showPanel = function(panel) {
+ panel.className = 'current';
+ panel.setAttribute("aria-hidden", false);
+};
+
+MCTabs.prototype.hidePanel = function(panel) {
+ panel.className = 'panel';
+ panel.setAttribute("aria-hidden", true);
+};
+
+MCTabs.prototype.getPanelForTab = function(tabElm) {
+ return tinyMCEPopup.dom.getAttrib(tabElm, "aria-controls");
+};
+
+MCTabs.prototype.displayTab = function(tab_id, panel_id, avoid_focus) {
+ var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i, t = this;
+
+ tabElm = document.getElementById(tab_id);
+
+ if (panel_id === undefined) {
+ panel_id = t.getPanelForTab(tabElm);
+ }
+
+ panelElm= document.getElementById(panel_id);
+ panelContainerElm = panelElm ? panelElm.parentNode : null;
+ tabContainerElm = tabElm ? tabElm.parentNode : null;
+ selectionClass = t.getParam('selection_class', 'current');
+
+ if (tabElm && tabContainerElm) {
+ nodes = tabContainerElm.childNodes;
+
+ // Hide all other tabs
+ for (i = 0; i < nodes.length; i++) {
+ if (nodes[i].nodeName == "LI") {
+ t.hideTab(nodes[i]);
+ }
+ }
+
+ // Show selected tab
+ t.showTab(tabElm);
+ }
+
+ if (panelElm && panelContainerElm) {
+ nodes = panelContainerElm.childNodes;
+
+ // Hide all other panels
+ for (i = 0; i < nodes.length; i++) {
+ if (nodes[i].nodeName == "DIV")
+ t.hidePanel(nodes[i]);
+ }
+
+ if (!avoid_focus) {
+ tabElm.focus();
+ }
+
+ // Show selected panel
+ t.showPanel(panelElm);
+ }
+};
+
+MCTabs.prototype.getAnchor = function() {
+ var pos, url = document.location.href;
+
+ if ((pos = url.lastIndexOf('#')) != -1)
+ return url.substring(pos + 1);
+
+ return "";
+};
+
+
+//Global instance
+var mcTabs = new MCTabs();
+
+tinyMCEPopup.onInit.add(function() {
+ var tinymce = tinyMCEPopup.getWin().tinymce, dom = tinyMCEPopup.dom, each = tinymce.each;
+
+ each(dom.select('div.tabs'), function(tabContainerElm) {
+ var keyNav;
+
+ dom.setAttrib(tabContainerElm, "role", "tablist");
+
+ var items = tinyMCEPopup.dom.select('li', tabContainerElm);
+ var action = function(id) {
+ mcTabs.displayTab(id, mcTabs.getPanelForTab(id));
+ mcTabs.onChange.dispatch(id);
+ };
+
+ each(items, function(item) {
+ dom.setAttrib(item, 'role', 'tab');
+ dom.bind(item, 'click', function(evt) {
+ action(item.id);
+ });
+ });
+
+ dom.bind(dom.getRoot(), 'keydown', function(evt) {
+ if (evt.keyCode === 9 && evt.ctrlKey && !evt.altKey) { // Tab
+ keyNav.moveFocus(evt.shiftKey ? -1 : 1);
+ tinymce.dom.Event.cancel(evt);
+ }
+ });
+
+ each(dom.select('a', tabContainerElm), function(a) {
+ dom.setAttrib(a, 'tabindex', '-1');
+ });
+
+ keyNav = tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
+ root: tabContainerElm,
+ items: items,
+ onAction: action,
+ actOnFocus: true,
+ enableLeftRight: true,
+ enableUpDown: true
+ }, tinyMCEPopup.dom);
+ });
+}); \ No newline at end of file
diff --git a/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/validate.js b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/validate.js
new file mode 100755
index 00000000..27cbfab8
--- /dev/null
+++ b/mayor-orig/www/skin/classic/share/javascript/tiny_mce/utils/validate.js
@@ -0,0 +1,252 @@
+/**
+ * validate.js
+ *
+ * Copyright 2009, Moxiecode Systems AB
+ * Released under LGPL License.
+ *
+ * License: http://tinymce.moxiecode.com/license
+ * Contributing: http://tinymce.moxiecode.com/contributing
+ */
+
+/**
+ // String validation:
+
+ if (!Validator.isEmail('myemail'))
+ alert('Invalid email.');
+
+ // Form validation:
+
+ var f = document.forms['myform'];
+
+ if (!Validator.isEmail(f.myemail))
+ alert('Invalid email.');
+*/
+
+var Validator = {
+ isEmail : function(s) {
+ return this.test(s, '^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$');
+ },
+
+ isAbsUrl : function(s) {
+ return this.test(s, '^(news|telnet|nttp|file|http|ftp|https)://[-A-Za-z0-9\\.]+\\/?.*$');
+ },
+
+ isSize : function(s) {
+ return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
+ },
+
+ isId : function(s) {
+ return this.test(s, '^[A-Za-z_]([A-Za-z0-9_])*$');
+ },
+
+ isEmpty : function(s) {
+ var nl, i;
+
+ if (s.nodeName == 'SELECT' && s.selectedIndex < 1)
+ return true;
+
+ if (s.type == 'checkbox' && !s.checked)
+ return true;
+
+ if (s.type == 'radio') {
+ for (i=0, nl = s.form.elements; i<nl.length; i++) {
+ if (nl[i].type == "radio" && nl[i].name == s.name && nl[i].checked)
+ return false;
+ }
+
+ return true;
+ }
+
+ return new RegExp('^\\s*$').test(s.nodeType == 1 ? s.value : s);
+ },
+
+ isNumber : function(s, d) {
+ return !isNaN(s.nodeType == 1 ? s.value : s) && (!d || !this.test(s, '^-?[0-9]*\\.[0-9]*$'));
+ },
+
+ test : function(s, p) {
+ s = s.nodeType == 1 ? s.value : s;
+
+ return s == '' || new RegExp(p).test(s);
+ }
+};
+
+var AutoValidator = {
+ settings : {
+ id_cls : 'id',
+ int_cls : 'int',
+ url_cls : 'url',
+ number_cls : 'number',
+ email_cls : 'email',
+ size_cls : 'size',
+ required_cls : 'required',
+ invalid_cls : 'invalid',
+ min_cls : 'min',
+ max_cls : 'max'
+ },
+
+ init : function(s) {
+ var n;
+
+ for (n in s)
+ this.settings[n] = s[n];
+ },
+
+ validate : function(f) {
+ var i, nl, s = this.settings, c = 0;
+
+ nl = this.tags(f, 'label');
+ for (i=0; i<nl.length; i++) {
+ this.removeClass(nl[i], s.invalid_cls);
+ nl[i].setAttribute('aria-invalid', false);
+ }
+
+ c += this.validateElms(f, 'input');
+ c += this.validateElms(f, 'select');
+ c += this.validateElms(f, 'textarea');
+
+ return c == 3;
+ },
+
+ invalidate : function(n) {
+ this.mark(n.form, n);
+ },
+
+ getErrorMessages : function(f) {
+ var nl, i, s = this.settings, field, msg, values, messages = [], ed = tinyMCEPopup.editor;
+ nl = this.tags(f, "label");
+ for (i=0; i<nl.length; i++) {
+ if (this.hasClass(nl[i], s.invalid_cls)) {
+ field = document.getElementById(nl[i].getAttribute("for"));
+ values = { field: nl[i].textContent };
+ if (this.hasClass(field, s.min_cls, true)) {
+ message = ed.getLang('invalid_data_min');
+ values.min = this.getNum(field, s.min_cls);
+ } else if (this.hasClass(field, s.number_cls)) {
+ message = ed.getLang('invalid_data_number');
+ } else if (this.hasClass(field, s.size_cls)) {
+ message = ed.getLang('invalid_data_size');
+ } else {
+ message = ed.getLang('invalid_data');
+ }
+
+ message = message.replace(/{\#([^}]+)\}/g, function(a, b) {
+ return values[b] || '{#' + b + '}';
+ });
+ messages.push(message);
+ }
+ }
+ return messages;
+ },
+
+ reset : function(e) {
+ var t = ['label', 'input', 'select', 'textarea'];
+ var i, j, nl, s = this.settings;
+
+ if (e == null)
+ return;
+
+ for (i=0; i<t.length; i++) {
+ nl = this.tags(e.form ? e.form : e, t[i]);
+ for (j=0; j<nl.length; j++) {
+ this.removeClass(nl[j], s.invalid_cls);
+ nl[j].setAttribute('aria-invalid', false);
+ }
+ }
+ },
+
+ validateElms : function(f, e) {
+ var nl, i, n, s = this.settings, st = true, va = Validator, v;
+
+ nl = this.tags(f, e);
+ for (i=0; i<nl.length; i++) {
+ n = nl[i];
+
+ this.removeClass(n, s.invalid_cls);
+
+ if (this.hasClass(n, s.required_cls) && va.isEmpty(n))
+ st = this.mark(f, n);
+
+ if (this.hasClass(n, s.number_cls) && !va.isNumber(n))
+ st = this.mark(f, n);
+
+ if (this.hasClass(n, s.int_cls) && !va.isNumber(n, true))
+ st = this.mark(f, n);
+
+ if (this.hasClass(n, s.url_cls) && !va.isAbsUrl(n))
+ st = this.mark(f, n);
+
+ if (this.hasClass(n, s.email_cls) && !va.isEmail(n))
+ st = this.mark(f, n);
+
+ if (this.hasClass(n, s.size_cls) && !va.isSize(n))
+ st = this.mark(f, n);
+
+ if (this.hasClass(n, s.id_cls) && !va.isId(n))
+ st = this.mark(f, n);
+
+ if (this.hasClass(n, s.min_cls, true)) {
+ v = this.getNum(n, s.min_cls);
+
+ if (isNaN(v) || parseInt(n.value) < parseInt(v))
+ st = this.mark(f, n);
+ }
+
+ if (this.hasClass(n, s.max_cls, true)) {
+ v = this.getNum(n, s.max_cls);
+
+ if (isNaN(v) || parseInt(n.value) > parseInt(v))
+ st = this.mark(f, n);
+ }
+ }
+
+ return st;
+ },
+
+ hasClass : function(n, c, d) {
+ return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className);
+ },
+
+ getNum : function(n, c) {
+ c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0];
+ c = c.replace(/[^0-9]/g, '');
+
+ return c;
+ },
+
+ addClass : function(n, c, b) {
+ var o = this.removeClass(n, c);
+ n.className = b ? c + (o != '' ? (' ' + o) : '') : (o != '' ? (o + ' ') : '') + c;
+ },
+
+ removeClass : function(n, c) {
+ c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' ');
+ return n.className = c != ' ' ? c : '';
+ },
+
+ tags : function(f, s) {
+ return f.getElementsByTagName(s);
+ },
+
+ mark : function(f, n) {
+ var s = this.settings;
+
+ this.addClass(n, s.invalid_cls);
+ n.setAttribute('aria-invalid', 'true');
+ this.markLabels(f, n, s.invalid_cls);
+
+ return false;
+ },
+
+ markLabels : function(f, n, ic) {
+ var nl, i;
+
+ nl = this.tags(f, "label");
+ for (i=0; i<nl.length; i++) {
+ if (nl[i].getAttribute("for") == n.id || nl[i].htmlFor == n.id)
+ this.addClass(nl[i], ic);
+ }
+
+ return null;
+ }
+};
diff --git a/mayor-orig/www/skin/cron/base/html/alert.phtml b/mayor-orig/www/skin/cron/base/html/alert.phtml
new file mode 100644
index 00000000..bf97d3c5
--- /dev/null
+++ b/mayor-orig/www/skin/cron/base/html/alert.phtml
@@ -0,0 +1,6 @@
+<?php
+ function html_alert($alert='') {
+ $_SESSION['alert'] = array();
+ return true;
+ }
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/cron/base/html/base.phtml b/mayor-orig/www/skin/cron/base/html/base.phtml
new file mode 100644
index 00000000..e12cefb3
--- /dev/null
+++ b/mayor-orig/www/skin/cron/base/html/base.phtml
@@ -0,0 +1,56 @@
+<?php
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ global $_JSON;
+
+# _httpHeader();
+
+ define('_UNIQUE', uniqid());
+
+ page($page,$sub,$f,$lang,$skin,$policy);
+
+ if (is_array($_SESSION['alert']) && count($_SESSION['alert'])>0) {
+ _html_base_alert($_SESSION['alert']);
+ }
+ $_SESSION['alert'] = array();
+
+}
+
+function _html_base_alert($alert) {
+ if (is_array($alert))
+ foreach($alert as $a) {
+ $param = array();
+ $tmp = explode(':', $a);
+ $aType = readVariable($tmp[0], 'enum', 'message', array('message','info','page')); $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = htmlspecialchars($tmp[$p]);
+ $pstr = '';
+ // preparing $msg
+ if (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '')
+ $msg = $ALERT_MSG['default'].' ('.$aType.':'.$aCode.')';
+ else $msg = $ALERT_MSG[$aCode];
+
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",':'.($param[$i]).':',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= ':'.($param[$i]).':,';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ }
+ $msg = ''.$title.': ' . $msg;
+ $showPage .= ''. $msg .''."\n";
+ }
+
+ return $showPage;
+
+}
+
+?>
diff --git a/mayor-orig/www/skin/default/base/css/Elusive-Icons.eot b/mayor-orig/www/skin/default/base/css/Elusive-Icons.eot
new file mode 100644
index 00000000..282e6089
--- /dev/null
+++ b/mayor-orig/www/skin/default/base/css/Elusive-Icons.eot
Binary files differ
diff --git a/mayor-orig/www/skin/default/base/css/Elusive-Icons.svg b/mayor-orig/www/skin/default/base/css/Elusive-Icons.svg
new file mode 100644
index 00000000..bfc6c9b7
--- /dev/null
+++ b/mayor-orig/www/skin/default/base/css/Elusive-Icons.svg
@@ -0,0 +1,298 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
+<svg xmlns="http://www.w3.org/2000/svg">
+<metadata>
+This is a custom SVG font generated by IcoMoon.
+<iconset grid="16"></iconset>
+</metadata>
+<defs>
+<font id="Elusive-Icons" horiz-adv-x="512" >
+<font-face units-per-em="512" ascent="480" descent="-32" />
+<missing-glyph horiz-adv-x="512" />
+<glyph unicode="&#xe074;" d="M 0.00,224.00 m0.00,0.00, 88.281-88.281 -0.266,61.766 141.469,0.00 0.00-141.719 -60.984-0.266 87.50-87.50 88.281,88.281 -61.766-0.266 0.00,141.469 141.719,0.00 0.266-60.984 87.50,87.50 -88.281,88.281 0.266-61.766 -141.469,0.00 0.00,141.719 60.984,0.266 -87.50,87.50 -88.281-88.281 61.766,0.266 0.00-141.469 -141.719,0.00 -0.266,60.984 -87.50-87.50z" />
+<glyph unicode="&#xe073;" d="M 154.149,446.056 141.295,111.904c-17.297,8.876 -38.999,12.716 -61.77,9.486 -49.098-6.953 -84.452-43.992 -78.964-82.715 5.49-38.727 49.741-64.476 98.838-57.521 43.574,6.175 76.282,36.046 79.254,69.754l 0.01-0.019c 0.006,0.076 0.011,0.191 0.018,0.277 0.072,0.857 0.114,1.724 0.146,2.586 1.828,34.806 13.021,299.184 13.021,299.184l 275.684,28.404 -12.451-238.103c-17.691,9.846 -40.43,14.233 -64.341,10.845 -49.098-6.96 -84.449-43.991 -78.961-82.719 5.488-38.723 49.739-64.477 98.838-57.514 44.502,6.299 77.657,37.32 79.397,71.907l 0.021,0.021C 490.968,101.32 506.523,460.224 507.073,472.907z" />
+<glyph unicode="&#xe072;" d="M 0.564,229.996 m0.00,0.00,c-0.722,3.961 -0.545,7.324 -0.545,11.445l0.00,1.09c 64.774,5.557 135.337,21.873 187.858,59.406 15.07-6.905 29.889-5.962 44.106,1.09 29.786-30.084 59.017-50.993 98.012-63.221 3.993-10.174 10.346-17.986 19.058-23.435C 338.525,190.21 323.824,167.138 304.947,147.155 277.047,167.253 240.208,152.70 227.626,123.72 140.368,124.665 52.422,162.841 0.564,229.996 z M 227.081,89.384C 182.538,66.379 135.523,53.977 87.686,56.684 50.684,87.732 24.021,128.317 10.365,170.591 70.459,118.941 150.331,89.466 227.081,89.384 z m 98.557,6.54c 50.689,10.573 97.265,30.955 135.039,62.13 -49.581-129.267 -198.888-188.362 -321.263-133.526 39.725,5.723 77.041,19.444 108.903,37.605 31.841-18.247 69.735,0.946 77.321,33.791 z m 93.656,132.981c 19.511,1.44 38.537,2.876 56.629,5.996 -0.035-4.872 -0.538-9.667 -0.545-14.17C 441.363,177.198 390.23,147.455 339.251,133.53c 19.023,23.096 33.134,48.751 43.016,74.666 15.537,2.016 28.227,9.152 37.027,20.71 z m 8.713,34.88c-2.148,16.155 -10.229,29.267 -22.869,37.605 3.994,36.991 4.653,73.084 1.633,107.911 38.136-39.369 61.229-89.618 67.52-139.522 -13.794-2.907 -29.223-4.905 -46.283-5.996 z M 162.829,326.462C 114.727,296.155 58.405,281.433 2.742,276.866 16.642,363.739 75.814,435.537 155.206,464.893 157.362,436.682 163.895,409.444 174.264,385.868 157.617,368.964 153.664,347.293 162.829,326.462 z m 93.656,40.331c 25.071,31.129 45.914,62.939 57.719,100.281 20.328-6.904 38.66-15.805 54.996-26.706 5.705-44.888 6.498-89.599 2.178-131.346 -19.722-3.367 -35.228-15.366 -41.928-32.70 -29.117,10.541 -52.952,30.169 -74.053,51.23 5.30,13.674 5.50,26.491 1.089,39.24 z m -50.639,32.155c-10.131,25.045 -16.744,49.314 -16.879,75.755 30.379,6.989 63.178,6.757 92.023,1.09 -11.02-30.85 -28.431-59.443 -46.828-82.841 -6.473,2.765 -22.24,8.924 -28.315,5.996z" />
+<glyph unicode="&#xe071;" d="M 219.281,480.00L 219.281,183.906L 292.719,183.906L 292.719,480.00L 219.281,480.00 z M 74.969,405.031C 28.642,358.704 0.00,294.692 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,294.692 483.358,358.704 437.031,405.031L 385.469,353.469C 418.603,320.334 439.094,274.556 439.094,224.00C 439.094,122.888 357.112,40.906 256.00,40.906C 154.888,40.906 72.906,122.888 72.906,224.00C 72.906,274.556 93.397,320.334 126.531,353.469L 74.969,405.031z" />
+<glyph unicode="&#xe070;" d="M 428.475,437.695 m0.00,0.00,-260.881-260.881 -84.61,84.61 -82.983-82.983 84.61-84.61 83.525-83.525 82.983,82.983 260.881,260.881 -83.525,83.525z" />
+<glyph unicode="&#xe06f;" d="M 256.00,480.00C 114.616,480.00 0.00,365.384 0.00,224.00C0.00,82.616 114.616-32.00 256.00-32.00C 397.384-32.00 512.00,82.616 512.00,224.00C 512.00,365.384 397.384,480.00 256.00,480.00 z M 256.00,424.375C 366.664,424.375 456.344,334.637 456.344,224.00C 456.344,113.363 366.664,23.656 256.00,23.656C 145.336,23.656 55.656,113.363 55.656,224.00C 55.656,334.637 145.336,424.375 256.00,424.375 z M 354.094,345.562L 205.719,197.156L 157.594,245.281L 110.375,198.094L 158.50,149.969L 206.031,102.437L 253.219,149.656L 401.625,298.031L 354.094,345.562z" />
+<glyph unicode="&#xe06e;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 365.844,360.094L 419.031,306.906L 252.906,140.75L 200.031,87.906L 146.844,141.094L 92.969,195.00L 145.813,247.844L 199.688,193.937L 365.844,360.094z" />
+<glyph unicode="&#xe06d;" d="M 201.439,7.317 m0.00,0.00,c 87.658,87.172 156.228,156.856 232.499,231.659 25.181,26.299 41.127,52.039 47.842,77.22 11.751,47.518 -6.316,88.666 -37.771,120.866C 413.792,467.277 381.477,481.546 347.065,479.867 312.652,478.188 278.658,460.842 245.085,427.828L 31.052,212.956 66.304,178.542 280.337,392.576c 21.962,20.881 48.097,40.566 78.06,37.771 45.651-6.409 85.965-62.282 75.541-101.56 -13.217-34.848 -31.438-50.742 -56.655-75.961 -76.713-76.517 -136.527-135.689 -211.095-210.256 -28.024-25.607 -46.148-32.54 -72.183-8.394 -13.429,13.429 -19.305,26.579 -17.627,39.449 1.862,15.017 10.364,25.402 20.144,35.252L 292.088,304.444c 8.934,8.95 29.281,26.129 37.771,18.465 6.512-15.11 -10.26-29.533 -18.465-37.771l-179.62-179.62 34.413-35.252 180.459,179.62c 31.082,32.059 53.413,71.234 18.465,107.436C 326.459,390.497 285.742,368.35 256.835,339.697L 61.268,144.129c-20.144-20.144 -31.615-41.967 -34.413-65.469 -2.206-32.947 12.649-59.395 32.735-79.737 18.88-18.777 39.278-29.179 64.629-29.377 30.482,1.22 60.453,21.297 77.22,37.771z" />
+<glyph unicode="&#xe06c;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 317.25,384.344C 337.363,384.158 356.298,375.139 374.094,357.344C 393.853,337.116 405.195,311.288 397.813,281.437C 393.594,265.619 383.599,249.458 367.781,232.937C 319.869,185.946 276.786,142.167 221.719,87.406C 211.186,77.058 192.367,64.423 173.219,63.656C 157.293,63.781 144.454,70.329 132.594,82.125C 119.976,94.904 110.645,111.521 112.031,132.219C 113.789,146.982 121.002,160.689 133.656,173.344L 256.531,296.187C 274.69,314.187 300.251,328.121 324.531,307.281C 346.485,284.539 332.463,259.92 312.938,239.781L 199.563,126.937L 177.938,149.094L 290.781,261.937C 295.936,267.113 306.466,276.164 302.375,285.656C 297.042,290.47 284.269,279.685 278.656,274.062L 155.813,151.187C 149.669,145.00 144.326,138.495 143.156,129.062C 142.102,120.978 145.782,112.718 154.219,104.281C 170.574,89.112 181.958,93.445 199.563,109.531C 246.405,156.374 283.997,193.558 332.188,241.625C 348.029,257.467 359.478,267.452 367.781,289.344C 374.329,314.018 348.99,349.099 320.313,353.125C 301.491,354.881 285.078,342.523 271.281,329.406L 136.813,194.969L 114.688,216.562L 249.125,351.562C 270.216,372.302 291.569,383.195 313.188,384.25C 314.539,384.316 315.909,384.356 317.25,384.344z" />
+<glyph unicode="&#xe06b;" d="M 493.566,283.392C 492.823,228.789 468.995,179.268 430.42,147.543 380.26,109.365 317.274,96.644 260.778,95.66l0.00-30.72C 259.265,25.503 236.214-8.724 203.434-23.807c-12.053-5.721 -25.364-8.144 -37.547-8.192 -17.179,0.208 -33.89,5.403 -47.787,12.288l0.00,88.747c 11.722-8.259 25.154-13.818 38.571-9.899 11.868,4.404 17.30,13.686 17.408,24.917l0.00,246.443 86.699,0.00 0.00-153.60c 19.921,0.276 39.572,2.462 57.685,6.485 23.745,5.763 46.36,14.857 63.488,30.037 21.019,20.025 30.20,43.868 30.379,69.973 -0.326,38.654 -19.776,70.798 -49.493,89.429 -33.682,19.271 -71.032,25.795 -106.837,25.941 -38.61-0.846 -76.612-8.439 -107.52-27.648 -31.567-20.435 -48.526-54.226 -48.811-87.723 2.005-24.14 8.186-57.75 24.576-73.045L 68.949,150.956c-17.943,17.945 -29.766,39.915 -37.547,62.123 -7.636,23.49 -12.874,46.874 -12.971,70.315 0.944,57.006 26.276,108.466 66.219,141.995 50.399,39.40 113.678,54.312 171.349,54.613 63.144-1.073 125.55-16.975 172.032-54.272 43.588-37.052 65.15-90.68 65.536-142.336z" />
+<glyph unicode="&#xe059;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 215.125,368.281L 296.875,368.281L 296.875,264.875L 400.281,264.875L 400.281,183.125L 296.875,183.125L 296.875,79.719L 215.125,79.719L 215.125,183.125L 111.719,183.125L 111.719,264.875L 215.125,264.875L 215.125,368.281z" />
+<glyph unicode="&#xe058;" d="M 156.781,444.562L 156.781,367.25L 136.563,367.25L 17.156,316.437L 494.844,316.437L 375.438,367.25L 355.219,367.25L 355.219,444.562L 156.781,444.562 z M 0.00,286.75L0.00,131.281L 79.25,131.281L 51.406-4.656L 460.594-4.656L 432.75,131.281L 512.00,131.281L 512.00,286.75L0.00,286.75 z M 124.344,228.156L 387.625,228.156L 427.625,32.844L 84.344,32.844L 124.344,228.156z" />
+<glyph unicode="&#xe057;" d="M 0.00-31.998L 0.00,200.667 L 232.666,200.667 L 232.666-31.998 L 0.00-31.998 z m 0.00,279.332L 0.00,480.00 L 232.666,480.00 L 232.666,247.334 L 0.00,247.334 z m 46.333-232.999l 139.999,0.00 l0.00,139.999 l-139.999,0.00 l0.00-139.999 z m 0.00,279.332l 139.999,0.00 l0.00,139.999 l-139.999,0.00 l0.00-139.999 z m 46.667-232.666l0.00,47.00 l 47.00,0.00 l0.00-47.00 l-47.00,0.00 z m 0.00,278.999l0.00,46.333 l 47.00,0.00 l0.00-46.333 l-47.00,0.00 z m 186.332-371.999L 279.332,200.667 l 138.999,0.00 l0.00-46.333 l 47.333,0.00 l0.00,46.333 l 46.333,0.00 L 511.998,61.002 L 371.999,61.002 l0.00,46.333 l-46.333,0.00 l0.00-139.332 l-46.333,0.00 z m 0.00,279.332L 279.332,480.00 L 511.998,480.00 L 511.998,247.334 L 279.332,247.334 z m 46.333,46.333l 139.999,0.00 l0.00,139.999 l-139.999,0.00 l0.00-139.999 z m 46.333-325.666l0.00,46.333 l 46.333,0.00 l0.00-46.333 l-46.333,0.00 z m 0.00,371.999l0.00,46.333 l 46.333,0.00 l0.00-46.333 l-46.333,0.00 z m 93.667-371.999l0.00,46.333 l 46.333,0.00 l0.00-46.333 l-46.333,0.00 z" />
+<glyph unicode="&#xe056;" d="M 249.789,479.999 m0.00,0.00,c-41.444,0.10 -116.881-39.787 -119.273-75.249 -2.392-35.462 4.831-37.648 8.19-39.587l 38.904,0.00c 8.889,20.072 19.717,31.807 48.119,31.567 28.401-0.239 59.556-35.767 46.412-67.23 -13.144-31.462 -25.29-42.421 -41.464-76.444 -16.174-34.023 -21.576-85.415 -0.341-128.146l 47.948-0.853c-11.868,60.996 50.952,115.339 75.932,152.887 24.98,37.548 27.355,51.859 27.643,82.928 -0.22,29.483 -10.897,58.945 -34.126,82.928 -23.23,23.982 -56.50,37.098 -97.944,37.198 z m 2.389-395.699c-32.068,0.00 -58.016-25.947 -58.016-58.016 0.00-32.068 25.947-58.186 58.016-58.186 32.068,0.00 58.016,26.118 58.016,58.186 0.00,32.068 -25.947,58.016 -58.016,58.016z" />
+<glyph unicode="&#xe055;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 251.375,415.844C 282.44,415.769 307.40,405.945 324.813,387.969C 342.225,369.992 350.21,347.912 350.375,325.812C 350.159,302.524 348.381,291.801 329.656,263.656C 310.932,235.511 263.854,194.784 272.75,149.062L 236.813,149.687C 220.895,181.717 224.939,220.247 237.063,245.75C 249.186,271.253 258.272,279.448 268.125,303.031C 277.978,326.615 254.633,353.258 233.344,353.437C 212.054,353.617 203.945,344.827 197.281,329.781L 168.125,329.781C 165.607,331.235 160.176,332.856 161.969,359.437C 163.761,386.019 220.31,415.919 251.375,415.844 z M 253.188,119.25C 277.225,119.25 296.656,99.788 296.656,75.75C 296.656,51.712 277.225,32.156 253.188,32.156C 229.15,32.156 209.688,51.712 209.688,75.75C 209.688,99.788 229.15,119.25 253.188,119.25z" />
+<glyph unicode="&#xe054;" d="M 222.779,435.163C 132.051,428.787 1.635,414.302 1.563,236.616L 1.563,13.056L 204.018,13.056L 204.018,252.25L 136.794,252.25C 132.535,316.119 185.128,332.61 242.321,345.27L 222.779,435.163 z M 494.021,435.163C 403.294,428.787 272.878,414.302 272.806,236.616L 272.806,13.056L 475.261,13.056L 475.261,252.25L 408.037,252.25C 403.778,316.119 456.371,332.61 513.563,345.27L 494.021,435.163z" />
+<glyph unicode="&#xe053;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 236.406,359.50L 247.406,308.844C 215.175,301.709 185.537,292.431 187.938,256.437L 225.813,256.437L 225.813,121.625L 111.719,121.625L 111.719,247.625C 111.759,347.76 185.277,355.907 236.406,359.50 z M 389.25,359.50L 400.281,308.844C 368.05,301.709 338.412,292.431 340.813,256.437L 378.688,256.437L 378.688,121.625L 264.594,121.625L 264.594,247.625C 264.634,347.76 338.12,355.907 389.25,359.50z" />
+<glyph unicode="&#xe052;" d="M 399.329,461.993 m0.00,0.00,0.00-79.386 -73.373,0.00c-23.214,0.00 -48.847-11.332 -70.284-32.99 -21.437-21.658 -44.733-53.788 -81.719-106.626 -37.152-53.075 -57.842-85.148 -70.744-99.561 -12.902-14.412 -10.827-13.176 -29.605-13.176l-72.716,0.00 -0.887,0.00 0.00-63.088 0.887,0.00 72.716,0.00c 28.193,0.00 56.55,11.784 76.593,34.173 20.043,22.389 38.96,53.403 75.41,105.475 36.616,52.309 59.896,83.268 74.884,98.411 14.989,15.143 15.633,14.293 25.465,14.293l 73.373,0.00 0.00-82.836L 512.00,349.322 399.329,461.993 z M 0.00,382.607l0.00-63.088 0.887,0.00 72.716,0.00c 18.778,0.00 16.703,1.269 29.605-13.143 8.301-9.273 21.977-28.939 39.036-53.724 2.312,3.317 3.402,4.916 5.849,8.412 9.293,13.275 17.734,25.253 25.531,36.177 2.714,3.802 4.986,6.801 7.557,10.35 -11.528,16.657 -21.131,29.867 -30.985,40.876C 130.153,370.856 101.796,382.607 73.603,382.607l-72.716,0.00 -0.887,0.00 z m 399.329-171.291 0.00-81.062 -73.373,0.00c-9.832,0.00 -10.477-0.817 -25.465,14.326 -9.914,10.017 -23.955,27.773 -42.584,53.231 -2.253-3.196 -4.076-5.725 -6.44-9.102 -13.044-18.634 -22.037-32.078 -31.478-46.002 13.395-17.74 24.798-31.52 35.684-42.519 21.437-21.658 47.07-33.023 70.284-33.023l 73.373,0.00 0.00-81.16L 512.00,98.645 399.329,211.317z" />
+<glyph unicode="&#xe051;" d="M 256.00-32.00 m0.00,0.00,c-141.376,0.00 -256.00,114.624 -256.00,256.00 0.00,141.376 114.624,256.00 256.00,256.00 141.376,0.00 256.00-114.624 256.00-256.00 0.00-141.376 -114.624-256.00 -256.00-256.00 z m 0.00,384.00c-70.688,0.00 -128.00-57.312 -128.00-128.00 0.00-70.688 57.312-128.00 128.00-128.00 70.688,0.00 128.00,57.312 128.00,128.00 0.00,70.688 -57.312,128.00 -128.00,128.00z" />
+<glyph unicode="&#xe050;" d="M 340.97,104.728 m0.00,0.00,c 5.801-9.393 -0.381-13.312 -5.647-17.748 -22.654-16.864 -54.361-23.029 -80.403-23.126 -24.363,0.478 -59.937,6.221 -78.252,23.126 -6.255,4.94 -9.99,12.889 -4.034,18.286 6.308,5.291 12.025-0.311 16.941-4.571 21.201-14.773 40.337-15.474 65.344-18.017 27.058,1.317 45.183,5.344 68.302,18.555 5.492,4.774 11.753,9.322 17.748,3.496 z m 93.478,335.344c-20.366,0.00 -37.776-12.655 -44.806-30.525L 290.416,433.88 248.998,316.628c-29.401-0.717 -57.005-4.839 -82.821-12.369 -25.815-7.529 -48.752-17.571 -68.831-30.12 -10.756,9.681 -23.669,14.525 -38.727,14.525 -8.246,0.00 -15.866-1.524 -22.857-4.571 -6.992-3.048 -13.183-7.266 -18.561-12.644 -5.378-5.378 -9.581-11.65 -12.628-18.821 -3.048-7.171 -4.571-14.693 -4.571-22.582 0.00-10.398 2.422-19.91 7.262-28.515 4.84-8.605 11.368-15.598 19.615-20.977 -0.359-2.868 -0.711-5.819 -1.07-8.867 -0.359-3.048 -0.535-6.191 -0.535-9.418 0.00-21.154 5.999-41.14 18.01-59.964 12.011-18.823 28.517-35.216 49.491-49.20 20.975-13.983 45.356-25.019 73.143-33.086 27.787-8.067 57.622-12.093 89.532-12.093 31.552,0.00 61.322,4.026 89.289,12.093 27.966,8.067 52.428,19.103 73.402,33.086 20.975,13.983 37.48,30.376 49.491,49.20 12.011,18.823 18.01,38.81 18.01,59.964 0.00,5.737 -0.545,11.656 -1.621,17.751 8.605,5.378 15.422,12.468 20.442,21.252 5.019,8.784 7.538,18.377 7.538,28.774 0.00,7.888 -1.524,15.411 -4.571,22.582 -3.048,7.171 -7.266,13.443 -12.644,18.821 -5.378,5.378 -11.65,9.597 -18.821,12.644 -7.171,3.048 -14.886,4.571 -23.133,4.571 -14.342,0.00 -27.238-4.844 -38.711-14.525 -19.361,12.191 -41.417,22.055 -66.156,29.585 -24.739,7.529 -51.27,11.828 -79.595,12.904l 33.88,95.189 84.069-19.712c0.00-0.059 0.00-0.119 0.00-0.178 0.00-26.584 21.546-48.13 48.13-48.13 26.584,0.00 48.146,21.546 48.146,48.13 0.00,26.584 -21.562,48.146 -48.146,48.146 z M 255.45,298.342c 29.042,0.00 56.471-3.577 82.286-10.748 25.815-7.171 48.319-16.859 67.501-29.05 19.182-12.191 34.34-26.627 45.455-43.299 11.115-16.672 16.665-34.332 16.665-52.977 0.00-18.644 -5.55-36.208 -16.665-52.701 -11.114-16.493 -26.272-30.833 -45.455-43.023 -19.182-12.191 -41.686-21.879 -67.501-29.05 -25.815-7.171 -53.244-10.748 -82.286-10.748 -29.042,0.00 -56.471,3.577 -82.286,10.748 -25.815,7.171 -48.223,16.859 -67.226,29.05 -19.003,12.191 -34.048,26.53 -45.163,43.023 -11.115,16.493 -16.681,34.057 -16.681,52.701 0.00,18.644 5.566,36.304 16.681,52.977 11.115,16.672 26.16,31.108 45.163,43.299 19.003,12.191 41.411,21.879 67.226,29.05 25.815,7.171 53.244,10.748 82.286,10.748 z m 78.055-72.186c-20.049,0.00 -36.312-16.136 -36.312-36.036 0.00-19.901 16.263-36.036 36.312-36.036 20.049,0.00 36.296,16.136 36.296,36.036 0.00,19.901 -16.247,36.036 -36.296,36.036 z m -150.744-0.567c-20.049,0.00 -36.296-16.136 -36.296-36.036 0.00-19.901 16.247-36.036 36.296-36.036 20.049,0.00 36.312,16.136 36.312,36.036 0.00,19.901 -16.263,36.036 -36.312,36.036 z m 300.191-46.379c-0.172-0.089 -0.341-0.193 -0.519-0.324 0.175,0.131 0.343,0.236 0.519,0.324z" />
+<glyph unicode="&#xe04f;" d="M 256.00,480.00C 131.729,480.00 28.164,391.443 4.906,274.00l 71.063,0.00C 97.864,352.957 170.071,411.00 256.00,411.00c 51.656,0.00 98.336-20.99 132.125-54.875L 306.00,274.00 436.031,274.00 512.00,274.00 512.00,480.00 437.00,405.00C 390.679,451.336 326.698,480.00 256.00,480.00 z M 0.00,174.00 0.00-32.00 75.00,43.00c 46.321-46.336 110.302-75.00 181.00-75.00 124.271,0.00 227.836,88.557 251.094,206.00l-71.063,0.00C 414.136,95.043 341.929,37.00 256.00,37.00 204.344,37.00 157.664,57.99 123.875,91.875L 206.00,174.00z" />
+<glyph unicode="&#xe03f;" d="M 217.438,480.00L 217.438,413.344C 141.67,397.994 82.006,338.33 66.656,262.562L0.00,262.562L0.00,185.437L 66.656,185.437C 82.006,109.67 141.67,50.006 217.438,34.656L 217.438-32.00L 294.563-32.00L 294.563,34.656C 370.33,50.006 429.994,109.67 445.344,185.437L 512.00,185.437L 512.00,262.562L 445.344,262.562C 429.994,338.33 370.33,397.994 294.563,413.344L 294.563,480.00L 217.438,480.00 z M 217.438,361.969L 217.438,287.156L 294.563,287.156L 294.563,361.969C 342.665,348.554 380.554,310.665 393.969,262.562L 319.156,262.562L 319.156,185.437L 393.969,185.437C 380.554,137.335 342.665,99.446 294.563,86.031L 294.563,160.844L 217.438,160.844L 217.438,86.031C 169.335,99.446 131.446,137.335 118.031,185.437L 192.844,185.437L 192.844,262.562L 118.031,262.562C 131.446,310.665 169.335,348.554 217.438,361.969z" />
+<glyph unicode="&#xe03e;" d="M 286.99,480.00 m0.00,0.00,c-120.877,0.00 -218.879-97.985 -218.879-218.862 0.00-42.949 12.367-83.014 33.742-116.817 -0.157-0.068 -0.311-0.13 -0.468-0.201l-95.237-95.22 80.90-80.90 98.666,98.683c-0.03,0.139 -0.069,0.278 -0.10,0.418 30.308-15.868 64.796-24.842 101.376-24.842 120.877,0.00 218.862,98.002 218.862,218.879 0.00,120.877 -97.985,218.862 -218.862,218.862 z m 0.00-97.228c 67.175,0.00 121.618-54.459 121.618-121.635 0.00-67.175 -54.443-121.635 -121.618-121.635 -67.175,0.00 -121.635,54.459 -121.635,121.635 0.00,67.175 54.459,121.635 121.635,121.635z" />
+<glyph unicode="&#xe03d;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 273.563,369.062C 342.057,369.062 397.563,313.525 397.563,245.031C 397.563,176.537 342.057,121.031 273.563,121.031C 252.835,121.031 233.299,126.102 216.125,135.094C 216.143,135.014 216.171,134.923 216.188,134.844L 160.25,78.937L 114.438,124.781L 168.375,178.75C 168.464,178.79 168.567,178.805 168.656,178.844C 156.544,197.998 149.531,220.695 149.531,245.031C 149.531,313.525 205.069,369.062 273.563,369.062 z M 273.563,313.969C 235.498,313.969 204.625,283.096 204.625,245.031C 204.625,206.967 235.498,176.125 273.563,176.125C 311.627,176.125 342.469,206.967 342.469,245.031C 342.469,283.096 311.627,313.969 273.563,313.969z" />
+<glyph unicode="&#xe03c;" d="M 0.00,480.00 m0.00,0.00,0.00-512.00 512.00,0.00 0.00,267.313 -84.00-89.063 0.00-94.25 -344.00,0.00 0.00,344.00 169.25,0.00 0.00,84.00zM 366.023,480.00 m0.00,0.00,0.00-96.415c-87.575-0.002 -247.273-0.963 -247.273-273.876 18.106,182.501 101.282,183.649 247.273,183.651l0.00-105.29L 512.00,334.046 366.023,480.00z" />
+<glyph unicode="&#xe03b;" d="M 321.942,465.054 m0.00,0.00,0.00-125.529C 207.922,339.521 0.00,338.271 0.00-17.054 23.573,220.557 131.866,222.051 321.942,222.054l0.00-137.085L 512.00,275.026 321.942,465.054z" />
+<glyph unicode="&#xe03a;" d="M 507.601,309.218 m0.00,0.00,-21.297-122.18c-2.627-13.497 -13.38-21.704 -25.781-21.858l-310.493,0.00 -6.165-34.748 295.921,0.00c 15.583-1.184 26.152-12.222 26.341-26.341 -1.133-15.55 -12.171-26.149 -26.341-26.341l-327.307,0.00c-17.702,1.592 -28.257,15.702 -26.341,31.386L 100.148,185.356 78.851,399.451 18.321,418.507c-14.791,5.873 -20.829,19.254 -17.374,33.067 5.744,14.396 19.509,20.973 33.067,17.374l 77.343-24.66c 10.419-3.906 16.413-12.435 17.935-22.418l 4.483-42.594 350.846-39.232c 16.12-3.492 24.871-16.26 22.978-30.825 z m -314.924-286.777c0.00-22.209 -18.004-40.213 -40.213-40.213 -22.209,0.00 -40.213,18.004 -40.213,40.213 0.00,22.209 18.004,40.213 40.213,40.213 22.209,0.00 40.213-18.004 40.213-40.213 z m 240.068,0.00c0.00-22.209 -18.004-40.213 -40.213-40.213 -22.209,0.00 -40.213,18.004 -40.213,40.213 0.00,22.209 18.004,40.213 40.213,40.213 22.209,0.00 40.213-18.004 40.213-40.213z" />
+<glyph unicode="&#xe039;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00 0.00,82.615 114.615-32.00 256.00-32.00 397.385-32.00 512.00,82.615 512.00,224.00 512.00,365.385 397.385,480.00 256.00,480.00 z m -129.031-108.156 45.563-14.313c 6.032-1.981 10.049-7.582 10.75-13.313l 2.563-25.094 206.313-23.031c 8.859-1.717 15.084-9.715 13.844-17.938l-12.813-72.188c-1.631-7.551 -7.885-12.727 -14.844-12.813l-183.281,0.00 -3.594-20.469 174.063,0.00c 9.102-0.321 15.768-7.251 15.875-15.344 -0.377-9.232 -7.819-15.274 -15.875-15.375l-192.50,0.00c-9.709,0.803 -16.837,8.497 -15.344,17.906l 8.188,45.063 -12.813,125.969 -35.313,11.25c-4.096,1.365 -7.171,3.933 -9.219,7.688 -3.875,8.12 -0.255,17.111 6.656,21.00 3.945,2.051 7.798,2.307 11.781,1.00 z m 69.375-238.719c 13.255,0.00 24.00-10.745 24.00-24.00 0.00-13.255 -10.745-24.00 -24.00-24.00 -13.255,0.00 -24.00,10.745 -24.00,24.00 0.00,13.255 10.745,24.00 24.00,24.00 z m 140.875,0.00c 13.255,0.00 24.00-10.745 24.00-24.00 0.00-13.255 -10.745-24.00 -24.00-24.00 -13.255,0.00 -24.00,10.745 -24.00,24.00 0.00,13.255 10.745,24.00 24.00,24.00z" />
+<glyph unicode="&#xe038;" d="M 409.60-32.00 m0.00,0.00,0.00,512.00 102.40,0.00 0.00-512.00 -102.40,0.00 z m -136.533,384.00 102.40,0.00 0.00-384.00 -102.40,0.00 0.00,384.00 z m -136.533-128.00 102.40,0.00 0.00-256.00 -102.40,0.00 0.00,256.00 z m -136.533-128.00 102.40,0.00 0.00-128.00 -102.40,0.00 0.00,128.00z" />
+<glyph unicode="&#xe037;" d="M 389.48,167.617 m0.00,0.00,c 0.262,38.99 -22.818,64.913 -54.321,79.474 -15.514,6.631 -31.407,12.046 -46.561,15.788 -20.546,5.197 -39.752,8.649 -60.207,14.45 -16.578,3.919 -36.876,16.637 -37.463,31.575 3.768,26.501 36.046,32.499 55.659,32.646 29.325,1.119 47.702-13.591 60.475-35.322 9.355-15.675 16.945-24.993 34.251-25.153 18.837,1.06 33.469,15.947 33.717,33.181 -2.631,38.815 -37.271,61.193 -69.038,71.714 -41.026,10.368 -86.071,10.677 -124.161-3.746 -36.233-13.383 -61.141-43.466 -61.545-79.206 1.818-65.677 67.847-84.559 117.204-95.262 15.032-2.996 29.524-6.128 43.349-10.703 18.49-6.714 33.996-16.852 34.251-36.392 0.00-11.774 -5.887-21.585 -17.66-29.434 -25.191-12.396 -56.297-19.072 -81.347-5.887 -17.882,8.544 -26.556,22.968 -33.717,39.068 -7.486,16.656 -16.706,27.103 -34.251,27.294 -18.394-0.686 -34.526-13.886 -34.787-31.041 2.914-34.32 26.906-62.602 54.053-77.066 51.41-21.112 108.135-25.204 157.878-4.817 38.661,16.594 63.819,50.325 64.221,88.84 z m 93.121,9.633c 9.277-19.267 13.915-39.603 13.915-61.011 -0.817-37.359 -15.626-71.997 -39.871-96.599 -27.88-26.094 -61.415-39.617 -96.599-39.871 -23.232,0.392 -45.075,5.863 -64.221,16.055 -44.715-7.767 -96.773-1.354 -134.865,14.718 -57.797,26.103 -102.113,72.278 -125.499,125.499 -17.958,47.942 -22.905,92.983 -13.647,139.146 -30.67,55.408 -21.528,122.339 21.14,165.638 47.273,45.205 115.581,50.943 169.384,18.999 76.459,12.347 154.857-14.849 206.579-65.827 44.58-46.506 68.61-107.452 69.038-166.44 -0.073-17.415 -1.949-34.494 -5.352-50.306z" />
+<glyph unicode="&#xe036;" d="M 26.574,480.00 m0.00,0.00, 0.00-247.311c-5.882,3.919 -16.366,7.198 -21.755,3.258 -5.197-6.008 2.19-14.775 5.447-20.377 32.284-32.494 65.367-53.375 104.349-70.387 -8.819-27.603 -11.412-55.26 -8.689-82.61 5.795-47.803 38.457-94.231 89.678-94.573 24.498,0.559 50.865,18.214 51.096,43.477l0.00,107.623c 6.216-1.777 12.299-4.396 18.48-5.447l0.00-100.539c0.00-7.247 1.713-13.502 5.155-18.756 10.624-15.353 27.823-24.614 45.925-24.738 53.604,2.14 83.638,46.159 89.694,94.573 2.624,28.619 -1.185,57.598 -8.705,82.626 35.541,17.947 100.306,44.291 111.692,85.593 0.512,5.124 -4.311,7.031 -8.284,7.068 -6.43-0.264 -11.635-2.656 -16.438-6.241l 0.00,246.76 z m 26.618-27.185 403.842,0.00 0.00-235.882c-6.733-4.274 -13.25-7.103 -20.101-10.326l-357.641-3.809c-9.259,3.533 -17.30,9.26 -26.099,13.05 z M 186.672,327.635c-33.32,0.00 -60.32-27.016 -60.32-60.336 0.00-33.32 27.00-60.32 60.32-60.32 33.32,0.00 60.336,27.00 60.336,60.32 0.00,33.32 -27.016,60.336 -60.336,60.336 z m 142.995,0.00c-33.32,0.00 -60.32-27.016 -60.32-60.336 0.00-33.32 27.00-60.32 60.32-60.32 33.32,0.00 60.336,27.00 60.336,60.32 0.00,33.32 -27.016,60.336 -60.336,60.336z" />
+<glyph unicode="&#xe035;" d="M 0.00,480.00 m0.00,0.00,0.00-512.00 512.00,0.00 0.00,512.00 z m 167.375-97.375c 30.524,0.00 55.281-24.726 55.281-55.25 0.00-30.524 -24.757-55.281 -55.281-55.281 -30.524,0.00 -55.281,24.757 -55.281,55.281 0.00,30.524 24.757,55.25 55.281,55.25 z m 172.281,0.00c 30.524,0.00 55.25-24.726 55.25-55.25 0.00-30.524 -24.726-55.281 -55.25-55.281 -30.524,0.00 -55.281,24.757 -55.281,55.281 0.00,30.524 24.757,55.25 55.281,55.25 z m -261.563-174.031 355.813,0.00c0.00-98.256 -79.651-177.938 -177.906-177.938 -98.256,0.00 -177.906,79.682 -177.906,177.938z" />
+<glyph unicode="&#xe023;" d="M0.00,480.00L0.00,256.00L 224.00,256.00L 224.00,480.00L0.00,480.00 z M 288.00,480.00L 288.00,256.00L 512.00,256.00L 512.00,480.00L 288.00,480.00 z M 0.00,192.00L0.00-32.00L 224.00-32.00L 224.00,192.00L0.00,192.00 z M 288.00,192.00L 288.00-32.00L 512.00-32.00L 512.00,192.00L 288.00,192.00z" />
+<glyph unicode="&#xe022;" d="M0.00,480.00L0.00,352.00L 128.00,352.00L 128.00,480.00L0.00,480.00 z M 200.00,480.00L 200.00,352.00L 512.00,352.00L 512.00,480.00L 200.00,480.00 z M 0.00,288.00L0.00,160.00L 128.00,160.00L 128.00,288.00L0.00,288.00 z M 200.00,288.00L 200.00,160.00L 512.00,160.00L 512.00,288.00L 200.00,288.00 z M 0.00,96.00L0.00-32.00L 128.00-32.00L 128.00,96.00L0.00,96.00 z M 200.00,96.00L 200.00-32.00L 512.00-32.00L 512.00,96.00L 200.00,96.00z" />
+<glyph unicode="&#xe021;" d="M 485.151,141.119 m0.00,0.00,-126.837,0.00c 2.569-20.825 6.231-40.827 10.781-60.247 2.472-36.931 -22.259-63.543 -48.198-81.175 -6.765-4.228 -13.952-5.285 -21.563-3.171 -7.191,2.537 -12.475,7.61 -15.855,15.22l-57.711,129.373 -58.344,0.00c-15.336,1.089 -25.187,11.488 -25.368,25.368l0.00,256.211c 1.089,15.336 11.488,25.187 25.368,25.368l 234.648,0.00c 12.811-0.977 25.453-5.541 35.831-11.415 17.991-10.928 30.659-25.998 36.466-44.393l 35.514-220.696c 2.115-16.735 -10.069-30.229 -24.733-30.441 z m -392.56-5.073 -74.199,0.00c-10.305,0.746 -18.25,8.203 -18.391,17.758l0.00,282.846c 0.819,10.90 8.628,17.632 18.391,17.758l 74.199,0.00c 10.756-0.748 18.257-7.889 18.391-17.758l0.00-282.846c-0.886-10.479 -8.976-17.629 -18.391-17.758z" />
+<glyph unicode="&#xe020;" d="M -0.007,467.122 m0.00,0.00,z m 305.497-25.757c 18.099,0.195 35.224-18.501 47.086-31.837 27.859-34.232 12.486-72.166 6.361-113.692l 127.07,0.00c 17.178-0.128 25.985-13.045 24.79-30.497l-35.579-220.462c-8.063-28.192 -39.402-53.01 -72.438-56.535l-235.055,0.00c-13.905,0.182 -24.324,10.051 -25.414,25.414l0.00,256.666c 0.181,13.904 10.051,24.324 25.414,25.414l 58.436,0.00 57.813,129.596c 3.215,6.994 11.643,15.776 21.516,15.934 z m -212.728-140.447c 9.78-0.125 17.577-6.886 18.397-17.805l0.00-283.358c-0.142-9.571 -8.074-17.026 -18.397-17.775l-74.34,0.00c-9.433,0.129 -17.541,7.277 -18.429,17.775l0.00,283.358c 0.135,9.886 7.653,17.055 18.429,17.805z" />
+<glyph unicode="&#xe01f;" d="M 233.22,480.00C 173.534,480.00 113.837,457.241 68.298,411.702C-22.78,320.624 -22.78,172.936 68.298,81.858C 159.376-9.22 307.064-9.22 398.142,81.858C 489.22,172.936 489.22,320.624 398.142,411.702C 352.603,457.241 292.906,480.00 233.22,480.00 z M 233.22,419.076C 277.315,419.076 321.423,402.273 355.068,368.629C 422.357,301.339 422.357,192.221 355.068,124.932C 287.779,57.643 178.661,57.643 111.371,124.932C 44.082,192.221 44.082,301.339 111.371,368.629C 145.016,402.273 189.124,419.076 233.22,419.076 z M 209.362,379.931L 209.362,270.979L 148.979,270.979L 148.979,211.336L 209.362,211.336L 269.005,211.336L 269.005,270.979L 269.005,379.931L 209.362,379.931z" />
+<glyph unicode="&#xe01e;" d="M 436.99,405.024C 390.666,451.348 326.67,480.017 255.983,480.017 114.607,480.017 -0.017,365.393 -0.017,224.017c0.00-141.376 114.624-256.00 256.00-256.00 141.376,0.00 256.00,114.624 256.00,256.00 0.00,70.687 -28.669,134.683 -74.993,181.007 z m -51.947-36.834 46.136-46.136 -173.164-173.164 -0.022,0.022 -0.022-0.022 -121.239,121.239 5.06,5.06 35.862,35.862 5.215,5.215 75.125-75.125 127.05,127.05z" />
+<glyph unicode="&#xe01d;" d="M 74.839,150.20 m0.00,0.00,c 0.57,36.14 10.635,68.654 28.742,96.765 18.657,27.943 39.382,55.132 56.686,81.117 27.469,42.361 50.752,86.24 64.989,131.256 4.949,14.121 16.183,22.106 30.019,20.439 15.419,0.946 26.098-7.266 30.019-20.439 14.991-48.743 38.895-91.351 65.308-131.256 18.037-29.408 38.641-52.105 56.367-81.117 19.232-30.564 28.569-63.629 28.742-96.765C 434.614,100.765 415.164,54.808 383.178,22.138 347.502-12.141 300.569-30.23 255.276-30.556 205.865-29.504 160.035-9.893 127.533,22.138 93.325,57.928 75.165,104.864 74.839,150.20 z M 154.039,110.281c 1.184-26.025 21.859-45.036 45.03-45.349 26.258,1.162 44.726,22.187 45.03,45.349 0.00,9.155 -2.342,17.139 -7.026,23.952 -5.148,6.70 -10.224,13.634 -14.371,20.28 -6.57,10.729 -12.993,21.398 -16.287,32.734 -0.852,4.258 -3.30,6.068 -7.345,5.429 -3.832,0.852 -6.387-0.958 -7.664-5.429C 187.961,175.102 181.943,164.398 175.596,154.512 171.132,147.062 165.781,141.264 161.065,134.232 156.169,127.206 153.827,119.222 154.039,110.281z" />
+<glyph unicode="&#xe01c;" d="M 482.001,151.014 m0.00,0.00,0.00-183.017 -452.001,0.00 0.00,183.017L 202.667,224.558C 160.138,251.862 140.159,299.745 139.789,344.699 140.35,412.293 186.725,479.412 256.00,479.997 328.761,477.611 371.814,409.491 372.211,344.699 370.766,296.093 349.339,249.927 311.017,225.12z" />
+<glyph unicode="&#xe01b;" d="M 192.587,480.00 m0.00,0.00,0.00-39.144 -147.963,0.00 0.00-72.025 422.752,0.00 0.00,72.025 -147.963,0.00 0.00,39.144 -126.826,0.00 z m -125.26-165.969 0.00-346.031 377.346,0.00 0.00,346.031 -377.346,0.00z" />
+<glyph unicode="&#xe01a;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 216.281,384.281L 295.719,384.281L 295.719,359.781L 388.344,359.781L 388.344,314.687L 123.656,314.687L 123.656,359.781L 216.281,359.781L 216.281,384.281 z M 137.875,280.375L 374.125,280.375L 374.125,63.719L 137.875,63.719L 137.875,280.375z" />
+<glyph unicode="&#xe019;" d="M 512.00,480.00 m0.00,0.00,0.00-512.00 -512.00,0.00 0.00,512.00 z M 298.215,106.824c-8.70,2.425 -17.279,5.182 -24.085,10.554 -2.706,2.165 -4.059,4.15 -4.059,5.954 0.00,43.659 0.00,87.318 0.00,130.977l 82.808,0.00c0.00,19.123 0.00,38.247 0.00,57.37l-82.808,0.00 0.00,86.596 -47.628,0.00c-3.551-44.459 -27.105-86.596 -73.607-86.596l0.00-57.37 39.51,0.00c0.00-47.267 0.00-94.534 0.00-141.801 0.163-22.30 10.459-41.487 28.414-51.687 16.994-8.797 34.90-11.036 52.77-11.095 17.514,0.085 36.152-0.263 52.77,0.812 14.55,0.522 28.497,3.852 40.863,10.013l0.00,61.159 0.00,0.541 0.00-0.541c-7.216-4.691 -15.154-8.66 -23.814-11.907 -14.526-4.763 -27.493-6.326 -41.133-2.977z" />
+<glyph unicode="&#xe00a;" d="M 458.166,211.417 m0.00,0.00,c 1.237,4.967 -0.037,10.075 -4.681,11.703l-19.31,8.777c-4.772,1.992 -10.846-0.699 -11.703-5.266 -3.727-7.979 -9.011-14.511 -17.554-14.628 -7.412,0.00 -13.458,3.998 -18.139,11.995 -4.681,7.997 -7.022,18.432 -7.022,31.305 0.00,12.873 2.341,23.406 7.022,31.598 4.681,8.192 10.727,12.288 18.139,12.288 9.35-0.679 13.787-6.584 17.554-14.043 1.997-4.90 7.43-6.051 11.703-4.681l 19.31,8.777c 4.472,2.354 6.464,8.181 4.096,12.288 -11.313,24.186 -28.867,36.279 -52.663,36.279 -19.895,0.00 -35.986-7.607 -48.274-22.82 -12.288-15.214 -18.432-35.108 -18.432-59.684 0.00-24.576 6.144-44.373 18.432-59.392 12.288-15.019 28.379-22.528 48.274-22.528 23.796,0.00 41.545,12.678 53.248,38.034 z M 272.091,173.383c 31.017,0.48 54.636,21.792 55.003,49.737 -0.548,14.757 -6.481,26.236 -16.969,35.108 9.235,8.72 14.537,20.596 14.628,32.183 -0.768,31.621 -27.067,46.559 -52.663,46.811 -22.235,0.00 -39.399-8.777 -51.492-26.331 -2.731-3.902 -2.341-7.803 1.17-11.703l 14.043-12.873c 4.502-4.013 9.509-3.271 13.458,0.585 5.851,8.192 12.873,12.288 21.065,12.288 6.631,0.00 10.533-1.658 11.703-4.974 2.256-4.92 1.608-9.408 0.00-13.458 -6.035-6.249 -14.856-4.389 -23.406-4.389 -5.561-0.187 -9.862-3.448 -9.947-8.777l0.00-21.065c 0.485-6.043 4.604-10.035 9.947-8.777 6.45,0.006 22.807,0.736 25.454-4.681 1.365-3.121 2.048-5.657 2.048-7.607 0.00-8.972 -4.876-13.458 -14.628-13.458 -9.362,0.00 -17.164,4.291 -23.406,12.873 -3.818,4.62 -9.85,4.687 -13.458,1.17l-14.628-14.628c-3.511-3.511 -3.901-7.217 -1.17-11.118 13.261-18.655 32.567-26.753 53.248-26.916 z m -57.929,150.967c 1.069,5.609 -3.061,11.019 -8.192,11.118l-25.746,0.00c-4.681,0.00 -7.412-2.341 -8.192-7.022L 159.744,265.836 146.871,328.446c-1.17,4.681 -4.096,7.022 -8.777,7.022l-18.724,0.00c-5.072,0.00 -7.998-2.341 -8.777-7.022L 97.718,265.836 85.43,328.446c-0.78,4.681 -3.706,7.022 -8.777,7.022l-25.161,0.00c-6.413-0.505 -9.496-5.576 -8.777-11.118l 32.183-141.605c 1.17-4.681 4.096-7.022 8.777-7.022l 24.576,0.00c 4.681,0.00 7.607,2.341 8.777,7.022l 11.703,58.514 11.703-58.514c 0.78-4.681 3.706-7.022 8.777-7.022l 24.576,0.00c 4.681,0.00 7.607,2.341 8.777,7.022 z M 511.999,479.998 511.999,87.998 256.00-32.002 0.00,87.998 0.00,479.998z" horiz-adv-x="511" />
+<glyph unicode="&#xe009;" d="M 256.00,480.00L0.00-32.00L 512.00-32.00L 256.00,480.00 z M 236.313,302.469L 275.688,302.469L 275.688,234.781L 266.063,139.594L 245.938,139.594L 236.313,234.781L 236.313,302.469 z M 236.313,102.219L 275.688,102.219L 275.688,59.812L 236.313,59.812L 236.313,102.219z" />
+<glyph unicode="&#xe008;" d="M 298.068,86.512 m0.00,0.00,-85.162,0.00 0.00,85.162 85.162,0.00 z m 107.735,0.00 -85.162,0.00 0.00,85.162 85.162,0.00 z m -215.471,0.00 -85.162,0.00 0.00,85.162 85.162,0.00 z m 215.471,269.339 0.00-156.986 -300.634,0.00 0.00,156.986 z m 43.095,45.147 -385.796,0.00 0.00-353.988 385.796,0.00 z M 0.00-15.58l0.00,479.166 512.00,0.00 0.00-479.166z" />
+<glyph unicode="&#xe007;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m -136.041-128.697 272.065,0.00 0.00-254.606 -272.065,0.00 z m 33.541-33.264 0.00-188.093 205.001,0.00 0.00,188.093 z m 22.355-23.992 159.741,0.00 0.00-83.404 -159.741,0.00 z m 0.00-97.864 45.244,0.00 0.00-45.244 -45.244,0.00 z m 57.24,0.00 45.26,0.00 0.00-45.244 -45.26,0.00 z m 57.24,0.00 45.26,0.00 0.00-45.244 -45.26,0.00z" />
+<glyph unicode="&#xe006;" d="M 354.757,129.191 m0.00,0.00,c 12.85-3.884 19.605-13.656 16.939-25.682C 369.876,95.859 367.69,88.937 365.14,82.745 351.382,47.449 328.612,19.142 299.569-0.586 267.233-21.326 231.772-31.809 196.294-32.005 147.652-30.983 102.397-12.238 69.797,18.812 36.161,52.65 17.396,97.503 17.066,141.212c 0.848,36.879 11.908,70.458 31.692,98.357 22.451,29.885 51.414,51.407 83.603,63.932 12.287,2.961 24.419-1.666 28.96-12.568 3.82-12.322 -2.113-23.713 -13.114-27.321C 122.103,252.915 100.676,236.504 85.37,215.252 69.762,192.291 61.48,166.921 61.327,141.212 62.122,105.148 77.063,72.019 100.943,48.866 128.734,23.988 161.884,10.861 196.294,10.616c 28.935,0.653 55.601,8.901 77.866,24.042 22.901,16.519 40.171,37.756 49.451,62.293 2.186,5.10 3.825,10.382 4.918,15.846 4.086,12.541 14.54,18.983 26.228,16.393 z M 492.457,45.588c 4.979-10.651 2.047-22.871 -5.191-30.053 -15.087-12.537 -35.87-8.933 -43.987,8.196L 371.151,149.409c-42.783,0.519 -88.186-0.431 -130.049-0.546 -18.223,1.133 -31.871,11.828 -34.971,28.414l-30.053,144.802 0.546,0.00c-2.335,11.57 4.964,25.976 11.475,32.512 8.014,7.832 17.85,11.748 29.507,11.748 9.471,0.00 17.759-2.732 24.862-8.196 16.881-15.035 16.195-28.313 20.491-50.271l 85.243,0.00c 9.752-0.374 18.101-7.788 20.491-15.846 3.253-16.493 -8.06-28.483 -23.769-27.321l-72.675,0.00 10.928-53.55 92.892,0.00c 14.879-0.731 26.762-7.756 32.785-20.218L 492.457,45.588 z M 203.398,377.814c-29.432,1.083 -51.161,23.032 -51.364,51.364 1.194,29.115 23.374,50.616 51.364,50.817 29.017-1.286 50.618-22.601 50.817-50.817 -1.325-29.411 -24.609-51.009 -50.817-51.364z" />
+<glyph unicode="&#xe005;" d="M 255.707-32.00C 112.743-29.252 0.999,87.941 0.00,224.292 2.78,367.15 119.351,479.00 255.707,480.00 398.574,477.143 510.999,360.832 512.00,224.292 509.176,81.32 392.242-30.999 255.707-32.00 z m 0.00,493.861C 122.964,459.246 18.478,351.047 17.554,224.292 20.136,91.443 128.957-12.937 255.707-13.861 388.557-11.279 492.937,97.543 493.86,224.292 491.355,357.134 382.274,460.938 255.707,461.86 z m -61.44-447.049 65.536,188.416 68.462-184.32c-46.124-15.44 -89.729-16.376 -133.998-4.096 z M 143.945,347.757c-23.992-3.261 -47.324-4.424 -70.217-3.511 43.468,62.144 113.065,97.106 181.979,97.719 56.367-1.067 108.915-22.373 147.456-57.344 -17.874,1.321 -28.577-6.518 -36.279-19.895 -11.194-34.534 12.459-60.097 25.746-86.016 12.563-23.682 11.567-50.611 4.681-73.728L 364.544,93.22 285.55,327.862c 8.231,0.766 16.516,1.013 23.991,2.341 8.848,1.97 10.789,10.203 4.681,15.214 -1.95,1.561 -4.096,2.341 -6.437,2.341l-47.397-3.511 -35.986,0.00c-10.16-0.60 -38.848,9.215 -41.253-4.096 -1.242-5.127 2.585-9.146 7.022-9.947 7.827-1.014 16.796-2.166 23.991-2.926l 34.523-92.453 -47.982-141.605 -79.579,234.642c 8.421,0.731 16.953,0.986 24.576,2.341 6.242,0.782 8.972,3.903 8.192,9.362 -1.107,4.854 -5.433,8.134 -9.947,8.192 z m -87.771-36.279 104.741-283.209C 123.121,46.897 93.243,74.291 71.972,106.971 33.062,169.065 28.969,247.841 56.174,311.479 z m 409.307-145.408c-17.196-56.153 -52.317-102.662 -100.937-130.779 2.341,6.242 6.046,16.774 11.118,31.598l 60.855,176.713c 5.851,17.164 9.947,36.279 12.288,57.344 0.79,8.618 0.817,17.308 -0.585,25.161 24.934-53.778 32.008-107.047 17.262-160.037z" />
+<glyph unicode="&#xe004;" d="M 412.247,471.913C 363.906,489.307 307.739,478.644 269.005,439.91c-38.734-38.734 -49.396-94.901 -32.003-143.241l-237.003-237.003 82.359-82.359 237.003,237.003c 48.34-17.394 104.507-6.731 143.241,32.003 38.734,38.734 49.396,94.901 32.003,143.241L 411.262,306.21 351.899,329.206 328.903,388.569 412.247,471.913 z M 98.938,76.245c 9.452-9.452 9.452-24.775 0.00-34.227 -9.452-9.452 -24.775-9.452 -34.227,0.00 -9.452,9.452 -9.452,24.775 0.00,34.227 9.452,9.452 24.775,9.452 34.227,0.00z" />
+<glyph unicode="&#xe003;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00 0.00,82.615 114.615-32.00 256.00-32.00 397.385-32.00 512.00,82.615 512.00,224.00 512.00,365.385 397.385,480.00 256.00,480.00 z m 69.719-102.344c 9.698,0.027 19.421-1.615 28.656-4.938l-50.969-50.969 14.063-36.281 36.281-14.063 50.969,50.969c 10.633-29.552 4.117-63.914 -19.563-87.594 -23.679-23.679 -58.011-30.196 -87.563-19.563l-144.906-144.875 -50.344,50.344 144.875,144.906c-10.633,29.552 -4.117,63.883 19.563,87.563 16.279,16.279 37.601,24.44 58.938,24.50 z M 141.906,130.812c-5.778-5.778 -5.778-15.128 0.00-20.906 5.778-5.778 15.128-5.778 20.906,0.00 5.778,5.778 5.778,15.128 0.00,20.906 -6.263,5.693 -15.509,5.234 -20.906,0.00z" />
+<glyph unicode="&#xe002;" d="M 512.00,29.678 0.00,29.679l0.00,388.64 512.00,0.00 z M 182.312,110.464 361.347,222.907 182.312,335.35z" horiz-adv-x="511" />
+<glyph unicode="&#xe001;" d="M 262.045,348.961 m0.00,0.00,-65.519,0.00 0.00-65.519 -65.519,0.00 0.00-65.519 65.519,0.00 0.00-65.519 65.519,0.00 0.00,65.519 65.519,0.00 0.00,65.519 -65.519,0.00 z m 249.956-323.928 -94.642,94.642c 25.946,37.149 41.277,82.259 41.277,131.006 0.00,126.649 -102.701,229.317 -229.317,229.317 -126.616,0.00 -229.317-102.669 -229.317-229.317 0.00-126.649 102.669-229.317 229.317-229.317 48.746,0.00 93.889,15.332 131.038,41.277l 94.642-94.642 z M 229.284,86.85c-90.449,0.00 -163.798,73.316 -163.798,163.798 0.00,90.482 73.349,163.798 163.798,163.798 90.482,0.00 163.798-73.316 163.798-163.798 0.033-90.482 -73.283-163.798 -163.798-163.798z" />
+<glyph unicode="&#xe000;" d="M 512.001,25.033 m0.00,0.00,-94.642,94.642c 25.946,37.149 41.277,82.259 41.277,131.006 0.00,126.649 -102.701,229.317 -229.317,229.317 -126.616,0.00 -229.317-102.669 -229.317-229.317 0.00-126.649 102.669-229.317 229.317-229.317 48.746,0.00 93.889,15.332 131.038,41.277l 94.642-94.642 z M 229.284,86.85c-90.449,0.00 -163.798,73.316 -163.798,163.798 0.00,90.482 73.349,163.798 163.798,163.798 90.482,0.00 163.798-73.316 163.798-163.798 0.033-90.482 -73.283-163.798 -163.798-163.798 z m -98.279,131.071 196.558,0.00 0.00,65.519 -196.558,0.00z" />
+<glyph unicode="&#xe069;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 141.156,356.531L 218.688,356.531L 218.688,91.469L 141.156,91.469L 141.156,356.531 z M 293.313,356.531L 370.844,356.531L 370.844,91.469L 293.313,91.469L 293.313,356.531z" />
+<glyph unicode="&#xe068;" d="M 493.613,399.465 427.109,465.97C 408.771,484.307 377.742,483.108 357.856,463.172 337.969,443.285 336.67,412.206 355.057,393.869l 66.504-66.504c 18.338-18.338 49.366-17.138 69.303,2.798 19.886,19.937 21.136,50.915 2.748,69.303 z M 69.652,175.018 202.661,42.01 418.815,258.111 285.805,391.121 69.652,175.018 z M 0.00-25.595 175.43,9.532 35.126,149.836 0.00-25.595z" />
+<glyph unicode="&#xe067;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m 86.128-79.968c 7.505-0.059 14.791-2.827 20.296-8.332l 42.602-42.586c 11.776-11.776 10.969-31.617 -1.767-44.385 -12.768-12.768 -32.641-13.527 -44.385-1.783l-42.586,42.586c-11.776,11.744 -10.953,31.649 1.783,44.385 6.766,6.783 15.551,10.183 24.057,10.116 z m -70.192-56.267 85.187-85.171 -138.44-138.407 -85.187,85.187 138.44,138.391 z m -160.551-154.521 89.856-89.856 -112.357-22.50 22.50,112.357z" />
+<glyph unicode="&#xe066;" d="M 300.322,366.462 m0.00,0.00,c 7.705,0.00 14.796-1.488 21.275-4.465 19.231-9.68 30.586-28.077 30.731-48.591l0.00-141.308c-3.608-22.464 -29.319-16.355 -29.943,0.00l0.00,133.429c-2.292,7.609 -16.984,4.454 -17.336,0.00l0.00-306.255c-3.736-31.272 -44.146-22.093 -45.177,0.525 0.00,62.512 0.00,125.024 0.00,187.536 -2.584,12.096 -19.589,6.60 -19.962-0.525 0.721-62.334 0.525-124.673 0.525-187.01 -4.03-31.111 -44.244-23.151 -45.177-0.525l-0.525,306.255c-2.355,7.445 -15.969,4.589 -16.285,0.00l0.00-133.429c-3.608-22.464 -29.319-16.355 -29.943,0.00l0.00,141.308c 0.363,19.639 7.561,39.315 24.69,48.591 5.603,2.977 12.433,4.465 20.487,4.465 35.546,0.00 71.092,0.00 106.638,0.00 z m -0.53,64.173c0.00-27.263 -22.101-49.365 -49.365-49.365 -27.263,0.00 -49.365,22.101 -49.365,49.365 0.00,27.263 22.101,49.365 49.365,49.365 27.263,0.00 49.365-22.101 49.365-49.365z" />
+<glyph unicode="&#xe065;" d="M 499.753,62.225 m0.00,0.00,-71.393-70.821c-10.538-10.808 -24.508-14.469 -38.112-14.486C 330.086-21.279 273.22,8.273 226.527,38.619 149.887,94.375 79.565,163.51 35.431,247.057 18.504,282.091 -1.358,326.791 0.539,365.896c 0.169,14.71 4.133,29.147 14.493,38.63l 71.393,71.358c 14.825,12.61 29.162,8.25 38.649-6.438l 57.436-108.913c 6.045-12.903 2.578-26.727 -6.441-35.947l-26.303-26.289c-1.624-2.224 -2.657-4.756 -2.684-7.512 10.086-39.042 40.643-75.028 67.636-99.793 26.993-24.765 56.007-58.317 93.67-66.26 4.655-1.299 10.357-1.755 13.688,1.341l 30.597,31.118c 10.548,7.995 25.777,11.902 37.039,5.365l 0.537,0.00 103.60-61.164c 15.208-9.533 16.794-27.958 5.904-39.166z" />
+<glyph unicode="&#xe064;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 164.00,378.312C 169.275,378.624 174.042,375.471 177.656,369.875L 212.656,303.50C 216.341,295.635 214.248,287.213 208.75,281.594L 192.719,265.562C 191.729,264.207 191.078,262.68 191.063,261.00C 197.211,237.202 215.859,215.252 232.313,200.156C 248.766,185.061 266.45,164.623 289.406,159.781C 292.244,158.99 295.72,158.707 297.75,160.594L 316.375,179.562C 322.804,184.436 332.104,186.797 338.969,182.812L 339.281,182.812L 402.438,145.531C 411.708,139.72 412.669,128.488 406.031,121.656L 362.531,78.50C 356.108,71.912 347.573,69.697 339.281,69.687C 302.61,70.786 267.96,88.785 239.50,107.281C 192.785,141.267 149.933,183.418 123.031,234.344C 112.713,255.698 100.593,282.945 101.75,306.781C 101.853,315.748 104.279,324.533 110.594,330.312L 154.094,373.812C 157.482,376.695 160.835,378.126 164.00,378.312z" />
+<glyph unicode="&#xe063;" d="M0.00,466.781L0.00-18.781L 512.00-18.781L 512.00,466.781L0.00,466.781 z M 63.188,405.531L 448.813,405.531L 448.813,139.25L 63.188,139.25L 63.188,405.531z" />
+<glyph unicode="&#xe062;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 118.625,354.281L 393.375,354.281L 393.375,93.719L 118.625,93.719L 118.625,354.281 z M 152.531,321.406L 152.531,178.531L 359.469,178.531L 359.469,321.406L 152.531,321.406z" />
+<glyph unicode="&#xe061;" d="M 388.62,439.509 m0.00,0.00,c 75.976-47.385 122.947-129.32 123.38-215.779 0.00-28.988 -4.892-56.708 -14.675-83.159l-108.705,0.00 z m 97.291-325.571c-40.483-81.338 -120.057-133.494 -206.539-142.403 -44.333-2.839 -92.473,5.549 -128.272,21.197l0.00,121.206 z M 0.00,223.729C 1.131,320.713 56.708,406.314 139.142,448.749l 97.291-86.964 -227.193-203.822c-6.16,22.465 -9.24,44.388 -9.24,65.766 z M 123.923,7.407C 75.579,37.702 38.661,81.668 18.48,130.243L 123.923,225.36 z M 361.444,285.148 166.318,460.706c 29.796,10.016 60.519,16.20 89.681,16.306 36.96,0.00 72.108-7.609 105.444-22.828z" />
+<glyph unicode="&#xe060;" d="M 0.00,437.656L 0.00,10.344L 512.00,10.344L 512.00,437.656L 0.00,437.656 z M 39.281,397.719L 472.719,397.719L 472.719,50.281L 39.281,50.281L 39.281,397.719 z M 128.625,347.562C 116.401,347.562 106.116,343.397 97.781,335.062C 89.447,326.728 85.281,316.443 85.281,304.219C 85.281,292.55 89.447,282.553 97.781,274.219C 106.116,265.884 116.401,261.719 128.625,261.719C 140.293,261.719 150.29,265.884 158.625,274.219C 166.96,282.553 171.125,292.55 171.125,304.219C 171.125,316.443 166.96,326.728 158.625,335.062C 150.29,343.397 140.293,347.562 128.625,347.562 z M 312.813,326.437L 214.469,177.25L 162.25,220.594L 85.281,120.594L 85.281,91.406L 426.719,91.406L 426.719,208.656L 312.813,326.437z" />
+<glyph unicode="&#xe05f;" d="M 256.00,480.00 m0.00,0.00,c 152.087-2.844 255.007-119.478 256.00-256.00 -2.72-145.46 -119.478-255.007 -256.00-256.00 -25.255,0.098 -49.912,4.029 -72.432,10.505 4.792,7.741 9.584,16.311 14.376,25.711 10.106,20.545 14.721,42.547 19.905,63.585 2.212,9.031 5.345,20.919 9.40,35.663 4.423-8.478 12.441-15.85 24.052-22.117 30.308-14.746 67.857-9.874 94.825,3.87 37.835,21.491 60.006,54.87 71.879,92.337 22.862,86.887 -6.617,170.427 -85.425,204.026 -95.025,28.623 -201.075-7.099 -238.03-92.061 -16.135-56.778 -15.18-129.675 40.916-153.434 2.95-1.106 5.623-1.106 8.017,0.00 5.265,3.008 11.371,29.08 10.229,34.557 -0.369,1.659 -1.659,3.963 -3.87,6.912 -31.003,41.971 -12.108,104.432 16.864,135.741 49.266,42.316 125.942,49.188 171.127,8.847 40.078-46.756 30.976-119.522 5.253-165.875 -14.213-22.667 -33.28-39.797 -58.886-40.086 -26.953,0.597 -47.282,23.404 -40.363,49.209 5.88,30.284 22.193,62.402 22.669,90.678 -1.302,23.519 -13.08,38.435 -34.834,38.704 -34.725-4.379 -48.744-36.846 -49.209-66.35 1.11-14.178 1.97-28.609 8.294-40.363 -7.372-29.858 -13.086-53.909 -17.14-72.156 -6.216-32.373 -18.403-66.231 -20.181-97.59 -0.553-10.321 -0.645-19.905 -0.277-28.752 -94.859,44.985 -152.597,132.855 -153.158,234.436 2.763,147.752 119.478,255.007 256.00,256.00z" />
+<glyph unicode="&#xe05e;" d="M 136.96-16.64 m0.00,0.00, 51.20,0.00 114.893,204.826 132.147,0.00c0.00,0.00 76.80,0.00 76.80,35.814 0.00,35.84 -76.80,35.84 -76.80,35.84l-132.147,0.00 -114.893,204.80 -51.20,0.00 63.693-204.80 -91.827,0.00 -57.626,51.226 -51.20,0.00L 40.986,224.025 0.00,136.96l 51.20,0.00 57.626,51.226 91.827,0.00 -63.693-204.826z" />
+<glyph unicode="&#xe05c;" d="M 256.00-32.00 m0.00,0.00,c-141.376,0.00 -256.00,114.624 -256.00,256.00 0.00,141.376 114.624,256.00 256.00,256.00 141.376,0.00 256.00-114.624 256.00-256.00 0.00-141.376 -114.624-256.00 -256.00-256.00 z m -64.00,383.808 0.00-255.616 192.00,127.808 -192.00,127.808z" />
+<glyph unicode="&#xe05b;" d="M 256.00,480.00C 114.624,480.00 0.00,365.376 0.00,224.00C0.00,82.624 114.624-32.00 256.00-32.00C 397.376-32.00 512.00,82.624 512.00,224.00C 512.00,365.376 397.376,480.00 256.00,480.00 z M 256.00,420.625C 364.586,420.625 452.625,332.586 452.625,224.00C 452.625,115.414 364.586,27.375 256.00,27.375C 147.414,27.375 59.375,115.414 59.375,224.00C 59.375,332.586 147.414,420.625 256.00,420.625 z M 192.00,351.812L 192.00,96.187L 384.00,224.00L 192.00,351.812z" />
+<glyph unicode="&#xe05a;" d="M 183.50,480.00L 183.50,296.50L0.00,296.50L0.00,151.50L 183.50,151.50L 183.50-32.00L 328.50-32.00L 328.50,151.50L 512.00,151.50L 512.00,296.50L 328.50,296.50L 328.50,480.00L 183.50,480.00z" />
+<glyph unicode="&#xe04e;" d="M 0.00,367.001 143.001,224.00 0.00,80.998 112.998-32.00 256.00,111.001 399.001-32.00 512.00,80.998 368.998,224.00 512.00,367.001 399.001,480.00 256.00,336.998 112.998,480.00 0.00,367.001z" />
+<glyph unicode="&#xe04d;" d="M 256.00,480.00C 114.616,480.00 0.00,365.384 0.00,224.00C0.00,82.616 114.616-32.00 256.00-32.00C 397.384-32.00 512.00,82.616 512.00,224.00C 512.00,365.384 397.384,480.00 256.00,480.00 z M 256.00,424.375C 366.664,424.375 456.344,334.637 456.344,224.00C 456.344,113.363 366.664,23.656 256.00,23.656C 145.336,23.656 55.656,113.363 55.656,224.00C 55.656,334.637 145.336,424.375 256.00,424.375 z M 185.781,349.719L 130.281,294.219L 200.50,224.00L 130.281,153.781L 185.781,98.281L 256.00,168.50L 326.219,98.281L 381.719,153.781L 311.50,224.00L 381.719,294.219L 326.219,349.719L 256.00,279.50L 185.781,349.719z" />
+<glyph unicode="&#xe04c;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 175.563,368.00L 256.00,287.562L 336.438,368.00L 400.00,304.437L 319.563,224.00L 400.00,143.562L 336.438,80.00L 256.00,160.437L 175.563,80.00L 112.00,143.562L 192.438,224.00L 112.00,304.437L 175.563,368.00z" />
+<glyph unicode="&#xe04b;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 350.895-32.00 433.66,19.671 477.875,96.375L 387.75,148.219C 361.479,102.654 312.374,71.906 256.00,71.906C 172.001,71.906 103.906,140.001 103.906,224.00C 103.906,307.999 172.001,376.094 256.00,376.094C 292.005,376.094 325.006,363.498 351.031,342.562L 283.813,294.75L 512.00,218.656L 512.00,457.125L 437.688,404.25C 391.306,451.007 327.063,480.00 256.00,480.00z" />
+<glyph unicode="&#xe04a;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 256.00,372.281C 297.16,372.281 334.386,355.488 361.25,328.406L 404.281,359.031L 404.281,220.906L 272.094,264.969L 311.031,292.687C 295.957,304.814 276.854,312.094 256.00,312.094C 207.347,312.094 167.906,272.653 167.906,224.00C 167.906,175.347 207.347,135.906 256.00,135.906C 288.652,135.906 317.096,153.702 332.313,180.094L 384.50,150.094C 358.89,105.666 310.964,75.719 256.00,75.719C 174.109,75.719 107.719,142.109 107.719,224.00C 107.719,305.891 174.109,372.281 256.00,372.281z" />
+<glyph unicode="&#xe049;" d="M 178.567,221.299 75.638,118.371 0.00,194.009l 0.00-226.009 226.009,0.00 -75.638,75.638 102.928,102.928 -74.732,74.732zM 333.433,226.701 436.362,329.629 512.00,253.991l0.00,226.009 -226.009,0.00 75.638-75.638 -102.928-102.928 74.732-74.732z" />
+<glyph unicode="&#xe048;" d="M 129.75,353.75 0.00,224.00l 129.75-129.75 0.00,86.844 252.50,0.00 0.00-86.844L 512.00,224.00 382.25,353.75l0.00-86.844 -252.50,0.00z" />
+<glyph unicode="&#xe047;" d="M 74.732-32.00 m0.00,0.00, 102.928,102.928 75.638-75.638 0.00,226.009 -226.009,0.00 75.638-75.638L0.00,42.732 74.732-32.00zM 437.268,480.00 m0.00,0.00,-102.928-102.928 -75.638,75.638 0.00-226.009 226.009,0.00L 409.072,302.339 512.00,405.267 437.268,480.00z" />
+<glyph unicode="&#xe046;" d="M 385.749,350.25 m0.00,0.00,-129.75,129.75 -129.75-129.75 86.844,0.00 0.00-134.313 0.00-15.875 0.00-102.313 -86.844,0.00 129.75-129.75 129.75,129.75 -86.844,0.00 0.00,102.313 0.00,15.875 0.00,134.313 86.844,0.00z" />
+<glyph unicode="&#xe045;" d="M 128.00,384.00L0.00,256.00L 96.00,256.00L 96.00,96.00L 288.00,96.00L 224.00,160.00L 160.00,160.00L 160.00,256.00L 256.00,256.00L 128.00,384.00 z M 224.00,352.00L 288.00,288.00L 352.00,288.00L 352.00,192.00L 256.00,192.00L 384.00,64.00L 512.00,192.00L 416.00,192.00L 416.00,352.00L 224.00,352.00z" />
+<glyph unicode="&#xe044;" d="M 256.00-32.00 m0.00,0.00,c-141.376,0.00 -256.00,114.624 -256.00,256.00 0.00,141.376 114.624,256.00 256.00,256.00 141.376,0.00 256.00-114.624 256.00-256.00 0.00-141.376 -114.624-256.00 -256.00-256.00 z m -32.00,351.84 -128.00-95.84 128.00-95.84 0.00,191.68 z m 160.00,0.00 -128.00-95.84 128.00-95.84 0.00,191.68z" />
+<glyph unicode="&#xe043;" d="M 511.999-31.999 m0.00,0.00,c0.00,0.00 -103.363,511.999 -103.363,511.999 0.00,0.00 -127.595,0.00 -127.595,0.00 0.00,0.00 3.91-118.048 3.91-118.048 0.00,0.00 -57.904,0.00 -57.904,0.00 0.00,0.00 3.91,118.048 3.91,118.048 0.00,0.00 -127.595,0.00 -127.595,0.00 0.00,0.00 -103.363-511.999 -103.363-511.999 0.00,0.00 214.00,0.00 214.00,0.00 0.00,0.00 4.882,147.39 4.882,147.39 0.00,0.00 74.237,0.00 74.237,0.00 0.00,0.00 4.882-147.39 4.882-147.39 0.00,0.00 214.00,0.00 214.00,0.00 0.00,0.00 0.00,0.00 0.00,0.00M 291.657,159.475c0.00,0.00 -71.316,0.00 -71.316,0.00 0.00,0.00 5.751,173.638 5.751,173.638 0.00,0.00 59.814,0.00 59.814,0.00 0.00,0.00 5.751-173.638 5.751-173.638 0.00,0.00 0.00,0.00 0.00,0.00" />
+<glyph unicode="&#xe042;" d="M 511.999-31.999 m0.00,0.00,c0.00,282.769 -229.23,511.999 -511.999,511.999l0.00-102.406c 226.216,0.00 409.593-183.378 409.593-409.593l 102.406,0.00 z m -204.813,0.00c0.00,169.662 -137.526,307.187 -307.187,307.187l0.00-102.375c 113.108,0.00 204.813-91.705 204.813-204.813l 102.375,0.00 z m -204.781,0.00c0.00,56.554 -45.852,102.406 -102.406,102.406l0.00-102.406 102.406,0.00z" />
+<glyph unicode="&#xe041;" d="M 0.00,435.812 m0.00,0.00,0.00-338.00 185.906,0.00 0.00-48.719 -45.313,0.00 0.00-36.906 230.813,0.00 0.00,36.906 -45.313,0.00 0.00,48.719 185.906,0.00 0.00,338.00 -512.00,0.00 z m 62.969-63.813 386.063,0.00 0.00-210.406 -386.063,0.00 0.00,210.406z" />
+<glyph unicode="&#xe040;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 106.688,347.531L 405.313,347.531L 405.313,150.406L 296.875,150.406L 296.875,122.00L 323.313,122.00L 323.313,100.469L 188.688,100.469L 188.688,122.00L 215.125,122.00L 215.125,150.406L 106.688,150.406L 106.688,347.531 z M 143.438,310.312L 143.438,187.594L 368.563,187.594L 368.563,310.312L 143.438,310.312z" />
+<glyph unicode="&#xe034;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 122.094,357.906L 389.906,357.906L 389.906,90.094L 122.094,90.094L 122.094,357.906 z M 209.625,306.969C 193.658,306.969 180.719,294.03 180.719,278.062C 180.719,262.095 193.658,249.156 209.625,249.156C 225.592,249.156 238.563,262.095 238.563,278.062C 238.563,294.03 225.592,306.969 209.625,306.969 z M 299.75,306.969C 283.783,306.969 270.844,294.03 270.844,278.062C 270.844,262.095 283.783,249.156 299.75,249.156C 315.717,249.156 328.656,262.095 328.656,278.062C 328.656,294.03 315.717,306.969 299.75,306.969 z M 162.938,215.937C 162.938,164.54 204.602,122.875 256.00,122.875C 307.397,122.875 349.063,164.54 349.063,215.937L 162.938,215.937z" />
+<glyph unicode="&#xe033;" d="M 0.00,289.573 m0.00,0.00, 120.656,0.00 181.508,147.934 0.00-508.853 -181.508,147.934 -120.656,0.00 z m 370.361,24.132c 35.672-35.672 53.858-79.038 54.558-130.098 0.00-48.962 -18.186-90.929 -54.558-125.902L 333.641,95.473c 25.18,25.18 37.77,54.907 37.77,89.18 0.00,34.973 -12.59,65.399 -37.77,91.278l 36.722,37.77 z m 62.95,61.902c 52.46-52.46 78.688-115.76 78.688-189.902 0.00-74.142 -26.23-137.793 -78.688-190.952l-38.82,38.82c 41.968,41.268 62.952,91.804 62.952,151.606 0.00,59.804 -20.984,110.688 -62.952,152.656z" />
+<glyph unicode="&#xe032;" d="M 121.236,77.283 m0.00,0.00,0.00-41.769 201.753,0.00 0.00,41.769 -201.753,0.00 z m 3.415,75.132 -2.89-41.769 201.227-13.66 2.627,41.506 -200.965,13.923 z m -61.997,17.338 0.00-201.753 33.363,0.00 264.274,0.00 21.279,0.00 0.00,201.753 -33.363,0.00 0.00-168.127 -252.191,0.00 0.00,168.127 -33.363,0.00 z m 77.234,71.454 -9.982-40.456 195.711-48.599 9.982,40.718 -195.711,48.337 z M 183.232,342.346 161.954,306.356 335.859,204.167 357.138,240.419 183.232,342.346 z m 106.13,95.885 -34.676-23.38 112.172-167.339 34.676,23.117 -112.172,167.602 z m 135.553,41.769 -41.506-4.991 24.431-200.177 41.506,4.991 -24.431,200.177z" />
+<glyph unicode="&#xe031;" d="M 410.18-20.532 253.476,94.379 93.746-16.287 154.609,168.256 0.00,285.97 194.319,285.114 258.495,468.531 317.728,283.458 512.00,279.102 354.289,165.578z" />
+<glyph unicode="&#xe030;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 257.688,390.437L 298.031,264.469L 430.25,261.50L 322.906,184.25L 360.938,57.562L 254.281,135.781L 145.563,60.437L 187.00,186.062L 81.75,266.187L 214.031,265.594L 257.688,390.437z" />
+<glyph unicode="&#xe02f;" d="M 258.494,468.527 m0.00,0.00,-15.98-45.661 -48.194-137.744 -145.924,0.633 -48.397,0.228 38.52-29.327 116.091-88.41 -45.712-138.554 -15.145-45.965 39.786,27.554 119.94,83.092 117.686-86.283 39.026-28.617L 396.263,25.818 354.273,165.588 472.719,250.832 511.999,279.12 463.628,280.184 317.729,283.476 273.258,422.435 258.494,468.527 z m -1.368-102.035 33.252-103.909 3.52-11.017 11.548-0.253 109.076-2.431 -88.537-63.744 -9.396-6.737 3.343-11.067 31.378-104.492 -87.98,64.503 -9.32,6.838 -9.497-6.585 -89.677-62.123 34.189,103.606 3.596,10.966 -9.193,7.015 -86.764,66.073 109.076-0.481 11.548-0.051 3.824,10.915 36.013,102.972z" />
+<glyph unicode="&#xe02b;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 128.00,352.00L 384.00,352.00L 384.00,96.00L 128.00,96.00L 128.00,352.00z" />
+<glyph unicode="&#xe02a;" d="M 445.455,383.996C 499.976,310.988 512.00,214.998 478.303,134.912 436.346,41.767 345.414-16.399 248.899-17.10 153.888-16.042 69.551,37.778 27.239,118.377l 108.426,0.00c 46.841,0.337 86.991,29.129 87.595,72.539 -0.021,23.768 -8.878,45.594 -28.041,57.337 -16.841,9.602 -34.539,11.502 -52.344,14.667 -11.055,2.315 -27.814,4.548 -28.041,17.068 1.025,20.12 22.349,21.795 36.32,21.868 25.103,0.00 50.207,0.00 75.31,0.00 10.789-0.284 21.439-0.899 30.979-4.80 9.856-4.581 14.861-11.48 14.956-21.334l0.00-75.206c 0.744-24.912 8.844-46.117 26.438-61.604C 316.713,124.526 337.802,118.501 358.928,118.377c 22.57,0.615 43.983,6.814 60.089,20.534 18.497,17.257 26.284,38.847 26.438,61.604 z M 248.899,480.003c 51.541-0.666 100.228-17.064 139.939-43.203l0.00-238.417c-1.327-17.479 -13.981-29.65 -29.91-29.869 -17.454,1.317 -30.218,13.894 -30.444,29.869l0.00,71.472c-0.651,31.64 -9.315,64.874 -40.059,76.539 -8.19,3.022 -16.915,4.534 -26.171,4.534l-122.313,0.00c-21.666-0.545 -41.647-6.66 -57.151-19.734 -16.144-14.856 -23.887-33.321 -24.035-53.337 0.24-13.676 3.357-27.296 10.416-37.87 11.712-15.966 28.535-23.461 45.667-26.669 13.698-3.249 27.757-3.268 40.593-7.467 9.343-3.492 12.219-8.922 12.285-17.601 -0.543-10.323 -6.03-14.842 -14.689-17.334 -12.307-2.873 -25.029-2.395 -36.587-2.40l-108.426,0.00c-5.101,21.221 -7.962,42.81 -8.012,62.937 2.626,138.927 116.163,247.587 248.90,248.551z" />
+<glyph unicode="&#xe029;" d="M 12.996,293.504 m0.00,0.00,0.00,147.244c 1.125,22.497 19.253,38.973 39.244,39.244l 147.244,0.00c 23.679-1.471 51.951-10.755 67.135-27.893l 217.947-242.596c 13.691-17.332 14.078-41.314 0.00-55.784L 313.971-16.876C 297.244-32.008 272.288-31.364 258.187-16.876L 40.889,226.369C 25.047,245.076 13.215,270.087 12.996,293.504 z m 63.892,84.973c 0.929-21.89 18.196-37.687 37.622-37.946 21.953,0.98 37.687,18.478 37.946,37.946 -0.967,21.962 -18.553,37.368 -37.946,37.622 -21.90-0.915 -37.368-18.272 -37.622-37.622z" />
+<glyph unicode="&#xe028;" d="M0.00,281.806 m0.00,0.00,0.00,123.231c 1.475,19.349 15.289,32.606 32.844,32.844l 123.231,0.00c 16.346-0.274 31.574-6.188 44.923-14.25L 394.123,211.505c 11.645-14.953 12.242-33.561 0.00-46.144L 251.348,23.13C 236.921,10.681 216.703,9.555 205.205,23.13L 23.344,225.62C 10.559,241.441 0.19,262.267 0.00,281.806 z m 62.295,48.859c 13.639-12.575 33.214-11.411 44.923,0.00 12.518,13.524 11.472,33.302 0.00,44.923 -13.54,12.326 -33.26,11.348 -44.923,0.00 -12.379-14.458 -11.914-32.52 0.00-44.923 z m 152.41,106.674 47.23,0.00c 19.80-1.221 43.232-9.023 55.915-23.344l 181.861-203.033c 12.288-14.189 11.789-34.57 0.00-46.686L 357.479,22.044c-19.712-11.175 -37.777-10.395 -49.944,3.80l 139.517,139.517c 12.563,13.90 11.221,33.948 0.00,46.144l-162.743,182.094C 265.045,417.642 223.571,436.253 214.704,437.339z" />
+<glyph unicode="&#xe027;" d="M0.00,413.406L0.00,313.406L 512.00,313.406L 512.00,413.406L0.00,413.406 z M 321.219,388.656L 485.75,388.656L 485.75,338.156L 321.219,338.156L 321.219,388.656 z M 0.00,263.375L0.00,163.375L 512.00,163.375L 512.00,263.375L0.00,263.375 z M 208.094,238.625L 485.75,238.625L 485.75,188.125L 208.094,188.125L 208.094,238.625 z M 0.00,113.375L0.00,13.375L 512.00,13.375L 512.00,113.375L0.00,113.375 z M 381.844,88.625L 485.75,88.625L 485.75,38.125L 381.844,38.125L 381.844,88.625z" />
+<glyph unicode="&#xe026;" d="M 423.125,480.00L 334.25,390.656L 393.75,390.656L 393.75,57.344L 334.25,57.344L 423.125-32.00L 512.00,57.344L 452.531,57.344L 452.531,390.656L 512.00,390.656L 423.125,480.00 z M 2.531,391.406L 0.00,300.50L 31.594,300.50C 31.594,362.851 31.637,362.781 111.313,362.781L 111.313,112.00C 111.313,80.741 111.297,80.793 67.563,81.562L 67.563,56.594L 229.469,56.594L 229.469,81.562C 185.806,81.562 185.719,81.639 185.719,112.00L 185.719,362.781C 265.437,362.781 265.656,362.764 265.656,300.50L 297.031,300.50L 294.75,391.406L 2.531,391.406z" />
+<glyph unicode="&#xe025;" d="M 110.00,480.00L 107.50,389.094L 139.094,389.094C 139.094,451.445 139.105,451.375 218.781,451.375L 218.781,200.594C 218.781,169.335 218.765,169.387 175.031,170.156L 175.031,145.187L 336.969,145.187L 336.969,170.156C 293.306,170.156 293.219,170.232 293.219,200.594L 293.219,451.375C 372.937,451.375 373.125,451.358 373.125,389.094L 404.50,389.094L 402.219,480.00L 110.00,480.00 z M 89.344,145.75L 0.00,56.875L 89.344-32.00L 89.344,27.469L 422.656,27.469L 422.656-32.00L 512.00,56.875L 422.656,145.75L 422.656,86.25L 89.344,86.25L 89.344,145.75z" />
+<glyph unicode="&#xe024;" d="M0.00,480.00L0.00,352.00L 128.00,352.00L 128.00,480.00L0.00,480.00 z M 192.00,480.00L 192.00,352.00L 320.00,352.00L 320.00,480.00L 192.00,480.00 z M 384.00,480.00L 384.00,352.00L 512.00,352.00L 512.00,480.00L 384.00,480.00 z M 0.00,288.00L0.00,160.00L 128.00,160.00L 128.00,288.00L0.00,288.00 z M 192.00,288.00L 192.00,160.00L 320.00,160.00L 320.00,288.00L 192.00,288.00 z M 384.00,288.00L 384.00,160.00L 512.00,160.00L 512.00,288.00L 384.00,288.00 z M 0.00,96.00L0.00-32.00L 128.00-32.00L 128.00,96.00L0.00,96.00 z M 192.00,96.00L 192.00-32.00L 320.00-32.00L 320.00,96.00L 192.00,96.00 z M 384.00,96.00L 384.00-32.00L 512.00-32.00L 512.00,96.00L 384.00,96.00z" />
+<glyph unicode="&#xe018;" d="M 512.00,387.415C 508.575,380.185 502.201,371.052 492.878,360.017 483.556,348.982 472.045,339.279 458.346,330.907c 0.381-3.044 0.666-5.898 0.856-8.562C 460.679,281.334 450.856,238.784 437.226,203.334 410.808,137.426 370.327,84.382 312.509,48.365 252.214,13.781 181.995,6.425 117.298,12.69 74.347,17.623 32.014,31.649 0.00,58.068 58.553,51.069 113.197,70.988 156.397,103.161 108.409,101.946 73.542,136.66 57.079,176.793c 7.421-1.945 15.184-1.71 22.261-1.142 8.711,0.818 16.98,1.635 25.115,3.425 -30.599,9.872 -57.373,28.021 -71.349,55.367 -8.198,17.327 -11.899,33.827 -11.987,52.513 14.338-7.549 31.585-14.906 47.376-14.27 -23.847,20.201 -42.965,46.02 -46.519,75.63 -2.244,24.689 3.934,47.227 12.843,68.209 35.672-39.204 75.697-71.467 121.864-91.326 31.572-12.929 63.055-19.843 95.607-19.978 -3.758,29.075 -0.836,57.194 12.843,81.052 16.098,25.65 39.586,40.532 65.926,47.946 37.69,9.665 74.451-3.987 97.605-30.252 24.969,2.697 48.888,13.774 67.924,25.115 -8.089-24.495 -23.839-48.85 -46.805-60.504 21.867,4.05 42.732,10.522 62.216,18.836z" />
+<glyph unicode="&#xe017;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m 0.00-34.205c 122.499,0.00 221.795-99.297 221.795-221.795 0.00-122.499 -99.297-221.812 -221.795-221.812 -122.499,0.00 -221.812,99.313 -221.812,221.812 0.00,122.499 99.313,221.795 221.812,221.795 z M 393.547,249.103c 7.368-6.967 7.139-16.959 1.637-24.017 -6.729-7.099 -17.335-7.401 -24.017-1.637 -20.87,18.938 -43.709,36.658 -64.955,56.222 -0.065-0.836 -5.76,3.76 -8.188,3.821 -2.183,0.00 -3.275-2.547 -3.275-7.642 1.072-21.024 -0.49-43.221 1.91-63.591 0.91-7.46 1.365-11.736 1.365-12.827l 24.563-139.736c 1.407-12.832 -5.606-22.417 -16.921-24.563 -11.33-3.082 -22.973,6.688 -24.563,16.921 0.00,0.00 -19.816,112.83 -20.196,114.627 -0.38,1.797 -1.05,11.749 -4.913,12.281 -4.963-1.801 -4.388-10.16 -4.913-12.281 -0.524-2.122 -20.196-114.627 -20.196-114.627 -3.32-11.837 -13.524-18.833 -24.563-16.921 -12.613,3.154 -18.778,13.234 -16.921,24.563l 24.563,140.281c 3.627,25.928 2.729,49.121 2.729,75.326 0.00,5.096 -1.00,7.735 -3.002,7.915 -2.002,0.182 -4.64-1.183 -7.915-4.094l-64.955-55.676c-7.59-5.655 -18.20-4.713 -24.017,1.637 -5.881,8.403 -5.505,17.496 1.637,24.017l 85.151,75.326c 4.004,2.547 7.734,4.276 11.19,5.186 3.458,0.91 7.734,1.365 12.827,1.365l 56.768,0.00c 5.094,0.00 9.37-0.455 12.827-1.365 3.457-0.91 7.187-2.82 11.19-5.731 27.111-23.781 55.895-49.366 85.151-74.78 z M 293.56,378.314c0.00-20.62 -16.716-37.335 -37.335-37.335 -20.62,0.00 -37.335,16.716 -37.335,37.335 0.00,20.62 16.716,37.335 37.335,37.335 20.62,0.00 37.335-16.716 37.335-37.335z" />
+<glyph unicode="&#xe016;" d="M 482.462,253.538 m0.00,0.00,0.00-285.538 -452.924,0.00 0.00,285.538 78.223,0.00 0.00,71.658c 1.089,42.255 17.904,81.493 45.402,109.402 13.857,13.857 30.177,24.889 48.957,33.094 18.781,8.205 38.929,12.308 60.444,12.308 41.857-0.852 80.232-17.872 108.034-44.581 29.35-29.821 45.289-69.229 46.222-107.487l-90.803,0.00c-0.555,17.821 -7.004,30.358 -18.598,42.119 -12.989,12.202 -28.439,18.48 -44.855,18.598 -17.821-0.555 -33.093-7.004 -44.855-18.598 -12.202-12.989 -18.48-28.439 -18.598-44.855l0.00-71.658z" />
+<glyph unicode="&#xe015;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m 3.583-90.65c 47.828,1.937 82.812-39.787 84.523-83.35l-49.751,0.00c-1.851,19.52 -15.669,34.072 -34.772,33.307 -19.103-0.765 -34.347-15.813 -34.756-34.772l0.00-39.246 155.234,0.00 0.00-156.434 -248.138,0.00 0.00,156.434 42.861,0.00 0.00,39.246c 4.044,48.393 36.971,82.878 84.798,84.815z" />
+<glyph unicode="&#xe014;" d="M 256.00-32.00 m0.00,0.00,c-141.384,0.00 -256.00,114.616 -256.00,256.00 0.00,141.384 114.616,256.00 256.00,256.00 141.384,0.00 256.00-114.616 256.00-256.00 0.00-141.384 -114.616-256.00 -256.00-256.00 z m 0.00,456.348c-110.664,0.00 -200.348-89.711 -200.348-200.348 0.00-110.636 89.683-200.348 200.348-200.348 110.664,0.00 200.348,89.711 200.348,200.348 0.00,110.636 -89.683,200.348 -200.348,200.348 z m 50.087-307.478 -100.174,0.00 0.00,113.809 -62.609,0.00 112.696,106.017 112.696-106.017 -62.609,0.00 0.00-113.809z" />
+<glyph unicode="&#xe013;" d="M 400.885,113.756 m0.00,0.00,c-67.132,24.456 -88.592,45.10 -88.592,89.30 0.00,26.526 21.996,43.717 29.494,66.451 7.498,22.734 11.836,49.65 15.442,69.229 3.606,19.579 5.038,27.152 6.999,48.014 2.397,26.036 -15.033,93.249 -108.228,93.249 -93.168,0.00 -110.652-67.214 -108.201-93.249 1.961-20.861 3.401-28.435 6.999-48.014 3.598-19.579 7.894-46.493 15.387-69.229 7.494-22.735 29.522-39.925 29.522-66.451 0.00-44.201 -21.46-64.844 -88.592-89.30 -67.377-24.511 -111.115-48.681 -111.115-65.757 0.00-17.049 0.00-80.00 0.00-80.00l 512.00,0.00c0.00,0.00 0.00,62.952 0.00,80.00 0.00,17.049 -43.765,41.219 -111.115,65.757z" />
+<glyph unicode="&#xe012;" d="M0.00,417.75 m0.00,0.00,0.00-387.50 512.00,0.00 0.00,387.50 z m 62.781-62.813 386.438,0.00 0.00-261.875 -386.438,0.00 z m 135.781-45.594 0.00-174.438L 349.375,222.375z" />
+<glyph unicode="&#xe011;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00 0.00,82.615 114.615-32.00 256.00-32.00 397.385-32.00 512.00,82.615 512.00,224.00 512.00,365.385 397.385,480.00 256.00,480.00 z m -152.625-140.50 305.219,0.00 0.00-231.00 -305.219,0.00 z m 37.438-37.438 0.00-156.125 230.375,0.00 0.00,156.125 z M 221.75,274.875 311.656,223.031 221.75,170.875z" />
+<glyph unicode="&#xe010;" d="M 0.00,459.047 m0.00,0.00,0.00-364.594 105.50,0.00 0.00-105.50 164.469,105.50 242.031,0.00 0.00,364.594 -512.00,0.00 z m 112.25-91.594 206.25,0.00 0.00-63.594 81.25,63.594 0.00-170.00 -81.25,63.594 0.00-63.594 -206.25,0.00 0.00,170.00z" />
+<glyph unicode="&#xe00f;" d="M 473.875,480.00L0.00,5.562L 38.125-32.00L 512.00,441.844L 473.875,480.00 z M 0.00,479.25L0.00,359.219L 120.00,359.219L 120.00,479.219L0.00,479.25 z M 141.406,479.25L 141.406,359.219L 261.406,359.219L 261.406,479.219L 141.406,479.25 z M 0.00,335.594L0.00,215.594L 120.00,215.594L 120.00,335.594L0.00,335.594 z M 141.406,335.594L 141.406,215.594L 261.406,335.594L 141.406,335.594 z M 352.313,208.50L 278.313,141.094L 512.00,141.094L 512.00,208.50L 352.313,208.50 z M 262.313,122.312L 262.313,54.906L 512.00,54.906L 512.00,122.312L 262.313,122.312 z M 262.313,36.125L 262.313-31.25L 512.00-31.25L 512.00,36.125L 262.313,36.125z" />
+<glyph unicode="&#xe00e;" d="M 406.461,344.155 m0.00,0.00,c-52.88,43.701 -123.116-16.02 -139.636-63.864 10.187-0.175 21.842,0.884 30.579-2.436 13.491-7.298 13.679-21.365 12.719-33.286 -6.015-26.379 -24.708-74.378 -48.711-78.207 -5.051-0.541 -10.283,2.255 -15.696,8.389 -20.977,26.277 -18.379,60.845 -23.273,89.843 -4.579,24.261 -8.032,73.225 -36.804,83.89 -31.69,3.87 -59.518-19.742 -79.83-38.427 -12.448-11.546 -25.167-22.551 -38.157-33.015l0.00-2.165c 3.09-3.716 5.595-7.505 8.389-11.095 4.741-4.772 13.393-3.604 18.672-1.894 19.198,4.991 25.946,9.883 36.262-8.389C 146.524,211.47 158.296,164.099 168.592,123.876 175.789,100.934 185.281,71.631 208.372,62.176c 14.267-6.062 38.878,2.084 49.793,8.66 46.711,29.51 82.857,76.727 108.786,122.317 18.93,38.413 65.995,114.836 39.51,151.002 z m 105.539,135.848 0.00-512.00 -512.00,0.00 0.00,512.00z" />
+<glyph unicode="&#xe10e;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,480.00L0.00,480.00 z M 227.281,343.094C 241.778,343.244 255.958,341.637 262.875,341.437C 288.517,340.699 293.046,327.73 292.719,317.062C 292.239,301.439 282.187,235.351 300.813,228.906C 327.953,243.419 346.152,288.494 359.406,317.062C 366.11,331.513 365.05,332.231 380.50,332.25L 441.875,332.344C 456.654,332.362 456.078,332.88 460.813,326.844C 471.825,312.803 426.062,254.398 411.281,238.25C 384.005,208.449 399.919,196.909 404.313,192.812C 424.668,173.833 444.338,154.151 456.563,136.00C 466.281,121.569 462.268,108.133 449.906,107.625L 384.094,104.906C 362.255,104.009 328.296,143.158 322.875,151.687C 318.491,158.723 297.365,167.541 295.375,149.562L 292.594,124.469C 290.573,106.531 277.329,106.95 266.875,106.50C 194.483,103.385 169.83,130.947 133.375,171.625C 106.657,209.411 81.159,247.413 60.031,292.937C 53.707,306.564 50.358,316.561 49.50,327.156C 60.131,335.465 97.446,331.886 122.50,332.437C 129.353,332.588 133.977,328.662 137.594,320.844C 151.708,290.332 167.102,260.369 187.469,233.875C 196.339,225.705 204.18,222.701 208.094,239.312C 210.366,239.522 210.184,267.03 210.313,287.781C 210.401,302.029 208.727,319.117 184.594,327.00C 189.475,339.797 208.643,342.901 227.281,343.094z" />
+<glyph unicode="&#xe00d;" d="M 0.00,290.839 m0.00,0.00, 121.402,0.00 182.631,148.85 0.00-512.00 -182.631,148.85 -121.402,0.00 z m 372.652,24.28c 35.893-35.893 54.191-79.527 54.895-130.903 0.00-49.265 -18.298-91.492 -54.895-126.681l-36.949,38.004c 25.336,25.336 38.004,55.247 38.004,89.732 0.00,35.189 -12.668,65.803 -38.004,91.844z" />
+<glyph unicode="&#xe00c;" d="M 471.632,154.671 m0.00,0.00,q 1.24-1.24 1.24-2.921Q 472.872,150.068 471.632,148.828L 444.19,121.385q-1.24-1.24 -2.833-1.24 -1.416,0.00 -3.01,1.24L 399.218,160.513 360.089,121.385q-1.24-1.24 -2.833-1.24 -1.416,0.00 -3.01,1.24L 326.804,148.828q-1.062,1.062 -1.062,3.01 0.00,1.771 1.062,2.833L 365.932,193.80 326.98,232.929q-1.24,1.062 -1.24,2.833 0.00,1.948 1.24,3.01l 27.266,27.443q 1.24,1.24 3.01,1.24 1.771,0.00 2.833-1.24L 399.218,227.086 438.347,266.214q 1.24,1.24 2.921,1.24 1.683,0.00 2.921-1.24L 471.632,238.771q 1.24-1.24 1.24-2.921 0.00-1.683 -1.24-2.921L 432.503,193.80 z m -471.631,142.623l 117.259,0.00 l 176.399,143.77l0.00-494.528 l-176.399,143.77l-117.259,0.00 L-39.128,297.294 z" />
+<glyph unicode="&#xe00b;" d="M 0.00,314.007 m0.00,0.00, 104.028,0.00 156.495,127.548 0.00-438.728 -156.495,127.548 -104.028,0.00 z m 319.321,20.806c 30.756-30.756 46.436-68.146 47.039-112.169 0.00-42.214 -15.68-78.398 -47.039-108.551l-31.661,32.565c 21.71,21.71 32.565,47.34 32.565,76.89 0.00,30.153 -10.855,56.386 -32.565,78.70l 31.661,32.565 z m 54.276,53.371c 45.23-45.23 67.844-99.807 67.844-163.731 0.00-63.925 -22.615-118.803 -67.844-164.636l-33.47,33.47c 36.184,35.581 54.276,79.152 54.276,130.714 0.00,51.562 -18.092,95.435 -54.276,131.618 z m 49.753,49.753c 27.741-27.741 49.451-60.005 65.131-96.791 15.68-36.787 23.519-75.684 23.519-116.692 0.00-41.008 -7.84-80.056 -23.519-117.145 -15.68-37.088 -37.39-69.503 -65.131-97.244l-32.565,32.565c 50.054,50.054 75.081,110.511 75.081,181.371 0.00,70.86 -25.027,131.317 -75.081,181.371z" />
+<glyph unicode="&#xe0ab;" d="M 288.00,400.00 L 288.00,240.00 L 448.00,400.00 L 448.00,48.00 L 288.00,208.00 L 288.00,48.00 L 112.00,224.00 Z" />
+<glyph unicode="&#xe09a;" d="M 64.00,32.00 L 64.00,416.00 L 128.00,416.00 L 128.00,240.00 L 288.00,400.00 L 288.00,240.00 L 448.00,400.00 L 448.00,48.00 L 288.00,208.00 L 288.00,48.00 L 128.00,208.00 L 128.00,32.00 Z" />
+<glyph unicode="&#xe099;" d="M 448.00,416.00 L 448.00,32.00 L 384.00,32.00 L 384.00,208.00 L 224.00,48.00 L 224.00,208.00 L 64.00,48.00 L 64.00,400.00 L 224.00,240.00 L 224.00,400.00 L 384.00,240.00 L 384.00,416.00 Z" />
+<glyph unicode="&#xe093;" d="M 256.00,48.00 L 256.00,208.00 L 96.00,48.00 L 96.00,400.00 L 256.00,240.00 L 256.00,400.00 L 432.00,224.00 Z" />
+<glyph unicode="&#xe05d;" d="M 96.00,416.00L 416.00,224.00L 96.00,32.00 z" />
+<glyph unicode="&#xe02e;" d="M 128.00,32.00 L 128.00,416.00 L 192.00,416.00 L 192.00,240.00 L 352.00,400.00 L 352.00,48.00 L 192.00,208.00 L 192.00,32.00 Z" />
+<glyph unicode="&#xe02d;" d="M 384.00,416.00 L 384.00,32.00 L 320.00,32.00 L 320.00,208.00 L 160.00,48.00 L 160.00,400.00 L 320.00,240.00 L 320.00,416.00 Z" />
+<glyph unicode="&#xe10d;" d="M 135.731,448.544 m0.00,0.00,0.00-71.366 -135.731,0.00 0.00-207.941 230.92,0.00 0.00,42.676 50.161,0.00 0.00-42.676 230.92,0.00 0.00,207.941 -135.763,0.00 0.00,71.366 z m 36.894-36.894 166.718,0.00 0.00-34.472 -166.718,0.00 z M 0.00,129.187l0.00-129.731 511.999,0.00 0.00,129.731 -230.92,0.00 0.00-41.223 -50.161,0.00 0.00,41.223z" />
+<glyph unicode="&#xe10c;" d="M 437.563,437.719C 371.643,372.439 274.748,332.499 181.406,326.875l-138.625,0.00C 20.959,326.577 1.231,308.013 0.00,283.531l0.00-62.50c 0.298-21.822 18.299-42.112 42.781-43.344l 55.563,0.00c-14.852-50.368 1.115-101.362 18.344-151.406 25.559-24.133 84.006-21.128 103.063,10.281 -40.579,31.899 -60.327,117.738 -11.406,138.906 83.383-9.461 165.988-51.821 229.219-108.625 21.737,0.298 41.509,18.151 42.781,42.50l0.00,102.50C 497.757,216.327 511.184,232.297 512.00,252.125 511.79,270.024 499.441,287.116 480.344,292.687l0.00,102.25C 480.046,416.76 462.045,436.487 437.563,437.719 z m 1.094-55.281 0.00-260.594C 377.552,169.464 302.073,201.41 224.188,215.75l0.00,72.781C 300.614,300.03 375.353,335.276 438.656,382.437z" />
+<glyph unicode="&#xe10b;" d="M 115.95,481.093 m0.00,0.00,0.00-80.215 42.113,0.00 0.00,80.215 z m 242.871,0.00 0.00-80.215 42.113,0.00 0.00,80.215 z m -328.977-38.541 0.00-112.302 457.228,0.00 0.00,112.302 -56.057,0.00 0.00-71.755 -102.275,0.00 0.00,71.755 -140.596,0.00 0.00-71.755 -102.275,0.00 0.00,71.755 z m 0.00-141.787 0.00-331.672 457.228,0.00 0.00,331.672 z m 179.607-76.675c 23.275-0.229 45.294-11.404 54.051-32.212 4.119-12.429 6.318-25.653 1.191-37.225 -6.419-13.349 -19.445-20.338 -32.212-24.817 23.959-6.251 39.743-21.306 39.888-45.779 -0.386-16.786 -8.223-31.643 -20.085-41.361 -12.613-9.971 -27.887-15.565 -42.834-15.667 -42.15,0.00 -63.232,19.014 -63.232,57.028l 37.225,0.00c 0.79-16.004 8.366-28.142 23.939-28.357 19.799,1.349 27.599,14.364 27.762,31.021 -0.008,10.06 -3.659,20.344 -12.408,24.221 -11.287,4.69 -23.878,4.125 -34.875,4.136l0.00,28.953c 17.975-0.376 42.682,2.79 42.865,24.221 -0.699,15.764 -7.165,27.00 -22.467,27.198 -16.30-0.983 -25.244-10.213 -25.412-24.848l-36.63,0.00c 0.795,36.899 31.105,53.322 63.232,53.487 z m 128.439-3.541 32.807,0.00 0.00-189.979 -35.47,0.00 0.00,152.754c-13.591-11.621 -28.639-19.893 -45.184-24.817l0.00,32.493c 19.302,7.484 35.242,17.336 47.847,29.548z" />
+<glyph unicode="&#xe10a;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 166.125,385.469L 192.688,385.469L 192.688,334.875L 166.125,334.875L 166.125,385.469 z M 319.313,385.469L 345.844,385.469L 345.844,334.875L 319.313,334.875L 319.313,385.469 z M 111.813,361.156L 147.156,361.156L 147.156,315.906L 211.656,315.906L 211.656,361.156L 300.313,361.156L 300.313,315.906L 364.844,315.906L 364.844,361.156L 400.188,361.156L 400.188,290.312L 111.813,290.312L 111.813,361.156 z M 111.813,271.719L 400.188,271.719L 400.188,62.531L 111.813,62.531L 111.813,271.719 z M 225.094,223.375C 204.832,223.271 185.72,212.897 185.219,189.625L 208.313,189.625C 208.419,198.855 214.064,204.693 224.344,205.312C 233.994,205.187 238.059,198.098 238.50,188.156C 238.385,174.64 222.805,172.638 211.469,172.875L 211.469,154.625C 218.405,154.618 226.35,154.958 233.469,152.00C 238.987,149.554 241.306,143.064 241.313,136.719C 241.209,126.214 236.268,118.007 223.781,117.156C 213.96,117.292 209.186,124.969 208.688,135.062L 185.219,135.062C 185.219,111.088 198.511,99.094 225.094,99.094C 234.52,99.158 244.139,102.68 252.094,108.969C 259.575,115.098 264.538,124.476 264.781,135.062C 264.69,150.497 254.735,159.995 239.625,163.937C 247.677,166.762 255.889,171.144 259.938,179.562C 263.171,186.861 261.785,195.224 259.188,203.062C 253.665,216.185 239.773,223.23 225.094,223.375 z M 306.094,221.125C 298.144,213.423 288.08,207.22 275.906,202.50L 275.906,182.00C 286.341,185.105 295.835,190.327 304.406,197.656L 304.406,101.312L 326.781,101.312L 326.781,221.125L 306.094,221.125z" />
+<glyph unicode="&#xe0dd;" d="M0.00,480.00 m0.00,0.00,0.00-512.00 399.00,0.00 57.25,0.00 55.75,0.00 0.00,90.625 -55.75,0.00 0.00,49.844 55.75,0.00 0.00,90.625 -55.75,0.00 0.00,49.813 55.75,0.00 0.00,90.625 -55.75,0.00 0.00,49.844 55.75,0.00L 512.00,480.00 456.25,480.00 399.00,480.00 z m 228.125-89.438c 40.869,0.00 74.00-33.131 74.00-74.00 0.00-28.962 -16.636-54.034 -40.875-66.188l 95.875-57.188 0.00-79.531 -258.00,0.00 0.00,79.531L 195.00,250.375c-24.239,12.153 -40.875,37.225 -40.875,66.188 0.00,40.869 33.131,74.00 74.00,74.00z" />
+<glyph unicode="&#xe0dc;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 112.50,367.50L 336.156,367.50L 368.25,367.50L 399.50,367.50L 399.50,316.687L 368.25,316.687L 368.25,288.75L 399.50,288.75L 399.50,237.969L 368.25,237.969L 368.25,210.031L 399.50,210.031L 399.50,159.25L 368.25,159.25L 368.25,131.312L 399.50,131.312L 399.50,80.50L 368.25,80.50L 336.156,80.50L 112.50,80.50L 112.50,367.50 z M 240.375,317.375C 217.466,317.375 198.906,298.784 198.906,275.875C 198.906,259.64 208.225,245.594 221.813,238.781L 168.719,207.00L 168.063,207.00L 168.063,206.719L 168.063,162.156L 312.688,162.156L 312.688,206.719L 312.688,207.00L 312.031,207.00L 258.938,238.781C 272.525,245.594 281.844,259.64 281.844,275.875C 281.844,298.784 263.284,317.375 240.375,317.375z" />
+<glyph unicode="&#xe0db;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m 0.00-74.656 0.00-362.719c-100.165,0.00 -181.375,81.21 -181.375,181.375 0.00,100.165 81.21,181.344 181.375,181.344z" />
+<glyph unicode="&#xe0da;" d="M 258.179,275.20 m0.00,0.00,c-57.832,0.895 -102.009,47.384 -102.40,102.40 0.956,57.316 47.802,101.998 102.40,102.40 57.882-2.189 101.989-46.494 102.40-102.40 -1.138-57.36 -47.747-102.011 -102.40-102.40 z m 82.791-21.243c 72.783-0.85 109.693-64.696 110.026-128.545l0.00-148.698c0.00-5.81 -2.905-8.715 -8.715-8.715l-53.923,0.00c-5.81,0.00 -8.715,2.905 -8.715,8.715l0.00,129.634c-3.364,18.517 -24.499,13.341 -25.055,0.00l0.00-129.634c-0.246-5.309 -4.659-8.658 -9.26-8.715l-180.289,0.00c-5.81,0.00 -8.715,2.905 -8.715,8.715l0.00,129.634c-3.143,18.85 -24.609,13.675 -25.055,0.00l0.00-129.634c-0.246-5.309 -4.659-8.658 -9.26-8.715l-51.745,0.00c-6.173,0.00 -9.26,2.905 -9.26,8.715l0.00,148.698c-0.418,68.042 42.625,128.04 110.57,128.545l 86.604,0.00z" />
+<glyph unicode="&#xe0d9;" d="M 124.00,449.062 m0.00,0.00,0.00-80.00 264.00,0.00 0.00,80.00 -264.00,0.00 z m -70.00-123.375 0.00-80.00 404.00,0.00 0.00,80.00 -404.00,0.00 z m 46.00-123.375 0.00-80.00 312.00,0.00 0.00,80.00 -312.00,0.00 z m -100.00-123.375 0.00-80.00 512.00,0.00 0.00,80.00 -512.00,0.00z" />
+<glyph unicode="&#xe0d8;" d="M 0.00,449.062 m0.00,0.00,0.00-80.00 512.00,0.00 0.00,80.00 -512.00,0.00 z m 0.00-123.375 0.00-80.00 512.00,0.00 0.00,80.00 -512.00,0.00 z m 0.00-123.375 0.00-80.00 512.00,0.00 0.00,80.00 -512.00,0.00 z m 0.00-123.375 0.00-80.00 512.00,0.00 0.00,80.00 -512.00,0.00z" />
+<glyph unicode="&#xe0d7;" d="M 264.00,449.062 m0.00,0.00,0.00-80.00 -264.00,0.00 0.00,80.00 264.00,0.00 z m 140.00-123.375 0.00-80.00 -404.00,0.00 0.00,80.00 404.00,0.00 z m -92.00-123.375 0.00-80.00 -312.00,0.00 0.00,80.00 312.00,0.00 z m 200.00-123.375 0.00-80.00 -512.00,0.00 0.00,80.00 512.00,0.00z" />
+<glyph unicode="&#xe0d6;" d="M 248.00,449.062 m0.00,0.00,0.00-80.00 264.00,0.00 0.00,80.00 -264.00,0.00 z m -140.00-123.375 0.00-80.00 404.00,0.00 0.00,80.00 -404.00,0.00 z m 92.00-123.375 0.00-80.00 312.00,0.00 0.00,80.00 -312.00,0.00 z m -200.00-123.375 0.00-80.00 512.00,0.00 0.00,80.00 -512.00,0.00z" />
+<glyph unicode="&#xe0d5;" d="M 256.00-32.00 m0.00,0.00,-200.00,300.00 107.75,0.00 0.00,212.00 184.50,0.00 0.00-212.00 107.75,0.00 -200.00-300.00z" />
+<glyph unicode="&#xe0d4;" d="M 0.00,224.00 m0.00,0.00, 300.00-200.00 0.00,107.75 212.00,0.00 0.00,184.50 -212.00,0.00 0.00,107.75 -300.00-200.00z" />
+<glyph unicode="&#xe0af;" d="M 512.00,224.00 m0.00,0.00,-300.00,200.00 0.00-107.75 -212.00,0.00 0.00-184.50 212.00,0.00 0.00-107.75 300.00,200.00z" />
+<glyph unicode="&#xe0ae;" d="M 256.00,480.00L 56.00,180.00L 163.75,180.00L 163.75-32.00L 348.25-32.00L 348.25,180.00L 456.00,180.00L 256.00,480.00z" />
+<glyph unicode="&#xe0ad;" d="M 261.544,327.062 m0.00,0.00,c 5.678,47.457 66.141,32.916 66.241-1.629l-3.258-130.309c-5.379-51.733 -57.256-50.389 -59.182,1.086 z m -89.044-2.172c 0.242,45.096 62.443,39.519 66.241,2.715l 4.343-126.508c 0.247-64.67 -57.372-45.977 -59.182-4.887 z m -21.175-23.347 10.859-106.962c 3.424-42.552 -40.459-55.808 -51.037-16.831l-18.46,110.762c-6.375,49.231 52.421,52.317 58.639,13.031 z M 485.241,293.128C 507.473,276.673 504.583,248.334 483.07,235.302 391.425,195.438 393.266,78.531 326.428,27.894 318.644,22.103 307.332,19.208 292.493,19.208l-179.718,0.00c-33.644,2.052 -48.712,32.591 -53.753,59.725L 0.384,409.048c-4.911,40.641 38.793,38.676 48.323,10.316l 27.148-93.931c-5.519-10.452 -7.568-21.961 -6.516-33.12 5.449-34.948 11.526-69.881 17.375-104.79 2.895-17.375 8.507-31.129 16.831-41.265 8.325-10.136 19.366-15.202 33.12-15.202 15.439-0.228 30.379,7.353 38.549,18.46 21.769-25.741 61.776-24.544 79.814,2.715 18.555-25.241 53.232-28.386 74.114-7.058 22.045,25.657 17.883,58.652 18.732,91.759 12.22-4.293 23.592,5.062 30.948,11.945 21.964,20.52 76.445,63.252 106.419,44.251z" />
+<glyph unicode="&#xe0ac;" d="M 209.003,467.474 m0.00,0.00,0.00-189.274L 29.027,336.683 0.00,247.338 179.975,188.855 68.73,35.735 144.769-19.475 256.015,133.615 367.231-19.475 443.24,35.735 331.994,188.855 512.00,247.338l-29.027,89.345 -180.006-58.483 0.00,189.274 -93.964,0.00z" />
+<glyph unicode="&#xe0aa;" d="M 68.312,81.853 m0.00,0.00,c 91.082-91.082 238.755-91.082 329.837,0.00 91.082,91.082 91.082,238.755 0.00,329.837 -91.082,91.082 -238.755,91.082 -329.837,0.00 -91.082-91.082 -91.082-238.755 0.00-329.837 z m 63.555,22.326 243.954,243.954c 48.69-68.313 42.386-163.762 -18.903-225.051 -61.289-61.289 -156.738-67.594 -225.051-18.903 z M 90.637,145.408C 41.948,213.721 48.251,309.169 109.541,370.459 170.831,431.749 266.279,438.052 334.592,389.363L 90.637,145.408z" />
+<glyph unicode="&#xe0d3;" d="M0.00,445.469L0.00,2.531L 42.781,2.531L 42.781,445.469L0.00,445.469 z M 63.063,445.469L 63.063,2.531L 73.344,2.531L 73.344,445.469L 63.063,445.469 z M 98.906,445.469L 98.906,2.531L 131.406,2.531L 131.406,445.469L 98.906,445.469 z M 146.188,445.469L 146.188,2.531L 160.063,2.531L 160.063,445.469L 146.188,445.469 z M 198.625,445.469L 198.625,2.531L 219.75,2.531L 219.75,445.469L 198.625,445.469 z M 228.313,445.469L 228.313,2.531L 236.563,2.531L 236.563,445.469L 228.313,445.469 z M 258.688,445.469L 258.688,2.531L 268.938,2.531L 268.938,445.469L 258.688,445.469 z M 281.688,445.469L 281.688,2.531L 324.188,2.531L 324.188,445.469L 281.688,445.469 z M 339.188,445.469L 339.188,2.531L 360.594,2.531L 360.594,445.469L 339.188,445.469 z M 391.438,445.469L 391.438,2.531L 396.188,2.531L 396.188,445.469L 391.438,445.469 z M 403.594,445.469L 403.594,2.531L 417.875,2.531L 417.875,445.469L 403.594,445.469 z M 438.656,445.469L 438.656,2.531L 448.938,2.531L 448.938,445.469L 438.656,445.469 z M 469.50,445.469L 469.50,2.531L 512.00,2.531L 512.00,445.469L 469.50,445.469z" />
+<glyph unicode="&#xe0d2;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,480.00L0.00,480.00 z M 79.563,268.437L 209.813,268.437C 223.137,268.344 237.143,263.219 247.875,253.344C 257.754,243.59 263.557,229.602 263.844,214.625C 263.795,203.124 261.604,189.871 253.969,179.312C 248.633,172.13 240.279,166.699 231.063,163.594L 231.063,162.375C 240.769,159.948 250.337,154.762 257.156,146.187C 265.267,135.698 268.042,121.549 268.281,107.625C 268.185,92.853 263.07,77.033 251.625,65.312C 241.452,55.317 226.845,49.596 211.469,49.281L 79.563,49.281L 79.563,268.437 z M 307.813,268.00L 404.688,268.00L 404.688,232.062L 307.813,232.062L 307.813,268.00 z M 354.188,221.312C 367.704,221.312 379.695,219.557 390.156,216.031C 400.71,212.609 409.591,207.259 416.813,200.00C 424.033,192.845 429.484,183.721 433.188,172.625C 438.072,158.101 438.998,139.506 438.906,122.531L 326.281,122.531C 326.281,110.917 328.59,101.898 333.219,95.469C 337.94,89.143 345.667,86.00 356.406,86.00C 366.609,86.048 378.56,89.32 382.50,100.781C 383.518,103.788 384.031,106.984 384.031,110.406L 438.906,110.406C 438.792,92.968 433.178,75.649 418.469,62.812C 402.22,49.596 379.508,45.825 357.656,45.406C 344.14,45.406 331.924,47.109 321.00,50.531C 310.168,54.057 300.966,59.46 293.375,66.719C 285.784,73.978 279.948,83.102 275.875,94.094C 271.802,105.189 269.75,118.298 269.75,133.437C 269.75,148.163 271.738,161.008 275.719,172.00C 279.70,182.992 285.343,192.116 292.656,199.375C 300.062,206.737 308.944,212.245 319.313,215.875C 329.774,219.504 341.412,221.312 354.188,221.312 z M 142.344,220.375L 142.344,183.062L 185.531,183.062C 189.424,183.093 193.129,184.875 195.938,188.031C 198.665,191.353 200.003,195.729 200.094,200.312L 200.094,203.437C 200.065,207.574 198.476,211.846 195.781,215.406C 193.332,218.299 189.66,220.166 185.531,220.375L 142.344,220.375 z M 356.406,180.875C 346.871,180.875 339.753,178.331 335.031,173.25C 330.402,168.169 327.581,161.273 326.563,152.562L 381.813,152.562C 381.812,161.377 379.60,168.272 375.156,173.25C 370.712,178.331 364.46,180.875 356.406,180.875 z M 142.344,137.781L 142.344,100.312L 190.094,100.312C 193.943,100.342 197.628,102.109 200.50,105.125C 203.215,108.431 204.619,112.828 204.688,117.406L 204.688,120.687C 204.662,124.861 203.31,129.214 200.50,132.812C 198.034,135.722 194.215,137.545 190.094,137.781L 142.344,137.781z" />
+<glyph unicode="&#xe0d1;" d="M 221.761,480.00L 221.761,448.471C 152.171,433.205 100.016,371.342 99.696,297.245L 99.696,161.285L-0.779,74.394L-0.779,50.747L 99.696,50.747L 410.747,50.747L 511.221,50.747L 511.221,74.394L 410.747,161.285L 410.747,297.245C 410.427,371.342 358.271,433.205 288.682,448.471L 288.682,480.00L 221.761,480.00 z M 255.221,44.174C 234.613,44.174 217.898,27.49 217.898,6.881C 217.898-13.727 234.613-30.442 255.221-30.442C 275.83-30.442 292.545-13.727 292.545,6.881C 292.545,27.49 275.83,44.174 255.221,44.174z" />
+<glyph unicode="&#xe0d0;" d="M 160.348,480.00 m0.00,0.00,c-27.387,0.00 -49.588-22.201 -49.588-49.588 0.00-27.387 22.201-49.588 49.588-49.588 27.387,0.00 49.588,22.201 49.588,49.588 0.00,27.387 -22.201,49.588 -49.588,49.588 z m -41.207-124.714 -53.288-71.947c-2.131-2.842 -3.194-5.848 -3.194-9.045l-6.388-59.155c-2.883-25.808 34.024-31.771 38.362-3.731l 5.329,54.886 13.852,18.643 0.537-77.261 -26.106-93.769 -66.603-84.724c-19.365-30.142 20.659-52.587 41.018-28.78l 69.275,88.993c 1.861,2.505 3.013,5.855 4.253,9.045l 20.794,73.545 46.885-52.751 25.569-119.369c 7.058-31.866 56.074-20.892 50.094,9.599l-27.182,124.145c-0.648,3.198 -1.35,6.744 -4.253,9.06l-57.542,65.544 0.00,57.021 0.00,23.972 22.375-28.241c 2.487-3.197 6.222-5.504 11.195-6.925l 52.751-10.12 195.539-257.366c 3.491-4.855 13.373-0.018 9.599,6.388L 299.783,243.38c 21.429,7.184 9.862,31.592 -4.27,34.107l-56.482,11.18 -58.08,73.007c-18.396,18.269 -49.16,13.779 -61.811-6.388z" />
+<glyph unicode="&#xe0cf;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,480.00L0.00,480.00 z M 273.813,386.219C 322.949,382.283 351.51,350.819 354.906,310.594C 357.545,289.892 356.825,274.523 353.813,263.219C 381.841,262.30 414.599,249.847 416.688,204.625L 416.688,160.125C 413.781,121.251 399.827,73.219 328.25,63.031L 208.469,62.594C 135.861,61.275 95.874,92.942 95.50,160.687L 96.438,310.844C 99.563,354.522 134.953,380.13 176.25,385.812L 273.813,386.219 z M 192.219,325.469C 150.393,318.679 148.326,271.316 192.219,265.469L 271.625,265.469C 313.45,272.259 315.518,319.621 271.625,325.469L 192.219,325.469 z M 174.219,194.469C 131.16,187.841 130.49,134.062 175.719,128.50L 321.563,128.00C 364.255,134.571 364.135,188.28 320.031,193.969L 174.219,194.469z" />
+<glyph unicode="&#xe0ce;" d="M 0.002-27.125 m0.00,0.00,0.00,40.705 64.253,0.00 0.00,420.836 -64.253,0.00 0.00,40.705 297.714,0.00c 61.225-0.001 107.198-10.317 137.924-30.949 30.724-20.632 46.085-51.693 46.087-93.183 -0.001-29.828 -10.653-53.488 -31.959-70.98 -21.082-17.492 -52.479-28.483 -94.193-32.968 50.46-4.711 89.146-18.166 116.058-40.369 26.912-22.203 40.367-51.693 40.369-88.473 -0.001-49.787 -18.839-86.454 -56.514-110.002 -37.453-23.548 -96.211-35.322 -176.274-35.322l-279.211,0.00m 193.766,292.668 44.068,0.00c 38.574,0.00 67.167,6.951 85.782,20.856 18.614,14.129 27.921,35.658 27.921,64.589 0.00,29.154 -9.084,50.348 -27.248,63.579 -17.942,13.231 -46.761,19.847 -86.454,19.847l-44.068,0.00 0.00-168.873m0.00-251.963 48.106,0.00c 42.835,0.00 74.568,8.522 95.20,25.567 20.632,17.045 30.949,43.395 30.949,79.055 0.00,35.882 -10.429,62.682 -31.285,80.40 -20.856,17.716 -52.479,26.576 -94.864,26.576l-48.106,0.00 0.00-211.596" />
+<glyph unicode="&#xe0f5;" d="M 189.435,475.419 m0.00,0.00,c-31.746,16.71 -94.311-15.577 -112.283-44.001 -8.008-12.719 -7.441-21.885 -7.441-27.086l0.00-278.21 234.624-145.994 44.121,24.091 0.00,270.944L 107.559,413.472c 12.927,16.269 42.001,36.109 63.801,28.141l 214.575-114.769 0.00-301.835 44.233,24.134 0.00,301.823z" />
+<glyph unicode="&#xe0f4;" d="M 100.00,480.00L 100.00,16.00L 100.00-32.00L 256.00,124.00L 412.00-32.00L 412.00,16.00L 412.00,480.00L 100.00,480.00z" />
+<glyph unicode="&#xe0f3;" d="M 100.00,480.00L 100.00,16.00L 100.00-32.00L 256.00,124.00L 412.00-32.00L 412.00,16.00L 412.00,480.00L 100.00,480.00 z M 132.00,448.00L 380.00,448.00L 380.00,48.00L 256.00,172.00L 132.00,48.00L 132.00,448.00z" />
+<glyph unicode="&#xe0f2;" d="M 217.688,31.581 m0.00,0.00,c0.00-35.115 -28.466-63.581 -63.581-63.581 -35.115,0.00 -63.581,28.466 -63.581,63.581 0.00,35.115 28.466,63.581 63.581,63.581 35.115,0.00 63.581-28.466 63.581-63.581 z m 0.00,192.419c0.00-35.115 -28.466-63.581 -63.581-63.581 -35.115,0.00 -63.581,28.466 -63.581,63.581 0.00,35.115 28.466,63.581 63.581,63.581 35.115,0.00 63.581-28.466 63.581-63.581 z m 0.00,192.419c0.00-35.115 -28.466-63.581 -63.581-63.581 -35.115,0.00 -63.581,28.466 -63.581,63.581 0.00,35.115 28.466,63.581 63.581,63.581 35.115,0.00 63.581-28.466 63.581-63.581 z M 421.474,31.581c0.00-35.115 -28.466-63.581 -63.581-63.581 -35.115,0.00 -63.581,28.466 -63.581,63.581 0.00,35.115 28.466,63.581 63.581,63.581 35.115,0.00 63.581-28.466 63.581-63.581 z m 0.00,192.419c0.00-35.115 -28.466-63.581 -63.581-63.581 -35.115,0.00 -63.581,28.466 -63.581,63.581 0.00,35.115 28.466,63.581 63.581,63.581 35.115,0.00 63.581-28.466 63.581-63.581 z m 0.00,192.419c0.00-35.115 -28.466-63.581 -63.581-63.581 -35.115,0.00 -63.581,28.466 -63.581,63.581 0.00,35.115 28.466,63.581 63.581,63.581 35.115,0.00 63.581-28.466 63.581-63.581z" />
+<glyph unicode="&#xe0a9;" d="M 166.712,416.78 m0.00,0.00,-16.109-64.781 -150.603,0.00 0.00-320.781 512.00,0.00 0.00,320.781 -143.578,0.00 -16.109,64.781 -185.60,0.00 z m 90.599-64.656c 79.529,0.00 143.984-64.455 143.984-143.984 0.00-79.529 -64.456-143.984 -143.984-143.984 -79.529,0.00 -143.984,64.456 -143.984,143.984 0.00,79.529 64.455,143.984 143.984,143.984 z m 168.835-31.344 72.585,0.00 0.00-42.146 -72.585,0.00 0.00,42.146 z m -168.835-11.177c-56.037,0.00 -101.463-45.427 -101.463-101.463 0.00-56.037 45.427-101.463 101.463-101.463 56.037,0.00 101.463,45.427 101.463,101.463 0.00,56.037 -45.427,101.463 -101.463,101.463z" />
+<glyph unicode="&#xe0a8;" d="M 256.00,437.531L0.00,387.531L0.00,60.469L 256.00,10.469L 512.00,60.469L 512.00,387.531L 256.00,437.531 z M 171.125,323.375C 196.102,323.375 215.459,315.374 229.156,299.375C 230.077,298.109 230.985,296.901 231.906,295.75C 238.812,285.621 242.962,272.304 244.344,255.844L 214.656,255.844C 211.548,278.634 200.079,291.838 180.281,295.406L 170.781,296.094C 148.681,296.094 133.506,284.284 125.219,260.687C 121.42,249.868 119.50,237.036 119.50,222.187C 119.50,189.958 128.853,168.486 147.50,157.781C 154.291,153.868 162.292,151.906 171.50,151.906C 196.708,151.906 211.769,166.772 216.719,196.469L 246.406,196.469C 243.874,164.125 230.361,142.538 205.844,131.719C 195.714,127.00 184.018,124.625 170.781,124.625C 140.394,124.625 117.899,137.003 103.281,161.75C 93.612,178.21 88.781,198.361 88.781,222.187C 88.781,259.941 99.61,287.907 121.25,306.094C 135.178,317.604 151.787,323.375 171.125,323.375 z M 347.938,323.375C 372.915,323.375 392.24,315.374 405.938,299.375C 406.858,298.109 407.798,296.901 408.719,295.75C 415.625,285.621 419.775,272.304 421.156,255.844L 391.438,255.844C 388.329,278.634 376.892,291.838 357.094,295.406L 347.594,296.094C 325.494,296.094 310.287,284.284 302.00,260.687C 298.202,249.868 296.313,237.036 296.313,222.187C 296.313,189.958 305.634,168.486 324.281,157.781C 331.072,153.868 339.073,151.906 348.281,151.906C 373.489,151.906 388.582,166.772 393.531,196.469L 423.219,196.469C 420.686,164.125 407.173,142.538 382.656,131.719C 372.527,127.00 360.831,124.625 347.594,124.625C 317.206,124.625 294.712,137.003 280.094,161.75C 270.425,178.21 265.594,198.361 265.594,222.187C 265.594,259.941 276.392,287.907 298.031,306.094C 311.959,317.604 328.60,323.375 347.938,323.375z" />
+<glyph unicode="&#xe0a7;" d="M 465.555,77.323 m0.00,0.00,-85.808-10.332 -26.897-82.136 -77.772,37.70 -67.033-54.556 -45.044,73.762 -85.887-9.655 1.985,86.405 -77.473,38.312 48.384,71.615 -44.461,74.115 79.422,34.088 2.667,86.387 85.243-14.262 48.948,71.232 64.001-58.084 79.688,33.461 22.438-83.465 85.128-14.934 -26.248-82.346 63.541-58.587 -66.601-55.083z" />
+<glyph unicode="&#xe0a6;" d="M 0.00,480.00L 0.00,149.031L 0.00-32.00L 181.031-32.00L 512.00-32.00L 512.00,298.969L 428.00,214.969L 428.00,52.00L 265.031,52.00L 84.00,52.00L 84.00,233.031L 84.00,396.00L 246.969,396.00L 330.969,480.00L 0.00,480.00 z M 439.469,473.531L 254.219,288.25L 188.031,354.437L 120.156,286.531L 254.219,152.50L 322.094,220.375L 507.344,405.656L 439.469,473.531z" />
+<glyph unicode="&#xe0a5;" d="M 0.00,480.00L 0.00-32.00L 512.00-32.00L 512.00,480.00L 0.00,480.00 z M 84.00,396.00L 428.00,396.00L 428.00,52.00L 84.00,52.00L 84.00,396.00z" />
+<glyph unicode="&#xe0a4;" d="M 256.00,57.872 332.255,134.127 512.00,313.872 435.744,390.127 256.00,210.383 76.255,390.127l-76.255-76.255 179.745-179.745 76.255-76.255z" />
+<glyph unicode="&#xe0cd;" d="M 89.872,224.00 m0.00,0.00, 76.255-76.255 179.745-179.745 76.255,76.255L 242.383,224.00 422.127,403.744 345.872,480.00 166.128,300.255 89.872,224.00z" />
+<glyph unicode="&#xe0cc;" d="M 422.128,224.00 345.872,300.255 166.128,480.00l-76.255-76.255 179.745-179.745 -179.745-179.745 76.255-76.255 179.745,179.745 76.255,76.255z" />
+<glyph unicode="&#xe0cb;" d="M 256.00,390.129 179.745,313.873 0.00,134.129 76.255,57.873 256.00,237.618 435.744,57.873 512.00,134.129 332.255,313.873 256.00,390.129z" horiz-adv-x="511" />
+<glyph unicode="&#xe0ca;" d="M 336.774,253.118 m0.00,0.00,c 66.564,0.47 87.361-49.915 87.729-100.567l0.00-176.528c-0.208-3.991 -3.098-7.957 -6.954-8.024l-46.004,0.00c-4.239,0.40 -7.434,4.223 -7.489,8.024l0.00,157.805c-2.744,19.603 -24.065,14.518 -24.607,0.00l0.00-157.805c-0.187-4.389 -3.496-7.966 -7.489-8.024l-149.781,0.00c-4.508,0.252 -7.439,4.083 -7.489,8.024l0.00,157.805c-2.744,19.603 -24.065,14.518 -24.607,0.00l0.00-157.805c-0.187-4.389 -3.496-7.966 -7.489-8.024l-47.609,0.00c-4.239,0.40 -7.434,4.223 -7.489,8.024l0.00,176.528c-2.033,64.07 33.795,99.452 88.264,100.567 z M 257.95,480.00c-57.76,0.00 -104.594-47.069 -104.594-105.145 0.00-58.076 46.834-105.161 104.594-105.161 57.76,0.00 104.578,47.085 104.578,105.161 0.00,58.076 -46.818,105.145 -104.578,105.145 z m -59.891-122.634 119.198,0.00c0.00-32.915 -26.684-59.599 -59.599-59.599 -32.915,0.00 -59.599,26.684 -59.599,59.599z" />
+<glyph unicode="&#xe0c9;" d="M 512.00,224.00 m0.00,0.00,c0.00,141.385 -114.615,256.00 -256.00,256.00 -141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 z M 385.219,252.437 256.00,58.593 126.781,252.437l 69.625,0.00 0.00,136.969 119.188,0.00 0.00-136.969 69.625,0.00z" />
+<glyph unicode="&#xe0c8;" d="M 256.00-32.00 m0.00,0.00,c 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 -141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 z M 284.437,94.781 90.594,224.00 284.437,353.218l0.00-69.625 136.969,0.00 0.00-119.188 -136.969,0.00 0.00-69.625z" />
+<glyph unicode="&#xe0f1;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 227.563,353.219L 421.406,224.00L 227.563,94.781L 227.563,164.406L 90.594,164.406L 90.594,283.594L 227.563,283.594L 227.563,353.219z" />
+<glyph unicode="&#xe0f0;" d="M 512.00,224.00 m0.00,0.00,c0.00-141.385 -114.615-256.00 -256.00-256.00 -141.385,0.00 -256.00,114.615 -256.00,256.00 0.00,141.385 114.615,256.00 256.00,256.00 141.385,0.00 256.00-114.615 256.00-256.00 z M 385.219,195.562 256.00,389.406 126.781,195.562l 69.625,0.00 0.00-136.969 119.188,0.00 0.00,136.969 69.625,0.00z" />
+<glyph unicode="&#xe0ef;" d="M 368.642,264.415 m0.00,0.00,c 70.413,6.934 109.816-86.793 55.699-134.341l-405.701,0.00C -33.541,218.752 30.839,336.769 124.985,313.868c 75.476,122.847 215.274,57.028 243.657-49.454z" />
+<glyph unicode="&#xe0ee;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 258.281,346.906C 306.341,347.955 353.941,308.596 367.719,256.906C 422.408,262.292 453.001,189.493 410.969,152.562L 95.875,152.562C 55.346,221.438 105.346,313.10 178.469,295.312C 200.452,331.093 229.445,346.277 258.281,346.906z" />
+<glyph unicode="&#xe109;" d="M 216.00,480.00 m0.00,0.00,-7.781-77.25c-15.899-4.238 -30.965-10.50 -44.875-18.563L 103.25,433.312 46.688,376.75 95.813,316.625C 87.75,302.711 81.455,287.654 77.219,271.75L0.00,264.00l0.00-80.00 77.25-7.781c 4.236-15.89 10.506-30.941 18.563-44.844l-49.125-60.125 56.563-56.563 60.125,49.125c 13.903-8.056 28.953-14.327 44.844-18.563L 216.00-32.00l 80.00,0.00 7.75,77.219c 15.904,4.236 30.961,10.531 44.875,18.594l 60.125-49.125 56.563,56.563 -49.125,60.094c 8.063,13.91 14.324,28.976 18.563,44.875L 512.00,184.00l0.00,80.00 -77.219,7.75C 430.543,287.663 424.257,302.736 416.188,316.656L 465.313,376.75 408.75,433.312 348.656,384.187C 334.736,392.257 319.663,398.543 303.75,402.781L 296.00,480.00 z m 40.00-182.00c 40.869,0.00 74.00-33.131 74.00-74.00 0.00-40.869 -33.131-74.00 -74.00-74.00 -40.869,0.00 -74.00,33.131 -74.00,74.00 0.00,40.869 33.131,74.00 74.00,74.00z" />
+<glyph unicode="&#xe108;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 231.625,380.00L 280.375,380.00L 285.094,332.937C 294.791,330.355 303.985,326.542 312.469,321.625L 349.094,351.562L 383.563,317.094L 353.625,280.469C 358.542,271.985 362.355,262.791 364.938,253.094L 412.00,248.375L 412.00,199.625L 364.938,194.875C 362.355,185.186 358.539,176.008 353.625,167.531L 383.563,130.906L 349.094,96.437L 312.438,126.375C 303.958,121.462 294.786,117.644 285.094,115.062L 280.375,68.00L 231.625,68.00L 226.875,115.062C 217.191,117.644 208.035,121.465 199.563,126.375L 162.906,96.437L 128.438,130.906L 158.375,167.562C 153.465,176.035 149.644,185.191 147.063,194.875L 100.00,199.625L 100.00,248.375L 147.063,253.094C 149.644,262.786 153.462,271.958 158.375,280.437L 128.438,317.094L 162.906,351.562L 199.531,321.625C 208.008,326.539 217.186,330.355 226.875,332.937L 231.625,380.00 z M 256.00,269.094C 231.094,269.094 210.906,248.906 210.906,224.00C 210.906,199.094 231.094,178.906 256.00,178.906C 280.906,178.906 301.094,199.094 301.094,224.00C 301.094,248.906 280.906,269.094 256.00,269.094z" />
+<glyph unicode="&#xe107;" d="M 388.326,441.122 m0.00,0.00,-7.217-34.583c-7.398-1.162 -14.524-3.303 -21.203-6.291l-24.843,25.099 -28.292-22.895 19.351-29.569c-4.311-5.915 -7.832-12.417 -10.506-19.415l-35.349,0.16 -3.80-36.211 34.583-7.217c 1.162-7.394 3.305-14.463 6.291-21.139l-25.099-24.907 22.895-28.292 29.569,19.383c 5.91-4.308 12.424-7.865 19.415-10.538l-0.16-35.317 36.211-3.80 7.185,34.583c 7.40,1.161 14.522,3.271 21.203,6.259l 24.875-25.099 28.292,22.927 -19.383,29.537c 4.311,5.913 7.863,12.42 10.538,19.415l 35.317-0.128 3.80,36.211 -34.583,7.153c-1.162,7.404 -3.268,14.55 -6.259,21.235l 25.099,24.843 -22.927,28.292 -29.537-19.351c-5.917,4.314 -12.445,7.863 -19.447,10.538l 0.16,35.317 -36.179,3.80 z m 6.003-84.109c 1.138-0.004 2.292-0.038 3.449-0.16 18.499-1.943 31.896-18.511 29.952-37.009 -1.943-18.499 -18.511-31.927 -37.009-29.984 -18.499,1.943 -31.927,18.511 -29.984,37.009 1.822,17.343 16.523,30.203 33.593,30.144 z m -259.831-2.97 -4.854-48.09c-9.901-2.639 -19.279-6.539 -27.941-11.559l-37.425,30.591 -35.221-35.221 30.591-37.456c-5.021-8.665 -8.922-18.037 -11.559-27.941l-48.09-4.822 0.00-49.814 48.09-4.854c 2.638-9.895 6.543-19.251 11.559-27.909l-30.591-37.456 35.221-35.221 37.456,30.591c 8.658-5.017 18.013-8.922 27.909-11.559l 4.854-48.09 49.814,0.00 4.822,48.09c 9.904,2.638 19.276,6.539 27.941,11.559l 37.456-30.591 35.221,35.221 -30.591,37.425c 5.021,8.662 8.92,18.04 11.559,27.941l 48.09,4.854 0.00,49.814 -48.09,4.822c-2.639,9.909 -6.535,19.304 -11.559,27.973l 30.591,37.425 -35.221,35.221 -37.425-30.591c-8.669,5.025 -18.063,8.92 -27.973,11.559l-4.822,48.09 -49.814,0.00 z m 24.907-113.327c 25.45,0.00 46.078-20.628 46.078-46.078 0.00-25.45 -20.628-46.078 -46.078-46.078 -25.45,0.00 -46.078,20.628 -46.078,46.078 0.00,25.45 20.628,46.078 46.078,46.078 z m 211.487-61.533 -5.077-25.29c-5.20-0.85 -10.186-2.412 -14.88-4.598l-17.499,18.361 -19.862-16.764 13.603-21.618c-3.03-4.327 -5.529-9.091 -7.408-14.21l-24.811,0.128 -2.682-26.504 24.30-5.269c 0.817-5.409 2.308-10.603 4.407-15.487l-17.627-18.201 16.094-20.692 20.788,14.178c 4.154-3.151 8.722-5.74 13.635-7.696l-0.096-25.865 25.45-2.778 5.045,25.322c 5.201,0.85 10.185,2.38 14.88,4.566l 17.499-18.361 19.894,16.764 -13.635,21.618c 3.03,4.326 5.529,9.092 7.408,14.21l 24.843-0.096 2.65,26.472 -24.30,5.269c-0.817,5.417 -2.305,10.629 -4.407,15.519l 17.627,18.169 -16.094,20.724 -20.756-14.178c-4.159,3.156 -8.746,5.739 -13.667,7.696l 0.128,25.833 -25.45,2.778 z m 4.215-61.501c 0.80-0.003 1.614-0.039 2.427-0.128 13.001-1.422 22.409-13.545 21.043-27.078 -1.366-13.533 -12.991-23.359 -25.993-21.937 -13.001,1.422 -22.441,13.545 -21.075,27.078 1.28,12.688 11.601,22.108 23.598,22.065z" />
+<glyph unicode="&#xe106;" d="M 0.00,459.047 m0.00,0.00,0.00-364.594 105.50,0.00 0.00-105.50 164.469,105.50 242.031,0.00 0.00,364.594 -512.00,0.00z" />
+<glyph unicode="&#xe0a3;" d="M 0.00,454.182 m0.00,0.00,0.00-311.151 90.054,0.00 0.00-90.024 140.343,90.024 206.537,0.00 0.00,311.151 -436.933,0.00 z m 457.489-68.397 0.00-39.154 15.356,0.00 0.00-221.893 -55.947,0.00 -19.577,0.00 0.00-19.577 0.00-39.735 -87.607,56.192 -4.833,3.12 -5.751,0.00 -60.291,0.00 -61.025-39.154 115.535,0.00 112.966-72.435 30.161-19.332 0.00,35.789 0.00,55.978 55.947,0.00 19.577,0.00 0.00,19.577 0.00,261.047 0.00,19.577 -19.577,0.00 -34.933,0.00z" />
+<glyph unicode="&#xe0a2;" d="M 68.312,81.852 m0.00,0.00,c 91.082-91.082 238.755-91.082 329.837,0.00 91.082,91.082 91.082,238.755 0.00,329.837 -91.082,91.082 -238.755,91.082 -329.837,0.00 -91.082-91.082 -91.082-238.755 0.00-329.837 z m 22.769,22.769c-78.507,78.507 -78.507,205.791 0.00,284.299 78.507,78.507 205.791,78.507 284.299,0.00 78.507-78.507 78.507-205.791 0.00-284.299 -78.507-78.507 -205.791-78.507 -284.299,0.00 z m 22.749,12.16 154.751,94.638 94.638,154.751 -10.589,10.589 -154.751-94.638 -94.638-154.751 10.589-10.589z" />
+<glyph unicode="&#xe0a1;" d="M 68.312,81.852 m0.00,0.00,c 91.082-91.082 238.755-91.082 329.837,0.00 91.082,91.082 91.082,238.755 0.00,329.837 -91.082,91.082 -238.755,91.082 -329.837,0.00 -91.082-91.082 -91.082-238.755 0.00-329.837 z m 36.901,25.507 -11.374,11.374 101.503,165.925 165.925,101.503 11.374-11.374 -101.503-165.925 -165.925-101.503z" />
+<glyph unicode="&#xe0a0;" d="M0.00,394.00L0.00,54.00L 512.00,54.00L 512.00,394.00L0.00,394.00 z M 32.00,362.00L 480.00,362.00L 480.00,311.437L 32.00,311.437L 32.00,362.00 z M 32.00,237.719L 480.00,237.719L 480.00,86.00L 32.00,86.00L 32.00,237.719 z M 73.313,141.125C 70.044,141.125 67.544,139.841 65.813,137.25C 64.094,134.672 63.25,130.922 63.25,126.00C 63.25,121.091 64.094,117.341 65.813,114.75C 67.544,112.172 70.044,110.875 73.313,110.875C 76.581,110.875 79.094,112.172 80.813,114.75C 82.544,117.341 83.406,121.091 83.406,126.00C 83.406,130.922 82.544,134.672 80.813,137.25C 79.094,139.841 76.581,141.125 73.313,141.125 z M 98.781,141.125C 95.513,141.125 93.013,139.841 91.281,137.25C 89.563,134.672 88.719,130.922 88.719,126.00C 88.719,121.091 89.563,117.341 91.281,114.75C 93.013,112.172 95.513,110.875 98.781,110.875C 102.049,110.875 104.563,112.172 106.281,114.75C 108.013,117.341 108.875,121.091 108.875,126.00C 108.875,130.922 108.013,134.672 106.281,137.25C 104.563,139.841 102.049,141.125 98.781,141.125 z M 124.25,141.125C 120.982,141.125 118.482,139.841 116.75,137.25C 115.031,134.672 114.188,130.922 114.188,126.00C 114.188,121.091 115.031,117.341 116.75,114.75C 118.482,112.172 120.982,110.875 124.25,110.875C 127.518,110.875 130.031,112.172 131.75,114.75C 133.482,117.341 134.344,121.091 134.344,126.00C 134.344,130.922 133.482,134.672 131.75,137.25C 130.031,139.841 127.518,141.125 124.25,141.125 z M 149.719,141.125C 146.451,141.125 143.951,139.841 142.219,137.25C 140.50,134.672 139.656,130.922 139.656,126.00C 139.656,121.091 140.50,117.341 142.219,114.75C 143.951,112.172 146.451,110.875 149.719,110.875C 152.987,110.875 155.50,112.172 157.219,114.75C 158.951,117.341 159.813,121.091 159.813,126.00C 159.813,130.922 158.951,134.672 157.219,137.25C 155.50,139.841 152.987,141.125 149.719,141.125 z M 189.656,141.125C 186.388,141.125 183.888,139.841 182.156,137.25C 180.438,134.672 179.563,130.922 179.563,126.00C 179.563,121.091 180.438,117.341 182.156,114.75C 183.888,112.172 186.388,110.875 189.656,110.875C 192.924,110.875 195.406,112.172 197.125,114.75C 198.857,117.341 199.719,121.091 199.719,126.00C 199.719,130.922 198.857,134.672 197.125,137.25C 195.406,139.841 192.924,141.125 189.656,141.125 z M 215.125,141.125C 211.857,141.125 209.357,139.841 207.625,137.25C 205.906,134.672 205.031,130.922 205.031,126.00C 205.031,121.091 205.906,117.341 207.625,114.75C 209.357,112.172 211.857,110.875 215.125,110.875C 218.393,110.875 220.875,112.172 222.594,114.75C 224.326,117.341 225.188,121.091 225.188,126.00C 225.188,130.922 224.326,134.672 222.594,137.25C 220.875,139.841 218.393,141.125 215.125,141.125 z M 240.594,141.125C 237.326,141.125 234.826,139.841 233.094,137.25C 231.375,134.672 230.50,130.922 230.50,126.00C 230.50,121.091 231.375,117.341 233.094,114.75C 234.826,112.172 237.326,110.875 240.594,110.875C 243.862,110.875 246.344,112.172 248.063,114.75C 249.794,117.341 250.656,121.091 250.656,126.00C 250.656,130.922 249.794,134.672 248.063,137.25C 246.344,139.841 243.862,141.125 240.594,141.125 z M 266.063,141.125C 262.794,141.125 260.294,139.841 258.563,137.25C 256.844,134.672 255.969,130.922 255.969,126.00C 255.969,121.091 256.844,117.341 258.563,114.75C 260.294,112.172 262.794,110.875 266.063,110.875C 269.331,110.875 271.813,112.172 273.531,114.75C 275.263,117.341 276.125,121.091 276.125,126.00C 276.125,130.922 275.263,134.672 273.531,137.25C 271.813,139.841 269.331,141.125 266.063,141.125 z M 73.313,138.00C 75.357,138.00 76.891,137.005 77.906,135.00C 78.935,133.008 79.469,130.01 79.469,126.00C 79.469,122.003 78.935,119.005 77.906,117.00C 76.891,115.008 75.357,114.00 73.313,114.00C 71.281,114.00 69.747,115.008 68.719,117.00C 67.703,119.005 67.219,122.003 67.219,126.00C 67.219,130.01 67.703,133.008 68.719,135.00C 69.747,137.005 71.281,138.00 73.313,138.00 z M 98.781,138.00C 100.826,138.00 102.359,137.005 103.375,135.00C 104.404,133.008 104.938,130.01 104.938,126.00C 104.938,122.003 104.404,119.005 103.375,117.00C 102.359,115.008 100.826,114.00 98.781,114.00C 96.75,114.00 95.216,115.008 94.188,117.00C 93.172,119.005 92.688,122.003 92.688,126.00C 92.688,130.01 93.172,133.008 94.188,135.00C 95.216,137.005 96.75,138.00 98.781,138.00 z M 124.25,138.00C 126.294,138.00 127.828,137.005 128.844,135.00C 129.872,133.008 130.406,130.01 130.406,126.00C 130.406,122.003 129.872,119.005 128.844,117.00C 127.828,115.008 126.294,114.00 124.25,114.00C 122.219,114.00 120.685,115.008 119.656,117.00C 118.641,119.005 118.156,122.003 118.156,126.00C 118.156,130.01 118.641,133.008 119.656,135.00C 120.685,137.005 122.219,138.00 124.25,138.00 z M 149.719,138.00C 151.763,138.00 153.297,137.005 154.313,135.00C 155.341,133.008 155.875,130.01 155.875,126.00C 155.875,122.003 155.341,119.005 154.313,117.00C 153.297,115.008 151.763,114.00 149.719,114.00C 147.688,114.00 146.154,115.008 145.125,117.00C 144.109,119.005 143.625,122.003 143.625,126.00C 143.625,130.01 144.109,133.008 145.125,135.00C 146.154,137.005 147.688,138.00 149.719,138.00 z M 189.656,138.00C 191.701,138.00 193.234,137.005 194.25,135.00C 195.279,133.008 195.781,130.01 195.781,126.00C 195.781,122.003 195.279,119.005 194.25,117.00C 193.234,115.008 191.701,114.00 189.656,114.00C 187.625,114.00 186.091,115.008 185.063,117.00C 184.047,119.005 183.531,122.003 183.531,126.00C 183.531,130.01 184.047,133.008 185.063,135.00C 186.091,137.005 187.625,138.00 189.656,138.00 z M 215.125,138.00C 217.169,138.00 218.703,137.005 219.719,135.00C 220.747,133.008 221.25,130.01 221.25,126.00C 221.25,122.003 220.747,119.005 219.719,117.00C 218.703,115.008 217.169,114.00 215.125,114.00C 213.094,114.00 211.56,115.008 210.531,117.00C 209.516,119.005 209.00,122.003 209.00,126.00C 209.00,130.01 209.516,133.008 210.531,135.00C 211.56,137.005 213.094,138.00 215.125,138.00 z M 240.594,138.00C 242.638,138.00 244.172,137.005 245.188,135.00C 246.216,133.008 246.719,130.01 246.719,126.00C 246.719,122.003 246.216,119.005 245.188,117.00C 244.172,115.008 242.638,114.00 240.594,114.00C 238.563,114.00 237.029,115.008 236.00,117.00C 234.984,119.005 234.469,122.003 234.469,126.00C 234.469,130.01 234.984,133.008 236.00,135.00C 237.029,137.005 238.563,138.00 240.594,138.00 z M 266.063,138.00C 268.107,138.00 269.641,137.005 270.656,135.00C 271.685,133.008 272.188,130.01 272.188,126.00C 272.188,122.003 271.685,119.005 270.656,117.00C 269.641,115.008 268.107,114.00 266.063,114.00C 264.031,114.00 262.497,115.008 261.469,117.00C 260.453,119.005 259.938,122.003 259.938,126.00C 259.938,130.01 260.453,133.008 261.469,135.00C 262.497,137.005 264.031,138.00 266.063,138.00 z M 164.438,124.00L 164.438,120.812L 174.969,120.812L 174.969,124.00L 164.438,124.00z" />
+<glyph unicode="&#xe09f;" d="M0.00,469.937 0.00,74.375 256.00-21.938 512.00,74.375 512.00,469.937 z m 122.594-157.031c 36.535-0.57 61.954-18.94 62.188-55.50l-39.625,0.00c 0.027,9.758 -4.165,19.046 -12.938,22.75 -9.899,3.54 -22.268,1.786 -28.625-6.594C 96.787,263.386 98.00,251.995 98.00,240.00c-0.375-15.983 7.806-29.80 24.031-29.906 16.439,0.828 24.25,8.848 24.406,23.656l 38.344,0.00c-0.92-39.266 -27.481-54.497 -62.188-54.656 -43.833-0.266 -66.675,30.603 -67.031,66.938 -0.258,43.818 30.721,66.518 67.031,66.875 z m 138.656,0.00c 26.316,0.278 56.409-11.176 57.156-39.906l0.00-2.188 -38.906,0.00 0.00,0.719c-0.241,9.434 -8.805,13.088 -16.688,13.125 -5.713-0.146 -16.988-1.375 -17.156-8.438 1.438-11.164 29.166-13.198 37.781-15.313 20.012-4.252 37.955-15.599 38.531-36.688 -0.649-34.14 -28.351-45.015 -56.938-45.125 -33.963,0.243 -63.591,8.407 -63.844,46.031l 39.25,0.00c-0.366-13.457 10.138-16.288 20.813-16.313 6.396,0.001 18.155,0.232 18.25,8.625 -1.292,10.347 -29.96,13.033 -38.156,15.125 -21.169,5.307 -37.914,16.329 -38.063,38.969 1.463,32.941 31.03,41.273 57.969,41.375 z m 135.75,0.00c 28.201-0.237 57.125-10.906 57.125-42.094l-38.875,0.00c 0.347,9.815 -8.693,13.806 -16.688,13.844 -5.713-0.146 -16.988-1.375 -17.156-8.438 1.222-11.022 29.271-13.223 37.781-15.313 13.938-3.365 28.169-9.01 34.938-21.563 2.262-4.096 3.44-9.133 3.563-15.125 -0.625-34.149 -28.34-45.015 -56.938-45.125 -33.943,0.234 -63.586,8.427 -63.844,46.031l 39.25,0.00c-0.212-8.595 4.379-14.395 12.219-15.75 7.094-0.666 26.743-3.033 26.875,8.063 -1.545,10.512 -29.822,12.998 -38.156,15.125 -21.19,5.31 -37.914,16.308 -38.063,38.969 1.468,32.963 30.997,41.273 57.969,41.375z" />
+<glyph unicode="&#xe09e;" d="M 256.00,396.64 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-31.40 5.656-61.484 16.00-89.281l 70.00,0.00c-14.036,26.673 -22.00,57.047 -22.00,89.281 0.00,106.039 85.961,192.00 192.00,192.00 106.039,0.00 192.00-85.961 192.00-192.00 0.00-32.234 -7.964-62.608 -22.00-89.281l 70.00,0.00c 10.344,27.797 16.00,57.882 16.00,89.281 0.00,141.385 -114.615,256.00 -256.00,256.00 z m 0.00-100.531c-17.673,0.00 -32.00-14.327 -32.00-32.00 0.00-17.673 14.327-32.00 32.00-32.00 17.673,0.00 32.00,14.327 32.00,32.00 0.00,17.673 -14.327,32.00 -32.00,32.00 z m -95.969-31.344c-17.673,0.00 -32.00-14.327 -32.00-32.00 0.00-17.673 14.327-32.00 32.00-32.00 17.673,0.00 32.00,14.327 32.00,32.00 0.00,17.673 -14.327,32.00 -32.00,32.00 z m 191.938,0.00c-17.673,0.00 -32.00-14.327 -32.00-32.00 0.00-17.673 14.327-32.00 32.00-32.00 17.673,0.00 32.00,14.327 32.00,32.00 0.00,17.673 -14.327,32.00 -32.00,32.00 z M 256.00,201.953l-25.094-125.50 0.00-25.094 50.188,0.00 0.00,25.094L 256.00,201.953z" />
+<glyph unicode="&#xe0c7;" d="M0.00,480.00L0.00,224.00L 256.00,224.00L 256.00,480.00L0.00,480.00 z M 256.00,224.00L 256.00-32.00L 512.00-32.00L 512.00,224.00L 256.00,224.00z" />
+<glyph unicode="&#xe0c6;" d="M 186.141,329.919 m0.00,0.00, 58.021,0.00 0.00-211.904 -242.914-0.153c 2.122,59.066 34.117,141.903 184.893,161.603l 0.739-22.704C 118.337,246.661 94.532,206.134 82.712,155.855l 105.952,0.00 -2.523,174.064 z M 271.011,236.091 270.119,118.307 510.932,118.361C 513.248,236.189 408.483,289.542 243.809,286.929l0.00-23.635c 73.014,1.89 164.429-0.817 189.527-106.582l-107.919,0.891 0.00,74.028C 306.093,237.274 289.444,237.372 271.011,236.091z" />
+<glyph unicode="&#xe0c5;" d="M 479.232,319.963 m0.00,0.00,-32.183,0.00 0.00-63.781 -32.768,0.00 -125.221,0.00 -32.768,0.00 0.00,63.781 -32.768,0.00 0.00-97.719 0.00,0.00 32.768,0.00 0.00,0.00 0.00-188.416 95.378,0.00 0.00,93.623 32.768,0.00 0.00-93.623 62.025,0.00 0.00,188.416 0.585,0.00 32.183,0.00 z m -190.171,93.623 0.00-125.221 125.221,0.00 0.00,125.221 z m 222.939-63.195 0.00-160.914 -32.768,0.00 0.00-187.831 -255.707,0.00 0.00,187.831 -95.378,0.00 0.00-62.025 30.427,0.00 0.00-32.183 32.768,0.00 0.00-93.623 -159.159,0.00 0.00,93.623 32.768,0.00 0.00-61.44 93.623,0.00 0.00,61.44 -93.623,0.00 0.00,32.183 30.427,0.00 0.00,62.025 -63.195,0.00 0.00,32.768 158.574,0.00 0.00,128.146 0.585,0.00 64.951,0.00 0.00,95.963 190.757,0.00 0.00-95.963 z m -353.426,0.00 0.00,30.427 32.183,0.00 0.00-30.427 z m -126.391,0.00 0.00-128.146 -32.183,0.00 0.00,128.146 z m 32.768,0.00 -32.768,0.00 0.00,30.427 32.768,0.00 z m 93.623,30.427 -93.623,0.00 0.00,32.768 93.623,0.00z" />
+<glyph unicode="&#xe0c4;" d="M 256.00,480.00 m0.00,0.00,c-141.384,0.00 -256.00-114.616 -256.00-256.00 0.00-141.384 114.616-256.00 256.00-256.00 141.384,0.00 256.00,114.616 256.00,256.00 0.00,141.384 -114.616,256.00 -256.00,256.00 z m 0.00-456.348c-110.664,0.00 -200.348,89.711 -200.348,200.348 0.00,110.636 89.683,200.348 200.348,200.348 110.664,0.00 200.348-89.711 200.348-200.348 0.00-110.636 -89.684-200.348 -200.348-200.348 z m 50.087,307.478 -100.174,0.00 0.00-113.809 -62.609,0.00 112.696-106.017 112.696,106.017 -62.609,0.00 0.00,113.809z" />
+<glyph unicode="&#xe0c3;" d="M 0.489,37.326 m0.00,0.00, 512.00,0.00 0.00-69.327 -512.00,0.00 z m 350.202,442.673 -188.404,0.00 0.00-211.896 -117.752,0.00 211.954-197.39 211.954,197.39 -117.752,0.00z" />
+<glyph unicode="&#xe0c2;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m 0.00-37.09c 55.773,0.00 106.674-20.857 145.329-55.198 -28.40-37.466 -71.562-62.407 -114.788-79.303 -23.571,43.112 -52.586,88.566 -82.124,128.389 16.54,3.995 33.816,6.111 51.583,6.111 z m -93.131-20.75c 28.542-42.677 56.174-82.273 81.459-127.092 -63.892-16.551 -136.062-26.479 -202.732-26.65 14.057,68.215 59.859,124.828 121.272,153.743 z m 262.744-59.753c 30.532-37.372 48.946-85.021 49.281-136.964 -50.63,9.973 -100.987,12.604 -152.268,7.441 -5.777,14.375 -12.746,28.025 -19.437,42.748 44.206,17.829 91.453,48.346 122.424,86.776 z M 262.095,261.203c 5.487-11.664 11.833-24.018 17.783-36.653 -71.296-31.438 -147.121-73.46 -186.505-147.096 -34.986,38.801 -56.284,90.186 -56.284,146.545 0.00,2.14 0.036,4.278 0.097,6.403 76.367,0.371 151.305,9.928 224.908,30.80 z m 212.069-55.425c-0.07-0.855 -0.147-1.71 -0.227-2.561 0.081,0.851 0.156,1.708 0.227,2.561 z m -96.389-4.263c 31.831,0.099 64.692-4.348 94.411-12.158 -9.72-61.146 -44.763-113.854 -94.038-147.048 -11.755,53.443 -22.955,104.576 -42.748,156.142 13.65,2.035 27.906,3.019 42.375,3.064 z m 95.546-3.972c-0.149-1.239 -0.30-2.479 -0.47-3.712 0.171,1.236 0.32,2.47 0.47,3.712 z m -178.448-9.094c 20.189-52.122 36.035-109.849 46.638-166.03 -26.272-11.16 -55.168-17.329 -85.512-17.329 -50.63,0.00 -97.238,17.195 -134.322,46.055 39.644,64.335 101.047,112.994 173.196,137.305z" />
+<glyph unicode="&#xe0ed;" d="M 0.00,480.00L 0.00,149.031L 0.00-32.00L 181.031-32.00L 512.00-32.00L 512.00,298.969L 428.00,214.969L 428.00,52.00L 265.031,52.00L 84.00,52.00L 84.00,233.031L 84.00,396.00L 246.969,396.00L 330.969,480.00L 0.00,480.00 z M 448.00,480.00L 415.219,447.219L 479.219,383.219L 512.00,416.00L 448.00,480.00 z M 399.75,431.75L 212.125,244.125L 276.125,180.125L 463.75,367.75L 399.75,431.75 z M 188.563,214.469C 187.613,214.454 186.645,214.385 185.688,214.312L 185.688,153.687L 246.313,153.687C 246.313,170.203 238.422,186.984 226.125,198.719C 215.953,208.426 202.797,214.688 188.563,214.469z" />
+<glyph unicode="&#xe0ec;" d="M 256.00,448.844L0.00,172.969L 512.00,172.969L 256.00,448.844 z M 0.00,124.312L0.00-7.688L 512.00-7.688L 512.00,124.312L0.00,124.312z" />
+<glyph unicode="&#xe0eb;" d="M 0.00,417.50 m0.00,0.00,0.00-71.969 256.00-145.969 256.00,145.969 0.00,71.969 z m 0.00-118.00 0.00-211.031 130.406,136.688 z m 512.00,0.00 -130.406-74.344 130.406-136.688 z m -345.781-94.781 -166.219-174.219 512.00,0.00 -166.219,174.219 -89.781-51.188z" />
+<glyph unicode="&#xe0ea;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 125.00,323.031L 387.00,323.031L 387.00,286.187L 256.00,211.50L 125.00,286.187L 125.00,323.031 z M 125.00,262.625L 191.719,224.594L 125.00,154.656L 125.00,262.625 z M 387.00,262.625L 387.00,154.656L 320.281,224.594L 387.00,262.625 z M 210.063,214.125L 256.00,187.937L 301.938,214.125L 387.00,124.969L 125.00,124.969L 210.063,214.125z" />
+<glyph unicode="&#xe105;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 256.00,410.00C 358.725,410.00 442.00,326.725 442.00,224.00C 442.00,121.275 358.725,38.00 256.00,38.00C 153.275,38.00 70.00,121.275 70.00,224.00C 70.00,326.725 153.275,410.00 256.00,410.00 z M 120.094,274.281L 120.094,173.719L 391.906,173.719L 391.906,274.281L 120.094,274.281z" />
+<glyph unicode="&#xe104;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 84.188,292.50L 427.813,292.50L 427.813,155.50L 84.188,155.50L 84.188,292.50z" />
+<glyph unicode="&#xe103;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 162.969,429.562L 349.031,429.562L 309.031,147.719L 202.969,147.719L 162.969,429.562 z M 257.00,128.531C 287.405,128.531 312.063,103.874 312.063,73.469C 312.063,43.063 287.405,18.437 257.00,18.437C 226.595,18.437 201.938,43.063 201.938,73.469C 201.938,103.874 226.595,128.531 257.00,128.531z" />
+<glyph unicode="&#xe102;" d="M 335.938,450.594C 331.78,450.377 327.016,447.012 323.906,441.625L 285.75,375.562C 275.983,376.619 266.059,377.224 256.00,377.375C 212.042,377.18 166.475,366.488 123.344,346.00C 91.319,330.161 60.123,307.80 33.031,280.219C 19.726,266.139 2.744,245.752 0.00,224.00C 0.324,205.158 20.545,181.901 33.031,167.781C 58.436,141.282 88.82,119.562 123.344,102.00C 124.517,101.431 125.695,100.868 126.875,100.312L 101.50,56.375C 97.353,49.193 97.773,41.256 102.438,38.562L 128.875,23.281C 133.54,20.588 140.635,24.193 144.781,31.375L 174.313,82.50L 197.688,123.00L 218.781,159.531L 293.188,288.406L 314.281,324.937L 337.688,365.469L 367.219,416.625C 371.365,423.807 370.946,431.744 366.281,434.437L 339.813,449.719C 338.646,450.392 337.323,450.666 335.938,450.594 z M 385.094,347.625L 353.125,292.219C 367.832,273.112 376.563,249.55 376.563,224.00C 376.563,160.317 322.579,108.687 255.969,108.687C 253.089,108.687 250.298,108.998 247.469,109.187L 226.313,72.562C 236.07,71.518 245.935,70.756 256.00,70.625C 299.999,70.823 345.541,81.638 388.625,102.00C 420.65,117.839 451.877,140.20 478.969,167.781C 492.274,181.861 509.256,202.248 512.00,224.00C 511.676,242.842 491.455,266.099 478.969,280.219C 453.564,306.718 423.149,328.438 388.625,346.00C 387.459,346.565 386.267,347.073 385.094,347.625 z M 255.969,339.312C 258.889,339.312 261.788,339.195 264.656,339.00L 239.875,296.094C 205.096,289.043 179.00,259.452 179.00,224.031C 179.00,215.134 180.639,206.615 183.656,198.719C 183.66,198.71 183.653,198.697 183.656,198.687L 158.813,155.656C 144.071,174.781 135.375,198.421 135.375,224.00C 135.375,287.683 189.358,339.312 255.969,339.312 z M 328.063,248.844L 272.219,152.094C 306.811,159.278 332.719,188.734 332.719,224.031C 332.719,232.767 330.976,241.071 328.063,248.844z" />
+<glyph unicode="&#xe09d;" d="M 332.734,224.031 m0.00,0.00,c0.00-40.675 -34.417-73.648 -76.872-73.648 -42.455,0.00 -76.872,32.973 -76.872,73.648 0.00,40.675 34.417,73.648 76.872,73.648 42.455,0.00 76.872-32.973 76.872-73.648 z M 256.001,377.378c-43.958-0.195 -89.521-10.896 -132.653-31.384 -32.025-15.839 -63.234-38.185 -90.326-65.767 -13.306-14.08 -30.277-34.467 -33.021-56.219 0.324-18.842 20.535-42.099 33.021-56.219 25.405-26.499 55.802-48.221 90.326-65.783 40.223-19.52 84.743-30.759 132.653-31.384 43.999,0.198 89.552,11.022 132.636,31.384 32.025,15.839 63.251,38.202 90.342,65.783 13.306,14.08 30.277,34.467 33.021,56.219 -0.324,18.842 -20.535,42.099 -33.021,56.219 -25.405,26.499 -55.818,48.205 -90.342,65.767 -40.202,19.506 -84.832,30.667 -132.636,31.384 z m -0.033-38.079c 66.611,0.00 120.608-51.624 120.608-115.307 0.00-63.683 -53.997-115.307 -120.608-115.307 -66.611,0.00 -120.608,51.624 -120.608,115.307 0.00,63.683 53.997,115.307 120.608,115.307z" />
+<glyph unicode="&#xe09c;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,480.00L0.00,480.00 z M 368.313,413.187C 372.031,413.266 375.904,413.146 379.906,412.875C 394.616,412.855 409.979,411.529 425.219,410.187L 423.563,349.562L 382.625,349.562C 363.43,349.988 356.498,342.534 355.875,320.875L 355.875,273.25L 425.219,273.25L 422.469,208.312L 355.875,208.312L 355.875,27.531L 288.219,27.531L 288.219,208.312L 241.25,208.312L 241.25,273.25L 288.219,273.25L 288.219,329.00C 288.219,369.196 305.212,394.781 338.688,407.75C 347.284,411.132 357.157,412.951 368.313,413.187z" />
+<glyph unicode="&#xe09b;" d="M 0.00,422.481 m0.00,0.00,0.00-396.962 396.962,0.00 0.00,166.935 115.038-166.935 0.00,396.962 -115.038-166.935 0.00,166.935 -396.962,0.00z" />
+<glyph unicode="&#xe098;" d="M 258.339,484.812 m0.00,0.00,c-90.822,0.00 -164.464-73.642 -164.464-164.464 0.00-80.107 57.306-146.851 133.143-161.484l0.00-52.94 -70.534,0.00 0.00-62.609 70.534,0.00 0.00-70.503 62.609,0.00 0.00,70.503 70.534,0.00 0.00,62.609 -70.534,0.00 0.00,52.94c 75.853,14.621 133.175,81.366 133.175,161.484 0.00,90.822 -73.642,164.464 -164.464,164.464 z m 0.00-65.399c 54.712,0.00 99.065-44.353 99.065-99.065 0.00-54.712 -44.353-99.065 -99.065-99.065 -54.712,0.00 -99.065,44.353 -99.065,99.065 0.00,54.712 44.353,99.065 99.065,99.065z" />
+<glyph unicode="&#xe0c1;" d="M 172.923,478.111 m0.00,0.00,-96.456-93.12 0.00-31.544 129.102,0.00 0.00,124.663 -32.645,0.00 z m 76.466,0.00 0.00-166.942 -172.923,0.00 0.00-345.058 362.846,0.00 0.00,512.00 -189.922,0.00z" />
+<glyph unicode="&#xe0c0;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 211.938,356.781L 228.875,356.781L 228.875,292.125L 161.906,292.125L 161.906,308.469L 211.938,356.781 z M 251.594,356.781L 350.094,356.781L 350.094,91.219L 161.906,91.219L 161.906,270.187L 251.594,270.187L 251.594,356.781z" />
+<glyph unicode="&#xe0bf;" d="M 121.389,480.00 m0.00,0.00,-96.457-93.12 0.00-418.88 362.845,0.00 0.00,163.195 -44.797-44.797 0.00-73.885 -273.251,0.00 0.00,342.823 84.305,0.00 0.00,80.15 188.946,0.00 0.00-116.478 -133.73-133.73 -39.728-122.397 122.365,39.76 195.179,195.179 -82.637,82.636 -16.653-16.653 0.00,116.195 -266.389,0.00 z m 108.545-315.372 41.303-41.334 -61.198-19.864 19.896,61.198z" />
+<glyph unicode="&#xe0be;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 194.938,385.75L 363.25,385.75L 363.25,312.344L 373.781,322.844L 426.00,270.656L 302.688,147.312L 225.375,122.187L 250.469,199.531L 334.969,284.031L 334.969,357.625L 215.563,357.625L 215.563,306.969L 162.313,306.969L 162.313,90.375L 334.969,90.375L 334.969,137.062L 363.25,165.375L 363.25,62.25L 134.00,62.25L 134.00,326.906L 194.938,385.75 z M 263.531,186.50L 250.969,147.812L 289.625,160.375L 263.531,186.50z" />
+<glyph unicode="&#xe0bd;" d="M 109.049,480.00 m0.00,0.00,-96.457-93.12 0.00-418.88 258.55,0.00 0.00,44.514 -213.753,0.00 0.00,342.823 84.305,0.00 0.00,80.15 188.946,0.00 0.00-133.541 44.797,0.00 0.00,178.054 -266.389,0.00 z m 201.696-217.059 0.00-106.278 -106.31,0.00 0.00-82.385 106.31,0.00 0.00-106.278 82.353,0.00 0.00,106.278 106.31,0.00 0.00,82.385 -106.31,0.00 0.00,106.278 -82.353,0.00z" />
+<glyph unicode="&#xe0bc;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 191.563,385.312L 347.563,385.312L 347.563,281.031L 321.344,281.031L 321.344,359.25L 210.688,359.25L 210.688,312.281L 161.313,312.281L 161.313,111.50L 286.50,111.50L 286.50,85.437L 135.063,85.437L 135.063,330.781L 191.563,385.312 z M 309.688,258.187L 357.906,258.187L 357.906,195.937L 420.188,195.937L 420.188,147.687L 357.906,147.687L 357.906,85.437L 309.688,85.437L 309.688,147.687L 247.438,147.687L 247.438,195.937L 309.688,195.937L 309.688,258.187z" />
+<glyph unicode="&#xe0e9;" d="M 30.219,480.00L 30.219-32.00L 481.781-32.00L 481.781,480.00L 30.219,480.00 z M 53.25,449.25L 108.719,449.25L 108.719,407.062L 53.25,407.062L 53.25,449.25 z M 403.25,449.25L 458.719,449.25L 458.719,407.062L 403.25,407.062L 403.25,449.25 z M 132.563,446.125L 379.438,446.125L 379.438,222.687L 132.563,222.687L 132.563,446.125 z M 53.25,354.719L 108.719,354.719L 108.719,312.531L 53.25,312.531L 53.25,354.719 z M 403.281,354.719L 458.75,354.719L 458.75,312.531L 403.281,312.531L 403.281,354.719 z M 53.25,260.187L 108.719,260.187L 108.719,218.00L 53.25,218.00L 53.25,260.187 z M 403.281,260.187L 458.75,260.187L 458.75,218.00L 403.281,218.00L 403.281,260.187 z M 132.563,207.062L 379.438,207.062L 379.438-16.375L 132.563-16.375L 132.563,207.062 z M 53.25,165.656L 108.719,165.656L 108.719,123.469L 53.25,123.469L 53.25,165.656 z M 403.281,165.656L 458.75,165.656L 458.75,123.469L 403.281,123.469L 403.281,165.656 z M 53.25,71.125L 108.719,71.125L 108.719,28.937L 53.25,28.937L 53.25,71.125 z M 403.281,71.125L 458.75,71.125L 458.75,28.937L 403.281,28.937L 403.281,71.125z" />
+<glyph unicode="&#xe0e8;" d="M0.00,480.00L 177.438,302.562L 177.438-32.00L 334.563,96.562L 334.563,302.562L 512.00,480.00L0.00,480.00z" />
+<glyph unicode="&#xe0e7;" d="M 145.952,21.08C 51.926,74.072 27.171,124.23 41.325,192.736 51.773,243.32 85.986,284.476 89.266,334.964c 14.615-26.596 20.721-45.774 22.354-73.566 46.482,56.95 77.198,135.788 79.017,218.603 0.00,0.00 121.069-71.136 129.013-178.589 10.423,22.147 15.669,57.324 5.246,80.121 31.267-22.799 214.275-225.192 -24.789-360.453 44.946,87.516 11.596,205.601 -66.444,260.138 5.211-23.451 -3.926-110.914 -38.451-149.345 9.566,64.217 -9.102,91.37 -9.102,91.37 0.00,0.00 -6.407-35.97 -31.267-72.305 -22.701-33.18 -38.43-68.397 -8.894-129.857z" />
+<glyph unicode="&#xe0e6;" d="M -0.451,452.309 m0.00,0.00,0.00-411.666 58.445,0.00 0.00,201.023c 164.144,44.674 269.46-137.155 381.812-24.802l0.00,235.445c-174.513-112.904 -266.472,100.335 -440.257,0.00z" />
+<glyph unicode="&#xe101;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 175.094,368.50C 252.322,368.154 309.332,291.097 400.813,350.281L 400.813,195.406C 326.904,121.498 257.603,241.106 149.625,211.719L 149.625,79.50L 111.188,79.50L 111.188,350.281C 134.409,363.688 155.408,368.588 175.094,368.50z" />
+<glyph unicode="&#xe100;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,480.00L0.00,480.00 z M 151.438,320.50C 204.741,320.50 247.938,277.303 247.938,224.00C 247.938,170.697 204.741,127.469 151.438,127.469C 98.134,127.469 54.938,170.697 54.938,224.00C 54.938,277.303 98.134,320.50 151.438,320.50 z M 360.563,320.50C 413.866,320.50 457.063,277.303 457.063,224.00C 457.063,170.697 413.866,127.469 360.563,127.469C 307.259,127.469 264.063,170.697 264.063,224.00C 264.063,277.303 307.259,320.50 360.563,320.50z" />
+<glyph unicode="&#xe0ff;" d="M 106.313,429.781 70.594,383.687 0.00,383.687l0.00-365.469 512.00,0.00 0.00,365.469 -259.563,0.00 -35.719,46.094z" />
+<glyph unicode="&#xe0fe;" d="M 106.312,429.781 m0.00,0.00,-35.719-46.094 -70.594,0.00 0.00-61.719 512.00,0.00 0.00,61.719 -259.563,0.00 -35.719,46.094 -110.406,0.00 z m -106.313-125.00 0.00-286.563 512.00,0.00 0.00,286.563 -512.00,0.00z" />
+<glyph unicode="&#xe097;" d="M 106.312,429.781 m0.00,0.00,-35.719-46.094 -70.594,0.00 0.00-260.255 52.724,198.536 371.276,0.00 0.00,61.719 -171.563,0.00 -35.719,46.094 z m -106.313-383.536 0.00-28.027 424.00,0.00 88.00,286.563 -437.276,0.00z" />
+<glyph unicode="&#xe096;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 166.625,346.875L 232.531,346.875L 253.875,319.375L 408.875,319.375L 408.875,101.125L 103.125,101.125L 103.125,319.375L 145.281,319.375L 166.625,346.875z" />
+<glyph unicode="&#xe095;" d="M 142.994,154.365 m0.00,0.00, 185.689,0.00 -92.845,240.583 -92.845-240.583m-142.994-183.317 0.00,35.918 44.389,0.00 180.267,469.983 56.926,0.00 180.605-469.983 49.811,0.00 0.00-35.918 -183.995,0.00 0.00,35.918 56.249,0.00 -42.356,111.141 -212.796,0.00 -42.356-111.141 55.571,0.00 0.00-35.918 -142.316,0.00" />
+<glyph unicode="&#xe094;" d="M 443.49,142.134 m0.00,0.00,c-5.088,8.359 -11.449,13.72 -19.08,16.083 -15.829,5.066 -33.498,4.723 -44.158-6.815 -11.917-15.784 -12.215-39.44 0.00-53.153 18.631-17.587 51.538-8.895 63.238,8.45l0.00,35.435 z m 41.977,141.195c 17.082-15.628 25.623-37.797 25.623-66.509l0.00-165.726c-0.279-4.58 -4.037-8.118 -8.178-8.178l-51.244,0.00c-4.58,0.279 -8.118,4.037 -8.178,8.178l0.00,4.906c-17.107-12.982 -36.902-18.963 -56.696-19.08 -22.462,0.658 -41.99,8.606 -57.242,22.624 -18.782,18.796 -26.019,41.904 -26.168,65.691 0.74,26.025 8.255,49.446 26.44,66.237 16.774,14.19 36.614,20.857 56.969,20.989 22.533,0.00 41.432-5.996 56.696-17.99l0.00,15.809c0.00,25.078 -13.084,37.615 -39.251,37.615 -20.352,0.00 -38.887-8.541 -55.605-25.623 -4.439-3.928 -10.697-2.388 -13.084,2.18l-20.17,34.89c-1.817,3.635 -1.272,6.906 1.635,9.813 12.357,12.357 26.713,21.716 43.067,28.075 40.53,14.061 94.624,13.285 125.386-13.901 z m -335.27,27.258 -35.98-128.656 72.506,0.00 z M 300.115,57.089c 0.727-2.18 1.09-3.635 1.09-4.361 -0.153-4.848 -3.873-8.123 -8.178-8.178l-0.545,0.00 -63.783,0.00c-3.998,0.00 -6.541,1.998 -7.632,5.996L 203.077,113.785 97.863,113.785 79.873,50.547c-1.09-3.998 -3.816-5.996 -8.178-5.996l-63.238,0.00c-6.797,0.566 -9.367,4.738 -8.178,10.358l 106.851,351.079c 1.454,3.998 4.18,5.996 8.178,5.996l 70.324,0.00c 3.998,0.00 6.723-1.999 8.178-5.996L 300.115,57.089z" />
+<glyph unicode="&#xe092;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 128.00,319.844L 256.00,224.00L 128.00,128.156L 128.00,319.844 z M 288.00,319.844L 416.00,224.00L 288.00,128.156L 288.00,319.844z" />
+<glyph unicode="&#xe0bb;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,333.312L 397.25,236.437C 406.36,227.082 406.599,213.469 396.719,202.875L 279.25,84.906C 269.436,75.332 256.111,74.863 244.625,84.906L 140.156,189.375C 113.328,190.999 88.871,203.835 69.281,225.094C 51.987,245.349 43.472,271.16 44.906,300.031C 47.297,326.783 59.373,351.029 80.625,370.656C 99.062,386.06 121.742,394.886 147.75,395.562C 177.286,395.327 204.69,382.914 226.219,359.312C 228.023,357.148 229.751,354.876 231.375,352.531C 232.999,350.186 234.525,347.946 235.969,345.781L 244.625,354.437C 254.439,364.012 267.764,364.481 279.25,354.437L 313.906,319.781L 430.813,480.00L0.00,480.00 z M 455.719,480.00L 266.281,219.687C 264.477,217.523 262.307,216.406 259.781,216.406C 257.255,216.406 255.457,217.321 254.375,219.125C 253.654,219.486 250.398,223.454 244.625,231.031C 238.852,238.608 231.83,248.002 223.531,259.187C 223.606,259.657 223.653,260.104 223.719,260.562C 227.771,270.32 230.00,280.995 230.00,292.219C 230.00,337.878 193.003,374.906 147.344,374.906C 101.684,374.906 64.656,337.878 64.656,292.219C 64.656,246.559 101.684,209.562 147.344,209.562C 157.314,209.562 166.869,211.328 175.719,214.562C 175.735,214.568 175.734,214.557 175.75,214.562C 176.156,214.642 176.558,214.699 176.969,214.781L 255.469,151.469C 256.551,150.386 257.605,149.844 258.688,149.844L 260.313,149.844C 262.116,149.844 263.574,150.386 264.656,151.469L 512.00,359.844L 512.00,480.00L 455.719,480.00z" />
+<glyph unicode="&#xe0ba;" d="M 374.764,480.00C 350.798,479.957 324.901,475.728 298.586,461.702 268.977,472.338 237.712,481.316 194.245,478.093 95.936,468.939 58.413,419.264 52.641,348.419c-20.73-2.362 -40.321-7.829 -41.743-62.598 -1.36-62.03 18.052-72.139 38.757-79.006l 1.493-181.853c 2.926-21.472 -1.088-45.384 47.699-50.669l 73.034-1.493c 26.733-3.483 45.279,13.487 55.148,52.163 3.468-31.439 17.286-48.649 43.235-49.176l 84.962,0.00c 19.205,5.118 40.272,6.804 43.219,41.727l 1.493,189.303 22.348-1.493c 18.252,2.643 36.433,5.658 49.192,35.77l0.00,56.641c-3.688,23.123 -9.945,20.397 -16.392,25.351 17.357,3.84 35.283,5.659 41.727,47.699l-1.477,46.206C 495.944,445.98 479.792,462.45 439.315,473.185 420.77,475.893 398.731,480.042 374.764,480.00 z m -169.209-44.363c 11.686,0.131 27.791-1.77 61.566-12.596l 1.048-54.815c-17.574,6.16 -32.964,13.268 -45.316,11.596 -38.226,1.796 -41.811-17.73 -44.268-37.946l0.00-38.994 98.019-1.048c 2.359,51.683 -11.539,117.566 74.082,128.961 37.377,4.971 71.717,0.211 97.717-10.912l-1.048-57.976c-13.443,10.752 -31.59,14.451 -50.59,16.868 -52.85,7.43 -40.676-39.913 -43.219-74.844l 70.619,0.00 0.00-51.638 -70.619,0.00 1.048-233.984 -77.989,2.113 0.00,231.872 -101.18-2.113 0.00-229.759 -77.989,0.00 2.097,229.759 -37.946,0.00 -1.048,57.976 41.107-2.113 -1.048,15.804c 1.841,37.771 -1.459,102.899 79.482,113.045 9.974-0.686 16.388,0.644 25.477,0.747z" />
+<glyph unicode="&#xe0b9;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,480.00L0.00,480.00 z M 345.313,409.656C 363.012,409.688 379.272,406.625 392.969,404.625C 422.86,396.697 434.791,384.534 434.344,363.125L 435.438,329.00C 430.679,297.955 417.443,296.617 404.625,293.781C 409.387,290.123 414.026,292.138 416.75,275.062L 416.75,233.25C 407.328,211.012 393.885,208.764 380.406,206.812L 363.906,207.937L 362.813,68.125C 360.635,42.335 345.058,41.092 330.875,37.312L 268.125,37.312C 248.961,37.702 238.78,50.408 236.219,73.625C 228.93,45.064 215.242,32.521 195.50,35.094L 141.563,36.219C 105.534,40.122 108.473,57.768 106.313,73.625L 105.219,207.937C 89.929,213.009 75.589,220.442 76.594,266.25C 77.644,306.696 92.129,310.756 107.438,312.50C 111.70,364.819 139.40,401.49 212.00,408.25C 244.10,410.629 267.197,404.011 289.063,396.156C 308.496,406.514 327.613,409.625 345.313,409.656 z M 220.344,376.906C 213.632,376.831 208.897,375.837 201.531,376.344C 141.757,368.852 144.204,320.769 142.844,292.875L 143.625,281.187L 113.25,282.75L 114.031,239.937L 142.063,239.937L 140.50,70.281L 198.094,70.281L 198.094,239.937L 272.813,241.50L 272.813,70.281L 330.406,68.719L 329.625,241.50L 381.781,241.50L 381.781,279.656L 329.625,279.656C 331.503,305.453 322.534,340.394 361.563,334.906C 375.594,333.121 388.979,330.409 398.906,322.469L 399.688,365.25C 380.487,373.465 355.134,377.015 327.531,373.344C 264.301,364.929 274.554,316.261 272.813,278.094L 200.438,278.875L 200.438,307.656C 202.252,322.586 204.896,337.013 233.125,335.687C 242.247,336.923 253.615,331.674 266.594,327.125L 265.813,367.594C 240.87,375.589 228.973,377.003 220.344,376.906z" />
+<glyph unicode="&#xe0b8;" d="M 0.00,480.00L 0.00,303.437L 61.50,365.469L 202.969,224.00L 61.25,82.281L 0.00,143.00L 0.00-32.00L 176.563-32.00L 114.531,29.50L 256.00,170.969L 397.719,29.25L 337.00-32.00L 512.00-32.00L 512.00,144.562L 450.50,82.531L 309.031,224.00L 450.75,365.719L 512.00,305.00L 512.00,480.00L 335.438,480.00L 397.469,418.50L 256.00,277.031L 114.281,418.75L 175.00,480.00L 0.00,480.00z" />
+<glyph unicode="&#xe0b7;" d="M 320.252,321.38 m0.00,0.00, 98.384,62.243 -96.376,96.376 -62.243-138.541 -36.141,108.424 -96.376-64.251 80.314-64.251 -182.714,0.00 0.00-128.502 32.126,0.00 0.00-224.878 397.554,0.00 0.00,224.878 32.126,0.00 0.00,128.502 z m 10.136,116.418 50.43-50.43 -102.869-65.233 z m -119.394-25.461 28.475-85.426 -71.188,56.95 z m 12.882-412.212 -134.525,0.00 0.00,202.816 134.525,0.00 z m 0.00,224.878 -166.651,0.00 0.00,64.251 166.651,0.00 z m 198.776-224.878 -134.525,0.00 0.00,202.816 134.525,0.00 z m 32.126,224.878 -166.651,0.00 0.00,64.251 166.651,0.00z" />
+<glyph unicode="&#xe0b6;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 256.00,452.125C 381.99,452.125 484.125,349.99 484.125,224.00C 484.125,98.01 381.99-4.125 256.00-4.125C 130.01-4.125 27.875,98.01 27.875,224.00C 27.875,349.99 130.01,452.125 256.00,452.125 z M 142.781,385.312C 136.284,366.428 134.032,345.932 139.844,328.031C 132.822,320.239 127.37,311.287 123.469,301.156C 113.07,268.292 115.61,226.308 138.375,200.906C 146.372,192.139 157.222,184.931 170.875,179.281C 184.528,173.632 202.076,170.028 223.531,168.469C 209.131,161.74 198.98,157.628 195.438,142.75C 179.375,132.017 159.842,134.578 145.688,146.25C 134.501,154.417 129.434,168.933 117.031,174.312C 116.251,175.092 113.815,175.673 109.719,176.062C 105.623,176.452 102.403,175.29 100.063,172.562C 98.892,171.394 98.979,170.145 100.344,168.781C 109.733,161.145 118.77,153.051 124.063,143.344C 129.134,132.823 134.383,125.12 139.844,120.25C 154.993,110.013 175.311,104.687 193.094,111.187C 191.02,98.674 196.614,79.132 192.50,67.937C 190.939,64.82 188.707,62.088 185.781,59.75C 183.174,57.206 175.089,54.024 176.719,50.125C 177.499,48.372 180.225,47.296 184.906,46.906C 195.211,47.169 205.469,51.335 211.531,59.469C 213.677,62.391 214.75,66.199 214.75,70.875L 214.75,118.781C 214.75,124.236 215.909,128.131 218.25,130.469C 220.591,132.807 223.144,134.377 225.875,135.156L 225.875,72.031C 225.875,66.576 225.382,61.897 224.406,58.00C 223.431,54.103 222.561,51.371 221.781,49.812C 219.99,46.809 216.567,44.038 216.50,40.469C 216.50,39.30 217.197,38.632 218.563,38.437C 228.811,38.882 240.702,44.894 244.875,53.344C 248.191,60.357 249.844,67.738 249.844,75.531L 249.844,137.50L 262.719,137.50L 262.719,75.531C 262.719,67.738 264.489,60.357 268.00,53.344C 271.511,46.33 277.37,41.823 285.563,39.875C 289.853,38.706 292.752,38.243 294.313,38.437C 295.873,38.632 296.57,39.30 296.375,40.469C 295.435,44.009 293.478,47.038 291.406,49.812C 288.675,53.319 287.313,60.731 287.313,72.031L 287.313,135.156C 290.043,134.377 292.683,132.807 295.219,130.469C 297.754,128.131 299.00,124.236 299.00,118.781L 299.00,70.875C 299.00,66.199 300.073,62.391 302.219,59.469C 308.74,51.176 318.567,46.969 328.844,46.906C 333.525,47.296 336.251,48.372 337.031,50.125C 337.811,51.878 337.231,53.331 335.281,54.50C 333.331,55.669 330.894,57.412 327.969,59.75C 325.043,62.088 322.811,64.82 321.25,67.937C 319.499,88.038 321.205,109.584 319.781,129.906C 316.97,152.084 308.434,159.38 291.406,167.875C 311.691,169.434 328.37,173.155 341.438,179.00C 380.502,197.981 391.304,227.323 391.469,266.656C 390.853,291.97 383.545,314.053 366.875,330.969C 369.216,339.93 369.913,349.259 368.938,359.00C 367.962,368.741 365.902,377.52 362.781,385.312C 348.349,384.533 336.254,381.628 326.50,376.562C 316.747,371.497 309.728,367.194 305.438,363.687C 270.871,371.535 233.867,371.582 200.719,362.531C 183.757,376.404 162.735,384.133 142.781,385.312z" />
+<glyph unicode="&#xe0e5;" d="M 436.712,352.99 m0.00,0.00, 48.752,0.00 0.00-54.357c-1.867,0.00 -5.323,0.185 -10.367,0.56 -5.043,0.373 -9.806,0.561 -14.29,0.561l-24.095,0.00 0.00-104.232c0.00-25.032 8.218-37.546 24.656-37.546 11.582,0.00 22.041,3.173 31.384,9.526l0.00-56.037c-13.823-7.475 -30.45-11.209 -49.877-11.209 -27.272,0.00 -46.136,9.713 -56.598,29.138 -7.845,14.572 -11.77,37.545 -11.77,68.931l0.00,100.309 0.561,0.00 0.00,1.121 -8.406,0.558c-4.857,0.00 -11.208-0.558 -19.053-1.679l0.00,54.357 27.459,0.00 0.00,21.855c0.00,10.461 -0.561,18.867 -1.681,25.218l 65.004,0.00c-1.119-7.099 -1.68-15.131 -1.68-24.096l0.00-22.978 z M 257.431,104.178c 0.747,7.469 1.118,20.17 1.118,38.105l0.00,174.284c0.00,17.557 -0.371,29.70 -1.118,36.424l 63.324,0.00c-0.749-7.099 -1.122-18.867 -1.122-35.306l0.00-172.038c0.00-19.055 0.374-32.878 1.122-41.468l-63.324,0.00 z M 116.75,355.781c-25.404,0.00 -47.255-8.407 -65.563-25.219 -19.051-17.933 -28.594-40.35 -28.594-67.25 0.00-17.933 5.258-34.717 15.719-50.406 9.339-14.569 19.982-23.922 31.938-28.031l0.00-1.125c-11.955-5.226 -17.938-18.297 -17.938-39.219 0.00-16.066 6.331-28.03 19.031-35.875l0.00-1.125C 36.602,95.951 19.25,74.474 19.25,43.094c0.00-27.275 11.585-47.267 34.75-59.969 18.303-10.088 41.638-15.125 70.031-15.125 69.114,0.00 103.688,28.965 103.688,86.875 0.00,36.238 -26.73,58.47 -80.156,66.688 -12.328,1.867 -21.649,6.337 -28.00,13.438 -4.857,4.855 -7.281,9.706 -7.281,14.563 0.00,13.822 7.465,21.851 22.406,24.094 22.789,3.359 41.366,13.943 55.75,31.688 14.383,17.746 21.594,38.558 21.594,62.469 0.00,7.472 -1.512,15.502 -4.50,24.094 9.715,2.244 17.175,4.289 22.406,6.156l0.00,57.719c-23.539-8.967 -44.256-13.438 -62.188-13.438 -15.693,8.966 -32.694,13.438 -51.00,13.438 z m 2.25-51.531c 11.209,0.00 19.993-4.315 26.344-12.906 5.23-7.848 7.844-17.197 7.844-28.031 0.00-26.151 -11.398-39.219 -34.188-39.219 -23.535,0.00 -35.313,12.908 -35.313,38.688 0.00,27.645 11.778,41.469 35.313,41.469 z m 3.906-228.094c 31.384,0.00 47.094-9.54 47.094-28.594 0.00-20.176 -14.389-30.25 -43.156-30.25 -32.875,0.00 -49.313,9.732 -49.313,29.156 0.00,19.802 15.114,29.688 45.375,29.688 z m 205.283,362.095c0.00-23.057 -17.437-41.749 -38.947-41.749 -21.51,0.00 -38.947,18.692 -38.947,41.749 0.00,23.057 17.437,41.749 38.947,41.749 21.51,0.00 38.947-18.692 38.947-41.749z" />
+<glyph unicode="&#xe0e4;" d="M 0.489,459.722 m0.00,0.00, 215.01-215.00 0.00-210.569 -79.062,0.00 0.00-45.876 240.114,0.00 0.00,45.876 -79.062,0.00 0.00,210.569L 512.489,459.722z" />
+<glyph unicode="&#xe0e3;" d="M 476.417,227.564 m0.00,0.00,-164.552,0.00 21.25-96.988 132.949,0.00 z m -277.885,0.00 -164.552,0.00 10.352-96.988 132.949,0.00 z m 307.853,28.333c 3.634-3.996 5.087-8.354 4.359-13.076L 496.577,112.052C 494.634,103.502 488.539,96.912 480.231,96.796l-160.193,0.00c-8.615,0.573 -14.323,5.975 -15.802,13.621l-25.609,113.878c-13.858,8.631 -32.079,7.373 -46.859,1.09L 206.16,110.417C 204.128,102.136 198.218,96.892 190.359,96.796L 30.166,96.796C 21.154,97.507 15.136,104.009 14.365,112.052L 0.199,242.821c-0.726,5.085 0.545,9.444 3.814,13.076l 184.167,94.807c 8.834,3.941 17.583,0.156 21.25-7.628 3.076-8.891 1.079-19.018 -7.083-22.885l-116.602-52.853 337.276,0.00 -116.602,52.853c-8.65,4.903 -10.887,14.778 -7.628,22.885 4.624,8.294 13.993,11.047 21.795,7.628z" />
+<glyph unicode="&#xe0e2;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z M 192.535,410.618c 9.322-5.019 20.341-9.768 33.07-14.249 12.729-4.482 25.368-6.728 37.917-6.728 9.261,0.018 18.50,2.317 26.359,8.073 7.609,4.56 14.974,8.199 24.738,7.262 10.032-1.096 20.597-4.55 31.189-5.123 13.266-7.171 26.179-16.121 38.727-26.877 -6.095-0.358 -12.559-1.00 -19.372-1.897 -6.813-0.896 -13.437-2.228 -19.891-4.02 -6.454-1.792 -12.373-4.135 -17.751-7.003 -5.378-2.868 -9.324-6.445 -11.834-10.748 -3.944-6.454 -6.719-11.924 -8.332-16.405 -3.321-9.293 -2.536-24.119 -10.213-30.93 -1.613-1.076 -2.961-2.327 -4.037-3.761 -1.076-1.434 -1.525-3.311 -1.345-5.641 0.179-2.33 1.35-5.651 3.502-9.953 1.076-2.51 1.958-5.557 2.675-9.143 6.811,0.022 13.876,1.047 19.907,5.382l 35.502-3.226c 9.164,10.322 19.843,10.494 29.033,0.00 2.868-2.868 5.916-7.183 9.143-12.92l-15.06-10.213c-3.586,1.076 -7.884,3.225 -12.904,6.452 -2.504,1.434 -5.023,3.054 -7.538,4.847 -14.308,6.945 -42.325-1.143 -58.083-2.156 -2.055-4.109 -3.71-8.134 -8.592-9.143 -0.848-2.659 -0.029-5.512 -1.086-8.073 -6.813-10.756 -9.138-22.049 -6.987-33.88 3.944-18.644 13.616-27.963 29.033-27.963l 1.621,0.00 4.296,0.00c 7.529,0.00 12.822-0.353 15.87-1.07 3.048-0.717 4.571-1.262 4.571-1.621 -1.792-4.303 -2.418-7.703 -1.88-10.213 1.776-8.053 7.586-14.147 6.987-22.857 -0.557-11.079 -4.04-20.631 -0.259-31.741 4.311-10.777 9.726-22.479 13.714-33.605 1.613-3.227 4.035-5.20 7.262-5.917 6.454-1.076 14.522,3.223 24.203,12.904 7.171,7.888 11.293,16.502 12.369,25.824 1.42,8.251 7.236,15.582 9.143,24.203l0.00,6.987c 1.789,3.586 3.313,7.082 4.571,10.488 1.794,4.951 1.991,11.26 2.415,16.94 5.637,5.637 11.136,10.669 15.06,17.751 2.51,4.303 3.232,8.056 2.156,11.283 -0.345,0.717 -1.243,1.439 -2.691,2.156l-8.073,3.226c 0.138,4.508 8.427,3.837 12.369,3.226l 19.356,11.834c-0.717-24.381 -5.465-47.96 -14.249-70.728 -8.784-22.767 -21.777-43.283 -38.987-61.568 -22.946-25.098 -50.471-43.031 -82.561-53.787 -32.09-10.756 -65.165-12.906 -99.226-6.452 5.864,10.36 9.249,22.033 16.146,32.276 0.00,5.378 0.802,9.95 2.415,13.714 6.845,15.836 18.014,19.957 30.93,32.259 13.033,13.585 12.911,29.637 13.439,49.216 -0.178,12.393 -19.992,20.00 -29.05,26.894 -20.993,14.147 -34.324,34.961 -64.259,28.774 -10.699-1.091 -13.288-3.17 -21.252,3.485l-3.226,1.621 0.276,1.07 1.345,2.691c 3.213,3.361 -1.348,7.586 -5.657,6.192 -0.896-0.179 -1.875-0.276 -2.95-0.276 -0.983,4.803 -4.206,9.272 -4.847,14.525 5.019-3.944 9.334-6.911 12.92-8.883 3.584-1.972 6.632-3.32 9.143-4.037 2.51-1.076 4.659-1.429 6.452-1.07 3.944,0.717 6.173,4.663 6.711,11.834 0.538,7.171 0.281,15.416 -0.794,24.738 1.076,1.433 1.781,2.877 2.14,4.312 3.789,19.596 13.825,15.299 29.05,20.96 2.51,1.434 3.039,3.231 1.605,5.382 0.00,0.359 -0.08,0.535 -0.259,0.535 -0.179,0.00 -0.276,0.193 -0.276,0.551 8.277,4.157 13.152,12.668 18.286,20.425 -4.374,6.932 -11.165,12.72 -18.821,16.681 -4.106,5.064 -20.223,1.959 -23.668,10.213 -2.868,0.359 -5.018,0.904 -6.452,1.621 -14.521,9.41 -20.654,25.865 -36.296,32.535 -6.275,0.538 -12.466,0.441 -18.561-0.276 18.286,14.70 38.191,25.639 59.704,32.81 z M 61.844,258.95c 3.227-5.378 7.173-10.222 11.834-14.525 24.191-22.223 46.931-26.933 77.974-38.176 1.433-1.076 3.406-2.872 5.917-5.382 3.382-2.567 6.244-5.641 9.694-8.073 0.00-1.792 -0.273-4.295 -0.81-7.522 -0.538-3.227 -0.634-8.424 -0.276-15.595 1.036-19.953 17.492-35.749 22.047-54.857 -4.04-24.763 -4.098-49.102 -6.987-73.678 -24.381,10.039 -45.794,24.379 -64.259,43.023 -18.465,18.644 -32.724,40.33 -42.764,65.07 -7.171,17.927 -11.742,36.133 -13.714,54.598 -1.974,18.465 -1.525,36.831 1.345,55.117z" />
+<glyph unicode="&#xe0fd;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 253.938,414.469C 268.274,414.469 282.015,413.026 295.156,410.125C 308.298,407.226 320.866,403.027 332.813,397.562C 331.106,397.904 328.887,398.411 326.156,399.094C 312.477,401.807 299.846,402.999 287.219,394.50C 279.449,389.657 270.927,385.928 261.125,386.312C 249.519,386.312 237.839,388.262 226.063,392.187C 214.286,396.113 203.779,400.472 194.563,405.25C 213.335,411.394 233.116,414.469 253.938,414.469 z M 143.219,375.406C 146.472,375.393 149.576,375.028 152.563,374.281C 157.341,373.087 160.606,370.598 162.313,366.844C 164.702,362.065 168.015,357.627 172.281,353.531C 176.548,349.435 181.065,345.853 185.844,342.781C 188.574,342.099 190.793,341.433 192.50,340.75C 197.57,338.966 200.298,334.181 205.813,334.094C 209.909,335.459 213.173,334.413 215.563,331.00C 223.104,327.217 229.785,321.968 234.50,314.625C 229.876,306.929 224.586,298.506 216.063,294.156C 216.404,294.156 216.563,294.046 216.563,293.875C 216.563,293.704 216.752,293.625 217.094,293.625C 218.461,291.236 217.764,289.365 215.031,288.00C 213.325,287.317 211.724,286.81 210.188,286.469C 208.651,286.127 207.019,285.779 205.313,285.437C 200.875,284.755 197.959,283.899 196.594,282.875C 196.594,282.192 196.087,281.844 195.063,281.844C 195.063,281.502 193.969,280.409 191.75,278.531C 189.531,276.654 187.74,272.803 186.375,267.00C 186.034,265.635 185.337,264.272 184.313,262.906C 185.337,253.349 185.606,245.916 185.094,240.625C 184.582,235.334 182.442,232.18 178.688,231.156C 176.982,230.815 174.763,231.163 172.031,232.187C 169.642,232.87 166.647,234.154 163.063,236.031C 159.478,237.909 155.31,240.904 150.531,245.00C 151.231,238.801 153.057,232.419 155.125,226.062C 159.516,226.924 167.075,226.425 163.844,219.906C 161.53,217.563 162.163,215.973 165.375,214.781C 166.738,214.44 168.101,213.236 169.469,211.187C 174.766,210.72 180.207,210.598 186.125,211.719C 191.075,212.401 196.337,212.56 201.969,212.219C 207.601,211.877 213.163,210.594 218.625,208.375C 234.191,201.868 246.823,181.351 263.938,173.812C 268.202,171.082 271.705,168.356 274.438,165.625C 277.168,162.894 278.531,159.82 278.531,156.406C 278.503,144.566 277.461,132.516 274.438,120.562C 273.413,117.49 270.259,113.243 264.969,107.781C 259.679,102.32 253.609,97.185 246.781,92.406C 244.051,90.358 241.673,87.981 239.625,85.25C 237.918,82.861 236.286,79.786 234.75,76.031C 233.214,72.277 232.438,67.839 232.438,62.719C 229.707,57.599 227.409,52.892 225.531,48.625C 223.654,44.358 222.053,40.887 220.688,38.156C 219.322,34.402 217.928,31.327 216.563,28.937C 202.976,29.727 190.288,34.816 177.656,42.25C 179.131,66.519 183.964,90.574 186.375,114.437C 187.058,116.827 186.868,119.046 185.844,121.094C 174.867,142.909 161.99,153.81 164.875,184.062C 165.558,187.476 165.875,190.043 165.875,191.75C 161.362,196.197 155.072,199.652 150.531,205.062C 119.511,219.602 87.20,220.714 64.50,253.187C 68.254,278.105 76.544,300.96 89.344,321.781C 102.144,342.603 118.104,360.354 137.219,375.031C 139.267,375.287 141.267,375.414 143.219,375.406 z M 377.344,369.906C 398.506,352.157 415.243,330.665 427.531,305.406C 439.819,280.148 445.938,252.506 445.938,222.469L 445.938,218.875L 429.563,213.75C 422.633,215.659 415.252,210.64 412.156,204.031L 420.875,200.969C 422.24,200.286 423.096,199.589 423.438,198.906C 425.334,194.048 423.33,188.144 421.875,183.031C 419.137,179.421 414.642,176.03 411.125,172.281C 410.784,170.575 410.625,168.007 410.625,164.594C 410.625,159.132 408.406,152.476 403.969,144.625C 404.651,142.236 404.651,140.017 403.969,137.969C 402.945,133.531 401.423,129.284 399.375,125.187C 396.992,121.091 395.597,117.32 395.25,113.906C 393.885,104.69 389.795,96.163 382.969,88.312C 373.753,78.755 365.733,74.507 358.906,75.531C 355.834,76.214 353.536,78.164 352.00,81.406C 346.957,92.089 343.815,103.272 338.438,114.937C 334.801,124.628 337.442,135.79 338.188,146.187C 338.464,153.896 333.339,160.904 331.781,168.437C 331.439,170.998 332.104,174.50 333.813,178.937C 333.476,179.279 331.875,179.897 328.969,180.75C 313.478,185.09 302.218,176.80 289.031,188.687C 283.741,193.466 280.238,200.281 278.531,209.156C 276.483,221.444 278.861,232.539 285.688,242.437C 286.029,243.462 286.219,244.476 286.219,245.50C 286.219,247.889 286.377,249.601 286.719,250.625C 288.416,250.966 289.859,251.663 291.063,252.687C 292.248,253.712 293.183,254.726 293.875,255.75C 294.899,257.114 295.596,258.477 295.938,259.844C 332.383,263.167 340.167,269.966 372.75,250.625L 387.594,260.875C 384.18,266.678 381.185,270.926 378.625,273.656C 369.982,282.734 359.07,284.297 350.219,273.656L 314.375,276.75C 309.683,272.147 301.491,272.005 294.906,271.625C 294.906,274.697 294.05,277.772 292.344,280.844C 290.296,284.94 289.281,288.173 289.281,290.562C 289.281,292.95 289.788,294.82 290.813,296.187C 301.669,310.494 299.522,311.497 303.875,330.50C 305.411,334.937 308.216,340.389 312.313,346.875C 321.881,360.452 358.313,367.922 377.344,369.906z" />
+<glyph unicode="&#xe0fc;" d="M0.00,480.00L0.00,389.969C 31.861,420.799 85.098,435.414 132.625,435.812L 290.375,435.812L 248.375,401.937L 203.063,401.937C 214.014,391.861 224.17,381.034 232.25,367.562C 242.699,349.795 248.184,328.913 248.375,306.969C 248.279,285.847 243.194,262.275 230.063,242.562C 219.341,226.798 203.944,213.135 187.75,200.531C 177.101,189.836 167.811,180.921 167.031,163.969C 167.158,151.33 175.432,139.932 186.688,131.75C 205.526,117.14 221.65,104.932 239.344,89.719C 256.316,75.073 272.085,56.943 282.188,34.844C 290.819,14.806 290.91-9.55 284.938-32.00L 512.00-32.00L 512.00,301.531L 417.563,301.531L 417.563,206.00L 376.656,206.00L 376.656,301.531L 282.188,301.531L 282.188,340.844L 376.656,340.844L 376.656,435.812L 417.563,435.812L 417.563,340.844L 512.00,340.844L 512.00,480.00L0.00,480.00 z M 93.50,409.625C 84.283,409.423 74.916,407.396 66.031,403.344C 48.176,394.604 35.063,380.501 30.281,359.094C 26.592,336.95 27.409,313.515 33.031,289.781C 39.695,262.71 52.959,237.024 76.938,218.25C 95.022,205.477 122.414,203.571 145.469,209.812C 163.492,215.176 176.403,232.208 183.406,250.75C 189.765,270.856 187.566,293.702 182.031,316.781C 174.839,346.254 160.531,374.71 135.344,396.219C 123.791,405.191 108.862,409.962 93.50,409.625 z M 0.00,204.344L0.00,74.437C 25.682,93.412 61.337,95.726 93.625,96.812C 103.632,96.812 112.253,96.98 119.531,97.344C 114.437,104.258 109.444,111.546 104.531,119.187C 93.478,136.891 96.204,158.493 104.25,177.625C 66.479,172.78 32.841,179.743 0.00,204.344 z M 126.531,76.687C 108.60,76.622 91.157,73.321 73.406,70.875C 45.858,65.533 19.751,54.546 0.00,32.437L0.00-32.00L 241.281-32.00C 242.109-29.487 242.344-26.64 242.344-23.813C 242.157-5.056 229.70,12.026 214.50,25.031C 193.153,43.168 168.411,57.878 144.656,75.531C 138.538,76.375 132.508,76.709 126.531,76.687z" />
+<glyph unicode="&#xe0fb;" d="M0.00,417.906L0.00,30.094L 512.00,30.094L 512.00,417.906L0.00,417.906 z M 62.938,355.469L 449.063,355.469L 449.063,92.531L 62.938,92.531L 62.938,355.469 z M 391.438,334.656L 325.625,220.531L 294.75,284.906L 275.375,325.344L 251.188,287.625L 197.094,203.375L 174.875,226.719L 158.719,243.687L 140.75,228.656L 77.219,175.625L 109.25,137.25L 154.813,175.281L 182.844,145.844L 204.813,122.781L 222.00,149.562L 269.063,222.906L 301.063,156.125L 321.563,113.344L 345.25,154.469L 434.75,309.687L 391.438,334.656z" />
+<glyph unicode="&#xe0fa;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 107.156,336.719L 404.844,336.719L 404.844,111.281L 107.156,111.281L 107.156,336.719 z M 143.75,300.437L 143.75,147.562L 368.25,147.562L 368.25,300.437L 143.75,300.437 z M 334.75,288.344L 359.906,273.812L 307.875,183.562L 294.125,159.656L 282.188,184.531L 263.594,223.375L 236.219,180.719L 226.25,165.156L 213.469,178.562L 197.188,195.687L 170.688,173.562L 152.063,195.875L 189.00,226.719L 199.438,235.437L 208.844,225.594L 221.75,212.00L 253.188,261.00L 267.25,282.906L 278.531,259.406L 296.469,221.969L 334.75,288.344z" />
+<glyph unicode="&#xe091;" d="M 254.654,399.578 m0.00,0.00,c-44.093,0.00 -79.838-41.732 -79.838-93.212 0.00-35.703 17.193-66.71 42.44-82.367l-29.277-13.568 -77.909-36.134c-7.526-3.764 -11.283-10.145 -11.283-19.177 0.00-28.601 0.00-57.202 0.00-85.803 0.619-10.728 7.056-20.726 17.491-20.896l 277.171,0.00c 11.914,1.036 17.941,10.633 18.059,20.896 0.00,28.601 0.00,57.202 0.00,85.803 0.00,9.032 -3.756,15.414 -11.283,19.177l-75.088,36.134 -31.206,14.784c 24.211,16.009 40.559,46.346 40.559,81.151 0.00,51.479 -35.745,93.212 -79.838,93.212 z m -128.778-32.778c-18.975-0.721 -34.013-8.931 -45.439-22.014 -12.638-15.751 -18.799-34.453 -18.918-53.058 0.776-27.511 13.085-53.554 34.999-67.177l-87.489-40.657c-6.021-2.258 -9.029-7.526 -9.029-15.806l0.00-68.863c 0.47-9.133 5.212-16.808 14.103-16.94l 58.148,0.00 0.00,72.835c 0.962,19.473 10.107,35.212 26.537,42.894l 58.132,27.655c 4.516,2.635 8.845,6.215 12.985,10.732 -23.969,36.982 -27.297,81.276 -11.85,120.235 -10.046,6.148 -21.337,10.099 -32.178,10.164 z m 259.664,0.00c-12.409-0.26 -23.876-4.829 -33.297-11.283 15.026-39.312 10.881-83.634 -11.299-117.982 4.893-5.645 9.986-9.974 15.254-12.985l 55.878-26.537c 17.023-9.336 25.801-25.215 25.97-42.894l0.00-72.835 59.834,0.00c 9.84,0.85 14.034,8.698 14.12,16.94l0.00,68.863c0.00,7.527 -3.008,12.794 -9.029,15.806l-86.371,41.224c 22.399,16.515 33.647,41.267 33.864,66.61 -0.595,20.058 -6.723,38.684 -18.918,53.058 -12.743,13.824 -28.548,21.868 -46.006,22.014z" />
+<glyph unicode="&#xe090;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m -0.519-142.346c 23.613-0.31 43.171-19.533 49.67-44.028 2.477-9.994 2.757-20.134 0.259-30.719 -3.766-14.903 -11.306-29.46 -25.354-38.403l 20.474-9.726 48.648-23.554c 4.779-2.048 7.165-6.144 7.165-12.288l0.00-47.092c0.00-9.712 0.771-18.087 -11.267-21.512l-179.194,0.00c-11.577,0.167 -12.056,11.893 -11.785,21.512l0.00,47.092c0.00,6.144 2.564,10.417 7.684,12.806l 50.172,23.035 19.469,9.224c-8.874,5.803 -15.873,13.817 -20.993,24.057 -6.148,13.518 -8.586,31.067 -4.101,47.108 5.67,21.744 23.426,41.279 49.151,42.488 z m -83.453-21.495c 7.51,0.00 14.33-2.225 20.474-6.663 -1.704-4.778 -3.147-9.817 -4.345-15.108 -1.194-5.29 -1.799-10.829 -1.799-16.632 0.00-8.534 1.193-16.725 3.583-24.576 2.389-7.851 5.807-15.026 10.245-21.512 -2.048-2.731 -4.773-5.117 -8.186-7.165l-37.901-17.41c-5.12-2.731 -9.216-6.56 -12.288-11.51 -3.072-4.949 -4.604-10.504 -4.604-16.648l0.00-47.092 -37.366,0.00c-5.421,0.085 -9.082,5.548 -9.224,11.25l0.00,44.547c0.00,5.12 1.871,8.539 5.625,10.245l 56.835,26.116c-14.684,9.027 -21.769,25.342 -22.517,43.51 0.259,22.384 14.93,46.789 41.467,48.648 z m 167.927,0.00c 23.591-0.373 40.631-23.762 41.483-48.648 -0.13-16.467 -6.558-32.368 -21.512-43.007l 55.814-26.618c 3.755-2.048 5.625-5.467 5.625-10.245l0.00-44.547c-0.056-5.287 -2.91-10.71 -9.208-11.25l-38.403,0.00 0.00,47.092c0.00,6.144 -1.532,11.699 -4.604,16.648 -3.072,4.949 -7.168,8.779 -12.288,11.51 -15.916,7.398 -34.196,12.708 -46.087,25.094 8.874,13.653 13.309,28.843 13.309,45.568 0.00,10.582 -1.871,20.998 -5.625,31.238 6.166,4.071 13.465,7.051 21.495,7.165z" />
+<glyph unicode="&#xe08f;" d="M 261.43,318.388 204.448,407.621c-3.336,6.398 -1.826,14.124 3.763,17.739 6.392,3.356 13.609,1.787 17.201-3.763L 282.393,331.826c 3.336-6.398 1.828-14.126 -3.763-17.739 -6.374-3.073 -14.185-0.989 -17.201,4.30 z m 239.209-16.664c 9.166-16.616 -13.552-30.238 -24.19-36.016 -9.317,0.72 -18.187,1.705 -26.608,2.957 -8.421,1.254 -15.858,2.419 -22.308,3.494 -7.526,1.434 -14.513,2.866 -20.964,4.30 -0.73-3.584 -1.715-7.347 -2.957-11.289 -1.261-3.942 -2.784-8.063 -4.569-12.364 -36.643,7.927 -79.798,29.371 -99.984,62.356l 68.806,70.419 12.364,44.617 26.34-32.253c 18.171-5.108 43.38-5.467 51.067-24.19 6.657-11.215 6.118-34.999 13.439-44.078 3.942-3.942 8.243-7.526 12.901-10.751 4.658-3.226 10.213-8.959 16.664-17.201 z M 242.614,152.286c-16.285,0.116 -33.279,5.765 -49.455,5.913 -9.317,1.075 -12.722-3.046 -10.213-12.364l 22.577-90.846c-0.303-14.593 -8.231-25.768 -19.89-27.684 -11.346-1.09 -22.754,9.144 -25.265,16.933l-29.028,113.96c-0.717,3.942 -2.957,5.823 -6.72,5.644 -3.763-0.179 -6.181-2.06 -7.257-5.644L 90.489,44.776c-3.544-10.644 -12.132-17.611 -22.577-17.739 -15.419,0.272 -26.064,14.593 -23.114,27.953l 32.791,134.387 2.688,81.169c-28.421,7.21 -64.337,26.654 -78.482,53.755 -3.99,8.76 -1.098,17.257 6.451,21.502 8.923,4.078 19.015,0.152 22.577-5.913 13.917-21.783 44.639-35.664 65.581-36.016l 160.189,0.00C 246.68,254.161 241.135,204.445 242.614,152.286 z m 39.241,142.45c 27.135-35.287 66.239-57.40 108.047-66.119 -3.892-11.648 -9.089-22.981 -12.632-33.597 -1.612-4.838 -1.165-11.916 1.344-21.233 10.301-39.464 21.628-81.596 31.716-118.26 3.929-30.711 -38.722-30.057 -45.154-11.289L 342.062,132.397c-6.378,10.826 -22.329,13.354 -25.802,0.00L 295.294,44.776c-10.849-27.054 -49.557-8.864 -45.154,10.213l 19.89,81.707c 0.358,2.866 0.179,5.734 -0.537,8.601 0.347,49.784 1.935,100.719 12.364,149.439z" />
+<glyph unicode="&#xe08e;" d="M 97.221,480.00 m0.00,0.00, 177.284,0.00c 18.762-0.935 32.309-16.123 32.534-32.81l0.00-79.406c 17.431-22.697 41.623-38.783 59.141-60.657 6.158-7.72 13.005-13.694 20.541-17.921 27.00-13.744 58.434-5.417 79.957-24.952 16.846-39.257 -6.72-86.285 -43.701-99.533 -30.20-10.413 -60.316-3.435 -86.988,9.512 0.077-46.872 -0.302-93.743 -0.551-140.614 -2.849-38.158 -28.54-65.366 -65.068-65.62 -36.811,0.104 -63.58,31.839 -64.241,65.62l0.00,55.143c-10.845,1.838 -20.678,5.422 -29.501,10.753 -22.675-3.089 -44.905,3.98 -60.933,17.646C-15.186,124.661 62.463,296.123 64.412,360.34l0.00,86.85c 0.894,18.893 16.038,32.584 32.81,32.81 z m 0.00-118.281c-1.106-51.381 -78.787-226.948 32.534-210.094 10.014-18.579 36.815-25.728 53.764-14.337 17.069-17.308 38.513-22.237 55.418-5.514 0.00-16.543 0.092-32.902 0.276-49.077 0.184-16.175 0.276-32.534 0.276-49.077 0.398-18.931 14.288-32.052 30.88-32.258 19.616,0.432 32.058,15.323 32.258,32.258 0.003,64.164 0.545,127.416 0.551,186.934 42.992-5.356 101.37-56.648 135.238-4.274 4.118,8.385 5.866,15.09 4.274,23.849 -0.735,1.47 -1.47,2.298 -2.206,2.481 -0.735,0.184 -1.93,0.46 -3.584,0.827 -34.078,5.566 -68.152,10.761 -90.71,37.221 -22.333,29.125 -57.493,46.299 -71.686,79.681l0.00,1.379z" />
+<glyph unicode="&#xe08d;" d="M 511.999,65.222 511.999,242.505c-0.935,18.762 -16.123,32.309 -32.81,32.534l-79.406,0.00c-22.697,17.431 -38.783,41.623 -60.657,59.141 -7.72,6.158 -13.694,13.005 -17.921,20.541 -13.744,27.00 -5.417,58.434 -24.952,79.957 -39.257,16.846 -86.285-6.72 -99.533-43.701 -10.413-30.20 -3.435-60.316 9.512-86.988 -46.872,0.077 -93.743-0.302 -140.614-0.551 -38.158-2.849 -65.366-28.54 -65.62-65.068 0.104-36.811 31.839-63.58 65.62-64.241l 55.143,0.00c 1.838-10.845 5.422-20.678 10.753-29.501 -3.089-22.675 3.98-44.905 17.646-60.933 7.499-130.88 178.962-53.231 243.179-51.283l 86.85,0.00C 498.083,33.307 511.774,48.451 511.999,65.222 z m -118.281,0.00c-51.381-1.106 -226.948-78.787 -210.094,32.534 -18.579,10.014 -25.728,36.815 -14.337,53.764 -17.308,17.069 -22.237,38.513 -5.514,55.418 -16.543,0.00 -32.902,0.092 -49.077,0.276 -16.175,0.184 -32.534,0.276 -49.077,0.276 -18.931,0.398 -32.052,14.288 -32.258,30.88 0.432,19.616 15.323,32.058 32.258,32.258 64.164,0.003 127.416,0.545 186.934,0.551 -5.356,42.992 -56.648,101.37 -4.274,135.238 8.385,4.118 15.09,5.866 23.849,4.274 1.47-0.735 2.298-1.47 2.481-2.206 0.184-0.735 0.46-1.93 0.827-3.584 5.566-34.078 10.761-68.152 37.221-90.71 29.125-22.333 46.299-57.493 79.681-71.686l 1.379,0.00z" />
+<glyph unicode="&#xe08c;" d="M0.00,65.222 m0.00,0.00,0.00,177.284C 0.935,261.267 16.123,274.814 32.81,275.039l 79.406,0.00c 22.697,17.431 38.783,41.623 60.657,59.141 7.72,6.158 13.694,13.005 17.921,20.541 13.744,27.00 5.417,58.434 24.952,79.957 39.257,16.846 86.285-6.72 99.533-43.701 10.413-30.20 3.435-60.316 -9.512-86.988 46.872,0.077 93.743-0.302 140.614-0.551 38.158-2.849 65.366-28.54 65.62-65.068 -0.104-36.811 -31.839-63.58 -65.62-64.241l-55.143,0.00c-1.838-10.845 -5.422-20.678 -10.753-29.501 3.089-22.675 -3.98-44.905 -17.646-60.933 -7.499-130.88 -178.962-53.231 -243.179-51.283l-86.85,0.00C 13.916,33.307 0.225,48.451 0.00,65.222 z m 118.281,0.00c 51.381-1.106 226.948-78.787 210.094,32.534 18.579,10.014 25.728,36.815 14.337,53.764 17.308,17.069 22.237,38.513 5.514,55.418 16.543,0.00 32.902,0.092 49.077,0.276 16.175,0.184 32.534,0.276 49.077,0.276 18.931,0.398 32.052,14.288 32.258,30.88 -0.432,19.616 -15.323,32.058 -32.258,32.258 -64.164,0.003 -127.416,0.545 -186.934,0.551 5.356,42.992 56.648,101.37 4.274,135.238 -8.385,4.118 -15.09,5.866 -23.849,4.274 -1.47-0.735 -2.298-1.47 -2.481-2.206 -0.184-0.735 -0.46-1.93 -0.827-3.584 -5.566-34.078 -10.761-68.152 -37.221-90.71 -29.125-22.333 -46.299-57.493 -79.681-71.686l-1.379,0.00z" />
+<glyph unicode="&#xe0b5;" d="M 97.221-31.999 m0.00,0.00, 177.284,0.00c 18.762,0.935 32.309,16.123 32.534,32.81l0.00,79.406c 17.431,22.697 41.623,38.783 59.141,60.657 6.158,7.72 13.005,13.694 20.541,17.921 27.00,13.744 58.434,5.417 79.957,24.952 16.846,39.257 -6.72,86.285 -43.701,99.533 -30.20,10.413 -60.316,3.435 -86.988-9.512 0.077,46.872 -0.302,93.743 -0.551,140.614 -2.849,38.158 -28.54,65.366 -65.068,65.62 -36.811-0.104 -63.58-31.839 -64.241-65.62l0.00-55.143c-10.845-1.838 -20.678-5.422 -29.501-10.753 -22.675,3.089 -44.905-3.98 -60.933-17.646 -130.88-7.499 -53.231-178.962 -51.283-243.179l0.00-86.85c 0.894-18.893 16.038-32.584 32.81-32.81 z m 0.00,118.281c-1.106,51.381 -78.787,226.948 32.534,210.094 10.014,18.579 36.815,25.728 53.764,14.337 17.069,17.308 38.513,22.237 55.418,5.514 0.00,16.543 0.092,32.902 0.276,49.077 0.184,16.175 0.276,32.534 0.276,49.077 0.398,18.931 14.288,32.052 30.88,32.258 19.616-0.432 32.058-15.323 32.258-32.258 0.003-64.164 0.545-127.416 0.551-186.934 42.992,5.356 101.37,56.648 135.238,4.274 4.118-8.385 5.866-15.09 4.274-23.849 -0.735-1.47 -1.47-2.298 -2.206-2.481 -0.735-0.184 -1.93-0.46 -3.584-0.827 -34.078-5.566 -68.152-10.761 -90.71-37.221 -22.333-29.125 -57.493-46.299 -71.686-79.681l0.00-1.379z" />
+<glyph unicode="&#xe0b4;" d="M 102.406,441.719 0.00,166.594l 40.969-160.313 430.063,0.00L 512.00,166.594l-102.406,275.125 -307.188,0.00 z M 40.00,141.25l 432.031,0.00 -28.00-109.625 -376.031,0.00 -28.00,109.625 z m 355.938-34.344c-11.31,0.00 -20.469-9.159 -20.469-20.469 0.00-11.31 9.159-20.50 20.469-20.50 11.31,0.00 20.50,9.19 20.50,20.50 0.00,11.31 -9.19,20.469 -20.50,20.469z" />
+<glyph unicode="&#xe0b3;" d="M 448.00,80.00 m0.00,0.00,c0.00,42.667 0.00,85.333 0.00,128.00 0.00,106.032 -85.968,192.00 -192.00,192.00 -106.032,0.00 -192.00-85.968 -192.00-192.00 0.00-42.667 0.00-85.333 0.00-128.00 -4.714-45.613 -62.975-33.684 -64.00,0.00 0.00,42.667 0.00,85.333 0.00,128.00 0.00,141.392 114.624,256.00 256.00,256.00 141.376,0.00 256.00-114.608 256.00-256.00 0.00-42.667 0.00-85.333 0.00-128.00 -4.714-45.613 -62.975-33.684 -64.00,0.00 z m -336.00,96.00 32.00,0.00c 8.832,0.00 16.00-7.152 16.00-16.00l0.00-160.00c0.00-8.848 -7.168-16.00 -16.00-16.00l-32.00,0.00c-8.832,0.00 -16.00,7.152 -16.00,16.00l0.00,160.00c0.00,8.848 7.168,16.00 16.00,16.00 z m 256.00,0.00 32.00,0.00c 8.848,0.00 16.00-7.152 16.00-16.00l0.00-160.00c0.00-8.848 -7.152-16.00 -16.00-16.00l-32.00,0.00c-8.848,0.00 -16.00,7.152 -16.00,16.00l0.00,160.00c0.00,8.848 7.152,16.00 16.00,16.00z" />
+<glyph unicode="&#xe0b2;" d="M 492.298,472.323 m0.00,0.00,c 11.125-12.898 10.76-29.441 0.00-40.494l-69.739-70.302c-12.785-11.177 -28.949-10.69 -39.931,0.00 -10.909,12.546 -10.99,29.923 0.00,40.494L 452.366,472.323c 12.163,10.326 29.485,10.144 39.931,0.00 z M 144.163,161.87c 12.163,10.325 29.485,10.144 39.931,0.00 10.703-12.192 11.201-30.452 0.00-40.494L 56.988-6.854c-12.785-11.177 -28.949-10.69 -39.931,0.00 -10.91,12.546 -10.99,29.923 0.00,40.494 z m 122.606,93.361c-1.018,20.663 -17.645,35.747 -35.995,35.995 -20.379-1.125 -35.738-17.688 -35.995-35.995 -0.87-13.109 -9.37-21.776 -21.372-21.934 -13.269,0.975 -21.225,10.094 -21.372,21.934 0.741,22.039 8.636,41.60 23.059,56.241 16.071,15.05 35.379,22.912 55.679,23.059 22.008-0.715 41.109-8.70 55.679-23.059 15.071-16.17 22.911-35.84 23.059-56.241 -0.87-13.109 -9.37-21.776 -21.372-21.934 -13.269,0.975 -21.225,10.094 -21.372,21.934 z M 230.774,417.769c 43.174-0.926 83.153-18.24 111.358-46.40 29.709-31.487 45.83-72.49 46.118-112.201 -0.891-36.108 -7.284-53.227 -24.184-80.988 -9.224-21.99 -30.497-38.299 -41.90-58.21 -6.464-20.578 -1.705-42.997 -2.531-65.803 -0.308-25.434 -10.267-53.87 -27.839-67.771 -19.687-11.474 -40.236-15.747 -58.21-15.747 -14.951,1.164 -24.442,11.983 -25.308,25.308 -0.486,6.936 2.242,13.418 6.749,17.997 11.328,11.551 22.44,7.178 36.276,10.686 4.996,1.587 12.21,3.481 14.06,8.718 3.184,9.819 3.082,21.838 3.093,30.089 0.933,20.955 -2.996,40.241 1.406,59.897 3.018,12.664 7.981,24.646 15.467,34.307 5.058,6.653 10.844,12.505 15.185,18.279 6.246,7.728 11.307,16.088 16.31,23.903 5.397,8.257 9.624,16.445 14.623,24.465 4.013,11.541 5.593,23.641 5.624,34.87 -1.018,29.66 -11.805,55.942 -31.214,75.644 -21.632,20.232 -47.736,31.013 -75.082,31.214 -29.628-0.992 -55.451-11.868 -75.082-31.214 -20.252-21.731 -31.013-48.196 -31.214-75.644 -1.086-15.149 -11.455-25.682 -25.308-25.871 -15.221,1.142 -25.682,12.031 -25.871,25.871 0.983,43.33 18.19,83.494 46.118,112.201 30.99,30.066 71.846,46.112 111.358,46.40z" />
+<glyph unicode="&#xe0b1;" d="M 480.13,377.844 m0.00,0.00,c 22.24-68.717 3.628-138.642 -35.596-191.326 -25.89-35.727 -56.832-66.518 -88.465-93.438 -29.104-27.09 -94.233-80.695 -111.498-82.184 -15.259,2.917 -32.38,20.171 -44.495,29.052C 132.007,91.694 58.731,154.621 21.577,223.422 -9.574,289.475 -9.631,371.174 38.851,421.815c 62.865,56.674 157.641,45.599 205.72-13.61 12.912,16.751 28.791,29.925 47.635,39.521 76.393,30.493 155.866-0.579 187.923-69.883z" />
+<glyph unicode="&#xe0b0;" d="M 256.259,477.406C 114.874,477.406 0.259,362.791 0.259,221.406C 0.259,80.021 114.874-34.594 256.259-34.594C 397.644-34.594 512.259,80.021 512.259,221.406C 512.259,362.791 397.644,477.406 256.259,477.406 z M 312.916,330.845C 343.335,331.32 370.846,314.782 383.886,286.59C 395.95,249.317 385.854,211.401 364.58,182.825C 350.537,163.447 333.754,146.735 316.596,132.134C 300.81,117.44 265.478,88.362 256.114,87.554C 247.837,89.137 238.546,98.51 231.976,103.327C 195.054,131.394 155.318,165.511 135.165,202.829C 118.269,238.656 118.238,282.984 144.535,310.452C 178.633,341.192 230.035,335.175 256.114,303.06C 263.117,312.145 271.732,319.301 281.953,324.507C 292.312,328.641 302.776,330.686 312.916,330.845z" />
+<glyph unicode="&#xe0e1;" d="M 338.864,461.206 m0.00,0.00,c-19.667-0.202 -39.839-4.042 -59.575-11.921l-0.896-0.381 -0.896-0.462c-12.511-6.371 -23.914-14.342 -34.05-23.787 -54.554,47.184 -141.406,50.608 -200.827-2.959l-0.597-0.543 -0.543-0.571c-52.125-54.445 -50.904-138.294 -19.659-204.547l 0.272-0.516 0.272-0.543c 36.799-68.143 105.514-126.044 168.133-173.646l 0.163-0.135 0.135-0.109c 4.029-2.954 10.956-9.059 18.953-15.07 7.998-6.01 17.03-12.597 30.249-15.124l 2.959-0.571 2.987,0.244c 13.873,1.196 19.315,6.319 28.43,12.056 9.114,5.738 19.204,13.02 29.57,20.989 20.435,15.71 41.579,33.817 55.501,46.731 0.179,0.166 0.475,0.405 0.652,0.571 0.029,0.025 0.052,0.057 0.081,0.081 29.329,25.027 58.381,53.878 83.008,87.814 0.008,0.01 0.02,0.017 0.027,0.027 0.047,0.062 0.09,0.128 0.135,0.19 39.059,52.588 58.006,123.456 35.408,193.278l-0.407,1.249 -0.543,1.168C 452.435,429.574 397.864,461.812 338.864,461.206 z m 0.706-42.957c 42.51,0.978 79.771-21.784 98.268-60.715 17.092-54.502 2.317-110.033 -29.516-152.792l-0.081-0.109 -0.081-0.109c-22.176-30.602 -49.033-57.389 -76.871-81.08l-0.353-0.326 -0.353-0.326c-12.536-11.669 -33.754-29.846 -53.139-44.749 -9.693-7.452 -18.984-14.11 -26.203-18.654 -2.714-1.709 -5.295-2.874 -7.413-3.774 -2.227,1.216 -5.052,2.929 -7.983,5.132 -5.903,4.435 -12.187,10.098 -19.035,15.152 -0.107,0.081 -0.219,0.163 -0.326,0.244C 155.713,122.366 91.702,178.49 60.921,235.073 35.932,288.459 37.023,352.357 72.326,389.901 120.327,432.582 191.642,423.302 227.208,379.502l 17.324-21.316 16.754,21.75c 9.639,12.505 21.144,22.067 35.109,29.326 14.639,5.718 29.183,8.666 43.174,8.988z" />
+<glyph unicode="&#xe0e0;" d="M 256.00,480.00 m0.00,0.00,-231.832-180.191 0.00-331.809 159.50,0.00 0.00,200.303 144.663,0.00 0.00-200.303 159.50,0.00 0.00,331.809L 256.00,480.00z" />
+<glyph unicode="&#xe0df;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 256.00,362.031L 381.00,264.875L 381.00,85.969L 295.00,85.969L 295.00,193.969L 217.00,193.969L 217.00,85.969L 131.00,85.969L 131.00,264.875L 256.00,362.031z" />
+<glyph unicode="&#xe0de;" d="M 309.867,3.746 m0.00,0.00,c 2.20,0.00 4.125-0.825 5.774-2.475 1.65-1.65 2.475-3.575 2.475-5.774l0.00-18.698c0.00-2.567 -0.825-4.675 -2.475-6.324 -1.65-1.65 -3.575-2.475 -5.774-2.475l-107.24,0.00c-5.866,0.00 -8.799,2.933 -8.799,8.799l0.00,18.698c0.00,2.20 0.825,4.125 2.475,5.774 1.65,1.65 3.758,2.475 6.324,2.475 z m 0.00,53.345c 2.20,0.00 4.125-0.825 5.774-2.475 1.65-1.65 2.475-3.758 2.475-6.324l0.00-18.698c0.00-2.20 -0.825-4.125 -2.475-5.774 -1.65-1.65 -3.575-2.475 -5.774-2.475l-107.24,0.00c-2.567,0.00 -4.675,0.825 -6.324,2.475 -1.65,1.65 -2.475,3.575 -2.475,5.774l0.00,18.698c0.00,5.866 2.933,8.799 8.799,8.799 z m 110.539,170.483 0.00,0.00 45.646-7.149c 4.766-0.733 8.616-2.842 11.549-6.324 2.933-3.483 4.033-7.241 3.30-11.274 -0.733-4.40 -2.933-7.791 -6.599-10.174 -3.667-2.383 -8.066-3.208 -13.199-2.475l-45.645,7.149c-5.133,0.733 -9.074,2.933 -11.824,6.599 -2.75,3.667 -3.758,7.516 -3.025,11.549 0.733,4.033 2.933,7.241 6.599,9.624 3.667,2.383 8.066,3.208 13.199,2.475 z m -4.949,103.94 0.00,0.00 42.346,18.698c 4.40,2.20 8.707,2.658 12.924,1.375 4.216-1.288 7.241-3.946 9.074-7.974 1.833-4.035 1.833-8.068 0.00-12.099 -1.833-4.033 -5.133-6.966 -9.899-8.799l-42.346-19.248c-4.40-1.833 -8.707-2.108 -12.924-0.825 -4.216,1.285 -7.241,3.943 -9.074,7.974 -1.833,4.035 -1.742,8.068 0.275,12.099 2.017,4.035 5.224,6.968 9.624,8.799 z m -71.493,70.393 0.00,0.00 25.297,39.046c 2.933,4.033 6.508,6.691 10.724,7.974 4.223,1.283 8.164,0.825 11.824-1.375 3.667-2.567 5.774-6.049 6.324-10.449 0.55-4.40 -0.458-8.616 -3.025-12.649l-25.297-39.046c-2.933-4.038 -6.508-6.696 -10.724-7.974 -4.216-1.283 -8.157-0.825 -11.824,1.375 -3.667,2.20 -5.866,5.591 -6.599,10.174 -0.733,4.583 0.367,8.891 3.30,12.924 z m -251.875-174.333c 4.766,0.733 9.074-0.092 12.924-2.475 3.85-2.383 6.141-5.591 6.874-9.624 0.733-4.033 -0.367-7.882 -3.30-11.549 -2.933-3.667 -6.966-5.866 -12.099-6.599l-45.645-7.149c-4.766-0.733 -9.074,0.092 -12.924,2.475 -3.85,2.383 -6.141,5.774 -6.874,10.174 -0.733,4.034 0.367,7.792 3.30,11.274 2.933,3.485 6.966,5.592 12.099,6.324 z m 4.949,103.94c 4.40-1.833 7.607-4.766 9.624-8.799 2.021-4.033 2.112-8.066 0.275-12.099 -1.833-4.033 -4.949-6.691 -9.349-7.974 -4.40-1.283 -8.799-1.008 -13.199,0.825l-42.346,19.248c-4.40,1.835 -7.607,4.768 -9.624,8.799 -2.017,4.033 -2.109,8.066 -0.275,12.099 1.833,4.033 4.858,6.691 9.074,7.974 4.216,1.283 8.707,0.825 13.474-1.375 z m 70.943,70.393c 2.933-4.035 4.033-8.343 3.30-12.924 -0.733-4.583 -2.933-7.974 -6.599-10.174 -3.30-2.20 -7.149-2.658 -11.549-1.375 -4.40,1.283 -7.882,3.942 -10.449,7.974l-25.297,39.046c-2.933,4.033 -4.033,8.249 -3.30,12.649 0.733,4.40 2.933,7.882 6.599,10.449 3.30,2.20 7.149,2.658 11.549,1.375 4.40-1.289 7.882-3.947 10.449-7.974 z m 103.94,14.299c0.00-5.133 -1.467-9.349 -4.40-12.649 -2.933-3.30 -6.599-4.949 -10.999-4.949 -4.033,0.00 -7.516,1.65 -10.449,4.949 -2.933,3.30 -4.40,7.516 -4.40,12.649l0.00,46.196c0.00,5.133 1.467,9.349 4.40,12.649 2.933,3.30 6.416,4.949 10.449,4.949 4.40,0.00 8.066-1.65 10.999-4.949 2.933-3.30 4.40-7.516 4.40-12.649 z m 88.816-218.054c-7.149-14.848 -14.94-30.705 -23.373-47.57 -13.303-21.517 -12.631-46.971 -20.898-69.018 -1.467-3.85 -4.216-6.141 -8.249-6.874l-104.49,0.00c-4.033,0.733 -6.782,3.025 -8.249,6.874 -6.372,24.081 -10.241,47.532 -20.898,69.018 -8.432,16.865 -16.223,32.722 -23.373,47.57 -16.484,36.439 -25.095,78.606 -8.249,116.314 6.049,13.199 14.482,24.381 25.297,33.547 10.816,9.166 23.648,16.04 38.496,20.623 14.848,4.583 31.072,6.874 48.67,6.874l 0.55,0.00 0.55,0.00c 17.598,0.00 33.822-2.292 48.67-6.874 14.848-4.583 27.68-11.457 38.496-20.623 10.816-9.166 19.34-20.348 25.573-33.547 15.792-39.559 9.336-78.805 -8.524-116.314z" />
+<glyph unicode="&#xe0f9;" d="M 256.00,480.00 m0.00,0.00,c-141.385,0.00 -256.00-114.615 -256.00-256.00 0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00 0.00,141.385 -114.615,256.00 -256.00,256.00 z m 0.00-95.757c 0.167,0.009 0.332,0.00 0.502,0.00 2.731,0.00 4.956-1.105 6.663-3.323 1.706-2.219 2.561-4.855 2.561-7.927l0.00-28.677c0.00-3.072 -0.855-5.725 -2.561-7.943 -1.704-2.219 -3.93-3.323 -6.663-3.323 -2.731,0.00 -5.028,1.105 -6.906,3.323 -1.877,2.219 -2.821,4.871 -2.821,7.943l0.00,28.677c0.00,3.072 0.943,5.708 2.821,7.927 1.76,2.08 3.893,3.193 6.403,3.323 z m -80.324-19.113c 0.976,0.032 1.975-0.085 2.999-0.34 2.731-0.682 4.956-2.392 6.663-5.123l 15.368-24.576c 1.706-2.731 2.384-5.367 2.042-7.927 -0.342-2.56 -1.535-4.697 -3.583-6.403 -2.389-1.699 -4.953-2.127 -7.684-1.281 -2.729,0.854 -4.955,2.651 -6.663,5.382l-15.87,24.057c-1.706,2.729 -2.295,5.471 -1.783,8.203 0.512,2.726 1.794,4.935 3.842,6.646 1.493,0.853 3.042,1.308 4.669,1.362 z m 160.632,0.00c 1.627-0.053 3.192-0.508 4.685-1.362 4.776-3.755 5.453-8.705 2.042-14.849L 327.165,324.863c-1.706-2.731 -3.932-4.529 -6.663-5.382 -2.731-0.854 -5.294-0.426 -7.684,1.281 -2.048,1.706 -3.241,3.843 -3.583,6.403 -0.344,2.56 0.35,5.197 2.059,7.927l 15.352,24.576c 1.702,2.728 3.927,4.438 6.663,5.123 1.024,0.256 2.023,0.372 2.999,0.34 z m -80.827-46.411 0.519,0.00c 10.921,0.00 21.073-1.459 30.46-4.361 9.386-2.901 17.488-7.158 24.316-12.79 6.827-5.632 12.204-12.63 16.13-20.993 10.617-23.192 4.764-50.422 -5.382-72.965 -4.435-9.216 -9.386-19.117 -14.849-29.698 -3.409-7.168 -5.795-13.562 -7.165-19.194 -1.818-7.532 -2.877-16.247 -5.625-24.332 -1.024-2.389 -2.733-3.744 -5.123-4.085l-65.54,0.00c-2.731,0.341 -4.512,1.696 -5.366,4.085 -2.769,7.857 -3.532,16.061 -5.901,24.332 -1.365,5.632 -3.752,12.025 -7.165,19.194 -5.12,10.582 -9.893,20.482 -14.33,29.698 -15.385,32.31 -16.985,66.701 10.488,93.957 14.507,11.434 32.687,17.151 54.533,17.151 z m -130.659-14.622c 1.773,0.013 3.513-0.395 5.22-1.248l 26.116-11.785c 2.731-1.365 4.778-3.236 6.144-5.625 1.365-2.389 1.365-4.953 0.00-7.684 -1.024-2.389 -2.911-4.01 -5.641-4.863 -2.729-0.854 -5.454-0.604 -8.186,0.762l-26.618,11.785c-2.731,1.365 -4.706,3.325 -5.901,5.885 -1.194,2.56 -1.267,5.035 -0.243,7.425 1.024,2.389 2.983,4.009 5.885,4.863 1.088,0.32 2.162,0.478 3.226,0.486 z m 261.82,0.00c 1.237,0.051 2.475-0.113 3.745-0.486 2.901-0.854 4.877-2.474 5.901-4.863 1.024-2.389 0.935-4.864 -0.259-7.425 -1.194-2.56 -3.154-4.519 -5.885-5.885l-26.634-11.785c-2.731-1.365 -5.456-1.615 -8.186-0.762 -2.731,0.85 -4.601,2.471 -5.625,4.863 -1.365,2.731 -1.365,5.294 0.00,7.684 1.365,2.387 3.413,4.258 6.144,5.625l 26.099,11.785c 1.536,0.768 3.111,1.182 4.701,1.248 z m -231.327-77.747c 2.176,0.096 4.173-0.437 5.966-1.589 2.389-1.536 3.921-3.673 4.604-6.403 0.342-2.731 -0.424-5.117 -2.302-7.165 -1.877-2.048 -4.353-3.419 -7.425-4.101l-28.677-4.604c-3.072-0.342 -5.709,0.263 -7.927,1.799 -2.219,1.536 -3.678,3.673 -4.361,6.403 -0.682,2.731 -0.005,5.117 2.042,7.165 2.048,2.048 4.451,3.241 7.181,3.583l 28.661,4.604c 0.768,0.171 1.512,0.276 2.237,0.308 z m 200.284,0.00c 1.056,0.056 2.155-0.052 3.307-0.308l 28.677-4.604c 2.731-0.342 5.117-1.535 7.165-3.583 2.048-2.048 2.725-4.435 2.042-7.165 -0.682-2.731 -2.126-4.867 -4.345-6.403 -2.219-1.536 -4.871-2.141 -7.943-1.799l-28.661,4.604c-3.072,0.682 -5.547,2.053 -7.425,4.101 -1.877,2.048 -2.66,4.435 -2.318,7.165 0.682,2.731 2.231,4.867 4.62,6.403 1.493,0.96 3.119,1.495 4.879,1.589 z m -133.398-107.315 67.583,0.00c 3.413,0.00 5.123-1.709 5.123-5.123l0.00-11.769c0.00-3.413 -1.709-5.123 -5.123-5.123l-67.583,0.00c-3.413,0.00 -5.123,1.709 -5.123,5.123l0.00,11.769c0.00,3.413 1.709,5.123 5.123,5.123 z m 0.00-32.762 67.583,0.00c 3.413,0.00 5.123-1.887 5.123-5.641l0.00-11.769c0.00-3.413 -1.709-5.123 -5.123-5.123l-67.583,0.00c-3.413,0.00 -5.123,1.709 -5.123,5.123l0.00,11.769c0.00,3.755 1.709,5.641 5.123,5.641z" />
+<glyph unicode="&#xe0f8;" d="M 204.00,480.00L 204.00,360.531L 143.281,360.531L 256.00,191.437L 368.719,360.531L 308.00,360.531L 308.00,480.00L 204.00,480.00 z M 0.00,214.719L0.00-32.00L 512.00-32.00L 512.00,214.719L 343.813,214.719C 343.813,166.238 304.481,126.906 256.00,126.906C 207.519,126.906 168.188,166.238 168.188,214.719L0.00,214.719z" />
+<glyph unicode="&#xe0f7;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C 0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 224.75,387.812L 287.25,387.812L 287.25,316.031L 323.719,316.031L 256.00,214.437L 188.281,316.031L 224.75,316.031L 224.75,387.812 z M 102.188,228.437L 203.25,228.437C 203.25,199.311 226.873,175.656 256.00,175.656C 285.127,175.656 308.75,199.311 308.75,228.437L 409.813,228.437L 409.813,80.187L 102.188,80.187L 102.188,228.437z" />
+<glyph unicode="&#xe0f6;" d="M 40.00,208.00 m0.00,0.00, 118.544,160.00 194.912,0.00 118.544-160.00 -88.00,0.00 -64.00-64.00 -128.00,0.00 -64.00,64.00 -88.00,0.00 z m 100.496,192.00 -140.496-192.00 0.00-160.00 512.00,0.00 0.00,160.00 -140.496,192.00 -231.008,0.00z" />
+<glyph unicode="&#xe08b;" d="M 512.00,437.234 m0.00,0.00,0.00-75.156 -512.00,0.00 0.00,75.125 512.00,0.031 z m -512.00-117.125 144.188-96.125 -144.188-96.125 0.00,192.25 z m 512.00-0.563 0.00-74.906 -296.00,0.00 0.00,74.906 296.00,0.00 z m 0.00-116.781 0.00-74.906 -296.00,0.00 0.00,74.906 296.00,0.00 z m -512.00-116.875 512.00-0.031 0.00-75.094 -512.00,0.00 0.00,75.125z" />
+<glyph unicode="&#xe08a;" d="M 0.00,437.25L 0.00,362.094L 512.00,362.094L 512.00,437.219L 0.00,437.25 z M 512.00,320.125L 367.813,224.00L 512.00,127.875L 512.00,320.125 z M 0.00,319.562L 0.00,244.656L 296.00,244.656L 296.00,319.562L 0.00,319.562 z M 0.00,202.781L 0.00,127.875L 296.00,127.875L 296.00,202.781L 0.00,202.781 z M 512.00,85.906L 0.00,85.875L 0.00,10.781L 512.00,10.781L 512.00,85.906z" />
+<glyph unicode="&#xe089;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 247.969,392.156C 259.699,392.156 269.251,388.993 276.625,382.625C 283.998,376.257 287.687,367.859 287.688,357.469C 287.687,347.078 283.998,338.712 276.625,332.344C 269.251,325.975 259.699,322.781 247.969,322.781C 236.238,322.781 226.686,325.975 219.313,332.344C 212.274,338.712 208.75,347.078 208.75,357.469C 208.75,367.859 212.274,376.257 219.313,382.625C 226.686,388.993 236.238,392.156 247.969,392.156 z M 284.656,280.062L 294.719,268.50C 289.356,254.423 286.656,238.843 286.656,221.75L 286.656,98.562C 286.656,94.205 287.017,91.207 287.688,89.531C 288.693,87.855 290.867,86.176 294.219,84.50C 300.252,80.813 309.113,77.289 320.844,73.937L 317.344,55.844C 288.52,58.86 268.231,60.344 256.50,60.344C 244.769,60.344 224.676,58.86 196.188,55.844L 192.156,73.937C 204.222,76.619 213.115,79.978 218.813,84.00C 223.84,87.016 226.344,91.859 226.344,98.562L 226.344,224.25C 226.344,235.981 221.799,241.844 212.75,241.844L 195.156,238.344L 191.156,258.437C 203.222,263.465 219.132,268.339 238.906,273.031C 258.681,277.723 273.931,280.062 284.656,280.062z" />
+<glyph unicode="&#xe088;" d="M0.00,480.00L0.00,333.969L 151.563,333.969C 174.879,363.873 211.393,383.156 252.469,383.156C 293.547,383.156 330.09,363.876 353.406,333.969L 512.00,333.969L 512.00,480.00L0.00,480.00 z M 409.719,458.281L 457.594,458.281C 474.637,458.281 488.344,444.544 488.344,427.50L 488.344,387.406C 488.344,370.362 474.637,356.625 457.594,356.625L 409.719,356.625C 392.675,356.625 378.969,370.362 378.969,387.406L 378.969,427.50C 378.969,444.544 392.675,458.281 409.719,458.281 z M 56.219,457.812L 73.688,457.812L 73.688,356.594L 56.219,356.594L 56.219,457.812 z M 86.25,457.812L 104.25,457.812L 104.25,356.594L 86.25,356.594L 86.25,457.812 z M 116.813,457.812L 134.281,457.812L 134.281,427.50L 134.281,386.375L 134.281,356.594L 116.813,356.594L 116.813,457.812 z M 43.125,455.094L 43.125,356.594L 25.094,356.594L 25.094,427.50C 25.094,433.631 26.824,439.227 30.281,444.281C 33.738,449.332 38.031,452.929 43.125,455.094 z M 252.281,368.656C 190.175,368.656 139.813,318.52 139.813,256.719C 139.813,194.917 190.175,144.812 252.281,144.812C 314.388,144.812 364.75,194.917 364.75,256.719C 364.75,318.52 314.388,368.656 252.281,368.656 z M 252.281,345.937C 301.802,345.937 341.938,305.997 341.938,256.719C 341.938,207.441 301.802,167.50 252.281,167.50C 202.76,167.50 162.625,207.441 162.625,256.719C 162.625,305.997 202.76,345.937 252.281,345.937 z M 0.00,313.281L0.00-32.00L 512.00-32.00L 512.00,313.281L 366.563,313.281C 375.15,296.277 379.969,277.06 379.969,256.75C 379.969,186.95 322.879,130.375 252.469,130.375C 182.058,130.375 125.00,186.95 125.00,256.75C 125.00,277.065 129.846,296.274 138.438,313.281L0.00,313.281z" />
+<glyph unicode="&#xe087;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 167.344,333.719L 344.625,333.719C 356.557,332.911 365.56,324.229 365.719,313.219L 365.719,135.344C 364.873,122.945 355.853,114.432 344.625,114.281L 167.344,114.281C 154.953,115.126 146.432,124.126 146.281,135.344L 146.281,313.219C 146.965,325.093 156.85,333.578 167.344,333.719 z M 197.188,293.344C 190.825,293.186 186.723,288.29 186.656,282.781L 186.656,165.781C 186.821,159.43 191.694,155.285 197.188,155.219L 314.781,155.219C 321.146,155.384 325.278,160.276 325.344,165.781L 325.344,282.781C 325.188,289.158 320.302,293.278 314.781,293.344L 197.188,293.344z" />
+<glyph unicode="&#xe086;" d="M 246.741,4.351 m0.00,0.00, 65.157,0.00 -7.202-36.351 -199.93,0.00 7.202,36.351 65.157,0.00 87.791,438.955 -65.157,0.00 7.545,36.694 199.93,0.00 -7.545-36.694 -65.157,0.00 -87.791-438.955" />
+<glyph unicode="&#xe085;" d="M 140.058,366.928 m0.00,0.00,c-77.348,0.00 -140.058-62.694 -140.058-140.042 0.00-77.348 62.71-140.058 140.058-140.058 69.001,0.00 126.329,49.903 137.901,115.585 0.131-0.007 0.258-0.027 0.389-0.032l 53.925,0.00 0.00-77.849 59.536,0.00 0.00,77.849 28.073,0.00 0.00-112.669 59.536,0.00 0.00,112.67 32.582,0.00 0.00,59.535 -235.906,0.00c-0.138-0.011 -0.269-0.021 -0.405-0.032 -15.541,60.409 -70.368,105.043 -135.631,105.043 z m 0.00-64.791c 41.563,0.00 75.251-33.688 75.251-75.251 0.00-41.563 -33.688-75.267 -75.251-75.267 -41.563,0.00 -75.267,33.704 -75.267,75.267 0.00,41.563 33.704,75.251 75.267,75.251z" />
+<glyph unicode="&#xe084;" d="M 51.313,406.437L 51.313,138.469L 460.688,138.469L 460.688,406.437L 51.313,406.437 z M 102.094,357.594L 409.906,357.594L 409.906,187.281L 102.094,187.281L 102.094,357.594 z M 0.00,114.094L0.00,68.781L 26.00,41.812L 486.00,41.812L 512.00,68.781L 512.00,114.094L0.00,114.094 z M 208.531,99.25L 303.469,99.25L 303.469,58.219L 208.531,58.219L 208.531,99.25z" />
+<glyph unicode="&#xe083;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 123.719,341.812L 388.281,341.812L 388.281,168.656L 123.719,168.656L 123.719,341.812 z M 156.531,310.25L 156.531,200.187L 355.469,200.187L 355.469,310.25L 156.531,310.25 z M 90.563,152.906L 421.438,152.906L 421.438,123.625L 404.625,106.187L 107.375,106.187L 90.563,123.625L 90.563,152.906 z M 225.313,143.312L 225.313,116.781L 286.688,116.781L 286.688,143.312L 225.313,143.312z" />
+<glyph unicode="&#xe082;" d="M 48.83,168.624 m0.00,0.00,c-2.767,6.67 -6.211,13.299 -7.219,20.494C 28.337,281.885 104.025,357.099 172.72,385.666c 68.696,28.567 147.792-16.876 194.685,31.904 11.715,13.229 23.639,25.756 41.452,25.849 7.425-0.369 13.608-3.858 16.767-10.013 58.615-120.055 -25.129-262.407 -119.699-312.986 -60.015-29.665 -122.117-36.191 -180.247-16.069 -16.164,3.834 -29.121,20.74 -45.877,20.959 -11.555-6.483 -21.152-27.607 -28.993-39.24 -9.134-15.852 -27.319-20.042 -40.405-6.171 -38.165,37.612 41.148,70.992 38.424,88.726 z m 51.00,15.37c 8.197-6.622 20.021-4.745 26.315,1.863 50.328,60.978 118.475,87.73 192.59,85.699 10.922-0.634 18.859,8.21 19.562,17.699 0.219,11.268 -8.452,18.888 -18.165,19.562 -89.577,4.979 -167.291-34.518 -222.165-98.274 -6.951-8.679 -5.689-20.228 1.863-26.548z" />
+<glyph unicode="&#xe081;" d="M0.00,480.00L0.00-32.00L 512.00-32.00L 512.00,480.00L0.00,480.00 z M 125.563,379.344C 145.842,379.115 165.818,365.125 166.688,340.906C 167.121,319.37 148.353,302.966 125.031,302.469L 124.469,302.469C 104.391,302.701 84.784,317.042 83.875,340.906C 84.161,362.203 102.063,378.839 125.563,379.344 z M 343.125,277.594C 365.421,277.456 386.463,270.841 403.75,253.219C 421.716,233.183 427.483,205.556 428.125,177.469L 428.125,49.719L 354.50,49.719L 354.50,168.781C 354.337,191.097 346.692,218.222 317.156,219.125C 299.846,218.941 287.64,208.882 279.281,192.062C 277.00,186.649 276.671,180.426 276.563,174.219L 276.563,49.719L 202.969,49.719C 203.25,111.959 203.637,174.196 203.50,236.437C 203.50,254.118 203.33,266.023 202.969,272.156L 276.563,272.156L 276.563,240.781C 282.809,249.666 289.737,258.092 299.031,264.875C 311.637,273.871 326.779,277.32 343.125,277.594 z M 88.219,272.156L 161.813,272.156L 161.813,49.719L 88.219,49.719L 88.219,272.156z" />
+<glyph unicode="&#xe080;" d="M 0.00,60.204 m0.00,0.00, 92.202,0.00 0.00-92.202 -92.202,0.00 z m 0.00,0.00 92.202,0.00 0.00-92.202 -92.202,0.00 z m 0.00,139.932 92.202,0.00 0.00-92.202 -92.202,0.00 z m 0.00,139.932 92.202,0.00 0.00-92.202 -92.202,0.00 z m 0.00,139.932 92.202,0.00 0.00-92.202 -92.202,0.00 z m 135.506-419.796 376.492,0.00 0.00-92.202 -376.492,0.00 z m 0.00,0.00 376.492,0.00 0.00-92.202 -376.492,0.00 z m 0.00,139.932 376.492,0.00 0.00-92.202 -376.492,0.00 z m 0.00,139.932 376.492,0.00 0.00-92.202 -376.492,0.00 z m 0.00,139.932 376.492,0.00 0.00-92.202 -376.492,0.00z" />
+<glyph unicode="&#xe07f;" d="M 256.00,480.00C 228.195,480.00 206.781,456.801 206.781,429.062C 206.781,402.345 206.594,378.969 206.594,378.969L 157.156,378.969C 156.226,378.969 155.326,378.866 154.438,378.719L 140.688,378.719L 140.688,362.531L 140.688,330.687L 371.313,330.687L 371.313,362.531L 371.313,378.719L 357.563,378.719C 356.675,378.866 355.774,378.969 354.844,378.969L 305.406,378.969C 305.406,378.969 305.969,400.13 305.969,428.906C 305.969,455.624 283.805,480.00 256.00,480.00 z M 74.75,431.281L 74.75-32.00L 437.25-32.00L 437.25,431.281L 322.406,431.281L 322.406,397.719L 404.063,397.719L 404.063,1.625L 107.969,1.625L 107.969,397.719L 189.594,397.719L 189.594,431.281L 74.75,431.281 z M 256.00,430.656C 265.109,430.656 272.469,423.326 272.469,414.25C 272.469,405.157 265.109,397.812 256.00,397.812C 246.891,397.812 239.531,405.157 239.531,414.25C 239.531,423.326 246.891,430.656 256.00,430.656 z M 140.688,298.125L 140.688,281.687L 157.156,281.687L 157.156,298.125L 140.688,298.125 z M 190.125,297.812L 190.125,281.375L 371.313,281.375L 371.313,297.812L 190.125,297.812 z M 140.688,236.125L 140.688,219.687L 157.156,219.687L 157.156,236.125L 140.688,236.125 z M 190.125,235.812L 190.125,219.344L 371.313,219.344L 371.313,235.812L 190.125,235.812 z M 140.688,174.125L 140.688,157.687L 157.156,157.687L 157.156,174.125L 140.688,174.125 z M 190.125,173.781L 190.125,157.344L 371.313,157.344L 371.313,173.781L 190.125,173.781 z M 140.688,112.094L 140.688,95.656L 157.156,95.656L 157.156,112.094L 140.688,112.094 z M 190.125,111.75L 190.125,95.312L 371.313,95.312L 371.313,111.75L 190.125,111.75 z M 140.688,50.094L 140.688,33.656L 157.156,33.656L 157.156,50.094L 140.688,50.094 z M 190.125,49.75L 190.125,33.312L 371.313,33.312L 371.313,49.75L 190.125,49.75z" />
+<glyph unicode="&#xe07e;" d="M 252.475,480.00 m0.00,0.00,c-63.719,0.304 -119.666-37.902 -146.694-97.598 -13.901-33.146 -13.075-78.54 -12.43-118.18l-71.052,0.00 0.00-295.918 467.098,0.00 0.00,295.918 -77.267,0.00 0.00,56.123c0.00,22.002 -4.53,42.311 -12.992,62.057C 374.398,439.093 316.194,479.696 252.475,480.00 z m 0.00-94.225c 37.222-0.988 64.372-28.977 65.992-64.868l0.00-0.562 0.00-56.123 -131.453,0.00 0.00,56.123c 3.513,39.07 28.239,66.418 65.461,65.43z" />
+<glyph unicode="&#xe07d;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 254.156,362.812C 288.728,362.648 320.327,340.602 333.75,309.844C 338.341,299.131 340.781,288.125 340.781,276.187L 340.781,245.75L 382.719,245.75L 382.719,85.187L 129.281,85.187L 129.281,245.75L 167.844,245.75C 167.494,267.257 167.052,291.86 174.594,309.844C 189.258,342.232 219.585,362.977 254.156,362.812 z M 252.281,311.687C 233.132,311.284 220.503,296.723 218.656,276.187L 218.656,245.75L 289.969,245.75L 289.969,276.187L 289.969,276.50C 289.09,295.973 274.352,311.151 254.156,311.687C 253.525,311.704 252.899,311.701 252.281,311.687z" />
+<glyph unicode="&#xe07c;" d="M 255.639,480.00C 124.306,480.00 17.444,379.523 17.444,256.004C 17.444,249.526 17.737,242.976 18.318,236.469L 22.999,138.014L 173.505,150.372L 168.824,248.764C 168.621,251.117 168.481,253.593 168.481,256.004C 168.481,301.205 207.591,337.951 255.639,337.951C 303.687,337.951 342.797,301.176 342.797,256.004C 342.797,253.593 342.686,251.146 342.454,248.764L 337.804,150.372L 488.279,138.014L 492.96,236.469C 493.541,242.976 493.834,249.526 493.834,256.004C 493.834,379.523 386.972,480.00 255.639,480.00 z M 332.187,91.58L 323.137-3.942C 322.324-12.947 329.464-20.914 339.021-21.698L 454.764-31.184C 464.292-31.969 472.799-25.305 473.612-16.299L 482.693,79.16L 332.187,91.58 z M 179.028,91.517L 28.585,79.129L 37.634-16.299C 38.477-25.305 46.986-32.00 56.514-31.216L 172.257-21.729C 181.785-20.945 188.952-12.949 188.109-3.973L 179.028,91.517z" />
+<glyph unicode="&#xe07b;" d="M 310.399,480.00 m0.00,0.00,0.00-71.288 77.801,0.00 -102.553-101.87c-28.776,18.622 -63.076,29.428 -99.904,29.428 -101.694,0.00 -184.143-82.433 -184.143-184.127 0.00-101.694 82.449-184.143 184.143-184.143 101.694,0.00 184.127,82.449 184.127,184.143 0.00,38.654 -11.906,74.526 -32.256,104.145l 100.83,100.83 0.00-77.119 71.288,0.00c0.00,62.496 0.677,137.667 0.666,200.00 z M 185.744,262.154c 60.763,0.00 110.011-49.249 110.011-110.011 0.00-60.763 -49.249-110.028 -110.011-110.028 -60.763,0.00 -110.028,49.265 -110.028,110.028 0.00,60.763 49.265,110.011 110.028,110.011z" />
+<glyph unicode="&#xe07a;" d="M 256.00,480.00 m0.00,0.00,c-106.591,0.00 -193.00-86.409 -193.00-193.00 0.00-35.647 6.977-72.464 27.00-99.00l 166.00-220.00 166.00,220.00c 18.187,24.103 27.00,66.712 27.00,99.00 0.00,106.591 -86.409,193.00 -193.00,193.00 z m 0.00-111.781c 44.849,0.00 81.219-36.369 81.219-81.219 0.00-44.849 -36.369-81.219 -81.219-81.219 -44.849,0.00 -81.219,36.369 -81.219,81.219 0.00,44.849 36.369,81.219 81.219,81.219z" />
+<glyph unicode="&#xe079;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 256.00,393.281C 326.479,393.281 383.625,336.135 383.625,265.656C 383.625,244.307 377.775,216.124 365.75,200.187L 256.00,54.719L 146.25,200.187C 133.011,217.733 128.375,242.086 128.375,265.656C 128.375,336.135 185.521,393.281 256.00,393.281 z M 256.00,319.344C 226.345,319.344 202.313,295.311 202.313,265.656C 202.313,236.001 226.345,211.969 256.00,211.969C 285.655,211.969 309.688,236.001 309.688,265.656C 309.688,295.311 285.655,319.344 256.00,319.344z" />
+<glyph unicode="&#xe078;" d="M 242.188,480.00C 229.12,478.981 216.309,476.471 203.906,472.719L 203.906,404.062L 175.781,404.062L 175.781,461.594C 163.287,455.409 151.441,447.938 140.688,439.062C 140.631,439.016 140.588,438.953 140.531,438.906L 140.531,158.469C 140.588,158.422 140.631,158.36 140.688,158.312C 173.315,131.285 214.578,116.83 256.00,116.75C 298.382,116.766 339.33,131.916 371.313,158.312C 371.37,158.36 371.413,158.422 371.469,158.469L 371.469,438.906C 371.412,438.953 371.369,439.016 371.313,439.062C 360.632,447.91 348.952,455.254 336.719,461.344L 336.719,404.062L 308.594,404.062L 308.594,472.531C 296.113,476.333 283.281,478.94 270.313,480.00L 270.313,404.062L 242.188,404.062L 242.188,480.00 z M 85.313,255.906L 85.313,112.312C 95.602,102.816 106.681,94.192 118.438,86.50C 145.523,68.779 176.188,56.106 209.125,49.875L 209.125,66.437L 302.875,66.437L 302.875,49.875C 335.812,56.106 366.477,68.779 393.563,86.50C 405.319,94.192 416.398,102.816 426.688,112.312L 426.688,255.906L 393.563,255.906L 393.563,128.812C 356.024,98.158 308.165,79.75 256.00,79.75C 203.835,79.75 155.976,98.158 118.438,128.812L 118.438,255.906L 85.313,255.906 z M 302.875,49.875C 287.691,47.002 272.017,45.50 256.00,45.50C 239.983,45.50 224.309,47.002 209.125,49.875L 209.125,3.156L 153.656,3.156L 153.656-32.00L 209.125-32.00L 302.875-32.00L 358.344-32.00L 358.344,3.156L 302.875,3.156L 302.875,49.875z" />
+<glyph unicode="&#xe077;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 247.031,390.50L 247.031,341.125L 265.313,341.125L 265.313,390.50C 273.748,389.81 282.101,388.129 290.219,385.656L 290.219,341.125L 308.50,341.125L 308.50,378.375C 316.457,374.414 324.053,369.629 331.00,363.875C 331.037,363.844 331.057,363.812 331.094,363.781L 331.094,181.375C 331.057,181.344 331.037,181.312 331.00,181.281C 310.198,164.112 283.566,154.26 256.00,154.25C 229.058,154.302 202.222,163.702 181.00,181.281C 180.963,181.312 180.943,181.344 180.906,181.375L 180.906,363.781C 180.943,363.812 180.963,363.844 181.00,363.875C 187.994,369.647 195.686,374.509 203.813,378.531L 203.813,341.125L 222.125,341.125L 222.125,385.781C 230.192,388.222 238.532,389.837 247.031,390.50 z M 144.969,244.75L 166.531,244.75L 166.531,162.094C 190.947,142.155 222.071,130.187 256.00,130.187C 289.929,130.187 321.053,142.155 345.469,162.094L 345.469,244.75L 367.031,244.75L 367.031,151.344C 360.339,145.167 353.115,139.565 345.469,134.562C 327.852,123.036 307.923,114.803 286.50,110.75L 286.50,80.375L 322.563,80.375L 322.563,57.50L 286.50,57.50L 225.50,57.50L 189.438,57.50L 189.438,80.375L 225.50,80.375L 225.50,110.75C 204.077,114.803 184.148,123.036 166.531,134.562C 158.885,139.565 151.661,145.167 144.969,151.344L 144.969,244.75 z M 225.50,110.75C 235.376,108.882 245.582,107.906 256.00,107.906C 266.418,107.906 276.624,108.882 286.50,110.75L 286.50,121.531L 225.50,121.531L 225.50,110.75z" />
+<glyph unicode="&#xe076;" d="M 0.00,296.50 m0.00,0.00, 512.00,0.00 0.00-145.00 -512.00,0.00z" />
+<glyph unicode="&#xe075;" d="M 256.00,480.00C 114.615,480.00 0.00,365.385 0.00,224.00C0.00,82.615 114.615-32.00 256.00-32.00C 397.385-32.00 512.00,82.615 512.00,224.00C 512.00,365.385 397.385,480.00 256.00,480.00 z M 109.00,265.625L 403.031,265.625L 403.031,182.375L 109.00,182.375L 109.00,265.625z" />
+<glyph unicode="&#xe06a;" d="M 64.00,416.00L 224.00,416.00L 224.00,32.00L 64.00,32.00zM 288.00,416.00L 448.00,416.00L 448.00,32.00L 288.00,32.00z" />
+<glyph unicode="&#xe10f;" d="M 18.042,79.89 m0.00,0.00, 79.541,0.00 0.00,73.517c0.00,23.259 11.354,48.943 33.055,70.422 21.70,21.479 53.893,44.821 106.835,81.879 53.179,37.225 85.315,57.955 99.756,70.882 14.44,12.927 13.202,10.848 13.202,29.663l0.00,72.858 0.00,0.889 63.211,0.00 0.00-0.889 0.00-72.858c0.00-28.248 -11.807-56.661 -34.24-76.743 -22.433-20.082 -53.508-39.036 -105.681-75.558 -52.411-36.688 -83.431-60.013 -98.604-75.031 -15.173-15.018 -14.321-15.664 -14.321-25.515l0.00-73.517 82.998,0.00L 130.934-33.002 z m 251.168,0.00 81.221,0.00 0.00,73.517c0.00,9.851 0.819,10.498 -14.354,25.515 -10.037,9.933 -27.827,24.002 -53.335,42.667 3.202,2.257 5.736,4.084 9.12,6.453 18.67,13.07 32.141,22.08 46.092,31.54 17.775-13.421 31.582-24.847 42.602-35.754 21.70-21.479 33.088-47.162 33.088-70.422l0.00-73.517 81.319,0.00L 382.101-33.002z" />
+<glyph unicode="&#xe110;" d="M 466.619,480.00 291.808,305.188c-12.561,7.219 -28.865,5.476 -39.599-5.259 -8.979-8.979 -11.663-21.856 -8.077-33.178 -24.666,12.608 -53.03,14.733 -81.581,2.557C 108.998,242.733 72.05,187.44 0.00,181.016c 5.499-11.322 12.62-23.947 21.354-37.856 30.296-4.77 60.127,4.864 83.44,28.646 -9.054-28.18 -31.178-49.211 -61.098-60.169 7.763-10.351 16.643-21.218 26.671-32.539 34.496,11.533 46.831,27.314 14.556-15.485 13.612-14.139 28.192-29.132 46.107-41.749 7.959,29.388 29.409,51.954 60.14,63.568 -23.547-22.07 -32.977-54.037 -27.165-88.292 17.791-11.969 34.132-21.70 49.012-29.14 12.675,54.372 49.659,110.772 88.292,162.551 12.465,26.239 10.446,54.593 -2.818,81.668 11.385-3.711 24.392-1.059 33.44,7.99 10.735,10.735 12.478,27.038 5.259,39.599L 512.00,434.619 466.619,480.00z" />
+<glyph unicode="&#xe111;" d="M 345.16,422.857 m0.00,0.00,0.00-109.678 57.161,0.00 0.00-114.304 -223.983,0.00 0.00,64.053L0.00,144.035l 178.339-118.893 0.00,64.053 223.983,0.00 109.678,0.00 0.00,109.678 0.00,114.304 0.00,109.678 -109.678,0.00 -57.161,0.00z" />
+<glyph unicode="&#xe112;" d="M 256.002,480.00C 114.617,480.00 0.001,365.385 0.001,224.00c0.00-141.385 114.615-256.00 256.00-256.00 141.385,0.00 256.00,114.615 256.00,256.00C 512.002,365.385 397.387,480.00 256.002,480.00 z M 162.908,342.50c 19.57,0.16 28.956-1.26 44.969-6.813 26.419-9.162 48.919-28.096 64.375-54.188 24.051-45.879 44.866-100.108 61.781-135.813 22.649-31.212 68.91-29.762 85.975-10.848 39.233,43.486 -20.347,67.711 -41.288,74.723 -23.45,7.33 -50.969,19.993 -61.406,41.563 -19.131,54.486 16.035,90.197 61.406,88.969 14.076,2.023 40.835-6.14 58.375-34.50l-22.844-12.375c-9.684,10.251 -23.489,18.757 -36.75,18.875 -29.532,4.159 -45.693-33.509 -27.844-54.438 6.022-6.20 13.381-9.614 41.188-19.031 39.727-13.35 68.689-26.521 70.875-67.469 2.698-55.278 -52.212-88.419 -107.844-75.594 -22.404,6.082 -40.915,22.003 -52.688,45.281 -20.696,40.35 -35.181,89.958 -56.50,125.563 -17.892,28.433 -46.422,44.044 -80.469,44.00 -41.73,0.562 -78.264-32.41 -90.094-65.656 -8.815-35.417 -0.172-71.349 24.50-95.625 57.888-51.315 121.754-17.71 147.156,18.438 1.073,0.00 14.375-28.60 14.375-30.906 -17.284-20.802 -49.734-38.807 -73.563-43.25 -12.711-2.216 -33.14-2.248 -45.188-0.063C 94.791,101.802 55.923,137.841 42.814,184.75 23.356,263.076 74.541,325.58 133.47,339.25c 9.86,2.603 14.707,3.129 29.438,3.25z" />
+<glyph unicode="&#xe113;" d="M 131.671-24.581C 87.371-13.173 54.879,27.299 49.708,72.189 39.918,140.145 68.676,206.663 107.048,261.231 99.875,277.151 90.058,285.787 75.797,264.453 49.833,228.571 30.887,187.895 18.14,145.633 10.051,200.306 49.713,252.694 74.93,291.277 70.058,313.531 42.982,343.405 44.037,342.972 29.718,360.747 13.934,396.762 29.027,417.774 49.539,452.373 87.678,481.103 129.227,479.967 155.109,473.739 167.612,447.147 183.419,428.04c 5.701-7.664 11.401-15.328 17.102-22.993 57.57,30.721 122.528,57.415 188.925,45.206 49.082-7.612 89.85-47.986 98.33-96.862 16.736-82.479 -19.16-165.434 -67.432-230.721 -50.056-66.11 -117.15-124.626 -198.88-145.986 -29.262-6.057 -60.546-8.477 -89.793-1.266 z M 246.685,8.14C 309.34,28.509 356.694,78.033 398.626,126.627 444.448,184.858 475.324,261.819 460.227,336.496 449.229,384.432 404.881,421.433 355.657,423.335 307.783,426.432 260.119,411.565 217.985,389.825c-0.87-6.812 10.08-28.777 20.53-17.236 44.652,23.201 99.259,33.561 147.943,17.649 31.486-11.697 54.267-42.208 55.171-75.988 5.905-71.57 -37.766-136.375 -88.32-182.877 -16.522-19.506 -35.165-27.044 -61.534-13.87 -37.244,17.066 -76.021,31.224 -112.312,50.124 -24.109,22.612 -41.016,51.706 -61.414,77.598 -7.045-8.556 -13.959-23.515 -20.119-34.584 -24.764-48.94 -41.546-111.28 -11.303-161.767 25.966-45.13 84.065-57.837 131.98-47.78 9.505,1.71 18.888,4.083 28.079,7.046 z m 67.124,111.525C 305.778,165.921 300.731,212.847 294.873,259.31 273.929,293.29 247.184,324.672 226.584,358.116 204.743,387.315 182.243,419.459 158.911,444.37 146.647,465.402 121.592,477.581 98.68,465.471 68.102,452.631 37.342,427.902 30.827,393.809c 7.589-26.765 28.491-48.467 43.38-71.861 37.33-49.163 70.287-101.209 107.194-145.352 44.471-19.425 91.209-38.938 133.484-59.203 z M 190.187,193.782c-19.608,9.683 -27.882,35.028 -42.827,51.186 -20.476,28.772 -43.297,56.231 -60.359,87.194 5.585,20.774 12.455,24.741 24.525,38.969 17.763,12.629 53.135,45.23 75.585,13.182 29.687-37.693 59.253-75.788 84.212-116.813l 24.104-99.36 -21.222-16.878C 252.819,163.477 190.187,193.782 190.187,193.782 z m -20.529,94.627c-17.39,23.47 -33.624,48.085 -53.272,69.694 -25.159-16.751 -9.286-38.606 4.239-59.404 22.411-29.144 42.431-60.24 66.475-88.058 33.807,31.006 -11.015,63.237 -17.441,77.768 z m 88.634-23.577c-6.143,21.63 -24.573,39.141 -36.788,58.235 -17.095,22.974 -33.757,46.284 -51.525,68.748 -11.558-6.228 -24.44-6.797 -33.635-16.435 17.44-27.353 37.287-55.751 56.568-82.197 18.762-23.352 42.431-37.537 65.38-28.352 z M 65.541,353.338C 46.285,376.518 75.985,401.575 92.423,416.195 107.527,428.903 126.747,438.394 145.976,435.261c 12.137-1.978 27.037-17.402 16.728-24.192 -25.26-16.638 -57.38-28.26 -74.473-57.09 -7.981-14.986 -13.346-15.145 -22.69-0.64 z M 86.481,369.585C 101.195,392.578 128.132,401.673 149.905,415.83 146.388,441.685 113.014,420.188 100.867,410.284 88.759,398.66 53.864,372.912 77.318,358.878c 4.146,2.543 6.357,6.96 9.163,10.706 z M 45.128,386.281C 40.441,412.158 62.991,434.331 83.326,446.934 94.996,454.04 134.883,467.887 130.918,445.727 100.305,435.977 73.168,414.984 56.258,387.464c-2.578-4.488 -9.345-9.221 -11.13-1.183 z M 373.269,177.49c 30.035,39.882 55.575,92.07 40.024,142.766 -14.962,45.053 -69.391,60.083 -111.857,51.425 -17.187-6.027 -56.695-6.515 -54.612-26.889 18.046-26.047 37.531-51.051 56.452-76.46 6.422-47.152 11.687-95.055 19.078-141.608 19.459,13.826 35.631,32.477 50.915,50.766z" />
+<glyph unicode="&#xe114;" d="M 141.179,98.499 m0.00,0.00,-0.394-31.864 -140.785,0.00 0.00,31.864C 0.00,137.123 32.526,168.06 71.149,168.06c 38.624,0.00 70.527-30.941 70.029-69.561 z M 135.124,243.45c0.00-35.399 -28.575-64.095 -63.974-64.095 -35.399,0.00 -64.217,28.697 -64.217,64.095 0.00,35.399 28.818,64.096 64.217,64.096 35.399,0.00 63.974-28.697 63.974-64.096 z m 180.647-140.069 -0.454-36.746 -162.355,0.00 0.00,36.746c0.00,44.542 37.509,80.219 82.05,80.219 44.541,0.00 81.333-35.681 80.759-80.219 z m -6.983,167.159c0.00-40.822 -32.953-73.915 -73.776-73.915 -40.822,0.00 -74.055,33.093 -74.055,73.915 0.00,40.822 33.233,73.915 74.055,73.915 40.822,0.00 73.776-33.093 73.776-73.915 z m 203.205-162.277 -0.515-41.628 -183.924,0.00 0.00,41.628c0.00,50.459 42.492,90.876 92.951,90.876 50.459,0.00 92.138-40.422 91.488-90.876 z m -7.911,189.367c0.00-46.246 -37.331-83.736 -83.577-83.736 -46.246,0.00 -83.894,37.49 -83.894,83.736 0.00,46.246 37.648,83.736 83.894,83.736 46.246,0.00 83.577-37.49 83.577-83.736z" />
+<glyph unicode="&#xe115;" d="M 309.753,335.22 m0.00,0.00,c-11.836-0.083 -23.715-2.048 -35.091-6.171 -2.37-0.888 -6.21-2.188 -7.894-6.044l 0.518-203.985c 1.006-2.219 2.331-3.451 4.545-4.242l 181.364,0.00c 29.644-0.52 52.745,24.835 56.484,55.719 3.202,33.439 -17.232,63.385 -53.087,68.58 -10.185,1.47 -22.874,0.01 -33.194-4.067 -0.346-0.155 -0.444,0.235 -0.71,2.679 -2.547,22.397 -11.935,42.144 -27.022,60.694 -20.772,22.883 -53.192,37.065 -85.914,36.837 z m -56.189-14.918c-3.46,0.00 -6.771-49.258 -7.32-147.78 8.475-75.554 7.521-77.516 15.524,0.00 -1.137,98.527 -4.745,147.782 -8.205,147.78 z m -21.919-11.729c-3.46-0.107 -6.697-45.564 -7.104-136.051 8.475-75.554 7.521-77.516 15.524,0.00 -1.278,90.916 -4.96,136.158 -8.42,136.051 z m -63.596-14.057c-0.026,0.00 -0.054,0.00 -0.08-0.01 -3.255-0.492 -6.313-41.016 -7.136-121.986 8.475-75.554 7.513-77.516 15.516,0.00 -1.559,81.044 -5.017,121.85 -8.30,121.994 z m 21.353-3.811c-3.354,0.069 -6.601-39.253 -7.431-118.183 8.475-75.554 7.521-77.516 15.524,0.00 -1.278,78.653 -4.739,118.114 -8.093,118.183 z m -42.363-1.587c-3.495-0.037 -6.66-38.935 -6.785-116.596 8.475-75.554 7.513-77.516 15.516,0.00 -1.418,77.807 -5.236,116.633 -8.731,116.596 z m 63.445-2.312c-0.027,0.001 -0.053,0.00 -0.08-0.01 -3.424-0.53 -6.601-39.152 -7.009-114.276 8.475-75.554 7.521-77.516 15.524,0.00 -1.407,76.64 -5.035,114.219 -8.436,114.284 z m -84.128-5.079c-3.011,0.029 -5.865-35.787 -7.248-109.205 8.475-75.554 7.521-77.516 15.524,0.00 -1.998,72.165 -5.218,109.176 -8.276,109.205 z m -20.261-20.30c-2.861,0.175 -5.747-29.285 -7.846-88.904 8.475-75.554 7.521-77.516 15.524,0.00 -1.982,58.92 -4.818,88.729 -7.678,88.904 z m -41.215-29.534c-1.694-0.343 -3.364-19.032 -7.088-56.763 8.013-74.719 7.112-76.66 14.679,0.00 -4.069,37.943 -5.843,57.117 -7.591,56.763 z m -20.436-1.547c-1.694-0.337 -3.364-18.657 -7.088-55.639 8.013-73.235 7.112-75.137 14.679,0.00 -4.007,36.618 -5.789,55.401 -7.511,55.639 -0.027,0.00 -0.053,0.01 -0.08,0.00 z m 40.577-0.845c-1.791-0.344 -3.556-19.04 -7.495-56.771 8.475-74.719 7.521-76.66 15.524,0.00 -4.238,37.36 -6.12,56.528 -7.942,56.771 -0.028,0.00 -0.059,0.01 -0.088,0.00 z m -60.447-9.162c-1.694-0.283 -3.372-15.71 -7.096-46.836 8.013-61.64 7.112-63.241 14.679,0.00 -4.007,30.82 -5.781,46.636 -7.503,46.836 -0.027,0.00 -0.053,0.00 -0.08,0.00 z M 5.797,203.418C 4.412,203.236 3.045,193.32 0.00,173.295 6.551,133.639 5.814,132.609 12.00,173.295 8.673,193.433 7.225,203.607 5.797,203.418z" />
+<glyph unicode="&#xe116;" d="M 235.138,480.00 m0.00,0.00, 69.083-147.775c 0.982,37.373 -30.247,125.585 -69.083,147.775 z m 216.20-10.392c-1.001-0.09 -2.069-1.226 -3.224-3.506 -15.678-28.648 -42.732-45.66 -68.018-52.775 -25.709-7.215 -52.45-24.431 -62.259-43.947 -11.461-26.613 -6.546-47.735 4.601-71.712 14.058,2.13 28.127,7.561 40.035,13.272 30.545,14.871 57.005,38.176 74.216,65.452 6.921,10.969 8.276,9.001 2.316-3.349 -11.221-23.253 -47.987-55.838 -94.155-83.481 -10.29-6.161 -10.441-6.373 -5.822-10.392 14.776-12.856 30.97-20.637 45.669-21.88 63.751-0.293 91.116,68.007 92.903,115.472 -0.474,30.798 -5.683,70.597 -24.54,95.877 -0.574,0.72 -1.121,1.024 -1.722,0.97 z m -232.383-132.50c-101.678,0.00 -184.554-82.876 -184.554-184.554 0.00-101.678 82.876-184.554 184.554-184.554 101.678,0.00 184.523,82.876 184.523,184.554 0.00,25.419 -5.147,49.773 -14.493,71.868l-38.72-16.371c 7.206-17.036 11.206-35.756 11.206-55.498 0.00-76.663 -59.909-138.801 -135.661-142.36 87.664,59.892 127.349,215.00 80.476,313.611 3.724-67.674 0.669-251.815 -104.109-312.797 -70.994,8.258 -125.77,68.263 -125.77,141.546 0.00,78.966 63.582,142.516 142.547,142.516 19.741,0.00 38.399-3.938 55.435-11.143l 16.402,38.657c-22.096,9.346 -46.418,14.524 -71.837,14.524z" />
+<glyph unicode="&#xe117;" d="M 256.00,480.00 C 114.615,480.00 0.00,365.387 0.00,224.00 0.00,162.322 21.826,105.759 58.156,61.562 158.751,168.211 358.66,135.625 408.438,18.344 471.266,64.994 512.00,139.733 512.00,224.00 512.00,365.387 397.385,480.00 256.00,480.00 z m 153.875-133.281 c 23.482-7.725 14.365-47.549 -3.344-46.469 C 308.977,331.32 233.977,347.317 121.00,329.937 c -23.482,7.725 -14.365,47.549 3.344,46.469 100.713,8.776 188.276,6.27 285.531-29.688 z m -33.406-75.344 c 19.88-6.56 12.191-40.294 -2.844-39.375 -82.662,26.317 -146.209,39.866 -241.938,25.156 -19.901,6.547 -12.16,40.29 2.844,39.375 85.231,7.538 159.655,5.242 241.938-25.156 z m -27.313-74.469 c 16.735-5.516 10.271-33.929 -2.375-33.156 -69.629,22.19 -123.167,33.596 -203.813,21.188 -16.747,5.526 -10.262,33.931 2.406,33.156 72.00,6.276 134.196,4.551 203.781-21.188 z m -122.00-144.594 c -39.489,0.00 -75.025-21.197 -91.688-54.219 C 171.388-21.111 212.422-32.00 256.00-32.00 c 26.326,0.00 51.723,3.963 75.625,11.344 -19.264,40.222 -63.328,72.969 -104.469,72.969 z" />
+<glyph unicode="&#xe119;" d="M 453.629,445.311 80.052,221.165 453.629-2.981z" />
+<glyph unicode="&#xe02c;" d="M 26.684,42.382 250.83,415.958 474.976,42.382z" />
+<glyph unicode="&#xe118;" d="M 80.052,445.311 453.629,221.165 80.052-2.981z" />
+<glyph unicode="&#xe11a;" d="M 26.684,415.958 250.83,42.382 474.976,415.958z" />
+<glyph unicode="&#xe11b;" d="M 64.00,416.00L 448.00,416.00L 448.00,32.00L 64.00,32.00z" />
+<glyph unicode="&#x20;" horiz-adv-x="256" />
+<glyph class="hidden" unicode="&#xf000;" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" />
+</font></defs></svg> \ No newline at end of file
diff --git a/mayor-orig/www/skin/default/base/css/Elusive-Icons.ttf b/mayor-orig/www/skin/default/base/css/Elusive-Icons.ttf
new file mode 100644
index 00000000..ae31768f
--- /dev/null
+++ b/mayor-orig/www/skin/default/base/css/Elusive-Icons.ttf
Binary files differ
diff --git a/mayor-orig/www/skin/default/base/css/Elusive-Icons.woff b/mayor-orig/www/skin/default/base/css/Elusive-Icons.woff
new file mode 100644
index 00000000..7f974bd4
--- /dev/null
+++ b/mayor-orig/www/skin/default/base/css/Elusive-Icons.woff
Binary files differ
diff --git a/mayor-orig/www/skin/default/base/css/elusive-webfont.css b/mayor-orig/www/skin/default/base/css/elusive-webfont.css
new file mode 100644
index 00000000..0d62bc58
--- /dev/null
+++ b/mayor-orig/www/skin/default/base/css/elusive-webfont.css
@@ -0,0 +1,891 @@
+@font-face {
+ font-family: 'Elusive-Icons';
+ src:url('Elusive-Icons.eot');
+ src:url('Elusive-Icons.eot?#iefix') format('embedded-opentype'),
+ url('Elusive-Icons.svg#Elusive-Icons') format('svg'),
+ url('Elusive-Icons.woff') format('woff'),
+ url('Elusive-Icons.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+}
+
+/* Use the following CSS code if you want to use data attributes for inserting your icons */
+[data-icon]:before {
+ font-family: 'Elusive-Icons';
+ content: attr(data-icon);
+ speak: none;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased;
+}
+
+/* Use the following CSS code if you want to have a class per icon */
+/*
+Instead of a list of all class selectors,
+you can use the generic selector below, but it's slower:
+[class*="icon-"] {
+*/
+.icon-move, .icon-music, .icon-network, .icon-off, .icon-ok, .icon-ok-circle, .icon-ok-sign, .icon-paper-clip, .icon-paper-clip-alt, .icon-path, .icon-plus-sign, .icon-print, .icon-qrcode, .icon-question, .icon-question-sign, .icon-quotes, .icon-quotes-alt, .icon-random, .icon-record, .icon-reddit, .icon-refresh, .icon-screenshot, .icon-search, .icon-search-alt, .icon-share, .icon-share-alt, .icon-shopping-cart, .icon-shopping-cart-sign, .icon-signal, .icon-skype, .icon-slideshare, .icon-smiley, .icon-th-large, .icon-th-list, .icon-thumbs-down, .icon-thumbs-up, .icon-time, .icon-time-alt, .icon-tint, .icon-torso, .icon-trash, .icon-trash-alt, .icon-tumblr, .icon-w3c, .icon-warning-sign, .icon-website, .icon-website-alt, .icon-wheelchair, .icon-wordpress, .icon-wrench, .icon-wrench-alt, .icon-youtube, .icon-zoom-in, .icon-zoom-out, .icon-pause-alt, .icon-pencil, .icon-pencil-alt, .icon-person, .icon-phone, .icon-phone-alt, .icon-photo, .icon-photo-alt, .icon-picasa, .icon-picture, .icon-pinterest, .icon-plane, .icon-play-alt, .icon-play-circle, .icon-plus, .icon-remove, .icon-remove-circle, .icon-remove-sign, .icon-repeat, .icon-repeat-alt, .icon-resize-full, .icon-resize-horizontal, .icon-resize-small, .icon-resize-vertical, .icon-retweet, .icon-reverse-alt, .icon-road, .icon-rss, .icon-screen, .icon-screen-alt, .icon-smiley-alt, .icon-speaker, .icon-stackoverflow, .icon-star, .icon-star-alt, .icon-star-empty, .icon-stop-alt, .icon-stumbleupon, .icon-tag, .icon-tags, .icon-tasks, .icon-text-height, .icon-text-width, .icon-th, .icon-twitter, .icon-universal-access, .icon-unlock, .icon-unlock-alt, .icon-upload, .icon-user, .icon-video, .icon-video-alt, .icon-video-chat, .icon-view-mode, .icon-vimeo, .icon-vkontakte, .icon-volume-down, .icon-volume-off, .icon-volume-up, .icon-backward, .icon-fast-backward, .icon-fast-forward, .icon-forward, .icon-play, .icon-step-backward, .icon-step-forward, .icon-briefcase, .icon-bullhorn, .icon-calendar, .icon-calendar-sign, .icon-address-book, .icon-address-book-alt, .icon-adjust, .icon-adult, .icon-align-center, .icon-align-justify, .icon-align-left, .icon-align-right, .icon-arrow-down, .icon-arrow-left, .icon-arrow-right, .icon-arrow-up, .icon-asl, .icon-asterisk, .icon-ban-circle, .icon-barcode, .icon-behance, .icon-bell, .icon-blind, .icon-blogger, .icon-bold, .icon-book, .icon-bookmark, .icon-bookmark-empty, .icon-braille, .icon-camera, .icon-cc, .icon-certificate, .icon-check, .icon-check-empty, .icon-chevron-down, .icon-chevron-left, .icon-chevron-right, .icon-chevron-up, .icon-child, .icon-circle-arrow-down, .icon-circle-arrow-left, .icon-circle-arrow-right, .icon-circle-arrow-up, .icon-cloud, .icon-cloud-alt, .icon-cog, .icon-cog-alt, .icon-cogs, .icon-comment, .icon-comment-alt, .icon-compass, .icon-compass-alt, .icon-credit-card, .icon-css, .icon-dashboard, .icon-delicious, .icon-deviantart, .icon-digg, .icon-download, .icon-download-alt, .icon-dribble, .icon-edit, .icon-eject, .icon-envelope, .icon-envelope-alt, .icon-error, .icon-error-alt, .icon-exclamation-sign, .icon-eye-close, .icon-eye-open, .icon-facebook, .icon-facetime-video, .icon-female, .icon-file, .icon-file-alt, .icon-file-edit, .icon-file-edit-alt, .icon-file-new, .icon-file-new-alt, .icon-film, .icon-filter, .icon-fire, .icon-flag, .icon-flag-alt, .icon-flickr, .icon-folder, .icon-folder-close, .icon-folder-open, .icon-folder-sign, .icon-font, .icon-fontsize, .icon-forward-alt, .icon-foursquare, .icon-friendfeed, .icon-friendfeed-rect, .icon-fullscreen, .icon-gift, .icon-github, .icon-github-text, .icon-glass, .icon-glasses, .icon-globe, .icon-globe-alt, .icon-googleplus, .icon-graph, .icon-graph-alt, .icon-group, .icon-group-alt, .icon-guidedog, .icon-hand-down, .icon-hand-left, .icon-hand-right, .icon-hand-up, .icon-hdd, .icon-headphones, .icon-hearing-impaired, .icon-heart, .icon-heart-alt, .icon-heart-empty, .icon-home, .icon-home-alt, .icon-idea, .icon-idea-alt, .icon-inbox, .icon-inbox-alt, .icon-inbox-box, .icon-indent-left, .icon-indent-right, .icon-info-sign, .icon-instagram, .icon-iphone-home, .icon-italic, .icon-key, .icon-laptop, .icon-laptop-alt, .icon-leaf, .icon-linkedin, .icon-list, .icon-list-alt, .icon-lock, .icon-lock-alt, .icon-magnet, .icon-male, .icon-map-marker, .icon-map-marker-alt, .icon-mic, .icon-mic-alt, .icon-minus, .icon-minus-sign, .icon-pause, .icon-fork, .icon-broom, .icon-return-key, .icon-lastfm, .icon-livejournal, .icon-myspace, .icon-soundcloud, .icon-viadeo, .icon-spotify, .icon-caret-left, .icon-caret-up, .icon-caret-right, .icon-caret-down, .icon-stop {
+ font-family: 'Elusive-Icons';
+ speak: none;
+ font-style: normal;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased;
+}
+.icon-move:before {
+ content: "\e074";
+}
+.icon-music:before {
+ content: "\e073";
+}
+.icon-network:before {
+ content: "\e072";
+}
+.icon-off:before {
+ content: "\e071";
+}
+.icon-ok:before {
+ content: "\e070";
+}
+.icon-ok-circle:before {
+ content: "\e06f";
+}
+.icon-ok-sign:before {
+ content: "\e06e";
+}
+.icon-paper-clip:before {
+ content: "\e06d";
+}
+.icon-paper-clip-alt:before {
+ content: "\e06c";
+}
+.icon-path:before {
+ content: "\e06b";
+}
+.icon-plus-sign:before {
+ content: "\e059";
+}
+.icon-print:before {
+ content: "\e058";
+}
+.icon-qrcode:before {
+ content: "\e057";
+}
+.icon-question:before {
+ content: "\e056";
+}
+.icon-question-sign:before {
+ content: "\e055";
+}
+.icon-quotes:before {
+ content: "\e054";
+}
+.icon-quotes-alt:before {
+ content: "\e053";
+}
+.icon-random:before {
+ content: "\e052";
+}
+.icon-record:before {
+ content: "\e051";
+}
+.icon-reddit:before {
+ content: "\e050";
+}
+.icon-refresh:before {
+ content: "\e04f";
+}
+.icon-screenshot:before {
+ content: "\e03f";
+}
+.icon-search:before {
+ content: "\e03e";
+}
+.icon-search-alt:before {
+ content: "\e03d";
+}
+.icon-share:before {
+ content: "\e03c";
+}
+.icon-share-alt:before {
+ content: "\e03b";
+}
+.icon-shopping-cart:before {
+ content: "\e03a";
+}
+.icon-shopping-cart-sign:before {
+ content: "\e039";
+}
+.icon-signal:before {
+ content: "\e038";
+}
+.icon-skype:before {
+ content: "\e037";
+}
+.icon-slideshare:before {
+ content: "\e036";
+}
+.icon-smiley:before {
+ content: "\e035";
+}
+.icon-th-large:before {
+ content: "\e023";
+}
+.icon-th-list:before {
+ content: "\e022";
+}
+.icon-thumbs-down:before {
+ content: "\e021";
+}
+.icon-thumbs-up:before {
+ content: "\e020";
+}
+.icon-time:before {
+ content: "\e01f";
+}
+.icon-time-alt:before {
+ content: "\e01e";
+}
+.icon-tint:before {
+ content: "\e01d";
+}
+.icon-torso:before {
+ content: "\e01c";
+}
+.icon-trash:before {
+ content: "\e01b";
+}
+.icon-trash-alt:before {
+ content: "\e01a";
+}
+.icon-tumblr:before {
+ content: "\e019";
+}
+.icon-w3c:before {
+ content: "\e00a";
+}
+.icon-warning-sign:before {
+ content: "\e009";
+}
+.icon-website:before {
+ content: "\e008";
+}
+.icon-website-alt:before {
+ content: "\e007";
+}
+.icon-wheelchair:before {
+ content: "\e006";
+}
+.icon-wordpress:before {
+ content: "\e005";
+}
+.icon-wrench:before {
+ content: "\e004";
+}
+.icon-wrench-alt:before {
+ content: "\e003";
+}
+.icon-youtube:before {
+ content: "\e002";
+}
+.icon-zoom-in:before {
+ content: "\e001";
+}
+.icon-zoom-out:before {
+ content: "\e000";
+}
+.icon-pause-alt:before {
+ content: "\e069";
+}
+.icon-pencil:before {
+ content: "\e068";
+}
+.icon-pencil-alt:before {
+ content: "\e067";
+}
+.icon-person:before {
+ content: "\e066";
+}
+.icon-phone:before {
+ content: "\e065";
+}
+.icon-phone-alt:before {
+ content: "\e064";
+}
+.icon-photo:before {
+ content: "\e063";
+}
+.icon-photo-alt:before {
+ content: "\e062";
+}
+.icon-picasa:before {
+ content: "\e061";
+}
+.icon-picture:before {
+ content: "\e060";
+}
+.icon-pinterest:before {
+ content: "\e05f";
+}
+.icon-plane:before {
+ content: "\e05e";
+}
+.icon-play-alt:before {
+ content: "\e05c";
+}
+.icon-play-circle:before {
+ content: "\e05b";
+}
+.icon-plus:before {
+ content: "\e05a";
+}
+.icon-remove:before {
+ content: "\e04e";
+}
+.icon-remove-circle:before {
+ content: "\e04d";
+}
+.icon-remove-sign:before {
+ content: "\e04c";
+}
+.icon-repeat:before {
+ content: "\e04b";
+}
+.icon-repeat-alt:before {
+ content: "\e04a";
+}
+.icon-resize-full:before {
+ content: "\e049";
+}
+.icon-resize-horizontal:before {
+ content: "\e048";
+}
+.icon-resize-small:before {
+ content: "\e047";
+}
+.icon-resize-vertical:before {
+ content: "\e046";
+}
+.icon-retweet:before {
+ content: "\e045";
+}
+.icon-reverse-alt:before {
+ content: "\e044";
+}
+.icon-road:before {
+ content: "\e043";
+}
+.icon-rss:before {
+ content: "\e042";
+}
+.icon-screen:before {
+ content: "\e041";
+}
+.icon-screen-alt:before {
+ content: "\e040";
+}
+.icon-smiley-alt:before {
+ content: "\e034";
+}
+.icon-speaker:before {
+ content: "\e033";
+}
+.icon-stackoverflow:before {
+ content: "\e032";
+}
+.icon-star:before {
+ content: "\e031";
+}
+.icon-star-alt:before {
+ content: "\e030";
+}
+.icon-star-empty:before {
+ content: "\e02f";
+}
+.icon-stop-alt:before {
+ content: "\e02b";
+}
+.icon-stumbleupon:before {
+ content: "\e02a";
+}
+.icon-tag:before {
+ content: "\e029";
+}
+.icon-tags:before {
+ content: "\e028";
+}
+.icon-tasks:before {
+ content: "\e027";
+}
+.icon-text-height:before {
+ content: "\e026";
+}
+.icon-text-width:before {
+ content: "\e025";
+}
+.icon-th:before {
+ content: "\e024";
+}
+.icon-twitter:before {
+ content: "\e018";
+}
+.icon-universal-access:before {
+ content: "\e017";
+}
+.icon-unlock:before {
+ content: "\e016";
+}
+.icon-unlock-alt:before {
+ content: "\e015";
+}
+.icon-upload:before {
+ content: "\e014";
+}
+.icon-user:before {
+ content: "\e013";
+}
+.icon-video:before {
+ content: "\e012";
+}
+.icon-video-alt:before {
+ content: "\e011";
+}
+.icon-video-chat:before {
+ content: "\e010";
+}
+.icon-view-mode:before {
+ content: "\e00f";
+}
+.icon-vimeo:before {
+ content: "\e00e";
+}
+.icon-vkontakte:before {
+ content: "\e10e";
+}
+.icon-volume-down:before {
+ content: "\e00d";
+}
+.icon-volume-off:before {
+ content: "\e00c";
+}
+.icon-volume-up:before {
+ content: "\e00b";
+}
+.icon-backward:before {
+ content: "\e0ab";
+}
+.icon-fast-backward:before {
+ content: "\e09a";
+}
+.icon-fast-forward:before {
+ content: "\e099";
+}
+.icon-forward:before {
+ content: "\e093";
+}
+.icon-play:before {
+ content: "\e05d";
+}
+.icon-step-backward:before {
+ content: "\e02e";
+}
+.icon-step-forward:before {
+ content: "\e02d";
+}
+.icon-briefcase:before {
+ content: "\e10d";
+}
+.icon-bullhorn:before {
+ content: "\e10c";
+}
+.icon-calendar:before {
+ content: "\e10b";
+}
+.icon-calendar-sign:before {
+ content: "\e10a";
+}
+.icon-address-book:before {
+ content: "\e0dd";
+}
+.icon-address-book-alt:before {
+ content: "\e0dc";
+}
+.icon-adjust:before {
+ content: "\e0db";
+}
+.icon-adult:before {
+ content: "\e0da";
+}
+.icon-align-center:before {
+ content: "\e0d9";
+}
+.icon-align-justify:before {
+ content: "\e0d8";
+}
+.icon-align-left:before {
+ content: "\e0d7";
+}
+.icon-align-right:before {
+ content: "\e0d6";
+}
+.icon-arrow-down:before {
+ content: "\e0d5";
+}
+.icon-arrow-left:before {
+ content: "\e0d4";
+}
+.icon-arrow-right:before {
+ content: "\e0af";
+}
+.icon-arrow-up:before {
+ content: "\e0ae";
+}
+.icon-asl:before {
+ content: "\e0ad";
+}
+.icon-asterisk:before {
+ content: "\e0ac";
+}
+.icon-ban-circle:before {
+ content: "\e0aa";
+}
+.icon-barcode:before {
+ content: "\e0d3";
+}
+.icon-behance:before {
+ content: "\e0d2";
+}
+.icon-bell:before {
+ content: "\e0d1";
+}
+.icon-blind:before {
+ content: "\e0d0";
+}
+.icon-blogger:before {
+ content: "\e0cf";
+}
+.icon-bold:before {
+ content: "\e0ce";
+}
+.icon-book:before {
+ content: "\e0f5";
+}
+.icon-bookmark:before {
+ content: "\e0f4";
+}
+.icon-bookmark-empty:before {
+ content: "\e0f3";
+}
+.icon-braille:before {
+ content: "\e0f2";
+}
+.icon-camera:before {
+ content: "\e0a9";
+}
+.icon-cc:before {
+ content: "\e0a8";
+}
+.icon-certificate:before {
+ content: "\e0a7";
+}
+.icon-check:before {
+ content: "\e0a6";
+}
+.icon-check-empty:before {
+ content: "\e0a5";
+}
+.icon-chevron-down:before {
+ content: "\e0a4";
+}
+.icon-chevron-left:before {
+ content: "\e0cd";
+}
+.icon-chevron-right:before {
+ content: "\e0cc";
+}
+.icon-chevron-up:before {
+ content: "\e0cb";
+}
+.icon-child:before {
+ content: "\e0ca";
+}
+.icon-circle-arrow-down:before {
+ content: "\e0c9";
+}
+.icon-circle-arrow-left:before {
+ content: "\e0c8";
+}
+.icon-circle-arrow-right:before {
+ content: "\e0f1";
+}
+.icon-circle-arrow-up:before {
+ content: "\e0f0";
+}
+.icon-cloud:before {
+ content: "\e0ef";
+}
+.icon-cloud-alt:before {
+ content: "\e0ee";
+}
+.icon-cog:before {
+ content: "\e109";
+}
+.icon-cog-alt:before {
+ content: "\e108";
+}
+.icon-cogs:before {
+ content: "\e107";
+}
+.icon-comment:before {
+ content: "\e106";
+}
+.icon-comment-alt:before {
+ content: "\e0a3";
+}
+.icon-compass:before {
+ content: "\e0a2";
+}
+.icon-compass-alt:before {
+ content: "\e0a1";
+}
+.icon-credit-card:before {
+ content: "\e0a0";
+}
+.icon-css:before {
+ content: "\e09f";
+}
+.icon-dashboard:before {
+ content: "\e09e";
+}
+.icon-delicious:before {
+ content: "\e0c7";
+}
+.icon-deviantart:before {
+ content: "\e0c6";
+}
+.icon-digg:before {
+ content: "\e0c5";
+}
+.icon-download:before {
+ content: "\e0c4";
+}
+.icon-download-alt:before {
+ content: "\e0c3";
+}
+.icon-dribble:before {
+ content: "\e0c2";
+}
+.icon-edit:before {
+ content: "\e0ed";
+}
+.icon-eject:before {
+ content: "\e0ec";
+}
+.icon-envelope:before {
+ content: "\e0eb";
+}
+.icon-envelope-alt:before {
+ content: "\e0ea";
+}
+.icon-error:before {
+ content: "\e105";
+}
+.icon-error-alt:before {
+ content: "\e104";
+}
+.icon-exclamation-sign:before {
+ content: "\e103";
+}
+.icon-eye-close:before {
+ content: "\e102";
+}
+.icon-eye-open:before {
+ content: "\e09d";
+}
+.icon-facebook:before {
+ content: "\e09c";
+}
+.icon-facetime-video:before {
+ content: "\e09b";
+}
+.icon-female:before {
+ content: "\e098";
+}
+.icon-file:before {
+ content: "\e0c1";
+}
+.icon-file-alt:before {
+ content: "\e0c0";
+}
+.icon-file-edit:before {
+ content: "\e0bf";
+}
+.icon-file-edit-alt:before {
+ content: "\e0be";
+}
+.icon-file-new:before {
+ content: "\e0bd";
+}
+.icon-file-new-alt:before {
+ content: "\e0bc";
+}
+.icon-film:before {
+ content: "\e0e9";
+}
+.icon-filter:before {
+ content: "\e0e8";
+}
+.icon-fire:before {
+ content: "\e0e7";
+}
+.icon-flag:before {
+ content: "\e0e6";
+}
+.icon-flag-alt:before {
+ content: "\e101";
+}
+.icon-flickr:before {
+ content: "\e100";
+}
+.icon-folder:before {
+ content: "\e0ff";
+}
+.icon-folder-close:before {
+ content: "\e0fe";
+}
+.icon-folder-open:before {
+ content: "\e097";
+}
+.icon-folder-sign:before {
+ content: "\e096";
+}
+.icon-font:before {
+ content: "\e095";
+}
+.icon-fontsize:before {
+ content: "\e094";
+}
+.icon-forward-alt:before {
+ content: "\e092";
+}
+.icon-foursquare:before {
+ content: "\e0bb";
+}
+.icon-friendfeed:before {
+ content: "\e0ba";
+}
+.icon-friendfeed-rect:before {
+ content: "\e0b9";
+}
+.icon-fullscreen:before {
+ content: "\e0b8";
+}
+.icon-gift:before {
+ content: "\e0b7";
+}
+.icon-github:before {
+ content: "\e0b6";
+}
+.icon-github-text:before {
+ content: "\e0e5";
+}
+.icon-glass:before {
+ content: "\e0e4";
+}
+.icon-glasses:before {
+ content: "\e0e3";
+}
+.icon-globe:before {
+ content: "\e0e2";
+}
+.icon-globe-alt:before {
+ content: "\e0fd";
+}
+.icon-googleplus:before {
+ content: "\e0fc";
+}
+.icon-graph:before {
+ content: "\e0fb";
+}
+.icon-graph-alt:before {
+ content: "\e0fa";
+}
+.icon-group:before {
+ content: "\e091";
+}
+.icon-group-alt:before {
+ content: "\e090";
+}
+.icon-guidedog:before {
+ content: "\e08f";
+}
+.icon-hand-down:before {
+ content: "\e08e";
+}
+.icon-hand-left:before {
+ content: "\e08d";
+}
+.icon-hand-right:before {
+ content: "\e08c";
+}
+.icon-hand-up:before {
+ content: "\e0b5";
+}
+.icon-hdd:before {
+ content: "\e0b4";
+}
+.icon-headphones:before {
+ content: "\e0b3";
+}
+.icon-hearing-impaired:before {
+ content: "\e0b2";
+}
+.icon-heart:before {
+ content: "\e0b1";
+}
+.icon-heart-alt:before {
+ content: "\e0b0";
+}
+.icon-heart-empty:before {
+ content: "\e0e1";
+}
+.icon-home:before {
+ content: "\e0e0";
+}
+.icon-home-alt:before {
+ content: "\e0df";
+}
+.icon-idea:before {
+ content: "\e0de";
+}
+.icon-idea-alt:before {
+ content: "\e0f9";
+}
+.icon-inbox:before {
+ content: "\e0f8";
+}
+.icon-inbox-alt:before {
+ content: "\e0f7";
+}
+.icon-inbox-box:before {
+ content: "\e0f6";
+}
+.icon-indent-left:before {
+ content: "\e08b";
+}
+.icon-indent-right:before {
+ content: "\e08a";
+}
+.icon-info-sign:before {
+ content: "\e089";
+}
+.icon-instagram:before {
+ content: "\e088";
+}
+.icon-iphone-home:before {
+ content: "\e087";
+}
+.icon-italic:before {
+ content: "\e086";
+}
+.icon-key:before {
+ content: "\e085";
+}
+.icon-laptop:before {
+ content: "\e084";
+}
+.icon-laptop-alt:before {
+ content: "\e083";
+}
+.icon-leaf:before {
+ content: "\e082";
+}
+.icon-linkedin:before {
+ content: "\e081";
+}
+.icon-list:before {
+ content: "\e080";
+}
+.icon-list-alt:before {
+ content: "\e07f";
+}
+.icon-lock:before {
+ content: "\e07e";
+}
+.icon-lock-alt:before {
+ content: "\e07d";
+}
+.icon-magnet:before {
+ content: "\e07c";
+}
+.icon-male:before {
+ content: "\e07b";
+}
+.icon-map-marker:before {
+ content: "\e07a";
+}
+.icon-map-marker-alt:before {
+ content: "\e079";
+}
+.icon-mic:before {
+ content: "\e078";
+}
+.icon-mic-alt:before {
+ content: "\e077";
+}
+.icon-minus:before {
+ content: "\e076";
+}
+.icon-minus-sign:before {
+ content: "\e075";
+}
+.icon-pause:before {
+ content: "\e06a";
+}
+.icon-fork:before {
+ content: "\e10f";
+}
+.icon-broom:before {
+ content: "\e110";
+}
+.icon-return-key:before {
+ content: "\e111";
+}
+.icon-lastfm:before {
+ content: "\e112";
+}
+.icon-livejournal:before {
+ content: "\e113";
+}
+.icon-myspace:before {
+ content: "\e114";
+}
+.icon-soundcloud:before {
+ content: "\e115";
+}
+.icon-viadeo:before {
+ content: "\e116";
+}
+.icon-spotify:before {
+ content: "\e117";
+}
+.icon-caret-left:before {
+ content: "\e119";
+}
+.icon-caret-up:before {
+ content: "\e02c";
+}
+.icon-caret-right:before {
+ content: "\e118";
+}
+.icon-caret-down:before {
+ content: "\e11a";
+}
+.icon-stop:before {
+ content: "\e11b";
+}
diff --git a/mayor-orig/www/skin/default/base/html/base.phtml b/mayor-orig/www/skin/default/base/html/base.phtml
new file mode 100644
index 00000000..de3d6a55
--- /dev/null
+++ b/mayor-orig/www/skin/default/base/html/base.phtml
@@ -0,0 +1,463 @@
+<?php
+
+function includeSocial($page,$sub,$f) {
+ global $OG;
+
+ if (__FBCONNECT_ENABLED===true && defined('__FB_APP_ID')) {
+ echo '<script type="text/javascript">';
+ echo 'var FB_APP_ID = "'.__FB_APP_ID.'";';
+ echo '</script>';
+ }
+
+ if (__GOOGLEAPI_ENABLED===true && defined('__GOOGLEAPI_CLIENT_ID')) {
+ echo '<script src="https://apis.google.com/js/platform.js" async defer></script>';
+ echo '<meta name="google-signin-client_id" content="'.__GOOGLEAPI_CLIENT_ID.'">';
+ echo '<script type="text/javascript">';
+ echo 'var GOOGLEAPI_CLIENT_ID = "'.__GOOGLEAPI_CLIENT_ID.'";';
+ echo '</script>';
+ }
+
+ if (_OG_ENABLED!==true) return;
+ if ($page=='portal') {
+ $_url .= _BASE_URL."/index.php?page=$page&sub=$sub&f=$f&".$OG['getparameter'];
+ $_img = ($OG['image']!='') ? $OG['image']:_OG_IMAGE;
+ echo '<meta property="og:title" content="'.$OG['title'].'" />'."\n";
+// echo '<meta property="og:type" content="website" />'."\n";
+ echo '<meta property="og:type" content="article" />'."\n";
+ echo '<meta property="og:site_name" content="MaYoR | '._SCHOOL_NAME.'" />'."\n";
+ echo '<meta property="og:image" content="'.$_img.'" />'."\n";
+ echo '<meta property="og:description" content="'.$OG['title'].' - MaYoR - '._SCHOOL_NAME.'" />'."\n";
+ echo '<meta property="og:url" content="'.str_replace('&','&#38;',$_url).'" />'."\n";
+ }
+}
+
+function includeCSS($page,$sub,$f,$skin,$media='') {
+
+ echo '<link rel="stylesheet" href="skin/default/base/css/elusive-webfont.css" type="text/css" />'; // minden mediara, colorscheme-re
+ echo '<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />';
+// echo '<link href="//fonts.googleapis.com/css?family=Source+Sans Pro:200italic,200,300italic,300,400italic,400,600italic,600,700italic,700,900italic,900" rel="stylesheet" type="text/css">';
+
+ if ($media!='') {
+ $MEDIA='-'.$media;
+ $MEDIA_STR = 'media="'.$media.'" ';
+ } else {
+ $MEDIA='';
+ $MEDIA_STR = 'media="screen,print" ';
+ }
+ if (file_exists(($_f="skin/$skin/base/css$MEDIA/base.php")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?scheme='.__COLOR_SCHEME.'&ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ } elseif (file_exists(($_f="skin/$skin/base/css$MEDIA/base.css")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ } elseif ($media=='') {
+ echo '<link rel="stylesheet" href="skin/'._DEFAULT_SKIN.'/base/css/base.css?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ }
+ if (file_exists(($_f="skin/$skin/module-$page/css$MEDIA/$page.css")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.' />';
+ echo "\n";
+ } elseif (file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$page/css/$page.css")) && $media=='') {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ }
+ if ($sub!='') {
+ if (file_exists(($_f="skin/$skin/module-$page/css$MEDIA/$sub/base.css")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ } elseif ( file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$page/css/$sub/base.css")) && $media=='') {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ }
+ if (file_exists(($_f="skin/$skin/module-$page/css$MEDIA/$sub/$f.css")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ } elseif ( file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$page/css/$sub/$f.css")) && $media=='') {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ }
+ } else {
+ if (file_exists(($_f="skin/$skin/module-$page/css$MEDIA/$f.css")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ } elseif ( file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$page/css/$f.css")) && $media=='') {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.'/>';
+ echo "\n";
+ }
+ }
+
+
+ global $VALID_MODULES;
+ for($i=0; $i<count($VALID_MODULES); $i++) {
+ $mod = $VALID_MODULES[$i];
+ if ($mod != $page) {
+ if (file_exists(($_f="skin/$skin/module-mod/css$MEDIA/$mod.css")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.' />'."\n";
+ } elseif (file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$mod/css$MEDIA/$mod.css")) ) {
+ echo '<link rel="stylesheet" href="'.$_f.'?ver='._MAYORREV.'" type="text/css" '.$MEDIA_STR.' />'."\n";
+ }
+ }
+ }
+
+
+
+}
+
+function includeJS($page,$sub,$f,$skin) {
+ $js = '.'._JSLIB.'.js';
+// echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="skin/'._DEFAULT_SKIN.'/base/javascript/underscore-min.js?ver='._MAYORREV.'"></script>'."\n";
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="skin/'._DEFAULT_SKIN.'/base/javascript/'._JSLIB.'.js?ver='._MAYORREV.'"></script>'."\n";
+// echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="skin/'._DEFAULT_SKIN.'/base/javascript/scrolltofix.'._JSLIB.'.js?ver='._MAYORREV.'"></script>'."\n";
+// echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="skin/'._DEFAULT_SKIN.'/base/javascript/backbone-min.js?ver='._MAYORREV.'"></script>'."\n";
+
+ if (_ENABLE_IFRAME_EMBEDDING !== true)
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="skin/'._DEFAULT_SKIN.'/base/javascript/noiframe.js?ver='._MAYORREV.'"></script>';
+
+ if (file_exists(($_f="skin/$skin/base/javascript/base".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ } elseif (file_exists(($_f='skin/'._DEFAULT_SKIN.'/base/javascript/base'.$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ }
+
+ if ( file_exists(($_f="skin/$skin/module-$page/javascript/$page".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ } elseif (file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$page/javascript/$page".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ }
+ if ($sub!='') {
+ if ( file_exists(($_f="skin/$skin/module-$page/javascript/$sub/$f".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ } elseif ( file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$page/javascript/$sub/$f".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ }
+ } elseif ($f != $page) {
+ if ( file_exists(($_f="skin/$skin/module-$page/javascript/$f".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ } elseif ( file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$page/javascript/$f".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ }
+ }
+ if (__RICH_TEXT_EDITOR===true && $f == 'egyhir') {
+ // Koschtit Image Gallery
+ if ($page == 'portal') {
+ //require_once('skin/classic/share/javascript/koschtit/ki_include.php');
+ echo '<script type="text/javascript" src="skin/classic/share/javascript/koschtit/ki_base/ki_js_framework.php?reldir=skin/classic/share/javascript/koschtit/"></script>';
+ }
+ echo '
+ <script src="skin/classic/share/javascript/tiny_mce/tiny_mce.js" type="text/javascript"></script>
+ <script src="skin/classic/module-portal/javascript/hirek/egyhir.php?lang='.$lang.'" type="text/javascript"></script>';
+ }
+
+ // if (file_exists(($_f="skin/$skin/base/javascript/jstorage.min.js")) ) {
+ // echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ // }
+ // if (file_exists(($_f="skin/$skin/base/javascript/json2.min.js")) ) {
+ // echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ // }
+
+ // becsatoljuk a többi modul main .js filejait is
+ global $VALID_MODULES;
+ for($i=0; $i<count($VALID_MODULES); $i++) {
+ $mod = $VALID_MODULES[$i];
+ if ($mod != $page) {
+ if ( file_exists(($_f="skin/$skin/module-$mod/javascript/$mod".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ } elseif (file_exists(($_f="skin/"._DEFAULT_SKIN."/module-$mod/javascript/$mod".$js)) ) {
+ echo '<script language="JavaScript" type="text/javascript" charset="utf-8" src="'.$_f.'?ver='._MAYORREV.'"></script>'."\n";
+ }
+ }
+ }
+
+}
+
+// -------------------------------------------------------------------
+// ajaxUpdaterForm
+// -------------------------------------------------------------------
+
+
+function ajaxUpdaterForm($id, $url, $params, $method, $forEcho=false) {
+ global $skin;
+
+ $t = '<form method="'.$method.'" action="'.href($url.'&toSkin='.$skin).'" class="onLoadUpdate" id="'.$id.'">'."\n";
+ if ($_SESSION['mayorToken']!='') $t .= '<input class="mayorToken" type="hidden" name="mayorToken" value="'.$_SESSION['mayorToken'].'" />';
+ foreach ($params as $name => $value) $t .= '<input type="hidden" name="'.$name.'" value="'.$value.'" />'."\n";
+ $t .= '</form>';
+ if ($forEcho) return $t;
+ else echo $t;
+
+}
+
+/*
+
+<!ATTLIST FORM
+ %attrs; -- %coreattrs, %i18n, %events --
+ action %URI; #REQUIRED -- server-side form handler --
+ method (GET|POST) GET -- HTTP method used to submit the form--
+ enctype %ContentType; "application/x-www-form-urlencoded"
+ accept %ContentTypes; #IMPLIED -- list of MIME types for file upload --
+ name CDATA #IMPLIED -- name of form for scripting --
+ onsubmit %Script; #IMPLIED -- the form was submitted --
+ onreset %Script; #IMPLIED -- the form was reset --
+ accept-charset %Charsets; #IMPLIED -- list of supported charsets --
+ >
+
+ %attrs : id, class
+
+*/
+
+ /* For XSRF hardening */
+ function formBegin($SET=array('method'=>'post','action'=>''),$SET2=array('print'=>true, 'skipFormTag'=>false)) {
+
+ global $skin;
+ if ($skin != 'ajax') {
+ /* Default */
+ if ($SET['method']=='') $SET['method'] = 'post';
+
+ foreach (array('method','action') as $key) { /* Kötelező paraméterek */
+ $formParams .= $key.'="'.$SET[$key].'" ';
+ }
+ foreach (array('id','class','name','onsubmit', 'enctype','target','style') as $key) { /* Lehetséges megengedett argumentumok */
+ if ($SET[$key]!='') $formParams .= $key.'="'.$SET[$key].'" ';
+ }
+ $str = '<!-- SOForm -->'."\n";
+ if ('skipFormTag' !== true) $str .= '<form '.$formParams.'>';
+ }
+ $str .= '<input class="salt" type="hidden" name="'.__SALTNAME.'" value="'.__SALTVALUE.'" />';
+ if ($_SESSION['mayorToken']!='') $str .= '<input class="mayorToken" type="hidden" name="mayorToken" value="'.$_SESSION['mayorToken'].'" />';
+
+ if ($SET2['print']===true) echo $str; else return $str;
+
+ }
+
+ function formEnd($SET2=array('print'=>true)) {
+ global $skin;
+ if ($skin != 'ajax') {
+ $str = '</form>';
+ $str .= '<!-- EOForm -->';
+ }
+ if ($SET2['print']===true) echo $str; else return $str;
+ }
+
+
+
+// ---------------
+
+
+
+
+
+
+
+// -------------------------------------------------------------------
+// debug_layer() : debug üzenetek kiiratása
+// -------------------------------------------------------------------
+
+ function _debugLayer() {
+ global $_DEBUG;
+ echo '<!--// debug start //-->'."\n".'<div id="debug" style="display: none;">'.$_DEBUG.'</div>'."\n".'<!--// debug end //-->';
+ echo '<div id="help" style="display: none;"><div id="hideHelp" class="onClickHide">X</div><div id="helpHeader">'._HELP.'</div><iframe src=""></iframe></div>';
+ }
+
+ function _keyHelp() {
+ $keys = array(
+ array('Shift-L','Login/Logout - Belépés/Kilépés'),
+ array('Shift-F','Find - Keresés a menüben'),
+ array('Shift-S','Settings - Beállítások'),
+ array('Shift-D','Debug - Nyomkövetési üzenetek megjelnítése/elrejtése'),
+ array('Ctrl-Shift-V','Vakbarát nézet'),
+ array('F1','Help - Súgó'),
+ );
+ echo '<table id="keyHelp" style="display: none;">';
+ echo '<tr><th colspan="2">Gyorsbillentyűk</th></tr>';
+ foreach ($keys as $keyAdat) {
+ echo '<tr><td class="key">'.$keyAdat[0].':</td><td class="desc">'.$keyAdat[1].'</td></tr>';
+ }
+ echo '</table>';
+ }
+
+ function _searchLayer() {
+ echo '<form id="mayorSearch" action="" method="post" style="display: none">';
+// echo '<label for="searchPattern"><span class="icon-search"></span> </label>';
+ echo '<input type="text" name="pattern" value="" autocomplete="off" placeholder="Kezdj gépelni, nyomj entert" />';
+ echo '</form>';
+ }
+
+
+ function _httpheader() {
+ @header("Last-Modified: Mon, 20 Oct 2003 01:01:01 GMT");
+ @header("Cache-Control: no-store, no-cache, must-revalidate");
+ @header("Cache-Control: post-check=0, pre-check=0", false);
+ @header("Pragma: no-cache");
+ }
+ function _updateWindow() {
+ echo '<div id="takaro" style="display: none;"></div>';
+ echo '<div id="updateWindow" style="display: none;">';
+ echo _svgClose(array('size'=>30, 'id'=>'updateCloseButton', 'title'=>_CLOSE, 'print'=>false));
+ echo '<div id="updateHeader">';
+ echo '</div>';
+ echo formBegin(array('class'=>'onSubmitUpdate','id'=>'updateForm'));formEnd();
+ echo '</div>';
+ }
+
+ function _svgClose($SET=array('size'=>24,'print'=>true)) {
+ $size = isset($SET['size'])?$SET['size']:24; //128 volt eredetileg
+ $print = isset($SET['print'])?$SET['print']:true;
+
+ $str .= '<div style="width: '.$size.'px; height: '.$size.'px;" '
+.(isset($SET['id'])?'id="'.$SET['id'].'" ':'')
+.(isset($SET['class'])?'class="'.$SET['class'].'" ':'')
+.(isset($SET['alt'])?'alt="'.$SET['alt'].'" ':'')
+.(isset($SET['title'])?'title="'.$SET['title'].'" ':'')
+.'>';
+
+ $str .= '<svg style="position: absolute; z-index: -1;" '
+.'version="1.0" xmlns="http://www.w3.org/2000/svg"
+width="'.$size.'.000000px" height="'.$size.'.000000px" viewBox="0 0 128.000000 100.000000"
+preserveAspectRatio="xMidYMid meet">
+<metadata>x</metadata>
+<g transform="translate(0.000000,128.000000) scale(0.100000,-0.100000)" fill="#880000" stroke="none">
+<path d="M536 1190 c-115 -29 -224 -122 -279 -238 -30 -62 -32 -75 -32 -172 0
+-97 2 -110 32 -172 44 -94 109 -160 202 -206 72 -36 79 -37 181 -37 102 0 109
+1 181 37 93 46 158 112 202 206 30 62 32 75 32 172 0 97 -2 110 -32 172 -44
+93 -110 160 -199 204 -64 32 -84 37 -161 40 -48 2 -105 -1 -127 -6z m51 -272
+l53 -52 55 54 55 55 42 -43 43 -42 -55 -55 -54 -55 54 -55 55 -55 -43 -42 -42
+-43 -55 55 -55 54 -55 -54 -55 -55 -42 43 -43 42 55 55 54 55 -54 55 -54 55
+39 40 c21 22 41 40 44 40 3 0 29 -23 58 -52z"/>
+</g>
+</svg>';
+
+ $str .= '<div style="background-color: transparent; width: '.$size.'px; height: '.$size.'px;" '
+.(isset($SET['id'])?'id="'.$SET['id'].'Click" ':'').'></div>';
+ $str .= '</div>';
+
+ if ($print===true) echo $str; else return $str;
+ }
+
+ function _svgLoginout($SET=array('print'=>true, 'color'=>'#00c0ff')) {
+ return false;
+ global $page;
+ if (//_POLICY=='public'
+ defined('_USERACCOUNT') && (!is_string(_USERACCOUNT) || _USERACCOUNT=='')) {
+ if($page=='auth') $_bg = 'rgb(247, 197, 14)';
+ elseif (isset($SET['color'])) $_bg = $SET['color'];
+ else $_bg = '#00c0ff';
+ $img .= '<span id="mayorLoginoutSmall" style="color: '.$_bg.'" class="icon-unlock"></span></a>';
+ } else {
+ //$_bg = '#Ff0066'; // (piros) #3496b9
+ //$_bg = 'rgb(52, 150, 185)';
+ $img .= '<span id="mayorLoginoutSmall" class="icon-lock"></span></a>';
+ }
+ if ($print===true) echo $img; else return $img;
+
+ }
+
+ function _svgDown($SET=array('print'=>true, 'color' => '#3496b9')) {
+
+ return '';
+
+ }
+
+ function _inlineHelp($txt) {
+ echo '<div class="hideShowContainer inlinehelp">';
+ //echo '<span class="onClickHideShow iicon-question">?</span>';
+ echo '<span class="onClickHideShow icon-question-sign"></span>';
+ echo '<p class="openable" style="display: none;">'.$txt.'</p>';
+ echo '</div>';
+ }
+
+ function mayorGlobalLogin($loggedIn=false) {
+ global $AUTH;
+ if (is_array($AUTH['private']['allowOnly'])) $_class='class="restricted"'; else $_class = '';
+
+ echo '<div id="mayorGlobalLogin" '.$_class.'>';
+
+ if ($loggedIn) {
+ if (defined('_MAYORAUTHRESULT') && defined('_AUTH_FAILURE') && intval(_MAYORAUTHRESULT)>=intval(_AUTH_FAILURE)) {
+ $_class=' failed';
+ //$_focus = ' id="focus" '; // ha azt akarjuk, hogy focus-t is kapjon...
+ }
+ $secure_url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
+ echo '<table><tr><td style="padding-right:10px;">';
+ formBegin(array('class'=>'check passwordAuth','action'=>$secure_url));
+ echo '<span class="icon-adult '.$_class.'"></span>';
+ echo '<input '.$_focus.' type="text" name="userAccount" autocomplete="off" />';
+ echo '<br/>';
+ echo '<span class="icon-key '.$_class.'"></span>';
+ echo '<input type="password" name="userPassword" />';
+ echo '<input type="hidden" name="toPolicy" value="private" />';
+ echo '<input type="hidden" name="action" value="mayorGlobalLogin" />';
+ echo '<button type="submit" style="background-color:inherit;border: solid 0px white;padding:0px;"><span class="icon-play-alt"></span></button>';
+ formEnd();
+ echo '</td><td style="">';
+ if (__GOOGLEAPI_ENABLED===true) {
+ formBegin(array('class'=>'googleapi','action'=>$secure_url));
+ echo '<input type="hidden" name="action" value="googleapilogin" />';
+ echo '<button type="button" id="googleLoginBtn" class="api"><span class="icon-googleplus"></span></button>';
+ formEnd();
+ }
+ echo '</td><td style="">';
+ if (__FBCONNECT_ENABLED===true) {
+ formBegin(array('class'=>'fb','action'=>$secure_url));
+ echo '<input type="hidden" name="action" value="facebooklogin" />';
+ echo '<button type="submit" class="api"><span class="icon-facebook FBstatusunknown" id="mglFBconnect"></span></button>';
+ //echo '<button type="submit" style="background-color:inherit;border: solid 0px white;padding:0px;"><span class="icon-googleplus"></span></button>';
+ formEnd();
+ }
+ echo '</td></tr></table>';
+ } else {
+ echo '<a href="'.href('index.php?page=session&f=logout&toPolicy=public',array('skin','lang','sessionID')).'"><div class="large icon-lock"></div></a>';
+ }
+ echo '</div>';
+
+ }
+
+ function _updateWindowSide() {
+ echo '<div id="updateWindowSide" class="updateWindowSide">';
+ echo '<h1><span id="btn_updateWindowSideClose" class="icon-remove-circle"></span><div id="updateWindowSideTitle"></div></h1>';
+ echo '<div id="updateWindowSideContent">';
+ echo '</div>';
+ echo '</div>'."\n";
+
+ echo '<div id="updateWindowSideSub" class="updateWindowSide updateWindowSideSub">';
+ echo '<h1><span id="btn_updateWindowSideSubClose" class="icon-circle-arrow-left"></span><div id="updateWindowSideSubTitle"></div></h1>';
+ echo '<div id="updateWindowSideSubContent">';
+ echo '</div>';
+ echo '</div>'."\n";
+ }
+
+function mayorLogoSvg($colors=array()) {
+
+ if ($colors['dot'] =='') $colors['dot'] = '#ff0066';
+ if ($colors['startColor'] =='') $colors['startColor'] = '#00c0ff';
+ if ($colors['stopColor'] =='') $colors['stopColor'] = '#8800aa';
+
+echo '
+<svg width="150" height="70" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <linearGradient id="linearGradient3031-2">
+ <stop stop-color="'.$colors['startColor'].'" id="stop3033-8" offset="0"/>
+ <stop stop-color="'.$colors['stopColor'].'" id="stop3035-8" offset="1"/>
+ </linearGradient>
+ <linearGradient xlink:href="#linearGradient3031-2" id="linearGradient3410" x1="0.111436" y1="0.907162" x2="1.150126" y2="1.037583"/>
+ </defs>
+ <metadata id="metadata7">image/svg+xml</metadata>
+ <g>
+ <title>background</title>
+ <rect fill="none" id="canvas_background" height="72" width="152" y="-1" x="-1"/>
+ </g>
+ <g>
+ <title>Layer 1</title>
+ <g stroke="null" id="svg_1">
+ <path stroke="#000000" stroke-width="0" fill="url(#linearGradient3410)" stroke-miterlimit="10.4" stroke-opacity="0.625641" d="m18.871286,49.146203c1.362856,-0.705671 2.623651,-1.683619 3.856106,-2.71448c-11.435929,10.35345 -4.531692,3.933533 -1.992395,1.315906c1.492685,-1.562102 2.914177,-3.241685 4.370244,-4.864169c1.289976,-1.473983 2.537038,-3.018588 3.682489,-4.696425c1.084587,-1.608239 2.075183,-3.3158 2.99299,-5.104252c0.953855,-1.849017 1.768241,-3.826746 2.582088,-5.795892c0.844414,-1.842027 1.540328,-3.797802 2.263888,-5.731472c0.686096,-1.784296 1.383456,-3.561303 1.956708,-5.422002c1.098952,-3.897154 3.57097,-12.249716 7.869627,-8.111667c0.736389,1.173007 1.182463,2.635396 1.674253,4.004546c0.850588,2.359506 1.833776,4.624629 2.874033,6.845c1.208574,2.653586 2.669999,5.089615 4.084263,7.551665c1.279466,2.237266 2.491804,4.542684 3.743744,6.808473c1.027307,1.79324 2.058529,3.582083 3.108363,5.352285c1.083714,1.801793 2.246692,3.506402 3.268277,5.373125c1.367163,2.196821 2.747667,4.38286 4.175031,6.509963c0.670376,0.857123 1.123165,2.05359 1.887081,2.782571c0.290255,0.276974 0.232704,0.220748 0.299922,-0.096702c-2.276386,1.880244 -4.552773,3.760489 -6.829189,5.640733c0.065411,-0.091973 0.152867,-0.162143 0.196204,-0.27589c0.107483,-0.282244 0.171117,-0.592918 0.249147,-0.893383c0.389396,-1.49913 0.764186,-2.970825 1.217488,-4.437098c0.702208,-1.891989 1.473983,-3.768168 2.443047,-5.432633c1.229835,-2.112406 2.690447,-3.972473 4.105675,-5.849706c2.308309,-2.938239 4.739791,-5.691568 7.146729,-8.480343c1.870908,-2.183121 3.67508,-4.470379 5.462629,-6.776339c1.675969,-2.205976 3.385608,-3.611837 5.078774,-5.79342c1.417215,-1.802365 3.244877,-3.853877 4.598549,-5.741741c1.718222,-1.986101 5.411161,-6.210281 6.550679,-7.424215c2.451118,-2.334359 1.075041,-2.088585 5.756287,-5.989653c0.092696,-0.077247 0.222495,-0.024996 0.331815,0.003012c0.445321,0.11453 0.651523,0.614963 0.875946,1.088442c0.481038,1.807997 0.711574,3.721007 1.032788,5.585772c0.56482,3.83885 1.856754,7.389612 3.187507,10.863791c1.113799,2.584681 2.169807,5.220649 3.439124,7.680229c0.88498,1.714819 1.493167,2.733151 2.443047,4.391292c2.42302,4.027919 4.881998,8.036983 7.556393,11.769554c2.197784,2.96182 4.724342,5.408541 7.310769,7.691974c1.922828,1.805798 3.925312,3.441262 5.849013,5.245043c1.404265,1.324218 2.731435,2.802417 4.092996,4.210869c0.458482,0.51269 0.957589,0.945724 1.435074,1.423148l-6.559202,6.149688l0,0c-0.426288,-0.525519 -0.865857,-1.029265 -1.295186,-1.550266c-1.278322,-1.49666 -2.609135,-2.903697 -3.976569,-4.246586c-1.830282,-1.887081 -3.662793,-3.773529 -5.61128,-5.431338c-2.53767,-2.441541 -4.978187,-5.060524 -7.130437,-8.125671c-0.886757,-1.264137 -1.707169,-2.402722 -2.547337,-3.725434c-1.70202,-2.679606 -3.256231,-5.526986 -4.936537,-8.230654c-2.248861,-3.833067 -4.586924,-7.62256 -6.252985,-11.981328c-1.32473,-3.526098 -3.089631,-6.837712 -4.160455,-10.509781c-3.153446,-8.888351 3.625299,-6.393053 3.849962,-3.001121c2.523636,3.041265 -5.528883,9.530388 -6.953778,11.354978c-11.818399,13.777579 -11.92293,13.836696 -18.692701,21.176799c-3.065358,3.360522 -6.263014,6.658704 -6.419495,8.084442c-0.028008,0.255953 -2.309514,1.516748 -2.314422,1.776496c-0.003614,0.18744 0.144706,0.457247 0.032736,0.562742c-2.273013,2.137161 -4.681578,4.006233 -7.022381,6.009349c-0.862002,-1.070553 -1.323435,-2.589861 -2.113159,-3.75052c-1.330151,-2.240579 -2.750558,-4.381987 -4.15127,-6.542608c-1.188336,-1.695906 -2.292227,-3.492278 -3.374465,-5.311538c-1.049743,-1.790831 -2.164446,-3.516401 -3.066291,-5.453443c-1.191618,-2.311501 -2.392994,-4.608065 -3.662131,-6.845903c-1.396737,-2.52123 -2.754624,-5.080072 -4.169309,-7.583802c-1.066759,-2.225671 -2.011699,-4.542262 -3.011601,-6.820666c-0.178345,-0.397256 -1.204388,-2.675751 -1.503105,-2.899029c-0.0259,-0.019274 -0.053606,0.028911 -0.080409,0.043337c0.40599,3.84942 -0.023189,0.309861 6.599738,-5.694008c0.081583,-0.073964 -0.183947,0.113627 -0.249509,0.212256c-0.371266,0.558737 -0.448423,1.404717 -0.77822,1.999593c-0.587467,1.874793 -1.194178,3.738745 -1.936982,5.507712c-0.762771,1.910932 -1.441458,3.885619 -2.253649,5.760051c-0.825833,1.978753 -1.716897,3.905676 -2.551915,5.876238c-0.910398,1.844557 -1.895242,3.612262 -3.007174,5.242486c-1.084045,1.845431 -2.411546,3.366726 -3.71477,4.922684c-1.46519,1.578364 -2.845302,3.2899 -4.311094,4.866789c-3.493814,3.534771 -6.918365,7.128148 -10.802177,9.955591c-1.358038,1.07218 -2.778957,1.982397 -4.172712,2.968626l6.073345,-7.272101l-0.000271,0.00003z" id="path3029-4"/>
+ <path stroke="#000000" stroke-width="0" fill="'.$colors['dot'].'" stroke-miterlimit="10.4" stroke-opacity="0.625641" d="m51.542359,11.830431a8.023452,8.023452 0 1 1 -16.046904,0a8.023452,8.023452 0 1 1 16.046904,0z" id="path3039-48-4-9"/>
+ <path stroke="#000000" stroke-width="0" fill="'.$colors['dot'].'" stroke-miterlimit="10.4" stroke-opacity="0.625641" d="m76.175022,52.413521a8.023452,8.023452 0 1 1 -16.046904,0a8.023452,8.023452 0 1 1 16.046904,0z" id="path3039-7-8-8"/>
+ <path stroke="#000000" stroke-width="0" fill="'.$colors['dot'].'" stroke-miterlimit="10.4" stroke-opacity="0.625641" d="m113.473391,9.57383a8.023452,8.023452 0 1 1 -16.046904,0a8.023452,8.023452 0 1 1 16.046904,0z" id="path3039-4-5-3"/>
+ <path stroke="#000000" stroke-width="0" fill="'.$colors['dot'].'" stroke-miterlimit="10.4" stroke-opacity="0.625641" d="m146.927757,60.422215a8.023452,8.023452 0 1 1 -16.046904,0a8.023452,8.023452 0 1 1 16.046904,0z" id="path3039-6-8-4"/>
+ <path stroke="#000000" stroke-width="0" fill="'.$colors['dot'].'" stroke-miterlimit="10.4" stroke-opacity="0.625641" d="m19.119154,53.659801a8.023452,8.023452 0 1 1 -16.046904,0a8.023452,8.023452 0 1 1 16.046904,0z" id="path3039-8-4"/>
+ </g>
+ </g>
+</svg>
+';
+}
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/skin/gray/base/css/base.css b/mayor-orig/www/skin/gray/base/css/base.css
new file mode 100644
index 00000000..2f645201
--- /dev/null
+++ b/mayor-orig/www/skin/gray/base/css/base.css
@@ -0,0 +1,678 @@
+@media screen {
+
+ html {
+ height: 100%;
+ -webkit-filter: grayscale(100%);
+ -moz-filter: grayscale(100%);
+ filter: grayscale(100%);
+/* this breaks firefox */
+ }
+ html body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin:0px; padding:0px; height: 100%; overflow: auto; }
+ a { text-decoration:none; }
+ .onClickHideShow, .onClickHide, .onClickShow { cursor: pointer; }
+
+ /* mayorlayers */
+ #debug {
+ padding: 20px; background: rgba(0,0,0,0.7); color: yellow; border: 0px red solid;
+ position: absolute; z-index: 1000; top: 0px; left: 0px; right: 0px;
+ }
+ #debug pre { background: rgba(240,240,240,0.9); color: #880000; padding: 10px; margin: 0px;}
+
+ #help {
+ border-radius: 2px;
+ box-shadow: 3px 3px 15px 0px rgba(100,100,100,5.0);
+ position: absolute; top: 10px; left: 50%; height: 600px; width: 1000px; z-index: 500; margin: 0 -500px;
+ border: 1px solid #888888; background: white; }
+ #help iframe { width: 1000px; height: 558px; margin: 0; border: none; }
+ #helpHeader { text-align: center; font-size: 16px; width: 992px; height: 20px; margin: 0px; background: #44cbf8; cursor: pointer; color: white; font-weight: bold; padding: 4px;
+ border-bottom: #f3f3f3 solid 4px;
+ }
+ #hideHelp {
+ position: absolute; top:4px; right: 4px;
+ cursor: pointer; background: #822; color: white; padding: 2px 5px; font-size: 12px;
+ border: #822 1px solid; border-radius: 2px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+/* box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25);*/
+ }
+ #hideHelp:hover { background-color:red;}
+
+ div.errorMsg { margin: 10px 20%; background: #fee; border: solid 1px red; border-radius: 2px; padding: 10px; box-shadow: 0px 0px 0px rgba(0,0,0,0.5); }
+ div.errorMsg span { font-weight: bold; color: #f00; }
+ div.infoMsg { margin: 10px 20%; background-color: #eee; border: solid 1px rgb(90,133,184); border-radius: 2px; padding: 10px; box-shadow: 0px 0px 0px rgba(0,0,0,0.5); }
+ div.infoMsg span { font-weight: bold; color: rgb(21,71,123); }
+ div.errorMsg span.alertParam, div.infoMsg span.alertParam { font-weight: normal; color: rgba(0,0,0,0.8); }
+
+ div#mayorErrorSmall span { padding:4px 4px;}
+ div#mayorErrorSmall span.errorMsg { color:red; }
+ div#mayorErrorSmall span.infoMsg { color:rgb(21,71,123); }
+
+ #mayorSearch {
+ z-index:4;
+ position: fixed;
+ width: 500px;
+ max-height: 500px; overflow:auto;
+ padding: 10px;
+ border: 5px solid #ccc;
+ border-radius: 2px;
+ background-color: #fff;
+ top: 30%;
+ left: 50%;
+ margin-top: -100px;
+ margin-left: -250px;
+ box-shadow: 0px 1px 100px 30px rgba(101,101,101,0.9);
+ }
+ #mayorSearch input {
+ font-size:30px;
+ width:99%;
+ height:50px;
+ padding:0px 0px 0px 0px;
+ margin:0px;
+ border: solid 1px #dddddd;
+ }
+
+ #mayorSearch a { display: block; color: cornflowerblue; padding: 2px; }
+ #mayorSearch a:before { content:' \25AB '; }
+ #mayorSearch a:hover { text-decoration: underline; }
+ #mayorSearch a.aktiv { outline: solid 2px cornflower; }
+ #mayorSearch a.aktiv:before, #mayorSearch a:hover:before { content:' \25AA '; }
+
+ div.inlinehelp { position: relative; display: inline-block; color:#446688; }
+/* div.inlinehelp span.onClickHideShow { padding: 1px 6px; border-radius: 14px; border: #68a solid 1px; color: #468; font-weight: bold; font-size: 10px;}*/
+ div.inlinehelp span.onClickHideShow { font-size: 10px; color: #446688;}
+ div.inlinehelp p {
+ width: 200px; position: absolute; display: inline-block; top: -15px; left: 35px; z-index: 1000;
+ background-color: #ffa;
+ border: solid 1px #888; padding: 4px; border-radius: 2px;
+ font-weight: normal; text-align: left; white-space: pre-wrap;
+ }
+ div.inlinehelp span.onClickHideShow:hover { color: rgb(106,128,250); }
+
+ /* mayorhead */
+ /* placeholder */
+ #head { z-index: 2; position: absolute; width: 100%; height: 60px;
+ background-color: #3496B9;
+ }
+
+ #mayorhead { }
+
+ #logo { z-index: 3; height: 40px; position: absolute; top: 8px; left: 14px; border: 0px none; }
+ #logobadge { z-index: 4; height: 25px; position: fixed; top: 28px; left: 90px; border: 0px none; }
+
+ #nav, #nav ul { list-style: none; }
+ #nav { z-index: 3; margin: 0px;
+ padding-left: 140px;
+ }
+
+ #nav li { position: relative; }
+ #nav > li { float: left; z-index: 20; text-align: center; padding: 0;
+/* background-color: #3fa79c; */
+ background-color: #3496B9;
+ border-bottom: 0px solid #D2DFE9;
+ /* border-bottom: 1px solid rgb(165,190,200);/* */
+ }
+ #nav > li.active { max-width: 160px; }
+ #nav > li:hover { z-index: 22; }
+ #nav > li > ul { top: 50px; left: -1px; /* background: #1A4B5C; */}
+ #nav > li > ul > li > a { margin-left: 10px; }
+
+ #nav li:hover { background: #4fbcd7;
+ background-color: #3FA79C;
+ }
+ #nav li.active { background: #3facc7; }
+
+ #nav li a { display: block; padding: 3px 10px; color: white; }
+ #nav > li > a { padding: 0px 20px; line-height: 60px; vertical-align: middle; display: table-cell; min-width: 70px;
+ -webkit-transition: all 0.1s ease;
+ transition: all 0.1s ease;
+ }
+ #nav li a:hover { color: orange; }
+ #nav li:hover > ul { display: block; }
+
+ #nav li.nav1szin { background: #3496B9; border-bottom: 1px solid white; }
+ #nav ul.sub { background: #3facc7; }
+
+ #nav ul { display: none; position: absolute; width: 160px; padding: 0px; }
+ #nav ul span { float: left; margin: 6px 5px; color: white; }
+
+ #nav > li > ul { top: 60px; border-top: solid 4px rgba(255,255,255,0.4); }
+ #nav ul > li { background: #3496B9; }
+ #nav ul li { text-align: left; margin-bottom: 1px; }
+ #nav ul li a { padding: 6px 10px; }
+ #nav ul li.active > a { color:#fdb933; }
+
+ #nav ul ul { top: 0px; left: -145px; z-index: 30; background: #3facc7; background: #3496B9}
+ #nav ul ul a { background: #3facc7; }
+ #nav ul ul a:hover { background: #4fbcd7; color: white; border-right: solid 4px orange;} /* mod */
+
+ #nav li.start { /* fogó */
+ height: 20px; min-width: 0; padding-right: 0px; padding-left: 6px;
+ margin-top:20px;
+ background-color:lightgrey;
+ border-radius: 0px 50px 50px 0px; border-bottom: 0px;
+ z-index: 20;
+ }
+
+ #nav:hover li.start {
+ animation: moIn 0.1s; -webkit-animation: moIn 0.1s;
+ }
+
+ #nav li.start:hover {
+ background: #D2DFE9;
+ padding-left:9px;
+ }
+
+ #poz { z-index: 2; padding: 0; list-style: none; background-color: rgb(230,230,230); margin: 0;
+ height: 20px; border-bottom: #f3f3f3 solid 4px; text-shadow: 0px 1px rgba(52, 150, 185, 0.1);
+ border-top: rgb(247, 197, 14) solid 4px;
+ animation-name: niceMaYoR;
+ animation-duration: 30s;
+ animation-iteration-count: 4;
+ animation-direction: alternate;
+ animation-timing-function: ease-in-out;
+ animation-delay: 60s;
+ }
+
+ #poz > li { padding: 2px 6px; }
+ #poz > li div.nev { float: right; padding: 2px; width: auto; color: #3496b9; text-align: right; }
+ #poz > li div.nev span { color:rgb(70, 130, 180); margin-right: 0px; }
+ #poz > li div.nev span:hover { color:#00c0ff; }
+ #poz > li div.nev a { color: #3496b9;}
+
+ #poz > li a { margin-right:4px; margin-left:4px; padding:0px; margin-top:0px; vertical-align: top;}
+
+ #settings {
+ width: 100%;
+ margin-top: 5px; position:relative; right: 0px;
+ background: #eeeeee;
+ border-width: 0px 1px 1px 1px;
+ border-style: solid;
+ border-color: rgb(230,230,230);
+ border-top: dotted 1px #dddddd;
+ }
+ #settings div {
+ padding: 20px 10px;
+ border-bottom: 1px solid rgb(230,230,230);
+ }
+ #settings div p { margin: 0; padding: 0; text-align: center; }
+ #settings div p.name { font-weight: bold; }
+ #settings table { width: 100%; background: rgb(245,245,245);}
+ #settings table:hover { box-shadow: 0px 0px 100px #eeeeee;}
+ #settings td { width: 50%; text-align: center; padding: 10px; }
+ #settings td a {
+ display: inline-block;
+ vertical-align: baseline; line-height: 29px;
+ position: static;
+ padding: 0px 8px; height: 29px; margin: 0px 8px;
+ text-align: center; text-decoration: none; font-weight: bold; font-size: 10px;
+ background: white; color: #444;
+ border: solid 1px rgba(0, 0, 0, 0.0976563);
+ border-radius: 2px;
+ }
+ #settings td a:hover { border: white 1px solid; background-color: #44CBF8; color: white; }
+
+ #poz > li span.school {
+ font-variant: small-caps;
+ font-size: 14px;
+ color: rgb(125,150,160);
+ /* font-weight: bold; */
+ letter-spacing: 0.32em;
+ overflow: hidden;
+ white-space:nowrap;
+ }
+ #poz > li span.school:hover { text-shadow: 0 0 0.2em #eee, 0 0 0.2em #eee }
+
+ #nav1 { z-index: 3; position: absolute; margin-left: 290px; margin-right: 0px; width: 100%;
+
+ }
+ #nav1 div { background: rgba(52,150,185,0.6); }
+ #nav1 div a { line-height:60px; padding: 0px 12px 0px 12px; display: inline-block; text-decoration: none; color: #fff;
+ background: #3496b9; margin-top: 0px;
+ }
+ #nav1 div a:hover { color: #fdb933;
+ background-color: ;
+ box-shadow: inset 0px -3px 0px #44CBF8;
+ }
+ #nav1 div a.aktiv { color:#fdb933; }
+ #nav1 div a.aktiv:hover { color: white; }
+
+ #nav1 div span.onClickHideShow {
+ display:none;
+ cursor: pointer; color: white; background: rgba(255,255,255,0.2); line-height:60px;
+ padding: 0px 12px 0px 12px; float: right; margin-right: 290px/* annyi, amennyi a #nav1 bal margója!*/; }
+
+ #nav2.vertical {
+ z-index: 1; width: 140px; margin: 0; height: 100%;
+ background-color: #D2DFE9;
+/* margin-top: -25px;
+ padding-top: 25px;
+*/ position: fixed;
+ overflow: auto;
+ top:88px;
+ background: -webkit-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: -moz-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ }
+ #nav2.vertical ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.vertical ul li { border-bottom: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li:first-child { border-top: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li a { display: block; color: black; font-size: 11px; text-decoration: none; padding: 6px 6px; width:128px; }
+ #nav2.vertical ul li a.aktiv { background-color: white; }
+ #nav2.vertical ul li a:hover { color: white; background: #9abcd8; }
+
+ #nav2.horizontal {
+ z-index: 1; width: 100%;
+ margin-top: 0px;
+ top: 88px;
+ text-align: center;
+ padding-top: 5px; padding-bottom: 5px;
+ position: fixed;
+ overflow: none;
+ border-bottom: solid 3px #eeeeee;
+ background-color: #82bfd5;
+ color: white;
+ font-size:x-small;
+ }
+ #nav2.horizontal ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.horizontal ul li { display: inline; border-right: solid 1px #888888; }
+ #nav2.horizontal ul li:last-child { display: inline; border-right: solid 0px #888888; }
+ #nav2.horizontal ul li a {display: inline; color: white; width: 128px; padding: 0px 6px; text-decoration: none; }
+ #nav2.horizontal ul li a.aktiv { color: white; background-color: orange;}
+ #nav2.horizontal ul li a:hover { color: white; background: orange; }
+ #nav2.horizontal:hover li { }
+
+ div.mayorfoot { text-align: center; font-size:smaller; color: #aaa; }
+ div.mayorfoot a { color: rgba(52, 150, 185, 0.6);}
+ div.mayorfoot:hover a { color: rgba(52, 150, 185, 1);}
+ #mayorfoot.leftpad { margin-top:2em; margin-left: 141px; }
+ #mayorfoot.toppad { margin-top: 40px; margin-left: 0px; }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+
+ #updateWindow { z-index: 152; position: fixed; background: rgb(255,255,255); min-height: 100px; min-width: 200px; border: #3496B9 2px solid; border-radius: 4px; left:20%; right:20%;}
+/* #updateWindow #updateHeader { min-height: 20px; min-width: 100px; background: #1a4c5c; color: white; text-align: center; line-height: 20px; position: relative; top: -13px; border-radius: 4px; margin: 0 50px; border: solid 2px #3496b9; }*/
+ #updateWindow #updateHeader { min-height: 30px; min-width: 100px; background: #1a4c5c; color: white;
+ font-size:16px;text-align: center; line-height:30px; margin: 0 0px 10px 0px; border-bottom: solid 2px rgb(247, 197, 14); /*#3496b9*/ }
+ #updateWindow #updateCloseButton { position: absolute; right: -20px; top: -20px; z-index: 0; background : white; border: solid 3px #3496b9; border-radius: 20px;}
+ #updateWindow #updateCloseButton:hover { background : #eeeeee;}
+ #updateHeader { cursor: pointer; }
+ #updateForm { max-height: 100%; overflow: auto; }
+
+
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 400px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; width: 100px; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ #logo, #head, #nav1, #nav, #poz { position: fixed; }
+ #head { top: 0; left: 0; }
+ #nav { top: 0; left: 0; }
+ #nav1 { top: 0; }
+ #poz { top: 60px; width: 100%; }
+
+ #mayorbody { padding-top: 1px; padding-right: 0px;
+ /*margin-left:0px;*/ margin-top: 88px;
+ }
+ #mayorbody.leftpad { margin-left: 141px; }
+ #mayorbody.toppad { margin-left: 0px; top:33px; position: relative;}
+
+ /* alternates */
+ #mayorhead.small #nav1 div a { line-height:30px; }
+ #mayorhead.small #nav > li > a { line-height:30px;}
+ #mayorhead.small #head { height:30px;}
+ #mayorhead.small #poz { height:20px;}
+
+ /* ------------ */
+/* #mayorerror {z-index:100;position:fixed; bottom:0px; min-height:88px; width:100%;background-color: rgba(255,20,147,0.9); border-bottom: solid 1px red; display:none;}*/
+
+ #nav2 .icons span { padding: 0px 6px; vertical-align:middle; cursor:pointer}
+ #nav2.vertical .icons { height:26px; color: lightslategrey;}
+ #nav2.vertical .icons span { font-size:11px; display:table-cell; padding-top:8px;}
+ #nav2.vertical .icons span:hover {color:white;}
+
+ #nav2.horizontal .icons {display:inline; float:left; padding-top:3px; height:100%;}
+ #nav2.horizontal .icons span { font-size:11px; display:inline; padding-top:0px; color: white; border: dotted 1px lightblue; padding:3px; margin:0px 2px; background-color: rgba(100,100,100,0.1);}
+ #nav2.horizontal .icons span:hover {color:orange;}
+
+ #nav2 ul li.fullmenuitem { display:none }
+
+ #nav2fullmenu.aktiv { color: rgb(30, 144, 255);}
+ #nav2fullmenu.aktiv:hover { color: rgb(60,174,255) !important;}
+
+ #mayorGlobalLogin {
+ /*background-color: rgba(0, 0, 0, 0.6); */
+ padding:0px 0px 0px 0px; z-index: 100; position:fixed; top:0px; right:0px; height:60px;}
+ #mayorGlobalLogin span { color:#eeeeee; padding-right:2px; }
+ #mayorGlobalLogin span.failed { color: rgb(255,215,0);; text-shadow: 0px 0px 2px #ff0000;}
+ #mayorGlobalLogin:hover span.failed { color: rgb(255,235,0); }
+ #mayorGlobalLogin:hover span { color:white; }
+ #mayorGlobalLogin div.large { font-size:40px; padding:10px; color: #eeeeee;}
+ #mayorGlobalLogin div.large:hover { font-size:40px; padding:10px; color: white; }
+
+ #mayorGlobalLogin input[type=text] { width:100px; }
+ #mayorGlobalLogin input[type=password] { width:100px; }
+
+ /* add default */
+ #mayorGlobalLogin form input {margin:2px;}
+ #mayorGlobalLogin table { height:60px;}
+ #mglFBconnect.FBstatusunknown { /*color: #aaa;*/ }
+ #mglFBconnect:after { content: " ";
+ margin-left:4px;display: inline-block;width:8px;
+ height:8px;border-radius: 8px;border: solid 1px white; background-color:#888;
+ }
+ #mglFBconnect:hover:after {animation: sheen 1s forwards;}
+ #mglFBconnect.FB2:after {background-color:lightgreen;}
+ #mglFBconnect.FB1:after {background-color:orange;}
+ #mglFBconnect.FB0:after {background-color:red;}
+
+ #mayorErrorHide {color: rgb(90, 133, 184); cursor:pointer;}
+ #mayorErrorHide:hover {color: rgba(52, 150, 185, 0.6);}
+
+ .hidden { display:none }
+
+ #ui-datepicker-div {position: relative; z-index:4 !important;}
+
+ #mayorErrorSmall.mayorErrorSmallInfo {
+ overflow:hidden;
+ line-height:22px;
+ border-bottom: solid 4px rgb(106,128,250);
+ border-top: solid 4px lightblue;
+ padding:0px; height:20px; width:100%;
+ background-color:rgba(250,250,250,0.9); position:fixed;
+ top:60px;left:0px; z-index:3
+ }
+
+ #mayorErrorSmall.mayorErrorSmallError {
+ overflow:hidden;
+ line-height:22px;
+ border-bottom: solid 4px red;
+ border-top: solid 4px orange;
+ padding:0px; height:20px; width:100%;
+ background-color:rgba(250,250,250,0.9); position:fixed;
+ top:60px;left:0px; z-index:3
+ }
+
+
+/* .nyitva2 { width:390px !important; }*/
+
+ #updateWindowSide {
+ z-index: 152;
+ position: fixed;
+/* background-color: rgba(73, 71, 71,0.92);
+*/ border-left: solid 0px black;
+ padding:4px;
+ color:white;
+ right: -368px;
+ width: 360px;
+ top:60px;
+ bottom:0;
+ overflow-y: auto;
+ border-top : solid 4px grey;
+ transition: all 300ms ease;
+ display:none;
+ }
+ #updateWindowSide.nyitva { right:0px;
+ background-color: rgba(73, 71, 71,0.92);
+ display:block;
+ }
+ #updateWindowSide h1 { padding: 4px 8px; margin:0px; text-align:center; border-bottom: solid 1px #dddddd; }
+ #updateWindowSide h1 div { font-size:16px; min-height: 20px; }
+ #updateWindowSide h1 span#btn_updateWindowSideClose { float:left; font-size:18px; cursor: pointer; }
+ #updateWindowSide h1 span#btn_updateWindowSideClose:hover { color: #777777; }
+ #updateWindowSide a {color: inherit; }
+ #updateWindowSide a:hover {color: inherit; }
+
+ #updateWindowSideSub {
+ z-index: 153;
+ position: fixed;
+/* background-color: rgba(100, 100, 100,0.92);
+*/ border-left: solid 0px black;
+ padding:4px;
+ color:white;
+ right: -328px;
+ width: 320px;
+ top:60px;
+ bottom:0;
+ overflow-y: auto;
+ border-top : solid 4px #eee;
+ transition: all 300ms ease;
+ display:none;
+ }
+ #updateWindowSideSub.nyitva { right:0px;
+ background-color: rgba(100, 100, 100,0.92);
+ display:block;
+ }
+ #updateWindowSideSub h1 { padding: 4px 8px; margin:0px; text-align:center; border-bottom: solid 1px #dddddd; }
+ #updateWindowSideSub h1 div { font-size:16px; min-height: 20px; }
+ #updateWindowSideSub h1 span#btn_updateWindowSideSubClose { float:left; font-size:18px; cursor: pointer; }
+ #updateWindowSideSub h1 span#btn_updateWindowSideSubClose:hover { color: #777777; }
+ #updateWindowSideSub a {color: inherit; }
+ #updateWindowSideSub a:hover {color: inherit; }
+
+ #mayorNaviIconHolder { text-align:center; display:table; width:100%; border-bottom: solid 1px white;}
+ div.mayorNaviIcon { display:inline-block; text-align:center; padding: 10px 5px 5px 5px; margin-right:4px; border-width:0px 0px 0px 0px; border-style: solid; border-color:white;}
+ div.mayorNaviIcon a { color:inherit; text-decoration: none; display:inline-block;}
+ div.mayorNaviIcon span { font-size:16px; }
+ div.mayorNaviIcon:hover { background-color: cornflowerblue; cursor:pointer; text-shadow: 0px 0px 1px blue;}
+
+ #nav, #nav1,#nav2 {display:visible;}
+ #mayorIcons { height: 26px; color: #789; }
+ #hamburgerIcon {
+display:none;
+color:#D2DFE9; font-size:20px;z-index:100000;
+margin-left:0px;
+position:fixed;
+top:0px;
+padding:0px 8px;
+cursor: pointer;
+vertical-align: middle;
+border-radius:1px;
+border: solid 0px #eee;
+ }
+ #hamburgerIcon span { line-height:60px; }
+ #hamburgerIcon:active {color:white;}
+ #hamburgerIcon.nyitva {
+ color:white;
+ }
+
+ .hamburger { display:none;
+ position:fixed; z-index:1000; top:0px; left:0px;
+ padding: 15px 15px;
+ cursor: pointer;
+ transition-property: opacity, -webkit-filter;
+ transition-property: opacity, filter;
+ transition-property: opacity, filter, -webkit-filter;
+ transition-duration: 0.15s;
+ transition-timing-function: linear;
+ font: inherit;
+ color: inherit;
+ text-transform: none;
+ background-color: transparent;
+ border: 0;
+ margin: 0;
+ overflow: visible;
+ }
+
+ /* author Jonathan Suh jonsuh + mayor.hu */
+ /* https://github.com/jonsuh/hamburgers */
+ .hamburger:hover { opacity: 0.7; }
+ .hamburger-box {width: 20px;height: 30px;display: inline-block;position: relative;}
+ .hamburger-inner {display: block;top: 50%;margin-top: -2px;}
+ .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
+ width: 20px;height: 3px;
+ background-color: #eee;
+ border-radius: 2px;position: absolute;
+ transition-property: -webkit-transform;
+ transition-property: transform;
+ transition-property: transform, -webkit-transform;
+ transition-duration: 0.15s;
+ transition-timing-function: ease;
+ }
+ .hamburger-inner::before, .hamburger-inner::after {content: "";display: block;}
+ .hamburger-inner::before { top: -7px; }
+ .hamburger-inner::after { bottom: -7px; }
+
+ /* Squeeze */
+ .hamburger--squeeze .hamburger-inner {
+ transition-duration: 0.1s;
+ transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ }
+ .hamburger--squeeze .hamburger-inner::before { transition: top 0.1s 0.14s ease, opacity 0.1s ease;}
+ .hamburger--squeeze .hamburger-inner::after {
+ transition: bottom 0.1s 0.14s ease, -webkit-transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ transition: bottom 0.1s 0.14s ease, transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ transition: bottom 0.1s 0.14s ease, transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19), -webkit-transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
+ }
+ .hamburger--squeeze.is-active .hamburger-inner {
+ -webkit-transform: rotate(45deg);
+ transform: rotate(45deg);
+ transition-delay: 0.14s;
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
+ }
+ .hamburger--squeeze.is-active .hamburger-inner::before {top: 0;opacity: 0;transition: top 0.1s ease, opacity 0.1s 0.14s ease;}
+
+ .hamburger--squeeze.is-active .hamburger-inner::after {
+ bottom: 0;
+ -webkit-transform: rotate(-90deg);
+ transform: rotate(-90deg);
+ transition: bottom 0.1s ease, -webkit-transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
+ transition: bottom 0.1s ease, transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
+ transition: bottom 0.1s ease, transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.1s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
+ }
+ /* end of hamburger */
+
+ #mayorNav {
+ width:100%;
+ position:absolute;
+ z-index:1;
+ background-color:#82bfd5;
+ opacity:1;
+ padding-bottom:1em;
+ border-bottom: solid 4px #F7C50E;
+ }
+
+ #mayorNav a { color:#eee; }
+ #mayorNav a:hover { color:white; }
+ #mayorNav ul {list-style-type: none; }
+ #mayorNav>ul>li { margin-bottom:1.4em; font-size:14px;}
+ #mayorNav>ul>li>a { font-size:large; border-bottom: solid 1px #eee; }
+ #mayorNav>ul>li>a:first-child { line-height:2em;}
+ #mayorNav ul li a:active { background-color: #303F9F;}
+ #mayorNav ul li {line-height:1.5em;}
+ #mayorNav div.mayorNavIcons div { background-color: orange; display:table-cell; text-align:center; padding:4px; }
+ #mayorNav div.mayorNavIcons div span { font-size:x-large;}
+ div.mayorLogo a img {
+ -webkit-transition: margin 1s;
+ transition: margin 1s;
+ }
+
+ div.arckep--container {position: relative;overflow: hidden;border-radius: 50%;border: solid 2px #fff; color: white;}
+ div.arckep--container img {width: 100%; height: auto; filter: grayscale(100%)};
+ div.arckep--container:hover { border: solid 2px orange; }
+ div.arckep--container img:hover { filter: grayscale(10%)};
+
+ div.arckepContainer {position: relative;overflow: hidden;border-radius: 50%;border: solid 2px #fff; color: white;}
+ div.arckepContainer span {
+ border-radius: 50%;border: solid 2px #fff; color: white;
+ height:50px; min-height:50px; width:50px; min-width:50px; background-color: #ddd;
+ font-size:20px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+ div.arckepContainer.osztalyAdat:hover span { background-color: #8cc864; }
+ div.arckepContainer.diakNev:hover span { background-color: #ff8c00; }
+ div.arckepContainer.tankorAdat:hover span { background-color: #aca; }
+
+ div.arckepContainer.size_s {height:32px;width:32px;min-height:32px;min-width:32px;font-size:15px;}
+ div.arckepContainer.size_s span {height:30px;width:30px;min-height:30px;min-width:30px;font-size:13px;}
+
+ div._dotHolder {text-align:center; width:90%; margin:auto; padding:10px 0px;vertical-align:middle;}
+ div._dot {background-color:#eee;display: inline-block;border-radius: 50%;height:10px; width:10px;}
+ div._dot:hover {background-color:cornflowerblue !important;}
+ div._dotHolder:hover div._dot {background-color:#ccc;}
+
+}
+@media print {
+ #nav, #nav1, #nav2, #poz, #head, #logo, #mayorfoot, #logobadge, #mayorGlobalLogin, #updateWindowSide, #updateWindowSideSub, #mayorErrorSmall, .noprint { display: none; }
+ div.arckep--container {display: none;}
+ div.arckepContainer {display: none;}
+}
+
+@media (max-width: 900px) {
+ #nav>li a {padding:0px 8px;}
+}
+@media (max-width: 850px) {
+ #nav>li a {width:70px; padding:0px 4px;}
+}
+@media (max-width: 764px) {
+ .school { display: none; }
+ #nav, #nav1 { display: none;}
+ #nav2>ul:not(:first-child) {display:none;}
+ #mayorbody { margin-left:0px;}
+ #hamburgerIcon {display:block;}
+ div.mayorLogo a img { margin-left:40px; }
+
+ #mayorSearch {
+ z-index:4;
+ position: fixed;
+ width: 95%;
+ padding: 0px;
+ border: 5px solid #ccc;
+ border-radius: 2px;
+ background-color: #fff;
+ top: 120px;
+ left: 0px;
+ margin-top: 0px;
+ margin-left: 0px;
+ box-shadow: 0px 1px 100px 10px rgba(101,101,101,0.9);
+ }
+
+ .hamburger { display: inline-block;}
+ div.arckepContainer {display:none;}
+ div.arckep--container {display:none;}
+
+}
+
+@keyframes niceMaYoR {
+ 0% { border-top: rgb(247,197,14) solid 4px; }
+ 100% { border-top: rgb(147,197,214) solid 4px; }
+}
+
+@keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+@-webkit-keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+@keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+@-webkit-keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+
+.mayorLoader {
+ background: linear-gradient(270deg, #E6E6E6, #E6E6E6, #7D96A0, #E6E6E6, #E6E6E6);
+ background-size: 400% 400%;
+ -webkit-animation: mayorLoaderAnim 4s ease infinite;
+ -moz-animation: mayorLoaderAnim 4s ease infinite;
+ -o-animation: mayorLoaderAnim 4s ease infinite;
+ animation: mayorLoaderAnim 4s ease infinite;
+}
+
+@-webkit-keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+@-moz-keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+@-o-keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+@keyframes mayorLoaderAnim {
+ 0%{background-position:0% 50%}
+ 50%{background-position:100% 50%}
+ 100%{background-position:0% 50%}
+}
+
+
+
diff --git a/mayor-orig/www/skin/oldschool/base/css/base.css b/mayor-orig/www/skin/oldschool/base/css/base.css
new file mode 100644
index 00000000..39c25726
--- /dev/null
+++ b/mayor-orig/www/skin/oldschool/base/css/base.css
@@ -0,0 +1,86 @@
+/*
+ Module: base
+*/
+@import "head.css";
+@media screen {
+
+ html body {
+ font-family: Verdana, sans-serif;
+ font-size: 12px;
+ margin:0px;
+ padding:0px;
+ background-color: white;
+ background-image: url("/skin/classic/base/img/gradient.jpg");
+ background-repeat: repeat-x;
+ }
+
+ /* set default layout! */
+ table { font-size: 12px; }
+
+ form { margin: 0px; }
+
+ div#mayorerror { }
+
+ div.mayorbody {
+
+ padding: 0px;
+
+ }
+
+ div.mayorfoot {
+ text-align: center;
+ font-size: 10px;
+ width:100%;
+ }
+/* - Alert - */
+
+ form.mayorAlert { margin: 0px; padding: 0px; }
+ form.mayorAlert input { display: none; }
+ div.errorMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #ff0000;
+ padding: 15px;
+ }
+ div.errorMsg span {
+ font-style: italic;
+ }
+
+ div.infoMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #0000ff;
+ padding: 15px;
+ }
+ div.infoMsg span {
+ font-style: italic;
+ }
+
+ span.alertParam {
+ color: green;
+ }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow {background-color: white; position: absolute;z-index:200;margin:auto auto; width:400px; border: solid 1px black;}
+ #updateHeader {background-color: #eeeeee; border-bottom: solid 1px black; text-align: center; font-weight: large;padding:4px 2px;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 300px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+}
+@media print {
+ html body {
+ font-family: Verdana, sans-serif;
+ font-size: 12px;
+ }
+ div.mayorfoot {
+ text-align: center;
+ font-size: 10px;
+ margin: 5px;
+ }
+ div.namepolicy { display: none; }
+ table.mayorhead { display: none; }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/oldschool/base/css/head.css b/mayor-orig/www/skin/oldschool/base/css/head.css
new file mode 100644
index 00000000..e6303c3f
--- /dev/null
+++ b/mayor-orig/www/skin/oldschool/base/css/head.css
@@ -0,0 +1,149 @@
+/*
+ Module: base
+*/
+@media screen {
+
+ div.namepolicy {
+ background-color:#ced89c;
+ border-style: none none solid none;
+ border-width: 1px;
+ border-color: #666666;
+ }
+ div.namepolicy table { font-size: 10px; width:100%; }
+ div.namepolicy table td { width:40%; }
+ div.namepolicy table td.right { text-align: right; }
+ div.namepolicy table td.left { text-align: left;}
+ div.namepolicy table td.help a { background-color:#aeb86c; text-decoration: none; font-weight: bold; padding: 2px 5px; color: rgb(80,60,40); display: block; }
+ div.namepolicy table td.help a:hover { background-color:#bec87c; }
+ div.namepolicy table th { width:20% }
+ div.namepolicy span.nev { padding-right: 14px; }
+ div.namepolicy table td.language span { vertical-align: middle; }
+ div.namepolicy table td.language img { margin: 0px 0px 0px 4px; height: 10px; border: solid 1px #777777; }
+ #langSelect { vertical-align: middle; padding: 0px; margin: 0px;}
+
+ table.mayorhead { font-size: 10px; margin: 3px 3px 20px 3px;}
+
+ table.mayorhead td.namepolicy { padding: 5px; }
+ table.mayorhead td.namepolicy table {
+ font-size: 10px;
+ border-style: solid;
+ border-width: 2px ;
+ border-color: #550670;
+ background-color: #8877aa;
+ color: white;
+ }
+
+/* Új menü */
+
+ ul#pagemenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #040562;
+ list-style-type: none;
+ margin:1px;
+ }
+ ul#pagemenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#pagemenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#pagemenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#pagemenu li.active a {
+ background-color: #620405;
+ }
+ ul#pagemenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* SUB */
+
+ ul#submenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #040582;
+ list-style-type: none;
+ margin:1px 1px 1px 40px;
+ }
+ ul#submenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#submenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#submenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#submenu li.active a {
+ background-color: #620405;
+ }
+ ul#submenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* f */
+
+ ul#fmenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #0405a2;
+ list-style-type: none;
+ margin:1px 1px 1px 80px;
+ }
+ ul#fmenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#fmenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#fmenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#fmenu li.active a {
+ background-color: #620405;
+ }
+ ul#fmenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+ #changeSkin {
+ display: inline;
+ }
+ #changeSkin .onChangeSubmit {
+ background-color: #eeeeee;
+ font-size:9px;
+ }
+
+}
+@media print {
+
+ div.namepolicy { display: none; }
+ table.mayorhead { display: none; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/oldschool/base/html/base.phtml b/mayor-orig/www/skin/oldschool/base/html/base.phtml
new file mode 100644
index 00000000..1775f15f
--- /dev/null
+++ b/mayor-orig/www/skin/oldschool/base/html/base.phtml
@@ -0,0 +1,337 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpheader();
+
+ if ($MENU['set'][$policy][$page][$sub][$f]['refresh'] > 0) {
+ @header("Refresh:".intval($MENU['set'][$policy][$page][$sub][$f]['refresh']));
+ }
+
+ html_head($page,$sub,$f,$lang,$skin);
+ _debugLayer();
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '<div id="mayorerror"></div>';
+ echo '<div class="mayorbody" id="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH, $SSSBB;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<meta property="og:title" content="MaYoR elektronikus napló @ '._SITE.'" />'."\n";
+ echo '<meta property="og:type" content="website" />'."\n";
+ echo '<meta property="og:url" content="http://'.$_SERVER['SERVER_NAME'].'/" />'."\n";
+ echo '<meta property="og:locale" content="hu_HU" />'."\n";
+ echo '<meta property="og:image" content="http://www.mayor.hu/skin/mayor/base/img/mayor_small_ssl.png" />'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if (is_string($SSSHH) && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '<link rel="shortcut icon" href="/skin/classic/base/img/favicon.ico" />'."\n";
+ echo "</head>\n<body>\n";
+ if (is_string($SSSBB) && $SSSBB!='') echo $SSSBB;
+
+}
+
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $page, $sub, $f;
+
+ // PATCH MENU
+ $MENU['auth'] = array(
+ array('txt' => 'Bejelentkezés', 'url' => 'index.php?page=auth&f=login&toPolicy=private'),
+ array('txt' => 'Szülői bejelentkezés', 'url' => 'index.php?page=auth&f=login&toPolicy=parent'),
+ );
+ $MENU['modules']['auth']['login'] = array(
+ array('txt' => 'Szülői bejelentkezés', 'url' => 'index.php?page=auth&f=login&toPolicy=parent'),
+ array('txt' => 'Védett oldalak','url' => 'index.php?page=auth&f=login&toPolicy=private'),
+ );
+ //
+ echo '<ul id="pagemenu">';
+ // --------------------------------------------------------
+ if (is_array($MENU)) {
+ foreach ($MENU as $aModule => $items) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($items); $i++) {
+
+ if ($page == $aModule and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+
+ echo '</li>';
+ }
+ }
+ }
+ }
+ // ---------------------------------------------------
+ echo '</ul>';
+
+ // II: SZINT
+ @$pageArray = $MENU['modules'][$page];
+ $aPage = $page;
+
+ if (is_array($pageArray)) {
+ echo '<ul id="submenu">';
+ foreach ($pageArray as $anF => $items) {
+ if ($anF != 'sub') {
+ for ($i=0;$i<count($items);$i++) {
+ if (
+ $page == $aPage and
+ (
+ (
+ !isset($items[$i]['url'])
+ and $f == $anF
+ )
+ or
+ (
+ isset($items[$i]['url']) and
+ strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false
+ )
+ )
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&f=$anF",array('policy','sessionID','lang','skin'));
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+ echo '</li>';
+ }
+ }
+ }
+ echo '</ul>'."\n";
+ }
+
+ // III: SZINT
+ @$subArray = $MENU['modules'][$page]['sub'][$sub];
+ $aSub = $sub;
+
+ if (is_array($subArray)) {
+ echo '<ul id="fmenu">';
+
+ foreach ($subArray as $anF => $items) {
+ for ($i=0;$i<count($items);$i++) {
+ if ($aPage == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&sub=$aSub&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'> '.$items[$i]['txt'].' </a>';
+
+ echo '</li>';
+ }
+ }
+
+ echo '</ul>'."\n";
+ }
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy;
+
+ if (date('m')==12) $imgextra = '-santa';
+ elseif (date('m')==3 && date('d')>=11 && date('d')<=15) $imgextra = '-marc15';
+ elseif (date('m')==4 && date('d')==1) $imgextra = '-flip';
+ else $imgextra = '';
+
+ if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+ //if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl.gif'))
+ // $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl.gif';
+ if (!file_exists($HELP_LOGO = 'skin/'.$skin.'/module-help/img/help_small.jpg'))
+ $HELP_LOGO = 'skin/'._DEFAULT_SKIN.'/module-help/img/help_small.jpg';
+
+ _updateWindow();
+ _keyHelp();
+
+ ## Név, Oldal info, Policy
+ echo '<div class="namepolicy" id="namepolicy">'."\n";
+ echo '<table cellspacing="0" cellpadding="0"><tr>'."\n";
+ echo '<td class="language left hideShowContainer">'."\n";
+
+ echo '<span class="onClickHideShow"><img class="onClickHideShow" id="openLangSelect" src="skin/classic/base/img/flags/'.$lang.'.gif" alt="'.$lang.'" /></span>'."\n";
+
+ echo '<span id="langSelect" class="openable" style="display: none;">';
+ for ($i = 0;$i < count($LANGUAGES); $i++) {
+ if ($LANGUAGES[$i]!=$lang) echo '<a href="'.href('index.php?lang='.$LANGUAGES[$i],array('skin','policy','page','sub','f','sessionID')).'"><img src="skin/classic/base/img/flags/'.$LANGUAGES[$i].'.gif" alt="'.$LANGUAGES[$i].'" /></a>';
+ }
+ echo '</span>';
+
+ formBegin(array('id'=>'changeSkin','action'=>href('index.php', array('sessionID','lang'))));
+ echo '<input type="hidden" name="noModify" value="1" />';
+ echo '<select class="onChangeSubmit" name="skin">';
+ for ($i=0; $i<count($SKINSSHOW); $i++) {
+ $_SEL = ($SKINSSHOW[$i]==$skin)? 'selected="selected"':'';
+ echo '<option value="'.$SKINSSHOW[$i].'" '.$_SEL.'>'.$SKINSSHOW[$i].'</option>';
+ }
+ echo '</select>';
+ global $POLICIES;
+ echo '<select class="onChangeSubmit" name="policy" onchange="submit();">';
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_SEL = ($POLICIES[$i]==$policy)? 'selected="selected"':'';
+ echo '<option value="'.$POLICIES[$i].'" '.$_SEL.'>'.$POLICIES[$i].'</option>';
+ }
+ echo '</select>';
+ /* Némi javascipt támogatás a session kezelésre ebben a formban */
+ $sessionMaxIdleTime=$sessionAlertTime=0;
+ if ((_SESSIONID!='' && _POLICY!='public') && defined('_SESSION_MAX_IDLE_TIME') && _SESSION_MAX_IDLE_TIME>0) {
+ $sessionMaxIdleTime=((_SESSION_MAX_IDLE_TIME*1000*60*60)+1000);
+ if (defined('_SESSION_ALERT_TIME')) $sessionAlertTime = ((_SESSION_MAX_IDLE_TIME*1000*60*60)-(_SESSION_ALERT_TIME*1000*60));
+ }
+ echo '<input type="hidden" id="SESSION_MAX_IDLE_TIME" value="'.$sessionMaxIdleTime.'" />';
+ echo '<input type="hidden" id="SESSION_ALERT_TIME" value="'.$sessionAlertTime.'" />';
+ /* --- */
+ formEnd();
+ //echo '</form>';
+ echo '</td>'."\n";
+ echo '<th>';
+ //echo $page;
+ //if ($sub!='') echo '&nbsp;&raquo;&nbsp;'.$sub;
+ if (is_array(@$INCLUDES['html_mayor_head']['global']['center'])) foreach ($INCLUDES['html_mayor_head']['global']['center'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '</th>';
+ echo '<td class="right">';
+ echo '<span class="nev">'._USERCN.'</span>';
+ echo '</td>';
+ echo '<td class="right">';
+ echo '<img src="skin/classic/base/img/policy/'.$policy.'.gif" alt="'.$policy.'"/>';
+ echo '</td>';
+ echo '<td class="help">';
+ if (isset($sub) && $sub != '') $psf = "$page:$sub:$f"; else $psf = "$page:$f";
+ echo '<a title="'._HELP.'" target="_blank" href="wiki/dok.php?id='.$psf.'">?</a>';
+ echo '</td></tr>';
+ echo '</table>';
+ echo '</div>'."\n";
+ ## ------------------------
+ echo '<table class="mayorhead" cellspacing="0" cellpadding="0">'."\n";
+ echo '<tr><td style="width: 40px">';
+ echo '<a href="'.href('index.php').'" accesskey="h"><img src="'.$HOME_LOGO.'" alt="MaYoR" style="border-width: 0;" /></a>';
+ echo '</td>'."\n";
+ echo '<td style="vertical-align: middle; text-align: left; width: 99%">';
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+ echo '</td>';
+ if (in_array('help',$INSTALLED_MODULES)) {
+ $link = "index.php?page=help&hpage=$page&hsub=$sub&hf=$f";
+ echo '<td>';
+ echo '<a href="'.href($link).'" target="_blank">';
+ echo '<img src="'.$HELP_LOGO.'" alt="'._HELP.'" style="border-width: 0;" />';
+ echo '</a>';
+
+ echo '</td>';
+ }
+ echo "</tr>\n</table>\n";
+
+}
+
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+
+ echo '<div class="mayorfoot" id="mayorfoot">'._MAIN_FOOTER.'</div>'."\n\n";
+ echo "</body>\n</html>";
+}
+
+
+?>
diff --git a/mayor-orig/www/skin/oldschool/base/img/mayor_small_ssl.png b/mayor-orig/www/skin/oldschool/base/img/mayor_small_ssl.png
new file mode 100644
index 00000000..43760ec1
--- /dev/null
+++ b/mayor-orig/www/skin/oldschool/base/img/mayor_small_ssl.png
Binary files differ
diff --git a/mayor-orig/www/skin/oldschool/module-auth/css/login.css b/mayor-orig/www/skin/oldschool/module-auth/css/login.css
new file mode 100644
index 00000000..c3da5e07
--- /dev/null
+++ b/mayor-orig/www/skin/oldschool/module-auth/css/login.css
@@ -0,0 +1,45 @@
+@media screen {
+img { border-width: 0px; }
+h1 {text-align: center; margin: 10px; font-size:20px; }
+h2 {text-align: center; margin: 10px; font-size: 15px; }
+table { font-size: 12px; }
+table.main {width: 100%; border-width: 0px;}
+table.loginablak {
+ background-color: #ffffff;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #555550;
+ width:400px}
+td { padding: 2px }
+form { margin: 30px;padding: 0px; }
+input { font-size: 12px; font-family:Verdana,Arial; background-color: #fffff0; border: solid 1px #666690;}
+select.pp { padding: 0px; margin: 0px; border: none 0px #778890; font-size: 12px; background-color: #eeeee0; font-family: Verdana,Arial; }
+select.pp>option { border: none 0px black; }
+input.submit { border: solid 1px #776650; }
+table.loginablak thead td { background-color: #666690;
+ text-align: center;
+ font-family: Verdana,arial;
+ font-size: 10pt;
+ font-weight:
+ bold;
+ color: white;
+ border-bottom: solid 1px white;
+}
+table.loginablak tbody tr.top td { border-top: solid 1px #666690; }
+
+tfoot td { background-color: #888880; text-align: center; }
+td.co { text-align: center; vertical-align: bottom; font-family: Verdana,arial; font-size:8pt; }
+img.aauthImg {
+ border-top: solid 1px #666690;
+ border-bottom: solid 1px #888880;
+ border-left: solid 1px #666690;
+ border-right: solid 1px #888880;
+}
+#capsLockWarning {
+ position: absolute;
+ background: #ffffaa; color: #ffaaaa; text-align: center;
+ font-size: 20px; font-weight: bold;
+ width: 300px; padding: 20px; margin: 10px auto;
+}
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/pda/base/css/base.css b/mayor-orig/www/skin/pda/base/css/base.css
new file mode 100644
index 00000000..1a321380
--- /dev/null
+++ b/mayor-orig/www/skin/pda/base/css/base.css
@@ -0,0 +1,182 @@
+/*
+ Module: base
+*/
+ html { margin:0px; padding:0px; }
+ html body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ margin:0px;
+ padding:0px;
+ font-size: 11px;
+ }
+
+ form { margin: 0px; }
+ div.mayorbody {
+ padding: 0px;
+ background-color: white;
+ margin-top:0em;
+ margin-bottom:2em;
+ }
+ div.mayorfoot {
+ text-align: center;
+ position: bottom;
+ width:100%;
+ font-size:x-small;
+ color: #888888;
+ }
+ div.mayorfoot a { color:#888888; text-decoration: none; }
+/* - Alert - */
+
+ form.mayorAlert { margin: 0px; padding: 0px; }
+ form.mayorAlert input { display: none; }
+ div.errorMsg {
+ background-color: #eeffd0;
+ border: solid 2px #C71585;
+ padding: 1px;
+ text-align:center;
+ margin:10px;
+ }
+ div.errorMsg span {
+ font-style: italic;
+ }
+ div.infoMsg {
+ background-color: #eeffd0;
+ border: solid 2px #0000ff;
+ padding: 1px;
+ }
+ div.infoMsg span {
+ font-style: italic;
+ }
+
+ span.alertParam {
+ color: green;
+ }
+
+/* Module: base */
+
+ div.namepolicy {
+ background-color: rgb(52, 150, 185);
+// background: rgb(241, 241, 241);
+ border-bottom: 2px solid rgb(247, 197, 14);
+ margin: 0px;
+ padding:0px;
+ min-height:40px;
+ width:100%;
+ }
+
+ div.namepolicy a#home
+ {
+ display: table-cell;
+ height:40px;
+ width:200px;
+ text-align: left;
+ vertical-align: middle;
+ font-size: normal; margin:0px; padding-left:1em; text-decoration: none;
+ color: white;
+ }
+
+/* Menü */
+
+ ul#pagemenu {
+ padding: 0px;
+ text-align: left;
+ background-color: #040562;
+ list-style-type: none;
+ margin:1px;
+
+ }
+ ul#pagemenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#pagemenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#pagemenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#pagemenu li.active a {
+ background-color: #620405;
+ }
+ ul#pagemenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* SUB */
+
+ ul#submenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #040582;
+ list-style-type: none;
+ margin:1px 1px 1px 1px;
+ }
+ ul#submenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#submenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#submenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#submenu li.active a {
+ background-color: #620405;
+ }
+ ul#submenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* f */
+
+ ul#fmenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #0405a2;
+ list-style-type: none;
+ margin:1px 1px 1px 0px;
+ }
+ ul#fmenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#fmenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#fmenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#fmenu li.active a {
+ background-color: #620405;
+ }
+ ul#fmenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+
+ #changeSkin {
+ display: none;
+ }
+ #changeSkin .onChangeSubmit {
+ }
diff --git a/mayor-orig/www/skin/pda/base/html/alert.phtml b/mayor-orig/www/skin/pda/base/html/alert.phtml
new file mode 100644
index 00000000..a7f9ce62
--- /dev/null
+++ b/mayor-orig/www/skin/pda/base/html/alert.phtml
@@ -0,0 +1,85 @@
+<?php
+/*
+ Module: base
+
+ js_alert()
+ html_alert()
+*/
+
+// ------------------------------------------------------------------- //
+// Az $_SESSION['alert'] két részből áll: típus:hiba //
+// típus: alert : javaScript alert //
+// message : hibaüzenet után az oldal betöltődik //
+// page : hibaüzenet után az oldal nem töltődik be //
+// info : információs üzenet //
+// ------------------------------------------------------------------- //
+
+// ---------------------------------------------------------------- //
+// Hibaüzenet kiiratása
+// visszatérési érték: legyen-e utána megjelenítve a lap?
+// --------------------------------------------------------------- //
+
+ function html_alert() {
+
+ global $ALERT_MSG;
+
+ if (!isset($_SESSION['alert']) || count($_SESSION['alert'])==0) {
+ return true;
+ exit;
+ }
+
+ $showPage = true;
+ echo '<form method="post" action="" class="mayorAlert" id="mayorAlert">';
+ for ($j = 0; $j < count($_SESSION['alert']); $j++) {
+
+ // Nincs mindig paraméter - ezért a $param nem kap értéket! - így az explode Notice üzenetet váltana ki...
+ $param = array();
+ $tmp = explode(':',$_SESSION['alert'][$j]);
+ $aType = $tmp[0]; $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = $tmp[$p];
+ $pstr = '';
+ if ($aType == 'popup') {
+ if ($aCode == '' ) $msg = $ALERT_MSG['default'];
+ elseif ($ALERT_MSG[$aCode] == '') $msg = $aCode;
+ else $msg = $ALERT_MSG[$aCode];
+ // paraméter behelyettesítés
+ for($i = 1; $i < count($param); $i++) {
+ $msg = str_replace("%$i%",$param[$i],$msg,$count);
+ if ($param[$i] != '' and $count == 0) $pstr .= $param[$i].',';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+
+ echo '<input type="hidden" name="jsAlert" value="'.$msg.'" />';
+ } else {
+ if ($aCode == '') $msg = $ALERT_MSG['default'];
+ elseif (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '') $msg = $ALERT_MSG['default'].' (<span class="alertParam">'.$aType.':'.$aCode.')</span>';
+ else $msg = $ALERT_MSG[$aCode];
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",'<span class="alertParam">'.$param[$i].'</span>',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= '<span class="alertParam">'.$param[$i].'</span>,';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ }
+ $msg = '<span>'.$title.':</span> ' . $msg;
+ echo '<div class="'.$class.'">'.$msg.'</div>'."\n";
+
+ }
+ $_SESSION['alert'] = array();
+ }
+ echo '</form>';
+
+ return $showPage;
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/base/html/base.phtml b/mayor-orig/www/skin/pda/base/html/base.phtml
new file mode 100644
index 00000000..b15ad2f3
--- /dev/null
+++ b/mayor-orig/www/skin/pda/base/html/base.phtml
@@ -0,0 +1,240 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+// Huston! This is for IE-shit
+
+ _httpheader();
+
+ html_head($page,$sub,$f,$lang,$skin);
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+
+ echo '<div class="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '</title>'."\n";
+ if ($SSSHH!=null && $SSSHH!='') echo $SSSHH;
+
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+// includeJS($page,$sub,$f,$skin); // now, we are not using javascript - right now
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo "</head>\n<body>\n";
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $page, $sub, $f;
+
+ echo '<ul id="pagemenu">';
+ // --------------------------------------------------------
+ if (is_array($MENU)) {
+ foreach ($MENU as $aModule => $items) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($items); $i++) {
+
+ if ($page == $aModule and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'">'.$items[$i]['txt'].'</a>';
+
+ echo '</li>';
+ }
+ }
+ }
+ }
+ // ---------------------------------------------------
+ echo '</ul>';
+
+ // II: SZINT
+ @$pageArray = $MENU['modules'][$page];
+ $aPage = $page;
+
+ if (is_array($pageArray)) {
+ echo '<ul id="submenu">';
+ foreach ($pageArray as $anF => $items) {
+ if ($anF != 'sub') {
+ for ($i=0;$i<count($items);$i++) {
+ if (
+ $page == $aPage and
+ (
+ (
+ !isset($items[$i]['url'])
+ and $f == $anF
+ )
+ or
+ (
+ isset($items[$i]['url']) and
+ strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false
+ )
+ )
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&f=$anF",array('policy','sessionID','lang','skin'));
+ }
+ echo '<a href="'.$href.'">'.$items[$i]['txt'].'</a>';
+ echo '</li>';
+ }
+ }
+ }
+ echo '</ul>'."\n";
+ }
+
+ // III: SZINT
+ @$subArray = $MENU['modules'][$page]['sub'][$sub];
+ $aSub = $sub;
+
+ if (is_array($subArray)) {
+ echo '<ul id="fmenu">';
+
+ foreach ($subArray as $anF => $items) {
+ for ($i=0;$i<count($items);$i++) {
+ if ($aPage == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&sub=$aSub&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"> '.$items[$i]['txt'].' </a>';
+
+ echo '</li>';
+ }
+ }
+
+ echo '</ul>'."\n";
+ }
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy;
+
+ _updateWindow();
+
+ ## Név, Oldal info, Policy
+ echo '<div class="namepolicy">'."\n";
+
+ echo '<a id="home" href="'.href('index.php').'">';
+// echo '<img src="'.$HOME_LOGO.'" alt="MaYoR" style="border-width: 0;" />';
+ echo 'MaYoR';
+ echo '</a>';
+
+ echo '</div>'."\n";
+
+}
+
+
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+
+ global $AUTH, $SKINS;
+
+ echo '<div class="mayorfoot">';
+ if ($AUTH[_POLICY]['skin'] != '' && in_array($AUTH[_POLICY]['skin'], $SKINS)) $_skin=$AUTH[_POLICY]['skin'];
+ else $_skin = _DEFAULT_SKIN;
+ echo _MAIN_FOOTER;
+ echo '<a title="'._FULL_HTML.'" href="'.href("index.php?page=$page&sub=$sub&f=$f&skin=".$_skin, array('policy','sessionID','lang')).'">';
+ echo ' - HTML nézet';
+ echo '</a>';
+
+ echo '</div>';
+ echo "</body>\n</html>";
+}
+
+?>
diff --git a/mayor-orig/www/skin/pda/module-auth/css/login.css b/mayor-orig/www/skin/pda/module-auth/css/login.css
new file mode 100644
index 00000000..47a1610d
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-auth/css/login.css
@@ -0,0 +1,4 @@
+
+ form.login { padding: 0px 10px; }
+ form.login input.txtbox { width:80%; height:2em;}
+ form.login select { font-size:1em;}
diff --git a/mayor-orig/www/skin/pda/module-auth/html/login.phtml b/mayor-orig/www/skin/pda/module-auth/html/login.phtml
new file mode 100644
index 00000000..03250685
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-auth/html/login.phtml
@@ -0,0 +1,60 @@
+<?php
+
+ function putLoginForm($userAccount,$toPolicy,$toPSF='',$toSkin='') {
+
+ global $POLICIES, $AUTH, $sessionID;
+ global $SKINSSHOW;
+// echo '<h1>'._GREETING.'</h1>'."\n";
+
+ formBegin(array('method'=>'post',
+ 'class'=>'login',
+ 'action'=>'index.php?policy=public&page=auth&f=login&toPolicy='.$toPolicy.'&toSkin='.$toSkin.'&sessionID='.$sessionID ,
+ 'name'=>"loginablak"));
+
+ echo '<input type="hidden" name="action" value="login" />';
+ echo '<input type="hidden" name="toPSF" value="'.$toPSF.'" />';
+
+ echo '<div class="inputLabel">'._USERNAME.'</div>';
+ echo '<input class="txtbox" id="focus" type="text" accesskey="l" tabindex="1" id="userAccount" name="userAccount" value="'.$userAccount.'" maxlength="36" size="10" />'."\n";
+
+ echo '<div class="inputLabel">'._PASSWORD.'</div>';
+/*
+ echo '<select style="width:40%" class="pp" name="toPolicy">'."\n";
+ $SEL = array($toPolicy => ' selected="selected" ');
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.$_policy.'" '.$SEL[$_policy].'>';
+ echo constant('_'.strtoupper($_policy).'_PASSWORD');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+*/
+ echo '<input class="txtbox" type="password" accesskey="p" tabindex="2" name="userPassword" value="" />'."\n";
+
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+ echo '<input type="hidden" name="toSkin" value="pda" />';
+/*
+ echo '<div class="inputLabel">'._SKIN.'</div>';
+ echo '<select id="toSkin" name="toSkin">'."\n";
+ $SEL = array($toSkin => ' selected="selected" ');
+ for ($i=0; $i<count($SKINSSHOW); $i++) {
+ $_skin = $SKINSSHOW[$i];
+ echo '<option value="'.$_skin.'" '.$SEL[$_skin].'>';
+ echo $_skin;
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</div>'."\n";
+*/
+ echo '<div style="text-align:right; height:1.5em;">';
+ echo '<input type="submit" tabindex="3" name="button" value=" '. _LOGIN .' " class="submit" />'."\n";
+ echo '</div>';
+
+
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/css/haladasi/haladasi.css b/mayor-orig/www/skin/pda/module-naplo/css/haladasi/haladasi.css
new file mode 100644
index 00000000..b944c5c2
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/css/haladasi/haladasi.css
@@ -0,0 +1,167 @@
+
+ table.haladasiBejegyzesek {
+ background-color: rgb(50,60,80);
+ margin-top: 30px;
+ font-size: 10px;
+ width: 98%;
+ }
+ table.haladasiBejegyzesek tbody tr:hover td {
+ background-color: white;
+ }
+ table.haladasiBejegyzesek tbody tr td input:focus {
+ background-color:rgb(240,210,250);
+ }
+
+ table.haladasiBejegyzesek tbody.parosNap {
+ background-color: #cccccc;
+ }
+ table.haladasiBejegyzesek tbody.paratlanNap {
+ background-color: #eeeeee;
+ }
+ table.haladasiBejegyzesek tbody td.ora {
+ text-align: center;
+ }
+
+/* TBODY TH */
+
+ table.haladasiBejegyzesek tbody th.nincsOra {
+ background-color: rgb(200,200,200);
+ color: rgb(100,100,100);
+ text-align: center;
+ border: none;
+ font-weight: normal;
+ }
+ table.haladasiBejegyzesek tbody th.nap {
+ text-align: center;
+ background-color: #666688;
+ color: white;
+ border: none;
+ }
+ table.haladasiBejegyzesek tbody.szunet th.nap {
+ background-color: #778877;
+ }
+ table.haladasiBejegyzesek tbody.tanitasNelkul th.nap {
+ background-color: #aaaa44;
+ }
+
+/* --- */
+
+ table.haladasiBejegyzesek tbody td.dolgozat {
+ background-color: #ffaa44;
+ padding-left: 20px;
+ }
+ table.haladasiBejegyzesek tbody td.dolgozat a {
+ text-decoration: none;
+ color: black;
+ }
+
+ table.haladasiBejegyzesek tbody td.nincsBeirva {
+ font-style:italic;
+ }
+
+ table.haladasiBejegyzesek th {
+ border-style: none none solid none;
+ border-width: 0 0 2px 0;
+ border-color: #556677;
+ background-color: rgb(50,60,80);
+ color: rgb(210,215,220);
+ border-style: solid;
+ border-width: 1px;
+ }
+ table.haladasiBejegyzesek th.fejlec8 {
+ font-size: 14px;
+ height: 30px;
+ text-align: center
+ }
+ table.haladasiBejegyzesek th.fejlec8 a { color: white }
+
+
+/* table.haladasiBejegyzesek td { background-color: rgb(200,200,200); } */
+ table.haladasiBejegyzesek td.osztaly {
+ text-align:".";
+ text-align: center;
+ }
+ table.haladasiBejegyzesek select {
+ font-family: Verdana,Arial;
+ background-color: rgb(50,60,80);
+ font-size: 10px;
+ color: rgb(210,215,220);
+ border-style: solid;
+ border-width: 1px;
+ }
+
+ input { font-family: Verdana,Arial; color: inherit }
+ input.data { border-style: none none solid none;
+ border-width: 1px;
+ border-color: #dddddd;
+ }
+ input.data:hover { border: solid 1px #556677; background-color: white }
+ table.haladasiBejegyzesek tbody.parosNap input.beirva { background-color: #cccccc; }
+ table.haladasiBejegyzesek tbody.paratlanNap input.beirva { background-color: #eeeeee; }
+
+ table.haladasiBejegyzesek tbody.parosNap input.ajaxRequest { background-color: rgb(200,100,0); }
+ table.haladasiBejegyzesek tbody.paratlanNap input.ajaxRequest { background-color: rgb(200,100,0); }
+ table.haladasiBejegyzesek tbody.parosNap input.ajaxRequestDone,
+ table.haladasiBejegyzesek tbody.paratlanNap input.ajaxRequestDone { color: rgb(0,100,0); }
+
+
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit td { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit td { background-color: #eeeecc; }
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit input.beirva { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit input.beirva { background-color: #eeeecc; }
+
+ input.gomb {
+ border: outset 1px #777777; padding: 0px; margin: 0px;
+ background-color: #009900;
+ color: white;
+ }
+
+ input.rejtettGomb { border: none; background-color: rgb(50,60,80); }
+
+ table.haladasiBejegyzesek a.gomb {
+ padding: 1px;
+ background-color: #dddddd;
+ font-size: 10px;
+ border: outset 1px #556677;
+ margin: 2px;
+ text-decoration: none;
+ }
+ table.haladasiBejegyzesek a.gomb:hover {
+ padding: 1px;
+ background-color: #556677;
+ font-size: 10px;
+ border: outset 1px #dddddd;
+ margin: 2px;
+ text-decoration: none;
+ color: white;
+ }
+
+ table.haladasiBejegyzesek a {
+ display: block;
+ text-align: center;
+ color: red;
+ text-decoration: none;
+ border: solid 1px red;
+ }
+ table.haladasiBejegyzesek a:hover {
+ color: green;
+ border: green 1px solid;
+ }
+
+ table.haladasiBejegyzesek td.parosOra { background-color: rgb(140,150,160); }
+ table.haladasiBejegyzesek td.paratlanOra { background-color: rgb(140,130,120); }
+
+ table.haladasiBejegyzesek tr.dolgozat td {
+ padding: 0px 10px;
+ background-color: rgb(160,100,120);
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a:hover {
+ color: rgb(260,200,220);
+ }
+
diff --git a/mayor-orig/www/skin/pda/module-naplo/css/hianyzas/osztaly.css b/mayor-orig/www/skin/pda/module-naplo/css/hianyzas/osztaly.css
new file mode 100644
index 00000000..959f2056
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/css/hianyzas/osztaly.css
@@ -0,0 +1,135 @@
+
+ table.hianyzas {
+ background-color: rgb(180,180,200);
+ color: white;
+ }
+
+ table.hianyzas thead th {
+ background-color: rgb(40,80,120);
+ }
+
+ table.hianyzas thead th.alcim {
+ background-color: rgb(255,255,255);
+ color: rgb(40,80,120);
+ font-style: italic;
+ padding: 0px 4px 0px 4px;
+ }
+
+ table.hianyzas thead th.alcim img { hight: 16px; }
+
+ table.hianyzas tfoot th {
+ background-color: rgb(80,20,80);
+ }
+
+ table.hianyzas tbody td.nev {
+ background-color: rgb(90,90,110);
+ font-style: italic;
+ padding: 4px 10px 4px 10px;
+ }
+
+ table.hianyzas tbody td.nev a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.hianyzas tbody td.nev a:hover {
+ color: white;
+ /* background-color: rgb(180,180,220); */
+ text-decoration: underline;
+ }
+
+ table.hianyzas tbody td.ulezart {
+ width: 18px;
+ background-color: rgb(200,200,220);
+ }
+
+ table.hianyzas tbody td.lezart {
+ width: 18px;
+ background-color: rgb(100,100,120);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.uigazolhato {
+ width: 18px;
+ background-color: rgb(240,240,260);
+ }
+
+ table.hianyzas tbody td.igazolhato {
+ width: 18px;
+ background-color: rgb(140,140,160);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.uosszes {
+ width: 18px;
+ background-color: rgb(220,240,230);
+ }
+
+ table.hianyzas tbody td.osszes {
+ width: 18px;
+ background-color: rgb(120,140,130);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.ufegyelmi {
+ width: 18px;
+ background-color: rgb(220,230,240);
+ }
+
+ table.hianyzas tbody td.fegyelmi {
+ width: 18px;
+ background-color: rgb(130,150,150);
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.ufokozat {
+ width: 18px;
+ background-color: rgb(220,210,200);
+ }
+
+ table.hianyzas tbody td.fokozat {
+ background-color: rgb(120,110,100);
+ }
+ table.hianyzas tbody td.fokozat form { display: inline; }
+ table.hianyzas tbody td.fokozat input,select { font-size:11px; }
+
+ table.hianyzas tbody td.oi {
+ text-align: center;
+ }
+
+ table.hianyzas tbody td.hianyzas {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ table.hianyzas tbody td.keses {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ table.hianyzas tbody td.felszereles {
+ border-color: rgb(100,100,200);;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ table.hianyzas tbody td.felmentes {
+ border-color: rgb(100,200,100);;
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ table.hianyzas tbody td.igazolt {
+ color: rgb(55,255,55);
+ }
+
+ table.hianyzas tbody td.igazolatlan {
+ color: rgb(255,55,55);
+ }
+
+ table.hianyzas tbody td.mind {
+ color: white;
+ }
+
diff --git a/mayor-orig/www/skin/pda/module-naplo/css/naplo.css b/mayor-orig/www/skin/pda/module-naplo/css/naplo.css
new file mode 100644
index 00000000..2b81dd35
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/css/naplo.css
@@ -0,0 +1,59 @@
+
+ table.toolBar { width: 100%; border-spacing: 0px; font-size:small; }
+ table.toolBar form { margin: 0px; padding: 0px; width:100%; }
+ table.toolBar tr.first td.toolBarTitle, table.toolBar tr.first td.toolBarTool { background-color: #eeeeee; border-bottom: solid 2px rgb(152, 150, 185); padding:2px 4px; }
+ table.toolBar td.gap { border-spacing: 0px; }
+ table.toolBar td.toolBarTitle {
+ background-color: white;
+ width: 100%;
+ font-size: 10px;
+ font-weight: bold;
+ text-align: center;
+ }
+ #toolBarIntezmeny {
+ color: darkgrey;
+ font-size: 8px;
+ background-color: ;
+ border: solid 1px darkgrey;
+ border-radius:2px;
+ padding: 0px 4px;
+ }
+
+ table.toolBar td.toolBarTool { border: solid 0px #666699; margin: 0px; padding: 0px; }
+ table.toolBar td.toolBarTool table { border-spacing: 0px; background-color: ; }
+ table.toolBar td.toolBarTool table th {
+ background-color: rgb(90,133,184);
+ text-align: left;
+ color: white;
+ font-size:8px;
+ padding-left: 4px;
+
+ border-color: rgb(21,71,123);
+ border-width: 1px 0px;
+ border-style: solid;
+ }
+ table.toolBar input.toolSubmit { vertical-align: middle; border: 0px none; background-color: rgb(90,133,184); color: white; width:60px; }
+ table.toolBar td.toolBarTool select { border: 0px; }
+ table.toolBar th {
+ background-color: rgb(90,133,184);
+ text-align: center;
+ color: white;
+ font-size:8px;
+ padding-left: 4px;
+
+ border-color: rgb(21,71,123);
+ border-width: 1px 0px 1px 1px;
+ border-style: solid;
+ }
+ table.toolBar td table { margin: 0px;}
+ table.toolBar img { border: none; }
+
+ form.lapozo input { font-size: 8px; border: solid 1px #555555; }
+
+ table.flipper input {color: white; border: none; background-color: lightblue; }
+ table.flipper input.step { background-color: rgb(100,80,60); }
+
+ div.beirasAdatok { text-align: center; }
+ div.beirasAdatok span { font-weight: bold; font-size: 10px; vertical-align: middle; }
+ div.beirasAdatok img { vertical-align: middle; }
+
diff --git a/mayor-orig/www/skin/pda/module-naplo/css/orarend/helyettesites.css b/mayor-orig/www/skin/pda/module-naplo/css/orarend/helyettesites.css
new file mode 100644
index 00000000..0386b2b1
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/css/orarend/helyettesites.css
@@ -0,0 +1,29 @@
+@media screen {
+
+table.helyettesitesek {
+ background-color: #999999; width:100%;
+ border-collapse: collapse;
+}
+table.helyettesitesek tr {
+ background-color: #dddddd;
+}
+table.helyettesitesek tbody tr td {
+ background-color: white;
+}
+table.helyettesitesek tr.plusz td {
+ background-color: #334450; color: white;
+ font-style: italic;
+}
+table.helyettesitesek tfoot tr th {
+ display:none;
+ background-color: white;
+ text-align: right;
+ font-size:x-small;
+ font-weight:lighter;
+ color: #aaaaaa;
+}
+table.helyettesitesek thead tr th { border-bottom: solid 2px;}
+
+table.helyettesitesek td,table.helyettesitesek th {
+ border: solid 1px black;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/pda/module-naplo/css/orarend/orarend.css b/mayor-orig/www/skin/pda/module-naplo/css/orarend/orarend.css
new file mode 100644
index 00000000..17671235
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/css/orarend/orarend.css
@@ -0,0 +1,97 @@
+
+h2 { text-align: center; color: red;}
+h2.toPrint { display: none; }
+
+table.toolBar tr td select, table.toolBar tr td option {
+}
+
+table.orarend {
+ width: 99%;
+ background-color: #333333;
+}
+table.orarend tr th {
+ background-color: #889988;
+ color: white;
+/* border-width: 0px 1px 2px 0px !important; */
+ height:30px;
+
+}
+table.orarend thead tr th {
+ background-color: #889999;
+ color: white;
+ border-bottom: solid 1px white;
+}
+table.orarend tfoot.publikus tr th {
+ background-color: lightgreen;
+ color: white;
+}
+table.orarend tfoot.nempublikus tr th {
+ background-color: #f06;
+ color: white;
+}
+table.orarend tfoot:hover tr th {
+ background-color: #8f8;
+}
+
+
+table.orarend thead tr th.spec {
+ background-color: red;
+}
+
+table.orarend tr td {
+ text-align: center;
+ background-color: #efefef;
+/* border-width: 0px 1px 2px 0px;*/
+/* width:18%; */
+}
+
+table.orarend tr td select {
+ background-color:#000011;
+ color: white
+}
+
+div.unfinished {
+ background-color: yellow;
+}
+ table.orarend tbody tr td hr { width: 80% }
+ div.normál {}
+ div.plusz {
+ background-color: #eeccee;
+ }
+ div.elmarad {
+ color: white;
+ background-color: black;
+ }
+ div.elmarad_máskor {
+ color: white;
+ background-color: #555555;
+ }
+ div.normál_máskor {
+ color: white;
+ background-color: #776699;
+ }
+ div.felügyelet {
+ background-color: #bbaac0;
+ }
+ div.helyettesítés {
+ background-color: #ccffcc;
+ }
+ div.összevonás {
+ background-color: #aabbc0;
+ }
+ div.osztályfüggetlen { color: #eeeeee; background-color: rgba(52, 150, 185, 1); }
+ table.osztalyOrarend div.osztályfüggetlen { display:none; }
+ table.diakOrarend div.osztályfüggetlen { display:none; }
+
+ span.helyett {
+ color: gray;
+ text-decoration: line-through;
+ }
+
+ table.orarend tr td span.t0 {
+ background-color: #880000; color:white;
+ }
+ table.orarend tr td span.t1 {
+ }
+
+
diff --git a/mayor-orig/www/skin/pda/module-naplo/css/osztalyozo/jegy.css b/mayor-orig/www/skin/pda/module-naplo/css/osztalyozo/jegy.css
new file mode 100644
index 00000000..b46d342d
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/css/osztalyozo/jegy.css
@@ -0,0 +1,56 @@
+
+ table.jegyInfo {
+ width: 85%;
+ background-color: rgb(200,200,200);
+ color: white;
+ }
+
+
+ table.jegyInfo thead th {
+ background-color: rgb(100,120,100);
+ height:30px;
+ }
+
+ table.jegyInfo tfoot th {
+ background-color: rgb(100,120,100);
+ }
+
+ table.jegyInfo tbody select { background-color: #ffffff; }
+ table.jegyInfo tbody input { background-color: #ffffff; }
+
+ table.jegyInfo tbody th {
+ background-color: rgb(140,160,150);
+ padding: 0px 4px 0px 4px;
+ text-align: center;
+ }
+
+ table.jegyInfo tbody td {
+ background-color: rgb(140,160,150);
+ padding: 0px 4px 0px 4px;
+ text-align: center;
+ }
+
+ table.jegyInfo tbody td a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.jegyInfo tbody td a:hover {
+ color: white;
+ text-decoration: underline;
+ }
+
+ table.jegyInfo tbody th a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.jegyInfo tbody th a:hover {
+ color: white;
+ text-decoration: underline;
+ }
+
+ table.jegyInfo tbody td input {
+ width: 95%;
+ }
+
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/base.phtml b/mayor-orig/www/skin/pda/module-naplo/html/base.phtml
new file mode 100644
index 00000000..e2295b24
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/base.phtml
@@ -0,0 +1,900 @@
+<?php
+
+
+ if (_RIGHTS_OK !== true) die();
+
+ putEszkozSor();
+
+
+ function putUjIntezmeny() {
+
+ formBegin();
+ echo '
+
+ <input type="hidden" name="action" value="ujIntezmeny" />
+
+ _OMKOD(max7): <input type="text" name="OMKod" id="OMKod" value="0000000" maxlength="7" />
+ _ROVIDNEV(sql): <input type="text" name="rovidnev" id="rovidnev" />
+ _NEV: <input type="text" name="nev" id="nev" />
+
+ <input type="submit" />';
+ formEnd();
+ }
+
+ function putEszkozSor() {
+
+ global $TOOL;
+
+ echo '<table align="center" cellspacing="0" class="toolBar"><tr class="first">';
+
+ echo '<td class="toolBarTitle">';
+ if (defined('__PAGETITLE')) echo __PAGETITLE.' ';
+ echo '<span id="toolBarIntezmeny">'.__INTEZMENY . '' . __TANEV.'</span>';
+ echo '</td>'."\n";
+
+ echo '</tr>';
+
+ reset($TOOL);
+/*
+ foreach ( $TOOL as $tool => $params ) {
+ if ( function_exists( $func = "put$tool" ) && $params['tipus']=='cella') {
+ echo '<tr>';
+ echo '<td class="toolBarTool">';
+ echo '<table>'."\n";
+ $title = '__'.nagybetus($tool).'TITLE';
+ if (defined($title)) echo '<tr><th>'.constant($title).'</th></tr>'."\n";
+ echo '<tr><td>'."\n";
+ $func();
+ echo '</td></tr>'."\n";
+ echo '</table>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ }
+ }
+*/
+ // Hibabejelentő
+// echo '<td>';
+// $href = href('index.php?page=naplo&sub=hibabejelento&f=hibabejelento');
+// echo '<a href="'.$href.'">';
+// echo '<img src="skin/classic/module-naplo/img/hibabejelento/buggie.gif" alt="'._HIBABEJELENTES.'" />';
+// echo '</a>';
+// echo '</td>'."\n";
+
+ reset($TOOL);
+ foreach ( $TOOL as $tool => $params ) {
+// if ( function_exists( $func = "put$tool" ) && $params['tipus']=='sor') {
+ if ( function_exists( $func = "put$tool" ) ) {
+// echo '<tr><td class="gap" />';
+ echo '<tr><td>';
+ echo '<table align="center" cellspacing="0"><tr>';
+// $title = '__'.nagybetus($tool).'TITLE';
+// if (defined($title)) echo '<th class="toolBarTool">'.constant($title).'</th>'."\n";
+
+ echo '<td class="toolBarTool">';
+ $func();
+ echo '</td></tr></table>';
+// echo '</td><td class="gap" /></tr>';
+ echo '</td></tr>';
+ }
+ }
+ echo '</table>';
+
+ }
+
+
+ /* Toolok */
+
+ function putIntezmenySelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['intezmenySelect']['paramName'];
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__INTEZMENYSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['intezmenySelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['intezmenySelect']['action'].'" />'."\n";
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array(__INTEZMENY => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['intezmenySelect']['intezmenyek']); $i++) {
+ $I = $TOOL['intezmenySelect']['intezmenyek'][$i];
+ echo '<option value="'.$I['rovidNev'].'"'.$SEL[$I['rovidNev']].'>'.$I['nev'].' ('.$I['OMKod'].')'.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTanevSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['tanevSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__TANEVSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['tanevSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['tanevSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['tanevSelect']['post']); $i++) {
+ $postParam = $TOOL['tanevSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""> - </option>'."\n";
+ $_sel = (isset($$paramName)) ? $$paramName : __TANEV;
+ $SEL = array( $_sel => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tanevSelect']['tanevek']); $i++) {
+ $T = $TOOL['tanevSelect']['tanevek'][$i];
+ echo '<option value="'.$T.'"'.$SEL[$T].'>'.$T.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putSzemeszterSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['szemeszterSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__SZEMESZTERSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['szemeszterSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['szemeszterSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['szemeszterSelect']['post']); $i++) {
+ $postParam = $TOOL['szemeszterSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""> - </option>'."\n";
+ $_sel = (isset($$paramName)) ? $$paramName : '';
+ $SEL = array( $_sel => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['szemeszterSelect']['szemeszterek']); $i++) {
+ $T = $TOOL['szemeszterSelect']['szemeszterek'][$i];
+ echo '<option value="'.$T['szemeszterId'].'"'.$SEL[$T['szemeszterId']].'>'.$T['tanev'].' / '.$T['szemeszter'].'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTargySorrendSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['targySorrendSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__TARGYSORRENDSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['targySorrendSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['targySorrendSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['targySorrendSelect']['post']); $i++) {
+ $postParam = $TOOL['targySorrendSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""> - </option>'."\n";
+ $_sel = (isset($$paramName)) ? $$paramName : '';
+ $SEL = array( $_sel => ' selected="selected" ');
+ for ($i = 0; $i < count($TOOL['targySorrendSelect']['sorrendNevek']); $i++) {
+ $T = $TOOL['targySorrendSelect']['sorrendNevek'][$i];
+ echo '<option value="'.$T.'"'.$SEL[$T].'>'.$T.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putMunkakozossegSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['munkakozossegSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__MUNKAKOZOSSEGSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['munkakozossegSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['munkakozossegSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['munkakozossegSelect']['post']); $i++) {
+ $postParam = $TOOL['munkakozossegSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['munkakozossegSelect']['munkakozossegek']); $i++) {
+ $M = $TOOL['munkakozossegSelect']['munkakozossegek'][$i];
+ echo '<option value="'.$M['mkId'].'"'.$SEL[$M['mkId']].'>'.$M['leiras'];
+ if ($M['mkVezNev']!='') echo ' ('.$M['mkVezNev'].') ';
+ echo '</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTargySelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['targySelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__TARGYSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['targySelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['targySelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['targySelect']['post']); $i++) {
+ $postParam = $TOOL['targySelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['targySelect']['targyak']); $i++) {
+ $M = $TOOL['targySelect']['targyak'][$i];
+ echo '<option value="'.$M['targyId'].'"'.$SEL[$M['targyId']].'>'.$M['targyNev'].' ('.$M['targyId'].')'.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTanarSelect() {
+
+ global $TOOL;
+
+ if (isset($TOOL['tanarSelect']['paramName'])) $paramName = $TOOL['tanarSelect']['paramName'];
+ else $paramName = 'tanarId';
+
+ global $$paramName;
+ // note, action is for incopatible browser... TESZ
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.constant('__TANARSELECTTITLE').'" />';
+echo '</td><td>';
+ if (isset($TOOL['tanarSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['tanarSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['tanarSelect']['post']); $i++) {
+ $postParam = $TOOL['tanarSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();" onchange="submit();">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tanarSelect']['tanarok']); $i++) {
+ $M = $TOOL['tanarSelect']['tanarok'][$i];
+ echo '<option value="'.$M['tanarId'].'"'.$SEL[$M['tanarId']].'>'.$M['tanarNev'].' ('.$M['tanarId'].')'.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putDiakSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['diakSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__DIAKSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['diakSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['diakSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['diakSelect']['post']); $i++) {
+ $postParam = $TOOL['diakSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['diakSelect']['diakok']); $i++) {
+ $M = $TOOL['diakSelect']['diakok'][$i];
+ echo '<option value="'.$M['diakId'].'"'.$SEL[$M['diakId']].'>'.$M['diakNev'].' ('.$M['diakId'].')'.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTableSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['tableSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__TABLESELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['tableSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['tableSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['tableSelect']['post']); $i++) {
+ $postParam = $TOOL['tableSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tableSelect']['naplo_intezmeny']); $i++) {
+ $t = $TOOL['tableSelect']['naplo_intezmeny'][$i];
+ echo '<option value="'."naplo_intezmeny:$t".'"'.$SEL["naplo_intezmeny:$t"].'>'.$t.' ('.__INTEZMENY.')</option>';
+ }
+ for ($i=0; $i < count($TOOL['tableSelect']['naplo']); $i++) {
+ $t = $TOOL['tableSelect']['naplo'][$i];
+ echo '<option value="'."naplo:$t".'"'.$SEL["naplo:$t"].'>'.$t.' ('.__TANEV.')</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+ }
+
+ function putOsztalySelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['osztalySelect']['paramName'];
+ global $$paramName;
+
+ formBegin(array('action'=>href('index.php',array('page','sub','f','lang','skin','sessionID','policy'))));
+
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__OSZTALYSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['osztalySelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['osztalySelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['osztalySelect']['post']); $i++) {
+ $postParam = $TOOL['osztalySelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['osztalySelect']['osztalyok']); $i++) {
+ $M = $TOOL['osztalySelect']['osztalyok'][$i];
+ if (isset($M['osztalyJel'])) $osztalyJel = $M['osztalyJel'].' - '.$M['kezdoTanev'];
+ else $osztalyJel = $M['kezdoTanev'].'/'.$M['jel'];
+ if (is_array($M['osztalyfonok']) && $M['osztalyfonok']['tanarNev']!='') $osztalyJel .= ' ('.$M['osztalyfonok']['tanarNev'].')';
+ echo '<option value="'.$M['osztalyId'].'"'.$SEL[$M['osztalyId']].'>'.$osztalyJel.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTankorSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['tankorSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__TANKORSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['tankorSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['tankorSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['tankorSelect']['post']); $i++) {
+ $postParam = $TOOL['tankorSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['tankorSelect']['tankorok']); $i++) {
+ $M = $TOOL['tankorSelect']['tankorok'][$i];
+ echo '<option value="'.$M['tankorId'].'"'.$SEL[$M['tankorId']].'>'.$M['tankorNev'].' ('.$M['tankorId'].')'.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTanevLapozo() {
+ global $TOOL;
+ $paramName = $TOOL['tanevLapozo']['paramName'];
+ global $$paramName;
+
+ formBegin(array('class'=>'lapozo'));
+ echo '<table><tr><td>';
+ echo '&larr;';
+ echo '<input type="submit" name="tanev" value="'.($TOOL['tanevLapozo']['tanev']-1).'" />';
+ echo '</td>';
+ echo '<th>'.$TOOL['tanevLapozo']['tanev'].'</th>';
+ echo '<td>';
+ echo '<input type="submit" name="tanev" value="'.($TOOL['tanevLapozo']['tanev']+1).'" />';
+ echo '&rarr;';
+ echo '</td></tr></table>';
+
+ for ($i = 0; $i < count($TOOL['tanevLapozo']['post']); $i++) {
+ $postParam = $TOOL['tanevLapozo']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+
+ formEnd();
+ }
+
+ function putDatumSelect() {
+
+ global $TOOL, $aHetNapjai;
+
+ $paramName = $TOOL['datumSelect']['paramName'];
+ global $$paramName;
+
+ if ($TOOL['datumSelect']['lapozo']) {
+
+ // Előző és következő dátum meghatározása
+ $elozo = $kovetkezo = '';
+ if (is_array($TOOL['datumSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumSelect']['napok']); $i++) {
+ if ($TOOL['datumSelect']['napok'][$i] == $$paramName) {
+ $kovetkezo = $TOOL['datumSelect']['napok'][$i+1];
+ $elozo = $TOOL['datumSelect']['napok'][$i-1];
+ break;
+ }
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumSelect']['igDt']);
+ $count = $TOOL['datumSelect']['hanyNaponta'];
+ for ($t = $tolTime; $t < $igTime; $t = strtotime("$count days", $t)) {
+ $d = date('Y-m-d', $t);
+ if ($d == $$paramName) {
+ if (strtotime("$count days", $t) <= $igTime) $kovetkezo = date('Y-m-d', strtotime("$count days", $t));
+ break;
+ }
+ $elozo = $d;
+ }
+ }
+
+ echo '<table><tr>';
+ if ($elozo!='') {
+ echo '<td>';
+ formBegin();
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['datumSelect']['post']); $i++) {
+ $postParam = $TOOL['datumSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<input name="'.$paramName.'" style="float: left;" class="toolSubmit" type="submit" value="'.$elozo.'" />';
+ echo '</td></tr></table>';
+ formEnd();
+ echo '</td>';
+ }
+ echo '<td>';
+
+ }
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__DATUMSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['datumSelect']['post']); $i++) {
+ $postParam = $TOOL['datumSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ if (is_array($TOOL['datumSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumSelect']['napok']); $i++) {
+ $d = $TOOL['datumSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumSelect']['igDt']);
+ $count = $TOOL['datumSelect']['hanyNaponta'];
+ for ($t = $tolTime; $t < $igTime; $t = strtotime("$count days", $t)) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ if ($TOOL['datumSelect']['lapozo']) {
+
+ echo '</td>';
+ if ($kovetkezo!='') {
+ echo '<td>';
+
+ formBegin();
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['datumSelect']['post']); $i++) {
+ $postParam = $TOOL['datumSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<input name="'.$paramName.'" style="float: right;" class="toolSubmit" type="submit" value="'.$kovetkezo.'" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ echo '</td>';
+ }
+ echo '</tr></table>';
+ }
+
+
+ }
+
+ function putDatumTolIgSelect() {
+
+ global $TOOL, $aHetNapjai;
+
+ $tolParamName = $TOOL['datumTolIgSelect']['tolParamName'];
+ global $$tolParamName;
+ $igParamName = $TOOL['datumTolIgSelect']['igParamName'];
+ global $$igParamName;
+
+
+ formBegin();
+ echo '<table><tr><td>';
+ if (isset($TOOL['datumTolIgSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['datumTolIgSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['datumTolIgSelect']['post']); $i++) {
+ $postParam = $TOOL['datumTolIgSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+
+ echo '<select name="'.$tolParamName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($$tolParamName => ' selected="selected" ');
+ if (is_array($TOOL['datumTolIgSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumTolIgSelect']['napok']); $i++) {
+ $d = $TOOL['datumTolIgSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumTolIgSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumTolIgSelect']['igDt']);
+ $count = $TOOL['datumTolIgSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t < $igTime && $t != 0;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+ ) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+
+ echo ' - ';
+
+ echo '<select name="'.$igParamName.'" class="onChangeSubmit" onchange="submit();">';
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($$igParamName => ' selected="selected" ');
+ if (is_array($TOOL['datumTolIgSelect']['napok'])) {
+ for ($i = 0; $i < count($TOOL['datumTolIgSelect']['napok']); $i++) {
+ $d = $TOOL['datumTolIgSelect']['napok'][$i];
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ } else {
+ $tolTime = strtotime($TOOL['datumTolIgSelect']['tolDt']);
+ $igTime = strtotime($TOOL['datumTolIgSelect']['igDt']);
+ $count = $TOOL['datumTolIgSelect']['hanyNaponta'];
+ for (
+ $t = $tolTime;
+ $t < $igTime && $t != 0;
+ $t = ($count == 'havonta') ? strtotime("next month", $t) : strtotime("$count days", $t)
+) {
+ $d = date('Y-m-d', $t);
+ echo '<option value="'.$d.'"'.$SEL[$d].'>'.$d.' ('.$aHetNapjai[(date('w',strtotime($d))+6) % 7].')</option>';
+ }
+ }
+ echo '</select>';
+
+ echo '</td><td>';
+ echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+
+ function putOraSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['oraSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__ORASELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['oraSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oraSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['oraSelect']['post']); $i++) {
+ $postParam = $TOOL['oraSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ $SEL = array($$paramName => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['oraSelect']['orak'])) {
+ for ($i = 0; $i < count($TOOL['oraSelect']['orak']); $i++) {
+ echo '<option value="'.$TOOL['oraSelect']['orak'][$i].'"'.$SEL[$TOOL['oraSelect']['orak'][$i]].'>'.$TOOL['oraSelect']['orak'][$i].'</option>';
+ }
+ } else {
+ $tol = $TOOL['oraSelect']['tol'];
+ $ig = $TOOL['oraSelect']['ig'];
+
+ for ($t = $tol; $t <= $ig; $t++) {
+ echo '<option value="'.$t.'"'.$SEL[$t].'>'.$t.'</option>';
+ }
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putTeremSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['teremSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__TEREMSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['teremSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['teremSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['teremSelect']['post']); $i++) {
+ $postParam = $TOOL['teremSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();">';
+ $SEL = array($$paramName => ' selected="selected" ');
+ echo '<option value=""> - </option>'."\n";
+ if (is_array($TOOL['teremSelect']['termek'])) {
+ for ($i = 0; $i < count($TOOL['teremSelect']['termek']); $i++) {
+ echo '<option value="'.$TOOL['teremSelect']['termek'][$i]['teremId'].'"'.$SEL[$TOOL['teremSelect']['termek'][$i]['teremId']].'>'.$TOOL['teremSelect']['termek'][$i]['leiras'].'</option>';
+ }
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+ }
+
+ function putOrarendiHetSelect() {
+
+ global $TOOL;
+
+ $paramName = $TOOL['orarendiHetSelect']['paramName'];
+ global $$paramName;
+
+ formBegin();
+ echo '<table><tr><td>';
+echo '<input class="toolSubmit" type="submit" value="'.__ORARENDIHETSELECTTITLE.'" />';
+echo '</td><td>';
+ if (isset($TOOL['orarendiHetSelect']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['orarendiHetSelect']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['orarendiHetSelect']['post']); $i++) {
+ $postParam = $TOOL['orarendiHetSelect']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ $_DS = (isset($TOOL['orarendiHetSelect']['disabled']) && $TOOL['orarendiHetSelect']['disabled']===true) ? 'readonly="readonly" disabled="disabled"' : '';
+ echo '<select name="'.$paramName.'" class="onChangeSubmit" onchange="submit();" '.$_DS.'>';
+ echo '<option value=""></option>'."\n";
+ $SEL = array($$paramName => ' selected="selected" ');
+ for ($i=0; $i < count($TOOL['orarendiHetSelect']['hetek']); $i++) {
+ $M = $TOOL['orarendiHetSelect']['hetek'][$i];
+ echo '<option value="'.$M.'"'.$SEL[$M].'>'.$M.'</option>';
+ }
+ echo '</select>';
+// echo '</td><td>';
+// echo '<input style="float: right;" class="toolSubmit" type="image" src="skin/classic/module-naplo/img/toolSubmit.gif" />';
+ echo '</td></tr></table>';
+ formEnd();
+
+
+ }
+
+ function putTanarOraLapozo() {
+ global $TOOL;
+ $paramName = $TOOL['tanarOraLapozo']['paramName'];
+ global $$paramName; // most oraId
+ if ((is_array($TOOL['tanarOraLapozo']['elozo'])) || (is_array($TOOL['tanarOraLapozo']['kovetkezo']))) {
+ formBegin(array('class'=>'lapozo'));
+ echo '<table><tr><td>';
+ if (is_array($TOOL['tanarOraLapozo']['elozo'])) {
+ $_leiras = '&larr;'.($TOOL['tanarOraLapozo']['elozo']['ora']).'. '._ORA;
+ if ($TOOL['tanarOraLapozo']['elozo']['leiras']!='') $_leiras .= ' ('.$TOOL['tanarOraLapozo']['elozo']['leiras'].')';
+ echo '<input type="submit" name="oraId" value="'.$_leiras.'" onclick="this.value='.($TOOL['tanarOraLapozo']['elozo']['oraId']).'" />';
+ }
+ echo '</td>';
+ echo '<td>';
+ if (is_array($TOOL['tanarOraLapozo']['kovetkezo'])) {
+ $_leiras = ($TOOL['tanarOraLapozo']['kovetkezo']['ora']).'. '._ORA;
+ if ($TOOL['tanarOraLapozo']['kovetkezo']['leiras']!='') $_leiras .= ' ('.$TOOL['tanarOraLapozo']['kovetkezo']['leiras'].')';
+ $_leiras .=' &rarr;';
+ echo '<input type="submit" name="oraId" value="'.$_leiras.'" onclick="this.value='.($TOOL['tanarOraLapozo']['kovetkezo']['oraId']).'" />';
+ }
+ echo '</td></tr></table>';
+
+ for ($i = 0; $i < count($TOOL['tanarOraLapozo']['post']); $i++) {
+ $postParam = $TOOL['tanarOraLapozo']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+
+ formEnd();
+ echo "\n";
+ }
+ }
+
+ function putHonapLapozo() {
+
+ global $TOOL,$Honapok;
+
+ $paramName = $TOOL['honapLapozo']['paramName'];
+ global $$paramName;
+ formBegin(array('class'=>'lapozo'));
+ echo '<table><tr><td>';
+ echo '&larr';
+ echo '<input type="submit" name="ho" value="'.(($$paramName-1)==0?12:$$paramName-1).'" />';
+ echo '</td>';
+ echo '<th>'.$Honapok[$$paramName-1].'</th>';
+ echo '<td>';
+ echo '<input type="submit" name="ho" value="'.(($$paramName%12+1)).'" />';
+ echo '&rarr;';
+ echo '</td></tr></table>';
+
+ for ($i = 0; $i < count($TOOL['honapLapozo']['post']); $i++) {
+ $postParam = $TOOL['honapLapozo']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+
+ formEnd();
+
+ }
+
+ function putOldalFlipper() {
+
+ global $TOOL;
+ $paramName = $TOOL['oldalFlipper']['paramName'];
+ global $$paramName;
+
+ $stepCount = count($TOOL['oldalFlipper']['url']);
+ if (isset($TOOL['oldalFlipper']['step'])) $step = $TOOL['oldalFlipper']['step'];
+ for ($i = 0; $i < count($TOOL['oldalFlipper']['titleConst']); $i++) {
+ if (defined($TOOL['oldalFlipper']['titleConst'][$i]))
+ $TOOL['oldalFlipper']['title'][$i] = constant($TOOL['oldalFlipper']['titleConst'][$i]);
+ else
+ $TOOL['oldalFlipper']['title'][$i] = '';
+ }
+
+ echo '<table class="flipper"><tr>';
+ if ($stepCount > 1 && isset($step) && $step > 0) {
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$step-1])));
+ if (isset($TOOL['oldapFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldapFlipper']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['oldalFlipper']['post']); $i++) {
+ $postParam = $TOOL['oldalFlipper']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+ echo '<input type="submit" value="&larr;" title="'.$TOOL['oldalFlipper']['title'][$step-1].'" />'."\n";
+ formEnd();
+
+ echo '</td>';
+ }
+ if ($stepCount > 1)
+ for ($j = 0; $j < $stepCount; $j++) {
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$j])));
+ if (isset($TOOL['oldapFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldapFlipper']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['oldalFlipper']['post']); $i++) {
+ $postParam = $TOOL['oldalFlipper']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+
+ if (isset($step) && $step == $j)
+ echo '<input class="step" type="button" value="'.($j+1).'" title="'.$TOOL['oldalFlipper']['title'][$j].'" />'."\n";
+ else
+ echo '<input type="submit" value="'.($j+1).'" title="'.$TOOL['oldalFlipper']['title'][$j].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ if ($stepCount == 1 || (isset($step) && $step < $stepCount-1)) {
+ if (!isset($step)) $step = 0; else $step++;
+ echo '<td>';
+ formBegin(array('action'=>href($TOOL['oldalFlipper']['url'][$step])));
+ if (isset($TOOL['oldapFlipper']['action']))
+ echo '<input type="hidden" name="action" value="'.$TOOL['oldapFlipper']['action'].'" />'."\n";
+ for ($i = 0; $i < count($TOOL['oldalFlipper']['post']); $i++) {
+ $postParam = $TOOL['oldalFlipper']['post'][$i];
+ echo '<input type="hidden" name="'.$postParam.'" value="'.$_POST[$postParam].'" />'."\n";
+ }
+ if (isset($TOOL['oldalFlipper']['paramName']))
+ echo '<input type="hidden" name="'.$paramName.'" value="'.$$paramName.'" />'."\n";
+
+ echo '<input type="submit" value="&rarr;" title="'.$TOOL['oldalFlipper']['title'][$step].'" />'."\n";
+ formEnd();
+ echo '</td>';
+ }
+ echo '</tr></table>'."\n";
+
+ }
+
+ function putIgazolasOsszegzo() {
+ // EZ A FÜGGVÉNY NINCS IMPLEMENTÁLVA A SKIN PDA_BAN
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/www/skin/pda/module-naplo/html/haladasi/haladasi.phtml
new file mode 100644
index 00000000..7aa36aad
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/haladasi/haladasi.phtml
@@ -0,0 +1,392 @@
+<?php
+/*
+ module: naplo
+*/
+
+##
+# Haladási naplo megjelenítése
+##
+
+ function putHaladasiBejegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ // kompatibilitás miatt -- átnevezhetők
+ $title = $ADAT['title'];
+ $data = $ADAT['haladasi'];
+ $order = $ADAT['order'];
+ //..
+ $tankorId = $ADAT['tankorId'];
+ $osztalyId = $ADAT['osztalyId'];
+ $tanarId = $ADAT['tanarId'];
+ $diakId = $ADAT['diakId'];
+ // ---
+
+ formBegin(array('action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi'), 'name'=>"haladasiOrabeiras", 'class'=>"onChangeRequest"));
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="order" value="'.$order.'" />'."\n";
+ echo '<input type="hidden" name="action" value="haladasiNaploBeiras" />'."\n";
+
+ echo '<table class="haladasiBejegyzesek" align="center" cellpadding="1" cellspacing="1">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr><th colspan="3" class="fejlec8">';
+ echo $title;
+ echo '</th></tr>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr><th colspan="3">';
+ if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz" value="<<" tabindex="5" />'."\n";
+ echo ' '._IDOSZAK.': '.str_replace('-','.',_SHOW_DAYS_FROM) . '. - '. str_replace('-','.', _SHOW_DAYS_TO) .'. '."\n";
+ if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz" value=">>" tabindex="6" />'."\n";
+ echo '</th></tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ // -------------------------------
+ $toTime = strtotime(_SHOW_DAYS_TO);
+ $fromTime = strtotime(_SHOW_DAYS_FROM);
+
+ if ($order == 'ASC') {
+ for ($time = $fromTime; $time <= $toTime; $time = strtotime('1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok']);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ } else {
+ for ($time = $toTime; $time >= $fromTime; $time = strtotime('-1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok']);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ }
+ // ---------------------------------
+
+ echo '</table>'."\n";
+ formEnd();
+
+ }
+
+
+ function putNap($dt, $dNap, $napInfo, $doga) {
+
+ global $aHetNapjai;
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ if ($napInfo['tipus'] == 'tanítási szünet') echo '<tbody class="szunet">'."\n";
+ elseif ($napInfo['típus'] == 'tanítás nélküli munkanap') echo '<tbody class="tanitasNelkul">'."\n";
+ elseif (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+ else echo '<tbody class="paratlanNap">'."\n";
+
+ echo '<tr>';
+ // Az első cella a dátum/nap
+ echo '<th colspan="3" class="nap">';
+ echo str_replace('-','.',$dt) .'. '. $aHetNapjai[date('w',$time)-1];
+ if ($napInfo['orarendiHet'] != 0) echo ' ('.$napInfo['orarendiHet'] . '. '. _HET .')';
+ if ($napInfo['megjegyzés'] != '' ) echo ' - '.$napInfo['megjegyzés'];
+ echo '</th>';
+ echo '</tr>';
+
+ putHaladasiDolgozat($dt,$doga);
+
+ if ($count > 0) {
+ for ($i=0; $i<$count; $i++) {
+ if ($i % 2 == 0) $dNap[$i]['class'] = 'parosOra';
+ else $dNap[$i]['class'] = 'paratlanOra';
+ putOra($dNap[$i]);
+ } // órák kiírása
+ } else {
+ echo '<tr><th colspan="3" class="nincsOra">'._NINCS_ORAJA.'</th></tr>';
+ }
+
+ echo '</tbody>'."\n";
+
+ }
+
+
+ function putTankorNap($dt, $dNap, $doga, $order) {
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ if (date('w',$time) % 2 == 0) echo '<tbody class="parosNap">'."\n";
+ else echo '<tbody class="paratlanNap">'."\n";
+
+ putHaladasiDolgozat($dt,$doga);
+
+ for ($i=0; $i<$count; $i++) {
+ if ($order == 'DESC') putTankorOra($dNap[$count-$i-1]);
+ else putTankorOra($dNap[$i]);
+ } // órák kiírása
+
+ echo '</tbody>'."\n";
+
+ }
+
+
+ function putHaladasiDolgozat($dt,$doga) {
+
+ for ($i=0;$i<count($doga['tervezett'][$dt]);$i++) {
+ $did = $doga['tervezett'][$dt][$i];
+ echo '<tr>';
+ echo '<td colspan="3" class="dolgozat">';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did);
+ echo '<a href="'.$href.'">';
+ echo _BEJELENTETT_DOLGOZAT . ': '. $doga[$did]['dolgozatNev'];
+ echo ' (' ;
+ for ($j=0;$j<count($doga[$did]['tankor']);$j++) {
+ if ($j != 0) echo ', ';
+ echo $doga[$did]['tankor'][$j]['tankorNev'];
+ }
+ echo ')';
+ echo '</a>';
+ echo '</td>';
+ echo '</tr>'."\n";
+ }
+
+ }
+
+ function putOra($dOra) {
+
+ $modosithatoOra = modosithatoOra($dOra);
+
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+ if ($dOra['tipus'] == 'összevonás') $tipus = 'Ö';
+ else $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+ echo '<tr'.$tr_class.'>';
+
+ // ----- óra ----------------------------------
+ echo '<td rowspan="3" class="ora '.$dOra['class'].'">';
+ echo $dOra['ora'].'.';
+ echo '</td>'."\n";
+
+
+ // ----- Tankör -------------------------------
+ echo '<td>';
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // -------------------------------------------------------------------------
+ if (
+ is_array($dOra['csoport']) && count($dOra['csoport'])>1
+ && $modosithatoOra
+ ) {
+
+ echo '<select name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ echo '<option value="'.$dOra['csoportId'].':'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo $dOra['tankorNev'];
+ }
+ // -------------------------------------------------------------------------
+
+ echo '</td>'."\n";
+
+ // ----- Hiányzók -------------------------------
+ echo '<td class="'.$dOra['class'].'">';
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ echo '<a class="hianyzas" title="hiányzók" href="'.$href.'">';
+ echo 'H &gt;&gt;';
+ echo '</a>';
+ echo '</td>'."\n";
+
+ echo '</tr><tr'.$tr_class.'>';
+
+
+ // ----- Tanár(ok) -------------------------------
+ echo '<td>';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanar']) > 1 and $modosithatoOra) {
+ $_SEL = array($dOra['ki'] => 'selected="selected" ');
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t = 0; $t < count($dOra['tanar']); $t++) {
+ echo '<option value="'.$dOra['tanar'][$t]['tanarId'].'" '.$_SEL[$dOra['tanar'][$t]['tanarId']].'>';
+ echo $dOra['tanar'][$t]['tanarNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td class="'.$dOra['class'].'">';
+ echo $dOra['oraszam'];
+ if ($tipus != '') echo '/'.$tipus;
+
+ echo '</td>'."\n";
+
+
+ echo '</tr><tr'.$tr_class.'>';
+
+ // ----- Leírás ---------------------------------
+ if ($modosithatoOra) {
+ if ($dOra['leiras']!='') { // beírva
+ echo '<td>';
+ echo '<input type="text" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '</td><td class="'.$dOra['class'].'">';
+ echo '<input type="submit" class="gomb" value="ok" tabindex="1" />';
+ } else {
+ echo '<td>';
+ echo '<input type="text" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '</td><td class="'.$dOra['class'].'">';
+ echo '<input type="submit" class="gomb" value="ok" tabindex="2" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo '<td colspan="2">'.$dOra['leiras'];
+ } else {
+ echo '<td colspan="2" class="nincsBeirva">'._NINCS_BEIRVA;
+ }
+ }
+ echo '</td>'."\n";
+
+
+ echo '</tr>'."\n";
+
+
+ }
+
+
+ function putTankorOra($dOra) {
+
+ global $aHetNapjai;
+
+ $modosithatoOra = modosithatoOra($dOra);
+
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+// if (substr($dOra['tipus'],0,6) != 'normál') {
+ $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+
+ echo '<tr'.$tr_class.'>';
+
+ // ----- óra ----------------------------------
+ echo '<td class="ora">';
+ echo str_replace('-','.',$dOra['dt']) .'. '. $aHetNapjai[date('w',strtotime($dOra['dt']))-1].' ';
+ echo $dOra['ora'].'.';
+ echo '</td>'."\n";
+
+ // ----- Tankör -------------------------------
+ echo '<td>';
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // -------------------------------------------------------------------------
+ if (
+ is_array($dOra['csoport']) && count($dOra['csoport']) > 1
+ && $modosithatoOra
+ ) {
+
+ echo '<select name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ echo '<option value="'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo $dOra['tankorNev'];
+ }
+ // -------------------------------------------------------------------------
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $tipus;
+ echo '</td>'."\n";
+
+
+ // ----- Tanör(ok) -------------------------------
+ echo '<td>';
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanár']['id']) > 1 and $modosithatoOra) {
+ $_SEL = array($dOra['kiId'] => 'selected="selected" ');
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t=0;$t<count($dOra['tanár']['id']);$t++) {
+ echo '<option value="'.$dOra['tanár']['id'][$t].'" '.$_SEL[$dOra['tanár']['id'][$t]].'>';
+ echo $dOra['tanár'][$dOra['tanár']['id'][$t]]['cn'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+ echo '</td>'."\n";
+
+ echo '<td>';
+ echo $dOra['oraszam'];
+ echo '</td>'."\n";
+
+ // ----- Leíráás ---------------------------------
+ if ($modosithatoOra) {
+ echo '<td>';
+ if ($dOra['leiras']!='') { // beírva
+ echo '<input type="text" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb" value="'._MODOSIT.'" tabindex="1" />';
+ } else {
+ echo '<input type="text" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb" value="'._ROGZIT.'" tabindex="2" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo '<td>'.$dOra['leiras'];
+ } else {
+ echo '<td>'._NINCS_BEIRVA;
+ }
+ }
+ echo '</td>'."\n";
+
+ // ----- Hiányzók -------------------------------
+ echo '<td>';
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ echo '<a href="'.$href.'">';
+ echo _HIANYZOK;
+ echo '</a>';
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/hianyzas/ora.phtml b/mayor-orig/www/skin/pda/module-naplo/html/hianyzas/ora.phtml
new file mode 100644
index 00000000..36940ff8
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/hianyzas/ora.phtml
@@ -0,0 +1,215 @@
+<?php
+
+ function putHianyzok($ORAADAT, $ADAT) {
+
+ global $napiMinOra, $napiMaxOra;
+
+ // make assoc
+ for($i=0; $i<count($ADAT['hianyzok']); $i++) {
+ $_D = $ADAT['hianyzok'][$i];
+ $HADAT[$_D['oraId']][$_D['diakId']][$_D['tipus']] = $_D;
+ }
+
+ $NEVEK = $ADAT['nevsor']['nevek'];
+ $RESZLETEK = $ADAT['nevsor']['adatok'];
+
+ $HTIPUSOK1 = array('','késés','hiányzás');
+ $HTIPUSOK2 = array('felszerelés hiány','felmentés','egyenruha hiány');
+ $ITIPUSOK = array('','orvosi','szülői','osztályfőnöki','tanulmányi verseny','nyelvvizsga','igazgatói','hatósági');
+
+ $dt = $ORAADAT['dt'];
+ $ora = $ORAADAT['ora'];
+
+ if (!is_array($NEVEK) || count($NEVEK)==0) return false;
+
+ formBegin(array( 'class'=>"vissza", 'action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi')));
+ echo '<input type="hidden" name="igDt" value="'.$ORAADAT['dt'].'" />';
+ echo '<input type="hidden" name="tanarId" value="'.$ORAADAT['ki'].'" />';
+ echo '<input type="submit" value="&larr; '._HALADASI.'" />';
+ formEnd();
+
+ if ($ADAT['tankorAdat']['oratervi'] != 'óratervi') $class = 'delutani';
+ formBegin(array('method' => 'post', 'action' => '','class' => $class));
+
+ echo '<table align="center" cellspacing="1" cellpadding="1" class="csoportNevsorHianyzok">'."\n";
+ echo '<thead class="oraAdat">';
+ echo '<tr><th colspan="6">';
+ _putOraAdat($ORAADAT);
+ echo '</th></tr></thead>';
+ echo '<thead>';
+ echo '<tr><th colspan="6">'.
+ '<span title="'.
+ _JELENLET.': '.$ADAT['tankorAdat']['jelenlet'].'/'.
+ _REGISZTRALANDO.': '.$ADAT['tankorAdat']['regisztralando'].'/'.
+ _HIANYZAS_BELESZAMIT.': '.$ADAT['tankorAdat']['hianyzasBeleszamit'].
+ '">'.$ADAT['tankorAdat']['oratervi'].'</span>';
+ echo '</th></tr>';
+ echo '<tr><th>'._NEV.'</th><th>'._J.'</th><th>'._K.'</th><th>'._H.'</th><th>'._F.'</th><th>'._FM.'</th></tr>';
+ echo '</thead>';
+ echo '<tfoot>';
+ echo '<tr><th colspan="6">';
+ echo '<input type="submit" name="gomb" value="'._OK.'" />';
+ echo '<input type="hidden" name="action" value="hianyzokRogzitese" />';
+ echo '<input type="hidden" name="oraId" value="'.$ORAADAT['oraId'].'" />';
+ echo '</th></tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ $i=0;
+ foreach($NEVEK as $_diakId => $DA) {
+ $JOG = $ADAT['jogosultsag'][$_diakId]['orak'][$ORAADAT['ora']];
+ $JOGADAT = $ADAT['jogosultsag'][$_diakId]['igazolas'];
+ echo '<tr>';
+// echo '<td>';
+// _putHianyzasKistabla($ADAT['napiHianyzasok'][$_diakId], $ORAADAT, array('napiMinOra' => $napiMinOra, 'napiMaxOra' => $napiMaxOra));
+// echo '</td>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$_diakId).'">';
+ //printf("%2s. ", $i+1);
+ echo $DA['diakNev'];
+ echo '</a>';
+ echo '</td>';
+ if (
+ $ADAT['tankorAdat']['regisztralando']=='igen'
+ &&
+// $RESZLETEK[$_diakId][0]['jelenlet'] != 'nem kötelező' // az elnevezés félrevezető. Napközi? ILYEN MÁR NINCS!!!
+ !in_array($ADAT['tankorAdat']['tankorId'], $ADAT['felmentes'][$_diakId])
+ ) {
+ $_igtipus='';
+ /* prepare data */
+ reset($HTIPUSOK1);
+ $__jelen=true;
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ if ($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId']!='') $__jelen=false;
+ }
+ /* -- */
+ reset($HTIPUSOK1);
+ foreach ($HTIPUSOK1 as $j => $_tipus) {
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') $_igtipus = $_tipus;
+ if ($_tipus=='') $_csstipus = 'jelen'; else $_csstipus=$_tipus;
+ echo '<td class="'.$_csstipus.'">';
+ if ($JOG['beirhato']==true) {
+ $_radio = ($_hid!='' || ($_tipus=='' && $__jelen)) ?'checked="checked"' : '';
+ //echo $_diakId.'/'.$_tipus.'/'.$_hid;
+ echo '<input type="radio" id="HIANYZOK1_'.$i.'" name="HIANYZOK1_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio . '/>';
+ if ($_tipus=='késés') {
+ $_perc = intval(($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['perc']));
+ echo '<input class="perc" type="text" maxlength="2" size="1" name="PERC_'.$i.'" value="'.$_perc.'" />';
+ }
+ } else {
+ if (($__jelen && $_tipus=='') || $_hid!='') {
+ if ($_hid!='') echo '<input type="hidden" name="HIANYZOK1_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"/>';
+ if ($_tipus=='késés' && ($_perc = intval(($HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['perc']))) != 0) {
+ echo '<span class="perc">'.$_perc.'</span>';
+ } else {
+ _putImg($_tipus,$__jelen);
+ }
+ }
+ }
+ echo '</td>';
+ }
+ /* === */
+ echo '<td colspan="'.count($HTIPUSOK2).'" class="fbetus">';
+ if ($JOG['fbeirhato']==true) {
+ echo '<select id="HIANYZOK2_'.$i.'" name="HIANYZOK2_'.$i.'">';
+ echo '<option value="'.$_diakId.'/"></option>';
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ $_radio = ($_hid!='') ?'selected="selected"' : '';
+ echo '<option value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'>'.$_tipus.'</option>';
+ }
+ echo '</select>';
+ } else {
+ foreach ($HTIPUSOK2 as $j => $_tipus) {
+ $_hid = $HADAT[$ORAADAT['oraId']][$_diakId][$_tipus]['hianyzasId'];
+ if ($_hid!='') {
+ echo '<input type="hidden" name="HIANYZOK2_'.$i.'" value="'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'" '. $_radio .'/>';
+ echo $_tipus;
+ }
+ }
+ }
+ echo '</td>';
+// echo '<td>';
+// _putIgazolasSelect($HADAT[$ORAADAT['oraId']][$_diakId][$_igtipus], $ITIPUSOK,$JOG,$JOGADAT,array('diakId'=>$_diakId,'oraId'=>$ORAADAT['oraId'],'hianyzasId'=>$_hid));
+// echo '</td>';
+ } else {
+ echo '<td class="nemkot" colspan="'.(count($HTIPUSOK2)+count($HTIPUSOK2)+count($ITIPUSOK)).'">';
+ // echo _ORARA_NEM_KOTELEZO_BEJARNIA;
+ echo _NEM_REGISZTRALANDO;
+ echo '</td>'."\n";
+ }
+
+ echo '</tr>';
+ $i++;
+ }
+ echo '</tbody>';
+ echo '</table>';
+
+ formEnd();
+
+ }
+
+ function _putIgazolasSelect($ADAT,$TIPUSOK,$JOG,$JOGADAT,$SET) {
+ //"'.$_diakId.'/'.$dt.'/'.$ora.'/'.$_tipus.'/'.$_hid.'"
+ if (is_array($ADAT)) {
+ if ($JOG['igazolhato']===true) {
+ echo '<select name="IGAZOLAS[]">'."\n";
+ echo '<option value="'.$SET['diakId'].'////'.$ADAT['hianyzasId'].'">'._IGAZOLATLAN.'</option>'."\n";
+ for($i=0; $i<count($TIPUSOK); $i++){
+ $_SEL = ($ADAT['igazolas']==$TIPUSOK[$i]) ? ' selected="selected"':'';
+ if (in_array($TIPUSOK[$i], $JOGADAT['tipusok'])) {
+ echo '<option value="'.$SET['diakId'].'///'.$TIPUSOK[$i].'/'.$ADAT['hianyzasId'].'" '.$_SEL.'>'.$TIPUSOK[$i].'</option>'."\n";
+ }
+ }
+ // és a kieg, ha elfogyott volna, de ez még azzal van igazolva:
+ if (!in_array($ADAT['igazolas'],$JOGADAT['tipusok']) && $ADAT['statusz']!='igazolatlan') {
+ echo '<option value="" selected="selected">'.$ADAT['igazolas'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ } else {
+ echo $ADAT['igazolas'];
+ }
+ }
+
+ }
+
+ function _putOraAdat($ORAADAT) {
+ echo '<table align="center" class="oraAdat">';
+ echo '<tr><td>';
+ echo $ORAADAT['dt'].', '.$ORAADAT['ora'].'. ('.$ORAADAT['oraId'].')';
+ echo '</td><td>';
+ echo $ORAADAT['tankorNev'].' - '.$ORAADAT['kiCn'];
+ echo '</td></tr><tr>';
+ echo '<th colspan="2">';
+ if ($ORAADAT['tankorTipus'] == 'délutáni') echo nagybetus($ORAADAT['tankorTipus']);
+ echo $ORAADAT['leiras'];
+ echo '</th></tr>';
+ echo '</table>';
+ }
+
+
+ function putOraAdatok($oraAdat) {
+
+ list($evf,$oszt,$targy,$targycsoport,$tipus,$index) = explode('_',$oraAdat['tankor']);
+
+ #echo '<table align="center" class="oraAdatok" cellpadding="0" cellspacing="0"><tr><td style="text-align: center">';
+ echo '<table align="right" style="border-style: none none dotted none; border-width: 0px 0px 1px 0px; border-color: #999999">';
+ echo '<tr>';
+ echo '<td>'.str_replace('-','.',$oraAdat['dt']).'.</td>';
+ echo '<td>'.$oraAdat['ora'].'. óra</td>';
+ echo "<td> ~ $evf.$oszt $targy, $tipus $targycsoport</td>";
+ echo '<td> ~ '.$oraAdat['tanarCn'].'</td>';
+ echo '</tr>';
+ echo '</table>'."\n";
+ #echo '</td></tr></table>'."\n";
+ #echo '<br/>';
+ }
+
+ function _putImg($tipus,$jelen) {
+ if ($jelen && $tipus=='') echo '<img src="/skin/classic/module-naplo/img/hianyzas/green.gif" alt="x" />';
+ elseif ($tipus=='késés') echo '<img src="/skin/classic/module-naplo/img/hianyzas/yellow.gif" alt="x" />';
+ elseif ($tipus=='hiányzás') echo '<img src="/skin/classic/module-naplo/img/hianyzas/red.gif" alt="x" />';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/hianyzas/osztaly.phtml b/mayor-orig/www/skin/pda/module-naplo/html/hianyzas/osztaly.phtml
new file mode 100644
index 00000000..6835e45f
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/hianyzas/osztaly.phtml
@@ -0,0 +1,465 @@
+<?php
+
+ function putOsztalyOsszesito($ADAT, $View) {
+
+ global $_TANEV;
+
+ $_cols = 3;
+
+ $H = $ADAT['stat'];
+
+ formBegin();
+ echo '<table align="center" class="navi"><tr><td>';
+
+ echo '<input id="lezart" type="checkbox" name="View[]" value="lezárt" ';
+ if (in_array('lezárt',$View)) echo 'checked="checked" ';
+ echo '/><label for="lezart">'._LEZART.'</label>';
+ echo '<input id="igazolhato" type="checkbox" name="View[]" value="igazolható" ';
+ if (in_array('igazolható',$View)) echo 'checked="checked" ';
+ echo '/><label for="igazolhato">'._IGAZOLHATO.'</label><br />';
+ echo '<input id="osszes" type="checkbox" name="View[]" value="összes" ';
+ if (in_array('összes',$View)) echo 'checked="checked" ';
+ echo '/><label for="osszes">'._OSSZES.'</label>';
+ echo '<input id="fegyu" type="checkbox" name="View[]" value="fegyelmi utáni" ';
+ if (in_array('fegyelmi utáni',$View)) echo 'checked="checked" ';
+ echo '/><label for="fegyu">'._FEGYELMI_UTANI.'</label><br />';
+ echo '<input id="fegyfo" type="checkbox" name="View[]" value="fegyelmi fokozatok" ';
+ if (in_array('fegyelmi fokozatok',$View)) echo 'checked="checked" ';
+ echo '/><label for="fegyfo">'._FEGYELMI_FOKOZATOK.'</label>';
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" /> ';
+ echo '<input type="submit" value="'._OK.'" class="ok" />'.'<br />';
+
+ echo ' '._REFERENCIADT.' ';
+ echo '<select name="referenciaDt" class="onChangeSubmit">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ $SEL = array($ADAT['referenciaDt'] => ' selected="selected" ');
+ for (
+ $dt = _LEGKORABBI_IGAZOLHATO_HIANYZAS;
+ strtotime($dt) < time();
+ $dt = date('Y-m-d',strtotime('+1 day',strtotime($dt)))
+ ) echo '<option value="'.$dt.'"'.$SEL[$dt].'>'.$dt.'</option>'."\n";
+ echo '</select>'."\n";
+
+ echo '</td></tr></table>';
+ formEnd();
+
+ echo '<table class="hianyzas" align="center">';
+
+ /* ----------- Fejléc ----------- */
+
+ echo '<thead>'."\n";
+ echo '<tr>';
+ echo '<th rowspan="3">'._NEV.'</th>';
+
+ if (in_array('lezárt',$View)) {
+ echo '<th colspan="6">'._LEZART.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th colspan="6">'._IGAZOLHATO.'</th>';
+ $_cols+=6;
+ }
+
+ if (in_array('összes',$View)) {
+ echo '<th colspan="8">'._OSSZES.'</th>';
+ $_cols+=7;
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<th colspan="3">'._FEGYELMI_UTANI.'</th>';
+ $_cols+=3;
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<th colspan="3">'._FEGYELMI_FOKOZATOK.'</th>';
+ $_cols+=3;
+ }
+
+ echo '</tr><tr>';
+
+ if (in_array('lezárt',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ }
+
+ if (in_array('összes',$View)) {
+ echo '<th colspan="3" class="alcim">'._HIANYZAS.'</th>';
+ echo '<th colspan="3" class="alcim">'._KESES.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELSZERELES_HIANY.'">'._FSZ.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELMENTES.'">'._FM.'</th>';
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ echo '<th rowspan="2" class="alcim" title="'._HIANYZAS.'">'._H.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._KESES.'">'._K.'</th>';
+ echo '<th rowspan="2" class="alcim" title="'._FELSZERELES_HIANY.'">'._FSZ.'</th>';
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ echo '<th rowspan="2" class="alcim" title="'._OSSZES_IGAZOLATLAN.'">'._O.'</th>';
+ echo '<th rowspan="2" class="alcim">'._AKTUALIS_FOKOZAT.'</th>';
+ echo '<th rowspan="2" class="alcim">'._BEIRANDO_FOKOZAT.'</th>';
+ }
+
+ echo '</tr><tr>';
+
+ if (in_array('lezárt',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('igazolható',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('összes',$View)) {
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/h.gif" alt="'._IGAZOLATLAN.'" title="'._IGAZOLATLAN.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/i.gif" alt="'._IGAZOLT.'" title="'._IGAZOLT.'" /></th>';
+ echo '<th class="alcim"><img src="skin/classic/module-naplo/img/hianyzas/sum.gif" alt="'._OSSZES.'" title="'._OSSZES.'" /></th>';
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ }
+
+
+ echo '</tr>';
+
+
+ echo '</thead>'."\n";
+
+ /* ----------- Fejléc vége ------------- */
+
+ echo '<tfoot>'."\n";
+ echo '<tr><th colspan="'.$_cols.'">'._HIANYZASMENTESNAPOKSZAMA.': '.$ADAT['hianyzasmentesNapokSzama'].'</th></tr>';
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+
+// for($i = 0; $i < count($H['névsor']); $i++) {
+ foreach ($H['névsor'] as $diakId => $dAdat) {
+
+ echo '<tr>';
+
+ echo '<td class="nev">';
+ echo '<a href="'.href('index.php?page=naplo&sub=hianyzas&f=diak&diakId='.$diakId.'&osztalyId='.$ADAT['osztalyId']).'" >';
+ echo $dAdat['diakNev'];
+ echo '</a>';
+ echo '</td>';
+
+ if (in_array('lezárt',$View)) {
+ # Lezártak
+
+ // Lezárt igazolatlan hiányzás
+ $lhigazolatlan = $H[$diakId]['lezárt']['hiányzás']['igazolatlan'];
+ if (intval($lhigazolatlan) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$lhigazolatlan.'</td>';
+
+ // Lezárt igazolt hiányzás
+ $lhigazolt = $H[$diakId]['lezárt']['hiányzás']['igazolt'];
+ if (intval($lhigazolt) == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$lhigazolt.'</td>';
+
+ // Lezárt összes hiányzás
+ $osszeg = intval($lhigazolt) + intval($lhigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Lezárt igazolatlan késés
+ $lkigazolatlan = $H[$diakId]['lezárt']['késés']['igazolatlan']['db'];
+ $lkigazolatlanIdo = $H[$diakId]['lezárt']['késés']['igazolatlan']['ido'];
+ if ($lkigazolatlan == 0) $class = 'ulezart';
+ else $class = 'lezart igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$lkigazolatlanIdo.'">'.$lkigazolatlan.'</td>';
+
+ // Lezárt igazolt késés
+ $lkigazolt = $H[$diakId]['lezárt']['késés']['igazolt']['db'];
+ if ($lkigazolt == 0) $class = 'ulezart';
+ else $class = 'lezart igazolt keses';
+ echo '<td class="'.$class.'">'.$lkigazolt.'</td>';
+
+ // Lezárt igazolatlan késés
+ $osszeg = intval($lkigazolt) + intval($lkigazolatlan);
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'ulezart';
+ } else {
+ $class = 'lezart mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+ if (in_array('igazolható',$View)) {
+ ## Lezárt utáni = Igazolható
+
+ // Igazolható igazolatlan hiányzás
+ $ihigazolatlan = $H[$diakId]['összes']['hiányzás']['igazolatlan'] - $H[$diakId]['lezárt']['hiányzás']['igazolatlan'];
+ if ($ihigazolatlan == 0) {
+ $ihigazolatlan = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolatlan hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$ihigazolatlan.'</td>';
+
+ // Igazolható igazolt hiányzás
+ $ihigazolt = $H[$diakId]['összes']['hiányzás']['igazolt'] - $H[$diakId]['lezárt']['hiányzás']['igazolt'];
+ if ($ihigazolt == 0) {
+ $ihigazolt = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolt hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$ihigazolt.'</td>';
+
+ // Igazolható összes hiányzás
+ $osszeg = $iigazolt+$iigazolatlan;
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Igazolható igazolatlan késés
+ $ikigazolatlan = $H[$diakId]['összes']['késés']['igazolatlan']['db'] - $H[$diakId]['lezárt']['késés']['igazolatlan']['db'];
+ $ikigazolatlanIdo = $H[$diakId]['összes']['késés']['igazolatlan']['ido'] - $H[$diakId]['lezárt']['késés']['igazolatlan']['ido'];
+ if ($ikigazolatlan == 0) {
+ $ikigazolatlan = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato igazolatlan keses';
+ }
+ echo '<td class="'.$class.'" title="'.$ikigazolatlanIdo.'">'.$ikigazolatlan.'</td>';
+
+ // Igazolható igazolt késés
+ $ikigazolt = $H[$diakId]['összes']['késés']['igazolt']['db'] - $H[$diakId]['lezárt']['késés']['igazolt']['db'];
+ if ($ikigazolt == 0) {
+ $ikigazolt = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato izagolt keses';
+ }
+ echo '<td class="'.$class.'">'.$ikigazolt.'</td>';
+
+ // Igazolható összes késés
+ $osszeg = $iigazolt+$iigazolatlan;
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uigazolhato';
+ } else {
+ $class = 'igazolhato mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+ ## ------
+ }
+
+ if (in_array('összes',$View)) {
+ ## Összes
+
+ // Összes igazolatlan hiányzás
+ $ohigazolatlan = $H[$diakId]['összes']['hiányzás']['igazolatlan'];
+ if ($ohigazolatlan == 0) $class = 'uosszes';
+ else $class = 'osszes igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$ohigazolatlan.'</td>';
+
+ // Összes igazolt hiányzás
+ $ohigazolt=$H[$diakId]['összes']['hiányzás']['igazolt'];
+ if ($ohigazolt == 0) $class = 'uosszes';
+ else $class = 'osszes igazolt hianyzas';
+ echo '<td class="'.$class.'">'.$ohigazolt.'</td>';
+
+ // Összes hiányzás
+ $osszeg = $ohigazolt+$ohigazolatlan;
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uosszes';
+ } else {
+ $class = 'osszes mind hianyzas';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Összes igazolatlan késés
+ $okigazolatlan = $H[$diakId]['összes']['késés']['igazolatlan']['db'];
+ $okigazolatlanIdo = $H[$diakId]['összes']['késés']['igazolatlan']['ido'];
+ if ($okigazolatlan == 0) $class = 'uosszes';
+ else $class = 'osszes igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$okigazolatlanIdo.'">'.$okigazolatlan.'</td>';
+
+ // Összes igazolt késés
+ $okigazolt=$H[$diakId]['összes']['késés']['igazolt']['db'];
+ if ($okigazolt == 0) $class = 'uosszes';
+ else $class = 'osszes igazolt keses';
+ echo '<td class="'.$class.'">'.$okigazolt.'</td>';
+
+ // Összes késés
+ $osszeg = $okigazolt + $okigazolatlan;
+ if ($osszeg == 0) {
+ $osszeg = '';
+ $class = 'uosszes';
+ } else {
+ $class = 'osszes mind keses';
+ }
+ echo '<td class="'.$class.'">'.$osszeg.'</td>';
+
+ // Összes felszerelés hiány
+ $ofelszereles = $H[$diakId]['összes']['felszerelés hiány']['igazolatlan'];
+ if ($ofelszereles == 0) $class = 'uosszes';
+ else $class = 'osszes felszereles';
+ echo '<td class="'.$class.'">'.$ofelszereles.'</td>';
+
+ // Összes felmentés hiány
+ $ofelmentes = $H[$diakId]['összes']['felmentés']['igazolatlan'];
+ if ($ofelmentes == 0) $class = 'uosszes';
+ else $class = 'osszes felmentes';
+ echo '<td class="'.$class.'">'.$ofelmentes.'</td>';
+ ## ------
+ }
+
+ if (in_array('fegyelmi utáni',$View)) {
+ ## Fegyelmi után
+ // Fegyelmi utáni igazolatlan hiányzás
+ $fih = $H[$diakId]['fegyelmi']['hiányzás']['igazolatlan'];
+ if ($fih == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi igazolatlan hianyzas';
+ echo '<td class="'.$class.'">'.$fih.'</td>';
+
+ // Fegyelmi utáni igazolatlan késés
+ $fik = $H[$diakId]['fegyelmi']['késés']['igazolatlan']['db'];
+ $fikIdo = $H[$diakId]['fegyelmi']['késés']['igazolatlan']['ido'];
+ if ($fik == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi igazolatlan keses';
+ echo '<td class="'.$class.'" title="'.$fikIdo.'">'.$fik.'</td>';
+
+ // Fegyelmi utáni felszereléshiány
+ $ff = $H[$diakId]['fegyelmi']['felszerelés']['igazolatlan'];
+ if ($ff == 0) $class = 'ufegyelmi';
+ else $class = 'fegyelmi felszereles';
+ echo '<td class="'.$class.'">'.$ff.'</td>';
+ ## ------
+ }
+
+ if (in_array('fegyelmi fokozatok',$View)) {
+ ## Fokozatok
+
+ $igazolatlanok_szama = $H[$diakId]['összes igazolatlan'];
+ if ($igazolatlanok_szama == 0) {
+ $igazolatlanok_szama = '';
+ $class = 'ufokozat';
+ } else {
+ $class = 'fokozat oi igazolatlan';
+ }
+ echo '<td class="'.$class.'">'.$igazolatlanok_szama.'</td>';
+
+ // Jelenlegi fegyelmi fokozat
+ $aktFokozat = intval($H[$diakId]['fegyelmi']['fokozat']);
+ $hianyzasDb = intval($H[$diakId]['fegyelmi']['hianyzasDb']);
+ $diakReferenciaDt = $H[$diakId]['fegyelmi']['referenciaDt'];
+ if ($aktFokozat == 0) $class = 'ufokozat';
+ else $class = 'fokozat';
+ echo '<td class="'.$class.'" title="'.$diakReferenciaDt.'">';
+ echo $ADAT['fokozat2bejegyzesTipus'][$aktFokozat]['bejegyzesTipusNev'];
+ echo '</td>'; // kapott már + dt
+
+ // Adandó fegyelmi fokozat szempontjából érdekes, már lezárt hiányzások és késésekből, felszereléshiányokból "átváltott" hiányzások
+ $fegyelmiIgazolatlanDb = $lhigazolatlan;
+ if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ $fegyelmiIgazolatlanDb += floor($lkigazolatlanIdo / 45);
+ } else {
+ if (intval(_HANY_KESES_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($lkigazolatlan / intval(_HANY_KESES_IGAZOLATLAN));
+ if (intval(_HANY_FSZ_IGAZOLATLAN) > 0)
+ $fegyelmiIgazolatlanDb += floor($ofelszereles / intval(_HANY_FSZ_IGAZOLATLAN));
+ }
+ // keressük visszafele az első adandó fokozatot...
+ $j = count($ADAT['összes fokozat'])-1;
+ while($ADAT['összes fokozat'][$j]['hianyzasDb'] > $fegyelmiIgazolatlanDb && $j >= 0) $j--;
+ $megerdemeltFokozat = $ADAT['összes fokozat'][$j]['fokozat'];
+ $megerdemeltBejegyzesTipusId = $ADAT['összes fokozat'][$j]['bejegyzesTipusId'];
+
+ // Fegyelmi utáni igazolatlanok összesítése
+ $fegyelmi = $fih;
+ if (_KESESI_IDOK_OSSZEADODNAK === true) {
+ // a fegyelmikbe beleszámítható az igazolatlanok száma rev2222+
+ $fegyelmi += floor($fikIdo / 45);
+ } else {
+ if (intval(_HANY_KESES_IGAZOLATLAN) > 0)
+ $fegyelmi += floor($fik / intval(_HANY_KESES_IGAZOLATLAN));
+ if (intval(_HANY_FSZ_IGAZOLATLAN) > 0)
+ $fegyelmi += floor($ff / intval(_HANY_FSZ_IGAZOLATLAN));
+ }
+
+ $_talalat = ($fegyelmi > 0 || $megerdemeltFokozat>$aktFokozat);
+
+ if (($_talalat)&& $_TANEV['statusz']=='aktív') $class = 'fokozat';
+ else $class = 'ufokozat';
+ echo '<td class="'.$class.'">';
+
+ ## FORM
+ if (
+ ($_talalat) && $_TANEV['statusz']=='aktív'
+ && in_array($dAdat['aktualisStatusz'], array('jogviszonyban van','vendégtanuló'))
+ ) {
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="fegyelmiRogzitese" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="hianyzasDb" value="'.$fegyelmiIgazolatlanDb.'" />'."\n";
+ if ($ADAT['referenciaDt'] == '') echo '<input type="hidden" name="ujReferenciaDt" value="'.$DH['igDt'].'" />';
+ else echo '<input type="hidden" name="ujReferenciaDt" value="'.$ADAT['referenciaDt'].'" />';
+ echo '<select name="bejegyzesTipusId">'."\n";
+ foreach ($ADAT['összes fokozat'] as $f => $fAdat) {
+ if (in_array($fAdat, $ADAT['jogosult fokozatok'])) $DIS = '';
+ else $DIS = ' disabled="disabled" ';
+ if ($megerdemeltBejegyzesTipusId == $fAdat['bejegyzesTipusId']) echo '<option'.$DIS.' value="'.$fAdat['bejegyzesTipusId'].'" selected="selected" class="megerdemelt">';
+ else echo '<option'.$DIS.' value="'.$fAdat['bejegyzesTipusId'].'">';
+ echo $fAdat['bejegyzesTipusNev'].' ('.$fAdat['hianyzasDb'].')';
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ echo '<input type="submit" value="'._SAVE.'" />';
+ formEnd();
+ }
+ echo '</td>'."\n";
+ ## -----
+ }
+
+ echo '</tr>';
+ }
+ #
+ echo '</tbody>'."\n";
+
+ echo '</table>';
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/diak.phtml b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/diak.phtml
new file mode 100644
index 00000000..a886ba3d
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/diak.phtml
@@ -0,0 +1,79 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function putTanuloJegyek($diakId, $diakNev, $Jegyek, $tolDt = '', $igDt = '', $ADAT) {
+
+
+ global $_TANEV, $Osztalyzatok, $bizonyitvanyMegjegyzesek;
+
+ $tolDt=$_TANEV['kezdesDt'];
+ $igDt=$_TANEV['zarasDt'];
+ $aktDt = $kDt = date('Y-m-01',strtotime($tolDt));
+ $vDt = date('Y-m-01',strtotime($igDt));
+
+ $Targyak = $Jegyek['targyak'];
+ //$Bizonyitvany = $Jegyek['bizonyitvany'];
+
+ // ----------------------------------------
+
+ while (strtotime($aktDt) <= strtotime($vDt)) {
+ list($ev,$ho,$nap) = explode('-',$aktDt);
+ $HO[] = array(
+ 'év' => $ev,
+ 'hó' => $ho
+ );
+ $HO['count']++;
+ $aktDt = date('Y-m-01',strtotime('next month',strtotime($aktDt)));
+ }
+ echo '<table class="osztalyozo" align="center" cellpadding="0">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th class="nev" colspan="3">'.$diakNev.' '.$_osztalystr.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<th rowspan="2">'._TARGY.'</th>'."\n";
+ echo '<td></td>';
+ echo '<th>'._ATLAG.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th >&nbsp;</th>'."\n";
+ echo '<th colspan="2">&nbsp;</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ foreach ($Targyak as $targyId => $targyAdat) {
+ echo '<tr>'."\n";
+ echo '<th>'.$targyAdat['targyNev'].'</th>'."\n";
+ echo '<td>';
+ for ($j = 0; $j < $HO['count']; $j++) {
+ $honapJegyei = $targyAdat[$HO[$j]['év']][$HO[$j]['hó']];
+
+ for ($k = 0; $k < count($honapJegyei); $k++) {
+ $jegyAdat = $Jegyek['jegyek'][$honapJegyei[$k]];
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$jegyAdat['jegyId']);
+ $title = $jegyAdat['tankorNev'].' ('.$jegyAdat['dt'].')';
+ echo '<a class="jegy'.$jegyAdat['tipus'].'" href="'.$href.'" title="'.$title.'">';
+ echo $Osztalyzatok[$jegyAdat['jegy']]['num'];
+ echo ' </a>';
+ }
+ }
+ echo '</td>'."\n";
+ echo '<th class="atlag">'.$targyAdat['atlag'].'</th>'."\n";
+
+ /* ------------------- */
+
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ }
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/dolgozat.phtml b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/dolgozat.phtml
new file mode 100644
index 00000000..92c685d5
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/dolgozat.phtml
@@ -0,0 +1,273 @@
+<?php
+/*
+ module: naplo
+ version: 3.0
+
+ function putDolgozatLista($DOLGOZAT)
+ A tanköröket még nem írja ki rendesen
+
+ function putDolgozat($DOLGOZAT,$TANAR_NEVSOR)
+ !!! Még nincs átnézve
+*/
+
+ function putDolgozatLista($Dolgozat) {
+
+ global $tanarId, $diakId, $tankorId, $osztalyId;
+ global $aHetNapjai;
+
+ echo '<table class="dolgozatLista" align="center" cellspacing="1">';
+ echo '<tr>';
+ echo '<th colspan="4">'._DOLGOZATOK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ echo '<th>'._DOLGOZAT.'</th>';
+ echo '<th>'._TANKOR.'</th>';
+ echo '<th>'._BEJELENTES.'</th>';
+ echo '<th>'._TERVEZETT.'</th>';
+ echo '</tr>';
+ if (count($Dolgozat['dolgozatIds']) > 0) {
+ for ($i = 0; $i < count($Dolgozat['dolgozatIds']); $i++) {
+ $dolgozatId = $Dolgozat['dolgozatIds'][$i];
+ echo '<tr>';
+ echo '<td>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='."$dolgozatId&tanarId=$tanarId&osztalyId=$osztalyId&diakId=$diakId&tankorId=$tankorId").'">';
+ if ($Dolgozat[$dolgozatId]['dolgozatNev'] != '') echo $Dolgozat[$dolgozatId]['dolgozatNev'];
+ else echo _NINCS_KITOLTVE;
+ echo '</a>';
+ echo '</td>';
+ echo '<td>';
+
+ $Tankorok = $Dolgozat[$dolgozatId]['tankor'];
+ $TankorLista = array();
+ for ($t = 0; $t < count($Tankorok); $t++) $TankorLista[] = $Tankorok[$t]['tankorNev'];
+ echo implode('<br />',$TankorLista);
+
+ echo '</td>';
+ echo '<td>';
+ $_dt = $Dolgozat[$dolgozatId]['bejelentesDt'];
+ $_dow = date('w', strtotime($_dt));
+ echo str_replace('-', '. ', $_dt).'. ';
+ echo $aHetNapjai[($_dow - 1)];
+ echo '</td>';
+ echo '<td>';
+ $_dt = $Dolgozat[$dolgozatId]['tervezettDt'];
+ if ($_dt != '0000-00-00' && $_dt != '') {
+ $_dow = date('w', strtotime($_dt));
+ echo str_replace('-', '. ', $_dt).'. ';
+ echo $aHetNapjai[($_dow - 1)];
+ }
+ echo '</td>';
+ echo '</tr>';
+ flush();
+ }
+ } else {
+ echo '<tr>';
+ echo '<td colspan="4">'._NINCS_DOLGOZAT.'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+ }
+
+ function putDolgozat($Dolgozat, $valaszthatoTankorok, $Tanarok) {
+
+ global $_TANEV, $Osztalyzatok;
+
+ if (__MODOSITHAT) $disabled = '';
+ else $disabled=' disabled="disabled" ';
+
+ // -------------- A dolgozat adatai -------------- //
+
+ formBegin();
+ echo '<input type="hidden" name="action" value="dolgozatModositas" />';
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />';
+ echo '<table align="center" class="dolgozatAdatok" cellspacing="1">';
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="4">'._DOLGOZAT_ADATAI.'</th>';
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ echo '<th colspan="4">';
+ if ($disabled == '') echo '<input type="submit" value="'._OK.'" />';
+ echo '</th>';
+ echo '</tr>';
+ echo '</tfoot>';
+
+ echo '<tbody>';
+ echo '<tr>';
+ echo '<th>'._MEGNEVEZES.'</th>';
+ echo '<td><input class="hosszu" type="text" name="nev" value="'.$Dolgozat['dolgozatNev'].'" '.$disabled.' /></td>';
+ echo '</tr><tr>';
+ echo '<th>'._BEJELENTES.'</th>';
+ echo '<td>'.$Dolgozat['bejelentesDt'].'</td>';
+ echo '</tr><tr>';
+ echo '<th>'._TERVEZETT.'</th>';
+ echo '<td>';
+ list($ev,$ho,$nap) = explode('-',$Dolgozat['tervezettDt']);
+ list($kEv,$semmi) = explode('-',$_TANEV['kezdesDt']);
+ list($vEv,$semmi) = explode('-',$_TANEV['zarasDt']);
+ $SEL = array($ev => 'selected="selected"');
+
+ echo '<select name="tervezett-ev"'.$disabled.'>';
+ echo '<option value="">'._EV.'</option>';
+ for ($i = $kEv; $i <= $vEv; $i++) {
+ echo '<option value="'.$i.'" '.$SEL[$i].'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<select name="tervezett-ho"'.$disabled.'>';
+ echo '<option value="">'._HO.'</option>';
+ for ($i = 1; $i < 13; $i++) {
+ if ($ho == $i) $SEL = ' selected="selected"'; else $SEL = '';
+ echo '<option value="'.$i.'" '.$SEL.'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo '<select name="tervezett-nap"'.$disabled.'>';
+ echo '<option value="">'._NAP.'</option>';
+ for ($i = 1;$i < 32; $i++) {
+ if ($nap == $i) $SEL = ' selected="selected"'; else $SEL = '';
+ echo '<option value="'.$i.'" '.$SEL.'>'.$i.'</option>';
+ }
+ echo '</select>';
+
+ echo'</td>';
+ echo '</tr>';
+ echo '</tbody>';
+ echo '</table>';
+ formEnd();
+
+ echo '<table align="center" class="dolgozatAdatok" cellspacing="1">';
+
+ echo '<thead>'."\n";
+ echo '<tr><th>'._TANKOROK.'</th></tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot><tr><td /></tr></tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+
+ // tankör választás
+ echo '<td>'."\n";
+ formBegin();
+ echo '<input type="hidden" name="action" value="dolgozatTankorHozzarendeles" />'."\n";
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />'."\n";
+ echo '<select name="tankorIds[]" multiple="multiple" class="multiple"'.$disabled.'>'."\n";
+ for ($i = 0;$i < count($valaszthatoTankorok); $i++) {
+ if (in_array($valaszthatoTankorok[$i]['tankorId'], $Dolgozat['tankorIds']))
+ echo '<option value="'.$valaszthatoTankorok[$i]['tankorId'].'" selected="selected">';
+ else
+ echo '<option value="'.$valaszthatoTankorok[$i]['tankorId'].'">';
+ echo $valaszthatoTankorok[$i]['tankorNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select><br />'."\n";
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+ formEnd();
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+
+ // -------------- A dolgozat jegyei -------------- //
+
+ if (__NAPLOADMIN || __VEZETOSEG || __TANAR) {
+
+ $colspan = count($Dolgozat['tankor'])*2;
+ formBegin();
+
+ echo '<input type="hidden" name="action" value="dolgozatJegyekTorlese" />'."\n";
+ echo '<input type="hidden" name="dolgozatId" value="'.$Dolgozat['dolgozatId'].'" />'."\n";
+ echo '<table align="center" class="dolgozatJegyek" cellspacing="1">';
+
+ echo '<thead>';
+ echo '<tr>';
+ echo '<th colspan="'.$colspan.'">'._JEGYEK.'</th>';
+ echo '</tr>';
+ echo '<tr>';
+ $maxDiakSzam = 0;
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ if ($maxDiakSzam < ($_count = count($Dolgozat['tankor'][$j]['diakok']['idk'])))
+ $maxDiakSzam = $_count;
+ echo '<th colspan="2">';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$Dolgozat['tankor'][$j]['tankorId']).'">';
+ echo $Dolgozat['tankor'][$j]['tankorNev'];
+ echo '</a>';
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '<tr>';
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ echo '<th>'._NEV.'</th>';
+ echo '<th>'._JEGY.'</th>';
+ }
+ echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+ echo '<tr>';
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ $tankorAdat = $Dolgozat['tankor'][$j];
+ $tankorId = $tankorAdat['tankorId'];
+ echo '<th colspan="2">';
+ echo '<input type="submit" name="tankorId'.$tankorId.'" value="'._TOROL.'" class="confirm" title="'._BIZTOS_TOROLE.'" />'."\n";
+ echo '</th>';
+ }
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+ echo '<tbody>'."\n";
+ for ($i = 1; $i < $maxDiakSzam; $i++) {
+ echo '<tr>'."\n";
+
+ for ($j = 0; $j < count($Dolgozat['tankor']); $j++) {
+ $tankorAdat = $Dolgozat['tankor'][$j];
+ $tankorId = $tankorAdat['tankorId'];
+ if (is_array($Dolgozat['tankor'][$j]['diakok']['nevek'])) {
+ reset($Dolgozat['tankor'][$j]['diakok']['nevek']);
+ for ($d = 0; $d < $i; $d++)
+ list($diakId, $diakAdat) = each($Dolgozat['tankor'][$j]['diakok']['nevek']);
+ $diakNev = $diakAdat['nev'];
+ } else { $diakNev = ''; }
+ echo '<th><a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'">'.$diakNev.'</a></th>'."\n";
+ echo '<td>';
+ if (is_array($tankorAdat['jegyek'][$diakId])) {
+ for ($k = 0; $k < count($tankorAdat['jegyek'][$diakId]);$k++) {
+ $jegy = $tankorAdat['jegyek'][$diakId][$k];
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$jegy['jegyId']);
+ $title = $jegy['dt'].' '.$jegy['megjegyzes'];
+ echo '<a href="'.$href.'" class="jegy'.$jegy['tipus'].'" title="'.$title.'">';
+ echo $Osztalyzatok[$jegy['jegy']]['num'].' ';
+ echo '</a>';
+ }
+ }
+ echo '</td>'."\n";
+
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</tbody>'."\n";
+
+ echo '</table>'."\n";
+ formEnd();
+
+ } // csak admin, tanár és igazgató láthatja az összes jegyet!
+ }
+
+ function putDolgozatBejelento($tankorId) {
+
+ formBegin(array('class'=>'dolgozat'));
+ echo '<input type="hidden" name="action" value="dolgozatBejelentes" />';
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />';
+ echo '<input type="submit" value="'._DOLGOZAT_BEJELENTES.'" />';
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/jegy.phtml b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/jegy.phtml
new file mode 100644
index 00000000..8298bc30
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/jegy.phtml
@@ -0,0 +1,135 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function putJegyInfo($jegy, $Orak, $Dolgozatok) {
+
+ global $Osztalyzatok, $jegyTipusok, $aHetNapjai, $skin;
+ if (_MODOSITHAT) $DIS=''; else $DIS=' disabled="disabled"';
+
+ if ($skin != 'ajax') formBegin(array('action'=>href('index.php?page=naplo&sub=osztalyozo&f=jegy')));
+ echo '<input type="hidden" name="action" value="jegyModositas" />'."\n";
+ echo '<input type="hidden" name="jegyId" value="'.$jegy['jegyId'].'" />'."\n";
+
+ echo '<table align="center" cellspacing="1" cellpadding="0" class="jegyInfo">'."\n";
+
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="2">'._JEGY_ADATAI.'</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<th colspan="2">'."\n";
+ if (_MODOSITHAT) {
+ echo '<input class="onClickUpdate" type="submit" value="'._ROGZIT.'" />'."\n";
+ echo '<input type="submit" name="jegyTorles" class="confirm" value="'._TOROL.'" title="'._BIZTOSE.'" />'."\n";
+ }
+ echo '</th>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<td colspan="2">';
+ echo '<a href="'.str_replace('ajax', '', href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$jegy['diakId'])).'">';
+ echo $jegy['diakNev'];
+ echo '</a>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>';
+ echo '<td colspan="2">'."\n";
+ echo '<a href="'.str_replace('ajax', '', href('index.php?page=naplo&sub=osztalyozo&f=tankor&tankorId='.$jegy['tankorId'])).'">';
+ $tanarLista = '';
+ for ($i = 0; $i < count($jegy['tanár']['idk']); $i++) $tanarLista .= $jegy['tanár'][$i]['tanarNev'].', ';
+ echo $jegy['tankör'][0]['tankorNev'].' ('.substr($tanarLista, 0, -2).')';
+ echo '</a>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>';
+ echo '<tr>';
+ echo '<td colspan="2">'."\n";
+
+ $SEL = array($jegy['jegy'] => ' selected="selected" ');
+ echo '<select name="jegy"'.$DIS.'>'."\n";
+ for ($i = 0; $i < count($Osztalyzatok['értékek']); $i++) {
+ $j = $Osztalyzatok['értékek'][$i];
+ echo '<option value="'.$j.'" '.$SEL[$j].'>'.$Osztalyzatok[$j]['num'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ $SEL = array($jegy['tipus'] => ' selected="selected"');
+ echo '<select name="tipus"'.$DIS.'>'."\n";
+ echo '<option value="0">'.$jegyTipusok[0].'</option>'."\n";
+ if ($jegy['dolgozatId'] == '') {
+ echo '<option value="1"'.$SEL[1].'>'.$jegyTipusok[1].'</option>'."\n";
+ echo '<option value="2"'.$SEL[2].'>'.$jegyTipusok[2].'</option>'."\n";
+ } else {
+ echo '<option value="3"'.$SEL[3].'>'.$jegyTipusok[3].'</option>'."\n";
+ echo '<option value="4"'.$SEL[4].'>'.$jegyTipusok[4].'</option>'."\n";
+ echo '<option value="5"'.$SEL[5].'>'.$jegyTipusok[5].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo ' '.$jegy['dt'].'</td>'."\n";
+ echo '</tr>';
+
+ echo '<tr>'."\n";
+ echo '<th>'._MEGJ.'</th>'."\n";
+ echo '<td>'."\n";
+ echo '<input type="text" name="megjegyzes" value="'.$jegy['megjegyzes'].'" '.$DIS.'/>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+
+ echo '</tbody>'."\n";
+
+ // -------- Óra hozzárendelés -------- //
+
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th>'._ORA.'</th>'."\n";
+ echo '<td>'."\n";
+ $SEL = array($jegy['oraId'] => ' selected="selected"');
+ echo '<select name="oraId"'.$DIS.'>'."\n";
+ echo '<option value="NULL">'._NINCS.'</option>';
+ for ($i = 0;$i < count($Orak); $i++) {
+ echo '<option value="'.$Orak[$i]['oraId'].'" '.$SEL[$Orak[$i]['oraId']].'>';
+ echo $Orak[$i]['dt'].' ('.$aHetNapjai[(date('w',strtotime($Orak[$i]['dt']))+6) % 7 + 1].') '
+ .$Orak[$i]['ora'].'. '._ORA;
+ echo ': '.$Orak[$i]['leiras'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ // -------- Ha dolgozat jegy - a dolgozat adatai -------- //
+
+ if ($jegy['tipus'] > 2) {
+ echo '<tbody>'."\n";
+ echo '<tr>'."\n";
+ echo '<th><a href="'.str_replace('ajax', '', href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$jegy['dolgozatId'])).'">'._DOLGOZAT.'</a></th>'."\n";
+ echo '<td>'."\n";
+ $SEL = array($jegy['dolgozatId'] => ' selected="selected"');
+ echo '<select name="dolgozatId"'.$DIS.'>';
+ for ($i = 0;$i < count($Dolgozatok['dolgozatIds']);$i++) {
+ $dolgozatId = $Dolgozatok['dolgozatIds'][$i];
+ echo '<option value="'.$dolgozatId.'" '.$SEL[$dolgozatId].'>';
+ echo $Dolgozatok[$dolgozatId]['dolgozatNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+
+ }
+ echo '</table>';
+
+ if ($skin != 'ajax') formEnd();
+
+ }
+?>
diff --git a/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/tankor.phtml b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/tankor.phtml
new file mode 100644
index 00000000..7e179003
--- /dev/null
+++ b/mayor-orig/www/skin/pda/module-naplo/html/osztalyozo/tankor.phtml
@@ -0,0 +1,307 @@
+<?php
+/*
+ Module: naplo
+*/
+
+ function putTankorJegyek($tankorId, $Diakok, $Jegyek, $Orak, $Dolgozatok, $sulyozas = __DEFAULT_SULYOZAS, $tolDt = '', $igDt = '', $nevsor) {
+
+ global $aHetNapjai, $Honapok, $Osztalyzatok, $diakId, $tanarId, $osztalyId, $_TANEV;
+ global $bizonyitvanyMegjegyzesek, $tanevIdoszak;
+
+ $aktDt = $kDt = date('Y-m-01',strtotime($tolDt));
+ $vDt = date('Y-m-01',strtotime($igDt));
+
+ $targyId = $Jegyek['tankörök'][$tankorId]['targyId'];
+
+ // A jegybeíráshoz külön oszlop lesz + bizonyítvány 2 oszlop
+// $colSpan = count($_TANEV['szemeszter']);
+$colSpan = 0;
+ while (strtotime($aktDt) <= strtotime($vDt)) {
+ list($ev,$ho,$nap) = explode('-',$aktDt);
+ $HO[] = array(
+ 'év' => $ev,
+ 'hó' => $ho,
+ 'colspan' => 1+count($Jegyek['dolgozatok']['dátum szerint'][$ev][$ho])
+ );
+ $HO['count']++;
+// $colSpan += 1+count($Jegyek['dolgozatok']['dátum szerint'][$ev][$ho]);
+ $aktDt = date('Y-m-01',strtotime('+1 month',strtotime($aktDt)));
+ }
+
+ formBegin(array('name'=>'beir'));
+ echo '<input type="hidden" name="action" value="jegyBeiras" />'."\n";
+ echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="actionId" value="'.substr(uniqid('', true),0,23).'" />'."\n";
+ echo '<input type="hidden" name="tolDt" value="'.$tolDt.'" />'."\n";
+ echo '<input type="hidden" name="igDt" value="'.$igDt.'" />'."\n";
+
+ echo '<table class="osztalyozo" align="center">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+
+ echo '<th class="nev" colspan="'.(4+$colSpan).'">'."\n";
+ echo $Jegyek['tankörök'][$tankorId]['tankorNev'];
+ echo ' ('.implode(', ',$Jegyek['tanárok']['tanarNevek']).')';
+ echo '</th>'."\n";
+ echo '</tr><tr>';
+
+ echo '<th colspan="2" rowspan="2">';
+ $SEL = array($nevsor => ' selected="selected" ');
+ echo '<select name="nevsor" class="onChangeSubmit">';
+ echo '<option value="aktualis"'.$SEL['aktualis'].'>'._AKTUALIS_NEVSOR.'</option>';
+ echo '<option value="teljes"'.$SEL['teljes'].'>'._TELJES_NEVSOR.'</option>';
+ echo '</select>';
+ echo '</th>';
+
+ echo '<td rowspan="2">';
+ echo 'Jegyek';
+ echo '</td>';
+
+ echo '<th rowspan="2">';
+ echo _ATLAG.'<br />';
+// $SEL = array($sulyozas => ' selected="selected"');
+// echo '<select name="sulyozas" class="onChangeSubmit">';
+// echo '<option value="1:1:1:1:1"'.$SEL['1:1:1:1:1'].'>'._EGYSZERU_ATLAG.'</option>';
+// echo '<option value="1:1:1:2:2"'.$SEL['1:1:1:2:2'].'>'._TEMAZAROVAL_SULYOZOTT.'</option>';
+// echo '<option value="1:2:2:4:4"'.$SEL['1:2:2:4:4'].'>'._KISJEGY_TEMAZARO.'</option>';
+// echo '<option value="1:1:2:2:4"'.$SEL['1:1:2:2:4'].'>'.'1:1:2:2:4'.'</option>';
+// echo '</select>';
+ echo '</th>';
+
+ // bizonyítvány
+// echo '<th colspan="'.$colSpan.'">'._BIZONYITVANY.'</th>';
+
+ echo '</tr>';
+// echo '<tr>';
+// foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdat) {
+// echo '<th>'.$szemeszter.'</th>';
+// }
+// echo '</tr>';
+ echo '</thead>';
+
+ echo '<tfoot>';
+
+ echo '<tr>';
+ echo '<th colspan="4">';
+
+ if (__JEGYET_ADHAT) {
+
+ echo '<input type="submit" class="jegy1" name="jegy1" value="'._KIS_JEGY.'" />'."\n";
+ echo '<input type="submit" class="jegy2" name="jegy2" value="'._NORMAL_JEGY.'" />'."\n";
+
+ echo '<select name="dolgozatId" id="did" title="'._VALASSZ_DOLGOZATOT.'">'."\n";
+ echo '<option value="">'._DOLGOZATHOZ_RENDELES.'</option>'."\n";
+ echo '<option value="uj">'._UJ_DOLGOZAT.'</option>'."\n";
+ for ($i = 0; $i < count($Dolgozatok['dolgozatIds']); $i++) {
+ $dolgozatId = $Dolgozatok['dolgozatIds'][$i];
+ // $Dolgozatok[$dolgozatId] ===>>> megjegyzés|bejelentés|tervezett|tankör(array)[]['leírás'|'cn']
+ echo '<option value="'.$dolgozatId.'">'.$Dolgozatok[$dolgozatId]['dolgozatNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+
+ echo '<input type="submit" class="jegy3 check" name="jegy3" value="'._DOLGOZAT.'" />'."\n";
+ echo '<input type="submit" class="jegy4 check" name="jegy4" value="'._TEMAZARO.'" />'."\n";
+ echo '<input type="submit" class="jegy5 check" name="jegy5" value="'._VIZSGAJEGY.'" />'."\n";
+
+ echo '<select name="oraId">'."\n";
+ echo '<option value="">'._ORAHOZ_RENDELES.'</option>'."\n";
+ for ($i = 0; $i < count($Orak); $i++) {
+ $napNev = $aHetNapjai[(date('w',strtotime($Orak[$i]['dt']))+6)%7];
+ echo '<option value="'.$Orak[$i]['oraId'].'">'.$Orak[$i]['dt']." ($napNev) ".$Orak[$i]['ora'].'. '._ORA.'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+ echo '</th>';
+ echo '</tr>';
+
+ echo '</tfoot>';
+
+ // ---------- Tanulónként a jegyek ------------- //
+
+ echo '<tbody>';
+
+ if (is_array($Diakok['nevek'])) foreach ($Diakok['nevek'] as $diakId => $DIAKADAT) {
+ $_BIZONYITVANY = $Jegyek[$diakId]['bizonyitvany'];
+ $diakKovetelmeny = $Diakok['adatok'][$diakId][count($Diakok['adatok'][$diakId])-1]['kovetelmeny'];
+
+ echo '<tr>';
+
+ echo '<th '.((!__JEGYET_ADHAT) ? 'colspan="2"':'').'>';
+ echo '<a href="'.href('index.php?page=naplo&sub=osztalyozo&f=diak&diakId='.$diakId).'">';
+ echo $DIAKADAT['nev'];
+ echo '</a>';
+ echo '</th>';
+ if (__JEGYET_ADHAT) if ($diakKovetelmeny == 'jegy') {
+ echo '<th>';
+ echo '<select name="jegy[]" tabindex="'.($i+1).'">';
+ echo '<option value="">-</option>';
+ for ($o=0;$o<count($Osztalyzatok['értékek']);$o++) {
+ $_osztalyzat = $Osztalyzatok['értékek'][$o];
+ echo '<option value="'.$diakId.'/'.$_osztalyzat.'">'.$Osztalyzatok[$_osztalyzat]['num'].'</option>';
+ }
+ echo '</select>'."\n";
+ echo '</th>'."\n";
+ } else {
+ echo '<th></th>'."\n";
+ }
+ // Hónaponként végigmenve
+ echo '<td class="jegyek">';
+
+ for ($j = 0; $j < $HO['count']; $j++) {
+
+ $_ho = $HO[$j]['hó'];
+ $_ev = $HO[$j]['év'];
+ $_JEGYEK = $Jegyek[$diakId][$_ev][$_ho]['jegyek'];
+ $_DOGA = $Jegyek[$diakId][$_ev][$_ho]['dolgozat'];
+
+// echo '<td class="jegyek">';
+ for ($k = 0; $k < count($_JEGYEK); $k++) {
+ $title = '';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$_JEGYEK[$k]['jegyId']);
+ if ($_JEGYEK[$k]['tankorId'] == $tankorId) $class = 'jegy'.$_JEGYEK[$k]['tipus'];
+ else $class = 'jegy'.$_JEGYEK[$k]['tipus'].'mase';
+ $title .= str_replace('-', '.', $_JEGYEK[$k]['dt'])
+ . ' - '.$Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tankorNev']
+ . ' (';
+ for ($t = 0; $t < count($Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tanárok']); $t++) {
+ $title .= $Jegyek['tankörök'][$_JEGYEK[$k]['tankorId']]['tanárok'][$t]['tanarNev'] . ', ';
+ }
+ $title = substr($title,0,-2) . ') ' . $_JEGYEK[$k]['megjegyzes'];
+ echo '<a title="'.$title.'" href="'.$href.'" class="'.$class.'">';
+ echo $Osztalyzatok[$_JEGYEK[$k]['jegy']]['num'] .' ';
+ echo '</a>';
+ }
+// echo '</td>';
+
+ for ($k = 0; $k < count($Jegyek['dolgozatok']['dátum szerint'][$_ev][$_ho]); $k++) {
+ $did = $Jegyek['dolgozatok']['dátum szerint'][$_ev][$_ho][$k];
+// if (in_array($tankorId, $Jegyek['dolgozatok'][$did]['tankorIds'])) echo '<td class="dolgozat">';
+// else echo '<td class="dolgozatMase">';
+ for ($l = 0; $l < count($_DOGA[$did]); $l++) {
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=jegy&jegyId='.$_DOGA[$did][$l]['jegyId']);
+ if ($_DOGA[$did][$l]['tankorId'] == $tankorId) $class = 'jegy'.$_DOGA[$did][$l]['tipus'];
+ else $class = 'jegy'.$_DOGA[$did][$l]['tipus'].'mase';
+ $title = str_replace('-', '.', $_DOGA[$did][$l]['dt'])
+ . ' - '.$Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tankorNev']
+ . ' (';
+ for ($t = 0; $t < count($Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tanárok']); $t++) {
+ $title .= $Jegyek['tankörök'][$_DOGA[$did][$l]['tankorId']]['tanárok'][$t]['tanarNev'] . ', ';
+ }
+ $title = substr($title,0,-2) . ') ' . $_DOGA[$did][$l]['megjegyzes'];
+ echo '<a title="'.$title.'" href="'.$href.'" class="'.$class.'">';
+ echo $Osztalyzatok[$_DOGA[$did][$l]['jegy']]['num'];
+ echo ' </a>';
+ }
+// echo '</td>';
+ }
+
+ }
+ echo '</td>';
+
+ if ($Jegyek[$diakId]['átlag'] != 0) {
+ $atlag = number_format($Jegyek[$diakId]['átlag'],2,',','');
+ $class = 'atlag';
+ } else {
+ $atlag = '';
+ $class = '';
+ }
+ echo '<th class="'.$class.'">'.$atlag.'</th>';
+
+/*
+ //Bizonyítvány ($_BIZONYITVANY[1][matematika tanóra])
+ $oszlopSzam = 0;
+ foreach ($_TANEV['szemeszter'] as $szemeszter => $szAdatok) {
+ $oszlopSzam++;
+ echo '<td class="biz">';
+ if (
+ __JEGYET_ADHAT
+ && $diakKovetelmeny != 'aláírás'
+ && (__NAPLOADMIN || count($tanevIdoszak[$szemeszter]['zárás']) > 0) // a szemeszter zárási időszakában vagyunk
+ ) {
+ putJegySelect($diakId, 'zaroJegy', 'bizonyítvány',
+ $_BIZONYITVANY[$szemeszter]['jegy'],
+ $_BIZONYITVANY[$szemeszter]['megjegyzes'],
+ $szemeszter,
+ ($i+$oszlopSzam*count($Diakok['idk'])));
+ } else {
+ echo $Osztalyzatok[$_BIZONYITVANY[$szemeszter]['jegy'].'.0']['txt'];
+ echo ' '.$bizonyitvanyMegjegyzesek[$_BIZONYITVANY[$szemeszter]['megjegyzes']];
+ }
+ echo '</td>'."\n";
+ }
+*/
+ echo '</tr>';
+
+ }
+
+/*
+ // Dolgozat átlagok
+ echo '<tr>';
+ echo '<th colspan="'.($_colSpan+1).'" class="dolgozat">'._ATLAG.'</th>';
+ for ($j = 0; $j < $HO['count']; $j++) {
+
+ $_ho = $HO[$j]['hó'];
+ $_ev = $HO[$j]['év'];
+
+ // Normál jegyek alatt...
+ echo '<th></th>';
+ for ($k=0;$k<count($Jegyek['dolgozatok']['dátum szerint'][$_ev][$_ho]);$k++) {
+ echo '<th class="atlag">';
+ $did = $Jegyek['dolgozatok']['dátum szerint'][$_ev][$_ho][$k];
+ echo number_format($Jegyek['dolgozatok'][$did]['átlag'],2,',','');
+ echo '</th>';
+ }
+
+ }
+ echo '<th class="dolgozat">'._ATLAG.'</th>';
+
+ // Félévi átlagok
+ echo '<th class="atlag" colspan="2">';
+ if (__JEGYET_ADHAT) echo '<input type="submit" class="felev" name="bizBeiroGomb" value="'._BEIR.'" />';
+ echo '</th>';
+
+ echo '</tr>';
+*/
+ echo '</tbody>';
+
+ echo '</table>';
+ formEnd();
+
+ }
+
+ function putJegySelect($diakId, $var, $tipus, $jegy, $megj, $felev, $tabindex = '') {
+
+ global $Osztalyzatok;
+
+ $jegy .= '.0';
+ // melyik típushoz melyik megjelenési forma tartozik.
+ $txt = array(
+ 'osztályzatok' => 'num',
+ 'bizonyítvány'=> 'txt',
+ 'magatartás' => 'magatartás',
+ 'szorgalom' => 'szorgalom'
+ );
+ if ($tabindex != '') $tabindex_str = 'tabindex="'.$tabindex.'" '; else $tabindex_str = '';
+
+ echo "\n".'<select name="'.$var.'[]" '.$tabindex_str.'>';
+ echo '<option value="'.$diakId.'/'.'/'.'/'.$felev.'">-</option>'."\n";
+ for ($o = 0; $o < count($Osztalyzatok[$tipus]); $o++) {
+ $_osztalyzat = $Osztalyzatok[$tipus][$o];
+ $_SEL = ($_osztalyzat == $jegy) ? 'selected="selected"':'';
+ $_ertek = $diakId.'/'.$_osztalyzat;
+ echo '<option value="'.$_ertek.'/'.'/'.$felev.'" '.$_SEL.'>'.$_osztalyzat[0].' '.$Osztalyzatok[$_osztalyzat][$txt[$tipus]].'</option>'."\n";
+ if ($tipus == 'bizonyítvány' && isset($Osztalyzatok[$_osztalyzat]['megjegyzés'])) {
+ $__megj = $Osztalyzatok[$_osztalyzat]['megjegyzés'];
+ $__megj_str = $Osztalyzatok['megjegyzések'][$__megj];
+ $_SEL = ($_osztalyzat == $jegy && $__megj == $megj) ? 'selected="selected"':'';
+ echo '<option value="'.$_ertek.'/'.$__megj.'/'.$felev.'" '.$_SEL.'>'.$_osztalyzat[0].' '.
+ $__megj_str.' '.$Osztalyzatok[$_osztalyzat][$txt[$tipus]].'</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+ }
+
+?>
diff --git a/mayor-orig/www/skin/rpc/base/html/alert.phtml b/mayor-orig/www/skin/rpc/base/html/alert.phtml
new file mode 100644
index 00000000..adda7354
--- /dev/null
+++ b/mayor-orig/www/skin/rpc/base/html/alert.phtml
@@ -0,0 +1,56 @@
+<?php
+
+ function html_alert() {
+
+ /* TODO hibakezelés info */
+
+ global $ALERT_MSG;
+
+ if (!isset($_SESSION['alert']) || (is_array($_SESSION['alert']) && count($_SESSION['alert'])==0)) {
+ return true;
+ exit;
+ }
+/*
+ $showPage = true;
+ for ($j = 0; $j < count($_SESSION['alert']); $j++) {
+
+ // Nincs mindig paraméter - ezért a $param nem kap értéket! - így az explode Notice üzenetet váltana ki...
+ $param = array();
+ $tmp = explode(':', $_SESSION['alert'][$j]);
+ $aType = readVariable($tmp[0], 'enum', 'message', array('message','info','page')); $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = htmlspecialchars($tmp[$p]);
+ $pstr = '';
+ // preparing $msg
+ if (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '')
+ $msg = $ALERT_MSG['default'].' (<span class="alertParam">'.$aType.':'.$aCode.')</span>';
+ else $msg = $ALERT_MSG[$aCode];
+
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",'<span class="alertParam">'.($param[$i]).'</span>',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= '<span class="alertParam">'.($param[$i]).'</span>,';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ }
+ $msg = '<span>'.$title.':</span> ' . $msg;
+ if (isset($_GET['showAlert'])) echo '<div class="'.$class.'">'.$msg.'</div>'."\n";
+ }
+
+ return $showPage;
+*/
+
+ echo 'ERROR';
+ var_dump($_SESSION['alert']);
+ return false;
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/rpc/base/html/base.phtml b/mayor-orig/www/skin/rpc/base/html/base.phtml
new file mode 100644
index 00000000..49a2ce14
--- /dev/null
+++ b/mayor-orig/www/skin/rpc/base/html/base.phtml
@@ -0,0 +1,23 @@
+<?php
+
+ // http_base
+ function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+ @header("Content-Type: text/html; charset=utf-8");
+ @header("Last-Modified: Mon, 20 Oct 2003 01:01:01 GMT");
+ @header("Cache-Control: no-store, no-cache, must-revalidate");
+ @header("Cache-Control: post-check=0, pre-check=0", false);
+ @header("Pragma: no-cache");
+ define('_UNIQUE', uniqid());
+ // page($page,$sub,$f,$lang,$skin,$policy);
+ global $RPC;
+ if (isset($RPC))
+ $RPC->sendResponse();
+ }
+
+ //function putResponse($DATA) {
+ // echo json_encode($DATA);
+ //}
+ // function formBegin($SET=array('method'=>'post','action'=>''),$SET2=array('print'=>true)) { }
+ // function formEnd($SET2=array('print'=>true)) { }
+
+?>
diff --git a/mayor-orig/www/skin/rpc/module-naplo/html/base.phtml b/mayor-orig/www/skin/rpc/module-naplo/html/base.phtml
new file mode 100644
index 00000000..e3208ad5
--- /dev/null
+++ b/mayor-orig/www/skin/rpc/module-naplo/html/base.phtml
@@ -0,0 +1,6 @@
+<?php
+
+ // Placeholder
+ // nincs szükségünk a napló modul phtml-jére
+
+?>
diff --git a/mayor-orig/www/skin/sulix/base/css/base.css b/mayor-orig/www/skin/sulix/base/css/base.css
new file mode 100644
index 00000000..fbffc38f
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/css/base.css
@@ -0,0 +1,268 @@
+/* @override https://sy.ulx.hu:1743/sulixnaplo/skin/sulix/base/css/base.css?ver=2719 */
+
+/*
+ Module: base
+*/
+@media screen {
+
+ html body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin:0px; padding:0px; }
+
+ a { text-decoration:none; }
+
+ div.errorMsg { margin: 20px 20%; background: #fee; border: solid 1px red; border-radius: 2px; padding: 15px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.errorMsg span { font-weight: bold; color: #f00; }
+ div.infoMsg { margin: 20px 20%; background-color: #eef; border: groove 1px #0000ff; border-radius: 2px; padding: 15px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.infoMsg span { font-weight: bold; color: #00a; }
+ div.errorMsg span.alertParam, div.infoMsg span.alertParam { font-weight: normal; font-style: italic; color: green; }
+
+ #logo { position: absolute; top: 0;
+ left: 5px;
+}
+
+ #head { position: absolute; width: 100%; height: 60px; background: #3496B9 url(../img/powered_by_mayor_small.png) no-repeat right center; }
+/*
+ #egyeb { float: right; padding: 23px 20px; margin-right: 100px; text-align: right; }
+ #egyeb span { color: white; cursor: pointer; background: #3facc7; padding: 23px 20px; }
+ #settings { display: none; width: 100px;
+ margin-top: 5px; position:relative; right: 0px;
+ background: #f496b9;
+ }
+ #egyeb:hover #settings { display: block; }
+ #settings table { width: 100%; background: #3facc7; margin-top: 23px; border-spacing: 1px;}
+ #settings td { width: 100%; text-align: left; padding-left: 10px; border-bottom: solid 1px #ffacc7; background: #3496B9; }
+ #settings td:last-child { border-bottom: none; }
+ #settings td a {
+ display: inline-block; width: 100%;
+ padding: 2px 0px 2px 0px;
+ text-align: left; text-decoration: none;
+ color: white;
+ }
+ #settings td a:hover { }
+*/
+
+
+ #nav, #nav ul { list-style: none; }
+ #nav { margin: 0; height: 60px; padding-left: 180px; }
+ #nav li { position: relative; }
+
+ #nav > li { float: left; z-index: 20; min-width: 100px; text-align: center; padding: 20px; height: 20px; background: #47c980; }
+ #nav > li:hover { z-index: 22; }
+ #nav > li > ul { top: 50px; left: -1px; /* background: #1A4B5C; */}
+ #nav > li > ul > li > a { margin-left: 10px; }
+
+ #nav li:hover { background: #4fbcd7; }
+ #nav li.active { background: #3facc7; }
+ #nav li a { display: block; padding: 3px 8px; color: white; }
+ #nav li a:hover { color:#fdb933; }
+ #nav li:hover > ul, #nav li.over ul { display: block; }
+#nav > li.active { padding-right: 0; padding-left: 0; width: 140px; }
+#nav > li > a { padding: 23px 8px; position: relative; top: -20px; }
+ #nav li.nav1szin { background: #3496B9; }
+ #nav ul.sub { background: #3facc7; }
+
+
+ #nav ul { display: none; position: absolute; width: 160px; padding: 0px; }
+ #nav ul span { float: left; margin: 6px 5px; color: white; }
+ #nav ul > li { background: #3496B9; }
+ #nav ul li { text-align: left; margin-bottom: 1px; }
+ #nav ul li a { padding: 6px 10px; }
+ #nav ul li.active > a { color:#fdb933; }
+
+ #nav ul ul { top: 0px; left: -145px; z-index: 30; background: #3facc7; background: #3496B9}
+ #nav ul ul a { background: #3facc7; }
+ #nav ul ul a:hover { background: #4fbcd7; }
+
+ #nav li.start {
+ height: 20px; min-width: 0; padding-right: 0px; padding-left: 6px;
+ background: #D2DFE9; border-right: 4px solid #D2DFE9; border-radius: 0px 30px 30px 0px;
+ }
+
+ #poz { list-style: none; background-color: rgb(230,230,230); margin: 0; height: 20px; border-bottom: #f3f3f3 solid 5px; }
+ #poz > li { float: right; padding: 2px; width: auto; }
+
+ #nav1 { z-index: 4; position: absolute; margin-left: 330px; margin-right: 10px; background: rgba(52,150,185,0.6); }
+ #nav1 div a { padding: 22px 8px 23px 8px; display: inline-block; text-decoration: none; color: #fff; background: #3496B9; margin-top: 1px; }
+
+ #nav1 div a:hover { color: #fdb933; /*background: #5FCCE7; */}
+ #nav1 div a.aktiv { color:#fdb933; /*background: #4FBCD7; */}
+
+ #nav2 { width: 120px; position: absolute; margin: 0; height: 100%;
+ background: -webkit-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: -moz-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ }
+ #nav2 ul { margin: 0; padding: 0; list-style: none; }
+ #nav2 ul li { border-bottom: solid 1px rgba(100,100,100,0.4); }
+ #nav2 ul li a { display: block; color: black; font-size: 11px; background: #D2DFE9; padding: 6px 6px; text-decoration: none; }
+ #nav2 ul li a.aktiv { color: #175970; color: #ee7f00; font-size: 12px; }
+ #nav2 ul li a:hover { color: white; background: #9abcd8; }
+
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow {background-color: white; position: absolute;z-index:200;margin:auto auto; width:400px;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 300px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ div.mayorbody { margin-left: 121px; }
+/*
+ #logo, #head, #nav1, #nav2, #nav, #poz { position: fixed; }
+ #head { top: 0; left: 0; }
+ #nav { top: 0; left: 0; }
+ #nav1 { top: 0; }
+ #poz { top: 60px; width: 100%; }
+ #nav2 { top: 85px; }
+ div.mayorbody { margin-top: 85px; }
+ #nav2 { top: 60px; }
+ div.mayorbody { margin-top: 60px; }
+ */
+
+ #mayorErrorSmall.mayorErrorSmallInfo {
+border-bottom: solid 4px rgb(106,128,250);
+padding:4px; height:100%; width:100%;
+background-color:rgba(250,250,250,0.9);
+ }
+
+ #mayorErrorSmall.mayorErrorSmallError {
+border-bottom: solid 4px red;
+padding:4px; height:100%; width:100%;
+background-color:rgba(250,250,250,0.9);
+ }
+
+}
+
+form {
+ background-color: #eeeeee !important;
+ color: black !important;
+}
+
+form.hiba {
+ background-color: #eeeeee !important;
+ color: black !important;
+}
+
+form.kepzes {
+ background-color: #eeeeee !important;
+ color: black !important;
+}
+
+form.tanar {
+ background-color: #eeeeee !important;
+ color: black !important;
+}
+
+form.terem {
+ background-color: #eeeeee !important;
+ color: black !important;
+}
+
+table.toolBar form {
+ background: #3496b9 !important;
+}
+
+form h2 {
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form h3 {
+ color: black !important;
+ font-size: 14px !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+}
+
+#mayorbody table th
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form.terem h1
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form.hiba h1
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form.export h1
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form.osztalyForm h1
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form.tanar h1
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form.updateTable h1
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+form.kepzes h1
+{
+ background: #d2d2d2 !important;
+ font-weight: normal !important;
+ font-style: normal !important;
+ font-size: 16px !important;
+ color: black !important;
+}
+
+#mayorbody .toolBar th
+{color: white !important;
+background: #3496b9 !important;
+font-size: 10px !important;}
+
+
+
+ form.hiba input
+ form.hiba select
+ {
+ margin:2px 10px;
+ background-color: white;
+ border: solid 1px rgb(120,220,240);
+ padding:0px 10px;
+ color: black;
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/sulix/base/html/base.phtml b/mayor-orig/www/skin/sulix/base/html/base.phtml
new file mode 100644
index 00000000..5848a7b7
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/html/base.phtml
@@ -0,0 +1,332 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpheader();
+ if ($MENU['set'][$policy][$page][$sub][$f]['refresh'] > 0) {
+ @header("Refresh:".intval($MENU['set'][$policy][$page][$sub][$f]['refresh']));
+ }
+
+ html_head($page,$sub,$f,$lang,$skin);
+ _debugLayer();
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '<div id="mayorerror"></div>';
+ echo '<div class="mayorbody" id="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<title>';
+// if (_SULIX_DESIGN !== true) {
+// if (defined('_SITE')) echo ' - '._SITE.' - ';
+// echo _MAIN_TITLE;
+// echo '.';
+// echo _MAYORREV;
+// } else {
+ echo _SITE;
+// }
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if ($SSSHH!=null && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+// if (_SULIX_DESIGN !== true) echo '<link rel="shortcut icon" href="/skin/sulix/base/img/favicon.ico" />'."\n";
+// else
+ echo '<link type="image/x-ico" rel="icon" href="/sulixlearning/theme/image.php?theme=leatherbound&image=favicon&rev=171&component=theme">';
+ echo "</head>\n<body>\n";
+
+}
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $policy, $page, $sub, $f, $LANGUAGES, $SKINSSHOW;
+
+ echo '<ul id="nav" class="hideShowContainer">'."\n";
+
+ if (is_array($MENU)) {
+ foreach ($MENU as $aModule => $pItems) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($pItems); $i++) {
+ if ($page == $aModule and
+ ((!isset($pItems[$i]['url'])) || strpos($_SERVER["REQUEST_URI"],$pItems[$i]['url']) !== false)
+ ) {
+// if (_SULIX_DESIGN === true)
+ echo '<li class="active">';
+// else echo '<li class="active nav1szin">';
+ } else {
+ echo '<li style="display: none;" class="openable">';
+ }
+ if (isset($pItems[$i]['url']) && $pItems[$i]['url'] != '') {
+ if ($pItems[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$pItems[$i]['url']);
+ elseif (substr($pItems[$i]['url'],0,4) == 'http') $href = href($pItems[$i]['url'], array());
+ elseif (isset($pItems[$i]['get']) && is_array($pItems[$i]['get'])) $href = href($pItems[$i]['url'], $pItems[$i]['get']);
+ else $href = href($pItems[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($pItems[$i]['target']))?' target="'.$pItems[$i]['target'].'" ':'').'>'
+ .$pItems[$i]['txt']
+ .'</a>'."\n";
+ // --- sub ---
+
+ @$pageArray = $MENU['modules'][$aModule];
+
+ if (is_array($pageArray) && count($pageArray)>0) {
+ echo '<ul class="sub">'."\n";
+ foreach ($pageArray as $aSub => $sItems) {
+ if ($aSub != 'sub') {
+ for ($j=0;$j<count($sItems);$j++) {
+ if (
+ $page == $aModule and
+ (
+ (!isset($sItems[$j]['url']) && $f == $aSub)
+ || (isset($sItems[$j]['url']) && strpos($_SERVER["REQUEST_URI"],$sItems[$j]['url']) !== false)
+ )
+ ) {
+ echo '<li class="active">'; $activeSub = true;
+ } else {
+ echo '<li>'; $activeSub = false;
+ }
+ if (isset($sItems[$j]['url']) && $sItems[$j]['url'] != '') {
+ if ($sItems[$j]['url'][0] == '&') $href = href("index.php?page=$aModule&f=$aSub".$sItems[$j]['url']);
+ elseif (substr($sItems[$j]['url'],0,4) == 'http') $href = href($sItems[$j]['url'], array());
+ elseif (isset($sItems[$j]['get']) && is_array($sItems[$j]['get'])) $href = href($sItems[$j]['url'], $sItems[$j]['get']);
+ else $href = href($sItems[$j]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&f=$aSub",array('policy','sessionID','lang','skin'));
+ }
+ @$subArray = $MENU['modules'][$aModule]['sub'][$aSub];
+ if (!is_array($subArray) || count($subArray) == 0) {
+ echo '<a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ } else { // vannak al-al menúk (f - menü)
+ echo '<span>&laquo;</span><a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ // -- f menü --
+ echo '<ul class="fmenu">'."\n";
+
+ foreach ($subArray as $anF => $items) {
+ for ($k=0;$k<count($items);$k++) {
+ if ($aModule == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$k]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$k]['url']) !== false)
+ ) { echo '<li class="active">'."\n"; }
+ else { echo '<li>'."\n"; }
+
+ if (isset($items[$k]['url']) && $items[$k]['url'] != '') {
+ if ($items[$k]['url'][0] == '&') $href = href("index.php?page=$aModule&sub=$aSub&f=$anF".$items[$k]['url']);
+ elseif (substr($items[$k]['url'],0,4) == 'http') $href = href($items[$k]['url'], array());
+ elseif (isset($items[$k]['get']) && is_array($items[$k]['get'])) $href = href($items[$k]['url'], $items[$k]['get']);
+ else $href = href($items[$k]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$k]['target']))?' target="'.$items[$k]['target'].'" ':'').'> '
+ .$items[$k]['txt'].' </a>'."\n";
+
+ echo '</li>'."\n"; // al-al menüpont vége (f)
+ } // for - on items
+ } // foreach - on subArray
+
+ echo '</ul>'."\n"; // fmenu
+ } // vannak al-al menük (f -menü)
+
+ echo '</li>'."\n"; // almenü-pont vége (sub)
+ } // for - on sItems
+ } // ha nem sub == aSub
+ } // foreach pageArray
+ echo '</ul>'."\n"; // submenu
+ } // vannak almenük (sub)
+ echo '</li>'."\n"; // menüpont vége (page)
+ } // for - on pItems
+ } // ha aModule != 'modules'
+ } // foreach on MENU
+ }
+// if (_SULIX_DESIGN !== true) echo '<li class="start onClickHideShow">&nbsp</li>';
+ echo '</ul>'."\n";
+
+ // ------------------------
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy, $SCHOOL_LOGO, $SCHOOL_IDENTITY, $SCHOOL_URL, $NAV;
+
+ _updateWindow();
+
+ //if (date('m')==12) $imgextra = '-santa'; else $imgextra = '';
+
+// if (defined('_HOME_LOGO') && file_exists(_HOME_LOGO)) $HOME_LOGO=_HOME_LOGO;
+// else
+ if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+
+echo '<div id="head">';
+/* ---
+ if ($policy == 'parent') {
+ echo '<div id="egyeb" class="hideShowContainer"><span class="onClickHideShow">Egyéb</span>';
+ echo '<div id="settings" class="openable" style="">';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?policy=public&page=session&f=logout', array('sessionID','skin','lang')).'">'._LOGOUT.'</a></td>';
+ echo '</tr><tr>';
+ echo '<td><a href="'.href('index.php?policy=public&page=password&f=changeMyPassword&userAccount='._USERACCOUNT.'&toPolicy=parent',array('sessionID','skin','lang')).'">'._PASSWORD.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ echo '</div>';
+ echo '</div>';
+ }
+/* --- */
+echo '</div>';
+
+ echo "<!--// NAV1 start //-->\n";
+ echo '<div id="nav1">';
+ echo '<div>';
+
+ if (is_array($NAV[1])) foreach ($NAV[1] as $N1) {
+ $txt = '';
+ $i = intval($N1['index']);
+ if (isset($N1['sub'])) {
+ if (!isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N1['page'] ]['sub'][ $N1['sub'] ][ $N1['f'] ][ $i ];
+ }
+ } elseif (isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N1['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f']);
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="aktiv" '; else $class = '';
+ if ($txt != '') { // Hibás hivatkozás ne rontsa el a menüt!
+ echo '<a href="'.$href.'"'.$class.'>';
+ echo $txt;
+ echo '</a>';
+ }
+ }
+
+ echo '</div>';
+ echo '</div>'."\n<!--// NAV1 end //-->\n";
+
+
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+// if (_SULIX_DESIGN !== true) echo '<a href="'.href('index.php').'"><img src="'.$HOME_LOGO.'" alt="MaYoR" id="logo" /></a>';
+// else
+ echo '<img src="'.$HOME_LOGO.'" alt="MaYoR" id="logo" />';
+
+
+ echo "<!--// NAV2 start //-->\n";
+ echo '<div id="nav2">';
+ if (is_array($NAV[2])) {
+ echo '<ul>';
+ foreach ($NAV[2] as $N2) {
+ $txt = '';
+ $i = intval($N2['index']);
+ if (isset($N2['sub'])) {
+ if (!isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N2['page'] ]['sub'][ $N2['sub'] ][ $N2['f'] ][ $i ];
+ }
+ } elseif (isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N2['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f']);
+
+ if ($page == $N2['page'] && $sub == $N2['sub'] && (!isset($N2['f']) || $f == $N2['f'])) $class = ' class="aktiv" '; else $class = '';
+ if ($txt != '') {
+ echo '<li>';
+ echo '<a href="'.$href.'"'.$class.'>';
+ echo $txt;
+ echo '</a>';
+ echo '</li>';
+ }
+ }
+ echo '</ul>';
+ }
+ echo '</div>'."\n<!--// NAV2 end //-->\n";
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ //echo '<div class="mayorfoot" id="mayorfoot">'._MAIN_FOOTER.'</div>'."\n\n";
+ echo "</body>\n</html>";
+}
+
+
+?>
diff --git a/mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_140x26.png b/mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_140x26.png
new file mode 100644
index 00000000..3816f6de
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_140x26.png
Binary files differ
diff --git a/mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_66x28.png b/mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_66x28.png
new file mode 100644
index 00000000..524d0a83
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/img/bejelentkezes_gomb_66x28.png
Binary files differ
diff --git a/mayor-orig/www/skin/sulix/base/img/favicon.ico b/mayor-orig/www/skin/sulix/base/img/favicon.ico
new file mode 100644
index 00000000..5c819e56
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/img/favicon.ico
Binary files differ
diff --git a/mayor-orig/www/skin/sulix/base/img/fur.png b/mayor-orig/www/skin/sulix/base/img/fur.png
new file mode 100644
index 00000000..f537e6da
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/img/fur.png
Binary files differ
diff --git a/mayor-orig/www/skin/sulix/base/img/mayor_small_ssl.png b/mayor-orig/www/skin/sulix/base/img/mayor_small_ssl.png
new file mode 100644
index 00000000..44e007cb
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/img/mayor_small_ssl.png
Binary files differ
diff --git a/mayor-orig/www/skin/sulix/base/img/powered_by_mayor.png b/mayor-orig/www/skin/sulix/base/img/powered_by_mayor.png
new file mode 100644
index 00000000..0f88bfc3
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/img/powered_by_mayor.png
Binary files differ
diff --git a/mayor-orig/www/skin/sulix/base/img/powered_by_mayor_small.png b/mayor-orig/www/skin/sulix/base/img/powered_by_mayor_small.png
new file mode 100644
index 00000000..aa65a706
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/base/img/powered_by_mayor_small.png
Binary files differ
diff --git a/mayor-orig/www/skin/sulix/module-auth/css/login.css b/mayor-orig/www/skin/sulix/module-auth/css/login.css
new file mode 100644
index 00000000..66d76da9
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/module-auth/css/login.css
@@ -0,0 +1,89 @@
+@media screen {
+
+#logo, #head, #nav, #nav1, #nav2 { display: none; }
+div.mayorbody { margin: 0; padding: 8px; }
+#header img { height: 40px; position: relative; top: 5px; left: 25px; }
+#header { width: 100%; background: #1A4B5C; height: 50px; }
+body { background: #bfbfbf;}
+form { width: 960px; margin-left: auto; margin-right: auto; }
+div#body {
+ width: 100%; height: 470px; padding-top: 70px;
+ background-color: #3497B9;
+ background-attachment: inherit;
+ background-image: url('../../base/img/fur.png');
+ background-repeat: no-repeat;
+ background-position: bottom right;
+}
+table.loginablak { width: 160px; width: 180px; /*height: 178px;*/ background: #1A4B5C; border: #1A4B5C 8px solid; border-radius: 8px;}
+table.loginablak thead td { color: #F49430; font-weight: bold; font-size: 15px; font-family: sans-serif; text-align: center; padding-top: 5px; padding-bottom: 5px;}
+table.loginablak tbody td { height: 26px; padding-top: 15px; text-align: center; }
+table.loginablak div.input {
+ margin-left: auto; margin-right: auto;
+ width: 140px; height: 26px;
+ background-image: url(../../base/img/bejelentkezes_gomb_140x26.png);
+ background-origin: padding-box;
+ background-position: 50% 100%;
+ background-repeat: no-repeat;
+}
+table.loginablak input[type=text], table.loginablak input[type=password] {
+ background-color: transparent; border: none; color: #767676;
+ font-family: sans-serif; font-size: 10px; font-weight: 10px; height: 26px; width: 140px;
+ /*outline-color: #3C3B37; outline-width: 5px; outline-style: auto; */ padding: 1px 10px;
+}
+table.loginablak tfoot td { text-align: right; padding: 25px 0px 25px 0px;
+}
+table.loginablak tfoot select { float: left; background-color: transparent; color: white; border: 1px solid rgba(255,255,255,0.2); /*display: none; */}
+table.loginablak tfoot select option { background-color: #1a4b5c; }
+table.loginablak tfoot input[type=submit] {
+font-weight: bold; font-family: sans-serif; font-size: 10px;
+padding: 1px 6px 3px 6px;
+width: 66px; height: 28px;
+background-attachment: scroll;
+background-clip: border-box;
+background-color: transparent;
+background-image: url(../../base/img/bejelentkezes_gomb_66x28.png);
+background-origin: padding-box;
+background-position: 50% 100%;
+background-repeat: no-repeat;
+border: none;
+}
+
+/*
+div.mayorbody img { border-width: 0px; }
+div.mayorbody h1 {text-align: center; margin: 10px; font-size:20px; }
+div.mayorbody h2 {text-align: center; margin: 10px; font-size: 15px; }
+div.mayorbody table { font-size: 12px; }
+div.mayorbody table.main {width: 100%; border-width: 0px;}
+div.mayorbody table.loginablak {
+ background-color: #ffffff;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #555550;
+ width:400px}
+div.mayorbody td { padding: 2px }
+div.mayorbody form { margin: 30px;padding: 0px; }
+div.mayorbody input { font-size: 12px; font-family:Verdana,Arial; background-color: #fffff0; border: solid 1px #666690;}
+div.mayorbody select.pp { padding: 0px; margin: 0px; border: none 0px #778890; font-size: 12px; background-color: #eeeee0; font-family: Verdana,Arial; }
+div.mayorbody select.pp>option { border: none 0px black; }
+div.mayorbody input.submit { border: solid 1px #776650; }
+div.mayorbody table.loginablak thead td {
+ background-color: #666690;
+ text-align: center;
+ font-family: Verdana,arial;
+ font-size: 10pt;
+ font-weight: bold;
+ color: white;
+ border-bottom: solid 1px white;
+div.mayorbody }
+div.mayorbody table.loginablak tbody tr.top td { border-top: solid 1px #666690; }
+
+div.mayorbody tfoot td { background-color: #888880; text-align: center; }
+div.mayorbody td.co { text-align: center; vertical-align: bottom; font-family: Verdana,arial; font-size:8pt; }
+div.mayorbody img.aauthImg {
+ border-top: solid 1px #666690;
+ border-bottom: solid 1px #888880;
+ border-left: solid 1px #666690;
+ border-right: solid 1px #888880;
+}
+*/
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/sulix/module-auth/html/login.phtml b/mayor-orig/www/skin/sulix/module-auth/html/login.phtml
new file mode 100644
index 00000000..87f90756
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/module-auth/html/login.phtml
@@ -0,0 +1,79 @@
+<?php
+
+ function putLoginForm($userAccount,$toPolicy,$toPSF='',$toSkin='') {
+
+ global $POLICIES, $AUTH, $sessionID;
+
+ formBegin(array('method'=>'post',
+ 'action'=>'index.php?policy=public&page=auth&f=login&toPolicy='.$toPolicy.'&sessionID='.$sessionID ,
+ 'name'=>"loginablak",
+ 'id'=>'loginablak'
+ ));
+
+ echo '<div id="header"><img src="skin/sulix/base/img/mayor_small_ssl.png" alt="MaYoR" /></div>';
+ echo '<div id="body">';
+
+ echo '<input type="hidden" name="action" value="login" />';
+ echo '<input type="hidden" name="toPSF" value="'.$toPSF.'" />';
+ echo '<input type="hidden" name="toPolicy" value="'.$toPolicy.'" />';
+
+ echo '<table cellspacing="0" cellpadding="1" align="center" class="loginablak">'."\n";
+ echo '<thead>'."\n";
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo 'SuliX Napló';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</thead>'."\n";
+ echo '<tfoot>'."\n";
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+
+ if ($toPolicy == 'parent') {
+ echo '<input type="hidden" name="toPolicy" value="parent" />'."\n";
+ } else {
+ echo '<select class="policy" name="toPolicy">'."\n";
+ echo '<option value="private" '.($toPolicy=='private'?' selected="selected" ':'').'>';
+ echo 'tanár/diák';
+ echo '</option>'."\n";
+
+ echo '<option value="parent" '.($toPolicy=='parent'?' selected="selected" ':'').'>';
+ echo 'szülő';
+ echo '</option>'."\n";
+ echo '</select>'."\n";
+ }
+
+
+ echo '<input type="submit" tabindex="3" name="button" value="Belépés"
+ onclick="document.loginablak.button.disabled=true;
+ document.loginablak.button.value=\' Várj... \';
+ document.loginablak.submit()" class="submit" />'."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</tfoot>'."\n";
+ echo '<tbody>'."\n";
+ echo '<tr class="top">'."\n";
+ echo '<td>'."\n";
+ echo '<div class="input">';
+ echo '<input type="text" accesskey="l" tabindex="1" name="userAccount" value="Felhasználónév" maxlength="32"
+ onFocus="this.value=\'\'" onBlur="if (this.value == \'Felhasználónév\' || this.value == \'\') this.value=\'Felhasználónév\'"
+ />'."\n";
+ echo '</div>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '<tr>'."\n";
+ echo '<td>'."\n";
+ echo '<div class="input">';
+ echo '<input id="userPassword" type="password" accesskey="p" tabindex="2" name="userPassword" value="" />'."\n";
+ echo '</div>';
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</tbody>'."\n";
+ echo '</table>'."\n";
+
+ echo '</div>'."\n";
+ formEnd();
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/sulix/module-naplo/css/admin/tanevek.css b/mayor-orig/www/skin/sulix/module-naplo/css/admin/tanevek.css
new file mode 100644
index 00000000..7562ff6f
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/module-naplo/css/admin/tanevek.css
@@ -0,0 +1,17 @@
+
+ form.intezmeny { background-color: rgb(40,60,120); color: white; margin: 20px; padding: 0px; }
+ form.intezmeny h2 {
+ background-color: rgb(20,40,80);
+ text-align: center;
+ border: white 1px dotted;
+ border-width: 1px 0px;
+ padding: 3px;
+ }
+ form.intezmeny div.data {
+ padding: 1em;
+ }
+ input.date { width: 100px; }
+
+ form.intezmeny fieldset p { margin-left: 50px; }
+ form.intezmeny fieldset label { background-coor: red; padding: 0px 14px 0px 0px; }
+ form.intezmeny fieldset h3 { color: rgb(255,255,100); } \ No newline at end of file
diff --git a/mayor-orig/www/skin/sulix/module-naplo/css/naplo.css b/mayor-orig/www/skin/sulix/module-naplo/css/naplo.css
new file mode 100644
index 00000000..7a91910a
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/module-naplo/css/naplo.css
@@ -0,0 +1,84 @@
+/* @override https://sy.ulx.hu:1743/sulixnaplo/skin/classic/module-naplo/css/naplo.css?ver=2719 */
+
+table.toolBar { width: 95%; max-width: 95%; border-spacing: 0px; margin: 1em auto; overflow: auto; }
+ table.toolBar form { margin: 0px; padding: 0px; }
+ table.toolBar tr.first td.toolBarTitle, table.toolBar tr.first td.toolBarTool { border: solid 1px #333333; }
+ table.toolBar td.gap { width: 50%; border-spacing: 0px; }
+ table.toolBar td.help {
+ background-color: silver;
+ color: black;
+ border-width: 0px 1px 1px 1px;
+ border-color: black;
+ border-style: none solid solid solid;
+ font-size:smaller;
+ padding: 3px;
+}
+table.toolBar tr.first td a img {
+ display: none;
+}
+ table.toolBar td.toolBarTitle {
+ background-color: white;
+ width: 100%;
+ font-size: 16px;
+ font-weight: normal;
+ font-style: normal;
+}
+ #toolBarIntezmeny {
+ color: red;
+ border: solid red;
+ border-width: 1px 0px;
+ font-size: 10px;
+ }
+
+ table.toolBar td.toolBarTool {
+ background-color: #3496b9;
+ margin: 0px;
+ padding: 0px;
+ }
+ table.toolBar td.toolBarTool table { border-spacing: 0px; width: 100%; }
+ table.toolBar td.toolBarTool table th {
+ background-color: #3496b9;
+ text-align: left;
+ color: white;
+ font-size:10px;
+ padding: 0px 0px 0px 4px;
+}
+ table.toolBar input.toolSubmit { vertical-align: middle; border: 0px none; }
+ table.toolBar td.toolBarTool select { border: 0px; }
+ table.toolBar th {
+ background-color: #3496b9;
+ text-align: center;
+ color: white;
+ font-size:10px;
+ padding: 0px 0px 0px 4px;
+}
+ table.toolBar img { border: none; }
+
+ table.toolBar table.hianyzasOsszegzo { width:100%; font-size:10px; }
+ table.toolBar table.hianyzasOsszegzo th {
+ text-align: center !important;
+ border-style: none none solid none;
+ border-color: #888888;
+ border-width: 0px 0px 1px 0px;
+ }
+ table.toolBar table.hianyzasOsszegzo td { width: 18%; border-bottom: solid 1px rgb(60,80,100); background-color: #dddddd; text-align: center; }
+
+ form.lapozo input { font-size: 10px; border: solid 1px #555555; }
+ form button.lapozo { font-size:10px; }
+ form span.lapozo { color:white; background-color: rgb(90,133,184); padding:1px 5px; border: solid 1px rgb(21,71,123);}
+
+ table.flipper input {height: 38px; width: 16px; color: white;
+ border-top: solid 1px black;
+ border-bottom: solid 1px black;
+ border-left: none;
+ border-right: none;
+ background-color: rgb(90,133,184);
+ }
+ table.flipper input.step { background-color: rgb(100,100,60); }
+ table.gomb button { height: 38px; width: 24px; background-color: rgb(90,133,184); border: solid black; border-width: 1px 0px; }
+
+ div.beirasAdatok { text-align: center; }
+ div.beirasAdatok span { font-weight: bold; font-size: 20pt; vertical-align: middle; }
+ div.beirasAdatok img { vertical-align: middle; }
+
+ table.toolBar input { font-size: 10px; }
diff --git a/mayor-orig/www/skin/sulix/module-naplo/css/orarend/orarendTeremModositas.css b/mayor-orig/www/skin/sulix/module-naplo/css/orarend/orarendTeremModositas.css
new file mode 100644
index 00000000..fb0172cc
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/module-naplo/css/orarend/orarendTeremModositas.css
@@ -0,0 +1,8 @@
+
+ form.terem { background-color: rgb(100,50,100); color: white; margin: 5px auto; text-align: center; width: 640px; }
+ form.terem h1 { text-align: center; font-size: 16px; background-color: rgb(80,40,80); padding: 2px; }
+ form.terem select { margin: 2px; }
+ form.terem select option.foglalt { color: red; }
+ form.terem select option.szabad { color: green; }
+
+
diff --git a/mayor-orig/www/skin/sulix/module-password/css/password.css b/mayor-orig/www/skin/sulix/module-password/css/password.css
new file mode 100644
index 00000000..66a2fe2a
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/module-password/css/password.css
@@ -0,0 +1,43 @@
+ img { border-width: 0px; }
+ h1 { display: none; text-align: center; margin: 10px; font-size:20px; }
+ h2 { text-align: center; margin: 10px; font-size: 15px; }
+ table { font-size: 12px }
+ table.main {width: 100%; border-width: 0px;}
+ form table {background-color: #ffffff; border-width: 1px; border-style: solid; border-color: #555550; width:400px}
+ td { padding: 2px }
+ form { margin: 30px; padding: 0px; }
+ input { font-size: 10px; font-family: Verdana,Arial; background-color: #fffff0; }
+ select.pp {
+ padding: 0px; margin: 0px;
+ border: none 0px #778890;
+ font-size: 12px;
+ background-color: #eeeee0;
+ font-family: Verdana,Arial;
+ }
+ select.pp>option { border: none 0px black; }
+ input.submit { border: solid 1px #776650; }
+ thead td {
+ background-color: #3496B9;
+ text-align: center;
+ font-family: Verdana,arial;
+ font-size: 10pt;
+ font-weight: bold;
+ color: white;
+ }
+ thead th {
+ background-color: #3496B9;
+ color: white;
+ padding: 2px;
+ }
+ tfoot td {
+ background-color: #c8c8c8;
+ text-align: center;
+ }
+ tbody img { display: none; border: solid 1px #bbddbb; }
+ td.co {
+ display: none;
+ text-align: center;
+ vertical-align: bottom;
+ font-family: Verdana,arial;
+ font-size: 8pt;
+ }
diff --git a/mayor-orig/www/skin/sulix/share/css/calendar_date_select.css b/mayor-orig/www/skin/sulix/share/css/calendar_date_select.css
new file mode 100644
index 00000000..71c01b18
--- /dev/null
+++ b/mayor-orig/www/skin/sulix/share/css/calendar_date_select.css
@@ -0,0 +1,139 @@
+/* @override https://sy.ulx.hu:1743/sulixnaplo/skin/classic/share/javascript/calendar_date_select/stylesheets/calendar_date_select/red.css */
+
+.calendar_date_select {
+ color:white;
+ border:#777 1px solid;
+ display:block;
+ width:195px;
+ z-index: 1000;
+}
+/* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */
+iframe.ie6_blocker {
+ position: absolute;
+ z-index: 999;
+}
+
+.calendar_date_select thead th {
+ font-weight:bold;
+ background-color: #E7E8E8;
+ border-bottom:2px solid black;
+ color: black !important;
+}
+
+.calendar_date_select .cds_buttons {
+ text-align:center;
+ padding:5px 0px;
+ background-color: #2599fa;
+}
+
+.calendar_date_select .cds_footer {
+ background-color: #3496b9;
+ padding:3px;
+ text-align:center;
+ border-top-style: solid;
+ border-top-width: 1px;
+}
+
+.calendar_date_select table {
+ margin: 0px;
+ padding: 0px;
+}
+
+
+.calendar_date_select .cds_header {
+ background-color: #ccc;
+ border-bottom: 2px solid #aaa;
+ text-align:center;
+}
+
+.calendar_date_select .cds_header span {
+ font-size:15px;
+ color: black;
+ font-weight: bold;
+}
+
+.calendar_date_select select { font-size:11px;}
+
+.calendar_date_select .cds_header a:hover {
+ color: white;
+}
+.calendar_date_select .cds_header a {
+ width:22px;
+ height:20px;
+ text-decoration: none;
+ font-size:14px;
+ color:black !important;
+}
+
+.calendar_date_select .cds_header a.prev {
+ float:left;
+}
+.calendar_date_select .cds_header a.next {
+ float:right;
+}
+
+.calendar_date_select .cds_header a.close {
+ float:right;
+ display:none;
+}
+
+.calendar_date_select .cds_header select.month {
+ width:90px;
+}
+
+.calendar_date_select .cds_header select.year {
+ width:61px;
+}
+
+.calendar_date_select .cds_buttons a {
+ color: white;
+ font-size: 9px;
+}
+
+
+.calendar_date_select td {
+ background-color: #3496b9;
+ font-size:12px;
+ width: 24px;
+ height: 21px;
+ text-align:center;
+ vertical-align: middle;
+}
+.calendar_date_select td.weekend {
+ background-color: #3496b9;
+}
+
+.calendar_date_select td div {
+ color:#fff;
+}
+.calendar_date_select td div.other {
+ color: #3bc1f3;
+}
+.calendar_date_select td.selected div {
+ color:black;
+}
+
+
+.calendar_date_select tbody td {
+ border-bottom: 1px solid #550000;
+}
+.calendar_date_select tbody td.selected {
+ background-color:white;
+ color:black;
+}
+
+.calendar_date_select tbody td:hover {
+ background-color:#ccc;
+}
+
+.calendar_date_select tbody td.today {
+ border: 1px dashed red;
+}
+
+.calendar_date_select td.disabled div {
+ color: #440000;
+}
+
+.fieldWithErrors .calendar_date_select {
+ border: 2px solid red;
+}
diff --git a/mayor-orig/www/skin/sza2010/base/css/base.css b/mayor-orig/www/skin/sza2010/base/css/base.css
new file mode 100644
index 00000000..22a9fd61
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/css/base.css
@@ -0,0 +1,85 @@
+/*
+ Module: base
+*/
+@import "head.css";
+@media screen {
+
+ html body {
+ font-family: Verdana, sans-serif;
+ font-size: 12px;
+ margin:0px;
+ padding:0px;
+/* background-color: #1d2e50; */
+ background-color: white;
+ background-image: url("/skin/sza2010/base/img/bg.png");
+ background-repeat: repeat-x;
+ }
+
+ /* set default layout! */
+ table { font-size: 12px; }
+
+ form { margin: 0px; }
+
+ div#mayorerror { }
+
+ div.mayorbody {
+
+ padding: 0px;
+
+ }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow {background-color: white; position: absolute;z-index:200;margin:auto auto; width:400px;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 300px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ div.mayorfoot {
+ text-align: center;
+ font-size: 10px;
+ width:100%;
+ }
+/* - Alert - */
+
+ form.mayorAlert { margin: 0px; padding: 0px; }
+ form.mayorAlert input { display: none; }
+ div.errorMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #ff0000;
+ padding: 15px;
+ }
+ div.errorMsg span {
+ font-style: italic;
+ }
+
+ div.infoMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #0000ff;
+ padding: 15px;
+ }
+ div.infoMsg span {
+ font-style: italic;
+ }
+
+ span.alertParam {
+ color: green;
+ }
+}
+@media print {
+ html body {
+ font-family: Verdana, sans-serif;
+ font-size: 12px;
+ }
+ div.mayorfoot {
+ text-align: center;
+ font-size: 10px;
+ margin: 5px;
+ }
+ div.namepolicy { display: none; }
+ table.mayorhead { display: none; }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/sza2010/base/css/head.css b/mayor-orig/www/skin/sza2010/base/css/head.css
new file mode 100644
index 00000000..5ceacaa4
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/css/head.css
@@ -0,0 +1,153 @@
+/*
+ Module: base
+*/
+@media screen {
+
+ div.namepolicy {
+ background-color:
+ #1d2e50 ;
+ border-style: none none solid none;
+ border-width: 1px;
+ border-color: white;
+ color: white;
+ background-image: url("/skin/sza2010/base/img/bg.png");
+ background-repeat: repeat-x;
+ }
+ div.namepolicy table { font-size: 10px; width:100%; height:23px; }
+ div.namepolicy table td { width:30%; }
+ div.namepolicy table td.right { text-align: right; }
+ div.namepolicy table td.left { text-align: left;}
+ div.namepolicy table td.help a { background-color:red; color: white; text-decoration: none; font-weight: bold; padding: 2px 5px; display: block; border: solid 1px white;}
+ div.namepolicy table td.help a:hover { background-color:lightblue; }
+ div.namepolicy table th { width:40%;}
+ div.namepolicy span.nev { padding-right: 14px; }
+ div.namepolicy table td.language span { vertical-align: middle; }
+ div.namepolicy table td.language img { margin: 0px 0px 0px 4px; height: 10px; border: solid 1px #777777; }
+ #langSelect { vertical-align: middle; padding: 0px; margin: 0px;}
+
+ table.mayorhead { font-size: 10px; margin: 13px 3px 30px 3px;}
+
+ table.mayorhead td.namepolicy { padding: 5px; }
+ table.mayorhead td.namepolicy table {
+ vertical-align: center;
+ font-size: 10px;
+ border-style: solid;
+ border-width: 2px ;
+ border-color: #550670;
+ background-color: #8877aa;
+ color: white;
+ }
+
+/* Új menü */
+
+ ul#pagemenu {
+ padding: 1px;
+ text-align: left;
+ list-style-type: none;
+ margin:1px;
+ }
+ ul#pagemenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#pagemenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#pagemenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#pagemenu li.active a {
+ background-color: #620405;
+ }
+ ul#pagemenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* SUB */
+
+ ul#submenu {
+ padding: 1px;
+ text-align: left;
+// background-color: #040582;
+ list-style-type: none;
+ margin:1px 1px 1px 40px;
+ }
+ ul#submenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#submenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#submenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#submenu li.active a {
+ background-color: #620405;
+ }
+ ul#submenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+/* f */
+
+ ul#fmenu {
+ padding: 1px;
+ text-align: left;
+// background-color: #0405a2;
+ list-style-type: none;
+ margin:1px 1px 1px 80px;
+ }
+ ul#fmenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#fmenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#fmenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#fmenu li.active a {
+ background-color: #620405;
+ }
+ ul#fmenu li.active a:hover {
+ background-color: rgb(140,100,100);
+ }
+
+ #changeSkin {
+ display: inline;
+ }
+ #changeSkin .onChangeSubmit {
+ background-color: #eeeeee;
+ font-size:9px;
+ }
+
+}
+@media print {
+
+ div.namepolicy { display: none; }
+ table.mayorhead { display: none; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/sza2010/base/html/alert.phtml b/mayor-orig/www/skin/sza2010/base/html/alert.phtml
new file mode 100644
index 00000000..138ac3f3
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/html/alert.phtml
@@ -0,0 +1,68 @@
+<?php
+/*
+ Module: base
+
+ js_alert()
+ html_alert()
+*/
+
+// ------------------------------------------------------------------- //
+// Az $_SESSION['alert'] két részből áll: típus:hiba //
+// típus: alert : javaScript alert //
+// message : hibaüzenet után az oldal betöltődik //
+// page : hibaüzenet után az oldal nem töltődik be //
+// info : információs üzenet //
+// ------------------------------------------------------------------- //
+
+// ---------------------------------------------------------------- //
+// Hibaüzenet kiiratása
+// visszatérési érték: legyen-e utána megjelenítve a lap?
+// --------------------------------------------------------------- //
+
+ function html_alert() {
+
+ global $ALERT_MSG;
+
+ if (!isset($_SESSION['alert']) || (is_array($_SESSION['alert']) && count($_SESSION['alert'])==0)) {
+ return true;
+ exit;
+ }
+
+ $showPage = true;
+ for ($j = 0; $j < count($_SESSION['alert']); $j++) {
+
+ // Nincs mindig paraméter - ezért a $param nem kap értéket! - így az explode Notice üzenetet váltana ki...
+ $param = array();
+ $tmp = explode(':', $_SESSION['alert'][$j]);
+ $aType = readVariable($tmp[0], 'enum', 'message', array('message','info','page')); $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = htmlspecialchars($tmp[$p]);
+ $pstr = '';
+ // preparing $msg
+ if (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '')
+ $msg = $ALERT_MSG['default'].' (<span class="alertParam">'.$aType.':'.$aCode.')</span>';
+ else $msg = $ALERT_MSG[$aCode];
+
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",'<span class="alertParam">'.($param[$i]).'</span>',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= '<span class="alertParam">'.($param[$i]).'</span>,';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ }
+ $msg = '<span>'.$title.':</span> ' . $msg;
+ echo '<div class="'.$class.'">'.str_replace('***','<br/>',$msg).'</div>'."\n";
+ }
+
+ return $showPage;
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/sza2010/base/html/base.phtml b/mayor-orig/www/skin/sza2010/base/html/base.phtml
new file mode 100644
index 00000000..215a21a4
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/html/base.phtml
@@ -0,0 +1,310 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpHeader();
+
+ if ($MENU['set'][$policy][$page][$sub][$f]['refresh'] > 0) {
+ @header("Refresh:".intval($MENU['set'][$policy][$page][$sub][$f]['refresh']));
+ }
+
+ html_head($page,$sub,$f,$lang,$skin);
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '<div id="mayorerror"></div>';
+
+ echo '<div class="mayorbody" id="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if ($SSSHH!=null && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '<link rel="shortcut icon" href="/skin/classic/base/img/favicon.ico" />'."\n";
+ echo "</head>\n<body>\n";
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $page, $sub, $f;
+
+ echo '<ul id="pagemenu">';
+ // --------------------------------------------------------
+ if (is_array($MENU)) {
+ foreach ($MENU as $aModule => $items) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($items); $i++) {
+
+ if ($page == $aModule and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+
+ echo '</li>';
+ }
+ }
+ }
+ }
+ // ---------------------------------------------------
+ echo '</ul>';
+
+ // II: SZINT
+ @$pageArray = $MENU['modules'][$page];
+ $aPage = $page;
+
+ if (is_array($pageArray)) {
+ echo '<ul id="submenu">';
+ foreach ($pageArray as $anF => $items) {
+ if ($anF != 'sub') {
+ for ($i=0;$i<count($items);$i++) {
+ if (
+ $page == $aPage and
+ (
+ (
+ !isset($items[$i]['url'])
+ and $f == $anF
+ )
+ or
+ (
+ isset($items[$i]['url']) and
+ strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false
+ )
+ )
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&f=$anF",array('policy','sessionID','lang','skin'));
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+ echo '</li>';
+ }
+ }
+ }
+ echo '</ul>'."\n";
+ }
+
+ // III: SZINT
+ @$subArray = $MENU['modules'][$page]['sub'][$sub];
+ $aSub = $sub;
+
+ if (is_array($subArray)) {
+ echo '<ul id="fmenu">';
+
+ foreach ($subArray as $anF => $items) {
+ for ($i=0;$i<count($items);$i++) {
+ if ($aPage == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&sub=$aSub&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'> '.$items[$i]['txt'].' </a>';
+
+ echo '</li>';
+ }
+ }
+
+ echo '</ul>'."\n";
+ }
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy;
+
+ _updateWindow();
+
+ //$imgextra = '-marc15';
+
+ if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+ //if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl.gif'))
+ // $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl.gif';
+ if (!file_exists($HELP_LOGO = 'skin/'.$skin.'/module-help/img/help_small.jpg'))
+ $HELP_LOGO = 'skin/'._DEFAULT_SKIN.'/module-help/img/help_small.jpg';
+ ## Név, Oldal info, Policy
+ echo '<div class="namepolicy" id="namepolicy">'."\n";
+ echo '<table cellspacing="0" cellpadding="0"><tr>'."\n";
+ echo '<td class="language left hideShowContainer">'."\n";
+
+ echo '<span class="onClickHideShow"><img class="onClickHideShow" id="openLangSelect" src="skin/classic/base/img/flags/'.$lang.'.gif" alt="'.$lang.'" /></span>'."\n";
+
+ echo '<span id="langSelect" class="openable" style="display: none;">';
+ for ($i = 0;$i < count($LANGUAGES); $i++) {
+ if ($LANGUAGES[$i]!=$lang) echo '<a href="'.href('index.php?lang='.$LANGUAGES[$i],array('skin','policy','page','sub','f','sessionID')).'"><img src="skin/classic/base/img/flags/'.$LANGUAGES[$i].'.gif" alt="'.$LANGUAGES[$i].'" /></a>';
+ }
+ echo '</span>';
+
+ formBegin(array('id'=>'changeSkin','action'=>href('index.php', array('sessionID','lang'))));
+ echo '<input type="hidden" name="noModify" value="1" />';
+ echo '<select class="onChangeSubmit" name="skin">';
+ for ($i=0; $i<count($SKINSSHOW); $i++) {
+ $_SEL = ($SKINSSHOW[$i]==$skin)? 'selected="selected"':'';
+ echo '<option value="'.$SKINSSHOW[$i].'" '.$_SEL.'>'.$SKINSSHOW[$i].'</option>';
+ }
+ echo '</select>';
+ global $POLICIES;
+ echo '<select class="onChangeSubmit" name="policy" onchange="submit();">';
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_SEL = ($POLICIES[$i]==$policy)? 'selected="selected"':'';
+ echo '<option value="'.$POLICIES[$i].'" '.$_SEL.'>'.$POLICIES[$i].'</option>';
+ }
+ echo '</select>';
+ /* Némi javascipt támogatás a session kezelésre ebben a formban */
+ $sessionMaxIdleTime=$sessionAlertTime=0;
+ if ((_SESSIONID!='' && _POLICY!='public') && defined('_SESSION_MAX_IDLE_TIME') && _SESSION_MAX_IDLE_TIME>0) {
+ $sessionMaxIdleTime=((_SESSION_MAX_IDLE_TIME*1000*60*60)+1000);
+ if (defined('_SESSION_ALERT_TIME')) $sessionAlertTime = ((_SESSION_MAX_IDLE_TIME*1000*60*60)-(_SESSION_ALERT_TIME*1000*60));
+ }
+ echo '<input type="hidden" id="SESSION_MAX_IDLE_TIME" value="'.$sessionMaxIdleTime.'" />';
+ echo '<input type="hidden" id="SESSION_ALERT_TIME" value="'.$sessionAlertTime.'" />';
+ /* --- */
+ formEnd();
+ echo '</td>'."\n";
+ echo '<th>';
+ //echo $page;
+ //if ($sub!='') echo '&nbsp;&raquo;&nbsp;'.$sub;
+ if (is_array(@$INCLUDES['html_mayor_head']['global']['center'])) foreach ($INCLUDES['html_mayor_head']['global']['center'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo _SITE;
+ echo '</th>';
+ echo '<td class="right">';
+ echo '<span class="nev">'._USERCN.'</span>';
+ echo '</td>';
+ echo '<td class="right">';
+ echo '</td>';
+ echo '<td class="help">';
+ if (isset($sub) && $sub != '') $psf = "$page:$sub:$f"; else $psf = "$page:$f";
+ echo '<a title="'._HELP.'" target="_blank" href="wiki/dok.php?id='.$psf.'">?</a>';
+ echo '</td></tr>';
+ echo '</table>';
+ echo '</div>'."\n";
+ ## ------------------------
+ echo '<table class="mayorhead" cellspacing="0" cellpadding="0">'."\n";
+ echo '<tr><td style="width: 40px">';
+ echo '<a href="'.href('index.php').'"><img src="'.$HOME_LOGO.'" alt="MaYoR" style="border-width: 0;" /></a>';
+ echo '</td>'."\n";
+ echo '<td style="vertical-align: middle; text-align: left; width: 99%">';
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+ echo '</td>';
+ if (in_array('help',$INSTALLED_MODULES)) {
+ $link = "index.php?page=help&hpage=$page&hsub=$sub&hf=$f";
+ echo '<td>';
+ echo '<a href="'.href($link).'" target="_blank">';
+ echo '<img src="'.$HELP_LOGO.'" alt="'._HELP.'" style="border-width: 0;" />';
+ echo '</a>';
+
+ echo '</td>';
+ }
+ echo "</tr>\n</table>\n";
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ echo '<div class="mayorfoot" id="mayorfoot">'._MAIN_FOOTER.'</div>'."\n\n";
+ echo "</body>\n</html>";
+}
+
+?>
diff --git a/mayor-orig/www/skin/sza2010/base/img/bg.png b/mayor-orig/www/skin/sza2010/base/img/bg.png
new file mode 100644
index 00000000..a124c5df
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/img/bg.png
Binary files differ
diff --git a/mayor-orig/www/skin/sza2010/base/img/foot.orig.png b/mayor-orig/www/skin/sza2010/base/img/foot.orig.png
new file mode 100644
index 00000000..9bccfb27
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/img/foot.orig.png
Binary files differ
diff --git a/mayor-orig/www/skin/sza2010/base/img/foot.png b/mayor-orig/www/skin/sza2010/base/img/foot.png
new file mode 100644
index 00000000..3d1a92ba
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/img/foot.png
Binary files differ
diff --git a/mayor-orig/www/skin/sza2010/base/img/mayor_small_ssl.png b/mayor-orig/www/skin/sza2010/base/img/mayor_small_ssl.png
new file mode 100644
index 00000000..c2eefd5f
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/img/mayor_small_ssl.png
Binary files differ
diff --git a/mayor-orig/www/skin/sza2010/base/img/meghivo.png b/mayor-orig/www/skin/sza2010/base/img/meghivo.png
new file mode 100644
index 00000000..38f61f13
--- /dev/null
+++ b/mayor-orig/www/skin/sza2010/base/img/meghivo.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/base/css/base.css b/mayor-orig/www/skin/teszt/base/css/base.css
new file mode 100644
index 00000000..0b63c918
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/css/base.css
@@ -0,0 +1,288 @@
+/*
+ Module: base
+ A rétegek sorrendje: nav2(1), head(2), poz(2), nav1(3), nav(3), logo(3), logobadge(4)
+
+ mayorlayers
+ -help
+ -debug
+ -takaro
+ -updateWindow
+ -keyHelp (table)
+ -mayorerror
+ mayorhead
+ -head
+ -nav1
+ -nav
+ -poz
+ -logo (a+img!)
+ -nav2
+ mayorbody
+ mayorfoot
+*/
+
+@media screen {
+
+ html { height: 100%; }
+ html body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; margin:0px; padding:0px; height: 100%; overflow: auto; }
+ a { text-decoration:none; }
+ .onClickHideShow, .onClickHide, .onClickShow { cursor: pointer; }
+
+
+ /* mayorlayers */
+ #debug {
+ padding: 20px; background: rgba(0,0,0,0.7); color: yellow; border: 0px red solid;
+ position: absolute; z-index: 1000; top: 0px; left: 0px; right: 0px;
+ }
+ #debug pre { background: rgba(240,240,240,0.9); color: #880000; padding: 10px; margin: 0px;}
+
+ #help {
+ border-radius: 2px;
+ box-shadow: 3px 3px 15px 0px rgba(100,100,100,5.0);
+ position: absolute; top: 10px; left: 50%; height: 600px; width: 1000px; z-index: 500; margin: 0 -500px;
+ border: 1px solid #888888; background: white; }
+ #help iframe { width: 1000px; height: 558px; margin: 0; border: none; }
+ #helpHeader { text-align: center; font-size: 16px; width: 992px; height: 20px; margin: 0px; background: #44cbf8; cursor: pointer; color: white; font-weight: bold; padding: 4px;
+ border-bottom: #f3f3f3 solid 4px;
+ }
+ #hideHelp {
+ position: absolute; top:4px; right: 4px;
+ cursor: pointer; background: #822; color: white; padding: 2px 5px; font-size: 12px;
+ border: #822 1px solid; border-radius: 2px; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
+// box-shadow: inset 0px -3px 1px rgba(0, 0, 0, 0.45), 0px 2px 2px rgba(0, 0, 0, 0.25);
+ }
+ #hideHelp:hover { background-color:red;}
+
+ div.errorMsg { margin: 10px 20%; background: #fee; border: solid 1px red; border-radius: 2px; padding: 10px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.errorMsg span { font-weight: bold; color: #f00; }
+ div.infoMsg { margin: 10px 20%; background-color: #eee; border: solid 1px rgb(90,133,184); border-radius: 2px; padding: 10px; box-shadow: 0px 1px 10px rgba(0,0,0,0.5); }
+ div.infoMsg span { font-weight: bold; color: rgb(21,71,123); }
+ div.errorMsg span.alertParam, div.infoMsg span.alertParam { font-weight: normal; font-style: italic; color: green; }
+
+
+ /* mayorhead */
+ /* placeholder */
+ #head { z-index: 2; position: absolute; width: 100%; height: 60px; background: #3496B9 no-repeat right center; }
+
+ #mayorhead { }
+
+ #logo { z-index: 3; height: 40px; position: absolute; top: 8px; left: 14px; border: 0px none; }
+ #logobadge { z-index: 4; height: 25px; position: fixed; top: 28px; left: 90px; border: 0px none; }
+
+ #nav, #nav ul { list-style: none; }
+ #nav { z-index: 3; margin: 0; padding-left: 140px; }
+ #nav li { position: relative; }
+ #nav > li { float: left; z-index: 20; text-align: center; padding: 0;
+ background: #3fa79c; border-bottom: 1px solid #D2DFE9; }
+ #nav > li.active { max-width: 160px; }
+ #nav > li:hover { z-index: 22; }
+ #nav > li > ul { top: 50px; left: -1px; /* background: #1A4B5C; */}
+ #nav > li > ul > li > a { margin-left: 10px; }
+
+ #nav li:hover { background: #4fbcd7;}
+ #nav li.active { background: #3496B9; background: #3facc7; }
+
+ #nav li a { display: block; padding: 3px 10px; color: white; }
+ #nav > li > a { padding: 0px 20px; line-height: 60px; vertical-align: middle; display: table-cell; min-width: 100px; }
+ #nav li a:hover { color:#fdb933; }
+ #nav li:hover > ul { display: block; }
+
+ #nav li.nav1szin { background: #3496B9; border-bottom: 1px solid white; }
+ #nav ul.sub { background: #3facc7; }
+
+ #nav ul { display: none; position: absolute; width: 160px; padding: 0px; }
+ #nav ul span { float: left; margin: 6px 5px; color: white; }
+
+ #nav > li > ul { top: 61px; }
+ #nav ul > li { background: #3496B9; }
+ #nav ul li { text-align: left; margin-bottom: 1px; }
+ #nav ul li a { padding: 6px 10px; }
+ #nav ul li.active > a { color:#fdb933; }
+
+ #nav ul ul { top: 0px; left: -145px; z-index: 30; background: #3facc7; background: #3496B9}
+ #nav ul ul a { background: #3facc7; }
+ #nav ul ul a:hover { background: #4fbcd7; color: white; border-right: solid 4px orange;} /* mod */
+
+ #nav li.start { /* fogó */
+ height: 20px; min-width: 0; padding-right: 0px; padding-left: 6px;
+ margin-top:20px;
+ background-color:lightgrey;
+ border-radius: 0px 50px 50px 0px; border-bottom: 0px;
+ z-index: 20;
+ }
+
+ @keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+ @-webkit-keyframes moIn {from {padding-left:6px;}to {padding-left:9px;}}
+ @keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+ @-webkit-keyframes moOut {from {padding-left:9px;}to {padding-left:6px;}}
+
+ #nav:hover li.start {
+ animation: moIn 0.1s; -webkit-animation: moIn 0.1s;
+ }
+
+ #nav li.start:hover {
+ background: #D2DFE9;
+ padding-left:9px;
+ }
+
+ #poz { z-index: 2; padding: 0; list-style: none; background-color: rgb(230,230,230); margin: 0;
+ height: 20px; border-bottom: #f3f3f3 solid 4px; text-shadow: 0px 1px rgba(52, 150, 185, 0.1); }
+ #poz > li { padding: 2px 6px; }
+ #poz > li div.nev { float: right; padding: 2px; width: auto; color: #3496b9; text-align: right; }
+ #poz > li div.nev span { margin-right: 0px; font-size:12px; }
+ #poz > li div.nev span:hover { color:#00c0ff; }
+ #poz > li a { margin-right:5px; margin-left:15px; padding:0px; margin-top:0px; vertical-align: middle;}
+
+ #settings {
+/*
+ width: 311px;
+ margin-top: 5px; position:relative; right: 0px;
+ background: #eeeeee;
+ border-width: 0px 1px 1px 1px;
+ border-style: solid;
+ border-color: rgb(230,230,230);
+ border-top: dotted 1px #dddddd;
+*/
+
+ width: 311px;
+ margin-top: 5px; position:relative; right: 0px;
+ background: #eeeeee;
+ border-width: 0px 1px 1px 1px;
+ border-style: solid;
+ border-color: rgb(230,230,230);
+ border-top: dotted 1px #dddddd;
+
+ }
+ #settings div {
+ padding: 20px 10px;
+ border-bottom: 1px solid rgb(230,230,230);
+ }
+ #settings div p { margin: 0; padding: 0; text-align: center; }
+ #settings div p.name { font-weight: bold; }
+ #settings table { width: 300px; background: rgb(245,245,245);}
+ #settings td { width: 50%; text-align: center; padding: 10px; }
+ #settings td a {
+ display: inline-block;
+ vertical-align: baseline; line-height: 29px;
+ position: static;
+ padding: 0px 8px; height: 29px; margin: 0px 8px;
+ text-align: center; text-decoration: none; font-weight: bold; font-size: 10px;
+ background: white; color: #444;
+ border: solid 1px rgba(0, 0, 0, 0.0976563);
+ border-radius: 2px;
+ }
+ #settings td a:hover { border: white 1px solid; background-color: #44CBF8; color: white; }
+
+ #poz > li span.school {
+ font-variant: small-caps;
+ font-size: 14px;
+ color: white;
+ letter-spacing: 0.4em;
+ overflow: hidden;
+ }
+
+
+ #nav1 { z-index: 3; position: absolute; margin-left: 310px; margin-right: 0px; width: 100%;}
+ #nav1 div { background: rgba(52,150,185,0.6); }
+ #nav1 div a { line-height:60px; padding: 0px 12px 0px 12px; display: inline-block; text-decoration: none; color: #fff;
+ background: #3496b9; margin-top: 0px; }
+ #nav1 div a:hover { color: #fdb933;
+ background-color: ;
+ box-shadow: inset 0px -3px 0px #44CBF8;
+ }
+ #nav1 div a.aktiv { color:#fdb933; }
+ #nav1 div a.aktiv:hover { color: white; }
+
+ #nav1 div span.onClickHideShow {
+ display:none;
+ cursor: pointer; color: white; background: rgba(255,255,255,0.2); line-height:60px;
+ padding: 0px 12px 0px 12px; float: right; margin-right: 310px/* annyi, amennyi a #nav1 bal margója!*/; }
+
+ #nav2.vertical {
+ z-index: 1; width: 140px; margin: 0; height: 100%;
+ background-color: #D2DFE9;
+ margin-top: -25px;
+ padding-top: 25px;
+ position: fixed;
+ overflow: auto;
+ top:83px;
+ background: -webkit-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: -moz-linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ background: linear-gradient(top, #D2DFE9 0%,#D2DFE9 50%,#ffffff 100%);
+ }
+ #nav2.vertical ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.vertical ul li { border-bottom: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li:first-child { border-top: solid 1px rgba(100,100,100,0.4); }
+ #nav2.vertical ul li a { display: block; color: black; font-size: 11px; width: 128px; padding: 6px 6px; text-decoration: none; }
+ #nav2.vertical ul li a.aktiv { background-color: white; }
+ #nav2.vertical ul li a:hover { color: white; background: #9abcd8; }
+
+ #nav2.horizontal {
+ z-index: 1; width: 100%;
+ margin-top: 0px;
+ top: 83px;
+ text-align: center;
+ padding-top: 5px; padding-bottom: 5px;
+ position: fixed;
+ overflow: none;
+ border-bottom: solid 3px #eeeeee;
+ background-color: #82bfd5;
+ color: white;
+ font-size:x-small;
+ }
+ #nav2.horizontal ul { margin: 0; padding: 0; list-style: none; }
+ #nav2.horizontal ul li { display: inline; border-right: solid 1px #888888; }
+ #nav2.horizontal ul li:last-child { display: inline; border-right: solid 0px #888888; }
+ #nav2.horizontal ul li a {display: inline; color: white; width: 128px; padding: 0px 6px; text-decoration: none; }
+ #nav2.horizontal ul li a.aktiv { color: white; background-color: orange;}
+ #nav2.horizontal ul li a:hover { color: white; background: orange; }
+ #nav2.horizontal:hover {
+
+ }
+
+ div.mayorfoot { text-align: center; font-size:smaller; color: #aaa; }
+ div.mayorfoot a { color: rgba(52, 150, 185, 0.6);}
+ div.mayorfoot:hover a { color: rgba(52, 150, 185, 1);}
+ #mayorfoot.leftpad { margin-top:2em; margin-left: 141px; }
+ #mayorfoot.toppad { margin-top: 40px; margin-left: 0px; }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow { z-index: 152; position: fixed; background: rgb(255,255,255); min-height: 100px; min-width: 200px; border: #3496B9 3px solid; border-radius: 10px;}
+ #updateWindow #updateHeader { min-height: 20px; min-width: 100px; background: #1a4c5c; color: white; text-align: center; line-height: 20px; position: relative; top: -13px; border-radius: 20px; margin: 0 50px; border: solid 3px #3496b9; }
+ #updateWindow #updateCloseButton { position: absolute; right: -20px; top: -20px; z-index: 0; background : white; border: solid 3px #3496b9; border-radius: 20px;}
+ #updateWindow #updateCloseButton:hover { background : #eeeeee;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 400px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; width: 100px; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+ #logo, #head, #nav1, #nav, #poz { position: fixed; }
+ #head { top: 0; left: 0; }
+ #nav { top: 0; left: 0; }
+ #nav1 { top: 0; }
+ #poz { top: 60px; width: 100%; }
+
+ #mayorbody { padding-top: 1px; padding-right: 0px;
+ /*margin-left:0px;*/ margin-top: 83px;
+ }
+ #mayorbody.leftpad {
+ margin-left: 141px; }
+ #mayorbody.toppad {
+ margin-left: 0px; top:33px; position: relative;
+ }
+
+
+ /* alternates */
+ #mayorhead.small #nav1 div a { line-height:30px; }
+ #mayorhead.small #nav > li > a { line-height:30px;}
+ #mayorhead.small #head { height:30px;}
+ #mayorhead.small #poz { height:20px;}
+
+ /* ------------ */
+
+
+}
+@media print {
+ #nav, #nav1, #nav2, #poz, #head, #logo, #mayorfoot, #logobadge { display: none; }
+}
diff --git a/mayor-orig/www/skin/teszt/base/html/base.phtml b/mayor-orig/www/skin/teszt/base/html/base.phtml
new file mode 100644
index 00000000..77e12bc7
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/html/base.phtml
@@ -0,0 +1,407 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+ require('skin/blue/base/color_schemes.php');
+ if (!defined('__COLOR_SCHEME') || !is_array($_COLOR_SCHEMES[__COLOR_SCHEME]))
+ $_COLORS = $_COLOR_SCHEMES['blue'];
+ else
+ $_COLORS = $_COLOR_SCHEMES[__COLOR_SCHEME];
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpHeader();
+
+ if ($MENU['set'][$policy][$page][$sub][$f]['refresh'] > 0) {
+ @header("Refresh:".intval($MENU['set'][$policy][$page][$sub][$f]['refresh']));
+ }
+
+ html_head($page,$sub,$f,$lang,$skin);
+ _debugLayer();
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ echo '<div id="mayorerror"></div>';
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorbody '.$_defaultPageLayout.'" id="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH, $SSSBB;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+
+ // debug üzenetek layer-ének lezárása
+// if (defined('__START_DEBUG') && __START_DEBUG === true) echo "</div>\n<!--// debug end //-->";
+
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if (is_string($SSSHH) && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '<link rel="shortcut icon" href="/skin/blue/base/img/favicon.ico" />'."\n";
+ echo "</head>\n<body>\n";
+ if (is_string($SSSBB) && $SSSBB!='') echo $SSSBB;
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $policy, $page, $sub, $f, $LANGUAGES, $SKINSSHOW, $_COLORS;
+
+ echo '<ul id="nav" class="hideShowContainer">'."\n";
+ if (is_array($MENU)) {
+ $active_page=false;
+ foreach ($MENU as $aModule => $pItems) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($pItems); $i++) {
+ if ($page == $aModule and
+ ( $active_page===false && ( $_SERVER["REQUEST_URI"]=='/' || (!isset($pItems[$i]['url'])) || strpos($_SERVER["REQUEST_URI"],$pItems[$i]['url']) !== false || strpos($pItems[$i]['url'],"page=$page") !== false) )
+ ) {
+ echo '<li class="active">';
+ $active_page=true;
+ } else {
+ echo '<li style="display: none;" class="openable">';
+ }
+ if (isset($pItems[$i]['url']) && $pItems[$i]['url'] != '') {
+ if ($pItems[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$pItems[$i]['url']);
+ elseif (substr($pItems[$i]['url'],0,4) == 'http') $href = href($pItems[$i]['url'], array());
+ elseif (isset($pItems[$i]['get']) && is_array($pItems[$i]['get'])) $href = href($pItems[$i]['url'], $pItems[$i]['get']);
+ else $href = href($pItems[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($pItems[$i]['target']))?' target="'.$pItems[$i]['target'].'" ':'').'>'
+ .$pItems[$i]['txt']
+ .'</a>'."\n";
+ // --- sub ---
+
+ @$pageArray = $MENU['modules'][$aModule];
+
+ if (is_array($pageArray) && count($pageArray)>0) {
+ echo '<ul class="sub">'."\n";
+ foreach ($pageArray as $aSub => $sItems) {
+ if ($aSub != 'sub') {
+ for ($j=0;$j<count($sItems);$j++) {
+ if (
+ $page == $aModule and
+ (
+ (!isset($sItems[$j]['url']) && $f == $aSub)
+ || (isset($sItems[$j]['url']) && strpos($_SERVER["REQUEST_URI"],$sItems[$j]['url']) !== false)
+ )
+ ) {
+ echo '<li class="active">'; $activeSub = true;
+ } else {
+ echo '<li>'; $activeSub = false;
+ }
+ if (isset($sItems[$j]['url']) && $sItems[$j]['url'] != '') {
+ if ($sItems[$j]['url'][0] == '&') $href = href("index.php?page=$aModule&f=$aSub".$sItems[$j]['url']);
+ elseif (substr($sItems[$j]['url'],0,4) == 'http') $href = href($sItems[$j]['url'], array());
+ elseif (isset($sItems[$j]['get']) && is_array($sItems[$j]['get'])) $href = href($sItems[$j]['url'], $sItems[$j]['get']);
+ else $href = href($sItems[$j]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&f=$aSub",array('policy','sessionID','lang','skin'));
+ }
+ @$subArray = $MENU['modules'][$aModule]['sub'][$aSub];
+ if (!is_array($subArray) || count($subArray) == 0) {
+ echo '<a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ } else { // vannak al-al menúk (f - menü)
+ echo '<span>&laquo;</span><a href="'.$href.'"'.((isset($sItems[$j]['target']))?' target="'.$sItems[$j]['target'].'" ':'').'>'
+ .$sItems[$j]['txt'].'</a>';
+ // -- f menü --
+ echo '<ul class="fmenu">'."\n";
+
+ foreach ($subArray as $anF => $items) {
+ for ($k=0;$k<count($items);$k++) {
+ if ($aModule == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$k]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$k]['url']) !== false)
+ ) { echo '<li class="active">'."\n"; }
+ else { echo '<li>'."\n"; }
+
+ if (isset($items[$k]['url']) && $items[$k]['url'] != '') {
+ if ($items[$k]['url'][0] == '&') $href = href("index.php?page=$aModule&sub=$aSub&f=$anF".$items[$k]['url']);
+ elseif (substr($items[$k]['url'],0,4) == 'http') $href = href($items[$k]['url'], array());
+ elseif (isset($items[$k]['get']) && is_array($items[$k]['get'])) $href = href($items[$k]['url'], $items[$k]['get']);
+ else $href = href($items[$k]['url']);
+ } else {
+ $href = href("index.php?page=$aModule&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$k]['target']))?' target="'.$items[$k]['target'].'" ':'').'> '
+ .$items[$k]['txt'].' </a>'."\n";
+
+ echo '</li>'."\n"; // al-al menüpont vége (f)
+ } // for - on items
+ } // foreach - on subArray
+
+ echo '</ul>'."\n"; // fmenu
+ } // vannak al-al menük (f -menü)
+
+ echo '</li>'."\n"; // almenü-pont vége (sub)
+ } // for - on sItems
+ } // ha nem sub == aSub
+ } // foreach pageArray
+ echo '</ul>'."\n"; // submenu
+ } // vannak almenük (sub)
+ echo '</li>'."\n"; // menüpont vége (page)
+ } // for - on pItems
+ } // ha aModule != 'modules'
+ } // foreach on MENU
+ }
+ echo '<li class="start onClickHideShow">&nbsp</li>';
+ echo '</ul>'."\n";
+
+ $loginout_img = _svgLoginout(array('print'=>false, 'color' => $_COLORS['login']));
+ $down_svg = _svgDown(array('print'=>false, 'color' => $_COLORS['login']));
+ // ------------------------
+
+ echo '<ul id="poz">';
+ echo '<li>';
+ if (!defined('_SCHOOL_NAME')) define('_SCHOOL_NAME',_SITE/*.' - '._MAIN_TITLE.'.'._MAYORREV*/);
+ echo '<span class="school">'._SCHOOL_NAME.'</span>';
+
+ if ($policy == 'public') {
+ echo '<div class="nev hideShowContainer">'.$down_svg.'<span class="onClickHideShow" style="padding-left:14px;" > '._LOGIN.'</span>';
+ echo '<a id="logout" title="'._LOGIN.'" href="'.href('index.php?page=auth&f=login&toPolicy=private',array('skin','lang','sessionID')).'">';
+ echo $loginout_img;
+ echo '</a>';
+ echo '<div id="settings" class="openable" style="display: none">';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=parent').'">'.str_replace(' ','&nbsp;',_PARENT_LOGIN).'</a></td>';
+ echo '<td><a href="'.href('index.php?page=auth&f=login&toPolicy=private').'">'._LOGIN.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ formBegin();
+ formEnd();
+ echo '</div>';
+ echo '</div>';
+ } else {
+ echo '<div class="nev hideShowContainer">'.$down_svg.'<span class="onClickHideShow" style="padding-left:14px;" > '._USERCN.'</span>';
+ echo '<a id="logout" title="'._LOGOUT.'" href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">';
+ echo $loginout_img;
+ echo '</a>';
+ echo '<div id="settings" class="openable" style="display: none">';
+ echo '<div>';
+ echo '<p class="name">'._USERCN.'</p>';
+ echo '<p class="account">'._USERACCOUNT.'</p>';
+ echo '</div>';
+ echo '<table>';
+ echo '<tr>';
+ echo '<td><a href="'.href('index.php?page=password&f=changeMyPassword&userAccount='._USERACCOUNT.'&policy=public',array('skin','lang','sessionID')).'">'._PASSWORD.'</a></td>';
+ echo '<td><a href="'.href('index.php?page=session&f=logout&policy=public',array('skin','lang','sessionID')).'">'._LOGOUT.'</a></td>';
+ echo '</tr>';
+ echo '</table>';
+ formBegin();
+ /* Némi javascipt támogatás a session kezelésre ebben a formban */
+ $sessionMaxIdleTime=$sessionAlertTime=0;
+ if ((_SESSIONID!='' && _POLICY!='public') && defined('_SESSION_MAX_IDLE_TIME') && _SESSION_MAX_IDLE_TIME>0) {
+ $sessionMaxIdleTime=((_SESSION_MAX_IDLE_TIME*1000*60*60)+1000);
+ if (defined('_SESSION_ALERT_TIME')) $sessionAlertTime = ((_SESSION_MAX_IDLE_TIME*1000*60*60)-(_SESSION_ALERT_TIME*1000*60));
+ }
+ echo '<input type="text" id="SESSION_MAX_IDLE_TIME" value="'.$sessionMaxIdleTime.'" />';
+ echo '<input type="text" id="SESSION_ALERT_TIME" value="'.$sessionAlertTime.'" />';
+ /* --- */
+ formEnd();
+ echo '</div>';
+ echo '</div>';
+ } // policy != punlic
+//var_dump(substr($_SERVER["REQUEST_URI"],0,strpos($_SERVER["REQUEST_URI"],'sessionID=')));
+
+ echo '</li>';
+ echo '</ul>';
+
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy, $SCHOOL_LOGO, $SCHOOL_IDENTITY, $SCHOOL_URL, $NAV;
+
+ _updateWindow();
+ _keyHelp();
+
+ echo '<div id="mayorhead">';
+
+ //if (date('m')==12) $imgextra = '-santa'; else $imgextra = '';
+ if (defined('_HOME_LOGO') && file_exists(_HOME_LOGO)) $HOME_LOGO=_HOME_LOGO;
+ elseif (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+
+ if (defined('_HOME_LOGO_BADGE') && file_exists(_HOME_LOGO_BADGE)) $HOME_LOGO_BADGE=_HOME_LOGO_BADGE;
+// elseif (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+// $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+
+ echo '<div id="head"></div><!-- we are holding some place here -->';
+
+ echo "<!--// NAV1 start //-->\n";
+ echo '<div id="nav1">';
+ echo '<div class="hideShowContainer">';
+
+ $db = 0; $max = __MAX_MENU; // Az egy sorba megjeleníthető menüpontok maximális száma
+ if (is_array($NAV[1])) foreach ($NAV[1] as $N1) {
+ $txt = '';
+ $i = intval($N1['index']);
+ if (isset($N1['sub'])) {
+ if (!isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N1['page'] ]['sub'][ $N1['sub'] ][ $N1['f'] ][ $i ];
+ }
+ } elseif (isset($N1['f'])) {
+ $M = $MENU['modules'][ $N1['page'] ][ $N1['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N1['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N1['page'].'&sub='.$N1['sub'].'&f='.$N1['f']);
+
+ if ($db<$max) {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="aktiv" '; else $class = '';
+ } else {
+ if ($page == $N1['page'] && $sub == $N1['sub'] && (!isset($N1['f']) || $f == $N1['f'])) $class = ' class="openable aktiv" '; else $class = ' class="openable" ';
+ $style = ' style="display: none;" ';
+ }
+
+ if ($txt != '') { // Hibás hivatkozás ne rontsa el a menüt!
+ if ($db == $max) echo '<span class="onClickHideShow openable">&nabla;</span><span class="onClickHideShow openable" style="display: none;">&Delta;</span><br />';
+ echo '<a href="'.$href.'"'.$class.$style.'>';
+ echo $txt;
+ echo '</a>';
+ $db++;
+ }
+
+
+ }
+ echo '</div>';
+ echo '</div>'."\n<!--// NAV1 end //-->\n";
+
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+
+ echo '<div class="mayorLogo">';
+ echo '<a href="'.href('index.php').'">';
+ echo '<img src="'.$HOME_LOGO.'" alt="MaYoR" id="logo" />';
+ if ($HOME_LOGO_BADGE!='') echo '<img src="'.$HOME_LOGO_BADGE.'" alt="" id="logobadge" />';
+ echo '</a>';
+ echo '</div>';
+
+
+ echo "<!--// NAV2 start //-->\n";
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'vertical' : 'horizontal';
+ echo '<div id="nav2" class="'.$_defaultPageLayout.'">';
+// echo '<span id="hideNav2:tavtarto" class="onClickHide">X</span>';
+ if (is_array($NAV[2])) {
+ echo '<ul>';
+ foreach ($NAV[2] as $N2) {
+ $txt = '';
+ $i = intval($N2['index']);
+ if (isset($N2['sub'])) {
+ if (!isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['sub'] ][ $i ];
+ } else {
+ $M = $MENU['modules'][ $N2['page'] ]['sub'][ $N2['sub'] ][ $N2['f'] ][ $i ];
+ }
+ } elseif (isset($N2['f'])) {
+ $M = $MENU['modules'][ $N2['page'] ][ $N2['f'] ][ $i ];
+ } else {
+ $M = $MENU[$N2['page']][ $i ];
+ }
+ $txt = $M['txt'];
+ $url = $M['url'];
+ $get = $M['get'];
+ if (isset($get)) $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f'], $get);
+ else $href = href( isset($url)?$url:'index.php?page='.$N2['page'].'&sub='.$N2['sub'].'&f='.$N2['f']);
+
+ if ($page == $N2['page'] && $sub == $N2['sub'] && (!isset($N2['f']) || $f == $N2['f'])) $class = ' class="aktiv" '; else $class = '';
+ if ($txt != '') {
+ echo '<li>';
+ echo '<a href="'.$href.'"'.$class.'>';
+ echo $txt;
+ echo '</a>';
+ echo '</li>';
+ }
+ }
+ echo '</ul>';
+ }
+ echo '</div>'."\n<!--// NAV2 end //-->\n";
+
+ echo '</div>'."\n";
+
+}
+
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ $_defaultPageLayout = ($_SESSION['pageLayout']==0) ? 'leftpad' : 'toppad';
+ echo '<div class="mayorfoot '.$_defaultPageLayout.'" id="mayorfoot">'._MAIN_FOOTER.'</div>'."\n\n";
+ echo "</body>\n</html>";
+}
+
+
+?>
diff --git a/mayor-orig/www/skin/teszt/base/img/MaYoR-star_medium.png b/mayor-orig/www/skin/teszt/base/img/MaYoR-star_medium.png
new file mode 100644
index 00000000..50ea66a7
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/MaYoR-star_medium.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/base/img/MaYoR-star_small.png b/mayor-orig/www/skin/teszt/base/img/MaYoR-star_small.png
new file mode 100644
index 00000000..b503f4de
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/MaYoR-star_small.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.png b/mayor-orig/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.png
new file mode 100644
index 00000000..a6d02c3b
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/MaYoR_elektronikus_naplo.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/base/img/MaYoR_rypple.png b/mayor-orig/www/skin/teszt/base/img/MaYoR_rypple.png
new file mode 100644
index 00000000..8bbdfad9
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/MaYoR_rypple.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/base/img/MaYoR_star.png b/mayor-orig/www/skin/teszt/base/img/MaYoR_star.png
new file mode 100644
index 00000000..d701f106
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/MaYoR_star.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/base/img/mayor_small_ssl.png b/mayor-orig/www/skin/teszt/base/img/mayor_small_ssl.png
new file mode 100644
index 00000000..ca42a8d0
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/mayor_small_ssl.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/base/img/school_logo.php b/mayor-orig/www/skin/teszt/base/img/school_logo.php
new file mode 100644
index 00000000..19f74ba0
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/school_logo.php
@@ -0,0 +1,91 @@
+<?php
+/*
+ Előállít egy megadott képből egy 200px széles, adott színre átszínezett képet - vagy ha a kép nem érhető el, akkor az alapértelmezett képet adja
+*/
+
+//error_reporting(E_ALL);
+//ini_set('display_errors', 1);
+ require('/etc/mayor/main-config.php');
+ require(_CONFIGDIR.'/skin-teszt/config.php');
+ if(!function_exists('imagefilter')) require(_BASEDIR.'/include/share/gd/imagefilter.php');
+
+ if (!defined('_CACHEDIR')) define('_CACHEDIR','/tmp');
+ $defaultImgUrl = _BASEDIR.'/skin/teszt/base/img/mayor_small_ssl.png';
+ $imgUrl = ($_GET['imgUrl'] != '')?$_GET['imgUrl']:$defaultImgUrl;
+ $red = 242;
+ $green = 54;
+ $blue = 104;
+ $maxWidth = 200;
+ $maxHeight = 80;
+
+$h=0.5;
+$red = 242*$h;
+$green = 54*$h;
+$blue = 104*$h;
+
+ $fileName = basename($imgUrl);
+ $cacheFile = _CACHEDIR.'/'.$fileName;
+ header('Content-Type: image/png');
+ if (!_SCHOOL_LOGO_COLORIZE && !_SCHOOL_LOGO_RESIZE) {
+ // A képet nem kell átalakítani - közvetlenül adjuk át
+ $fp = fopen($imgUrl, 'rb');
+ fpassthru($fp);
+ exit;
+ } elseif ((!file_exists($cacheFile)) || (_SCHOOL_LOGO_FORCE_GENERATE === true)) { // Ha nincs elkeselve még a kép, vagy kényszerítjük a generálást
+ // beolvassuk
+ $im = imagecreatefrompng($imgUrl);
+ // Ha nem sikerül, akkor az alapértelmezettet vesszük
+ if (!$im && $imgUrl != $defaultImgUrl) {
+ $imgUrl = $defaultImgUrl;
+ $fileName = basename($imgUrl);
+ $cacheFile = _CACHEDIR.'/'.$fileName;
+ // Ha már el van cache-elve, akkor kiadjuk
+ if (file_exists($cacheFile)) {
+ $fp = fopen($cacheFile, 'rb');
+ fpassthru($fp);
+ exit;
+ }
+ // ha nincs a cache-ben, akkor beolvassuk
+ $im = imagecreatefrompng($defaultImgUrl);
+ }
+
+ // Ha sikerült
+ if ($im) {
+ // Átszínezzük
+ if (_SCHOOL_LOGO_COLORIZE !== false) {
+ // Szüreke árnyalatossá tesszük
+ imagefilter($im, IMG_FILTER_GRAYSCALE);
+ // Majd az adott színárnyalatra átszínezzük
+ imagefilter($im, IMG_FILTER_COLORIZE, $red, $green, $blue);
+ }
+ // Átméretezzük
+ list($width, $height) = getimagesize($imgUrl);
+ if (_SCHOOL_LOGO_RESIZE !== false) {
+ // Új méretek meghatározása
+ $percent = min($maxWidth / $width, $maxHeight / $height);
+ $newHeight = intval($height * $percent);
+ $newWidth = intval($width * $percent);
+ } else {
+ $newHeight = $height;
+ $newWidth = $width;
+ }
+ // Ha nem kell átméretezni, akkor is átméretezzük - különben csúnya pixeles lesz :(
+ $imNew = imagecreatetruecolor($newWidth, $newHeight);
+
+ imagealphablending($imNew, false); // setting alpha blending on
+ imagecopyresampled($imNew, $im, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height);
+ imagesavealpha($imNew, true); // save alphablending setting (important)
+ // A képet a cache-be mentjük
+ imagepng($imNew, $cacheFile);
+ imagedestroy($imNew);
+ imagedestroy($im);
+
+ }
+
+ }
+ $fp = fopen($cacheFile, 'rb');
+ fpassthru($fp);
+ exit;
+
+
+?>
diff --git a/mayor-orig/www/skin/teszt/base/img/settings.png b/mayor-orig/www/skin/teszt/base/img/settings.png
new file mode 100644
index 00000000..272d4c5f
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/base/img/settings.png
Binary files differ
diff --git a/mayor-orig/www/skin/teszt/module-auth/css/login.css b/mayor-orig/www/skin/teszt/module-auth/css/login.css
new file mode 100644
index 00000000..872d000f
--- /dev/null
+++ b/mayor-orig/www/skin/teszt/module-auth/css/login.css
@@ -0,0 +1,46 @@
+@media screen {
+
+div.mayorbody img { border-width: 0px; }
+div.mayorbody h1 {text-align: center; margin:10px; font-size:20px; }
+div.mayorbody h2 {text-align: center; margin:10px; font-size: 15px; }
+div.mayorbody table { font-size: 12px; }
+div.mayorbody table.main {width: 100%; border-width: 0px;}
+div.mayorbody table.loginablak {
+ background-color: #ffffff;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #555550;
+ width:400px}
+div.mayorbody td { padding: 2px }
+div.mayorbody form { margin: 30px;padding: 0px; }
+div.mayorbody input { font-size: 12px; font-family:Verdana,Arial; background-color: #fffff0; border: solid 1px #666690;}
+div.mayorbody select.pp { padding: 0px; margin: 0px; border: none 0px #778890; font-size: 12px; background-color: #eeeee0; font-family: Verdana,Arial; }
+div.mayorbody select.pp>option { border: none 0px black; }
+div.mayorbody input.submit { border: solid 1px #776650; }
+div.mayorbody table.loginablak thead td {
+ background-color: #666690;
+ text-align: center;
+ font-family: Verdana,arial;
+ font-size: 10pt;
+ font-weight: bold;
+ color: white;
+ border-bottom: solid 1px white;
+div.mayorbody }
+div.mayorbody table.loginablak tbody tr.top td { border-top: solid 1px #666690; }
+
+div.mayorbody tfoot td { background-color: #888880; text-align: center; }
+div.mayorbody td.co { text-align: center; vertical-align: bottom; font-family: Verdana,arial; font-size:8pt; }
+div.mayorbody img.aauthImg {
+ border-top: solid 1px #666690;
+ border-bottom: solid 1px #888880;
+ border-left: solid 1px #666690;
+ border-right: solid 1px #888880;
+}
+#warning { height: 40px; }
+#capsLockWarning {
+ background: #ffffaa; color: #ffaaaa;
+ text-align: center; font-size: 20px; font-weight: bold;
+ padding: 20px; margin: 10px auto; width: 300px;
+}
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/vakbarat/base/css/base.css b/mayor-orig/www/skin/vakbarat/base/css/base.css
new file mode 100644
index 00000000..9bd3ce5f
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/base/css/base.css
@@ -0,0 +1,175 @@
+/* Új menü */
+
+ ul#pagemenu {
+ padding: 5px;
+ text-align: left;
+ background-color: #040562;
+ list-style-type: none;
+ margin:0px;
+ }
+ ul#pagemenu li {
+ display: inline;
+ border-width: 0px 1px 0px 0px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px;
+ margin:10px 0px 10px 0px;
+ }
+ ul#pagemenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 3px 10px;
+ margin: 0px;
+ }
+ ul#pagemenu li a:hover {
+ background-color: yellow;
+ text-decoration: underline;
+ color: black;
+ }
+ ul#pagemenu li.active a {
+ background-color: yellow;
+ color: black;
+ }
+ ul#pagemenu li.active a:hover {
+ background-color: white;
+ color: black;
+
+ }
+
+/* SUB */
+
+ ul#submenu {
+ padding: 5px;
+ text-align: left;
+ background-color: #040582;
+ list-style-type: none;
+ border-top: solid 1px #666666;
+ margin:0px;
+ }
+ ul#submenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ padding: 0px 0px;
+ }
+ ul#submenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 3px 10px;
+ margin: 0px;
+ }
+ ul#submenu li a:hover {
+ background-color: yellow;
+ color: black;
+ text-decoration: underline;
+ }
+ ul#submenu li.active a {
+ background-color: yellow;
+ color: black;
+ padding:3px;
+ }
+ ul#submenu li.active a:hover {
+ background-color: white;
+ color: black;
+
+ }
+
+/* f */
+
+ ul#fmenu {
+ padding: 5px;
+ text-align: left;
+ background-color: #0405a2;
+ list-style-type: none;
+ margin:0px;
+ border-top: solid 1px #666666;
+ }
+ ul#fmenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #8485a2;
+ border-style: dotted;
+ }
+ ul#fmenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 3px 10px;
+ }
+ ul#fmenu li a:hover {
+ background-color: rgb(100,100,140);
+ text-decoration: underline;
+ }
+ ul#fmenu li.active a {
+ background-color: yellow;
+ color: black;
+ padding:3px;
+ }
+ ul#fmenu li.active a:hover {
+ background-color: white;
+ color: black;
+ }
+
+ #changeSkin {
+ display: inline;
+ }
+ #changeSkin .onChangeSubmit {
+ background-color: #eeeeee;
+ font-size:14px;
+ }
+
+ html body {
+ font-family: Verdana, sans-serif;
+ font-size: 12px;
+ margin:0px;
+ padding:0px;
+ background-color: white;
+ }
+
+ /* set default layout! */
+ table { font-size: 12px; }
+
+ form { margin: 0px; }
+
+ div.mayorbody {
+
+ padding: 0px;
+
+ }
+
+ div.mayorfoot {
+ text-align: center;
+ font-size: 10px;
+ width:100%;
+ }
+/* - Alert - */
+
+ form.mayorAlert { margin: 0px; padding: 0px; }
+ form.mayorAlert input { display: none; }
+ div.errorMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #ff0000;
+ padding: 15px;
+ }
+ div.errorMsg span {
+ font-style: italic;
+ }
+
+ div.infoMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #0000ff;
+ padding: 15px;
+ }
+ div.infoMsg span {
+ font-style: italic;
+ }
+
+ span.alertParam {
+ color: green;
+ }
+
+ h1#menu { text-align: left; }
+ h1#tartalom { text-align: left; }
+ h1#lablec { text-align: left; }
diff --git a/mayor-orig/www/skin/vakbarat/base/html/base.phtml b/mayor-orig/www/skin/vakbarat/base/html/base.phtml
new file mode 100644
index 00000000..62f6f4bb
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/base/html/base.phtml
@@ -0,0 +1,231 @@
+<?php
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpheader();
+
+ html_head($page,$sub,$f,$lang,$skin);
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+
+ _debugLayer();
+
+ echo '<div class="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - Vakbarát ';
+ echo _MAIN_TITLE;
+ echo '.';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ //includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ //includeJS($page,$sub,$f,$skin);
+ if ($SSSHH!=null && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '<link rel="shortcut icon" href="/skin/classic/base/img/favicon.ico" />'."\n";
+ echo "</head>\n<body>\n";
+
+}
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $page, $sub, $f;
+
+ echo '<ul id="pagemenu">';
+ // --------------------------------------------------------
+ if (is_array($MENU)) {
+ foreach ($MENU as $aModule => $items) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($items); $i++) {
+
+ if ($page == $aModule and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ //echo '<a accesskey="m" href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+ echo '<a accesskey="'.$items[$i]['txt'][0].'" href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+
+ echo '</li>';
+ }
+ }
+ }
+ }
+ // ---------------------------------------------------
+ echo '</ul>';
+
+ // II: SZINT
+ @$pageArray = $MENU['modules'][$page];
+ $aPage = $page;
+
+ if (is_array($pageArray)) {
+ echo '<ul id="submenu">';
+ foreach ($pageArray as $anF => $items) {
+ if ($anF != 'sub') {
+ for ($i=0;$i<count($items);$i++) {
+ if (
+ $page == $aPage and
+ (
+ (
+ !isset($items[$i]['url'])
+ and $f == $anF
+ )
+ or
+ (
+ isset($items[$i]['url']) and
+ strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false
+ )
+ )
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&f=$anF",array('policy','sessionID','lang','skin'));
+ }
+ //echo '<a accesskey="n" href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+ echo '<a accesskey="'.$items[$i]['txt'][0].'" href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+
+ echo '</li>';
+ }
+ }
+ }
+ echo '</ul>'."\n";
+ }
+
+ // III: SZINT
+ @$subArray = $MENU['modules'][$page]['sub'][$sub];
+ $aSub = $sub;
+
+ if (is_array($subArray)) {
+ echo '<ul id="fmenu">';
+
+ foreach ($subArray as $anF => $items) {
+ for ($i=0;$i<count($items);$i++) {
+ if ($aPage == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&sub=$aSub&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&sub=$aSub&f=$anF");
+ }
+ //echo '<a accesskey="b" href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'> '.$items[$i]['txt'].' </a>';
+ echo '<a accesskey="'.$items[$i]['txt'][0].'" href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'> '.$items[$i]['txt'].' </a>';
+
+ echo '</li>';
+ }
+ }
+
+ echo '</ul>'."\n";
+ }
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy;
+
+ _updateWindow();
+ _keyHelp();
+
+ if (date('m')==12) $imgextra = '-santa'; else $imgextra = '';
+
+ if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl'.$imgextra.'.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl'.$imgextra.'.png';
+ //if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl.gif'))
+ // $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl.gif';
+ if (!file_exists($HELP_LOGO = 'skin/'.$skin.'/module-help/img/help_small.jpg'))
+ $HELP_LOGO = 'skin/'._DEFAULT_SKIN.'/module-help/img/help_small.jpg';
+
+ ## Név, Oldal info, Policy
+// echo '<div class="namepolicy">'."\n";
+ echo '<a href="#tartalom">Ugrás a tartalomhoz</a><br />';
+ echo '<a href="'.href('index.php').'" accesskey="h" class="nev">'._HOME.(_USERCN!='' ? ' ('._USERCN.')' : '').'</a>';
+// echo '</div>'."\n";
+ ## ------------------------
+ echo '<h1 id="menu">Menü</h1>';
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+ echo '<h1 id="tartalom">Tartalom</h1>'."\n";
+}
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ echo '<h1 id="lablec">Lábléc</h1>'."\n";
+ echo '<a href="'.href('index.php?skin=classic',array('sessionID','lang','policy')).'">'._SWITCH_TO_CLASSIC_SKIN.'</a>';
+ echo '<div class="mayorfoot">'._MAIN_FOOTER.'</div>';
+ echo "</body>\n</html>";
+}
+
+?>
diff --git a/mayor-orig/www/skin/vakbarat/module-auth/css/login.css b/mayor-orig/www/skin/vakbarat/module-auth/css/login.css
new file mode 100644
index 00000000..b94c93d3
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-auth/css/login.css
@@ -0,0 +1,9 @@
+img { border-width: 0px; }
+h1 {text-align: center; margin: 10px; font-size:20px; }
+h2 {text-align: center; margin: 10px; font-size: 15px; }
+h3 {text-align: center; margin: 10px; font-size: 12px; }
+form#login { margin: 30px;padding: 0px; text-align: center; }
+input { font-size: 12px; font-family:Verdana,Arial; background-color: #fffff0; border: solid 1px #666690;}
+select.pp { padding: 0px; margin: 0px; border: none 0px #778890; font-size: 12px; background-color: #eeeee0; font-family: Verdana,Arial; }
+select.pp>option { border: none 0px black; }
+input.submit { border: solid 1px #776650; }
diff --git a/mayor-orig/www/skin/vakbarat/module-auth/html/login.phtml b/mayor-orig/www/skin/vakbarat/module-auth/html/login.phtml
new file mode 100644
index 00000000..c7c54cfa
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-auth/html/login.phtml
@@ -0,0 +1,55 @@
+<?php
+
+ function putLoginForm($userAccount,$toPolicy,$toPSF='',$toSkin='') {
+
+ global $POLICIES, $AUTH, $sessionID;
+ echo '<h1>'._SITE.'</h1>'."\n";
+ echo '<h2>'._GREETING.'</h2>'."\n";
+
+ formBegin(array('method'=>'post',
+ 'action'=>'index.php?policy=public&page=auth&f=login&toPolicy='.$toPolicy.'&sessionID='.$sessionID ,
+ 'name'=>"loginablak", 'id'=>'login'));
+
+ echo '<input type="hidden" name="action" value="login" />';
+ echo '<input type="hidden" name="toPSF" value="'.$toPSF.'" />';
+
+ echo '<h3>'."\n";
+ echo _LOGIN;
+ echo '</h3>'."\n";
+
+ echo '<label for="focus">'._USERNAME.'</label>';
+ echo '<input id="focus" type="text" accesskey="u" tabindex="1" name="userAccount" value="" maxlength="32" />'."<br />\n";
+
+ echo '<select class="pp" name="toPolicy">'."\n";
+ $SEL = array($toPolicy => ' selected="selected" ');
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_policy = $POLICIES[$i];
+ if ($AUTH[$_policy]['authentication'] != 'none') {
+ echo '<option value="'.$_policy.'" '.$SEL[$_policy].'>';
+ echo constant('_'.strtoupper($_policy).'_PASSWORD');
+ echo '</option>'."\n";
+ }
+ }
+ echo '</select>'."\n";
+
+ echo '<input id="userPassword" type="password" accesskey="p" tabindex="2" name="userPassword" value="" />'."<br />\n";
+
+ echo '<input accesskey="l" type="submit" tabindex="3" name="button" value=" '. _LOGIN .' "
+ onclick="document.loginablak.button.disabled=true;
+ document.loginablak.button.value=\' Várj... \';
+ document.loginablak.submit()" class="submit" />'."\n";
+
+ formEnd();
+
+/*
+ echo '<table style="width: 100%" align="center">'."\n";
+ echo '<tr>'."\n";
+ echo '<td class="co">'."\n";
+ echo _MAYOR_DESC."\n";
+ echo '</td>'."\n";
+ echo '</tr>'."\n";
+ echo '</table>'."\n";
+*/
+ }
+
+?>
diff --git a/mayor-orig/www/skin/vakbarat/module-naplo/css/haladasi/haladasi.css b/mayor-orig/www/skin/vakbarat/module-naplo/css/haladasi/haladasi.css
new file mode 100644
index 00000000..efe8d51a
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-naplo/css/haladasi/haladasi.css
@@ -0,0 +1,187 @@
+
+ table.haladasiBejegyzesek {
+ background-color: rgb(50,60,80);
+ margin-top: 30px;
+ width: 98%;
+ }
+ table.haladasiBejegyzesek tbody tr:hover td {
+ background-color: white;
+ }
+ table.haladasiBejegyzesek tbody tr td input:focus {
+ background-color: white !important;
+ }
+ table.haladasiBejegyzesek tbody tr td input.gomb:focus {
+ background-color: red;
+ }
+
+ table.haladasiBejegyzesek tbody.parosNap {
+ background-color: #cccccc;
+ }
+ table.haladasiBejegyzesek tbody.paratlanNap {
+ background-color: #eeeeee;
+ }
+ table.haladasiBejegyzesek tbody td.ora {
+ text-align: center;
+ }
+
+/* TBODY TH */
+
+ table.haladasiBejegyzesek tbody th.nincsOra {
+ background-color: rgb(200,200,200);
+ color: rgb(100,100,100);
+ text-align: center;
+ border: none;
+ font-weight: normal;
+ }
+ table.haladasiBejegyzesek tbody th.nap {
+ text-align: center;
+ background-color: #666688;
+ color: white;
+ border: none;
+ }
+ table.haladasiBejegyzesek tbody.szunet th.nap {
+ background-color: #778877;
+ }
+ table.haladasiBejegyzesek tbody.tanitasNelkul th.nap {
+ background-color: #aaaa44;
+ }
+
+/* --- */
+
+ table.haladasiBejegyzesek tbody td.dolgozat {
+ background-color: #ffaa44;
+ padding-left: 20px;
+ }
+ table.haladasiBejegyzesek tbody td.dolgozat a {
+ text-decoration: none;
+ color: black;
+ }
+
+ table.haladasiBejegyzesek tbody td.nincsBeirva {
+ font-style:italic;
+ }
+
+ table.haladasiBejegyzesek th {
+ border-style: none none solid none;
+ border-width: 0 0 2px 0;
+ border-color: #556677;
+ background-color: rgb(50,60,80);
+ color: rgb(210,215,220);
+ border-style: solid;
+ border-width: 1px;
+ }
+ table.haladasiBejegyzesek th.fejlec8 {
+ height: 30px;
+ text-align: center
+ }
+ table.haladasiBejegyzesek th.fejlec8 a { color: white }
+
+
+ table.haladasiBejegyzesek td.osztaly { text-align: center; }
+ table.haladasiBejegyzesek select {
+ font-family: Verdana,Arial;
+ background-color: rgb(50,60,80);
+ color: rgb(210,215,220);
+ border-style: solid;
+ border-width: 1px;
+ }
+
+ input { font-family: Verdana,Arial; color: inherit; }
+ input.data { border-style: none none solid none;
+ border-width: 1px;
+ border-color: #dddddd;
+ width:85%;
+ }
+ input.data:hover { border-bottom: solid 1px #556677; background-color: white }
+ table.haladasiBejegyzesek tbody.parosNap input.data { border-left: solid 2px #cccccc; }
+ table.haladasiBejegyzesek tbody.paratlanNap input.data { border-left: solid 2px #eeeeee; }
+ table.haladasiBejegyzesek tbody.parosNap input.beirva { background-color: #cccccc; }
+ table.haladasiBejegyzesek tbody.paratlanNap input.beirva { background-color: #eeeeee; }
+
+ table.haladasiBejegyzesek tbody.parosNap input.data.ajaxRequest,
+ table.haladasiBejegyzesek tbody.paratlanNap input.data.ajaxRequest { border-left: solid 2px orange; }
+ table.haladasiBejegyzesek tbody.parosNap input.gomb.ajaxRequest,
+ table.haladasiBejegyzesek tbody.paratlanNap input.gomb.ajaxRequest { background-color: orange; }
+ table.haladasiBejegyzesek tbody select option.ajaxRequestDone,
+ table.haladasiBejegyzesek tbody.parosNap input.ajaxRequestDone,
+ table.haladasiBejegyzesek tbody.paratlanNap input.ajaxRequestDone { border-left: solid 2px green; }
+
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit td { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit td { background-color: #eeeecc; }
+ table.haladasiBejegyzesek tbody.parosNap tr.helyettesit input.beirva { background-color: #ccccaa; }
+ table.haladasiBejegyzesek tbody.paratlanNap tr.helyettesit input.beirva { background-color: #eeeecc; }
+
+ input.gomb {
+ border: outset 1px #777777; padding: 0px; margin: 0px;
+ background-color: #009900;
+ color: white;
+ }
+
+ input.rejtettGomb { border: none; background-color: rgb(50,60,80); }
+
+ table.haladasiBejegyzesek a.gomb {
+ padding: 1px;
+ background-color: #dddddd;
+ border: outset 1px #556677;
+ margin: 2px;
+ text-decoration: none;
+ }
+ table.haladasiBejegyzesek a.gomb:hover {
+ padding: 1px;
+ background-color: #556677;
+ border: outset 1px #dddddd;
+ margin: 2px;
+ text-decoration: none;
+ color: white;
+ }
+
+ table.haladasiBejegyzesek a {
+ display: block;
+ text-align: center;
+ color: black;
+ text-decoration: none;
+ }
+ table.haladasiBejegyzesek a:hover {
+ color: green;
+ text-decoration: underline;
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td {
+ padding: 0px 10px;
+ background-color: rgb(160,100,120);
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a {
+ color: white;
+ text-decoration: none;
+ }
+
+ table.haladasiBejegyzesek tr.dolgozat td a:hover {
+ color: rgb(260,200,220);
+ }
+
+ table.haladasiBejegyzesek tbody tr td.mg {
+ text-align: center;
+ }
+
+ table.haladasiBejegyzesek tr td.mg span.latogatott {
+ background-color: rgb(100,150,100);
+ color: white;
+ text-decoration: none;
+ padding-left:5px;
+ padding-right:5px;
+ border-bottom: solid 1px green;
+ margin:0px;
+ }
+
+
+ form.hetes {
+ border: solid 1px #008800;
+ background-color: rgb(100,200,100); text-align: center; color: white; margin: 15px 13px; font-weight: bold;
+ }
+ form.hetes input { color: black; border: none; margin: 4px; border: solid 1px #008800; }
+ form.hetes span { padding-right:2em; }
+ form.hetes select option {
+ background-color:# white;
+ border: solix 1px #00aa00;
+ }
diff --git a/mayor-orig/www/skin/vakbarat/module-naplo/css/hianyzas/ora.css b/mayor-orig/www/skin/vakbarat/module-naplo/css/hianyzas/ora.css
new file mode 100644
index 00000000..0b920c4b
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-naplo/css/hianyzas/ora.css
@@ -0,0 +1,106 @@
+
+ table.csoportNevsorHianyzok {
+ background-color: #eeeeee;
+ color: white;
+ }
+ table.csoportNevsorHianyzok thead { background-color: #440055; }
+ table.csoportNevsorHianyzok thead a { color: white; text-decoration: none }
+ table.csoportNevsorHianyzok thead a:hover { color: white; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat {
+ width:100%;
+ background-color: #eeeeee;
+ }
+ table.csoportNevsorHianyzok thead.oraAdat table.oraAdat td { font-weight: normal; }
+
+ table.csoportNevsorHianyzok tfoot { background-color: #440055; }
+ table.csoportNevsorHianyzok tfoot input { background-color: #eeeeee; }
+
+ table.csoportNevsorHianyzok tbody {
+ color: black
+ }
+ table.csoportNevsorHianyzok tbody a { color: black; text-decoration: none }
+ table.csoportNevsorHianyzok tbody a:hover { color: black; text-decoration: underline; }
+
+ table.csoportNevsorHianyzok tbody th {
+ /* background-color: rgb(80,100,120); */
+ }
+
+ table.csoportNevsorHianyzok td { text-align: left; }
+ table.csoportNevsorHianyzok td.késés { text-align: center; }
+ table.csoportNevsorHianyzok tbody tr:hover { background-color: #ffffff;}
+ table.csoportNevsorHianyzok td a { color: inherit; }
+
+ table.csoportNevsorHianyzok select { border: solid 1px #888888; background-color: #eeeeee; }
+ table.csoportNevsorHianyzok select.igazolatlan { color: red }
+ table.csoportNevsorHianyzok select.igazolt { color: green }
+ table.csoportNevsorHianyzok td.igazolatlan { color: red }
+ table.csoportNevsorHianyzok td.igazolt { color: green }
+ table.csoportNevsorHianyzok th.radio { width: 28px; }
+
+ table.csoportNevsorHianyzok tr td input.perc {
+ vertical-align: top;
+ border: solid 1px #aabb99;
+ text-align: right;
+ width:1.5em;
+ }
+
+
+ .jelen {
+ border-color: rgb(100,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .hianyzas, .hiányzás {
+ border-color: rgb(200,100,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .keses, .késés {
+ border-color: rgb(200,200,100);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+ span.perc {
+ border-color: rgb(200,200,100);
+ border-width: 1px 1px 1px 1px;
+ border-style: solid;
+ background-color: rgb(230,210,130);
+ color: rgb(100,80,0);
+ }
+
+ .felszereles_hiany {
+ color: white;
+ background-color:blue;
+ }
+
+ .felmentes {
+ background-color: #eeeeee;
+ color: purple;
+ }
+ .fbetus {
+ border-color: rgb(100,100,200);
+ border-width: 0px 1px 3px 1px;
+ border-style: solid;
+ }
+
+ .igazolt { background-color: #008800; }
+ .igazolatlan { background-color: #880000; }
+
+
+
+
+ table.hianyzasNaptar {
+ background-color: #778890;
+ }
+
+ table.hianyzasNaptar {background-color: #778877; }
+ table.hianyzasNaptar th {background-color: #889988; }
+ table.hianyzasNaptar a { color: #eeeee0; text-decoration: none }
+ table.hianyzasNaptar a:hover { background-color: #667766; }
+ table.hianyzasNaptar td.felszerelesHiany { background-color: rgb(100,100,200); }
+
+ form.vissza { background-color: white; width: 570px; margin: 0px auto; }
+ form.vissza input { border: none; background-color: white; cursor: pointer; }
diff --git a/mayor-orig/www/skin/vakbarat/module-naplo/css/naplo.css b/mayor-orig/www/skin/vakbarat/module-naplo/css/naplo.css
new file mode 100644
index 00000000..64f55ecd
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-naplo/css/naplo.css
@@ -0,0 +1,71 @@
+
+ table.toolBar { width: 95%; border-spacing: 0px; margin: 1em auto; }
+ table.toolBar form { margin: 0px; padding: 0px; }
+ table.toolBar tr.first td.toolBarTitle, table.toolBar tr.first td.toolBarTool { border: solid 1px #333333; }
+ table.toolBar td.gap { width: 50%; border-spacing: 0px; }
+ table.toolBar td.toolBarTitle {
+ background-color: white;
+ width: 100%;
+ font-size: 18px;
+ font-weight: bold;
+ }
+ #toolBarIntezmeny, #toolBarHelpButton {
+ display:none;
+ }
+
+ table.toolBar td.toolBarTool {
+ border: solid 1px #666699;
+ background-color: #666699;
+ margin: 0px;
+ padding: 0px;
+ }
+ table.toolBar td.toolBarTool table { border-spacing: 0px; width: 100%; }
+ table.toolBar td.toolBarTool table th {
+ background-color: rgb(90,133,184);
+ text-align: left;
+ color: white;
+
+ padding: 0px 0px 0px 4px;
+ border-color: rgb(21,71,123);
+ border-width: 1px 0px;
+ border-style: solid;
+ }
+ table.toolBar input.toolSubmit { vertical-align: middle; border: 0px none; }
+ table.toolBar td.toolBarTool select { border: 0px; }
+ table.toolBar th {
+ background-color: rgb(90,133,184);
+ text-align: center;
+ color: white;
+ padding: 0px 0px 0px 4px;
+
+ border-color: rgb(21,71,123);
+ border-width: 1px 0px 1px 1px;
+ border-style: solid;
+ }
+ table.toolBar img { border: none; }
+
+ table.toolBar table.hianyzasOsszegzo { width:100%; }
+ table.toolBar table.hianyzasOsszegzo th {
+ text-align: center !important;
+ border-style: none none solid none;
+ border-color: #888888;
+ border-width: 0px 0px 1px 0px;
+ }
+ table.toolBar table.hianyzasOsszegzo td { width: 18%; border-bottom: solid 1px rgb(60,80,100); background-color: #dddddd; text-align: center; }
+
+ form.lapozo input { border: solid 1px #555555; }
+
+ table.flipper input {height: 38px; width: 16px; color: white;
+ border-top: solid 1px black;
+ border-bottom: solid 1px black;
+ border-left: none;
+ border-right: none;
+ background-color: rgb(90,133,184);
+ }
+ table.flipper input.step { background-color: rgb(100,100,60); }
+
+ div.beirasAdatok { text-align: center; }
+ div.beirasAdatok span { font-weight: bold; font-size: 20pt; vertical-align: middle; }
+ div.beirasAdatok img { vertical-align: middle; }
+
+ table.toolBar input { }
diff --git a/mayor-orig/www/skin/vakbarat/module-naplo/css/osztalyozo/diak.css b/mayor-orig/www/skin/vakbarat/module-naplo/css/osztalyozo/diak.css
new file mode 100644
index 00000000..4028dad7
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-naplo/css/osztalyozo/diak.css
@@ -0,0 +1,24 @@
+
+ table.osztalyozo { background-color: rgb(220,220,220); color: white; }
+ table.osztalyozo a { color: white; text-decoration:none }
+ table.osztalyozo a:hover { color: white; text-decoration:underline }
+ table.osztalyozo thead th { background-color: #660077; padding: 2px 4px 2px 4px; }
+ table.osztalyozo thead th.nev { background-color: #660077; height:30px; }
+ table.osztalyozo thead td { background-color: #440055; text-align: center; padding: 0px 4px 0px 4px; }
+ table.osztalyozo thead th.biz { background-color: #224433; }
+
+ table.osztalyozo tfoot th { background-color: rgb(100,120,120); padding: 2px; vertical-align: center; }
+ table.osztalyozo tfoot th span { padding: 1px 10px; font-weight: normal; background-color: rgb(220,220,220); }
+
+ table.osztalyozo tbody th { background-color: rgb(130,140,150); font-weight: normal; padding: 4px 4px 4px 4px; }
+ table.osztalyozo tbody th a { color: white; text-decoration: none; }
+ table.osztalyozo tbody th.atlag { background-color: rgb(100,100,130); padding: 0px 4px 0px 4px; }
+ table.osztalyozo tbody td { background-color: #eeeeee; }
+ table.osztalyozo tbody td.biz { background-color: #446655; text-align: center; padding-right:3px; padding-left:3px; }
+ table.osztalyozo tbody td a { text-decoration: none; }
+
+ table.osztalyozo tbody td a.jegy1, table.osztalyozo tfoot th span.jegy1 { color: blue; }
+ table.osztalyozo tbody td a.jegy2, table.osztalyozo tfoot th span.jegy2 { color: black; }
+ table.osztalyozo tbody td a.jegy3, table.osztalyozo tfoot th span.jegy3 { color: green; }
+ table.osztalyozo tbody td a.jegy4, table.osztalyozo tfoot th span.jegy4 { color: red; }
+ table.osztalyozo tbody td a.jegy5, table.osztalyozo tfoot th span.jegy5 { color: purple; }
diff --git a/mayor-orig/www/skin/vakbarat/module-naplo/css/uzeno/uzeno.css b/mayor-orig/www/skin/vakbarat/module-naplo/css/uzeno/uzeno.css
new file mode 100644
index 00000000..ab1e9cf6
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-naplo/css/uzeno/uzeno.css
@@ -0,0 +1,79 @@
+
+
+ table.uzeno, table.ujUzenet, table.egyUzenet {
+ width:90%;
+ background-color: rgb(50,50,100);
+ margin-top:1em;
+ margin-bottom:1em;
+ font-size:large;
+ }
+ table.uzeno thead tr th, table.ujUzenet tr th { color: white; border-bottom: solid 1px #ffffff; background-color: rgb(100,100,150); padding:0.5em; }
+
+ table.ujUzenet select { border: solid 1px #888888; }
+ table.ujUzenet tr td { text-align: center }
+ table.ujUzenet textarea { width:98%; height: 100px; border: solid 1px rgb(100,100,90); background-color:#eeeeee; }
+
+ table.ujUzenet tr.admin td textarea { background-color: green; color: white; }
+
+ table.uzeno thead tr th.dt { width:180px; }
+ table.uzeno thead tr th.cimzett { width:200px; }
+
+ table.uzeno tfoot tr th, table.uzeno tfoot tr th a { color:white; }
+
+ table.uzeno tbody tr td { padding-left:4px; background-color: #dddddd; }
+ table.uzeno tbody tr th { padding-left:4px; text-align:left; font-weight: normal; }
+
+ table.uzeno tbody tr td.content { padding:10px; background-color:#eeeeee; }
+ table.uzeno tbody tr.uj td { background-color: #eeeeee; }
+ table.uzeno tbody tr.olvasott td { background-color: #bbbbbb;}
+
+ table.uzeno tbody tr td.face { width:1%; }
+
+ tr.diak th { background-color: #998899;}
+ tr.tanar th { background-color: #88ccff;}
+ tr.szulo th { background-color: #ccaabb;}
+
+ tr.diak.asterix th { background-color: #aaaaff;}
+ tr.tanar.asterix th { background-color: #aaaaff;}
+ tr.szulo.asterix th { background-color: #aaaaff;}
+
+ tr.munkakozosseg th { background-color: #99aacc;}
+ tr.tankor th { background-color: #aaccaa; }
+ tr.tankorSzulo th { background-color: #aacccc; }
+
+ tr.osztaly th { background-color: #bbcc99; }
+ tr.osztalySzulo th { background-color: #bbcccc; }
+ tr.osztalyTanar th { background-color: rgb(140,200,100); }
+
+ table.uzeno a { color: black; text-decoration: none;}
+ table.uzeno a:hover { text-decoration: underline; }
+
+ span.dt { color: #888888; }
+ a.more {
+ color: black !important;
+ background-color: #eeeeee;
+ text-decoration: none;
+ border: solid 1px #999999; margin:1px; padding:1px;
+ height:10px;
+ }
+ a.more img { vertical-align: bottom; }
+ a.more:hover { background-color: white; }
+
+ a.more.uj { background-color: #ffeeaa; }
+ a.more.olvasott { background-color: #bbcc99; }
+
+ a.del {
+ color: red !important;
+ background-color: #880000;
+ text-decoration: none;
+ border: solid 1px black; margin:1px; padding:1px;
+ }
+
+ table.lapozo { width: 80%; }
+ table.lapozo table { background-color: #cccccc; border: solid 1px #778890; }
+ table.lapozo table th.title { background-color: navy; color: white; padding-left: 4px; padding-right:4px;}
+ table.lapozo table td { text-align: center; background-color: #eeeeee; }
+ table.lapozo table td.aktiv { background-color: #ffffff; font-weight: bold; }
+ table.lapozo table td.nav { background-color: #aaaaaa; }
+ table.lapozo a {color:black; text-decoration: none; }
+
diff --git a/mayor-orig/www/skin/vakbarat/module-naplo/html/haladasi/haladasi.phtml b/mayor-orig/www/skin/vakbarat/module-naplo/html/haladasi/haladasi.phtml
new file mode 100644
index 00000000..5800afb9
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-naplo/html/haladasi/haladasi.phtml
@@ -0,0 +1,457 @@
+<?php
+/*
+ module: naplo
+
+ todo: függvény paraméterezések tisztítása (2010)
+
+ függőségek:
+
+ function putHaladasiBejegyzesek($data, $tankorId, $osztalyId, $tanarId, $title, $diakId, $order, $ADAT)
+ |- function putNap($dt, $dNap, $napInfo, $doga, $napInfo2)
+ |-function putHaladasiDolgozat
+ |-function putOra($dOra)
+ |- function putTankorNap($dt, $dNap, $doga, $order)
+ |-function putHaladasiDolgozat($dt,$doga)
+ |-function putTankorOra($dOra)
+ function putHetesForm($ADAT)
+
+*/
+##
+# Haladási naplo megjelenítése
+##
+
+ function putHaladasiBejegyzesek($ADAT) {
+
+ global $_TANEV;
+
+ // kompatibilitás miatt -- átnevezhetők
+ $title = $ADAT['title'];
+ $data = $ADAT['haladasi'];
+ $order = $ADAT['order'];
+ //..
+ $tankorId = $ADAT['tankorId'];
+ $osztalyId = $ADAT['osztalyId'];
+ $tanarId = $ADAT['tanarId'];
+ $diakId = $ADAT['diakId'];
+ // ---
+
+ // tanmenet
+ echo '<div style="display: none;" id="infodiv">
+ <div id="infodivheader"><span id="infodivclose">X</span>'._TANMENET_RESZLETEI.'</div>';
+ formBegin(array('action'=>href('index.php?page=naplo&sub=tanmenet&f=tanmenetInfo'), 'class'=>"onSubmitUpdate", 'id'=>"inform"));
+ echo '<input type="hidden" name="tanmenetId" id="informTanmenetId" value="" />'."\n";
+ formEnd();
+ echo '</div>'."\n";
+
+ // tankör haladási
+ echo '<div style="display: none;" id="haladdiv">
+ <div id="haladdivheader"><span id="haladdivclose">X</span>'._TANKOR_HALADASI.'</div>';
+ formBegin(array('action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi'), 'class'=>"onSubmitUpdate", 'id'=>"haladform"));
+ echo '<input type="hidden" name="tankorId" id="haladformTankorId" value="" />'."\n";
+ formEnd();
+ echo '</div>'."\n";
+
+
+ if ($ADAT['title']=='') return;
+
+ $FORM = array('action'=>href('index.php?page=naplo&sub=haladasi&f=haladasi'), 'name'=>'haladasiOrabeiras', 'class'=>'');
+ formBegin($FORM);
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$osztalyId.'" />'."\n";
+ echo '<input type="hidden" name="diakId" value="'.$diakId.'" />'."\n";
+ echo '<input type="hidden" name="tanarId" value="'.$tanarId.'" />'."\n";
+ echo '<input type="hidden" name="order" value="'.$order.'" />'."\n";
+ echo '<input type="hidden" name="action" value="haladasiNaploBeiras" />'."\n";
+ if ($tankorId != '') echo '<input type="hidden" name="tankorId" value="'.$tankorId.'" />'."\n";
+
+ if (_SHOW_DAYS_FROM > $_TANEV['kezdesDt']) echo '<input class="gomb" type="submit" name="lapoz" value="<<" tabindex="5" />'."\n";
+ echo ' '._IDOSZAK.': '.str_replace('-','.',_SHOW_DAYS_FROM) . '. - '. str_replace('-','.', _SHOW_DAYS_TO) .'. '."\n";
+ if (_SHOW_DAYS_TO < date('Y-m-d')) echo '<input class="gomb" type="submit" name="lapoz" value=">>" tabindex="6" />'."\n";
+ echo '<br />';
+
+ // -------------------------------
+ $toTime = strtotime(_SHOW_DAYS_TO);
+ $fromTime = strtotime(_SHOW_DAYS_FROM);
+
+ if ($order == 'ASC') {
+ for ($time = $fromTime; $time <= $toTime; $time = strtotime('1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok'], $ADAT['tanitasiNap'][$dt]);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ } else {
+ for ($time = $toTime; $time >= $fromTime; $time = strtotime('-1 day',$time)) {
+
+ $dt = date('Y-m-d',$time);
+ $count = count($data[$dt]);
+ if ($tankorId == '') {
+ putNap($dt, $data[$dt], $data['napok'][$dt], $data['dolgozatok'], $ADAT['tanitasiNap'][$dt]);
+ } elseif ($count > 0) {
+ putTankorNap($dt, $data[$dt], $data['dolgozatok'], $order);
+ } // kirakjuk-e a napot
+
+ } // for $dt
+ }
+ // ---------------------------------
+
+ formEnd();
+
+ }
+
+
+ function putNap($dt, $dNap, $napInfos, $doga, $napInfo2) {
+
+ global $aHetNapjai,$ADAT;
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ $tipus = $orarendiHet = $megjegyzes = array();
+ if (is_array($napInfos)) foreach ($napInfos as $ni) {
+ if (!in_array($ni['tipus'], $tipus)) $tipus[] = $ni['tipus'];
+ if ($ni['orarendiHet'] != 0 && !in_array($ni['orarendiHet'], $orarendiHet)) $orarendiHet[] = $ni['orarendiHet'];
+ if ($ni['megjegyzes'] != '' && !in_array($ni['megjegyzes'], $megjegyzes)) $megjegyzes[] = $ni['megjegyzes'];
+ }
+ $tanitasiNap = false;
+ if (in_array('tanítási nap', $tipus) || in_array('speciális tanítási nap', $tipus)) {
+ $tanitasiNap = true;
+ }
+
+
+ echo '<h2>';
+ echo str_replace('-','.',$dt) .'. '. $aHetNapjai[date('w',$time)-1];
+ if ($napInfo2['napszam']!='' || $napInfo['orarendiHet'] != 0) echo ' (';
+ if ($tanitasiNap) {
+ echo $napInfo2['napszam'] . '. ' . _TANITASI_NAP;
+ if ($napInfo['orarendiHet'] != 0) echo '/';
+ }
+ if (count($orarendiHet) > 0) echo ' - '.implode('./',$orarendiHet).'. '._HET;
+ if (count($megjegyzes) > 0) echo ' - '.implode('/', $megjegyzes);
+ if ($napInfo2['napszam']!='' || $napInfo['orarendiHet'] != 0) echo ')';
+ echo '</h2>';
+
+ putHaladasiDolgozat($dt,$doga);
+
+ $o = 0;
+ $_UJORA = array();
+ if ($count > 0) {
+ for ($i=0; $i<$count; $i++) {
+ while ($o < $dNap[$i]['ora']) {
+ if (__PLUSZBEIRHAT===true) $_UJORA[] = array('dt'=>$dt, 'ora'=>intval($o));
+ $o++;
+ }
+ $o=$dNap[$i]['ora']+1;
+ putOra($dNap[$i]);
+ } // órák kiírása
+ for($j=$dNap[$i-1]['ora']+1; $j<=$ADAT['maxOra']; $j++) {
+ if (__PLUSZBEIRHAT===true) $_UJORA[] =array('dt'=>$dt, 'ora'=>$j);
+ }
+ } else {
+ echo _NINCS_ORAJA.'<br />';
+ for($j=1; $j<=$ADAT['maxOra']; $j++) {
+ if (__PLUSZBEIRHAT===true) $_UJORA[] = array('dt'=>$dt, 'ora'=>$j);
+ }
+ }
+ echo '<h3>'._PLUSZ_FELADATOK.'</h3>';
+ echo '<ul>';
+ for($i=0; $i<count($_UJORA); $i++) putUjOra($_UJORA[$i]);
+ echo '</ul>';
+ }
+
+
+ function putTankorNap($dt, $dNap, $doga, $order) {
+
+ $time = strtotime($dt);
+ $count = count($dNap);
+
+ putHaladasiDolgozat($dt,$doga);
+
+ for ($i=0; $i<$count; $i++) {
+ if ($order == 'DESC') putTankorOra($dNap[$count-$i-1]);
+ else putTankorOra($dNap[$i]);
+ } // órák kiírása
+
+ }
+
+
+ function putHaladasiDolgozat($dt,$doga) {
+
+ for ($i=0;$i<count($doga['tervezett'][$dt]);$i++) {
+ $did = $doga['tervezett'][$dt][$i];
+ echo '<p class="dolgozat">';
+ $href = href('index.php?page=naplo&sub=osztalyozo&f=dolgozat&dolgozatId='.$did);
+ echo '<a href="'.$href.'">';
+ echo _BEJELENTETT_DOLGOZAT . ': '. $doga[$did]['dolgozatNev'];
+ echo ' (' ;
+ for ($j=0;$j<count($doga[$did]['tankor']);$j++) {
+ if ($j != 0) echo ', ';
+ echo $doga[$did]['tankor'][$j]['tankorNev'];
+ }
+ echo ')';
+ echo '</a>';
+ echo '</p>';
+ }
+
+ }
+
+ function putOra($dOra) {
+
+ global $ADAT; // --FIXME
+ $modosithatoOra = modosithatoOra($dOra);
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+ if ($dOra['tipus'] == 'összevonás') $tipus = 'Ö';
+ else $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+ echo '<div'.$tr_class.'>';
+
+ // ----- óra ----------------------------------
+ echo $dOra['ora'].'. '._ORA.': ';
+
+ // ----- Tankör -------------------------------
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // -------------------------------------------------------------------------
+ if (
+ in_array($dOra['tipus'],array('normál','normál máskor')) // helyettesített óra esetén ne lehessen váltani - bár kirakná a selectet jól...
+ && is_array($dOra['csoport']) && count($dOra['csoport'])>1
+ && $modosithatoOra
+ ) {
+
+ echo '<select title="'._TANKOR.'" name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ echo '<option value="'.$dOra['csoportId'].':'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ // Ha egy másik tanár helyettesít, akinek vannak órái ugyanabból a tankör csoportból - akkor a jelenlegi tankorId nincs a select-ben még!
+ if ($__SEL == '') echo '<option value="'.$dOra['csoportId'].':'.$dOra['tankorId'].' selected="selected">'.$dOra['tankorNev'].'</option>';
+ echo '</select>';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo $dOra['tankorNev'];
+ }
+ echo '<input type="hidden" name="tanmenetIdContainer[]" value="'.$ADAT['tankorTanmenet'][ $dOra['tankorId'] ].'" />'."\n";
+ echo '<input type="hidden" name="tankorIdContainer[]" value="'.$dOra['tankorId'].'" />'."\n";
+ // -------------------------------------------------------------------------
+
+ // ----- Tanár(ok) -------------------------------
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+/*
+ if (count($dOra['tanar']) > 1 && in_array($dOra['tipus'],array('normál','normál máskor')) && $modosithatoOra) {
+ $_SEL = array($dOra['ki'] => 'selected="selected" ');
+ echo '<select title="'._TANAR.'" name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t = 0; $t < count($dOra['tanar']); $t++) {
+ echo '<option value="'.$dOra['tanar'][$t]['tanarId'].'" '.$_SEL[$dOra['tanar'][$t]['tanarId']].'>';
+ echo $dOra['tanar'][$t]['tanarNev'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+*/
+ echo ' - '.$dOra['oraszam'].'. '._ORA.'<br />';
+
+ // ----- Leírás ---------------------------------
+ if ($modosithatoOra) {
+ if ($dOra['leiras']!='') { // beírva
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb" value="'._MODOSIT.'" tabindex="1" />';
+ } else {
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb" value="'._ROGZIT.'" tabindex="1" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo $dOra['leiras'];
+ } else {
+ echo _NINCS_BEIRVA;
+ }
+ }
+ echo '<br />';
+ // ----- Hiányzók -------------------------------
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ echo '<a href="'.$href.'" tabindex="200">';
+ echo _HIANYZOK;
+ echo '</a>';
+ echo '</div>';
+ }
+
+
+ function putTankorOra($dOra) {
+
+ global $aHetNapjai;
+
+ $modosithatoOra = modosithatoOra($dOra);
+
+ if (!in_array($dOra['tipus'],array('normál','normál máskor'))) {
+// if (substr($dOra['tipus'],0,6) != 'normál') {
+ $tipus = nagybetus(substr($dOra['tipus'],0,1));
+ $tr_class = ' class="helyettesit"';
+ } else {
+ $tipus = '';
+ $tr_class = '';
+ }
+
+ echo '<div'.$tr_class.'>';
+
+ // ----- óra ----------------------------------
+ echo str_replace('-','.',$dOra['dt']) .'. '. $aHetNapjai[date('w',strtotime($dOra['dt']))-1].' ';
+ echo $dOra['ora'].'. '._ORA.': ';
+
+ // ----- Tankör -------------------------------
+ // -------------------------------------------------------------------------
+ // Csoportok kezelése - Váltható tankörök (egy csoportba és egy tanárhoz tartozó tankörök
+ // -------------------------------------------------------------------------
+ if (
+ in_array($dOra['tipus'],array('normál','normál máskor')) // helyettesített óra esetén ne lehessen váltani - bár kirakná a selectet jól...
+ && is_array($dOra['csoport']) && count($dOra['csoport']) > 1
+ && $modosithatoOra
+ ) {
+ echo '<select name="M_'.$dOra['oraId'].'">';
+ for ($t = 0; $t < count($dOra['csoport']); $t++) {
+ if ($dOra['tankorId'] == $dOra['csoport'][$t]['tankorId']) $__SEL = ' selected="selected" ';
+ else $__SEL = '';
+ // !?! A másik függvényben a csoportId-t is átadjuk - nem hiba???
+ echo '<option value="'.$dOra['csoport'][$t]['tankorId'].'" '.$__SEL.'>';
+ echo $dOra['csoport'][$t]['tankorNev'];
+ echo '</option>';
+ }
+ echo '</select>';
+ // Ha egy másik tanár helyettesít, akinek vannak órái ugyanabból a tankör csoportból - akkor a jelenlegi tankorId nincs a select-ben még!
+ // !?! A másik függvényben a csoportId-t is átadjuk - nem hiba???
+ if ($__SEL == '') echo '<option value="'.$dOra['tankorId'].' selected="selected">'.$dOra['tankorNev'].'</option>';
+ } else { // nincs választási lehetőség, vagy a módosítási határidő lejárt
+ echo $dOra['tankorNev'];
+ }
+ // -------------------------------------------------------------------------
+
+/*
+ // ----- Tanár(ok) -------------------------------
+ // Ha egy normál órának több tanára is van, és módosítható az óra, akkor lehet választani a tanárok közül
+ if (count($dOra['tanár']['id']) > 1 and $modosithatoOra) {
+ $_SEL = array($dOra['kiId'] => 'selected="selected" ');
+ echo '<select name="K_'.$dOra['oraId'].'">'."\n";
+ for ($t=0;$t<count($dOra['tanár']['id']);$t++) {
+ echo '<option value="'.$dOra['tanár']['id'][$t].'" '.$_SEL[$dOra['tanár']['id'][$t]].'>';
+ echo $dOra['tanár'][$dOra['tanár']['id'][$t]]['cn'];
+ echo '</option>'."\n";
+ }
+ echo '</select>';
+ } else {
+ echo $dOra['kiCn'];
+ }
+*/
+ echo ' - '.$dOra['oraszam'].'. '._ORA.'<br />';
+
+ // ----- Leíráás ---------------------------------
+ if ($modosithatoOra) {
+ if ($dOra['leiras']!='') { // beírva
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data beirva" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb DOA" value="'._MODOSIT.'" />';
+ } else {
+ echo '<input type="text" tabindex="1" name="L_'.($dOra['oraId']).'" class="data" size="30" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" class="gomb DOA" value="'._ROGZIT.'" />';
+ }
+ echo '<input type="hidden" name="oraId[]" value="'.$dOra['oraId'].'" />';
+ } else {
+ if ($dOra['leiras']!='') {
+ echo $dOra['leiras'];
+ } else {
+ echo _NINCS_BEIRVA;
+ }
+ }
+ echo '<br />'."\n";
+
+ // ----- Hiányzók -------------------------------
+ if ( __DIAK) {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=diak&dt='.$dOra['dt'].'&diakId='.$diakId);
+ } else {
+ $href = href('index.php?page=naplo&sub=hianyzas&f=ora&oraId='.$dOra['oraId']);
+ }
+ echo '<a href="'.$href.'">';
+ echo _HIANYZOK;
+ echo '</a>';
+
+ echo '</div>'."\n";
+
+
+ }
+
+ function putHetesForm($ADAT) {
+
+ formBegin(array('class'=>'hetes'));
+ echo '<input type="hidden" name="igDt" value="'._SHOW_DAYS_TO.'" />'."\n";
+ echo '<input type="hidden" name="osztalyId" value="'.$ADAT['osztalyId'].'" />'."\n";
+ echo '<input type="hidden" name="dt" value="'._SHOW_DAYS_FROM.'" />'."\n";
+ echo '<input type="hidden" name="action" value="hetesFelvetel" />'."\n";
+
+ echo '<span>'._HETESEK.'</span>';
+ for ($k = 1; $k < 3; $k++) {
+ $SEL = array($ADAT['hetesek'][$k]['diakId'] => ' selected="selected" ');
+ echo '<select name="hetes'.$k.'">'."\n";
+ echo '<option value=""> - </option>'."\n";
+ for ($i = 0; $i < count($ADAT['diakok']); $i++) {
+ echo '<option value="'.$ADAT['diakok'][$i]['diakId'].'"'.$SEL[ $ADAT['diakok'][$i]['diakId'] ].'>'.$ADAT['diakok'][$i]['diakNev'].'</option>'."\n";
+ }
+ echo '</select>'."\n";
+ }
+
+ echo '<input type="submit" value="'._OK.'" />'."\n";
+
+ formEnd();
+
+ }
+
+ function putUjOra($dOra) {
+
+ global $ADAT; // --FIXME
+
+ if (__TANAR !==true && __VEZETOSEG!==true && __NAPLOADMIN !== true) return false;
+ if (__NAPLOADMIN ===true || __VEZETOSEG===true) {
+ $_eredet='órarend';
+ if (__PLUSZBEIRHAT!==true
+ || strtotime($dOra['dt'])>strtotime("+1week")
+ || (__TANAR ===true && strtotime(_HALADASI_HATARIDO)>strtotime($dOra['dt']))
+ ) return false;
+ } else {
+ $_eredet='plusz';
+ if (__PLUSZBEIRHAT!==true
+ || strtotime($dOra['dt'])>time()
+ || (__TANAR ===true && strtotime(_HALADASI_HATARIDO)>strtotime($dOra['dt']))
+ ) return false;
+ }
+ $_tipus='egyéb';
+
+ echo '<li class="ora">';
+ echo $dOra['ora'].'.';
+ echo '<select class="DOA" name="UJORA[]" tabindex="1" >';
+ echo '<option value="">'._FELADAT_TIPUS.'</option>';
+ if (is_array($ADAT['feladatTipus'])) foreach($ADAT['feladatTipus'] as $feladatTipusId=>$_D) {
+ echo '<option value="'.$dOra['dt'].'_'.$dOra['ora'].'_'.$_tipus.'_'.$_D['feladatTipusId'].'">'.$_D['feladatTipusLeiras'].' ('.$_D['feladatTipusId'].')</option>';
+ }
+ echo '</select>';
+ //echo $ADAT['feladatTipus'][$dOra['feladatTipusId']]['feladatTipusLeiras'].' ('.$dOra['eredet'].')';
+ echo '<br/>';
+ echo '<input type="text" tabindex="1" name="LE_'.($dOra['dt'].'_'.$dOra['ora']).'" class="data" value="'.htmlspecialchars($dOra['leiras']).'" />';
+ echo '<input type="submit" value="'._ROGZIT.'" class="gomb DOA" tabindex="1" />';
+ echo '</li>';
+ }
+
+?>
diff --git a/mayor-orig/www/skin/vakbarat/module-naplo/html/orarend/orarend.phtml b/mayor-orig/www/skin/vakbarat/module-naplo/html/orarend/orarend.phtml
new file mode 100644
index 00000000..53e08d09
--- /dev/null
+++ b/mayor-orig/www/skin/vakbarat/module-naplo/html/orarend/orarend.phtml
@@ -0,0 +1,198 @@
+<?php
+/*
+ function _egyOraMod() {
+ echo '<input type="text" value="test" />';
+ }
+ function _putOrarendHead($D) {
+ for ($i=0; $i<count($D); $i++) {
+ echo $D[$i]['str'].'<br/>';
+ }
+ }
+ function _putOrarendFoot($D) {
+ for ($i=0; $i<count($D); $i++) {
+ echo $D[$i]['str'].'<br/>';
+ }
+ }
+
+*/
+
+ function putOrarend($ADAT) {
+ global $aHetNapjai;
+
+
+//echo '<pre>';
+//var_dump($ADAT['orarend']['assoc']);
+//echo '</pre>';
+
+
+ if (is_array($ADAT['orarend']['assoc'])) {
+
+ $T = $ADAT['orarend']['assoc'];
+/* echo '<h2 class="toPrint">'.$ADAT['toPrint'].'</h2>';
+ echo '<table class="orarend" align="center">'."\n";
+ echo '<thead>';
+ echo '<tr><th></th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+ $_th_class = ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? '': 'spec';
+ echo '<th class="'.$_th_class.'">';
+ echo '<span title="'.$ADAT['orarend']['napok'][$nap]['dt'].'/'.$ADAT['orarend']['napok'][$nap]['het'].'">';
+ echo ($ADAT['orarend']['napok'][$nap]['megjegyzes']=='') ? $aHetNapjai[($nap-1)] : $ADAT['orarend']['napok'][$nap]['megjegyzes'];
+ echo '</th>';
+ }
+ echo '</tr>';
+ echo '</thead>'."\n";
+
+ echo '<tbody>'."\n";
+//*/
+// echo '<caption>'.$het.'. heti órarend</caption>';
+
+
+ // napok
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) {
+
+ $dt = $ADAT['orarend']['napok'][$nap]['dt'];
+ echo '<h1>'.$aHetNapjai[($nap-1)].' ('.$dt.') '.$ADAT['orarend']['napok'][$nap]['megjegyzes'].'</h1>';
+
+ echo '<ul title="órak">';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) {
+
+ /* ha kell kiírni */
+ if ( count($T[$nap][$ora]['orak'])>0 || is_array($ADAT['haladasi']['orak'][$dt][$ora])) {
+ echo '<li>'.$ora.'. óra'.'</li>';
+ }
+
+ $het = 0;
+ $ORARENDI = array();
+ for($i=0; $i<count($T[$nap][$ora]['orak']); $i++) {
+ $_T = $T[$nap][$ora]['orak'][$i];
+ $ORARENDI[] = $_T['tankorId'];
+ //
+ $het = $_T['het'];
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora][$_T['tankorId']];
+ $_valosTeremId = (is_null($_ORA['teremId']))? $_T['teremId']:$_ORA['teremId'];
+ $_tankorTipus = $ADAT['tankorok'][$_T['tankorId']][0]['tankorTipus'];
+ // Az órarendből a jelek:
+ $_targyJel = $_T['targyJel'];
+ $_osztalyJel = $_T['osztalyJel'];
+ // figyelem, itt jön a kiírás, a _putOra fv helyett:
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+
+ echo '<div class="'.$_tipusClass.'" title="'.$_ORA['tipus'].'" >';
+ $_teremKiir = ($_T['teremId'] != $_valosTeremId) ? '<del>'.$ADAT['termek'][$_T['teremId']]['leiras'].'</del><ins>'.$ADAT['termek'][$_valosTeremId]['leiras'].'</ins>' : $ADAT['termek'][$_T['teremId']]['leiras'];
+ $_ferohely = $ADAT['termek'][$_valosTeremId]['ferohely'];
+ $_letszam = $ADAT['tankorLetszamok'][$_T['tankorId']];
+ if ($_T['tankorId']!='') {
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].') '.$_tankorTipus.'" >';
+ echo $ADAT['tankorok'][$_T['tankorId']][0]['tankorNev'];
+ echo '</span>';
+ } else {
+ echo "$_targyjel : $_osztalyJel : ";
+ }
+ echo ', ';
+ echo '<span title="'.$_ferohely.'/'.$_letszam.'" class="t'.( ($_ferohely!=0 && $_ferohely<$_letszam) ? 0 : 1).'">'.$_teremKiir.'</span>';
+ echo '<br/>';
+ if ($_ORA['kit']!='') {
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+ } else {
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ }
+ if ($_ORA['tipus']!='normál') echo ' '.$_ORA['tipus'];
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+ if (in_array($_tankorTipus,array('délutáni','tanórán kívüli'))) echo ' &sup1';
+
+ echo '</div>';
+ if (count($T[$nap][$ora]['orak'])>$i+1) echo '<hr/>';
+ }
+ /* és ide jönnek a pluszok */
+ $j=0;
+ if (is_array($ADAT['haladasi']['orak'][$dt][$ora])) foreach ($ADAT['haladasi']['orak'][$dt][$ora] as $_tankorId => $__T) {
+ if (!is_array($ORARENDI) || !in_array($_tankorId,$ORARENDI)) {
+ if ($j!=0) echo '<hr/>'; $j++;
+ $_ORA = $ADAT['haladasi']['orak'][$dt][$ora];
+ _putOra($_ORA,$_tankorId);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+ } // $ora++
+ echo '</ul>';
+ } // $nap++
+
+
+
+
+ } else {
+ putOrarendPlain($ADAT);
+ }
+
+
+ }
+
+ function putOrarendPlain($ADAT) {
+ if (is_array($ADAT['orarend']['orarendiOra'])) {
+ foreach($ADAT['orarend']['orarendiOra'] as $het => $T) {
+ echo '<table class="orarend" align="center">'."\n";
+ echo '<caption>'.$het.'. heti órarend</caption>';
+ for($ora=$ADAT['napiMinOra']; $ora<=$ADAT['napiMaxOra']; $ora++) { // FIXME (getMinOra, getMaxOra konstansok!???)
+ echo '<tr>';
+ echo '<th>'.$ora.'</th>';
+ for ($nap=1; $nap<=$ADAT['hetiMaxNap']; $nap++) { // FIXME (getMaxNap)
+ echo '<td>';
+ $X = $ADAT['orarend']['orarendiOra'][$het][$nap][$ora];
+
+ for ($i=0; $i<count($X); $i++) {
+ echo '<div class="unfinished">';
+ echo $X[$i]['targyJel'].' : ';
+ echo $X[$i]['osztalyJel'].' : ';
+ echo $X[$i]['teremId'];
+ echo '</div>';
+ }
+ echo '</td>'."\n";
+ }
+ echo '</tr>'."\n";
+ }
+ echo '</table>'."\n\n<!-- EOT -->\n\n";
+ }
+ }
+ }
+
+ function _putOra($ORA,$_tankorId) {
+ global $ADAT;
+ if ($_tankorId=='') return false;
+ $_ORA = $ORA[$_tankorId];
+ $_tipusClass = str_replace(' ','_',$_ORA['tipus']);
+ $_eredetClass = $_ORA['eredet'];
+ echo '<div class="'.$_tipusClass.' '.$_eredetClass.'" title="'.$_ORA['tipus'].'" >';
+
+ echo '<span title="'.$_targyJel.' '.$_osztalyJel.' ('.$ADAT['tankorok'][$_T['tankorId']][0]['tankorId'].')" >';
+ echo $ADAT['tankorok'][$_ORA['tankorId']][0]['tankorNev'];
+ echo '</span>';
+
+ echo ', '.$ADAT['termek'][$_ORA['teremId']]['leiras'];
+
+ echo '<br/>';
+
+ echo '<span class="helyett">';
+ echo $ADAT['tanarok'][$_T['tanarId']]['tanarNev'];
+ echo '</span>';
+ if ($_ORA['ki']!='') echo ' '.$ADAT['tanarok'][$_ORA['ki']]['tanarNev'];
+
+ if (isset($_ORA['oo'])) echo ' &deg;'; // else tervezett
+
+ echo '</div>';
+
+ }
+
+
+?>
diff --git a/mayor-orig/www/skin/winter/base/css/base.css b/mayor-orig/www/skin/winter/base/css/base.css
new file mode 100644
index 00000000..c292014e
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/css/base.css
@@ -0,0 +1,85 @@
+/*
+ Module: base
+*/
+@import "head.css";
+@media screen {
+
+ html body {
+ font-family: Verdana, sans-serif;
+ font-size: 12px;
+ margin:0px;
+ padding:0px;
+ background-color: white;
+ background-image: url("/skin/winter/base/img/bg2.jpg");
+ background-repeat: repeat-x;
+ }
+
+ /* set default layout! */
+ table { font-size: 12px; }
+
+ a { color: #00a000; }
+
+ form { margin: 0px; }
+
+ div.mayorbody {
+
+ padding: 0px;
+
+ }
+
+ div.mayorfoot {
+ text-align: center;
+ font-size: 10px;
+ width:100%;
+ }
+/* - Alert - */
+
+ form.mayorAlert { margin: 0px; padding: 0px; }
+ form.mayorAlert input { display: none; }
+ div.errorMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #ff0000;
+ padding: 15px;
+ }
+ div.errorMsg span {
+ font-style: italic;
+ }
+
+ div.infoMsg {
+ margin: 20px 20%;
+ background-color: #eeffd0;
+ border: solid 2px #0000ff;
+ padding: 15px;
+ }
+ div.infoMsg span {
+ font-style: italic;
+ }
+
+ span.alertParam {
+ color: green;
+ }
+
+ #takaro { z-index:150;position: fixed;top:0px; left:0px; right:0px; bottom:0px; background-color: rgba(0,0,0,0.7); }
+ #updateWindow {background-color: white; position: absolute;z-index:200;margin:auto auto; width:400px;}
+ #keyHelp { z-index:151;position: absolute; top:200px; left: 200px; right:200px; margin: auto; padding: 20px; width: 300px;
+ border: solid 1px yellow; border-radius: 20px; border-spacing: 15px; background-color: rgba(0,0,0,0.4);
+ }
+ #keyHelp th { color: white; text-align: center; border-bottom: yellow 2px solid; font-size: 20px; font-weight: bold; }
+ #keyHelp td.key { color: yellow; text-align: right; }
+ #keyHelp td.desc { color: white; text-align: left; }
+
+}
+@media print {
+ html body {
+ font-family: Verdana, sans-serif;
+ font-size: 12px;
+ }
+ div.mayorfoot {
+ text-align: center;
+ font-size: 10px;
+ margin: 5px;
+ }
+ div.namepolicy { display: none; }
+ table.mayorhead { display: none; }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/winter/base/css/head.css b/mayor-orig/www/skin/winter/base/css/head.css
new file mode 100644
index 00000000..658e9b4b
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/css/head.css
@@ -0,0 +1,154 @@
+/*
+ Module: base
+*/
+@media screen {
+
+ div.namepolicy {
+
+ border-style: none none solid none;
+ border-width: 1px;
+ border-color: #666666;
+ }
+ div.namepolicy table { font-size: 10px; width:100%; }
+ div.namepolicy table td { width:40%; }
+ div.namepolicy table td.right { text-align: right; }
+ div.namepolicy table td.right span.nev { color: #ffffff; font-weight: bold; }
+ div.namepolicy table td.right img { border: none; margin: 0px 1px;}
+ div.namepolicy table td.left { text-align: left;}
+ div.namepolicy table td.help a { background-color:#ffffff; text-decoration: none; font-weight: bold; padding: 2px 5px; color: rgb(80,60,40); display: block; }
+ div.namepolicy table td.help a:hover { background-color:#bec87c; }
+ div.namepolicy table th { width:20% }
+ div.namepolicy span.nev { padding-right: 14px; }
+ div.namepolicy table td.language span { vertical-align: middle; }
+ div.namepolicy table td.language img { margin: 0px 0px 0px 4px; height: 10px; border: solid 1px #777777; }
+ #langSelect { vertical-align: middle; padding: 0px; margin: 0px;}
+
+ table.mayorhead { font-size: 10px; margin: 3px 3px 20px 3px;}
+
+ table.mayorhead td.namepolicy { padding: 5px; }
+ table.mayorhead td.namepolicy table {
+ font-size: 10px;
+ border-style: solid;
+ border-width: 2px ;
+ border-color: #550670;
+ background-color: #8877aa;
+ color: white;
+ }
+
+/* Új menü */
+
+ ul#pagemenu {
+ padding: 1px;
+ text-align: left;
+ background-color: darkcyan;
+ list-style-type: none;
+ margin:1px;
+ }
+ ul#pagemenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #007777;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#pagemenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#pagemenu li a:hover {
+ background-color: #004444;
+ text-decoration: underline;
+ }
+ ul#pagemenu li.active a {
+ background-color: #920405;
+ }
+ ul#pagemenu li.active a:hover {
+ background-color: rgb(200,0,0);
+ }
+
+/* SUB */
+
+ ul#submenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #006666;
+ list-style-type: none;
+ margin:1px 1px 1px 40px;
+ }
+ ul#submenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #84a285;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#submenu li.onClickHideShow { color: rgb(255,255,255); padding: 0px 2px; cursor: pointer; }
+ ul#submenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#submenu li a:hover {
+ background-color: #003333;
+ text-decoration: underline;
+ }
+ ul#submenu li.active a {
+ background-color: #920405;
+ }
+ ul#submenu li.active a:hover {
+ background-color: rgb(200,0,0);
+ }
+
+/* f */
+
+ ul#fmenu {
+ padding: 1px;
+ text-align: left;
+ background-color: #005555;
+ list-style-type: none;
+ margin:1px 1px 1px 80px;
+ }
+ ul#fmenu li {
+ display: inline;
+ border-width: 0px 0px 0px 1px;
+ border-color: #84a285;
+ border-style: dotted;
+ padding: 0px;
+ }
+ ul#fmenu li.onClickHideShow { color: rgb(255,255,255); padding: 0px 2px; cursor: pointer; }
+ ul#fmenu li a {
+ color: rgb(255,255,255);
+ text-decoration: none;
+ padding: 0px 5px;
+ margin: 0px;
+ }
+ ul#fmenu li a:hover {
+ background-color: #005555;
+ text-decoration: underline;
+ }
+ ul#fmenu li.active a {
+ background-color: #920405;
+ }
+ ul#fmenu li.active a:hover {
+ background-color: rgb(200,0,0);
+ }
+
+
+ #changeSkin {
+ display: inline;
+ }
+ #changeSkin .onChangeSubmit {
+ background-color: #ffffff;
+ font-size:9px;
+ }
+
+}
+@media print {
+
+ div.namepolicy { display: none; }
+ table.mayorhead { display: none; }
+
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/winter/base/html/base.phtml b/mayor-orig/www/skin/winter/base/html/base.phtml
new file mode 100644
index 00000000..c004bf64
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/html/base.phtml
@@ -0,0 +1,314 @@
+<?php
+/*
+ Module: base
+
+ html_base($sessionID,$page,$sub,$f,$lang,$skin,$MENU)
+ html_head($page,$f,$lang,$skin)
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = 'default')
+ html_mayor_foot()
+ //page($page,$sub,$f,$lang,$skin) --> base.php
+ putValidXHTML()
+*/
+
+
+// -------------------------------------------------------------------
+// html_base() : a html oldal szerkezete
+// -------------------------------------------------------------------
+
+function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+
+ _httpHeader();
+ html_head($page,$sub,$f,$lang,$skin);
+ html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin);
+ _debugLayer();
+
+ echo '<div class="mayorbody">';
+ page($page,$sub,$f,$lang,$skin,$policy);
+ echo '</div>';
+ html_mayor_foot();
+}
+
+// -------------------------------------------------------------------
+// html_head() : html fejlec kiirasa
+// -------------------------------------------------------------------
+
+function html_head($page,$sub,$f,$lang,$skin) {
+
+ global $INCLUDES, $SSSHH;
+
+ if ($f == '') $f = $page;
+ ## ----------------------------------------------
+ ## Note http://hixie.ch/advocacy/xhtml
+ ## But this is crazy! Using Doctype sniffing instead...
+ ## Also read: http://www.mozilla.org/docs/web-developer/faq.html
+ ## header('Content-type: application/xhtml+xml');
+ ## -----------------------------------------------
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head>'."\n";
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
+ echo '<title>';
+ if (defined('_SITE')) echo ' - '._SITE.' - ';
+ echo _MAIN_TITLE;
+ echo ' r';
+ echo _MAYORREV;
+ echo '</title>'."\n";
+ includeCSS($page,$sub,$f,$skin);
+ includeCSS($page,$sub,$f,$skin,'handheld'); // install css for handheld devices
+ includeJS($page,$sub,$f,$skin);
+ if ($SSSHH!=null && $SSSHH!='') echo $SSSHH;
+
+ if (is_array(@$INCLUDES['html_head']['global'])) foreach ($INCLUDES['html_head']['global'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ if (is_array(@$INCLUDES['html_head'][$page])) foreach ($INCLUDES['html_head'][$page] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ echo '<link rel="shortcut icon" href="/skin/classic/base/img/favicon.ico" />'."\n";
+ echo "</head>\n<body>\n";
+
+}
+
+
+// -------------------------------------------------------------------
+// mayor_menu(): a menü kiiratása
+// -------------------------------------------------------------------
+
+function mayor_menu($MENU,$sessionID,$lang = _DEFAULT_LANG,$skin = _DEFAULT_SKIN) {
+
+ global $page, $sub, $f;
+
+ echo '<ul id="pagemenu">';
+ // --------------------------------------------------------
+ if (is_array($MENU)) {
+ foreach ($MENU as $aModule => $items) {
+ if ($aModule != 'modules') {
+ for ($i = 0; $i < count($items); $i++) {
+
+ if ($page == $aModule and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aModule".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aModule");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+
+ echo '</li>';
+ }
+ }
+ }
+ }
+ // ---------------------------------------------------
+ echo '</ul>';
+
+ // II: SZINT
+ @$pageArray = $MENU['modules'][$page];
+ $aPage = $page;
+
+ if (is_array($pageArray)) {
+ echo '<ul id="submenu" class="hideShowContainer">';
+ foreach ($pageArray as $anF => $items) {
+ if ($anF != 'sub') {
+ for ($i=0;$i<count($items);$i++) {
+ if (
+ $page == $aPage and
+ (
+ (
+ !isset($items[$i]['url'])
+ and $f == $anF
+ )
+ or
+ (
+ isset($items[$i]['url']) and
+ strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false
+ )
+ )
+ ) echo '<li class="active">';
+ elseif ($items[$i]['rejtett']) { echo '<li class="openable" style="display: none">'; $rejtett = true; }
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&f=$anF",array('policy','sessionID','lang','skin'));
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'>'.$items[$i]['txt'].'</a>';
+ echo '</li>';
+ }
+ }
+ }
+ if ($rejtett) {
+ echo '<li class="openable onClickHideShow">&rang;&rang;</li>';
+ echo '<li class="openable onClickHideShow" style="display: none;">&lang;&lang;</li>';
+ }
+ echo '</ul>'."\n";
+ }
+
+ // III: SZINT
+ @$subArray = $MENU['modules'][$page]['sub'][$sub];
+ $aSub = $sub; $rejtett = false;
+
+ if (is_array($subArray)) {
+ echo '<ul id="fmenu" class="hideShowContainer">';
+
+ foreach ($subArray as $anF => $items) {
+ for ($i=0;$i<count($items);$i++) {
+ if ($aPage == $page and
+ $aSub == $sub and
+ $anF == $f and
+ (!isset($items[$i]['url']) or strpos($_SERVER["REQUEST_URI"],$items[$i]['url']) !== false)
+ ) echo '<li class="active">';
+ elseif ($items[$i]['rejtett']) { echo '<li class="openable" style="display: none">'; $rejtett = true; }
+ else echo '<li>';
+
+ if (isset($items[$i]['url']) && $items[$i]['url'] != '') {
+ if ($items[$i]['url'][0] == '&') $href = href("index.php?page=$aPage&sub=$aSub&f=$anF".$items[$i]['url']);
+ elseif (substr($items[$i]['url'],0,4) == 'http') $href = href($items[$i]['url'], array());
+ elseif (isset($items[$i]['get']) && is_array($items[$i]['get'])) $href = href($items[$i]['url'], $items[$i]['get']);
+ else $href = href($items[$i]['url']);
+ } else {
+ $href = href("index.php?page=$aPage&sub=$aSub&f=$anF");
+ }
+ echo '<a href="'.$href.'"'.((isset($items[$i]['target']))?' target="'.$items[$i]['target'].'" ':'').'> '.$items[$i]['txt'].' </a>';
+
+ echo '</li>';
+ }
+ }
+ if ($rejtett) {
+ echo '<li class="openable onClickHideShow">&rang;&rang;</li>';
+ echo '<li class="openable onClickHideShow" style="display: none;">&lang;&lang;</li>';
+ }
+ echo '</ul>'."\n";
+ }
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_head() : fejlec kiirasa (logo+menu+lastupdated)
+// -------------------------------------------------------------------
+
+function html_mayor_head($sessionID,$page,$sub,$f,$lang,$MENU,$skin = _DEFAULT_SKIN) {
+
+ global $INCLUDES, $INSTALLED_MODULES, $LANGUAGES, $SKINS, $SKINSSHOW, $policy;
+
+
+ _updateWindow();
+ _keyHelp();
+
+ if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl.png'))
+ $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl.png';
+ //if (!file_exists($HOME_LOGO = 'skin/'.$skin.'/base/img/mayor_small_ssl.gif'))
+ // $HOME_LOGO = 'skin/'._DEFAULT_SKIN.'/base/img/mayor_small_ssl.gif';
+ if (!file_exists($HELP_LOGO = 'skin/'.$skin.'/module-help/img/help_small.jpg'))
+ $HELP_LOGO = 'skin/'._DEFAULT_SKIN.'/module-help/img/help_small.jpg';
+ ## Név, Oldal info, Policy
+ echo '<div class="namepolicy">'."\n";
+ echo '<table cellspacing="0" cellpadding="0"><tr>'."\n";
+ echo '<td class="language left hideShowContainer">'."\n";
+
+ echo '<span class="onClickHideShow"><img class="onClickHideShow" id="openLangSelect" src="skin/classic/base/img/flags/'.$lang.'.gif" alt="'.$lang.'" /></span>'."\n";
+
+ echo '<span id="langSelect" class="openable" style="display: none;">';
+ for ($i = 0;$i < count($LANGUAGES); $i++) {
+ if ($LANGUAGES[$i]!=$lang) echo '<a href="'.href('index.php?lang='.$LANGUAGES[$i],array('skin','policy','page','sub','f','sessionID')).'"><img src="skin/classic/base/img/flags/'.$LANGUAGES[$i].'.gif" alt="'.$LANGUAGES[$i].'" /></a>';
+ }
+ echo '</span>';
+
+ echo '<form id="changeSkin" method="post" action="'.href('index.php', array('sessionID','lang')).'">';
+ echo '<select class="onChangeSubmit" name="skin">';
+ for ($i=0; $i<count($SKINSSHOW); $i++) {
+ $_SEL = ($SKINSSHOW[$i]==$skin)? 'selected="selected"':'';
+ echo '<option value="'.$SKINSSHOW[$i].'" '.$_SEL.'>'.$SKINSSHOW[$i].'</option>';
+ }
+ echo '</select>';
+ global $POLICIES;
+ echo '<select class="onChangeSubmit" name="policy" onchange="submit();">';
+ for ($i=0; $i<count($POLICIES); $i++) {
+ $_SEL = ($POLICIES[$i]==$policy)? 'selected="selected"':'';
+ echo '<option value="'.$POLICIES[$i].'" '.$_SEL.'>'.$POLICIES[$i].'</option>';
+ }
+ echo '</select>';
+
+ echo '</form>';
+ echo '</td>';
+ echo '<th>';
+ #echo $page;
+ #if ($sub!='') echo '&nbsp;&raquo;&nbsp;'.$sub;
+ // --- csak egy próbálkozás!! ---------------
+ // Szerver idő...
+ //if (file_exists('skin/classic/module-kellekek/html/clock.phtml'))
+ // include('skin/classic/module-kellekek/html/clock.phtml');
+
+ if (is_array(@$INCLUDES['html_mayor_head']['global']['center'])) foreach ($INCLUDES['html_mayor_head']['global']['center'] as $key => $include) {
+ if (file_exists("skin/$skin/$include")) {
+ include("skin/$skin/$include");
+ } elseif (file_exists('skin/'._DEFAULT_SKIN.'/'.$include)) {
+ include('skin/'._DEFAULT_SKIN.'/'.$include);
+ }
+ }
+ // --- vége a próbálkozásnak ----------------
+ echo '</th>';
+ echo '<td class="right">';
+ echo '<span class="nev">'._USERCN.'</span>';
+ echo '</td>';
+ echo '<td class="right">';
+ echo '<img src="skin/classic/base/img/policy/'.$policy.'.gif" alt="'.$policy.'"/>';
+ echo '</td>';
+ echo '<td class="help">';
+ if (isset($sub) && $sub != '') $psf = "$page:$sub:$f"; else $psf = "$page:$f";
+ echo '<a title="'._HELP.'" target="_blank" href="wiki/dok.php?id='.$psf.'">?</a>';
+ echo '</td></tr>';
+ echo '</table>';
+ echo '</div>'."\n";
+ ## ------------------------
+ echo '<table class="mayorhead" cellspacing="0" cellpadding="0">'."\n";
+ echo '<tr><td style="width: 40px">';
+ echo '<a href="'.href('index.php').'"><img src="'.$HOME_LOGO.'" alt="MaYoR" style="border-width: 0;" /></a>';
+ echo '</td>'."\n";
+ echo '<td style="vertical-align: middle; text-align: left; width: 99%">';
+ mayor_menu($MENU,$sessionID,$lang,$skin);
+ echo '</td>';
+ if (in_array('help',$INSTALLED_MODULES)) {
+ $link = "index.php?page=help&hpage=$page&hsub=$sub&hf=$f";
+ echo '<td>';
+ echo '<a href="'.href($link).'" target="_blank">';
+ echo '<img src="'.$HELP_LOGO.'" alt="'._HELP.'" style="border-width: 0;" />';
+ echo '</a>';
+
+ echo '</td>';
+ }
+ echo "</tr>\n</table>\n";
+
+}
+
+// -------------------------------------------------------------------
+// html_mayor_foot() : lablec kiirasa ( )
+// -------------------------------------------------------------------
+
+function html_mayor_foot() {
+ echo '<div class="mayorfoot">'._MAIN_FOOTER.'</div>';
+ echo "</body>\n</html>";
+}
+
+
+
+?>
diff --git a/mayor-orig/www/skin/winter/base/img/bg.gif b/mayor-orig/www/skin/winter/base/img/bg.gif
new file mode 100644
index 00000000..54e912c0
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/img/bg.gif
Binary files differ
diff --git a/mayor-orig/www/skin/winter/base/img/bg2.gif b/mayor-orig/www/skin/winter/base/img/bg2.gif
new file mode 100644
index 00000000..38f1d0d1
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/img/bg2.gif
Binary files differ
diff --git a/mayor-orig/www/skin/winter/base/img/bg2.jpg b/mayor-orig/www/skin/winter/base/img/bg2.jpg
new file mode 100644
index 00000000..33e9a7c9
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/img/bg2.jpg
Binary files differ
diff --git a/mayor-orig/www/skin/winter/base/img/mayor_small_ssl.gif b/mayor-orig/www/skin/winter/base/img/mayor_small_ssl.gif
new file mode 100644
index 00000000..378ffb88
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/img/mayor_small_ssl.gif
Binary files differ
diff --git a/mayor-orig/www/skin/winter/base/img/mayor_small_winter.gif b/mayor-orig/www/skin/winter/base/img/mayor_small_winter.gif
new file mode 100644
index 00000000..635e4f7c
--- /dev/null
+++ b/mayor-orig/www/skin/winter/base/img/mayor_small_winter.gif
Binary files differ
diff --git a/mayor-orig/www/skin/winter/module-auth/css/login.css b/mayor-orig/www/skin/winter/module-auth/css/login.css
new file mode 100644
index 00000000..f4cab44b
--- /dev/null
+++ b/mayor-orig/www/skin/winter/module-auth/css/login.css
@@ -0,0 +1,39 @@
+@media screen {
+ img { border-width: 0px; }
+ h1 { text-align: center; margin: 10px; font-size:20px; }
+ h2 { text-align: center; margin: 10px; font-size: 15px; }
+ table { font-size: 12px }
+ table.main {width: 100%; border-width: 0px;}
+ table.loginablak {background-color: #ffffff; border-width: 1px; border-style: solid; border-color: #555550; width:400px}
+ td { padding: 2px }
+ form { margin: 30px; padding: 0px; }
+ input { font-size: 10px; font-family: Verdana,Arial; background-color: #fffff0; }
+ select.pp {
+ padding: 0px; margin: 0px;
+ border: none 0px #778890;
+ font-size: 12px;
+ background-color: #eeeee0;
+ font-family: Verdana,Arial;
+ }
+ select.pp>option { border: none 0px black; }
+ input.submit { border: solid 1px #776650; }
+ thead td {
+ background-color: #a00000;
+ text-align: center;
+ font-family: Verdana,arial;
+ font-size: 10pt;
+ font-weight: bold;
+ color: white;
+ }
+ tfoot td {
+ background-color: #888880;
+ text-align: center;
+ }
+ form.loginablak tbody img { border: solid 1px #bbddbb; }
+ td.co {
+ text-align: center;
+ vertical-align: bottom;
+ font-family: Verdana,arial;
+ font-size: 8pt;
+ }
+} \ No newline at end of file
diff --git a/mayor-orig/www/skin/winter/module-naplo/css/naplo.css b/mayor-orig/www/skin/winter/module-naplo/css/naplo.css
new file mode 100644
index 00000000..432a3f41
--- /dev/null
+++ b/mayor-orig/www/skin/winter/module-naplo/css/naplo.css
@@ -0,0 +1,76 @@
+
+ table.toolBar { width: 90%; border-spacing: 0px; margin: 1em auto; }
+ table.toolBar form { margin: 0px; padding: 0px; }
+ table.toolBar tr.first td.toolBarTitle, table.toolBar tr.first td.toolBarTool { border: solid 1px #333333; }
+ table.toolBar td.gap { width: 50%; border-spacing: 0px; }
+ table.toolBar td.help {
+ background-color: #005566 ;
+ color: white;
+ border-width: 0px 1px 1px 1px;
+ border-color: black;
+ border-style: none solid solid solid;
+ font-size:smaller;
+ }
+ table.toolBar td.toolBarTitle {
+ background-color: white;
+ width: 100%;
+ font-size: 20px;
+ font-weight: bold;
+ }
+ #toolBarIntezmeny {
+ color: red;
+ border: solid red;
+ border-width: 1px 0px;
+ font-size: 10px;
+ }
+
+ table.toolBar td.toolBarTool {
+ border: solid 1px #009999;
+ background-color: #007788;
+ margin: 0px;
+ padding: 0px;
+ }
+ table.toolBar td.toolBarTool table { border-spacing: 0px; width: 100%; }
+ table.toolBar td.toolBarTool table th {
+ background-color: #00aabb;
+ text-align: left;
+ color: white;
+ font-size:10px;
+ padding-left: 4px;
+ border-color: #006677;
+ border-width: 1px 0px;
+ border-style: solid;
+ }
+ table.toolBar input.toolSubmit { vertical-align: middle; border: 0px none; }
+ table.toolBar td.toolBarTool select { border: 0px; }
+ table.toolBar th {
+ background-color: #00aabb;
+ text-align: center;
+ color: white;
+ font-size:10px;
+ padding-left: 4px;
+
+ border-color: rgb(21,123,71);
+ border-width: 1px 0px 1px 1px;
+ border-style: solid;
+ }
+ table.toolBar img { border: none; }
+
+ table.toolBar table.hianyzasOsszegzo { width:100%; font-size:10px; }
+ table.toolBar table.hianyzasOsszegzo th {
+ text-align: center !important;
+ border-style: none none solid none;
+ border-color: #888888;
+ border-width: 0px 0px 1px 0px;
+ }
+ table.toolBar table.hianyzasOsszegzo td { width: 18%; border-bottom: solid 1px rgb(60,80,100); background-color: #dddddd; text-align: center; }
+
+ form.lapozo input { font-size: 10px; border: solid 1px #005555; }
+
+ table.flipper input {height: 36px; width: 18px; color: white; border: solid 1px #006677; background-color: #00aabb; }
+ table.flipper input.step { background-color: #00aabb; }
+
+ div.beirasAdatok { text-align: center; }
+ div.beirasAdatok span { font-weight: bold; font-size: 20pt; vertical-align: middle; }
+ div.beirasAdatok img { vertical-align: middle; }
+
diff --git a/mayor-orig/www/static/hu_HU/legal/pp.html b/mayor-orig/www/static/hu_HU/legal/pp.html
new file mode 100644
index 00000000..8c387483
--- /dev/null
+++ b/mayor-orig/www/static/hu_HU/legal/pp.html
@@ -0,0 +1,22 @@
+<style>
+#ppBody
+{
+ font-size:11pt;
+ width:100%;
+ margin:0 auto;
+ text-align:justify;
+}
+
+#ppHeader
+{
+ font-family:verdana;
+ font-size:21pt;
+ width:100%;
+ margin:0 auto;
+}
+
+.ppConsistencies
+{
+ display:none;
+}
+</style><div id='ppHeader'> Privacy Policy</div><div id='ppBody'><div class='ppConsistencies'><div class='col-2'> <div class="quick-links text-center">Information Collection</div> </div><div class='col-2'> <div class="quick-links text-center">Information Usage</div> </div><div class='col-2'></div><div class='col-2'> <div class="quick-links text-center">Cookie Usage</div> </div><div class='col-2'></div><div class='col-2'> <div class="quick-links text-center">3rd Party Links</div> </div><div class='col-2'></div><div class='col-2'></div></div><div style='clear:both;height:10px;'></div><div class='ppConsistencies'><div class='col-2'> <div class="col-12 quick-links2 gen-text-center">Google AdSense</div> </div><div class='col-2'> <div class="col-12 quick-links2 gen-text-center coppa-pad"> COPPA </div> </div><div class='col-2'> <div class="quick-links2 gen-text-center">CAN-SPAM</div> </div><div class='col-2'> <div class="quick-links2 gen-text-center">Our Contact Information<br></div> </div></div><div style='clear:both;height:10px;'></div><div class='innerText'>This privacy policy has been compiled to better serve those who are concerned with how their 'Personally Identifiable Information' (PII) is being used online. PII, as described in US privacy law and information security, is information that can be used on its own or with other information to identify, contact, or locate a single person, or to identify an individual in context. Please read our privacy policy carefully to get a clear understanding of how we collect, use, protect or otherwise handle your Personally Identifiable Information in accordance with our website.<br></div><span id='infoCo'></span><br><div class='grayText'><strong>What personal information do we collect from the people that visit our blog, website or app?</strong></div><br /><div class='innerText'>When ordering or registering on our site, as appropriate, you may be asked to enter your email address or other details to help you with your experience.</div><br><div class='grayText'><strong>When do we collect information?</strong></div><br /><div class='innerText'>We collect information from you when you or enter information on our site.</div><br>Login Services for MaYoR <span id='infoUs'></span><br><div class='grayText'><strong>How do we use your information? </strong></div><br /><div class='innerText'> We may use the information we collect from you when you register, make a purchase, sign up for our newsletter, respond to a survey or marketing communication, surf the website, or use certain other site features in the following ways:<br><br></div><span id='coUs'></span><br><div class='grayText'><strong>Do we use 'cookies'?</strong></div><br /><div class='innerText'>Yes. Cookies are small files that a site or its service provider transfers to your computer's hard drive through your Web browser (if you allow) that enables the site's or service provider's systems to recognize your browser and capture and remember certain information. For instance, we use cookies to help us remember and process the items in your shopping cart. They are also used to help us understand your preferences based on previous or current site activity, which enables us to provide you with improved services. We also use cookies to help us compile aggregate data about site traffic and site interaction so that we can offer better site experiences and tools in the future.</div><div class='innerText'><br><strong>We use cookies to:</strong></div><div class='innerText'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>&bull;</strong> Understand and save user's preferences for future visits.</div><div class='innerText'><br>You can choose to have your computer warn you each time a cookie is being sent, or you can choose to turn off all cookies. You do this through your browser settings. Since browser is a little different, look at your browser's Help Menu to learn the correct way to modify your cookies.<br></div><div class='innerText'><br><strong>If users disable cookies in their browser:</strong></div><br><div class='innerText'>If you turn cookies off, Some of the features that make your site experience more efficient may not function properly.Some of the features that make your site experience more efficient and may not function properly.</div><br><span id='gooAd'></span><br><div class='blueText'><strong>Google</strong></div><br /><div class='innerText'>Google's advertising requirements can be summed up by Google's Advertising Principles. They are put in place to provide a positive experience for users. https://support.google.com/adwordspolicy/answer/1316548?hl=en <br><br></div><div class='innerText'>We use Google AdSense Advertising on our website.</div><div class='innerText'><br>Google, as a third-party vendor, uses cookies to serve ads on our site. Google's use of the DART cookie enables it to serve ads to our users based on previous visits to our site and other sites on the Internet. Users may opt-out of the use of the DART cookie by visiting the Google Ad and Content Network privacy policy.<br></div><div class='innerText'><br><strong>We have implemented the following:</strong></div><br><div class='innerText'>We, along with third-party vendors such as Google use first-party cookies (such as the Google Analytics cookies) and third-party cookies (such as the DoubleClick cookie) or other third-party identifiers together to compile data regarding user interactions with ad impressions and other ad service functions as they relate to our website. </div><div class='innerText'><br><strong>Opting out:</strong><br>Users can set preferences for how Google advertises to you using the Google Ad Settings page. Alternatively, you can opt out by visiting the Network Advertising Initiative Opt Out page or by using the Google Analytics Opt Out Browser add on.</div><span id='coppAct'></span><br><div class='blueText'><strong>COPPA (Children Online Privacy Protection Act)</strong></div><br /><div class='innerText'>When it comes to the collection of personal information from children under the age of 13 years old, the Children's Online Privacy Protection Act (COPPA) puts parents in control. The Federal Trade Commission, United States' consumer protection agency, enforces the COPPA Rule, which spells out what operators of websites and online services must do to protect children's privacy and safety online.<br><br></div><div class='innerText'>We do not specifically market to children under the age of 13 years old.</div><div class='innerText'>Do we let third-parties, including ad networks or plug-ins collect PII from children under 13?</div> </div> \ No newline at end of file
diff --git a/mayor-orig/www/static/hu_HU/session/admin/registration/readme.html b/mayor-orig/www/static/hu_HU/session/admin/registration/readme.html
new file mode 100644
index 00000000..e3d1a798
--- /dev/null
+++ b/mayor-orig/www/static/hu_HU/session/admin/registration/readme.html
@@ -0,0 +1,47 @@
+<h3>Regisztráció</h3>
+
+<p>Kedves MaYoR Felhasználó!</p>
+
+<p>
+Az utóbbi évek alatt a MaYoR elektronikus napló örvendetes módon
+elterjedt és a jelek szerint az érdeklődés iránta továbbra is
+megmaradt. Ennek eredményeként mára egyre több intézmény használja
+a programot és számtalan további érdeklődővel tartjuk a kapcsolatot.
+</p><p>
+Ugyanakkor az örömteli változások egyúttal a program karbantartásával
+járó terhek és a felelősség megnövekedésével is járnak. A MaYoR kinőtt
+a "szabadidős tevékenység" kategóriából.
+</p><p>
+Mára úgy látjuk, hogy a hosszútávú fennmaradásnak feltétele, hogy a
+szoftverrel kapcsolatos feladatok ellátását rendes munkaként végezzük,
+munkaidőben, munkabérért. Ugyanakkor <strong>a program nyitottságát, licencét,
+szabad hozzáférhetőségét nem kívánjuk megváltoztatni</strong>. Tán naiv
+elképzelés, de arra számítunk, hogy a felhasználóink - azok az
+intézmények, akik már ismerik és használják a programot - a fentieket
+belátva, elfogadva részt tudnak és részt is kívánnak vállalni a további
+terméktámogatási tevékenység finanszírozásában. A hozzájárulás tehát
+<strong>önkéntes</strong>.
+</p><p>
+A támogatást havi néhány ezer Ft-os, egy évre egy összegben, vagy féléves
+ütemezésben fizetendő regisztrációs díj formájában képzeljük el -
+önkéntes alapon, az intézmény lehetőségeihez mérten.
+</p><p>
+A regisztráció során a telepített szoftver egy SSL kulcspárt is generál,
+melynek publikus kulcsa a www.mayor.hu-n keresztül tud eljutni a többi
+MaYoR telepítéshez. Az SSL kulcsokat az egyes telepített szoftverek közötti
+kommunikáció megvalósítására használjuk.
+</p>
+<!--//
+
+<h2>A regisztráció menete</h2>
+
+<ol>
+<li><strong>Töltsd ki</strong> a mellékelt űrlapot!</li>
+<li><strong>Töltsd le</strong>, <strong>nyomtasd ki</strong>, majd aláírással, pecséttel <strong>hitelesítsd</strong> a nyomtatványt!</li>
+<li><strong>Küldd el</strong> a hitelesített regisztrációs űrlapot nekünk (<span class="cim">1025 Budapest, Turista út 50.</span>)</li>
+</ol>
+
+<p>A regisztráció után mi még megkeressük a beírt kapcsolattartót egy végső egyeztetésre.</p>
+
+<p class="koszonet">Köszönjük, hogy támogatod tevékenységünket!</p>
+//--> \ No newline at end of file
diff --git a/mayor-orig/www/update.php b/mayor-orig/www/update.php
new file mode 100644
index 00000000..42d06efe
--- /dev/null
+++ b/mayor-orig/www/update.php
@@ -0,0 +1,25 @@
+<?php
+if (defined('_LOCKFILE') && @file_exists(_LOCKFILE)) {
+ echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'."\n";
+ echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="hu">'."\n";
+ echo '<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>MaYoR</title></head><body>'."\n";
+ echo '<div>'."\n";
+ echo '<h1>MaYoR software update</h1>'."\n";
+ echo '<p>Hopp! Az automatikus frissítés épp fut, vagy a szolgáltatást a rendszerüzemeltető letiltotta.</p>'."\n";
+ echo '<p>Oops! Automatic update process is running or the system administrator has locked down this service.</p>'."\n";
+ echo '<p style="font-size:smaller;">'.date('Y-m-d H:i:s').'</p>';
+ echo '</div>'."\n";
+
+echo '<div>';
+$i=0; $i++;
+//for ($i=0; $i<count(); $i++) {
+//
+//}
+echo '</div>';
+
+ echo '</body></html>';
+} else {
+ header('index.php');
+}
+?>